@everymatrix/general-player-register-form-nd 1.63.2 → 1.64.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.
Files changed (20) hide show
  1. package/components/{GeneralPlayerRegisterFormNd-Be98dKrd.js → GeneralPlayerRegisterFormNd-DC5YFwAY.js} +5 -5
  2. package/components/{GeneralPlayerRegisterFormNd-t1hpvm_i.js → GeneralPlayerRegisterFormNd-DFOeIajF.js} +5 -5
  3. package/components/{GeneralPlayerRegisterFormNd-BkhI2_-3.cjs → GeneralPlayerRegisterFormNd-DjCemZTL.cjs} +1 -1
  4. package/components/{GeneralPlayerRegisterFormStep1-CjxxW3NF.js → GeneralPlayerRegisterFormStep1-B8x2npcd.js} +74 -74
  5. package/components/GeneralPlayerRegisterFormStep1-DSOyErgo.cjs +1 -0
  6. package/components/{GeneralPlayerRegisterFormStep1-BSkmwtYA.js → GeneralPlayerRegisterFormStep1-FnS-hDMY.js} +81 -81
  7. package/components/{GeneralPlayerRegisterFormStep2-KoWmuFuE.js → GeneralPlayerRegisterFormStep2-ALcjJ8nv.js} +191 -191
  8. package/components/{GeneralPlayerRegisterFormStep2-ivTPE1Uo.js → GeneralPlayerRegisterFormStep2-B1mLv9cm.js} +223 -223
  9. package/components/{GeneralPlayerRegisterFormStep2-axQ5jwa8.cjs → GeneralPlayerRegisterFormStep2-DWAnaeOm.cjs} +2 -2
  10. package/components/{GeneralPlayerRegisterFormStep3-BkCXW2vu.cjs → GeneralPlayerRegisterFormStep3-B842736j.cjs} +1 -1
  11. package/components/{GeneralPlayerRegisterFormStep3-iRXnrJfg.js → GeneralPlayerRegisterFormStep3-BrmjFpUQ.js} +184 -184
  12. package/components/{GeneralPlayerRegisterFormStep3-BwtL-oNs.js → GeneralPlayerRegisterFormStep3-DL4phv_H.js} +174 -174
  13. package/components/{GeneralPlayerSmsVerificationForm-DdDrXJG2.js → GeneralPlayerSmsVerificationForm-BdCceV0k.js} +50 -50
  14. package/components/{GeneralPlayerSmsVerificationForm-_q__amvp.js → GeneralPlayerSmsVerificationForm-CMoVD2PA.js} +49 -49
  15. package/components/{GeneralPlayerSmsVerificationForm-vjfeyjnc.cjs → GeneralPlayerSmsVerificationForm-CuVBltwG.cjs} +1 -1
  16. package/es2015/general-player-register-form-nd.cjs +1 -1
  17. package/es2015/general-player-register-form-nd.js +1 -1
  18. package/esnext/general-player-register-form-nd.js +1 -1
  19. package/package.json +1 -1
  20. package/components/GeneralPlayerRegisterFormStep1-DNqVJJwc.cjs +0 -1
