@everymatrix/player-account-controller-nd 1.69.2 → 1.69.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.
- package/components/{PlayerAccountControllerNd-C0RE3NLP.js → PlayerAccountControllerNd-Cgbx_FME.js} +2 -2
- package/components/{PlayerAccountControllerNd-DGYxFs2I.cjs → PlayerAccountControllerNd-D4d6xo-E.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-zSsSYNVL.js → PlayerAccountControllerNd-XRqKxtkW.js} +2 -2
- package/components/{PlayerBonusHistory-DkSCPj6k.js → PlayerBonusHistory-BRXdsfAV.js} +74 -52
- package/components/PlayerBonusHistory-Cwyo5GX1.cjs +1 -0
- package/components/{PlayerBonusHistory-BqwoCTyO.js → PlayerBonusHistory-DZOJKAeI.js} +74 -52
- package/components/{PlayerGamingHistory-p5DXIiB_.js → PlayerGamingHistory-CjVQuJni.js} +412 -387
- package/components/PlayerGamingHistory-CqcOOClH.cjs +1 -0
- package/components/{PlayerGamingHistory-Q_GQcfDU.js → PlayerGamingHistory-ZpCyHL5M.js} +382 -357
- package/es2015/player-account-controller-nd.cjs +1 -1
- package/es2015/player-account-controller-nd.js +1 -1
- package/esnext/player-account-controller-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerBonusHistory-Dt_QYTi6.cjs +0 -1
- package/components/PlayerGamingHistory-CKMTEuKt.cjs +0 -1
package/components/{PlayerAccountControllerNd-zSsSYNVL.js → PlayerAccountControllerNd-XRqKxtkW.js}
RENAMED
|
@@ -320,7 +320,7 @@ if (typeof window < "u") {
|
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
322
|
};
|
|
323
|
-
customElements.define = s(customElements.define), import("./PlayerBonusHistory-
|
|
323
|
+
customElements.define = s(customElements.define), import("./PlayerBonusHistory-DZOJKAeI.js").then(({ default: e }) => {
|
|
324
324
|
!customElements.get("player-bonus-history") && customElements.define("player-bonus-history", e.element);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
@@ -400,7 +400,7 @@ if (typeof window < "u") {
|
|
|
400
400
|
}
|
|
401
401
|
};
|
|
402
402
|
};
|
|
403
|
-
customElements.define = s(customElements.define), import("./PlayerGamingHistory-
|
|
403
|
+
customElements.define = s(customElements.define), import("./PlayerGamingHistory-ZpCyHL5M.js").then(({ default: e }) => {
|
|
404
404
|
!customElements.get("player-gaming-history") && customElements.define("player-gaming-history", e.element);
|
|
405
405
|
});
|
|
406
406
|
}
|
|
@@ -117,7 +117,7 @@ function vt(t) {
|
|
|
117
117
|
), i, l, y, u, m, w, c = (
|
|
118
118
|
/*$_*/
|
|
119
119
|
t[24]("dateFrom") + ""
|
|
120
|
-
), p, F,
|
|
120
|
+
), p, F, k, M, g, P, j = (
|
|
121
121
|
/*$_*/
|
|
122
122
|
t[24]("dateTo") + ""
|
|
123
123
|
), V, D, f, h, H, _ = (
|
|
@@ -127,31 +127,36 @@ function vt(t) {
|
|
|
127
127
|
/*isMobile*/
|
|
128
128
|
t[25] && wt(t)
|
|
129
129
|
);
|
|
130
|
-
function le(B,
|
|
130
|
+
function le(B, T) {
|
|
131
131
|
return (
|
|
132
132
|
/*bonusesList*/
|
|
133
133
|
B[20].length === 0 ? kt : Ft
|
|
134
134
|
);
|
|
135
135
|
}
|
|
136
|
-
let x = le(t), A = x(t),
|
|
136
|
+
let x = le(t), A = x(t), E = (
|
|
137
137
|
/*bonusesList*/
|
|
138
138
|
t[20].length !== 0 && We(t)
|
|
139
139
|
);
|
|
140
140
|
return {
|
|
141
141
|
c() {
|
|
142
|
-
e = v("div"), R && R.c(), n = z(), r = v("h2"), i = N(a), l = z(), y = v("div"), u = v("div"), m = v("div"), w = v("label"), p = N(c), F = z(),
|
|
142
|
+
e = v("div"), R && R.c(), n = z(), r = v("h2"), i = N(a), l = z(), y = v("div"), u = v("div"), m = v("div"), w = v("label"), p = N(c), F = z(), k = v("vaadin-date-picker"), M = z(), g = v("div"), P = v("label"), V = N(j), D = z(), f = v("vaadin-date-picker"), h = z(), H = v("button"), L = N(_), ne = z(), U = v("div"), A.c(), se = z(), E && E.c(), b(r, "class", "BonusesTitle " + /*isMobile*/
|
|
143
143
|
(t[25] ? "BonusesTitleNone" : "")), b(r, "part", "BonusesTitle " + /*isMobile*/
|
|
144
144
|
(t[25] ? "BonusesTitleNone" : "")), b(w, "for", "BonusCalendarStartDate"), s(
|
|
145
|
-
|
|
145
|
+
k,
|
|
146
146
|
"max",
|
|
147
147
|
/*today*/
|
|
148
148
|
t[26]
|
|
149
149
|
), s(
|
|
150
|
-
|
|
150
|
+
k,
|
|
151
151
|
"value",
|
|
152
152
|
/*bonusCalendarStartDate*/
|
|
153
153
|
t[12]
|
|
154
|
-
), s(
|
|
154
|
+
), s(
|
|
155
|
+
k,
|
|
156
|
+
"placeholder",
|
|
157
|
+
/*bonusCalendarStartDate*/
|
|
158
|
+
t[12]
|
|
159
|
+
), s(k, "class", "VaadinDatePicker"), b(m, "class", "BonusesCalendarStartDate " + /*isMobile*/
|
|
155
160
|
(t[25] ? "BonusesCalendarMobile" : "")), b(P, "for", "BonusesCalendarEndDate"), s(
|
|
156
161
|
f,
|
|
157
162
|
"max",
|
|
@@ -167,7 +172,12 @@ function vt(t) {
|
|
|
167
172
|
"value",
|
|
168
173
|
/*bonusCalendarEndDate*/
|
|
169
174
|
t[13]
|
|
170
|
-
), s(
|
|
175
|
+
), s(
|
|
176
|
+
f,
|
|
177
|
+
"placeholder",
|
|
178
|
+
/*bonusCalendarEndDate*/
|
|
179
|
+
t[13]
|
|
180
|
+
), s(f, "class", "VaadinDatePicker"), b(g, "class", "BonusesCalendarEndDate " + /*isMobile*/
|
|
171
181
|
(t[25] ? "BonusesCalendarMobile" : "")), b(u, "class", "BonusesCalendarContainer " + /*isMobile*/
|
|
172
182
|
(t[25] ? "BonusesCalendarContainerMobile" : "")), b(H, "class", "BonusesCalendarFilter " + /*isMobile*/
|
|
173
183
|
(t[25] ? "BonusesCalendarFilterMobile" : "")), H.disabled = Z = !/*submitEnable*/
|
|
@@ -176,43 +186,55 @@ function vt(t) {
|
|
|
176
186
|
(t[25] ? "BonusesGridMobile" : "")), b(e, "class", "BonusesWrapper " + /*isMobile*/
|
|
177
187
|
(t[25] ? "BonusesWrapperMobile" : ""));
|
|
178
188
|
},
|
|
179
|
-
m(B,
|
|
180
|
-
G(B, e,
|
|
189
|
+
m(B, T) {
|
|
190
|
+
G(B, e, T), R && R.m(e, null), d(e, n), d(e, r), d(r, i), d(e, l), d(e, y), d(y, u), d(u, m), d(m, w), d(w, p), d(m, F), d(m, k), t[35](k), d(u, M), d(u, g), d(g, P), d(P, V), d(g, D), d(g, f), t[36](f), d(y, h), d(y, H), d(H, L), d(e, ne), d(e, U), A.m(U, null), d(e, se), E && E.m(e, null), Q || (re = te(
|
|
181
191
|
H,
|
|
182
192
|
"click",
|
|
183
193
|
/*click_handler_1*/
|
|
184
194
|
t[37]
|
|
185
195
|
), Q = !0);
|
|
186
196
|
},
|
|
187
|
-
p(B,
|
|
197
|
+
p(B, T) {
|
|
188
198
|
/*isMobile*/
|
|
189
|
-
B[25] && R.p(B,
|
|
199
|
+
B[25] && R.p(B, T), T[0] & /*$_*/
|
|
190
200
|
16777216 && a !== (a = /*$_*/
|
|
191
|
-
B[24]("titleBonusesHistory") + "") && oe(i, a),
|
|
201
|
+
B[24]("titleBonusesHistory") + "") && oe(i, a), T[0] & /*$_*/
|
|
192
202
|
16777216 && c !== (c = /*$_*/
|
|
193
|
-
B[24]("dateFrom") + "") && oe(p, c),
|
|
203
|
+
B[24]("dateFrom") + "") && oe(p, c), T[0] & /*bonusCalendarStartDate*/
|
|
194
204
|
4096 && s(
|
|
195
|
-
|
|
205
|
+
k,
|
|
196
206
|
"value",
|
|
197
207
|
/*bonusCalendarStartDate*/
|
|
198
208
|
B[12]
|
|
199
|
-
),
|
|
209
|
+
), T[0] & /*bonusCalendarStartDate*/
|
|
210
|
+
4096 && s(
|
|
211
|
+
k,
|
|
212
|
+
"placeholder",
|
|
213
|
+
/*bonusCalendarStartDate*/
|
|
214
|
+
B[12]
|
|
215
|
+
), T[0] & /*$_*/
|
|
200
216
|
16777216 && j !== (j = /*$_*/
|
|
201
|
-
B[24]("dateTo") + "") && oe(V, j),
|
|
217
|
+
B[24]("dateTo") + "") && oe(V, j), T[0] & /*bonusCalendarEndDate*/
|
|
202
218
|
8192 && s(
|
|
203
219
|
f,
|
|
204
220
|
"value",
|
|
205
221
|
/*bonusCalendarEndDate*/
|
|
206
222
|
B[13]
|
|
207
|
-
),
|
|
223
|
+
), T[0] & /*bonusCalendarEndDate*/
|
|
224
|
+
8192 && s(
|
|
225
|
+
f,
|
|
226
|
+
"placeholder",
|
|
227
|
+
/*bonusCalendarEndDate*/
|
|
228
|
+
B[13]
|
|
229
|
+
), T[0] & /*$_*/
|
|
208
230
|
16777216 && _ !== (_ = /*$_*/
|
|
209
|
-
B[24]("dateFilter") + "") && oe(L, _),
|
|
231
|
+
B[24]("dateFilter") + "") && oe(L, _), T[0] & /*submitEnable*/
|
|
210
232
|
16384 && Z !== (Z = !/*submitEnable*/
|
|
211
|
-
B[14]) && (H.disabled = Z), x === (x = le(B)) && A ? A.p(B,
|
|
212
|
-
B[20].length !== 0 ?
|
|
233
|
+
B[14]) && (H.disabled = Z), x === (x = le(B)) && A ? A.p(B, T) : (A.d(1), A = x(B), A && (A.c(), A.m(U, null))), /*bonusesList*/
|
|
234
|
+
B[20].length !== 0 ? E ? E.p(B, T) : (E = We(B), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
|
|
213
235
|
},
|
|
214
236
|
d(B) {
|
|
215
|
-
B && O(e), R && R.d(), t[35](null), t[36](null), A.d(),
|
|
237
|
+
B && O(e), R && R.d(), t[35](null), t[36](null), A.d(), E && E.d(), Q = !1, re();
|
|
216
238
|
}
|
|
217
239
|
};
|
|
218
240
|
}
|
|
@@ -220,13 +242,13 @@ function wt(t) {
|
|
|
220
242
|
let e, n, r, a, i, l, y, u, m, w, c = (
|
|
221
243
|
/*$_*/
|
|
222
244
|
t[24]("titleBonusesHistory") + ""
|
|
223
|
-
), p, F,
|
|
245
|
+
), p, F, k;
|
|
224
246
|
return {
|
|
225
247
|
c() {
|
|
226
248
|
e = v("div"), n = ae("svg"), r = ae("defs"), a = ae("style"), i = N(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), l = ae("g"), y = ae("g"), u = ae("path"), m = z(), w = v("h2"), p = N(c), b(u, "class", "aaa"), b(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), b(u, "transform", "translate(15 15) rotate(180)"), b(y, "transform", "translate(20 158)"), b(l, "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(w, "class", "BonusesTitleMobile"), b(e, "class", "MenuReturnButton");
|
|
227
249
|
},
|
|
228
250
|
m(M, g) {
|
|
229
|
-
G(M, e, g), d(e, n), d(n, r), d(r, a), d(a, i), d(n, l), d(l, y), d(y, u), d(e, m), d(e, w), d(w, p), F || (
|
|
251
|
+
G(M, e, g), d(e, n), d(n, r), d(r, a), d(a, i), d(n, l), d(l, y), d(y, u), d(e, m), d(e, w), d(w, p), F || (k = te(
|
|
230
252
|
e,
|
|
231
253
|
"click",
|
|
232
254
|
/*click_handler*/
|
|
@@ -239,7 +261,7 @@ function wt(t) {
|
|
|
239
261
|
M[24]("titleBonusesHistory") + "") && oe(p, c);
|
|
240
262
|
},
|
|
241
263
|
d(M) {
|
|
242
|
-
M && O(e), F = !1,
|
|
264
|
+
M && O(e), F = !1, k();
|
|
243
265
|
}
|
|
244
266
|
};
|
|
245
267
|
}
|
|
@@ -631,7 +653,7 @@ function Ee(t) {
|
|
|
631
653
|
};
|
|
632
654
|
}
|
|
633
655
|
function We(t) {
|
|
634
|
-
let e, n, r, a, i, l, y, u, m, w, c, p, F,
|
|
656
|
+
let e, n, r, a, i, l, y, u, m, w, c, p, F, k, M, g, P, j, V, D = de(Array(
|
|
635
657
|
/*numberOfPages*/
|
|
636
658
|
t[18]
|
|
637
659
|
)), f = [];
|
|
@@ -642,7 +664,7 @@ function We(t) {
|
|
|
642
664
|
e = v("div"), n = v("span"), r = N("|<"), i = z(), l = v("span"), y = N("<"), m = z();
|
|
643
665
|
for (let h = 0; h < f.length; h += 1)
|
|
644
666
|
f[h].c();
|
|
645
|
-
w = z(), c = v("span"), p = N(">"),
|
|
667
|
+
w = z(), c = v("span"), p = N(">"), k = z(), M = v("span"), g = N(">|"), b(n, "class", a = "BonusesFirst " + /*currentPage*/
|
|
646
668
|
(t[19] === 0 ? "Inactive" : "")), b(l, "class", u = "BonusesPrev " + /*currentPage*/
|
|
647
669
|
(t[19] === 0 ? "Inactive" : "")), b(c, "class", F = "BonusesNext " + /*currentPage*/
|
|
648
670
|
(t[19] === /*numberOfPages*/
|
|
@@ -655,7 +677,7 @@ function We(t) {
|
|
|
655
677
|
G(h, e, H), d(e, n), d(n, r), d(e, i), d(e, l), d(l, y), d(e, m);
|
|
656
678
|
for (let _ = 0; _ < f.length; _ += 1)
|
|
657
679
|
f[_] && f[_].m(e, null);
|
|
658
|
-
d(e, w), d(e, c), d(c, p), d(e,
|
|
680
|
+
d(e, w), d(e, c), d(c, p), d(e, k), d(e, M), d(M, g), j || (V = [
|
|
659
681
|
te(
|
|
660
682
|
n,
|
|
661
683
|
"click",
|
|
@@ -776,16 +798,16 @@ let Y = 6;
|
|
|
776
798
|
function Dt(t, e, n) {
|
|
777
799
|
let r;
|
|
778
800
|
it(t, bt, (o) => n(24, r = o));
|
|
779
|
-
let { endpoint: a = "" } = e, { session: i = "" } = e, { playerid: l = "" } = e, { lang: y = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: m = "" } = e, { mbsource: w } = e, { translationurl: c = "" } = e, { bonushistorystatus: p = "" } = e, { bonushistorytype: F = "" } = e, { currencylocale:
|
|
801
|
+
let { endpoint: a = "" } = e, { session: i = "" } = e, { playerid: l = "" } = e, { lang: y = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: m = "" } = e, { mbsource: w } = e, { translationurl: c = "" } = e, { bonushistorystatus: p = "" } = e, { bonushistorytype: F = "" } = e, { currencylocale: k = "" } = e, { currency: M = "" } = e, { dateformat: g = "dd-MM-yyyy" } = e, P, j = window.navigator.userAgent, V = ut(j) !== "PC", D, f;
|
|
780
802
|
const h = K(/* @__PURE__ */ new Date(), "yyyy-MM-dd"), H = K(Ce(/* @__PURE__ */ new Date(), 3), "yyyy-MM-dd");
|
|
781
803
|
let _ = K(Ce(/* @__PURE__ */ new Date(), 3), `${g || "yyyy-MM-dd"}`), L = K(/* @__PURE__ */ new Date(), `${g || "yyyy-MM-dd"}`), Z = !0, ne = 0, U = 0, se = 0, Q = 0, re = 0, R = [], le = "", x = "", A = "";
|
|
782
|
-
const
|
|
783
|
-
fetch(c).then((
|
|
784
|
-
Object.keys(
|
|
785
|
-
Pe(q,
|
|
804
|
+
const E = () => {
|
|
805
|
+
fetch(c).then((C) => C.json()).then((C) => {
|
|
806
|
+
Object.keys(C).forEach((q) => {
|
|
807
|
+
Pe(q, C[q]);
|
|
786
808
|
});
|
|
787
|
-
}).catch((
|
|
788
|
-
console.log(
|
|
809
|
+
}).catch((C) => {
|
|
810
|
+
console.log(C);
|
|
789
811
|
});
|
|
790
812
|
};
|
|
791
813
|
Object.keys(De).forEach((o) => {
|
|
@@ -799,12 +821,12 @@ function Dt(t, e, n) {
|
|
|
799
821
|
},
|
|
800
822
|
window.location.href
|
|
801
823
|
);
|
|
802
|
-
},
|
|
803
|
-
const q = Me(o, `${g || "yyyy-MM-dd"}`, /* @__PURE__ */ new Date()), $ =
|
|
824
|
+
}, T = (o, C) => {
|
|
825
|
+
const q = Me(o, `${g || "yyyy-MM-dd"}`, /* @__PURE__ */ new Date()), $ = C ? gt(q) : _t(q);
|
|
804
826
|
return K($, "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
|
|
805
|
-
}, X = (o,
|
|
806
|
-
let $ = new URL(`${a}/v1/player/${l}/bonusWallet`), ue =
|
|
807
|
-
|
|
827
|
+
}, X = (o, C, q) => {
|
|
828
|
+
let $ = new URL(`${a}/v1/player/${l}/bonusWallet`), ue = T(_, !1), Je = T(L, !0), ee = "", _e = "", he = "";
|
|
829
|
+
C && (_e = C.split(",").map((J) => `status=${J}`).join(","), ee = ee + _e + ","), q && (he = q.split(",").map((J) => `type=${J}`).join(","), ee = ee + he + ","), ee = ee + `granted=[${ue}~${Je}]`, $.searchParams.append("filter", ee), $.searchParams.append("pagination", `offset=${o},limit=${Y}`);
|
|
808
830
|
let Ke = {
|
|
809
831
|
method: "GET",
|
|
810
832
|
headers: { "X-SessionId": i }
|
|
@@ -815,7 +837,7 @@ function Dt(t, e, n) {
|
|
|
815
837
|
var Be, ve;
|
|
816
838
|
const J = (ve = (Be = W == null ? void 0 : W.extension) == null ? void 0 : Be.bonus) == null ? void 0 : ve.presentation;
|
|
817
839
|
J && (n(21, le = J.url), n(23, A = J.description), n(22, x = J.assets));
|
|
818
|
-
}), n(18, Q = Math.ceil(S.total / Y)), o - Y >= 0 && n(15, ne = o - Y), o + Y < S.total && n(16, U = o + Y), n(17, se = (Q - 1) * Y), n(19, re = o / Y), n(20, R = (S == null ? void 0 : S.items) || []),
|
|
840
|
+
}), n(18, Q = Math.ceil(S.total / Y)), o - Y >= 0 && n(15, ne = o - Y), o + Y < S.total && n(16, U = o + Y), n(17, se = (Q - 1) * Y), n(19, re = o / Y), n(20, R = (S == null ? void 0 : S.items) || []), k && R.forEach((W) => {
|
|
819
841
|
W.fulfilledWR = ie(W.fulfilledWR), W.originalWageringRequirement = ie(W.originalWageringRequirement), W.currentAmount = ie(W.currentAmount), W.extension.grantedPlayerCurrencyAmount = ie(W.extension.grantedPlayerCurrencyAmount);
|
|
820
842
|
});
|
|
821
843
|
},
|
|
@@ -823,24 +845,24 @@ function Dt(t, e, n) {
|
|
|
823
845
|
console.error(S);
|
|
824
846
|
}
|
|
825
847
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
826
|
-
}, ie = (o) => new Intl.NumberFormat(
|
|
848
|
+
}, ie = (o) => new Intl.NumberFormat(k, { style: "currency", currency: M }).format(o).replace(/\s/g, ""), fe = (o) => {
|
|
827
849
|
n(12, _ = K(new Date(o.target.value), `${g || "yyyy-MM-dd"}`));
|
|
828
850
|
}, ye = (o) => {
|
|
829
851
|
n(13, L = K(new Date(o.target.value), `${g || "yyyy-MM-dd"}`));
|
|
830
852
|
}, ze = () => {
|
|
831
|
-
const o = new Date(_),
|
|
832
|
-
o.getTime() >
|
|
853
|
+
const o = new Date(_), C = new Date(L);
|
|
854
|
+
o.getTime() > C.getTime() ? n(14, Z = !1) : n(14, Z = !0);
|
|
833
855
|
}, Le = () => {
|
|
834
856
|
D.addEventListener("change", fe, !1), f.addEventListener("change", ye, !1);
|
|
835
857
|
}, be = (o) => {
|
|
836
|
-
const { year:
|
|
858
|
+
const { year: C, month: q, day: $ } = o, ue = new Date(C, q, $);
|
|
837
859
|
return K(ue, g || "yyyy-MM-dd");
|
|
838
860
|
}, ge = (o) => {
|
|
839
|
-
const
|
|
861
|
+
const C = Me(o, g || "yyyy-MM-dd", /* @__PURE__ */ new Date());
|
|
840
862
|
return {
|
|
841
|
-
year:
|
|
842
|
-
month:
|
|
843
|
-
day:
|
|
863
|
+
year: C.getFullYear(),
|
|
864
|
+
month: C.getMonth(),
|
|
865
|
+
day: C.getDate()
|
|
844
866
|
};
|
|
845
867
|
};
|
|
846
868
|
dt(() => (n(
|
|
@@ -880,7 +902,7 @@ function Dt(t, e, n) {
|
|
|
880
902
|
});
|
|
881
903
|
}
|
|
882
904
|
return t.$$set = (o) => {
|
|
883
|
-
"endpoint" in o && n(30, a = o.endpoint), "session" in o && n(31, i = o.session), "playerid" in o && n(32, l = o.playerid), "lang" in o && n(0, y = o.lang), "clientstyling" in o && n(1, u = o.clientstyling), "clientstylingurl" in o && n(2, m = o.clientstylingurl), "mbsource" in o && n(3, w = o.mbsource), "translationurl" in o && n(4, c = o.translationurl), "bonushistorystatus" in o && n(5, p = o.bonushistorystatus), "bonushistorytype" in o && n(6, F = o.bonushistorytype), "currencylocale" in o && n(7,
|
|
905
|
+
"endpoint" in o && n(30, a = o.endpoint), "session" in o && n(31, i = o.session), "playerid" in o && n(32, l = o.playerid), "lang" in o && n(0, y = o.lang), "clientstyling" in o && n(1, u = o.clientstyling), "clientstylingurl" in o && n(2, m = o.clientstylingurl), "mbsource" in o && n(3, w = o.mbsource), "translationurl" in o && n(4, c = o.translationurl), "bonushistorystatus" in o && n(5, p = o.bonushistorystatus), "bonushistorytype" in o && n(6, F = o.bonushistorytype), "currencylocale" in o && n(7, k = o.currencylocale), "currency" in o && n(33, M = o.currency), "dateformat" in o && n(8, g = o.dateformat);
|
|
884
906
|
}, t.$$.update = () => {
|
|
885
907
|
t.$$.dirty[0] & /*lang*/
|
|
886
908
|
1 && y && Ne(), t.$$.dirty[0] & /*startCalendar, endCalendar*/
|
|
@@ -891,7 +913,7 @@ function Dt(t, e, n) {
|
|
|
891
913
|
514 && u && P && mt(P, u), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
892
914
|
516 && m && P && pt(P, m), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
893
915
|
520 && w && P && ft(P, `${w}.Style`), t.$$.dirty[0] & /*translationurl*/
|
|
894
|
-
16 && c &&
|
|
916
|
+
16 && c && E();
|
|
895
917
|
}, [
|
|
896
918
|
y,
|
|
897
919
|
u,
|
|
@@ -900,7 +922,7 @@ function Dt(t, e, n) {
|
|
|
900
922
|
c,
|
|
901
923
|
p,
|
|
902
924
|
F,
|
|
903
|
-
|
|
925
|
+
k,
|
|
904
926
|
g,
|
|
905
927
|
P,
|
|
906
928
|
D,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var Se=Object.defineProperty,Ie=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var ze=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable;var de=(n,t,a)=>t in n?Se(n,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[t]=a,$=(n,t)=>{for(var a in t||(t={}))ze.call(t,a)&&de(n,a,t[a]);if(ue)for(var a of ue(t))Ne.call(t,a)&&de(n,a,t[a]);return n},ee=(n,t)=>Ie(n,Le(t));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralLogout-Dzu2Sl-x.cjs"),T=require("./PlayerAccountGamingLimitsGroupEdit-Crtmu06d.cjs");require("./PlayerActiveBonuses-wlP0A00N.cjs");require("./PlayerAccountProductRestriction-cB-XKLa3.cjs");function ce(n,t){e.addMessages(n,t)}function Re(n){e.$locale.set(n)}const me={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}};function qe(n){e.append_styles(n,"svelte-1lo5ai1",".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))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.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)}")}function _e(n,t,a){const r=n.slice();return r[56]=t[a],r[58]=a,r}function pe(n,t,a){const r=n.slice();return r[59]=t[a],r}function je(n){let t,a,r,s=n[24]("titleBonusesHistory")+"",i,l,p,u,c,h,d=n[24]("dateFrom")+"",m,B,v,k,f,F,I=n[24]("dateTo")+"",z,C,_,b,M,y=n[24]("dateFilter")+"",A,q,Z,N,X,O,J,S=n[25]&&Ge(n);function K(g,P){return g[20].length===0?Ve:Oe}let V=K(n),E=V(n),D=n[20].length!==0&&ye(n);return{c(){t=e.element("div"),S&&S.c(),a=e.space(),r=e.element("h2"),i=e.text(s),l=e.space(),p=e.element("div"),u=e.element("div"),c=e.element("div"),h=e.element("label"),m=e.text(d),B=e.space(),v=e.element("vaadin-date-picker"),k=e.space(),f=e.element("div"),F=e.element("label"),z=e.text(I),C=e.space(),_=e.element("vaadin-date-picker"),b=e.space(),M=e.element("button"),A=e.text(y),Z=e.space(),N=e.element("div"),E.c(),X=e.space(),D&&D.c(),e.attr(r,"class","BonusesTitle "+(n[25]?"BonusesTitleNone":"")),e.attr(r,"part","BonusesTitle "+(n[25]?"BonusesTitleNone":"")),e.attr(h,"for","BonusCalendarStartDate"),e.set_custom_element_data(v,"max",n[26]),e.set_custom_element_data(v,"value",n[12]),e.set_custom_element_data(v,"placeholder",n[12]),e.set_custom_element_data(v,"class","VaadinDatePicker"),e.attr(c,"class","BonusesCalendarStartDate "+(n[25]?"BonusesCalendarMobile":"")),e.attr(F,"for","BonusesCalendarEndDate"),e.set_custom_element_data(_,"max",n[26]),e.set_custom_element_data(_,"min",n[27]),e.set_custom_element_data(_,"value",n[13]),e.set_custom_element_data(_,"placeholder",n[13]),e.set_custom_element_data(_,"class","VaadinDatePicker"),e.attr(f,"class","BonusesCalendarEndDate "+(n[25]?"BonusesCalendarMobile":"")),e.attr(u,"class","BonusesCalendarContainer "+(n[25]?"BonusesCalendarContainerMobile":"")),e.attr(M,"class","BonusesCalendarFilter "+(n[25]?"BonusesCalendarFilterMobile":"")),M.disabled=q=!n[14],e.attr(p,"class","BonusCalendarWrapper "+(n[25]?"BonusCalendarWrapperMobile":"")),e.attr(N,"class","BonusesGrid "+(n[25]?"BonusesGridMobile":"")),e.attr(t,"class","BonusesWrapper "+(n[25]?"BonusesWrapperMobile":""))},m(g,P){e.insert(g,t,P),S&&S.m(t,null),e.append(t,a),e.append(t,r),e.append(r,i),e.append(t,l),e.append(t,p),e.append(p,u),e.append(u,c),e.append(c,h),e.append(h,m),e.append(c,B),e.append(c,v),n[35](v),e.append(u,k),e.append(u,f),e.append(f,F),e.append(F,z),e.append(f,C),e.append(f,_),n[36](_),e.append(p,b),e.append(p,M),e.append(M,A),e.append(t,Z),e.append(t,N),E.m(N,null),e.append(t,X),D&&D.m(t,null),O||(J=e.listen(M,"click",n[37]),O=!0)},p(g,P){g[25]&&S.p(g,P),P[0]&16777216&&s!==(s=g[24]("titleBonusesHistory")+"")&&e.set_data(i,s),P[0]&16777216&&d!==(d=g[24]("dateFrom")+"")&&e.set_data(m,d),P[0]&4096&&e.set_custom_element_data(v,"value",g[12]),P[0]&4096&&e.set_custom_element_data(v,"placeholder",g[12]),P[0]&16777216&&I!==(I=g[24]("dateTo")+"")&&e.set_data(z,I),P[0]&8192&&e.set_custom_element_data(_,"value",g[13]),P[0]&8192&&e.set_custom_element_data(_,"placeholder",g[13]),P[0]&16777216&&y!==(y=g[24]("dateFilter")+"")&&e.set_data(A,y),P[0]&16384&&q!==(q=!g[14])&&(M.disabled=q),V===(V=K(g))&&E?E.p(g,P):(E.d(1),E=V(g),E&&(E.c(),E.m(N,null))),g[20].length!==0?D?D.p(g,P):(D=ye(g),D.c(),D.m(t,null)):D&&(D.d(1),D=null)},d(g){g&&e.detach(t),S&&S.d(),n[35](null),n[36](null),E.d(),D&&D.d(),O=!1,J()}}}function Ge(n){let t,a,r,s,i,l,p,u,c,h,d=n[24]("titleBonusesHistory")+"",m,B,v;return{c(){t=e.element("div"),a=e.svg_element("svg"),r=e.svg_element("defs"),s=e.svg_element("style"),i=e.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),l=e.svg_element("g"),p=e.svg_element("g"),u=e.svg_element("path"),c=e.space(),h=e.element("h2"),m=e.text(d),e.attr(u,"class","aaa"),e.attr(u,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),e.attr(u,"transform","translate(15 15) rotate(180)"),e.attr(p,"transform","translate(20 158)"),e.attr(l,"transform","translate(-20 -158)"),e.attr(a,"xmlns","http://www.w3.org/2000/svg"),e.attr(a,"width","15"),e.attr(a,"height","15"),e.attr(a,"viewBox","0 0 15 15"),e.attr(h,"class","BonusesTitleMobile"),e.attr(t,"class","MenuReturnButton")},m(k,f){e.insert(k,t,f),e.append(t,a),e.append(a,r),e.append(r,s),e.append(s,i),e.append(a,l),e.append(l,p),e.append(p,u),e.append(t,c),e.append(t,h),e.append(h,m),B||(v=e.listen(t,"click",n[34]),B=!0)},p(k,f){f[0]&16777216&&d!==(d=k[24]("titleBonusesHistory")+"")&&e.set_data(m,d)},d(k){k&&e.detach(t),B=!1,v()}}}function Oe(n){let t,a=e.ensure_array_like(n[20]),r=[];for(let s=0;s<a.length;s+=1)r[s]=fe(pe(n,a,s));return{c(){for(let s=0;s<r.length;s+=1)r[s].c();t=e.empty()},m(s,i){for(let l=0;l<r.length;l+=1)r[l]&&r[l].m(s,i);e.insert(s,t,i)},p(s,i){if(i[0]&15729055){a=e.ensure_array_like(s[20]);let l;for(l=0;l<a.length;l+=1){const p=pe(s,a,l);r[l]?r[l].p(p,i):(r[l]=fe(p),r[l].c(),r[l].m(t.parentNode,t))}for(;l<r.length;l+=1)r[l].d(1);r.length=a.length}},d(s){s&&e.detach(t),e.destroy_each(r,s)}}}function Ve(n){let t,a=n[24]("noBonusHistory")+"",r;return{c(){t=e.element("p"),r=e.text(a)},m(s,i){e.insert(s,t,i),e.append(t,r)},p(s,i){i[0]&16777216&&a!==(a=s[24]("noBonusHistory")+"")&&e.set_data(r,a)},d(s){s&&e.detach(t)}}}function Ue(n){let t,a,r,s,i,l,p,u,c,h;return{c(){t=e.element("player-bonus-card"),e.set_custom_element_data(t,"termsandconditionsdescription",n[23]),e.set_custom_element_data(t,"termsandconditionsurl",n[21]),e.set_custom_element_data(t,"termsandconditionsasset",n[22]),e.set_custom_element_data(t,"bonuswalletid",a=n[59].walletId),e.set_custom_element_data(t,"bonusdate",r=n[59].granted),e.set_custom_element_data(t,"bonusstatus",s=n[59].status),e.set_custom_element_data(t,"bonusname",i=n[59].name),e.set_custom_element_data(t,"bonustype",l=n[59].type),e.set_custom_element_data(t,"bonusamount",p=n[59].extension.grantedPlayerCurrencyAmount),e.set_custom_element_data(t,"bonuswageringamount",u=`${n[59].fulfilledWR} / ${n[59].originalWageringRequirement}`),e.set_custom_element_data(t,"bonusremainingamount",c=n[59].currentAmount),e.set_custom_element_data(t,"bonuscurrency",h=n[59].currency),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"clientstyling",n[1]),e.set_custom_element_data(t,"clientstylingurl",n[2]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"translationurl",n[4]),e.set_custom_element_data(t,"currencylocale",n[7]),e.set_custom_element_data(t,"dateformat",n[8])},m(d,m){e.insert(d,t,m)},p(d,m){m[0]&8388608&&e.set_custom_element_data(t,"termsandconditionsdescription",d[23]),m[0]&2097152&&e.set_custom_element_data(t,"termsandconditionsurl",d[21]),m[0]&4194304&&e.set_custom_element_data(t,"termsandconditionsasset",d[22]),m[0]&1048576&&a!==(a=d[59].walletId)&&e.set_custom_element_data(t,"bonuswalletid",a),m[0]&1048576&&r!==(r=d[59].granted)&&e.set_custom_element_data(t,"bonusdate",r),m[0]&1048576&&s!==(s=d[59].status)&&e.set_custom_element_data(t,"bonusstatus",s),m[0]&1048576&&i!==(i=d[59].name)&&e.set_custom_element_data(t,"bonusname",i),m[0]&1048576&&l!==(l=d[59].type)&&e.set_custom_element_data(t,"bonustype",l),m[0]&1048576&&p!==(p=d[59].extension.grantedPlayerCurrencyAmount)&&e.set_custom_element_data(t,"bonusamount",p),m[0]&1048576&&u!==(u=`${d[59].fulfilledWR} / ${d[59].originalWageringRequirement}`)&&e.set_custom_element_data(t,"bonuswageringamount",u),m[0]&1048576&&c!==(c=d[59].currentAmount)&&e.set_custom_element_data(t,"bonusremainingamount",c),m[0]&1048576&&h!==(h=d[59].currency)&&e.set_custom_element_data(t,"bonuscurrency",h),m[0]&1&&e.set_custom_element_data(t,"lang",d[0]),m[0]&2&&e.set_custom_element_data(t,"clientstyling",d[1]),m[0]&4&&e.set_custom_element_data(t,"clientstylingurl",d[2]),m[0]&8&&e.set_custom_element_data(t,"mbsource",d[3]),m[0]&16&&e.set_custom_element_data(t,"translationurl",d[4]),m[0]&128&&e.set_custom_element_data(t,"currencylocale",d[7]),m[0]&256&&e.set_custom_element_data(t,"dateformat",d[8])},d(d){d&&e.detach(t)}}}function Ye(n){let t,a,r,s,i,l,p;return{c(){t=e.element("player-bonus-card"),e.set_custom_element_data(t,"termsandconditionsdescription",n[23]),e.set_custom_element_data(t,"termsandconditionsurl",n[21]),e.set_custom_element_data(t,"termsandconditionsasset",n[22]),e.set_custom_element_data(t,"bonuswalletid",a=n[59].walletId),e.set_custom_element_data(t,"bonusdate",r=n[59].granted),e.set_custom_element_data(t,"bonusstatus",s=n[59].status),e.set_custom_element_data(t,"bonusname",i=n[59].name),e.set_custom_element_data(t,"bonustype",l=n[59].type),e.set_custom_element_data(t,"bonuscurrency",p=n[59].currency),e.set_custom_element_data(t,"lang",n[0]),e.set_custom_element_data(t,"clientstyling",n[1]),e.set_custom_element_data(t,"clientstylingurl",n[2]),e.set_custom_element_data(t,"mbsource",n[3]),e.set_custom_element_data(t,"translationurl",n[4]),e.set_custom_element_data(t,"currencylocale",n[7]),e.set_custom_element_data(t,"dateformat",n[8])},m(u,c){e.insert(u,t,c)},p(u,c){c[0]&8388608&&e.set_custom_element_data(t,"termsandconditionsdescription",u[23]),c[0]&2097152&&e.set_custom_element_data(t,"termsandconditionsurl",u[21]),c[0]&4194304&&e.set_custom_element_data(t,"termsandconditionsasset",u[22]),c[0]&1048576&&a!==(a=u[59].walletId)&&e.set_custom_element_data(t,"bonuswalletid",a),c[0]&1048576&&r!==(r=u[59].granted)&&e.set_custom_element_data(t,"bonusdate",r),c[0]&1048576&&s!==(s=u[59].status)&&e.set_custom_element_data(t,"bonusstatus",s),c[0]&1048576&&i!==(i=u[59].name)&&e.set_custom_element_data(t,"bonusname",i),c[0]&1048576&&l!==(l=u[59].type)&&e.set_custom_element_data(t,"bonustype",l),c[0]&1048576&&p!==(p=u[59].currency)&&e.set_custom_element_data(t,"bonuscurrency",p),c[0]&1&&e.set_custom_element_data(t,"lang",u[0]),c[0]&2&&e.set_custom_element_data(t,"clientstyling",u[1]),c[0]&4&&e.set_custom_element_data(t,"clientstylingurl",u[2]),c[0]&8&&e.set_custom_element_data(t,"mbsource",u[3]),c[0]&16&&e.set_custom_element_data(t,"translationurl",u[4]),c[0]&128&&e.set_custom_element_data(t,"currencylocale",u[7]),c[0]&256&&e.set_custom_element_data(t,"dateformat",u[8])},d(u){u&&e.detach(t)}}}function fe(n){let t;function a(i,l){return i[59].type==="freeRound"?Ye:Ue}let r=a(n),s=r(n);return{c(){s.c(),t=e.empty()},m(i,l){s.m(i,l),e.insert(i,t,l)},p(i,l){r===(r=a(i))&&s?s.p(i,l):(s.d(1),s=r(i),s&&(s.c(),s.m(t.parentNode,t)))},d(i){i&&e.detach(t),s.d(i)}}}function ye(n){let t,a,r,s,i,l,p,u,c,h,d,m,B,v,k,f,F,I,z,C=e.ensure_array_like(Array(n[18])),_=[];for(let b=0;b<C.length;b+=1)_[b]=be(_e(n,C,b));return{c(){t=e.element("div"),a=e.element("span"),r=e.text("|<"),i=e.space(),l=e.element("span"),p=e.text("<"),c=e.space();for(let b=0;b<_.length;b+=1)_[b].c();h=e.space(),d=e.element("span"),m=e.text(">"),v=e.space(),k=e.element("span"),f=e.text(">|"),e.attr(a,"class",s="BonusesFirst "+(n[19]===0?"Inactive":"")),e.attr(l,"class",u="BonusesPrev "+(n[19]===0?"Inactive":"")),e.attr(d,"class",B="BonusesNext "+(n[19]===n[18]-1?"Inactive":"")),e.attr(k,"class",F="BonusesLast "+(n[19]===n[18]-1?"Inactive":"")),e.attr(t,"class","BonusesPaginationWrapper "+(n[25]?"BonusesPaginationWrapperMobile":""))},m(b,M){e.insert(b,t,M),e.append(t,a),e.append(a,r),e.append(t,i),e.append(t,l),e.append(l,p),e.append(t,c);for(let y=0;y<_.length;y+=1)_[y]&&_[y].m(t,null);e.append(t,h),e.append(t,d),e.append(d,m),e.append(t,v),e.append(t,k),e.append(k,f),I||(z=[e.listen(a,"click",n[38]),e.listen(l,"click",n[39]),e.listen(d,"click",n[41]),e.listen(k,"click",n[42])],I=!0)},p(b,M){if(M[0]&524288&&s!==(s="BonusesFirst "+(b[19]===0?"Inactive":""))&&e.attr(a,"class",s),M[0]&524288&&u!==(u="BonusesPrev "+(b[19]===0?"Inactive":""))&&e.attr(l,"class",u),M[0]&537657440){C=e.ensure_array_like(Array(b[18]));let y;for(y=0;y<C.length;y+=1){const A=_e(b,C,y);_[y]?_[y].p(A,M):(_[y]=be(A),_[y].c(),_[y].m(t,h))}for(;y<_.length;y+=1)_[y].d(1);_.length=C.length}M[0]&786432&&B!==(B="BonusesNext "+(b[19]===b[18]-1?"Inactive":""))&&e.attr(d,"class",B),M[0]&786432&&F!==(F="BonusesLast "+(b[19]===b[18]-1?"Inactive":""))&&e.attr(k,"class",F)},d(b){b&&e.detach(t),e.destroy_each(_,b),I=!1,e.run_all(z)}}}function be(n){let t,a=n[58]+1+"",r,s,i,l;function p(){return n[40](n[58])}return{c(){t=e.element("span"),r=e.text(a),e.attr(t,"class",s="BonusesPage "+(n[58]===n[19]?"BonusPageActive":""))},m(u,c){e.insert(u,t,c),e.append(t,r),i||(l=e.listen(t,"click",p),i=!0)},p(u,c){n=u,c[0]&524288&&s!==(s="BonusesPage "+(n[58]===n[19]?"BonusPageActive":""))&&e.attr(t,"class",s)},d(u){u&&e.detach(t),i=!1,l()}}}function Ze(n){let t;function a(i,l){return je}let s=a()(n);return{c(){t=e.element("div"),s.c()},m(i,l){e.insert(i,t,l),s.m(t,null),n[43](t)},p(i,l){s.p(i,l)},i:e.noop,o:e.noop,d(i){i&&e.detach(t),s.d(),n[43](null)}}}let R=6;function Xe(n,t,a){let r;e.component_subscribe(n,e.$format,o=>a(24,r=o));let{endpoint:s=""}=t,{session:i=""}=t,{playerid:l=""}=t,{lang:p="en"}=t,{clientstyling:u=""}=t,{clientstylingurl:c=""}=t,{mbsource:h}=t,{translationurl:d=""}=t,{bonushistorystatus:m=""}=t,{bonushistorytype:B=""}=t,{currencylocale:v=""}=t,{currency:k=""}=t,{dateformat:f="dd-MM-yyyy"}=t,F,I=window.navigator.userAgent,z=e.getDevice(I)!=="PC",C,_;const b=T.format(new Date,"yyyy-MM-dd"),M=T.format(T.subMonths(new Date,3),"yyyy-MM-dd");let y=T.format(T.subMonths(new Date,3),`${f||"yyyy-MM-dd"}`),A=T.format(new Date,`${f||"yyyy-MM-dd"}`),q=!0,Z=0,N=0,X=0,O=0,J=0,S=[],K="",V="",E="";const D=()=>{fetch(d).then(w=>w.json()).then(w=>{Object.keys(w).forEach(L=>{ce(L,w[L])})}).catch(w=>{console.log(w)})};Object.keys(me).forEach(o=>{ce(o,me[o])});const g=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:z},window.location.href)},P=(o,w)=>{const L=T.parse(o,`${f||"yyyy-MM-dd"}`,new Date),U=w?T.endOfDay(L):T.startOfDay(L);return T.format(U,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},j=(o,w,L)=>{let U=new URL(`${s}/v1/player/${l}/bonusWallet`),x=P(y,!1),We=P(A,!0),Y="",oe="",re="";w&&(oe=w.split(",").map(G=>`status=${G}`).join(","),Y=Y+oe+","),L&&(re=L.split(",").map(G=>`type=${G}`).join(","),Y=Y+re+","),Y=Y+`granted=[${x}~${We}]`,U.searchParams.append("filter",Y),U.searchParams.append("pagination",`offset=${o},limit=${R}`);let Ae={method:"GET",headers:{"X-SessionId":i}};fetch(U.href,Ae).then(W=>W.json()).then(W=>{Array.isArray(W.items)&&W.items.forEach(H=>{var le,ie;const G=(ie=(le=H==null?void 0:H.extension)==null?void 0:le.bonus)==null?void 0:ie.presentation;G&&(a(21,K=G.url),a(23,E=G.description),a(22,V=G.assets))}),a(18,O=Math.ceil(W.total/R)),o-R>=0&&a(15,Z=o-R),o+R<W.total&&a(16,N=o+R),a(17,X=(O-1)*R),a(19,J=o/R),a(20,S=(W==null?void 0:W.items)||[]),v&&S.forEach(H=>{H.fulfilledWR=Q(H.fulfilledWR),H.originalWageringRequirement=Q(H.originalWageringRequirement),H.currentAmount=Q(H.currentAmount),H.extension.grantedPlayerCurrencyAmount=Q(H.extension.grantedPlayerCurrencyAmount)})},W=>{console.error(W)}),window.postMessage({type:"ScrollToTop"},window.location.href)},Q=o=>new Intl.NumberFormat(v,{style:"currency",currency:k}).format(o).replace(/\s/g,""),te=o=>{a(12,y=T.format(new Date(o.target.value),`${f||"yyyy-MM-dd"}`))},ne=o=>{a(13,A=T.format(new Date(o.target.value),`${f||"yyyy-MM-dd"}`))},he=()=>{const o=new Date(y),w=new Date(A);o.getTime()>w.getTime()?a(14,q=!1):a(14,q=!0)},Be=()=>{C.addEventListener("change",te,!1),_.addEventListener("change",ne,!1)},ae=o=>{const{year:w,month:L,day:U}=o,x=new Date(w,L,U);return T.format(x,f||"yyyy-MM-dd")},se=o=>{const w=T.parse(o,f||"yyyy-MM-dd",new Date);return{year:w.getFullYear(),month:w.getMonth(),day:w.getDate()}};e.onMount(()=>(a(10,C.i18n=ee($({},C.i18n),{formatDate:ae,parseDate:se}),C),a(11,_.i18n=ee($({},_.i18n),{formatDate:ae,parseDate:se}),_),()=>{C.removeEventListener("change",te),_.removeEventListener("change",ne)}));const ve=()=>{Re(p)},we=()=>g();function ke(o){e.binding_callbacks[o?"unshift":"push"](()=>{C=o,a(10,C)})}function Fe(o){e.binding_callbacks[o?"unshift":"push"](()=>{_=o,a(11,_)})}const Ce=()=>j(0,m,B),Me=()=>j(0,m,B),Pe=()=>j(Z,m,B),De=o=>j(o*R,m,B),He=()=>j(N,m,B),Te=()=>j(X,m,B);function Ee(o){e.binding_callbacks[o?"unshift":"push"](()=>{F=o,a(9,F)})}return n.$$set=o=>{"endpoint"in o&&a(30,s=o.endpoint),"session"in o&&a(31,i=o.session),"playerid"in o&&a(32,l=o.playerid),"lang"in o&&a(0,p=o.lang),"clientstyling"in o&&a(1,u=o.clientstyling),"clientstylingurl"in o&&a(2,c=o.clientstylingurl),"mbsource"in o&&a(3,h=o.mbsource),"translationurl"in o&&a(4,d=o.translationurl),"bonushistorystatus"in o&&a(5,m=o.bonushistorystatus),"bonushistorytype"in o&&a(6,B=o.bonushistorytype),"currencylocale"in o&&a(7,v=o.currencylocale),"currency"in o&&a(33,k=o.currency),"dateformat"in o&&a(8,f=o.dateformat)},n.$$.update=()=>{n.$$.dirty[0]&1&&p&&ve(),n.$$.dirty[0]&3072&&C&&_&&Be(),n.$$.dirty[0]&12288&&y&&A&&he(),n.$$.dirty[0]&1073741920|n.$$.dirty[1]&3&&i&&l&&s&&j(0,m,B),n.$$.dirty[0]&514&&u&&F&&e.setClientStyling(F,u),n.$$.dirty[0]&516&&c&&F&&e.setClientStylingURL(F,c),n.$$.dirty[0]&520&&h&&F&&e.setStreamStyling(F,`${h}.Style`),n.$$.dirty[0]&16&&d&&D()},[p,u,c,h,d,m,B,v,f,F,C,_,y,A,q,Z,N,X,O,J,S,K,V,E,r,z,b,M,g,j,s,i,l,k,we,ke,Fe,Ce,Me,Pe,De,He,Te,Ee]}class ge extends e.SvelteComponent{constructor(t){super(),e.init(this,t,Xe,Ze,e.safe_not_equal,{endpoint:30,session:31,playerid:32,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:33,dateformat:8},qe,[-1,-1])}get endpoint(){return this.$$.ctx[30]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get session(){return this.$$.ctx[31]}set session(t){this.$$set({session:t}),e.flush()}get playerid(){return this.$$.ctx[32]}set playerid(t){this.$$set({playerid:t}),e.flush()}get lang(){return this.$$.ctx[0]}set lang(t){this.$$set({lang:t}),e.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(t){this.$$set({bonushistorystatus:t}),e.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(t){this.$$set({bonushistorytype:t}),e.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(t){this.$$set({currencylocale:t}),e.flush()}get currency(){return this.$$.ctx[33]}set currency(t){this.$$set({currency:t}),e.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}}e.create_custom_element(ge,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{}},[],[],!0);exports.default=ge;
|