vliz-be-theme 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +50 -0
  4. data/_config.yml +4 -0
  5. data/_data/articles.yml +43 -0
  6. data/_data/bg_with_block.yml +5 -0
  7. data/_data/carrousel.yml +28 -0
  8. data/_data/carrousel_two.yml +33 -0
  9. data/_data/main_banner.yml +24 -0
  10. data/_data/simple_questions.yml +16 -0
  11. data/_includes/banner/banner.html +50 -0
  12. data/_includes/banner/main.html +35 -0
  13. data/_includes/banner/topic.html +20 -0
  14. data/_includes/block_gallery_cards/card.html +36 -0
  15. data/_includes/block_gallery_cards/first_card.html +50 -0
  16. data/_includes/block_gallery_cards/main.html +40 -0
  17. data/_includes/carrousel_block/item.html +21 -0
  18. data/_includes/carrousel_block/main.html +22 -0
  19. data/_includes/carrousel_w_waves/item.html +27 -0
  20. data/_includes/carrousel_w_waves/main.html +39 -0
  21. data/_includes/footer/main.html +312 -0
  22. data/_includes/image_bg_white_card/main.html +26 -0
  23. data/_includes/image_w_descr_curly/main.html +48 -0
  24. data/_includes/light_bg_block/item.html +12 -0
  25. data/_includes/light_bg_block/main.html +19 -0
  26. data/_includes/mobile-overlay/main.html +419 -0
  27. data/_includes/navigation/main.html +515 -0
  28. data/_includes/navigation/search-overlay.html +49 -0
  29. data/_includes/no_bg_cards/item.html +24 -0
  30. data/_includes/no_bg_cards/main.html +21 -0
  31. data/_includes/no_bg_colored_blocks/item.html +19 -0
  32. data/_includes/no_bg_colored_blocks/main.html +34 -0
  33. data/_includes/simple_color_boxes/item.html +11 -0
  34. data/_includes/simple_color_boxes/main.html +29 -0
  35. data/_layouts/default.html +150 -0
  36. data/_layouts/page.html +5 -0
  37. data/_layouts/post.html +5 -0
  38. data/assets/core/misc/Vlaanderen_verbeelding werkt.png +0 -0
  39. data/assets/core/misc/bib_publications_bg.jpg +0 -0
  40. data/assets/core/misc/calendar.svg +1 -0
  41. data/assets/core/misc/check.svg +1 -0
  42. data/assets/core/misc/close.png +0 -0
  43. data/assets/core/misc/error.svg +1 -0
  44. data/assets/core/misc/gradient.png +0 -0
  45. data/assets/core/misc/loading-small.gif +0 -0
  46. data/assets/core/misc/move.svg +1 -0
  47. data/assets/core/misc/person.svg +1 -0
  48. data/assets/core/misc/privacyshield.png +0 -0
  49. data/assets/core/misc/share-Facebook.png +0 -0
  50. data/assets/core/misc/share-Fave.png +0 -0
  51. data/assets/core/misc/share-LinkedIn.png +0 -0
  52. data/assets/core/misc/share-Mailto.png +0 -0
  53. data/assets/core/misc/share-Print.png +0 -0
  54. data/assets/core/misc/share-RSS.png +0 -0
  55. data/assets/core/misc/share-Twitter.png +0 -0
  56. data/assets/core/misc/swoosh.svg +3 -0
  57. data/assets/core/misc/swoosh_bg.svg +11 -0
  58. data/assets/core/misc/throbber-active.gif +0 -0
  59. data/assets/core/misc/throbber-inactive.png +0 -0
  60. data/assets/core/misc/tree-bottom.png +0 -0
  61. data/assets/core/misc/tree.png +0 -0
  62. data/assets/core/misc/twistie-down.svg +1 -0
  63. data/assets/core/misc/twistie-up.svg +1 -0
  64. data/assets/core/misc/warning.svg +1 -0
  65. data/assets/core/misc/west_vlaanderen_logo.png +0 -0
  66. data/assets/css/custom_style.css +5 -0
  67. data/assets/css/stylesheet_one.css +2461 -0
  68. data/assets/css/stylesheet_two.css +9753 -0
  69. data/assets/css/tablesaw-base.css +601 -0
  70. data/assets/css/tablesaw-responsive.css +189 -0
  71. data/assets/js/brands.js +3448 -0
  72. data/assets/js/fontawesome-icons.js +6 -0
  73. data/assets/js/fontawesome.js +2355 -0
  74. data/assets/js/regular.js +1354 -0
  75. data/assets/js/script_one.js +3361 -0
  76. data/assets/js/script_three.js +1160 -0
  77. data/assets/js/script_two.js +3913 -0
  78. data/assets/js/solid.js +9921 -0
  79. data/assets/js/tablesaw-init.js +18 -0
  80. data/assets/js/tablesaw.min.js +1408 -0
  81. data/assets/media/img/SquidRNA.webp +0 -0
  82. data/assets/media/img/graph_concept_art.jpg +0 -0
  83. data/assets/media/img/placeholder.png +0 -0
  84. data/assets/media/video/Homepage_website_SimonStevin.mp4 +0 -0
  85. metadata +140 -0
