@everymatrix/player-user-consents 1.44.0 → 1.45.0
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/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/index-69db8b9e.js +1229 -0
- package/dist/cjs/loader.cjs.js +7 -13
- package/dist/cjs/player-user-consents.cjs.entry.js +177 -203
- package/dist/cjs/player-user-consents.cjs.js +17 -11
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/player-user-consents/index.js +1 -0
- package/dist/collection/components/player-user-consents/player-user-consents.js +250 -280
- package/dist/collection/utils/locale.utils.js +110 -110
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-cea90c73.js +1202 -0
- package/dist/esm/loader.js +7 -13
- package/dist/esm/player-user-consents.entry.js +177 -203
- package/dist/esm/player-user-consents.js +14 -11
- package/dist/player-user-consents/p-1e483854.js +2 -0
- package/dist/player-user-consents/{p-f88e76d0.entry.js → p-c5bf5548.entry.js} +1 -1
- package/dist/player-user-consents/p-e1255160.js +1 -0
- package/dist/player-user-consents/player-user-consents.esm.js +1 -1
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +14 -19
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +2 -0
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.dev.d.ts +2 -0
- package/dist/types/components/player-user-consents/index.d.ts +1 -0
- package/dist/types/components/player-user-consents/player-user-consents.d.ts +49 -49
- package/dist/types/components.d.ts +16 -1
- package/dist/types/stencil-public-runtime.d.ts +142 -33
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +13 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/loader/package.json +1 -0
- package/package.json +8 -1
- package/dist/cjs/index-e77a2edf.js +0 -1215
- package/dist/components/index.d.ts +0 -26
- package/dist/components/index.js +0 -1
- package/dist/components/player-user-consents.d.ts +0 -11
- package/dist/components/player-user-consents.js +0 -260
- package/dist/esm/index-b34076ff.js +0 -1189
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/player-user-consents/p-b1139724.js +0 -1
- package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/player-user-consents/.stencil/packages/player-user-consents/stencil.config.d.ts +0 -2
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-69db8b9e.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
-
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["player-user-consents.cjs",[[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]}]]]], options);
|
|
18
|
-
});
|
|
8
|
+
const defineCustomElements = async (win, options) => {
|
|
9
|
+
if (typeof window === 'undefined') return undefined;
|
|
10
|
+
await appGlobals.globalScripts();
|
|
11
|
+
return index.bootstrapLazy([["player-user-consents.cjs",[[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
19
12
|
};
|
|
20
13
|
|
|
14
|
+
exports.setNonce = index.setNonce;
|
|
21
15
|
exports.defineCustomElements = defineCustomElements;
|
|
@@ -2,234 +2,208 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-69db8b9e.js');
|
|
6
6
|
|
|
7
7
|
const DEFAULT_LANGUAGE = 'en';
|
|
8
8
|
const TRANSLATIONS = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
en: {
|
|
10
|
+
termsAndConditions: {
|
|
11
|
+
acceptPart1: "I accept the ",
|
|
12
|
+
acceptPart2: ", I have read and understood the ",
|
|
13
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
14
|
+
tc: "Terms and Conditions"
|
|
15
|
+
},
|
|
16
|
+
privacyPolicy: {
|
|
17
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
18
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
19
|
+
privacy: "Privacy Policy"
|
|
20
|
+
},
|
|
21
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
22
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
15
23
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
ro: {
|
|
25
|
+
termsAndConditions: {
|
|
26
|
+
acceptPart1: "Accept ",
|
|
27
|
+
acceptPart2: " platformei. Am citit şi înţeles ",
|
|
28
|
+
acceptPart3: " publicată pe acest site şi confirm că am vârstă peste 18 ani.",
|
|
29
|
+
tc: "Termenii şi condiţiile"
|
|
30
|
+
},
|
|
31
|
+
privacyPolicy: {
|
|
32
|
+
readUnderstandPart1: "Am citit şi înţeles ",
|
|
33
|
+
readUnderstandPart2: " publicată pe acest site şi confirm că am vârstă peste 18 ani.",
|
|
34
|
+
privacy: "Politica de confidenţialitate"
|
|
35
|
+
},
|
|
36
|
+
sms: "Sunt de acord să primesc promoţii de marketing prin SMS.",
|
|
37
|
+
emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail."
|
|
20
38
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
hr: {
|
|
40
|
+
termsAndConditions: {
|
|
41
|
+
acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
|
|
42
|
+
acceptPart2: "",
|
|
43
|
+
acceptPart3: "",
|
|
44
|
+
tcLink: "Opći uvjeti i odredbe"
|
|
45
|
+
},
|
|
46
|
+
privacyPolicy: {
|
|
47
|
+
readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
|
|
48
|
+
readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
|
|
49
|
+
privacyLink: "Politika Privatnosti"
|
|
50
|
+
},
|
|
51
|
+
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
52
|
+
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
30
53
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
54
|
+
fr: {
|
|
55
|
+
termsAndConditions: {
|
|
56
|
+
acceptPart1: "I accept the ",
|
|
57
|
+
acceptPart2: ", I have read and understood the ",
|
|
58
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
59
|
+
tc: "Terms and Conditions"
|
|
60
|
+
},
|
|
61
|
+
privacyPolicy: {
|
|
62
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
63
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
64
|
+
privacy: "Privacy Policy"
|
|
65
|
+
},
|
|
66
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
67
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
35
68
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
69
|
+
cs: {
|
|
70
|
+
termsAndConditions: {
|
|
71
|
+
acceptPart1: "I accept the ",
|
|
72
|
+
acceptPart2: ", I have read and understood the ",
|
|
73
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
74
|
+
tc: "Terms and Conditions"
|
|
75
|
+
},
|
|
76
|
+
privacyPolicy: {
|
|
77
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
78
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
79
|
+
privacy: "Privacy Policy"
|
|
80
|
+
},
|
|
81
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
82
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
45
83
|
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
84
|
+
de: {
|
|
85
|
+
termsAndConditions: {
|
|
86
|
+
acceptPart1: "I accept the ",
|
|
87
|
+
acceptPart2: ", I have read and understood the ",
|
|
88
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
89
|
+
tc: "Terms and Conditions"
|
|
90
|
+
},
|
|
91
|
+
privacyPolicy: {
|
|
92
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
93
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
94
|
+
privacy: "Privacy Policy"
|
|
95
|
+
},
|
|
96
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
97
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
50
98
|
},
|
|
51
|
-
sms: "Želim dobivati marketinški sadržaj putem sms",
|
|
52
|
-
emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
|
|
53
|
-
},
|
|
54
|
-
fr: {
|
|
55
|
-
termsAndConditions: {
|
|
56
|
-
acceptPart1: "I accept the ",
|
|
57
|
-
acceptPart2: ", I have read and understood the ",
|
|
58
|
-
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
59
|
-
tc: "Terms and Conditions"
|
|
60
|
-
},
|
|
61
|
-
privacyPolicy: {
|
|
62
|
-
readUnderstandPart1: "I have read and understood the ",
|
|
63
|
-
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
64
|
-
privacy: "Privacy Policy"
|
|
65
|
-
},
|
|
66
|
-
sms: "I consent to receive marketing communication via SMS.",
|
|
67
|
-
emailmarketing: "I consent to receive marketing communication via Email."
|
|
68
|
-
},
|
|
69
|
-
cs: {
|
|
70
|
-
termsAndConditions: {
|
|
71
|
-
acceptPart1: "I accept the ",
|
|
72
|
-
acceptPart2: ", I have read and understood the ",
|
|
73
|
-
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
74
|
-
tc: "Terms and Conditions"
|
|
75
|
-
},
|
|
76
|
-
privacyPolicy: {
|
|
77
|
-
readUnderstandPart1: "I have read and understood the ",
|
|
78
|
-
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
79
|
-
privacy: "Privacy Policy"
|
|
80
|
-
},
|
|
81
|
-
sms: "I consent to receive marketing communication via SMS.",
|
|
82
|
-
emailmarketing: "I consent to receive marketing communication via Email."
|
|
83
|
-
},
|
|
84
|
-
de: {
|
|
85
|
-
termsAndConditions: {
|
|
86
|
-
acceptPart1: "I accept the ",
|
|
87
|
-
acceptPart2: ", I have read and understood the ",
|
|
88
|
-
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
89
|
-
tc: "Terms and Conditions"
|
|
90
|
-
},
|
|
91
|
-
privacyPolicy: {
|
|
92
|
-
readUnderstandPart1: "I have read and understood the ",
|
|
93
|
-
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
94
|
-
privacy: "Privacy Policy"
|
|
95
|
-
},
|
|
96
|
-
sms: "I consent to receive marketing communication via SMS.",
|
|
97
|
-
emailmarketing: "I consent to receive marketing communication via Email."
|
|
98
|
-
},
|
|
99
99
|
};
|
|
100
100
|
const getTranslations = (url) => {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
101
|
+
// fetch url, get the data, replace the TRANSLATIONS content
|
|
102
|
+
return new Promise((resolve) => {
|
|
103
|
+
fetch(url)
|
|
104
|
+
.then((res) => res.json())
|
|
105
|
+
.then((data) => {
|
|
106
|
+
Object.keys(data).forEach((item) => {
|
|
107
|
+
for (let key in data[item]) {
|
|
108
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
resolve(true);
|
|
112
|
+
});
|
|
112
113
|
});
|
|
113
|
-
});
|
|
114
114
|
};
|
|
115
115
|
const translate = (key, customLang, values) => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
const lang = customLang || DEFAULT_LANGUAGE;
|
|
117
|
+
const getNestedTranslation = (obj, path) => {
|
|
118
|
+
return path.split('.').reduce((o, k) => (o && o[k] !== undefined ? o[k] : null), obj);
|
|
119
|
+
};
|
|
120
|
+
let translation = getNestedTranslation(TRANSLATIONS[lang], key);
|
|
121
|
+
if (translation === null) {
|
|
122
|
+
return key;
|
|
123
|
+
}
|
|
124
|
+
if (values !== undefined) {
|
|
125
|
+
for (const [k, v] of Object.entries(values)) {
|
|
126
|
+
const regex = new RegExp(`{${k}}`, 'g');
|
|
127
|
+
translation = translation.replace(regex, v);
|
|
128
|
+
}
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
-
return translation;
|
|
130
|
+
return translation;
|
|
131
131
|
};
|
|
132
132
|
|
|
133
133
|
const playerUserConsentsCss = ":host{display:block}.ConsentTitle{margin-bottom:0.2rem;font-weight:600}.UserConsent:hover{cursor:pointer}.UserConsent{display:flex;align-items:baseline}.MandatoryItem{color:#f00;font-size:1.2rem}.ConsentLink{text-decoration:underline;color:var(--emfe-w-color-primary);font-weight:bold}";
|
|
134
|
+
const PlayerUserConsentsStyle0 = playerUserConsentsCss;
|
|
134
135
|
|
|
135
136
|
const PlayerUserConsents = class {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
* Select GM version
|
|
157
|
-
*/
|
|
158
|
-
this.gmVersion = '';
|
|
159
|
-
/**
|
|
160
|
-
* the title of the consent to be displayed
|
|
161
|
-
*/
|
|
162
|
-
this.consentTitle = '';
|
|
163
|
-
/**
|
|
164
|
-
* Client custom styling via inline style
|
|
165
|
-
*/
|
|
166
|
-
this.clientStyling = '';
|
|
167
|
-
/**
|
|
168
|
-
* Translation url
|
|
169
|
-
*/
|
|
170
|
-
this.translationUrl = '';
|
|
171
|
-
/**
|
|
172
|
-
* the text content to be rendered by the component. Determined at runtime
|
|
173
|
-
*/
|
|
174
|
-
this.textContent = '';
|
|
175
|
-
this.limitStylingAppends = false;
|
|
176
|
-
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
177
|
-
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
178
|
-
this.setClientStyling = () => {
|
|
179
|
-
let sheet = document.createElement('style');
|
|
180
|
-
sheet.innerHTML = this.clientStyling;
|
|
181
|
-
this.stylingContainer.prepend(sheet);
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
handleNewTranslations() {
|
|
185
|
-
getTranslations(this.translationUrl);
|
|
186
|
-
}
|
|
187
|
-
async componentWillLoad() {
|
|
188
|
-
if (this.translationUrl.length > 2) {
|
|
189
|
-
await getTranslations(this.translationUrl);
|
|
137
|
+
constructor(hostRef) {
|
|
138
|
+
index.registerInstance(this, hostRef);
|
|
139
|
+
this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
|
|
140
|
+
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
141
|
+
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
142
|
+
this.setClientStyling = () => {
|
|
143
|
+
let sheet = document.createElement('style');
|
|
144
|
+
sheet.innerHTML = this.clientStyling;
|
|
145
|
+
this.stylingContainer.prepend(sheet);
|
|
146
|
+
};
|
|
147
|
+
this.lang = 'en';
|
|
148
|
+
this.queried = false;
|
|
149
|
+
this.consentType = '';
|
|
150
|
+
this.mandatory = false;
|
|
151
|
+
this.gmVersion = '';
|
|
152
|
+
this.consentTitle = '';
|
|
153
|
+
this.clientStyling = '';
|
|
154
|
+
this.translationUrl = '';
|
|
155
|
+
this.textContent = '';
|
|
156
|
+
this.limitStylingAppends = false;
|
|
190
157
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
this.userLegislationConsent.emit({
|
|
194
|
-
type: this.consentType,
|
|
195
|
-
value: this.checkboxInput.checked
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
componentDidRender() {
|
|
199
|
-
// start custom styling area
|
|
200
|
-
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
201
|
-
if (this.clientStyling)
|
|
202
|
-
this.setClientStyling();
|
|
203
|
-
this.limitStylingAppends = true;
|
|
158
|
+
handleNewTranslations() {
|
|
159
|
+
getTranslations(this.translationUrl);
|
|
204
160
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (this.consentType === 'termsandconditions') {
|
|
210
|
-
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
211
|
-
}
|
|
161
|
+
async componentWillLoad() {
|
|
162
|
+
if (this.translationUrl.length > 2) {
|
|
163
|
+
await getTranslations(this.translationUrl);
|
|
164
|
+
}
|
|
212
165
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
166
|
+
userLegislationConsentHandler() {
|
|
167
|
+
this.userLegislationConsent.emit({
|
|
168
|
+
type: this.consentType,
|
|
169
|
+
value: this.checkboxInput.checked
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
componentDidRender() {
|
|
173
|
+
// start custom styling area
|
|
174
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
175
|
+
if (this.clientStyling)
|
|
176
|
+
this.setClientStyling();
|
|
177
|
+
this.limitStylingAppends = true;
|
|
178
|
+
}
|
|
179
|
+
// end custom styling area
|
|
220
180
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
181
|
+
determineTextContent() {
|
|
182
|
+
if (this.gmVersion === 'gmcore') {
|
|
183
|
+
if (this.consentType === 'termsandconditions') {
|
|
184
|
+
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (this.gmVersion === 'gm16') {
|
|
188
|
+
if (this.consentType === 'termsandconditions') {
|
|
189
|
+
return index.h("p", null, translate('termsAndConditions.acceptPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
190
|
+
}
|
|
191
|
+
if (this.consentType === 'privacypolicy') {
|
|
192
|
+
return index.h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), index.h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return index.h("p", null, translate(this.consentType, this.lang));
|
|
196
|
+
}
|
|
197
|
+
render() {
|
|
198
|
+
if (this.queried) {
|
|
199
|
+
this.userLegislationConsentHandler();
|
|
200
|
+
}
|
|
201
|
+
return (index.h("div", { key: 'e3c5e7d280de637fd8297dd59c170479d6142372', ref: el => this.stylingContainer = el }, index.h("p", { key: '8d103ef2eda5fd078a46a7d818eadd07dade5277', class: "ConsentTitle" }, this.consentTitle), index.h("label", { key: '6a333af5b8585e609285f9f172bf8ddb3b0d4b4b', class: "UserConsent", htmlFor: "userConsent" }, index.h("input", { key: 'c003a2ef7219e4c5442730432dffcaef4a16b947', ref: el => this.checkboxInput = el, id: "userConsent", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), this.determineTextContent(), this.mandatory && index.h("span", { key: '0bc4b24a85b76763af5e691f126e8ee8ae90e447', class: "MandatoryItem" }, "*"))));
|
|
226
202
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
"translationUrl": ["handleNewTranslations"]
|
|
231
|
-
}; }
|
|
203
|
+
static get watchers() { return {
|
|
204
|
+
"translationUrl": ["handleNewTranslations"]
|
|
205
|
+
}; }
|
|
232
206
|
};
|
|
233
|
-
PlayerUserConsents.style =
|
|
207
|
+
PlayerUserConsents.style = PlayerUserConsentsStyle0;
|
|
234
208
|
|
|
235
209
|
exports.player_user_consents = PlayerUserConsents;
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-69db8b9e.js');
|
|
6
|
+
const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
4
7
|
|
|
5
8
|
/*
|
|
6
|
-
Stencil Client Patch Browser
|
|
9
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
10
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
var patchBrowser = () => {
|
|
12
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('player-user-consents.cjs.js', document.baseURI).href));
|
|
13
|
+
const opts = {};
|
|
14
|
+
if (importMeta !== "") {
|
|
15
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
16
|
+
}
|
|
17
|
+
return index.promiseResolve(opts);
|
|
15
18
|
};
|
|
16
19
|
|
|
17
|
-
patchBrowser().then(options => {
|
|
18
|
-
|
|
20
|
+
patchBrowser().then(async (options) => {
|
|
21
|
+
await appGlobals.globalScripts();
|
|
22
|
+
return index.bootstrapLazy([["player-user-consents.cjs",[[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
19
23
|
});
|
|
24
|
+
|
|
25
|
+
exports.setNonce = index.setNonce;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
3
|
+
"components/player-user-consents/player-user-consents.js"
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "
|
|
8
|
-
"typescriptVersion": "
|
|
7
|
+
"version": "4.20.0",
|
|
8
|
+
"typescriptVersion": "5.5.3"
|
|
9
9
|
},
|
|
10
10
|
"collections": [],
|
|
11
11
|
"bundles": []
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlayerUserConsents } from './player-user-consents';
|