Created
April 12, 2023 19:43
-
-
Save tommyalvarez/0efedd6dd3f49d724c89886e7343375d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * onetrust-banner-sdk | |
| * v202303.1.0 | |
| * by OneTrust LLC | |
| * Copyright 2023 | |
| */ | |
| !function() { | |
| "use strict"; | |
| var n = function(e, t) { | |
| return (n = Object.setPrototypeOf || { | |
| __proto__: [] | |
| }instanceof Array && function(e, t) { | |
| e.__proto__ = t | |
| } | |
| || function(e, t) { | |
| for (var o in t) | |
| t.hasOwnProperty(o) && (e[o] = t[o]) | |
| } | |
| )(e, t) | |
| }; | |
| function e(e, t) { | |
| function o() { | |
| this.constructor = e | |
| } | |
| n(e, t), | |
| e.prototype = null === t ? Object.create(t) : (o.prototype = t.prototype, | |
| new o) | |
| } | |
| var k, t, o, r, d = function() { | |
| return (d = Object.assign || function(e) { | |
| for (var t, o = 1, n = arguments.length; o < n; o++) | |
| for (var r in t = arguments[o]) | |
| Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]); | |
| return e | |
| } | |
| ).apply(this, arguments) | |
| }; | |
| function u(i, s, a, l) { | |
| return new (a = a || Promise)(function(e, t) { | |
| function o(e) { | |
| try { | |
| r(l.next(e)) | |
| } catch (e) { | |
| t(e) | |
| } | |
| } | |
| function n(e) { | |
| try { | |
| r(l.throw(e)) | |
| } catch (e) { | |
| t(e) | |
| } | |
| } | |
| function r(t) { | |
| t.done ? e(t.value) : new a(function(e) { | |
| e(t.value) | |
| } | |
| ).then(o, n) | |
| } | |
| r((l = l.apply(i, s || [])).next()) | |
| } | |
| ) | |
| } | |
| function g(o, n) { | |
| var r, i, s, e, a = { | |
| label: 0, | |
| sent: function() { | |
| if (1 & s[0]) | |
| throw s[1]; | |
| return s[1] | |
| }, | |
| trys: [], | |
| ops: [] | |
| }; | |
| return e = { | |
| next: t(0), | |
| throw: t(1), | |
| return: t(2) | |
| }, | |
| "function" == typeof Symbol && (e[Symbol.iterator] = function() { | |
| return this | |
| } | |
| ), | |
| e; | |
| function t(t) { | |
| return function(e) { | |
| return function(t) { | |
| if (r) | |
| throw new TypeError("Generator is already executing."); | |
| for (; a; ) | |
| try { | |
| if (r = 1, | |
| i && (s = 2 & t[0] ? i.return : t[0] ? i.throw || ((s = i.return) && s.call(i), | |
| 0) : i.next) && !(s = s.call(i, t[1])).done) | |
| return s; | |
| switch (i = 0, | |
| s && (t = [2 & t[0], s.value]), | |
| t[0]) { | |
| case 0: | |
| case 1: | |
| s = t; | |
| break; | |
| case 4: | |
| return a.label++, | |
| { | |
| value: t[1], | |
| done: !1 | |
| }; | |
| case 5: | |
| a.label++, | |
| i = t[1], | |
| t = [0]; | |
| continue; | |
| case 7: | |
| t = a.ops.pop(), | |
| a.trys.pop(); | |
| continue; | |
| default: | |
| if (!(s = 0 < (s = a.trys).length && s[s.length - 1]) && (6 === t[0] || 2 === t[0])) { | |
| a = 0; | |
| continue | |
| } | |
| if (3 === t[0] && (!s || t[1] > s[0] && t[1] < s[3])) { | |
| a.label = t[1]; | |
| break | |
| } | |
| if (6 === t[0] && a.label < s[1]) { | |
| a.label = s[1], | |
| s = t; | |
| break | |
| } | |
| if (s && a.label < s[2]) { | |
| a.label = s[2], | |
| a.ops.push(t); | |
| break | |
| } | |
| s[2] && a.ops.pop(), | |
| a.trys.pop(); | |
| continue | |
| } | |
| t = n.call(o, a) | |
| } catch (e) { | |
| t = [6, e], | |
| i = 0 | |
| } finally { | |
| r = s = 0 | |
| } | |
| if (5 & t[0]) | |
| throw t[1]; | |
| return { | |
| value: t[0] ? t[1] : void 0, | |
| done: !0 | |
| } | |
| }([t, e]) | |
| } | |
| } | |
| } | |
| function b() { | |
| for (var e = 0, t = 0, o = arguments.length; t < o; t++) | |
| e += arguments[t].length; | |
| var n = Array(e) | |
| , r = 0; | |
| for (t = 0; t < o; t++) | |
| for (var i = arguments[t], s = 0, a = i.length; s < a; s++, | |
| r++) | |
| n[r] = i[s]; | |
| return n | |
| } | |
| (t = k = k || {})[t.ACTIVE = 0] = "ACTIVE", | |
| t[t.ALWAYS_ACTIVE = 1] = "ALWAYS_ACTIVE", | |
| t[t.EXPIRED = 2] = "EXPIRED", | |
| t[t.NO_CONSENT = 3] = "NO_CONSENT", | |
| t[t.OPT_OUT = 4] = "OPT_OUT", | |
| t[t.PENDING = 5] = "PENDING", | |
| t[t.WITHDRAWN = 6] = "WITHDRAWN", | |
| (r = o = o || {}).ping = "ping", | |
| r.addEventListener = "addEventListener", | |
| r.removeEventListener = "removeEventListener", | |
| r.hasSection = "hasSection", | |
| r.getSection = "getSection", | |
| r.getField = "getField", | |
| r.getGPPData = "getGPPData"; | |
| var i = setTimeout; | |
| function l(e) { | |
| return Boolean(e && void 0 !== e.length) | |
| } | |
| function s() {} | |
| function a(e) { | |
| if (!(this instanceof a)) | |
| throw new TypeError("Promises must be constructed via new"); | |
| if ("function" != typeof e) | |
| throw new TypeError("not a function"); | |
| this._state = 0, | |
| this._handled = !1, | |
| this._value = void 0, | |
| this._deferreds = [], | |
| f(e, this) | |
| } | |
| function c(o, n) { | |
| for (; 3 === o._state; ) | |
| o = o._value; | |
| 0 !== o._state ? (o._handled = !0, | |
| a._immediateFn(function() { | |
| var e = 1 === o._state ? n.onFulfilled : n.onRejected; | |
| if (null !== e) { | |
| var t; | |
| try { | |
| t = e(o._value) | |
| } catch (e) { | |
| return void h(n.promise, e) | |
| } | |
| p(n.promise, t) | |
| } else | |
| (1 === o._state ? p : h)(n.promise, o._value) | |
| })) : o._deferreds.push(n) | |
| } | |
| function p(t, e) { | |
| try { | |
| if (e === t) | |
| throw new TypeError("A promise cannot be resolved with itself."); | |
| if (e && ("object" == typeof e || "function" == typeof e)) { | |
| var o = e.then; | |
| if (e instanceof a) | |
| return t._state = 3, | |
| t._value = e, | |
| void C(t); | |
| if ("function" == typeof o) | |
| return void f((n = o, | |
| r = e, | |
| function() { | |
| n.apply(r, arguments) | |
| } | |
| ), t) | |
| } | |
| t._state = 1, | |
| t._value = e, | |
| C(t) | |
| } catch (e) { | |
| h(t, e) | |
| } | |
| var n, r | |
| } | |
| function h(e, t) { | |
| e._state = 2, | |
| e._value = t, | |
| C(e) | |
| } | |
| function C(e) { | |
| 2 === e._state && 0 === e._deferreds.length && a._immediateFn(function() { | |
| e._handled || a._unhandledRejectionFn(e._value) | |
| }); | |
| for (var t = 0, o = e._deferreds.length; t < o; t++) | |
| c(e, e._deferreds[t]); | |
| e._deferreds = null | |
| } | |
| function y(e, t, o) { | |
| this.onFulfilled = "function" == typeof e ? e : null, | |
| this.onRejected = "function" == typeof t ? t : null, | |
| this.promise = o | |
| } | |
| function f(e, t) { | |
| var o = !1; | |
| try { | |
| e(function(e) { | |
| o || (o = !0, | |
| p(t, e)) | |
| }, function(e) { | |
| o || (o = !0, | |
| h(t, e)) | |
| }) | |
| } catch (e) { | |
| if (o) | |
| return; | |
| o = !0, | |
| h(t, e) | |
| } | |
| } | |
| function v() {} | |
| a.prototype.catch = function(e) { | |
| return this.then(null, e) | |
| } | |
| , | |
| a.prototype.then = function(e, t) { | |
| var o = new this.constructor(s); | |
| return c(this, new y(e,t,o)), | |
| o | |
| } | |
| , | |
| a.prototype.finally = function(t) { | |
| var o = this.constructor; | |
| return this.then(function(e) { | |
| return o.resolve(t()).then(function() { | |
| return e | |
| }) | |
| }, function(e) { | |
| return o.resolve(t()).then(function() { | |
| return o.reject(e) | |
| }) | |
| }) | |
| } | |
| , | |
| a.all = function(t) { | |
| return new a(function(n, r) { | |
| if (!l(t)) | |
| return r(new TypeError("Promise.all accepts an array")); | |
| var i = Array.prototype.slice.call(t); | |
| if (0 === i.length) | |
| return n([]); | |
| var s = i.length; | |
| function a(t, e) { | |
| try { | |
| if (e && ("object" == typeof e || "function" == typeof e)) { | |
| var o = e.then; | |
| if ("function" == typeof o) | |
| return void o.call(e, function(e) { | |
| a(t, e) | |
| }, r) | |
| } | |
| i[t] = e, | |
| 0 == --s && n(i) | |
| } catch (e) { | |
| r(e) | |
| } | |
| } | |
| for (var e = 0; e < i.length; e++) | |
| a(e, i[e]) | |
| } | |
| ) | |
| } | |
| , | |
| a.resolve = function(t) { | |
| return t && "object" == typeof t && t.constructor === a ? t : new a(function(e) { | |
| e(t) | |
| } | |
| ) | |
| } | |
| , | |
| a.reject = function(o) { | |
| return new a(function(e, t) { | |
| t(o) | |
| } | |
| ) | |
| } | |
| , | |
| a.race = function(r) { | |
| return new a(function(e, t) { | |
| if (!l(r)) | |
| return t(new TypeError("Promise.race accepts an array")); | |
| for (var o = 0, n = r.length; o < n; o++) | |
| a.resolve(r[o]).then(e, t) | |
| } | |
| ) | |
| } | |
| , | |
| a._immediateFn = "function" == typeof setImmediate ? function(e) { | |
| setImmediate(e) | |
| } | |
| : function(e) { | |
| i(e, 0) | |
| } | |
| , | |
| a._unhandledRejectionFn = function(e) { | |
| "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", e) | |
| } | |
| ; | |
| var m, S, P, T, A, I, L, _, E, V, B, w, O, x, G, N, D, H, J, F, R, q, M, U, j, z, K, W, Y, X, Q, $, Z, ee, te, oe, ne, re, ie, se, ae, le, ce, de, pe, ue, he, ge, Ce, ye, fe, ve, ke, me, be, Se, Pe, Te, Ae, Ie, Le, _e, Ee, Ve, Be, we, Oe, xe, Ge, Ne, De, He, Fe, Re, qe, Me, Ue, je, ze, Ke, We, Je, Ye, Xe, Qe, $e, Ze, et, tt, ot = new (v.prototype.initPolyfill = function() { | |
| this.initArrayIncludesPolyfill(), | |
| this.initObjectAssignPolyfill(), | |
| this.initArrayFillPolyfill(), | |
| this.initClosestPolyfill(), | |
| this.initIncludesPolyfill(), | |
| this.initEndsWithPoly(), | |
| this.initCustomEventPolyfill(), | |
| this.promisesPolyfil() | |
| } | |
| , | |
| v.prototype.initArrayIncludesPolyfill = function() { | |
| Array.prototype.includes || Object.defineProperty(Array.prototype, "includes", { | |
| value: function(e) { | |
| for (var t = [], o = 1; o < arguments.length; o++) | |
| t[o - 1] = arguments[o]; | |
| if (null == this) | |
| throw new TypeError("Array.prototype.includes called on null or undefined"); | |
| var n = Object(this) | |
| , r = parseInt(n.length, 10) || 0; | |
| if (0 === r) | |
| return !1; | |
| var i, s, a = t[1] || 0; | |
| for (0 <= a ? i = a : (i = r + a) < 0 && (i = 0); i < r; ) { | |
| if (e === (s = n[i]) || e != e && s != s) | |
| return !0; | |
| i++ | |
| } | |
| return !1 | |
| }, | |
| writable: !0, | |
| configurable: !0 | |
| }) | |
| } | |
| , | |
| v.prototype.initEndsWithPoly = function() { | |
| String.prototype.endsWith || Object.defineProperty(String.prototype, "endsWith", { | |
| value: function(e, t) { | |
| return (void 0 === t || t > this.length) && (t = this.length), | |
| this.substring(t - e.length, t) === e | |
| }, | |
| writable: !0, | |
| configurable: !0 | |
| }) | |
| } | |
| , | |
| v.prototype.initClosestPolyfill = function() { | |
| Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector), | |
| Element.prototype.closest || Object.defineProperty(Element.prototype, "closest", { | |
| value: function(e) { | |
| var t = this; | |
| do { | |
| if (t.matches(e)) | |
| return t; | |
| t = t.parentElement || t.parentNode | |
| } while (null !== t && 1 === t.nodeType); | |
| return null | |
| }, | |
| writable: !0, | |
| configurable: !0 | |
| }) | |
| } | |
| , | |
| v.prototype.initIncludesPolyfill = function() { | |
| String.prototype.includes || Object.defineProperty(String.prototype, "includes", { | |
| value: function(e, t) { | |
| return "number" != typeof t && (t = 0), | |
| !(t + e.length > this.length) && -1 !== this.indexOf(e, t) | |
| }, | |
| writable: !0, | |
| configurable: !0 | |
| }) | |
| } | |
| , | |
| v.prototype.initObjectAssignPolyfill = function() { | |
| "function" != typeof Object.assign && Object.defineProperty(Object, "assign", { | |
| value: function(e, t) { | |
| if (null == e) | |
| throw new TypeError("Cannot convert undefined or null to object"); | |
| for (var o = Object(e), n = 1; n < arguments.length; n++) { | |
| var r = arguments[n]; | |
| if (null != r) | |
| for (var i in r) | |
| Object.prototype.hasOwnProperty.call(r, i) && (o[i] = r[i]) | |
| } | |
| return o | |
| }, | |
| writable: !0, | |
| configurable: !0 | |
| }) | |
| } | |
| , | |
| v.prototype.initArrayFillPolyfill = function() { | |
| Array.prototype.fill || Object.defineProperty(Array.prototype, "fill", { | |
| value: function(e) { | |
| if (null == this) | |
| throw new TypeError("this is null or not defined"); | |
| for (var t = Object(this), o = t.length >>> 0, n = arguments[1] >> 0, r = n < 0 ? Math.max(o + n, 0) : Math.min(n, o), i = arguments[2], s = void 0 === i ? o : i >> 0, a = s < 0 ? Math.max(o + s, 0) : Math.min(s, o); r < a; ) | |
| t[r] = e, | |
| r++; | |
| return t | |
| } | |
| }) | |
| } | |
| , | |
| v.prototype.initCustomEventPolyfill = function() { | |
| if ("function" == typeof window.CustomEvent) | |
| return !1; | |
| function e(e, t) { | |
| t = t || { | |
| bubbles: !1, | |
| cancelable: !1, | |
| detail: void 0 | |
| }; | |
| var o = document.createEvent("CustomEvent"); | |
| return o.initCustomEvent(e, t.bubbles, t.cancelable, t.detail), | |
| o | |
| } | |
| e.prototype = window.Event.prototype, | |
| window.CustomEvent = e | |
| } | |
| , | |
| v.prototype.insertViewPortTag = function() { | |
| var e = document.querySelector('meta[name="viewport"]') | |
| , t = document.createElement("meta"); | |
| t.name = "viewport", | |
| t.content = "width=device-width, initial-scale=1", | |
| e || document.head.appendChild(t) | |
| } | |
| , | |
| v.prototype.promisesPolyfil = function() { | |
| "undefined" == typeof Promise && (window.Promise = a) | |
| } | |
| , | |
| v); | |
| (S = m = m || {})[S.Unknown = 0] = "Unknown", | |
| S[S.BannerCloseButton = 1] = "BannerCloseButton", | |
| S[S.ConfirmChoiceButton = 2] = "ConfirmChoiceButton", | |
| S[S.AcceptAll = 3] = "AcceptAll", | |
| S[S.RejectAll = 4] = "RejectAll", | |
| S[S.BannerSaveSettings = 5] = "BannerSaveSettings", | |
| S[S.ContinueWithoutAcceptingButton = 6] = "ContinueWithoutAcceptingButton", | |
| (T = P = P || {})[T.Banner = 1] = "Banner", | |
| T[T.PC = 2] = "PC", | |
| T[T.API = 3] = "API", | |
| (I = A = A || {}).AcceptAll = "AcceptAll", | |
| I.RejectAll = "RejectAll", | |
| I.UpdateConsent = "UpdateConsent", | |
| (_ = L = L || {})[_.Purpose = 1] = "Purpose", | |
| _[_.SpecialFeature = 2] = "SpecialFeature", | |
| (V = E = E || {}).Legal = "legal", | |
| V.UserFriendly = "user_friendly", | |
| (w = B = B || {}).Top = "top", | |
| w.Bottom = "bottom", | |
| (x = O = O || {})[x.Banner = 0] = "Banner", | |
| x[x.PrefCenterHome = 1] = "PrefCenterHome", | |
| x[x.VendorList = 2] = "VendorList", | |
| x[x.CookieList = 3] = "CookieList", | |
| (N = G = G || {})[N.RightArrow = 39] = "RightArrow", | |
| N[N.LeftArrow = 37] = "LeftArrow", | |
| (H = D = D || {}).AfterTitle = "AfterTitle", | |
| H.AfterDescription = "AfterDescription", | |
| H.AfterDPD = "AfterDPD", | |
| (F = J = J || {}).PlusMinus = "Plusminus", | |
| F.Caret = "Caret", | |
| F.NoAccordion = "NoAccordion", | |
| (q = R = R || {}).Consent = "Consent", | |
| q.LI = "LI", | |
| q.AddtlConsent = "AddtlConsent", | |
| (U = M = M || {}).Iab1Pub = "eupubconsent", | |
| U.Iab2Pub = "eupubconsent-v2", | |
| U.Iab1Eu = "euconsent", | |
| U.Iab2Eu = "euconsent-v2", | |
| (z = j = j || {})[z.Disabled = 0] = "Disabled", | |
| z[z.Consent = 1] = "Consent", | |
| z[z.LegInt = 2] = "LegInt", | |
| (W = K = K || {})[W["Banner - Allow All"] = 1] = "Banner - Allow All", | |
| W[W["Banner - Reject All"] = 2] = "Banner - Reject All", | |
| W[W["Banner - Close"] = 3] = "Banner - Close", | |
| W[W["Preference Center - Allow All"] = 4] = "Preference Center - Allow All", | |
| W[W["Preference Center - Reject All"] = 5] = "Preference Center - Reject All", | |
| W[W["Preference Center - Confirm"] = 6] = "Preference Center - Confirm", | |
| (X = Y = Y || {}).Active = "1", | |
| X.InActive = "0", | |
| ($ = Q = Q || {}).Host = "Host", | |
| $.GenVendor = "GenVen", | |
| (ee = Z = Z || {})[ee.Host = 1] = "Host", | |
| ee[ee.GenVen = 2] = "GenVen", | |
| ee[ee.HostAndGenVen = 3] = "HostAndGenVen", | |
| (oe = te = te || {})[oe.minDays = 1] = "minDays", | |
| oe[oe.maxDays = 30] = "maxDays", | |
| oe[oe.maxYear = 31536e3] = "maxYear", | |
| oe[oe.maxSecToDays = 86400] = "maxSecToDays", | |
| (re = ne = ne || {})[re.RTL = 0] = "RTL", | |
| re[re.LTR = 1] = "LTR", | |
| (se = ie = ie || {})[se.GoogleVendor = 1] = "GoogleVendor", | |
| se[se.GeneralVendor = 2] = "GeneralVendor", | |
| (le = ae = ae || {})[le.Days = 1] = "Days", | |
| le[le.Weeks = 7] = "Weeks", | |
| le[le.Months = 30] = "Months", | |
| le[le.Years = 365] = "Years", | |
| (de = ce = ce || {}).Checkbox = "Checkbox", | |
| de.Toggle = "Toggle", | |
| (ue = pe = pe || {}).SlideIn = "Slide_In", | |
| ue.FadeIn = "Fade_In", | |
| ue.RemoveAnimation = "Remove_Animation", | |
| (ge = he = he || {}).Link = "Link", | |
| ge.Icon = "Icon", | |
| (ye = Ce = Ce || {}).consent = "consent", | |
| ye.set = "set", | |
| (ve = fe = fe || {}).update = "update", | |
| ve.default = "default", | |
| ve.ads_data_redaction = "ads_data_redaction", | |
| (me = ke = ke || {}).analytics_storage = "analytics_storage", | |
| me.ad_storage = "ad_storage", | |
| me.functionality_storage = "functionality_storage", | |
| me.personalization_storage = "personalization_storage", | |
| me.security_storage = "security_storage", | |
| me.region = "region", | |
| me.wait_for_update = "wait_for_update", | |
| (Se = be = be || {}).granted = "granted", | |
| Se.denied = "denied", | |
| (Te = Pe = Pe || {})[Te.HostList = 0] = "HostList", | |
| Te[Te.IabVendors = 1] = "IabVendors", | |
| Te[Te.VendorServices = 2] = "VendorServices", | |
| (Ie = Ae = Ae || {}).OBJECT_TO_LI = "ObjectToLI", | |
| Ie.LI_ACTIVE_IF_LEGAL_BASIS = "LIActiveIfLegalBasis", | |
| (_e = Le = Le || {}).cookies = "cookies", | |
| _e.vendors = "vendors", | |
| (Ve = Ee = Ee || {}).GDPR = "GDPR", | |
| Ve.IAB = "IAB", | |
| Ve.CCPA = "CCPA", | |
| Ve.IAB2 = "IAB2", | |
| Ve.GENERIC = "GENERIC", | |
| Ve.LGPD = "LGPD", | |
| Ve.GENERIC_PROMPT = "GENERIC_PROMPT", | |
| Ve.CPRA = "CPRA", | |
| Ve.CDPA = "CDPA", | |
| Ve.USNATIONAL = "USNATIONAL", | |
| Ve.CUSTOM = "CUSTOM", | |
| (we = Be = Be || {}).Name = "OTGPPConsent", | |
| we[we.ChunkSize = 4e3] = "ChunkSize", | |
| we.ChunkCountParam = "GPPCookiesCount", | |
| (xe = Oe = Oe || {}).MspaCoveredTransaction = "IsMSPAEnabled", | |
| xe.MspaOptOutOptionMode = "Opt-Out", | |
| xe.MspaServiceProviderMode = "Service Provider", | |
| (Ne = Ge = Ge || {}).MspaCoveredTransaction = "MspaCoveredTransaction", | |
| Ne.MspaOptOutOptionMode = "MspaOptOutOptionMode", | |
| Ne.MspaServiceProviderMode = "MspaServiceProviderMode", | |
| (He = De = De || {}).GpcSegmentType = "GpcSegmentType", | |
| He.Gpc = "Gpc", | |
| (Re = Fe = Fe || {}).SensitiveDataProcessing = "SensitiveDataProcessing", | |
| Re.KnownChildSensitiveDataConsents = "KnownChildSensitiveDataConsents", | |
| (Me = qe = qe || {}).CPRA = "uspcav1", | |
| Me.CCPA = "uspcav1", | |
| Me.CDPA = "uspvav1", | |
| Me.USNATIONAL = "uspnatv1", | |
| (je = Ue = Ue || {})[je.CPRA = 8] = "CPRA", | |
| je[je.CCPA = 8] = "CCPA", | |
| je[je.CDPA = 9] = "CDPA", | |
| je[je.USNATIONAL = 7] = "USNATIONAL", | |
| (Ke = ze = ze || {})[Ke.NotApplicable = 0] = "NotApplicable", | |
| Ke[Ke.OptOut = 1] = "OptOut", | |
| Ke[Ke.OptIn = 2] = "OptIn", | |
| (Je = We = We || {})[Je.NotApplicable = 0] = "NotApplicable", | |
| Je[Je.Yes = 1] = "Yes", | |
| Je[Je.No = 2] = "No", | |
| (Xe = Ye = Ye || {})[Xe.Core = 0] = "Core", | |
| Xe[Xe.GPC = 1] = "GPC", | |
| ($e = Qe = Qe || {}).CmpId = "28", | |
| $e[$e.CmpVersion = 1] = "CmpVersion", | |
| (et = Ze = Ze || {}).OR = "||", | |
| et.AND = "&&", | |
| et.NONE = ""; | |
| var nt = "AwaitingReconsent" | |
| , rt = "consentId" | |
| , it = "geolocation" | |
| , st = "interactionCount" | |
| , at = "isIABGlobal" | |
| , lt = "NotLandingPage" | |
| , ct = "isGpcEnabled" | |
| , dt = "browserGpcFlag" | |
| , pt = { | |
| ADDITIONAL_CONSENT_STRING: "OTAdditionalConsentString", | |
| ALERT_BOX_CLOSED: "OptanonAlertBoxClosed", | |
| OPTANON_CONSENT: "OptanonConsent", | |
| EU_PUB_CONSENT: "eupubconsent-v2", | |
| EU_CONSENT: "euconsent-v2", | |
| SELECTED_VARIANT: "OTVariant", | |
| OT_PREVIEW: "otpreview", | |
| GPP_CONSENT: Be.Name | |
| } | |
| , ut = "CONFIRMED" | |
| , ht = "OPT_OUT" | |
| , gt = "NO_CHOICE" | |
| , Ct = "NOTGIVEN" | |
| , yt = "NO_OPT_OUT" | |
| , ft = "always active" | |
| , vt = "active" | |
| , kt = "inactive landingpage" | |
| , mt = "inactive" | |
| , bt = "dnt" | |
| , St = "LOCAL" | |
| , Pt = "TEST" | |
| , Tt = "LOCAL_TEST" | |
| , At = "data-language" | |
| , It = "otCookieSettingsButton.json" | |
| , Lt = "otCookieSettingsButtonRtl.json" | |
| , _t = "otCenterRounded" | |
| , Et = "otFlat" | |
| , Vt = "otFloatingRoundedCorner" | |
| , Bt = "otFloatingFlat" | |
| , wt = "otFloatingRoundedIcon" | |
| , Ot = "otFloatingRounded" | |
| , xt = "otChoicesBanner" | |
| , Gt = "otNoBanner" | |
| , Nt = "otPcCenter" | |
| , Dt = "otPcList" | |
| , Ht = "otPcPanel" | |
| , Ft = "otPcPopup" | |
| , Rt = "otPcTab" | |
| , qt = "hidebanner" | |
| , Mt = ((tt = {})[ae.Days] = "PCenterVendorListLifespanDay", | |
| tt[ae.Weeks] = "LfSpnWk", | |
| tt[ae.Months] = "PCenterVendorListLifespanMonth", | |
| tt[ae.Years] = "LfSpnYr", | |
| tt) | |
| , Ut = "DNAC" | |
| , jt = "Category" | |
| , zt = "Host" | |
| , Kt = "General Vendor" | |
| , Wt = "VendorService" | |
| , Jt = "aria-label" | |
| , Yt = "aria-hidden" | |
| , Xt = "BRANCH" | |
| , Qt = "COOKIE" | |
| , $t = "IAB2_FEATURE" | |
| , Zt = "IAB2_PURPOSE" | |
| , eo = "IAB2_SPL_FEATURE" | |
| , to = "IAB2_SPL_PURPOSE" | |
| , oo = "IAB2_STACK" | |
| , no = ["IAB2_PURPOSE", "IAB2_STACK", "IAB2_FEATURE", "IAB2_SPL_PURPOSE", "IAB2_SPL_FEATURE"] | |
| , ro = ["COOKIE", "BRANCH", "IAB2_STACK"] | |
| , io = ["IAB2_PURPOSE", "IAB2_SPL_FEATURE"] | |
| , so = ["IAB2_FEATURE", "IAB2_SPL_PURPOSE"] | |
| , ao = ["IAB2_PURPOSE", "IAB2_SPL_PURPOSE", "IAB2_FEATURE", "IAB2_SPL_FEATURE"] | |
| , lo = new function() {} | |
| ; | |
| function co(e, t, o) { | |
| void 0 === o && (o = !1); | |
| function n(e) { | |
| if (!e) | |
| return null; | |
| var t = e.trim(); | |
| return ";" !== t.charAt(t.length - 1) && (t += ";"), | |
| t.trim() | |
| } | |
| var i = n(e.getAttribute("style")) | |
| , s = n(t) | |
| , r = ""; | |
| r = o && i ? function() { | |
| for (var e = i.split(";").concat(s.split(";")).filter(function(e) { | |
| return 0 !== e.length | |
| }), t = "", o = "", n = e.length - 1; 0 <= n; n--) { | |
| var r = e[n].substring(0, e[n].indexOf(":") + 1).trim(); | |
| t.indexOf(r) < 0 && (t += r, | |
| o += e[n] + ";") | |
| } | |
| return o | |
| }() : s, | |
| e.setAttribute("style", r) | |
| } | |
| function po() {} | |
| var uo, ho = new (po.prototype.convertKeyValueLowerCase = function(e) { | |
| for (var t in e) | |
| e[t.toLowerCase()] ? e[t.toLowerCase()] = e[t].toLowerCase() : (e[t] && (e[t.toLowerCase()] = e[t].toLowerCase()), | |
| delete e[t]); | |
| return e | |
| } | |
| , | |
| po.prototype.arrToStr = function(e) { | |
| return e.toString() | |
| } | |
| , | |
| po.prototype.strToArr = function(e) { | |
| return e ? e.split(",") : [] | |
| } | |
| , | |
| po.prototype.strToMap = function(e) { | |
| if (!e) | |
| return new Map; | |
| for (var t = new Map, o = 0, n = this.strToArr(e); o < n.length; o++) { | |
| var r = n[o].split(":"); | |
| t.set(r[0], "1" === r[1]) | |
| } | |
| return t | |
| } | |
| , | |
| po.prototype.empty = function(e) { | |
| var t = document.getElementById(e); | |
| if (t) | |
| for (; t.hasChildNodes(); ) | |
| t.removeChild(t.lastChild) | |
| } | |
| , | |
| po.prototype.show = function(e) { | |
| var t = document.getElementById(e); | |
| t && co(t, "display: block;", !0) | |
| } | |
| , | |
| po.prototype.remove = function(e) { | |
| var t = document.getElementById(e); | |
| t && t.parentNode && t.parentNode.removeChild(t) | |
| } | |
| , | |
| po.prototype.appendTo = function(e, t) { | |
| var o, n = document.getElementById(e); | |
| n && ((o = document.createElement("div")).innerHTML = t, | |
| n.appendChild(o)) | |
| } | |
| , | |
| po.prototype.contains = function(e, t) { | |
| var o; | |
| for (o = 0; o < e.length; o += 1) | |
| if (e[o].toString().toLowerCase() === t.toString().toLowerCase()) | |
| return !0; | |
| return !1 | |
| } | |
| , | |
| po.prototype.indexOf = function(e, t) { | |
| var o; | |
| for (o = 0; o < e.length; o += 1) | |
| if (e[o] === t) | |
| return o; | |
| return -1 | |
| } | |
| , | |
| po.prototype.endsWith = function(e, t) { | |
| return -1 !== e.indexOf(t, e.length - t.length) | |
| } | |
| , | |
| po.prototype.generateUUID = function() { | |
| var o = (new Date).getTime(); | |
| return "undefined" != typeof performance && "function" == typeof performance.now && (o += performance.now()), | |
| "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) { | |
| var t = (o + 16 * Math.random()) % 16 | 0; | |
| return o = Math.floor(o / 16), | |
| ("x" === e ? t : 3 & t | 8).toString(16) | |
| }) | |
| } | |
| , | |
| po.prototype.getActiveIdArray = function(e) { | |
| return e.filter(function(e) { | |
| return "true" === e.split(":")[1] | |
| }).map(function(e) { | |
| return parseInt(e.split(":")[0]) | |
| }) | |
| } | |
| , | |
| po.prototype.distinctArray = function(e) { | |
| var t = new Array; | |
| return e.forEach(function(e) { | |
| t.indexOf(e) < 0 && t.push(e) | |
| }), | |
| t | |
| } | |
| , | |
| po.prototype.findIndex = function(e, t) { | |
| for (var o = -1, n = 0; n < e.length; n++) | |
| if (void 0 !== e[n] && t(e[n], n)) { | |
| o = n; | |
| break | |
| } | |
| return o | |
| } | |
| , | |
| po.prototype.getURL = function(e) { | |
| var t = document.createElement("a"); | |
| return t.href = e, | |
| t | |
| } | |
| , | |
| po.prototype.removeURLPrefixes = function(e) { | |
| return e.toLowerCase().replace(/(^\w+:|^)\/\//, "").replace("www.", "") | |
| } | |
| , | |
| po.prototype.removeChild = function(e) { | |
| if (e) | |
| if (e instanceof NodeList || e instanceof Array) | |
| for (var t = 0; t < e.length; t++) | |
| e[t].parentElement.removeChild(e[t]); | |
| else | |
| e.parentElement.removeChild(e) | |
| } | |
| , | |
| po.prototype.getRelativeURL = function(e, t, o) { | |
| if (void 0 === o && (o = !1), | |
| t) { | |
| var n = "./" + e.replace(/^(http|https):\/\//, "").split("/").slice(1).join("/").replace(".json", ""); | |
| return o ? n : n + ".js" | |
| } | |
| return e | |
| } | |
| , | |
| po.prototype.setCheckedAttribute = function(e, t, o) { | |
| e && (t = document.querySelector(e)), | |
| t && (t.setAttribute("aria-checked", o.toString()), | |
| o ? t.setAttribute("checked", "") : t.removeAttribute("checked"), | |
| t.checked = o) | |
| } | |
| , | |
| po.prototype.setDisabledAttribute = function(e, t, o) { | |
| e && (t = document.querySelector(e)), | |
| t && (o ? t.setAttribute("disabled", o.toString()) : t.removeAttribute("disabled")) | |
| } | |
| , | |
| po.prototype.setHtmlAttributes = function(e, t) { | |
| for (var o in t) | |
| e.setAttribute(o, t[o]), | |
| e[o] = t[o] | |
| } | |
| , | |
| po.prototype.calculateCookieLifespan = function(e) { | |
| if (e < 0) | |
| return ko.LifespanTypeText; | |
| var t = Math.floor(e / te.maxSecToDays); | |
| if (t < te.minDays) | |
| return "< 1 " + ko.PCenterVendorListLifespanDay; | |
| if (t < te.maxDays) | |
| return t + " " + ko.PCenterVendorListLifespanDays; | |
| var o = Math.floor(t / te.maxDays); | |
| return 1 === o ? o + " " + ko.PCenterVendorListLifespanMonth : o + " " + ko.PCenterVendorListLifespanMonths | |
| } | |
| , | |
| po.prototype.insertElement = function(e, t, o) { | |
| e && t && e.insertAdjacentElement(o, t) | |
| } | |
| , | |
| po.prototype.customQuerySelector = function(t) { | |
| return function(e) { | |
| return t.querySelector(e) | |
| } | |
| } | |
| , | |
| po.prototype.customQuerySelectorAll = function(t) { | |
| return function(e) { | |
| return t.querySelectorAll(e) | |
| } | |
| } | |
| , | |
| po), go = (Co.prototype.removeAlertBox = function() { | |
| null !== this.getCookie(pt.ALERT_BOX_CLOSED) && this.setCookie(pt.ALERT_BOX_CLOSED, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removeIab1 = function() { | |
| null !== this.getCookie(M.Iab1Pub) && this.setCookie(M.Iab1Pub, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removeIab2 = function() { | |
| null !== this.getCookie(M.Iab2Pub) && this.setCookie(M.Iab2Pub, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removeAddtlStr = function() { | |
| null !== this.getCookie(pt.ADDITIONAL_CONSENT_STRING) && this.setCookie(pt.ADDITIONAL_CONSENT_STRING, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removeVariant = function() { | |
| null !== this.getCookie(pt.SELECTED_VARIANT) && this.setCookie(pt.SELECTED_VARIANT, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removeOptanon = function() { | |
| null !== this.getCookie(pt.OPTANON_CONSENT) && this.setCookie(pt.OPTANON_CONSENT, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.removePreview = function() { | |
| null !== this.getCookie(pt.OT_PREVIEW) && this.setCookie(pt.OT_PREVIEW, "", 0, !0) | |
| } | |
| , | |
| Co.prototype.writeCookieParam = function(e, t, o, n) { | |
| var r, i, s, a, l = {}, c = this.getCookie(e); | |
| if (c) | |
| for (i = c.split("&"), | |
| r = 0; r < i.length; r += 1) | |
| s = i[r].split("="), | |
| l[decodeURIComponent(s[0])] = s[0] === t && n ? decodeURIComponent(s[1]) : decodeURIComponent(s[1]).replace(/\+/g, " "); | |
| l[t] = o; | |
| var d = lo.moduleInitializer.TenantFeatures; | |
| d && d.CookieV2CookieDateTimeInISO ? l.datestamp = (new Date).toISOString() : l.datestamp = (new Date).toString(), | |
| l.version = bo.otSDKVersion, | |
| a = this.param(l), | |
| this.setCookie(e, a, ko.ReconsentFrequencyDays) | |
| } | |
| , | |
| Co.prototype.readCookieParam = function(e, t, o) { | |
| var n, r, i, s, a = this.getCookie(e); | |
| if (a) { | |
| for (r = {}, | |
| i = a.split("&"), | |
| n = 0; n < i.length; n += 1) | |
| s = i[n].split("="), | |
| r[decodeURIComponent(s[0])] = o ? decodeURIComponent(s[1]) : decodeURIComponent(s[1]).replace(/\+/g, " "); | |
| return t && r[t] ? r[t] : t && !r[t] ? "" : r | |
| } | |
| return "" | |
| } | |
| , | |
| Co.prototype.getCookie = function(e) { | |
| if (lo && lo.moduleInitializer && lo.moduleInitializer.MobileSDK) { | |
| var t = this.getCookieDataObj(e); | |
| if (t) | |
| return t.value | |
| } | |
| if (bo.isAMP && (bo.ampData = JSON.parse(localStorage.getItem(bo.dataDomainId)) || {}, | |
| bo.ampData)) | |
| return bo.ampData[e] || null; | |
| var o, n, r = e + "=", i = document.cookie.split(";"); | |
| for (o = 0; o < i.length; o += 1) { | |
| for (n = i[o]; " " === n.charAt(0); ) | |
| n = n.substring(1, n.length); | |
| if (0 === n.indexOf(r)) | |
| return n.substring(r.length, n.length) | |
| } | |
| return null | |
| } | |
| , | |
| Co.prototype.setAmpStorage = function() { | |
| window.localStorage.setItem(bo.dataDomainId, JSON.stringify(bo.ampData)) | |
| } | |
| , | |
| Co.prototype.removeAmpStorage = function() { | |
| window.localStorage.removeItem(bo.dataDomainId) | |
| } | |
| , | |
| Co.prototype.handleAmp = function(e, t) { | |
| "" !== t ? bo.ampData[e] = t : delete bo.ampData[e], | |
| 0 === Object.keys(bo.ampData).length ? this.removeAmpStorage() : this.setAmpStorage() | |
| } | |
| , | |
| Co.prototype.setCookie = function(e, t, o, n, r) { | |
| if (void 0 === n && (n = !1), | |
| void 0 === r && (r = new Date), | |
| bo.isAMP) | |
| this.handleAmp(e, t); | |
| else { | |
| var i = void 0; | |
| i = o ? (r.setTime(r.getTime() + 24 * o * 60 * 60 * 1e3), | |
| "; expires=" + r.toUTCString()) : n ? "; expires=" + new Date(0).toUTCString() : ""; | |
| var s = lo.moduleInitializer | |
| , a = s && s.Domain ? s.Domain.split("/") : [] | |
| , l = ""; | |
| a.length <= 1 ? a[1] = "" : l = a.slice(1).join("/"); | |
| var c = "Samesite=Lax"; | |
| s.CookieSameSiteNoneEnabled && (c = "Samesite=None; Secure"); | |
| var d = s.ScriptType === Pt || s.ScriptType === Tt; | |
| if (bo.isPreview || !d && !s.MobileSDK) | |
| p = t + i + "; path=/" + l + "; domain=." + a[0] + "; " + c, | |
| document.cookie = e + "=" + p; | |
| else { | |
| var p = t + i + "; path=/; " + c; | |
| s.MobileSDK ? this.setCookieDataObj({ | |
| name: e, | |
| value: t, | |
| expires: i, | |
| date: r, | |
| domainAndPath: a | |
| }) : document.cookie = e + "=" + p | |
| } | |
| } | |
| } | |
| , | |
| Co.prototype.setCookieDataObj = function(t) { | |
| if (t) { | |
| bo.otCookieData || (window.OneTrust && window.OneTrust.otCookieData ? bo.otCookieData = window.OneTrust.otCookieData : bo.otCookieData = []); | |
| var e = ho.findIndex(bo.otCookieData, function(e) { | |
| return e.name === t.name | |
| }); | |
| -1 < e ? bo.otCookieData[e] = t : bo.otCookieData.push(t) | |
| } | |
| } | |
| , | |
| Co.prototype.getCookieDataObj = function(t) { | |
| bo.otCookieData && 0 !== bo.otCookieData.length || (window.OneTrust && window.OneTrust.otCookieData ? bo.otCookieData = window.OneTrust.otCookieData : bo.otCookieData = []); | |
| var e = ho.findIndex(bo.otCookieData, function(e) { | |
| return e.name === t | |
| }); | |
| if (0 <= e) { | |
| var o = bo.otCookieData[e]; | |
| if (o.date) | |
| return new Date(o.date) < new Date ? (bo.otCookieData.splice(e, 1), | |
| null) : o | |
| } | |
| return null | |
| } | |
| , | |
| Co.prototype.param = function(e) { | |
| var t, o = ""; | |
| for (t in e) | |
| e.hasOwnProperty(t) && ("" !== o && (o += "&"), | |
| o += t + "=" + encodeURIComponent(e[t]).replace(/%20/g, "+")); | |
| return o | |
| } | |
| , | |
| Co); | |
| function Co() {} | |
| var yo = (fo.prototype.setRegionRule = function(e) { | |
| this.rule = e | |
| } | |
| , | |
| fo.prototype.getRegionRule = function() { | |
| return this.rule | |
| } | |
| , | |
| fo.prototype.getRegionRuleType = function() { | |
| return this.multiVariantTestingEnabled && this.selectedVariant ? this.selectedVariant.TemplateType : this.conditionalLogicEnabled && !this.allConditionsFailed ? this.Condition.TemplateType : this.rule.Type | |
| } | |
| , | |
| fo.prototype.canUseGoogleVendors = function(e) { | |
| return !!e && (this.conditionalLogicEnabled && !this.allConditionsFailed ? this.Condition.UseGoogleVendors : this.rule.UseGoogleVendors) | |
| } | |
| , | |
| fo.prototype.initVariables = function() { | |
| this.consentableGrps = [], | |
| this.consentableIabGrps = [], | |
| this.iabGrps = [], | |
| this.iabGrpIdMap = {}, | |
| this.domainGrps = {}, | |
| this.iabGroups = { | |
| purposes: {}, | |
| legIntPurposes: {}, | |
| specialPurposes: {}, | |
| features: {}, | |
| specialFeatures: {} | |
| } | |
| } | |
| , | |
| fo.prototype.init = function(e) { | |
| this.getGPCSignal(), | |
| this.initVariables(); | |
| var t = e.DomainData; | |
| this.setPublicDomainData(JSON.parse(JSON.stringify(t))), | |
| this.domainDataMapper(t), | |
| this.commonDataMapper(e.CommonData), | |
| ko.NtfyConfig = e.NtfyConfig || {}, | |
| this.setBannerName(), | |
| this.setPcName(), | |
| this.populateGPCSignal(), | |
| this.populateGPCBrowserSignal(), | |
| ko.GoogleConsent.GCEnable && this.initGCM() | |
| } | |
| , | |
| fo.prototype.getGPCSignal = function() { | |
| this.gpcEnabled = !0 === navigator.globalPrivacyControl | |
| } | |
| , | |
| fo.prototype.isValidConsentNoticeGroup = function(e, t) { | |
| if (!e.ShowInPopup) | |
| return !1; | |
| var o = e.FirstPartyCookies.length || e.Hosts.length || e.GeneralVendorsIds && e.GeneralVendorsIds.length || e.VendorServices && e.VendorServices.length | |
| , n = !1 | |
| , r = !1 | |
| , i = !1; | |
| if (e && !e.Parent) { | |
| e.SubGroups.length && (n = e.SubGroups.some(function(e) { | |
| return e.GroupName && e.ShowInPopup && e.FirstPartyCookies.length | |
| }), | |
| r = e.SubGroups.some(function(e) { | |
| return e.GroupName && e.ShowInPopup && (e.Hosts.length || e.GeneralVendorsIds && e.GeneralVendorsIds.length) | |
| }), | |
| !t || e.FirstPartyCookies.length && e.Hosts.length || (i = !e.SubGroups.some(function(e) { | |
| return -1 === no.indexOf(e.Type) | |
| }))); | |
| var s = e.SubGroups.some(function(e) { | |
| return -1 < no.indexOf(e.Type) | |
| }); | |
| (-1 < no.indexOf(e.Type) || s) && (e.ShowVendorList = !0), | |
| (e.Hosts.length || r || n) && (e.ShowHostList = !0) | |
| } | |
| return o || -1 < no.indexOf(e.Type) || n || r || i | |
| } | |
| , | |
| fo.prototype.extractGroupIdForIabGroup = function(e) { | |
| return -1 < e.indexOf("ISPV2_") ? e = e.replace("ISPV2_", "") : -1 < e.indexOf("IABV2_") ? e = e.replace("IABV2_", "") : -1 < e.indexOf("IFEV2_") ? e = e.replace("IFEV2_", "") : -1 < e.indexOf("ISFV2_") && (e = e.replace("ISFV2_", "")), | |
| e | |
| } | |
| , | |
| fo.prototype.populateGroups = function(e, r) { | |
| var i = this | |
| , s = {} | |
| , a = []; | |
| e.forEach(function(e) { | |
| var t = e.CustomGroupId; | |
| if (void 0 !== e.HasConsentOptOut && e.IsIabPurpose || (e.HasConsentOptOut = !0), | |
| !(!r.IsIabEnabled && -1 < no.indexOf(e.Type) || "IAB2" === i.iabType && (e.Type === Zt || e.Type === oo) && !e.HasConsentOptOut && !e.HasLegIntOptOut || e.Type === eo && !e.HasConsentOptOut) && (t !== vo.purposeOneGrpId || e.ShowInPopup || (i.purposeOneTreatment = !0), | |
| i.grpContainLegalOptOut = e.HasLegIntOptOut || i.grpContainLegalOptOut, | |
| e.SubGroups = [], | |
| e.Parent ? a.push(e) : s[t] = e, | |
| "IAB2" === i.iabType && -1 < no.indexOf(e.Type))) { | |
| var o = i.extractGroupIdForIabGroup(t); | |
| i.iabGrpIdMap[t] = o, | |
| e.IabGrpId = o; | |
| var n = { | |
| description: e.GroupDescription, | |
| descriptionLegal: e.DescriptionLegal, | |
| id: Number(o), | |
| name: e.GroupName | |
| }; | |
| switch (e.Type) { | |
| case Zt: | |
| i.iabGroups.purposes[o] = n; | |
| break; | |
| case to: | |
| i.iabGroups.specialPurposes[o] = n; | |
| break; | |
| case $t: | |
| i.iabGroups.features[o] = n; | |
| break; | |
| case eo: | |
| i.iabGroups.specialFeatures[o] = n | |
| } | |
| } | |
| }), | |
| a.forEach(function(e) { | |
| s[e.Parent] && e.ShowInPopup && (e.FirstPartyCookies.length || e.Hosts.length || e.GeneralVendorsIds && e.GeneralVendorsIds.length || -1 < no.indexOf(e.Type)) && s[e.Parent].SubGroups.push(e) | |
| }); | |
| var t = []; | |
| return Object.keys(s).forEach(function(e) { | |
| i.isValidConsentNoticeGroup(s[e], r.IsIabEnabled) && (s[e].SubGroups.sort(function(e, t) { | |
| return e.Order - t.Order | |
| }), | |
| t.push(s[e])) | |
| }), | |
| this.initGrpVar(t), | |
| t.sort(function(e, t) { | |
| return e.Order - t.Order | |
| }) | |
| } | |
| , | |
| fo.prototype.initGrpVar = function(e) { | |
| var o = this | |
| , n = !0 | |
| , r = !0; | |
| e.forEach(function(e) { | |
| b([e], e.SubGroups).forEach(function(e) { | |
| var t; | |
| e.Type !== Qt && e.Type !== Zt && e.Type !== eo || (o.domainGrps[e.PurposeId.toLowerCase()] = e.CustomGroupId), | |
| -1 < ro.indexOf(e.Type) && o.consentableGrps.push(e), | |
| -1 < io.indexOf(e.Type) && o.consentableIabGrps.push(e), | |
| -1 === ro.indexOf(e.Type) && o.iabGrps.push(e), | |
| o.gpcEnabled && e.IsGpcEnabled && (e.Status = mt), | |
| (t = o.DNTEnabled && e.IsDntEnabled ? bt : e.Status.toLowerCase()) !== vt && t !== kt && t !== bt || (n = !1), | |
| t !== kt && t !== ft && (r = !1), | |
| o.gpcForAGrpEnabled || (o.gpcForAGrpEnabled = e.IsGpcEnabled) | |
| }) | |
| }), | |
| this.isOptInMode = n, | |
| this.isSoftOptInMode = r | |
| } | |
| , | |
| fo.prototype.domainDataMapper = function(e) { | |
| var t, o, n = { | |
| AriaClosePreferences: e.AriaClosePreferences, | |
| AriaOpenPreferences: e.AriaOpenPreferences, | |
| AriaPrivacy: e.AriaPrivacy, | |
| CenterRounded: e.CenterRounded, | |
| Flat: e.Flat, | |
| FloatingFlat: e.FloatingFlat, | |
| FloatingRounded: e.FloatingRounded, | |
| FloatingRoundedCorner: e.FloatingRoundedCorner, | |
| FloatingRoundedIcon: e.FloatingRoundedIcon, | |
| VendorLevelOptOut: e.IsIabEnabled, | |
| AboutCookiesText: e.AboutCookiesText, | |
| AboutLink: e.AboutLink, | |
| AboutText: e.AboutText, | |
| ActiveText: e.ActiveText, | |
| AddLinksToCookiepedia: e.AddLinksToCookiepedia, | |
| AlertAllowCookiesText: e.AlertAllowCookiesText, | |
| AlertCloseText: e.AlertCloseText, | |
| AlertLayout: e.AlertLayout, | |
| AlertMoreInfoText: e.AlertMoreInfoText, | |
| AlertNoticeText: e.AlertNoticeText, | |
| AllowAllText: e.PreferenceCenterConfirmText, | |
| AlwaysActiveText: e.AlwaysActiveText, | |
| BannerAdditionalDescPlacement: e.BannerAdditionalDescPlacement, | |
| BannerAdditionalDescription: e.BannerAdditionalDescription, | |
| BannerCloseButtonText: e.BannerCloseButtonText, | |
| BannerFeatureDescription: e.BannerFeatureDescription, | |
| BannerFeatureTitle: e.BannerFeatureTitle, | |
| BannerIABPartnersLink: e.BannerIABPartnersLink, | |
| BannerInformationDescription: e.BannerInformationDescription, | |
| BannerInformationTitle: e.BannerInformationTitle, | |
| BannerNonIABVendorListText: e.BannerNonIABVendorListText, | |
| BannerPosition: e.BannerPosition, | |
| BannerPurposeDescription: e.BannerPurposeDescription, | |
| BannerPurposeTitle: e.BannerPurposeTitle, | |
| BannerRejectAllButtonText: e.BannerRejectAllButtonText, | |
| BannerRelativeFontSizesToggle: e.BannerRelativeFontSizesToggle, | |
| BannerSettingsButtonDisplayLink: e.BannerSettingsButtonDisplayLink, | |
| BannerShowRejectAllButton: e.BannerShowRejectAllButton, | |
| BShowOptOutSignal: e.BShowOptOutSignal, | |
| BOptOutSignalText: e.BOptOutSignalText, | |
| BRegionAriaLabel: e.BRegionAriaLabel, | |
| BannerTitle: e.BannerTitle, | |
| BCloseButtonType: e.BCloseButtonType, | |
| BContinueText: e.BContinueText, | |
| BCookiePolicyLinkScreenReader: e.BCookiePolicyLinkScreenReader, | |
| BnrLogoAria: e.BnrLogoAria, | |
| BImprintLinkScreenReader: e.BImprintLinkScreenReader, | |
| BInitialFocus: e.BInitialFocus, | |
| BInitialFocusLinkAndButton: e.BInitialFocusLinkAndButton, | |
| BRejectConsentType: e.BRejectConsentType, | |
| BSaveBtnTxt: e.BSaveBtnText, | |
| BShowImprintLink: e.BShowImprintLink, | |
| BShowPolicyLink: e.BShowPolicyLink, | |
| BShowSaveBtn: e.BShowSaveBtn, | |
| cctId: e.cctId, | |
| ChoicesBanner: e.ChoicesBanner, | |
| CloseShouldAcceptAllCookies: e.CloseShouldAcceptAllCookies, | |
| CloseText: e.CloseText, | |
| ConfirmText: e.ConfirmText, | |
| ConsentModel: { | |
| Name: e.ConsentModel | |
| }, | |
| CookieListDescription: e.CookieListDescription, | |
| CookieListTitle: e.CookieListTitle, | |
| CookieSettingButtonText: e.CookieSettingButtonText, | |
| CookiesUsedText: e.CookiesUsedText, | |
| CustomJs: e.CustomJs, | |
| firstPartyTxt: e.CookieFirstPartyText, | |
| FooterDescriptionText: e.FooterDescriptionText, | |
| ForceConsent: e.ForceConsent, | |
| GeneralVendors: e.GeneralVendors, | |
| GeneralVendorsEnabled: e.PCenterUseGeneralVendorsToggle, | |
| GenVenOptOut: e.PCenterAllowVendorOptout, | |
| GlobalRestrictionEnabled: e.GlobalRestrictionEnabled, | |
| GlobalRestrictions: e.GlobalRestrictions, | |
| GoogleConsent: { | |
| GCAdStorage: e.GCAdStorage, | |
| GCAnalyticsStorage: e.GCAnalyticsStorage, | |
| GCEnable: e.GCEnable, | |
| GCFunctionalityStorage: e.GCFunctionalityStorage, | |
| GCPersonalizationStorage: e.GCPersonalizationStorage, | |
| GCRedactEnable: e.GCRedactEnable, | |
| GCSecurityStorage: e.GCSecurityStorage, | |
| GCWaitTime: e.GCWaitTime | |
| }, | |
| GroupGenVenListLabel: e.PCenterGeneralVendorThirdPartyCookiesText, | |
| Groups: this.populateGroups(e.Groups, e), | |
| HideToolbarCookieList: e.HideToolbarCookieList, | |
| IabType: e.IabType, | |
| InactiveText: e.InactiveText, | |
| IsConsentLoggingEnabled: e.IsConsentLoggingEnabled, | |
| IsIabEnabled: e.IsIabEnabled, | |
| IsIabThirdPartyCookieEnabled: e.IsIabThirdPartyCookieEnabled, | |
| IsLifespanEnabled: e.IsLifespanEnabled, | |
| Language: e.Language, | |
| LastReconsentDate: e.LastReconsentDate, | |
| LfSpanSecs: e.PCLifeSpanSecs, | |
| LfSpnWk: e.PCLifeSpanWk, | |
| LfSpnWks: e.PCLifeSpanWks, | |
| LfSpnYr: e.PCLifeSpanYr, | |
| LfSpnYrs: e.PCLifeSpanYrs, | |
| LifespanDurationText: e.LifespanDurationText, | |
| MainInfoText: e.MainInfoText, | |
| MainText: e.MainText, | |
| ManagePreferenceText: e.PreferenceCenterManagePreferencesText, | |
| NewVendorsInactiveEnabled: e.NewVendorsInactiveEnabled, | |
| NewWinTxt: e.PreferenceCenterMoreInfoScreenReader, | |
| NextPageAcceptAllCookies: e.NextPageAcceptAllCookies, | |
| NextPageCloseBanner: e.NextPageCloseBanner, | |
| NoBanner: e.NoBanner, | |
| OnClickAcceptAllCookies: e.OnClickAcceptAllCookies, | |
| OnClickCloseBanner: e.OnClickCloseBanner, | |
| OverriddenVendors: null != (t = e.OverriddenVendors) ? t : {}, | |
| OverridenGoogleVendors: null != (o = e.OverridenGoogleVendors) ? o : {}, | |
| Publisher: e.publisher, | |
| PublisherCC: e.PublisherCC, | |
| ReconsentFrequencyDays: e.ReconsentFrequencyDays, | |
| ScrollAcceptAllCookies: e.ScrollAcceptAllCookies, | |
| ScrollCloseBanner: e.ScrollCloseBanner, | |
| ShowAlertNotice: e.ShowAlertNotice, | |
| showBannerCloseButton: e.showBannerCloseButton, | |
| ShowPreferenceCenterCloseButton: e.ShowPreferenceCenterCloseButton, | |
| ThirdPartyCookieListText: e.ThirdPartyCookieListText, | |
| thirdPartyTxt: e.CookieThirdPartyText, | |
| UseGoogleVendors: this.canUseGoogleVendors(e.PCTemplateUpgrade), | |
| VendorConsentModel: e.VendorConsentModel, | |
| VendorListText: e.VendorListText, | |
| Vendors: e.Vendors, | |
| PCCategoryStyle: e.PCCategoryStyle || ce.Checkbox, | |
| PCShowAlwaysActiveToggle: e.PCShowAlwaysActiveToggle, | |
| PCenterImprintLinkScreenReader: e.PCenterImprintLinkScreenReader, | |
| PCenterImprintLinkText: e.PCenterImprintLinkText, | |
| PCenterImprintLinkUrl: e.PCenterImprintLinkUrl, | |
| PCShowOptOutSignal: e.PCShowOptOutSignal, | |
| PCOptOutSignalText: e.PCOptOutSignalText, | |
| PCRegionAriaLabel: e.PCRegionAriaLabel, | |
| PCHostNotFound: e.PCHostNotFound, | |
| PCVendorNotFound: e.PCVendorNotFound, | |
| PCTechNotFound: e.PCTechNotFound | |
| }; | |
| this.setPCDomainData(n, e), | |
| this.setAdditionalTechnologies(n, e), | |
| this.setVendorServiceConfigData(n, e), | |
| this.setDomainCommonDataDefaults(n, e), | |
| this.setDomainPCDataDefaults(n, e), | |
| this.setGppData(n, e), | |
| e.PCTemplateUpgrade && (e.Center || e.Panel) && (n.PCAccordionStyle = e.PCAccordionStyle), | |
| n.PCenterEnableAccordion = e.PCAccordionStyle !== J.NoAccordion, | |
| this.legIntSettings = e.LegIntSettings || {}, | |
| void 0 === this.legIntSettings.PAllowLI && (this.legIntSettings.PAllowLI = !0), | |
| lo.moduleInitializer.MobileSDK || (this.pagePushedDown = e.BannerPushesDownPage), | |
| ko = d(d({}, ko), n) | |
| } | |
| , | |
| fo.prototype.setGppData = function(e, t) { | |
| e.GPPPurposes = d({}, t.GPPPurposes), | |
| e.IsGPPDataProcessingApplicable = t.IsGPPDataProcessingApplicable, | |
| e.IsGPPEnabled = t.IsGPPEnabled, | |
| e.IsGPPKnownChildApplicable = t.IsGPPKnownChildApplicable, | |
| e.IsMSPAEnabled = t.IsMSPAEnabled, | |
| e.MSPAOptionMode = t.MSPAOptionMode | |
| } | |
| , | |
| fo.prototype.setPCDomainData = function(e, t) { | |
| e.PCAccordionStyle = J.Caret, | |
| e.PCActiveText = t.PCActiveText, | |
| e.PCCloseButtonType = t.PCCloseButtonType, | |
| e.PCContinueText = t.PCContinueText, | |
| e.PCCookiePolicyLinkScreenReader = t.PCCookiePolicyLinkScreenReader, | |
| e.PCCookiePolicyText = t.PCCookiePolicyText, | |
| e.PCenterAllowAllConsentText = t.PCenterAllowAllConsentText, | |
| e.PCenterApplyFiltersText = t.PCenterApplyFiltersText, | |
| e.PCenterBackText = t.PCenterBackText, | |
| e.PCenterCancelFiltersText = t.PCenterCancelFiltersText, | |
| e.PCenterClearFiltersText = t.PCenterClearFiltersText, | |
| e.PCenterCookiesListText = t.PCenterCookiesListText, | |
| e.PCenterEnableAccordion = t.PCenterEnableAccordion, | |
| e.PCenterFilterText = t.PCenterFilterText, | |
| e.PCenterGeneralVendorsText = t.PCenterGeneralVendorsText, | |
| e.PCenterRejectAllButtonText = t.PCenterRejectAllButtonText, | |
| e.PCenterSelectAllVendorsText = t.PCenterSelectAllVendorsText, | |
| e.PCenterShowRejectAllButton = t.PCenterShowRejectAllButton, | |
| e.PCenterUserIdDescriptionText = t.PCenterUserIdDescriptionText, | |
| e.PCenterUserIdNotYetConsentedText = t.PCenterUserIdNotYetConsentedText, | |
| e.PCenterUserIdTimestampTitleText = t.PCenterUserIdTimestampTitleText, | |
| e.PCenterUserIdTitleText = t.PCenterUserIdTitleText, | |
| e.PCenterVendorListDescText = t.PCenterVendorListDescText, | |
| e.PCenterVendorListDisclosure = t.PCenterVendorListDisclosure, | |
| e.PCenterVendorListLifespan = t.PCenterVendorListLifespan, | |
| e.PCenterVendorListLifespanDay = t.PCenterVendorListLifespanDay, | |
| e.PCenterVendorListLifespanDays = t.PCenterVendorListLifespanDays, | |
| e.PCenterVendorListLifespanMonth = t.PCenterVendorListLifespanMonth, | |
| e.PCenterVendorListLifespanMonths = t.PCenterVendorListLifespanMonths, | |
| e.PCenterVendorListNonCookieUsage = t.PCenterVendorListNonCookieUsage, | |
| e.PCenterVendorListStorageDomain = t.PCenterVendorListStorageDomain, | |
| e.PCVLSDomainsUsed = t.PCVLSDomainsUsed, | |
| e.PCVLSUse = t.PCVLSUse, | |
| e.PCenterVendorListStorageIdentifier = t.PCenterVendorListStorageIdentifier, | |
| e.PCenterVendorListStoragePurposes = t.PCenterVendorListStoragePurposes, | |
| e.PCenterVendorListStorageType = t.PCenterVendorListStorageType, | |
| e.PCenterVendorsListText = t.PCenterVendorsListText, | |
| e.PCenterViewPrivacyPolicyText = t.PCenterViewPrivacyPolicyText, | |
| e.PCGoogleVendorsText = t.PCGoogleVendorsText, | |
| e.PCGrpDescLinkPosition = t.PCGrpDescLinkPosition, | |
| e.PCGrpDescType = t.PCGrpDescType, | |
| e.PCGVenPolicyTxt = t.PCGeneralVendorsPolicyText, | |
| e.PCIABVendorsText = t.PCIABVendorsText, | |
| e.PCInactiveText = t.PCInactiveText, | |
| e.PCLogoAria = t.PCLogoScreenReader, | |
| e.PCOpensCookiesDetailsAlert = t.PCOpensCookiesDetailsAlert, | |
| e.PCenterVendorListScreenReader = t.PCenterVendorListScreenReader, | |
| e.PCOpensVendorDetailsAlert = t.PCOpensVendorDetailsAlert, | |
| e.PCenterDynamicRenderingEnable = t.PCenterDynamicRenderingEnable, | |
| e.PCTemplateUpgrade = t.PCTemplateUpgrade, | |
| e.PCVendorFullLegalText = t.PCVendorFullLegalText, | |
| e.PCViewCookiesText = t.PCViewCookiesText, | |
| e.PCLayout = { | |
| Center: t.Center, | |
| List: t.List, | |
| Panel: t.Panel, | |
| Popup: t.Popup, | |
| Tab: t.Tab | |
| }, | |
| e.PCenterVendorListLinkText = t.PCenterVendorListLinkText, | |
| e.PCenterVendorListLinkAriaLabel = t.PCenterVendorListLinkAriaLabel, | |
| e.PreferenceCenterPosition = t.PreferenceCenterPosition | |
| } | |
| , | |
| fo.prototype.setVendorServiceConfigData = function(e, t) { | |
| e.VendorServiceConfig = { | |
| PCVSOptOut: t.PCVSOptOut, | |
| PCVSEnable: t.PCVSEnable, | |
| PCVSExpandCategory: t.PCVSExpandCategory, | |
| PCVSExpandGroup: t.PCVSExpandGroup, | |
| PCVSCategoryView: t.PCVSCategoryView, | |
| PCVSNameText: t.PCVSNameText, | |
| PCVSAllowAllText: t.PCVSAllowAllText, | |
| PCVSListTitle: t.PCVSListTitle, | |
| PCVSParentCompanyText: t.PCVSParentCompanyText, | |
| PCVSAddressText: t.PCVSAddressText, | |
| PCVSDefaultCategoryText: t.PCVSDefaultCategoryText, | |
| PCVSDefaultDescriptionText: t.PCVSDefaultDescriptionText, | |
| PCVSDPOEmailText: t.PCVSDPOEmailText, | |
| PCVSDPOLinkText: t.PCVSDPOLinkText, | |
| PCVSPrivacyPolicyLinkText: t.PCVSPrivacyPolicyLinkText, | |
| PCVSCookiePolicyLinkText: t.PCVSCookiePolicyLinkText, | |
| PCVSOptOutLinkText: t.PCVSOptOutLinkText, | |
| PCVSLegalBasisText: t.PCVSLegalBasisText | |
| } | |
| } | |
| , | |
| fo.prototype.setAdditionalTechnologies = function(e, t) { | |
| e.AdditionalTechnologiesConfig = { | |
| PCShowTrackingTech: t.PCShowTrackingTech, | |
| PCCookiesLabel: t.PCCookiesLabel, | |
| PCTechDetailsText: t.PCTechDetailsText, | |
| PCTrackingTechTitle: t.PCTrackingTechTitle, | |
| PCLocalStorageLabel: t.PCLocalStorageLabel, | |
| PCSessionStorageLabel: t.PCSessionStorageLabel, | |
| PCTechDetailsAriaLabel: t.PCTechDetailsAriaLabel, | |
| PCLocalStorageDurationText: t.PCLocalStorageDurationText, | |
| PCSessionStorageDurationText: t.PCSessionStorageDurationText | |
| } | |
| } | |
| , | |
| fo.prototype.setDomainCommonDataDefaults = function(e, t) { | |
| e.AdvancedAnalyticsCategory = t.AdvancedAnalyticsCategory || "", | |
| e.BannerDPDDescription = t.BannerDPDDescription || [], | |
| e.BannerDPDDescriptionFormat = t.BannerDPDDescriptionFormat || "", | |
| e.BannerDPDTitle = t.BannerDPDTitle || "", | |
| e.CategoriesText = t.CategoriesText || "Categories", | |
| e.CookiesText = t.CookiesText || "Cookies", | |
| e.CookiesDescText = t.CookiesDescText || "Description", | |
| e.LifespanText = t.LifespanText || "Lifespan", | |
| e.LifespanTypeText = t.LifespanTypeText || "Session", | |
| e.PCenterConsentText = t.PCenterConsentText || "Consent" | |
| } | |
| , | |
| fo.prototype.setDomainPCDataDefaults = function(e, t) { | |
| e.PCenterCookieListFilterAria = t.PCenterCookieListFilterAria || "Filter", | |
| e.PCenterCookieListSearch = t.PCenterCookieListSearch || "Search", | |
| e.PCenterCookieSearchAriaLabel = t.PCenterCookieSearchAriaLabel || "Cookie list search", | |
| e.PCenterFilterAppliedAria = t.PCenterFilterAppliedAria || "Applied", | |
| e.PCenterFilterClearedAria = t.PCenterFilterClearedAria || "Filters Cleared", | |
| e.PCenterLegIntColumnHeader = t.PCenterLegIntColumnHeader || "Legitimate Interest", | |
| e.PCenterLegitInterestText = t.PCenterLegitInterestText || "Legitimate Interest", | |
| e.PCenterVendorListFilterAria = t.PCenterVendorListFilterAria || "Filter", | |
| e.PCenterVendorListSearch = t.PCenterVendorListSearch || "Search", | |
| e.PCenterVendorSearchAriaLabel = t.PCenterVendorSearchAriaLabel || "Vendor list search", | |
| e.PCFirstPartyCookieListText = t.PCFirstPartyCookieListText || "First Party Cookies", | |
| e.PCShowConsentLabels = !(!t.Tab || !t.PCTemplateUpgrade) && t.PCShowConsentLabels, | |
| e.PCShowPersistentCookiesHoverButton = t.PCShowPersistentCookiesHoverButton || !1 | |
| } | |
| , | |
| fo.prototype.commonDataMapper = function(e) { | |
| var t = { | |
| iabThirdPartyConsentUrl: e.IabThirdPartyCookieUrl, | |
| optanonHideAcceptButton: e.OptanonHideAcceptButton, | |
| optanonHideCookieSettingButton: e.OptanonHideCookieSettingButton, | |
| optanonStyle: e.OptanonStyle, | |
| optanonStaticContentLocation: e.OptanonStaticContentLocation, | |
| bannerCustomCSS: e.BannerCustomCSS.replace(/\\n/g, ""), | |
| pcCustomCSS: e.PCCustomCSS.replace(/\\n/g, ""), | |
| textColor: e.TextColor, | |
| buttonColor: e.ButtonColor, | |
| buttonTextColor: e.ButtonTextColor, | |
| bannerMPButtonColor: e.BannerMPButtonColor, | |
| bannerMPButtonTextColor: e.BannerMPButtonTextColor, | |
| backgroundColor: e.BackgroundColor, | |
| bannerAccordionBackgroundColor: e.BannerAccordionBackgroundColor, | |
| BContinueColor: e.BContinueColor, | |
| PCContinueColor: e.PCContinueColor, | |
| pcTextColor: e.PcTextColor, | |
| pcButtonColor: e.PcButtonColor, | |
| pcButtonTextColor: e.PcButtonTextColor, | |
| pcAccordionBackgroundColor: e.PcAccordionBackgroundColor, | |
| pcLinksTextColor: e.PcLinksTextColor, | |
| bannerLinksTextColor: e.BannerLinksTextColor, | |
| pcEnableToggles: e.PcEnableToggles, | |
| pcBackgroundColor: e.PcBackgroundColor, | |
| pcMenuColor: e.PcMenuColor, | |
| pcMenuHighLightColor: e.PcMenuHighLightColor, | |
| legacyBannerLayout: e.LegacyBannerLayout, | |
| optanonLogo: e.OptanonLogo, | |
| oneTrustFtrLogo: e.OneTrustFooterLogo, | |
| optanonCookieDomain: e.OptanonCookieDomain, | |
| cookiePersistentLogo: e.CookiePersistentLogo, | |
| optanonGroupIdPerformanceCookies: e.OptanonGroupIdPerformanceCookies, | |
| optanonGroupIdFunctionalityCookies: e.OptanonGroupIdFunctionalityCookies, | |
| optanonGroupIdTargetingCookies: e.OptanonGroupIdTargetingCookies, | |
| optanonGroupIdSocialCookies: e.OptanonGroupIdSocialCookies, | |
| optanonShowSubGroupCookies: e.ShowSubGroupCookies, | |
| useRTL: e.UseRTL, | |
| showBannerCookieSettings: e.ShowBannerCookieSettings, | |
| showBannerAcceptButton: e.ShowBannerAcceptButton, | |
| showCookieList: e.ShowCookieList, | |
| allowHostOptOut: e.AllowHostOptOut, | |
| CookiesV2NewCookiePolicy: e.CookiesV2NewCookiePolicy, | |
| cookieListTitleColor: e.CookieListTitleColor, | |
| cookieListGroupNameColor: e.CookieListGroupNameColor, | |
| cookieListTableHeaderColor: e.CookieListTableHeaderColor, | |
| CookieListTableHeaderBackgroundColor: e.CookieListTableHeaderBackgroundColor, | |
| cookieListPrimaryColor: e.CookieListPrimaryColor, | |
| cookieListCustomCss: e.CookieListCustomCss, | |
| pcShowCookieHost: e.PCShowCookieHost, | |
| pcShowCookieDuration: e.PCShowCookieDuration, | |
| pcShowCookieType: e.PCShowCookieType, | |
| pcShowCookieCategory: e.PCShowCookieCategory, | |
| pcShowCookieDescription: e.PCShowCookieDescription, | |
| ConsentIntegration: e.ConsentIntegration, | |
| ConsentPurposesText: e.BConsentPurposesText || "Consent Purposes", | |
| FeaturesText: e.BFeaturesText || "Features", | |
| LegitimateInterestPurposesText: e.BLegitimateInterestPurposesText || "Legitimate Interest Purposes", | |
| ConsentText: e.BConsentText || "Consent", | |
| LegitInterestText: e.BLegitInterestText || "Legit. Interest", | |
| pcDialogClose: e.PCDialogClose || "dialog closed", | |
| pCFooterLogoUrl: e.PCFooterLogoUrl, | |
| SpecialFeaturesText: e.BSpecialFeaturesText || "Special Features", | |
| SpecialPurposesText: e.BSpecialPurposesText || "Special Purposes", | |
| pcCListName: e.PCCListName || "Name", | |
| pcCListHost: e.PCCListHost || "Host", | |
| pcCListDuration: e.PCCListDuration || "Duration", | |
| pcCListType: e.PCCListType || "Type", | |
| pcCListCategory: e.PCCListCategory || "Category", | |
| pcCListDescription: e.PCCListDescription || "Description", | |
| IabLegalTextUrl: e.IabLegalTextUrl, | |
| pcLegIntButtonColor: e.PcLegIntButtonColor, | |
| pcLegIntButtonTextColor: e.PcLegIntButtonTextColor, | |
| PCenterExpandToViewText: e.PCenterExpandToViewText, | |
| BCategoryContainerColor: e.BCategoryContainerColor, | |
| BCategoryStyleColor: e.BCategoryStyleColor, | |
| BLineBreakColor: e.BLineBreakColor, | |
| BSaveBtnColor: e.BSaveBtnColor, | |
| BCategoryStyle: e.BCategoryStyle, | |
| BAnimation: e.BAnimation, | |
| BFocusBorderColor: e.BFocusBorderColor, | |
| PCFocusBorderColor: e.PCFocusBorderColor, | |
| BnrLogo: e.BnrLogo, | |
| OTCloseBtnLogo: e.OTCloseBtnLogo, | |
| OTExternalLinkLogo: e.OTExternalLinkLogo | |
| }; | |
| this.cookieListMapper(t, e), | |
| ko = d(d({}, ko), t), | |
| this.pubDomainData.CookiesV2NewCookiePolicy = e.CookiesV2NewCookiePolicy | |
| } | |
| , | |
| fo.prototype.cookieListMapper = function(e, t) { | |
| e.TTLGroupByTech = t.TTLGroupByTech, | |
| e.TTLShowTechDesc = t.TTLShowTechDesc | |
| } | |
| , | |
| fo.prototype.setPublicDomainData = function(r) { | |
| this.pubDomainData = { | |
| AboutCookiesText: r.AboutCookiesText, | |
| AboutLink: r.AboutLink, | |
| AboutText: r.AboutText, | |
| ActiveText: r.ActiveText, | |
| AddLinksToCookiepedia: r.AddLinksToCookiepedia, | |
| AlertAllowCookiesText: r.AlertAllowCookiesText, | |
| AlertCloseText: r.AlertCloseText, | |
| AlertLayout: r.AlertLayout, | |
| AlertMoreInfoText: r.AlertMoreInfoText, | |
| AlertNoticeText: r.AlertNoticeText, | |
| AllowAllText: r.PreferenceCenterConfirmText, | |
| AlwaysActiveText: r.AlwaysActiveText, | |
| BAnimation: r.BAnimation, | |
| BannerCloseButtonText: r.BannerCloseButtonText, | |
| BannerDPDDescription: r.BannerDPDDescription || [], | |
| BannerDPDDescriptionFormat: r.BannerDPDDescriptionFormat || "", | |
| BannerDPDTitle: r.BannerDPDTitle || "", | |
| BannerFeatureDescription: r.BannerFeatureDescription, | |
| BannerFeatureTitle: r.BannerFeatureTitle, | |
| BannerIABPartnersLink: r.BannerIABPartnersLink, | |
| BannerInformationDescription: r.BannerInformationDescription, | |
| BannerInformationTitle: r.BannerInformationTitle, | |
| BannerPosition: r.BannerPosition, | |
| BannerPurposeDescription: r.BannerPurposeDescription, | |
| BannerPurposeTitle: r.BannerPurposeTitle, | |
| BannerRejectAllButtonText: r.BannerRejectAllButtonText, | |
| BannerRelativeFontSizesToggle: r.BannerRelativeFontSizesToggle, | |
| BannerSettingsButtonDisplayLink: r.BannerSettingsButtonDisplayLink, | |
| BannerShowRejectAllButton: r.BannerShowRejectAllButton, | |
| BannerTitle: r.BannerTitle, | |
| BCategoryContainerColor: r.BCategoryContainerColor, | |
| BCategoryStyle: r.BCategoryStyle, | |
| BCategoryStyleColor: r.BCategoryStyleColor, | |
| BCloseButtonType: r.BCloseButtonType, | |
| BContinueText: r.BContinueText, | |
| BInitialFocus: r.BInitialFocus, | |
| BInitialFocusLinkAndButton: r.BInitialFocusLinkAndButton, | |
| BLineBreakColor: r.BLineBreakColor, | |
| BRejectConsentType: r.BRejectConsentType, | |
| BSaveBtnColor: r.BSaveBtnColor, | |
| BSaveBtnTxt: r.BSaveBtnText, | |
| BShowSaveBtn: r.BShowSaveBtn, | |
| CategoriesText: r.CategoriesText, | |
| cctId: r.cctId, | |
| ChoicesBanner: r.ChoicesBanner, | |
| CloseShouldAcceptAllCookies: r.CloseShouldAcceptAllCookies, | |
| CloseText: r.CloseText, | |
| ConfirmText: r.ConfirmText, | |
| ConsentIntegrationData: null, | |
| ConsentModel: { | |
| Name: r.ConsentModel | |
| }, | |
| CookieListDescription: r.CookieListDescription, | |
| CookieListTitle: r.CookieListTitle, | |
| CookieSettingButtonText: r.CookieSettingButtonText, | |
| CookiesText: r.CookiesText, | |
| CookiesDescText: r.CookiesDescText, | |
| CookiesUsedText: r.CookiesUsedText, | |
| CustomJs: r.CustomJs, | |
| Domain: lo.moduleInitializer.Domain, | |
| FooterDescriptionText: r.FooterDescriptionText, | |
| ForceConsent: r.ForceConsent, | |
| GeneralVendors: r.GeneralVendors, | |
| GoogleConsent: { | |
| GCAdStorage: r.GCAdStorage, | |
| GCAnalyticsStorage: r.GCAnalyticsStorage, | |
| GCEnable: r.GCEnable, | |
| GCFunctionalityStorage: r.GCFunctionalityStorage, | |
| GCPersonalizationStorage: r.GCPersonalizationStorage, | |
| GCRedactEnable: r.GCRedactEnable, | |
| GCSecurityStorage: r.GCSecurityStorage, | |
| GCWaitTime: r.GCWaitTime | |
| }, | |
| Groups: null, | |
| HideToolbarCookieList: r.HideToolbarCookieList, | |
| IabType: r.IabType, | |
| InactiveText: r.InactiveText, | |
| IsBannerLoaded: !1, | |
| IsConsentLoggingEnabled: r.IsConsentLoggingEnabled, | |
| IsIABEnabled: r.IsIabEnabled, | |
| IsIabThirdPartyCookieEnabled: r.IsIabThirdPartyCookieEnabled, | |
| IsLifespanEnabled: r.IsLifespanEnabled, | |
| Language: r.Language, | |
| LastReconsentDate: r.LastReconsentDate, | |
| LifespanDurationText: r.LifespanDurationText, | |
| LifespanText: r.LifespanText, | |
| LifespanTypeText: r.LifespanTypeText, | |
| MainInfoText: r.MainInfoText, | |
| MainText: r.MainText, | |
| ManagePreferenceText: r.PreferenceCenterManagePreferencesText, | |
| NextPageAcceptAllCookies: r.NextPageAcceptAllCookies, | |
| NextPageCloseBanner: r.NextPageCloseBanner, | |
| NoBanner: r.NoBanner, | |
| OnClickAcceptAllCookies: r.OnClickAcceptAllCookies, | |
| OnClickCloseBanner: r.OnClickCloseBanner, | |
| OverridenGoogleVendors: r.OverridenGoogleVendors, | |
| PCAccordionStyle: J.Caret, | |
| PCCloseButtonType: r.PCCloseButtonType, | |
| PCContinueText: r.PCContinueText, | |
| PCenterAllowAllConsentText: r.PCenterAllowAllConsentText, | |
| PCenterApplyFiltersText: r.PCenterApplyFiltersText, | |
| PCenterBackText: r.PCenterBackText, | |
| PCenterCancelFiltersText: r.PCenterCancelFiltersText, | |
| PCenterClearFiltersText: r.PCenterClearFiltersText, | |
| PCenterCookieSearchAriaLabel: r.PCenterCookieSearchAriaLabel || "Cookie list search", | |
| PCenterCookiesListText: r.PCenterCookiesListText, | |
| PCenterEnableAccordion: r.PCenterEnableAccordion, | |
| PCenterExpandToViewText: r.PCenterExpandToViewText, | |
| PCenterFilterAppliedAria: r.PCenterFilterAppliedAria || "Applied", | |
| PCenterFilterClearedAria: r.PCenterFilterClearedAria || "Filters Cleared", | |
| PCenterFilterText: r.PCenterFilterText, | |
| PCenterRejectAllButtonText: r.PCenterRejectAllButtonText, | |
| PCenterSelectAllVendorsText: r.PCenterSelectAllVendorsText, | |
| PCenterShowRejectAllButton: r.PCenterShowRejectAllButton, | |
| PCenterUserIdDescriptionText: r.PCenterUserIdDescriptionText, | |
| PCenterUserIdNotYetConsentedText: r.PCenterUserIdNotYetConsentedText, | |
| PCenterUserIdTimestampTitleText: r.PCenterUserIdTimestampTitleText, | |
| PCenterUserIdTitleText: r.PCenterUserIdTitleText, | |
| PCenterVendorListDescText: r.PCenterVendorListDescText, | |
| PCenterVendorSearchAriaLabel: r.PCenterVendorSearchAriaLabel || "Vendor list search", | |
| PCenterVendorsListText: r.PCenterVendorsListText, | |
| PCenterViewPrivacyPolicyText: r.PCenterViewPrivacyPolicyText, | |
| PCFirstPartyCookieListText: r.PCFirstPartyCookieListText, | |
| PCGoogleVendorsText: r.PCGoogleVendorsText, | |
| PCGrpDescLinkPosition: r.PCGrpDescLinkPosition, | |
| PCGrpDescType: r.PCGrpDescType, | |
| PCIABVendorsText: r.PCIABVendorsText, | |
| PCLogoAria: r.PCLogoScreenReader, | |
| PCOpensCookiesDetailsAlert: r.PCOpensCookiesDetailsAlert, | |
| PCenterVendorListScreenReader: r.PCenterVendorListScreenReader, | |
| PCOpensVendorDetailsAlert: r.PCOpensVendorDetailsAlert, | |
| PCShowPersistentCookiesHoverButton: r.PCShowPersistentCookiesHoverButton, | |
| PCenterDynamicRenderingEnable: r.PCenterDynamicRenderingEnable, | |
| PCTemplateUpgrade: r.PCTemplateUpgrade, | |
| PCVendorFullLegalText: r.PCVendorFullLegalText, | |
| PCViewCookiesText: r.PCViewCookiesText, | |
| PCLayout: { | |
| Center: r.Center, | |
| List: r.List, | |
| Panel: r.Panel, | |
| Popup: r.Popup, | |
| Tab: r.Tab | |
| }, | |
| PCenterVendorListLinkText: r.PCenterVendorListLinkText, | |
| PCenterVendorListLinkAriaLabel: r.PCenterVendorListLinkAriaLabel, | |
| PCenterImprintLinkScreenReader: r.PCenterImprintLinkScreenReader, | |
| PCenterImprintLinkText: r.PCenterImprintLinkText, | |
| PCenterImprintLinkUrl: r.PCenterImprintLinkUrl, | |
| PreferenceCenterPosition: r.PreferenceCenterPosition, | |
| ScrollAcceptAllCookies: r.ScrollAcceptAllCookies, | |
| ScrollCloseBanner: r.ScrollCloseBanner, | |
| ShowAlertNotice: r.ShowAlertNotice, | |
| showBannerCloseButton: r.showBannerCloseButton, | |
| ShowPreferenceCenterCloseButton: r.ShowPreferenceCenterCloseButton, | |
| ThirdPartyCookieListText: r.ThirdPartyCookieListText, | |
| UseGoogleVendors: this.canUseGoogleVendors(r.PCTemplateUpgrade), | |
| VendorConsentModel: r.VendorConsentModel, | |
| VendorLevelOptOut: r.IsIabEnabled, | |
| VendorListText: r.VendorListText, | |
| CookiesV2NewCookiePolicy: !1 | |
| }, | |
| r.PCTemplateUpgrade && (r.Center || r.Panel) && r.PCAccordionStyle !== J.NoAccordion && (this.pubDomainData.PCAccordionStyle = r.PCAccordionStyle), | |
| this.pubDomainData.PCenterEnableAccordion = r.PCAccordionStyle !== J.NoAccordion; | |
| var i = []; | |
| r.Groups.forEach(function(e) { | |
| var t, o; | |
| if (r.IsIabEnabled || !e.IsIabPurpose) { | |
| e.Cookies = JSON.parse(JSON.stringify(e.FirstPartyCookies)); | |
| var n = null === (o = e.Hosts) || void 0 === o ? void 0 : o.reduce(function(e, t) { | |
| return e.concat(JSON.parse(JSON.stringify(t.Cookies))) | |
| }, []); | |
| (t = e.Cookies).push.apply(t, n), | |
| i.push(e) | |
| } | |
| }), | |
| this.pubDomainData.Groups = i | |
| } | |
| , | |
| fo.prototype.setBannerScriptElement = function(e) { | |
| this.bannerScriptElement = e, | |
| this.setDomainElementAttributes() | |
| } | |
| , | |
| fo.prototype.setGCMcallback = function() { | |
| window.otEventListeners && window.otEventListeners.length && window.otEventListeners.forEach(function(e) { | |
| e && "consent.changed" === e.event && (vo.gcmUpdateCallback = e.listener) | |
| }) | |
| } | |
| , | |
| fo.prototype.setDomainElementAttributes = function() { | |
| this.bannerScriptElement && (this.bannerScriptElement.hasAttribute("data-document-language") && this.setUseDocumentLanguage("true" === this.bannerScriptElement.getAttribute("data-document-language")), | |
| this.bannerScriptElement.hasAttribute("data-ignore-ga") && (this.ignoreGoogleAnlyticsCall = "true" === this.bannerScriptElement.getAttribute("data-ignore-ga")), | |
| this.bannerScriptElement.hasAttribute("data-ignore-html") && (this.ignoreInjectingHtmlCss = "true" === this.bannerScriptElement.getAttribute("data-ignore-html"))) | |
| } | |
| , | |
| fo.prototype.setUseDocumentLanguage = function(e) { | |
| this.useDocumentLanguage = e | |
| } | |
| , | |
| fo.prototype.setPcName = function() { | |
| var e = ko.PCLayout; | |
| e.Center ? this.pcName = Nt : e.Panel ? this.pcName = Ht : e.Popup ? this.pcName = Ft : e.List ? this.pcName = Dt : e.Tab && (this.pcName = Rt) | |
| } | |
| , | |
| fo.prototype.setBannerName = function() { | |
| ko.Flat ? this.bannerName = Et : ko.FloatingRoundedCorner ? this.bannerName = Vt : ko.FloatingFlat ? this.bannerName = Bt : ko.FloatingRounded ? this.bannerName = Ot : ko.FloatingRoundedIcon ? this.bannerName = wt : ko.CenterRounded ? this.bannerName = _t : ko.ChoicesBanner ? this.bannerName = xt : ko.NoBanner && (this.bannerName = Gt) | |
| } | |
| , | |
| fo.prototype.populateGPCSignal = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, ct) | |
| , t = this.gpcForAGrpEnabled && this.gpcEnabled ? "1" : "0"; | |
| this.gpcValueChanged = e ? e != t : this.gpcForAGrpEnabled, | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, ct, t) | |
| } | |
| , | |
| fo.prototype.populateGPCBrowserSignal = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, dt) | |
| , t = this.gpcEnabled ? "1" : "0"; | |
| this.gpcBrowserValueChanged = e !== t, | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, dt, t) | |
| } | |
| , | |
| fo.prototype.initGCM = function() { | |
| var o = []; | |
| Object.keys(this.rule.States).forEach(function(t) { | |
| vo.rule.States[t].forEach(function(e) { | |
| o.push((t + "-" + e).toUpperCase()) | |
| }) | |
| }); | |
| var e = vo.rule.Countries.map(function(e) { | |
| return e.toUpperCase() | |
| }); | |
| vo.gcmCountries = e.concat(o) | |
| } | |
| , | |
| fo); | |
| function fo() { | |
| var t = this; | |
| this.DNTEnabled = "yes" === navigator.doNotTrack || "1" === navigator.doNotTrack, | |
| this.gpcEnabled = !1, | |
| this.gpcForAGrpEnabled = !1, | |
| this.pagePushedDown = !1, | |
| this.iabGroups = { | |
| purposes: {}, | |
| legIntPurposes: {}, | |
| specialPurposes: {}, | |
| features: {}, | |
| specialFeatures: {} | |
| }, | |
| this.iabType = null, | |
| this.grpContainLegalOptOut = !1, | |
| this.purposeOneTreatment = !1, | |
| this.ignoreInjectingHtmlCss = !1, | |
| this.ignoreGoogleAnlyticsCall = !1, | |
| this.mobileOnlineURL = [], | |
| this.iabGrpIdMap = {}, | |
| this.iabGrps = [], | |
| this.consentableGrps = [], | |
| this.consentableIabGrps = [], | |
| this.domainGrps = {}, | |
| this.thirdPartyiFrameLoaded = !1, | |
| this.thirdPartyiFrameResolve = null, | |
| this.thirdPartyiFramePromise = new Promise(function(e) { | |
| t.thirdPartyiFrameResolve = e | |
| } | |
| ), | |
| this.isOptInMode = !1, | |
| this.isSoftOptInMode = !1, | |
| this.gpcValueChanged = !1, | |
| this.gpcBrowserValueChanged = !1, | |
| this.conditionalLogicEnabled = !1, | |
| this.allConditionsFailed = !1, | |
| this.canUseConditionalLogic = !1, | |
| this.gtmUpdatedinStub = !1, | |
| this.gcmDevIdSet = !1, | |
| this.purposeOneGrpId = "IABV2_1" | |
| } | |
| var vo, ko = {}; | |
| function mo() { | |
| this.otSDKVersion = "202303.1.0", | |
| this.isAMP = !1, | |
| this.ampData = {}, | |
| this.otCookieData = window.OneTrust && window.OneTrust.otCookieData || [], | |
| this.syncRequired = !1, | |
| this.isIabSynced = !1, | |
| this.isGacSynced = !1, | |
| this.grpsSynced = [], | |
| this.syncedValidGrp = !1, | |
| this.groupsConsent = [], | |
| this.initialGroupsConsent = [], | |
| this.hostsConsent = [], | |
| this.initialHostConsent = [], | |
| this.genVendorsConsent = {}, | |
| this.vsConsent = new Map, | |
| this.initialGenVendorsConsent = {}, | |
| this.vendors = { | |
| list: [], | |
| searchParam: "", | |
| vendorTemplate: null, | |
| selectedVendors: [], | |
| selectedPurpose: [], | |
| selectedLegInt: [], | |
| selectedLegIntVendors: [], | |
| selectedSpecialFeatures: [] | |
| }, | |
| this.initialVendors = { | |
| list: [], | |
| searchParam: "", | |
| vendorTemplate: null, | |
| selectedVendors: [], | |
| selectedPurpose: [], | |
| selectedLegInt: [], | |
| selectedLegIntVendors: [], | |
| selectedSpecialFeatures: [] | |
| }, | |
| this.oneTrustIABConsent = { | |
| purpose: [], | |
| legimateInterest: [], | |
| features: [], | |
| specialFeatures: [], | |
| specialPurposes: [], | |
| vendors: [], | |
| legIntVendors: [], | |
| vendorList: null, | |
| IABCookieValue: "" | |
| }, | |
| this.initialOneTrustIABConsent = { | |
| purpose: [], | |
| legimateInterest: [], | |
| features: [], | |
| specialFeatures: [], | |
| specialPurposes: [], | |
| vendors: [], | |
| legIntVendors: [], | |
| vendorList: null, | |
| IABCookieValue: "" | |
| }, | |
| this.addtlVendors = { | |
| vendorConsent: [], | |
| vendorSelected: {} | |
| }, | |
| this.initialAddtlVendors = { | |
| vendorConsent: [], | |
| vendorSelected: {} | |
| }, | |
| this.addtlConsentVersion = "1~", | |
| this.initialAddtlVendorsList = {}, | |
| this.isAddtlConsent = !1, | |
| this.currentGlobalFilteredList = [], | |
| this.filterByIABCategories = [], | |
| this.filterByCategories = [], | |
| this.hosts = { | |
| hostTemplate: null, | |
| hostCookieTemplate: null | |
| }, | |
| this.generalVendors = { | |
| gvTemplate: null, | |
| gvCookieTemplate: null | |
| }, | |
| this.oneTrustAlwaysActiveHosts = [], | |
| this.alwaysActiveGenVendors = [], | |
| this.softOptInGenVendors = [], | |
| this.optInGenVendors = [], | |
| this.optanonHostList = [], | |
| this.srcExecGrps = [], | |
| this.htmlExecGrps = [], | |
| this.srcExecGrpsTemp = [], | |
| this.htmlExecGrpsTemp = [], | |
| this.isPCVisible = !1, | |
| this.dataGroupState = [], | |
| this.userLocation = { | |
| country: "", | |
| state: "" | |
| }, | |
| this.vendorsSetting = {}, | |
| this.dsParams = {}, | |
| this.isV2Stub = !1, | |
| this.fireOnetrustGrp = !1, | |
| this.showVendorService = !1, | |
| this.showGeneralVendors = !1, | |
| this.genVenOptOutEnabled = !1, | |
| this.vsIsActiveAndOptOut = !1, | |
| this.bAsset = {}, | |
| this.pcAsset = {}, | |
| this.csBtnAsset = {}, | |
| this.cStyles = {}, | |
| this.vendorDomInit = !1, | |
| this.genVendorDomInit = !1, | |
| this.syncNtfyContent = {}, | |
| this.ntfyRequired = !1, | |
| this.skipAddingHTML = !1, | |
| this.bnrAnimationInProg = !1, | |
| this.isPreview = !1, | |
| this.geoFromUrl = "", | |
| this.hideBanner = !1, | |
| this.setAttributePolyfillIsActive = !1, | |
| this.storageBaseURL = "", | |
| this.isKeyboardUser = !1, | |
| this.customerStyles = new Map, | |
| this.showTrackingTech = !1, | |
| this.currentTrackingTech = {} | |
| } | |
| var bo = new (mo.prototype.getVendorsInDomain = function() { | |
| var e; | |
| if (!bo._vendorsInDomain) { | |
| var t = new Map | |
| , o = null != (e = ko.Groups) ? e : []; | |
| bo.setVendorServicesMap(o, t), | |
| bo._vendorsInDomain = t | |
| } | |
| return bo._vendorsInDomain | |
| } | |
| , | |
| mo.prototype.setVendorServicesMap = function(e, t) { | |
| for (var o, n = 0, r = e; n < r.length; n++) { | |
| var i = r[n]; | |
| i.SubGroups && 0 < i.SubGroups.length && bo.setVendorServicesMap(i.SubGroups, t); | |
| for (var s = 0, a = null != (o = i.VendorServices) ? o : []; s < a.length; s++) { | |
| var l = a[s] | |
| , c = Object.assign({}, i); | |
| delete c.VendorServices, | |
| l.groupRef = c, | |
| t.set(l.CustomVendorServiceId, l) | |
| } | |
| } | |
| } | |
| , | |
| mo.prototype.clearVendorsInDomain = function() { | |
| bo._vendorsInDomain = null | |
| } | |
| , | |
| mo) | |
| , So = (Po.insertAfter = function(e, t) { | |
| t.parentNode.insertBefore(e, t.nextSibling) | |
| } | |
| , | |
| Po.insertBefore = function(e, t) { | |
| t.parentNode.insertBefore(e, t) | |
| } | |
| , | |
| Po.inArray = function(e, t) { | |
| return t.indexOf(e) | |
| } | |
| , | |
| Po.ajax = function(e) { | |
| var t, o, n, r, i, s, a = null, l = new XMLHttpRequest; | |
| t = e.type, | |
| o = e.url, | |
| e.dataType, | |
| n = e.contentType, | |
| r = e.data, | |
| i = e.success, | |
| a = e.error, | |
| s = e.sync, | |
| l.open(t, o, !s), | |
| l.setRequestHeader("Content-Type", n), | |
| l.withCredentials = !1, | |
| l.onload = function() { | |
| if (200 <= this.status && this.status < 400) { | |
| var e = JSON.parse(this.responseText); | |
| i(e) | |
| } else | |
| a({ | |
| message: "Error Loading Data", | |
| statusCode: this.status | |
| }) | |
| } | |
| , | |
| l.onerror = function(e) { | |
| a(e) | |
| } | |
| , | |
| "post" === t.toLowerCase() || "put" === t.toLowerCase() ? l.send(r) : l.send() | |
| } | |
| , | |
| Po.prevNextHelper = function(o, e, n) { | |
| var r = []; | |
| function i(e, t, o) { | |
| t[e] && o ? o.includes(".") ? (t[e].classList[0] || t[e].classList.value && t[e].classList.value.includes(o.split(".")[1])) && r.push(t[e]) : o.includes("#") ? t[e].id === o.split("#")[1] && r.push(t[e]) : t[e].tagName === document.createElement(o.trim()).tagName && r.push(t[e]) : t[e] && r.push(t[e]) | |
| } | |
| return "string" == typeof e ? Array.prototype.forEach.call(document.querySelectorAll(e), function(e, t) { | |
| i(o, e, n) | |
| }) : i(o, e, n), | |
| r | |
| } | |
| , | |
| Po.browser = function() { | |
| var e, t, o; | |
| return navigator.sayswho = (t = navigator.userAgent, | |
| o = t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [], | |
| /trident/i.test(o[1]) ? "IE " + ((e = /\brv[ :]+(\d+)/g.exec(t) || [])[1] || "") : "Chrome" === o[1] && null != (e = t.match(/\b(OPR|Edge)\/(\d+)/)) ? e.slice(1).join(" ").replace("OPR", "Opera") : (o = o[2] ? [o[1], o[2]] : [navigator.appName, navigator.appVersion, "-?"], | |
| null != (e = t.match(/version\/(\d+)/i)) && o.splice(1, 1, e[1]), | |
| o.join(" "))), | |
| { | |
| version: parseInt(navigator.sayswho.split(" ")[1]), | |
| type: navigator.sayswho.split(" ")[0], | |
| userAgent: navigator.userAgent | |
| } | |
| } | |
| , | |
| Po.isNodeList = function(e) { | |
| var t = Object.prototype.toString.call(e); | |
| return "[object NodeList]" === t || "[object Array]" === t | |
| } | |
| , | |
| Po.prototype.fadeOut = function(e) { | |
| var t = this; | |
| if (void 0 === e && (e = 60), | |
| 1 <= this.el.length) | |
| for (var o = 0; o < this.el.length; o++) { | |
| var n = "\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s " + e + "ms, opacity " + e + "ms linear;\n "; | |
| co(this.el[o], n, !0) | |
| } | |
| var r = setInterval(function() { | |
| if (1 <= t.el.length) | |
| for (var e = 0; e < t.el.length; e++) | |
| t.el[e].style.opacity <= 0 && (co(t.el[e], "display: none;", !0), | |
| clearInterval(r), | |
| "optanon-popup-bg" === t.el[e].id && t.el[e].removeAttribute("style")) | |
| }, e); | |
| return this | |
| } | |
| , | |
| Po.prototype.hide = function() { | |
| if (1 <= this.el.length) | |
| for (var e = 0; e < this.el.length; e++) | |
| co(this.el[e], "display: none;", !0), | |
| this.el[e].setAttribute(Yt, !0); | |
| else | |
| Po.isNodeList(this.el) || (co(this.el, "display: none;", !0), | |
| this.el.setAttribute(Yt, !0)); | |
| return this | |
| } | |
| , | |
| Po.prototype.show = function(e) { | |
| if (void 0 === e && (e = "block"), | |
| 1 <= this.el.length) | |
| for (var t = 0; t < this.el.length; t++) | |
| co(this.el[t], "display: " + e + ";", !0), | |
| this.el[t].removeAttribute(Yt); | |
| else | |
| Po.isNodeList(this.el) || (co(this.el, "display: " + e + ";", !0), | |
| this.el.removeAttribute(Yt)); | |
| return this | |
| } | |
| , | |
| Po.prototype.remove = function() { | |
| if (1 <= this.el.length) | |
| for (var e = 0; e < this.el.length; e++) | |
| this.el[e].parentNode.removeChild(this.el[e]); | |
| else | |
| this.el.parentNode.removeChild(this.el); | |
| return this | |
| } | |
| , | |
| Po.prototype.css = function(e) { | |
| if (e) | |
| if (1 <= this.el.length) { | |
| if (!e.includes(":")) | |
| return this.el[0].style[e]; | |
| for (var t = 0; t < this.el.length; t++) | |
| co(this.el[t], e) | |
| } else { | |
| if (!e.includes(":")) | |
| return this.el.style[e]; | |
| co(this.el, e) | |
| } | |
| return this | |
| } | |
| , | |
| Po.prototype.removeClass = function(e) { | |
| if (1 <= this.el.length) | |
| for (var t = 0; t < this.el.length; t++) | |
| this.el[t].classList ? this.el[t].classList.remove(e) : this.el[t].className = this.el[t].className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)","gi"), " "); | |
| else | |
| this.el.classList ? this.el.classList.remove(e) : this.el.className = this.el.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)","gi"), " "); | |
| return this | |
| } | |
| , | |
| Po.prototype.addClass = function(e) { | |
| if (1 <= this.el.length) | |
| for (var t = 0; t < this.el.length; t++) | |
| this.el[t].classList ? this.el[t].classList.add(e) : this.el[t].className += " " + e; | |
| else | |
| this.el.classList ? this.el.classList.add(e) : this.el.className += " " + e; | |
| return this | |
| } | |
| , | |
| Po.prototype.on = function(r, i, s) { | |
| var e = this; | |
| if ("string" != typeof i) | |
| if (this.el && "HTML" === this.el.nodeName && "load" === r || "resize" === r || "scroll" === r) | |
| switch (r) { | |
| case "load": | |
| window.onload = i; | |
| break; | |
| case "resize": | |
| window.onresize = i; | |
| break; | |
| case "scroll": | |
| window.onscroll = i | |
| } | |
| else if (this.el && 1 <= this.el.length) | |
| for (var t = 0; t < this.el.length; t++) | |
| this.el[t].addEventListener(r, i); | |
| else | |
| this.el && this.el instanceof Element && this.el.addEventListener(r, i); | |
| else if (this.el && "HTML" === this.el.nodeName && "load" === r || "resize" === r || "scroll" === r) | |
| switch (r) { | |
| case "load": | |
| window.onload = s; | |
| break; | |
| case "resize": | |
| window.onresize = s; | |
| break; | |
| case "scroll": | |
| window.onscroll = s | |
| } | |
| else { | |
| var a = function(o) { | |
| var n = o.target; | |
| e.el.eventExecuted = !0, | |
| Array.prototype.forEach.call(document.querySelectorAll(i), function(e, t) { | |
| Io["" + r + i] && delete Io["" + r + i], | |
| e.addEventListener(r, s), | |
| e === n && s && s.call(e, o) | |
| }), | |
| e.el && e.el[0] ? e.el[0].removeEventListener(r, a) : e.el && e.el instanceof Element && e.el.removeEventListener(r, a) | |
| }; | |
| if (this.el && 1 <= this.el.length) | |
| for (t = 0; t < this.el.length; t++) | |
| this.el[t].eventExecuted = !1, | |
| this.el[t].eventExecuted || this.el[t].addEventListener(r, a); | |
| else | |
| this.el && (this.el.eventExecuted = !1, | |
| !this.el.eventExecuted && this.el instanceof Element && (Io["" + r + i] || (Io["" + r + i] = !0, | |
| this.el.addEventListener(r, a)))) | |
| } | |
| return this | |
| } | |
| , | |
| Po.prototype.off = function(e, t) { | |
| if (1 <= this.el.length) | |
| for (var o = 0; o < this.el.length; o++) | |
| this.el[o].removeEventListener(e, t); | |
| else | |
| this.el.removeEventListener(e, t); | |
| return this | |
| } | |
| , | |
| Po.prototype.one = function(t, o) { | |
| var n = this; | |
| if (1 <= this.el.length) | |
| for (var e = 0; e < this.el.length; e++) | |
| this.el[e].addEventListener(t, function(e) { | |
| e.stopPropagation(), | |
| e.currentTarget.dataset.triggered || (o(), | |
| e.currentTarget.dataset.triggered = !0) | |
| }); | |
| else { | |
| var r = function(e) { | |
| e.stopPropagation(), | |
| o(), | |
| n.off(t, r) | |
| }; | |
| this.el.addEventListener(t, r) | |
| } | |
| return this | |
| } | |
| , | |
| Po.prototype.trigger = function(e) { | |
| var t = new CustomEvent(e,{ | |
| customEvent: "yes" | |
| }); | |
| return this.el.dispatchEvent(t), | |
| this | |
| } | |
| , | |
| Po.prototype.focus = function() { | |
| return 1 <= this.el.length ? this.el[0].focus() : this.el.focus(), | |
| this | |
| } | |
| , | |
| Po.prototype.attr = function(e, t) { | |
| return this.el && 1 <= this.el.length ? t ? ("class" === e ? this.addClass(t) : this.el[0].setAttribute(e, t), | |
| this) : this.el[0].getAttribute(e) : t && this.el ? ("class" === e ? this.addClass(t) : this.el.setAttribute(e, t), | |
| this) : this.el && this.el.getAttribute(e) | |
| } | |
| , | |
| Po.prototype.html = function(e) { | |
| if (null == e) | |
| return 1 <= this.el.length ? this.el[0].innerHTML : this.el.innerHTML; | |
| if (1 <= this.el.length) | |
| for (var t = 0; t < this.el.length; t++) | |
| this.el[t].innerHTML = e; | |
| else | |
| this.el.innerHTML = e; | |
| return this | |
| } | |
| , | |
| Po.prototype.append = function(o) { | |
| if ("string" != typeof o || o.includes("<") || o.includes(">")) | |
| if (Array.isArray(o)) { | |
| var n = this; | |
| Array.prototype.forEach.call(o, function(e, t) { | |
| document.querySelector(n.selector).appendChild(new Po(e,"ce").el) | |
| }) | |
| } else if ("string" == typeof o || Array.isArray(o)) | |
| if ("string" == typeof this.selector) | |
| document.querySelector(this.selector).appendChild(new Po(o,"ce").el); | |
| else if (this.useEl) { | |
| var r = document.createDocumentFragment() | |
| , i = !(!o.includes("<th") && !o.includes("<td")); | |
| if (i) { | |
| var e = o.split(" ")[0].split("<")[1]; | |
| r.appendChild(document.createElement(e)), | |
| r.firstChild.innerHTML = o | |
| } | |
| Array.prototype.forEach.call(this.el, function(e, t) { | |
| i ? e.appendChild(r.firstChild) : e.appendChild(new Po(o,"ce").el) | |
| }) | |
| } else | |
| this.selector.appendChild(new Po(o,"ce").el); | |
| else if ("string" == typeof this.selector) | |
| document.querySelector(this.selector).appendChild(o); | |
| else if (1 <= o.length) | |
| for (var t = 0; t < o.length; t++) | |
| this.selector.appendChild(o[t]); | |
| else | |
| this.selector.appendChild(o); | |
| else | |
| this.el.insertAdjacentText("beforeend", o); | |
| return this | |
| } | |
| , | |
| Po.prototype.text = function(o) { | |
| if (this.el) { | |
| if (1 <= this.el.length) { | |
| if (!o) | |
| return this.el[0].textContent; | |
| Array.prototype.forEach.call(this.el, function(e, t) { | |
| e.textContent = o | |
| }) | |
| } else { | |
| if (!o) | |
| return this.el.textContent; | |
| this.el.textContent = o | |
| } | |
| return this | |
| } | |
| } | |
| , | |
| Po.prototype.data = function(o, n) { | |
| if (this.el.length < 1) | |
| return this; | |
| if (!(1 <= this.el.length)) | |
| return r(this.el, n); | |
| function r(e, t) { | |
| if (!t) | |
| return JSON.parse(e.getAttribute("data-" + o)); | |
| "object" == typeof t ? e.setAttribute("data-" + o, JSON.stringify(t)) : e.setAttribute("data-" + o, t) | |
| } | |
| return Array.prototype.forEach.call(this.el, function(e, t) { | |
| r(e, n) | |
| }), | |
| this | |
| } | |
| , | |
| Po.prototype.height = function(e) { | |
| this.el.length && (this.el = this.el[0]); | |
| for (var t = parseInt(window.getComputedStyle(this.el, null).getPropertyValue("padding-top").split("px")[0]), o = parseInt(window.getComputedStyle(this.el, null).getPropertyValue("padding-bottom").split("px")[0]), n = parseInt(window.getComputedStyle(this.el, null).getPropertyValue("margin-top").split("px")[0]), r = parseInt(window.getComputedStyle(this.el, null).getPropertyValue("margin-bottom").split("px")[0]), i = parseInt(window.getComputedStyle(this.el, null).getPropertyValue("height").split("px")[0]), s = [t, o, n, r], a = 0, l = 0; l < s.length; l++) | |
| 0 < s[l] && (a += s[l]); | |
| if (!e) | |
| return this.selector === document ? i : this.el.clientHeight - a; | |
| var c = e.toString().split(parseInt(e))[1] ? e.toString().split(parseInt(e))[1] : "px" | |
| , d = "number" == typeof e ? e : parseInt(e.toString().split(c)[0]); | |
| return (c && "px" === c || "%" === c || "em" === c || "rem" === c) && (0 < d ? co(this.el, "height: " + (a + d + c) + ";", !0) : "auto" === e && co(this.el, "height: " + e + ";", !0)), | |
| this | |
| } | |
| , | |
| Po.prototype.each = function(e) { | |
| var t = !1; | |
| return void 0 === this.el.length && (this.el = [this.el], | |
| t = !0), | |
| Array.prototype.forEach.call(this.el, e), | |
| t && (this.el = this.el[0]), | |
| this | |
| } | |
| , | |
| Po.prototype.is = function(e) { | |
| return this.el.length ? (this.el[0].matches || this.el[0].matchesSelector || this.el[0].msMatchesSelector || this.el[0].mozMatchesSelector || this.el[0].webkitMatchesSelector || this.el[0].oMatchesSelector).call(this.el[0], e) : (this.el.matches || this.el.matchesSelector || this.el.msMatchesSelector || this.el.mozMatchesSelector || this.el.webkitMatchesSelector || this.el.oMatchesSelector).call(this.el, e) | |
| } | |
| , | |
| Po.prototype.filter = function(e) { | |
| return this.el = Array.prototype.filter.call(document.querySelectorAll(this.selector), e), | |
| this | |
| } | |
| , | |
| Po.prototype.animate = function(s, a) { | |
| var l, c = this; | |
| for (var e in this.el = document.querySelector(this.selector), | |
| s) | |
| l = e, | |
| function() { | |
| var e = parseInt(s[l]) | |
| , t = s[l].split(parseInt(s[l]))[1] ? s[l].split(parseInt(s[l]))[1] : "px" | |
| , o = "\n @keyframes slide-" + ("top" === l ? "up" : "down") + "-custom {\n 0% {\n " + ("top" === l ? "top" : "bottom") + ": " + ("top" === l ? c.el.getBoundingClientRect().top : window.innerHeight) + "px !important;\n }\n 100% {\n " + ("top" === l ? "top" : "bottom") + ": " + (e + t) + ";\n }\n }\n @-webkit-keyframes slide-" + ("top" === l ? "up" : "down") + "-custom {\n 0% {\n " + ("top" === l ? "top" : "bottom") + ": " + ("top" === l ? c.el.getBoundingClientRect().top : window.innerHeight) + "px !important;\n }\n 100% {\n " + ("top" === l ? "top" : "bottom") + ": " + (e + t) + ";\n }\n }\n @-moz-keyframes slide-" + ("top" === l ? "up" : "down") + "-custom {\n 0% {\n " + ("top" === l ? "top" : "bottom") + ": " + ("top" === l ? c.el.getBoundingClientRect().top : window.innerHeight) + "px !important;\n }\n 100% {\n " + ("top" === l ? "top" : "bottom") + ": " + (e + t) + ";\n }\n }\n " | |
| , n = document.head.querySelector("#onetrust-style"); | |
| if (n ? n.innerHTML += o : ((i = document.createElement("style")).id = "onetrust-legacy-style", | |
| i.type = "text/css", | |
| i.innerHTML = o, | |
| document.head.appendChild(i)), | |
| Po.browser().type = Po.browser().version <= 8) { | |
| var r = "top" === l ? "-webkit-animation: slide-up-custom " : "-webkit-animation: slide-down-custom " + a + "ms ease-out forwards;"; | |
| co(c.el, r) | |
| } else { | |
| var i = "\n animation-name: " + ("top" === l ? "slide-up-custom" : "slide-down-custom") + ";\n animation-duration: " + a + "ms;\n animation-fill-mode: forwards;\n animation-timing-function: ease-out;\n "; | |
| co(c.el, i, !0) | |
| } | |
| }(); | |
| return this | |
| } | |
| , | |
| Po.prototype.scrollTop = function() { | |
| return this.el.scrollTop | |
| } | |
| , | |
| Po); | |
| function Po(e, t) { | |
| switch (void 0 === t && (t = ""), | |
| this.selector = e, | |
| this.useEl = !1, | |
| t) { | |
| case "ce": | |
| var o = Po.browser().type.toLowerCase() | |
| , n = Po.browser().version; | |
| if (n < 10 && "safari" === o || "chrome" === o && n <= 44 || n <= 40 && "firefox" === o) { | |
| var r = document.implementation.createHTMLDocument(); | |
| r.body.innerHTML = e, | |
| this.el = r.body.children[0] | |
| } else { | |
| var i = document.createRange().createContextualFragment(e); | |
| this.el = i.firstChild | |
| } | |
| this.length = 1; | |
| break; | |
| case "": | |
| this.el = e === document || e === window ? document.documentElement : "string" != typeof e ? e : document.querySelectorAll(e), | |
| this.length = e === document || e === window || "string" != typeof e ? 1 : this.el.length; | |
| break; | |
| default: | |
| this.length = 0 | |
| } | |
| } | |
| function To(e, t) { | |
| return void 0 === t && (t = ""), | |
| new So(e,t) | |
| } | |
| var Ao, Io = {}, Lo = (_o.prototype.getDataLanguageCulture = function() { | |
| var e = vo.bannerScriptElement; | |
| return e && e.getAttribute(At) ? this.checkAndTansformLangCodeWithUnderdscore(e.getAttribute(At).toLowerCase()) : this.detectDocumentOrBrowserLanguage().toLowerCase() | |
| } | |
| , | |
| _o.prototype.checkAndTansformLangCodeWithUnderdscore = function(e) { | |
| return e.replace(/\_/, "-") | |
| } | |
| , | |
| _o.prototype.detectDocumentOrBrowserLanguage = function() { | |
| var e = ""; | |
| if (vo.langSwitcherPldr) { | |
| var t = ho.convertKeyValueLowerCase(vo.langSwitcherPldr) | |
| , o = this.getUserLanguage().toLowerCase(); | |
| if (!(e = t[o] || t[o + "-" + o] || (t.default === o ? t.default : null))) | |
| if (2 === o.length) | |
| for (var n = 0; n < Object.keys(t).length; n += 1) { | |
| var r = Object.keys(t)[n]; | |
| if (r.substr(0, 2) === o) { | |
| e = t[r]; | |
| break | |
| } | |
| } | |
| else | |
| 2 < o.length && (e = t[o.substr(0, 2)]); | |
| e = e || t.default | |
| } | |
| return e | |
| } | |
| , | |
| _o.prototype.getUserLanguage = function() { | |
| return vo.useDocumentLanguage ? this.checkAndTansformLangCodeWithUnderdscore(document.documentElement.lang) : navigator.languages && navigator.languages.length ? navigator.languages[0] : navigator.language || navigator.userLanguage | |
| } | |
| , | |
| _o.prototype.isValidLanguage = function(e, t) { | |
| var o = ho.convertKeyValueLowerCase(vo.langSwitcherPldr); | |
| return !(!o || !o[t] && !o[t + "-" + t] && o.default !== t) | |
| } | |
| , | |
| _o.prototype.getLangJsonUrl = function(e) { | |
| void 0 === e && (e = null); | |
| var t, o = vo.getRegionRule(); | |
| if (e) { | |
| if (e = e.toLowerCase(), | |
| !this.isValidLanguage(o, e)) | |
| return null | |
| } else | |
| e = this.getDataLanguageCulture(); | |
| return bo.lang = e, | |
| bo.consentLanguage = e.substr(0, 2), | |
| t = vo.canUseConditionalLogic ? vo.bannerDataParentURL + "/" + o.Id + "/" + vo.Condition.Id + "/" + e : vo.bannerDataParentURL + "/" + o.Id + "/" + e, | |
| vo.multiVariantTestingEnabled && (t = vo.bannerDataParentURL + "/" + o.Id + "/variants/" + vo.selectedVariant.Id + "/" + e), | |
| t | |
| } | |
| , | |
| _o.prototype.populateLangSwitcherPlhdr = function() { | |
| var e = vo.getRegionRule(); | |
| if (e) { | |
| var t = e.Variants; | |
| if (vo.multiVariantTestingEnabled && t) { | |
| var o = uo.getCookie(pt.SELECTED_VARIANT) | |
| , n = void 0; | |
| o && (n = t[ho.findIndex(t, function(e) { | |
| return e.Id === o | |
| })]), | |
| o && n || (n = t[Math.floor(Math.random() * t.length)]), | |
| vo.langSwitcherPldr = n.LanguageSwitcherPlaceholder, | |
| vo.selectedVariant = n | |
| } else | |
| vo.canUseConditionalLogic ? vo.langSwitcherPldr = vo.Condition.LanguageSwitcherPlaceholder : vo.langSwitcherPldr = e.LanguageSwitcherPlaceholder | |
| } | |
| } | |
| , | |
| _o); | |
| function _o() {} | |
| var Eo, Vo = (Bo.prototype.getLangJson = function(e) { | |
| if (void 0 === e && (e = null), | |
| vo.previewMode) { | |
| var t = JSON.parse(window.sessionStorage.getItem("otPreviewData")); | |
| return Promise.resolve(t.langJson) | |
| } | |
| var o = Ao.getLangJsonUrl(e); | |
| return o ? Eo.otFetch(o + ".json") : Promise.resolve(null) | |
| } | |
| , | |
| Bo.prototype.getPersistentCookieSvg = function(e) { | |
| var t = e || ko.cookiePersistentLogo; | |
| return t ? Eo.otFetch(t, !0) : Promise.resolve(null) | |
| } | |
| , | |
| Bo.prototype.fetchGvlObj = function() { | |
| return this.otFetch(lo.moduleInitializer.IabV2Data.globalVendorListUrl) | |
| } | |
| , | |
| Bo.prototype.fetchGoogleVendors = function() { | |
| var e = wo.updateCorrectIABUrl(lo.moduleInitializer.GoogleData.googleVendorListUrl); | |
| return wo.checkMobileOfflineRequest(wo.getBannerVersionUrl()) ? wo.otFetchOfflineFile(ho.getRelativeURL(e, !0)) : (vo.mobileOnlineURL.push(e), | |
| this.otFetch(e)) | |
| } | |
| , | |
| Bo.prototype.getStorageDisclosure = function(t) { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| return [2, this.otFetch(t, !1, !0)] | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.loadCMP = function() { | |
| var o = this; | |
| return new Promise(function(e) { | |
| var t = o.checkIfRequiresPollyfill() ? "otTCF-ie" : "otTCF"; | |
| wo.jsonp(wo.getBannerVersionUrl() + "/" + t + ".js", e, e) | |
| } | |
| ) | |
| } | |
| , | |
| Bo.prototype.loadGPP = function() { | |
| return new Promise(function(e) { | |
| wo.jsonp(wo.getBannerVersionUrl() + "/otGPP.js", e, e) | |
| } | |
| ) | |
| } | |
| , | |
| Bo.prototype.getCSBtnContent = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = ko.useRTL ? ne.RTL : ne.LTR, | |
| bo.csBtnAsset[t] ? [3, 2] : (o = wo.getBannerSDKAssestsUrl() + "/" + (ko.useRTL ? Lt : It), | |
| n = bo.csBtnAsset, | |
| r = t, | |
| [4, this.otFetch(o)]); | |
| case 1: | |
| n[r] = e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return [2, bo.csBtnAsset[t]] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getPcContent = function(s) { | |
| return void 0 === s && (s = !1), | |
| u(this, void 0, void 0, function() { | |
| var t, o, n, r, i; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = ko.useRTL ? ne.RTL : ne.LTR, | |
| bo.pcAsset[t] && !s ? [3, 2] : (o = wo.getBannerSDKAssestsUrl(), | |
| ko.PCTemplateUpgrade && (o += "/v2"), | |
| n = o + "/" + vo.pcName + (ko.useRTL ? "Rtl" : "") + ".json", | |
| r = bo.pcAsset, | |
| i = t, | |
| [4, this.otFetch(n)]); | |
| case 1: | |
| r[i] = e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return [2, bo.pcAsset[t]] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getBannerContent = function(l, c) { | |
| return void 0 === l && (l = !1), | |
| void 0 === c && (c = null), | |
| u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s, a; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| if (t = ko.useRTL ? ne.RTL : ne.LTR, | |
| o = c || Ao.getDataLanguageCulture(), | |
| bo.bAsset[t] && !l) | |
| return [3, 2]; | |
| if (n = vo.getRegionRule(), | |
| r = void 0, | |
| lo.fp.CookieV2SSR) { | |
| if (vo.previewMode) | |
| return i = JSON.parse(window.sessionStorage.getItem("otPreviewData")), | |
| [2, Promise.resolve(i.bLayout)]; | |
| r = vo.bannerDataParentURL + "/" + n.Id, | |
| vo.canUseConditionalLogic && (r += "/" + vo.Condition.Id), | |
| r += "/bLayout-" + o + ".json" | |
| } else | |
| r = wo.getBannerSDKAssestsUrl() + "/" + vo.bannerName + (ko.useRTL ? "Rtl" : "") + ".json"; | |
| return s = bo.bAsset, | |
| a = t, | |
| [4, this.otFetch(r)]; | |
| case 1: | |
| s[a] = e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return [2, bo.bAsset[t]] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getCommonStyles = function(i) { | |
| return void 0 === i && (i = !1), | |
| u(this, void 0, void 0, function() { | |
| var t, o, n, r; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = ko.useRTL ? ne.RTL : ne.LTR, | |
| bo.cStyles[t] && !i ? [3, 2] : (o = wo.getBannerSDKAssestsUrl() + "/otCommonStyles" + (ko.useRTL ? "Rtl" : "") + ".css", | |
| n = bo.cStyles, | |
| r = t, | |
| [4, this.otFetch(o, !0)]); | |
| case 1: | |
| n[r] = e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return [2, bo.cStyles[t]] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getSyncNtfyContent = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = ko.useRTL ? ne.RTL : ne.LTR, | |
| bo.syncNtfyContent[t] ? [3, 2] : (o = wo.getBannerSDKAssestsUrl() + "/otSyncNotification" + (ko.useRTL ? "Rtl" : "") + ".json", | |
| n = bo.syncNtfyContent, | |
| r = t, | |
| [4, this.otFetch(o)]); | |
| case 1: | |
| n[r] = e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return [2, bo.syncNtfyContent[t]] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getConsentProfile = function(e, t) { | |
| var o = this | |
| , n = { | |
| Identifier: e, | |
| TenantId: bo.tenantId, | |
| Authorization: t | |
| }; | |
| return new Promise(function(e) { | |
| o.getJSON(bo.consentApi, n, e, e) | |
| } | |
| ) | |
| } | |
| , | |
| Bo.prototype.checkIfRequiresPollyfill = function() { | |
| var e = window.navigator.userAgent; | |
| return 0 < e.indexOf("MSIE ") || 0 < e.indexOf("Trident/") || "undefined" == typeof Set | |
| } | |
| , | |
| Bo.prototype.otFetch = function(r, i, s) { | |
| return void 0 === i && (i = !1), | |
| void 0 === s && (s = !1), | |
| u(this, void 0, void 0, function() { | |
| var t, o, n = this; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return wo.checkMobileOfflineRequest(r) ? [4, wo.otFetchOfflineFile(r)] : [3, 2]; | |
| case 1: | |
| return [2, e.sent()]; | |
| case 2: | |
| return e.trys.push([2, 9, , 10]), | |
| vo.mobileOnlineURL.push(r), | |
| "undefined" != typeof fetch ? [3, 3] : [2, new Promise(function(e) { | |
| n.getJSON(r, null, e, e, i) | |
| } | |
| )]; | |
| case 3: | |
| return [4, fetch(r)]; | |
| case 4: | |
| return t = e.sent(), | |
| s && t.headers.get("Access-Control-Allow-Credentials") ? [2, Promise.resolve()] : i ? [4, t.text()] : [3, 6]; | |
| case 5: | |
| return [2, e.sent()]; | |
| case 6: | |
| return [4, t.json()]; | |
| case 7: | |
| return [2, e.sent()]; | |
| case 8: | |
| return [3, 10]; | |
| case 9: | |
| return o = e.sent(), | |
| console.log("Error in fetch URL : " + r + " Exception :" + o), | |
| [3, 10]; | |
| case 10: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Bo.prototype.getJSON = function(e, t, o, n, r) { | |
| void 0 === t && (t = null), | |
| void 0 === r && (r = !1); | |
| var i = new XMLHttpRequest; | |
| if (i.open("GET", e, !0), | |
| i.withCredentials = !1, | |
| t) | |
| for (var s in t) | |
| i.setRequestHeader(s, t[s]); | |
| i.onload = function() { | |
| if (200 <= this.status && this.status < 400 && this.responseText) { | |
| var e = void 0; | |
| e = r ? this.responseText : JSON.parse(this.responseText), | |
| o(e) | |
| } else | |
| n({ | |
| message: "Error Loading Data", | |
| statusCode: this.status | |
| }) | |
| } | |
| , | |
| i.onerror = function(e) { | |
| n(e) | |
| } | |
| , | |
| i.send() | |
| } | |
| , | |
| Bo); | |
| function Bo() {} | |
| var wo, Oo = (xo.prototype.addLogoUrls = function() { | |
| wo.checkMobileOfflineRequest(wo.getBannerVersionUrl()) || (vo.mobileOnlineURL.push(wo.updateCorrectUrl(ko.optanonLogo)), | |
| vo.mobileOnlineURL.push(wo.updateCorrectUrl(ko.oneTrustFtrLogo))) | |
| } | |
| , | |
| xo.prototype.getCookieLabel = function(e, t, o) { | |
| if (void 0 === o && (o = !0), | |
| !e) | |
| return ""; | |
| var n = e.Name; | |
| return t && (n = '\n <a class="cookie-label"\n href="' + (o ? "http://cookiepedia.co.uk/cookies/" : "http://cookiepedia.co.uk/host/") + e.Name + '"\n rel="noopener"\n target="_blank"\n >\n ' + e.Name + ' <span class="ot-scrn-rdr">' + ko.NewWinTxt + "</span>\n </a>\n "), | |
| n | |
| } | |
| , | |
| xo.prototype.getBannerSDKAssestsUrl = function() { | |
| return this.getBannerVersionUrl() + "/assets" | |
| } | |
| , | |
| xo.prototype.getBannerVersionUrl = function() { | |
| var e = vo.bannerScriptElement.getAttribute("src"); | |
| return "" + (-1 !== e.indexOf("/consent/") ? e.split("consent/")[0] + "scripttemplates/" : e.split("otSDKStub")[0]) + lo.moduleInitializer.Version | |
| } | |
| , | |
| xo.prototype.checkMobileOfflineRequest = function(e) { | |
| return lo.moduleInitializer.MobileSDK && new RegExp("^file://","i").test(e) | |
| } | |
| , | |
| xo.prototype.updateCorrectIABUrl = function(e) { | |
| var t = lo.moduleInitializer.ScriptType; | |
| if (t === St || t === Tt) { | |
| var o = ho.getURL(e) | |
| , n = vo.bannerScriptElement | |
| , r = n && n.getAttribute("src") ? ho.getURL(n.getAttribute("src")) : null; | |
| r && o && r.hostname !== o.hostname && (e = (e = (r = "" + vo.bannerDataParentURL) + o.pathname.split("/").pop().replace(/(^\/?)/, "/")).replace(o.hostname, r.hostname)) | |
| } | |
| return e | |
| } | |
| , | |
| xo.prototype.updateCorrectUrl = function(e, t) { | |
| if (void 0 === t && (t = !1), | |
| vo.previewMode && new RegExp("^data:image/").test(e)) | |
| return e; | |
| var o = ho.getURL(e) | |
| , n = vo.bannerScriptElement | |
| , r = n && n.getAttribute("src") ? ho.getURL(n.getAttribute("src")) : null; | |
| if (r && o && r.hostname !== o.hostname) { | |
| var i = lo.moduleInitializer.ScriptType; | |
| if (i === St || i === Tt) { | |
| if (t) | |
| return e; | |
| e = (r = vo.bannerDataParentURL + "/" + vo.getRegionRule().Id) + o.pathname.replace(/(^\/?)/, "/") | |
| } else | |
| e = null == e ? void 0 : e.replace(o.hostname, r.hostname) | |
| } | |
| return e | |
| } | |
| , | |
| xo.prototype.isBundleOrStackActive = function(n, r) { | |
| void 0 === r && (r = null); | |
| var i = bo.oneTrustIABConsent | |
| , s = !0; | |
| r = r || bo.groupsConsent; | |
| for (var a = 0, e = function() { | |
| var t = n.SubGroups[a]; | |
| if (t.Type === Qt) | |
| (-1 < (e = ho.findIndex(r, function(e) { | |
| return e.split(":")[0] === t.CustomGroupId | |
| })) && "0" === r[e].split(":")[1] || !r.length) && (s = !1); | |
| else { | |
| var e, o = t.Type === eo ? i.specialFeatures : i.purpose; | |
| (-1 < (e = ho.findIndex(o, function(e) { | |
| return e.split(":")[0] === t.IabGrpId | |
| })) && "false" === o[e].split(":")[1] || !o.length) && (s = !1) | |
| } | |
| a++ | |
| }; e(), | |
| s && a < n.SubGroups.length; ) | |
| ; | |
| return s | |
| } | |
| , | |
| xo.prototype.otFetchOfflineFile = function(r) { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return r = r.replace(".json", ".js"), | |
| t = r.split("/"), | |
| o = t[t.length - 1], | |
| n = o.split(".js")[0], | |
| [4, new Promise(function(e) { | |
| function t() { | |
| e(window[n]) | |
| } | |
| wo.jsonp(r, t, t) | |
| } | |
| )]; | |
| case 1: | |
| return [2, e.sent()] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| xo.prototype.jsonp = function(e, t, o) { | |
| wo.checkMobileOfflineRequest(e) || vo.mobileOnlineURL.push(e); | |
| var n = document.createElement("script") | |
| , r = document.getElementsByTagName("head")[0]; | |
| function i() { | |
| t() | |
| } | |
| n.onreadystatechange = function() { | |
| "loaded" !== this.readyState && "complete" !== this.readyState || i() | |
| } | |
| , | |
| n.onload = i, | |
| n.onerror = function() { | |
| o() | |
| } | |
| , | |
| n.type = "text/javascript", | |
| n.async = !0, | |
| n.src = e, | |
| bo.crossOrigin && n.setAttribute("crossorigin", bo.crossOrigin), | |
| r.appendChild(n) | |
| } | |
| , | |
| xo.prototype.isCookiePolicyPage = function(e) { | |
| var t = !1 | |
| , o = ho.removeURLPrefixes(window.location.href) | |
| , n = To("<div></div>", "ce").el; | |
| To(n).html(e); | |
| for (var r = n.querySelectorAll("a"), i = 0; i < r.length; i++) | |
| if (ho.removeURLPrefixes(r[i].href) === o) { | |
| t = !0; | |
| break | |
| } | |
| return t | |
| } | |
| , | |
| xo.prototype.isBannerVisible = function() { | |
| var e = !1 | |
| , t = document.getElementById("onetrust-banner-sdk"); | |
| return t && t.getAttribute("style") && (e = -1 !== t.getAttribute("style").indexOf("display: none") || -1 !== t.getAttribute("style").indexOf("display:none")), | |
| e | |
| } | |
| , | |
| xo.prototype.hideBanner = function() { | |
| var e = this; | |
| bo.bnrAnimationInProg ? setTimeout(function() { | |
| return e.hideBanner() | |
| }, 100) : To("#onetrust-banner-sdk").fadeOut(400) | |
| } | |
| , | |
| xo.prototype.resetFocusToBody = function() { | |
| document.activeElement && document.activeElement.blur() | |
| } | |
| , | |
| xo.prototype.getDuration = function(e) { | |
| var t = e.Length | |
| , o = e.DurationType | |
| , n = ""; | |
| if (!t || 0 === parseInt(t)) | |
| return ko.LfSpanSecs; | |
| var r = parseInt(t); | |
| if (o) { | |
| var i = 1 < (r = this.round_to_precision(r / o, .5)) ? Mt[o] + "s" : Mt[o]; | |
| ko.LifespanDurationText && 1 === o && (i = "LifespanDurationText"), | |
| n = r + " " + ko[i] | |
| } else | |
| n = this.getDurationText(r); | |
| return n | |
| } | |
| , | |
| xo.prototype.isDateCurrent = function(e) { | |
| var t = e.split("/") | |
| , o = parseInt(t[1]) | |
| , n = parseInt(t[0]) | |
| , r = parseInt(t[2]) | |
| , i = new Date | |
| , s = i.getDate() | |
| , a = i.getFullYear() | |
| , l = i.getMonth() + 1; | |
| return a < r || r === a && l < n || r === a && n === l && s <= o | |
| } | |
| , | |
| xo.prototype.insertFooterLogo = function(e) { | |
| var t = To(e).el; | |
| if (t.length && ko.oneTrustFtrLogo) { | |
| var o = wo.updateCorrectUrl(ko.oneTrustFtrLogo); | |
| wo.checkMobileOfflineRequest(wo.getBannerVersionUrl()) && (o = ho.getRelativeURL(o, !0, !0)); | |
| for (var n = 0; n < t.length; n++) { | |
| var r = t[n].querySelector("img") | |
| , i = "Powered by OneTrust " + ko.NewWinTxt; | |
| To(t[n]).attr("href", ko.pCFooterLogoUrl), | |
| r.setAttribute("src", o), | |
| r.setAttribute("title", i), | |
| To(t[n]).attr("aria-label", i) | |
| } | |
| } | |
| } | |
| , | |
| xo.prototype.getUTCFormattedDate = function(e) { | |
| var t = new Date(e); | |
| return t.getUTCFullYear() + "-" + (t.getUTCMonth() + 1).toString().padStart(2, "0") + "-" + t.getUTCDate().toString().toString().padStart(2, "0") + " " + t.getUTCHours() + ":" + t.getUTCMinutes().toString().toString().padStart(2, "0") + ":" + t.getUTCSeconds().toString().toString().padStart(2, "0") | |
| } | |
| , | |
| xo.prototype.getDurationText = function(e) { | |
| return 365 <= e ? (e /= 365, | |
| (e = this.round_to_precision(e, .5)) + " " + (1 < e ? ko.LfSpnYrs : ko.LfSpnYr)) : ko.LifespanDurationText ? e + " " + ko.LifespanDurationText : e + " " + (1 < e ? ko.PCenterVendorListLifespanDays : ko.PCenterVendorListLifespanDay) | |
| } | |
| , | |
| xo.prototype.round_to_precision = function(e, t) { | |
| var o = +e + (void 0 === t ? .5 : t / 2); | |
| return o - o % (void 0 === t ? 1 : +t) | |
| } | |
| , | |
| xo.prototype.isOptOutEnabled = function() { | |
| return ko.PCTemplateUpgrade ? bo.genVenOptOutEnabled : ko.allowHostOptOut | |
| } | |
| , | |
| xo.prototype.findUserType = function(e) { | |
| bo.isKeyboardUser = !(!e || 0 !== e.detail) | |
| } | |
| , | |
| xo.prototype.getCSSPropsFromString = function(e) { | |
| if (e) { | |
| var t = e.length | |
| , n = {}; | |
| return e.endsWith(";") && (e = e.substring(0, t - 1)), | |
| e.trim().split(";").forEach(function(e) { | |
| var t = e.trim().toString().split(":") | |
| , o = JSON.parse('{ "' + t[0].trim() + '" : "' + t[1].trim() + '" }'); | |
| n = Object.assign(n, o) | |
| }), | |
| n | |
| } | |
| return {} | |
| } | |
| , | |
| xo.prototype.setCloseIcon = function(e) { | |
| var t = wo.updateCorrectUrl(ko.OTCloseBtnLogo) | |
| , o = To(e); | |
| o.length && co(o.el, 'background-image: url("' + t + '")', !0) | |
| } | |
| , | |
| xo.prototype.createOptOutSignalElement = function(e, t) { | |
| var o = e(t ? "#ot-pc-content" : "#onetrust-policy") | |
| , n = document.createElement("div"); | |
| n.classList.add("ot-optout-signal"); | |
| var r = document.createElement("div"); | |
| r.classList.add("ot-optout-icon"); | |
| var i = document.createElement("span"); | |
| return i.innerText = t ? ko.PCOptOutSignalText : ko.BOptOutSignalText, | |
| n.append(r), | |
| n.append(i), | |
| null != o && o.prepend(n), | |
| this.applyGuardLogo(), | |
| n | |
| } | |
| , | |
| xo.prototype.applyGuardLogo = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return (t = ko.cookiePersistentLogo).includes("ot_guard_logo.svg") || (o = ko.OTCloseBtnLogo, | |
| n = o.indexOf("static/"), | |
| t = o.replace(o.slice(n + 7), "ot_guard_logo.svg")), | |
| [4, Eo.getPersistentCookieSvg(t)]; | |
| case 1: | |
| return r = e.sent(), | |
| To(".ot-optout-icon").html(r), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| xo); | |
| function xo() {} | |
| var Go, No = { | |
| P_Content: "#ot-pc-content", | |
| P_Logo: ".ot-pc-logo", | |
| P_Title: "#ot-pc-title", | |
| P_Policy_Txt: "#ot-pc-desc", | |
| P_Vendor_Title_Elm: "#ot-lst-title", | |
| P_Vendor_Title: "#ot-lst-title h3", | |
| P_Manage_Cookies_Txt: "#ot-category-title", | |
| P_Label_Txt: ".ot-label-txt", | |
| P_Category_Header: ".ot-cat-header", | |
| P_Category_Grp: ".ot-cat-grp", | |
| P_Category_Item: ".ot-cat-item", | |
| P_Vendor_List: "#ot-pc-lst", | |
| P_Vendor_Content: "#ot-lst-cnt", | |
| P_Vendor_Container: "#ot-ven-lst", | |
| P_Ven_Bx: "ot-ven-box", | |
| P_Ven_Name: ".ot-ven-name", | |
| P_Ven_Link: ".ot-ven-link", | |
| P_Ven_Ctgl: "ot-ven-ctgl", | |
| P_Ven_Ltgl: "ot-ven-litgl", | |
| P_Ven_Ltgl_Only: "ot-ven-litgl-only", | |
| P_Ven_Opts: ".ot-ven-opts", | |
| P_Triangle: "#ot-anchor", | |
| P_Fltr_Modal: "#ot-fltr-modal", | |
| P_Fltr_Options: ".ot-fltr-opts", | |
| P_Fltr_Option: ".ot-fltr-opt", | |
| P_Select_Cntr: "#ot-sel-blk", | |
| P_Host_Cntr: "#ot-host-lst", | |
| P_Host_Hdr: ".ot-host-hdr", | |
| P_Host_Desc: ".ot-host-desc", | |
| P_Li_Hdr: ".ot-pli-hdr", | |
| P_Li_Title: ".ot-li-title", | |
| P_Sel_All_Vendor_Consent_Handler: "#select-all-vendor-leg-handler", | |
| P_Sel_All_Vendor_Leg_Handler: "#select-all-vendor-groups-handler", | |
| P_Sel_All_Host_Handler: "#select-all-hosts-groups-handler", | |
| P_Host_Title: ".ot-host-name", | |
| P_Leg_Select_All: ".ot-sel-all-hdr", | |
| P_Leg_Header: ".ot-li-hdr", | |
| P_Acc_Header: ".ot-acc-hdr", | |
| P_Cnsnt_Header: ".ot-consent-hdr", | |
| P_Tgl_Cntr: ".ot-tgl-cntr", | |
| P_CBx_Cntr: ".ot-chkbox", | |
| P_Sel_All_Host_El: "ot-selall-hostcntr", | |
| P_Sel_All_Vendor_Consent_El: "ot-selall-vencntr", | |
| P_Sel_All_Vendor_Leg_El: "ot-selall-licntr", | |
| P_c_Name: "ot-c-name", | |
| P_c_Host: "ot-c-host", | |
| P_c_Duration: "ot-c-duration", | |
| P_c_Type: "ot-c-type", | |
| P_c_Category: "ot-c-category", | |
| P_c_Desc: "ot-c-description", | |
| P_Host_View_Cookies: ".ot-host-expand", | |
| P_Host_Opt: ".ot-host-opt", | |
| P_Host_Info: ".ot-host-info", | |
| P_Arrw_Cntr: ".ot-arw-cntr", | |
| P_Acc_Txt: ".ot-acc-txt", | |
| P_Vendor_CheckBx: "ot-ven-chkbox", | |
| P_Vendor_LegCheckBx: "ot-ven-leg-chkbox", | |
| P_Host_UI: "ot-hosts-ui", | |
| P_Host_Cnt: "ot-host-cnt", | |
| P_Host_Bx: "ot-host-box", | |
| P_Ven_Dets: ".ot-ven-dets", | |
| P_Ven_Disc: ".ot-ven-disc", | |
| P_Gven_List: "#ot-gn-venlst", | |
| P_Close_Btn: ".ot-close-icon", | |
| P_Ven_Lst_Cntr: ".ot-vlst-cntr", | |
| P_Host_Lst_cntr: ".ot-hlst-cntr", | |
| P_Sub_Grp_Cntr: ".ot-subgrp-cntr", | |
| P_Subgrp_Desc: ".ot-subgrp-desc", | |
| P_Subgp_ul: ".ot-subgrps", | |
| P_Subgrp_li: ".ot-subgrp", | |
| P_Subgrp_Tgl_Cntr: ".ot-subgrp-tgl", | |
| P_Grp_Container: ".ot-grps-cntr", | |
| P_Privacy_Txt: "#ot-pvcy-txt", | |
| P_Privacy_Hdr: "#ot-pvcy-hdr", | |
| P_Active_Menu: "ot-active-menu", | |
| P_Desc_Container: ".ot-desc-cntr", | |
| P_Tab_Grp_Hdr: "ot-grp-hdr1", | |
| P_Search_Cntr: "#ot-search-cntr", | |
| P_Clr_Fltr_Txt: "#clear-filters-handler", | |
| P_Acc_Grp_Desc: ".ot-acc-grpdesc", | |
| P_Acc_Container: ".ot-acc-grpcntr", | |
| P_Line_Through: "line-through", | |
| P_Vendor_Search_Input: "#vendor-search-handler" | |
| }, Do = { | |
| P_Grp_Container: ".groups-container", | |
| P_Content: "#ot-content", | |
| P_Category_Header: ".category-header", | |
| P_Desc_Container: ".description-container", | |
| P_Label_Txt: ".label-text", | |
| P_Acc_Grp_Desc: ".ot-accordion-group-pc-container", | |
| P_Leg_Int_Hdr: ".leg-int-header", | |
| P_Not_Always_Active: "p:not(.ot-always-active)", | |
| P_Category_Grp: ".category-group", | |
| P_Category_Item: ".category-item", | |
| P_Sub_Grp_Cntr: ".cookie-subgroups-container", | |
| P_Acc_Container: ".ot-accordion-pc-container", | |
| P_Close_Btn: ".pc-close-button", | |
| P_Logo: ".pc-logo", | |
| P_Title: "#pc-title", | |
| P_Privacy_Txt: "#privacy-text", | |
| P_Privacy_Hdr: "#pc-privacy-header", | |
| P_Policy_Txt: "#pc-policy-text", | |
| P_Manage_Cookies_Txt: "#manage-cookies-text", | |
| P_Vendor_Title: "#vendors-list-title", | |
| P_Vendor_Title_Elm: "#vendors-list-title", | |
| P_Vendor_List: "#vendors-list", | |
| P_Vendor_Content: "#vendor-list-content", | |
| P_Vendor_Container: "#vendors-list-container", | |
| P_Ven_Bx: "vendor-box", | |
| P_Ven_Name: ".vendor-title", | |
| P_Ven_Link: ".vendor-privacy-notice", | |
| P_Ven_Ctgl: "ot-vendor-consent-tgl", | |
| P_Ven_Ltgl: "ot-leg-int-tgl", | |
| P_Ven_Ltgl_Only: "ot-leg-int-tgl-only", | |
| P_Ven_Opts: ".vendor-options", | |
| P_Triangle: "#ot-triangle", | |
| P_Fltr_Modal: "#ot-filter-modal", | |
| P_Fltr_Options: ".ot-group-options", | |
| P_Fltr_Option: ".ot-group-option", | |
| P_Select_Cntr: "#select-all-container", | |
| P_Host_Cntr: "#hosts-list-container", | |
| P_Host_Hdr: ".host-info", | |
| P_Host_Desc: ".host-description", | |
| P_Host_Opt: ".host-option-group", | |
| P_Host_Info: ".vendor-host", | |
| P_Ven_Dets: ".vendor-purpose-groups", | |
| P_Ven_Disc: ".ot-ven-disc", | |
| P_Gven_List: "#ot-gn-venlst", | |
| P_Arrw_Cntr: ".ot-arrow-container", | |
| P_Li_Hdr: ".leg-int-header", | |
| P_Li_Title: ".leg-int-title", | |
| P_Acc_Txt: ".accordion-text", | |
| P_Tgl_Cntr: ".ot-toggle-group", | |
| P_CBx_Cntr: ".ot-chkbox-container", | |
| P_Host_Title: ".host-title", | |
| P_Leg_Select_All: ".leg-int-sel-all-hdr", | |
| P_Leg_Header: ".leg-int-hdr", | |
| P_Cnsnt_Header: ".consent-hdr", | |
| P_Acc_Header: ".accordion-header", | |
| P_Sel_All_Vendor_Consent_Handler: "#select-all-vendor-leg-handler", | |
| P_Sel_All_Vendor_Leg_Handler: "#select-all-vendor-groups-handler", | |
| P_Sel_All_Host_Handler: "#select-all-hosts-groups-handler", | |
| P_Sel_All_Host_El: "select-all-hosts-input-container", | |
| P_Sel_All_Vendor_Consent_El: "select-all-vendors-input-container", | |
| P_Sel_All_Vendor_Leg_El: "select-all-vendors-leg-input-container", | |
| P_c_Name: "cookie-name-container", | |
| P_c_Host: "cookie-host-container", | |
| P_c_Duration: "cookie-duration-container", | |
| P_c_Type: "cookie-type-container", | |
| P_c_Category: "cookie-category-container", | |
| P_c_Desc: "cookie-description-container", | |
| P_Host_View_Cookies: ".host-view-cookies", | |
| P_Vendor_CheckBx: "vendor-chkbox", | |
| P_Vendor_LegCheckBx: "vendor-leg-chkbox", | |
| P_Host_UI: "hosts-list", | |
| P_Host_Cnt: "host-list-content", | |
| P_Host_Bx: "host-box", | |
| P_Ven_Lst_Cntr: ".category-vendors-list-container", | |
| P_Host_Lst_cntr: ".category-host-list-container", | |
| P_Subgrp_Desc: ".cookie-subgroups-description-legal", | |
| P_Subgp_ul: ".cookie-subgroups", | |
| P_Subgrp_li: ".cookie-subgroup", | |
| P_Subgrp_Tgl_Cntr: ".cookie-subgroup-toggle", | |
| P_Active_Menu: "active-group", | |
| P_Tab_Grp_Hdr: "group-toggle", | |
| P_Search_Cntr: "#search-container", | |
| P_Clr_Fltr_Txt: "#clear-filters-handler p", | |
| P_Vendor_Search_Input: "#vendor-search-handler" | |
| }; | |
| function Ho() {} | |
| var Fo, Ro = new (Ho.prototype.initializeBannerVariables = function(e) { | |
| var t, o = e.DomainData; | |
| vo.iabType = o.IabType, | |
| t = o.PCTemplateUpgrade, | |
| Go = t ? No : Do, | |
| vo.init(e), | |
| bo.showGeneralVendors = ko.GeneralVendorsEnabled && ko.PCTemplateUpgrade, | |
| bo.showVendorService = lo.fp.CookieV2VendorServiceScript && ko.VendorServiceConfig.PCVSEnable && "IAB2" !== ko.IabType && ko.PCTemplateUpgrade, | |
| bo.vsIsActiveAndOptOut = bo.showVendorService && ko.VendorServiceConfig.PCVSOptOut, | |
| bo.showTrackingTech = lo.fp.CookieV2TrackingTechPrefCenter && ko.AdditionalTechnologiesConfig.PCShowTrackingTech, | |
| bo.genVenOptOutEnabled = bo.showGeneralVendors && ko.GenVenOptOut, | |
| wo.addLogoUrls(), | |
| this.setGeolocationInCookies(), | |
| this.setOrUpdate3rdPartyIABConsentFlag() | |
| } | |
| , | |
| Ho.prototype.initializeVendorInOverriddenVendors = function(e, t) { | |
| ko.OverriddenVendors[e] = { | |
| disabledCP: [], | |
| disabledLIP: [], | |
| active: t, | |
| legInt: !1, | |
| consent: !1 | |
| } | |
| } | |
| , | |
| Ho.prototype.applyGlobalRestrictionsonNewVendor = function(e, t, o, n) { | |
| var r = ko.GlobalRestrictions | |
| , i = ko.OverriddenVendors; | |
| switch (i[t] || this.initializeVendorInOverriddenVendors(t, !0), | |
| i[t].disabledCP || (i[t].disabledCP = []), | |
| i[t].disabledLIP || (i[t].disabledLIP = []), | |
| r[o]) { | |
| case j.Disabled: | |
| n ? i[t].disabledCP.push(o) : i[t].disabledLIP.push(o), | |
| ko.Publisher.restrictions[o][t] = j.Disabled; | |
| break; | |
| case j.Consent: | |
| n ? (i[t].consent = !0, | |
| ko.Publisher.restrictions[o][t] = j.Consent) : (i[t].disabledLIP.push(o), | |
| this.checkFlexiblePurpose(e, t, o, !1)); | |
| break; | |
| case j.LegInt: | |
| n ? (i[t].disabledCP.push(o), | |
| this.checkFlexiblePurpose(e, t, o, !0)) : (i[t].legInt = !0, | |
| ko.Publisher.restrictions[o][t] = j.LegInt); | |
| break; | |
| case void 0: | |
| n ? i[t].consent = !0 : i[t].legInt = !0 | |
| } | |
| } | |
| , | |
| Ho.prototype.checkFlexiblePurpose = function(e, t, o, n) { | |
| e.flexiblePurposes.includes(o) ? (n ? ko.OverriddenVendors[t].legInt = !0 : ko.OverriddenVendors[t].consent = !0, | |
| ko.Publisher.restrictions[o][t] = n ? j.LegInt : j.Consent) : ko.Publisher.restrictions[o][t] = j.Disabled | |
| } | |
| , | |
| Ho.prototype.removeInActiveVendorsForTcf = function(i) { | |
| var s = this | |
| , a = bo.iabData.vendorListVersion | |
| , e = ko.Publisher | |
| , l = ko.GlobalRestrictionEnabled | |
| , c = !(0 === Object.keys(e).length || e && 0 === Object.keys(e.restrictions).length); | |
| Object.keys(i.vendors).forEach(function(t) { | |
| var o = i.vendors[t]; | |
| o.iab2GVLVersion > a && (ko.NewVendorsInactiveEnabled ? s.initializeVendorInOverriddenVendors(t, !1) : l && (o.purposes.forEach(function(e) { | |
| s.applyGlobalRestrictionsonNewVendor(o, t, e, !0) | |
| }), | |
| o.legIntPurposes.forEach(function(e) { | |
| s.applyGlobalRestrictionsonNewVendor(o, t, e, !1) | |
| }))); | |
| var e = !1; | |
| ko.IsIabThirdPartyCookieEnabled || (vo.legIntSettings.PAllowLI ? ko.OverriddenVendors[t] && !ko.OverriddenVendors[t].active && (e = !0) : -1 < ko.Vendors.indexOf(Number(t)) && (e = !0)); | |
| var n = !o.purposes.length && !o.flexiblePurposes.length; | |
| ko.OverriddenVendors[t] && !ko.OverriddenVendors[t].consent && (n = !0); | |
| var r = !0; | |
| vo.legIntSettings.PAllowLI && (!o.legIntPurposes.length || ko.OverriddenVendors[t] && !ko.OverriddenVendors[t].legInt || (r = !1)), | |
| !n || !r || o.specialPurposes.length || o.features.length || o.specialFeatures.length || (e = !0), | |
| !l && c && o.iab2GVLVersion > a && (e = !0), | |
| e && delete i.vendors[t] | |
| }) | |
| } | |
| , | |
| Ho.prototype.setPublisherRestrictions = function() { | |
| var e = ko.Publisher; | |
| if (e && e.restrictions) { | |
| var s = this.iabStringSDK() | |
| , t = e.restrictions | |
| , a = bo.iabData | |
| , l = bo.oneTrustIABConsent.vendorList.vendors; | |
| Object.keys(t).forEach(function(n) { | |
| var r, i = t[n], e = vo.iabGroups.purposes[n]; | |
| e && (r = { | |
| description: e.description, | |
| purposeId: e.id, | |
| purposeName: e.name | |
| }), | |
| Object.keys(i).forEach(function(e) { | |
| if (bo.vendorsSetting[e]) { | |
| var t = bo.vendorsSetting[e].arrIndex; | |
| 1 === i[e] && -1 === l[e].purposes.indexOf(Number(n)) ? a.vendors[t].purposes.push(r) : 2 === i[e] && -1 === l[e].legIntPurposes.indexOf(Number(n)) && a.vendors[t].legIntPurposes.push(r); | |
| var o = s.purposeRestriction(Number(n), i[e]); | |
| bo.tcModel.publisherRestrictions.add(Number(e), o) | |
| } | |
| }) | |
| }) | |
| } | |
| } | |
| , | |
| Ho.prototype.populateVendorListTCF = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s, a, l, c; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = this.iabStringSDK(), | |
| o = bo.iabData, | |
| n = wo.updateCorrectIABUrl(o.globalVendorListUrl), | |
| r = !this.isIABCrossConsentEnabled(), | |
| wo.checkMobileOfflineRequest(wo.getBannerVersionUrl()) ? [3, 1] : (vo.mobileOnlineURL.push(n), | |
| i = t.gvl(n, bo.gvlObj), | |
| [3, 3]); | |
| case 1: | |
| return a = (s = t).gvl, | |
| l = [null], | |
| [4, wo.otFetchOfflineFile(ho.getRelativeURL(n, !0))]; | |
| case 2: | |
| i = a.apply(s, l.concat([e.sent()])), | |
| e.label = 3; | |
| case 3: | |
| return this.removeInActiveVendorsForTcf(i), | |
| bo.oneTrustIABConsent.vendorList = i, | |
| this.assignIABDataWithGlobalVendorList(i), | |
| c = bo, | |
| [4, t.tcModel(i)]; | |
| case 4: | |
| c.tcModel = e.sent(), | |
| r && this.setPublisherRestrictions(), | |
| bo.tcModel.cmpId = parseInt(o.cmpId), | |
| bo.tcModel.cmpVersion = parseInt(o.cmpVersion); | |
| try { | |
| bo.tcModel.consentLanguage = bo.consentLanguage | |
| } catch (e) { | |
| bo.tcModel.consentLanguage = "EN" | |
| } | |
| return bo.tcModel.consentScreen = parseInt(o.consentScreen), | |
| bo.tcModel.isServiceSpecific = r, | |
| bo.tcModel.purposeOneTreatment = vo.purposeOneTreatment, | |
| ko.PublisherCC ? bo.tcModel.publisherCountryCode = ko.PublisherCC : bo.userLocation.country && (bo.tcModel.publisherCountryCode = bo.userLocation.country), | |
| bo.cmpApi = t.cmpApi(bo.tcModel.cmpId, bo.tcModel.cmpVersion, r, ko.UseGoogleVendors ? { | |
| getTCData: this.addtlConsentString, | |
| getInAppTCData: this.addtlConsentString | |
| } : void 0), | |
| null !== this.alertBoxCloseDate() && !this.needReconsent() || this.resetTCModel(), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Ho.prototype.resetTCModel = function() { | |
| var e = this.iabStringSDK() | |
| , t = bo.tcModel.clone(); | |
| if (t.unsetAll(), | |
| vo.legIntSettings.PAllowLI) { | |
| var o = vo.consentableIabGrps.filter(function(e) { | |
| return e.HasLegIntOptOut && e.Type === Zt | |
| }).map(function(e) { | |
| return parseInt(vo.iabGrpIdMap[e.CustomGroupId]) | |
| }) | |
| , n = Object.keys(bo.vendorsSetting).filter(function(e) { | |
| return bo.vendorsSetting[e].legInt | |
| }).map(function(e) { | |
| return parseInt(e) | |
| }); | |
| t.purposeLegitimateInterests.set(o), | |
| t.vendorLegitimateInterests.set(n), | |
| t.isServiceSpecific && t.publisherLegitimateInterests.set(o) | |
| } | |
| bo.cmpApi.update(e.tcString().encode(t), !0) | |
| } | |
| , | |
| Ho.prototype.addtlConsentString = function(e, t, o) { | |
| t && t.tcString && (t.addtlConsent = "" + bo.addtlConsentVersion + (bo.isAddtlConsent ? bo.addtlVendors.vendorConsent.join(".") : "")), | |
| "function" == typeof e ? e(t, o) : console.error("__tcfapi received invalid parameters.") | |
| } | |
| , | |
| Ho.prototype.setIabData = function() { | |
| bo.iabData = lo.moduleInitializer.IabV2Data, | |
| bo.iabData.consentLanguage = bo.consentLanguage | |
| } | |
| , | |
| Ho.prototype.assignIABDataWithGlobalVendorList = function(r) { | |
| var i = ko.OverriddenVendors; | |
| bo.iabData.vendorListVersion = r.vendorListVersion, | |
| bo.iabData.vendors = [], | |
| Object.keys(r.vendors).forEach(function(n) { | |
| bo.vendorsSetting[n] = { | |
| consent: !0, | |
| legInt: !0, | |
| arrIndex: 0, | |
| specialPurposesOnly: !1 | |
| }; | |
| var e = {} | |
| , t = r.vendors[n]; | |
| e.vendorId = n, | |
| e.vendorName = t.name, | |
| e.policyUrl = t.policyUrl, | |
| e.cookieMaxAge = ho.calculateCookieLifespan(t.cookieMaxAgeSeconds), | |
| e.usesNonCookieAccess = t.usesNonCookieAccess, | |
| e.deviceStorageDisclosureUrl = t.deviceStorageDisclosureUrl || null; | |
| var o = !t.legIntPurposes.length && !t.purposes.length && t.specialPurposes.length; | |
| vo.legIntSettings.PAllowLI && ((!i[n] || i[n].legInt) && (i[n] || t.legIntPurposes.length) || o) || (bo.vendorsSetting[n].legInt = !1), | |
| vo.legIntSettings.PAllowLI && o && (bo.vendorsSetting[n].specialPurposesOnly = !0), | |
| i[n] && !i[n].consent || !i[n] && !t.purposes.length && !t.flexiblePurposes.length ? bo.vendorsSetting[n].consent = !1 : t.purposes.length || t.flexiblePurposes.length || (bo.vendorsSetting[n].consent = !1), | |
| e.features = t.features.map(function(e) { | |
| var t, o = vo.iabGroups.features[e]; | |
| return o && (t = { | |
| description: o.description, | |
| featureId: o.id, | |
| featureName: o.name | |
| }), | |
| t | |
| }), | |
| e.specialFeatures = r.vendors[n].specialFeatures.reduce(function(e, t) { | |
| var o = vo.iabGroups.specialFeatures[t]; | |
| return o && e.push({ | |
| description: o.description, | |
| featureId: o.id, | |
| featureName: o.name | |
| }), | |
| e | |
| }, []), | |
| e.purposes = r.vendors[n].purposes.reduce(function(e, t) { | |
| var o = vo.iabGroups.purposes[t]; | |
| return !o || i[n] && i[n].disabledCP && -1 !== i[n].disabledCP.indexOf(t) || e.push({ | |
| description: o.description, | |
| purposeId: o.id, | |
| purposeName: o.name | |
| }), | |
| e | |
| }, []), | |
| e.legIntPurposes = r.vendors[n].legIntPurposes.reduce(function(e, t) { | |
| var o = vo.iabGroups.purposes[t]; | |
| return !o || i[n] && i[n].disabledLIP && -1 !== i[n].disabledLIP.indexOf(t) || e.push({ | |
| description: o.description, | |
| purposeId: o.id, | |
| purposeName: o.name | |
| }), | |
| e | |
| }, []), | |
| e.specialPurposes = t.specialPurposes.map(function(e) { | |
| var t, o = vo.iabGroups.specialPurposes[e]; | |
| return o && (t = { | |
| description: o.description, | |
| purposeId: o.id, | |
| purposeName: o.name | |
| }), | |
| t | |
| }), | |
| bo.iabData.vendors.push(e), | |
| bo.vendorsSetting[n].arrIndex = bo.iabData.vendors.length - 1 | |
| }) | |
| } | |
| , | |
| Ho.prototype.populateIABCookies = function() { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| if (!this.isIABCrossConsentEnabled()) | |
| return [3, 5]; | |
| e.label = 1; | |
| case 1: | |
| return e.trys.push([1, 3, , 4]), | |
| [4, this.setIAB3rdPartyCookie(pt.EU_CONSENT, "", 0, !0)]; | |
| case 2: | |
| return e.sent(), | |
| [3, 4]; | |
| case 3: | |
| return e.sent(), | |
| this.setIABCookieData(), | |
| this.updateCrossConsentCookie(!1), | |
| [3, 4]; | |
| case 4: | |
| return [3, 6]; | |
| case 5: | |
| Ro.needReconsent() || this.setIABCookieData(), | |
| e.label = 6; | |
| case 6: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Ho.prototype.setIAB3rdPartyCookie = function(e, t, o, n) { | |
| var r = ko.iabThirdPartyConsentUrl; | |
| try { | |
| if (r && document.body) | |
| return this.updateThirdPartyConsent(r, e, t, o, n); | |
| throw new ReferenceError | |
| } catch (e) { | |
| throw e | |
| } | |
| } | |
| , | |
| Ho.prototype.setIABCookieData = function() { | |
| bo.oneTrustIABConsent.IABCookieValue = uo.getCookie(pt.EU_PUB_CONSENT) | |
| } | |
| , | |
| Ho.prototype.updateThirdPartyConsent = function(n, r, i, s, a) { | |
| return u(this, void 0, void 0, function() { | |
| var t, o; | |
| return g(this, function(e) { | |
| return t = window.location.protocol + "//" + n + "/?name=" + r + "&value=" + i + "&expire=" + s + "&isFirstRequest=" + a, | |
| document.getElementById("onetrustIabCookie") ? (document.getElementById("onetrustIabCookie").contentWindow.location.replace(t), | |
| [2]) : (co(o = document.createElement("iframe"), "display: none;", !0), | |
| o.id = "onetrustIabCookie", | |
| o.setAttribute("title", "OneTrust IAB Cookie"), | |
| o.src = t, | |
| document.body.appendChild(o), | |
| [2, new Promise(function(e) { | |
| o.onload = function() { | |
| vo.thirdPartyiFrameResolve(), | |
| vo.thirdPartyiFrameLoaded = !0, | |
| e() | |
| } | |
| , | |
| o.onerror = function() { | |
| throw vo.thirdPartyiFrameResolve(), | |
| vo.thirdPartyiFrameLoaded = !0, | |
| e(), | |
| new URIError | |
| } | |
| } | |
| )]) | |
| }) | |
| }) | |
| } | |
| , | |
| Ho.prototype.setIABVendor = function(n, r) { | |
| if (void 0 === n && (n = !0), | |
| void 0 === r && (r = !1), | |
| bo.iabData.vendors.forEach(function(e) { | |
| var t = e.vendorId; | |
| if (vo.legIntSettings.PAllowLI) { | |
| var o = void 0; | |
| o = r ? n : !!bo.vendorsSetting[t].consent && n, | |
| bo.oneTrustIABConsent.vendors.push(t.toString() + ":" + o), | |
| bo.oneTrustIABConsent.legIntVendors.push(t.toString() + ":" + bo.vendorsSetting[t].legInt) | |
| } else | |
| bo.oneTrustIABConsent.legIntVendors = [], | |
| bo.oneTrustIABConsent.vendors.push(t.toString() + ":" + n) | |
| }), | |
| ko.UseGoogleVendors) { | |
| var t = bo.addtlVendors; | |
| Object.keys(bo.addtlVendorsList).forEach(function(e) { | |
| n && (t.vendorSelected["" + e.toString()] = !0, | |
| t.vendorConsent.push("" + e.toString())) | |
| }) | |
| } | |
| } | |
| , | |
| Ho.prototype.setOrUpdate3rdPartyIABConsentFlag = function() { | |
| var e = this.getIABCrossConsentflagData(); | |
| ko.IsIabEnabled ? e && !this.needReconsent() || this.updateCrossConsentCookie(ko.IsIabThirdPartyCookieEnabled) : e && !this.reconsentRequired() && "true" !== e || this.updateCrossConsentCookie(!1) | |
| } | |
| , | |
| Ho.prototype.isIABCrossConsentEnabled = function() { | |
| return "true" === this.getIABCrossConsentflagData() | |
| } | |
| , | |
| Ho.prototype.getIABCrossConsentflagData = function() { | |
| return uo.readCookieParam(pt.OPTANON_CONSENT, at) | |
| } | |
| , | |
| Ho.prototype.setGeolocationInCookies = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, it); | |
| if (bo.userLocation && !e && this.isAlertBoxClosedAndValid()) { | |
| var t = bo.userLocation.country + ";" + bo.userLocation.state; | |
| this.setUpdateGeolocationCookiesData(t) | |
| } else | |
| this.reconsentRequired() && e && this.setUpdateGeolocationCookiesData("") | |
| } | |
| , | |
| Ho.prototype.iabStringSDK = function() { | |
| var e = lo.moduleInitializer.otIABModuleData; | |
| if (ko.IsIabEnabled && e) | |
| return { | |
| gvl: e.tcfSdkRef.gvl, | |
| tcModel: e.tcfSdkRef.tcModel, | |
| tcString: e.tcfSdkRef.tcString, | |
| cmpApi: e.tcfSdkRef.cmpApi, | |
| purposeRestriction: e.tcfSdkRef.purposeRestriction | |
| } | |
| } | |
| , | |
| Ho.prototype.setUpdateGeolocationCookiesData = function(e) { | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, it, e) | |
| } | |
| , | |
| Ho.prototype.reconsentRequired = function() { | |
| return (lo.moduleInitializer.MobileSDK || this.awaitingReconsent()) && this.needReconsent() | |
| } | |
| , | |
| Ho.prototype.awaitingReconsent = function() { | |
| return "true" === uo.readCookieParam(pt.OPTANON_CONSENT, nt) | |
| } | |
| , | |
| Ho.prototype.needReconsent = function() { | |
| var e = this.alertBoxCloseDate() | |
| , t = ko.LastReconsentDate; | |
| return e && t && new Date(t) > new Date(e) | |
| } | |
| , | |
| Ho.prototype.updateCrossConsentCookie = function(e) { | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, at, e) | |
| } | |
| , | |
| Ho.prototype.alertBoxCloseDate = function() { | |
| return uo.getCookie(pt.ALERT_BOX_CLOSED) | |
| } | |
| , | |
| Ho.prototype.isAlertBoxClosedAndValid = function() { | |
| return null !== this.alertBoxCloseDate() && !this.reconsentRequired() | |
| } | |
| , | |
| Ho.prototype.generateLegIntButtonElements = function(e, t, o) { | |
| void 0 === o && (o = !1); | |
| var n = e ? "display:none;" : ""; | |
| return '<div class="ot-leg-btn-container" data-group-id="' + t + '" data-el-id="' + t + '-leg-out" is-vendor="' + o + '">\n <button class="ot-obj-leg-btn-handler ' + (e ? "ot-leg-int-enabled ot-inactive-leg-btn" : "ot-active-leg-btn") + '">\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 512 512">\n <path fill="' + ko.pcButtonTextColor + '" d="M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z"/>\n </svg>\n <span>' + (e ? vo.legIntSettings.PObjectLegIntText : vo.legIntSettings.PObjectionAppliedText) + '\n </span>\n </button>\n <button\n class="ot-remove-objection-handler"\n data-style="color:' + ko.pcButtonColor + "; " + n + '"\n >\n ' + vo.legIntSettings.PRemoveObjectionText + "\n </button>\n </div>" | |
| } | |
| , | |
| Ho.prototype.syncAlertBoxCookie = function(e) { | |
| var t = ko.ReconsentFrequencyDays; | |
| uo.setCookie(pt.ALERT_BOX_CLOSED, e, t, !1, new Date(e)) | |
| } | |
| , | |
| Ho.prototype.syncCookieExpiry = function() { | |
| if (bo.syncRequired) { | |
| var e = ko.ReconsentFrequencyDays | |
| , t = uo.getCookie(pt.ALERT_BOX_CLOSED) | |
| , o = uo.getCookie(pt.OPTANON_CONSENT); | |
| uo.setCookie(pt.OPTANON_CONSENT, o, e, !1, new Date(t)), | |
| Ro.needReconsent() && uo.removeAlertBox(); | |
| var n = uo.getCookie(pt.EU_PUB_CONSENT); | |
| n && (Ro.isIABCrossConsentEnabled() ? uo.removeIab2() : uo.setCookie(pt.EU_PUB_CONSENT, n, e, !1, new Date(t))); | |
| var r = uo.getCookie(pt.ADDITIONAL_CONSENT_STRING); | |
| r && uo.setCookie(pt.ADDITIONAL_CONSENT_STRING, r, e, !1, new Date(t)) | |
| } | |
| } | |
| , | |
| Ho.prototype.syncOtPreviewCookie = function() { | |
| var e = uo.getCookie(pt.OT_PREVIEW); | |
| e && uo.setCookie(pt.OT_PREVIEW, e, 1, !1) | |
| } | |
| , | |
| Ho.prototype.dispatchConsentEvent = function() { | |
| window.dispatchEvent(new CustomEvent("OTConsentApplied",{ | |
| OTConsentApplied: "yes" | |
| })) | |
| } | |
| , | |
| Ho), qo = function() {}; | |
| var Mo, Uo = (jo.prototype.isAlwaysActiveGroup = function(e) { | |
| if (this.getGrpStatus(e)) { | |
| var t = this.getGrpStatus(e).toLowerCase(); | |
| return e.Parent && t !== ft && (t = this.getGrpStatus(this.getParentGroup(e.Parent)).toLowerCase()), | |
| t === ft | |
| } | |
| return !0 | |
| } | |
| , | |
| jo.prototype.getGrpStatus = function(e) { | |
| return e && e.Status ? vo.DNTEnabled && e.IsDntEnabled ? bt : e.Status : "" | |
| } | |
| , | |
| jo.prototype.getParentGroup = function(t) { | |
| if (t) { | |
| var e = ko.Groups.filter(function(e) { | |
| return e.OptanonGroupId === t | |
| }); | |
| return 0 < e.length ? e[0] : null | |
| } | |
| return null | |
| } | |
| , | |
| jo.prototype.checkIfGroupHasConsent = function(t) { | |
| var e = bo.groupsConsent | |
| , o = ho.findIndex(e, function(e) { | |
| return e.split(":")[0] === t.CustomGroupId | |
| }); | |
| return -1 < o && "1" === e[o].split(":")[1] | |
| } | |
| , | |
| jo.prototype.checkIsActiveByDefault = function(e) { | |
| if (this.getGrpStatus(e)) { | |
| var t = this.getGrpStatus(e).toLowerCase(); | |
| return e.Parent && t !== ft && (t = this.getGrpStatus(this.getParentGroup(e.Parent)).toLowerCase()), | |
| t === ft || t === kt || t === vt || t === bt && !vo.DNTEnabled | |
| } | |
| return !0 | |
| } | |
| , | |
| jo.prototype.getGroupById = function(e) { | |
| for (var t = null, o = 0, n = ko.Groups; o < n.length; o++) { | |
| for (var r = n[o], i = 0, s = b(r.SubGroups, [r]); i < s.length; i++) { | |
| var a = s[i]; | |
| if (a.CustomGroupId === e) { | |
| t = a; | |
| break | |
| } | |
| } | |
| if (t) | |
| break | |
| } | |
| return t | |
| } | |
| , | |
| jo.prototype.isSoftOptInGrp = function(e) { | |
| if (e) { | |
| var t = e && !e.Parent ? e : Mo.getParentGroup(e.Parent); | |
| return "inactive landingpage" === Mo.getGrpStatus(t).toLowerCase() | |
| } | |
| return !1 | |
| } | |
| , | |
| jo.prototype.isOptInGrp = function(e) { | |
| return !!e && "inactive" === Mo.getGrpStatus(e).toLowerCase() | |
| } | |
| , | |
| jo.prototype.getParentByGrp = function(e) { | |
| return e.Parent ? this.getGroupById(e.Parent) : null | |
| } | |
| , | |
| jo.prototype.getVSById = function(e) { | |
| return bo.getVendorsInDomain().get(e) | |
| } | |
| , | |
| jo.prototype.getGrpByVendorId = function(e) { | |
| var t = null; | |
| return bo.getVendorsInDomain().has(e) && (t = bo.getVendorsInDomain().get(e).groupRef), | |
| t | |
| } | |
| , | |
| jo); | |
| function jo() {} | |
| var zo, Ko = (Wo.prototype.ensureConsentId = function(e, t) { | |
| var o, n = !1, r = uo.readCookieParam(pt.OPTANON_CONSENT, rt, !0); | |
| if (o = !e && t ? (n = !0, | |
| 1) : 0, | |
| r) { | |
| var i = parseInt(uo.readCookieParam(pt.OPTANON_CONSENT, st), 10); | |
| isNaN(i) || (o = t ? ++i : i, | |
| n = !1) | |
| } else | |
| r = ho.generateUUID(), | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, rt, r); | |
| return uo.writeCookieParam(pt.OPTANON_CONSENT, st, o), | |
| { | |
| id: r, | |
| count: o, | |
| addDfltInt: n | |
| } | |
| } | |
| , | |
| Wo.prototype.isAnonymousConsent = function() { | |
| var e = !0 | |
| , t = bo.dsParams; | |
| return t && t.hasOwnProperty("isAnonymous") && (e = t.isAnonymous), | |
| e | |
| } | |
| , | |
| Wo.prototype.isAuthUsr = function(e) { | |
| bo.consentPreferences ? uo.writeCookieParam(pt.OPTANON_CONSENT, "iType", "") : uo.writeCookieParam(pt.OPTANON_CONSENT, "iType", "" + K[e]) | |
| } | |
| , | |
| Wo.prototype.createConsentTxn = function(e, t, o, n) { | |
| void 0 === t && (t = ""), | |
| void 0 === o && (o = !1), | |
| void 0 === n && (n = !0); | |
| var r = this.ensureConsentId(e, n) | |
| , i = ko.ConsentIntegration | |
| , s = window.navigator.userAgent | |
| , a = /OneTrustBot/.test(s); | |
| if (i.ConsentApi && i.RequestInformation && r.id && !a) { | |
| var l = lo.moduleInitializer; | |
| zo.noOptOutToogle = l.TenantFeatures.CookieV2NoOptOut; | |
| var c = bo.bannerCloseSource; | |
| zo.isCloseByIconOrLink = c === m.BannerCloseButton || c === m.ContinueWithoutAcceptingButton; | |
| var d = { | |
| requestInformation: i.RequestInformation, | |
| identifier: r.id, | |
| customPayload: { | |
| Interaction: r.count, | |
| AddDefaultInteraction: r.addDfltInt | |
| }, | |
| isAnonymous: this.isAnonymousConsent(), | |
| test: l.ScriptType === Pt || l.ScriptType === Tt, | |
| purposes: this.getConsetPurposes(e), | |
| dsDataElements: {} | |
| }; | |
| bo.isV2Stub && (d.syncGroup = bo.syncGrpId, | |
| "IAB2" !== vo.iabType || Ro.isIABCrossConsentEnabled() || (d.tcStringV2 = uo.getCookie(pt.EU_PUB_CONSENT)), | |
| ko.UseGoogleVendors && (d.gacString = uo.getCookie(pt.ADDITIONAL_CONSENT_STRING))); | |
| var p = Mo.getGroupById(ko.AdvancedAnalyticsCategory); | |
| if (p && this.canSendAdvancedAnalytics(d.purposes, p) && (d.dsDataElements = { | |
| InteractionType: t, | |
| Country: bo && bo.userLocation ? bo.userLocation.country : "", | |
| UserAgent: s, | |
| ConsentModel: ko.ConsentModel.Name | |
| }), | |
| !l.MobileSDK && n && d.purposes.length) { | |
| var u = JSON.stringify(d); | |
| e && navigator.sendBeacon ? (navigator.sendBeacon(i.ConsentApi, u), | |
| Ro.dispatchConsentEvent()) : !o && vo.apiSource !== A.UpdateConsent && bo.consentInteractionType === t || (bo.isV2Stub && t && this.isAuthUsr(t), | |
| So.ajax({ | |
| url: i.ConsentApi, | |
| type: "post", | |
| dataType: "json", | |
| contentType: "application/json", | |
| data: JSON.stringify(d), | |
| sync: e, | |
| success: function() { | |
| Ro.dispatchConsentEvent() | |
| }, | |
| error: function() { | |
| Ro.dispatchConsentEvent() | |
| } | |
| })) | |
| } | |
| vo.pubDomainData.ConsentIntegrationData = { | |
| consentApi: i.ConsentApi, | |
| consentPayload: d | |
| } | |
| } | |
| bo.consentInteractionType = t | |
| } | |
| , | |
| Wo.prototype.getGrpDetails = function(e, i) { | |
| var s = []; | |
| return e.forEach(function(e) { | |
| var t = e.split(":") | |
| , o = t[0] | |
| , n = "true" === t[1] ? "1" : "0" | |
| , r = zo.getOptanonIdForIabGroup(o, i); | |
| s.push(r + ":" + n) | |
| }), | |
| s | |
| } | |
| , | |
| Wo.prototype.getOptanonIdForIabGroup = function(e, t) { | |
| var o; | |
| return t === L.Purpose ? o = "IABV2_" + e : t === L.SpecialFeature && (o = "ISFV2_" + e), | |
| o | |
| } | |
| , | |
| Wo.prototype.getConsetPurposes = function(r) { | |
| var e, t, i = this, s = [], o = [], n = bo.oneTrustIABConsent; | |
| return e = n && n.purpose ? this.getGrpDetails(n.purpose, L.Purpose) : [], | |
| t = n && n.specialFeatures ? this.getGrpDetails(n.specialFeatures, L.SpecialFeature) : [], | |
| o = b(n.specialPurposes, n.features), | |
| b(bo.groupsConsent, e, t).forEach(function(e) { | |
| var t = e.split(":") | |
| , o = Mo.getGroupById(t[0]); | |
| if (o && o.PurposeId) { | |
| var n = i.getTransactionType(o, t, r); | |
| s.push({ | |
| Id: o.PurposeId, | |
| TransactionType: n.txnType | |
| }), | |
| i.setVSConsentByGroup(o, n).forEach(function(e) { | |
| return s.push(e) | |
| }) | |
| } | |
| }), | |
| o.forEach(function(e) { | |
| e.purposeId && s.push({ | |
| Id: e.purposeId, | |
| TransactionType: gt | |
| }) | |
| }), | |
| bo.bannerCloseSource = m.Unknown, | |
| s | |
| } | |
| , | |
| Wo.prototype.setVSConsentByGroup = function(e, o) { | |
| var n = []; | |
| return bo.showVendorService && e.VendorServices && e.VendorServices.forEach(function(e) { | |
| var t; | |
| t = o.useOwn ? bo.vsConsent.get(e.CustomVendorServiceId) ? ut : ht : o.txnType, | |
| n.push({ | |
| Id: e.PurposeId, | |
| TransactionType: t | |
| }) | |
| }), | |
| n | |
| } | |
| , | |
| Wo.prototype.getTransactionType = function(e, t, o) { | |
| var n = { | |
| txnType: gt, | |
| useOwn: !1 | |
| }; | |
| return e.Status === ft ? n.txnType = gt : e.Status === mt && zo.isCloseByIconOrLink || o ? n.txnType = Ct : e.Status === vt && zo.isCloseByIconOrLink ? n.txnType = zo.noOptOutToogle ? yt : ut : (n.useOwn = !0, | |
| n.txnType = this.getTxnType(t[1])), | |
| n | |
| } | |
| , | |
| Wo.prototype.getTxnType = function(e) { | |
| return "0" === e ? ht : ut | |
| } | |
| , | |
| Wo.prototype.isPurposeConsentedTo = function(e, t) { | |
| var o = [ut, gt]; | |
| return e.some(function(e) { | |
| return e.Id === t.PurposeId && -1 !== o.indexOf(e.TransactionType) | |
| }) | |
| } | |
| , | |
| Wo.prototype.canSendAdvancedAnalytics = function(t, e) { | |
| var o = this; | |
| return "BRANCH" === e.Type || "IAB2_STACK" === e.Type ? e.SubGroups.length && e.SubGroups.every(function(e) { | |
| return o.isPurposeConsentedTo(t, e) | |
| }) : this.isPurposeConsentedTo(t, e) | |
| } | |
| , | |
| Wo); | |
| function Wo() {} | |
| var Jo, Yo = (Xo.prototype.isIabCookieValid = function() { | |
| var e = null; | |
| switch (vo.iabType) { | |
| case "IAB2": | |
| e = uo.getCookie("eupubconsent-v2") | |
| } | |
| return null !== e | |
| } | |
| , | |
| Xo.prototype.iabTypeIsChanged = function() { | |
| this.isIabCookieValid() || (uo.removeAlertBox(), | |
| uo.removeIab1()) | |
| } | |
| , | |
| Xo.prototype.initializeIABModule = function() { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return ko.IsIabEnabled ? (lo.moduleInitializer.otIABModuleData = window.otIabModule, | |
| Ro.setIabData(), | |
| [4, Ro.populateVendorListTCF()]) : [3, 2]; | |
| case 1: | |
| return e.sent(), | |
| Ro.isIABCrossConsentEnabled() || this.iabTypeIsChanged(), | |
| Ro.populateIABCookies(), | |
| ko.UseGoogleVendors && this.removeInActiveAddtlVendors(), | |
| [3, 3]; | |
| case 2: | |
| uo.removeIab1(), | |
| e.label = 3; | |
| case 3: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Xo.prototype.removeInActiveAddtlVendors = function() { | |
| var e = ko.OverridenGoogleVendors; | |
| for (var t in bo.addtlVendorsList) | |
| e && e[t] && !e[t].active && delete bo.addtlVendorsList[t] | |
| } | |
| , | |
| Xo.prototype.getIABConsentData = function() { | |
| var e = bo.oneTrustIABConsent | |
| , t = Ro.iabStringSDK().tcString(); | |
| bo.tcModel.unsetAllPurposeConsents(), | |
| bo.tcModel.unsetAllVendorConsents(), | |
| bo.tcModel.unsetAllVendorLegitimateInterests(), | |
| bo.tcModel.unsetAllSpecialFeatureOptins(), | |
| bo.tcModel.unsetAllPurposeLegitimateInterests(), | |
| bo.tcModel.publisherConsents.empty(), | |
| bo.tcModel.publisherLegitimateInterests.empty(), | |
| bo.tcModel.purposeConsents.set(ho.getActiveIdArray(e.purpose)), | |
| bo.tcModel.publisherConsents.set(ho.getActiveIdArray(e.purpose)); | |
| var o = vo.legIntSettings.PAllowLI ? ho.getActiveIdArray(e.legimateInterest) : []; | |
| bo.tcModel.purposeLegitimateInterests.set(o), | |
| bo.tcModel.publisherLegitimateInterests.set(o), | |
| bo.tcModel.vendorConsents.set(ho.getActiveIdArray(ho.distinctArray(e.vendors))), | |
| vo.legIntSettings.PAllowLI && !o.length && (e.legIntVendors = []), | |
| bo.tcModel.vendorLegitimateInterests.set(ho.getActiveIdArray(ho.distinctArray(e.legIntVendors))), | |
| bo.tcModel.specialFeatureOptins.set(ho.getActiveIdArray(e.specialFeatures)); | |
| var n = new Date | |
| , r = new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),0,0,0); | |
| bo.tcModel.lastUpdated = r, | |
| bo.tcModel.created = r; | |
| var i = t.encode(bo.tcModel); | |
| return bo.cmpApi.update(i, !1), | |
| i | |
| } | |
| , | |
| Xo.prototype.decodeTCString = function(e) { | |
| return Ro.iabStringSDK().tcString().decode(e) | |
| } | |
| , | |
| Xo.prototype.getVendorConsentsRequestV2 = function(e) { | |
| var o; | |
| return window.__tcfapi("getInAppTCData", 2, function(e, t) { | |
| o = [e, t] | |
| }), | |
| e.apply(this, o) | |
| } | |
| , | |
| Xo.prototype.getPingRequestForTcf = function(e) { | |
| var t; | |
| return window.__tcfapi("ping", 2, function(e) { | |
| t = [e] | |
| }), | |
| e.apply(this, t) | |
| } | |
| , | |
| Xo.prototype.populateVendorAndPurposeFromCookieData = function() { | |
| var r = bo.oneTrustIABConsent | |
| , e = Jo.decodeTCString(r.IABCookieValue) | |
| , i = {} | |
| , s = {}; | |
| vo.iabGrps.forEach(function(e) { | |
| e.Type === Zt ? i[vo.iabGrpIdMap[e.CustomGroupId]] = e : e.Type === eo && (s[vo.iabGrpIdMap[e.CustomGroupId]] = e) | |
| }); | |
| var a = []; | |
| e.vendorConsents.forEach(function(e, t) { | |
| var o = e; | |
| bo.vendorsSetting[t] && bo.vendorsSetting[t].consent || !e || (a.push(t), | |
| o = !1), | |
| r.vendors.push(t + ":" + o) | |
| }), | |
| e.vendorConsents.unset(a), | |
| a = [], | |
| e.vendorLegitimateInterests.forEach(function(e, t) { | |
| var o = e; | |
| bo.vendorsSetting[t] && bo.vendorsSetting[t].legInt || !e || (a.push(t), | |
| o = !1), | |
| r.legIntVendors.push(t + ":" + o) | |
| }), | |
| e.vendorLegitimateInterests.unset(a), | |
| a = [], | |
| e.purposeConsents.forEach(function(e, o) { | |
| var t = e; | |
| i[o] && i[o].HasConsentOptOut || !e || (a.push(o), | |
| t = !1); | |
| var n = ho.findIndex(r.purpose, function(e, t) { | |
| return e.split(":")[0] === o.toString() | |
| }); | |
| -1 === n ? r.purpose.push(o + ":" + t) : r.purpose[n] = o + ":" + t | |
| }), | |
| e.purposeConsents.unset(a), | |
| e.publisherConsents.unset(a), | |
| a = [], | |
| e.specialFeatureOptins.forEach(function(e, o) { | |
| var t = e; | |
| s[o] && s[o].HasConsentOptOut || !e || (a.push(o), | |
| t = !1); | |
| var n = ho.findIndex(r.specialFeatures, function(e, t) { | |
| return e.split(":")[0] === o.toString() | |
| }); | |
| -1 === n ? r.specialFeatures.push(o + ":" + t) : r.specialFeatures[n] = o + ":" + t | |
| }), | |
| e.specialFeatureOptins.unset(a), | |
| a = [], | |
| e.purposeLegitimateInterests.forEach(function(e, o) { | |
| var t = e; | |
| i[o] && i[o].HasLegIntOptOut && vo.legIntSettings.PAllowLI || !e || (a.push(o), | |
| t = !1); | |
| var n = ho.findIndex(r.legimateInterest, function(e, t) { | |
| return e.split(":")[0] === o.toString() | |
| }); | |
| -1 === n ? r.legimateInterest.push(o + ":" + t) : r.legimateInterest[n] = o + ":" + t | |
| }), | |
| e.purposeLegitimateInterests.unset(a), | |
| e.publisherLegitimateInterests.unset(a), | |
| this.syncBundleAndStack(), | |
| e.gvl = bo.tcModel.gvl, | |
| e.isServiceSpecific = !Ro.isIABCrossConsentEnabled(), | |
| bo.tcModel = e; | |
| var t = Ro.iabStringSDK().tcString().encode(e); | |
| Ro.isAlertBoxClosedAndValid() ? (r.IABCookieValue !== t && (r.IABCookieValue = t, | |
| Ro.isIABCrossConsentEnabled() ? Ro.setIAB3rdPartyCookie(pt.EU_CONSENT, r.IABCookieValue, ko.ReconsentFrequencyDays, !1) : uo.setCookie(pt.EU_PUB_CONSENT, r.IABCookieValue, ko.ReconsentFrequencyDays)), | |
| bo.cmpApi.update(t, !1)) : Ro.resetTCModel() | |
| } | |
| , | |
| Xo.prototype.syncBundleAndStack = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, "groups"); | |
| bo.groupsConsent = ho.strToArr(e), | |
| ko.Groups.forEach(function(t) { | |
| if (t.Type === Xt || t.Type === oo) { | |
| var e = wo.isBundleOrStackActive(t) | |
| , o = ho.findIndex(bo.groupsConsent, function(e) { | |
| return e.split(":")[0] === t.CustomGroupId | |
| }) | |
| , n = t.CustomGroupId + ":" + Number(e); | |
| -1 < o ? bo.groupsConsent[o] = n : bo.groupsConsent.push(n) | |
| } | |
| }), | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, "groups", bo.groupsConsent.join(",")) | |
| } | |
| , | |
| Xo.prototype.populateGoogleConsent = function() { | |
| if (ko.UseGoogleVendors) { | |
| var e = uo.getCookie(pt.ADDITIONAL_CONSENT_STRING); | |
| e && (bo.isAddtlConsent = !0, | |
| bo.addtlVendors.vendorConsent = e.replace(bo.addtlConsentVersion, "").split(".")) | |
| } | |
| } | |
| , | |
| Xo.prototype.isInitIABCookieData = function(e) { | |
| return "init" === e || Ro.needReconsent() | |
| } | |
| , | |
| Xo.prototype.updateFromGlobalConsent = function(e) { | |
| var t = bo.oneTrustIABConsent; | |
| t.IABCookieValue = e, | |
| t.purpose = t.purpose || [], | |
| t.specialFeatures = t.specialFeatures || [], | |
| t.legIntVendors = [], | |
| t.legimateInterest = t.legimateInterest || [], | |
| t.vendors = [], | |
| Jo.populateVendorAndPurposeFromCookieData(), | |
| uo.setCookie(pt.EU_PUB_CONSENT, "", -1) | |
| } | |
| , | |
| Xo); | |
| function Xo() {} | |
| var Qo, $o = "groups", Zo = "hosts", en = "genVendors", tn = "vs", on = (nn.prototype.writeHstParam = function(e, t) { | |
| void 0 === t && (t = null), | |
| uo.writeCookieParam(e, "hosts", ho.arrToStr(t || bo.hostsConsent)) | |
| } | |
| , | |
| nn.prototype.writeGenVenCookieParam = function(e) { | |
| var t = ko.GeneralVendors | |
| , o = bo.genVendorsConsent | |
| , n = ""; | |
| t.forEach(function(e) { | |
| n += e.VendorCustomId + ":" + (o[e.VendorCustomId] ? "1" : "0") + "," | |
| }), | |
| uo.writeCookieParam(e, "genVendors", n) | |
| } | |
| , | |
| nn.prototype.writeVSConsentCookieParam = function(e) { | |
| var o = ""; | |
| bo.vsConsent.forEach(function(e, t) { | |
| return o += t + ":" + (e ? "1" : "0") + "," | |
| }), | |
| o = o.slice(0, -1), | |
| uo.writeCookieParam(e, tn, o) | |
| } | |
| , | |
| nn.prototype.updateGroupsInCookie = function(e, t) { | |
| void 0 === t && (t = null), | |
| uo.writeCookieParam(e, "groups", ho.arrToStr(t || bo.groupsConsent)) | |
| } | |
| , | |
| nn.prototype.writeGrpParam = function(e, t) { | |
| void 0 === t && (t = null), | |
| this.updateGroupsInCookie(e, t), | |
| ko.IsIabEnabled && Ro.isAlertBoxClosedAndValid() && this.insertOrUpdateIabCookies() | |
| } | |
| , | |
| nn.prototype.insertOrUpdateIabCookies = function() { | |
| var e = bo.oneTrustIABConsent; | |
| if (e.purpose && e.vendors) { | |
| bo.isAddtlConsent = ko.UseGoogleVendors, | |
| e.IABCookieValue = Jo.getIABConsentData(); | |
| var t = ko.ReconsentFrequencyDays; | |
| Ro.isIABCrossConsentEnabled() ? Ro.setIAB3rdPartyCookie(pt.EU_CONSENT, e.IABCookieValue, t, !1) : (uo.setCookie(pt.EU_PUB_CONSENT, e.IABCookieValue, t), | |
| ko.UseGoogleVendors && uo.setCookie(pt.ADDITIONAL_CONSENT_STRING, "" + bo.addtlConsentVersion + bo.addtlVendors.vendorConsent.join("."), t)) | |
| } | |
| } | |
| , | |
| nn); | |
| function nn() {} | |
| var rn, sn = (an.prototype.initGenVendorConsent = function() { | |
| var n = this; | |
| if (ko.GenVenOptOut) { | |
| var e = vo.consentableGrps | |
| , t = uo.readCookieParam(pt.OPTANON_CONSENT, "genVendors"); | |
| t ? (bo.genVendorsConsent = {}, | |
| t.split(",").forEach(function(e) { | |
| if (e) { | |
| var t = e.split(":"); | |
| "1" === t[1] && (bo.genVendorsConsent[t[0]] = !0) | |
| } | |
| })) : (bo.genVendorsConsent = {}, | |
| e.forEach(function(e) { | |
| var o = bo.syncRequired ? Mo.checkIfGroupHasConsent(e) : Mo.checkIsActiveByDefault(e); | |
| e.GeneralVendorsIds && e.GeneralVendorsIds.length && e.GeneralVendorsIds.forEach(function(e) { | |
| var t = n.isGenVenPartOfAlwaysActiveGroup(e); | |
| bo.genVendorsConsent[e] = t || o | |
| }) | |
| })) | |
| } else | |
| bo.genVendorsConsent = {}, | |
| Qo.writeGenVenCookieParam(pt.OPTANON_CONSENT) | |
| } | |
| , | |
| an.prototype.populateGenVendorLists = function() { | |
| vo.consentableGrps.forEach(function(e) { | |
| e.GeneralVendorsIds && (Mo.isAlwaysActiveGroup(e) ? e.GeneralVendorsIds.forEach(function(e) { | |
| bo.alwaysActiveGenVendors.push(e) | |
| }) : Mo.isOptInGrp(e) ? e.GeneralVendorsIds.forEach(function(e) { | |
| bo.optInGenVendors.push(e) | |
| }) : Mo.isSoftOptInGrp(e) && e.GeneralVendorsIds.forEach(function(e) { | |
| bo.optInGenVendors.includes(e) || bo.softOptInGenVendors.push(e) | |
| })) | |
| }) | |
| } | |
| , | |
| an.prototype.updateGenVendorStatus = function(e, t) { | |
| bo.genVendorsConsent[e] = t || this.isGenVenPartOfAlwaysActiveGroup(e) | |
| } | |
| , | |
| an.prototype.isGenVenPartOfAlwaysActiveGroup = function(e) { | |
| return bo.alwaysActiveGenVendors.includes(e) | |
| } | |
| , | |
| an); | |
| function an() {} | |
| var ln, cn = (dn.prototype.synchroniseCookieGroupData = function(e) { | |
| var t = uo.readCookieParam(pt.OPTANON_CONSENT, "groups") | |
| , r = ho.strToArr(t) | |
| , i = ho.strToArr(t.replace(/:0|:1/g, "")) | |
| , o = Ro.needReconsent() | |
| , s = !1 | |
| , a = !1; | |
| e.forEach(function(e) { | |
| var t = e.CustomGroupId; | |
| if (e.Type !== Xt && e.Type !== oo) | |
| if (-1 === ho.indexOf(i, t)) { | |
| s = !0; | |
| var o = Mo.checkIsActiveByDefault(e); | |
| a = !0, | |
| r.push(t + (o ? ":1" : ":0")) | |
| } else if (vo.gpcEnabled && e.IsGpcEnabled && vo.gpcValueChanged) { | |
| var n = r.indexOf(t + ":1"); | |
| -1 < n && (a = !0, | |
| r[n] = t + ":0") | |
| } | |
| }), | |
| a = this.updateConsentForBundleGrps(e, r, i, a, o), | |
| (a = this.removeRedundantGrpsFromCookie(r, o, a)) && (bo.fireOnetrustGrp = !0, | |
| Qo.updateGroupsInCookie(pt.OPTANON_CONSENT, r), | |
| bo.syncRequired && s && uo.removeAlertBox()) | |
| } | |
| , | |
| dn.prototype.removeRedundantGrpsFromCookie = function(e, o, t) { | |
| for (var n = e.length, r = t, i = function() { | |
| var t = e[n].replace(/:0|:1/g, ""); | |
| ko.Groups.some(function(e) { | |
| return (!o || e.Type !== oo) && (e.CustomGroupId === t || e.SubGroups.some(function(e) { | |
| return e.CustomGroupId === t | |
| })) | |
| }) || (r = !0, | |
| e.splice(n, 1)) | |
| }; n--; ) | |
| i(); | |
| return r | |
| } | |
| , | |
| dn.prototype.updateConsentForBundleGrps = function(e, s, a, t, l) { | |
| var c = t; | |
| return e.forEach(function(e) { | |
| var t = e.Type === Xt || e.Type === oo | |
| , o = e.CustomGroupId; | |
| if (t) | |
| if (-1 === ho.indexOf(a, o)) { | |
| var n = wo.isBundleOrStackActive(e, s); | |
| c = !0, | |
| s.push(o + (n ? ":1" : ":0")) | |
| } else if (l && "false" === Ro.getIABCrossConsentflagData() || vo.gpcEnabled && vo.gpcValueChanged || bo.syncRequired) { | |
| var r = wo.isBundleOrStackActive(e, s) | |
| , i = s.indexOf(o + ":" + (r ? "0" : "1")); | |
| -1 < i && (c = !0, | |
| s[i] = o + (r ? ":1" : ":0")) | |
| } | |
| }), | |
| c | |
| } | |
| , | |
| dn.prototype.groupHasConsent = function(t) { | |
| var e = ho.strToArr(uo.readCookieParam(pt.OPTANON_CONSENT, "groups")) | |
| , o = ho.findIndex(e, function(e) { | |
| return e.split(":")[0] === t.CustomGroupId | |
| }); | |
| return -1 < o && "1" === e[o].split(":")[1] | |
| } | |
| , | |
| dn.prototype.synchroniseCookieHostData = function() { | |
| var n = this | |
| , e = uo.readCookieParam(pt.OPTANON_CONSENT, "hosts") | |
| , r = ho.strToArr(e) | |
| , i = ho.strToArr(e.replace(/:0|:1/g, "")) | |
| , s = !1; | |
| ko.Groups.forEach(function(e) { | |
| b(e.SubGroups, [e]).forEach(function(o) { | |
| o.Hosts.length && o.Hosts.forEach(function(e) { | |
| if (-1 === ho.indexOf(i, e.HostId)) { | |
| s = !0; | |
| var t = bo.syncRequired ? n.groupHasConsent(o) : Mo.checkIsActiveByDefault(o); | |
| r.push(e.HostId + (t ? ":1" : ":0")) | |
| } | |
| }) | |
| }) | |
| }); | |
| for (var o = r.length, t = function() { | |
| var t = r[o].replace(/:0|:1/g, ""); | |
| ko.Groups.some(function(e) { | |
| return b(e.SubGroups, [e]).some(function(e) { | |
| return e.Hosts.some(function(e) { | |
| return e.HostId === t | |
| }) | |
| }) | |
| }) || (s = !0, | |
| r.splice(o, 1)) | |
| }; o--; ) | |
| t(); | |
| s && (bo.fireOnetrustGrp = !0, | |
| Qo.writeHstParam(pt.OPTANON_CONSENT, r)) | |
| } | |
| , | |
| dn.prototype.toggleGroupHosts = function(e, t) { | |
| var o = this; | |
| e.Hosts.forEach(function(e) { | |
| o.updateHostStatus(e, t) | |
| }) | |
| } | |
| , | |
| dn.prototype.toggleGroupGenVendors = function(e, t) { | |
| e.GeneralVendorsIds.forEach(function(e) { | |
| rn.updateGenVendorStatus(e, t) | |
| }) | |
| } | |
| , | |
| dn.prototype.updateHostStatus = function(t, e) { | |
| var o = ho.findIndex(bo.hostsConsent, function(e) { | |
| return !t.isActive && t.HostId === e.replace(/:0|:1/g, "") | |
| }); | |
| if (-1 < o) { | |
| var n = e || this.isHostPartOfAlwaysActiveGroup(t.HostId); | |
| bo.hostsConsent[o] = t.HostId + ":" + (n ? "1" : "0") | |
| } | |
| } | |
| , | |
| dn.prototype.isHostPartOfAlwaysActiveGroup = function(e) { | |
| return bo.oneTrustAlwaysActiveHosts.includes(e) | |
| } | |
| , | |
| dn); | |
| function dn() {} | |
| var pn, un = function() { | |
| this.assets = function() { | |
| return { | |
| name: "otCookiePolicy", | |
| html: '<div class="ot-sdk-cookie-policy ot-sdk-container">\n <h3 id="cookie-policy-title">Cookie Tracking Table</h3>\n <div id="cookie-policy-description"></div>\n <section>\n <h4 class="ot-sdk-cookie-policy-group">Strictly Necessary Cookies</h4>\n <p class="ot-sdk-cookie-policy-group-desc">group description</p>\n <h5 class="cookies-used-header">Cookies Used</h5>\n <ul class="cookies-list">\n <li>Cookie 1</li>\n </ul>\n <table>\n <caption class="ot-scrn-rdr">caption</caption>\n <thead>\n <tr>\n <th scope="col" class="table-header host">Host</th>\n <th scope="col" class="table-header host-description">Host Description</th>\n <th scope="col" class="table-header cookies">Cookies</th>\n <th scope="col" class="table-header life-span">Life Span</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td class="host-td" data-label="Host"><span class="ot-mobile-border"></span><a\n href="https://cookiepedia.co.uk/host/.app.onetrust.com?_ga=2.157675898.1572084395.1556120090-1266459230.1555593548&_ga=2.157675898.1572084395.1556120090-1266459230.1555593548">Azure</a>\n </td>\n <td class="host-description-td" data-label="Host Description"><span\n class="ot-mobile-border"></span>These\n cookies are used to make sure\n visitor page requests are routed to the same server in all browsing sessions.</td>\n <td class="cookies-td" data-label="Cookies">\n <span class="ot-mobile-border"></span>\n <ul>\n <li>ARRAffinity</li>\n </ul>\n </td>\n <td class="life-span-td" data-label="Life Span"><span class="ot-mobile-border"></span>\n <ul>\n <li>100 days</li>\n </ul>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n <section class="subgroup">\n <h5 class="ot-sdk-cookie-policy-group">Strictly Necessary Cookies</h5>\n <p class="ot-sdk-cookie-policy-group-desc">description</p>\n <h6 class="cookies-used-header">Cookies Used</h6>\n <ul class="cookies-list">\n <li>Cookie 1</li>\n </ul>\n <table>\n <caption class="ot-scrn-rdr">caption</caption>\n <thead>\n <tr>\n <th scope="col" class="table-header host">Host</th>\n <th scope="col" class="table-header host-description">Host Description</th>\n <th scope="col" class="table-header cookies">Cookies</th>\n <th scope="col" class="table-header life-span">Life Span</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td class="host-td" data-label="Host"><span class="ot-mobile-border"></span><a\n href="https://cookiepedia.co.uk/host/.app.onetrust.com?_ga=2.157675898.1572084395.1556120090-1266459230.1555593548&_ga=2.157675898.1572084395.1556120090-1266459230.1555593548">Azure</a>\n </td>\n <td class="host-description-td" data-label="Host Description">\n <span class="ot-mobile-border"></span>\n cookies are used to make sureng sessions.\n </td>\n <td class="cookies-td" data-label="Cookies">\n <span class="ot-mobile-border"></span>\n <ul>\n <li>ARRAffinity</li>\n </ul>\n </td>\n <td class="life-span-td" data-label="Life Span"><span class="ot-mobile-border"></span>\n <ul>\n <li>100 days</li>\n </ul>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n</div>\n\x3c!-- New Cookies policy Link--\x3e\n<div id="ot-sdk-cookie-policy-v2" class="ot-sdk-cookie-policy ot-sdk-container">\n <h3 id="cookie-policy-title" class="ot-sdk-cookie-policy-title">Cookie Tracking Table</h3>\n <div id="cookie-policy-description"></div>\n <section>\n <h4 class="ot-sdk-cookie-policy-group">Strictly Necessary Cookies</h4>\n <p class="ot-sdk-cookie-policy-group-desc">group description</p>\n <section class="ot-sdk-subgroup">\n <ul>\n <li>\n <h5 class="ot-sdk-cookie-policy-group">Strictly Necessary Cookies</h5>\n <p class="ot-sdk-cookie-policy-group-desc">description</p>\n </li>\n </ul>\n </section>\n <table>\n <caption class="ot-scrn-rdr">caption</caption>\n <thead>\n <tr>\n <th scope="col" class="ot-table-header ot-host">Host</th>\n <th scope="col" class="ot-table-header ot-host-description">Host Description</th>\n <th scope="col" class="ot-table-header ot-cookies">Cookies</th>\n <th scope="col" class="ot-table-header ot-cookies-type">Type</th>\n <th scope="col" class="ot-table-header ot-life-span">Life Span</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td class="ot-host-td" data-label="Host"><span class="ot-mobile-border"></span><a\n href="https://cookiepedia.co.uk/host/.app.onetrust.com?_ga=2.157675898.1572084395.1556120090-1266459230.1555593548&_ga=2.157675898.1572084395.1556120090-1266459230.1555593548">Azure</a>\n </td>\n <td class="ot-host-description-td" data-label="Host Description">\n <span class="ot-mobile-border"></span>\n cookies are used to make sureng sessions.\n </td>\n <td class="ot-cookies-td" data-label="Cookies">\n <span class="ot-mobile-border"></span>\n <span class="ot-cookies-td-content">ARRAffinity</span>\n </td>\n <td class="ot-cookies-type" data-label="Type">\n <span class="ot-mobile-border"></span>\n <span class="ot-cookies-type-td-content">1st Party</span>\n </td>\n <td class="ot-life-span-td" data-label="Life Span">\n <span class="ot-mobile-border"></span>\n <span class="ot-life-span-td-content">100 days</span>\n </td>\n </tr>\n </tbody>\n </table>\n </section>\n</div>', | |
| css: ".ot-sdk-cookie-policy{font-family:inherit;font-size:16px}.ot-sdk-cookie-policy.otRelFont{font-size:1rem}.ot-sdk-cookie-policy h3,.ot-sdk-cookie-policy h4,.ot-sdk-cookie-policy h6,.ot-sdk-cookie-policy p,.ot-sdk-cookie-policy li,.ot-sdk-cookie-policy a,.ot-sdk-cookie-policy th,.ot-sdk-cookie-policy #cookie-policy-description,.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group,.ot-sdk-cookie-policy #cookie-policy-title{color:dimgray}.ot-sdk-cookie-policy #cookie-policy-description{margin-bottom:1em}.ot-sdk-cookie-policy h4{font-size:1.2em}.ot-sdk-cookie-policy h6{font-size:1em;margin-top:2em}.ot-sdk-cookie-policy th{min-width:75px}.ot-sdk-cookie-policy a,.ot-sdk-cookie-policy a:hover{background:#fff}.ot-sdk-cookie-policy thead{background-color:#f6f6f4;font-weight:bold}.ot-sdk-cookie-policy .ot-mobile-border{display:none}.ot-sdk-cookie-policy section{margin-bottom:2em}.ot-sdk-cookie-policy table{border-collapse:inherit}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy{font-family:inherit;font-size:1rem}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h3,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h4,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h6,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy p,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy li,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-title{color:dimgray}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description{margin-bottom:1em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup{margin-left:1.5em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group-desc,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-table-header,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy span,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td{font-size:.9em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td span,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td a{font-size:inherit}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group{font-size:1em;margin-bottom:.6em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-title{margin-bottom:1.2em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy>section{margin-bottom:1em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th{min-width:75px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a:hover{background:#fff}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead{background-color:#f6f6f4;font-weight:bold}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-mobile-border{display:none}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy section{margin-bottom:2em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup ul li{list-style:disc;margin-left:1.5em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup ul li h4{display:inline-block}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table{border-collapse:inherit;margin:auto;border:1px solid #d7d7d7;border-radius:5px;border-spacing:initial;width:100%;overflow:hidden}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td{border-bottom:1px solid #d7d7d7;border-right:1px solid #d7d7d7}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td{border-bottom:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr th:last-child,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr td:last-child{border-right:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-host,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-cookies-type{width:25%}.ot-sdk-cookie-policy[dir=rtl]{text-align:left}#ot-sdk-cookie-policy h3{font-size:1.5em}@media only screen and (max-width: 530px){.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) table,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) thead,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tbody,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) th,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr{display:block}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) thead tr{position:absolute;top:-9999px;left:-9999px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr{margin:0 0 1em 0}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr:nth-child(odd),.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr:nth-child(odd) a{background:#f6f6f4}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td{border:none;border-bottom:1px solid #eee;position:relative;padding-left:50%}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td:before{position:absolute;height:100%;left:6px;width:40%;padding-right:10px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) .ot-mobile-border{display:inline-block;background-color:#e4e4e4;position:absolute;height:100%;top:0;left:45%;width:2px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td:before{content:attr(data-label);font-weight:bold}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) li{word-break:break-word;word-wrap:break-word}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table{overflow:hidden}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td{border:none;border-bottom:1px solid #d7d7d7}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tbody,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tr{display:block}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-host,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-cookies-type{width:auto}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tr{margin:0 0 1em 0}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td:before{height:100%;width:40%;padding-right:10px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td:before{content:attr(data-label);font-weight:bold}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy li{word-break:break-word;word-wrap:break-word}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead tr{position:absolute;top:-9999px;left:-9999px;z-index:-9999}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td{border-bottom:1px solid #d7d7d7;border-right:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td:last-child{border-bottom:0px}}", | |
| cssRTL: ".ot-sdk-cookie-policy{font-family:inherit;font-size:16px}.ot-sdk-cookie-policy.otRelFont{font-size:1rem}.ot-sdk-cookie-policy h3,.ot-sdk-cookie-policy h4,.ot-sdk-cookie-policy h6,.ot-sdk-cookie-policy p,.ot-sdk-cookie-policy li,.ot-sdk-cookie-policy a,.ot-sdk-cookie-policy th,.ot-sdk-cookie-policy #cookie-policy-description,.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group,.ot-sdk-cookie-policy #cookie-policy-title{color:dimgray}.ot-sdk-cookie-policy #cookie-policy-description{margin-bottom:1em}.ot-sdk-cookie-policy h4{font-size:1.2em}.ot-sdk-cookie-policy h6{font-size:1em;margin-top:2em}.ot-sdk-cookie-policy th{min-width:75px}.ot-sdk-cookie-policy a,.ot-sdk-cookie-policy a:hover{background:#fff}.ot-sdk-cookie-policy thead{background-color:#f6f6f4;font-weight:bold}.ot-sdk-cookie-policy .ot-mobile-border{display:none}.ot-sdk-cookie-policy section{margin-bottom:2em}.ot-sdk-cookie-policy table{border-collapse:inherit}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy{font-family:inherit;font-size:1rem}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h3,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h4,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy h6,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy p,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy li,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-title{color:dimgray}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description{margin-bottom:1em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup{margin-right:1.5em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy #cookie-policy-description,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group-desc,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-table-header,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy span,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td{font-size:.9em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td span,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td a{font-size:inherit}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-group{font-size:1em;margin-bottom:.6em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-cookie-policy-title{margin-bottom:1.2em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy>section{margin-bottom:1em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th{min-width:75px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy a:hover{background:#fff}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead{background-color:#f6f6f4;font-weight:bold}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-mobile-border{display:none}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy section{margin-bottom:2em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup ul li{list-style:disc;margin-right:1.5em}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy .ot-sdk-subgroup ul li h4{display:inline-block}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table{border-collapse:inherit;margin:auto;border:1px solid #d7d7d7;border-radius:5px;border-spacing:initial;width:100%;overflow:hidden}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td{border-bottom:1px solid #d7d7d7;border-left:1px solid #d7d7d7}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td{border-bottom:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr th:last-child,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr td:last-child{border-left:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-host,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-cookies-type{width:25%}.ot-sdk-cookie-policy[dir=rtl]{text-align:right}#ot-sdk-cookie-policy h3{font-size:1.5em}@media only screen and (max-width: 530px){.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) table,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) thead,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tbody,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) th,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td,.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr{display:block}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) thead tr{position:absolute;top:-9999px;right:-9999px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr{margin:0 0 1em 0}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr:nth-child(odd),.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) tr:nth-child(odd) a{background:#f6f6f4}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td{border:none;border-bottom:1px solid #eee;position:relative;padding-right:50%}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td:before{position:absolute;height:100%;right:6px;width:40%;padding-left:10px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) .ot-mobile-border{display:inline-block;background-color:#e4e4e4;position:absolute;height:100%;top:0;right:45%;width:2px}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) td:before{content:attr(data-label);font-weight:bold}.ot-sdk-cookie-policy:not(#ot-sdk-cookie-policy-v2) li{word-break:break-word;word-wrap:break-word}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table{overflow:hidden}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table td{border:none;border-bottom:1px solid #d7d7d7}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tbody,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy th,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tr{display:block}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-host,#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table .ot-cookies-type{width:auto}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy tr{margin:0 0 1em 0}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td:before{height:100%;width:40%;padding-left:10px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy td:before{content:attr(data-label);font-weight:bold}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy li{word-break:break-word;word-wrap:break-word}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy thead tr{position:absolute;top:-9999px;right:-9999px;z-index:-9999}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td{border-bottom:1px solid #d7d7d7;border-left:0px}#ot-sdk-cookie-policy-v2.ot-sdk-cookie-policy table tr:last-child td:last-child{border-bottom:0px}}" | |
| } | |
| } | |
| }, hn = (gn.prototype.isLandingPage = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, "landingPath"); | |
| return !e || e === location.href | |
| } | |
| , | |
| gn.prototype.setLandingPathParam = function(e) { | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, "landingPath", e) | |
| } | |
| , | |
| gn); | |
| function gn() {} | |
| var Cn, yn = (fn.prototype.loadBanner = function() { | |
| lo.moduleInitializer.ScriptDynamicLoadEnabled ? "complete" === document.readyState ? To(window).trigger("otloadbanner") : window.addEventListener("load", function(e) { | |
| To(window).trigger("otloadbanner") | |
| }) : "loading" !== document.readyState ? To(window).trigger("otloadbanner") : window.addEventListener("DOMContentLoaded", function(e) { | |
| To(window).trigger("otloadbanner") | |
| }), | |
| vo.pubDomainData.IsBannerLoaded = !0 | |
| } | |
| , | |
| fn.prototype.OnConsentChanged = function(e) { | |
| var t = e.toString(); | |
| Cn.consentChangedEventMap[t] || (Cn.consentChangedEventMap[t] = !0, | |
| window.addEventListener("consent.onetrust", e)) | |
| } | |
| , | |
| fn.prototype.triggerGoogleAnalyticsEvent = function(e, t, o, n) { | |
| var r = !1; | |
| if (lo.moduleInitializer.GATrackToggle && ("AS" === lo.moduleInitializer.GATrackAssignedCategory || "" === lo.moduleInitializer.GATrackAssignedCategory || window.OnetrustActiveGroups.includes("," + lo.moduleInitializer.GATrackAssignedCategory + ",")) && (r = !0), | |
| !vo.ignoreGoogleAnlyticsCall && r) { | |
| void 0 !== window._gaq && window._gaq.push(["_trackEvent", e, t, o, n]), | |
| "function" == typeof window.ga && window.ga("send", "event", e, t, o, n); | |
| var i = window[vo.otDataLayer.name]; | |
| !vo.otDataLayer.ignore && void 0 !== i && i && i.constructor === Array && i.push({ | |
| event: "trackOptanonEvent", | |
| optanonCategory: e, | |
| optanonAction: t, | |
| optanonLabel: o, | |
| optanonValue: n | |
| }) | |
| } | |
| } | |
| , | |
| fn.prototype.setAlertBoxClosed = function(e) { | |
| var t = (new Date).toISOString(); | |
| e ? uo.setCookie(pt.ALERT_BOX_CLOSED, t, ko.ReconsentFrequencyDays) : uo.setCookie(pt.ALERT_BOX_CLOSED, t, 0); | |
| var o = To(".onetrust-pc-dark-filter").el[0]; | |
| o && "none" !== getComputedStyle(o).getPropertyValue("display") && To(".onetrust-pc-dark-filter").fadeOut(400) | |
| } | |
| , | |
| fn.prototype.updateConsentFromCookie = function(t) { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| return t ? (Jo.isInitIABCookieData(t) || Jo.updateFromGlobalConsent(t), | |
| "init" === t && (uo.removeIab1(), | |
| Ro.isAlertBoxClosedAndValid() && Ro.resetTCModel(), | |
| uo.removeAlertBox())) : (Ro.resetTCModel(), | |
| Ro.updateCrossConsentCookie(!1), | |
| Ro.setIABCookieData()), | |
| Cn.assetPromise.then(function() { | |
| Cn.loadBanner() | |
| }), | |
| [2] | |
| }) | |
| }) | |
| } | |
| , | |
| fn); | |
| function fn() { | |
| var t = this; | |
| this.consentChangedEventMap = {}, | |
| this.assetResolve = null, | |
| this.assetPromise = new Promise(function(e) { | |
| t.assetResolve = e | |
| } | |
| ) | |
| } | |
| var vn, kn = "opt-out", mn = "OneTrust Cookie Consent", bn = "Banner Auto Close", Sn = "Banner Close Button", Pn = "Banner - Continue without Accepting", Tn = "Banner - Confirm", An = "Preferences Close Button", In = "Preference Center Opened From Banner", Ln = "Preference Center Opened From Button", _n = "Preference Center Opened From Function", En = "Preferences Save Settings", Vn = "Vendors List Opened From Function", Bn = "Floating Cookie Settings Open Button", wn = "Floating Cookie Settings Close Button", On = "Preferences Toggle On", xn = "Preferences Toggle Off", Gn = "General Vendor Toggle On", Nn = "General Vendor Toggle Off", Dn = "Host Toggle On", Hn = "Host Toggle Off", Fn = "Preferences Legitimate Interest Objection", Rn = "Preferences Legitimate Interest Remove Objection", qn = "IAB Vendor Toggle ON", Mn = "IAB Vendor Toggle Off", Un = "IAB Vendor Legitimate Interest Objection", jn = "IAB Vendor Legitimate Interest Remove Objection", zn = "Vendor Service Toggle On", Kn = "Vendor Service Toggle Off", Wn = (Jn.prototype.initializeFeaturesAndSpecialPurposes = function() { | |
| bo.oneTrustIABConsent.features = [], | |
| bo.oneTrustIABConsent.specialPurposes = [], | |
| ko.Groups.forEach(function(e) { | |
| if ("IAB2_FEATURE" === e.Type || "IAB2_SPL_PURPOSE" === e.Type) { | |
| var t = {}; | |
| t.groupId = e.OptanonGroupId, | |
| t.purposeId = e.PurposeId, | |
| t.value = !0, | |
| "IAB2_FEATURE" === e.Type ? bo.oneTrustIABConsent.features.push(t) : bo.oneTrustIABConsent.specialPurposes.push(t) | |
| } | |
| }) | |
| } | |
| , | |
| Jn.prototype.initGrpsAndHosts = function() { | |
| this.initializeGroupData(vo.consentableGrps), | |
| ko.showCookieList && wo.isOptOutEnabled() ? this.initializeHostData(vo.consentableGrps) : (bo.hostsConsent = [], | |
| Qo.writeHstParam(pt.OPTANON_CONSENT)) | |
| } | |
| , | |
| Jn.prototype.ensureHtmlGroupDataInitialised = function() { | |
| if (this.initGrpsAndHosts(), | |
| bo.showGeneralVendors && (rn.populateGenVendorLists(), | |
| rn.initGenVendorConsent()), | |
| ko.IsIabEnabled && (this.initializeIABData(), | |
| this.initializeFeaturesAndSpecialPurposes()), | |
| bo.vsIsActiveAndOptOut && this.initializeVendorsService(), | |
| Ro.setOrUpdate3rdPartyIABConsentFlag(), | |
| Ro.setGeolocationInCookies(), | |
| ko.IsConsentLoggingEnabled) { | |
| var e = window.OneTrust.dataSubjectParams || {} | |
| , t = uo.readCookieParam(pt.OPTANON_CONSENT, "iType") | |
| , o = "" | |
| , n = !1; | |
| t && bo.isV2Stub && e.id && e.token && (n = !0, | |
| o = K[t]), | |
| zo.createConsentTxn(!1, o, !1, n) | |
| } | |
| } | |
| , | |
| Jn.prototype.initializeVendorsService = function() { | |
| var n = Ro.isAlertBoxClosedAndValid() | |
| , e = uo.readCookieParam(pt.OPTANON_CONSENT, tn) | |
| , r = ho.strToMap(e); | |
| bo.getVendorsInDomain().forEach(function(e, t) { | |
| if (!r.has(t)) { | |
| var o = !n && Mo.checkIsActiveByDefault(e.groupRef); | |
| r.set(t, o) | |
| } | |
| }), | |
| bo.vsConsent = r | |
| } | |
| , | |
| Jn.prototype.initializeGroupData = function(e) { | |
| var t = uo.readCookieParam(pt.OPTANON_CONSENT, $o); | |
| t ? (ln.synchroniseCookieGroupData(e), | |
| t = uo.readCookieParam(pt.OPTANON_CONSENT, $o), | |
| bo.groupsConsent = ho.strToArr(t)) : (bo.groupsConsent = [], | |
| e.forEach(function(e) { | |
| bo.groupsConsent.push(e.CustomGroupId + (Mo.checkIsActiveByDefault(e) && e.HasConsentOptOut ? ":1" : ":0")) | |
| }), | |
| ko.IsConsentLoggingEnabled && window.addEventListener("beforeunload", this.consentDefaulCall)) | |
| } | |
| , | |
| Jn.prototype.initializeHostData = function(e) { | |
| var t = uo.readCookieParam(pt.OPTANON_CONSENT, "hosts"); | |
| if (t) | |
| ln.synchroniseCookieHostData(), | |
| t = uo.readCookieParam(pt.OPTANON_CONSENT, "hosts"), | |
| bo.hostsConsent = ho.strToArr(t), | |
| e.forEach(function(e) { | |
| Mo.isAlwaysActiveGroup(e) && e.Hosts.length && e.Hosts.forEach(function(e) { | |
| bo.oneTrustAlwaysActiveHosts.push(e.HostId) | |
| }) | |
| }); | |
| else { | |
| bo.hostsConsent = []; | |
| var r = {}; | |
| e.forEach(function(e) { | |
| var o = Mo.isAlwaysActiveGroup(e) | |
| , n = bo.syncRequired ? ln.groupHasConsent(e) : Mo.checkIsActiveByDefault(e); | |
| e.Hosts.length && e.Hosts.forEach(function(e) { | |
| if (r[e.HostId]) | |
| ln.updateHostStatus(e, n); | |
| else { | |
| r[e.HostId] = !0, | |
| o && bo.oneTrustAlwaysActiveHosts.push(e.HostId); | |
| var t = ln.isHostPartOfAlwaysActiveGroup(e.HostId); | |
| bo.hostsConsent.push(e.HostId + (t || n ? ":1" : ":0")) | |
| } | |
| }) | |
| }) | |
| } | |
| } | |
| , | |
| Jn.prototype.consentDefaulCall = function() { | |
| var e = parseInt(uo.readCookieParam(pt.OPTANON_CONSENT, st), 10); | |
| !isNaN(e) && 0 !== e || (Cn.triggerGoogleAnalyticsEvent(mn, "Click", "No interaction"), | |
| ko.IsConsentLoggingEnabled && zo.createConsentTxn(!0), | |
| window.removeEventListener("beforeunload", vn.consentDefaulCall)) | |
| } | |
| , | |
| Jn.prototype.fetchAssets = function(h) { | |
| return void 0 === h && (h = null), | |
| u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s, a, l, c, d, p, u; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return s = lo.moduleInitializer, | |
| a = Ro.isAlertBoxClosedAndValid(), | |
| l = !!h, | |
| c = vn.isFetchBanner(s.IsSuppressBanner, a), | |
| d = vn.cookieSettingBtnPresent(), | |
| i = "IAB2" === ko.IabType ? ko.PCShowPersistentCookiesHoverButton && (!ko.PCenterDynamicRenderingEnable || ko.PCenterDynamicRenderingEnable && !d) : ko.PCShowPersistentCookiesHoverButton, | |
| p = "true" === bo.urlParams.get(qt), | |
| bo.hideBanner = p, | |
| [4, Promise.all([!c || ko.NoBanner || p ? Promise.resolve(null) : Eo.getBannerContent(l, h), !s.IsSuppressPC || bo.isPCVisible ? Eo.getPcContent() : Promise.resolve(null), i ? Eo.getCSBtnContent() : Promise.resolve(null), Eo.getCommonStyles()])]; | |
| case 1: | |
| return u = e.sent(), | |
| t = u[0], | |
| o = u[1], | |
| n = u[2], | |
| r = u[3], | |
| vn.fetchContent(t, o, n, r), | |
| vn.setCookieListGroupData(), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Jn.prototype.fetchContent = function(e, t, o, n) { | |
| if (e) { | |
| var r = e.html; | |
| lo.fp.CookieV2SSR || (r = atob(e.html)), | |
| this.bannerGroup = { | |
| name: e.name, | |
| html: r, | |
| css: e.css | |
| } | |
| } | |
| t && (this.preferenceCenterGroup = { | |
| name: t.name, | |
| html: atob(t.html), | |
| css: t.css | |
| }, | |
| lo.isV2Template = ko.PCTemplateUpgrade && /otPcPanel|otPcCenter|otPcTab/.test(t.name)), | |
| o && (this.csBtnGroup = { | |
| name: "CookieSettingsButton", | |
| html: atob(o.html), | |
| css: o.css | |
| }), | |
| n && (this.commonStyles = n) | |
| } | |
| , | |
| Jn.prototype.cookieSettingBtnPresent = function() { | |
| return To("#ot-sdk-btn").length || To(".ot-sdk-show-settings").length || To(".optanon-show-settings").length | |
| } | |
| , | |
| Jn.prototype.isFetchBanner = function(e, t) { | |
| return !e || ko.ShowAlertNotice && !t && e && !To("#onetrust-banner-sdk").length | |
| } | |
| , | |
| Jn.prototype.setCookieListGroupData = function() { | |
| if (!lo.fp.CookieV2TrackingTechnologies) { | |
| var e = (new un).assets(); | |
| vn.cookieListGroup = { | |
| name: e.name, | |
| html: e.html, | |
| css: ko.useRTL ? e.cssRTL : e.css | |
| } | |
| } | |
| } | |
| , | |
| Jn.prototype.initializeIabPurposeConsentOnReload = function() { | |
| var t = this; | |
| vo.consentableIabGrps.forEach(function(e) { | |
| t.setIABConsent(e, !1), | |
| e.IsLegIntToggle = !0, | |
| t.setIABConsent(e, !1) | |
| }) | |
| } | |
| , | |
| Jn.prototype.initializeIABData = function(o, n, r) { | |
| var i = this; | |
| void 0 === o && (o = !1), | |
| void 0 === n && (n = !1), | |
| void 0 === r && (r = !1); | |
| var e = bo.oneTrustIABConsent; | |
| e.purpose = [], | |
| e.vendors = [], | |
| e.legIntVendors = [], | |
| e.specialFeatures = [], | |
| e.legimateInterest = []; | |
| var t = bo.addtlVendors | |
| , s = ko.VendorConsentModel === kn; | |
| if (t.vendorConsent = [], | |
| !e.IABCookieValue || o || n || Ro.reconsentRequired()) { | |
| vo.consentableIabGrps.forEach(function(e) { | |
| if (n && !r) | |
| i.setIABConsent(e, Mo.isAlwaysActiveGroup(e)); | |
| else if (r) | |
| e.HasConsentOptOut && i.setIABConsent(e, !1); | |
| else { | |
| var t = o && e.HasConsentOptOut; | |
| i.setIABConsent(e, t), | |
| "IAB2_PURPOSE" === e.Type && (e.IsLegIntToggle = !0, | |
| i.setIABConsent(e, e.HasLegIntOptOut)) | |
| } | |
| }), | |
| ko.IsIabEnabled && r && (bo.oneTrustIABConsent.legimateInterest = bo.vendors.selectedLegInt.slice()); | |
| var a = o || !n && s; | |
| r && (a = s), | |
| Ro.setIABVendor(a, r), | |
| !Ro.reconsentRequired() || o || n || Ro.resetTCModel() | |
| } else | |
| this.initializeIabPurposeConsentOnReload(), | |
| Jo.populateGoogleConsent(), | |
| Jo.populateVendorAndPurposeFromCookieData() | |
| } | |
| , | |
| Jn.prototype.canSoftOptInInsertForGroup = function(e) { | |
| var t = Mo.getGroupById(e); | |
| if (t) { | |
| var o = t && !t.Parent ? t : Mo.getParentGroup(t.Parent); | |
| return "inactive landingpage" !== Mo.getGrpStatus(o).toLowerCase() || !pn.isLandingPage() | |
| } | |
| } | |
| , | |
| Jn.prototype.setIABConsent = function(e, t) { | |
| e.Type === eo ? this.setIabSpeciFeatureConsent(e, t) : e.IsLegIntToggle ? (this.setIabLegIntConsent(e, t), | |
| e.IsLegIntToggle = !1) : this.setIabPurposeConsent(e, t) | |
| } | |
| , | |
| Jn.prototype.setIabPurposeConsent = function(o, n) { | |
| var r = !1; | |
| bo.oneTrustIABConsent.purpose = bo.oneTrustIABConsent.purpose.map(function(e) { | |
| var t = e.split(":")[0]; | |
| return t === o.IabGrpId && (e = t + ":" + n, | |
| r = !0), | |
| e | |
| }), | |
| r || bo.oneTrustIABConsent.purpose.push(o.IabGrpId + ":" + n) | |
| } | |
| , | |
| Jn.prototype.setIabLegIntConsent = function(o, n) { | |
| var r = !1; | |
| bo.oneTrustIABConsent.legimateInterest = bo.oneTrustIABConsent.legimateInterest.map(function(e) { | |
| var t = e.split(":")[0]; | |
| return t === o.IabGrpId && (e = t + ":" + n, | |
| r = !0), | |
| e | |
| }), | |
| r || bo.oneTrustIABConsent.legimateInterest.push(o.IabGrpId + ":" + n) | |
| } | |
| , | |
| Jn.prototype.setIabSpeciFeatureConsent = function(o, n) { | |
| var r = !1; | |
| bo.oneTrustIABConsent.specialFeatures = bo.oneTrustIABConsent.specialFeatures.map(function(e) { | |
| var t = e.split(":")[0]; | |
| return t === o.IabGrpId && (e = t + ":" + n, | |
| r = !0), | |
| e | |
| }), | |
| r || bo.oneTrustIABConsent.specialFeatures.push(o.IabGrpId + ":" + n) | |
| } | |
| , | |
| Jn); | |
| function Jn() {} | |
| var Yn, Xn = (Qn.prototype.getAllowAllButton = function() { | |
| return To("#onetrust-pc-sdk #accept-recommended-btn-handler") | |
| } | |
| , | |
| Qn.prototype.getSelectedVendors = function() { | |
| return To("#onetrust-pc-sdk " + Go.P_Tgl_Cntr + " .ot-checkbox input:checked") | |
| } | |
| , | |
| Qn); | |
| function Qn() {} | |
| var $n, Zn = (er.prototype.setBannerFocus = function() { | |
| var e = Array.prototype.slice.call(To("#onetrust-banner-sdk .onetrust-vendors-list-handler").el) | |
| , t = Array.prototype.slice.call(To('#onetrust-banner-sdk #onetrust-policy-text [href],#onetrust-banner-sdk #onetrust-policy-text button,#onetrust-banner-sdk #onetrust-policy-text [tabindex]:not([tabindex="-1"])').el) | |
| , o = Array.prototype.slice.call(To("#onetrust-banner-sdk .ot-bnr-save-handler").el) | |
| , n = Array.prototype.slice.call(To("#onetrust-banner-sdk #onetrust-pc-btn-handler").el) | |
| , r = Array.prototype.concat.call(Array.prototype.slice.call(To("#onetrust-banner-sdk .category-switch-handler:not([disabled])").el), Array.prototype.slice.call(To("#onetrust-banner-sdk .ot-cat-lst button").el), e) | |
| , i = Array.prototype.concat.call(t, r) | |
| , s = Array.prototype.slice.call(To("#onetrust-banner-sdk .onetrust-close-btn-handler").el); | |
| vo.bannerName === Bt && (i = Array.prototype.concat.call(e, t)); | |
| var a = Array.prototype.slice.call(To("#onetrust-banner-sdk #onetrust-accept-btn-handler").el) | |
| , l = Array.prototype.slice.call(To("#onetrust-banner-sdk #onetrust-reject-all-handler").el) | |
| , c = Array.prototype.concat.call(o, a, l, n); | |
| (vo.bannerName !== Et || ko.IsIabEnabled) && vo.bannerName !== _t && vo.bannerName !== Ot || (c = Array.prototype.concat.call(n, l, a)); | |
| var d = Array.prototype.slice.call(To("#onetrust-banner-sdk .ot-gv-list-handler").el); | |
| vo.bannerName === xt ? (i = Array.prototype.concat.call(d, i), | |
| c = Array.prototype.slice.call(To("#onetrust-banner-sdk #onetrust-button-group button").el)) : i = Array.prototype.concat.call(i, d), | |
| this.bannerEl = Array.prototype.concat.call(Array.prototype.slice.call(To("#onetrust-banner-sdk #onetrust-cookie-btn").el), i, Array.prototype.slice.call(To("#onetrust-banner-sdk .banner-option-input").el), c, Array.prototype.slice.call(To("#onetrust-banner-sdk .ot-bnr-footer-logo a").el), s), | |
| this.banner = To("#onetrust-banner-sdk").el[0], | |
| (ko.BInitialFocus || ko.BInitialFocusLinkAndButton || ko.ForceConsent) && (ko.BInitialFocus ? this.banner.focus() : this.bannerEl[0].focus()) | |
| } | |
| , | |
| er.prototype.handleBannerFocus = function(e, t) { | |
| var o = e.target | |
| , n = $n.bannerEl | |
| , r = n.indexOf(o) | |
| , i = n.length - 1 | |
| , s = null; | |
| if (this.handleBannerFocusBodyReset(t, r, i)) | |
| wo.resetFocusToBody(); | |
| else if (this.banner === o) | |
| s = this.handleInitialBannerFocus(t, n, i, s); | |
| else | |
| for (; !s; ) { | |
| var a = void 0; | |
| 0 !== (a = t ? r <= 0 ? n[i] : n[r - 1] : r === i ? n[0] : n[r + 1]).clientHeight || 0 !== a.offsetHeight ? s = a : t ? r-- : r++ | |
| } | |
| s && (e.preventDefault(), | |
| s.focus()) | |
| } | |
| , | |
| er.prototype.handleBannerFocusBodyReset = function(e, t, o) { | |
| return !(ko.ForceConsent || !ko.BInitialFocus && !ko.BInitialFocusLinkAndButton || !(e && 0 === t || !e && t === o)) | |
| } | |
| , | |
| er.prototype.handleInitialBannerFocus = function(e, t, o, n) { | |
| return e && ko.ForceConsent ? n = t[o] : e || (n = t[0]), | |
| n | |
| } | |
| , | |
| er.prototype.setPCFocus = function(e) { | |
| if (e && !(e.length <= 0)) { | |
| for (var t = 0; t < e.length; t++) | |
| e[t].setAttribute("tabindex", "0"); | |
| this.setFirstAndLast(e); | |
| var o = ko.ShowPreferenceCenterCloseButton | |
| , n = o ? this.getElementForFocus(e, ko.PCLayout.Popup ? 2 : 1, !0) : null | |
| , r = { | |
| preventScroll: !0 | |
| }; | |
| this.firstItem ? o ? n.focus(r) : this.firstItem.focus(r) : e[0].focus(), | |
| this.firstItem && To(this.firstItem).on("keydown", $n.firstItemHandler), | |
| this.lastItem && To(this.lastItem).on("keydown", $n.lastItemHandler) | |
| } | |
| } | |
| , | |
| er.prototype.setFirstAndLast = function(e) { | |
| this.firstItem = this.getElementForFocus(e, 0, !0), | |
| this.lastItem = this.firstItem ? this.getElementForFocus(e, e.length - 1, !1) : null | |
| } | |
| , | |
| er.prototype.setLastItem = function() { | |
| var e = this.getPCElements() | |
| , t = this.getElementForFocus(e, e.length - 1, !1); | |
| t !== this.lastItem && (To(this.lastItem).off("keydown", $n.lastItemHandler), | |
| this.lastItem = t, | |
| To(t).on("keydown", $n.lastItemHandler)) | |
| } | |
| , | |
| er.prototype.getPCElements = function() { | |
| var e = "#onetrust-pc-sdk #close-pc-btn-handler,\n #onetrust-pc-sdk .back-btn-handler,\n #onetrust-pc-sdk ." + Go.P_Active_Menu + ',\n #onetrust-pc-sdk input,\n #onetrust-pc-sdk a,\n #onetrust-pc-sdk [tabindex="0"] button,\n #onetrust-pc-sdk .save-preference-btn-handler,\n #onetrust-pc-sdk .ot-pc-refuse-all-handler,\n #onetrust-pc-sdk #accept-recommended-btn-handler'; | |
| return bo.pcLayer === O.CookieList ? e += " ,#onetrust-pc-sdk " + Go.P_Content + " .powered-by-logo" : e += ",#onetrust-pc-sdk #vendor-list-save-btn .powered-by-logo", | |
| Array.prototype.slice.call(To(e).el) | |
| } | |
| , | |
| er.prototype.getActiveTab = function() { | |
| return document.querySelector('#onetrust-pc-sdk .category-menu-switch-handler[tabindex="0"]') | |
| } | |
| , | |
| er.prototype.getElementForFocus = function(e, t, o) { | |
| for (var n = e[t]; o ? n && null === n.offsetParent && t < e.length - 1 : n && null === n.offsetParent && 0 < t; ) | |
| n = e[t], | |
| o ? ++t : --t; | |
| return n | |
| } | |
| , | |
| er.prototype.firstItemHandler = function(e) { | |
| var t = document.getElementById("onetrust-banner-sdk"); | |
| if (9 === e.keyCode && e.shiftKey && $n.firstItem !== t) | |
| e.preventDefault(), | |
| $n.lastItem.focus(); | |
| else { | |
| var o = "close-pc-btn-handler" === e.target.id && ("13" === e.keyCode || "32" === e.keyCode || "Enter" === e.code || "Space" === e.code); | |
| if (ko.PCLayout.Tab && bo.pcLayer === O.PrefCenterHome && !o) { | |
| var n = $n.getActiveTab(); | |
| n && (e.preventDefault(), | |
| n.focus()) | |
| } | |
| } | |
| } | |
| , | |
| er.prototype.lastItemHandler = function(e) { | |
| if (9 === e.keyCode && !e.shiftKey) { | |
| e.preventDefault(); | |
| var t = bo.pcLayer === O.VendorList || bo.pcLayer === O.CookieList; | |
| ko.PCLayout.Tab && bo.isPCVisible && !ko.ShowPreferenceCenterCloseButton && !t ? $n.getActiveTab().focus() : $n.firstItem.focus() | |
| } | |
| } | |
| , | |
| er); | |
| function er() { | |
| this.bannerEl = [] | |
| } | |
| var tr, or = (nr.prototype.getAllGroupElements = function() { | |
| return document.querySelectorAll("div#onetrust-pc-sdk " + Go.P_Category_Grp + " " + Go.P_Category_Item + ":not(.ot-vnd-item)") | |
| } | |
| , | |
| nr.prototype.toggleGrpElements = function(e, t, o, n) { | |
| void 0 === n && (n = !1), | |
| vo.pcName === Rt && ko.PCTemplateUpgrade && (e = document.querySelector("#ot-desc-id-" + e.getAttribute("data-optanongroupid"))); | |
| for (var r = e.querySelectorAll('input[class*="category-switch-handler"]'), i = 0; i < r.length; i++) { | |
| var s = r[i].getAttribute("id").includes("leg-out"); | |
| n && (!n || s) || (ho.setCheckedAttribute(null, r[i], o), | |
| r[i] && ko.PCShowConsentLabels && (r[i].parentElement.parentElement.querySelector(".ot-label-status").innerHTML = o ? ko.PCActiveText : ko.PCInactiveText)) | |
| } | |
| vo.legIntSettings.PAllowLI && vo.legIntSettings.PShowLegIntBtn && t.Type === Zt && t.HasLegIntOptOut && !n && tr.updateLegIntBtnElement(e.querySelector(".ot-leg-btn-container"), o) | |
| } | |
| , | |
| nr.prototype.toogleAllSubGrpElements = function(e, t) { | |
| if (e.ShowSubgroup) { | |
| var o = e.CustomGroupId | |
| , n = this.getGroupElementByOptanonGroupId(o.toString()); | |
| tr.toogleSubGroupElement(n, t, e.IsLegIntToggle) | |
| } else | |
| this.updateHiddenSubGroupData(e, t) | |
| } | |
| , | |
| nr.prototype.toogleSubGroupElement = function(e, t, o, n) { | |
| void 0 === o && (o = !1), | |
| void 0 === n && (n = !1), | |
| vo.pcName === Rt && ko.PCTemplateUpgrade && (e = document.querySelector("#ot-desc-id-" + e.getAttribute("data-optanongroupid"))); | |
| for (var r = e.querySelectorAll("li" + Go.P_Subgrp_li), i = 0; i < r.length; i++) { | |
| var s = Mo.getGroupById(r[i].getAttribute("data-optanongroupid")) | |
| , a = s.OptanonGroupId | |
| , l = Mo.getParentGroup(s.Parent); | |
| vo.legIntSettings.PAllowLI && vo.legIntSettings.PShowLegIntBtn && o && s.Type === Zt && s.HasLegIntOptOut && l.ShowSubgroupToggle && tr.updateLegIntBtnElement(r[i], t); | |
| var c = o ? "[id='ot-sub-group-id-" + a + "-leg-out']" : "[id='ot-sub-group-id-" + a + "']" | |
| , d = r[i].querySelector('input[class*="cookie-subgroup-handler"]' + c); | |
| ho.setCheckedAttribute(null, d, t), | |
| d && ko.PCShowConsentLabels && (d.parentElement.parentElement.querySelector(".ot-label-status").innerHTML = t ? ko.PCActiveText : ko.PCInactiveText), | |
| n || (s.IsLegIntToggle = o, | |
| tr.toggleGrpStatus(s, t), | |
| s.IsLegIntToggle = !1, | |
| ln.toggleGroupHosts(s, t), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(s, t)) | |
| } | |
| } | |
| , | |
| nr.prototype.toggleGrpStatus = function(e, t) { | |
| var o = e.IsLegIntToggle && e.Type === Zt ? t ? Rn : Fn : t ? On : xn; | |
| Cn.triggerGoogleAnalyticsEvent(mn, o, e.GroupName + ": " + e.OptanonGroupId), | |
| t ? this.updateEnabledGroupData(e) : this.updateDisabledGroupData(e) | |
| } | |
| , | |
| nr.prototype.setInputID = function(e, t, o, n, r) { | |
| To(e).attr("id", t), | |
| To(e).attr("name", t), | |
| To(e).data("optanonGroupId", o), | |
| ho.setCheckedAttribute(null, e, n), | |
| To(e).attr("aria-labelledby", r) | |
| } | |
| , | |
| nr.prototype.updateEnabledGroupData = function(e) { | |
| if (-1 < io.indexOf(e.Type)) | |
| this.updateIabGroupData(e, !0); | |
| else { | |
| var t = tr.getGroupVariable() | |
| , o = ho.indexOf(t, e.CustomGroupId + ":0"); | |
| -1 !== o && (t[o] = e.CustomGroupId + ":1") | |
| } | |
| } | |
| , | |
| nr.prototype.updateDisabledGroupData = function(e) { | |
| if (-1 < io.indexOf(e.Type)) | |
| this.updateIabGroupData(e, !1); | |
| else if (e.Status !== ft) { | |
| var t = tr.getGroupVariable() | |
| , o = ho.indexOf(t, e.CustomGroupId + ":1"); | |
| -1 !== o && (t[o] = e.CustomGroupId + ":0") | |
| } | |
| } | |
| , | |
| nr.prototype.updateIabGroupData = function(e, t) { | |
| if (e.Type === eo) | |
| this.updateIabSpecialFeatureData(e.IabGrpId, t); | |
| else { | |
| var o = e.IsLegIntToggle ? bo.vendors.selectedLegInt : bo.vendors.selectedPurpose; | |
| this.updateIabPurposeData(e.IabGrpId, t, o) | |
| } | |
| } | |
| , | |
| nr.prototype.isAllSubgroupsDisabled = function(e) { | |
| return !e.SubGroups.some(function(e) { | |
| return tr.isGroupActive(e) | |
| }) | |
| } | |
| , | |
| nr.prototype.isAllSubgroupsEnabled = function(e) { | |
| return !e.SubGroups.some(function(e) { | |
| return tr.IsGroupInActive(e) | |
| }) | |
| } | |
| , | |
| nr.prototype.toggleGroupHtmlElement = function(e, t, o) { | |
| if (vo.legIntSettings.PAllowLI && vo.legIntSettings.PShowLegIntBtn && e.Type === Zt && e.HasLegIntOptOut) { | |
| var n = document.querySelector("[data-el-id=" + t + "]"); | |
| n && this.updateLegIntBtnElement(n, o) | |
| } | |
| var r = To("#ot-group-id-" + t).el[0]; | |
| ho.setCheckedAttribute(null, r, o), | |
| r && ko.PCShowConsentLabels && (r.parentElement.querySelector(".ot-label-status").innerHTML = o ? ko.PCActiveText : ko.PCInactiveText) | |
| } | |
| , | |
| nr.prototype.updateLegIntBtnElement = function(e, t) { | |
| var o = vo.legIntSettings | |
| , n = e.querySelector(".ot-obj-leg-btn-handler") | |
| , r = e.querySelector(".ot-remove-objection-handler"); | |
| t ? (n.classList.add("ot-inactive-leg-btn"), | |
| n.classList.add("ot-leg-int-enabled"), | |
| n.classList.remove("ot-active-leg-btn")) : (n.classList.add("ot-active-leg-btn"), | |
| n.classList.remove("ot-inactive-leg-btn"), | |
| n.classList.remove("ot-leg-int-enabled")), | |
| n.querySelector("span").innerText = t ? o.PObjectLegIntText : o.PObjectionAppliedText, | |
| co(r, "display: " + (t ? "none" : "inline-block") + ";", !0) | |
| } | |
| , | |
| nr.prototype.isGroupActive = function(e) { | |
| return -1 < io.indexOf(e.Type) ? -1 !== this.isIabPurposeActive(e) : -1 !== So.inArray(e.CustomGroupId + ":1", tr.getGroupVariable()) | |
| } | |
| , | |
| nr.prototype.safeFormattedGroupDescription = function(e) { | |
| return e && e.GroupDescription ? e.GroupDescription.replace(/\r\n/g, "<br>") : "" | |
| } | |
| , | |
| nr.prototype.canInsertForGroup = function(e, t) { | |
| void 0 === t && (t = !1); | |
| var o, n = null != e && void 0 !== e, r = uo.readCookieParam(pt.OPTANON_CONSENT, "groups"), i = bo.groupsConsent.join(","), s = uo.readCookieParam(pt.OPTANON_CONSENT, "hosts"), a = bo.hostsConsent.join(","); | |
| if (t) | |
| return !0; | |
| r === i && s === a || vn.ensureHtmlGroupDataInitialised(); | |
| var l = []; | |
| if (bo.showGeneralVendors) | |
| for (var c = 0, d = Object.entries(bo.genVendorsConsent); c < d.length; c++) { | |
| var p = d[c] | |
| , u = p[0] | |
| , h = p[1]; | |
| l.push(u + ":" + (h ? "1" : "0")) | |
| } | |
| bo.showVendorService && bo.vsConsent.forEach(function(e, t) { | |
| l.push(t + ":" + (e ? "1" : "0")) | |
| }); | |
| var g = bo.groupsConsent.concat(bo.hostsConsent).concat(l); | |
| o = ho.contains(g, e + ":1"); | |
| var C = this.doesHostExist(e) | |
| , y = this.doesGroupExist(e) | |
| , f = !1; | |
| bo.showGeneralVendors ? f = this.doesGenVendorExist(e) : bo.showVendorService && (f = this.doesVendorServiceExist(e)); | |
| var v = !(!C && !f) || o && vn.canSoftOptInInsertForGroup(e); | |
| return !(!n || !(o && v || !y && !C && !f)) | |
| } | |
| , | |
| nr.prototype.setAllowAllButton = function() { | |
| var t = 0 | |
| , e = ko.Groups.some(function(e) { | |
| if (-1 === so.indexOf(e.Type)) | |
| return tr.IsGroupInActive(e) && t++, | |
| e.SubGroups.some(function(e) { | |
| return tr.IsGroupInActive(e) | |
| }) && t++, | |
| 1 <= t | |
| }) | |
| , o = Yn.getAllowAllButton(); | |
| return e ? o.show("inline-block") : o.hide(), | |
| $n.lastItem && $n.setLastItem(), | |
| e | |
| } | |
| , | |
| nr.prototype.isAnyGroupOptedOut = function() { | |
| for (var e = !1, t = 0, o = ko.Groups; t < o.length; t++) { | |
| var n = o[t]; | |
| if (!0 === tr.IsGroupInActive(n)) { | |
| e = !0; | |
| break | |
| } | |
| } | |
| return e | |
| } | |
| , | |
| nr.prototype.getGroupVariable = function() { | |
| return bo.groupsConsent | |
| } | |
| , | |
| nr.prototype.IsGroupInActive = function(e) { | |
| return -1 < io.indexOf(e.Type) ? -1 === this.isIabPurposeActive(e) : !(-1 < so.indexOf(e.Type)) && -1 === So.inArray(e.CustomGroupId + ":1", tr.getGroupVariable()) | |
| } | |
| , | |
| nr.prototype.updateIabPurposeData = function(t, e, o) { | |
| var n = ho.findIndex(o, function(e) { | |
| return e.split(":")[0] === t | |
| }); | |
| o[n = -1 === n ? Number(t) : n] = t + ":" + e | |
| } | |
| , | |
| nr.prototype.updateIabSpecialFeatureData = function(t, e) { | |
| var o = ho.findIndex(bo.vendors.selectedSpecialFeatures, function(e) { | |
| return e.split(":")[0] === t | |
| }); | |
| o = -1 === o ? Number(t) : o, | |
| bo.vendors.selectedSpecialFeatures[o] = t + ":" + e | |
| } | |
| , | |
| nr.prototype.getGroupElementByOptanonGroupId = function(e) { | |
| return document.querySelector("#onetrust-pc-sdk " + Go.P_Category_Grp + " " + Go.P_Category_Item + '[data-optanongroupid=\n "' + e + '"]') | |
| } | |
| , | |
| nr.prototype.updateHiddenSubGroupData = function(e, t) { | |
| e.SubGroups.forEach(function(e) { | |
| tr.toggleGrpStatus(e, t), | |
| ln.toggleGroupHosts(e, t), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(e, t) | |
| }) | |
| } | |
| , | |
| nr.prototype.isIabPurposeActive = function(e) { | |
| var t; | |
| return t = e.Type === eo ? bo.vendors.selectedSpecialFeatures : e.IsLegIntToggle ? bo.vendors.selectedLegInt : bo.vendors.selectedPurpose, | |
| So.inArray(e.IabGrpId + ":true", t) | |
| } | |
| , | |
| nr.prototype.doesGroupExist = function(e) { | |
| return !!Mo.getGroupById(e) | |
| } | |
| , | |
| nr.prototype.doesHostExist = function(e) { | |
| var t = bo.hostsConsent; | |
| return -1 !== t.indexOf(e + ":0") || -1 !== t.indexOf(e + ":1") | |
| } | |
| , | |
| nr.prototype.doesGenVendorExist = function(t) { | |
| return !!ko.GeneralVendors && !!ko.GeneralVendors.find(function(e) { | |
| return e.VendorCustomId === t | |
| }) | |
| } | |
| , | |
| nr.prototype.doesVendorServiceExist = function(e) { | |
| return bo.getVendorsInDomain().has(e) | |
| } | |
| , | |
| nr); | |
| function nr() {} | |
| var rr, ir = (sr.prototype.updateFilterSelection = function(e) { | |
| var t, o; | |
| void 0 === e && (e = !1), | |
| o = e ? (t = bo.filterByCategories, | |
| "data-optanongroupid") : (t = bo.filterByIABCategories, | |
| "data-purposeid"); | |
| for (var n = To("#onetrust-pc-sdk .category-filter-handler").el, r = 0; r < n.length; r++) { | |
| var i = n[r].getAttribute(o) | |
| , s = -1 < t.indexOf(i); | |
| ho.setCheckedAttribute(null, n[r], s) | |
| } | |
| } | |
| , | |
| sr.prototype.cancelHostFilter = function() { | |
| for (var e = To("#onetrust-pc-sdk .category-filter-handler").el, t = 0; t < e.length; t++) { | |
| var o = e[t].getAttribute("data-optanongroupid") | |
| , n = 0 <= bo.filterByCategories.indexOf(o); | |
| ho.setCheckedAttribute(null, e[t], n) | |
| } | |
| } | |
| , | |
| sr.prototype.updateHostFilterList = function() { | |
| for (var e = To("#onetrust-pc-sdk .category-filter-handler").el, t = 0; t < e.length; t++) { | |
| var o = e[t].getAttribute("data-optanongroupid"); | |
| if (e[t].checked && bo.filterByCategories.indexOf(o) < 0) | |
| bo.filterByCategories.push(o); | |
| else if (!e[t].checked && -1 < bo.filterByCategories.indexOf(o)) { | |
| var n = bo.filterByCategories; | |
| bo.filterByCategories.splice(n.indexOf(o), 1) | |
| } | |
| } | |
| return bo.filterByCategories | |
| } | |
| , | |
| sr.prototype.InitializeHostList = function() { | |
| bo.hosts.hostTemplate = To(Go.P_Vendor_List + " " + Go.P_Host_Cntr + " li").el[0].cloneNode(!0), | |
| bo.hosts.hostCookieTemplate = To(Go.P_Vendor_List + " " + Go.P_Host_Cntr + " " + Go.P_Host_Opt + " li").el[0].cloneNode(!0) | |
| } | |
| , | |
| sr.prototype.getCookiesForGroup = function(t) { | |
| var o = [] | |
| , n = []; | |
| return t.FirstPartyCookies.length && t.FirstPartyCookies.forEach(function(e) { | |
| n.push(d(d({}, e), { | |
| groupName: t.GroupName | |
| })) | |
| }), | |
| t.Hosts.length && t.Hosts.forEach(function(e) { | |
| o.push(d(d({}, e), { | |
| isActive: "always active" === Mo.getGrpStatus(t).toLowerCase(), | |
| groupName: t.GroupName, | |
| Type: Q.Host | |
| })) | |
| }), | |
| { | |
| firstPartyCookiesList: n, | |
| thirdPartyCookiesList: o | |
| } | |
| } | |
| , | |
| sr.prototype.reactivateSrcTag = function(e) { | |
| var t = ["src"]; | |
| e.setAttribute(t[0], e.getAttribute("data-" + t[0])), | |
| e.removeAttribute("data-src") | |
| } | |
| , | |
| sr.prototype.reactivateScriptTag = function(e) { | |
| var t = e.parentNode | |
| , o = document.createElement(e.tagName); | |
| o.innerHTML = e.innerHTML; | |
| var n = e.attributes; | |
| if (0 < n.length) | |
| for (var r = 0; r < n.length; r++) | |
| "type" !== n[r].name ? o.setAttribute(n[r].name, n[r].value, !0) : o.setAttribute("type", "text/javascript", !0); | |
| t.appendChild(o), | |
| t.removeChild(e) | |
| } | |
| , | |
| sr.prototype.reactivateTag = function(e, t) { | |
| var o, n = 0 <= e.className.indexOf("ot-vscat"), r = 0 <= e.className.indexOf("optanon-category"); | |
| n && r ? o = this.getGroupElements(e.className, bo.showVendorService) : n ? bo.showVendorService ? o = this.getGroupElements(e.className, !0) : this.unBlockTag(t, e) : r && (bo.showVendorService ? this.unBlockTag(t, e) : o = this.getGroupElements(e.className, !1)); | |
| var i = !0; | |
| if (o && 0 < o.length) { | |
| for (var s = 0; s < o.length; s++) | |
| if (!tr.canInsertForGroup(o[s].trim())) { | |
| i = !1; | |
| break | |
| } | |
| i && this.unBlockTag(t, e) | |
| } | |
| } | |
| , | |
| sr.prototype.unBlockTag = function(e, t) { | |
| e ? this.reactivateSrcTag(t) : this.reactivateScriptTag(t) | |
| } | |
| , | |
| sr.prototype.getGroupElements = function(e, t) { | |
| return t ? e.match(/ot-vscat(-[a-zA-Z0-9,]+)+($|\s)/)[0].split(/ot-vscat-/i)[1].split("-") : e.match(/optanon-category(-[a-zA-Z0-9,]+)+($|\s)/)[0].split(/optanon-category-/i)[1].split("-") | |
| } | |
| , | |
| sr.prototype.substitutePlainTextScriptTags = function() { | |
| var t = this | |
| , e = [].slice.call(document.querySelectorAll('script[class*="optanon-category"]')) | |
| , o = [].slice.call(document.querySelectorAll('*[class*="optanon-category"]')); | |
| e = Array.from(new Set(e.concat([].slice.call(document.querySelectorAll('script[class*="ot-vscat"]') || [])))), | |
| o = Array.from(new Set(o.concat([].slice.call(document.querySelectorAll('*[class*="ot-vscat"]') || [])))), | |
| Array.prototype.forEach.call(o, function(e) { | |
| "SCRIPT" !== e.tagName && e.hasAttribute("data-src") && t.reactivateTag(e, !0) | |
| }), | |
| Array.prototype.forEach.call(e, function(e) { | |
| e.hasAttribute("type") && "text/plain" === e.getAttribute("type") && t.reactivateTag(e, !1) | |
| }) | |
| } | |
| , | |
| sr); | |
| function sr() {} | |
| var ar, lr = (cr.prototype.getSearchQuery = function(e) { | |
| var t = this | |
| , o = e.trim().split(/\s+/g); | |
| return new RegExp(o.map(function(e) { | |
| return t.escapeRegExp(e) | |
| }).join("|") + "(.+)?","gi") | |
| } | |
| , | |
| cr.prototype.escapeRegExp = function(e) { | |
| return e.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&") | |
| } | |
| , | |
| cr.prototype.setGlobalFilteredList = function(e) { | |
| return bo.currentGlobalFilteredList = e | |
| } | |
| , | |
| cr.prototype.filterList = function(t, e, n) { | |
| var o = n && n.length; | |
| if ("" === t && !o) | |
| return this.setGlobalFilteredList(e); | |
| if (o) { | |
| var r = To("#onetrust-pc-sdk " + Go.P_Fltr_Options + " input").el.length | |
| , i = [] | |
| , s = !1; | |
| r !== n.length ? e.forEach(function(o) { | |
| s = !0, | |
| o.vendorName && n.forEach(function(e) { | |
| var t = parseInt(vo.iabGrpIdMap[e]); | |
| -1 < e.indexOf("IFEV2_") ? (o.features || []).forEach(function(e) { | |
| e.featureId === t && i.push(o) | |
| }) : -1 < e.indexOf("ISFV2_") ? o.specialFeatures.forEach(function(e) { | |
| e.featureId === t && i.push(o) | |
| }) : -1 < e.indexOf("ISPV2_") ? (o.specialPurposes || []).forEach(function(e) { | |
| e.purposeId === t && i.push(o) | |
| }) : (o.purposes.forEach(function(e) { | |
| e.purposeId === t && i.push(o) | |
| }), | |
| o.legIntPurposes.forEach(function(e) { | |
| e.purposeId === t && i.push(o) | |
| })) | |
| }) | |
| }) : i = e, | |
| s && (i = i.filter(function(e, t, o) { | |
| return o.indexOf(e) === t | |
| })), | |
| this.setGlobalFilteredList(i) | |
| } | |
| return "" === t ? bo.currentGlobalFilteredList : bo.currentGlobalFilteredList.filter(function(e) { | |
| if (e.vendorName) | |
| return e.vendorName.toLowerCase().includes(t.toLowerCase()) | |
| }) | |
| } | |
| , | |
| cr.prototype.loadVendorList = function(e, t) { | |
| void 0 === e && (e = ""); | |
| var o = bo.vendors; | |
| bo.currentGlobalFilteredList = o.list, | |
| e ? (o.searchParam = e, | |
| bo.filterByIABCategories = [], | |
| rr.updateFilterSelection(!1)) : o.searchParam !== e ? o.searchParam = "" : t = bo.filterByIABCategories; | |
| var n = this.filterList(o.searchParam, o.list, t); | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).el[0].scrollTop = 0, | |
| this.initVendorsData(e, n) | |
| } | |
| , | |
| cr.prototype.searchVendors = function(e, t, o, n) { | |
| if (n) { | |
| var r = this.getSearchQuery(n) | |
| , i = 0; | |
| for (var s in t) | |
| if (s) { | |
| var a = o === ie.GoogleVendor ? s : t[s].VendorCustomId | |
| , l = To("" + e.vendorAccBtn + a).el[0].parentElement; | |
| r.lastIndex = 0, | |
| r.test(t[s][e.name]) ? (co(l, this._displayNull, !0), | |
| i++) : co(l, "display: none;", !0) | |
| } | |
| 0 === i ? (To(e.accId).hide(), | |
| o === ie.GoogleVendor ? this.hasGoogleVendors = !1 : this.hasGenVendors = !1) : (o === ie.GoogleVendor ? this.hasGoogleVendors = !0 : this.hasGenVendors = !0, | |
| To(e.accId).show()), | |
| this.showEmptyResults(!this.hasGoogleVendors && !this.hasIabVendors && !this.hasGenVendors, n) | |
| } else | |
| for (var c = To(" " + e.venListId + ' li[style^="display: none"]').el, d = 0; d < c.length; d++) | |
| co(c[d], this._displayNull, !0); | |
| var p = To("#onetrust-pc-sdk " + e.selectAllEvntHndlr).el[0]; | |
| document.querySelector(e.venListId + ' li:not([style^="display: none"]) ' + e.ctgl + " > input[checked]") ? ho.setCheckedAttribute("", p, !0) : ho.setCheckedAttribute("", p, !1), | |
| document.querySelector(e.venListId + ' li:not([style^="display: none"]) ' + e.ctgl + " > input:not([checked])") ? p.parentElement.classList.add("line-through") : p.parentElement.classList.remove("line-through") | |
| } | |
| , | |
| cr.prototype.initGoogleVendors = function() { | |
| this.populateAddtlVendors(bo.addtlVendorsList), | |
| this.venAdtlSelAllTglEvent() | |
| } | |
| , | |
| cr.prototype.initGenVendors = function() { | |
| this.populateGeneralVendors(), | |
| ko.GenVenOptOut && ko.GeneralVendors && ko.GeneralVendors.length && this.genVenSelectAllTglEvent() | |
| } | |
| , | |
| cr.prototype.resetAddtlVendors = function() { | |
| ar.searchVendors(ar.googleSearchSelectors, bo.addtlVendorsList, ie.GoogleVendor), | |
| this.showConsentHeader() | |
| } | |
| , | |
| cr.prototype.venAdtlSelAllTglEvent = function() { | |
| ar.selectAllEventHandler({ | |
| vendorsList: '#ot-addtl-venlst li:not([style^="display: none"]) .ot-ven-adtlctgl input', | |
| selAllCntr: "#onetrust-pc-sdk #ot-selall-adtlvencntr", | |
| selAllChkbox: "#onetrust-pc-sdk #ot-selall-adtlven-handler" | |
| }) | |
| } | |
| , | |
| cr.prototype.genVenSelectAllTglEvent = function() { | |
| var e = { | |
| vendorsList: Go.P_Gven_List + ' li:not([style^="display: none"]) .ot-ven-gvctgl input', | |
| selAllCntr: "#onetrust-pc-sdk #ot-selall-gnvencntr", | |
| selAllChkbox: "#onetrust-pc-sdk #ot-selall-gnven-handler" | |
| }; | |
| ar.selectAllEventHandler(e) | |
| } | |
| , | |
| cr.prototype.selectAllEventHandler = function(e) { | |
| for (var t = To(e.vendorsList).el, o = To(e.selAllCntr).el[0], n = To(e.selAllChkbox).el[0], r = !0, i = 0; i < t.length; i++) { | |
| if (!t[i].checked) { | |
| r = !1; | |
| break | |
| } | |
| r = !0 | |
| } | |
| o && (r ? o.classList.remove("line-through") : o.classList.add("line-through")), | |
| n.checked = !0; | |
| for (var s = 0; s < t.length && !t[s].checked; s++) | |
| s !== t.length - 1 || t[s].checked || (n.checked = !1); | |
| ho.setCheckedAttribute("", n, n.checked) | |
| } | |
| , | |
| cr.prototype.vendorLegIntToggleEvent = function() { | |
| for (var e = To(Go.P_Vendor_Container + ' li:not([style^="display: none"]) .' + Go.P_Ven_Ltgl + " input").el, t = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).el[0], o = To("#onetrust-pc-sdk #select-all-vendor-leg-handler").el[0], n = !0, r = 0; r < e.length; r++) { | |
| if (!e[r].checked) { | |
| n = !1; | |
| break | |
| } | |
| n = !0 | |
| } | |
| n ? t.classList.remove("line-through") : t.classList.add("line-through"), | |
| o.checked = !0; | |
| for (var i = 0; i < e.length && !e[i].checked; i++) | |
| i !== e.length - 1 || e[i].checked || (o.checked = !1); | |
| ho.setCheckedAttribute("", o, o.checked) | |
| } | |
| , | |
| cr.prototype.vendorsListEvent = function() { | |
| for (var e = To(Go.P_Vendor_Container + ' li:not([style^="display: none"]) .' + Go.P_Ven_Ctgl + " input").el, t = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Consent_El).el[0], o = To("#onetrust-pc-sdk #select-all-vendor-groups-handler").el[0], n = !0, r = 0; r < e.length; r++) { | |
| if (!e[r].checked) { | |
| n = !1; | |
| break | |
| } | |
| n = !0 | |
| } | |
| n ? t.classList.remove("line-through") : t.classList.add("line-through"), | |
| o.checked = !0; | |
| for (var i = 0; i < e.length && !e[i].checked; i++) | |
| i !== e.length - 1 || e[i].checked || (o.checked = !1); | |
| ho.setCheckedAttribute("", o, o.checked) | |
| } | |
| , | |
| cr.prototype.showEmptyResults = function(e, t, o) { | |
| void 0 === o && (o = !1); | |
| var n = To("#onetrust-pc-sdk #no-results"); | |
| e ? this.setNoResultsContent(t, o) : (To("#onetrust-pc-sdk " + Go.P_Vendor_Content).removeClass("no-results"), | |
| n.length && n.remove()) | |
| } | |
| , | |
| cr.prototype.playSearchStatus = function(e) { | |
| var t = e ? document.querySelectorAll(Go.P_Host_Cntr + " > li") : document.querySelectorAll(Go.P_Vendor_Container + ' li:not([style$="none;"]),' + Go.P_Gven_List + ' li:not([style$="none;"])') | |
| , o = t.length | |
| , n = To('#onetrust-pc-sdk [role="status"]'); | |
| o ? n.text(t.length + " " + (e ? "host" : "vendor") + (1 < o ? "s" : "") + " returned.") : n.el[0].textContent = "" | |
| } | |
| , | |
| cr.prototype.setNoResultsContent = function(e, t) { | |
| void 0 === t && (t = !1); | |
| var o = To("#onetrust-pc-sdk #no-results").el[0]; | |
| if (!o) { | |
| var n = ar.getNoResultsFound(t) | |
| , r = document.createElement("div") | |
| , i = document.createElement("p") | |
| , s = document.createTextNode(n) | |
| , a = document.createElement("span"); | |
| return r.id = "no-results", | |
| a.id = "user-text", | |
| a.innerText = e, | |
| i.appendChild(a), | |
| i.appendChild(s), | |
| r.appendChild(i), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).addClass("no-results"), | |
| To("#vendor-search-handler").el[0].setAttribute("aria-describedby", r.id), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).append(r) | |
| } | |
| o.querySelector("span").innerText = e | |
| } | |
| , | |
| cr.prototype.searchHostList = function(e) { | |
| var t = {} | |
| , o = []; | |
| bo.showTrackingTech ? (t = bo.currentTrackingTech, | |
| e && (t = ar.getFilteredAdditionaTechtData(e, t)), | |
| o = t.Cookies) : (o = bo.currentGlobalFilteredList, | |
| e && (o = this.searchList(e, o))), | |
| this.initHostData({ | |
| searchString: e, | |
| cookiesList: o, | |
| addTechData: t | |
| }) | |
| } | |
| , | |
| cr.prototype.searchList = function(e, t) { | |
| var o = this.getSearchQuery(e); | |
| return t.filter(function(e) { | |
| return o.lastIndex = 0, | |
| o.test(e.DisplayName || e.HostName) | |
| }) | |
| } | |
| , | |
| cr.prototype.setListSearchValues = function(e) { | |
| var t = ko.PCenterVendorSearchAriaLabel | |
| , o = ko.PCenterVendorListSearch | |
| , n = ko.PCenterVendorsListText; | |
| e === Le.cookies && (t = ko.PCenterCookieSearchAriaLabel, | |
| o = ko.PCenterCookieListSearch, | |
| n = ko.PCenterCookiesListText), | |
| bo.cookieListType !== Z.HostAndGenVen && bo.cookieListType !== Z.Host || !bo.showTrackingTech || (n = ko.AdditionalTechnologiesConfig.PCTrackingTechTitle), | |
| document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Title).innerText = n; | |
| var r = To("#onetrust-pc-sdk " + Go.P_Vendor_Search_Input); | |
| r.el[0].placeholder = o, | |
| r.attr("aria-label", t) | |
| } | |
| , | |
| cr.prototype.initHostData = function(e) { | |
| var t = e.searchString | |
| , o = e.cookiesList | |
| , n = e.addTechData; | |
| bo.optanonHostList = o; | |
| var r = !1; | |
| this.setBackBtnTxt(), | |
| To(Go.P_Vendor_List + " #select-all-text-container p").html(ko.PCenterAllowAllConsentText); | |
| var i = ar.getHostParentContainer() | |
| , s = o && 0 === o.length; | |
| bo.showTrackingTech && (s = 0 === n.LocalStorages.length && 0 === n.SessionStorages.length && (0 === n.Cookies.length || 0 === n.Cookies[0].Cookies.length)); | |
| var a = bo.cookieListType === Z.Host; | |
| this.showEmptyResults(s, t, a), | |
| this.setHostListSearchValues(), | |
| To("#filter-btn-handler").el[0].setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCenterCookieListFilterAria), | |
| To("#filter-btn-handler title").html(ko.PCenterCookieListFilterAria), | |
| lo.isV2Template && To("#ot-sel-blk span:first-child").html(ko.PCenterAllowAllConsentText || ko.ConsentText); | |
| for (var l = document.createDocumentFragment(), c = 0; c < o.length; c++) { | |
| var d = bo.hosts.hostTemplate.cloneNode(!0) | |
| , p = o[c].DisplayName || o[c].HostName; | |
| this.createHostAccordions(p, d, c), | |
| r = this.createHostCheckboxes(p, o, c, d, r), | |
| p = this.populateHostDataIntoDOMElements(d, o, p, c, l) | |
| } | |
| ar.setCookiesInsideHostContainer(i, l, n); | |
| var u = 1 === o.length && o[0].HostName === ko.PCFirstPartyCookieListText; | |
| if (wo.isOptOutEnabled() && !u) { | |
| ho.setDisabledAttribute("#onetrust-pc-sdk #select-all-hosts-groups-handler", null, !r); | |
| for (var h = To("#onetrust-pc-sdk " + Go.P_Host_Cntr + " .ot-host-tgl input").el, g = 0; g < h.length; g++) | |
| h[g].addEventListener("click", this.hostsListEvent); | |
| To("#onetrust-pc-sdk " + Go.P_Select_Cntr).removeClass("ot-hide"), | |
| this.hostsListEvent() | |
| } else | |
| To("#onetrust-pc-sdk " + Go.P_Select_Cntr).addClass("ot-hide") | |
| } | |
| , | |
| cr.prototype.setCookiesInsideHostContainer = function(e, t, o) { | |
| if (bo.showTrackingTech && o) { | |
| var n = ar.getAdditionalTechnologiesHtml(o); | |
| if (0 < n.children.length) { | |
| var r = n.querySelector("." + this.TECH_COOKIES_SELECTOR + " .ot-acc-txt"); | |
| if (r) { | |
| var i = e.querySelector("ul" + Go.P_Host_Cntr); | |
| i.appendChild(t), | |
| r.appendChild(i) | |
| } | |
| e.appendChild(n) | |
| } | |
| } else | |
| e.appendChild(t) | |
| } | |
| , | |
| cr.prototype.getHostParentContainer = function() { | |
| var e = null; | |
| return bo.showTrackingTech ? (e = document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Content + " .ot-sdk-column"), | |
| ar.removeTrackingTechAccorions()) : (e = document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Content + " ul" + Go.P_Host_Cntr)).innerHTML = "", | |
| e | |
| } | |
| , | |
| cr.prototype.removeTrackingTechAccorions = function() { | |
| var e = document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Content + " .ot-sdk-column") | |
| , t = e.querySelector("." + this.TECH_COOKIES_SELECTOR + " ul" + Go.P_Host_Cntr); | |
| if (t ? (t.innerHTML = "", | |
| e.appendChild(t)) : (t = e.querySelector("ul" + Go.P_Host_Cntr)).innerHTML = "", | |
| e) | |
| for (var o = e.querySelectorAll(".ot-add-tech"), n = o.length - 1; 0 <= n; n--) { | |
| var r = o.item(n); | |
| e.removeChild(r) | |
| } | |
| } | |
| , | |
| cr.prototype.setHostListSearchValues = function() { | |
| var e = vo.pcName; | |
| ko.GeneralVendorsEnabled && (lo.isV2Template || e !== Rt) && this.setListSearchValues(Le.vendors), | |
| ko.GeneralVendorsEnabled || !lo.isV2Template && e === Rt || this.setListSearchValues(Le.cookies) | |
| } | |
| , | |
| cr.prototype.createHostAccordions = function(e, t, o) { | |
| var n = t.querySelector("." + Go.P_Host_Bx); | |
| n && ho.setHtmlAttributes(n, { | |
| id: "host-" + o, | |
| name: "host-" + o, | |
| "aria-label": e + " " + ko.PCViewCookiesText, | |
| "aria-controls": "ot-host-acc-txt-" + o | |
| }); | |
| var r = t.querySelector(Go.P_Acc_Txt); | |
| r && ho.setHtmlAttributes(r, { | |
| id: "ot-host-acc-txt-" + o, | |
| role: "region", | |
| "aria-labelledby": n.id | |
| }) | |
| } | |
| , | |
| cr.prototype.createHostCheckboxes = function(e, t, o, n, r) { | |
| var i = wo.isOptOutEnabled() | |
| , s = lo.isV2Template | |
| , a = vo.pcName; | |
| if (!i || t[o].isFirstParty) { | |
| var l = n.querySelector(".ot-host-tgl"); | |
| l && l.parentElement.removeChild(l) | |
| } else { | |
| var c = void 0; | |
| s ? ((c = Fo.chkboxEl.cloneNode(!0)).classList.add("ot-host-tgl"), | |
| c.querySelector("input").classList.add("host-checkbox-handler"), | |
| a === Rt ? n.querySelector(Go.P_Host_Hdr).insertAdjacentElement("beforebegin", c) : n.querySelector(Go.P_Tgl_Cntr).insertAdjacentElement("beforeend", c)) : c = n.querySelector(".ot-host-tgl"), | |
| ho.setHtmlAttributes(c.querySelector("input"), { | |
| id: "ot-host-chkbox-" + o, | |
| "aria-label": e, | |
| hostId: t[o].HostId, | |
| ckType: t[o].Type | |
| }), | |
| c.querySelector("label").setAttribute("for", "ot-host-chkbox-" + o), | |
| (t[o].Type === Q.GenVendor ? bo.genVendorsConsent[t[o].HostId] : -1 !== bo.hostsConsent.indexOf(t[o].HostId + ":1")) ? (ho.setCheckedAttribute(null, c.querySelector("input"), !0), | |
| t[o].isActive ? ho.setDisabledAttribute(null, c.querySelector("input"), !0) : r = r || !0) : (r = !0, | |
| ho.setCheckedAttribute(null, c.querySelector("input"), !1)), | |
| c.querySelector(Go.P_Label_Txt).innerText = e | |
| } | |
| return r | |
| } | |
| , | |
| cr.prototype.populateHostDataIntoDOMElements = function(o, n, e, r, t) { | |
| var i, s = this, a = lo.isV2Template, l = vo.pcName; | |
| if (ko.PCAccordionStyle === J.PlusMinus) | |
| o.querySelector(Go.P_Acc_Header).insertAdjacentElement("afterbegin", Fo.plusMinusEl.cloneNode(!0)); | |
| else if (a) { | |
| var c = Fo.arrowEl.cloneNode(!0); | |
| l === Rt ? o.querySelector(Go.P_Host_View_Cookies).insertAdjacentElement("afterend", c) : o.querySelector(Go.P_Tgl_Cntr).insertAdjacentElement("beforeend", c) | |
| } | |
| ko.AddLinksToCookiepedia && !n[r].isFirstParty && (e = '\n <a class="cookie-label"\n href="http://cookiepedia.co.uk/host/' + n[r].HostName + '"\n rel="noopener"\n target="_blank"\n >\n ' + e + ' <span class="ot-scrn-rdr">' + ko.NewWinTxt + "</span>\n </a>\n "), | |
| o.querySelector(Go.P_Host_Title).innerHTML = e, | |
| o.querySelector(Go.P_Host_Desc).innerHTML = n[r].Description, | |
| n[r].PrivacyPolicy && ko.pcShowCookieHost && o.querySelector(Go.P_Host_Desc).insertAdjacentHTML("afterend", '<a href="' + n[r].PrivacyPolicy + '" rel="noopener" target="_blank">' + (a ? ko.PCGVenPolicyTxt : ko.PCCookiePolicyText) + ' <span class="ot-scrn-rdr">' + ko.NewWinTxt + "</span></a>"); | |
| var d = o.querySelector(Go.P_Host_View_Cookies); | |
| if (!bo.showGeneralVendors || n[r].Cookies && n[r].Cookies.length ? ko.PCViewCookiesText && (d.innerHTML = ko.PCViewCookiesText) : (ho.removeChild(d), | |
| To(o).addClass("ot-hide-acc")), | |
| !n[r].Description || !ko.pcShowCookieHost) { | |
| var p = o.querySelector(Go.P_Host_Desc); | |
| p.parentElement.removeChild(p) | |
| } | |
| return To(o.querySelector(Go.P_Host_Opt)).html(""), | |
| null !== (i = n[r].Cookies) && void 0 !== i && i.forEach(function(e) { | |
| var t = s.getCookieElement(e, n[r]); | |
| To(o.querySelector(Go.P_Host_Opt)).append(t) | |
| }), | |
| t.append(o), | |
| e | |
| } | |
| , | |
| cr.prototype.hostsListEvent = function() { | |
| for (var e = To("#onetrust-pc-sdk " + Go.P_Host_Cntr + " .ot-host-tgl input").el, t = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).el[0], o = To("#onetrust-pc-sdk #select-all-hosts-groups-handler").el[0], n = To("#onetrust-pc-sdk " + Go.P_Cnsnt_Header).el[0], r = !0, i = 0; i < e.length; i++) { | |
| if (!e[i].checked) { | |
| r = !1; | |
| break | |
| } | |
| r = !0 | |
| } | |
| r ? t.classList.remove("line-through") : t.classList.add("line-through"), | |
| o.checked = !0; | |
| for (var s = 0; s < e.length && !e[s].checked; s++) | |
| s !== e.length - 1 || e[s].checked || (o.checked = !1); | |
| ho.setCheckedAttribute("", o, o.checked), | |
| o && n && o.setAttribute(this.ARIA_LABEL_ATTRIBUTE, n.textContent + " " + ko.PCenterSelectAllVendorsText) | |
| } | |
| , | |
| cr.prototype.loadHostList = function(e, t) { | |
| var o = {} | |
| , n = []; | |
| n = bo.showTrackingTech ? (o = ar.getAdditionalTechnologiesDataFromGroup(t), | |
| (bo.currentTrackingTech = o).Cookies) : ar.getCombinedCookieList(t), | |
| bo.currentGlobalFilteredList = n, | |
| this.initHostData({ | |
| searchString: e, | |
| cookiesList: n, | |
| addTechData: o | |
| }) | |
| } | |
| , | |
| cr.prototype.getCombinedCookieList = function(e) { | |
| var t = [] | |
| , o = [] | |
| , n = []; | |
| if (bo.cookieListType !== Z.GenVen) { | |
| var r = ar.getFirstsAndThirdCookisFromGroups(e); | |
| o = r.firstPartyCookiesList, | |
| t = r.thirdPartyCookiesList, | |
| o.length && t.unshift({ | |
| HostName: ko.PCFirstPartyCookieListText, | |
| DisplayName: ko.PCFirstPartyCookieListText, | |
| HostId: this.FIRST_PARTY_COOKIES_GROUP_NAME, | |
| isFirstParty: !0, | |
| Cookies: o, | |
| Description: "" | |
| }) | |
| } | |
| if (bo.showGeneralVendors) { | |
| var i = this.getFilteredGenVendorsList(e); | |
| n = b(t, this.mapGenVendorListToHostFormat(i)) | |
| } else | |
| n = t; | |
| return n | |
| } | |
| , | |
| cr.prototype.mapGenVendorListToHostFormat = function(e) { | |
| return e.map(function(e) { | |
| return { | |
| Cookies: e.Cookies, | |
| DisplayName: e.Name, | |
| HostName: e.Name, | |
| HostId: e.VendorCustomId, | |
| Description: e.Description, | |
| Type: Q.GenVendor, | |
| PrivacyPolicy: e.PrivacyPolicyUrl, | |
| isActive: -1 < bo.alwaysActiveGenVendors.indexOf(e.VendorCustomId) | |
| } | |
| }) | |
| } | |
| , | |
| cr.prototype.mapGenVendorToHostFormat = function(e) { | |
| return { | |
| Cookies: e.Cookies, | |
| DisplayName: e.Name, | |
| HostName: e.Name, | |
| HostId: e.VendorCustomId, | |
| Description: e.Description, | |
| Type: Q.GenVendor | |
| } | |
| } | |
| , | |
| cr.prototype.getFilteredGenVendorsList = function(t) { | |
| var o = [] | |
| , e = []; | |
| if (t.length) { | |
| ko.Groups.forEach(function(e) { | |
| b(e.SubGroups, [e]).forEach(function(e) { | |
| -1 !== t.indexOf(e.CustomGroupId) && e.GeneralVendorsIds && e.GeneralVendorsIds.forEach(function(e) { | |
| o.push(e) | |
| }) | |
| }) | |
| }); | |
| var n = ko.GeneralVendors; | |
| return o.length && (e = n.filter(function(e) { | |
| if (-1 < o.indexOf(e.VendorCustomId)) | |
| return e | |
| })), | |
| e | |
| } | |
| return ko.GeneralVendors | |
| } | |
| , | |
| cr.prototype.initVendorsData = function(e, t) { | |
| var o = this | |
| , n = t | |
| , r = bo.vendors.list; | |
| if (this.setBackBtnTxt(), | |
| To(Go.P_Vendor_List + " #select-all-text-container p").html(ko.PCenterAllowAllConsentText), | |
| ar.setConsentLegIntAndHeaderText(), | |
| To("#onetrust-pc-sdk #filter-btn-handler").el[0].setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCenterVendorListFilterAria), | |
| To("#onetrust-pc-sdk #filter-btn-handler title").html(ko.PCenterVendorListFilterAria), | |
| this.hasIabVendors = 0 < n.length, | |
| this.showEmptyResults(!this.hasGoogleVendors && !this.hasIabVendors && !this.hasGenVendors, e, !1), | |
| ar.hideOrShowVendorList(n), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container + " ." + Go.P_Ven_Bx).length !== r.length && this.attachVendorsToDOM(), | |
| n.length !== r.length) | |
| r.forEach(function(e) { | |
| var t = To(Go.P_Vendor_Container + " #IAB" + e.vendorId).el[0].parentElement; | |
| -1 === n.indexOf(e) ? co(t, "display: none;", !0) : co(t, o._displayNull, !0) | |
| }); | |
| else | |
| for (var i = To(Go.P_Vendor_Container + ' li[style^="display: none"]').el, s = 0; s < i.length; s++) | |
| co(i[s], this._displayNull, !0); | |
| !lo.isV2Template && vo.pcName === Rt || this.setListSearchValues(Le.vendors); | |
| var a = document.querySelector("#vdr-lst-dsc"); | |
| if (!a && ko.PCenterVendorListDescText) | |
| if ((a = document.createElement("p")).id = "vdr-lst-dsc", | |
| To(a).html(ko.PCenterVendorListDescText), | |
| vo.pcName !== Rt && vo.pcName !== Dt) { | |
| var l = document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Title_Elm); | |
| l && l.insertAdjacentElement("afterend", a) | |
| } else { | |
| var c = document.querySelector(Go.P_Vendor_Content + " .ot-sdk-row"); | |
| c && c.insertAdjacentElement("beforebegin", a) | |
| } | |
| To("#onetrust-pc-sdk " + Go.P_Select_Cntr).removeClass("ot-hide"), | |
| this.vendorsListEvent(), | |
| vo.legIntSettings.PAllowLI && this.vendorLegIntToggleEvent() | |
| } | |
| , | |
| cr.prototype.setConsentLegIntAndHeaderText = function() { | |
| lo.isV2Template && (To("#ot-sel-blk span:first-child").html(ko.PCenterAllowAllConsentText || ko.ConsentText), | |
| To("#ot-sel-blk span:last-child").html(ko.LegitInterestText), | |
| To("#onetrust-pc-sdk " + Go.P_Cnsnt_Header).html(ko.PCenterAllowAllConsentText), | |
| vo.legIntSettings.PAllowLI && !vo.legIntSettings.PShowLegIntBtn && To("#onetrust-pc-sdk .ot-sel-all-hdr .ot-li-hdr").html(ko.PCenterLegitInterestText), | |
| vo.legIntSettings.PAllowLI && !vo.legIntSettings.PShowLegIntBtn || co(To("#ot-sel-blk span:first-child").el[0], "max-width: 100%;", !0)) | |
| } | |
| , | |
| cr.prototype.hideOrShowVendorList = function(e) { | |
| 0 === e.length ? To("#ot-lst-cnt .ot-acc-cntr").hide() : To("#ot-lst-cnt .ot-acc-cntr").show(), | |
| bo.showTrackingTech && ar.removeTrackingTechAccorions() | |
| } | |
| , | |
| cr.prototype.updateVendorsDOMToggleStatus = function(e, t) { | |
| void 0 === t && (t = !1); | |
| for (var o = To(Go.P_Vendor_Container + " " + Go.P_Tgl_Cntr).el, n = ko.VendorConsentModel === kn, r = 0; r < o.length; r++) { | |
| var i = o[r].querySelector("." + Go.P_Ven_Ctgl + " input") | |
| , s = o[r].querySelector("." + Go.P_Ven_Ltgl + " input"); | |
| t ? (i && ho.setCheckedAttribute("", i, n), | |
| s && ho.setCheckedAttribute("", s, !0)) : (i && ho.setCheckedAttribute("", i, e), | |
| s && ho.setCheckedAttribute("", s, e)) | |
| } | |
| var a = To("#onetrust-pc-sdk #select-all-vendor-leg-handler").el[0]; | |
| if (a) { | |
| a.parentElement.classList.remove("line-through"); | |
| var l = !!t || e; | |
| ho.setCheckedAttribute("", a, l) | |
| } | |
| var c = To("#onetrust-pc-sdk #select-all-vendor-groups-handler").el[0]; | |
| c && (c.parentElement.classList.remove("line-through"), | |
| l = t ? n : e, | |
| ho.setCheckedAttribute("", c, l)), | |
| ko.UseGoogleVendors && (t ? this.updateGoogleCheckbox(n) : this.updateGoogleCheckbox(e)), | |
| bo.showGeneralVendors && ko.GenVenOptOut && this.updateGenVenCheckbox(e) | |
| } | |
| , | |
| cr.prototype.updateGenVenCheckbox = function(e) { | |
| for (var t = To(Go.P_Gven_List + " .ot-ven-gvctgl input").el, o = 0; o < t.length; o++) | |
| ho.setCheckedAttribute("", t[o], e); | |
| var n = To("#onetrust-pc-sdk #ot-selall-gnven-handler").el[0]; | |
| n && (n.parentElement.classList.remove("line-through"), | |
| ho.setCheckedAttribute("", n, e)) | |
| } | |
| , | |
| cr.prototype.updateGoogleCheckbox = function(e) { | |
| for (var t = To("#ot-addtl-venlst .ot-tgl-cntr input").el, o = 0; o < t.length; o++) | |
| ho.setCheckedAttribute("", t[o], e); | |
| var n = To("#onetrust-pc-sdk #ot-selall-adtlven-handler").el[0]; | |
| n && (n.parentElement.classList.remove("line-through"), | |
| ho.setCheckedAttribute("", n, e)) | |
| } | |
| , | |
| cr.prototype.updateVendorDisclosure = function(e, t) { | |
| var o = To(Go.P_Vendor_Container + " #IAB" + e).el[0].parentElement; | |
| if (t && t.disclosures) { | |
| var r = o.querySelector(Go.P_Ven_Dets) | |
| , i = o.querySelector(Go.P_Ven_Disc).cloneNode(!0) | |
| , n = i.cloneNode(!0); | |
| n.innerHTML = "<p><b>" + ko.PCenterVendorListDisclosure + ": </b></p>", | |
| r.insertAdjacentElement("beforeend", n), | |
| t.disclosures.forEach(function(e) { | |
| var t = i.cloneNode(!0) | |
| , o = "<p>" + ko.PCenterVendorListStorageIdentifier + " </p> <p>" + (e.name || e.identifier) + " </p>"; | |
| if (e.type && (o += "<p>" + ko.PCenterVendorListStorageType + " </p> <p>" + e.type + " </p>"), | |
| e.maxAgeSeconds) { | |
| var n = ho.calculateCookieLifespan(e.maxAgeSeconds); | |
| o += "<p>" + ko.PCenterVendorListLifespan + " </p> <p>" + n + " </p>" | |
| } | |
| e.domain && (o += "<p>" + ko.PCenterVendorListStorageDomain + " </p> <p>" + e.domain + " </p>"), | |
| e.purposes && (o += "<p>" + ko.PCenterVendorListStoragePurposes + ' </p><div class="disc-pur-cont">', | |
| e.purposes.forEach(function(e) { | |
| var t = vo.iabGroups.purposes[e].name; | |
| t && (o += ' <p class="disc-pur">' + t + " </p>") | |
| }), | |
| o += "</div>"), | |
| t.innerHTML = o, | |
| r.insertAdjacentElement("beforeend", t) | |
| }), | |
| this.updateDomainsUsageInDisclosures(t, i, r) | |
| } | |
| } | |
| , | |
| cr.prototype.updateDomainsUsageInDisclosures = function(e, n, r) { | |
| if (e.domains && e.domains.length) { | |
| var t = n.cloneNode(!0); | |
| t.innerHTML = "<p><b>" + ko.PCVLSDomainsUsed + ": </b></p>", | |
| r.insertAdjacentElement("beforeend", t), | |
| e.domains.forEach(function(e) { | |
| var t, o = n.cloneNode(!0); | |
| e.domain && (t = "<p>" + ko.PCenterVendorListStorageDomain + " </p> <p>" + e.domain + " </p>"), | |
| e.use && (t += "<p>" + ko.PCVLSUse + " </p> <p>" + e.use + " </p>"), | |
| o.innerHTML = t, | |
| r.insertAdjacentElement("beforeend", o) | |
| }) | |
| } | |
| } | |
| , | |
| cr.prototype.addDescriptionElement = function(e, t) { | |
| var o = document.createElement("p"); | |
| o.innerHTML = t || "", | |
| e.parentNode.insertBefore(o, e) | |
| } | |
| , | |
| cr.prototype.attachVendorsToDOM = function() { | |
| var R, q, M = bo.vendors.list, U = ko.IabType, j = vo.pcName, z = bo.vendors.vendorTemplate.cloneNode(!0); | |
| bo.discVendors = {}, | |
| lo.isV2Template && (R = z.querySelector(".ot-ven-pur").cloneNode(!0), | |
| q = z.querySelector(Go.P_Ven_Disc).cloneNode(!0), | |
| To(z.querySelector(".ot-ven-dets")).html("")); | |
| for (var K = document.createDocumentFragment(), e = function(e) { | |
| var t = z.cloneNode(!0) | |
| , o = M[e].vendorId | |
| , n = M[e].vendorName | |
| , r = t.querySelector("." + Go.P_Ven_Bx) | |
| , i = bo.vendorsSetting[o] | |
| , s = t.querySelector(Go.P_Ven_Link); | |
| ho.setHtmlAttributes(r, { | |
| id: "IAB" + o, | |
| name: "IAB" + o, | |
| "aria-controls": "IAB-ACC-TXT" + o, | |
| "aria-label": n | |
| }), | |
| r.nextElementSibling.setAttribute("for", "IAB" + o), | |
| t.querySelector(Go.P_Ven_Name).innerText = n, | |
| ho.setHtmlAttributes(s, { | |
| href: M[e].policyUrl, | |
| rel: "noopener", | |
| target: "_blank" | |
| }), | |
| s.innerHTML = ko.PCenterViewPrivacyPolicyText + " <span class='ot-scrn-rdr'>" + n + " " + ko.NewWinTxt + "</span>"; | |
| var a = lo.isV2Template ? Fo.chkboxEl.cloneNode(!0) : t.querySelector(".ot-checkbox") | |
| , l = a.cloneNode(!0) | |
| , c = a.cloneNode(!0) | |
| , d = t.querySelector(Go.P_Tgl_Cntr); | |
| lo.isV2Template || a.parentElement.removeChild(a); | |
| var p = t.querySelector(Go.P_Arrw_Cntr); | |
| if (i.consent) { | |
| c.classList.add(Go.P_Ven_Ctgl); | |
| var u = -1 !== So.inArray(o + ":true", bo.vendors.selectedVendors) | |
| , h = c.querySelector("input"); | |
| if (lo.isV2Template) { | |
| h.classList.add("vendor-checkbox-handler"); | |
| var g = c.querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels ? g.innerHTML = u ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(g) | |
| } | |
| ho.setCheckedAttribute("", h, u), | |
| ho.setHtmlAttributes(h, { | |
| id: Go.P_Vendor_CheckBx + "-" + e, | |
| vendorid: o, | |
| "aria-label": n | |
| }), | |
| c.querySelector("label").setAttribute("for", Go.P_Vendor_CheckBx + "-" + e), | |
| c.querySelector(Go.P_Label_Txt).textContent = n, | |
| j === Rt ? ko.PCTemplateUpgrade ? d.insertAdjacentElement("beforeend", c) : To(d).append(c) : d.insertBefore(c, p) | |
| } | |
| if (i.legInt && !i.specialPurposesOnly) { | |
| var C = -1 !== So.inArray(o + ":true", bo.vendors.selectedLegIntVendors); | |
| if (vo.legIntSettings.PShowLegIntBtn) { | |
| var y = Ro.generateLegIntButtonElements(C, o, !0); | |
| t.querySelector(Go.P_Acc_Txt).insertAdjacentHTML("beforeend", y); | |
| var f = t.querySelector(".ot-remove-objection-handler"); | |
| f && co(f, f.getAttribute("data-style")) | |
| } else | |
| h = l.querySelector("input"), | |
| lo.isV2Template && (h.classList.add("vendor-checkbox-handler"), | |
| g = l.querySelector(".ot-label-status"), | |
| ko.PCShowConsentLabels ? g.innerHTML = C ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(g)), | |
| l.classList.add(Go.P_Ven_Ltgl), | |
| h.classList.remove("vendor-checkbox-handler"), | |
| h.classList.add("vendor-leg-checkbox-handler"), | |
| ho.setCheckedAttribute("", h, C), | |
| ho.setHtmlAttributes(h, { | |
| id: Go.P_Vendor_LegCheckBx + "-" + e, | |
| "leg-vendorid": o, | |
| "aria-label": n | |
| }), | |
| l.querySelector("label").setAttribute("for", Go.P_Vendor_LegCheckBx + "-" + e), | |
| l.querySelector(Go.P_Label_Txt).textContent = n, | |
| t.querySelector("." + Go.P_Ven_Ctgl) && (p = t.querySelector("." + Go.P_Ven_Ctgl)), | |
| j !== Rt || d.children.length ? d.insertBefore(l, p) : To(d).append(l), | |
| i.consent || j !== Rt || l.classList.add(Go.P_Ven_Ltgl_Only) | |
| } | |
| lo.isV2Template && (d.insertAdjacentElement("beforeend", Fo.arrowEl.cloneNode(!0)), | |
| ko.PCAccordionStyle !== J.Caret && t.querySelector(".ot-ven-hdr").insertAdjacentElement("beforebegin", Fo.plusMinusEl.cloneNode(!0))); | |
| var v = t.querySelector(Go.P_Acc_Txt); | |
| if (v && ho.setHtmlAttributes(v, { | |
| id: "IAB-ACC-TXT" + o, | |
| "aria-labelledby": "IAB-ACC-TXT" + o, | |
| role: "region" | |
| }), | |
| M[e].deviceStorageDisclosureUrl && (ho.setHtmlAttributes(r, { | |
| "disc-vid": o | |
| }), | |
| bo.discVendors[o] = { | |
| isFetched: !1, | |
| disclosureUrl: M[e].deviceStorageDisclosureUrl | |
| }), | |
| lo.isV2Template) | |
| W.populateVendorDetailsHtml(t, R, M[e], q); | |
| else { | |
| var k = t.querySelector(".vendor-option-purpose") | |
| , m = t.querySelector(".vendor-consent-group") | |
| , b = t.querySelector(".legitimate-interest") | |
| , S = t.querySelector(".legitimate-interest-group") | |
| , P = t.querySelector(".spl-purpose") | |
| , T = t.querySelector(".spl-purpose-grp") | |
| , A = t.querySelector(".vendor-feature") | |
| , I = t.querySelector(".vendor-feature-group") | |
| , L = t.querySelector(".vendor-spl-feature") | |
| , _ = t.querySelector(".vendor-spl-feature-grp") | |
| , E = m.cloneNode(!0) | |
| , V = S.cloneNode(!0) | |
| , B = T.cloneNode(!0) | |
| , w = I.cloneNode(!0) | |
| , O = _.cloneNode(!0); | |
| q = t.querySelector(Go.P_Ven_Disc); | |
| var x = t.querySelector(Go.P_Ven_Dets) | |
| , G = q.cloneNode(!0); | |
| q.parentElement.removeChild(q), | |
| W.attachVendorDisclosure(G, M[e]), | |
| x.insertAdjacentElement("afterbegin", G), | |
| m.parentElement.removeChild(m), | |
| i.consent && (To(k.querySelector("p")).text(ko.ConsentPurposesText), | |
| M[e].purposes.forEach(function(e) { | |
| To(E.querySelector(".consent-category")).text(e.purposeName); | |
| var t = E.querySelector(".consent-status"); | |
| t && E.removeChild(t), | |
| b.insertAdjacentHTML("beforebegin", E.outerHTML) | |
| })), | |
| i.consent || k.parentElement.removeChild(k); | |
| var N = V.querySelector(".vendor-opt-out-handler"); | |
| "IAB2" === ko.IabType && N.parentElement.removeChild(N), | |
| S.parentElement.removeChild(S), | |
| i.legInt && (To(b.querySelector("p")).text(ko.LegitimateInterestPurposesText), | |
| vo.legIntSettings.PAllowLI && "IAB2" === ko.IabType && M[e].legIntPurposes.forEach(function(e) { | |
| To(V.querySelector(".consent-category")).text(e.purposeName), | |
| b.insertAdjacentHTML("afterend", V.outerHTML) | |
| })), | |
| i.legInt || b.parentElement.removeChild(b), | |
| T.parentElement.removeChild(T), | |
| "IAB2" === U && M[e].specialPurposes.forEach(function(e) { | |
| To(B.querySelector(".consent-category")).text(e.purposeName), | |
| P.insertAdjacentHTML("afterend", B.outerHTML) | |
| }), | |
| 0 === M[e].specialPurposes.length ? P.parentElement.removeChild(P) : To(P.querySelector("p")).text(ko.SpecialPurposesText), | |
| I.parentElement.removeChild(I), | |
| To(A.querySelector("p")).text(ko.FeaturesText), | |
| M[e].features.forEach(function(e) { | |
| To(w.querySelector(".consent-category")).text(e.featureName), | |
| A.insertAdjacentHTML("afterend", w.outerHTML) | |
| }), | |
| 0 === M[e].features.length && A.parentElement.removeChild(A), | |
| L.parentElement.removeChild(_), | |
| "IAB2" === U && M[e].specialFeatures.forEach(function(e) { | |
| To(O.querySelector(".consent-category")).text(e.featureName), | |
| L.insertAdjacentHTML("afterend", O.outerHTML) | |
| }), | |
| 0 === M[e].specialFeatures.length ? L.parentElement.removeChild(L) : To(L.querySelector("p")).text(ko.SpecialFeaturesText); | |
| var D = r.parentElement.querySelector(".vendor-purposes p"); | |
| D.parentElement.removeChild(D) | |
| } | |
| K.appendChild(t); | |
| var H = To("#onetrust-pc-sdk " + Go.P_Sel_All_Vendor_Consent_Handler).el[0]; | |
| H && H.setAttribute(W.ARIA_LABEL_ATTRIBUTE, ko.PCenterSelectAllVendorsText + " " + ko.LegitInterestText); | |
| var F = To("#onetrust-pc-sdk " + Go.P_Sel_All_Vendor_Leg_Handler).el[0]; | |
| F && F.setAttribute(W.ARIA_LABEL_ATTRIBUTE, ko.PCenterSelectAllVendorsText + " " + ko.ConsentText) | |
| }, W = this, t = 0; t < M.length; t++) | |
| e(t); | |
| document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Container).append(K) | |
| } | |
| , | |
| cr.prototype.populateVendorDetailsHtml = function(e, t, o, n) { | |
| var r = e.querySelector(".ot-ven-dets") | |
| , i = bo.vendorsSetting[o.vendorId] | |
| , s = n.cloneNode(!0); | |
| if (this.attachVendorDisclosure(s, o), | |
| r.insertAdjacentElement("beforeEnd", s), | |
| i.consent) { | |
| var a = t.cloneNode(!0) | |
| , l = "<h4>" + ko.ConsentPurposesText + "</h4>"; | |
| l += "<ul>", | |
| o.purposes.forEach(function(e) { | |
| l += "<li><p>" + e.purposeName + "</p></li>" | |
| }), | |
| l += "</ul>", | |
| a.innerHTML = l, | |
| r.insertAdjacentElement("beforeEnd", a) | |
| } | |
| if (i.legInt && o.legIntPurposes.length) { | |
| var c = t.cloneNode(!0) | |
| , d = "<h4>" + ko.LegitimateInterestPurposesText + "</h4>"; | |
| d += "<ul>", | |
| o.legIntPurposes.forEach(function(e) { | |
| d += "<li><p>" + e.purposeName + "</p></li>" | |
| }), | |
| d += "</ul>", | |
| c.innerHTML = d, | |
| r.insertAdjacentElement("beforeEnd", c) | |
| } | |
| if ("IAB2" === vo.iabType && o.specialPurposes.length) { | |
| var p = t.cloneNode(!0) | |
| , u = "<h4>" + ko.SpecialPurposesText + "</h4>"; | |
| u += "<ul>", | |
| o.specialPurposes.forEach(function(e) { | |
| u += "<li><p>" + e.purposeName + "</p></li>" | |
| }), | |
| u += "</ul>", | |
| p.innerHTML = u, | |
| r.insertAdjacentElement("beforeEnd", p) | |
| } | |
| if (o.features.length) { | |
| var h = t.cloneNode(!0) | |
| , g = "<h4>" + ko.FeaturesText + "</h4>"; | |
| g += "<ul>", | |
| o.features.forEach(function(e) { | |
| g += "<li><p>" + e.featureName + "</p></li>" | |
| }), | |
| g += "</ul>", | |
| h.innerHTML = g, | |
| r.insertAdjacentElement("beforeEnd", h) | |
| } | |
| if ("IAB2" === vo.iabType && o.specialFeatures.length) { | |
| var C = t.cloneNode(!0) | |
| , y = "<h4>" + ko.SpecialFeaturesText + "</h4>"; | |
| y += "<ul>", | |
| o.specialFeatures.forEach(function(e) { | |
| y += "<li><p>" + e.featureName + "</p></li>" | |
| }), | |
| y += "</ul>", | |
| C.innerHTML = y, | |
| r.insertAdjacentElement("beforeEnd", C) | |
| } | |
| } | |
| , | |
| cr.prototype.InitializeVendorList = function() { | |
| if (bo.vendors.list = bo.iabData ? bo.iabData.vendors : null, | |
| bo.vendors.vendorTemplate = To(Go.P_Vendor_Container + " li").el[0].cloneNode(!0), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container).html(""), | |
| !lo.isV2Template && vo.pcName === Rt) { | |
| var e, t = bo.vendors.vendorTemplate.querySelectorAll(Go.P_Acc_Header); | |
| vo.legIntSettings.PAllowLI && "IAB2" === vo.iabType ? (e = t[0]).parentElement.removeChild(e) : (e = t[1]).parentElement.removeChild(e) | |
| } | |
| } | |
| , | |
| cr.prototype.cancelVendorFilter = function() { | |
| for (var e = To("#onetrust-pc-sdk .category-filter-handler").el, t = 0; t < e.length; t++) { | |
| var o = e[t].getAttribute("data-purposeid") | |
| , n = 0 <= bo.filterByIABCategories.indexOf(o); | |
| ho.setCheckedAttribute(null, e[t], n) | |
| } | |
| } | |
| , | |
| cr.prototype.attachVendorDisclosure = function(e, t) { | |
| var o = "<h4>" + ko.PCenterVendorListLifespan + " :</h4><span> " + t.cookieMaxAge + "</span>"; | |
| t.usesNonCookieAccess && (o += "<p>" + ko.PCenterVendorListNonCookieUsage + "</p>"), | |
| e.innerHTML = o | |
| } | |
| , | |
| cr.prototype.updateVendorFilterList = function() { | |
| for (var e = To("#onetrust-pc-sdk .category-filter-handler").el, t = 0; t < e.length; t++) { | |
| var o = e[t].getAttribute("data-purposeid"); | |
| if (e[t].checked && bo.filterByIABCategories.indexOf(o) < 0) | |
| bo.filterByIABCategories.push(o); | |
| else if (!e[t].checked && -1 < bo.filterByIABCategories.indexOf(o)) { | |
| var n = bo.filterByIABCategories; | |
| bo.filterByIABCategories.splice(n.indexOf(o), 1) | |
| } | |
| } | |
| return bo.filterByIABCategories | |
| } | |
| , | |
| cr.prototype.saveVendorStatus = function() { | |
| var e = bo.vendors | |
| , t = bo.oneTrustIABConsent; | |
| t.purpose = e.selectedPurpose.slice(), | |
| t.legimateInterest = e.selectedLegInt.slice(), | |
| t.vendors = e.selectedVendors.slice(), | |
| t.legIntVendors = e.selectedLegIntVendors.slice(), | |
| t.specialFeatures = e.selectedSpecialFeatures.slice(); | |
| var o = bo.addtlVendors; | |
| o.vendorConsent = Object.keys(o.vendorSelected) | |
| } | |
| , | |
| cr.prototype.updateIabVariableReference = function() { | |
| var e = bo.oneTrustIABConsent | |
| , t = bo.vendors; | |
| t.selectedPurpose = e.purpose.slice(), | |
| t.selectedLegInt = e.legimateInterest.slice(), | |
| t.selectedVendors = e.vendors.slice(), | |
| t.selectedLegIntVendors = e.legIntVendors.slice(), | |
| t.selectedSpecialFeatures = e.specialFeatures.slice(); | |
| var o = bo.addtlVendors; | |
| o.vendorSelected = {}, | |
| o.vendorConsent.forEach(function(e) { | |
| o.vendorSelected[e] = !0 | |
| }) | |
| } | |
| , | |
| cr.prototype.allowAllhandler = function() { | |
| vn.initializeIABData(!0, !1) | |
| } | |
| , | |
| cr.prototype.rejectAllHandler = function(e) { | |
| void 0 === e && (e = !1), | |
| vn.initializeIABData(!1, !0, e) | |
| } | |
| , | |
| cr.prototype.populateAddtlVendors = function(e) { | |
| var t = ko.PCAccordionStyle === J.Caret ? Fo.arrowEl.cloneNode(!0) : Fo.plusMinusEl.cloneNode(!0) | |
| , o = document.querySelector("#onetrust-pc-sdk .ot-sel-all-chkbox") | |
| , n = o.cloneNode(!0); | |
| ho.removeChild(n.querySelector("#ot-selall-hostcntr")), | |
| ho.removeChild(o.querySelector("#ot-selall-vencntr")), | |
| ho.removeChild(o.querySelector("#ot-selall-licntr")); | |
| var r = Fo.accordionEl.cloneNode(!0); | |
| r.classList.add("ot-iab-acc"), | |
| r.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", t.cloneNode(!0)), | |
| r.querySelector(".ot-acc-hdr").insertAdjacentHTML("beforeEnd", "<div class='ot-vensec-title'>" + ko.PCIABVendorsText + "</div>"), | |
| r.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", n), | |
| r.querySelector(".ot-acc-txt").insertAdjacentElement("beforeEnd", To("#ot-ven-lst").el[0]), | |
| To("#ot-lst-cnt .ot-sdk-column").append(r), | |
| r.querySelector("button").setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCIABVendorsText), | |
| this.iabAccInit = !0; | |
| var i = n.cloneNode(!0); | |
| ho.removeChild(i.querySelector("#ot-selall-licntr")), | |
| i.querySelector(".ot-chkbox").id = "ot-selall-adtlvencntr", | |
| i.querySelector("input").id = "ot-selall-adtlven-handler", | |
| i.querySelector("label").setAttribute("for", "ot-selall-adtlven-handler"); | |
| var s = Fo.accordionEl.cloneNode(!0); | |
| s.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", t.cloneNode(!0)), | |
| s.querySelector(".ot-acc-hdr").insertAdjacentHTML("beforeEnd", "<div class='ot-vensec-title'>" + ko.PCGoogleVendorsText + "</div>"), | |
| s.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", i), | |
| s.querySelector(".ot-acc-txt").insertAdjacentHTML("beforeEnd", "<ul id='ot-addtl-venlst'></ul>"), | |
| s.classList.add("ot-adtlv-acc"), | |
| s.querySelector("button").setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCGoogleVendorsText); | |
| var a = bo.vendors.vendorTemplate.cloneNode(!0); | |
| for (var l in a.querySelector("button").classList.remove("ot-ven-box"), | |
| a.querySelector("button").classList.add("ot-addtl-venbox"), | |
| ho.removeChild(a.querySelector(".ot-acc-txt")), | |
| e) | |
| if (e[l]) { | |
| var c = a.cloneNode(!0) | |
| , d = e[l].name; | |
| c.querySelector(Go.P_Ven_Name).innerText = d; | |
| var p = c.querySelector("button"); | |
| ho.setHtmlAttributes(p, { | |
| id: "Adtl-IAB" + l | |
| }), | |
| ho.setHtmlAttributes(c.querySelector(Go.P_Ven_Link), { | |
| href: e[l].policyUrl, | |
| rel: "noopener", | |
| target: "_blank" | |
| }), | |
| c.querySelector(Go.P_Ven_Link).innerHTML = ko.PCenterViewPrivacyPolicyText + " <span class='ot-scrn-rdr'>" + d + " " + ko.NewWinTxt + "</span>"; | |
| var u = Fo.chkboxEl.cloneNode(!0); | |
| u.classList.remove("ot-ven-ctgl"), | |
| u.classList.add("ot-ven-adtlctgl"); | |
| var h = Boolean(bo.addtlVendors.vendorSelected[l]) | |
| , g = u.querySelector("input"); | |
| g.classList.add("ot-addtlven-chkbox-handler"); | |
| var C = u.querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels ? C.innerHTML = h ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(C), | |
| ho.setCheckedAttribute("", g, h), | |
| ho.setHtmlAttributes(g, { | |
| id: "ot-addtlven-chkbox-" + l, | |
| "addtl-vid": l, | |
| "aria-label": d | |
| }), | |
| u.querySelector("label").setAttribute("for", "ot-addtlven-chkbox-" + l), | |
| u.querySelector(Go.P_Label_Txt).textContent = d; | |
| var y = c.querySelector(Go.P_Tgl_Cntr); | |
| To(y).append(u), | |
| y.insertAdjacentElement("beforeend", Fo.arrowEl.cloneNode(!0)), | |
| ko.PCAccordionStyle !== J.Caret && c.querySelector(".ot-ven-hdr").insertAdjacentElement("beforebegin", Fo.plusMinusEl.cloneNode(!0)), | |
| To(s.querySelector("#ot-addtl-venlst")).append(c) | |
| } | |
| To("#ot-lst-cnt .ot-sdk-column").append(s), | |
| To("#onetrust-pc-sdk").on("click", "#ot-pc-lst .ot-acc-cntr > input", function(e) { | |
| ho.setCheckedAttribute(null, e.target, e.target.checked) | |
| }), | |
| this.showConsentHeader() | |
| } | |
| , | |
| cr.prototype.populateGeneralVendors = function() { | |
| var u = this | |
| , e = ko.GeneralVendors | |
| , t = document.querySelector(".ot-gv-acc") | |
| , h = !!t; | |
| if (!e.length) | |
| return this.hasGenVendors = !1, | |
| void (t && To(t).hide()); | |
| this.hasGenVendors = !0, | |
| t && To(t).show(); | |
| var o = ko.PCAccordionStyle === J.Caret ? Fo.arrowEl.cloneNode(!0) : Fo.plusMinusEl.cloneNode(!0); | |
| this.iabAccInit || this.addIabAccordion(); | |
| var n = document.createElement("div"); | |
| n.setAttribute("class", "ot-sel-all-chkbox"); | |
| var r = Fo.chkboxEl.cloneNode(!0); | |
| r.id = "ot-selall-gnvencntr", | |
| r.querySelector("input").id = "ot-selall-gnven-handler", | |
| r.querySelector("label").setAttribute("for", "ot-selall-gnven-handler"), | |
| To(n).append(r); | |
| var g = Fo.accordionEl.cloneNode(!0); | |
| g.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", o.cloneNode(!0)), | |
| g.querySelector(".ot-acc-hdr").insertAdjacentHTML("beforeEnd", "<div class='ot-vensec-title'>" + ko.PCenterGeneralVendorsText + "</div>"), | |
| ko.GenVenOptOut && g.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", n), | |
| g.querySelector(".ot-acc-txt").insertAdjacentHTML("beforeEnd", "<ul id='ot-gn-venlst'></ul>"), | |
| g.classList.add("ot-gv-acc"), | |
| g.querySelector("button").setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCenterGeneralVendorsText); | |
| var C = bo.vendors.vendorTemplate.cloneNode(!0); | |
| C.querySelector("button").classList.remove("ot-ven-box"), | |
| C.querySelector("button").classList.add("ot-gv-venbox"), | |
| To(C.querySelector(".ot-acc-txt")).html('<ul class="ot-host-opt"></ul>'), | |
| h && To("" + Go.P_Gven_List).html(""); | |
| var y = !0; | |
| e.forEach(function(e) { | |
| var o = u.mapGenVendorToHostFormat(e) | |
| , n = C.cloneNode(!0) | |
| , t = e.VendorCustomId | |
| , r = e.Name | |
| , i = n.querySelector(Go.P_Ven_Link); | |
| n.querySelector(Go.P_Ven_Name).innerText = r; | |
| var s = n.querySelector("button"); | |
| if (ho.setHtmlAttributes(s, { | |
| id: "Gn-" + t | |
| }), | |
| e.PrivacyPolicyUrl ? (ho.setHtmlAttributes(i, { | |
| href: e.PrivacyPolicyUrl, | |
| rel: "noopener", | |
| target: "_blank" | |
| }), | |
| i.innerHTML = ko.PCGVenPolicyTxt + " <span class='ot-scrn-rdr'>" + r + " " + ko.NewWinTxt + "</span>") : i.classList.add("ot-hide"), | |
| u.addDescriptionElement(i, e.Description), | |
| ko.GenVenOptOut) { | |
| var a = Fo.chkboxEl.cloneNode(!0); | |
| a.classList.remove("ot-ven-ctgl"), | |
| a.classList.add("ot-ven-gvctgl"); | |
| var l = Boolean(bo.genVendorsConsent[t]) | |
| , c = a.querySelector("input"); | |
| c.classList.add("ot-gnven-chkbox-handler"); | |
| var d = a.querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels ? d.innerHTML = l ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(d), | |
| ho.setCheckedAttribute("", c, l), | |
| ho.setHtmlAttributes(c, { | |
| id: "ot-gnven-chkbox-" + t, | |
| "gn-vid": t, | |
| "aria-label": r | |
| }), | |
| rn.isGenVenPartOfAlwaysActiveGroup(t) ? ho.setDisabledAttribute(null, c, !0) : y = !1, | |
| a.querySelector("label").setAttribute("for", "ot-gnven-chkbox-" + t), | |
| a.querySelector(Go.P_Label_Txt).textContent = r; | |
| var p = n.querySelector(Go.P_Tgl_Cntr); | |
| To(p).append(a), | |
| p.insertAdjacentElement("beforeend", Fo.arrowEl.cloneNode(!0)) | |
| } | |
| ko.PCAccordionStyle !== J.Caret && n.querySelector(".ot-ven-hdr").insertAdjacentElement("beforebegin", Fo.plusMinusEl.cloneNode(!0)), | |
| e.Cookies.length || To(n).addClass("ot-hide-acc"), | |
| e.Cookies.forEach(function(e) { | |
| var t = u.getCookieElement(e, o); | |
| To(n.querySelector(".ot-host-opt")).append(t) | |
| }), | |
| h ? To("" + Go.P_Gven_List).append(n) : To(g.querySelector("" + Go.P_Gven_List)).append(n) | |
| }), | |
| h || To("#ot-lst-cnt .ot-sdk-column").append(g), | |
| To("#onetrust-pc-sdk").on("click", "#ot-pc-lst .ot-acc-cntr > input", function(e) { | |
| ho.setCheckedAttribute(null, e.target, e.target.checked) | |
| }), | |
| this.showConsentHeader(), | |
| y && ho.setDisabledAttribute("#ot-selall-gnven-handler", null, !0) | |
| } | |
| , | |
| cr.prototype.addIabAccordion = function() { | |
| var e = ko.PCAccordionStyle === J.Caret ? Fo.arrowEl.cloneNode(!0) : Fo.plusMinusEl.cloneNode(!0) | |
| , t = document.querySelector("#onetrust-pc-sdk .ot-sel-all-chkbox") | |
| , o = t.cloneNode(!0); | |
| ho.removeChild(o.querySelector("#ot-selall-hostcntr")), | |
| ho.removeChild(t.querySelector("#ot-selall-vencntr")), | |
| ho.removeChild(t.querySelector("#ot-selall-licntr")); | |
| var n = Fo.accordionEl.cloneNode(!0); | |
| n.classList.add("ot-iab-acc"), | |
| n.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", e.cloneNode(!0)), | |
| n.querySelector(".ot-acc-hdr").insertAdjacentHTML("beforeEnd", "<div class='ot-vensec-title'>" + ko.PCIABVendorsText + "</div>"), | |
| n.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", o), | |
| n.querySelector(".ot-acc-txt").insertAdjacentElement("beforeEnd", To("#ot-ven-lst").el[0]), | |
| To("#ot-lst-cnt .ot-sdk-column").append(n), | |
| n.querySelector("button").setAttribute(this.ARIA_LABEL_ATTRIBUTE, ko.PCIABVendorsText), | |
| this.iabAccInit = !0 | |
| } | |
| , | |
| cr.prototype.showConsentHeader = function() { | |
| var e = vo.legIntSettings; | |
| To("#onetrust-pc-sdk .ot-sel-all-hdr").show(), | |
| e.PAllowLI && !e.PShowLegIntBtn || To("#onetrust-pc-sdk .ot-li-hdr").hide() | |
| } | |
| , | |
| cr.prototype.setBackBtnTxt = function() { | |
| lo.isV2Template ? (To(Go.P_Vendor_List + " .back-btn-handler").attr(this.ARIA_LABEL_ATTRIBUTE, ko.PCenterBackText), | |
| To(Go.P_Vendor_List + " .back-btn-handler title").html(ko.PCenterBackText)) : To(Go.P_Vendor_List + " .back-btn-handler .pc-back-button-text").html(ko.PCenterBackText) | |
| } | |
| , | |
| cr.prototype.getCookieElement = function(e, t) { | |
| var o = bo.hosts.hostCookieTemplate.cloneNode(!0) | |
| , n = o.querySelector("div").cloneNode(!0); | |
| n.classList.remove("cookie-name-container"), | |
| To(o).html(""); | |
| var r = e.Name; | |
| ko.AddLinksToCookiepedia && t.isFirstParty && (r = wo.getCookieLabel(e, ko.AddLinksToCookiepedia)); | |
| var i = n.cloneNode(!0); | |
| if (i.classList.add(Go.P_c_Name), | |
| i.querySelector("div:nth-child(1)").innerHTML = ko.pcCListName, | |
| i.querySelector("div:nth-child(2)").innerHTML = r, | |
| To(o).append(i), | |
| ko.pcShowCookieHost) { | |
| var s = n.cloneNode(!0); | |
| s.classList.add(Go.P_c_Host), | |
| s.querySelector("div:nth-child(1)").innerHTML = ko.pcCListHost, | |
| s.querySelector("div:nth-child(2)").innerHTML = e.Host, | |
| To(o).append(s) | |
| } | |
| if (ko.pcShowCookieDuration) { | |
| var a = n.cloneNode(!0); | |
| a.classList.add(Go.P_c_Duration), | |
| a.querySelector("div:nth-child(1)").innerHTML = ko.pcCListDuration, | |
| a.querySelector("div:nth-child(2)").innerHTML = e.IsSession ? ko.LifespanTypeText : wo.getDuration(e), | |
| To(o).append(a) | |
| } | |
| if (ko.pcShowCookieType) { | |
| var l = t.Type === Q.GenVendor ? !e.isThirdParty : t.isFirstParty | |
| , c = n.cloneNode(!0); | |
| c.classList.add(Go.P_c_Type), | |
| c.querySelector("div:nth-child(1)").innerHTML = ko.pcCListType, | |
| c.querySelector("div:nth-child(2)").innerHTML = l ? ko.firstPartyTxt : ko.thirdPartyTxt, | |
| To(o).append(c) | |
| } | |
| if (ko.pcShowCookieCategory) { | |
| var d = void 0; | |
| if (d = t.Type === Q.GenVendor ? e.category : t.isFirstParty ? e.groupName : t.groupName) { | |
| var p = n.cloneNode(!0); | |
| p.classList.add(Go.P_c_Category), | |
| p.querySelector("div:nth-child(1)").innerHTML = ko.pcCListCategory, | |
| p.querySelector("div:nth-child(2)").innerHTML = d, | |
| To(o).append(p) | |
| } | |
| } | |
| if (ko.pcShowCookieDescription && e.description) { | |
| var u = n.cloneNode(!0); | |
| u.classList.add(Go.P_c_Desc), | |
| u.querySelector("div:nth-child(1)").innerHTML = ko.pcCListDescription, | |
| u.querySelector("div:nth-child(2)").innerHTML = e.description, | |
| To(o).append(u) | |
| } | |
| return o | |
| } | |
| , | |
| cr.prototype.getNoResultsFound = function(e) { | |
| return " " + (bo.showTrackingTech ? ko.PCTechNotFound : e ? ko.PCHostNotFound : ko.PCVendorNotFound) + "." | |
| } | |
| , | |
| cr.prototype.getAdditionalTechnologiesHtml = function(e) { | |
| var t = document.createDocumentFragment() | |
| , o = ko.AdditionalTechnologiesConfig | |
| , n = 0 < e.Cookies.length; | |
| if (n && e.Cookies[0].HostId === this.FIRST_PARTY_COOKIES_GROUP_NAME && (n = 0 < e.Cookies[0].Cookies.length), | |
| n) { | |
| var r = ar.getMainAccordionContainer(o.PCCookiesLabel, o.PCCookiesLabel, !1); | |
| r.classList.add(this.TECH_COOKIES_SELECTOR), | |
| t.appendChild(r) | |
| } | |
| if (0 < e.LocalStorages.length) { | |
| var i = ar.getMainAccordionContainer(o.PCLocalStorageLabel, o.PCLocalStorageLabel); | |
| i.classList.add("tech-local"), | |
| ar.setSessionLocalStorageTemplate(i, e.LocalStorages, ko.AdditionalTechnologiesConfig.PCLocalStorageDurationText), | |
| t.appendChild(i) | |
| } | |
| if (0 < e.SessionStorages.length) { | |
| var s = ar.getMainAccordionContainer(o.PCSessionStorageLabel, o.PCSessionStorageDurationText); | |
| s.classList.add("tech-session"), | |
| ar.setSessionLocalStorageTemplate(s, e.SessionStorages, ko.AdditionalTechnologiesConfig.PCSessionStorageDurationText), | |
| t.appendChild(s) | |
| } | |
| return t | |
| } | |
| , | |
| cr.prototype.getMainAccordionContainer = function(e, t, o) { | |
| void 0 === o && (o = !0); | |
| var n = ar.getAccordionStyleElement() | |
| , r = Fo.accordionEl.cloneNode(!0); | |
| return r.classList.add("ot-add-tech"), | |
| r.querySelector(".ot-acc-hdr").insertAdjacentElement("beforeEnd", n), | |
| r.querySelector(".ot-acc-hdr").insertAdjacentHTML("beforeEnd", "<div class='ot-vensec-title'>" + e + "</div>"), | |
| r.querySelector("button").setAttribute(this.ARIA_LABEL_ATTRIBUTE, t), | |
| o && r.querySelector(".ot-acc-txt").insertAdjacentHTML("beforeend", '<ul id="ot-host-lst" style="display: block;"></ul>'), | |
| r.cloneNode(!0) | |
| } | |
| , | |
| cr.prototype.setSessionLocalStorageTemplate = function(e, t, o) { | |
| var n = bo.hosts.hostTemplate.cloneNode(!0); | |
| ho.removeChild(n.querySelector(".ot-a scc-txt")); | |
| var r = e.querySelector(".ot-acc-txt " + Go.P_Host_Cntr); | |
| r.removeAttribute("style"), | |
| r.classList.add("ot-host-opt"); | |
| for (var i = 0, s = t; i < s.length; i++) { | |
| var a = s[i] | |
| , l = ar.getSessionLocalStorageElement(a, o); | |
| r.append(l) | |
| } | |
| } | |
| , | |
| cr.prototype.getSessionLocalStorageElement = function(e, t) { | |
| var o = bo.hosts.hostCookieTemplate.cloneNode(!0) | |
| , n = o.querySelector("div").cloneNode(!0); | |
| To(o).html(""); | |
| var r = ar.createKeyValueDivEle(n, Go.P_c_Name, ko.pcCListName, e.Name); | |
| To(o).append(r); | |
| var i = ar.createKeyValueDivEle(n, Go.P_c_Host, ko.pcCListHost, e.Host); | |
| To(o).append(i); | |
| var s = ar.createKeyValueDivEle(n, Go.P_c_Duration, ko.pcCListDuration, t); | |
| To(o).append(s); | |
| var a = ar.createKeyValueDivEle(n, Go.P_c_Desc, ko.pcCListDescription, e.description); | |
| return To(o).append(a), | |
| o | |
| } | |
| , | |
| cr.prototype.createKeyValueDivEle = function(e, t, o, n) { | |
| var r = e.cloneNode(!0); | |
| return r.classList.add(t), | |
| r.querySelector("div:nth-child(1)").innerHTML = o, | |
| r.querySelector("div:nth-child(2)").innerHTML = n, | |
| r | |
| } | |
| , | |
| cr.prototype.getAdditionalTechnologiesDataFromGroup = function(e) { | |
| for (var t, o, n, r, i, s = [], a = { | |
| SessionStorages: [], | |
| LocalStorages: [], | |
| Cookies: [] | |
| }, l = 0, c = ar.getGroupsFromFilter(e); l < c.length; l++) { | |
| var d = c[l] | |
| , p = rr.getCookiesForGroup(d); | |
| s = b(s, null != (t = p.firstPartyCookiesList) ? t : []), | |
| a.Cookies = b(a.Cookies, p.thirdPartyCookiesList), | |
| a.LocalStorages = b(a.LocalStorages, null != (n = null === (o = d.TrackingTech) || void 0 === o ? void 0 : o.LocalStorages) ? n : []), | |
| a.SessionStorages = b(a.SessionStorages, null != (i = null === (r = d.TrackingTech) || void 0 === r ? void 0 : r.SessionStorages) ? i : []) | |
| } | |
| return s.length && a.Cookies.unshift({ | |
| HostName: ko.PCFirstPartyCookieListText, | |
| DisplayName: ko.PCFirstPartyCookieListText, | |
| HostId: this.FIRST_PARTY_COOKIES_GROUP_NAME, | |
| isFirstParty: !0, | |
| Cookies: s, | |
| Description: "" | |
| }), | |
| a | |
| } | |
| , | |
| cr.prototype.getFirstsAndThirdCookisFromGroups = function(e) { | |
| var o = [] | |
| , n = []; | |
| return ar.getGroupsFromFilter(e).forEach(function(e) { | |
| var t = rr.getCookiesForGroup(e); | |
| o = b(o, t.firstPartyCookiesList), | |
| n = b(n, t.thirdPartyCookiesList) | |
| }), | |
| { | |
| firstPartyCookiesList: o, | |
| thirdPartyCookiesList: n | |
| } | |
| } | |
| , | |
| cr.prototype.getGroupsFromFilter = function(t) { | |
| var o = []; | |
| return ko.Groups.forEach(function(e) { | |
| b(e.SubGroups, [e]).forEach(function(e) { | |
| t && t.length ? -1 !== t.indexOf(e.CustomGroupId) && o.push(e) : o.push(e) | |
| }) | |
| }), | |
| o | |
| } | |
| , | |
| cr.prototype.getAccordionStyleElement = function() { | |
| return ko.PCAccordionStyle === J.Caret ? Fo.arrowEl.cloneNode(!0) : Fo.plusMinusEl.cloneNode(!0) | |
| } | |
| , | |
| cr.prototype.getFilteredAdditionaTechtData = function(e, t) { | |
| var o, n, r, i, s, a = { | |
| SessionStorages: [], | |
| LocalStorages: [], | |
| Cookies: [] | |
| }, l = this.getSearchQuery(e), c = JSON.parse(JSON.stringify(t)); | |
| return c.Cookies[0].HostId === this.FIRST_PARTY_COOKIES_GROUP_NAME && ((s = c.Cookies.shift()).Cookies = null === (o = s.Cookies) || void 0 === o ? void 0 : o.filter(function(e) { | |
| return l.lastIndex = 0, | |
| l.test(e.Name || e.Host) | |
| })), | |
| a.Cookies = null === (n = c.Cookies) || void 0 === n ? void 0 : n.filter(function(e) { | |
| return l.lastIndex = 0, | |
| l.test(e.DisplayName || e.HostName) | |
| }), | |
| s && 0 < s.Cookies.length && a.Cookies.unshift(s), | |
| a.LocalStorages = null === (r = c.LocalStorages) || void 0 === r ? void 0 : r.filter(function(e) { | |
| return l.lastIndex = 0, | |
| l.test(e.Name || e.Host) | |
| }), | |
| a.SessionStorages = null === (i = c.SessionStorages) || void 0 === i ? void 0 : i.filter(function(e) { | |
| return l.lastIndex = 0, | |
| l.test(e.Name || e.Host) | |
| }), | |
| a | |
| } | |
| , | |
| cr); | |
| function cr() { | |
| this.hasIabVendors = !1, | |
| this.hasGoogleVendors = !1, | |
| this.hasGenVendors = !1, | |
| this.iabAccInit = !1, | |
| this._displayNull = "display: '';", | |
| this.ARIA_LABEL_ATTRIBUTE = "aria-label", | |
| this.TECH_COOKIES_SELECTOR = "tech-cookies", | |
| this.FIRST_PARTY_COOKIES_GROUP_NAME = "first-party-cookies-group", | |
| this.googleSearchSelectors = { | |
| vendorAccBtn: "#ot-addtl-venlst #Adtl-IAB", | |
| name: "name", | |
| accId: ".ot-adtlv-acc", | |
| selectAllEvntHndlr: "#ot-selall-adtlven-handler", | |
| venListId: "#ot-addtl-venlst", | |
| ctgl: ".ot-ven-adtlctgl" | |
| }, | |
| this.genVendorSearchSelectors = { | |
| vendorAccBtn: "#ot-gn-venlst #Gn-", | |
| name: "Name", | |
| accId: ".ot-gv-acc", | |
| selectAllEvntHndlr: "#ot-selall-gnven-handler", | |
| venListId: "#ot-gn-venlst", | |
| ctgl: ".ot-ven-gvctgl" | |
| } | |
| } | |
| function dr() { | |
| return "IAB2" !== ko.IabType && ko.PCTemplateUpgrade && ko.PCCategoryStyle === ce.Toggle ? Fo.toggleEl.cloneNode(!0) : Fo.chkboxEl.cloneNode(!0) | |
| } | |
| var pr, ur = (hr.prototype.setHtmlTemplate = function(e) { | |
| pr.setInternalData(), | |
| pr.rootHtml = e, | |
| pr.cloneHtmlElements() | |
| } | |
| , | |
| hr.prototype.getVendorListEle = function(e) { | |
| var t = document.createDocumentFragment() | |
| , r = document.createElement("div"); | |
| r.classList.add("ot-vs-list"); | |
| var i = ko.VendorServiceConfig.PCVSExpandGroup; | |
| return e.forEach(function(e, t) { | |
| var o = "ot-vs-lst-id-" + t | |
| , n = pr.createVendor(e.groupRef, e, i, o); | |
| r.appendChild(n) | |
| }), | |
| t.appendChild(r), | |
| t | |
| } | |
| , | |
| hr.prototype.insertVendorServiceHtml = function(e, t) { | |
| if (!pr.checkIfIsInvalid(e, t)) { | |
| var o = document.createDocumentFragment(); | |
| if (pr.setVendorContainer(o, e), | |
| pr.setVendorList(o, e), | |
| e.SubGroups && 0 < e.SubGroups.length) { | |
| o.querySelector(this.MAIN_CONT_ELE).classList.add("ot-vnd-subgrp-cnt"); | |
| var n = t.children[1]; | |
| vo.pcName === Rt && (n = t.children[2]), | |
| t.insertBefore(o, n) | |
| } else | |
| t.appendChild(o) | |
| } | |
| } | |
| , | |
| hr.prototype.toggleVendorService = function(e, t, o, n) { | |
| var r = Mo.getGroupById(e) | |
| , i = Mo.getVSById(t); | |
| n = n || pr.getVendorInputElement(i.CustomVendorServiceId), | |
| pr.setVendorServiceState(n, i, o), | |
| o ? pr.changeGroupState(r, o, pr.isToggle) : pr.checkGroupChildrenState(r) || pr.changeGroupState(r, !1, pr.isToggle) | |
| } | |
| , | |
| hr.prototype.setVendorStateByGroup = function(e, t) { | |
| var o = e.VendorServices; | |
| if (bo.showVendorService && o) | |
| for (var n = 0, r = o; n < r.length; n++) { | |
| var i = r[n] | |
| , s = pr.getVendorInputElement(i.CustomVendorServiceId); | |
| pr.setVendorServiceState(s, i, t) | |
| } | |
| } | |
| , | |
| hr.prototype.resetVendorUIState = function(e) { | |
| e.forEach(function(e, t) { | |
| var o = pr.getVendorInputElement(t); | |
| pr.changeVendorServiceUIState(o, e) | |
| }) | |
| } | |
| , | |
| hr.prototype.setVendorServiceState = function(e, t, o) { | |
| pr.changeVendorServiceState(t, o), | |
| pr.changeVendorServiceUIState(e, o); | |
| var n = o ? zn : Kn; | |
| Cn.triggerGoogleAnalyticsEvent(mn, n, t.ServiceName + ": " + t.CustomVendorServiceId) | |
| } | |
| , | |
| hr.prototype.removeVSUITemplate = function(e) { | |
| var t = e.querySelector(this.MAIN_CONT_ELE); | |
| t && e.removeChild(t) | |
| } | |
| , | |
| hr.prototype.consentAll = function(o) { | |
| bo.getVendorsInDomain().forEach(function(e) { | |
| var t = o; | |
| o || (t = Mo.isAlwaysActiveGroup(e.groupRef)), | |
| pr.toggleVendorService(e.groupRef.CustomGroupId, e.CustomVendorServiceId, t || o) | |
| }) | |
| } | |
| , | |
| hr.prototype.cloneHtmlElements = function() { | |
| var e = pr.rootHtml.querySelector(this.MAIN_CONT_ELE); | |
| if (e) { | |
| var t = e.querySelector(".ot-vnd-serv-hdr-cntr") | |
| , o = e.querySelector(".ot-vnd-lst-cont") | |
| , n = o.querySelector(".ot-vnd-item") | |
| , r = n.querySelector(".ot-vnd-info"); | |
| pr.vendorLabelContainerClone = t.cloneNode(!0), | |
| e.removeChild(t), | |
| pr.vendorInfoClone = r.cloneNode(!0), | |
| n.querySelector(".ot-vnd-info-cntr").removeChild(r), | |
| pr.vendorItemClone = n.cloneNode(!0), | |
| o.removeChild(n), | |
| pr.vendorListContainerClone = o.cloneNode(!0), | |
| e.removeChild(o), | |
| pr.vendorServMainContainerClone = e.cloneNode(!0), | |
| pr.rootHtml.removeChild(e) | |
| } | |
| } | |
| , | |
| hr.prototype.setInternalData = function() { | |
| pr.isToggle = ko.PCCategoryStyle === ce.Toggle; | |
| var e = ko.VendorServiceConfig; | |
| pr.stringTranslation = new Map, | |
| pr.stringTranslation.set("ServiceName", e.PCVSNameText || "ServiceName"), | |
| pr.stringTranslation.set("ParentCompany", e.PCVSParentCompanyText || "ParentCompany"), | |
| pr.stringTranslation.set("Address", e.PCVSAddressText || "Address"), | |
| pr.stringTranslation.set("DefaultCategoryName", e.PCVSDefaultCategoryText || "DefaultCategoryName"), | |
| pr.stringTranslation.set("Description", e.PCVSDefaultDescriptionText || "Description"), | |
| pr.stringTranslation.set("DPOEmail", e.PCVSDPOEmailText || "DPOEmail"), | |
| pr.stringTranslation.set("DPOLink", e.PCVSDPOLinkText || "DPOLink"), | |
| pr.stringTranslation.set("PrivacyPolicyLink", e.PCVSPrivacyPolicyLinkText || "PrivacyPolicyLink"), | |
| pr.stringTranslation.set("CookiePolicyLink", e.PCVSCookiePolicyLinkText || "CookiePolicyLink"), | |
| pr.stringTranslation.set("OptOutLink", e.PCVSOptOutLinkText || "OptOutLink"), | |
| pr.stringTranslation.set("LegalBasis", e.PCVSLegalBasisText || "LegalBasis") | |
| } | |
| , | |
| hr.prototype.setVendorContainer = function(e, t) { | |
| var o = pr.vendorServMainContainerClone.cloneNode(!0); | |
| o.setAttribute("data-group-id", t.CustomGroupId); | |
| var n = pr.vendorLabelContainerClone.cloneNode(!0); | |
| n.querySelector(".ot-vnd-serv-hdr").innerHTML = ko.VendorServiceConfig.PCVSListTitle, | |
| o.appendChild(n), | |
| e.appendChild(o) | |
| } | |
| , | |
| hr.prototype.setVendorList = function(e, t) { | |
| for (var o = 0, n = pr.getVSFromGroupAndSubgroups(t), r = n.length, i = e.querySelector(this.MAIN_CONT_ELE), s = pr.vendorListContainerClone.cloneNode(), a = ko.VendorServiceConfig.PCVSExpandCategory; o < r; o++) { | |
| var l = pr.createVendor(t, n[o], a); | |
| s.appendChild(l) | |
| } | |
| i.appendChild(s) | |
| } | |
| , | |
| hr.prototype.getVSFromGroupAndSubgroups = function(e, t) { | |
| var o, n, r; | |
| void 0 === t && (t = !1); | |
| var i = null != (o = e.VendorServices) ? o : []; | |
| if (t) | |
| for (var s = 0, a = null != (n = e.SubGroups) ? n : []; s < a.length; s++) { | |
| var l = null != (r = a[s].VendorServices) ? r : []; | |
| i.push.apply(i, l) | |
| } | |
| return i | |
| } | |
| , | |
| hr.prototype.createVendor = function(e, t, o, n) { | |
| var r = pr.vendorItemClone.cloneNode(!0); | |
| if (r.setAttribute("data-vnd-id", t.CustomVendorServiceId), | |
| ko.PCAccordionStyle === J.NoAccordion) { | |
| r.classList.remove("ot-accordion-layout"); | |
| var i = r.querySelector("button"); | |
| i && r.removeChild(i) | |
| } else | |
| pr.setExpandVendorList(r, o); | |
| pr.setVendorHeader(e, t, r, n); | |
| var s = r.querySelector(".ot-vnd-info-cntr"); | |
| return pr.setVendorInfo(s, t), | |
| r | |
| } | |
| , | |
| hr.prototype.setExpandVendorList = function(e, t) { | |
| e.querySelector("button").setAttribute("aria-expanded", "" + t) | |
| } | |
| , | |
| hr.prototype.setVendorHeader = function(e, t, o, n) { | |
| var r = ko.PCShowAlwaysActiveToggle | |
| , i = "always active" === Mo.getGrpStatus(e).toLowerCase() | |
| , s = o.querySelector(".ot-acc-hdr"); | |
| i && s.classList.add("ot-always-active-group"); | |
| var a = null; | |
| i && ko.PCCategoryStyle === ce.Toggle || (a = pr.setHeaderInputStyle(e, t, i, n)); | |
| var l = pr.setHeaderText(t, s); | |
| s.appendChild(l); | |
| var c = pr.getPositionForElement(ko.PCAccordionStyle, pr.isToggle) | |
| , d = c.positionIcon | |
| , p = c.positionInput; | |
| if (a && s.insertAdjacentElement(p, a), | |
| i && r) { | |
| var u = pr.getAlwaysActiveElement(); | |
| s.insertAdjacentElement("beforeend", u) | |
| } | |
| if (ko.PCAccordionStyle !== J.NoAccordion) { | |
| var h = pr.setHeaderAccordionIcon(); | |
| s.insertAdjacentElement(d, h) | |
| } | |
| } | |
| , | |
| hr.prototype.getPositionForElement = function(e, t) { | |
| var o = "beforeend" | |
| , n = "beforeend"; | |
| return t && e === J.PlusMinus && (o = "afterbegin"), | |
| t || (n = "afterbegin"), | |
| { | |
| positionIcon: o, | |
| positionInput: n | |
| } | |
| } | |
| , | |
| hr.prototype.setHeaderAccordionIcon = function() { | |
| return ko.PCAccordionStyle === J.Caret ? Fo.arrowEl.cloneNode(!0) : Fo.plusMinusEl.cloneNode(!0) | |
| } | |
| , | |
| hr.prototype.setHeaderText = function(e, t) { | |
| var o = t.querySelector(".ot-cat-header") | |
| , n = o.cloneNode(); | |
| return t.removeChild(o), | |
| n.innerText = e.ServiceName, | |
| n | |
| } | |
| , | |
| hr.prototype.setHeaderInputStyle = function(e, t, o, n) { | |
| if (!ko.VendorServiceConfig.PCVSOptOut) | |
| return null; | |
| var r = Mo.checkIsActiveByDefault(e) | |
| , i = !1 | |
| , s = bo.vsConsent; | |
| i = s.has(t.CustomVendorServiceId) ? s.get(t.CustomVendorServiceId) : r; | |
| var a = dr(); | |
| a.querySelector("input").classList.add("category-switch-handler"); | |
| var l = a.querySelector("input") | |
| , c = t.CustomVendorServiceId | |
| , d = null != n ? n : "ot-vendor-id-" + c | |
| , p = "ot-vendor-header-id-" + c; | |
| To(l).attr("id", d), | |
| To(l).attr("name", d), | |
| To(l).attr("aria-labelledby", p), | |
| To(l).data("ot-vs-id", c), | |
| To(l).data("optanongroupid", t.groupRef.CustomGroupId), | |
| l.disabled = o, | |
| ho.setCheckedAttribute(null, l, i); | |
| var u = pr.isToggle ? d : p; | |
| return To(a.querySelector("label")).attr("for", u), | |
| To(a.querySelector(".ot-label-txt")).html(t.ServiceName), | |
| a | |
| } | |
| , | |
| hr.prototype.getAlwaysActiveElement = function() { | |
| var e = document.createElement("div"); | |
| return e.classList.add("ot-always-active"), | |
| e.innerText = ko.AlwaysActiveText, | |
| e | |
| } | |
| , | |
| hr.prototype.setVendorInfo = function(e, t) { | |
| var o, n = ["DPOLink", "PrivacyPolicyLink", "CookiePolicyLink", "OptOutLink"]; | |
| for (o in t) | |
| if (!pr.skipVendorInfoKey(o, t)) { | |
| var r = t[o] | |
| , i = pr.vendorInfoClone.cloneNode(!0); | |
| i.dataset.vndInfoKey = o + "-" + t.CustomVendorServiceId; | |
| var s = i.querySelector(".ot-vnd-lbl") | |
| , a = i.querySelector(".ot-vnd-cnt"); | |
| if (s.innerHTML = pr.getLocalizedString(o), | |
| n.includes(o)) { | |
| a.remove(); | |
| var l = document.createElement("a"); | |
| To(l).attr("href", r), | |
| To(l).attr("target", "_blank"), | |
| To(l).attr("rel", "noopener"), | |
| To(l).attr("aria-label", r + " " + ko.NewWinTxt), | |
| l.classList.add("ot-vnd-cnt"), | |
| l.innerText = r, | |
| s.insertAdjacentElement("afterend", l) | |
| } else | |
| a.innerHTML = r; | |
| e.appendChild(i) | |
| } | |
| } | |
| , | |
| hr.prototype.skipVendorInfoKey = function(e, t) { | |
| return "VendorServiceId" === e || "DefaultCategoryId" === e || "ServiceName" === e || "groupRef" === e || "CustomVendorServiceId" === e || "PurposeId" === e || !t[e] | |
| } | |
| , | |
| hr.prototype.getLocalizedString = function(e) { | |
| return pr.stringTranslation.has(e) ? pr.stringTranslation.get(e) : "DEFAULT" | |
| } | |
| , | |
| hr.prototype.checkGroupChildrenState = function(e) { | |
| for (var t, o, n = 0, r = null != (t = e.SubGroups) ? t : []; n < r.length; n++) { | |
| var i = r[n]; | |
| if (pr.checkGroupChildrenState(i)) | |
| return !0 | |
| } | |
| for (var s = 0, a = null != (o = e.VendorServices) ? o : []; s < a.length; s++) { | |
| var l = a[s]; | |
| if (bo.vsConsent.get(l.CustomVendorServiceId)) | |
| return !0 | |
| } | |
| return !1 | |
| } | |
| , | |
| hr.prototype.changeVendorServiceState = function(e, t) { | |
| bo.vsConsent.set(e.CustomVendorServiceId, t) | |
| } | |
| , | |
| hr.prototype.changeVendorServiceUIState = function(e, t) { | |
| e && (ho.setCheckedAttribute(null, e, t), | |
| pr.isToggle && e.parentElement.querySelector(".ot-switch-nob").setAttribute("aria-checked", "" + t)) | |
| } | |
| , | |
| hr.prototype.changeGroupState = function(e, t, o) { | |
| var n = Mo.getParentByGrp(e); | |
| if (tr.toggleGrpStatus(e, t), | |
| pr.updateGroupUIState(e.CustomGroupId, t, o, null !== n), | |
| n) { | |
| var r = pr.checkGroupChildrenState(n); | |
| pr.changeGroupState(n, r, o) | |
| } | |
| } | |
| , | |
| hr.prototype.updateGroupUIState = function(e, t, o, n) { | |
| void 0 === n && (n = !1); | |
| var r = n ? "#ot-sub-group-id-" : "#ot-group-id-" | |
| , i = document.querySelector(r + e); | |
| i && (ho.setCheckedAttribute(null, i, t), | |
| o && i.parentElement.querySelector(".ot-switch-nob").setAttribute("aria-checked", "" + t)) | |
| } | |
| , | |
| hr.prototype.getVendorInputElement = function(e) { | |
| return document.getElementById("ot-vendor-id-" + e) | |
| } | |
| , | |
| hr.prototype.checkIfIsInvalid = function(e, t) { | |
| return !e || !e.VendorServices || !t || e.VendorServices.length <= 0 | |
| } | |
| , | |
| hr); | |
| function hr() { | |
| this.MAIN_CONT_ELE = ".ot-vnd-serv" | |
| } | |
| var gr, Cr = "#onetrust-banner-sdk", yr = ".banner_logo", fr = "#onetrust-pc-sdk", vr = (kr.prototype.insertPcHtml = function() { | |
| gr.jsonAddAboutCookies(ko); | |
| var t = document.createDocumentFragment(); | |
| if (vn.preferenceCenterGroup) { | |
| var e = document.createElement("div"); | |
| To(e).html(vn.preferenceCenterGroup.html); | |
| var o = e.querySelector("#onetrust-pc-sdk"); | |
| gr.addClassesPerConfig(o), | |
| To(t).append(o); | |
| var n = function(e) { | |
| return t.querySelector(e) | |
| } | |
| , r = function(e) { | |
| return t.querySelectorAll(e) | |
| }; | |
| gr.manageCloseButtons(o, r, n), | |
| ko.Language && ko.Language.Culture && To(n("#onetrust-pc-sdk")).attr("lang", ko.Language.Culture), | |
| gr.addLogos(n, r), | |
| To(n(Go.P_Title)).html(ko.MainText), | |
| ko.PCCloseButtonType === he.Link && ko.PCTemplateUpgrade && vo.pcName === Rt && To(n(Go.P_Title)).addClass("ot-pc-title-shrink"), | |
| ko.PCTemplateUpgrade && To(n(fr + ' > div[role="alertdialog"]')).css("height: 100%;"), | |
| To(n(fr + ' > div[role="alertdialog"]')).attr(this._ariaLabel, ko.MainText), | |
| ko.PCRegionAriaLabel && (To(n("#onetrust-pc-sdk")).attr(this._ariaLabel, ko.PCRegionAriaLabel), | |
| To(n("#onetrust-pc-sdk")).attr("role", "region")), | |
| vo.pcName === Rt && (To(n(Go.P_Privacy_Txt)).html(ko.AboutCookiesText), | |
| To(n(Go.P_Privacy_Hdr)).html(ko.AboutCookiesText)), | |
| To(n(Go.P_Policy_Txt)).html(ko.MainInfoText), | |
| gr.configureLinkFields(n), | |
| gr.configureSubjectDataFields(n), | |
| gr.configureButtons(n, r), | |
| gr.setManagePreferenceText(n), | |
| gr.initializePreferenceCenterGroups(n, t), | |
| gr.removeListsWhenAppropriate(n), | |
| ko.PCTemplateUpgrade && gr.setOptOutSignalNotification(n) | |
| } | |
| var i = document.createElement("iframe"); | |
| i.setAttribute("class", "ot-text-resize"), | |
| i.setAttribute("title", "onetrust-text-resize"), | |
| co(i, "position: absolute; top: -50000px; width: 100em;"), | |
| i.setAttribute(this._ariaHidden, "true"), | |
| To(t.querySelector("#onetrust-pc-sdk")).append(i); | |
| var s = document.getElementById("onetrust-consent-sdk"); | |
| To(s).append(t), | |
| vo.ignoreInjectingHtmlCss || To(document.body).append(s), | |
| (ko.showCookieList || bo.showGeneralVendors) && rr.InitializeHostList() | |
| } | |
| , | |
| kr.prototype.addClassesPerConfig = function(e) { | |
| /Chrome|Safari/i.test(navigator.userAgent) && /Google Inc|Apple Computer/i.test(navigator.vendor) || To(e).addClass("ot-sdk-not-webkit"), | |
| ko.useRTL && To(e).attr("dir", "rtl"), | |
| vo.legIntSettings.PAllowLI && "IAB2" === vo.iabType && (To(e).addClass("ot-leg-opt-out"), | |
| vo.legIntSettings.PShowLegIntBtn && To(e).addClass("ot-leg-btn")), | |
| ko.BannerRelativeFontSizesToggle && To(e).addClass("otRelFont"), | |
| ko.PCShowConsentLabels && To(e).addClass("ot-tgl-with-label"), | |
| (ko.UseGoogleVendors || bo.showGeneralVendors) && To(e).addClass("ot-addtl-vendors"), | |
| "right" === ko.PreferenceCenterPosition && To(e).addClass(ko.useRTL ? "right-rtl" : "right") | |
| } | |
| , | |
| kr.prototype.manageCloseButtons = function(e, t, o) { | |
| var n = To(t(Go.P_Close_Btn)).el; | |
| if (ko.ShowPreferenceCenterCloseButton) { | |
| ko.CloseText || (ko.CloseText = "Close Preference Center"); | |
| for (var r = 0, i = n; r < i.length; r++) { | |
| var s = i[r]; | |
| ko.PCCloseButtonType === he.Link && ko.PCTemplateUpgrade ? (To(s).html(ko.PCContinueText), | |
| To(e).addClass("ot-close-btn-link"), | |
| To(s).el.removeAttribute(this._ariaLabel)) : (To(s).el.setAttribute(this._ariaLabel, ko.CloseText), | |
| wo.setCloseIcon(o("#onetrust-pc-sdk .ot-close-icon"))) | |
| } | |
| } else | |
| for (var a = 0; a < n.length; a++) | |
| To(n[a].parentElement).el.removeChild(n[a]) | |
| } | |
| , | |
| kr.prototype.addLogos = function(e, t) { | |
| var o = e(Go.P_Logo); | |
| if (o && ko.optanonLogo) { | |
| var n = wo.updateCorrectUrl(ko.optanonLogo); | |
| wo.checkMobileOfflineRequest(wo.getBannerVersionUrl()) && (n = ho.getRelativeURL(n, !0, !0)); | |
| var r = document.createElement("img"); | |
| r.setAttribute("alt", ko.PCLogoAria), | |
| r.setAttribute("src", n), | |
| o.append(r), | |
| ko.PCLogoAria && To(o).attr(this._ariaLabel, ko.PCLogoAria) | |
| } | |
| wo.insertFooterLogo(t(".ot-pc-footer-logo a")) | |
| } | |
| , | |
| kr.prototype.configureLinkFields = function(e) { | |
| if (ko.AboutText && To(e(Go.P_Policy_Txt)).html(To(e(Go.P_Policy_Txt)).html() + '\n <br/><a href="' + ko.AboutLink + '" class="privacy-notice-link" rel="noopener" target="_blank"\n aria-label="' + ko.PCCookiePolicyLinkScreenReader + '">' + ko.AboutText + "</a>"), | |
| ko.PCenterImprintLinkText) { | |
| ko.AboutText || e(Go.P_Policy_Txt).insertAdjacentHTML("beforeend", "<br/>"); | |
| var t = document.createElement("a"); | |
| t.classList.add("ot-link-btn", "ot-imprint-handler"), | |
| t.textContent = ko.PCenterImprintLinkText, | |
| t.setAttribute(this._ariaLabel, ko.PCenterImprintLinkScreenReader), | |
| t.setAttribute("href", ko.PCenterImprintLinkUrl), | |
| e(Go.P_Policy_Txt).appendChild(t) | |
| } | |
| if (ko.PCenterVendorListLinkText) { | |
| var o = !ko.IsIabEnabled && bo.showGeneralVendors ? "ot-gv-list-handler" : "onetrust-vendors-list-handler"; | |
| e(Go.P_Policy_Txt).insertAdjacentHTML("beforeend", '<button class="ot-link-btn ' + o + '" aria-label="' + ko.PCenterVendorListLinkAriaLabel + '">\n ' + ko.PCenterVendorListLinkText + "\n </button>") | |
| } | |
| } | |
| , | |
| kr.prototype.configureSubjectDataFields = function(e) { | |
| if (ko.PCTemplateUpgrade && ko.PCenterUserIdTitleText && ko.IsConsentLoggingEnabled) { | |
| var t = uo.readCookieParam(pt.OPTANON_CONSENT, rt); | |
| if (e(Go.P_Policy_Txt).insertAdjacentHTML("beforeend", '<div class="ot-userid-title"><span>' + ko.PCenterUserIdTitleText + ": </span> " + t + "</div>"), | |
| ko.PCenterUserIdDescriptionText && e(Go.P_Policy_Txt).insertAdjacentHTML("beforeend", '<div class="ot-userid-desc">' + ko.PCenterUserIdDescriptionText + "</div>"), | |
| ko.PCenterUserIdTimestampTitleText) { | |
| var o = uo.getCookie(pt.ALERT_BOX_CLOSED) | |
| , n = o && wo.getUTCFormattedDate(o) | |
| , r = n || ko.PCenterUserIdNotYetConsentedText; | |
| e(Go.P_Policy_Txt).insertAdjacentHTML("beforeend", '<div class="ot-userid-timestamp"><span>' + ko.PCenterUserIdTimestampTitleText + ": </span> " + r + "</div>") | |
| } | |
| } | |
| } | |
| , | |
| kr.prototype.setManagePreferenceText = function(e) { | |
| var t = e(Go.P_Manage_Cookies_Txt) | |
| , o = To(t); | |
| t && (o.html(ko.ManagePreferenceText), | |
| ko.ManagePreferenceText || o.attr(this._ariaHidden, !0)) | |
| } | |
| , | |
| kr.prototype.configureButtons = function(e, t) { | |
| ko.ConfirmText.trim() ? To(e("#accept-recommended-btn-handler")).html(ko.ConfirmText) : e("#accept-recommended-btn-handler").parentElement.removeChild(e("#accept-recommended-btn-handler")); | |
| for (var o = t(".save-preference-btn-handler"), n = 0; n < o.length; n++) | |
| To(o[n]).html(ko.AllowAllText); | |
| var r = t(".ot-pc-refuse-all-handler"); | |
| if (ko.PCenterShowRejectAllButton && ko.PCenterRejectAllButtonText.trim()) | |
| for (n = 0; n < r.length; n++) | |
| To(r[n]).html(ko.PCenterRejectAllButtonText); | |
| else | |
| ho.removeChild(r) | |
| } | |
| , | |
| kr.prototype.removeListsWhenAppropriate = function(e) { | |
| if (!ko.IsIabEnabled) { | |
| var t = e(Go.P_Vendor_Container); | |
| t && t.parentElement.removeChild(t) | |
| } | |
| if (!ko.showCookieList && !bo.showGeneralVendors) { | |
| var o = e(Go.P_Host_Cntr); | |
| o && o.parentElement.removeChild(o) | |
| } | |
| } | |
| , | |
| kr.prototype.setParentGroupName = function(e, t, o, n) { | |
| var r = e.querySelector(".category-header,.ot-cat-header,.category-menu-switch-handler>h3"); | |
| To(r).html(t), | |
| To(r).attr("id", o), | |
| vo.pcName === Rt && (e.querySelector(Go.P_Category_Header).innerHTML = t, | |
| e.querySelector("" + Go.P_Desc_Container).setAttribute("id", n), | |
| e.querySelector(".category-menu-switch-handler").setAttribute("aria-controls", n)) | |
| } | |
| , | |
| kr.prototype.setLegIntButton = function(e, t, o, n) { | |
| void 0 === o && (o = !1); | |
| var r = !0; | |
| -1 < bo.vendors.selectedLegInt.indexOf(t.IabGrpId + ":false") && (r = !1); | |
| var i = Ro.generateLegIntButtonElements(r, t.OptanonGroupId); | |
| o ? n.insertAdjacentHTML("afterend", i) : e.insertAdjacentHTML("beforeend", i); | |
| var s = e.querySelector(".ot-remove-objection-handler"); | |
| s && co(s, s.getAttribute("data-style")) | |
| } | |
| , | |
| kr.prototype.setParentGroupDescription = function(e, t, o, n, r) { | |
| var i = tr.safeFormattedGroupDescription(t) | |
| , s = e.querySelector("p:not(.ot-always-active)") | |
| , a = e.querySelector(Go.P_Acc_Grp_Desc) | |
| , l = s || a; | |
| return -1 < ao.indexOf(t.Type) && o.PCGrpDescType === E.Legal ? i = t.DescriptionLegal : l.classList.add("ot-category-desc"), | |
| vo.legIntSettings.PAllowLI && !vo.legIntSettings.PShowLegIntBtn && (t.SubGroups.some(function(e) { | |
| return e.HasLegIntOptOut | |
| }) || t.HasLegIntOptOut ? l.parentElement.classList.add("ot-leg-border-color") : ho.removeChild(e.querySelector(Go.P_Li_Hdr))), | |
| vo.pcName !== Rt && l.setAttribute("id", n), | |
| To(l).html(i), | |
| t.Type === oo && ho.removeChild(l), | |
| l | |
| } | |
| , | |
| kr.prototype.cloneOtHtmlEls = function(e) { | |
| var t = /otPcPanel|otPcCenter/; | |
| Fo.toggleEl = To(e(".ot-tgl")).el.cloneNode(!0), | |
| Fo.arrowEl = To(e('#onetrust-pc-sdk [role="alertdialog"] > ' + Go.P_Arrw_Cntr)).el.cloneNode(!0), | |
| Fo.subGrpEl = To(e(Go.P_Sub_Grp_Cntr)).el.cloneNode(!0), | |
| Fo.vListEl = To(e(Go.P_Ven_Lst_Cntr)).el.cloneNode(!0), | |
| Fo.cListEl = To(e(Go.P_Host_Lst_cntr)).el.cloneNode(!0), | |
| Fo.chkboxEl = To(e(Go.P_CBx_Cntr)).el.cloneNode(!0), | |
| Fo.accordionEl = To(e(".ot-acc-cntr")).el.cloneNode(!0), | |
| t.test(vo.pcName) && (Fo.plusMinusEl = To(e(".ot-plus-minus")).el.cloneNode(!0)), | |
| ho.removeChild(e(".ot-tgl")), | |
| ho.removeChild(e('#onetrust-pc-sdk [role="alertdialog"] > ' + Go.P_Arrw_Cntr)), | |
| ho.removeChild(e(Go.P_Sub_Grp_Cntr)), | |
| ho.removeChild(e(Go.P_Ven_Lst_Cntr)), | |
| ho.removeChild(e(Go.P_Host_Lst_cntr)), | |
| ho.removeChild(e(Go.P_CBx_Cntr)), | |
| ho.removeChild(e(".ot-acc-cntr")), | |
| t.test(vo.pcName) && ho.removeChild(e(".ot-plus-minus")) | |
| } | |
| , | |
| kr.prototype.insertSelectAllEls = function(e) { | |
| var t = e(Go.P_Select_Cntr + " .ot-sel-all-chkbox") | |
| , o = bo.showVendorService ? dr() : Fo.chkboxEl.cloneNode(!0); | |
| o.id = Go.P_Sel_All_Host_El, | |
| o.querySelector("input").id = "select-all-hosts-groups-handler", | |
| o.querySelector("label").setAttribute("for", "select-all-hosts-groups-handler"), | |
| To(t).append(o); | |
| var n = bo.showVendorService ? dr() : Fo.chkboxEl.cloneNode(!0); | |
| n.id = Go.P_Sel_All_Vendor_Consent_El, | |
| n.querySelector("input").id = "select-all-vendor-groups-handler", | |
| n.querySelector("label").setAttribute("for", "select-all-vendor-groups-handler"), | |
| To(t).append(n); | |
| var r = bo.showVendorService ? dr() : Fo.chkboxEl.cloneNode(!0); | |
| r.id = Go.P_Sel_All_Vendor_Leg_El, | |
| r.querySelector("input").id = "select-all-vendor-leg-handler", | |
| r.querySelector("label").setAttribute("for", "select-all-vendor-leg-handler"), | |
| To(t).append(r) | |
| } | |
| , | |
| kr.prototype.initializePreferenceCenterGroups = function(e, t) { | |
| var o = vo.pcName; | |
| if (lo.isV2Template) { | |
| gr.cloneOtHtmlEls(e); | |
| var n = Fo.chkboxEl.cloneNode(!0); | |
| n.querySelector("input").classList.add("category-filter-handler"), | |
| To(e(Go.P_Fltr_Modal + " " + Go.P_Fltr_Option)).append(n), | |
| gr.insertSelectAllEls(e) | |
| } | |
| var r = To(e("#onetrust-pc-sdk " + Go.P_Category_Grp)); | |
| o === Nt || o === Ht || o === Dt ? ko.PCenterEnableAccordion ? ho.removeChild(r.el.querySelector(Go.P_Category_Item + ":not(.ot-accordion-layout)")) : ho.removeChild(r.el.querySelector(Go.P_Category_Item + ".ot-accordion-layout")) : o === Rt && (ko.PCenterEnableAccordion = !1); | |
| var i, s = e("#onetrust-pc-sdk " + Go.P_Category_Item), a = lo.isV2Template ? Fo.subGrpEl.cloneNode(!0) : To(e(Go.P_Sub_Grp_Cntr)), l = lo.isV2Template ? null : To(e(Go.P_Acc_Container + " " + Go.P_Sub_Grp_Cntr)); | |
| ko.PCTemplateUpgrade && /otPcTab/.test(o) && (i = e(".ot-abt-tab").cloneNode(!0), | |
| ho.removeChild(e(".ot-abt-tab"))), | |
| r.el.removeChild(s), | |
| gr.setVendorListClass(e, s), | |
| gr.setPCHeader(e, s), | |
| gr.createHtmlForEachGroup({ | |
| fm: e, | |
| fragment: t, | |
| categoryGroupTemplate: s, | |
| cookiePreferencesContainer: r, | |
| popupSubGrpContainer: l, | |
| subGrpContainer: a | |
| }), | |
| gr.setPcTabLayout(e, t, i) | |
| } | |
| , | |
| kr.prototype.createHtmlForEachGroup = function(e) { | |
| var t = e.fm | |
| , o = e.fragment | |
| , n = e.categoryGroupTemplate | |
| , r = e.cookiePreferencesContainer | |
| , i = e.popupSubGrpContainer | |
| , s = e.subGrpContainer | |
| , a = ko.Groups.filter(function(e) { | |
| return e.Order | |
| }) | |
| , l = 0 === r.el.children.length; | |
| ko.PCTemplateUpgrade && (bo.showVendorService ? pr.setHtmlTemplate(t('#onetrust-pc-sdk div[role="alertdialog"]')) : pr.removeVSUITemplate(t('#onetrust-pc-sdk div[role="alertdialog"]'))); | |
| for (var c = 0, d = a; c < d.length; c++) { | |
| var p = d[c] | |
| , u = p.GroupName | |
| , h = p.CustomGroupId | |
| , g = n.cloneNode(!0) | |
| , C = "ot-group-id-" + h | |
| , y = "ot-header-id-" + h | |
| , f = "ot-desc-id-" + h; | |
| (g = To(g).el).setAttribute("data-optanongroupid", h); | |
| var v = g.querySelector("input,button"); | |
| v && (v.setAttribute("aria-controls", f), | |
| v.setAttribute("aria-labelledby", y)), | |
| gr.setParentGroupName(g, u, y, f), | |
| gr.setPopupData(p, g); | |
| var k = gr.setParentGroupDescription(g, p, ko, f, C); | |
| lo.isV2Template ? gr.setToggle(g, k, p, C, y) : gr.setToggleProps(g, k, p, C, y); | |
| var m = !!t("#onetrust-pc-sdk " + Go.P_Category_Grp).querySelector(Go.P_Category_Item) | |
| , b = r.el.querySelectorAll(Go.P_Category_Item + ":not(.ot-vnd-item)"); | |
| b = b[b.length - 1], | |
| l ? r.append(g) : m ? So.insertAfter(g, b) : So.insertAfter(g, r.el.querySelector(Go.P_Li_Hdr) || r.el.querySelector("h3")), | |
| gr.setSubGroupData(p, g, i, s); | |
| var S = ko.PCGrpDescLinkPosition === B.Top; | |
| p.Type === oo && S && (k = g.querySelector(Go.P_Sub_Grp_Cntr)); | |
| var P = S ? k : null; | |
| gr.setVendorListBtn(g, t, o, p, P, ko), | |
| gr.setHostListBtn(g, t, o, p), | |
| gr.setVendorServiceData(p, g), | |
| bo.dataGroupState.push(p) | |
| } | |
| } | |
| , | |
| kr.prototype.setPopupData = function(e, t) { | |
| vo.pcName === Ft && (e.ShowVendorList && "IAB2" === ko.IabType ? (ho.removeChild(t.querySelector("p:not(.ot-always-active)")), | |
| ho.removeChild(t.querySelector(Go.P_Acc_Txt + ":not(" + Go.P_Acc_Container + ")")), | |
| e.SubGroups.length || lo.isV2Template || ho.removeChild(t.querySelector(Go.P_Sub_Grp_Cntr))) : ho.removeChild(t.querySelector(Go.P_Acc_Container))) | |
| } | |
| , | |
| kr.prototype.setVendorServiceData = function(e, t) { | |
| var o = vo.pcName; | |
| if (bo.showVendorService && ko.VendorServiceConfig.PCVSCategoryView) { | |
| var n = Go.P_Acc_Txt; | |
| o === Rt && (n = Go.P_Desc_Container); | |
| var r = t.querySelector(n); | |
| ko.PCAccordionStyle === J.NoAccordion && (r = t), | |
| pr.insertVendorServiceHtml(e, r) | |
| } | |
| } | |
| , | |
| kr.prototype.jsonAddAboutCookies = function(e) { | |
| var t = {}; | |
| return t.GroupName = e.AboutCookiesText, | |
| t.GroupDescription = e.MainInfoText, | |
| t.ShowInPopup = !0, | |
| t.Order = 0, | |
| t.IsAboutGroup = !0, | |
| t | |
| } | |
| , | |
| kr.prototype.setVendorListBtn = function(e, t, o, n, r, i) { | |
| var s = vo.pcName; | |
| if (n.ShowVendorList) { | |
| var a = void 0 | |
| , l = void 0; | |
| if (lo.isV2Template ? a = (l = Fo.vListEl.cloneNode(!0)).querySelector(".category-vendors-list-handler") : l = (a = e.querySelector(".category-vendors-list-handler")).parentElement, | |
| a.innerHTML = i.VendorListText + "‎", | |
| a.setAttribute(this._ariaLabel, ko.PCOpensVendorDetailsAlert), | |
| a.setAttribute("data-parent-id", n.CustomGroupId), | |
| i.PCGrpDescType === E.UserFriendly && (a.insertAdjacentHTML("afterend", "<span class='ot-ext-lnk'></span>"), | |
| a.insertAdjacentHTML("afterend", "<a href='" + ko.IabLegalTextUrl + "?lang=" + bo.consentLanguage + "' rel=\"noopener\" target='_blank'> | " + i.PCVendorFullLegalText + ' <span class="ot-scrn-rdr">' + ko.NewWinTxt + "</span></a>")), | |
| lo.isV2Template) { | |
| var c = e; | |
| s === Rt ? c = e.querySelector("" + Go.P_Desc_Container) : i.PCenterEnableAccordion && (c = e.querySelector(Go.P_Acc_Txt)), | |
| c.insertAdjacentElement("beforeend", l) | |
| } | |
| r && r.insertAdjacentElement("beforebegin", l) | |
| } else if (!lo.isV2Template) { | |
| if (s !== Ht && s !== Nt || i.PCenterEnableAccordion) { | |
| if (s === Ft || s === Ht || s === Nt && i.PCenterEnableAccordion) { | |
| var d = t("#vendor-list-container") | |
| , p = e.querySelector(Go.P_Acc_Txt); | |
| d && o.querySelector("" + Go.P_Content).removeChild(d), | |
| lo.isV2Template || To(p).el.removeChild(p.querySelector(Go.P_Ven_Lst_Cntr)) | |
| } | |
| } else | |
| ho.removeChild(e.querySelector(Go.P_Ven_Lst_Cntr)); | |
| if (s === Rt || s === Dt) { | |
| var u = e.querySelector(Go.P_Ven_Lst_Cntr); | |
| u && u.parentElement.removeChild(u) | |
| } | |
| } | |
| } | |
| , | |
| kr.prototype.setHostListBtn = function(e, t, o, n) { | |
| var r = vo.pcName | |
| , i = !1; | |
| ko.showCookieList && (i = -1 < ho.findIndex(b(n.SubGroups, [n]), function(e) { | |
| return -1 === no.indexOf(e.Type) && e.FirstPartyCookies.length | |
| })); | |
| var s = bo.showGeneralVendors && n.GeneralVendorsIds && n.GeneralVendorsIds.length; | |
| if (!bo.showVendorService && (ko.showCookieList || bo.showGeneralVendors) && (n.ShowHostList || i || s)) { | |
| var a = void 0; | |
| if (lo.isV2Template) { | |
| var l = Fo.cListEl.cloneNode(!0); | |
| a = l.querySelector(".category-host-list-handler"); | |
| var c = e; | |
| r === Rt ? c = e.querySelector("" + Go.P_Desc_Container) : ko.PCenterEnableAccordion && (c = e.querySelector(Go.P_Acc_Txt)), | |
| c.insertAdjacentElement("beforeend", l) | |
| } else | |
| a = e.querySelector(".category-host-list-handler"); | |
| gr.setcListHandler(a, n) | |
| } else | |
| gr.setHostListVendorList(t, o, e) | |
| } | |
| , | |
| kr.prototype.setcListHandler = function(e, t) { | |
| if (e) { | |
| var o = gr.setcListHeaderTitleAndScreenReader() | |
| , n = o[0] | |
| , r = o[1]; | |
| e.innerHTML = n + "‎", | |
| e.setAttribute(this._ariaLabel, r), | |
| e.setAttribute("data-parent-id", t.CustomGroupId) | |
| } | |
| } | |
| , | |
| kr.prototype.setcListHeaderTitleAndScreenReader = function() { | |
| var e, t; | |
| return e = bo.showTrackingTech ? (t = ko.AdditionalTechnologiesConfig.PCTechDetailsText, | |
| ko.AdditionalTechnologiesConfig.PCTechDetailsAriaLabel) : bo.showGeneralVendors ? (t = ko.GroupGenVenListLabel, | |
| ko.PCenterVendorListScreenReader) : (t = ko.ThirdPartyCookieListText, | |
| ko.PCOpensCookiesDetailsAlert), | |
| [t, e] | |
| } | |
| , | |
| kr.prototype.setHostListVendorList = function(e, t, o) { | |
| if (vo.pcName === Ft) { | |
| var n = e("#vendor-list-container") | |
| , r = o.querySelector(Go.P_Acc_Txt); | |
| n && t.querySelector("" + Go.P_Content).removeChild(n), | |
| r.querySelector(Go.P_Host_Lst_cntr) && To(r).el.removeChild(r.querySelector(Go.P_Host_Lst_cntr)) | |
| } else { | |
| var i = o.querySelector(Go.P_Host_Lst_cntr); | |
| i && i.parentElement.removeChild(i) | |
| } | |
| } | |
| , | |
| kr.prototype.setSubGroupData = function(e, t, o, n) { | |
| if (0 < e.SubGroups.length && e.ShowSubgroup) { | |
| var r = vo.pcName === Ft && e.ShowVendorList && "IAB2" === ko.IabType && !ko.PCTemplateUpgrade; | |
| gr.setSubGrps(e, r ? o : n, t, ko) | |
| } | |
| } | |
| , | |
| kr.prototype.setSubGrps = function(t, o, n, r) { | |
| if (vo.pcName === Ft && t.ShowVendorList && "IAB2" === r.IabType && !ko.PCTemplateUpgrade) { | |
| var e = n.querySelector(Go.P_Sub_Grp_Cntr); | |
| e.parentElement.removeChild(e) | |
| } | |
| t.SubGroups.forEach(function(e) { | |
| gr.setSubGroups({ | |
| group: t, | |
| subgroup: e, | |
| grpEl: n, | |
| subGrpEl: o, | |
| json: r | |
| }) | |
| }) | |
| } | |
| , | |
| kr.prototype.setSubGroups = function(e) { | |
| var t, o = e.group, n = e.subgroup, r = e.grpEl, i = e.subGrpEl, s = e.json, a = vo.pcName; | |
| "IAB2" !== vo.iabType || n.Type !== Zt || n.HasConsentOptOut || (t = !0); | |
| var l, c, d = lo.isV2Template ? i.cloneNode(!0) : i.el.cloneNode(!0), p = d.querySelector(Go.P_Subgp_ul), u = d.querySelector(Go.P_Subgrp_li).cloneNode(!0), h = n.CustomGroupId, g = "ot-sub-group-id-" + h, C = Mo.getGrpStatus(n).toLowerCase(), y = u.querySelector(".cookie-subgroup>h4, .cookie-subgroup>h5, .cookie-subgroup>h6, .ot-subgrp>h4, .ot-subgrp>h5, .ot-subgrp>h6"), f = u.querySelector(Go.P_Tgl_Cntr); | |
| if (u.setAttribute("data-optanongroupid", h), | |
| lo.isV2Template ? ((c = gr.getInputEle()).querySelector("input").setAttribute("data-optanongroupid", h), | |
| c.querySelector("input").classList.add("cookie-subgroup-handler"), | |
| l = c.cloneNode(!0), | |
| f.insertAdjacentElement("beforeend", l)) : (l = u.querySelector(".ot-toggle")).querySelector("input").setAttribute("data-optanongroupid", h), | |
| To(d.querySelector(Go.P_Subgp_ul)).html(""), | |
| To(y).html(n.GroupName), | |
| bo.showVendorService) { | |
| var v = document.createElement("div"); | |
| v.classList.add("ot-acc-hdr"), | |
| y.classList.add("ot-cat-header"), | |
| v.appendChild(y); | |
| var k = "afterbegin"; | |
| ko.PCCategoryStyle === ce.Toggle && (k = "beforeend"), | |
| v.insertAdjacentElement(k, l), | |
| u.removeChild(u.querySelector(Go.P_Subgrp_Tgl_Cntr)), | |
| u.insertAdjacentElement("afterbegin", v) | |
| } | |
| l.querySelector("input").setAttribute("id", g), | |
| l.querySelector("input").setAttribute(this._ariaLabel, n.GroupName), | |
| l.querySelector("label").setAttribute("for", g), | |
| gr.setSubGroupDescription({ | |
| json: s, | |
| group: o, | |
| subgroup: n, | |
| subGroupClone: u | |
| }); | |
| var m = b(io, ro); | |
| o.ShowSubgroupToggle && -1 < m.indexOf(n.Type) ? gr.setSubGroupToggle({ | |
| id: g, | |
| subGroupClone: u, | |
| group: o, | |
| subgroup: n, | |
| toggleGroup: f | |
| }) : C === ft && (o.ShowSubgroupToggle || -1 === so.indexOf(n.Type)) || (t = !0), | |
| gr.setSubGroupsProperties({ | |
| removeConsentToggle: t, | |
| subGroupToggle: l, | |
| subGroupClone: u, | |
| status: C, | |
| subgroup: n, | |
| grpEl: r, | |
| pcName: a, | |
| json: s, | |
| subGrpElClone: d, | |
| ulParentContainerEle: p | |
| }) | |
| } | |
| , | |
| kr.prototype.setSubGroupDescription = function(e) { | |
| var t = e.json | |
| , o = e.group | |
| , n = e.subgroup | |
| , r = e.subGroupClone | |
| , i = vo.pcName | |
| , s = t.PCGrpDescType === E.Legal | |
| , a = i === Ft && o.ShowVendorList && "IAB2" === t.IabType | |
| , l = To(r.querySelector(Go.P_Subgrp_Desc)); | |
| if (a) { | |
| var c = n.DescriptionLegal && s ? n.DescriptionLegal : n.GroupDescription; | |
| l.html(c) | |
| } else { | |
| c = tr.safeFormattedGroupDescription(n); | |
| var d = !1; | |
| -1 < ao.indexOf(n.Type) && s && (d = !0, | |
| c = n.DescriptionLegal), | |
| t.PCenterEnableAccordion && d || (l = To(r.querySelector("p"))), | |
| o.ShowSubGroupDescription ? l.html(c) : l.html("") | |
| } | |
| } | |
| , | |
| kr.prototype.setSubGroupToggle = function(e) { | |
| var t = e.id | |
| , o = e.subGroupClone | |
| , n = e.group | |
| , r = e.subgroup | |
| , i = e.toggleGroup | |
| , s = tr.isGroupActive(r); | |
| gr.setSubGroupActive({ | |
| group: n, | |
| subgroup: r, | |
| subGroupClone: o | |
| }, s); | |
| var a = i.querySelector(".ot-label-status"); | |
| if (ko.PCShowConsentLabels ? a.innerHTML = s ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(a), | |
| vo.legIntSettings.PAllowLI && r.Type === Zt && r.HasLegIntOptOut) | |
| if (vo.legIntSettings.PShowLegIntBtn) | |
| gr.setLegIntButton(o, r); | |
| else { | |
| var l = i.cloneNode(!0); | |
| i.insertAdjacentElement("afterend", l); | |
| var c = l.querySelector(".ot-label-status") | |
| , d = l.querySelector("input"); | |
| d.setAttribute("id", t + "-leg-out"), | |
| l.querySelector("label").setAttribute("for", t + "-leg-out"), | |
| r.IsLegIntToggle = !0; | |
| var p = tr.isGroupActive(r); | |
| ko.PCShowConsentLabels ? c.innerHTML = p ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(c), | |
| ho.setCheckedAttribute(null, d, p), | |
| r.IsLegIntToggle = !1 | |
| } | |
| } | |
| , | |
| kr.prototype.setSubGroupActive = function(e, t) { | |
| if (t) { | |
| var o = e.group | |
| , n = e.subgroup | |
| , r = e.subGroupClone | |
| , i = Mo.getGrpStatus(o).toLowerCase(); | |
| r.querySelector("input").setAttribute("checked", ""), | |
| i === ft && -1 === ao.indexOf(n.Type) && (r.querySelector("input").disabled = !0, | |
| r.querySelector("input").setAttribute("disabled", "true")) | |
| } | |
| } | |
| , | |
| kr.prototype.setSubGroupsProperties = function(e) { | |
| var t = e.removeConsentToggle | |
| , o = e.subGroupToggle | |
| , n = e.subGroupClone | |
| , r = e.status | |
| , i = e.subgroup | |
| , s = e.grpEl | |
| , a = e.pcName | |
| , l = e.json | |
| , c = e.subGrpElClone | |
| , d = e.ulParentContainerEle; | |
| if (t && (o.classList.add("ot-hide-tgl"), | |
| o.querySelector("input").setAttribute(this._ariaHidden, "true")), | |
| r === ft && !t) { | |
| o && o.parentElement.removeChild(o); | |
| var p = n.querySelector(Go.P_Tgl_Cntr); | |
| p && p.classList.add("ot-always-active-subgroup"), | |
| gr.setAlwaysActive(n, !0) | |
| } | |
| if ("COOKIE" === i.Type && -1 !== i.Parent.indexOf("STACK") && co(c, "display: none;"), | |
| To(d).append(n), | |
| lo.isV2Template) { | |
| var u = s; | |
| "otPcTab" === a ? u = s.querySelector("" + Go.P_Desc_Container) : l.PCenterEnableAccordion && (u = s.querySelector(Go.P_Acc_Txt)), | |
| u.insertAdjacentElement("beforeend", c) | |
| } else { | |
| var h = s.querySelector(Go.P_Category_Item + " " + Go.P_Ven_Lst_Cntr); | |
| h && h.insertAdjacentElement("beforebegin", c) | |
| } | |
| if (bo.showVendorService && ko.VendorServiceConfig.PCVSCategoryView) { | |
| var g = d; | |
| pr.insertVendorServiceHtml(i, g) | |
| } | |
| } | |
| , | |
| kr.prototype.getInputEleForCategory = function(e) { | |
| return bo.showVendorService && ko.PCCategoryStyle === ce.Checkbox && e.classList.add("ot-checkbox-consent"), | |
| gr.getInputEle() | |
| } | |
| , | |
| kr.prototype.getInputEle = function() { | |
| return "IAB2" !== ko.IabType && ko.PCTemplateUpgrade ? dr() : Fo.toggleEl.cloneNode(!0) | |
| } | |
| , | |
| kr.prototype.setToggle = function(e, t, o, n, r) { | |
| var i = gr.getInputEleForCategory(e); | |
| i.querySelector("input").classList.add("category-switch-handler"); | |
| var s = i.querySelector("input") | |
| , a = e.querySelector(Go.P_Category_Header) | |
| , l = tr.isGroupActive(o) | |
| , c = Mo.getGrpStatus(o).toLowerCase() === ft | |
| , d = o.OptanonGroupId.toString() | |
| , p = !0; | |
| if ("IAB2" !== vo.iabType || o.Type !== Zt && o.Type !== oo || o.HasConsentOptOut || (p = !1), | |
| To(i.querySelector("label")).attr("for", n), | |
| To(i.querySelector(".ot-label-txt")).html(o.GroupName), | |
| vo.legIntSettings.PAllowLI && o.Type === Zt && o.HasLegIntOptOut) | |
| if (vo.legIntSettings.PShowLegIntBtn) | |
| gr.setLegIntButton(e, o, !0, t); | |
| else { | |
| var u = i.cloneNode(!0); | |
| o.IsLegIntToggle = !0; | |
| var h = tr.isGroupActive(o) | |
| , g = u.querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels ? g.innerHTML = h ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(g), | |
| o.IsLegIntToggle = !1, | |
| tr.setInputID(u.querySelector("input"), n + "-leg-out", d, h, r), | |
| To(u.querySelector("label")).attr("for", n + "-leg-out"), | |
| a.insertAdjacentElement("afterend", u) | |
| } | |
| var C = i.querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels ? C.innerHTML = l ? ko.PCActiveText : ko.PCInactiveText : ho.removeChild(C); | |
| var y = ko.PCCategoryStyle === ce.Toggle; | |
| this.hideToggleContainer(c, p, y, i), | |
| p && this.setAlwaysActiveOrToggleInput(o, e, i, s, n, r), | |
| gr.setNoAccordionHeader(e, c) | |
| } | |
| , | |
| kr.prototype.setNoAccordionHeader = function(e, t) { | |
| if ("IAB2" !== ko.IabType && ko.PCTemplateUpgrade) { | |
| var o = ko.PCCategoryStyle === ce.Checkbox; | |
| if (ko.PCAccordionStyle === J.NoAccordion && o) { | |
| var n = document.createElement("div"); | |
| n.classList.add("ot-acc-hdr"); | |
| var r = e.querySelector(".ot-chkbox") | |
| , i = e.querySelector(".ot-always-active") | |
| , s = e.querySelector(Go.P_Category_Header); | |
| r && n.appendChild(r), | |
| n.appendChild(s), | |
| t && n.appendChild(i), | |
| e.insertBefore(n, e.firstChild) | |
| } | |
| } | |
| } | |
| , | |
| kr.prototype.hideToggleContainer = function(e, t, o, n) { | |
| !e && t || !o || (n.classList.add("ot-hide-tgl"), | |
| n.querySelector("input").setAttribute(this._ariaHidden, "true")) | |
| } | |
| , | |
| kr.prototype.setAlwaysActiveOrToggleInput = function(e, t, o, n, r, i) { | |
| var s = "always active" === Mo.getGrpStatus(e).toLowerCase() | |
| , a = ko.PCCategoryStyle === ce.Toggle | |
| , l = e.OptanonGroupId.toString() | |
| , c = tr.isGroupActive(e) | |
| , d = t.querySelector(Go.P_Category_Header); | |
| "IAB2" !== ko.IabType && ko.PCTemplateUpgrade ? (s && ko.PCShowAlwaysActiveToggle && (gr.setAlwaysActive(t), | |
| o.querySelector("input").setAttribute("disabled", "true")), | |
| s && a || gr.insertAccordionInputHeader(d, o), | |
| tr.setInputID(n, r, l, c, i), | |
| gr.insertAccordionPointer(t, d)) : (gr.insertAccordionPointer(t, d), | |
| s ? ko.PCShowAlwaysActiveToggle && gr.setAlwaysActive(t) : (gr.insertAccordionInputHeader(d, o), | |
| tr.setInputID(n, r, l, c, i))) | |
| } | |
| , | |
| kr.prototype.setOptOutSignalVisibility = function(e) { | |
| var t = !0 === navigator.globalPrivacyControl && vo.gpcForAGrpEnabled | |
| , o = Ro.isAlertBoxClosedAndValid() && tr.isAnyGroupOptedOut(); | |
| ko.PCShowOptOutSignal && (t || o || vo.previewMode) ? e.classList.remove("ot-hide") : e.classList.add("ot-hide") | |
| } | |
| , | |
| kr.prototype.setOptOutSignalNotification = function(e) { | |
| var t = wo.createOptOutSignalElement(e, !0); | |
| gr.setOptOutSignalVisibility(t) | |
| } | |
| , | |
| kr.prototype.insertAccordionInputHeader = function(e, t) { | |
| var o = gr.getPositionForInputEle(); | |
| e.insertAdjacentElement(o, t) | |
| } | |
| , | |
| kr.prototype.getPositionForInputEle = function() { | |
| var e = "beforebegin"; | |
| return "IAB2" !== ko.IabType && ko.PCTemplateUpgrade ? ko.PCCategoryStyle === ce.Toggle && (e = "afterend") : e = "afterend", | |
| e | |
| } | |
| , | |
| kr.prototype.insertAccordionPointer = function(e, t) { | |
| if (e.classList.add("ot-vs-config"), | |
| ko.PCenterEnableAccordion) | |
| if ("IAB2" !== ko.IabType && ko.PCTemplateUpgrade) { | |
| var o = e.querySelector(Go.P_Acc_Header) | |
| , n = void 0 | |
| , r = void 0; | |
| n = ko.PCAccordionStyle === J.Caret ? (r = "beforeend", | |
| Fo.arrowEl.cloneNode(!0)) : (r = ko.PCCategoryStyle === ce.Checkbox ? "beforeend" : "afterbegin", | |
| Fo.plusMinusEl.cloneNode(!0)), | |
| o.insertAdjacentElement(r, n) | |
| } else | |
| ko.PCAccordionStyle === J.Caret ? t.insertAdjacentElement("afterend", Fo.arrowEl.cloneNode(!0)) : t.insertAdjacentElement("beforebegin", Fo.plusMinusEl.cloneNode(!0)) | |
| } | |
| , | |
| kr.prototype.setToggleProps = function(e, t, o, n, r) { | |
| var i = e.querySelectorAll("input:not(.cookie-subgroup-handler)") | |
| , s = e.querySelectorAll("label") | |
| , a = tr.isGroupActive(o) | |
| , l = o.CustomGroupId | |
| , c = e.querySelector(".label-text"); | |
| c && To(c).html(o.GroupName); | |
| for (var d = 0; d < i.length; d++) | |
| if (s[d] && To(s[d]).attr("for", n), | |
| 2 <= i.length && 0 === d) | |
| To(i[d]).attr("id", n + "-toggle"); | |
| else { | |
| var p = !0; | |
| if ("IAB2" !== vo.iabType || o.Type !== Zt && o.Type !== oo || o.HasConsentOptOut || (p = !1), | |
| vo.legIntSettings.PAllowLI && o.Type === Zt && o.HasLegIntOptOut) | |
| if (vo.legIntSettings.PShowLegIntBtn) | |
| gr.setLegIntButton(e, o, !0, t); | |
| else { | |
| var u = e.querySelector(Go.P_Tgl_Cntr + ":not(" + Go.P_Subgrp_Tgl_Cntr + ")") || e.querySelector(".ot-toggle") | |
| , h = u.cloneNode(!0); | |
| u.insertAdjacentElement("afterend", h); | |
| var g = h.querySelector("input"); | |
| o.IsLegIntToggle = !0; | |
| var C = tr.isGroupActive(o); | |
| o.IsLegIntToggle = !1, | |
| tr.setInputID(g, n + "-leg-out", l, C, r), | |
| To(h.querySelector("label")).attr("for", n + "-leg-out"), | |
| ho.removeChild(h.querySelector(Go.P_Arrw_Cntr)) | |
| } | |
| var y = Mo.getGrpStatus(o).toLowerCase() === ft; | |
| if (y || !p) { | |
| var f = i[d].closest(".ot-toggle"); | |
| f && (f.classList.add("ot-hide-tgl"), | |
| f.querySelector("input").setAttribute(this._ariaHidden, !0)) | |
| } | |
| p && (y && gr.setAlwaysActive(e), | |
| tr.setInputID(i[d], n, l, a, r)) | |
| } | |
| } | |
| , | |
| kr.prototype.setAlwaysActive = function(e, t) { | |
| void 0 === t && (t = !1); | |
| var o = vo.pcName; | |
| if (o === Ft || o === Rt || t) { | |
| var n = e.querySelector(Go.P_Tgl_Cntr); | |
| n && n.insertAdjacentElement("afterbegin", To("<div class='ot-always-active'>" + ko.AlwaysActiveText + "</div>", "ce").el) | |
| } else { | |
| var r = e.querySelector(Go.P_Category_Header); | |
| !lo.isV2Template && ko.PCenterEnableAccordion && (r = e.querySelector(Go.P_Arrw_Cntr)), | |
| To(r).el.insertAdjacentElement("afterend", To("<div class='ot-always-active'>" + ko.AlwaysActiveText + "</div>", "ce").el) | |
| } | |
| if (ko.PCenterEnableAccordion) { | |
| var i = e.querySelector(Go.P_Acc_Header); | |
| i && i.classList.add("ot-always-active-group") | |
| } else { | |
| var s = e.querySelector("" + Go.P_Desc_Container); | |
| s && s.classList.add("ot-always-active-group"), | |
| e.classList.add("ot-always-active-group") | |
| } | |
| } | |
| , | |
| kr.prototype.setPcTabLayout = function(e, t, o) { | |
| var n = e(".ot-tab-desc"); | |
| if ("otPcTab" === vo.pcName) | |
| if (o && e("#onetrust-pc-sdk " + Go.P_Category_Grp).insertAdjacentElement("afterbegin", o), | |
| n && 640 < window.innerWidth && To(n).append(t.querySelectorAll("#onetrust-pc-sdk " + Go.P_Desc_Container)), | |
| ko.IsIabEnabled) | |
| e(Go.P_Desc_Container + " .category-vendors-list-handler").innerHTML = ko.VendorListText + "‎"; | |
| else { | |
| var r = e(Go.P_Desc_Container + " .category-vendors-list-handler"); | |
| r && r.parentElement.removeChild(r) | |
| } | |
| } | |
| , | |
| kr.prototype.setVendorListClass = function(e, t) { | |
| lo.isV2Template ? ko.PCAccordionStyle === J.Caret && (To(e("#onetrust-pc-sdk " + Go.P_Vendor_List)).addClass("ot-enbl-chr"), | |
| ko.PCenterEnableAccordion && To(e("#onetrust-pc-sdk " + Go.P_Content)).addClass("ot-enbl-chr")) : To(t.querySelector(Go.P_Sub_Grp_Cntr)).remove() | |
| } | |
| , | |
| kr.prototype.setPCHeader = function(e, t) { | |
| var o = vo.pcName | |
| , n = e(Go.P_Li_Hdr) || t.querySelector(Go.P_Li_Hdr); | |
| vo.legIntSettings.PAllowLI && vo.grpContainLegalOptOut && "IAB2" === ko.IabType && !vo.legIntSettings.PShowLegIntBtn ? (n.querySelector("span:first-child").innerText = ko.ConsentText, | |
| n.querySelector("span:last-child").innerText = ko.LegitInterestText, | |
| lo.isV2Template && (n.querySelector("span:first-child").innerText = ko.PCenterConsentText, | |
| n.querySelector("span:last-child").innerText = ko.PCenterLegIntColumnHeader), | |
| ko.PCenterEnableAccordion && n ? n.classList.add("ot-leg-border-color") : "otPcList" === o && t.insertAdjacentElement("afterbegin", n)) : (ho.removeChild(e("#onetrust-pc-sdk " + Go.P_Li_Hdr)), | |
| ho.removeChild(t.querySelector(Go.P_Li_Hdr))) | |
| } | |
| , | |
| kr); | |
| function kr() { | |
| this._ariaHidden = "aria-hidden", | |
| this._ariaLabel = "aria-label" | |
| } | |
| var mr, br = (Sr.prototype.updateGtmMacros = function(e) { | |
| void 0 === e && (e = !0); | |
| var n = []; | |
| bo.groupsConsent.forEach(function(e) { | |
| var t = e.replace(":1", "") | |
| , o = Mo.getGrpStatus(Mo.getGroupById(t)).toLowerCase() === ft; | |
| ho.endsWith(e, ":1") && (vn.canSoftOptInInsertForGroup(t) || o) && n.push(t) | |
| }), | |
| bo.hostsConsent.forEach(function(e) { | |
| ho.endsWith(e, ":1") && n.push(e.replace(":1", "")) | |
| }), | |
| bo.showGeneralVendors && ko.GenVenOptOut && ko.GeneralVendors.forEach(function(e) { | |
| bo.genVendorsConsent[e.VendorCustomId] && (bo.softOptInGenVendors.includes(e.VendorCustomId) && pn.isLandingPage() || n.push(e.VendorCustomId)) | |
| }), | |
| bo.vsIsActiveAndOptOut && bo.getVendorsInDomain().forEach(function(e) { | |
| bo.vsConsent.get(e.CustomVendorServiceId) && n.push(e.CustomVendorServiceId) | |
| }); | |
| var t = "," + ho.arrToStr(n) + ","; | |
| ko.GoogleConsent.GCEnable && !vo.otDataLayer.ignore && this.updateGCMTags(n), | |
| window.OnetrustActiveGroups = t, | |
| window.OptanonActiveGroups = t, | |
| vo.gcmUpdateCallback && vo.gcmUpdateCallback(), | |
| vo.otDataLayer.ignore || void 0 === this._window[vo.otDataLayer.name] || this._window[vo.otDataLayer.name].constructor !== Array ? !vo.otDataLayer.ignore && vo.otDataLayer.name && (this._window[vo.otDataLayer.name] = [{ | |
| event: "OneTrustLoaded", | |
| OnetrustActiveGroups: t | |
| }, { | |
| event: "OptanonLoaded", | |
| OptanonActiveGroups: t | |
| }]) : (this._window[vo.otDataLayer.name].push({ | |
| event: "OneTrustLoaded", | |
| OnetrustActiveGroups: t | |
| }), | |
| this._window[vo.otDataLayer.name].push({ | |
| event: "OptanonLoaded", | |
| OptanonActiveGroups: t | |
| })), | |
| this.dispatchEvents(e, n, t) | |
| } | |
| , | |
| Sr.prototype.dispatchEvents = function(e, t, o) { | |
| var n, r; | |
| !e && vo.gtmUpdatedinStub || (n = new CustomEvent("consent.onetrust",{ | |
| detail: t | |
| })); | |
| var i = uo.readCookieParam(pt.OPTANON_CONSENT, "groups") | |
| , s = bo.fireOnetrustGrp || !i || e || !vo.gtmUpdatedinStub; | |
| s && (bo.fireOnetrustGrp = !1, | |
| !vo.otDataLayer.ignore && this._window[vo.otDataLayer.name] && this._window[vo.otDataLayer.name].constructor === Array && this._window[vo.otDataLayer.name].push({ | |
| event: "OneTrustGroupsUpdated", | |
| OnetrustActiveGroups: o | |
| }), | |
| r = new CustomEvent("OneTrustGroupsUpdated",{ | |
| detail: t | |
| })), | |
| setTimeout(function() { | |
| n && s && window.dispatchEvent(n), | |
| r && window.dispatchEvent(r) | |
| }) | |
| } | |
| , | |
| Sr.prototype.updateGCMTags = function(e) { | |
| var t = {}; | |
| if (this.canUpdateGCMCategories()) { | |
| if (ko.GoogleConsent.GCAdStorage !== Ut) { | |
| var o = e.includes(ko.GoogleConsent.GCAdStorage) ? be.granted : be.denied; | |
| t[ke.ad_storage] = o | |
| } | |
| if (ko.GoogleConsent.GCAnalyticsStorage !== Ut) { | |
| var n = e.includes(ko.GoogleConsent.GCAnalyticsStorage) ? be.granted : be.denied; | |
| t[ke.analytics_storage] = n | |
| } | |
| if (ko.GoogleConsent.GCFunctionalityStorage !== Ut) { | |
| var r = e.includes(ko.GoogleConsent.GCFunctionalityStorage) ? be.granted : be.denied; | |
| t[ke.functionality_storage] = r | |
| } | |
| if (ko.GoogleConsent.GCPersonalizationStorage !== Ut) { | |
| var i = e.includes(ko.GoogleConsent.GCPersonalizationStorage) ? be.granted : be.denied; | |
| t[ke.personalization_storage] = i | |
| } | |
| if (ko.GoogleConsent.GCSecurityStorage !== Ut) { | |
| var s = e.includes(ko.GoogleConsent.GCSecurityStorage) ? be.granted : be.denied; | |
| t[ke.security_storage] = s | |
| } | |
| } | |
| var a = uo.getCookie(pt.ALERT_BOX_CLOSED) | |
| , l = vo.getRegionRule().Global; | |
| if ("function" != typeof window.gtag) { | |
| var c = this._window; | |
| window.gtag = function(e, t, o) { | |
| vo.otDataLayer.ignore || (c[vo.otDataLayer.name] ? c[vo.otDataLayer.name].push(arguments) : c[vo.otDataLayer.name] = [arguments]) | |
| } | |
| } | |
| "function" == typeof window.gtag && (vo.gcmDevIdSet || (window.gtag(Ce.set, "developer_id.dYWJhMj", !0), | |
| vo.gcmDevIdSet = !0), | |
| a && (l || (t[ke.region] = vo.gcmCountries), | |
| 0 !== Object.keys(t).length && window.gtag(Ce.consent, fe.update, t))) | |
| } | |
| , | |
| Sr.prototype.canUpdateGCMCategories = function() { | |
| return ko.GoogleConsent.GCAdStorage !== Ut || ko.GoogleConsent.GCAnalyticsStorage !== Ut || ko.GoogleConsent.GCFunctionalityStorage !== Ut || ko.GoogleConsent.GCPersonalizationStorage !== Ut || ko.GoogleConsent.GCSecurityStorage !== Ut | |
| } | |
| , | |
| Sr); | |
| function Sr() { | |
| this._window = window | |
| } | |
| var Pr, Tr, Ar, Ir = "Banner", Lr = "Preference Center", _r = "API", Er = "Close", Vr = "Allow All", Br = "Reject All", wr = "Confirm", Or = "Confirm", xr = "Continue without Accepting", Gr = (Nr.prototype.BannerPushDownHandler = function() { | |
| this.checkIsBrowserIE11OrBelow() || (Ar.pushPageDown(Cr), | |
| To(window).on("resize", function() { | |
| "none" !== To(Cr).css("display") && Ar.pushPageDown(Cr) | |
| })) | |
| } | |
| , | |
| Nr.prototype.checkIsBrowserIE11OrBelow = function() { | |
| var e = window.navigator.userAgent; | |
| return 0 < e.indexOf("MSIE ") || 0 < e.indexOf("Trident/") | |
| } | |
| , | |
| Nr.prototype.addOTCssPropertiesToBody = function(e, t) { | |
| var o = Ar.getCssData(e, t); | |
| bo.customerStyles.set(e, o), | |
| Ar.setStylesOnBody(t), | |
| e === Pr.PC && Ar.setStylesOnHtml(t) | |
| } | |
| , | |
| Nr.prototype.removeAddedOTCssStyles = function(e) { | |
| void 0 === e && (e = Pr.Banner); | |
| var t = bo.customerStyles.get(e); | |
| t ? (Ar.setStylesOnBody(t.customerBodyCSS), | |
| Ar.setStylesOnHtml(t.customerHtmlCSS), | |
| bo.customerStyles.delete(e)) : 0 < bo.customerStyles.size && bo.customerStyles.forEach(function(e, t) { | |
| return Ar.removeAddedOTCssStyles(t) | |
| }) | |
| } | |
| , | |
| Nr.prototype.getCssData = function(e, t) { | |
| var o = To("body").el[0] | |
| , n = To("html").el[0] | |
| , r = {} | |
| , i = {} | |
| , s = bo.customerStyles.get(e); | |
| if (s) { | |
| var a = s.scriptBodyCSS | |
| , l = s.customerBodyCSS | |
| , c = s.customerHtmlCSS; | |
| o.style.top !== a.top && (l.top = o.style.top), | |
| o.style.position !== a.position && (l.position = o.style.position), | |
| o.style.overflow !== a.overflow && (l.overflow = o.style.overflow), | |
| n.style.overflow !== a.overflow && (c.overflow = n.style.overflow), | |
| r = l, | |
| i = c | |
| } else | |
| r = { | |
| top: o.style.top, | |
| position: o.style.position, | |
| overflow: o.style.overflow | |
| }, | |
| i = { | |
| overflow: n.style.overflow | |
| }; | |
| return { | |
| scriptBodyCSS: t, | |
| customerBodyCSS: r, | |
| customerHtmlCSS: i | |
| } | |
| } | |
| , | |
| Nr.prototype.setStylesOnBody = function(e) { | |
| var t = To("body").el[0]; | |
| Ar.setStylesOnHtmlElement(t, e) | |
| } | |
| , | |
| Nr.prototype.setStylesOnHtml = function(e) { | |
| var t = To("html").el[0]; | |
| Ar.setStylesOnHtmlElement(t, { | |
| overflow: e.overflow | |
| }) | |
| } | |
| , | |
| Nr.prototype.setStylesOnHtmlElement = function(e, t) { | |
| for (var o = "", n = 0, r = Object.entries(t); n < r.length; n++) { | |
| var i = r[n] | |
| , s = i[0] | |
| , a = i[1]; | |
| a ? o += s + ": " + a + ";" : e.style.removeProperty(s) | |
| } | |
| o && co(e, o, !0) | |
| } | |
| , | |
| Nr.prototype.pushPageDown = function(e) { | |
| var t = To(e).height() + "px"; | |
| To(e).show().css("\n bottom: auto;\n position: absolute;\n top: -" + t + ";\n "); | |
| var o = bo.isPCVisible ? Pr.PC : Pr.Banner | |
| , n = { | |
| position: "relative", | |
| top: t | |
| }; | |
| bo.isPCVisible && (n.overflow = "hidden"), | |
| Ar.addOTCssPropertiesToBody(o, n) | |
| } | |
| , | |
| Nr); | |
| function Nr() {} | |
| (Tr = Pr = Pr || {}).Banner = "Banner", | |
| Tr.PC = "PC"; | |
| var Dr, Hr = (Fr.prototype.showConsentNotice = function() { | |
| switch (!ko.NoBanner || ko.ForceConsent ? To(".onetrust-pc-dark-filter").removeClass("ot-hide") : To(".onetrust-pc-dark-filter").addClass("ot-hide"), | |
| To("#onetrust-pc-sdk").removeClass("ot-hide"), | |
| vo.pcName) { | |
| case Ht: | |
| To("#onetrust-pc-sdk").el[0].classList.contains("ot-animated") || To("#onetrust-pc-sdk").addClass("ot-animated"); | |
| var e = ko.PreferenceCenterPosition | |
| , t = ko.useRTL | |
| , o = t ? "right" : "left" | |
| , n = t ? "left" : "right"; | |
| To("#onetrust-pc-sdk").el[0].classList.contains("ot-slide-out-" + ("right" === e ? n : o)) && To("#onetrust-pc-sdk").removeClass("ot-slide-out-" + ("right" === e ? n : o)), | |
| To("#onetrust-pc-sdk").addClass("ot-slide-in-" + ("right" === e ? n : o)) | |
| } | |
| tr.setAllowAllButton(), | |
| $n.setPCFocus($n.getPCElements()), | |
| ko.NoBanner && ko.ScrollCloseBanner || this.pcHasScroll() | |
| } | |
| , | |
| Fr.prototype.hideConsentNoticeV2 = function() { | |
| if (0 !== To(this.ONETRUST_PC_SDK).length) { | |
| if (lo.isV2Template && this.closePCText(), | |
| ko.ForceConsent && !wo.isCookiePolicyPage(ko.AlertNoticeText) && !Ro.isAlertBoxClosedAndValid() && ko.ShowAlertNotice ? To("" + this.ONETRUST_PC_DARK_FILTER).css("z-index: 2147483645;").show() : To("" + this.ONETRUST_PC_DARK_FILTER).fadeOut(ko.PCLayout.Panel ? 500 : 400), | |
| ko.PCLayout.Panel) { | |
| var e = ko.PreferenceCenterPosition | |
| , t = ko.useRTL | |
| , o = t ? "right" : "left" | |
| , n = t ? "left" : "right"; | |
| To("" + this.ONETRUST_PC_SDK).removeClass("ot-slide-in-" + ("right" === e ? n : o)), | |
| To("" + this.ONETRUST_PC_SDK).addClass("ot-slide-out-" + ("right" === e ? n : o)) | |
| } | |
| To("" + this.ONETRUST_PC_SDK).fadeOut(ko.PCLayout.Panel ? 500 : 400), | |
| bo.isPCVisible = !1, | |
| bo.pcLayer = O.Banner, | |
| this.setFocus() | |
| } else | |
| this.setFocusOnPage() | |
| } | |
| , | |
| Fr.prototype.setFocus = function() { | |
| if (bo.pcSource || Ro.isAlertBoxClosedAndValid()) | |
| bo.pcSource ? (bo.pcSource.focus(), | |
| bo.pcSource = null) : ko.BInitialFocus ? wo.resetFocusToBody() : this.setFocusOnPage(); | |
| else { | |
| var e = To("#onetrust-banner-sdk #onetrust-pc-btn-handler").el[0]; | |
| e && e.focus() | |
| } | |
| } | |
| , | |
| Fr.prototype.setFocusOnPage = function() { | |
| var e = document.querySelectorAll('button, a, input, select, textarea, [tabindex]:not([tabindex="-1"])'); | |
| bo.isKeyboardUser && e.length && e[0].focus() | |
| } | |
| , | |
| Fr.prototype.closePCText = function() { | |
| var e = document.querySelector("#onetrust-pc-sdk span[aria-live]") | |
| , t = ko.AboutCookiesText; | |
| e.innerText = t + " " + ko.pcDialogClose | |
| } | |
| , | |
| Fr.prototype.pcHasScroll = function() { | |
| var e = To(Go.P_Grp_Container).el[0] || To("#onetrust-pc-sdk " + Go.P_Content).el[0]; | |
| if (e.scrollHeight > e.clientHeight) { | |
| this.bodyStyleChanged = !0; | |
| var t = To("body"); | |
| t && t.length && Ar.addOTCssPropertiesToBody(Pr.PC, { | |
| overflow: "hidden" | |
| }) | |
| } | |
| } | |
| , | |
| Fr.prototype.checkIfPcSdkContainerExist = function() { | |
| return !To("#onetrust-pc-sdk").length | |
| } | |
| , | |
| Fr); | |
| function Fr() { | |
| this.ONETRUST_PC_SDK = "#onetrust-pc-sdk", | |
| this.ONETRUST_PC_DARK_FILTER = ".onetrust-pc-dark-filter", | |
| this.bodyStyleChanged = !1 | |
| } | |
| var Rr, qr = (Mr.prototype.init = function() { | |
| this.insertHtml(), | |
| this.insertCss(), | |
| this.showNty(), | |
| this.initHandler() | |
| } | |
| , | |
| Mr.prototype.getContent = function() { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| return [2, Eo.getSyncNtfyContent().then(function(e) { | |
| bo.syncNtfyGrp = { | |
| name: e.name, | |
| html: atob(e.html), | |
| css: e.css | |
| } | |
| })] | |
| }) | |
| }) | |
| } | |
| , | |
| Mr.prototype.insertHtml = function() { | |
| function e(e) { | |
| return t.querySelector(e) | |
| } | |
| this.removeHtml(); | |
| var t = document.createDocumentFragment() | |
| , o = document.createElement("div"); | |
| To(o).html(bo.syncNtfyGrp.html); | |
| var n = o.querySelector(this.El); | |
| ko.BannerRelativeFontSizesToggle && To(n).addClass("otRelFont"), | |
| ko.useRTL && To(n).attr("dir", "rtl"), | |
| To(t).append(n); | |
| var r = ko.NtfyConfig; | |
| this.initHtml("Sync", r.Sync, e, t.querySelector(this.El)), | |
| r.ShowCS ? To(e(".ot-pc-handler")).html(r.CSTxt) : (To(n).addClass("ot-hide-csbtn"), | |
| e(".ot-sync-btncntr").parentElement.removeChild(e(".ot-sync-btncntr"))); | |
| var i = document.createElement("div"); | |
| To(i).append(t), | |
| To("#onetrust-consent-sdk").append(i.firstChild) | |
| } | |
| , | |
| Mr.prototype.initHandler = function() { | |
| To(this.El + " .ot-sync-close-handler").on("click", function() { | |
| return Rr.close() | |
| }) | |
| } | |
| , | |
| Mr.prototype.showNty = function() { | |
| var e = To(this.El); | |
| e.css("bottom: -300px;"), | |
| e.animate({ | |
| bottom: "1em;" | |
| }, 1e3), | |
| setTimeout(function() { | |
| e.css("bottom: 1rem;") | |
| }, 1e3), | |
| e.focus() | |
| } | |
| , | |
| Mr.prototype.changeState = function() { | |
| setTimeout(function() { | |
| Rr.refreshState() | |
| }, 1500) | |
| } | |
| , | |
| Mr.prototype.refreshState = function() { | |
| function e(e) { | |
| return t.querySelector(e) | |
| } | |
| var t = To(this.El).el[0]; | |
| t.classList.add("ot-nty-complete"), | |
| t.classList.remove("ot-nty-sync"); | |
| var o = ko.NtfyConfig; | |
| this.initHtml("Complete", o.Complete, e, t), | |
| o.ShowCS && ("LINK" === o.CSType && To(e(".ot-pc-handler")).addClass("ot-pc-link"), | |
| To(".ot-sync-btncntr").show("inline-block"), | |
| this.alignContent(), | |
| To(window).on("resize", function() { | |
| return Rr.resizeEvent | |
| })), | |
| setTimeout(function() { | |
| Rr.close() | |
| }, 1e3 * ko.NtfyConfig.NtfyDuration) | |
| } | |
| , | |
| Mr.prototype.insertCss = function() { | |
| var e = document.getElementById("onetrust-style"); | |
| e.innerHTML += bo.syncNtfyGrp.css, | |
| e.innerHTML += this.addCustomStyles() | |
| } | |
| , | |
| Mr.prototype.addCustomStyles = function() { | |
| var e = ko.NtfyConfig | |
| , t = e.Sync | |
| , o = e.Complete | |
| , n = e.CSButton | |
| , r = e.CSLink; | |
| return "\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-sync {\n background-color: " + t.BgColor + ";\n border: 1px solid " + t.BdrColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy .ot-sync-refresh>g {\n fill: " + t.IconBgColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-sync #ot-sync-title {\n text-align: " + t.TitleAlign + ";\n color: " + t.TitleColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-sync .ot-sync-desc {\n text-align: " + t.DescAlign + ";\n color: " + t.DescColor + "; \n }\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-complete {\n background-color: " + o.BgColor + ";\n border: 1px solid " + o.BdrColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy .ot-sync-check>g {\n fill: " + o.IconBgColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-complete #ot-sync-title {\n text-align: " + o.TitleAlign + ";\n color: " + o.TitleColor + ";\n }\n #onetrust-consent-sdk #ot-sync-ntfy.ot-nty-complete .ot-sync-desc {\n text-align: " + o.DescAlign + ";\n color: " + o.DescColor + "; \n }\n " + ("BUTTON" === e.CSType ? "\n #onetrust-consent-sdk #ot-sync-ntfy .ot-pc-handler {\n background-color: " + n.BgColor + ";\n border: 1px solid " + n.BdrColor + ";\n color: " + n.Color + ";\n text-align: " + n.Align + ";\n }" : " #onetrust-consent-sdk #ot-sync-ntfy .ot-pc-handler.ot-pc-link {\n color: " + r.Color + ";\n text-align: " + r.Align + ";\n }") + "\n " | |
| } | |
| , | |
| Mr.prototype.initHtml = function(e, t, o, n) { | |
| var r = "Sync" === e ? ".ot-sync-refresh" : ".ot-sync-check" | |
| , i = "Complete" === e ? ".ot-sync-refresh" : ".ot-sync-check"; | |
| t.ShowIcon ? (To(o(r)).show(), | |
| To(o(i)).hide(), | |
| To(o(".ot-sync-icon")).show("inline-block"), | |
| n.classList.remove("ot-hide-icon")) : (To(o(".ot-sync-icon")).hide(), | |
| n.classList.add("ot-hide-icon")), | |
| t.Title ? To(o("#ot-sync-title")).html(t.Title) : To(o("#ot-sync-title")).hide(), | |
| t.Desc ? To(o(".ot-sync-desc")).html(t.Desc) : To(o(".ot-sync-desc")).hide(), | |
| t.ShowClose ? (To(o(".ot-sync-close-handler")).show("inline-block"), | |
| To(o(".ot-close-icon")).attr("aria-label", t.CloseAria), | |
| n.classList.remove("ot-hide-close")) : (To(o(".ot-sync-close-handler")).hide(), | |
| n.classList.add("ot-hide-close")) | |
| } | |
| , | |
| Mr.prototype.close = function() { | |
| this.hideSyncNtfy(), | |
| wo.resetFocusToBody() | |
| } | |
| , | |
| Mr.prototype.hideSyncNtfy = function() { | |
| ko.NtfyConfig.ShowCS && window.removeEventListener("resize", Rr.resizeEvent), | |
| To("#ot-sync-ntfy").fadeOut(400) | |
| } | |
| , | |
| Mr.prototype.removeHtml = function() { | |
| var e = To(this.El).el; | |
| e && ho.removeChild(e) | |
| } | |
| , | |
| Mr.prototype.alignContent = function() { | |
| To(".ot-sync-btncntr").el[0].clientHeight > To(".ot-sync-titlecntr").el[0].clientHeight && (To(".ot-sync-titlecntr").addClass("ot-pos-abs"), | |
| To(".ot-sync-btncntr").addClass("ot-pos-rel")) | |
| } | |
| , | |
| Mr.prototype.resizeEvent = function() { | |
| window.innerWidth <= 896 && Rr.alignContent() | |
| } | |
| , | |
| Mr); | |
| function Mr() { | |
| this.El = "#ot-sync-ntfy" | |
| } | |
| var Ur, jr = (zr.prototype.toggleVendorConsent = function(e, t) { | |
| void 0 === e && (e = []), | |
| void 0 === t && (t = null), | |
| e.length || (e = bo.oneTrustIABConsent.vendors), | |
| e.forEach(function(e) { | |
| var t = e.split(":") | |
| , o = t[0] | |
| , n = t[1] | |
| , r = To(Go.P_Vendor_Container + " ." + Go.P_Ven_Ctgl + ' [vendorid="' + o + '"]').el[0]; | |
| r && ho.setCheckedAttribute("", r, "true" === n) | |
| }); | |
| var o = To("#onetrust-pc-sdk #select-all-vendor-groups-handler").el[0]; | |
| if (o) { | |
| var n = ho.getActiveIdArray(ho.distinctArray(e)); | |
| null === t && (t = n.length === e.length), | |
| t || 0 === n.length ? o.parentElement.classList.remove(No.P_Line_Through) : o.parentElement.classList.add(No.P_Line_Through), | |
| ho.setCheckedAttribute("", o, t) | |
| } | |
| } | |
| , | |
| zr.prototype.toggleVendorLi = function(e, t) { | |
| void 0 === e && (e = []), | |
| void 0 === t && (t = null), | |
| e.length || (e = bo.oneTrustIABConsent.legIntVendors), | |
| e.forEach(function(e) { | |
| var t = e.split(":") | |
| , o = t[0] | |
| , n = t[1] | |
| , r = To(Go.P_Vendor_Container + " ." + Go.P_Ven_Ltgl + ' [leg-vendorid="' + o + '"]').el[0]; | |
| r && ho.setCheckedAttribute("", r, "true" === n) | |
| }); | |
| var o = To("#onetrust-pc-sdk #select-all-vendor-leg-handler").el[0]; | |
| if (o) { | |
| var n = ho.getActiveIdArray(ho.distinctArray(e)); | |
| null === t && (t = n.length === e.length), | |
| t || 0 === n.length ? o.parentElement.classList.remove(No.P_Line_Through) : o.parentElement.classList.add(No.P_Line_Through), | |
| ho.setCheckedAttribute("", o, t) | |
| } | |
| } | |
| , | |
| zr.prototype.updateVendorLegBtns = function(e) { | |
| void 0 === e && (e = []), | |
| e.length || (e = bo.oneTrustIABConsent.legIntVendors), | |
| e.forEach(function(e) { | |
| var t = e.split(":") | |
| , o = t[0] | |
| , n = t[1] | |
| , r = To(Go.P_Vendor_Container + ' .ot-leg-btn-container[data-group-id="' + o + '"]').el[0]; | |
| r && tr.updateLegIntBtnElement(r, "true" === n) | |
| }) | |
| } | |
| , | |
| zr); | |
| function zr() {} | |
| var Kr, Wr = (Jr.prototype.setFilterList = function(t) { | |
| var o = this | |
| , n = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " " + Go.P_Fltr_Option).el[0].cloneNode(!0); | |
| To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " " + Go.P_Fltr_Options).html(""), | |
| (lo.isV2Template || ko.PCLayout.Popup) && To("#onetrust-pc-sdk #filter-cancel-handler").html(ko.PCenterCancelFiltersText || "Cancel"), | |
| !lo.isV2Template && ko.PCLayout.Popup || (To("#onetrust-pc-sdk " + Go.P_Clr_Fltr_Txt).html(ko.PCenterClearFiltersText), | |
| To("#filter-btn-handler").el[0].setAttribute("aria-label", ko.PCenterFilterText)), | |
| To("#onetrust-pc-sdk #filter-apply-handler").html(ko.PCenterApplyFiltersText), | |
| t ? vo.consentableGrps.forEach(function(e) { | |
| (bo.cookieListType === Z.GenVen || bo.cookieListType === Z.HostAndGenVen ? e.Hosts.length || e.FirstPartyCookies.length || e.GeneralVendorsIds && e.GeneralVendorsIds.length : e.Hosts.length || e.FirstPartyCookies.length) && o.filterGroupOptionSetter(n, e, t) | |
| }) : vo.iabGrps.forEach(function(e) { | |
| o.filterGroupOptionSetter(n, e, t) | |
| }) | |
| } | |
| , | |
| Jr.prototype.setFilterListByGroup = function(e, t) { | |
| var o = this; | |
| if (!e || e.length <= 0) | |
| To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " " + Go.P_Fltr_Options).html(""); | |
| else { | |
| var n = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " " + Go.P_Fltr_Option).el[0].cloneNode(!0); | |
| To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " " + Go.P_Fltr_Options).html(""), | |
| (lo.isV2Template || ko.PCLayout.Popup) && To("#onetrust-pc-sdk #filter-cancel-handler").html(ko.PCenterCancelFiltersText || "Cancel"), | |
| !lo.isV2Template && ko.PCLayout.Popup || (To("#onetrust-pc-sdk " + Go.P_Clr_Fltr_Txt).html(ko.PCenterClearFiltersText), | |
| To("#filter-btn-handler").el[0].setAttribute("aria-label", ko.PCenterFilterText)), | |
| To("#onetrust-pc-sdk #filter-apply-handler").html(ko.PCenterApplyFiltersText), | |
| e.forEach(function(e) { | |
| o.filterGroupOptionSetter(n, e, t) | |
| }) | |
| } | |
| } | |
| , | |
| Jr.prototype.filterGroupOptionSetter = function(e, t, o) { | |
| var n = t.CustomGroupId | |
| , r = n + "-filter" | |
| , i = e.cloneNode(!0); | |
| To(Go.P_Fltr_Modal + " " + Go.P_Fltr_Options).append(i), | |
| To(i.querySelector("input")).attr("id", r), | |
| To(i.querySelector("label")).attr("for", r), | |
| lo.isV2Template ? To(i.querySelector(Go.P_Label_Txt)).html(t.GroupName) : To(i.querySelector("label span")).html(t.GroupName), | |
| To(i.querySelector("input")).attr(o ? "data-optanongroupid" : "data-purposeid", n) | |
| } | |
| , | |
| Jr); | |
| function Jr() { | |
| this.bodyScrollProp = "", | |
| this.htmlScrollProp = "", | |
| this.ONETRUST_PC_SDK = "#onetrust-pc-sdk", | |
| this.ONETRUST_PC_DARK_FILTER = ".onetrust-pc-dark-filter" | |
| } | |
| var Yr, Xr, Qr, $r, Zr, ei, ti, oi, ni, ri = (ii.prototype.initialiseCssReferences = function() { | |
| var e, t = ""; | |
| document.getElementById("onetrust-style") ? e = document.getElementById("onetrust-style") : ((e = document.createElement("style")).id = "onetrust-style", | |
| lo.moduleInitializer.CookieV2CSPEnabled && bo.nonce && e.setAttribute("nonce", bo.nonce)), | |
| vn.commonStyles && (t += vn.commonStyles), | |
| vn.bannerGroup && (t += vn.bannerGroup.css, | |
| lo.fp.CookieV2SSR || (t += this.addCustomBannerCSS()), | |
| ko.bannerCustomCSS && (t += ko.bannerCustomCSS)), | |
| vn.preferenceCenterGroup && (t += vn.preferenceCenterGroup.css, | |
| t += this.addCustomPreferenceCenterCSS()), | |
| vn.cookieListGroup && !lo.fp.CookieV2TrackingTechnologies && (t += vn.cookieListGroup.css, | |
| t += this.addCustomCookieListCSS()), | |
| ko.cookiePersistentLogo && !ko.cookiePersistentLogo.includes("ot_guard_logo.svg") && (t += ".ot-floating-button__front{background-image:url('" + wo.updateCorrectUrl(ko.cookiePersistentLogo) + "')}"), | |
| this.processedCSS = t, | |
| vo.ignoreInjectingHtmlCss || (e.textContent = t, | |
| To(document.head).append(e)) | |
| } | |
| , | |
| ii.prototype.setButonColor = function() { | |
| var e = ko.pcButtonColor | |
| , t = ko.pcButtonTextColor | |
| , o = ko.pcLegIntButtonColor | |
| , n = ko.pcLegIntButtonTextColor | |
| , r = ""; | |
| if (e || t) { | |
| var i = t ? "color: " + t + ";" : "" | |
| , s = e ? "background-color: " + e + ";border-color: " + e + ";" : "" | |
| , a = vo.pcName === Dt ? "#onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Category_Item + ",\n #onetrust-consent-sdk #onetrust-pc-sdk.ot-leg-opt-out " + Go.P_Li_Hdr + "{\n border-color: " + e + ";\n }" : "" | |
| , l = e ? "border-color: " + e + ";" : "" | |
| , c = o ? "background-color: " + o + ";" : "" | |
| , d = n ? "color: " + n + "; border-color: " + n + ";" : ""; | |
| r = "#onetrust-consent-sdk #onetrust-pc-sdk\n button:not(#clear-filters-handler):not(.ot-close-icon):not(#filter-btn-handler):not(.ot-remove-objection-handler):not(.ot-obj-leg-btn-handler):not([aria-expanded]):not(.ot-link-btn),\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-leg-btn-container .ot-active-leg-btn {\n " + s + "\n " + i + "\n }\n #onetrust-consent-sdk #onetrust-pc-sdk ." + Go.P_Active_Menu + " {\n " + l + "\n }\n " + a + "\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-leg-btn-container .ot-remove-objection-handler{\n background-color: transparent;\n border: 1px solid transparent;\n }\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-leg-btn-container .ot-inactive-leg-btn {\n " + c + "\n " + d + "\n }" | |
| } | |
| return r | |
| } | |
| , | |
| ii.prototype.setFocusBorderColor = function() { | |
| var e = "" | |
| , t = ko.PCFocusBorderColor; | |
| return t && (e += '\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-tgl input:focus + .ot-switch, .ot-switch .ot-switch-nob, .ot-switch .ot-switch-nob:before,\n #onetrust-pc-sdk .ot-checkbox input[type="checkbox"]:focus + label::before,\n #onetrust-pc-sdk .ot-chkbox input[type="checkbox"]:focus + label::before {\n outline-color: ' + t + ";\n outline-width: 1px;\n }\n #onetrust-pc-sdk .ot-host-item > button:focus, #onetrust-pc-sdk .ot-ven-item > button:focus {\n border: 1px solid " + t + ";\n }\n #onetrust-consent-sdk #onetrust-pc-sdk *:focus,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-vlst-cntr > a:focus {\n outline: 1px solid " + t + ";\n }"), | |
| e | |
| } | |
| , | |
| ii.prototype.setCloseIconColor = function() { | |
| var e = ""; | |
| return ko.PCCloseButtonType === he.Link && (e += "#onetrust-pc-sdk.ot-close-btn-link .ot-close-icon {color: " + ko.PCContinueColor + "}"), | |
| e | |
| } | |
| , | |
| ii.prototype.setTabLayoutStyles = function() { | |
| var e = "" | |
| , t = ko.pcMenuColor | |
| , o = ko.pcMenuHighLightColor; | |
| return vo.pcName === Rt && (t && (e += "#onetrust-consent-sdk #onetrust-pc-sdk .category-menu-switch-handler {\n background-color: " + t + "\n }"), | |
| o && (e += "#onetrust-consent-sdk #onetrust-pc-sdk ." + Go.P_Active_Menu + " {\n background-color: " + o + "\n }")), | |
| e | |
| } | |
| , | |
| ii.prototype.setFocusIfTemplateUpgrade = function() { | |
| var e = "" | |
| , t = ko.PCFocusBorderColor; | |
| return !ko.PCTemplateUpgrade && t && (e += '\n #onetrust-pc-sdk input[type="checkbox"]:focus + .accordion-header,\n #onetrust-pc-sdk .category-item .ot-switch.ot-toggle input:focus + .ot-switch-label,\n #onetrust-pc-sdk .checkbox input:focus + label::after {\n outline-color: ' + t + ";\n outline-width: 1px;\n }"), | |
| e | |
| } | |
| , | |
| ii.prototype.setExtLnkUrl = function() { | |
| var e = "" | |
| , t = wo.updateCorrectUrl(ko.OTExternalLinkLogo); | |
| return t && (e += "#onetrust-pc-sdk .ot-vlst-cntr .ot-ext-lnk {\n background-image: url('" + t + "');\n }\n "), | |
| e | |
| } | |
| , | |
| ii.prototype.setCustomCss = function() { | |
| var e = ""; | |
| return ko.pcCustomCSS && (e += ko.pcCustomCSS), | |
| e | |
| } | |
| , | |
| ii); | |
| function ii() { | |
| this.processedCSS = "", | |
| this.addCustomBannerCSS = function() { | |
| var e = ko.backgroundColor | |
| , t = ko.buttonColor | |
| , o = ko.textColor | |
| , n = ko.buttonTextColor | |
| , r = ko.bannerMPButtonColor | |
| , i = ko.bannerMPButtonTextColor | |
| , s = ko.bannerAccordionBackgroundColor | |
| , a = ko.BSaveBtnColor | |
| , l = ko.BCategoryContainerColor | |
| , c = ko.BLineBreakColor | |
| , d = ko.BCategoryStyleColor | |
| , p = ko.bannerLinksTextColor | |
| , u = ko.BFocusBorderColor | |
| , h = "\n " + (vo.bannerName === Bt ? e ? "#onetrust-consent-sdk #onetrust-banner-sdk .ot-sdk-container {\n background-color: " + e + ";}" : "" : e ? "#onetrust-consent-sdk #onetrust-banner-sdk {background-color: " + e + ";}" : "") + "\n " + (o ? "#onetrust-consent-sdk #onetrust-policy-title,\n #onetrust-consent-sdk #onetrust-policy-text,\n #onetrust-consent-sdk .ot-b-addl-desc,\n #onetrust-consent-sdk .ot-dpd-desc,\n #onetrust-consent-sdk .ot-dpd-title,\n #onetrust-consent-sdk #onetrust-policy-text *:not(.onetrust-vendors-list-handler),\n #onetrust-consent-sdk .ot-dpd-desc *:not(.onetrust-vendors-list-handler),\n #onetrust-consent-sdk #onetrust-banner-sdk #banner-options *,\n #onetrust-banner-sdk .ot-cat-header,\n #onetrust-banner-sdk .ot-optout-signal\n {\n color: " + o + ";\n }" : "") + "\n " + (s ? "#onetrust-consent-sdk #onetrust-banner-sdk .banner-option-details {\n background-color: " + s + ";}" : "") + "\n " + (p ? " #onetrust-consent-sdk #onetrust-banner-sdk a[href],\n #onetrust-consent-sdk #onetrust-banner-sdk a[href] font,\n #onetrust-consent-sdk #onetrust-banner-sdk .ot-link-btn\n {\n color: " + p + ";\n }" : ""); | |
| if ((t || n) && (h += "#onetrust-consent-sdk #onetrust-accept-btn-handler,\n #onetrust-banner-sdk #onetrust-reject-all-handler {\n " + (t ? "background-color: " + t + ";border-color: " + t + ";" : "") + "\n " + (n ? "color: " + n + ";" : "") + "\n }"), | |
| u && (h += "\n #onetrust-consent-sdk #onetrust-banner-sdk *:focus,\n #onetrust-consent-sdk #onetrust-banner-sdk:focus {\n outline-color: " + u + ";\n outline-width: 1px;\n }"), | |
| (i || r) && (h += "\n #onetrust-consent-sdk #onetrust-pc-btn-handler,\n #onetrust-consent-sdk #onetrust-pc-btn-handler.cookie-setting-link {\n " + (i ? "color: " + i + "; border-color: " + i + ";" : "") + "\n background-color:\n " + (r && !ko.BannerSettingsButtonDisplayLink ? r : e) + ";\n }"), | |
| vo.bannerName === xt) { | |
| var g = void 0 | |
| , C = void 0 | |
| , y = void 0 | |
| , f = void 0 | |
| , v = void 0; | |
| a && (g = "color: " + n + ";border-color: " + n + ";background-color: " + a + ";"), | |
| l && (C = "background-color: " + l + ";"), | |
| c && (y = "border-color: " + c + ";"), | |
| d && (f = "background-color: " + d + ";", | |
| v = "border-color: " + d + ";"), | |
| u && (h += "\n #onetrust-consent-sdk #onetrust-banner-sdk .ot-tgl input:focus+.ot-switch .ot-switch-nob,\n #onetrust-consent-sdk #onetrust-banner-sdk .ot-chkbox input:focus + label::before {\n outline-color: " + u + ";\n outline-width: 1px;\n }"), | |
| h += "#onetrust-banner-sdk .ot-bnr-save-handler {" + g + "}#onetrust-banner-sdk .ot-cat-lst {" + C + "}#onetrust-banner-sdk .ot-cat-bdr {" + y + "}#onetrust-banner-sdk .ot-tgl input:checked+.ot-switch .ot-switch-nob:before,#onetrust-banner-sdk .ot-chkbox input:checked~label::before {" + f + "}#onetrust-banner-sdk .ot-chkbox label::before,#onetrust-banner-sdk .ot-tgl input:checked+.ot-switch .ot-switch-nob {" + v + "}#onetrust-banner-sdk #onetrust-pc-btn-handler.cookie-setting-link {background: inherit}" | |
| } | |
| return ko.BCloseButtonType === he.Link && (h += "#onetrust-banner-sdk.ot-close-btn-link .banner-close-button {color: " + ko.BContinueColor + "}"), | |
| h | |
| } | |
| , | |
| this.addCustomPreferenceCenterCSS = function() { | |
| var e = ko.pcBackgroundColor | |
| , t = ko.pcTextColor | |
| , o = ko.pcLinksTextColor | |
| , n = ko.PCenterEnableAccordion | |
| , r = ko.pcAccordionBackgroundColor | |
| , i = "\n " + (e ? (vo.pcName === Dt ? "#onetrust-consent-sdk #onetrust-pc-sdk .group-parent-container,\n #onetrust-consent-sdk #onetrust-pc-sdk .manage-pc-container,\n #onetrust-pc-sdk " + Go.P_Vendor_List : "#onetrust-consent-sdk #onetrust-pc-sdk") + ",\n #onetrust-consent-sdk " + Go.P_Search_Cntr + ",\n " + (n && vo.pcName === Dt ? "#onetrust-consent-sdk #onetrust-pc-sdk .ot-accordion-layout" + Go.P_Category_Item : "#onetrust-consent-sdk #onetrust-pc-sdk .ot-switch.ot-toggle") + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Tab_Grp_Hdr + " .checkbox,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Title + ":after\n " + (lo.isV2Template ? ",#onetrust-consent-sdk #onetrust-pc-sdk #ot-sel-blk,\n #onetrust-consent-sdk #onetrust-pc-sdk #ot-fltr-cnt,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Triangle : "") + " {\n background-color: " + e + ";\n }\n " : "") + "\n " + (t ? "#onetrust-consent-sdk #onetrust-pc-sdk h3,\n #onetrust-consent-sdk #onetrust-pc-sdk h4,\n #onetrust-consent-sdk #onetrust-pc-sdk h5,\n #onetrust-consent-sdk #onetrust-pc-sdk h6,\n #onetrust-consent-sdk #onetrust-pc-sdk p,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_Container + " " + Go.P_Ven_Opts + " p,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Policy_Txt + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Title + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Li_Title + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Leg_Select_All + " span,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Host_Cntr + " " + Go.P_Host_Info + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Fltr_Modal + " #modal-header,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-checkbox label span,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_List + " " + Go.P_Select_Cntr + " p,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_List + " " + Go.P_Vendor_Title + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_List + " .back-btn-handler p,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_List + " " + Go.P_Ven_Name + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Vendor_List + " " + Go.P_Vendor_Container + " .consent-category,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-leg-btn-container .ot-inactive-leg-btn,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-label-status,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-chkbox label span,\n #onetrust-consent-sdk #onetrust-pc-sdk #clear-filters-handler,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-optout-signal\n {\n color: " + t + ";\n }" : "") + "\n " + (o ? " #onetrust-consent-sdk #onetrust-pc-sdk .privacy-notice-link,\n #onetrust-consent-sdk #onetrust-pc-sdk .category-vendors-list-handler,\n #onetrust-consent-sdk #onetrust-pc-sdk .category-vendors-list-handler + a,\n #onetrust-consent-sdk #onetrust-pc-sdk .category-host-list-handler,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Ven_Link + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Host_Cntr + " " + Go.P_Host_Title + " a,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Host_Cntr + " " + Go.P_Acc_Header + " " + Go.P_Host_View_Cookies + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Host_Cntr + " " + Go.P_Host_Info + " a,\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Content + " " + Go.P_Policy_Txt + " .ot-link-btn,\n #onetrust-consent-sdk #onetrust-pc-sdk .ot-vnd-serv .ot-vnd-item .ot-vnd-info a,\n #onetrust-consent-sdk #onetrust-pc-sdk #ot-lst-cnt .ot-vnd-info a\n {\n color: " + o + ";\n }" : "") + "\n #onetrust-consent-sdk #onetrust-pc-sdk .category-vendors-list-handler:hover { text-decoration: underline;}\n " + (n && r ? "#onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Acc_Container + Go.P_Acc_Txt + ",\n #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Acc_Txt + " " + Go.P_Subgrp_Tgl_Cntr + " .ot-switch.ot-toggle\n {\n background-color: " + r + ";\n }" : "") + "\n " + (r ? " #onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Host_Cntr + " " + Go.P_Host_Info + ",\n " + (lo.isV2Template ? "#onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Acc_Txt + " .ot-ven-dets" : "#onetrust-consent-sdk #onetrust-pc-sdk " + Go.P_Acc_Txt + " " + Go.P_Ven_Opts) + "\n {\n background-color: " + r + ";\n }" : "") + "\n "; | |
| return i += Yr.setButonColor(), | |
| i += Yr.setFocusBorderColor(), | |
| i += Yr.setCloseIconColor(), | |
| i += Yr.setTabLayoutStyles(), | |
| i += Yr.setTabLayoutStyles(), | |
| i += Yr.setFocusIfTemplateUpgrade(), | |
| i += Yr.setExtLnkUrl(), | |
| i += Yr.setCustomCss() | |
| } | |
| , | |
| this.addCustomCookieListCSS = function() { | |
| var e = ko.CookiesV2NewCookiePolicy ? "-v2.ot-sdk-cookie-policy" : "" | |
| , t = "\n " + (ko.cookieListPrimaryColor ? "\n #ot-sdk-cookie-policy" + e + " h5,\n #ot-sdk-cookie-policy" + e + " h6,\n #ot-sdk-cookie-policy" + e + " li,\n #ot-sdk-cookie-policy" + e + " p,\n #ot-sdk-cookie-policy" + e + " a,\n #ot-sdk-cookie-policy" + e + " span,\n #ot-sdk-cookie-policy" + e + " td,\n #ot-sdk-cookie-policy" + e + " #cookie-policy-description {\n color: " + ko.cookieListPrimaryColor + ";\n }" : "") + "\n " + (ko.cookieListTableHeaderColor ? "#ot-sdk-cookie-policy" + e + " th {\n color: " + ko.cookieListTableHeaderColor + ";\n }" : "") + "\n " + (ko.cookieListGroupNameColor ? "#ot-sdk-cookie-policy" + e + " .ot-sdk-cookie-policy-group {\n color: " + ko.cookieListGroupNameColor + ";\n }" : "") + "\n " + (ko.cookieListTitleColor ? "\n #ot-sdk-cookie-policy" + e + " #cookie-policy-title {\n color: " + ko.cookieListTitleColor + ";\n }\n " : "") + "\n " + (e && ko.CookieListTableHeaderBackgroundColor ? "\n #ot-sdk-cookie-policy" + e + " table th {\n background-color: " + ko.CookieListTableHeaderBackgroundColor + ";\n }\n " : "") + "\n "; | |
| return ko.cookieListCustomCss && (t += ko.cookieListCustomCss), | |
| t | |
| } | |
| } | |
| (Qr = Xr = Xr || {}).SaleOptOut = "SaleOptOutCID", | |
| Qr.SharingOptOut = "SharingOptOutCID", | |
| Qr.PersonalDataConsents = "PersonalDataCID", | |
| (Zr = $r = $r || {}).SharingOptOutNotice = "SharingOptOutCID", | |
| Zr.SaleOptOutNotice = "SaleOptOutCID", | |
| Zr.SensitiveDataLimitUseNotice = "SensitivePICID", | |
| (ti = ei = ei || {}).KnownChildSensitiveDataConsents1 = "KnownChildSellPICID", | |
| ti.KnownChildSensitiveDataConsents2 = "KnownChildSharePICID", | |
| (ni = oi = oi || {}).SensitiveDataProcessing1 = "SensitivePICID", | |
| ni.SensitiveDataProcessing2 = "SensitiveSICID", | |
| ni.SensitiveDataProcessing3 = "GeolocationCID", | |
| ni.SensitiveDataProcessing4 = "RREPInfoCID", | |
| ni.SensitiveDataProcessing5 = "CommunicationCID", | |
| ni.SensitiveDataProcessing6 = "GeneticCID", | |
| ni.SensitiveDataProcessing7 = "BiometricCID", | |
| ni.SensitiveDataProcessing8 = "HealthCID", | |
| ni.SensitiveDataProcessing9 = "SexualOrientationCID"; | |
| var si, ai = (li.prototype.initialiseLandingPath = function() { | |
| var e = Ro.needReconsent(); | |
| if (pn.isLandingPage()) | |
| pn.setLandingPathParam(location.href); | |
| else { | |
| if (e && !Ro.awaitingReconsent()) | |
| return pn.setLandingPathParam(location.href), | |
| void uo.writeCookieParam(pt.OPTANON_CONSENT, nt, !0); | |
| e || uo.writeCookieParam(pt.OPTANON_CONSENT, nt, !1), | |
| pn.setLandingPathParam(lt), | |
| vo.isSoftOptInMode && !lo.moduleInitializer.MobileSDK && Cn.setAlertBoxClosed(!0), | |
| ko.NextPageCloseBanner && ko.ShowAlertNotice && $i.nextPageCloseBanner() | |
| } | |
| } | |
| , | |
| li); | |
| function li() {} | |
| var ci, di = (pi.prototype.insertCookiePolicyHtml = function() { | |
| if (To(this.ONETRUST_COOKIE_POLICY).length) { | |
| var e, t = document.createDocumentFragment(); | |
| if (vn.cookieListGroup) { | |
| var o = ko.CookiesV2NewCookiePolicy ? ".ot-sdk-cookie-policy" : "#ot-sdk-cookie-policy-v2" | |
| , n = document.createElement("div"); | |
| To(n).html(vn.cookieListGroup.html), | |
| n.removeChild(n.querySelector(o)), | |
| e = n.querySelector(".ot-sdk-cookie-policy"), | |
| ko.useRTL && To(e).attr("dir", "rtl") | |
| } | |
| e.querySelector("#cookie-policy-title").innerHTML = ko.CookieListTitle || "", | |
| e.querySelector("#cookie-policy-description").innerHTML = ko.CookieListDescription || ""; | |
| var r = e.querySelector("section") | |
| , i = e.querySelector("section tbody tr") | |
| , s = null | |
| , a = null; | |
| ko.CookiesV2NewCookiePolicy || (s = e.querySelector("section.subgroup"), | |
| a = e.querySelector("section.subgroup tbody tr"), | |
| To(e).el.removeChild(e.querySelector("section.subgroup"))), | |
| To(e).el.removeChild(e.querySelector("section")), | |
| !To(this.COOKIE_POLICY_SELECTOR).length && To(this.OPTANON_POLICY_SELECTOR).length ? To(this.OPTANON_POLICY_SELECTOR).append('<div id="ot-sdk-cookie-policy"></div>') : (To(this.COOKIE_POLICY_SELECTOR).html(""), | |
| To(this.OPTANON_POLICY_SELECTOR).html("")); | |
| for (var l = 0, c = ko.Groups; l < c.length; l++) { | |
| var d = c[l] | |
| , p = { | |
| json: ko, | |
| group: d, | |
| sectionTemplate: r, | |
| tableRowTemplate: i, | |
| cookieList: e, | |
| fragment: t | |
| }; | |
| if (ko.CookiesV2NewCookiePolicy) | |
| this.insertGroupHTMLV2(p); | |
| else if (this.insertGroupHTML(p), | |
| d.ShowSubgroup) | |
| for (var u = 0, h = d.SubGroups; u < h.length; u++) { | |
| var g = h[u] | |
| , C = { | |
| json: ko, | |
| group: g, | |
| sectionTemplate: s, | |
| tableRowTemplate: a, | |
| cookieList: e, | |
| fragment: t | |
| }; | |
| this.insertGroupHTML(C) | |
| } | |
| } | |
| } | |
| } | |
| , | |
| pi.prototype.insertGroupHTMLV2 = function(e) { | |
| function t(e) { | |
| return c.querySelector(e) | |
| } | |
| var o = this | |
| , n = e.json | |
| , r = e.group | |
| , i = e.sectionTemplate | |
| , s = e.tableRowTemplate | |
| , a = e.cookieList | |
| , l = e.fragment | |
| , c = i.cloneNode(!0) | |
| , d = r.SubGroups; | |
| To(t("tbody")).html(""); | |
| var p = r.Hosts.slice() | |
| , u = r.FirstPartyCookies.slice() | |
| , h = p.length || u.length ? r.GroupName : ""; | |
| if (r.ShowSubgroup && d.length) { | |
| var g = c.querySelector("section.ot-sdk-subgroup ul li"); | |
| d.forEach(function(e) { | |
| var t = g.cloneNode(!0); | |
| p = p.concat(e.Hosts), | |
| u = u.concat(e.FirstPartyCookies), | |
| (e.Hosts.length || e.FirstPartyCookies.length) && (h += "," + e.GroupName), | |
| To(t.querySelector(".ot-sdk-cookie-policy-group")).html(e.GroupName), | |
| To(t.querySelector(".ot-sdk-cookie-policy-group-desc")).html(o.groupsClass.safeFormattedGroupDescription(e)), | |
| To(g.parentElement).append(t) | |
| }), | |
| c.querySelector("section.ot-sdk-subgroup ul").removeChild(g) | |
| } else | |
| c.removeChild(c.querySelector("section.ot-sdk-subgroup")); | |
| ko.TTLGroupByTech && (this.setCookieListHeaderOrder(c), | |
| this.setCookieListBodyOrder(s)), | |
| n.IsLifespanEnabled ? To(t("th.ot-life-span")).el.innerHTML = n.LifespanText : To(t("thead tr")).el.removeChild(To(t("th.ot-life-span")).el), | |
| To(t("th.ot-cookies")).el.innerHTML = n.CookiesText, | |
| To(t("th.ot-host")).el.innerHTML = n.CategoriesText, | |
| To(t("th.ot-cookies-type")).el.innerHTML = n.CookiesUsedText, | |
| To(t("th.ot-host-description")).el.innerHTML = n.CookiesDescText; | |
| var C = this.transformFirstPartyCookies(u, p, r) | |
| , y = !1; | |
| (y = ko.TTLGroupByTech ? ko.TTLShowTechDesc : C.some(function(e) { | |
| return e.Description | |
| })) || To(t("thead tr")).el.removeChild(To(t("th.ot-host-description")).el), | |
| To(t(".ot-sdk-cookie-policy-group")).html(r.GroupName), | |
| To(t(".ot-sdk-cookie-policy-group-desc")).html(this.groupsClass.safeFormattedGroupDescription(r)), | |
| ko.TTLGroupByTech ? this.insertCookieLineByLine({ | |
| json: n, | |
| hosts: C, | |
| tableRowTemplate: s, | |
| showHostDescription: y, | |
| st: t | |
| }) : this.insertHostHtmlV2({ | |
| json: n, | |
| hosts: C, | |
| tableRowTemplate: s, | |
| showHostDescription: y, | |
| st: t | |
| }), | |
| 0 === C.length ? c.removeChild(c.querySelector("table")) : To(t("caption")).el.innerHTML = h, | |
| To(a).append(c), | |
| To(l).append(a), | |
| To(this.COOKIE_POLICY_SELECTOR).append(l) | |
| } | |
| , | |
| pi.prototype.insertHostHtmlV2 = function(e) { | |
| for (var c, d = e.json, t = e.hosts, p = e.tableRowTemplate, u = e.showHostDescription, h = e.st, o = function(e) { | |
| function t(e) { | |
| return o.querySelector(e) | |
| } | |
| var o = p.cloneNode(!0); | |
| g.clearCookieRowElement(t); | |
| for (var n = [], r = [], i = 0, s = e.Cookies; i < s.length; i++) { | |
| var a = s[i]; | |
| (c = a).IsSession ? n.push(d.LifespanTypeText) : n.push(wo.getDuration(c)); | |
| var l = c.Name; | |
| e.Type && (l = '\n <a href="https://cookiepedia.co.uk/cookies/' + c.Name + '" \n rel="noopener" target="_blank" aria-label="' + c.Name + " " + ko.NewWinTxt + '">\n ' + c.Name + "\n </a>"), | |
| r.push(l) | |
| } | |
| g.setDataLabelAttribute(t, d), | |
| g.createCookieRowHtmlElement({ | |
| host: e, | |
| subGroupCookie: c, | |
| trt: t, | |
| json: d, | |
| lifespanText: n.join(", "), | |
| hostType: r.join(", ") | |
| }), | |
| g.removeLifeSpanOrHostDescription(d, u, o, t), | |
| To(h("tbody")).append(o) | |
| }, g = this, n = 0, r = t; n < r.length; n++) | |
| o(r[n]) | |
| } | |
| , | |
| pi.prototype.insertGroupHTML = function(e) { | |
| function t(e) { | |
| return c.querySelector(e) | |
| } | |
| var o, n = e.json, r = e.group, i = e.sectionTemplate, s = e.tableRowTemplate, a = e.cookieList, l = e.fragment, c = i.cloneNode(!0); | |
| To(t("caption")).el.innerHTML = r.GroupName, | |
| To(t("tbody")).html(""), | |
| To(t("thead tr")), | |
| n.IsLifespanEnabled ? To(t("th.life-span")).el.innerHTML = n.LifespanText : To(t("thead tr")).el.removeChild(To(t("th.life-span")).el), | |
| To(t("th.cookies")).el.innerHTML = n.CookiesText, | |
| To(t("th.host")).el.innerHTML = n.CategoriesText; | |
| var d = !1; | |
| if (r.Hosts.some(function(e) { | |
| return e.description | |
| }) ? d = !0 : To(t("thead tr")).el.removeChild(To(t("th.host-description")).el), | |
| To(t(".ot-sdk-cookie-policy-group")).html(r.GroupName), | |
| To(t(".ot-sdk-cookie-policy-group-desc")).html(this.groupsClass.safeFormattedGroupDescription(r)), | |
| 0 < r.FirstPartyCookies.length) { | |
| To(t(".cookies-used-header")).html(n.CookiesUsedText), | |
| To(t(".cookies-list")).html(""); | |
| for (var p = 0; p < r.FirstPartyCookies.length; p++) | |
| o = r.FirstPartyCookies[p], | |
| To(t(".cookies-list")).append("<li> " + wo.getCookieLabel(o, n.AddLinksToCookiepedia) + " <li>") | |
| } else | |
| c.removeChild(t(".cookies-used-header")), | |
| c.removeChild(t(".cookies-list")); | |
| this.insertHostHtmlV1({ | |
| json: n, | |
| hosts: r.Hosts, | |
| tableRowTemplate: s, | |
| showHostDescription: d, | |
| st: t | |
| }), | |
| To(a).append(c), | |
| To(l).append(a), | |
| To(this.COOKIE_POLICY_SELECTOR).append(l) | |
| } | |
| , | |
| pi.prototype.insertHostHtmlV1 = function(e) { | |
| for (var d = e.json, t = e.hosts, p = e.tableRowTemplate, u = e.showHostDescription, h = e.st, o = function(e) { | |
| function t(e) { | |
| return o.querySelector(e) | |
| } | |
| var o = p.cloneNode(!0); | |
| To(t(".cookies-td ul")).html(""), | |
| To(t(".life-span-td ul")).html(""), | |
| To(t(".host-td")).html(""), | |
| To(t(".host-description-td")).html('<span class="ot-mobile-border"></span><p>' + e.Description + "</p> "); | |
| for (var n = 0, r = 0, i = e.Cookies; r < i.length; r++) { | |
| var s = i[r] | |
| , a = ""; | |
| a = s.IsSession ? d.LifespanTypeText : 0 === s.Length ? "<1 " + d.LifespanDurationText || d.PCenterVendorListLifespanDays : s.Length + " " + d.LifespanDurationText || d.PCenterVendorListLifespanDays; | |
| var l = d.IsLifespanEnabled ? " (" + a + ")" : ""; | |
| if (To(t(".cookies-td ul")).append("<li> " + s.Name + " " + l + " </li>"), | |
| d.IsLifespanEnabled) { | |
| var c = s.Length ? s.Length + " days" : "N/A"; | |
| To(t(".life-span-td ul")).append("<li>" + c + "</li>") | |
| } | |
| 0 === n && (To(t(".host-td")).append('<span class="ot-mobile-border"></span>'), | |
| To(t(".host-td")).append('<a href="https://cookiepedia.co.uk/host/' + s.Host + '" rel="noopener" target="_blank"\n aria-label="' + (e.DisplayName || e.HostName) + " " + ko.NewWinTxt + '">' + (e.DisplayName || e.HostName) + "</a>")), | |
| n++ | |
| } | |
| u || o.removeChild(t("td.host-description-td")), | |
| To(h("tbody")).append(o) | |
| }, n = 0, r = t; n < r.length; n++) | |
| o(r[n]); | |
| 0 === t.length && To(h("table")).el.removeChild(To(h("thead")).el) | |
| } | |
| , | |
| pi.prototype.transformFirstPartyCookies = function(e, t, o) { | |
| var n = this | |
| , r = t.slice(); | |
| e.forEach(function(e) { | |
| n.populateHostGroup(e, r, ko.firstPartyTxt) | |
| }); | |
| var i = o.GeneralVendorsIds; | |
| this.populateGenVendor(i, o, r); | |
| var s = o.SubGroups || []; | |
| return s.length && s.forEach(function(e) { | |
| var t = e.GeneralVendorsIds; | |
| n.populateGenVendor(t, e, r) | |
| }), | |
| r | |
| } | |
| , | |
| pi.prototype.populateGenVendor = function(e, o, n) { | |
| var r = this; | |
| e.length && e.forEach(function(t) { | |
| var e = ko.GeneralVendors.find(function(e) { | |
| return e.VendorCustomId === t | |
| }); | |
| e.Cookies.length && e.Cookies.forEach(function(e) { | |
| if (e.category === o.GroupName) { | |
| var t = e.isThirdParty ? "" : ko.firstPartyTxt; | |
| r.populateHostGroup(e, n, t) | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| pi.prototype.populateHostGroup = function(t, e, o) { | |
| e.some(function(e) { | |
| if (e.HostName === t.Host && e.Type === o) | |
| return e.Cookies.push(t), | |
| !0 | |
| }) || e.unshift({ | |
| HostName: t.Host, | |
| DisplayName: t.Host, | |
| HostId: "", | |
| Description: "", | |
| Type: o, | |
| Cookies: [t] | |
| }) | |
| } | |
| , | |
| pi.prototype.insertCookieLineByLine = function(e) { | |
| for (var t = e.json, o = e.hosts, n = e.tableRowTemplate, r = e.showHostDescription, i = e.st, s = 0, a = o; s < a.length; s++) | |
| for (var l = a[s], c = 0, d = l.Cookies; c < d.length; c++) { | |
| var p = d[c] | |
| , u = p.IsSession ? t.LifespanTypeText : wo.getDuration(p) | |
| , h = p.Name; | |
| l.Type && (h = '<a href="https://cookiepedia.co.uk/cookies/' + h + '" \n rel="noopener" target="_blank" aria-label="' + h + " " + ko.NewWinTxt + '">' + h + "\n </a>"); | |
| var g = n.cloneNode(!0) | |
| , C = this.queryToHtmlElement(g); | |
| this.clearCookieRowElement(C), | |
| this.createCookieRowHtmlElement({ | |
| host: l, | |
| subGroupCookie: p, | |
| trt: C, | |
| json: t, | |
| lifespanText: u, | |
| hostType: h | |
| }), | |
| this.removeLifeSpanOrHostDescription(t, r, g, C), | |
| To(i("tbody")).append(g) | |
| } | |
| } | |
| , | |
| pi.prototype.removeLifeSpanOrHostDescription = function(e, t, o, n) { | |
| e.IsLifespanEnabled || o.removeChild(n("td.ot-life-span-td")), | |
| t || o.removeChild(n("td.ot-host-description-td")) | |
| } | |
| , | |
| pi.prototype.createCookieRowHtmlElement = function(e) { | |
| var t = e.host | |
| , o = e.subGroupCookie | |
| , n = e.trt | |
| , r = e.json | |
| , i = e.lifespanText | |
| , s = e.hostType | |
| , a = ".ot-host-td"; | |
| this.setDataLabelAttribute(n, r), | |
| To(n(".ot-host-description-td")).html('<span class="ot-mobile-border"></span><p>' + o.description + "</p> "), | |
| To(n(a)).append('<span class="ot-mobile-border"></span>'); | |
| var l = t.DisplayName || t.HostName; | |
| To(n(a)).append(t.Type ? l : '<a href="https://cookiepedia.co.uk/host/' + o.Host + '" rel="noopener" target="_blank" \n aria-label="' + l + " " + ko.NewWinTxt + '">\n ' + l + "\n </a>"), | |
| n(".ot-cookies-td .ot-cookies-td-content").insertAdjacentHTML("beforeend", s), | |
| n(".ot-life-span-td .ot-life-span-td-content").innerText = i, | |
| n(".ot-cookies-type .ot-cookies-type-td-content").innerText = t.Type ? ko.firstPartyTxt : ko.thirdPartyTxt | |
| } | |
| , | |
| pi.prototype.setDataLabelAttribute = function(e, t) { | |
| var o = "data-label"; | |
| e(".ot-host-td").setAttribute(o, t.CategoriesText), | |
| e(".ot-cookies-td").setAttribute(o, t.CookiesText), | |
| e(".ot-cookies-type").setAttribute(o, t.CookiesUsedText), | |
| e(".ot-life-span-td").setAttribute(o, t.LifespanText) | |
| } | |
| , | |
| pi.prototype.clearCookieRowElement = function(e) { | |
| To(e(".ot-cookies-td span")).text(""), | |
| To(e(".ot-life-span-td span")).text(""), | |
| To(e(".ot-cookies-type span")).text(""), | |
| To(e(".ot-cookies-td .ot-cookies-td-content")).html(""), | |
| To(e(".ot-host-td")).html("") | |
| } | |
| , | |
| pi.prototype.setCookieListHeaderOrder = function(e) { | |
| var t = e.querySelector("section table thead tr") | |
| , o = t.querySelector("th.ot-host") | |
| , n = t.querySelector("th.ot-cookies") | |
| , r = t.querySelector("th.ot-life-span") | |
| , i = t.querySelector("th.ot-cookies-type") | |
| , s = t.querySelector("th.ot-host-description"); | |
| t.innerHTML = "", | |
| t.appendChild(n.cloneNode(!0)), | |
| t.appendChild(o.cloneNode(!0)), | |
| t.appendChild(r.cloneNode(!0)), | |
| t.appendChild(i.cloneNode(!0)), | |
| t.appendChild(s.cloneNode(!0)) | |
| } | |
| , | |
| pi.prototype.setCookieListBodyOrder = function(e) { | |
| var t = e.querySelector("td.ot-host-td") | |
| , o = e.querySelector("td.ot-cookies-td") | |
| , n = e.querySelector("td.ot-life-span-td") | |
| , r = e.querySelector("td.ot-cookies-type") | |
| , i = e.querySelector("td.ot-host-description-td"); | |
| e.innerHTML = "", | |
| e.appendChild(o.cloneNode(!0)), | |
| e.appendChild(t.cloneNode(!0)), | |
| e.appendChild(n.cloneNode(!0)), | |
| e.appendChild(r.cloneNode(!0)), | |
| e.appendChild(i.cloneNode(!0)) | |
| } | |
| , | |
| pi.prototype.queryToHtmlElement = function(t) { | |
| return function(e) { | |
| return t.querySelector(e) | |
| } | |
| } | |
| , | |
| pi); | |
| function pi() { | |
| this.groupsClass = tr, | |
| this.COOKIE_POLICY_SELECTOR = "#ot-sdk-cookie-policy", | |
| this.OPTANON_POLICY_SELECTOR = "#optanon-cookie-policy", | |
| this.ONETRUST_COOKIE_POLICY = "#ot-sdk-cookie-policy, #optanon-cookie-policy" | |
| } | |
| var ui, hi = (gi.prototype.IsAlertBoxClosedAndValid = function() { | |
| return Ro.isAlertBoxClosedAndValid() | |
| } | |
| , | |
| gi.prototype.LoadBanner = function() { | |
| Cn.loadBanner() | |
| } | |
| , | |
| gi.prototype.Init = function(e) { | |
| void 0 === e && (e = !1), | |
| ot.insertViewPortTag(), | |
| vn.ensureHtmlGroupDataInitialised(), | |
| mr.updateGtmMacros(!1), | |
| si.initialiseLandingPath(), | |
| e || Yr.initialiseCssReferences() | |
| } | |
| , | |
| gi.prototype.FetchAndDownloadPC = function() { | |
| Yi.fetchAndSetupPC() | |
| } | |
| , | |
| gi.prototype.ToggleInfoDisplay = function() { | |
| Cn.triggerGoogleAnalyticsEvent(mn, _n), | |
| Yi.toggleInfoDisplay() | |
| } | |
| , | |
| gi.prototype.Close = function(e) { | |
| Yi.close(e) | |
| } | |
| , | |
| gi.prototype.AllowAll = function(e) { | |
| $i.allowAllEvent(e) | |
| } | |
| , | |
| gi.prototype.RejectAll = function(e) { | |
| $i.rejectAllEvent(e) | |
| } | |
| , | |
| gi.prototype.setDataSubjectIdV2 = function(e, t) { | |
| void 0 === t && (t = !1), | |
| e && e.trim() && (e = e.replace(/ /g, ""), | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, rt, e, !0), | |
| bo.dsParams.isAnonymous = t) | |
| } | |
| , | |
| gi.prototype.getDataSubjectId = function() { | |
| return uo.readCookieParam(pt.OPTANON_CONSENT, rt, !0) | |
| } | |
| , | |
| gi.prototype.synchroniseCookieWithPayload = function(i) { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, "groups") | |
| , t = ho.strToArr(e) | |
| , s = []; | |
| t.forEach(function(e) { | |
| var t = e.split(":") | |
| , o = Mo.getGroupById(t[0]) | |
| , n = ho.findIndex(i, function(e) { | |
| return e.Id === o.PurposeId | |
| }) | |
| , r = i[n]; | |
| r ? r.TransactionType === ut ? (s.push(t[0] + ":1"), | |
| o.Parent ? Yi.toggleSubCategory(null, o.CustomGroupId, !0, o.CustomGroupId) : Yi.toggleV2Category(null, o, !0, o.CustomGroupId)) : (s.push(t[0] + ":0"), | |
| o.Parent ? Yi.toggleSubCategory(null, o.CustomGroupId, !1, o.CustomGroupId) : Yi.toggleV2Category(null, o, !1, o.CustomGroupId)) : s.push(t[0] + ":" + t[1]) | |
| }), | |
| Qo.writeGrpParam(pt.OPTANON_CONSENT, s) | |
| } | |
| , | |
| gi.prototype.getGeolocationData = function() { | |
| return bo.userLocation | |
| } | |
| , | |
| gi.prototype.TriggerGoogleAnalyticsEvent = function(e, t, o, n) { | |
| Cn.triggerGoogleAnalyticsEvent(e, t, o, n) | |
| } | |
| , | |
| gi.prototype.ReconsentGroups = function() { | |
| var r = !1 | |
| , e = uo.readCookieParam(pt.OPTANON_CONSENT, "groups") | |
| , i = ho.strToArr(e) | |
| , s = ho.strToArr(e.replace(/:0|:1/g, "")) | |
| , a = !1 | |
| , t = uo.readCookieParam(pt.OPTANON_CONSENT, "hosts") | |
| , l = ho.strToArr(t) | |
| , c = ho.strToArr(t.replace(/:0|:1/g, "")) | |
| , d = ["inactive", "inactive landingpage", "do not track"]; | |
| e && (ko.Groups.forEach(function(e) { | |
| b(e.SubGroups, [e]).forEach(function(e) { | |
| var t = e.CustomGroupId | |
| , o = ho.indexOf(s, t); | |
| if (-1 !== o) { | |
| var n = Mo.getGrpStatus(e).toLowerCase(); | |
| -1 < d.indexOf(n) && (r = !0, | |
| i[o] = t + ("inactive landingpage" === n ? ":1" : ":0")) | |
| } | |
| }) | |
| }), | |
| r && Qo.writeGrpParam(pt.OPTANON_CONSENT, i)), | |
| t && (ko.Groups.forEach(function(e) { | |
| b(e.SubGroups, [e]).forEach(function(n) { | |
| n.Hosts.forEach(function(e) { | |
| var t = ho.indexOf(c, e.HostId); | |
| if (-1 !== t) { | |
| var o = Mo.getGrpStatus(n).toLowerCase(); | |
| -1 < d.indexOf(o) && (a = !0, | |
| l[t] = e.HostId + ("inactive landingpage" === o ? ":1" : ":0")) | |
| } | |
| }) | |
| }) | |
| }), | |
| a && Qo.writeHstParam(pt.OPTANON_CONSENT, l)) | |
| } | |
| , | |
| gi.prototype.SetAlertBoxClosed = function(e) { | |
| Cn.setAlertBoxClosed(e) | |
| } | |
| , | |
| gi.prototype.GetDomainData = function() { | |
| return vo.pubDomainData | |
| } | |
| , | |
| gi.prototype.setGeoLocation = function(e, t) { | |
| void 0 === t && (t = ""), | |
| bo.userLocation = { | |
| country: e, | |
| state: t | |
| } | |
| } | |
| , | |
| gi.prototype.changeLang = function(t) { | |
| if (t !== bo.lang) { | |
| var o = lo.moduleInitializer; | |
| Eo.getLangJson(t).then(function(e) { | |
| e ? (vo.init(e), | |
| vn.fetchAssets(t).then(function() { | |
| var e = document.getElementById("onetrust-style"); | |
| e && (e.textContent = ""), | |
| Yr.initialiseCssReferences(), | |
| o.IsSuppressPC && !bo.isPCVisible || (ho.removeChild(To("#onetrust-pc-sdk").el), | |
| bo.vendorDomInit = !1, | |
| bo.genVendorDomInit = !1, | |
| gr.insertPcHtml(), | |
| Yi.initialiseConsentNoticeHandlers(), | |
| ko.IsIabEnabled && ar.InitializeVendorList(), | |
| bo.isPCVisible && Yi.restorePc()); | |
| var t = !0; | |
| Ro.isAlertBoxClosedAndValid() || o.IsSuppressBanner && (!o.IsSuppressBanner || bo.skipAddingHTML) || ko.NoBanner || (ho.removeChild(To("#onetrust-banner-sdk").el), | |
| Yi.initializeAlartHtmlAndHandler(), | |
| t = !1), | |
| ui.initCookiePolicyAndSettings(), | |
| ho.removeChild(To("#ot-sdk-btn-floating").el), | |
| ts.insertCSBtn(t), | |
| ui.processedHtml = null | |
| })) : console.error("Language:" + t + " doesn't exist for the geo rule") | |
| }) | |
| } | |
| } | |
| , | |
| gi.prototype.initCookiePolicyAndSettings = function(e) { | |
| var t, o; | |
| void 0 === e && (e = !1), | |
| e && (null !== (t = document.querySelector(".ot-sdk-show-settings")) && void 0 !== t && t.removeEventListener("click", Yi.cookiesSettingsBoundListener), | |
| null !== (o = document.querySelector(".optanon-toggle-display")) && void 0 !== o && o.removeEventListener("click", Yi.cookiesSettingsBoundListener)), | |
| lo.fp.CookieV2TrackingTechnologies ? ts.insertTrackingTechnologies() : ci.insertCookiePolicyHtml(), | |
| Yi.insertCookieSettingText(e) | |
| } | |
| , | |
| gi.prototype.showVendorsList = function() { | |
| bo.pcLayer !== O.VendorList && (Yi.showAllVendors(), | |
| Cn.triggerGoogleAnalyticsEvent(mn, Vn)) | |
| } | |
| , | |
| gi.prototype.getTestLogData = function() { | |
| var e = ko.Groups | |
| , t = vo.pubDomainData | |
| , o = lo.moduleInitializer.Version; | |
| console.info("%cWelcome to OneTrust Log", "padding: 8px; background-color: #43c233; color: white; font-style: italic; border: 1px solid black; font-size: 1.5em;"), | |
| console.info("Script is for: %c" + (t.Domain ? t.Domain : ko.optanonCookieDomain), "padding: 4px 6px; font-style: italic; border: 2px solid #43c233; font-size: 12px;"), | |
| console.info("Script Version Published: " + o), | |
| console.info("The consent model is: " + t.ConsentModel.Name); | |
| var n = null !== Ro.alertBoxCloseDate(); | |
| console.info("Consent has " + (n ? "" : "not ") + "been given " + (n ? "👍" : "🛑")); | |
| var r = []; | |
| e.forEach(function(e) { | |
| var t = ""; | |
| t = e.Status && "always active" === e.Status.toLowerCase() ? "Always Active" : tr.isGroupActive(e) ? "Active" : "Inactive", | |
| r.push({ | |
| CustomGroupId: e.CustomGroupId, | |
| GroupName: e.GroupName, | |
| Status: t | |
| }) | |
| }), | |
| console.groupCollapsed("Current Category Status"), | |
| console.table(r), | |
| console.groupEnd(); | |
| var i = []; | |
| t.GeneralVendors.forEach(function(e) { | |
| i.push({ | |
| CustomGroupId: e.VendorCustomId, | |
| Name: e.Name, | |
| Status: ui.isCategoryActive(e.VendorCustomId) ? "active" : "inactive" | |
| }) | |
| }), | |
| console.groupCollapsed("General Vendor Ids"), | |
| console.table(i), | |
| console.groupEnd(); | |
| var s = vo.getRegionRule() | |
| , a = bo.userLocation | |
| , l = lo.moduleInitializer.GeoRuleGroupName; | |
| vo.conditionalLogicEnabled ? console.groupCollapsed("Geolocation, Template & Condition") : console.groupCollapsed("Geolocation and Template"), | |
| bo.userLocation.country && console.info("The Geolocation is " + a.country.toUpperCase()), | |
| console.info("The Geolocation rule is " + s.Name), | |
| console.info("The GeolocationRuleGroup is " + l), | |
| vo.canUseConditionalLogic ? (console.info("The Condition name is " + vo.Condition.Name), | |
| console.info("The TemplateName is " + vo.Condition.TemplateName)) : console.info("The TemplateName is " + s.TemplateName), | |
| console.groupEnd(); | |
| var c = e.filter(function(e) { | |
| return tr.isGroupActive(e) && "COOKIE" === e.Type | |
| }); | |
| console.groupCollapsed("The cookies expected to be active if blocking has been implemented are"), | |
| c.forEach(function(e) { | |
| console.groupCollapsed(e.GroupName); | |
| var t = ui.getAllFormatCookiesForAGroup(e); | |
| console.table(t, ["Name", "Host", "description"]), | |
| console.groupEnd() | |
| }), | |
| console.groupEnd() | |
| } | |
| , | |
| gi.prototype.isCategoryActive = function(e) { | |
| return -1 !== window.OptanonActiveGroups.indexOf("," + e + ",") | |
| } | |
| , | |
| gi.prototype.getAllFormatCookiesForAGroup = function(e) { | |
| var t, o = []; | |
| return e.FirstPartyCookies.forEach(function(e) { | |
| return o.push({ | |
| Name: e.Name, | |
| Host: e.Host, | |
| Description: e.description | |
| }) | |
| }), | |
| (null === (t = e.Hosts) || void 0 === t ? void 0 : t.reduce(function(e, t) { | |
| return e.concat(JSON.parse(JSON.stringify(t.Cookies))) | |
| }, [])).forEach(function(e) { | |
| return o.push({ | |
| Name: e.Name, | |
| Host: e.Host, | |
| Description: e.description | |
| }) | |
| }), | |
| o | |
| } | |
| , | |
| gi.prototype.updateSingularConsent = function(d, p) { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s, a, l, c; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return [4, Yi.fetchAndSetupPC()]; | |
| case 1: | |
| for (e.sent(), | |
| vo.apiSource = A.UpdateConsent, | |
| t = p.split(","), | |
| o = [], | |
| n = 0, | |
| r = t; n < r.length; n++) | |
| i = r[n], | |
| s = i.split(":"), | |
| a = s[0], | |
| l = s[1], | |
| c = Boolean(Number(l)), | |
| d === jt ? "always active" === Mo.getGrpStatus(Mo.getGroupById(a)) || (ui.updateConsentArray(bo.groupsConsent, a, l), | |
| o.push({ | |
| id: a, | |
| isEnabled: c | |
| })) : d === zt ? ui.updateConsentArray(bo.hostsConsent, a, l) : d === Kt ? bo.genVendorsConsent[a] = c : d === Wt && o.push({ | |
| id: a, | |
| isEnabled: c | |
| }); | |
| return $i.handleTogglesOnSingularConsentUpdate(d, o), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| gi.prototype.vendorServiceEnabled = function() { | |
| return bo.showVendorService | |
| } | |
| , | |
| gi.prototype.updateGCM = function(e) { | |
| e || console.error("No callback passed to the UpdateGCM"), | |
| vo.gcmUpdateCallback = e | |
| } | |
| , | |
| gi.prototype.updateConsentArray = function(e, t, o) { | |
| var n = e.findIndex(function(e) { | |
| return e.includes(t + ":0") || e.includes(t + ":1") | |
| }); | |
| -1 < n ? e[n] = t + ":" + o : e.push(t + ":" + o) | |
| } | |
| , | |
| gi); | |
| function gi() { | |
| this.processedHtml = "", | |
| this.useGeoLocationService = !0, | |
| this.IsAlertBoxClosed = this.IsAlertBoxClosedAndValid, | |
| this.InitializeBanner = function() { | |
| return ts.initBanner() | |
| } | |
| , | |
| this.getHTML = function() { | |
| return document.getElementById("onetrust-banner-sdk") || (gr.insertPcHtml(), | |
| Ui.insertAlertHtml()), | |
| ui.processedHtml || (ui.processedHtml = document.querySelector("#onetrust-consent-sdk").outerHTML), | |
| ui.processedHtml | |
| } | |
| , | |
| this.getCSS = function() { | |
| return Yr.processedCSS | |
| } | |
| , | |
| this.setConsentProfile = function(e) { | |
| if (e.customPayload) { | |
| var t = e.customPayload; | |
| t.Interaction && uo.writeCookieParam(pt.OPTANON_CONSENT, st, t.Interaction) | |
| } | |
| ui.setDataSubjectIdV2(e.identifier, e.isAnonymous), | |
| ui.synchroniseCookieWithPayload(e.purposes), | |
| $i.executeOptanonWrapper() | |
| } | |
| , | |
| this.InsertScript = function(e, t, o, n, r, i) { | |
| var s, a = null != n && void 0 !== n, l = a && void 0 !== n.ignoreGroupCheck && !0 === n.ignoreGroupCheck; | |
| if (tr.canInsertForGroup(r, l) && !ho.contains(bo.srcExecGrps, r)) { | |
| bo.srcExecGrpsTemp.push(r), | |
| a && void 0 !== n.deleteSelectorContent && !0 === n.deleteSelectorContent && ho.empty(t); | |
| var c = document.createElement("script"); | |
| switch (null != o && void 0 !== o && (s = !1, | |
| c.onload = c.onreadystatechange = function() { | |
| s || this.readyState && "loaded" !== this.readyState && "complete" !== this.readyState || (s = !0, | |
| o()) | |
| } | |
| ), | |
| c.type = "text/javascript", | |
| c.src = e, | |
| i && (c.async = i), | |
| t) { | |
| case "head": | |
| document.getElementsByTagName("head")[0].appendChild(c); | |
| break; | |
| case "body": | |
| document.getElementsByTagName("body")[0].appendChild(c); | |
| break; | |
| default: | |
| var d = document.getElementById(t); | |
| d && (d.appendChild(c), | |
| a && void 0 !== n.makeSelectorVisible && !0 === n.makeSelectorVisible && ho.show(t)) | |
| } | |
| if (a && void 0 !== n.makeElementsVisible) | |
| for (var p = 0, u = n.makeElementsVisible; p < u.length; p++) { | |
| var h = u[p]; | |
| ho.show(h) | |
| } | |
| if (a && void 0 !== n.deleteElements) | |
| for (var g = 0, C = n.deleteElements; g < C.length; g++) { | |
| h = C[g]; | |
| ho.remove(h) | |
| } | |
| } | |
| } | |
| , | |
| this.InsertHtml = function(e, t, o, n, r) { | |
| var i = null != n && void 0 !== n | |
| , s = i && void 0 !== n.ignoreGroupCheck && !0 === n.ignoreGroupCheck; | |
| if (tr.canInsertForGroup(r, s) && !ho.contains(bo.htmlExecGrps, r)) { | |
| if (bo.htmlExecGrpsTemp.push(r), | |
| i && void 0 !== n.deleteSelectorContent && !0 === n.deleteSelectorContent && ho.empty(t), | |
| ho.appendTo(t, e), | |
| i && void 0 !== n.makeSelectorVisible && !0 === n.makeSelectorVisible && ho.show(t), | |
| i && void 0 !== n.makeElementsVisible) | |
| for (var a = 0, l = n.makeElementsVisible; a < l.length; a++) { | |
| var c = l[a]; | |
| ho.show(c) | |
| } | |
| if (i && void 0 !== n.deleteElements) | |
| for (var d = 0, p = n.deleteElements; d < p.length; d++) { | |
| c = p[d]; | |
| ho.remove(c) | |
| } | |
| null != o && void 0 !== o && o() | |
| } | |
| } | |
| , | |
| this.BlockGoogleAnalytics = function(e, t) { | |
| window["ga-disable-" + e] = !tr.canInsertForGroup(t) | |
| } | |
| } | |
| var Ci = (yi.prototype.getFieldsValues = function(e, t, o, n, r) { | |
| void 0 === r && (r = !1); | |
| var i = this.getSectionFieldsMapping(e) | |
| , s = this.getSectionFieldsMapping(t, !0) | |
| , a = this.getDynamicFields(o, n) | |
| , l = this.getMSPASectionFieldValue() | |
| , c = r ? this.getGpcSectionFieldValue() : {}; | |
| return d(d(d(d(d({}, i), s), a), l), c) | |
| } | |
| , | |
| yi.prototype.getGpcSectionFieldValue = function() { | |
| var e = {}; | |
| return e[De.GpcSegmentType] = 1, | |
| e[De.Gpc] = Boolean(navigator.globalPrivacyControl), | |
| e | |
| } | |
| , | |
| yi.prototype.getMSPASectionFieldValue = function() { | |
| var e = {}; | |
| return ko.IsMSPAEnabled ? (e.MspaCoveredTransaction = 1, | |
| ko.MSPAOptionMode === Oe.MspaServiceProviderMode ? (e.MspaServiceProviderMode = 1, | |
| e.MspaOptOutOptionMode = 2) : ko.MSPAOptionMode === Oe.MspaOptOutOptionMode ? (e.MspaServiceProviderMode = 2, | |
| e.MspaOptOutOptionMode = 1) : (e.MspaServiceProviderMode = 2, | |
| e.MspaOptOutOptionMode = 2)) : (e.MspaCoveredTransaction = 2, | |
| e.MspaServiceProviderMode = 0, | |
| e.MspaOptOutOptionMode = 0), | |
| e | |
| } | |
| , | |
| yi.prototype.getDynamicArrayFieldsValue = function(e, t) { | |
| for (var o = {}, n = [], r = this.getSectionFieldsMapping(t), i = 1; i <= Object.keys(r).length; i++) | |
| n.push(r[e + i]); | |
| return o[e] = n, | |
| o | |
| } | |
| , | |
| yi.prototype.getDynamicFields = function(e, t) { | |
| var o = {}; | |
| if (ko.IsGPPKnownChildApplicable && e) { | |
| var n = this.getDynamicArrayFieldsValue(Fe.KnownChildSensitiveDataConsents, e); | |
| o = d(d({}, o), n) | |
| } | |
| return ko.IsGPPDataProcessingApplicable && t && (n = this.getDynamicArrayFieldsValue(Fe.SensitiveDataProcessing, t), | |
| o = d(d({}, o), n)), | |
| o | |
| } | |
| , | |
| yi.prototype.getSectionFieldsMapping = function(e, r) { | |
| var i = this; | |
| void 0 === r && (r = !1); | |
| var s = {}; | |
| return Object.entries(e).forEach(function(e) { | |
| var t = e[0] | |
| , o = e[1] | |
| , n = i.evaluateValueOperators(o); | |
| s[t] = i.calculateFieldValue(n, r) | |
| }), | |
| s | |
| } | |
| , | |
| yi.prototype.evaluateValueOperators = function(e) { | |
| var t = "" | |
| , o = []; | |
| if (e) { | |
| var n = e.split(" && ") | |
| , r = e.split(" || "); | |
| o = (1 < n.length ? (t = "&&", | |
| n) : 1 < r.length ? (t = "||", | |
| r) : (t = "", | |
| [e])).map(function(e) { | |
| return ko.GPPPurposes[e] || "" | |
| }) | |
| } | |
| return { | |
| values: o, | |
| operator: t | |
| } | |
| } | |
| , | |
| yi.prototype.calculateFieldValue = function(e, t) { | |
| var o; | |
| if (e.values.length) | |
| switch (e.operator) { | |
| case "&&": | |
| o = this.calculateAndFieldValue(e.values, t); | |
| break; | |
| case "||": | |
| o = this.calculateOrFieldValue(e.values, t); | |
| break; | |
| case "": | |
| default: | |
| o = this.calculateSingleFieldValue(e.values[0], t) | |
| } | |
| else | |
| o = 0; | |
| return o | |
| } | |
| , | |
| yi.prototype.calculateOrFieldValue = function(e, t) { | |
| var o = this; | |
| if (this.isNotApplicable(e)) | |
| return 0; | |
| var n = e.some(function(e) { | |
| return o.fieldValueCondition(e, t) | |
| }); | |
| return this.calculateFieldValueFromBit(n, t) | |
| } | |
| , | |
| yi.prototype.calculateAndFieldValue = function(e, t) { | |
| var o = this; | |
| if (this.isNotApplicable(e)) | |
| return 0; | |
| var n = e.every(function(e) { | |
| return o.fieldValueCondition(e, t) | |
| }); | |
| return this.calculateFieldValueFromBit(n, t) | |
| } | |
| , | |
| yi.prototype.calculateSingleFieldValue = function(e, t) { | |
| if (!e) | |
| return 0; | |
| var o = this.fieldValueCondition(e, t); | |
| return this.calculateFieldValueFromBit(o, t) | |
| } | |
| , | |
| yi.prototype.calculateFieldValueFromBit = function(e, t) { | |
| return t ? e ? 1 : 0 : e ? 2 : 1 | |
| } | |
| , | |
| yi.prototype.isNotApplicable = function(e) { | |
| return !e.some(function(e) { | |
| return Boolean(e) | |
| }) | |
| } | |
| , | |
| yi.prototype.fieldValueCondition = function(e, t) { | |
| return t ? Boolean(e) : ui.isCategoryActive(e) | |
| } | |
| , | |
| yi); | |
| function yi() {} | |
| var fi, vi, ki, mi, bi, Si, Pi, Ti = (e(Ai, fi = Ci), | |
| Ai.prototype.getSectionFieldsValues = function() { | |
| return this.getFieldsValues(Xr, $r, ei, oi, !0) | |
| } | |
| , | |
| Ai); | |
| function Ai() { | |
| return null !== fi && fi.apply(this, arguments) || this | |
| } | |
| (ki = vi = vi || {}).SaleOptOut = "SaleOptOutCID", | |
| ki.KnownChildSensitiveDataConsents = "KnownChildSellPICID", | |
| ki.TargetedAdvertisingOptOut = "TargetedAdvertisingOptOutCID", | |
| (bi = mi = mi || {}).SharingNotice = "SaleOptOutCID || TargetedAdvertisingOptOutCID", | |
| bi.SaleOptOutNotice = "SaleOptOutCID", | |
| bi.TargetedAdvertisingOptOutNotice = "TargetedAdvertisingOptOutCID", | |
| (Pi = Si = Si || {}).SensitiveDataProcessing1 = "RaceCID", | |
| Pi.SensitiveDataProcessing2 = "ReligionCID", | |
| Pi.SensitiveDataProcessing3 = "HealthCID", | |
| Pi.SensitiveDataProcessing4 = "SexualOrientationCID", | |
| Pi.SensitiveDataProcessing5 = "ImmigrationCID", | |
| Pi.SensitiveDataProcessing6 = "GeneticCID", | |
| Pi.SensitiveDataProcessing7 = "BiometricCID", | |
| Pi.SensitiveDataProcessing8 = "GeolocationCID"; | |
| var Ii, Li, _i, Ei, Vi, Bi, wi, Oi, xi, Gi = (e(Ni, Ii = Ci), | |
| Ni.prototype.getSectionFieldsValues = function() { | |
| return this.getFieldsValues(vi, mi, null, Si, !1) | |
| } | |
| , | |
| Ni); | |
| function Ni() { | |
| return null !== Ii && Ii.apply(this, arguments) || this | |
| } | |
| (_i = Li = Li || {}).SaleOptOut = "SaleOptOutCID", | |
| _i.SharingOptOut = "SharingOptOutCID", | |
| _i.PersonalDataConsents = "PersonalDataCID", | |
| _i.TargetedAdvertisingOptOut = "TargetedAdvertisingOptOutCID", | |
| (Vi = Ei = Ei || {}).SharingNotice = "SharingOptOutCID", | |
| Vi.SaleOptOutNotice = "SaleOptOutCID", | |
| Vi.SharingOptOutNotice = "SharingOptOutCID", | |
| Vi.SensitiveDataProcessingOptOutNotice = "SensitivePICID", | |
| Vi.SensitiveDataLimitUseNotice = "SensitivePICID", | |
| Vi.TargetedAdvertisingOptOutNotice = "TargetedAdvertisingOptOutCID", | |
| (wi = Bi = Bi || {}).KnownChildSensitiveDataConsents1 = "PDCAboveAgeCID", | |
| wi.KnownChildSensitiveDataConsents2 = "PDCBelowAgeCID", | |
| (xi = Oi = Oi || {}).SensitiveDataProcessing1 = "RaceCID", | |
| xi.SensitiveDataProcessing2 = "ReligionCID", | |
| xi.SensitiveDataProcessing3 = "HealthCID", | |
| xi.SensitiveDataProcessing4 = "SexualOrientationCID", | |
| xi.SensitiveDataProcessing5 = "ImmigrationCID", | |
| xi.SensitiveDataProcessing6 = "GeneticCID", | |
| xi.SensitiveDataProcessing7 = "BiometricCID", | |
| xi.SensitiveDataProcessing8 = "GeolocationCID", | |
| xi.SensitiveDataProcessing9 = "SensitivePICID", | |
| xi.SensitiveDataProcessing10 = "SensitiveSICID", | |
| xi.SensitiveDataProcessing11 = "UnionMembershipCID", | |
| xi.SensitiveDataProcessing12 = "CommunicationCID"; | |
| var Di, Hi = (e(Fi, Di = Ci), | |
| Fi.prototype.getSectionFieldsValues = function() { | |
| return this.getFieldsValues(Li, Ei, Bi, Oi, !0) | |
| } | |
| , | |
| Fi); | |
| function Fi() { | |
| return null !== Di && Di.apply(this, arguments) || this | |
| } | |
| var Ri, qi = (Mi.prototype.initGppConsent = function() { | |
| var e; | |
| this.cmpApi.setApplicableSections(this.getApplicableSections()); | |
| var t = this.readGppCookies() | |
| , o = this.getCurrentSectionName() | |
| , n = !1; | |
| t && (this.cmpApi.setGppString(t), | |
| n = !0), | |
| this.cmpApi.setCmpStatus(null === (e = this.gppSDKRef) || void 0 === e ? void 0 : e.cmpStatus.LOADED), | |
| (o && !this.cmpApi.hasSection(o) || vo.gpcBrowserValueChanged) && this.setOrUpdateGppSectionString(o, n), | |
| window.OneTrust.OnConsentChanged(this.updateGppConsentString) | |
| } | |
| , | |
| Mi.prototype.setCmpDisplayStatus = function(e) { | |
| var t, o, n; | |
| "visible" === e ? this.cmpApi.setCmpDisplayStatus(null === (t = this.gppSDKRef) || void 0 === t ? void 0 : t.displayStatus.VISIBLE) : "hidden" === e ? this.cmpApi.setCmpDisplayStatus(null === (o = this.gppSDKRef) || void 0 === o ? void 0 : o.displayStatus.HIDDEN) : "disabled" === e && this.cmpApi.setCmpDisplayStatus(null === (n = this.gppSDKRef) || void 0 === n ? void 0 : n.displayStatus.DISABLED) | |
| } | |
| , | |
| Mi.prototype.setGppCookies = function(e, t) { | |
| if (t) | |
| this.updateGppCookies(e); | |
| else { | |
| var o = this.getCookiesChunk(e) | |
| , n = Object.keys(o).length; | |
| this.writeGppCookies(n, o) | |
| } | |
| } | |
| , | |
| Mi.prototype.readGppCookies = function() { | |
| var e = Number(uo.readCookieParam(pt.OPTANON_CONSENT, Be.ChunkCountParam) || 0); | |
| if (e <= 1) | |
| return 0 === e ? "" : uo.getCookie(pt.GPP_CONSENT); | |
| for (var t = "", o = 1; o <= e; o++) { | |
| var n = uo.getCookie("" + Be.Name + o); | |
| t = t.concat(n) | |
| } | |
| return t | |
| } | |
| , | |
| Mi.prototype.initGppSDK = function() { | |
| var e, t, o = Number.parseInt((null === (e = lo.moduleInitializer.GppData) || void 0 === e ? void 0 : e.cmpId) || "28"); | |
| return null === (t = this.gppSDKRef) || void 0 === t ? void 0 : t.gppCmpApi(o, 1) | |
| } | |
| , | |
| Mi.prototype.setOrUpdateGppSectionString = function(n, e) { | |
| var r = this | |
| , t = this.gppSection.getSectionFieldsValues(); | |
| Object.entries(t).forEach(function(e) { | |
| var t = e[0] | |
| , o = e[1]; | |
| r.cmpApi.setFieldValue(n, t, o) | |
| }), | |
| this.cmpApi.fireSectionChange(n), | |
| this.setGppCookies(this.cmpApi.getGppString(), e) | |
| } | |
| , | |
| Mi.prototype.getCurrentSectionName = function() { | |
| var o = vo.getRegionRule() | |
| , e = "" | |
| , t = Object.entries(qe).find(function(e) { | |
| var t = e[0]; | |
| return e[1], | |
| t === o.Type | |
| }); | |
| return null != t && t.length && 1 < t.length && (e = t[1]), | |
| e | |
| } | |
| , | |
| Mi.prototype.getCurrentSectionId = function() { | |
| var o = vo.getRegionRule() | |
| , e = 0 | |
| , t = Object.entries(Ue).find(function(e) { | |
| var t = e[0]; | |
| return e[1], | |
| t === o.Type | |
| }); | |
| return null != t && t.length && 1 < t.length && (e = t[1]), | |
| e | |
| } | |
| , | |
| Mi.prototype.getSectionInstance = function() { | |
| switch (vo.getRegionRule().Type) { | |
| case Ee.CPRA: | |
| case Ee.CCPA: | |
| return new Ti; | |
| case Ee.CDPA: | |
| return new Gi; | |
| case Ee.USNATIONAL: | |
| return new Hi | |
| } | |
| } | |
| , | |
| Mi.prototype.updateGppCookies = function(e) { | |
| var t = this.getCookiesChunk(e) | |
| , o = Object.keys(t).length | |
| , n = Number(uo.readCookieParam(pt.OPTANON_CONSENT, Be.ChunkCountParam) || 0); | |
| if (this.writeGppCookies(o, t), | |
| o < n) | |
| for (var r = o + 1; r <= n; r++) | |
| uo.setCookie("" + Be.Name + r, "", 0, !0) | |
| } | |
| , | |
| Mi.prototype.getCookiesChunk = function(e) { | |
| for (var t = {}, o = !1, n = e, r = 1; n.length; ) { | |
| var i = void 0; | |
| if (n.length > Be.ChunkSize ? i = Be.ChunkSize : (i = n.length, | |
| o = 1 === r), | |
| o) | |
| t[Be.Name] = n, | |
| n = ""; | |
| else { | |
| var s = n.slice(0, i); | |
| n = n.slice(i, n.length), | |
| t["" + Be.Name + r] = s | |
| } | |
| r++ | |
| } | |
| return t | |
| } | |
| , | |
| Mi.prototype.writeGppCookies = function(e, t) { | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, Be.ChunkCountParam, e); | |
| for (var o = 0, n = Object.entries(t); o < n.length; o++) { | |
| var r = n[o] | |
| , i = r[0] | |
| , s = r[1]; | |
| uo.setCookie(i, s, ko.ReconsentFrequencyDays) | |
| } | |
| } | |
| , | |
| Mi.prototype.getSupportedAPIs = function() { | |
| return Object.values(qe).filter(function(e, t, o) { | |
| return o.indexOf(e) === t | |
| }) | |
| } | |
| , | |
| Mi.prototype.getApplicableSections = function() { | |
| return [this.getCurrentSectionId()] | |
| } | |
| , | |
| Mi); | |
| function Mi() { | |
| var e, n = this; | |
| this.gppSection = this.getSectionInstance(), | |
| this.gppSDKRef = null === (e = window.otIabModule) || void 0 === e ? void 0 : e.gppSdkRef, | |
| this.cmpApi = this.initGppSDK(), | |
| this.updateGppConsentString = function() { | |
| var e, t; | |
| n.cmpApi.getCmpDisplayStatus() === (null === (e = n.gppSDKRef) || void 0 === e ? void 0 : e.displayStatus.VISIBLE) && n.cmpApi.setCmpDisplayStatus(null === (t = n.gppSDKRef) || void 0 === t ? void 0 : t.displayStatus.HIDDEN); | |
| var o = n.getCurrentSectionName(); | |
| n.setOrUpdateGppSectionString(o, !0) | |
| } | |
| } | |
| var Ui, ji = (zi.prototype.showBanner = function() { | |
| var e = vo.bannerName | |
| , t = To(this.El); | |
| bo.skipAddingHTML && "none" === getComputedStyle(t.el[0]).getPropertyValue("display") && e !== Vt && e !== Et && e !== Ot ? t.css("display: block;") : ko.BAnimation === pe.SlideIn ? this.slideInAnimation(t, e) : ko.BAnimation === pe.FadeIn && t.addClass("ot-fade-in") | |
| } | |
| , | |
| zi.prototype.insertAlertHtml = function() { | |
| function e(e) { | |
| return t.querySelector(e) | |
| } | |
| ko.IsGPPEnabled && Ri.setCmpDisplayStatus("visible"); | |
| var t = document.createDocumentFragment() | |
| , o = document.createElement("div"); | |
| To(o).html(vn.bannerGroup.html); | |
| var n = o.querySelector("#onetrust-banner-sdk"); | |
| this.setAriaModalForBanner(n), | |
| lo.fp.CookieV2SSR ? (To(t).append(n), | |
| this._rejectBtn = e("#onetrust-reject-all-handler"), | |
| this._acceptBtn = e("#onetrust-accept-btn-handler")) : this.insertHtmlForNonSSRFlow(n, t, e, function(e) { | |
| return t.querySelectorAll(e) | |
| }), | |
| this.ssrAndNonSSRCommonHtml(t) | |
| } | |
| , | |
| zi.prototype.insertHtmlForNonSSRFlow = function(e, t, o, n) { | |
| var r = vo.bannerName; | |
| if (vn.bannerGroup) { | |
| ko.BannerRelativeFontSizesToggle && To(e).addClass("otRelFont"), | |
| (ko.BInitialFocus || ko.BInitialFocusLinkAndButton) && (e.setAttribute("tabindex", "0"), | |
| e.setAttribute("role", "main")), | |
| ko.useRTL && To(e).attr("dir", "rtl"), | |
| "IAB2" === vo.iabType && ko.BannerDPDDescription.length && To(e).addClass("ot-iab-2"); | |
| var i = ko.BannerPosition; | |
| i && ("bottom-left" === i ? To(e).addClass("ot-bottom-left") : "bottom-right" === i ? To(e).addClass("ot-bottom-right") : To(e).addClass(i)), | |
| To(t).append(e), | |
| this.setBannerData(o); | |
| var s = this.setIAB2HtmlData(o); | |
| this.setAcceptAndRejectBtnHtml(o); | |
| var a = this.htmlForBannerButtons(e, o, n) | |
| , l = ko.showBannerCloseButton | |
| , c = ko.BCloseButtonType === he.Link; | |
| if (this.setWidthForFlatBanner(o, s, a), | |
| l && r === Bt && "IAB2" === vo.iabType && !c) { | |
| var d = o(".banner-close-btn-container"); | |
| d.parentElement.removeChild(d), | |
| To(e).el.insertAdjacentElement("beforeEnd", d), | |
| To(o("#onetrust-banner-sdk .ot-sdk-container")).addClass("ot-top-cntr") | |
| } | |
| this.setBannerOptions(o, s), | |
| this.setBannerLogo(e, o) | |
| } | |
| } | |
| , | |
| zi.prototype.setBannerOptions = function(e, t) { | |
| var o = this | |
| , n = vo.bannerName | |
| , r = this.isCmpEnabled() | |
| , i = [{ | |
| type: "purpose", | |
| titleKey: "BannerPurposeTitle", | |
| descriptionKey: "BannerPurposeDescription", | |
| identifier: "purpose-option" | |
| }, { | |
| type: "feature", | |
| titleKey: "BannerFeatureTitle", | |
| descriptionKey: "BannerFeatureDescription", | |
| identifier: "feature-option" | |
| }, { | |
| type: "information", | |
| titleKey: "BannerInformationTitle", | |
| descriptionKey: "BannerInformationDescription", | |
| identifier: "information-option" | |
| }] | |
| , s = To(e(this._bannerOptionsSelector)).el; | |
| r ? (n === wt ? this.setFloatingRoundedIconBannerCmpOptions(e, i) : (this.setCmpBannerOptions(e, i), | |
| n === xt && t.el.insertAdjacentElement("beforeend", s)), | |
| To(window).on("resize", function() { | |
| window.innerWidth <= 896 && o.setBannerOptionContent() | |
| })) : (vo.bannerName === Bt && (s = To(e(".banner-options-card")).el), | |
| ho.removeChild(s)) | |
| } | |
| , | |
| zi.prototype.setWidthForFlatBanner = function(e, t, o) { | |
| var n = vo.bannerName | |
| , r = ko.showBannerCloseButton | |
| , i = this.hasNoActionButtons(); | |
| n === Et && ("IAB2" === vo.iabType && (t.removeClass("ot-sdk-eight"), | |
| ko.showBannerAcceptButton && o.insertAdjacentElement("afterbegin", this._acceptBtn), | |
| ko.showBannerCookieSettings && o.insertAdjacentElement("beforeend", e("#onetrust-pc-btn-handler"))), | |
| r && !i && "IAB2" === vo.iabType ? t.addClass("ot-sdk-nine") : r && i ? t.addClass("ot-sdk-eleven") : !r && i ? t.addClass("ot-sdk-twelve") : r || i || "IAB2" !== vo.iabType || (t.addClass("ot-sdk-ten"), | |
| To(e(this._btnGrpParentSelector)).addClass("ot-sdk-two"), | |
| To(e(this._btnGrpParentSelector)).removeClass("ot-sdk-three"))) | |
| } | |
| , | |
| zi.prototype.hasNoActionButtons = function() { | |
| return !ko.showBannerAcceptButton && !ko.showBannerCookieSettings && !ko.BannerShowRejectAllButton | |
| } | |
| , | |
| zi.prototype.htmlForBannerButtons = function(e, t, o) { | |
| var n = vo.bannerName; | |
| this.hasNoActionButtons() && t(this._btnGrpParentSelector).parentElement.removeChild(t(this._btnGrpParentSelector)); | |
| var r = ko.showBannerCloseButton | |
| , i = To(o(".banner-close-button")).el | |
| , s = t("#onetrust-button-group") | |
| , a = ko.BCloseButtonType === he.Link; | |
| if (r) | |
| for (l = 0; l < i.length; l++) | |
| a ? (To(i[l]).html(ko.BContinueText), | |
| To(e).addClass("ot-close-btn-link"), | |
| To(i[l]).addClass("ot-close-link"), | |
| To(i[l]).removeClass("onetrust-close-btn-ui"), | |
| To(i[l]).removeClass("ot-close-icon"), | |
| n !== Bt && n !== wt || (s.insertAdjacentElement("afterbegin", t(".onetrust-close-btn-handler").parentElement), | |
| To(i[l]).attr("tabindex", "1"))) : (wo.setCloseIcon(t("#onetrust-banner-sdk .ot-close-icon")), | |
| To(i[l]).el.setAttribute(Jt, ko.BannerCloseButtonText || "Close Cookie Banner")); | |
| else { | |
| for (var l = 0; l < i.length; l++) | |
| To(i[l].parentElement).el.removeChild(i[l]); | |
| n !== Et && n !== wt || ho.removeChild(t("#onetrust-close-btn-container-mobile")) | |
| } | |
| return s | |
| } | |
| , | |
| zi.prototype.setAcceptAndRejectBtnHtml = function(e) { | |
| var t = vo.bannerName; | |
| ko.showBannerAcceptButton ? (this._acceptBtn = e("#onetrust-accept-btn-handler"), | |
| To(this._acceptBtn).html(ko.AlertAllowCookiesText), | |
| t !== Ot || ko.showBannerCookieSettings || ko.BannerShowRejectAllButton || To(this._acceptBtn.parentElement).addClass("accept-btn-only")) : ho.removeChild(e("#onetrust-accept-btn-handler")), | |
| ko.BannerShowRejectAllButton && ko.BannerRejectAllButtonText.trim() ? (this._rejectBtn = e("#onetrust-reject-all-handler"), | |
| To(this._rejectBtn).html(ko.BannerRejectAllButtonText), | |
| e(this._btnGrpParentSelector).classList.add("has-reject-all-button")) : (ho.removeChild(e("#onetrust-reject-all-handler")), | |
| ho.removeChild(e("#onetrust-reject-btn-container"))); | |
| var o = To(e("#onetrust-pc-btn-handler")); | |
| ko.showBannerCookieSettings ? (o.html(ko.AlertMoreInfoText), | |
| ko.BannerSettingsButtonDisplayLink && o.addClass("cookie-setting-link"), | |
| t !== Ot || ko.showBannerAcceptButton || o.addClass("cookie-settings-btn-only")) : ho.removeChild(o.el) | |
| } | |
| , | |
| zi.prototype.setIAB2HtmlData = function(e) { | |
| var t = vo.bannerName; | |
| "IAB2" === ko.IabType && ko.BannerDPDDescription.length && t !== xt ? (To(e(".ot-dpd-container .ot-dpd-title")).html(ko.BannerDPDTitle), | |
| To(e(".ot-dpd-container .ot-dpd-desc")).html(ko.BannerDPDDescription.join(", "))) : ho.removeChild(e(".ot-dpd-container")); | |
| var o = To(e(this._otGrpContainerSelector)); | |
| "IAB2" === vo.iabType && ko.BannerAdditionalDescription.trim() && this.setAdditionalDesc(e); | |
| var n = "IAB2" === ko.IabType && ko.BannerDPDDescription.length ? t !== xt ? To(e(".ot-dpd-container .ot-dpd-desc")) : o : To(e("#onetrust-policy-text")); | |
| return ko.IsIabEnabled && ko.BannerIABPartnersLink && n.append('<button class="ot-link-btn onetrust-vendors-list-handler">\n ' + ko.BannerIABPartnersLink + "\n </button>"), | |
| o | |
| } | |
| , | |
| zi.prototype.setBannerData = function(e) { | |
| if (ko.BannerTitle ? (To(e("#onetrust-policy-title")).html(ko.BannerTitle), | |
| To(e('[role="alertdialog"]')).attr(Jt, ko.BannerTitle)) : (ho.removeChild(e("#onetrust-policy-title")), | |
| To(e("#onetrust-banner-sdk")).addClass("ot-wo-title"), | |
| To(e('[role="alertdialog"]')).attr(Jt, ko.AriaPrivacy)), | |
| !ko.IsIabEnabled && bo.showGeneralVendors && ko.BannerNonIABVendorListText) { | |
| var t = document.createElement("div"); | |
| t.setAttribute("id", "ot-gv-link-ctnr"), | |
| To(t).html('<button class="ot-link-btn ot-gv-list-handler">' + ko.BannerNonIABVendorListText + "</button>"), | |
| To(e("#onetrust-policy")).el.appendChild(t) | |
| } | |
| To(e("#onetrust-policy-text")).html(ko.AlertNoticeText), | |
| ko.BShowPolicyLink && ko.BShowImprintLink && To(e(this.cookiePolicyLinkSelector)).length ? (To(e("#onetrust-policy-text a:first-child")).attr(Jt, ko.BCookiePolicyLinkScreenReader), | |
| To(e("#onetrust-policy-text a:last-child")).attr(Jt, ko.BImprintLinkScreenReader)) : ko.BShowPolicyLink && To(e(this.cookiePolicyLinkSelector)).length ? To(e(this.cookiePolicyLinkSelector)).attr(Jt, ko.BCookiePolicyLinkScreenReader) : ko.BShowImprintLink && To(e(this.cookiePolicyLinkSelector)).length && To(e(this.cookiePolicyLinkSelector)).attr(Jt, ko.BImprintLinkScreenReader) | |
| } | |
| , | |
| zi.prototype.isCmpEnabled = function() { | |
| return ko.BannerPurposeTitle || ko.BannerPurposeDescription || ko.BannerFeatureTitle || ko.BannerFeatureDescription || ko.BannerInformationTitle || ko.BannerInformationDescription | |
| } | |
| , | |
| zi.prototype.ssrAndNonSSRCommonHtml = function(t) { | |
| function e(e) { | |
| return t.querySelector(e) | |
| } | |
| var o, n = this, r = this.isCmpEnabled(); | |
| this.setOptOutSignalNotification(e), | |
| ko.BRegionAriaLabel && (To(e("#onetrust-banner-sdk")).attr("role", "region"), | |
| To(e("#onetrust-banner-sdk")).attr(Jt, ko.BRegionAriaLabel)), | |
| vo.bannerName === xt && lo.moduleInitializer.IsSuppressPC && (bo.dataGroupState = ko.Groups.filter(function(e) { | |
| return e.Order | |
| })), | |
| vo.bannerName === xt && (this._fourBtns = ko.BannerShowRejectAllButton && ko.showBannerAcceptButton && ko.showBannerCookieSettings && ko.BShowSaveBtn, | |
| this._saveBtn = e(".ot-bnr-save-handler"), | |
| this._settingsBtn = e("#onetrust-pc-btn-handler"), | |
| this._btnsCntr = e(".banner-actions-container"), | |
| ko.BShowSaveBtn ? To(this._saveBtn).html(ko.BSaveBtnTxt) : (ho.removeChild(this._saveBtn), | |
| this._saveBtn = null), | |
| wo.insertFooterLogo((o = ".ot-bnr-footer-logo a", | |
| t.querySelectorAll(o))), | |
| this._descriptCntr = e(".ot-cat-lst"), | |
| this.setBannerBtn(), | |
| window.addEventListener("resize", function() { | |
| n.setBannerBtn() | |
| }), | |
| this._fourBtns && To(e("#onetrust-banner-sdk")).addClass("has-reject-all-button"), | |
| this.insertGrps(e)); | |
| var i = document.createElement("div"); | |
| To(i).append(t), | |
| vo.ignoreInjectingHtmlCss || (To("#onetrust-consent-sdk").append(i.firstChild), | |
| r && this.setBannerOptionContent()), | |
| this.setBnrBtnGrpAlignment() | |
| } | |
| , | |
| zi.prototype.setAriaModalForBanner = function(e) { | |
| ko.ForceConsent && e.querySelector('[role="alertdialog"]').setAttribute("aria-modal", "true") | |
| } | |
| , | |
| zi.prototype.setBnrBtnGrpAlignment = function() { | |
| var e = To(this._otGrpContainerSelector).el | |
| , t = To(this._btnGrpParentSelector).el; | |
| (e.length && e[0].clientHeight) < (t.length && t[0].clientHeight) ? To("#onetrust-banner-sdk").removeClass("vertical-align-content") : To("#onetrust-banner-sdk").addClass("vertical-align-content"); | |
| var o = document.querySelector("#onetrust-button-group-parent button:first-of-type") | |
| , n = document.querySelector("#onetrust-button-group-parent button:last-of-type"); | |
| n && o && 1 < Math.abs(n.offsetTop - o.offsetTop) && To("#onetrust-banner-sdk").addClass("ot-buttons-fw") | |
| } | |
| , | |
| zi.prototype.slideInAnimation = function(e, t) { | |
| t === Et ? "bottom" === ko.BannerPosition ? (e.css("bottom: -99px;"), | |
| e.animate({ | |
| bottom: "0px" | |
| }, 1e3), | |
| bo.bnrAnimationInProg = !0, | |
| setTimeout(function() { | |
| e.css("bottom: 0px;"), | |
| bo.bnrAnimationInProg = !1 | |
| }, 1e3)) : (e.css("top: -99px; bottom: auto;"), | |
| vo.pagePushedDown && !Ar.checkIsBrowserIE11OrBelow() ? Ar.BannerPushDownHandler() : (e.animate({ | |
| top: "0" | |
| }, 1e3), | |
| bo.bnrAnimationInProg = !0, | |
| setTimeout(function() { | |
| e.css("top: 0px; bottom: auto;"), | |
| bo.bnrAnimationInProg = !1 | |
| }, 1e3))) : t !== Vt && t !== Ot || (e.css("bottom: -300px;"), | |
| e.animate({ | |
| bottom: "1em" | |
| }, 2e3), | |
| bo.bnrAnimationInProg = !0, | |
| setTimeout(function() { | |
| e.css("bottom: 1rem;"), | |
| bo.bnrAnimationInProg = !1 | |
| }, 2e3)) | |
| } | |
| , | |
| zi.prototype.setBannerBtn = function() { | |
| window.innerWidth <= 600 ? (ho.insertElement(this._btnsCntr, this._settingsBtn, "afterbegin"), | |
| ho.insertElement(this._btnsCntr, this._saveBtn, "afterbegin"), | |
| ho.insertElement(this._btnsCntr, this._acceptBtn, "afterbegin"), | |
| ho.insertElement(this._btnsCntr, this._rejectBtn, "afterbegin")) : this._fourBtns ? (this._descriptCntr.insertAdjacentElement("beforeend", this._settingsBtn), | |
| this._acceptBtn.insertAdjacentElement("beforebegin", this._rejectBtn), | |
| this._btnsCntr.insertAdjacentElement("beforebegin", this._saveBtn)) : (ho.insertElement(this._btnsCntr, this._settingsBtn, "beforebegin"), | |
| ho.insertElement(this._btnsCntr, this._saveBtn, this._settingsBtn ? "afterbegin" : "beforebegin"), | |
| ho.insertElement(this._btnsCntr, this._rejectBtn, "beforeend"), | |
| ho.insertElement(this._btnsCntr, this._acceptBtn, "beforeend")) | |
| } | |
| , | |
| zi.prototype.setCmpBannerOptions = function(i, e) { | |
| var s = To(i("#banner-options .banner-option")).el.cloneNode(!0); | |
| To(i(this._bannerOptionsSelector)).html(""); | |
| var a = 1; | |
| e.forEach(function(e) { | |
| var t = s.cloneNode(!0) | |
| , o = ko[e.titleKey] | |
| , n = ko[e.descriptionKey]; | |
| if (o || n) { | |
| t.querySelector(".banner-option-header :first-child").innerHTML = o; | |
| var r = t.querySelector(".banner-option-details"); | |
| n ? (r.setAttribute("id", "option-details-" + a++), | |
| r.innerHTML = n) : r.parentElement.removeChild(r), | |
| To(i("#banner-options")).el.appendChild(t) | |
| } | |
| }) | |
| } | |
| , | |
| zi.prototype.setFloatingRoundedIconBannerCmpOptions = function(r, e) { | |
| var i = this | |
| , s = To(r("#banner-options button")).el.cloneNode(!0) | |
| , n = To(r(".banner-option-details")).el.cloneNode(!0); | |
| To(r(this._bannerOptionsSelector)).html(""), | |
| e.forEach(function(e) { | |
| var t = s.cloneNode(!0) | |
| , o = ko[e.titleKey] | |
| , n = ko[e.descriptionKey]; | |
| (o || n) && (t.setAttribute("id", e.identifier), | |
| t.querySelector(".banner-option-header :first-child").innerHTML = o, | |
| To(r(i._bannerOptionsSelector)).el.appendChild(t)) | |
| }), | |
| e.forEach(function(e) { | |
| var t = ko[e.descriptionKey]; | |
| if (t) { | |
| var o = n.cloneNode(!0); | |
| o.innerHTML = t, | |
| o.classList.add(e.identifier), | |
| To(r(i._bannerOptionsSelector)).el.appendChild(o) | |
| } | |
| }) | |
| } | |
| , | |
| zi.prototype.setBannerOptionContent = function() { | |
| var t = this; | |
| vo.bannerName !== Et && vo.bannerName !== wt || setTimeout(function() { | |
| if (window.innerWidth < 769) { | |
| var e = To(t._bannerOptionsSelector).el[0]; | |
| To(t._otGrpContainerSelector).el[0].appendChild(e) | |
| } else | |
| e = To(t._bannerOptionsSelector).el[0], | |
| vo.bannerName === wt ? To(".banner-content").el[0].appendChild(e) : To("#onetrust-banner-sdk .ot-sdk-container").el[0].appendChild(e) | |
| }) | |
| } | |
| , | |
| zi.prototype.setAdditionalDesc = function(e) { | |
| var t = ko.BannerAdditionalDescPlacement | |
| , o = document.createElement("span"); | |
| o.classList.add("ot-b-addl-desc"), | |
| o.innerHTML = ko.BannerAdditionalDescription; | |
| var n = e("#onetrust-policy-text"); | |
| if (t === D.AfterTitle) | |
| n.insertAdjacentElement("beforeBegin", o); | |
| else if (t === D.AfterDescription) | |
| n.insertAdjacentElement("afterEnd", o); | |
| else if (t === D.AfterDPD) { | |
| var r = e(".ot-dpd-container .ot-dpd-desc"); | |
| ko.ChoicesBanner && (r = e(this._otGrpContainerSelector)), | |
| r.insertAdjacentElement("beforeEnd", o) | |
| } | |
| } | |
| , | |
| zi.prototype.insertGrps = function(e) { | |
| var u = e(".ot-cat-item").cloneNode(!0); | |
| ho.removeChild(e(".ot-cat-item")), | |
| ko.BCategoryStyle === ce.Checkbox ? ho.removeChild(u.querySelector(".ot-tgl")) : (ho.removeChild(u.querySelector(".ot-chkbox")), | |
| To(u).addClass("ot-cat-bdr")); | |
| var h = e(".ot-cat-lst ul"); | |
| ko.Groups.forEach(function(e) { | |
| var t = u.cloneNode(!0) | |
| , o = t.querySelector(".ot-tgl,.ot-chkbox") | |
| , n = e.GroupName | |
| , r = e.CustomGroupId | |
| , i = "ot-bnr-grp-id-" + r | |
| , s = "ot-bnr-hdr-id-" + r | |
| , a = -1 !== so.indexOf(e.Type) | |
| , l = Mo.getGrpStatus(e).toLowerCase() === ft || a | |
| , c = tr.isGroupActive(e) || a; | |
| To(o.querySelector("label")).attr("for", i), | |
| To(o.querySelector(".ot-label-txt")).html(e.GroupName); | |
| var d = o.querySelector("input"); | |
| l && (ko.BCategoryStyle === ce.Toggle ? (ho.removeChild(o), | |
| t.insertAdjacentElement("beforeend", To("<div class='ot-always-active'>" + ko.AlwaysActiveText + "</div>", "ce").el)) : To(d).attr("disabled", !0)), | |
| d.classList.add("category-switch-handler"), | |
| tr.setInputID(d, i, r, c, s); | |
| var p = t.querySelector("h4"); | |
| To(p).html(n), | |
| To(p).attr("id", s), | |
| To(h).append(t) | |
| }) | |
| } | |
| , | |
| zi.prototype.setBannerLogo = function(e, t) { | |
| if (lo.fp.CookieV2BannerLogo && ko.BnrLogo) { | |
| var o = t(yr) | |
| , n = "afterend"; | |
| vo.bannerName === wt && (o = t("#onetrust-cookie-btn"), | |
| n = "beforeend"); | |
| var r = wo.updateCorrectUrl(ko.BnrLogo); | |
| To(e).addClass("ot-bnr-w-logo"), | |
| To(o).el.innerHTML = "", | |
| o.insertAdjacentHTML(n, "<img class='ot-bnr-logo' src='" + r + "'\n title='" + ko.BnrLogoAria + "'\n alt='" + ko.BnrLogoAria + "'/>") | |
| } | |
| } | |
| , | |
| zi.prototype.setOptOutSignalNotification = function(e) { | |
| var t = !0 === navigator.globalPrivacyControl && vo.gpcForAGrpEnabled; | |
| ko.BShowOptOutSignal && (t || vo.previewMode) && wo.createOptOutSignalElement(e, !1) | |
| } | |
| , | |
| zi); | |
| function zi() { | |
| this.El = "#onetrust-banner-sdk", | |
| this._saveBtn = null, | |
| this._settingsBtn = null, | |
| this._acceptBtn = null, | |
| this._rejectBtn = null, | |
| this._descriptCntr = null, | |
| this._btnsCntr = null, | |
| this._fourBtns = !1, | |
| this._bannerOptionsSelector = "#banner-options", | |
| this._btnGrpParentSelector = "#onetrust-button-group-parent", | |
| this._otGrpContainerSelector = "#onetrust-group-container", | |
| this.cookiePolicyLinkSelector = "#onetrust-policy-text a" | |
| } | |
| var Ki, Wi = (Ji.prototype.setHeaderConfig = function() { | |
| Ki.setHeader(), | |
| Ki.setSearchInput(), | |
| Ki.setHeaderUIConsent(); | |
| var e = Ki.getGroupsForFilter(); | |
| Kr.setFilterListByGroup(e, !1) | |
| } | |
| , | |
| Ji.prototype.filterVendorByString = function(e) { | |
| Ki.searchQuery = e, | |
| Ki.filterVendorByGroupOrQuery() | |
| } | |
| , | |
| Ji.prototype.filterVendorByGroup = function(e) { | |
| Ki.filterGroups = e, | |
| Ki.filterVendorByGroupOrQuery() | |
| } | |
| , | |
| Ji.prototype.showVSList = function() { | |
| Ki.removeListeners(), | |
| Ki.showEmptyResults(!1, ""), | |
| Ki.clearUIElementsInMain(), | |
| Ki.addVSList(bo.getVendorsInDomain()) | |
| } | |
| , | |
| Ji.prototype.showEmptyResults = function(e, t) { | |
| if (e) | |
| this.setNoResultsContent(t); | |
| else { | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).removeClass("no-results"); | |
| var o = To("#onetrust-pc-sdk #no-results"); | |
| o.length && o.remove() | |
| } | |
| } | |
| , | |
| Ji.prototype.setNoResultsContent = function(e) { | |
| var t = To("#onetrust-pc-sdk #no-results").el[0]; | |
| if (!t) { | |
| var o = document.createElement("div") | |
| , n = document.createElement("p") | |
| , r = document.createTextNode(" " + ko.PCVendorNotFound + ".") | |
| , i = document.createElement("span"); | |
| return o.id = "no-results", | |
| i.id = "user-text", | |
| i.innerText = e, | |
| n.appendChild(i), | |
| n.appendChild(r), | |
| o.appendChild(n), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).addClass("no-results"), | |
| To("#vendor-search-handler").el[0].setAttribute("aria-describedby", o.id), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).append(o) | |
| } | |
| t.querySelector("span").innerText = e | |
| } | |
| , | |
| Ji.prototype.getGroupsFilter = function() { | |
| for (var e = [], t = 0, o = To("#onetrust-pc-sdk .category-filter-handler").el; t < o.length; t++) { | |
| var n = o[t] | |
| , r = n.getAttribute("data-purposeid"); | |
| n.checked && e.push(r) | |
| } | |
| return e | |
| } | |
| , | |
| Ji.prototype.cancelFilter = function() { | |
| for (var e = 0, t = To("#onetrust-pc-sdk .category-filter-handler").el; e < t.length; e++) { | |
| var o = t[e] | |
| , n = o.getAttribute("data-optanongroupid") | |
| , r = 0 <= bo.filterByCategories.indexOf(n); | |
| ho.setCheckedAttribute(null, o, r) | |
| } | |
| var i = Ki.getGroupsFilter(); | |
| Ki.filterVendorByGroup(i) | |
| } | |
| , | |
| Ji.prototype.clearFilter = function() { | |
| Ki.searchQuery = "", | |
| Ki.filterGroups = [] | |
| } | |
| , | |
| Ji.prototype.toggleVendors = function(r) { | |
| bo.getVendorsInDomain().forEach(function(e, t) { | |
| if (!Mo.isAlwaysActiveGroup(e.groupRef)) { | |
| var o = document.getElementById("ot-vendor-id-" + t) | |
| , n = document.getElementById("ot-vs-lst-id-" + t); | |
| pr.toggleVendorService(e.groupRef.CustomGroupId, t, r, o), | |
| pr.toggleVendorService(e.groupRef.CustomGroupId, t, r, n) | |
| } | |
| }) | |
| } | |
| , | |
| Ji.prototype.hideVendorList = function() { | |
| Ki.removeListeners(), | |
| Ki.clearUIElementsInMain() | |
| } | |
| , | |
| Ji.prototype.addListeners = function() { | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " .ot-vs-list .category-switch-handler").on("click", Ki.toggleVendorHandler), | |
| To("#onetrust-pc-sdk").on("click", ".ot-vs-list", Yi.onCategoryItemToggle.bind(this)) | |
| } | |
| , | |
| Ji.prototype.removeListeners = function() { | |
| document.querySelectorAll("#onetrust-pc-sdk .ot-vs-list .category-switch-handler").forEach(function(e) { | |
| return e.removeEventListener("click", Yi.toggleGroupORVendorHandler) | |
| }); | |
| var e = document.querySelector("#onetrust-pc-sdk .ot-vs-list"); | |
| null != e && e.removeEventListener("click", Yi.onCategoryItemToggle) | |
| } | |
| , | |
| Ji.prototype.toggleVendorHandler = function(e) { | |
| Yi.toggleVendorFromListHandler(e), | |
| Ki.checkAllowAllCheckedValue() | |
| } | |
| , | |
| Ji.prototype.filterVendorByGroupOrQuery = function() { | |
| var o = new Map; | |
| bo.getVendorsInDomain().forEach(function(e, t) { | |
| Ki.checkVendorConditions(e) && o.set(t, e) | |
| }), | |
| Ki.showEmptyResults(o.size <= 0, Ki.searchQuery), | |
| Ki.removeListeners(), | |
| Ki.clearUIElementsInMain(), | |
| Ki.addVSList(o) | |
| } | |
| , | |
| Ji.prototype.checkVendorConditions = function(e) { | |
| return !("" !== Ki.searchQuery && e.ServiceName.toLowerCase().indexOf(Ki.searchQuery.toLowerCase()) < 0 || 0 < Ki.filterGroups.length && Ki.filterGroups.indexOf(e.groupRef.CustomGroupId) < 0) | |
| } | |
| , | |
| Ji.prototype.addVSList = function(e) { | |
| var t = To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " .ot-sdk-column") | |
| , o = pr.getVendorListEle(e); | |
| t.append(o), | |
| Ki.addListeners() | |
| } | |
| , | |
| Ji.prototype.getGroupsForFilter = function() { | |
| var t = new Map; | |
| return bo.getVendorsInDomain().forEach(function(e) { | |
| t.has(e.groupRef.CustomGroupId) || t.set(e.groupRef.CustomGroupId, e.groupRef) | |
| }), | |
| Array.from(t.values()) | |
| } | |
| , | |
| Ji.prototype.clearUIElementsInMain = function() { | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " ul" + Go.P_Host_Cntr).html(""), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " ul" + Go.P_Host_Cntr).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " ul" + Go.P_Vendor_Container).html(""), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " ul" + Go.P_Vendor_Container).hide(); | |
| var e = To("#onetrust-pc-sdk " + Go.P_Vendor_Content + " .ot-vs-list"); | |
| e && e.length && e.remove() | |
| } | |
| , | |
| Ji.prototype.setHeader = function() { | |
| var e = ko.VendorServiceConfig.PCVSListTitle | |
| , t = document.querySelector("#onetrust-pc-sdk " + Go.P_Vendor_Title); | |
| t && (t.innerText = e) | |
| } | |
| , | |
| Ji.prototype.setSearchInput = function() { | |
| var e = ko.PCenterCookieListSearch | |
| , t = ko.PCenterCookieSearchAriaLabel | |
| , o = To("#onetrust-pc-sdk " + Go.P_Vendor_Search_Input); | |
| o.el[0].placeholder = e, | |
| o.attr("aria-label", t) | |
| } | |
| , | |
| Ji.prototype.setHeaderUIConsent = function() { | |
| var e; | |
| if (To("#onetrust-pc-sdk " + Go.P_Select_Cntr).addClass("ot-vnd-list-cnt"), | |
| To("#onetrust-pc-sdk " + Go.P_Select_Cntr + " .ot-sel-all").addClass("ot-vs-selc-all"), | |
| ko.PCCategoryStyle === ce.Toggle && (To("#onetrust-pc-sdk " + Go.P_Select_Cntr + " .ot-sel-all").addClass("ot-toggle-conf"), | |
| ko.PCAccordionStyle === J.Caret && To("#onetrust-pc-sdk " + Go.P_Select_Cntr + " .ot-sel-all").addClass("ot-caret-conf")), | |
| To("#onetrust-pc-sdk " + Go.P_Leg_Select_All).hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Host_Cntr).hide(), | |
| To(Go.P_Vendor_List + " #select-all-text-container").hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container).show(), | |
| To("#onetrust-pc-sdk " + Go.P_Select_Cntr).show(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Consent_El).show("inline-block"), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_List).removeClass(Go.P_Host_UI), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).removeClass(Go.P_Host_Cnt), | |
| !document.querySelector("#onetrust-pc-sdk .ot-sel-all-chkbox .sel-all-hdr")) { | |
| var t = document.createElement("h4"); | |
| t.className = "sel-all-hdr", | |
| t.textContent = (null === (e = ko.VendorServiceConfig) || void 0 === e ? void 0 : e.PCVSAllowAllText) || "PCVSAllowAllText"; | |
| var o = document.querySelector("#onetrust-pc-sdk .ot-sel-all-chkbox") | |
| , n = ko.PCCategoryStyle === ce.Checkbox ? "beforeend" : "afterbegin"; | |
| o.insertAdjacentElement(n, t) | |
| } | |
| Ki.checkAllowAllCheckedValue() | |
| } | |
| , | |
| Ji.prototype.checkAllowAllCheckedValue = function() { | |
| var t = !0; | |
| bo.vsConsent.forEach(function(e) { | |
| e || (t = !1) | |
| }); | |
| var e = document.getElementById("#select-all-vendor-groups-handler"); | |
| ho.setCheckedAttribute(null, e, t) | |
| } | |
| , | |
| Ji); | |
| function Ji() { | |
| this.searchQuery = "", | |
| this.filterGroups = [] | |
| } | |
| var Yi, Xi = (Qi.prototype.initCookieSettingHandlers = function() { | |
| To(document).on("click", ".optanon-show-settings, .optanon-toggle-display, .ot-sdk-show-settings, .ot-pc-handler", this.cookiesSettingsBoundListener) | |
| } | |
| , | |
| Qi.prototype.initFlgtCkStgBtnEventHandlers = function() { | |
| To(".ot-floating-button__open").on("click", Yi.floatingCookieSettingOpenBtnClicked), | |
| To(".ot-floating-button__close").on("click", Yi.floatingCookieSettingCloseBtnClicked) | |
| } | |
| , | |
| Qi.prototype.floatingCookieSettingOpenBtnClicked = function(e) { | |
| To(Yi.fltgBtnSltr).addClass("ot-pc-open"), | |
| ko.cookiePersistentLogo.includes("ot_guard_logo.svg") && To(Yi.fltgBtnFSltr).attr(Yt, "true"), | |
| To(Yi.fltgBtnBSltr).attr(Yt, ""), | |
| To(Yi.fltgBtnFrontBtn).el[0].setAttribute(Yt, !0), | |
| To(Yi.fltgBtnBackBtn).el[0].setAttribute(Jt, ko.AriaClosePreferences), | |
| To(Yi.fltgBtnBackBtn).el[0].setAttribute(Yt, !1), | |
| Cn.triggerGoogleAnalyticsEvent(mn, Bn), | |
| Yi.showCookieSettingsHandler(e) | |
| } | |
| , | |
| Qi.prototype.floatingCookieSettingCloseBtnClicked = function(e) { | |
| To(Yi.fltgBtnFrontBtn).el[0].setAttribute(Jt, ko.AriaOpenPreferences), | |
| To(Yi.fltgBtnFrontBtn).el[0].setAttribute(Yt, !1), | |
| To(Yi.fltgBtnBackBtn).el[0].setAttribute(Yt, !0), | |
| e && (Cn.triggerGoogleAnalyticsEvent(mn, wn), | |
| Yi.hideCookieSettingsHandler(e)) | |
| } | |
| , | |
| Qi.prototype.initialiseLegIntBtnHandlers = function() { | |
| To(document).on("click", ".ot-obj-leg-btn-handler", Yi.onLegIntButtonClick), | |
| To(document).on("click", ".ot-remove-objection-handler", Yi.onLegIntButtonClick) | |
| } | |
| , | |
| Qi.prototype.initialiseAddtlVenHandler = function() { | |
| To("#onetrust-pc-sdk #ot-addtl-venlst").on("click", Yi.selectVendorsGroupHandler), | |
| To("#onetrust-pc-sdk #ot-selall-adtlven-handler").on("click", Yi.selAllAdtlVenHandler) | |
| } | |
| , | |
| Qi.prototype.initializeGenVenHandlers = function() { | |
| To("#onetrust-pc-sdk #ot-gn-venlst .ot-gnven-chkbox-handler").on("click", Yi.genVendorToggled), | |
| To("#onetrust-pc-sdk #ot-gn-venlst .ot-gv-venbox").on("click", Yi.genVendorDetails), | |
| To("#onetrust-pc-sdk #ot-selall-gnven-handler").on("click", Yi.selectAllGenVenHandler) | |
| } | |
| , | |
| Qi.prototype.initialiseConsentNoticeHandlers = function() { | |
| var e = this | |
| , t = 37 | |
| , o = 39; | |
| vo.pcName === Rt && Yi.categoryMenuSwitchHandler(), | |
| To("#onetrust-pc-sdk .onetrust-close-btn-handler").on("click", Yi.bannerCloseButtonHandler), | |
| To("#onetrust-pc-sdk #accept-recommended-btn-handler").on("click", $i.allowAllEventHandler.bind(this, !0)), | |
| To("#onetrust-pc-sdk .ot-pc-refuse-all-handler").on("click", $i.rejectAllEventHandler.bind(this, !0)), | |
| To("#onetrust-pc-sdk #close-pc-btn-handler").on("click", Yi.hideCookieSettingsHandler), | |
| Yi.closePCWhenEscPressed(), | |
| To("#onetrust-pc-sdk #vendor-close-pc-btn-handler").on("click", Yi.hideCookieSettingsHandler), | |
| To("#onetrust-pc-sdk .category-switch-handler").on("click", Yi.toggleGroupORVendorHandler), | |
| To("#onetrust-pc-sdk .cookie-subgroup-handler").on("click", Yi.toggleSubCategory), | |
| To("#onetrust-pc-sdk .category-menu-switch-handler").on("keydown", function(e) { | |
| vo.pcName === Rt && (e.keyCode !== t && e.keyCode !== o || (ko.PCTemplateUpgrade ? Yi.changeSelectedTabV2(e) : Yi.changeSelectedTab(e))) | |
| }), | |
| To("#onetrust-pc-sdk").on("click", Go.P_Category_Item + " > input:first-child," + Go.P_Category_Item + " > button:first-child", Yi.onCategoryItemToggle.bind(this)), | |
| (ko.showCookieList || bo.showGeneralVendors) && (To("#onetrust-pc-sdk .category-host-list-handler").on("click", function(e) { | |
| bo.showGeneralVendors && ko.showCookieList ? bo.cookieListType = Z.HostAndGenVen : bo.showGeneralVendors ? bo.cookieListType = Z.GenVen : bo.cookieListType = Z.Host, | |
| Yi.pcLinkSource = e.target, | |
| Yi.loadCookieList(e.target) | |
| }), | |
| wo.isOptOutEnabled() ? (To("#onetrust-pc-sdk #select-all-hosts-groups-handler").on("click", Yi.selectAllHostsGroupsHandler), | |
| To("#onetrust-pc-sdk " + Go.P_Host_Cntr).on("click", Yi.selectHostsGroupHandler)) : To("#onetrust-pc-sdk " + Go.P_Host_Cntr).on("click", Yi.toggleAccordionStatus)), | |
| Yi.addListenerWhenIabEnabled(), | |
| Yi.addEventListenerWhenIsHostOrVendorsAreEnabled(), | |
| Yi.adddListenerWhenNoBanner(), | |
| To("#onetrust-pc-sdk .ot-gv-list-handler").on("click", function(t) { | |
| return u(e, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| return bo.cookieListType = Z.GenVen, | |
| Yi.loadCookieList(t.target), | |
| [2] | |
| }) | |
| }) | |
| }), | |
| Yi.addListenerWhenVendorServices() | |
| } | |
| , | |
| Qi.prototype.closePCWhenEscPressed = function() { | |
| To(document).on("keydown", function(e) { | |
| var t = document.getElementById(Yi.pcSDKSelector) | |
| , o = "none" !== window.getComputedStyle(t).display; | |
| if (27 === e.keyCode && t && o) { | |
| var n = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal).el[0]; | |
| "block" === n.style.display || "0px" < n.style.width ? (Yi.closeFilter(), | |
| To("#onetrust-pc-sdk #filter-btn-handler").focus()) : ko.NoBanner && !ko.ShowPreferenceCenterCloseButton || Yi.hideCookieSettingsHandler(), | |
| Yi.confirmPC() | |
| } | |
| (o && 32 === e.keyCode || "Space" === e.code || 13 === e.keyCode || "Enter" === e.code) && wo.findUserType(e) | |
| }) | |
| } | |
| , | |
| Qi.prototype.addEventListenerWhenIsHostOrVendorsAreEnabled = function() { | |
| if (ko.IsIabEnabled || ko.showCookieList || bo.showGeneralVendors || bo.showVendorService) { | |
| To(document).on("click", ".back-btn-handler", Yi.backBtnHandler), | |
| Yi.addListenerSearchKeyEvent(), | |
| To("#onetrust-pc-sdk #filter-btn-handler").on("click", Yi.toggleVendorFiltersHandler), | |
| To("#onetrust-pc-sdk #filter-apply-handler").on("click", Yi.applyFilterHandler), | |
| To("#onetrust-pc-sdk " + Go.P_Fltr_Modal).on("click", Yi.tglFltrOptionHandler), | |
| !lo.isV2Template && vo.pcName !== Ft || To("#onetrust-pc-sdk #filter-cancel-handler").on("click", Yi.cancelFilterHandler), | |
| !lo.isV2Template && vo.pcName === Ft || To("#onetrust-pc-sdk #clear-filters-handler").on("click", Yi.clearFiltersHandler), | |
| lo.isV2Template ? To("#onetrust-pc-sdk #filter-cancel-handler").on("keydown", function(e) { | |
| 9 !== e.keyCode && "tab" !== e.code || e.shiftKey || (e.preventDefault(), | |
| To("#onetrust-pc-sdk #clear-filters-handler").el[0].focus()) | |
| }) : To("#onetrust-pc-sdk #filter-apply-handler").on("keydown", function(e) { | |
| 9 !== e.keyCode && "tab" !== e.code || e.shiftKey || (e.preventDefault(), | |
| To("#onetrust-pc-sdk .category-filter-handler").el[0].focus()) | |
| }); | |
| var e = To("#onetrust-pc-sdk .category-filter-handler").el; | |
| To(e[0]).on("keydown", function(e) { | |
| 9 !== e.keyCode && "tab" !== e.code || !e.shiftKey || (e.preventDefault(), | |
| To("#onetrust-pc-sdk #filter-apply-handler").el[0].focus()) | |
| }) | |
| } | |
| } | |
| , | |
| Qi.prototype.addListenerSearchKeyEvent = function() { | |
| To(Yi.VENDOR_SEARCH_SELECTOR).on("keyup", function(e) { | |
| var t = e.target.value.trim(); | |
| Yi.currentSearchInput !== t && (bo.showVendorService ? Ki.filterVendorByString(t) : Yi.isCookieList ? (ar.searchHostList(t), | |
| bo.showTrackingTech && Yi.addEventAdditionalTechnologies()) : (ar.loadVendorList(t, []), | |
| ko.UseGoogleVendors && ar.searchVendors(ar.googleSearchSelectors, bo.addtlVendorsList, ie.GoogleVendor, t), | |
| bo.showGeneralVendors && ko.GeneralVendors.length && ar.searchVendors(ar.genVendorSearchSelectors, ko.GeneralVendors, ie.GeneralVendor, t)), | |
| ar.playSearchStatus(Yi.isCookieList), | |
| Yi.currentSearchInput = t) | |
| }) | |
| } | |
| , | |
| Qi.prototype.addListenerWhenIabEnabled = function() { | |
| ko.IsIabEnabled && (To("#onetrust-pc-sdk .category-vendors-list-handler").on("click", function(e) { | |
| Yi.pcLinkSource = e.target, | |
| Yi.showVendorsList(e.target) | |
| }), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container).on("click", Yi.selectVendorsGroupHandler), | |
| ko.UseGoogleVendors || Yi.bindSelAllHandlers(), | |
| Yi.initialiseLegIntBtnHandlers()) | |
| } | |
| , | |
| Qi.prototype.adddListenerWhenNoBanner = function() { | |
| ko.NoBanner && (ko.OnClickCloseBanner && document.body.addEventListener("click", $i.bodyClickEvent), | |
| ko.ScrollCloseBanner && window.addEventListener("scroll", $i.scrollCloseBanner)) | |
| } | |
| , | |
| Qi.prototype.addListenerWhenVendorServices = function() { | |
| bo.showVendorService && (Yi.bindSelAllHandlers(), | |
| To("#onetrust-pc-sdk .onetrust-vendors-list-handler").on("click", function() { | |
| return Yi.showVendorsList(null, !0) | |
| })) | |
| } | |
| , | |
| Qi.prototype.bindSelAllHandlers = function() { | |
| To("#onetrust-pc-sdk #select-all-vendor-leg-handler").on("click", Yi.selectAllVendorsLegIntHandler), | |
| To("#onetrust-pc-sdk #select-all-vendor-groups-handler").on("click", Yi.SelectAllVendorConsentHandler) | |
| } | |
| , | |
| Qi.prototype.hideCookieSettingsHandler = function(e) { | |
| return void 0 === e && (e = window.event), | |
| Cn.triggerGoogleAnalyticsEvent(mn, An), | |
| Ar.removeAddedOTCssStyles(Pr.PC), | |
| Dr.hideConsentNoticeV2(), | |
| Yi.getResizeElement().removeEventListener("resize", Yi.setCenterLayoutFooterHeight), | |
| window.removeEventListener("resize", Yi.setCenterLayoutFooterHeight), | |
| !lo.isV2Template && vo.pcName !== Ft || Yi.closeFilter(!1), | |
| vo.pcName === Dt && To("#onetrust-pc-sdk " + Go.P_Content).removeClass("ot-hide"), | |
| $i.hideVendorsList(), | |
| vn.csBtnGroup && (To(Yi.fltgBtnSltr).removeClass("ot-pc-open"), | |
| Yi.floatingCookieSettingCloseBtnClicked(null)), | |
| Yi.confirmPC(e), | |
| $i.resetConsent(), | |
| !1 | |
| } | |
| , | |
| Qi.prototype.selectAllHostsGroupsHandler = function(e) { | |
| var t = e.target.checked | |
| , o = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).el[0] | |
| , n = o.classList.contains("line-through") | |
| , r = To("#onetrust-pc-sdk .host-checkbox-handler").el; | |
| ho.setCheckedAttribute("#select-all-hosts-groups-handler", null, t); | |
| for (var i = 0; i < r.length; i++) | |
| r[i].getAttribute("disabled") || ho.setCheckedAttribute(null, r[i], t); | |
| bo.optanonHostList.forEach(function(e) { | |
| ln.updateHostStatus(e, t) | |
| }), | |
| r.forEach(function(e) { | |
| rn.updateGenVendorStatus(e.getAttribute("hostId"), t) | |
| }), | |
| n && o.classList.remove("line-through") | |
| } | |
| , | |
| Qi.prototype.selectHostsGroupHandler = function(e) { | |
| Yi.toggleAccordionStatus(e); | |
| var t = e.target.getAttribute("hostId") | |
| , o = e.target.getAttribute("ckType") | |
| , n = e.target.checked; | |
| if (null !== t) { | |
| if (o === Q.GenVendor) { | |
| var r = ko.GeneralVendors.find(function(e) { | |
| return e.VendorCustomId === t | |
| }).Name; | |
| Cn.triggerGoogleAnalyticsEvent(mn, n ? Gn : Nn, r + ": VEN_" + t), | |
| rn.updateGenVendorStatus(t, n) | |
| } else { | |
| var i = ho.findIndex(bo.optanonHostList, function(e) { | |
| return e.HostId === t | |
| }) | |
| , s = bo.optanonHostList[i]; | |
| Yi.toggleHostStatus(s, n) | |
| } | |
| ho.setCheckedAttribute(null, e.target, n) | |
| } | |
| } | |
| , | |
| Qi.prototype.onCategoryItemToggle = function(e) { | |
| e.stopPropagation(); | |
| var t = e.target; | |
| "BUTTON" !== t.tagName && "INPUT" !== t.tagName || (vo.pcName === Dt && this.setPcListContainerHeight(), | |
| Yi.toggleAccordionStatus(e)) | |
| } | |
| , | |
| Qi.prototype.toggleAccordionStatus = function(e) { | |
| var t = e.target; | |
| if (t && t.getAttribute("aria-expanded")) { | |
| var o = "true" === t.getAttribute("aria-expanded") ? "false" : "true"; | |
| t.setAttribute("aria-expanded", o) | |
| } | |
| } | |
| , | |
| Qi.prototype.toggleHostStatus = function(e, t) { | |
| Cn.triggerGoogleAnalyticsEvent(mn, t ? Dn : Hn, e.HostName + ": H_" + e.HostId), | |
| ln.updateHostStatus(e, t) | |
| } | |
| , | |
| Qi.prototype.toggleBannerOptions = function(e) { | |
| To(".banner-option-input").each(function(e) { | |
| To(e).el.setAttribute("aria-expanded", !1) | |
| }), | |
| Yi.toggleAccordionStatus(e) | |
| } | |
| , | |
| Qi.prototype.bannerCloseButtonHandler = function(e) { | |
| if (To(document).off("keydown", Yi.shiftBannerFocus), | |
| e && e.target && e.target.className) { | |
| var t = e.target.className; | |
| if (-1 < t.indexOf("save-preference-btn-handler")) | |
| bo.bannerCloseSource = m.ConfirmChoiceButton, | |
| Cn.triggerGoogleAnalyticsEvent(mn, En); | |
| else if (-1 < t.indexOf("banner-close-button")) { | |
| bo.bannerCloseSource = m.BannerCloseButton; | |
| var o = Sn; | |
| -1 < t.indexOf("ot-close-link") && (o = Pn, | |
| bo.bannerCloseSource = m.ContinueWithoutAcceptingButton), | |
| Cn.triggerGoogleAnalyticsEvent(mn, o) | |
| } else | |
| -1 < t.indexOf("ot-bnr-save-handler") && (bo.bannerCloseSource = m.BannerSaveSettings, | |
| Cn.triggerGoogleAnalyticsEvent(mn, Tn)) | |
| } | |
| return Ar.removeAddedOTCssStyles(), | |
| $i.hideVendorsList(), | |
| $i.bannerCloseButtonHandler() | |
| } | |
| , | |
| Qi.prototype.onLegIntButtonClick = function(e) { | |
| if (e) { | |
| var t = e.currentTarget | |
| , o = "true" === t.parentElement.getAttribute("is-vendor") | |
| , n = t.parentElement.getAttribute("data-group-id") | |
| , r = !t.classList.contains("ot-leg-int-enabled"); | |
| if (o) | |
| Yi.onVendorToggle(n, R.LI); | |
| else { | |
| var i = Mo.getGroupById(n); | |
| i.Parent ? Yi.updateSubGroupToggles(i, r, !0) : Yi.updateGroupToggles(i, r, !0) | |
| } | |
| tr.updateLegIntBtnElement(t.parentElement, r) | |
| } | |
| } | |
| , | |
| Qi.prototype.updateGroupToggles = function(t, o, e) { | |
| ln.toggleGroupHosts(t, o), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(t, o), | |
| t.IsLegIntToggle = e, | |
| tr.toggleGrpStatus(t, o), | |
| t.SubGroups && t.SubGroups.length && (vo.bannerName === xt && lo.moduleInitializer.IsSuppressPC && t.SubGroups.length ? t.SubGroups.forEach(function(e) { | |
| e.IsLegIntToggle = t.IsLegIntToggle, | |
| tr.toggleGrpStatus(e, o), | |
| e.IsLegIntToggle = !1, | |
| ln.toggleGroupHosts(e, o), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(e, o), | |
| pr.setVendorStateByGroup(e, o) | |
| }) : tr.toogleAllSubGrpElements(t, o), | |
| t.SubGroups.forEach(function(e) { | |
| return pr.setVendorStateByGroup(e, o) | |
| })), | |
| pr.setVendorStateByGroup(t, o), | |
| this.allowAllVisible(tr.setAllowAllButton()), | |
| t.IsLegIntToggle = !1 | |
| } | |
| , | |
| Qi.prototype.updateSubGroupToggles = function(e, t, o) { | |
| ln.toggleGroupHosts(e, t), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(e, t); | |
| var n = Mo.getGroupById(e.Parent); | |
| e.IsLegIntToggle = o, | |
| n.IsLegIntToggle = e.IsLegIntToggle; | |
| var r = tr.isGroupActive(n); | |
| t ? (tr.toggleGrpStatus(e, !0), | |
| tr.isAllSubgroupsEnabled(n) && !r && (tr.toggleGrpStatus(n, !0), | |
| ln.toggleGroupHosts(n, t), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(n, t), | |
| tr.toggleGroupHtmlElement(e, e.Parent + (e.IsLegIntToggle ? "-leg-out" : ""), !0))) : (tr.toggleGrpStatus(e, !1), | |
| tr.isAllSubgroupsDisabled(n) && r ? (tr.toggleGrpStatus(n, !1), | |
| ln.toggleGroupHosts(n, t), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(n, t), | |
| tr.toggleGroupHtmlElement(e, e.Parent + (e.IsLegIntToggle ? "-leg-out" : ""), t)) : (tr.toggleGrpStatus(n, !1), | |
| ln.toggleGroupHosts(n, !1), | |
| bo.genVenOptOutEnabled && ln.toggleGroupGenVendors(n, t), | |
| tr.toggleGroupHtmlElement(e, e.Parent + (e.IsLegIntToggle ? "-leg-out" : ""), !1))), | |
| this.allowAllVisible(tr.setAllowAllButton()), | |
| e.IsLegIntToggle = !1, | |
| n.IsLegIntToggle = e.IsLegIntToggle | |
| } | |
| , | |
| Qi.prototype.hideCategoryContainer = function(e) { | |
| void 0 === e && (e = !1); | |
| var t = vo.pcName; | |
| this.isCookieList = e, | |
| ko.PCTemplateUpgrade ? To("#onetrust-pc-sdk " + Go.P_Content).addClass("ot-hide") : To("#onetrust-pc-sdk .ot-main-content").hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_List).removeClass("ot-hide"), | |
| t !== Ft && t !== Dt && To("#onetrust-pc-sdk #close-pc-btn-handler.main").hide(), | |
| t === Dt && co(To("#onetrust-pc-sdk").el[0], 'height: "";', !0), | |
| bo.showVendorService ? Ki.setHeaderConfig() : (e ? Yi.setCookieListTemplate() : Yi.setVendorListTemplate(), | |
| Kr.setFilterList(e)) | |
| } | |
| , | |
| Qi.prototype.setCookieListTemplate = function() { | |
| var e = lo.isV2Template; | |
| To(Go.P_Vendor_List + " #select-all-text-container").show("inline-block"), | |
| To("#onetrust-pc-sdk " + Go.P_Host_Cntr).show(), | |
| wo.isOptOutEnabled() ? To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).show("inline-block") : To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Leg_Header).hide(), | |
| e || To("#onetrust-pc-sdk " + Go.P_Leg_Select_All).hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Consent_El).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container).hide(), | |
| (ko.UseGoogleVendors || bo.showGeneralVendors) && To("#onetrust-pc-sdk .ot-acc-cntr").hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_List).addClass(Go.P_Host_UI), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).addClass(Go.P_Host_Cnt) | |
| } | |
| , | |
| Qi.prototype.setVendorListTemplate = function() { | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Container).show(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Consent_El).show("inline-block"), | |
| ko.UseGoogleVendors && To("#onetrust-pc-sdk .ot-acc-cntr").show(), | |
| vo.legIntSettings.PAllowLI && "IAB2" === vo.iabType ? (To("#onetrust-pc-sdk " + Go.P_Select_Cntr).show(lo.isV2Template ? void 0 : "inline-block"), | |
| To("#onetrust-pc-sdk " + Go.P_Leg_Select_All).show("inline-block"), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).show("inline-block"), | |
| To(Go.P_Vendor_List + " #select-all-text-container").hide(), | |
| vo.legIntSettings.PShowLegIntBtn ? (To("#onetrust-pc-sdk " + Go.P_Leg_Header).hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).hide()) : To("#onetrust-pc-sdk " + Go.P_Leg_Header).show()) : (To("#onetrust-pc-sdk " + Go.P_Select_Cntr).show(), | |
| To(Go.P_Vendor_List + " #select-all-text-container").show("inline-block"), | |
| To("#onetrust-pc-sdk " + Go.P_Leg_Select_All).hide(), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).hide()), | |
| To("#onetrust-pc-sdk #" + Go.P_Sel_All_Host_El).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Host_Cntr).hide(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_List).removeClass(Go.P_Host_UI), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_Content).removeClass(Go.P_Host_Cnt) | |
| } | |
| , | |
| Qi.prototype.showAllVendors = function(t) { | |
| return u(this, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return [4, Yi.fetchAndSetupPC()]; | |
| case 1: | |
| return e.sent(), | |
| Yi.showVendorsList(null, !0), | |
| bo.isPCVisible ? [3, 3] : [4, Yi.showCookieSettingsHandler(t)]; | |
| case 2: | |
| e.sent(), | |
| e.label = 3; | |
| case 3: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Qi.prototype.fetchAndSetupPC = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return lo.moduleInitializer.IsSuppressPC && 0 === To("#onetrust-pc-sdk").length ? [4, Eo.getPcContent()] : [3, 2]; | |
| case 1: | |
| t = e.sent(), | |
| vn.preferenceCenterGroup = { | |
| name: t.name, | |
| html: atob(t.html), | |
| css: t.css | |
| }, | |
| lo.isV2Template = ko.PCTemplateUpgrade && /otPcPanel|otPcCenter|otPcTab/.test(t.name), | |
| (o = document.getElementById("onetrust-style")).innerHTML += vn.preferenceCenterGroup.css, | |
| o.innerHTML += Yr.addCustomPreferenceCenterCSS(), | |
| gr.insertPcHtml(), | |
| Yi.initialiseConsentNoticeHandlers(), | |
| ko.IsIabEnabled && ar.InitializeVendorList(), | |
| e.label = 2; | |
| case 2: | |
| return 0 !== To("#onetrust-pc-sdk").length && ko.PCTemplateUpgrade && (n = document.querySelector("#onetrust-pc-sdk .ot-optout-signal"), | |
| gr.setOptOutSignalVisibility(n)), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Qi.prototype.setVendorContent = function() { | |
| To("#onetrust-pc-sdk #filter-count").text(bo.filterByIABCategories.length.toString()), | |
| ar.loadVendorList("", bo.filterByIABCategories), | |
| ko.UseGoogleVendors && (bo.vendorDomInit ? ar.resetAddtlVendors() : (ar.initGoogleVendors(), | |
| To("#onetrust-pc-sdk").on("click", ".ot-acc-cntr > button", Yi.toggleAccordionStatus.bind(this)))), | |
| bo.vendorDomInit || (bo.vendorDomInit = !0, | |
| Yi.initialiseLegIntBtnHandlers(), | |
| ko.UseGoogleVendors && (Yi.initialiseAddtlVenHandler(), | |
| Yi.bindSelAllHandlers())), | |
| bo.showGeneralVendors && !bo.genVendorDomInit && (bo.genVendorDomInit = !0, | |
| ar.initGenVendors(), | |
| Yi.initializeGenVenHandlers(), | |
| ko.UseGoogleVendors || (Yi.bindSelAllHandlers(), | |
| To("#onetrust-pc-sdk").on("click", ".ot-acc-cntr > button", Yi.toggleAccordionStatus.bind(this)))) | |
| } | |
| , | |
| Qi.prototype.addEventAdditionalTechnologies = function() { | |
| var e = document.querySelectorAll("#onetrust-pc-sdk .ot-acc-cntr.ot-add-tech > button"); | |
| 0 < e.length && (To(e).off("click", Yi.toggleAccordionStatus), | |
| To(e).on("click", Yi.toggleAccordionStatus)) | |
| } | |
| , | |
| Qi.prototype.showVendorsList = function(e, t) { | |
| if (void 0 === t && (t = !1), | |
| bo.cookieListType = null, | |
| Yi.hideCategoryContainer(!1), | |
| Ar.addOTCssPropertiesToBody(Pr.PC, {}), | |
| bo.showVendorService) | |
| Ki.showVSList(); | |
| else { | |
| if (!t) { | |
| var o = e.getAttribute("data-parent-id"); | |
| if (o) { | |
| var n = Mo.getGroupById(o); | |
| if (n) { | |
| var r = b(n.SubGroups, [n]).reduce(function(e, t) { | |
| return -1 < no.indexOf(t.Type) && e.push(t.CustomGroupId), | |
| e | |
| }, []); | |
| bo.filterByIABCategories = b(bo.filterByIABCategories, r) | |
| } | |
| } | |
| } | |
| Yi.setVendorContent(), | |
| rr.updateFilterSelection(!1) | |
| } | |
| return bo.pcLayer = O.VendorList, | |
| e && $n.setPCFocus($n.getPCElements()), | |
| this.setSearchInputFocus(), | |
| !1 | |
| } | |
| , | |
| Qi.prototype.loadCookieList = function(e) { | |
| bo.filterByCategories = [], | |
| Yi.hideCategoryContainer(!0); | |
| var t = e && e.getAttribute("data-parent-id"); | |
| if (t) { | |
| var o = Mo.getGroupById(t); | |
| bo.filterByCategories.push(t), | |
| o.SubGroups.length && o.SubGroups.forEach(function(e) { | |
| if (-1 === no.indexOf(e.Type)) { | |
| var t = e.CustomGroupId; | |
| bo.filterByCategories.indexOf(t) < 0 && bo.filterByCategories.push(t) | |
| } | |
| }) | |
| } | |
| return ar.loadHostList("", bo.filterByCategories), | |
| bo.showTrackingTech && Yi.addEventAdditionalTechnologies(), | |
| To("#onetrust-pc-sdk #filter-count").text(bo.filterByCategories.length.toString()), | |
| rr.updateFilterSelection(!0), | |
| bo.pcLayer = O.CookieList, | |
| $n.setPCFocus($n.getPCElements()), | |
| this.setSearchInputFocus(), | |
| !1 | |
| } | |
| , | |
| Qi.prototype.selectAllVendorsLegIntHandler = function(e) { | |
| var t = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Leg_El).el[0] | |
| , o = t.classList.contains("line-through") | |
| , n = To(Go.P_Vendor_Container + ' li:not([style="display: none;"]) .vendor-leg-checkbox-handler').el | |
| , r = e.target.checked | |
| , i = {}; | |
| bo.vendors.selectedLegIntVendors.map(function(e, t) { | |
| i[e.split(":")[0]] = t | |
| }); | |
| for (var s = 0; s < n.length; s++) { | |
| ho.setCheckedAttribute(null, n[s], r), | |
| ko.PCShowConsentLabels && (n[s].parentElement.querySelector(".ot-label-status").innerHTML = r ? ko.PCActiveText : ko.PCInactiveText); | |
| var a = n[s].getAttribute("leg-vendorid") | |
| , l = i[a]; | |
| void 0 === l && (l = a), | |
| bo.vendors.selectedLegIntVendors[l] = a + ":" + r | |
| } | |
| o && t.classList.remove("line-through"), | |
| ho.setCheckedAttribute(null, e.target, r) | |
| } | |
| , | |
| Qi.prototype.selAllAdtlVenHandler = function(e) { | |
| for (var t = To("#onetrust-pc-sdk #ot-selall-adtlvencntr").el[0], o = t.classList.contains("line-through"), n = To("#onetrust-pc-sdk .ot-addtlven-chkbox-handler").el, r = e.target.checked, i = 0; i < n.length; i++) | |
| ho.setCheckedAttribute(null, n[i], r), | |
| ko.PCShowConsentLabels && (n[i].parentElement.querySelector(".ot-label-status").innerHTML = r ? ko.PCActiveText : ko.PCInactiveText); | |
| r ? ko.UseGoogleVendors && Object.keys(bo.addtlVendorsList).forEach(function(e) { | |
| bo.addtlVendors.vendorSelected[e] = !0 | |
| }) : bo.addtlVendors.vendorSelected = {}, | |
| o && t.classList.remove("line-through") | |
| } | |
| , | |
| Qi.prototype.selectAllGenVenHandler = function(e) { | |
| var t = e.target.checked; | |
| Yi.selectAllHandler({ | |
| selAllEl: "#onetrust-pc-sdk #ot-selall-gnvencntr", | |
| vendorBoxes: "#onetrust-pc-sdk .ot-gnven-chkbox-handler" | |
| }, "genven", t) | |
| } | |
| , | |
| Qi.prototype.selectAllHandler = function(e, t, o) { | |
| for (var n = To(e.selAllEl).el[0], r = n.classList.contains("line-through"), i = To(e.vendorBoxes).el, s = 0; s < i.length; s++) | |
| "genven" === t && !o && bo.alwaysActiveGenVendors.includes(i[s].getAttribute("gn-vid")) ? (ho.setDisabledAttribute(null, i[s], !0), | |
| ho.setCheckedAttribute(null, i[s], !0)) : ho.setCheckedAttribute(null, i[s], o), | |
| ko.PCShowConsentLabels && (i[s].parentElement.querySelector(".ot-label-status").innerHTML = o ? ko.PCActiveText : ko.PCInactiveText); | |
| o ? "googleven" === t && ko.UseGoogleVendors ? Object.keys(bo.addtlVendorsList).forEach(function(e) { | |
| bo.addtlVendors.vendorSelected[e] = !0 | |
| }) : "genven" === t && bo.showGeneralVendors && ko.GeneralVendors.forEach(function(e) { | |
| bo.genVendorsConsent[e.VendorCustomId] = !0 | |
| }) : "googleven" === t ? bo.addtlVendors.vendorSelected = {} : (bo.genVendorsConsent = {}, | |
| bo.alwaysActiveGenVendors.forEach(function(e) { | |
| bo.genVendorsConsent[e] = !0 | |
| })), | |
| r && n.classList.remove("line-through") | |
| } | |
| , | |
| Qi.prototype.SelectAllVendorConsentHandler = function(e) { | |
| var t = e.target.checked; | |
| if (bo.showVendorService) | |
| Ki.toggleVendors(t); | |
| else { | |
| var o = To("#onetrust-pc-sdk #" + Go.P_Sel_All_Vendor_Consent_El).el[0] | |
| , n = o.classList.contains("line-through") | |
| , r = To(Go.P_Vendor_Container + ' li:not([style="display: none;"]) .vendor-checkbox-handler').el | |
| , i = {}; | |
| bo.vendors.selectedVendors.map(function(e, t) { | |
| i[e.split(":")[0]] = t | |
| }); | |
| for (var s = 0; s < r.length; s++) { | |
| ho.setCheckedAttribute(null, r[s], t), | |
| ko.PCShowConsentLabels && (r[s].parentElement.querySelector(".ot-label-status").innerHTML = t ? ko.PCActiveText : ko.PCInactiveText); | |
| var a = r[s].getAttribute("vendorid") | |
| , l = i[a]; | |
| void 0 === l && (l = a), | |
| bo.vendors.selectedVendors[l] = a + ":" + t | |
| } | |
| n && o.classList.remove("line-through") | |
| } | |
| ho.setCheckedAttribute(null, e.target, t) | |
| } | |
| , | |
| Qi.prototype.onVendorToggle = function(n, e) { | |
| var t = bo.vendors | |
| , o = bo.addtlVendors | |
| , r = e === R.LI ? t.selectedLegIntVendors : e === R.AddtlConsent ? [] : t.selectedVendors | |
| , i = !1 | |
| , s = Number(n); | |
| r.some(function(e, t) { | |
| var o = e.split(":"); | |
| if (o[0] === n) | |
| return s = t, | |
| i = "true" === o[1], | |
| !0 | |
| }), | |
| e === R.LI ? (Cn.triggerGoogleAnalyticsEvent(mn, i ? Un : jn, t.list.find(function(e) { | |
| return e.vendorId === n | |
| }).vendorName + ": IABV2_" + n), | |
| t.selectedLegIntVendors[s] = n + ":" + !i, | |
| vo.legIntSettings.PShowLegIntBtn || ar.vendorLegIntToggleEvent()) : e === R.AddtlConsent ? (o.vendorSelected[n] ? delete o.vendorSelected[n] : o.vendorSelected[n] = !0, | |
| ar.venAdtlSelAllTglEvent()) : (Cn.triggerGoogleAnalyticsEvent(mn, i ? Mn : qn, t.list.find(function(e) { | |
| return e.vendorId === n | |
| }).vendorName + ": IABV2_" + n), | |
| t.selectedVendors[s] = n + ":" + !i, | |
| ar.vendorsListEvent()) | |
| } | |
| , | |
| Qi.prototype.onVendorDisclosure = function(n) { | |
| return u(this, void 0, void 0, function() { | |
| var t, o; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return (t = bo.discVendors)[n].isFetched ? [3, 2] : (t[n].isFetched = !0, | |
| [4, Eo.getStorageDisclosure(t[n].disclosureUrl)]); | |
| case 1: | |
| o = e.sent(), | |
| ar.updateVendorDisclosure(n, o), | |
| e.label = 2; | |
| case 2: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Qi.prototype.tglFltrOptionHandler = function(e) { | |
| e && e.target.classList.contains("category-filter-handler") && ho.setCheckedAttribute(null, e.target, e.target.checked) | |
| } | |
| , | |
| Qi.prototype.selectVendorsGroupHandler = function(e) { | |
| Yi.toggleAccordionStatus(e); | |
| var t = e.target.getAttribute("leg-vendorid") | |
| , o = e.target.getAttribute("vendorid") | |
| , n = e.target.getAttribute("addtl-vid") | |
| , r = e.target.getAttribute("disc-vid"); | |
| t ? Yi.onVendorToggle(t, R.LI) : o ? Yi.onVendorToggle(o, R.Consent) : n && Yi.onVendorToggle(n, R.AddtlConsent), | |
| r && Yi.onVendorDisclosure(r), | |
| (t || o || n) && (ho.setCheckedAttribute(null, e.target, e.target.checked), | |
| ko.PCShowConsentLabels && (e.target.parentElement.querySelector(".ot-label-status").innerHTML = e.target.checked ? ko.PCActiveText : ko.PCInactiveText)) | |
| } | |
| , | |
| Qi.prototype.toggleVendorFiltersHandler = function() { | |
| var e = !1 | |
| , t = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal).el[0]; | |
| switch (vo.pcName) { | |
| case Ht: | |
| case Nt: | |
| case Dt: | |
| case Rt: | |
| if (e = "block" === t.style.display) | |
| Yi.closeFilter(); | |
| else { | |
| var o = To("#onetrust-pc-sdk " + Go.P_Triangle).el[0]; | |
| To(o).attr("style", "display: block;"), | |
| To(t).attr("style", "display: block;"); | |
| var n = Array.prototype.slice.call(t.querySelectorAll("[href], input, button")); | |
| $n.setPCFocus(n) | |
| } | |
| break; | |
| case Ft: | |
| 896 < window.innerWidth || 896 < window.screen.height ? co(t, "width: 400px;", !0) : co(t, "height: 100%; width: 100%;"), | |
| t.querySelector(".ot-checkbox input").focus(); | |
| break; | |
| default: | |
| return | |
| } | |
| lo.isV2Template && !e && (To("#onetrust-pc-sdk").addClass("ot-shw-fltr"), | |
| To("#onetrust-pc-sdk .ot-fltr-scrlcnt").el[0].scrollTop = 0) | |
| } | |
| , | |
| Qi.prototype.clearFiltersHandler = function() { | |
| Yi.setAriaLabelforButtonInFilter(ko.PCenterFilterClearedAria); | |
| for (var e = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal + " input").el, t = 0; t < e.length; t++) | |
| ho.setCheckedAttribute(null, e[t], !1); | |
| Yi.isCookieList ? bo.filterByCategories = [] : bo.filterByIABCategories = [] | |
| } | |
| , | |
| Qi.prototype.cancelFilterHandler = function() { | |
| bo.showVendorService ? Ki.cancelFilter() : Yi.isCookieList ? rr.cancelHostFilter() : ar.cancelVendorFilter(), | |
| Yi.closeFilter(), | |
| To("#onetrust-pc-sdk #filter-btn-handler").focus() | |
| } | |
| , | |
| Qi.prototype.applyFilterHandler = function() { | |
| var e; | |
| Yi.setAriaLabelforButtonInFilter(ko.PCenterFilterAppliedAria), | |
| bo.showVendorService ? (e = Ki.getGroupsFilter(), | |
| Ki.filterVendorByGroup(e)) : Yi.isCookieList ? (e = rr.updateHostFilterList(), | |
| ar.loadHostList("", e), | |
| bo.showTrackingTech && Yi.addEventAdditionalTechnologies()) : (e = ar.updateVendorFilterList(), | |
| ar.loadVendorList("", e)), | |
| To("#onetrust-pc-sdk #filter-count").text(String(e.length)), | |
| Yi.closeFilter(), | |
| To("#onetrust-pc-sdk #filter-btn-handler").focus() | |
| } | |
| , | |
| Qi.prototype.setAriaLabelforButtonInFilter = function(e) { | |
| var t = bo.isPCVisible ? document.querySelector("#onetrust-pc-sdk span[aria-live]") : document.querySelector("#onetrust-banner-sdk span[aria-live]"); | |
| if (!t) { | |
| (t = document.createElement("span")).classList.add("ot-scrn-rdr"), | |
| t.setAttribute("aria-atomic", "true"); | |
| var o = void 0; | |
| if (bo.isPCVisible ? o = document.getElementById(Yi.pcSDKSelector) : document.getElementById(Yi.bannerSelector) && (o = document.getElementById(Yi.bannerSelector)), | |
| !o) | |
| return; | |
| o.appendChild(t) | |
| } | |
| t.setAttribute("aria-atomic", "true"), | |
| t.setAttribute("aria-relevant", "additions"), | |
| t.setAttribute("aria-live", "assertive"), | |
| t.setAttribute(Jt, e), | |
| Yi.timeCallback && clearTimeout(Yi.timeCallback), | |
| Yi.timeCallback = setTimeout(function() { | |
| Yi.timeCallback = null, | |
| t.setAttribute(Jt, "") | |
| }, 900) | |
| } | |
| , | |
| Qi.prototype.setPcListContainerHeight = function() { | |
| To("#onetrust-pc-sdk " + Go.P_Content).el[0].classList.contains("ot-hide") ? co(To("#onetrust-pc-sdk").el[0], 'height: "";', !0) : setTimeout(function() { | |
| var e = window.innerHeight; | |
| 768 <= window.innerWidth && 600 <= window.innerHeight && (e = .8 * window.innerHeight), | |
| !To("#onetrust-pc-sdk " + Go.P_Content).el[0].scrollHeight || To("#onetrust-pc-sdk " + Go.P_Content).el[0].scrollHeight >= e ? co(To("#onetrust-pc-sdk").el[0], "height: " + e + "px;", !0) : co(To("#onetrust-pc-sdk").el[0], "height: auto;", !0) | |
| }) | |
| } | |
| , | |
| Qi.prototype.changeSelectedTab = function(e) { | |
| var t, o = To("#onetrust-pc-sdk .category-menu-switch-handler"), n = 0, r = To(o.el[0]); | |
| o.each(function(e, t) { | |
| To(e).el.classList.contains(Go.P_Active_Menu) && (n = t, | |
| To(e).el.classList.remove(Go.P_Active_Menu), | |
| r = To(e)) | |
| }), | |
| e.keyCode === G.RightArrow ? t = n + 1 >= o.el.length ? To(o.el[0]) : To(o.el[n + 1]) : e.keyCode === G.LeftArrow && (t = To(n - 1 < 0 ? o.el[o.el.length - 1] : o.el[n - 1])), | |
| this.tabMenuToggle(t, r) | |
| } | |
| , | |
| Qi.prototype.changeSelectedTabV2 = function(e) { | |
| var t, o = e.target.parentElement; | |
| e.keyCode === G.RightArrow ? t = o.nextElementSibling || o.parentElement.firstChild : e.keyCode === G.LeftArrow && (t = o.previousElementSibling || o.parentElement.lastChild); | |
| var n = t.querySelector(".category-menu-switch-handler"); | |
| n.focus(), | |
| this.groupTabClick(n) | |
| } | |
| , | |
| Qi.prototype.categoryMenuSwitchHandler = function() { | |
| for (var t = this, e = To("#onetrust-pc-sdk .category-menu-switch-handler").el, o = 0; o < e.length; o++) | |
| e[o].addEventListener("click", this.groupTabClick), | |
| e[o].addEventListener("keydown", function(e) { | |
| if (32 === e.keyCode || "space" === e.code) | |
| return t.groupTabClick(e.currentTarget), | |
| e.preventDefault(), | |
| !1 | |
| }) | |
| } | |
| , | |
| Qi.prototype.groupTabClick = function(e) { | |
| var t = To("#onetrust-pc-sdk " + Go.P_Grp_Container).el[0] | |
| , o = t.querySelector("." + Go.P_Active_Menu) | |
| , n = e.currentTarget || e | |
| , r = n.getAttribute("aria-controls"); | |
| o.setAttribute("tabindex", -1), | |
| o.setAttribute("aria-selected", !1), | |
| o.classList.remove(Go.P_Active_Menu), | |
| t.querySelector(Go.P_Desc_Container + ":not(.ot-hide)").classList.add("ot-hide"), | |
| t.querySelector("#" + r).classList.remove("ot-hide"), | |
| n.setAttribute("tabindex", 0), | |
| n.setAttribute("aria-selected", !0), | |
| n.classList.add(Go.P_Active_Menu) | |
| } | |
| , | |
| Qi.prototype.tabMenuToggle = function(e, t) { | |
| e.el.setAttribute("tabindex", 0), | |
| e.el.setAttribute("aria-selected", !0), | |
| t.el.setAttribute("tabindex", -1), | |
| t.el.setAttribute("aria-selected", !1), | |
| e.focus(), | |
| t.el.parentElement.parentElement.querySelector("" + Go.P_Desc_Container).classList.add("ot-hide"), | |
| e.el.parentElement.parentElement.querySelector("" + Go.P_Desc_Container).classList.remove("ot-hide"), | |
| e.el.classList.add(Go.P_Active_Menu) | |
| } | |
| , | |
| Qi.prototype.closeFilter = function(e) { | |
| if (void 0 === e && (e = !0), | |
| !Dr.checkIfPcSdkContainerExist()) { | |
| var t = To("#onetrust-pc-sdk " + Go.P_Fltr_Modal).el[0] | |
| , o = To("#onetrust-pc-sdk " + Go.P_Triangle).el[0]; | |
| vo.pcName === Ft ? 896 < window.innerWidth || 896 < window.screen.height ? co(t, "width: 0;", !0) : co(t, "height: 0;") : co(t, "display: none;"), | |
| o && To(o).attr("style", "display: none;"), | |
| lo.isV2Template && To("#onetrust-pc-sdk").removeClass("ot-shw-fltr"), | |
| e && $n.setFirstAndLast($n.getPCElements()) | |
| } | |
| } | |
| , | |
| Qi.prototype.setBackButtonFocus = function() { | |
| To("#onetrust-pc-sdk .back-btn-handler").el[0].focus() | |
| } | |
| , | |
| Qi.prototype.setSearchInputFocus = function() { | |
| To(Yi.VENDOR_SEARCH_SELECTOR).el[0].focus() | |
| } | |
| , | |
| Qi.prototype.setCenterLayoutFooterHeight = function() { | |
| var e = Yi.pc; | |
| if (Yi.setMainContentHeight(), | |
| vo.pcName === Rt && e) { | |
| var t = e.querySelectorAll("" + Go.P_Desc_Container) | |
| , o = e.querySelectorAll("li .category-menu-switch-handler"); | |
| if (!e.querySelector(".category-menu-switch-handler + " + Go.P_Desc_Container) && window.innerWidth < 640) | |
| for (var n = 0; n < t.length; n++) | |
| o[n].insertAdjacentElement("afterend", t[n]); | |
| else | |
| e.querySelector(".category-menu-switch-handler + " + Go.P_Desc_Container) && 640 < window.innerWidth && To(e.querySelector(".ot-tab-desc")).append(t) | |
| } | |
| } | |
| , | |
| Qi.prototype.setMainContentHeight = function() { | |
| var e = this.pc | |
| , t = e.querySelector(".ot-pc-footer") | |
| , o = e.querySelector(".ot-pc-header") | |
| , n = e.querySelectorAll(".ot-pc-footer button") | |
| , r = n[n.length - 1] | |
| , i = ko.PCLayout; | |
| if (e.classList.remove("ot-ftr-stacked"), | |
| n[0] && r && 1 < Math.abs(n[0].offsetTop - r.offsetTop) && e.classList.add("ot-ftr-stacked"), | |
| !ko.PCTemplateUpgrade && !i.Center) { | |
| var s = e.clientHeight - t.clientHeight - o.clientHeight - 3; | |
| if (ko.PCTemplateUpgrade && !i.Tab && ko.PCenterVendorListDescText) { | |
| var a = To("#vdr-lst-dsc").el; | |
| s = s - (a.length && a[0].clientHeight) - 10 | |
| } | |
| co(e.querySelector("" + Go.P_Vendor_List), "height: " + s + "px;", !0) | |
| } | |
| var l = e.querySelector("" + Go.P_Content); | |
| if (ko.PCTemplateUpgrade && i.Center) { | |
| var c = 600 < window.innerWidth && 475 < window.innerHeight; | |
| if (!this.pcBodyHeight && c && (this.pcBodyHeight = l.scrollHeight), | |
| c) { | |
| var d = this.pcBodyHeight + t.clientHeight + o.clientHeight + 20; | |
| d > .8 * window.innerHeight || 0 === this.pcBodyHeight ? co(e, "height: " + .8 * window.innerHeight + "px;", !0) : co(e, "height: " + d + "px;", !0) | |
| } else | |
| co(e, "height: 100%;", !0) | |
| } else | |
| co(e.querySelector("" + Go.P_Content), "height: " + (e.clientHeight - t.clientHeight - o.clientHeight - 3) + "px;", !0) | |
| } | |
| , | |
| Qi.prototype.allowAllVisible = function(e) { | |
| e !== this.allowVisible && ko.PCLayout.Tab && ko.PCTemplateUpgrade && (this.pc && this.setMainContentHeight(), | |
| this.allowVisible = e) | |
| } | |
| , | |
| Qi.prototype.restorePc = function() { | |
| bo.pcLayer === O.CookieList ? (Yi.hideCategoryContainer(!0), | |
| ar.loadHostList("", bo.filterByCategories), | |
| bo.showTrackingTech && Yi.addEventAdditionalTechnologies(), | |
| To("#onetrust-pc-sdk #filter-count").text(bo.filterByCategories.length.toString())) : bo.pcLayer === O.VendorList && (Yi.hideCategoryContainer(!1), | |
| Yi.setVendorContent()), | |
| bo.isPCVisible = !1, | |
| Yi.toggleInfoDisplay(), | |
| bo.pcLayer !== O.VendorList && bo.pcLayer !== O.CookieList || (rr.updateFilterSelection(bo.pcLayer === O.CookieList), | |
| Yi.setBackButtonFocus(), | |
| $n.setPCFocus($n.getPCElements())) | |
| } | |
| , | |
| Qi.prototype.toggleInfoDisplay = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return vn.csBtnGroup && (To(Yi.fltgBtnSltr).addClass("ot-pc-open"), | |
| Yi.otGuardLogoPromise.then(function() { | |
| ko.cookiePersistentLogo.includes("ot_guard_logo.svg") && To(Yi.fltgBtnFSltr).attr(Yt, "true") | |
| }), | |
| To(Yi.fltgBtnBSltr).attr(Yt, "")), | |
| [4, Yi.fetchAndSetupPC()]; | |
| case 1: | |
| return e.sent(), | |
| vo.pcName === Dt && this.setPcListContainerHeight(), | |
| void 0 !== bo.pcLayer && bo.pcLayer !== O.Banner || (bo.pcLayer = O.PrefCenterHome), | |
| t = To("#onetrust-pc-sdk").el[0], | |
| To(".onetrust-pc-dark-filter").el[0].removeAttribute("style"), | |
| t.removeAttribute("style"), | |
| bo.isPCVisible || (Dr.showConsentNotice(), | |
| bo.isPCVisible = !0, | |
| ko.PCTemplateUpgrade && (this.pc = t, | |
| o = t.querySelector("#accept-recommended-btn-handler"), | |
| this.allowVisible = o && 0 < o.clientHeight, | |
| this.setCenterLayoutFooterHeight(), | |
| Yi.getResizeElement().addEventListener("resize", Yi.setCenterLayoutFooterHeight), | |
| window.addEventListener("resize", Yi.setCenterLayoutFooterHeight))), | |
| window.dispatchEvent(new CustomEvent("OneTrustPCLoaded",{ | |
| OneTrustPCLoaded: "yes" | |
| })), | |
| Yi.captureInitialConsent(), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| Qi.prototype.close = function(e) { | |
| ko.BCloseButtonType === he.Link ? bo.bannerCloseSource = m.ContinueWithoutAcceptingButton : bo.bannerCloseSource = m.BannerCloseButton, | |
| $i.bannerCloseButtonHandler(e), | |
| Yi.getResizeElement().removeEventListener("resize", Yi.setCenterLayoutFooterHeight), | |
| window.removeEventListener("resize", Yi.setCenterLayoutFooterHeight) | |
| } | |
| , | |
| Qi.prototype.closePreferenceCenter = function(e) { | |
| e && e.preventDefault(), | |
| window.location.href = "http://otsdk//consentChanged" | |
| } | |
| , | |
| Qi.prototype.initializeAlartHtmlAndHandler = function() { | |
| bo.skipAddingHTML = 0 < To("#onetrust-banner-sdk").length, | |
| bo.skipAddingHTML || Ui.insertAlertHtml(), | |
| this.initialiseAlertHandlers() | |
| } | |
| , | |
| Qi.prototype.initialiseAlertHandlers = function() { | |
| var e = this; | |
| Ui.showBanner(), | |
| ko.ForceConsent && !wo.isCookiePolicyPage(ko.AlertNoticeText) && To(".onetrust-pc-dark-filter").removeClass("ot-hide").css("z-index:2147483645;"), | |
| ko.OnClickCloseBanner && document.body.addEventListener("click", $i.bodyClickEvent), | |
| ko.ScrollCloseBanner && (window.addEventListener("scroll", $i.scrollCloseBanner), | |
| To(document).on("click", ".onetrust-close-btn-handler", $i.rmScrollAndClickBodyEvents), | |
| To(document).on("click", "#onetrust-accept-btn-handler", $i.rmScrollAndClickBodyEvents), | |
| To(document).on("click", "#accept-recommended-btn-handler", $i.rmScrollAndClickBodyEvents)), | |
| (ko.IsIabEnabled || ko.UseGoogleVendors || bo.showGeneralVendors) && !bo.showVendorService && To(document).on("click", ".onetrust-vendors-list-handler", Yi.showAllVendors), | |
| ko.FloatingRoundedIcon && To("#onetrust-banner-sdk #onetrust-cookie-btn").on("click", function(e) { | |
| bo.pcSource = e.currentTarget, | |
| Yi.showCookieSettingsHandler(e) | |
| }), | |
| To("#onetrust-banner-sdk .onetrust-close-btn-handler, #onetrust-banner-sdk .ot-bnr-save-handler").on("click", Yi.bannerCloseButtonHandler), | |
| To("#onetrust-banner-sdk #onetrust-pc-btn-handler").on("click", Yi.showCookieSettingsHandler), | |
| To("#onetrust-banner-sdk #onetrust-accept-btn-handler").on("click", $i.allowAllEventHandler.bind(this, !1)), | |
| To("#onetrust-banner-sdk #onetrust-reject-all-handler").on("click", $i.rejectAllEventHandler.bind(this, !1)), | |
| To("#onetrust-banner-sdk .banner-option-input").on("click", vo.bannerName === wt ? Yi.toggleBannerOptions : Yi.toggleAccordionStatus), | |
| To("#onetrust-banner-sdk .ot-gv-list-handler").on("click", function(t) { | |
| return u(e, void 0, void 0, function() { | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return bo.cookieListType = Z.GenVen, | |
| [4, Yi.fetchAndSetupPC()]; | |
| case 1: | |
| return e.sent(), | |
| Yi.loadCookieList(t.target), | |
| Yi.showCookieSettingsHandler(t), | |
| [2] | |
| } | |
| }) | |
| }) | |
| }), | |
| To("#onetrust-banner-sdk .category-switch-handler").on("click", Yi.toggleBannerCategory); | |
| var t = document.getElementById("onetrust-banner-sdk"); | |
| ko.ForceConsent && t && "none" !== window.getComputedStyle(t).display && To(document).on("keydown", Yi.shiftBannerFocus), | |
| To("#onetrust-banner-sdk").on("keydown", function(e) { | |
| 32 !== e.keyCode && "Space" !== e.code && 13 !== e.keyCode && "Enter" !== e.code || wo.findUserType(e) | |
| }) | |
| } | |
| , | |
| Qi.prototype.getResizeElement = function() { | |
| var e = document.querySelector("#onetrust-pc-sdk .ot-text-resize"); | |
| return e ? e.contentWindow || e : document | |
| } | |
| , | |
| Qi.prototype.insertCookieSettingText = function(e) { | |
| var t, o; | |
| void 0 === e && (e = !1); | |
| for (var n = ko.CookieSettingButtonText, r = To(".ot-sdk-show-settings").el, i = To(".optanon-toggle-display").el, s = 0; s < r.length; s++) | |
| To(r[s]).text(n), | |
| To(i[s]).text(n); | |
| e ? (null !== (t = document.querySelector(".ot-sdk-show-settings")) && void 0 !== t && t.addEventListener("click", this.cookiesSettingsBoundListener), | |
| null !== (o = document.querySelector(".optanon-toggle-display")) && void 0 !== o && o.addEventListener("click", this.cookiesSettingsBoundListener)) : Yi.initCookieSettingHandlers() | |
| } | |
| , | |
| Qi.prototype.genVendorToggled = function(e) { | |
| var t = e.target.getAttribute("gn-vid"); | |
| rn.updateGenVendorStatus(t, e.target.checked); | |
| var o = ko.GeneralVendors.find(function(e) { | |
| return e.VendorCustomId === t | |
| }).Name; | |
| Cn.triggerGoogleAnalyticsEvent(mn, e.target.checked ? Gn : Nn, o + ": VEN_" + t), | |
| ar.genVenSelectAllTglEvent() | |
| } | |
| , | |
| Qi.prototype.genVendorDetails = function(e) { | |
| Yi.toggleAccordionStatus(e) | |
| } | |
| , | |
| Qi.prototype.confirmPC = function(e) { | |
| var t = Ro.isAlertBoxClosedAndValid(); | |
| ko.NoBanner && ko.ShowPreferenceCenterCloseButton && !t && $i.bannerCloseButtonHandler(); | |
| var o = wo.isBannerVisible(); | |
| !lo.moduleInitializer.MobileSDK || !t && o || Yi.closePreferenceCenter(e) | |
| } | |
| , | |
| Qi.prototype.captureInitialConsent = function() { | |
| bo.initialGroupsConsent = JSON.parse(JSON.stringify(bo.groupsConsent)), | |
| bo.initialHostConsent = JSON.parse(JSON.stringify(bo.hostsConsent)), | |
| bo.showGeneralVendors && (bo.initialGenVendorsConsent = JSON.parse(JSON.stringify(bo.genVendorsConsent))), | |
| ko.IsIabEnabled && (bo.initialOneTrustIABConsent = JSON.parse(JSON.stringify(bo.oneTrustIABConsent)), | |
| bo.initialVendors = JSON.parse(JSON.stringify(bo.vendors)), | |
| bo.initialVendors.vendorTemplate = bo.vendors.vendorTemplate), | |
| ko.UseGoogleVendors && (bo.initialAddtlVendorsList = JSON.parse(JSON.stringify(bo.addtlVendorsList)), | |
| bo.initialAddtlVendors = JSON.parse(JSON.stringify(bo.addtlVendors))), | |
| bo.vsIsActiveAndOptOut && (bo.initialVendorsServiceConsent = new Map(bo.vsConsent)) | |
| } | |
| , | |
| Qi); | |
| function Qi() { | |
| var t = this; | |
| this.allowVisible = !1, | |
| this.fltgBtnBackBtn = ".ot-floating-button__back button", | |
| this.fltgBtnBSltr = ".ot-floating-button__back svg", | |
| this.fltgBtnFrontBtn = ".ot-floating-button__front button", | |
| this.fltgBtnFSltr = ".ot-floating-button__front svg", | |
| this.fltgBtnSltr = "#ot-sdk-btn-floating", | |
| this.VENDOR_SEARCH_SELECTOR = "#onetrust-pc-sdk #vendor-search-handler", | |
| this.isCookieList = !1, | |
| this.pc = null, | |
| this.currentSearchInput = "", | |
| this.pcLinkSource = null, | |
| this.pcSDKSelector = "onetrust-pc-sdk", | |
| this.bannerSelector = "onetrust-banner-sdk", | |
| this.otGuardLogoResolve = null, | |
| this.otGuardLogoPromise = new Promise(function(e) { | |
| t.otGuardLogoResolve = e | |
| } | |
| ), | |
| this.showCookieSettingsHandler = function(s) { | |
| return u(t, void 0, void 0, function() { | |
| var t, o, n, r, i; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return (t = document.getElementById(Yi.pcSDKSelector), | |
| t && "none" !== window.getComputedStyle(t).getPropertyValue("display")) ? [2] : (s && s.stopPropagation(), | |
| s && s.target && (o = s.target.className, | |
| n = "onetrust-pc-btn-handler" === s.target.id, | |
| r = "ot-sdk-show-settings" === o, | |
| (n || r) && (i = n ? In : Ln, | |
| Cn.triggerGoogleAnalyticsEvent(mn, i)), | |
| bo.pcSource = s.target), | |
| [4, Yi.toggleInfoDisplay()]); | |
| case 1: | |
| return e.sent(), | |
| [2, !1] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| this.cookiesSettingsBoundListener = this.showCookieSettingsHandler.bind(this), | |
| this.backBtnHandler = function() { | |
| return bo.showVendorService && Ki.hideVendorList(), | |
| bo.showTrackingTech && (Yi.currentSearchInput = ""), | |
| $i.hideVendorsList(), | |
| vo.pcName === Dt && (To("#onetrust-pc-sdk " + Go.P_Content).removeClass("ot-hide"), | |
| To("#onetrust-pc-sdk").el[0].removeAttribute("style"), | |
| t.setPcListContainerHeight()), | |
| To("#onetrust-pc-sdk #filter-count").text("0"), | |
| To(Yi.VENDOR_SEARCH_SELECTOR).length && (To(Yi.VENDOR_SEARCH_SELECTOR).el[0].value = ""), | |
| bo.currentGlobalFilteredList = [], | |
| bo.filterByCategories = [], | |
| bo.filterByIABCategories = [], | |
| bo.vendors.searchParam = "", | |
| Yi.closeFilter(), | |
| bo.pcLayer = O.PrefCenterHome, | |
| t.pcLinkSource ? (t.pcLinkSource.focus(), | |
| t.pcLinkSource = null) : $n.setPCFocus($n.getPCElements()), | |
| !1 | |
| } | |
| , | |
| this.bannerCloseBoundListener = this.bannerCloseButtonHandler.bind(this), | |
| this.toggleGroupORVendorHandler = function(e) { | |
| var t = e.currentTarget | |
| , o = t.dataset.otVsId; | |
| o ? Yi.toggleVendorServiceHandler.bind(this)(e) : (o = t.dataset.optanongroupid) && Yi.toggleV2Category.bind(this)() | |
| } | |
| , | |
| this.toggleVendorFromListHandler = function(e) { | |
| var t = e.currentTarget | |
| , o = t.checked | |
| , n = t.dataset.otVsId | |
| , r = t.dataset.optanongroupid | |
| , i = document.getElementById("ot-vendor-id-" + n); | |
| pr.toggleVendorService(r, n, o, i) | |
| } | |
| , | |
| this.toggleVendorServiceHandler = function(e) { | |
| var t = e.currentTarget | |
| , o = t.checked | |
| , n = t.dataset.otVsId | |
| , r = t.dataset.optanongroupid; | |
| pr.toggleVendorService(r, n, o, t); | |
| var i = Mo.getVSById(n); | |
| Yi.setAriaLabelforButtonInFilter(i.ServiceName) | |
| } | |
| , | |
| this.toggleV2Category = function(e, t, o, n) { | |
| if (!t) { | |
| var r = this.getAttribute("data-optanongroupid") | |
| , i = "function" == typeof this.getAttribute | |
| , s = ho.findIndex(bo.dataGroupState, function(e) { | |
| return i && e.CustomGroupId === r | |
| }); | |
| t = bo.dataGroupState[s] | |
| } | |
| var a; | |
| if (void 0 === o && (o = To(this).is(":checked")), | |
| ko.ChoicesBanner && ho.setCheckedAttribute("#ot-bnr-grp-id-" + t.CustomGroupId, null, o), | |
| n) | |
| document.querySelector("#ot-group-id-" + n) && (ho.setCheckedAttribute("#ot-group-id-" + n, null, o), | |
| a = document.querySelector("#ot-group-id-" + n)); | |
| else { | |
| a = this, | |
| ho.setCheckedAttribute(null, this, o); | |
| var l = a.parentElement.querySelector(".ot-switch-nob"); | |
| lo.fp.CookieV2VendorServiceScript ? ko.PCCategoryStyle === ce.Toggle && l && l.setAttribute("aria-checked", o) : ko.PCTemplateUpgrade && l && l.setAttribute("aria-checked", o) | |
| } | |
| ko.PCShowConsentLabels && (a.parentElement.parentElement.querySelector(".ot-label-status").innerHTML = o ? ko.PCActiveText : ko.PCInactiveText); | |
| var c = this instanceof HTMLElement && -1 !== this.getAttribute("id").indexOf("-leg-out"); | |
| Yi.setAriaLabelforButtonInFilter(t.GroupName), | |
| Yi.updateGroupToggles(t, o, c) | |
| } | |
| , | |
| this.toggleBannerCategory = function() { | |
| var t = this | |
| , e = ho.findIndex(bo.dataGroupState, function(e) { | |
| return "function" == typeof t.getAttribute && e.CustomGroupId === t.getAttribute("data-optanongroupid") | |
| }) | |
| , o = bo.dataGroupState[e] | |
| , n = To(t).is(":checked"); | |
| Yi.toggleV2Category(null, o, n, o.CustomGroupId) | |
| } | |
| , | |
| this.shiftBannerFocus = function(e) { | |
| var t = document.getElementById(Yi.pcSDKSelector) | |
| , o = !1; | |
| t && (o = "none" !== window.getComputedStyle(t).display), | |
| "Tab" !== e.code || o || $n.handleBannerFocus(e, e.shiftKey) | |
| } | |
| , | |
| this.toggleSubCategory = function(e, t, o, n) { | |
| t = t || this.getAttribute("data-optanongroupid"); | |
| var r, i = Mo.getGroupById(t); | |
| void 0 === o && (o = To(this).is(":checked")), | |
| n ? (ho.setCheckedAttribute("#ot-sub-group-id-" + n, null, o), | |
| r = document.querySelector("#ot-sub-group-id-" + n)) : (r = this, | |
| ho.setCheckedAttribute(null, this, o)), | |
| ko.PCShowConsentLabels && (r.parentElement.parentElement.querySelector(".ot-label-status").innerHTML = o ? ko.PCActiveText : ko.PCInactiveText); | |
| var s = this instanceof HTMLElement && -1 !== this.getAttribute("id").indexOf("-leg-out"); | |
| Yi.setAriaLabelforButtonInFilter(i.GroupName), | |
| Yi.updateSubGroupToggles(i, o, s), | |
| pr.setVendorStateByGroup(i, o) | |
| } | |
| } | |
| var $i, Zi = (es.prototype.updateDataSubjectTimestamp = function() { | |
| var e = Ro.alertBoxCloseDate() | |
| , t = e && wo.getUTCFormattedDate(e); | |
| To(".ot-userid-timestamp").html(ko.PCenterUserIdTimestampTitleText + ": " + t) | |
| } | |
| , | |
| es.prototype.closeBanner = function(e) { | |
| this.closeOptanonAlertBox(), | |
| e ? this.allowAll(!1) : this.close(!1) | |
| } | |
| , | |
| es.prototype.allowAll = function(e, t) { | |
| void 0 === t && (t = !1), | |
| lo.moduleInitializer.MobileSDK ? window.OneTrust.AllowAll() : this.AllowAllV2(e, t) | |
| } | |
| , | |
| es.prototype.bannerActionsHandler = function(t, n, e) { | |
| var r = this; | |
| void 0 === e && (e = !1), | |
| pn.setLandingPathParam(lt), | |
| bo.groupsConsent = [], | |
| bo.hostsConsent = [], | |
| bo.genVendorsConsent = {}; | |
| var i = {}; | |
| ko.Groups.forEach(function(e) { | |
| if (e.IsAboutGroup) | |
| return !1; | |
| b(e.SubGroups, [e]).forEach(function(e) { | |
| var o = r.getGroupStatus(t, n, e); | |
| r.setGroupConsent(o, e), | |
| e.Hosts.length && wo.isOptOutEnabled() && e.Hosts.forEach(function(e) { | |
| if (i[e.HostId]) | |
| ln.updateHostStatus(e, o); | |
| else { | |
| i[e.HostId] = !0; | |
| var t = ln.isHostPartOfAlwaysActiveGroup(e.HostId) || o; | |
| bo.hostsConsent.push(e.HostId + ":" + (t ? "1" : "0")) | |
| } | |
| }), | |
| bo.genVenOptOutEnabled && e.GeneralVendorsIds && e.GeneralVendorsIds.length && e.GeneralVendorsIds.forEach(function(e) { | |
| rn.updateGenVendorStatus(e, o) | |
| }) | |
| }) | |
| }), | |
| ko.IsIabEnabled && (t ? this.iab.allowAllhandler() : this.iab.rejectAllHandler(e)), | |
| Ar.removeAddedOTCssStyles(), | |
| Dr.hideConsentNoticeV2(), | |
| Qo.writeGrpParam(pt.OPTANON_CONSENT), | |
| Qo.writeHstParam(pt.OPTANON_CONSENT), | |
| bo.genVenOptOutEnabled && Qo.writeGenVenCookieParam(pt.OPTANON_CONSENT), | |
| bo.vsIsActiveAndOptOut && Qo.writeVSConsentCookieParam(pt.OPTANON_CONSENT), | |
| rr.substitutePlainTextScriptTags(), | |
| mr.updateGtmMacros(), | |
| this.executeOptanonWrapper() | |
| } | |
| , | |
| es.prototype.getGroupStatus = function(e, t, o) { | |
| return !!e || !!t && Mo.isAlwaysActiveGroup(o) | |
| } | |
| , | |
| es.prototype.setGroupConsent = function(e, t) { | |
| -1 < ro.indexOf(t.Type) && bo.groupsConsent.push(t.CustomGroupId + ":" + (e && t.HasConsentOptOut ? "1" : "0")) | |
| } | |
| , | |
| es.prototype.nextPageCloseBanner = function() { | |
| pn.isLandingPage() || Ro.isAlertBoxClosedAndValid() || this.closeBanner(ko.NextPageAcceptAllCookies) | |
| } | |
| , | |
| es.prototype.rmScrollAndClickBodyEvents = function() { | |
| ko.ScrollCloseBanner && window.removeEventListener("scroll", this.scrollCloseBanner), | |
| ko.OnClickCloseBanner && document.body.removeEventListener("click", this.bodyClickEvent) | |
| } | |
| , | |
| es.prototype.onClickCloseBanner = function(e) { | |
| Ro.isAlertBoxClosedAndValid() || (Cn.triggerGoogleAnalyticsEvent(mn, bn), | |
| this.closeBanner(ko.OnClickAcceptAllCookies), | |
| e.stopPropagation()), | |
| $i.rmScrollAndClickBodyEvents() | |
| } | |
| , | |
| es.prototype.scrollCloseBanner = function() { | |
| var e = To(document).height() - To(window).height(); | |
| 0 === e && (e = To(window).height()); | |
| var t = 100 * To(window).scrollTop() / e; | |
| t <= 0 && (t = 100 * (document.scrollingElement && document.scrollingElement.scrollTop || document.documentElement && document.documentElement.scrollTop || document.body && document.body.scrollTop) / (document.scrollingElement && document.scrollingElement.scrollHeight || document.documentElement && document.documentElement.scrollHeight || document.body && document.body.scrollHeight)), | |
| 25 < t && !Ro.isAlertBoxClosedAndValid() && (!bo.isPCVisible || ko.NoBanner) ? (Cn.triggerGoogleAnalyticsEvent(mn, bn), | |
| $i.closeBanner(ko.ScrollAcceptAllCookies), | |
| $i.rmScrollAndClickBodyEvents()) : Ro.isAlertBoxClosedAndValid() && $i.rmScrollAndClickBodyEvents() | |
| } | |
| , | |
| es.prototype.AllowAllV2 = function(e, t) { | |
| void 0 === t && (t = !1); | |
| for (var o = this.groupsClass.getAllGroupElements(), n = 0; n < o.length; n++) { | |
| var r = Mo.getGroupById(o[n].getAttribute("data-optanongroupid")); | |
| this.groupsClass.toggleGrpElements(o[n], r, !0), | |
| this.groupsClass.toogleSubGroupElement(o[n], !0, !1, !0), | |
| this.groupsClass.toogleSubGroupElement(o[n], !0, !0, !0) | |
| } | |
| bo.showVendorService && pr.consentAll(!0), | |
| this.bannerActionsHandler(!0, !1), | |
| this.consentTransactions(e, !0, t), | |
| ko.IsIabEnabled && (this.iab.updateIabVariableReference(), | |
| this.iab.updateVendorsDOMToggleStatus(!0), | |
| this.updateVendorLegBtns(!0)) | |
| } | |
| , | |
| es.prototype.rejectAll = function(e, t) { | |
| void 0 === t && (t = !1); | |
| var o, n, r = t ? K[5] : K[2], i = this.groupsClass.getAllGroupElements(); | |
| n = lo.fp.CookieV2RejectAll ? (o = this.initializeObjectToLIRejectAll(t), | |
| this.initializeAllowLIRejectAll(t)) : !(o = !0); | |
| for (var s = 0; s < i.length; s++) { | |
| var a = Mo.getGroupById(i[s].getAttribute("data-optanongroupid")); | |
| "always active" !== Mo.getGrpStatus(a).toLowerCase() && (tr.toggleGrpElements(i[s], a, !1, n), | |
| this.groupsClass.toogleSubGroupElement(i[s], !1, !1, !0), | |
| (!ko.IsIabEnabled || ko.IsIabEnabled && o) && this.groupsClass.toogleSubGroupElement(i[s], !1, !0, !0)) | |
| } | |
| bo.showVendorService && pr.consentAll(!1), | |
| this.bannerActionsHandler(!1, !0, n), | |
| r !== bo.consentInteractionType && this.consentTransactions(e, !1, t), | |
| ko.IsIabEnabled && (this.iab.updateIabVariableReference(), | |
| this.iab.updateVendorsDOMToggleStatus(!1, n), | |
| n || this.updateVendorLegBtns(!1)) | |
| } | |
| , | |
| es.prototype.initializeObjectToLIRejectAll = function(e) { | |
| return !e && ko.BannerShowRejectAllButton && ko.BRejectConsentType === Ae.OBJECT_TO_LI || e && ko.PCenterShowRejectAllButton && ko.BRejectConsentType === Ae.OBJECT_TO_LI | |
| } | |
| , | |
| es.prototype.initializeAllowLIRejectAll = function(e) { | |
| return ko.IsIabEnabled && (!e && ko.BannerShowRejectAllButton && ko.BRejectConsentType === Ae.LI_ACTIVE_IF_LEGAL_BASIS || e && ko.PCenterShowRejectAllButton && ko.BRejectConsentType === Ae.LI_ACTIVE_IF_LEGAL_BASIS) | |
| } | |
| , | |
| es.prototype.executeCustomScript = function() { | |
| ko.CustomJs && new Function(ko.CustomJs)() | |
| } | |
| , | |
| es.prototype.updateConsentData = function(e) { | |
| pn.setLandingPathParam(lt), | |
| ko.IsIabEnabled && !e && this.iab.saveVendorStatus(), | |
| Qo.writeGrpParam(pt.OPTANON_CONSENT), | |
| Qo.writeHstParam(pt.OPTANON_CONSENT), | |
| bo.showGeneralVendors && ko.GenVenOptOut && Qo.writeGenVenCookieParam(pt.OPTANON_CONSENT), | |
| bo.vsIsActiveAndOptOut && Qo.writeVSConsentCookieParam(pt.OPTANON_CONSENT), | |
| rr.substitutePlainTextScriptTags(), | |
| mr.updateGtmMacros() | |
| } | |
| , | |
| es.prototype.close = function(e, t) { | |
| if (void 0 === t && (t = P.Banner), | |
| Dr.hideConsentNoticeV2(), | |
| this.updateConsentData(e), | |
| ko.IsConsentLoggingEnabled) { | |
| var o = t === P.PC ? wr : t === P.Banner ? Er : vo.apiSource | |
| , n = t === P.PC ? Lr : t === P.Banner ? Ir : _r; | |
| bo.bannerCloseSource === m.ContinueWithoutAcceptingButton && (o = xr), | |
| bo.bannerCloseSource === m.BannerSaveSettings && (o = Or), | |
| zo.createConsentTxn(!1, n + " - " + o, t === P.PC) | |
| } else | |
| Ro.dispatchConsentEvent(); | |
| this.executeOptanonWrapper() | |
| } | |
| , | |
| es.prototype.executeOptanonWrapper = function() { | |
| try { | |
| if (this.executeCustomScript(), | |
| "function" == typeof window.OptanonWrapper && "undefined" !== window.OptanonWrapper) { | |
| window.OptanonWrapper(); | |
| for (var e = 0, t = bo.srcExecGrpsTemp; e < t.length; e++) { | |
| var o = t[e]; | |
| -1 === bo.srcExecGrps.indexOf(o) && bo.srcExecGrps.push(o) | |
| } | |
| bo.srcExecGrpsTemp = []; | |
| for (var n = 0, r = bo.htmlExecGrpsTemp; n < r.length; n++) | |
| o = r[n], | |
| -1 === bo.htmlExecGrps.indexOf(o) && bo.htmlExecGrps.push(o); | |
| bo.htmlExecGrpsTemp = [] | |
| } | |
| } catch (e) { | |
| console.warn("Error in Optanon wrapper, please review your code. " + e) | |
| } | |
| } | |
| , | |
| es.prototype.updateVendorLegBtns = function(e) { | |
| if (vo.legIntSettings.PAllowLI && vo.legIntSettings.PShowLegIntBtn) | |
| for (var t = To(Go.P_Vendor_Container + " .ot-leg-btn-container").el, o = 0; o < t.length; o++) | |
| this.groupsClass.updateLegIntBtnElement(t[o], e) | |
| } | |
| , | |
| es.prototype.showFltgCkStgButton = function() { | |
| var e = To("#ot-sdk-btn-floating"); | |
| e.removeClass("ot-hide"), | |
| e.removeClass("ot-pc-open"), | |
| ko.cookiePersistentLogo.includes("ot_guard_logo.svg") && To(".ot-floating-button__front svg").attr("aria-hidden", ""), | |
| To(".ot-floating-button__back svg").attr("aria-hidden", "true") | |
| } | |
| , | |
| es.prototype.consentTransactions = function(e, t, o) { | |
| void 0 === o && (o = !1), | |
| zo && !e && ko.IsConsentLoggingEnabled ? zo.createConsentTxn(!1, (o ? Lr : Ir) + " - " + (t ? Vr : Br), o) : Ro.dispatchConsentEvent() | |
| } | |
| , | |
| es.prototype.hideVendorsList = function() { | |
| Dr.checkIfPcSdkContainerExist() || (ko.PCTemplateUpgrade ? To("#onetrust-pc-sdk " + Go.P_Content).removeClass("ot-hide") : To("#onetrust-pc-sdk .ot-main-content").show(), | |
| To("#onetrust-pc-sdk #close-pc-btn-handler.main").show(), | |
| To("#onetrust-pc-sdk " + Go.P_Vendor_List).addClass("ot-hide")) | |
| } | |
| , | |
| es.prototype.resetConsent = function() { | |
| var e = this; | |
| bo.groupsConsent = JSON.parse(JSON.stringify(bo.initialGroupsConsent)), | |
| bo.hostsConsent = JSON.parse(JSON.stringify(bo.initialHostConsent)), | |
| bo.showGeneralVendors && (bo.genVendorsConsent = JSON.parse(JSON.stringify(bo.initialGenVendorsConsent))), | |
| bo.vsIsActiveAndOptOut && (bo.vsConsent = new Map(bo.initialVendorsServiceConsent)), | |
| ko.IsIabEnabled && (bo.oneTrustIABConsent = JSON.parse(JSON.stringify(bo.initialOneTrustIABConsent)), | |
| bo.vendors = JSON.parse(JSON.stringify(bo.initialVendors)), | |
| bo.vendors.vendorTemplate = bo.initialVendors.vendorTemplate), | |
| ko.UseGoogleVendors && (bo.addtlVendors = JSON.parse(JSON.stringify(bo.initialAddtlVendors)), | |
| bo.addtlVendorsList = JSON.parse(JSON.stringify(bo.initialAddtlVendorsList))), | |
| this.updateConsentData(!1), | |
| setTimeout(function() { | |
| e.resetConsentUI() | |
| }, 400) | |
| } | |
| , | |
| es.prototype.resetConsentUI = function() { | |
| tr.getAllGroupElements().forEach(function(e) { | |
| var t = e.getAttribute("data-optanongroupid") | |
| , o = Mo.getGroupById(t) | |
| , n = $i.isGroupActive(o, t); | |
| vo.pcName === Rt && ko.PCTemplateUpgrade && (e = document.querySelector("#ot-desc-id-" + e.getAttribute("data-optanongroupid"))); | |
| var r = e.querySelector(".ot-label-status"); | |
| if (ko.PCShowConsentLabels && r && (r.innerHTML = n ? ko.PCActiveText : ko.PCInactiveText), | |
| o.Type === Xt || o.Type === oo) { | |
| var i = wo.isBundleOrStackActive(o, bo.initialGroupsConsent) | |
| , s = e.querySelector('input[class*="category-switch-handler"]'); | |
| ho.setCheckedAttribute(null, s, i); | |
| for (var a = e.querySelectorAll("li" + Go.P_Subgrp_li), l = 0; l < a.length; l++) { | |
| var c = Mo.getGroupById(a[l].getAttribute("data-optanongroupid")) | |
| , d = c.OptanonGroupId | |
| , p = $i.isGroupActive(c, d) | |
| , u = a[l].querySelector('input[class*="cookie-subgroup-handler"]') | |
| , h = a[l].querySelector(".ot-label-status"); | |
| ko.PCShowConsentLabels && h && (r.innerHTML = p ? ko.PCActiveText : ko.PCInactiveText), | |
| ho.setCheckedAttribute(null, u, p), | |
| $i.resetLegIntButton(c, a[l]) | |
| } | |
| } else | |
| s = e.querySelector('input[class*="category-switch-handler"]'), | |
| ho.setCheckedAttribute(null, s, n), | |
| $i.resetLegIntButton(o, e) | |
| }), | |
| ko.IsIabEnabled && Ur.toggleVendorConsent(); | |
| var e = To("#onetrust-pc-sdk .ot-gnven-chkbox-handler").el; | |
| if (bo.showGeneralVendors && e && e.length) { | |
| for (var t = 0, o = e; t < o.length; t++) { | |
| var n = (l = o[t]).getAttribute("gn-vid") | |
| , r = Boolean(bo.genVendorsConsent[n]); | |
| ho.setCheckedAttribute("", l, r), | |
| rn.updateGenVendorStatus(n, r) | |
| } | |
| ar.genVenSelectAllTglEvent() | |
| } | |
| var i = To("#onetrust-pc-sdk .ot-addtlven-chkbox-handler").el; | |
| if (ko.UseGoogleVendors && i && i.length) | |
| for (var s = 0, a = i; s < a.length; s++) { | |
| var l; | |
| n = (l = a[s]).getAttribute("addtl-vid"), | |
| bo.addtlVendorsList[n] && (r = Boolean(bo.addtlVendors.vendorSelected[n]), | |
| ho.setCheckedAttribute("", l, r)) | |
| } | |
| bo.vsIsActiveAndOptOut && pr.resetVendorUIState(bo.vsConsent) | |
| } | |
| , | |
| es.prototype.isGroupActive = function(e, t) { | |
| var o; | |
| if (e.IabGrpId) { | |
| var n = void 0; | |
| n = e.Type === eo ? bo.initialVendors.selectedSpecialFeatures : e.IsLegIntToggle ? bo.initialVendors.selectedLegInt : bo.initialVendors.selectedPurpose, | |
| o = -1 !== So.inArray(e.IabGrpId + ":true", n) | |
| } else | |
| o = -1 !== So.inArray(t + ":1", bo.initialGroupsConsent); | |
| return o | |
| } | |
| , | |
| es.prototype.resetLegIntButton = function(e, t) { | |
| if (vo.legIntSettings.PAllowLI && e.Type === Zt && e.HasLegIntOptOut && vo.legIntSettings.PShowLegIntBtn) { | |
| var o = !0; | |
| -1 < bo.vendors.selectedLegInt.indexOf(e.IabGrpId + ":false") && (o = !1), | |
| tr.updateLegIntBtnElement(t, o) | |
| } | |
| } | |
| , | |
| es.prototype.handleTogglesOnSingularConsentUpdate = function(e, t) { | |
| if (this.closeOptanonAlertBox(), | |
| e === jt) | |
| for (var o = function(e, t) { | |
| for (var o = Mo.getGroupById(e), n = a.groupsClass.getAllGroupElements(), r = 0; r < n.length; r++) { | |
| var i = Mo.getGroupById(n[r].getAttribute("data-optanongroupid")); | |
| if (i.OptanonGroupId === o.OptanonGroupId && !i.Parent) { | |
| Yi.toggleV2Category(null, i, t, i.CustomGroupId); | |
| break | |
| } | |
| var s = i.SubGroups.find(function(e) { | |
| return e.OptanonGroupId === o.OptanonGroupId | |
| }); | |
| s && Yi.toggleSubCategory(null, s.CustomGroupId, t, s.CustomGroupId) | |
| } | |
| }, a = this, n = 0, r = t; n < r.length; n++) { | |
| var i = r[n]; | |
| o(d = i.id, p = i.isEnabled) | |
| } | |
| else if (e === Wt) | |
| for (var s = 0, l = t; s < l.length; s++) { | |
| var c = l[s] | |
| , d = c.id | |
| , p = c.isEnabled | |
| , u = Mo.getGrpByVendorId(d); | |
| u && pr.toggleVendorService(u.CustomGroupId, d, p) | |
| } | |
| this.close(!1, P.API) | |
| } | |
| , | |
| es); | |
| function es() { | |
| var o = this; | |
| this.iab = ar, | |
| this.groupsClass = tr, | |
| this.closeOptanonAlertBox = function() { | |
| if (wo.hideBanner(), | |
| ko.NtfyConfig.ShowNtfy && Rr.hideSyncNtfy(), | |
| vo.isOptInMode || !vo.isOptInMode && !Ro.isAlertBoxClosedAndValid()) | |
| Cn.setAlertBoxClosed(!0), | |
| ko.PCTemplateUpgrade && ko.PCenterUserIdTitleText && ko.IsConsentLoggingEnabled && o.updateDataSubjectTimestamp(); | |
| else if (Ro.isAlertBoxClosedAndValid()) { | |
| var e = To(".onetrust-pc-dark-filter").el[0]; | |
| e && "none" !== getComputedStyle(e).getPropertyValue("display") && To(".onetrust-pc-dark-filter").fadeOut(400) | |
| } | |
| vn.csBtnGroup && o.showFltgCkStgButton() | |
| } | |
| , | |
| this.bodyClickEvent = function(e) { | |
| var t = e.target; | |
| t.closest("#onetrust-banner-sdk") || t.closest("#onetrust-pc-sdk") || t.closest(".onetrust-pc-dark-filter") || t.closest(".ot-sdk-show-settings") || t.closest(".optanon-show-settings") || t.closest(".optanon-toggle-display") || $i.onClickCloseBanner(e) | |
| } | |
| , | |
| this.bannerCloseButtonHandler = function(e) { | |
| if (void 0 === e && (e = !1), | |
| $i.closeOptanonAlertBox(), | |
| lo.moduleInitializer.MobileSDK) | |
| window.OneTrust.Close(); | |
| else { | |
| var t = bo.bannerCloseSource === m.ConfirmChoiceButton ? P.PC : P.Banner; | |
| $i.close(e, t) | |
| } | |
| return !1 | |
| } | |
| , | |
| this.allowAllEventHandler = function(e) { | |
| void 0 === e && (e = !1), | |
| To(document).off("keydown", Yi.shiftBannerFocus); | |
| var t = e ? "Preferences Allow All" : "Banner Accept Cookies"; | |
| Cn.triggerGoogleAnalyticsEvent(mn, t), | |
| o.allowAllEvent(!1, e), | |
| o.hideVendorsList() | |
| } | |
| , | |
| this.allowAllEvent = function(e, t) { | |
| void 0 === e && (e = !1), | |
| void 0 === t && (t = !1), | |
| o.closeOptanonAlertBox(), | |
| $i.allowAll(e, t) | |
| } | |
| , | |
| this.rejectAllEventHandler = function(e) { | |
| void 0 === e && (e = !1), | |
| To(document).off("keydown", Yi.shiftBannerFocus); | |
| var t = e ? "Preferences Reject All" : "Banner Reject All"; | |
| Cn.triggerGoogleAnalyticsEvent(mn, t), | |
| lo.moduleInitializer.MobileSDK ? window.OneTrust.RejectAll() : (o.rejectAllEvent(!1, e), | |
| o.hideVendorsList()) | |
| } | |
| , | |
| this.rejectAllEvent = function(e, t) { | |
| void 0 === e && (e = !1), | |
| void 0 === t && (t = !1), | |
| o.closeOptanonAlertBox(), | |
| Ro.isIABCrossConsentEnabled() ? vo.thirdPartyiFrameLoaded ? o.rejectAll(e, t) : vo.thirdPartyiFramePromise.then(function() { | |
| o.rejectAll(e, t) | |
| }) : o.rejectAll(e, t) | |
| } | |
| } | |
| var ts, os = (ns.prototype.initBanner = function() { | |
| this.canImpliedConsentLandingPage(), | |
| lo.moduleInitializer.CookieSPAEnabled ? To(window).on("otloadbanner", this.windowLoadBanner.bind(this)) : To(window).one("otloadbanner", this.windowLoadBanner.bind(this)) | |
| } | |
| , | |
| ns.prototype.insertCSBtnHtmlAndCss = function(e) { | |
| document.getElementById("onetrust-style").innerHTML += vn.csBtnGroup.css; | |
| var t = document.createElement("div"); | |
| To(t).html(vn.csBtnGroup.html); | |
| var o = t.querySelector("#ot-sdk-btn-floating"); | |
| e && o && To(o).removeClass("ot-hide"), | |
| To("#onetrust-consent-sdk").append(o), | |
| ko.cookiePersistentLogo && (ko.cookiePersistentLogo.includes("ot_guard_logo.svg") ? this.applyPersistentSvgOnDOM() : To(".ot-floating-button__front, .ot-floating-button__back").addClass("custom-persistent-icon")) | |
| } | |
| , | |
| ns.prototype.applyPersistentSvgOnDOM = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return [4, Eo.getPersistentCookieSvg()]; | |
| case 1: | |
| return t = e.sent(), | |
| To(this.FLOATING_COOKIE_FRONT_BTN).html(t), | |
| Yi.otGuardLogoResolve(!0), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| ns.prototype.canImpliedConsentLandingPage = function() { | |
| this.isImpliedConsent() && !pn.isLandingPage() && "true" === uo.readCookieParam(pt.OPTANON_CONSENT, nt) && this.checkForRefreshCloseImplied() | |
| } | |
| , | |
| ns.prototype.isImpliedConsent = function() { | |
| return ko.ConsentModel && "implied consent" === ko.ConsentModel.Name.toLowerCase() | |
| } | |
| , | |
| ns.prototype.checkForRefreshCloseImplied = function() { | |
| $i.closeOptanonAlertBox(), | |
| $i.close(!0) | |
| } | |
| , | |
| ns.prototype.hideCustomHtml = function() { | |
| var e = document.getElementById("onetrust-banner-sdk"); | |
| e && co(e, "display: none;") | |
| } | |
| , | |
| ns.prototype.shouldShowBanner = function(e) { | |
| return ko.ShowAlertNotice && !e && !ko.NoBanner && !bo.hideBanner | |
| } | |
| , | |
| ns.prototype.shouldShowPc = function(e) { | |
| return ko.ShowAlertNotice && !e && ko.NoBanner | |
| } | |
| , | |
| ns.prototype.windowLoadBanner = function() { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return this.core.substitutePlainTextScriptTags(), | |
| t = lo.moduleInitializer, | |
| To("#onetrust-consent-sdk").length ? n = document.getElementById("onetrust-consent-sdk") : (n = document.createElement("div"), | |
| To(n).attr("id", "onetrust-consent-sdk"), | |
| To(document.body).append(n)), | |
| To(".onetrust-pc-dark-filter").length || (o = document.createElement("div"), | |
| To(o).attr("class", "onetrust-pc-dark-filter"), | |
| To(o).attr("class", "ot-hide"), | |
| To(o).attr("class", "ot-fade-in"), | |
| n.firstChild ? n.insertBefore(o, n.firstChild) : To(n).append(o)), | |
| ko.IsIabEnabled && this.iab.updateIabVariableReference(), | |
| r = Ro.isAlertBoxClosedAndValid(), | |
| i = this.shouldShowBanner(r), | |
| s = this.shouldShowPc(r), | |
| bo.ntfyRequired ? (this.hideCustomHtml(), | |
| Rr.init(), | |
| Rr.changeState()) : i ? Yi.initializeAlartHtmlAndHandler() : (ko.IsGPPEnabled && Ri.setCmpDisplayStatus("disabled"), | |
| this.hideCustomHtml()), | |
| t.IsSuppressPC || (gr.insertPcHtml(), | |
| Yi.initialiseConsentNoticeHandlers(), | |
| ko.IsIabEnabled && this.iab.InitializeVendorList()), | |
| this.prepopulateCookieOrVendorPageTitle(), | |
| this.initializeHbbTvScript(), | |
| this.insertCSBtn(!i), | |
| s ? [4, Yi.toggleInfoDisplay()] : [3, 2]; | |
| case 1: | |
| e.sent(), | |
| e.label = 2; | |
| case 2: | |
| return Yi.insertCookieSettingText(), | |
| this.initializeFloatingButtonOnBannerLoad(s), | |
| ts.insertTrackigTechOrCookiePolicy(), | |
| $i.executeOptanonWrapper(), | |
| this.initializeCookieParamsOnBannerLoad(i), | |
| [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| ns.prototype.prepopulateCookieOrVendorPageTitle = function() { | |
| lo.isV2Template && (ko.GeneralVendorsEnabled ? this.iab.setListSearchValues(Le.vendors) : this.iab.setListSearchValues(Le.cookies)) | |
| } | |
| , | |
| ns.prototype.initializeFloatingButtonOnBannerLoad = function(e) { | |
| var t = To(this.FLOATING_COOKIE_BTN) | |
| , o = To(this.FLOATING_COOKIE_FRONT_BTN) | |
| , n = To(this.FLOATING_COOKIE_BACK_BTN); | |
| t.length && (t.attr("title", ko.CookieSettingButtonText), | |
| o.el[0].setAttribute("aria-label", ko.AriaOpenPreferences), | |
| n.el[0].setAttribute("aria-label", ko.AriaClosePreferences), | |
| e ? o.el[0].setAttribute("aria-hidden", !0) : n.el[0].setAttribute("aria-hidden", !0)) | |
| } | |
| , | |
| ns.prototype.initializeCookieParamsOnBannerLoad = function(e) { | |
| uo.readCookieParam(pt.OPTANON_CONSENT, $o) || Qo.writeGrpParam(pt.OPTANON_CONSENT), | |
| uo.readCookieParam(pt.OPTANON_CONSENT, Zo) || Qo.writeHstParam(pt.OPTANON_CONSENT), | |
| bo.showGeneralVendors && !uo.readCookieParam(pt.OPTANON_CONSENT, en) && Qo.writeGenVenCookieParam(pt.OPTANON_CONSENT), | |
| bo.vsIsActiveAndOptOut && !uo.readCookieParam(pt.OPTANON_CONSENT, tn) && Qo.writeVSConsentCookieParam(pt.OPTANON_CONSENT), | |
| e && $n.setBannerFocus() | |
| } | |
| , | |
| ns.prototype.initializeHbbTvScript = function() { | |
| if (lo.moduleInitializer.RemoteActionsEnabled) { | |
| var e = document.getElementById("hbbtv"); | |
| e && e.remove(); | |
| var t = document.createElement("script"); | |
| t.id = "hbbtv", | |
| t.src = bo.storageBaseURL + "/scripttemplates/" + lo.moduleInitializer.Version + "/hbbtv.js", | |
| t.type = "text/javascript", | |
| To(document.body).append(t) | |
| } | |
| } | |
| , | |
| ns.prototype.insertCSBtn = function(e) { | |
| vn.csBtnGroup && (this.insertCSBtnHtmlAndCss(e), | |
| Yi.initFlgtCkStgBtnEventHandlers()) | |
| } | |
| , | |
| ns.prototype.insertTrackingTechnologies = function() { | |
| if (To("#ot-sdk-cookie-policy, #optanon-cookie-policy").length) | |
| if (window.OnetrustCookiePolicy && window.OnetrustCookiePolicy.InsertCookiePolicyHtml) | |
| window.OnetrustCookiePolicy.InsertCookiePolicyHtml(wo, ko, To); | |
| else { | |
| var e = document.createElement("script"); | |
| e.id = "cookie-policy-script", | |
| e.onload = function() { | |
| return window.OnetrustCookiePolicy.InsertCookiePolicyHtml(wo, ko, To) | |
| } | |
| , | |
| e.type = "text/javascript", | |
| e.src = bo.storageBaseURL + "/scripttemplates/" + lo.moduleInitializer.Version + "/trackingTechnologies.js", | |
| document.head.appendChild(e) | |
| } | |
| } | |
| , | |
| ns.prototype.insertTrackigTechOrCookiePolicy = function() { | |
| lo.fp.CookieV2TrackingTechnologies ? ts.insertTrackingTechnologies() : ci.insertCookiePolicyHtml() | |
| } | |
| , | |
| ns); | |
| function ns() { | |
| this.iab = ar, | |
| this.core = rr, | |
| this.FLOATING_COOKIE_BTN = "#ot-sdk-btn-floating", | |
| this.FLOATING_COOKIE_FRONT_BTN = "#ot-sdk-btn-floating .ot-floating-button__front .ot-floating-button__open", | |
| this.FLOATING_COOKIE_BACK_BTN = "#ot-sdk-btn-floating .ot-floating-button__back .ot-floating-button__close" | |
| } | |
| var rs, is, ss = (e(as, rs = hi), | |
| as.prototype.Close = function(e) { | |
| $i.closeBanner(!1), | |
| window.location.href = "http://otsdk//consentChanged" | |
| } | |
| , | |
| as.prototype.RejectAll = function(e) { | |
| $i.rejectAllEvent(), | |
| window.location.href = "http://otsdk//consentChanged" | |
| } | |
| , | |
| as.prototype.AllowAll = function(e) { | |
| $i.AllowAllV2(e), | |
| window.location.href = "http://otsdk//consentChanged" | |
| } | |
| , | |
| as.prototype.ToggleInfoDisplay = function() { | |
| Yi.toggleInfoDisplay() | |
| } | |
| , | |
| as); | |
| function as() { | |
| var e = null !== rs && rs.apply(this, arguments) || this; | |
| return e.mobileOnlineURL = vo.mobileOnlineURL, | |
| e | |
| } | |
| var ls, cs = (ds.prototype.syncConsentProfile = function(e, t, o) { | |
| void 0 === o && (o = !1), | |
| e ? (bo.dsParams.id = e.trim(), | |
| ui.setDataSubjectIdV2(e)) : e = bo.dsParams.id, | |
| o && (bo.dsParams.isAnonymous = o), | |
| t = t || bo.dsParams.token, | |
| e && t && Eo.getConsentProfile(e, t).then(function(e) { | |
| return ls.consentProfileCallback(e) | |
| }) | |
| } | |
| , | |
| ds.prototype.getConsentValue = function(e) { | |
| var t = null; | |
| switch (e) { | |
| case k[k.ACTIVE]: | |
| case k[k.ALWAYS_ACTIVE]: | |
| t = Y.Active; | |
| break; | |
| case k[k.EXPIRED]: | |
| case k[k.OPT_OUT]: | |
| case k[k.PENDING]: | |
| case k[k.WITHDRAWN]: | |
| t = Y.InActive | |
| } | |
| return t | |
| } | |
| , | |
| ds.prototype.isCookieGroup = function(e) { | |
| return !/IABV2|ISPV2|IFEV2|ISFV2/.test(e) | |
| } | |
| , | |
| ds.prototype.syncPreferences = function(e, t) { | |
| void 0 === t && (t = !1); | |
| var o = uo.getCookie(pt.ALERT_BOX_CLOSED) | |
| , n = o | |
| , r = !1 | |
| , i = !0 | |
| , s = !1 | |
| , a = ho.strToArr(uo.readCookieParam(pt.OPTANON_CONSENT, "groups")); | |
| if (e && e.preferences.length) | |
| for (var l = 0, c = e.preferences; l < c.length; l++) { | |
| var d = c[l] | |
| , p = d.status === k[k.NO_CONSENT] | |
| , u = vo.domainGrps[d.id]; | |
| if (u) | |
| if (-1 < bo.grpsSynced.indexOf(u) && (bo.syncedValidGrp = !0), | |
| p && a.length) { | |
| for (var h = -1, g = 0; g < a.length; g++) | |
| if (a[g].split(":")[0] === u) { | |
| h = g; | |
| break | |
| } | |
| -1 < h && (a.splice(h, 1), | |
| bo.grpsSynced.push(u)) | |
| } else if (!p && (!o || new Date(d.lastInteractionDate) > new Date(n))) { | |
| var C = this.getConsentValue(d.status); | |
| if (s = !0, | |
| o = d.lastInteractionDate, | |
| !t && this.isCookieGroup(u)) { | |
| var y = u + ":" + C | |
| , f = -1; | |
| for (g = 0; g < a.length; g++) { | |
| var v = a[g].split(":"); | |
| if (v[0] === u) { | |
| v[1] !== C && (a[g] = y, | |
| r = !0), | |
| f = g; | |
| break | |
| } | |
| } | |
| -1 === f && (a.push(y), | |
| r = !0) | |
| } | |
| } | |
| } | |
| else | |
| i = !1; | |
| return { | |
| alertBoxCookieVal: o, | |
| groupsConsent: a, | |
| profileFound: i, | |
| syncRequired: r, | |
| syncOnlyDate: s = s && !r | |
| } | |
| } | |
| , | |
| ds.prototype.hideBannerAndPc = function() { | |
| var e = wo.isBannerVisible(); | |
| e && wo.hideBanner(), | |
| (e || bo.isPCVisible) && (Ar.removeAddedOTCssStyles(), | |
| Dr.hideConsentNoticeV2()) | |
| } | |
| , | |
| ds.prototype.setOptanonConsentCookie = function(e, t) { | |
| if (e.syncRequired) { | |
| uo.writeCookieParam(pt.OPTANON_CONSENT, "groups", e.groupsConsent.toString()); | |
| var o = uo.getCookie(pt.OPTANON_CONSENT); | |
| uo.setCookie(pt.OPTANON_CONSENT, o, t, !1, new Date(e.alertBoxCookieVal)) | |
| } | |
| } | |
| , | |
| ds.prototype.setIabCookie = function(e, t, o) { | |
| o.syncGroups && o.syncGroups[bo.syncGrpId] && o.syncGroups[bo.syncGrpId].tcStringV2 ? uo.getCookie(pt.EU_PUB_CONSENT) !== o.syncGroups[bo.syncGrpId].tcStringV2 && (e.syncRequired = !0, | |
| uo.setCookie(pt.EU_PUB_CONSENT, o.syncGroups[bo.syncGrpId].tcStringV2, t, !1, new Date(e.alertBoxCookieVal))) : e.profileFound = !1 | |
| } | |
| , | |
| ds.prototype.setAddtlVendorsCookie = function(e, t) { | |
| ko.UseGoogleVendors && (uo.getCookie(pt.ADDITIONAL_CONSENT_STRING) || uo.setCookie(pt.ADDITIONAL_CONSENT_STRING, bo.addtlConsentVersion, t, !1, new Date(e.alertBoxCookieVal))) | |
| } | |
| , | |
| ds.prototype.createTrans = function() { | |
| var e = uo.readCookieParam(pt.OPTANON_CONSENT, "iType"); | |
| zo.createConsentTxn(!1, K[e], !1, !0) | |
| } | |
| , | |
| ds.prototype.updateGrpsDom = function() { | |
| for (var e = function(e) { | |
| var t = e.getAttribute("data-optanongroupid") | |
| , o = Mo.getGroupById(t) | |
| , n = !0 | |
| , r = ho.findIndex(bo.groupsConsent, function(e) { | |
| return e.split(":")[0] === t | |
| }); | |
| -1 < r && bo.groupsConsent[r].split(":")[1] === Y.InActive && (n = !1), | |
| tr.toggleGrpElements(e, o, n), | |
| tr.toogleSubGroupElement(e, n, !1, !0), | |
| tr.toogleSubGroupElement(e, n, !0, !0) | |
| }, t = 0, o = tr.getAllGroupElements(); t < o.length; t++) | |
| e(o[t]) | |
| } | |
| , | |
| ds.prototype.updateVendorsDom = function() { | |
| ko.IsIabEnabled && (ar.updateIabVariableReference(), | |
| Ur.toggleVendorConsent(), | |
| vo.legIntSettings.PAllowLI && (vo.legIntSettings.PShowLegIntBtn ? Ur.updateVendorLegBtns() : Ur.toggleVendorLi())) | |
| } | |
| , | |
| ds.prototype.consentProfileCallback = function(r) { | |
| return u(this, void 0, void 0, function() { | |
| var t, o, n; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return t = this.syncPreferences(r), | |
| o = ko.ReconsentFrequencyDays, | |
| n = Ro.isIABCrossConsentEnabled(), | |
| this.setOptanonConsentCookie(t, o), | |
| ko.IsIabEnabled && !n && this.setIabCookie(t, o, r), | |
| t.syncOnlyDate && (Ro.syncAlertBoxCookie(t.alertBoxCookieVal), | |
| Ro.syncCookieExpiry()), | |
| t.syncRequired && t.profileFound ? (bo.syncRequired = t.syncRequired, | |
| Ro.syncAlertBoxCookie(t.alertBoxCookieVal), | |
| this.setAddtlVendorsCookie(t, o), | |
| this.hideBannerAndPc(), | |
| vn.initGrpsAndHosts(), | |
| !n && ko.NtfyConfig.ShowNtfy && Ro.isAlertBoxClosedAndValid() ? [4, Rr.getContent()] : [3, 2]) : [3, 3]; | |
| case 1: | |
| e.sent(), | |
| Rr.init(), | |
| Rr.changeState(), | |
| e.label = 2; | |
| case 2: | |
| return ko.IsIabEnabled && (Ro.setIABCookieData(), | |
| Jo.populateVendorAndPurposeFromCookieData()), | |
| this.updateGrpsDom(), | |
| this.updateVendorsDom(), | |
| pn.setLandingPathParam(lt), | |
| rr.substitutePlainTextScriptTags(), | |
| mr.updateGtmMacros(!0), | |
| $i.executeOptanonWrapper(), | |
| [3, 4]; | |
| case 3: | |
| !t.profileFound && t.alertBoxCookieVal && this.createTrans(), | |
| e.label = 4; | |
| case 4: | |
| return [2] | |
| } | |
| }) | |
| }) | |
| } | |
| , | |
| ds); | |
| function ds() {} | |
| var ps, us = (hs.prototype.removeCookies = function() { | |
| uo.removePreview(), | |
| uo.removeOptanon(), | |
| uo.removeAlertBox(), | |
| uo.removeIab2(), | |
| uo.removeAddtlStr(), | |
| uo.removeVariant(), | |
| bo.isPreview && ps.setPreviewCookie(), | |
| bo.urlParams.get("otreset") && bo.urlParams.set("otreset", "false"); | |
| var e = window.location.pathname + "?" + bo.urlParams.toString() + window.location.hash; | |
| ps.replaceHistory(e) | |
| } | |
| , | |
| hs.prototype.setPreviewCookie = function() { | |
| var e = new Date; | |
| e.setTime(e.getTime() + 864e5); | |
| var t = bo.geoFromUrl ? "&geo=" + bo.geoFromUrl : "" | |
| , o = "expiry=" + e.toISOString() + t; | |
| uo.setCookie(pt.OT_PREVIEW, o, 1, !1) | |
| } | |
| , | |
| hs.prototype.bindStopPreviewEvent = function() { | |
| (window.attachEvent || window.addEventListener)("message", function(e) { | |
| return ps.onMessage(e) | |
| }) | |
| } | |
| , | |
| hs.prototype.replaceHistory = function(e) { | |
| history.pushState({}, "", e), | |
| location.reload() | |
| } | |
| , | |
| hs.prototype.onMessage = function(e) { | |
| "string" == typeof e.data && e.data === ps.CLEAR_COOKIES && (ps.removeCookies(), | |
| e.source && e.source.postMessage && e.source.postMessage(ps.CLEARED_COOKIES, e.origin)) | |
| } | |
| , | |
| hs); | |
| function hs() { | |
| this.CLEAR_COOKIES = "CLEAR_OT_COOKIES", | |
| this.CLEARED_COOKIES = "CLEARED_OT_COOKIES" | |
| } | |
| function gs(e) { | |
| if (e) { | |
| var t = window.atob(e); | |
| return Function('"use strict"; return ' + t)() | |
| } | |
| } | |
| ot.initPolyfill(), | |
| uo = new go, | |
| wo = new Oo, | |
| vo = new yo, | |
| Ao = new Lo, | |
| ps = new us, | |
| function() { | |
| var e, t = window.otStubData; | |
| if (t) { | |
| lo.moduleInitializer = t.domainData, | |
| lo.fp = lo.moduleInitializer.TenantFeatures, | |
| bo.isAMP = t.isAmp, | |
| bo.dataDomainId = t.domainId, | |
| bo.isPreview = t.isPreview, | |
| bo.urlParams = t.urlParams, | |
| bo.isV2Stub = t.isV2Stub || !1, | |
| vo.gtmUpdatedinStub = t.gtmUpdated, | |
| t.isReset ? ps.removeCookies() : t.isPreview && ps.setPreviewCookie(), | |
| vo.setBannerScriptElement(t.stubElement), | |
| vo.setRegionRule(t.regionRule), | |
| lo.fp.CookieV2TargetedTemplates && (vo.conditionalLogicEnabled = !(null === (e = vo.getRegionRule().Conditions) || void 0 === e || !e.length), | |
| vo.conditionalLogicEnabled && (function() { | |
| for (var e = vo.getRegionRule(), t = 0; t < e.Conditions.length; t++) | |
| try { | |
| if (gs(e.Conditions[t].Expression)) | |
| return vo.Condition = e.Conditions[t] | |
| } catch (e) { | |
| console.warn(e); | |
| continue | |
| } | |
| vo.allConditionsFailed = !0 | |
| }(), | |
| vo.canUseConditionalLogic = !vo.allConditionsFailed)), | |
| bo.userLocation = t.userLocation, | |
| bo.crossOrigin = t.crossOrigin, | |
| vo.bannerDataParentURL = t.bannerBaseDataURL, | |
| vo.mobileOnlineURL = b(vo.mobileOnlineURL, t.mobileOnlineURL); | |
| var o = vo.getRegionRule(); | |
| vo.multiVariantTestingEnabled = lo.moduleInitializer.MultiVariantTestingEnabled && 0 < o.Variants.length && wo.isDateCurrent(o.TestEndTime), | |
| vo.otDataLayer = t.otDataLayer, | |
| bo.grpsSynced = t.grpsSynced || [], | |
| bo.isIabSynced = t.isIabSynced, | |
| bo.isGacSynced = t.isGacSynced, | |
| bo.syncRequired = t.isIabSynced || t.isGacSynced || t.grpsSynced && 0 < t.grpsSynced.length, | |
| bo.consentPreferences = t.preferences, | |
| bo.syncGrpId = t.syncGrpId, | |
| bo.consentApi = t.consentApi, | |
| bo.tenantId = t.tenantId, | |
| bo.geoFromUrl = t.geoFromUrl, | |
| bo.nonce = t.nonce, | |
| bo.setAttributePolyfillIsActive = t.setAttributePolyfillIsActive, | |
| bo.storageBaseURL = t.storageBaseURL, | |
| vo.previewMode = t.previewMode, | |
| Ao.populateLangSwitcherPlhdr(), | |
| window.otStubData = { | |
| userLocation: bo.userLocation | |
| }, | |
| window.OneTrustStub = null | |
| } | |
| }(), | |
| function() { | |
| u(this, void 0, void 0, function() { | |
| var t, o, n, r, i, s; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return Mo = new Uo, | |
| tr = new or, | |
| Yn = new Xn, | |
| ar = new lr, | |
| rr = new ir, | |
| $i = new Zi, | |
| Yi = new Xi, | |
| gr = new vr, | |
| Ui = new ji, | |
| ts = new os, | |
| lo.fp.CookieV2TrackingTechnologies || (ci = new di), | |
| Yr = new ri, | |
| rn = new sn, | |
| vn = new Wn, | |
| mr = new br, | |
| si = new ai, | |
| Cn = new yn, | |
| Fo = new qo, | |
| ls = new cs, | |
| Ur = new jr, | |
| Eo = new Vo, | |
| $n = new Zn, | |
| Dr = new Hr, | |
| pr = new ur, | |
| Ki = new Wi, | |
| lo.moduleInitializer.MobileSDK ? is = new ss : ui = new hi, | |
| Jo = new Yo, | |
| vo.setGCMcallback(), | |
| t = vo.getRegionRule(), | |
| o = vo.canUseConditionalLogic ? vo.Condition.UseGoogleVendors : t.UseGoogleVendors, | |
| "IAB2" !== vo.getRegionRuleType() ? [3, 2] : [4, Promise.all([Eo.getLangJson(), Eo.fetchGvlObj(), o ? Eo.fetchGoogleVendors() : Promise.resolve(null), Eo.loadCMP()])]; | |
| case 1: | |
| return s = e.sent(), | |
| n = s[0], | |
| r = s[1], | |
| i = s[2], | |
| bo.gvlObj = r, | |
| bo.addtlVendorsList = i ? i.vendors : null, | |
| [3, 4]; | |
| case 2: | |
| return [4, Eo.getLangJson()]; | |
| case 3: | |
| n = e.sent(), | |
| e.label = 4; | |
| case 4: | |
| return n.DomainData.IsGPPEnabled ? [4, Eo.loadGPP()] : [3, 6]; | |
| case 5: | |
| e.sent(), | |
| Ri = new qi, | |
| e.label = 6; | |
| case 6: | |
| return function(r) { | |
| u(this, void 0, void 0, function() { | |
| var o, n; | |
| return g(this, function(e) { | |
| switch (e.label) { | |
| case 0: | |
| return window.OneTrust = window.Optanon = Object.assign({}, window.OneTrust, function(e) { | |
| var t, o = lo.moduleInitializer.MobileSDK; | |
| t = o ? is : ui; | |
| var n = { | |
| AllowAll: t.AllowAll, | |
| BlockGoogleAnalytics: t.BlockGoogleAnalytics, | |
| Close: t.Close, | |
| getCSS: t.getCSS, | |
| GetDomainData: t.GetDomainData, | |
| getGeolocationData: t.getGeolocationData, | |
| getHTML: t.getHTML, | |
| Init: t.Init, | |
| InitializeBanner: t.InitializeBanner, | |
| initializeCookiePolicyHtml: t.initCookiePolicyAndSettings, | |
| InsertHtml: t.InsertHtml, | |
| InsertScript: t.InsertScript, | |
| IsAlertBoxClosed: t.IsAlertBoxClosed, | |
| IsAlertBoxClosedAndValid: t.IsAlertBoxClosedAndValid, | |
| LoadBanner: t.LoadBanner, | |
| OnConsentChanged: Cn.OnConsentChanged, | |
| ReconsentGroups: t.ReconsentGroups, | |
| RejectAll: t.RejectAll, | |
| SetAlertBoxClosed: t.SetAlertBoxClosed, | |
| setGeoLocation: t.setGeoLocation, | |
| ToggleInfoDisplay: t.ToggleInfoDisplay, | |
| TriggerGoogleAnalyticsEvent: t.TriggerGoogleAnalyticsEvent, | |
| useGeoLocationService: t.useGeoLocationService, | |
| FetchAndDownloadPC: t.FetchAndDownloadPC, | |
| changeLanguage: t.changeLang, | |
| testLog: t.getTestLogData, | |
| UpdateConsent: t.updateSingularConsent, | |
| IsVendorServiceEnabled: t.vendorServiceEnabled, | |
| UpdateGCM: t.updateGCM | |
| }; | |
| e.IsConsentLoggingEnabled && (n.getDataSubjectId = t.getDataSubjectId, | |
| n.setConsentProfile = t.setConsentProfile, | |
| n.setDataSubjectId = t.setDataSubjectIdV2, | |
| bo.isV2Stub && (n.syncConsentProfile = ls.syncConsentProfile)); | |
| o && (n.mobileOnlineURL = t.mobileOnlineURL, | |
| n.otCookieData = bo.otCookieData); | |
| e.IsIabEnabled && (n.updateConsentFromCookies = Cn.updateConsentFromCookie, | |
| n.getPingRequest = Jo.getPingRequestForTcf, | |
| n.getVendorConsentsRequestV2 = Jo.getVendorConsentsRequestV2, | |
| n.showVendorsList = t.showVendorsList); | |
| return n | |
| }(r.DomainData)), | |
| Ro.initializeBannerVariables(r), | |
| Qo = new on, | |
| ln = new cn, | |
| zo = new Ko, | |
| Ar = new Gr, | |
| pn = new hn, | |
| Kr = new Wr, | |
| Rr = new qr, | |
| function() { | |
| var o = window.OTExternalConsent; | |
| if (o && o.consentedDate && (o.groups || o.tcString || o.addtlString)) { | |
| var n = [] | |
| , e = o.groups.split(","); | |
| e.forEach(function(e) { | |
| var t = e.split(":"); | |
| n.push({ | |
| lastInteractionDate: o.consentedDate, | |
| status: "1" === t[1] ? k[k.ACTIVE] : k[k.OPT_OUT], | |
| id: t[0] | |
| }), | |
| bo.grpsSynced.push(t[0]) | |
| }), | |
| bo.consentPreferences = { | |
| preferences: n, | |
| syncGroups: null | |
| }, | |
| bo.syncRequired = !0, | |
| Qo.updateGroupsInCookie(pt.OPTANON_CONSENT, e), | |
| uo.setCookie(pt.ALERT_BOX_CLOSED, o.consentedDate, 365), | |
| o.tcString && (bo.isIabSynced = !0, | |
| uo.setCookie(pt.EU_PUB_CONSENT, o.tcString, 365)), | |
| o.addtlString && (bo.isGacSynced = !0, | |
| uo.setCookie(pt.ADDITIONAL_CONSENT_STRING, "" + o.addtlString, 365)) | |
| } | |
| }(), | |
| bo.isPreview && (Ro.syncOtPreviewCookie(), | |
| ps.bindStopPreviewEvent()), | |
| o = ls.syncPreferences(bo.consentPreferences, !0), | |
| (bo.syncRequired || o.syncRequired) && Ro.syncAlertBoxCookie(o.alertBoxCookieVal), | |
| Ro.syncCookieExpiry(), | |
| t = window.OneTrust.dataSubjectParams || {}, | |
| (bo.dsParams = t).id && ui.setDataSubjectIdV2(t.id, t.isAnonymous), | |
| vo.multiVariantTestingEnabled && vo.selectedVariant && uo.setCookie(pt.SELECTED_VARIANT, vo.selectedVariant.Id, ko.ReconsentFrequencyDays), | |
| [4, Jo.initializeIABModule()]; | |
| case 1: | |
| return e.sent(), | |
| window.OneTrust.Init(!0), | |
| r.DomainData.IsGPPEnabled && Ri.initGppConsent(), | |
| [4, vn.fetchAssets()]; | |
| case 2: | |
| return (e.sent(), | |
| ts.initBanner(), | |
| Cn.assetResolve(!0), | |
| Yr.initialiseCssReferences(), | |
| n = Ro.isIABCrossConsentEnabled(), | |
| (bo.syncedValidGrp || bo.isIabSynced || bo.isGacSynced) && !n && ko.NtfyConfig.ShowNtfy && Ro.isAlertBoxClosedAndValid()) ? (bo.ntfyRequired = !0, | |
| [4, Rr.getContent()]) : [3, 4]; | |
| case 3: | |
| e.sent(), | |
| e.label = 4; | |
| case 4: | |
| return n || window.OneTrust.LoadBanner(), | |
| [2] | |
| } | |
| var t | |
| }) | |
| }) | |
| }(n), | |
| lo.moduleInitializer.WebFormIntegrationEnabled && function() { | |
| var e = window.otStubData | |
| , t = document.createElement("script"); | |
| t.type = "text/javascript", | |
| t.src = lo.moduleInitializer.WebFormSrcUrl, | |
| t.setAttribute("dataId", lo.moduleInitializer.TenantGuid), | |
| t.setAttribute("worker", lo.moduleInitializer.WebFormWorkerUrl), | |
| e.charset && t.setAttribute("charset", e.charset); | |
| e.crossOrigin && t.setAttribute("crossorigin", e.crossOrigin); | |
| document.getElementsByTagName("head")[0].appendChild(t) | |
| }(), | |
| [2] | |
| } | |
| }) | |
| }) | |
| }() | |
| }(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tommyalvarez So does OneTrust automatically send gtag events such as:
gtag("event", "trackOptanonEvent", {
optanonCategory: "OneTrust Cookie Consent",
optanonAction: "Preference Center Opened From Function"
})