var l = Object.defineProperty;
var e = (t, a, s) => a in t ? l(t, a, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[a] = s;
var n = (t, a, s) => e(t, typeof a != "symbol" ? a + "" : a, s);
import { getQueryParam as r } from "./index-url-params.js";
import { rcWindow as o } from "./index-window.store.js";
class i {
  constructor() {
    // ENABLE THIS TO TACK TRANSLATIONS
    n(this, "_shouldTrackTranslations", !1);
    n(this, "_shouldTrackTranslationKeys", !1);
    n(this, "untranslated", {});
    n(this, "translated", {});
    this.init();
  }
  init() {
    r("enableTextTranslationTracking") === "true" && (this._shouldTrackTranslations = !0), r("enableTextTranslationKeyTracking") === "true" && (this._shouldTrackTranslationKeys = !0);
  }
  set shouldTrackTranslations(a) {
    this._shouldTrackTranslations = a;
  }
  get shouldTrackTranslations() {
    return this._shouldTrackTranslations;
  }
  set shouldTrackTranslationKeys(a) {
    this._shouldTrackTranslationKeys = a;
  }
  get shouldTrackTranslationKeys() {
    return this._shouldTrackTranslationKeys;
  }
  getUntraslatedAsArray() {
    return Object.values(this.untranslated);
  }
  logUntranslated() {
    const a = [];
    for (const s in this.untranslated)
      a.push(s), a.push(`
`);
  }
  addUntranslated(a) {
    this.untranslated[a] || (this.untranslated[a] = a);
  }
  addTranslated(a) {
    this.translated[a] || (this.translated[a] = a);
  }
}
const T = new i();
o.translationHelper = T;
export {
  T as translationHelper
};
