@everymatrix/player-account-controller-nd 1.64.7 → 1.64.10

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 (51) hide show
  1. package/components/{PlayerAccountControllerNd-CyelNs9q.js → PlayerAccountControllerNd-CkaH6zDU.js} +7 -7
  2. package/components/{PlayerAccountControllerNd-BGt2cPNV.cjs → PlayerAccountControllerNd-DQvMmT61.cjs} +1 -1
  3. package/components/{PlayerAccountControllerNd-fATHp03S.js → PlayerAccountControllerNd-Dt5l8jYU.js} +7 -7
  4. package/components/{PlayerAccountGamingLimits-CADFb6Zk.js → PlayerAccountGamingLimits-BwempsG_.js} +1 -1
  5. package/components/{PlayerAccountGamingLimits-CIAwGTQF.js → PlayerAccountGamingLimits-C5fcaaR5.js} +1 -1
  6. package/components/{PlayerAccountGamingLimits-CECZHZhj.cjs → PlayerAccountGamingLimits-DZBzKFyv.cjs} +1 -1
  7. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +1 -0
  8. package/components/{PlayerAccountGamingLimitsInfoCard-DMvgJbMq.js → PlayerAccountGamingLimitsInfoCard-BiYcxWjN.js} +2 -2
  9. package/components/{PlayerAccountGamingLimitsInfoCard-BU4O8oYP.cjs → PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs} +1 -1
  10. package/components/{PlayerAccountGamingLimitsInfoCard-DOl56_Az.js → PlayerAccountGamingLimitsInfoCard-dUq3DIBx.js} +2 -2
  11. package/components/{PlayerAccountSelfExclusionNd-3OSV7Drs.cjs → PlayerAccountSelfExclusionNd-C-u2Wwb1.cjs} +161 -161
  12. package/components/{PlayerAccountSelfExclusionNd-C3uFkzhO.js → PlayerAccountSelfExclusionNd-C9MFg2CR.js} +2676 -2482
  13. package/components/{PlayerAccountSelfExclusionNd-B0Q-eCq2.js → PlayerAccountSelfExclusionNd-DWCVjwD1.js} +2725 -2532
  14. package/components/{PlayerAccountTimeout-CflY0JwE.js → PlayerAccountTimeout-BziMrEG5.js} +164 -185
  15. package/components/{PlayerAccountTimeout-CTI9lsq2.js → PlayerAccountTimeout-D_K9f07W.js} +164 -185
  16. package/components/PlayerAccountTimeout-iL8gGlkS.cjs +1 -0
  17. package/components/PlayerActiveBonuses-CVhSMdRf.cjs +1 -0
  18. package/components/PlayerActiveBonuses-DbYy8R7L.js +1110 -0
  19. package/components/{PlayerActiveBonuses-CBtuWP9k.js → PlayerActiveBonuses-ednos3wt.js} +479 -448
  20. package/components/PlayerBonusCard-BNNcjGWn.cjs +1 -0
  21. package/components/{PlayerBonusCard-cejKhzym.js → PlayerBonusCard-C0Z6YeQL.js} +255 -238
  22. package/components/{PlayerBonusCard-DlAco387.js → PlayerBonusCard-CYnvLBMF.js} +255 -238
  23. package/components/PlayerBonusHistory-CGJcFkrW.js +986 -0
  24. package/components/PlayerBonusHistory-CWchCQIB.cjs +1 -0
  25. package/components/PlayerBonusHistory-lCwwt2xD.js +985 -0
  26. package/components/PlayerGamingHistory-B3Q9IQhr.js +988 -0
  27. package/components/PlayerGamingHistory-BwvEFKUk.cjs +1 -0
  28. package/components/PlayerGamingHistory-ByhAaRpD.js +975 -0
  29. package/components/PlayerProfileInfo-8ER8t_W6.js +2383 -0
  30. package/components/PlayerProfileInfo-D5YZWH2T.cjs +4 -0
  31. package/components/PlayerProfileInfo-D6LqZyUL.js +2419 -0
  32. package/es2015/player-account-controller-nd.cjs +1 -1
  33. package/es2015/player-account-controller-nd.js +1 -1
  34. package/esnext/player-account-controller-nd.js +1 -1
  35. package/package.json +1 -1
  36. package/components/PlayerAccountGamingLimitsGroupEdit-DEf_qyUJ.cjs +0 -1
  37. package/components/PlayerAccountTimeout-Cr-iejKj.cjs +0 -1
  38. package/components/PlayerActiveBonuses-BMNFopKN.js +0 -1077
  39. package/components/PlayerActiveBonuses-CUk_4d3L.cjs +0 -1
  40. package/components/PlayerBonusCard-Dtncif7M.cjs +0 -1
  41. package/components/PlayerBonusHistory-B0_pPWDM.cjs +0 -1
  42. package/components/PlayerBonusHistory-BkBsAUpn.js +0 -937
  43. package/components/PlayerBonusHistory-DncAG4ke.js +0 -938
  44. package/components/PlayerGamingHistory-BJAbDjSA.js +0 -966
  45. package/components/PlayerGamingHistory-CouvBfWt.js +0 -979
  46. package/components/PlayerGamingHistory-DegmmHCF.cjs +0 -1
  47. package/components/PlayerProfileInfo-BNNblETP.js +0 -2058
  48. package/components/PlayerProfileInfo-Cc6HVNlU.cjs +0 -1
  49. package/components/PlayerProfileInfo-CgjgB8YL.js +0 -2086
  50. package/components/{PlayerAccountGamingLimitsGroupEdit-bap-6gHN.js → PlayerAccountGamingLimitsGroupEdit-D0hqXEY4.js} +16 -16
  51. package/components/{PlayerAccountGamingLimitsGroupEdit-CYLHl_Dl.js → PlayerAccountGamingLimitsGroupEdit-DVvwhjK6.js} +16 -16
