import { a as Le, $ as Ne, S as Re, i as je, s as De, f as q, b as Oe, n as oe, d as N, w as se, u as J, K as le, e as R, p, x as V, g as M, q as T, v as L, t as B, h as qe, j as Ge, o as Ue, y as Q, k as Ve, L as te, l as ee, m as ve, r as s, B as He, C as Xe, D as Ye, c as Je, A as Ke } from "./PlayerAccountController-OnOGVd86.js";
function ue(n, e) {
  Le(n, e);
}
function Ze(n) {
  Ne.set(n);
}
const de = {
  en: {
    titleBonuses: "Active Bonuses",
    bonusCode: "Do you have a bonus code?",
    getBonus: "Get Bonus",
    invalidBonusCode: "The bonus code provided is invalid.",
    noActiveBonuses: "You have no active bonuses at the moment.",
    forfeitBonus: "Are you sure want to forfeit bonus?",
    forfeitBonusConfirm: "Confirm",
    forfeitBonusCancel: "Cancel",
    bonusClaimSuccessMessage: "Bonus claimed!",
    bonusClaimErrorMessage: "Invalid bonus"
  },
  "zh-hk": {
    titleBonuses: "活躍獎金",
    bonusCode: "你有獎金代碼嗎？",
    getBonus: "獲得獎金",
    invalidBonusCode: "提供的紅利代碼無效。",
    noActiveBonuses: "您目前沒有有效的獎金。",
    forfeitBonus: "您確定要放棄獎金及其獎金嗎？",
    forfeitBonusConfirm: "確認",
    forfeitBonusCancel: "取消",
    bonusClaimSuccessMessage: "獎金要求！",
    bonusClaimErrorMessage: "無效獎金"
  },
  fr: {
    titleBonuses: "Bonus actifs",
    bonusCode: "Avez-vous un code bonus?",
    getBonus: "Obtenir un bonus",
    invalidBonusCode: "Le code bonus fourni n'est pas valide.",
    noActiveBonuses: "Vous n'avez pas de bonus actifs pour le moment.",
    forfeitBonus: "Etes-vous sûr de vouloir supprimer le bonus et ses gains?",
    forfeitBonusConfirm: "Confirmer",
    forfeitBonusCancel: "Annuler",
    bonusClaimSuccessMessage: "Bonus réclamé!",
    bonusClaimErrorMessage: "Bonus invalide"
  },
  ro: {
    titleBonuses: "Bonusuri active",
    bonusCode: "Ai un cod de bonus?",
    getBonus: "Revendică",
    invalidBonusCode: "Codul de bonus introdus este invalid.",
    noActiveBonuses: "Nu ai niciun bonus activ în acest moment.",
    forfeitBonus: "Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",
    forfeitBonusConfirm: "Confirmă",
    forfeitBonusCancel: "Anulează",
    bonusClaimSuccessMessage: "Bonus revendicat!",
    bonusClaimErrorMessage: "Bonus invalid"
  },
  es: {
    titleBonuses: "Bonos Activos",
    bonusCode: "Tienes un código de Bono?",
    getBonus: "Obtener Bono",
    invalidBonusCode: "El código del Bono no es válido.",
    noActiveBonuses: "Usted no tiene Bonos activos en este momento.",
    forfeitBonus: "Estas seguro que quieres perder el bono?",
    forfeitBonusConfirm: "Confirmar",
    forfeitBonusCancel: "Cancelar",
    bonusClaimSuccessMessage: "Bono adjudicado!",
    bonusClaimErrorMessage: "Bono invalido"
  },
  pt: {
    titleBonuses: "Bônus Ativos",
    bonusCode: "Você tem um código de bônus?",
    getBonus: "Obter bônus",
    invalidBonusCode: "O código de bônus fornecido é inválido.",
    noActiveBonuses: "Você não tem bônus ativos no momento.",
    forfeitBonus: "Tem certeza de que deseja perder o bônus e seus ganhos?",
    forfeitBonusConfirm: "Confirmar",
    forfeitBonusCancel: "Cancelar",
    bonusClaimSuccessMessage: "Bônus reivindicado!",
    bonusClaimErrorMessage: "Bônus inválido"
  },
  hr: {
    titleBonuses: "Aktivni bonusi",
    bonusCode: "Imate li bonus kod?",
    getBonus: "Preuzmi bonus",
    invalidBonusCode: "Navedeni bonus kod je nevažeći.",
    noActiveBonuses: "Trenutno nemate aktivnih bonusa.",
    forfeitBonus: "Jeste li sigurni da želite otkazati bonus?",
    forfeitBonusConfirm: "Potvrdi",
    forfeitBonusCancel: "Otkaži",
    bonusClaimSuccessMessage: "Preuzet bonus!",
    bonusClaimErrorMessage: "Nevažeći bonus"
  },
  "pt-br": {
    titleBonuses: "Títulos ativos",
    bonusCode: "Você tem um código de bônus?",
    getBonus: "Reivindicar bônus",
    invalidBonusCode: "O código de bônus emitido é inválido",
    noActiveBonuses: "Não possui títulos ativos no momento",
    forfeitBonus: "Tem certeza de que deseja recusar o bônus?",
    forfeitBonusConfirm: "confirme",
    forfeitBonusCancel: "Cancelar",
    bonusClaimSuccessMessage: "Bônus ativado",
    bonusClaimErrorMessage: "Voucher inválido"
  },
  "es-mx": {
    titleBonuses: "Bonos activos",
    bonusCode: "¿Tiene código de bonos?",
    getBonus: "Reclamar bono",
    invalidBonusCode: "El código de bono emitido es inválido",
    noActiveBonuses: "No tiene bonos activos al momento",
    forfeitBonus: "¿ Está seguro que quiere declinar el bono?",
    forfeitBonusConfirm: "Confirmar",
    forfeitBonusCancel: "Cancelar",
    bonusClaimSuccessMessage: "Bono activado",
    bonusClaimErrorMessage: "Bono inválido"
  },
  tr: {
    titleBonuses: "Aktif Bonuslar",
    bonusCode: "Bonus kodunuz var mı?",
    getBonus: "Bonusu Al",
    invalidBonusCode: "Sağlanan bonus kodu geçersiz.",
    noActiveBonuses: "Şu anda aktif bonusunuz yok.",
    forfeitBonus: "Bonusu kaybetmek istediğinizden emin misiniz?",
    forfeitBonusConfirm: "Onaylamak",
    forfeitBonusCancel: "İptal etmek",
    bonusClaimSuccessMessage: "Bonus talep edildi!",
    bonusClaimErrorMessage: "Geçersiz bonus"
  },
  "en-us": {
    titleBonuses: "Active Bonuses",
    bonusCode: "Do you have a bonus code?",
    getBonus: "Get Bonus",
    invalidBonusCode: "The bonus code provided is invalid.",
    noActiveBonuses: "You have no active bonuses at the moment.",
    forfeitBonus: "Are you sure want to forfeit bonus?",
    forfeitBonusConfirm: "Confirm",
    forfeitBonusCancel: "Cancel",
    bonusClaimSuccessMessage: "Bonus claimed!",
    bonusClaimErrorMessage: "Invalid bonus"
  }
};
if (typeof window < "u") {
  let n = function(e) {
    return function(...o) {
      try {
        return e.apply(this, o);
      } catch (i) {
        if (i instanceof DOMException && i.message.includes("has already been used with this registry") || i.message.includes("Cannot define multiple custom elements with the same tag name"))
          return !1;
        throw i;
      }
    };
  };
  customElements.define = n(customElements.define), import("./PlayerBonusCard-BaPk9c2Q.js").then(({ default: e }) => {
    !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
  });
}
function Qe(n) {
  Oe(n, "svelte-44vwrd", '.ActiveBonusesWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.ActiveBonusesTitleMobile{font-size:16px}.ActiveBonusesTitleNone{display:none}.BonusCodeContainer{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer label{font-size:16px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper{display:flex;gap:10px}.BonusCodeContainer .BonusCodeWrapper.BonusCodeWrapperMobile{flex-direction:column}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput{width:70%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput:focus{outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode[disabled]{opacity:0.3;cursor:not-allowed}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:hover{filter:brightness(0.9)}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile{width:100%}.BonusCodeContainer .BonusCodeWrapper .SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer.InvalidField input{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));background:var(--emw--color-primary-50, var(--emw--color-pink-50, #F1BED9));color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusCodeContainer .InvalidBonusCodeMessage{color:var(--emw--color-error, var(--emw--color-red, #FD2839))}.BonusCodeWrapper{display:flex;gap:20px}.SubmitBonusCode{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--color-white, #FFFFFF);cursor:pointer;border-radius:5px;width:30%;height:44px;font-size:15px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.SubmitBonusCode[disabled]{opacity:0.3}.SubmitBonusCode:hover{filter:brightness(0.9)}.SubmitBonusCode:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.ActiveBonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile{grid-template-columns:1fr}.ModalWrapper{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0, 0, 0, 0.7);display:flex;justify-content:center;align-items:center;z-index:300}.ModalWrapper .ModalContent{background-color:var(--emw--color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));border-radius:5px}.ModalWrapper .ModalBody{background-color:var(--emw--color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper .ModalBody .ModalText{font-size:22px;margin-bottom:40px}.ModalWrapper .ModalBody .ModalButtons{display:flex;gap:36px}.ModalWrapper .ModalBody .ModalCancel,.ModalWrapper .ModalBody .ModalConfirm{background:transparent;border:1px solid var(--emw--color-gray-300, #58586B);color:var(--emw--color-gray-300, #58586B);cursor:pointer;border-radius:5px;width:200px;height:50px;font-size:16px;text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.ModalWrapper .ModalBody .ModalConfirm{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))}.ModalWrapper.ModalWrapperMobile .ModalContent{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile .ModalBody{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile .ModalText{font-size:16px}.ModalWrapper.ModalWrapperMobile .ModalButtons{gap:10px}.ModalWrapper.ModalWrapperMobile .ModalCancel,.ModalWrapper.ModalWrapperMobile .ModalConfirm{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:700}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
}
function ce(n, e, o) {
  const i = n.slice();
  return i[52] = e[o], i[54] = o, i;
}
function pe(n, e, o) {
  const i = n.slice();
  return i[55] = e[o], i;
}
function xe(n) {
  let e, o, i, t, a, r, m, l, b, C, y = (
    /*$_*/
    n[20]("titleBonuses") + ""
  ), A, v, h;
  return {
    c() {
      e = M("div"), o = Q("svg"), i = Q("defs"), t = Q("style"), a = L(`.aaa {
                fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
              }
            `), r = Q("g"), m = Q("g"), l = Q("path"), b = T(), C = M("h2"), A = L(y), B(l, "class", "aaa"), B(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), B(l, "transform", "translate(15 15) rotate(180)"), B(m, "transform", "translate(20 158)"), B(r, "transform", "translate(-20 -158)"), B(o, "xmlns", "http://www.w3.org/2000/svg"), B(o, "width", "15"), B(o, "height", "15"), B(o, "viewBox", "0 0 15 15"), B(C, "class", "ActiveBonusesTitleMobile"), B(e, "class", "MenuReturnButton");
    },
    m(_, c) {
      R(_, e, c), p(e, o), p(o, i), p(i, t), p(t, a), p(o, r), p(r, m), p(m, l), p(e, b), p(e, C), p(C, A), v || (h = V(
        e,
        "click",
        /*click_handler*/
        n[34]
      ), v = !0);
    },
    p(_, c) {
      c[0] & /*$_*/
      1048576 && y !== (y = /*$_*/
      _[20]("titleBonuses") + "") && J(A, y);
    },
    d(_) {
      _ && N(e), v = !1, h();
    }
  };
}
function me(n) {
  let e, o = (
    /*$_*/
    n[20]("invalidBonusCode") + ""
  ), i;
  return {
    c() {
      e = M("p"), i = L(o), B(e, "class", "InvalidBonusCodeMessage");
    },
    m(t, a) {
      R(t, e, a), p(e, i);
    },
    p(t, a) {
      a[0] & /*$_*/
      1048576 && o !== (o = /*$_*/
      t[20]("invalidBonusCode") + "") && J(i, o);
    },
    d(t) {
      t && N(e);
    }
  };
}
function $e(n) {
  let e, o, i;
  function t(l, b) {
    return (
      /*activeBonusesList*/
      l[18].length === 0 ? on : nn
    );
  }
  let a = t(n), r = a(n), m = (
    /*activeBonusesList*/
    n[18].length !== 0 && be(n)
  );
  return {
    c() {
      e = M("div"), r.c(), o = T(), m && m.c(), i = te(), B(e, "class", "ActiveBonusesGrid " + /*isMobile*/
      (n[21] ? "ActiveBonusesGridMobile" : ""));
    },
    m(l, b) {
      R(l, e, b), r.m(e, null), R(l, o, b), m && m.m(l, b), R(l, i, b);
    },
    p(l, b) {
      a === (a = t(l)) && r ? r.p(l, b) : (r.d(1), r = a(l), r && (r.c(), r.m(e, null))), /*activeBonusesList*/
      l[18].length !== 0 ? m ? m.p(l, b) : (m = be(l), m.c(), m.m(i.parentNode, i)) : m && (m.d(1), m = null);
    },
    d(l) {
      l && (N(e), N(o), N(i)), r.d(), m && m.d(l);
    }
  };
}
function en(n) {
  let e;
  return {
    c() {
      e = M("div"), B(e, "class", "ModalLoader"), B(e, "part", "ModalLoader");
    },
    m(o, i) {
      R(o, e, i);
    },
    p: oe,
    d(o) {
      o && N(e);
    }
  };
}
function nn(n) {
  let e, o = ee(
    /*activeBonusesList*/
    n[18]
  ), i = [];
  for (let t = 0; t < o.length; t += 1)
    i[t] = fe(pe(n, o, t));
  return {
    c() {
      for (let t = 0; t < i.length; t += 1)
        i[t].c();
      e = te();
    },
    m(t, a) {
      for (let r = 0; r < i.length; r += 1)
        i[r] && i[r].m(t, a);
      R(t, e, a);
    },
    p(t, a) {
      if (a[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale, ishiddenwageringbonus*/
      262399) {
        o = ee(
          /*activeBonusesList*/
          t[18]
        );
        let r;
        for (r = 0; r < o.length; r += 1) {
          const m = pe(t, o, r);
          i[r] ? i[r].p(m, a) : (i[r] = fe(m), i[r].c(), i[r].m(e.parentNode, e));
        }
        for (; r < i.length; r += 1)
          i[r].d(1);
        i.length = o.length;
      }
    },
    d(t) {
      t && N(e), ve(i, t);
    }
  };
}
function on(n) {
  let e, o = (
    /*$_*/
    n[20]("noActiveBonuses") + ""
  ), i;
  return {
    c() {
      e = M("p"), i = L(o);
    },
    m(t, a) {
      R(t, e, a), p(e, i);
    },
    p(t, a) {
      a[0] & /*$_*/
      1048576 && o !== (o = /*$_*/
      t[20]("noActiveBonuses") + "") && J(i, o);
    },
    d(t) {
      t && N(e);
    }
  };
}
function sn(n) {
  let e, o, i, t, a, r, m, l, b, C, y, A, v, h, _, c, f;
  return {
    c() {
      e = M("player-bonus-card"), s(e, "termsandconditionsdescription", o = /*activeBonus*/
      n[55].termsandconditionsdescription), s(e, "termsandconditionsurl", i = /*activeBonus*/
      n[55].termsandconditionsurl), s(e, "termsandconditionsasset", t = /*activeBonus*/
      n[55].termsandconditionsasset), s(e, "endpoint", a = /*activeBonus*/
      n[55].endpoint), s(e, "playerid", r = /*activeBonus*/
      n[55].playerid), s(e, "session", m = /*activeBonus*/
      n[55].session), s(e, "bonuswalletid", l = /*activeBonus*/
      n[55].walletId), s(e, "bonusdate", b = /*activeBonus*/
      n[55].granted), s(e, "bonusexpirationdate", C = /*activeBonus*/
      n[55].expiryTime), s(e, "bonusstatus", y = /*activeBonus*/
      n[55].status), s(e, "bonusname", A = /*activeBonus*/
      n[55].name), s(e, "bonustype", v = /*activeBonus*/
      n[55].type), s(e, "bonusamount", h = /*activeBonus*/
      n[55].extension.grantedPlayerCurrencyAmount), s(e, "bonuswageringamount", _ = `${/*activeBonus*/
      n[55].fulfilledWR} / ${/*activeBonus*/
      n[55].originalWageringRequirement}`), s(e, "bonusremainingamount", c = /*activeBonus*/
      n[55].currentAmount), s(e, "bonuscurrency", f = /*activeBonus*/
      n[55].currency), s(
        e,
        "lang",
        /*lang*/
        n[0]
      ), s(
        e,
        "dateformat",
        /*dateformat*/
        n[6]
      ), s(
        e,
        "clientstyling",
        /*clientstyling*/
        n[1]
      ), s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        n[2]
      ), s(
        e,
        "mbsource",
        /*mbsource*/
        n[3]
      ), s(
        e,
        "translationurl",
        /*translationurl*/
        n[4]
      ), s(
        e,
        "currencylocale",
        /*currencylocale*/
        n[5]
      ), s(
        e,
        "ishiddenwageringbonus",
        /*ishiddenwageringbonus*/
        n[7]
      );
    },
    m(d, g) {
      R(d, e, g);
    },
    p(d, g) {
      g[0] & /*activeBonusesList*/
      262144 && o !== (o = /*activeBonus*/
      d[55].termsandconditionsdescription) && s(e, "termsandconditionsdescription", o), g[0] & /*activeBonusesList*/
      262144 && i !== (i = /*activeBonus*/
      d[55].termsandconditionsurl) && s(e, "termsandconditionsurl", i), g[0] & /*activeBonusesList*/
      262144 && t !== (t = /*activeBonus*/
      d[55].termsandconditionsasset) && s(e, "termsandconditionsasset", t), g[0] & /*activeBonusesList*/
      262144 && a !== (a = /*activeBonus*/
      d[55].endpoint) && s(e, "endpoint", a), g[0] & /*activeBonusesList*/
      262144 && r !== (r = /*activeBonus*/
      d[55].playerid) && s(e, "playerid", r), g[0] & /*activeBonusesList*/
      262144 && m !== (m = /*activeBonus*/
      d[55].session) && s(e, "session", m), g[0] & /*activeBonusesList*/
      262144 && l !== (l = /*activeBonus*/
      d[55].walletId) && s(e, "bonuswalletid", l), g[0] & /*activeBonusesList*/
      262144 && b !== (b = /*activeBonus*/
      d[55].granted) && s(e, "bonusdate", b), g[0] & /*activeBonusesList*/
      262144 && C !== (C = /*activeBonus*/
      d[55].expiryTime) && s(e, "bonusexpirationdate", C), g[0] & /*activeBonusesList*/
      262144 && y !== (y = /*activeBonus*/
      d[55].status) && s(e, "bonusstatus", y), g[0] & /*activeBonusesList*/
      262144 && A !== (A = /*activeBonus*/
      d[55].name) && s(e, "bonusname", A), g[0] & /*activeBonusesList*/
      262144 && v !== (v = /*activeBonus*/
      d[55].type) && s(e, "bonustype", v), g[0] & /*activeBonusesList*/
      262144 && h !== (h = /*activeBonus*/
      d[55].extension.grantedPlayerCurrencyAmount) && s(e, "bonusamount", h), g[0] & /*activeBonusesList*/
      262144 && _ !== (_ = `${/*activeBonus*/
      d[55].fulfilledWR} / ${/*activeBonus*/
      d[55].originalWageringRequirement}`) && s(e, "bonuswageringamount", _), g[0] & /*activeBonusesList*/
      262144 && c !== (c = /*activeBonus*/
      d[55].currentAmount) && s(e, "bonusremainingamount", c), g[0] & /*activeBonusesList*/
      262144 && f !== (f = /*activeBonus*/
      d[55].currency) && s(e, "bonuscurrency", f), g[0] & /*lang*/
      1 && s(
        e,
        "lang",
        /*lang*/
        d[0]
      ), g[0] & /*dateformat*/
      64 && s(
        e,
        "dateformat",
        /*dateformat*/
        d[6]
      ), g[0] & /*clientstyling*/
      2 && s(
        e,
        "clientstyling",
        /*clientstyling*/
        d[1]
      ), g[0] & /*clientstylingurl*/
      4 && s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        d[2]
      ), g[0] & /*mbsource*/
      8 && s(
        e,
        "mbsource",
        /*mbsource*/
        d[3]
      ), g[0] & /*translationurl*/
      16 && s(
        e,
        "translationurl",
        /*translationurl*/
        d[4]
      ), g[0] & /*currencylocale*/
      32 && s(
        e,
        "currencylocale",
        /*currencylocale*/
        d[5]
      ), g[0] & /*ishiddenwageringbonus*/
      128 && s(
        e,
        "ishiddenwageringbonus",
        /*ishiddenwageringbonus*/
        d[7]
      );
    },
    d(d) {
      d && N(e);
    }
  };
}
function tn(n) {
  let e, o, i, t, a, r, m, l, b, C, y, A, v, h, _;
  return {
    c() {
      e = M("player-bonus-card"), s(e, "termsandconditionsdescription", o = /*activeBonus*/
      n[55].termsandconditionsdescription), s(e, "termsandconditionsurl", i = /*activeBonus*/
      n[55].termsandconditionsurl), s(e, "termsandconditionsasset", t = /*activeBonus*/
      n[55].termsandconditionsasset), s(e, "endpoint", a = /*activeBonus*/
      n[55].endpoint), s(e, "playerid", r = /*activeBonus*/
      n[55].playerid), s(e, "session", m = /*activeBonus*/
      n[55].session), s(e, "bonuswalletid", l = /*activeBonus*/
      n[55].walletId), s(e, "bonusdate", b = /*activeBonus*/
      n[55].granted), s(e, "bonusexpirationdate", C = /*activeBonus*/
      n[55].expiryTime), s(e, "bonusstatus", y = /*activeBonus*/
      n[55].status), s(e, "bonusname", A = /*activeBonus*/
      n[55].name), s(e, "bonustype", v = /*activeBonus*/
      n[55].type), s(e, "bonuscurrency", h = /*activeBonus*/
      n[55].currency), s(e, "bonusfreespins", _ = /*activeBonus*/
      n[55].freeRoundNumber), s(
        e,
        "lang",
        /*lang*/
        n[0]
      ), s(
        e,
        "dateformat",
        /*dateformat*/
        n[6]
      ), s(
        e,
        "clientstyling",
        /*clientstyling*/
        n[1]
      ), s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        n[2]
      ), s(
        e,
        "mbsource",
        /*mbsource*/
        n[3]
      ), s(
        e,
        "translationurl",
        /*translationurl*/
        n[4]
      ), s(
        e,
        "currencylocale",
        /*currencylocale*/
        n[5]
      ), s(
        e,
        "ishiddenwageringbonus",
        /*ishiddenwageringbonus*/
        n[7]
      );
    },
    m(c, f) {
      R(c, e, f);
    },
    p(c, f) {
      f[0] & /*activeBonusesList*/
      262144 && o !== (o = /*activeBonus*/
      c[55].termsandconditionsdescription) && s(e, "termsandconditionsdescription", o), f[0] & /*activeBonusesList*/
      262144 && i !== (i = /*activeBonus*/
      c[55].termsandconditionsurl) && s(e, "termsandconditionsurl", i), f[0] & /*activeBonusesList*/
      262144 && t !== (t = /*activeBonus*/
      c[55].termsandconditionsasset) && s(e, "termsandconditionsasset", t), f[0] & /*activeBonusesList*/
      262144 && a !== (a = /*activeBonus*/
      c[55].endpoint) && s(e, "endpoint", a), f[0] & /*activeBonusesList*/
      262144 && r !== (r = /*activeBonus*/
      c[55].playerid) && s(e, "playerid", r), f[0] & /*activeBonusesList*/
      262144 && m !== (m = /*activeBonus*/
      c[55].session) && s(e, "session", m), f[0] & /*activeBonusesList*/
      262144 && l !== (l = /*activeBonus*/
      c[55].walletId) && s(e, "bonuswalletid", l), f[0] & /*activeBonusesList*/
      262144 && b !== (b = /*activeBonus*/
      c[55].granted) && s(e, "bonusdate", b), f[0] & /*activeBonusesList*/
      262144 && C !== (C = /*activeBonus*/
      c[55].expiryTime) && s(e, "bonusexpirationdate", C), f[0] & /*activeBonusesList*/
      262144 && y !== (y = /*activeBonus*/
      c[55].status) && s(e, "bonusstatus", y), f[0] & /*activeBonusesList*/
      262144 && A !== (A = /*activeBonus*/
      c[55].name) && s(e, "bonusname", A), f[0] & /*activeBonusesList*/
      262144 && v !== (v = /*activeBonus*/
      c[55].type) && s(e, "bonustype", v), f[0] & /*activeBonusesList*/
      262144 && h !== (h = /*activeBonus*/
      c[55].currency) && s(e, "bonuscurrency", h), f[0] & /*activeBonusesList*/
      262144 && _ !== (_ = /*activeBonus*/
      c[55].freeRoundNumber) && s(e, "bonusfreespins", _), f[0] & /*lang*/
      1 && s(
        e,
        "lang",
        /*lang*/
        c[0]
      ), f[0] & /*dateformat*/
      64 && s(
        e,
        "dateformat",
        /*dateformat*/
        c[6]
      ), f[0] & /*clientstyling*/
      2 && s(
        e,
        "clientstyling",
        /*clientstyling*/
        c[1]
      ), f[0] & /*clientstylingurl*/
      4 && s(
        e,
        "clientstylingurl",
        /*clientstylingurl*/
        c[2]
      ), f[0] & /*mbsource*/
      8 && s(
        e,
        "mbsource",
        /*mbsource*/
        c[3]
      ), f[0] & /*translationurl*/
      16 && s(
        e,
        "translationurl",
        /*translationurl*/
        c[4]
      ), f[0] & /*currencylocale*/
      32 && s(
        e,
        "currencylocale",
        /*currencylocale*/
        c[5]
      ), f[0] & /*ishiddenwageringbonus*/
      128 && s(
        e,
        "ishiddenwageringbonus",
        /*ishiddenwageringbonus*/
        c[7]
      );
    },
    d(c) {
      c && N(e);
    }
  };
}
function fe(n) {
  let e;
  function o(a, r) {
    return (
      /*activeBonus*/
      a[55].type === "freeRound" ? tn : sn
    );
  }
  let i = o(n), t = i(n);
  return {
    c() {
      t.c(), e = te();
    },
    m(a, r) {
      t.m(a, r), R(a, e, r);
    },
    p(a, r) {
      i === (i = o(a)) && t ? t.p(a, r) : (t.d(1), t = i(a), t && (t.c(), t.m(e.parentNode, e)));
    },
    d(a) {
      a && N(e), t.d(a);
    }
  };
}
function be(n) {
  let e, o, i, t, a, r, m, l, b, C, y, A, v, h, _, c, f, d, g, U = ee(Array(
    /*numberOfPages*/
    n[16]
  )), E = [];
  for (let w = 0; w < U.length; w += 1)
    E[w] = ge(ce(n, U, w));
  return {
    c() {
      e = M("div"), o = M("span"), i = L("|<"), a = T(), r = M("span"), m = L("<"), b = T();
      for (let w = 0; w < E.length; w += 1)
        E[w].c();
      C = T(), y = M("span"), A = L(">"), h = T(), _ = M("span"), c = L(">|"), B(o, "class", t = "BonusesFirst " + /*currentPage*/
      (n[17] === 0 ? "Inactive" : "")), B(r, "class", l = "BonusesPrev " + /*currentPage*/
      (n[17] === 0 ? "Inactive" : "")), B(y, "class", v = "BonusesNext " + /*currentPage*/
      (n[17] === /*numberOfPages*/
      n[16] - 1 ? "Inactive" : "")), B(_, "class", f = "BonusesLast " + /*currentPage*/
      (n[17] === /*numberOfPages*/
      n[16] - 1 ? "Inactive" : "")), B(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
      (n[21] ? "BonusesPaginationWrapperMobile" : ""));
    },
    m(w, S) {
      R(w, e, S), p(e, o), p(o, i), p(e, a), p(e, r), p(r, m), p(e, b);
      for (let k = 0; k < E.length; k += 1)
        E[k] && E[k].m(e, null);
      p(e, C), p(e, y), p(y, A), p(e, h), p(e, _), p(_, c), d || (g = [
        V(
          o,
          "click",
          /*click_handler_1*/
          n[36]
        ),
        V(
          r,
          "click",
          /*click_handler_2*/
          n[37]
        ),
        V(
          y,
          "click",
          /*click_handler_4*/
          n[39]
        ),
        V(
          _,
          "click",
          /*click_handler_5*/
          n[40]
        )
      ], d = !0);
    },
    p(w, S) {
      if (S[0] & /*currentPage*/
      131072 && t !== (t = "BonusesFirst " + /*currentPage*/
      (w[17] === 0 ? "Inactive" : "")) && B(o, "class", t), S[0] & /*currentPage*/
      131072 && l !== (l = "BonusesPrev " + /*currentPage*/
      (w[17] === 0 ? "Inactive" : "")) && B(r, "class", l), S[0] & /*currentPage, getActiveBonuses, numberOfPages*/
      16973824) {
        U = ee(Array(
          /*numberOfPages*/
          w[16]
        ));
        let k;
        for (k = 0; k < U.length; k += 1) {
          const j = ce(w, U, k);
          E[k] ? E[k].p(j, S) : (E[k] = ge(j), E[k].c(), E[k].m(e, C));
        }
        for (; k < E.length; k += 1)
          E[k].d(1);
        E.length = U.length;
      }
      S[0] & /*currentPage, numberOfPages*/
      196608 && v !== (v = "BonusesNext " + /*currentPage*/
      (w[17] === /*numberOfPages*/
      w[16] - 1 ? "Inactive" : "")) && B(y, "class", v), S[0] & /*currentPage, numberOfPages*/
      196608 && f !== (f = "BonusesLast " + /*currentPage*/
      (w[17] === /*numberOfPages*/
      w[16] - 1 ? "Inactive" : "")) && B(_, "class", f);
    },
    d(w) {
      w && N(e), ve(E, w), d = !1, se(g);
    }
  };
}
function ge(n) {
  let e, o = (
    /*i*/
    n[54] + 1 + ""
  ), i, t, a, r;
  function m() {
    return (
      /*click_handler_3*/
      n[38](
        /*i*/
        n[54]
      )
    );
  }
  return {
    c() {
      e = M("span"), i = L(o), B(e, "class", t = "BonusesPage " + /*i*/
      (n[54] === /*currentPage*/
      n[17] ? "BonusPageActive" : ""));
    },
    m(l, b) {
      R(l, e, b), p(e, i), a || (r = V(e, "click", m), a = !0);
    },
    p(l, b) {
      n = l, b[0] & /*currentPage*/
      131072 && t !== (t = "BonusesPage " + /*i*/
      (n[54] === /*currentPage*/
      n[17] ? "BonusPageActive" : "")) && B(e, "class", t);
    },
    d(l) {
      l && N(e), a = !1, r();
    }
  };
}
function Be(n) {
  let e, o, i, t, a = (
    /*$_*/
    n[20]("forfeitBonus") + ""
  ), r, m, l, b, C = (
    /*$_*/
    n[20]("forfeitBonusCancel") + ""
  ), y, A, v, h = (
    /*$_*/
    n[20]("forfeitBonusConfirm") + ""
  ), _, c, f;
  return {
    c() {
      e = M("div"), o = M("div"), i = M("div"), t = M("p"), r = L(a), m = T(), l = M("div"), b = M("button"), y = L(C), A = T(), v = M("button"), _ = L(h), B(t, "class", "ModalText"), B(b, "class", "ModalCancel"), B(v, "class", "ModalConfirm"), B(l, "class", "ModalButtons"), B(i, "class", "ModalBody"), B(o, "class", "ModalContent"), B(e, "class", "ModalWrapper " + /*isMobile*/
      (n[21] ? "ModalWrapperMobile" : ""));
    },
    m(d, g) {
      R(d, e, g), p(e, o), p(o, i), p(i, t), p(t, r), p(i, m), p(i, l), p(l, b), p(b, y), p(l, A), p(l, v), p(v, _), c || (f = [
        V(
          b,
          "click",
          /*closeBonusModal*/
          n[26]
        ),
        V(
          v,
          "click",
          /*debouncedFunction*/
          n[28](
            /*deleteBonus*/
            n[27]
          )
        )
      ], c = !0);
    },
    p(d, g) {
      g[0] & /*$_*/
      1048576 && a !== (a = /*$_*/
      d[20]("forfeitBonus") + "") && J(r, a), g[0] & /*$_*/
      1048576 && C !== (C = /*$_*/
      d[20]("forfeitBonusCancel") + "") && J(y, C), g[0] & /*$_*/
      1048576 && h !== (h = /*$_*/
      d[20]("forfeitBonusConfirm") + "") && J(_, h);
    },
    d(d) {
      d && N(e), c = !1, se(f);
    }
  };
}
function rn(n) {
  let e, o, i, t, a = (
    /*$_*/
    n[20]("titleBonuses") + ""
  ), r, m, l, b, C = (
    /*$_*/
    n[20]("bonusCode") + ""
  ), y, A, v, h, _, c, f = (
    /*$_*/
    n[20]("getBonus") + ""
  ), d, g, U, E, w, S, k, j = (
    /*isMobile*/
    n[21] && xe(n)
  ), P = (
    /*invalidBonusCode*/
    n[11] && me(n)
  );
  function Z(W, z) {
    return (
      /*isLoading*/
      W[9] ? en : $e
    );
  }
  let K = Z(n), D = K(n), F = (
    /*bonusModal*/
    n[19] && Be(n)
  );
  return {
    c() {
      e = M("div"), o = M("div"), j && j.c(), i = T(), t = M("h2"), r = L(a), m = T(), l = M("div"), b = M("label"), y = L(C), A = T(), v = M("div"), h = M("input"), _ = T(), c = M("button"), d = L(f), U = T(), P && P.c(), E = T(), D.c(), w = T(), F && F.c(), B(t, "class", "ActiveBonusesTitle " + /*isMobile*/
      (n[21] ? "ActiveBonusesTitleNone" : "")), B(b, "for", "BonusCode"), B(h, "class", "BonusCodeInput " + /*isMobile*/
      (n[21] ? "BonusCodeInputMobile" : "")), B(h, "type", "text"), B(h, "id", "BonusCode"), B(c, "class", "SubmitBonusCode " + /*isMobile*/
      (n[21] ? "SubmitBonusCodeMobile" : "")), c.disabled = g = /*invalidBonusField*/
      n[10] || /*isLoading*/
      n[9], B(v, "class", "BonusCodeWrapper " + /*isMobile*/
      (n[21] ? "BonusCodeWrapperMobile" : "")), B(l, "class", "BonusCodeContainer " + /*isMobile*/
      (n[21] ? "BonusCodeContainerMobile" : "")), B(o, "class", "ActiveBonusesWrapper " + /*isMobile*/
      (n[21] ? "ActiveBonusesWrapperMobile" : ""));
    },
    m(W, z) {
      R(W, e, z), p(e, o), j && j.m(o, null), p(o, i), p(o, t), p(t, r), p(o, m), p(o, l), p(l, b), p(b, y), p(l, A), p(l, v), p(v, h), le(
        h,
        /*bonusCode*/
        n[12]
      ), p(v, _), p(v, c), p(c, d), p(l, U), P && P.m(l, null), p(o, E), D.m(o, null), p(e, w), F && F.m(e, null), n[41](e), S || (k = [
        V(
          h,
          "input",
          /*input_input_handler*/
          n[35]
        ),
        V(
          h,
          "keyup",
          /*validateBonusCode*/
          n[23]
        ),
        V(
          c,
          "click",
          /*claimBonus*/
          n[25]
        )
      ], S = !0);
    },
    p(W, z) {
      /*isMobile*/
      W[21] && j.p(W, z), z[0] & /*$_*/
      1048576 && a !== (a = /*$_*/
      W[20]("titleBonuses") + "") && J(r, a), z[0] & /*$_*/
      1048576 && C !== (C = /*$_*/
      W[20]("bonusCode") + "") && J(y, C), z[0] & /*bonusCode*/
      4096 && h.value !== /*bonusCode*/
      W[12] && le(
        h,
        /*bonusCode*/
        W[12]
      ), z[0] & /*$_*/
      1048576 && f !== (f = /*$_*/
      W[20]("getBonus") + "") && J(d, f), z[0] & /*invalidBonusField, isLoading*/
      1536 && g !== (g = /*invalidBonusField*/
      W[10] || /*isLoading*/
      W[9]) && (c.disabled = g), /*invalidBonusCode*/
      W[11] ? P ? P.p(W, z) : (P = me(W), P.c(), P.m(l, null)) : P && (P.d(1), P = null), K === (K = Z(W)) && D ? D.p(W, z) : (D.d(1), D = K(W), D && (D.c(), D.m(o, null))), /*bonusModal*/
      W[19] ? F ? F.p(W, z) : (F = Be(W), F.c(), F.m(e, null)) : F && (F.d(1), F = null);
    },
    i: oe,
    o: oe,
    d(W) {
      W && N(e), j && j.d(), P && P.d(), D.d(), F && F.d(), n[41](null), S = !1, se(k);
    }
  };
}
let an = "status=active", Y = 6;
function ln(n, e, o) {
  let i;
  qe(n, Ke, (u) => o(20, i = u));
  let { endpoint: t = "" } = e, { session: a = "" } = e, { playerid: r = "" } = e, { lang: m = "en" } = e, { currency: l = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: C = "" } = e, { mbsource: y } = e, { translationurl: A = "" } = e, { currencylocale: v = "" } = e, { dateformat: h = "" } = e, { bonuscoderegex: _ = "" } = e, { ishiddenwageringbonus: c = "false" } = e, f = !1, d, g, U = window.navigator.userAgent, E = Ge(U) !== "PC", w = !0, S = !1, k = "", j = 0, P = 0, Z = 0, K = 0, D = 0, F = [], W, z = "", ne = !1;
  const _e = () => {
    fetch(A).then((I) => I.json()).then((I) => {
      Object.keys(I).forEach((G) => {
        ue(G, I[G]);
      });
    }).catch((I) => {
      console.log(I);
    });
  };
  Object.keys(de).forEach((u) => {
    ue(u, de[u]);
  });
  const ie = (u) => {
    if (u.data)
      switch (u.data.type) {
        case "DeleteActiveBonus":
          z = u.data.bonuswalletid, o(19, ne = !0);
          break;
      }
  };
  function ye(u, I) {
    return (...G) => {
      clearTimeout(W), W = setTimeout(
        () => {
          u.apply(this, G);
        },
        I
      );
    };
  }
  const re = () => {
    window.postMessage(
      {
        type: "PlayerAccountMenuActive",
        isMobile: E
      },
      window.location.href
    );
  }, he = () => k ? _ ? new RegExp(_).test(k) : !0 : !1, Ce = () => {
    o(10, w = !he()), _ && o(11, S = w);
  }, H = (u) => {
    o(9, f = !0);
    let I = {
      method: "GET",
      headers: { "X-SessionId": a }
    }, G = new URL(`${t}/v1/player/${r}/bonusWallet`);
    G.searchParams.append("filter", an), G.searchParams.append("pagination", `offset=${u},limit=${Y}`), fetch(G, I).then((X) => X.json()).then(
      (X) => {
        Array.isArray(X.items) && X.items.forEach((O) => {
          const $ = O?.extension?.bonus?.presentation;
          $ && (O.termsandconditionsurl = $.url, O.termsandconditionsdescription = $.description, O.termsandconditionsasset = $.assets);
        }), o(16, K = Math.ceil(X.total / Y)), u - Y >= 0 && o(13, j = u - Y), u + Y < X.total && o(14, P = u + Y), o(15, Z = (K - 1) * Y), o(17, D = u / Y), o(18, F = X?.items || []), v && F.forEach((O) => {
          O.fulfilledWR = x(O.fulfilledWR), O.originalWageringRequirement = x(O.originalWageringRequirement), O.currentAmount = x(O.currentAmount), O.extension.grantedPlayerCurrencyAmount = x(O.extension.grantedPlayerCurrencyAmount);
        }), window.scrollTo({ top: 0, behavior: "smooth" });
      },
      (X) => {
        console.error(X);
      }
    ).finally(() => {
      o(9, f = !1);
    });
  }, x = (u) => new Intl.NumberFormat(v, { style: "currency", currency: l }).format(u).replace(/\s/g, ""), we = () => {
    o(9, f = !0);
    let u = new URL(`${t}/v1/player/${r}/claimbonus`), I = {
      method: "POST",
      headers: {
        "X-SessionId": a,
        accept: "application/json"
      }
    };
    u.searchParams.append("currency", l), u.searchParams.append("bonusCode", k), fetch(u.href, I).then((G) => {
      G.status == 200 ? (o(11, S = !1), H(0), window.postMessage(
        {
          type: "WidgetNotification",
          data: {
            type: "success",
            message: i("bonusClaimSuccessMessage")
          }
        },
        window.location.href
      ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
        context: "PlayerActiveBonuses",
        userId: `${r || "Not logged in"}`,
        bonusCode: `${k}`
      })) : (o(11, S = !0), window.postMessage(
        {
          type: "WidgetNotification",
          data: {
            type: "error",
            message: i("bonusClaimErrorMessage")
          }
        },
        window.location.href
      ));
    }).finally(() => {
      o(9, f = !1);
    });
  }, ae = () => {
    window.postMessage({ type: "EnableScroll" }, window.location.href), o(19, ne = !1);
  }, Me = () => {
    let u = {
      method: "DELETE",
      headers: {
        "X-SessionId": a,
        "Content-Type": "application/json",
        Accept: "application/json"
      }
    }, I = new URL(`${t}/v1/player/${r}/bonusWallet`);
    I.searchParams.append("bonusWalletID", z), fetch(I, u).then((G) => {
      G.status == 200 && (H(0), ae());
    });
  }, ke = () => {
    Ze(m);
  };
  function Ae(u) {
    return ye(u, 1e3);
  }
  Ue(() => (window.addEventListener("message", ie, !1), () => {
    window.removeEventListener("message", ie);
  }));
  const We = () => re();
  function Ee() {
    k = this.value, o(12, k);
  }
  const Pe = () => H(0), Fe = () => H(j), Se = (u) => H(u * Y), Ie = () => H(P), ze = () => H(Z);
  function Te(u) {
    Ve[u ? "unshift" : "push"](() => {
      d = u, o(8, d);
    });
  }
  return n.$$set = (u) => {
    "endpoint" in u && o(29, t = u.endpoint), "session" in u && o(30, a = u.session), "playerid" in u && o(31, r = u.playerid), "lang" in u && o(0, m = u.lang), "currency" in u && o(32, l = u.currency), "clientstyling" in u && o(1, b = u.clientstyling), "clientstylingurl" in u && o(2, C = u.clientstylingurl), "mbsource" in u && o(3, y = u.mbsource), "translationurl" in u && o(4, A = u.translationurl), "currencylocale" in u && o(5, v = u.currencylocale), "dateformat" in u && o(6, h = u.dateformat), "bonuscoderegex" in u && o(33, _ = u.bonuscoderegex), "ishiddenwageringbonus" in u && o(7, c = u.ishiddenwageringbonus);
  }, n.$$.update = () => {
    n.$$.dirty[0] & /*lang*/
    1 && m && ke(), n.$$.dirty[0] & /*session, endpoint*/
    1610612736 | n.$$.dirty[1] & /*playerid*/
    1 && a && r && t && H(0), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
    258 && b && d && He(d, b), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
    260 && C && d && Xe(d, C), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
    264 && y && d && Ye(d, `${y}.Style`, g), n.$$.dirty[0] & /*translationurl*/
    16 && A && _e();
  }, [
    m,
    b,
    C,
    y,
    A,
    v,
    h,
    c,
    d,
    f,
    w,
    S,
    k,
    j,
    P,
    Z,
    K,
    D,
    F,
    ne,
    i,
    E,
    re,
    Ce,
    H,
    we,
    ae,
    Me,
    Ae,
    t,
    a,
    r,
    l,
    _,
    We,
    Ee,
    Pe,
    Fe,
    Se,
    Ie,
    ze,
    Te
  ];
}
class un extends Re {
  constructor(e) {
    super(), je(
      this,
      e,
      ln,
      rn,
      De,
      {
        endpoint: 29,
        session: 30,
        playerid: 31,
        lang: 0,
        currency: 32,
        clientstyling: 1,
        clientstylingurl: 2,
        mbsource: 3,
        translationurl: 4,
        currencylocale: 5,
        dateformat: 6,
        bonuscoderegex: 33,
        ishiddenwageringbonus: 7
      },
      Qe,
      [-1, -1]
    );
  }
  get endpoint() {
    return this.$$.ctx[29];
  }
  set endpoint(e) {
    this.$$set({ endpoint: e }), q();
  }
  get session() {
    return this.$$.ctx[30];
  }
  set session(e) {
    this.$$set({ session: e }), q();
  }
  get playerid() {
    return this.$$.ctx[31];
  }
  set playerid(e) {
    this.$$set({ playerid: e }), q();
  }
  get lang() {
    return this.$$.ctx[0];
  }
  set lang(e) {
    this.$$set({ lang: e }), q();
  }
  get currency() {
    return this.$$.ctx[32];
  }
  set currency(e) {
    this.$$set({ currency: e }), q();
  }
  get clientstyling() {
    return this.$$.ctx[1];
  }
  set clientstyling(e) {
    this.$$set({ clientstyling: e }), q();
  }
  get clientstylingurl() {
    return this.$$.ctx[2];
  }
  set clientstylingurl(e) {
    this.$$set({ clientstylingurl: e }), q();
  }
  get mbsource() {
    return this.$$.ctx[3];
  }
  set mbsource(e) {
    this.$$set({ mbsource: e }), q();
  }
  get translationurl() {
    return this.$$.ctx[4];
  }
  set translationurl(e) {
    this.$$set({ translationurl: e }), q();
  }
  get currencylocale() {
    return this.$$.ctx[5];
  }
  set currencylocale(e) {
    this.$$set({ currencylocale: e }), q();
  }
  get dateformat() {
    return this.$$.ctx[6];
  }
  set dateformat(e) {
    this.$$set({ dateformat: e }), q();
  }
  get bonuscoderegex() {
    return this.$$.ctx[33];
  }
  set bonuscoderegex(e) {
    this.$$set({ bonuscoderegex: e }), q();
  }
  get ishiddenwageringbonus() {
    return this.$$.ctx[7];
  }
  set ishiddenwageringbonus(e) {
    this.$$set({ ishiddenwageringbonus: e }), q();
  }
}
Je(un, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, bonuscoderegex: {}, ishiddenwageringbonus: {} }, [], [], !0);
export {
  un as default
};
