@everymatrix/casino-tournament-banner 1.52.6 → 1.53.10

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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ceec4c54.js');
5
+ const index = require('./index-09fa6b02.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const TRANSLATIONS$1 = {
@@ -6089,41 +6089,39 @@ const CasinoTournamentBannerStyle0 = casinoTournamentBannerCss;
6089
6089
  const CasinoTournamentBanner = class {
6090
6090
  constructor(hostRef) {
6091
6091
  index.registerInstance(this, hostRef);
6092
- this.useEvent = undefined;
6093
- this.endpoint = undefined;
6094
- this.state = undefined;
6095
- this.enrolled = undefined;
6096
- this.startTime = undefined;
6097
- this.endTime = undefined;
6098
- this.thumbnail = undefined;
6099
- this.language = undefined;
6100
- this.showCalendar = undefined;
6101
- this.shortStart = undefined;
6092
+ /**
6093
+ * Short start time format
6094
+ */
6102
6095
  this.shortstartformat = 'DD MMM YYYY';
6096
+ /**
6097
+ * Show date on widget
6098
+ */
6103
6099
  this.showDate = true;
6100
+ /**
6101
+ * Show date on running state tournament tag
6102
+ */
6104
6103
  this.showRunningDate = false;
6104
+ /**
6105
+ * Show check icon on enrolled tag
6106
+ */
6105
6107
  this.showCheck = false;
6108
+ /**
6109
+ * Widget display as a card
6110
+ */
6106
6111
  this.cardMode = false;
6107
- this.nameOrTitle = undefined;
6108
- this.description = undefined;
6109
- this.tournamentId = undefined;
6110
- this.session = undefined;
6111
- this.loginEvent = undefined;
6112
- this.loginUrl = undefined;
6113
- this.registerEvent = undefined;
6114
- this.registerUrl = undefined;
6115
- this.currency = undefined;
6116
- this.bonusCode = undefined;
6112
+ /**
6113
+ * Show read more button
6114
+ */
6117
6115
  this.showReadMore = false;
6116
+ /**
6117
+ * Client custom styling via inline styles
6118
+ */
6118
6119
  this.clientStyling = '';
6120
+ /**
6121
+ * Client custom styling via url
6122
+ */
6119
6123
  this.clientStylingUrl = '';
6120
- this.translationData = undefined;
6121
- this.stateText = undefined;
6122
6124
  this.limitStylingAppends = false;
6123
- this.startdate = undefined;
6124
- this.tournamentLeftDays = undefined;
6125
- this.showRemain = undefined;
6126
- this.durationInterval = undefined;
6127
6125
  }
6128
6126
  watchLanguage(newValue, oldValue) {
6129
6127
  if (newValue && newValue != oldValue) {
@@ -6681,21 +6679,22 @@ const CasinoTournamentButtons = class {
6681
6679
  constructor(hostRef) {
6682
6680
  index.registerInstance(this, hostRef);
6683
6681
  this.userEnrolled = index.createEvent(this, "TournamentUserEnrolled", 7);
6684
- this.language = undefined;
6685
- this.tournamentId = undefined;
6686
- this.session = undefined;
6687
- this.loginEvent = undefined;
6688
- this.loginUrl = undefined;
6689
- this.registerEvent = undefined;
6690
- this.registerUrl = undefined;
6691
- this.endpoint = undefined;
6692
- this.currency = undefined;
6693
- this.bonusCode = undefined;
6682
+ /**
6683
+ * Player enrolled
6684
+ */
6694
6685
  this.enrolled = false;
6686
+ /**
6687
+ * Show read more button
6688
+ */
6695
6689
  this.showReadMore = false;
6690
+ /**
6691
+ * Client custom styling via inline styles
6692
+ */
6696
6693
  this.clientStyling = '';
6694
+ /**
6695
+ * Client custom styling via url
6696
+ */
6697
6697
  this.clientStylingUrl = '';
6698
- this.translationData = undefined;
6699
6698
  this.limitStylingAppends = false;
6700
6699
  this.joinButtonLoading = false;
6701
6700
  this.errorJoin = false;
@@ -21,19 +21,27 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'casino-tournament-banner';
24
- const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: 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: false, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* casino-tournament-banner */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: 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: false, 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: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.25.1 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
+
35
+ // src/utils/constants.ts
36
+ var SVG_NS = "http://www.w3.org/2000/svg";
37
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
38
+
39
+ // src/client/client-host-ref.ts
34
40
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
41
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
42
+ var registerInstance = (lazyInstance, hostRef) => {
43
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
44
+ };
37
45
  var registerHost = (hostElement, cmpMeta) => {
38
46
  const hostRef = {
39
47
  $flags$: 0,
@@ -46,7 +54,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
54
  hostElement["s-p"] = [];
47
55
  hostElement["s-rc"] = [];
48
56
  }
49
- return hostRefs.set(hostElement, hostRef);
57
+ const ref = hostRefs.set(hostElement, hostRef);
58
+ return ref;
50
59
  };
51
60
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
61
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +92,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
92
  /* webpackExclude: /\.system\.entry\.js$/ */
84
93
  /* webpackMode: "lazy" */
85
94
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
95
+ )); }).then(
96
+ (importedModule) => {
97
+ {
98
+ cmpModules.set(bundleId, importedModule);
99
+ }
100
+ return importedModule[exportName];
101
+ },
102
+ (e) => {
103
+ consoleError(e, hostRef.$hostElement$);
89
104
  }
90
- return importedModule[exportName];
91
- }, consoleError);
105
+ );
92
106
  };
