@everymatrix/player-user-consents 1.53.0 → 1.53.11

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 (19) hide show
  1. package/dist/cjs/{index-69eb0aef.js → index-a5a75dc5.js} +161 -66
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/player-user-consents.cjs.entry.js +42 -12
  4. package/dist/cjs/player-user-consents.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/player-user-consents/player-user-consents.js +59 -11
  7. package/dist/esm/{index-ed6ba6ed.js → index-969aa3ec.js} +161 -66
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/player-user-consents.entry.js +42 -12
  10. package/dist/esm/player-user-consents.js +3 -3
  11. package/dist/player-user-consents/{p-940ee13f.entry.js → p-611f8c2f.entry.js} +1 -1
  12. package/dist/player-user-consents/p-facd04bc.js +2 -0
  13. package/dist/player-user-consents/player-user-consents.esm.js +1 -1
  14. 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
  15. 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
  16. package/package.json +1 -1
  17. package/dist/player-user-consents/p-fe4dc64a.js +0 -2
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.dev.d.ts +0 -2
@@ -2,6 +2,47 @@ import { h } from "@stencil/core";
2
2
  import { getTranslations, translate } from "../../utils/locale.utils";
3
3
  export class PlayerUserConsents {
4
4
  constructor() {
5
+ /**
6
+ * Language
7
+ */
8
+ this.lang = 'en';
9
+ /**
10
+ * 'true' when parent expects component to emit it's current value
11
+ */
12
+ this.queried = false;
13
+ /**
14
+ * the type of the consent, used to determine render details
15
+ */
16
+ this.consentType = '';
17
+ /**
18
+ * wether or not this consent is mandatory. Used for render details
19
+ */
20
+ this.mandatory = false;
21
+ /**
22
+ * Select GM version
23
+ */
24
+ this.gmVersion = '';
25
+ /**
26
+ * the title of the consent to be displayed
27
+ */
28
+ this.consentTitle = '';
29
+ /**
30
+ * Client custom styling via inline style
31
+ */
32
+ this.clientStyling = '';
33
+ /**
34
+ * Client custom styling via url
35
+ */
36
+ this.clientStylingUrl = '';
37
+ /**
38
+ * Translation url
39
+ */
40
+ this.translationUrl = '';
41
+ /**
42
+ * the text content to be rendered by the component. Determined at runtime
43
+ */
44
+ this.textContent = '';
45
+ this.limitStylingAppends = false;
5
46
  this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
6
47
  this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
7
48
  this.setClientStyling = () => {
@@ -22,17 +63,6 @@ export class PlayerUserConsents {
22
63
  console.log('error ', err);
23
64
  });
24
65
  };
25
- this.lang = 'en';
26
- this.queried = false;
27
- this.consentType = '';
28
- this.mandatory = false;
29
- this.gmVersion = '';
30
- this.consentTitle = '';
31
- this.clientStyling = '';
32
- this.clientStylingUrl = '';
33
- this.translationUrl = '';
34
- this.textContent = '';
35
- this.limitStylingAppends = false;
36
66
  }
37
67
  handleNewTranslations() {
38
68
  getTranslations(this.translationUrl);
@@ -114,6 +144,8 @@ export class PlayerUserConsents {
114
144
  "tags": [],
115
145
  "text": "Language"
116
146
  },
147
+ "getter": false,
148
+ "setter": false,
117
149
  "attribute": "lang",
118
150
  "reflect": true,
119
151
  "defaultValue": "'en'"
@@ -132,6 +164,8 @@ export class PlayerUserConsents {
132
164
  "tags": [],
133
165
  "text": "'true' when parent expects component to emit it's current value"
134
166
  },
167
+ "getter": false,
168
+ "setter": false,
135
169
  "attribute": "queried",
136
170
  "reflect": true,
137
171
  "defaultValue": "false"
@@ -150,6 +184,8 @@ export class PlayerUserConsents {
150
184
  "tags": [],
151
185
  "text": "the type of the consent, used to determine render details"
152
186
  },
187
+ "getter": false,
188
+ "setter": false,
153
189
  "attribute": "consent-type",
154
190
  "reflect": true,
155
191
  "defaultValue": "''"
@@ -168,6 +204,8 @@ export class PlayerUserConsents {
168
204
  "tags": [],
169
205
  "text": "wether or not this consent is mandatory. Used for render details"
170
206
  },
207
+ "getter": false,
208
+ "setter": false,
171
209
  "attribute": "mandatory",
172
210
  "reflect": true,
173
211
  "defaultValue": "false"
@@ -186,6 +224,8 @@ export class PlayerUserConsents {
186
224
  "tags": [],
187
225
  "text": "Select GM version"
188
226
  },
227
+ "getter": false,
228
+ "setter": false,
189
229
  "attribute": "gm-version",
190
230
  "reflect": false,
191
231
  "defaultValue": "''"
@@ -204,6 +244,8 @@ export class PlayerUserConsents {
204
244
  "tags": [],
205
245
  "text": "the title of the consent to be displayed"
206
246
  },
247
+ "getter": false,
248
+ "setter": false,
207
249
  "attribute": "consent-title",
208
250
  "reflect": true,
209
251
  "defaultValue": "''"
@@ -222,6 +264,8 @@ export class PlayerUserConsents {
222
264
  "tags": [],
223
265
  "text": "Client custom styling via inline style"
224
266
  },
267
+ "getter": false,
268
+ "setter": false,
225
269
  "attribute": "client-styling",
226
270
  "reflect": false,
227
271
  "defaultValue": "''"
@@ -240,6 +284,8 @@ export class PlayerUserConsents {
240
284
  "tags": [],
241
285
  "text": "Client custom styling via url"
242
286
  },
287
+ "getter": false,
288
+ "setter": false,
243
289
  "attribute": "client-styling-url",
244
290
  "reflect": true,
245
291
  "defaultValue": "''"
@@ -258,6 +304,8 @@ export class PlayerUserConsents {
258
304
  "tags": [],
259
305
  "text": "Translation url"
260
306
  },
307
+ "getter": false,
308
+ "setter": false,
261
309
  "attribute": "translation-url",
262
310
  "reflect": true,
263
311
  "defaultValue": "''"
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'player-user-consents';
2
- const BUILD = /* player-user-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* player-user-consents */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -334,7 +339,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
334
339
  }
335
340
  if (!appliedStyles.has(scopeId2)) {
336
341
  {
337
- styleElm = doc.createElement("style");
342
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
338
343
  styleElm.innerHTML = style;
339
344
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
340
345
  if (nonce != null) {
@@ -344,7 +349,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
344
349
  if (styleContainerNode.nodeName === "HEAD") {
345
350
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
346
351
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
347
- styleContainerNode.insertBefore(styleElm, referenceNode2);
352
+ styleContainerNode.insertBefore(
353
+ styleElm,
354
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
355
+ );
348
356
  } else if ("host" in styleContainerNode) {
349
357
  if (supportsConstructableStylesheets) {
350
358
  const stylesheet = new CSSStyleSheet();
@@ -394,16 +402,18 @@ var attachStyles = (hostRef) => {
394
402
  endAttachStyles();
395
403
  };
396
404
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
397
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
405
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
398
406
  if (oldValue !== newValue) {
399
407
  let isProp = isMemberInElement(elm, memberName);
400
408
  let ln = memberName.toLowerCase();
401
409
  if (memberName === "class") {
402
410
  const classList = elm.classList;
403
411
  const oldClasses = parseClassList(oldValue);
404
- const newClasses = parseClassList(newValue);
405
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
406
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
412
+ let newClasses = parseClassList(newValue);
413
+ {
414
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
415
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
416
+ }
407
417
  } else if (memberName === "key") ; else if (memberName === "ref") {
408
418
  if (newValue) {
409
419
  newValue(elm);
@@ -441,7 +451,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
441
451
  elm.setAttribute(memberName, n);
442
452
  }
443
453
  }
444
- } else {
454
+ } else if (elm[memberName] !== newValue) {
445
455
  elm[memberName] = newValue;
446
456
  }
447
457
  } catch (e) {
@@ -463,24 +473,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
463
473
  }
464
474
  };
465
475
  var parseClassListRegex = /\s/;
466
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
476
+ var parseClassList = (value) => {
477
+ if (typeof value === "object" && value && "baseVal" in value) {
478
+ value = value.baseVal;
479
+ }
480
+ if (!value || typeof value !== "string") {
481
+ return [];
482
+ }
483
+ return value.split(parseClassListRegex);
484
+ };
467
485
  var CAPTURE_EVENT_SUFFIX = "Capture";
468
486
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
469
487
 
470
488
  // src/runtime/vdom/update-element.ts
471
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
489
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
472
490
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
473
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
474
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
491
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
492
+ const newVnodeAttrs = newVnode.$attrs$ || {};
475
493
  {
476
494
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
477
495
  if (!(memberName in newVnodeAttrs)) {
478
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
496
+ setAccessor(
497
+ elm,
498
+ memberName,
499
+ oldVnodeAttrs[memberName],
500
+ void 0,
501
+ isSvgMode2,
502
+ newVnode.$flags$);
479
503
  }
480
504
  }
481
505
  }
482
506
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
483
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
507
+ setAccessor(
508
+ elm,
509
+ memberName,
510
+ oldVnodeAttrs[memberName],
511
+ newVnodeAttrs[memberName],
512
+ isSvgMode2,
513
+ newVnode.$flags$);
484
514
  }
485
515
  };
486
516
  function sortedAttrNames(attrNames) {
@@ -492,13 +522,10 @@ function sortedAttrNames(attrNames) {
492
522
  attrNames
493
523
  );
494
524
  }
495
-
496
- // src/runtime/vdom/vdom-render.ts
497
- var scopeId;
498
525
  var hostTagName;
499
526
  var useNativeShadowDom = false;
500
527
  var isSvgMode = false;
501
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
528
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
502
529
  const newVNode2 = newParentVNode.$children$[childIndex];
503
530
  let i2 = 0;
504
531
  let elm;
@@ -512,11 +539,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
512
539
  {
513
540
  updateElement(null, newVNode2, isSvgMode);
514
541
  }
515
- const rootNode = elm.getRootNode();
516
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
517
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
518
- elm.classList.add(elm["s-si"] = scopeId);
519
- }
520
542
  if (newVNode2.$children$) {
521
543
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
522
544
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -646,6 +668,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
646
668
  if (!isInitialRender) {
647
669
  return leftVNode.$key$ === rightVNode.$key$;
648
670
  }
671
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
+ leftVNode.$key$ = rightVNode.$key$;
673
+ }
649
674
  return true;
650
675
  }
651
676
  return false;
@@ -685,8 +710,9 @@ var nullifyVNodeRefs = (vNode) => {
685
710
  }
686
711
  };
687
712
  var insertBefore = (parent, newNode, reference) => {
688
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
689
- return inserted;
713
+ {
714
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
715
+ }
690
716
  };
691
717
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
692
718
  const hostElm = hostRef.$hostElement$;
@@ -711,9 +737,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
711
737
  rootVnode.$flags$ |= 4 /* isHost */;
712
738
  hostRef.$vnode$ = rootVnode;
713
739
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
714
- {
715
- scopeId = hostElm["s-sc"];
716
- }
717
740
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
718
741
  patch(oldVNode, rootVnode, isInitialLoad);
719
742
  };
@@ -721,7 +744,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
721
744
  // src/runtime/update-component.ts
722
745
  var attachToAncestor = (hostRef, ancestorComponent) => {
723
746
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
724
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
747
+ const index = ancestorComponent["s-p"].push(
748
+ new Promise(
749
+ (r) => hostRef.$onRenderResolve$ = () => {
750
+ ancestorComponent["s-p"].splice(index - 1, 1);
751
+ r();
752
+ }
753
+ )
754
+ );
725
755
  }
726
756
  };
727
757
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -748,7 +778,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
748
778
  let maybePromise;
749
779
  if (isInitialLoad) {
750
780
  {
751
- maybePromise = safeCall(instance, "componentWillLoad");
781
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
752
782
  }
753
783
  }
754
784
  endSchedule();
@@ -817,7 +847,7 @@ var postUpdateComponent = (hostRef) => {
817
847
  const instance = hostRef.$lazyInstance$ ;
818
848
  const ancestorComponent = hostRef.$ancestorComponent$;
819
849
  {
820
- safeCall(instance, "componentDidRender");
850
+ safeCall(instance, "componentDidRender", void 0, elm);
821
851
  }
822
852
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
823
853
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -851,12 +881,12 @@ var appDidLoad = (who) => {
851
881
  }
852
882
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
853
883
  };
