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