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