var U = (i, e, t) => new Promise((o, n) => {
  var l = (u) => {
    try {
      g(t.next(u));
    } catch (y) {
      n(y);
    }
  }, c = (u) => {
    try {
      g(t.throw(u));
    } catch (y) {
      n(y);
    }
  }, g = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(l, c);
  g((t = t.apply(i, e)).next());
});
import { a as $, $ as ee, S as te, i as ie, s as ae, f as T, b as ne, n as E, d as F, h as P, k as f, e as p, p as oe, q as re, u as se, w as le, C as J, D as Q, j as s, m as S, g as b, c as I, l as W, t as O, r as ce, v as N, a7 as ue, V, x as pe, y as de, z as me, A as ve, B as ye } from "./GeneralLogout-hWNQ3J3o.js";
import "../stencil/ui-skeleton-CTFP1U_H.js";
function G(i, e) {
  $(i, e);
}
function ge(i) {
  ee.set(i);
}
const Y = {
  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 fe(i) {
  ne(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 X(i, e, t) {
  const o = i.slice();
  return o[28] = e[t].value, o[29] = e[t].text, o;
}
function he(i, e, t) {
  const o = i.slice();
  return o[25] = e[t], o;
}
function we(i) {
  let e, t, o, n = (
    /*$_*/
    i[5]("titleAccountReview") + ""
  ), l, c, g, u, y = (
    /*$_*/
    i[5]("accountReviewText") + ""
  ), w, _, d, R, m, r, k = (
    /*$_*/
    i[5]("setFrequency") + ""
  ), A, H, D, z, L, j = (
    /*isMobile*/
    i[6] && ke(i)
  ), q = J(
    /*options*/
    i[4]
  ), x = [];
  for (let v = 0; v < q.length; v += 1)
    x[v] = Z(X(i, q, v));
  return {
    c() {
      e = f("div"), j && j.c(), t = S(), o = f("h2"), l = O(n), c = S(), g = f("div"), u = f("p"), w = O(y), _ = S(), d = f("form");
      for (let v = 0; v < x.length; v += 1)
        x[v].c();
      R = S(), m = f("div"), r = f("button"), A = O(k), p(o, "class", "AccountReviewTitle " + /*isMobile*/
      (i[6] ? "AccountReviewTitleNone" : "")), p(g, "class", "AccountReviewDescription " + /*isMobile*/
      (i[6] ? "AccountReviewDescriptionMobile" : "")), p(r, "class", H = "PlayerRealityCheckButton " + (!/*selectedInterval*/
      i[2] || /*currentInterval*/
      i[3] === /*selectedInterval*/
      i[2] ? "ButtonInactive" : "")), r.disabled = D = !/*selectedInterval*/
      i[2] || /*currentInterval*/
      i[3] === /*selectedInterval*/
      i[2], p(m, "class", "BottomButtonsArea " + /*isMobile*/
      (i[6] ? "BottomButtonsAreaMobile" : "")), p(d, "class", "customRadio"), p(e, "class", "containerTimeout");
    },
    m(v, M) {
      P(v, e, M), j && j.m(e, null), s(e, t), s(e, o), s(o, l), s(e, c), s(e, g), s(g, u), s(u, w), s(e, _), s(e, d);
      for (let a = 0; a < x.length; a += 1)
        x[a] && x[a].m(d, null);
      s(d, R), s(d, m), s(m, r), s(r, A), z || (L = W(
        r,
        "click",
        /*submit*/
        i[7]
      ), z = !0);
    },
    p(v, M) {
      if (
        /*isMobile*/
        v[6] && j.p(v, M), M[0] & /*$_*/
        32 && n !== (n = /*$_*/
        v[5]("titleAccountReview") + "") && I(l, n), M[0] & /*$_*/
        32 && y !== (y = /*$_*/
        v[5]("accountReviewText") + "") && I(w, y), M[0] & /*options, selectedInterval*/
        20
      ) {
        q = J(
          /*options*/
          v[4]
        );
        let a;
        for (a = 0; a < q.length; a += 1) {
          const h = X(v, q, a);
          x[a] ? x[a].p(h, M) : (x[a] = Z(h), x[a].c(), x[a].m(d, R));
        }
        for (; a < x.length; a += 1)
          x[a].d(1);
        x.length = q.length;
      }
      M[0] & /*$_*/
      32 && k !== (k = /*$_*/
      v[5]("setFrequency") + "") && I(A, k), M[0] & /*selectedInterval, currentInterval*/
      12 && H !== (H = "PlayerRealityCheckButton " + (!/*selectedInterval*/
      v[2] || /*currentInterval*/
      v[3] === /*selectedInterval*/
      v[2] ? "ButtonInactive" : "")) && p(r, "class", H), M[0] & /*selectedInterval, currentInterval*/
      12 && D !== (D = !/*selectedInterval*/
      v[2] || /*currentInterval*/
      v[3] === /*selectedInterval*/
      v[2]) && (r.disabled = D);
    },
    d(v) {
      v && F(e), j && j.d(), Q(x, v), z = !1, L();
    }
  };
}
function be(i) {
  let e, t, o, n, l, c, g, u, y;
  function w(r, k) {
    return (
      /*isMobile*/
      r[6] ? xe : _e
    );
  }
  let d = w(i)(i), R = J({ length: 6 }), m = [];
  for (let r = 0; r < R.length; r += 1)
    m[r] = Re(he(i, R, r));
  return {
    c() {
      e = f("div"), d.c(), t = S(), o = f("div"), n = f("ui-skeleton"), l = S(), c = f("div");
      for (let r = 0; r < m.length; r += 1)
        m[r].c();
      g = S(), u = f("div"), y = f("ui-skeleton"), b(n, "structure", "text"), b(n, "height", "15px"), b(n, "width", "100%"), b(n, "margin-bottom", "7px"), b(
        n,
        "rows",
        /*isMobile*/
        i[6] ? "5" : "3"
      ), p(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"
      ), p(u, "class", "Button"), p(c, "class", "SkeletonOptionContainer"), p(e, "class", "SkeletonContainer");
    },
    m(r, k) {
      P(r, e, k), d.m(e, null), s(e, t), s(e, o), s(o, n), s(e, l), s(e, c);
      for (let A = 0; A < m.length; A += 1)
        m[A] && m[A].m(c, null);
      s(c, g), s(c, u), s(u, y);
    },
    p(r, k) {
      d.p(r, k);
    },
    d(r) {
      r && F(e), d.d(), Q(m, r);
    }
  };
}
function ke(i) {
  let e, t, o, n, l, c, g, u, y, w, _ = (
    /*$_*/
    i[5]("titleAccountReview") + ""
  ), d, R, m;
  return {
    c() {
      e = f("div"), t = N("svg"), o = N("defs"), n = N("style"), l = O(`.aaa {
                  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
                }
              `), c = N("g"), g = N("g"), u = N("path"), y = S(), w = f("h2"), d = O(_), p(u, "class", "aaa"), p(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), p(u, "transform", "translate(15 15) rotate(180)"), p(g, "transform", "translate(20 158)"), p(c, "transform", "translate(-20 -158)"), p(t, "xmlns", "http://www.w3.org/2000/svg"), p(t, "width", "15"), p(t, "height", "15"), p(t, "viewBox", "0 0 15 15"), p(w, "class", "AccountReviewTitleMobile"), p(e, "class", "MenuReturnButton");
    },
    m(r, k) {
      P(r, e, k), s(e, t), s(t, o), s(o, n), s(n, l), s(t, c), s(c, g), s(g, u), s(e, y), s(e, w), s(w, d), R || (m = [
        W(
          e,
          "click",
          /*toggleScreen*/
          i[8]
        ),
        W(e, "keydown", null)
      ], R = !0);
    },
    p(r, k) {
      k[0] & /*$_*/
      32 && _ !== (_ = /*$_*/
      r[5]("titleAccountReview") + "") && I(d, _);
    },
    d(r) {
      r && F(e), R = !1, ce(m);
    }
  };
}
function Z(i) {
  let e, t, o, n, l = !1, c, g, u = (
    /*text*/
    i[29] + ""
  ), y, w, _, d, R;
  return _ = ue(
    /*$$binding_groups*/
    i[18][0]
  ), {
    c() {
      e = f("div"), t = f("input"), c = S(), g = f("label"), y = O(u), p(t, "type", "radio"), p(t, "id", o = "interval-" + /*value*/
      i[28]), t.__value = n = /*value*/
      i[28], V(t, t.__value), p(g, "for", w = "interval-" + /*value*/
      i[28]), _.p(t);
    },
    m(m, r) {
      P(m, e, r), s(e, t), t.checked = t.__value === /*selectedInterval*/
      i[2], s(e, c), s(e, g), s(g, y), d || (R = W(
        t,
        "change",
        /*input_change_handler*/
        i[17]
      ), d = !0);
    },
    p(m, r) {
      r[0] & /*options*/
      16 && o !== (o = "interval-" + /*value*/
      m[28]) && p(t, "id", o), r[0] & /*options*/
      16 && n !== (n = /*value*/
      m[28]) && (t.__value = n, V(t, t.__value), l = !0), (l || r[0] & /*selectedInterval, options*/
      20) && (t.checked = t.__value === /*selectedInterval*/
      m[2]), r[0] & /*options*/
      16 && u !== (u = /*text*/
      m[29] + "") && I(y, u), r[0] & /*options*/
      16 && w !== (w = "interval-" + /*value*/
      m[28]) && p(g, "for", w);
    },
    d(m) {
      m && F(e), _.r(), d = !1, R();
    }
  };
}
function _e(i) {
  let e;
  return {
    c() {
      e = f("div"), e.innerHTML = '<ui-skeleton structure="title" width="280px" margin-top="20px"></ui-skeleton>', p(e, "class", "SkeletonHeaderText");
    },
    m(t, o) {
      P(t, e, o);
    },
    p: E,
    d(t) {
      t && F(e);
    }
  };
}
function xe(i) {
  let e, t, o, n;
  return {
    c() {
      e = f("div"), t = f("ui-skeleton"), o = S(), n = f("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(n, "structure", "title"), b(n, "width", "180px"), b(n, "height", "20px"), b(n, "margin-top", "5px"), b(n, "margin-bottom", "15px"), p(e, "class", "SkeletonMenuButton " + /*isMobile*/
      (i[6] ? "Mobile" : ""));
    },
    m(l, c) {
      P(l, e, c), s(e, t), s(e, o), s(e, n);
    },
    p: E,
    d(l) {
      l && F(e);
    }
  };
}
function Re(i) {
  let e;
  return {
    c() {
      e = f("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>', p(e, "class", "SkeletonOption");
    },
    m(t, o) {
      P(t, e, o);
    },
    p: E,
    d(t) {
      t && F(e);
    }
  };
}
function Ae(i) {
  let e;
  function t(l, c) {
    return (
      /*skeletonLoading*/
      l[1] ? be : we
    );
  }
  let o = t(i), n = o(i);
  return {
    c() {
      e = f("div"), n.c(), p(e, "class", "PlayerAccountReviewWrapper " + /*isMobile*/
      (i[6] ? "PlayerAccountReviewWrapperMobile" : ""));
    },
    m(l, c) {
      P(l, e, c), n.m(e, null), i[19](e);
    },
    p(l, c) {
      o === (o = t(l)) && n ? n.p(l, c) : (n.d(1), n = o(l), n && (n.c(), n.m(e, null)));
    },
    i: E,
    o: E,
    d(l) {
      l && F(e), n.d(), i[19](null);
    }
  };
}
const K = 2;
function Me(i, e, t) {
  let o;
  oe(i, ye, (a) => t(5, o = a));
  let { endpoint: n = "" } = e, { playerid: l = "" } = e, { session: c = "" } = e, { lang: g = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: y = "" } = e, { mbsource: w } = e, { translationurl: _ = "" } = e, d, R = re(window.navigator.userAgent) !== "PC", m = !0, r = "", k = "", A = [];
  const H = () => U(this, null, function* () {
    try {
      const a = new URL(`${n}/api/pam/v1/player-notifications`);
      a.searchParams.set("type", String(K)), a.searchParams.append("createNotificationIfNotFound", "true");
      const h = new Headers();
      h.append("X-SessionID", c), h.append("accept", "application/json");
      const B = yield (yield fetch(a.href, { method: "GET", headers: h })).json();
      B != null && B.interval && (t(3, k = String(B == null ? void 0 : B.interval)), t(2, r = 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, m = !1);
    } catch (a) {
      console.error(a), t(1, m = !1);
    }
  }), D = () => U(this, null, function* () {
    try {
      const a = new URL(`${n}/api/pam/v1/player-notifications`), h = new Headers();
      h.append("X-SessionID", c), h.append("Content-Type", "application/json"), h.append("Accept", "application/json"), a.searchParams.append("createNotificationIfNotFound", "true");
      const C = {
        type: K,
        interval: Number(r),
        ackNotification: !0,
        ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
      };
      return (yield fetch(a.href, {
        method: "PATCH",
        headers: h,
        body: JSON.stringify(C)
      })).ok;
    } catch (a) {
      return console.error(a), !1;
    }
  }), z = (a) => {
    a.preventDefault(), r && D().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 = r);
    });
  }, L = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: R
      },
      window.location.href
    );
  }, j = () => ge(g), q = () => {
    const a = _;
    a && fetch(a).then((h) => h.json()).then((h) => {
      Object.keys(h).forEach((C) => {
        G(C, h[C]);
      });
    }).catch((h) => console.log(h));
  };
  Object.keys(Y).forEach((a) => G(a, Y[a])), se(() => () => {
  });
  const x = [[]];
  function v() {
    r = this.__value, t(2, r);
  }
  function M(a) {
    le[a ? "unshift" : "push"](() => {
      d = a, t(0, d);
    });
  }
  return i.$$set = (a) => {
    "endpoint" in a && t(9, n = a.endpoint), "playerid" in a && t(10, l = a.playerid), "session" in a && t(11, c = a.session), "lang" in a && t(12, g = a.lang), "clientstyling" in a && t(13, u = 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 && g && j(), i.$$.dirty[0] & /*endpoint, playerid, session*/
    3584 && n && l && c && H(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    8193 && u && d && pe(d, u), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    16385 && y && d && de(d, y), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
    32769 && w && d && me(d, `${w}.Style`), i.$$.dirty[0] & /*translationurl*/
    65536 && _ && q();
  }, [
    d,
    m,
    r,
    k,
    A,
    o,
    R,
    z,
    L,
    n,
    l,
    c,
    g,
    u,
    y,
    w,
    _,
    v,
    x,
    M
  ];
}
class Se extends te {
  constructor(e) {
    super(), ie(
      this,
      e,
      Me,
      Ae,
      ae,
      {
        endpoint: 9,
        playerid: 10,
        session: 11,
        lang: 12,
        clientstyling: 13,
        clientstylingurl: 14,
        mbsource: 15,
        translationurl: 16
      },
      fe,
      [-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();
  }
}
ve(Se, { endpoint: {}, playerid: {}, session: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  Se as default
};
