1// Eliminate FOIT (Flash of Invisible Text) caused by web fonts loading slowly 2// using font events with Font Face Observer. 3(function ($) { 4 5 "use strict"; 6 7 Drupal.behaviors.atFFOI = { 8 attach: function () { 9 10 $('html').addClass('fa-loading'); 11 12 var fontObserver = new FontFaceObserver('FontAwesome'); 13 14 // Because we are loading an icon font we need a unicode code point. 15 fontObserver.load('\uf287\uf142\uf0fc').then(function () { 16 $('html').removeClass('fa-loading').addClass('fa-loaded'); 17 }, function() { 18 $('html').removeClass('fa-loading').addClass('fa-unavailable'); 19 }); 20 21 } 22 }; 23}(jQuery));; 24!function(t,a){"use strict";Drupal.behaviors.atLayoutLoad={attach:function(i){a.matchMedia("only screen").matches&&(t.fn.switchClass=function(a,i){var s=new RegExp("\\s"+a.replace(/\*/g,"[A-Za-z0-9-_]+").split(" ").join("\\s|\\s")+"\\s","g");return this.each(function(a,i){for(var e=" "+i.className+" ";s.test(e);)e=e.replace(s," ");i.className=t.trim(e)}),i?this.addClass(i):this},a.matchMedia("(min-width: 320px)").matches&&t(i).find(".regions").once("atLayoutLoad").each(function(){t(this).find(".region").filter(function(){return!t(this).find(".l-bl, .panel-panel").length}).removeAttr("data-at-region").prop("hidden",!0);var a=t(this).find(".region").map(function(){return t(this).attr("data-at-region")}).get().join("-");if(a){var i="hr--"+a,s="arc--"+t(this).children.length;t(this).hasClass(i)||t(this).switchClass("arc-*",s).switchClass("hr-*",i),t(this).attr("data-at-regions","has-regions")}else t(this).parents(".page__row").prop("hidden",!0)}))}}}(jQuery,window); 25 26/** 27* DO NOT EDIT THIS FILE. 28* See the following change record for more information, 29* https://www.drupal.org/node/2815083 30* @preserve 31**/ 32(function (Drupal, debounce) { 33 var liveElement; 34 var announcements = []; 35 Drupal.behaviors.drupalAnnounce = { 36 attach: function attach(context) { 37 if (!liveElement) { 38 liveElement = document.createElement('div'); 39 liveElement.id = 'drupal-live-announce'; 40 liveElement.className = 'visually-hidden'; 41 liveElement.setAttribute('aria-live', 'polite'); 42 liveElement.setAttribute('aria-busy', 'false'); 43 document.body.appendChild(liveElement); 44 } 45 } 46 }; 47 function announce() { 48 var text = []; 49 var priority = 'polite'; 50 var announcement; 51 var il = announcements.length; 52 for (var i = 0; i < il; i++) { 53 announcement = announcements.pop(); 54 text.unshift(announcement.text); 55 if (announcement.priority === 'assertive') { 56 priority = 'assertive'; 57 } 58 } 59 if (text.length) { 60 liveElement.innerHTML = ''; 61 liveElement.setAttribute('aria-busy', 'true'); 62 liveElement.setAttribute('aria-live', priority); 63 liveElement.innerHTML = text.join('\n'); 64 liveElement.setAttribute('aria-busy', 'false'); 65 } 66 } 67 Drupal.announce = function (text, priority) { 68 announcements.push({ 69 text: text, 70 priority: priority 71 }); 72 return debounce(announce, 200)(); 73 }; 74})(Drupal, Drupal.debounce);; 75/** 76* DO NOT EDIT THIS FILE. 77* See the following change record for more information, 78* https://www.drupal.org/node/2815083 79* @preserve 80**/ 81function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } 82function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 83function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } 84function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } 85function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string");
85 return _typeof(key) === "symbol" ? key : String(key); } 86function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } 87(function (Drupal) { 88 Drupal.Message = function () { 89 function _class() { 90 var messageWrapper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; 91 _classCallCheck(this, _class); 92 if (!messageWrapper) { 93 this.messageWrapper = Drupal.Message.defaultWrapper(); 94 } else { 95 this.messageWrapper = messageWrapper; 96 } 97 } 98 _createClass(_class, [{ 99 key: "add", 100 value: function add(message) { 101 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; 102 if (!options.hasOwnProperty('type')) { 103 options.type = 'status'; 104 } 105 if (typeof message !== 'string') { 106 throw new Error('Message must be a string.'); 107 } 108 Drupal.Message.announce(message, options); 109 options.id = options.id ? String(options.id) : "".concat(options.type, "-").concat(Math.random().toFixed(15).replace('0.', '')); 110 if (!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)) { 111 var type = options.type; 112 throw new Error("The message type, ".concat(type, ", is not present in Drupal.Message.getMessageTypeLabels().")); 113 } 114 this.messageWrapper.appendChild(Drupal.theme('message', { 115 text: message 116 }, options)); 117 return options.id; 118 } 119 }, { 120 key: "select", 121 value: function select(id) { 122 return this.messageWrapper.querySelector("[data-drupal-message-id^=\"".concat(id, "\"]")); 123 } 124 }, { 125 key: "remove", 126 value: function remove(id) { 127 return this.messageWrapper.removeChild(this.select(id)); 128 } 129 }, { 130 key: "clear", 131 value: function clear() { 132 var _this = this; 133 Array.prototype.forEach.call(this.messageWrapper.querySelectorAll('[data-drupal-message-id]'), function (message) { 134 _this.messageWrapper.removeChild(message); 135 }); 136 } 137 }], [{ 138 key: "defaultWrapper", 139 value: function defaultWrapper() { 140 var wrapper = document.querySelector('[data-drupal-messages]'); 141 if (!wrapper) { 142 wrapper = document.querySelector('[data-drupal-messages-fallback]'); 143 wrapper.removeAttribute('data-drupal-messages-fallback'); 144 wrapper.setAttribute('data-drupal-messages', ''); 145 wrapper.classList.remove('hidden'); 146 } 147 return wrapper.innerHTML === '' ? Drupal.Message.messageInternalWrapper(wrapper) : wrapper.firstElementChild; 148 } 149 }, { 150 key: "getMessageTypeLabels", 151 value: function getMessageTypeLabels() { 152 return { 153 status: Drupal.t('Status message'), 154 error: Drupal.t('Error message'), 155 warning: Drupal.t('Warning message') 156 }; 157 } 158 }, { 159 key: "announce", 160 value: function announce(message, options) { 161 if (!options.priority && (options.type === 'warning' || options.type === 'error')) { 162 options.priority = 'assertive'; 163 } 164 if (options.announce !== '') { 165 Drupal.announce(options.announce || message, options.priority); 166 } 167 } 168 }, { 169 key: "messageInternalWrapper", 170 value: function messageInternalWrapper(messageWrapper) { 171 var innerWrapper = document.createElement('div'); 172 innerWrapper.setAttribute('class', 'messages__wrapper'); 173 messageWrapper.insertAdjacentElement('afterbegin', innerWrapper); 174 return innerWrapper; 175 } 176 }]); 177 return _class; 178 }(); 179 Drupal.theme.message = function (_ref, _ref2) { 180 var text = _ref.text; 181 var type = _ref2.type, 182 id = _ref2.id;
183 var messagesTypes = Drupal.Message.getMessageTypeLabels(); 184 var messageWrapper = document.createElement('div'); 185 messageWrapper.setAttribute('class', "messages messages--".concat(type)); 186 messageWrapper.setAttribute('role', type === 'error' || type === 'warning' ? 'alert' : 'status'); 187 messageWrapper.setAttribute('data-drupal-message-id', id); 188 messageWrapper.setAttribute('data-drupal-message-type', type); 189 messageWrapper.setAttribute('aria-label', messagesTypes[type]); 190 messageWrapper.innerHTML = "".concat(text); 191 return messageWrapper; 192 }; 193})(Drupal);;
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.