@everymatrix/player-account-controller 1.84.1 → 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
@@ -1,1176 +0,0 @@
1
- import { a as Te, $ as Le, S as Ne, i as Re, s as je, f as U, b as De, n as oe, d as R, r as ne, c as J, V as le, h as j, j as c, l as H, k as M, m as L, t as N, e as B, p as Oe, q as qe, u as Ge, v as Q, w as Ve, H as se, C as ee, D as ve, g as s, x as Ue, y as He, z as Xe, A as Ye, B as Je } from "./GeneralLogout-CShGWvvZ.js";
2
- function ue(o, e) {
3
- Te(o, e);
4
- }
5
- function Ze(o) {
6
- Le.set(o);
7
- }
8
- const de = {
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 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-D1_h0ufF.js").then(({ default: e }) => {
155
- !customElements.get("player-bonus-card") && customElements.define("player-bonus-card", e.element);
156
- });
157
- }
158
- function Ke(o) {
159
- De(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 ce(o, e, n) {
162
- const a = o.slice();
163
- return a[50] = e[n], a[52] = n, a;
164
- }
165
- function pe(o, e, n) {
166
- const a = o.slice();
167
- return a[53] = e[n], a;
168
- }
169
- function Qe(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 = N(`.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 = L(), h = M("h2"), k = N(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
- j(_, 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 = H(
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
- _ && R(e), v = !1, C();
196
- }
197
- };
198
- }
199
- function me(o) {
200
- let e, n = (
201
- /*$_*/
202
- o[19]("invalidBonusCode") + ""
203
- ), a;
204
- return {
205
- c() {
206
- e = M("p"), a = N(n), B(e, "class", "InvalidBonusCodeMessage");
207
- },
208
- m(t, i) {
209
- j(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 && R(e);
218
- }
219
- };
220
- }
221
- function xe(o) {
222
- let e, n, a;
223
- function t(l, f) {
224
- return (
225
- /*activeBonusesList*/
226
- l[17].length === 0 ? oo : eo
227
- );
228
- }
229
- let i = t(o), r = i(o), p = (
230
- /*activeBonusesList*/
231
- o[17].length !== 0 && be(o)
232
- );
233
- return {
234
- c() {
235
- e = M("div"), r.c(), n = L(), p && p.c(), a = se(), B(e, "class", "ActiveBonusesGrid " + /*isMobile*/
236
- (o[20] ? "ActiveBonusesGridMobile" : ""));
237
- },
238
- m(l, f) {
239
- j(l, e, f), r.m(e, null), j(l, n, f), p && p.m(l, f), j(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 = be(l), p.c(), p.m(a.parentNode, a)) : p && (p.d(1), p = null);
244
- },
245
- d(l) {
246
- l && (R(e), R(n), R(a)), r.d(), p && p.d(l);
247
- }
248
- };
249
- }
250
- function $e(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
- j(n, e, a);
258
- },
259
- p: oe,
260
- d(n) {
261
- n && R(e);
262
- }
263
- };
264
- }
265
- function eo(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] = fe(pe(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
- j(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 = pe(t, n, r);
293
- a[r] ? a[r].p(p, i) : (a[r] = fe(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 && R(e), ve(a, t);
302
- }
303
- };
304
- }
305
- function oo(o) {
306
- let e, n = (
307
- /*$_*/
308
- o[19]("noActiveBonuses") + ""
309
- ), a;
310
- return {
311
- c() {
312
- e = M("p"), a = N(n);
313
- },
314
- m(t, i) {
315
- j(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 && R(e);
324
- }
325
- };
326
- }
327
- function no(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
- j(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 && R(e);
468
- }
469
- };
470
- }
471
- function so(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
- j(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 && R(e);
604
- }
605
- };
606
- }
607
- function fe(o) {
608
- let e;
609
- function n(i, r) {
610
- return (
611
- /*activeBonus*/
612
- i[53].type === "freeRound" ? so : no
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), j(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 && R(e), t.d(i);
628
- }
629
- };
630
- }
631
- function be(o) {
632
- let e, n, a, t, i, r, p, l, f, h, y, k, v, C, _, u, b, m, g, O = ee(Array(
633
- /*numberOfPages*/
634
- o[15]
635
- )), W = [];
636
- for (let w = 0; w < O.length; w += 1)
637
- W[w] = ge(ce(o, O, w));
638
- return {
639
- c() {
640
- e = M("div"), n = M("span"), a = N("|<"), i = L(), r = M("span"), p = N("<"), f = L();
641
- for (let w = 0; w < W.length; w += 1)
642
- W[w].c();
643
- h = L(), y = M("span"), k = N(">"), C = L(), _ = M("span"), u = N(">|"), 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
- j(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
- H(
658
- n,
659
- "click",
660
- /*click_handler_1*/
661
- o[34]
662
- ),
663
- H(
664
- r,
665
- "click",
666
- /*click_handler_2*/
667
- o[35]
668
- ),
669
- H(
670
- y,
671
- "click",
672
- /*click_handler_4*/
673
- o[37]
674
- ),
675
- H(
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
- O = ee(Array(
691
- /*numberOfPages*/
692
- w[15]
693
- ));
694
- let E;
695
- for (E = 0; E < O.length; E += 1) {
696
- const D = ce(w, O, E);
697
- W[E] ? W[E].p(D, S) : (W[E] = ge(D), W[E].c(), W[E].m(e, h));
698
- }
699
- for (; E < W.length; E += 1)
700
- W[E].d(1);
701
- W.length = O.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 && R(e), ve(W, w), m = !1, ne(g);
713
- }
714
- };
715
- }
716
- function ge(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 = N(n), B(e, "class", t = "BonusesPage " + /*i*/
733
- (o[52] === /*currentPage*/
734
- o[16] ? "BonusPageActive" : ""));
735
- },
736
- m(l, f) {
737
- j(l, e, f), c(e, a), i || (r = H(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 && R(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 = N(i), p = L(), l = M("div"), f = M("button"), y = N(h), k = L(), v = M("button"), _ = N(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
- j(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
- H(
769
- f,
770
- "click",
771
- /*closeBonusModal*/
772
- o[25]
773
- ),
774
- H(
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 && R(e), u = !1, ne(b);
796
- }
797
- };
798
- }
799
- function to(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, O, W, w, S, E, D = (
810
- /*isMobile*/
811
- o[20] && Qe(o)
812
- ), F = (
813
- /*invalidBonusCode*/
814
- o[10] && me(o)
815
- );
816
- function K(A, z) {
817
- return (
818
- /*isLoading*/
819
- A[8] ? $e : xe
820
- );
821
- }
822
- let Z = K(o), q = Z(o), P = (
823
- /*bonusModal*/
824
- o[18] && Be(o)
825
- );
826
- return {
827
- c() {
828
- e = M("div"), n = M("div"), D && D.c(), a = L(), t = M("h2"), r = N(i), p = L(), l = M("div"), f = M("label"), y = N(h), k = L(), v = M("div"), C = M("input"), _ = L(), u = M("button"), m = N(b), O = L(), F && F.c(), W = L(), q.c(), w = L(), 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
- j(A, e, z), c(e, n), D && D.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), le(
840
- C,
841
- /*bonusCode*/
842
- o[11]
843
- ), c(v, _), c(v, u), c(u, m), c(l, O), F && F.m(l, null), c(n, W), q.m(n, null), c(e, w), P && P.m(e, null), o[39](e), S || (E = [
844
- H(
845
- C,
846
- "input",
847
- /*input_input_handler*/
848
- o[33]
849
- ),
850
- H(
851
- C,
852
- "keyup",
853
- /*validateBonusCode*/
854
- o[22]
855
- ),
856
- H(
857
- u,
858
- "click",
859
- /*claimBonus*/
860
- o[24]
861
- )
862
- ], S = !0);
863
- },
864
- p(A, z) {
865
- /*isMobile*/
866
- A[20] && D.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] && le(
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 = me(A), F.c(), F.m(l, null)) : F && (F.d(1), F = null), Z === (Z = K(A)) && q ? q.p(A, z) : (q.d(1), q = Z(A), q && (q.c(), q.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 && R(e), D && D.d(), F && F.d(), q.d(), P && P.d(), o[39](null), S = !1, ne(E);
889
- }
890
- };
891
- }
892
- let ao = "status=active", Y = 6;
893
- function ro(o, e, n) {
894
- let a;
895
- Oe(o, Je, (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 = qe(b) !== "PC", g = !0, O = !1, W = "", w = 0, S = 0, E = 0, D = 0, F = 0, K = [], Z, q = "", P = !1;
897
- const A = () => {
898
- fetch(k).then((I) => I.json()).then((I) => {
899
- Object.keys(I).forEach((G) => {
900
- ue(G, I[G]);
901
- });
902
- }).catch((I) => {
903
- console.log(I);
904
- });
905
- };
906
- Object.keys(de).forEach((d) => {
907
- ue(d, de[d]);
908
- });
909
- const z = (d) => {
910
- if (d.data)
911
- switch (d.data.type) {
912
- case "DeleteActiveBonus":
913
- q = d.data.bonuswalletid, n(18, P = !0);
914
- break;
915
- }
916
- };
917
- function _e(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
- }, ye = () => !!W, Ce = () => {
936
- n(9, g = !ye());
937
- }, X = (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", ao), G.searchParams.append("pagination", `offset=${d},limit=${Y}`), fetch(G, I).then((V) => V.json()).then(
944
- (V) => {
945
- Array.isArray(V.items) && V.items.forEach((T) => {
946
- var re, ie;
947
- const $ = (ie = (re = T == null ? void 0 : T.extension) == null ? void 0 : re.bonus) == null ? void 0 : ie.presentation;
948
- $ && (T.termsandconditionsurl = $.url, T.termsandconditionsdescription = $.description, T.termsandconditionsasset = $.assets);
949
- }), n(15, D = Math.ceil(V.total / Y)), d - Y >= 0 && n(12, w = d - Y), d + Y < V.total && n(13, S = d + Y), n(14, E = (D - 1) * Y), n(16, F = d / Y), n(17, K = (V == null ? void 0 : V.items) || []), v && K.forEach((T) => {
950
- T.fulfilledWR = x(T.fulfilledWR), T.originalWageringRequirement = x(T.originalWageringRequirement), T.currentAmount = x(T.currentAmount), T.extension.grantedPlayerCurrencyAmount = x(T.extension.grantedPlayerCurrencyAmount);
951
- }), window.scrollTo({ top: 0, behavior: "smooth" });
952
- },
953
- (V) => {
954
- console.error(V);
955
- }
956
- ).finally(() => {
957
- n(8, _ = !1);
958
- });
959
- }, x = (d) => new Intl.NumberFormat(v, { style: "currency", currency: l }).format(d).replace(/\s/g, ""), he = () => {
960
- n(8, _ = !0);
961
- let d = new URL(`${t}/v1/player/${r}/claimbonus`), I = {
962
- method: "POST",
963
- headers: {
964
- "X-SessionId": i,
965
- accept: "application/json"
966
- }
967
- };
968
- d.searchParams.append("currency", l), d.searchParams.append("bonusCode", W), fetch(d.href, I).then((G) => {
969
- G.status == 200 ? (n(10, O = !1), X(0), window.postMessage(
970
- {
971
- type: "WidgetNotification",
972
- data: {
973
- type: "success",
974
- message: a("bonusClaimSuccessMessage")
975
- }
976
- },
977
- window.location.href
978
- ), typeof gtag == "function" && gtag("event", "ClaimBonus", {
979
- context: "PlayerActiveBonuses",
980
- userId: `${r || "Not logged in"}`,
981
- bonusCode: `${W}`
982
- })) : (n(10, O = !0), window.postMessage(
983
- {
984
- type: "WidgetNotification",
985
- data: {
986
- type: "error",
987
- message: a("bonusClaimErrorMessage")
988
- }
989
- },
990
- window.location.href
991
- ));
992
- }).finally(() => {
993
- n(8, _ = !1);
994
- });
995
- }, ae = () => {
996
- window.postMessage({ type: "EnableScroll" }, window.location.href), n(18, P = !1);
997
- }, we = () => {
998
- let d = {
999
- method: "DELETE",
1000
- headers: {
1001
- "X-SessionId": i,
1002
- "Content-Type": "application/json",
1003
- Accept: "application/json"
1004
- }
1005
- }, I = new URL(`${t}/v1/player/${r}/bonusWallet`);
1006
- I.searchParams.append("bonusWalletID", q), fetch(I, d).then((G) => {
1007
- G.status == 200 && (X(0), ae());
1008
- });
1009
- }, Me = () => {
1010
- Ze(p);
1011
- };
1012
- function ke(d) {
1013
- return _e(d, 1e3);
1014
- }
1015
- Ge(() => (window.addEventListener("message", z, !1), () => {
1016
- window.removeEventListener("message", z);
1017
- }));
1018
- const Ae = () => te();
1019
- function We() {
1020
- W = this.value, n(11, W);
1021
- }
1022
- const Ee = () => X(0), Pe = () => X(w), Fe = (d) => X(d * Y), Se = () => X(S), Ie = () => X(E);
1023
- function ze(d) {
1024
- Ve[d ? "unshift" : "push"](() => {
1025
- u = d, n(7, u);
1026
- });
1027
- }
1028
- return o.$$set = (d) => {
1029
- "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);
1030
- }, o.$$.update = () => {
1031
- o.$$.dirty[0] & /*lang*/
1032
- 1 && p && Me(), o.$$.dirty[0] & /*session, playerid, endpoint*/
1033
- 1879048192 && i && r && t && X(0), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1034
- 130 && f && u && Ue(u, f), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1035
- 132 && h && u && He(u, h), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
1036
- 136 && y && u && Xe(u, `${y}.Style`), o.$$.dirty[0] & /*translationurl*/
1037
- 16 && k && A();
1038
- }, [
1039
- p,
1040
- f,
1041
- h,
1042
- y,
1043
- k,
1044
- v,
1045
- C,
1046
- u,
1047
- _,
1048
- g,
1049
- O,
1050
- W,
1051
- w,
1052
- S,
1053
- E,
1054
- D,
1055
- F,
1056
- K,
1057
- P,
1058
- a,
1059
- m,
1060
- te,
1061
- Ce,
1062
- X,
1063
- he,
1064
- ae,
1065
- we,
1066
- ke,
1067
- t,
1068
- i,
1069
- r,
1070
- l,
1071
- Ae,
1072
- We,
1073
- Ee,
1074
- Pe,
1075
- Fe,
1076
- Se,
1077
- Ie,
1078
- ze
1079
- ];
1080
- }
1081
- class io extends Ne {
1082
- constructor(e) {
1083
- super(), Re(
1084
- this,
1085
- e,
1086
- ro,
1087
- to,
1088
- je,
1089
- {
1090
- endpoint: 28,
1091
- session: 29,
1092
- playerid: 30,
1093
- lang: 0,
1094
- currency: 31,
1095
- clientstyling: 1,
1096
- clientstylingurl: 2,
1097
- mbsource: 3,
1098
- translationurl: 4,
1099
- currencylocale: 5,
1100
- dateformat: 6
1101
- },
1102
- Ke,
1103
- [-1, -1]
1104
- );
1105
- }
1106
- get endpoint() {
1107
- return this.$$.ctx[28];
1108
- }
1109
- set endpoint(e) {
1110
- this.$$set({ endpoint: e }), U();
1111
- }
1112
- get session() {
1113
- return this.$$.ctx[29];
1114
- }
1115
- set session(e) {
1116
- this.$$set({ session: e }), U();
1117
- }
1118
- get playerid() {
1119
- return this.$$.ctx[30];
1120
- }
1121
- set playerid(e) {
1122
- this.$$set({ playerid: e }), U();
1123
- }
1124
- get lang() {
1125
- return this.$$.ctx[0];
1126
- }
1127
- set lang(e) {
1128
- this.$$set({ lang: e }), U();
1129
- }
1130
- get currency() {
1131
- return this.$$.ctx[31];
1132
- }
1133
- set currency(e) {
1134
- this.$$set({ currency: e }), U();
1135
- }
1136
- get clientstyling() {
1137
- return this.$$.ctx[1];
1138
- }
1139
- set clientstyling(e) {
1140
- this.$$set({ clientstyling: e }), U();
1141
- }
1142
- get clientstylingurl() {
1143
- return this.$$.ctx[2];
1144
- }
1145
- set clientstylingurl(e) {
1146
- this.$$set({ clientstylingurl: e }), U();
1147
- }
1148
- get mbsource() {
1149
- return this.$$.ctx[3];
1150
- }
1151
- set mbsource(e) {
1152
- this.$$set({ mbsource: e }), U();
1153
- }
1154
- get translationurl() {
1155
- return this.$$.ctx[4];
1156
- }
1157
- set translationurl(e) {
1158
- this.$$set({ translationurl: e }), U();
1159
- }
1160
- get currencylocale() {
1161
- return this.$$.ctx[5];
1162
- }
1163
- set currencylocale(e) {
1164
- this.$$set({ currencylocale: e }), U();
1165
- }
1166
- get dateformat() {
1167
- return this.$$.ctx[6];
1168
- }
1169
- set dateformat(e) {
1170
- this.$$set({ dateformat: e }), U();
1171
- }
1172
- }
1173
- Ye(io, { endpoint: {}, session: {}, playerid: {}, lang: {}, currency: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, currencylocale: {}, dateformat: {} }, [], [], !0);
1174
- export {
1175
- io as default
1176
- };