1// import ImageResizing from './lib/image-resizing'; 2/******/ (function() { // webpackBootstrap 3/******/ var __webpack_modules__ = ({ 4
5/***/ "./js/lib/array.find.polyfill.jsx": 6/*!****************************************!*\ 7 !*** ./js/lib/array.find.polyfill.jsx ***! 8 \****************************************/ 9/***/ (function() { 10 11// https://tc39.github.io/ecma262/#sec-array.prototype.find 12if (!Array.prototype.find) { 13 Object.defineProperty(Array.prototype, 'find', { 14 value: function value(predicate) { 15 // 1. Let O be ? ToObject(this value). 16 if (this == null) { 17 throw TypeError('"this" is null or not defined'); 18 } 19 var o = Object(this); 20 21 // 2. Let len be ? ToLength(? Get(O, "length")). 22 var len = o.length >>> 0; 23 24 // 3. If IsCallable(predicate) is false, throw a TypeError exception. 25 if (typeof predicate !== 'function') { 26 throw TypeError('predicate must be a function'); 27 } 28 29 // 4. If thisArg was supplied, let T be thisArg; else let T be undefined. 30 var thisArg = arguments[1]; 31 32 // 5. Let k be 0. 33 var k = 0; 34 35 // 6. Repeat, while k < len 36 while (k < len) { 37 // a. Let Pk be ! ToString(k). 38 // b. Let kValue be ? Get(O, Pk). 39 // c. Let testResult be ToBoolean(? Call(predicate, T, « kValue, k, O »)). 40 // d. If testResult is true, return kValue. 41 var kValue = o[k]; 42 if (predicate.call(thisArg, kValue, k, o)) { 43 return kValue; 44 } 45 // e. Increase k by 1. 46 k++; 47 } 48 49 // 7. Return undefined. 50 return undefined; 51 }, 52 configurable: true, 53 writable: true 54 }); 55} 56 57/***/ })
57 58 59/******/ }); 60/************************************************************************/ 61/******/ // The module cache 62/******/ var __webpack_module_cache__ = {}; 63/******/ 64/******/ // The require function 65/******/ function __webpack_require__(moduleId) { 66/******/ // Check if module is in cache 67/******/ var cachedModule = __webpack_module_cache__[moduleId]; 68/******/ if (cachedModule !== undefined) { 69/******/ return cachedModule.exports; 70/******/ } 71/******/ // Create a new module (and put it into the cache) 72/******/ var module = __webpack_module_cache__[moduleId] = { 73/******/ // no module.id needed 74/******/ // no module.loaded needed 75/******/ exports: {} 76/******/ }; 77/******/ 78/******/ // Execute the module function 79/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__); 80/******/ 81/******/ // Return the exports of the module 82/******/ return module.exports; 83/******/ } 84/******/ 85/************************************************************************/ 86/******/ /* webpack/runtime/compat get default export */ 87/******/ !function() { 88/******/ // getDefaultExport function for compatibility with non-harmony modules 89/******/ __webpack_require__.n = function(module) { 90/******/ var getter = module && module.__esModule ? 91/******/ function() { return module['default']; } : 92/******/ function() { return module; }; 93/******/ __webpack_require__.d(getter, { a: getter }); 94/******/ return getter; 95/******/ }; 96/******/ }(); 97/******/ 98/******/ /* webpack/runtime/define property getters */ 99/******/ !function() { 100/******/ // define getter functions for harmony exports 101/******/ __webpack_require__.d = function(exports, definition) { 102/******/ for(var key in definition) { 103/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { 104/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); 105/******/ } 106/******/ } 107/******/ }; 108/******/ }(); 109/******/ 110/******/ /* webpack/runtime/hasOwnProperty shorthand */ 111/******/ !function() { 112/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } 113/******/ }(); 114/******/ 115/******/ /* webpack/runtime/make namespace object */ 116/******/ !function() { 117/******/ // define __esModule on exports 118/******/ __webpack_require__.r = function(exports) { 119/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { 120/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); 121/******/ } 122/******/ Object.defineProperty(exports, '__esModule', { value: true }); 123/******/ }; 124/******/ }(); 125/******/ 126/************************************************************************/ 127var __webpack_exports__ = {}; 128// This entry need to be wrapped in an IIFE because it need to be in strict mode. 129!function() { 130"use strict"; 131/*!*********************!*\ 132 !*** ./js/main.jsx ***! 133 \*********************/ 134__webpack_require__.r(__webpack_exports__); 135/* harmony import */ var _lib_array_find_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/array.find.polyfill */ "./js/lib/array.find.polyfill.jsx"); 136/* harmony import */ var _lib_array_find_polyfill__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_lib_array_find_polyfill__WEBPACK_IMPORTED_MODULE_0__); 137// import ImageResizing from './lib/image-resizing'; 138 139jQuery(function ($) { 140 // resize-end event npm module 141 (function () { 142 "use strict"; 143 144 var TIMEOUT = 200, 145 EVENT_KEY = 'resizeend', 146 $window = $(window), 147 timer; 148 window.addEventListener('resize', function () { 149 clearTimeout(timer); 150 timer = setTimeout(function () { 151 $(window).trigger(EVENT_KEY); 152 }, TIMEOUT); 153 }); 154 })(); 155 jQuery('.site-header').each(function () { 156 var $buttons = jQuery(this).find('button'); 157 function toggleMenuButton($button) { 158 var $target = jQuery("#" + $button.attr('aria-controls')); 159 var isExpanded = $button.attr('aria-expanded') === 'true'; 160 var $allControls = jQuery('[aria-controls="' + $button.attr('aria-controls') + '"]'); 161 $allControls.attr('aria-expanded', isExpanded ? 'false' : 'true'); 162 if ($target.length > 0) { 163 $target.toggleClass('is-visible', $button.attr('aria-expanded')); 164 $target.find($allControls).first().focus(); 165 } 166 var nextExpanded = !isExpanded; 167 jQuery('body').toggleClass('lock-scrolling', nextExpanded); 168 if (!nextExpanded) { 169 $button.focus(); 170 } 171 return nextExpanded; 172 } 173 $buttons.each(function () { 174 var $button = jQuery(this); 175 var $allControls = jQuery('[aria-controls="' + $button.attr('aria-controls') + '"]'); 176 $allControls.on('click', function () { 177 var isExpanded = toggleMenuButton($button); 178 }); 179 }); 180 }); 181 jQuery('.menu').each(function () { 182 var $items = jQuery(this).find('li'); 183 $items.each(function () { 184 var $item = jQuery(this); 185 var $link = $item.children('a');
186 var $toggle = $item.children('.sub-menu-toggle'); 187 var $expandOnClick = $toggle; 188 if ($link.attr('href') === '#') { 189 $expandOnClick = $expandOnClick.add($link); 190 } 191 $expandOnClick.on('click', function (e) { 192 if (e.target.tagName === 'A') { 193 e.preventDefault(); 194 } 195 var isExpanded = $toggle.attr('aria-expanded') === 'true'; 196 $toggle.attr('aria-expanded', isExpanded ? 'false' : 'true'); 197 }); 198 }); 199 }); 200 // cool little helper to detect touch support (once user touches screen) 201 jQuery(window).one('touchstart.detect-touch', function () { 202 jQuery('body').addClass('is-touch'); 203 }); 204 205 // ie11 classes 206 var lessThanIE11 = navigator.userAgent.indexOf("MSIE") >= 0; 207 if (lessThanIE11) { 208 jQuery('body').addClass('lessthan-ie11'); 209 } 210 var isIE11 = !!window.MSInputMethodContext && !!document.documentMode; 211 $('body').toggleClass('ie11', isIE11); 212 if ($.magnificPopup) { 213 jQuery.extend(true, $.magnificPopup.defaults, { 214 mainClass: 'mfp-zoom-out', 215 removalDelay: 300, 216 closeBtnInside: true, 217 callbacks: { 218 change: function change() { 219 jQuery(window).trigger('resizeend'); 220 }, 221 open: function open() { 222 jQuery(window).trigger('resizeend'); 223 } 224 } 225 }); 226 } 227 if (typeof AOS !== 'undefined') { 228 AOS.init({ 229 disable: 'mobile' 230 }); 231 } 232 233 // responsive tables 234 $('#content').find('.wp-block-table').each(function () { 235 var $el = jQuery(this); 236 var $table = $el.children('table'); 237 if ($table.length === 0) return; 238 function handleResize() { 239 $table.addClass('auto-width'); 240 var w = $el.width();
241 var tw = $table.width(); 242 $el.toggleClass('is-scrollable', tw > w); 243 $table.removeClass('auto-width'); 244 } 245 jQuery(window).on('load resizeend', function () { 246 handleResize(); 247 }); 248 handleResize(); 249 }); 250 251 // responsive inline images 252 // new ImageResizing({ 253 // minTextSpace: 200 254 // }); 255}); 256}(); 257/******/ })() 258;
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.