@@ -1,938 +0,0 @@
1
- import { a as Ie, $ as Le, S as Ne, i as Re, s as je, f as R, b as Oe, n as pe, d as j, g as O, j as v, p as Ge, q as Ve, u as qe, w as le, c as x, e as s, h as d, l as X, k as A, m as z, o as f, v as Q, O as oe, P as Be, r as Ue, F as ve, x as Ze, y as Ye, z as Xe, A as Je, B as Ke } from "./GeneralLogout-PryurO1h.js";
2
- import "./PlayerActiveBonuses-CBtuWP9k.js";
3
- import "./PlayerAccountSelfExclusionNd-B0Q-eCq2.js";
4
- import { f as ae, s as Qe, a as xe, e as $e } from "./PlayerAccountGamingLimitsGroupEdit-CYLHl_Dl.js";
5
- function me(n, e) {
6
- Ie(n, e);
7
- }
8
- function en(n) {
9
- Le.set(n);
10
- }
11
- const be = {
12
- en: {
13
- titleBonusesHistory: "Bonus History",
14
- dateFrom: "From:",
15
- dateTo: "To:",
16
- dateFilter: "Filter",
17
- noBonusHistory: "You have no bonuses for the selected period."
18
- },
19
- "zh-hk": {
20
- titleBonusesHistory: "獎金歷史",
21
- dateFrom: "從:",
22
- dateTo: "至:",
23
- dateFilter: "篩選",
24
- noBonusHistory: "您目前沒有獎金歷史。"
25
- },
26
- fr: {
27
- titleBonusesHistory: "Historique du bonus",
28
- dateFrom: "De:",
29
- dateTo: "A:",
30
- dateFilter: "Filtre",
31
- noBonusHistory: "Vous n'avez pas d'historique de bonus pour le moment."
32
- },
33
- ro: {
34
- titleBonusesHistory: "Istoric bonusuri",
35
- dateFrom: "De la",
36
- dateTo: "La",
37
- dateFilter: "Filtru",
38
- noBonusHistory: "Nu ai bonusuri pentru perioada selectata."
39
- },
40
- es: {
41
- titleBonusesHistory: "Historial de Bonos",
42
- dateFrom: "Desde:",
43
- dateTo: "A:",
44
- dateFilter: "Filtro",
45
- noBonusHistory: "No tiene Bonos para el periodo seleccionado."
46
- },
47
- pt: {
48
- titleBonusesHistory: "Histórico de bônus",
49
- dateFrom: "A partir de:",
50
- dateTo: "Para:",
51
- dateFilter: "Filtro:",
52
- noBonusHistory: "Você não tem histórico de bônus no momento."
53
- },
54
- hr: {
55
- titleBonusesHistory: "Povijest bonusa",
56
- dateFrom: "Od:",
57
- dateTo: "Do:",
58
- dateFilter: "Filter",
59
- noBonusHistory: "Nemate bonusa u povijesti."
60
- },
61
- "pt-br": {
62
- titleBonusesHistory: "Histórico de bônus",
63
- dateFrom: "De:",
64
- dateTo: "PARA:",
65
- dateFilter: "Filtro",
66
- noBonusHistory: "Não há bônus para o período selecionado"
67
- },
68
- "es-mx": {
69
- titleBonusesHistory: "Historial de bonos",
70
- dateFrom: "De:",
71
- dateTo: "A:",
72
- dateFilter: "Filtro",
73
- noBonusHistory: "No tiene bonus para el periodo seleccionado"
74
- },
75
- tr: {
76
- titleBonusesHistory: "Bonus Geçmişi",
77
- dateFrom: "İtibaren:",
78
- dateTo: "İle:",
79
- dateFilter: "Filtre",
80
- noBonusHistory: "Seçilen dönem için bonusunuz yok."
81
- },
82
- "en-us": {
83
- titleBonusesHistory: "Bonus History",
84
- dateFrom: "From:",
85
- dateTo: "To:",
86
- dateFilter: "Filter",
87
- noBonusHistory: "You have no bonuses for the selected period."
88
- }
89
- };
90
- function nn(n) {
91
- Oe(n, "svelte-197dbao", ".BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{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:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.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:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 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-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}");
92
- }
93
- function fe(n, e, t) {
94
- const o = n.slice();
95
- return o[47] = e[t], o[49] = t, o;
96
- }
97
- function ge(n, e, t) {
98
- const o = n.slice();
99
- return o[50] = e[t], o;
100
- }
101
- function tn(n) {
102
- let e, t, o, a = (
103
- /*$_*/
104
- n[21]("titleBonusesHistory") + ""
105
- ), l, r, b, i, p, w, c = (
106
- /*$_*/
107
- n[21]("dateFrom") + ""
108
- ), m, F, h, P, M, D, E = (
109
- /*$_*/
110
- n[21]("dateTo") + ""
111
- ), I, S, g, _, C, y = (
112
- /*$_*/
113
- n[21]("dateFilter") + ""
114
- ), L, J, q, $, K, ee, N = (
115
- /*isMobile*/
116
- n[22] && sn(n)
117
- );
118
- function se(B, T) {
119
- return (
120
- /*bonusesList*/
121
- B[17].length === 0 ? on : an
122
- );
123
- }
124
- let Z = se(n), k = Z(n), H = (
125
- /*bonusesList*/
126
- n[17].length !== 0 && ye(n)
127
- );
128
- return {
129
- c() {
130
- e = v("div"), N && N.c(), t = A(), o = v("h2"), l = z(a), r = A(), b = v("div"), i = v("div"), p = v("div"), w = v("label"), m = z(c), F = A(), h = v("vaadin-date-picker"), P = A(), M = v("div"), D = v("label"), I = z(E), S = A(), g = v("vaadin-date-picker"), _ = A(), C = v("button"), L = z(y), J = A(), q = v("div"), k.c(), $ = A(), H && H.c(), f(o, "class", "BonusesTitle " + /*isMobile*/
131
- (n[22] ? "BonusesTitleNone" : "")), f(o, "part", "BonusesTitle " + /*isMobile*/
132
- (n[22] ? "BonusesTitleNone" : "")), f(w, "for", "BonusCalendarStartDate"), s(
133
- h,
134
- "max",
135
- /*maxDate*/
136
- n[10]
137
- ), s(
138
- h,
139
- "value",
140
- /*lastMonth*/
141
- n[11]
142
- ), s(h, "placeholder", "From"), s(h, "class", "VaadinDatePicker"), f(p, "class", "BonusesCalendarStartDate " + /*isMobile*/
143
- (n[22] ? "BonusesCalendarMobile" : "")), f(D, "for", "BonusesCalendarEndDate"), s(
144
- g,
145
- "max",
146
- /*maxDate*/
147
- n[10]
148
- ), s(
149
- g,
150
- "value",
151
- /*maxDate*/
152
- n[10]
153
- ), s(g, "placeholder", "To"), s(g, "class", "VaadinDatePicker"), f(M, "class", "BonusesCalendarEndDate " + /*isMobile*/
154
- (n[22] ? "BonusesCalendarMobile" : "")), f(i, "class", "BonusesCalendarContainer " + /*isMobile*/
155
- (n[22] ? "BonusesCalendarContainerMobile" : "")), f(C, "class", "BonusesCalendarFilter " + /*isMobile*/
156
- (n[22] ? "BonusesCalendarFilterMobile" : "")), f(b, "class", "BonusCalendarWrapper " + /*isMobile*/
157
- (n[22] ? "BonusCalendarWrapperMobile" : "")), f(q, "class", "BonusesGrid " + /*isMobile*/
158
- (n[22] ? "BonusesGridMobile" : "")), f(e, "class", "BonusesWrapper " + /*isMobile*/
159
- (n[22] ? "BonusesWrapperMobile" : ""));
160
- },
161
- m(B, T) {
162
- O(B, e, T), N && N.m(e, null), d(e, t), d(e, o), d(o, l), d(e, r), d(e, b), d(b, i), d(i, p), d(p, w), d(w, m), d(p, F), d(p, h), n[29](h), d(i, P), d(i, M), d(M, D), d(D, I), d(M, S), d(M, g), n[30](g), d(b, _), d(b, C), d(C, L), d(e, J), d(e, q), k.m(q, null), d(e, $), H && H.m(e, null), K || (ee = X(
163
- C,
164
- "click",
165
- /*click_handler_1*/
166
- n[31]
167
- ), K = !0);
168
- },
169
- p(B, T) {
170
- /*isMobile*/
171
- B[22] && N.p(B, T), T[0] & /*$_*/
172
- 2097152 && a !== (a = /*$_*/
173
- B[21]("titleBonusesHistory") + "") && x(l, a), T[0] & /*$_*/
174
- 2097152 && c !== (c = /*$_*/
175
- B[21]("dateFrom") + "") && x(m, c), T[0] & /*maxDate*/
176
- 1024 && s(
177
- h,
178
- "max",
179
- /*maxDate*/
180
- B[10]
181
- ), T[0] & /*lastMonth*/
182
- 2048 && s(
183
- h,
184
- "value",
185
- /*lastMonth*/
186
- B[11]
187
- ), T[0] & /*$_*/
188
- 2097152 && E !== (E = /*$_*/
189
- B[21]("dateTo") + "") && x(I, E), T[0] & /*maxDate*/
190
- 1024 && s(
191
- g,
192
- "max",
193
- /*maxDate*/
194
- B[10]
195
- ), T[0] & /*maxDate*/
196
- 1024 && s(
197
- g,
198
- "value",
199
- /*maxDate*/
200
- B[10]
201
- ), T[0] & /*$_*/
202
- 2097152 && y !== (y = /*$_*/
203
- B[21]("dateFilter") + "") && x(L, y), Z === (Z = se(B)) && k ? k.p(B, T) : (k.d(1), k = Z(B), k && (k.c(), k.m(q, null))), /*bonusesList*/
204
- B[17].length !== 0 ? H ? H.p(B, T) : (H = ye(B), H.c(), H.m(e, null)) : H && (H.d(1), H = null);
205
- },
206
- d(B) {
207
- B && j(e), N && N.d(), n[29](null), n[30](null), k.d(), H && H.d(), K = !1, ee();
208
- }
209
- };
210
- }
211
- function sn(n) {
212
- let e, t, o, a, l, r, b, i, p, w, c = (
213
- /*$_*/
214
- n[21]("titleBonusesHistory") + ""
215
- ), m, F, h;
216
- return {
217
- c() {
218
- e = v("div"), t = Q("svg"), o = Q("defs"), a = Q("style"), l = z(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), r = Q("g"), b = Q("g"), i = Q("path"), p = A(), w = v("h2"), m = z(c), f(i, "class", "aaa"), f(i, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), f(i, "transform", "translate(15 15) rotate(180)"), f(b, "transform", "translate(20 158)"), f(r, "transform", "translate(-20 -158)"), f(t, "xmlns", "http://www.w3.org/2000/svg"), f(t, "width", "15"), f(t, "height", "15"), f(t, "viewBox", "0 0 15 15"), f(w, "class", "BonusesTitleMobile"), f(e, "class", "MenuReturnButton");
219
- },
220
- m(P, M) {
221
- O(P, e, M), d(e, t), d(t, o), d(o, a), d(a, l), d(t, r), d(r, b), d(b, i), d(e, p), d(e, w), d(w, m), F || (h = X(
222
- e,
223
- "click",
224
- /*click_handler*/
225
- n[28]
226
- ), F = !0);
227
- },
228
- p(P, M) {
229
- M[0] & /*$_*/
230
- 2097152 && c !== (c = /*$_*/
231
- P[21]("titleBonusesHistory") + "") && x(m, c);
232
- },
233
- d(P) {
234
- P && j(e), F = !1, h();
235
- }
236
- };
237
- }
238
- function an(n) {
239
- let e, t = oe(
240
- /*bonusesList*/
241
- n[17]
242
- ), o = [];
243
- for (let a = 0; a < t.length; a += 1)
244
- o[a] = _e(ge(n, t, a));
245
- return {
246
- c() {
247
- for (let a = 0; a < o.length; a += 1)
248
- o[a].c();
249
- e = ve();
250
- },
251
- m(a, l) {
252
- for (let r = 0; r < o.length; r += 1)
253
- o[r] && o[r].m(a, l);
254
- O(a, e, l);
255
- },
256
- p(a, l) {
257
- if (l[0] & /*termsandconditionsdescription, termsandconditionsurl, termsandconditionsasset, bonusesList, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
258
- 1966111) {
259
- t = oe(
260
- /*bonusesList*/
261
- a[17]
262
- );
263
- let r;
264
- for (r = 0; r < t.length; r += 1) {
265
- const b = ge(a, t, r);
266
- o[r] ? o[r].p(b, l) : (o[r] = _e(b), o[r].c(), o[r].m(e.parentNode, e));
267
- }
268
- for (; r < o.length; r += 1)
269
- o[r].d(1);
270
- o.length = t.length;
271
- }
272
- },
273
- d(a) {
274
- a && j(e), Be(o, a);
275
- }
276
- };
277
- }
278
- function on(n) {
279
- let e, t = (
280
- /*$_*/
281
- n[21]("noBonusHistory") + ""
282
- ), o;
283
- return {
284
- c() {
285
- e = v("p"), o = z(t);
286
- },
287
- m(a, l) {
288
- O(a, e, l), d(e, o);
289
- },
290
- p(a, l) {
291
- l[0] & /*$_*/
292
- 2097152 && t !== (t = /*$_*/
293
- a[21]("noBonusHistory") + "") && x(o, t);
294
- },
295
- d(a) {
296
- a && j(e);
297
- }
298
- };
299
- }
300
- function rn(n) {
301
- let e, t, o, a, l, r, b, i, p, w;
302
- return {
303
- c() {
304
- e = v("player-bonus-card"), s(
305
- e,
306
- "termsandconditionsdescription",
307
- /*termsandconditionsdescription*/
308
- n[20]
309
- ), s(
310
- e,
311
- "termsandconditionsurl",
312
- /*termsandconditionsurl*/
313
- n[18]
314
- ), s(
315
- e,
316
- "termsandconditionsasset",
317
- /*termsandconditionsasset*/
318
- n[19]
319
- ), s(e, "bonuswalletid", t = /*bonus*/
320
- n[50].walletId), s(e, "bonusdate", o = /*bonus*/
321
- n[50].granted), s(e, "bonusstatus", a = /*bonus*/
322
- n[50].status), s(e, "bonusname", l = /*bonus*/
323
- n[50].name), s(e, "bonustype", r = /*bonus*/
324
- n[50].type), s(e, "bonusamount", b = /*bonus*/
325
- n[50].extension.grantedPlayerCurrencyAmount), s(e, "bonuswageringamount", i = `${/*bonus*/
326
- n[50].fulfilledWR} / ${/*bonus*/
327
- n[50].originalWageringRequirement}`), s(e, "bonusremainingamount", p = /*bonus*/
328
- n[50].currentAmount), s(e, "bonuscurrency", w = /*bonus*/
329
- n[50].currency), s(
330
- e,
331
- "lang",
332
- /*lang*/
333
- n[0]
334
- ), s(
335
- e,
336
- "clientstyling",
337
- /*clientstyling*/
338
- n[1]
339
- ), s(
340
- e,
341
- "clientstylingurl",
342
- /*clientstylingurl*/
343
- n[2]
344
- ), s(
345
- e,
346
- "mbsource",
347
- /*mbsource*/
348
- n[3]
349
- ), s(
350
- e,
351
- "translationurl",
352
- /*translationurl*/
353
- n[4]
354
- );
355
- },
356
- m(c, m) {
357
- O(c, e, m);
358
- },
359
- p(c, m) {
360
- m[0] & /*termsandconditionsdescription*/
361
- 1048576 && s(
362
- e,
363
- "termsandconditionsdescription",
364
- /*termsandconditionsdescription*/
365
- c[20]
366
- ), m[0] & /*termsandconditionsurl*/
367
- 262144 && s(
368
- e,
369
- "termsandconditionsurl",
370
- /*termsandconditionsurl*/
371
- c[18]
372
- ), m[0] & /*termsandconditionsasset*/
373
- 524288 && s(
374
- e,
375
- "termsandconditionsasset",
376
- /*termsandconditionsasset*/
377
- c[19]
378
- ), m[0] & /*bonusesList*/
379
- 131072 && t !== (t = /*bonus*/
380
- c[50].walletId) && s(e, "bonuswalletid", t), m[0] & /*bonusesList*/
381
- 131072 && o !== (o = /*bonus*/
382
- c[50].granted) && s(e, "bonusdate", o), m[0] & /*bonusesList*/
383
- 131072 && a !== (a = /*bonus*/
384
- c[50].status) && s(e, "bonusstatus", a), m[0] & /*bonusesList*/
385
- 131072 && l !== (l = /*bonus*/
386
- c[50].name) && s(e, "bonusname", l), m[0] & /*bonusesList*/
387
- 131072 && r !== (r = /*bonus*/
388
- c[50].type) && s(e, "bonustype", r), m[0] & /*bonusesList*/
389
- 131072 && b !== (b = /*bonus*/
390
- c[50].extension.grantedPlayerCurrencyAmount) && s(e, "bonusamount", b), m[0] & /*bonusesList*/
391
- 131072 && i !== (i = `${/*bonus*/
392
- c[50].fulfilledWR} / ${/*bonus*/
393
- c[50].originalWageringRequirement}`) && s(e, "bonuswageringamount", i), m[0] & /*bonusesList*/
394
- 131072 && p !== (p = /*bonus*/
395
- c[50].currentAmount) && s(e, "bonusremainingamount", p), m[0] & /*bonusesList*/
396
- 131072 && w !== (w = /*bonus*/
397
- c[50].currency) && s(e, "bonuscurrency", w), m[0] & /*lang*/
398
- 1 && s(
399
- e,
400
- "lang",
401
- /*lang*/
402
- c[0]
403
- ), m[0] & /*clientstyling*/
404
- 2 && s(
405
- e,
406
- "clientstyling",
407
- /*clientstyling*/
408
- c[1]
409
- ), m[0] & /*clientstylingurl*/
410
- 4 && s(
411
- e,
412
- "clientstylingurl",
413
- /*clientstylingurl*/
414
- c[2]
415
- ), m[0] & /*mbsource*/
416
- 8 && s(
417
- e,
418
- "mbsource",
419
- /*mbsource*/
420
- c[3]
421
- ), m[0] & /*translationurl*/
422
- 16 && s(
423
- e,
424
- "translationurl",
425
- /*translationurl*/
426
- c[4]
427
- );
428
- },
429
- d(c) {
430
- c && j(e);
431
- }
432
- };
433
- }
434
- function ln(n) {
435
- let e, t, o, a, l, r, b;
436
- return {
437
- c() {
438
- e = v("player-bonus-card"), s(
439
- e,
440
- "termsandconditionsdescription",
441
- /*termsandconditionsdescription*/
442
- n[20]
443
- ), s(
444
- e,
445
- "termsandconditionsurl",
446
- /*termsandconditionsurl*/
447
- n[18]
448
- ), s(
449
- e,
450
- "termsandconditionsasset",
451
- /*termsandconditionsasset*/
452
- n[19]
453
- ), s(e, "bonuswalletid", t = /*bonus*/
454
- n[50].walletId), s(e, "bonusdate", o = /*bonus*/
455
- n[50].granted), s(e, "bonusstatus", a = /*bonus*/
456
- n[50].status), s(e, "bonusname", l = /*bonus*/
457
- n[50].name), s(e, "bonustype", r = /*bonus*/
458
- n[50].type), s(e, "bonuscurrency", b = /*bonus*/
459
- n[50].currency), s(
460
- e,
461
- "lang",
462
- /*lang*/
463
- n[0]
464
- ), s(
465
- e,
466
- "clientstyling",
467
- /*clientstyling*/
468
- n[1]
469
- ), s(
470
- e,
471
- "clientstylingurl",
472
- /*clientstylingurl*/
473
- n[2]
474
- ), s(
475
- e,
476
- "mbsource",
477
- /*mbsource*/
478
- n[3]
479
- ), s(
480
- e,
481
- "translationurl",
482
- /*translationurl*/
483
- n[4]
484
- );
485
- },
486
- m(i, p) {
487
- O(i, e, p);
488
- },
489
- p(i, p) {
490
- p[0] & /*termsandconditionsdescription*/
491
- 1048576 && s(
492
- e,
493
- "termsandconditionsdescription",
494
- /*termsandconditionsdescription*/
495
- i[20]
496
- ), p[0] & /*termsandconditionsurl*/
497
- 262144 && s(
498
- e,
499
- "termsandconditionsurl",
500
- /*termsandconditionsurl*/
501
- i[18]
502
- ), p[0] & /*termsandconditionsasset*/
503
- 524288 && s(
504
- e,
505
- "termsandconditionsasset",
506
- /*termsandconditionsasset*/
507
- i[19]
508
- ), p[0] & /*bonusesList*/
509
- 131072 && t !== (t = /*bonus*/
510
- i[50].walletId) && s(e, "bonuswalletid", t), p[0] & /*bonusesList*/
511
- 131072 && o !== (o = /*bonus*/
512
- i[50].granted) && s(e, "bonusdate", o), p[0] & /*bonusesList*/
513
- 131072 && a !== (a = /*bonus*/
514
- i[50].status) && s(e, "bonusstatus", a), p[0] & /*bonusesList*/
515
- 131072 && l !== (l = /*bonus*/
516
- i[50].name) && s(e, "bonusname", l), p[0] & /*bonusesList*/
517
- 131072 && r !== (r = /*bonus*/
518
- i[50].type) && s(e, "bonustype", r), p[0] & /*bonusesList*/
519
- 131072 && b !== (b = /*bonus*/
520
- i[50].currency) && s(e, "bonuscurrency", b), p[0] & /*lang*/
521
- 1 && s(
522
- e,
523
- "lang",
524
- /*lang*/
525
- i[0]
526
- ), p[0] & /*clientstyling*/
527
- 2 && s(
528
- e,
529
- "clientstyling",
530
- /*clientstyling*/
531
- i[1]
532
- ), p[0] & /*clientstylingurl*/
533
- 4 && s(
534
- e,
535
- "clientstylingurl",
536
- /*clientstylingurl*/
537
- i[2]
538
- ), p[0] & /*mbsource*/
539
- 8 && s(
540
- e,
541
- "mbsource",
542
- /*mbsource*/
543
- i[3]
544
- ), p[0] & /*translationurl*/
545
- 16 && s(
546
- e,
547
- "translationurl",
548
- /*translationurl*/
549
- i[4]
550
- );
551
- },
552
- d(i) {
553
- i && j(e);
554
- }
555
- };
556
- }
557
- function _e(n) {
558
- let e;
559
- function t(l, r) {
560
- return (
561
- /*bonus*/
562
- l[50].type === "freeRound" ? ln : rn
563
- );
564
- }
565
- let o = t(n), a = o(n);
566
- return {
567
- c() {
568
- a.c(), e = ve();
569
- },
570
- m(l, r) {
571
- a.m(l, r), O(l, e, r);
572
- },
573
- p(l, r) {
574
- o === (o = t(l)) && a ? a.p(l, r) : (a.d(1), a = o(l), a && (a.c(), a.m(e.parentNode, e)));
575
- },
576
- d(l) {
577
- l && j(e), a.d(l);
578
- }
579
- };
580
- }
581
- function ye(n) {
582
- let e, t, o, a, l, r, b, i, p, w, c, m, F, h, P, M, D, E, I, S = oe(Array(
583
- /*numberOfPages*/
584
- n[15]
585
- )), g = [];
586
- for (let _ = 0; _ < S.length; _ += 1)
587
- g[_] = he(fe(n, S, _));
588
- return {
589
- c() {
590
- e = v("div"), t = v("span"), o = z("|<"), l = A(), r = v("span"), b = z("<"), p = A();
591
- for (let _ = 0; _ < g.length; _ += 1)
592
- g[_].c();
593
- w = A(), c = v("span"), m = z(">"), h = A(), P = v("span"), M = z(">|"), f(t, "class", a = "BonusesFirst " + /*currentPage*/
594
- (n[16] === 0 ? "Inactive" : "")), f(r, "class", i = "BonusesPrev " + /*currentPage*/
595
- (n[16] === 0 ? "Inactive" : "")), f(c, "class", F = "BonusesNext " + /*currentPage*/
596
- (n[16] === /*numberOfPages*/
597
- n[15] - 1 ? "Inactive" : "")), f(P, "class", D = "BonusesLast " + /*currentPage*/
598
- (n[16] === /*numberOfPages*/
599
- n[15] - 1 ? "Inactive" : "")), f(e, "class", "BonusesPaginationWrapper " + /*isMobile*/
600
- (n[22] ? "BonusesPaginationWrapperMobile" : ""));
601
- },
602
- m(_, C) {
603
- O(_, e, C), d(e, t), d(t, o), d(e, l), d(e, r), d(r, b), d(e, p);
604
- for (let y = 0; y < g.length; y += 1)
605
- g[y] && g[y].m(e, null);
606
- d(e, w), d(e, c), d(c, m), d(e, h), d(e, P), d(P, M), E || (I = [
607
- X(
608
- t,
609
- "click",
610
- /*click_handler_2*/
611
- n[32]
612
- ),
613
- X(
614
- r,
615
- "click",
616
- /*click_handler_3*/
617
- n[33]
618
- ),
619
- X(
620
- c,
621
- "click",
622
- /*click_handler_5*/
623
- n[35]
624
- ),
625
- X(
626
- P,
627
- "click",
628
- /*click_handler_6*/
629
- n[36]
630
- )
631
- ], E = !0);
632
- },
633
- p(_, C) {
634
- if (C[0] & /*currentPage*/
635
- 65536 && a !== (a = "BonusesFirst " + /*currentPage*/
636
- (_[16] === 0 ? "Inactive" : "")) && f(t, "class", a), C[0] & /*currentPage*/
637
- 65536 && i !== (i = "BonusesPrev " + /*currentPage*/
638
- (_[16] === 0 ? "Inactive" : "")) && f(r, "class", i), C[0] & /*currentPage, getBonuses, bonushistorystatus, bonushistorytype, numberOfPages*/
639
- 16875616) {
640
- S = oe(Array(
641
- /*numberOfPages*/
642
- _[15]
643
- ));
644
- let y;
645
- for (y = 0; y < S.length; y += 1) {
646
- const L = fe(_, S, y);
647
- g[y] ? g[y].p(L, C) : (g[y] = he(L), g[y].c(), g[y].m(e, w));
648
- }
649
- for (; y < g.length; y += 1)
650
- g[y].d(1);
651
- g.length = S.length;
652
- }
653
- C[0] & /*currentPage, numberOfPages*/
654
- 98304 && F !== (F = "BonusesNext " + /*currentPage*/
655
- (_[16] === /*numberOfPages*/
656
- _[15] - 1 ? "Inactive" : "")) && f(c, "class", F), C[0] & /*currentPage, numberOfPages*/
657
- 98304 && D !== (D = "BonusesLast " + /*currentPage*/
658
- (_[16] === /*numberOfPages*/
659
- _[15] - 1 ? "Inactive" : "")) && f(P, "class", D);
660
- },
661
- d(_) {
662
- _ && j(e), Be(g, _), E = !1, Ue(I);
663
- }
664
- };
665
- }
666
- function he(n) {
667
- let e, t = (
668
- /*i*/
669
- n[49] + 1 + ""
670
- ), o, a, l, r;
671
- function b() {
672
- return (
673
- /*click_handler_4*/
674
- n[34](
675
- /*i*/
676
- n[49]
677
- )
678
- );
679
- }
680
- return {
681
- c() {
682
- e = v("span"), o = z(t), f(e, "class", a = "BonusesPage " + /*i*/
683
- (n[49] === /*currentPage*/
684
- n[16] ? "BonusPageActive" : ""));
685
- },
686
- m(i, p) {
687
- O(i, e, p), d(e, o), l || (r = X(e, "click", b), l = !0);
688
- },
689
- p(i, p) {
690
- n = i, p[0] & /*currentPage*/
691
- 65536 && a !== (a = "BonusesPage " + /*i*/
692
- (n[49] === /*currentPage*/
693
- n[16] ? "BonusPageActive" : "")) && f(e, "class", a);
694
- },
695
- d(i) {
696
- i && j(e), l = !1, r();
697
- }
698
- };
699
- }
700
- function un(n) {
701
- let e;
702
- function t(l, r) {
703
- return tn;
704
- }
705
- let a = t()(n);
706
- return {
707
- c() {
708
- e = v("div"), a.c();
709
- },
710
- m(l, r) {
711
- O(l, e, r), a.m(e, null), n[37](e);
712
- },
713
- p(l, r) {
714
- a.p(l, r);
715
- },
716
- i: pe,
717
- o: pe,
718
- d(l) {
719
- l && j(e), a.d(), n[37](null);
720
- }
721
- };
722
- }
723
- let V = 6;
724
- function dn(n, e, t) {
725
- let o;
726
- Ge(n, Ke, (u) => t(21, o = u));
727
- let { endpoint: a = "" } = e, { session: l = "" } = e, { playerid: r = "" } = e, { lang: b = "en" } = e, { clientstyling: i = "" } = e, { clientstylingurl: p = "" } = e, { mbsource: w } = e, { translationurl: c = "" } = e, { bonushistorystatus: m = "" } = e, { bonushistorytype: F = "" } = e, h, P = window.navigator.userAgent, M = Ve(P) !== "PC", D, E, I, S;
728
- I = ae(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), S = ae(Qe(/* @__PURE__ */ new Date(), 3), "yyyy-MM-dd");
729
- let g = S, _ = I, C = 0, y = 0, L = 0, J = 0, q = 0, $ = [], K = "", ee = "", N = "";
730
- const se = () => {
731
- fetch(c).then((G) => G.json()).then((G) => {
732
- Object.keys(G).forEach((ne) => {
733
- me(ne, G[ne]);
734
- });
735
- }).catch((G) => {
736
- console.log(G);
737
- });
738
- };
739
- Object.keys(be).forEach((u) => {
740
- me(u, be[u]);
741
- });
742
- const Z = () => {
743
- window.postMessage(
744
- {
745
- type: "PlayerAccountMenuActive",
746
- isMobile: M
747
- },
748
- window.location.href
749
- );
750
- }, k = (u, G, ne) => {
751
- let re = new URL(`${a}/v1/player/${r}/bonusWallet`), We = ae(xe(new Date(g)), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"), Ae = ae($e(new Date(_)), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"), Y = "", ie = "", ue = "";
752
- G && (ie = G.split(",").map((U) => `status=${U}`).join(","), Y = Y + ie + ","), ne && (ue = ne.split(",").map((U) => `type=${U}`).join(","), Y = Y + ue + ","), Y = Y + `granted=[${We}~${Ae}]`, re.searchParams.append("filter", Y), re.searchParams.append("pagination", `offset=${u},limit=${V}`);
753
- let ze = {
754
- method: "GET",
755
- headers: { "X-SessionId": l }
756
- };
757
- fetch(re.href, ze).then((W) => W.json()).then(
758
- (W) => {
759
- Array.isArray(W.items) && W.items.forEach((te) => {
760
- var de, ce;
761
- const U = (ce = (de = te == null ? void 0 : te.extension) == null ? void 0 : de.bonus) == null ? void 0 : ce.presentation;
762
- U && (t(18, K = U.url), t(20, N = U.description), t(19, ee = U.assets));
763
- }), t(15, J = Math.ceil(W.total / V)), u - V >= 0 && t(12, C = u - V), u + V < W.total && t(13, y = u + V), t(14, L = (J - 1) * V), t(16, q = u / V), t(17, $ = (W == null ? void 0 : W.items) || []);
764
- },
765
- (W) => {
766
- console.error(W);
767
- }
768
- ), window.postMessage({ type: "ScrollToTop" }, window.location.href);
769
- }, H = (u) => {
770
- g = u.target.value;
771
- }, B = (u) => {
772
- _ = u.target.value;
773
- }, T = () => {
774
- D.addEventListener("change", H, !1), E.addEventListener("change", B, !1);
775
- };
776
- qe(() => () => {
777
- D.removeEventListener("change", H), E.removeEventListener("change", B);
778
- });
779
- const we = () => {
780
- en(b);
781
- }, Fe = () => Z();
782
- function ke(u) {
783
- le[u ? "unshift" : "push"](() => {
784
- D = u, t(8, D);
785
- });
786
- }
787
- function Ce(u) {
788
- le[u ? "unshift" : "push"](() => {
789
- E = u, t(9, E);
790
- });
791
- }
792
- const Pe = () => k(0, m, F), He = () => k(0, m, F), Me = () => k(C, m, F), De = (u) => k(u * V, m, F), Te = () => k(y, m, F), Ee = () => k(L, m, F);
793
- function Se(u) {
794
- le[u ? "unshift" : "push"](() => {
795
- h = u, t(7, h);
796
- });
797
- }
798
- return n.$$set = (u) => {
799
- "endpoint" in u && t(25, a = u.endpoint), "session" in u && t(26, l = u.session), "playerid" in u && t(27, r = u.playerid), "lang" in u && t(0, b = u.lang), "clientstyling" in u && t(1, i = u.clientstyling), "clientstylingurl" in u && t(2, p = u.clientstylingurl), "mbsource" in u && t(3, w = u.mbsource), "translationurl" in u && t(4, c = u.translationurl), "bonushistorystatus" in u && t(5, m = u.bonushistorystatus), "bonushistorytype" in u && t(6, F = u.bonushistorytype);
800
- }, n.$$.update = () => {
801
- n.$$.dirty[0] & /*lang*/
802
- 1 && b && we(), n.$$.dirty[0] & /*startCalendar, endCalendar*/
803
- 768 && D && E && T(), n.$$.dirty[0] & /*session, playerid, endpoint, bonushistorystatus, bonushistorytype*/
804
- 234881120 && l && r && a && k(0, m, F), n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
805
- 130 && i && h && Ze(h, i), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
806
- 132 && p && h && Ye(h, p), n.$$.dirty[0] & /*mbsource, customStylingContainer*/
807
- 136 && w && h && Xe(h, `${w}.Style`), n.$$.dirty[0] & /*translationurl*/
808
- 16 && c && se();
809
- }, [
810
- b,
811
- i,
812
- p,
813
- w,
814
- c,
815
- m,
816
- F,
817
- h,
818
- D,
819
- E,
820
- I,
821
- S,
822
- C,
823
- y,
824
- L,
825
- J,
826
- q,
827
- $,
828
- K,
829
- ee,
830
- N,
831
- o,
832
- M,
833
- Z,
834
- k,
835
- a,
836
- l,
837
- r,
838
- Fe,
839
- ke,
840
- Ce,
841
- Pe,
842
- He,
843
- Me,
844
- De,
845
- Te,
846
- Ee,
847
- Se
848
- ];
849
- }
850
- class cn extends Ne {
851
- constructor(e) {
852
- super(), Re(
853
- this,
854
- e,
855
- dn,
856
- un,
857
- je,
858
- {
859
- endpoint: 25,
860
- session: 26,
861
- playerid: 27,
862
- lang: 0,
863
- clientstyling: 1,
864
- clientstylingurl: 2,
865
- mbsource: 3,
866
- translationurl: 4,
867
- bonushistorystatus: 5,
868
- bonushistorytype: 6
869
- },
870
- nn,
871
- [-1, -1]
872
- );
873
- }
874
- get endpoint() {
875
- return this.$$.ctx[25];
876
- }
877
- set endpoint(e) {
878
- this.$$set({ endpoint: e }), R();
879
- }
880
- get session() {
881
- return this.$$.ctx[26];
882
- }
883
- set session(e) {
884
- this.$$set({ session: e }), R();
885
- }
886
- get playerid() {
887
- return this.$$.ctx[27];
888
- }
889
- set playerid(e) {
890
- this.$$set({ playerid: e }), R();
891
- }
892
- get lang() {
893
- return this.$$.ctx[0];
894
- }
895
- set lang(e) {
896
- this.$$set({ lang: e }), R();
897
- }
898
- get clientstyling() {
899
- return this.$$.ctx[1];
900
- }
901
- set clientstyling(e) {
902
- this.$$set({ clientstyling: e }), R();
903
- }
904
- get clientstylingurl() {
905
- return this.$$.ctx[2];
906
- }
907
- set clientstylingurl(e) {
908
- this.$$set({ clientstylingurl: e }), R();
909
- }
910
- get mbsource() {
911
- return this.$$.ctx[3];
912
- }
913
- set mbsource(e) {
914
- this.$$set({ mbsource: e }), R();
915
- }
916
- get translationurl() {
917
- return this.$$.ctx[4];
918
- }
919
- set translationurl(e) {
920
- this.$$set({ translationurl: e }), R();
921
- }
922
- get bonushistorystatus() {
923
- return this.$$.ctx[5];
924
- }
925
- set bonushistorystatus(e) {
926
- this.$$set({ bonushistorystatus: e }), R();
927
- }
928
- get bonushistorytype() {
929
- return this.$$.ctx[6];
930
- }
931
- set bonushistorytype(e) {
932
- this.$$set({ bonushistorytype: e }), R();
933
- }
934
- }
935
- Je(cn, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, bonushistorystatus: {}, bonushistorytype: {} }, [], [], !0);
936
- export {
937
- cn as default
938
- };