93
107
 
94
108
  // src/client/client-style.ts
95
109
  var styles = /* @__PURE__ */ new Map();
110
+ var HYDRATED_STYLE_ID = "sty-id";
96
111
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
112
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
113
  var win = typeof window !== "undefined" ? window : {};
@@ -166,14 +181,6 @@ var flush = () => {
166
181
  };
167
182
  var nextTick = (cb) => promiseResolve().then(cb);
168
183
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
-
170
- // src/utils/constants.ts
171
- var EMPTY_OBJ = {};
172
- var SVG_NS = "http://www.w3.org/2000/svg";
173
- var HTML_NS = "http://www.w3.org/1999/xhtml";
174
-
175
- // src/utils/helpers.ts
176
- var isDef = (v) => v != null;
177
184
  var isComplexType = (o) => {
178
185
  o = typeof o;
179
186
  return o === "object" || o === "function";
@@ -374,7 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
381
  }
375
382
  if (!appliedStyles.has(scopeId2)) {
376
383
  {
377
- styleElm = doc.createElement("style");
384
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
385
  styleElm.innerHTML = style;
379
386
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
380
387
  if (nonce != null) {
@@ -384,7 +391,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
384
391
  if (styleContainerNode.nodeName === "HEAD") {
385
392
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
386
393
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
387
- styleContainerNode.insertBefore(styleElm, referenceNode2);
394
+ styleContainerNode.insertBefore(
395
+ styleElm,
396
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
397
+ );
388
398
  } else if ("host" in styleContainerNode) {
389
399
  if (supportsConstructableStylesheets) {
390
400
  const stylesheet = new CSSStyleSheet();
@@ -434,16 +444,18 @@ var attachStyles = (hostRef) => {
434
444
  endAttachStyles();
435
445
  };
436
446
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
437
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
438
448
  if (oldValue !== newValue) {
439
449
  let isProp = isMemberInElement(elm, memberName);
440
450
  let ln = memberName.toLowerCase();
441
451
  if (memberName === "class") {
442
452
  const classList = elm.classList;
443
453
  const oldClasses = parseClassList(oldValue);
444
- const newClasses = parseClassList(newValue);
445
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
446
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
454
+ let newClasses = parseClassList(newValue);
455
+ {
456
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
457
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
+ }
447
459
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
448
460
  if (memberName[2] === "-") {
449
461
  memberName = memberName.slice(3);
@@ -477,7 +489,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
477
489
  elm.setAttribute(memberName, n);
478
490
  }
479
491
  }
480
- } else {
492
+ } else if (elm[memberName] !== newValue) {
481
493
  elm[memberName] = newValue;
482
494
  }
483
495
  } catch (e) {
@@ -499,24 +511,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
499
511
  }
500
512
  };
501
513
  var parseClassListRegex = /\s/;
502
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
514
+ var parseClassList = (value) => {
515
+ if (typeof value === "object" && value && "baseVal" in value) {
516
+ value = value.baseVal;
517
+ }
518
+ if (!value || typeof value !== "string") {
519
+ return [];
520
+ }
521
+ return value.split(parseClassListRegex);
522
+ };
503
523
  var CAPTURE_EVENT_SUFFIX = "Capture";
504
524
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
505
525
 
506
526
  // src/runtime/vdom/update-element.ts
507
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
527
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
508
528
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
509
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
510
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
529
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
530
+ const newVnodeAttrs = newVnode.$attrs$ || {};
511
531
  {
512
532
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
513
533
  if (!(memberName in newVnodeAttrs)) {
514
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
534
+ setAccessor(
535
+ elm,
536
+ memberName,
537
+ oldVnodeAttrs[memberName],
538
+ void 0,
539
+ isSvgMode2,
540
+ newVnode.$flags$);
515
541
  }
516
542
  }
517
543
  }
518
544
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
519
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
545
+ setAccessor(
546
+ elm,
547
+ memberName,
548
+ oldVnodeAttrs[memberName],
549
+ newVnodeAttrs[memberName],
550
+ isSvgMode2,
551
+ newVnode.$flags$);
520
552
  }
521
553
  };
