@everymatrix/user-action-controller 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-b067df3d.js → index-3737bf3d.js} +167 -70
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/player-user-consents_2.cjs.entry.js +73 -30
  4. package/dist/cjs/user-action-controller.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/user-action-controller/user-action-controller.js +49 -18
  7. package/dist/esm/{index-0c8be11b.js → index-fb9e84e2.js} +167 -70
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/player-user-consents_2.entry.js +73 -30
  10. package/dist/esm/user-action-controller.js +3 -3
  11. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
  12. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +2 -0
  13. package/dist/user-action-controller/p-6d487ec9.js +2 -0
  14. package/dist/user-action-controller/{p-0bb99851.entry.js → p-cf2c1cc4.entry.js} +1 -1
  15. package/dist/user-action-controller/user-action-controller.esm.js +1 -1
  16. package/package.json +1 -1
  17. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -2
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -2
  19. package/dist/user-action-controller/p-1fd217dd.js +0 -2
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'user-action-controller';
24
- const BUILD = /* user-action-controller */ { 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: true, 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: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, 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 };
24
+ const BUILD = /* user-action-controller */ { 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: true, 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: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -166,14 +181,6 @@ var flush = () => {
166
181
  };
167
182
  var nextTick = (cb) => promiseResolve().then(cb);
168
183
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
- var SVG_NS = "http://www.w3.org/2000/svg";
173
- var HTML_NS = "http://www.w3.org/1999/xhtml";
174
-
175
- // src/utils/helpers.ts
176
- var isDef = (v) => v != null;
177
184
  var isComplexType = (o) => {
178
185
  o = typeof o;
179
186
  return o === "object" || o === "function";
@@ -374,7 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
381
  }
375
382
  if (!appliedStyles.has(scopeId2)) {
376
383
  {
377
- styleElm = doc.createElement("style");
384
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
385
  styleElm.innerHTML = style;
379
386
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
380
387
  if (nonce != null) {
@@ -384,7 +391,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
391
  if (styleContainerNode.nodeName === "HEAD") {
385
392
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
386
393
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
387
- styleContainerNode.insertBefore(styleElm, referenceNode2);
394
+ styleContainerNode.insertBefore(
395
+ styleElm,
396
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
397
+ );
388
398
  } else if ("host" in styleContainerNode) {
389
399
  if (supportsConstructableStylesheets) {
390
400
  const stylesheet = new CSSStyleSheet();
@@ -434,16 +444,18 @@ var attachStyles = (hostRef) => {
434
444
  endAttachStyles();
435
445
  };
436
446
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
437
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
438
448
  if (oldValue !== newValue) {
439
449
  let isProp = isMemberInElement(elm, memberName);
440
450
  let ln = memberName.toLowerCase();
441
451
  if (memberName === "class") {
442
452
  const classList = elm.classList;
443
453
  const oldClasses = parseClassList(oldValue);
444
- const newClasses = parseClassList(newValue);
445
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
446
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
+ let newClasses = parseClassList(newValue);
455
+ {
456
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
457
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
+ }
447
459
  } else if (memberName === "key") ; else if (memberName === "ref") {
448
460
  if (newValue) {
449
461
  newValue(elm);
@@ -481,7 +493,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
481
493
  elm.setAttribute(memberName, n);
482
494
  }
483
495
  }
484
- } else {
496
+ } else if (elm[memberName] !== newValue) {
485
497
  elm[memberName] = newValue;
486
498
  }
487
499
  } catch (e) {
@@ -503,24 +515,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
503
515
  }
504
516
  };
505
517
  var parseClassListRegex = /\s/;
506
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
518
+ var parseClassList = (value) => {
519
+ if (typeof value === "object" && value && "baseVal" in value) {
520
+ value = value.baseVal;
521
+ }
522
+ if (!value || typeof value !== "string") {
523
+ return [];
524
+ }
525
+ return value.split(parseClassListRegex);
526
+ };
507
527
  var CAPTURE_EVENT_SUFFIX = "Capture";
508
528
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
509
529
 
510
530
  // src/runtime/vdom/update-element.ts
511
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
531
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
512
532
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
513
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
514
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
533
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
534
+ const newVnodeAttrs = newVnode.$attrs$ || {};
515
535
  {
516
536
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
517
537
  if (!(memberName in newVnodeAttrs)) {
518
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
538
+ setAccessor(
539
+ elm,
540
+ memberName,
541
+ oldVnodeAttrs[memberName],
542
+ void 0,
543
+ isSvgMode2,
544
+ newVnode.$flags$);
519
545
  }
520
546
  }
521
547
  }
522
548
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
523
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
549
+ setAccessor(
550
+ elm,
551
+ memberName,
552
+ oldVnodeAttrs[memberName],
553
+ newVnodeAttrs[memberName],
554
+ isSvgMode2,
555
+ newVnode.$flags$);
524
556
  }
525
557
  };
526
558
  function sortedAttrNames(attrNames) {
@@ -532,13 +564,10 @@ function sortedAttrNames(attrNames) {
532
564
  attrNames
533
565
  );
534
566
  }
535
-
536
- // src/runtime/vdom/vdom-render.ts
537
- var scopeId;
538
567
  var hostTagName;
539
568
  var useNativeShadowDom = false;
540
569
  var isSvgMode = false;
541
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
570
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
542
571
  const newVNode2 = newParentVNode.$children$[childIndex];
543
572
  let i2 = 0;
544
573
  let elm;
@@ -559,11 +588,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
559
588
  {
560
589
  updateElement(null, newVNode2, isSvgMode);
561
590
  }
562
- const rootNode = elm.getRootNode();
563
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
564
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
565
- elm.classList.add(elm["s-si"] = scopeId);
566
- }
567
591
  if (newVNode2.$children$) {
568
592
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
569
593
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -700,6 +724,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
700
724
  if (!isInitialRender) {
701
725
  return leftVNode.$key$ === rightVNode.$key$;
702
726
  }
727
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
728
+ leftVNode.$key$ = rightVNode.$key$;
729
+ }
703
730
  return true;
