@everymatrix/player-account-controller-nd 1.0.69 → 1.0.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/components/GeneralLogout-CA9TEW-a.cjs +8 -0
  2. package/components/GeneralLogout-DtE4YABi.js +4829 -0
  3. package/components/PlayerAccountBettingHistory-BcTxHKyO.js +328 -0
  4. package/components/PlayerAccountBettingHistory-NrSjgArQ.cjs +1 -0
  5. package/components/PlayerAccountBiometrics-BGnkL646.js +300 -0
  6. package/components/PlayerAccountBiometrics-Bl0LyqT2.cjs +1 -0
  7. package/components/PlayerAccountClosureNd-B3Zq9k2d.cjs +1 -0
  8. package/components/PlayerAccountClosureNd-CHDX6d_o.js +339 -0
  9. package/components/PlayerAccountControllerNd-DIStkt_S.js +6166 -0
  10. package/components/PlayerAccountControllerNd-zAl7gjSL.cjs +1 -0
  11. package/components/PlayerAccountGamingLimits-BSeZY_AM.cjs +1 -0
  12. package/components/PlayerAccountGamingLimits-CFEgRcLO.js +758 -0
  13. package/components/PlayerAccountGamingLimitsConfirmationModal-CETKCaaj.js +306 -0
  14. package/components/PlayerAccountGamingLimitsConfirmationModal-Zflhyn-z.cjs +1 -0
  15. package/components/PlayerAccountGamingLimitsGroupEdit-DPZ-Uvd4.js +4148 -0
  16. package/components/PlayerAccountGamingLimitsGroupEdit-_BasEjEB.cjs +10 -0
  17. package/components/PlayerAccountGamingLimitsHistory2-Bu-OW2oW.js +734 -0
  18. package/components/PlayerAccountGamingLimitsHistory2-FhMXdXTq.cjs +1 -0
  19. package/components/PlayerAccountGamingLimitsInfoCard-BUG8OODX.js +1488 -0
  20. package/components/PlayerAccountGamingLimitsInfoCard-sBX1tBDZ.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsPage2Gm16-BFnH54ZW.js +2764 -0
  22. package/components/PlayerAccountGamingLimitsPage2Gm16-CiGWLvn2.cjs +21 -0
  23. package/components/PlayerAccountGamingLimitsPopup-BrO_Lno2.cjs +1 -0
  24. package/components/PlayerAccountGamingLimitsPopup-CmAXnOQe.js +337 -0
  25. package/components/PlayerAccountGamingLimitsWrapper2Nd-B02Mw4lh.js +844 -0
  26. package/components/PlayerAccountGamingLimitsWrapper2Nd-BiSwua8y.cjs +1 -0
  27. package/components/PlayerAccountMenuNd-DU5_NtH9.js +587 -0
  28. package/components/PlayerAccountMenuNd-DwURI2AG.cjs +1 -0
  29. package/components/PlayerAccountModal-Blsborh1.js +198 -0
  30. package/components/PlayerAccountModal-DW8I9i4u.cjs +1 -0
  31. package/components/PlayerAccountNotifications-CEsL3JWV.cjs +1 -0
  32. package/components/PlayerAccountNotifications-DbUpordy.js +222 -0
  33. package/components/PlayerAccountSelfExclusionNd-BPADa27T.js +15842 -0
  34. package/components/PlayerAccountSelfExclusionNd-DxHpS1Fj.cjs +3693 -0
  35. package/components/PlayerAccountTimeout-BRQZuU_T.cjs +1 -0
  36. package/components/PlayerAccountTimeout-CSUT1HiR.js +448 -0
  37. package/components/PlayerActiveBonuses-CwHXPu9X.js +987 -0
  38. package/components/PlayerActiveBonuses-ReOEMRDU.cjs +1 -0
  39. package/components/PlayerBonusCard-665KSNoF.js +555 -0
  40. package/components/PlayerBonusCard-CQIuJjY5.cjs +1 -0
  41. package/components/PlayerBonusHistory-BIQHNNEB.js +824 -0
  42. package/components/PlayerBonusHistory-DkpMW9_f.cjs +1 -0
  43. package/components/PlayerChangePassword-B78Gb7rT.js +1162 -0
  44. package/components/PlayerChangePassword-L1wYKbsT.cjs +3 -0
  45. package/components/PlayerDeposit-BO0nDKOB.cjs +1 -0
  46. package/components/PlayerDeposit-CqgNmu8i.js +395 -0
  47. package/components/PlayerGamingHistory-BAPUDgf0.cjs +1 -0
  48. package/components/PlayerGamingHistory-C4j3T8xX.js +920 -0
  49. package/components/PlayerPendingWithdrawals-CsC5mrrE.js +307 -0
  50. package/components/PlayerPendingWithdrawals-DXh2yA-M.cjs +1 -0
  51. package/components/PlayerProfileInfo-3Wp8IotN.js +1730 -0
  52. package/components/PlayerProfileInfo-BWzgjhyD.cjs +1 -0
  53. package/components/PlayerRealityCheck-8QghFLS2.cjs +1 -0
  54. package/components/PlayerRealityCheck-Cg1tL1KV.js +567 -0
  55. package/components/PlayerTransactionHistory-Cfq6pzue.js +311 -0
  56. package/components/PlayerTransactionHistory-iyQVlg_5.cjs +1 -0
  57. package/components/PlayerWithdrawal-BZdcsIWI.cjs +1 -0
  58. package/components/PlayerWithdrawal-DJfHPWUz.js +365 -0
  59. package/package.json +23 -22
