@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.
@@ -1,29 +1,29 @@
1
- var Y = (o, e, i) => new Promise((n, r) => {
2
- var a = (d) => {
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 (y) {
6
- r(y);
5
+ } catch (b) {
6
+ r(b);
7
7
  }
8
8
  }, m = (d) => {
9
9
  try {
10
10
  c(i.throw(d));
11
- } catch (y) {
12
- r(y);
11
+ } catch (b) {
12
+ r(b);
13
13
  }
14
- }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(a, m);
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 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 H, r as ae, e as C, g as K, h as p, j as N, k as l, l as q, m as w, o as z, t as k, p as se, q as le, u as de, v as ce, w as ue } from "./GeneralPlayerLoginForm-CvvPuW0t.js";
18
- function me({ withLocale: o, translations: e }) {
19
- J.subscribe((i) => {
20
- i == null && (ee.set(e), J.set(o));
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 W(o, e) {
24
- te(o, e);
23
+ function K(o, e) {
24
+ ee(o, e);
25
25
  }
26
- const Q = {
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 fe(o) {
134
- ne(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))}");
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 ve(o) {
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(n, r) {
146
- N(n, i, r);
145
+ m(a, r) {
146
+ P(a, i, r);
147
147
  },
148
- p(n, r) {
148
+ p(a, r) {
149
149
  r & /*$_*/
150
150
  32 && e !== (e = /*$_*/
151
- n[5]("errorTitle") + "") && C(i, e);
151
+ a[5]("errorTitle") + "") && T(i, e);
152
152
  },
153
- d(n) {
154
- n && H(i);
153
+ d(a) {
154
+ a && R(i);
155
155
  }
156
156
  };
157
157
  }
158
- function ge(o) {
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(n, r) {
168
- N(n, i, r);
167
+ m(a, r) {
168
+ P(a, i, r);
169
169
  },
170
- p(n, r) {
170
+ p(a, r) {
171
171
  r & /*$_*/
172
172
  32 && e !== (e = /*$_*/
173
- n[5]("title") + "") && C(i, e);
173
+ a[5]("title") + "") && T(i, e);
174
174
  },
175
- d(n) {
176
- n && H(i);
175
+ d(a) {
176
+ a && R(i);
177
177
  }
178
178
  };
179
179
  }
180
- function X(o) {
180
+ function Q(o) {
181
181
  let e, i = (
182
182
  /*$_*/
183
183
  o[5]("smsCodeError") + ""
184
- ), n;
184
+ ), a;
185
185
  return {
186
186
  c() {
187
- e = w("p"), n = k(i), p(e, "class", "InvalidInput");
187
+ e = w("p"), a = k(i), y(e, "class", "InvalidInput");
188
188
  },
189
- m(r, a) {
190
- N(r, e, a), l(e, n);
189
+ m(r, s) {
190
+ P(r, e, s), l(e, a);
191
191
  },
192
- p(r, a) {
193
- a & /*$_*/
192
+ p(r, s) {
193
+ s & /*$_*/
194
194
  32 && i !== (i = /*$_*/
195
- r[5]("smsCodeError") + "") && C(n, i);
195
+ r[5]("smsCodeError") + "") && T(a, i);
196
196
  },
197
197
  d(r) {
198
- r && H(e);
198
+ r && R(e);
199
199
  }
200
200
  };
201
201
  }
202
- function Z(o) {
202
+ function X(o) {
203
203
  let e, i = (
204
204
  /*$_*/
205
205
  o[5]("resendMessage") + ""
206
- ), n;
206
+ ), a;
207
207
  return {
208
208
  c() {
209
- e = w("p"), n = k(i), p(e, "class", "SmsVerificationResendMessage");
209
+ e = w("p"), a = k(i), y(e, "class", "SmsVerificationResendMessage");
210
210
  },
211
- m(r, a) {
212
- N(r, e, a), l(e, n);
211
+ m(r, s) {
212
+ P(r, e, s), l(e, a);
213
213
  },
214
- p(r, a) {
215
- a & /*$_*/
214
+ p(r, s) {
215
+ s & /*$_*/
216
216
  32 && i !== (i = /*$_*/
217
- r[5]("resendMessage") + "") && C(n, i);
217
+ r[5]("resendMessage") + "") && T(a, i);
218
218
  },
219
219
  d(r) {
220
- r && H(e);
220
+ r && R(e);
221
221
  }
222
222
  };
223
223
  }
224
- function $(o) {
225
- let e, i, n = (
224
+ function Z(o) {
225
+ let e, i, a = (
226
226
  /*secondsLeft*/
227
227
  o[4] < 10 ? "0" : ""
228
- ), r, a, m;
228
+ ), r, s, m;
229
229
  return {
230
230
  c() {
231
- e = w("span"), i = k("(0:"), r = k(n), a = k(
231
+ e = w("span"), i = k("(0:"), r = k(a), s = k(
232
232
  /*secondsLeft*/
233
233
  o[4]
234
- ), m = k(")"), p(e, "class", "SmsVerificationResendTimer");
234
+ ), m = k(")"), y(e, "class", "SmsVerificationResendTimer");
235
235
  },
236
236
  m(c, d) {
237
- N(c, e, d), l(e, i), l(e, r), l(e, a), l(e, m);
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 && n !== (n = /*secondsLeft*/
242
- c[4] < 10 ? "0" : "") && C(r, n), d & /*secondsLeft*/
243
- 16 && C(
244
- a,
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 && H(e);
250
+ c && R(e);
251
251
  }
252
252
  };
253
253
  }
254
- function pe(o) {
255
- let e, i, n, r, a, m = (
254
+ function he(o) {
255
+ let e, i, a, r, s, m = (
256
256
  /*$_*/
257
257
  o[5]("code") + ""
258
- ), c, d, y, F, u, j, _, I, M, h, R = (
258
+ ), c, d, b, E, u, F, _, I, j, C, h = (
259
259
  /*$_*/
260
260
  o[5]("activate") + ""
261
- ), V, T, S, P = (
261
+ ), x, U, f, V = (
262
262
  /*$_*/
263
263
  o[5]("resend") + ""
264
- ), D, L, U, B;
265
- function O(t, s) {
264
+ ), N, O, D, H;
265
+ function B(n, p) {
266
266
  return (
267
267
  /*isSmsValid*/
268
- t[2] ? ge : ve
268
+ n[2] ? ye : pe
269
269
  );
270
270
  }
271
- let A = O(o), b = A(o), f = !/*isSmsValid*/
272
- o[2] && X(o), v = (
271
+ let A = B(o), S = A(o), v = !/*isSmsValid*/
272
+ o[2] && Q(o), g = (
273
273
  /*timer*/
274
- o[3] && Z(o)
275
- ), g = (
274
+ o[3] && X(o)
275
+ ), t = (
276
276
  /*timer*/
277
- o[3] && $(o)
277
+ o[3] && Z(o)
278
278
  );
279
279
  return {
280
280
  c() {
281
- e = w("div"), i = w("h3"), b.c(), n = z(), r = w("div"), a = w("label"), c = k(m), d = k(":"), y = w("span"), y.textContent = "*", F = z(), u = w("input"), j = z(), f && f.c(), I = z(), v && v.c(), M = z(), h = w("button"), V = k(R), T = z(), S = w("button"), D = k(P), L = z(), g && g.c(), p(i, "class", "Title"), p(y, "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", _ = "Field SmsVerificationField " + (/*isSmsValid*/
282
- o[2] ? "" : "InvalidField")), p(h, "class", "Button SmsVerificationValidate"), p(S, "class", "Button SmsVerificationResend"), S.disabled = /*timer*/
283
- o[3], p(e, "class", "Container SmsVerificationContainer");
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(t, s) {
286
- N(t, e, s), l(e, i), b.m(i, null), l(e, n), l(e, r), l(r, a), l(a, c), l(a, d), l(a, y), l(r, F), l(r, u), K(
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, j), f && f.m(r, null), l(e, I), v && v.m(e, null), l(e, M), l(e, h), l(h, V), l(e, T), l(e, S), l(S, D), l(S, L), g && g.m(S, null), o[19](e), U || (B = [
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[17]
295
+ o[18]
296
296
  ),
297
297
  q(
298
298
  u,
299
299
  "keydown",
300
300
  /*keydown_handler*/
301
- o[18]
301
+ o[19]
302
302
  ),
303
303
  q(
304
- h,
304
+ C,
305
305
  "click",
306
306
  /*activateUser*/
307
307
  o[6]
308
308
  ),
309
309
  q(
310
- S,
310
+ f,
311
311
  "click",
312
312
  /*resendCode*/
313
313
  o[7]
314
314
  )
315
- ], U = !0);
315
+ ], D = !0);
316
316
  },
317
- p(t, [s]) {
318
- A === (A = O(t)) && b ? b.p(t, s) : (b.d(1), b = A(t), b && (b.c(), b.m(i, null))), s & /*$_*/
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
- t[5]("code") + "") && C(c, m), s & /*smsCode*/
320
+ n[5]("code") + "") && T(c, m), p & /*smsCode*/
321
321
  2 && u.value !== /*smsCode*/
322
- t[1] && K(
322
+ n[1] && G(
323
323
  u,
324
324
  /*smsCode*/
325
- t[1]
325
+ n[1]
326
326
  ), /*isSmsValid*/
327
- t[2] ? f && (f.d(1), f = null) : f ? f.p(t, s) : (f = X(t), f.c(), f.m(r, null)), s & /*isSmsValid*/
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
- t[2] ? "" : "InvalidField")) && p(r, "class", _), /*timer*/
330
- t[3] ? v ? v.p(t, s) : (v = Z(t), v.c(), v.m(e, M)) : v && (v.d(1), v = null), s & /*$_*/
331
- 32 && R !== (R = /*$_*/
332
- t[5]("activate") + "") && C(V, R), s & /*$_*/
333
- 32 && P !== (P = /*$_*/
334
- t[5]("resend") + "") && C(D, P), /*timer*/
335
- t[3] ? g ? g.p(t, s) : (g = $(t), g.c(), g.m(S, null)) : g && (g.d(1), g = null), s & /*timer*/
336
- 8 && (S.disabled = /*timer*/
337
- t[3]);
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: G,
340
- o: G,
341
- d(t) {
342
- t && H(e), b.d(), f && f.d(), v && v.d(), g && g.d(), o[19](null), U = !1, ae(B);
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 ye(o, e, i) {
347
- let n;
348
- se(o, ue, (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, { clientstyling: y = "" } = e, { clientstylingurl: F = "" } = e, { translationurl: u = "" } = e, j, _ = !0, I = !1, M, h, R = +localStorage.getItem("smsTimer") || 0, V = Date.now() / 1e3 - R, T = 60 - Math.floor(V);
350
- const S = { numeric: /^[0-9]{0,6}$/ };
351
- me({ withLocale: "en", translations: {} });
352
- const P = () => {
353
- fetch(u).then((s) => s.json()).then((s) => {
354
- Object.keys(s).forEach((x) => {
355
- W(x, s[x]);
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((s) => {
358
- console.log(s);
357
+ }).catch((n) => {
358
+ console.log(n);
359
359
  });
360
360
  };
361
- Object.keys(Q).forEach((t) => {
362
- W(t, Q[t]);
361
+ Object.keys(W).forEach((t) => {
362
+ K(t, W[t]);
363
363
  });
364
- const D = () => Y(this, null, function* () {
364
+ const O = () => L(this, null, function* () {
365
365
  try {
366
- if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${a}&validationCode=${j}`, {
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, _ = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
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, _ = !1), new Error("Could not activate user");
383
+ ), i(2, I = !1), new Error("Could not activate user");
384
384
  } catch (t) {
385
385
  console.log(t);
386
386
  }
387
- }), L = () => Y(this, null, function* () {
388
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), A();
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
- }), s = yield t.json();
401
+ }), n = yield t.json();
402
402
  if (t.ok)
403
- i(9, a = s.id), I = !1, U();
403
+ i(9, s = n.id), j = !1, H();
404
404
  else
405
- throw I = !0, new Error("Failed to fetch");
405
+ throw j = !0, new Error("Failed to fetch");
406
406
  } catch (t) {
407
- I = !0, console.error(t);
407
+ j = !0, console.error(t);
408
408
  }
409
- }), U = () => {
410
- T > 0 ? i(4, T--, T) : (clearInterval(M), i(3, M = !1), i(4, T = 60));
409
+ }), H = () => {
410
+ f > 0 ? i(4, f--, f) : (clearInterval(C), i(3, C = !1), i(4, f = 60));
411
411
  }, B = () => {
412
- let t = document.createElement("style");
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
- U();
414
+ H();
432
415
  },
433
416
  1e3
434
417
  ));
435
- }, b = (t) => {
436
- !S.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
418
+ }, A = (t) => {
419
+ !V.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
437
420
  };
438
- le(() => {
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
- A();
426
+ return B(), () => {
427
+ };
444
428
  });
445
- function f() {
446
- j = this.value, i(1, j);
429
+ function S() {
430
+ _ = this.value, i(1, _);
447
431
  }
448
- const v = (t) => b(t);
432
+ const v = (t) => A(t);
449
433
  function g(t) {
450
- de[t ? "unshift" : "push"](() => {
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, 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), "clientstyling" in t && i(14, y = t.clientstyling), "clientstylingurl" in t && i(15, F = t.clientstylingurl), "translationurl" in t && i(16, u = t.translationurl);
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
- 16385 && y && h && B(), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
460
- 32769 && F && h && O(), o.$$.dirty & /*translationurl*/
461
- 65536 && u && P();
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
- M,
467
- T,
468
- n,
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
- y,
478
- F,
462
+ b,
463
+ E,
479
464
  u,
480
- f,
465
+ F,
466
+ S,
481
467
  v,
482
468
  g
483
469
  ];
484
470
  }
485
- class he extends ie {
471
+ class Se extends te {
486
472
  constructor(e) {
487
- super(), oe(
473
+ super(), ie(
488
474
  this,
489
475
  e,
490
- ye,
491
- pe,
492
- re,
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
- clientstyling: 14,
500
- clientstylingurl: 15,
501
- translationurl: 16
485
+ mbsource: 14,
486
+ clientstyling: 15,
487
+ clientstylingurl: 16,
488
+ translationurl: 17
502
489
  },
503
- fe
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 }), 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 }), 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 }), 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 }), 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 }), E();
521
+ this.$$set({ number: e }), M();
535
522
  }
536
- get clientstyling() {
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 }), E();
533
+ this.$$set({ clientstyling: e }), M();
541
534
  }
542
535
  get clientstylingurl() {
543
- return this.$$.ctx[15];
536
+ return this.$$.ctx[16];
544
537
  }
545
538
  set clientstylingurl(e) {
546
- this.$$set({ clientstylingurl: e }), E();
539
+ this.$$set({ clientstylingurl: e }), M();
547
540
  }
548
541
  get translationurl() {
549
- return this.$$.ctx[16];
542
+ return this.$$.ctx[17];
550
543
  }
551
544
  set translationurl(e) {
552
- this.$$set({ translationurl: e }), E();
545
+ this.$$set({ translationurl: e }), M();
553
546
  }
554
547
  }
555
- ce(he, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
548
+ me(Se, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
556
549
  export {
557
- he as default
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-BSYjhcAL.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}
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-CvvPuW0t.js").then((e) => e.G).then(({ default: e }) => {
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
  }