@everymatrix/player-account-controller 1.84.1 → 1.84.3

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