@everymatrix/general-player-register-form 1.94.3 → 1.94.5
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.
- package/components/{GeneralPlayerRegisterForm-BnRgZ7r2.js → GeneralPlayerRegisterForm-B_X7fQIv.js} +39 -39
- package/components/{GeneralPlayerRegisterForm-DkUp5-ze.js → GeneralPlayerRegisterForm-CSiLhECi.js} +39 -39
- package/components/{GeneralPlayerRegisterFormStep1-CcUG3PlY.js → GeneralPlayerRegisterFormStep1-BMHYgnfZ.js} +38 -38
- package/components/{GeneralPlayerRegisterFormStep1-DdQw5Sxj.js → GeneralPlayerRegisterFormStep1-CMPZi1JN.js} +38 -38
- package/components/{GeneralPlayerRegisterFormStep2-ibhZJuL5.js → GeneralPlayerRegisterFormStep2-B3140fSG.js} +1 -1
- package/components/{GeneralPlayerRegisterFormStep2-DCtPCA-O.js → GeneralPlayerRegisterFormStep2-Cqgu7ded.js} +1 -1
- package/components/{GeneralPlayerRegisterFormStep3-kxkTfs8b.js → GeneralPlayerRegisterFormStep3-BZ6euAod.js} +38 -38
- package/components/{GeneralPlayerRegisterFormStep3-_1IX6ALN.js → GeneralPlayerRegisterFormStep3-CV_cw6BQ.js} +36 -36
- package/components/{GeneralPlayerSmsVerificationForm-DuuVAS6L.js → GeneralPlayerSmsVerificationForm-XmiF1wtU.js} +25 -25
- package/components/{GeneralPlayerSmsVerificationForm-DjreDXrK.js → GeneralPlayerSmsVerificationForm-dT_9ATK_.js} +25 -25
- package/es2015/general-player-register-form.js +1 -1
- package/esnext/general-player-register-form.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as kr, $ as Wr, c as Vr, S as Gr, q as Kr, w as Qr, p as ie, f as Jr, o as Ge, t as vr, l as S, k as Cr, v as Zr, g as c, C as j, D as ee, x as Ke, e as s, r as B, s as P, n as _r, E as h, m as d, H as pr, I as M, d as hr, i as Xr, u as Yr, F as Er, y as br, h as $r, z as et, A as rt, B as tt, j as st, a as it } from "./GeneralPlayerRegisterForm-B_X7fQIv.js";
|
|
2
2
|
function ot({ withLocale: t, translations: r }) {
|
|
3
3
|
kr.subscribe((e) => {
|
|
4
4
|
e == null && (Wr.set(r), kr.set(t));
|
|
5
5
|
});
|
|
6
6
|
}
|
|
7
7
|
function wr(t, r) {
|
|
8
|
-
|
|
8
|
+
Vr(t, r);
|
|
9
9
|
}
|
|
10
10
|
function nt(t) {
|
|
11
11
|
kr.set(t);
|
|
@@ -607,7 +607,7 @@ function lt(t) {
|
|
|
607
607
|
), _, F, E, ue, W, fe, ke = (
|
|
608
608
|
/*$_*/
|
|
609
609
|
t[31]("registerAddress") + ""
|
|
610
|
-
), Ae, Te, _e, Qe, I, Je, Pe, me, U,
|
|
610
|
+
), Ae, Te, _e, Qe, I, Je, Pe, me, U, V, pe = (
|
|
611
611
|
/*$_*/
|
|
612
612
|
t[31]("registerPostalCode") + ""
|
|
613
613
|
), oe, Se, re, ae, x, te, H, Be, N, ye, u = (
|
|
@@ -616,7 +616,7 @@ function lt(t) {
|
|
|
616
616
|
), k, sr, Fe, ir, se, or, le, nr, ge, ve, Oe = (
|
|
617
617
|
/*$_*/
|
|
618
618
|
t[31]("registerCountry") + ""
|
|
619
|
-
), Ze, Xe, Ne, Ye,
|
|
619
|
+
), Ze, Xe, Ne, Ye, G, ze, $e, Ce, he, je = (
|
|
620
620
|
/*$_*/
|
|
621
621
|
t[31]("registerNationality") + ""
|
|
622
622
|
), Ue, ar, Ie, lr, ce, xe, cr, ne, Ee, He = (
|
|
@@ -637,24 +637,24 @@ function lt(t) {
|
|
|
637
637
|
), Z = (
|
|
638
638
|
/*invalidCity*/
|
|
639
639
|
t[9] && Fr(t)
|
|
640
|
-
), De =
|
|
640
|
+
), De = Ge(
|
|
641
641
|
/*countries*/
|
|
642
642
|
t[20]
|
|
643
643
|
), R = [];
|
|
644
644
|
for (let o = 0; o < De.length; o += 1)
|
|
645
645
|
R[o] = Nr(Sr(t, De, o));
|
|
646
|
-
let We =
|
|
646
|
+
let We = Ge(
|
|
647
647
|
/*nationalities*/
|
|
648
648
|
t[22]
|
|
649
649
|
), L = [];
|
|
650
650
|
for (let o = 0; o < We.length; o += 1)
|
|
651
651
|
L[o] = zr(Pr(t, We, o));
|
|
652
|
-
let
|
|
652
|
+
let Ve = Ge(
|
|
653
653
|
/*mobilePrefixes*/
|
|
654
654
|
t[25]
|
|
655
655
|
), D = [];
|
|
656
|
-
for (let o = 0; o <
|
|
657
|
-
D[o] = jr(Ar(t,
|
|
656
|
+
for (let o = 0; o < Ve.length; o += 1)
|
|
657
|
+
D[o] = jr(Ar(t, Ve, o));
|
|
658
658
|
let X = (
|
|
659
659
|
/*invalidMobile*/
|
|
660
660
|
t[8] && Ur(t)
|
|
@@ -667,7 +667,7 @@ function lt(t) {
|
|
|
667
667
|
);
|
|
668
668
|
return {
|
|
669
669
|
c() {
|
|
670
|
-
K && K.c(), r = _r(), e = h(), n = d("div"), a = h(), i = d("div"), f = d("div"), O = d("button"), y = pr("svg"), T = pr("defs"), v = pr("style"), b = M(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"), w = pr("path"), A = h(), _ = M(p), F = h(), E = d("form"), ue = d("div"), W = d("div"), fe = d("label"), Ae = M(ke), Te = M(":"), _e = d("span"), _e.textContent = "*", Qe = h(), I = d("input"), Je = h(), Q && Q.c(), me = h(), U = d("div"),
|
|
670
|
+
K && K.c(), r = _r(), e = h(), n = d("div"), a = h(), i = d("div"), f = d("div"), O = d("button"), y = pr("svg"), T = pr("defs"), v = pr("style"), b = M(".a{fill:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));}"), w = pr("path"), A = h(), _ = M(p), F = h(), E = d("form"), ue = d("div"), W = d("div"), fe = d("label"), Ae = M(ke), Te = M(":"), _e = d("span"), _e.textContent = "*", Qe = h(), I = d("input"), Je = h(), Q && Q.c(), me = h(), U = d("div"), V = d("label"), oe = M(pe), Se = M(":"), re = d("span"), re.textContent = "*", ae = h(), x = d("input"), te = h(), J && J.c(), Be = h(), N = d("div"), ye = d("label"), k = M(u), sr = M(":"), Fe = d("span"), Fe.textContent = "*", ir = h(), se = d("input"), or = h(), Z && Z.c(), nr = h(), ge = d("div"), ve = d("label"), Ze = M(Oe), Xe = M(":"), Ne = d("span"), Ne.textContent = "*", Ye = h(), G = d("select");
|
|
671
671
|
for (let o = 0; o < R.length; o += 1)
|
|
672
672
|
R[o].c();
|
|
673
673
|
$e = h(), Ce = d("div"), he = d("label"), Ue = M(je), ar = M(":"), Ie = d("span"), Ie.textContent = "*", lr = h(), ce = d("select");
|
|
@@ -684,16 +684,16 @@ function lt(t) {
|
|
|
684
684
|
), 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(_e, "class", "FormRequired"), c(fe, "for", "Address"), c(I, "type", "text"), c(I, "id", "Address"), c(W, "class", Pe = "AddressContainer " + /*invalidAddress*/
|
|
685
685
|
(t[6] && !/*addressFocus*/
|
|
686
686
|
t[10] ? "InvalidField" : "") + /*disabledFieldsList*/
|
|
687
|
-
(t[14]?.indexOf("address") >= 0 ? "Hidden" : "")), c(re, "class", "FormRequired"), c(
|
|
687
|
+
(t[14]?.indexOf("address") >= 0 ? "Hidden" : "")), c(re, "class", "FormRequired"), c(V, "for", "PostalCode"), c(x, "type", "text"), c(x, "id", "PostalCode"), c(U, "class", H = "PostalCodeContainer " + /*invalidPostalCode*/
|
|
688
688
|
(t[7] && !/*postalCodeFocus*/
|
|
689
689
|
t[11] ? "InvalidField" : "") + /*disabledFieldsList*/
|
|
690
690
|
(t[14]?.indexOf("postalCode") >= 0 ? "Hidden" : "")), c(ue, "class", "AddressPostalCodeContainer"), c(Fe, "class", "FormRequired"), c(ye, "for", "City"), c(se, "type", "text"), c(se, "id", "City"), c(N, "class", le = "CityContainer " + /*invalidCity*/
|
|
691
691
|
(t[9] && /*cityFocus*/
|
|
692
692
|
t[13] ? "InvalidField" : "") + /*disabledFieldsList*/
|
|
693
|
-
(t[14]?.indexOf("city") >= 0 ? "Hidden" : "")), c(Ne, "class", "FormRequired"), c(ve, "for", "Country"), c(
|
|
693
|
+
(t[14]?.indexOf("city") >= 0 ? "Hidden" : "")), c(Ne, "class", "FormRequired"), c(ve, "for", "Country"), c(G, "id", "Country"), /*countrySelected*/
|
|
694
694
|
t[21] === void 0 && hr(() => (
|
|
695
695
|
/*select0_change_handler*/
|
|
696
|
-
t[58].call(
|
|
696
|
+
t[58].call(G)
|
|
697
697
|
)), c(ge, "class", ze = "CountryContainer " + /*disabledFieldsList*/
|
|
698
698
|
(t[14]?.indexOf("country") >= 0 ? "Hidden" : "")), c(Ie, "class", "FormRequired"), c(he, "for", "Nationality"), c(ce, "id", "Nationality"), /*nationalitySelected*/
|
|
699
699
|
t[23] === void 0 && hr(() => (
|
|
@@ -715,7 +715,7 @@ function lt(t) {
|
|
|
715
715
|
I,
|
|
716
716
|
/*address*/
|
|
717
717
|
t[17]
|
|
718
|
-
), s(W, Je), Q && Q.m(W, null), s(ue, me), s(ue, U), s(U,
|
|
718
|
+
), s(W, Je), Q && Q.m(W, null), s(ue, me), s(ue, U), s(U, V), s(V, oe), s(V, Se), s(V, re), s(U, ae), s(U, x), ee(
|
|
719
719
|
x,
|
|
720
720
|
/*postalCode*/
|
|
721
721
|
t[18]
|
|
@@ -723,11 +723,11 @@ function lt(t) {
|
|
|
723
723
|
se,
|
|
724
724
|
/*city*/
|
|
725
725
|
t[19]
|
|
726
|
-
), s(N, or), Z && Z.m(N, null), s(E, nr), s(E, ge), s(ge, ve), s(ve, Ze), s(ve, Xe), s(ve, Ne), s(ge, Ye), s(ge,
|
|
726
|
+
), s(N, or), Z && Z.m(N, null), s(E, nr), s(E, ge), s(ge, ve), s(ve, Ze), s(ve, Xe), s(ve, Ne), s(ge, Ye), s(ge, G);
|
|
727
727
|
for (let m = 0; m < R.length; m += 1)
|
|
728
|
-
R[m] && R[m].m(
|
|
728
|
+
R[m] && R[m].m(G, null);
|
|
729
729
|
Ke(
|
|
730
|
-
|
|
730
|
+
G,
|
|
731
731
|
/*countrySelected*/
|
|
732
732
|
t[21],
|
|
733
733
|
!0
|
|
@@ -831,7 +831,7 @@ function lt(t) {
|
|
|
831
831
|
t[57]
|
|
832
832
|
),
|
|
833
833
|
P(
|
|
834
|
-
|
|
834
|
+
G,
|
|
835
835
|
"change",
|
|
836
836
|
/*select0_change_handler*/
|
|
837
837
|
t[58]
|
|
@@ -933,14 +933,14 @@ function lt(t) {
|
|
|
933
933
|
1 && Oe !== (Oe = /*$_*/
|
|
934
934
|
o[31]("registerCountry") + "") && j(Ze, Oe), g[0] & /*countries*/
|
|
935
935
|
1048576) {
|
|
936
|
-
De =
|
|
936
|
+
De = Ge(
|
|
937
937
|
/*countries*/
|
|
938
938
|
o[20]
|
|
939
939
|
);
|
|
940
940
|
let m;
|
|
941
941
|
for (m = 0; m < De.length; m += 1) {
|
|
942
942
|
const Me = Sr(o, De, m);
|
|
943
|
-
R[m] ? R[m].p(Me, g) : (R[m] = Nr(Me), R[m].c(), R[m].m(
|
|
943
|
+
R[m] ? R[m].p(Me, g) : (R[m] = Nr(Me), R[m].c(), R[m].m(G, null));
|
|
944
944
|
}
|
|
945
945
|
for (; m < R.length; m += 1)
|
|
946
946
|
R[m].d(1);
|
|
@@ -948,7 +948,7 @@ function lt(t) {
|
|
|
948
948
|
}
|
|
949
949
|
if (g[0] & /*countrySelected, countries*/
|
|
950
950
|
3145728 && Ke(
|
|
951
|
-
|
|
951
|
+
G,
|
|
952
952
|
/*countrySelected*/
|
|
953
953
|
o[21]
|
|
954
954
|
), g[0] & /*disabledFieldsList*/
|
|
@@ -957,7 +957,7 @@ function lt(t) {
|
|
|
957
957
|
1 && je !== (je = /*$_*/
|
|
958
958
|
o[31]("registerNationality") + "") && j(Ue, je), g[0] & /*nationalities*/
|
|
959
959
|
4194304) {
|
|
960
|
-
We =
|
|
960
|
+
We = Ge(
|
|
961
961
|
/*nationalities*/
|
|
962
962
|
o[22]
|
|
963
963
|
);
|
|
@@ -981,18 +981,18 @@ function lt(t) {
|
|
|
981
981
|
1 && He !== (He = /*$_*/
|
|
982
982
|
o[31]("registerMobile") + "") && j(er, He), g[0] & /*mobilePrefixes*/
|
|
983
983
|
33554432) {
|
|
984
|
-
|
|
984
|
+
Ve = Ge(
|
|
985
985
|
/*mobilePrefixes*/
|
|
986
986
|
o[25]
|
|
987
987
|
);
|
|
988
988
|
let m;
|
|
989
|
-
for (m = 0; m <
|
|
990
|
-
const Me = Ar(o,
|
|
989
|
+
for (m = 0; m < Ve.length; m += 1) {
|
|
990
|
+
const Me = Ar(o, Ve, m);
|
|
991
991
|
D[m] ? D[m].p(Me, g) : (D[m] = jr(Me), D[m].c(), D[m].m(de, null));
|
|
992
992
|
}
|
|
993
993
|
for (; m < D.length; m += 1)
|
|
994
994
|
D[m].d(1);
|
|
995
|
-
D.length =
|
|
995
|
+
D.length = Ve.length;
|
|
996
996
|
}
|
|
997
997
|
g[0] & /*mobilePrefixSelected, mobilePrefixes*/
|
|
998
998
|
100663296 && Ke(
|
|
@@ -1028,7 +1028,7 @@ function lt(t) {
|
|
|
1028
1028
|
function ct(t, r, e) {
|
|
1029
1029
|
let n;
|
|
1030
1030
|
Xr(t, it, (l) => e(31, n = l));
|
|
1031
|
-
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, ue, W, fe, ke = !1, Ae = !1, Te = !1, _e = !1, Qe, I, Je = !1, Pe = "", me = "", U = "",
|
|
1031
|
+
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, ue, W, fe, ke = !1, Ae = !1, Te = !1, _e = !1, Qe, I, Je = !1, Pe = "", me = "", U = "", V = "", pe = [], oe = "", Se = [], re = "", ae = "", x = [], te = "", H = !1, Be = !1, N, ye, u = { mobile: {}, userConsents: {} }, k = {
|
|
1032
1032
|
address1: !1,
|
|
1033
1033
|
postalCode: !1,
|
|
1034
1034
|
city: !1,
|
|
@@ -1071,7 +1071,7 @@ function ct(t, r, e) {
|
|
|
1071
1071
|
e(18, U = C), Oe();
|
|
1072
1072
|
break;
|
|
1073
1073
|
case "city":
|
|
1074
|
-
e(19,
|
|
1074
|
+
e(19, V = C), Xe();
|
|
1075
1075
|
break;
|
|
1076
1076
|
case "country":
|
|
1077
1077
|
e(21, oe = C), e(30, k.country = !0, k);
|
|
@@ -1092,11 +1092,11 @@ function ct(t, r, e) {
|
|
|
1092
1092
|
e(29, u.address1 = me, u), e(6, E = !nr()), e(30, k.address1 = !E, k), le();
|
|
1093
1093
|
}, ve = () => !!(U && U.length <= 20), Oe = () => {
|
|
1094
1094
|
e(29, u.postalCode = U, u), e(7, ue = !ve()), e(30, k.postalCode = !ue, k), le();
|
|
1095
|
-
}, Ze = () => !!(
|
|
1096
|
-
e(29, u.city =
|
|
1095
|
+
}, Ze = () => !!(V && V.length <= 50), Xe = () => {
|
|
1096
|
+
e(29, u.city = V, u), e(9, fe = !Ze()), e(30, k.city = !fe, k), le();
|
|
1097
1097
|
}, Ne = () => !!(ae && ae.length >= 5 && ae.length <= 12), Ye = () => {
|
|
1098
1098
|
e(29, u.mobile.number = ae, u), e(8, W = !Ne()), e(30, k.mobile = !W, k), le();
|
|
1099
|
-
},
|
|
1099
|
+
}, G = (l) => {
|
|
1100
1100
|
l === "GeneralOffers" ? (e(27, H = !H), e(29, u.userConsents.sms = H, u), e(29, u.userConsents.emailmarketing = H, u)) : l === "SmsOffers" ? (e(29, u.userConsents.sms = !u.userConsents.sms, u), u.userConsents.sms && e(27, H = !0)) : l === "EmailOffers" && (e(29, u.userConsents.emailmarketing = !u.userConsents.emailmarketing, u), u.userConsents.emailmarketing && e(27, H = !0)), ze();
|
|
1101
1101
|
}, ze = () => {
|
|
1102
1102
|
!u.userConsents.sms && !u.userConsents.emailmarketing && e(27, H = !1);
|
|
@@ -1161,7 +1161,7 @@ function ct(t, r, e) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
const Ee = () => e(11, Ae = !0), He = () => e(11, Ae = !1);
|
|
1163
1163
|
function er() {
|
|
1164
|
-
|
|
1164
|
+
V = this.value, e(19, V);
|
|
1165
1165
|
}
|
|
1166
1166
|
const dr = () => e(13, _e = !0), qe = () => e(13, _e = !1);
|
|
1167
1167
|
function ur() {
|
|
@@ -1176,7 +1176,7 @@ function ct(t, r, e) {
|
|
|
1176
1176
|
function fr() {
|
|
1177
1177
|
ae = this.value, e(24, ae);
|
|
1178
1178
|
}
|
|
1179
|
-
const q = () => e(12, Te = !0), mr = () => e(12, Te = !1), Re = () =>
|
|
1179
|
+
const q = () => e(12, Te = !0), mr = () => e(12, Te = !1), Re = () => G("GeneralOffers"), gr = () => G("SmsOffers"), rr = () => G("EmailOffers"), be = () => $e(), Le = (l) => he(l);
|
|
1180
1180
|
function tr(l) {
|
|
1181
1181
|
$r[l ? "unshift" : "push"](() => {
|
|
1182
1182
|
N = l, e(5, N);
|
|
@@ -1219,7 +1219,7 @@ function ct(t, r, e) {
|
|
|
1219
1219
|
Pe,
|
|
1220
1220
|
me,
|
|
1221
1221
|
U,
|
|
1222
|
-
|
|
1222
|
+
V,
|
|
1223
1223
|
pe,
|
|
1224
1224
|
oe,
|
|
1225
1225
|
Se,
|
|
@@ -1237,7 +1237,7 @@ function ct(t, r, e) {
|
|
|
1237
1237
|
Oe,
|
|
1238
1238
|
Xe,
|
|
1239
1239
|
Ye,
|
|
1240
|
-
|
|
1240
|
+
G,
|
|
1241
1241
|
$e,
|
|
1242
1242
|
he,
|
|
1243
1243
|
je,
|
|
@@ -1272,7 +1272,7 @@ function ct(t, r, e) {
|
|
|
1272
1272
|
tr
|
|
1273
1273
|
];
|
|
1274
1274
|
}
|
|
1275
|
-
class dt extends
|
|
1275
|
+
class dt extends Gr {
|
|
1276
1276
|
constructor(r) {
|
|
1277
1277
|
super(), Kr(
|
|
1278
1278
|
this,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 "./GeneralPlayerRegisterForm-B_X7fQIv.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
|
-
),
|
|
245
|
+
), B, H, h, _ = (
|
|
246
246
|
/*$_*/
|
|
247
247
|
o[5]("resend") + ""
|
|
248
|
-
),
|
|
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"),
|
|
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),
|
|
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,
|
|
275
|
-
|
|
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
|
-
|
|
281
|
+
D(
|
|
282
282
|
d,
|
|
283
283
|
"keydown",
|
|
284
284
|
/*keydown_handler*/
|
|
285
285
|
o[19]
|
|
286
286
|
),
|
|
287
|
-
|
|
287
|
+
D(
|
|
288
288
|
w,
|
|
289
289
|
"click",
|
|
290
290
|
/*activateUser*/
|
|
291
291
|
o[6]
|
|
292
292
|
),
|
|
293
|
-
|
|
293
|
+
D(
|
|
294
294
|
h,
|
|
295
295
|
"click",
|
|
296
296
|
/*resendCode*/
|
|
297
297
|
o[7]
|
|
298
298
|
)
|
|
299
|
-
],
|
|
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] &&
|
|
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(
|
|
316
|
+
t[5]("activate") + "") && T(B, p), l & /*$_*/
|
|
317
317
|
32 && _ !== (_ = /*$_*/
|
|
318
|
-
t[5]("resend") + "") && T(
|
|
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:
|
|
324
|
-
o:
|
|
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),
|
|
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,
|
|
334
|
-
const
|
|
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((
|
|
339
|
-
K(
|
|
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
|
|
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
|
-
!
|
|
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`,
|
|
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
|
-
|
|
438
|
+
x,
|
|
439
439
|
q,
|
|
440
440
|
b,
|
|
441
441
|
s,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var
|
|
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 {
|
|
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 "./GeneralPlayerRegisterForm-CSiLhECi.js";
|
|
18
18
|
function ge({ withLocale: o, translations: e }) {
|
|
19
|
-
|
|
20
|
-
i == null && (ee.set(e),
|
|
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
|
-
),
|
|
261
|
+
), B, H, b, C = (
|
|
262
262
|
/*$_*/
|
|
263
263
|
o[5]("resend") + ""
|
|
264
|
-
),
|
|
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"),
|
|
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(_,
|
|
291
|
-
|
|
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
|
-
|
|
297
|
+
D(
|
|
298
298
|
u,
|
|
299
299
|
"keydown",
|
|
300
300
|
/*keydown_handler*/
|
|
301
301
|
o[19]
|
|
302
302
|
),
|
|
303
|
-
|
|
303
|
+
D(
|
|
304
304
|
_,
|
|
305
305
|
"click",
|
|
306
306
|
/*activateUser*/
|
|
307
307
|
o[6]
|
|
308
308
|
),
|
|
309
|
-
|
|
309
|
+
D(
|
|
310
310
|
b,
|
|
311
311
|
"click",
|
|
312
312
|
/*resendCode*/
|
|
313
313
|
o[7]
|
|
314
314
|
)
|
|
315
|
-
],
|
|
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(
|
|
332
|
+
t[5]("activate") + "") && T(B, y), l & /*$_*/
|
|
333
333
|
32 && C !== (C = /*$_*/
|
|
334
|
-
t[5]("resend") + "") && T(
|
|
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:
|
|
340
|
-
o:
|
|
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),
|
|
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,
|
|
350
|
-
const
|
|
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
|
|
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 = () =>
|
|
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
|
-
!
|
|
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`,
|
|
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
|
-
|
|
454
|
+
x,
|
|
455
455
|
q,
|
|
456
456
|
S,
|
|
457
457
|
a,
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterForm-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/GeneralPlayerRegisterForm-CSiLhECi.js").then((e) => e.G).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("general-player-register-form") && customElements.define("general-player-register-form", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|