@everymatrix/general-player-login-form 1.55.0 → 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-DnwXmexh.js → GeneralPlayerLoginForm-BRVTxLCa.js} +1028 -1025
- package/components/GeneralPlayerLoginForm-C2_RNyby.cjs +5 -0
- package/components/{GeneralPlayerLoginForm-DjD9wSdK.js → GeneralPlayerLoginForm-I1NYdDOX.js} +990 -987
- package/components/GeneralPlayerSmsVerificationForm-9gKc_VsM.cjs +1 -0
- package/components/{GeneralPlayerSmsVerificationForm-ClUWo_HF.js → GeneralPlayerSmsVerificationForm-C7wZcrhZ.js} +182 -189
- package/components/{GeneralPlayerSmsVerificationForm-B6d2Y3hF.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-BoIsFJsw.cjs +0 -5
- package/components/GeneralPlayerSmsVerificationForm-BmimxoUw.cjs +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
i == null && (
|
|
1
|
+
import { $ as L, a as Z, b as $, S as ee, i as te, f as M, s as ie, c as oe, d as re, n as Y, e as R, r as ne, g as T, h as J, j as v, k as P, l as s, m as q, o as k, p as z, t as S, q as ae, u as se, v as le, w as de, x as ce, y as ue, z as me } from "./GeneralPlayerLoginForm-I1NYdDOX.js";
|
|
2
|
+
function fe({ withLocale: o, translations: e }) {
|
|
3
|
+
L.subscribe((i) => {
|
|
4
|
+
i == null && (Z.set(e), L.set(o));
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
7
|
+
function G(o, e) {
|
|
8
|
+
$(o, e);
|
|
9
9
|
}
|
|
10
|
-
const
|
|
10
|
+
const K = {
|
|
11
11
|
en: {
|
|
12
12
|
title: "Please enter the verification code you received on your number",
|
|
13
13
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -114,10 +114,10 @@ const W = {
|
|
|
114
114
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function ve(o) {
|
|
118
|
+
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))}");
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function ge(o) {
|
|
121
121
|
let e = (
|
|
122
122
|
/*$_*/
|
|
123
123
|
o[5]("errorTitle") + ""
|
|
@@ -126,20 +126,20 @@ function fe(o) {
|
|
|
126
126
|
c() {
|
|
127
127
|
i = S(e);
|
|
128
128
|
},
|
|
129
|
-
m(
|
|
130
|
-
|
|
129
|
+
m(a, r) {
|
|
130
|
+
P(a, i, r);
|
|
131
131
|
},
|
|
132
|
-
p(
|
|
132
|
+
p(a, r) {
|
|
133
133
|
r & /*$_*/
|
|
134
134
|
32 && e !== (e = /*$_*/
|
|
135
|
-
|
|
135
|
+
a[5]("errorTitle") + "") && T(i, e);
|
|
136
136
|
},
|
|
137
|
-
d(
|
|
138
|
-
|
|
137
|
+
d(a) {
|
|
138
|
+
a && R(i);
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function pe(o) {
|
|
143
143
|
let e = (
|
|
144
144
|
/*$_*/
|
|
145
145
|
o[5]("title") + ""
|
|
@@ -148,212 +148,212 @@ function ve(o) {
|
|
|
148
148
|
c() {
|
|
149
149
|
i = S(e);
|
|
150
150
|
},
|
|
151
|
-
m(
|
|
152
|
-
|
|
151
|
+
m(a, r) {
|
|
152
|
+
P(a, i, r);
|
|
153
153
|
},
|
|
154
|
-
p(
|
|
154
|
+
p(a, r) {
|
|
155
155
|
r & /*$_*/
|
|
156
156
|
32 && e !== (e = /*$_*/
|
|
157
|
-
|
|
157
|
+
a[5]("title") + "") && T(i, e);
|
|
158
158
|
},
|
|
159
|
-
d(
|
|
160
|
-
|
|
159
|
+
d(a) {
|
|
160
|
+
a && R(i);
|
|
161
161
|
}
|
|
162
162
|
};
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function W(o) {
|
|
165
165
|
let e, i = (
|
|
166
166
|
/*$_*/
|
|
167
167
|
o[5]("smsCodeError") + ""
|
|
168
|
-
),
|
|
168
|
+
), a;
|
|
169
169
|
return {
|
|
170
170
|
c() {
|
|
171
|
-
e = k("p"),
|
|
171
|
+
e = k("p"), a = S(i), v(e, "class", "InvalidInput");
|
|
172
172
|
},
|
|
173
173
|
m(r, l) {
|
|
174
|
-
|
|
174
|
+
P(r, e, l), s(e, a);
|
|
175
175
|
},
|
|
176
176
|
p(r, l) {
|
|
177
177
|
l & /*$_*/
|
|
178
178
|
32 && i !== (i = /*$_*/
|
|
179
|
-
r[5]("smsCodeError") + "") &&
|
|
179
|
+
r[5]("smsCodeError") + "") && T(a, i);
|
|
180
180
|
},
|
|
181
181
|
d(r) {
|
|
182
|
-
r &&
|
|
182
|
+
r && R(e);
|
|
183
183
|
}
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function Q(o) {
|
|
187
187
|
let e, i = (
|
|
188
188
|
/*$_*/
|
|
189
189
|
o[5]("resendMessage") + ""
|
|
190
|
-
),
|
|
190
|
+
), a;
|
|
191
191
|
return {
|
|
192
192
|
c() {
|
|
193
|
-
e = k("p"),
|
|
193
|
+
e = k("p"), a = S(i), v(e, "class", "SmsVerificationResendMessage");
|
|
194
194
|
},
|
|
195
195
|
m(r, l) {
|
|
196
|
-
|
|
196
|
+
P(r, e, l), s(e, a);
|
|
197
197
|
},
|
|
198
198
|
p(r, l) {
|
|
199
199
|
l & /*$_*/
|
|
200
200
|
32 && i !== (i = /*$_*/
|
|
201
|
-
r[5]("resendMessage") + "") &&
|
|
201
|
+
r[5]("resendMessage") + "") && T(a, i);
|
|
202
202
|
},
|
|
203
203
|
d(r) {
|
|
204
|
-
r &&
|
|
204
|
+
r && R(e);
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
let e, i,
|
|
208
|
+
function X(o) {
|
|
209
|
+
let e, i, a = (
|
|
210
210
|
/*secondsLeft*/
|
|
211
211
|
o[4] < 10 ? "0" : ""
|
|
212
|
-
), r, l,
|
|
212
|
+
), r, l, g;
|
|
213
213
|
return {
|
|
214
214
|
c() {
|
|
215
|
-
e = k("span"), i = S("(0:"), r = S(
|
|
215
|
+
e = k("span"), i = S("(0:"), r = S(a), l = S(
|
|
216
216
|
/*secondsLeft*/
|
|
217
217
|
o[4]
|
|
218
|
-
),
|
|
218
|
+
), g = S(")"), v(e, "class", "SmsVerificationResendTimer");
|
|
219
219
|
},
|
|
220
|
-
m(
|
|
221
|
-
|
|
220
|
+
m(p, h) {
|
|
221
|
+
P(p, e, h), s(e, i), s(e, r), s(e, l), s(e, g);
|
|
222
222
|
},
|
|
223
|
-
p(
|
|
224
|
-
|
|
225
|
-
16 &&
|
|
226
|
-
|
|
227
|
-
16 &&
|
|
223
|
+
p(p, h) {
|
|
224
|
+
h & /*secondsLeft*/
|
|
225
|
+
16 && a !== (a = /*secondsLeft*/
|
|
226
|
+
p[4] < 10 ? "0" : "") && T(r, a), h & /*secondsLeft*/
|
|
227
|
+
16 && T(
|
|
228
228
|
l,
|
|
229
229
|
/*secondsLeft*/
|
|
230
|
-
|
|
230
|
+
p[4]
|
|
231
231
|
);
|
|
232
232
|
},
|
|
233
|
-
d(
|
|
234
|
-
|
|
233
|
+
d(p) {
|
|
234
|
+
p && R(e);
|
|
235
235
|
}
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
let e, i,
|
|
238
|
+
function ye(o) {
|
|
239
|
+
let e, i, a, r, l, g = (
|
|
240
240
|
/*$_*/
|
|
241
241
|
o[5]("code") + ""
|
|
242
|
-
),
|
|
242
|
+
), p, h, C, E, d, F, _, I, j, w, y = (
|
|
243
243
|
/*$_*/
|
|
244
244
|
o[5]("activate") + ""
|
|
245
|
-
),
|
|
245
|
+
), x, U, c, V = (
|
|
246
246
|
/*$_*/
|
|
247
247
|
o[5]("resend") + ""
|
|
248
|
-
),
|
|
249
|
-
function
|
|
248
|
+
), N, O, D, H;
|
|
249
|
+
function B(n, f) {
|
|
250
250
|
return (
|
|
251
251
|
/*isSmsValid*/
|
|
252
|
-
|
|
252
|
+
n[2] ? pe : ge
|
|
253
253
|
);
|
|
254
254
|
}
|
|
255
|
-
let A =
|
|
256
|
-
o[2] &&
|
|
255
|
+
let A = B(o), b = A(o), u = !/*isSmsValid*/
|
|
256
|
+
o[2] && W(o), m = (
|
|
257
257
|
/*timer*/
|
|
258
|
-
o[3] &&
|
|
259
|
-
),
|
|
258
|
+
o[3] && Q(o)
|
|
259
|
+
), t = (
|
|
260
260
|
/*timer*/
|
|
261
|
-
o[3] &&
|
|
261
|
+
o[3] && X(o)
|
|
262
262
|
);
|
|
263
263
|
return {
|
|
264
264
|
c() {
|
|
265
|
-
e = k("div"), i = k("h3"),
|
|
266
|
-
o[2] ? "" : "InvalidField")),
|
|
267
|
-
o[3],
|
|
265
|
+
e = k("div"), i = k("h3"), b.c(), a = z(), r = k("div"), l = k("label"), p = S(g), h = S(":"), C = k("span"), C.textContent = "*", E = z(), d = k("input"), F = z(), u && u.c(), I = z(), m && m.c(), j = z(), w = k("button"), x = S(y), U = z(), c = k("button"), N = S(V), O = z(), t && t.c(), v(i, "class", "Title"), v(C, "class", "FormRequired"), v(l, "for", "SmsCode"), v(d, "type", "text"), v(d, "id", "SmsCode"), v(d, "inputmode", "numeric"), v(d, "pattern", "[0-9]*"), v(d, "maxlength", "6"), v(r, "class", _ = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
266
|
+
o[2] ? "" : "InvalidField")), v(w, "class", "Button SmsVerificationValidate"), v(c, "class", "Button SmsVerificationResend"), c.disabled = /*timer*/
|
|
267
|
+
o[3], v(e, "class", "Container SmsVerificationContainer");
|
|
268
268
|
},
|
|
269
|
-
m(
|
|
270
|
-
|
|
269
|
+
m(n, f) {
|
|
270
|
+
P(n, e, f), s(e, i), b.m(i, null), s(e, a), s(e, r), s(r, l), s(l, p), s(l, h), s(l, C), s(r, E), s(r, d), J(
|
|
271
271
|
d,
|
|
272
272
|
/*smsCode*/
|
|
273
273
|
o[1]
|
|
274
|
-
), s(r,
|
|
274
|
+
), s(r, F), u && u.m(r, null), s(e, I), m && m.m(e, null), s(e, j), s(e, w), s(w, x), s(e, U), s(e, c), s(c, N), s(c, O), t && t.m(c, null), o[20](e), D || (H = [
|
|
275
275
|
q(
|
|
276
276
|
d,
|
|
277
277
|
"input",
|
|
278
278
|
/*input_input_handler*/
|
|
279
|
-
o[
|
|
279
|
+
o[18]
|
|
280
280
|
),
|
|
281
281
|
q(
|
|
282
282
|
d,
|
|
283
283
|
"keydown",
|
|
284
284
|
/*keydown_handler*/
|
|
285
|
-
o[
|
|
285
|
+
o[19]
|
|
286
286
|
),
|
|
287
287
|
q(
|
|
288
|
-
|
|
288
|
+
w,
|
|
289
289
|
"click",
|
|
290
290
|
/*activateUser*/
|
|
291
291
|
o[6]
|
|
292
292
|
),
|
|
293
293
|
q(
|
|
294
|
-
|
|
294
|
+
c,
|
|
295
295
|
"click",
|
|
296
296
|
/*resendCode*/
|
|
297
297
|
o[7]
|
|
298
298
|
)
|
|
299
|
-
],
|
|
299
|
+
], D = !0);
|
|
300
300
|
},
|
|
301
|
-
p(
|
|
302
|
-
A === (A =
|
|
303
|
-
32 &&
|
|
304
|
-
|
|
301
|
+
p(n, [f]) {
|
|
302
|
+
A === (A = B(n)) && b ? b.p(n, f) : (b.d(1), b = A(n), b && (b.c(), b.m(i, null))), f & /*$_*/
|
|
303
|
+
32 && g !== (g = /*$_*/
|
|
304
|
+
n[5]("code") + "") && T(p, g), f & /*smsCode*/
|
|
305
305
|
2 && d.value !== /*smsCode*/
|
|
306
|
-
|
|
306
|
+
n[1] && J(
|
|
307
307
|
d,
|
|
308
308
|
/*smsCode*/
|
|
309
|
-
|
|
309
|
+
n[1]
|
|
310
310
|
), /*isSmsValid*/
|
|
311
|
-
|
|
311
|
+
n[2] ? u && (u.d(1), u = null) : u ? u.p(n, f) : (u = W(n), u.c(), u.m(r, null)), f & /*isSmsValid*/
|
|
312
312
|
4 && _ !== (_ = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
32 &&
|
|
316
|
-
|
|
317
|
-
32 &&
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
8 && (
|
|
321
|
-
|
|
313
|
+
n[2] ? "" : "InvalidField")) && v(r, "class", _), /*timer*/
|
|
314
|
+
n[3] ? m ? m.p(n, f) : (m = Q(n), m.c(), m.m(e, j)) : m && (m.d(1), m = null), f & /*$_*/
|
|
315
|
+
32 && y !== (y = /*$_*/
|
|
316
|
+
n[5]("activate") + "") && T(x, y), f & /*$_*/
|
|
317
|
+
32 && V !== (V = /*$_*/
|
|
318
|
+
n[5]("resend") + "") && T(N, V), /*timer*/
|
|
319
|
+
n[3] ? t ? t.p(n, f) : (t = X(n), t.c(), t.m(c, null)) : t && (t.d(1), t = null), f & /*timer*/
|
|
320
|
+
8 && (c.disabled = /*timer*/
|
|
321
|
+
n[3]);
|
|
322
322
|
},
|
|
323
|
-
i:
|
|
324
|
-
o:
|
|
325
|
-
d(
|
|
326
|
-
|
|
323
|
+
i: Y,
|
|
324
|
+
o: Y,
|
|
325
|
+
d(n) {
|
|
326
|
+
n && R(e), b.d(), u && u.d(), m && m.d(), t && t.d(), o[20](null), D = !1, ne(H);
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
|
-
function
|
|
331
|
-
let
|
|
332
|
-
|
|
333
|
-
let { endpoint: r = "" } = e, { tokenid: l = "" } = e, { playerid:
|
|
334
|
-
const
|
|
335
|
-
|
|
336
|
-
const
|
|
337
|
-
fetch(
|
|
338
|
-
Object.keys(
|
|
339
|
-
|
|
330
|
+
function he(o, e, i) {
|
|
331
|
+
let a;
|
|
332
|
+
ae(o, de, (t) => i(5, a = t));
|
|
333
|
+
let { endpoint: r = "" } = e, { tokenid: l = "" } = e, { playerid: g = "" } = e, { smstemplate: p = "Please use this code {0} to activate your accout" } = e, { number: h = "" } = e, { mbsource: C } = e, { clientstyling: E = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: F = "" } = e, _, I = !0, j = !1, w, y, x = +localStorage.getItem("smsTimer") || 0, U = Date.now() / 1e3 - x, c = 60 - Math.floor(U);
|
|
334
|
+
const V = { numeric: /^[0-9]{0,6}$/ };
|
|
335
|
+
fe({ withLocale: "en", translations: {} });
|
|
336
|
+
const N = () => {
|
|
337
|
+
fetch(F).then((n) => n.json()).then((n) => {
|
|
338
|
+
Object.keys(n).forEach((f) => {
|
|
339
|
+
G(f, n[f]);
|
|
340
340
|
});
|
|
341
|
-
}).catch((
|
|
342
|
-
console.log(
|
|
341
|
+
}).catch((n) => {
|
|
342
|
+
console.log(n);
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
|
-
Object.keys(
|
|
346
|
-
|
|
345
|
+
Object.keys(K).forEach((t) => {
|
|
346
|
+
G(t, K[t]);
|
|
347
347
|
});
|
|
348
|
-
const
|
|
348
|
+
const O = async () => {
|
|
349
349
|
try {
|
|
350
|
-
if ((await fetch(`${r}/v1/player/${
|
|
350
|
+
if ((await fetch(`${r}/v1/player/${g}/activateSMS?tokenId=${l}&validationCode=${_}`, {
|
|
351
351
|
headers: {
|
|
352
352
|
"Content-Type": "application/json",
|
|
353
353
|
accept: "application/json"
|
|
354
354
|
}
|
|
355
355
|
})).ok)
|
|
356
|
-
i(2,
|
|
356
|
+
i(2, I = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
357
357
|
else
|
|
358
358
|
throw window.postMessage(
|
|
359
359
|
{
|
|
@@ -364,12 +364,12 @@ function pe(o, e, i) {
|
|
|
364
364
|
}
|
|
365
365
|
},
|
|
366
366
|
window.location.href
|
|
367
|
-
), i(2,
|
|
367
|
+
), i(2, I = !1), new Error("Could not activate user");
|
|
368
368
|
} catch (t) {
|
|
369
369
|
console.log(t);
|
|
370
370
|
}
|
|
371
|
-
},
|
|
372
|
-
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))),
|
|
371
|
+
}, D = async () => {
|
|
372
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), B();
|
|
373
373
|
try {
|
|
374
374
|
const t = await fetch(`${r}/v1/player/sms/token`, {
|
|
375
375
|
method: "POST",
|
|
@@ -378,165 +378,158 @@ function pe(o, e, i) {
|
|
|
378
378
|
accept: "application/json"
|
|
379
379
|
},
|
|
380
380
|
body: JSON.stringify({
|
|
381
|
-
userId:
|
|
382
|
-
messageTemplate:
|
|
383
|
-
destination:
|
|
381
|
+
userId: g,
|
|
382
|
+
messageTemplate: p,
|
|
383
|
+
destination: h
|
|
384
384
|
})
|
|
385
|
-
}),
|
|
385
|
+
}), n = await t.json();
|
|
386
386
|
if (t.ok)
|
|
387
|
-
i(9, l =
|
|
387
|
+
i(9, l = n.id), j = !1, H();
|
|
388
388
|
else
|
|
389
|
-
throw
|
|
389
|
+
throw j = !0, new Error("Failed to fetch");
|
|
390
390
|
} catch (t) {
|
|
391
|
-
|
|
391
|
+
j = !0, console.error(t);
|
|
392
392
|
}
|
|
393
|
-
},
|
|
394
|
-
|
|
393
|
+
}, H = () => {
|
|
394
|
+
c > 0 ? i(4, c--, c) : (clearInterval(w), i(3, w = !1), i(4, c = 60));
|
|
395
395
|
}, B = () => {
|
|
396
|
-
|
|
397
|
-
t.innerHTML = w, y.appendChild(t);
|
|
398
|
-
}, O = () => {
|
|
399
|
-
let t = new URL(F), a = document.createElement("style");
|
|
400
|
-
fetch(t.href).then((x) => x.text()).then((x) => {
|
|
401
|
-
a.innerHTML = x, setTimeout(
|
|
402
|
-
() => {
|
|
403
|
-
y.appendChild(a);
|
|
404
|
-
},
|
|
405
|
-
1
|
|
406
|
-
), setTimeout(
|
|
407
|
-
() => {
|
|
408
|
-
},
|
|
409
|
-
500
|
|
410
|
-
);
|
|
411
|
-
});
|
|
412
|
-
}, A = () => {
|
|
413
|
-
V < 60 && i(3, M = setInterval(
|
|
396
|
+
U < 60 && i(3, w = setInterval(
|
|
414
397
|
() => {
|
|
415
|
-
|
|
398
|
+
H();
|
|
416
399
|
},
|
|
417
400
|
1e3
|
|
418
401
|
));
|
|
419
|
-
},
|
|
420
|
-
!
|
|
402
|
+
}, A = (t) => {
|
|
403
|
+
!V.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
|
|
421
404
|
};
|
|
422
|
-
|
|
423
|
-
if (!
|
|
405
|
+
se(() => {
|
|
406
|
+
if (!g || !h) {
|
|
424
407
|
let t = JSON.parse(localStorage.getItem("playerData"));
|
|
425
|
-
i(10,
|
|
408
|
+
i(10, g = t.playerid), i(11, h = t.number);
|
|
426
409
|
}
|
|
427
|
-
|
|
410
|
+
return B(), () => {
|
|
411
|
+
};
|
|
428
412
|
});
|
|
429
|
-
function
|
|
430
|
-
|
|
413
|
+
function b() {
|
|
414
|
+
_ = this.value, i(1, _);
|
|
431
415
|
}
|
|
432
|
-
const u = (t) =>
|
|
416
|
+
const u = (t) => A(t);
|
|
433
417
|
function m(t) {
|
|
434
|
-
|
|
418
|
+
le[t ? "unshift" : "push"](() => {
|
|
435
419
|
y = t, i(0, y);
|
|
436
420
|
});
|
|
437
421
|
}
|
|
438
422
|
return o.$$set = (t) => {
|
|
439
|
-
"endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, l = t.tokenid), "playerid" in t && i(10,
|
|
423
|
+
"endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, l = t.tokenid), "playerid" in t && i(10, g = t.playerid), "smstemplate" in t && i(13, p = t.smstemplate), "number" in t && i(11, h = t.number), "mbsource" in t && i(14, C = t.mbsource), "clientstyling" in t && i(15, E = t.clientstyling), "clientstylingurl" in t && i(16, d = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
|
|
440
424
|
}, o.$$.update = () => {
|
|
441
425
|
o.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
442
426
|
5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
427
|
+
32769 && E && y && ce(y, E), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
428
|
+
65537 && d && y && ue(y, d), o.$$.dirty & /*mbsource, customStylingContainer*/
|
|
429
|
+
16385 && C && y && me(y, `${C}.Style`), o.$$.dirty & /*translationurl*/
|
|
430
|
+
131072 && F && N();
|
|
446
431
|
}, [
|
|
447
432
|
y,
|
|
448
|
-
j,
|
|
449
433
|
_,
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
434
|
+
I,
|
|
435
|
+
w,
|
|
436
|
+
c,
|
|
437
|
+
a,
|
|
438
|
+
O,
|
|
453
439
|
D,
|
|
454
|
-
|
|
455
|
-
h,
|
|
440
|
+
A,
|
|
456
441
|
l,
|
|
457
|
-
v,
|
|
458
|
-
p,
|
|
459
|
-
r,
|
|
460
442
|
g,
|
|
461
|
-
|
|
462
|
-
|
|
443
|
+
h,
|
|
444
|
+
r,
|
|
445
|
+
p,
|
|
446
|
+
C,
|
|
447
|
+
E,
|
|
463
448
|
d,
|
|
464
|
-
|
|
449
|
+
F,
|
|
450
|
+
b,
|
|
465
451
|
u,
|
|
466
452
|
m
|
|
467
453
|
];
|
|
468
454
|
}
|
|
469
|
-
class
|
|
455
|
+
class be extends ee {
|
|
470
456
|
constructor(e) {
|
|
471
|
-
super(),
|
|
457
|
+
super(), te(
|
|
472
458
|
this,
|
|
473
459
|
e,
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
460
|
+
he,
|
|
461
|
+
ye,
|
|
462
|
+
ie,
|
|
477
463
|
{
|
|
478
464
|
endpoint: 12,
|
|
479
465
|
tokenid: 9,
|
|
480
466
|
playerid: 10,
|
|
481
467
|
smstemplate: 13,
|
|
482
468
|
number: 11,
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
469
|
+
mbsource: 14,
|
|
470
|
+
clientstyling: 15,
|
|
471
|
+
clientstylingurl: 16,
|
|
472
|
+
translationurl: 17
|
|
486
473
|
},
|
|
487
|
-
|
|
474
|
+
ve
|
|
488
475
|
);
|
|
489
476
|
}
|
|
490
477
|
get endpoint() {
|
|
491
478
|
return this.$$.ctx[12];
|
|
492
479
|
}
|
|
493
480
|
set endpoint(e) {
|
|
494
|
-
this.$$set({ endpoint: e }),
|
|
481
|
+
this.$$set({ endpoint: e }), M();
|
|
495
482
|
}
|
|
496
483
|
get tokenid() {
|
|
497
484
|
return this.$$.ctx[9];
|
|
498
485
|
}
|
|
499
486
|
set tokenid(e) {
|
|
500
|
-
this.$$set({ tokenid: e }),
|
|
487
|
+
this.$$set({ tokenid: e }), M();
|
|
501
488
|
}
|
|
502
489
|
get playerid() {
|
|
503
490
|
return this.$$.ctx[10];
|
|
504
491
|
}
|
|
505
492
|
set playerid(e) {
|
|
506
|
-
this.$$set({ playerid: e }),
|
|
493
|
+
this.$$set({ playerid: e }), M();
|
|
507
494
|
}
|
|
508
495
|
get smstemplate() {
|
|
509
496
|
return this.$$.ctx[13];
|
|
510
497
|
}
|
|
511
498
|
set smstemplate(e) {
|
|
512
|
-
this.$$set({ smstemplate: e }),
|
|
499
|
+
this.$$set({ smstemplate: e }), M();
|
|
513
500
|
}
|
|
514
501
|
get number() {
|
|
515
502
|
return this.$$.ctx[11];
|
|
516
503
|
}
|
|
517
504
|
set number(e) {
|
|
518
|
-
this.$$set({ number: e }),
|
|
505
|
+
this.$$set({ number: e }), M();
|
|
519
506
|
}
|
|
520
|
-
get
|
|
507
|
+
get mbsource() {
|
|
521
508
|
return this.$$.ctx[14];
|
|
522
509
|
}
|
|
510
|
+
set mbsource(e) {
|
|
511
|
+
this.$$set({ mbsource: e }), M();
|
|
512
|
+
}
|
|
513
|
+
get clientstyling() {
|
|
514
|
+
return this.$$.ctx[15];
|
|
515
|
+
}
|
|
523
516
|
set clientstyling(e) {
|
|
524
|
-
this.$$set({ clientstyling: e }),
|
|
517
|
+
this.$$set({ clientstyling: e }), M();
|
|
525
518
|
}
|
|
526
519
|
get clientstylingurl() {
|
|
527
|
-
return this.$$.ctx[
|
|
520
|
+
return this.$$.ctx[16];
|
|
528
521
|
}
|
|
529
522
|
set clientstylingurl(e) {
|
|
530
|
-
this.$$set({ clientstylingurl: e }),
|
|
523
|
+
this.$$set({ clientstylingurl: e }), M();
|
|
531
524
|
}
|
|
532
525
|
get translationurl() {
|
|
533
|
-
return this.$$.ctx[
|
|
526
|
+
return this.$$.ctx[17];
|
|
534
527
|
}
|
|
535
528
|
set translationurl(e) {
|
|
536
|
-
this.$$set({ translationurl: e }),
|
|
529
|
+
this.$$set({ translationurl: e }), M();
|
|
537
530
|
}
|
|
538
531
|
}
|
|
539
|
-
oe(
|
|
532
|
+
oe(be, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
540
533
|
export {
|
|
541
|
-
|
|
534
|
+
be as default
|
|
542
535
|
};
|