import { initializeLogger as m } from "@seamless/logger";
const A = {
  BOOTSTRAP: "Bootstrap",
  TRACKING: "Tracking",
  TRANSLATION: "Translation",
  UTILS: "Utilities"
}, t = {
  LOG: 1,
  WARN: 2,
  ERROR: 3,
  INFO: 4,
  DEFAULT: 5
};
function G(o, r) {
  const { B2X_VERSIONS: s = {} } = window || {};
  if (!s[o]) {
    const { buildTime: e, version: n } = r;
    Object.assign(window, {
      B2X_VERSIONS: {
        [o]: `${o}@${n}-${e}`,
        ...s
      }
    });
  }
  const i = m(o);
  return (e, n) => {
    const { args: g = [], level: c = t.LOG, group: L = "Default" } = n || {}, d = new Intl.DateTimeFormat(["pt-PT", "de-DE", "en-GB"], {
      year: "numeric",
      month: "2-digit",
      day: "2-digit",
      hour: "2-digit",
      minute: "2-digit",
      second: "2-digit"
    }).format(Date.now()), [O, R] = d.split(", "), l = `${O} | ${R} | ${L || ""}
${e}`, T = {
      [t.LOG]: "log",
      [t.WARN]: "warn",
      [t.ERROR]: "error",
      [t.INFO]: "log",
      [t.DEFAULT]: "log"
    }[c] ?? "log", a = i[T] ?? i.log;
    g?.length ? a.call(i, l, ...g) : a.call(i, l);
  };
}
export {
  t as L,
  A as a,
  G as i
};
//# sourceMappingURL=initializeLogger.mjs.map
