@everymatrix/gamification-dropdown 1.56.0 → 1.56.2

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 (43) hide show
  1. package/dist/cjs/{gamification-dropdown-b8288984.js → gamification-dropdown-b61f6455.js} +11 -23
  2. package/dist/cjs/gamification-dropdown.cjs.js +2 -2
  3. package/dist/cjs/gamification-dropdown_4.cjs.entry.js +18 -34
  4. package/dist/cjs/{index-ec2fd1aa.js → index-9f57df89.js} +135 -288
  5. package/dist/cjs/index.cjs.js +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{player-elevate-card-items-a73ef8aa.js → player-elevate-card-items-a64a5a53.js} +1 -1
  8. package/dist/cjs/player-elevate-card.cjs.entry.js +9 -21
  9. package/dist/cjs/player-elevate-pointcard.cjs.entry.js +12 -29
  10. package/dist/collection/collection-manifest.json +2 -2
  11. package/dist/collection/components/gamification-dropdown/gamification-dropdown.js +10 -36
  12. package/dist/esm/{gamification-dropdown-246b88da.js → gamification-dropdown-9a68cf16.js} +11 -23
  13. package/dist/esm/gamification-dropdown.js +3 -3
  14. package/dist/esm/gamification-dropdown_4.entry.js +18 -34
  15. package/dist/esm/{index-30fda5fb.js → index-da41a34a.js} +135 -288
  16. package/dist/esm/index.js +2 -2
  17. package/dist/esm/loader.js +2 -2
  18. package/dist/esm/{player-elevate-card-items-be1e68f1.js → player-elevate-card-items-6cc8ac45.js} +1 -1
  19. package/dist/esm/player-elevate-card.entry.js +9 -21
  20. package/dist/esm/player-elevate-pointcard.entry.js +12 -29
  21. package/dist/gamification-dropdown/gamification-dropdown.esm.js +1 -1
  22. package/dist/gamification-dropdown/index.esm.js +1 -1
  23. package/dist/gamification-dropdown/p-9a95eec2.entry.js +1 -0
  24. package/dist/gamification-dropdown/p-a653bfbd.entry.js +1 -0
  25. package/dist/gamification-dropdown/{p-c3422048.js → p-c36d41e2.js} +1 -1
  26. package/dist/gamification-dropdown/p-d55c742c.entry.js +1 -0
  27. package/dist/gamification-dropdown/p-e2b2faba.js +2 -0
  28. package/dist/gamification-dropdown/p-fcccda48.js +1 -0
  29. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +2 -0
  30. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +2 -0
  31. package/dist/types/stencil-public-runtime.d.ts +0 -6
  32. package/package.json +1 -1
  33. package/dist/gamification-dropdown/p-750bfdce.entry.js +0 -1
  34. package/dist/gamification-dropdown/p-9ccf7a30.js +0 -1
  35. package/dist/gamification-dropdown/p-b06e6dd1.entry.js +0 -1
  36. package/dist/gamification-dropdown/p-d3088e7c.entry.js +0 -1
  37. package/dist/gamification-dropdown/p-dec0ad6f.js +0 -2
  38. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.d.ts +0 -2
  39. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/packages/stencil/gamification-dropdown/stencil.config.dev.d.ts +0 -2
  40. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/index.d.ts +0 -0
  41. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  42. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  43. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/gamification-dropdown/.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 = 'gamification-dropdown';
24
- const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* gamification-dropdown */ { allRenderFn: false, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, 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: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, 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: false, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, 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);
@@ -100,22 +91,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
100
91
  /* webpackExclude: /\.system\.entry\.js$/ */
101
92
  /* webpackMode: "lazy" */
102
93
  `./${bundleId}.entry.js${""}`
103
- )); }).then(
104
- (importedModule) => {
105
- {
106
- cmpModules.set(bundleId, importedModule);
107
- }
108
- return importedModule[exportName];
109
- },
110
- (e) => {
111
- consoleError(e, hostRef.$hostElement$);
94
+ )); }).then((importedModule) => {
95
+ {
96
+ cmpModules.set(bundleId, importedModule);
112
97
  }
113
- );
98
+ return importedModule[exportName];
99
+ }, consoleError);
114
100
  };
