@20minutes/tyr 2.7.3 → 2.7.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -8549,19 +8549,21 @@ const vH = ({
|
|
|
8549
8549
|
const n = Math.floor(r / 60), i = r % 60;
|
|
8550
8550
|
return `${String(n).padStart(2, "0")}:${String(i).padStart(2, "0")}`;
|
|
8551
8551
|
}, Pk = (r) => {
|
|
8552
|
-
var
|
|
8552
|
+
var i;
|
|
8553
8553
|
const n = document.createElement("script");
|
|
8554
8554
|
if (n.type = "text/javascript", r.load === "async" ? n.async = !0 : r.load === "defer" && (n.defer = !0), "src" in r && r.src) {
|
|
8555
|
-
const
|
|
8556
|
-
n.src = (
|
|
8555
|
+
const o = eval;
|
|
8556
|
+
n.src = (i = r.src) == null ? void 0 : i.replace(/%(.*?)%/, (l, m) => o(m)), r.name && (performance.mark(`20mn:${r.name}:Start`), n.onload = () => {
|
|
8557
8557
|
performance.mark(`20mn:${r.name}:End`);
|
|
8558
8558
|
});
|
|
8559
8559
|
}
|
|
8560
|
-
"text" in r && r.text && (n.innerHTML = r.text), r.name && performance.mark(`20mn:${r.name}:Enable`), r.id && (n.id = r.id), r.dataAttributes && Object.entries(r.dataAttributes).forEach(([
|
|
8561
|
-
n.setAttribute(`data-${bH(
|
|
8562
|
-
})
|
|
8563
|
-
|
|
8564
|
-
|
|
8560
|
+
if ("text" in r && r.text && (n.innerHTML = r.text), r.name && performance.mark(`20mn:${r.name}:Enable`), r.id && (n.id = r.id), r.dataAttributes && Object.entries(r.dataAttributes).forEach(([o, l]) => {
|
|
8561
|
+
n.setAttribute(`data-${bH(o)}`, l);
|
|
8562
|
+
}), r.target === "head" && document.head) {
|
|
8563
|
+
document.head.appendChild(n);
|
|
8564
|
+
return;
|
|
8565
|
+
}
|
|
8566
|
+
document.body ? document.body.appendChild(n) : (window.bodyScripts = window.bodyScripts || [], window.bodyScripts.push(n));
|
|
8565
8567
|
};
|
|
8566
8568
|
var B0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8567
8569
|
function Q_(r) {
|