@everymatrix/bonus-elevate-shop-item 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 (26) hide show
  1. package/dist/bonus-elevate-shop-item/bonus-elevate-shop-item.esm.js +1 -1
  2. package/dist/bonus-elevate-shop-item/p-c1287a22.entry.js +1 -0
  3. package/dist/bonus-elevate-shop-item/p-c581a4f1.js +2 -0
  4. package/dist/cjs/bonus-elevate-shop-assets-slider_3.cjs.entry.js +16 -47
  5. package/dist/cjs/bonus-elevate-shop-item.cjs.js +2 -2
  6. package/dist/cjs/{index-5ee6395c.js → index-0f3e5ac0.js} +138 -291
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +2 -2
  9. package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-assets-slider.js +5 -22
  10. package/dist/collection/components/bonus-elevate-shop-item/bonus-elevate-shop-item.js +7 -41
  11. package/dist/esm/bonus-elevate-shop-assets-slider_3.entry.js +16 -47
  12. package/dist/esm/bonus-elevate-shop-item.js +3 -3
  13. package/dist/esm/{index-d65aef7f.js → index-7750792f.js} +138 -291
  14. package/dist/esm/loader.js +2 -2
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.d.ts +2 -0
  16. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.dev.d.ts +2 -0
  17. package/dist/types/stencil-public-runtime.d.ts +0 -6
  18. package/package.json +1 -1
  19. package/dist/bonus-elevate-shop-item/p-649baad8.entry.js +0 -1
  20. package/dist/bonus-elevate-shop-item/p-7e614c16.js +0 -2
  21. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/packages/stencil/bonus-elevate-shop-item/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/bonus-elevate-shop-item/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,25 +1,17 @@
1
1
  const NAMESPACE = 'bonus-elevate-shop-item';
2
- const BUILD = /* bonus-elevate-shop-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, 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: false };
2
+ const BUILD = /* bonus-elevate-shop-item */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, 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: false };
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);
@@ -70,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
70
61
  /* webpackExclude: /\.system\.entry\.js$/ */
71
62
  /* webpackMode: "lazy" */
72
63
  `./${bundleId}.entry.js${""}`
73
- ).then(
74
- (importedModule) => {
75
- {
76
- cmpModules.set(bundleId, importedModule);
77
- }
78
- return importedModule[exportName];
79
- },
80
- (e) => {
81
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
82
67
  }
83
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
84
70
  };
85
71
 
86
72
  // src/client/client-style.ts
87
73
  var styles = /* @__PURE__ */ new Map();
88
- var HYDRATED_STYLE_ID = "sty-id";
89
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
90
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
91
76
  var win = typeof window !== "undefined" ? window : {};
@@ -143,6 +128,14 @@ var flush = () => {
143
128
  };
144
129
  var nextTick = (cb) => promiseResolve().then(cb);
145
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+ var SVG_NS = "http://www.w3.org/2000/svg";
135
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
136
+
137
+ // src/utils/helpers.ts
138
+ var isDef = (v) => v != null;
146
139
  var isComplexType = (o) => {
147
140
  o = typeof o;
148
141
  return o === "object" || o === "function";
@@ -202,63 +195,6 @@ var unwrapErr = (result) => {
202
195
  throw result.value;
203
196
  }
204
197
  };
