import { a as Ie, $ as ke, S as De, i as Me, s as Te, f as U, b as Ae, n as $, d as M, h as T, k as p, p as Re, q as Ee, u as Ne, w as je, e as y, r as ze, c as F, g as s, j as l, l as G, P as ee, t as W, m as E, C as J, D as fe, H as ie, U as ce, x as Be, y as Se, z as Fe, A as We, B as qe } from "./GeneralLogout-B7wytw3i.js";
import { g as K, f as Z } from "./PlayerAccountGamingLimitsGroupEdit-DBQ3mbbn.js";
function oe(e, t) {
  Ie(e, t);
}
function He(e) {
  ke.set(e);
}
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"
  }
};
if (typeof window != "undefined") {
  let e = function(t) {
    return function(...o) {
      try {
        return t.apply(this, o);
      } catch (n) {
        if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
          return !1;
        throw n;
      }
    };
  };
  customElements.define = e(customElements.define), import("./PlayerAccountGamingLimitsGroupEdit-DBQ3mbbn.js").then((t) => t.P).then(({ default: t }) => {
    !customElements.get("player-account-gaming-limits-group-edit") && customElements.define(
      "player-account-gaming-limits-group-edit",
      t.element
    );
  });
}
function Pe(e) {
  Ae(e, "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(e, t, o) {
  const n = e.slice();
  return n[41] = t[o], n[43] = o, n;
}
function re(e, t, o) {
  const n = e.slice();
  return n[41] = t[o], n[43] = o, n;
}
function Ve(e) {
  let t, o, n, i, a = (
    /*limitsdata*/
    (e[0] ? (
      /*$_*/
      e[16](
        /*limitname*/
        e[1].charAt(0).toLowerCase() + /*limitname*/
        e[1].substring(1).replace(/\s/g, "")
      )
    ) : "") + ""
  ), r, u, c, k, v, g, b, V, h, B, S, P, j, z, A = (
    /*$_*/
    e[16]("edit") + ""
  ), Y, C, N, H, R;
  function D(_, q) {
    return (
      /*limitname*/
      _[1] === "Time Limit" ? Ue : Oe
    );
  }
  let f = D(e), L = f(e), d = !/*amountIsUnset*/
  e[10] && !/*limitsdata*/
  e[0].isModified && /*changeableDataset*/
  e[15] && ue(e), w = (
    /*openLimitsModal*/
    e[12] && pe(e)
  );
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), i = p("h5"), r = W(a), u = E(), c = p("div"), k = p("span"), k.textContent = "i", v = E(), g = p("player-account-gaming-limits-popup"), V = E(), h = p("div"), B = p("div"), S = p("div"), L.c(), P = E(), j = p("div"), z = p("button"), Y = W(A), C = E(), d && d.c(), N = E(), w && w.c(), y(k, "class", "InfoCardIcon"), s(g, "showpopup", b = /*showPopup*/
      e[9][0]), s(
        g,
        "lang",
        /*lang*/
        e[3]
      ), s(
        g,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), s(
        g,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), s(
        g,
        "mbsource",
        /*mbsource*/
        e[6]
      ), y(c, "class", "InfoCardIconWrapper " + /*isMobile*/
      (e[17] ? "InfoCardIconMobileWrapper" : "")), y(n, "class", "InfoCardHeader " + /*isMobile*/
      (e[17] ? "InfoCardMobileHeader" : "")), y(S, "class", "InfoCardTableRow"), y(B, "class", "InfoCardTableWrapper"), y(z, "class", "InfoCardEditButton"), y(j, "class", "InfoCardControlArea"), y(h, "class", "InfoCard"), y(o, "class", "InfoCardWrapper"), y(t, "class", "InfoCardSection");
    },
    m(_, q) {
      T(_, t, q), l(t, o), l(o, n), l(n, i), l(i, r), l(n, u), l(n, c), l(c, k), l(c, v), l(c, g), l(o, V), l(o, h), l(h, B), l(B, S), L.m(S, null), l(h, P), l(h, j), l(j, z), l(z, Y), l(j, C), d && d.m(j, null), l(t, N), w && w.m(t, null), H || (R = [
        G(k, "click", ee(
          /*click_handler*/
          e[24]
        )),
        G(
          z,
          "click",
          /*click_handler_3*/
          e[27]
        )
      ], H = !0);
    },
    p(_, q) {
      q[0] & /*limitsdata, $_, limitname*/
      65539 && a !== (a = /*limitsdata*/
      (_[0] ? (
        /*$_*/
        _[16](
          /*limitname*/
          _[1].charAt(0).toLowerCase() + /*limitname*/
          _[1].substring(1).replace(/\s/g, "")
        )
      ) : "") + "") && F(r, a), q[0] & /*showPopup*/
      512 && b !== (b = /*showPopup*/
      _[9][0]) && s(g, "showpopup", b), q[0] & /*lang*/
      8 && s(
        g,
        "lang",
        /*lang*/
        _[3]
      ), q[0] & /*clientstyling*/
      16 && s(
        g,
        "clientstyling",
        /*clientstyling*/
        _[4]
      ), q[0] & /*clientstylingurl*/
      32 && s(
        g,
        "clientstylingurl",
        /*clientstylingurl*/
        _[5]
      ), q[0] & /*mbsource*/
      64 && s(
        g,
        "mbsource",
        /*mbsource*/
        _[6]
      ), f === (f = D(_)) && L ? L.p(_, q) : (L.d(1), L = f(_), L && (L.c(), L.m(S, null))), q[0] & /*$_*/
      65536 && A !== (A = /*$_*/
      _[16]("edit") + "") && F(Y, A), !/*amountIsUnset*/
      _[10] && !/*limitsdata*/
      _[0].isModified && /*changeableDataset*/
      _[15] ? d ? d.p(_, q) : (d = ue(_), d.c(), d.m(j, null)) : d && (d.d(1), d = null), /*openLimitsModal*/
      _[12] ? w ? w.p(_, q) : (w = pe(_), w.c(), w.m(t, null)) : w && (w.d(1), w = null);
    },
    d(_) {
      _ && M(t), L.d(), d && d.d(), w && w.d(), H = !1, ze(R);
    }
  };
}
function Ye(e) {
  let t;
  return {
    c() {
      t = p("div"), y(t, "class", "ModalLoader");
    },
    m(o, n) {
      T(o, t, n);
    },
    p: $,
    d(o) {
      o && M(t);
    }
  };
}
function Oe(e) {
  let t, o = J(
    /*limitsdata*/
    e[0]
  ), n = [];
  for (let i = 0; i < o.length; i += 1)
    n[i] = me(ae(e, o, i));
  return {
    c() {
      for (let i = 0; i < n.length; i += 1)
        n[i].c();
      t = ie();
    },
    m(i, a) {
      for (let r = 0; r < n.length; r += 1)
        n[r] && n[r].m(i, a);
      T(i, t, a);
    },
    p(i, a) {
      if (a[0] & /*removeItemLimit, limitsdata, limitname, $_, isMobile, showPopup, currency, lang, clientstyling, clientstylingurl, mbsource, openInfoPopup, currentDate*/
      6750847) {
        o = J(
          /*limitsdata*/
          i[0]
        );
        let r;
        for (r = 0; r < o.length; r += 1) {
          const u = ae(i, o, r);
          n[r] ? n[r].p(u, a) : (n[r] = me(u), n[r].c(), n[r].m(t.parentNode, t));
        }
        for (; r < n.length; r += 1)
          n[r].d(1);
        n.length = o.length;
      }
    },
    d(i) {
      i && M(t), fe(n, i);
    }
  };
}
function Ue(e) {
  let t, o = J(
    /*limitsdata*/
    e[0]
  ), n = [];
  for (let i = 0; i < o.length; i += 1)
    n[i] = de(re(e, o, i));
  return {
    c() {
      for (let i = 0; i < n.length; i += 1)
        n[i].c();
      t = ie();
    },
    m(i, a) {
      for (let r = 0; r < n.length; r += 1)
        n[r] && n[r].m(i, a);
      T(i, t, a);
    },
    p(i, a) {
      if (a[0] & /*removeItemLimit, limitsdata, limitname, $_, isMobile, showPopup, lang, clientstyling, clientstylingurl, mbsource, openInfoPopup, currentDate*/
      6750843) {
        o = J(
          /*limitsdata*/
          i[0]
        );
        let r;
        for (r = 0; r < o.length; r += 1) {
          const u = re(i, o, r);
          n[r] ? n[r].p(u, a) : (n[r] = de(u), n[r].c(), n[r].m(t.parentNode, t));
        }
        for (; r < n.length; r += 1)
          n[r].d(1);
        n.length = o.length;
      }
    },
    d(i) {
      i && M(t), fe(n, i);
    }
  };
}
function le(e) {
  let t, o = (
    /*itemInfo*/
    (e[41] ? (
      /*itemInfo*/
      e[41].currency
    ) : "") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = W(o), y(t, "class", "InfoCardCurrency");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*limitsdata*/
      1 && o !== (o = /*itemInfo*/
      (i[41] ? (
        /*itemInfo*/
        i[41].currency
      ) : "") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function Ge(e) {
  let t, o = (
    /*$_*/
    e[16]("notAvailable") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = W(o), y(t, "class", "InfoCardRowValue");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      i[16]("notAvailable") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function Qe(e) {
  let t, 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") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = W(o), y(t, "class", "InfoCardRowValue");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*limitsdata*/
      1 && o !== (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") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function Je(e) {
  let t, o, n, i, a, r, u, c;
  function k() {
    return (
      /*click_handler_2*/
      e[26](
        /*index*/
        e[43]
      )
    );
  }
  return {
    c() {
      t = p("div"), o = p("span"), o.textContent = "i", n = E(), i = p("player-account-gaming-limits-popup"), y(o, "class", "InfoCardIcon"), s(i, "showpopup", a = /*showPopup*/
      e[9][
        /*index*/
        e[43] + 1
      ]), s(i, "iteminfoamount", r = /*itemInfo*/
      e[41].updateAmount), s(
        i,
        "currency",
        /*currency*/
        e[2]
      ), s(
        i,
        "lang",
        /*lang*/
        e[3]
      ), s(
        i,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), s(
        i,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), s(
        i,
        "mbsource",
        /*mbsource*/
        e[6]
      ), y(t, "class", "InfoCardIconWrapper " + /*isMobile*/
      (e[17] ? "InfoCardIconMobileWrapper" : ""));
    },
    m(v, g) {
      T(v, t, g), l(t, o), l(t, n), l(t, i), u || (c = G(o, "click", ee(k)), u = !0);
    },
    p(v, g) {
      e = v, g[0] & /*showPopup*/
      512 && a !== (a = /*showPopup*/
      e[9][
        /*index*/
        e[43] + 1
      ]) && s(i, "showpopup", a), g[0] & /*limitsdata*/
      1 && r !== (r = /*itemInfo*/
      e[41].updateAmount) && s(i, "iteminfoamount", r), g[0] & /*currency*/
      4 && s(
        i,
        "currency",
        /*currency*/
        e[2]
      ), g[0] & /*lang*/
      8 && s(
        i,
        "lang",
        /*lang*/
        e[3]
      ), g[0] & /*clientstyling*/
      16 && s(
        i,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), g[0] & /*clientstylingurl*/
      32 && s(
        i,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), g[0] & /*mbsource*/
      64 && s(
        i,
        "mbsource",
        /*mbsource*/
        e[6]
      );
    },
    d(v) {
      v && M(t), u = !1, c();
    }
  };
}
function Ke(e) {
  let t, o, n;
  return {
    c() {
      t = p("div"), t.innerHTML = "<span></span>", y(t, "class", "InfoCardRemoveIcon");
    },
    m(i, a) {
      T(i, t, a), o || (n = G(t, "click", function() {
        ce(
          /*removeItemLimit*/
          e[21](
            /*itemInfo*/
            e[41],
            /*limitname*/
            e[1]
          )
        ) && e[21](
          /*itemInfo*/
          e[41],
          /*limitname*/
          e[1]
        ).apply(this, arguments);
      }), o = !0);
    },
    p(i, a) {
      e = i;
    },
    d(i) {
      i && M(t), o = !1, n();
    }
  };
}
function me(e) {
  let t, o, n, i, a = (
    /*itemInfo*/
    (e[41] ? (
      /*$_*/
      e[16](
        /*itemInfo*/
        e[41].period.charAt(0).toLowerCase() + /*itemInfo*/
        e[41].period.substring(1)
      )
    ) : "") + ""
  ), r, u, c, k = (
    /*itemInfo*/
    (e[41] ? (
      /*itemInfo*/
      e[41].amount === "No limit" ? (
        /*$_*/
        e[16]("noLimit")
      ) : (
        /*itemInfo*/
        e[41].amount
      )
    ) : 0) + ""
  ), v, g, b = (
    /*itemInfo*/
    e[41].amount != "No limit" && /*itemInfo*/
    e[41].amount != /*$_*/
    e[16]("noLimit")
  ), V, h, B, S = (
    /*$_*/
    e[16]("expirationDate") + ""
  ), P, j, z, A, Y, C = b && le(e);
  function N(d, w) {
    return (
      /*itemInfo*/
      d[41].expiryDate ? Qe : Ge
    );
  }
  let H = N(e), R = H(e);
  function D(d, w) {
    if (w[0] & /*limitsdata, $_*/
    65537 && (A = null), A == null && (A = /*itemInfo*/
    d[41].amount !== /*$_*/
    d[16]("noLimit") && /*itemInfo*/
    d[41].amount !== "No limit" && !/*itemInfo*/
    d[41].isModified), A)
      return Ke;
    if (
      /*itemInfo*/
      d[41].amount != "No limit" && /*itemInfo*/
      d[41].isModified
    )
      return Je;
  }
  let f = D(e, [-1, -1]), L = f && f(e);
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), i = p("div"), r = W(a), u = E(), c = p("div"), v = W(k), g = E(), C && C.c(), V = E(), h = p("div"), B = p("div"), P = W(S), j = E(), R.c(), z = E(), L && L.c(), Y = E(), y(i, "class", "InfoCardRowTitle"), y(c, "class", "InfoCardRowValue"), y(n, "class", "InfoCardRow InfoMainRow"), y(B, "class", "InfoCardRowTitle"), y(h, "class", "InfoCardRow"), y(o, "class", "InfoCardRowContainer"), y(t, "class", "InfoCardBox InfoCardMultipleItems");
    },
    m(d, w) {
      T(d, t, w), l(t, o), l(o, n), l(n, i), l(i, r), l(n, u), l(n, c), l(c, v), l(c, g), C && C.m(c, null), l(o, V), l(o, h), l(h, B), l(B, P), l(h, j), R.m(h, null), l(t, z), L && L.m(t, null), l(t, Y);
    },
    p(d, w) {
      w[0] & /*limitsdata, $_*/
      65537 && a !== (a = /*itemInfo*/
      (d[41] ? (
        /*$_*/
        d[16](
          /*itemInfo*/
          d[41].period.charAt(0).toLowerCase() + /*itemInfo*/
          d[41].period.substring(1)
        )
      ) : "") + "") && F(r, a), w[0] & /*limitsdata, $_*/
      65537 && k !== (k = /*itemInfo*/
      (d[41] ? (
        /*itemInfo*/
        d[41].amount === "No limit" ? (
          /*$_*/
          d[16]("noLimit")
        ) : (
          /*itemInfo*/
          d[41].amount
        )
      ) : 0) + "") && F(v, k), w[0] & /*limitsdata, $_*/
      65537 && (b = /*itemInfo*/
      d[41].amount != "No limit" && /*itemInfo*/
      d[41].amount != /*$_*/
      d[16]("noLimit")), b ? C ? C.p(d, w) : (C = le(d), C.c(), C.m(c, null)) : C && (C.d(1), C = null), w[0] & /*$_*/
      65536 && S !== (S = /*$_*/
      d[16]("expirationDate") + "") && F(P, S), H === (H = N(d)) && R ? R.p(d, w) : (R.d(1), R = H(d), R && (R.c(), R.m(h, null))), f === (f = D(d, w)) && L ? L.p(d, w) : (L && L.d(1), L = f && f(d), L && (L.c(), L.m(t, Y)));
    },
    d(d) {
      d && M(t), C && C.d(), R.d(), L && L.d();
    }
  };
}
function Ze(e) {
  let t, o = (
    /*$_*/
    e[16]("noLimit") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = W(o), y(t, "class", "InfoCardCurrency");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      i[16]("noLimit") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function Xe(e) {
  let t = (
    /*itemInfo*/
    (e[41] ? (
      /*itemInfo*/
      e[41].amount === "No limit" ? (
        /*$_*/
        e[16]("noLimit")
      ) : (
        /*itemInfo*/
        e[41].amount
      )
    ) : 0) + ""
  ), o, n, i = (
    /*itemInfo*/
    e[41].amount !== "No limit" && /*itemInfo*/
    e[41].amount !== /*$_*/
    e[16]("noLimit")
  ), a, r = i && se(e);
  return {
    c() {
      o = W(t), n = E(), r && r.c(), a = ie();
    },
    m(u, c) {
      T(u, o, c), T(u, n, c), r && r.m(u, c), T(u, a, c);
    },
    p(u, c) {
      c[0] & /*limitsdata, $_*/
      65537 && t !== (t = /*itemInfo*/
      (u[41] ? (
        /*itemInfo*/
        u[41].amount === "No limit" ? (
          /*$_*/
          u[16]("noLimit")
        ) : (
          /*itemInfo*/
          u[41].amount
        )
      ) : 0) + "") && F(o, t), c[0] & /*limitsdata, $_*/
      65537 && (i = /*itemInfo*/
      u[41].amount !== "No limit" && /*itemInfo*/
      u[41].amount !== /*$_*/
      u[16]("noLimit")), i ? r ? r.p(u, c) : (r = se(u), r.c(), r.m(a.parentNode, a)) : r && (r.d(1), r = null);
    },
    d(u) {
      u && (M(o), M(n), M(a)), r && r.d(u);
    }
  };
}
function se(e) {
  let t, o = (
    /*$_*/
    e[16]("minutes") + ""
  ), n;
  return {
    c() {
      t = p("span"), n = W(o), y(t, "class", "InfoCardCurrency");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      i[16]("minutes") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function xe(e) {
  let t, o = (
    /*$_*/
    e[16]("notAvailable") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = W(o), y(t, "class", "InfoCardRowValue");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      i[16]("notAvailable") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function $e(e) {
  let t, 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") + ""
  ), n;
  return {
    c() {
      t = p("div"), n = W(o), y(t, "class", "InfoCardRowValue");
    },
    m(i, a) {
      T(i, t, a), l(t, n);
    },
    p(i, a) {
      a[0] & /*limitsdata*/
      1 && o !== (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") + "") && F(n, o);
    },
    d(i) {
      i && M(t);
    }
  };
}
function ei(e) {
  let t, o, n, i, a, r, u, c, k;
  function v() {
    return (
      /*click_handler_1*/
      e[25](
        /*index*/
        e[43]
      )
    );
  }
  return {
    c() {
      t = p("div"), o = p("span"), o.textContent = "i", n = E(), i = p("player-account-gaming-limits-popup"), y(o, "class", "InfoCardIcon"), s(i, "showpopup", a = /*showPopup*/
      e[9][
        /*index*/
        e[43] + 1
      ]), s(i, "iteminfoamount", r = /*itemInfo*/
      e[41].updateMinutes), s(i, "currency", u = /*$_*/
      e[16]("minutes")), s(
        i,
        "lang",
        /*lang*/
        e[3]
      ), s(
        i,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), s(
        i,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), s(
        i,
        "mbsource",
        /*mbsource*/
        e[6]
      ), y(t, "class", "InfoCardIconWrapper " + /*isMobile*/
      (e[17] ? "InfoCardIconMobileWrapper" : ""));
    },
    m(g, b) {
      T(g, t, b), l(t, o), l(t, n), l(t, i), c || (k = G(o, "click", ee(v)), c = !0);
    },
    p(g, b) {
      e = g, b[0] & /*showPopup*/
      512 && a !== (a = /*showPopup*/
      e[9][
        /*index*/
        e[43] + 1
      ]) && s(i, "showpopup", a), b[0] & /*limitsdata*/
      1 && r !== (r = /*itemInfo*/
      e[41].updateMinutes) && s(i, "iteminfoamount", r), b[0] & /*$_*/
      65536 && u !== (u = /*$_*/
      e[16]("minutes")) && s(i, "currency", u), b[0] & /*lang*/
      8 && s(
        i,
        "lang",
        /*lang*/
        e[3]
      ), b[0] & /*clientstyling*/
      16 && s(
        i,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), b[0] & /*clientstylingurl*/
      32 && s(
        i,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), b[0] & /*mbsource*/
      64 && s(
        i,
        "mbsource",
        /*mbsource*/
        e[6]
      );
    },
    d(g) {
      g && M(t), c = !1, k();
    }
  };
}
function ii(e) {
  let t, o, n;
  return {
    c() {
      t = p("div"), t.innerHTML = "<span></span>", y(t, "class", "InfoCardRemoveIcon");
    },
    m(i, a) {
      T(i, t, a), o || (n = G(t, "click", function() {
        ce(
          /*removeItemLimit*/
          e[21](
            /*itemInfo*/
            e[41],
            /*limitname*/
            e[1]
          )
        ) && e[21](
          /*itemInfo*/
          e[41],
          /*limitname*/
          e[1]
        ).apply(this, arguments);
      }), o = !0);
    },
    p(i, a) {
      e = i;
    },
    d(i) {
      i && M(t), o = !1, n();
    }
  };
}
function de(e) {
  let t, o, n, i, a = (
    /*itemInfo*/
    (e[41] ? (
      /*$_*/
      e[16](
        /*itemInfo*/
        e[41].period.charAt(0).toLowerCase() + /*itemInfo*/
        e[41].period.substring(1)
      )
    ) : "") + ""
  ), r, u, c, k, v, g, b = (
    /*$_*/
    e[16]("expirationDate") + ""
  ), V, h, B, S, P;
  function j(f, L) {
    return (
      /*itemInfo*/
      f[41].amount !== 0 ? Xe : Ze
    );
  }
  let z = j(e), A = z(e);
  function Y(f, L) {
    return (
      /*itemInfo*/
      f[41].expiryDate ? $e : xe
    );
  }
  let C = Y(e), N = C(e);
  function H(f, L) {
    if (L[0] & /*limitsdata, $_*/
    65537 && (S = null), S == null && (S = /*itemInfo*/
    f[41].amount !== /*$_*/
    f[16]("noLimit") && /*itemInfo*/
    f[41].amount !== "No limit" && !/*itemInfo*/
    f[41].isModified), S)
      return ii;
    if (
      /*itemInfo*/
      f[41].amount != "No limit" && /*itemInfo*/
      f[41].isModified
    )
      return ei;
  }
  let R = H(e, [-1, -1]), D = R && R(e);
  return {
    c() {
      t = p("div"), o = p("div"), n = p("div"), i = p("div"), r = W(a), u = E(), c = p("div"), A.c(), k = E(), v = p("div"), g = p("div"), V = W(b), h = E(), N.c(), B = E(), D && D.c(), P = E(), y(i, "class", "InfoCardRowTitle"), y(c, "class", "InfoCardRowValue"), y(n, "class", "InfoCardRow InfoMainRow"), y(g, "class", "InfoCardRowTitle"), y(v, "class", "InfoCardRow"), y(o, "class", "InfoCardRowContainer"), y(t, "class", "InfoCardBox InfoCardMultipleItems");
    },
    m(f, L) {
      T(f, t, L), l(t, o), l(o, n), l(n, i), l(i, r), l(n, u), l(n, c), A.m(c, null), l(o, k), l(o, v), l(v, g), l(g, V), l(v, h), N.m(v, null), l(t, B), D && D.m(t, null), l(t, P);
    },
    p(f, L) {
      L[0] & /*limitsdata, $_*/
      65537 && a !== (a = /*itemInfo*/
      (f[41] ? (
        /*$_*/
        f[16](
          /*itemInfo*/
          f[41].period.charAt(0).toLowerCase() + /*itemInfo*/
          f[41].period.substring(1)
        )
      ) : "") + "") && F(r, a), z === (z = j(f)) && A ? A.p(f, L) : (A.d(1), A = z(f), A && (A.c(), A.m(c, null))), L[0] & /*$_*/
      65536 && b !== (b = /*$_*/
      f[16]("expirationDate") + "") && F(V, b), C === (C = Y(f)) && N ? N.p(f, L) : (N.d(1), N = C(f), N && (N.c(), N.m(v, null))), R === (R = H(f, L)) && D ? D.p(f, L) : (D && D.d(1), D = R && R(f), D && (D.c(), D.m(t, P)));
    },
    d(f) {
      f && M(t), A.d(), N.d(), D && D.d();
    }
  };
}
function ue(e) {
  let t, o = (
    /*$_*/
    e[16]("removeLimits") + ""
  ), n, i, a;
  return {
    c() {
      t = p("button"), n = W(o), y(t, "class", "InfoCardRemoveButton");
    },
    m(r, u) {
      T(r, t, u), l(t, n), i || (a = G(
        t,
        "click",
        /*click_handler_4*/
        e[28]
      ), i = !0);
    },
    p(r, u) {
      u[0] & /*$_*/
      65536 && o !== (o = /*$_*/
      r[16]("removeLimits") + "") && F(n, o);
    },
    d(r) {
      r && M(t), i = !1, a();
    }
  };
}
function pe(e) {
  let t, o, n;
  return {
    c() {
      t = p("player-account-modal"), o = p("player-account-gaming-limits-confirmation-modal"), s(o, "modaltext", n = /*removeAllLimits*/
      e[11] ? (
        /*removeAllLimitsText*/
        e[13]
      ) : (
        /*removeLimitText*/
        e[14]
      )), s(o, "modalsource", "infoCard"), s(
        o,
        "lang",
        /*lang*/
        e[3]
      ), s(
        o,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), s(
        o,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), s(
        o,
        "mbsource",
        /*mbsource*/
        e[6]
      ), s(
        t,
        "clientstyling",
        /*clientstyling*/
        e[4]
      ), s(
        t,
        "clientstylingurl",
        /*clientstylingurl*/
        e[5]
      ), s(
        t,
        "mbsource",
        /*mbsource*/
        e[6]
      );
    },
    m(i, a) {
      T(i, t, a), l(t, o);
    },
    p(i, a) {
      a[0] & /*removeAllLimits, removeAllLimitsText, removeLimitText*/
      26624 && n !== (n = /*removeAllLimits*/
      i[11] ? (
        /*removeAllLimitsText*/
        i[13]
      ) : (
        /*removeLimitText*/
        i[14]
      )) && s(o, "modaltext", n), a[0] & /*lang*/
      8 && s(
        o,
        "lang",
        /*lang*/
        i[3]
      ), a[0] & /*clientstyling*/
      16 && s(
        o,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), a[0] & /*clientstylingurl*/
      32 && s(
        o,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), a[0] & /*mbsource*/
      64 && s(
        o,
        "mbsource",
        /*mbsource*/
        i[6]
      ), a[0] & /*clientstyling*/
      16 && s(
        t,
        "clientstyling",
        /*clientstyling*/
        i[4]
      ), a[0] & /*clientstylingurl*/
      32 && s(
        t,
        "clientstylingurl",
        /*clientstylingurl*/
        i[5]
      ), a[0] & /*mbsource*/
      64 && s(
        t,
        "mbsource",
        /*mbsource*/
        i[6]
      );
    },
    d(i) {
      i && M(t);
    }
  };
}
function ti(e) {
  let t;
  function o(a, r) {
    return (
      /*isLoading*/
      a[8] ? Ye : Ve
    );
  }
  let n = o(e), i = n(e);
  return {
    c() {
      t = p("div"), i.c();
    },
    m(a, r) {
      T(a, t, r), i.m(t, null), e[29](t);
    },
    p(a, r) {
      n === (n = o(a)) && i ? i.p(a, r) : (i.d(1), i = n(a), i && (i.c(), i.m(t, null)));
    },
    i: $,
    o: $,
    d(a) {
      a && M(t), i.d(), e[29](null);
    }
  };
}
function oi(e, t, o) {
  let n;
  Re(e, qe, (m) => o(16, n = m));
  let { limitsdata: i = [] } = t, { limitname: a = "" } = t, { currency: r = "" } = t, { lang: u = "en" } = t, { clientstyling: c = "" } = t, { clientstylingurl: k = "" } = t, { mbsource: v } = t, { translationurl: g = "" } = t;
  const b = () => {
    fetch(g).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 V = !0, h, B = new Array(5).fill(0), S = ["Daily", "Weekly", "Monthly"], P = !0, j = !0, z = !1, A = window.navigator.userAgent, Y = Ee(A) !== "PC", C = "", N = "", H = !0, R = /* @__PURE__ */ new Date();
  const D = (m) => {
    window.postMessage(
      {
        type: "EditPlayerAccountGamingLimits",
        edit: m,
        name: a
      },
      window.location.href
    );
  }, f = (m) => {
    o(12, z = !0), o(11, j = !0), window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href), window.postMessage(
      {
        type: "DeleteLimitsItem",
        removeData: m,
        removeName: a
      },
      window.location.href
    );
  }, L = (m, I) => {
    o(12, z = !0), o(11, j = !1), window.postMessage({ type: "ShowLimitsConfirmationModal" }, window.location.href), window.postMessage(
      {
        type: "DeleteLimitsItem",
        removeData: m,
        removeName: I
      },
      window.location.href
    );
  }, d = (m) => {
    window.postMessage(
      {
        type: "ClosePlayerAccountGamingLimitsPopup"
      },
      window.location.href
    ), setTimeout(
      () => {
        o(9, B[m] = !0, B);
      },
      50
    );
  }, w = (m) => {
    let I = [...m];
    S.forEach((O, X) => {
      I.find((x) => x.period === O) || (I = _(I, X, O));
      const Q = I.find((x) => x.period === O);
      Q && Q.amount !== "No limit" && o(10, P = !1);
    }), m.splice(0, m.length, ...I), o(8, V = !1);
  }, _ = (m, I, O) => {
    const X = {
      period: O,
      amount: "No limit",
      currency: "",
      isModified: !1,
      expiryDate: ""
    }, Q = [...m];
    return Q.splice(I, 0, X), Q;
  }, q = (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, C = n("removeLimitsText", { values: { limit: m } })), o(14, N = n("removeLimitText", { values: { limit: m } }));
  }, Le = (m) => {
    m.forEach((I) => {
      I.isModified && o(15, H = !1);
    });
  }, ye = () => {
    He(u), ge(), Le(i), w(i), i.sort(q);
  }, te = (m) => {
    if (m.data)
      switch (m.data.type) {
        case "ClosePlayerAccountGamingLimitsPopup":
          o(9, B = new Array(5).fill(0));
          break;
        case "ModalClosed":
          window.postMessage({ type: "EnableScroll" }, window.location.href), o(12, z = !1), o(11, j = !1);
          break;
      }
  };
  Ne(() => (window.addEventListener("message", te, !1), () => {
    window.removeEventListener("message", te);
  }));
  const we = () => d(0), _e = (m) => d(m + 1), ve = (m) => d(m + 1), he = () => D(i), be = () => f(i);
  function Ce(m) {
    je[m ? "unshift" : "push"](() => {
      h = m, o(7, h);
    });
  }
  return e.$$set = (m) => {
    "limitsdata" in m && o(0, i = m.limitsdata), "limitname" in m && o(1, a = m.limitname), "currency" in m && o(2, r = m.currency), "lang" in m && o(3, u = m.lang), "clientstyling" in m && o(4, c = m.clientstyling), "clientstylingurl" in m && o(5, k = m.clientstylingurl), "mbsource" in m && o(6, v = m.mbsource), "translationurl" in m && o(23, g = m.translationurl);
  }, e.$$.update = () => {
    e.$$.dirty[0] & /*limitsdata, limitname, lang*/
    11 && i && a && u && ye(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    144 && c && h && Be(h, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    160 && k && h && Se(h, k), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
    192 && v && h && Fe(h, `${v}.Style`), e.$$.dirty[0] & /*translationurl*/
    8388608 && g && b();
  }, [
    i,
    a,
    r,
    u,
    c,
    k,
    v,
    h,
    V,
    B,
    P,
    j,
    z,
    C,
    N,
    H,
    n,
    Y,
    R,
    D,
    f,
    L,
    d,
    g,
    we,
    _e,
    ve,
    he,
    be,
    Ce
  ];
}
class ni extends De {
  constructor(t) {
    super(), Me(
      this,
      t,
      oi,
      ti,
      Te,
      {
        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();
  }
}
We(ni, { limitsdata: {}, limitname: {}, currency: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {} }, [], [], !0);
export {
  ni as default
};