115
101
 
116
102
  // src/client/client-style.ts
117
103
  var styles = /* @__PURE__ */ new Map();
118
- var HYDRATED_STYLE_ID = "sty-id";
119
104
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
120
105
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
121
106
  var win = typeof window !== "undefined" ? window : {};
@@ -195,6 +180,14 @@ var getAssetPath = (path) => {
195
180
  const assetUrl = new URL(path, plt.$resourcesUrl$);
196
181
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
197
182
  };
183
+
184
+ // src/utils/constants.ts
185
+ var EMPTY_OBJ = {};
186
+ var SVG_NS = "http://www.w3.org/2000/svg";
187
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
188
+
189
+ // src/utils/helpers.ts
190
+ var isDef = (v) => v != null;
198
191
  var isComplexType = (o) => {
199
192
  o = typeof o;
200
193
  return o === "object" || o === "function";
@@ -254,63 +247,6 @@ var unwrapErr = (result) => {
254
247
  throw result.value;
255
248
  }
256
249
  };
257
- var updateFallbackSlotVisibility = (elm) => {
258
- const childNodes = elm.__childNodes || elm.childNodes;
259
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
260
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
261
- var _a;
262
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
263
- if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
264
- slotNode.hidden = true;
265
- } else {
266
- slotNode.hidden = false;
267
- }
268
- }
269
- });
270
- }
271
- for (const childNode of childNodes) {
272
- if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
273
- updateFallbackSlotVisibility(childNode);
274
- }
275
- }
276
- };
277
- function getHostSlotNodes(childNodes, hostName, slotName) {
278
- let i2 = 0;
279
- let slottedNodes = [];
280
- let childNode;
281
- for (; i2 < childNodes.length; i2++) {
282
- childNode = childNodes[i2];
283
- if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
284
- slottedNodes.push(childNode);
285
- if (typeof slotName !== "undefined") return slottedNodes;
286
- }
287
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
288
- }
289
- return slottedNodes;
290
- }
291
- var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
292
- const childNodes = [];
293
- if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
294
- while ((node = node.nextSibling) && node["s-sn"] === slotName) {
295
- childNodes.push(node);
296
- }
297
- return childNodes;
298
- };
299
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
300
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
301
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
302
- return true;
303
- }
304
- if (nodeToRelocate.getAttribute("slot") === slotName) {
305
- return true;
306
- }
307
- return false;
308
- }
309
- if (nodeToRelocate["s-sn"] === slotName) {
310
- return true;
311
- }
312
- return slotName === "";
313
- };
314
250
  var createTime = (fnName, tagName = "") => {
315
251
  {
316
252
  return () => {
@@ -496,40 +432,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
496
432
  }
497
433
  if (!appliedStyles.has(scopeId2)) {
498
434
  {
499
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
435
+ styleElm = doc.createElement("style");
500
436
  styleElm.innerHTML = style;
501
437
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
502
438
  if (nonce != null) {
503
439
  styleElm.setAttribute("nonce", nonce);
504
440
  }
505
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
506
- if (styleContainerNode.nodeName === "HEAD") {
507
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
508
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
509
- styleContainerNode.insertBefore(
510
- styleElm,
511
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
512
- );
513
- } else if ("host" in styleContainerNode) {
514
- if (supportsConstructableStylesheets) {
515
- const stylesheet = new CSSStyleSheet();
516
- stylesheet.replaceSync(style);
517
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
518
- } else {
519
- const existingStyleContainer = styleContainerNode.querySelector("style");
520
- if (existingStyleContainer) {
521
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
522
- } else {
523
- styleContainerNode.prepend(styleElm);
524
- }
525
- }
526
- } else {
527
- styleContainerNode.append(styleElm);
528
- }
529
- }
530
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
531
- styleContainerNode.insertBefore(styleElm, null);
532
- }
441
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
533
442
  }
534
443
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
535
444
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -552,25 +461,23 @@ var attachStyles = (hostRef) => {
552
461
  const scopeId2 = addStyle(
553
462
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
554
463
  cmpMeta);
555
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
464
+ if (flags & 10 /* needsScopedEncapsulation */) {
556
465
  elm["s-sc"] = scopeId2;
557
466
  elm.classList.add(scopeId2 + "-h");
558
467
  }
559
468
  endAttachStyles();
560
469
  };
561
470
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
562
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
471
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
563
472
  if (oldValue !== newValue) {
564
473
  let isProp = isMemberInElement(elm, memberName);
565
474
  let ln = memberName.toLowerCase();
566
475
  if (memberName === "class") {
567
476
  const classList = elm.classList;
568
477
  const oldClasses = parseClassList(oldValue);
569
- let newClasses = parseClassList(newValue);
570
- {
571
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
572
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
573
- }
478
+ const newClasses = parseClassList(newValue);
479
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
480
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
574
481
  } else if (memberName === "style") {
575
482
  {
576
483
  for (const prop in oldValue) {
@@ -623,13 +530,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
623
530
  if (memberName === "list") {
624
531
  isProp = false;
625
532
  } else if (oldValue == null || elm[memberName] != n) {
626
- if (typeof elm.__lookupSetter__(memberName) === "function") {
627
- elm[memberName] = n;
628
- } else {
629
- elm.setAttribute(memberName, n);
630
- }
533
+ elm[memberName] = n;
631
534
  }
632
- } else if (elm[memberName] !== newValue) {
535
+ } else {
633
536
  elm[memberName] = newValue;
634
537
  }
635
538
  } catch (e) {
@@ -651,44 +554,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
651
554
  }
652
555
  };
653
556
  var parseClassListRegex = /\s/;
654
- var parseClassList = (value) => {
655
- if (typeof value === "object" && value && "baseVal" in value) {
656
- value = value.baseVal;
657
- }
658
- if (!value || typeof value !== "string") {
659
- return [];
660
- }
661
- return value.split(parseClassListRegex);
662
- };
557
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
663
558
  var CAPTURE_EVENT_SUFFIX = "Capture";
664
559
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
665
560
 
666
561
  // src/runtime/vdom/update-element.ts
667
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
562
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
668
563
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
669
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
670
- const newVnodeAttrs = newVnode.$attrs$ || {};
564
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
565
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
671
566
  {
672
567
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
673
568
  if (!(memberName in newVnodeAttrs)) {
674
- setAccessor(
675
- elm,
676
- memberName,
677
- oldVnodeAttrs[memberName],
678
- void 0,
679
- isSvgMode2,
680
- newVnode.$flags$);
569
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
681
570
  }
682
571
  }
683
572
  }
684
573
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
685
- setAccessor(
686
- elm,
687
- memberName,
688
- oldVnodeAttrs[memberName],
689
- newVnodeAttrs[memberName],
690
- isSvgMode2,
691
- newVnode.$flags$);
574
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
692
575
  }