205
- var updateFallbackSlotVisibility = (elm) => {
206
- const childNodes = elm.__childNodes || elm.childNodes;
207
- if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
208
- getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
209
- var _a;
210
- if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
211
- if ((_a = getHostSlotChildNodes(slotNode, slotNode["s-sn"], false)) == null ? void 0 : _a.length) {
212
- slotNode.hidden = true;
213
- } else {
214
- slotNode.hidden = false;
215
- }
216
- }
217
- });
218
- }
219
- for (const childNode of childNodes) {
220
- if (childNode.nodeType === 1 /* ElementNode */ && (childNode.__childNodes || childNode.childNodes).length) {
221
- updateFallbackSlotVisibility(childNode);
222
- }
223
- }
224
- };
225
- function getHostSlotNodes(childNodes, hostName, slotName) {
226
- let i2 = 0;
227
- let slottedNodes = [];
228
- let childNode;
229
- for (; i2 < childNodes.length; i2++) {
230
- childNode = childNodes[i2];
231
- if (childNode["s-sr"] && childNode["s-hn"] === hostName && (slotName === void 0 || childNode["s-sn"] === slotName)) {
232
- slottedNodes.push(childNode);
233
- if (typeof slotName !== "undefined") return slottedNodes;
234
- }
235
- slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
236
- }
237
- return slottedNodes;
238
- }
239
- var getHostSlotChildNodes = (node, slotName, includeSlot = true) => {
240
- const childNodes = [];
241
- if (includeSlot && node["s-sr"] || !node["s-sr"]) childNodes.push(node);
242
- while ((node = node.nextSibling) && node["s-sn"] === slotName) {
243
- childNodes.push(node);
244
- }
245
- return childNodes;
246
- };
247
- var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
248
- if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
249
- if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
250
- return true;
251
- }
252
- if (nodeToRelocate.getAttribute("slot") === slotName) {
253
- return true;
254
- }
255
- return false;
256
- }
257
- if (nodeToRelocate["s-sn"] === slotName) {
258
- return true;
259
- }
260
- return slotName === "";
261
- };
262
198
  var createTime = (fnName, tagName = "") => {
263
199
  {
264
200
  return () => {
@@ -450,40 +386,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
450
386
  }
451
387
  if (!appliedStyles.has(scopeId2)) {
452
388
  {
453
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
389
+ styleElm = doc.createElement("style");
454
390
  styleElm.innerHTML = style;
455
391
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
456
392
  if (nonce != null) {
457
393
  styleElm.setAttribute("nonce", nonce);
458
394
  }
459
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
460
- if (styleContainerNode.nodeName === "HEAD") {
461
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
462
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
463
- styleContainerNode.insertBefore(
464
- styleElm,
465
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
466
- );
467
- } else if ("host" in styleContainerNode) {
468
- if (supportsConstructableStylesheets) {
469
- const stylesheet = new CSSStyleSheet();
470
- stylesheet.replaceSync(style);
471
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
472
- } else {
473
- const existingStyleContainer = styleContainerNode.querySelector("style");
474
- if (existingStyleContainer) {
475
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
476
- } else {
477
- styleContainerNode.prepend(styleElm);
478
- }
479
- }
480
- } else {
481
- styleContainerNode.append(styleElm);
482
- }
483
- }
484
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
485
- styleContainerNode.insertBefore(styleElm, null);
486
- }
395
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
487
396
  }
488
397
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
489
398
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -506,25 +415,23 @@ var attachStyles = (hostRef) => {
506
415
  const scopeId2 = addStyle(
507
416
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
508
417
  cmpMeta);
509
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
418
+ if (flags & 10 /* needsScopedEncapsulation */) {
510
419
  elm["s-sc"] = scopeId2;
511
420
  elm.classList.add(scopeId2 + "-h");
512
421
  }
513
422
  endAttachStyles();
514
423
  };
515
424
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
516
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
425
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
517
426
  if (oldValue !== newValue) {
518
427
  let isProp = isMemberInElement(elm, memberName);
519
428
  let ln = memberName.toLowerCase();
520
429
  if (memberName === "class") {
521
430
  const classList = elm.classList;
522
431
  const oldClasses = parseClassList(oldValue);
523
- let newClasses = parseClassList(newValue);
524
- {
525
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
526
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
527
- }
432
+ const newClasses = parseClassList(newValue);
433
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
528
435
  } else if (memberName === "style") {
529
436
  {
530
437
  for (const prop in oldValue) {
@@ -577,13 +484,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
577
484
  if (memberName === "list") {
578
485
  isProp = false;
579
486
  } else if (oldValue == null || elm[memberName] != n) {
580
- if (typeof elm.__lookupSetter__(memberName) === "function") {
581
- elm[memberName] = n;
582
- } else {
583
- elm.setAttribute(memberName, n);
584
- }
487
+ elm[memberName] = n;
585
488
  }
586
- } else if (elm[memberName] !== newValue) {
489
+ } else {
587
490
  elm[memberName] = newValue;
588
491
  }
589
492
  } catch (e) {
@@ -605,44 +508,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
605
508
  }
606
509
  };
607
510
  var parseClassListRegex = /\s/;
608
- var parseClassList = (value) => {
609
- if (typeof value === "object" && value && "baseVal" in value) {
610
- value = value.baseVal;
611
- }
612
- if (!value || typeof value !== "string") {
613
- return [];
614
- }
615
- return value.split(parseClassListRegex);
616
- };
511
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
617
512
  var CAPTURE_EVENT_SUFFIX = "Capture";
618
513
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
619
514
 
620
515
  // src/runtime/vdom/update-element.ts
621
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
516
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
622
517
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
623
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
624
- const newVnodeAttrs = newVnode.$attrs$ || {};
518
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
519
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
625
520
  {
626
521
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
627
522
  if (!(memberName in newVnodeAttrs)) {
628
- setAccessor(
629
- elm,
630
- memberName,
631
- oldVnodeAttrs[memberName],
632
- void 0,
633
- isSvgMode2,
634
- newVnode.$flags$);
523
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
635
524
  }
636
525
  }
637
526
  }
638
527
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
639
- setAccessor(
640
- elm,
641
- memberName,
642
- oldVnodeAttrs[memberName],
643
- newVnodeAttrs[memberName],
644
- isSvgMode2,
645
- newVnode.$flags$);
528
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
646
529
  }
