@everymatrix/user-action-controller 1.56.0 → 1.56.3

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 (25) hide show
  1. package/dist/cjs/{index-acdc077f.js → index-5068b4b4.js} +73 -210
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/player-user-consents_2.cjs.entry.js +19 -57
  4. package/dist/cjs/user-action-controller.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/user-action-controller/user-action-controller.js +15 -47
  7. package/dist/esm/{index-82e2d554.js → index-5b001d30.js} +73 -210
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/player-user-consents_2.entry.js +19 -57
  10. package/dist/esm/user-action-controller.js +3 -3
  11. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +2 -0
  12. 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 +2 -0
  13. package/dist/types/stencil-public-runtime.d.ts +0 -6
  14. package/dist/user-action-controller/p-1091a4ea.entry.js +1 -0
  15. package/dist/user-action-controller/p-21db0506.js +2 -0
  16. package/dist/user-action-controller/user-action-controller.esm.js +1 -1
  17. package/package.json +1 -1
  18. 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 +0 -2
  19. 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 +0 -2
  20. package/dist/user-action-controller/p-839810ba.entry.js +0 -1
  21. package/dist/user-action-controller/p-e2754eb5.js +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,27 +21,19 @@ 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: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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 };
24
+ const BUILD = /* user-action-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | 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
40
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
41
35
  var getHostRef = (ref) => hostRefs.get(ref);
42
- var registerInstance = (lazyInstance, hostRef) => {
43
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
45
37
  var registerHost = (hostElement, cmpMeta) => {
46
38
  const hostRef = {
47
39
  $flags$: 0,
@@ -54,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
54
46
  hostElement["s-p"] = [];
55
47
  hostElement["s-rc"] = [];
56
48
  }
57
- const ref = hostRefs.set(hostElement, hostRef);
58
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
59
50
  };
60
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
61
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -92,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
92
83
  /* webpackExclude: /\.system\.entry\.js$/ */
93
84
  /* webpackMode: "lazy" */
94
85
  `./${bundleId}.entry.js${""}`
95
- )); }).then(
96
- (importedModule) => {
97
- {
98
- cmpModules.set(bundleId, importedModule);
99
- }
100
- return importedModule[exportName];
101
- },
102
- (e) => {
103
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
104
89
  }
105
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
106
92
  };
107
93
 
108
94
  // src/client/client-style.ts
109
95
  var styles = /* @__PURE__ */ new Map();
110
- var HYDRATED_STYLE_ID = "sty-id";
111
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
112
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
113
98
  var win = typeof window !== "undefined" ? window : {};
@@ -181,6 +166,14 @@ var flush = () => {
181
166
  };
182
167
  var nextTick = (cb) => promiseResolve().then(cb);
183
168
  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;
184
177
  var isComplexType = (o) => {
185
178
  o = typeof o;
186
179
  return o === "object" || o === "function";
@@ -381,40 +374,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
381
374
  }
382
375
  if (!appliedStyles.has(scopeId2)) {
383
376
  {
384
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
377
+ styleElm = doc.createElement("style");
385
378
  styleElm.innerHTML = style;
386
379
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
387
380
  if (nonce != null) {
388
381
  styleElm.setAttribute("nonce", nonce);
389
382
  }
390
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
391
- if (styleContainerNode.nodeName === "HEAD") {
392
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
393
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
394
- styleContainerNode.insertBefore(
395
- styleElm,
396
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
397
- );
398
- } else if ("host" in styleContainerNode) {
399
- if (supportsConstructableStylesheets) {
400
- const stylesheet = new CSSStyleSheet();
401
- stylesheet.replaceSync(style);
402
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
403
- } else {
404
- const existingStyleContainer = styleContainerNode.querySelector("style");
405
- if (existingStyleContainer) {
406
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
407
- } else {
408
- styleContainerNode.prepend(styleElm);
409
- }
410
- }
411
- } else {
412
- styleContainerNode.append(styleElm);
413
- }
414
- }
415
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
416
- styleContainerNode.insertBefore(styleElm, null);
417
- }
383
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
418
384
  }
