@everymatrix/player-user-consents 1.44.0 → 1.45.2

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