647
530
  };
648
531
  function sortedAttrNames(attrNames) {
@@ -654,13 +537,16 @@ function sortedAttrNames(attrNames) {
654
537
  attrNames
655
538
  );
656
539
  }
540
+
541
+ // src/runtime/vdom/vdom-render.ts
542
+ var scopeId;
657
543
  var contentRef;
658
544
  var hostTagName;
659
545
  var useNativeShadowDom = false;
660
546
  var checkSlotFallbackVisibility = false;
661
547
  var checkSlotRelocate = false;
662
548
  var isSvgMode = false;
663
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
549
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
664
550
  var _a;
665
551
  const newVNode2 = newParentVNode.$children$[childIndex];
666
552
  let i2 = 0;
@@ -670,6 +556,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
670
556
  if (!useNativeShadowDom) {
671
557
  checkSlotRelocate = true;
672
558
  if (newVNode2.$tag$ === "slot") {
559
+ if (scopeId) {
560
+ parentElm.classList.add(scopeId + "-s");
561
+ }
673
562
  newVNode2.$flags$ |= newVNode2.$children$ ? (
674
563
  // slot element has fallback content
675
564
  // still create an element that "mocks" the slot element
@@ -700,9 +589,12 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
700
589
  {
701
590
  updateElement(null, newVNode2, isSvgMode);
702
591
  }
592
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
593
+ elm.classList.add(elm["s-si"] = scopeId);
594
+ }
703
595
  if (newVNode2.$children$) {
704
596
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
705
- childNode = createElm(oldParentVNode, newVNode2, i2);
597
+ childNode = createElm(oldParentVNode, newVNode2, i2, elm);
706
598
  if (childNode) {
707
599
  elm.appendChild(childNode);
708
600
  }
@@ -735,7 +627,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
735
627
  };
736
628
  var putBackInOriginalLocation = (parentElm, recursive) => {
737
629
  plt.$flags$ |= 1 /* isTmpDisconnected */;
738
- const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
630
+ const oldSlotChildNodes = Array.from(parentElm.childNodes);
739
631
  if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
740
632
  let node = parentElm;
741
633
  while (node = node.nextSibling) {
@@ -747,7 +639,7 @@ var putBackInOriginalLocation = (parentElm, recursive) => {
747
639
  for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
748
640
  const childNode = oldSlotChildNodes[i2];
749
641
  if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
750
- insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
642
+ insertBefore(parentReferenceNode(childNode), childNode, referenceNode(childNode));
751
643
  childNode["s-ol"].remove();
752
644
  childNode["s-ol"] = void 0;
753
645
  childNode["s-sh"] = void 0;
@@ -767,7 +659,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
767
659
  }
768
660
  for (; startIdx <= endIdx; ++startIdx) {
769
661
  if (vnodes[startIdx]) {
770
- childNode = createElm(null, parentVNode, startIdx);
662
+ childNode = createElm(null, parentVNode, startIdx, parentElm);
771
663
  if (childNode) {
772
664
  vnodes[startIdx].$elm$ = childNode;
773
665
  insertBefore(containerElm, childNode, referenceNode(before) );
@@ -854,7 +746,7 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
854
746
  if (idxInOld >= 0) {
855
747
  elmToMove = oldCh[idxInOld];
856
748
  if (elmToMove.$tag$ !== newStartVnode.$tag$) {
857
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
749
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld, parentElm);
858
750
  } else {
859
751
  patch(elmToMove, newStartVnode, isInitialRender);
860
752
  oldCh[idxInOld] = void 0;
@@ -862,16 +754,12 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
862
754
  }
863
755
  newStartVnode = newCh[++newStartIdx];
864
756
  } else {
865
- node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
757
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx, parentElm);
866
758
  newStartVnode = newCh[++newStartIdx];
867
759
  }
868
760
  if (node) {
869
761
  {
870
- insertBefore(
871
- referenceNode(oldStartVnode.$elm$).parentNode,
872
- node,
873
- referenceNode(oldStartVnode.$elm$)
874
- );
762
+ insertBefore(parentReferenceNode(oldStartVnode.$elm$), node, referenceNode(oldStartVnode.$elm$));
875
763
  }
876
764
  }
877
765
  }
@@ -897,14 +785,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
897
785
  if (!isInitialRender) {
898
786
  return leftVNode.$key$ === rightVNode.$key$;
899
787
  }
900
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
901
- leftVNode.$key$ = rightVNode.$key$;
902
- }
903
788
  return true;
904
789
  }
905
790
  return false;
906
791
  };
907
- var referenceNode = (node) => node && node["s-ol"] || node;
792
+ var referenceNode = (node) => {
793
+ return node && node["s-ol"] || node;
794
+ };
795
+ var parentReferenceNode = (node) => (node["s-ol"] ? node["s-ol"] : node).parentNode;
908
796
  var patch = (oldVNode, newVNode2, isInitialRender = false) => {
909
797
  const elm = newVNode2.$elm$ = oldVNode.$elm$;
910
798
  const oldChildren = oldVNode.$children$;
@@ -928,10 +816,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
928
816
  elm.textContent = "";
929
817
  }
930
818
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
931
- } else if (
932
- // don't do this on initial render as it can cause non-hydrated content to be removed
933
- !isInitialRender && BUILD.updatable && oldChildren !== null
934
- ) {
819
+ } else if (oldChildren !== null) {
935
820
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
936
821
  }
937
822
  if (isSvgMode && tag === "svg") {
@@ -943,15 +828,41 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
943
828
  elm.data = text;
944
829
  }
945
830
  };
831
+ var updateFallbackSlotVisibility = (elm) => {
832
+ const childNodes = elm.childNodes;
833
+ for (const childNode of childNodes) {
834
+ if (childNode.nodeType === 1 /* ElementNode */) {
835
+ if (childNode["s-sr"]) {
836
+ const slotName = childNode["s-sn"];
837
+ childNode.hidden = false;
838
+ for (const siblingNode of childNodes) {
839
+ if (siblingNode !== childNode) {
840
+ if (siblingNode["s-hn"] !== childNode["s-hn"] || slotName !== "") {
841
+ if (siblingNode.nodeType === 1 /* ElementNode */ && (slotName === siblingNode.getAttribute("slot") || slotName === siblingNode["s-sn"]) || siblingNode.nodeType === 3 /* TextNode */ && slotName === siblingNode["s-sn"]) {
842
+ childNode.hidden = true;
843
+ break;
844
+ }
845
+ } else {
846
+ if (siblingNode.nodeType === 1 /* ElementNode */ || siblingNode.nodeType === 3 /* TextNode */ && siblingNode.textContent.trim() !== "") {
847
+ childNode.hidden = true;
848
+ break;
849
+ }
850
+ }
851
+ }
852
+ }
853
+ }
854
+ updateFallbackSlotVisibility(childNode);
855
+ }
856
+ }
857
+ };
946
858
  var relocateNodes = [];
947
859
  var markSlotContentForRelocation = (elm) => {
948
860
  let node;
949
861
  let hostContentNodes;
950
862
  let j;
951
- const children = elm.__childNodes || elm.childNodes;
952
- for (const childNode of children) {
863
+ for (const childNode of elm.childNodes) {
953
864
  if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
954
- hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
865
+ hostContentNodes = node.parentNode.childNodes;
955
866
  const slotName = childNode["s-sn"];
956
867
  for (j = hostContentNodes.length - 1; j >= 0; j--) {
957
868
  node = hostContentNodes[j];
@@ -993,6 +904,21 @@ var markSlotContentForRelocation = (elm) => {
993
904
  }
994
905
  }
995
906
  };
907
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
908
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
909
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
910
+ return true;
911
+ }
912
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
913
+ return true;
914
+ }
915
+ return false;
916
+ }
917
+ if (nodeToRelocate["s-sn"] === slotName) {
918
+ return true;
919
+ }
920
+ return slotName === "";
921
+ };
996
922
  var nullifyVNodeRefs = (vNode) => {
997
923
  {
998
924
  vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
@@ -1000,9 +926,8 @@ var nullifyVNodeRefs = (vNode) => {
1000
926
  }
1001
927
  };
1002
928
  var insertBefore = (parent, newNode, reference) => {
1003
- {
1004
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
1005
- }
929
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
930
+ return inserted;
1006
931
  };
1007
932
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1008
933
  var _a, _b, _c, _d;
@@ -1028,7 +953,10 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1028
953
  rootVnode.$flags$ |= 4 /* isHost */;
1029
954
  hostRef.$vnode$ = rootVnode;
1030
955
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
1031
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
956
+ {
957
+ scopeId = hostElm["s-sc"];
958
+ }
959
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
1032
960
  {
1033
961
  contentRef = hostElm["s-cr"];
1034
962
  checkSlotFallbackVisibility = false;
@@ -1056,7 +984,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1056
984
  let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
1057
985
  while (orgLocationNode) {
1058
986
  let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
1059
- if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
987
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === refNode.parentNode) {
1060
988
  refNode = refNode.nextSibling;
1061
989
  while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
1062
990
  refNode = refNode == null ? void 0 : refNode.nextSibling;
@@ -1069,15 +997,13 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1069
997
  orgLocationNode = orgLocationNode.previousSibling;
1070
998
  }
1071
999
  }
1072
- const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
1073
- const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
1074
- if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
1000
+ if (!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode || nodeToRelocate.nextSibling !== insertBeforeNode) {
1075
1001
  if (nodeToRelocate !== insertBeforeNode) {
1076
1002
  if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
1077
1003
  nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
1078
1004
  }
1079
1005
  insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
1080
- if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
1006
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1081
1007
  nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
1082
1008
  }
1083
1009
  }
@@ -1105,14 +1031,7 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
1105
1031
  // src/runtime/update-component.ts
1106
1032
  var attachToAncestor = (hostRef, ancestorComponent) => {
1107
1033
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
1108
- const index = ancestorComponent["s-p"].push(
1109
- new Promise(
1110
- (r) => hostRef.$onRenderResolve$ = () => {
1111
- ancestorComponent["s-p"].splice(index - 1, 1);
1112
- r();
1113
- }
1114
- )
1115
- );
1034
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
1116
1035
  }
1117
1036
  };
1118
1037
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -1139,7 +1058,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
1139
1058
  let maybePromise;
1140
1059
  if (isInitialLoad) {
1141
1060
  {
1142
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
1061
+ maybePromise = safeCall(instance, "componentWillLoad");
1143
1062
  }
1144
1063
  }
1145
1064
  endSchedule();
