@everymatrix/casino-engagement-suite-bar 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/casino-engagement-suite-bar/casino-engagement-suite-bar.esm.js +1 -1
  2. package/dist/casino-engagement-suite-bar/p-3ed6d677.entry.js +1 -0
  3. package/dist/casino-engagement-suite-bar/p-e3eeee5f.js +2 -0
  4. package/dist/cjs/casino-engagement-suite-bar.cjs.entry.js +43 -19
  5. package/dist/cjs/casino-engagement-suite-bar.cjs.js +2 -2
  6. package/dist/cjs/{index-e5bc7c81.js → index-74d721d6.js} +168 -67
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-engagement-suite-bar/casino-engagement-suite-bar.js +73 -19
  10. package/dist/esm/casino-engagement-suite-bar.entry.js +43 -19
  11. package/dist/esm/casino-engagement-suite-bar.js +3 -3
  12. package/dist/esm/{index-fa9a5454.js → index-466e12d6.js} +168 -67
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-engagement-suite-bar/p-a7ca9798.entry.js +0 -1
  18. package/dist/casino-engagement-suite-bar/p-d14341cc.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/packages/stencil/casino-engagement-suite-bar/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-bar/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-engagement-suite-bar';
24
- const BUILD = /* casino-engagement-suite-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, 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: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* casino-engagement-suite-bar */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: false, 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: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -166,12 +177,6 @@ var flush = () => {
166
177
  };
167
178
  var nextTick = (cb) => promiseResolve().then(cb);
168
179
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
-
173
- // src/utils/helpers.ts
174
- var isDef = (v) => v != null;
175
180
  var isComplexType = (o) => {
176
181
  o = typeof o;
177
182
  return o === "object" || o === "function";
@@ -356,7 +361,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
356
361
  }
357
362
  if (!appliedStyles.has(scopeId2)) {
358
363
  {
359
- styleElm = doc.createElement("style");
364
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
360
365
  styleElm.innerHTML = style;
361
366
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
362
367
  if (nonce != null) {
@@ -366,7 +371,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
366
371
  if (styleContainerNode.nodeName === "HEAD") {
367
372
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
368
373
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
369
- styleContainerNode.insertBefore(styleElm, referenceNode2);
374
+ styleContainerNode.insertBefore(
375
+ styleElm,
376
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
+ );
370
378
  } else if ("host" in styleContainerNode) {
371
379
  if (supportsConstructableStylesheets) {
372
380
  const stylesheet = new CSSStyleSheet();
@@ -384,7 +392,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
392
  styleContainerNode.append(styleElm);
385
393
  }
386
394
  }
387
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
395
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
388
396
  styleContainerNode.insertBefore(styleElm, null);
389
397
  }
390
398
  }
@@ -409,23 +417,25 @@ var attachStyles = (hostRef) => {
409
417
  const scopeId2 = addStyle(
410
418
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
411
419
  cmpMeta);
412
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
420
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
413
421
  elm["s-sc"] = scopeId2;
414
422
  elm.classList.add(scopeId2 + "-h");
415
423
  }
416
424
  endAttachStyles();
417
425
  };
418
426
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
419
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
427
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
420
428
  if (oldValue !== newValue) {
421
429
  let isProp = isMemberInElement(elm, memberName);
422
430
  let ln = memberName.toLowerCase();
423
431
  if (memberName === "class") {
424
432
  const classList = elm.classList;
425
433
  const oldClasses = parseClassList(oldValue);
426
- const newClasses = parseClassList(newValue);
427
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
428
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
434
+ let newClasses = parseClassList(newValue);
435
+ {
436
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
437
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
438
+ }
429
439
  } else if (memberName === "key") ; else if (memberName === "ref") {
430
440
  if (newValue) {
431
441
  newValue(elm);
@@ -463,7 +473,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
463
473
  elm.setAttribute(memberName, n);
464
474
  }
465
475
  }
466
- } else {
476
+ } else if (elm[memberName] !== newValue) {
467
477
  elm[memberName] = newValue;
468
478
  }
469
479
  } catch (e) {
@@ -485,24 +495,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
485
495
  }
486
496
  };
487
497
  var parseClassListRegex = /\s/;
488
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
498
+ var parseClassList = (value) => {
499
+ if (typeof value === "object" && value && "baseVal" in value) {
500
+ value = value.baseVal;
501
+ }
502
+ if (!value || typeof value !== "string") {
503
+ return [];
504
+ }
505
+ return value.split(parseClassListRegex);
506
+ };
489
507
  var CAPTURE_EVENT_SUFFIX = "Capture";
490
508
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
491
509
 
492
510
  // src/runtime/vdom/update-element.ts
493
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
511
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
494
512
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
495
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
496
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
513
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
+ const newVnodeAttrs = newVnode.$attrs$ || {};
497
515
  {
498
516
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
499
517
  if (!(memberName in newVnodeAttrs)) {
500
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
518
+ setAccessor(
519
+ elm,
520
+ memberName,
521
+ oldVnodeAttrs[memberName],
522
+ void 0,
523
+ isSvgMode2,
524
+ newVnode.$flags$);
501
525
  }
502
526
  }
503
527
  }
504
528
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
505
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
529
+ setAccessor(
530
+ elm,
531
+ memberName,
532
+ oldVnodeAttrs[memberName],
533
+ newVnodeAttrs[memberName],
534
+ isSvgMode2,
535
+ newVnode.$flags$);
506
536
  }
507
537
  };
508
538
  function sortedAttrNames(attrNames) {
@@ -514,13 +544,10 @@ function sortedAttrNames(attrNames) {
514
544
  attrNames
515
545
  );
516
546
  }
517
-
518
- // src/runtime/vdom/vdom-render.ts
519
- var scopeId;
520
547
  var hostTagName;
521
548
  var useNativeShadowDom = false;
522
549
  var isSvgMode = false;
523
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
550
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
524
551
  const newVNode2 = newParentVNode.$children$[childIndex];
525
552
  let i2 = 0;
526
553
  let elm;
@@ -534,11 +561,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
534
561
  {
535
562
  updateElement(null, newVNode2, isSvgMode);
536
563
  }
537
- const rootNode = elm.getRootNode();
538
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
539
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
540
- elm.classList.add(elm["s-si"] = scopeId);
541
- }
542
564
  if (newVNode2.$children$) {
543
565
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
544
566
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,6 +690,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
690
  if (!isInitialRender) {
669
691
  return leftVNode.$key$ === rightVNode.$key$;
670
692
  }
693
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
+ leftVNode.$key$ = rightVNode.$key$;
695
+ }
671
696
  return true;
672
697
  }
673
698
  return false;
@@ -707,8 +732,9 @@ var nullifyVNodeRefs = (vNode) => {
707
732
  }
708
733
  };
709
734
  var insertBefore = (parent, newNode, reference) => {
710
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
711
- return inserted;
735
+ {
736
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
737
+ }
712
738
  };
713
739
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
714
740
  const hostElm = hostRef.$hostElement$;
@@ -733,17 +759,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
733
759
  rootVnode.$flags$ |= 4 /* isHost */;
734
760
  hostRef.$vnode$ = rootVnode;
735
761
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
736
- {
737
- scopeId = hostElm["s-sc"];
738
- }
739
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
762
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
740
763
  patch(oldVNode, rootVnode, isInitialLoad);
741
764
  };
742
765
 
743
766
  // src/runtime/update-component.ts
744
767
  var attachToAncestor = (hostRef, ancestorComponent) => {
745
768
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
746
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
769
+ const index = ancestorComponent["s-p"].push(
770
+ new Promise(
771
+ (r) => hostRef.$onRenderResolve$ = () => {
772
+ ancestorComponent["s-p"].splice(index - 1, 1);
773
+ r();
774
+ }
775
+ )
776
+ );
747
777
  }
748
778
  };
749
779
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -772,7 +802,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
772
802
  {
773
803
  hostRef.$flags$ |= 256 /* isListenReady */;
774
804
  if (hostRef.$queuedListeners$) {
775
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
805
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
776
806
  hostRef.$queuedListeners$ = void 0;
777
807
  }
778
808
  }
@@ -843,7 +873,7 @@ var postUpdateComponent = (hostRef) => {
843
873
  const instance = hostRef.$lazyInstance$ ;
844
874
  const ancestorComponent = hostRef.$ancestorComponent$;
845
875
  {
846
- safeCall(instance, "componentDidRender");
876
+ safeCall(instance, "componentDidRender", void 0, elm);
847
877
  }
848
878
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
849
879
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -872,17 +902,14 @@ var postUpdateComponent = (hostRef) => {
872
902
  }
873
903
  };
874
904
  var appDidLoad = (who) => {
875
- {
876
- addHydratedFlag(doc.documentElement);
877
- }
878
905
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
879
906
  };