854
- var safeCall = (instance, method, arg) => {
884
+ var safeCall = (instance, method, arg, elm) => {
855
885
  if (instance && instance[method]) {
856
886
  try {
857
887
  return instance[method](arg);
858
888
  } catch (e) {
859
- consoleError(e);
889
+ consoleError(e, elm);
860
890
  }
861
891
  }
862
892
  return void 0;
@@ -915,15 +945,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
915
945
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
916
946
  members.map(([memberName, [memberFlags]]) => {
917
947
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
948
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
949
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
950
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
951
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
952
+ Object.defineProperty(prototype, memberName, {
953
+ get() {
954
+ {
955
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
956
+ return getValue(this, memberName);
957
+ }
958
+ const ref = getHostRef(this);
959
+ const instance = ref ? ref.$lazyInstance$ : prototype;
960
+ if (!instance) return;
961
+ return instance[memberName];
962
+ }
963
+ },
964
+ configurable: true,
965
+ enumerable: true
966
+ });
967
+ }
918
968
  Object.defineProperty(prototype, memberName, {
919
- get() {
920
- return getValue(this, memberName);
921
- },
922
969
  set(newValue) {
923
- setValue(this, memberName, newValue, cmpMeta);
924
- },
925
- configurable: true,
926
- enumerable: true
970
+ const ref = getHostRef(this);
971
+ if (origSetter) {
972
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
973
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
974
+ newValue = ref.$instanceValues$.get(memberName);
975
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
976
+ ref.$instanceValues$.set(memberName, currentValue);
977
+ }
978
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
979
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
+ setValue(this, memberName, newValue, cmpMeta);
981
+ return;
982
+ }
983
+ {
984
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
987
+ ref.$onReadyPromise$.then(() => {
988
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
989
+ ref.$lazyInstance$[memberName] = newValue;
990
+ }
991
+ });
992
+ }
993
+ return;
994
+ }
995
+ const setterSetVal = () => {
996
+ const currentValue = ref.$lazyInstance$[memberName];
997
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
998
+ ref.$instanceValues$.set(memberName, currentValue);
999
+ }
1000
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1001
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1002
+ };
1003
+ if (ref.$lazyInstance$) {
1004
+ setterSetVal();
1005
+ } else {
1006
+ ref.$onReadyPromise$.then(() => setterSetVal());
1007
+ }
1008
+ }
1009
+ }
927
1010
  });
928
1011
  }
929
1012
  });
@@ -933,7 +1016,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
933
1016
  plt.jmp(() => {
934
1017
  var _a2;
935
1018
  const propName = attrNameToPropName.get(attrName);
936
- if (this.hasOwnProperty(propName)) {
1019
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
937
1020
  newValue = this[propName];
938
1021
  delete this[propName];
939
1022
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -953,7 +1036,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
953
1036
  }
954
1037
  return;
955
1038
  }
956
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1039
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1040
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1041
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1042
+ this[propName] = newValue;
1043
+ }
957
1044
  });
958
1045
  };