522
554
  function sortedAttrNames(attrNames) {
@@ -528,13 +560,10 @@ function sortedAttrNames(attrNames) {
528
560
  attrNames
529
561
  );
530
562
  }
531
-
532
- // src/runtime/vdom/vdom-render.ts
533
- var scopeId;
534
563
  var hostTagName;
535
564
  var useNativeShadowDom = false;
536
565
  var isSvgMode = false;
537
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
566
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
538
567
  const newVNode2 = newParentVNode.$children$[childIndex];
539
568
  let i2 = 0;
540
569
  let elm;
@@ -555,11 +584,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
555
584
  {
556
585
  updateElement(null, newVNode2, isSvgMode);
557
586
  }
558
- const rootNode = elm.getRootNode();
559
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
560
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
561
- elm.classList.add(elm["s-si"] = scopeId);
562
- }
563
587
  if (newVNode2.$children$) {
564
588
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
565
589
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -695,6 +719,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
695
719
  if (!isInitialRender) {
696
720
  return leftVNode.$key$ === rightVNode.$key$;
697
721
  }
722
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
723
+ leftVNode.$key$ = rightVNode.$key$;
724
+ }
698
725
  return true;
699
726
  }
700
727
  return false;
@@ -735,8 +762,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
735
762
  }
736
763
  };
737
764
  var insertBefore = (parent, newNode, reference) => {
738
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
739
- return inserted;
765
+ {
766
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
767
+ }
740
768
  };
741
769
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
742
770
  const hostElm = hostRef.$hostElement$;
@@ -761,9 +789,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
761
789
  rootVnode.$flags$ |= 4 /* isHost */;
762
790
  hostRef.$vnode$ = rootVnode;
763
791
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
764
- {
765
- scopeId = hostElm["s-sc"];
766
- }
767
792
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
768
793
  patch(oldVNode, rootVnode, isInitialLoad);
769
794
  };
@@ -771,7 +796,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
771
796
  // src/runtime/update-component.ts
