@everymatrix/player-user-consents 1.43.4 → 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.
Files changed (47) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-69db8b9e.js +1229 -0
  3. package/dist/cjs/loader.cjs.js +7 -13
  4. package/dist/cjs/player-user-consents.cjs.entry.js +177 -203
  5. package/dist/cjs/player-user-consents.cjs.js +17 -11
  6. package/dist/collection/collection-manifest.json +3 -3
  7. package/dist/collection/components/player-user-consents/index.js +1 -0
  8. package/dist/collection/components/player-user-consents/player-user-consents.js +250 -280
  9. package/dist/collection/utils/locale.utils.js +110 -110
  10. package/dist/esm/app-globals-0f993ce5.js +3 -0
  11. package/dist/esm/index-cea90c73.js +1202 -0
  12. package/dist/esm/loader.js +7 -13
  13. package/dist/esm/player-user-consents.entry.js +177 -203
  14. package/dist/esm/player-user-consents.js +14 -11
  15. package/dist/player-user-consents/p-1e483854.js +2 -0
  16. package/dist/player-user-consents/{p-f88e76d0.entry.js → p-c5bf5548.entry.js} +1 -1
  17. package/dist/player-user-consents/p-e1255160.js +1 -0
  18. package/dist/player-user-consents/player-user-consents.esm.js +1 -1
  19. package/dist/stencil.config.dev.js +17 -0
  20. package/dist/stencil.config.js +14 -19
  21. 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
  22. 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
  23. package/dist/types/components/player-user-consents/index.d.ts +1 -0
  24. package/dist/types/components/player-user-consents/player-user-consents.d.ts +49 -49
  25. package/dist/types/components.d.ts +16 -1
  26. package/dist/types/stencil-public-runtime.d.ts +142 -33
  27. package/loader/cdn.js +1 -3
  28. package/loader/index.cjs.js +1 -3
  29. package/loader/index.d.ts +13 -1
  30. package/loader/index.es2017.js +1 -3
  31. package/loader/index.js +1 -3
  32. package/loader/package.json +1 -0
  33. package/package.json +8 -1
  34. package/dist/cjs/index-e77a2edf.js +0 -1215
  35. package/dist/components/index.d.ts +0 -26
  36. package/dist/components/index.js +0 -1
  37. package/dist/components/player-user-consents.d.ts +0 -11
  38. package/dist/components/player-user-consents.js +0 -260
  39. package/dist/esm/index-b34076ff.js +0 -1189
  40. package/dist/esm/polyfills/core-js.js +0 -11
  41. package/dist/esm/polyfills/css-shim.js +0 -1
  42. package/dist/esm/polyfills/dom.js +0 -79
  43. package/dist/esm/polyfills/es5-html-element.js +0 -1
  44. package/dist/esm/polyfills/index.js +0 -34
  45. package/dist/esm/polyfills/system.js +0 -6
  46. package/dist/player-user-consents/p-b1139724.js +0 -1
  47. 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
@@ -1,17 +1,11 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-b34076ff.js';
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';
2
4
 
3
- /*
4
- Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
5
- */
6
- const patchEsm = () => {
7
- return promiseResolve();
8
- };
9
-
10
- const defineCustomElements = (win, options) => {
11
- if (typeof window === 'undefined') return Promise.resolve();
12
- return patchEsm().then(() => {
13
- 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]}]]]], options);
14
- });
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);
15
9
  };
16
10
 
17
11
  export { defineCustomElements };
@@ -1,231 +1,205 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-b34076ff.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-cea90c73.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
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"
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."
11
19
  },
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"
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."
16
34
  },
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"
35
+ hr: {
36
+ termsAndConditions: {
37
+ acceptPart1: "Prihvaćam Opće uvjete i odredbe ",
38
+ acceptPart2: "",
39
+ acceptPart3: "",
40
+ tcLink: "Opći uvjeti i odredbe"
41
+ },
42
+ privacyPolicy: {
43
+ readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
44
+ readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
45
+ privacyLink: "Politika Privatnosti"
46
+ },
47
+ sms: "Želim dobivati marketinški sadržaj putem sms",
48
+ emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
26
49
  },
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"
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."
31
64
  },
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: "Prihvaćam Opće uvjete i odredbe ",
38
- acceptPart2: "",
39
- acceptPart3: "",
40
- tcLink: "Opći uvjeti i odredbe"
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."
41
79
  },
42
- privacyPolicy: {
43
- readUnderstandPart1: "Pročitao sam i razumijem Politiku Privatnosti ",
44
- readUnderstandPart2: ", i potvrđujem da imam više od 18 godina",
45
- privacyLink: "Politika Privatnosti"
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."
46
94
  },
47
- sms: "Želim dobivati marketinški sadržaj putem sms",
48
- emailmarketing: "Želim dobivati marketinški sadržaj putem e-maila"
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
95
  };
96
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);
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
+ });
108
109
  });
109
- });
110
110
  };
111
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);
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
+ }
124
125
  }
125
- }
126
- return translation;
126
+ return translation;
127
127
  };
128
128
 
129
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;
130
131
 
131
132
  const PlayerUserConsents = class {
132
- constructor(hostRef) {
133
- registerInstance(this, hostRef);
134
- this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
135
- /**
136
- * Language
137
- */
138
- this.lang = 'en';
139
- /**
140
- * 'true' when parent expects component to emit it's current value
141
- */
142
- this.queried = false;
143
- /**
144
- * the type of the consent, used to determine render details
145
- */
146
- this.consentType = '';
147
- /**
148
- * wether or not this consent is mandatory. Used for render details
149
- */
150
- this.mandatory = false;
151
- /**
152
- * Select GM version
153
- */
154
- this.gmVersion = '';
155
- /**
156
- * the title of the consent to be displayed
157
- */
158
- this.consentTitle = '';
159
- /**
160
- * Client custom styling via inline style
161
- */
162
- this.clientStyling = '';
163
- /**
164
- * Translation url
165
- */
166
- this.translationUrl = '';
167
- /**
168
- * the text content to be rendered by the component. Determined at runtime
169
- */
170
- this.textContent = '';
171
- this.limitStylingAppends = false;
172
- this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
173
- this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
174
- this.setClientStyling = () => {
175
- let sheet = document.createElement('style');
176
- sheet.innerHTML = this.clientStyling;
177
- this.stylingContainer.prepend(sheet);
178
- };
179
- }
180
- handleNewTranslations() {
181
- getTranslations(this.translationUrl);
182
- }
183
- async componentWillLoad() {
184
- if (this.translationUrl.length > 2) {
185
- await getTranslations(this.translationUrl);
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;
186
153
  }
187
- }
188
- userLegislationConsentHandler() {
189
- this.userLegislationConsent.emit({
190
- type: this.consentType,
191
- value: this.checkboxInput.checked
192
- });
193
- }
194
- componentDidRender() {
195
- // start custom styling area
196
- if (!this.limitStylingAppends && this.stylingContainer) {
197
- if (this.clientStyling)
198
- this.setClientStyling();
199
- this.limitStylingAppends = true;
154
+ handleNewTranslations() {
155
+ getTranslations(this.translationUrl);
200
156
  }
201
- // end custom styling area
202
- }
203
- determineTextContent() {
204
- if (this.gmVersion === 'gmcore') {
205
- if (this.consentType === 'termsandconditions') {
206
- 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));
207
- }
157
+ async componentWillLoad() {
158
+ if (this.translationUrl.length > 2) {
159
+ await getTranslations(this.translationUrl);
160
+ }
208
161
  }
209
- if (this.gmVersion === 'gm16') {
210
- if (this.consentType === 'termsandconditions') {
211
- return h("p", null, translate('termsAndConditions.acceptPart1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate('termsAndConditions.tcLink', this.lang)));
212
- }
213
- if (this.consentType === 'privacypolicy') {
214
- 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));
215
- }
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
216
176
  }
217
- return h("p", null, translate(this.consentType, this.lang));
218
- }
219
- render() {
220
- if (this.queried) {
221
- this.userLegislationConsentHandler();
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" }, "*"))));
222
198
  }
223
- return (h("div", { ref: el => this.stylingContainer = el }, h("p", { class: "ConsentTitle" }, this.consentTitle), h("label", { class: "UserConsent", htmlFor: "userConsent" }, h("input", { ref: el => this.checkboxInput = el, id: "userConsent", type: "checkbox", onInput: () => this.userLegislationConsentHandler() }), this.determineTextContent(), this.mandatory && h("span", { class: "MandatoryItem" }, "*"))));
224
- }
225
- static get watchers() { return {
226
- "translationUrl": ["handleNewTranslations"]
227
- }; }
199
+ static get watchers() { return {
200
+ "translationUrl": ["handleNewTranslations"]
201
+ }; }
228
202
  };