704
731
  }
705
732
  return false;
@@ -746,8 +773,9 @@ var nullifyVNodeRefs = (vNode) => {
746
773
  }
747
774
  };
748
775
  var insertBefore = (parent, newNode, reference) => {
749
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
750
- return inserted;
776
+ {
777
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
778
+ }
751
779
  };
752
780
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
753
781
  const hostElm = hostRef.$hostElement$;
@@ -772,9 +800,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
772
800
  rootVnode.$flags$ |= 4 /* isHost */;
773
801
  hostRef.$vnode$ = rootVnode;
774
802
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
775
- {
776
- scopeId = hostElm["s-sc"];
777
- }
778
803
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
779
804
  patch(oldVNode, rootVnode, isInitialLoad);
780
805
  };
@@ -782,7 +807,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
782
807
  // src/runtime/update-component.ts
783
808
  var attachToAncestor = (hostRef, ancestorComponent) => {
784
809
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
785
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
810
+ const index = ancestorComponent["s-p"].push(
811
+ new Promise(
812
+ (r) => hostRef.$onRenderResolve$ = () => {
813
+ ancestorComponent["s-p"].splice(index - 1, 1);
814
+ r();
815
+ }
816
+ )
817
+ );
786
818
  }
787
819
  };
788
820
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -811,12 +843,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
811
843
  {
812
844
  hostRef.$flags$ |= 256 /* isListenReady */;
813
845
  if (hostRef.$queuedListeners$) {
814
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
846
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
815
847
  hostRef.$queuedListeners$ = void 0;
816
848
  }
817
849
  }
818
850
  {
819
- maybePromise = safeCall(instance, "componentWillLoad");
851
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
820
852
  }