693
576
  };
694
577
  function sortedAttrNames(attrNames) {
@@ -700,13 +583,16 @@ function sortedAttrNames(attrNames) {
700
583
  attrNames
701
584
  );
702
585
  }
586
+
587
+ // src/runtime/vdom/vdom-render.ts
588
+ var scopeId;
703
589
  var contentRef;
704
590
  var hostTagName;
705
591
  var useNativeShadowDom = false;
706
592
  var checkSlotFallbackVisibility = false;
707
593
  var checkSlotRelocate = false;
708
594
  var isSvgMode = false;
709
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
595
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
710
596
  var _a;
711
597
  const newVNode2 = newParentVNode.$children$[childIndex];
712
598
  let i2 = 0;
@@ -716,6 +602,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
716
602
  if (!useNativeShadowDom) {
717
603
  checkSlotRelocate = true;
718
604
  if (newVNode2.$tag$ === "slot") {
605
+ if (scopeId) {
606
+ parentElm.classList.add(scopeId + "-s");
607
+ }
719
608
  newVNode2.$flags$ |= newVNode2.$children$ ? (
720
609
  // slot element has fallback content
721
610
  // still create an element that "mocks" the slot element
@@ -746,9 +635,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
746
635
  {
747
636
  updateElement(null, newVNode2, isSvgMode);
748
637
  }
638
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
639
+ elm.classList.add(elm["s-si"] = scopeId);
640
+ }
749
641
  if (newVNode2.$children$) {
750
642
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
751
- childNode = createElm(oldParentVNode, newVNode2, i2);
643
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
752
644
  if (childNode) {
753
645
  elm.appendChild(childNode);
754
646
  }
@@ -781,7 +673,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
781
673
  };
782
674
  var putBackInOriginalLocation = (parentElm, recursive) => {
783
675
  plt.$flags$ |= 1 /* isTmpDisconnected */;
784
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
676
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
785
677
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
786
678
  let node = parentElm;
787
679
  while (node = node.nextSibling) {
@@ -793,7 +685,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
793
685
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
794
686
  const childNode = oldSlotChildNodes[i2];
795
687
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
796
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
688
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
797
689
  childNode["s-ol"].remove();
798
690
  childNode["s-ol"] = void 0;
799
691
  childNode["s-sh"] = void 0;
@@ -813,7 +705,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
813
705
  }
814
706
  for (; startIdx <= endIdx; ++startIdx) {
815
707
  if (vnodes[startIdx]) {
816
- childNode = createElm(null, parentVNode, startIdx);
708
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
817
709
  if (childNode) {
818
710
  vnodes[startIdx].$elm$ = childNode;
819
711
  insertBefore(containerElm, childNode, referenceNode(before) );
@@ -900,7 +792,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
900
792
  if (idxInOld >= 0) {
901
793
  elmToMove = oldCh[idxInOld];
902
794
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
903
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
795
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
904
796
  } else {
905
797
  patch(elmToMove, newStartVnode, isInitialRender);
906
798
  oldCh[idxInOld] = void 0;
@@ -908,16 +800,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
908
800
  }
909
801
  newStartVnode = newCh[++newStartIdx];
910
802
  } else {
911
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
803
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
912
804
  newStartVnode = newCh[++newStartIdx];
913
805
  }
914
806
  if (node) {
915
807
  {
916
- insertBefore(
917
- referenceNode(oldStartVnode.$elm$).parentNode,
918
- node,
919
- referenceNode(oldStartVnode.$elm$)
920
- );
808
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
921
809
  }
922
810
  }
923
811
  }
@@ -943,14 +831,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
943
831
  if (!isInitialRender) {
944
832
  return leftVNode.$key$ === rightVNode.$key$;
945
833
  }
946
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
947
- leftVNode.$key$ = rightVNode.$key$;
948
- }
949
834
  return true;
950
835
  }
951
836
  return false;
952
837
  };
953
- var referenceNode = (node) => node && node["s-ol"] || node;
838
+ var referenceNode = (node) => {
839
+ return node && node["s-ol"] || node;
840
+ };
841
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
954
842
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
955
843
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
956
844
  const oldChildren = oldVNode.$children$;
@@ -974,10 +862,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
974
862
  elm.textContent = "";
975
863
  }
976
864
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
977
- } else if (
978
- // don't do this on initial render as it can cause non-hydrated content to be removed
979
- !isInitialRender && BUILD.updatable && oldChildren !== null
980
- ) {
865
+ } else if (oldChildren !== null) {
981
866
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
982
867
  }
983
868
  if (isSvgMode && tag === "svg") {
@@ -989,15 +874,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
989
874
  elm.data = text;
990
875
  }
991
876
  };
877
+ var updateFallbackSlotVisibility = (elm) => {
878
+ const childNodes = elm.childNodes;
879
+ for (const childNode of childNodes) {
880
+ if (childNode.nodeType === 1 /* ElementNode */) {
881
+ if (childNode["s-sr"]) {
882
+ const slotName = childNode["s-sn"];
883
+ childNode.hidden = false;
884
+ for (const siblingNode of childNodes) {
885
+ if (siblingNode !== childNode) {
886
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
887
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
888
+ childNode.hidden = true;
889
+ break;
890
+ }
891
+ } else {
892
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
893
+ childNode.hidden = true;
894
+ break;
895
+ }
896
+ }
897
+ }
898
+ }
899
+ }
900
+ updateFallbackSlotVisibility(childNode);
901
+ }
902
+ }
903
+ };
992
904
  var relocateNodes = [];
