@everymatrix/player-user-consents 1.0.69
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/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/player-user-consents.cjs.entry.js +209 -0
- package/dist/cjs/player-user-consents.cjs.js +25 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/player-user-consents/index.js +1 -0
- package/dist/collection/components/player-user-consents/player-user-consents.css +28 -0
- package/dist/collection/components/player-user-consents/player-user-consents.js +258 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/locale.utils.js +125 -0
- package/dist/collection/utils/utils.js +0 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/index-cea90c73.js +1202 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/player-user-consents.entry.js +205 -0
- package/dist/esm/player-user-consents.js +20 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/player-user-consents/index.esm.js +0 -0
- package/dist/player-user-consents/p-1e483854.js +2 -0
- package/dist/player-user-consents/p-c528b18d.entry.js +1 -0
- package/dist/player-user-consents/p-e1255160.js +1 -0
- package/dist/player-user-consents/player-user-consents.esm.js +1 -0
- package/dist/stencil.config.dev.js +17 -0
- package/dist/stencil.config.js +17 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +2 -0
- package/dist/types/Users/raul.vasile/workspace/everymatrix/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 +52 -0
- package/dist/types/components.d.ts +117 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1674 -0
- package/dist/types/utils/locale.utils.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +26 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as bootstrapLazy } from './index-cea90c73.js';
|
|
2
|
+
export { s as setNonce } from './index-cea90c73.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
6
|
+
if (typeof window === 'undefined') return undefined;
|
|
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"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { defineCustomElements };
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-cea90c73.js';
|
|
2
|
+
|
|
3
|
+
const DEFAULT_LANGUAGE = 'en';
|
|
4
|
+
const TRANSLATIONS = {
|
|
5
|
+
en: {
|
|
6
|
+
termsAndConditions: {
|
|
7
|
+
acceptPart1: "I accept the ",
|
|
8
|
+
acceptPart2: ", I have read and understood the ",
|
|
9
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
10
|
+
tc: "Terms and Conditions"
|
|
11
|
+
},
|
|
12
|
+
privacyPolicy: {
|
|
13
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
14
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
15
|
+
privacy: "Privacy Policy"
|
|
16
|
+
},
|
|
17
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
18
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
19
|
+
},
|
|
20
|
+
ro: {
|
|
21
|
+
termsAndConditions: {
|
|
22
|
+
acceptPart1: "Accept ",
|
|
23
|
+
acceptPart2: " platformei. Am citit şi înţeles ",
|
|
24
|
+
acceptPart3: " publicată pe acest site şi confirm că am vârstă peste 18 ani.",
|
|
25
|
+
tc: "Termenii şi condiţiile"
|
|
26
|
+
},
|
|
27
|
+
privacyPolicy: {
|
|
28
|
+
readUnderstandPart1: "Am citit şi înţeles ",
|
|
29
|
+
readUnderstandPart2: " publicată pe acest site şi confirm că am vârstă peste 18 ani.",
|
|
30
|
+
privacy: "Politica de confidenţialitate"
|
|
31
|
+
},
|
|
32
|
+
sms: "Sunt de acord să primesc promoţii de marketing prin SMS.",
|
|
33
|
+
emailmarketing: "Sunt de acord să primesc promoţii de marketing pe e-mail."
|
|
34
|
+
},
|
|
35
|
+
hr: {
|
|
36
|
+
termsAndConditions: {
|
|
37
|
+
acceptPart1: "I accept the ",
|
|
38
|
+
acceptPart2: ", I have read and understood the ",
|
|
39
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
40
|
+
tc: "Terms and Conditions"
|
|
41
|
+
},
|
|
42
|
+
privacyPolicy: {
|
|
43
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
44
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
45
|
+
privacy: "Privacy Policy"
|
|
46
|
+
},
|
|
47
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
48
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
49
|
+
},
|
|
50
|
+
fr: {
|
|
51
|
+
termsAndConditions: {
|
|
52
|
+
acceptPart1: "I accept the ",
|
|
53
|
+
acceptPart2: ", I have read and understood the ",
|
|
54
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
55
|
+
tc: "Terms and Conditions"
|
|
56
|
+
},
|
|
57
|
+
privacyPolicy: {
|
|
58
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
59
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
60
|
+
privacy: "Privacy Policy"
|
|
61
|
+
},
|
|
62
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
63
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
64
|
+
},
|
|
65
|
+
cs: {
|
|
66
|
+
termsAndConditions: {
|
|
67
|
+
acceptPart1: "I accept the ",
|
|
68
|
+
acceptPart2: ", I have read and understood the ",
|
|
69
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
70
|
+
tc: "Terms and Conditions"
|
|
71
|
+
},
|
|
72
|
+
privacyPolicy: {
|
|
73
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
74
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
75
|
+
privacy: "Privacy Policy"
|
|
76
|
+
},
|
|
77
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
78
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
79
|
+
},
|
|
80
|
+
de: {
|
|
81
|
+
termsAndConditions: {
|
|
82
|
+
acceptPart1: "I accept the ",
|
|
83
|
+
acceptPart2: ", I have read and understood the ",
|
|
84
|
+
acceptPart3: " as published on this site and confirm that I am over 18 years old.",
|
|
85
|
+
tc: "Terms and Conditions"
|
|
86
|
+
},
|
|
87
|
+
privacyPolicy: {
|
|
88
|
+
readUnderstandPart1: "I have read and understood the ",
|
|
89
|
+
readUnderstandPart2: ", as published on this site and confirm that I am over 18 years old.",
|
|
90
|
+
privacy: "Privacy Policy"
|
|
91
|
+
},
|
|
92
|
+
sms: "I consent to receive marketing communication via SMS.",
|
|
93
|
+
emailmarketing: "I consent to receive marketing communication via Email."
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
const getTranslations = (url) => {
|
|
97
|
+
// fetch url, get the data, replace the TRANSLATIONS content
|
|
98
|
+
return new Promise((resolve) => {
|
|
99
|
+
fetch(url)
|
|
100
|
+
.then((res) => res.json())
|
|
101
|
+
.then((data) => {
|
|
102
|
+
Object.keys(data).forEach((item) => {
|
|
103
|
+
for (let key in data[item]) {
|
|
104
|
+
TRANSLATIONS[item][key] = data[item][key];
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
resolve(true);
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
const translate = (key, customLang, values) => {
|
|
112
|
+
const lang = customLang || DEFAULT_LANGUAGE;
|
|
113
|
+
const getNestedTranslation = (obj, path) => {
|
|
114
|
+
return path.split('.').reduce((o, k) => (o && o[k] !== undefined ? o[k] : null), obj);
|
|
115
|
+
};
|
|
116
|
+
let translation = getNestedTranslation(TRANSLATIONS[lang], key);
|
|
117
|
+
if (translation === null) {
|
|
118
|
+
return key;
|
|
119
|
+
}
|
|
120
|
+
if (values !== undefined) {
|
|
121
|
+
for (const [k, v] of Object.entries(values)) {
|
|
122
|
+
const regex = new RegExp(`{${k}}`, 'g');
|
|
123
|
+
translation = translation.replace(regex, v);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return translation;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
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}";
|
|
130
|
+
const PlayerUserConsentsStyle0 = playerUserConsentsCss;
|
|
131
|
+
|
|
132
|
+
const PlayerUserConsents = class {
|
|
133
|
+
constructor(hostRef) {
|
|
134
|
+
registerInstance(this, hostRef);
|
|
135
|
+
this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
|
|
136
|
+
this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
|
|
137
|
+
this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
|
|
138
|
+
this.setClientStyling = () => {
|
|
139
|
+
let sheet = document.createElement('style');
|
|
140
|
+
sheet.innerHTML = this.clientStyling;
|
|
141
|
+
this.stylingContainer.prepend(sheet);
|
|
142
|
+
};
|
|
143
|
+
this.lang = 'en';
|
|
144
|
+
this.queried = false;
|
|
145
|
+
this.consentType = '';
|
|
146
|
+
this.mandatory = false;
|
|
147
|
+
this.gmVersion = '';
|
|
148
|
+
this.consentTitle = '';
|
|
149
|
+
this.clientStyling = '';
|
|
150
|
+
this.translationUrl = '';
|
|
151
|
+
this.textContent = '';
|
|
152
|
+
this.limitStylingAppends = false;
|
|
153
|
+
}
|
|
154
|
+
handleNewTranslations() {
|
|
155
|
+
getTranslations(this.translationUrl);
|
|
156
|
+
}
|
|
157
|
+
async componentWillLoad() {
|
|
158
|
+
if (this.translationUrl.length > 2) {
|
|
159
|
+
await getTranslations(this.translationUrl);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
userLegislationConsentHandler() {
|
|
163
|
+
this.userLegislationConsent.emit({
|
|
164
|
+
type: this.consentType,
|
|
165
|
+
value: this.checkboxInput.checked
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
componentDidRender() {
|
|
169
|
+
// start custom styling area
|
|
170
|
+
if (!this.limitStylingAppends && this.stylingContainer) {
|
|
171
|
+
if (this.clientStyling)
|
|
172
|
+
this.setClientStyling();
|
|
173
|
+
this.limitStylingAppends = true;
|
|
174
|
+
}
|
|
175
|
+
// end custom styling area
|
|
176
|
+
}
|
|
177
|
+
determineTextContent() {
|
|
178
|
+
if (this.gmVersion === 'gmcore') {
|
|
179
|
+
if (this.consentType === 'termsandconditions') {
|
|
180
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)), translate('termsAndConditions.acceptPart2', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('termsAndConditions.acceptPart3', this.lang));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
if (this.gmVersion === 'gm16') {
|
|
184
|
+
if (this.consentType === 'termsandconditions') {
|
|
185
|
+
return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
|
|
186
|
+
}
|
|
187
|
+
if (this.consentType === 'privacypolicy') {
|
|
188
|
+
return h("p", null, translate('privacyPolicy.readUnderstandPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate('privacyPolicy.privacyLink', this.lang)), translate('privacyPolicy.readUnderstandPart2', this.lang));
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
return h("p", null, translate(this.consentType, this.lang));
|
|
192
|
+
}
|
|
193
|
+
render() {
|
|
194
|
+
if (this.queried) {
|
|
195
|
+
this.userLegislationConsentHandler();
|
|
196
|
+
}
|
|
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" }, "*"))));
|
|
198
|
+
}
|
|
199
|
+
static get watchers() { return {
|
|
200
|
+
"translationUrl": ["handleNewTranslations"]
|
|
201
|
+
}; }
|
|
202
|
+
};
|
|
203
|
+
PlayerUserConsents.style = PlayerUserConsentsStyle0;
|
|
204
|
+
|
|
205
|
+
export { PlayerUserConsents as player_user_consents };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-cea90c73.js';
|
|
2
|
+
export { s as setNonce } from './index-cea90c73.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
7
|
+
*/
|
|
8
|
+
var patchBrowser = () => {
|
|
9
|
+
const importMeta = import.meta.url;
|
|
10
|
+
const opts = {};
|
|
11
|
+
if (importMeta !== "") {
|
|
12
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
13
|
+
}
|
|
14
|
+
return promiseResolve(opts);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
patchBrowser().then(async (options) => {
|
|
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"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"]}]]]], options);
|
|
20
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),d=!1,m=[],y=[],$=(e,t)=>n=>{e.push(n),d||(d=!0,t&&4&f.l?v(w):f.raf(w))},b=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},w=()=>{b(m),b(y),(d=m.length>0)&&f.raf(w)},v=e=>h().then(e),S=$(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>x,unwrapErr:()=>P});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?A(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=A(e,null);return u.u=t,i.length>0&&(u.h=i),u.p=o,u},A=(e,t)=>({l:0,m:e,i:t,$:null,h:null,u:null,p:null}),T={},D=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>H(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},H=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},L=new WeakMap,N=e=>"sc-"+e.v,U=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=F(n),s=F(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},W=/\s/,F=e=>e?e.split(W):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||g,s=t.u||g;for(const e of _(Object.keys(o)))e in s||U(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))U(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.$=a.createTextNode(l.i);else if(o=l.$=a.createElement(l.m),V(null,l,z),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=B(e,l,r),s&&o.appendChild(s);return o["s-hn"]=M,o},I=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=B(null,n,o),r&&(l[o].$=r,Y(i,r,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.$;X(t),e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Q=(e,t,n=!1)=>{const l=t.$=e.$,o=e.h,s=t.h,r=t.i;null===r?(V(e,t,z),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],d=l.length-1,m=l[0],y=l[d];for(;i<=f&&c<=d;)if(null==h)h=t[++i];else if(null==p)p=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--d];else if(K(h,m,o))Q(h,m,o),h=t[++i],m=l[++c];else if(K(p,y,o))Q(p,y,o),p=t[--f],y=l[--d];else if(K(h,y,o))Q(h,y,o),Y(e,h.$,p.$.nextSibling),h=t[++i],y=l[--d];else if(K(p,m,o))Q(p,m,o),Y(e,p.$,h.$),p=t[--f],m=l[++c];else{for(u=-1,a=i;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(r=t[u],r.m!==m.m?s=B(t&&t[c],n,u):(Q(r,m,o),t[u]=void 0,s=r.$),m=l[++c]):(s=B(t&&t[c],n,c),m=l[++c]),s&&Y(h.$.parentNode,s,h.$)}i>f?I(e,null==l[d+1]?null:l[d+1].$,n,l,c,d):c>d&&J(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):!n&&null!==o&&J(o,0,o.length-1)):e.i!==r&&(l.data=r)},X=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(X)},Y=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Z=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ee=(e,t)=>{if(e.l|=16,!(4&e.l))return Z(e,e.j),S((()=>te(e,t)));e.l|=512},te=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(l=ce(n,"componentWillLoad")),ne(l,(()=>oe(e,n,t)))},ne=(e,t)=>le(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),le=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,oe=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.k,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=N(t),o=i.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,r=L.get(e=e.head||e);if(r||L.set(e,r=new Set),!r.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.O)?n:k(a);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);se(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>re(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},se=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.k,s=e.C||A(null,null),r=(e=>e&&e.m===T)(t)?t:R(null,null,t);if(M=l.tagName,o.M&&(r.u=r.u||{},o.M.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.C=r,r.$=s.$=l.shadowRoot||l,Q(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},re=e=>{const t=e.$hostElement$,n=e.j;ce(e.t,"componentDidRender"),64&e.l||(e.l|=64,ue(t),e.P(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&v((()=>ee(e,!1))),e.l&=-517},ie=()=>{ue(a.documentElement),v((()=>H(u,"appload",{detail:{namespace:"player-user-consents"}})))},ce=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ue=e=>e.classList.add("hydrated"),ae=(e,t,l)=>{var o,r;const i=e.prototype;if(t.R||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const c=Object.entries(null!=(o=t.R)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).T.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.T.get(t),u=r.l,a=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(l,o.R[t][0]),(!(8&u)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.T.set(t,l),a)){if(o.A&&128&u){const e=o.A[t];e&&e.map((e=>{try{a[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&u)&&ee(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.A)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.A)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.M)||o.push([e,s])),s}))]))}}return e},fe=(e,l={})=>{var o;const h=[],d=l.exclude||[],m=u.customElements,y=a.head,$=y.querySelector("meta[charset]"),b=a.createElement("style"),w=[];let v,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],v:l[1],R:l[2],D:l[3]};4&c.l&&(g=!0),c.R=l[2],c.M=[],c.A=null!=(o=l[4])?o:{};const u=c.v,a=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,k:n,T:new Map};l.H=new Promise((e=>l.P=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),v&&(clearTimeout(v),v=null),S?w.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.k,o=()=>{};if(1&t.l)(null==t?void 0:t.t)||(null==t?void 0:t.H)&&t.H.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.L){const e=(e=>{const t=e.v.replace(/-/g,"_"),n=e.L;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.v}#${t.N}" was not found`);l.isProxied||(n.A=l.watchers,ae(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=N(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ee(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);(null==e?void 0:e.t)||(null==e?void 0:e.H)&&e.H.then((()=>{}))}})()))}componentOnReady(){return n(this).H}};c.L=e[0],d.includes(u)||m.get(u)||(h.push(u),m.define(u,ae(a,c,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const e=null!=(o=f.O)?o:k(a);null!=e&&b.setAttribute("nonce",e),y.insertBefore(b,$?$.nextSibling:y.firstChild)}S=!1,w.length?w.map((e=>e.connectedCallback())):f.jmp((()=>v=setTimeout(ie,30)))},he=e=>f.O=e;export{fe as b,D as c,R as h,h as p,l as r,he as s}
|
|
@@ -0,0 +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:"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."},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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +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-c528b18d",[[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))));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'player-user-consents',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: true,
|
|
6
|
+
minifyJs: false,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'www',
|
|
14
|
+
serviceWorker: null // disable service workers
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { sass } from "@stencil/sass";
|
|
2
|
+
export const config = {
|
|
3
|
+
namespace: 'player-user-consents',
|
|
4
|
+
taskQueue: 'async',
|
|
5
|
+
sourceMap: false,
|
|
6
|
+
minifyJs: true,
|
|
7
|
+
extras: {
|
|
8
|
+
experimentalImportInjection: true
|
|
9
|
+
},
|
|
10
|
+
plugins: [sass()],
|
|
11
|
+
outputTargets: [
|
|
12
|
+
{
|
|
13
|
+
type: 'dist',
|
|
14
|
+
esmLoaderPath: '../loader'
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PlayerUserConsents } from './player-user-consents';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class PlayerUserConsents {
|
|
3
|
+
/**
|
|
4
|
+
* Language
|
|
5
|
+
*/
|
|
6
|
+
lang: string;
|
|
7
|
+
/**
|
|
8
|
+
* 'true' when parent expects component to emit it's current value
|
|
9
|
+
*/
|
|
10
|
+
queried: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* the type of the consent, used to determine render details
|
|
13
|
+
*/
|
|
14
|
+
consentType: string;
|
|
15
|
+
/**
|
|
16
|
+
* wether or not this consent is mandatory. Used for render details
|
|
17
|
+
*/
|
|
18
|
+
mandatory: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Select GM version
|
|
21
|
+
*/
|
|
22
|
+
gmVersion: string;
|
|
23
|
+
/**
|
|
24
|
+
* the title of the consent to be displayed
|
|
25
|
+
*/
|
|
26
|
+
consentTitle: string;
|
|
27
|
+
/**
|
|
28
|
+
* Client custom styling via inline style
|
|
29
|
+
*/
|
|
30
|
+
clientStyling: string;
|
|
31
|
+
/**
|
|
32
|
+
* Translation url
|
|
33
|
+
*/
|
|
34
|
+
translationUrl: string;
|
|
35
|
+
/**
|
|
36
|
+
* the text content to be rendered by the component. Determined at runtime
|
|
37
|
+
*/
|
|
38
|
+
textContent: any;
|
|
39
|
+
private limitStylingAppends;
|
|
40
|
+
private checkboxInput;
|
|
41
|
+
private stylingContainer;
|
|
42
|
+
handleNewTranslations(): void;
|
|
43
|
+
componentWillLoad(): Promise<void>;
|
|
44
|
+
goToTermsAndConditions: () => void;
|
|
45
|
+
goToPrivacyPolicy: () => void;
|
|
46
|
+
userLegislationConsent: EventEmitter<object>;
|
|
47
|
+
userLegislationConsentHandler(): void;
|
|
48
|
+
componentDidRender(): void;
|
|
49
|
+
setClientStyling: () => void;
|
|
50
|
+
determineTextContent(): any;
|
|
51
|
+
render(): any;
|
|
52
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/**
|
|
4
|
+
* This is an autogenerated file created by the Stencil compiler.
|
|
5
|
+
* It contains typing information for all components that exist in this project.
|
|
6
|
+
*/
|
|
7
|
+
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
export namespace Components {
|
|
9
|
+
interface PlayerUserConsents {
|
|
10
|
+
/**
|
|
11
|
+
* Client custom styling via inline style
|
|
12
|
+
*/
|
|
13
|
+
"clientStyling": string;
|
|
14
|
+
/**
|
|
15
|
+
* the title of the consent to be displayed
|
|
16
|
+
*/
|
|
17
|
+
"consentTitle": string;
|
|
18
|
+
/**
|
|
19
|
+
* the type of the consent, used to determine render details
|
|
20
|
+
*/
|
|
21
|
+
"consentType": string;
|
|
22
|
+
/**
|
|
23
|
+
* Select GM version
|
|
24
|
+
*/
|
|
25
|
+
"gmVersion": string;
|
|
26
|
+
/**
|
|
27
|
+
* Language
|
|
28
|
+
*/
|
|
29
|
+
"lang": string;
|
|
30
|
+
/**
|
|
31
|
+
* wether or not this consent is mandatory. Used for render details
|
|
32
|
+
*/
|
|
33
|
+
"mandatory": boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 'true' when parent expects component to emit it's current value
|
|
36
|
+
*/
|
|
37
|
+
"queried": boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Translation url
|
|
40
|
+
*/
|
|
41
|
+
"translationUrl": string;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export interface PlayerUserConsentsCustomEvent<T> extends CustomEvent<T> {
|
|
45
|
+
detail: T;
|
|
46
|
+
target: HTMLPlayerUserConsentsElement;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLPlayerUserConsentsElementEventMap {
|
|
50
|
+
"userLegislationConsent": object;
|
|
51
|
+
}
|
|
52
|
+
interface HTMLPlayerUserConsentsElement extends Components.PlayerUserConsents, HTMLStencilElement {
|
|
53
|
+
addEventListener<K extends keyof HTMLPlayerUserConsentsElementEventMap>(type: K, listener: (this: HTMLPlayerUserConsentsElement, ev: PlayerUserConsentsCustomEvent<HTMLPlayerUserConsentsElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
54
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
55
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
56
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
57
|
+
removeEventListener<K extends keyof HTMLPlayerUserConsentsElementEventMap>(type: K, listener: (this: HTMLPlayerUserConsentsElement, ev: PlayerUserConsentsCustomEvent<HTMLPlayerUserConsentsElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
58
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
59
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
60
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
61
|
+
}
|
|
62
|
+
var HTMLPlayerUserConsentsElement: {
|
|
63
|
+
prototype: HTMLPlayerUserConsentsElement;
|
|
64
|
+
new (): HTMLPlayerUserConsentsElement;
|
|
65
|
+
};
|
|
66
|
+
interface HTMLElementTagNameMap {
|
|
67
|
+
"player-user-consents": HTMLPlayerUserConsentsElement;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
declare namespace LocalJSX {
|
|
71
|
+
interface PlayerUserConsents {
|
|
72
|
+
/**
|
|
73
|
+
* Client custom styling via inline style
|
|
74
|
+
*/
|
|
75
|
+
"clientStyling"?: string;
|
|
76
|
+
/**
|
|
77
|
+
* the title of the consent to be displayed
|
|
78
|
+
*/
|
|
79
|
+
"consentTitle"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* the type of the consent, used to determine render details
|
|
82
|
+
*/
|
|
83
|
+
"consentType"?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Select GM version
|
|
86
|
+
*/
|
|
87
|
+
"gmVersion"?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Language
|
|
90
|
+
*/
|
|
91
|
+
"lang"?: string;
|
|
92
|
+
/**
|
|
93
|
+
* wether or not this consent is mandatory. Used for render details
|
|
94
|
+
*/
|
|
95
|
+
"mandatory"?: boolean;
|
|
96
|
+
"onUserLegislationConsent"?: (event: PlayerUserConsentsCustomEvent<object>) => void;
|
|
97
|
+
/**
|
|
98
|
+
* 'true' when parent expects component to emit it's current value
|
|
99
|
+
*/
|
|
100
|
+
"queried"?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Translation url
|
|
103
|
+
*/
|
|
104
|
+
"translationUrl"?: string;
|
|
105
|
+
}
|
|
106
|
+
interface IntrinsicElements {
|
|
107
|
+
"player-user-consents": PlayerUserConsents;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export { LocalJSX as JSX };
|
|
111
|
+
declare module "@stencil/core" {
|
|
112
|
+
export namespace JSX {
|
|
113
|
+
interface IntrinsicElements {
|
|
114
|
+
"player-user-consents": LocalJSX.PlayerUserConsents & JSXBase.HTMLAttributes<HTMLPlayerUserConsentsElement>;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|