@@ -1208,7 +1127,7 @@ var postUpdateComponent = (hostRef) => {
1208
1127
  const instance = hostRef.$lazyInstance$ ;
1209
1128
  const ancestorComponent = hostRef.$ancestorComponent$;
1210
1129
  {
1211
- safeCall(instance, "componentDidRender", void 0, elm);
1130
+ safeCall(instance, "componentDidRender");
1212
1131
  }
1213
1132
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
1214
1133
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -1216,7 +1135,7 @@ var postUpdateComponent = (hostRef) => {
1216
1135
  addHydratedFlag(elm);
1217
1136
  }
1218
1137
  {
1219
- safeCall(instance, "componentDidLoad", void 0, elm);
1138
+ safeCall(instance, "componentDidLoad");
1220
1139
  }
1221
1140
  endPostUpdate();
1222
1141
  {
@@ -1227,7 +1146,7 @@ var postUpdateComponent = (hostRef) => {
1227
1146
  }
1228
1147
  } else {
1229
1148
  {
1230
- safeCall(instance, "componentDidUpdate", void 0, elm);
1149
+ safeCall(instance, "componentDidUpdate");
1231
1150
  }
1232
1151
  endPostUpdate();
1233
1152
  }
@@ -1243,14 +1162,17 @@ var postUpdateComponent = (hostRef) => {
1243
1162
  }
1244
1163
  };
1245
1164
  var appDidLoad = (who) => {
1165
+ {
1166
+ addHydratedFlag(doc.documentElement);
1167
+ }
1246
1168
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
1247
1169
  };
1248
- var safeCall = (instance, method, arg, elm) => {
1170
+ var safeCall = (instance, method, arg) => {
1249
1171
  if (instance && instance[method]) {
1250
1172
  try {
1251
1173
  return instance[method](arg);
1252
1174
  } catch (e) {
1253
- consoleError(e, elm);
1175
+ consoleError(e);
1254
1176
  }
1255
1177
  }
1256
1178
  return void 0;
@@ -1293,68 +1215,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1293
1215
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1294
1216
  members.map(([memberName, [memberFlags]]) => {
1295
1217
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1296
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1297
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1298
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1299
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1300
- Object.defineProperty(prototype, memberName, {
1301
- get() {
1302
- {
1303
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1304
- return getValue(this, memberName);
1305
- }
1306
- const ref = getHostRef(this);
1307
- const instance = ref ? ref.$lazyInstance$ : prototype;
1308
- if (!instance) return;
1309
- return instance[memberName];
1310
- }
1311
- },
1312
- configurable: true,
1313
- enumerable: true
1314
- });
1315
- }
1316
1218
  Object.defineProperty(prototype, memberName, {
1219
+ get() {
1220
+ return getValue(this, memberName);
1221
+ },
1317
1222
  set(newValue) {
1318
- const ref = getHostRef(this);
1319
- if (origSetter) {
1320
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1321
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1322
- newValue = ref.$instanceValues$.get(memberName);
1323
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1324
- ref.$instanceValues$.set(memberName, currentValue);
1325
- }
1326
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1327
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1328
- setValue(this, memberName, newValue, cmpMeta);
1329
- return;
1330
- }
1331
- {
1332
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1333
- setValue(this, memberName, newValue, cmpMeta);
1334
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1335
- ref.$onReadyPromise$.then(() => {
1336
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1337
- ref.$lazyInstance$[memberName] = newValue;
1338
- }
1339
- });
1340
- }
1341
- return;
1342
- }
1343
- const setterSetVal = () => {
1344
- const currentValue = ref.$lazyInstance$[memberName];
1345
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1346
- ref.$instanceValues$.set(memberName, currentValue);
1347
- }
1348
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1349
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1350
- };
1351
- if (ref.$lazyInstance$) {
1352
- setterSetVal();
1353
- } else {
1354
- ref.$onReadyPromise$.then(() => setterSetVal());
1355
- }
1356
- }
1357
- }
1223
+ setValue(this, memberName, newValue, cmpMeta);
1224
+ },
1225
+ configurable: true,
1226
+ enumerable: true
1358
1227
  });
1359
1228
  }
1360
1229
  });
