@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.
@@ -1,13 +1,13 @@
1
- import { $ as Y, a as $, b as ee, S as te, i as ie, f as E, c as oe, s as re, d as ne, e as k, g as z, t as S, h as f, j as H, k as s, l as J, m as q, n as C, o as G, p as N, r as ae, q as se, u as le, v as de, w as ce } from "./GeneralPlayerLoginForm-DjD9wSdK.js";
2
- function ue({ withLocale: o, translations: e }) {
3
- Y.subscribe((i) => {
4
- i == null && ($.set(e), Y.set(o));
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 K(o, e) {
8
- ee(o, e);
7
+ function G(o, e) {
8
+ $(o, e);
9
9
  }
10
- const W = {
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 me(o) {
118
- 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))}");
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 fe(o) {
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(n, r) {
130
- H(n, i, r);
129
+ m(a, r) {
130
+ P(a, i, r);
131
131
  },
132
- p(n, r) {
132
+ p(a, r) {
133
133
  r & /*$_*/
134
134
  32 && e !== (e = /*$_*/
135
- n[5]("errorTitle") + "") && C(i, e);
135
+ a[5]("errorTitle") + "") && T(i, e);
136
136
  },
137
- d(n) {
138
- n && N(i);
137
+ d(a) {
138
+ a && R(i);
139
139
  }
140
140
  };
141
141
  }
142
- function ve(o) {
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(n, r) {
152
- H(n, i, r);
151
+ m(a, r) {
152
+ P(a, i, r);
153
153
  },
154
- p(n, r) {
154
+ p(a, r) {
155
155
  r & /*$_*/
156
156
  32 && e !== (e = /*$_*/
157
- n[5]("title") + "") && C(i, e);
157
+ a[5]("title") + "") && T(i, e);
158
158
  },
159
- d(n) {
160
- n && N(i);
159
+ d(a) {
160
+ a && R(i);
161
161
  }
162
162
  };
163
163
  }
164
- function Q(o) {
164
+ function W(o) {
165
165
  let e, i = (
166
166
  /*$_*/
167
167
  o[5]("smsCodeError") + ""
168
- ), n;
168
+ ), a;
169
169
  return {
170
170
  c() {
171
- e = k("p"), n = S(i), f(e, "class", "InvalidInput");
171
+ e = k("p"), a = S(i), v(e, "class", "InvalidInput");
172
172
  },
173
173
  m(r, l) {
174
- H(r, e, l), s(e, n);
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") + "") && C(n, i);
179
+ r[5]("smsCodeError") + "") && T(a, i);
180
180
  },
181
181
  d(r) {
182
- r && N(e);
182
+ r && R(e);
183
183
  }
184
184
  };
185
185
  }
186
- function X(o) {
186
+ function Q(o) {
187
187
  let e, i = (
188
188
  /*$_*/
189
189
  o[5]("resendMessage") + ""
190
- ), n;
190
+ ), a;
191
191
  return {
192
192
  c() {
193
- e = k("p"), n = S(i), f(e, "class", "SmsVerificationResendMessage");
193
+ e = k("p"), a = S(i), v(e, "class", "SmsVerificationResendMessage");
194
194
  },
195
195
  m(r, l) {
196
- H(r, e, l), s(e, n);
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") + "") && C(n, i);
201
+ r[5]("resendMessage") + "") && T(a, i);
202
202
  },
203
203
  d(r) {
204
- r && N(e);
204
+ r && R(e);
205
205
  }
206
206
  };
207
207
  }
208
- function Z(o) {
209
- let e, i, n = (
208
+ function X(o) {
209
+ let e, i, a = (
210
210
  /*secondsLeft*/
211
211
  o[4] < 10 ? "0" : ""
212
- ), r, l, v;
212
+ ), r, l, g;
213
213
  return {
214
214
  c() {
215
- e = k("span"), i = S("(0:"), r = S(n), l = S(
215
+ e = k("span"), i = S("(0:"), r = S(a), l = S(
216
216
  /*secondsLeft*/
217
217
  o[4]
218
- ), v = S(")"), f(e, "class", "SmsVerificationResendTimer");
218
+ ), g = S(")"), v(e, "class", "SmsVerificationResendTimer");
219
219
  },
220
- m(g, p) {
221
- H(g, e, p), s(e, i), s(e, r), s(e, l), s(e, v);
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(g, p) {
224
- p & /*secondsLeft*/
225
- 16 && n !== (n = /*secondsLeft*/
226
- g[4] < 10 ? "0" : "") && C(r, n), p & /*secondsLeft*/
227
- 16 && C(
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
- g[4]
230
+ p[4]
231
231
  );
232
232
  },
233
- d(g) {
234
- g && N(e);
233
+ d(p) {
234
+ p && R(e);
235
235
  }
236
236
  };
237
237
  }
238
- function ge(o) {
239
- let e, i, n, r, l, v = (
238
+ function ye(o) {
239
+ let e, i, a, r, l, g = (
240
240
  /*$_*/
241
241
  o[5]("code") + ""
242
- ), g, p, w, F, d, j, _, I, M, y, R = (
242
+ ), p, h, C, E, d, F, _, I, j, w, y = (
243
243
  /*$_*/
244
244
  o[5]("activate") + ""
245
- ), V, T, b, P = (
245
+ ), x, U, c, V = (
246
246
  /*$_*/
247
247
  o[5]("resend") + ""
248
- ), D, L, U, B;
249
- function O(t, a) {
248
+ ), N, O, D, H;
249
+ function B(n, f) {
250
250
  return (
251
251
  /*isSmsValid*/
252
- t[2] ? ve : fe
252
+ n[2] ? pe : ge
253
253
  );
254
254
  }
255
- let A = O(o), h = A(o), c = !/*isSmsValid*/
256
- o[2] && Q(o), u = (
255
+ let A = B(o), b = A(o), u = !/*isSmsValid*/
256
+ o[2] && W(o), m = (
257
257
  /*timer*/
258
- o[3] && X(o)
259
- ), m = (
258
+ o[3] && Q(o)
259
+ ), t = (
260
260
  /*timer*/
261
- o[3] && Z(o)
261
+ o[3] && X(o)
262
262
  );
263
263
  return {
264
264
  c() {
265
- e = k("div"), i = k("h3"), h.c(), n = z(), r = k("div"), l = k("label"), g = S(v), p = S(":"), w = k("span"), w.textContent = "*", F = z(), d = k("input"), j = z(), c && c.c(), I = z(), u && u.c(), M = z(), y = k("button"), V = S(R), T = z(), b = k("button"), D = S(P), L = z(), m && m.c(), f(i, "class", "Title"), f(w, "class", "FormRequired"), f(l, "for", "SmsCode"), f(d, "type", "text"), f(d, "id", "SmsCode"), f(d, "inputmode", "numeric"), f(d, "pattern", "[0-9]*"), f(d, "maxlength", "6"), f(r, "class", _ = "Field SmsVerificationField " + (/*isSmsValid*/
266
- o[2] ? "" : "InvalidField")), f(y, "class", "Button SmsVerificationValidate"), f(b, "class", "Button SmsVerificationResend"), b.disabled = /*timer*/
267
- o[3], f(e, "class", "Container SmsVerificationContainer");
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(t, a) {
270
- H(t, e, a), s(e, i), h.m(i, null), s(e, n), s(e, r), s(r, l), s(l, g), s(l, p), s(l, w), s(r, F), s(r, d), J(
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, j), c && c.m(r, null), s(e, I), u && u.m(e, null), s(e, M), s(e, y), s(y, V), s(e, T), s(e, b), s(b, D), s(b, L), m && m.m(b, null), o[19](e), U || (B = [
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[17]
279
+ o[18]
280
280
  ),
281
281
  q(
282
282
  d,
283
283
  "keydown",
284
284
  /*keydown_handler*/
285
- o[18]
285
+ o[19]
286
286
  ),
287
287
  q(
288
- y,
288
+ w,
289
289
  "click",
290
290
  /*activateUser*/
291
291
  o[6]
292
292
  ),
293
293
  q(
294
- b,
294
+ c,
295
295
  "click",
296
296
  /*resendCode*/
297
297
  o[7]
298
298
  )
299
- ], U = !0);
299
+ ], D = !0);
300
300
  },
301
- p(t, [a]) {
302
- A === (A = O(t)) && h ? h.p(t, a) : (h.d(1), h = A(t), h && (h.c(), h.m(i, null))), a & /*$_*/
303
- 32 && v !== (v = /*$_*/
304
- t[5]("code") + "") && C(g, v), a & /*smsCode*/
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
- t[1] && J(
306
+ n[1] && J(
307
307
  d,
308
308
  /*smsCode*/
309
- t[1]
309
+ n[1]
310
310
  ), /*isSmsValid*/
311
- t[2] ? c && (c.d(1), c = null) : c ? c.p(t, a) : (c = Q(t), c.c(), c.m(r, null)), a & /*isSmsValid*/
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
- t[2] ? "" : "InvalidField")) && f(r, "class", _), /*timer*/
314
- t[3] ? u ? u.p(t, a) : (u = X(t), u.c(), u.m(e, M)) : u && (u.d(1), u = null), a & /*$_*/
315
- 32 && R !== (R = /*$_*/
316
- t[5]("activate") + "") && C(V, R), a & /*$_*/
317
- 32 && P !== (P = /*$_*/
318
- t[5]("resend") + "") && C(D, P), /*timer*/
319
- t[3] ? m ? m.p(t, a) : (m = Z(t), m.c(), m.m(b, null)) : m && (m.d(1), m = null), a & /*timer*/
320
- 8 && (b.disabled = /*timer*/
321
- t[3]);
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: G,
324
- o: G,
325
- d(t) {
326
- t && N(e), h.d(), c && c.d(), u && u.d(), m && m.d(), o[19](null), U = !1, ae(B);
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 pe(o, e, i) {
331
- let n;
332
- se(o, ce, (t) => i(5, n = t));
333
- let { endpoint: r = "" } = e, { tokenid: l = "" } = e, { playerid: v = "" } = e, { smstemplate: g = "Please use this code {0} to activate your accout" } = e, { number: p = "" } = e, { clientstyling: w = "" } = e, { clientstylingurl: F = "" } = e, { translationurl: d = "" } = e, j, _ = !0, I = !1, M, y, R = +localStorage.getItem("smsTimer") || 0, V = Date.now() / 1e3 - R, T = 60 - Math.floor(V);
334
- const b = { numeric: /^[0-9]{0,6}$/ };
335
- ue({ withLocale: "en", translations: {} });
336
- const P = () => {
337
- fetch(d).then((a) => a.json()).then((a) => {
338
- Object.keys(a).forEach((x) => {
339
- K(x, a[x]);
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((a) => {
342
- console.log(a);
341
+ }).catch((n) => {
342
+ console.log(n);
343
343
  });
344
344
  };
345
- Object.keys(W).forEach((t) => {
346
- K(t, W[t]);
345
+ Object.keys(K).forEach((t) => {
346
+ G(t, K[t]);
347
347
  });
348
- const D = async () => {
348
+ const O = async () => {
349
349
  try {
350
- if ((await fetch(`${r}/v1/player/${v}/activateSMS?tokenId=${l}&validationCode=${j}`, {
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, _ = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
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, _ = !1), new Error("Could not activate user");
367
+ ), i(2, I = !1), new Error("Could not activate user");
368
368
  } catch (t) {
369
369
  console.log(t);
370
370
  }
371
- }, L = async () => {
372
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), A();
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: v,
382
- messageTemplate: g,
383
- destination: p
381
+ userId: g,
382
+ messageTemplate: p,
383
+ destination: h
384
384
  })
385
- }), a = await t.json();
385
+ }), n = await t.json();
386
386
  if (t.ok)
387
- i(9, l = a.id), I = !1, U();
387
+ i(9, l = n.id), j = !1, H();
388
388
  else
389
- throw I = !0, new Error("Failed to fetch");
389
+ throw j = !0, new Error("Failed to fetch");
390
390
  } catch (t) {
391
- I = !0, console.error(t);
391
+ j = !0, console.error(t);
392
392
  }
393
- }, U = () => {
394
- T > 0 ? i(4, T--, T) : (clearInterval(M), i(3, M = !1), i(4, T = 60));
393
+ }, H = () => {
394
+ c > 0 ? i(4, c--, c) : (clearInterval(w), i(3, w = !1), i(4, c = 60));
395
395
  }, B = () => {
396
- let t = document.createElement("style");
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
- U();
398
+ H();
416
399
  },
417
400
  1e3
418
401
  ));
419
- }, h = (t) => {
420
- !b.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
402
+ }, A = (t) => {
403
+ !V.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
421
404
  };
422
- le(() => {
423
- if (!v || !p) {
405
+ se(() => {
406
+ if (!g || !h) {
424
407
  let t = JSON.parse(localStorage.getItem("playerData"));
425
- i(10, v = t.playerid), i(11, p = t.number);
408
+ i(10, g = t.playerid), i(11, h = t.number);
426
409
  }
427
- A();
410
+ return B(), () => {
411
+ };
428
412
  });
429
- function c() {
430
- j = this.value, i(1, j);
413
+ function b() {
414
+ _ = this.value, i(1, _);
431
415
  }
432
- const u = (t) => h(t);
416
+ const u = (t) => A(t);
433
417
  function m(t) {
434
- de[t ? "unshift" : "push"](() => {
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, v = t.playerid), "smstemplate" in t && i(13, g = t.smstemplate), "number" in t && i(11, p = t.number), "clientstyling" in t && i(14, w = t.clientstyling), "clientstylingurl" in t && i(15, F = t.clientstylingurl), "translationurl" in t && i(16, d = t.translationurl);
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
- 16385 && w && y && B(), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
444
- 32769 && F && y && O(), o.$$.dirty & /*translationurl*/
445
- 65536 && d && P();
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
- M,
451
- T,
452
- n,
434
+ I,
435
+ w,
436
+ c,
437
+ a,
438
+ O,
453
439
  D,
454
- L,
455
- h,
440
+ A,
456
441
  l,
457
- v,
458
- p,
459
- r,
460
442
  g,
461
- w,
462
- F,
443
+ h,
444
+ r,
445
+ p,
446
+ C,
447
+ E,
463
448
  d,
464
- c,
449
+ F,
450
+ b,
465
451
  u,
466
452
  m
467
453
  ];
468
454
  }
469
- class ye extends te {
455
+ class be extends ee {
470
456
  constructor(e) {
471
- super(), ie(
457
+ super(), te(
472
458
  this,
473
459
  e,
474
- pe,
475
- ge,
476
- re,
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
- clientstyling: 14,
484
- clientstylingurl: 15,
485
- translationurl: 16
469
+ mbsource: 14,
470
+ clientstyling: 15,
471
+ clientstylingurl: 16,
472
+ translationurl: 17
486
473
  },
487
- me
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 }), 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 }), 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 }), 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 }), 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 }), E();
505
+ this.$$set({ number: e }), M();
519
506
  }
520
- get clientstyling() {
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 }), E();
517
+ this.$$set({ clientstyling: e }), M();
525
518
  }
526
519
  get clientstylingurl() {
527
- return this.$$.ctx[15];
520
+ return this.$$.ctx[16];
528
521
  }
529
522
  set clientstylingurl(e) {
530
- this.$$set({ clientstylingurl: e }), E();
523
+ this.$$set({ clientstylingurl: e }), M();
531
524
  }
532
525
  get translationurl() {
533
- return this.$$.ctx[16];
526
+ return this.$$.ctx[17];
534
527
  }
535
528
  set translationurl(e) {
536
- this.$$set({ translationurl: e }), E();
529
+ this.$$set({ translationurl: e }), M();
537
530
  }
538
531
  }
539
- oe(ye, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
532
+ oe(be, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
540
533
  export {
541
- ye as default
534
+ be as default
542
535
  };