772
797
  var attachToAncestor = (hostRef, ancestorComponent) => {
773
798
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
774
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
799
+ const index = ancestorComponent["s-p"].push(
800
+ new Promise(
801
+ (r) => hostRef.$onRenderResolve$ = () => {
802
+ ancestorComponent["s-p"].splice(index - 1, 1);
803
+ r();
804
+ }
805
+ )
806
+ );
775
807
  }
776
808
  };
777
809
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -800,12 +832,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
800
832
  {
801
833
  hostRef.$flags$ |= 256 /* isListenReady */;
802
834
  if (hostRef.$queuedListeners$) {
803
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
835
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
804
836
  hostRef.$queuedListeners$ = void 0;
805
837
  }
806
838
  }
807
839
  {
808
- maybePromise = safeCall(instance, "componentWillLoad");
840
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
809
841
  }
810
842
  }
811
843
  endSchedule();
@@ -874,7 +906,7 @@ var postUpdateComponent = (hostRef) => {
874
906
  const instance = hostRef.$lazyInstance$ ;
875
907
  const ancestorComponent = hostRef.$ancestorComponent$;
876
908
  {
877
- safeCall(instance, "componentDidRender");
909
+ safeCall(instance, "componentDidRender", void 0, elm);
878
910
  }
879
911
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
880
912
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -908,12 +940,12 @@ var appDidLoad = (who) => {
908
940
  }
909
941
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
910
942
  };
911
- var safeCall = (instance, method, arg) => {
943
+ var safeCall = (instance, method, arg, elm) => {
912
944
  if (instance && instance[method]) {
913
945
  try {
914
946
  return instance[method](arg);
915
947
  } catch (e) {
916
- consoleError(e);
948
+ consoleError(e, elm);
917
949
  }
918
950
  }
919
951
  return void 0;
@@ -972,15 +1004,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
972
1004
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
973
1005
  members.map(([memberName, [memberFlags]]) => {
974
1006
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1007
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1008
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1009
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1010
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
1011
+ Object.defineProperty(prototype, memberName, {
1012
+ get() {
1013
+ {
1014
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1015
+ return getValue(this, memberName);
1016
+ }
1017
+ const ref = getHostRef(this);
1018
+ const instance = ref ? ref.$lazyInstance$ : prototype;
1019
+ if (!instance) return;
1020
+ return instance[memberName];
1021
+ }
1022
+ },
1023
+ configurable: true,
1024
+ enumerable: true
1025
+ });
1026
+ }
975
1027
  Object.defineProperty(prototype, memberName, {
976
- get() {
977
- return getValue(this, memberName);
978
- },
979
1028
  set(newValue) {
980
- setValue(this, memberName, newValue, cmpMeta);
981
- },
982
- configurable: true,
983
- enumerable: true
1029
+ const ref = getHostRef(this);
1030
+ if (origSetter) {
1031
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1032
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1033
+ newValue = ref.$instanceValues$.get(memberName);
1034
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1035
+ ref.$instanceValues$.set(memberName, currentValue);
1036
+ }
1037
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1038
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1039
+ setValue(this, memberName, newValue, cmpMeta);
1040
+ return;
1041
+ }
1042
+ {
1043
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1044
+ setValue(this, memberName, newValue, cmpMeta);
1045
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1046
+ ref.$onReadyPromise$.then(() => {
1047
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1048
+ ref.$lazyInstance$[memberName] = newValue;
1049
+ }
1050
+ });
1051
+ }
1052
+ return;
1053
+ }
1054
+ const setterSetVal = () => {
1055
+ const currentValue = ref.$lazyInstance$[memberName];
1056
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1057
+ ref.$instanceValues$.set(memberName, currentValue);
1058
+ }
1059
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1060
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1061
+ };
1062
+ if (ref.$lazyInstance$) {
1063
+ setterSetVal();
1064
+ } else {
1065
+ ref.$onReadyPromise$.then(() => setterSetVal());
1066
+ }
1067
+ }
1068
+ }
984
1069
  });
985
1070
  }
986
1071
  });