@@ -1364,11 +1233,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1364
1233
  plt.jmp(() => {
1365
1234
  var _a2;
1366
1235
  const propName = attrNameToPropName.get(attrName);
1367
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
1236
+ if (this.hasOwnProperty(propName)) {
1368
1237
  newValue = this[propName];
1369
1238
  delete this[propName];
1370
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1371
- this[propName] == newValue) {
1239
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1372
1240
  return;
1373
1241
  } else if (propName == null) {
1374
1242
  const hostRef = getHostRef(this);
@@ -1384,11 +1252,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1384
1252
  }
1385
1253
  return;
1386
1254
  }
1387
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1388
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1389
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1390
- this[propName] = newValue;
1391
- }
1255
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1392
1256
  });
1393
1257
  };
1394
1258
  Cstr.observedAttributes = Array.from(
@@ -1417,7 +1281,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1417
1281
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1418
1282
  const bundleId = cmpMeta.$lazyBundleId$;
1419
1283
  if (bundleId) {
1420
- const CstrImport = loadModule(cmpMeta, hostRef);
1284
+ const CstrImport = loadModule(cmpMeta);
1421
1285
  if (CstrImport && "then" in CstrImport) {
1422
1286
  const endLoad = uniqueTime();
1423
1287
  Cstr = await CstrImport;
@@ -1439,13 +1303,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1439
1303
  try {
1440
1304
  new Cstr(hostRef);
1441
1305
  } catch (e) {
1442
- consoleError(e, elm);
1306
+ consoleError(e);
1443
1307
  }
1444
1308
  {
1445
1309
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1446
1310
  }
1447
1311
  endNewInstance();
1448
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1312
+ fireConnectedCallback(hostRef.$lazyInstance$);
1449
1313
  } else {
1450
1314
  Cstr = elm.constructor;
1451
1315
  const cmpTag = elm.localName;
@@ -1472,9 +1336,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1472
1336
  schedule();
1473
1337
  }
1474
1338
  };
1475
- var fireConnectedCallback = (instance, elm) => {
1339
+ var fireConnectedCallback = (instance) => {
1476
1340
  {
1477
- safeCall(instance, "connectedCallback", void 0, elm);
1341
+ safeCall(instance, "connectedCallback");
1478
1342
  }
1479
1343
  };
1480
1344
 
@@ -1515,9 +1379,9 @@ var connectedCallback = (elm) => {
1515
1379
  }
1516
1380
  } else {
1517
1381
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1518
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1382
+ fireConnectedCallback(hostRef.$lazyInstance$);
1519
1383
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1520
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1384
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1521
1385
  }
1522
1386
  }
1523
1387
  endConnected();
@@ -1530,26 +1394,20 @@ var setContentReference = (elm) => {
1530
1394
  contentRefElm["s-cn"] = true;
1531
1395
  insertBefore(elm, contentRefElm, elm.firstChild);
1532
1396
  };
1533
- var disconnectInstance = (instance, elm) => {
1397
+ var disconnectInstance = (instance) => {
1534
1398
  {
1535
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1399
+ safeCall(instance, "disconnectedCallback");
1536
1400
  }
1537
1401
  };
1538
1402
  var disconnectedCallback = async (elm) => {
1539
1403
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1540
1404
  const hostRef = getHostRef(elm);
1541
1405
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1542
- disconnectInstance(hostRef.$lazyInstance$, elm);
1406
+ disconnectInstance(hostRef.$lazyInstance$);
1543
1407
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1544
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1408
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1545
1409
  }
1546
1410
  }
1547
- if (rootAppliedStyles.has(elm)) {
1548
- rootAppliedStyles.delete(elm);
1549
- }
1550
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1551
- rootAppliedStyles.delete(elm.shadowRoot);
1552
- }
1553
1411
  };
1554
1412
 
1555
1413
  // src/runtime/bootstrap-lazy.ts
@@ -1626,17 +1484,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1626
1484
  }
1627
1485
  disconnectedCallback() {
1628
1486
  plt.jmp(() => disconnectedCallback(this));
1629
- plt.raf(() => {
1630
- var _a3;
1631
- const hostRef = getHostRef(this);
1632
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1633
- if (i2 > -1) {
1634
- deferredConnectedCallbacks.splice(i2, 1);
1635
- }
1636
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1637
- delete hostRef.$vnode$.$elm$;
1638
- }
1639
- });
1640
1487
  }
1641
1488
  componentOnReady() {
1642
1489
  return getHostRef(this).$onReadyPromise$;