1(function(e) { 2 function t(l) { 3 if (n[l]) return n[l].exports; 4 var r = n[l] = { 5 i: l, 6 l: !1, 7 exports: {} 8 }; 9 return e[l].call(r.exports, r, r.exports, t), r.l = !0, r.exports 10 } 11 var n = {}; 12 return t.m = e, t.c = n, t.d = function(e, n, l) { 13 t.o(e, n) || Object.defineProperty(e, n, { 14 configurable: !1, 15 enumerable: !0, 16 get: l 17 }) 18 }, t.n = function(e) { 19 var n = e && e.__esModule ? function() { 20 return e['default'] 21 } : function() { 22 return e 23 }; 24 return t.d(n, 'a', n), n 25 }, t.o = function(e, t) { 26 return Object.prototype.hasOwnProperty.call(e, t) 27 }, t.p = '/_/dist/', t(t.s = 99) 28})({ 29 100: function(e, t, n) { 30 var l, r, a = Object.assign || function(e) { 31 for (var t, n = 1; n < arguments.length; n++) 32 for (var l in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]); 33 return e 34 }, 35 o = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { 36 return typeof e 37 } : function(e) { 38 return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e 39 }; 40 (function(a, i) { 41 'object' === o(t) && 'undefined' != typeof e ? e.exports = i() : (l = i, r = 'function' == typeof l ? l.call(t, n, t, e) : l, !(r !== void 0 && (e.exports = r))) 42 })(this, function() { 43 'use strict'; 44 45 function e(e, t, n) { 46 return !m(e, t, n) && !f(e, t, n) && !h(e, t, n) && !y(e, t, n) 47 } 48 49 function t(e, t, n) { 50 var l = t._settings; 51 !n && c(e) || (T(l.callback_enter, e), -1 < R.indexOf(e.tagName) && (B(e, t), x(e, l.class_loading)), w(e, t), d(e), T(l.callback_set, e)) 52 } 53 var n = function() { 54 return { 55 elements_selector: 'img', 56 container: window, 57 threshold: 300, 58 throttle: 150, 59 data_src: 'src', 60 data_srcset: 'srcset', 61 data_sizes: 'sizes', 62 data_bg: 'bg', 63 class_loading: 'loading', 64 class_loaded: 'loaded', 65 class_error: 'error', 66 class_initial: 'initial', 67 skip_invisible: !0, 68 callback_load: null, 69 callback_error: null, 70 callback_set: null, 71 callback_enter: null, 72 callback_finish: null, 73 to_webp: !1 74 } 75 }, 76 l = 'data-', 77 r = 'was-processed', 78 o = 'true', 79 i = function(e, t) { 80 return e.getAttribute(l + t) 81 }, 82 s = function(e, t, n) { 83 var r = l + t; 84 return null === n ? void e.removeAttribute(r) : void e.setAttribute(r, n) 85 }, 86 d = function(e) { 87 return s(e, r, o) 88 }, 89 c = function(e) { 90 return i(e, r) === o 91 }, 92 u = function(e) { 93 return e.filter(function(e) { 94 return !c(e) 95 }) 96 }, 97 g = function(e, t) { 98 return e.filter(function(e) { 99 return e !== t 100 }) 101 }, 102 p = function(e) { 103 return e.getBoundingClientRect().top + window.pageYOffset - e.ownerDocument.documentElement.clientTop 104 }, 105 m = function(e, t, n) { 106 var l = t === window ? window.innerHeight + window.pageYOffset : p(t) + t.offsetHeight; 107 return l <= p(e) - n 108 }, 109 v = function(e) { 110 return e.getBoundingClientRect().left + window.pageXOffset - e.ownerDocument.documentElement.clientLeft 111 }, 112 h = function(e, t, n) { 113 var l = window.innerWidth, 114 r = t === window ? l + window.pageXOffset : v(t) + l; 115 return r <= v(e) - n 116 }, 117 f = function(e, t, n) { 118 var l = t === window ? window.pageYOffset : p(t); 119 return l >= p(e) + n + e.offsetHeight 120 }, 121 y = function(e, t, n) { 122 var l = t === window ? window.pageXOffset : v(t); 123 return l >= v(e) + n + e.offsetWidth 124 }, 125 E = function(e, t) { 126 var n, l = 'LazyLoad::Initialized', 127 r = new e(t); 128 try { 129 n = new CustomEvent(l, { 130 detail: { 131 instance: r 132 } 133 }) 134 } catch (e) { 135 n = document.createEvent('CustomEvent'), n.initCustomEvent(l, !1, !1, { 136 instance: r 137 }) 138 } 139 window.dispatchEvent(n) 140 }, 141 b = function(e, t) { 142 return t ? e.replace(/\.(jpe?g|png)/gi, '.webp') : e 143 }, 144 S = 'undefined' != typeof window, 145 L = S && !('onscroll' in window) || /(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent), 146 _ = S && 'classList' in document.createElement('p'), 147 k = S && function() { 148 var e = 'image/webp', 149 t = document.createElement('canvas'); 150 return t.getContext && t.getContext('2d') && 0 === t.toDataURL(e).indexOf('data:' + e) 151 }(), 152 x = function(e, t) { 153 return _ ? void e.classList.add(t) : void(e.className += (e.className ? ' ' : '') + t) 154 }, 155 C = function(e, t) { 156 return _ ? void e.classList.remove(t) : void(e.className = e.className.replace(new RegExp('(^|\\s+)' + t + '(\\s+|$)'), ' ').replace(/^\s+/, '').replace(/\s+$/, '')) 157 }, 158 H = function(e, t, n, l) { 159 for (var r, a = 0; r = e.children[a]; a += 1) 160 if ('SOURCE' === r.tagName) { 161 var o = i(r, n); 162 P(r, t, o, l) 163 } 164 }, 165 P = function(e, t, n, l) { 166 n && e.setAttribute(t, b(n, l)) 167 }, 168 N = function(e, t) { 169 var n = k && t.to_webp, 170 l = i(e, t.data_src), 171 r = i(e, t.data_bg); 172 if (l) { 173 var a = b(l, n); 174 e.style.backgroundImage = 'url("' + a + '")' 175 } 176 if (r) { 177 var o = b(r, n); 178 e.style.backgroundImage = o 179 } 180 }, 181 I = { 182 IMG: function(e, t) { 183 var n = k && t.to_webp, 184 l = t.data_srcset, 185 r = e.parentNode; 186 r && 'PICTURE' === r.tagName && H(r, 'srcset', l, n); 187 var a = i(e, t.data_sizes); 188 P(e, 'sizes', a); 189 var o = i(e, l); 190 P(e, 'srcset', o, n); 191 var s = i(e, t.data_src); 192 P(e, 'src', s, n) 193 }, 194 IFRAME: function(e, t) { 195 var n = i(e, t.data_src); 196 P(e, 'src', n) 197 }, 198 VIDEO: function(e, t) { 199 var n = t.data_src, 200 l = i(e, n); 201 H(e, 'src', n), P(e, 'src', l), e.load() 202 } 203 }, 204 w = function(e, t) { 205 var n = t._settings, 206 l = e.tagName, 207 r = I[l]; 208 return r ? (r(e, n), t._updateLoadingCount(1), void(t._elements = g(t._elements, e))) : void N(e, n) 209 }, 210 T = function(e, t) { 211 e && e(t) 212 }, 213 A = 'load', 214 O = 'loadeddata', 215 q = 'error', 216 D = function(e, t, n) { 217 e.addEventListener(t, n) 218 }, 219 M = function(e, t, n) { 220 e.removeEventListener(t, n) 221 }, 222 F = function(e, t, n) { 223 D(e, A, t), D(e, O, t), D(e, q, n) 224 }, 225 X = function(e, t, n) { 226 M(e, A, t), M(e, O, t), M(e, q, n) 227 }, 228 z = function(e, t, n) { 229 var l = n._settings, 230 r = t ? l.class_loaded : l.class_error, 231 a = t ? l.callback_load : l.callback_error, 232 o = e.target; 233 C(o, l.class_loading), x(o, r), T(a, o), n._updateLoadingCount(-1) 234 }, 235 B = function(e, t) { 236 var n = function n(r) { 237 z(r, !0, t), X(e, n, l) 238 }, 239 l = function l(r) { 240 z(r, !1, t), X(e, n, l) 241 }; 242 F(e, n, l) 243 }, 244 R = ['IMG', 'IFRAME', 'VIDEO'], 245 W = function(e, t) { 246 for (; t.length;) e.splice(t.pop(), 1) 247 }, 248 U = function(e) { 249 this._settings = a({}, n(), e), this._loadingCount = 0, this._queryOriginNode = this._settings.container === window ? document : this._settings.container, this._previousLoopTime = 0, this._loopTimeout = null, this._boundHandleScroll = this.handleScroll.bind(this), this._isFirstLoop = !0, window.addEventListener('resize', this._boundHandleScroll), this.update() 250 }; 251 return U.prototype = { 252 _loopThroughElements: function(t) { 253 var n = this._settings, 254 l = this._elements, 255 r = l ? l.length : 0, 256 a = void 0, 257 o = [], 258 i = this._isFirstLoop; 259 if (i && (this._isFirstLoop = !1), 0 === r) return void this._stopScrollHandler(); 260 for (a = 0; a < r; a++) { 261 var s = l[a]; 262 n.skip_invisible && null === s.offsetParent || (t || e(s, n.container, n.threshold)) && (i && x(s, n.class_initial), this.load(s), o.push(a)) 263 } 264 W(l, o) 265 }, 266 _startScrollHandler: function() { 267 this._isHandlingScroll || (this._isHandlingScroll = !0, this._settings.container.addEventListener('scroll', this._boundHandleScroll)) 268 }, 269 _stopScrollHandler: function() { 270 this._isHandlingScroll && (this._isHandlingScroll = !1, this._settings.container.removeEventListener('scroll', this._boundHandleScroll)) 271 }, 272 _updateLoadingCount: function(e) { 273 this._loadingCount += e, 0 === this._elements.length && 0 === this._loadingCount && T(this._settings.callback_finish) 274 }, 275 handleScroll: function() { 276 var e = this._settings.throttle; 277 if (0 !== e) { 278 var t = Date.now(), 279 n = e - (t - this._previousLoopTime); 280 0 >= n || n > e ? (this._loopTimeout && (clearTimeout(this._loopTimeout), this._loopTimeout = null), this._previousLoopTime = t, this._loopThroughElements()) : !this._loopTimeout && (this._loopTimeout = setTimeout(function() { 281 this._previousLoopTime = Date.now(), this._loopTimeout = null, this._loopThroughElements() 282 }.bind(this), n)) 283 } else this._loopThroughElements() 284 }, 285 loadAll: function() { 286 this._loopThroughElements(!0) 287 }, 288 update: function(e) { 289 var t = this._settings, 290 n = e || this._queryOriginNode.querySelectorAll(t.elements_selector); 291 return this._elements = u(Array.prototype.slice.call(n)), L ? void this.loadAll() : void(this._loopThroughElements(), this._startScrollHandler()) 292 }, 293 destroy: function() { 294 window.removeEventListener('resize', this._boundHandleScroll), this._loopTimeout && (clearTimeout(this._loopTimeout), this._loopTimeout = null), this._stopScrollHandler(), this._elements = null, this._queryOriginNode = null, this._settings = null 295 }, 296 load: function(e, n) { 297 t(e, this, n) 298 } 299 }, S && function(e, t) { 300 if (t) 301 if (!t.length) E(e, t); 302 else 303 for (var n, l = 0; n = t[l]; l += 1) E(e, n) 304 }(U, window.lazyLoadOptions), U 305 }) 306 }, 307 101: function(e, t) { 308 'use strict'; 309 310 function n(e, t) { 311 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 312 } 313 Object.defineProperty(t, '__esModule', { 314 value: !0 315 }); 316 t.default = function e(t) { 317 var l = this; 318 n(this, e), this.container = '', this.button = '', this.body = '', this.navIsOpen = '', this.info = function() { 319 console.log(l) 320 }, this.getInitialState = function() { 321 return l.body.classList.contains('nav-open') 322 }, this.addEventListeners = function() { 323 l.button.addEventListener('click', function(t) { 324 t.preventDefault(), l.toggleNav() 325 }), window.addEventListener('resize', function() { 326 l.forceResetState() 327 }) 328 }, this.toggleNav = function() { 329 l.body.classList.toggle('freeze'), l.body.classList.toggle('nav-open'), l.container.classList.toggle('nav-open'), l.navIsOpen = !l.n
329avIsOpen, l.adjustIcon() 330 }, this.adjustIcon = function() { 331 l.button.innerHTML = l.navIsOpen ? '<i class="fas fa-times fa-border"></i>' : '<i class="fas fa-bars fa-border"></i>' 332 }, this.forceResetState = function() { 333 768 < window.innerWidth ? (l.navIsOpen = !1, l.body.classList.remove('freeze'), l.body.classList.remove('nav-open'), l.container.classList.remove('nav-open'), l.adjustIcon(), document.querySelectorAll('.dropdown-wrapper.hidden').forEach(function(e) { 334 e.classList.remove('hidden') 335 })) : l.makeAccordions() 336 }, this.makeAccordions = function() { 337 if (768 >= window.innerWidth) { 338 var e = l.container.querySelectorAll('#menu-primary-menu>li.menu-item.has-children'); 339 e.forEach(function(e) { 340 var t = e.querySelector('.mobile-accordion-toggle'); 341 t.nextElementSibling.classList.add('hidden'), t.addEventListener('click', function() { 342 t.nextElementSibling.classList.toggle('hidden'), t.nextElementSibling.classList.contains('hidden') ? t.firstElementChild.classList.replace('fa-chevron-up', 'fa-chevron-down') : t.firstElementChild.classList.replace('fa-chevron-down', 'fa-chevron-up') 343 }) 344 }) 345 } 346 }, this.container = document.querySelector(t.container), this.button = document.querySelector(t.toggleSelector), this.body = document.querySelector('body'), this.navIsOpen = this.getInitialState(), this.addEventListeners(), this.makeAccordions() 347 } 348 }, 349 102: function(e, t, n) { 350 'use strict'; 351 352 function l(e, t) { 353 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 354 } 355 Object.defineProperty(t, '__esModule', { 356 value: !0 357 }); 358 var r = n(7), 359 a = function(e) { 360 return e && e.__esModule ? e : { 361 default: e 362 } 363 }(r); 364 /*t.default = function e() { 365 var t = this; 366 l(this, e), this.toggle = document.querySelector('a.nav-btn.search-icon'), this.form = document.querySelector('form.quick-search'), this.container = document.querySelector('.util-right'), this.isOpen = !1, this.icon = null, this.bindEvents = function() { 367 t.toggle.addEventListener('click', function(n) { 368 n.preventDefault(), t.isOpen = !t.isOpen, t.container.classList.toggle('search-open'), t.isOpen ? t.icon.classList.replace('fa-search', 'fa-times') : t.icon.classList.replace('fa-times', 'fa-search'), t.form.querySelector('input').focus() 369 }) 370 }, this.icon = this.toggle.querySelector('i.fa'), 768 <= window.innerWidth ? this.bindEvents() : window.addEventListener('resize', (0, a.default)(function() { 371 768 <= window.innerWidth && t.bindEvents() 372 }), 150) 373 }*/ 374 }, 375 103: function(e, t) { 376 'use strict'; 377 378 function n(e, t) { 379 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 380 } 381 Object.defineProperty(t, '__esModule', { 382 value: !0 383 }); 384 var l = function() { 385 var t = this; 386 this.options = { 387 selector: '.accordion', 388 transition: '.3s', 389 activeClass: 'active' 390 }, this.headers = [], this.mergeOptions = function(e) { 391 for (var n in e) e.hasOwnProperty(n) && (t.options[n] = e[n]) 392 }, this.info = function() { 393 console.log(t) 394 }, this.bindEvents = function() { 395 t.headers = document.querySelectorAll(t.options.selector + ' > *:first-child'); 396 var e = function(n) { 397 var l = n.nextElementSibling; 398 t.addBaseStyles(n, l), n.addEventListener('click', function(r) { 399 r.preventDefault(), n.classList.toggle(t.options.activeClass), l.style.maxHeight = '0px' === l.style.maxHeight ? l.scrollHeight + 'px' : '0px' 400 }) 401 }, 402 n = !0, 403 l = !1, 404 r = void 0; 405 try { 406 for (var a, o, i = t.headers[Symbol.iterator](); !(n = (a = i.next()).done); n = !0) o = a.value, e(o) 407 } catch (e) { 408 l = !0, r = e 409 } finally { 410 try { 411 !n && i.return && i.return() 412 } finally { 413 if (l) throw r 414 } 415 } 416 }, this.addBaseStyles = function(e, n) { 417 e.style.cursor = 'pointer', e.style.padding = '.5em', n.style.overflow = 'hidden', n.style.maxHeight = 0, n.style.transition = 'max-height ' + t.options.transition + ' ease' 418 } 419 }; 420 t.default = function e(t) { 421 n(this, e), l.call(this), this.mergeOptions(t), this.bindEvents() 422 } 423 }, 424 104: function(e, t) { 425 'use strict'; 426 Object.defineProperty(t, '__esModule', { 427 value: !0 428 }); 429 var n = function() { 430 for (var e = window.accordions.headers, t = e.length - 1; 0 <= t; t--) e[t].click() 431 }, 432 l = function() { 433 var e = document.createElement('div'), 434 t = document.createElement('a'); 435 return t.classList.add('cta', 'textright'), t.innerHTML = 'Expand All', e.classList.add('wp-block-columns', 'accordion'), e.style = 'display: flex; flex-flow: row-reverse;', e.insertAdjacentElement('afterbegin', t), e 436 }, 437 r = t.createExpandBtn = function(e) { 438 var t = l(); 439 t.addEventListener('click', n), e[0].insertAdjacentElement('beforebegin', t) 440 } 441 }, 442 105: function(e, t) { 443 'use strict'; 444 Object.defineProperty(t, '__esModule', { 445 value: !0 446 }), t.default = function() { 447 window.addEventListener('DOMContentLoaded', function() { 448 var e = document.querySelector('aside.sidebar'); 449 if (e) { 450 var t = document.querySelector('.alignwide:not(header), .alignfull:not(header):not(.breadcrumbs)'), 451 n = t.previousElementSibling, 452 l = e.offsetTop + e.scrollHeight - (n.offsetTop + n.scrollHeight); 453 if (0 < l && e.offsetTop + e.scrollHeight > t.offsetTop) { 454 var r = document.createElement('div'); 455 r.classList.add('spacer'), r.style.paddingBottom += l + 80 + 'px', n.insertAdjacentElement('afterend', r) 456 } 457 } 458 }) 459 } 460 }, 461 12: function(e, t) { 462 'use strict'; 463 464 function n(e) { 465 if (Array.isArray(e)) { 466 for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; 467 return n 468 } 469 return Array.from(e) 470 } 471 472 function l(e, t) { 473 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 474 } 475 Object.defineProperty(t, '__esModule', { 476 value: !0 477 }); 478 var r = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { 479 return typeof e 480 } : function(e) { 481 return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e 482 }, 483 a = function() { 484 function e(e, t) { 485 for (var n, l = 0; l < t.length; l++) n = t[l], n.enumerable = n.enumerable || !1, n.configurable = !0, 'value' in n && (n.writable = !0), Object.defineProperty(e, n.key, n) 486 } 487 return function(t, n, l) { 488 return n && e(t.prototype, n), l && e(t, l), t 489 } 490 }(); 491 t.makeNavigationDots = function(e, t) { 492 var l = document.createElement('div'); 493 l.classList.add('slider-pagination'); 494 for (var r, a = 0; a < e; a++) r = document.createElement('i'), r.setAttribute('role', 'button'), r.setAttribute('id', 'slider-dot-' + a), r.classList.add('page-dot'), r.classList.add('fa'), r.classList.add('fa-circle-o'), 0 === a && r.classList.add('fa-circle'), l.appendChild(r); 495 return document.querySelector(t).append(l), [].concat(n(l.children)) 496 }, t.makeNavigationArrows = function(e) { 497 var t = document.querySelector(e), 498 l = document.createElement('div');
499 l.classList.add('slider-controls'); 500 for (var r, a = 0; 2 > a; a++) r = document.createElement('button'), r.innerHTML = '<i class="fas fa-2x fa-chevron-circle-' + (0 === a ? 'left' : 'right') + '"></i> <span class="screen-reader-text">' + (0 === a ? 'Previous' : 'Next') + '</span>', l.appendChild(r); 501 return t.append(l), [].concat(n(l.children)) 502 }; 503 var o = function() { 504 function e(t) { 505 var r = this; 506 if (l(this, e), this.config = e.mergeSettings(t), this.selector = 'string' == typeof this.config.selector ? document.querySelector(this.config.selector) : this.config.selector, null === this.selector) throw new Error('Something wrong with your selector \uD83D\uDE2D'); 507 this.resolveSlidesNumber(), this.selectorWidth = this.selector.offsetWidth, this.innerElements = [].slice.call(this.selector.children), this.currentSlide = this.config.loop ? this.config.startIndex % this.innerElements.length : n(0, o(this.config.startIndex, this.innerElements.length - this.perPage)), this.transformProperty = e.webkitOrNot(), ['resizeHandler', 'touchstartHandler', 'touchendHandler', 'touchmoveHandler', 'mousedownHandler', 'mouseupHandler', 'mouseleaveHandler', 'mousemoveHandler', 'clickHandler'].forEach(function(e) { 508 r[e] = r[e].bind(r) 509 }), this.init() 510 } 511 var t = Math.abs, 512 n = Math.max, 513 o = Math.min; 514 return a(e, [{ 515 key: 'attachEvents', 516 value: function() { 517 window.addEventListener('resize', this.resizeHandler), this.config.draggable && (this.pointerDown = !1, this.drag = { 518 startX: 0, 519 endX: 0, 520 startY: 0, 521 letItGo: null, 522 preventClick: !1 523 }, this.selector.addEventListener('touchstart', this.touchstartHandler), this.selector.addEventListener('touchend', this.touchendHandler), this.selector.addEventListener('touchmove', this.touchmoveHandler), this.selector.addEventListener('mousedown', this.mousedownHandler), this.selector.addEventListener('mouseup', this.mouseupHandler), this.selector.addEventListener('mouseleave', this.mouseleaveHandler), this.selector.addEventListener('mousemove', this.mousemoveHandler), this.selector.addEventListener('click', this.clickHandler)) 524 } 525 }, { 526 key: 'detachEvents', 527 value: function() { 528 window.removeEventListener('resize', this.resizeHandler), this.selector.removeEventListener('touchstart', this.touchstartHandler), this.selector.removeEventListener('touchend', this.touchendHandler), this.selector.removeEventListener('touchmove', this.touchmoveHandler), this.selector.removeEventListener('mousedown', this.mousedownHandler), this.selector.removeEventListener('mouseup', this.mouseupHandler), this.selector.removeEventListener('mouseleave', this.mouseleaveHandler), this.selector.removeEventListener('mousemove', this.mousemoveHandler), this.selector.removeEventListener('click', this.clickHandler) 529 } 530 }, { 531 key: 'init', 532 value: function() { 533 this.attachEvents(), this.selector.style.overflow = 'hidden', this.selector.style.direction = this.config.rtl ? 'rtl' : 'ltr', this.buildSliderFrame(), this.config.onInit.call(this) 534 } 535 }, { 536 key: 'buildSliderFrame', 537 value: function() { 538 var e = this.selectorWidth / this.perPage, 539 t = this.config.loop ? this.innerElements.length + 2 * this.perPage : this.innerElements.length; 540 this.sliderFrame = document.createElement('div'), this.sliderFrame.style.width = e * t + 'px', this.enableTransition(), this.config.draggable && (this.selector.style.cursor = '-webkit-grab'); 541 var n = document.createDocumentFragment(); 542 if (this.config.loop) 543 for (var l, r = this.innerElements.length - this.perPage; r < this.innerElements.length; r++) l = this.buildSliderFrameItem(this.innerElements[r].cloneNode(!0)), n.appendChild(l); 544 for (var a, o = 0; o < this.innerElements.length; o++) a = this.buildSliderFrameItem(this.innerElements[o]), n.appendChild(a); 545 if (this.config.loop) 546 for (var i, s = 0; s < this.perPage; s++) i = this.buildSliderFrameItem(this.innerElements[s].cloneNode(!0)), n.appendChild(i); 547 this.sliderFrame.appendChild(n), this.selector.innerHTML = '', this.selector.appendChild(this.sliderFrame), this.slideToCurrent() 548 } 549 }, { 550 key: 'buildSliderFrameItem', 551 value: function(e) { 552 var t = document.createElement('div'); 553 return t.style.cssFloat = this.config.rtl ? 'right' : 'left', t.style.float = this.config.rtl ? 'right' : 'left', t.style.width = (this.config.loop ? 100 / (this.innerElements.length + 2 * this.perPage) : 100 / this.innerElements.length) + '%', t.appendChild(e), t 554 } 555 }, { 556 key: 'resolveSlidesNumber', 557 value: function() { 558 if ('number' == typeof this.config.perPage) this.perPage = this.config.perPage; 559 else if ('object' === r(this.config.perPage)) 560 for (var e in this.perPage = 1, this.config.perPage) window.innerWidth >= e && (this.perPage = this.config.perPage[e]) 561 } 562 }, { 563 key: 'prev', 564 value: function() { 565 var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 1, 566 t = arguments[1]; 567 if (!(this.innerElements.length <= this.perPage)) { 568 var l = this.currentSlide; 569 if (this.config.loop) { 570 var r = 0 > this.currentSlide - e; 571 if (r) { 572 this.disableTransition(); 573 var a = this.currentSlide + this.innerElements.length, 574 o = this.perPage, 575 i = (this.config.rtl ? 1 : -1) * (a + o) * (this.selectorWidth / this.perPage), 576 s = this.config.draggable ? this.drag.endX - this.drag.startX : 0; 577 this.sliderFrame.style[this.transformProperty] = 'translate3d(' + (i + s) + 'px, 0, 0)', this.currentSlide = a - e 578 } else this.currentSlide -= e 579 } else this.currentSlide = n(this.currentSlide - e, 0); 580 l !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), t && t.call(this)) 581 } 582 } 583 }, { 584 key: 'next', 585 value: function() { 586 var e = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : 1, 587 t = arguments[1]; 588 if (!(this.innerElements.length <= this.perPage)) { 589 var n = this.currentSlide; 590 if (this.config.loop) { 591 var l = this.currentSlide + e > this.innerElements.length - this.perPage; 592 if (l) { 593 this.disableTransition(); 594 var r = this.currentSlide - this.innerElements.length, 595 a = this.perPage, 596 i = (this.config.rtl ? 1 : -1) * (r + a) * (this.selectorWidth / this.perPage), 597 s = this.config.draggable ? this.drag.endX - this.drag.startX : 0; 598 this.sliderFrame.style[this.transformProperty] = 'translate3d(' + (i + s) + 'px, 0, 0)', this.currentSlide = r + e 599 } else this.currentSlide += e 600 } else this.currentSlide = o(this.currentSlide + e, this.innerElements.length - this.perPage); 601 n !== this.currentSlide && (this.slideToCurrent(this.config.loop), this.config.onChange.call(this), t && t.call(this)) 602 } 603 } 604 }, { 605 key: 'disableTransition', 606 value: function() { 607 this.sliderFrame.style.webkitTransition = 'all 0ms ' + this.config.easing, this.sliderFrame.style.transition = 'all 0ms ' + this.config.easing 608 } 609 }, { 610 key: 'enableTransition', 611 value: function() { 612 this.sliderFrame.style.webkitTransition = 'all ' + this.config.duration + 'ms ' + this.config.easing, this.sliderFrame.style.transition = 'all ' + this.config.duration + 'ms ' + this.config.easing 613 } 614 }, { 615 key: 'goTo', 616 value: function(e, t) { 617 if (!(this.innerElements.length <= this.perPage)) { 618 var l = this.currentSlide; 619 this.currentSlide = this.config.loop ? e % this.innerElements.length : o(n(e, 0), this.innerElements.length - this.perPage), l !== this.currentSlide && (this.slideToCurrent(), this.config.onChange.call(this), t && t.call(this)) 620 } 621 } 622 }, { 623 key: 'slideToCurrent', 624 value: function(e) { 625 var t = this, 626 n = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide, 627 l = (this.config.rtl ? 1 : -1) * n * (this.selectorWidth / this.perPage); 628 e ? requestAnimationFrame(function() { 629 requestAnimationFrame(function() { 630 t.enableTransition(), t.sliderFrame.style[t.transformProperty] = 'translate3d(' + l + 'px, 0, 0)' 631 }) 632 }) : this.sliderFrame.style[this.transformProperty] = 'translate3d(' + l + 'px, 0, 0)' 633 } 634 }, { 635 key: 'updateAfterDrag', 636 value: function() { 637 var e = (this.config.rtl ? -1 : 1) * (this.drag.endX - this.drag.startX), 638 n = t(e), 639 l = this.config.multipleDrag ? Math.ceil(n / (this.selectorWidth / this.perPage)) : 1, 640 r = 0 < e && 0 > this.currentSlide - l, 641 a = 0 > e && this.currentSlide + l > this.innerElements.length - this.perPage; 642 0 < e && n > this.config.threshold && this.innerElements.length > this.perPage ? this.prev(l) : 0 > e && n > this.config.threshold && this.innerElements.length > this.perPage && this.next(l), this.slideToCurrent(r || a) 643 } 644 }, { 645 key: 'resizeHandler', 646 value: function() { 647 this.resolveSlidesNumber(), this.currentSlide + this.perPage > this.innerElements.length && (this.currentSlide = this.innerElements.length <= this.perPage ? 0 : this.innerElements.length - this.perPage), this.selectorWidth = this.selector.offsetWidth, this.buildSliderFrame() 648 } 649 }, { 650 key: 'clearDrag', 651 value: function() { 652 this.drag = { 653 startX: 0, 654 endX: 0, 655 startY: 0, 656 letItGo: null, 657 preventClick: this.drag.preventClick 658 } 659 } 660 }, { 661 key: 'touchstartHandler', 662 value: function(t) { 663 var e = -1 !== ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf(t.target.nodeName); 664 e || (t.stopPropagation(), this.pointerDown = !0, this.drag.startX = t.touches[0].pageX, this.drag.startY = t.touches[0].pageY) 665 } 666 }, { 667 key: 'touchendHandler', 668 value: function(t) { 669 t.stopPropagation(), this.pointerDown = !1, this.enableTransition(), this.drag.endX && this.updateAfterDrag(), this.clearDrag() 670 } 671 }, { 672 key: 'touchmoveHandler', 673 value: function(n) { 674 if (n.stopPropagation(), null === this.drag.letItGo && (this.drag.letItGo = t(this.drag.startY - n.touches[0].pageY) < t(this.drag.startX - n.touches[0].pageX)), this.pointerDown && this.drag.letItGo) { 675 n.preventDefault(), this.drag.endX = n.touches[0].pageX, this.sliderFrame.style.webkitTransition = 'all 0ms ' + this.config.easing, this.sliderFrame.style.transition = 'all 0ms ' + this.config.easing; 676 var e = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide, 677 l = e * (this.selectorWidth / this.perPage), 678 r = this.drag.endX - this.drag.startX,
679 a = this.config.rtl ? l + r : l - r; 680 this.sliderFrame.style[this.transformProperty] = 'translate3d(' + (this.config.rtl ? 1 : -1) * a + 'px, 0, 0)' 681 } 682 } 683 }, { 684 key: 'mousedownHandler', 685 value: function(t) { 686 var e = -1 !== ['TEXTAREA', 'OPTION', 'INPUT', 'SELECT'].indexOf(t.target.nodeName); 687 e || (t.preventDefault(), t.stopPropagation(), this.pointerDown = !0, this.drag.startX = t.pageX) 688 } 689 }, { 690 key: 'mouseupHandler', 691 value: function(t) { 692 t.stopPropagation(), this.pointerDown = !1, this.selector.style.cursor = '-webkit-grab', this.enableTransition(), this.drag.endX && this.updateAfterDrag(), this.clearDrag() 693 } 694 }, { 695 key: 'mousemoveHandler', 696 value: function(t) { 697 if (t.preventDefault(), this.pointerDown) { 698 'A' === t.target.nodeName && (this.drag.preventClick = !0), this.drag.endX = t.pageX, this.selector.style.cursor = '-webkit-grabbing', this.sliderFrame.style.webkitTransition = 'all 0ms ' + this.config.easing, this.sliderFrame.style.transition = 'all 0ms ' + this.config.easing; 699 var e = this.config.loop ? this.currentSlide + this.perPage : this.currentSlide, 700 n = e * (this.selectorWidth / this.perPage), 701 l = this.drag.endX - this.drag.startX, 702 r = this.config.rtl ? n + l : n - l; 703 this.sliderFrame.style[this.transformProperty] = 'translate3d(' + (this.config.rtl ? 1 : -1) * r + 'px, 0, 0)' 704 } 705 } 706 }, { 707 key: 'mouseleaveHandler', 708 value: function(t) { 709 this.pointerDown && (this.pointerDown = !1, this.selector.style.cursor = '-webkit-grab', this.drag.endX = t.pageX, this.drag.preventClick = !1, this.enableTransition(), this.updateAfterDrag(), this.clearDrag()) 710 } 711 }, { 712 key: 'clickHandler', 713 value: function(t) { 714 this.drag.preventClick && t.preventDefault(), this.drag.preventClick = !1 715 } 716 }, { 717 key: 'remove', 718 value: function(e, t) { 719 if (0 > e || e >= this.innerElements.length) throw new Error('Item to remove doesn\'t exist \uD83D\uDE2D'); 720 var n = e < this.currentSlide, 721 l = this.currentSlide + this.perPage - 1 === e; 722 (n || l) && this.currentSlide--, this.innerElements.splice(e, 1), this.buildSliderFrame(), t && t.call(this) 723 } 724 }, { 725 key: 'insert', 726 value: function(e, t, n) { 727 if (0 > t || t > this.innerElements.length + 1) throw new Error('Unable to inset it at this index \uD83D\uDE2D'); 728 if (-1 !== this.innerElements.indexOf(e)) throw new Error('The same item in a carousel? Really? Nope \uD83D\uDE2D'); 729 var l = 0 < (t <= this.currentSlide) && this.innerElements.length; 730 this.currentSlide = l ? this.currentSlide + 1 : this.currentSlide, this.innerElements.splice(t, 0, e), this.buildSliderFrame(), n && n.call(this) 731 } 732 }, { 733 key: 'prepend', 734 value: function(e, t) { 735 this.insert(e, 0), t && t.call(this) 736 } 737 }, { 738 key: 'append', 739 value: function(e, t) { 740 this.insert(e, this.innerElements.length + 1), t && t.call(this) 741 } 742 }, { 743 key: 'destroy', 744 value: function() { 745 var e = 0 < arguments.length && void 0 !== arguments[0] && arguments[0], 746 t = arguments[1]; 747 if (this.detachEvents(), this.selector.style.cursor = 'auto', e) { 748 for (var n = document.createDocumentFragment(), l = 0; l < this.innerElements.length; l++) n.appendChild(this.innerElements[l]); 749 this.selector.innerHTML = '', this.selector.appendChild(n), this.selector.removeAttribute('style') 750 } 751 t && t.call(this) 752 } 753 }], [{ 754 key: 'mergeSettings', 755 value: function(e) { 756 var t = { 757 selector: '.siema', 758 duration: 200, 759 easing: 'ease-out', 760 perPage: 1, 761 startIndex: 0, 762 draggable: !0, 763 multipleDrag: !0, 764 threshold: 20, 765 loop: !1, 766 rtl: !1, 767 onInit: function() {}, 768 onChange: function() {} 769 }, 770 n = e; 771 for (var l in n) t[l] = n[l]; 772 return t 773 } 774 }, { 775 key: 'webkitOrNot', 776 value: function() { 777 var e = document.documentElement.style; 778 return 'string' == typeof e.transform ? 'transform' : 'WebkitTransform' 779 } 780 }]), e 781 }(); 782 t.default = o 783 }, 784 13: function(e, t) { 785 'use strict'; 786 787 function n(e, t) { 788 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 789 } 790 Object.defineProperty(t, '__esModule', { 791 value: !0 792 }); 793 var l = 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator ? function(e) { 794 return typeof e 795 } : function(e) { 796 return e && 'function' == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? 'symbol' : typeof e 797 }; 798 t.default = function e(t) { 799 var r = this; 800 n(this, e), this.modal = null, this.openButton = null, this.closeButton = null, this.content = null, this.activeClass = 'active', this.backdropColor = '#19447E', this.backdropOpacity = 0.5, this.pageOffset = 0, this.previousHash = void 0, this.info = function() { 801 console.log(r) 802 }, this.bindEvents = function() { 803 window.addEventListener('hashchange', function(t) { 804 t.newURL.includes('%20') && r.handleHashChange(t) 805 }), r.openButton.addEventListener('click', function(t) { 806 r.pageOffset = window.pageYOffset, r.previousHash = window.location.hash, window.location.hash = r.modalName, r.toggleModal(), t.stopPropagation() 807 }), r.closeButton.addEventListener('click', function(t) { 808 r.toggleModal(), r.previousHash && (window.location.hash = r.previousHash), window.scrollTo(0, r.pageOffset), r.pageOffset = 0, t.stopPropagation() 809 }), r.content.addEventListener('click', function(t) { 810 t.stopPropagation() 811 }), r.modal.addEventListener('click', function(t) { 812 t.stopPropagation() 813 }) 814 }, this.handleHashChange = function(t) { 815 t.preventDefault() 816 }, this.getHashSelector = function(e) { 817 return e.substr(e.indexOf('#'), e.length - 1) 818 }
818, this.getSupportingUIElements = function() { 819 r.openButton = r.modal.parentNode, r.modalName = r.openButton.querySelector('.name').innerHTML.trim(); 820 var e = !0, 821 t = !1, 822 n = void 0; 823 try { 824 for (var l, a, o = r.modal.childNodes[Symbol.iterator](); !(e = (l = o.next()).done); e = !0) a = l.value, 'modal-close' === a.className && (r.closeButton = a), 'modal-content' === a.className && (r.content = a) 825 } catch (e) { 826 t = !0, n = e 827 } finally { 828 try { 829 !e && o.return && o.return() 830 } finally { 831 if (t) throw n 832 } 833 } 834 }, this.toggleModal = function() { 835 document.querySelector('body').classList.toggle('freeze'), r.modal.classList.toggle(r.activeClass), window.lazyloader && window.lazyloader.loadAll() 836 }, 'object' === ('undefined' == typeof t ? 'undefined' : l(t)) ? this.modal = t : 'string' == typeof t && (this.modal = document.querySelector(t)), this.get
836SupportingUIElements(); 837 var a = this.getHashSelector(window.location.href); 838 a === '#' + encodeURIComponent(this.modalName) && this.toggleModal(), this.bindEvents() 839 } 840 }, 841 29: function(e, t, n) { 842 'use strict'; 843 844 function l(e, t) { 845 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 846 } 847 Object.defineProperty(t, '__esModule', { 848 value: !0 849 }); 850 var r = function() { 851 function e(e, t) { 852 for (var n, l = 0; l < t.length; l++) n = t[l], n.enumerable = n.enumerable || !1, n.configurable = !0, 'value' in n && (n.writable = !0), Object.defineProperty(e, n.key, n) 853 } 854 return function(t, n, l) { 855 return n && e(t.prototype, n), l && e(t, l), t 856 } 857 }(), 858 a = n(7), 859 o = function(e) { 860 return e && e.__esModule ? e : { 861 default: e 862 } 863 }(a), 864 i = function() { 865 function e() { 866 var t = this; 867 l(this, e), this.headerNodes = document.querySelectorAll('.initiatives .h3-templates h3'), this.imageNodes = document.querySelectorAll('.initiatives .image-templates img'), this.textNodes = document.querySelectorAll('.initiatives .p-templates p'), this.listItems = document.querySelectorAll('.initiatives li.initiative'), this.learnMoreLinks = document.querySelectorAll('.initiatives a.cta'), this.activeIndex = 0, this.initialized = !1, this.init = function() { 868 if (t.listItems.length !== t.headerNodes.length || t.headerNodes.length !== t.imageNodes.length || t.imageNodes.length !== t.textNodes.length) throw new Error('Uneven number of nodes detected. header: ' + t.headerNodes.length + ' ,image: ' + t.imageNodes.length + ' text: ' + t.textNodes.length + ', listItems: ' + t.listItems.length + ' '); 869 t.bindEvents(), t.initialized = !0 870 }, this.bindEvents = function() { 871 for (var e = function(e) { 872 var n = t.listItems[e]; 873 n.addEventListener('mouseover', (0, o.default)(function() { 874 t.removeActiveOnAll(), n.classList.add('active'), t.activeIndex = e, t.showMatchingNodes(), t.hydrateLearnMoreURL() 875 }, 100)) 876 }, n = 0; n < t.listItems.length; n++) e(n) 877 }, this.onResize = function() { 878 768 <= window.innerWidth && !t.initialized && t.init() 879 }, this.removeActiveOnAll = function() { 880 for (var e = 0; e < t.listItems.length; e++) t.listItems[e].classList.remove('active'), t.headerNodes[e].classList.remove('active'), t.imageNodes[e].classList.remove('active'), t.textNodes[e].classList.remove('active') 881 }, this.hydrateLearnMoreURL = function() { 882 var e = !0, 883 n = !1, 884 l = void 0; 885 try { 886 for (var r, a, o = t.learnMoreLinks[Symbol.iterator](); !(e = (r = o.next()).done); e = !0) a = r.value, a.attributes.href.value = t.listItems[t.activeIndex].querySelector('a').attributes.href.value 887 } catch (e) { 888 n = !0, l = e 889 } finally { 890 try { 891 !e && o.return && o.return() 892 } finally { 893 if (n) throw l 894 } 895 } 896 }, window.addEventListener('resize', (0, o.default)(this.onResize, 150)), 768 <= window.innerWidth && (this.init(), this.hydrateLearnMoreURL()) 897 } 898 return r(e, [{ 899 key: 'showMatchingNodes', 900 value: function() { 901 this.headerNodes[this.activeIndex].classList.add('active'), this.imageNodes[this.activeIndex].classList.add('active'), this.textNodes[this.activeIndex].classList.add('active') 902 } 903 }]), e 904 }(); 905 t.default = i 906 }, 907 30: function(e, t) { 908 'use strict'; 909 910 function n(e) { 911 if (Array.isArray(e)) { 912 for (var t = 0, n = Array(e.length); t < e.length; t++) n[t] = e[t]; 913 return n 914 } 915 return Array.from(e) 916 } 917 918 function l(e, t) { 919 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 920 } 921 Object.defineProperty(t, '__esModule', { 922 value: !0 923 }); 924 var r = Object.assign || function(e) { 925 for (var t, n = 1; n < arguments.length; n++) 926 for (var l in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]); 927 return e 928 }; 929 t.default = function e(t) { 930 var a = this; 931 l(this, e), this.currentHash = window.location.hash, this.navElement = null, this.contentElements = null, this.navItems = [], this.navLinks = [], this.options = { 932 navSelector: 'ul.mini-nav', 933 contentSelector: '.content', 934 activeClass: 'active', 935 showAll: !0 936 }, this.info = function() { 937 console.log(a) 938 }, this.bindEvents = function() { 939 window.addEventListener('hashchange', function(t) { 940 t.newURL.includes('%20') || a.handleHashChange(t) 941 }); 942 var e = !0, 943 t = !1, 944 n = void 0; 945 try { 946 for (var l, r, o = a.navLinks[Symbol.iterator](); !(e = (l = o.next()).done); e = !0) r = l.value, r.addEventListener('click', function(t) { 947 t.preventDefault(); 948 var e = window.scrollY; 949 return window.location.hash = t.target.hash, window.scrollTo(0, e), !1 950 }) 951 } catch (e) { 952 t = !0, n = e 953 } finally { 954 try { 955 !e && o.return && o.return() 956 } finally { 957 if (t) throw n 958 } 959 } 960 }, this.handleHashChange = function(t) { 961 var e = !0, 962 n = !1, 963 l = void 0; 964 try { 965 for (var r, o, i = a.navItems[Symbol.iterator](); !(e = (r = i.next()).done); e = !0) o = r.value, o.classList.remove(a.options.activeClass) 966 } catch (e) { 967 n = !0, l = e 968 } finally { 969 try { 970 !e && i.return && i.return() 971 } finally { 972 if (n) throw l 973 } 974 } 975 var s = !0, 976 d = !1, 977 c = void 0; 978 try { 979 for (var u, g, p = a.contentElements[Symbol.iterator](); !(s = (u = p.next()).done); s = !0) g = u.value, g.classList.remove(a.options.activeClass) 980 } catch (e) { 981 d = !0, c = e 982 } finally { 983 try { 984 !s && p.return && p.return() 985 } finally { 986 if (d) throw c 987 } 988 } 989 var m = a.getHashSelector(t.newURL); 990 a.setActiveNavItem(m), a.setActiveContent(m) 991 }, this.setActiveNavItem = function(e) { 992 if (!e.includes('%20')) { 993 var t = document.querySelector('a[href="' + e + '"]'); 994 t && t.parentElement.classList.add(a.options.activeClass) 995 } 996 }, this.setActiveContent = function(e) { 997 e.includes('%20') || document.querySelector(e).classList.add(a.options.activeClass) 998 }, this.getUIElements = function() { 999 a.navElement = document.querySelector(a.options.navSelector), a.navItems = [].concat(n(a.navElement.children)), a.contentElements = document.querySelector(a.options.contentSelector).children, a.navLinks = document.querySelectorAll(a.options.navSelector + ' a') 1000 }, this.getHashSelector = function(e) { 1001 return e.substr(e.indexOf('#'), e.length - 1) 1002 }, this.checkForDirectURLInput = function() { 1003 if (a.currentHash) { 1004 var e = a.getHashSelector(window.location.href); 1005 a.setActiveNavItem(e), a.setActiveContent(e) 1006 } else if (a.options.showAll) { 1007 var t = !0, 1008 n = !1, 1009 l = void 0; 1010 try { 1011 for (var r, o, i = a.contentElements[Symbol.iterator](); !(t = (r = i.next()).done); t = !0) o = r.value, o.classList.add(a.options.activeClass) 1012 } catch (e) { 1013 n = !0, l = e 1014 } finally { 1015 try { 1016 !t && i.return && i.return() 1017 } finally { 1018 if (n) throw l 1019 } 1020 } 1021 } else a.navItems[0].classList.add(a.options.activeClass), a.contentElements[0].classList.add(a.options.activeClass) 1022 }, this.options = r({}, this.options, t), this.getUIElements(), this.checkForDirectURLInput(), this.bindEvents() 1023 } 1024 }, 1025 31: function(e, t) { 1026 'use strict'; 1027 1028 function n(e, t) { 1029 if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') 1030 } 1031 Object.defineProperty(t, '__esModule', { 1032 value: !0 1033 }); 1034 var l = Object.assign || function(e) { 1035 for (var t, n = 1; n < arguments.length; n++) 1036 for (var l in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, l) && (e[l] = t[l]); 1037 return e 1038 }; 1039 t.default = function e(t) { 1040 var r = this; 1041 n(this, e), this.options = {}, this.activeSlide = 0, this.count = 0, this.container = null, this.imageNodes = null, this.textNodes = null, this.prevButton = null, this.nextButton = null, this.info = function() { 1042 console.log(r) 1043 }, this.getDOMElements = function() { 1044 if (r.container = document.querySelector(r.options.elSelector), r.imageNodes = document.querySelectorAll(r.options.imageContainer), r.textNodes = document.querySelectorAll(r.options.textContainer), r.container.length) throw new Error('Your container selector was not found'); 1045 if (1 > r.imageNodes.length) throw new Error('your image nodes werent found'); 1046 if (1 > r.textNodes.length) throw new Error('your text nodes werent found'); 1047 if (r.imageNodes.length !== r.textNodes.length) throw new Error('Inequal number of images and text nodes'); 1048 r.prevButton = document.querySelector(r.options.prevButton), r.nextButton = document.querySelector(r.options.nextButton) 1049 }, this.bindEvents = function() { 1050 r.prevButton && r.nextButton && (r.prevButton.addEventListener('click', function() { 1051 r.prev() 1052 }), r.nextButton.addEventListener('click', function() { 1053 r.next() 1054 })) 1055 }, this.prev = function() { 1056 0 == r.activeSlide ? r.activeSlide = r.count - 1 : r.activeSlide -= 1, r.hideInactiveContent() 1057 }, this.next = function() { 1058 r.activeSlide == r.count - 1 ? r.activeSlide = 0 : r.activeSlide += 1, r.hideInactiveContent() 1059 }, this.hideInactiveContent = function() {
1060 r.imageNodes.forEach(function(e, t) { 1061 e.style.display = 'none', t === r.activeSlide && (e.style.display = 'block') 1062 }), r.textNodes.forEach(function(e, t) { 1063 e.style.display = 'none', t === r.activeSlide && (e.style.display = 'block', !r.imageNodes[t].hasAttribute('src') && r.imageNodes[t].setAttribute('src', r.imageNodes[t].getAttribute('data-src'))) 1064 }) 1065 }; 1066 this.options = l({}, { 1067 elSelector: '.testimonial-slider', 1068 imageContainer: '.testimonial-slider .slide img', 1069 textContainer: '.testimonial-slider .text .slide blockquote', 1070 prevButton: '.testimonial-slider .slider-controls .prev', 1071 nextButton: '.testimonial-slider .slider-controls .next' 1072 }, t), this.getDOMElements(), this.count = this.imageNodes.length, this.bindEvents() 1073 } 1074 }, 1075 7: function(e, t) { 1076 'use strict'; 1077 Object.defineProperty(t, '__esModule', { 1078 value: !0 1079 }), t.default = function(e) { 1080 var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : 100, 1081 n = void 0; 1082 return function() { 1083 for (var l = this, r = arguments.length, a = Array(r), o = 0; o < r; o++) a[o] = arguments[o]; 1084 clearTimeout(n), n = setTimeout(function() { 1085 e.apply(l, a) 1086 }, t) 1087 } 1088 } 1089 }, 1090 99: function(e, t, n) { 1091 'use strict'; 1092 1093 function l(e) { 1094 return e && e.__esModule ? e : { 1095 default: e 1096 } 1097 } 1098 var r = n(100), 1099 a = l(r), 1100 o = n(101), 1101 s = l(o), 1102 i = n(102), 1103 d = l(i), 1104 c = n(103), 1105 u = l(c), 1106 g = n(30), 1107 p = l(g), 1108 m = n(13), 1109 v = l(m), 1110 h = n(29), 1111 f = l(h), 1112 y = n(31), 1113 E = l(y), 1114 b = n(104), 1115 S = n(105), 1116 L = l(S), 1117 _ = n(12), 1118 k = l(_); 1119 (function() { 1120 console.log('main.js connected'), /*new s.default({ 1121 container: '#primary-nav', 1122 toggleSelector: 'button.mobile-menu-button' 1123 }), */window.lazyloader = new a.default({ 1124 elements_selector: '.lazy' 1125 }), window.lazyloader.loadAll()/*, new d.default*/; 1126 var e = document.querySelectorAll('.accordion'); 1127 if (1 <= e.length && (window.accordions = new u.default, 1 < e.length && (0, b.createExpandBtn)(e)), document.querySelector('ul.mini-nav:not(.staff-nav)') && new p.default({ 1128 showAll: !1 1129 }), 1 <= document.querySelectorAll('.modal').length) { 1130 var t = !0, 1131 n = !1, 1132 l = void 0; 1133 try { 1134 for (var r, o, c = document.querySelectorAll('.modal')[Symbol.iterator](); !(t = (r = c.next()).done); t = !0) o = r.value, new v.default(o) 1135 } catch (e) { 1136 n = !0, l = e 1137 } finally { 1138 try { 1139 !t && c.return && c.return() 1140 } finally { 1141 if (n) throw l 1142 } 1143 } 1144 } 1145 if (document.querySelector('.hover-tabs') && new f.default, document.querySelector('.testimonial-slider') && new E.default, document.querySelector('.wp-block-gallery.is-style-slider')) { 1146 var g = void 0, 1147 m = void 0, 1148 h = new k.default({ 1149 selector: '.wp-block-gallery.is-style-slider', 1150 loop: !0, 1151 onInit: function() { 1152 m = (0, _.makeNavigationArrows)('.wp-block-gallery.is-style-slider'), g = (0, _.makeNavigationDots)(this.innerElements.length, '.wp-block-gallery.is-style-slider') 1153 }, 1154 onChange: function() { 1155 var e = !0, 1156 t = !1, 1157 n = void 0; 1158 try { 1159 for (var l, r, a = g[Symbol.iterator](); !(e = (l = a.next()).done); e = !0) r = l.value, r.classList.remove('fa-circle') 1160 } catch (e) { 1161 t = !0, n = e 1162 } finally { 1163 try { 1164 !e && a.return && a.return() 1165 } finally { 1166 if (t) throw n 1167 } 1168 } 1169 g[this.currentSlide].classList.add('fa-circle') 1170 } 1171 }); 1172 g.forEach(function(e, t) { 1173 e.addEventListener('click', function() { 1174 h.goTo(t) 1175 }) 1176 }), m.forEach(function(e, t) { 1177 e.addEventListener('click', function() { 1178 1 == t % 2 ? h.next() : h.prev() 1179 }) 1180 }), window.addEventListener('keyup', function(t) { 1181 switch (t.keyCode) { 1182 case 39: 1183 t.preventDefault(), h.next(); 1184 break; 1185 case 37: 1186 t.preventDefault(), h.prev(); 1187 break; 1188 case 13: 1189 t.preventDefault(), h.goTo(0); 1190 break; 1191 default: 1192 } 1193 }) 1194 } 1195 if (document.querySelector('section.people')) 1196 for (var y = document.querySelectorAll('section.people'), S = 0; S < y.length; S++) 1 === y[S].childElementCount ? y[S].classList.add('single-person') : 2 === y[S].childElementCount && y[S].classList.add('two-people'); 1197 (0, L.default)() 1198 })() 1199 } 1200});
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.