880
- var safeCall = (instance, method, arg) => {
907
+ var safeCall = (instance, method, arg, elm) => {
881
908
  if (instance && instance[method]) {
882
909
  try {
883
910
  return instance[method](arg);
884
911
  } catch (e) {
885
- consoleError(e);
912
+ consoleError(e, elm);
886
913
  }
887
914
  }
888
915
  return void 0;
@@ -925,15 +952,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
925
952
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
926
953
  members.map(([memberName, [memberFlags]]) => {
927
954
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
955
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
956
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
957
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
958
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
959
+ Object.defineProperty(prototype, memberName, {
960
+ get() {
961
+ {
962
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
963
+ return getValue(this, memberName);
964
+ }
965
+ const ref = getHostRef(this);
966
+ const instance = ref ? ref.$lazyInstance$ : prototype;
967
+ if (!instance) return;
968
+ return instance[memberName];
969
+ }
970
+ },
971
+ configurable: true,
972
+ enumerable: true
973
+ });
974
+ }
928
975
  Object.defineProperty(prototype, memberName, {
929
- get() {
930
- return getValue(this, memberName);
931
- },
932
976
  set(newValue) {
933
- setValue(this, memberName, newValue, cmpMeta);
934
- },
935
- configurable: true,
936
- enumerable: true
977
+ const ref = getHostRef(this);
978
+ if (origSetter) {
979
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
980
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
981
+ newValue = ref.$instanceValues$.get(memberName);
982
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
+ ref.$instanceValues$.set(memberName, currentValue);
984
+ }
985
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
986
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
987
+ setValue(this, memberName, newValue, cmpMeta);
988
+ return;
989
+ }
990
+ {
991
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
992
+ setValue(this, memberName, newValue, cmpMeta);
993
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
994
+ ref.$onReadyPromise$.then(() => {
995
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
996
+ ref.$lazyInstance$[memberName] = newValue;
997
+ }
998
+ });
999
+ }
1000
+ return;
1001
+ }
1002
+ const setterSetVal = () => {
1003
+ const currentValue = ref.$lazyInstance$[memberName];
1004
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1005
+ ref.$instanceValues$.set(memberName, currentValue);
1006
+ }
1007
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1008
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1009
+ };
1010
+ if (ref.$lazyInstance$) {
1011
+ setterSetVal();
1012
+ } else {
1013
+ ref.$onReadyPromise$.then(() => setterSetVal());
1014
+ }
1015
+ }
1016
+ }
937
1017
  });
938
1018
  }
939
1019
  });
@@ -943,7 +1023,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
943
1023
  plt.jmp(() => {
944
1024
  var _a2;
945
1025
  const propName = attrNameToPropName.get(attrName);
946
- if (this.hasOwnProperty(propName)) {
1026
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
947
1027
  newValue = this[propName];
948
1028
  delete this[propName];
949
1029
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -963,7 +1043,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
963
1043
  }
964
1044
  return;
965
1045
  }
966
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1046
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1047
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1049
+ this[propName] = newValue;
1050
+ }
967
1051
  });
968
1052
  };
969
1053
  Cstr.observedAttributes = Array.from(
@@ -992,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
992
1076
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
993
1077
  const bundleId = cmpMeta.$lazyBundleId$;
994
1078
  if (bundleId) {
995
- const CstrImport = loadModule(cmpMeta);
1079
+ const CstrImport = loadModule(cmpMeta, hostRef);
996
1080
  if (CstrImport && "then" in CstrImport) {
997
1081
  const endLoad = uniqueTime();
998
1082
  Cstr = await CstrImport;
@@ -1014,7 +1098,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1014
1098
  try {
1015
1099
  new Cstr(hostRef);
1016
1100
  } catch (e) {
1017
- consoleError(e);
1101
+ consoleError(e, elm);
1018
1102
  }
1019
1103
  {
1020
1104
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1046,7 +1130,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1046
1130
  schedule();
1047
1131
  }
1048
1132
  };
1049
- var fireConnectedCallback = (instance) => {
1133
+ var fireConnectedCallback = (instance, elm) => {
1050
1134
  };
1051
1135
 
1052
1136
  // src/runtime/connected-callback.ts
@@ -1087,7 +1171,7 @@ var connectedCallback = (elm) => {
1087
1171
  endConnected();
1088
1172
  }
1089
1173
  };
1090
- var disconnectInstance = (instance) => {
1174
+ var disconnectInstance = (instance, elm) => {
1091
1175
  };
1092
1176
  var disconnectedCallback = async (elm) => {
1093
1177
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1102,6 +1186,12 @@ var disconnectedCallback = async (elm) => {
1102
1186
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1103
1187
  }
1104
1188
  }
1189
+ if (rootAppliedStyles.has(elm)) {
1190
+ rootAppliedStyles.delete(elm);
1191
+ }
1192
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1193
+ rootAppliedStyles.delete(elm.shadowRoot);
1194
+ }
1105
1195
  };
1106
1196
 
1107
1197
  // src/runtime/bootstrap-lazy.ts
@@ -1182,6 +1272,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1182
1272
  }
1183
1273
  disconnectedCallback() {
1184
1274
  plt.jmp(() => disconnectedCallback(this));
1275
+ plt.raf(() => {
1276
+ var _a3;
1277
+ const hostRef = getHostRef(this);
1278
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1279
+ if (i2 > -1) {
1280
+ deferredConnectedCallbacks.splice(i2, 1);
1281
+ }
1282
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1283
+ delete hostRef.$vnode$.$elm$;
1284
+ }
1285
+ });
1185
1286
  }
1186
1287
  componentOnReady() {
1187
1288
  return getHostRef(this).$onReadyPromise$;
@@ -1245,7 +1346,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1245
1346
  }
1246
1347
  }
1247
1348
  } catch (e) {
1248
- consoleError(e);
1349
+ consoleError(e, hostRef.$hostElement$);
1249
1350
  }
1250
1351
  };
1251
1352
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-e5bc7c81.js');
5
+ const index = require('./index-74d721d6.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.22.3",
7
+ "version": "4.26.0",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],