@everymatrix/player-account-controller-nd 1.83.0 → 1.83.1
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-B62rxiQW.js → PlayerAccountControllerNd-CJXeG194.js} +1 -1
- package/components/{PlayerAccountControllerNd-BE2uWCAB.cjs → PlayerAccountControllerNd-I-PBWTLO.cjs} +1 -1
- package/components/{PlayerAccountControllerNd-DlxqO4ll.js → PlayerAccountControllerNd-xOEf0eqm.js} +1 -1
- package/components/PlayerAccountReviewFrequency-BGXfBt--.cjs +4 -0
- package/components/{PlayerAccountReviewFrequency-BypmBUQO.js → PlayerAccountReviewFrequency-C4XVoe9w.js} +88 -88
- package/components/{PlayerAccountReviewFrequency-DZaTRruj.js → PlayerAccountReviewFrequency-CLmGAB5K.js} +34 -34
- 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/lazy/{player-account-review-frequency-6rES6_5_.js → player-account-review-frequency-B6ksqfns.js} +1 -1
- package/lazy/{player-account-review-frequency-HOCCgP8n.js → player-account-review-frequency-YGJVUND6.js} +1 -1
- package/lazy/{player-account-review-frequency-CUnQJnhM.cjs → player-account-review-frequency-YHQ0dAyT.cjs} +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountReviewFrequency-C5Fknats.cjs +0 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var U = (i, e, t) => new Promise((o,
|
|
1
|
+
var U = (i, e, t) => new Promise((o, n) => {
|
|
2
2
|
var l = (u) => {
|
|
3
3
|
try {
|
|
4
4
|
g(t.next(u));
|
|
5
5
|
} catch (y) {
|
|
6
|
-
|
|
6
|
+
n(y);
|
|
7
7
|
}
|
|
8
8
|
}, c = (u) => {
|
|
9
9
|
try {
|
|
10
10
|
g(t.throw(u));
|
|
11
11
|
} catch (y) {
|
|
12
|
-
|
|
12
|
+
n(y);
|
|
13
13
|
}
|
|
14
14
|
}, g = (u) => u.done ? o(u.value) : Promise.resolve(u.value).then(l, c);
|
|
15
15
|
g((t = t.apply(i, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { a as $, $ as ee, S as te, i as ie, s as
|
|
17
|
+
import { a as $, $ as ee, S as te, i as ie, s as ae, f as T, b as ne, n as E, d as F, h as P, k as f, e as p, p as oe, q as re, u as se, w as le, C as J, D as Q, j as s, m as S, g as b, c as I, l as W, t as N, r as ce, v as O, a7 as ue, V, x as pe, y as de, z as me, A as ve, B as ye } from "./GeneralLogout-DIvT_pyf.js";
|
|
18
18
|
import "../stencil/ui-skeleton-Ur_BR5_B.js";
|
|
19
19
|
function G(i, e) {
|
|
20
20
|
$(i, e);
|
|
@@ -24,7 +24,7 @@ function ge(i) {
|
|
|
24
24
|
}
|
|
25
25
|
const Y = {
|
|
26
26
|
en: {
|
|
27
|
-
titleAccountReview: "Account Review
|
|
27
|
+
titleAccountReview: "Account Review Frequency",
|
|
28
28
|
accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
|
|
29
29
|
setFrequency: "Set frequency",
|
|
30
30
|
successMessage: "Your preference was saved",
|
|
@@ -123,7 +123,7 @@ const Y = {
|
|
|
123
123
|
monthly: "Mensual"
|
|
124
124
|
},
|
|
125
125
|
"en-us": {
|
|
126
|
-
titleAccountReview: "Account Review
|
|
126
|
+
titleAccountReview: "Account Review Frequency",
|
|
127
127
|
accountReviewText: "To promote responsible play, we periodically prompt customers to review their account activity, including Betting History, Payment History, and Gaming History. These reviews help ensure that your activity remains aligned with your current preferences and circumstances. From this page, you can adjust how often you receive these prompts, giving you more control over your experience.",
|
|
128
128
|
setFrequency: "Set frequency",
|
|
129
129
|
successMessage: "Your preference was saved.",
|
|
@@ -135,7 +135,7 @@ const Y = {
|
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
function fe(i) {
|
|
138
|
-
|
|
138
|
+
ne(i, "svelte-1u91vzw", '.SkeletonContainer{width:100%;display:flex;flex-direction:column;gap:17px;animation:fadeIn 0.3s ease-in 1}.SkeletonContainer .SkeletonMenuButton{display:flex;gap:20px;width:100%}.SkeletonContainer .SkeletonMenuButton.Mobile{margin-top:10px}.SkeletonContainer .SkeletonTextContainer{width:100%;min-height:140px}.SkeletonContainer .SkeletonOptionContainer{display:flex;flex-direction:column;width:100%;min-height:200px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;margin:0 0 13px}.SkeletonContainer .SkeletonOptionContainer .SkeletonOption .SkeletonOptionText{width:20%;margin-top:10px}.SkeletonContainer .SkeletonOptionContainer .Button{margin-top:5px}.customRadio{margin-top:15px}.customRadio div{margin:0 0 20px}.customRadio input[type=radio]{position:absolute;left:-9999px}.customRadio input[type=radio]+label{position:relative;padding:3px 0 0 30px;cursor:pointer}.customRadio input[type=radio]+label:before{content:"";background:var(--emw--color-white, #fff);border:1px solid var(--emw--color-gray-300, #58586b);height:16px;width:16px;border-radius:50%;position:absolute;top:0;left:0}.customRadio input[type=radio]+label:after{content:"";background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));width:14px;height:14px;border-radius:50%;position:absolute;top:2px;left:2px;opacity:0;transform:scale(2);transition:transform 0.3s linear, opacity 0.3s linear}.customRadio input[type=radio]:checked+label:after{opacity:1;transform:scale(1)}.PlayerAccountReviewWrapper{position:relative;color:var(--emw--pam-contrast, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px}.PlayerAccountReviewWrapper.PlayerAccountReviewWrapperMobile{padding:20px 15px;max-width:unset}.AccountReviewTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.AccountReviewTitleMobile{font-size:16px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.AccountReviewTitleNone{display:none}.AccountReviewDescription{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));line-height:24px}.AccountReviewDescription p{min-height:140px}.AccountReviewDescription.AccountReviewDescriptionMobile{font-size:12px;line-height:18px}.BottomButtonsArea{display:grid;grid-column-gap:30px;grid-template-rows:auto;grid-template-columns:1fr 1fr;margin-top:20px}.BottomButtonsArea.BottomButtonsAreaMobile{width:100%;grid-template-columns:1fr}.PlayerRealityCheckButton{cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--emw--button-typography, var(--emw--color-white, #fff));text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px}.PlayerRealityCheckButton.ButtonInactive{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b);cursor:not-allowed;opacity:0.6;color:var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:transparent;border:1px solid var(--emw--color-gray-300, #58586b)}.PlayerRealityCheckButton{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.containerTimeout{animation:fadeIn 0.3s ease-in 1}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}');
|
|
139
139
|
}
|
|
140
140
|
function X(i, e, t) {
|
|
141
141
|
const o = i.slice();
|
|
@@ -146,7 +146,7 @@ function he(i, e, t) {
|
|
|
146
146
|
return o[25] = e[t], o;
|
|
147
147
|
}
|
|
148
148
|
function we(i) {
|
|
149
|
-
let e, t, o,
|
|
149
|
+
let e, t, o, n = (
|
|
150
150
|
/*$_*/
|
|
151
151
|
i[5]("titleAccountReview") + ""
|
|
152
152
|
), l, c, g, u, y = (
|
|
@@ -155,7 +155,7 @@ function we(i) {
|
|
|
155
155
|
), w, _, d, R, m, r, k = (
|
|
156
156
|
/*$_*/
|
|
157
157
|
i[5]("setFrequency") + ""
|
|
158
|
-
), A, H, D,
|
|
158
|
+
), A, H, D, z, L, j = (
|
|
159
159
|
/*isMobile*/
|
|
160
160
|
i[6] && ke(i)
|
|
161
161
|
), q = J(
|
|
@@ -166,10 +166,10 @@ function we(i) {
|
|
|
166
166
|
x[v] = Z(X(i, q, v));
|
|
167
167
|
return {
|
|
168
168
|
c() {
|
|
169
|
-
e = f("div"), j && j.c(), t = S(), o = f("h2"), l =
|
|
169
|
+
e = f("div"), j && j.c(), t = S(), o = f("h2"), l = N(n), c = S(), g = f("div"), u = f("p"), w = N(y), _ = S(), d = f("form");
|
|
170
170
|
for (let v = 0; v < x.length; v += 1)
|
|
171
171
|
x[v].c();
|
|
172
|
-
R = S(), m = f("div"), r = f("button"), A =
|
|
172
|
+
R = S(), m = f("div"), r = f("button"), A = N(k), p(o, "class", "AccountReviewTitle " + /*isMobile*/
|
|
173
173
|
(i[6] ? "AccountReviewTitleNone" : "")), p(g, "class", "AccountReviewDescription " + /*isMobile*/
|
|
174
174
|
(i[6] ? "AccountReviewDescriptionMobile" : "")), p(r, "class", H = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
175
175
|
i[2] || /*currentInterval*/
|
|
@@ -182,41 +182,41 @@ function we(i) {
|
|
|
182
182
|
},
|
|
183
183
|
m(v, M) {
|
|
184
184
|
P(v, e, M), j && j.m(e, null), s(e, t), s(e, o), s(o, l), s(e, c), s(e, g), s(g, u), s(u, w), s(e, _), s(e, d);
|
|
185
|
-
for (let
|
|
186
|
-
x[
|
|
187
|
-
s(d, R), s(d, m), s(m, r), s(r, A),
|
|
185
|
+
for (let a = 0; a < x.length; a += 1)
|
|
186
|
+
x[a] && x[a].m(d, null);
|
|
187
|
+
s(d, R), s(d, m), s(m, r), s(r, A), z || (L = W(
|
|
188
188
|
r,
|
|
189
189
|
"click",
|
|
190
190
|
/*submit*/
|
|
191
191
|
i[7]
|
|
192
|
-
),
|
|
192
|
+
), z = !0);
|
|
193
193
|
},
|
|
194
194
|
p(v, M) {
|
|
195
195
|
if (
|
|
196
196
|
/*isMobile*/
|
|
197
197
|
v[6] && j.p(v, M), M[0] & /*$_*/
|
|
198
|
-
32 &&
|
|
199
|
-
v[5]("titleAccountReview") + "") &&
|
|
198
|
+
32 && n !== (n = /*$_*/
|
|
199
|
+
v[5]("titleAccountReview") + "") && I(l, n), M[0] & /*$_*/
|
|
200
200
|
32 && y !== (y = /*$_*/
|
|
201
|
-
v[5]("accountReviewText") + "") &&
|
|
201
|
+
v[5]("accountReviewText") + "") && I(w, y), M[0] & /*options, selectedInterval*/
|
|
202
202
|
20
|
|
203
203
|
) {
|
|
204
204
|
q = J(
|
|
205
205
|
/*options*/
|
|
206
206
|
v[4]
|
|
207
207
|
);
|
|
208
|
-
let
|
|
209
|
-
for (
|
|
210
|
-
const h = X(v, q,
|
|
211
|
-
x[
|
|
208
|
+
let a;
|
|
209
|
+
for (a = 0; a < q.length; a += 1) {
|
|
210
|
+
const h = X(v, q, a);
|
|
211
|
+
x[a] ? x[a].p(h, M) : (x[a] = Z(h), x[a].c(), x[a].m(d, R));
|
|
212
212
|
}
|
|
213
|
-
for (;
|
|
214
|
-
x[
|
|
213
|
+
for (; a < x.length; a += 1)
|
|
214
|
+
x[a].d(1);
|
|
215
215
|
x.length = q.length;
|
|
216
216
|
}
|
|
217
217
|
M[0] & /*$_*/
|
|
218
218
|
32 && k !== (k = /*$_*/
|
|
219
|
-
v[5]("setFrequency") + "") &&
|
|
219
|
+
v[5]("setFrequency") + "") && I(A, k), M[0] & /*selectedInterval, currentInterval*/
|
|
220
220
|
12 && H !== (H = "PlayerRealityCheckButton " + (!/*selectedInterval*/
|
|
221
221
|
v[2] || /*currentInterval*/
|
|
222
222
|
v[3] === /*selectedInterval*/
|
|
@@ -227,12 +227,12 @@ function we(i) {
|
|
|
227
227
|
v[2]) && (r.disabled = D);
|
|
228
228
|
},
|
|
229
229
|
d(v) {
|
|
230
|
-
v &&
|
|
230
|
+
v && F(e), j && j.d(), Q(x, v), z = !1, L();
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
function be(i) {
|
|
235
|
-
let e, t, o,
|
|
235
|
+
let e, t, o, n, l, c, g, u, y;
|
|
236
236
|
function w(r, k) {
|
|
237
237
|
return (
|
|
238
238
|
/*isMobile*/
|
|
@@ -244,11 +244,11 @@ function be(i) {
|
|
|
244
244
|
m[r] = Re(he(i, R, r));
|
|
245
245
|
return {
|
|
246
246
|
c() {
|
|
247
|
-
e = f("div"), d.c(), t = S(), o = f("div"),
|
|
247
|
+
e = f("div"), d.c(), t = S(), o = f("div"), n = f("ui-skeleton"), l = S(), c = f("div");
|
|
248
248
|
for (let r = 0; r < m.length; r += 1)
|
|
249
249
|
m[r].c();
|
|
250
|
-
g = S(), u = f("div"), y = f("ui-skeleton"), b(
|
|
251
|
-
|
|
250
|
+
g = S(), u = f("div"), y = f("ui-skeleton"), b(n, "structure", "text"), b(n, "height", "15px"), b(n, "width", "100%"), b(n, "margin-bottom", "7px"), b(
|
|
251
|
+
n,
|
|
252
252
|
"rows",
|
|
253
253
|
/*isMobile*/
|
|
254
254
|
i[6] ? "5" : "3"
|
|
@@ -260,7 +260,7 @@ function be(i) {
|
|
|
260
260
|
), p(u, "class", "Button"), p(c, "class", "SkeletonOptionContainer"), p(e, "class", "SkeletonContainer");
|
|
261
261
|
},
|
|
262
262
|
m(r, k) {
|
|
263
|
-
P(r, e, k), d.m(e, null), s(e, t), s(e, o), s(o,
|
|
263
|
+
P(r, e, k), d.m(e, null), s(e, t), s(e, o), s(o, n), s(e, l), s(e, c);
|
|
264
264
|
for (let A = 0; A < m.length; A += 1)
|
|
265
265
|
m[A] && m[A].m(c, null);
|
|
266
266
|
s(c, g), s(c, u), s(u, y);
|
|
@@ -269,24 +269,24 @@ function be(i) {
|
|
|
269
269
|
d.p(r, k);
|
|
270
270
|
},
|
|
271
271
|
d(r) {
|
|
272
|
-
r &&
|
|
272
|
+
r && F(e), d.d(), Q(m, r);
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
}
|
|
276
276
|
function ke(i) {
|
|
277
|
-
let e, t, o,
|
|
277
|
+
let e, t, o, n, l, c, g, u, y, w, _ = (
|
|
278
278
|
/*$_*/
|
|
279
279
|
i[5]("titleAccountReview") + ""
|
|
280
280
|
), d, R, m;
|
|
281
281
|
return {
|
|
282
282
|
c() {
|
|
283
|
-
e = f("div"), t = O("svg"), o = O("defs"),
|
|
283
|
+
e = f("div"), t = O("svg"), o = O("defs"), n = O("style"), l = N(`.aaa {
|
|
284
284
|
fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
|
|
285
285
|
}
|
|
286
|
-
`), c = O("g"), g = O("g"), u = O("path"), y = S(), w = f("h2"), d =
|
|
286
|
+
`), c = O("g"), g = O("g"), u = O("path"), y = S(), w = f("h2"), d = N(_), p(u, "class", "aaa"), p(u, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), p(u, "transform", "translate(15 15) rotate(180)"), p(g, "transform", "translate(20 158)"), p(c, "transform", "translate(-20 -158)"), p(t, "xmlns", "http://www.w3.org/2000/svg"), p(t, "width", "15"), p(t, "height", "15"), p(t, "viewBox", "0 0 15 15"), p(w, "class", "AccountReviewTitleMobile"), p(e, "class", "MenuReturnButton");
|
|
287
287
|
},
|
|
288
288
|
m(r, k) {
|
|
289
|
-
P(r, e, k), s(e, t), s(t, o), s(o,
|
|
289
|
+
P(r, e, k), s(e, t), s(t, o), s(o, n), s(n, l), s(t, c), s(c, g), s(g, u), s(e, y), s(e, w), s(w, d), R || (m = [
|
|
290
290
|
W(
|
|
291
291
|
e,
|
|
292
292
|
"click",
|
|
@@ -299,15 +299,15 @@ function ke(i) {
|
|
|
299
299
|
p(r, k) {
|
|
300
300
|
k[0] & /*$_*/
|
|
301
301
|
32 && _ !== (_ = /*$_*/
|
|
302
|
-
r[5]("titleAccountReview") + "") &&
|
|
302
|
+
r[5]("titleAccountReview") + "") && I(d, _);
|
|
303
303
|
},
|
|
304
304
|
d(r) {
|
|
305
|
-
r &&
|
|
305
|
+
r && F(e), R = !1, ce(m);
|
|
306
306
|
}
|
|
307
307
|
};
|
|
308
308
|
}
|
|
309
309
|
function Z(i) {
|
|
310
|
-
let e, t, o,
|
|
310
|
+
let e, t, o, n, l = !1, c, g, u = (
|
|
311
311
|
/*text*/
|
|
312
312
|
i[29] + ""
|
|
313
313
|
), y, w, _, d, R;
|
|
@@ -316,8 +316,8 @@ function Z(i) {
|
|
|
316
316
|
i[18][0]
|
|
317
317
|
), {
|
|
318
318
|
c() {
|
|
319
|
-
e = f("div"), t = f("input"), c = S(), g = f("label"), y =
|
|
320
|
-
i[28]), t.__value =
|
|
319
|
+
e = f("div"), t = f("input"), c = S(), g = f("label"), y = N(u), p(t, "type", "radio"), p(t, "id", o = "interval-" + /*value*/
|
|
320
|
+
i[28]), t.__value = n = /*value*/
|
|
321
321
|
i[28], V(t, t.__value), p(g, "for", w = "interval-" + /*value*/
|
|
322
322
|
i[28]), _.p(t);
|
|
323
323
|
},
|
|
@@ -334,17 +334,17 @@ function Z(i) {
|
|
|
334
334
|
r[0] & /*options*/
|
|
335
335
|
16 && o !== (o = "interval-" + /*value*/
|
|
336
336
|
m[28]) && p(t, "id", o), r[0] & /*options*/
|
|
337
|
-
16 &&
|
|
338
|
-
m[28]) && (t.__value =
|
|
337
|
+
16 && n !== (n = /*value*/
|
|
338
|
+
m[28]) && (t.__value = n, V(t, t.__value), l = !0), (l || r[0] & /*selectedInterval, options*/
|
|
339
339
|
20) && (t.checked = t.__value === /*selectedInterval*/
|
|
340
340
|
m[2]), r[0] & /*options*/
|
|
341
341
|
16 && u !== (u = /*text*/
|
|
342
|
-
m[29] + "") &&
|
|
342
|
+
m[29] + "") && I(y, u), r[0] & /*options*/
|
|
343
343
|
16 && w !== (w = "interval-" + /*value*/
|
|
344
344
|
m[28]) && p(g, "for", w);
|
|
345
345
|
},
|
|
346
346
|
d(m) {
|
|
347
|
-
m &&
|
|
347
|
+
m && F(e), _.r(), d = !1, R();
|
|
348
348
|
}
|
|
349
349
|
};
|
|
350
350
|
}
|
|
@@ -359,23 +359,23 @@ function _e(i) {
|
|
|
359
359
|
},
|
|
360
360
|
p: E,
|
|
361
361
|
d(t) {
|
|
362
|
-
t &&
|
|
362
|
+
t && F(e);
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
function xe(i) {
|
|
367
|
-
let e, t, o,
|
|
367
|
+
let e, t, o, n;
|
|
368
368
|
return {
|
|
369
369
|
c() {
|
|
370
|
-
e = f("div"), t = f("ui-skeleton"), o = S(),
|
|
370
|
+
e = f("div"), t = f("ui-skeleton"), o = S(), n = f("ui-skeleton"), b(t, "structure", "title"), b(t, "width", "20px"), b(t, "height", "20px"), b(t, "margin-top", "5px"), b(t, "margin-bottom", "15px"), b(n, "structure", "title"), b(n, "width", "180px"), b(n, "height", "20px"), b(n, "margin-top", "5px"), b(n, "margin-bottom", "15px"), p(e, "class", "SkeletonMenuButton " + /*isMobile*/
|
|
371
371
|
(i[6] ? "Mobile" : ""));
|
|
372
372
|
},
|
|
373
373
|
m(l, c) {
|
|
374
|
-
P(l, e, c), s(e, t), s(e, o), s(e,
|
|
374
|
+
P(l, e, c), s(e, t), s(e, o), s(e, n);
|
|
375
375
|
},
|
|
376
376
|
p: E,
|
|
377
377
|
d(l) {
|
|
378
|
-
l &&
|
|
378
|
+
l && F(e);
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
381
|
}
|
|
@@ -390,7 +390,7 @@ function Re(i) {
|
|
|
390
390
|
},
|
|
391
391
|
p: E,
|
|
392
392
|
d(t) {
|
|
393
|
-
t &&
|
|
393
|
+
t && F(e);
|
|
394
394
|
}
|
|
395
395
|
};
|
|
396
396
|
}
|
|
@@ -402,67 +402,67 @@ function Ae(i) {
|
|
|
402
402
|
l[1] ? be : we
|
|
403
403
|
);
|
|
404
404
|
}
|
|
405
|
-
let o = t(i),
|
|
405
|
+
let o = t(i), n = o(i);
|
|
406
406
|
return {
|
|
407
407
|
c() {
|
|
408
|
-
e = f("div"),
|
|
408
|
+
e = f("div"), n.c(), p(e, "class", "PlayerAccountReviewWrapper " + /*isMobile*/
|
|
409
409
|
(i[6] ? "PlayerAccountReviewWrapperMobile" : ""));
|
|
410
410
|
},
|
|
411
411
|
m(l, c) {
|
|
412
|
-
P(l, e, c),
|
|
412
|
+
P(l, e, c), n.m(e, null), i[19](e);
|
|
413
413
|
},
|
|
414
414
|
p(l, c) {
|
|
415
|
-
o === (o = t(l)) &&
|
|
415
|
+
o === (o = t(l)) && n ? n.p(l, c) : (n.d(1), n = o(l), n && (n.c(), n.m(e, null)));
|
|
416
416
|
},
|
|
417
417
|
i: E,
|
|
418
418
|
o: E,
|
|
419
419
|
d(l) {
|
|
420
|
-
l &&
|
|
420
|
+
l && F(e), n.d(), i[19](null);
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
}
|
|
424
424
|
const K = 2;
|
|
425
425
|
function Me(i, e, t) {
|
|
426
426
|
let o;
|
|
427
|
-
oe(i, ye, (
|
|
428
|
-
let { endpoint:
|
|
427
|
+
oe(i, ye, (a) => t(5, o = a));
|
|
428
|
+
let { endpoint: n = "" } = e, { playerid: l = "" } = e, { session: c = "" } = e, { lang: g = "en" } = e, { clientstyling: u = "" } = e, { clientstylingurl: y = "" } = e, { mbsource: w } = e, { translationurl: _ = "" } = e, d, R = re(window.navigator.userAgent) !== "PC", m = !0, r = "", k = "", A = [];
|
|
429
429
|
const H = () => U(this, null, function* () {
|
|
430
430
|
try {
|
|
431
|
-
const
|
|
432
|
-
|
|
431
|
+
const a = new URL(`${n}/api/pam/v1/player-notifications`);
|
|
432
|
+
a.searchParams.set("type", String(K)), a.searchParams.append("createNotificationIfNotFound", "true");
|
|
433
433
|
const h = new Headers();
|
|
434
434
|
h.append("X-SessionID", c), h.append("accept", "application/json");
|
|
435
|
-
const B = yield (yield fetch(
|
|
435
|
+
const B = yield (yield fetch(a.href, { method: "GET", headers: h })).json();
|
|
436
436
|
B != null && B.interval && (t(3, k = String(B == null ? void 0 : B.interval)), t(2, r = k)), A.length || t(4, A = [
|
|
437
437
|
{ value: "1", text: o("daily") },
|
|
438
438
|
{ value: "2", text: o("weekly") },
|
|
439
439
|
{ value: "3", text: o("monthly") },
|
|
440
440
|
{ value: "4", text: `6 ${o("months")}` }
|
|
441
441
|
]), t(1, m = !1);
|
|
442
|
-
} catch (
|
|
443
|
-
console.error(
|
|
442
|
+
} catch (a) {
|
|
443
|
+
console.error(a), t(1, m = !1);
|
|
444
444
|
}
|
|
445
445
|
}), D = () => U(this, null, function* () {
|
|
446
446
|
try {
|
|
447
|
-
const
|
|
448
|
-
h.append("X-SessionID", c), h.append("Content-Type", "application/json"), h.append("Accept", "application/json");
|
|
449
|
-
const
|
|
447
|
+
const a = new URL(`${n}/api/pam/v1/player-notifications`), h = new Headers();
|
|
448
|
+
h.append("X-SessionID", c), h.append("Content-Type", "application/json"), h.append("Accept", "application/json"), a.searchParams.append("createNotificationIfNotFound", "true");
|
|
449
|
+
const C = {
|
|
450
450
|
type: K,
|
|
451
451
|
interval: Number(r),
|
|
452
452
|
acknowledge: !0,
|
|
453
453
|
ackNotificationTimestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
454
454
|
};
|
|
455
|
-
return (yield fetch(
|
|
455
|
+
return (yield fetch(a.href, {
|
|
456
456
|
method: "PATCH",
|
|
457
457
|
headers: h,
|
|
458
|
-
body: JSON.stringify(
|
|
458
|
+
body: JSON.stringify(C)
|
|
459
459
|
})).ok;
|
|
460
|
-
} catch (
|
|
461
|
-
return console.error(
|
|
460
|
+
} catch (a) {
|
|
461
|
+
return console.error(a), !1;
|
|
462
462
|
}
|
|
463
|
-
}),
|
|
464
|
-
|
|
465
|
-
const
|
|
463
|
+
}), z = (a) => {
|
|
464
|
+
a.preventDefault(), r && D().then((h) => {
|
|
465
|
+
const C = h ? {
|
|
466
466
|
type: "success",
|
|
467
467
|
message: o("successMessage")
|
|
468
468
|
} : {
|
|
@@ -472,7 +472,7 @@ function Me(i, e, t) {
|
|
|
472
472
|
window.postMessage(
|
|
473
473
|
{
|
|
474
474
|
type: "WidgetNotification",
|
|
475
|
-
data:
|
|
475
|
+
data: C
|
|
476
476
|
},
|
|
477
477
|
window.location.href
|
|
478
478
|
), h && t(3, k = r);
|
|
@@ -486,30 +486,30 @@ function Me(i, e, t) {
|
|
|
486
486
|
window.location.href
|
|
487
487
|
);
|
|
488
488
|
}, j = () => ge(g), q = () => {
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
Object.keys(h).forEach((
|
|
492
|
-
G(
|
|
489
|
+
const a = _;
|
|
490
|
+
a && fetch(a).then((h) => h.json()).then((h) => {
|
|
491
|
+
Object.keys(h).forEach((C) => {
|
|
492
|
+
G(C, h[C]);
|
|
493
493
|
});
|
|
494
494
|
}).catch((h) => console.log(h));
|
|
495
495
|
};
|
|
496
|
-
Object.keys(Y).forEach((
|
|
496
|
+
Object.keys(Y).forEach((a) => G(a, Y[a])), se(() => () => {
|
|
497
497
|
});
|
|
498
498
|
const x = [[]];
|
|
499
499
|
function v() {
|
|
500
500
|
r = this.__value, t(2, r);
|
|
501
501
|
}
|
|
502
|
-
function M(
|
|
503
|
-
le[
|
|
504
|
-
d =
|
|
502
|
+
function M(a) {
|
|
503
|
+
le[a ? "unshift" : "push"](() => {
|
|
504
|
+
d = a, t(0, d);
|
|
505
505
|
});
|
|
506
506
|
}
|
|
507
|
-
return i.$$set = (
|
|
508
|
-
"endpoint" in
|
|
507
|
+
return i.$$set = (a) => {
|
|
508
|
+
"endpoint" in a && t(9, n = a.endpoint), "playerid" in a && t(10, l = a.playerid), "session" in a && t(11, c = a.session), "lang" in a && t(12, g = a.lang), "clientstyling" in a && t(13, u = a.clientstyling), "clientstylingurl" in a && t(14, y = a.clientstylingurl), "mbsource" in a && t(15, w = a.mbsource), "translationurl" in a && t(16, _ = a.translationurl);
|
|
509
509
|
}, i.$$.update = () => {
|
|
510
510
|
i.$$.dirty[0] & /*lang*/
|
|
511
511
|
4096 && g && j(), i.$$.dirty[0] & /*endpoint, playerid, session*/
|
|
512
|
-
3584 &&
|
|
512
|
+
3584 && n && l && c && H(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
513
513
|
8193 && u && d && pe(d, u), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
514
514
|
16385 && y && d && de(d, y), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
515
515
|
32769 && w && d && me(d, `${w}.Style`), i.$$.dirty[0] & /*translationurl*/
|
|
@@ -522,9 +522,9 @@ function Me(i, e, t) {
|
|
|
522
522
|
A,
|
|
523
523
|
o,
|
|
524
524
|
R,
|
|
525
|
-
|
|
525
|
+
z,
|
|
526
526
|
L,
|
|
527
|
-
|
|
527
|
+
n,
|
|
528
528
|
l,
|
|
529
529
|
c,
|
|
530
530
|
g,
|
|
@@ -544,7 +544,7 @@ class Se extends te {
|
|
|
544
544
|
e,
|
|
545
545
|
Me,
|
|
546
546
|
Ae,
|
|
547
|
-
|
|
547
|
+
ae,
|
|
548
548
|
{
|
|
549
549
|
endpoint: 9,
|
|
550
550
|
playerid: 10,
|