821
853
  }
822
854
  endSchedule();
@@ -885,7 +917,7 @@ var postUpdateComponent = (hostRef) => {
885
917
  const instance = hostRef.$lazyInstance$ ;
886
918
  const ancestorComponent = hostRef.$ancestorComponent$;
887
919
  {
888
- safeCall(instance, "componentDidRender");
920
+ safeCall(instance, "componentDidRender", void 0, elm);
889
921
  }
890
922
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
891
923
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -919,12 +951,12 @@ var appDidLoad = (who) => {
919
951
  }
920
952
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
921
953
  };
922
- var safeCall = (instance, method, arg) => {
954
+ var safeCall = (instance, method, arg, elm) => {
923
955
  if (instance && instance[method]) {
924
956
  try {
925
957
  return instance[method](arg);
926
958
  } catch (e) {
927
- consoleError(e);
959
+ consoleError(e, elm);
928
960
  }
929
961
  }
930
962
  return void 0;
@@ -983,15 +1015,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
983
1015
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
984
1016
  members.map(([memberName, [memberFlags]]) => {
985
1017
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1018
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1019
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1020
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1021
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1022
+ Object.defineProperty(prototype, memberName, {
1023
+ get() {
1024
+ {
1025
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1026
+ return getValue(this, memberName);
1027
+ }
1028
+ const ref = getHostRef(this);
1029
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1030
+ if (!instance) return;
1031
+ return instance[memberName];
1032
+ }
1033
+ },
1034
+ configurable: true,
1035
+ enumerable: true
1036
+ });
1037
+ }
986
1038
  Object.defineProperty(prototype, memberName, {
987
- get() {
988
- return getValue(this, memberName);
989
- },
990
1039
  set(newValue) {
991
- setValue(this, memberName, newValue, cmpMeta);
992
- },
993
- configurable: true,
994
- enumerable: true
1040
+ const ref = getHostRef(this);
1041
+ if (origSetter) {
1042
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1043
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1044
+ newValue = ref.$instanceValues$.get(memberName);
1045
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1046
+ ref.$instanceValues$.set(memberName, currentValue);
1047
+ }
1048
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1049
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1050
+ setValue(this, memberName, newValue, cmpMeta);
1051
+ return;
1052
+ }
1053
+ {
1054
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1055
+ setValue(this, memberName, newValue, cmpMeta);
1056
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1057
+ ref.$onReadyPromise$.then(() => {
1058
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1059
+ ref.$lazyInstance$[memberName] = newValue;
1060
+ }
1061
+ });
1062
+ }
1063
+ return;
1064
+ }
1065
+ const setterSetVal = () => {
1066
+ const currentValue = ref.$lazyInstance$[memberName];
1067
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1068
+ ref.$instanceValues$.set(memberName, currentValue);
1069
+ }
1070
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1071
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1072
+ };
1073
+ if (ref.$lazyInstance$) {
1074
+ setterSetVal();
1075
+ } else {
1076
+ ref.$onReadyPromise$.then(() => setterSetVal());
1077
+ }
1078
+ }
1079
+ }
995
1080
  });
996
1081
  }
997
1082
  });
@@ -1001,7 +1086,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1001
1086
  plt.jmp(() => {
1002
1087
  var _a2;
1003
1088
  const propName = attrNameToPropName.get(attrName);
1004
- if (this.hasOwnProperty(propName)) {
1089
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1005
1090
  newValue = this[propName];
1006
1091
  delete this[propName];
1007
1092
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1021,7 +1106,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1021
1106
  }
1022
1107
  return;
1023
1108
  }
1024
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1109
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1110
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1111
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1112
+ this[propName] = newValue;
1113
+ }
1025
1114
  });
1026
1115
  };