993
905
  var markSlotContentForRelocation = (elm) => {
994
906
  let node;
995
907
  let hostContentNodes;
996
908
  let j;
997
- const children = elm.__childNodes || elm.childNodes;
998
- for (const childNode of children) {
909
+ for (const childNode of elm.childNodes) {
999
910
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
1000
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
911
+ hostContentNodes = node.parentNode.childNodes;
1001
912
  const slotName = childNode["s-sn"];
1002
913
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
1003
914
  node = hostContentNodes[j];
@@ -1039,6 +950,21 @@ var markSlotContentForRelocation = (elm) => {
1039
950
  }
1040
951
  }
1041
952
  };
953
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
954
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
955
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
956
+ return true;
957
+ }
958
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
959
+ return true;
960
+ }
961
+ return false;
962
+ }
963
+ if (nodeToRelocate["s-sn"] === slotName) {
964
+ return true;
965
+ }
966
+ return slotName === "";
967
+ };
1042
968
  var nullifyVNodeRefs = (vNode) => {
1043
969
  {
1044
970
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1046,9 +972,8 @@ var nullifyVNodeRefs = (vNode) => {
1046
972
  }
1047
973
  };
1048
974
  var insertBefore = (parent, newNode, reference) => {
1049
- {
1050
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1051
- }
975
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
976
+ return inserted;
1052
977
  };
1053
978
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1054
979
  var _a, _b, _c, _d;
@@ -1074,7 +999,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1074
999
  rootVnode.$flags$ |= 4 /* isHost */;
1075
1000
  hostRef.$vnode$ = rootVnode;
1076
1001
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1077
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
1002
+ {
1003
+ scopeId = hostElm["s-sc"];
1004
+ }
1005
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1078
1006
  {
1079
1007
  contentRef = hostElm["s-cr"];
1080
1008
  checkSlotFallbackVisibility = false;
@@ -1102,7 +1030,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1102
1030
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1103
1031
  while (orgLocationNode) {
1104
1032
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1105
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1033
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1106
1034
  refNode = refNode.nextSibling;
1107
1035
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1108
1036
  refNode = refNode == null ? void 0 : refNode.nextSibling;
@@ -1115,15 +1043,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1115
1043
  orgLocationNode = orgLocationNode.previousSibling;
1116
1044
  }
1117
1045
  }
1118
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1119
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1120
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1046
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1121
1047
  if (nodeToRelocate !== insertBeforeNode) {
1122
1048
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1123
1049
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1124
1050
  }
1125
1051
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1126
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1052
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1127
1053
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1128
1054
  }
1129
1055
  }
@@ -1151,14 +1077,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1151
1077
  // src/runtime/update-component.ts
1152
1078
  var attachToAncestor = (hostRef, ancestorComponent) => {
1153
1079
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1154
- const index = ancestorComponent["s-p"].push(
1155
- new Promise(
1156
- (r) => hostRef.$onRenderResolve$ = () => {
1157
- ancestorComponent["s-p"].splice(index - 1, 1);
1158
- r();
1159
- }
1160
- )
1161
- );
1080
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1162
1081
  }
1163
1082
  };
1164
1083
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1187,12 +1106,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1187
1106
  {
1188
1107
  hostRef.$flags$ |= 256 /* isListenReady */;
1189
1108
  if (hostRef.$queuedListeners$) {
1190
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1109
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1191
1110
  hostRef.$queuedListeners$ = void 0;
1192
1111
  }
1193
1112
  }
