@everymatrix/general-player-register-form-nd 1.94.4 → 1.94.6

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.
@@ -10,7 +10,7 @@ var Or = (t, r, e) => r in t ? et(t, r, { enumerable: !0, configurable: !0, writ
10
10
  it.call(r, e) && Or(t, e, r[e]);
11
11
  return t;
12
12
  }, Br = (t, r) => rt(t, tt(r));
13
- import { $ as wr, G as ot, a as nt, S as at, i as lt, s as ct, f as ne, b as dt, C as Qe, n as Fr, d as S, D as yr, r as ut, g as c, c as U, e as te, A as Je, j as s, h as B, l as P, F as Mr, m as h, k as d, u as _r, t as M, B as vr, o as ft, p as mt, H as Nr, E as Er, q as gt, v as pt, w as Ct, x as ht, y as bt, z as kt } from "./GeneralPlayerRegisterFormNd-DptTxBzO.js";
13
+ import { b as wr, $ as ot, c as nt, S as at, q as lt, w as ct, p as ne, f as dt, o as Qe, t as Fr, l as S, k as yr, v as ut, g as c, C as U, D as te, x as Je, e as s, r as B, s as P, n as Mr, E as h, m as d, H as _r, I as M, d as vr, i as ft, u as mt, F as Nr, y as Er, h as gt, z as pt, A as Ct, B as ht, j as bt, a as kt } from "./GeneralPlayerRegisterFormNd-CuyeIBrC.js";
14
14
  function _t({ withLocale: t, translations: r }) {
15
15
  wr.subscribe((e) => {
16
16
  e == null && (ot.set(r), wr.set(t));
@@ -365,7 +365,7 @@ function Wr(t) {
365
365
  }
366
366
  };
367
367
  }
368
- function Gr(t) {
368
+ function Vr(t) {
369
369
  let r, e = (
370
370
  /*mobilePrefix*/
371
371
  t[87].Prefix + ""
@@ -390,7 +390,7 @@ function Gr(t) {
390
390
  }
391
391
  };
392
392
  }
393
- function Vr(t) {
393
+ function Gr(t) {
394
394
  let r, e = (
395
395
  /*$_*/
396
396
  t[31]("registerMobileError") + ""
@@ -616,10 +616,10 @@ function Et(t) {
616
616
  let r, e, o, a, i, f, O, y, T, v, b, w, A, p = (
617
617
  /*$_*/
618
618
  t[31]("registerBackButton") + ""
619
- ), _, F, E, me, G, ge, ye = (
619
+ ), _, F, E, me, V, ge, ye = (
620
620
  /*$_*/
621
621
  t[31]("registerAddress") + ""
622
- ), Se, Fe, ve, Ze, x, Xe, Oe, pe, I, V, he = (
622
+ ), Se, Fe, ve, Ze, x, Xe, Oe, pe, I, G, he = (
623
623
  /*$_*/
624
624
  t[31]("registerPostalCode") + ""
625
625
  ), ae, Te, se, ce, H, ie, q, Ne, N, Ee, u = (
@@ -649,27 +649,27 @@ function Et(t) {
649
649
  ), X = (
650
650
  /*invalidCity*/
651
651
  t[9] && Lr(t)
652
- ), Ge = Qe(
652
+ ), Ve = Qe(
653
653
  /*countries*/
654
654
  t[20]
655
655
  ), L = [];
656
- for (let n = 0; n < Ge.length; n += 1)
657
- L[n] = Dr(xr(t, Ge, n));
658
- let Ve = Qe(
656
+ for (let n = 0; n < Ve.length; n += 1)
657
+ L[n] = Dr(xr(t, Ve, n));
658
+ let Ge = Qe(
659
659
  /*nationalities*/
660
660
  t[22]
661
661
  ), D = [];
662
- for (let n = 0; n < Ve.length; n += 1)
663
- D[n] = Wr(Ir(t, Ve, n));
662
+ for (let n = 0; n < Ge.length; n += 1)
663
+ D[n] = Wr(Ir(t, Ge, n));
664
664
  let Ke = Qe(
665
665
  /*mobilePrefixes*/
666
666
  t[25]
667
667
  ), W = [];
668
668
  for (let n = 0; n < Ke.length; n += 1)
669
- W[n] = Gr(Ur(t, Ke, n));
669
+ W[n] = Vr(Ur(t, Ke, n));
670
670
  let Y = (
671
671
  /*invalidMobile*/
672
- t[8] && Vr(t)
672
+ t[8] && Gr(t)
673
673
  ), $ = (
674
674
  /*userconsentsexist*/
675
675
  t[0] === "true" && Kr(t)
@@ -680,7 +680,7 @@ function Et(t) {
680
680
  return {
681
681
  c() {
682
682
  var n, m, j, or, nr, ar;
683
- Q && Q.c(), r = Mr(), e = h(), o = d("div"), a = h(), i = d("div"), f = d("div"), O = d("button"), y = _r("svg"), T = _r("defs"), v = _r("style"), b = M(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"), w = _r("path"), A = h(), _ = M(p), F = h(), E = d("form"), me = d("div"), G = d("div"), ge = d("label"), Se = M(ye), Fe = M(":"), ve = d("span"), ve.textContent = "*", Ze = h(), x = d("input"), Xe = h(), J && J.c(), pe = h(), I = d("div"), V = d("label"), ae = M(he), Te = M(":"), se = d("span"), se.textContent = "*", ce = h(), H = d("input"), ie = h(), Z && Z.c(), Ne = h(), N = d("div"), Ee = d("label"), k = M(u), lr = M(":"), ze = d("span"), ze.textContent = "*", cr = h(), oe = d("input"), dr = h(), X && X.c(), ur = h(), Ce = d("div"), we = d("label"), Ye = M(Be), $e = M(":"), je = d("span"), je.textContent = "*", er = h(), K = d("select");
683
+ Q && Q.c(), r = Mr(), e = h(), o = d("div"), a = h(), i = d("div"), f = d("div"), O = d("button"), y = _r("svg"), T = _r("defs"), v = _r("style"), b = M(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"), w = _r("path"), A = h(), _ = M(p), F = h(), E = d("form"), me = d("div"), V = d("div"), ge = d("label"), Se = M(ye), Fe = M(":"), ve = d("span"), ve.textContent = "*", Ze = h(), x = d("input"), Xe = h(), J && J.c(), pe = h(), I = d("div"), G = d("label"), ae = M(he), Te = M(":"), se = d("span"), se.textContent = "*", ce = h(), H = d("input"), ie = h(), Z && Z.c(), Ne = h(), N = d("div"), Ee = d("label"), k = M(u), lr = M(":"), ze = d("span"), ze.textContent = "*", cr = h(), oe = d("input"), dr = h(), X && X.c(), ur = h(), Ce = d("div"), we = d("label"), Ye = M(Be), $e = M(":"), je = d("span"), je.textContent = "*", er = h(), K = d("select");
684
684
  for (let re = 0; re < L.length; re += 1)
685
685
  L[re].c();
686
686
  rr = h(), be = d("div"), ke = d("label"), xe = M(Ie), fr = M(":"), He = d("span"), He.textContent = "*", mr = h(), ue = d("select");
@@ -694,10 +694,10 @@ function Et(t) {
694
694
  "data-sitekey",
695
695
  /*captchakey*/
696
696
  t[4]
697
- ), c(w, "class", "a"), c(w, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"), c(w, "transform", "translate(24 24) rotate(180)"), c(y, "xmlns", "http://www.w3.org/2000/svg"), c(y, "viewBox", "0 0 24 24"), c(O, "class", "BackButton"), c(f, "class", "RegisterFormHeader"), c(ve, "class", "FormRequired"), c(ge, "for", "Address"), c(x, "type", "text"), c(x, "id", "Address"), c(G, "class", Oe = "AddressContainer " + /*invalidAddress*/
697
+ ), c(w, "class", "a"), c(w, "d", "M12,0,9.818,2.182l8.26,8.26H0v3.117H18.078l-8.26,8.26L12,24,24,12Z"), c(w, "transform", "translate(24 24) rotate(180)"), c(y, "xmlns", "http://www.w3.org/2000/svg"), c(y, "viewBox", "0 0 24 24"), c(O, "class", "BackButton"), c(f, "class", "RegisterFormHeader"), c(ve, "class", "FormRequired"), c(ge, "for", "Address"), c(x, "type", "text"), c(x, "id", "Address"), c(V, "class", Oe = "AddressContainer " + /*invalidAddress*/
698
698
  (t[6] && !/*addressFocus*/
699
699
  t[10] ? "InvalidField" : "") + /*disabledFieldsList*/
700
- (((n = t[14]) == null ? void 0 : n.indexOf("address")) >= 0 ? "Hidden" : "")), c(se, "class", "FormRequired"), c(V, "for", "PostalCode"), c(H, "type", "text"), c(H, "id", "PostalCode"), c(I, "class", q = "PostalCodeContainer " + /*invalidPostalCode*/
700
+ (((n = t[14]) == null ? void 0 : n.indexOf("address")) >= 0 ? "Hidden" : "")), c(se, "class", "FormRequired"), c(G, "for", "PostalCode"), c(H, "type", "text"), c(H, "id", "PostalCode"), c(I, "class", q = "PostalCodeContainer " + /*invalidPostalCode*/
701
701
  (t[7] && !/*postalCodeFocus*/
702
702
  t[11] ? "InvalidField" : "") + /*disabledFieldsList*/
703
703
  (((m = t[14]) == null ? void 0 : m.indexOf("postalCode")) >= 0 ? "Hidden" : "")), c(me, "class", "AddressPostalCodeContainer"), c(ze, "class", "FormRequired"), c(Ee, "for", "City"), c(oe, "type", "text"), c(oe, "id", "City"), c(N, "class", de = "CityContainer " + /*invalidCity*/
@@ -724,11 +724,11 @@ function Et(t) {
724
724
  t[28], c(E, "class", "RegisterFormContent");
725
725
  },
726
726
  m(n, m) {
727
- Q && Q.m(document.head, null), s(document.head, r), B(n, e, m), B(n, o, m), B(n, a, m), B(n, i, m), s(i, f), s(f, O), s(O, y), s(y, T), s(T, v), s(v, b), s(y, w), s(O, A), s(O, _), s(i, F), s(i, E), s(E, me), s(me, G), s(G, ge), s(ge, Se), s(ge, Fe), s(ge, ve), s(G, Ze), s(G, x), te(
727
+ Q && Q.m(document.head, null), s(document.head, r), B(n, e, m), B(n, o, m), B(n, a, m), B(n, i, m), s(i, f), s(f, O), s(O, y), s(y, T), s(T, v), s(v, b), s(y, w), s(O, A), s(O, _), s(i, F), s(i, E), s(E, me), s(me, V), s(V, ge), s(ge, Se), s(ge, Fe), s(ge, ve), s(V, Ze), s(V, x), te(
728
728
  x,
729
729
  /*address*/
730
730
  t[17]
731
- ), s(G, Xe), J && J.m(G, null), s(me, pe), s(me, I), s(I, V), s(V, ae), s(V, Te), s(V, se), s(I, ce), s(I, H), te(
731
+ ), s(V, Xe), J && J.m(V, null), s(me, pe), s(me, I), s(I, G), s(G, ae), s(G, Te), s(G, se), s(I, ce), s(I, H), te(
732
732
  H,
733
733
  /*postalCode*/
734
734
  t[18]
@@ -913,11 +913,11 @@ function Et(t) {
913
913
  /*address*/
914
914
  n[17]
915
915
  ), /*invalidAddress*/
916
- n[6] ? J ? J.p(n, m) : (J = qr(n), J.c(), J.m(G, null)) : J && (J.d(1), J = null), m[0] & /*invalidAddress, addressFocus, disabledFieldsList*/
916
+ n[6] ? J ? J.p(n, m) : (J = qr(n), J.c(), J.m(V, null)) : J && (J.d(1), J = null), m[0] & /*invalidAddress, addressFocus, disabledFieldsList*/
917
917
  17472 && Oe !== (Oe = "AddressContainer " + /*invalidAddress*/
918
918
  (n[6] && !/*addressFocus*/
919
919
  n[10] ? "InvalidField" : "") + /*disabledFieldsList*/
920
- (((j = n[14]) == null ? void 0 : j.indexOf("address")) >= 0 ? "Hidden" : "")) && c(G, "class", Oe), m[1] & /*$_*/
920
+ (((j = n[14]) == null ? void 0 : j.indexOf("address")) >= 0 ? "Hidden" : "")) && c(V, "class", Oe), m[1] & /*$_*/
921
921
  1 && he !== (he = /*$_*/
922
922
  n[31]("registerPostalCode") + "") && U(ae, he), m[0] & /*postalCode*/
923
923
  262144 && H.value !== /*postalCode*/
@@ -947,18 +947,18 @@ function Et(t) {
947
947
  1 && Be !== (Be = /*$_*/
948
948
  n[31]("registerCountry") + "") && U(Ye, Be), m[0] & /*countries*/
949
949
  1048576) {
950
- Ge = Qe(
950
+ Ve = Qe(
951
951
  /*countries*/
952
952
  n[20]
953
953
  );
954
954
  let g;
955
- for (g = 0; g < Ge.length; g += 1) {
956
- const Pe = xr(n, Ge, g);
955
+ for (g = 0; g < Ve.length; g += 1) {
956
+ const Pe = xr(n, Ve, g);
957
957
  L[g] ? L[g].p(Pe, m) : (L[g] = Dr(Pe), L[g].c(), L[g].m(K, null));
958
958
  }
959
959
  for (; g < L.length; g += 1)
960
960
  L[g].d(1);
961
- L.length = Ge.length;
961
+ L.length = Ve.length;
962
962
  }
963
963
  if (m[0] & /*countrySelected, countries*/
964
964
  3145728 && Je(
@@ -971,18 +971,18 @@ function Et(t) {
971
971
  1 && Ie !== (Ie = /*$_*/
972
972
  n[31]("registerNationality") + "") && U(xe, Ie), m[0] & /*nationalities*/
973
973
  4194304) {
974
- Ve = Qe(
974
+ Ge = Qe(
975
975
  /*nationalities*/
976
976
  n[22]
977
977
  );
978
978
  let g;
979
- for (g = 0; g < Ve.length; g += 1) {
980
- const Pe = Ir(n, Ve, g);
979
+ for (g = 0; g < Ge.length; g += 1) {
980
+ const Pe = Ir(n, Ge, g);
981
981
  D[g] ? D[g].p(Pe, m) : (D[g] = Wr(Pe), D[g].c(), D[g].m(ue, null));
982
982
  }
983
983
  for (; g < D.length; g += 1)
984
984
  D[g].d(1);
985
- D.length = Ve.length;
985
+ D.length = Ge.length;
986
986
  }
987
987
  if (m[0] & /*nationalitySelected, nationalities*/
988
988
  12582912 && Je(
@@ -1002,7 +1002,7 @@ function Et(t) {
1002
1002
  let g;
1003
1003
  for (g = 0; g < Ke.length; g += 1) {
1004
1004
  const Pe = Ur(n, Ke, g);
1005
- W[g] ? W[g].p(Pe, m) : (W[g] = Gr(Pe), W[g].c(), W[g].m(fe, null));
1005
+ W[g] ? W[g].p(Pe, m) : (W[g] = Vr(Pe), W[g].c(), W[g].m(fe, null));
1006
1006
  }
1007
1007
  for (; g < W.length; g += 1)
1008
1008
  W[g].d(1);
@@ -1020,7 +1020,7 @@ function Et(t) {
1020
1020
  /*mobile*/
1021
1021
  n[24]
1022
1022
  ), /*invalidMobile*/
1023
- n[8] ? Y ? Y.p(n, m) : (Y = Vr(n), Y.c(), Y.m(le, null)) : Y && (Y.d(1), Y = null), m[0] & /*invalidMobile, mobileFocus, disabledFieldsList*/
1023
+ n[8] ? Y ? Y.p(n, m) : (Y = Gr(n), Y.c(), Y.m(le, null)) : Y && (Y.d(1), Y = null), m[0] & /*invalidMobile, mobileFocus, disabledFieldsList*/
1024
1024
  20736 && De !== (De = "MobileContainer " + /*invalidMobile*/
1025
1025
  (n[8] && !/*mobileFocus*/
1026
1026
  n[12] ? "InvalidField" : "") + /*disabledFieldsList*/
@@ -1042,7 +1042,7 @@ function Et(t) {
1042
1042
  function wt(t, r, e) {
1043
1043
  let o;
1044
1044
  ft(t, kt, (l) => e(31, o = l));
1045
- let { userconsentsexist: a = "false" } = r, { termsconditions: i = "false" } = r, { smsoffers: f = "false" } = r, { emailmarketing: O = "false" } = r, { endpoint: y = "" } = r, { captchakey: T = "" } = r, { lang: v = "" } = r, { disabledfields: b = "" } = r, { defaultoptions: w = "" } = r, { mbsource: A } = r, { clientstyling: p = "" } = r, { clientstylingurl: _ = "" } = r, { translationurl: F = "" } = r, E, me, G, ge, ye = !1, Se = !1, Fe = !1, ve = !1, Ze, x, Xe = !1, Oe = "", pe = "", I = "", V = "", he = [], ae = "", Te = [], se = "", ce = "", H = [], ie = "", q = !1, Ne = !1, N, Ee, u = { mobile: {}, userConsents: {} }, k = {
1045
+ let { userconsentsexist: a = "false" } = r, { termsconditions: i = "false" } = r, { smsoffers: f = "false" } = r, { emailmarketing: O = "false" } = r, { endpoint: y = "" } = r, { captchakey: T = "" } = r, { lang: v = "" } = r, { disabledfields: b = "" } = r, { defaultoptions: w = "" } = r, { mbsource: A } = r, { clientstyling: p = "" } = r, { clientstylingurl: _ = "" } = r, { translationurl: F = "" } = r, E, me, V, ge, ye = !1, Se = !1, Fe = !1, ve = !1, Ze, x, Xe = !1, Oe = "", pe = "", I = "", G = "", he = [], ae = "", Te = [], se = "", ce = "", H = [], ie = "", q = !1, Ne = !1, N, Ee, u = { mobile: {}, userConsents: {} }, k = {
1046
1046
  address1: !1,
1047
1047
  postalCode: !1,
1048
1048
  city: !1,
@@ -1085,7 +1085,7 @@ function wt(t, r, e) {
1085
1085
  e(18, I = C), Be();
1086
1086
  break;
1087
1087
  case "city":
1088
- e(19, V = C), $e();
1088
+ e(19, G = C), $e();
1089
1089
  break;
1090
1090
  case "country":
1091
1091
  e(21, ae = C), e(30, k.country = !0, k);
@@ -1106,10 +1106,10 @@ function wt(t, r, e) {
1106
1106
  e(29, u.address1 = pe, u), e(6, E = !ur()), e(30, k.address1 = !E, k), de();
1107
1107
  }, we = () => !!(I && I.length <= 20), Be = () => {
1108
1108
  e(29, u.postalCode = I, u), e(7, me = !we()), e(30, k.postalCode = !me, k), de();
1109
- }, Ye = () => !!(V && V.length <= 50), $e = () => {
1110
- e(29, u.city = V, u), e(9, ge = !Ye()), e(30, k.city = !ge, k), de();
1109
+ }, Ye = () => !!(G && G.length <= 50), $e = () => {
1110
+ e(29, u.city = G, u), e(9, ge = !Ye()), e(30, k.city = !ge, k), de();
1111
1111
  }, je = () => !!(ce && ce.length >= 5 && ce.length <= 12), er = () => {
1112
- e(29, u.mobile.number = ce, u), e(8, G = !je()), e(30, k.mobile = !G, k), de();
1112
+ e(29, u.mobile.number = ce, u), e(8, V = !je()), e(30, k.mobile = !V, k), de();
1113
1113
  }, K = (l) => {
1114
1114
  l === "GeneralOffers" ? (e(27, q = !q), e(29, u.userConsents.sms = q, u), e(29, u.userConsents.emailmarketing = q, u)) : l === "SmsOffers" ? (e(29, u.userConsents.sms = !u.userConsents.sms, u), u.userConsents.sms && e(27, q = !0)) : l === "EmailOffers" && (e(29, u.userConsents.emailmarketing = !u.userConsents.emailmarketing, u), u.userConsents.emailmarketing && e(27, q = !0)), Ue();
1115
1115
  }, Ue = () => {
@@ -1175,7 +1175,7 @@ function wt(t, r, e) {
1175
1175
  }
1176
1176
  const Me = () => e(11, Se = !0), Re = () => e(11, Se = !1);
1177
1177
  function tr() {
1178
- V = this.value, e(19, V);
1178
+ G = this.value, e(19, G);
1179
1179
  }
1180
1180
  const pr = () => e(13, ve = !0), Le = () => e(13, ve = !1);
1181
1181
  function Cr() {
@@ -1222,7 +1222,7 @@ function wt(t, r, e) {
1222
1222
  N,
1223
1223
  E,
1224
1224
  me,
1225
- G,
1225
+ V,
1226
1226
  ge,
1227
1227
  ye,
1228
1228
  Se,
@@ -1233,7 +1233,7 @@ function wt(t, r, e) {
1233
1233
  Oe,
1234
1234
  pe,
1235
1235
  I,
1236
- V,
1236
+ G,
1237
1237
  he,
1238
1238
  ae,
1239
1239
  Te,
@@ -1,4 +1,4 @@
1
- var D = (o, e, i) => new Promise((n, r) => {
1
+ var L = (o, e, i) => new Promise((n, r) => {
2
2
  var a = (d) => {
3
3
  try {
4
4
  c(i.next(d));
@@ -14,10 +14,10 @@ var D = (o, e, i) => new Promise((n, r) => {
14
14
  }, c = (d) => d.done ? n(d.value) : Promise.resolve(d.value).then(a, m);
15
15
  c((i = i.apply(o, e)).next());
16
16
  });
17
- import { $ as G, G as ee, a as te, S as ie, i as oe, s as re, f as E, b as ne, n as J, d as R, r as ae, c as T, e as K, g as p, h as P, j as s, l as L, k as w, m as I, t as k, o as se, p as le, q as de, v as ce, w as ue, x as me, y as fe, z as ve } from "./GeneralPlayerRegisterFormNd-DptTxBzO.js";
17
+ import { b as J, $ as ee, c as te, S as ie, q as oe, w as re, p as E, f as ne, t as G, l as R, v as ae, C as T, D as K, g as p, r as P, e as s, s as D, m as w, E as I, I as k, i as se, u as le, h as de, z as ce, A as ue, B as me, j as fe, a as ve } from "./GeneralPlayerRegisterFormNd-CuyeIBrC.js";
18
18
  function ge({ withLocale: o, translations: e }) {
19
- G.subscribe((i) => {
20
- i == null && (ee.set(e), G.set(o));
19
+ J.subscribe((i) => {
20
+ i == null && (ee.set(e), J.set(o));
21
21
  });
22
22
  }
23
23
  function W(o, e) {
@@ -258,10 +258,10 @@ function be(o) {
258
258
  ), c, d, h, F, u, j, M, V, A, _, y = (
259
259
  /*$_*/
260
260
  o[5]("activate") + ""
261
- ), x, H, b, C = (
261
+ ), B, H, b, C = (
262
262
  /*$_*/
263
263
  o[5]("resend") + ""
264
- ), B, O, U, q;
264
+ ), U, O, x, q;
265
265
  function N(t, l) {
266
266
  return (
267
267
  /*isSmsValid*/
@@ -278,7 +278,7 @@ function be(o) {
278
278
  );
279
279
  return {
280
280
  c() {
281
- e = w("div"), i = w("h3"), S.c(), n = I(), r = w("div"), a = w("label"), c = k(m), d = k(":"), h = w("span"), h.textContent = "*", F = I(), u = w("input"), j = I(), f && f.c(), V = I(), v && v.c(), A = I(), _ = w("button"), x = k(y), H = I(), b = w("button"), B = k(C), O = I(), g && g.c(), p(i, "class", "Title"), p(h, "class", "FormRequired"), p(a, "for", "SmsCode"), p(u, "type", "text"), p(u, "id", "SmsCode"), p(u, "inputmode", "numeric"), p(u, "pattern", "[0-9]*"), p(u, "maxlength", "6"), p(r, "class", M = "Field SmsVerificationField " + (/*isSmsValid*/
281
+ e = w("div"), i = w("h3"), S.c(), n = I(), r = w("div"), a = w("label"), c = k(m), d = k(":"), h = w("span"), h.textContent = "*", F = I(), u = w("input"), j = I(), f && f.c(), V = I(), v && v.c(), A = I(), _ = w("button"), B = k(y), H = I(), b = w("button"), U = k(C), O = I(), g && g.c(), p(i, "class", "Title"), p(h, "class", "FormRequired"), p(a, "for", "SmsCode"), p(u, "type", "text"), p(u, "id", "SmsCode"), p(u, "inputmode", "numeric"), p(u, "pattern", "[0-9]*"), p(u, "maxlength", "6"), p(r, "class", M = "Field SmsVerificationField " + (/*isSmsValid*/
282
282
  o[2] ? "" : "InvalidField")), p(_, "class", "Button SmsVerificationValidate"), p(b, "class", "Button SmsVerificationResend"), b.disabled = /*timer*/
283
283
  o[3], p(e, "class", "Container SmsVerificationContainer");
284
284
  },
@@ -287,32 +287,32 @@ function be(o) {
287
287
  u,
288
288
  /*smsCode*/
289
289
  o[1]
290
- ), s(r, j), f && f.m(r, null), s(e, V), v && v.m(e, null), s(e, A), s(e, _), s(_, x), s(e, H), s(e, b), s(b, B), s(b, O), g && g.m(b, null), o[20](e), U || (q = [
291
- L(
290
+ ), s(r, j), f && f.m(r, null), s(e, V), v && v.m(e, null), s(e, A), s(e, _), s(_, B), s(e, H), s(e, b), s(b, U), s(b, O), g && g.m(b, null), o[20](e), x || (q = [
291
+ D(
292
292
  u,
293
293
  "input",
294
294
  /*input_input_handler*/
295
295
  o[18]
296
296
  ),
297
- L(
297
+ D(
298
298
  u,
299
299
  "keydown",
300
300
  /*keydown_handler*/
301
301
  o[19]
302
302
  ),
303
- L(
303
+ D(
304
304
  _,
305
305
  "click",
306
306
  /*activateUser*/
307
307
  o[6]
308
308
  ),
309
- L(
309
+ D(
310
310
  b,
311
311
  "click",
312
312
  /*resendCode*/
313
313
  o[7]
314
314
  )
315
- ], U = !0);
315
+ ], x = !0);
316
316
  },
317
317
  p(t, [l]) {
318
318
  z === (z = N(t)) && S ? S.p(t, l) : (S.d(1), S = z(t), S && (S.c(), S.m(i, null))), l & /*$_*/
@@ -329,25 +329,25 @@ function be(o) {
329
329
  t[2] ? "" : "InvalidField")) && p(r, "class", M), /*timer*/
330
330
  t[3] ? v ? v.p(t, l) : (v = Z(t), v.c(), v.m(e, A)) : v && (v.d(1), v = null), l & /*$_*/
331
331
  32 && y !== (y = /*$_*/
332
- t[5]("activate") + "") && T(x, y), l & /*$_*/
332
+ t[5]("activate") + "") && T(B, y), l & /*$_*/
333
333
  32 && C !== (C = /*$_*/
334
- t[5]("resend") + "") && T(B, C), /*timer*/
334
+ t[5]("resend") + "") && T(U, C), /*timer*/
335
335
  t[3] ? g ? g.p(t, l) : (g = $(t), g.c(), g.m(b, null)) : g && (g.d(1), g = null), l & /*timer*/
336
336
  8 && (b.disabled = /*timer*/
337
337
  t[3]);
338
338
  },
339
- i: J,
340
- o: J,
339
+ i: G,
340
+ o: G,
341
341
  d(t) {
342
- t && R(e), S.d(), f && f.d(), v && v.d(), g && g.d(), o[20](null), U = !1, ae(q);
342
+ t && R(e), S.d(), f && f.d(), v && v.d(), g && g.d(), o[20](null), x = !1, ae(q);
343
343
  }
344
344
  };
345
345
  }
346
346
  function Se(o, e, i) {
347
347
  let n;
348
348
  se(o, ve, (t) => i(5, n = t));
349
- let { endpoint: r = "" } = e, { tokenid: a = "" } = e, { playerid: m = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: h } = e, { clientstyling: F = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, _, y, x, H = +localStorage.getItem("smsTimer") || 0, b = Date.now() / 1e3 - H, C = 60 - Math.floor(b);
350
- const B = { numeric: /^[0-9]{0,6}$/ };
349
+ let { endpoint: r = "" } = e, { tokenid: a = "" } = e, { playerid: m = "" } = e, { smstemplate: c = "Please use this code {0} to activate your accout" } = e, { number: d = "" } = e, { mbsource: h } = e, { clientstyling: F = "" } = e, { clientstylingurl: u = "" } = e, { translationurl: j = "" } = e, M, V = !0, A = !1, _, y, B, H = +localStorage.getItem("smsTimer") || 0, b = Date.now() / 1e3 - H, C = 60 - Math.floor(b);
350
+ const U = { numeric: /^[0-9]{0,6}$/ };
351
351
  ge({ withLocale: "en", translations: {} });
352
352
  const O = () => {
353
353
  fetch(j).then((l) => l.json()).then((l) => {
@@ -361,7 +361,7 @@ function Se(o, e, i) {
361
361
  Object.keys(Q).forEach((t) => {
362
362
  W(t, Q[t]);
363
363
  });
364
- const U = () => D(this, null, function* () {
364
+ const x = () => L(this, null, function* () {
365
365
  try {
366
366
  if ((yield fetch(`${r}/v1/player/${m}/activateSMS?tokenId=${a}&validationCode=${M}`, {
367
367
  headers: {
@@ -384,7 +384,7 @@ function Se(o, e, i) {
384
384
  } catch (t) {
385
385
  console.log(t);
386
386
  }
387
- }), q = () => D(this, null, function* () {
387
+ }), q = () => L(this, null, function* () {
388
388
  localStorage.setItem("smsTimer", JSON.stringify(Math.floor(Date.now() / 1e3))), z();
389
389
  try {
390
390
  const t = yield fetch(`${r}/v1/player/sms/token`, {
@@ -416,7 +416,7 @@ function Se(o, e, i) {
416
416
  1e3
417
417
  ));
418
418
  }, S = (t) => {
419
- !B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
419
+ !U.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
420
420
  };
421
421
  le(() => {
422
422
  if (!m || !d) {
@@ -442,7 +442,7 @@ function Se(o, e, i) {
442
442
  5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
443
443
  32769 && F && y && ce(y, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
444
444
  65537 && u && y && ue(y, u), o.$$.dirty & /*mbsource, customStylingContainer*/
445
- 16385 && h && y && me(y, `${h}.Style`, x), o.$$.dirty & /*translationurl*/
445
+ 16385 && h && y && me(y, `${h}.Style`, B), o.$$.dirty & /*translationurl*/
446
446
  131072 && j && O();
447
447
  }, [
448
448
  y,
@@ -451,7 +451,7 @@ function Se(o, e, i) {
451
451
  _,
452
452
  C,
453
453
  n,
454
- U,
454
+ x,
455
455
  q,
456
456
  S,
457
457
  a,
@@ -1,4 +1,4 @@
1
- import { $ as Y, G as $, a as ee, S as te, i as ie, s as oe, f as E, b as re, n as G, d as R, r as ne, e as T, g as J, h as f, j as P, k as a, l as L, m as k, o as I, t as S, p as ae, q as se, u as le, x as de, y as ce, z as ue, c as me, w as fe } from "./GeneralPlayerRegisterFormNd-ByBdXbSl.js";
1
+ import { b as Y, $, c as ee, S as te, q as ie, w as oe, p as E, f as re, t as J, l as R, v as ne, C as T, D as G, g as f, r as P, e as a, s as D, m as k, E as I, I as S, i as ae, u as se, h as le, z as de, A as ce, B as ue, j as me, a as fe } from "./GeneralPlayerRegisterFormNd-j7To8dVU.js";
2
2
  function ve({ withLocale: o, translations: e }) {
3
3
  Y.subscribe((i) => {
4
4
  i == null && ($.set(e), Y.set(o));
@@ -242,10 +242,10 @@ function he(o) {
242
242
  ), g, y, C, F, d, j, M, V, A, w, p = (
243
243
  /*$_*/
244
244
  o[5]("activate") + ""
245
- ), x, H, h, _ = (
245
+ ), B, H, h, _ = (
246
246
  /*$_*/
247
247
  o[5]("resend") + ""
248
- ), B, O, U, q;
248
+ ), U, O, x, q;
249
249
  function N(t, l) {
250
250
  return (
251
251
  /*isSmsValid*/
@@ -262,48 +262,48 @@ function he(o) {
262
262
  );
263
263
  return {
264
264
  c() {
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*/
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"), B = S(p), H = I(), h = k("button"), U = 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
266
  o[2] ? "" : "InvalidField")), f(w, "class", "Button SmsVerificationValidate"), f(h, "class", "Button SmsVerificationResend"), h.disabled = /*timer*/
267
267
  o[3], f(e, "class", "Container SmsVerificationContainer");
268
268
  },
269
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), J(
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
- ), 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
- L(
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, B), a(e, H), a(e, h), a(h, U), a(h, O), m && m.m(h, null), o[20](e), x || (q = [
275
+ D(
276
276
  d,
277
277
  "input",
278
278
  /*input_input_handler*/
279
279
  o[18]
280
280
  ),
281
- L(
281
+ D(
282
282
  d,
283
283
  "keydown",
284
284
  /*keydown_handler*/
285
285
  o[19]
286
286
  ),
287
- L(
287
+ D(
288
288
  w,
289
289
  "click",
290
290
  /*activateUser*/
291
291
  o[6]
292
292
  ),
293
- L(
293
+ D(
294
294
  h,
295
295
  "click",
296
296
  /*resendCode*/
297
297
  o[7]
298
298
  )
299
- ], U = !0);
299
+ ], x = !0);
300
300
  },
301
301
  p(t, [l]) {
302
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
303
  32 && v !== (v = /*$_*/
304
304
  t[5]("code") + "") && T(g, v), l & /*smsCode*/
305
305
  2 && d.value !== /*smsCode*/
306
- t[1] && J(
306
+ t[1] && G(
307
307
  d,
308
308
  /*smsCode*/
309
309
  t[1]
@@ -313,30 +313,30 @@ function he(o) {
313
313
  t[2] ? "" : "InvalidField")) && f(r, "class", M), /*timer*/
314
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
315
  32 && p !== (p = /*$_*/
316
- t[5]("activate") + "") && T(x, p), l & /*$_*/
316
+ t[5]("activate") + "") && T(B, p), l & /*$_*/
317
317
  32 && _ !== (_ = /*$_*/
318
- t[5]("resend") + "") && T(B, _), /*timer*/
318
+ t[5]("resend") + "") && T(U, _), /*timer*/
319
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
320
  8 && (h.disabled = /*timer*/
321
321
  t[3]);
322
322
  },
323
- i: G,
324
- o: G,
323
+ i: J,
324
+ o: J,
325
325
  d(t) {
326
- t && R(e), b.d(), c && c.d(), u && u.d(), m && m.d(), o[20](null), U = !1, ne(q);
326
+ t && R(e), b.d(), c && c.d(), u && u.d(), m && m.d(), o[20](null), x = !1, ne(q);
327
327
  }
328
328
  };
329
329
  }
330
330
  function be(o, e, i) {
331
331
  let n;
332
332
  ae(o, fe, (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}$/ };
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, B, H = +localStorage.getItem("smsTimer") || 0, h = Date.now() / 1e3 - H, _ = 60 - Math.floor(h);
334
+ const U = { numeric: /^[0-9]{0,6}$/ };
335
335
  ve({ withLocale: "en", translations: {} });
336
336
  const O = () => {
337
337
  fetch(j).then((l) => l.json()).then((l) => {
338
- Object.keys(l).forEach((D) => {
339
- K(D, l[D]);
338
+ Object.keys(l).forEach((L) => {
339
+ K(L, l[L]);
340
340
  });
341
341
  }).catch((l) => {
342
342
  console.log(l);
@@ -345,7 +345,7 @@ function be(o, e, i) {
345
345
  Object.keys(W).forEach((t) => {
346
346
  K(t, W[t]);
347
347
  });
348
- const U = async () => {
348
+ const x = async () => {
349
349
  try {
350
350
  if ((await fetch(`${r}/v1/player/${v}/activateSMS?tokenId=${s}&validationCode=${M}`, {
351
351
  headers: {
@@ -400,7 +400,7 @@ function be(o, e, i) {
400
400
  1e3
401
401
  ));
402
402
  }, b = (t) => {
403
- !B.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
403
+ !U.numeric.test(t.key) && t.keyCode !== 8 && t.keyCode !== 9 && t.keyCode !== 46 && t.preventDefault();
404
404
  };
405
405
  se(() => {
406
406
  if (!v || !y) {
@@ -426,7 +426,7 @@ function be(o, e, i) {
426
426
  5632, o.$$.dirty & /*clientstyling, customStylingContainer*/
427
427
  32769 && F && p && de(p, F), o.$$.dirty & /*clientstylingurl, customStylingContainer*/
428
428
  65537 && d && p && ce(p, d), o.$$.dirty & /*mbsource, customStylingContainer*/
429
- 16385 && C && p && ue(p, `${C}.Style`, x), o.$$.dirty & /*translationurl*/
429
+ 16385 && C && p && ue(p, `${C}.Style`, B), o.$$.dirty & /*translationurl*/
430
430
  131072 && j && O();
431
431
  }, [
432
432
  p,
@@ -435,7 +435,7 @@ function be(o, e, i) {
435
435
  w,
436
436
  _,
437
437
  n,
438
- U,
438
+ x,
439
439
  q,
440
440
  b,
441
441
  s,
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormNd-DptTxBzO.js").then((e) => e.I).then(({ default: e }) => {
13
+ customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterFormNd-CuyeIBrC.js").then((e) => e.G).then(({ default: e }) => {
14
14
  !customElements.get("general-player-register-form-nd") && customElements.define("general-player-register-form-nd", e.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { I as n } from "../components/GeneralPlayerRegisterFormNd-ByBdXbSl.js";
1
+ import { G as n } from "../components/GeneralPlayerRegisterFormNd-j7To8dVU.js";
2
2
  function s(t) {
3
3
  return function(...r) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/general-player-register-form-nd",
3
- "version": "1.94.4",
3
+ "version": "1.94.6",
4
4
  "type": "module",
5
5
  "main": "es2015/general-player-register-form-nd.cjs",
6
6
  "module": "esnext/general-player-register-form-nd.js",