419
385
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
420
386
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -437,25 +403,23 @@ var attachStyles = (hostRef) => {
437
403
  const scopeId2 = addStyle(
438
404
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
439
405
  cmpMeta);
440
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
406
+ if (flags & 10 /* needsScopedEncapsulation */) {
441
407
  elm["s-sc"] = scopeId2;
442
408
  elm.classList.add(scopeId2 + "-h");
443
409
  }
444
410
  endAttachStyles();
445
411
  };
446
412
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
447
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
448
414
  if (oldValue !== newValue) {
449
415
  let isProp = isMemberInElement(elm, memberName);
450
416
  let ln = memberName.toLowerCase();
451
417
  if (memberName === "class") {
452
418
  const classList = elm.classList;
453
419
  const oldClasses = parseClassList(oldValue);
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
- }
420
+ const newClasses = parseClassList(newValue);
421
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
422
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
459
423
  } else if (memberName === "key") ; else if (memberName === "ref") {
460
424
  if (newValue) {
461
425
  newValue(elm);
@@ -487,13 +451,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
487
451
  if (memberName === "list") {
488
452
  isProp = false;
489
453
  } else if (oldValue == null || elm[memberName] != n) {
490
- if (typeof elm.__lookupSetter__(memberName) === "function") {
491
- elm[memberName] = n;
492
- } else {
493
- elm.setAttribute(memberName, n);
494
- }
454
+ elm[memberName] = n;
495
455
  }
496
- } else if (elm[memberName] !== newValue) {
456
+ } else {
497
457
  elm[memberName] = newValue;
498
458
  }
499
459
  } catch (e) {
@@ -515,44 +475,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
515
475
  }
516
476
  };
517
477
  var parseClassListRegex = /\s/;
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
- };
478
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
527
479
  var CAPTURE_EVENT_SUFFIX = "Capture";
528
480
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
529
481
 
530
482
  // src/runtime/vdom/update-element.ts
531
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
483
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
532
484
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
533
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
534
- const newVnodeAttrs = newVnode.$attrs$ || {};
485
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
486
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
535
487
  {
536
488
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
537
489
  if (!(memberName in newVnodeAttrs)) {
538
- setAccessor(
539
- elm,
540
- memberName,
541
- oldVnodeAttrs[memberName],
542
- void 0,
543
- isSvgMode2,
544
- newVnode.$flags$);
490
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
545
491
  }
546
492
  }
547
493
  }
548
494
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
549
- setAccessor(
550
- elm,
551
- memberName,
552
- oldVnodeAttrs[memberName],
553
- newVnodeAttrs[memberName],
554
- isSvgMode2,
555
- newVnode.$flags$);
495
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
556
496
  }
557
497
  };
558
498
  function sortedAttrNames(attrNames) {
@@ -564,10 +504,13 @@ function sortedAttrNames(attrNames) {
564
504
  attrNames
565
505
  );
566
506
  }
507
+
508
+ // src/runtime/vdom/vdom-render.ts
509
+ var scopeId;
567
510
  var hostTagName;
568
511
  var useNativeShadowDom = false;
569
512
  var isSvgMode = false;
570
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
513
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
571
514
  const newVNode2 = newParentVNode.$children$[childIndex];
572
515
  let i2 = 0;
573
516
  let elm;
@@ -588,6 +531,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
588
531
  {
589
532
  updateElement(null, newVNode2, isSvgMode);
590
533
  }
534
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
535
+ elm.classList.add(elm["s-si"] = scopeId);
536
+ }
591
537
  if (newVNode2.$children$) {
592
538
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
593
539
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -724,9 +670,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
724
670
  if (!isInitialRender) {
725
671
  return leftVNode.$key$ === rightVNode.$key$;
726
672
  }
727
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
728
- leftVNode.$key$ = rightVNode.$key$;
729
- }
730
673
  return true;
731
674
  }
732
675
  return false;
@@ -753,10 +696,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
753
696
  elm.textContent = "";
754
697
  }
755
698
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
756
- } else if (
757
- // don't do this on initial render as it can cause non-hydrated content to be removed
758
- !isInitialRender && BUILD.updatable && oldChildren !== null
759
- ) {
699
+ } else if (oldChildren !== null) {
760
700
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
761
701
  }
762
702
  if (isSvgMode && tag === "svg") {
@@ -773,9 +713,8 @@ var nullifyVNodeRefs = (vNode) => {
773
713
  }
774
714
  };
775
715
  var insertBefore = (parent, newNode, reference) => {
776
- {
777
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
778
- }
716
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
717
+ return inserted;
779
718
  };
780
719
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
781
720
  const hostElm = hostRef.$hostElement$;
@@ -800,21 +739,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
800
739
  rootVnode.$flags$ |= 4 /* isHost */;
801
740
  hostRef.$vnode$ = rootVnode;
802
741
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
803
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
742
+ {
743
+ scopeId = hostElm["s-sc"];
744
+ }
745
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
804
746
  patch(oldVNode, rootVnode, isInitialLoad);
805
747
  };
806
748
 
807
749
  // src/runtime/update-component.ts
808
750
  var attachToAncestor = (hostRef, ancestorComponent) => {
809
751
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
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
- );
752
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
818
753
  }
819
754
  };
820
755
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -843,12 +778,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
843
778
  {
844
779
  hostRef.$flags$ |= 256 /* isListenReady */;
845
780
  if (hostRef.$queuedListeners$) {
846
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
781
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
847
782
  hostRef.$queuedListeners$ = void 0;
848
783
  }
849
784
  }
850
785
  {
851
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
786
+ maybePromise = safeCall(instance, "componentWillLoad");
852
787
  }
853
788
  }
854
789
  endSchedule();
@@ -922,7 +857,7 @@ var postUpdateComponent = (hostRef) => {
922
857
  addHydratedFlag(elm);
923
858
  }
924
859
  {
925
- safeCall(instance, "componentDidLoad", void 0, elm);
860
+ safeCall(instance, "componentDidLoad");
926
861
  }
927
862
  endPostUpdate();
928
863
  {
@@ -946,14 +881,17 @@ var postUpdateComponent = (hostRef) => {
946
881
  }
947
882
  };
948
883
  var appDidLoad = (who) => {
884
+ {
885
+ addHydratedFlag(doc.documentElement);
886
+ }
949
887
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
950
888
  };
951
- var safeCall = (instance, method, arg, elm) => {
889
+ var safeCall = (instance, method, arg) => {
952
890
  if (instance && instance[method]) {
953
891
  try {
954
892
  return instance[method](arg);
955
893
  } catch (e) {
956
- consoleError(e, elm);
894
+ consoleError(e);
957
895
  }
958
896
  }
959
897
  return void 0;
@@ -1012,68 +950,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1012
950
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1013
951
  members.map(([memberName, [memberFlags]]) => {
1014
952
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1015
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1016
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1017
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1018
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1019
- Object.defineProperty(prototype, memberName, {
1020
- get() {
1021
- {
1022
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1023
- return getValue(this, memberName);
1024
- }
1025
- const ref = getHostRef(this);
1026
- const instance = ref ? ref.$lazyInstance$ : prototype;
1027
- if (!instance) return;
1028
- return instance[memberName];
1029
- }
1030
- },
1031
- configurable: true,
1032
- enumerable: true
1033
- });
1034
- }
1035
953
  Object.defineProperty(prototype, memberName, {
954
+ get() {
955
+ return getValue(this, memberName);
956
+ },
1036
957
  set(newValue) {
1037
- const ref = getHostRef(this);
1038
- if (origSetter) {
1039
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1040
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1041
- newValue = ref.$instanceValues$.get(memberName);
1042
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1043
- ref.$instanceValues$.set(memberName, currentValue);
1044
- }
1045
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1046
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1047
- setValue(this, memberName, newValue, cmpMeta);
1048
- return;
1049
- }
1050
- {
1051
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1052
- setValue(this, memberName, newValue, cmpMeta);
1053
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1054
- ref.$onReadyPromise$.then(() => {
1055
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1056
- ref.$lazyInstance$[memberName] = newValue;
1057
- }
1058
- });
1059
- }
1060
- return;
1061
- }
1062
- const setterSetVal = () => {
1063
- const currentValue = ref.$lazyInstance$[memberName];
1064
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1065
- ref.$instanceValues$.set(memberName, currentValue);
1066
- }
1067
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1068
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1069
- };
1070
- if (ref.$lazyInstance$) {
1071
- setterSetVal();
1072
- } else {
1073
- ref.$onReadyPromise$.then(() => setterSetVal());
1074
- }
1075
- }
1076
- }
958
+ setValue(this, memberName, newValue, cmpMeta);
959
+ },
960
+ configurable: true,
961
+ enumerable: true
1077
962
  });
1078
963
  }
1079
964
  });
@@ -1083,11 +968,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1083
968
  plt.jmp(() => {
1084
969
  var _a2;
1085
970
  const propName = attrNameToPropName.get(attrName);
1086
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
971
+ if (this.hasOwnProperty(propName)) {
1087
972
  newValue = this[propName];
1088
973
  delete this[propName];
1089
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1090
- this[propName] == newValue) {
974
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1091
975
  return;
1092
976
  } else if (propName == null) {
1093
977
  const hostRef = getHostRef(this);
@@ -1103,11 +987,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1103
987
  }
1104
988
  return;
1105
989
  }
1106
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1107
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1108
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1109
- this[propName] = newValue;
1110
- }
990
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1111
991
  });
1112
992
  };
1113
993
  Cstr.observedAttributes = Array.from(
@@ -1136,7 +1016,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1136
1016
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1137
1017
  const bundleId = cmpMeta.$lazyBundleId$;
1138
1018
  if (bundleId) {
1139
- const CstrImport = loadModule(cmpMeta, hostRef);
1019
+ const CstrImport = loadModule(cmpMeta);
1140
1020
  if (CstrImport && "then" in CstrImport) {
1141
1021
  const endLoad = uniqueTime();
1142
1022
  Cstr = await CstrImport;
@@ -1161,7 +1041,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1161
1041
  try {
1162
1042
  new Cstr(hostRef);
1163
1043
  } catch (e) {
1164
- consoleError(e, elm);
1044
+ consoleError(e);
1165
1045
  }
1166
1046
  {
1167
1047
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1196,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1196
1076
  schedule();
1197
1077
  }
1198
1078
  };
1199
- var fireConnectedCallback = (instance, elm) => {
1079
+ var fireConnectedCallback = (instance) => {
1200
1080
  };
1201
1081
 
1202
1082
  // src/runtime/connected-callback.ts
@@ -1237,9 +1117,9 @@ var connectedCallback = (elm) => {
1237
1117
  endConnected();
1238
1118
  }
1239
1119
  };
1240
- var disconnectInstance = (instance, elm) => {
1120
+ var disconnectInstance = (instance) => {
1241
1121
  {
1242
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1122
+ safeCall(instance, "disconnectedCallback");
1243
1123
  }
1244
1124
  };
1245
1125
  var disconnectedCallback = async (elm) => {
@@ -1252,17 +1132,11 @@ var disconnectedCallback = async (elm) => {
1252
1132
  }
1253
1133
  }
1254
1134
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1255
- disconnectInstance(hostRef.$lazyInstance$, elm);
1135
+ disconnectInstance(hostRef.$lazyInstance$);
1256
1136
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1257
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1137
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1258
1138
  }
1259
1139
  }
1260
- if (rootAppliedStyles.has(elm)) {
1261
- rootAppliedStyles.delete(elm);
1262
- }
1263
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1264
- rootAppliedStyles.delete(elm.shadowRoot);
1265
- }
1266
1140
  };
1267
1141
 
1268
1142
  // src/runtime/bootstrap-lazy.ts
@@ -1347,17 +1221,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1347
1221
  }
1348
1222
  disconnectedCallback() {
1349
1223
  plt.jmp(() => disconnectedCallback(this));
1350
- plt.raf(() => {
1351
- var _a3;
1352
- const hostRef = getHostRef(this);
1353
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1354
- if (i2 > -1) {
1355
- deferredConnectedCallbacks.splice(i2, 1);
1356
- }
1357
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1358
- delete hostRef.$vnode$.$elm$;
1359
- }
1360
- });
1361
1224
  }
1362
1225
  componentOnReady() {
1363
1226
  return getHostRef(this).$onReadyPromise$;
@@ -1421,7 +1284,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1421
1284
  }
1422
1285
  }
1423
1286
  } catch (e) {
1424
- consoleError(e, hostRef.$hostElement$);
1287
+ consoleError(e);
1425
1288
  }
