Untitled diff
556 lines
(function(a, b, c, d) {
(function(a, b, c, d) {
var e = {
var e = {
exports: {}
exports: {}
};
};
e.exports;
e.exports;
(function() {
(function() {
var f = a.fbq;
var f = a.fbq;
f.execStart = a.performance && a.performance.now && a.performance.now();
f.execStart = a.performance && a.performance.now && a.performance.now();
if (! function() {
if (! function() {
var b = a.postMessage || function() {};
var b = a.postMessage || function() {};
if (!f) {
if (!f) {
b({
b({
action: "FB_LOG",
action: "FB_LOG",
logType: "Facebook Pixel Error",
logType: "Facebook Pixel Error",
logMessage: "Pixel code is not installed correctly on this page"
logMessage: "Pixel code is not installed correctly on this page"
}, "*");
}, "*");
"error" in console && console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");
"error" in console && console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");
return !1
return !1
}
}
return !0
return !0
}()) return;
}()) return;
var g = function() {
var g = function() {
function a(a, b) {
function a(a, b) {
var c = [],
var c = [],
d = !0,
d = !0,
e = !1,
e = !1,
f = undefined;
f = undefined;
try {
try {
for (var a = a[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), g; !(d = (g = a.next()).done); d = !0) {
for (var a = a[typeof Symbol === "function" ? Symbol.iterator : "@@iterator"](), g; !(d = (g = a.next()).done); d = !0) {
c.push(g.value);
c.push(g.value);
if (b && c.length === b) break
if (b && c.length === b) break
}
}
} catch (a) {
} catch (a) {
e = !0, f = a
e = !0, f = a
} finally {
} finally {
try {
try {
!d && a["return"] && a["return"]()
!d && a["return"] && a["return"]()
} finally {
} finally {
if (e) throw f
if (e) throw f
}
}
}
}
return c
return c
}
}
return function(b, c) {
return function(b, c) {
if (Array.isArray(b)) return b;
if (Array.isArray(b)) return b;
else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(b)) return a(b, c);
else if ((typeof Symbol === "function" ? Symbol.iterator : "@@iterator") in Object(b)) return a(b, c);
else throw new TypeError("Invalid attempt to destructure non-iterable instance")
else throw new TypeError("Invalid attempt to destructure non-iterable instance")
}
}
}(),
}(),
h = typeof Symbol === "function" && typeof(typeof Symbol === "function" ? Symbol.iterator : "@@iterator") === "symbol" ? function(a) {
h = typeof Symbol === "function" && typeof(typeof Symbol === "function" ? Symbol.iterator : "@@iterator") === "symbol" ? function(a) {
return typeof a
return typeof a
} : function(a) {
} : function(a) {
return a && typeof Symbol === "function" && a.constructor === Symbol && a !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof a
return a && typeof Symbol === "function" && a.constructor === Symbol && a !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof a
},
},
i = function() {
i = function() {
function a(a, b) {
function a(a, b) {
for (var c = 0; c < b.length; c++) {
for (var c = 0; c < b.length; c++) {
var d = b[c];
var d = b[c];
d.enumerable = d.enumerable || !1;
d.enumerable = d.enumerable || !1;
d.configurable = !0;
d.configurable = !0;
"value" in d && (d.writable = !0);
"value" in d && (d.writable = !0);
Object.defineProperty(a, d.key, d)
Object.defineProperty(a, d.key, d)
}
}
}
}
return function(b, c, d) {
return function(b, c, d) {
c && a(b.prototype, c);
c && a(b.prototype, c);
d && a(b, d);
d && a(b, d);
return b
return b
}
}
}();
}();
function j(a) {
function j(a) {
if (Array.isArray(a)) {
if (Array.isArray(a)) {
for (var b = 0, c = Array(a.length); b < a.length; b++) c[b] = a[b];
for (var b = 0, c = Array(a.length); b < a.length; b++) c[b] = a[b];
return c
return c
} else return Array.from(a)
} else return Array.from(a)
}
}
function k(a, b) {
function k(a, b) {
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function")
}
}
f.__fbeventsModules || (f.__fbeventsModules = {}, f.__fbeventsResolvedModules = {}, f.getFbeventsModules = function(a) {
f.__fbeventsModules || (f.__fbeventsModules = {}, f.__fbeventsResolvedModules = {}, f.getFbeventsModules = function(a) {
f.__fbeventsResolvedModules[a] || (f.__fbeventsResolvedModules[a] = f.__fbeventsModules[a]());
f.__fbeventsResolvedModules[a] || (f.__fbeventsResolvedModules[a] = f.__fbeventsModules[a]());
return f.__fbeventsResolvedModules[a]
return f.__fbeventsResolvedModules[a]
}, f.fbIsModuleLoaded = function(a) {
}, f.fbIsModuleLoaded = function(a) {
return !!f.__fbeventsModules[a]
return !!f.__fbeventsModules[a]
}, f.ensureModuleRegistered = function(b, a) {
}, f.ensureModuleRegistered = function(b, a) {
f.fbIsModuleLoaded(b) || (f.__fbeventsModules[b] = a)
f.fbIsModuleLoaded(b) || (f.__fbeventsModules[b] = a)
});
});
f.ensureModuleRegistered("SignalsEventValidation", function() {
f.ensureModuleRegistered("SignalsEventValidation", function() {
return function(g, h, i, j) {
return function(g, h, i, j) {
var k = {
var k = {
exports: {}
exports: {}
};
};
k.exports;
k.exports;
(function() {
(function() {
"use strict";
"use strict";
var a = f.getFbeventsModules("SignalsFBEventsLogging"),
var a = f.getFbeventsModules("SignalsFBEventsLogging"),
b = a.logUserError,
b = a.logUserError,
c = /^[+-]?\d+(\.\d+)?$/,
c = /^[+-]?\d+(\.\d+)?$/,
d = "number",
d = "number",
e = "currency_code",
e = "currency_code",
g = {
g = {
AED: 1,
AED: 1,
ARS: 1,
ARS: 1,
AUD: 1,
AUD: 1,
BOB: 1,
BOB: 1,
BRL: 1,
BRL: 1,
CAD: 1,
CAD: 1,
CHF: 1,
CHF: 1,
CLP: 1,
CLP: 1,
CNY: 1,
CNY: 1,
COP: 1,
COP: 1,
CRC: 1,
CRC: 1,
CZK: 1,
CZK: 1,
DKK: 1,
DKK: 1,
EUR: 1,
EUR: 1,
GBP: 1,
GBP: 1,
GTQ: 1,
GTQ: 1,
HKD: 1,
HKD: 1,
HNL: 1,
HNL: 1,
HUF: 1,
HUF: 1,
IDR: 1,
IDR: 1,
ILS: 1,
ILS: 1,
INR: 1,
INR: 1,
ISK: 1,
ISK: 1,
JPY: 1,
JPY: 1,
KRW: 1,
KRW: 1,
MOP: 1,
MOP: 1,
MXN: 1,
MXN: 1,
MYR: 1,
MYR: 1,
NIO: 1,
NIO: 1,
NOK: 1,
NOK: 1,
NZD: 1,
NZD: 1,
PEN: 1,
PEN: 1,
PHP: 1,
PHP: 1,
PLN: 1,
PLN: 1,
PYG: 1,
PYG: 1,
QAR: 1,
QAR: 1,
RON: 1,
RON: 1,
RUB: 1,
RUB: 1,
SAR: 1,
SAR: 1,
SEK: 1,
SEK: 1,
SGD: 1,
SGD: 1,
THB: 1,
THB: 1,
TRY: 1,
TRY: 1,
TWD: 1,
TWD: 1,
USD: 1,
USD: 1,
UYU: 1,
UYU: 1,
VEF: 1,
VEF: 1,
VND: 1,
VND: 1,
ZAR: 1
ZAR: 1
};
};
a = {
a = {
value: {
value: {
type: d,
type: d,
isRequired: !0
isRequired: !0
},
},
currency: {
currency: {
type: e,
type: e,
isRequired: !0
isRequired: !0
}
}
};
};
var h = {
var h = {
PageView: {},
PageView: {},
ViewContent: {},
ViewContent: {},
Search: {},
Search: {},
AddToCart: {},
AddToCart: {},
AddToWishlist: {},
AddToWishlist: {},
InitiateCheckout: {},
InitiateCheckout: {},
PixelInitialized: {},
PixelInitialized: {},
AddPaymentInfo: {},
AddPaymentInfo: {},
Purchase: {
Purchase: {
validationSchema: a
validationSchema: a
},
},
Lead: {},
Lead: {},
CompleteRegistration: {},
CompleteRegistration: {},
CustomEvent: {
CustomEvent: {
validationSchema: {
validationSchema: {
event: {
event: {
isRequired: !0
isRequired: !0
}
}
}
}
}
}
},
},
i = {
i = {
agent: !0,
agent: !0,
automaticmatchingconfig: !0,
automaticmatchingconfig: !0,
codeless: !0
codeless: !0
},
},
j = Object.prototype.hasOwnProperty;
j = Object.prototype.hasOwnProperty;
function l() {
function l() {
return {
return {
error: null,
error: null,
warnings: []
warnings: []
}
}
}
}
function m(a) {
function m(a) {
return {
return {
error: a,
error: a,
warnings: []
warnings: []
}
}
}
}
function n(a) {
function n(a) {
return {
return {
error: null,
error: null,
warnings: a
warnings: a
}
}
}
}
function o(a) {
function o(a) {
if (a) {
if (a) {
a = a.toLowerCase();
a = a.toLowerCase();
var b = i[a];
var b = i[a];
if (!b) return m({
if (!b) return m({
type: "UNSUPPORTED_METADATA_ARGUMENT",
type: "UNSUPPORTED_METADATA_ARGUMENT",
metadata: a
metadata: a
})
})
}
}
return l()
return l()
}
}
function p(a) {
function p(a) {
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var b = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
if (!a) return m({
if (!a) return m({
type: "NO_EVENT_NAME"
type: "NO_EVENT_NAME"
});
});
var c = h[a];
var c = h[a];
return !c ? n([{
return !c ? n([{
type: "NONSTANDARD_EVENT",
type: "NONSTANDARD_EVENT",
eventName: a
eventName: a
}]) : q(a, b, c)
}]) : q(a, b, c)
}
}
function q(a, b, f) {
function q(a, b, f) {
f = f.validationSchema;
f = f.validationSchema;
var h = [];
var h = [];
for (var i in f)
for (var i in f)
if (j.call(f, i)) {
if (j.call(f, i)) {
var k = f[i],
var k = f[i],
l = b[i];
l = b[i];
if (k) {
if (k) {
if (k.isRequired && !j.call(b, i)) return m({
if (k.isRequired && !j.call(b, i)) return m({
type: "REQUIRED_PARAM_MISSING",
type: "REQUIRED_PARAM_MISSING",
param: i,
param: i,
eventName: a
eventName: a
});
});
if (k.type && typeof k.type === "string") {
if (k.type && typeof k.type === "string") {
var o = !0;
var o = !0;
switch (k.type) {
switch (k.type) {
case d:
case d:
k = (typeof l === "string" || typeof l === "number") && c.test("" + l);
k = (typeof l === "string" || typeof l === "number") && c.test("" + l);
k && Number(l) < 0 && h.push({
k && Number(l) < 0 && h.push({
type: "NEGATIVE_EVENT_PARAM",
type: "NEGATIVE_EVENT_PARAM",
param: i,
param: i,
eventName: a ? a : "null"
eventName: a ? a : "null"
});
});
o = k;
o = k;
break;
break;
case e:
case e:
o = typeof l === "string" && !!g[l.toUpperCase()];
o = typeof l === "string" && !!g[l.toUpperCase()];
break
break
}
}
if (!o) return m({
if (!o) return m({
type: "INVALID_PARAM",
type: "INVALID_PARAM",
param: i,
param: i,
eventName: a
eventName: a
})
})
}
}
}
}
}
}
return n(h)
return n(h)
}
}
function r(a, c) {
function r(a, c) {
a = p(a, c);
a = p(a, c);
a.error && b(a.error);
a.error && b(a.error);
if (a.warnings)
if (a.warnings)
for (var c = 0; c < a.warnings.length; c++) b(a.warnings[c]);
for (var c = 0; c < a.warnings.length; c++) b(a.warnings[c]);
return a
return a
}
}
k.exports = {
k.exports = {
validateMetadata: o,
validateMetadata: o,
validateEvent: p,
validateEvent: p,
validateEventAndLog: r
validateEventAndLog: r
}
}
})();
})();
return k.exports
return k.exports
}(a, b, c, d)
}(a, b, c, d)
});
});
f.ensureModuleRegistered("SignalsEvents", function() {
f.ensureModuleRegistered("SignalsEvents", function() {
return function(g, h, j, d) {
return function(g, h, j, d) {
var e = {
var e = {
exports: {}
exports: {}
};
};
e.exports;
e.exports;
(function() {
(function() {
"use strict";
"use strict";
var a = f.getFbeventsModules("SignalsFBEventsLogging");
var a = f.getFbeventsModules("SignalsFBEventsLogging");
a = a.logError;
a = a.logError;
var b = f.getFbeventsModules("SignalsFBEventsUtils"),
var b = f.getFbeventsModules("SignalsFBEventsUtils"),
c = b.keys,
c = b.keys,
d = 0;
d = 0;
b = function() {
b = function() {
function b() {
function b() {
var a = this;
var a = this;
k(this, b);
k(this, b);
this._listeners = {};
this._listeners = {};
this.on = function() {
this.on = function() {
return a._on.apply(a, arguments)
return a._on.apply(a, arguments)
};
};
this.once = function() {
this.once = function() {
return a._once.apply(a, arguments)
return a._once.apply(a, arguments)
};
};
this.trigger = function(b) {
this.trigger = function(b) {
for (var c = arguments.length, d = Array(c > 1 ? c - 1 : 0), e = 1; e < c; e++) d[e - 1] = arguments[e];
for (var c = arguments.length, d = Array(c > 1 ? c - 1 : 0), e = 1; e < c; e++) d[e - 1] = arguments[e];
return a._trigger.apply(a, [b].concat(d))
return a._trigger.apply(a, [b].concat(d))
};
};
this.unsubscribe = function() {
this.unsubscribe = function() {
return a._unsubscribe.apply(a, arguments)
return a._unsubscribe.apply(a, arguments)
}
}
}
}
i(b, [{
i(b, [{
key: "_on",
key: "_on",
value: function(a, b) {
value: function(a, b) {
var c = this,
var c = this,
e = d++;
e = d++;
this._listeners[a] || (this._listeners[a] = {});
this._listeners[a] || (this._listeners[a] = {});
this._listeners[a][e.toString()] = b;
this._listeners[a][e.toString()] = b;
return function() {
return function() {
c.unsubscribe(a, e.toString())
c.unsubscribe(a, e.toString())
}
}
}
}
}, {
}, {
key: "_once",
key: "_once",
value: function(a, b) {
value: function(a, b) {
var c = arguments,
var c = arguments,
d = this.on(a, function() {
d = this.on(a, function() {
d();
d();
return b.apply(null, c)
return b.apply(null, c)
});
});
return d
return d
}
}
}, {
}, {
key: "_trigger",
key: "_trigger",
value: function(b) {
value: function(b) {
var d = this;
var d = this;
for (var e = arguments.length, f = Array(e > 1 ? e - 1 : 0), g = 1; g < e; g++) f[g - 1] = arguments[g];
for (var e = arguments.length, f = Array(e > 1 ? e - 1 : 0), g = 1; g < e; g++) f[g - 1] = arguments[g];
return !this._listeners[b] ? [] : c(this._listeners[b]).map(function(c) {
return !this._listeners[b] ? [] : c(this._listeners[b]).map(function(c) {
try {
try {
return !d._listeners[b][c] ? [] : d._listeners[b][c].apply(null, f)
return !d._listeners[b][c] ? [] : d._listeners[b][c].apply(null, f)
} catch (b) {
} catch (b) {
a(b)
a(b)
}
}
return null
return null
})
})
}
}
}, {
}, {
key: "_unsubscribe",
key: "_unsubscribe",
value: function(a, b) {
value: function(a, b) {
var d = this._listeners[a];
var d = this._listeners[a];
d && d[b] && (delete d[b], c(d).length === 0 && delete this._listeners[a])
d && d[b] && (delete d[b], c(d).length === 0 && delete this._listeners[a])
}
}
}]);
}]);
return b
return b
}();
}();
b = new b();
b = new b();
e.exports = b
e.exports = b
})();
})();
return e.exports
return e.exports
}(a, b, c, d)
}(a, b, c, d)
});
});
f.ensureModuleRegistered("SignalsFBEventsConfigStore", function() {
f.ensureModuleRegistered("SignalsFBEventsConfigStore", function() {
return function(f, g, h, j) {
return function(f, g, h, j) {
var e = {
var e = {
exports: {}
exports: {}
};
};
e.exports;
e.exports;
(function() {
(function() {
"use strict";
"use strict";
var a = Object.assign || function(a) {
var a = Object.assign || function(a) {
for (var b = 1; b < arguments.length; b++) {
for (var b = 1; b < arguments.length; b++) {
var c = arguments[b];
var c = arguments[b];
for (var d in c) Object.prototype.hasOwnProperty.call(c, d) && (a[d] = c[d])
for (var d in c) Object.prototype.hasOwnProperty.call(c, d) && (a[d] = c[d])
}
}
return a
return a
},
},
b = function() {
b = function() {
function b() {
function b() {
k(this, b), this._config = {}
k(this, b), this._config = {}
}
}
i(b, [{
i(b, [{
key: "_getPixelConfig",
key: "_getPixelConfig",
value: function(a) {
value: function(a) {
this._config[a] == null && (this._config[a] = {});
this._config[a] == null && (this._config[a] = {});
return this._config[a]
return this._config[a]
}
}
}, {
}, {
key: "set",
key: "set",
value: function(b, c, d) {
value: function(b, c, d) {
c === "automaticMatching" && d.selectedMatchKeys ? this._getPixelConfig(b).automaticMatching = a({}, d) : c === "inferredEvents" && d.buttonSelector && (this._getPixelConfig(b).inferredEvents = a({}, d));
c === "automaticMatching" && d.selectedMatchKeys ? this._getPixelConfig(b).automaticMatching = a({}, d) : c === "inferredEvents" && d.buttonSelector && (this._getPixelConfig(b).inferredEvents = a({}, d));
return this
return this
}
}
}, {
}, {
key: "getAutomaticMatchingConfig",
key: "getAutomaticMatchingConfig",
value: function(a) {
value: function(a) {
return this._getPixelConfig(a).automaticMatching
return this._getPixelConfig(a).automaticMatching
}
}
}, {
}, {
key: "getInferredEventsConfig",
key: "getInferredEventsConfig",
value: function(a) {
value: function(a) {
return this._getPixelConfig(a).inferredEvents
return this._getPixelConfig(a).inferredEvents
}
}
}]);
}]);
return b
return b
}();
}();
e.exports = new b()
e.exports = new b()
})();
})();
return e.exports
return e.exports
}(a, b, c, d)
}(a, b, c, d)
});
});
f.ensureModuleRegistered("SignalsFBEventsFBQ", function() {
f.ensureModuleRegistered("SignalsFBEventsFBQ", function() {
return function(g, h, c, d) {
return function(g, h, c, d) {
var e = {
var e = {
exports: {}
exports: {}
};
};
e.exports;
e.exports;
(function() {
(function() {
"use strict";
"use strict";
var a = f.getFbeventsModules("SignalsEventValidation"),
var a = f.getFbeventsModules("SignalsEventValidation"),
b = f.getFbeventsModules("SignalsFBEventsConfigStore"),
b = f.getFbeventsModules("SignalsFBEventsConfigStore"),
c = f.getFbeventsModules("SignalsFBEventsFireLock"),
c = f.getFbeventsModules("SignalsFBEventsFireLock"),
d = f.getFbeventsModules("SignalsFBEventsJSLoader"),
d = f.getFbeventsModules("SignalsFBEventsJSLoader"),
h = f.getFbeventsModules("SignalsFBEventsLogging"),
h = f.getFbeventsModules("SignalsFBEventsLogging"),
l = f.getFbeventsModules("SignalsFBEventsOptIn");
l = f.getFbeventsModules("SignalsFBEventsOptIn");
f.getFbeventsModules("SignalsFBEventsQE");
f.getFbeventsModules("SignalsFBEventsQE");
var m = f.getFbeventsModules("SignalsFBEventsUtils"),
var m = f.getFbeventsModules("SignalsFBEventsUtils"),
n = f.getFbeventsModules("SignalsPixelEndpoint"),
n = f.getFbeventsModules("SignalsPixelEndpoint"),
o = m.each,
o = m.each,
p = m.keys,
p = m.keys,
q = m.map,
q = m.map,
r = m.some,
r = m.some,
s = h.logError,
s = h.logError,
t = h.logUserError,
t = h.logUserError,
u = {
u = {
AutomaticMatching: !0,
AutomaticMatching: !0,
Dwell: !0,
Dwell: !0,
FirstPartyCookies: !0,
FirstPartyCookies: !0,
Interaction: !0,
Interaction: !0,
InferredEvents: !0,
InferredEvents: !0,
Microdata: !0,
Microdata: !0,
MicrodataJsonLd: !0,
MicrodataJsonLd: !0,
ProxyEndpoint: !0,
ProxyEndpoint: !0,
Sessions: !0,
Sessions: !0,
TimeSpent: !0,
TimeSpent: !0,
IWL: !0,
IWL: !0,
IWLBootstrapper: !0,
IWLBootstrapper: !0,
IWLParameters: !0,
IWLParameters: !0,
GA2FBQ: !0,
GA2FBQ: !0,
BotDetection: !0
BotDetection: !0
};
};
m = ["InferredEvents", "Microdata"];
m = ["InferredEvents", "Microdata"];
var v = {
var v = {
AutomaticSetup: m
AutomaticSetup: m
},
},
w = {
w = {
AutomaticMatching: ["inferredevents", "identity"],
AutomaticMatching: ["inferredevents", "identity"],
Dwell: ["dwell"],
Dwell: ["dwell"],
FirstPartyCookies: ["cookie"],
FirstPartyCookies: ["cookie"],
InferredEvents: ["inferredevents", "identity"],
InferredEvents: ["inferredevents", "identity"],
Interaction: ["interaction", "timespent"],
Interaction: ["interaction", "timespent"],
Microdata: ["microdata", "identity"],
Microdata: ["microdata", "identity"],
MicrodataJsonLd: ["jsonld_microdata"],
MicrodataJsonLd: ["jsonld_microdata"],
ProxyEndpoint: ["proxy"],
ProxyEndpoint: ["proxy"],
Sessions: ["sessions"],
Sessions: ["sessions"],
TimeSpent: ["timespent"],
TimeSpent: ["timespent"],
IWL: ["iwl"],
IWL: ["iwl"],
IWLBootstrapper: ["iwlbootstrapper"],
IWLBootstrapper: ["iwlbootstrapper"],
IWLParameters: ["iwlparameters", "inferredEvents"],
IWLParameters: ["iwlparameters", "inferredEvents"],
GA2FBQ: ["ga2fbq"],
GA2FBQ: ["ga2fbq"],
BotDetection: ["botdetection"]
BotDetection: ["botdetection"]
};
};
function x(a) {
function x(a) {
return !!(u[a] || v[a])
return !!(u[a] || v[a])
}
}
function y(a, b, c) {
function y(a, b, c) {
d.loadJSFile(d.CONFIG.CDN_BASE_URL + "fbpix-config-" + a + "-" + b + ".js")
d.loadJSFile(d.CONFIG.CDN_BASE_URL + "signals/config/" + a + "?v=" + b + "&r=" + c)
}
}
h = function() {
h = function() {
function d(a, e) {
function d(a, e) {
var g = this;
var g = this;
k(this, d);
k(this, d);
this.VALID_FEATURES = u;
this.VALID_FEATURES = u;
this.optIns = new l(v);
this.optIns = new l(v);
this.configsLoaded = {};
this.configsLoaded = {};
this.locks = c.global;
this.locks = c.global;
this.pluginConfig = b;
this.pluginConfig = b;
this.disableFirstPartyCookies = !1;
this.disableFirstPartyCookies = !1;
this.VERSION = a.version;
this.VERSION = a.version;
this.RELEASE_SEGMENT = a._releaseSegment;
this.RELEASE_SEGMENT = a._releaseSegment;
this.pixelsByID = e;
this.pixelsByID = e;
this.fbq = a;
this.fbq = a;
o(a.pendingConfigs || [], function(a) {
o(a.pendingConfigs || [], function(a) {
return g.locks.lockConfig(a)
return g.locks.lockConfig(a)
})
})
}
}
i(d, [{
i(d, [{
key: "optIn",
key: "optIn",
value: function(a, b) {
value: function(a, b) {
var c = this,
var c = this,
d = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
d = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : !1;
if (typeof b !== "string" || !x(b)) throw new Error('Invalid Argument: "' + b + '" is not a valid opt-in feature');
if (typeof b !== "string" || !x(b)) throw new Error('Invalid Argument: "' + b + '" is not a valid opt-in feature');
x(b) && (this.optIns.optIn(a, b, d), o([b].concat(j(v[b] || [])), function(a) {
x(b) && (this.optIns.optIn(a, b, d), o([b].concat(j(v[b] || [])), function(a) {
w[a] && o(w[a], function(a) {
w[a] && o(w[a], function(a) {
return c.fbq.loadPlugin(a)
return c.fbq.loadPlugin(a)
})
})
}));
}));
return this
return this
}
}
}, {
}, {
key: "optOut",
key: "optOut",
value: function(a, b) {
value: function(a, b) {
this.optIns.optOut(a, b);
this.optIns.optOut(a, b);
return this
return this
}
}
}, {
}, {
key: "consent",
key: "consent",
value: function(a) {
value: function(a) {
a == "revoke" ? this.locks.lockConsent() : a == "grant" ? this.locks.unlockConsent() : t({
a == "revoke" ? this.locks.lockConsent() : a == "grant" ? this.locks.unlockConsent() : t({
type: "INVALID_CONSENT_ACTION",
type: "INVALID_CONSENT_ACTION",
action: a
action: a
});
});
return this
return this
}
}
}, {
}, {
key: "setUserProperties",
key: "setUserProperties",
value: function(a, b) {
value: function(a, b) {
if (!Object.prototype.hasOwnProperty.call(this.pixelsByID, a)) {
if (!Object.prototype.hasOwnProperty.call(this.pixelsByID, a)) {
t({
t({
type: "PIXEL_NOT_INITIALIZED",
type: "PIXEL_NOT_INITIALIZED",
pixelID: a
pixelID: a
});
});
return
return
}
}
var c = this.getDefaultSendData(a, "UserProperties");
var c = this.getDefaultSendData(a, "UserProperties");
c.customData = b;
c.customData = b;
c.customParameters = {
c.customParameters = {
es: "userProperties"
es: "userProperties"
};
};
this.trackSingleSystem("user_properties", a, "UserProperties", b)
this.trackSingleSystem("user_properties", a, "UserPropertie