1194
1113
  {
1195
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1114
+ maybePromise = safeCall(instance, "componentWillLoad");
1196
1115
  }
1197
1116
  }
1198
1117
  endSchedule();
@@ -1261,7 +1180,7 @@ var postUpdateComponent = (hostRef) => {
1261
1180
  const instance = hostRef.$lazyInstance$ ;
1262
1181
  const ancestorComponent = hostRef.$ancestorComponent$;
1263
1182
  {
1264
- safeCall(instance, "componentDidRender", void 0, elm);
1183
+ safeCall(instance, "componentDidRender");
1265
1184
  }
1266
1185
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1267
1186
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -1269,7 +1188,7 @@ var postUpdateComponent = (hostRef) => {
1269
1188
  addHydratedFlag(elm);
1270
1189
  }
1271
1190
  {
1272
- safeCall(instance, "componentDidLoad", void 0, elm);
1191
+ safeCall(instance, "componentDidLoad");
1273
1192
  }
1274
1193
  endPostUpdate();
1275
1194
  {
@@ -1293,14 +1212,17 @@ var postUpdateComponent = (hostRef) => {
1293
1212
  }
1294
1213
  };
1295
1214
  var appDidLoad = (who) => {
1215
+ {
1216
+ addHydratedFlag(doc.documentElement);
1217
+ }
1296
1218
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1297
1219
  };
1298
- var safeCall = (instance, method, arg, elm) => {
1220
+ var safeCall = (instance, method, arg) => {
1299
1221
  if (instance && instance[method]) {
1300
1222
  try {
1301
1223
  return instance[method](arg);
1302
1224
  } catch (e) {
1303
- consoleError(e, elm);
1225
+ consoleError(e);
1304
1226
  }
1305
1227
  }
1306
1228
  return void 0;
@@ -1359,68 +1281,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1359
1281
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1360
1282
  members.map(([memberName, [memberFlags]]) => {
1361
1283
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1362
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1363
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1364
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1365
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1366
- Object.defineProperty(prototype, memberName, {
1367
- get() {
1368
- {
1369
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1370
- return getValue(this, memberName);
1371
- }
1372
- const ref = getHostRef(this);
1373
- const instance = ref ? ref.$lazyInstance$ : prototype;
1374
- if (!instance) return;
1375
- return instance[memberName];
1376
- }
1377
- },
1378
- configurable: true,
1379
- enumerable: true
1380
- });
1381
- }
1382
1284
  Object.defineProperty(prototype, memberName, {
1285
+ get() {
1286
+ return getValue(this, memberName);
1287
+ },
1383
1288
  set(newValue) {
1384
- const ref = getHostRef(this);
1385
- if (origSetter) {
1386
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1387
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1388
- newValue = ref.$instanceValues$.get(memberName);
1389
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1390
- ref.$instanceValues$.set(memberName, currentValue);
1391
- }
1392
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1393
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1394
- setValue(this, memberName, newValue, cmpMeta);
1395
- return;
1396
- }
1397
- {
1398
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1399
- setValue(this, memberName, newValue, cmpMeta);
1400
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1401
- ref.$onReadyPromise$.then(() => {
1402
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1403
- ref.$lazyInstance$[memberName] = newValue;
1404
- }
1405
- });
1406
- }
1407
- return;
1408
- }
1409
- const setterSetVal = () => {
1410
- const currentValue = ref.$lazyInstance$[memberName];
1411
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1412
- ref.$instanceValues$.set(memberName, currentValue);
1413
- }
1414
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1415
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1416
- };
1417
- if (ref.$lazyInstance$) {
1418
- setterSetVal();
1419
- } else {
1420
- ref.$onReadyPromise$.then(() => setterSetVal());
1421
- }
1422
- }
1423
- }
1289
+ setValue(this, memberName, newValue, cmpMeta);
1290
+ },
1291
+ configurable: true,
1292
+ enumerable: true
1424
1293
  });
1425
1294
  }
1426
1295
  });
