@everymatrix/mini-games-lobby 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/cjs/{index-60aa454b.js → index-2c9f83af.js} +153 -62
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mini-games-lobby.cjs.entry.js +182 -5
  4. package/dist/cjs/mini-games-lobby.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/mini-games-lobby/mini-games-lobby.js +41 -4
  7. package/dist/esm/{index-4ae384e0.js → index-25e6da1e.js} +153 -62
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/mini-games-lobby.entry.js +182 -5
  10. package/dist/esm/mini-games-lobby.js +3 -3
  11. package/dist/mini-games-lobby/mini-games-lobby.esm.js +1 -1
  12. package/dist/mini-games-lobby/p-10aa90b5.entry.js +1 -0
  13. package/dist/mini-games-lobby/p-14714f4a.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/packages/stencil/mini-games-lobby/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/packages/stencil/mini-games-lobby/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/mini-games-lobby/p-6b2ef1fa.js +0 -2
  18. package/dist/mini-games-lobby/p-6f4ccffc.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/packages/stencil/mini-games-lobby/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/packages/stencil/mini-games-lobby/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/mini-games-lobby/.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/mini-games-lobby/.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/mini-games-lobby/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-60aa454b.js');
5
+ const index = require('./index-2c9f83af.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mini-games-lobby.cjs.js', document.baseURI).href));
@@ -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": [],
@@ -1,16 +1,27 @@
1
+ import { __decorate, __metadata } from "tslib";
1
2
  import { h } from "@stencil/core";
2
3
  import { fetchGames, getUrl } from "../../utils/fetch";
3
4
  import { Games, GameLauncher } from "../../renders";
5
+ import { Locale } from "../../decorators/locale.decorator";
6
+ import { Style } from "../../decorators/style.decorator";
4
7
  export class MiniGamesLobby {
5
8
  constructor() {
6
- this.filter = undefined;
7
- this.session = undefined;
8
- this.endpoint = undefined;
9
+ /**
10
+ * Language of the widget
11
+ */
9
12
  this.language = 'en';
13
+ /**
14
+ * Client custom styling via string
15
+ */
10
16
  this.clientStyling = '';
17
+ /**
18
+ * Client custom styling via url
19
+ */
11
20
  this.clientStylingUrl = '';
21
+ /**
22
+ * translation via url
23
+ */
12
24
  this.translationUrl = '';
13
- this.locale = undefined;
14
25
  this.launchUrl = undefined;
15
26
  this.games = [];
16
27
  }
@@ -71,6 +82,8 @@ export class MiniGamesLobby {
71
82
  "tags": [],
72
83
  "text": "filter for interface /casino/games"
73
84
  },
85
+ "getter": false,
86
+ "setter": false,
74
87
  "attribute": "filter",
75
88
  "reflect": false
76
89
  },
@@ -88,6 +101,8 @@ export class MiniGamesLobby {
88
101
  "tags": [],
89
102
  "text": "User Session"
90
103
  },
104
+ "getter": false,
105
+ "setter": false,
91
106
  "attribute": "session",
92
107
  "reflect": false
93
108
  },
@@ -105,6 +120,8 @@ export class MiniGamesLobby {
105
120
  "tags": [],
106
121
  "text": "Endpoint URL for the source of data"
107
122
  },
123
+ "getter": false,
124
+ "setter": false,
108
125
  "attribute": "endpoint",
109
126
  "reflect": false
110
127
  },
@@ -122,6 +139,8 @@ export class MiniGamesLobby {
122
139
  "tags": [],
123
140
  "text": "Language of the widget"
124
141
  },
142
+ "getter": false,
143
+ "setter": false,
125
144
  "attribute": "language",
126
145
  "reflect": false,
127
146
  "defaultValue": "'en'"
@@ -140,6 +159,8 @@ export class MiniGamesLobby {
140
159
  "tags": [],
141
160
  "text": "Client custom styling via string"
142
161
  },
162
+ "getter": false,
163
+ "setter": false,
143
164
  "attribute": "client-styling",
144
165
  "reflect": false,
145
166
  "defaultValue": "''"
@@ -158,6 +179,8 @@ export class MiniGamesLobby {
158
179
  "tags": [],
159
180
  "text": "Client custom styling via url"
160
181
  },
182
+ "getter": false,
183
+ "setter": false,
161
184
  "attribute": "client-styling-url",
162
185
  "reflect": false,
163
186
  "defaultValue": "''"
@@ -176,6 +199,8 @@ export class MiniGamesLobby {
176
199
  "tags": [],
177
200
  "text": "translation via url"
178
201
  },
202
+ "getter": false,
203
+ "setter": false,
179
204
  "attribute": "translation-url",
180
205
  "reflect": false,
181
206
  "defaultValue": "''"
@@ -200,3 +225,15 @@ export class MiniGamesLobby {
200
225
  }];
201
226
  }
202
227
  }
228
+ __decorate([
229
+ Locale(),
230
+ __metadata("design:type", String)
231
+ ], MiniGamesLobby.prototype, "language", void 0);
232
+ __decorate([
233
+ Style(),
234
+ __metadata("design:type", String)
235
+ ], MiniGamesLobby.prototype, "clientStyling", void 0);
236
+ __decorate([
237
+ Style(),
238
+ __metadata("design:type", String)
239
+ ], MiniGamesLobby.prototype, "clientStylingUrl", void 0);
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'mini-games-lobby';
2
- const BUILD = /* mini-games-lobby */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, 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: 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: false, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* mini-games-lobby */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: true, cmpWillLoad: true, 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: 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: false, propMutable: false, propNumber: false, propString: true, reflect: false, 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: false, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: false, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | 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/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -347,7 +352,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
347
352
  }
348
353
  if (!appliedStyles.has(scopeId2)) {
349
354
  {
350
- styleElm = doc.createElement("style");
355
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
351
356
  styleElm.innerHTML = style;
352
357
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
353
358
  if (nonce != null) {
@@ -357,7 +362,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
357
362
  if (styleContainerNode.nodeName === "HEAD") {
358
363
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
359
364
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
360
- styleContainerNode.insertBefore(styleElm, referenceNode2);
365
+ styleContainerNode.insertBefore(
366
+ styleElm,
367
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
368
+ );
361
369
  } else if ("host" in styleContainerNode) {
362
370
  if (supportsConstructableStylesheets) {
363
371
  const stylesheet = new CSSStyleSheet();
@@ -375,7 +383,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
375
383
  styleContainerNode.append(styleElm);
376
384
  }
377
385
  }
378
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
386
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
379
387
  styleContainerNode.insertBefore(styleElm, null);
380
388
  }
381
389
  }
@@ -400,14 +408,14 @@ var attachStyles = (hostRef) => {
400
408
  const scopeId2 = addStyle(
401
409
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
402
410
  cmpMeta);
403
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
411
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
404
412
  elm["s-sc"] = scopeId2;
405
413
  elm.classList.add(scopeId2 + "-h");
406
414
  }
407
415
  endAttachStyles();
408
416
  };
409
417
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
410
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
418
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
411
419
  if (oldValue !== newValue) {
412
420
  let isProp = isMemberInElement(elm, memberName);
413
421
  let ln = memberName.toLowerCase();
@@ -444,7 +452,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
452
  elm.setAttribute(memberName, n);
445
453
  }
446
454
  }
447
- } else {
455
+ } else if (elm[memberName] !== newValue) {
448
456
  elm[memberName] = newValue;
449
457
  }
450
458
  } catch (e) {
@@ -469,19 +477,31 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
469
477
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
470
478
 
471
479
  // src/runtime/vdom/update-element.ts
472
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
480
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
473
481
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
474
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
475
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
482
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
483
+ const newVnodeAttrs = newVnode.$attrs$ || {};
476
484
  {
477
485
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
478
486
  if (!(memberName in newVnodeAttrs)) {
479
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
487
+ setAccessor(
488
+ elm,
489
+ memberName,
490
+ oldVnodeAttrs[memberName],
491
+ void 0,
492
+ isSvgMode2,
493
+ newVnode.$flags$);
480
494
  }
481
495
  }
482
496
  }
483
497
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
484
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
498
+ setAccessor(
499
+ elm,
500
+ memberName,
501
+ oldVnodeAttrs[memberName],
502
+ newVnodeAttrs[memberName],
503
+ isSvgMode2,
504
+ newVnode.$flags$);
485
505
  }
486
506
  };
487
507
  function sortedAttrNames(attrNames) {
@@ -493,13 +513,10 @@ function sortedAttrNames(attrNames) {
493
513
  attrNames
494
514
  );
495
515
  }
496
-
497
- // src/runtime/vdom/vdom-render.ts
498
- var scopeId;
499
516
  var hostTagName;
500
517
  var useNativeShadowDom = false;
501
518
  var isSvgMode = false;
502
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
519
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
503
520
  const newVNode2 = newParentVNode.$children$[childIndex];
504
521
  let i2 = 0;
505
522
  let elm;
@@ -511,11 +528,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
511
528
  {
512
529
  updateElement(null, newVNode2, isSvgMode);
513
530
  }
514
- const rootNode = elm.getRootNode();
515
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
516
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
517
- elm.classList.add(elm["s-si"] = scopeId);
518
- }
519
531
  if (newVNode2.$children$) {
520
532
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
521
533
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -644,6 +656,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
644
656
  if (!isInitialRender) {
645
657
  return leftVNode.$key$ === rightVNode.$key$;
646
658
  }
659
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
660
+ leftVNode.$key$ = rightVNode.$key$;
661
+ }
647
662
  return true;
648
663
  }
649
664
  return false;
@@ -671,8 +686,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
671
686
  }
672
687
  };
673
688
  var insertBefore = (parent, newNode, reference) => {
674
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
675
- return inserted;
689
+ {
690
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
691
+ }
676
692
  };
677
693
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
678
694
  const hostElm = hostRef.$hostElement$;
@@ -691,17 +707,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
691
707
  rootVnode.$flags$ |= 4 /* isHost */;
692
708
  hostRef.$vnode$ = rootVnode;
693
709
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
694
- {
695
- scopeId = hostElm["s-sc"];
696
- }
697
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
710
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
698
711
  patch(oldVNode, rootVnode, isInitialLoad);
699
712
  };
700
713
 
701
714
  // src/runtime/update-component.ts
702
715
  var attachToAncestor = (hostRef, ancestorComponent) => {
703
716
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
704
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
717
+ const index = ancestorComponent["s-p"].push(
718
+ new Promise(
719
+ (r) => hostRef.$onRenderResolve$ = () => {
720
+ ancestorComponent["s-p"].splice(index - 1, 1);
721
+ r();
722
+ }
723
+ )
724
+ );
705
725
  }
706
726
  };
707
727
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -728,7 +748,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
728
748
  let maybePromise;
729
749
  if (isInitialLoad) {
730
750
  {
731
- maybePromise = safeCall(instance, "componentWillLoad");
751
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
732
752
  }
733
753
  }
734
754
  endSchedule();
@@ -802,7 +822,7 @@ var postUpdateComponent = (hostRef) => {
802
822
  addHydratedFlag(elm);
803
823
  }
804
824
  {
805
- safeCall(instance, "componentDidLoad");
825
+ safeCall(instance, "componentDidLoad", void 0, elm);
806
826
  }
807
827
  endPostUpdate();
808
828
  {
@@ -826,17 +846,14 @@ var postUpdateComponent = (hostRef) => {
826
846
  }
827
847
  };
828
848
  var appDidLoad = (who) => {
829
- {
830
- addHydratedFlag(doc.documentElement);
831
- }
832
849
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
833
850
  };
834
- var safeCall = (instance, method, arg) => {
851
+ var safeCall = (instance, method, arg, elm) => {
835
852
  if (instance && instance[method]) {
836
853
  try {
837
854
  return instance[method](arg);
838
855
  } catch (e) {
839
- consoleError(e);
856
+ consoleError(e, elm);
840
857
  }
841
858
  }
842
859
  return void 0;
@@ -900,15 +917,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
900
917
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
901
918
  members.map(([memberName, [memberFlags]]) => {
902
919
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
920
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
921
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
922
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
923
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
924
+ Object.defineProperty(prototype, memberName, {
925
+ get() {
926
+ {
927
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
928
+ return getValue(this, memberName);
929
+ }
930
+ const ref = getHostRef(this);
931
+ const instance = ref ? ref.$lazyInstance$ : prototype;
932
+ if (!instance) return;
933
+ return instance[memberName];
934
+ }
935
+ },
936
+ configurable: true,
937
+ enumerable: true
938
+ });
939
+ }
903
940
  Object.defineProperty(prototype, memberName, {
904
- get() {
905
- return getValue(this, memberName);
906
- },
907
941
  set(newValue) {
908
- setValue(this, memberName, newValue, cmpMeta);
909
- },
910
- configurable: true,
911
- enumerable: true
942
+ const ref = getHostRef(this);
943
+ if (origSetter) {
944
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
945
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
946
+ newValue = ref.$instanceValues$.get(memberName);
947
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
948
+ ref.$instanceValues$.set(memberName, currentValue);
949
+ }
950
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
951
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
952
+ setValue(this, memberName, newValue, cmpMeta);
953
+ return;
954
+ }
955
+ {
956
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
957
+ setValue(this, memberName, newValue, cmpMeta);
958
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
959
+ ref.$onReadyPromise$.then(() => {
960
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
961
+ ref.$lazyInstance$[memberName] = newValue;
962
+ }
963
+ });
964
+ }
965
+ return;
966
+ }
967
+ const setterSetVal = () => {
968
+ const currentValue = ref.$lazyInstance$[memberName];
969
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
970
+ ref.$instanceValues$.set(memberName, currentValue);
971
+ }
972
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
973
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
974
+ };
975
+ if (ref.$lazyInstance$) {
976
+ setterSetVal();
977
+ } else {
978
+ ref.$onReadyPromise$.then(() => setterSetVal());
979
+ }
980
+ }
981
+ }
912
982
  });
913
983
  }
914
984
  });
@@ -918,7 +988,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
918
988
  plt.jmp(() => {
919
989
  var _a2;
920
990
  const propName = attrNameToPropName.get(attrName);
921
- if (this.hasOwnProperty(propName)) {
991
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
922
992
  newValue = this[propName];
923
993
  delete this[propName];
924
994
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -938,7 +1008,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
938
1008
  }
939
1009
  return;
940
1010
  }
941
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1011
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1012
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1013
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1014
+ this[propName] = newValue;
1015
+ }
942
1016
  });
943
1017
  };
944
1018
  Cstr.observedAttributes = Array.from(
@@ -963,7 +1037,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
963
1037
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
964
1038
  const bundleId = cmpMeta.$lazyBundleId$;
965
1039
  if (bundleId) {
966
- const CstrImport = loadModule(cmpMeta);
1040
+ const CstrImport = loadModule(cmpMeta, hostRef);
967
1041
  if (CstrImport && "then" in CstrImport) {
968
1042
  const endLoad = uniqueTime();
969
1043
  Cstr = await CstrImport;
@@ -988,7 +1062,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
988
1062
  try {
989
1063
  new Cstr(hostRef);
990
1064
  } catch (e) {
991
- consoleError(e);
1065
+ consoleError(e, elm);
992
1066
  }
993
1067
  {
994
1068
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1023,7 +1097,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1023
1097
  schedule();
1024
1098
  }
1025
1099
  };
1026
- var fireConnectedCallback = (instance) => {
1100
+ var fireConnectedCallback = (instance, elm) => {
1027
1101
  };
1028
1102
 
1029
1103
  // src/runtime/connected-callback.ts
@@ -1063,7 +1137,7 @@ var connectedCallback = (elm) => {
1063
1137
  endConnected();
1064
1138
  }
1065
1139
  };
1066
- var disconnectInstance = (instance) => {
1140
+ var disconnectInstance = (instance, elm) => {
1067
1141
  };
1068
1142
  var disconnectedCallback = async (elm) => {
1069
1143
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1072,6 +1146,12 @@ var disconnectedCallback = async (elm) => {
1072
1146
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1073
1147
  }
1074
1148
  }
1149
+ if (rootAppliedStyles.has(elm)) {
1150
+ rootAppliedStyles.delete(elm);
1151
+ }
1152
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1153
+ rootAppliedStyles.delete(elm.shadowRoot);
1154
+ }
1075
1155
  };
1076
1156
 
1077
1157
  // src/runtime/bootstrap-lazy.ts
@@ -1149,6 +1229,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1149
1229
  }
1150
1230
  disconnectedCallback() {
1151
1231
  plt.jmp(() => disconnectedCallback(this));
1232
+ plt.raf(() => {
1233
+ var _a3;
1234
+ const hostRef = getHostRef(this);
1235
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1236
+ if (i2 > -1) {
1237
+ deferredConnectedCallbacks.splice(i2, 1);
1238
+ }
1239
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1240
+ delete hostRef.$vnode$.$elm$;
1241
+ }
1242
+ });
1152
1243
  }
1153
1244
  componentOnReady() {
1154
1245
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-4ae384e0.js';
2
- export { s as setNonce } from './index-4ae384e0.js';
1
+ import { b as bootstrapLazy } from './index-25e6da1e.js';
2
+ export { s as setNonce } from './index-25e6da1e.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {