@everymatrix/player-user-consents 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 (24) hide show
  1. package/dist/cjs/{index-2b0d6186.js → index-d9b72068.js} +69 -204
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/player-user-consents.cjs.entry.js +4 -30
  4. package/dist/cjs/player-user-consents.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/player-user-consents/player-user-consents.js +3 -49
  7. package/dist/esm/{index-ddeaee0b.js → index-bc209863.js} +69 -204
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/player-user-consents.entry.js +4 -30
  10. package/dist/esm/player-user-consents.js +3 -3
  11. package/dist/player-user-consents/p-8a55ff12.js +2 -0
  12. package/dist/player-user-consents/{p-2ea10158.entry.js → p-ca02b215.entry.js} +1 -1
  13. package/dist/player-user-consents/player-user-consents.esm.js +1 -1
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/player-user-consents/.stencil/packages/stencil/player-user-consents/stencil.config.d.ts +2 -0
  15. 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 +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/player-user-consents/p-97e255e9.js +0 -2
  19. 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 +0 -2
  20. 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 +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/player-user-consents/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'player-user-consents';
24
- const BUILD = /* player-user-consents */ { 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: 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 };
24
+ const BUILD = /* player-user-consents */ { 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: 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 };
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/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -361,40 +356,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
361
356
  }
362
357
  if (!appliedStyles.has(scopeId2)) {
363
358
  {
364
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
359
+ styleElm = doc.createElement("style");
365
360
  styleElm.innerHTML = style;
366
361
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
367
362
  if (nonce != null) {
368
363
  styleElm.setAttribute("nonce", nonce);
369
364
  }
370
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
371
- if (styleContainerNode.nodeName === "HEAD") {
372
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
373
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
374
- styleContainerNode.insertBefore(
375
- styleElm,
376
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
- );
378
- } else if ("host" in styleContainerNode) {
379
- if (supportsConstructableStylesheets) {
380
- const stylesheet = new CSSStyleSheet();
381
- stylesheet.replaceSync(style);
382
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
383
- } else {
384
- const existingStyleContainer = styleContainerNode.querySelector("style");
385
- if (existingStyleContainer) {
386
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
387
- } else {
388
- styleContainerNode.prepend(styleElm);
389
- }
390
- }
391
- } else {
392
- styleContainerNode.append(styleElm);
393
- }
394
- }
395
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
396
- styleContainerNode.insertBefore(styleElm, null);
397
- }
365
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
398
366
  }
399
367
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
400
368
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -417,25 +385,23 @@ var attachStyles = (hostRef) => {
417
385
  const scopeId2 = addStyle(
418
386
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
419
387
  cmpMeta);
420
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
388
+ if (flags & 10 /* needsScopedEncapsulation */) {
421
389
  elm["s-sc"] = scopeId2;
422
390
  elm.classList.add(scopeId2 + "-h");
423
391
  }
424
392
  endAttachStyles();
425
393
  };
426
394
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
427
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
395
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
396
  if (oldValue !== newValue) {
429
397
  let isProp = isMemberInElement(elm, memberName);
430
398
  let ln = memberName.toLowerCase();
431
399
  if (memberName === "class") {
432
400
  const classList = elm.classList;
433
401
  const oldClasses = parseClassList(oldValue);
434
- let newClasses = parseClassList(newValue);
435
- {
436
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
437
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
438
- }
402
+ const newClasses = parseClassList(newValue);
403
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
404
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
405
  } else if (memberName === "key") ; else if (memberName === "ref") {
440
406
  if (newValue) {
441
407
  newValue(elm);
@@ -467,13 +433,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
467
433
  if (memberName === "list") {
468
434
  isProp = false;
469
435
  } else if (oldValue == null || elm[memberName] != n) {
470
- if (typeof elm.__lookupSetter__(memberName) === "function") {
471
- elm[memberName] = n;
472
- } else {
473
- elm.setAttribute(memberName, n);
474
- }
436
+ elm[memberName] = n;
475
437
  }
476
- } else if (elm[memberName] !== newValue) {
438
+ } else {
477
439
  elm[memberName] = newValue;
478
440
  }
479
441
  } catch (e) {
@@ -495,44 +457,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
495
457
  }
496
458
  };
497
459
  var parseClassListRegex = /\s/;
498
- var parseClassList = (value) => {
499
- if (typeof value === "object" && value && "baseVal" in value) {
500
- value = value.baseVal;
501
- }
502
- if (!value || typeof value !== "string") {
503
- return [];
504
- }
505
- return value.split(parseClassListRegex);
506
- };
460
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
507
461
  var CAPTURE_EVENT_SUFFIX = "Capture";
508
462
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
509
463
 
510
464
  // src/runtime/vdom/update-element.ts
511
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
465
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
466
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
513
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
- const newVnodeAttrs = newVnode.$attrs$ || {};
467
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
468
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
515
469
  {
516
470
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
517
471
  if (!(memberName in newVnodeAttrs)) {
518
- setAccessor(
519
- elm,
520
- memberName,
521
- oldVnodeAttrs[memberName],
522
- void 0,
523
- isSvgMode2,
524
- newVnode.$flags$);
472
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
525
473
  }
526
474
  }
527
475
  }
528
476
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
529
- setAccessor(
530
- elm,
531
- memberName,
532
- oldVnodeAttrs[memberName],
533
- newVnodeAttrs[memberName],
534
- isSvgMode2,
535
- newVnode.$flags$);
477
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
536
478
  }
537
479
  };
538
480
  function sortedAttrNames(attrNames) {
@@ -544,10 +486,13 @@ function sortedAttrNames(attrNames) {
544
486
  attrNames
545
487
  );
546
488
  }
489
+
490
+ // src/runtime/vdom/vdom-render.ts
491
+ var scopeId;
547
492
  var hostTagName;
548
493
  var useNativeShadowDom = false;
549
494
  var isSvgMode = false;
550
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
495
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
496
  const newVNode2 = newParentVNode.$children$[childIndex];
552
497
  let i2 = 0;
553
498
  let elm;
@@ -561,6 +506,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
561
506
  {
562
507
  updateElement(null, newVNode2, isSvgMode);
563
508
  }
509
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
510
+ elm.classList.add(elm["s-si"] = scopeId);
511
+ }
564
512
  if (newVNode2.$children$) {
565
513
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
566
514
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -690,9 +638,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
638
  if (!isInitialRender) {
691
639
  return leftVNode.$key$ === rightVNode.$key$;
692
640
  }
693
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
- leftVNode.$key$ = rightVNode.$key$;
695
- }
696
641
  return true;
697
642
  }
698
643
  return false;
@@ -715,10 +660,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
715
660
  elm.textContent = "";
716
661
  }
717
662
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
718
- } else if (
719
- // don't do this on initial render as it can cause non-hydrated content to be removed
720
- !isInitialRender && BUILD.updatable && oldChildren !== null
721
- ) {
663
+ } else if (oldChildren !== null) {
722
664
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
723
665
  }
724
666
  } else if (oldVNode.$text$ !== text) {
@@ -732,9 +674,8 @@ var nullifyVNodeRefs = (vNode) => {
732
674
  }
733
675
  };
734
676
  var insertBefore = (parent, newNode, reference) => {
735
- {
736
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
737
- }
677
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
678
+ return inserted;
738
679
  };
739
680
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
740
681
  const hostElm = hostRef.$hostElement$;
@@ -759,21 +700,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
759
700
  rootVnode.$flags$ |= 4 /* isHost */;
760
701
  hostRef.$vnode$ = rootVnode;
761
702
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
762
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
703
+ {
704
+ scopeId = hostElm["s-sc"];
705
+ }
706
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
763
707
  patch(oldVNode, rootVnode, isInitialLoad);
764
708
  };
765
709
 
766
710
  // src/runtime/update-component.ts
767
711
  var attachToAncestor = (hostRef, ancestorComponent) => {
768
712
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
769
- const index = ancestorComponent["s-p"].push(
770
- new Promise(
771
- (r) => hostRef.$onRenderResolve$ = () => {
772
- ancestorComponent["s-p"].splice(index - 1, 1);
773
- r();
774
- }
775
- )
776
- );
713
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
777
714
  }
778
715
  };
779
716
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -800,7 +737,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
800
737
  let maybePromise;
801
738
  if (isInitialLoad) {
802
739
  {
803
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
740
+ maybePromise = safeCall(instance, "componentWillLoad");
804
741
  }
805
742
  }
806
743
  endSchedule();
@@ -874,7 +811,7 @@ var postUpdateComponent = (hostRef) => {
874
811
  addHydratedFlag(elm);
875
812
  }
876
813
  {
877
- safeCall(instance, "componentDidLoad", void 0, elm);
814
+ safeCall(instance, "componentDidLoad");
878
815
  }
879
816
  endPostUpdate();
880
817
  {
@@ -898,14 +835,17 @@ var postUpdateComponent = (hostRef) => {
898
835
  }
899
836
  };
900
837
  var appDidLoad = (who) => {
838
+ {
839
+ addHydratedFlag(doc.documentElement);
840
+ }
901
841
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
902
842
  };
903
- var safeCall = (instance, method, arg, elm) => {
843
+ var safeCall = (instance, method, arg) => {
904
844
  if (instance && instance[method]) {
905
845
  try {
906
846
  return instance[method](arg);
907
847
  } catch (e) {
908
- consoleError(e, elm);
848
+ consoleError(e);
909
849
  }
910
850
  }
911
851
  return void 0;
@@ -964,68 +904,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
964
904
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
965
905
  members.map(([memberName, [memberFlags]]) => {
966
906
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
967
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
968
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
969
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
970
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
971
- Object.defineProperty(prototype, memberName, {
972
- get() {
973
- {
974
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
975
- return getValue(this, memberName);
976
- }
977
- const ref = getHostRef(this);
978
- const instance = ref ? ref.$lazyInstance$ : prototype;
979
- if (!instance) return;
980
- return instance[memberName];
981
- }
982
- },
983
- configurable: true,
984
- enumerable: true
985
- });
986
- }
987
907
  Object.defineProperty(prototype, memberName, {
908
+ get() {
909
+ return getValue(this, memberName);
910
+ },
988
911
  set(newValue) {
989
- const ref = getHostRef(this);
990
- if (origSetter) {
991
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
992
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
993
- newValue = ref.$instanceValues$.get(memberName);
994
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
995
- ref.$instanceValues$.set(memberName, currentValue);
996
- }
997
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
998
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
999
- setValue(this, memberName, newValue, cmpMeta);
1000
- return;
1001
- }
1002
- {
1003
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1004
- setValue(this, memberName, newValue, cmpMeta);
1005
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1006
- ref.$onReadyPromise$.then(() => {
1007
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1008
- ref.$lazyInstance$[memberName] = newValue;
1009
- }
1010
- });
1011
- }
1012
- return;
1013
- }
1014
- const setterSetVal = () => {
1015
- const currentValue = ref.$lazyInstance$[memberName];
1016
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1017
- ref.$instanceValues$.set(memberName, currentValue);
1018
- }
1019
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1020
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1021
- };
1022
- if (ref.$lazyInstance$) {
1023
- setterSetVal();
1024
- } else {
1025
- ref.$onReadyPromise$.then(() => setterSetVal());
1026
- }
1027
- }
1028
- }
912
+ setValue(this, memberName, newValue, cmpMeta);
913
+ },
914
+ configurable: true,
915
+ enumerable: true
1029
916
  });
1030
917
  }
1031
918
  });
@@ -1035,11 +922,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1035
922
  plt.jmp(() => {
1036
923
  var _a2;
1037
924
  const propName = attrNameToPropName.get(attrName);
1038
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
925
+ if (this.hasOwnProperty(propName)) {
1039
926
  newValue = this[propName];
1040
927
  delete this[propName];
1041
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1042
- this[propName] == newValue) {
928
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1043
929
  return;
1044
930
  } else if (propName == null) {
1045
931
  const hostRef = getHostRef(this);
@@ -1055,11 +941,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1055
941
  }
1056
942
  return;
1057
943
  }
1058
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1059
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1060
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1061
- this[propName] = newValue;
1062
- }
944
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1063
945
  });
1064
946
  };
1065
947
  Cstr.observedAttributes = Array.from(
@@ -1088,7 +970,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1088
970
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1089
971
  const bundleId = cmpMeta.$lazyBundleId$;
1090
972
  if (bundleId) {
1091
- const CstrImport = loadModule(cmpMeta, hostRef);
973
+ const CstrImport = loadModule(cmpMeta);
1092
974
  if (CstrImport && "then" in CstrImport) {
1093
975
  const endLoad = uniqueTime();
1094
976
  Cstr = await CstrImport;
@@ -1113,7 +995,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1113
995
  try {
1114
996
  new Cstr(hostRef);
1115
997
  } catch (e) {
1116
- consoleError(e, elm);
998
+ consoleError(e);
1117
999
  }
1118
1000
  {
1119
1001
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1148,7 +1030,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1148
1030
  schedule();
1149
1031
  }
1150
1032
  };
1151
- var fireConnectedCallback = (instance, elm) => {
1033
+ var fireConnectedCallback = (instance) => {
1152
1034
  };
1153
1035
 
1154
1036
  // src/runtime/connected-callback.ts
@@ -1188,26 +1070,20 @@ var connectedCallback = (elm) => {
1188
1070
  endConnected();
1189
1071
  }
1190
1072
  };
1191
- var disconnectInstance = (instance, elm) => {
1073
+ var disconnectInstance = (instance) => {
1192
1074
  {
1193
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1075
+ safeCall(instance, "disconnectedCallback");
1194
1076
  }
1195
1077
  };
1196
1078
  var disconnectedCallback = async (elm) => {
1197
1079
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1198
1080
  const hostRef = getHostRef(elm);
1199
1081
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1200
- disconnectInstance(hostRef.$lazyInstance$, elm);
1082
+ disconnectInstance(hostRef.$lazyInstance$);
1201
1083
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1202
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1084
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1203
1085
  }
1204
1086
  }
1205
- if (rootAppliedStyles.has(elm)) {
1206
- rootAppliedStyles.delete(elm);
1207
- }
1208
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1209
- rootAppliedStyles.delete(elm.shadowRoot);
1210
- }
1211
1087
  };
1212
1088
 
1213
1089
  // src/runtime/bootstrap-lazy.ts
@@ -1288,17 +1164,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1288
1164
  }
1289
1165
  disconnectedCallback() {
1290
1166
  plt.jmp(() => disconnectedCallback(this));
1291
- plt.raf(() => {
1292
- var _a3;
1293
- const hostRef = getHostRef(this);
1294
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1295
- if (i2 > -1) {
1296
- deferredConnectedCallbacks.splice(i2, 1);
1297
- }
1298
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1299
- delete hostRef.$vnode$.$elm$;
1300
- }
1301
- });
1302
1167
  }
1303
1168
  componentOnReady() {
1304
1169
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2b0d6186.js');
5
+ const index = require('./index-d9b72068.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-2b0d6186.js');
5
+ const index = require('./index-d9b72068.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE = 'en';
8
8
  const TRANSLATIONS = {
@@ -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(this.translationUrl);
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2b0d6186.js');
5
+ const index = require('./index-d9b72068.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.19.2 | 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('player-user-consents.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [],
11
11
  "bundles": []