@@ -1,4 +1,4 @@
1
- var L = (o, e, i) => new Promise((a, r) => {
1
+ var D = (o, e, i) => new Promise((a, r) => {
2
2
  var s = (d) => {
3
3
  try {
4
4
  c(i.next(d));
@@ -14,7 +14,7 @@ var L = (o, e, i) => new Promise((a, r) => {
14
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 Y, G as $, a as ee, S as te, i as ie, s as oe, f as M, b as re, n as G, d as R, r as ne, c as T, e as J, g as y, h as P, j as l, l as q, k as w, m as z, t as k, o as ae, p as se, q as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerRegisterFormNd-t1hpvm_i.js";
17
+ import { $ as Y, G as $, a as ee, S as te, i as ie, s as oe, f as M, b as re, n as G, d as R, r as ne, c as E, e as J, g as y, h as P, j as l, l as L, k as w, m as z, t as k, o as ae, p as se, q as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerRegisterFormNd-DFOeIajF.js";
18
18
  function ve({ withLocale: o, translations: e }) {
19
19
  Y.subscribe((i) => {
20
20
  i == null && ($.set(e), Y.set(o));
@@ -131,7 +131,7 @@ const W = {
131
131
  }
132
132
  };
133
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))}");
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
135
  }
136
136
  function pe(o) {
137
137
  let e = (
@@ -148,7 +148,7 @@ function pe(o) {
148
148
  p(a, r) {
149
149
  r & /*$_*/
150
150
  32 && e !== (e = /*$_*/
151
- a[5]("errorTitle") + "") && T(i, e);
151
+ a[5]("errorTitle") + "") && E(i, e);
152
152
  },
153
153
  d(a) {
154
154
  a && R(i);
@@ -170,7 +170,7 @@ function ye(o) {
170
170
  p(a, r) {
171
171
  r & /*$_*/
172
172
  32 && e !== (e = /*$_*/
173
- a[5]("title") + "") && T(i, e);
173
+ a[5]("title") + "") && E(i, e);
174
174
  },
175
175
  d(a) {
176
176
  a && R(i);
@@ -192,7 +192,7 @@ function Q(o) {
192
192
  p(r, s) {
193
193
  s & /*$_*/
194
194
  32 && i !== (i = /*$_*/
195
- r[5]("smsCodeError") + "") && T(a, i);
195
+ r[5]("smsCodeError") + "") && E(a, i);
196
196
  },
197
197
  d(r) {
198
198
  r && R(e);
@@ -214,7 +214,7 @@ function X(o) {
214
214
  p(r, s) {
215
215
  s & /*$_*/
216
216
  32 && i !== (i = /*$_*/
217
- r[5]("resendMessage") + "") && T(a, i);
217
+ r[5]("resendMessage") + "") && E(a, i);
218
218
  },
219
219
  d(r) {
220
220
  r && R(e);
@@ -239,8 +239,8 @@ function Z(o) {
239
239
  p(c, d) {
240
240
  d & /*secondsLeft*/
241
241
  16 && a !== (a = /*secondsLeft*/
242
- c[4] < 10 ? "0" : "") && T(r, a), d & /*secondsLeft*/
243
- 16 && T(
242
+ c[4] < 10 ? "0" : "") && E(r, a), d & /*secondsLeft*/
243
+ 16 && E(
244
244
  s,
245
245
  /*secondsLeft*/
246
246
  c[4]
@@ -255,20 +255,20 @@ function he(o) {
255
255
  let e, i, a, r, s, m = (
256
256
  /*$_*/
257
257
  o[5]("code") + ""
258
- ), c, d, b, E, u, F, _, I, j, C, h = (
258
+ ), c, d, b, T, u, F, C, I, j, _, h = (
259
259
  /*$_*/
260
260
  o[5]("activate") + ""
261
- ), x, U, f, V = (
261
+ ), x, B, f, V = (
262
262
  /*$_*/
263
263
  o[5]("resend") + ""
264
- ), N, O, D, H;
265
- function B(n, p) {
264
+ ), U, q, N, H;
265
+ function O(n, p) {
266
266
  return (
267
267
  /*isSmsValid*/
268
268
  n[2] ? ye : pe
269
269
  );
270
270
  }
271
- let A = B(o), S = A(o), v = !/*isSmsValid*/
271
+ let A = O(o), S = A(o), v = !/*isSmsValid*/
272
272
  o[2] && Q(o), g = (
273
273
  /*timer*/
274
274
  o[3] && X(o)
@@ -278,46 +278,46 @@ function he(o) {
278
278
  );
279
279
  return {
280
280
  c() {
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*/
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 = "*", T = z(), u = w("input"), F = z(), v && v.c(), I = z(), g && g.c(), j = z(), _ = w("button"), x = k(h), B = z(), f = w("button"), U = k(V), q = 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", C = "Field SmsVerificationField " + (/*isSmsValid*/
282
+ o[2] ? "" : "InvalidField")), y(_, "class", "Button SmsVerificationValidate"), y(f, "class", "Button SmsVerificationResend"), f.disabled = /*timer*/
283
283
  o[3], y(e, "class", "Container SmsVerificationContainer");
284
284
  },
285
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), J(
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, T), l(r, u), J(
287
287
  u,
288
288
  /*smsCode*/
289
289
  o[1]
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
- q(
290
+ ), l(r, F), v && v.m(r, null), l(e, I), g && g.m(e, null), l(e, j), l(e, _), l(_, x), l(e, B), l(e, f), l(f, U), l(f, q), t && t.m(f, null), o[20](e), N || (H = [
291
+ L(
292
292
  u,
293
293
  "input",
294
294
  /*input_input_handler*/
295
295
  o[18]
296
296
  ),
297
- q(
297
+ L(
298
298
  u,
299
299
  "keydown",
300
300
  /*keydown_handler*/
301
301
  o[19]
302
302
  ),
303
- q(
304
- C,
303
+ L(
304
+ _,
305
305
  "click",
306
306
  /*activateUser*/
307
307
  o[6]
308
308
  ),
309
- q(
309
+ L(
310
310
  f,
311
311
  "click",
312
312
  /*resendCode*/
313
313
  o[7]
314
314
  )
315
- ], D = !0);
315
+ ], N = !0);
316
316
  },
317
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 & /*$_*/
318
+ A === (A = O(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
- n[5]("code") + "") && T(c, m), p & /*smsCode*/
320
+ n[5]("code") + "") && E(c, m), p & /*smsCode*/
321
321
  2 && u.value !== /*smsCode*/
322
322
  n[1] && J(
323
323
  u,
@@ -325,13 +325,13 @@ function he(o) {
325
325
  n[1]
326
326
  ), /*isSmsValid*/
327
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
- 4 && _ !== (_ = "Field SmsVerificationField " + (/*isSmsValid*/
329
- n[2] ? "" : "InvalidField")) && y(r, "class", _), /*timer*/
328
+ 4 && C !== (C = "Field SmsVerificationField " + (/*isSmsValid*/
329
+ n[2] ? "" : "InvalidField")) && y(r, "class", C), /*timer*/
330
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
331
  32 && h !== (h = /*$_*/
332
- n[5]("activate") + "") && T(x, h), p & /*$_*/
332
+ n[5]("activate") + "") && E(x, h), p & /*$_*/
333
333
  32 && V !== (V = /*$_*/
334
- n[5]("resend") + "") && T(N, V), /*timer*/
334
+ n[5]("resend") + "") && E(U, V), /*timer*/
335
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
336
  8 && (f.disabled = /*timer*/
337
337
  n[3]);
@@ -339,17 +339,17 @@ function he(o) {
339
339
  i: G,
340
340
  o: G,
341
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);
342
+ n && R(e), S.d(), v && v.d(), g && g.d(), t && t.d(), o[20](null), N = !1, ne(H);
343
343
  }
344
344
  };
345
345
  }
346
346
  function be(o, e, i) {
347
347
  let a;
348
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);
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: T = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: F = "" } = e, C, I = !0, j = !1, _, h, x = +localStorage.getItem("smsTimer") || 0, B = Date.now() / 1e3 - x, f = 60 - Math.floor(B);
350
350
  const V = { numeric: /^[0-9]{0,6}$/ };
351
351
  ve({ withLocale: "en", translations: {} });
352
- const N = () => {
352
+ const U = () => {
353
353
  fetch(F).then((n) => n.json()).then((n) => {
354
354
  Object.keys(n).forEach((p) => {
355
355
  K(p, n[p]);
@@ -361,9 +361,9 @@ function be(o, e, i) {
361
361
  Object.keys(W).forEach((t) => {
362
362
  K(t, W[t]);
363
363
  });
364
- const O = () => L(this, null, function* () {
364
+ const q = () => D(this, null, function* () {
365
365
  try {
366
- if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${_}`, {
366
+ if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${s}&validationCode=${C}`, {
367
367
  headers: {
368
368
  "Content-Type": "application/json",
369
369
  accept: "application/json"
@@ -384,8 +384,8 @@ function be(o, e, i) {
384
384
  } catch (t) {
385
385
  console.log(t);
386
386
  }
387
- }), D = () => L(this, null, function* () {
388
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), B();
387
+ }), N = () => D(this, null, function* () {
388
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), O();
389
389
  try {
390
390
  const t = yield fetch(`${r}/v1/player/sms/token`, {
391
391
  method: "POST",
@@ -407,9 +407,9 @@ function be(o, e, i) {
407
407
  j = !0, console.error(t);
408
408
  }
409
409
  }), H = () => {
410
- f > 0 ? i(4, f--, f) : (clearInterval(C), i(3, C = !1), i(4, f = 60));
411
- }, B = () => {
412
- U < 60 && i(3, C = setInterval(
410
+ f > 0 ? i(4, f--, f) : (clearInterval(_), i(3, _ = !1), i(4, f = 60));
411
+ }, O = () => {
412
+ B < 60 && i(3, _ = setInterval(
413
413
  () => {
414
414
  H();
415
415
  },
@@ -423,11 +423,11 @@ function be(o, e, i) {
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 B(), () => {
426
+ return O(), () => {
427
427
  };
428
428
  });
429
429
  function S() {
430
- _ = this.value, i(1, _);
430
+ C = this.value, i(1, C);
431
431
  }
432
432
  const v = (t) => A(t);
433
433
  function g(t) {
@@ -436,23 +436,23 @@ function be(o, e, i) {
436
436
  });
437
437
  }
438
438
  return o.$$set = (t) => {
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);
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, T = t.clientstyling), "clientstylingurl" in t && i(16, u = t.clientstylingurl), "translationurl" in t && i(17, F = t.translationurl);
440
440
  }, o.$$.update = () => {
441
441
  o.$$.dirty & /*tokenid, playerid, endpoint*/
442
442
  5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
443
- 32769 && E && h && de(h, E), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
443
+ 32769 && T && h && de(h, T), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
444
444
  65537 && u && h && ce(h, u), o.$$.dirty & /*mbsource, customStylingContainer*/
445
445
  16385 && b && h && ue(h, `${b}.Style`), o.$$.dirty & /*translationurl*/
446
- 131072 && F && N();
446
+ 131072 && F && U();
447
447
  }, [
448
448
  h,
449
- _,
450
- I,
451
449
  C,
450
+ I,
451
+ _,
452
452
  f,
453
453
  a,
454
- O,
455
- D,
454
+ q,
455
+ N,
456
456
  A,
457
457
  s,
458
458
  m,
@@ -460,7 +460,7 @@ function be(o, e, i) {
460
460
  r,
461
461
  c,
462
462
  b,
463
- E,
463
+ T,
464
464
  u,
465
465
  F,
466
466
  S,
@@ -1,7 +1,7 @@
1
- import { $ as L, G as Z, a as $, S as ee, i as te, s as ie, f as M, b as oe, n as Y, d as R, r as re, e as T, g as G, h as v, j as P, k as s, l as q, m as k, o as z, t as S, p as ne, q as ae, u as se, x as le, y as de, z as ce, c as ue, w as me } from "./GeneralPlayerRegisterFormNd-Be98dKrd.js";
1
+ import { $ as D, G as Z, a as $, S as ee, i as te, s as ie, f as M, b as oe, n as Y, d as R, r as re, e as E, g as G, h as v, j as P, k as s, l as L, m as k, o as z, t as S, p as ne, q as ae, u as se, x as le, y as de, z as ce, c as ue, w as me } from "./GeneralPlayerRegisterFormNd-DC5YFwAY.js";
2
2
  function fe({ withLocale: o, translations: e }) {
3
- L.subscribe((i) => {
4
- i == null && (Z.set(e), L.set(o));
3
+ D.subscribe((i) => {
4
+ i == null && (Z.set(e), D.set(o));
5
5
  });
6
6
  }
7
7
  function J(o, e) {
@@ -115,7 +115,7 @@ const K = {
115
115
  }
116
116
  };
117
117
  function ve(o) {
118
- oe(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))}");
118
+ oe(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
119
  }
120
120
  function ge(o) {
121
121
  let e = (
@@ -132,7 +132,7 @@ function ge(o) {
132
132
  p(a, r) {
133
133
  r & /*$_*/
134
134
  32 && e !== (e = /*$_*/
135
- a[5]("errorTitle") + "") && T(i, e);
135
+ a[5]("errorTitle") + "") && E(i, e);
136
136
  },
137
137
  d(a) {
138
138
  a && R(i);
@@ -154,7 +154,7 @@ function pe(o) {
154
154
  p(a, r) {
155
155
  r & /*$_*/
156
156
  32 && e !== (e = /*$_*/
157
- a[5]("title") + "") && T(i, e);
157
+ a[5]("title") + "") && E(i, e);
158
158
  },
159
159
  d(a) {
160
160
  a && R(i);
@@ -176,7 +176,7 @@ function W(o) {
176
176
  p(r, l) {
177
177
  l & /*$_*/
178
178
  32 && i !== (i = /*$_*/
179
- r[5]("smsCodeError") + "") && T(a, i);
179
+ r[5]("smsCodeError") + "") && E(a, i);
180
180
  },
181
181
  d(r) {
182
182
  r && R(e);
@@ -198,7 +198,7 @@ function Q(o) {
198
198
  p(r, l) {
199
199
  l & /*$_*/
200
200
  32 && i !== (i = /*$_*/
201
- r[5]("resendMessage") + "") && T(a, i);
201
+ r[5]("resendMessage") + "") && E(a, i);
202
202
  },
203
203
  d(r) {
204
204
  r && R(e);
@@ -223,8 +223,8 @@ function X(o) {
223
223
  p(p, h) {
224
224
  h & /*secondsLeft*/
225
225
  16 && a !== (a = /*secondsLeft*/
226
- p[4] < 10 ? "0" : "") && T(r, a), h & /*secondsLeft*/
227
- 16 && T(
226
+ p[4] < 10 ? "0" : "") && E(r, a), h & /*secondsLeft*/
227
+ 16 && E(
228
228
  l,
229
229
  /*secondsLeft*/
230
230
  p[4]
@@ -239,20 +239,20 @@ function ye(o) {
239
239
  let e, i, a, r, l, g = (
240
240
  /*$_*/
241
241
  o[5]("code") + ""
242
- ), p, h, C, E, d, F, _, I, j, w, y = (
242
+ ), p, h, _, T, d, F, C, I, j, w, y = (
243
243
  /*$_*/
244
244
  o[5]("activate") + ""
245
- ), x, U, c, V = (
245
+ ), x, B, c, V = (
246
246
  /*$_*/
247
247
  o[5]("resend") + ""
248
- ), N, O, D, H;
249
- function B(n, f) {
248
+ ), U, q, N, H;
249
+ function O(n, f) {
250
250
  return (
251
251
  /*isSmsValid*/
252
252
  n[2] ? pe : ge
253
253
  );
254
254
  }
255
- let A = B(o), b = A(o), u = !/*isSmsValid*/
255
+ let A = O(o), b = A(o), u = !/*isSmsValid*/
256
256
  o[2] && W(o), m = (
257
257
  /*timer*/
258
258
  o[3] && Q(o)
@@ -262,46 +262,46 @@ function ye(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(":"), 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*/
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
266
  o[2] ? "" : "InvalidField")), v(w, "class", "Button SmsVerificationValidate"), v(c, "class", "Button SmsVerificationResend"), c.disabled = /*timer*/
267
267
  o[3], v(e, "class", "Container SmsVerificationContainer");
268
268
  },
269
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), G(
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), 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, U), s(e, c), s(c, N), s(c, O), t && t.m(c, null), o[20](e), D || (H = [
275
- q(
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 = [
275
+ L(
276
276
  d,
277
277
  "input",
278
278
  /*input_input_handler*/
279
279
  o[18]
280
280
  ),
281
- q(
281
+ L(
282
282
  d,
283
283
  "keydown",
284
284
  /*keydown_handler*/
285
285
  o[19]
286
286
  ),
287
- q(
287
+ L(
288
288
  w,
289
289
  "click",
290
290
  /*activateUser*/
291
291
  o[6]
292
292
  ),
293
- q(
293
+ L(
294
294
  c,
295
295
  "click",
296
296
  /*resendCode*/
297
297
  o[7]
298
298
  )
299
- ], D = !0);
299
+ ], N = !0);
300
300
  },
301
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 & /*$_*/
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
303
  32 && g !== (g = /*$_*/
304
- n[5]("code") + "") && T(p, g), f & /*smsCode*/
304
+ n[5]("code") + "") && E(p, g), f & /*smsCode*/
305
305
  2 && d.value !== /*smsCode*/
306
306
  n[1] && G(
307
307
  d,
@@ -309,13 +309,13 @@ function ye(o) {
309
309
  n[1]
310
310
  ), /*isSmsValid*/
311
311
  n[2] ? u && (u.d(1), u = null) : u ? u.p(n, f) : (u = W(n), u.c(), u.m(r, null)), f & /*isSmsValid*/
312
- 4 && _ !== (_ = "Field SmsVerificationField " + (/*isSmsValid*/
313
- n[2] ? "" : "InvalidField")) && v(r, "class", _), /*timer*/
312
+ 4 && C !== (C = "Field SmsVerificationField " + (/*isSmsValid*/
313
+ n[2] ? "" : "InvalidField")) && v(r, "class", C), /*timer*/
314
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
315
  32 && y !== (y = /*$_*/
316
- n[5]("activate") + "") && T(x, y), f & /*$_*/
316
+ n[5]("activate") + "") && E(x, y), f & /*$_*/
317
317
  32 && V !== (V = /*$_*/
318
- n[5]("resend") + "") && T(N, V), /*timer*/
318
+ n[5]("resend") + "") && E(U, V), /*timer*/
319
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
320
  8 && (c.disabled = /*timer*/
321
321
  n[3]);
@@ -323,17 +323,17 @@ function ye(o) {
323
323
  i: Y,
324
324
  o: Y,
325
325
  d(n) {
326
- n && R(e), b.d(), u && u.d(), m && m.d(), t && t.d(), o[20](null), D = !1, re(H);
326
+ n && R(e), b.d(), u && u.d(), m && m.d(), t && t.d(), o[20](null), N = !1, re(H);
327
327
  }
328
328
  };
329
329
  }
330
330
  function he(o, e, i) {
331
331
  let a;
332
332
  ne(o, me, (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);
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
334
  const V = { numeric: /^[0-9]{0,6}$/ };
335
335
  fe({ withLocale: "en", translations: {} });
336
- const N = () => {
336
+ const U = () => {
337
337
  fetch(F).then((n) => n.json()).then((n) => {
338
338
  Object.keys(n).forEach((f) => {
339
339
  J(f, n[f]);
@@ -345,9 +345,9 @@ function he(o, e, i) {
345
345
  Object.keys(K).forEach((t) => {
346
346
  J(t, K[t]);
347
347
  });
348
- const O = async () => {
348
+ const q = async () => {
349
349
  try {
350
- if ((await fetch(`${r}/v1/player/${g}/activateSMS?tokenId=${l}&validationCode=${_}`, {
350
+ if ((await fetch(`${r}/v1/player/${g}/activateSMS?tokenId=${l}&validationCode=${C}`, {
351
351
  headers: {
352
352
  "Content-Type": "application/json",
353
353
  accept: "application/json"
@@ -368,8 +368,8 @@ function he(o, e, i) {
368
368
  } catch (t) {
369
369
  console.log(t);
370
370
  }
371
- }, D = async () => {
372
- localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), B();
371
+ }, N = async () => {
372
+ localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), O();
373
373
  try {
374
374
  const t = await fetch(`${r}/v1/player/sms/token`, {
375
375
  method: "POST",
@@ -392,8 +392,8 @@ function he(o, e, i) {
392
392
  }
393
393
  }, H = () => {
394
394
  c > 0 ? i(4, c--, c) : (clearInterval(w), i(3, w = !1), i(4, c = 60));
395
- }, B = () => {
396
- U < 60 && i(3, w = setInterval(
395
+ }, O = () => {
396
+ B < 60 && i(3, w = setInterval(
397
397
  () => {
398
398
  H();
399
399
  },
@@ -407,11 +407,11 @@ function he(o, e, i) {
407
407
  let t = JSON.parse(localStorage.getItem("playerData"));
408
408
  i(10, g = t.playerid), i(11, h = t.number);
409
409
  }
410
- return B(), () => {
410
+ return O(), () => {
411
411
  };
412
412
  });
413
413
  function b() {
414
- _ = this.value, i(1, _);
414
+ C = this.value, i(1, C);
415
415
  }
416
416
  const u = (t) => A(t);
417
417
  function m(t) {
@@ -420,31 +420,31 @@ function he(o, e, i) {
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, 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);
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);
424
424
  }, o.$$.update = () => {
425
425
  o.$$.dirty & /*tokenid, playerid, endpoint*/
426
426
  5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
427
- 32769 && E && y && le(y, E), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
427
+ 32769 && T && y && le(y, T), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
428
428
  65537 && d && y && de(y, d), o.$$.dirty & /*mbsource, customStylingContainer*/
429
- 16385 && C && y && ce(y, `${C}.Style`), o.$$.dirty & /*translationurl*/
430
- 131072 && F && N();
429
+ 16385 && _ && y && ce(y, `${_}.Style`), o.$$.dirty & /*translationurl*/
430
+ 131072 && F && U();
431
431
  }, [
432
432
  y,
433
- _,
433
+ C,
434
434
  I,
435
435
  w,
436
436
  c,
437
437
  a,
438
- O,
439
- D,
438
+ q,
439
+ N,
440
440
  A,
441
441
  l,
442
442
  g,
443
443
  h,
444
444
  r,
445
445
  p,
446
- C,
447
- E,
446
+ _,
447
+ T,
448
448
  d,
449
449
  F,
450
450
  b,