@@ -990,7 +1075,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
1075
  plt.jmp(() => {
991
1076
  var _a2;
992
1077
  const propName = attrNameToPropName.get(attrName);
993
- if (this.hasOwnProperty(propName)) {
1078
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
994
1079
  newValue = this[propName];
995
1080
  delete this[propName];
996
1081
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1010,7 +1095,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1010
1095
  }
1011
1096
  return;
1012
1097
  }
1013
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1098
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1099
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1100
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1101
+ this[propName] = newValue;
1102
+ }
1014
1103
  });
1015
1104
  };
1016
1105
  Cstr.observedAttributes = Array.from(
@@ -1037,9 +1126,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1037
1126
  let Cstr;
1038
1127
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
1039
1128
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1040
- const bundleId = cmpMeta.$lazyBundleId$;
1041
- if (bundleId) {
1042
- const CstrImport = loadModule(cmpMeta);
1129
+ {
1130
+ const CstrImport = loadModule(cmpMeta, hostRef);
1043
1131
  if (CstrImport && "then" in CstrImport) {
1044
1132
  const endLoad = uniqueTime();
1045
1133
  Cstr = await CstrImport;
@@ -1064,7 +1152,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1064
1152
  try {
1065
1153
  new Cstr(hostRef);
1066
1154
  } catch (e) {
1067
- consoleError(e);
1155
+ consoleError(e, elm);
1068
1156
  }
1069
1157
  {
1070
1158
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1073,10 +1161,6 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
1161
  hostRef.$flags$ |= 128 /* isWatchReady */;
1074
1162
  }
1075
1163
  endNewInstance();
1076
- } else {
1077
- Cstr = elm.constructor;
1078
- const cmpTag = elm.localName;
1079
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1080
1164
  }
1081
1165
  if (Cstr && Cstr.style) {
1082
1166
  let style;
@@ -1099,7 +1183,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
1183
  schedule();
1100
1184
  }
1101
1185
  };
1102
- var fireConnectedCallback = (instance) => {
1186
+ var fireConnectedCallback = (instance, elm) => {
1103
1187
  };
1104
1188
 
1105
1189
  // src/runtime/connected-callback.ts
@@ -1140,7 +1224,7 @@ var connectedCallback = (elm) => {
1140
1224
  endConnected();
1141
1225
  }
1142
1226
  };
1143
- var disconnectInstance = (instance) => {
1227
+ var disconnectInstance = (instance, elm) => {
1144
1228
  };
1145
1229
  var disconnectedCallback = async (elm) => {
1146
1230
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1155,6 +1239,12 @@ var disconnectedCallback = async (elm) => {
1155
1239
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1156
1240
  }
1157
1241
  }
1242
+ if (rootAppliedStyles.has(elm)) {
1243
+ rootAppliedStyles.delete(elm);
1244
+ }
1245
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1246
+ rootAppliedStyles.delete(elm.shadowRoot);
1247
+ }
1158
1248
  };
1159
1249
 
1160
1250
  // src/runtime/bootstrap-lazy.ts
@@ -1239,6 +1329,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1239
1329
  }
1240
1330
  disconnectedCallback() {
1241
1331
  plt.jmp(() => disconnectedCallback(this));
1332
+ plt.raf(() => {
1333
+ var _a3;
1334
+ const hostRef = getHostRef(this);
1335
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1336
+ delete hostRef.$vnode$.$elm$;
1337
+ }
1338
+ });
1242
1339
  }
1243
1340
  componentOnReady() {
1244
1341
  return getHostRef(this).$onReadyPromise$;
@@ -1302,7 +1399,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1302
1399
  }
1303
1400
  }
1304
1401
  } catch (e) {
1305
- consoleError(e);
1402
+ consoleError(e, hostRef.$hostElement$);
1306
1403
  }
1307
1404
  };
1308
1405
  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-ceec4c54.js');
5
+ const index = require('./index-09fa6b02.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.25.1",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [