@everymatrix/player-account-controller 1.84.0 → 1.84.2

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 (26) hide show
  1. package/components/{PlayerAccountController-DEjNQ6Ao.js → PlayerAccountController-CrpFoduD.js} +3 -3
  2. package/components/{PlayerAccountController-CKRlstvy.js → PlayerAccountController-DJf4iSXq.js} +3 -3
  3. package/components/{PlayerAccountController-D3RDR1XH.cjs → PlayerAccountController-Ew7s0_-Q.cjs} +1 -1
  4. package/components/PlayerActiveBonuses-38roPJXA.js +1207 -0
  5. package/components/PlayerActiveBonuses-DH17Iq7o.js +1206 -0
  6. package/components/PlayerActiveBonuses-DX-safGT.cjs +4 -0
  7. package/components/{PlayerBonusCard-D1_h0ufF.js → PlayerBonusCard-DaWKZYJV.js} +256 -244
  8. package/components/{PlayerBonusCard-Pk-Mt-54.js → PlayerBonusCard-jqLOiuCg.js} +256 -244
  9. package/components/PlayerBonusCard-xfAuBBZg.cjs +1 -0
  10. package/components/{PlayerBonusHistory-DTKcE9NW.js → PlayerBonusHistory-B6rov_Zt.js} +1 -1
  11. package/components/{PlayerBonusHistory-B2L5Fq4P.js → PlayerBonusHistory-CjOGYL2N.js} +1 -1
  12. package/components/{PlayerBonusHistory-CLxoDC1s.cjs → PlayerBonusHistory-DwTJXnss.cjs} +1 -1
  13. package/es2015/player-account-controller.cjs +1 -1
  14. package/es2015/player-account-controller.js +1 -1
  15. package/esnext/player-account-controller.js +1 -1
  16. package/package.json +1 -1
  17. package/stencil/{index-1ef3a64c-ytxvUp8r.js → index-1ef3a64c-ClO39zA1.js} +1 -1
  18. package/stencil/{index-1ef3a64c-BqQE4h4h.js → index-1ef3a64c-CsZfHx4H.js} +1 -1
  19. package/stencil/{index-1ef3a64c-B-PcVEji.cjs → index-1ef3a64c-qnxtXxeQ.cjs} +1 -1
  20. package/stencil/{user-deposit-withdrawal-C772fCVY.js → user-deposit-withdrawal-B87pfI3a.js} +19 -19
  21. package/stencil/{user-deposit-withdrawal-e1UN_bRt.js → user-deposit-withdrawal-ChgqAKLS.js} +29 -29
  22. package/stencil/{user-deposit-withdrawal-zKsoSCR7.cjs → user-deposit-withdrawal-Ds4dygdb.cjs} +2 -2
  23. package/components/PlayerActiveBonuses-BkrmRtXy.js +0 -1175
  24. package/components/PlayerActiveBonuses-DXnTF28u.cjs +0 -4
  25. package/components/PlayerActiveBonuses-HUSqkX9T.js +0 -1176
  26. package/components/PlayerBonusCard-D7W60_rZ.cjs +0 -1