@@ -0,0 +1,987 @@
1
+ import { a as We, $ as Ae, S as Pe, i as Fe, f as J, c as ze, s as Ie, b as Te, e as B, k as R, o as se, p as j, q as Ee, u as De, v as Se, x as Le, y as Ne, d as L, t as N, B as $, g as c, l as r, O as ne, m as U, n as H, r as ee, w as Z, K as x, L as me, j as v } from "./GeneralLogout-DtE4YABi.js";
2
+ function te(o, e) {
3
+ We(o, e);
4
+ }
5
+ function Re(o) {
6
+ Ae.set(o);
7
+ }
8
+ const ae = {
9
+ en: {
10
+ titleBonuses: "Active Bonuses",
11
+ bonusCode: "Do you have a bonus code?",
12
+ getBonus: "Get Bonus",
13
+ invalidBonusCode: "The bonus code provided is invalid.",
14
+ noActiveBonuses: "You have no active bonuses at the moment.",
15
+ forfeitBonus: "Are you sure want to forfeit bonus?",
16
+ forfeitBonusConfirm: "Confirm",
17
+ forfeitBonusCancel: "Cancel",
18
+ successMessage: "Bonus claimed!",
19
+ errorMessage: "Invalid bonus"
20
+ },
21
+ "zh-hk": {
22
+ titleBonuses: "活躍獎金",
23
+ bonusCode: "你有獎金代碼嗎?",
24
+ getBonus: "獲得獎金",
25
+ invalidBonusCode: "提供的紅利代碼無效。",
26
+ noActiveBonuses: "您目前沒有有效的獎金。",
27
+ forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
28
+ forfeitBonusConfirm: "確認",
29
+ forfeitBonusCancel: "取消",
30
+ successMessage: "獎金要求!",
31
+ errorMessage: "無效獎金"
32
+ },
33
+ fr: {
34
+ titleBonuses: "Bonus actifs",
35
+ bonusCode: "Avez-vous un code bonus?",
36
+ getBonus: "Obtenir un bonus",
37
+ invalidBonusCode: "Le code bonus fourni n'est pas valide.",
38
+ noActiveBonuses: "Vous n'avez pas de bonus actifs pour le moment.",
39
+ forfeitBonus: "Etes-vous sûr de vouloir supprimer le bonus et ses gains?",
40
+ forfeitBonusConfirm: "Confirmer",
41
+ forfeitBonusCancel: "Annuler",
42
+ successMessage: "Bonus réclamé!",
43
+ errorMessage: "Bonus invalide"
44
+ },
45
+ ro: {
46
+ titleBonuses: "Bonusuri active",
47
+ bonusCode: "Ai un cod de bonus?",
48
+ getBonus: "Revendică",
49
+ invalidBonusCode: "Codul de bonus introdus este invalid.",
50
+ noActiveBonuses: "Nu ai niciun bonus activ în acest moment.",
51
+ forfeitBonus: "Ești sigur că vrei să anulezi acest bonus și câștigurile provenite din acest bonus?",
52
+ forfeitBonusConfirm: "Confirmă",
53
+ forfeitBonusCancel: "Anulează",
54
+ successMessage: "Bonus revendicat!",
55
+ errorMessage: "Bonus invalid"
56
+ },
57
+ es: {
58
+ titleBonuses: "Bonos Activos",
59
+ bonusCode: "Tienes un código de Bono?",
60
+ getBonus: "Obtener Bono",
61
+ invalidBonusCode: "El código del Bono no es válido.",
62
+ noActiveBonuses: "Usted no tiene Bonos activos en este momento.",
63
+ forfeitBonus: "Estas seguro que quieres perder el bono?",
64
+ forfeitBonusConfirm: "Confirmar",
65
+ forfeitBonusCancel: "Cancelar",
66
+ successMessage: "Bono adjudicado!",
67
+ errorMessage: "Bono invalido"
68
+ },
69
+ pt: {
70
+ titleBonuses: "Bônus Ativos",
71
+ bonusCode: "Você tem um código de bônus?",
72
+ getBonus: "Obter bônus",
73
+ invalidBonusCode: "O código de bônus fornecido é inválido.",
74
+ noActiveBonuses: "Você não tem bônus ativos no momento.",
75
+ forfeitBonus: "Tem certeza de que deseja perder o bônus e seus ganhos?",
76
+ forfeitBonusConfirm: "Confirmar",
77
+ forfeitBonusCancel: "Cancelar",
78
+ successMessage: "Bônus reivindicado!",
79
+ errorMessage: "Bônus inválido"
80
+ },
81
+ hr: {
82
+ titleBonuses: "Aktivni bonusi",
83
+ bonusCode: "Imate li bonus kod?",
84
+ getBonus: "Preuzmi bonus",
85
+ invalidBonusCode: "Navedeni bonus kod je nevažeći.",
86
+ noActiveBonuses: "Trenutno nemate aktivnih bonusa.",
87
+ forfeitBonus: "Jeste li sigurni da želite otkazati bonus?",
88
+ forfeitBonusConfirm: "Potvrdi",
89
+ forfeitBonusCancel: "Otkaži",
90
+ successMessage: "Preuzet bonus!",
91
+ errorMessage: "Nevažeći bonus"
92
+ },
93
+ "pt-br": {
94
+ titleBonuses: "Títulos ativos",
95
+ bonusCode: "Você tem um código de bônus?",
96
+ getBonus: "Reivindicar bônus",
97
+ invalidBonusCode: "O código de bônus emitido é inválido",
98
+ noActiveBonuses: "Não possui títulos ativos no momento",
99
+ forfeitBonus: "Tem certeza de que deseja recusar o bônus?",
100
+ forfeitBonusConfirm: "confirme",
101
+ forfeitBonusCancel: "Cancelar",
102
+ successMessage: "Bônus ativado",
103
+ errorMessage: "Voucher inválido"
104
+ },
105
+ "es-mx": {
106
+ titleBonuses: "Bonos activos",
107
+ bonusCode: "¿Tiene código de bonos?",
108
+ getBonus: "Reclamar bono",
109
+ invalidBonusCode: "El código de bono emitido es inválido",
110
+ noActiveBonuses: "No tiene bonos activos al momento",
111
+ forfeitBonus: "¿ Está seguro que quiere declinar el bono?",
112
+ forfeitBonusConfirm: "Confirmar",
113
+ forfeitBonusCancel: "Cancelar",
114
+ successMessage: "Bono activado",
115
+ errorMessage: "Bono inválido"
116
+ },
117
+ tr: {
118
+ titleBonuses: "Aktif Bonuslar",
119
+ bonusCode: "Bonus kodunuz var mı?",
120
+ getBonus: "Bonusu Al",
121
+ invalidBonusCode: "Sağlanan bonus kodu geçersiz.",
122
+ noActiveBonuses: "Şu anda aktif bonusunuz yok.",
123
+ forfeitBonus: "Bonusu kaybetmek istediğinizden emin misiniz?",
124
+ forfeitBonusConfirm: "Onaylamak",
125
+ forfeitBonusCancel: "İptal etmek",
126
+ successMessage: "Bonus talep edildi!",
127
+ errorMessage: "Geçersiz bonus"
128
+ }
129
+ };
130
+ if (typeof window != "undefined") {
131
+ let o = function(e) {
132
+ return function(...s) {
133
+ try {
134
+ return e.apply(this, s);
135
+ } catch (t) {
136
+ if (t instanceof DOMException && t.message.includes("has already been used with this registry") || t.message.includes("Cannot define multiple custom elements with the same tag name"))
137
+ return !1;
138
+ throw t;
139
+ }
140
+ };
141
+ };
142
+ customElements.define = o(customElements.define), import("./PlayerBonusCard-665KSNoF.js").then(({ default: e }) => {
143
+ !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
144
+ });
145
+ }
146
+ function je(o) {
147
+ Te(o, "svelte-1amqeev", ".ActiveBonusesWrapper.svelte-1amqeev.svelte-1amqeev{color:var(--emfe-w-pam-typography, var(--emfe-w-color-contrast, #07072A));padding:50px;max-width:850px}.ActiveBonusesWrapper.ActiveBonusesWrapperMobile.svelte-1amqeev.svelte-1amqeev{padding:20px 15px;max-width:unset}.MenuReturnButton.svelte-1amqeev.svelte-1amqeev{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:30px}.MenuReturnButton.svelte-1amqeev svg.svelte-1amqeev{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesTitle.svelte-1amqeev.svelte-1amqeev{font-size:26px;color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-weight:400}.ActiveBonusesTitleMobile.svelte-1amqeev.svelte-1amqeev{font-size:16px}.ActiveBonusesTitleNone.svelte-1amqeev.svelte-1amqeev{display:none}.BonusCodeContainer.svelte-1amqeev.svelte-1amqeev{color:var(--emfe-w-color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:30px;position:relative;width:70%}.BonusCodeContainer.svelte-1amqeev label.svelte-1amqeev{font-size:14px;font-weight:300;padding-bottom:5px}.BonusCodeContainer.BonusCodeContainerMobile.svelte-1amqeev.svelte-1amqeev{width:100%}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper.svelte-1amqeev{display:flex;gap:10px}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper.BonusCodeWrapperMobile.svelte-1amqeev{flex-direction:column}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .BonusCodeInput.svelte-1amqeev{width:70%;height:44px;border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-pam-contrast, var(--emfe-w-color-contrast, #07072A));border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .BonusCodeInput.svelte-1amqeev:focus{outline-color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .BonusCodeInput.BonusCodeInputMobile.svelte-1amqeev{width:100%}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .SubmitBonusCode.svelte-1amqeev{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-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.svelte-1amqeev .BonusCodeWrapper .SubmitBonusCode[disabled].svelte-1amqeev{opacity:0.3;cursor:not-allowed}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .SubmitBonusCode.SubmitBonusCodeMobile.svelte-1amqeev{width:100%}.BonusCodeContainer.svelte-1amqeev .BonusCodeWrapper .SubmitBonusCode.svelte-1amqeev:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.BonusCodeContainer.svelte-1amqeev .InvalidBonusCodeMessage.svelte-1amqeev{color:var(--emfe-w-color-error, var(--emfe-w-color-red, #FD2839))}.BonusCodeWrapper.svelte-1amqeev.svelte-1amqeev{display:flex;gap:20px}.SubmitBonusCode.svelte-1amqeev.svelte-1amqeev{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-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].svelte-1amqeev.svelte-1amqeev{opacity:0.3}.SubmitBonusCode.svelte-1amqeev.svelte-1amqeev:active{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C))}.ActiveBonusesGrid.svelte-1amqeev.svelte-1amqeev{display:grid;grid-template-columns:1fr 1fr;gap:50px}.ActiveBonusesGrid.ActiveBonusesGridMobile.svelte-1amqeev.svelte-1amqeev{grid-template-columns:1fr}.ModalWrapper.svelte-1amqeev.svelte-1amqeev{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:100}.ModalWrapper.svelte-1amqeev .ModalContent.svelte-1amqeev{background-color:var(--emfe-w-color-white, #FFFFFF);position:relative;padding:30px;border-top:5px solid var(--emfe-w-color-secondary, var(--emfe-w-color-secondary, #FD2839));border-radius:5px}.ModalWrapper.svelte-1amqeev .ModalBody.svelte-1amqeev{background-color:var(--emfe-w-color-gray-50, #F9F8F8);padding:30px;text-align:center}.ModalWrapper.svelte-1amqeev .ModalBody .ModalText.svelte-1amqeev{font-size:22px;margin-bottom:40px}.ModalWrapper.svelte-1amqeev .ModalBody .ModalButtons.svelte-1amqeev{display:flex;gap:36px}.ModalWrapper.svelte-1amqeev .ModalBody .ModalCancel.svelte-1amqeev,.ModalWrapper.svelte-1amqeev .ModalBody .ModalConfirm.svelte-1amqeev{background:transparent;border:1px solid var(--emfe-w-color-gray-300, #58586B);color:var(--emfe-w-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.svelte-1amqeev .ModalBody .ModalConfirm.svelte-1amqeev{background:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));border:1px solid var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));color:var(--emfe-w-button-typography, var(--emfe-w-color-white, #FFFFFF))}.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalContent.svelte-1amqeev{padding:20px;width:80vw;border-top:none}.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalBody.svelte-1amqeev{padding:0;background:transparent}.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalText.svelte-1amqeev{font-size:16px}.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalButtons.svelte-1amqeev{gap:10px}.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalCancel.svelte-1amqeev,.ModalWrapper.ModalWrapperMobile.svelte-1amqeev .ModalConfirm.svelte-1amqeev{height:40px;width:50%;font-size:14px}.BonusesPaginationWrapper.svelte-1amqeev.svelte-1amqeev{margin:40px 0;display:flex;justify-content:center}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile.svelte-1amqeev.svelte-1amqeev{text-align:center}.BonusesPaginationWrapper.svelte-1amqeev .BonusesFirst.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesPrev.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesNext.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesLast.svelte-1amqeev{color:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));font-size:16px;cursor:pointer;padding:5px 10px;font-weight:700}.BonusesPaginationWrapper.svelte-1amqeev .BonusesFirst.Inactive.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesPrev.Inactive.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesNext.Inactive.svelte-1amqeev,.BonusesPaginationWrapper.svelte-1amqeev .BonusesLast.Inactive.svelte-1amqeev{color:var(--emfe-w-color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper.svelte-1amqeev .BonusesPage.svelte-1amqeev{margin:0 5px;color:var(--emfe-w-color-gray-300, #58586B);font-size:16px;cursor:pointer;padding:5px 10px}.BonusesPaginationWrapper.svelte-1amqeev .BonusesPage.BonusPageActive.svelte-1amqeev{background-color:var(--emfe-w-color-white, #FFFFFF);font-weight:700}");
148
+ }
149
+ function le(o, e, s) {
150
+ const t = o.slice();
151
+ return t[46] = e[s], t[48] = s, t;
152
+ }
153
+ function ie(o, e, s) {
154
+ const t = o.slice();
155
+ return t[49] = e[s], t;
156
+ }
157
+ function Oe(o) {
158
+ let e, s, t, n = (
159
+ /*$_*/
160
+ o[14]("titleBonuses") + ""
161
+ ), l, a, p, u, d = (
162
+ /*$_*/
163
+ o[14]("bonusCode") + ""
164
+ ), _, m, g, y, F, C, w = (
165
+ /*$_*/
166
+ o[14]("getBonus") + ""
167
+ ), M, k, S, z, q, b, P, h, X, G = (
168
+ /*isMobile*/
169
+ o[15] && Ge(o)
170
+ ), I = (
171
+ /*invalidBonusCode*/
172
+ o[5] && re(o)
173
+ );
174
+ function Q(f, W) {
175
+ return (
176
+ /*activeBonusesList*/
177
+ f[12].length === 0 ? Ve : Ue
178
+ );
179
+ }
180
+ let Y = Q(o), O = Y(o), T = (
181
+ /*activeBonusesList*/
182
+ o[12].length !== 0 && ce(o)
183
+ ), E = (
184
+ /*bonusModal*/
185
+ o[13] && ve(o)
186
+ );
187
+ return {
188
+ c() {
189
+ e = B("div"), G && G.c(), s = L(), t = B("h2"), l = N(n), a = L(), p = B("div"), u = B("label"), _ = N(d), m = L(), g = B("div"), y = B("input"), F = L(), C = B("button"), M = N(w), k = L(), I && I.c(), S = L(), z = B("div"), O.c(), q = L(), T && T.c(), b = L(), E && E.c(), P = $(), c(t, "class", "ActiveBonusesTitle " + /*isMobile*/
190
+ (o[15] ? "ActiveBonusesTitleNone" : "") + " svelte-1amqeev"), c(u, "for", "BonusCode"), c(u, "class", "svelte-1amqeev"), c(y, "class", "BonusCodeInput " + /*isMobile*/
191
+ (o[15] ? "BonusCodeInputMobile" : "") + " svelte-1amqeev"), c(y, "type", "text"), c(y, "id", "BonusCode"), c(C, "class", "SubmitBonusCode " + /*isMobile*/
192
+ (o[15] ? "SubmitBonusCodeMobile" : "") + " svelte-1amqeev"), C.disabled = /*invalidBonusField*/
193
+ o[4], c(g, "class", "BonusCodeWrapper " + /*isMobile*/
194
+ (o[15] ? "BonusCodeWrapperMobile" : "") + " svelte-1amqeev"), c(p, "class", "BonusCodeContainer " + /*isMobile*/
195
+ (o[15] ? "BonusCodeContainerMobile" : "") + " svelte-1amqeev"), c(z, "class", "ActiveBonusesGrid " + /*isMobile*/
196
+ (o[15] ? "ActiveBonusesGridMobile" : "") + " svelte-1amqeev"), c(e, "class", "ActiveBonusesWrapper " + /*isMobile*/
197
+ (o[15] ? "ActiveBonusesWrapperMobile" : "") + " svelte-1amqeev"), c(e, "part", "ActiveBonusesWrapper " + /*isMobile*/
198
+ (o[15] ? "ActiveBonusesWrapperMobile" : ""));
199
+ },
200
+ m(f, W) {
201
+ R(f, e, W), G && G.m(e, null), r(e, s), r(e, t), r(t, l), r(e, a), r(e, p), r(p, u), r(u, _), r(p, m), r(p, g), r(g, y), ne(
202
+ y,
203
+ /*bonusCode*/
204
+ o[6]
205
+ ), r(g, F), r(g, C), r(C, M), r(p, k), I && I.m(p, null), r(e, S), r(e, z), O.m(z, null), r(e, q), T && T.m(e, null), R(f, b, W), E && E.m(f, W), R(f, P, W), h || (X = [
206
+ U(
207
+ y,
208
+ "input",
209
+ /*input_input_handler*/
210
+ o[29]
211
+ ),
212
+ U(
213
+ y,
214
+ "keyup",
215
+ /*validateBonusCode*/
216
+ o[17]
217
+ ),
218
+ U(
219
+ C,
220
+ "click",
221
+ /*debouncedFunction*/
222
+ o[22](
223
+ /*claimBonus*/
224
+ o[19]
225
+ )
226
+ )
227
+ ], h = !0);
228
+ },
229
+ p(f, W) {
230
+ /*isMobile*/
231
+ f[15] && G.p(f, W), W[0] & /*$_*/
232
+ 16384 && n !== (n = /*$_*/
233
+ f[14]("titleBonuses") + "") && H(l, n), W[0] & /*$_*/
234
+ 16384 && d !== (d = /*$_*/
235
+ f[14]("bonusCode") + "") && H(_, d), W[0] & /*bonusCode*/
236
+ 64 && y.value !== /*bonusCode*/
237
+ f[6] && ne(
238
+ y,
239
+ /*bonusCode*/
240
+ f[6]
241
+ ), W[0] & /*$_*/
242
+ 16384 && w !== (w = /*$_*/
243
+ f[14]("getBonus") + "") && H(M, w), W[0] & /*invalidBonusField*/
244
+ 16 && (C.disabled = /*invalidBonusField*/
245
+ f[4]), /*invalidBonusCode*/
246
+ f[5] ? I ? I.p(f, W) : (I = re(f), I.c(), I.m(p, null)) : I && (I.d(1), I = null), Y === (Y = Q(f)) && O ? O.p(f, W) : (O.d(1), O = Y(f), O && (O.c(), O.m(z, null))), /*activeBonusesList*/
247
+ f[12].length !== 0 ? T ? T.p(f, W) : (T = ce(f), T.c(), T.m(e, null)) : T && (T.d(1), T = null), /*bonusModal*/
248
+ f[13] ? E ? E.p(f, W) : (E = ve(f), E.c(), E.m(P.parentNode, P)) : E && (E.d(1), E = null);
249
+ },
250
+ d(f) {
251
+ f && (j(e), j(b), j(P)), G && G.d(), I && I.d(), O.d(), T && T.d(), E && E.d(f), h = !1, ee(X);
252
+ }
253
+ };
254
+ }
255
+ function Ge(o) {
256
+ let e, s, t, n, l, a, p, u, d, _, m = (
257
+ /*$_*/
258
+ o[14]("titleBonuses") + ""
259
+ ), g, y, F;
260
+ return {
261
+ c() {
262
+ e = B("div"), s = Z("svg"), t = Z("defs"), n = Z("style"), l = N(".aaa{fill:var(--emfe-w-pam-color-primary, var(--emfe-w-color-primary, #D0046C));}"), a = Z("g"), p = Z("g"), u = Z("path"), d = L(), _ = B("h2"), g = N(m), c(u, "class", "aaa"), c(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), c(u, "transform", "translate(15 15) rotate(180)"), c(p, "transform", "translate(20 158)"), c(a, "transform", "translate(-20 -158)"), c(s, "xmlns", "http://www.w3.org/2000/svg"), c(s, "width", "15"), c(s, "height", "15"), c(s, "viewBox", "0 0 15 15"), c(s, "class", "svelte-1amqeev"), c(_, "class", "ActiveBonusesTitleMobile svelte-1amqeev"), c(e, "class", "MenuReturnButton svelte-1amqeev");
263
+ },
264
+ m(C, w) {
265
+ R(C, e, w), r(e, s), r(s, t), r(t, n), r(n, l), r(s, a), r(a, p), r(p, u), r(e, d), r(e, _), r(_, g), y || (F = U(
266
+ e,
267
+ "click",
268
+ /*click_handler*/
269
+ o[28]
270
+ ), y = !0);
271
+ },
272
+ p(C, w) {
273
+ w[0] & /*$_*/
274
+ 16384 && m !== (m = /*$_*/
275
+ C[14]("titleBonuses") + "") && H(g, m);
276
+ },
277
+ d(C) {
278
+ C && j(e), y = !1, F();
279
+ }
280
+ };
281
+ }
282
+ function re(o) {
283
+ let e, s = (
284
+ /*$_*/
285
+ o[14]("invalidBonusCode") + ""
286
+ ), t;
287
+ return {
288
+ c() {
289
+ e = B("p"), t = N(s), c(e, "class", "InvalidBonusCodeMessage svelte-1amqeev");
290
+ },
291
+ m(n, l) {
292
+ R(n, e, l), r(e, t);
293
+ },
294
+ p(n, l) {
295
+ l[0] & /*$_*/
296
+ 16384 && s !== (s = /*$_*/
297
+ n[14]("invalidBonusCode") + "") && H(t, s);
298
+ },
299
+ d(n) {
300
+ n && j(e);
301
+ }
302
+ };
303
+ }
304
+ function Ue(o) {
305
+ let e, s = x(
306
+ /*activeBonusesList*/
307
+ o[12]
308
+ ), t = [];
309
+ for (let n = 0; n < s.length; n += 1)
310
+ t[n] = ue(ie(o, s, n));
311
+ return {
312
+ c() {
313
+ for (let n = 0; n < t.length; n += 1)
314
+ t[n].c();
315
+ e = $();
316
+ },
317
+ m(n, l) {
318
+ for (let a = 0; a < t.length; a += 1)
319
+ t[a] && t[a].m(n, l);
320
+ R(n, e, l);
321
+ },
322
+ p(n, l) {
323
+ if (l[0] & /*activeBonusesList, lang, clientstyling, clientstylingurl*/
324
+ 4103) {
325
+ s = x(
326
+ /*activeBonusesList*/
327
+ n[12]
328
+ );
329
+ let a;
330
+ for (a = 0; a < s.length; a += 1) {
331
+ const p = ie(n, s, a);
332
+ t[a] ? t[a].p(p, l) : (t[a] = ue(p), t[a].c(), t[a].m(e.parentNode, e));
333
+ }
334
+ for (; a < t.length; a += 1)
335
+ t[a].d(1);
336
+ t.length = s.length;
337
+ }
338
+ },
339
+ d(n) {
340
+ n && j(e), me(t, n);
341
+ }
342
+ };
343
+ }
344
+ function Ve(o) {
345
+ let e, s = (
346
+ /*$_*/
347
+ o[14]("noActiveBonuses") + ""
348
+ ), t;
349
+ return {
350
+ c() {
351
+ e = B("p"), t = N(s);
352
+ },
353
+ m(n, l) {
354
+ R(n, e, l), r(e, t);
355
+ },
356
+ p(n, l) {
357
+ l[0] & /*$_*/
358
+ 16384 && s !== (s = /*$_*/
359
+ n[14]("noActiveBonuses") + "") && H(t, s);
360
+ },
361
+ d(n) {
362
+ n && j(e);
363
+ }
364
+ };
365
+ }
366
+ function He(o) {
367
+ let e, s, t, n, l, a, p, u, d, _;
368
+ return {
369
+ c() {
370
+ e = B("player-bonus-card"), v(e, "bonuswalletid", s = /*activeBonus*/
371
+ o[49].walletId), v(e, "bonusdate", t = /*activeBonus*/
372
+ o[49].granted), v(e, "bonusstatus", n = /*activeBonus*/
373
+ o[49].status), v(e, "bonusname", l = /*activeBonus*/
374
+ o[49].name), v(e, "bonustype", a = /*activeBonus*/
375
+ o[49].type), v(e, "bonusamount", p = /*activeBonus*/
376
+ o[49].extension.grantedPlayerCurrencyAmount), v(e, "bonuswageringamount", u = `${/*activeBonus*/
377
+ o[49].fulfilledWR} / ${/*activeBonus*/
378
+ o[49].originalWageringRequirement}`), v(e, "bonusremainingamount", d = /*activeBonus*/
379
+ o[49].currentAmount), v(e, "bonuscurrency", _ = /*activeBonus*/
380
+ o[49].currency), v(
381
+ e,
382
+ "lang",
383
+ /*lang*/
384
+ o[0]
385
+ ), v(
386
+ e,
387
+ "clientstyling",
388
+ /*clientstyling*/
389
+ o[1]
390
+ ), v(
391
+ e,
392
+ "clientstylingurl",
393
+ /*clientstylingurl*/
394
+ o[2]
395
+ );
396
+ },
397
+ m(m, g) {
398
+ R(m, e, g);
399
+ },
400
+ p(m, g) {
401
+ g[0] & /*activeBonusesList*/
402
+ 4096 && s !== (s = /*activeBonus*/
403
+ m[49].walletId) && v(e, "bonuswalletid", s), g[0] & /*activeBonusesList*/
404
+ 4096 && t !== (t = /*activeBonus*/
405
+ m[49].granted) && v(e, "bonusdate", t), g[0] & /*activeBonusesList*/
406
+ 4096 && n !== (n = /*activeBonus*/
407
+ m[49].status) && v(e, "bonusstatus", n), g[0] & /*activeBonusesList*/
408
+ 4096 && l !== (l = /*activeBonus*/
409
+ m[49].name) && v(e, "bonusname", l), g[0] & /*activeBonusesList*/
410
+ 4096 && a !== (a = /*activeBonus*/
411
+ m[49].type) && v(e, "bonustype", a), g[0] & /*activeBonusesList*/
412
+ 4096 && p !== (p = /*activeBonus*/
413
+ m[49].extension.grantedPlayerCurrencyAmount) && v(e, "bonusamount", p), g[0] & /*activeBonusesList*/
414
+ 4096 && u !== (u = `${/*activeBonus*/
415
+ m[49].fulfilledWR} / ${/*activeBonus*/
416
+ m[49].originalWageringRequirement}`) && v(e, "bonuswageringamount", u), g[0] & /*activeBonusesList*/
417
+ 4096 && d !== (d = /*activeBonus*/
418
+ m[49].currentAmount) && v(e, "bonusremainingamount", d), g[0] & /*activeBonusesList*/
419
+ 4096 && _ !== (_ = /*activeBonus*/
420
+ m[49].currency) && v(e, "bonuscurrency", _), g[0] & /*lang*/
421
+ 1 && v(
422
+ e,
423
+ "lang",
424
+ /*lang*/
425
+ m[0]
426
+ ), g[0] & /*clientstyling*/
427
+ 2 && v(
428
+ e,
429
+ "clientstyling",
430
+ /*clientstyling*/
431
+ m[1]
432
+ ), g[0] & /*clientstylingurl*/
433
+ 4 && v(
434
+ e,
435
+ "clientstylingurl",
436
+ /*clientstylingurl*/
437
+ m[2]
438
+ );
439
+ },
440
+ d(m) {
441
+ m && j(e);
442
+ }
443
+ };
444
+ }
445
+ function Xe(o) {
446
+ let e, s, t, n, l, a, p;
447
+ return {
448
+ c() {
449
+ e = B("player-bonus-card"), v(e, "bonuswalletid", s = /*activeBonus*/
450
+ o[49].walletId), v(e, "bonusdate", t = /*activeBonus*/
451
+ o[49].granted), v(e, "bonusstatus", n = /*activeBonus*/
452
+ o[49].status), v(e, "bonusname", l = /*activeBonus*/
453
+ o[49].name), v(e, "bonustype", a = /*activeBonus*/
454
+ o[49].type), v(e, "bonuscurrency", p = /*activeBonus*/
455
+ o[49].currency), v(
456
+ e,
457
+ "lang",
458
+ /*lang*/
459
+ o[0]
460
+ ), v(
461
+ e,
462
+ "clientstyling",
463
+ /*clientstyling*/
464
+ o[1]
465
+ ), v(
466
+ e,
467
+ "clientstylingurl",
468
+ /*clientstylingurl*/
469
+ o[2]
470
+ );
471
+ },
472
+ m(u, d) {
473
+ R(u, e, d);
474
+ },
475
+ p(u, d) {
476
+ d[0] & /*activeBonusesList*/
477
+ 4096 && s !== (s = /*activeBonus*/
478
+ u[49].walletId) && v(e, "bonuswalletid", s), d[0] & /*activeBonusesList*/
479
+ 4096 && t !== (t = /*activeBonus*/
480
+ u[49].granted) && v(e, "bonusdate", t), d[0] & /*activeBonusesList*/
481
+ 4096 && n !== (n = /*activeBonus*/
482
+ u[49].status) && v(e, "bonusstatus", n), d[0] & /*activeBonusesList*/
483
+ 4096 && l !== (l = /*activeBonus*/
484
+ u[49].name) && v(e, "bonusname", l), d[0] & /*activeBonusesList*/
485
+ 4096 && a !== (a = /*activeBonus*/
486
+ u[49].type) && v(e, "bonustype", a), d[0] & /*activeBonusesList*/
487
+ 4096 && p !== (p = /*activeBonus*/
488
+ u[49].currency) && v(e, "bonuscurrency", p), d[0] & /*lang*/
489
+ 1 && v(
490
+ e,
491
+ "lang",
492
+ /*lang*/
493
+ u[0]
494
+ ), d[0] & /*clientstyling*/
495
+ 2 && v(
496
+ e,
497
+ "clientstyling",
498
+ /*clientstyling*/
499
+ u[1]
500
+ ), d[0] & /*clientstylingurl*/
501
+ 4 && v(
502
+ e,
503
+ "clientstylingurl",
504
+ /*clientstylingurl*/
505
+ u[2]
506
+ );
507
+ },
508
+ d(u) {
509
+ u && j(e);
510
+ }
511
+ };
512
+ }
513
+ function ue(o) {
514
+ let e;
515
+ function s(l, a) {
516
+ return (
517
+ /*activeBonus*/
518
+ l[49].type === "freeRound" ? Xe : He
519
+ );
520
+ }
521
+ let t = s(o), n = t(o);
522
+ return {
523
+ c() {
524
+ n.c(), e = $();
525
+ },
526
+ m(l, a) {
527
+ n.m(l, a), R(l, e, a);
528
+ },
529
+ p(l, a) {
530
+ t === (t = s(l)) && n ? n.p(l, a) : (n.d(1), n = t(l), n && (n.c(), n.m(e.parentNode, e)));
531
+ },
532
+ d(l) {
533
+ l && j(e), n.d(l);
534
+ }
535
+ };
536
+ }
537
+ function ce(o) {
538
+ let e, s, t, n, l, a, p, u, d, _, m, g, y, F, C, w, M, k, S, z = x(Array(
539
+ /*numberOfPages*/
540
+ o[10]
541
+ )), q = [];
542
+ for (let b = 0; b < z.length; b += 1)
543
+ q[b] = de(le(o, z, b));
544
+ return {
545
+ c() {
546
+ e = B("div"), s = B("span"), t = N("|<"), l = L(), a = B("span"), p = N("<"), d = L();
547
+ for (let b = 0; b < q.length; b += 1)
548
+ q[b].c();
549
+ _ = L(), m = B("span"), g = N(">"), F = L(), C = B("span"), w = N(">|"), c(s, "class", n = "BonusesFirst " + /*currentPage*/
550
+ (o[11] === 0 ? "Inactive" : "") + " svelte-1amqeev"), c(a, "class", u = "BonusesPrev " + /*currentPage*/
551
+ (o[11] === 0 ? "Inactive" : "") + " svelte-1amqeev"), c(m, "class", y = "BonusesNext " + /*currentPage*/
552
+ (o[11] === /*numberOfPages*/
553
+ o[10] - 1 ? "Inactive" : "") + " svelte-1amqeev"), c(C, "class", M = "BonusesLast " + /*currentPage*/
554
+ (o[11] === /*numberOfPages*/
555
+ o[10] - 1 ? "Inactive" : "") + " svelte-1amqeev"), c(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
556
+ (o[15] ? "BonusesPaginationWrapperMobile" : "") + " svelte-1amqeev");
557
+ },
558
+ m(b, P) {
559
+ R(b, e, P), r(e, s), r(s, t), r(e, l), r(e, a), r(a, p), r(e, d);
560
+ for (let h = 0; h < q.length; h += 1)
561
+ q[h] && q[h].m(e, null);
562
+ r(e, _), r(e, m), r(m, g), r(e, F), r(e, C), r(C, w), k || (S = [
563
+ U(
564
+ s,
565
+ "click",
566
+ /*click_handler_1*/
567
+ o[30]
568
+ ),
569
+ U(
570
+ a,
571
+ "click",
572
+ /*click_handler_2*/
573
+ o[31]
574
+ ),
575
+ U(
576
+ m,
577
+ "click",
578
+ /*click_handler_4*/
579
+ o[33]
580
+ ),
581
+ U(
582
+ C,
583
+ "click",
584
+ /*click_handler_5*/
585
+ o[34]
586
+ )
587
+ ], k = !0);
588
+ },
589
+ p(b, P) {
590
+ if (P[0] & /*currentPage*/
591
+ 2048 && n !== (n = "BonusesFirst " + /*currentPage*/
592
+ (b[11] === 0 ? "Inactive" : "") + " svelte-1amqeev") && c(s, "class", n), P[0] & /*currentPage*/
593
+ 2048 && u !== (u = "BonusesPrev " + /*currentPage*/
594
+ (b[11] === 0 ? "Inactive" : "") + " svelte-1amqeev") && c(a, "class", u), P[0] & /*currentPage, getActiveBonuses, numberOfPages*/
595
+ 265216) {
596
+ z = x(Array(
597
+ /*numberOfPages*/
598
+ b[10]
599
+ ));
600
+ let h;
601
+ for (h = 0; h < z.length; h += 1) {
602
+ const X = le(b, z, h);
603
+ q[h] ? q[h].p(X, P) : (q[h] = de(X), q[h].c(), q[h].m(e, _));
604
+ }
605
+ for (; h < q.length; h += 1)
606
+ q[h].d(1);
607
+ q.length = z.length;
608
+ }
609
+ P[0] & /*currentPage, numberOfPages*/
610
+ 3072 && y !== (y = "BonusesNext " + /*currentPage*/
611
+ (b[11] === /*numberOfPages*/
612
+ b[10] - 1 ? "Inactive" : "") + " svelte-1amqeev") && c(m, "class", y), P[0] & /*currentPage, numberOfPages*/
613
+ 3072 && M !== (M = "BonusesLast " + /*currentPage*/
614
+ (b[11] === /*numberOfPages*/
615
+ b[10] - 1 ? "Inactive" : "") + " svelte-1amqeev") && c(C, "class", M);
616
+ },
617
+ d(b) {
618
+ b && j(e), me(q, b), k = !1, ee(S);
619
+ }
620
+ };
621
+ }
622
+ function de(o) {
623
+ let e, s = (
624
+ /*i*/
625
+ o[48] + 1 + ""
626
+ ), t, n, l, a;
627
+ function p() {
628
+ return (
629
+ /*click_handler_3*/
630
+ o[32](
631
+ /*i*/
632
+ o[48]
633
+ )
634
+ );
635
+ }
636
+ return {
637
+ c() {
638
+ e = B("span"), t = N(s), c(e, "class", n = "BonusesPage " + /*i*/
639
+ (o[48] === /*currentPage*/
640
+ o[11] ? "BonusPageActive" : "") + " svelte-1amqeev");
641
+ },
642
+ m(u, d) {
643
+ R(u, e, d), r(e, t), l || (a = U(e, "click", p), l = !0);
644
+ },
645
+ p(u, d) {
646
+ o = u, d[0] & /*currentPage*/
647
+ 2048 && n !== (n = "BonusesPage " + /*i*/
648
+ (o[48] === /*currentPage*/
649
+ o[11] ? "BonusPageActive" : "") + " svelte-1amqeev") && c(e, "class", n);
650
+ },
651
+ d(u) {
652
+ u && j(e), l = !1, a();
653
+ }
654
+ };
655
+ }
656
+ function ve(o) {
657
+ let e, s, t, n, l = (
658
+ /*$_*/
659
+ o[14]("forfeitBonus") + ""
660
+ ), a, p, u, d, _ = (
661
+ /*$_*/
662
+ o[14]("forfeitBonusCancel") + ""
663
+ ), m, g, y, F = (
664
+ /*$_*/
665
+ o[14]("forfeitBonusConfirm") + ""
666
+ ), C, w, M;
667
+ return {
668
+ c() {
669
+ e = B("div"), s = B("div"), t = B("div"), n = B("p"), a = N(l), p = L(), u = B("div"), d = B("button"), m = N(_), g = L(), y = B("button"), C = N(F), c(n, "class", "ModalText svelte-1amqeev"), c(d, "class", "ModalCancel svelte-1amqeev"), c(y, "class", "ModalConfirm svelte-1amqeev"), c(u, "class", "ModalButtons svelte-1amqeev"), c(t, "class", "ModalBody svelte-1amqeev"), c(s, "class", "ModalContent svelte-1amqeev"), c(e, "class", "ModalWrapper " + /*isMobile*/
670
+ (o[15] ? "ModalWrapperMobile" : "") + " svelte-1amqeev");
671
+ },
672
+ m(k, S) {
673
+ R(k, e, S), r(e, s), r(s, t), r(t, n), r(n, a), r(t, p), r(t, u), r(u, d), r(d, m), r(u, g), r(u, y), r(y, C), w || (M = [
674
+ U(
675
+ d,
676
+ "click",
677
+ /*closeBonusModal*/
678
+ o[20]
679
+ ),
680
+ U(
681
+ y,
682
+ "click",
683
+ /*debouncedFunction*/
684
+ o[22](
685
+ /*deleteBonus*/
686
+ o[21]
687
+ )
688
+ )
689
+ ], w = !0);
690
+ },
691
+ p(k, S) {
692
+ S[0] & /*$_*/
693
+ 16384 && l !== (l = /*$_*/
694
+ k[14]("forfeitBonus") + "") && H(a, l), S[0] & /*$_*/
695
+ 16384 && _ !== (_ = /*$_*/
696
+ k[14]("forfeitBonusCancel") + "") && H(m, _), S[0] & /*$_*/
697
+ 16384 && F !== (F = /*$_*/
698
+ k[14]("forfeitBonusConfirm") + "") && H(C, F);
699
+ },
700
+ d(k) {
701
+ k && j(e), w = !1, ee(M);
702
+ }
703
+ };
704
+ }
705
+ function Je(o) {
706
+ let e;
707
+ function s(l, a) {
708
+ return Oe;
709
+ }
710
+ let n = s()(o);
711
+ return {
712
+ c() {
713
+ e = B("div"), n.c();
714
+ },
715
+ m(l, a) {
716
+ R(l, e, a), n.m(e, null), o[35](e);
717
+ },
718
+ p(l, a) {
719
+ n.p(l, a);
720
+ },
721
+ i: se,
722
+ o: se,
723
+ d(l) {
724
+ l && j(e), n.d(), o[35](null);
725
+ }
726
+ };
727
+ }
728
+ let Ke = "status=active", V = 6;
729
+ function Ye(o, e, s) {
730
+ let t;
731
+ Ee(o, Ne, (i) => s(14, t = i));
732
+ let { endpoint: n = "" } = e, { session: l = "" } = e, { playerid: a = "" } = e, { lang: p = "en" } = e, { playercurrency: u = "" } = e, { clientstyling: d = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: m = "" } = e, g, y = window.navigator.userAgent, F = De(y) !== "PC", C = !0, w = !1, M = "", k = 0, S = 0, z = 0, q = 0, b = 0, P = [], h, X = "", G = !1;
733
+ const I = () => {
734
+ fetch(m).then((A) => A.json()).then((A) => {
735
+ Object.keys(A).forEach((D) => {
736
+ te(D, A[D]);
737
+ });
738
+ }).catch((A) => {
739
+ console.log(A);
740
+ });
741
+ };
742
+ Object.keys(ae).forEach((i) => {
743
+ te(i, ae[i]);
744
+ });
745
+ const Q = (i) => {
746
+ if (i.data)
747
+ switch (i.data.type) {
748
+ case "DeleteActiveBonus":
749
+ X = i.data.bonuswalletid, s(13, G = !0);
750
+ break;
751
+ }
752
+ };
753
+ function Y(i, A) {
754
+ return (...D) => {
755
+ clearTimeout(h), h = setTimeout(
756
+ () => {
757
+ i.apply(this, D);
758
+ },
759
+ A
760
+ );
761
+ };
762
+ }
763
+ const O = () => {
764
+ window.postMessage(
765
+ {
766
+ type: "PlayerAccountMenuActive",
767
+ isMobile: F
768
+ },
769
+ window.location.href
770
+ );
771
+ }, T = () => !!M, E = () => {
772
+ s(4, C = !T());
773
+ }, f = (i) => {
774
+ let A = {
775
+ method: "GET",
776
+ headers: { "X-SessionId": l }
777
+ }, D = new URL(`${n}/v1/player/${a}/bonusWallet`);
778
+ D.searchParams.append("filter", Ke), D.searchParams.append("pagination", `offset=${i},limit=${V}`), fetch(D, A).then((K) => K.json()).then(
779
+ (K) => {
780
+ s(10, q = Math.ceil(K.total / V)), i - V >= 0 && s(7, k = i - V), i + V < K.total && s(8, S = i + V), s(9, z = (q - 1) * V), s(11, b = i / V), s(12, P = K.items), window.scrollTo({ top: 0, behavior: "smooth" });
781
+ },
782
+ (K) => {
783
+ console.error(K);
784
+ }
785
+ );
786
+ }, W = () => {
787
+ let i = new URL(`${n}/v1/player/${a}/claimbonus`), A = {
788
+ method: "POST",
789
+ headers: {
790
+ "X-SessionId": l,
791
+ accept: "application/json"
792
+ }
793
+ };
794
+ i.searchParams.append("currency", u), i.searchParams.append("bonusCode", M), fetch(i.href, A).then((D) => {
795
+ D.status == 200 ? (s(5, w = !1), f(0), window.postMessage(
796
+ {
797
+ type: "WidgetNotification",
798
+ data: {
799
+ type: "success",
800
+ message: t("successMessage")
801
+ }
802
+ },
803
+ window.location.href
804
+ ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
805
+ context: "PlayerActiveBonuses",
806
+ userId: `${a || "Not logged in"}`,
807
+ bonusCode: `${M}`
808
+ })) : (s(5, w = !0), window.postMessage(
809
+ {
810
+ type: "WidgetNotification",
811
+ data: {
812
+ type: "error",
813
+ message: t("errorMessage")
814
+ }
815
+ },
816
+ window.location.href
817
+ ));
818
+ });
819
+ }, oe = () => {
820
+ window.postMessage({ type: "EnableScroll" }, window.location.href), s(13, G = !1);
821
+ }, pe = () => {
822
+ let i = {
823
+ method: "DELETE",
824
+ headers: {
825
+ "X-SessionId": l,
826
+ "Content-Type": "application/json",
827
+ Accept: "application/json"
828
+ }
829
+ }, A = new URL(`${n}/v1/player/${a}/bonusWallet`);
830
+ A.searchParams.append("bonusWalletID", X), fetch(A, i).then((D) => {
831
+ D.status == 200 && (f(0), oe());
832
+ });
833
+ }, fe = () => {
834
+ Re(p);
835
+ }, ge = () => {
836
+ let i = document.createElement("style");
837
+ i.innerHTML = d, g.appendChild(i);
838
+ }, be = () => {
839
+ let i = new URL(_), A = document.createElement("style");
840
+ fetch(i.href).then((D) => D.text()).then((D) => {
841
+ A.innerHTML = D, setTimeout(
842
+ () => {
843
+ g.appendChild(A);
844
+ },
845
+ 1
846
+ );
847
+ });
848
+ };
849
+ function Be(i) {
850
+ return Y(i, 1e3);
851
+ }
852
+ Se(() => (window.addEventListener("message", Q, !1), () => {
853
+ window.removeEventListener("message", Q);
854
+ }));
855
+ const _e = () => O();
856
+ function ye() {
857
+ M = this.value, s(6, M);
858
+ }
859
+ const Ce = () => f(0), he = () => f(k), qe = (i) => f(i * V), we = () => f(S), Me = () => f(z);
860
+ function ke(i) {
861
+ Le[i ? "unshift" : "push"](() => {
862
+ g = i, s(3, g);
863
+ });
864
+ }
865
+ return o.$$set = (i) => {
866
+ "endpoint" in i && s(23, n = i.endpoint), "session" in i && s(24, l = i.session), "playerid" in i && s(25, a = i.playerid), "lang" in i && s(0, p = i.lang), "playercurrency" in i && s(26, u = i.playercurrency), "clientstyling" in i && s(1, d = i.clientstyling), "clientstylingurl" in i && s(2, _ = i.clientstylingurl), "translationurl" in i && s(27, m = i.translationurl);
867
+ }, o.$$.update = () => {
868
+ o.$$.dirty[0] & /*lang*/
869
+ 1 && p && fe(), o.$$.dirty[0] & /*session, playerid, endpoint*/
870
+ 58720256 && l && a && n && f(0), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
871
+ 12 && _ && g && be(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
872
+ 10 && d && g && ge(), o.$$.dirty[0] & /*translationurl*/
873
+ 134217728 && m && I();
874
+ }, [
875
+ p,
876
+ d,
877
+ _,
878
+ g,
879
+ C,
880
+ w,
881
+ M,
882
+ k,
883
+ S,
884
+ z,
885
+ q,
886
+ b,
887
+ P,
888
+ G,
889
+ t,
890
+ F,
891
+ O,
892
+ E,
893
+ f,
894
+ W,
895
+ oe,
896
+ pe,
897
+ Be,
898
+ n,
899
+ l,
900
+ a,
901
+ u,
902
+ m,
903
+ _e,
904
+ ye,
905
+ Ce,
906
+ he,
907
+ qe,
908
+ we,
909
+ Me,
910
+ ke
911
+ ];
912
+ }
913
+ class Ze extends Pe {
914
+ constructor(e) {
915
+ super(), Fe(
916
+ this,
917
+ e,
918
+ Ye,
919
+ Je,
920
+ Ie,
921
+ {
922
+ endpoint: 23,
923
+ session: 24,
924
+ playerid: 25,
925
+ lang: 0,
926
+ playercurrency: 26,
927
+ clientstyling: 1,
928
+ clientstylingurl: 2,
929
+ translationurl: 27
930
+ },
931
+ je,
932
+ [-1, -1]
933
+ );
934
+ }
935
+ get endpoint() {
936
+ return this.$$.ctx[23];
937
+ }
938
+ set endpoint(e) {
939
+ this.$$set({ endpoint: e }), J();
940
+ }
941
+ get session() {
942
+ return this.$$.ctx[24];
943
+ }
944
+ set session(e) {
945
+ this.$$set({ session: e }), J();
946
+ }
947
+ get playerid() {
948
+ return this.$$.ctx[25];
949
+ }
950
+ set playerid(e) {
951
+ this.$$set({ playerid: e }), J();
952
+ }
953
+ get lang() {
954
+ return this.$$.ctx[0];
955
+ }
956
+ set lang(e) {
957
+ this.$$set({ lang: e }), J();
958
+ }
959
+ get playercurrency() {
960
+ return this.$$.ctx[26];
961
+ }
962
+ set playercurrency(e) {
963
+ this.$$set({ playercurrency: e }), J();
964
+ }
965
+ get clientstyling() {
966
+ return this.$$.ctx[1];
967
+ }
968
+ set clientstyling(e) {
969
+ this.$$set({ clientstyling: e }), J();
970
+ }
971
+ get clientstylingurl() {
972
+ return this.$$.ctx[2];
973
+ }
974
+ set clientstylingurl(e) {
975
+ this.$$set({ clientstylingurl: e }), J();
976
+ }
977
+ get translationurl() {
978
+ return this.$$.ctx[27];
979
+ }
980
+ set translationurl(e) {
981
+ this.$$set({ translationurl: e }), J();
982
+ }
983
+ }
984
+ ze(Ze, { endpoint: {}, session: {}, playerid: {}, lang: {}, playercurrency: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
985
+ export {
986
+ Ze as default
987
+ };