import { a as Ce, $ as Te, S as Re, i as ye, s as _e, f as v, b as ke, n as le, d as x, c as C, e as r, h as V, j as o, k as g, t as T, m as h, 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-CCZ-t51N.js";
import { f as Oe } from "./PlayerAccountGamingLimitsGroupEdit-D4mY92Oz.js";
function me(t, e) {
  Ce(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(l, m) {
      V(l, e, m), o(e, n);
    },
    p(l, m) {
      m[0] & /*termsandconditionsasset*/
      2048 && !de(n.src, a = /*termsandconditionsasset*/
      l[11]) && r(n, "src", a), m[0] & /*termsandconditionsdescription*/
      4096 && r(
        n,
        "alt",
        /*termsandconditionsdescription*/
        l[12]
      );
    },
    d(l) {
      l && x(e);
    }
  };
}
function be(t) {
  let e, n, a = (
    /*$_*/
    t[18]("expirationDate") + ""
  ), l, m, i, f = (
    /*getFormattedDate*/
    t[21](
      /*bonusexpirationdate*/
      t[1]
    ) + ""
  ), p, c;
  return {
    c() {
      e = g("div"), n = g("p"), l = T(a), m = h(), i = g("p"), p = T(f), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", c = `BonusCardRow ${/*$_*/
      t[18]("expirationDate")}`);
    },
    m(b, w) {
      V(b, e, w), o(e, n), o(n, l), o(e, m), o(e, i), o(i, p);
    },
    p(b, w) {
      w[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      b[18]("expirationDate") + "") && C(l, a), w[0] & /*bonusexpirationdate*/
      2 && f !== (f = /*getFormattedDate*/
      b[21](
        /*bonusexpirationdate*/
        b[1]
      ) + "") && C(p, f), w[0] & /*$_*/
      262144 && c !== (c = `BonusCardRow ${/*$_*/
      b[18]("expirationDate")}`) && r(e, "class", c);
    },
    d(b) {
      b && x(e);
    }
  };
}
function ge(t) {
  let e, n, a = (
    /*$_*/
    t[18]("bonusAmount") + ""
  ), l, m, i, f, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), l = T(a), m = h(), i = g("p"), f = T(
        /*bonusamount*/
        t[5]
      ), p = h(), b = T(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[18]("bonusAmount")}`);
    },
    m(d, B) {
      V(d, e, B), o(e, n), o(n, l), o(e, m), o(e, i), o(i, f), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      d[18]("bonusAmount") + "") && C(l, a), B[0] & /*bonusamount*/
      32 && C(
        f,
        /*bonusamount*/
        d[5]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_*/
      262144 && w !== (w = `BonusCardRow ${/*$_*/
      d[18]("bonusAmount")}`) && r(e, "class", w);
    },
    d(d) {
      d && x(e);
    }
  };
}
function Be(t) {
  let e, n, a = (
    /*$_*/
    t[18]("wageringAmount") + ""
  ), l, m, i, f, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), l = T(a), m = h(), i = g("p"), f = T(
        /*bonuswageringamount*/
        t[6]
      ), p = h(), b = T(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[18]("wageringAmount")} ${/*bonustype*/
      t[4]}`);
    },
    m(d, B) {
      V(d, e, B), o(e, n), o(n, l), o(e, m), o(e, i), o(i, f), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      d[18]("wageringAmount") + "") && C(l, a), B[0] & /*bonuswageringamount*/
      64 && C(
        f,
        /*bonuswageringamount*/
        d[6]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_, bonustype*/
      262160 && w !== (w = `BonusCardRow ${/*$_*/
      d[18]("wageringAmount")} ${/*bonustype*/
      d[4]}`) && r(e, "class", w);
    },
    d(d) {
      d && x(e);
    }
  };
}
function we(t) {
  let e, n, a = (
    /*$_*/
    t[18]("remainingBonus") + ""
  ), l, m, i, f, p, c = (
    /*currencylocale*/
    (t[13] ? "" : (
      /*bonuscurrency*/
      t[8]
    )) + ""
  ), b, w;
  return {
    c() {
      e = g("div"), n = g("p"), l = T(a), m = h(), i = g("p"), f = T(
        /*bonusremainingamount*/
        t[7]
      ), p = h(), b = T(c), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", w = `BonusCardRow ${/*$_*/
      t[18]("remainingBonus")}`);
    },
    m(d, B) {
      V(d, e, B), o(e, n), o(n, l), o(e, m), o(e, i), o(i, f), o(i, p), o(i, b);
    },
    p(d, B) {
      B[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      d[18]("remainingBonus") + "") && C(l, a), B[0] & /*bonusremainingamount*/
      128 && C(
        f,
        /*bonusremainingamount*/
        d[7]
      ), B[0] & /*currencylocale, bonuscurrency*/
      8448 && c !== (c = /*currencylocale*/
      (d[13] ? "" : (
        /*bonuscurrency*/
        d[8]
      )) + "") && C(b, c), B[0] & /*$_*/
      262144 && w !== (w = `BonusCardRow ${/*$_*/
      d[18]("remainingBonus")}`) && r(e, "class", w);
    },
    d(d) {
      d && x(e);
    }
  };
}
function pe(t) {
  let e, n, a = (
    /*$_*/
    t[18]("freeSpins") + ""
  ), l, m, i, f, p;
  return {
    c() {
      e = g("div"), n = g("p"), l = T(a), m = h(), i = g("p"), f = T(
        /*bonusfreespins*/
        t[9]
      ), r(n, "class", "BonusCardRowTitle"), r(i, "class", "BonusCardRowText"), r(e, "class", p = `BonusCardRow ${/*$_*/
      t[18]("freeSpins")}`);
    },
    m(c, b) {
      V(c, e, b), o(e, n), o(n, l), o(e, m), o(e, i), o(i, f);
    },
    p(c, b) {
      b[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      c[18]("freeSpins") + "") && C(l, a), b[0] & /*bonusfreespins*/
      512 && C(
        f,
        /*bonusfreespins*/
        c[9]
      ), b[0] & /*$_*/
      262144 && p !== (p = `BonusCardRow ${/*$_*/
      c[18]("freeSpins")}`) && r(e, "class", p);
    },
    d(c) {
      c && x(e);
    }
  };
}
function ve(t) {
  let e, n, a = (
    /*$_*/
    t[18]("termsConditionsLink") + ""
  ), l, m;
  return {
    c() {
      e = g("div"), n = g("a"), l = T(a), r(n, "class", "ButtonTermsAndConditions"), r(
        n,
        "href",
        /*termsandconditionsurl*/
        t[10]
      ), r(n, "target", "_blank"), r(e, "class", m = `BonusCardRow ${/*$_*/
      t[18]("termsConditionsLink")}`);
    },
    m(i, f) {
      V(i, e, f), o(e, n), o(n, l);
    },
    p(i, f) {
      f[0] & /*$_*/
      262144 && a !== (a = /*$_*/
      i[18]("termsConditionsLink") + "") && C(l, a), f[0] & /*termsandconditionsurl*/
      1024 && r(
        n,
        "href",
        /*termsandconditionsurl*/
        i[10]
      ), f[0] & /*$_*/
      262144 && m !== (m = `BonusCardRow ${/*$_*/
      i[18]("termsConditionsLink")}`) && r(e, "class", m);
    },
    d(i) {
      i && x(e);
    }
  };
}
function he(t) {
  let e, n = (
    /*$_*/
    t[18]("forfeitBonusButton") + ""
  ), a, l, m;
  return {
    c() {
      e = g("button"), a = T(n), r(e, "class", "DeleteBonus " + /*isMobile*/
      (t[19] ? "DeleteBonusMobile" : ""));
    },
    m(i, f) {
      V(i, e, f), o(e, a), l || (m = Fe(
        e,
        "click",
        /*deleteBonus*/
        t[20]
      ), l = !0);
    },
    p(i, f) {
      f[0] & /*$_*/
      262144 && n !== (n = /*$_*/
      i[18]("forfeitBonusButton") + "") && C(a, n);
    },
    d(i) {
      i && x(e), l = !1, m();
    }
  };
}
function xe(t) {
  let e, n, a, l, m = (
    /*$_*/
    t[18]("date") + ""
  ), i, f, p, c = (
    /*getFormattedDate*/
    t[21](
      /*bonusdate*/
      t[0]
    ) + ""
  ), b, w, d, B = (
    /*$_*/
    t[18](`${/*bonusstatus*/
    t[2]}`) + ""
  ), J, U, z, q, W, G, L, P, E = (
    /*$_*/
    t[18]("bonusName") + ""
  ), K, ee, O, H, y, oe, j, Q, Z = (
    /*$_*/
    t[18]("bonusType") + ""
  ), ne, se, X, Y = (
    /*$_*/
    t[18](`${/*bonustype*/
    t[4]}`) + ""
  ), te, s, I, $, ie, ae, re, ue, _ = (
    /*showBonusImage*/
    t[16] === !0 && ce(t)
  ), k = (
    /*bonusexpirationdate*/
    t[1] && be(t)
  ), A = (
    /*bonusamount*/
    t[5] && ge(t)
  ), D = (
    /*bonuswageringamount*/
    t[6] && !/*isHiddenWageringBonus*/
    t[17] && 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" && he(t)
  );
  return {
    c() {
      e = g("div"), n = g("div"), a = g("div"), l = g("p"), i = T(m), f = h(), p = g("span"), b = T(c), w = h(), d = g("p"), J = T(B), q = h(), _ && _.c(), W = h(), k && k.c(), G = h(), L = g("div"), P = g("p"), K = T(E), ee = h(), O = g("p"), H = T(
        /*bonusname*/
        t[3]
      ), oe = h(), j = g("div"), Q = g("p"), ne = T(Z), se = h(), X = g("p"), te = T(Y), I = h(), A && A.c(), $ = h(), D && D.c(), ie = h(), S && S.c(), ae = h(), F && F.c(), re = h(), M && M.c(), ue = h(), N && N.c(), r(l, "class", "BonusCardRowTitle"), r(d, "class", U = "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", z = `BonusCardRow Date ${/*$_*/
      t[18]("date")}`), r(P, "class", "BonusCardRowTitle"), r(O, "class", "BonusCardRowText"), r(L, "class", y = `BonusCardRow ${/*$_*/
      t[18]("bonusName")}`), r(Q, "class", "BonusCardRowTitle"), r(X, "class", "BonusCardRowText TextCapitalize"), r(j, "class", s = `BonusCardRow ${/*$_*/
      t[18]("bonusType")}`), r(n, "class", "BonusCardInfo"), r(e, "class", "BonusCard");
    },
    m(u, R) {
      V(u, e, R), o(e, n), o(n, a), o(a, l), o(l, i), o(l, f), o(l, p), o(p, b), o(a, w), o(a, d), o(d, J), o(n, q), _ && _.m(n, null), o(n, W), k && k.m(n, null), o(n, G), o(n, L), o(L, P), o(P, K), o(L, ee), o(L, O), o(O, H), o(n, oe), o(n, j), o(j, Q), o(Q, ne), o(j, se), o(j, X), o(X, te), o(n, I), A && A.m(n, null), o(n, $), D && D.m(n, null), o(n, ie), S && S.m(n, null), o(n, ae), F && F.m(n, null), o(n, re), M && M.m(n, null), o(e, ue), N && N.m(e, null), t[30](e);
    },
    p(u, R) {
      R[0] & /*$_*/
      262144 && m !== (m = /*$_*/
      u[18]("date") + "") && C(i, m), R[0] & /*bonusdate*/
      1 && c !== (c = /*getFormattedDate*/
      u[21](
        /*bonusdate*/
        u[0]
      ) + "") && C(b, c), R[0] & /*$_, bonusstatus*/
      262148 && B !== (B = /*$_*/
      u[18](`${/*bonusstatus*/
      u[2]}`) + "") && C(J, B), R[0] & /*bonusstatus*/
      4 && U !== (U = "BonusCardRowText BonusCardStatus TextCapitalize " + /*bonusstatus*/
      (u[2] === "active" || /*bonusstatus*/
      u[2] === "released" ? "StatusActive" : "") + " " + /*bonusstatus*/
      (u[2] === "expired" ? "StatusExpired" : "") + " " + /*bonusstatus*/
      (u[2] === "forfeited" ? "StatusForfeited" : "")) && r(d, "class", U), R[0] & /*$_*/
      262144 && z !== (z = `BonusCardRow Date ${/*$_*/
      u[18]("date")}`) && r(a, "class", z), /*showBonusImage*/
      u[16] === !0 ? _ ? _.p(u, R) : (_ = ce(u), _.c(), _.m(n, W)) : _ && (_.d(1), _ = null), /*bonusexpirationdate*/
      u[1] ? k ? k.p(u, R) : (k = be(u), k.c(), k.m(n, G)) : k && (k.d(1), k = null), R[0] & /*$_*/
      262144 && E !== (E = /*$_*/
      u[18]("bonusName") + "") && C(K, E), R[0] & /*bonusname*/
      8 && C(
        H,
        /*bonusname*/
        u[3]
      ), R[0] & /*$_*/
      262144 && y !== (y = `BonusCardRow ${/*$_*/
      u[18]("bonusName")}`) && r(L, "class", y), R[0] & /*$_*/
      262144 && Z !== (Z = /*$_*/
      u[18]("bonusType") + "") && C(ne, Z), R[0] & /*$_, bonustype*/
      262160 && Y !== (Y = /*$_*/
      u[18](`${/*bonustype*/
      u[4]}`) + "") && C(te, Y), R[0] & /*$_*/
      262144 && s !== (s = `BonusCardRow ${/*$_*/
      u[18]("bonusType")}`) && r(j, "class", s), /*bonusamount*/
      u[5] ? A ? A.p(u, R) : (A = ge(u), A.c(), A.m(n, $)) : A && (A.d(1), A = null), /*bonuswageringamount*/
      u[6] && !/*isHiddenWageringBonus*/
      u[17] ? D ? D.p(u, R) : (D = Be(u), D.c(), D.m(n, ie)) : D && (D.d(1), D = null), /*bonusremainingamount*/
      u[7] ? S ? S.p(u, R) : (S = we(u), S.c(), S.m(n, ae)) : S && (S.d(1), S = null), /*bonusfreespins*/
      u[9] ? F ? F.p(u, R) : (F = pe(u), F.c(), F.m(n, re)) : F && (F.d(1), F = null), /*showtermsandconditions*/
      u[15] ? M ? M.p(u, R) : (M = ve(u), M.c(), M.m(n, null)) : M && (M.d(1), M = null), /*bonusstatus*/
      u[2] === "active" ? N ? N.p(u, R) : (N = he(u), N.c(), N.m(e, null)) : N && (N.d(1), N = null);
    },
    i: le,
    o: le,
    d(u) {
      u && x(e), _ && _.d(), k && k.d(), A && A.d(), D && D.d(), S && S.d(), F && F.d(), M && M.d(), N && N.d(), t[30](null);
    }
  };
}
function Ve(t, e, n) {
  let a, l;
  Ae(t, Ee, (s) => n(18, l = s));
  let { bonuswalletid: m = "" } = e, { bonusdate: i = "" } = e, { bonusexpirationdate: f = "" } = e, { bonusstatus: p = "" } = e, { bonusname: c = "" } = e, { bonustype: b = "" } = e, { bonusamount: w = "" } = e, { bonuswageringamount: d = "" } = e, { bonusremainingamount: B = "" } = e, { bonuscurrency: J = "" } = e, { bonusfreespins: U = "" } = e, { lang: z = "en" } = e, { clientstyling: q = "" } = e, { clientstylingurl: W = "" } = e, { mbsource: G } = e, { translationurl: L = "" } = e, { termsandconditionsurl: P = "" } = e, { termsandconditionsasset: E = "" } = e, { termsandconditionsdescription: K = "" } = e, { currencylocale: ee = "" } = e, { dateformat: O = "" } = e, { ishiddenwageringbonus: H = "false" } = e, y, oe = window.navigator.userAgent, j = De(oe) !== "PC", Q = !1, Z = !0;
  const ne = () => {
    fetch(L).then((I) => I.json()).then((I) => {
      Object.keys(I).forEach(($) => {
        me($, I[$]);
      });
    }).catch((I) => {
      console.log(I);
    });
  };
  Object.keys(fe).forEach((s) => {
    me(s, fe[s]);
  });
  const se = () => {
    window.postMessage({ type: "DisableScroll" }, window.location.href), window.postMessage({ type: "DeleteActiveBonus", bonuswalletid: m }, window.location.href);
  }, X = (s) => Oe(new Date(s), `${O || "dd/MM/yyyy"} h:mm a`), Y = () => {
    je(z);
  };
  Se(() => () => {
  });
  function te(s) {
    Me[s ? "unshift" : "push"](() => {
      y = s, n(14, y);
    });
  }
  return t.$$set = (s) => {
    "bonuswalletid" in s && n(22, m = s.bonuswalletid), "bonusdate" in s && n(0, i = s.bonusdate), "bonusexpirationdate" in s && n(1, f = s.bonusexpirationdate), "bonusstatus" in s && n(2, p = s.bonusstatus), "bonusname" in s && n(3, c = s.bonusname), "bonustype" in s && n(4, b = s.bonustype), "bonusamount" in s && n(5, w = s.bonusamount), "bonuswageringamount" in s && n(6, d = s.bonuswageringamount), "bonusremainingamount" in s && n(7, B = s.bonusremainingamount), "bonuscurrency" in s && n(8, J = s.bonuscurrency), "bonusfreespins" in s && n(9, U = s.bonusfreespins), "lang" in s && n(23, z = s.lang), "clientstyling" in s && n(24, q = s.clientstyling), "clientstylingurl" in s && n(25, W = s.clientstylingurl), "mbsource" in s && n(26, G = s.mbsource), "translationurl" in s && n(27, L = s.translationurl), "termsandconditionsurl" in s && n(10, P = s.termsandconditionsurl), "termsandconditionsasset" in s && n(11, E = s.termsandconditionsasset), "termsandconditionsdescription" in s && n(12, K = s.termsandconditionsdescription), "currencylocale" in s && n(13, ee = s.currencylocale), "dateformat" in s && n(28, O = s.dateformat), "ishiddenwageringbonus" in s && n(29, H = s.ishiddenwageringbonus);
  }, t.$$.update = () => {
    t.$$.dirty[0] & /*lang*/
    8388608 && z && Y(), t.$$.dirty[0] & /*ishiddenwageringbonus*/
    536870912 && n(17, a = H === "true"), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    16793600 && q && y && Ne(y, q), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    33570816 && W && y && Le(y, W), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
    67125248 && G && y && ze(y, `${G}.Style`), t.$$.dirty[0] & /*translationurl*/
    134217728 && L && ne(), t.$$.dirty[0] & /*termsandconditionsasset*/
    2048 && n(16, Z = !(E === null || E === "")), t.$$.dirty[0] & /*termsandconditionsurl*/
    1024 && n(15, Q = P !== null && P !== "");
  }, [
    i,
    f,
    p,
    c,
    b,
    w,
    d,
    B,
    J,
    U,
    P,
    E,
    K,
    ee,
    y,
    Q,
    Z,
    a,
    l,
    j,
    se,
    X,
    m,
    z,
    q,
    W,
    G,
    L,
    O,
    H,
    te
  ];
}
class We extends Re {
  constructor(e) {
    super(), ye(
      this,
      e,
      Ve,
      xe,
      _e,
      {
        bonuswalletid: 22,
        bonusdate: 0,
        bonusexpirationdate: 1,
        bonusstatus: 2,
        bonusname: 3,
        bonustype: 4,
        bonusamount: 5,
        bonuswageringamount: 6,
        bonusremainingamount: 7,
        bonuscurrency: 8,
        bonusfreespins: 9,
        lang: 23,
        clientstyling: 24,
        clientstylingurl: 25,
        mbsource: 26,
        translationurl: 27,
        termsandconditionsurl: 10,
        termsandconditionsasset: 11,
        termsandconditionsdescription: 12,
        currencylocale: 13,
        dateformat: 28,
        ishiddenwageringbonus: 29
      },
      Ie,
      [-1, -1]
    );
  }
  get bonuswalletid() {
    return this.$$.ctx[22];
  }
  set bonuswalletid(e) {
    this.$$set({ bonuswalletid: e }), v();
  }
  get bonusdate() {
    return this.$$.ctx[0];
  }
  set bonusdate(e) {
    this.$$set({ bonusdate: e }), v();
  }
  get bonusexpirationdate() {
    return this.$$.ctx[1];
  }
  set bonusexpirationdate(e) {
    this.$$set({ bonusexpirationdate: e }), v();
  }
  get bonusstatus() {
    return this.$$.ctx[2];
  }
  set bonusstatus(e) {
    this.$$set({ bonusstatus: e }), v();
  }
  get bonusname() {
    return this.$$.ctx[3];
  }
  set bonusname(e) {
    this.$$set({ bonusname: e }), v();
  }
  get bonustype() {
    return this.$$.ctx[4];
  }
  set bonustype(e) {
    this.$$set({ bonustype: e }), v();
  }
  get bonusamount() {
    return this.$$.ctx[5];
  }
  set bonusamount(e) {
    this.$$set({ bonusamount: e }), v();
  }
  get bonuswageringamount() {
    return this.$$.ctx[6];
  }
  set bonuswageringamount(e) {
    this.$$set({ bonuswageringamount: e }), v();
  }
  get bonusremainingamount() {
    return this.$$.ctx[7];
  }
  set bonusremainingamount(e) {
    this.$$set({ bonusremainingamount: e }), v();
  }
  get bonuscurrency() {
    return this.$$.ctx[8];
  }
  set bonuscurrency(e) {
    this.$$set({ bonuscurrency: e }), v();
  }
  get bonusfreespins() {
    return this.$$.ctx[9];
  }
  set bonusfreespins(e) {
    this.$$set({ bonusfreespins: e }), v();
  }
  get lang() {
    return this.$$.ctx[23];
  }
  set lang(e) {
    this.$$set({ lang: e }), v();
  }
  get clientstyling() {
    return this.$$.ctx[24];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), v();
  }
  get clientstylingurl() {
    return this.$$.ctx[25];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), v();
  }
  get mbsource() {
    return this.$$.ctx[26];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), v();
  }
  get translationurl() {
    return this.$$.ctx[27];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), v();
  }
  get termsandconditionsurl() {
    return this.$$.ctx[10];
  }
  set termsandconditionsurl(e) {
    this.$$set({ termsandconditionsurl: e }), v();
  }
  get termsandconditionsasset() {
    return this.$$.ctx[11];
  }
  set termsandconditionsasset(e) {
    this.$$set({ termsandconditionsasset: e }), v();
  }
  get termsandconditionsdescription() {
    return this.$$.ctx[12];
  }
  set termsandconditionsdescription(e) {
    this.$$set({ termsandconditionsdescription: e }), v();
  }
  get currencylocale() {
    return this.$$.ctx[13];
  }
  set currencylocale(e) {
    this.$$set({ currencylocale: e }), v();
  }
  get dateformat() {
    return this.$$.ctx[28];
  }
  set dateformat(e) {
    this.$$set({ dateformat: e }), v();
  }
  get ishiddenwageringbonus() {
    return this.$$.ctx[29];
  }
  set ishiddenwageringbonus(e) {
    this.$$set({ ishiddenwageringbonus: e }), v();
  }
}
Pe(We, { bonuswalletid: {}, bonusdate: {}, bonusexpirationdate: {}, bonusstatus: {}, bonusname: {}, bonustype: {}, bonusamount: {}, bonuswageringamount: {}, bonusremainingamount: {}, bonuscurrency: {}, bonusfreespins: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, termsandconditionsurl: {}, termsandconditionsasset: {}, termsandconditionsdescription: {}, currencylocale: {}, dateformat: {}, ishiddenwageringbonus: {} }, [], [], !0);
export {
  We as default
};