1426
1289
  };
1427
1290
  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-acdc077f.js');
5
+ const index = require('./index-5068b4b4.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-acdc077f.js');
5
+ const index = require('./index-5068b4b4.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -194,45 +194,19 @@ const PlayerUserConsents = class {
194
194
  constructor(hostRef) {
195
195
  index.registerInstance(this, hostRef);
196
196
  this.userLegislationConsent = index.createEvent(this, "userLegislationConsent", 7);
197
- /**
198
- * Language
199
- */
197
+ this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
198
+ this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
200
199
  this.lang = 'en';
201
- /**
202
- * 'true' when parent expects component to emit it's current value
203
- */
204
200
  this.queried = false;
205
- /**
206
- * the type of the consent, used to determine render details
207
- */
208
201
  this.consentType = '';
209
- /**
210
- * wether or not this consent is mandatory. Used for render details
211
- */
212
202
  this.mandatory = false;
213
- /**
214
- * Select GM version
215
- */
216
203
  this.gmVersion = '';
217
- /**
218
- * the title of the consent to be displayed
219
- */
220
204
  this.consentTitle = '';
221
- /**
222
- * Client custom styling via inline style
223
- */
224
205
  this.clientStyling = '';
225
- /**
226
- * Client custom styling via url
227
- */
228
206
  this.clientStylingUrl = '';
229
- /**
230
- * Translation url
231
- */
232
207
  this.translationUrl = '';
208
+ this.mbSource = undefined;
233
209
  this.textContent = '';
234
- this.goToTermsAndConditions = () => window.postMessage({ type: 'GoToTermsAndConditions' });
235
- this.goToPrivacyPolicy = () => window.postMessage({ type: 'GoToPrivacyPolicy' });
236
210
  }
237
211
  handleNewTranslations() {
238
212
  getTranslations$1(this.translationUrl);
@@ -424,29 +398,25 @@ const UserActionControllerStyle0 = userActionControllerCss;
424
398
  const UserActionController = class {
425
399
  constructor(hostRef) {
426
400
  index.registerInstance(this, hostRef);
427
- /**
428
- * Language
429
- */
401
+ //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
402
+ this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
403
+ this.userActions = [];
404
+ this.consentTitles = {
405
+ termsandconditions: translate('termsAndConditionsTitle', this.lang),
406
+ sms: translate('smsTitle', this.lang),
407
+ emailmarketing: translate('emailMarketingTitle', this.lang),
408
+ privacypolicy: translate('privacyPolicyTitle', this.lang)
409
+ };
410
+ this.endpoint = undefined;
411
+ this.userSession = undefined;
412
+ this.userId = undefined;
430
413
  this.lang = 'en';
431
- /**
432
- * Select GM version
433
- */
414
+ this.includeSubmitButton = undefined;
434
415
  this.gmVersion = '';
435
- /**
436
- * Translation url
437
- */
438
416
  this.translationUrl = '';
439
- /**
440
- * Client custom styling via inline style
441
- */
442
417
  this.clientStyling = '';
443
- /**
444
- * Client custom styling via url
445
- */
446
418
  this.clientStylingUrl = '';
447
- /**
448
- * Which actions are required in order to activate the "Apply" button. Other actions are considered optional.
449
- */
419
+ this.mbSource = undefined;
450
420
  this.queryFired = false;
451
421
  this.readyActionsCount = 0;
452
422
  this.activeUserActions = [];
@@ -454,15 +424,7 @@ const UserActionController = class {
454
424
  this.receivedQueryResponses = 0;
455
425
  this.isLoading = true;
456
426
  this.mandatoryActionsChecked = 0;
457
- //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
458
- this.mandatoryActions = ['termsandconditions', 'privacypolicy'];
459
- this.userActions = [];
460
- this.consentTitles = {
461
- termsandconditions: translate('termsAndConditionsTitle', this.lang),
462
- sms: translate('smsTitle', this.lang),
463
- emailmarketing: translate('emailMarketingTitle', this.lang),
464
- privacypolicy: translate('privacyPolicyTitle', this.lang)
465
- };
427
+ this.mandatoryItems = undefined;
466
428
  }
467
429
  handleNewTranslations() {
468
430
  getTranslations(this.translationUrl);