var J = (i, e, t) => new Promise((n, a) => {
  var o = (u) => {
    try {
      k(t.next(u));
    } catch (m) {
      a(m);
    }
  }, s = (u) => {
    try {
      k(t.throw(u));
    } catch (m) {
      a(m);
    }
  }, k = (u) => u.done ? n(u.value) : Promise.resolve(u.value).then(o, s);
  k((t = t.apply(i, e)).next());
});
import { a as ne, $ as oe, S as re, i as le, s as se, f as A, b as ce, n as I, d as T, h as H, k as y, e as h, p as ue, q as de, u as pe, w as he, C as Y, D as ie, j as r, m as F, g as C, c as N, l as G, t as O, r as fe, v as E, a7 as me, V as ye, x as ge, y as ke, z as ve, A as be, B as Ce } from "./GeneralLogout-hWNQ3J3o.js";
import "../stencil/ui-skeleton-CTFP1U_H.js";
function Z(i, e) {
  ne(i, e);
}
function _e(i) {
  oe.set(i);
}
const K = {
  en: {
    titleRealityCheck: "Reality Check",
    never: "Never",
    minutes: "Minutes",
    oneHour: "1 Hour",
    hours: "Hours",
    successMessage: "Reality check has been successfully updated.",
    realityCheckText: "The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",
    realityCheckLoading: "Loading items, please wait ...",
    setFrequency: "Set frequency"
  },
  "zh-hk": {
    titleRealityCheck: "現實檢查",
    never: "絕不",
    minutes: "分鐘",
    oneHour: "1小時",
    hours: "小時",
    successMessage: "現實檢查已成功更新。",
    realityCheckText: "該工具允許您設置在遊戲會話中在屏幕上看到消息的頻率。 它將顯示自會話開始以來經過的時間。",
    realityCheckLoading: "正在加載項目，請稍候...",
    setFrequency: "設置頻率"
  },
  fr: {
    titleRealityCheck: "Verification de la réalité",
    never: "Jamais",
    minutes: "Minutes",
    oneHour: "1 Heure",
    hours: "Heure",
    successMessage: "Le contrôle de la réalité a été mis à jour avec succès.",
    realityCheckText: "La fonction de contrôle de la réalité vous permet de définir la fréquence à laquelle vous verrez un contrôlede la réalité sur l'écran au cours de votre sessions de jeu , c'est-à-dire un affichage du temps écoulé depuis le début de votre session.",
    realityCheckLoading: "Chargement des éléments, veuillez patienter ...",
    setFrequency: "Régler la fréquence"
  },
  ro: {
    titleRealityCheck: "Verificare timp",
    never: "Niciodata",
    minutes: "Minute",
    oneHour: "1 Ora",
    hours: "Ore",
    successMessage: "Frecvența a fost setată cu succes!",
    realityCheckText: "Opțiunea Reality Check îți permite să setezi frecvența cu care vei vedea verificarea timpului de joc pe parcursul sesiunii tale de joc. O astfel de verificare reprezintă afișarea timpului trecut de la începerea sesiunii de joc.",
    realityCheckLoading: "Se încarcă...",
    setFrequency: "Stabilește frecvența"
  },
  es: {
    titleRealityCheck: "Verificación de la realidad",
    never: "Nunca",
    minutes: "Minutos",
    oneHour: "1 Hora",
    hours: "Horas",
    successMessage: "La verificación de la realidad se ha actualizado con éxito.",
    realityCheckText: "La función de Verificación de la realidad le permite establecer la frecuencia con la que verá una Verificación de la realidad en la pantalla dentro de su sesión de juego. Una verificación de la realidad significa una visualización del tiempo transcurrido desde que comenzó su sesión. Puede controlar la frecuencia con la que aparecerá la Verificación de realidad en su pantalla.",
    realityCheckLoading: "Cargando items",
    setFrequency: "Estabelecer frecuencia"
  },
  pt: {
    titleRealityCheck: "Verificação da realidade",
    never: "Nunca",
    minutes: "Minutos",
    oneHour: "1 hora",
    hours: "Horas",
    successMessage: "A verificação da realidade foi atualizada com sucesso.",
    realityCheckText: "O recurso Verificação da Realidade permite que você defina a frequência com que você verá uma Verificação da Realidade na tela durante sua sessão de jogo. Uma verificação da realidade significa uma exibição do tempo decorrido desde o início da sua sessão.",
    realityCheckLoading: "Carregando itens, por favor aguarde...",
    setFrequency: "Definir frequência"
  },
  hr: {
    titleRealityCheck: "Provjera stvarnosti",
    never: "Nikad",
    minutes: "Minuta",
    oneHour: "1 sat",
    hours: "Sati",
    successMessage: "Provjera stvarnosti je uspješno ažurirana.",
    realityCheckText: "Mogućnost Provjere stvarnosti omogućuje vam da postavite učestalost na kojoj ćete vidjeti Provjeru stvarnosti na zaslonu tijekom svoje sesije igranja. Provjera stvarnosti znači prikaz vremena proteklog od početka vaše sesije. Možete kontrolirati učestalost kojom će se Reality Provjera stvarnosti pojaviti na vašem zaslonu.",
    realityCheckLoading: "Učitavanje stavki",
    setFrequency: "Postavite frekvenciju"
  },
  "pt-br": {
    titleRealityCheck: "Verificação da realidade",
    never: "Nunca",
    minutes: "Minutos",
    oneHour: "1 hora",
    hours: "Horas",
    successMessage: "A verificação da realidade foi atualizada com sucesso.",
    realityCheckText: "A instalação da verificação da realidade permite ajustar a frequência com que a verificação da realidade aparece na tela durante a sessão de jogo. Uma verificação da realidade significa exibir o tempo decorrido desde que você iniciou sua sessão. Você é capaz de controlar a frequência com que essa verificação da realidade aparecerá na sua tela.",
    realityCheckLoading: "Carregando itens, por favor espere...",
    setFrequency: "Definir frequência"
  },
  "es-mx": {
    titleRealityCheck: "Control de Realidad",
    never: "Nunca",
    minutes: "Minutos",
    oneHour: "1 Hora",
    hours: "Horas",
    successMessage: "El control de realidad ha sido actualizada exitosamente.",
    realityCheckText: "La instalación del control de realidad le permite ajustar la frequencia en la que aparece la verificación de realidad en la pantalla durante su sesión de juego. Un control de realidad significa la visualización del tiempo transcurrido desde que arranco su sesión. Ustede es capaza de controlar la frecuencia en la que esta verificación de realidad aparecerá en su pantalla.",
    realityCheckLoading: "Cargando elementos, por favor espere...",
    setFrequency: "Fijar frecuencia"
  },
  "en-us": {
    titleRealityCheck: "Reality Check",
    never: "Never",
    minutes: "Minutes",
    oneHour: "1 Hour",
    hours: "Hours",
    successMessage: "Reality check has been successfully updated.",
    realityCheckText: "The Reality Check facility allows you to set the frequency at which you will see a Reality Check on the screen within your gaming session. A Reality Check means a display of the time elapsed since your session began. You are able to control the frequency at which the Reality Check will appear on your screen.",
    realityCheckLoading: "Loading items, please wait ...",
    setFrequency: "Set frequency"
  }
};
function we(i) {
  ce(i, "svelte-17lev58", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.successMessage{position:absolute;display:block;top:25px;left:50px;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessage.successMessageMobile{display:none}.successMessageMobile{display:block;background:var(--emw--color-valid, var(--emw--color-green, #48952a));font-size:14px;border-radius:5px;padding:10px;color:var(--emw--color-white, #FFFFFF)}.successMessageMobile.successMessage{display:none}.TextContainer{display:flex;flex-direction:column;padding:10px 20px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-300, #58586B);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.RealityCheckDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));line-height:24px}.RealityCheckDescription p{min-height:140px}.RealityCheckDescription.RealityChecktionMobile{font-size:12px;line-height:18px}.PlayerDetailsContent{display:grid;grid-column-gap:50px;grid-row-gap:20px;grid-template-rows:auto;grid-template-columns:1fr;padding-bottom:30px}.PlayerRealityCheckWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px}.PlayerRealityCheckWrapper.PlayerRealityCheckWrapperMobile{padding:20px 15px;max-width:unset}.RealityCheckTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.RealityCheckTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.RealityCheckTitleNone{display:none}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerDetailsContent{grid-template-columns:1fr}.containerTimeout{animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20PX}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
}
function Q(i, e, t) {
  const n = i.slice();
  return n[33] = e[t].value, n[34] = e[t].text, n[36] = t, n;
}
function xe(i, e, t) {
  const n = i.slice();
  return n[30] = e[t], n;
}
function Re(i) {
  let e, t, n, a, o = (
    /*$_*/
    i[5]("titleRealityCheck") + ""
  ), s, k, u, m, b = (
    /*$_*/
    i[5]("realityCheckText") + ""
  ), w, v, R, x, d, p, g = (
    /*$_*/
    i[5]("setFrequency") + ""
  ), S, V, D, U, W, L = (
    /*isMobile*/
    i[6] && Se(i)
  ), j = (
    /*realityCheckSuccess*/
    i[4] && ee(i)
  ), z = Y(
    /*realityCheckOptions*/
    i[7]
  ), M = [];
  for (let f = 0; f < z.length; f += 1)
    M[f] = te(Q(i, z, f));
  return {
    c() {
      e = y("div"), L && L.c(), t = F(), j && j.c(), n = F(), a = y("h2"), s = O(o), k = F(), u = y("div"), m = y("p"), w = O(b), v = F(), R = y("form");
      for (let f = 0; f < M.length; f += 1)
        M[f].c();
      x = F(), d = y("div"), p = y("button"), S = O(g), h(a, "class", "RealityCheckTitle " + /*isMobile*/
      (i[6] ? "RealityCheckTitleNone" : "")), h(u, "class", "RealityCheckDescription " + /*isMobile*/
      (i[6] ? "RealityCheckDescriptionMobile" : "")), h(p, "class", V = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
      (i[3] === /*realityCheckValue*/
      i[2] ? "ButtonInactive" : "")), p.disabled = D = /*currentRealityCheckValue*/
      i[3] === /*realityCheckValue*/
      i[2], h(d, "class", "BottomButtonsArea " + /*isMobile*/
      (i[6] ? "BottomButtonsAreaMobile" : "")), h(R, "class", "customRadio"), h(e, "class", "containerTimeout");
    },
    m(f, q) {
      H(f, e, q), L && L.m(e, null), r(e, t), j && j.m(e, null), r(e, n), r(e, a), r(a, s), r(e, k), r(e, u), r(u, m), r(m, w), r(e, v), r(e, R);
      for (let _ = 0; _ < M.length; _ += 1)
        M[_] && M[_].m(R, null);
      r(R, x), r(R, d), r(d, p), r(p, S), U || (W = G(
        p,
        "click",
        /*submitRealityCheckValue*/
        i[8]
      ), U = !0);
    },
    p(f, q) {
      if (
        /*isMobile*/
        f[6] && L.p(f, q), /*realityCheckSuccess*/
        f[4] ? j ? j.p(f, q) : (j = ee(f), j.c(), j.m(e, n)) : j && (j.d(1), j = null), q[0] & /*$_*/
        32 && o !== (o = /*$_*/
        f[5]("titleRealityCheck") + "") && N(s, o), q[0] & /*$_*/
        32 && b !== (b = /*$_*/
        f[5]("realityCheckText") + "") && N(w, b), q[0] & /*realityCheckOptions, realityCheckValue*/
        132
      ) {
        z = Y(
          /*realityCheckOptions*/
          f[7]
        );
        let _;
        for (_ = 0; _ < z.length; _ += 1) {
          const X = Q(f, z, _);
          M[_] ? M[_].p(X, q) : (M[_] = te(X), M[_].c(), M[_].m(R, x));
        }
        for (; _ < M.length; _ += 1)
          M[_].d(1);
        M.length = z.length;
      }
      q[0] & /*$_*/
      32 && g !== (g = /*$_*/
      f[5]("setFrequency") + "") && N(S, g), q[0] & /*currentRealityCheckValue, realityCheckValue*/
      12 && V !== (V = "PlayerRealityCheckButton " + /*currentRealityCheckValue*/
      (f[3] === /*realityCheckValue*/
      f[2] ? "ButtonInactive" : "")) && h(p, "class", V), q[0] & /*currentRealityCheckValue, realityCheckValue*/
      12 && D !== (D = /*currentRealityCheckValue*/
      f[3] === /*realityCheckValue*/
      f[2]) && (p.disabled = D);
    },
    d(f) {
      f && T(e), L && L.d(), j && j.d(), ie(M, f), U = !1, W();
    }
  };
}
function Me(i) {
  let e, t, n, a, o, s, k, u, m;
  function b(d, p) {
    return (
      /*isMobile*/
      d[6] ? Be : je
    );
  }
  let v = b(i)(i), R = Y({ length: 6 }), x = [];
  for (let d = 0; d < R.length; d += 1)
    x[d] = qe(xe(i, R, d));
  return {
    c() {
      e = y("div"), v.c(), t = F(), n = y("div"), a = y("ui-skeleton"), o = F(), s = y("div");
      for (let d = 0; d < x.length; d += 1)
        x[d].c();
      k = F(), u = y("div"), m = y("ui-skeleton"), C(a, "structure", "text"), C(a, "height", "15px"), C(a, "width", "100%"), C(a, "margin-bottom", "7px"), C(
        a,
        "rows",
        /*isMobile*/
        i[6] ? "5" : "3"
      ), h(n, "class", "SkeletonTextContainer"), C(m, "structure", "rectangle"), C(m, "height", "50px"), C(m, "margin-bottom", "0"), C(m, "borderRadius", "5px"), C(
        m,
        "width",
        /*isMobile*/
        i[6] ? "100%" : "350px"
      ), h(u, "class", "Button"), h(s, "class", "SkeletonOptionContainer"), h(e, "class", "SkeletonContainer");
    },
    m(d, p) {
      H(d, e, p), v.m(e, null), r(e, t), r(e, n), r(n, a), r(e, o), r(e, s);
      for (let g = 0; g < x.length; g += 1)
        x[g] && x[g].m(s, null);
      r(s, k), r(s, u), r(u, m);
    },
    p(d, p) {
      v.p(d, p);
    },
    d(d) {
      d && T(e), v.d(), ie(x, d);
    }
  };
}
function Se(i) {
  let e, t, n, a, o, s, k, u, m, b, w, v = (
    /*$_*/
    i[5]("titleRealityCheck") + ""
  ), R, x, d, p = (
    /*realityCheckSuccess*/
    i[4] && $(i)
  );
  return {
    c() {
      p && p.c(), e = F(), t = y("div"), n = E("svg"), a = E("defs"), o = E("style"), s = O(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), k = E("g"), u = E("g"), m = E("path"), b = F(), w = y("h2"), R = O(v), h(m, "class", "aaa"), h(m, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), h(m, "transform", "translate(15 15) rotate(180)"), h(u, "transform", "translate(20 158)"), h(k, "transform", "translate(-20 -158)"), h(n, "xmlns", "http://www.w3.org/2000/svg"), h(n, "width", "15"), h(n, "height", "15"), h(n, "viewBox", "0 0 15 15"), h(w, "class", "RealityCheckTitleMobile"), h(t, "class", "MenuReturnButton");
    },
    m(g, S) {
      p && p.m(g, S), H(g, e, S), H(g, t, S), r(t, n), r(n, a), r(a, o), r(o, s), r(n, k), r(k, u), r(u, m), r(t, b), r(t, w), r(w, R), x || (d = [
        G(
          t,
          "click",
          /*click_handler*/
          i[18]
        ),
        G(t, "keydown", null)
      ], x = !0);
    },
    p(g, S) {
      /*realityCheckSuccess*/
      g[4] ? p ? p.p(g, S) : (p = $(g), p.c(), p.m(e.parentNode, e)) : p && (p.d(1), p = null), S[0] & /*$_*/
      32 && v !== (v = /*$_*/
      g[5]("titleRealityCheck") + "") && N(R, v);
    },
    d(g) {
      g && (T(e), T(t)), p && p.d(g), x = !1, fe(d);
    }
  };
}
function $(i) {
  let e, t = (
    /*$_*/
    i[5]("successMessage") + ""
  ), n;
  return {
    c() {
      e = y("div"), n = O(t), h(e, "class", "successMessageMobile");
    },
    m(a, o) {
      H(a, e, o), r(e, n);
    },
    p(a, o) {
      o[0] & /*$_*/
      32 && t !== (t = /*$_*/
      a[5]("successMessage") + "") && N(n, t);
    },
    d(a) {
      a && T(e);
    }
  };
}
function ee(i) {
  let e, t = (
    /*$_*/
    i[5]("successMessage") + ""
  ), n;
  return {
    c() {
      e = y("div"), n = O(t), h(e, "class", "successMessage " + /*isMobile*/
      (i[6] ? "successMessageMobile" : ""));
    },
    m(a, o) {
      H(a, e, o), r(e, n);
    },
    p(a, o) {
      o[0] & /*$_*/
      32 && t !== (t = /*$_*/
      a[5]("successMessage") + "") && N(n, t);
    },
    d(a) {
      a && T(e);
    }
  };
}
function te(i) {
  let e, t, n, a, o = (
    /*text*/
    i[34] + ""
  ), s, k, u, m;
  return k = me(
    /*$$binding_groups*/
    i[20][0]
  ), {
    c() {
      e = y("div"), t = y("input"), n = F(), a = y("label"), s = O(o), h(t, "type", "radio"), h(
        t,
        "id",
        /*value*/
        i[33]
      ), t.__value = /*value*/
      i[33], ye(t, t.__value), h(
        a,
        "for",
        /*value*/
        i[33]
      ), k.p(t);
    },
    m(b, w) {
      H(b, e, w), r(e, t), t.checked = t.__value === /*realityCheckValue*/
      i[2], r(e, n), r(e, a), r(a, s), u || (m = G(
        t,
        "change",
        /*input_change_handler*/
        i[19]
      ), u = !0);
    },
    p(b, w) {
      w[0] & /*realityCheckValue*/
      4 && (t.checked = t.__value === /*realityCheckValue*/
      b[2]);
    },
    d(b) {
      b && T(e), k.r(), u = !1, m();
    }
  };
}
function je(i) {
  let e;
  return {
    c() {
      e = y("div"), e.innerHTML = '<ui-skeleton structure="title" width="200px" margin-top="20px"></ui-skeleton>', h(e, "class", "SkeletonHeaderText");
    },
    m(t, n) {
      H(t, e, n);
    },
    p: I,
    d(t) {
      t && T(e);
    }
  };
}
function Be(i) {
  let e, t, n, a;
  return {
    c() {
      e = y("div"), t = y("ui-skeleton"), n = F(), a = y("ui-skeleton"), C(t, "structure", "title"), C(t, "width", "20px"), C(t, "height", "20px"), C(t, "margin-top", "5px"), C(t, "margin-bottom", "15px"), C(a, "structure", "title"), C(a, "width", "100px"), C(a, "height", "20px"), C(a, "margin-top", "5px"), C(a, "margin-bottom", "15px"), h(e, "class", "SkeletonMenuButton " + /*isMobile*/
      (i[6] ? "Mobile" : ""));
    },
    m(o, s) {
      H(o, e, s), r(e, t), r(e, n), r(e, a);
    },
    p: I,
    d(o) {
      o && T(e);
    }
  };
}
function qe(i) {
  let e;
  return {
    c() {
      e = y("div"), e.innerHTML = '<div class="SkeletonOptionCircle"><ui-skeleton structure="circle" size="20px"></ui-skeleton></div> <div class="SkeletonOptionText"><ui-skeleton structure="text" height="10px" width="auto"></ui-skeleton></div>', h(e, "class", "SkeletonOption");
    },
    m(t, n) {
      H(t, e, n);
    },
    p: I,
    d(t) {
      t && T(e);
    }
  };
}
function Fe(i) {
  let e;
  function t(o, s) {
    return (
      /*skeletonLoading*/
      o[1] ? Me : Re
    );
  }
  let n = t(i), a = n(i);
  return {
    c() {
      e = y("div"), a.c(), h(e, "class", "PlayerRealityCheckWrapper " + /*isMobile*/
      (i[6] ? "PlayerRealityCheckWrapperMobile" : ""));
    },
    m(o, s) {
      H(o, e, s), a.m(e, null), i[21](e);
    },
    p(o, s) {
      n === (n = t(o)) && a ? a.p(o, s) : (a.d(1), a = n(o), a && (a.c(), a.m(e, null)));
    },
    i: I,
    o: I,
    d(o) {
      o && T(e), a.d(), i[21](null);
    }
  };
}
function Te(i, e, t) {
  let n;
  ue(i, Ce, (l) => t(5, n = l));
  let { endpoint: a = "" } = e, { playerid: o = "" } = e, { session: s = "" } = e, { lang: k = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: m = "" } = e, { mbsource: b } = e, { translationurl: w = "" } = e, v, R = de(window.navigator.userAgent) !== "PC", x = !0, d, p, g = !1, S = [];
  const V = () => {
    const l = new URL(`${a}/v1/player/${o}/realitycheck`), c = new Headers();
    c.append("X-SessionID", s);
    const P = { method: "GET", headers: c };
    fetch(l.href, P).then((B) => B.json()).then(
      (B) => {
        t(2, d = t(3, p = B.UserRealityCheckValue));
      },
      (B) => {
        console.error(B);
      }
    );
  }, D = () => {
    const l = new URL(`${a}/v1/player/${o}/availablerealityvalues`), c = new Headers();
    c.append("X-SessionID", s), c.append("accept", "application/json");
    const P = { method: "GET", headers: c };
    fetch(l.href, P).then((B) => B.json()).then(
      (B) => {
        U(B.AvailableRealityCheckValues), t(1, x = !1);
      },
      (B) => {
        console.error(B);
      }
    );
  }, U = (l) => {
    l.forEach((c) => {
      c == 0 ? S.push({
        value: c.toString(),
        text: n("never")
      }) : c < 60 ? S.push({
        value: c.toString(),
        text: c + " " + n("minutes")
      }) : c == 60 ? S.push({
        value: c.toString(),
        text: n("oneHour")
      }) : c > 60 && S.push({
        value: c.toString(),
        text: c / 60 + " " + n("hours")
      });
    });
  }, W = () => J(this, null, function* () {
    const l = new URL(`${a}/v1/player/${o}/realitycheck`), c = new Headers();
    c.append("X-SessionID", s), c.append("Content-Type", "application/json"), c.append("Accept", "application/json"), c.append("realityCheckValue", `${parseInt(d, 10)}`);
    const P = { method: "POST", headers: c };
    return yield fetch(l.href, P).then(
      (B) => B.status == 200,
      (B) => (console.error(B), !1)
    );
  }), L = (l) => {
    l.preventDefault(), W().then((c) => {
      c && (j(), V());
    });
  }, j = () => {
    window.postMessage(
      {
        type: "WidgetNotification",
        data: {
          type: "success",
          message: n("realityCheckSuccess")
        }
      },
      window.location.href
    ), t(4, g = !0), setTimeout(() => t(4, g = !1), 2e3);
  }, z = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: R
      },
      window.location.href
    );
  }, M = () => {
    _e(k);
  }, f = () => {
    fetch(w).then((c) => c.json()).then((c) => {
      Object.keys(c).forEach((P) => {
        Z(P, c[P]);
      });
    }).catch((c) => {
      console.log(c);
    });
  };
  Object.keys(K).forEach((l) => {
    Z(l, K[l]);
  }), pe(() => () => {
  });
  const q = [[]], _ = () => z();
  function X() {
    d = this.__value, t(2, d);
  }
  function ae(l) {
    he[l ? "unshift" : "push"](() => {
      v = l, t(0, v);
    });
  }
  return i.$$set = (l) => {
    "endpoint" in l && t(10, a = l.endpoint), "playerid" in l && t(11, o = l.playerid), "session" in l && t(12, s = l.session), "lang" in l && t(13, k = l.lang), "clientstyling" in l && t(14, u = l.clientstyling), "clientstylingurl" in l && t(15, m = l.clientstylingurl), "mbsource" in l && t(16, b = l.mbsource), "translationurl" in l && t(17, w = l.translationurl);
  }, i.$$.update = () => {
    i.$$.dirty[0] & /*lang*/
    8192 && k && M(), i.$$.dirty[0] & /*endpoint, playerid, session*/
    7168 && a && o && s && V(), i.$$.dirty[0] & /*endpoint, playerid, session*/
    7168 && a && o && s && D(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    16385 && u && v && ge(v, u), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    32769 && m && v && ke(v, m), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
    65537 && b && v && ve(v, `${b}.Style`), i.$$.dirty[0] & /*translationurl*/
    131072 && w && f();
  }, [
    v,
    x,
    d,
    p,
    g,
    n,
    R,
    S,
    L,
    z,
    a,
    o,
    s,
    k,
    u,
    m,
    b,
    w,
    _,
    X,
    q,
    ae
  ];
}
class He extends re {
  constructor(e) {
    super(), le(
      this,
      e,
      Te,
      Fe,
      se,
      {
        endpoint: 10,
        playerid: 11,
        session: 12,
        lang: 13,
        clientstyling: 14,
        clientstylingurl: 15,
        mbsource: 16,
        translationurl: 17
      },
      we,
      [-1, -1]
    );
  }
  get endpoint() {
    return this.$$.ctx[10];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), A();
  }
  get playerid() {
    return this.$$.ctx[11];
  }
  set playerid(e) {
    this.$$set({ playerid: e }), A();
  }
  get session() {
    return this.$$.ctx[12];
  }
  set session(e) {
    this.$$set({ session: e }), A();
  }
  get lang() {
    return this.$$.ctx[13];
  }
  set lang(e) {
    this.$$set({ lang: e }), A();
  }
  get clientstyling() {
    return this.$$.ctx[14];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), A();
  }
  get clientstylingurl() {
    return this.$$.ctx[15];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), A();
  }
  get mbsource() {
    return this.$$.ctx[16];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), A();
  }
  get translationurl() {
    return this.$$.ctx[17];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), A();
  }
}
be(He, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  He as default
};