@@ -1430,11 +1299,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1430
1299
  plt.jmp(() => {
1431
1300
  var _a2;
1432
1301
  const propName = attrNameToPropName.get(attrName);
1433
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1302
+ if (this.hasOwnProperty(propName)) {
1434
1303
  newValue = this[propName];
1435
1304
  delete this[propName];
1436
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1437
- this[propName] == newValue) {
1305
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1438
1306
  return;
1439
1307
  } else if (propName == null) {
1440
1308
  const hostRef = getHostRef(this);
@@ -1450,11 +1318,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1450
1318
  }
1451
1319
  return;
1452
1320
  }
1453
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1454
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1455
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1456
- this[propName] = newValue;
1457
- }
1321
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1458
1322
  });
1459
1323
  };
1460
1324
  Cstr.observedAttributes = Array.from(
@@ -1483,7 +1347,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1483
1347
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1484
1348
  const bundleId = cmpMeta.$lazyBundleId$;
1485
1349
  if (bundleId) {
1486
- const CstrImport = loadModule(cmpMeta, hostRef);
1350
+ const CstrImport = loadModule(cmpMeta);
1487
1351
  if (CstrImport && "then" in CstrImport) {
1488
1352
  const endLoad = uniqueTime();
1489
1353
  Cstr = await CstrImport;
@@ -1508,7 +1372,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1508
1372
  try {
1509
1373
  new Cstr(hostRef);
1510
1374
  } catch (e) {
1511
- consoleError(e, elm);
1375
+ consoleError(e);
1512
1376
  }
1513
1377
  {
1514
1378
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1543,7 +1407,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1543
1407
  schedule();
1544
1408
  }
1545
1409
  };
1546
- var fireConnectedCallback = (instance, elm) => {
1410
+ var fireConnectedCallback = (instance) => {
1547
1411
  };
1548
1412
 
1549
1413
  // src/runtime/connected-callback.ts
@@ -1597,9 +1461,9 @@ var setContentReference = (elm) => {
1597
1461
  contentRefElm["s-cn"] = true;
1598
1462
  insertBefore(elm, contentRefElm, elm.firstChild);
1599
1463
  };
1600
- var disconnectInstance = (instance, elm) => {
1464
+ var disconnectInstance = (instance) => {
1601
1465
  {
1602
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1466
+ safeCall(instance, "disconnectedCallback");
1603
1467
  }
1604
1468
  };
1605
1469
  var disconnectedCallback = async (elm) => {
@@ -1612,17 +1476,11 @@ var disconnectedCallback = async (elm) => {
1612
1476
  }
1613
1477
  }
1614
1478
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1615
- disconnectInstance(hostRef.$lazyInstance$, elm);
1479
+ disconnectInstance(hostRef.$lazyInstance$);
1616
1480
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1617
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1481
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1618
1482
  }
1619
1483
  }
1620
- if (rootAppliedStyles.has(elm)) {
1621
- rootAppliedStyles.delete(elm);
1622
- }
1623
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1624
- rootAppliedStyles.delete(elm.shadowRoot);
1625
- }
1626
1484
  };
1627
1485
 
1628
1486
  // src/runtime/bootstrap-lazy.ts
@@ -1707,17 +1565,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1707
1565
  }
1708
1566
  disconnectedCallback() {
1709
1567
  plt.jmp(() => disconnectedCallback(this));
1710
- plt.raf(() => {
1711
- var _a3;
1712
- const hostRef = getHostRef(this);
1713
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1714
- if (i2 > -1) {
1715
- deferredConnectedCallbacks.splice(i2, 1);
1716
- }
1717
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1718
- delete hostRef.$vnode$.$elm$;
1719
- }
1720
- });
1721
1568
  }
1722
1569
  componentOnReady() {
1723
1570
  return getHostRef(this).$onReadyPromise$;
@@ -1784,7 +1631,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1784
1631
  }
1785
1632
  }
1786
1633
  } catch (e) {
1787
- consoleError(e, hostRef.$hostElement$);
1634
+ consoleError(e);
1788
1635
  }
1789
1636
  };
1790
1637
  var getHostListenerTarget = (elm, flags) => {