import { a as he, $ as Te, S as Re, i as _e, s as ye, f as R, b as ke, n as le, d as I, c as C, e as r, h as x, j as o, k as g, t as h, m as v, p as Ae, q as De, u as Se, a2 as de, l as Fe, w as Me, x as Ne, y as Le, z as ze, A as Pe, B as Ee } from "./GeneralLogout-Bk4SNbIF.js";
import { f as Oe } from "./PlayerAccountGamingLimitsGroupEdit-CLnu5AeT.js";
function me(t, e) {
  he(t, e);
}
function je(t) {
  Te.set(t);
}
const fe = {
  en: {
    date: "Granted date:",
    expirationDate: "Expiration Date",
    bonusName: "Bonus Name",
    bonusType: "Bonus Type",
    bonusAmount: "Bonus Amount",
    wageringAmount: "Wagering Progress (Rollover)",
    remainingBonus: "Current Bonus Balance",
    forfeitBonusButton: "Forfeit Bonus",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "closed",
    termsConditionsLink: "Terms and Conditions",
    termsConditionsTitle: "Terms and Conditions",
    wagering: "Wagering",
    tournamentTicket: "Tournament Ticket",
    tournament: "Tournament",
    bonusMoney: "Bonus Money",
    freeSpins: "Free Spins",
    freeBet: "Free Bet",
    cashBack: "CashBack",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  "zh-hk": {
    date: "授予日期：",
    expirationDate: "到期日",
    bonusName: "獎金名稱",
    bonusType: "獎金類型",
    bonusAmount: "獎金金額",
    wageringAmount: "投注進展",
    remainingBonus: "剩餘紅利金額",
    forfeitBonusButton: "沒收獎金",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "closed",
    termsConditionsLink: "條款及細則",
    termsConditionsTitle: "條款及細則",
    wagering: "投注挑戰",
    tournamentTicket: "錦標賽門票",
    tournament: "錦標賽",
    bonusMoney: "獎金",
    freeSpins: "免費旋轉",
    freeBet: "免費投注",
    cashBack: "現金回贈",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  fr: {
    date: "Date d'attribution:",
    expirationDate: "Date d'expiration",
    bonusName: "Nom du bonus",
    bonusType: "Type de bonus",
    bonusAmount: "Montant du bonus",
    wageringAmount: "Changer les progrès",
    remainingBonus: "Montant du bonus restant",
    forfeitBonusButton: "Supprimer le bonus",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "fermé",
    termsConditionsLink: "Termes et Conditions",
    termsConditionsTitle: "Termes et Conditions",
    wagering: "Défi de mise",
    tournamentTicket: "Billet de tournoi",
    tournament: "Tournoi",
    bonusMoney: "Argent bonus",
    freeSpins: "Tours gratuits",
    freeBet: "Paris gratuit",
    cashBack: "Remboursement",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  ro: {
    date: "Dată Alocare:",
    expirationDate: "Dată Expirare",
    bonusName: "Nume bonus",
    bonusType: "Tip de bonus",
    bonusAmount: "Sumă",
    wageringAmount: "Progresul de pariere",
    remainingBonus: "Bonus rămas",
    forfeitBonusButton: "Anulează bonusul",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "închis",
    termsConditionsLink: "Termeni si Conditii",
    termsConditionsTitle: "Termeni si Conditii",
    wagering: "Provocare de pariere",
    tournamentTicket: "Bilet de turneu",
    tournament: "Turneu",
    bonusMoney: "Bani bonus",
    freeSpins: "Rotiri gratuite",
    freeBet: "Pariu gratuit",
    cashBack: "Rambursare",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  es: {
    date: "Fecha de Canje",
    expirationDate: "Fecha de vencimiento",
    bonusName: "Nombre de Bono",
    bonusType: "Tipo de Bono",
    bonusAmount: "Monto de Bono",
    wageringAmount: "Progreso ( Rollover)",
    remainingBonus: "Saldo Actual de Bono",
    forfeitBonusButton: "cancelar bono",
    active: "Activo",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "cerrado",
    termsConditionsLink: "Términos y Condiciones",
    termsConditionsTitle: "Términos y Condiciones",
    wagering: "Desafío de apuestas",
    tournamentTicket: "Boleto de torneo",
    tournament: "Torneo",
    bonusMoney: "Dinero de bonificación",
    freeSpins: "Giros gratis",
    freeBet: "Apuesta gratis",
    cashBack: "Reembolso",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  pt: {
    date: "Data de atribuição do bônus:",
    expirationDate: "Data de validade",
    bonusName: "Nome do bônus",
    bonusType: "Tipo de bônus",
    bonusAmount: "Valor do bônus",
    wageringAmount: "Progresso de apostas",
    remainingBonus: "Valor do bônus restante",
    forfeitBonusButton: "Bônus de Perda",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "fechado",
    termsConditionsLink: "Termos e Condições",
    termsConditionsTitle: "Termos e Condições",
    wagering: "Desafio de apostas",
    tournamentTicket: "Bilhete de torneio",
    tournament: "Torneio",
    bonusMoney: "Dinheiro de bónus",
    freeSpins: "Rodadas grátis",
    freeBet: "Aposta grátis",
    cashBack: "Reembolso",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  hr: {
    date: "Datum:",
    expirationDate: "Datum isteka",
    bonusName: "Ime bonusa",
    bonusType: "Vrsta bonusa",
    bonusAmount: "Iznos bonusa",
    wageringAmount: "Odigravanje",
    remainingBonus: "Trenutno stanje bonusa",
    forfeitBonusButton: "Otkaži bonus",
    active: "aktivan",
    released: "razriješen",
    expired: "Istekao",
    forfeited: "otkazan",
    closed: "Zatvoren",
    termsConditionsLink: "Uvjeti i odredbe",
    termsConditionsTitle: "Uvjeti i odredbe",
    wagering: "Izazov odigravanja",
    tournamentTicket: "Turnir",
    tournament: "Turnir",
    bonusMoney: "Bonus novac",
    freeSpins: "Besplatne vrtnje",
    freeBet: "Besplatna oklada",
    cashBack: "CashBack",
    freeRound: "Besplatne runde",
    oddsBoost: "Odds Boost"
  },
  "pt-br": {
    date: "Data concedida:",
    expirationDate: "Data de validade",
    bonusName: "Nome do bônus:",
    bonusType: "Tipo de bônus:",
    bonusAmount: "Valor do bônus:",
    wageringAmount: "Progresso da Quantidade de Apostas (Rollover)",
    remainingBonus: "Saldo atual de bônus:",
    forfeitBonusButton: "Recusar bônus",
    active: "Ativo",
    released: "Lançado",
    expired: "Expirado",
    forfeited: "Perdido",
    closed: "fechado",
    termsConditionsLink: "Termos e Condições",
    termsConditionsTitle: "Termos e Condições",
    wagering: "Desafio de apostas",
    tournamentTicket: "Ingresso para torneio",
    tournament: "Torneio",
    bonusMoney: "Dinheiro bônus",
    freeSpins: "Rodadas grátis",
    freeBet: "Aposta grátis",
    cashBack: "Dinheiro de volta",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  "es-mx": {
    date: "Fecha concedida:",
    expirationDate: "Fecha de vencimiento",
    bonusName: "Nombre de bono:",
    bonusType: "Tipo de Bono:",
    bonusAmount: "valor de Bono:",
    wageringAmount: "Progreso de monto de apuestas (Rollover)",
    remainingBonus: "Saldo de bono actual:",
    forfeitBonusButton: "Declinar bono",
    active: "Activo",
    released: "Liberado",
    expired: "Expirado",
    forfeited: "Perdido",
    closed: "cerrado",
    termsConditionsLink: "Términos y Condiciones",
    termsConditionsTitle: "Términos y Condiciones",
    wagering: "Reto de apuestas",
    tournamentTicket: "Boleto de torneo",
    tournament: "Torneo",
    bonusMoney: "Dinero de bono",
    freeSpins: "Giros gratis",
    freeBet: "Apuesta gratis",
    cashBack: "Reembolso",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  tr: {
    date: "Verilen tarih:",
    expirationDate: "Son kullanma tarihi",
    bonusName: "Bonus Adı",
    bonusType: "Bonus Türü",
    bonusAmount: "Bonus Tutarı",
    wageringAmount: "Bahis İlerlemesi (Rollover)",
    remainingBonus: "Mevcut Bonus Bakiyesi",
    forfeitBonusButton: "Fesih Bonusu",
    active: "aktif",
    released: "piyasaya sürülmüş",
    expired: "günü geçmiş",
    forfeited: "kaybedilen",
    closed: "kapalı",
    termsConditionsLink: "Términos y Condiciones",
    termsConditionsTitle: "Términos y Condiciones",
    wagering: "Bahis mücadelesi",
    tournamentTicket: "Turnuva bileti",
    tournament: "Turnuva",
    bonusMoney: "Bonus para",
    freeSpins: "Bedava dönüş",
    freeBet: "Bedava bahis",
    cashBack: "Para iadesi",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  },
  "en-us": {
    date: "Granted date:",
    expirationDate: "Expiration Date",
    bonusName: "Bonus Name",
    bonusType: "Bonus Type",
    bonusAmount: "Bonus Amount",
    wageringAmount: "Wagering Progress (Rollover)",
    remainingBonus: "Current Bonus Balance",
    forfeitBonusButton: "Forfeit Bonus",
    active: "active",
    released: "released",
    expired: "expired",
    forfeited: "forfeited",
    closed: "closed",
    termsConditionsLink: "Terms and Conditions",
    termsConditionsTitle: "Terms and Conditions",
    wagering: "Wagering",
    tournamentTicket: "Tournament Ticket",
    tournament: "Tournament",
    bonusMoney: "Bonus Money",
    freeSpins: "Free Spins",
    freeBet: "Free Bet",
    cashBack: "CashBack",
    freeRound: "Free Round",
    oddsBoost: "Odds Boost"
  }
};
function Ie(t) {
  ke(t, "svelte-15xuos2", ".ButtonTermsAndConditions{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));text-decoration:underline;margin:10px 0;cursor:pointer}.BonusImage{width:100%;max-height:200px;border-radius:var(--emw--border-radius-small, 5px)}.BonusCard{background-color:var(--emw--color-white, #FFFFFF);padding:10px 20px 20px;border-radius:var(--emw--border-radius-large, 10px);box-shadow:0px 5px 12px 5px var(--emw--color-gray-100, #E6E6E6)}.BonusCardRow{display:flex;justify-content:space-between;align-items:center;padding:2px 10px;font-size:var(--emw--font-size-small, 14px)}.BonusCardRow .BonusCardRowTitle{color:var(--emw--color-typography-cotrast, #444444);font-weight:var(--emw--font-weight-bold, 700)}.BonusCardRow .BonusCardRowTitle span{font-weight:var(--emw--font-weigh-normal, 400);color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText{color:var(--emw--color-gray-300, #58586B)}.BonusCardRow .BonusCardRowText.BonusCardStatus{font-weight:var(--emw--font-weight-bold, 700);color:var(--emw--color-typography-cotrast, #444444)}.BonusCardRow .BonusCardRowText.StatusActive{color:var(--emw--color-valid, #48952a)}.BonusCardRow .BonusCardRowText.StatusExpired{color:var(--emw--color-error, #FD2839)}.BonusCardRow .BonusCardRowText.StatusForfeited{color:#fd8c2d}.BonusCardRow .BonusCardRowText.TextCapitalize{text-transform:capitalize}.BonusCardRow:nth-child(even){background-color:var(--emw--color-gray-50, #F9F8F8);border-radius:var(--emw--border-radius-small, 5px)}.DeleteBonus{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));cursor:pointer;border-radius:var(--emw--border-radius-small, 5px);width:50%;height:44px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;margin-top:10px}.DeleteBonus.DeleteBonusMobile{width:100%}.DeleteBonus:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCardRowRemovePadding{padding:0}");
}
function ce(t) {
  let e, n, a;
  return {
    c() {
      e = g("div"), n = g("img"), r(n, "class", "BonusImage"), de(n.src, a = /*termsandconditionsasset*/
      t[11]) || r(n, "src", a), r(
        n,
        "alt",
        /*termsandconditionsdescription*/
        t[12]
      ), r(e, "class", "BonusCardRow BonusCardRowRemovePadding");
    },
    m(u, f) {
      x(u, e, f), o(e, n);
    },
    p(u, f) {
      f[0] & /*termsandconditionsasset*/
      2048 && !de(n.src, a = /*termsandconditionsasset*/
      u[11]) && r(n, "src", a), f[0] & /*termsandconditionsdescription*/
      4096 && r(
        n,
        "alt",
        /*termsandconditionsdescription*/
        u[12]
      );
    },
    d(u) {
      u && I(e);
    }
  };
}
function be(t) {
  let e, n, a = (
    /*$_*/
    t[17]("expirationDate") + ""
  ), u, f, i, m = (
    /*getFormattedDate*/
    t[20](
      /*bonusexpirationdate*/
      t[1]
    ) + ""
  ), p, c;
  return {
    c() {
      e = g("div"), n = g("p"), u = h(a), f = v(), i = g("p"), p = h(m), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", c = `BonusCardRow ${/*$_*/
      t[17]("expirationDate")}`);
    },
    m(b, w) {
      x(b, e, w), o(e, n), o(n, u), o(e, f), o(e, i), o(i, p);
    },
    p(b, w) {
      w[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      b[17]("expirationDate") + "") && C(u, a), w[0] & /*bonusexpirationdate*/
      2 && m !== (m = /*getFormattedDate*/
      b[20](
        /*bonusexpirationdate*/
        b[1]
      ) + "") && C(p, m), w[0] & /*$_*/
      131072 && c !== (c = `BonusCardRow ${/*$_*/
      b[17]("expirationDate")}`) && r(e, "class", c);
    },
    d(b) {
      b && I(e);
    }
  };
}
function ge(t) {
  let e, n, a = (
    /*$_*/
    t[17]("bonusAmount") + ""
  ), u, f, i, m, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), u = h(a), f = v(), i = g("p"), m = h(
        /*bonusamount*/
        t[5]
      ), p = v(), b = h(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[17]("bonusAmount")}`);
    },
    m(d, B) {
      x(d, e, B), o(e, n), o(n, u), o(e, f), o(e, i), o(i, m), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      d[17]("bonusAmount") + "") && C(u, a), B[0] & /*bonusamount*/
      32 && C(
        m,
        /*bonusamount*/
        d[5]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_*/
      131072 && w !== (w = `BonusCardRow ${/*$_*/
      d[17]("bonusAmount")}`) && r(e, "class", w);
    },
    d(d) {
      d && I(e);
    }
  };
}
function Be(t) {
  let e, n, a = (
    /*$_*/
    t[17]("wageringAmount") + ""
  ), u, f, i, m, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), u = h(a), f = v(), i = g("p"), m = h(
        /*bonuswageringamount*/
        t[6]
      ), p = v(), b = h(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[17]("wageringAmount")} ${/*bonustype*/
      t[4]}`);
    },
    m(d, B) {
      x(d, e, B), o(e, n), o(n, u), o(e, f), o(e, i), o(i, m), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      d[17]("wageringAmount") + "") && C(u, a), B[0] & /*bonuswageringamount*/
      64 && C(
        m,
        /*bonuswageringamount*/
        d[6]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_, bonustype*/
      131088 && w !== (w = `BonusCardRow ${/*$_*/
      d[17]("wageringAmount")} ${/*bonustype*/
      d[4]}`) && r(e, "class", w);
    },
    d(d) {
      d && I(e);
    }
  };
}
function we(t) {
  let e, n, a = (
    /*$_*/
    t[17]("remainingBonus") + ""
  ), u, f, i, m, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), u = h(a), f = v(), i = g("p"), m = h(
        /*bonusremainingamount*/
        t[7]
      ), p = v(), b = h(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[17]("remainingBonus")}`);
    },
    m(d, B) {
      x(d, e, B), o(e, n), o(n, u), o(e, f), o(e, i), o(i, m), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      d[17]("remainingBonus") + "") && C(u, a), B[0] & /*bonusremainingamount*/
      128 && C(
        m,
        /*bonusremainingamount*/
        d[7]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_*/
      131072 && w !== (w = `BonusCardRow ${/*$_*/
      d[17]("remainingBonus")}`) && r(e, "class", w);
    },
    d(d) {
      d && I(e);
    }
  };
}
function pe(t) {
  let e, n, a = (
    /*$_*/
    t[17]("freeSpins") + ""
  ), u, f, i, m, p;
  return {
    c() {
      e = g("div"), n = g("p"), u = h(a), f = v(), i = g("p"), m = h(
        /*bonusfreespins*/
        t[9]
      ), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", p = `BonusCardRow ${/*$_*/
      t[17]("freeSpins")}`);
    },
    m(c, b) {
      x(c, e, b), o(e, n), o(n, u), o(e, f), o(e, i), o(i, m);
    },
    p(c, b) {
      b[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      c[17]("freeSpins") + "") && C(u, a), b[0] & /*bonusfreespins*/
      512 && C(
        m,
        /*bonusfreespins*/
        c[9]
      ), b[0] & /*$_*/
      131072 && p !== (p = `BonusCardRow ${/*$_*/
      c[17]("freeSpins")}`) && r(e, "class", p);
    },
    d(c) {
      c && I(e);
    }
  };
}
function ve(t) {
  let e, n, a = (
    /*$_*/
    t[17]("termsConditionsLink") + ""
  ), u, f;
  return {
    c() {
      e = g("div"), n = g("a"), u = h(a), r(n, "class", "ButtonTermsAndConditions"), r(
        n,
        "href",
        /*termsandconditionsurl*/
        t[10]
      ), r(n, "target", "_blank"), r(e, "class", f = `BonusCardRow ${/*$_*/
      t[17]("termsConditionsLink")}`);
    },
    m(i, m) {
      x(i, e, m), o(e, n), o(n, u);
    },
    p(i, m) {
      m[0] & /*$_*/
      131072 && a !== (a = /*$_*/
      i[17]("termsConditionsLink") + "") && C(u, a), m[0] & /*termsandconditionsurl*/
      1024 && r(
        n,
        "href",
        /*termsandconditionsurl*/
        i[10]
      ), m[0] & /*$_*/
      131072 && f !== (f = `BonusCardRow ${/*$_*/
      i[17]("termsConditionsLink")}`) && r(e, "class", f);
    },
    d(i) {
      i && I(e);
    }
  };
}
function Ce(t) {
  let e, n = (
    /*$_*/
    t[17]("forfeitBonusButton") + ""
  ), a, u, f;
  return {
    c() {
      e = g("button"), a = h(n), r(e, "class", "DeleteBonus " + /*isMobile*/
      (t[18] ? "DeleteBonusMobile" : ""));
    },
    m(i, m) {
      x(i, e, m), o(e, a), u || (f = Fe(
        e,
        "click",
        /*deleteBonus*/
        t[19]
      ), u = !0);
    },
    p(i, m) {
      m[0] & /*$_*/
      131072 && n !== (n = /*$_*/
      i[17]("forfeitBonusButton") + "") && C(a, n);
    },
    d(i) {
      i && I(e), u = !1, f();
    }
  };
}
function xe(t) {
  let e, n, a, u, f = (
    /*$_*/
    t[17]("date") + ""
  ), i, m, p, c = (
    /*getFormattedDate*/
    t[20](
      /*bonusdate*/
      t[0]
    ) + ""
  ), b, w, d, B = (
    /*$_*/
    t[17](`${/*bonusstatus*/
    t[2]}`) + ""
  ), Z, E, O, U, V, G, L, j, W = (
    /*$_*/
    t[17]("bonusName") + ""
  ), H, q, _, $, J, ee, z, K, X = (
    /*$_*/
    t[17]("bonusType") + ""
  ), ne, te, Y, s = (
    /*$_*/
    t[17](`${/*bonustype*/
    t[4]}`) + ""
  ), P, Q, re, oe, se, ie, ae, ue, y = (
    /*showBonusImage*/
    t[16] === !0 && ce(t)
  ), k = (
    /*bonusexpirationdate*/
    t[1] && be(t)
  ), A = (
    /*bonusamount*/
    t[5] && ge(t)
  ), D = (
    /*bonuswageringamount*/
    t[6] && Be(t)
  ), S = (
    /*bonusremainingamount*/
    t[7] && we(t)
  ), F = (
    /*bonusfreespins*/
    t[9] && pe(t)
  ), M = (
    /*showtermsandconditions*/
    t[15] && ve(t)
  ), N = (
    /*bonusstatus*/
    t[2] === "active" && Ce(t)
  );
  return {
    c() {
      e = g("div"), n = g("div"), a = g("div"), u = g("p"), i = h(f), m = v(), p = g("span"), b = h(c), w = v(), d = g("p"), Z = h(B), U = v(), y && y.c(), V = v(), k && k.c(), G = v(), L = g("div"), j = g("p"), H = h(W), q = v(), _ = g("p"), $ = h(
        /*bonusname*/
        t[3]
      ), ee = v(), z = g("div"), K = g("p"), ne = h(X), te = v(), Y = g("p"), P = h(s), re = v(), A && A.c(), oe = v(), D && D.c(), se = v(), S && S.c(), ie = v(), F && F.c(), ae = v(), M && M.c(), ue = v(), N && N.c(), r(u, "class", "BonusCardRowTitle"), r(d, "class", E = "BonusCardRowText BonusCardStatus TextCapitalize " + /*bonusstatus*/
      (t[2] === "active" || /*bonusstatus*/
      t[2] === "released" ? "StatusActive" : "") + " " + /*bonusstatus*/
      (t[2] === "expired" ? "StatusExpired" : "") + " " + /*bonusstatus*/
      (t[2] === "forfeited" ? "StatusForfeited" : "")), r(a, "class", O = `BonusCardRow Date ${/*$_*/
      t[17]("date")}`), r(j, "class", "BonusCardRowTitle"), r(_, "class", "BonusCardRowText"), r(L, "class", J = `BonusCardRow ${/*$_*/
      t[17]("bonusName")}`), r(K, "class", "BonusCardRowTitle"), r(Y, "class", "BonusCardRowText TextCapitalize"), r(z, "class", Q = `BonusCardRow ${/*$_*/
      t[17]("bonusType")}`), r(n, "class", "BonusCardInfo"), r(e, "class", "BonusCard");
    },
    m(l, T) {
      x(l, e, T), o(e, n), o(n, a), o(a, u), o(u, i), o(u, m), o(u, p), o(p, b), o(a, w), o(a, d), o(d, Z), o(n, U), y && y.m(n, null), o(n, V), k && k.m(n, null), o(n, G), o(n, L), o(L, j), o(j, H), o(L, q), o(L, _), o(_, $), o(n, ee), o(n, z), o(z, K), o(K, ne), o(z, te), o(z, Y), o(Y, P), o(n, re), A && A.m(n, null), o(n, oe), D && D.m(n, null), o(n, se), S && S.m(n, null), o(n, ie), F && F.m(n, null), o(n, ae), M && M.m(n, null), o(e, ue), N && N.m(e, null), t[28](e);
    },
    p(l, T) {
      T[0] & /*$_*/
      131072 && f !== (f = /*$_*/
      l[17]("date") + "") && C(i, f), T[0] & /*bonusdate*/
      1 && c !== (c = /*getFormattedDate*/
      l[20](
        /*bonusdate*/
        l[0]
      ) + "") && C(b, c), T[0] & /*$_, bonusstatus*/
      131076 && B !== (B = /*$_*/
      l[17](`${/*bonusstatus*/
      l[2]}`) + "") && C(Z, B), T[0] & /*bonusstatus*/
      4 && E !== (E = "BonusCardRowText BonusCardStatus TextCapitalize " + /*bonusstatus*/
      (l[2] === "active" || /*bonusstatus*/
      l[2] === "released" ? "StatusActive" : "") + " " + /*bonusstatus*/
      (l[2] === "expired" ? "StatusExpired" : "") + " " + /*bonusstatus*/
      (l[2] === "forfeited" ? "StatusForfeited" : "")) && r(d, "class", E), T[0] & /*$_*/
      131072 && O !== (O = `BonusCardRow Date ${/*$_*/
      l[17]("date")}`) && r(a, "class", O), /*showBonusImage*/
      l[16] === !0 ? y ? y.p(l, T) : (y = ce(l), y.c(), y.m(n, V)) : y && (y.d(1), y = null), /*bonusexpirationdate*/
      l[1] ? k ? k.p(l, T) : (k = be(l), k.c(), k.m(n, G)) : k && (k.d(1), k = null), T[0] & /*$_*/
      131072 && W !== (W = /*$_*/
      l[17]("bonusName") + "") && C(H, W), T[0] & /*bonusname*/
      8 && C(
        $,
        /*bonusname*/
        l[3]
      ), T[0] & /*$_*/
      131072 && J !== (J = `BonusCardRow ${/*$_*/
      l[17]("bonusName")}`) && r(L, "class", J), T[0] & /*$_*/
      131072 && X !== (X = /*$_*/
      l[17]("bonusType") + "") && C(ne, X), T[0] & /*$_, bonustype*/
      131088 && s !== (s = /*$_*/
      l[17](`${/*bonustype*/
      l[4]}`) + "") && C(P, s), T[0] & /*$_*/
      131072 && Q !== (Q = `BonusCardRow ${/*$_*/
      l[17]("bonusType")}`) && r(z, "class", Q), /*bonusamount*/
      l[5] ? A ? A.p(l, T) : (A = ge(l), A.c(), A.m(n, oe)) : A && (A.d(1), A = null), /*bonuswageringamount*/
      l[6] ? D ? D.p(l, T) : (D = Be(l), D.c(), D.m(n, se)) : D && (D.d(1), D = null), /*bonusremainingamount*/
      l[7] ? S ? S.p(l, T) : (S = we(l), S.c(), S.m(n, ie)) : S && (S.d(1), S = null), /*bonusfreespins*/
      l[9] ? F ? F.p(l, T) : (F = pe(l), F.c(), F.m(n, ae)) : F && (F.d(1), F = null), /*showtermsandconditions*/
      l[15] ? M ? M.p(l, T) : (M = ve(l), M.c(), M.m(n, null)) : M && (M.d(1), M = null), /*bonusstatus*/
      l[2] === "active" ? N ? N.p(l, T) : (N = Ce(l), N.c(), N.m(e, null)) : N && (N.d(1), N = null);
    },
    i: le,
    o: le,
    d(l) {
      l && I(e), y && y.d(), k && k.d(), A && A.d(), D && D.d(), S && S.d(), F && F.d(), M && M.d(), N && N.d(), t[28](null);
    }
  };
}
function Ve(t, e, n) {
  let a;
  Ae(t, Ee, (s) => n(17, a = s));
  let { bonuswalletid: u = "" } = e, { bonusdate: f = "" } = e, { bonusexpirationdate: i = "" } = e, { bonusstatus: m = "" } = e, { bonusname: p = "" } = e, { bonustype: c = "" } = e, { bonusamount: b = "" } = e, { bonuswageringamount: w = "" } = e, { bonusremainingamount: d = "" } = e, { bonuscurrency: B = "" } = e, { bonusfreespins: Z = "" } = e, { lang: E = "en" } = e, { clientstyling: O = "" } = e, { clientstylingurl: U = "" } = e, { mbsource: V } = e, { translationurl: G = "" } = e, { termsandconditionsurl: L = "" } = e, { termsandconditionsasset: j = "" } = e, { termsandconditionsdescription: W = "" } = e, { currencylocale: H = "" } = e, { dateformat: q = "" } = e, _, $ = window.navigator.userAgent, J = De($) !== "PC", ee = !1, z = !0;
  const K = () => {
    fetch(G).then((P) => P.json()).then((P) => {
      Object.keys(P).forEach((Q) => {
        me(Q, P[Q]);
      });
    }).catch((P) => {
      console.log(P);
    });
  };
  Object.keys(fe).forEach((s) => {
    me(s, fe[s]);
  });
  const X = () => {
    window.postMessage({ type: "DisableScroll" }, window.location.href), window.postMessage({ type: "DeleteActiveBonus", bonuswalletid: u }, window.location.href);
  }, ne = (s) => Oe(new Date(s), `${q || "dd/MM/yyyy"} h:mm a`), te = () => {
    je(E);
  };
  Se(() => () => {
  });
  function Y(s) {
    Me[s ? "unshift" : "push"](() => {
      _ = s, n(14, _);
    });
  }
  return t.$$set = (s) => {
    "bonuswalletid" in s && n(21, u = s.bonuswalletid), "bonusdate" in s && n(0, f = s.bonusdate), "bonusexpirationdate" in s && n(1, i = s.bonusexpirationdate), "bonusstatus" in s && n(2, m = s.bonusstatus), "bonusname" in s && n(3, p = s.bonusname), "bonustype" in s && n(4, c = s.bonustype), "bonusamount" in s && n(5, b = s.bonusamount), "bonuswageringamount" in s && n(6, w = s.bonuswageringamount), "bonusremainingamount" in s && n(7, d = s.bonusremainingamount), "bonuscurrency" in s && n(8, B = s.bonuscurrency), "bonusfreespins" in s && n(9, Z = s.bonusfreespins), "lang" in s && n(22, E = s.lang), "clientstyling" in s && n(23, O = s.clientstyling), "clientstylingurl" in s && n(24, U = s.clientstylingurl), "mbsource" in s && n(25, V = s.mbsource), "translationurl" in s && n(26, G = s.translationurl), "termsandconditionsurl" in s && n(10, L = s.termsandconditionsurl), "termsandconditionsasset" in s && n(11, j = s.termsandconditionsasset), "termsandconditionsdescription" in s && n(12, W = s.termsandconditionsdescription), "currencylocale" in s && n(13, H = s.currencylocale), "dateformat" in s && n(27, q = s.dateformat);
  }, t.$$.update = () => {
    t.$$.dirty[0] & /*lang*/
    4194304 && E && te(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    8404992 && O && _ && Ne(_, O), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    16793600 && U && _ && Le(_, U), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
    33570816 && V && _ && ze(_, `${V}.Style`), t.$$.dirty[0] & /*translationurl*/
    67108864 && G && K(), t.$$.dirty[0] & /*termsandconditionsasset*/
    2048 && n(16, z = !(j === null || j === "")), t.$$.dirty[0] & /*termsandconditionsurl*/
    1024 && n(15, ee = L !== null && L !== "");
  }, [
    f,
    i,
    m,
    p,
    c,
    b,
    w,
    d,
    B,
    Z,
    L,
    j,
    W,
    H,
    _,
    ee,
    z,
    a,
    J,
    X,
    ne,
    u,
    E,
    O,
    U,
    V,
    G,
    q,
    Y
  ];
}
class Ge extends Re {
  constructor(e) {
    super(), _e(
      this,
      e,
      Ve,
      xe,
      ye,
      {
        bonuswalletid: 21,
        bonusdate: 0,
        bonusexpirationdate: 1,
        bonusstatus: 2,
        bonusname: 3,
        bonustype: 4,
        bonusamount: 5,
        bonuswageringamount: 6,
        bonusremainingamount: 7,
        bonuscurrency: 8,
        bonusfreespins: 9,
        lang: 22,
        clientstyling: 23,
        clientstylingurl: 24,
        mbsource: 25,
        translationurl: 26,
        termsandconditionsurl: 10,
        termsandconditionsasset: 11,
        termsandconditionsdescription: 12,
        currencylocale: 13,
        dateformat: 27
      },
      Ie,
      [-1, -1]
    );
  }
  get bonuswalletid() {
    return this.$$.ctx[21];
  }
  set bonuswalletid(e) {
    this.$$set({ bonuswalletid: e }), R();
  }
  get bonusdate() {
    return this.$$.ctx[0];
  }
  set bonusdate(e) {
    this.$$set({ bonusdate: e }), R();
  }
  get bonusexpirationdate() {
    return this.$$.ctx[1];
  }
  set bonusexpirationdate(e) {
    this.$$set({ bonusexpirationdate: e }), R();
  }
  get bonusstatus() {
    return this.$$.ctx[2];
  }
  set bonusstatus(e) {
    this.$$set({ bonusstatus: e }), R();
  }
  get bonusname() {
    return this.$$.ctx[3];
  }
  set bonusname(e) {
    this.$$set({ bonusname: e }), R();
  }
  get bonustype() {
    return this.$$.ctx[4];
  }
  set bonustype(e) {
    this.$$set({ bonustype: e }), R();
  }
  get bonusamount() {
    return this.$$.ctx[5];
  }
  set bonusamount(e) {
    this.$$set({ bonusamount: e }), R();
  }
  get bonuswageringamount() {
    return this.$$.ctx[6];
  }
  set bonuswageringamount(e) {
    this.$$set({ bonuswageringamount: e }), R();
  }
  get bonusremainingamount() {
    return this.$$.ctx[7];
  }
  set bonusremainingamount(e) {
    this.$$set({ bonusremainingamount: e }), R();
  }
  get bonuscurrency() {
    return this.$$.ctx[8];
  }
  set bonuscurrency(e) {
    this.$$set({ bonuscurrency: e }), R();
  }
  get bonusfreespins() {
    return this.$$.ctx[9];
  }
  set bonusfreespins(e) {
    this.$$set({ bonusfreespins: e }), R();
  }
  get lang() {
    return this.$$.ctx[22];
  }
  set lang(e) {
    this.$$set({ lang: e }), R();
  }
  get clientstyling() {
    return this.$$.ctx[23];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), R();
  }
  get clientstylingurl() {
    return this.$$.ctx[24];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), R();
  }
  get mbsource() {
    return this.$$.ctx[25];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), R();
  }
  get translationurl() {
    return this.$$.ctx[26];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), R();
  }
  get termsandconditionsurl() {
    return this.$$.ctx[10];
  }
  set termsandconditionsurl(e) {
    this.$$set({ termsandconditionsurl: e }), R();
  }
  get termsandconditionsasset() {
    return this.$$.ctx[11];
  }
  set termsandconditionsasset(e) {
    this.$$set({ termsandconditionsasset: e }), R();
  }
  get termsandconditionsdescription() {
    return this.$$.ctx[12];
  }
  set termsandconditionsdescription(e) {
    this.$$set({ termsandconditionsdescription: e }), R();
  }
  get currencylocale() {
    return this.$$.ctx[13];
  }
  set currencylocale(e) {
    this.$$set({ currencylocale: e }), R();
  }
  get dateformat() {
    return this.$$.ctx[27];
  }
  set dateformat(e) {
    this.$$set({ dateformat: e }), R();
  }
}
Pe(Ge, { bonuswalletid: {}, bonusdate: {}, bonusexpirationdate: {}, bonusstatus: {}, bonusname: {}, bonustype: {}, bonusamount: {}, bonuswageringamount: {}, bonusremainingamount: {}, bonuscurrency: {}, bonusfreespins: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, termsandconditionsurl: {}, termsandconditionsasset: {}, termsandconditionsdescription: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
export {
  Ge as default
};
