Release 5.12.1 (#1474)
This commit is contained in:
40
js/conflict-detection.min.js
vendored
40
js/conflict-detection.min.js
vendored
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Font Awesome Pro 5.12.0 by @fontawesome - https://fontawesome.com
|
||||
* Font Awesome Pro 5.12.1 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license (Commercial License)
|
||||
*/
|
||||
var e, t;
|
||||
@@ -118,8 +118,10 @@ e = this, t = function(e) {
|
||||
function v(e) {
|
||||
if (null !== e && "object" === t(e)) return e.src ? p(e.src) : e.href ? p(e.href) : e.innerText && "" !== e.innerText ? p(e.innerText) : void 0;
|
||||
}
|
||||
var y = "fa-kits-diag", b = "fa-kits-node-under-test", w = "data-md5", x = "data-fa-detection-ignore", A = "data-fa-detection-timeout", T = "data-fa-detection-results-collection-max-wait";
|
||||
function D(e) {
|
||||
var y = "fa-kits-diag", b = "fa-kits-node-under-test", w = "data-md5", x = "data-fa-detection-ignore", A = "data-fa-detection-timeout", T = "data-fa-detection-results-collection-max-wait", D = function(e) {
|
||||
e.preventDefault(), e.stopPropagation();
|
||||
};
|
||||
function E(e) {
|
||||
var t = e.fn, c = void 0 === t ? function() {
|
||||
return !0;
|
||||
} : t, n = e.initialDuration, o = void 0 === n ? 1 : n, r = e.maxDuration, a = void 0 === r ? l.FontAwesomeDetection.timeout : r, i = e.showProgress, s = void 0 !== i && i, f = e.progressIndicator;
|
||||
@@ -135,12 +137,12 @@ e = this, t = function(e) {
|
||||
}(o, 0);
|
||||
});
|
||||
}
|
||||
function E(e) {
|
||||
function C(e) {
|
||||
var t = e.nodesTested, n = e.nodesFound;
|
||||
l.FontAwesomeDetection = l.FontAwesomeDetection || {}, l.FontAwesomeDetection.nodesTested = t,
|
||||
l.FontAwesomeDetection.nodesFound = n, l.FontAwesomeDetection.detectionDone = !0;
|
||||
}
|
||||
function C() {
|
||||
function F() {
|
||||
var t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : function() {}, n = {
|
||||
conflict: {},
|
||||
noConflict: {}
|
||||
@@ -188,7 +190,8 @@ e = this, t = function(e) {
|
||||
}, r) : console.error(e);
|
||||
});
|
||||
}.toString(), ")('").concat(b, "', '").concat(o, "', '").concat(i, "');"), t.onload = function() {
|
||||
t.contentDocument.head.appendChild(r), t.contentDocument.head.appendChild(n);
|
||||
t.contentWindow.addEventListener("error", D, !0), t.contentDocument.head.appendChild(r),
|
||||
t.contentDocument.head.appendChild(n);
|
||||
}, m(function() {
|
||||
return u.body.appendChild(t);
|
||||
});
|
||||
@@ -237,7 +240,8 @@ e = this, t = function(e) {
|
||||
});
|
||||
}.toString(), ")('").concat(b, "', '").concat(o || "foo", "', '").concat(t, "', '").concat(c, "');"),
|
||||
n.onload = function() {
|
||||
n.contentDocument.head.appendChild(i), n.contentDocument.head.appendChild(e), n.contentDocument.body.appendChild(r);
|
||||
n.contentWindow.addEventListener("error", D, !0), n.contentDocument.head.appendChild(i),
|
||||
n.contentDocument.head.appendChild(e), n.contentDocument.body.appendChild(r);
|
||||
}, m(function() {
|
||||
return u.body.appendChild(n);
|
||||
});
|
||||
@@ -262,7 +266,7 @@ e = this, t = function(e) {
|
||||
console.info("You can adjust those durations by assigning values to these attributes on the <script> element that loads this detection:"),
|
||||
console.info("\t%c".concat(A, "%c: milliseconds to wait for each test before deciding whether it's a conflict."), "font-weight: bold;", "font-size: normal;"),
|
||||
console.info("\t%c".concat(T, "%c: milliseconds to wait for the browser to accumulate test results before giving up."), "font-weight: bold;", "font-size: normal;"),
|
||||
D({
|
||||
E({
|
||||
maxDuration: c,
|
||||
showProgress: !0,
|
||||
progressIndicator: "waiting...",
|
||||
@@ -270,7 +274,7 @@ e = this, t = function(e) {
|
||||
return Object.keys(n.conflict).length + Object.keys(n.noConflict).length >= i;
|
||||
}
|
||||
}).then(function() {
|
||||
console.info("DONE!"), E({
|
||||
console.info("DONE!"), C({
|
||||
nodesTested: n,
|
||||
nodesFound: r
|
||||
}), t({
|
||||
@@ -279,7 +283,7 @@ e = this, t = function(e) {
|
||||
}), console.groupEnd();
|
||||
}).catch(function(e) {
|
||||
"timeout" === e ? console.info("TIME OUT! We waited until we got tired. Here's what we found:") : (console.info("Whoops! We hit an error:", e),
|
||||
console.info("Here's what we'd found up until that error:")), E({
|
||||
console.info("Here's what we'd found up until that error:")), C({
|
||||
nodesTested: n,
|
||||
nodesFound: r
|
||||
}), t({
|
||||
@@ -288,7 +292,7 @@ e = this, t = function(e) {
|
||||
}), console.groupEnd();
|
||||
}));
|
||||
}
|
||||
var F = l.FontAwesomeDetection || {}, O = a({}, {
|
||||
var O = l.FontAwesomeDetection || {}, N = a({}, {
|
||||
report: function(e) {
|
||||
var t = e.nodesTested, n = e.nodesFound, o = {};
|
||||
for (var r in n) t.conflict[r] || t.noConflict[r] || (o[r] = n[r]);
|
||||
@@ -337,15 +341,15 @@ e = this, t = function(e) {
|
||||
},
|
||||
timeout: +(u.currentScript.getAttribute(A) || "2000"),
|
||||
resultsCollectionMaxWait: +(u.currentScript.getAttribute(T) || "5000")
|
||||
}, F, {
|
||||
__pollUntil: D,
|
||||
}, O, {
|
||||
__pollUntil: E,
|
||||
md5ForNode: v,
|
||||
detectionDone: !1,
|
||||
nodesTested: null,
|
||||
nodesFound: null
|
||||
});
|
||||
l.FontAwesomeDetection = O;
|
||||
var N = function() {
|
||||
l.FontAwesomeDetection = N;
|
||||
var j = function() {
|
||||
try {
|
||||
return "production" === process.env.NODE_ENV;
|
||||
} catch (e) {
|
||||
@@ -356,11 +360,11 @@ e = this, t = function(e) {
|
||||
try {
|
||||
e();
|
||||
} catch (e) {
|
||||
if (!N) throw e;
|
||||
if (!j) throw e;
|
||||
}
|
||||
}(function() {
|
||||
c && s && C(window.FontAwesomeDetection.report);
|
||||
}), e.conflictDetection = C, Object.defineProperty(e, "__esModule", {
|
||||
c && s && F(window.FontAwesomeDetection.report);
|
||||
}), e.conflictDetection = F, Object.defineProperty(e, "__esModule", {
|
||||
value: !0
|
||||
});
|
||||
}, "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define([ "exports" ], t) : t(e["fontawesome-pro-conflict-detection"] = {});
|
||||
Reference in New Issue
Block a user