@everymatrix/user-action-controller 1.54.11 → 1.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. package/dist/cjs/{index-eb2c9562.js → index-316ef19a.js} +79 -177
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/player-user-consents_2.cjs.entry.js +107 -117
  4. package/dist/cjs/user-action-controller.cjs.js +3 -3
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/user-action-controller/user-action-controller.js +49 -73
  7. package/dist/esm/{index-b5753d50.js → index-48848b35.js} +79 -177
  8. package/dist/esm/loader.js +3 -3
  9. package/dist/esm/player-user-consents_2.entry.js +107 -117
  10. package/dist/esm/user-action-controller.js +4 -4
  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/components/user-action-controller/user-action-controller.d.ts +4 -3
  14. package/dist/types/components.d.ts +2 -0
  15. package/dist/user-action-controller/p-5a10e23d.js +2 -0
  16. package/dist/user-action-controller/p-ef35142f.entry.js +1 -0
  17. package/dist/user-action-controller/user-action-controller.esm.js +1 -1
  18. package/package.json +1 -1
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.d.ts +0 -2
  20. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/user-action-controller/.stencil/packages/stencil/user-action-controller/stencil.config.dev.d.ts +0 -2
  21. package/dist/user-action-controller/p-649aa648.entry.js +0 -1
  22. package/dist/user-action-controller/p-a70608c7.js +0 -2
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/user-action-controller/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/{builds/emfe-widgets → Users/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: 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 };
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.22.3 | 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,7 +374,7 @@ 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) {
@@ -391,10 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
391
384
  if (styleContainerNode.nodeName === "HEAD") {
392
385
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
393
386
  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
- );
387
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
398
388
  } else if ("host" in styleContainerNode) {
399
389
  if (supportsConstructableStylesheets) {
400
390
  const stylesheet = new CSSStyleSheet();
@@ -412,7 +402,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
412
402
  styleContainerNode.append(styleElm);
413
403
  }
414
404
  }
415
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
405
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
416
406
  styleContainerNode.insertBefore(styleElm, null);
417
407
  }
418
408
  }
@@ -437,25 +427,23 @@ var attachStyles = (hostRef) => {
437
427
  const scopeId2 = addStyle(
438
428
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
439
429
  cmpMeta);
440
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
430
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
441
431
  elm["s-sc"] = scopeId2;
442
432
  elm.classList.add(scopeId2 + "-h");
443
433
  }
444
434
  endAttachStyles();
445
435
  };
446
436
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
447
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
437
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
448
438
  if (oldValue !== newValue) {
449
439
  let isProp = isMemberInElement(elm, memberName);
450
440
  let ln = memberName.toLowerCase();
451
441
  if (memberName === "class") {
452
442
  const classList = elm.classList;
453
443
  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
- }
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)));
459
447
  } else if (memberName === "key") ; else if (memberName === "ref") {
460
448
  if (newValue) {
461
449
  newValue(elm);
@@ -493,7 +481,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
493
481
  elm.setAttribute(memberName, n);
494
482
  }
495
483
  }
496
- } else if (elm[memberName] !== newValue) {
484
+ } else {
497
485
  elm[memberName] = newValue;
498
486
  }
499
487
  } catch (e) {
@@ -515,44 +503,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
515
503
  }
516
504
  };
517
505
  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
- };
506
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
527
507
  var CAPTURE_EVENT_SUFFIX = "Capture";
528
508
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
529
509
 
530
510
  // src/runtime/vdom/update-element.ts
531
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
511
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
532
512
  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$ || {};
513
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
514
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
535
515
  {
536
516
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
537
517
  if (!(memberName in newVnodeAttrs)) {
538
- setAccessor(
539
- elm,
540
- memberName,
541
- oldVnodeAttrs[memberName],
542
- void 0,
543
- isSvgMode2,
544
- newVnode.$flags$);
518
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
545
519
  }
546
520
  }
547
521
  }
548
522
  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$);
523
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
556
524
  }
557
525
  };
558
526
  function sortedAttrNames(attrNames) {
@@ -564,10 +532,13 @@ function sortedAttrNames(attrNames) {
564
532
  attrNames
565
533
  );
566
534
  }
535
+
536
+ // src/runtime/vdom/vdom-render.ts
537
+ var scopeId;
567
538
  var hostTagName;
568
539
  var useNativeShadowDom = false;
569
540
  var isSvgMode = false;
570
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
541
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
571
542
  const newVNode2 = newParentVNode.$children$[childIndex];
572
543
  let i2 = 0;
573
544
  let elm;
@@ -588,6 +559,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
588
559
  {
589
560
  updateElement(null, newVNode2, isSvgMode);
590
561
  }
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
+ }
591
567
  if (newVNode2.$children$) {
592
568
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
593
569
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -724,9 +700,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
724
700
  if (!isInitialRender) {
725
701
  return leftVNode.$key$ === rightVNode.$key$;
726
702
  }
727
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
728
- leftVNode.$key$ = rightVNode.$key$;
729
- }
730
703
  return true;
731
704
  }
732
705
  return false;
@@ -773,9 +746,8 @@ var nullifyVNodeRefs = (vNode) => {
773
746
  }
774
747
  };
775
748
  var insertBefore = (parent, newNode, reference) => {
776
- {
777
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
778
- }
749
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
750
+ return inserted;
779
751
  };
780
752
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
781
753
  const hostElm = hostRef.$hostElement$;
@@ -800,21 +772,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
800
772
  rootVnode.$flags$ |= 4 /* isHost */;
801
773
  hostRef.$vnode$ = rootVnode;
802
774
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
803
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
775
+ {
776
+ scopeId = hostElm["s-sc"];
777
+ }
778
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
804
779
  patch(oldVNode, rootVnode, isInitialLoad);
805
780
  };
806
781
 
807
782
  // src/runtime/update-component.ts
808
783
  var attachToAncestor = (hostRef, ancestorComponent) => {
809
784
  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
- );
785
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
818
786
  }
819
787
  };
820
788
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -843,12 +811,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
843
811
  {
844
812
  hostRef.$flags$ |= 256 /* isListenReady */;
845
813
  if (hostRef.$queuedListeners$) {
846
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
814
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
847
815
  hostRef.$queuedListeners$ = void 0;
848
816
  }
849
817
  }
850
818
  {
851
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
819
+ maybePromise = safeCall(instance, "componentWillLoad");
852
820
  }
853
821
  }
854
822
  endSchedule();
@@ -916,14 +884,14 @@ var postUpdateComponent = (hostRef) => {
916
884
  const endPostUpdate = createTime("postUpdate", tagName);
917
885
  const instance = hostRef.$lazyInstance$ ;
918
886
  const ancestorComponent = hostRef.$ancestorComponent$;
919
- {
920
- safeCall(instance, "componentDidRender", void 0, elm);
921
- }
922
887
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
923
888
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
924
889
  {
925
890
  addHydratedFlag(elm);
926
891
  }
892
+ {
893
+ safeCall(instance, "componentDidLoad");
894
+ }
927
895
  endPostUpdate();
928
896
  {
929
897
  hostRef.$onReadyResolve$(elm);
@@ -946,14 +914,17 @@ var postUpdateComponent = (hostRef) => {
946
914
  }
947
915
  };
948
916
  var appDidLoad = (who) => {
917
+ {
918
+ addHydratedFlag(doc.documentElement);
919
+ }
949
920
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
950
921
  };
951
- var safeCall = (instance, method, arg, elm) => {
922
+ var safeCall = (instance, method, arg) => {
952
923
  if (instance && instance[method]) {
953
924
  try {
954
925
  return instance[method](arg);
955
926
  } catch (e) {
956
- consoleError(e, elm);
927
+ consoleError(e);
957
928
  }
958
929
  }
959
930
  return void 0;
@@ -1012,68 +983,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1012
983
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1013
984
  members.map(([memberName, [memberFlags]]) => {
1014
985
  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
986
  Object.defineProperty(prototype, memberName, {
987
+ get() {
988
+ return getValue(this, memberName);
989
+ },
1036
990
  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
- }
991
+ setValue(this, memberName, newValue, cmpMeta);
992
+ },
993
+ configurable: true,
994
+ enumerable: true
1077
995
  });
1078
996
  }
1079
997
  });
@@ -1083,7 +1001,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1083
1001
  plt.jmp(() => {
1084
1002
  var _a2;
1085
1003
  const propName = attrNameToPropName.get(attrName);
1086
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1004
+ if (this.hasOwnProperty(propName)) {
1087
1005
  newValue = this[propName];
1088
1006
  delete this[propName];
1089
1007
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1103,11 +1021,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1103
1021
  }
1104
1022
  return;
1105
1023
  }
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
- }
1024
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1111
1025
  });
1112
1026
  };
1113
1027
  Cstr.observedAttributes = Array.from(
@@ -1136,7 +1050,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1136
1050
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1137
1051
  const bundleId = cmpMeta.$lazyBundleId$;
1138
1052
  if (bundleId) {
1139
- const CstrImport = loadModule(cmpMeta, hostRef);
1053
+ const CstrImport = loadModule(cmpMeta);
1140
1054
  if (CstrImport && "then" in CstrImport) {
1141
1055
  const endLoad = uniqueTime();
1142
1056
  Cstr = await CstrImport;
@@ -1161,7 +1075,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1161
1075
  try {
1162
1076
  new Cstr(hostRef);
1163
1077
  } catch (e) {
1164
- consoleError(e, elm);
1078
+ consoleError(e);
1165
1079
  }
1166
1080
  {
1167
1081
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1196,7 +1110,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1196
1110
  schedule();
1197
1111
  }
1198
1112
  };
1199
- var fireConnectedCallback = (instance, elm) => {
1113
+ var fireConnectedCallback = (instance) => {
1200
1114
  };
1201
1115
 
1202
1116
  // src/runtime/connected-callback.ts
@@ -1237,7 +1151,10 @@ var connectedCallback = (elm) => {
1237
1151
  endConnected();
1238
1152
  }
1239
1153
  };
1240
- var disconnectInstance = (instance, elm) => {
1154
+ var disconnectInstance = (instance) => {
1155
+ {
1156
+ safeCall(instance, "disconnectedCallback");
1157
+ }
1241
1158
  };
1242
1159
  var disconnectedCallback = async (elm) => {
1243
1160
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1248,16 +1165,12 @@ var disconnectedCallback = async (elm) => {
1248
1165
  hostRef.$rmListeners$ = void 0;
1249
1166
  }
1250
1167
  }
1251
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1252
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1168
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1169
+ disconnectInstance(hostRef.$lazyInstance$);
1170
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1171
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1253
1172
  }
1254
1173
  }
1255
- if (rootAppliedStyles.has(elm)) {
1256
- rootAppliedStyles.delete(elm);
1257
- }
1258
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1259
- rootAppliedStyles.delete(elm.shadowRoot);
1260
- }
1261
1174
  };
1262
1175
 
1263
1176
  // src/runtime/bootstrap-lazy.ts
@@ -1342,17 +1255,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1342
1255
  }
1343
1256
  disconnectedCallback() {
1344
1257
  plt.jmp(() => disconnectedCallback(this));
1345
- plt.raf(() => {
1346
- var _a3;
1347
- const hostRef = getHostRef(this);
1348
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1349
- if (i2 > -1) {
1350
- deferredConnectedCallbacks.splice(i2, 1);
1351
- }
1352
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1353
- delete hostRef.$vnode$.$elm$;
1354
- }
1355
- });
1356
1258
  }
1357
1259
  componentOnReady() {
1358
1260
  return getHostRef(this).$onReadyPromise$;
@@ -1416,7 +1318,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1416
1318
  }
1417
1319
  }
1418
1320
  } catch (e) {
1419
- consoleError(e, hostRef.$hostElement$);
1321
+ consoleError(e);
1420
1322
  }
1421
1323
  };
1422
1324
  var hostListenerOpts = (flags) => supportsListenerOptions ? {
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-eb2c9562.js');
5
+ const index = require('./index-316ef19a.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["player-user-consents_2.cjs",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"translationUrl":["handleNewTranslations"],"receivedQueryResponses":["handleQueryResponse"]}],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"textContent":[32],"limitStylingAppends":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStylingUrl":["handleStylingUrlChange"]}]]]], options);
11
+ return index.bootstrapLazy([["player-user-consents_2.cjs",[[1,"user-action-controller",{"endpoint":[513],"userSession":[513,"user-session"],"userId":[513,"user-id"],"lang":[1537],"includeSubmitButton":[516,"include-submit-button"],"gmVersion":[1,"gm-version"],"translationUrl":[513,"translation-url"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"mbSource":[513,"mb-source"],"queryFired":[32],"readyActionsCount":[32],"activeUserActions":[32],"userActionsValidated":[32],"receivedQueryResponses":[32],"limitStylingAppends":[32],"isLoading":[32],"mandatoryActionsChecked":[32],"mandatoryItems":[32]},[[0,"userLegislationConsent","userLegislationConsentHandler"]],{"translationUrl":["handleNewTranslations"],"receivedQueryResponses":["handleQueryResponse"]}],[1,"player-user-consents",{"lang":[1537],"queried":[516],"consentType":[513,"consent-type"],"mandatory":[516],"gmVersion":[1,"gm-version"],"consentTitle":[513,"consent-title"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[513,"client-styling-url"],"translationUrl":[513,"translation-url"],"mbSource":[513,"mb-source"],"textContent":[32]},null,{"translationUrl":["handleNewTranslations"],"clientStylingUrl":["handleStylingUrlChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;