@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.
@@ -1,13 +1,13 @@
1
- import { $ as D, 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 E, h as J, j as v, k as P, l as s, m as L, 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-Btnp3D-4.js";
2
- function fe({ withLocale: o, translations: e }) {
3
- D.subscribe((i) => {
4
- i == null && (Z.set(e), D.set(o));
1
+ import { $ as Y, a as $, b as ee, S as te, i as ie, f as E, s as oe, c as re, d as ne, n as J, e as R, r as ae, g as T, h as G, j as f, k as P, l as a, m as L, o as k, p as I, t as S, q as se, u as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerLoginForm-CwQxbAh_.js";
2
+ function ve({ withLocale: o, translations: e }) {
3
+ Y.subscribe((i) => {
4
+ i == null && ($.set(e), Y.set(o));
5
5
  });
6
6
  }
7
- function G(o, e) {
8
- $(o, e);
7
+ function K(o, e) {
8
+ ee(o, e);
9
9
  }
10
- const K = {
10
+ const W = {
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 K = {
114
114
  loginSMSHint: "A new verification code has been sent to your phone number"
115
115
  }
116
116
  };
117
- function ve(o) {
118
- 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))}");
119
- }
120
117
  function ge(o) {
118
+ 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))}");
119
+ }
120
+ function pe(o) {
121
121
  let e = (
122
122
  /*$_*/
123
123
  o[5]("errorTitle") + ""
@@ -126,20 +126,20 @@ function ge(o) {
126
126
  c() {
127
127
  i = S(e);
128
128
  },
129
- m(a, r) {
130
- P(a, i, r);
129
+ m(n, r) {
130
+ P(n, i, r);
131
131
  },
132
- p(a, r) {
132
+ p(n, r) {
133
133
  r & /*$_*/
134
134
  32 && e !== (e = /*$_*/
135
- a[5]("errorTitle") + "") && E(i, e);
135
+ n[5]("errorTitle") + "") && T(i, e);
136
136
  },
137
- d(a) {
138
- a && R(i);
137
+ d(n) {
138
+ n && R(i);
139
139
  }
140
140
  };
141
141
  }
142
- function pe(o) {
142
+ function ye(o) {
143
143
  let e = (
144
144
  /*$_*/
145
145
  o[5]("title") + ""
@@ -148,130 +148,130 @@ function pe(o) {
148
148
  c() {
149
149
  i = S(e);
150
150
  },
151
- m(a, r) {
152
- P(a, i, r);
151
+ m(n, r) {
152
+ P(n, i, r);
153
153
  },
154
- p(a, r) {
154
+ p(n, r) {
155
155
  r & /*$_*/
156
156
  32 && e !== (e = /*$_*/
157
- a[5]("title") + "") && E(i, e);
157
+ n[5]("title") + "") && T(i, e);
158
158
  },
159
- d(a) {
160
- a && R(i);
159
+ d(n) {
160
+ n && R(i);
161
161
  }
162
162
  };
163
163
  }
164
- function W(o) {
164
+ function Q(o) {
165
165
  let e, i = (
166
166
  /*$_*/
167
167
  o[5]("smsCodeError") + ""
168
- ), a;
168
+ ), n;
169
169
  return {
170
170
  c() {
171
- e = k("p"), a = S(i), v(e, "class", "InvalidInput");
171
+ e = k("p"), n = S(i), f(e, "class", "InvalidInput");
172
172
  },
173
- m(r, l) {
174
- P(r, e, l), s(e, a);
173
+ m(r, s) {
174
+ P(r, e, s), a(e, n);
175
175
  },
176
- p(r, l) {
177
- l & /*$_*/
176
+ p(r, s) {
177
+ s & /*$_*/
178
178
  32 && i !== (i = /*$_*/
179
- r[5]("smsCodeError") + "") && E(a, i);
179
+ r[5]("smsCodeError") + "") && T(n, i);
180
180
  },
181
181
  d(r) {
182
182
  r && R(e);
183
183
  }
184
184
  };
185
185
  }
186
- function Q(o) {
186
+ function X(o) {
187
187
  let e, i = (
188
188
  /*$_*/
189
189
  o[5]("resendMessage") + ""
190
- ), a;
190
+ ), n;
191
191
  return {
192
192
  c() {
193
- e = k("p"), a = S(i), v(e, "class", "SmsVerificationResendMessage");
193
+ e = k("p"), n = S(i), f(e, "class", "SmsVerificationResendMessage");
194
194
  },
195
- m(r, l) {
196
- P(r, e, l), s(e, a);
195
+ m(r, s) {
196
+ P(r, e, s), a(e, n);
197
197
  },
198
- p(r, l) {
199
- l & /*$_*/
198
+ p(r, s) {
199
+ s & /*$_*/
200
200
  32 && i !== (i = /*$_*/
201
- r[5]("resendMessage") + "") && E(a, i);
201
+ r[5]("resendMessage") + "") && T(n, i);
202
202
  },
203
203
  d(r) {
204
204
  r && R(e);
205
205
  }
206
206
  };
207
207
  }
208
- function X(o) {
209
- let e, i, a = (
208
+ function Z(o) {
209
+ let e, i, n = (
210
210
  /*secondsLeft*/
211
211
  o[4] < 10 ? "0" : ""
212
- ), r, l, g;
212
+ ), r, s, v;
213
213
  return {
214
214
  c() {
215
- e = k("span"), i = S("(0:"), r = S(a), l = S(
215
+ e = k("span"), i = S("(0:"), r = S(n), s = S(
216
216
  /*secondsLeft*/
217
217
  o[4]
218
- ), g = S(")"), v(e, "class", "SmsVerificationResendTimer");
218
+ ), v = S(")"), f(e, "class", "SmsVerificationResendTimer");
219
219
  },
220
- m(p, h) {
221
- P(p, e, h), s(e, i), s(e, r), s(e, l), s(e, g);
220
+ m(g, y) {
221
+ P(g, e, y), a(e, i), a(e, r), a(e, s), a(e, v);
222
222
  },
223
- p(p, h) {
224
- h & /*secondsLeft*/
225
- 16 && a !== (a = /*secondsLeft*/
226
- p[4] < 10 ? "0" : "") && E(r, a), h & /*secondsLeft*/
227
- 16 && E(
228
- l,
223
+ p(g, y) {
224
+ y & /*secondsLeft*/
225
+ 16 && n !== (n = /*secondsLeft*/
226
+ g[4] < 10 ? "0" : "") && T(r, n), y & /*secondsLeft*/
227
+ 16 && T(
228
+ s,
229
229
  /*secondsLeft*/
230
- p[4]
230
+ g[4]
231
231
  );
232
232
  },
233
- d(p) {
234
- p && R(e);
233
+ d(g) {
234
+ g && R(e);
235
235
  }
236
236
  };
237
237
  }
238
- function ye(o) {
239
- let e, i, a, r, l, g = (
238
+ function he(o) {
239
+ let e, i, n, r, s, v = (
240
240
  /*$_*/
241
241
  o[5]("code") + ""
242
- ), p, h, _, T, d, F, C, I, j, w, y = (
242
+ ), g, y, C, F, d, j, M, V, A, w, p = (
243
243
  /*$_*/
244
244
  o[5]("activate") + ""
245
- ), x, B, c, V = (
245
+ ), x, H, h, _ = (
246
246
  /*$_*/
247
247
  o[5]("resend") + ""
248
- ), U, q, N, H;
249
- function O(n, f) {
248
+ ), B, O, U, q;
249
+ function N(t, l) {
250
250
  return (
251
251
  /*isSmsValid*/
252
- n[2] ? pe : ge
252
+ t[2] ? ye : pe
253
253
  );
254
254
  }
255
- let A = O(o), b = A(o), u = !/*isSmsValid*/
256
- o[2] && W(o), m = (
257
- /*timer*/
258
- o[3] && Q(o)
259
- ), t = (
255
+ let z = N(o), b = z(o), c = !/*isSmsValid*/
256
+ o[2] && Q(o), u = (
260
257
  /*timer*/
261
258
  o[3] && X(o)
259
+ ), m = (
260
+ /*timer*/
261
+ o[3] && Z(o)
262
262
  );
263
263
  return {
264
264
  c() {
265
- e = k("div"), i = k("h3"), b.c(), a = z(), r = k("div"), l = k("label"), p = S(g), h = S(":"), _ = k("span"), _.textContent = "*", T = z(), d = k("input"), F = z(), u && u.c(), I = z(), m && m.c(), j = z(), w = k("button"), x = S(y), B = z(), c = k("button"), U = S(V), q = z(), t && t.c(), v(i, "class", "Title"), v(_, "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", C = "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");
265
+ e = k("div"), i = k("h3"), b.c(), n = I(), r = k("div"), s = k("label"), g = S(v), y = S(":"), C = k("span"), C.textContent = "*", F = I(), d = k("input"), j = I(), c && c.c(), V = I(), u && u.c(), A = I(), w = k("button"), x = S(p), H = I(), h = k("button"), B = S(_), O = I(), m && m.c(), f(i, "class", "Title"), f(C, "class", "FormRequired"), f(s, "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", M = "Field SmsVerificationField " + (/*isSmsValid*/
266
+ o[2] ? "" : "InvalidField")), f(w, "class", "Button SmsVerificationValidate"), f(h, "class", "Button SmsVerificationResend"), h.disabled = /*timer*/
267
+ o[3], f(e, "class", "Container SmsVerificationContainer");
268
268
  },
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, _), s(r, T), s(r, d), J(
269
+ m(t, l) {
270
+ P(t, e, l), a(e, i), b.m(i, null), a(e, n), a(e, r), a(r, s), a(s, g), a(s, y), a(s, C), a(r, F), a(r, d), G(
271
271
  d,
272
272
  /*smsCode*/
273
273
  o[1]
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, B), s(e, c), s(c, U), s(c, q), t && t.m(c, null), o[20](e), N || (H = [
274
+ ), a(r, j), c && c.m(r, null), a(e, V), u && u.m(e, null), a(e, A), a(e, w), a(w, x), a(e, H), a(e, h), a(h, B), a(h, O), m && m.m(h, null), o[20](e), U || (q = [
275
275
  L(
276
276
  d,
277
277
  "input",
@@ -291,69 +291,69 @@ function ye(o) {
291
291
  o[6]
292
292
  ),
293
293
  L(
294
- c,
294
+ h,
295
295
  "click",
296
296
  /*resendCode*/
297
297
  o[7]
298
298
  )
299
- ], N = !0);
299
+ ], U = !0);
300
300
  },
301
- p(n, [f]) {
302
- A === (A = O(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") + "") && E(p, g), f & /*smsCode*/
301
+ p(t, [l]) {
302
+ z === (z = N(t)) && b ? b.p(t, l) : (b.d(1), b = z(t), b && (b.c(), b.m(i, null))), l & /*$_*/
303
+ 32 && v !== (v = /*$_*/
304
+ t[5]("code") + "") && T(g, v), l & /*smsCode*/
305
305
  2 && d.value !== /*smsCode*/
306
- n[1] && J(
306
+ t[1] && G(
307
307
  d,
308
308
  /*smsCode*/
309
- n[1]
309
+ t[1]
310
310
  ), /*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
- 4 && C !== (C = "Field SmsVerificationField " + (/*isSmsValid*/
313
- n[2] ? "" : "InvalidField")) && v(r, "class", C), /*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") + "") && E(x, y), f & /*$_*/
317
- 32 && V !== (V = /*$_*/
318
- n[5]("resend") + "") && E(U, 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]);
311
+ t[2] ? c && (c.d(1), c = null) : c ? c.p(t, l) : (c = Q(t), c.c(), c.m(r, null)), l & /*isSmsValid*/
312
+ 4 && M !== (M = "Field SmsVerificationField " + (/*isSmsValid*/
313
+ t[2] ? "" : "InvalidField")) && f(r, "class", M), /*timer*/
314
+ t[3] ? u ? u.p(t, l) : (u = X(t), u.c(), u.m(e, A)) : u && (u.d(1), u = null), l & /*$_*/
315
+ 32 && p !== (p = /*$_*/
316
+ t[5]("activate") + "") && T(x, p), l & /*$_*/
317
+ 32 && _ !== (_ = /*$_*/
318
+ t[5]("resend") + "") && T(B, _), /*timer*/
319
+ t[3] ? m ? m.p(t, l) : (m = Z(t), m.c(), m.m(h, null)) : m && (m.d(1), m = null), l & /*timer*/
320
+ 8 && (h.disabled = /*timer*/
321
+ t[3]);
322
322
  },
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), N = !1, ne(H);
323
+ i: J,
324
+ o: J,
325
+ d(t) {
326
+ t && R(e), b.d(), c && c.d(), u && u.d(), m && m.d(), o[20](null), U = !1, ae(q);
327
327
  }
328
328
  };
329
329
  }
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: _ } = e, { clientstyling: T = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: F = "" } = e, C, I = !0, j = !1, w, y, x = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - x, c = 60 - Math.floor(B);
334
- const V = { numeric: /^[0-9]{0,6}$/ };
335
- fe({ withLocale: "en", translations: {} });
336
- const U = () => {
337
- fetch(F).then((n) => n.json()).then((n) => {
338
- Object.keys(n).forEach((f) => {
339
- G(f, n[f]);
330
+ function be(o, e, i) {
331
+ let n;
332
+ se(o, ce, (t) => i(5, n = t));
333
+ let { endpoint: r = "" } = e, { tokenid: s = "" } = e, { playerid: v = "" } = e, { smstemplate: g = "Please use this code {0} to activate your accout" } = e, { number: y = "" } = e, { mbsource: C } = e, { clientstyling: F = "" } = e, { clientstylingurl: d = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, w, p, x, H = +localStorage.getItem("smsTimer") || 0, h = Date.now() / 1e3 - H, _ = 60 - Math.floor(h);
334
+ const B = { numeric: /^[0-9]{0,6}$/ };
335
+ ve({ withLocale: "en", translations: {} });
336
+ const O = () => {
337
+ fetch(j).then((l) => l.json()).then((l) => {
338
+ Object.keys(l).forEach((D) => {
339
+ K(D, l[D]);
340
340
  });
341
- }).catch((n) => {
342
- console.log(n);
341
+ }).catch((l) => {
342
+ console.log(l);
343
343
  });
344
344
  };
345
- Object.keys(K).forEach((t) => {
346
- G(t, K[t]);
345
+ Object.keys(W).forEach((t) => {
346
+ K(t, W[t]);
347
347
  });
348
- const q = async () => {
348
+ const U = async () => {
349
349
  try {
350
- if ((await fetch(`${r}/v1/player/${g}/activateSMS?tokenId=${l}&validationCode=${C}`, {
350
+ if ((await fetch(`${r}/v1/player/${v}/activateSMS?tokenId=${s}&validationCode=${M}`, {
351
351
  headers: {
352
352
  "Content-Type": "application/json",
353
353
  accept: "application/json"
354
354
  }
355
355
  })).ok)
356
- i(2, I = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
356
+ i(2, V = !0), window.postMessage({ type: "SmsHasBeenValidated" }, window.location.href);
357
357
  else
358
358
  throw window.postMessage(
359
359
  {
@@ -364,12 +364,12 @@ function he(o, e, i) {
364
364
  }
365
365
  },
366
366
  window.location.href
367
- ), i(2, I = !1), new Error("Could not activate user");
367
+ ), i(2, V = !1), new Error("Could not activate user");
368
368
  } catch (t) {
369
369
  console.log(t);
370
370
  }
371
- }, N = async () => {
372
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), O();
371
+ }, q = async () => {
372
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), z();
373
373
  try {
374
374
  const t = await fetch(`${r}/v1/player/sms/token`, {
375
375
  method: "POST",
@@ -378,88 +378,88 @@ function he(o, e, i) {
378
378
  accept: "application/json"
379
379
  },
380
380
  body: JSON.stringify({
381
- userId: g,
382
- messageTemplate: p,
383
- destination: h
381
+ userId: v,
382
+ messageTemplate: g,
383
+ destination: y
384
384
  })
385
- }), n = await t.json();
385
+ }), l = await t.json();
386
386
  if (t.ok)
387
- i(9, l = n.id), j = !1, H();
387
+ i(9, s = l.id), A = !1, N();
388
388
  else
389
- throw j = !0, new Error("Failed to fetch");
389
+ throw A = !0, new Error("Failed to fetch");
390
390
  } catch (t) {
391
- j = !0, console.error(t);
391
+ A = !0, console.error(t);
392
392
  }
393
- }, H = () => {
394
- c > 0 ? i(4, c--, c) : (clearInterval(w), i(3, w = !1), i(4, c = 60));
395
- }, O = () => {
396
- B < 60 && i(3, w = setInterval(
393
+ }, N = () => {
394
+ _ > 0 ? i(4, _--, _) : (clearInterval(w), i(3, w = !1), i(4, _ = 60));
395
+ }, z = () => {
396
+ h < 60 && i(3, w = setInterval(
397
397
  () => {
398
- H();
398
+ N();
399
399
  },
400
400
  1e3
401
401
  ));
402
- }, A = (t) => {
403
- !V.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
402
+ }, b = (t) => {
403
+ !B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
404
404
  };
405
- se(() => {
406
- if (!g || !h) {
405
+ le(() => {
406
+ if (!v || !y) {
407
407
  let t = JSON.parse(localStorage.getItem("playerData"));
408
- i(10, g = t.playerid), i(11, h = t.number);
408
+ i(10, v = t.playerid), i(11, y = t.number);
409
409
  }
410
- return O(), () => {
410
+ return z(), () => {
411
411
  };
412
412
  });
413
- function b() {
414
- C = this.value, i(1, C);
413
+ function c() {
414
+ M = this.value, i(1, M);
415
415
  }
416
- const u = (t) => A(t);
416
+ const u = (t) => b(t);
417
417
  function m(t) {
418
- le[t ? "unshift" : "push"](() => {
419
- y = t, i(0, y);
418
+ de[t ? "unshift" : "push"](() => {
419
+ p = t, i(0, p);
420
420
  });
421
421
  }
422
422
  return o.$$set = (t) => {
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, _ = t.mbsource), "clientstyling" in t && i(15, T = t.clientstyling), "clientstylingurl" in t && i(16, d = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
423
+ "endpoint" in t && i(12, r = t.endpoint), "tokenid" in t && i(9, s = t.tokenid), "playerid" in t && i(10, v = t.playerid), "smstemplate" in t && i(13, g = t.smstemplate), "number" in t && i(11, y = t.number), "mbsource" in t && i(14, C = t.mbsource), "clientstyling" in t && i(15, F = t.clientstyling), "clientstylingurl" in t && i(16, d = t.clientstylingurl), "translationurl" in t && i(17, j = t.translationurl);
424
424
  }, o.$$.update = () => {
425
425
  o.$$.dirty & /*tokenid, playerid, endpoint*/
426
426
  5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
427
- 32769 && T && y && ce(y, T), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
428
- 65537 && d && y && ue(y, d), o.$$.dirty & /*mbsource, customStylingContainer*/
429
- 16385 && _ && y && me(y, `${_}.Style`), o.$$.dirty & /*translationurl*/
430
- 131072 && F && U();
427
+ 32769 && F && p && ue(p, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
428
+ 65537 && d && p && me(p, d), o.$$.dirty & /*mbsource, customStylingContainer*/
429
+ 16385 && C && p && fe(p, `${C}.Style`, x), o.$$.dirty & /*translationurl*/
430
+ 131072 && j && O();
431
431
  }, [
432
- y,
433
- C,
434
- I,
432
+ p,
433
+ M,
434
+ V,
435
435
  w,
436
- c,
437
- a,
436
+ _,
437
+ n,
438
+ U,
438
439
  q,
439
- N,
440
- A,
441
- l,
442
- g,
443
- h,
440
+ b,
441
+ s,
442
+ v,
443
+ y,
444
444
  r,
445
- p,
446
- _,
447
- T,
448
- d,
445
+ g,
446
+ C,
449
447
  F,
450
- b,
448
+ d,
449
+ j,
450
+ c,
451
451
  u,
452
452
  m
453
453
  ];
454
454
  }
455
- class be extends ee {
455
+ class Se extends te {
456
456
  constructor(e) {
457
- super(), te(
457
+ super(), ie(
458
458
  this,
459
459
  e,
460
+ be,
460
461
  he,
461
- ye,
462
- ie,
462
+ oe,
463
463
  {
464
464
  endpoint: 12,
465
465
  tokenid: 9,
@@ -471,65 +471,65 @@ class be extends ee {
471
471
  clientstylingurl: 16,
472
472
  translationurl: 17
473
473
  },
474
- ve
474
+ ge
475
475
  );
476
476
  }
477
477
  get endpoint() {
478
478
  return this.$$.ctx[12];
479
479
  }
480
480
  set endpoint(e) {
481
- this.$$set({ endpoint: e }), M();
481
+ this.$$set({ endpoint: e }), E();
482
482
  }
483
483
  get tokenid() {
484
484
  return this.$$.ctx[9];
485
485
  }
486
486
  set tokenid(e) {
487
- this.$$set({ tokenid: e }), M();
487
+ this.$$set({ tokenid: e }), E();
488
488
  }
489
489
  get playerid() {
490
490
  return this.$$.ctx[10];
491
491
  }
492
492
  set playerid(e) {
493
- this.$$set({ playerid: e }), M();
493
+ this.$$set({ playerid: e }), E();
494
494
  }
495
495
  get smstemplate() {
496
496
  return this.$$.ctx[13];
497
497
  }
498
498
  set smstemplate(e) {
499
- this.$$set({ smstemplate: e }), M();
499
+ this.$$set({ smstemplate: e }), E();
500
500
  }
501
501
  get number() {
502
502
  return this.$$.ctx[11];
503
503
  }
504
504
  set number(e) {
505
- this.$$set({ number: e }), M();
505
+ this.$$set({ number: e }), E();
506
506
  }
507
507
  get mbsource() {
508
508
  return this.$$.ctx[14];
509
509
  }
510
510
  set mbsource(e) {
511
- this.$$set({ mbsource: e }), M();
511
+ this.$$set({ mbsource: e }), E();
512
512
  }
513
513
  get clientstyling() {
514
514
  return this.$$.ctx[15];
515
515
  }
516
516
  set clientstyling(e) {
517
- this.$$set({ clientstyling: e }), M();
517
+ this.$$set({ clientstyling: e }), E();
518
518
  }
519
519
  get clientstylingurl() {
520
520
  return this.$$.ctx[16];
521
521
  }
522
522
  set clientstylingurl(e) {
523
- this.$$set({ clientstylingurl: e }), M();
523
+ this.$$set({ clientstylingurl: e }), E();
524
524
  }
525
525
  get translationurl() {
526
526
  return this.$$.ctx[17];
527
527
  }
528
528
  set translationurl(e) {
529
- this.$$set({ translationurl: e }), M();
529
+ this.$$set({ translationurl: e }), E();
530
530
  }
531
531
  }
532
- oe(be, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
532
+ re(Se, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
533
533
  export {
534
- be as default
534
+ Se as default
535
535
  };
@@ -0,0 +1 @@
1
+ "use strict";var V=(r,t,n)=>new Promise((a,o)=>{var s=d=>{try{c(n.next(d))}catch(y){o(y)}},m=d=>{try{c(n.throw(d))}catch(y){o(y)}},c=d=>d.done?a(d.value):Promise.resolve(d.value).then(s,m);c((n=n.apply(r,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./GeneralPlayerLoginForm-qiA6vKLG.cjs");function q({withLocale:r,translations:t}){e.$locale.subscribe(n=>{n==null&&(e.$dictionary.set(t),e.$locale.set(r))})}function B(r,t){e.addMessages(r,t)}const U={en:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"},"zh-hk":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"},tr:{title:"Please enter the verification code you received on your number",errorTitle:"Kodunuz geçersizdi, kodu tekrar gönderip tekrar deneyebilirsiniz",code:"SMS kodu",smsCodeError:"Geçersiz sms kodu, kodu tekrar gönderebilirsiniz",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Aktif hesap",resend:"Yeniden gönder",loginSMSHint:"Telefon numaranıza yeni bir doğrulama kodu gönderildi"},ro:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"},es:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"},pt:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"},"pt-br":{title:"Por favor, insira o código de verificação que você recebeu no seu número de celular",errorTitle:"Código inválido,vôce pode reenviar o código e tentar novamente",code:"Código SMS",smsCodeError:"Código SMS inválido,vôce pode reenviar o código",resendMessage:"Um novo código de verificação foi enviado para o seu número de celular.",activate:"Ativar conta",resend:"Reenviar",loginSMSHint:"Um novo código de verificação foi enviado para o seu número de celular."},"es-mx":{title:"Por favor ingrese el código de verificación que recibió en su número móvil",errorTitle:"Código inválido,Puede enviar el código e intentar de nuevo",code:"Código SMS",smsCodeError:"Código SMS inválido,Puede reenviar el código",resendMessage:"Un nuevo código de verificación ha sido enviado a su número móvil .",activate:"Activar Cuenta",resend:"Reenviar",loginSMSHint:"Un nuevo código de verificación ha sido enviado a su número móvil ."},"en-us":{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}};function D(r){e.append_styles(r,"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))}")}function Y(r){let t=r[5]("errorTitle")+"",n;return{c(){n=e.text(t)},m(a,o){e.insert(a,n,o)},p(a,o){o&32&&t!==(t=a[5]("errorTitle")+"")&&e.set_data(n,t)},d(a){a&&e.detach(n)}}}function G(r){let t=r[5]("title")+"",n;return{c(){n=e.text(t)},m(a,o){e.insert(a,n,o)},p(a,o){o&32&&t!==(t=a[5]("title")+"")&&e.set_data(n,t)},d(a){a&&e.detach(n)}}}function N(r){let t,n=r[5]("smsCodeError")+"",a;return{c(){t=e.element("p"),a=e.text(n),e.attr(t,"class","InvalidInput")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&n!==(n=o[5]("smsCodeError")+"")&&e.set_data(a,n)},d(o){o&&e.detach(t)}}}function H(r){let t,n=r[5]("resendMessage")+"",a;return{c(){t=e.element("p"),a=e.text(n),e.attr(t,"class","SmsVerificationResendMessage")},m(o,s){e.insert(o,t,s),e.append(t,a)},p(o,s){s&32&&n!==(n=o[5]("resendMessage")+"")&&e.set_data(a,n)},d(o){o&&e.detach(t)}}}function O(r){let t,n,a=r[4]<10?"0":"",o,s,m;return{c(){t=e.element("span"),n=e.text("(0:"),o=e.text(a),s=e.text(r[4]),m=e.text(")"),e.attr(t,"class","SmsVerificationResendTimer")},m(c,d){e.insert(c,t,d),e.append(t,n),e.append(t,o),e.append(t,s),e.append(t,m)},p(c,d){d&16&&a!==(a=c[4]<10?"0":"")&&e.set_data(o,a),d&16&&e.set_data(s,c[4])},d(c){c&&e.detach(t)}}}function J(r){let t,n,a,o,s,m=r[5]("code")+"",c,d,y,w,u,C,_,T,M,S,g=r[5]("activate")+"",F,z,h,k=r[5]("resend")+"",j,I,A,P;function x(i,l){return i[2]?G:Y}let E=x(r),b=E(r),p=!r[2]&&N(r),f=r[3]&&H(r),v=r[3]&&O(r);return{c(){t=e.element("div"),n=e.element("h3"),b.c(),a=e.space(),o=e.element("div"),s=e.element("label"),c=e.text(m),d=e.text(":"),y=e.element("span"),y.textContent="*",w=e.space(),u=e.element("input"),C=e.space(),p&&p.c(),T=e.space(),f&&f.c(),M=e.space(),S=e.element("button"),F=e.text(g),z=e.space(),h=e.element("button"),j=e.text(k),I=e.space(),v&&v.c(),e.attr(n,"class","Title"),e.attr(y,"class","FormRequired"),e.attr(s,"for","SmsCode"),e.attr(u,"type","text"),e.attr(u,"id","SmsCode"),e.attr(u,"inputmode","numeric"),e.attr(u,"pattern","[0-9]*"),e.attr(u,"maxlength","6"),e.attr(o,"class",_="Field SmsVerificationField "+(r[2]?"":"InvalidField")),e.attr(S,"class","Button SmsVerificationValidate"),e.attr(h,"class","Button SmsVerificationResend"),h.disabled=r[3],e.attr(t,"class","Container SmsVerificationContainer")},m(i,l){e.insert(i,t,l),e.append(t,n),b.m(n,null),e.append(t,a),e.append(t,o),e.append(o,s),e.append(s,c),e.append(s,d),e.append(s,y),e.append(o,w),e.append(o,u),e.set_input_value(u,r[1]),e.append(o,C),p&&p.m(o,null),e.append(t,T),f&&f.m(t,null),e.append(t,M),e.append(t,S),e.append(S,F),e.append(t,z),e.append(t,h),e.append(h,j),e.append(h,I),v&&v.m(h,null),r[20](t),A||(P=[e.listen(u,"input",r[18]),e.listen(u,"keydown",r[19]),e.listen(S,"click",r[6]),e.listen(h,"click",r[7])],A=!0)},p(i,[l]){E===(E=x(i))&&b?b.p(i,l):(b.d(1),b=E(i),b&&(b.c(),b.m(n,null))),l&32&&m!==(m=i[5]("code")+"")&&e.set_data(c,m),l&2&&u.value!==i[1]&&e.set_input_value(u,i[1]),i[2]?p&&(p.d(1),p=null):p?p.p(i,l):(p=N(i),p.c(),p.m(o,null)),l&4&&_!==(_="Field SmsVerificationField "+(i[2]?"":"InvalidField"))&&e.attr(o,"class",_),i[3]?f?f.p(i,l):(f=H(i),f.c(),f.m(t,M)):f&&(f.d(1),f=null),l&32&&g!==(g=i[5]("activate")+"")&&e.set_data(F,g),l&32&&k!==(k=i[5]("resend")+"")&&e.set_data(j,k),i[3]?v?v.p(i,l):(v=O(i),v.c(),v.m(h,null)):v&&(v.d(1),v=null),l&8&&(h.disabled=i[3])},i:e.noop,o:e.noop,d(i){i&&e.detach(t),b.d(),p&&p.d(),f&&f.d(),v&&v.d(),r[20](null),A=!1,e.run_all(P)}}}function K(r,t,n){let a;e.component_subscribe(r,e.$format,i=>n(5,a=i));let{endpoint:o=""}=t,{tokenid:s=""}=t,{playerid:m=""}=t,{smstemplate:c="Please use this code {0} to activate your accout"}=t,{number:d=""}=t,{mbsource:y}=t,{clientstyling:w=""}=t,{clientstylingurl:u=""}=t,{translationurl:C=""}=t,_,T=!0,M=!1,S,g,F,z=+localStorage.getItem("smsTimer")||0,h=Date.now()/1e3-z,k=60-Math.floor(h);const j={numeric:/^[0-9]{0,6}$/};q({withLocale:"en",translations:{}});const I=()=>{fetch(C).then(l=>l.json()).then(l=>{Object.keys(l).forEach(R=>{B(R,l[R])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(i=>{B(i,U[i])});const A=()=>V(this,null,function*(){try{if((yield fetch(`${o}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${_}`,{headers:{"Content-Type":"application/json",accept:"application/json"}})).ok)n(2,T=!0),window.postMessage({type:"SmsHasBeenValidated"},window.location.href);else throw window.postMessage({type:"WidgetNotification",data:{type:"error",message:"Could not activate user"}},window.location.href),n(2,T=!1),new Error("Could not activate user")}catch(i){console.log(i)}}),P=()=>V(this,null,function*(){localStorage.setItem("smsTimer",JSON.stringify(Math.floor(Date.now()/1e3))),E();try{const i=yield fetch(`${o}/v1/player/sms/token`,{method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify({userId:m,messageTemplate:c,destination:d})}),l=yield i.json();if(i.ok)n(9,s=l.id),M=!1,x();else throw M=!0,new Error("Failed to fetch")}catch(i){M=!0,console.error(i)}}),x=()=>{k>0?n(4,k--,k):(clearInterval(S),n(3,S=!1),n(4,k=60))},E=()=>{h<60&&n(3,S=setInterval(()=>{x()},1e3))},b=i=>{!j.numeric.test(i.key)&&i.keyCode!==8&&i.keyCode!==9&&i.keyCode!==46&&i.preventDefault()};e.onMount(()=>{if(!m||!d){let i=JSON.parse(localStorage.getItem("playerData"));n(10,m=i.playerid),n(11,d=i.number)}return E(),()=>{}});function p(){_=this.value,n(1,_)}const f=i=>b(i);function v(i){e.binding_callbacks[i?"unshift":"push"](()=>{g=i,n(0,g)})}return r.$$set=i=>{"endpoint"in i&&n(12,o=i.endpoint),"tokenid"in i&&n(9,s=i.tokenid),"playerid"in i&&n(10,m=i.playerid),"smstemplate"in i&&n(13,c=i.smstemplate),"number"in i&&n(11,d=i.number),"mbsource"in i&&n(14,y=i.mbsource),"clientstyling"in i&&n(15,w=i.clientstyling),"clientstylingurl"in i&&n(16,u=i.clientstylingurl),"translationurl"in i&&n(17,C=i.translationurl)},r.$$.update=()=>{r.$$.dirty&5632,r.$$.dirty&32769&&w&&g&&e.setClientStyling(g,w),r.$$.dirty&65537&&u&&g&&e.setClientStylingURL(g,u),r.$$.dirty&16385&&y&&g&&e.setStreamStyling(g,`${y}.Style`,F),r.$$.dirty&131072&&C&&I()},[g,_,T,S,k,a,A,P,b,s,m,d,o,c,y,w,u,C,p,f,v]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,K,J,e.safe_not_equal,{endpoint:12,tokenid:9,playerid:10,smstemplate:13,number:11,mbsource:14,clientstyling:15,clientstylingurl:16,translationurl:17},D)}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get tokenid(){return this.$$.ctx[9]}set tokenid(t){this.$$set({tokenid:t}),e.flush()}get playerid(){return this.$$.ctx[10]}set playerid(t){this.$$set({playerid:t}),e.flush()}get smstemplate(){return this.$$.ctx[13]}set smstemplate(t){this.$$set({smstemplate:t}),e.flush()}get number(){return this.$$.ctx[11]}set number(t){this.$$set({number:t}),e.flush()}get mbsource(){return this.$$.ctx[14]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get clientstyling(){return this.$$.ctx[15]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[16]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[17]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}}e.create_custom_element(L,{endpoint:{},tokenid:{},playerid:{},smstemplate:{},number:{},mbsource:{},clientstyling:{},clientstylingurl:{},translationurl:{}},[],[],!0);exports.default=L;
@@ -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-BKduHUxH.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-qiA6vKLG.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}