229
- PlayerUserConsents.style = playerUserConsentsCss;
203
+ PlayerUserConsents.style = PlayerUserConsentsStyle0;
230
204
 
231
205
  export { PlayerUserConsents as player_user_consents };
@@ -1,17 +1,20 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-b34076ff.js';
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';
2
4
 
3
5
  /*
4
- Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
5
7
  */
6
- const patchBrowser = () => {
7
- const importMeta = import.meta.url;
8
- const opts = {};
9
- if (importMeta !== '') {
10
- opts.resourcesUrl = new URL('.', importMeta).href;
11
- }
12
- return promiseResolve(opts);
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);
13
15
  };
14
16
 
15
- patchBrowser().then(options => {
16
- 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]}]]]], options);
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);
17
20
  });
@@ -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}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e}from"./p-b1139724.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((i=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((i=>{for(let e in t[i])a[i][e]=t[i][e]})),i(!0)}))})),s=(t,i,e)=>{let n=(s=a[i||"en"],t.split(".").reduce(((t,i)=>t&&void 0!==t[i]?t[i]:null),s));var s;if(null===n)return t;if(void 0!==e)for(const[t,i]of Object.entries(e)){const e=new RegExp(`{${t}}`,"g");n=n.replace(e,i)}return n},r=class{constructor(e){t(this,e),this.userLegislationConsent=i(this,"userLegislationConsent",7),this.lang="en",this.queried=!1,this.consentType="",this.mandatory=!1,this.gmVersion="",this.consentTitle="",this.clientStyling="",this.translationUrl="",this.textContent="",this.limitStylingAppends=!1,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)}}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 e("p",null,s("termsAndConditions.acceptPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)),s("termsAndConditions.acceptPart2",this.lang),e("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 e("p",null,s("termsAndConditions.acceptPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToTermsAndConditions},s("termsAndConditions.tcLink",this.lang)));if("privacypolicy"===this.consentType)return e("p",null,s("privacyPolicy.readUnderstandPart1",this.lang),e("span",{class:"ConsentLink",onClick:this.goToPrivacyPolicy},s("privacyPolicy.privacyLink",this.lang)),s("privacyPolicy.readUnderstandPart2",this.lang))}return e("p",null,s(this.consentType,this.lang))}render(){return this.queried&&this.userLegislationConsentHandler(),e("div",{ref:t=>this.stylingContainer=t},e("p",{class:"ConsentTitle"},this.consentTitle),e("label",{class:"UserConsent",htmlFor:"userConsent"},e("input",{ref:t=>this.checkboxInput=t,id:"userConsent",type:"checkbox",onInput:()=>this.userLegislationConsentHandler()}),this.determineTextContent(),this.mandatory&&e("span",{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
+ 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}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -1 +1 @@
1
- import{p as n,b as t}from"./p-b1139724.js";(()=>{const t=import.meta.url,e={};return""!==t&&(e.resourcesUrl=new URL(".",t).href),n(e)})().then((n=>t([["p-f88e76d0",[[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]}]]]],n)));
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))));
@@ -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
+ };
@@ -1,22 +1,17 @@
1
- import { sass } from '@stencil/sass';
1
+ import { sass } from "@stencil/sass";
2
2
  export const config = {
3
- namespace: 'player-user-consents',
4
- taskQueue: 'async',
5
- plugins: [sass()],
6
- outputTargets: [
7
- {
8
- type: 'dist',
9
- esmLoaderPath: '../loader',
3
+ namespace: 'player-user-consents',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
10
9
  },
11
- {
12
- type: 'dist-custom-elements',
13
- },
14
- {
15
- type: 'docs-readme',
16
- },
17
- {
18
- type: 'www',
19
- serviceWorker: null, // disable service workers
20
- },
21
- ],
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
22
17
  };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1 @@
1
+ export { PlayerUserConsents } from './player-user-consents';