import { c as ke, b as De, S as Me, D as Te, R as Ae, v as U, f as Re, K as $, r as T, F as A, s as p, k as Ne, a as Ee, y as je, N as ze, h as Se, g as y, Q as Be, Z as B, Y as s, e as l, J as G, O as ee, a4 as F, a1 as E, u as J, q as fe, t as ie, I as ce, V as Fe, W as We, X as qe, n as Ve } from "./PlayerAccountControllerNd-NUeaPDxp.js";
import "../lazy/player-account-gaming-limits-popup-DdWGtz_7.js";
import "../lazy/player-account-gaming-limits-group-edit-C-aKI0oP.js";
import { g as K, f as Z } from "./PlayerBonusHistory-DjlXXJoh.js";
function oe(i, t) {
  ke(i, t);
}
function He(i) {
  De.set(i);
}
const ne = {
  en: {
    name: "Info",
    amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly",
    removeLimitText: "Are you sure you want to remove the {limit}?",
    removeLimitsText: "Are you sure you want to remove all the {limit}s?",
    minutes: "minutes",
    noLimit: "No limit",
    expirationDate: "Expiration date",
    notAvailable: "N/A",
    edit: "Edit",
    removeLimits: "Remove Limits",
    depositLimit: "Deposit Limit",
    timeLimit: "Time Limit",
    wageringLimit: "Wagering Limit",
    lossLimit: "Loss Limit",
    timeLimitLower: "time limit",
    depositLimitLower: "deposit limit",
    wageringLimitLower: "wagering limit",
    lossLimitLower: "loss limit",
    time: "time",
    currency: "currency"
  },
  "zh-hk": {
    name: "信息",
    amountChanged: "您的限額已更改或增加：{amount} {currency}。 您必須等待到期日期才能使新限制生效：",
    daily: "日常的",
    weekly: "每週",
    monthly: "月刊",
    removeLimitText: "您確定要刪除 {limit} 嗎？",
    removeLimitsText: "您確定要刪除所有 {limit} 嗎？",
    minutes: "分鐘",
    noLimit: "沒有限制",
    expirationDate: "截止日期",
    notAvailable: "不適用",
    edit: "編輯",
    removeLimits: "移除限制",
    depositLimit: "存款限額",
    timeLimit: "時限",
    wageringLimit: "投注限額",
    lossLimit: "損失限額",
    timeLimitLower: "時限",
    depositLimitLower: "存款限額",
    wageringLimitLower: "投注限額",
    lossLimitLower: "損失限額",
    time: "時間",
    currency: "貨幣"
  },
  fr: {
    name: "Info",
    amountChanged: "Votre limite a été modifiée ou augmentée: {amount} {currency}. Vous devrez attendre la date d'expiration pour que votre nouvelle limite prenne effet:",
    daily: "Quotidiennement",
    weekly: "Hebdomadaire",
    monthly: "Mensuel",
    removeLimitText: "êtes-vous sûr de vouloir supprimer la{limit}?",
    removeLimitsText: "êtes-vous sûr de vouloir supprimer tous les {limit}s?",
    minutes: "minutes",
    noLimit: "Aucune limite",
    expirationDate: "Date d'expiration",
    notAvailable: "N/A",
    edit: "Modifier",
    removeLimits: "Supprimer les limites",
    depositLimit: "Limite de dépôt",
    timeLimit: "Limite de temps",
    wageringLimit: "Limite de mise",
    lossLimit: "Limite de perte",
    timeLimitLower: "Limite de temps",
    depositLimitLower: "Limite de dépôt",
    wageringLimitLower: "Limite de mise",
    lossLimitLower: "Limite de perte",
    time: "Temps",
    currency: "Monnaie"
  },
  ro: {
    name: "Informații",
    amountChanged: "Limita ta a fost schimbată sau a crescut: {amount} {currency}. 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",
    removeLimitText: "Ești sigur că vrei să elimini această limită?",
    removeLimitsText: "Ești sigur că vrei să elimini toate limitele?",
    minutes: "minute",
    noLimit: "Fără Limită",
    expirationDate: "Dată Expirare",
    notAvailable: "N/A",
    edit: "Editează",
    removeLimits: "Elimină limitele",
    depositLimit: "Limită de depunere",
    timeLimit: "Limită de timp",
    wageringLimit: "Limită de pariere",
    lossLimit: "Limite de pierdere",
    timeLimitLower: "limită de timp",
    depositLimitLower: "limită de depunere",
    wageringLimitLower: "limită de pariere",
    lossLimitLower: "limită de pierdere",
    time: "timp",
    currency: "monedă"
  },
  es: {
    name: "Información",
    amountChanged: "Tú limite ha sido cambiado o incrementado: {amount} {currency}. 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",
    removeLimitText: "Estas seguro de quitar el {limit}?",
    removeLimitsText: "Estas seguro de retirar todos los {limit}es?",
    minutes: "minutos",
    noLimit: "Sin límite",
    expirationDate: "Fecha de expiración",
    notAvailable: "No Disponible",
    edit: "Editar",
    removeLimits: "Retirar límites",
    depositLimit: "Límite de depósito",
    timeLimit: "Límite de tiempo",
    wageringLimit: "Límite de apuestas",
    lossLimit: "Límite de pérdida",
    timeLimitLower: "Límite de tiempo",
    depositLimitLower: "Límite de depósito",
    wageringLimitLower: "Límite de apuestas",
    lossLimitLower: "Límite de pérdida",
    time: "tiempo",
    currency: "moneda"
  },
  pt: {
    name: "Informação",
    amountChanged: "Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",
    daily: "Diariamente",
    weekly: "Semanalmente",
    monthly: "Mensalmente",
    removeLimitText: "Tem certeza de que deseja remover o {limite}??",
    removeLimitsText: "Tem certeza de que deseja remover todos os {limite}s??",
    minutes: "Minutos",
    noLimit: "Sem limite",
    expirationDate: "Data de Validade",
    notAvailable: "Não Disponível",
    edit: "Editar",
    removeLimits: "Remover limites",
    depositLimit: "Limite de Depósito",
    timeLimit: "Limite de Tempo",
    wageringLimit: "Limite de Apostas",
    lossLimit: "Limite de Perda",
    timeLimitLower: "Limite de tempo",
    depositLimitLower: "limite de depósito",
    wageringLimitLower: "limite de apostas",
    lossLimitLower: "limite de perda",
    time: "Tempo",
    currency: "Moeda"
  },
  hr: {
    name: "Informacije",
    amountChanged: "Vaše ograničenje je promijenjeno ili povećano: {iznos} {valuta}. Morat ćete pričekati datum isteka kako bi vaše novo ograničenje stupilo na snagu:",
    daily: "Dnevno",
    weekly: "Tjedno",
    monthly: "Mjesečno",
    removeLimitText: "Jeste li sigurni da želite ukloniti {limit}?",
    removeLimitsText: "Jeste li sigurni da želite ukloniti sve {limit}e?",
    minutes: "minute",
    noLimit: "Nema ograničenja",
    expirationDate: "Datum isteka",
    notAvailable: "N/A",
    edit: "Uredi",
    removeLimits: "Ukloni ograničenja",
    depositLimit: "Ograničenje uplate",
    timeLimit: "Vremensko ograničenje",
    wageringLimit: "Ograničenje igranja",
    lossLimit: "Ograničenje gubitka",
    timeLimitLower: "vremensko ograničenje",
    depositLimitLower: "ograničenje uplate",
    wageringLimitLower: "ograničenje igranja",
    lossLimitLower: "ograničenje gubitka",
    time: "vrijeme",
    currency: "valuta"
  },
  "pt-br": {
    name: "Informação",
    amountChanged: "Seu limite foi alterado ou aumentado: {amount} {currency}. Você terá que aguardar a data de expiração para que seu novo limite entre em vigor:",
    daily: "Diário",
    weekly: "Semanalmente",
    monthly: "Por mês",
    removeLimitText: "Tem certeza de que deseja remover o limite {limit}?",
    removeLimitsText: "Tem certeza de que deseja remover todos os limites {limit}s?",
    minutes: "minutos",
    noLimit: "Sem limite",
    expirationDate: "Data de expiração",
    notAvailable: "Não disponível",
    edit: "Editar",
    removeLimits: "Remover limites",
    depositLimit: "Limite de depósito",
    timeLimit: "Limite de tempo",
    wageringLimit: "Limite de Quantidade de Apostas",
    lossLimit: "Limite de perda",
    timeLimitLower: "Limite de tempo",
    depositLimitLower: "Limite de depósito",
    wageringLimitLower: "Limite de Quantidade de Apostas",
    lossLimitLower: "Limite de perda",
    time: "tempo",
    currency: "moeda"
  },
  "es-mx": {
    name: "Información",
    amountChanged: "Su límite ha sido cambiado o aumentado:{amount} {currency}. Tendrá que esperar para su fecha de expiración para que su nuevo límite entre en efecto:",
    daily: "Diario",
    weekly: "Semanal",
    monthly: "Mensual",
    removeLimitText: "¿Está seguro que quiere remover el límite {limit}?",
    removeLimitsText: "¿Está seguro que quiere remover todos los límites {limit}s?",
    minutes: "minutos",
    noLimit: "Sin límite",
    expirationDate: "Fecha de expiración",
    notAvailable: "No disponible",
    edit: "Editar",
    removeLimits: "Remover Límites",
    depositLimit: "Límite de depósito",
    timeLimit: "Límite de tiempo",
    wageringLimit: "Límite de monto de apuestas",
    lossLimit: "Límite de pérdidas",
    timeLimitLower: "Límite de tiempo",
    depositLimitLower: "Límite de depósito",
    wageringLimitLower: "Límite de monto de apuestas",
    lossLimitLower: "Límite de pérdidas",
    time: "tiempo",
    currency: "moneda"
  },
  tr: {
    name: "Bilgi",
    amountChanged: "Limitiniz değiştirildi veya artırıldı: {amount} {currency}. Yeni limitinizin geçerlilik kazanması için son kullanma tarihini beklemeniz gerekecektir:",
    daily: "Günlük",
    weekly: "Haftalık",
    monthly: "Aylık",
    removeLimitText: "{limit} sınırını kaldırmak istediğinizden emin misiniz?",
    removeLimitsText: "Tüm {limit}'leri kaldırmak istediğinizden emin misiniz?",
    minutes: "dakika",
    noLimit: "Limit yok",
    expirationDate: "Son kullanma tarihi",
    notAvailable: "Yok",
    edit: "Düzenlemek",
    removeLimits: "Sınırları Kaldır",
    depositLimit: "Para Yatırma Limiti",
    timeLimit: "Zaman sınırı",
    wageringLimit: "Bahis Limiti",
    lossLimit: "Kayıp Limiti",
    timeLimitLower: "zaman sınırı",
    depositLimitLower: "para yatırma limiti",
    wageringLimitLower: "bahis limiti",
    lossLimitLower: "kayıp limiti",
    time: "zaman",
    currency: "para birimi"
  },
  "en-us": {
    name: "Info",
    amountChanged: "Your limit has been changed or increased: {amount} {currency}. You will have to wait for the expiration date for your new limit to take effect:",
    daily: "Daily",
    weekly: "Weekly",
    monthly: "Monthly",
    removeLimitText: "Are you sure you want to remove the {limit}?",
    removeLimitsText: "Are you sure you want to remove all the {limit}s?",
    minutes: "minutes",
    noLimit: "No limit",
    expirationDate: "Expiration date",
    notAvailable: "N/A",
    edit: "Edit",
    removeLimits: "Remove Limits",
    depositLimit: "Deposit Limit",
    timeLimit: "Time Limit",
    wageringLimit: "Wagering Limit",
    lossLimit: "Loss Limit",
    timeLimitLower: "time limit",
    depositLimitLower: "deposit limit",
    wageringLimitLower: "wagering limit",
    lossLimitLower: "loss limit",
    time: "time",
    currency: "currency"
  }
};
function Pe(i) {
  Re(i, "svelte-8fdpga", '@charset "UTF-8";.InfoCard{padding:20px;color:var(--emw--color-black, #000000);background:var(--emw--color-white, #FFFFFF);box-shadow:0 3px 12px var(--emw--color-gray-100, #E6E6E6);border-radius:5px;display:block}.InfoCardHeader{display:flex;flex-direction:row;justify-content:space-between;padding-bottom:10px}.InfoCardHeader h5{margin:0;font-weight:normal;font-size:16px;line-height:20px}.InfoCardHeader span{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}.InfoCardHeader.InfoCardMobileHeader h5{font-size:14px}.InfoCardHeader.InfoCardMobileHeader span{width:16px;height:16px;font-size:12px}.InfoCardIcon{cursor:pointer}.InfoCardRow{display:flex;flex-direction:row;justify-content:space-between;font-size:14px}.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child{padding-bottom:5px}.InfoCardTableRow>.InfoCardRow:first-child .InfoCardRowTitle{font-weight:500}.InfoCardTableRow>.InfoCardRow:nth-child(2){font-size:12px}.InfoCardTableHeaderBox{display:flex;flex-direction:column}.InfoCardRowTitle{font-size:12px;font-weight:300}.InfoCardRowValue{font-size:12px;color:var(--emw--color-gray-300, #58586B);font-weight:300}.InfoCardRemoveIcon{display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardRemoveIcon span{display:inline-block;height:18px;width:18px;border-radius:50px;position:relative;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border:1px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839))}.InfoCardRemoveIcon span:after{position:absolute;top:0;bottom:0;left:0;right:0;content:"❌";font-size:7px;color:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));line-height:18px;text-align:center}.InfoCardBox{padding:15px 5px}.InfoCardBox.InfoCardMultipleItems{display:flex;flex-direction:row}.InfoCardBox:nth-child(even){background:var(--emw--color-gray-50, #F9F8F8)}.InfoCardBox .InfoCardRowContainer{flex:1 auto}.InfoMainRow .InfoCardRowTitle{font-size:14px;font-weight:400}.InfoMainRow .InfoCardRowValue{font-size:14px}.InfoCardControlArea{display:inline-flex;margin-top:35px}.InfoCardControlArea .InfoCardEditButton,.InfoCardControlArea .InfoCardRemoveButton{cursor:pointer;border-radius:5px;width:120px;height:36px;display:flex;align-items:center;justify-content:center;font-size:12px;color:var(--emw--color-black, #000000);text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.InfoCardControlArea .InfoCardEditButton{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));margin-right:10px}.InfoCardControlArea .InfoCardEditButton.InfoCardButtonDisabled{background:transparent;border:1px solid var(--emw--color-black, #000000);cursor:not-allowed;opacity:0.6}.InfoCardControlArea .InfoCardRemoveButton{background:transparent;border:1px solid var(--emw--color-black, #000000)}.InfoCardControlArea .InfoCardRemoveButton.InfoCardButtonDisabled{background:transparent;border:1px solid var(--emw--color-black, #000000);cursor:not-allowed;opacity:0.6}.InfoCardIconWrapper{position:relative;display:inline-block;padding:5px 0 5px 15px;cursor:pointer}.InfoCardIconWrapper span{display:flex;width:20px;height:20px;background:transparent;border:1px solid ar(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));align-items:center;justify-content:center;border-radius:30px}.InfoCardIconWrapper.InfoCardIconMobileWrapper{position:initial}.InfoCardBox .InfoCardIcon{color:var(--emw--color-gray-300, #58586B);border:1px solid var(--emw--color-gray-300, #58586B)}');
}
function ae(i, t, o) {
  const n = i.slice();
  return n[41] = t[o], n[43] = o, n;
}
function re(i, t, o) {
  const n = i.slice();
  return n[41] = t[o], n[43] = o, n;
}
function Ye(i) {
  let t, o, n, e, a = (
    /*limitsdata*/
    (i[0] ? (
      /*$_*/
      i[16](
        /*limitname*/
        i[1].charAt(0).toLowerCase() + /*limitname*/
        i[1].substring(1).replace(/\s/g, "")
      )
    ) : "") + ""
  ), r, d, c, D, v, L, b, H, h, q, N, P, S, z, C = (
    /*$_*/
    i[16]("edit") + ""
  ), Y, k, j, V, M;
  function R(_, W) {
    return (
      /*limitname*/
      _[1] === "Time Limit" ? Ge : Ue
    );
  }
  let f = R(i), g = f(i), u = !/*amountIsUnset*/
  i[10] && !/*limitsdata*/
  i[0].isModified && /*changeableDataset*/
  i[15] && ue(i), w = (
    /*openLimitsModal*/
    i[12] && pe(i)
  );
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), e = p("h5"), r = F(a), d = E(), c = p("div"), D = p("span"), D.textContent = "i", v = E(), L = p("player-account-gaming-limits-popup"), H = E(), h = p("div"), q = p("div"), N = p("div"), g.c(), P = E(), S = p("div"), z = p("button"), Y = F(C), k = E(), u && u.c(), j = E(), w && w.c(), y(D, "class", "InfoCardIcon"), s(L, "showpopup", b = /*showPopup*/
      i[9][0]), s(
        L,
        "lang",
        /*lang*/
        i[3]
      ), s(
        L,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), s(
        L,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), s(
        L,
        "mbsource",
        /*mbsource*/
        i[6]
      ), y(c, "class", "InfoCardIconWrapper " + /*isMobile*/
      (i[17] ? "InfoCardIconMobileWrapper" : "")), y(n, "class", "InfoCardHeader " + /*isMobile*/
      (i[17] ? "InfoCardMobileHeader" : "")), y(N, "class", "InfoCardTableRow"), y(q, "class", "InfoCardTableWrapper"), y(z, "class", "InfoCardEditButton"), y(S, "class", "InfoCardControlArea"), y(h, "class", "InfoCard"), y(o, "class", "InfoCardWrapper"), y(t, "class", "InfoCardSection");
    },
    m(_, W) {
      A(_, t, W), l(t, o), l(o, n), l(n, e), l(e, r), l(n, d), l(n, c), l(c, D), l(c, v), l(c, L), l(o, H), l(o, h), l(h, q), l(q, N), g.m(N, null), l(h, P), l(h, S), l(S, z), l(z, Y), l(S, k), u && u.m(S, null), l(t, j), w && w.m(t, null), V || (M = [
        G(D, "click", ee(
          /*click_handler*/
          i[24]
        )),
        G(
          z,
          "click",
          /*click_handler_3*/
          i[27]
        )
      ], V = !0);
    },
    p(_, W) {
      W[0] & /*limitsdata, $_, limitname*/
      65539 && a !== (a = /*limitsdata*/
      (_[0] ? (
        /*$_*/
        _[16](
          /*limitname*/
          _[1].charAt(0).toLowerCase() + /*limitname*/
          _[1].substring(1).replace(/\s/g, "")
        )
      ) : "") + "") && B(r, a), W[0] & /*showPopup*/
      512 && b !== (b = /*showPopup*/
      _[9][0]) && s(L, "showpopup", b), W[0] & /*lang*/
      8 && s(
        L,
        "lang",
        /*lang*/
        _[3]
      ), W[0] & /*clientstyling*/
      16 && s(
        L,
        "clientstyling",
        /*clientstyling*/
        _[4]
      ), W[0] & /*clientstylingurl*/
      32 && s(
        L,
        "clientstylingurl",
        /*clientstylingurl*/
        _[5]
      ), W[0] & /*mbsource*/
      64 && s(
        L,
        "mbsource",
        /*mbsource*/
        _[6]
      ), f === (f = R(_)) && g ? g.p(_, W) : (g.d(1), g = f(_), g && (g.c(), g.m(N, null))), W[0] & /*$_*/
      65536 && C !== (C = /*$_*/
      _[16]("edit") + "") && B(Y, C), !/*amountIsUnset*/
      _[10] && !/*limitsdata*/
      _[0].isModified && /*changeableDataset*/
      _[15] ? u ? u.p(_, W) : (u = ue(_), u.c(), u.m(S, null)) : u && (u.d(1), u = null), /*openLimitsModal*/
      _[12] ? w ? w.p(_, W) : (w = pe(_), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
    },
    d(_) {
      _ && T(t), g.d(), u && u.d(), w && w.d(), V = !1, Be(M);
    }
  };
}
function Oe(i) {
  let t;
  return {
    c() {
      t = p("div"), y(t, "class", "ModalLoader");
    },
    m(o, n) {
      A(o, t, n);
    },
    p: $,
    d(o) {
      o && T(t);
    }
  };
}
function Ue(i) {
  let t, o = J(
    /*limitsdata*/
    i[0]
  ), n = [];
  for (let e = 0; e < o.length; e += 1)
    n[e] = me(ae(i, o, e));
  return {
    c() {
      for (let e = 0; e < n.length; e += 1)
        n[e].c();
      t = ie();
    },
    m(e, a) {
      for (let r = 0; r < n.length; r += 1)
        n[r] && n[r].m(e, a);
      A(e, t, a);
    },
    p(e, a) {
      if (a[0] & /*removeItemLimit, limitsdata, limitname, $_, isMobile, showPopup, currency, lang, clientstyling, clientstylingurl, mbsource, openInfoPopup, currentDate*/
      6750847) {
        o = J(
          /*limitsdata*/
          e[0]
        );
        let r;
        for (r = 0; r < o.length; r += 1) {
          const d = ae(e, o, r);
          n[r] ? n[r].p(d, a) : (n[r] = me(d), n[r].c(), n[r].m(t.parentNode, t));
        }
        for (; r < n.length; r += 1)
          n[r].d(1);
        n.length = o.length;
      }
    },
    d(e) {
      e && T(t), fe(n, e);
    }
  };
}
function Ge(i) {
  let t, o = J(
    /*limitsdata*/
    i[0]
  ), n = [];
  for (let e = 0; e < o.length; e += 1)
    n[e] = de(re(i, o, e));
  return {
    c() {
      for (let e = 0; e < n.length; e += 1)
        n[e].c();
      t = ie();
    },
    m(e, a) {
      for (let r = 0; r < n.length; r += 1)
        n[r] && n[r].m(e, a);
      A(e, t, a);
    },
    p(e, a) {
      if (a[0] & /*removeItemLimit, limitsdata, limitname, $_, isMobile, showPopup, lang, clientstyling, clientstylingurl, mbsource, openInfoPopup, currentDate*/
      6750843) {
        o = J(
          /*limitsdata*/
          e[0]
        );
        let r;
        for (r = 0; r < o.length; r += 1) {
          const d = re(e, o, r);
          n[r] ? n[r].p(d, a) : (n[r] = de(d), n[r].c(), n[r].m(t.parentNode, t));
        }
        for (; r < n.length; r += 1)
          n[r].d(1);
        n.length = o.length;
      }
    },
    d(e) {
      e && T(t), fe(n, e);
    }
  };
}
function le(i) {
  let t, o = (
    /*itemInfo*/
    (i[41] ? (
      /*itemInfo*/
      i[41].currency
    ) : "") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = F(o), y(t, "class", "InfoCardCurrency");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*limitsdata*/
      1 && o !== (o = /*itemInfo*/
      (e[41] ? (
        /*itemInfo*/
        e[41].currency
      ) : "") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function Qe(i) {
  let t, o = (
    /*$_*/
    i[16]("notAvailable") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = F(o), y(t, "class", "InfoCardRowValue");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      e[16]("notAvailable") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function Je(i) {
  let t, o = (
    /*itemInfo*/
    (i[41] ? K(new Date(
      /*itemInfo*/
      i[41].expiryDate
    )) > (/* @__PURE__ */ new Date()).getFullYear() + 30 ? (
      /*currentDate*/
      i[18].clone().add(5, "years").format("d/M/yyyy - h:mm a")
    ) : Z(new Date(
      /*itemInfo*/
      i[41].expiryDate
    ), "d/M/yyyy - h:mm a") : "N/A") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = F(o), y(t, "class", "InfoCardRowValue");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*limitsdata*/
      1 && o !== (o = /*itemInfo*/
      (e[41] ? K(new Date(
        /*itemInfo*/
        e[41].expiryDate
      )) > (/* @__PURE__ */ new Date()).getFullYear() + 30 ? (
        /*currentDate*/
        e[18].clone().add(5, "years").format("d/M/yyyy - h:mm a")
      ) : Z(new Date(
        /*itemInfo*/
        e[41].expiryDate
      ), "d/M/yyyy - h:mm a") : "N/A") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function Ke(i) {
  let t, o, n, e, a, r, d, c;
  function D() {
    return (
      /*click_handler_2*/
      i[26](
        /*index*/
        i[43]
      )
    );
  }
  return {
    c() {
      t = p("div"), o = p("span"), o.textContent = "i", n = E(), e = p("player-account-gaming-limits-popup"), y(o, "class", "InfoCardIcon"), s(e, "showpopup", a = /*showPopup*/
      i[9][
        /*index*/
        i[43] + 1
      ]), s(e, "iteminfoamount", r = /*itemInfo*/
      i[41].updateAmount), s(
        e,
        "currency",
        /*currency*/
        i[2]
      ), s(
        e,
        "lang",
        /*lang*/
        i[3]
      ), s(
        e,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), s(
        e,
        "mbsource",
        /*mbsource*/
        i[6]
      ), y(t, "class", "InfoCardIconWrapper " + /*isMobile*/
      (i[17] ? "InfoCardIconMobileWrapper" : ""));
    },
    m(v, L) {
      A(v, t, L), l(t, o), l(t, n), l(t, e), d || (c = G(o, "click", ee(D)), d = !0);
    },
    p(v, L) {
      i = v, L[0] & /*showPopup*/
      512 && a !== (a = /*showPopup*/
      i[9][
        /*index*/
        i[43] + 1
      ]) && s(e, "showpopup", a), L[0] & /*limitsdata*/
      1 && r !== (r = /*itemInfo*/
      i[41].updateAmount) && s(e, "iteminfoamount", r), L[0] & /*currency*/
      4 && s(
        e,
        "currency",
        /*currency*/
        i[2]
      ), L[0] & /*lang*/
      8 && s(
        e,
        "lang",
        /*lang*/
        i[3]
      ), L[0] & /*clientstyling*/
      16 && s(
        e,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), L[0] & /*clientstylingurl*/
      32 && s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), L[0] & /*mbsource*/
      64 && s(
        e,
        "mbsource",
        /*mbsource*/
        i[6]
      );
    },
    d(v) {
      v && T(t), d = !1, c();
    }
  };
}
function Ze(i) {
  let t, o, n;
  return {
    c() {
      t = p("div"), t.innerHTML = "<span></span>", y(t, "class", "InfoCardRemoveIcon");
    },
    m(e, a) {
      A(e, t, a), o || (n = G(t, "click", function() {
        ce(
          /*removeItemLimit*/
          i[21](
            /*itemInfo*/
            i[41],
            /*limitname*/
            i[1]
          )
        ) && i[21](
          /*itemInfo*/
          i[41],
          /*limitname*/
          i[1]
        ).apply(this, arguments);
      }), o = !0);
    },
    p(e, a) {
      i = e;
    },
    d(e) {
      e && T(t), o = !1, n();
    }
  };
}
function me(i) {
  let t, o, n, e, a = (
    /*itemInfo*/
    (i[41] ? (
      /*$_*/
      i[16](
        /*itemInfo*/
        i[41].period.charAt(0).toLowerCase() + /*itemInfo*/
        i[41].period.substring(1)
      )
    ) : "") + ""
  ), r, d, c, D = (
    /*itemInfo*/
    (i[41] ? (
      /*itemInfo*/
      i[41].amount === "No limit" ? (
        /*$_*/
        i[16]("noLimit")
      ) : (
        /*itemInfo*/
        i[41].amount
      )
    ) : 0) + ""
  ), v, L, b = (
    /*itemInfo*/
    i[41].amount != "No limit" && /*itemInfo*/
    i[41].amount != /*$_*/
    i[16]("noLimit")
  ), H, h, q, N = (
    /*$_*/
    i[16]("expirationDate") + ""
  ), P, S, z, C, Y, k = b && le(i);
  function j(u, w) {
    return (
      /*itemInfo*/
      u[41].expiryDate ? Je : Qe
    );
  }
  let V = j(i), M = V(i);
  function R(u, w) {
    if (w[0] & /*limitsdata, $_*/
    65537 && (C = null), C == null && (C = /*itemInfo*/
    u[41].amount !== /*$_*/
    u[16]("noLimit") && /*itemInfo*/
    u[41].amount !== "No limit" && !/*itemInfo*/
    u[41].isModified), C)
      return Ze;
    if (
      /*itemInfo*/
      u[41].amount != "No limit" && /*itemInfo*/
      u[41].isModified
    )
      return Ke;
  }
  let f = R(i, [-1, -1]), g = f && f(i);
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), e = p("div"), r = F(a), d = E(), c = p("div"), v = F(D), L = E(), k && k.c(), H = E(), h = p("div"), q = p("div"), P = F(N), S = E(), M.c(), z = E(), g && g.c(), Y = E(), y(e, "class", "InfoCardRowTitle"), y(c, "class", "InfoCardRowValue"), y(n, "class", "InfoCardRow InfoMainRow"), y(q, "class", "InfoCardRowTitle"), y(h, "class", "InfoCardRow"), y(o, "class", "InfoCardRowContainer"), y(t, "class", "InfoCardBox InfoCardMultipleItems");
    },
    m(u, w) {
      A(u, t, w), l(t, o), l(o, n), l(n, e), l(e, r), l(n, d), l(n, c), l(c, v), l(c, L), k && k.m(c, null), l(o, H), l(o, h), l(h, q), l(q, P), l(h, S), M.m(h, null), l(t, z), g && g.m(t, null), l(t, Y);
    },
    p(u, w) {
      w[0] & /*limitsdata, $_*/
      65537 && a !== (a = /*itemInfo*/
      (u[41] ? (
        /*$_*/
        u[16](
          /*itemInfo*/
          u[41].period.charAt(0).toLowerCase() + /*itemInfo*/
          u[41].period.substring(1)
        )
      ) : "") + "") && B(r, a), w[0] & /*limitsdata, $_*/
      65537 && D !== (D = /*itemInfo*/
      (u[41] ? (
        /*itemInfo*/
        u[41].amount === "No limit" ? (
          /*$_*/
          u[16]("noLimit")
        ) : (
          /*itemInfo*/
          u[41].amount
        )
      ) : 0) + "") && B(v, D), w[0] & /*limitsdata, $_*/
      65537 && (b = /*itemInfo*/
      u[41].amount != "No limit" && /*itemInfo*/
      u[41].amount != /*$_*/
      u[16]("noLimit")), b ? k ? k.p(u, w) : (k = le(u), k.c(), k.m(c, null)) : k && (k.d(1), k = null), w[0] & /*$_*/
      65536 && N !== (N = /*$_*/
      u[16]("expirationDate") + "") && B(P, N), V === (V = j(u)) && M ? M.p(u, w) : (M.d(1), M = V(u), M && (M.c(), M.m(h, null))), f === (f = R(u, w)) && g ? g.p(u, w) : (g && g.d(1), g = f && f(u), g && (g.c(), g.m(t, Y)));
    },
    d(u) {
      u && T(t), k && k.d(), M.d(), g && g.d();
    }
  };
}
function Xe(i) {
  let t, o = (
    /*$_*/
    i[16]("noLimit") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = F(o), y(t, "class", "InfoCardCurrency");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      e[16]("noLimit") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function xe(i) {
  let t = (
    /*itemInfo*/
    (i[41] ? (
      /*itemInfo*/
      i[41].amount === "No limit" ? (
        /*$_*/
        i[16]("noLimit")
      ) : (
        /*itemInfo*/
        i[41].amount
      )
    ) : 0) + ""
  ), o, n, e = (
    /*itemInfo*/
    i[41].amount !== "No limit" && /*itemInfo*/
    i[41].amount !== /*$_*/
    i[16]("noLimit")
  ), a, r = e && se(i);
  return {
    c() {
      o = F(t), n = E(), r && r.c(), a = ie();
    },
    m(d, c) {
      A(d, o, c), A(d, n, c), r && r.m(d, c), A(d, a, c);
    },
    p(d, c) {
      c[0] & /*limitsdata, $_*/
      65537 && t !== (t = /*itemInfo*/
      (d[41] ? (
        /*itemInfo*/
        d[41].amount === "No limit" ? (
          /*$_*/
          d[16]("noLimit")
        ) : (
          /*itemInfo*/
          d[41].amount
        )
      ) : 0) + "") && B(o, t), c[0] & /*limitsdata, $_*/
      65537 && (e = /*itemInfo*/
      d[41].amount !== "No limit" && /*itemInfo*/
      d[41].amount !== /*$_*/
      d[16]("noLimit")), e ? r ? r.p(d, c) : (r = se(d), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
    },
    d(d) {
      d && (T(o), T(n), T(a)), r && r.d(d);
    }
  };
}
function se(i) {
  let t, o = (
    /*$_*/
    i[16]("minutes") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = F(o), y(t, "class", "InfoCardCurrency");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      e[16]("minutes") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function $e(i) {
  let t, o = (
    /*$_*/
    i[16]("notAvailable") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = F(o), y(t, "class", "InfoCardRowValue");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      e[16]("notAvailable") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function ei(i) {
  let t, o = (
    /*itemInfo*/
    (i[41] ? K(new Date(
      /*itemInfo*/
      i[41].expiryDate
    )) > (/* @__PURE__ */ new Date()).getFullYear() + 30 ? (
      /*currentDate*/
      i[18].clone().add(5, "years").format("d/M/yyyy - h:mm a")
    ) : Z(new Date(
      /*itemInfo*/
      i[41].expiryDate
    ), "d/M/yyyy - h:mm a") : "N/A") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = F(o), y(t, "class", "InfoCardRowValue");
    },
    m(e, a) {
      A(e, t, a), l(t, n);
    },
    p(e, a) {
      a[0] & /*limitsdata*/
      1 && o !== (o = /*itemInfo*/
      (e[41] ? K(new Date(
        /*itemInfo*/
        e[41].expiryDate
      )) > (/* @__PURE__ */ new Date()).getFullYear() + 30 ? (
        /*currentDate*/
        e[18].clone().add(5, "years").format("d/M/yyyy - h:mm a")
      ) : Z(new Date(
        /*itemInfo*/
        e[41].expiryDate
      ), "d/M/yyyy - h:mm a") : "N/A") + "") && B(n, o);
    },
    d(e) {
      e && T(t);
    }
  };
}
function ii(i) {
  let t, o, n, e, a, r, d, c, D;
  function v() {
    return (
      /*click_handler_1*/
      i[25](
        /*index*/
        i[43]
      )
    );
  }
  return {
    c() {
      t = p("div"), o = p("span"), o.textContent = "i", n = E(), e = p("player-account-gaming-limits-popup"), y(o, "class", "InfoCardIcon"), s(e, "showpopup", a = /*showPopup*/
      i[9][
        /*index*/
        i[43] + 1
      ]), s(e, "iteminfoamount", r = /*itemInfo*/
      i[41].updateMinutes), s(e, "currency", d = /*$_*/
      i[16]("minutes")), s(
        e,
        "lang",
        /*lang*/
        i[3]
      ), s(
        e,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), s(
        e,
        "mbsource",
        /*mbsource*/
        i[6]
      ), y(t, "class", "InfoCardIconWrapper " + /*isMobile*/
      (i[17] ? "InfoCardIconMobileWrapper" : ""));
    },
    m(L, b) {
      A(L, t, b), l(t, o), l(t, n), l(t, e), c || (D = G(o, "click", ee(v)), c = !0);
    },
    p(L, b) {
      i = L, b[0] & /*showPopup*/
      512 && a !== (a = /*showPopup*/
      i[9][
        /*index*/
        i[43] + 1
      ]) && s(e, "showpopup", a), b[0] & /*limitsdata*/
      1 && r !== (r = /*itemInfo*/
      i[41].updateMinutes) && s(e, "iteminfoamount", r), b[0] & /*$_*/
      65536 && d !== (d = /*$_*/
      i[16]("minutes")) && s(e, "currency", d), b[0] & /*lang*/
      8 && s(
        e,
        "lang",
        /*lang*/
        i[3]
      ), b[0] & /*clientstyling*/
      16 && s(
        e,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), b[0] & /*clientstylingurl*/
      32 && s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), b[0] & /*mbsource*/
      64 && s(
        e,
        "mbsource",
        /*mbsource*/
        i[6]
      );
    },
    d(L) {
      L && T(t), c = !1, D();
    }
  };
}
function ti(i) {
  let t, o, n;
  return {
    c() {
      t = p("div"), t.innerHTML = "<span></span>", y(t, "class", "InfoCardRemoveIcon");
    },
    m(e, a) {
      A(e, t, a), o || (n = G(t, "click", function() {
        ce(
          /*removeItemLimit*/
          i[21](
            /*itemInfo*/
            i[41],
            /*limitname*/
            i[1]
          )
        ) && i[21](
          /*itemInfo*/
          i[41],
          /*limitname*/
          i[1]
        ).apply(this, arguments);
      }), o = !0);
    },
    p(e, a) {
      i = e;
    },
    d(e) {
      e && T(t), o = !1, n();
    }
  };
}
function de(i) {
  let t, o, n, e, a = (
    /*itemInfo*/
    (i[41] ? (
      /*$_*/
      i[16](
        /*itemInfo*/
        i[41].period.charAt(0).toLowerCase() + /*itemInfo*/
        i[41].period.substring(1)
      )
    ) : "") + ""
  ), r, d, c, D, v, L, b = (
    /*$_*/
    i[16]("expirationDate") + ""
  ), H, h, q, N, P;
  function S(f, g) {
    return (
      /*itemInfo*/
      f[41].amount !== 0 ? xe : Xe
    );
  }
  let z = S(i), C = z(i);
  function Y(f, g) {
    return (
      /*itemInfo*/
      f[41].expiryDate ? ei : $e
    );
  }
  let k = Y(i), j = k(i);
  function V(f, g) {
    if (g[0] & /*limitsdata, $_*/
    65537 && (N = null), N == null && (N = /*itemInfo*/
    f[41].amount !== /*$_*/
    f[16]("noLimit") && /*itemInfo*/
    f[41].amount !== "No limit" && !/*itemInfo*/
    f[41].isModified), N)
      return ti;
    if (
      /*itemInfo*/
      f[41].amount != "No limit" && /*itemInfo*/
      f[41].isModified
    )
      return ii;
  }
  let M = V(i, [-1, -1]), R = M && M(i);
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), e = p("div"), r = F(a), d = E(), c = p("div"), C.c(), D = E(), v = p("div"), L = p("div"), H = F(b), h = E(), j.c(), q = E(), R && R.c(), P = E(), y(e, "class", "InfoCardRowTitle"), y(c, "class", "InfoCardRowValue"), y(n, "class", "InfoCardRow InfoMainRow"), y(L, "class", "InfoCardRowTitle"), y(v, "class", "InfoCardRow"), y(o, "class", "InfoCardRowContainer"), y(t, "class", "InfoCardBox InfoCardMultipleItems");
    },
    m(f, g) {
      A(f, t, g), l(t, o), l(o, n), l(n, e), l(e, r), l(n, d), l(n, c), C.m(c, null), l(o, D), l(o, v), l(v, L), l(L, H), l(v, h), j.m(v, null), l(t, q), R && R.m(t, null), l(t, P);
    },
    p(f, g) {
      g[0] & /*limitsdata, $_*/
      65537 && a !== (a = /*itemInfo*/
      (f[41] ? (
        /*$_*/
        f[16](
          /*itemInfo*/
          f[41].period.charAt(0).toLowerCase() + /*itemInfo*/
          f[41].period.substring(1)
        )
      ) : "") + "") && B(r, a), z === (z = S(f)) && C ? C.p(f, g) : (C.d(1), C = z(f), C && (C.c(), C.m(c, null))), g[0] & /*$_*/
      65536 && b !== (b = /*$_*/
      f[16]("expirationDate") + "") && B(H, b), k === (k = Y(f)) && j ? j.p(f, g) : (j.d(1), j = k(f), j && (j.c(), j.m(v, null))), M === (M = V(f, g)) && R ? R.p(f, g) : (R && R.d(1), R = M && M(f), R && (R.c(), R.m(t, P)));
    },
    d(f) {
      f && T(t), C.d(), j.d(), R && R.d();
    }
  };
}
function ue(i) {
  let t, o = (
    /*$_*/
    i[16]("removeLimits") + ""
  ), n, e, a;
  return {
    c() {
      t = p("button"), n = F(o), y(t, "class", "InfoCardRemoveButton");
    },
    m(r, d) {
      A(r, t, d), l(t, n), e || (a = G(
        t,
        "click",
        /*click_handler_4*/
        i[28]
      ), e = !0);
    },
    p(r, d) {
      d[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      r[16]("removeLimits") + "") && B(n, o);
    },
    d(r) {
      r && T(t), e = !1, a();
    }
  };
}
function pe(i) {
  let t, o, n;
  return {
    c() {
      t = p("player-account-modal"), o = p("player-account-gaming-limits-confirmation-modal"), s(o, "modaltext", n = /*removeAllLimits*/
      i[11] ? (
        /*removeAllLimitsText*/
        i[13]
      ) : (
        /*removeLimitText*/
        i[14]
      )), s(o, "modalsource", "infoCard"), s(
        o,
        "lang",
        /*lang*/
        i[3]
      ), s(
        o,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), s(
        o,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), s(
        o,
        "mbsource",
        /*mbsource*/
        i[6]
      ), s(
        t,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), s(
        t,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), s(
        t,
        "mbsource",
        /*mbsource*/
        i[6]
      );
    },
    m(e, a) {
      A(e, t, a), l(t, o);
    },
    p(e, a) {
      a[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/
      26624 && n !== (n = /*removeAllLimits*/
      e[11] ? (
        /*removeAllLimitsText*/
        e[13]
      ) : (
        /*removeLimitText*/
        e[14]
      )) && s(o, "modaltext", n), a[0] & /*lang*/
      8 && s(
        o,
        "lang",
        /*lang*/
        e[3]
      ), a[0] & /*clientstyling*/
      16 && s(
        o,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), a[0] & /*clientstylingurl*/
      32 && s(
        o,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), a[0] & /*mbsource*/
      64 && s(
        o,
        "mbsource",
        /*mbsource*/
        e[6]
      ), a[0] & /*clientstyling*/
      16 && s(
        t,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), a[0] & /*clientstylingurl*/
      32 && s(
        t,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), a[0] & /*mbsource*/
      64 && s(
        t,
        "mbsource",
        /*mbsource*/
        e[6]
      );
    },
    d(e) {
      e && T(t);
    }
  };
}
function oi(i) {
  let t;
  function o(a, r) {
    return (
      /*isLoading*/
      a[8] ? Oe : Ye
    );
  }
  let n = o(i), e = n(i);
  return {
    c() {
      t = p("div"), e.c();
    },
    m(a, r) {
      A(a, t, r), e.m(t, null), i[29](t);
    },
    p(a, r) {
      n === (n = o(a)) && e ? e.p(a, r) : (e.d(1), e = n(a), e && (e.c(), e.m(t, null)));
    },
    i: $,
    o: $,
    d(a) {
      a && T(t), e.d(), i[29](null);
    }
  };
}
function ni(i, t, o) {
  let n;
  Ne(i, Ee, (m) => o(16, n = m));
  let { limitsdata: e = [] } = t, { limitname: a = "" } = t, { currency: r = "" } = t, { lang: d = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: D = "" } = t, { mbsource: v } = t, { translationurl: L = "" } = t;
  const b = () => {
    fetch(L).then((I) => I.json()).then((I) => {
      Object.keys(I).forEach((O) => {
        oe(O, I[O]);
      });
    }).catch((I) => {
      console.log(I);
    });
  };
  Object.keys(ne).forEach((m) => {
    oe(m, ne[m]);
  });
  let H = !0, h, q, N = new Array(5).fill(0), P = ["Daily", "Weekly", "Monthly"], S = !0, z = !0, C = !1, Y = window.navigator.userAgent, k = je(Y) !== "PC", j = "", V = "", M = !0, R = /* @__PURE__ */ new Date();
  const f = (m) => {
    window.postMessage(
      {
        type: "EditPlayerAccountGamingLimits",
        edit: m,
        name: a
      },
      window.location.href
    );
  }, g = (m) => {
    o(12, C = !0), o(11, z = !0), window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href), window.postMessage(
      {
        type: "DeleteLimitsItem",
        removeData: m,
        removeName: a
      },
      window.location.href
    );
  }, u = (m, I) => {
    o(12, C = !0), o(11, z = !1), window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href), window.postMessage(
      {
        type: "DeleteLimitsItem",
        removeData: m,
        removeName: I
      },
      window.location.href
    );
  }, w = (m) => {
    window.postMessage(
      {
        type: "ClosePlayerAccountGamingLimitsPopup"
      },
      window.location.href
    ), setTimeout(
      () => {
        o(9, N[m] = !0, N);
      },
      50
    );
  }, _ = (m) => {
    let I = [...m];
    P.forEach((O, X) => {
      I.find((x) => x.period === O) || (I = W(I, X, O));
      const Q = I.find((x) => x.period === O);
      Q && Q.amount !== "No limit" && o(10, S = !1);
    }), m.splice(0, m.length, ...I), o(8, H = !1);
  }, W = (m, I, O) => {
    const X = {
      period: O,
      amount: "No limit",
      currency: "",
      isModified: !1,
      expiryDate: ""
    }, Q = [...m];
    return Q.splice(I, 0, X), Q;
  }, Le = (m, I) => m.period === "Weekly" && I.period === "Daily" || m.period === "Monthly" && I.period === "Daily" || m.period === "Monthly" && I.period === "Weekly" ? 1 : m.period === "Daily" && I.period === "Weekly" || m.period === "Daily" && I.period === "Monthly" || m.period === "Weekly" && I.period === "Monthly" ? -1 : 0, ge = () => {
    let m = "";
    m = a === "Time Limit" ? "time limit" : a === "Deposit Limit" ? "deposit limit" : a === "Wagering Limit" ? "wagering limit" : "loss limit", o(13, j = n("removeLimitsText", { values: { limit: m } })), o(14, V = n("removeLimitText", { values: { limit: m } }));
  }, ye = (m) => {
    m.forEach((I) => {
      I.isModified && o(15, M = !1);
    });
  }, we = () => {
    He(d), ge(), ye(e), _(e), e.sort(Le);
  }, te = (m) => {
    if (m.data)
      switch (m.data.type) {
        case "ClosePlayerAccountGamingLimitsPopup":
          o(9, N = new Array(5).fill(0));
          break;
        case "ModalClosed":
          window.postMessage({ type: "EnableScroll" }, window.location.href), o(12, C = !1), o(11, z = !1);
          break;
      }
  };
  ze(() => (window.addEventListener("message", te, !1), () => {
    window.removeEventListener("message", te);
  }));
  const _e = () => w(0), ve = (m) => w(m + 1), he = (m) => w(m + 1), be = () => f(e), Ce = () => g(e);
  function Ie(m) {
    Se[m ? "unshift" : "push"](() => {
      h = m, o(7, h);
    });
  }
  return i.$$set = (m) => {
    "limitsdata" in m && o(0, e = m.limitsdata), "limitname" in m && o(1, a = m.limitname), "currency" in m && o(2, r = m.currency), "lang" in m && o(3, d = m.lang), "clientstyling" in m && o(4, c = m.clientstyling), "clientstylingurl" in m && o(5, D = m.clientstylingurl), "mbsource" in m && o(6, v = m.mbsource), "translationurl" in m && o(23, L = m.translationurl);
  }, i.$$.update = () => {
    i.$$.dirty[0] & /*limitsdata, limitname, lang*/
    11 && e && a && d && we(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    144 && c && h && Fe(h, c), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    160 && D && h && We(h, D), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
    192 && v && h && qe(h, `${v}.Style`, q), i.$$.dirty[0] & /*translationurl*/
    8388608 && L && b();
  }, [
    e,
    a,
    r,
    d,
    c,
    D,
    v,
    h,
    H,
    N,
    S,
    z,
    C,
    j,
    V,
    M,
    n,
    k,
    R,
    f,
    g,
    u,
    w,
    L,
    _e,
    ve,
    he,
    be,
    Ce,
    Ie
  ];
}
class ai extends Me {
  constructor(t) {
    super(), Te(
      this,
      t,
      ni,
      oi,
      Ae,
      {
        limitsdata: 0,
        limitname: 1,
        currency: 2,
        lang: 3,
        clientstyling: 4,
        clientstylingurl: 5,
        mbsource: 6,
        translationurl: 23
      },
      Pe,
      [-1, -1]
    );
  }
  get limitsdata() {
    return this.$$.ctx[0];
  }
  set limitsdata(t) {
    this.$$set({ limitsdata: t }), U();
  }
  get limitname() {
    return this.$$.ctx[1];
  }
  set limitname(t) {
    this.$$set({ limitname: t }), U();
  }
  get currency() {
    return this.$$.ctx[2];
  }
  set currency(t) {
    this.$$set({ currency: t }), U();
  }
  get lang() {
    return this.$$.ctx[3];
  }
  set lang(t) {
    this.$$set({ lang: t }), U();
  }
  get clientstyling() {
    return this.$$.ctx[4];
  }
  set clientstyling(t) {
    this.$$set({ clientstyling: t }), U();
  }
  get clientstylingurl() {
    return this.$$.ctx[5];
  }
  set clientstylingurl(t) {
    this.$$set({ clientstylingurl: t }), U();
  }
  get mbsource() {
    return this.$$.ctx[6];
  }
  set mbsource(t) {
    this.$$set({ mbsource: t }), U();
  }
  get translationurl() {
    return this.$$.ctx[23];
  }
  set translationurl(t) {
    this.$$set({ translationurl: t }), U();
  }
}
Ve(ai, { limitsdata: {}, limitname: {}, currency: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  ai as default
};
