import { a as Q, $, S as ee, i as te, s as ie, f as T, b as ae, n as I, d as F, h as P, k as g, e as l, p as ne, q as oe, u as re, w as se, C as U, D as K, j as s, m as S, g as b, c as z, l as L, t as N, r as le, v as D, a7 as ce, V as J, x as ue, y as pe, z as de, A as me, B as ve } from "./GeneralLogout-CCZ-t51N.js";
import "../stencil/ui-skeleton-BQnxp85t.js";
function V(i, e) {
  Q(i, e);
}
function ye(i) {
  $.set(i);
}
const G = {
  en: {
    titleAccountReview: "Account Review Frequency",
    accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
    setFrequency: "Set frequency",
    successMessage: "Your preference was saved",
    errorMessage: "Failed to set account review frequency",
    months: "months",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly"
  },
  "zh-hk": {
    titleAccountReview: "帳戶檢視提示頻率",
    accountReviewText: "為了推廣負責任博彩，我們會定期提示客戶檢視其帳戶活動，包括投注紀錄、付款紀錄及遊戲紀錄。這些檢視有助確保你的活動與當前偏好及情況保持一致。你可在此頁面調整接收這些提示的頻率，讓你更好掌控體驗。",
    setFrequency: "設置頻率",
    successMessage: "你的偏好已儲存。",
    errorMessage: "Failed to set account review frequency",
    months: "個月",
    daily: "每日",
    weekly: "每週",
    monthly: "每月"
  },
  fr: {
    titleAccountReview: "Fréquence des rappels d’examen du compte",
    accountReviewText: "Afin de promouvoir le jeu responsable, nous invitons périodiquement les clients à examiner l’activité de leur compte, y compris l’historique des paris, des paiements et du jeu. Ces examens permettent de s’assurer que votre activité reste en adéquation avec vos préférences et votre situation actuelles. Depuis cette page, vous pouvez ajuster la fréquence de ces rappels afin de mieux contrôler votre expérience.",
    setFrequency: "Régler la fréquence",
    successMessage: "Votre préférence a été enregistrée.",
    errorMessage: "Failed to set account review frequency",
    months: "mois",
    daily: "Quotidien",
    weekly: "Hebdomadaire",
    monthly: "Mensuel"
  },
  ro: {
    titleAccountReview: "Frecvența notificărilor pentru revizuirea contului",
    accountReviewText: "Pentru a promova jocul responsabil, solicităm periodic clienților să își revizuiască activitatea din cont, inclusiv istoricul de pariere, istoricul plăților și istoricul de joc. Aceste revizuiri ajută la menținerea activității în linie cu preferințele și circumstanțele actuale. Din această pagină poți ajusta cât de des primești aceste notificări, pentru mai mult control asupra experienței tale.",
    setFrequency: "Setează frecvența",
    successMessage: "Preferința a fost salvată.",
    errorMessage: "Failed to set account review frequency",
    months: "luni",
    daily: "Zilnic",
    weekly: "Săptămânal",
    monthly: "Lunar"
  },
  es: {
    titleAccountReview: "Frecuencia del recordatorio de revisión de cuenta",
    accountReviewText: "Para promover el juego responsable, periódicamente invitamos a los clientes a revisar la actividad de su cuenta, incluido el Historial de Apuestas, el Historial de Pagos y el Historial de Juego. Estas revisiones ayudan a asegurar que tu actividad siga alineada con tus preferencias y circunstancias actuales. Desde esta página puedes ajustar la frecuencia con la que recibes estos recordatorios, dándote mayor control sobre tu experiencia.",
    setFrequency: "Establecer frecuencia",
    successMessage: "Tu preferencia se guardó.",
    errorMessage: "Failed to set account review frequency",
    months: "meses",
    daily: "Diario",
    weekly: "Semanal",
    monthly: "Mensual"
  },
  pt: {
    titleAccountReview: "Frequência do lembrete de revisão da conta",
    accountReviewText: "Para promover o jogo responsável, pedimos periodicamente aos clientes que revejam a atividade da sua conta, incluindo o Histórico de Apostas, o Histórico de Pagamentos e o Histórico de Jogo. Estas revisões ajudam a garantir que a sua atividade se mantém alinhada com as suas preferências e circunstâncias atuais. Nesta página pode ajustar a frequência com que recebe estes lembretes, dando-lhe mais controlo sobre a sua experiência.",
    setFrequency: "Definir frequência",
    successMessage: "A sua preferência foi guardada.",
    errorMessage: "Failed to set account review frequency",
    months: "meses",
    daily: "Diário",
    weekly: "Semanal",
    monthly: "Mensal"
  },
  hr: {
    titleAccountReview: "Učestalost podsjetnika za pregled računa",
    accountReviewText: "Kako bismo potaknuli odgovorno igranje, povremeno upućujemo korisnicima podsjetnik da pregledaju aktivnost na računu, uključujući Povijest klađenja, Povijest plaćanja i Povijest igranja. Ovi pregledi pomažu osigurati da vaše aktivnosti ostanu usklađene s vašim trenutačnim preferencijama i okolnostima. Na ovoj stranici možete prilagoditi koliko često primate ove podsjetnike, čime imate veću kontrolu nad svojim iskustvom.",
    setFrequency: "Postavi učestalost",
    successMessage: "Vaša je postavka spremljena.",
    errorMessage: "Failed to set account review frequency",
    months: "mjeseci",
    daily: "Dnevno",
    weekly: "Tjedno",
    monthly: "Mjesečno"
  },
  "pt-br": {
    titleAccountReview: "Frequência do lembrete de revisão de conta",
    accountReviewText: "Para promover o jogo responsável, periodicamente lembramos os clientes de revisar a atividade da conta, incluindo Histórico de Apostas, Histórico de Pagamentos e Histórico de Jogo. Essas revisões ajudam a garantir que sua atividade permaneça alinhada às suas preferências e circunstâncias atuais. Nesta página você pode ajustar a frequência com que recebe esses lembretes, dando mais controle à sua experiência.",
    setFrequency: "Definir frequência",
    successMessage: "Sua preferência foi salva.",
    errorMessage: "Failed to set account review frequency",
    months: "meses",
    daily: "Diário",
    weekly: "Semanal",
    monthly: "Mensal"
  },
  "es-mx": {
    titleAccountReview: "Frecuencia del recordatorio de revisión de cuenta",
    accountReviewText: "Para promover el juego responsable, periódicamente invitamos a los clientes a revisar la actividad de su cuenta, incluido el Historial de Apuestas, el Historial de Pagos y el Historial de Juego. Estas revisiones ayudan a garantizar que tu actividad siga alineada con tus preferencias y circunstancias actuales. Desde esta página puedes ajustar la frecuencia con la que recibes estos recordatorios para tener mayor control de tu experiencia.",
    setFrequency: "Fijar frecuencia",
    successMessage: "Tu preferencia se guardó.",
    errorMessage: "Failed to set account review frequency",
    months: "meses",
    daily: "Diario",
    weekly: "Semanal",
    monthly: "Mensual"
  },
  "en-us": {
    titleAccountReview: "Account Review Frequency",
    accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
    setFrequency: "Set frequency",
    successMessage: "Your preference was saved.",
    errorMessage: "Failed to set account review frequency",
    months: "months",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly"
  }
};
function ge(i) {
  ae(i, "svelte-1u91vzw", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation:fadeIn 0.3s ease-in 1}.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}.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, #fff);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)}.PlayerAccountReviewWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px}.PlayerAccountReviewWrapper.PlayerAccountReviewWrapperMobile{padding:20px 15px;max-width:unset}.AccountReviewTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.AccountReviewTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.AccountReviewTitleNone{display:none}.AccountReviewDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));line-height:24px}.AccountReviewDescription p{min-height:140px}.AccountReviewDescription.AccountReviewDescriptionMobile{font-size:12px;line-height:18px}.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, #fff));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))}.containerTimeout{animation:fadeIn 0.3s ease-in 1}.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 Y(i, e, t) {
  const o = i.slice();
  return o[28] = e[t].value, o[29] = e[t].text, o;
}
function fe(i, e, t) {
  const o = i.slice();
  return o[25] = e[t], o;
}
function he(i) {
  let e, t, o, r = (
    /*$_*/
    i[5]("titleAccountReview") + ""
  ), c, u, f, v, y = (
    /*$_*/
    i[5]("accountReviewText") + ""
  ), w, _, p, R, d, n, k = (
    /*$_*/
    i[5]("setFrequency") + ""
  ), A, B, H, O, E, j = (
    /*isMobile*/
    i[6] && be(i)
  ), q = U(
    /*options*/
    i[4]
  ), x = [];
  for (let m = 0; m < q.length; m += 1)
    x[m] = X(Y(i, q, m));
  return {
    c() {
      e = g("div"), j && j.c(), t = S(), o = g("h2"), c = N(r), u = S(), f = g("div"), v = g("p"), w = N(y), _ = S(), p = g("form");
      for (let m = 0; m < x.length; m += 1)
        x[m].c();
      R = S(), d = g("div"), n = g("button"), A = N(k), l(o, "class", "AccountReviewTitle " + /*isMobile*/
      (i[6] ? "AccountReviewTitleNone" : "")), l(f, "class", "AccountReviewDescription " + /*isMobile*/
      (i[6] ? "AccountReviewDescriptionMobile" : "")), l(n, "class", B = "PlayerRealityCheckButton " + (!/*selectedInterval*/
      i[2] || /*currentInterval*/
      i[3] === /*selectedInterval*/
      i[2] ? "ButtonInactive" : "")), n.disabled = H = !/*selectedInterval*/
      i[2] || /*currentInterval*/
      i[3] === /*selectedInterval*/
      i[2], l(d, "class", "BottomButtonsArea " + /*isMobile*/
      (i[6] ? "BottomButtonsAreaMobile" : "")), l(p, "class", "customRadio"), l(e, "class", "containerTimeout");
    },
    m(m, M) {
      P(m, e, M), j && j.m(e, null), s(e, t), s(e, o), s(o, c), s(e, u), s(e, f), s(f, v), s(v, w), s(e, _), s(e, p);
      for (let a = 0; a < x.length; a += 1)
        x[a] && x[a].m(p, null);
      s(p, R), s(p, d), s(d, n), s(n, A), O || (E = L(
        n,
        "click",
        /*submit*/
        i[7]
      ), O = !0);
    },
    p(m, M) {
      if (
        /*isMobile*/
        m[6] && j.p(m, M), M[0] & /*$_*/
        32 && r !== (r = /*$_*/
        m[5]("titleAccountReview") + "") && z(c, r), M[0] & /*$_*/
        32 && y !== (y = /*$_*/
        m[5]("accountReviewText") + "") && z(w, y), M[0] & /*options, selectedInterval*/
        20
      ) {
        q = U(
          /*options*/
          m[4]
        );
        let a;
        for (a = 0; a < q.length; a += 1) {
          const h = Y(m, q, a);
          x[a] ? x[a].p(h, M) : (x[a] = X(h), x[a].c(), x[a].m(p, R));
        }
        for (; a < x.length; a += 1)
          x[a].d(1);
        x.length = q.length;
      }
      M[0] & /*$_*/
      32 && k !== (k = /*$_*/
      m[5]("setFrequency") + "") && z(A, k), M[0] & /*selectedInterval, currentInterval*/
      12 && B !== (B = "PlayerRealityCheckButton " + (!/*selectedInterval*/
      m[2] || /*currentInterval*/
      m[3] === /*selectedInterval*/
      m[2] ? "ButtonInactive" : "")) && l(n, "class", B), M[0] & /*selectedInterval, currentInterval*/
      12 && H !== (H = !/*selectedInterval*/
      m[2] || /*currentInterval*/
      m[3] === /*selectedInterval*/
      m[2]) && (n.disabled = H);
    },
    d(m) {
      m && F(e), j && j.d(), K(x, m), O = !1, E();
    }
  };
}
function we(i) {
  let e, t, o, r, c, u, f, v, y;
  function w(n, k) {
    return (
      /*isMobile*/
      n[6] ? _e : ke
    );
  }
  let p = w(i)(i), R = U({ length: 6 }), d = [];
  for (let n = 0; n < R.length; n += 1)
    d[n] = xe(fe(i, R, n));
  return {
    c() {
      e = g("div"), p.c(), t = S(), o = g("div"), r = g("ui-skeleton"), c = S(), u = g("div");
      for (let n = 0; n < d.length; n += 1)
        d[n].c();
      f = S(), v = g("div"), y = g("ui-skeleton"), b(r, "structure", "text"), b(r, "height", "15px"), b(r, "width", "100%"), b(r, "margin-bottom", "7px"), b(
        r,
        "rows",
        /*isMobile*/
        i[6] ? "5" : "3"
      ), l(o, "class", "SkeletonTextContainer"), b(y, "structure", "rectangle"), b(y, "height", "50px"), b(y, "margin-bottom", "0"), b(y, "borderRadius", "5px"), b(
        y,
        "width",
        /*isMobile*/
        i[6] ? "100%" : "350px"
      ), l(v, "class", "Button"), l(u, "class", "SkeletonOptionContainer"), l(e, "class", "SkeletonContainer");
    },
    m(n, k) {
      P(n, e, k), p.m(e, null), s(e, t), s(e, o), s(o, r), s(e, c), s(e, u);
      for (let A = 0; A < d.length; A += 1)
        d[A] && d[A].m(u, null);
      s(u, f), s(u, v), s(v, y);
    },
    p(n, k) {
      p.p(n, k);
    },
    d(n) {
      n && F(e), p.d(), K(d, n);
    }
  };
}
function be(i) {
  let e, t, o, r, c, u, f, v, y, w, _ = (
    /*$_*/
    i[5]("titleAccountReview") + ""
  ), p, R, d;
  return {
    c() {
      e = g("div"), t = D("svg"), o = D("defs"), r = D("style"), c = N(`.aaa {
                  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
                }
              `), u = D("g"), f = D("g"), v = D("path"), y = S(), w = g("h2"), p = N(_), l(v, "class", "aaa"), l(v, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), l(v, "transform", "translate(15 15) rotate(180)"), l(f, "transform", "translate(20 158)"), l(u, "transform", "translate(-20 -158)"), l(t, "xmlns", "http://www.w3.org/2000/svg"), l(t, "width", "15"), l(t, "height", "15"), l(t, "viewBox", "0 0 15 15"), l(w, "class", "AccountReviewTitleMobile"), l(e, "class", "MenuReturnButton");
    },
    m(n, k) {
      P(n, e, k), s(e, t), s(t, o), s(o, r), s(r, c), s(t, u), s(u, f), s(f, v), s(e, y), s(e, w), s(w, p), R || (d = [
        L(
          e,
          "click",
          /*toggleScreen*/
          i[8]
        ),
        L(e, "keydown", null)
      ], R = !0);
    },
    p(n, k) {
      k[0] & /*$_*/
      32 && _ !== (_ = /*$_*/
      n[5]("titleAccountReview") + "") && z(p, _);
    },
    d(n) {
      n && F(e), R = !1, le(d);
    }
  };
}
function X(i) {
  let e, t, o, r, c = !1, u, f, v = (
    /*text*/
    i[29] + ""
  ), y, w, _, p, R;
  return _ = ce(
    /*$$binding_groups*/
    i[18][0]
  ), {
    c() {
      e = g("div"), t = g("input"), u = S(), f = g("label"), y = N(v), l(t, "type", "radio"), l(t, "id", o = "interval-" + /*value*/
      i[28]), t.__value = r = /*value*/
      i[28], J(t, t.__value), l(f, "for", w = "interval-" + /*value*/
      i[28]), _.p(t);
    },
    m(d, n) {
      P(d, e, n), s(e, t), t.checked = t.__value === /*selectedInterval*/
      i[2], s(e, u), s(e, f), s(f, y), p || (R = L(
        t,
        "change",
        /*input_change_handler*/
        i[17]
      ), p = !0);
    },
    p(d, n) {
      n[0] & /*options*/
      16 && o !== (o = "interval-" + /*value*/
      d[28]) && l(t, "id", o), n[0] & /*options*/
      16 && r !== (r = /*value*/
      d[28]) && (t.__value = r, J(t, t.__value), c = !0), (c || n[0] & /*selectedInterval, options*/
      20) && (t.checked = t.__value === /*selectedInterval*/
      d[2]), n[0] & /*options*/
      16 && v !== (v = /*text*/
      d[29] + "") && z(y, v), n[0] & /*options*/
      16 && w !== (w = "interval-" + /*value*/
      d[28]) && l(f, "for", w);
    },
    d(d) {
      d && F(e), _.r(), p = !1, R();
    }
  };
}
function ke(i) {
  let e;
  return {
    c() {
      e = g("div"), e.innerHTML = '<ui-skeleton structure="title" width="280px" margin-top="20px"></ui-skeleton>', l(e, "class", "SkeletonHeaderText");
    },
    m(t, o) {
      P(t, e, o);
    },
    p: I,
    d(t) {
      t && F(e);
    }
  };
}
function _e(i) {
  let e, t, o, r;
  return {
    c() {
      e = g("div"), t = g("ui-skeleton"), o = S(), r = g("ui-skeleton"), b(t, "structure", "title"), b(t, "width", "20px"), b(t, "height", "20px"), b(t, "margin-top", "5px"), b(t, "margin-bottom", "15px"), b(r, "structure", "title"), b(r, "width", "180px"), b(r, "height", "20px"), b(r, "margin-top", "5px"), b(r, "margin-bottom", "15px"), l(e, "class", "SkeletonMenuButton " + /*isMobile*/
      (i[6] ? "Mobile" : ""));
    },
    m(c, u) {
      P(c, e, u), s(e, t), s(e, o), s(e, r);
    },
    p: I,
    d(c) {
      c && F(e);
    }
  };
}
function xe(i) {
  let e;
  return {
    c() {
      e = g("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>', l(e, "class", "SkeletonOption");
    },
    m(t, o) {
      P(t, e, o);
    },
    p: I,
    d(t) {
      t && F(e);
    }
  };
}
function Re(i) {
  let e;
  function t(c, u) {
    return (
      /*skeletonLoading*/
      c[1] ? we : he
    );
  }
  let o = t(i), r = o(i);
  return {
    c() {
      e = g("div"), r.c(), l(e, "class", "PlayerAccountReviewWrapper " + /*isMobile*/
      (i[6] ? "PlayerAccountReviewWrapperMobile" : ""));
    },
    m(c, u) {
      P(c, e, u), r.m(e, null), i[19](e);
    },
    p(c, u) {
      o === (o = t(c)) && r ? r.p(c, u) : (r.d(1), r = o(c), r && (r.c(), r.m(e, null)));
    },
    i: I,
    o: I,
    d(c) {
      c && F(e), r.d(), i[19](null);
    }
  };
}
const Z = 2;
function Ae(i, e, t) {
  let o;
  ne(i, ve, (a) => t(5, o = a));
  let { endpoint: r = "" } = e, { playerid: c = "" } = e, { session: u = "" } = e, { lang: f = "en" } = e, { clientstyling: v = "" } = e, { clientstylingurl: y = "" } = e, { mbsource: w } = e, { translationurl: _ = "" } = e, p, R = oe(window.navigator.userAgent) !== "PC", d = !0, n = "", k = "", A = [];
  const B = async () => {
    try {
      const a = new URL(`${r}/api/pam/v1/player-notifications`);
      a.searchParams.set("type", String(Z)), a.searchParams.append("createNotificationIfNotFound", "true");
      const h = new Headers();
      h.append("X-SessionID", u), h.append("accept", "application/json");
      const W = await (await fetch(a.href, { method: "GET", headers: h })).json();
      W?.interval && (t(3, k = String(W?.interval)), t(2, n = k)), A.length || t(4, A = [
        { value: "1", text: o("daily") },
        { value: "2", text: o("weekly") },
        { value: "3", text: o("monthly") },
        { value: "4", text: `6 ${o("months")}` }
      ]), t(1, d = !1);
    } catch (a) {
      console.error(a), t(1, d = !1);
    }
  }, H = async () => {
    try {
      const a = new URL(`${r}/api/pam/v1/player-notifications`), h = new Headers();
      h.append("X-SessionID", u), h.append("Content-Type", "application/json"), h.append("Accept", "application/json"), a.searchParams.append("createNotificationIfNotFound", "true");
      const C = {
        type: Z,
        interval: Number(n),
        ackNotification: !0,
        ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
      };
      return (await fetch(a.href, {
        method: "PATCH",
        headers: h,
        body: JSON.stringify(C)
      })).ok;
    } catch (a) {
      return console.error(a), !1;
    }
  }, O = (a) => {
    a.preventDefault(), n && H().then((h) => {
      const C = h ? {
        type: "success",
        message: o("successMessage")
      } : {
        type: "error",
        message: o("errorMessage")
      };
      window.postMessage(
        {
          type: "WidgetNotification",
          data: C
        },
        window.location.href
      ), h && t(3, k = n);
    });
  }, E = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: R
      },
      window.location.href
    );
  }, j = () => ye(f), q = () => {
    const a = _;
    a && fetch(a).then((h) => h.json()).then((h) => {
      Object.keys(h).forEach((C) => {
        V(C, h[C]);
      });
    }).catch((h) => console.log(h));
  };
  Object.keys(G).forEach((a) => V(a, G[a])), re(() => () => {
  });
  const x = [[]];
  function m() {
    n = this.__value, t(2, n);
  }
  function M(a) {
    se[a ? "unshift" : "push"](() => {
      p = a, t(0, p);
    });
  }
  return i.$$set = (a) => {
    "endpoint" in a && t(9, r = a.endpoint), "playerid" in a && t(10, c = a.playerid), "session" in a && t(11, u = a.session), "lang" in a && t(12, f = a.lang), "clientstyling" in a && t(13, v = a.clientstyling), "clientstylingurl" in a && t(14, y = a.clientstylingurl), "mbsource" in a && t(15, w = a.mbsource), "translationurl" in a && t(16, _ = a.translationurl);
  }, i.$$.update = () => {
    i.$$.dirty[0] & /*lang*/
    4096 && f && j(), i.$$.dirty[0] & /*endpoint, playerid, session*/
    3584 && r && c && u && B(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    8193 && v && p && ue(p, v), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    16385 && y && p && pe(p, y), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
    32769 && w && p && de(p, `${w}.Style`), i.$$.dirty[0] & /*translationurl*/
    65536 && _ && q();
  }, [
    p,
    d,
    n,
    k,
    A,
    o,
    R,
    O,
    E,
    r,
    c,
    u,
    f,
    v,
    y,
    w,
    _,
    m,
    x,
    M
  ];
}
class Me extends ee {
  constructor(e) {
    super(), te(
      this,
      e,
      Ae,
      Re,
      ie,
      {
        endpoint: 9,
        playerid: 10,
        session: 11,
        lang: 12,
        clientstyling: 13,
        clientstylingurl: 14,
        mbsource: 15,
        translationurl: 16
      },
      ge,
      [-1, -1]
    );
  }
  get endpoint() {
    return this.$$.ctx[9];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), T();
  }
  get playerid() {
    return this.$$.ctx[10];
  }
  set playerid(e) {
    this.$$set({ playerid: e }), T();
  }
  get session() {
    return this.$$.ctx[11];
  }
  set session(e) {
    this.$$set({ session: e }), T();
  }
  get lang() {
    return this.$$.ctx[12];
  }
  set lang(e) {
    this.$$set({ lang: e }), T();
  }
  get clientstyling() {
    return this.$$.ctx[13];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), T();
  }
  get clientstylingurl() {
    return this.$$.ctx[14];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), T();
  }
  get mbsource() {
    return this.$$.ctx[15];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), T();
  }
  get translationurl() {
    return this.$$.ctx[16];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), T();
  }
}
me(Me, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  Me as default
};