1027
1116
  Cstr.observedAttributes = Array.from(
@@ -1048,9 +1137,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1048
1137
  let Cstr;
1049
1138
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1050
1139
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1051
- const bundleId = cmpMeta.$lazyBundleId$;
1052
- if (bundleId) {
1053
- const CstrImport = loadModule(cmpMeta);
1140
+ {
1141
+ const CstrImport = loadModule(cmpMeta, hostRef);
1054
1142
  if (CstrImport && "then" in CstrImport) {
1055
1143
  const endLoad = uniqueTime();
1056
1144
  Cstr = await CstrImport;
@@ -1075,7 +1163,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1075
1163
  try {
1076
1164
  new Cstr(hostRef);
1077
1165
  } catch (e) {
1078
- consoleError(e);
1166
+ consoleError(e, elm);
1079
1167
  }
1080
1168
  {
1081
1169
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1084,10 +1172,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1084
1172
  hostRef.$flags$ |= 128 /* isWatchReady */;
1085
1173
  }
1086
1174
  endNewInstance();
1087
- } else {
1088
- Cstr = elm.constructor;
1089
- const cmpTag = elm.localName;
1090
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1091
1175
  }
1092
1176
  if (Cstr && Cstr.style) {
1093
1177
  let style;
@@ -1110,7 +1194,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1110
1194
  schedule();
1111
1195
  }
1112
1196
  };
1113
- var fireConnectedCallback = (instance) => {
1197
+ var fireConnectedCallback = (instance, elm) => {
1114
1198
  };
1115
1199
 
1116
1200
  // src/runtime/connected-callback.ts
@@ -1151,7 +1235,7 @@ var connectedCallback = (elm) => {
1151
1235
  endConnected();
1152
1236
  }
1153
1237
  };
1154
- var disconnectInstance = (instance) => {
1238
+ var disconnectInstance = (instance, elm) => {
1155
1239
  };
1156
1240
  var disconnectedCallback = async (elm) => {
1157
1241
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1166,6 +1250,12 @@ var disconnectedCallback = async (elm) => {
1166
1250
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1167
1251
  }
1168
1252
  }
1253
+ if (rootAppliedStyles.has(elm)) {
1254
+ rootAppliedStyles.delete(elm);
1255
+ }
1256
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1257
+ rootAppliedStyles.delete(elm.shadowRoot);
1258
+ }
1169
1259
  };
1170
1260
 
1171
1261
  // src/runtime/bootstrap-lazy.ts
@@ -1250,6 +1340,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1250
1340
  }
1251
1341
  disconnectedCallback() {
1252
1342
  plt.jmp(() => disconnectedCallback(this));
1343
+ plt.raf(() => {
1344
+ var _a3;
1345
+ const hostRef = getHostRef(this);
1346
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1347
+ delete hostRef.$vnode$.$elm$;
1348
+ }
1349
+ });
1253
1350
  }
1254
1351
  componentOnReady() {
1255
1352
  return getHostRef(this).$onReadyPromise$;
@@ -1313,7 +1410,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1313
1410
  }
1314
1411
  }
1315
1412
  } catch (e) {
1316
- consoleError(e);
1413
+ consoleError(e, hostRef.$hostElement$);
1317
1414
  }
1318
1415
  };
