@everymatrix/user-action-controller 1.32.4 → 1.33.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 (50) hide show
  1. package/dist/cjs/index-87049e21.js +1300 -0
  2. package/dist/cjs/index.cjs.js +2 -0
  3. package/dist/cjs/loader.cjs.js +21 -0
  4. package/dist/cjs/player-user-consents_2.cjs.entry.js +455 -0
  5. package/dist/cjs/user-action-controller.cjs.js +19 -0
  6. package/dist/collection/collection-manifest.json +19 -0
  7. package/dist/collection/components/user-action-controller/user-action-controller.css +89 -0
  8. package/dist/collection/components/user-action-controller/user-action-controller.js +440 -0
  9. package/dist/collection/index.js +1 -0
  10. package/dist/collection/utils/locale.utils.js +60 -0
  11. package/dist/collection/utils/utils.js +3 -0
  12. package/dist/components/index.d.ts +26 -0
  13. package/dist/components/index.js +1 -0
  14. package/dist/components/player-user-consents.js +6 -0
  15. package/dist/components/player-user-consents2.js +199 -0
  16. package/dist/components/user-action-controller.d.ts +11 -0
  17. package/dist/components/user-action-controller.js +323 -0
  18. package/dist/esm/index-71f14530.js +1274 -0
  19. package/dist/esm/index.js +1 -0
  20. package/dist/esm/loader.js +17 -0
  21. package/dist/esm/player-user-consents_2.entry.js +450 -0
  22. package/dist/esm/polyfills/core-js.js +11 -0
  23. package/dist/esm/polyfills/css-shim.js +1 -0
  24. package/dist/esm/polyfills/dom.js +79 -0
  25. package/dist/esm/polyfills/es5-html-element.js +1 -0
  26. package/dist/esm/polyfills/index.js +34 -0
  27. package/dist/esm/polyfills/system.js +6 -0
  28. package/dist/esm/user-action-controller.js +17 -0
  29. package/dist/index.cjs.js +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/stencil.config.js +22 -0
  32. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/user-action-controller/.stencil/packages/user-action-controller/stencil.config.d.ts +2 -0
  33. package/dist/types/components/user-action-controller/user-action-controller.d.ts +78 -0
  34. package/dist/types/components.d.ts +125 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  37. package/dist/types/utils/locale.utils.d.ts +2 -0
  38. package/dist/types/utils/utils.d.ts +1 -0
  39. package/dist/user-action-controller/index.esm.js +0 -0
  40. package/dist/user-action-controller/p-ba444709.js +1 -0
  41. package/dist/user-action-controller/p-d1fdbddb.entry.js +1 -0
  42. package/dist/user-action-controller/user-action-controller.esm.js +1 -0
  43. package/loader/cdn.js +3 -0
  44. package/loader/index.cjs.js +3 -0
  45. package/loader/index.d.ts +12 -0
  46. package/loader/index.es2017.js +3 -0
  47. package/loader/index.js +4 -0
  48. package/loader/package.json +10 -0
  49. package/package.json +2 -3
  50. package/LICENSE +0 -21
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-71f14530.js';
2
+
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_2",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"submitButtonText":[513,"submit-button-text"],"userNoticeText":[513,"user-notice-text"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]]],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]}]]]], options);
14
+ });
15
+ };
16
+
17
+ export { defineCustomElements };
@@ -0,0 +1,450 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-71f14530.js';
2
+
3
+ const DEFAULT_LANGUAGE$1 = 'en';
4
+ const TRANSLATIONS$1 = {
5
+ en: {
6
+ termsandconditions1: "I accept the ",
7
+ termsandconditions2: ", I have read and understood the ",
8
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
9
+ tc: "Terms and Conditions",
10
+ privacy: "Privacy Policy",
11
+ sms: "I consent to receive marketing communication via SMS.",
12
+ emailmarketing: "I consent to receive marketing communication via Email."
13
+ },
14
+ ro: {
15
+ termsandconditions1: "I accept the ",
16
+ termsandconditions2: ", I have read and understood the ",
17
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
18
+ tc: "Terms and Conditions",
19
+ privacy: "Privacy Policy",
20
+ sms: "I consent to receive marketing communication via SMS.",
21
+ emailmarketing: "I consent to receive marketing communication via Email."
22
+ },
23
+ hr: {
24
+ termsandconditions1: "I accept the ",
25
+ termsandconditions2: ", I have read and understood the ",
26
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
27
+ tc: "Terms and Conditions",
28
+ privacy: "Privacy Policy",
29
+ sms: "I consent to receive marketing communication via SMS.",
30
+ emailmarketing: "I consent to receive marketing communication via Email."
31
+ },
32
+ fr: {
33
+ termsandconditions1: "I accept the ",
34
+ termsandconditions2: ", I have read and understood the ",
35
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
36
+ tc: "Terms and Conditions",
37
+ privacy: "Privacy Policy",
38
+ sms: "I consent to receive marketing communication via SMS.",
39
+ emailmarketing: "I consent to receive marketing communication via Email."
40
+ },
41
+ cs: {
42
+ termsandconditions1: "I accept the ",
43
+ termsandconditions2: ", I have read and understood the ",
44
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
45
+ tc: "Terms and Conditions",
46
+ privacy: "Privacy Policy",
47
+ sms: "I consent to receive marketing communication via SMS.",
48
+ emailmarketing: "I consent to receive marketing communication via Email."
49
+ },
50
+ de: {
51
+ termsandconditions1: "I accept the ",
52
+ termsandconditions2: ", I have read and understood the ",
53
+ termsandconditions3: " as published on this site and confirm that I am over 18 years old.",
54
+ tc: "Terms and Conditions",
55
+ privacy: "Privacy Policy",
56
+ sms: "I consent to receive marketing communication via SMS.",
57
+ emailmarketing: "I consent to receive marketing communication via Email."
58
+ },
59
+ };
60
+ const getTranslations$1 = (url) => {
61
+ // fetch url, get the data, replace the TRANSLATIONS content
62
+ return new Promise((resolve) => {
63
+ fetch(url)
64
+ .then((res) => res.json())
65
+ .then((data) => {
66
+ Object.keys(data).forEach((item) => {
67
+ for (let key in data[item]) {
68
+ TRANSLATIONS$1[item][key] = data[item][key];
69
+ }
70
+ });
71
+ resolve(true);
72
+ });
73
+ });
74
+ };
75
+ const translate$1 = (key, customLang, values) => {
76
+ const lang = customLang;
77
+ let translation = TRANSLATIONS$1[lang !== undefined ? lang : DEFAULT_LANGUAGE$1][key];
78
+ if (values !== undefined) {
79
+ for (const [key, value] of Object.entries(values.values)) {
80
+ const regex = new RegExp(`{${key}}`, 'g');
81
+ translation = translation.replace(regex, value);
82
+ }
83
+ }
84
+ return translation;
85
+ };
86
+
87
+ 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}";
88
+
89
+ const PlayerUserConsents = class {
90
+ constructor(hostRef) {
91
+ registerInstance(this, hostRef);
92
+ this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
93
+ /**
94
+ * Language
95
+ */
96
+ this.lang = 'en';
97
+ /**
98
+ * 'true' when parent expects component to emit it's current value
99
+ */
100
+ this.queried = false;
101
+ /**
102
+ * the type of the consent, used to determine render details
103
+ */
104
+ this.consentType = '';
105
+ /**
106
+ * wether or not this consent is mandatory. Used for render details
107
+ */
108
+ this.mandatory = false;
109
+ /**
110
+ * the title of the consent to be displayed
111
+ */
112
+ this.consentTitle = '';
113
+ /**
114
+ * Client custom styling via inline style
115
+ */
116
+ this.clientStyling = '';
117
+ /**
118
+ * Translation url
119
+ */
120
+ this.translationUrl = '';
121
+ /**
122
+ * the text content to be rendered by the component. Determined at runtime
123
+ */
124
+ this.textContent = '';
125
+ this.limitStylingAppends = false;
126
+ this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
127
+ this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
128
+ this.setClientStyling = () => {
129
+ let sheet = document.createElement('style');
130
+ sheet.innerHTML = this.clientStyling;
131
+ this.stylingContainer.prepend(sheet);
132
+ };
133
+ }
134
+ handleNewTranslations() {
135
+ getTranslations$1(this.translationUrl);
136
+ }
137
+ async componentWillLoad() {
138
+ if (this.translationUrl.length > 2) {
139
+ await getTranslations$1(this.translationUrl);
140
+ }
141
+ }
142
+ userLegislationConsentHandler() {
143
+ this.userLegislationConsent.emit({
144
+ type: this.consentType,
145
+ value: this.checkboxInput.checked
146
+ });
147
+ }
148
+ componentDidRender() {
149
+ // start custom styling area
150
+ if (!this.limitStylingAppends && this.stylingContainer) {
151
+ if (this.clientStyling)
152
+ this.setClientStyling();
153
+ this.limitStylingAppends = true;
154
+ }
155
+ // end custom styling area
156
+ }
157
+ determineTextContent() {
158
+ return this.consentType === 'termsandconditions' ?
159
+ h("p", null, translate$1('termsandconditions1', this.lang), h("span", { class: "ConsentLink", onClick: this.goToTermsAndConditions }, translate$1('tc', this.lang)), translate$1('termsandconditions2', this.lang), h("span", { class: "ConsentLink", onClick: this.goToPrivacyPolicy }, translate$1('privacy', this.lang)), translate$1('termsandconditions3', this.lang))
160
+ : h("p", null, translate$1('consentType', this.lang));
161
+ }
162
+ render() {
163
+ if (this.queried) {
164
+ this.userLegislationConsentHandler();
165
+ }
166
+ 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" }, "*"))));
167
+ }
168
+ static get watchers() { return {
169
+ "translationUrl": ["handleNewTranslations"]
170
+ }; }
171
+ };
172
+ PlayerUserConsents.style = playerUserConsentsCss;
173
+
174
+ const DEFAULT_LANGUAGE = 'en';
175
+ const SUPPORTED_LANGUAGES = ['ro', 'en', 'cz', 'de', 'hr'];
176
+ const TRANSLATIONS = {
177
+ en: {
178
+ termsandconditions: 'Terms and Conditions',
179
+ sms: 'SMS marketing',
180
+ emailmarketing: 'Email marketing'
181
+ },
182
+ ro: {
183
+ termsandconditions: 'Terms and Conditions',
184
+ sms: 'SMS marketing',
185
+ emailmarketing: 'Email marketing'
186
+ },
187
+ hr: {
188
+ termsandconditions: 'Terms and Conditions',
189
+ sms: 'SMS marketing',
190
+ emailmarketing: 'Email marketing'
191
+ },
192
+ fr: {
193
+ termsandconditions: 'Terms and Conditions',
194
+ sms: 'SMS marketing',
195
+ emailmarketing: 'Email marketing'
196
+ },
197
+ cs: {
198
+ termsandconditions: 'Terms and Conditions',
199
+ sms: 'SMS marketing',
200
+ emailmarketing: 'Email marketing'
201
+ },
202
+ de: {
203
+ termsandconditions: 'Terms and Conditions',
204
+ sms: 'SMS marketing',
205
+ emailmarketing: 'Email marketing'
206
+ },
207
+ };
208
+ const getTranslations = (url) => {
209
+ // fetch url, get the data, replace the TRANSLATIONS content
210
+ return new Promise((resolve) => {
211
+ fetch(url)
212
+ .then((res) => res.json())
213
+ .then((data) => {
214
+ Object.keys(data).forEach((item) => {
215
+ for (let key in data[item]) {
216
+ TRANSLATIONS[item][key] = data[item][key];
217
+ }
218
+ });
219
+ resolve(true);
220
+ });
221
+ });
222
+ };
223
+ const translate = (key, customLang, values) => {
224
+ const lang = customLang;
225
+ let translation = TRANSLATIONS[lang !== undefined && SUPPORTED_LANGUAGES.includes(lang) ? lang : DEFAULT_LANGUAGE][key];
226
+ if (values !== undefined) {
227
+ for (const [key, value] of Object.entries(values.values)) {
228
+ const regex = new RegExp(`{${key}}`, 'g');
229
+ translation = translation.replace(regex, value);
230
+ }
231
+ }
232
+ return translation;
233
+ };
234
+
235
+ const userActionControllerCss = ":host{display:block}.QueryReferenceContainer{height:100%;width:100%}.UserConsentNotice{font-size:1.2rem;font-weight:200;text-align:center}.CloseButton{width:25px;height:25px;align-self:flex-end}.UserActionController{font-family:Arial, Helvetica, sans-serif;font-weight:100;height:100%;width:100%;padding:1rem 1.5rem 2rem;background-color:#fff;display:flex;flex-direction:column;justify-content:space-between;border-radius:5%}.ConsentSubmitButton{font-size:1rem;padding:0.4rem 1.4rem;background:#fff;border:2px solid #000;color:#000;border-radius:5px;align-self:flex-end}.ConsentSubmitButton:disabled{border:2px solid #ccc;color:#ccc}@media screen and (max-width: 320px){.QueryReferenceContainer{font-size:0.8rem;color:blue}}.spinner{animation:rotate 2s linear infinite;z-index:2;position:absolute;top:50%;left:50%;margin:-25px 0 0 -25px;width:50px;height:50px}.spinner .path{stroke:var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));stroke-linecap:round;animation:dash 1.5s ease-in-out infinite}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}";
236
+
237
+ const UserActionController = class {
238
+ constructor(hostRef) {
239
+ registerInstance(this, hostRef);
240
+ /**
241
+ * Language
242
+ */
243
+ this.lang = 'en';
244
+ /**
245
+ * Select GM version
246
+ */
247
+ this.gmVersion = '';
248
+ /**
249
+ * Translation url
250
+ */
251
+ this.translationUrl = '';
252
+ /**
253
+ * Client custom styling via inline style
254
+ */
255
+ this.clientStyling = '';
256
+ /**
257
+ * Client custom styling via url
258
+ */
259
+ this.clientStylingUrl = '';
260
+ /**
261
+ * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
262
+ */
263
+ this.queryFired = false;
264
+ this.readyActionsCount = 0;
265
+ this.activeUserActions = [];
266
+ this.userActionsValidated = true;
267
+ this.receivedQueryResponses = 0;
268
+ this.limitStylingAppends = false;
269
+ this.isLoading = true;
270
+ this.mandatoryActionsChecked = 0;
271
+ //for now this variable is hardcoded bcs we have only terms and conditions mandatory and we dont receive with these new functionality the mandatory actions
272
+ this.mandatoryActions = ['termsandconditions'];
273
+ this.userActions = [];
274
+ this.consentTitles = {
275
+ termsandconditions: translate('termsandconditions', this.lang),
276
+ sms: translate('sms', this.lang),
277
+ emailmarketing: translate('emailmarketing', this.lang)
278
+ };
279
+ this.setClientStyling = () => {
280
+ let sheet = document.createElement('style');
281
+ sheet.innerHTML = this.clientStyling;
282
+ this.stylingContainer.prepend(sheet);
283
+ };
284
+ this.setClientStylingURL = () => {
285
+ let url = new URL(this.clientStylingUrl);
286
+ let cssFile = document.createElement('style');
287
+ fetch(url.href)
288
+ .then((res) => res.text())
289
+ .then((data) => {
290
+ this.clientStyling = data;
291
+ cssFile.innerHTML = data;
292
+ setTimeout(() => { this.stylingContainer.prepend(cssFile); }, 1);
293
+ })
294
+ .catch((err) => {
295
+ console.log('error ', err);
296
+ });
297
+ };
298
+ }
299
+ handleNewTranslations() {
300
+ getTranslations(this.translationUrl);
301
+ }
302
+ handleQueryResponse() {
303
+ if (this.receivedQueryResponses === this.activeUserActions.length) {
304
+ this.updateUserConsents();
305
+ }
306
+ }
307
+ userLegislationConsentHandler(event) {
308
+ const actionType = event.detail.type;
309
+ const actionTypeChecked = event.detail.value;
310
+ if (this.mandatoryActions.includes(actionType) && this.queryFired === false) {
311
+ actionTypeChecked === true ? this.mandatoryActionsChecked++ : this.mandatoryActionsChecked--;
312
+ }
313
+ // Register final user choices only if we're ready to update
314
+ if (this.queryFired) {
315
+ this.userActions.push({ tagCode: actionType, status: actionTypeChecked ? 'Accepted' : 'Denied' });
316
+ this.receivedQueryResponses++;
317
+ }
318
+ }
319
+ determineUserActions() {
320
+ const url = new URL(`${this.endpoint}/v1/player/${this.userId}/consent`);
321
+ const headers = new Headers();
322
+ headers.append('X-SessionId', this.userSession);
323
+ let requestOptions;
324
+ requestOptions = {
325
+ method: 'GET',
326
+ headers
327
+ };
328
+ if (url && requestOptions) {
329
+ return fetch(url.href, requestOptions)
330
+ .then(res => res.json())
331
+ .then(data => {
332
+ const actionItems = data.items;
333
+ actionItems.forEach(element => {
334
+ if (element.status === 'Expired') {
335
+ this.activeUserActions.push(element.tagCode);
336
+ }
337
+ });
338
+ this.isLoading = false;
339
+ })
340
+ .catch(error => {
341
+ console.error('Error fetching data:', error);
342
+ this.isLoading = false;
343
+ });
344
+ }
345
+ else {
346
+ return Promise.reject('Unsupported endpoint');
347
+ }
348
+ }
349
+ updateUserConsents() {
350
+ let url;
351
+ let requestOptions;
352
+ url = (this.gmVersion === 'gmcore')
353
+ ? new URL(`${this.endpoint}/v1/player/${this.userId}/consent`)
354
+ : new URL(`${this.endpoint}/v1/player/${this.userId}/legislation/consents`);
355
+ const body = (this.gmVersion === 'gmcore')
356
+ ? {
357
+ items: this.userActions
358
+ }
359
+ : {
360
+ consents: [
361
+ {
362
+ tagCode: "termsandconditions",
363
+ note: "",
364
+ status: 1
365
+ }
366
+ ]
367
+ };
368
+ requestOptions = {
369
+ method: 'POST',
370
+ headers: {
371
+ 'Content-Type': 'application/json',
372
+ 'Accept': 'application/json',
373
+ 'X-SessionId': `${this.userSession}`,
374
+ },
375
+ body: JSON.stringify(body)
376
+ };
377
+ if (url && requestOptions) {
378
+ fetch(url.href, requestOptions)
379
+ .then(res => res.json())
380
+ .then(() => {
381
+ window.postMessage({
382
+ type: 'WidgetNotification',
383
+ data: {
384
+ type: 'success',
385
+ message: 'Consent update successful!'
386
+ }
387
+ }, window.location.href);
388
+ })
389
+ .catch((err) => {
390
+ window.postMessage({
391
+ type: 'WidgetNotification',
392
+ data: {
393
+ type: 'error',
394
+ message: 'Server might not be responding',
395
+ err
396
+ }
397
+ }, window.location.href);
398
+ })
399
+ .finally(() => {
400
+ window.postMessage({ type: 'UserActionsCompleted' }, window.location.href);
401
+ });
402
+ }
403
+ }
404
+ handleApplyClick() {
405
+ this.queryFired = true;
406
+ }
407
+ async componentWillLoad() {
408
+ if (this.gmVersion === 'gmcore') {
409
+ return this.determineUserActions();
410
+ }
411
+ else {
412
+ this.activeUserActions = ['termsandconditions'];
413
+ this.isLoading = false;
414
+ }
415
+ if (this.translationUrl.length > 2) {
416
+ await getTranslations(this.translationUrl);
417
+ }
418
+ }
419
+ componentDidRender() {
420
+ // start custom styling area
421
+ if (!this.limitStylingAppends && this.stylingContainer) {
422
+ if (this.clientStyling)
423
+ this.setClientStyling();
424
+ if (this.clientStylingUrl)
425
+ this.setClientStylingURL();
426
+ this.limitStylingAppends = true;
427
+ }
428
+ // end custom styling area
429
+ }
430
+ render() {
431
+ const isMandatoryPresent = this.mandatoryActions.every(action => this.activeUserActions.includes(action));
432
+ if (isMandatoryPresent) {
433
+ this.userActionsValidated = !(this.mandatoryActionsChecked === this.mandatoryActions.length);
434
+ }
435
+ else {
436
+ this.userActionsValidated = false;
437
+ }
438
+ return (h("div", { class: "QueryReferenceContainer", ref: el => this.stylingContainer = el }, this.isLoading ? (h("slot", { name: 'spinner' })
439
+ &&
440
+ h("svg", { class: "spinner", viewBox: "0 0 50 50" }, h("circle", { class: "path", cx: "25", cy: "25", r: "20", fill: "none", "stroke-width": "5" }))) : (h("div", { class: "UserActionController" }, h("h2", { class: "UserConsentNotice" }, this.userNoticeText), h("div", { class: "PlayerLegislationWrapper" }, this.activeUserActions.map(action => (h("slot", { name: action }, h("player-user-consents", { lang: this.lang, "translation-url": this.translationUrl, slot: action, consentType: action, consentTitle: this.consentTitles[action], queried: this.queryFired, mandatory: this.mandatoryActions.includes(action), "client-styling": this.clientStyling }))))), this.includeSubmitButton &&
441
+ h("button", { class: "ConsentSubmitButton", disabled: this.userActionsValidated, onClick: () => this.handleApplyClick() }, this.submitButtonText)))));
442
+ }
443
+ static get watchers() { return {
444
+ "translationUrl": ["handleNewTranslations"],
445
+ "receivedQueryResponses": ["handleQueryResponse"]
446
+ }; }
447
+ };
448
+ UserActionController.style = userActionControllerCss;
449
+
450
+ export { PlayerUserConsents as player_user_consents, UserActionController as user_action_controller };