@everymatrix/general-registration 1.94.20 → 1.94.22
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-CeJE9MRs-f6b5fca5.js → GeneralAnimationLoading-lTLzF5jR-8645dd28.js} +20 -20
- package/dist/cjs/{PlayerConsents-BtzEjirY-0870c312.js → PlayerConsents-Duni8Aqx-1d0f4f21.js} +7 -7
- package/dist/cjs/checkbox-group-input_15.cjs.entry.js +276 -12
- package/dist/cjs/general-registration.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/general-registration/general-registration.css +5 -0
- package/dist/collection/components/general-registration/general-registration.js +68 -11
- package/dist/esm/{GeneralAnimationLoading-CeJE9MRs-1cdb8d8f.js → GeneralAnimationLoading-lTLzF5jR-501a49e3.js} +1 -1
- package/dist/esm/{PlayerConsents-BtzEjirY-52f88049.js → PlayerConsents-Duni8Aqx-dd7cf325.js} +2 -2
- package/dist/esm/checkbox-group-input_15.entry.js +276 -12
- package/dist/esm/general-registration.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/general-registration/{GeneralAnimationLoading-CeJE9MRs-1cdb8d8f.js → GeneralAnimationLoading-lTLzF5jR-501a49e3.js} +1 -1
- package/dist/general-registration/{PlayerConsents-BtzEjirY-52f88049.js → PlayerConsents-Duni8Aqx-dd7cf325.js} +1 -1
- package/dist/general-registration/checkbox-group-input_15.entry.js +111 -111
- package/dist/general-registration/general-registration.esm.js +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/captcha/google/index.d.ts +14 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/captcha/index.d.ts +16 -0
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/captcha/turnstile/index.d.ts +19 -0
- package/dist/types/components/general-registration/general-registration.d.ts +8 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const PlayerConsentsDuni8Aqx = require('./PlayerConsents-Duni8Aqx-1d0f4f21.js');
|
|
4
4
|
|
|
5
5
|
function L(t) {
|
|
6
|
-
|
|
6
|
+
PlayerConsentsDuni8Aqx.a(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)}}");
|
|
7
7
|
}
|
|
8
8
|
function j(t) {
|
|
9
9
|
let i;
|
|
10
10
|
return {
|
|
11
11
|
c() {
|
|
12
|
-
i =
|
|
12
|
+
i = PlayerConsentsDuni8Aqx.e("div"), i.innerHTML = '<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';
|
|
13
13
|
},
|
|
14
14
|
m(n, l) {
|
|
15
|
-
|
|
15
|
+
PlayerConsentsDuni8Aqx.b(n, i, l), t[4](i);
|
|
16
16
|
},
|
|
17
|
-
p:
|
|
18
|
-
i:
|
|
19
|
-
o:
|
|
17
|
+
p: PlayerConsentsDuni8Aqx.n,
|
|
18
|
+
i: PlayerConsentsDuni8Aqx.n,
|
|
19
|
+
o: PlayerConsentsDuni8Aqx.n,
|
|
20
20
|
d(n) {
|
|
21
|
-
n &&
|
|
21
|
+
n && PlayerConsentsDuni8Aqx.d(i), t[4](null);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
function w(t, i, n) {
|
|
26
26
|
let { clientstyling: l = "" } = i, { clientstylingurl: a = "" } = i, { mbsource: r } = i, s, o;
|
|
27
|
-
|
|
27
|
+
PlayerConsentsDuni8Aqx.o(() => () => {
|
|
28
28
|
});
|
|
29
29
|
function u(e) {
|
|
30
|
-
|
|
30
|
+
PlayerConsentsDuni8Aqx.c[e ? "unshift" : "push"](() => {
|
|
31
31
|
s = e, n(0, s);
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -35,9 +35,9 @@ function w(t, i, n) {
|
|
|
35
35
|
"clientstyling" in e && n(1, l = e.clientstyling), "clientstylingurl" in e && n(2, a = e.clientstylingurl), "mbsource" in e && n(3, r = e.mbsource);
|
|
36
36
|
}, t.$$.update = () => {
|
|
37
37
|
t.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
38
|
-
3 && l && s &&
|
|
39
|
-
5 && a && s &&
|
|
40
|
-
9 && r && s &&
|
|
38
|
+
3 && l && s && PlayerConsentsDuni8Aqx.g(s, l), t.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
39
|
+
5 && a && s && PlayerConsentsDuni8Aqx.h(s, a), t.$$.dirty & /*mbsource, customStylingContainer*/
|
|
40
|
+
9 && r && s && PlayerConsentsDuni8Aqx.j(s, `${r}.Style`, o);
|
|
41
41
|
}, [
|
|
42
42
|
s,
|
|
43
43
|
l,
|
|
@@ -46,14 +46,14 @@ function w(t, i, n) {
|
|
|
46
46
|
u
|
|
47
47
|
];
|
|
48
48
|
}
|
|
49
|
-
class M extends
|
|
49
|
+
class M extends PlayerConsentsDuni8Aqx.S {
|
|
50
50
|
constructor(i) {
|
|
51
|
-
super(),
|
|
51
|
+
super(), PlayerConsentsDuni8Aqx.i(
|
|
52
52
|
this,
|
|
53
53
|
i,
|
|
54
54
|
w,
|
|
55
55
|
j,
|
|
56
|
-
|
|
56
|
+
PlayerConsentsDuni8Aqx.s,
|
|
57
57
|
{
|
|
58
58
|
clientstyling: 1,
|
|
59
59
|
clientstylingurl: 2,
|
|
@@ -66,21 +66,21 @@ class M extends PlayerConsentsBtzEjirY.S {
|
|
|
66
66
|
return this.$$.ctx[1];
|
|
67
67
|
}
|
|
68
68
|
set clientstyling(i) {
|
|
69
|
-
this.$$set({ clientstyling: i }),
|
|
69
|
+
this.$$set({ clientstyling: i }), PlayerConsentsDuni8Aqx.f();
|
|
70
70
|
}
|
|
71
71
|
get clientstylingurl() {
|
|
72
72
|
return this.$$.ctx[2];
|
|
73
73
|
}
|
|
74
74
|
set clientstylingurl(i) {
|
|
75
|
-
this.$$set({ clientstylingurl: i }),
|
|
75
|
+
this.$$set({ clientstylingurl: i }), PlayerConsentsDuni8Aqx.f();
|
|
76
76
|
}
|
|
77
77
|
get mbsource() {
|
|
78
78
|
return this.$$.ctx[3];
|
|
79
79
|
}
|
|
80
80
|
set mbsource(i) {
|
|
81
|
-
this.$$set({ mbsource: i }),
|
|
81
|
+
this.$$set({ mbsource: i }), PlayerConsentsDuni8Aqx.f();
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
|
|
84
|
+
PlayerConsentsDuni8Aqx.k(M, { clientstyling: {}, clientstylingurl: {}, mbsource: {} }, [], [], !0);
|
|
85
85
|
|
|
86
86
|
exports['default'] = M;
|
package/dist/cjs/{PlayerConsents-BtzEjirY-0870c312.js → PlayerConsents-Duni8Aqx-1d0f4f21.js}
RENAMED
|
@@ -4449,7 +4449,7 @@ if (typeof window != "undefined") {
|
|
|
4449
4449
|
}
|
|
4450
4450
|
};
|
|
4451
4451
|
};
|
|
4452
|
-
customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-
|
|
4452
|
+
customElements.define = e(customElements.define), Promise.resolve().then(function () { return require('./GeneralAnimationLoading-lTLzF5jR-8645dd28.js'); }).then(({ default: t }) => {
|
|
4453
4453
|
!customElements.get("general-animation-loading") && customElements.define("general-animation-loading", t.element);
|
|
4454
4454
|
});
|
|
4455
4455
|
}
|
|
@@ -5509,16 +5509,16 @@ const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5509
5509
|
exports.P = Oo;
|
|
5510
5510
|
exports.S = ar;
|
|
5511
5511
|
exports.a = cn;
|
|
5512
|
-
exports.b =
|
|
5513
|
-
exports.c =
|
|
5512
|
+
exports.b = L;
|
|
5513
|
+
exports.c = Re;
|
|
5514
5514
|
exports.d = O;
|
|
5515
5515
|
exports.e = T;
|
|
5516
5516
|
exports.f = X;
|
|
5517
|
-
exports.g =
|
|
5518
|
-
exports.h =
|
|
5517
|
+
exports.g = Tn;
|
|
5518
|
+
exports.h = Mn;
|
|
5519
5519
|
exports.i = nr;
|
|
5520
|
-
exports.j =
|
|
5521
|
-
exports.k =
|
|
5520
|
+
exports.j = Nn;
|
|
5521
|
+
exports.k = or;
|
|
5522
5522
|
exports.n = $;
|
|
5523
5523
|
exports.o = gn;
|
|
5524
5524
|
exports.s = _t;
|
|
@@ -14504,6 +14504,231 @@ const checkEmptyValue = (val) => {
|
|
|
14504
14504
|
return false;
|
|
14505
14505
|
};
|
|
14506
14506
|
|
|
14507
|
+
/**
|
|
14508
|
+
* Get first assigned element from a named slot
|
|
14509
|
+
*
|
|
14510
|
+
* @param {HTMLElement} host
|
|
14511
|
+
* @param {string} slotName
|
|
14512
|
+
* @returns {HTMLElement | null}
|
|
14513
|
+
*/
|
|
14514
|
+
const getSlottedElement = (host, slotName) => {
|
|
14515
|
+
const slot = /** @type {HTMLSlotElement | null} */ (
|
|
14516
|
+
host.shadowRoot?.querySelector(`slot[name="${slotName}"]`)
|
|
14517
|
+
);
|
|
14518
|
+
|
|
14519
|
+
if (!slot) {
|
|
14520
|
+
console.error(`[${host.tagName.toLowerCase()}] slot "${slotName}" not found.`);
|
|
14521
|
+
return null;
|
|
14522
|
+
}
|
|
14523
|
+
|
|
14524
|
+
const assignedElement = /** @type {HTMLElement | null} */ (
|
|
14525
|
+
slot.assignedElements?.()[0] ?? null
|
|
14526
|
+
);
|
|
14527
|
+
|
|
14528
|
+
if (!assignedElement) {
|
|
14529
|
+
console.error( `[${host.tagName.toLowerCase()}] no element assigned to slot "${slotName}".`);
|
|
14530
|
+
return null;
|
|
14531
|
+
}
|
|
14532
|
+
|
|
14533
|
+
return assignedElement;
|
|
14534
|
+
};
|
|
14535
|
+
|
|
14536
|
+
const SCRIPT_SRC = 'https://challenges.cloudflare.com/turnstile/v0/api.js';
|
|
14537
|
+
const RETRY_INTERVAL_MS = 3000;
|
|
14538
|
+
const DEFAULT_RETRY_COUNT = 5;
|
|
14539
|
+
const SCRIPT_LOAD_TIMEOUT_MS = 10000;
|
|
14540
|
+
const TURNSTILE_TOKEN_EXPIRY_MS = 5 * 60 * 1000;
|
|
14541
|
+
const DUMMY_TURNSTILE_RESPONSE = 'XXXX.DUMMY.TOKEN.XXXX';
|
|
14542
|
+
const TURNSTILE_TOKEN_RESPONSE_HEADER = 'cf-captcha-response';
|
|
14543
|
+
const TURNSTILE_IS_VISIBLE_HEADER = 'cfCaptchaIsVisible';
|
|
14544
|
+
let scriptPromise = null;
|
|
14545
|
+
function loadTurnstile() {
|
|
14546
|
+
if (typeof window === 'undefined') {
|
|
14547
|
+
return Promise.reject(new Error('[Turnstile] SSR'));
|
|
14548
|
+
}
|
|
14549
|
+
if (window.turnstile)
|
|
14550
|
+
return Promise.resolve();
|
|
14551
|
+
if (!scriptPromise) {
|
|
14552
|
+
scriptPromise = new Promise((resolve, reject) => {
|
|
14553
|
+
const timeout = setTimeout(() => {
|
|
14554
|
+
scriptPromise = null;
|
|
14555
|
+
reject(new Error('[Turnstile] script load timeout'));
|
|
14556
|
+
}, SCRIPT_LOAD_TIMEOUT_MS);
|
|
14557
|
+
const script = document.createElement('script');
|
|
14558
|
+
script.src = SCRIPT_SRC;
|
|
14559
|
+
script.async = true;
|
|
14560
|
+
script.defer = true;
|
|
14561
|
+
script.onload = () => {
|
|
14562
|
+
clearTimeout(timeout);
|
|
14563
|
+
resolve();
|
|
14564
|
+
};
|
|
14565
|
+
script.onerror = () => {
|
|
14566
|
+
clearTimeout(timeout);
|
|
14567
|
+
scriptPromise = null;
|
|
14568
|
+
reject(new Error('[Turnstile] script failed to load'));
|
|
14569
|
+
};
|
|
14570
|
+
document.head.appendChild(script);
|
|
14571
|
+
});
|
|
14572
|
+
}
|
|
14573
|
+
return scriptPromise;
|
|
14574
|
+
}
|
|
14575
|
+
function createTurnstile(options) {
|
|
14576
|
+
const { siteKey, action, isEnabled = true, enableFallback = false, retryCount = DEFAULT_RETRY_COUNT } = options;
|
|
14577
|
+
let token = null;
|
|
14578
|
+
let tokenIssuedAt = 0;
|
|
14579
|
+
let widgetId;
|
|
14580
|
+
let container;
|
|
14581
|
+
let isDestroyed = false;
|
|
14582
|
+
let errorCount = 0;
|
|
14583
|
+
let resolveToken = null;
|
|
14584
|
+
let rejectToken = null;
|
|
14585
|
+
function setToken(value) {
|
|
14586
|
+
var _a;
|
|
14587
|
+
token = value;
|
|
14588
|
+
if (value)
|
|
14589
|
+
tokenIssuedAt = Date.now();
|
|
14590
|
+
(_a = options.onTokenChange) === null || _a === void 0 ? void 0 : _a.call(options, value);
|
|
14591
|
+
}
|
|
14592
|
+
function renderWidget() {
|
|
14593
|
+
if (widgetId || !container || !window.turnstile)
|
|
14594
|
+
return;
|
|
14595
|
+
widgetId = window.turnstile.render(container, {
|
|
14596
|
+
sitekey: siteKey,
|
|
14597
|
+
retry: 'auto',
|
|
14598
|
+
action,
|
|
14599
|
+
appearance: 'interaction-only',
|
|
14600
|
+
execution: 'execute',
|
|
14601
|
+
theme: 'light',
|
|
14602
|
+
'retry-interval': RETRY_INTERVAL_MS,
|
|
14603
|
+
callback: (receivedToken) => {
|
|
14604
|
+
var _a;
|
|
14605
|
+
if (isDestroyed)
|
|
14606
|
+
return;
|
|
14607
|
+
errorCount = 0;
|
|
14608
|
+
setToken(receivedToken);
|
|
14609
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, false);
|
|
14610
|
+
resolveToken === null || resolveToken === void 0 ? void 0 : resolveToken(receivedToken);
|
|
14611
|
+
resolveToken = null;
|
|
14612
|
+
rejectToken = null;
|
|
14613
|
+
},
|
|
14614
|
+
'error-callback': (errorCode) => {
|
|
14615
|
+
var _a;
|
|
14616
|
+
if (isDestroyed)
|
|
14617
|
+
return true;
|
|
14618
|
+
errorCount += 1;
|
|
14619
|
+
if (errorCount <= retryCount) {
|
|
14620
|
+
return false;
|
|
14621
|
+
}
|
|
14622
|
+
errorCount = 0;
|
|
14623
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, false);
|
|
14624
|
+
if (widgetId && window.turnstile) {
|
|
14625
|
+
try {
|
|
14626
|
+
window.turnstile.reset(widgetId);
|
|
14627
|
+
}
|
|
14628
|
+
catch (_b) { }
|
|
14629
|
+
}
|
|
14630
|
+
if (enableFallback) {
|
|
14631
|
+
resolveToken === null || resolveToken === void 0 ? void 0 : resolveToken(DUMMY_TURNSTILE_RESPONSE);
|
|
14632
|
+
}
|
|
14633
|
+
else {
|
|
14634
|
+
const error = `[Turnstile] Verification failed (${errorCode}). Please try again.`;
|
|
14635
|
+
console.error(error);
|
|
14636
|
+
rejectToken === null || rejectToken === void 0 ? void 0 : rejectToken(new Error(error));
|
|
14637
|
+
}
|
|
14638
|
+
resolveToken = null;
|
|
14639
|
+
rejectToken = null;
|
|
14640
|
+
return true;
|
|
14641
|
+
},
|
|
14642
|
+
'expired-callback': () => {
|
|
14643
|
+
setToken(null);
|
|
14644
|
+
}
|
|
14645
|
+
});
|
|
14646
|
+
}
|
|
14647
|
+
async function render(hostContainer) {
|
|
14648
|
+
var _a;
|
|
14649
|
+
if (!isEnabled)
|
|
14650
|
+
return;
|
|
14651
|
+
container = hostContainer;
|
|
14652
|
+
try {
|
|
14653
|
+
await loadTurnstile();
|
|
14654
|
+
renderWidget();
|
|
14655
|
+
(_a = options.onReady) === null || _a === void 0 ? void 0 : _a.call(options);
|
|
14656
|
+
}
|
|
14657
|
+
catch (err) {
|
|
14658
|
+
console.error('[Turnstile] script load error', err);
|
|
14659
|
+
}
|
|
14660
|
+
}
|
|
14661
|
+
async function getToken() {
|
|
14662
|
+
var _a;
|
|
14663
|
+
if (!isEnabled)
|
|
14664
|
+
return undefined;
|
|
14665
|
+
if (!widgetId) {
|
|
14666
|
+
await loadTurnstile();
|
|
14667
|
+
renderWidget();
|
|
14668
|
+
if (!widgetId)
|
|
14669
|
+
throw new Error('[Turnstile] widget not ready');
|
|
14670
|
+
}
|
|
14671
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, true);
|
|
14672
|
+
return new Promise((resolve, reject) => {
|
|
14673
|
+
var _a;
|
|
14674
|
+
resolveToken = resolve;
|
|
14675
|
+
rejectToken = reject;
|
|
14676
|
+
try {
|
|
14677
|
+
window.turnstile.execute(widgetId);
|
|
14678
|
+
}
|
|
14679
|
+
catch (e) {
|
|
14680
|
+
console.error('[Turnstile] execute error', e);
|
|
14681
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, false);
|
|
14682
|
+
resolveToken = null;
|
|
14683
|
+
rejectToken = null;
|
|
14684
|
+
reject(e);
|
|
14685
|
+
}
|
|
14686
|
+
});
|
|
14687
|
+
}
|
|
14688
|
+
async function ensureToken() {
|
|
14689
|
+
if (!isEnabled)
|
|
14690
|
+
return undefined;
|
|
14691
|
+
if (token && Date.now() - tokenIssuedAt < TURNSTILE_TOKEN_EXPIRY_MS)
|
|
14692
|
+
return token;
|
|
14693
|
+
return getToken();
|
|
14694
|
+
}
|
|
14695
|
+
function reset() {
|
|
14696
|
+
var _a;
|
|
14697
|
+
if (widgetId && window.turnstile) {
|
|
14698
|
+
try {
|
|
14699
|
+
window.turnstile.reset(widgetId);
|
|
14700
|
+
}
|
|
14701
|
+
catch (_b) { }
|
|
14702
|
+
}
|
|
14703
|
+
errorCount = 0;
|
|
14704
|
+
setToken(null);
|
|
14705
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, false);
|
|
14706
|
+
rejectToken === null || rejectToken === void 0 ? void 0 : rejectToken(new Error('[Turnstile] reset by caller'));
|
|
14707
|
+
resolveToken = null;
|
|
14708
|
+
rejectToken = null;
|
|
14709
|
+
}
|
|
14710
|
+
function cleanup() {
|
|
14711
|
+
var _a;
|
|
14712
|
+
isDestroyed = true;
|
|
14713
|
+
if (widgetId && window.turnstile) {
|
|
14714
|
+
try {
|
|
14715
|
+
window.turnstile.remove(widgetId);
|
|
14716
|
+
}
|
|
14717
|
+
catch (_b) { }
|
|
14718
|
+
}
|
|
14719
|
+
errorCount = 0;
|
|
14720
|
+
rejectToken === null || rejectToken === void 0 ? void 0 : rejectToken(null);
|
|
14721
|
+
resolveToken = null;
|
|
14722
|
+
rejectToken = null;
|
|
14723
|
+
widgetId = undefined;
|
|
14724
|
+
setToken(null);
|
|
14725
|
+
(_a = options.onLoadingChange) === null || _a === void 0 ? void 0 : _a.call(options, false);
|
|
14726
|
+
}
|
|
14727
|
+
return { render, getToken, ensureToken, reset, cleanup };
|
|
14728
|
+
}
|
|
14729
|
+
|
|
14730
|
+
const CAPTCHA_CONTAINER_SLOT = "captchaContainer";
|
|
14731
|
+
|
|
14507
14732
|
if (typeof window != "undefined") {
|
|
14508
14733
|
let n = function(e) {
|
|
14509
14734
|
return function(...s) {
|
|
@@ -14516,12 +14741,12 @@ if (typeof window != "undefined") {
|
|
|
14516
14741
|
}
|
|
14517
14742
|
};
|
|
14518
14743
|
};
|
|
14519
|
-
customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-
|
|
14744
|
+
customElements.define = n(customElements.define), Promise.resolve().then(function () { return require('./PlayerConsents-Duni8Aqx-1d0f4f21.js'); }).then((e) => e.P).then(({ default: e }) => {
|
|
14520
14745
|
!customElements.get("player-consents") && customElements.define("player-consents", e.element);
|
|
14521
14746
|
});
|
|
14522
14747
|
}
|
|
14523
14748
|
|
|
14524
|
-
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
|
|
14749
|
+
const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}\n.captcha-wrapper {\n width: 100%;\n display: flex;\n overflow: hidden;\n}";
|
|
14525
14750
|
const GeneralRegistrationStyle0 = generalRegistrationCss;
|
|
14526
14751
|
|
|
14527
14752
|
const GeneralRegistration = class {
|
|
@@ -14533,6 +14758,7 @@ const GeneralRegistration = class {
|
|
|
14533
14758
|
this.isSelectingAddress = false;
|
|
14534
14759
|
this.lastPostalCode = null;
|
|
14535
14760
|
this.isRestoringAfterError = false;
|
|
14761
|
+
this.captchaInstance = null;
|
|
14536
14762
|
this.selectedCountry = '';
|
|
14537
14763
|
this.listOfInputValues = [];
|
|
14538
14764
|
this.listOfInputValidity = [];
|
|
@@ -14577,6 +14803,7 @@ const GeneralRegistration = class {
|
|
|
14577
14803
|
this.enableManualDateInput = false;
|
|
14578
14804
|
this.enableCustomRegexValidation = false;
|
|
14579
14805
|
this.gmversion = '';
|
|
14806
|
+
this.turnstileSiteKey = undefined;
|
|
14580
14807
|
this.errorMessage = '';
|
|
14581
14808
|
this.isFormValid = false;
|
|
14582
14809
|
this.isConsentValid = false;
|
|
@@ -14796,9 +15023,14 @@ const GeneralRegistration = class {
|
|
|
14796
15023
|
this.registrationWidgetLoaded.emit();
|
|
14797
15024
|
window.postMessage({ type: 'registrationWidgetLoaded' }, window.location.href);
|
|
14798
15025
|
this.handleClientStyling();
|
|
15026
|
+
if (this.turnstileSiteKey)
|
|
15027
|
+
this.initializeCaptcha();
|
|
14799
15028
|
}
|
|
14800
15029
|
disconnectedCallback() {
|
|
15030
|
+
var _a, _b;
|
|
14801
15031
|
this.stylingSubscription && this.stylingSubscription.unsubscribe();
|
|
15032
|
+
if (this.turnstileSiteKey)
|
|
15033
|
+
(_b = (_a = this.captchaInstance) === null || _a === void 0 ? void 0 : _a.cleanup) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
14802
15034
|
}
|
|
14803
15035
|
/**
|
|
14804
15036
|
* This function produces the conditionalValidationMap object presented below
|
|
@@ -14984,6 +15216,16 @@ const GeneralRegistration = class {
|
|
|
14984
15216
|
}
|
|
14985
15217
|
}, window.location.href);
|
|
14986
15218
|
}
|
|
15219
|
+
async initializeCaptcha() {
|
|
15220
|
+
if (!this.turnstileSiteKey)
|
|
15221
|
+
return;
|
|
15222
|
+
const captchaContainerEl = getSlottedElement(this.host, CAPTCHA_CONTAINER_SLOT);
|
|
15223
|
+
this.captchaInstance = createTurnstile({
|
|
15224
|
+
action: 'login',
|
|
15225
|
+
siteKey: this.turnstileSiteKey,
|
|
15226
|
+
});
|
|
15227
|
+
await this.captchaInstance.render(captchaContainerEl);
|
|
15228
|
+
}
|
|
14987
15229
|
getRegisterConfig(registrationID) {
|
|
14988
15230
|
const configPath = this.gmversion === 'gm2'
|
|
14989
15231
|
? '/api/pam/v2/legislation/register/config'
|
|
@@ -15205,18 +15447,39 @@ const GeneralRegistration = class {
|
|
|
15205
15447
|
}
|
|
15206
15448
|
return acceptedConsents;
|
|
15207
15449
|
}
|
|
15208
|
-
setRegister() {
|
|
15450
|
+
async setRegister() {
|
|
15451
|
+
var _a;
|
|
15209
15452
|
this.isLoading = true;
|
|
15210
15453
|
this.registerErrors = false;
|
|
15211
|
-
const
|
|
15454
|
+
const isGm2 = this.gmversion === 'gm2';
|
|
15455
|
+
const turnstileEnabled = this.turnstileSiteKey && this.captchaInstance && !isGm2;
|
|
15456
|
+
const registerPath = isGm2
|
|
15212
15457
|
? '/api/pam/v2/legislation/register'
|
|
15213
15458
|
: '/v1/player/legislation/register/';
|
|
15214
15459
|
const url = new URL(`${this.endpoint}${registerPath}`);
|
|
15215
15460
|
const headers = new Headers();
|
|
15216
15461
|
headers.append('Content-Type', 'application/json');
|
|
15217
15462
|
headers.append('Accept', 'application/json');
|
|
15463
|
+
if (turnstileEnabled) {
|
|
15464
|
+
try {
|
|
15465
|
+
const token = await ((_a = this.captchaInstance) === null || _a === void 0 ? void 0 : _a.ensureToken());
|
|
15466
|
+
headers.append(TURNSTILE_TOKEN_RESPONSE_HEADER, token !== null && token !== void 0 ? token : "");
|
|
15467
|
+
headers.append(TURNSTILE_IS_VISIBLE_HEADER, "false");
|
|
15468
|
+
}
|
|
15469
|
+
catch (error) {
|
|
15470
|
+
this.registerErrors = true;
|
|
15471
|
+
this.isLoading = false;
|
|
15472
|
+
if (error !== null) {
|
|
15473
|
+
this.errorMessage = translate(`generalError`, this.language);
|
|
15474
|
+
window.postMessage({ type: 'registrationFailed', errorMessage: this.errorMessage }, window.location.href);
|
|
15475
|
+
this.triggerNotification(this.errorMessage);
|
|
15476
|
+
dispatchCustomEvent('register_fail', { error: this.errorMessage });
|
|
15477
|
+
}
|
|
15478
|
+
return;
|
|
15479
|
+
}
|
|
15480
|
+
}
|
|
15218
15481
|
const options = {
|
|
15219
|
-
method:
|
|
15482
|
+
method: isGm2 ? 'POST' : 'PUT',
|
|
15220
15483
|
body: JSON.stringify({ registrationId: this.registrationID }),
|
|
15221
15484
|
headers
|
|
15222
15485
|
};
|
|
@@ -15266,7 +15529,10 @@ const GeneralRegistration = class {
|
|
|
15266
15529
|
console.error(err);
|
|
15267
15530
|
})
|
|
15268
15531
|
.finally(() => {
|
|
15532
|
+
var _a;
|
|
15269
15533
|
this.isLoading = false;
|
|
15534
|
+
if (turnstileEnabled)
|
|
15535
|
+
(_a = this.captchaInstance) === null || _a === void 0 ? void 0 : _a.reset();
|
|
15270
15536
|
});
|
|
15271
15537
|
}
|
|
15272
15538
|
formatConfig(config) {
|
|
@@ -15540,13 +15806,11 @@ const GeneralRegistration = class {
|
|
|
15540
15806
|
&& index.h("svg", { class: "spinner", viewBox: "0 0 50 50" }, index.h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" })), !this.isLoadingPOST && index.h("div", { class: `registration__buttons-wrapper ${this.autofilled ? 'registration__buttons-wrapper--autofilled' : ''}` }, index.h("button", { class: `registration__button registration__button--next ${this.isFormValid ? '' : 'registration__button--disabled'}`, type: 'submit', form: `RegistrationForm${this.registrationStep}`, onClick: (e) => this.nextHandler(e), disabled: !this.isFormValid }, this.lastStep === this.registrationStep ? translate('doneButton', this.language) : translate('nextButton', this.language)), index.h("button", { class: `registration__button registration__button--back ${this.registrationStep == 'Step1' ? 'registration__button--first-step' : ''}`, onClick: (e) => this.backHandler(e) }, translate('backButton', this.language)))));
|
|
15541
15807
|
}
|
|
15542
15808
|
render() {
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
}
|
|
15549
|
-
return (index.h("div", { ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, this.renderForm(), !this.buttonInsideForm && this.renderButtons()));
|
|
15809
|
+
const isLoading = this.isLoading && !this.registerErrors;
|
|
15810
|
+
const isError = !this.isLoading && this.registerErrors;
|
|
15811
|
+
const showForm = !(isLoading || isError);
|
|
15812
|
+
return (index.h("div", { key: 'f9c3c3d27ba6d0f0a38802dae5cc59a3d92e80ce', ref: (el) => (this.stylingContainer = el), class: `registration registration__${this.registrationStep}` }, isLoading && index.h("p", { key: 'a9264b766c150388bc3c1711eec78c25b5c03398', class: `registration registration__loading-message` }, translate('loadingMessage', this.language)), isError && this.renderErrorMessage(this.errorMessage), showForm && this.renderForm(), showForm && !this.buttonInsideForm && this.renderButtons(), this.turnstileSiteKey &&
|
|
15813
|
+
index.h("div", { key: '43b923b05cebe033ac4b186f9101c6d24d2f54bb', class: "captcha-wrapper" }, index.h("slot", { key: '386643816479c11f6c0856aa4ca82c87e5878bc4', name: CAPTCHA_CONTAINER_SLOT }))));
|
|
15550
15814
|
}
|
|
15551
15815
|
get host() { return index.getElement(this); }
|
|
15552
15816
|
static get watchers() { return {
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
|
|
22
|
+
return index.bootstrapLazy(JSON.parse("[[\"checkbox-group-input_15.cjs\",[[1,\"general-registration\",{\"endpoint\":[513],\"language\":[513],\"clientStyling\":[1537,\"client-styling\"],\"mbSource\":[1,\"mb-source\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"translationUrl\":[513,\"translation-url\"],\"dateFormat\":[513,\"date-format\"],\"buttonInsideForm\":[516,\"button-inside-form\"],\"btag\":[513],\"emitOnClick\":[516,\"emit-on-click\"],\"haspostalcodelookup\":[516],\"ignorebtag\":[516],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"gmversion\":[513],\"turnstileSiteKey\":[1,\"turnstile-site-key\"],\"errorMessage\":[32],\"isFormValid\":[32],\"isConsentValid\":[32],\"isConsentReady\":[32],\"isLoading\":[32],\"isLoadingPOST\":[32],\"registrationStep\":[32],\"forms\":[32],\"autofilled\":[32],\"isInitalInteraction\":[32],\"addresses\":[32],\"addressUpdateKey\":[32]},[[0,\"sendValidityState\",\"checkInputsValidityHandler\"],[0,\"sendInputValue\",\"getInputsValueHandler\"],[0,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdateGlobal\"],[0,\"resendCode\",\"handleRequestTwofa\"],[8,\"message\",\"messageHandler\"]],{\"registrationStep\":[\"sendStep\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"],\"forms\":[\"setFormValidity\"],\"btag\":[\"addBtag\"]}],[1,\"general-input\",{\"type\":[513],\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"validation\":[16],\"options\":[520],\"language\":[513],\"autofilled\":[516],\"tooltip\":[513],\"defaultValue\":[520,\"default-value\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"noValidation\":[516,\"no-validation\"],\"clientStyling\":[520,\"client-styling\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"dateFormat\":[513,\"date-format\"],\"translationUrl\":[513,\"translation-url\"],\"emitOnClick\":[516,\"emit-on-click\"],\"twofaDestination\":[513,\"twofa-destination\"],\"twofaResendIntervalSeconds\":[514,\"twofa-resend-interval-seconds\"],\"haspostalcodelookup\":[516],\"postalcodelength\":[514],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"]},null,{\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}],[1,\"toggle-checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"options\":[16],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"showFields\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"]}],[1,\"checkbox-group-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32],\"selectedValues\":[32],\"showCheckboxes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"selectedValues\":[\"setValue\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"checkbox-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"date-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"dateFormat\":[513,\"date-format\"],\"emitOnClick\":[516,\"emit-on-click\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"enableManualDateInput\":[516,\"enable-manual-date-input\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"enableSouthAfricanMode\":[\"handleCustomRegistrationChange\"]}],[1,\"email-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"number-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"password-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"validation\":[16],\"noValidation\":[516,\"no-validation\"],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"hidePasswordComplexity\":[516,\"hide-password-complexity\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"passwordComplexity\":[32],\"showPopup\":[32],\"value\":[32]},[[16,\"sendOriginalValidityState\",\"originalValidityChangedHandler\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"value\":[\"valueChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"postalcode-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"postalcodelength\":[520],\"addresses\":[520],\"ignoreCountry\":[516,\"ignore-country\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32],\"currentPostalCode\":[32],\"openAddressDropdown\":[32],\"showNoResultsMessage\":[32],\"refreshTrigger\":[32],\"isFetchingAddresses\":[32]},[[10,\"click\",\"handleClickOutside\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[8,\"addressFetchStarted\",\"handleFetchStarted\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"addresses\":[\"handleAddresses\"]}],[1,\"radio-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"optionsGroup\":[16],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"select-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"action\":[513],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"options\":[16],\"validation\":[16],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"errorMessage\":[32],\"isValid\":[32],\"showTooltip\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"tel-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"showLabels\":[516,\"show-labels\"],\"action\":[513],\"validation\":[16],\"defaultValue\":[520,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"clientStyling\":[513,\"client-styling\"],\"mbSource\":[513,\"mb-source\"],\"enableCustomRegexValidation\":[516,\"enable-custom-regex-validation\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"disablePhonePrefix\":[32],\"phoneValue\":[32],\"phoneCodesOptions\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"text-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"defaultValue\":[513,\"default-value\"],\"autofilled\":[516],\"tooltip\":[513],\"language\":[513],\"checkValidity\":[516,\"check-validity\"],\"emitValue\":[516,\"emit-value\"],\"isDuplicateInput\":[516,\"is-duplicate-input\"],\"clientStyling\":[513,\"client-styling\"],\"haspostalcodelookup\":[516],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"errorMessage\":[32],\"showTooltip\":[32],\"selectedCountryCode\":[32]},[[10,\"click\",\"handleClickOutside\"],[16,\"sendInputValue\",\"valueChangedHandler\"],[16,\"validationChange\",\"handleValidationChange\"],[8,\"countryCodeUpdated\",\"handleCountryCodeUpdate\"],[16,\"sendAddressValue\",\"handleAddressSelection\"],[8,\"documentNumberUpdatedExternally\",\"handleExternalDocUpdate\"],[8,\"documentNumberResetValidation\",\"handleDocReset\"]],{\"clientStyling\":[\"handleClientStylingChange\"],\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"]}],[1,\"twofa-input\",{\"name\":[513],\"displayName\":[513,\"display-name\"],\"placeholder\":[513],\"validation\":[16],\"tooltip\":[513],\"language\":[513],\"emitValue\":[516,\"emit-value\"],\"destination\":[513],\"resendIntervalSeconds\":[514,\"resend-interval-seconds\"],\"clientStyling\":[513,\"client-styling\"],\"enableSouthAfricanMode\":[516,\"enable-south-african-mode\"],\"pinAttemptsExceeded\":[516,\"pin-attempts-exceeded\"],\"clientStylingUrl\":[513,\"client-styling-url\"],\"mbSource\":[513,\"mb-source\"],\"isValid\":[32],\"isResendButtonAvailable\":[32],\"showTooltip\":[32],\"errorMessage\":[32],\"code\":[32],\"resendIntervalSecondsLeft\":[32],\"revealedIndexes\":[32]},[[10,\"click\",\"handleClickOutside\"]],{\"isValid\":[\"validityChanged\"],\"emitValue\":[\"emitValueHandler\"],\"clientStyling\":[\"handleClientStylingChange\"],\"clientStylingUrl\":[\"handleClientStylingChangeURL\"]}]]]]"), options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|