@everymatrix/general-player-login-form 1.54.12 → 1.56.0
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/{GeneralPlayerLoginForm-CvvPuW0t.js → GeneralPlayerLoginForm-BRVTxLCa.js} +864 -839
- package/components/GeneralPlayerLoginForm-C2_RNyby.cjs +5 -0
- package/components/{GeneralPlayerLoginForm-CWtUjEfm.js → GeneralPlayerLoginForm-I1NYdDOX.js} +828 -803
- package/components/GeneralPlayerSmsVerificationForm-9gKc_VsM.cjs +1 -0
- package/components/{GeneralPlayerSmsVerificationForm-H1CjJeVy.js → GeneralPlayerSmsVerificationForm-C7wZcrhZ.js} +182 -189
- package/components/{GeneralPlayerSmsVerificationForm-CmqTxkUU.js → GeneralPlayerSmsVerificationForm-JKaIZ8Iu.js} +183 -190
- package/es2015/general-player-login-form.cjs +1 -1
- package/es2015/general-player-login-form.js +1 -1
- package/esnext/general-player-login-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginForm-BSYjhcAL.cjs +0 -5
- package/components/GeneralPlayerSmsVerificationForm-LRjnASc6.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var L = (o, e, i) => new Promise((a, r) => {
|
|
2
|
+
var s = (d) => {
|
|
3
3
|
try {
|
|
4
4
|
c(i.next(d));
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
5
|
+
} catch (b) {
|
|
6
|
+
r(b);
|
|
7
7
|
}
|
|
8
8
|
}, m = (d) => {
|
|
9
9
|
try {
|
|
10
10
|
c(i.throw(d));
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
11
|
+
} catch (b) {
|
|
12
|
+
r(b);
|
|
13
13
|
}
|
|
14
|
-
}, c = (d) => d.done ?
|
|
14
|
+
}, c = (d) => d.done ? a(d.value) : Promise.resolve(d.value).then(s, m);
|
|
15
15
|
c((i = i.apply(o, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
i == null && (
|
|
17
|
+
import { $ as Y, a as $, b as ee, S as te, i as ie, s as oe, f as M, c as re, n as J, d as R, r as ne, e as T, g as G, h as y, j as P, k as l, l as q, m as w, o as z, t as k, p as ae, q as se, u as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerLoginForm-BRVTxLCa.js";
|
|
18
|
+
function ve({ withLocale: o, translations: e }) {
|
|
19
|
+
Y.subscribe((i) => {
|
|
20
|
+
i == null && ($.set(e), Y.set(o));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function K(o, e) {
|
|
24
|
+
ee(o, e);
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const W = {
|
|
27
27
|
en: {
|
|
28
28
|
title: "Please enter the verification code you received on your number",
|
|
29
29
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -130,10 +130,10 @@ const Q = {
|
|
|
130
130
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function ge(o) {
|
|
134
|
+
re(o, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.Field.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;cursor:pointer;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function pe(o) {
|
|
137
137
|
let e = (
|
|
138
138
|
/*$_*/
|
|
139
139
|
o[5]("errorTitle") + ""
|
|
@@ -142,20 +142,20 @@ function ve(o) {
|
|
|
142
142
|
c() {
|
|
143
143
|
i = k(e);
|
|
144
144
|
},
|
|
145
|
-
m(
|
|
146
|
-
|
|
145
|
+
m(a, r) {
|
|
146
|
+
P(a, i, r);
|
|
147
147
|
},
|
|
148
|
-
p(
|
|
148
|
+
p(a, r) {
|
|
149
149
|
r & /*$_*/
|
|
150
150
|
32 && e !== (e = /*$_*/
|
|
151
|
-
|
|
151
|
+
a[5]("errorTitle") + "") && T(i, e);
|
|
152
152
|
},
|
|
153
|
-
d(
|
|
154
|
-
|
|
153
|
+
d(a) {
|
|
154
|
+
a && R(i);
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function ye(o) {
|
|
159
159
|
let e = (
|
|
160
160
|
/*$_*/
|
|
161
161
|
o[5]("title") + ""
|
|
@@ -164,212 +164,212 @@ function ge(o) {
|
|
|
164
164
|
c() {
|
|
165
165
|
i = k(e);
|
|
166
166
|
},
|
|
167
|
-
m(
|
|
168
|
-
|
|
167
|
+
m(a, r) {
|
|
168
|
+
P(a, i, r);
|
|
169
169
|
},
|
|
170
|
-
p(
|
|
170
|
+
p(a, r) {
|
|
171
171
|
r & /*$_*/
|
|
172
172
|
32 && e !== (e = /*$_*/
|
|
173
|
-
|
|
173
|
+
a[5]("title") + "") && T(i, e);
|
|
174
174
|
},
|
|
175
|
-
d(
|
|
176
|
-
|
|
175
|
+
d(a) {
|
|
176
|
+
a && R(i);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Q(o) {
|
|
181
181
|
let e, i = (
|
|
182
182
|
/*$_*/
|
|
183
183
|
o[5]("smsCodeError") + ""
|
|
184
|
-
),
|
|
184
|
+
), a;
|
|
185
185
|
return {
|
|
186
186
|
c() {
|
|
187
|
-
e = w("p"),
|
|
187
|
+
e = w("p"), a = k(i), y(e, "class", "InvalidInput");
|
|
188
188
|
},
|
|
189
|
-
m(r,
|
|
190
|
-
|
|
189
|
+
m(r, s) {
|
|
190
|
+
P(r, e, s), l(e, a);
|
|
191
191
|
},
|
|
192
|
-
p(r,
|
|
193
|
-
|
|
192
|
+
p(r, s) {
|
|
193
|
+
s & /*$_*/
|
|
194
194
|
32 && i !== (i = /*$_*/
|
|
195
|
-
r[5]("smsCodeError") + "") &&
|
|
195
|
+
r[5]("smsCodeError") + "") && T(a, i);
|
|
196
196
|
},
|
|
197
197
|
d(r) {
|
|
198
|
-
r &&
|
|
198
|
+
r && R(e);
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function X(o) {
|
|
203
203
|
let e, i = (
|
|
204
204
|
/*$_*/
|
|
205
205
|
o[5]("resendMessage") + ""
|
|
206
|
-
),
|
|
206
|
+
), a;
|
|
207
207
|
return {
|
|
208
208
|
c() {
|
|
209
|
-
e = w("p"),
|
|
209
|
+
e = w("p"), a = k(i), y(e, "class", "SmsVerificationResendMessage");
|
|
210
210
|
},
|
|
211
|
-
m(r,
|
|
212
|
-
|
|
211
|
+
m(r, s) {
|
|
212
|
+
P(r, e, s), l(e, a);
|
|
213
213
|
},
|
|
214
|
-
p(r,
|
|
215
|
-
|
|
214
|
+
p(r, s) {
|
|
215
|
+
s & /*$_*/
|
|
216
216
|
32 && i !== (i = /*$_*/
|
|
217
|
-
r[5]("resendMessage") + "") &&
|
|
217
|
+
r[5]("resendMessage") + "") && T(a, i);
|
|
218
218
|
},
|
|
219
219
|
d(r) {
|
|
220
|
-
r &&
|
|
220
|
+
r && R(e);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
let e, i,
|
|
224
|
+
function Z(o) {
|
|
225
|
+
let e, i, a = (
|
|
226
226
|
/*secondsLeft*/
|
|
227
227
|
o[4] < 10 ? "0" : ""
|
|
228
|
-
), r,
|
|
228
|
+
), r, s, m;
|
|
229
229
|
return {
|
|
230
230
|
c() {
|
|
231
|
-
e = w("span"), i = k("(0:"), r = k(
|
|
231
|
+
e = w("span"), i = k("(0:"), r = k(a), s = k(
|
|
232
232
|
/*secondsLeft*/
|
|
233
233
|
o[4]
|
|
234
|
-
), m = k(")"),
|
|
234
|
+
), m = k(")"), y(e, "class", "SmsVerificationResendTimer");
|
|
235
235
|
},
|
|
236
236
|
m(c, d) {
|
|
237
|
-
|
|
237
|
+
P(c, e, d), l(e, i), l(e, r), l(e, s), l(e, m);
|
|
238
238
|
},
|
|
239
239
|
p(c, d) {
|
|
240
240
|
d & /*secondsLeft*/
|
|
241
|
-
16 &&
|
|
242
|
-
c[4] < 10 ? "0" : "") &&
|
|
243
|
-
16 &&
|
|
244
|
-
|
|
241
|
+
16 && a !== (a = /*secondsLeft*/
|
|
242
|
+
c[4] < 10 ? "0" : "") && T(r, a), d & /*secondsLeft*/
|
|
243
|
+
16 && T(
|
|
244
|
+
s,
|
|
245
245
|
/*secondsLeft*/
|
|
246
246
|
c[4]
|
|
247
247
|
);
|
|
248
248
|
},
|
|
249
249
|
d(c) {
|
|
250
|
-
c &&
|
|
250
|
+
c && R(e);
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
let e, i,
|
|
254
|
+
function he(o) {
|
|
255
|
+
let e, i, a, r, s, m = (
|
|
256
256
|
/*$_*/
|
|
257
257
|
o[5]("code") + ""
|
|
258
|
-
), c, d,
|
|
258
|
+
), c, d, b, E, u, F, _, I, j, C, h = (
|
|
259
259
|
/*$_*/
|
|
260
260
|
o[5]("activate") + ""
|
|
261
|
-
),
|
|
261
|
+
), x, U, f, V = (
|
|
262
262
|
/*$_*/
|
|
263
263
|
o[5]("resend") + ""
|
|
264
|
-
),
|
|
265
|
-
function
|
|
264
|
+
), N, O, D, H;
|
|
265
|
+
function B(n, p) {
|
|
266
266
|
return (
|
|
267
267
|
/*isSmsValid*/
|
|
268
|
-
|
|
268
|
+
n[2] ? ye : pe
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
let A =
|
|
272
|
-
o[2] &&
|
|
271
|
+
let A = B(o), S = A(o), v = !/*isSmsValid*/
|
|
272
|
+
o[2] && Q(o), g = (
|
|
273
273
|
/*timer*/
|
|
274
|
-
o[3] &&
|
|
275
|
-
),
|
|
274
|
+
o[3] && X(o)
|
|
275
|
+
), t = (
|
|
276
276
|
/*timer*/
|
|
277
|
-
o[3] &&
|
|
277
|
+
o[3] && Z(o)
|
|
278
278
|
);
|
|
279
279
|
return {
|
|
280
280
|
c() {
|
|
281
|
-
e = w("div"), i = w("h3"),
|
|
282
|
-
o[2] ? "" : "InvalidField")),
|
|
283
|
-
o[3],
|
|
281
|
+
e = w("div"), i = w("h3"), S.c(), a = z(), r = w("div"), s = w("label"), c = k(m), d = k(":"), b = w("span"), b.textContent = "*", E = z(), u = w("input"), F = z(), v && v.c(), I = z(), g && g.c(), j = z(), C = w("button"), x = k(h), U = z(), f = w("button"), N = k(V), O = z(), t && t.c(), y(i, "class", "Title"), y(b, "class", "FormRequired"), y(s, "for", "SmsCode"), y(u, "type", "text"), y(u, "id", "SmsCode"), y(u, "inputmode", "numeric"), y(u, "pattern", "[0-9]*"), y(u, "maxlength", "6"), y(r, "class", _ = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
282
|
+
o[2] ? "" : "InvalidField")), y(C, "class", "Button SmsVerificationValidate"), y(f, "class", "Button SmsVerificationResend"), f.disabled = /*timer*/
|
|
283
|
+
o[3], y(e, "class", "Container SmsVerificationContainer");
|
|
284
284
|
},
|
|
285
|
-
m(
|
|
286
|
-
|
|
285
|
+
m(n, p) {
|
|
286
|
+
P(n, e, p), l(e, i), S.m(i, null), l(e, a), l(e, r), l(r, s), l(s, c), l(s, d), l(s, b), l(r, E), l(r, u), G(
|
|
287
287
|
u,
|
|
288
288
|
/*smsCode*/
|
|
289
289
|
o[1]
|
|
290
|
-
), l(r,
|
|
290
|
+
), l(r, F), v && v.m(r, null), l(e, I), g && g.m(e, null), l(e, j), l(e, C), l(C, x), l(e, U), l(e, f), l(f, N), l(f, O), t && t.m(f, null), o[20](e), D || (H = [
|
|
291
291
|
q(
|
|
292
292
|
u,
|
|
293
293
|
"input",
|
|
294
294
|
/*input_input_handler*/
|
|
295
|
-
o[
|
|
295
|
+
o[18]
|
|
296
296
|
),
|
|
297
297
|
q(
|
|
298
298
|
u,
|
|
299
299
|
"keydown",
|
|
300
300
|
/*keydown_handler*/
|
|
301
|
-
o[
|
|
301
|
+
o[19]
|
|
302
302
|
),
|
|
303
303
|
q(
|
|
304
|
-
|
|
304
|
+
C,
|
|
305
305
|
"click",
|
|
306
306
|
/*activateUser*/
|
|
307
307
|
o[6]
|
|
308
308
|
),
|
|
309
309
|
q(
|
|
310
|
-
|
|
310
|
+
f,
|
|
311
311
|
"click",
|
|
312
312
|
/*resendCode*/
|
|
313
313
|
o[7]
|
|
314
314
|
)
|
|
315
|
-
],
|
|
315
|
+
], D = !0);
|
|
316
316
|
},
|
|
317
|
-
p(
|
|
318
|
-
A === (A =
|
|
317
|
+
p(n, [p]) {
|
|
318
|
+
A === (A = B(n)) && S ? S.p(n, p) : (S.d(1), S = A(n), S && (S.c(), S.m(i, null))), p & /*$_*/
|
|
319
319
|
32 && m !== (m = /*$_*/
|
|
320
|
-
|
|
320
|
+
n[5]("code") + "") && T(c, m), p & /*smsCode*/
|
|
321
321
|
2 && u.value !== /*smsCode*/
|
|
322
|
-
|
|
322
|
+
n[1] && G(
|
|
323
323
|
u,
|
|
324
324
|
/*smsCode*/
|
|
325
|
-
|
|
325
|
+
n[1]
|
|
326
326
|
), /*isSmsValid*/
|
|
327
|
-
|
|
327
|
+
n[2] ? v && (v.d(1), v = null) : v ? v.p(n, p) : (v = Q(n), v.c(), v.m(r, null)), p & /*isSmsValid*/
|
|
328
328
|
4 && _ !== (_ = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
32 &&
|
|
332
|
-
|
|
333
|
-
32 &&
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
8 && (
|
|
337
|
-
|
|
329
|
+
n[2] ? "" : "InvalidField")) && y(r, "class", _), /*timer*/
|
|
330
|
+
n[3] ? g ? g.p(n, p) : (g = X(n), g.c(), g.m(e, j)) : g && (g.d(1), g = null), p & /*$_*/
|
|
331
|
+
32 && h !== (h = /*$_*/
|
|
332
|
+
n[5]("activate") + "") && T(x, h), p & /*$_*/
|
|
333
|
+
32 && V !== (V = /*$_*/
|
|
334
|
+
n[5]("resend") + "") && T(N, V), /*timer*/
|
|
335
|
+
n[3] ? t ? t.p(n, p) : (t = Z(n), t.c(), t.m(f, null)) : t && (t.d(1), t = null), p & /*timer*/
|
|
336
|
+
8 && (f.disabled = /*timer*/
|
|
337
|
+
n[3]);
|
|
338
338
|
},
|
|
339
|
-
i:
|
|
340
|
-
o:
|
|
341
|
-
d(
|
|
342
|
-
|
|
339
|
+
i: J,
|
|
340
|
+
o: J,
|
|
341
|
+
d(n) {
|
|
342
|
+
n && R(e), S.d(), v && v.d(), g && g.d(), t && t.d(), o[20](null), D = !1, ne(H);
|
|
343
343
|
}
|
|
344
344
|
};
|
|
345
345
|
}
|
|
346
|
-
function
|
|
347
|
-
let
|
|
348
|
-
|
|
349
|
-
let { endpoint: r = "" } = e, { tokenid:
|
|
350
|
-
const
|
|
351
|
-
|
|
352
|
-
const
|
|
353
|
-
fetch(
|
|
354
|
-
Object.keys(
|
|
355
|
-
|
|
346
|
+
function be(o, e, i) {
|
|
347
|
+
let a;
|
|
348
|
+
ae(o, fe, (t) => i(5, a = t));
|
|
349
|
+
let { endpoint: r = "" } = e, { tokenid: s = "" } = e, { playerid: m = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: b } = e, { clientstyling: E = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: F = "" } = e, _, I = !0, j = !1, C, h, x = +localStorage.getItem("smsTimer") || 0, U = Date.now() / 1e3 - x, f = 60 - Math.floor(U);
|
|
350
|
+
const V = { numeric: /^[0-9]{0,6}$/ };
|
|
351
|
+
ve({ withLocale: "en", translations: {} });
|
|
352
|
+
const N = () => {
|
|
353
|
+
fetch(F).then((n) => n.json()).then((n) => {
|
|
354
|
+
Object.keys(n).forEach((p) => {
|
|
355
|
+
K(p, n[p]);
|
|
356
356
|
});
|
|
357
|
-
}).catch((
|
|
358
|
-
console.log(
|
|
357
|
+
}).catch((n) => {
|
|
358
|
+
console.log(n);
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
|
-
Object.keys(
|
|
362
|
-
|
|
361
|
+
Object.keys(W).forEach((t) => {
|
|
362
|
+
K(t, W[t]);
|
|
363
363
|
});
|
|
364
|
-
const
|
|
364
|
+
const O = () => L(this, null, function* () {
|
|
365
365
|
try {
|
|
366
|
-
if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${
|
|
366
|
+
if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${_}`, {
|
|
367
367
|
headers: {
|
|
368
368
|
"Content-Type": "application/json",
|
|
369
369
|
accept: "application/json"
|
|
370
370
|
}
|
|
371
371
|
})).ok)
|
|
372
|
-
i(2,
|
|
372
|
+
i(2, I = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
373
373
|
else
|
|
374
374
|
throw window.postMessage(
|
|
375
375
|
{
|
|
@@ -380,12 +380,12 @@ function ye(o, e, i) {
|
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
window.location.href
|
|
383
|
-
), i(2,
|
|
383
|
+
), i(2, I = !1), new Error("Could not activate user");
|
|
384
384
|
} catch (t) {
|
|
385
385
|
console.log(t);
|
|
386
386
|
}
|
|
387
|
-
}),
|
|
388
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
387
|
+
}), D = () => L(this, null, function* () {
|
|
388
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), B();
|
|
389
389
|
try {
|
|
390
390
|
const t = yield fetch(`${r}/v1/player/sms/token`, {
|
|
391
391
|
method: "POST",
|
|
@@ -398,161 +398,154 @@ function ye(o, e, i) {
|
|
|
398
398
|
messageTemplate: c,
|
|
399
399
|
destination: d
|
|
400
400
|
})
|
|
401
|
-
}),
|
|
401
|
+
}), n = yield t.json();
|
|
402
402
|
if (t.ok)
|
|
403
|
-
i(9,
|
|
403
|
+
i(9, s = n.id), j = !1, H();
|
|
404
404
|
else
|
|
405
|
-
throw
|
|
405
|
+
throw j = !0, new Error("Failed to fetch");
|
|
406
406
|
} catch (t) {
|
|
407
|
-
|
|
407
|
+
j = !0, console.error(t);
|
|
408
408
|
}
|
|
409
|
-
}),
|
|
410
|
-
|
|
409
|
+
}), H = () => {
|
|
410
|
+
f > 0 ? i(4, f--, f) : (clearInterval(C), i(3, C = !1), i(4, f = 60));
|
|
411
411
|
}, B = () => {
|
|
412
|
-
|
|
413
|
-
t.innerHTML = y, h.appendChild(t);
|
|
414
|
-
}, O = () => {
|
|
415
|
-
let t = new URL(F), s = document.createElement("style");
|
|
416
|
-
fetch(t.href).then((x) => x.text()).then((x) => {
|
|
417
|
-
s.innerHTML = x, setTimeout(
|
|
418
|
-
() => {
|
|
419
|
-
h.appendChild(s);
|
|
420
|
-
},
|
|
421
|
-
1
|
|
422
|
-
), setTimeout(
|
|
423
|
-
() => {
|
|
424
|
-
},
|
|
425
|
-
500
|
|
426
|
-
);
|
|
427
|
-
});
|
|
428
|
-
}, A = () => {
|
|
429
|
-
V < 60 && i(3, M = setInterval(
|
|
412
|
+
U < 60 && i(3, C = setInterval(
|
|
430
413
|
() => {
|
|
431
|
-
|
|
414
|
+
H();
|
|
432
415
|
},
|
|
433
416
|
1e3
|
|
434
417
|
));
|
|
435
|
-
},
|
|
436
|
-
!
|
|
418
|
+
}, A = (t) => {
|
|
419
|
+
!V.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
|
|
437
420
|
};
|
|
438
|
-
|
|
421
|
+
se(() => {
|
|
439
422
|
if (!m || !d) {
|
|
440
423
|
let t = JSON.parse(localStorage.getItem("playerData"));
|
|
441
424
|
i(10, m = t.playerid), i(11, d = t.number);
|
|
442
425
|
}
|
|
443
|
-
|
|
426
|
+
return B(), () => {
|
|
427
|
+
};
|
|
444
428
|
});
|
|
445
|
-
function
|
|
446
|
-
|
|
429
|
+
function S() {
|
|
430
|
+
_ = this.value, i(1, _);
|
|
447
431
|
}
|
|
448
|
-
const v = (t) =>
|
|
432
|
+
const v = (t) => A(t);
|
|
449
433
|
function g(t) {
|
|
450
|
-
|
|
434
|
+
le[t ? "unshift" : "push"](() => {
|
|
451
435
|
h = t, i(0, h);
|
|
452
436
|
});
|
|
453
437
|
}
|
|
454
438
|
return o.$$set = (t) => {
|
|
455
|
-
"endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9,
|
|
439
|
+
"endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, s = t.tokenid), "playerid" in t && i(10, m = t.playerid), "smstemplate" in t && i(13, c = t.smstemplate), "number" in t && i(11, d = t.number), "mbsource" in t && i(14, b = t.mbsource), "clientstyling" in t && i(15, E = t.clientstyling), "clientstylingurl" in t && i(16, u = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
|
|
456
440
|
}, o.$$.update = () => {
|
|
457
441
|
o.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
458
442
|
5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
443
|
+
32769 && E && h && de(h, E), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
444
|
+
65537 && u && h && ce(h, u), o.$$.dirty & /*mbsource, customStylingContainer*/
|
|
445
|
+
16385 && b && h && ue(h, `${b}.Style`), o.$$.dirty & /*translationurl*/
|
|
446
|
+
131072 && F && N();
|
|
462
447
|
}, [
|
|
463
448
|
h,
|
|
464
|
-
j,
|
|
465
449
|
_,
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
D,
|
|
470
|
-
L,
|
|
471
|
-
b,
|
|
450
|
+
I,
|
|
451
|
+
C,
|
|
452
|
+
f,
|
|
472
453
|
a,
|
|
454
|
+
O,
|
|
455
|
+
D,
|
|
456
|
+
A,
|
|
457
|
+
s,
|
|
473
458
|
m,
|
|
474
459
|
d,
|
|
475
460
|
r,
|
|
476
461
|
c,
|
|
477
|
-
|
|
478
|
-
|
|
462
|
+
b,
|
|
463
|
+
E,
|
|
479
464
|
u,
|
|
480
|
-
|
|
465
|
+
F,
|
|
466
|
+
S,
|
|
481
467
|
v,
|
|
482
468
|
g
|
|
483
469
|
];
|
|
484
470
|
}
|
|
485
|
-
class
|
|
471
|
+
class Se extends te {
|
|
486
472
|
constructor(e) {
|
|
487
|
-
super(),
|
|
473
|
+
super(), ie(
|
|
488
474
|
this,
|
|
489
475
|
e,
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
476
|
+
be,
|
|
477
|
+
he,
|
|
478
|
+
oe,
|
|
493
479
|
{
|
|
494
480
|
endpoint: 12,
|
|
495
481
|
tokenid: 9,
|
|
496
482
|
playerid: 10,
|
|
497
483
|
smstemplate: 13,
|
|
498
484
|
number: 11,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
485
|
+
mbsource: 14,
|
|
486
|
+
clientstyling: 15,
|
|
487
|
+
clientstylingurl: 16,
|
|
488
|
+
translationurl: 17
|
|
502
489
|
},
|
|
503
|
-
|
|
490
|
+
ge
|
|
504
491
|
);
|
|
505
492
|
}
|
|
506
493
|
get endpoint() {
|
|
507
494
|
return this.$$.ctx[12];
|
|
508
495
|
}
|
|
509
496
|
set endpoint(e) {
|
|
510
|
-
this.$$set({ endpoint: e }),
|
|
497
|
+
this.$$set({ endpoint: e }), M();
|
|
511
498
|
}
|
|
512
499
|
get tokenid() {
|
|
513
500
|
return this.$$.ctx[9];
|
|
514
501
|
}
|
|
515
502
|
set tokenid(e) {
|
|
516
|
-
this.$$set({ tokenid: e }),
|
|
503
|
+
this.$$set({ tokenid: e }), M();
|
|
517
504
|
}
|
|
518
505
|
get playerid() {
|
|
519
506
|
return this.$$.ctx[10];
|
|
520
507
|
}
|
|
521
508
|
set playerid(e) {
|
|
522
|
-
this.$$set({ playerid: e }),
|
|
509
|
+
this.$$set({ playerid: e }), M();
|
|
523
510
|
}
|
|
524
511
|
get smstemplate() {
|
|
525
512
|
return this.$$.ctx[13];
|
|
526
513
|
}
|
|
527
514
|
set smstemplate(e) {
|
|
528
|
-
this.$$set({ smstemplate: e }),
|
|
515
|
+
this.$$set({ smstemplate: e }), M();
|
|
529
516
|
}
|
|
530
517
|
get number() {
|
|
531
518
|
return this.$$.ctx[11];
|
|
532
519
|
}
|
|
533
520
|
set number(e) {
|
|
534
|
-
this.$$set({ number: e }),
|
|
521
|
+
this.$$set({ number: e }), M();
|
|
535
522
|
}
|
|
536
|
-
get
|
|
523
|
+
get mbsource() {
|
|
537
524
|
return this.$$.ctx[14];
|
|
538
525
|
}
|
|
526
|
+
set mbsource(e) {
|
|
527
|
+
this.$$set({ mbsource: e }), M();
|
|
528
|
+
}
|
|
529
|
+
get clientstyling() {
|
|
530
|
+
return this.$$.ctx[15];
|
|
531
|
+
}
|
|
539
532
|
set clientstyling(e) {
|
|
540
|
-
this.$$set({ clientstyling: e }),
|
|
533
|
+
this.$$set({ clientstyling: e }), M();
|
|
541
534
|
}
|
|
542
535
|
get clientstylingurl() {
|
|
543
|
-
return this.$$.ctx[
|
|
536
|
+
return this.$$.ctx[16];
|
|
544
537
|
}
|
|
545
538
|
set clientstylingurl(e) {
|
|
546
|
-
this.$$set({ clientstylingurl: e }),
|
|
539
|
+
this.$$set({ clientstylingurl: e }), M();
|
|
547
540
|
}
|
|
548
541
|
get translationurl() {
|
|
549
|
-
return this.$$.ctx[
|
|
542
|
+
return this.$$.ctx[17];
|
|
550
543
|
}
|
|
551
544
|
set translationurl(e) {
|
|
552
|
-
this.$$set({ translationurl: e }),
|
|
545
|
+
this.$$set({ translationurl: e }), M();
|
|
553
546
|
}
|
|
554
547
|
}
|
|
555
|
-
|
|
548
|
+
me(Se, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
556
549
|
export {
|
|
557
|
-
|
|
550
|
+
Se as default
|
|
558
551
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...r){try{return e.apply(this,r)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerLoginForm-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...r){try{return e.apply(this,r)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/GeneralPlayerLoginForm-C2_RNyby.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-BRVTxLCa.js").then((e) => e.G).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("general-player-login-form") && customElements.define("general-player-login-form", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|