Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! function(e) {
- if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
- else if ("function" == typeof define && define.amd) define([], e);
- else {
- var n;
- n = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this, n.qwest = e()
- }
- }(function() {
- var e;
- return function n(e, t, a) {
- function o(i, u) {
- if (!t[i]) {
- if (!e[i]) {
- var s = "function" == typeof require && require;
- if (!u && s) return s(i, !0);
- if (r) return r(i, !0);
- var c = new Error("Cannot find module '" + i + "'");
- throw c.code = "MODULE_NOT_FOUND", c
- }
- var d = t[i] = {
- exports: {}
- };
- e[i][0].call(d.exports, function(n) {
- var t = e[i][1][n];
- return o(t ? t : n)
- }, d, d.exports, n, e, t, a)
- }
- return t[i].exports
- }
- for (var r = "function" == typeof require && require, i = 0; i < a.length; i++) o(a[i]);
- return o
- }({
- 1: [function(n, t) {
- ! function(n) {
- "use strict";
- var a = function(e) {
- var n = function(e, n, t) {
- t = "function" == typeof t ? t() : null === t ? "" : void 0 === t ? "" : t, e[e.length] = encodeURIComponent(n) + "=" + encodeURIComponent(t)
- },
- t = function(e, a, o) {
- var r, i, u;
- if ("[object Array]" === Object.prototype.toString.call(a))
- for (r = 0, i = a.length; i > r; r++) t(e + "[" + ("object" == typeof a[r] ? r : "") + "]", a[r], o);
- else if (a && "[object Object]" === a.toString())
- for (u in a) a.hasOwnProperty(u) && (e ? t(e + "[" + u + "]", a[u], o, n) : t(u, a[u], o, n));
- else if (e) n(o, e, a);
- else
- for (u in a) n(o, u, a[u]);
- return o
- };
- return t("", e, []).join("&").replace(/%20/g, "+")
- };
- "object" == typeof t && "object" == typeof t.exports ? t.exports = a : "function" == typeof e && e.amd ? e([], function() {
- return a
- }) : n.param = a
- }(this)
- }, {}],
- 2: [function(e, n) {
- ! function(e) {
- function n(e) {
- return "function" == typeof e
- }
- function t(e) {
- return "object" == typeof e
- }
- function a(e) {
- "undefined" != typeof setImmediate ? setImmediate(e) : "undefined" != typeof process && process.nextTick ? process.nextTick(e) : setTimeout(e, 0)
- }
- var o;
- e[0][e[1]] = function r(e) {
- var i, u = [],
- s = [],
- c = function(e, n) {
- return null == i && null != e && (i = e, u = n, s.length && a(function() {
- for (var e = 0; e < s.length; e++) s[e]()
- })), i
- };
- return c.then = function(c, d) {
- var l = r(e),
- f = function() {
- function e(a) {
- var r, i = 0;
- try {
- if (a && (t(a) || n(a)) && n(r = a.then)) {
- if (a === l) throw new TypeError;
- r.call(a, function() {
- i++ || e.apply(o, arguments)
- }, function(e) {
- i++ || l(!1, [e])
- })
- } else l(!0, arguments)
- } catch (u) {
- i++ || l(!1, [u])
- }
- }
- try {
- var a = i ? c : d;
- n(a) ? e(a.apply(o, u || [])) : l(i, u)
- } catch (r) {
- l(!1, [r])
- }
- };
- return null != i ? a(f) : s.push(f), l
- }, e && (c = e(c)), c
- }
- }("undefined" == typeof n ? [window, "pinkySwear"] : [n, "exports"])
- }, {}],
- qwest: [function(e, n) {
- n.exports = function() {
- var n = "undefined" != typeof window ? window : self,
- t = e("pinkyswear"),
- a = e("jquery-param"),
- o = {},
- r = "json",
- i = "post",
- u = null,
- s = 0,
- c = [],
- d = n.XMLHttpRequest ? function() {
- return new n.XMLHttpRequest
- } : function() {
- return new ActiveXObject("Microsoft.XMLHTTP")
- },
- l = "" === d().responseType,
- f = function(e, f, p, m, g) {
- e = e.toUpperCase(), p = void 0 === p ? null : p, m = m || {};
- for (var h in o)
- if (!(h in m))
- if ("object" == typeof o[h] && "object" == typeof m[h])
- for (var y in o[h]) m[h][y] = o[h][y];
- else m[h] = o[h];
- var v, w, b, T, M, x = !1,
- k = !1,
- q = !1,
- L = 0,
- E = {},
- _ = {
- text: "*/*",
- xml: "text/xml",
- json: "application/json",
- post: "application/x-www-form-urlencoded",
- document: "text/html"
- },
- j = {
- text: "*/*",
- xml: "application/xml; q=1.0, text/xml; q=0.8, */*; q=0.1",
- json: "application/json; q=1.0, text/*; q=0.8, */*; q=0.1"
- },
- C = !1,
- D = t(function(t) {
- return t.abort = function() {
- q || (w && 4 != w.readyState && w.abort(), C && (--s, C = !1), q = !0)
- }, t.send = function() {
- if (!C) {
- if (s == u) return void c.push(t);
- if (q) return void(c.length && c.shift().send());
- if (++s, C = !0, w = d(), v && ("withCredentials" in w || !n.XDomainRequest || (w = new XDomainRequest, k = !0, "GET" != e && "POST" != e && (e = "POST"))), k ? w.open(e, f) : (w.open(e, f, m.async, m.user, m.password), l && m.async && (w.withCredentials = m.withCredentials)), !k)
- for (var a in E) E[a] && w.setRequestHeader(a, E[a]);
- if (l && "auto" != m.responseType) try {
- w.responseType = m.responseType, x = w.responseType == m.responseType
- } catch (o) {}
- l || k ? (w.onload = P, w.onerror = S, k && (w.onprogress = function() {})) : w.onreadystatechange = function() {
- 4 == w.readyState && P()
- }, m.async ? "timeout" in w ? (w.timeout = m.timeout, w.ontimeout = O) : b = setTimeout(O, m.timeout) : k && (w.ontimeout = function() {}), "auto" != m.responseType && "overrideMimeType" in w && w.overrideMimeType(_[m.responseType]), g && g(w), k ? setTimeout(function() {
- w.send("GET" != e ? p : null)
- }, 0) : w.send("GET" != e ? p : null)
- }
- }, t
- }),
- P = function() {
- var e;
- if (C = !1, clearTimeout(b), c.length && c.shift().send(), !q) {
- --s;
- try {
- if (x) {
- if ("response" in w && null === w.response) throw "The request response is empty";
- M = w.response
- } else {
- if (e = m.responseType, "auto" == e)
- if (k) e = r;
- else {
- var t = w.getResponseHeader("Content-Type") || "";
- e = t.indexOf(_.json) > -1 ? "json" : t.indexOf(_.xml) > -1 ? "xml" : "text"
- } switch (e) {
- case "json":
- if (w.responseText.length) try {
- M = "JSON" in n ? JSON.parse(w.responseText) : new Function("return (" + w.responseText + ")")()
- } catch (a) {
- throw "Error while parsing JSON body : " + a
- }
- break;
- case "xml":
- try {
- n.DOMParser ? M = (new DOMParser).parseFromString(w.responseText, "text/xml") : (M = new ActiveXObject("Microsoft.XMLDOM"), M.async = "false", M.loadXML(w.responseText))
- } catch (a) {
- M = void 0
- }
- if (!M || !M.documentElement || M.getElementsByTagName("parsererror").length) throw "Invalid XML";
- break;
- default:
- M = w.responseText
- }
- }
- if ("status" in w && !/^2|1223/.test(w.status)) throw w.status + " (" + w.statusText + ")";
- D(!0, [w, M])
- } catch (a) {
- D(!1, [a, w, M])
- }
- }
- },
- S = function(e) {
- q || (e = "string" == typeof e ? e : "Connection aborted", D.abort(), D(!1, [new Error(e), w, null]))
- },
- O = function() {
- q || (m.attempts && ++L == m.attempts ? S("Timeout (" + f + ")") : (w.abort(), C = !1, D.send()))
- };
- if (m.async = !("async" in m && !m.async), m.cache = "cache" in m && !!m.cache, m.dataType = "dataType" in m ? m.dataType.toLowerCase() : i, m.responseType = "responseType" in m ? m.responseType.toLowerCase() : "auto", m.user = m.user || "", m.password = m.password || "", m.withCredentials = !!m.withCredentials, m.timeout = "timeout" in m ? parseInt(m.timeout, 10) : 3e4, m.attempts = "attempts" in m ? parseInt(m.attempts, 10) : 1, T = f.match(/\/\/(.+?)\//), v = T && !!T[1] && T[1] != location.host, "ArrayBuffer" in n && p instanceof ArrayBuffer ? m.dataType = "arraybuffer" : "Blob" in n && p instanceof Blob ? m.dataType = "blob" : "Document" in n && p instanceof Document ? m.dataType = "document" : "FormData" in n && p instanceof FormData && (m.dataType = "formdata"), null !== p) switch (m.dataType) {
- case "json":
- p = JSON.stringify(p);
- break;
- case "post":
- p = a(p)
- }
- if (m.headers) {
- var A = function(e, n, t) {
- return n + t.toUpperCase()
- };
- for (T in m.headers) E[T.replace(/(^|-)([^-])/g, A)] = m.headers[T]
- }
- return "Content-Type" in E || "GET" == e || m.dataType in _ && _[m.dataType] && (E["Content-Type"] = _[m.dataType]), E.Accept || (E.Accept = m.responseType in j ? j[m.responseType] : "*/*"), v || "X-Requested-With" in E || (E["X-Requested-With"] = "XMLHttpRequest"), m.cache || "Cache-Control" in E || (E["Cache-Control"] = "no-cache"), "GET" == e && p && "string" == typeof p && (f += (/\?/.test(f) ? "&" : "?") + p), m.async && D.send(), D
- },
- p = function(e) {
- var n = [],
- a = 0,
- o = [];
- return t(function(t) {
- var r = -1,
- i = function(e) {
- return function(i, u, s, c) {
- var d = ++r;
- return ++a, n.push(f(e, t.base + i, u, s, c).then(function() {
- o[d] = arguments, --a || t(!0, 1 == o.length ? o[0] : [o])
- }, function() {
- t(!1, arguments)
- })), t
- }
- };
- t.get = i("GET"), t.post = i("POST"), t.put = i("PUT"), t["delete"] = i("DELETE"), t["catch"] = function(e) {
- return t.then(null, e)
- }, t.complete = function(e) {
- var n = function() {
- e()
- };
- return t.then(n, n)
- }, t.map = function(e, n, t, a, o) {
- return i(e.toUpperCase()).call(this, n, t, a, o)
- };
- for (var u in e) u in t || (t[u] = e[u]);
- return t.send = function() {
- for (var e = 0, a = n.length; a > e; ++e) n[e].send();
- return t
- }, t.abort = function() {
- for (var e = 0, a = n.length; a > e; ++e) n[e].abort();
- return t
- }, t
- })
- },
- m = {
- base: "",
- get: function() {
- return p(m).get.apply(this, arguments)
- },
- post: function() {
- return p(m).post.apply(this, arguments)
- },
- put: function() {
- return p(m).put.apply(this, arguments)
- },
- "delete": function() {
- return p(m)["delete"].apply(this, arguments)
- },
- map: function() {
- return p(m).map.apply(this, arguments)
- },
- xhr2: l,
- limit: function(e) {
- return u = e, m
- },
- setDefaultOptions: function(e) {
- return o = e, m
- },
- setDefaultXdrResponseType: function(e) {
- return r = e.toLowerCase(), m
- },
- setDefaultDataType: function(e) {
- return i = e.toLowerCase(), m
- },
- getOpenRequests: function() {
- return s
- }
- };
- return m
- }()
- }, {
- "jquery-param": 1,
- pinkyswear: 2
- }]
- }, {}, [1, 2])("qwest")
- });
- try {
- var ce = new window.CustomEvent("test");
- if (ce.preventDefault(), ce.defaultPrevented !== !0) throw new Error("Could not prevent default")
- } catch (e) {
- var CustomEvent = function(e, n) {
- var t, a;
- return n = n || {
- bubbles: !1,
- cancelable: !1,
- detail: void 0
- }, t = document.createEvent("CustomEvent"), t.initCustomEvent(e, n.bubbles, n.cancelable, n.detail), a = t.preventDefault, t.preventDefault = function() {
- a.call(this);
- try {
- Object.defineProperty(this, "defaultPrevented", {
- get: function() {
- return !0
- }
- })
- } catch (e) {
- this.defaultPrevented = !0
- }
- }, t
- };
- CustomEvent.prototype = window.Event.prototype, window.CustomEvent = CustomEvent
- }! function(e) {
- function n(e, n) {
- return e.filter(function(e) {
- return 0 === n.filter(function(n) {
- return n.id === e.id
- }).length
- })
- }
- function t(n) {
- n.forEach(function(n) {
- var t = document.querySelector('[data-announcement-item-id="' + n.id + '"]');
- e.util.fade(t, "out", 500, function() {
- t.parentNode.removeChild(t)
- })
- })
- }
- function a(n, t) {
- var a, r = document.querySelector(".announcement-content"),
- i = e.announcementManager.data;
- n.forEach(function(n, u) {
- var s = document.querySelector('[data-announcement-item-id="' + n.id + '"]');
- s ? (a = i.filter(function(e) {
- return e.id === n.id
- })[0], a.text[e.announcementManager.locale] !== n.text[t] && e.util.fade(s, "out", 500, function() {
- s.innerHTML = n.text[t], e.util.fade(s, "in", 500)
- })) : (s = o(n, t), s = 0 === u ? r.insertAdjacentHTML("afterbegin", s) : r.querySelector(".announcement-item:nth-child(" + u + ")").insertAdjacentHTML("afterend", s), s = document.querySelector('[data-announcement-item-id="' + n.id + '"]'), e.util.fade(s, "out", 500, function() {
- e.util.fade(s, "in", 500)
- }))
- })
- }
- function o(e, n) {
- return ['<div class="announcement-item" data-announcement-item-id="', e.id, '">', e.text[n], "</div>"].join("")
- }
- function r() {
- var o = e.queueData.content.announcements,
- r = e.langManager.locale;
- if (0 !== o.length || 0 !== e.announcementManager.data.length) {
- var i = n(e.announcementManager.data, o);
- i.length > 0 && t(i), a(o, r), e.announcementManager.data = o, e.announcementManager.locale = r
- }
- }
- e.announcementManager = {
- data: [],
- locale: "",
- renderAnnouncements: r
- }
- }(window.PL),
- function(e) {
- function n(e, n) {
- -1 !== n.indexOf(s) && (e.innerHTML = n.replace(s, "<countdown></countdown>"), u = e.querySelector("countdown"), r(), i = setInterval(r, 200))
- }
- function t(n, t) {
- return e.langManager.translate(n, t)
- }
- function a() {
- var n = e.queueData.start_date,
- t = new Date(n).getTime() - (new Date).getTime();
- return Math.floor(Math.max(t, 0) / 1e3)
- }
- function o() {
- var e, n, o, r, i, u, s = [],
- c = " ",
- d = ", ",
- l = c + t("and") + c;
- return r = a(), i = r, e = Math.floor(r / 86400), i >= 86400 && s.push(e + c + t("day", e)), r -= 86400 * e, n = Math.floor(r / 3600) % 24, i >= 3600 && s.push(n + c + t("hour", n)), r -= 3600 * n, o = Math.floor(r / 60) % 60, i >= 60 && s.push(o + c + t("minute", o)), r -= 60 * o, 0 === e && s.push(r + c + t("second", r)), u = s.pop(), s.length ? s.join(d) + l + u : u
- }
- function r() {
- u.innerHTML = o()
- }
- var i = null,
- u = null,
- s = "{countdown}";
- document.addEventListener("page-changed", function(e) {
- var t = e.detail;
- clearInterval(i), "not_started" === t.pageName && n(t.element, t.pageHtml)
- })
- }(window.PL),
- function(e, n) {
- n.isMobileBrowser = /(android|bb\d+|meego).+mobile|android|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0, 4))
- }(navigator.userAgent || navigator.vendor || window.opera, window.PL),
- function(e) {
- function n() {
- var e = {};
- return window.location.search.replace(/([^?=&]+)(=([^&]*))?/g, function(n, t, a, o) {
- e[t] = o
- }), e
- }
- function t(e) {
- return delete e.event_id, delete e.point_of_sale_id, delete e.token, e
- }
- function a(e) {
- var n, t = "";
- for (n in e) t += "&" + n + "=" + e[n];
- return t
- }
- function o(e) {
- var o, r = t(n());
- r = i(r), o = a(r), e += o, document.location.href = e
- }
- e.foManager = {
- loadFrontoffice: o
- };
- var r = function(e) {
- var n = {};
- return e.replace(/([^#&]+)/g, function(e) {
- var t = e.split(/=(.+)?/),
- a = t[0],
- o = t[1];
- n[a] = o
- }), n
- },
- i = function(e) {
- var n = r(window.location.hash);
- return e.pld = n.pld, e
- }
- }(window.PL),
- function(e) {
- function n(e, n) {
- _gaq.push(["paylogic._trackTiming", "Permanent Queue", "AJAX update", e, n, 20])
- }
- function t(n) {
- o.forEach(function(t) {
- _gaq.push([t + "._trackPageview", (e.eventName || "default") + "/" + n])
- })
- }
- function a() {
- o.forEach(function(e) {
- _gaq.push([e + "._trackEvent", "Permanent Queue", "Ping"])
- })
- }
- var o = [];
- e.gaManager = {
- sendGAPage: t,
- sendGATiming: n
- }, e.analytics.paylogic_tracker_id && (o.push("paylogic"), _gaq.push(["paylogic._setAccount", e.analytics.paylogic_tracker_id])), e.analytics.event_tracker_id && (o.push("event"), _gaq.push(["event._setAccount", e.analytics.event_tracker_id])), setInterval(a, 3e5), t("landing")
- }(window.PL),
- function(e) {
- function n() {
- t(o.value), document.dispatchEvent(new CustomEvent("lang-changed"))
- }
- function t(n) {
- e.langManager.locale = n, o && o.value !== n && (o.value = n)
- }
- function a(n, t) {
- return "number" == typeof t && 1 !== t && (n += "s"), e.translations[e.langManager.locale][n]
- }
- var o = document.querySelector("#lang");
- o && o.addEventListener("change", n), e.langManager = {
- locale: null,
- setLocale: t,
- translate: a
- }
- }(window.PL),
- function(e) {
- function n(n, t) {
- var a = t[n];
- return a[e.langManager.locale] || a[t.enabled_languages[0]]
- }
- function t(e) {
- return !e || (new Date).getTime() >= new Date(e).getTime()
- }
- function a() {
- var a = e.queueData.content,
- o = e.langManager.locale,
- s = "not_started",
- c = n("not_started_page", a);
- t(e.queueData.start_date) && (s = a.active_page_name, c = n("active_page", a)), (s !== r || o !== i) && (e.util.fade(u, "out", r ? 500 : 0, function() {
- var n = {
- detail: {
- element: u,
- pageHtml: c,
- pageName: s
- }
- };
- u.innerHTML = c, document.dispatchEvent(new CustomEvent("page-changed", n)), e.util.fade(u, "in", 500)
- }), r = s, i = o)
- }
- function o() {
- r = "loading", u.innerHTML = '<h2 class="loading">Loading…</h2>', e.util.fade(u, "in", 500)
- }
- var r = null,
- i = null,
- u = document.querySelector(".template-content");
- e.pageManager = {
- renderPage: a,
- loadingMessage: o
- }
- }(window.PL),
- function(e) {
- function n(e) {
- var n = e && e.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#&?]*).*/);
- return n ? n[1] : void 0
- }
- function t() {
- var e = document.querySelectorAll(".yt-player-control"),
- n = document.querySelector("#un-mute"),
- t = document.querySelector("#pause-play");
- n.checked = c, n.addEventListener("change", o), t.checked = !1, t.addEventListener("change", r), Array.prototype.forEach.call(e, function(e) {
- e.classList.remove("hide")
- })
- }
- function a() {
- u.getPlayerState() === window.YT.PlayerState.CUED && u.playVideo(), u.setVolume(5), t(), i(), window.addEventListener("resize", i)
- }
- function o(e) {
- var n = e.target.checked;
- n ? u.mute() : u.unMute()
- }
- function r(e) {
- var n = e.target.checked;
- n ? u.pauseVideo() : u.playVideo()
- }
- function i() {
- var e, n = {},
- t = {},
- a = document.querySelector(".bg-media"),
- o = document.querySelector(".bg-media iframe");
- n.width = a.offsetWidth, n.height = a.offsetHeight, t.width = n.width, t.height = Math.ceil(Math.ceil(n.width * (9 / 16))), t.marginTop = -((t.height - n.height) / 2), t.marginLeft = 0, e = t.height < n.height, e && (t.height = n.height, t.width = Math.floor(Math.floor(n.height * (16 / 9))), t.marginTop = 0, t.marginLeft = -((t.width - n.width) / 2)), o.style.width = t.width + "px", o.style.height = t.height + "px", o.style.marginTop = t.marginTop + "px", o.style.marginLeft = t.marginLeft + "px"
- }
- var u, s = n(e.media.youtube_url),
- c = Boolean(navigator.userAgent.match("Chrome/"));
- s && !e.isMobileBrowser && window.setTimeout(function() {
- var e = document.createElement("script");
- e.src = "https://www.youtube.com/iframe_api", document.body.appendChild(e)
- }, 500), window.onYouTubeIframeAPIReady = function() {
- u = new window.YT.Player("bgMediaFrame", {
- width: "100%",
- height: "100%",
- playerVars: {
- autoplay: 1,
- controls: 0,
- disablekb: 1,
- loop: 1,
- modestbranding: 1,
- mute: Number(c),
- showinfo: 0,
- rel: 0,
- playlist: s
- },
- videoId: s,
- events: {
- onReady: a
- }
- })
- }
- }(window.PL),
- function(e) {
- function n() {
- var n, r = document.createDocumentFragment();
- if (e.media.images && 0 !== e.media.images.length && (!e.media.youtube_url || e.isMobileBrowser)) {
- for (var s = 0, c = e.media.images.length; c > s; s++) n = document.createElement("div"), n.classList.add("bg-slide"), r.appendChild(n), u.push(n);
- document.querySelector(".bg-media").appendChild(r), t(0), o = setInterval(a, i), a()
- }
- }
- function t(n) {
- var a = new Image;
- n !== e.media.images.length && (a.addEventListener("load", function() {
- var e = u[n];
- e.style.backgroundImage = ["url(", this.src, ")"].join(""), e.classList.add("loaded"), t(++n)
- }), a.src = e.media.images[n])
- }
- function a() {
- var n = document.querySelector(".bg-slide.active");
- return n && n.classList.toggle("active"), u[r].classList.toggle("active"), 1 === e.media.images.length ? void clearInterval(o) : (r++, void(r === e.media.images.length && (r = 0)))
- }
- var o, r = 0,
- i = 8e3,
- u = [];
- n()
- }(window.PL),
- function(e) {
- e.translations = {
- nl: {
- second: "seconde",
- seconds: "seconden",
- minute: "minuut",
- minutes: "minuten",
- hour: "uur",
- hours: "uur",
- day: "dag",
- days: "dagen",
- and: "en"
- },
- en: {
- second: "second",
- seconds: "seconds",
- minute: "minute",
- minutes: "minutes",
- hour: "hour",
- hours: "hours",
- day: "day",
- days: "days",
- and: "and"
- },
- de: {
- second: "Sekunde",
- seconds: "Sekunden",
- minute: "Minute",
- minutes: "Minuten",
- hour: "Stunde",
- hours: "Stunden",
- day: "Tag",
- days: "Tage",
- and: "und"
- },
- fr: {
- second: "seconde",
- seconds: "secondes",
- minute: "minute",
- minutes: "minutes",
- hour: "heure",
- hours: "heures",
- day: "jour",
- days: "jours",
- and: "et"
- },
- es: {
- second: "segundo",
- seconds: "segundos",
- minute: "minuto",
- minutes: "minutos",
- hour: "hora",
- hours: "horas",
- day: "dÃa",
- days: "dÃas",
- and: "y"
- },
- pt: {
- second: "segundo",
- seconds: "segundos",
- minute: "minuto",
- minutes: "minutos",
- hour: "hora",
- hours: "horas",
- day: "dia",
- days: "dias",
- and: "e"
- }
- }
- }(window.PL),
- function(e) {
- function n(e) {
- var n;
- clearTimeout(l), e && (n = new Date(e).getTime() - (new Date).getTime(), n > 0 && (l = setTimeout(u, n)))
- }
- function t(e) {
- var n = new Date;
- f = e, n.setMinutes(n.getMinutes() + 10), document.cookie = "token=" + e + "; expires=" + n.toUTCString(), a() || (document.cookie = "token=" + e)
- }
- function a() {
- for (var e = document.cookie.split(";"), n = 0, t = e.length; t > n; n++) {
- var a = e[n],
- o = a.substr(0, a.indexOf("="));
- if ("token" == o.replace(/ /g, "")) return a.substr(a.indexOf("=") + 1)
- }
- return f
- }
- function o() {
- var n = a(),
- t = {
- now: (new Date).getTime()
- };
- n && (t.token = n), e.queueData || (d = setTimeout(e.pageManager.loadingMessage, 1500)), qwest.get(e.refreshUrl, t).then(function(e, n) {
- clearTimeout(d);
- try {
- s(n, r(t.now))
- } catch (a) {
- i(12e4)
- }
- })["catch"](function() {
- e.gaManager.sendGATiming(r(t.now), "failed"), i()
- })
- }
- function r(e) {
- return (new Date).getTime() - e
- }
- function i(e) {
- clearTimeout(c), c = setTimeout(o, e || 2e4 * Math.random())
- }
- function u() {
- e.pageManager.renderPage(), e.announcementManager.renderAnnouncements()
- }
- function s(a, o) {
- 0 === Object.keys(a).length ? (e.gaManager.sendGATiming(o, "no data"), i()) : (e.queueData = a, a.redirect ? (t(""), e.gaManager.sendGATiming(o, "redirect"), e.foManager.loadFrontoffice(a.redirect)) : (t(a.token || ""), n(a.start_date), e.gaManager.sendGATiming(o, "success"), null === e.langManager.locale && e.langManager.setLocale(a.content.locale), u(), i(a.refresh_seconds ? 1e3 * a.refresh_seconds : 3e4 + 6e4 * Math.random())))
- }
- var c = null,
- d = null,
- l = null,
- f = null;
- qwest.setDefaultOptions({
- responseType: "json",
- timeout: 6e4,
- cache: !0
- }), c = setTimeout(o, Math.random()), document.addEventListener("lang-changed", u), document.addEventListener("page-changed", function() {
- e.gaManager.sendGAPage(e.queueData.content.active_page_name)
- })
- }(window.PL),
- function(e) {
- function n(e, n, t, a) {
- function o() {
- i = r ? i + s : i - s, e.style.opacity = i, 0 >= i && (e.style.display = "none"), (0 >= i || i >= 1) && (clearInterval(c), a && a.call(this))
- }
- var r = "in" === n,
- i = r ? 0 : 1,
- u = 16,
- s = u / t;
- r && (e.style.display = "block", e.style.opacity = i);
- var c = setInterval(o, u)
- }
- e.util = {
- fade: n
- }
- }(window.PL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement