@everymatrix/mini-games-lobby 1.56.0 → 1.56.3

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 (25) hide show
  1. package/dist/cjs/{index-2c9f83af.js → index-d279ce11.js} +62 -187
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mini-games-lobby.cjs.entry.js +5 -182
  4. package/dist/cjs/mini-games-lobby.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/mini-games-lobby/mini-games-lobby.js +4 -41
  7. package/dist/esm/{index-25e6da1e.js → index-cae66e51.js} +62 -187
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/mini-games-lobby.entry.js +5 -182
  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-3ae7300f.entry.js +1 -0
  13. package/dist/mini-games-lobby/p-7bdde66e.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/packages/stencil/mini-games-lobby/stencil.config.d.ts +2 -0
  15. 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 +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/mini-games-lobby/p-10aa90b5.entry.js +0 -1
  19. package/dist/mini-games-lobby/p-14714f4a.js +0 -2
  20. 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 +0 -2
  21. 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 +0 -2
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/tools/plugins/index.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/mini-games-lobby/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'mini-games-lobby';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | 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
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -374,40 +369,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
374
369
  }
375
370
  if (!appliedStyles.has(scopeId2)) {
376
371
  {
377
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
372
+ styleElm = doc.createElement("style");
378
373
  styleElm.innerHTML = style;
379
374
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
380
375
  if (nonce != null) {
381
376
  styleElm.setAttribute("nonce", nonce);
382
377
  }
383
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
384
- if (styleContainerNode.nodeName === "HEAD") {
385
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
386
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
387
- styleContainerNode.insertBefore(
388
- styleElm,
389
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
390
- );
391
- } else if ("host" in styleContainerNode) {
392
- if (supportsConstructableStylesheets) {
393
- const stylesheet = new CSSStyleSheet();
394
- stylesheet.replaceSync(style);
395
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
396
- } else {
397
- const existingStyleContainer = styleContainerNode.querySelector("style");
398
- if (existingStyleContainer) {
399
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
400
- } else {
401
- styleContainerNode.prepend(styleElm);
402
- }
403
- }
404
- } else {
405
- styleContainerNode.append(styleElm);
406
- }
407
- }
408
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
409
- styleContainerNode.insertBefore(styleElm, null);
410
- }
378
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
411
379
  }
412
380
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
413
381
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -430,14 +398,14 @@ var attachStyles = (hostRef) => {
430
398
  const scopeId2 = addStyle(
431
399
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
432
400
  cmpMeta);
433
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
401
+ if (flags & 10 /* needsScopedEncapsulation */) {
434
402
  elm["s-sc"] = scopeId2;
435
403
  elm.classList.add(scopeId2 + "-h");
436
404
  }
437
405
  endAttachStyles();
438
406
  };
439
407
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
440
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
408
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
441
409
  if (oldValue !== newValue) {
442
410
  let isProp = isMemberInElement(elm, memberName);
443
411
  let ln = memberName.toLowerCase();
@@ -468,13 +436,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
468
436
  if (memberName === "list") {
469
437
  isProp = false;
470
438
  } else if (oldValue == null || elm[memberName] != n) {
471
- if (typeof elm.__lookupSetter__(memberName) === "function") {
472
- elm[memberName] = n;
473
- } else {
474
- elm.setAttribute(memberName, n);
475
- }
439
+ elm[memberName] = n;
476
440
  }
477
- } else if (elm[memberName] !== newValue) {
441
+ } else {
478
442
  elm[memberName] = newValue;
479
443
  }
480
444
  } catch (e) {
@@ -499,31 +463,19 @@ var CAPTURE_EVENT_SUFFIX = "Capture";
499
463
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
500
464
 
501
465
  // src/runtime/vdom/update-element.ts
502
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
466
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
503
467
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
504
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
505
- const newVnodeAttrs = newVnode.$attrs$ || {};
468
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
469
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
506
470
  {
507
471
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
508
472
  if (!(memberName in newVnodeAttrs)) {
509
- setAccessor(
510
- elm,
511
- memberName,
512
- oldVnodeAttrs[memberName],
513
- void 0,
514
- isSvgMode2,
515
- newVnode.$flags$);
473
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
516
474
  }
517
475
  }
518
476
  }
519
477
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
520
- setAccessor(
521
- elm,
522
- memberName,
523
- oldVnodeAttrs[memberName],
524
- newVnodeAttrs[memberName],
525
- isSvgMode2,
526
- newVnode.$flags$);
478
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
527
479
  }
528
480
  };
529
481
  function sortedAttrNames(attrNames) {
@@ -535,10 +487,13 @@ function sortedAttrNames(attrNames) {
535
487
  attrNames
536
488
  );
537
489
  }
490
+
491
+ // src/runtime/vdom/vdom-render.ts
492
+ var scopeId;
538
493
  var hostTagName;
539
494
  var useNativeShadowDom = false;
540
495
  var isSvgMode = false;
541
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
496
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
542
497
  const newVNode2 = newParentVNode.$children$[childIndex];
543
498
  let i2 = 0;
544
499
  let elm;
@@ -550,6 +505,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
550
505
  {
551
506
  updateElement(null, newVNode2, isSvgMode);
552
507
  }
508
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
509
+ elm.classList.add(elm["s-si"] = scopeId);
510
+ }
553
511
  if (newVNode2.$children$) {
554
512
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
555
513
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -678,9 +636,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
678
636
  if (!isInitialRender) {
679
637
  return leftVNode.$key$ === rightVNode.$key$;
680
638
  }
681
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
682
- leftVNode.$key$ = rightVNode.$key$;
683
- }
684
639
  return true;
685
640
  }
686
641
  return false;
@@ -699,18 +654,14 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
699
654
  updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
700
655
  } else if (newChildren !== null) {
701
656
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
702
- } else if (
703
- // don't do this on initial render as it can cause non-hydrated content to be removed
704
- !isInitialRender && BUILD.updatable && oldChildren !== null
705
- ) {
657
+ } else if (oldChildren !== null) {
706
658
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
707
659
  }
708
660
  }
709
661
  };
710
662
  var insertBefore = (parent, newNode, reference) => {
711
- {
712
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
713
- }
663
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
664
+ return inserted;
714
665
  };
715
666
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
716
667
  const hostElm = hostRef.$hostElement$;
@@ -729,21 +680,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
729
680
  rootVnode.$flags$ |= 4 /* isHost */;
730
681
  hostRef.$vnode$ = rootVnode;
731
682
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
732
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
683
+ {
684
+ scopeId = hostElm["s-sc"];
685
+ }
686
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
733
687
  patch(oldVNode, rootVnode, isInitialLoad);
734
688
  };
735
689
 
736
690
  // src/runtime/update-component.ts
737
691
  var attachToAncestor = (hostRef, ancestorComponent) => {
738
692
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
739
- const index = ancestorComponent["s-p"].push(
740
- new Promise(
741
- (r) => hostRef.$onRenderResolve$ = () => {
742
- ancestorComponent["s-p"].splice(index - 1, 1);
743
- r();
744
- }
745
- )
746
- );
693
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
747
694
  }
748
695
  };
749
696
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -770,7 +717,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
770
717
  let maybePromise;
771
718
  if (isInitialLoad) {
772
719
  {
773
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
720
+ maybePromise = safeCall(instance, "componentWillLoad");
774
721
  }
775
722
  }
776
723
  endSchedule();
@@ -844,7 +791,7 @@ var postUpdateComponent = (hostRef) => {
844
791
  addHydratedFlag(elm);
845
792
  }
846
793
  {
847
- safeCall(instance, "componentDidLoad", void 0, elm);
794
+ safeCall(instance, "componentDidLoad");
848
795
  }
849
796
  endPostUpdate();
850
797
  {
@@ -868,14 +815,17 @@ var postUpdateComponent = (hostRef) => {
868
815
  }
869
816
  };
870
817
  var appDidLoad = (who) => {
818
+ {
819
+ addHydratedFlag(doc.documentElement);
820
+ }
871
821
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
872
822
  };
873
- var safeCall = (instance, method, arg, elm) => {
823
+ var safeCall = (instance, method, arg) => {
874
824
  if (instance && instance[method]) {
875
825
  try {
876
826
  return instance[method](arg);
877
827
  } catch (e) {
878
- consoleError(e, elm);
828
+ consoleError(e);
879
829
  }
880
830
  }
881
831
  return void 0;
@@ -939,68 +889,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
939
889
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
940
890
  members.map(([memberName, [memberFlags]]) => {
941
891
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
942
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
943
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
944
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
945
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
946
- Object.defineProperty(prototype, memberName, {
947
- get() {
948
- {
949
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
950
- return getValue(this, memberName);
951
- }
952
- const ref = getHostRef(this);
953
- const instance = ref ? ref.$lazyInstance$ : prototype;
954
- if (!instance) return;
955
- return instance[memberName];
956
- }
957
- },
958
- configurable: true,
959
- enumerable: true
960
- });
961
- }
962
892
  Object.defineProperty(prototype, memberName, {
893
+ get() {
894
+ return getValue(this, memberName);
895
+ },
963
896
  set(newValue) {
964
- const ref = getHostRef(this);
965
- if (origSetter) {
966
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
967
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
968
- newValue = ref.$instanceValues$.get(memberName);
969
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
970
- ref.$instanceValues$.set(memberName, currentValue);
971
- }
972
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
973
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
974
- setValue(this, memberName, newValue, cmpMeta);
975
- return;
976
- }
977
- {
978
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
979
- setValue(this, memberName, newValue, cmpMeta);
980
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
981
- ref.$onReadyPromise$.then(() => {
982
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
983
- ref.$lazyInstance$[memberName] = newValue;
984
- }
985
- });
986
- }
987
- return;
988
- }
989
- const setterSetVal = () => {
990
- const currentValue = ref.$lazyInstance$[memberName];
991
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
992
- ref.$instanceValues$.set(memberName, currentValue);
993
- }
994
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
995
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
996
- };
997
- if (ref.$lazyInstance$) {
998
- setterSetVal();
999
- } else {
1000
- ref.$onReadyPromise$.then(() => setterSetVal());
1001
- }
1002
- }
1003
- }
897
+ setValue(this, memberName, newValue, cmpMeta);
898
+ },
899
+ configurable: true,
900
+ enumerable: true
1004
901
  });
1005
902
  }
1006
903
  });
@@ -1010,11 +907,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1010
907
  plt.jmp(() => {
1011
908
  var _a2;
1012
909
  const propName = attrNameToPropName.get(attrName);
1013
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
910
+ if (this.hasOwnProperty(propName)) {
1014
911
  newValue = this[propName];
1015
912
  delete this[propName];
1016
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1017
- this[propName] == newValue) {
913
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1018
914
  return;
1019
915
  } else if (propName == null) {
1020
916
  const hostRef = getHostRef(this);
@@ -1030,11 +926,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1030
926
  }
1031
927
  return;
1032
928
  }
1033
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1034
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1035
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1036
- this[propName] = newValue;
1037
- }
929
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1038
930
  });
1039
931
  };
1040
932
  Cstr.observedAttributes = Array.from(
@@ -1059,7 +951,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1059
951
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1060
952
  const bundleId = cmpMeta.$lazyBundleId$;
1061
953
  if (bundleId) {
1062
- const CstrImport = loadModule(cmpMeta, hostRef);
954
+ const CstrImport = loadModule(cmpMeta);
1063
955
  if (CstrImport && "then" in CstrImport) {
1064
956
  const endLoad = uniqueTime();
1065
957
  Cstr = await CstrImport;
@@ -1084,7 +976,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1084
976
  try {
1085
977
  new Cstr(hostRef);
1086
978
  } catch (e) {
1087
- consoleError(e, elm);
979
+ consoleError(e);
1088
980
  }
1089
981
  {
1090
982
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1119,7 +1011,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1119
1011
  schedule();
1120
1012
  }
1121
1013
  };
1122
- var fireConnectedCallback = (instance, elm) => {
1014
+ var fireConnectedCallback = (instance) => {
1123
1015
  };
1124
1016
 
1125
1017
  // src/runtime/connected-callback.ts
@@ -1159,7 +1051,7 @@ var connectedCallback = (elm) => {
1159
1051
  endConnected();
1160
1052
  }
1161
1053
  };
1162
- var disconnectInstance = (instance, elm) => {
1054
+ var disconnectInstance = (instance) => {
1163
1055
  };
1164
1056
  var disconnectedCallback = async (elm) => {
1165
1057
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1168,12 +1060,6 @@ var disconnectedCallback = async (elm) => {
1168
1060
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1169
1061
  }
1170
1062
  }
1171
- if (rootAppliedStyles.has(elm)) {
1172
- rootAppliedStyles.delete(elm);
1173
- }
1174
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1175
- rootAppliedStyles.delete(elm.shadowRoot);
1176
- }
1177
1063
  };
1178
1064
 
1179
1065
  // src/runtime/bootstrap-lazy.ts
@@ -1251,17 +1137,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1251
1137
  }
1252
1138
  disconnectedCallback() {
1253
1139
  plt.jmp(() => disconnectedCallback(this));
1254
- plt.raf(() => {
1255
- var _a3;
1256
- const hostRef = getHostRef(this);
1257
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1258
- if (i2 > -1) {
1259
- deferredConnectedCallbacks.splice(i2, 1);
1260
- }
1261
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1262
- delete hostRef.$vnode$.$elm$;
1263
- }
1264
- });
1265
1140
  }
1266
1141
  componentOnReady() {
1267
1142
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-2c9f83af.js');
5
+ const index = require('./index-d279ce11.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {