@everymatrix/general-player-login-form 1.87.26 → 1.87.27
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-Btnp3D-4.js → GeneralPlayerLoginForm-CwQxbAh_.js} +800 -772
- package/components/{GeneralPlayerLoginForm-DPsX1pnl.js → GeneralPlayerLoginForm-fh6xw16x.js} +829 -800
- package/components/GeneralPlayerLoginForm-qiA6vKLG.cjs +18 -0
- package/components/{GeneralPlayerSmsVerificationForm-RyF4EBVf.js → GeneralPlayerSmsVerificationForm-CjFLZwH3.js} +167 -167
- package/components/{GeneralPlayerSmsVerificationForm-DQys_RhZ.js → GeneralPlayerSmsVerificationForm-DZpucIO0.js} +175 -175
- package/components/GeneralPlayerSmsVerificationForm-Dh-6Oasd.cjs +1 -0
- 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-BKduHUxH.cjs +0 -18
- package/components/GeneralPlayerSmsVerificationForm-B3frbGsV.cjs +0 -1
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
var D = (o, e, i) => new Promise((
|
|
2
|
-
var
|
|
1
|
+
var D = (o, e, i) => new Promise((n, r) => {
|
|
2
|
+
var a = (d) => {
|
|
3
3
|
try {
|
|
4
4
|
c(i.next(d));
|
|
5
|
-
} catch (
|
|
6
|
-
r(
|
|
5
|
+
} catch (h) {
|
|
6
|
+
r(h);
|
|
7
7
|
}
|
|
8
8
|
}, m = (d) => {
|
|
9
9
|
try {
|
|
10
10
|
c(i.throw(d));
|
|
11
|
-
} catch (
|
|
12
|
-
r(
|
|
11
|
+
} catch (h) {
|
|
12
|
+
r(h);
|
|
13
13
|
}
|
|
14
|
-
}, c = (d) => d.done ?
|
|
14
|
+
}, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(a, m);
|
|
15
15
|
c((i = i.apply(o, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
i == null && (
|
|
17
|
+
import { $ as J, a as ee, b as te, S as ie, i as oe, s as re, f as E, c as ne, n as G, d as R, r as ae, e as T, g as K, h as p, j as P, k as s, l as L, m as w, o as I, t as k, p as se, q as le, u as de, v as ce, w as ue, x as me, y as fe, z as ve } from "./GeneralPlayerLoginForm-fh6xw16x.js";
|
|
18
|
+
function ge({ withLocale: o, translations: e }) {
|
|
19
|
+
J.subscribe((i) => {
|
|
20
|
+
i == null && (ee.set(e), J.set(o));
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
23
|
+
function W(o, e) {
|
|
24
|
+
te(o, e);
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const Q = {
|
|
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 W = {
|
|
|
130
130
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
|
-
function ge(o) {
|
|
134
|
-
re(o, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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
|
-
}
|
|
136
133
|
function pe(o) {
|
|
134
|
+
ne(o, "svelte-c25n4u", "*,*::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, #22B04E));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E))}.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, #22B04E));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));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
|
+
}
|
|
136
|
+
function ye(o) {
|
|
137
137
|
let e = (
|
|
138
138
|
/*$_*/
|
|
139
139
|
o[5]("errorTitle") + ""
|
|
@@ -142,20 +142,20 @@ function pe(o) {
|
|
|
142
142
|
c() {
|
|
143
143
|
i = k(e);
|
|
144
144
|
},
|
|
145
|
-
m(
|
|
146
|
-
P(
|
|
145
|
+
m(n, r) {
|
|
146
|
+
P(n, i, r);
|
|
147
147
|
},
|
|
148
|
-
p(
|
|
148
|
+
p(n, r) {
|
|
149
149
|
r & /*$_*/
|
|
150
150
|
32 && e !== (e = /*$_*/
|
|
151
|
-
|
|
151
|
+
n[5]("errorTitle") + "") && T(i, e);
|
|
152
152
|
},
|
|
153
|
-
d(
|
|
154
|
-
|
|
153
|
+
d(n) {
|
|
154
|
+
n && R(i);
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function he(o) {
|
|
159
159
|
let e = (
|
|
160
160
|
/*$_*/
|
|
161
161
|
o[5]("title") + ""
|
|
@@ -164,84 +164,84 @@ function ye(o) {
|
|
|
164
164
|
c() {
|
|
165
165
|
i = k(e);
|
|
166
166
|
},
|
|
167
|
-
m(
|
|
168
|
-
P(
|
|
167
|
+
m(n, r) {
|
|
168
|
+
P(n, i, r);
|
|
169
169
|
},
|
|
170
|
-
p(
|
|
170
|
+
p(n, r) {
|
|
171
171
|
r & /*$_*/
|
|
172
172
|
32 && e !== (e = /*$_*/
|
|
173
|
-
|
|
173
|
+
n[5]("title") + "") && T(i, e);
|
|
174
174
|
},
|
|
175
|
-
d(
|
|
176
|
-
|
|
175
|
+
d(n) {
|
|
176
|
+
n && R(i);
|
|
177
177
|
}
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function X(o) {
|
|
181
181
|
let e, i = (
|
|
182
182
|
/*$_*/
|
|
183
183
|
o[5]("smsCodeError") + ""
|
|
184
|
-
),
|
|
184
|
+
), n;
|
|
185
185
|
return {
|
|
186
186
|
c() {
|
|
187
|
-
e = w("p"),
|
|
187
|
+
e = w("p"), n = k(i), p(e, "class", "InvalidInput");
|
|
188
188
|
},
|
|
189
|
-
m(r,
|
|
190
|
-
P(r, e,
|
|
189
|
+
m(r, a) {
|
|
190
|
+
P(r, e, a), s(e, n);
|
|
191
191
|
},
|
|
192
|
-
p(r,
|
|
193
|
-
|
|
192
|
+
p(r, a) {
|
|
193
|
+
a & /*$_*/
|
|
194
194
|
32 && i !== (i = /*$_*/
|
|
195
|
-
r[5]("smsCodeError") + "") &&
|
|
195
|
+
r[5]("smsCodeError") + "") && T(n, i);
|
|
196
196
|
},
|
|
197
197
|
d(r) {
|
|
198
198
|
r && R(e);
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function Z(o) {
|
|
203
203
|
let e, i = (
|
|
204
204
|
/*$_*/
|
|
205
205
|
o[5]("resendMessage") + ""
|
|
206
|
-
),
|
|
206
|
+
), n;
|
|
207
207
|
return {
|
|
208
208
|
c() {
|
|
209
|
-
e = w("p"),
|
|
209
|
+
e = w("p"), n = k(i), p(e, "class", "SmsVerificationResendMessage");
|
|
210
210
|
},
|
|
211
|
-
m(r,
|
|
212
|
-
P(r, e,
|
|
211
|
+
m(r, a) {
|
|
212
|
+
P(r, e, a), s(e, n);
|
|
213
213
|
},
|
|
214
|
-
p(r,
|
|
215
|
-
|
|
214
|
+
p(r, a) {
|
|
215
|
+
a & /*$_*/
|
|
216
216
|
32 && i !== (i = /*$_*/
|
|
217
|
-
r[5]("resendMessage") + "") &&
|
|
217
|
+
r[5]("resendMessage") + "") && T(n, i);
|
|
218
218
|
},
|
|
219
219
|
d(r) {
|
|
220
220
|
r && R(e);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
}
|
|
224
|
-
function
|
|
225
|
-
let e, i,
|
|
224
|
+
function $(o) {
|
|
225
|
+
let e, i, n = (
|
|
226
226
|
/*secondsLeft*/
|
|
227
227
|
o[4] < 10 ? "0" : ""
|
|
228
|
-
), r,
|
|
228
|
+
), r, a, 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(n), a = k(
|
|
232
232
|
/*secondsLeft*/
|
|
233
233
|
o[4]
|
|
234
|
-
), m = k(")"),
|
|
234
|
+
), m = k(")"), p(e, "class", "SmsVerificationResendTimer");
|
|
235
235
|
},
|
|
236
236
|
m(c, d) {
|
|
237
|
-
P(c, e, d),
|
|
237
|
+
P(c, e, d), s(e, i), s(e, r), s(e, a), s(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 && n !== (n = /*secondsLeft*/
|
|
242
|
+
c[4] < 10 ? "0" : "") && T(r, n), d & /*secondsLeft*/
|
|
243
|
+
16 && T(
|
|
244
|
+
a,
|
|
245
245
|
/*secondsLeft*/
|
|
246
246
|
c[4]
|
|
247
247
|
);
|
|
@@ -251,43 +251,43 @@ function Z(o) {
|
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
let e, i,
|
|
254
|
+
function be(o) {
|
|
255
|
+
let e, i, n, r, a, m = (
|
|
256
256
|
/*$_*/
|
|
257
257
|
o[5]("code") + ""
|
|
258
|
-
), c, d,
|
|
258
|
+
), c, d, h, F, u, j, M, V, A, _, y = (
|
|
259
259
|
/*$_*/
|
|
260
260
|
o[5]("activate") + ""
|
|
261
|
-
), x,
|
|
261
|
+
), x, H, b, C = (
|
|
262
262
|
/*$_*/
|
|
263
263
|
o[5]("resend") + ""
|
|
264
|
-
),
|
|
265
|
-
function
|
|
264
|
+
), B, O, U, q;
|
|
265
|
+
function N(t, l) {
|
|
266
266
|
return (
|
|
267
267
|
/*isSmsValid*/
|
|
268
|
-
|
|
268
|
+
t[2] ? he : ye
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
|
-
let
|
|
272
|
-
o[2] &&
|
|
273
|
-
/*timer*/
|
|
274
|
-
o[3] && X(o)
|
|
275
|
-
), t = (
|
|
271
|
+
let z = N(o), S = z(o), f = !/*isSmsValid*/
|
|
272
|
+
o[2] && X(o), v = (
|
|
276
273
|
/*timer*/
|
|
277
274
|
o[3] && Z(o)
|
|
275
|
+
), g = (
|
|
276
|
+
/*timer*/
|
|
277
|
+
o[3] && $(o)
|
|
278
278
|
);
|
|
279
279
|
return {
|
|
280
280
|
c() {
|
|
281
|
-
e = w("div"), i = w("h3"), S.c(),
|
|
282
|
-
o[2] ? "" : "InvalidField")),
|
|
283
|
-
o[3],
|
|
281
|
+
e = w("div"), i = w("h3"), S.c(), n = I(), r = w("div"), a = w("label"), c = k(m), d = k(":"), h = w("span"), h.textContent = "*", F = I(), u = w("input"), j = I(), f && f.c(), V = I(), v && v.c(), A = I(), _ = w("button"), x = k(y), H = I(), b = w("button"), B = k(C), O = I(), g && g.c(), p(i, "class", "Title"), p(h, "class", "FormRequired"), p(a, "for", "SmsCode"), p(u, "type", "text"), p(u, "id", "SmsCode"), p(u, "inputmode", "numeric"), p(u, "pattern", "[0-9]*"), p(u, "maxlength", "6"), p(r, "class", M = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
282
|
+
o[2] ? "" : "InvalidField")), p(_, "class", "Button SmsVerificationValidate"), p(b, "class", "Button SmsVerificationResend"), b.disabled = /*timer*/
|
|
283
|
+
o[3], p(e, "class", "Container SmsVerificationContainer");
|
|
284
284
|
},
|
|
285
|
-
m(
|
|
286
|
-
P(
|
|
285
|
+
m(t, l) {
|
|
286
|
+
P(t, e, l), s(e, i), S.m(i, null), s(e, n), s(e, r), s(r, a), s(a, c), s(a, d), s(a, h), s(r, F), s(r, u), K(
|
|
287
287
|
u,
|
|
288
288
|
/*smsCode*/
|
|
289
289
|
o[1]
|
|
290
|
-
),
|
|
290
|
+
), s(r, j), f && f.m(r, null), s(e, V), v && v.m(e, null), s(e, A), s(e, _), s(_, x), s(e, H), s(e, b), s(b, B), s(b, O), g && g.m(b, null), o[20](e), U || (q = [
|
|
291
291
|
L(
|
|
292
292
|
u,
|
|
293
293
|
"input",
|
|
@@ -307,69 +307,69 @@ function he(o) {
|
|
|
307
307
|
o[6]
|
|
308
308
|
),
|
|
309
309
|
L(
|
|
310
|
-
|
|
310
|
+
b,
|
|
311
311
|
"click",
|
|
312
312
|
/*resendCode*/
|
|
313
313
|
o[7]
|
|
314
314
|
)
|
|
315
|
-
],
|
|
315
|
+
], U = !0);
|
|
316
316
|
},
|
|
317
|
-
p(
|
|
318
|
-
|
|
317
|
+
p(t, [l]) {
|
|
318
|
+
z === (z = N(t)) && S ? S.p(t, l) : (S.d(1), S = z(t), S && (S.c(), S.m(i, null))), l & /*$_*/
|
|
319
319
|
32 && m !== (m = /*$_*/
|
|
320
|
-
|
|
320
|
+
t[5]("code") + "") && T(c, m), l & /*smsCode*/
|
|
321
321
|
2 && u.value !== /*smsCode*/
|
|
322
|
-
|
|
322
|
+
t[1] && K(
|
|
323
323
|
u,
|
|
324
324
|
/*smsCode*/
|
|
325
|
-
|
|
325
|
+
t[1]
|
|
326
326
|
), /*isSmsValid*/
|
|
327
|
-
|
|
328
|
-
4 &&
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
32 &&
|
|
332
|
-
|
|
333
|
-
32 &&
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
8 && (
|
|
337
|
-
|
|
327
|
+
t[2] ? f && (f.d(1), f = null) : f ? f.p(t, l) : (f = X(t), f.c(), f.m(r, null)), l & /*isSmsValid*/
|
|
328
|
+
4 && M !== (M = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
329
|
+
t[2] ? "" : "InvalidField")) && p(r, "class", M), /*timer*/
|
|
330
|
+
t[3] ? v ? v.p(t, l) : (v = Z(t), v.c(), v.m(e, A)) : v && (v.d(1), v = null), l & /*$_*/
|
|
331
|
+
32 && y !== (y = /*$_*/
|
|
332
|
+
t[5]("activate") + "") && T(x, y), l & /*$_*/
|
|
333
|
+
32 && C !== (C = /*$_*/
|
|
334
|
+
t[5]("resend") + "") && T(B, C), /*timer*/
|
|
335
|
+
t[3] ? g ? g.p(t, l) : (g = $(t), g.c(), g.m(b, null)) : g && (g.d(1), g = null), l & /*timer*/
|
|
336
|
+
8 && (b.disabled = /*timer*/
|
|
337
|
+
t[3]);
|
|
338
338
|
},
|
|
339
|
-
i:
|
|
340
|
-
o:
|
|
341
|
-
d(
|
|
342
|
-
|
|
339
|
+
i: G,
|
|
340
|
+
o: G,
|
|
341
|
+
d(t) {
|
|
342
|
+
t && R(e), S.d(), f && f.d(), v && v.d(), g && g.d(), o[20](null), U = !1, ae(q);
|
|
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 Se(o, e, i) {
|
|
347
|
+
let n;
|
|
348
|
+
se(o, ve, (t) => i(5, n = t));
|
|
349
|
+
let { endpoint: r = "" } = e, { tokenid: a = "" } = e, { playerid: m = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: h } = e, { clientstyling: F = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, _, y, x, H = +localStorage.getItem("smsTimer") || 0, b = Date.now() / 1e3 - H, C = 60 - Math.floor(b);
|
|
350
|
+
const B = { numeric: /^[0-9]{0,6}$/ };
|
|
351
|
+
ge({ withLocale: "en", translations: {} });
|
|
352
|
+
const O = () => {
|
|
353
|
+
fetch(j).then((l) => l.json()).then((l) => {
|
|
354
|
+
Object.keys(l).forEach((Y) => {
|
|
355
|
+
W(Y, l[Y]);
|
|
356
356
|
});
|
|
357
|
-
}).catch((
|
|
358
|
-
console.log(
|
|
357
|
+
}).catch((l) => {
|
|
358
|
+
console.log(l);
|
|
359
359
|
});
|
|
360
360
|
};
|
|
361
|
-
Object.keys(
|
|
362
|
-
|
|
361
|
+
Object.keys(Q).forEach((t) => {
|
|
362
|
+
W(t, Q[t]);
|
|
363
363
|
});
|
|
364
|
-
const
|
|
364
|
+
const U = () => D(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=${a}&validationCode=${M}`, {
|
|
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, V = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
|
|
373
373
|
else
|
|
374
374
|
throw window.postMessage(
|
|
375
375
|
{
|
|
@@ -380,12 +380,12 @@ function be(o, e, i) {
|
|
|
380
380
|
}
|
|
381
381
|
},
|
|
382
382
|
window.location.href
|
|
383
|
-
), i(2,
|
|
383
|
+
), i(2, V = !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
|
+
}), q = () => D(this, null, function* () {
|
|
388
|
+
localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), z();
|
|
389
389
|
try {
|
|
390
390
|
const t = yield fetch(`${r}/v1/player/sms/token`, {
|
|
391
391
|
method: "POST",
|
|
@@ -398,84 +398,84 @@ function be(o, e, i) {
|
|
|
398
398
|
messageTemplate: c,
|
|
399
399
|
destination: d
|
|
400
400
|
})
|
|
401
|
-
}),
|
|
401
|
+
}), l = yield t.json();
|
|
402
402
|
if (t.ok)
|
|
403
|
-
i(9,
|
|
403
|
+
i(9, a = l.id), A = !1, N();
|
|
404
404
|
else
|
|
405
|
-
throw
|
|
405
|
+
throw A = !0, new Error("Failed to fetch");
|
|
406
406
|
} catch (t) {
|
|
407
|
-
|
|
407
|
+
A = !0, console.error(t);
|
|
408
408
|
}
|
|
409
|
-
}),
|
|
410
|
-
|
|
411
|
-
},
|
|
412
|
-
|
|
409
|
+
}), N = () => {
|
|
410
|
+
C > 0 ? i(4, C--, C) : (clearInterval(_), i(3, _ = !1), i(4, C = 60));
|
|
411
|
+
}, z = () => {
|
|
412
|
+
b < 60 && i(3, _ = setInterval(
|
|
413
413
|
() => {
|
|
414
|
-
|
|
414
|
+
N();
|
|
415
415
|
},
|
|
416
416
|
1e3
|
|
417
417
|
));
|
|
418
|
-
},
|
|
419
|
-
!
|
|
418
|
+
}, S = (t) => {
|
|
419
|
+
!B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
|
|
420
420
|
};
|
|
421
|
-
|
|
421
|
+
le(() => {
|
|
422
422
|
if (!m || !d) {
|
|
423
423
|
let t = JSON.parse(localStorage.getItem("playerData"));
|
|
424
424
|
i(10, m = t.playerid), i(11, d = t.number);
|
|
425
425
|
}
|
|
426
|
-
return
|
|
426
|
+
return z(), () => {
|
|
427
427
|
};
|
|
428
428
|
});
|
|
429
|
-
function
|
|
430
|
-
|
|
429
|
+
function f() {
|
|
430
|
+
M = this.value, i(1, M);
|
|
431
431
|
}
|
|
432
|
-
const v = (t) =>
|
|
432
|
+
const v = (t) => S(t);
|
|
433
433
|
function g(t) {
|
|
434
|
-
|
|
435
|
-
|
|
434
|
+
de[t ? "unshift" : "push"](() => {
|
|
435
|
+
y = t, i(0, y);
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
return o.$$set = (t) => {
|
|
439
|
-
"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, a = 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, h = t.mbsource), "clientstyling" in t && i(15, F = t.clientstyling), "clientstylingurl" in t && i(16, u = t.clientstylingurl), "translationurl" in t && i(17, j = t.translationurl);
|
|
440
440
|
}, o.$$.update = () => {
|
|
441
441
|
o.$$.dirty & /*tokenid, playerid, endpoint*/
|
|
442
442
|
5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
443
|
-
32769 &&
|
|
444
|
-
65537 && u &&
|
|
445
|
-
16385 &&
|
|
446
|
-
131072 &&
|
|
443
|
+
32769 && F && y && ce(y, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
444
|
+
65537 && u && y && ue(y, u), o.$$.dirty & /*mbsource, customStylingContainer*/
|
|
445
|
+
16385 && h && y && me(y, `${h}.Style`, x), o.$$.dirty & /*translationurl*/
|
|
446
|
+
131072 && j && O();
|
|
447
447
|
}, [
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
448
|
+
y,
|
|
449
|
+
M,
|
|
450
|
+
V,
|
|
451
451
|
_,
|
|
452
|
-
|
|
453
|
-
|
|
452
|
+
C,
|
|
453
|
+
n,
|
|
454
|
+
U,
|
|
454
455
|
q,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
s,
|
|
456
|
+
S,
|
|
457
|
+
a,
|
|
458
458
|
m,
|
|
459
459
|
d,
|
|
460
460
|
r,
|
|
461
461
|
c,
|
|
462
|
-
|
|
463
|
-
T,
|
|
464
|
-
u,
|
|
462
|
+
h,
|
|
465
463
|
F,
|
|
466
|
-
|
|
464
|
+
u,
|
|
465
|
+
j,
|
|
466
|
+
f,
|
|
467
467
|
v,
|
|
468
468
|
g
|
|
469
469
|
];
|
|
470
470
|
}
|
|
471
|
-
class
|
|
471
|
+
class ke extends ie {
|
|
472
472
|
constructor(e) {
|
|
473
|
-
super(),
|
|
473
|
+
super(), oe(
|
|
474
474
|
this,
|
|
475
475
|
e,
|
|
476
|
+
Se,
|
|
476
477
|
be,
|
|
477
|
-
|
|
478
|
-
oe,
|
|
478
|
+
re,
|
|
479
479
|
{
|
|
480
480
|
endpoint: 12,
|
|
481
481
|
tokenid: 9,
|
|
@@ -487,65 +487,65 @@ class Se extends te {
|
|
|
487
487
|
clientstylingurl: 16,
|
|
488
488
|
translationurl: 17
|
|
489
489
|
},
|
|
490
|
-
|
|
490
|
+
pe
|
|
491
491
|
);
|
|
492
492
|
}
|
|
493
493
|
get endpoint() {
|
|
494
494
|
return this.$$.ctx[12];
|
|
495
495
|
}
|
|
496
496
|
set endpoint(e) {
|
|
497
|
-
this.$$set({ endpoint: e }),
|
|
497
|
+
this.$$set({ endpoint: e }), E();
|
|
498
498
|
}
|
|
499
499
|
get tokenid() {
|
|
500
500
|
return this.$$.ctx[9];
|
|
501
501
|
}
|
|
502
502
|
set tokenid(e) {
|
|
503
|
-
this.$$set({ tokenid: e }),
|
|
503
|
+
this.$$set({ tokenid: e }), E();
|
|
504
504
|
}
|
|
505
505
|
get playerid() {
|
|
506
506
|
return this.$$.ctx[10];
|
|
507
507
|
}
|
|
508
508
|
set playerid(e) {
|
|
509
|
-
this.$$set({ playerid: e }),
|
|
509
|
+
this.$$set({ playerid: e }), E();
|
|
510
510
|
}
|
|
511
511
|
get smstemplate() {
|
|
512
512
|
return this.$$.ctx[13];
|
|
513
513
|
}
|
|
514
514
|
set smstemplate(e) {
|
|
515
|
-
this.$$set({ smstemplate: e }),
|
|
515
|
+
this.$$set({ smstemplate: e }), E();
|
|
516
516
|
}
|
|
517
517
|
get number() {
|
|
518
518
|
return this.$$.ctx[11];
|
|
519
519
|
}
|
|
520
520
|
set number(e) {
|
|
521
|
-
this.$$set({ number: e }),
|
|
521
|
+
this.$$set({ number: e }), E();
|
|
522
522
|
}
|
|
523
523
|
get mbsource() {
|
|
524
524
|
return this.$$.ctx[14];
|
|
525
525
|
}
|
|
526
526
|
set mbsource(e) {
|
|
527
|
-
this.$$set({ mbsource: e }),
|
|
527
|
+
this.$$set({ mbsource: e }), E();
|
|
528
528
|
}
|
|
529
529
|
get clientstyling() {
|
|
530
530
|
return this.$$.ctx[15];
|
|
531
531
|
}
|
|
532
532
|
set clientstyling(e) {
|
|
533
|
-
this.$$set({ clientstyling: e }),
|
|
533
|
+
this.$$set({ clientstyling: e }), E();
|
|
534
534
|
}
|
|
535
535
|
get clientstylingurl() {
|
|
536
536
|
return this.$$.ctx[16];
|
|
537
537
|
}
|
|
538
538
|
set clientstylingurl(e) {
|
|
539
|
-
this.$$set({ clientstylingurl: e }),
|
|
539
|
+
this.$$set({ clientstylingurl: e }), E();
|
|
540
540
|
}
|
|
541
541
|
get translationurl() {
|
|
542
542
|
return this.$$.ctx[17];
|
|
543
543
|
}
|
|
544
544
|
set translationurl(e) {
|
|
545
|
-
this.$$set({ translationurl: e }),
|
|
545
|
+
this.$$set({ translationurl: e }), E();
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
fe(ke, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
549
549
|
export {
|
|
550
|
-
|
|
550
|
+
ke as default
|
|
551
551
|
};
|