@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
@@ -1,25 +1,17 @@
1
1
  const NAMESPACE = 'gamification-dropdown';
2
- 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 };
2
+ 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
-
13
- // src/utils/constants.ts
14
- var SVG_NS = "http://www.w3.org/2000/svg";
15
- var HTML_NS = "http://www.w3.org/1999/xhtml";
16
-
17
- // src/client/client-host-ref.ts
18
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
19
13
  var getHostRef = (ref) => hostRefs.get(ref);
20
- var registerInstance = (lazyInstance, hostRef) => {
21
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
23
15
  var registerHost = (hostElement, cmpMeta) => {
24
16
  const hostRef = {
25
17
  $flags$: 0,
@@ -32,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
32
24
  hostElement["s-p"] = [];
33
25
  hostElement["s-rc"] = [];
34
26
  }
35
- const ref = hostRefs.set(hostElement, hostRef);
36
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
37
28
  };
38
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
39
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -78,22 +69,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
78
69
  /* webpackExclude: /\.system\.entry\.js$/ */
79
70
  /* webpackMode: "lazy" */
80
71
  `./${bundleId}.entry.js${""}`
81
- ).then(
82
- (importedModule) => {
83
- {
84
- cmpModules.set(bundleId, importedModule);
85
- }
86
- return importedModule[exportName];
87
- },
88
- (e) => {
89
- consoleError(e, hostRef.$hostElement$);
72
+ ).then((importedModule) => {
73
+ {
74
+ cmpModules.set(bundleId, importedModule);
90
75
  }
91
- );
76
+ return importedModule[exportName];
77
+ }, consoleError);
92
78
  };
93
79
 
94
80
  // src/client/client-style.ts
95
81
  var styles = /* @__PURE__ */ new Map();
96
- var HYDRATED_STYLE_ID = "sty-id";
97
82
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
98
83
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
99
84
  var win = typeof window !== "undefined" ? window : {};
@@ -173,6 +158,14 @@ var getAssetPath = (path) => {
173
158
  const assetUrl = new URL(path, plt.$resourcesUrl$);
174
159
  return assetUrl.origin !== win.location.origin ? assetUrl.href : assetUrl.pathname;
175
160
  };
161
+
162
+ // src/utils/constants.ts
163
+ var EMPTY_OBJ = {};
164
+ var SVG_NS = "http://www.w3.org/2000/svg";
165
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
166
+
167
+ // src/utils/helpers.ts
168
+ var isDef = (v) => v != null;
176
169
  var isComplexType = (o) => {
177
170
  o = typeof o;
178
171
  return o === "object" || o === "function";
@@ -232,63 +225,6 @@ var unwrapErr = (result) => {
232
225
  throw result.value;
233
226
  }
234
227
  };
235
- var updateFallbackSlotVisibility = (elm) => {
236
- const childNodes = elm.__childNodes || elm.childNodes;
237
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
238
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
239
- var _a;
240
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
241
- if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
242
- slotNode.hidden = true;
243
- } else {
244
- slotNode.hidden = false;
245
- }
246
- }
247
- });
248
- }
249
- for (const childNode of childNodes) {
250
- if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
251
- updateFallbackSlotVisibility(childNode);
252
- }
253
- }
254
- };
255
- function getHostSlotNodes(childNodes, hostName, slotName) {
256
- let i2 = 0;
257
- let slottedNodes = [];
258
- let childNode;
259
- for (; i2 < childNodes.length; i2++) {
260
- childNode = childNodes[i2];
261
- if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
262
- slottedNodes.push(childNode);
263
- if (typeof slotName !== "undefined") return slottedNodes;
264
- }
265
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
266
- }
267
- return slottedNodes;
268
- }
269
- var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
270
- const childNodes = [];
271
- if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
272
- while ((node = node.nextSibling) && node["s-sn"] === slotName) {
273
- childNodes.push(node);
274
- }
275
- return childNodes;
276
- };
277
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
278
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
279
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
280
- return true;
281
- }
282
- if (nodeToRelocate.getAttribute("slot") === slotName) {
283
- return true;
284
- }
285
- return false;
286
- }
287
- if (nodeToRelocate["s-sn"] === slotName) {
288
- return true;
289
- }
290
- return slotName === "";
291
- };
292
228
  var createTime = (fnName, tagName = "") => {
293
229
  {
294
230
  return () => {
@@ -474,40 +410,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
474
410
  }
475
411
  if (!appliedStyles.has(scopeId2)) {
476
412
  {
477
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
413
+ styleElm = doc.createElement("style");
478
414
  styleElm.innerHTML = style;
479
415
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
480
416
  if (nonce != null) {
481
417
  styleElm.setAttribute("nonce", nonce);
482
418
  }
483
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
484
- if (styleContainerNode.nodeName === "HEAD") {
485
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
486
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
487
- styleContainerNode.insertBefore(
488
- styleElm,
489
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
490
- );
491
- } else if ("host" in styleContainerNode) {
492
- if (supportsConstructableStylesheets) {
493
- const stylesheet = new CSSStyleSheet();
494
- stylesheet.replaceSync(style);
495
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
496
- } else {
497
- const existingStyleContainer = styleContainerNode.querySelector("style");
498
- if (existingStyleContainer) {
499
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
500
- } else {
501
- styleContainerNode.prepend(styleElm);
502
- }
503
- }
504
- } else {
505
- styleContainerNode.append(styleElm);
506
- }
507
- }
508
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
509
- styleContainerNode.insertBefore(styleElm, null);
510
- }
419
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
511
420
  }
512
421
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
513
422
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -530,25 +439,23 @@ var attachStyles = (hostRef) => {
530
439
  const scopeId2 = addStyle(
531
440
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
532
441
  cmpMeta);
533
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
442
+ if (flags & 10 /* needsScopedEncapsulation */) {
534
443
  elm["s-sc"] = scopeId2;
535
444
  elm.classList.add(scopeId2 + "-h");
536
445
  }
537
446
  endAttachStyles();
538
447
  };
539
448
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
540
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
449
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
541
450
  if (oldValue !== newValue) {
542
451
  let isProp = isMemberInElement(elm, memberName);
543
452
  let ln = memberName.toLowerCase();
544
453
  if (memberName === "class") {
545
454
  const classList = elm.classList;
546
455
  const oldClasses = parseClassList(oldValue);
547
- let newClasses = parseClassList(newValue);
548
- {
549
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
550
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
551
- }
456
+ const newClasses = parseClassList(newValue);
457
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
458
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
552
459
  } else if (memberName === "style") {
553
460
  {
554
461
  for (const prop in oldValue) {
@@ -601,13 +508,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
601
508
  if (memberName === "list") {
602
509
  isProp = false;
603
510
  } else if (oldValue == null || elm[memberName] != n) {
604
- if (typeof elm.__lookupSetter__(memberName) === "function") {
605
- elm[memberName] = n;
606
- } else {
607
- elm.setAttribute(memberName, n);
608
- }
511
+ elm[memberName] = n;
609
512
  }
610
- } else if (elm[memberName] !== newValue) {
513
+ } else {
611
514
  elm[memberName] = newValue;
612
515
  }
613
516
  } catch (e) {
@@ -629,44 +532,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
629
532
  }
630
533
  };
631
534
  var parseClassListRegex = /\s/;
632
- var parseClassList = (value) => {
633
- if (typeof value === "object" && value && "baseVal" in value) {
634
- value = value.baseVal;
635
- }
636
- if (!value || typeof value !== "string") {
637
- return [];
638
- }
639
- return value.split(parseClassListRegex);
640
- };
535
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
641
536
  var CAPTURE_EVENT_SUFFIX = "Capture";
642
537
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
643
538
 
644
539
  // src/runtime/vdom/update-element.ts
645
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
540
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
646
541
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
647
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
648
- const newVnodeAttrs = newVnode.$attrs$ || {};
542
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
543
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
649
544
  {
650
545
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
651
546
  if (!(memberName in newVnodeAttrs)) {
652
- setAccessor(
653
- elm,
654
- memberName,
655
- oldVnodeAttrs[memberName],
656
- void 0,
657
- isSvgMode2,
658
- newVnode.$flags$);
547
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
659
548
  }
660
549
  }
661
550
  }
662
551
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
663
- setAccessor(
664
- elm,
665
- memberName,
666
- oldVnodeAttrs[memberName],
667
- newVnodeAttrs[memberName],
668
- isSvgMode2,
669
- newVnode.$flags$);
552
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
670
553
  }
671
554
  };
672
555
  function sortedAttrNames(attrNames) {
@@ -678,13 +561,16 @@ function sortedAttrNames(attrNames) {
678
561
  attrNames
679
562
  );
680
563
  }
564
+
565
+ // src/runtime/vdom/vdom-render.ts
566
+ var scopeId;
681
567
  var contentRef;
682
568
  var hostTagName;
683
569
  var useNativeShadowDom = false;
684
570
  var checkSlotFallbackVisibility = false;
685
571
  var checkSlotRelocate = false;
686
572
  var isSvgMode = false;
687
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
573
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
688
574
  var _a;
689
575
  const newVNode2 = newParentVNode.$children$[childIndex];
690
576
  let i2 = 0;
@@ -694,6 +580,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
694
580
  if (!useNativeShadowDom) {
695
581
  checkSlotRelocate = true;
696
582
  if (newVNode2.$tag$ === "slot") {
583
+ if (scopeId) {
584
+ parentElm.classList.add(scopeId + "-s");
585
+ }
697
586
  newVNode2.$flags$ |= newVNode2.$children$ ? (
698
587
  // slot element has fallback content
699
588
  // still create an element that "mocks" the slot element
@@ -724,9 +613,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
724
613
  {
725
614
  updateElement(null, newVNode2, isSvgMode);
726
615
  }
616
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
617
+ elm.classList.add(elm["s-si"] = scopeId);
618
+ }
727
619
  if (newVNode2.$children$) {
728
620
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
729
- childNode = createElm(oldParentVNode, newVNode2, i2);
621
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
730
622
  if (childNode) {
731
623
  elm.appendChild(childNode);
732
624
  }
@@ -759,7 +651,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
759
651
  };
760
652
  var putBackInOriginalLocation = (parentElm, recursive) => {
761
653
  plt.$flags$ |= 1 /* isTmpDisconnected */;
762
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
654
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
763
655
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
764
656
  let node = parentElm;
765
657
  while (node = node.nextSibling) {
@@ -771,7 +663,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
771
663
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
772
664
  const childNode = oldSlotChildNodes[i2];
773
665
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
774
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
666
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
775
667
  childNode["s-ol"].remove();
776
668
  childNode["s-ol"] = void 0;
777
669
  childNode["s-sh"] = void 0;
@@ -791,7 +683,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
791
683
  }
792
684
  for (; startIdx <= endIdx; ++startIdx) {
793
685
  if (vnodes[startIdx]) {
794
- childNode = createElm(null, parentVNode, startIdx);
686
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
795
687
  if (childNode) {
796
688
  vnodes[startIdx].$elm$ = childNode;
797
689
  insertBefore(containerElm, childNode, referenceNode(before) );
@@ -878,7 +770,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
878
770
  if (idxInOld >= 0) {
879
771
  elmToMove = oldCh[idxInOld];
880
772
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
881
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
773
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
882
774
  } else {
883
775
  patch(elmToMove, newStartVnode, isInitialRender);
884
776
  oldCh[idxInOld] = void 0;
@@ -886,16 +778,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
886
778
  }
887
779
  newStartVnode = newCh[++newStartIdx];
888
780
  } else {
889
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
781
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
890
782
  newStartVnode = newCh[++newStartIdx];
891
783
  }
892
784
  if (node) {
893
785
  {
894
- insertBefore(
895
- referenceNode(oldStartVnode.$elm$).parentNode,
896
- node,
897
- referenceNode(oldStartVnode.$elm$)
898
- );
786
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
899
787
  }
900
788
  }
901
789
  }
@@ -921,14 +809,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
921
809
  if (!isInitialRender) {
922
810
  return leftVNode.$key$ === rightVNode.$key$;
923
811
  }
924
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
925
- leftVNode.$key$ = rightVNode.$key$;
926
- }
927
812
  return true;
928
813
  }
929
814
  return false;
930
815
  };
931
- var referenceNode = (node) => node && node["s-ol"] || node;
816
+ var referenceNode = (node) => {
817
+ return node && node["s-ol"] || node;
818
+ };
819
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
932
820
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
933
821
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
934
822
  const oldChildren = oldVNode.$children$;
@@ -952,10 +840,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
952
840
  elm.textContent = "";
953
841
  }
954
842
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
955
- } else if (
956
- // don't do this on initial render as it can cause non-hydrated content to be removed
957
- !isInitialRender && BUILD.updatable && oldChildren !== null
958
- ) {
843
+ } else if (oldChildren !== null) {
959
844
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
960
845
  }
961
846
  if (isSvgMode && tag === "svg") {
@@ -967,15 +852,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
967
852
  elm.data = text;
968
853
  }
969
854
  };
855
+ var updateFallbackSlotVisibility = (elm) => {
856
+ const childNodes = elm.childNodes;
857
+ for (const childNode of childNodes) {
858
+ if (childNode.nodeType === 1 /* ElementNode */) {
859
+ if (childNode["s-sr"]) {
860
+ const slotName = childNode["s-sn"];
861
+ childNode.hidden = false;
862
+ for (const siblingNode of childNodes) {
863
+ if (siblingNode !== childNode) {
864
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
865
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
866
+ childNode.hidden = true;
867
+ break;
868
+ }
869
+ } else {
870
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
871
+ childNode.hidden = true;
872
+ break;
873
+ }
874
+ }
875
+ }
876
+ }
877
+ }
878
+ updateFallbackSlotVisibility(childNode);
879
+ }
880
+ }
881
+ };
970
882
  var relocateNodes = [];
971
883
  var markSlotContentForRelocation = (elm) => {
972
884
  let node;
973
885
  let hostContentNodes;
974
886
  let j;
975
- const children = elm.__childNodes || elm.childNodes;
976
- for (const childNode of children) {
887
+ for (const childNode of elm.childNodes) {
977
888
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
978
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
889
+ hostContentNodes = node.parentNode.childNodes;
979
890
  const slotName = childNode["s-sn"];
980
891
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
981
892
  node = hostContentNodes[j];
@@ -1017,6 +928,21 @@ var markSlotContentForRelocation = (elm) => {
1017
928
  }
1018
929
  }
1019
930
  };
931
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
932
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
933
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
934
+ return true;
935
+ }
936
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
937
+ return true;
938
+ }
939
+ return false;
940
+ }
941
+ if (nodeToRelocate["s-sn"] === slotName) {
942
+ return true;
943
+ }
944
+ return slotName === "";
945
+ };
1020
946
  var nullifyVNodeRefs = (vNode) => {
1021
947
  {
1022
948
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1024,9 +950,8 @@ var nullifyVNodeRefs = (vNode) => {
1024
950
  }
1025
951
  };
1026
952
  var insertBefore = (parent, newNode, reference) => {
1027
- {
1028
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1029
- }
953
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
954
+ return inserted;
1030
955
  };
1031
956
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1032
957
  var _a, _b, _c, _d;
@@ -1052,7 +977,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1052
977
  rootVnode.$flags$ |= 4 /* isHost */;
1053
978
  hostRef.$vnode$ = rootVnode;
1054
979
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1055
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
980
+ {
981
+ scopeId = hostElm["s-sc"];
982
+ }
983
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1056
984
  {
1057
985
  contentRef = hostElm["s-cr"];
1058
986
  checkSlotFallbackVisibility = false;
@@ -1080,7 +1008,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1080
1008
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1081
1009
  while (orgLocationNode) {
1082
1010
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1083
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
1011
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1084
1012
  refNode = refNode.nextSibling;
1085
1013
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1086
1014
  refNode = refNode == null ? void 0 : refNode.nextSibling;
@@ -1093,15 +1021,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1093
1021
  orgLocationNode = orgLocationNode.previousSibling;
1094
1022
  }
1095
1023
  }
1096
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1097
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1098
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1024
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1099
1025
  if (nodeToRelocate !== insertBeforeNode) {
1100
1026
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1101
1027
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1102
1028
  }
1103
1029
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1104
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1030
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1105
1031
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1106
1032
  }
1107
1033
  }
@@ -1129,14 +1055,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1129
1055
  // src/runtime/update-component.ts
1130
1056
  var attachToAncestor = (hostRef, ancestorComponent) => {
1131
1057
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1132
- const index = ancestorComponent["s-p"].push(
1133
- new Promise(
1134
- (r) => hostRef.$onRenderResolve$ = () => {
1135
- ancestorComponent["s-p"].splice(index - 1, 1);
1136
- r();
1137
- }
1138
- )
1139
- );
1058
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1140
1059
  }
1141
1060
  };
1142
1061
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1165,12 +1084,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1165
1084
  {
1166
1085
  hostRef.$flags$ |= 256 /* isListenReady */;
1167
1086
  if (hostRef.$queuedListeners$) {
1168
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
1087
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
1169
1088
  hostRef.$queuedListeners$ = void 0;
1170
1089
  }
1171
1090
  }
1172
1091
  {
1173
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1092
+ maybePromise = safeCall(instance, "componentWillLoad");
1174
1093
  }
1175
1094
  }
1176
1095
  endSchedule();
@@ -1239,7 +1158,7 @@ var postUpdateComponent = (hostRef) => {
1239
1158
  const instance = hostRef.$lazyInstance$ ;
1240
1159
  const ancestorComponent = hostRef.$ancestorComponent$;
1241
1160
  {
1242
- safeCall(instance, "componentDidRender", void 0, elm);
1161
+ safeCall(instance, "componentDidRender");
1243
1162
  }
1244
1163
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1245
1164
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -1247,7 +1166,7 @@ var postUpdateComponent = (hostRef) => {
1247
1166
  addHydratedFlag(elm);
1248
1167
  }
1249
1168
  {
1250
- safeCall(instance, "componentDidLoad", void 0, elm);
1169
+ safeCall(instance, "componentDidLoad");
1251
1170
  }
1252
1171
  endPostUpdate();
1253
1172
  {
@@ -1271,14 +1190,17 @@ var postUpdateComponent = (hostRef) => {
1271
1190
  }
1272
1191
  };
1273
1192
  var appDidLoad = (who) => {
1193
+ {
1194
+ addHydratedFlag(doc.documentElement);
1195
+ }
1274
1196
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1275
1197
  };
1276
- var safeCall = (instance, method, arg, elm) => {
1198
+ var safeCall = (instance, method, arg) => {
1277
1199
  if (instance && instance[method]) {
1278
1200
  try {
1279
1201
  return instance[method](arg);
1280
1202
  } catch (e) {
1281
- consoleError(e, elm);
1203
+ consoleError(e);
1282
1204
  }
1283
1205
  }
1284
1206
  return void 0;
@@ -1337,68 +1259,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1337
1259
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1338
1260
  members.map(([memberName, [memberFlags]]) => {
1339
1261
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1340
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1341
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1342
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1343
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1344
- Object.defineProperty(prototype, memberName, {
1345
- get() {
1346
- {
1347
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1348
- return getValue(this, memberName);
1349
- }
1350
- const ref = getHostRef(this);
1351
- const instance = ref ? ref.$lazyInstance$ : prototype;
1352
- if (!instance) return;
1353
- return instance[memberName];
1354
- }
1355
- },
1356
- configurable: true,
1357
- enumerable: true
1358
- });
1359
- }
1360
1262
  Object.defineProperty(prototype, memberName, {
1263
+ get() {
1264
+ return getValue(this, memberName);
1265
+ },
1361
1266
  set(newValue) {
1362
- const ref = getHostRef(this);
1363
- if (origSetter) {
1364
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1365
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1366
- newValue = ref.$instanceValues$.get(memberName);
1367
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1368
- ref.$instanceValues$.set(memberName, currentValue);
1369
- }
1370
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1371
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1372
- setValue(this, memberName, newValue, cmpMeta);
1373
- return;
1374
- }
1375
- {
1376
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1377
- setValue(this, memberName, newValue, cmpMeta);
1378
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1379
- ref.$onReadyPromise$.then(() => {
1380
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1381
- ref.$lazyInstance$[memberName] = newValue;
1382
- }
1383
- });
1384
- }
1385
- return;
1386
- }
1387
- const setterSetVal = () => {
1388
- const currentValue = ref.$lazyInstance$[memberName];
1389
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1390
- ref.$instanceValues$.set(memberName, currentValue);
1391
- }
1392
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1393
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1394
- };
1395
- if (ref.$lazyInstance$) {
1396
- setterSetVal();
1397
- } else {
1398
- ref.$onReadyPromise$.then(() => setterSetVal());
1399
- }
1400
- }
1401
- }
1267
+ setValue(this, memberName, newValue, cmpMeta);
1268
+ },
1269
+ configurable: true,
1270
+ enumerable: true
1402
1271
  });
1403
1272
  }
1404
1273
  });
@@ -1408,11 +1277,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1408
1277
  plt.jmp(() => {
1409
1278
  var _a2;
1410
1279
  const propName = attrNameToPropName.get(attrName);
1411
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1280
+ if (this.hasOwnProperty(propName)) {
1412
1281
  newValue = this[propName];
1413
1282
  delete this[propName];
1414
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1415
- this[propName] == newValue) {
1283
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1416
1284
  return;
1417
1285
  } else if (propName == null) {
1418
1286
  const hostRef = getHostRef(this);
@@ -1428,11 +1296,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1428
1296
  }
1429
1297
  return;
1430
1298
  }
1431
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1432
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1433
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1434
- this[propName] = newValue;
1435
- }
1299
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1436
1300
  });
1437
1301
  };
1438
1302
  Cstr.observedAttributes = Array.from(
@@ -1461,7 +1325,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1461
1325
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1462
1326
  const bundleId = cmpMeta.$lazyBundleId$;
1463
1327
  if (bundleId) {
1464
- const CstrImport = loadModule(cmpMeta, hostRef);
1328
+ const CstrImport = loadModule(cmpMeta);
1465
1329
  if (CstrImport && "then" in CstrImport) {
1466
1330
  const endLoad = uniqueTime();
1467
1331
  Cstr = await CstrImport;
@@ -1486,7 +1350,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1486
1350
  try {
1487
1351
  new Cstr(hostRef);
1488
1352
  } catch (e) {
1489
- consoleError(e, elm);
1353
+ consoleError(e);
1490
1354
  }
1491
1355
  {
1492
1356
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1521,7 +1385,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1521
1385
  schedule();
1522
1386
  }
1523
1387
  };
1524
- var fireConnectedCallback = (instance, elm) => {
1388
+ var fireConnectedCallback = (instance) => {
1525
1389
  };
1526
1390
 
1527
1391
  // src/runtime/connected-callback.ts
@@ -1575,9 +1439,9 @@ var setContentReference = (elm) => {
1575
1439
  contentRefElm["s-cn"] = true;
1576
1440
  insertBefore(elm, contentRefElm, elm.firstChild);
1577
1441
  };
1578
- var disconnectInstance = (instance, elm) => {
1442
+ var disconnectInstance = (instance) => {
1579
1443
  {
1580
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1444
+ safeCall(instance, "disconnectedCallback");
1581
1445
  }
1582
1446
  };
1583
1447
  var disconnectedCallback = async (elm) => {
@@ -1590,17 +1454,11 @@ var disconnectedCallback = async (elm) => {
1590
1454
  }
1591
1455
  }
1592
1456
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1593
- disconnectInstance(hostRef.$lazyInstance$, elm);
1457
+ disconnectInstance(hostRef.$lazyInstance$);
1594
1458
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1595
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1459
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1596
1460
  }
1597
1461
  }
1598
- if (rootAppliedStyles.has(elm)) {
1599
- rootAppliedStyles.delete(elm);
1600
- }
1601
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1602
- rootAppliedStyles.delete(elm.shadowRoot);
1603
- }
1604
1462
  };
1605
1463
 
1606
1464
  // src/runtime/bootstrap-lazy.ts
@@ -1685,17 +1543,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1685
1543
  }
1686
1544
  disconnectedCallback() {
1687
1545
  plt.jmp(() => disconnectedCallback(this));
1688
- plt.raf(() => {
1689
- var _a3;
1690
- const hostRef = getHostRef(this);
1691
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1692
- if (i2 > -1) {
1693
- deferredConnectedCallbacks.splice(i2, 1);
1694
- }
1695
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1696
- delete hostRef.$vnode$.$elm$;
1697
- }
1698
- });
1699
1546
  }
1700
1547
  componentOnReady() {
1701
1548
  return getHostRef(this).$onReadyPromise$;
@@ -1762,7 +1609,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1762
1609
  }
1763
1610
  }
1764
1611
  } catch (e) {
1765
- consoleError(e, hostRef.$hostElement$);
1612
+ consoleError(e);
1766
1613
  }
1767
1614
  };
1768
1615
  var getHostListenerTarget = (elm, flags) => {