@everymatrix/general-registration 1.99.48 → 1.99.50
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/dist/cjs/{GeneralAnimationLoading-lTLzF5jR-8645dd28.js → GeneralAnimationLoading-DLWh0_Mr-87adb410.js} +20 -20
- package/dist/cjs/{PlayerConsents-Duni8Aqx-1d0f4f21.js → PlayerConsents-B1AMCVsz-fa53af28.js} +792 -782
- package/dist/cjs/checkbox-group-input_15.cjs.entry.js +102 -29
- package/dist/cjs/general-registration.cjs.js +2 -2
- package/dist/cjs/{index-8c179fe3.js → index-91535fcc.js} +11 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/general-registration/general-registration.js +38 -9
- package/dist/collection/utils/locale.utils.js +9 -6
- package/dist/esm/{GeneralAnimationLoading-lTLzF5jR-501a49e3.js → GeneralAnimationLoading-DLWh0_Mr-a00326b9.js} +12 -12
- package/dist/esm/{PlayerConsents-Duni8Aqx-dd7cf325.js → PlayerConsents-B1AMCVsz-49d58473.js} +781 -771
- package/dist/esm/checkbox-group-input_15.entry.js +102 -29
- package/dist/esm/general-registration.js +3 -3
- package/dist/esm/{index-7f9689f9.js → index-153a4c96.js} +11 -1
- package/dist/esm/loader.js +3 -3
- package/dist/general-registration/{GeneralAnimationLoading-lTLzF5jR-501a49e3.js → GeneralAnimationLoading-DLWh0_Mr-a00326b9.js} +1 -1
- package/dist/general-registration/{PlayerConsents-Duni8Aqx-dd7cf325.js → PlayerConsents-B1AMCVsz-49d58473.js} +1 -1
- package/dist/general-registration/checkbox-group-input_15.entry.js +241 -241
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/general-registration/{index-7f9689f9.js → index-153a4c96.js} +2 -2
- package/dist/types/components/general-registration/general-registration.d.ts +4 -0
- package/dist/types/utils/locale.utils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1070,18 +1070,21 @@ export const TRANSLATIONS = {
|
|
|
1070
1070
|
export const CONSTANTS = {
|
|
1071
1071
|
VALIDATION_PHONE_START_ZERO: "Phone number must start with 0",
|
|
1072
1072
|
};
|
|
1073
|
+
export const setTranslation = (data) => {
|
|
1074
|
+
Object.keys(data).forEach((locale) => {
|
|
1075
|
+
TRANSLATIONS[locale] = TRANSLATIONS[locale] || {};
|
|
1076
|
+
Object.keys(data[locale]).forEach((key) => {
|
|
1077
|
+
TRANSLATIONS[locale][key] = data[locale][key];
|
|
1078
|
+
});
|
|
1079
|
+
});
|
|
1080
|
+
};
|
|
1073
1081
|
export const getTranslations = (url) => {
|
|
1074
1082
|
// fetch url, get the data, replace the TRANSLATIONS content
|
|
1075
1083
|
return new Promise((resolve) => {
|
|
1076
1084
|
fetch(url)
|
|
1077
1085
|
.then((res) => res.json())
|
|
1078
1086
|
.then((data) => {
|
|
1079
|
-
|
|
1080
|
-
TRANSLATIONS[item] = TRANSLATIONS[item] || {};
|
|
1081
|
-
for (let key in data[item]) {
|
|
1082
|
-
TRANSLATIONS[item][key] = data[item][key];
|
|
1083
|
-
}
|
|
1084
|
-
});
|
|
1087
|
+
setTranslation(data);
|
|
1085
1088
|
resolve(true);
|
|
1086
1089
|
});
|
|
1087
1090
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as sr, i as ir, s as vt, f as X, k as ar, a as un, e as T, b as z, n as $, d as O, o as _n, g as Nn, h as An, j as Hn, c as Ue } from './PlayerConsents-B1AMCVsz-49d58473.js';
|
|
2
2
|
|
|
3
3
|
function L(t) {
|
|
4
|
-
|
|
4
|
+
un(t, "svelte-gnt082", ".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");
|
|
5
5
|
}
|
|
6
6
|
function j(t) {
|
|
7
7
|
let i;
|
|
@@ -10,7 +10,7 @@ function j(t) {
|
|
|
10
10
|
i = T("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
11
11
|
},
|
|
12
12
|
m(n, l) {
|
|
13
|
-
|
|
13
|
+
z(n, i, l), t[4](i);
|
|
14
14
|
},
|
|
15
15
|
p: $,
|
|
16
16
|
i: $,
|
|
@@ -22,10 +22,10 @@ function j(t) {
|
|
|
22
22
|
}
|
|
23
23
|
function w(t, i, n) {
|
|
24
24
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s, o;
|
|
25
|
-
|
|
25
|
+
_n(() => () => {
|
|
26
26
|
});
|
|
27
27
|
function u(e) {
|
|
28
|
-
|
|
28
|
+
Ue[e ? "unshift" : "push"](() => {
|
|
29
29
|
s = e, n(0, s);
|
|
30
30
|
});
|
|
31
31
|
}
|
|
@@ -33,9 +33,9 @@ function w(t, i, n) {
|
|
|
33
33
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
34
34
|
}, t.$$.update = () => {
|
|
35
35
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
36
|
-
3 && l && s &&
|
|
37
|
-
5 && a && s &&
|
|
38
|
-
9 && r && s &&
|
|
36
|
+
3 && l && s && Nn(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
37
|
+
5 && a && s && An(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
38
|
+
9 && r && s && Hn(s, `${r}.Style`, o);
|
|
39
39
|
}, [
|
|
40
40
|
s,
|
|
41
41
|
l,
|
|
@@ -44,14 +44,14 @@ function w(t, i, n) {
|
|
|
44
44
|
u
|
|
45
45
|
];
|
|
46
46
|
}
|
|
47
|
-
class M extends
|
|
47
|
+
class M extends sr {
|
|
48
48
|
constructor(i) {
|
|
49
|
-
super(),
|
|
49
|
+
super(), ir(
|
|
50
50
|
this,
|
|
51
51
|
i,
|
|
52
52
|
w,
|
|
53
53
|
j,
|
|
54
|
-
|
|
54
|
+
vt,
|
|
55
55
|
{
|
|
56
56
|
clientstyling: 1,
|
|
57
57
|
clientstylingurl: 2,
|
|
@@ -79,6 +79,6 @@ class M extends ar {
|
|
|
79
79
|
this.$$set({ mbsource: i }), X();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
ar(M, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
83
83
|
|
|
84
84
|
export { M as default };
|