@@ -0,0 +1,1207 @@
1
+ import { a as Le, $ as Ne, S as Re, i as je, s as De, f as V, b as Oe, n as ne, d as N, r as oe, c as J, V as ue, h as R, j as c, l as H, k as M, m as T, t as L, e as B, p as qe, q as Ge, u as Ve, v as K, w as Ue, H as se, C as ee, D as _e, g as s, x as He, y as Xe, z as Ye, A as Je, B as Ze } from "./GeneralLogout-CShGWvvZ.js";
2
+ function de(n, e) {
3
+ Le(n, e);
4
+ }
5
+ function Ke(n) {
6
+ Ne.set(n);
7
+ }
8
+ const ce = {
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
+ bonusClaimSuccessMessage: "Bonus claimed!",
19
+ bonusClaimErrorMessage: "Invalid bonus"
20
+ },
21
+ "zh-hk": {
22
+ titleBonuses: "活躍獎金",
23
+ bonusCode: "你有獎金代碼嗎?",
24
+ getBonus: "獲得獎金",
25
+ invalidBonusCode: "提供的紅利代碼無效。",
26
+ noActiveBonuses: "您目前沒有有效的獎金。",
27
+ forfeitBonus: "您確定要放棄獎金及其獎金嗎?",
28
+ forfeitBonusConfirm: "確認",
29
+ forfeitBonusCancel: "取消",
30
+ bonusClaimSuccessMessage: "獎金要求!",
31
+ bonusClaimErrorMessage: "無效獎金"
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
+ bonusClaimSuccessMessage: "Bonus réclamé!",
43
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bonus revendicat!",
55
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bono adjudicado!",
67
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bônus reivindicado!",
79
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Preuzet bonus!",
91
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bônus ativado",
103
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bono activado",
115
+ bonusClaimErrorMessage: "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
+ bonusClaimSuccessMessage: "Bonus talep edildi!",
127
+ bonusClaimErrorMessage: "Geçersiz bonus"
128
+ },
129
+ "en-us": {
130
+ titleBonuses: "Active Bonuses",
131
+ bonusCode: "Do you have a bonus code?",
132
+ getBonus: "Get Bonus",
133
+ invalidBonusCode: "The bonus code provided is invalid.",
134
+ noActiveBonuses: "You have no active bonuses at the moment.",
135
+ forfeitBonus: "Are you sure want to forfeit bonus?",
136
+ forfeitBonusConfirm: "Confirm",
137
+ forfeitBonusCancel: "Cancel",
138
+ bonusClaimSuccessMessage: "Bonus claimed!",
139
+ bonusClaimErrorMessage: "Invalid bonus"
140
+ }
141
+ };
142
+ if (typeof window != "undefined") {
143
+ let n = function(e) {
144
+ return function(...o) {
145
+ try {
146
+ return e.apply(this, o);
147
+ } catch (t) {
148
+ 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"))
149
+ return !1;
150
+ throw t;
151
+ }
152
+ };
153
+ };
154
+ customElements.define = n(customElements.define), import("./PlayerBonusCard-DaWKZYJV.js").then(({ default: e }) => {
155
+ !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
156
+ });
157
+ }
158
+ function Qe(n) {
159
+ 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)}}');
160
+ }
161
+ function pe(n, e, o) {
162
+ const t = n.slice();
163
+ return t[51] = e[o], t[53] = o, t;
164
+ }
165
+ function me(n, e, o) {
166
+ const t = n.slice();
167
+ return t[54] = e[o], t;
168
+ }
169
+ function xe(n) {
170
+ let e, o, t, i, r, a, m, l, b, h, _ = (
171
+ /*$_*/
172
+ n[20]("titleBonuses") + ""
173
+ ), A, v, y;
174
+ return {
175
+ c() {
176
+ e = M("div"), o = K("svg"), t = K("defs"), i = K("style"), r = L(`.aaa {
177
+ fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
178
+ }
179
+ `), a = K("g"), m = K("g"), l = K("path"), b = T(), h = M("h2"), A = L(_), 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(a, "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(h, "class", "ActiveBonusesTitleMobile"), B(e, "class", "MenuReturnButton");
180
+ },
181
+ m(C, d) {
182
+ R(C, e, d), c(e, o), c(o, t), c(t, i), c(i, r), c(o, a), c(a, m), c(m, l), c(e, b), c(e, h), c(h, A), v || (y = H(
183
+ e,
184
+ "click",
185
+ /*click_handler*/
186
+ n[33]
187
+ ), v = !0);
188
+ },
189
+ p(C, d) {
190
+ d[0] & /*$_*/
191
+ 1048576 && _ !== (_ = /*$_*/
192
+ C[20]("titleBonuses") + "") && J(A, _);
193
+ },
194
+ d(C) {
195
+ C && N(e), v = !1, y();
196
+ }
197
+ };
198
+ }
199
+ function fe(n) {
200
+ let e, o = (
201
+ /*$_*/
202
+ n[20]("invalidBonusCode") + ""
203
+ ), t;
204
+ return {
205
+ c() {
206
+ e = M("p"), t = L(o), B(e, "class", "InvalidBonusCodeMessage");
207
+ },
208
+ m(i, r) {
209
+ R(i, e, r), c(e, t);
210
+ },
211
+ p(i, r) {
212
+ r[0] & /*$_*/
213
+ 1048576 && o !== (o = /*$_*/
214
+ i[20]("invalidBonusCode") + "") && J(t, o);
215
+ },
216
+ d(i) {
217
+ i && N(e);
218
+ }
219
+ };
220
+ }
221
+ function $e(n) {
222
+ let e, o, t;
223
+ function i(l, b) {
224
+ return (
225
+ /*activeBonusesList*/
226
+ l[18].length === 0 ? on : nn
227
+ );
228
+ }
229
+ let r = i(n), a = r(n), m = (
230
+ /*activeBonusesList*/
231
+ n[18].length !== 0 && ge(n)
232
+ );
233
+ return {
234
+ c() {
235
+ e = M("div"), a.c(), o = T(), m && m.c(), t = se(), B(e, "class", "ActiveBonusesGrid " + /*isMobile*/
236
+ (n[21] ? "ActiveBonusesGridMobile" : ""));
237
+ },
238
+ m(l, b) {
239
+ R(l, e, b), a.m(e, null), R(l, o, b), m && m.m(l, b), R(l, t, b);
240
+ },
241
+ p(l, b) {
242
+ r === (r = i(l)) && a ? a.p(l, b) : (a.d(1), a = r(l), a && (a.c(), a.m(e, null))), /*activeBonusesList*/
243
+ l[18].length !== 0 ? m ? m.p(l, b) : (m = ge(l), m.c(), m.m(t.parentNode, t)) : m && (m.d(1), m = null);
244
+ },
245
+ d(l) {
246
+ l && (N(e), N(o), N(t)), a.d(), m && m.d(l);
247
+ }
248
+ };
249
+ }
250
+ function en(n) {
251
+ let e;
252
+ return {
253
+ c() {
254
+ e = M("div"), B(e, "class", "ModalLoader"), B(e, "part", "ModalLoader");
255
+ },
256
+ m(o, t) {
257
+ R(o, e, t);
258
+ },
259
+ p: ne,
260
+ d(o) {
261
+ o && N(e);
262
+ }
263
+ };
264
+ }
265
+ function nn(n) {
266
+ let e, o = ee(
267
+ /*activeBonusesList*/
268
+ n[18]
269
+ ), t = [];
270
+ for (let i = 0; i < o.length; i += 1)
271
+ t[i] = be(me(n, o, i));
272
+ return {
273
+ c() {
274
+ for (let i = 0; i < t.length; i += 1)
275
+ t[i].c();
276
+ e = se();
277
+ },
278
+ m(i, r) {
279
+ for (let a = 0; a < t.length; a += 1)
280
+ t[a] && t[a].m(i, r);
281
+ R(i, e, r);
282
+ },
283
+ p(i, r) {
284
+ if (r[0] & /*activeBonusesList, lang, dateformat, clientstyling, clientstylingurl, mbsource, translationurl, currencylocale, ishiddenwageringbonus*/
285
+ 262399) {
286
+ o = ee(
287
+ /*activeBonusesList*/
288
+ i[18]
289
+ );
290
+ let a;
291
+ for (a = 0; a < o.length; a += 1) {
292
+ const m = me(i, o, a);
293
+ t[a] ? t[a].p(m, r) : (t[a] = be(m), t[a].c(), t[a].m(e.parentNode, e));
294
+ }
295
+ for (; a < t.length; a += 1)
296
+ t[a].d(1);
297
+ t.length = o.length;
298
+ }
299
+ },
300
+ d(i) {
301
+ i && N(e), _e(t, i);
302
+ }
303
+ };
304
+ }
305
+ function on(n) {
306
+ let e, o = (
307
+ /*$_*/
308
+ n[20]("noActiveBonuses") + ""
309
+ ), t;
310
+ return {
311
+ c() {
312
+ e = M("p"), t = L(o);
313
+ },
314
+ m(i, r) {
315
+ R(i, e, r), c(e, t);
316
+ },
317
+ p(i, r) {
318
+ r[0] & /*$_*/
319
+ 1048576 && o !== (o = /*$_*/
320
+ i[20]("noActiveBonuses") + "") && J(t, o);
321
+ },
322
+ d(i) {
323
+ i && N(e);
324
+ }
325
+ };
326
+ }
327
+ function sn(n) {
328
+ let e, o, t, i, r, a, m, l, b, h, _, A, v, y, C, d, p;
329
+ return {
330
+ c() {
331
+ e = M("player-bonus-card"), s(e, "termsandconditionsdescription", o = /*activeBonus*/
332
+ n[54].termsandconditionsdescription), s(e, "termsandconditionsurl", t = /*activeBonus*/
333
+ n[54].termsandconditionsurl), s(e, "termsandconditionsasset", i = /*activeBonus*/
334
+ n[54].termsandconditionsasset), s(e, "endpoint", r = /*activeBonus*/
335
+ n[54].endpoint), s(e, "playerid", a = /*activeBonus*/
336
+ n[54].playerid), s(e, "session", m = /*activeBonus*/
337
+ n[54].session), s(e, "bonuswalletid", l = /*activeBonus*/
338
+ n[54].walletId), s(e, "bonusdate", b = /*activeBonus*/
339
+ n[54].granted), s(e, "bonusexpirationdate", h = /*activeBonus*/
340
+ n[54].expiryTime), s(e, "bonusstatus", _ = /*activeBonus*/
341
+ n[54].status), s(e, "bonusname", A = /*activeBonus*/
342
+ n[54].name), s(e, "bonustype", v = /*activeBonus*/
343
+ n[54].type), s(e, "bonusamount", y = /*activeBonus*/
344
+ n[54].extension.grantedPlayerCurrencyAmount), s(e, "bonuswageringamount", C = `${/*activeBonus*/
345
+ n[54].fulfilledWR} / ${/*activeBonus*/
346
+ n[54].originalWageringRequirement}`), s(e, "bonusremainingamount", d = /*activeBonus*/
347
+ n[54].currentAmount), s(e, "bonuscurrency", p = /*activeBonus*/
348
+ n[54].currency), s(
349
+ e,
350
+ "lang",
351
+ /*lang*/
352
+ n[0]
353
+ ), s(
354
+ e,
355
+ "dateformat",
356
+ /*dateformat*/
357
+ n[6]
358
+ ), s(
359
+ e,
360
+ "clientstyling",
361
+ /*clientstyling*/
362
+ n[1]
363
+ ), s(
364
+ e,
365
+ "clientstylingurl",
366
+ /*clientstylingurl*/
367
+ n[2]
368
+ ), s(
369
+ e,
370
+ "mbsource",
371
+ /*mbsource*/
372
+ n[3]
373
+ ), s(
374
+ e,
375
+ "translationurl",
376
+ /*translationurl*/
377
+ n[4]
378
+ ), s(
379
+ e,
380
+ "currencylocale",
381
+ /*currencylocale*/
382
+ n[5]
383
+ ), s(
384
+ e,
385
+ "ishiddenwageringbonus",
386
+ /*ishiddenwageringbonus*/
387
+ n[7]
388
+ );
389
+ },
390
+ m(f, g) {
391
+ R(f, e, g);
392
+ },
393
+ p(f, g) {
394
+ g[0] & /*activeBonusesList*/
395
+ 262144 && o !== (o = /*activeBonus*/
396
+ f[54].termsandconditionsdescription) && s(e, "termsandconditionsdescription", o), g[0] & /*activeBonusesList*/
397
+ 262144 && t !== (t = /*activeBonus*/
398
+ f[54].termsandconditionsurl) && s(e, "termsandconditionsurl", t), g[0] & /*activeBonusesList*/
399
+ 262144 && i !== (i = /*activeBonus*/
400
+ f[54].termsandconditionsasset) && s(e, "termsandconditionsasset", i), g[0] & /*activeBonusesList*/
401
+ 262144 && r !== (r = /*activeBonus*/
402
+ f[54].endpoint) && s(e, "endpoint", r), g[0] & /*activeBonusesList*/
403
+ 262144 && a !== (a = /*activeBonus*/
404
+ f[54].playerid) && s(e, "playerid", a), g[0] & /*activeBonusesList*/
405
+ 262144 && m !== (m = /*activeBonus*/
406
+ f[54].session) && s(e, "session", m), g[0] & /*activeBonusesList*/
407
+ 262144 && l !== (l = /*activeBonus*/
408
+ f[54].walletId) && s(e, "bonuswalletid", l), g[0] & /*activeBonusesList*/
409
+ 262144 && b !== (b = /*activeBonus*/
410
+ f[54].granted) && s(e, "bonusdate", b), g[0] & /*activeBonusesList*/
411
+ 262144 && h !== (h = /*activeBonus*/
412
+ f[54].expiryTime) && s(e, "bonusexpirationdate", h), g[0] & /*activeBonusesList*/
413
+ 262144 && _ !== (_ = /*activeBonus*/
414
+ f[54].status) && s(e, "bonusstatus", _), g[0] & /*activeBonusesList*/
415
+ 262144 && A !== (A = /*activeBonus*/
416
+ f[54].name) && s(e, "bonusname", A), g[0] & /*activeBonusesList*/
417
+ 262144 && v !== (v = /*activeBonus*/
418
+ f[54].type) && s(e, "bonustype", v), g[0] & /*activeBonusesList*/
419
+ 262144 && y !== (y = /*activeBonus*/
420
+ f[54].extension.grantedPlayerCurrencyAmount) && s(e, "bonusamount", y), g[0] & /*activeBonusesList*/
421
+ 262144 && C !== (C = `${/*activeBonus*/
422
+ f[54].fulfilledWR} / ${/*activeBonus*/
423
+ f[54].originalWageringRequirement}`) && s(e, "bonuswageringamount", C), g[0] & /*activeBonusesList*/
424
+ 262144 && d !== (d = /*activeBonus*/
425
+ f[54].currentAmount) && s(e, "bonusremainingamount", d), g[0] & /*activeBonusesList*/
426
+ 262144 && p !== (p = /*activeBonus*/
427
+ f[54].currency) && s(e, "bonuscurrency", p), g[0] & /*lang*/
428
+ 1 && s(
429
+ e,
430
+ "lang",
431
+ /*lang*/
432
+ f[0]
433
+ ), g[0] & /*dateformat*/
434
+ 64 && s(
435
+ e,
436
+ "dateformat",
437
+ /*dateformat*/
438
+ f[6]
439
+ ), g[0] & /*clientstyling*/
440
+ 2 && s(
441
+ e,
442
+ "clientstyling",
443
+ /*clientstyling*/
444
+ f[1]
445
+ ), g[0] & /*clientstylingurl*/
446
+ 4 && s(
447
+ e,
448
+ "clientstylingurl",
449
+ /*clientstylingurl*/
450
+ f[2]
451
+ ), g[0] & /*mbsource*/
452
+ 8 && s(
453
+ e,
454
+ "mbsource",
455
+ /*mbsource*/
456
+ f[3]
457
+ ), g[0] & /*translationurl*/
458
+ 16 && s(
459
+ e,
460
+ "translationurl",
461
+ /*translationurl*/
462
+ f[4]
463
+ ), g[0] & /*currencylocale*/
464
+ 32 && s(
465
+ e,
466
+ "currencylocale",
467
+ /*currencylocale*/
468
+ f[5]
469
+ ), g[0] & /*ishiddenwageringbonus*/
470
+ 128 && s(
471
+ e,
472
+ "ishiddenwageringbonus",
473
+ /*ishiddenwageringbonus*/
474
+ f[7]
475
+ );
476
+ },
477
+ d(f) {
478
+ f && N(e);
479
+ }
480
+ };
481
+ }
482
+ function tn(n) {
483
+ let e, o, t, i, r, a, m, l, b, h, _, A, v, y, C;
484
+ return {
485
+ c() {
486
+ e = M("player-bonus-card"), s(e, "termsandconditionsdescription", o = /*activeBonus*/
487
+ n[54].termsandconditionsdescription), s(e, "termsandconditionsurl", t = /*activeBonus*/
488
+ n[54].termsandconditionsurl), s(e, "termsandconditionsasset", i = /*activeBonus*/
489
+ n[54].termsandconditionsasset), s(e, "endpoint", r = /*activeBonus*/
490
+ n[54].endpoint), s(e, "playerid", a = /*activeBonus*/
491
+ n[54].playerid), s(e, "session", m = /*activeBonus*/
492
+ n[54].session), s(e, "bonuswalletid", l = /*activeBonus*/
493
+ n[54].walletId), s(e, "bonusdate", b = /*activeBonus*/
494
+ n[54].granted), s(e, "bonusexpirationdate", h = /*activeBonus*/
495
+ n[54].expiryTime), s(e, "bonusstatus", _ = /*activeBonus*/
496
+ n[54].status), s(e, "bonusname", A = /*activeBonus*/
497
+ n[54].name), s(e, "bonustype", v = /*activeBonus*/
498
+ n[54].type), s(e, "bonuscurrency", y = /*activeBonus*/
499
+ n[54].currency), s(e, "bonusfreespins", C = /*activeBonus*/
500
+ n[54].freeRoundNumber), s(
501
+ e,
502
+ "lang",
503
+ /*lang*/
504
+ n[0]
505
+ ), s(
506
+ e,
507
+ "dateformat",
508
+ /*dateformat*/
509
+ n[6]
510
+ ), s(
511
+ e,
512
+ "clientstyling",
513
+ /*clientstyling*/
514
+ n[1]
515
+ ), s(
516
+ e,
517
+ "clientstylingurl",
518
+ /*clientstylingurl*/
519
+ n[2]
520
+ ), s(
521
+ e,
522
+ "mbsource",
523
+ /*mbsource*/
524
+ n[3]
525
+ ), s(
526
+ e,
527
+ "translationurl",
528
+ /*translationurl*/
529
+ n[4]
530
+ ), s(
531
+ e,
532
+ "currencylocale",
533
+ /*currencylocale*/
534
+ n[5]
535
+ ), s(
536
+ e,
537
+ "ishiddenwageringbonus",
538
+ /*ishiddenwageringbonus*/
539
+ n[7]
540
+ );
541
+ },
542
+ m(d, p) {
543
+ R(d, e, p);
544
+ },
545
+ p(d, p) {
546
+ p[0] & /*activeBonusesList*/
547
+ 262144 && o !== (o = /*activeBonus*/
548
+ d[54].termsandconditionsdescription) && s(e, "termsandconditionsdescription", o), p[0] & /*activeBonusesList*/
549
+ 262144 && t !== (t = /*activeBonus*/
550
+ d[54].termsandconditionsurl) && s(e, "termsandconditionsurl", t), p[0] & /*activeBonusesList*/
551
+ 262144 && i !== (i = /*activeBonus*/
552
+ d[54].termsandconditionsasset) && s(e, "termsandconditionsasset", i), p[0] & /*activeBonusesList*/
553
+ 262144 && r !== (r = /*activeBonus*/
554
+ d[54].endpoint) && s(e, "endpoint", r), p[0] & /*activeBonusesList*/
555
+ 262144 && a !== (a = /*activeBonus*/
556
+ d[54].playerid) && s(e, "playerid", a), p[0] & /*activeBonusesList*/
557
+ 262144 && m !== (m = /*activeBonus*/
558
+ d[54].session) && s(e, "session", m), p[0] & /*activeBonusesList*/
559
+ 262144 && l !== (l = /*activeBonus*/
560
+ d[54].walletId) && s(e, "bonuswalletid", l), p[0] & /*activeBonusesList*/
561
+ 262144 && b !== (b = /*activeBonus*/
562
+ d[54].granted) && s(e, "bonusdate", b), p[0] & /*activeBonusesList*/
563
+ 262144 && h !== (h = /*activeBonus*/
564
+ d[54].expiryTime) && s(e, "bonusexpirationdate", h), p[0] & /*activeBonusesList*/
565
+ 262144 && _ !== (_ = /*activeBonus*/
566
+ d[54].status) && s(e, "bonusstatus", _), p[0] & /*activeBonusesList*/
567
+ 262144 && A !== (A = /*activeBonus*/
568
+ d[54].name) && s(e, "bonusname", A), p[0] & /*activeBonusesList*/
569
+ 262144 && v !== (v = /*activeBonus*/
570
+ d[54].type) && s(e, "bonustype", v), p[0] & /*activeBonusesList*/
571
+ 262144 && y !== (y = /*activeBonus*/
572
+ d[54].currency) && s(e, "bonuscurrency", y), p[0] & /*activeBonusesList*/
573
+ 262144 && C !== (C = /*activeBonus*/
574
+ d[54].freeRoundNumber) && s(e, "bonusfreespins", C), p[0] & /*lang*/
575
+ 1 && s(
576
+ e,
577
+ "lang",
578
+ /*lang*/
579
+ d[0]
580
+ ), p[0] & /*dateformat*/
581
+ 64 && s(
582
+ e,
583
+ "dateformat",
584
+ /*dateformat*/
585
+ d[6]
586
+ ), p[0] & /*clientstyling*/
587
+ 2 && s(
588
+ e,
589
+ "clientstyling",
590
+ /*clientstyling*/
591
+ d[1]
592
+ ), p[0] & /*clientstylingurl*/
593
+ 4 && s(
594
+ e,
595
+ "clientstylingurl",
596
+ /*clientstylingurl*/
597
+ d[2]
598
+ ), p[0] & /*mbsource*/
599
+ 8 && s(
600
+ e,
601
+ "mbsource",
602
+ /*mbsource*/
603
+ d[3]
604
+ ), p[0] & /*translationurl*/
605
+ 16 && s(
606
+ e,
607
+ "translationurl",
608
+ /*translationurl*/
609
+ d[4]
610
+ ), p[0] & /*currencylocale*/
611
+ 32 && s(
612
+ e,
613
+ "currencylocale",
614
+ /*currencylocale*/
615
+ d[5]
616
+ ), p[0] & /*ishiddenwageringbonus*/
617
+ 128 && s(
618
+ e,
619
+ "ishiddenwageringbonus",
620
+ /*ishiddenwageringbonus*/
621
+ d[7]
622
+ );
623
+ },
624
+ d(d) {
625
+ d && N(e);
626
+ }
627
+ };
628
+ }
629
+ function be(n) {
630
+ let e;
631
+ function o(r, a) {
632
+ return (
633
+ /*activeBonus*/
634
+ r[54].type === "freeRound" ? tn : sn
635
+ );
636
+ }
637
+ let t = o(n), i = t(n);
638
+ return {
639
+ c() {
640
+ i.c(), e = se();
641
+ },
642
+ m(r, a) {
643
+ i.m(r, a), R(r, e, a);
644
+ },
645
+ p(r, a) {
646
+ t === (t = o(r)) && i ? i.p(r, a) : (i.d(1), i = t(r), i && (i.c(), i.m(e.parentNode, e)));
647
+ },
648
+ d(r) {
649
+ r && N(e), i.d(r);
650
+ }
651
+ };
652
+ }
653
+ function ge(n) {
654
+ let e, o, t, i, r, a, m, l, b, h, _, A, v, y, C, d, p, f, g, q = ee(Array(
655
+ /*numberOfPages*/
656
+ n[16]
657
+ )), E = [];
658
+ for (let w = 0; w < q.length; w += 1)
659
+ E[w] = Be(pe(n, q, w));
660
+ return {
661
+ c() {
662
+ e = M("div"), o = M("span"), t = L("|<"), r = T(), a = M("span"), m = L("<"), b = T();
663
+ for (let w = 0; w < E.length; w += 1)
664
+ E[w].c();
665
+ h = T(), _ = M("span"), A = L(">"), y = T(), C = M("span"), d = L(">|"), B(o, "class", i = "BonusesFirst " + /*currentPage*/
666
+ (n[17] === 0 ? "Inactive" : "")), B(a, "class", l = "BonusesPrev " + /*currentPage*/
667
+ (n[17] === 0 ? "Inactive" : "")), B(_, "class", v = "BonusesNext " + /*currentPage*/
668
+ (n[17] === /*numberOfPages*/
669
+ n[16] - 1 ? "Inactive" : "")), B(C, "class", p = "BonusesLast " + /*currentPage*/
670
+ (n[17] === /*numberOfPages*/
671
+ n[16] - 1 ? "Inactive" : "")), B(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
672
+ (n[21] ? "BonusesPaginationWrapperMobile" : ""));
673
+ },
674
+ m(w, S) {
675
+ R(w, e, S), c(e, o), c(o, t), c(e, r), c(e, a), c(a, m), c(e, b);
676
+ for (let W = 0; W < E.length; W += 1)
677
+ E[W] && E[W].m(e, null);
678
+ c(e, h), c(e, _), c(_, A), c(e, y), c(e, C), c(C, d), f || (g = [
679
+ H(
680
+ o,
681
+ "click",
682
+ /*click_handler_1*/
683
+ n[35]
684
+ ),
685
+ H(
686
+ a,
687
+ "click",
688
+ /*click_handler_2*/
689
+ n[36]
690
+ ),
691
+ H(
692
+ _,
693
+ "click",
694
+ /*click_handler_4*/
695
+ n[38]
696
+ ),
697
+ H(
698
+ C,
699
+ "click",
700
+ /*click_handler_5*/
701
+ n[39]
702
+ )
703
+ ], f = !0);
704
+ },
705
+ p(w, S) {
706
+ if (S[0] & /*currentPage*/
707
+ 131072 && i !== (i = "BonusesFirst " + /*currentPage*/
708
+ (w[17] === 0 ? "Inactive" : "")) && B(o, "class", i), S[0] & /*currentPage*/
709
+ 131072 && l !== (l = "BonusesPrev " + /*currentPage*/
710
+ (w[17] === 0 ? "Inactive" : "")) && B(a, "class", l), S[0] & /*currentPage, getActiveBonuses, numberOfPages*/
711
+ 16973824) {
712
+ q = ee(Array(
713
+ /*numberOfPages*/
714
+ w[16]
715
+ ));
716
+ let W;
717
+ for (W = 0; W < q.length; W += 1) {
718
+ const j = pe(w, q, W);
719
+ E[W] ? E[W].p(j, S) : (E[W] = Be(j), E[W].c(), E[W].m(e, h));
720
+ }
721
+ for (; W < E.length; W += 1)
722
+ E[W].d(1);
723
+ E.length = q.length;
724
+ }
725
+ S[0] & /*currentPage, numberOfPages*/
726
+ 196608 && v !== (v = "BonusesNext " + /*currentPage*/
727
+ (w[17] === /*numberOfPages*/
728
+ w[16] - 1 ? "Inactive" : "")) && B(_, "class", v), S[0] & /*currentPage, numberOfPages*/
729
+ 196608 && p !== (p = "BonusesLast " + /*currentPage*/
730
+ (w[17] === /*numberOfPages*/
731
+ w[16] - 1 ? "Inactive" : "")) && B(C, "class", p);
732
+ },
733
+ d(w) {
734
+ w && N(e), _e(E, w), f = !1, oe(g);
735
+ }
736
+ };
737
+ }
738
+ function Be(n) {
739
+ let e, o = (
740
+ /*i*/
741
+ n[53] + 1 + ""
742
+ ), t, i, r, a;
743
+ function m() {
744
+ return (
745
+ /*click_handler_3*/
746
+ n[37](
747
+ /*i*/
748
+ n[53]
749
+ )
750
+ );
751
+ }
752
+ return {
753
+ c() {
754
+ e = M("span"), t = L(o), B(e, "class", i = "BonusesPage " + /*i*/
755
+ (n[53] === /*currentPage*/
756
+ n[17] ? "BonusPageActive" : ""));
757
+ },
758
+ m(l, b) {
759
+ R(l, e, b), c(e, t), r || (a = H(e, "click", m), r = !0);
760
+ },
761
+ p(l, b) {
762
+ n = l, b[0] & /*currentPage*/
763
+ 131072 && i !== (i = "BonusesPage " + /*i*/
764
+ (n[53] === /*currentPage*/
765
+ n[17] ? "BonusPageActive" : "")) && B(e, "class", i);
766
+ },
767
+ d(l) {
768
+ l && N(e), r = !1, a();
769
+ }
770
+ };
771
+ }
772
+ function ve(n) {
773
+ let e, o, t, i, r = (
774
+ /*$_*/
775
+ n[20]("forfeitBonus") + ""
776
+ ), a, m, l, b, h = (
777
+ /*$_*/
778
+ n[20]("forfeitBonusCancel") + ""
779
+ ), _, A, v, y = (
780
+ /*$_*/
781
+ n[20]("forfeitBonusConfirm") + ""
782
+ ), C, d, p;
783
+ return {
784
+ c() {
785
+ e = M("div"), o = M("div"), t = M("div"), i = M("p"), a = L(r), m = T(), l = M("div"), b = M("button"), _ = L(h), A = T(), v = M("button"), C = L(y), B(i, "class", "ModalText"), B(b, "class", "ModalCancel"), B(v, "class", "ModalConfirm"), B(l, "class", "ModalButtons"), B(t, "class", "ModalBody"), B(o, "class", "ModalContent"), B(e, "class", "ModalWrapper " + /*isMobile*/
786
+ (n[21] ? "ModalWrapperMobile" : ""));
787
+ },
788
+ m(f, g) {
789
+ R(f, e, g), c(e, o), c(o, t), c(t, i), c(i, a), c(t, m), c(t, l), c(l, b), c(b, _), c(l, A), c(l, v), c(v, C), d || (p = [
790
+ H(
791
+ b,
792
+ "click",
793
+ /*closeBonusModal*/
794
+ n[26]
795
+ ),
796
+ H(
797
+ v,
798
+ "click",
799
+ /*debouncedFunction*/
800
+ n[28](
801
+ /*deleteBonus*/
802
+ n[27]
803
+ )
804
+ )
805
+ ], d = !0);
806
+ },
807
+ p(f, g) {
808
+ g[0] & /*$_*/
809
+ 1048576 && r !== (r = /*$_*/
810
+ f[20]("forfeitBonus") + "") && J(a, r), g[0] & /*$_*/
811
+ 1048576 && h !== (h = /*$_*/
812
+ f[20]("forfeitBonusCancel") + "") && J(_, h), g[0] & /*$_*/
813
+ 1048576 && y !== (y = /*$_*/
814
+ f[20]("forfeitBonusConfirm") + "") && J(C, y);
815
+ },
816
+ d(f) {
817
+ f && N(e), d = !1, oe(p);
818
+ }
819
+ };
820
+ }
821
+ function an(n) {
822
+ let e, o, t, i, r = (
823
+ /*$_*/
824
+ n[20]("titleBonuses") + ""
825
+ ), a, m, l, b, h = (
826
+ /*$_*/
827
+ n[20]("bonusCode") + ""
828
+ ), _, A, v, y, C, d, p = (
829
+ /*$_*/
830
+ n[20]("getBonus") + ""
831
+ ), f, g, q, E, w, S, W, j = (
832
+ /*isMobile*/
833
+ n[21] && xe(n)
834
+ ), P = (
835
+ /*invalidBonusCode*/
836
+ n[11] && fe(n)
837
+ );
838
+ function Q(k, D) {
839
+ return (
840
+ /*isLoading*/
841
+ k[9] ? en : $e
842
+ );
843
+ }
844
+ let Z = Q(n), O = Z(n), F = (
845
+ /*bonusModal*/
846
+ n[19] && ve(n)
847
+ );
848
+ return {
849
+ c() {
850
+ e = M("div"), o = M("div"), j && j.c(), t = T(), i = M("h2"), a = L(r), m = T(), l = M("div"), b = M("label"), _ = L(h), A = T(), v = M("div"), y = M("input"), C = T(), d = M("button"), f = L(p), q = T(), P && P.c(), E = T(), O.c(), w = T(), F && F.c(), B(i, "class", "ActiveBonusesTitle " + /*isMobile*/
851
+ (n[21] ? "ActiveBonusesTitleNone" : "")), B(b, "for", "BonusCode"), B(y, "class", "BonusCodeInput " + /*isMobile*/
852
+ (n[21] ? "BonusCodeInputMobile" : "")), B(y, "type", "text"), B(y, "id", "BonusCode"), B(d, "class", "SubmitBonusCode " + /*isMobile*/
853
+ (n[21] ? "SubmitBonusCodeMobile" : "")), d.disabled = g = /*invalidBonusField*/
854
+ n[10] || /*isLoading*/
855
+ n[9], B(v, "class", "BonusCodeWrapper " + /*isMobile*/
856
+ (n[21] ? "BonusCodeWrapperMobile" : "")), B(l, "class", "BonusCodeContainer " + /*isMobile*/
857
+ (n[21] ? "BonusCodeContainerMobile" : "")), B(o, "class", "ActiveBonusesWrapper " + /*isMobile*/
858
+ (n[21] ? "ActiveBonusesWrapperMobile" : ""));
859
+ },
860
+ m(k, D) {
861
+ R(k, e, D), c(e, o), j && j.m(o, null), c(o, t), c(o, i), c(i, a), c(o, m), c(o, l), c(l, b), c(b, _), c(l, A), c(l, v), c(v, y), ue(
862
+ y,
863
+ /*bonusCode*/
864
+ n[12]
865
+ ), c(v, C), c(v, d), c(d, f), c(l, q), P && P.m(l, null), c(o, E), O.m(o, null), c(e, w), F && F.m(e, null), n[40](e), S || (W = [
866
+ H(
867
+ y,
868
+ "input",
869
+ /*input_input_handler*/
870
+ n[34]
871
+ ),
872
+ H(
873
+ y,
874
+ "keyup",
875
+ /*validateBonusCode*/
876
+ n[23]
877
+ ),
878
+ H(
879
+ d,
880
+ "click",
881
+ /*claimBonus*/
882
+ n[25]
883
+ )
884
+ ], S = !0);
885
+ },
886
+ p(k, D) {
887
+ /*isMobile*/
888
+ k[21] && j.p(k, D), D[0] & /*$_*/
889
+ 1048576 && r !== (r = /*$_*/
890
+ k[20]("titleBonuses") + "") && J(a, r), D[0] & /*$_*/
891
+ 1048576 && h !== (h = /*$_*/
892
+ k[20]("bonusCode") + "") && J(_, h), D[0] & /*bonusCode*/
893
+ 4096 && y.value !== /*bonusCode*/
894
+ k[12] && ue(
895
+ y,
896
+ /*bonusCode*/
897
+ k[12]
898
+ ), D[0] & /*$_*/
899
+ 1048576 && p !== (p = /*$_*/
900
+ k[20]("getBonus") + "") && J(f, p), D[0] & /*invalidBonusField, isLoading*/
901
+ 1536 && g !== (g = /*invalidBonusField*/
902
+ k[10] || /*isLoading*/
903
+ k[9]) && (d.disabled = g), /*invalidBonusCode*/
904
+ k[11] ? P ? P.p(k, D) : (P = fe(k), P.c(), P.m(l, null)) : P && (P.d(1), P = null), Z === (Z = Q(k)) && O ? O.p(k, D) : (O.d(1), O = Z(k), O && (O.c(), O.m(o, null))), /*bonusModal*/
905
+ k[19] ? F ? F.p(k, D) : (F = ve(k), F.c(), F.m(e, null)) : F && (F.d(1), F = null);
906
+ },
907
+ i: ne,
908
+ o: ne,
909
+ d(k) {
910
+ k && N(e), j && j.d(), P && P.d(), O.d(), F && F.d(), n[40](null), S = !1, oe(W);
911
+ }
912
+ };
913
+ }
914
+ let rn = "status=active", Y = 6;
915
+ function ln(n, e, o) {
916
+ let t;
917
+ qe(n, Ze, (u) => o(20, t = u));
918
+ let { endpoint: i = "" } = e, { session: r = "" } = e, { playerid: a = "" } = e, { lang: m = "en" } = e, { currency: l = "" } = e, { clientstyling: b = "" } = e, { clientstylingurl: h = "" } = e, { mbsource: _ } = e, { translationurl: A = "" } = e, { currencylocale: v = "" } = e, { dateformat: y = "" } = e, { ishiddenwageringbonus: C = "false" } = e, d = !1, p, f = window.navigator.userAgent, g = Ge(f) !== "PC", q = !0, E = !1, w = "", S = 0, W = 0, j = 0, P = 0, Q = 0, Z = [], O, F = "", k = !1;
919
+ const D = () => {
920
+ fetch(A).then((I) => I.json()).then((I) => {
921
+ Object.keys(I).forEach((G) => {
922
+ de(G, I[G]);
923
+ });
924
+ }).catch((I) => {
925
+ console.log(I);
926
+ });
927
+ };
928
+ Object.keys(ce).forEach((u) => {
929
+ de(u, ce[u]);
930
+ });
931
+ const ie = (u) => {
932
+ if (u.data)
933
+ switch (u.data.type) {
934
+ case "DeleteActiveBonus":
935
+ F = u.data.bonuswalletid, o(19, k = !0);
936
+ break;
937
+ }
938
+ };
939
+ function ye(u, I) {
940
+ return (...G) => {
941
+ clearTimeout(O), O = setTimeout(
942
+ () => {
943
+ u.apply(this, G);
944
+ },
945
+ I
946
+ );
947
+ };
948
+ }
949
+ const te = () => {
950
+ window.postMessage(
951
+ {
952
+ type: "PlayerAccountMenuActive",
953
+ isMobile: g
954
+ },
955
+ window.location.href
956
+ );
957
+ }, he = () => !!w, Ce = () => {
958
+ o(10, q = !he());
959
+ }, X = (u) => {
960
+ o(9, d = !0);
961
+ let I = {
962
+ method: "GET",
963
+ headers: { "X-SessionId": r }
964
+ }, G = new URL(`${i}/v1/player/${a}/bonusWallet`);
965
+ G.searchParams.append("filter", rn), G.searchParams.append("pagination", `offset=${u},limit=${Y}`), fetch(G, I).then((U) => U.json()).then(
966
+ (U) => {
967
+ Array.isArray(U.items) && U.items.forEach((z) => {
968
+ var re, le;
969
+ const $ = (le = (re = z == null ? void 0 : z.extension) == null ? void 0 : re.bonus) == null ? void 0 : le.presentation;
970
+ $ && (z.termsandconditionsurl = $.url, z.termsandconditionsdescription = $.description, z.termsandconditionsasset = $.assets);
971
+ }), o(16, P = Math.ceil(U.total / Y)), u - Y >= 0 && o(13, S = u - Y), u + Y < U.total && o(14, W = u + Y), o(15, j = (P - 1) * Y), o(17, Q = u / Y), o(18, Z = (U == null ? void 0 : U.items) || []), v && Z.forEach((z) => {
972
+ z.fulfilledWR = x(z.fulfilledWR), z.originalWageringRequirement = x(z.originalWageringRequirement), z.currentAmount = x(z.currentAmount), z.extension.grantedPlayerCurrencyAmount = x(z.extension.grantedPlayerCurrencyAmount);
973
+ }), window.scrollTo({ top: 0, behavior: "smooth" });
974
+ },
975
+ (U) => {
976
+ console.error(U);
977
+ }
978
+ ).finally(() => {
979
+ o(9, d = !1);
980
+ });
981
+ }, x = (u) => new Intl.NumberFormat(v, { style: "currency", currency: l }).format(u).replace(/\s/g, ""), we = () => {
982
+ o(9, d = !0);
983
+ let u = new URL(`${i}/v1/player/${a}/claimbonus`), I = {
984
+ method: "POST",
985
+ headers: {
986
+ "X-SessionId": r,
987
+ accept: "application/json"
988
+ }
989
+ };
990
+ u.searchParams.append("currency", l), u.searchParams.append("bonusCode", w), fetch(u.href, I).then((G) => {
991
+ G.status == 200 ? (o(11, E = !1), X(0), window.postMessage(
992
+ {
993
+ type: "WidgetNotification",
994
+ data: {
995
+ type: "success",
996
+ message: t("bonusClaimSuccessMessage")
997
+ }
998
+ },
999
+ window.location.href
1000
+ ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
1001
+ context: "PlayerActiveBonuses",
1002
+ userId: `${a || "Not logged in"}`,
1003
+ bonusCode: `${w}`
1004
+ })) : (o(11, E = !0), window.postMessage(
1005
+ {
1006
+ type: "WidgetNotification",
1007
+ data: {
1008
+ type: "error",
1009
+ message: t("bonusClaimErrorMessage")
1010
+ }
1011
+ },
1012
+ window.location.href
1013
+ ));
1014
+ }).finally(() => {
1015
+ o(9, d = !1);
1016
+ });
1017
+ }, ae = () => {
1018
+ window.postMessage({ type: "EnableScroll" }, window.location.href), o(19, k = !1);
1019
+ }, Me = () => {
1020
+ let u = {
1021
+ method: "DELETE",
1022
+ headers: {
1023
+ "X-SessionId": r,
1024
+ "Content-Type": "application/json",
1025
+ Accept: "application/json"
1026
+ }
1027
+ }, I = new URL(`${i}/v1/player/${a}/bonusWallet`);
1028
+ I.searchParams.append("bonusWalletID", F), fetch(I, u).then((G) => {
1029
+ G.status == 200 && (X(0), ae());
1030
+ });
1031
+ }, ke = () => {
1032
+ Ke(m);
1033
+ };
1034
+ function Ae(u) {
1035
+ return ye(u, 1e3);
1036
+ }
1037
+ Ve(() => (window.addEventListener("message", ie, !1), () => {
1038
+ window.removeEventListener("message", ie);
1039
+ }));
1040
+ const We = () => te();
1041
+ function Ee() {
1042
+ w = this.value, o(12, w);
1043
+ }
1044
+ const Pe = () => X(0), Fe = () => X(S), Se = (u) => X(u * Y), Ie = () => X(W), ze = () => X(j);
1045
+ function Te(u) {
1046
+ Ue[u ? "unshift" : "push"](() => {
1047
+ p = u, o(8, p);
1048
+ });
1049
+ }
1050
+ return n.$$set = (u) => {
1051
+ "endpoint" in u && o(29, i = u.endpoint), "session" in u && o(30, r = u.session), "playerid" in u && o(31, a = 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, h = u.clientstylingurl), "mbsource" in u && o(3, _ = u.mbsource), "translationurl" in u && o(4, A = u.translationurl), "currencylocale" in u && o(5, v = u.currencylocale), "dateformat" in u && o(6, y = u.dateformat), "ishiddenwageringbonus" in u && o(7, C = u.ishiddenwageringbonus);
1052
+ }, n.$$.update = () => {
1053
+ n.$$.dirty[0] & /*lang*/
1054
+ 1 && m && ke(), n.$$.dirty[0] & /*session, endpoint*/
1055
+ 1610612736 | n.$$.dirty[1] & /*playerid*/
1056
+ 1 && r && a && i && X(0), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1057
+ 258 && b && p && He(p, b), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1058
+ 260 && h && p && Xe(p, h), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
1059
+ 264 && _ && p && Ye(p, `${_}.Style`), n.$$.dirty[0] & /*translationurl*/
1060
+ 16 && A && D();
1061
+ }, [
1062
+ m,
1063
+ b,
1064
+ h,
1065
+ _,
1066
+ A,
1067
+ v,
1068
+ y,
1069
+ C,
1070
+ p,
1071
+ d,
1072
+ q,
1073
+ E,
1074
+ w,
1075
+ S,
1076
+ W,
1077
+ j,
1078
+ P,
1079
+ Q,
1080
+ Z,
1081
+ k,
1082
+ t,
1083
+ g,
1084
+ te,
1085
+ Ce,
1086
+ X,
1087
+ we,
1088
+ ae,
1089
+ Me,
1090
+ Ae,
1091
+ i,
1092
+ r,
1093
+ a,
1094
+ l,
1095
+ We,
1096
+ Ee,
1097
+ Pe,
1098
+ Fe,
1099
+ Se,
1100
+ Ie,
1101
+ ze,
1102
+ Te
1103
+ ];
1104
+ }
1105
+ class un extends Re {
1106
+ constructor(e) {
1107
+ super(), je(
1108
+ this,
1109
+ e,
1110
+ ln,
1111
+ an,
1112
+ De,
1113
+ {
1114
+ endpoint: 29,
1115
+ session: 30,
1116
+ playerid: 31,
1117
+ lang: 0,
1118
+ currency: 32,
1119
+ clientstyling: 1,
1120
+ clientstylingurl: 2,
1121
+ mbsource: 3,
1122
+ translationurl: 4,
1123
+ currencylocale: 5,
1124
+ dateformat: 6,
1125
+ ishiddenwageringbonus: 7
1126
+ },
1127
+ Qe,
1128
+ [-1, -1]
1129
+ );
1130
+ }
1131
+ get endpoint() {
1132
+ return this.$$.ctx[29];
1133
+ }
1134
+ set endpoint(e) {
1135
+ this.$$set({ endpoint: e }), V();
1136
+ }
1137
+ get session() {
1138
+ return this.$$.ctx[30];
1139
+ }
1140
+ set session(e) {
1141
+ this.$$set({ session: e }), V();
1142
+ }
1143
+ get playerid() {
1144
+ return this.$$.ctx[31];
1145
+ }
1146
+ set playerid(e) {
1147
+ this.$$set({ playerid: e }), V();
1148
+ }
1149
+ get lang() {
1150
+ return this.$$.ctx[0];
1151
+ }
1152
+ set lang(e) {
1153
+ this.$$set({ lang: e }), V();
1154
+ }
1155
+ get currency() {
1156
+ return this.$$.ctx[32];
1157
+ }
1158
+ set currency(e) {
1159
+ this.$$set({ currency: e }), V();
1160
+ }
1161
+ get clientstyling() {
1162
+ return this.$$.ctx[1];
1163
+ }
1164
+ set clientstyling(e) {
1165
+ this.$$set({ clientstyling: e }), V();
1166
+ }
1167
+ get clientstylingurl() {
1168
+ return this.$$.ctx[2];
1169
+ }
1170
+ set clientstylingurl(e) {
1171
+ this.$$set({ clientstylingurl: e }), V();
1172
+ }
1173
+ get mbsource() {
1174
+ return this.$$.ctx[3];
1175
+ }
1176
+ set mbsource(e) {
1177
+ this.$$set({ mbsource: e }), V();
1178
+ }
1179
+ get translationurl() {
1180
+ return this.$$.ctx[4];
1181
+ }
1182
+ set translationurl(e) {
1183
+ this.$$set({ translationurl: e }), V();
1184
+ }
1185
+ get currencylocale() {
1186
+ return this.$$.ctx[5];
1187
+ }
1188
+ set currencylocale(e) {
1189
+ this.$$set({ currencylocale: e }), V();
1190
+ }
1191
+ get dateformat() {
1192
+ return this.$$.ctx[6];
1193
+ }
1194
+ set dateformat(e) {
1195
+ this.$$set({ dateformat: e }), V();
1196
+ }
1197
+ get ishiddenwageringbonus() {
1198
+ return this.$$.ctx[7];
1199
+ }
1200
+ set ishiddenwageringbonus(e) {
1201
+ this.$$set({ ishiddenwageringbonus: e }), V();
1202
+ }
1203
+ }
1204
+ Je(un, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {}, ishiddenwageringbonus: {} }, [], [], !0);
1205
+ export {
1206
+ un as default
1207
+ };