@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 o;
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 l = eval;
8556
- n.src = (o = r.src) == null ? void 0 : o.replace(/%(.*?)%/, (m, d) => l(d)), r.name && (performance.mark(`20mn:${r.name}:Start`), n.onload = () => {
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(([l, m]) => {
8561
- n.setAttribute(`data-${bH(l)}`, m);
8562
- });
8563
- const i = r.target === "head" ? document.head : document.body;
8564
- i == null || i.appendChild(n);
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) {