959
1046
  Cstr.observedAttributes = Array.from(
@@ -980,9 +1067,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
980
1067
  let Cstr;
981
1068
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
982
1069
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
983
- const bundleId = cmpMeta.$lazyBundleId$;
984
- if (bundleId) {
985
- const CstrImport = loadModule(cmpMeta);
1070
+ {
1071
+ const CstrImport = loadModule(cmpMeta, hostRef);
986
1072
  if (CstrImport && "then" in CstrImport) {
987
1073
  const endLoad = uniqueTime();
988
1074
  Cstr = await CstrImport;
@@ -1007,7 +1093,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1007
1093
  try {
1008
1094
  new Cstr(hostRef);
1009
1095
  } catch (e) {
1010
- consoleError(e);
1096
+ consoleError(e, elm);
1011
1097
  }
1012
1098
  {
1013
1099
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1016,10 +1102,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1016
1102
  hostRef.$flags$ |= 128 /* isWatchReady */;
1017
1103
  }
1018
1104
  endNewInstance();
1019
- } else {
1020
- Cstr = elm.constructor;
1021
- const cmpTag = elm.localName;
1022
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1023
1105
  }
1024
1106
  if (Cstr && Cstr.style) {
1025
1107
  let style;
@@ -1042,7 +1124,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1042
1124
  schedule();
1043
1125
  }
1044
1126
  };
1045
- var fireConnectedCallback = (instance) => {
1127
+ var fireConnectedCallback = (instance, elm) => {
1046
1128
  };
1047
1129
 
1048
1130
  // src/runtime/connected-callback.ts
@@ -1082,7 +1164,7 @@ var connectedCallback = (elm) => {
1082
1164
  endConnected();
1083
1165
  }
1084
1166
  };
1085
- var disconnectInstance = (instance) => {
1167
+ var disconnectInstance = (instance, elm) => {
1086
1168
  };
1087
1169
  var disconnectedCallback = async (elm) => {
1088
1170
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1091,6 +1173,12 @@ var disconnectedCallback = async (elm) => {
1091
1173
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1092
1174
  }
1093
1175
  }
1176
+ if (rootAppliedStyles.has(elm)) {
1177
+ rootAppliedStyles.delete(elm);
1178
+ }
1179
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1180
+ rootAppliedStyles.delete(elm.shadowRoot);
1181
+ }
1094
1182
  };
1095
1183
 
1096
1184
  // src/runtime/bootstrap-lazy.ts
@@ -1171,6 +1259,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1171
1259
  }
1172
1260
  disconnectedCallback() {
1173
1261
  plt.jmp(() => disconnectedCallback(this));
1262
+ plt.raf(() => {
1263
+ var _a3;
1264
+ const hostRef = getHostRef(this);
1265
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1266
+ delete hostRef.$vnode$.$elm$;
1267
+ }
1268
+ });
1174
1269
  }
1175
1270
  componentOnReady() {
1176
1271
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-ed6ba6ed.js';
2
- export { s as setNonce } from './index-ed6ba6ed.js';
1
+ import { b as bootstrapLazy } from './index-969aa3ec.js';
2
+ export { s as setNonce } from './index-969aa3ec.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-ed6ba6ed.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-969aa3ec.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const TRANSLATIONS = {
@@ -133,6 +133,47 @@ const PlayerUserConsents = class {
133
133
  constructor(hostRef) {
134
134
  registerInstance(this, hostRef);
135
135
  this.userLegislationConsent = createEvent(this, "userLegislationConsent", 7);
136
+ /**
137
+ * Language
138
+ */
139
+ this.lang = 'en';
140
+ /**
141
+ * 'true' when parent expects component to emit it's current value
142
+ */
143
+ this.queried = false;
144
+ /**
145
+ * the type of the consent, used to determine render details
146
+ */
147
+ this.consentType = '';
148
+ /**
149
+ * wether or not this consent is mandatory. Used for render details
150
+ */
151
+ this.mandatory = false;
152
+ /**
153
+ * Select GM version
154
+ */
155
+ this.gmVersion = '';
156
+ /**
157
+ * the title of the consent to be displayed
158
+ */
159
+ this.consentTitle = '';
160
+ /**
161
+ * Client custom styling via inline style
162
+ */
163
+ this.clientStyling = '';
164
+ /**
165
+ * Client custom styling via url
166
+ */
167
+ this.clientStylingUrl = '';
168
+ /**
169
+ * Translation url
170
+ */
171
+ this.translationUrl = '';
172
+ /**
173
+ * the text content to be rendered by the component. Determined at runtime
174
+ */
175
+ this.textContent = '';
176
+ this.limitStylingAppends = false;
136
177
  this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
137
178
  this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
138
179
  this.setClientStyling = () => {
@@ -153,17 +194,6 @@ const PlayerUserConsents = class {
153
194
  console.log('error ', err);
154
195
  });
155
196
  };
156
- this.lang = 'en';
157
- this.queried = false;
158
- this.consentType = '';
159
- this.mandatory = false;
160
- this.gmVersion = '';
161
- this.consentTitle = '';
162
- this.clientStyling = '';
163
- this.clientStylingUrl = '';
164
- this.translationUrl = '';
165
- this.textContent = '';
166
- this.limitStylingAppends = false;
167
197
  }
168
198
  handleNewTranslations() {
169
199
  getTranslations(this.translationUrl);