@@ -0,0 +1,3913 @@
1
+ (() => {
2
+ var t = {
3
+ 792: () => {
4
+ !(function (t, e) {
5
+ t.behaviors.vlizAccordeon = {
6
+ attach: function (t, n) {
7
+ var i = e(".vliz-accordeon-item", ".vliz-accordeon .views-row");
8
+ i.forEach(function (t) {
9
+ t.addEventListener("click", function (e) {
10
+ i.forEach(function (e) {
11
+ e !== t && e.classList.remove("active");
12
+ }),
13
+ t.classList.contains("active")
14
+ ? t.classList.remove("active")
15
+ : (t.classList.add("active"),
16
+ t.scrollIntoView({
17
+ behavior: "smooth",
18
+ block: "end",
19
+ inline: "nearest",
20
+ }));
21
+ });
22
+ });
23
+ },
24
+ };
25
+ })(Drupal, once);
26
+ },
27
+ 180: () => {
28
+ !(function (t, e) {
29
+ var n = "active",
30
+ i = !1;
31
+ t.behaviors.vlizDoormat = {
32
+ attach: function (t, a) {
33
+ var o = e("doormat-triggers", "header [data-doormat-target]"),
34
+ r = e("doormat-targets", "[data-doormat-id]"),
35
+ s = function () {
36
+ o.forEach(function (t) {
37
+ t.classList.remove(n);
38
+ });
39
+ };
40
+ o.forEach(function (t) {
41
+ t.addEventListener("click", function (e) {
42
+ e.preventDefault(),
43
+ s(),
44
+ r.forEach(function (e) {
45
+ e.dataset.doormatId == t.dataset.doormatTarget
46
+ ? e.classList.contains(n)
47
+ ? ((i = !1),
48
+ e.classList.remove(n),
49
+ t.classList.remove(n))
50
+ : ((i = !0), e.classList.add(n), t.classList.add(n))
51
+ : e.classList.remove(n);
52
+ });
53
+ });
54
+ }),
55
+ document.addEventListener("click", function (t) {
56
+ i &&
57
+ !t.target.closest("header") &&
58
+ (s(),
59
+ r.forEach(function (t) {
60
+ t.classList.remove(n);
61
+ }));
62
+ });
63
+ },
64
+ };
65
+ })(Drupal, once);
66
+ },
67
+ 709: () => {
68
+ !(function (t, e) {
69
+ var n = "vliz-mobile-nav-active";
70
+ t.behaviors.vlizMobilenav = {
71
+ attach: function (t, i) {
72
+ var a = e("hamburger-toggle", "button.hamburger"),
73
+ o = e(
74
+ "expanded-menu-items",
75
+ ".region-mobile-overlay li.menu-item--expanded"
76
+ );
77
+ a.forEach(function (t) {
78
+ t.addEventListener("click", function (e) {
79
+ e.preventDefault();
80
+ var i = document.querySelector(".region-mobile-overlay");
81
+ i &&
82
+ (t.classList.toggle("is-active"),
83
+ i.classList.toggle("is-active"),
84
+ document.body.classList.contains(n)
85
+ ? setTimeout(function () {
86
+ document.body.classList.remove(n);
87
+ }, 100)
88
+ : document.body.classList.add(n));
89
+ });
90
+ }),
91
+ o.forEach(function (t) {
92
+ var e = t.querySelector(":scope > ul.menu"),
93
+ n = t.querySelector(":scope > span");
94
+ e &&
95
+ n &&
96
+ n.addEventListener("click", function (e) {
97
+ var n;
98
+ e.preventDefault(),
99
+ (n = t).classList.contains("menu-active")
100
+ ? n.classList.remove("menu-active")
101
+ : n.classList.add("menu-active");
102
+ });
103
+ });
104
+ },
105
+ };
106
+ })(Drupal, once);
107
+ },
108
+ 904: () => {
109
+ !(function (t, e) {
110
+ var n = function (t) {
111
+ t.classList.contains("show-overlay")
112
+ ? (t.classList.remove("show-overlay"),
113
+ document.body.classList.remove("vliz-search-overlay-open"))
114
+ : ((t.style.display = "block"),
115
+ setTimeout(function () {
116
+ t.classList.add("show-overlay"),
117
+ document.body.classList.add("vliz-search-overlay-open");
118
+ }, 20),
119
+ t.querySelector(".form-search").focus());
120
+ };
121
+ t.behaviors.vlizSearch = {
122
+ attach: function (t, i) {
123
+ var a = e("vliz-search-submit-icons", ".vliz-search-submit"),
124
+ o = e(
125
+ "vliz-search-overlays",
126
+ ".block-vliz-search-block"
127
+ ).shift();
128
+ if (
129
+ (a.forEach(function (t) {
130
+ t.addEventListener("click", function (e) {
131
+ e.preventDefault();
132
+ var n = t.closest("form");
133
+ n && n.submit();
134
+ });
135
+ }),
136
+ o)
137
+ ) {
138
+ var r = e(
139
+ "vliz-search-overlay-trigger",
140
+ ".vliz-search-trigger"
141
+ ).shift(),
142
+ s = o.querySelector(".close-search-overlay");
143
+ document.body.addEventListener("keydown", function (t) {
144
+ "Escape" == t.key &&
145
+ o.classList.contains("show-overlay") &&
146
+ n(o);
147
+ }),
148
+ o.addEventListener("transitionend", function () {
149
+ o.classList.contains("show-overlay") ||
150
+ setTimeout(function () {
151
+ o.style.display = "none";
152
+ }, 20);
153
+ }),
154
+ s.addEventListener("click", function (t) {
155
+ t.preventDefault(), n(o);
156
+ }),
157
+ r &&
158
+ r.addEventListener("click", function (t) {
159
+ t.preventDefault(), n(o);
160
+ });
161
+ }
162
+ },
163
+ };
164
+ })(Drupal, once);
165
+ },
166
+ 206: (t, e) => {
167
+ "use strict";
168
+ var n = window,
169
+ i =
170
+ n.requestAnimationFrame ||
171
+ n.webkitRequestAnimationFrame ||
172
+ n.mozRequestAnimationFrame ||
173
+ n.msRequestAnimationFrame ||
174
+ function (t) {
175
+ return setTimeout(t, 16);
176
+ },
177
+ a = window,
178
+ o =
179
+ a.cancelAnimationFrame ||
180
+ a.mozCancelAnimationFrame ||
181
+ function (t) {
182
+ clearTimeout(t);
183
+ };
184
+ function r() {
185
+ for (
186
+ var t, e, n, i = arguments[0] || {}, a = 1, o = arguments.length;
187
+ a < o;
188
+ a++
189
+ )
190
+ if (null !== (t = arguments[a]))
191
+ for (e in t) i !== (n = t[e]) && void 0 !== n && (i[e] = n);
192
+ return i;
193
+ }
194
+ function s(t) {
195
+ return ["true", "false"].indexOf(t) >= 0 ? JSON.parse(t) : t;
196
+ }
197
+ function c(t, e, n, i) {
198
+ if (i)
199
+ try {
200
+ t.setItem(e, n);
201
+ } catch (t) {}
202
+ return n;
203
+ }
204
+ function l() {
205
+ var t = document,
206
+ e = t.body;
207
+ return e || ((e = t.createElement("body")).fake = !0), e;
208
+ }
209
+ var u = document.documentElement;
210
+ function f(t) {
211
+ var e = "";
212
+ return (
213
+ t.fake &&
214
+ ((e = u.style.overflow),
215
+ (t.style.background = ""),
216
+ (t.style.overflow = u.style.overflow = "hidden"),
217
+ u.appendChild(t)),
218
+ e
219
+ );
220
+ }
221
+ function d(t, e) {
222
+ t.fake && (t.remove(), (u.style.overflow = e), u.offsetHeight);
223
+ }
224
+ function v(t, e, n, i) {
225
+ "insertRule" in t
226
+ ? t.insertRule(e + "{" + n + "}", i)
227
+ : t.addRule(e, n, i);
228
+ }
229
+ function p(t) {
230
+ return ("insertRule" in t ? t.cssRules : t.rules).length;
231
+ }
232
+ function m(t, e, n) {
233
+ for (var i = 0, a = t.length; i < a; i++) e.call(n, t[i], i);
234
+ }
235
+ var h = "classList" in document.createElement("_"),
236
+ y = h
237
+ ? function (t, e) {
238
+ return t.classList.contains(e);
239
+ }
240
+ : function (t, e) {
241
+ return t.className.indexOf(e) >= 0;
242
+ },
243
+ g = h
244
+ ? function (t, e) {
245
+ y(t, e) || t.classList.add(e);
246
+ }
247
+ : function (t, e) {
248
+ y(t, e) || (t.className += " " + e);
249
+ },
250
+ b = h
251
+ ? function (t, e) {
252
+ y(t, e) && t.classList.remove(e);
253
+ }
254
+ : function (t, e) {
255
+ y(t, e) && (t.className = t.className.replace(e, ""));
256
+ };
257
+ function x(t, e) {
258
+ return t.hasAttribute(e);
259
+ }
260
+ function w(t, e) {
261
+ return t.getAttribute(e);
262
+ }
263
+ function L(t) {
264
+ return void 0 !== t.item;
265
+ }
266
+ function C(t, e) {
267
+ if (
268
+ ((t = L(t) || t instanceof Array ? t : [t]),
269
+ "[object Object]" === Object.prototype.toString.call(e))
270
+ )
271
+ for (var n = t.length; n--; )
272
+ for (var i in e) t[n].setAttribute(i, e[i]);
273
+ }
274
+ function T(t, e) {
275
+ t = L(t) || t instanceof Array ? t : [t];
276
+ for (
277
+ var n = (e = e instanceof Array ? e : [e]).length, i = t.length;
278
+ i--;
279
+
280
+ )
281
+ for (var a = n; a--; ) t[i].removeAttribute(e[a]);
282
+ }
283
+ function M(t) {
284
+ for (var e = [], n = 0, i = t.length; n < i; n++) e.push(t[n]);
285
+ return e;
286
+ }
287
+ function E(t, e) {
288
+ "none" !== t.style.display && (t.style.display = "none");
289
+ }
290
+ function k(t, e) {
291
+ "none" === t.style.display && (t.style.display = "");
292
+ }
293
+ function S(t) {
294
+ return "none" !== window.getComputedStyle(t).display;
295
+ }
296
+ function D(t) {
297
+ if ("string" == typeof t) {
298
+ var e = [t],
299
+ n = t.charAt(0).toUpperCase() + t.substr(1);
300
+ ["Webkit", "Moz", "ms", "O"].forEach(function (i) {
301
+ ("ms" === i && "transform" !== t) || e.push(i + n);
302
+ }),
303
+ (t = e);
304
+ }
305
+ var i = document.createElement("fakeelement");
306
+ t.length;
307
+ for (var a = 0; a < t.length; a++) {
308
+ var o = t[a];
309
+ if (void 0 !== i.style[o]) return o;
310
+ }
311
+ return !1;
312
+ }
313
+ function N(t, e) {
314
+ var n = !1;
315
+ return (
316
+ /^Webkit/.test(t)
317
+ ? (n = "webkit" + e + "End")
318
+ : /^O/.test(t)
319
+ ? (n = "o" + e + "End")
320
+ : t && (n = e.toLowerCase() + "end"),
321
+ n
322
+ );
323
+ }
324
+ var A = !1;
325
+ try {
326
+ var B = Object.defineProperty({}, "passive", {
327
+ get: function () {
328
+ A = !0;
329
+ },
330
+ });
331
+ window.addEventListener("test", null, B);
332
+ } catch (t) {}
333
+ var O = !!A && { passive: !0 };
334
+ function H(t, e, n) {
335
+ for (var i in e) {
336
+ var a = ["touchstart", "touchmove"].indexOf(i) >= 0 && !n && O;
337
+ t.addEventListener(i, e[i], a);
338
+ }
339
+ }
340
+ function z(t, e) {
341
+ for (var n in e) {
342
+ var i = ["touchstart", "touchmove"].indexOf(n) >= 0 && O;
343
+ t.removeEventListener(n, e[n], i);
344
+ }
345
+ }
346
+ function P() {
347
+ return {
348
+ topics: {},
349
+ on: function (t, e) {
350
+ (this.topics[t] = this.topics[t] || []), this.topics[t].push(e);
351
+ },
352
+ off: function (t, e) {
353
+ if (this.topics[t])
354
+ for (var n = 0; n < this.topics[t].length; n++)
355
+ if (this.topics[t][n] === e) {
356
+ this.topics[t].splice(n, 1);
357
+ break;
358
+ }
359
+ },
360
+ emit: function (t, e) {
361
+ (e.type = t),
362
+ this.topics[t] &&
363
+ this.topics[t].forEach(function (n) {
364
+ n(e, t);
365
+ });
366
+ },
367
+ };
368
+ }
369
+ Object.keys ||
370
+ (Object.keys = function (t) {
371
+ var e = [];
372
+ for (var n in t)
373
+ Object.prototype.hasOwnProperty.call(t, n) && e.push(n);
374
+ return e;
375
+ }),
376
+ "remove" in Element.prototype ||
377
+ (Element.prototype.remove = function () {
378
+ this.parentNode && this.parentNode.removeChild(this);
379
+ });
380
+ var I = function (t) {
381
+ t = r(
382
+ {
383
+ container: ".slider",
384
+ mode: "carousel",
385
+ axis: "horizontal",
386
+ items: 1,
387
+ gutter: 0,
388
+ edgePadding: 0,
389
+ fixedWidth: !1,
390
+ autoWidth: !1,
391
+ viewportMax: !1,
392
+ slideBy: 1,
393
+ center: !1,
394
+ controls: !0,
395
+ controlsPosition: "top",
396
+ controlsText: ["prev", "next"],
397
+ controlsContainer: !1,
398
+ prevButton: !1,
399
+ nextButton: !1,
400
+ nav: !0,
401
+ navPosition: "top",
402
+ navContainer: !1,
403
+ navAsThumbnails: !1,
404
+ arrowKeys: !1,
405
+ speed: 300,
406
+ autoplay: !1,
407
+ autoplayPosition: "top",
408
+ autoplayTimeout: 5e3,
409
+ autoplayDirection: "forward",
410
+ autoplayText: ["start", "stop"],
411
+ autoplayHoverPause: !1,
412
+ autoplayButton: !1,
413
+ autoplayButtonOutput: !0,
414
+ autoplayResetOnVisibility: !0,
415
+ animateIn: "tns-fadeIn",
416
+ animateOut: "tns-fadeOut",
417
+ animateNormal: "tns-normal",
418
+ animateDelay: !1,
419
+ loop: !0,
420
+ rewind: !1,
421
+ autoHeight: !1,
422
+ responsive: !1,
423
+ lazyload: !1,
424
+ lazyloadSelector: ".tns-lazy-img",
425
+ touch: !0,
426
+ mouseDrag: !1,
427
+ swipeAngle: 15,
428
+ nested: !1,
429
+ preventActionWhenRunning: !1,
430
+ preventScrollOnTouch: !1,
431
+ freezable: !0,
432
+ onInit: !1,
433
+ useLocalStorage: !0,
434
+ nonce: !1,
435
+ },
436
+ t || {}
437
+ );
438
+ var e = document,
439
+ n = window,
440
+ a = { ENTER: 13, SPACE: 32, LEFT: 37, RIGHT: 39 },
441
+ u = {},
442
+ h = t.useLocalStorage;
443
+ if (h) {
444
+ var L = navigator.userAgent,
445
+ A = new Date();
446
+ try {
447
+ (u = n.localStorage)
448
+ ? (u.setItem(A, A), (h = u.getItem(A) == A), u.removeItem(A))
449
+ : (h = !1),
450
+ h || (u = {});
451
+ } catch (t) {
452
+ h = !1;
453
+ }
454
+ h &&
455
+ (u.tnsApp &&
456
+ u.tnsApp !== L &&
457
+ [
458
+ "tC",
459
+ "tPL",
460
+ "tMQ",
461
+ "tTf",
462
+ "t3D",
463
+ "tTDu",
464
+ "tTDe",
465
+ "tADu",
466
+ "tADe",
467
+ "tTE",
468
+ "tAE",
469
+ ].forEach(function (t) {
470
+ u.removeItem(t);
471
+ }),
472
+ (localStorage.tnsApp = L));
473
+ }
474
+ var B = u.tC
475
+ ? s(u.tC)
476
+ : c(
477
+ u,
478
+ "tC",
479
+ (function () {
480
+ var t = document,
481
+ e = l(),
482
+ n = f(e),
483
+ i = t.createElement("div"),
484
+ a = !1;
485
+ e.appendChild(i);
486
+ try {
487
+ for (
488
+ var o,
489
+ r = "(10px * 10)",
490
+ s = ["calc" + r, "-moz-calc" + r, "-webkit-calc" + r],
491
+ c = 0;
492
+ c < 3;
493
+ c++
494
+ )
495
+ if (
496
+ ((o = s[c]),
497
+ (i.style.width = o),
498
+ 100 === i.offsetWidth)
499
+ ) {
500
+ a = o.replace(r, "");
501
+ break;
502
+ }
503
+ } catch (t) {}
504
+ return e.fake ? d(e, n) : i.remove(), a;
505
+ })(),
506
+ h
507
+ ),
508
+ O = u.tPL
509
+ ? s(u.tPL)
510
+ : c(
511
+ u,
512
+ "tPL",
513
+ (function () {
514
+ var t,
515
+ e = document,
516
+ n = l(),
517
+ i = f(n),
518
+ a = e.createElement("div"),
519
+ o = e.createElement("div"),
520
+ r = "";
521
+ (a.className = "tns-t-subp2"), (o.className = "tns-t-ct");
522
+ for (var s = 0; s < 70; s++) r += "<div></div>";
523
+ return (
524
+ (o.innerHTML = r),
525
+ a.appendChild(o),
526
+ n.appendChild(a),
527
+ (t =
528
+ Math.abs(
529
+ a.getBoundingClientRect().left -
530
+ o.children[67].getBoundingClientRect().left
531
+ ) < 2),
532
+ n.fake ? d(n, i) : a.remove(),
533
+ t
534
+ );
535
+ })(),
536
+ h
537
+ ),
538
+ R = u.tMQ
539
+ ? s(u.tMQ)
540
+ : c(
541
+ u,
542
+ "tMQ",
543
+ (function () {
544
+ if (window.matchMedia || window.msMatchMedia) return !0;
545
+ var t,
546
+ e = document,
547
+ n = l(),
548
+ i = f(n),
549
+ a = e.createElement("div"),
550
+ o = e.createElement("style"),
551
+ r =
552
+ "@media all and (min-width:1px){.tns-mq-test{position:absolute}}";
553
+ return (
554
+ (o.type = "text/css"),
555
+ (a.className = "tns-mq-test"),
556
+ n.appendChild(o),
557
+ n.appendChild(a),
558
+ o.styleSheet
559
+ ? (o.styleSheet.cssText = r)
560
+ : o.appendChild(e.createTextNode(r)),
561
+ (t = window.getComputedStyle
562
+ ? window.getComputedStyle(a).position
563
+ : a.currentStyle.position),
564
+ n.fake ? d(n, i) : a.remove(),
565
+ "absolute" === t
566
+ );
567
+ })(),
568
+ h
569
+ ),
570
+ W = u.tTf ? s(u.tTf) : c(u, "tTf", D("transform"), h),
571
+ q = u.t3D
572
+ ? s(u.t3D)
573
+ : c(
574
+ u,
575
+ "t3D",
576
+ (function (t) {
577
+ if (!t) return !1;
578
+ if (!window.getComputedStyle) return !1;
579
+ var e,
580
+ n = document,
581
+ i = l(),
582
+ a = f(i),
583
+ o = n.createElement("p"),
584
+ r =
585
+ t.length > 9
586
+ ? "-" + t.slice(0, -9).toLowerCase() + "-"
587
+ : "";
588
+ return (
589
+ (r += "transform"),
590
+ i.insertBefore(o, null),
591
+ (o.style[t] = "translate3d(1px,1px,1px)"),
592
+ (e = window.getComputedStyle(o).getPropertyValue(r)),
593
+ i.fake ? d(i, a) : o.remove(),
594
+ void 0 !== e && e.length > 0 && "none" !== e
595
+ );
596
+ })(W),
597
+ h
598
+ ),
599
+ F = u.tTDu ? s(u.tTDu) : c(u, "tTDu", D("transitionDuration"), h),
600
+ j = u.tTDe ? s(u.tTDe) : c(u, "tTDe", D("transitionDelay"), h),
601
+ V = u.tADu ? s(u.tADu) : c(u, "tADu", D("animationDuration"), h),
602
+ _ = u.tADe ? s(u.tADe) : c(u, "tADe", D("animationDelay"), h),
603
+ G = u.tTE ? s(u.tTE) : c(u, "tTE", N(F, "Transition"), h),
604
+ Q = u.tAE ? s(u.tAE) : c(u, "tAE", N(V, "Animation"), h),
605
+ X = n.console && "function" == typeof n.console.warn,
606
+ Y = [
607
+ "container",
608
+ "controlsContainer",
609
+ "prevButton",
610
+ "nextButton",
611
+ "navContainer",
612
+ "autoplayButton",
613
+ ],
614
+ K = {};
615
+ if (
616
+ (Y.forEach(function (n) {
617
+ if ("string" == typeof t[n]) {
618
+ var i = t[n],
619
+ a = e.querySelector(i);
620
+ if (((K[n] = i), !a || !a.nodeName))
621
+ return void (X && console.warn("Can't find", t[n]));
622
+ t[n] = a;
623
+ }
624
+ }),
625
+ !(t.container.children.length < 1))
626
+ ) {
627
+ var J = t.responsive,
628
+ U = t.nested,
629
+ Z = "carousel" === t.mode;
630
+ if (J) {
631
+ 0 in J && ((t = r(t, J[0])), delete J[0]);
632
+ var $ = {};
633
+ for (var tt in J) {
634
+ var et = J[tt];
635
+ (et = "number" == typeof et ? { items: et } : et), ($[tt] = et);
636
+ }
637
+ (J = $), ($ = null);
638
+ }
639
+ if (
640
+ (Z ||
641
+ (function t(e) {
642
+ for (var n in e)
643
+ Z ||
644
+ ("slideBy" === n && (e[n] = "page"),
645
+ "edgePadding" === n && (e[n] = !1),
646
+ "autoHeight" === n && (e[n] = !1)),
647
+ "responsive" === n && t(e[n]);
648
+ })(t),
649
+ !Z)
650
+ ) {
651
+ (t.axis = "horizontal"),
652
+ (t.slideBy = "page"),
653
+ (t.edgePadding = !1);
654
+ var nt = t.animateIn,
655
+ it = t.animateOut,
656
+ at = t.animateDelay,
657
+ ot = t.animateNormal;
658
+ }
659
+ var rt,
660
+ st,
661
+ ct = "horizontal" === t.axis,
662
+ lt = e.createElement("div"),
663
+ ut = e.createElement("div"),
664
+ ft = t.container,
665
+ dt = ft.parentNode,
666
+ vt = ft.outerHTML,
667
+ pt = ft.children,
668
+ mt = pt.length,
669
+ ht = Bn(),
670
+ yt = !1;
671
+ J && $n(), Z && (ft.className += " tns-vpfix");
672
+ var gt,
673
+ bt,
674
+ xt,
675
+ wt,
676
+ Lt,
677
+ Ct = t.autoWidth,
678
+ Tt = In("fixedWidth"),
679
+ Mt = In("edgePadding"),
680
+ Et = In("gutter"),
681
+ kt = zn(),
682
+ St = In("center"),
683
+ Dt = Ct ? 1 : Math.floor(In("items")),
684
+ Nt = In("slideBy"),
685
+ At = t.viewportMax || t.fixedWidthViewportWidth,
686
+ Bt = In("arrowKeys"),
687
+ Ot = In("speed"),
688
+ Ht = t.rewind,
689
+ zt = !Ht && t.loop,
690
+ Pt = In("autoHeight"),
691
+ It = In("controls"),
692
+ Rt = In("controlsText"),
693
+ Wt = In("nav"),
694
+ qt = In("touch"),
695
+ Ft = In("mouseDrag"),
696
+ jt = In("autoplay"),
697
+ Vt = In("autoplayTimeout"),
698
+ _t = In("autoplayText"),
699
+ Gt = In("autoplayHoverPause"),
700
+ Qt = In("autoplayResetOnVisibility"),
701
+ Xt =
702
+ (null,
703
+ (wt = In("nonce")),
704
+ (Lt = document.createElement("style")),
705
+ wt && Lt.setAttribute("nonce", wt),
706
+ document.querySelector("head").appendChild(Lt),
707
+ Lt.sheet ? Lt.sheet : Lt.styleSheet),
708
+ Yt = t.lazyload,
709
+ Kt = t.lazyloadSelector,
710
+ Jt = [],
711
+ Ut = zt
712
+ ? ((bt = (function () {
713
+ if (Ct || (Tt && !At)) return mt - 1;
714
+ var e = Tt ? "fixedWidth" : "items",
715
+ n = [];
716
+ if (((Tt || t[e] < mt) && n.push(t[e]), J))
717
+ for (var i in J) {
718
+ var a = J[i][e];
719
+ a && (Tt || a < mt) && n.push(a);
720
+ }
721
+ return (
722
+ n.length || n.push(0),
723
+ Math.ceil(
724
+ Tt
725
+ ? At / Math.min.apply(null, n)
726
+ : Math.max.apply(null, n)
727
+ )
728
+ );
729
+ })()),
730
+ (xt = Z ? Math.ceil((5 * bt - mt) / 2) : 4 * bt - mt),
731
+ (xt = Math.max(bt, xt)),
732
+ Pn("edgePadding") ? xt + 1 : xt)
733
+ : 0,
734
+ Zt = Z ? mt + 2 * Ut : mt + Ut,
735
+ $t = !((!Tt && !Ct) || zt),
736
+ te = Tt ? Mi() : null,
737
+ ee = !Z || !zt,
738
+ ne = ct ? "left" : "top",
739
+ ie = "",
740
+ ae = "",
741
+ oe = Tt
742
+ ? function () {
743
+ return St && !zt ? mt - 1 : Math.ceil(-te / (Tt + Et));
744
+ }
745
+ : Ct
746
+ ? function () {
747
+ for (var t = 0; t < Zt; t++) if (gt[t] >= -te) return t;
748
+ }
749
+ : function () {
750
+ return St && Z && !zt
751
+ ? mt - 1
752
+ : zt || Z
753
+ ? Math.max(0, Zt - Math.ceil(Dt))
754
+ : Zt - 1;
755
+ },
756
+ re = Dn(In("startIndex")),
757
+ se = re;
758
+ Sn();
759
+ var ce,
760
+ le,
761
+ ue,
762
+ fe = 0,
763
+ de = Ct ? null : oe(),
764
+ ve = t.preventActionWhenRunning,
765
+ pe = t.swipeAngle,
766
+ me = !pe || "?",
767
+ he = !1,
768
+ ye = t.onInit,
769
+ ge = new P(),
770
+ be = " tns-slider tns-" + t.mode,
771
+ xe =
772
+ ft.id ||
773
+ ((ue = window.tnsId),
774
+ (window.tnsId = ue ? ue + 1 : 1),
775
+ "tns" + window.tnsId),
776
+ we = In("disable"),
777
+ Le = !1,
778
+ Ce = t.freezable,
779
+ Te = !(!Ce || Ct) && Zn(),
780
+ Me = !1,
781
+ Ee = {
782
+ click: Hi,
783
+ keydown: function (t) {
784
+ t = ji(t);
785
+ var e = [a.LEFT, a.RIGHT].indexOf(t.keyCode);
786
+ e >= 0 &&
787
+ (0 === e
788
+ ? Ye.disabled || Hi(t, -1)
789
+ : Ke.disabled || Hi(t, 1));
790
+ },
791
+ },
792
+ ke = {
793
+ click: function (t) {
794
+ if (he) {
795
+ if (ve) return;
796
+ Bi();
797
+ }
798
+ for (var e = Vi((t = ji(t))); e !== $e && !x(e, "data-nav"); )
799
+ e = e.parentNode;
800
+ if (x(e, "data-nav")) {
801
+ var n = (an = Number(w(e, "data-nav"))),
802
+ i = Tt || Ct ? (n * mt) / en : n * Dt;
803
+ Oi(ze ? n : Math.min(Math.ceil(i), mt - 1), t),
804
+ on === n && (fn && Wi(), (an = -1));
805
+ }
806
+ },
807
+ keydown: function (t) {
808
+ t = ji(t);
809
+ var n = e.activeElement;
810
+ if (x(n, "data-nav")) {
811
+ var i = [a.LEFT, a.RIGHT, a.ENTER, a.SPACE].indexOf(
812
+ t.keyCode
813
+ ),
814
+ o = Number(w(n, "data-nav"));
815
+ i >= 0 &&
816
+ (0 === i
817
+ ? o > 0 && Fi(Ze[o - 1])
818
+ : 1 === i
819
+ ? o < en - 1 && Fi(Ze[o + 1])
820
+ : ((an = o), Oi(o, t)));
821
+ }
822
+ },
823
+ },
824
+ Se = {
825
+ mouseover: function () {
826
+ fn && (Pi(), (dn = !0));
827
+ },
828
+ mouseout: function () {
829
+ dn && (zi(), (dn = !1));
830
+ },
831
+ },
832
+ De = {
833
+ visibilitychange: function () {
834
+ e.hidden ? fn && (Pi(), (pn = !0)) : pn && (zi(), (pn = !1));
835
+ },
836
+ },
837
+ Ne = {
838
+ keydown: function (t) {
839
+ t = ji(t);
840
+ var e = [a.LEFT, a.RIGHT].indexOf(t.keyCode);
841
+ e >= 0 && Hi(t, 0 === e ? -1 : 1);
842
+ },
843
+ },
844
+ Ae = {
845
+ touchstart: Xi,
846
+ touchmove: Yi,
847
+ touchend: Ji,
848
+ touchcancel: Ji,
849
+ },
850
+ Be = {
851
+ mousedown: Xi,
852
+ mousemove: Yi,
853
+ mouseup: Ji,
854
+ mouseleave: Ji,
855
+ },
856
+ Oe = Pn("controls"),
857
+ He = Pn("nav"),
858
+ ze = !!Ct || t.navAsThumbnails,
859
+ Pe = Pn("autoplay"),
860
+ Ie = Pn("touch"),
861
+ Re = Pn("mouseDrag"),
862
+ We = "tns-slide-active",
863
+ qe = "tns-slide-cloned",
864
+ Fe = "tns-complete",
865
+ je = {
866
+ load: function (t) {
867
+ ci(Vi(t));
868
+ },
869
+ error: function (t) {
870
+ var e;
871
+ (e = Vi(t)), g(e, "failed"), li(e);
872
+ },
873
+ },
874
+ Ve = "force" === t.preventScrollOnTouch;
875
+ if (Oe)
876
+ var _e,
877
+ Ge,
878
+ Qe = t.controlsContainer,
879
+ Xe = t.controlsContainer ? t.controlsContainer.outerHTML : "",
880
+ Ye = t.prevButton,
881
+ Ke = t.nextButton,
882
+ Je = t.prevButton ? t.prevButton.outerHTML : "",
883
+ Ue = t.nextButton ? t.nextButton.outerHTML : "";
884
+ if (He)
885
+ var Ze,
886
+ $e = t.navContainer,
887
+ tn = t.navContainer ? t.navContainer.outerHTML : "",
888
+ en = Ct ? mt : Zi(),
889
+ nn = 0,
890
+ an = -1,
891
+ on = An(),
892
+ rn = on,
893
+ sn = "tns-nav-active",
894
+ cn = "Carousel Page ",
895
+ ln = " (Current Slide)";
896
+ if (Pe)
897
+ var un,
898
+ fn,
899
+ dn,
900
+ vn,
901
+ pn,
902
+ mn = "forward" === t.autoplayDirection ? 1 : -1,
903
+ hn = t.autoplayButton,
904
+ yn = t.autoplayButton ? t.autoplayButton.outerHTML : "",
905
+ gn = [
906
+ "<span class='tns-visually-hidden'>",
907
+ " animation</span>",
908
+ ];
909
+ if (Ie || Re)
910
+ var bn,
911
+ xn,
912
+ wn = {},
913
+ Ln = {},
914
+ Cn = !1,
915
+ Tn = ct
916
+ ? function (t, e) {
917
+ return t.x - e.x;
918
+ }
919
+ : function (t, e) {
920
+ return t.y - e.y;
921
+ };
922
+ Ct || kn(we || Te),
923
+ W &&
924
+ ((ne = W),
925
+ (ie = "translate"),
926
+ q
927
+ ? ((ie += ct ? "3d(" : "3d(0px, "),
928
+ (ae = ct ? ", 0px, 0px)" : ", 0px)"))
929
+ : ((ie += ct ? "X(" : "Y("), (ae = ")"))),
930
+ Z && (ft.className = ft.className.replace("tns-vpfix", "")),
931
+ (function () {
932
+ if (
933
+ (Pn("gutter"),
934
+ (lt.className = "tns-outer"),
935
+ (ut.className = "tns-inner"),
936
+ (lt.id = xe + "-ow"),
937
+ (ut.id = xe + "-iw"),
938
+ "" === ft.id && (ft.id = xe),
939
+ (be += O || Ct ? " tns-subpixel" : " tns-no-subpixel"),
940
+ (be += B ? " tns-calc" : " tns-no-calc"),
941
+ Ct && (be += " tns-autowidth"),
942
+ (be += " tns-" + t.axis),
943
+ (ft.className += be),
944
+ Z
945
+ ? (((rt = e.createElement("div")).id = xe + "-mw"),
946
+ (rt.className = "tns-ovh"),
947
+ lt.appendChild(rt),
948
+ rt.appendChild(ut))
949
+ : lt.appendChild(ut),
950
+ Pt && ((rt || ut).className += " tns-ah"),
951
+ dt.insertBefore(lt, ft),
952
+ ut.appendChild(ft),
953
+ m(pt, function (t, e) {
954
+ g(t, "tns-item"),
955
+ t.id || (t.id = xe + "-item" + e),
956
+ !Z && ot && g(t, ot),
957
+ C(t, { "aria-hidden": "true", tabindex: "-1" });
958
+ }),
959
+ Ut)
960
+ ) {
961
+ for (
962
+ var n = e.createDocumentFragment(),
963
+ i = e.createDocumentFragment(),
964
+ a = Ut;
965
+ a--;
966
+
967
+ ) {
968
+ var o = a % mt,
969
+ r = pt[o].cloneNode(!0);
970
+ if (
971
+ (g(r, qe), T(r, "id"), i.insertBefore(r, i.firstChild), Z)
972
+ ) {
973
+ var s = pt[mt - 1 - o].cloneNode(!0);
974
+ g(s, qe), T(s, "id"), n.appendChild(s);
975
+ }
976
+ }
977
+ ft.insertBefore(n, ft.firstChild),
978
+ ft.appendChild(i),
979
+ (pt = ft.children);
980
+ }
981
+ })(),
982
+ (function () {
983
+ if (!Z)
984
+ for (var e = re, i = re + Math.min(mt, Dt); e < i; e++) {
985
+ var a = pt[e];
986
+ (a.style.left = (100 * (e - re)) / Dt + "%"),
987
+ g(a, nt),
988
+ b(a, ot);
989
+ }
990
+ if (
991
+ (ct &&
992
+ (O || Ct
993
+ ? (v(
994
+ Xt,
995
+ "#" + xe + " > .tns-item",
996
+ "font-size:" +
997
+ n.getComputedStyle(pt[0]).fontSize +
998
+ ";",
999
+ p(Xt)
1000
+ ),
1001
+ v(Xt, "#" + xe, "font-size:0;", p(Xt)))
1002
+ : Z &&
1003
+ m(pt, function (t, e) {
1004
+ t.style.marginLeft = (function (t) {
1005
+ return B
1006
+ ? B + "(" + 100 * t + "% / " + Zt + ")"
1007
+ : (100 * t) / Zt + "%";
1008
+ })(e);
1009
+ })),
1010
+ R)
1011
+ ) {
1012
+ if (F) {
1013
+ var o = rt && t.autoHeight ? Vn(t.speed) : "";
1014
+ v(Xt, "#" + xe + "-mw", o, p(Xt));
1015
+ }
1016
+ (o = Rn(
1017
+ t.edgePadding,
1018
+ t.gutter,
1019
+ t.fixedWidth,
1020
+ t.speed,
1021
+ t.autoHeight
1022
+ )),
1023
+ v(Xt, "#" + xe + "-iw", o, p(Xt)),
1024
+ Z &&
1025
+ ((o =
1026
+ ct && !Ct
1027
+ ? "width:" + Wn(t.fixedWidth, t.gutter, t.items) + ";"
1028
+ : ""),
1029
+ F && (o += Vn(Ot)),
1030
+ v(Xt, "#" + xe, o, p(Xt))),
1031
+ (o = ct && !Ct ? qn(t.fixedWidth, t.gutter, t.items) : ""),
1032
+ t.gutter && (o += Fn(t.gutter)),
1033
+ Z || (F && (o += Vn(Ot)), V && (o += _n(Ot))),
1034
+ o && v(Xt, "#" + xe + " > .tns-item", o, p(Xt));
1035
+ } else
1036
+ Z && Pt && (rt.style[F] = Ot / 1e3 + "s"),
1037
+ (ut.style.cssText = Rn(Mt, Et, Tt, Pt)),
1038
+ Z && ct && !Ct && (ft.style.width = Wn(Tt, Et, Dt)),
1039
+ (o = ct && !Ct ? qn(Tt, Et, Dt) : ""),
1040
+ Et && (o += Fn(Et)),
1041
+ o && v(Xt, "#" + xe + " > .tns-item", o, p(Xt));
1042
+ if (J && R)
1043
+ for (var r in J) {
1044
+ r = parseInt(r);
1045
+ var s = J[r],
1046
+ c = ((o = ""), ""),
1047
+ l = "",
1048
+ u = "",
1049
+ f = "",
1050
+ d = Ct ? null : In("items", r),
1051
+ h = In("fixedWidth", r),
1052
+ y = In("speed", r),
1053
+ x = In("edgePadding", r),
1054
+ w = In("autoHeight", r),
1055
+ L = In("gutter", r);
1056
+ F &&
1057
+ rt &&
1058
+ In("autoHeight", r) &&
1059
+ "speed" in s &&
1060
+ (c = "#" + xe + "-mw{" + Vn(y) + "}"),
1061
+ ("edgePadding" in s || "gutter" in s) &&
1062
+ (l = "#" + xe + "-iw{" + Rn(x, L, h, y, w) + "}"),
1063
+ Z &&
1064
+ ct &&
1065
+ !Ct &&
1066
+ ("fixedWidth" in s ||
1067
+ "items" in s ||
1068
+ (Tt && "gutter" in s)) &&
1069
+ (u = "width:" + Wn(h, L, d) + ";"),
1070
+ F && "speed" in s && (u += Vn(y)),
1071
+ u && (u = "#" + xe + "{" + u + "}"),
1072
+ ("fixedWidth" in s ||
1073
+ (Tt && "gutter" in s) ||
1074
+ (!Z && "items" in s)) &&
1075
+ (f += qn(h, L, d)),
1076
+ "gutter" in s && (f += Fn(L)),
1077
+ !Z &&
1078
+ "speed" in s &&
1079
+ (F && (f += Vn(y)), V && (f += _n(y))),
1080
+ f && (f = "#" + xe + " > .tns-item{" + f + "}"),
1081
+ (o = c + l + u + f) &&
1082
+ Xt.insertRule(
1083
+ "@media (min-width: " + r / 16 + "em) {" + o + "}",
1084
+ Xt.cssRules.length
1085
+ );
1086
+ }
1087
+ })(),
1088
+ Gn();
1089
+ var Mn = zt
1090
+ ? Z
1091
+ ? function () {
1092
+ var t = fe,
1093
+ e = de;
1094
+ (t += Nt),
1095
+ (e -= Nt),
1096
+ Mt
1097
+ ? ((t += 1), (e -= 1))
1098
+ : Tt && (kt + Et) % (Tt + Et) && (e -= 1),
1099
+ Ut && (re > e ? (re -= mt) : re < t && (re += mt));
1100
+ }
1101
+ : function () {
1102
+ if (re > de) for (; re >= fe + mt; ) re -= mt;
1103
+ else if (re < fe) for (; re <= de - mt; ) re += mt;
1104
+ }
1105
+ : function () {
1106
+ re = Math.max(fe, Math.min(de, re));
1107
+ },
1108
+ En = Z
1109
+ ? function () {
1110
+ var t, e, n, i, a, o, r, s, c, l, u;
1111
+ Ci(ft, ""),
1112
+ F || !Ot
1113
+ ? (Si(), (Ot && S(ft)) || Bi())
1114
+ : ((t = ft),
1115
+ (e = ne),
1116
+ (n = ie),
1117
+ (i = ae),
1118
+ (a = Ei()),
1119
+ (o = Ot),
1120
+ (r = Bi),
1121
+ (s = Math.min(o, 10)),
1122
+ (c = a.indexOf("%") >= 0 ? "%" : "px"),
1123
+ (a = a.replace(c, "")),
1124
+ (l = Number(
1125
+ t.style[e]
1126
+ .replace(n, "")
1127
+ .replace(i, "")
1128
+ .replace(c, "")
1129
+ )),
1130
+ (u = ((a - l) / o) * s),
1131
+ setTimeout(function a() {
1132
+ (o -= s),
1133
+ (l += u),
1134
+ (t.style[e] = n + l + c + i),
1135
+ o > 0 ? setTimeout(a, s) : r();
1136
+ }, s)),
1137
+ ct || Ui();
1138
+ }
1139
+ : function () {
1140
+ Jt = [];
1141
+ var t = {};
1142
+ (t[G] = t[Q] = Bi),
1143
+ z(pt[se], t),
1144
+ H(pt[re], t),
1145
+ Di(se, nt, it, !0),
1146
+ Di(re, ot, nt),
1147
+ (G && Q && Ot && S(ft)) || Bi();
1148
+ };
1149
+ return {
1150
+ version: "2.9.4",
1151
+ getInfo: ta,
1152
+ events: ge,
1153
+ goTo: Oi,
1154
+ play: function () {
1155
+ jt && !fn && (Ri(), (vn = !1));
1156
+ },
1157
+ pause: function () {
1158
+ fn && (Wi(), (vn = !0));
1159
+ },
1160
+ isOn: yt,
1161
+ updateSliderHeight: mi,
1162
+ refresh: Gn,
1163
+ destroy: function () {
1164
+ if (
1165
+ ((Xt.disabled = !0),
1166
+ Xt.ownerNode && Xt.ownerNode.remove(),
1167
+ z(n, { resize: Jn }),
1168
+ Bt && z(e, Ne),
1169
+ Qe && z(Qe, Ee),
1170
+ $e && z($e, ke),
1171
+ z(ft, Se),
1172
+ z(ft, De),
1173
+ hn && z(hn, { click: qi }),
1174
+ jt && clearInterval(un),
1175
+ Z && G)
1176
+ ) {
1177
+ var i = {};
1178
+ (i[G] = Bi), z(ft, i);
1179
+ }
1180
+ qt && z(ft, Ae), Ft && z(ft, Be);
1181
+ var a = [vt, Xe, Je, Ue, tn, yn];
1182
+ for (var o in (Y.forEach(function (e, n) {
1183
+ var i = "container" === e ? lt : t[e];
1184
+ if ("object" == typeof i && i) {
1185
+ var o =
1186
+ !!i.previousElementSibling && i.previousElementSibling,
1187
+ r = i.parentNode;
1188
+ (i.outerHTML = a[n]),
1189
+ (t[e] = o ? o.nextElementSibling : r.firstElementChild);
1190
+ }
1191
+ }),
1192
+ (Y =
1193
+ nt =
1194
+ it =
1195
+ at =
1196
+ ot =
1197
+ ct =
1198
+ lt =
1199
+ ut =
1200
+ ft =
1201
+ dt =
1202
+ vt =
1203
+ pt =
1204
+ mt =
1205
+ st =
1206
+ ht =
1207
+ Ct =
1208
+ Tt =
1209
+ Mt =
1210
+ Et =
1211
+ kt =
1212
+ Dt =
1213
+ Nt =
1214
+ At =
1215
+ Bt =
1216
+ Ot =
1217
+ Ht =
1218
+ zt =
1219
+ Pt =
1220
+ Xt =
1221
+ Yt =
1222
+ gt =
1223
+ Jt =
1224
+ Ut =
1225
+ Zt =
1226
+ $t =
1227
+ te =
1228
+ ee =
1229
+ ne =
1230
+ ie =
1231
+ ae =
1232
+ oe =
1233
+ re =
1234
+ se =
1235
+ fe =
1236
+ de =
1237
+ pe =
1238
+ me =
1239
+ he =
1240
+ ye =
1241
+ ge =
1242
+ be =
1243
+ xe =
1244
+ we =
1245
+ Le =
1246
+ Ce =
1247
+ Te =
1248
+ Me =
1249
+ Ee =
1250
+ ke =
1251
+ Se =
1252
+ De =
1253
+ Ne =
1254
+ Ae =
1255
+ Be =
1256
+ Oe =
1257
+ He =
1258
+ ze =
1259
+ Pe =
1260
+ Ie =
1261
+ Re =
1262
+ We =
1263
+ Fe =
1264
+ je =
1265
+ ce =
1266
+ It =
1267
+ Rt =
1268
+ Qe =
1269
+ Xe =
1270
+ Ye =
1271
+ Ke =
1272
+ _e =
1273
+ Ge =
1274
+ Wt =
1275
+ $e =
1276
+ tn =
1277
+ Ze =
1278
+ en =
1279
+ nn =
1280
+ an =
1281
+ on =
1282
+ rn =
1283
+ sn =
1284
+ cn =
1285
+ ln =
1286
+ jt =
1287
+ Vt =
1288
+ mn =
1289
+ _t =
1290
+ Gt =
1291
+ hn =
1292
+ yn =
1293
+ Qt =
1294
+ gn =
1295
+ un =
1296
+ fn =
1297
+ dn =
1298
+ vn =
1299
+ pn =
1300
+ wn =
1301
+ Ln =
1302
+ bn =
1303
+ Cn =
1304
+ xn =
1305
+ Tn =
1306
+ qt =
1307
+ Ft =
1308
+ null),
1309
+ this))
1310
+ "rebuild" !== o && (this[o] = null);
1311
+ yt = !1;
1312
+ },
1313
+ rebuild: function () {
1314
+ return I(r(t, K));
1315
+ },
1316
+ };
1317
+ }
1318
+ function kn(t) {
1319
+ t && (It = Wt = qt = Ft = Bt = jt = Gt = Qt = !1);
1320
+ }
1321
+ function Sn() {
1322
+ for (var t = Z ? re - Ut : re; t < 0; ) t += mt;
1323
+ return (t % mt) + 1;
1324
+ }
1325
+ function Dn(t) {
1326
+ return (
1327
+ (t = t ? Math.max(0, Math.min(zt ? mt - 1 : mt - Dt, t)) : 0),
1328
+ Z ? t + Ut : t
1329
+ );
1330
+ }
1331
+ function Nn(t) {
1332
+ for (null == t && (t = re), Z && (t -= Ut); t < 0; ) t += mt;
1333
+ return Math.floor(t % mt);
1334
+ }
1335
+ function An() {
1336
+ var t,
1337
+ e = Nn();
1338
+ return (
1339
+ (t = ze
1340
+ ? e
1341
+ : Tt || Ct
1342
+ ? Math.ceil(((e + 1) * en) / mt - 1)
1343
+ : Math.floor(e / Dt)),
1344
+ !zt && Z && re === de && (t = en - 1),
1345
+ t
1346
+ );
1347
+ }
1348
+ function Bn() {
1349
+ return (
1350
+ n.innerWidth ||
1351
+ e.documentElement.clientWidth ||
1352
+ e.body.clientWidth
1353
+ );
1354
+ }
1355
+ function On(t) {
1356
+ return "top" === t ? "afterbegin" : "beforeend";
1357
+ }
1358
+ function Hn(t) {
1359
+ if (null != t) {
1360
+ var n,
1361
+ i,
1362
+ a = e.createElement("div");
1363
+ return (
1364
+ t.appendChild(a),
1365
+ (i = (n = a.getBoundingClientRect()).right - n.left),
1366
+ a.remove(),
1367
+ i ||
1368
+ (null !== t.parentNode.parentNode ? Hn(t.parentNode) : void 0)
1369
+ );
1370
+ }
1371
+ }
1372
+ function zn() {
1373
+ var t = Mt ? 2 * Mt - Et : 0;
1374
+ return Hn(dt) - t;
1375
+ }
1376
+ function Pn(e) {
1377
+ if (t[e]) return !0;
1378
+ if (J) for (var n in J) if (J[n][e]) return !0;
1379
+ return !1;
1380
+ }
1381
+ function In(e, n) {
1382
+ if ((null == n && (n = ht), "items" === e && Tt))
1383
+ return Math.floor((kt + Et) / (Tt + Et)) || 1;
1384
+ var i = t[e];
1385
+ if (J)
1386
+ for (var a in J) n >= parseInt(a) && e in J[a] && (i = J[a][e]);
1387
+ return (
1388
+ "slideBy" === e && "page" === i && (i = In("items")),
1389
+ Z || ("slideBy" !== e && "items" !== e) || (i = Math.floor(i)),
1390
+ i
1391
+ );
1392
+ }
1393
+ function Rn(t, e, n, i, a) {
1394
+ var o = "";
1395
+ if (void 0 !== t) {
1396
+ var r = t;
1397
+ e && (r -= e),
1398
+ (o = ct
1399
+ ? "margin: 0 " + r + "px 0 " + t + "px;"
1400
+ : "margin: " + t + "px 0 " + r + "px 0;");
1401
+ } else if (e && !n) {
1402
+ var s = "-" + e + "px";
1403
+ o = "margin: 0 " + (ct ? s + " 0 0" : "0 " + s + " 0") + ";";
1404
+ }
1405
+ return !Z && a && F && i && (o += Vn(i)), o;
1406
+ }
1407
+ function Wn(t, e, n) {
1408
+ return t
1409
+ ? (t + e) * Zt + "px"
1410
+ : B
1411
+ ? B + "(" + 100 * Zt + "% / " + n + ")"
1412
+ : (100 * Zt) / n + "%";
1413
+ }
1414
+ function qn(t, e, n) {
1415
+ var i;
1416
+ if (t) i = t + e + "px";
1417
+ else {
1418
+ Z || (n = Math.floor(n));
1419
+ var a = Z ? Zt : n;
1420
+ i = B ? B + "(100% / " + a + ")" : 100 / a + "%";
1421
+ }
1422
+ return (
1423
+ (i = "width:" + i), "inner" !== U ? i + ";" : i + " !important;"
1424
+ );
1425
+ }
1426
+ function Fn(t) {
1427
+ var e = "";
1428
+ return (
1429
+ !1 !== t &&
1430
+ (e =
1431
+ (ct ? "padding-" : "margin-") +
1432
+ (ct ? "right" : "bottom") +
1433
+ ": " +
1434
+ t +
1435
+ "px;"),
1436
+ e
1437
+ );
1438
+ }
1439
+ function jn(t, e) {
1440
+ var n = t.substring(0, t.length - e).toLowerCase();
1441
+ return n && (n = "-" + n + "-"), n;
1442
+ }
1443
+ function Vn(t) {
1444
+ return jn(F, 18) + "transition-duration:" + t / 1e3 + "s;";
1445
+ }
1446
+ function _n(t) {
1447
+ return jn(V, 17) + "animation-duration:" + t / 1e3 + "s;";
1448
+ }
1449
+ function Gn() {
1450
+ if (Pn("autoHeight") || Ct || !ct) {
1451
+ var t = ft.querySelectorAll("img");
1452
+ m(t, function (t) {
1453
+ var e = t.src;
1454
+ Yt ||
1455
+ (e && e.indexOf("data:image") < 0
1456
+ ? ((t.src = ""), H(t, je), g(t, "loading"), (t.src = e))
1457
+ : ci(t));
1458
+ }),
1459
+ i(function () {
1460
+ di(M(t), function () {
1461
+ ce = !0;
1462
+ });
1463
+ }),
1464
+ Pn("autoHeight") && (t = ui(re, Math.min(re + Dt - 1, Zt - 1))),
1465
+ Yt
1466
+ ? Qn()
1467
+ : i(function () {
1468
+ di(M(t), Qn);
1469
+ });
1470
+ } else Z && ki(), Yn(), Kn();
1471
+ }
1472
+ function Qn() {
1473
+ if (Ct && mt > 1) {
1474
+ var t = zt ? re : mt - 1;
1475
+ !(function e() {
1476
+ var n = pt[t].getBoundingClientRect().left,
1477
+ i = pt[t - 1].getBoundingClientRect().right;
1478
+ Math.abs(n - i) <= 1
1479
+ ? Xn()
1480
+ : setTimeout(function () {
1481
+ e();
1482
+ }, 16);
1483
+ })();
1484
+ } else Xn();
1485
+ }
1486
+ function Xn() {
1487
+ (ct && !Ct) ||
1488
+ (hi(),
1489
+ Ct
1490
+ ? ((te = Mi()), Ce && (Te = Zn()), (de = oe()), kn(we || Te))
1491
+ : Ui()),
1492
+ Z && ki(),
1493
+ Yn(),
1494
+ Kn();
1495
+ }
1496
+ function Yn() {
1497
+ if (
1498
+ (yi(),
1499
+ lt.insertAdjacentHTML(
1500
+ "afterbegin",
1501
+ '<div class="tns-liveregion tns-visually-hidden" aria-live="polite" aria-atomic="true">slide <span class="current">' +
1502
+ oi() +
1503
+ "</span> of " +
1504
+ mt +
1505
+ "</div>"
1506
+ ),
1507
+ (le = lt.querySelector(".tns-liveregion .current")),
1508
+ Pe)
1509
+ ) {
1510
+ var e = jt ? "stop" : "start";
1511
+ hn
1512
+ ? C(hn, { "data-action": e })
1513
+ : t.autoplayButtonOutput &&
1514
+ (lt.insertAdjacentHTML(
1515
+ On(t.autoplayPosition),
1516
+ '<button type="button" data-action="' +
1517
+ e +
1518
+ '">' +
1519
+ gn[0] +
1520
+ e +
1521
+ gn[1] +
1522
+ _t[0] +
1523
+ "</button>"
1524
+ ),
1525
+ (hn = lt.querySelector("[data-action]"))),
1526
+ hn && H(hn, { click: qi }),
1527
+ jt && (Ri(), Gt && H(ft, Se), Qt && H(ft, De));
1528
+ }
1529
+ if (He) {
1530
+ if ($e)
1531
+ C($e, { "aria-label": "Carousel Pagination" }),
1532
+ m((Ze = $e.children), function (t, e) {
1533
+ C(t, {
1534
+ "data-nav": e,
1535
+ tabindex: "-1",
1536
+ "aria-label": cn + (e + 1),
1537
+ "aria-controls": xe,
1538
+ });
1539
+ });
1540
+ else {
1541
+ for (
1542
+ var n = "", i = ze ? "" : 'style="display:none"', a = 0;
1543
+ a < mt;
1544
+ a++
1545
+ )
1546
+ n +=
1547
+ '<button type="button" data-nav="' +
1548
+ a +
1549
+ '" tabindex="-1" aria-controls="' +
1550
+ xe +
1551
+ '" ' +
1552
+ i +
1553
+ ' aria-label="' +
1554
+ cn +
1555
+ (a + 1) +
1556
+ '"></button>';
1557
+ (n =
1558
+ '<div class="tns-nav" aria-label="Carousel Pagination">' +
1559
+ n +
1560
+ "</div>"),
1561
+ lt.insertAdjacentHTML(On(t.navPosition), n),
1562
+ ($e = lt.querySelector(".tns-nav")),
1563
+ (Ze = $e.children);
1564
+ }
1565
+ if (($i(), F)) {
1566
+ var o = F.substring(0, F.length - 18).toLowerCase(),
1567
+ r = "transition: all " + Ot / 1e3 + "s";
1568
+ o && (r = "-" + o + "-" + r),
1569
+ v(Xt, "[aria-controls^=" + xe + "-item]", r, p(Xt));
1570
+ }
1571
+ C(Ze[on], { "aria-label": cn + (on + 1) + ln }),
1572
+ T(Ze[on], "tabindex"),
1573
+ g(Ze[on], sn),
1574
+ H($e, ke);
1575
+ }
1576
+ Oe &&
1577
+ (Qe ||
1578
+ (Ye && Ke) ||
1579
+ (lt.insertAdjacentHTML(
1580
+ On(t.controlsPosition),
1581
+ '<div class="tns-controls" aria-label="Carousel Navigation" tabindex="0"><button type="button" data-controls="prev" tabindex="-1" aria-controls="' +
1582
+ xe +
1583
+ '">' +
1584
+ Rt[0] +
1585
+ '</button><button type="button" data-controls="next" tabindex="-1" aria-controls="' +
1586
+ xe +
1587
+ '">' +
1588
+ Rt[1] +
1589
+ "</button></div>"
1590
+ ),
1591
+ (Qe = lt.querySelector(".tns-controls"))),
1592
+ (Ye && Ke) || ((Ye = Qe.children[0]), (Ke = Qe.children[1])),
1593
+ t.controlsContainer &&
1594
+ C(Qe, { "aria-label": "Carousel Navigation", tabindex: "0" }),
1595
+ (t.controlsContainer || (t.prevButton && t.nextButton)) &&
1596
+ C([Ye, Ke], { "aria-controls": xe, tabindex: "-1" }),
1597
+ (t.controlsContainer || (t.prevButton && t.nextButton)) &&
1598
+ (C(Ye, { "data-controls": "prev" }),
1599
+ C(Ke, { "data-controls": "next" })),
1600
+ (_e = bi(Ye)),
1601
+ (Ge = bi(Ke)),
1602
+ Li(),
1603
+ Qe ? H(Qe, Ee) : (H(Ye, Ee), H(Ke, Ee))),
1604
+ ti();
1605
+ }
1606
+ function Kn() {
1607
+ if (Z && G) {
1608
+ var i = {};
1609
+ (i[G] = Bi), H(ft, i);
1610
+ }
1611
+ qt && H(ft, Ae, t.preventScrollOnTouch),
1612
+ Ft && H(ft, Be),
1613
+ Bt && H(e, Ne),
1614
+ "inner" === U
1615
+ ? ge.on("outerResized", function () {
1616
+ Un(), ge.emit("innerLoaded", ta());
1617
+ })
1618
+ : (J || Tt || Ct || Pt || !ct) && H(n, { resize: Jn }),
1619
+ Pt && ("outer" === U ? ge.on("innerLoaded", fi) : we || fi()),
1620
+ si(),
1621
+ we ? ii() : Te && ni(),
1622
+ ge.on("indexChanged", vi),
1623
+ "inner" === U && ge.emit("innerLoaded", ta()),
1624
+ "function" == typeof ye && ye(ta()),
1625
+ (yt = !0);
1626
+ }
1627
+ function Jn(t) {
1628
+ i(function () {
1629
+ Un(ji(t));
1630
+ });
1631
+ }
1632
+ function Un(n) {
1633
+ if (yt) {
1634
+ "outer" === U && ge.emit("outerResized", ta(n)), (ht = Bn());
1635
+ var i,
1636
+ a = st,
1637
+ o = !1;
1638
+ J &&
1639
+ ($n(), (i = a !== st) && ge.emit("newBreakpointStart", ta(n)));
1640
+ var r,
1641
+ s,
1642
+ c = Dt,
1643
+ l = we,
1644
+ u = Te,
1645
+ f = Bt,
1646
+ d = It,
1647
+ h = Wt,
1648
+ y = qt,
1649
+ x = Ft,
1650
+ w = jt,
1651
+ L = Gt,
1652
+ C = Qt,
1653
+ T = re;
1654
+ if (i) {
1655
+ var M = Tt,
1656
+ S = Pt,
1657
+ D = Rt,
1658
+ N = St,
1659
+ A = _t;
1660
+ if (!R)
1661
+ var B = Et,
1662
+ O = Mt;
1663
+ }
1664
+ if (
1665
+ ((Bt = In("arrowKeys")),
1666
+ (It = In("controls")),
1667
+ (Wt = In("nav")),
1668
+ (qt = In("touch")),
1669
+ (St = In("center")),
1670
+ (Ft = In("mouseDrag")),
1671
+ (jt = In("autoplay")),
1672
+ (Gt = In("autoplayHoverPause")),
1673
+ (Qt = In("autoplayResetOnVisibility")),
1674
+ i &&
1675
+ ((we = In("disable")),
1676
+ (Tt = In("fixedWidth")),
1677
+ (Ot = In("speed")),
1678
+ (Pt = In("autoHeight")),
1679
+ (Rt = In("controlsText")),
1680
+ (_t = In("autoplayText")),
1681
+ (Vt = In("autoplayTimeout")),
1682
+ R || ((Mt = In("edgePadding")), (Et = In("gutter")))),
1683
+ kn(we),
1684
+ (kt = zn()),
1685
+ (ct && !Ct) || we || (hi(), ct || (Ui(), (o = !0))),
1686
+ (Tt || Ct) && ((te = Mi()), (de = oe())),
1687
+ (i || Tt) &&
1688
+ ((Dt = In("items")),
1689
+ (Nt = In("slideBy")),
1690
+ (s = Dt !== c) && (Tt || Ct || (de = oe()), Mn())),
1691
+ i &&
1692
+ we !== l &&
1693
+ (we
1694
+ ? ii()
1695
+ : (function () {
1696
+ if (Le) {
1697
+ if (
1698
+ ((Xt.disabled = !1), (ft.className += be), ki(), zt)
1699
+ )
1700
+ for (var t = Ut; t--; )
1701
+ Z && k(pt[t]), k(pt[Zt - t - 1]);
1702
+ if (!Z)
1703
+ for (var e = re, n = re + mt; e < n; e++) {
1704
+ var i = pt[e],
1705
+ a = e < re + Dt ? nt : ot;
1706
+ (i.style.left = (100 * (e - re)) / Dt + "%"),
1707
+ g(i, a);
1708
+ }
1709
+ ei(), (Le = !1);
1710
+ }
1711
+ })()),
1712
+ Ce &&
1713
+ (i || Tt || Ct) &&
1714
+ (Te = Zn()) !== u &&
1715
+ (Te
1716
+ ? (Si(Ei(Dn(0))), ni())
1717
+ : ((function () {
1718
+ if (Me) {
1719
+ if ((Mt && R && (ut.style.margin = ""), Ut))
1720
+ for (var t = "tns-transparent", e = Ut; e--; )
1721
+ Z && b(pt[e], t), b(pt[Zt - e - 1], t);
1722
+ ei(), (Me = !1);
1723
+ }
1724
+ })(),
1725
+ (o = !0))),
1726
+ kn(we || Te),
1727
+ jt || (Gt = Qt = !1),
1728
+ Bt !== f && (Bt ? H(e, Ne) : z(e, Ne)),
1729
+ It !== d &&
1730
+ (It
1731
+ ? Qe
1732
+ ? k(Qe)
1733
+ : (Ye && k(Ye), Ke && k(Ke))
1734
+ : Qe
1735
+ ? E(Qe)
1736
+ : (Ye && E(Ye), Ke && E(Ke))),
1737
+ Wt !== h && (Wt ? (k($e), $i()) : E($e)),
1738
+ qt !== y &&
1739
+ (qt ? H(ft, Ae, t.preventScrollOnTouch) : z(ft, Ae)),
1740
+ Ft !== x && (Ft ? H(ft, Be) : z(ft, Be)),
1741
+ jt !== w &&
1742
+ (jt
1743
+ ? (hn && k(hn), fn || vn || Ri())
1744
+ : (hn && E(hn), fn && Wi())),
1745
+ Gt !== L && (Gt ? H(ft, Se) : z(ft, Se)),
1746
+ Qt !== C && (Qt ? H(e, De) : z(e, De)),
1747
+ i)
1748
+ ) {
1749
+ if (
1750
+ ((Tt === M && St === N) || (o = !0),
1751
+ Pt !== S && (Pt || (ut.style.height = "")),
1752
+ It &&
1753
+ Rt !== D &&
1754
+ ((Ye.innerHTML = Rt[0]), (Ke.innerHTML = Rt[1])),
1755
+ hn && _t !== A)
1756
+ ) {
1757
+ var P = jt ? 1 : 0,
1758
+ I = hn.innerHTML,
1759
+ W = I.length - A[P].length;
1760
+ I.substring(W) === A[P] &&
1761
+ (hn.innerHTML = I.substring(0, W) + _t[P]);
1762
+ }
1763
+ } else St && (Tt || Ct) && (o = !0);
1764
+ if (
1765
+ ((s || (Tt && !Ct)) && ((en = Zi()), $i()),
1766
+ (r = re !== T)
1767
+ ? (ge.emit("indexChanged", ta()), (o = !0))
1768
+ : s
1769
+ ? r || vi()
1770
+ : (Tt || Ct) && (si(), yi(), ai()),
1771
+ s &&
1772
+ !Z &&
1773
+ (function () {
1774
+ for (var t = re + Math.min(mt, Dt), e = Zt; e--; ) {
1775
+ var n = pt[e];
1776
+ e >= re && e < t
1777
+ ? (g(n, "tns-moving"),
1778
+ (n.style.left = (100 * (e - re)) / Dt + "%"),
1779
+ g(n, nt),
1780
+ b(n, ot))
1781
+ : n.style.left &&
1782
+ ((n.style.left = ""), g(n, ot), b(n, nt)),
1783
+ b(n, it);
1784
+ }
1785
+ setTimeout(function () {
1786
+ m(pt, function (t) {
1787
+ b(t, "tns-moving");
1788
+ });
1789
+ }, 300);
1790
+ })(),
1791
+ !we && !Te)
1792
+ ) {
1793
+ if (
1794
+ i &&
1795
+ !R &&
1796
+ ((Mt === O && Et === B) ||
1797
+ (ut.style.cssText = Rn(Mt, Et, Tt, Ot, Pt)),
1798
+ ct)
1799
+ ) {
1800
+ Z && (ft.style.width = Wn(Tt, Et, Dt));
1801
+ var q = qn(Tt, Et, Dt) + Fn(Et);
1802
+ !(function (t, e) {
1803
+ "deleteRule" in t ? t.deleteRule(e) : t.removeRule(e);
1804
+ })(Xt, p(Xt) - 1),
1805
+ v(Xt, "#" + xe + " > .tns-item", q, p(Xt));
1806
+ }
1807
+ Pt && fi(), o && (ki(), (se = re));
1808
+ }
1809
+ i && ge.emit("newBreakpointEnd", ta(n));
1810
+ }
1811
+ }
1812
+ function Zn() {
1813
+ if (!Tt && !Ct) return mt <= (St ? Dt - (Dt - 1) / 2 : Dt);
1814
+ var t = Tt ? (Tt + Et) * mt : gt[mt],
1815
+ e = Mt ? kt + 2 * Mt : kt + Et;
1816
+ return (
1817
+ St &&
1818
+ (e -= Tt
1819
+ ? (kt - Tt) / 2
1820
+ : (kt - (gt[re + 1] - gt[re] - Et)) / 2),
1821
+ t <= e
1822
+ );
1823
+ }
1824
+ function $n() {
1825
+ for (var t in ((st = 0), J)) (t = parseInt(t)), ht >= t && (st = t);
1826
+ }
1827
+ function ti() {
1828
+ !jt && hn && E(hn),
1829
+ !Wt && $e && E($e),
1830
+ It || (Qe ? E(Qe) : (Ye && E(Ye), Ke && E(Ke)));
1831
+ }
1832
+ function ei() {
1833
+ jt && hn && k(hn),
1834
+ Wt && $e && k($e),
1835
+ It && (Qe ? k(Qe) : (Ye && k(Ye), Ke && k(Ke)));
1836
+ }
1837
+ function ni() {
1838
+ if (!Me) {
1839
+ if ((Mt && (ut.style.margin = "0px"), Ut))
1840
+ for (var t = "tns-transparent", e = Ut; e--; )
1841
+ Z && g(pt[e], t), g(pt[Zt - e - 1], t);
1842
+ ti(), (Me = !0);
1843
+ }
1844
+ }
1845
+ function ii() {
1846
+ if (!Le) {
1847
+ if (
1848
+ ((Xt.disabled = !0),
1849
+ (ft.className = ft.className.replace(be.substring(1), "")),
1850
+ T(ft, ["style"]),
1851
+ zt)
1852
+ )
1853
+ for (var t = Ut; t--; ) Z && E(pt[t]), E(pt[Zt - t - 1]);
1854
+ if (((ct && Z) || T(ut, ["style"]), !Z))
1855
+ for (var e = re, n = re + mt; e < n; e++) {
1856
+ var i = pt[e];
1857
+ T(i, ["style"]), b(i, nt), b(i, ot);
1858
+ }
1859
+ ti(), (Le = !0);
1860
+ }
1861
+ }
1862
+ function ai() {
1863
+ var t = oi();
1864
+ le.innerHTML !== t && (le.innerHTML = t);
1865
+ }
1866
+ function oi() {
1867
+ var t = ri(),
1868
+ e = t[0] + 1,
1869
+ n = t[1] + 1;
1870
+ return e === n ? e + "" : e + " to " + n;
1871
+ }
1872
+ function ri(t) {
1873
+ null == t && (t = Ei());
1874
+ var e,
1875
+ n,
1876
+ i,
1877
+ a = re;
1878
+ if (
1879
+ (St || Mt
1880
+ ? (Ct || Tt) &&
1881
+ ((n = -(parseFloat(t) + Mt)), (i = n + kt + 2 * Mt))
1882
+ : Ct && ((n = gt[re]), (i = n + kt)),
1883
+ Ct)
1884
+ )
1885
+ gt.forEach(function (t, o) {
1886
+ o < Zt &&
1887
+ ((St || Mt) && t <= n + 0.5 && (a = o),
1888
+ i - t >= 0.5 && (e = o));
1889
+ });
1890
+ else {
1891
+ if (Tt) {
1892
+ var o = Tt + Et;
1893
+ St || Mt
1894
+ ? ((a = Math.floor(n / o)), (e = Math.ceil(i / o - 1)))
1895
+ : (e = a + Math.ceil(kt / o) - 1);
1896
+ } else if (St || Mt) {
1897
+ var r = Dt - 1;
1898
+ if (
1899
+ (St ? ((a -= r / 2), (e = re + r / 2)) : (e = re + r), Mt)
1900
+ ) {
1901
+ var s = (Mt * Dt) / kt;
1902
+ (a -= s), (e += s);
1903
+ }
1904
+ (a = Math.floor(a)), (e = Math.ceil(e));
1905
+ } else e = a + Dt - 1;
1906
+ (a = Math.max(a, 0)), (e = Math.min(e, Zt - 1));
1907
+ }
1908
+ return [a, e];
1909
+ }
1910
+ function si() {
1911
+ if (Yt && !we) {
1912
+ var t = ri();
1913
+ t.push(Kt),
1914
+ ui.apply(null, t).forEach(function (t) {
1915
+ if (!y(t, Fe)) {
1916
+ var e = {};
1917
+ (e[G] = function (t) {
1918
+ t.stopPropagation();
1919
+ }),
1920
+ H(t, e),
1921
+ H(t, je),
1922
+ (t.src = w(t, "data-src"));
1923
+ var n = w(t, "data-srcset");
1924
+ n && (t.srcset = n), g(t, "loading");
1925
+ }
1926
+ });
1927
+ }
1928
+ }
1929
+ function ci(t) {
1930
+ g(t, "loaded"), li(t);
1931
+ }
1932
+ function li(t) {
1933
+ g(t, Fe), b(t, "loading"), z(t, je);
1934
+ }
1935
+ function ui(t, e, n) {
1936
+ var i = [];
1937
+ for (n || (n = "img"); t <= e; )
1938
+ m(pt[t].querySelectorAll(n), function (t) {
1939
+ i.push(t);
1940
+ }),
1941
+ t++;
1942
+ return i;
1943
+ }
1944
+ function fi() {
1945
+ var t = ui.apply(null, ri());
1946
+ i(function () {
1947
+ di(t, mi);
1948
+ });
1949
+ }
1950
+ function di(t, e) {
1951
+ return ce
1952
+ ? e()
1953
+ : (t.forEach(function (e, n) {
1954
+ !Yt && e.complete && li(e), y(e, Fe) && t.splice(n, 1);
1955
+ }),
1956
+ t.length
1957
+ ? void i(function () {
1958
+ di(t, e);
1959
+ })
1960
+ : e());
1961
+ }
1962
+ function vi() {
1963
+ si(),
1964
+ yi(),
1965
+ ai(),
1966
+ Li(),
1967
+ (function () {
1968
+ if (Wt && ((on = an >= 0 ? an : An()), (an = -1), on !== rn)) {
1969
+ var t = Ze[rn],
1970
+ e = Ze[on];
1971
+ C(t, { tabindex: "-1", "aria-label": cn + (rn + 1) }),
1972
+ b(t, sn),
1973
+ C(e, { "aria-label": cn + (on + 1) + ln }),
1974
+ T(e, "tabindex"),
1975
+ g(e, sn),
1976
+ (rn = on);
1977
+ }
1978
+ })();
1979
+ }
1980
+ function pi(t, e) {
1981
+ for (var n = [], i = t, a = Math.min(t + e, Zt); i < a; i++)
1982
+ n.push(pt[i].offsetHeight);
1983
+ return Math.max.apply(null, n);
1984
+ }
1985
+ function mi() {
1986
+ var t = Pt ? pi(re, Dt) : pi(Ut, mt),
1987
+ e = rt || ut;
1988
+ e.style.height !== t && (e.style.height = t + "px");
1989
+ }
1990
+ function hi() {
1991
+ gt = [0];
1992
+ var t = ct ? "left" : "top",
1993
+ e = ct ? "right" : "bottom",
1994
+ n = pt[0].getBoundingClientRect()[t];
1995
+ m(pt, function (i, a) {
1996
+ a && gt.push(i.getBoundingClientRect()[t] - n),
1997
+ a === Zt - 1 && gt.push(i.getBoundingClientRect()[e] - n);
1998
+ });
1999
+ }
2000
+ function yi() {
2001
+ var t = ri(),
2002
+ e = t[0],
2003
+ n = t[1];
2004
+ m(pt, function (t, i) {
2005
+ i >= e && i <= n
2006
+ ? x(t, "aria-hidden") &&
2007
+ (T(t, ["aria-hidden", "tabindex"]), g(t, We))
2008
+ : x(t, "aria-hidden") ||
2009
+ (C(t, { "aria-hidden": "true", tabindex: "-1" }), b(t, We));
2010
+ });
2011
+ }
2012
+ function gi(t) {
2013
+ return t.nodeName.toLowerCase();
2014
+ }
2015
+ function bi(t) {
2016
+ return "button" === gi(t);
2017
+ }
2018
+ function xi(t) {
2019
+ return "true" === t.getAttribute("aria-disabled");
2020
+ }
2021
+ function wi(t, e, n) {
2022
+ t
2023
+ ? (e.disabled = n)
2024
+ : e.setAttribute("aria-disabled", n.toString());
2025
+ }
2026
+ function Li() {
2027
+ if (It && !Ht && !zt) {
2028
+ var t = _e ? Ye.disabled : xi(Ye),
2029
+ e = Ge ? Ke.disabled : xi(Ke),
2030
+ n = re <= fe,
2031
+ i = !Ht && re >= de;
2032
+ n && !t && wi(_e, Ye, !0),
2033
+ !n && t && wi(_e, Ye, !1),
2034
+ i && !e && wi(Ge, Ke, !0),
2035
+ !i && e && wi(Ge, Ke, !1);
2036
+ }
2037
+ }
2038
+ function Ci(t, e) {
2039
+ F && (t.style[F] = e);
2040
+ }
2041
+ function Ti(t) {
2042
+ return (
2043
+ null == t && (t = re),
2044
+ Ct
2045
+ ? (kt - (Mt ? Et : 0) - (gt[t + 1] - gt[t] - Et)) / 2
2046
+ : Tt
2047
+ ? (kt - Tt) / 2
2048
+ : (Dt - 1) / 2
2049
+ );
2050
+ }
2051
+ function Mi() {
2052
+ var t = kt + (Mt ? Et : 0) - (Tt ? (Tt + Et) * Zt : gt[Zt]);
2053
+ return (
2054
+ St &&
2055
+ !zt &&
2056
+ (t = Tt
2057
+ ? -(Tt + Et) * (Zt - 1) - Ti()
2058
+ : Ti(Zt - 1) - gt[Zt - 1]),
2059
+ t > 0 && (t = 0),
2060
+ t
2061
+ );
2062
+ }
2063
+ function Ei(t) {
2064
+ var e;
2065
+ if ((null == t && (t = re), ct && !Ct))
2066
+ if (Tt) (e = -(Tt + Et) * t), St && (e += Ti());
2067
+ else {
2068
+ var n = W ? Zt : Dt;
2069
+ St && (t -= Ti()), (e = (100 * -t) / n);
2070
+ }
2071
+ else (e = -gt[t]), St && Ct && (e += Ti());
2072
+ return (
2073
+ $t && (e = Math.max(e, te)), e + (!ct || Ct || Tt ? "px" : "%")
2074
+ );
2075
+ }
2076
+ function ki(t) {
2077
+ Ci(ft, "0s"), Si(t);
2078
+ }
2079
+ function Si(t) {
2080
+ null == t && (t = Ei()), (ft.style[ne] = ie + t + ae);
2081
+ }
2082
+ function Di(t, e, n, i) {
2083
+ var a = t + Dt;
2084
+ zt || (a = Math.min(a, Zt));
2085
+ for (var o = t; o < a; o++) {
2086
+ var r = pt[o];
2087
+ i || (r.style.left = (100 * (o - re)) / Dt + "%"),
2088
+ at &&
2089
+ j &&
2090
+ (r.style[j] = r.style[_] = (at * (o - t)) / 1e3 + "s"),
2091
+ b(r, e),
2092
+ g(r, n),
2093
+ i && Jt.push(r);
2094
+ }
2095
+ }
2096
+ function Ni(t, e) {
2097
+ ee && Mn(),
2098
+ (re !== se || e) &&
2099
+ (ge.emit("indexChanged", ta()),
2100
+ ge.emit("transitionStart", ta()),
2101
+ Pt && fi(),
2102
+ fn && t && ["click", "keydown"].indexOf(t.type) >= 0 && Wi(),
2103
+ (he = !0),
2104
+ En());
2105
+ }
2106
+ function Ai(t) {
2107
+ return t.toLowerCase().replace(/-/g, "");
2108
+ }
2109
+ function Bi(t) {
2110
+ if (Z || he) {
2111
+ if ((ge.emit("transitionEnd", ta(t)), !Z && Jt.length > 0))
2112
+ for (var e = 0; e < Jt.length; e++) {
2113
+ var n = Jt[e];
2114
+ (n.style.left = ""),
2115
+ _ && j && ((n.style[_] = ""), (n.style[j] = "")),
2116
+ b(n, it),
2117
+ g(n, ot);
2118
+ }
2119
+ if (
2120
+ !t ||
2121
+ (!Z && t.target.parentNode === ft) ||
2122
+ (t.target === ft && Ai(t.propertyName) === Ai(ne))
2123
+ ) {
2124
+ if (!ee) {
2125
+ var i = re;
2126
+ Mn(), re !== i && (ge.emit("indexChanged", ta()), ki());
2127
+ }
2128
+ "inner" === U && ge.emit("innerLoaded", ta()),
2129
+ (he = !1),
2130
+ (se = re);
2131
+ }
2132
+ }
2133
+ }
2134
+ function Oi(t, e) {
2135
+ if (!Te)
2136
+ if ("prev" === t) Hi(e, -1);
2137
+ else if ("next" === t) Hi(e, 1);
2138
+ else {
2139
+ if (he) {
2140
+ if (ve) return;
2141
+ Bi();
2142
+ }
2143
+ var n = Nn(),
2144
+ i = 0;
2145
+ if (
2146
+ ("first" === t
2147
+ ? (i = -n)
2148
+ : "last" === t
2149
+ ? (i = Z ? mt - Dt - n : mt - 1 - n)
2150
+ : ("number" != typeof t && (t = parseInt(t)),
2151
+ isNaN(t) ||
2152
+ (e || (t = Math.max(0, Math.min(mt - 1, t))),
2153
+ (i = t - n))),
2154
+ !Z && i && Math.abs(i) < Dt)
2155
+ ) {
2156
+ var a = i > 0 ? 1 : -1;
2157
+ i += re + i - mt >= fe ? mt * a : 2 * mt * a * -1;
2158
+ }
2159
+ (re += i),
2160
+ Z && zt && (re < fe && (re += mt), re > de && (re -= mt)),
2161
+ Nn(re) !== Nn(se) && Ni(e);
2162
+ }
2163
+ }
2164
+ function Hi(t, e) {
2165
+ if (he) {
2166
+ if (ve) return;
2167
+ Bi();
2168
+ }
2169
+ var n;
2170
+ if (!e) {
2171
+ for (
2172
+ var i = Vi((t = ji(t)));
2173
+ i !== Qe && [Ye, Ke].indexOf(i) < 0;
2174
+
2175
+ )
2176
+ i = i.parentNode;
2177
+ var a = [Ye, Ke].indexOf(i);
2178
+ a >= 0 && ((n = !0), (e = 0 === a ? -1 : 1));
2179
+ }
2180
+ if (Ht) {
2181
+ if (re === fe && -1 === e) return void Oi("last", t);
2182
+ if (re === de && 1 === e) return void Oi("first", t);
2183
+ }
2184
+ e &&
2185
+ ((re += Nt * e),
2186
+ Ct && (re = Math.floor(re)),
2187
+ Ni(n || (t && "keydown" === t.type) ? t : null));
2188
+ }
2189
+ function zi() {
2190
+ (un = setInterval(function () {
2191
+ Hi(null, mn);
2192
+ }, Vt)),
2193
+ (fn = !0);
2194
+ }
2195
+ function Pi() {
2196
+ clearInterval(un), (fn = !1);
2197
+ }
2198
+ function Ii(t, e) {
2199
+ C(hn, { "data-action": t }), (hn.innerHTML = gn[0] + t + gn[1] + e);
2200
+ }
2201
+ function Ri() {
2202
+ zi(), hn && Ii("stop", _t[1]);
2203
+ }
2204
+ function Wi() {
2205
+ Pi(), hn && Ii("start", _t[0]);
2206
+ }
2207
+ function qi() {
2208
+ fn ? (Wi(), (vn = !0)) : (Ri(), (vn = !1));
2209
+ }
2210
+ function Fi(t) {
2211
+ t.focus();
2212
+ }
2213
+ function ji(t) {
2214
+ return _i((t = t || n.event)) ? t.changedTouches[0] : t;
2215
+ }
2216
+ function Vi(t) {
2217
+ return t.target || n.event.srcElement;
2218
+ }
2219
+ function _i(t) {
2220
+ return t.type.indexOf("touch") >= 0;
2221
+ }
2222
+ function Gi(t) {
2223
+ t.preventDefault ? t.preventDefault() : (t.returnValue = !1);
2224
+ }
2225
+ function Qi() {
2226
+ return (
2227
+ (o = Ln.y - wn.y),
2228
+ (r = Ln.x - wn.x),
2229
+ (e = Math.atan2(o, r) * (180 / Math.PI)),
2230
+ (n = pe),
2231
+ (i = !1),
2232
+ (a = Math.abs(90 - Math.abs(e))) >= 90 - n
2233
+ ? (i = "horizontal")
2234
+ : a <= n && (i = "vertical"),
2235
+ i === t.axis
2236
+ );
2237
+ var e, n, i, a, o, r;
2238
+ }
2239
+ function Xi(t) {
2240
+ if (he) {
2241
+ if (ve) return;
2242
+ Bi();
2243
+ }
2244
+ jt && fn && Pi(), (Cn = !0), xn && (o(xn), (xn = null));
2245
+ var e = ji(t);
2246
+ ge.emit(_i(t) ? "touchStart" : "dragStart", ta(t)),
2247
+ !_i(t) && ["img", "a"].indexOf(gi(Vi(t))) >= 0 && Gi(t),
2248
+ (Ln.x = wn.x = e.clientX),
2249
+ (Ln.y = wn.y = e.clientY),
2250
+ Z &&
2251
+ ((bn = parseFloat(ft.style[ne].replace(ie, ""))), Ci(ft, "0s"));
2252
+ }
2253
+ function Yi(t) {
2254
+ if (Cn) {
2255
+ var e = ji(t);
2256
+ (Ln.x = e.clientX),
2257
+ (Ln.y = e.clientY),
2258
+ Z
2259
+ ? xn ||
2260
+ (xn = i(function () {
2261
+ Ki(t);
2262
+ }))
2263
+ : ("?" === me && (me = Qi()), me && (Ve = !0)),
2264
+ ("boolean" != typeof t.cancelable || t.cancelable) &&
2265
+ Ve &&
2266
+ t.preventDefault();
2267
+ }
2268
+ }
2269
+ function Ki(t) {
2270
+ if (me) {
2271
+ if (
2272
+ (o(xn),
2273
+ Cn &&
2274
+ (xn = i(function () {
2275
+ Ki(t);
2276
+ })),
2277
+ "?" === me && (me = Qi()),
2278
+ me)
2279
+ ) {
2280
+ !Ve && _i(t) && (Ve = !0);
2281
+ try {
2282
+ t.type && ge.emit(_i(t) ? "touchMove" : "dragMove", ta(t));
2283
+ } catch (t) {}
2284
+ var e = bn,
2285
+ n = Tn(Ln, wn);
2286
+ !ct || Tt || Ct
2287
+ ? ((e += n), (e += "px"))
2288
+ : ((e += W
2289
+ ? (n * Dt * 100) / ((kt + Et) * Zt)
2290
+ : (100 * n) / (kt + Et)),
2291
+ (e += "%")),
2292
+ (ft.style[ne] = ie + e + ae);
2293
+ }
2294
+ } else Cn = !1;
2295
+ }
2296
+ function Ji(e) {
2297
+ if (Cn) {
2298
+ xn && (o(xn), (xn = null)), Z && Ci(ft, ""), (Cn = !1);
2299
+ var n = ji(e);
2300
+ (Ln.x = n.clientX), (Ln.y = n.clientY);
2301
+ var a = Tn(Ln, wn);
2302
+ if (Math.abs(a)) {
2303
+ if (!_i(e)) {
2304
+ var r = Vi(e);
2305
+ H(r, {
2306
+ click: function t(e) {
2307
+ Gi(e), z(r, { click: t });
2308
+ },
2309
+ });
2310
+ }
2311
+ Z
2312
+ ? (xn = i(function () {
2313
+ if (ct && !Ct) {
2314
+ var t = (-a * Dt) / (kt + Et);
2315
+ (t = a > 0 ? Math.floor(t) : Math.ceil(t)), (re += t);
2316
+ } else {
2317
+ var n = -(bn + a);
2318
+ if (n <= 0) re = fe;
2319
+ else if (n >= gt[Zt - 1]) re = de;
2320
+ else
2321
+ for (var i = 0; i < Zt && n >= gt[i]; )
2322
+ (re = i), n > gt[i] && a < 0 && (re += 1), i++;
2323
+ }
2324
+ Ni(e, a), ge.emit(_i(e) ? "touchEnd" : "dragEnd", ta(e));
2325
+ }))
2326
+ : me && Hi(e, a > 0 ? -1 : 1);
2327
+ }
2328
+ }
2329
+ "auto" === t.preventScrollOnTouch && (Ve = !1),
2330
+ pe && (me = "?"),
2331
+ jt && !fn && zi();
2332
+ }
2333
+ function Ui() {
2334
+ (rt || ut).style.height = gt[re + Dt] - gt[re] + "px";
2335
+ }
2336
+ function Zi() {
2337
+ var t = Tt ? ((Tt + Et) * mt) / kt : mt / Dt;
2338
+ return Math.min(Math.ceil(t), mt);
2339
+ }
2340
+ function $i() {
2341
+ if (Wt && !ze && en !== nn) {
2342
+ var t = nn,
2343
+ e = en,
2344
+ n = k;
2345
+ for (nn > en && ((t = en), (e = nn), (n = E)); t < e; )
2346
+ n(Ze[t]), t++;
2347
+ nn = en;
2348
+ }
2349
+ }
2350
+ function ta(t) {
2351
+ return {
2352
+ container: ft,
2353
+ slideItems: pt,
2354
+ navContainer: $e,
2355
+ navItems: Ze,
2356
+ controlsContainer: Qe,
2357
+ hasControls: Oe,
2358
+ prevButton: Ye,
2359
+ nextButton: Ke,
2360
+ items: Dt,
2361
+ slideBy: Nt,
2362
+ cloneCount: Ut,
2363
+ slideCount: mt,
2364
+ slideCountNew: Zt,
2365
+ index: re,
2366
+ indexCached: se,
2367
+ displayIndex: Sn(),
2368
+ navCurrentIndex: on,
2369
+ navCurrentIndexCached: rn,
2370
+ pages: en,
2371
+ pagesCached: nn,
2372
+ sheet: Xt,
2373
+ isOn: yt,
2374
+ event: t || {},
2375
+ };
2376
+ }
2377
+ X && console.warn("No slides found in", t.container);
2378
+ };
2379
+ e.W = I;
2380
+ },
2381
+ },
2382
+ e = {};
2383
+ function n(i) {
2384
+ var a = e[i];
2385
+ if (void 0 !== a) return a.exports;
2386
+ var o = (e[i] = { exports: {} });
2387
+ return t[i](o, o.exports, n), o.exports;
2388
+ }
2389
+ (() => {
2390
+ "use strict";
2391
+ var t = n(206);
2392
+ !(function (e, n) {
2393
+ e.behaviors.paragraphTicker = {
2394
+ attach: function (e, i) {
2395
+ n("paragraph-tickers", ".paragraph--type--ticker", e).forEach(
2396
+ function (e) {
2397
+ var n = e.querySelector(".ticker-items > .field__items"),
2398
+ i = 2,
2399
+ a = !1,
2400
+ o = !1;
2401
+ e.classList.contains("ticker-autoplay") && (a = !0),
2402
+ e.classList.contains("ticker-nav") && (o = !0),
2403
+ e.classList.contains("ticker-count-2") && (i = 2),
2404
+ e.classList.contains("ticker-count-3") && (i = 3),
2405
+ e.classList.contains("ticker-count-4") && (i = 4),
2406
+ e.classList.contains("ticker-count-6") && (i = 6),
2407
+ new t.W({
2408
+ container: n,
2409
+ slideBy: "page",
2410
+ items: 1,
2411
+ autoplay: a,
2412
+ gutter: 10,
2413
+ autoplayButtonOutput: !1,
2414
+ nav: o,
2415
+ navPosition: "bottom",
2416
+ controlsText: ["", ""],
2417
+ controlsPosition: "bottom",
2418
+ preventScrollOnTouch: "auto",
2419
+ responsive: { 1500: { items: i }, 1e3: { items: 2 } },
2420
+ });
2421
+ }
2422
+ );
2423
+ },
2424
+ };
2425
+ })(Drupal, once),
2426
+ (function (e, n) {
2427
+ e.behaviors.eventsTicker = {
2428
+ attach: function (e, i) {
2429
+ n(
2430
+ "events-tickers",
2431
+ ".view-events.view-display-id-events_upcoming_block",
2432
+ e
2433
+ ).forEach(function (e) {
2434
+ var n = e.querySelector(".view-content");
2435
+ new t.W({
2436
+ container: n,
2437
+ slideBy: "page",
2438
+ items: 1,
2439
+ autoplay: !1,
2440
+ gutter: 24,
2441
+ autoHeight: !0,
2442
+ autoplayButtonOutput: !1,
2443
+ nav: !0,
2444
+ navPosition: "bottom",
2445
+ controlsText: ["", ""],
2446
+ controlsPosition: "bottom",
2447
+ preventScrollOnTouch: "auto",
2448
+ responsive: { 1500: { items: 3 }, 1e3: { items: 2 } },
2449
+ });
2450
+ });
2451
+ },
2452
+ };
2453
+ })(Drupal, once),
2454
+ n(180),
2455
+ n(904),
2456
+ n(792),
2457
+ n(709);
2458
+ })();
2459
+ })();
2460
+
2461
+ /*! js-cookie v3.0.1 | MIT */
2462
+ !(function (e, t) {
2463
+ "object" == typeof exports && "undefined" != typeof module
2464
+ ? (module.exports = t())
2465
+ : "function" == typeof define && define.amd
2466
+ ? define(t)
2467
+ : ((e = e || self),
2468
+ (function () {
2469
+ var n = e.Cookies,
2470
+ o = (e.Cookies = t());
2471
+ o.noConflict = function () {
2472
+ return (e.Cookies = n), o;
2473
+ };
2474
+ })());
2475
+ })(this, function () {
2476
+ "use strict";
2477
+ function e(e) {
2478
+ for (var t = 1; t < arguments.length; t++) {
2479
+ var n = arguments[t];
2480
+ for (var o in n) e[o] = n[o];
2481
+ }
2482
+ return e;
2483
+ }
2484
+ return (function t(n, o) {
2485
+ function r(t, r, i) {
2486
+ if ("undefined" != typeof document) {
2487
+ "number" == typeof (i = e({}, o, i)).expires &&
2488
+ (i.expires = new Date(Date.now() + 864e5 * i.expires)),
2489
+ i.expires && (i.expires = i.expires.toUTCString()),
2490
+ (t = encodeURIComponent(t)
2491
+ .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)
2492
+ .replace(/[()]/g, escape));
2493
+ var c = "";
2494
+ for (var u in i)
2495
+ i[u] &&
2496
+ ((c += "; " + u), !0 !== i[u] && (c += "=" + i[u].split(";")[0]));
2497
+ return (document.cookie = t + "=" + n.write(r, t) + c);
2498
+ }
2499
+ }
2500
+ return Object.create(
2501
+ {
2502
+ set: r,
2503
+ get: function (e) {
2504
+ if ("undefined" != typeof document && (!arguments.length || e)) {
2505
+ for (
2506
+ var t = document.cookie ? document.cookie.split("; ") : [],
2507
+ o = {},
2508
+ r = 0;
2509
+ r < t.length;
2510
+ r++
2511
+ ) {
2512
+ var i = t[r].split("="),
2513
+ c = i.slice(1).join("=");
2514
+ try {
2515
+ var u = decodeURIComponent(i[0]);
2516
+ if (((o[u] = n.read(c, u)), e === u)) break;
2517
+ } catch (e) {}
2518
+ }
2519
+ return e ? o[e] : o;
2520
+ }
2521
+ },
2522
+ remove: function (t, n) {
2523
+ r(t, "", e({}, n, { expires: -1 }));
2524
+ },
2525
+ withAttributes: function (n) {
2526
+ return t(this.converter, e({}, this.attributes, n));
2527
+ },
2528
+ withConverter: function (n) {
2529
+ return t(e({}, this.converter, n), this.attributes);
2530
+ },
2531
+ },
2532
+ {
2533
+ attributes: { value: Object.freeze(o) },
2534
+ converter: { value: Object.freeze(n) },
2535
+ }
2536
+ );
2537
+ })(
2538
+ {
2539
+ read: function (e) {
2540
+ return (
2541
+ '"' === e[0] && (e = e.slice(1, -1)),
2542
+ e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
2543
+ );
2544
+ },
2545
+ write: function (e) {
2546
+ return encodeURIComponent(e).replace(
2547
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
2548
+ decodeURIComponent
2549
+ );
2550
+ },
2551
+ },
2552
+ { path: "/" }
2553
+ );
2554
+ });
2555
+ (function ($) {
2556
+ (function ($) {
2557
+ /**
2558
+ * Copyright 2012, Digital Fusion
2559
+ * Licensed under the MIT license.
2560
+ * http://teamdf.com/jquery-plugins/license/
2561
+ *
2562
+ * @author Sam Sehnert
2563
+ * @desc A small plugin that checks whether elements are within
2564
+ * the user visible viewport of a web browser.
2565
+ * only accounts for vertical position, not horizontal.
2566
+ */
2567
+
2568
+ $.fn.formvisible = function (partial) {
2569
+ var $t = $(this),
2570
+ $w = $(window),
2571
+ viewTop = $w.scrollTop(),
2572
+ viewBottom = viewTop + $w.height(),
2573
+ _top = $t.offset().top,
2574
+ _bottom = _top + $t.height(),
2575
+ compareTop = partial === true ? _bottom : _top,
2576
+ compareBottom = partial === true ? _top : _bottom;
2577
+
2578
+ return compareBottom <= viewBottom && compareTop >= viewTop;
2579
+ };
2580
+ })(jQuery);
2581
+
2582
+ $(document).ready(activeFormsInit());
2583
+ $(window).scroll(function () {
2584
+ activeFormsInit();
2585
+ });
2586
+
2587
+ function activeFormsInit() {
2588
+ if ($("form").not(".node-form").length) {
2589
+ activeFormsFocus();
2590
+ }
2591
+ }
2592
+
2593
+ function activeFormsFocus() {
2594
+ /*select first input/textarea of a form when it gets scrolled into view*/
2595
+ $("form").each(function (fi, formx) {
2596
+ var formx = $(formx);
2597
+ id = formx.attr("id");
2598
+ if ($("#" + id).hasClass("vliz_active_forms")) {
2599
+ return;
2600
+ }
2601
+ if (formx.formvisible(true)) {
2602
+ $("#" + id + " input:text, #" + id + " textarea")
2603
+ .first()
2604
+ .focus();
2605
+ $("#" + id).addClass("vliz_active_forms");
2606
+ }
2607
+ });
2608
+ }
2609
+ })(jQuery);
2610
+ (function ($) {
2611
+ (function ($) {
2612
+ /**
2613
+ * Copyright 2012, Digital Fusion
2614
+ * Licensed under the MIT license.
2615
+ * http://teamdf.com/jquery-plugins/license/
2616
+ *
2617
+ * @author Sam Sehnert
2618
+ * @desc A small plugin that checks whether elements are within
2619
+ * the user visible viewport of a web browser.
2620
+ * only accounts for vertical position, not horizontal.
2621
+ */
2622
+
2623
+ $.fn.imgvisible = function (partial) {
2624
+ var $t = $(this),
2625
+ $w = $(window),
2626
+ viewTop = $w.scrollTop(),
2627
+ viewBottom = viewTop + $w.height(),
2628
+ _top = $t.offset().top,
2629
+ _bottom = _top + $t.height(),
2630
+ compareTop = partial === true ? _bottom : _top,
2631
+ compareBottom = partial === true ? _top : _bottom;
2632
+
2633
+ return compareBottom <= viewBottom && compareTop >= viewTop;
2634
+ };
2635
+ })(jQuery);
2636
+
2637
+ $(document).ready(lazyInit("ready"));
2638
+ $(window).scroll(function () {
2639
+ lazyInit("scroll");
2640
+ });
2641
+ window.onresize = lazyInit(function () {
2642
+ lazyInit("onresize");
2643
+ });
2644
+ const observer = new ResizeObserver((entries) => {
2645
+ for (const entry of entries) {
2646
+ lazyInit("observer");
2647
+ }
2648
+ });
2649
+ observer.observe(document.querySelector("body"));
2650
+
2651
+ function lazyInit(trigger) {
2652
+ // console.log(trigger);
2653
+ if ($(".bglazyload").length) {
2654
+ bglazyload();
2655
+ }
2656
+ if ($("lazyimg").length) {
2657
+ fglazyload();
2658
+ }
2659
+ if ($(".lazycss").length) {
2660
+ csslazyload();
2661
+ }
2662
+ }
2663
+
2664
+ function bglazyload() {
2665
+ $(".bglazyload").each(function (bi, bgel) {
2666
+ var bgel = $(bgel);
2667
+ if (bgel.imgvisible(true)) {
2668
+ bgel.removeClass("bglazyload");
2669
+ bgel.addClass("vlizbglazyloaded");
2670
+ bgnewhtml = bgel
2671
+ .prop("outerHTML")
2672
+ .replace("lazybackground", "background");
2673
+
2674
+ bgel.replaceWith(bgnewhtml);
2675
+ }
2676
+ });
2677
+ }
2678
+
2679
+ function fglazyload() {
2680
+ $("lazyimg").each(function (fi, fgel) {
2681
+ var fgel = $(fgel);
2682
+ if (fgel.imgvisible(true)) {
2683
+ fgel.addClass("vlizfglazyloaded");
2684
+ fgel.attr("src", fgel.attr("data-src"));
2685
+ fgnewhtml = fgel.prop("outerHTML").replace("lazyimg", "img");
2686
+ fgel.replaceWith(fgnewhtml);
2687
+ }
2688
+ });
2689
+ }
2690
+
2691
+ function csslazyload() {
2692
+ $(".lazycss").each(function (ci, cgel) {
2693
+ var cgel = $(cgel);
2694
+ if (cgel.imgvisible(true)) {
2695
+ cgel.addClass("visible");
2696
+ }
2697
+ });
2698
+ }
2699
+ })(jQuery);
2700
+ (function ($) {
2701
+ windowlocationstring = window.location.toString();
2702
+ if ($("link[rel='canonical']").length) {
2703
+ const nextURL = document
2704
+ .querySelector("link[rel='canonical']")
2705
+ .getAttribute("href");
2706
+ if (nextURL.indexOf("/user/") < 0 && nextURL.indexOf("/node/") < 0) {
2707
+ hashtag = windowlocationstring.split("#");
2708
+ if (typeof hashtag[1] != "undefined") {
2709
+ hashtag = "#" + hashtag[1];
2710
+ } else {
2711
+ hashtag = "";
2712
+ }
2713
+
2714
+ const nextTitle = document.getElementsByTagName("title")[0].innerHTML;
2715
+ const nextState = { additionalInformation: "Updated the URL with JS" };
2716
+
2717
+ // This will create a new entry in the browser's history, without reloading
2718
+ // window.history.pushState(nextState, nextTitle, nextURL);
2719
+ currenturl = window.location.href;
2720
+ currentparam = "";
2721
+
2722
+ if (currenturl.indexOf("?") >= 0) {
2723
+ currentparam =
2724
+ "?" + currenturl.split("?")[1].replace(/&?[^&?]+=(?=(?:&|$))/g, "");
2725
+ if (currentparam.substr(0, 2) == "?&") {
2726
+ currentparam = currentparam.replace("?&", "?");
2727
+ }
2728
+ }
2729
+
2730
+ // This will replace the current entry in the browser's history, without reloading
2731
+ if (currenturl != nextURL) {
2732
+ // console.log('vlizoverwrites/vliz_canonical redirecting to canonical');
2733
+ // console.log(windowlocationstring);
2734
+ // console.log(nextURL);
2735
+ window.history.replaceState(
2736
+ nextState,
2737
+ nextTitle,
2738
+ nextURL + currentparam + hashtag
2739
+ );
2740
+ }
2741
+ }
2742
+ }
2743
+ })(jQuery);
2744
+ (function ($) {
2745
+ $(document).ready(function () {
2746
+ if ($(".collapsed").length > 0) {
2747
+ $(".collapsed .paragraph").each(function (index, value) {
2748
+ if ($(this).find(".string").length > 0) {
2749
+ stringindex = index;
2750
+ firstline = $(this).find(".string");
2751
+ $(firstline).addClass("collapseline iscollapsed collapsedstart");
2752
+ if ($(firstline).length > 0 && $(firstline).siblings().length > 0) {
2753
+ $(firstline).attr("scollaps", index);
2754
+ tohide = $(firstline).next(".text-long");
2755
+ if ($(tohide).length > 0) {
2756
+ tohide.addClass("hidden tohide");
2757
+ $(tohide).attr("tcollaps", "" + index);
2758
+ }
2759
+ } else {
2760
+ // $(firstline).addClass("none");
2761
+ }
2762
+ } else {
2763
+ if (typeof tohide !== "undefined" && $(tohide).length > 0) {
2764
+ $(this).addClass("hidden tohide");
2765
+ $(this).attr("tcollaps", "" + stringindex);
2766
+ }
2767
+ }
2768
+ });
2769
+ }
2770
+
2771
+ if ($(".collapsible").length > 0) {
2772
+ $(".collapsible .paragraph").each(function (index, value) {
2773
+ if ($(this).find(".string")) {
2774
+ firstline = $(this).find(".string");
2775
+ $(firstline).attr("sopen", index);
2776
+ $(firstline).addClass("collapseline");
2777
+ }
2778
+ if ($(firstline).length > 0 && $(firstline).siblings().length > 0) {
2779
+ tohide = $(firstline).next(".text-long");
2780
+ if ($(tohide).length > 0) {
2781
+ $(tohide).attr("topen", "" + index);
2782
+ tohide.addClass("tohide");
2783
+ }
2784
+ } else {
2785
+ // $(firstline).addClass("none");
2786
+ }
2787
+ });
2788
+ }
2789
+ $("body").on("click", ".collapseline", function () {
2790
+ collapseclick(this);
2791
+ });
2792
+ });
2793
+
2794
+ function collapseclick(clickedstring) {
2795
+ $(clickedstring).toggleClass("iscollapsed");
2796
+ if ($(clickedstring).hasClass("collapsedstart")) {
2797
+ collapsid = $(clickedstring).attr("scollaps");
2798
+ $("[tcollaps=" + collapsid + "]").toggleClass("hidden");
2799
+ } else {
2800
+ collapsid = $(clickedstring).attr("sopen");
2801
+ $("[topen=" + collapsid + "]").toggleClass("hidden");
2802
+ }
2803
+ }
2804
+ })(jQuery);
2805
+ (function ($) {
2806
+ window.toggle_contrast = function () {
2807
+ $("html").toggleClass("contrast");
2808
+
2809
+ if (Cookies.get("contrast") === "true") {
2810
+ Cookies.remove("contrast");
2811
+ } else {
2812
+ Cookies.set("contrast", "true", 7);
2813
+ }
2814
+ };
2815
+
2816
+ $(document).ready(function () {
2817
+ if (Cookies.get("contrast") === "true") $("html").toggleClass("contrast");
2818
+ });
2819
+ })(jQuery);
2820
+ (function ($) {
2821
+ $(document).ready(destinationlink());
2822
+
2823
+ function destinationlink() {
2824
+ if ($(".tabs.primary").length) {
2825
+ destination = GetUrlParameter("destination");
2826
+ if (typeof destination != "undefined") {
2827
+ var destinationID = destination.replace(/[^0-9]/g, "");
2828
+ if (
2829
+ $.isNumeric(destinationID) &&
2830
+ typeof $(".tabs.primary li.is-active").prop("outerHTML") !=
2831
+ "undefined"
2832
+ ) {
2833
+ console.log($(".tabs.primary li.is-active").prop("outerHTML"));
2834
+ destinationtab = $(".tabs.primary li.is-active")
2835
+ .prop("outerHTML")
2836
+ .replace(/\d+/g, destinationID)
2837
+ .replace("is-active", "destinationtab")
2838
+ .replace("/edit", "");
2839
+ $(".tabs.primary li.is-active").before(destinationtab);
2840
+ $(".destinationtab a").text("Destination");
2841
+ }
2842
+ }
2843
+ }
2844
+
2845
+ //keep destination between pages until pressing save
2846
+ if (
2847
+ document.location.pathname.includes("/node/add") &&
2848
+ location.href.includes("?destination=/")
2849
+ ) {
2850
+ $(".node-type-list a").each(function () {
2851
+ var href = $(this).attr("href");
2852
+ destination = "?" + location.href.split("?")[1];
2853
+ $(this).attr("href", href + destination);
2854
+ });
2855
+ }
2856
+ }
2857
+
2858
+ function GetUrlParameter(sParam) {
2859
+ var sPageURL = window.location.search.substring(1);
2860
+ var sURLVariables = sPageURL.split("&");
2861
+
2862
+ for (var i = 0; i < sURLVariables.length; i++) {
2863
+ var sParameterName = sURLVariables[i].split("=");
2864
+ if (sParameterName[0] == sParam) {
2865
+ return sParameterName[1];
2866
+ }
2867
+ }
2868
+ }
2869
+ })(jQuery);
2870
+ (function ($) {
2871
+ $(document).ready(entrefedit());
2872
+
2873
+ function entrefedit() {
2874
+ $(".field--type-entity-reference input")
2875
+ .not(".node-form-author")
2876
+ .not(".linked")
2877
+ .not(".form-checkbox")
2878
+ .not(".form-radio ")
2879
+ .each(function (entrefi, entrefv) {
2880
+ prepNodeID = $(entrefv).val().split("(");
2881
+ NodeID = prepNodeID[prepNodeID.length - 1].replace(/[^0-9]/g, "");
2882
+ if (NodeID) {
2883
+ cururlpathname = document.location.pathname;
2884
+ newurl = cururlpathname.replace(/\d+/g, NodeID);
2885
+ $(entrefv)
2886
+ .closest(".js-form-item")
2887
+ .append(
2888
+ '<a href="' +
2889
+ newurl +
2890
+ "?destination=" +
2891
+ cururlpathname +
2892
+ '">edit</a>'
2893
+ );
2894
+ $(entrefv).addClass("linked");
2895
+ }
2896
+ })
2897
+ .promise()
2898
+ .done(function () {
2899
+ cururlpathname = document.location.pathname;
2900
+ addurl = cururlpathname.replace(/\d+/g, "add").replace("/edit", "");
2901
+ $(".field--type-entity-reference input")
2902
+ .not(".node-form-author")
2903
+ .not(".linked")
2904
+ .not(".form-checkbox")
2905
+ .not(".form-radio ")
2906
+ .closest(".js-form-item")
2907
+ .append(
2908
+ 'use the autocomplete or <a target="_blank" href="' +
2909
+ addurl +
2910
+ "?destination=" +
2911
+ cururlpathname +
2912
+ '">create a new item to be referenced</a>'
2913
+ );
2914
+ });
2915
+ }
2916
+ })(jQuery);
2917
+ (function ($) {
2918
+ $(document).ready(function () {
2919
+ if ($("#edit-field-estimated-reading-time-0-value").length) {
2920
+ $("#edit-field-estimated-reading-time-0-value").after(
2921
+ '<span id="estimatedreadingtime"></span>'
2922
+ );
2923
+
2924
+ var typingTimer;
2925
+ var doneTypingInterval = 500; //time in ms
2926
+ var $input = $(".form-element");
2927
+
2928
+ $input.on("keyup", function () {
2929
+ clearTimeout(typingTimer);
2930
+ typingTimer = setTimeout(doneTyping, doneTypingInterval);
2931
+ });
2932
+
2933
+ $input.on("keydown", function () {
2934
+ clearTimeout(typingTimer);
2935
+ });
2936
+
2937
+ function doneTyping() {
2938
+ readingtxt = "";
2939
+ for (
2940
+ i = 0;
2941
+ i < $(".layout-region--node-main .form-element").length;
2942
+ i++
2943
+ ) {
2944
+ readingtxt +=
2945
+ " " +
2946
+ $(".layout-region--node-main .form-element:eq(" + i + ")").val();
2947
+ }
2948
+ console.log(readingtxt);
2949
+ console.log(readingtxt.split(" ").length);
2950
+ estimatedreadingtime = readingtxt.split(" ").length / 250;
2951
+ $("#estimatedreadingtime").text(
2952
+ "Automated reading time estimate: " +
2953
+ Math.round(estimatedreadingtime) +
2954
+ " minutes"
2955
+ );
2956
+ }
2957
+ }
2958
+ });
2959
+ })(jQuery);
2960
+ (function ($) {
2961
+ $(document).ready(function () {
2962
+ if ($(".vliziframeswapper").length) {
2963
+ $(".vliziframeswapper")
2964
+ .closest("object")
2965
+ .click(function () {
2966
+ swappable = $(this);
2967
+ htmlswappable = swappable[0].outerHTML;
2968
+ htmliframe = htmlswappable
2969
+ .replace("object", "iframe")
2970
+ .replace("data-src", "src");
2971
+ $(swappable).replaceWith(htmliframe);
2972
+ });
2973
+
2974
+ $(".vliziframeswapper").each(function () {
2975
+ var bgimg = $(this).closest("object").attr("height");
2976
+ $(this).css("height", $(this).closest("object").attr("height"));
2977
+ var bgimg = $(this).closest("object").attr("data-bgimg");
2978
+ if (typeof bgimg !== typeof undefined && bgimg !== false) {
2979
+ $(this).css("background-image", "url(" + bgimg + ")");
2980
+ $(this).addClass("hasbgimg");
2981
+ }
2982
+ });
2983
+ }
2984
+ });
2985
+ })(jQuery);
2986
+ (function ($) {
2987
+ $(document).ready(function () {
2988
+ if ($(".texttabs").length) {
2989
+ texttabsID = $(".texttabs").attr("id");
2990
+ texttabsHTML = '<div class="inner btns"><ul class="texttabsHTML">';
2991
+ counttabs = 0;
2992
+ $("#" + texttabsID + ".texttabs .paragraph").each(function (
2993
+ index,
2994
+ value
2995
+ ) {
2996
+ if ($(this).find(".string") && $(this).find(".text-long")) {
2997
+ tabtitle = $(this).find(".string");
2998
+ tabtitletxt = tabtitle.text();
2999
+
3000
+ /* use font-awsome icons */
3001
+ if (tabtitletxt.startsWith("fa-")) {
3002
+ tabtitletxt = '<i class="' + tabtitletxt + '"></i>';
3003
+ }
3004
+
3005
+ $(tabtitle).remove();
3006
+
3007
+ // tabtext=$(this).find(".text-long");
3008
+ $(this).attr("data-tab", index);
3009
+
3010
+ if (counttabs != 0) {
3011
+ $(this).addClass("hidden");
3012
+
3013
+ texttabsHTML +=
3014
+ '<li data-tab="' + index + '">' + tabtitletxt + "</li>";
3015
+ } else {
3016
+ texttabsHTML +=
3017
+ '<li class="activetab" data-tab="' +
3018
+ index +
3019
+ '">' +
3020
+ tabtitletxt +
3021
+ "</li>";
3022
+ }
3023
+ counttabs++;
3024
+ } else {
3025
+ alert("title or text missing");
3026
+ }
3027
+ });
3028
+
3029
+ $("#" + texttabsID + ".texttabs").prepend(texttabsHTML + "</ul></div>");
3030
+
3031
+ $("#" + texttabsID + " .texttabsHTML li").click(function () {
3032
+ tabid = $(this).attr("data-tab");
3033
+
3034
+ //reset everything to hidden
3035
+ $(".texttabsHTML").find(".activetab").removeClass("activetab");
3036
+ $(".texttabs .paragraph").removeClass("active");
3037
+ $(".texttabs .paragraph").addClass("hidden");
3038
+
3039
+ //now show only activated tab
3040
+ $(this).addClass("activetab");
3041
+ $(".texttabs")
3042
+ .find(".paragraph[data-tab='" + tabid + "']")
3043
+ .addClass("active")
3044
+ .removeClass("hidden");
3045
+ });
3046
+ }
3047
+ });
3048
+ })(jQuery);
3049
+ /**
3050
+ * @file
3051
+ * JavaScript behaviors for 'tagfilter' module.
3052
+ *
3053
+ */
3054
+
3055
+ (function ($, Drupal) {
3056
+ var tagfiltersinitialized;
3057
+
3058
+ Drupal.behaviors.tagfilters = {
3059
+ attach: function () {
3060
+ tagfiltersinit();
3061
+ },
3062
+ };
3063
+
3064
+ function tagfiltersinit() {
3065
+ if (!tagfiltersinitialized) {
3066
+ tagfiltersinitialized = true;
3067
+
3068
+ if ($(".tagged").length && !$(".badtagfilter").length) {
3069
+ var activeTags = [];
3070
+
3071
+ if (".atagfilter".length) {
3072
+ $(".atagfilter").click(function () {
3073
+ if (!$(this).hasClass("zero")) {
3074
+ var tagid = $(this).data("tagid");
3075
+ var sid = $(this).data("sid");
3076
+ var childtagids = "";
3077
+ var childtagids = $(this).data("childtagids");
3078
+ processmyTags(tagid, childtagids, sid);
3079
+ $(this).toggleClass("active");
3080
+ countmyTags(sid);
3081
+ }
3082
+ });
3083
+ }
3084
+
3085
+ if (".tagreset".length) {
3086
+ $(".tagreset").click(function () {
3087
+ if (history.pushState) {
3088
+ history.pushState(null, null, "#");
3089
+ } else {
3090
+ location.hash = "#";
3091
+ }
3092
+ location.reload();
3093
+ });
3094
+ }
3095
+
3096
+ $(document).ready(function () {
3097
+ visibletags = [];
3098
+ if (
3099
+ ".paragraph--type--cluster-of-figures .tagged, .paragraph--type--table .tagged, .paragraph--type--filtertags .tagged"
3100
+ .length
3101
+ ) {
3102
+ $(
3103
+ ".paragraph--type--cluster-of-figures, .paragraph--type--table, .paragraph--type--filtertags"
3104
+ ).each(function (i, obj) {
3105
+ if ($(this).find(".tagged").length) {
3106
+ $(this).find(".dspager").removeClass("hidden");
3107
+ initialcount = $(".tagged").length + $(".untagged").length;
3108
+ $(".dspagertotal").text(initialcount);
3109
+ $(".dspagercount").text(initialcount);
3110
+ sid = parseInt($(this).attr("id").match(/\d+/)[0]);
3111
+ countmyTags(sid);
3112
+ $(".zero").hide();
3113
+
3114
+ $(".atagfilter").each(function () {
3115
+ if (typeof visibletags == "undefined") {
3116
+ visibletags = [];
3117
+ }
3118
+ if (typeof visibletags[$(this).data("sid")] == "undefined") {
3119
+ visibletags[$(this).data("sid")] = [];
3120
+ }
3121
+ visibletags[$(this).data("sid")][$(this).data("tagid")] = $(
3122
+ this
3123
+ )
3124
+ .find(".name")
3125
+ .text();
3126
+ return visibletags;
3127
+ });
3128
+ var hash = window.location.hash;
3129
+ if (hash.length != 0) {
3130
+ var trimmedhash = decodeURIComponent(hash.substring(1));
3131
+ hashArr = trimmedhash.split("&");
3132
+ $.each(hashArr, function (key, value) {
3133
+ hashtagstagid = visibletags[sid].indexOf(value);
3134
+ hashtagschildtagids = "";
3135
+ // hashtagschildtagids = $(hashtags).data('childtagids');
3136
+ processmyTags(hashtagstagid, hashtagschildtagids, sid);
3137
+ $(
3138
+ ".paragraph--type--cluster-of-figures, .paragraph--type--table, .paragraph--type--filtertags"
3139
+ )
3140
+ .find("[data-tagid='" + hashtagstagid + "']")
3141
+ .toggleClass("active");
3142
+ });
3143
+ }
3144
+ // countmyTags(sid);
3145
+
3146
+ //hide empty branches
3147
+ $(".branch")
3148
+ .not(".atagfilter")
3149
+ .each(function () {
3150
+ branchlength = $(this)
3151
+ .find(".atagfilter")
3152
+ .not(".zero").length;
3153
+ if (branchlength === 0) {
3154
+ $(this).hide();
3155
+ }
3156
+ });
3157
+ }
3158
+ });
3159
+ }
3160
+ });
3161
+ }
3162
+ }
3163
+ }
3164
+
3165
+ function processmyTags(tagid, childtagids, sid) {
3166
+ // window.location.hash="";
3167
+ if (typeof activeTags == "undefined") {
3168
+ activeTags = [];
3169
+ }
3170
+ if (typeof activeTags[sid] == "undefined") {
3171
+ activeTags[sid] = [];
3172
+ }
3173
+
3174
+ $("#paragraph" + sid + " .tagged").addClass("hidden");
3175
+ $("#paragraph" + sid + " .untagged").addClass("hidden");
3176
+
3177
+ if (activeTags[sid].indexOf(tagid) > -1) {
3178
+ activeTags[sid] = jQuery.grep(activeTags[sid], function (value) {
3179
+ return value != tagid;
3180
+ });
3181
+ if (typeof childtagids != "undefined" && childtagids.length != 0) {
3182
+ childtagidsArr = childtagids.toString().split(",", 2);
3183
+ $.each(childtagidsArr, function (childtagkey, childtagvalue) {
3184
+ $(
3185
+ "#paragraph" + sid + " a[data-tagid='" + childtagvalue + "']"
3186
+ ).removeClass("active");
3187
+ activeTags[sid] = jQuery.grep(activeTags[sid], function (value) {
3188
+ return value != childtagvalue;
3189
+ });
3190
+ });
3191
+ }
3192
+ } else {
3193
+ activeTags[sid].push(tagid);
3194
+ }
3195
+ if (activeTags[sid].length === 0) {
3196
+ $("#paragraph" + sid + " .tagged").removeClass("hidden");
3197
+ $("#paragraph" + sid + " .untagged").removeClass("hidden");
3198
+ removeHash();
3199
+ } else {
3200
+ showTags = ".tagid-" + activeTags[sid].join(".tagid-");
3201
+ $(showTags).removeClass("hidden");
3202
+ activeTagsTitles = [];
3203
+ activeTagsTitles[sid] = [];
3204
+ $.each(activeTags[sid], function (key, value) {
3205
+ activeTagsTitles[sid].push(visibletags[sid][value]);
3206
+ });
3207
+
3208
+ if (activeTagsTitles[sid].length != 0) {
3209
+ // window.location.hash = "#"+activeTagsTitles[sid].join("&");
3210
+ if (history.pushState) {
3211
+ history.pushState(null, null, "#" + activeTagsTitles[sid].join("&"));
3212
+ } else {
3213
+ location.hash = "#" + activeTagsTitles[sid].join("&");
3214
+ }
3215
+ }
3216
+ }
3217
+
3218
+ NrActiveItems =
3219
+ $("#paragraph" + sid + " .tagged").not(".hidden").length +
3220
+ $("#paragraph" + sid + " .untagged").not(".hidden").length;
3221
+ $("#paragraph" + sid + " .dspagercount").text(NrActiveItems);
3222
+ }
3223
+
3224
+ function arraySearch(arr, val) {
3225
+ for (var i = 0; i < arr.length; i++) if (arr[i] === val) return i;
3226
+ return false;
3227
+ }
3228
+
3229
+ function countmyTags(sid) {
3230
+ inactivefilters = $("#paragraph" + sid + " .atagfilter");
3231
+ $.each(inactivefilters, function (inactfkey, inactfvalue) {
3232
+ inactftagid = $(this).data("tagid");
3233
+ inactfcnt = $("#paragraph" + sid + " .tagid-" + inactftagid).not(
3234
+ ".hidden"
3235
+ ).length;
3236
+ $(this).find(".cnt").text(inactfcnt).show();
3237
+ if (inactfcnt < 1) {
3238
+ $(this).addClass("zero");
3239
+ } else {
3240
+ $(this).removeClass("zero");
3241
+ }
3242
+ });
3243
+ }
3244
+ function removeHash() {
3245
+ history.pushState(
3246
+ "",
3247
+ document.title,
3248
+ window.location.pathname + window.location.search
3249
+ );
3250
+ }
3251
+ })(jQuery, Drupal, drupalSettings);
3252
+ (function ($) {
3253
+ $(document).ready(function () {
3254
+ if ($(".translation-entity-all-languages").length) {
3255
+ $(".translation-entity-all-languages").each(function () {
3256
+ $(this).closest(".form-item").addClass("all-languages");
3257
+ });
3258
+ }
3259
+ });
3260
+ })(jQuery);
3261
+ (function ($) {
3262
+ $(document).ready(function () {
3263
+ multilingualHelp();
3264
+
3265
+ if ($("#webform-ui-element-form").length) {
3266
+ delhref = $("#edit-delete").attr("href");
3267
+ stringlength = delhref.length;
3268
+ gdpr_processed_text = "/gdpr_processed_text/delete";
3269
+ gdpr_processed_text_length = gdpr_processed_text.length;
3270
+ gdpr_toestemming_consent = "/gdpr_toestemming_consent/delete";
3271
+ gdpr_toestemming_consent_length = gdpr_toestemming_consent.length;
3272
+
3273
+ if (
3274
+ delhref.substr(
3275
+ stringlength - gdpr_processed_text_length,
3276
+ gdpr_processed_text_length
3277
+ ) == gdpr_processed_text ||
3278
+ delhref.substr(
3279
+ stringlength - gdpr_toestemming_consent_length,
3280
+ gdpr_toestemming_consent_length
3281
+ ) == gdpr_toestemming_consent
3282
+ ) {
3283
+ $("#edit-delete").remove();
3284
+ }
3285
+ }
3286
+
3287
+ if ($("#webform-edit-form").length) {
3288
+ $(
3289
+ 'ul[data-drupal-selector="edit-webform-ui-elements-gdpr-toestemming-consent-operations"]'
3290
+ )
3291
+ .find(".delete")
3292
+ .remove();
3293
+ $(
3294
+ 'ul[data-drupal-selector="edit-webform-ui-elements-gdpr-processed-text-operations"]'
3295
+ )
3296
+ .find(".delete")
3297
+ .remove();
3298
+ $(".webform-ui-element-container").find(".delete").remove();
3299
+ }
3300
+ });
3301
+
3302
+ $(document).ajaxStop(function () {
3303
+ multilingualHelp();
3304
+ });
3305
+ })(jQuery);
3306
+
3307
+ function multilingualHelp() {
3308
+ (function ($) {
3309
+ if ($(".webform-add-form").length && !$("#addformlanguages").length) {
3310
+ activeLanguage = $("body").attr("data-current-language");
3311
+ baseurl = $("body").attr("data-baseurl");
3312
+ availableLanguages = $("body")
3313
+ .attr("data-available-languages")
3314
+ .split(" ");
3315
+ if (availableLanguages.length > 0) {
3316
+ $(".webform-add-form").prepend(
3317
+ '<div class="info"><h3>You are about to create a new webform with language <span style="text-transform:uppercase">' +
3318
+ activeLanguage +
3319
+ '</span></h3><p>If you entended to create one in one of the following languages please click the prefered language</p><ul id="addformlanguages"></ul></div>'
3320
+ );
3321
+ $(availableLanguages).each(function (i, lang) {
3322
+ $("#addformlanguages").append(
3323
+ '<li><a href="' +
3324
+ baseurl +
3325
+ "/" +
3326
+ lang +
3327
+ '/admin/structure/webform/add"><span style="text-transform:uppercase">' +
3328
+ lang +
3329
+ "</span></a></li>"
3330
+ );
3331
+ });
3332
+ }
3333
+ }
3334
+ })(jQuery);
3335
+ }
3336
+ (function ($) {
3337
+ $(document).ready(function () {
3338
+ $("img").on("error", function () {
3339
+ if ($(".role-authenticated").length > 0) {
3340
+ $(this).attr("badsrc", $(this).attr("src"));
3341
+ $(this).unbind("error").attr("src", "/inc/images/missing_image.png");
3342
+ } else {
3343
+ $(this).hide();
3344
+ }
3345
+ });
3346
+ });
3347
+ })(jQuery);
3348
+ (function ($) {
3349
+ $(document).ready(function () {
3350
+ if ($('input[name="mollie_payment_total"]').length > 0) {
3351
+ $("form").on("change", function () {
3352
+ total = 0;
3353
+ $('input[id^="edit-mollie-"]').each(function (index) {
3354
+ if ($(this).is(":checked")) {
3355
+ total = total + parseInt($(this).val());
3356
+ }
3357
+ });
3358
+ $('input[name="mollie_payment_total"]').val(total);
3359
+ });
3360
+ }
3361
+ });
3362
+ })(jQuery);
3363
+ (function ($, Drupal, drupalSettings) {
3364
+ /**
3365
+ * @namespace
3366
+ */
3367
+ var initialized;
3368
+
3369
+ Drupal.behaviors.vlizshare42AccessData = {
3370
+ attach: function () {
3371
+ init();
3372
+ },
3373
+ };
3374
+
3375
+ function init() {
3376
+ if (!initialized) {
3377
+ initialized = true;
3378
+
3379
+ /* share42.com | 05.05.2014 | (c) Dimox */
3380
+ window.onload = function () {
3381
+ var e = document.getElementsByTagName("div");
3382
+
3383
+ for (var k = 0; k < e.length; k++) {
3384
+ if (
3385
+ typeof e[k].className == "string" &&
3386
+ e[k].className.indexOf("share42init") != -1
3387
+ ) {
3388
+ if (e[k].getAttribute("data-url") != -1)
3389
+ var u = e[k].getAttribute("data-url");
3390
+ if (e[k].getAttribute("data-title") != -1)
3391
+ var t = e[k].getAttribute("data-title");
3392
+ if (e[k].getAttribute("data-image") != -1)
3393
+ var i = e[k].getAttribute("data-image");
3394
+ if (e[k].getAttribute("data-description") != -1)
3395
+ var d = e[k].getAttribute("data-description");
3396
+ if (e[k].getAttribute("data-path") != -1)
3397
+ var f = e[k].getAttribute("data-path");
3398
+ if (e[k].getAttribute("data-icons-file") != -1)
3399
+ var fn = e[k].getAttribute("data-icons-file");
3400
+
3401
+ //pieterm 20141003 added data-services attribute
3402
+
3403
+ if (e[k].getAttribute("data-services") != null) {
3404
+ ds = e[k].getAttribute("data-services").split("|");
3405
+ } else ds = ["lnkd", "fb", "twi", "mailto", "print"];
3406
+
3407
+ if (!f) {
3408
+ function path(name) {
3409
+ var sc = document.getElementsByTagName("script"),
3410
+ sr = new RegExp("^(.*/|)(" + name + ")([#?]|$)");
3411
+ for (var p = 0, scL = sc.length; p < scL; p++) {
3412
+ var m = String(sc[p].src).match(sr);
3413
+ if (m) {
3414
+ if (m[1].match(/^((https?|file)\:\/{2,}|\w:[\/\\])/))
3415
+ return m[1];
3416
+ if (m[1].indexOf("/") == 0) return m[1];
3417
+ b = document.getElementsByTagName("base");
3418
+ if (b[0] && b[0].href) return b[0].href + m[1];
3419
+ else
3420
+ return (
3421
+ document.location.pathname.match(/(.*[\/\\])/)[0] + m[1]
3422
+ );
3423
+ }
3424
+ }
3425
+ return null;
3426
+ }
3427
+ f = path("share42.js");
3428
+ }
3429
+ if (!u) u = location.href;
3430
+ if (!t) t = document.title;
3431
+ if (!fn) fn = "icons.png";
3432
+
3433
+ function desc() {
3434
+ var meta = document.getElementsByTagName("meta");
3435
+ for (var m = 0; m < meta.length; m++) {
3436
+ if (meta[m].name.toLowerCase() == "description") {
3437
+ return meta[m].content;
3438
+ }
3439
+ }
3440
+ return "";
3441
+ }
3442
+ if (!d) d = desc();
3443
+ u = encodeURIComponent(u);
3444
+ t = encodeURIComponent(t);
3445
+ t = t.replace(/\'/g, "%27");
3446
+ i = encodeURIComponent(i);
3447
+ d = encodeURIComponent(d);
3448
+ d = d.replace(/\'/g, "%27");
3449
+ var fbQuery = "u=" + u;
3450
+ if (i != "null" && i != "")
3451
+ fbQuery =
3452
+ "s=100&p[url]=" +
3453
+ u +
3454
+ "&p[title]=" +
3455
+ t +
3456
+ "&p[summary]=" +
3457
+ d +
3458
+ "&p[images][0]=" +
3459
+ i;
3460
+
3461
+ //pieterm 20141003 added data-services attribute
3462
+
3463
+ var s = new Array();
3464
+ s["lnkd"] =
3465
+ '"#" data-count="lnkd" onclick="window.open(\'http://www.linkedin.com/shareArticle?mini=true&url=' +
3466
+ u +
3467
+ "&title=" +
3468
+ t +
3469
+ "', '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=600, height=400, toolbar=0, status=0');return false\" title=\"Share on Linkedin\"";
3470
+ s["fb"] =
3471
+ '"#" data-count="fb" onclick="window.open(\'http://www.facebook.com/sharer.php?m2w&' +
3472
+ fbQuery +
3473
+ "', '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');return false\" title=\"Share on Facebook\"";
3474
+ s["gplus"] =
3475
+ '"#" data-count="gplus" onclick="window.open(\'https://plus.google.com/share?url=' +
3476
+ u +
3477
+ "', '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');return false\" title=\"Share on Google+\"";
3478
+ s["twi"] =
3479
+ '"#" data-count="twi" onclick="window.open(\'https://twitter.com/intent/tweet?text=' +
3480
+ t +
3481
+ "&url=" +
3482
+ u +
3483
+ "', '_blank', 'scrollbars=0, resizable=1, menubar=0, left=100, top=100, width=550, height=440, toolbar=0, status=0');return false\" title=\"Share on Twitter\"";
3484
+ s["fav"] =
3485
+ '"#" onclick="return fav(this);" title="Save to Browser Favorites"';
3486
+ s["mailto"] =
3487
+ '"mailto:?subject=' +
3488
+ t +
3489
+ "&body=" +
3490
+ u +
3491
+ '" title="Email this to a friend"';
3492
+ s["print"] = '"#" onclick="print();return false" title="Print"';
3493
+
3494
+ var j = new Array();
3495
+ j["lnkd"] = 0;
3496
+ j["fb"] = 1;
3497
+ j["gplus"] = 2;
3498
+ j["twi"] = 3;
3499
+ j["fav"] = 4;
3500
+ j["mailto"] = 5;
3501
+ j["print"] = 6;
3502
+
3503
+ var l = "";
3504
+
3505
+ function ShowResults(element, index, array) {
3506
+ l +=
3507
+ '<a rel="nofollow" class="bglazyload ' +
3508
+ element +
3509
+ '" style="display:inline-block;vertical-align:bottom;width:16px;height:16px;margin:0 6px 6px 0;padding:0;outline:none;background:url(' +
3510
+ f +
3511
+ fn +
3512
+ ") -" +
3513
+ 16 * j[element] +
3514
+ 'px 0 no-repeat" href=' +
3515
+ s[element] +
3516
+ ' target="_blank"></a>';
3517
+ }
3518
+
3519
+ ds.forEach(ShowResults);
3520
+
3521
+ //end of changes pieterm
3522
+
3523
+ e[k].innerHTML = '<span id="share42">' + l + "</span>";
3524
+ }
3525
+ }
3526
+ };
3527
+ }
3528
+ }
3529
+ })(jQuery, Drupal, drupalSettings);
3530
+ function fav(a) {
3531
+ var title = document.title;
3532
+ var url = document.location;
3533
+ try {
3534
+ window.external.AddFavorite(url, title);
3535
+ } catch (e) {
3536
+ try {
3537
+ window.sidebar.addPanel(title, url, "");
3538
+ } catch (e) {
3539
+ if (typeof opera == "object" || window.sidebar) {
3540
+ a.rel = "sidebar";
3541
+ a.title = title;
3542
+ a.url = url;
3543
+ a.href = url;
3544
+ return true;
3545
+ } else {
3546
+ alert("Press Ctrl-D to add the page to browser favorites");
3547
+ }
3548
+ }
3549
+ }
3550
+ return false;
3551
+ }
3552
+ /**
3553
+ * @file
3554
+ * External links js file.
3555
+ */
3556
+
3557
+ (function ($, Drupal, drupalSettings) {
3558
+ "use strict";
3559
+
3560
+ Drupal.extlink = Drupal.extlink || {};
3561
+
3562
+ Drupal.extlink.attach = function (context, drupalSettings) {
3563
+ if (
3564
+ typeof drupalSettings.data === "undefined" ||
3565
+ !drupalSettings.data.hasOwnProperty("extlink")
3566
+ ) {
3567
+ return;
3568
+ }
3569
+
3570
+ // Define the jQuery method (either 'append' or 'prepend') of placing the
3571
+ // icon, defaults to 'append'.
3572
+ var extIconPlacement = "append";
3573
+ if (
3574
+ drupalSettings.data.extlink.extIconPlacement &&
3575
+ drupalSettings.data.extlink.extIconPlacement != "0"
3576
+ ) {
3577
+ extIconPlacement = drupalSettings.data.extlink.extIconPlacement;
3578
+ }
3579
+
3580
+ // Strip the host name down, removing ports, subdomains, or www.
3581
+ var pattern =
3582
+ /^(([^\/:]+?\.)*)([^\.:]{1,})((\.[a-z0-9]{1,253})*)(:[0-9]{1,5})?$/;
3583
+ var host = window.location.host.replace(pattern, "$2$3$6");
3584
+ var subdomain = window.location.host.replace(host, "");
3585
+
3586
+ // Determine what subdomains are considered internal.
3587
+ var subdomains;
3588
+ if (drupalSettings.data.extlink.extSubdomains) {
3589
+ subdomains = "([^/]*\\.)?";
3590
+ } else if (subdomain === "www." || subdomain === "") {
3591
+ subdomains = "(www\\.)?";
3592
+ } else {
3593
+ subdomains = subdomain.replace(".", "\\.");
3594
+ }
3595
+
3596
+ // Whitelisted domains.
3597
+ var whitelistedDomains = false;
3598
+ if (drupalSettings.data.extlink.whitelistedDomains) {
3599
+ whitelistedDomains = [];
3600
+ for (
3601
+ var i = 0;
3602
+ i < drupalSettings.data.extlink.whitelistedDomains.length;
3603
+ i++
3604
+ ) {
3605
+ whitelistedDomains.push(
3606
+ new RegExp(
3607
+ "^https?:\\/\\/" +
3608
+ drupalSettings.data.extlink.whitelistedDomains[i].replace(
3609
+ /(\r\n|\n|\r)/gm,
3610
+ ""
3611
+ ) +
3612
+ ".*$",
3613
+ "i"
3614
+ )
3615
+ );
3616
+ }
3617
+ }
3618
+
3619
+ // Build regular expressions that define an internal link.
3620
+ var internal_link = new RegExp(
3621
+ "^https?://([^@]*@)?" + subdomains + host,
3622
+ "i"
3623
+ );
3624
+
3625
+ // Extra internal link matching.
3626
+ var extInclude = false;
3627
+ if (drupalSettings.data.extlink.extInclude) {
3628
+ extInclude = new RegExp(
3629
+ drupalSettings.data.extlink.extInclude.replace(/\\/, "\\"),
3630
+ "i"
3631
+ );
3632
+ }
3633
+
3634
+ // Extra external link matching.
3635
+ var extExclude = false;
3636
+ if (drupalSettings.data.extlink.extExclude) {
3637
+ extExclude = new RegExp(
3638
+ drupalSettings.data.extlink.extExclude.replace(/\\/, "\\"),
3639
+ "i"
3640
+ );
3641
+ }
3642
+
3643
+ // Extra external link CSS selector exclusion.
3644
+ var extCssExclude = false;
3645
+ if (drupalSettings.data.extlink.extCssExclude) {
3646
+ extCssExclude = drupalSettings.data.extlink.extCssExclude;
3647
+ }
3648
+
3649
+ // Extra external link CSS selector explicit.
3650
+ var extCssExplicit = false;
3651
+ if (drupalSettings.data.extlink.extCssExplicit) {
3652
+ extCssExplicit = drupalSettings.data.extlink.extCssExplicit;
3653
+ }
3654
+
3655
+ // Find all links which are NOT internal and begin with http as opposed
3656
+ // to ftp://, javascript:, etc. other kinds of links.
3657
+ // When operating on the 'this' variable, the host has been appended to
3658
+ // all links by the browser, even local ones.
3659
+ // In jQuery 1.1 and higher, we'd use a filter method here, but it is not
3660
+ // available in jQuery 1.0 (Drupal 5 default).
3661
+ var external_links = [];
3662
+ var mailto_links = [];
3663
+ $("a:not([data-extlink]), area:not([data-extlink])", context).each(
3664
+ function (el) {
3665
+ try {
3666
+ var url = "";
3667
+ if (typeof this.href == "string") {
3668
+ url = this.href.toLowerCase();
3669
+ }
3670
+ // Handle SVG links (xlink:href).
3671
+ else if (typeof this.href == "object") {
3672
+ url = this.href.baseVal;
3673
+ }
3674
+ if (
3675
+ url.indexOf("http") === 0 &&
3676
+ ((!internal_link.test(url) &&
3677
+ !(extExclude && extExclude.test(url))) ||
3678
+ (extInclude && extInclude.test(url))) &&
3679
+ !(extCssExclude && $(this).is(extCssExclude)) &&
3680
+ !(extCssExclude && $(this).parents(extCssExclude).length > 0) &&
3681
+ !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)
3682
+ ) {
3683
+ var match = false;
3684
+ if (whitelistedDomains) {
3685
+ for (var i = 0; i < whitelistedDomains.length; i++) {
3686
+ if (whitelistedDomains[i].test(url)) {
3687
+ match = true;
3688
+ break;
3689
+ }
3690
+ }
3691
+ }
3692
+ if (!match) {
3693
+ external_links.push(this);
3694
+ }
3695
+ }
3696
+ // Do not include area tags with begin with mailto: (this prohibits
3697
+ // icons from being added to image-maps).
3698
+ else if (
3699
+ this.tagName !== "AREA" &&
3700
+ url.indexOf("mailto:") === 0 &&
3701
+ !(extCssExclude && $(this).parents(extCssExclude).length > 0) &&
3702
+ !(extCssExplicit && $(this).parents(extCssExplicit).length < 1)
3703
+ ) {
3704
+ mailto_links.push(this);
3705
+ }
3706
+ } catch (error) {
3707
+ // IE7 throws errors often when dealing with irregular links, such as:
3708
+ // <a href="node/10"></a> Empty tags.
3709
+ // <a href="http://user:pass@example.com">example</a> User:pass syntax.
3710
+ return false;
3711
+ }
3712
+ }
3713
+ );
3714
+
3715
+ if (
3716
+ drupalSettings.data.extlink.extClass !== "0" &&
3717
+ drupalSettings.data.extlink.extClass !== ""
3718
+ ) {
3719
+ Drupal.extlink.applyClassAndSpan(
3720
+ external_links,
3721
+ drupalSettings.data.extlink.extClass,
3722
+ extIconPlacement
3723
+ );
3724
+ }
3725
+
3726
+ if (
3727
+ drupalSettings.data.extlink.mailtoClass !== "0" &&
3728
+ drupalSettings.data.extlink.mailtoClass !== ""
3729
+ ) {
3730
+ Drupal.extlink.applyClassAndSpan(
3731
+ mailto_links,
3732
+ drupalSettings.data.extlink.mailtoClass,
3733
+ extIconPlacement
3734
+ );
3735
+ }
3736
+
3737
+ if (drupalSettings.data.extlink.extTarget) {
3738
+ // Apply the target attribute to all links.
3739
+ $(external_links)
3740
+ .filter(function () {
3741
+ // Filter out links with target set if option specified.
3742
+ return !(
3743
+ drupalSettings.data.extlink.extTargetNoOverride &&
3744
+ $(this).is("a[target]")
3745
+ );
3746
+ })
3747
+ .attr({ target: "_blank" });
3748
+
3749
+ // Add noopener rel attribute to combat phishing.
3750
+ $(external_links).attr("rel", function (i, val) {
3751
+ // If no rel attribute is present, create one with the value noopener.
3752
+ if (val === null || typeof val === "undefined") {
3753
+ return "noopener";
3754
+ }
3755
+ // Check to see if rel contains noopener. Add what doesn't exist.
3756
+ if (val.indexOf("noopener") > -1) {
3757
+ if (val.indexOf("noopener") === -1) {
3758
+ return val + " noopener";
3759
+ }
3760
+ // Noopener exists. Nothing needs to be added.
3761
+ else {
3762
+ return val;
3763
+ }
3764
+ }
3765
+ // Else, append noopener to val.
3766
+ else {
3767
+ return val + " noopener";
3768
+ }
3769
+ });
3770
+ }
3771
+
3772
+ if (drupalSettings.data.extlink.extNofollow) {
3773
+ $(external_links).attr("rel", function (i, val) {
3774
+ // When the link does not have a rel attribute set it to 'nofollow'.
3775
+ if (val === null || typeof val === "undefined") {
3776
+ return "nofollow";
3777
+ }
3778
+ var target = "nofollow";
3779
+ // Change the target, if not overriding follow.
3780
+ if (drupalSettings.data.extlink.extFollowNoOverride) {
3781
+ target = "follow";
3782
+ }
3783
+ if (val.indexOf(target) === -1) {
3784
+ return val + " nofollow";
3785
+ }
3786
+ return val;
3787
+ });
3788
+ }
3789
+
3790
+ if (drupalSettings.data.extlink.extNoreferrer) {
3791
+ $(external_links).attr("rel", function (i, val) {
3792
+ // When the link does not have a rel attribute set it to 'noreferrer'.
3793
+ if (val === null || typeof val === "undefined") {
3794
+ return "noreferrer";
3795
+ }
3796
+ if (val.indexOf("noreferrer") === -1) {
3797
+ return val + " noreferrer";
3798
+ }
3799
+ return val;
3800
+ });
3801
+ }
3802
+
3803
+ Drupal.extlink = Drupal.extlink || {};
3804
+
3805
+ // Set up default click function for the external links popup. This should be
3806
+ // overridden by modules wanting to alter the popup.
3807
+ Drupal.extlink.popupClickHandler =
3808
+ Drupal.extlink.popupClickHandler ||
3809
+ function () {
3810
+ if (drupalSettings.data.extlink.extAlert) {
3811
+ return confirm(drupalSettings.data.extlink.extAlertText);
3812
+ }
3813
+ };
3814
+
3815
+ $(external_links).off("click.extlink");
3816
+ $(external_links).on("click.extlink", function (e) {
3817
+ return Drupal.extlink.popupClickHandler(e, this);
3818
+ });
3819
+ };
3820
+
3821
+ /**
3822
+ * Apply a class and a trailing <span> to all links not containing images.
3823
+ *
3824
+ * @param {object[]} links
3825
+ * An array of DOM elements representing the links.
3826
+ * @param {string} class_name
3827
+ * The class to apply to the links.
3828
+ * @param {string} icon_placement
3829
+ * 'append' or 'prepend' the icon to the link.
3830
+ */
3831
+ Drupal.extlink.applyClassAndSpan = function (
3832
+ links,
3833
+ class_name,
3834
+ icon_placement
3835
+ ) {
3836
+ var $links_to_process;
3837
+ if (drupalSettings.data.extlink.extImgClass) {
3838
+ $links_to_process = $(links);
3839
+ } else {
3840
+ var links_with_images = $(links).find("img, svg").parents("a");
3841
+ $links_to_process = $(links).not(links_with_images);
3842
+ }
3843
+
3844
+ if (class_name !== "0") {
3845
+ $links_to_process.addClass(class_name);
3846
+ }
3847
+
3848
+ // Add data-extlink attribute.
3849
+ $links_to_process.attr("data-extlink", "");
3850
+
3851
+ var i;
3852
+ var length = $links_to_process.length;
3853
+ for (i = 0; i < length; i++) {
3854
+ var $link = $($links_to_process[i]);
3855
+ if (drupalSettings.data.extlink.extUseFontAwesome) {
3856
+ if (class_name === drupalSettings.data.extlink.mailtoClass) {
3857
+ $link[icon_placement](
3858
+ '<span class="fa-' +
3859
+ class_name +
3860
+ ' extlink"><span class="' +
3861
+ drupalSettings.data.extlink.extFaMailtoClasses +
3862
+ '" aria-label="' +
3863
+ drupalSettings.data.extlink.mailtoLabel +
3864
+ '"></span></span>'
3865
+ );
3866
+ } else {
3867
+ $link[icon_placement](
3868
+ '<span class="fa-' +
3869
+ class_name +
3870
+ ' extlink"><span class="' +
3871
+ drupalSettings.data.extlink.extFaLinkClasses +
3872
+ '" aria-label="' +
3873
+ drupalSettings.data.extlink.extLabel +
3874
+ '"></span></span>'
3875
+ );
3876
+ }
3877
+ } else {
3878
+ if (class_name === drupalSettings.data.extlink.mailtoClass) {
3879
+ $link[icon_placement](
3880
+ '<svg focusable="false" class="' +
3881
+ class_name +
3882
+ '" role="img" aria-label="' +
3883
+ drupalSettings.data.extlink.mailtoLabel +
3884
+ '" xmlns="http://www.w3.org/2000/svg" viewBox="0 10 70 20"><metadata><sfw xmlns="http://ns.adobe.com/SaveForWeb/1.0/"><sliceSourceBounds y="-8160" x="-8165" width="16389" height="16384" bottomLeftOrigin="true"/><optimizationSettings><targetSettings targetSettingsID="0" fileFormat="PNG24Format"><PNG24Format transparency="true" filtered="false" interlaced="false" noMatteColor="false" matteColor="#FFFFFF"/></targetSettings></optimizationSettings></sfw></metadata><title>' +
3885
+ drupalSettings.data.extlink.mailtoLabel +
3886
+ '</title><path d="M56 14H8c-1.1 0-2 0.9-2 2v32c0 1.1 0.9 2 2 2h48c1.1 0 2-0.9 2-2V16C58 14.9 57.1 14 56 14zM50.5 18L32 33.4 13.5 18H50.5zM10 46V20.3l20.7 17.3C31.1 37.8 31.5 38 32 38s0.9-0.2 1.3-0.5L54 20.3V46H10z"/></svg>'
3887
+ );
3888
+ } else {
3889
+ $link[icon_placement](
3890
+ '<svg focusable="false" class="' +
3891
+ class_name +
3892
+ '" role="img" aria-label="' +
3893
+ drupalSettings.data.extlink.extLabel +
3894
+ '" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 40"><metadata><sfw xmlns="http://ns.adobe.com/SaveForWeb/1.0/"><sliceSourceBounds y="-8160" x="-8165" width="16389" height="16384" bottomLeftOrigin="true"/><optimizationSettings><targetSettings targetSettingsID="0" fileFormat="PNG24Format"><PNG24Format transparency="true" filtered="false" interlaced="false" noMatteColor="false" matteColor="#FFFFFF"/></targetSettings></optimizationSettings></sfw></metadata><title>' +
3895
+ drupalSettings.data.extlink.extLabel +
3896
+ '</title><path d="M48 26c-1.1 0-2 0.9-2 2v26H10V18h26c1.1 0 2-0.9 2-2s-0.9-2-2-2H8c-1.1 0-2 0.9-2 2v40c0 1.1 0.9 2 2 2h40c1.1 0 2-0.9 2-2V28C50 26.9 49.1 26 48 26z"/><path d="M56 6H44c-1.1 0-2 0.9-2 2s0.9 2 2 2h7.2L30.6 30.6c-0.8 0.8-0.8 2 0 2.8C31 33.8 31.5 34 32 34s1-0.2 1.4-0.6L54 12.8V20c0 1.1 0.9 2 2 2s2-0.9 2-2V8C58 6.9 57.1 6 56 6z"/></svg>'
3897
+ );
3898
+ }
3899
+ }
3900
+ }
3901
+ };
3902
+
3903
+ Drupal.behaviors.extlink = Drupal.behaviors.extlink || {};
3904
+ Drupal.behaviors.extlink.attach = function (context, drupalSettings) {
3905
+ // Backwards compatibility, for the benefit of modules overriding extlink
3906
+ // functionality by defining an "extlinkAttach" global function.
3907
+ if (typeof extlinkAttach === "function") {
3908
+ extlinkAttach(context);
3909
+ } else {
3910
+ Drupal.extlink.attach(context, drupalSettings);
3911
+ }
3912
+ };
3913
+ })(jQuery, Drupal, drupalSettings);