@everymatrix/general-player-login-form 1.63.3 → 1.64.1

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,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, a as $, b as ee, S as te, i as ie, s as oe, f as M, c as re, n as J, d as R, r as ne, e as T, g as G, h as y, j as P, k as l, l as q, m as w, o as z, t as k, p as ae, q as se, u as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerLoginForm-fwtz_NeI.js";
17
+ import { $ as Y, a as $, b as ee, S as te, i as ie, s as oe, f as M, c as re, n as J, d as R, r as ne, e as E, g as G, h as y, j as P, k as l, l as L, m as w, o as z, t as k, p as ae, q as se, u as le, v as de, w as ce, x as ue, y as me, z as fe } from "./GeneralPlayerLoginForm-DjyJXynH.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), G(
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), G(
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] && G(
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: J,
340
340
  o: J,
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 +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-i4oeSokc.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-BsDmrar4.cjs")).then(e=>e.GeneralPlayerLoginForm_ce).then(({default:e})=>{!customElements.get("general-player-login-form")&&customElements.define("general-player-login-form",e.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-fwtz_NeI.js").then((e) => e.G).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralPlayerLoginForm-DjyJXynH.js").then((e) => e.G).then(({ default: e }) => {
14
14
  !customElements.get("general-player-login-form") && customElements.define("general-player-login-form", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { G as r } from "../components/GeneralPlayerLoginForm-DS12mJtt.js";
1
+ import { G as r } from "../components/GeneralPlayerLoginForm-BNFAIasR.js";
2
2
  function s(t) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-login-form",
3
- "version": "1.63.3",
3
+ "version": "1.64.1",
4
4
  "type": "module",
5
5
  "main": "es2015/general-player-login-form.cjs",
6
6
  "module": "esnext/general-player-login-form.js",