@everymatrix/player-user-consents 1.45.10 → 1.45.13
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/loader.cjs.js +1 -1
- package/dist/cjs/player-user-consents.cjs.entry.js +1 -18
- package/dist/cjs/player-user-consents.cjs.js +1 -1
- package/dist/collection/components/player-user-consents/player-user-consents.js +1 -36
- package/dist/esm/loader.js +1 -1
- package/dist/esm/player-user-consents.entry.js +1 -18
- package/dist/esm/player-user-consents.js +1 -1
- package/dist/player-user-consents/{p-1bbf7187.entry.js → p-c5bf5548.entry.js} +1 -1
- package/dist/player-user-consents/player-user-consents.esm.js +1 -1
- package/dist/types/components/player-user-consents/player-user-consents.d.ts +1 -6
- package/dist/types/components.d.ts +0 -8
- package/package.json +1 -1
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
|
|
|
8
8
|
const defineCustomElements = async (win, options) => {
|
|
9
9
|
if (typeof window === 'undefined') return undefined;
|
|
10
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"],"
|
|
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);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
exports.setNonce = index.setNonce;
|
|
@@ -144,19 +144,6 @@ const PlayerUserConsents = class {
|
|
|
144
144
|
sheet.innerHTML = this.clientStyling;
|
|
145
145
|
this.stylingContainer.prepend(sheet);
|
|
146
146
|
};
|
|
147
|
-
this.setClientStylingURL = () => {
|
|
148
|
-
let url = new URL(this.clientStylingUrl);
|
|
149
|
-
let cssFile = document.createElement('style');
|
|
150
|
-
fetch(url.href)
|
|
151
|
-
.then((res) => res.text())
|
|
152
|
-
.then((data) => {
|
|
153
|
-
cssFile.innerHTML = data;
|
|
154
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
155
|
-
})
|
|
156
|
-
.catch((err) => {
|
|
157
|
-
console.log('error ', err);
|
|
158
|
-
});
|
|
159
|
-
};
|
|
160
147
|
this.lang = 'en';
|
|
161
148
|
this.queried = false;
|
|
162
149
|
this.consentType = '';
|
|
@@ -164,7 +151,6 @@ const PlayerUserConsents = class {
|
|
|
164
151
|
this.gmVersion = '';
|
|
165
152
|
this.consentTitle = '';
|
|
166
153
|
this.clientStyling = '';
|
|
167
|
-
this.clientStylingUrl = '';
|
|
168
154
|
this.translationUrl = '';
|
|
169
155
|
this.textContent = '';
|
|
170
156
|
this.limitStylingAppends = false;
|
|
@@ -186,9 +172,6 @@ const PlayerUserConsents = class {
|
|
|
186
172
|
componentDidRender() {
|
|
187
173
|
// start custom styling area
|
|
188
174
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
189
|
-
if (this.clientStylingUrl) {
|
|
190
|
-
this.setClientStylingURL();
|
|
191
|
-
}
|
|
192
175
|
if (this.clientStyling)
|
|
193
176
|
this.setClientStyling();
|
|
194
177
|
this.limitStylingAppends = true;
|
|
@@ -215,7 +198,7 @@ const PlayerUserConsents = class {
|
|
|
215
198
|
if (this.queried) {
|
|
216
199
|
this.userLegislationConsentHandler();
|
|
217
200
|
}
|
|
218
|
-
return (index.h("div", { key: '
|
|
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" }, "*"))));
|
|
219
202
|
}
|
|
220
203
|
static get watchers() { return {
|
|
221
204
|
"translationUrl": ["handleNewTranslations"]
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
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"],"
|
|
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);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -9,19 +9,6 @@ export class PlayerUserConsents {
|
|
|
9
9
|
sheet.innerHTML = this.clientStyling;
|
|
10
10
|
this.stylingContainer.prepend(sheet);
|
|
11
11
|
};
|
|
12
|
-
this.setClientStylingURL = () => {
|
|
13
|
-
let url = new URL(this.clientStylingUrl);
|
|
14
|
-
let cssFile = document.createElement('style');
|
|
15
|
-
fetch(url.href)
|
|
16
|
-
.then((res) => res.text())
|
|
17
|
-
.then((data) => {
|
|
18
|
-
cssFile.innerHTML = data;
|
|
19
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
20
|
-
})
|
|
21
|
-
.catch((err) => {
|
|
22
|
-
console.log('error ', err);
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
12
|
this.lang = 'en';
|
|
26
13
|
this.queried = false;
|
|
27
14
|
this.consentType = '';
|
|
@@ -29,7 +16,6 @@ export class PlayerUserConsents {
|
|
|
29
16
|
this.gmVersion = '';
|
|
30
17
|
this.consentTitle = '';
|
|
31
18
|
this.clientStyling = '';
|
|
32
|
-
this.clientStylingUrl = '';
|
|
33
19
|
this.translationUrl = '';
|
|
34
20
|
this.textContent = '';
|
|
35
21
|
this.limitStylingAppends = false;
|
|
@@ -51,9 +37,6 @@ export class PlayerUserConsents {
|
|
|
51
37
|
componentDidRender() {
|
|
52
38
|
// start custom styling area
|
|
53
39
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
54
|
-
if (this.clientStylingUrl) {
|
|
55
|
-
this.setClientStylingURL();
|
|
56
|
-
}
|
|
57
40
|
if (this.clientStyling)
|
|
58
41
|
this.setClientStyling();
|
|
59
42
|
this.limitStylingAppends = true;
|
|
@@ -80,7 +63,7 @@ export class PlayerUserConsents {
|
|
|
80
63
|
if (this.queried) {
|
|
81
64
|
this.userLegislationConsentHandler();
|
|
82
65
|
}
|
|
83
|
-
return (h("div", { key: '
|
|
66
|
+
return (h("div", { key: 'e3c5e7d280de637fd8297dd59c170479d6142372', ref: el => this.stylingContainer = el }, h("p", { key: '8d103ef2eda5fd078a46a7d818eadd07dade5277', class: "ConsentTitle" }, this.consentTitle), h("label", { key: '6a333af5b8585e609285f9f172bf8ddb3b0d4b4b', class: "UserConsent", htmlFor: "userConsent" }, h("input", { key: 'c003a2ef7219e4c5442730432dffcaef4a16b947', ref: el => this.checkboxInput = el, id: "userConsent", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), this.determineTextContent(), this.mandatory && h("span", { key: '0bc4b24a85b76763af5e691f126e8ee8ae90e447', class: "MandatoryItem" }, "*"))));
|
|
84
67
|
}
|
|
85
68
|
static get is() { return "player-user-consents"; }
|
|
86
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -222,24 +205,6 @@ export class PlayerUserConsents {
|
|
|
222
205
|
"reflect": false,
|
|
223
206
|
"defaultValue": "''"
|
|
224
207
|
},
|
|
225
|
-
"clientStylingUrl": {
|
|
226
|
-
"type": "string",
|
|
227
|
-
"mutable": false,
|
|
228
|
-
"complexType": {
|
|
229
|
-
"original": "string",
|
|
230
|
-
"resolved": "string",
|
|
231
|
-
"references": {}
|
|
232
|
-
},
|
|
233
|
-
"required": false,
|
|
234
|
-
"optional": false,
|
|
235
|
-
"docs": {
|
|
236
|
-
"tags": [],
|
|
237
|
-
"text": "Client custom styling via url"
|
|
238
|
-
},
|
|
239
|
-
"attribute": "client-styling-url",
|
|
240
|
-
"reflect": true,
|
|
241
|
-
"defaultValue": "''"
|
|
242
|
-
},
|
|
243
208
|
"translationUrl": {
|
|
244
209
|
"type": "string",
|
|
245
210
|
"mutable": false,
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["player-user-consents",[[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"],"
|
|
8
|
+
return bootstrapLazy([["player-user-consents",[[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);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
|
@@ -140,19 +140,6 @@ const PlayerUserConsents = class {
|
|
|
140
140
|
sheet.innerHTML = this.clientStyling;
|
|
141
141
|
this.stylingContainer.prepend(sheet);
|
|
142
142
|
};
|
|
143
|
-
this.setClientStylingURL = () => {
|
|
144
|
-
let url = new URL(this.clientStylingUrl);
|
|
145
|
-
let cssFile = document.createElement('style');
|
|
146
|
-
fetch(url.href)
|
|
147
|
-
.then((res) => res.text())
|
|
148
|
-
.then((data) => {
|
|
149
|
-
cssFile.innerHTML = data;
|
|
150
|
-
setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
|
|
151
|
-
})
|
|
152
|
-
.catch((err) => {
|
|
153
|
-
console.log('error ', err);
|
|
154
|
-
});
|
|
155
|
-
};
|
|
156
143
|
this.lang = 'en';
|
|
157
144
|
this.queried = false;
|
|
158
145
|
this.consentType = '';
|
|
@@ -160,7 +147,6 @@ const PlayerUserConsents = class {
|
|
|
160
147
|
this.gmVersion = '';
|
|
161
148
|
this.consentTitle = '';
|
|
162
149
|
this.clientStyling = '';
|
|
163
|
-
this.clientStylingUrl = '';
|
|
164
150
|
this.translationUrl = '';
|
|
165
151
|
this.textContent = '';
|
|
166
152
|
this.limitStylingAppends = false;
|
|
@@ -182,9 +168,6 @@ const PlayerUserConsents = class {
|
|
|
182
168
|
componentDidRender() {
|
|
183
169
|
// start custom styling area
|
|
184
170
|
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
185
|
-
if (this.clientStylingUrl) {
|
|
186
|
-
this.setClientStylingURL();
|
|
187
|
-
}
|
|
188
171
|
if (this.clientStyling)
|
|
189
172
|
this.setClientStyling();
|
|
190
173
|
this.limitStylingAppends = true;
|
|
@@ -211,7 +194,7 @@ const PlayerUserConsents = class {
|
|
|
211
194
|
if (this.queried) {
|
|
212
195
|
this.userLegislationConsentHandler();
|
|
213
196
|
}
|
|
214
|
-
return (h("div", { key: '
|
|
197
|
+
return (h("div", { key: 'e3c5e7d280de637fd8297dd59c170479d6142372', ref: el => this.stylingContainer = el }, h("p", { key: '8d103ef2eda5fd078a46a7d818eadd07dade5277', class: "ConsentTitle" }, this.consentTitle), h("label", { key: '6a333af5b8585e609285f9f172bf8ddb3b0d4b4b', class: "UserConsent", htmlFor: "userConsent" }, h("input", { key: 'c003a2ef7219e4c5442730432dffcaef4a16b947', ref: el => this.checkboxInput = el, id: "userConsent", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), this.determineTextContent(), this.mandatory && h("span", { key: '0bc4b24a85b76763af5e691f126e8ee8ae90e447', class: "MandatoryItem" }, "*"))));
|
|
215
198
|
}
|
|
216
199
|
static get watchers() { return {
|
|
217
200
|
"translationUrl": ["handleNewTranslations"]
|
|
@@ -16,5 +16,5 @@ var patchBrowser = () => {
|
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(async (options) => {
|
|
18
18
|
await globalScripts();
|
|
19
|
-
return bootstrapLazy([["player-user-consents",[[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"],"
|
|
19
|
+
return bootstrapLazy([["player-user-consents",[[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);
|
|
20
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as i}from"./p-1e483854.js";const a={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail."},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."}},n=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])a[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{let n=(s=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),s));var s;if(null===n)return t;if(void 0!==i)for(const[t,e]of Object.entries(i)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n},r=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-1e483854.js";const a={en:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},ro:{termsAndConditions:{acceptPart1:"Accept ",acceptPart2:" platformei. Am citit şi înţeles ",acceptPart3:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",tc:"Termenii şi condiţiile"},privacyPolicy:{readUnderstandPart1:"Am citit şi înţeles ",readUnderstandPart2:" publicată pe acest site şi confirm că am vârstă peste 18 ani.",privacy:"Politica de confidenţialitate"},sms:"Sunt de acord să primesc promoţii de marketing prin SMS.",emailmarketing:"Sunt de acord să primesc promoţii de marketing pe e-mail."},hr:{termsAndConditions:{acceptPart1:"Prihvaćam Opće uvjete i odredbe ",acceptPart2:"",acceptPart3:"",tcLink:"Opći uvjeti i odredbe"},privacyPolicy:{readUnderstandPart1:"Pročitao sam i razumijem Politiku Privatnosti ",readUnderstandPart2:", i potvrđujem da imam više od 18 godina",privacyLink:"Politika Privatnosti"},sms:"Želim dobivati marketinški sadržaj putem sms",emailmarketing:"Želim dobivati marketinški sadržaj putem e-maila"},fr:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},cs:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."},de:{termsAndConditions:{acceptPart1:"I accept the ",acceptPart2:", I have read and understood the ",acceptPart3:" as published on this site and confirm that I am over 18 years old.",tc:"Terms and Conditions"},privacyPolicy:{readUnderstandPart1:"I have read and understood the ",readUnderstandPart2:", as published on this site and confirm that I am over 18 years old.",privacy:"Privacy Policy"},sms:"I consent to receive marketing communication via SMS.",emailmarketing:"I consent to receive marketing communication via Email."}},n=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])a[e][i]=t[e][i]})),e(!0)}))})),s=(t,e,i)=>{let n=(s=a[e||"en"],t.split(".").reduce(((t,e)=>t&&void 0!==t[e]?t[e]:null),s));var s;if(null===n)return t;if(void 0!==i)for(const[t,e]of Object.entries(i)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n},r=class{constructor(i){t(this,i),this.userLegislationConsent=e(this,"userLegislationConsent",7),this.goToTermsAndConditions=()=>window.postMessage({type:"GoToTermsAndConditions"}),this.goToPrivacyPolicy=()=>window.postMessage({type:"GoToPrivacyPolicy"}),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.translationUrl="",this.textContent="",this.limitStylingAppends=!1}handleNewTranslations(){n(this.translationUrl)}async componentWillLoad(){this.translationUrl.length>2&&await n(this.translationUrl)}userLegislationConsentHandler(){this.userLegislationConsent.emit({type:this.consentType,value:this.checkboxInput.checked})}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}determineTextContent(){if("gmcore"===this.gmVersion&&"termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)),s("termsAndConditions.acceptPart2",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("termsAndConditions.acceptPart3",this.lang));if("gm16"===this.gmVersion){if("termsandconditions"===this.consentType)return i("p",null,s("termsAndConditions.acceptPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return i("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),i("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang))}return i("p",null,s(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),i("div",{key:"e3c5e7d280de637fd8297dd59c170479d6142372",ref:t=>this.stylingContainer=t},i("p",{key:"8d103ef2eda5fd078a46a7d818eadd07dade5277",class:"ConsentTitle"},this.consentTitle),i("label",{key:"6a333af5b8585e609285f9f172bf8ddb3b0d4b4b",class:"UserConsent",htmlFor:"userConsent"},i("input",{key:"c003a2ef7219e4c5442730432dffcaef4a16b947",ref:t=>this.checkboxInput=t,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&i("span",{key:"0bc4b24a85b76763af5e691f126e8ee8ae90e447",class:"MandatoryItem"},"*")))}static get watchers(){return{translationUrl:["handleNewTranslations"]}}};r.style=":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}";export{r as player_user_consents}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as n,b as t}from"./p-1e483854.js";export{s as setNonce}from"./p-1e483854.js";import{g as e}from"./p-e1255160.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((async n=>(await e(),t([["p-
|
|
1
|
+
import{p as n,b as t}from"./p-1e483854.js";export{s as setNonce}from"./p-1e483854.js";import{g as e}from"./p-e1255160.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((async n=>(await e(),t([["p-c5bf5548",[[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"]}]]]],n))));
|
|
@@ -29,10 +29,6 @@ export declare class PlayerUserConsents {
|
|
|
29
29
|
*/
|
|
30
30
|
clientStyling: string;
|
|
31
31
|
/**
|
|
32
|
-
* Client custom styling via url
|
|
33
|
-
*/
|
|
34
|
-
clientStylingUrl: string;
|
|
35
|
-
/**
|
|
36
32
|
* Translation url
|
|
37
33
|
*/
|
|
38
34
|
translationUrl: string;
|
|
@@ -49,9 +45,8 @@ export declare class PlayerUserConsents {
|
|
|
49
45
|
goToPrivacyPolicy: () => void;
|
|
50
46
|
userLegislationConsent: EventEmitter<object>;
|
|
51
47
|
userLegislationConsentHandler(): void;
|
|
52
|
-
setClientStyling: () => void;
|
|
53
|
-
setClientStylingURL: () => void;
|
|
54
48
|
componentDidRender(): void;
|
|
49
|
+
setClientStyling: () => void;
|
|
55
50
|
determineTextContent(): any;
|
|
56
51
|
render(): any;
|
|
57
52
|
}
|
|
@@ -11,10 +11,6 @@ export namespace Components {
|
|
|
11
11
|
* Client custom styling via inline style
|
|
12
12
|
*/
|
|
13
13
|
"clientStyling": string;
|
|
14
|
-
/**
|
|
15
|
-
* Client custom styling via url
|
|
16
|
-
*/
|
|
17
|
-
"clientStylingUrl": string;
|
|
18
14
|
/**
|
|
19
15
|
* the title of the consent to be displayed
|
|
20
16
|
*/
|
|
@@ -77,10 +73,6 @@ declare namespace LocalJSX {
|
|
|
77
73
|
* Client custom styling via inline style
|
|
78
74
|
*/
|
|
79
75
|
"clientStyling"?: string;
|
|
80
|
-
/**
|
|
81
|
-
* Client custom styling via url
|
|
82
|
-
*/
|
|
83
|
-
"clientStylingUrl"?: string;
|
|
84
76
|
/**
|
|
85
77
|
* the title of the consent to be displayed
|
|
86
78
|
*/
|