import { a as Qe, $ as Xe, S as xe, i as $e, s as ei, f as $, b as ii, n as be, d as k, v as fe, t as S, q as te, r as d, c as T, m as u, w as ee, a5 as ti, e as L, p as M, x as K, u as C, g as oi, h as ai, o as ni, k as ue, l as Le, Q as li, a6 as de, j as si, L as ve, N as ke, O as ye, K as le, P as ri, z as mi, A as ui, B as ci, C as di, D as pi } from "./PlayerAccountController-CKaOyxPs.js";
import "./PlayerAccountGamingLimitsInfoCard-aPWTEP6v.js";
import "./PlayerAccountTimeout-D0RW52RF.js";
import { f as pe } from "./PlayerBonusHistory-CkarFQt0.js";
function Te(e, i) {
  Qe(e, i);
}
function fi(e) {
  Xe.set(e);
}
const Ee = {
  en: {
    back: "Back to Gaming Limits",
    limit: "Limit",
    amount: "Amount",
    noLimit: "No limit",
    changeLimitsText: "Are you sure you want to change the {limit}s?",
    success: "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",
    remove: "You have requested to remove this limit. This will be applied on",
    invalidInputMessageLimit: "The amount needs to be between 1 and 99,999,999.",
    invalidInputMessageTime: "The time amount needs to be greater than {minTime} and below {maxTime} minutes.",
    expirationDate: "Expiration Date:",
    save: "Save",
    changedLimitTextBefore: "Your limit has been changed or increased:",
    changedLimitTextAfter: "You will have to wait for the expiration date for your new limit to take effect.",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly",
    depositLimit: "Deposit Limit",
    timeLimit: "Time Limit",
    wageringLimit: "Wagering Limit",
    lossLimit: "Loss Limit"
  },
  "zh-hk": {
    back: "返回游戲限制",
    limit: "限制",
    amount: "數量",
    noLimit: "沒有限制t",
    changeLimitsText: "您確定要更改 {limit} 嗎？",
    success: "您的遊戲限制已成功設置。",
    remove: "您已請求取消此限制。 這將應用於",
    invalidInputMessageLimit: "金額需要在 0 到 99,999,999 之間",
    invalidInputMessageTime: "時間量需要大於 {minTime} 且低於 {maxTime} 分鐘",
    expirationDate: "截止日期:",
    save: "節省",
    changedLimitTextBefore: "您的限額已更改或增加：",
    changedLimitTextAfter: "您必須等待到期日期才能使新限制生效",
    daily: "日常的",
    weekly: "每周",
    monthly: "月刊",
    depositLimit: "存款限额",
    timeLimit: "时限",
    wageringLimit: "投注限额",
    lossLimit: "损失限额"
  },
  fr: {
    back: "Retour aux limites de jeu",
    daily: "Quotidiennement",
    weekly: "Hebdomadaire",
    monthly: "Mensuel",
    limit: "Limite",
    amount: "Montant",
    noLimit: "Aucune limite",
    changeLimitsText: "Etes-vous sûr de vouloir changer les {limit}s??",
    success: "Vos limites de jeu ont été respectées.",
    remove: "Vous avez demandé à ce que cette limite soit supprimée,elle sera appliquée",
    invalidInputMessageLimit: "Le montant doit être compris entre 1 et 99,999,999.",
    invalidInputMessageTime: "La durée doit être supérieure au {minTime} et inférieur au {maxTime} minutes .",
    expirationDate: "Date d'expiration:",
    save: "Sauvez",
    changedLimitTextBefore: "Votre limit a été modifiée ou augmentée:",
    changedLimitTextAfter: "Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet",
    depositLimit: "Limite de dépôt",
    timeLimit: "Limite de temps",
    wageringLimit: "Limite de mise",
    lossLimit: "Limite de perte"
  },
  ro: {
    back: "Înapoi la limite de joc",
    limit: "Limită",
    amount: "Sumă",
    noLimit: "Fără Limită",
    changeLimitsText: "Ești sigur că vrei să modifici {limit}?",
    success: "Limitele tale de joc au fost configurate cu success.",
    remove: "Ai solicitat eliminarea acestei limite. Acest lucru va avea loc la data expirării limitei",
    invalidInputMessageLimit: "Trebuie să setezi o sumă intre 1 și 99,999,999.",
    invalidInputMessageTime: "Trebuie să setezi o limită intre {minTime} minute și {maxTime} minute",
    expirationDate: "Dată Expirare:",
    save: "Salvează",
    changedLimitTextBefore: "Limita ta a fost schimbată sau a crescut:",
    changedLimitTextAfter: ". Trebuie să aștepți până la data de expirare pentru ca noua ta limită să intre în vigoare.",
    daily: "Zilnic",
    weekly: "Săptămânal",
    monthly: "Lunar",
    depositLimit: "Limită de depunere",
    timeLimit: "Limită de timp",
    wageringLimit: "Limită de pariere",
    lossLimit: "Limite de pierdere"
  },
  es: {
    back: "Regresa a límites de juego",
    limit: "Límite",
    amount: "Monto",
    noLimit: "Sin Límite",
    changeLimitsText: "Esta seguro que desea cambiar los {limit}es?",
    success: "Limite actualizado satisfactoriamente",
    remove: "Ha solicitado retirar este limite. Esto será aplicado",
    invalidInputMessageLimit: "El monto debe ser entre 1 y 99",
    invalidInputMessageTime: "La cantidad de tiempo debe ser superior a {minTime} y por debajo de {maxTime} minutos.",
    expirationDate: "Fecha de expiración:",
    save: "Guardar",
    changedLimitTextBefore: "Tú limite ha sido cambiado o incrementado:",
    changedLimitTextAfter: "Tendrás que esperar a la fecha de expiración para que tu nuevo límite entre en vigencia.",
    daily: "Diario",
    weekly: "Semanal",
    monthly: "Mensual",
    depositLimit: "Límite de depósito",
    timeLimit: "Límite de tiempo",
    wageringLimit: "Límite de apuestas",
    lossLimit: "Límite de pérdida"
  },
  pt: {
    back: "Voltar para Limites de jogos",
    limit: "Limite",
    amount: "Montante",
    noLimit: "Sem limite",
    changeLimitsText: "Tem certeza de que deseja alterar os {limite}s?",
    success: "Seus limites de jogo foram definidos com sucesso.",
    remove: "Você solicitou a remoção deste limite. Isso será aplicado em",
    invalidInputMessageLimit: "O valor precisa estar entre 1 e 99.999.999",
    invalidInputMessageTime: "A quantidade de tempo precisa ser maior que {1} e menor que {99999999} minutos",
    expirationDate: "Data de Validade",
    save: "Guardar",
    changedLimitTextBefore: "Seu limite foi alterado ou aumentado:",
    changedLimitTextAfter: "Você terá que aguardar a data de expiração para que seu novo limite entre em vigor",
    daily: "Diariamente",
    weekly: "Semanalmente",
    monthly: "Mensalmente",
    depositLimit: "Limite de Depósito",
    timeLimit: "Limite de Tempo",
    wageringLimit: "Limite de Apostas",
    lossLimit: "Limite de Perda"
  },
  hr: {
    back: "Povratak na ograničenja igranja",
    limit: "Limit",
    amount: "Iznos",
    noLimit: "Nema ograničenja",
    changeLimitsText: "Jeste li sigurni da želite promijeniti {limit}e?",
    success: "Uspješno",
    remove: "Zatražili ste uklanjanje ovog ograničenja. Ovo će se primijeniti na",
    invalidInputMessageLimit: "Iznos mora biti između 1 i 99",
    invalidInputMessageTime: "Vremenski iznos mora biti veći od {minTime} i manji od {maxTime} minuta.",
    expirationDate: "Datum isteka:",
    save: "Spremi",
    changedLimitTextBefore: "Vaše ograničenje je promijenjeno ili povećano:",
    changedLimitTextAfter: "Morat ćete pričekati datum isteka da bi vaše novo ograničenje stupilo na snagu.",
    daily: "Dnevno",
    weekly: "Tjedno",
    monthly: "Mjesečno",
    depositLimit: "Ograničenje uplate",
    timeLimit: "Vremensko ograničenje",
    wageringLimit: "Ograničenje igranja",
    lossLimit: "Ograničenje gubitka"
  },
  "pt-br": {
    back: "Retornar aos limites do jogo",
    limit: "Limite",
    amount: "Quantidade",
    noLimit: "Sem limite",
    changeLimitsText: "Tem certeza de que deseja alterar o(s) limite(s)?",
    success: "A operação bem-sucedida lorem Ipsum é simplesmente um texto fictício da indústria de impressão e composição tipográfica.",
    remove: "Você solicitou a remoção deste limite. Isto será aplicado a partir de",
    invalidInputMessageLimit: "A Quantia deve estar entre 1 e 99",
    invalidInputMessageTime: "A quantidade de tempo precisa ser maior que {minTime} e menor que {maxTime} minutos.",
    expirationDate: "Data de expiração:",
    save: "Manter",
    changedLimitTextBefore: "Seu limite de tempo foi alterado ou aumentado:",
    changedLimitTextAfter: "Você deve aguardar a data de expiração para que seu novo limite entre em vigor.",
    daily: "Diário",
    weekly: "Semanalmente",
    monthly: "Por mês",
    depositLimit: "Limite de depósito",
    timeLimit: "Limite de tempo",
    wageringLimit: "Limite de aposta",
    lossLimit: "Limite de perda"
  },
  "es-mx": {
    back: "Regresar a límites de juego",
    limit: "Límite",
    amount: "Monto",
    noLimit: "Sin límite",
    changeLimitsText: "¿Está seguro que quiere cambiar el/los límite(s)?",
    success: "Operación exitosa lorem Ipsum is simply dummy text of the printing and typesetting industry.",
    remove: "Ha solicitado remover este límite. Esto se aplicará a partir de",
    invalidInputMessageLimit: "El monto debe ser entre  1 y 99,999,999",
    invalidInputMessageTime: "El monto de tiempo necesita ser mayor a {minTime} y menor a {maxTime} minutos.",
    expirationDate: "Fecha de expiración:",
    save: "Guardar",
    changedLimitTextBefore: "Tú límite de tiempo ha sido cambiado o aumentado:",
    changedLimitTextAfter: "Tiene que esperar a la fecha de expiración para que su nuevo límite entre en efecto.",
    daily: "Diario",
    weekly: "Semanal",
    monthly: "Mensual",
    depositLimit: "Límite de depósito",
    timeLimit: "Límite de tiempo",
    wageringLimit: "Límite de apuesta",
    lossLimit: "Límite de pérdida"
  },
  tr: {
    back: "Oyun Sınırlarına Geri Dön",
    limit: "Sınır",
    amount: "Miktar",
    noLimit: "Limit yok",
    changeLimitsText: "{limit}'leri değiştirmek istediğinizden emin misiniz?",
    success: "Başarı lorem Ipsum, basım ve dizgi endüstrisinin sahte metnidir.",
    remove: "Bu sınırın kaldırılmasını talep ettiniz. Bu şu tarihte uygulanacaktır:",
    invalidInputMessageLimit: "Tutarın 1 ile 99.999.999 arasında olması gerekir.",
    invalidInputMessageTime: "Süre miktarının {minTime} değerinden büyük ve {maxTime} dakikanın altında olması gerekir.",
    expirationDate: "Son kullanma tarihi:",
    save: "Kaydetmek",
    changedLimitTextBefore: "Limitiniz değiştirildi veya artırıldı:",
    changedLimitTextAfter: "Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir.",
    daily: "Günlük",
    weekly: "Haftalık",
    monthly: "Aylık",
    depositLimit: "Para Yatırma Limiti",
    timeLimit: "Zaman sınırı",
    wageringLimit: "Bahis Limiti",
    lossLimit: "Kayıp Limiti"
  },
  "en-us": {
    back: "Back to Gaming Limits",
    limit: "Limit",
    amount: "Amount",
    noLimit: "No limit",
    changeLimitsText: "Are you sure you want to change the {limit}s?",
    success: "Success lorem Ipsum is simply dummy text of the printing and typesetting industry.",
    remove: "You have requested to remove this limit. This will be applied on",
    invalidInputMessageLimit: "The amount needs to be between 1 and 99,999,999.",
    invalidInputMessageTime: "The time amount needs to be greater than {minTime} and below {maxTime} minutes.",
    expirationDate: "Expiration Date:",
    save: "Save",
    changedLimitTextBefore: "Your limit has been changed or increased:",
    changedLimitTextAfter: "You will have to wait for the expiration date for your new limit to take effect.",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly",
    depositLimit: "Deposit Limit",
    timeLimit: "Time Limit",
    wageringLimit: "Wagering Limit",
    lossLimit: "Loss Limit"
  }
};
if (typeof window != "undefined") {
  let e = function(i) {
    return function(...t) {
      try {
        return i.apply(this, t);
      } catch (o) {
        if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
          return !1;
        throw o;
      }
    };
  };
  customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsConfirmationModal-538HdqwS.js").then(
    ({ default: i }) => {
      !customElements.get("player-account-gaming-limits-confirmation-modal") && customElements.define(
        "player-account-gaming-limits-confirmation-modal",
        i.element
      );
    }
  );
}
function gi(e) {
  ii(e, "svelte-5vl9hz", ".MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px;cursor:pointer}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.MyAccountCategoryTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.MyAccountCategoryTitleNone{display:none !important}.AccountEditLimitsWrapper{padding:50px;max-width:760px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper{padding:20px}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea{grid-template-columns:1fr}.AccountEditLimitsWrapper.AccountEditLimitsMobileWrapper .AccountEditLimitsControlArea .AccountEditLimitsSaveButton{width:100%}.AccountEditBackButton{display:inline-block;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:26px;font-weight:300;cursor:pointer;margin-bottom:30px}.AccountEditBackButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:5px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditLimitsHeader h6{margin:0;font-weight:normal;font-size:16px;line-height:20px}.AccountEditLimitsHeader .AccountEditLimitsIcon{display:flex;width:20px;height:20px;background:transparent;border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px;cursor:pointer}.AccountEditLimitChangePeriodIcon{display:flex;width:20px;height:20px;color:var(--emw--color-gray-300, #58586B);background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);align-items:center;justify-content:center;border-radius:30px;cursor:pointer;margin-right:10px}.AccountEditLimitSuccessfulChangeContainer{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--color-primary-100, #F1BED9);font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));border-radius:5px;padding:10px}.AccountEditLimitSuccessfulChangeContainer p{margin:0}.AccountEditLimitsIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.AccountEditLimitsTitle{font-size:16px;font-weight:300;color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));margin:0;padding:10px 0 10px}.AccountEditLimitsExpiryDate{font-size:12px;font-weight:300;color:var(--emw--color-black, #000000)}.AccountEditLimitsContainer{display:grid;grid-template-columns:1fr 1fr;grid-gap:30px;direction:ltr}@media only screen and (max-width: 1024px){.AccountEditLimitsContainer{grid-template-columns:1fr;grid-gap:20px}}.AccountEditField{width:100%;font-size:14px;font-weight:300;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));padding:10px;line-height:16px;background:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;outline:none;transition-duration:0.3s}.AccountEditField:focus,.AccountEditField :focus-within,.AccountEditField :focus-visible,.AccountEditField :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.AccountEditFieldCustom{padding:3%}.AccountEditLimitsPeriodChangeContainer{background:var(--emw--color-gray-50, #F9F8F8);border-radius:5px}.AccountEditLimitsPeriodChangeContainer p{max-width:290px;display:-webkit-box;padding:10px 35px 15px 10px;color:var(--emw--color-gray-300, #58586B);font-size:12px;font-weight:300}.AccountEditLimitsPeriodChangeContainer p .AccountEditLimitChangePeriodIcon{font-size:14px;font-weight:400}.AccountEditLimitsControlArea{display:grid;grid-template-columns:1fr 1fr;grid-gap:40px;margin-top:35px}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton{padding:12px;cursor:pointer;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF))}.AccountEditLimitsControlArea .AccountEditLimitsSaveButton.AccountEditLimitsButtonDisabled{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));cursor:not-allowed;opacity:0.6}.AccountEditLimitsBox{position:relative}.AccountEditWarningText{position:relative;margin:0}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #FD2839));font-size:10px;position:absolute;top:6px;margin:0;line-height:10px}.AccountEditLimitsInputContainer{position:relative;padding-top:10px;width:94%}");
}
function Ae(e, i, t) {
  const o = e.slice();
  return o[56] = i[t], o[57] = i, o[58] = t, o;
}
function Me(e, i, t) {
  const o = e.slice();
  return o[59] = i[t], o;
}
function Ce(e, i, t) {
  const o = e.slice();
  return o[56] = i[t], o[58] = t, o;
}
function hi(e) {
  let i, t, o, a, n, m, l, s, c, g, B = (
    /*$_*/
    e[18]("back") + ""
  ), w, v, P;
  return {
    c() {
      i = L("div"), t = K("svg"), o = K("defs"), a = K("style"), n = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), m = K("g"), l = K("g"), s = K("path"), c = M(), g = L("h2"), w = C(B), d(s, "class", "aaa"), d(s, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(s, "transform", "translate(15 15) rotate(180)"), d(l, "transform", "translate(20 158)"), d(m, "transform", "translate(-20 -158)"), d(t, "xmlns", "http://www.w3.org/2000/svg"), d(t, "width", "15"), d(t, "height", "15"), d(t, "viewBox", "0 0 15 15"), d(g, "class", "MyAccountCategoryTitleMobile"), d(i, "class", "MenuReturnButton");
    },
    m(p, h) {
      T(p, i, h), u(i, t), u(t, o), u(o, a), u(a, n), u(t, m), u(m, l), u(l, s), u(i, c), u(i, g), u(g, w), v || (P = ee(
        i,
        "click",
        /*switchToLimitsGroupView*/
        e[22]
      ), v = !0);
    },
    p(p, h) {
      h[0] & /*$_*/
      262144 && B !== (B = /*$_*/
      p[18]("back") + "") && S(w, B);
    },
    d(p) {
      p && k(i), v = !1, P();
    }
  };
}
function Be(e) {
  let i, t, o = (
    /*$_*/
    e[18]("success") + ""
  ), a;
  return {
    c() {
      i = L("div"), t = L("p"), a = C(o), d(i, "class", "AccountEditLimitSuccessfulChangeContainer");
    },
    m(n, m) {
      T(n, i, m), u(i, t), u(t, a);
    },
    p(n, m) {
      m[0] & /*$_*/
      262144 && o !== (o = /*$_*/
      n[18]("success") + "") && S(a, o);
    },
    d(n) {
      n && k(i);
    }
  };
}
function De(e) {
  let i, t = ue(
    /*limitsUpdateData*/
    e[14]
  ), o = [];
  for (let a = 0; a < t.length; a += 1)
    o[a] = Ne(Ce(e, t, a));
  return {
    c() {
      i = L("div");
      for (let a = 0; a < o.length; a += 1)
        o[a].c();
      d(i, "class", "AccountEditLimitSuccessfulChangeContainer");
    },
    m(a, n) {
      T(a, i, n);
      for (let m = 0; m < o.length; m += 1)
        o[m] && o[m].m(i, null);
    },
    p(a, n) {
      if (n[0] & /*limitsUpdateData, $_, storedData*/
      409600) {
        t = ue(
          /*limitsUpdateData*/
          a[14]
        );
        let m;
        for (m = 0; m < t.length; m += 1) {
          const l = Ce(a, t, m);
          o[m] ? o[m].p(l, n) : (o[m] = Ne(l), o[m].c(), o[m].m(i, null));
        }
        for (; m < o.length; m += 1)
          o[m].d(1);
        o.length = t.length;
      }
    },
    d(a) {
      a && k(i), Le(o, a);
    }
  };
}
function Ie(e) {
  let i, t = (
    /*$_*/
    e[18]("remove") + ""
  ), o, a, n = (
    /*selectData*/
    (e[56].expiryDate ? pe(new Date(
      /*selectData*/
      e[56].expiryDate
    ), "d/M/yyyy - h:mm a") : "N/A") + ""
  ), m;
  return {
    c() {
      i = L("p"), o = C(t), a = M(), m = C(n);
    },
    m(l, s) {
      T(l, i, s), u(i, o), u(i, a), u(i, m);
    },
    p(l, s) {
      s[0] & /*$_*/
      262144 && t !== (t = /*$_*/
      l[18]("remove") + "") && S(o, t), s[0] & /*limitsUpdateData*/
      16384 && n !== (n = /*selectData*/
      (l[56].expiryDate ? pe(new Date(
        /*selectData*/
        l[56].expiryDate
      ), "d/M/yyyy - h:mm a") : "N/A") + "") && S(m, n);
    },
    d(l) {
      l && k(i);
    }
  };
}
function Ne(e) {
  let i, t = (
    /*selectData*/
    e[56].period == /*storedData*/
    e[17][
      /*index*/
      e[58]
    ].period && Ie(e)
  );
  return {
    c() {
      t && t.c(), i = ve();
    },
    m(o, a) {
      t && t.m(o, a), T(o, i, a);
    },
    p(o, a) {
      /*selectData*/
      o[56].period == /*storedData*/
      o[17][
        /*index*/
        o[58]
      ].period ? t ? t.p(o, a) : (t = Ie(o), t.c(), t.m(i.parentNode, i)) : t && (t.d(1), t = null);
    },
    d(o) {
      o && k(i), t && t.d(o);
    }
  };
}
function je(e) {
  let i, t, o = ue(
    /*limitsUpdateData*/
    e[14]
  ), a = [];
  for (let n = 0; n < o.length; n += 1)
    a[n] = Oe(Ae(e, o, n));
  return {
    c() {
      i = L("div"), t = L("div");
      for (let n = 0; n < a.length; n += 1)
        a[n].c();
      d(t, "class", "AccountEditLimitsContainer"), d(i, "class", "AccountEditContent");
    },
    m(n, m) {
      T(n, i, m), u(i, t);
      for (let l = 0; l < a.length; l += 1)
        a[l] && a[l].m(t, null);
    },
    p(n, m) {
      if (m[0] & /*$_, limitsUpdateData, currency, invalidIndexes, storedData, checkUserInputAmount, updatedLimitValues, limitname, minTimeValue, maxTimeValue, isMobile, limitPredefinedData*/
      18836560) {
        o = ue(
          /*limitsUpdateData*/
          n[14]
        );
        let l;
        for (l = 0; l < o.length; l += 1) {
          const s = Ae(n, o, l);
          a[l] ? a[l].p(s, m) : (a[l] = Oe(s), a[l].c(), a[l].m(t, null));
        }
        for (; l < a.length; l += 1)
          a[l].d(1);
        a.length = o.length;
      }
    },
    d(n) {
      n && k(i), Le(a, n);
    }
  };
}
function Se(e) {
  let i, t, o = (
    /*$_*/
    e[18]("noLimit") + ""
  ), a, n, m, l, s, c, g, B, w = ue(
    /*limitPredefinedData*/
    e[20].get(
      /*limitname*/
      e[6]
    )[
      /*index*/
      e[58]
    ].values
  ), v = [];
  for (let y = 0; y < w.length; y += 1)
    v[y] = Fe(Me(e, w, y));
  function P() {
    e[30].call(
      i,
      /*index*/
      e[58]
    );
  }
  let p = (
    /*storedData*/
    e[17][
      /*index*/
      e[58]
    ].amount === "Custom" && We(e)
  ), h = (
    /*selectData*/
    e[56].isModified === !0 && qe(e)
  );
  return {
    c() {
      i = L("select"), t = L("option"), a = C(o);
      for (let y = 0; y < v.length; y += 1)
        v[y].c();
      m = M(), l = L("div"), p && p.c(), s = M(), h && h.c(), c = ve(), t.__value = "", le(t, t.__value), t.disabled = !0, t.selected = !0, t.hidden = !0, d(i, "class", "AccountEditField " + /*isMobile*/
      (e[19] ? "TimeoutSelectMobile" : "")), i.disabled = n = /*selectData*/
      e[56].isModified === !0, /*storedData*/
      e[17][
        /*index*/
        e[58]
      ].amount === void 0 && ri(P), d(l, "class", "AccountEditLimitsInputContainer");
    },
    m(y, E) {
      T(y, i, E), u(i, t), u(t, a);
      for (let _ = 0; _ < v.length; _ += 1)
        v[_] && v[_].m(i, null);
      ke(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].amount,
        !0
      ), T(y, m, E), T(y, l, E), p && p.m(l, null), T(y, s, E), h && h.m(y, E), T(y, c, E), g || (B = [
        ee(i, "change", P),
        ee(i, "change", function() {
          ye(
            /*checkUserInputAmount*/
            e[24](
              /*storedData*/
              e[17][
                /*index*/
                e[58]
              ],
              /*index*/
              e[58],
              !1,
              /*updatedLimitValues*/
              e[16]
            )
          ) && e[24](
            /*storedData*/
            e[17][
              /*index*/
              e[58]
            ],
            /*index*/
            e[58],
            !1,
            /*updatedLimitValues*/
            e[16]
          ).apply(this, arguments);
        })
      ], g = !0);
    },
    p(y, E) {
      if (e = y, E[0] & /*$_*/
      262144 && o !== (o = /*$_*/
      e[18]("noLimit") + "") && S(a, o), E[0] & /*limitPredefinedData, limitname, currency*/
      1048656) {
        w = ue(
          /*limitPredefinedData*/
          e[20].get(
            /*limitname*/
            e[6]
          )[
            /*index*/
            e[58]
          ].values
        );
        let _;
        for (_ = 0; _ < w.length; _ += 1) {
          const Y = Me(e, w, _);
          v[_] ? v[_].p(Y, E) : (v[_] = Fe(Y), v[_].c(), v[_].m(i, null));
        }
        for (; _ < v.length; _ += 1)
          v[_].d(1);
        v.length = w.length;
      }
      E[0] & /*limitsUpdateData*/
      16384 && n !== (n = /*selectData*/
      e[56].isModified === !0) && (i.disabled = n), E[0] & /*storedData, limitPredefinedData, limitname*/
      1179712 && ke(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].amount
      ), /*storedData*/
      e[17][
        /*index*/
        e[58]
      ].amount === "Custom" ? p ? p.p(e, E) : (p = We(e), p.c(), p.m(l, null)) : p && (p.d(1), p = null), /*selectData*/
      e[56].isModified === !0 ? h ? h.p(e, E) : (h = qe(e), h.c(), h.m(c.parentNode, c)) : h && (h.d(1), h = null);
    },
    d(y) {
      y && (k(i), k(m), k(l), k(s), k(c)), Le(v, y), p && p.d(), h && h.d(y), g = !1, fe(B);
    }
  };
}
function ze(e) {
  let i = (
    /*limitname*/
    (e[6] !== "Time Limit" ? (
      /*currency*/
      e[4]
    ) : " minutes") + ""
  ), t;
  return {
    c() {
      t = C(i);
    },
    m(o, a) {
      T(o, t, a);
    },
    p(o, a) {
      a[0] & /*limitname, currency*/
      80 && i !== (i = /*limitname*/
      (o[6] !== "Time Limit" ? (
        /*currency*/
        o[4]
      ) : " minutes") + "") && S(t, i);
    },
    d(o) {
      o && k(t);
    }
  };
}
function Fe(e) {
  let i, t = (
    /*predefinedData*/
    e[59] + ""
  ), o, a, n, m, l = (
    /*predefinedData*/
    e[59] !== "No limit" && /*predefinedData*/
    e[59] !== "Custom" && ze(e)
  );
  return {
    c() {
      i = L("option"), o = C(t), a = M(), l && l.c(), n = M(), i.__value = m = /*predefinedData*/
      e[59], le(i, i.__value);
    },
    m(s, c) {
      T(s, i, c), u(i, o), u(i, a), l && l.m(i, null), u(i, n);
    },
    p(s, c) {
      c[0] & /*limitname*/
      64 && t !== (t = /*predefinedData*/
      s[59] + "") && S(o, t), /*predefinedData*/
      s[59] !== "No limit" && /*predefinedData*/
      s[59] !== "Custom" ? l ? l.p(s, c) : (l = ze(s), l.c(), l.m(i, n)) : l && (l.d(1), l = null), c[0] & /*limitname*/
      64 && m !== (m = /*predefinedData*/
      s[59]) && (i.__value = m, le(i, i.__value));
    },
    d(s) {
      s && k(i), l && l.d();
    }
  };
}
function We(e) {
  let i;
  function t(n, m) {
    return (
      /*limitname*/
      n[6] !== "Time Limit" ? vi : Li
    );
  }
  let o = t(e), a = o(e);
  return {
    c() {
      a.c(), i = ve();
    },
    m(n, m) {
      a.m(n, m), T(n, i, m);
    },
    p(n, m) {
      o === (o = t(n)) && a ? a.p(n, m) : (a.d(1), a = o(n), a && (a.c(), a.m(i.parentNode, i)));
    },
    d(n) {
      n && k(i), a.d(n);
    }
  };
}
function Li(e) {
  let i, t, o, a, n, m;
  function l() {
    e[32].call(
      i,
      /*index*/
      e[58]
    );
  }
  let s = (
    /*invalidIndexes*/
    e[13][
      /*index*/
      e[58]
    ] == 1 && Ve(e)
  );
  return {
    c() {
      i = L("input"), o = M(), a = L("p"), s && s.c(), d(i, "type", "number"), d(i, "class", "AccountEditField AccountEditFieldCustom"), i.disabled = t = /*selectData*/
      e[56].isModified === !0, d(a, "class", "AccountEditWarningText");
    },
    m(c, g) {
      T(c, i, g), le(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].value
      ), T(c, o, g), T(c, a, g), s && s.m(a, null), n || (m = [
        ee(i, "keyup", function() {
          ye(
            /*checkUserInputAmount*/
            e[24](
              /*storedData*/
              e[17][
                /*index*/
                e[58]
              ],
              /*index*/
              e[58],
              !0,
              /*updatedLimitValues*/
              e[16]
            )
          ) && e[24](
            /*storedData*/
            e[17][
              /*index*/
              e[58]
            ],
            /*index*/
            e[58],
            !0,
            /*updatedLimitValues*/
            e[16]
          ).apply(this, arguments);
        }),
        ee(i, "input", l)
      ], n = !0);
    },
    p(c, g) {
      e = c, g[0] & /*limitsUpdateData*/
      16384 && t !== (t = /*selectData*/
      e[56].isModified === !0) && (i.disabled = t), g[0] & /*storedData, limitPredefinedData, limitname*/
      1179712 && de(i.value) !== /*storedData*/
      e[17][
        /*index*/
        e[58]
      ].value && le(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].value
      ), /*invalidIndexes*/
      e[13][
        /*index*/
        e[58]
      ] == 1 ? s ? s.p(e, g) : (s = Ve(e), s.c(), s.m(a, null)) : s && (s.d(1), s = null);
    },
    d(c) {
      c && (k(i), k(o), k(a)), s && s.d(), n = !1, fe(m);
    }
  };
}
function vi(e) {
  let i, t, o, a, n, m;
  function l() {
    e[31].call(
      i,
      /*index*/
      e[58]
    );
  }
  let s = (
    /*invalidIndexes*/
    e[13][
      /*index*/
      e[58]
    ] == 1 && Pe(e)
  );
  return {
    c() {
      i = L("input"), o = M(), a = L("p"), s && s.c(), d(i, "type", "number"), d(i, "class", "AccountEditField AccountEditFieldCustom"), i.disabled = t = /*selectData*/
      e[56].isModified === !0, d(a, "class", "AccountEditWarningText");
    },
    m(c, g) {
      T(c, i, g), le(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].value
      ), T(c, o, g), T(c, a, g), s && s.m(a, null), n || (m = [
        ee(i, "keyup", function() {
          ye(
            /*checkUserInputAmount*/
            e[24](
              /*storedData*/
              e[17][
                /*index*/
                e[58]
              ],
              /*index*/
              e[58],
              !1,
              /*updatedLimitValues*/
              e[16]
            )
          ) && e[24](
            /*storedData*/
            e[17][
              /*index*/
              e[58]
            ],
            /*index*/
            e[58],
            !1,
            /*updatedLimitValues*/
            e[16]
          ).apply(this, arguments);
        }),
        ee(i, "input", l)
      ], n = !0);
    },
    p(c, g) {
      e = c, g[0] & /*limitsUpdateData*/
      16384 && t !== (t = /*selectData*/
      e[56].isModified === !0) && (i.disabled = t), g[0] & /*storedData, limitPredefinedData, limitname*/
      1179712 && de(i.value) !== /*storedData*/
      e[17][
        /*index*/
        e[58]
      ].value && le(
        i,
        /*storedData*/
        e[17][
          /*index*/
          e[58]
        ].value
      ), /*invalidIndexes*/
      e[13][
        /*index*/
        e[58]
      ] == 1 ? s ? s.p(e, g) : (s = Pe(e), s.c(), s.m(a, null)) : s && (s.d(1), s = null);
    },
    d(c) {
      c && (k(i), k(o), k(a)), s && s.d(), n = !1, fe(m);
    }
  };
}
function Ve(e) {
  let i, t = (
    /*$_*/
    e[18]("invalidInputMessageTime", {
      values: {
        minTime: (
          /*minTimeValue*/
          e[10]
        ),
        maxTime: (
          /*maxTimeValue*/
          e[11]
        )
      }
    }) + ""
  ), o;
  return {
    c() {
      i = L("p"), o = C(t), d(i, "class", "InvalidInput");
    },
    m(a, n) {
      T(a, i, n), u(i, o);
    },
    p(a, n) {
      n[0] & /*$_, minTimeValue, maxTimeValue*/
      265216 && t !== (t = /*$_*/
      a[18]("invalidInputMessageTime", {
        values: {
          minTime: (
            /*minTimeValue*/
            a[10]
          ),
          maxTime: (
            /*maxTimeValue*/
            a[11]
          )
        }
      }) + "") && S(o, t);
    },
    d(a) {
      a && k(i);
    }
  };
}
function Pe(e) {
  let i, t = (
    /*$_*/
    e[18]("invalidInputMessageLimit") + ""
  ), o;
  return {
    c() {
      i = L("p"), o = C(t), d(i, "class", "InvalidInput");
    },
    m(a, n) {
      T(a, i, n), u(i, o);
    },
    p(a, n) {
      n[0] & /*$_*/
      262144 && t !== (t = /*$_*/
      a[18]("invalidInputMessageLimit") + "") && S(o, t);
    },
    d(a) {
      a && k(i);
    }
  };
}
function qe(e) {
  let i, t = (
    /*$_*/
    e[18]("expirationDate") + ""
  ), o, a, n, m = (
    /*selectData*/
    (e[56].expiryDate ? pe(new Date(
      /*selectData*/
      e[56].expiryDate
    ), "d/M/yyyy - h:mm a") : "N/A") + ""
  ), l, s, c, g, B, w, v = (
    /*$_*/
    e[18]("changedLimitTextBefore") + ""
  ), P, p, h = (
    /*selectData*/
    (e[56].updateAmount > 0 ? (
      /*selectData*/
      e[56].updateAmount
    ) : 0) + ""
  ), y, E, _ = (
    /*selectData*/
    (e[56].minutes !== void 0 ? " minutes" : (
      /*currency*/
      e[4]
    )) + ""
  ), Y, H, q = (
    /*$_*/
    e[18]("changedLimitTextAfter") + ""
  ), O;
  return {
    c() {
      i = L("p"), o = C(t), a = M(), n = L("span"), l = C(m), s = M(), c = L("div"), g = L("p"), B = L("span"), B.textContent = "i", w = L("span"), P = C(v), p = M(), y = C(h), E = M(), Y = C(_), H = C(". "), O = C(q), d(i, "class", "AccountEditLimitsExpiryDate"), d(B, "class", "AccountEditLimitChangePeriodIcon"), d(c, "class", "AccountEditLimitsPeriodChangeContainer");
    },
    m(A, G) {
      T(A, i, G), u(i, o), u(i, a), u(i, n), u(n, l), T(A, s, G), T(A, c, G), u(c, g), u(g, B), u(g, w), u(w, P), u(w, p), u(w, y), u(w, E), u(w, Y), u(w, H), u(w, O);
    },
    p(A, G) {
      G[0] & /*$_*/
      262144 && t !== (t = /*$_*/
      A[18]("expirationDate") + "") && S(o, t), G[0] & /*limitsUpdateData*/
      16384 && m !== (m = /*selectData*/
      (A[56].expiryDate ? pe(new Date(
        /*selectData*/
        A[56].expiryDate
      ), "d/M/yyyy - h:mm a") : "N/A") + "") && S(l, m), G[0] & /*$_*/
      262144 && v !== (v = /*$_*/
      A[18]("changedLimitTextBefore") + "") && S(P, v), G[0] & /*limitsUpdateData*/
      16384 && h !== (h = /*selectData*/
      (A[56].updateAmount > 0 ? (
        /*selectData*/
        A[56].updateAmount
      ) : 0) + "") && S(y, h), G[0] & /*limitsUpdateData, currency*/
      16400 && _ !== (_ = /*selectData*/
      (A[56].minutes !== void 0 ? " minutes" : (
        /*currency*/
        A[4]
      )) + "") && S(Y, _), G[0] & /*$_*/
      262144 && q !== (q = /*$_*/
      A[18]("changedLimitTextAfter") + "") && S(O, q);
    },
    d(A) {
      A && (k(i), k(s), k(c));
    }
  };
}
function Oe(e) {
  let i, t, o = (
    /*$_*/
    e[18]("" + /*selectData*/
    e[56].period.charAt(0).toLowerCase() + /*selectData*/
    e[56].period.substring(1)) + ""
  ), a, n, m, l = (
    /*selectData*/
    e[56].period == /*storedData*/
    e[17][
      /*index*/
      e[58]
    ].period && Se(e)
  );
  return {
    c() {
      i = L("div"), t = L("p"), a = C(o), n = M(), l && l.c(), m = M(), d(t, "class", "AccountEditLimitsTitle"), d(i, "class", "AccountEditLimitsBox");
    },
    m(s, c) {
      T(s, i, c), u(i, t), u(t, a), u(i, n), l && l.m(i, null), u(i, m);
    },
    p(s, c) {
      c[0] & /*$_, limitsUpdateData*/
      278528 && o !== (o = /*$_*/
      s[18]("" + /*selectData*/
      s[56].period.charAt(0).toLowerCase() + /*selectData*/
      s[56].period.substring(1)) + "") && S(a, o), /*selectData*/
      s[56].period == /*storedData*/
      s[17][
        /*index*/
        s[58]
      ].period ? l ? l.p(s, c) : (l = Se(s), l.c(), l.m(i, m)) : l && (l.d(1), l = null);
    },
    d(s) {
      s && k(i), l && l.d();
    }
  };
}
function yi(e) {
  let i, t, o, a, n, m, l, s, c, g, B, w, v = (
    /*$_*/
    e[18]("back") + ""
  ), P, p, h, y, E = (
    /*limitsdata*/
    (e[1] ? (
      /*limitNameTitle*/
      e[9]
    ) : "") + ""
  ), _, Y, H, q, O, A, G, ce, J, X, ie, U, I = (
    /*$_*/
    e[18]("save") + ""
  ), ae, oe, z, se, ne, x, re, me, Z = (
    /*isMobile*/
    e[19] && hi(e)
  ), W = (
    /*showsuccessnotification*/
    e[2] && Be(e)
  ), V = (
    /*showdeletenotification*/
    e[3] && De(e)
  ), F = (
    /*showLimits*/
    e[8] && je(e)
  );
  return {
    c() {
      i = L("div"), Z && Z.c(), t = M(), o = L("div"), a = K("svg"), n = K("defs"), m = K("style"), l = C(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), s = K("g"), c = K("g"), g = K("path"), B = M(), w = L("h2"), P = C(v), p = M(), h = L("div"), y = L("h6"), _ = C(E), Y = M(), H = L("div"), q = L("span"), q.textContent = "i", O = M(), A = L("player-account-gaming-limits-popup"), G = M(), W && W.c(), ce = M(), V && V.c(), J = M(), F && F.c(), X = M(), ie = L("div"), U = L("button"), ae = C(I), se = M(), ne = L("player-account-modal"), x = L("player-account-gaming-limits-confirmation-modal"), d(g, "class", "aaa"), d(g, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), d(g, "transform", "translate(15 15) rotate(180)"), d(c, "transform", "translate(20 158)"), d(s, "transform", "translate(-20 -158)"), d(a, "xmlns", "http://www.w3.org/2000/svg"), d(a, "width", "20"), d(a, "height", "20"), d(a, "viewBox", "0 0 15 15"), d(w, "class", "MyAccountCategoryTitle " + /*isMobile*/
      (e[19] ? "MyAccountCategoryTitleNone" : "")), d(o, "class", "MenuReturnButton " + /*isMobile*/
      (e[19] ? "MyAccountCategoryTitleNone" : "")), d(q, "class", "AccountEditLimitsIcon"), te(
        A,
        "showpopup",
        /*showPopup*/
        e[7]
      ), te(
        A,
        "lang",
        /*lang*/
        e[0]
      ), d(H, "class", "AccountEditLimitsIconWrapper"), d(h, "class", "AccountEditLimitsHeader"), d(U, "class", oe = "AccountEditLimitsSaveButton " + /*hasDifferences*/
      (e[15] ? "" : "AccountEditLimitsButtonDisabled")), U.disabled = z = !/*hasDifferences*/
      e[15], d(ie, "class", "AccountEditLimitsControlArea"), d(i, "class", "AccountEditLimitsWrapper " + /*isMobile*/
      (e[19] ? "AccountEditLimitsMobileWrapper" : "")), te(
        x,
        "modaltext",
        /*changeLimitsText*/
        e[12]
      ), te(x, "modalsource", "groupEdit"), te(
        x,
        "lang",
        /*lang*/
        e[0]
      );
    },
    m(b, N) {
      T(b, i, N), Z && Z.m(i, null), u(i, t), u(i, o), u(o, a), u(a, n), u(n, m), u(m, l), u(a, s), u(s, c), u(c, g), u(o, B), u(o, w), u(w, P), u(i, p), u(i, h), u(h, y), u(y, _), u(h, Y), u(h, H), u(H, q), u(H, O), u(H, A), u(i, G), W && W.m(i, null), u(i, ce), V && V.m(i, null), u(i, J), F && F.m(i, null), u(i, X), u(i, ie), u(ie, U), u(U, ae), e[34](i), T(b, se, N), T(b, ne, N), u(ne, x), re || (me = [
        ee(
          o,
          "click",
          /*switchToLimitsGroupView*/
          e[22]
        ),
        ee(q, "click", ti(
          /*openInfoPopup*/
          e[21]
        )),
        ee(
          U,
          "click",
          /*click_handler*/
          e[33]
        )
      ], re = !0);
    },
    p(b, N) {
      /*isMobile*/
      b[19] && Z.p(b, N), N[0] & /*$_*/
      262144 && v !== (v = /*$_*/
      b[18]("back") + "") && S(P, v), N[0] & /*limitsdata, limitNameTitle*/
      514 && E !== (E = /*limitsdata*/
      (b[1] ? (
        /*limitNameTitle*/
        b[9]
      ) : "") + "") && S(_, E), N[0] & /*showPopup*/
      128 && te(
        A,
        "showpopup",
        /*showPopup*/
        b[7]
      ), N[0] & /*lang*/
      1 && te(
        A,
        "lang",
        /*lang*/
        b[0]
      ), /*showsuccessnotification*/
      b[2] ? W ? W.p(b, N) : (W = Be(b), W.c(), W.m(i, ce)) : W && (W.d(1), W = null), /*showdeletenotification*/
      b[3] ? V ? V.p(b, N) : (V = De(b), V.c(), V.m(i, J)) : V && (V.d(1), V = null), /*showLimits*/
      b[8] ? F ? F.p(b, N) : (F = je(b), F.c(), F.m(i, X)) : F && (F.d(1), F = null), N[0] & /*$_*/
      262144 && I !== (I = /*$_*/
      b[18]("save") + "") && S(ae, I), N[0] & /*hasDifferences*/
      32768 && oe !== (oe = "AccountEditLimitsSaveButton " + /*hasDifferences*/
      (b[15] ? "" : "AccountEditLimitsButtonDisabled")) && d(U, "class", oe), N[0] & /*hasDifferences*/
      32768 && z !== (z = !/*hasDifferences*/
      b[15]) && (U.disabled = z), N[0] & /*changeLimitsText*/
      4096 && te(
        x,
        "modaltext",
        /*changeLimitsText*/
        b[12]
      ), N[0] & /*lang*/
      1 && te(
        x,
        "lang",
        /*lang*/
        b[0]
      );
    },
    i: be,
    o: be,
    d(b) {
      b && (k(i), k(se), k(ne)), Z && Z.d(), W && W.d(), V && V.d(), F && F.d(), e[34](null), re = !1, fe(me);
    }
  };
}
function _i(e, i, t) {
  let o;
  oi(e, pi, (r) => t(18, o = r));
  let { limitsdata: a = [] } = i, { showsuccessnotification: n = !1 } = i, { showdeletenotification: m = !1 } = i, { currency: l = "" } = i, { lang: s = "en" } = i, { separatelimits: c = "true" } = i, { clientstyling: g = "" } = i, { clientstylingurl: B = "" } = i, { mbsource: w } = i, { translationurl: v = "" } = i;
  const P = () => {
    fetch(v).then((f) => f.json()).then((f) => {
      Object.keys(f).forEach((D) => {
        Te(D, f[D]);
      });
    }).catch((f) => {
      console.log(f);
    });
  };
  Object.keys(Ee).forEach((r) => {
    Te(r, Ee[r]);
  });
  let p, h, y, E = !1, _ = !1, Y = "", H = !1, q = 0, O = 0, A = "", G = window.navigator.userAgent, ce = ai(G) !== "PC", J = new Array(3).fill(0), X = {}, ie = [], U = [], I = !1, ae = [];
  const oe = {
    amount: /^[0-9]{0,8}$/,
    time: /^[1-9]\d*$/
  };
  let z = [
    {
      period: "Daily",
      amount: "No limit",
      value: 0
    },
    {
      period: "Weekly",
      amount: "No limit",
      value: 0
    },
    {
      period: "Monthly",
      amount: "No limit",
      value: 0
    }
  ], se = [
    {
      period: "Daily",
      values: ["10000", "20000", "50000", "No limit", "Custom"]
    },
    {
      period: "Weekly",
      values: ["10000", "50000", "100000", "No limit", "Custom"]
    },
    {
      period: "Monthly",
      values: ["50000", "100000", "200000", "No limit", "Custom"]
    }
  ], ne = [
    {
      period: "Daily",
      values: ["5000", "7000", "10000", "No limit", "Custom"]
    },
    {
      period: "Weekly",
      values: ["25000", "50000", "100000", "No limit", "Custom"]
    },
    {
      period: "Monthly",
      values: ["125000", "175000", "200000", "No limit", "Custom"]
    }
  ], x = [
    {
      period: "Daily",
      values: ["5000", "7000", "10000", "No limit", "Custom"]
    },
    {
      period: "Weekly",
      values: ["25000", "50000", "100000", "No limit", "Custom"]
    },
    {
      period: "Monthly",
      values: ["125000", "175000", "200000", "No limit", "Custom"]
    }
  ], re = [
    {
      period: "Daily",
      values: ["500", "1000", "1430", "No limit", "Custom"]
    },
    {
      period: "Weekly",
      values: ["5000", "7000", "10000", "No limit", "Custom"]
    },
    {
      period: "Monthly",
      values: ["20000", "30000", "43000", "No limit", "Custom"]
    }
  ];
  const me = /* @__PURE__ */ new Map([
    ["Deposit Limit", "depositLimits"],
    ["Time Limit", "cumulativeSessionLimits"],
    ["Wagering Limit", "wageringLimits"],
    ["Loss Limit", "lossLimits"]
  ]), Z = /* @__PURE__ */ new Map([
    ["Deposit Limit", se],
    ["Time Limit", re],
    ["Wagering Limit", ne],
    ["Loss Limit", x]
  ]), W = () => {
    t(7, E = !0);
  }, V = () => {
    window.postMessage({ type: "PlayerAccountBackToLimitsView" }, window.location.href);
  }, F = () => {
    window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href);
  }, b = () => {
    if (H) {
      p === "Time Limit" ? z.forEach((f) => {
        if (c == "true") {
          if (f.value != 0) {
            let D = { period: f.period, minutes: f.value };
            ie.push(D);
          }
        } else
          X.forEach((D) => {
            D.period === f.period && (D.minutes = f.value);
          });
      }) : z.forEach((f) => {
        if (c == "true") {
          if (f.value != 0) {
            let D = {
              period: f.period,
              amount: f.value,
              currency: l
            };
            ie.push(D);
          }
        } else
          X.forEach((D) => {
            D.period === f.period && (D.amount = f.value, D.currency = l);
          });
      });
      let r = {};
      c == "true" ? r = {
        [me.get(p)]: [...ie]
      } : r = {
        [me.get(p)]: [...X]
      }, ie.length = 0, window.postMessage(
        {
          type: "PlayerAccountGamingLimitsUpdate",
          payload: r,
          limitsCategory: me.get(p)
        },
        window.location.href
      ), t(15, I = !1);
    }
  }, N = (r, f, D, j) => {
    switch (r.amount) {
      case "Custom":
        if (p == "Time Limit")
          if (t(10, q = 60), r.period === "Daily" ? t(11, O = 1440) : r.period == "Weekly" ? t(11, O = 10080) : t(11, O = 43200), r.value && oe.time.test(r.value) && r.value > q && r.value <= O) {
            t(13, J[f] = 0, J);
            let R = j[f];
            r.period == R.period && r.value == R.amount ? (t(15, I = !1), ge(r, j)) : t(15, I = !0);
          } else
            t(13, J[f] = 1, J), t(15, I = !1);
        else
          r.value && oe.amount.test(r.value) ? (t(13, J[f] = 0, J), r.period == j[f].period && r.value == j[f].amount ? (t(15, I = !!I), ge(r, j)) : t(15, I = !0), c != "true" && z.forEach((R) => {
            R.value == 0 && t(15, I = !1);
          })) : (t(13, J[f] = 1, J), t(15, I = !1));
        break;
      default:
        r.period == j[f].period ? (ge(r, j), t(15, I = r.value != j[f].amount)) : t(15, I = !0), z.forEach((R) => {
          (R.value == 0 && c != "true" || R.amount == "Custom" && !oe.amount.test(R.value.toString())) && t(15, I = !1);
        });
        break;
    }
  }, ge = (r, f) => {
    let D = JSON.parse(JSON.stringify(f));
    z.forEach((j) => {
      D.forEach((R) => {
        j.period == r.period && (j.amount !== "Custom" && j.amount !== "No limit" ? j.value = JSON.parse(j.amount) : j.amount === "No limit" && (j.value = 0)), R.period === j.period && (R.amount = j.value);
      });
    });
  }, Ge = (r, f, D, j) => {
    let R = r.values;
    !f.amount || f.amount === "No limit" ? D.forEach((Q) => {
      Q.period === f.period && (Q.amount = f.amount, Q.value = 0);
    }) : R.includes(JSON.stringify(f.amount)) ? D.forEach((Q) => {
      Q.period === f.period && (Q.amount = JSON.stringify(f.amount), Q.value = f.amount);
    }) : D.forEach((Q) => {
      Q.period === f.period && (Q.amount = "Custom", Q.value = f.amount);
    });
  }, He = (r) => {
    U.forEach((f) => {
      r.period === f.period && (p === "Time Limit" && (t(10, q = 60), r.period === "Daily" ? t(11, O = 1440) : r.period == "Weekly" ? t(11, O = 10080) : t(11, O = 43200)), f.values.indexOf(r.amount) > -1 && (r.amount === "No limit" ? r.amount = 0 : r.amount = JSON.parse(r.amount)));
    });
  }, Je = () => {
    ae.forEach((r) => {
      He(r);
    }), X.forEach((r) => {
      U.forEach((f) => {
        r.period === f.period && Ge(f, r, z);
      });
    });
  }, _e = () => {
    let r = "";
    r = p === "Time Limit" ? "time limit" : p === "Deposit Limit" ? "deposit limit" : p === "Wagering Limit" ? "wagering limit" : "loss limit", t(12, A = o("changeLimitsText", { values: { limit: r } }));
  }, he = () => {
    fi(s), _e(), t(16, ae = JSON.parse(JSON.stringify(a))), t(14, X = JSON.parse(JSON.stringify(a))), U = p === "Wagering Limit" ? ne : p === "Loss Limit" ? x : p === "Deposit Limit" ? se : p === "Time Limit" ? re : [], Je();
  }, we = (r) => {
    if (r.data)
      switch (r.data.type) {
        case "LanguageChanged":
          t(0, s = r.data.lang), _e();
          break;
        case "EditPlayerLimit":
          t(
            6,
            p = r.data.name
          ), t(9, Y = o(p.charAt(0).toLowerCase() + p.substring(1).replace(/\s/g, ""))), he(), t(8, _ = !0);
          break;
        case "ClosePlayerAccountGamingLimitsPopup":
          t(7, E = !1);
          break;
        case "GamingLimitsConfirmChanges":
          H = !0, b();
          break;
        case "CancelGamingLimitsChanges":
          t(8, _ = !1), setTimeout(
            () => {
              t(8, _ = !0);
            },
            10
          ), he(), t(15, I = !1), H = !1;
          break;
      }
  };
  ni(() => (window.addEventListener("message", we, !1), () => {
    window.removeEventListener("message", we);
  }));
  function Re(r) {
    z[r].amount = li(this), t(17, z), t(20, Z), t(6, p);
  }
  function Ye(r) {
    z[r].value = de(this.value), t(17, z), t(20, Z), t(6, p);
  }
  function Ue(r) {
    z[r].value = de(this.value), t(17, z), t(20, Z), t(6, p);
  }
  const Ze = () => F();
  function Ke(r) {
    si[r ? "unshift" : "push"](() => {
      h = r, t(5, h);
    });
  }
  return e.$$set = (r) => {
    "limitsdata" in r && t(1, a = r.limitsdata), "showsuccessnotification" in r && t(2, n = r.showsuccessnotification), "showdeletenotification" in r && t(3, m = r.showdeletenotification), "currency" in r && t(4, l = r.currency), "lang" in r && t(0, s = r.lang), "separatelimits" in r && t(25, c = r.separatelimits), "clientstyling" in r && t(26, g = r.clientstyling), "clientstylingurl" in r && t(27, B = r.clientstylingurl), "mbsource" in r && t(28, w = r.mbsource), "translationurl" in r && t(29, v = r.translationurl);
  }, e.$$.update = () => {
    e.$$.dirty[0] & /*showsuccessnotification, showdeletenotification*/
    12 && n && m && he(), e.$$.dirty[0] & /*limitsdata, lang*/
    3, e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    67108896 && g && h && mi(h, g), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    134217760 && B && h && ui(h, B), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
    268435488 && w && h && ci(h, `${w}.Style`, y), e.$$.dirty[0] & /*translationurl*/
    536870912 && v && P();
  }, [
    s,
    a,
    n,
    m,
    l,
    h,
    p,
    E,
    _,
    Y,
    q,
    O,
    A,
    J,
    X,
    I,
    ae,
    z,
    o,
    ce,
    Z,
    W,
    V,
    F,
    N,
    c,
    g,
    B,
    w,
    v,
    Re,
    Ye,
    Ue,
    Ze,
    Ke
  ];
}
class wi extends xe {
  constructor(i) {
    super(), $e(
      this,
      i,
      _i,
      yi,
      ei,
      {
        limitsdata: 1,
        showsuccessnotification: 2,
        showdeletenotification: 3,
        currency: 4,
        lang: 0,
        separatelimits: 25,
        clientstyling: 26,
        clientstylingurl: 27,
        mbsource: 28,
        translationurl: 29
      },
      gi,
      [-1, -1, -1]
    );
  }
  get limitsdata() {
    return this.$$.ctx[1];
  }
  set limitsdata(i) {
    this.$$set({ limitsdata: i }), $();
  }
  get showsuccessnotification() {
    return this.$$.ctx[2];
  }
  set showsuccessnotification(i) {
    this.$$set({ showsuccessnotification: i }), $();
  }
  get showdeletenotification() {
    return this.$$.ctx[3];
  }
  set showdeletenotification(i) {
    this.$$set({ showdeletenotification: i }), $();
  }
  get currency() {
    return this.$$.ctx[4];
  }
  set currency(i) {
    this.$$set({ currency: i }), $();
  }
  get lang() {
    return this.$$.ctx[0];
  }
  set lang(i) {
    this.$$set({ lang: i }), $();
  }
  get separatelimits() {
    return this.$$.ctx[25];
  }
  set separatelimits(i) {
    this.$$set({ separatelimits: i }), $();
  }
  get clientstyling() {
    return this.$$.ctx[26];
  }
  set clientstyling(i) {
    this.$$set({ clientstyling: i }), $();
  }
  get clientstylingurl() {
    return this.$$.ctx[27];
  }
  set clientstylingurl(i) {
    this.$$set({ clientstylingurl: i }), $();
  }
  get mbsource() {
    return this.$$.ctx[28];
  }
  set mbsource(i) {
    this.$$set({ mbsource: i }), $();
  }
  get translationurl() {
    return this.$$.ctx[29];
  }
  set translationurl(i) {
    this.$$set({ translationurl: i }), $();
  }
}
di(wi, { limitsdata: {}, showsuccessnotification: { type: "Boolean" }, showdeletenotification: { type: "Boolean" }, currency: {}, lang: {}, separatelimits: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  wi as default
};