1319
1416
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b067df3d.js');
5
+ const index = require('./index-3737bf3d.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b067df3d.js');
5
+ const index = require('./index-3737bf3d.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -137,6 +137,47 @@ const PlayerUserConsents = class {
137
137
  constructor(hostRef) {
138
138
  index.registerInstance(this, hostRef);
139
139
  this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
140
+ /**
141
+ * Language
142
+ */
143
+ this.lang = 'en';
144
+ /**
145
+ * 'true' when parent expects component to emit it's current value
146
+ */
147
+ this.queried = false;
148
+ /**
149
+ * the type of the consent, used to determine render details
150
+ */
151
+ this.consentType = '';
152
+ /**
153
+ * wether or not this consent is mandatory. Used for render details
154
+ */
155
+ this.mandatory = false;
156
+ /**
157
+ * Select GM version
158
+ */
159
+ this.gmVersion = '';
160
+ /**
161
+ * the title of the consent to be displayed
162
+ */
163
+ this.consentTitle = '';
164
+ /**
165
+ * Client custom styling via inline style
166
+ */
167
+ this.clientStyling = '';
168
+ /**
169
+ * Client custom styling via url
170
+ */
171
+ this.clientStylingUrl = '';
172
+ /**
173
+ * Translation url
174
+ */
175
+ this.translationUrl = '';
176
+ /**
177
+ * the text content to be rendered by the component. Determined at runtime
178
+ */
179
+ this.textContent = '';
180
+ this.limitStylingAppends = false;
140
181
  this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
141
182
  this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
142
183
  this.setClientStyling = () => {
@@ -157,17 +198,6 @@ const PlayerUserConsents = class {
157
198
  console.log('error ', err);
158
199
  });
159
200
  };
160
- this.lang = 'en';
161
- this.queried = false;
162
- this.consentType = '';
163
- this.mandatory = false;
164
- this.gmVersion = '';
165
- this.consentTitle = '';
166
- this.clientStyling = '';
167
- this.clientStylingUrl = '';
168
- this.translationUrl = '';
169
- this.textContent = '';
170
- this.limitStylingAppends = false;
171
201
  }
172
202
  handleNewTranslations() {
173
203
  getTranslations$1(this.translationUrl);
@@ -354,6 +384,37 @@ const UserActionControllerStyle0 = userActionControllerCss;
354
384
  const UserActionController = class {
355
385
  constructor(hostRef) {
356
386
  index.registerInstance(this, hostRef);
387
+ /**
388
+ * Language
389
+ */
390
+ this.lang = 'en';
391
+ /**
392
+ * Select GM version
393
+ */
394
+ this.gmVersion = '';
395
+ /**
396
+ * Translation url
397
+ */
398
+ this.translationUrl = '';
399
+ /**
400
+ * Client custom styling via inline style
401
+ */
402
+ this.clientStyling = '';
403
+ /**
404
+ * Client custom styling via url
405
+ */
406
+ this.clientStylingUrl = '';
407
+ /**
408
+ * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
409
+ */
410
+ this.queryFired = false;
411
+ this.readyActionsCount = 0;
412
+ this.activeUserActions = [];
413
+ this.userActionsValidated = true;
414
+ this.receivedQueryResponses = 0;
415
+ this.limitStylingAppends = false;
416
+ this.isLoading = true;
417
+ this.mandatoryActionsChecked = 0;
357
418
  //for now this variable is hardcoded bcs we have terms and conditions and privacy policy mandatory and we dont receive with these new functionality the mandatory actions
358
419
  this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
359
420
  this.userActions = [];
@@ -381,24 +442,6 @@ const UserActionController = class {
381
442
  console.log('error ', err);
382
443
  });
383
444
  };
384
- this.endpoint = undefined;
385
- this.userSession = undefined;
386
- this.userId = undefined;
387
- this.lang = 'en';
388
- this.includeSubmitButton = undefined;
389
- this.gmVersion = '';
390
- this.translationUrl = '';
391
- this.clientStyling = '';
392
- this.clientStylingUrl = '';
393
- this.queryFired = false;
394
- this.readyActionsCount = 0;
395
- this.activeUserActions = [];
396
- this.userActionsValidated = true;
397
- this.receivedQueryResponses = 0;
398
- this.limitStylingAppends = false;
399
- this.isLoading = true;
400
- this.mandatoryActionsChecked = 0;
401
- this.mandatoryItems = undefined;
402
445
  }
403
446
  handleNewTranslations() {
404
447
  getTranslations(this.translationUrl);
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-b067df3d.js');
5
+ const index = require('./index-3737bf3d.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('user-action-controller.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [