@everymatrix/lottery-game-details 1.53.0 → 1.53.11

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 (20) hide show
  1. package/dist/cjs/helper-accordion_4.cjs.entry.js +105 -46
  2. package/dist/cjs/{index-ed0fb832.js → index-615c4fc5.js} +164 -69
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/lottery-game-details.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/lottery-game-details/lottery-game-details.js +21 -7
  7. package/dist/esm/helper-accordion_4.entry.js +105 -46
  8. package/dist/esm/{index-74e7562d.js → index-87f5c36e.js} +164 -69
  9. package/dist/esm/loader.js +2 -2
  10. package/dist/esm/lottery-game-details.js +3 -3
  11. package/dist/lottery-game-details/lottery-game-details.esm.js +1 -1
  12. package/dist/lottery-game-details/p-a6734e8b.js +2 -0
  13. package/dist/lottery-game-details/p-ee88afe7.entry.js +1 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/lottery-game-details/p-5cd0d26d.entry.js +0 -1
  18. package/dist/lottery-game-details/p-c3ab4585.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-game-details/.stencil/packages/stencil/lottery-game-details/stencil.config.dev.d.ts +0 -2
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ed0fb832.js');
5
+ const index = require('./index-615c4fc5.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'hr'];
@@ -35,32 +35,67 @@ const HelperAccordion = class {
35
35
  constructor(hostRef) {
36
36
  index.registerInstance(this, hostRef);
37
37
  this.accordionEvent = index.createEvent(this, "helperAccordionAction", 7);
38
- this.setClientStyling = () => {
39
- let sheet = document.createElement('style');
40
- sheet.innerHTML = this.clientStyling;
41
- this.stylingContainer.prepend(sheet);
42
- };
43
- this.setClientStylingURL = () => {
44
- let cssFile = document.createElement('style');
45
- setTimeout(() => {
46
- cssFile.innerHTML = this.clientStylingUrlContent;
47
- this.stylingContainer.prepend(cssFile);
48
- }, 1);
49
- };
38
+ /**
39
+ * Flag for ticket history
40
+ */
50
41
  this.ticketHistoryFlag = false;
42
+ /**
43
+ * Title (top header)
44
+ */
51
45
  this.headerTitle = '';
46
+ /**
47
+ * SubTitle (top header)
48
+ */
52
49
  this.headerSubtitle = '';
50
+ /**
51
+ * Description
52
+ */
53
53
  this.description = '';
54
+ /**
55
+ * Enables footer content
56
+ */
54
57
  this.footer = false;
58
+ /**
59
+ * Enables footer button for tab deletion
60
+ */
55
61
  this.deleteTab = false;
62
+ /**
63
+ * Activates postMessages as events for actions from the widget
64
+ */
56
65
  this.postMessage = false;
66
+ /**
67
+ * Name of the event emitter by the action button
68
+ */
57
69
  this.eventName = 'helperAccordionAction';
70
+ /**
71
+ * Collapsed
72
+ */
58
73
  this.collapsed = true;
74
+ /**
75
+ * Language
76
+ */
59
77
  this.language = 'en';
78
+ /**
79
+ * Client custom styling via string
80
+ */
60
81
  this.clientStyling = '';
82
+ /**
83
+ * Client custom styling via url content
84
+ */
61
85
  this.clientStylingUrlContent = '';
62
- this.showContent = undefined;
63
86
  this.limitStylingAppends = false;
87
+ this.setClientStyling = () => {
88
+ let sheet = document.createElement('style');
89
+ sheet.innerHTML = this.clientStyling;
90
+ this.stylingContainer.prepend(sheet);
91
+ };
92
+ this.setClientStylingURL = () => {
93
+ let cssFile = document.createElement('style');
94
+ setTimeout(() => {
95
+ cssFile.innerHTML = this.clientStylingUrlContent;
96
+ this.stylingContainer.prepend(cssFile);
97
+ }, 1);
98
+ };
64
99
  }
65
100
  // @TODO fix the `any` type :)
66
101
  connectedCallback() {
@@ -152,6 +187,24 @@ const HelperTabStyle0 = helperTabCss;
152
187
  const HelperTab = class {
153
188
  constructor(hostRef) {
154
189
  index.registerInstance(this, hostRef);
190
+ /**
191
+ * Selected index
192
+ */
193
+ this.selectedIndex = 0;
194
+ /**
195
+ * Client custom styling via string
196
+ */
197
+ this.clientStyling = '';
198
+ /**
199
+ * Client custom styling via url content
200
+ */
201
+ this.clientStylingUrlContent = '';
202
+ /**
203
+ * Language of the widget
204
+ */
205
+ this.language = 'en';
206
+ this.tabContent = '';
207
+ this.limitStylingAppends = false;
155
208
  this.setClientStyling = () => {
156
209
  let sheet = document.createElement('style');
157
210
  sheet.innerHTML = this.clientStyling;
@@ -164,17 +217,6 @@ const HelperTab = class {
164
217
  this.stylingContainer.prepend(cssFile);
165
218
  }, 1);
166
219
  };
167
- this.selectedIndex = 0;
168
- this.cmsEndpoint = undefined;
169
- this.clientStyling = '';
170
- this.clientStylingUrlContent = '';
171
- this.lowNumber = undefined;
172
- this.highNumber = undefined;
173
- this.minimumAllowed = undefined;
174
- this.maxinumAllowed = undefined;
175
- this.language = 'en';
176
- this.tabContent = '';
177
- this.limitStylingAppends = false;
178
220
  }
179
221
  componentDidRender() {
180
222
  // start custom styling area
@@ -206,6 +248,35 @@ const HelperTabsStyle0 = helperTabsCss;
206
248
  const HelperTabs = class {
207
249
  constructor(hostRef) {
208
250
  index.registerInstance(this, hostRef);
251
+ /**
252
+ * Tell me if it is disabled
253
+ */
254
+ this.disabled = false;
255
+ /**
256
+ * Tell me what tab is selected
257
+ */
258
+ this.selected = false;
259
+ /**
260
+ * Default selected index
261
+ */
262
+ this.selectedIndex = 0;
263
+ /**
264
+ * Tabs details
265
+ */
266
+ this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
267
+ /**
268
+ * Client custom styling via string
269
+ */
270
+ this.clientStyling = '';
271
+ /**
272
+ * Client custom styling via url
273
+ */
274
+ this.clientStylingurl = '';
275
+ /**
276
+ * Client custom styling via url content
277
+ */
278
+ this.clientStylingUrlContent = '';
279
+ this.limitStylingAppends = false;
209
280
  this.setClientStyling = () => {
210
281
  let sheet = document.createElement('style');
211
282
  sheet.innerHTML = this.clientStyling;
@@ -218,20 +289,6 @@ const HelperTabs = class {
218
289
  this.stylingContainer.prepend(cssFile);
219
290
  }, 1);
220
291
  };
221
- this.disabled = false;
222
- this.label = undefined;
223
- this.selected = false;
224
- this.cmsEndpoint = undefined;
225
- this.selectedIndex = 0;
226
- this.tabs = [{ label: 'How to Play' }, { label: 'About' }, { label: 'FAQs' }];
227
- this.clientStyling = '';
228
- this.clientStylingurl = '';
229
- this.clientStylingUrlContent = '';
230
- this.lowNumber = undefined;
231
- this.highNumber = undefined;
232
- this.minimumAllowed = undefined;
233
- this.maxinumAllowed = undefined;
234
- this.limitStylingAppends = false;
235
292
  }
236
293
  connectedCallback() {
237
294
  }
@@ -259,6 +316,15 @@ const LotteryGameDetailsStyle0 = lotteryGameDetailsCss;
259
316
  const LotteryGameDetails = class {
260
317
  constructor(hostRef) {
261
318
  index.registerInstance(this, hostRef);
319
+ /**
320
+ * Client custom styling via string
321
+ */
322
+ this.clientStyling = '';
323
+ /**
324
+ * Client custom styling via url content
325
+ */
326
+ this.clientStylingUrlContent = '';
327
+ this.limitStylingAppends = false;
262
328
  this.setClientStyling = () => {
263
329
  let sheet = document.createElement('style');
264
330
  sheet.innerHTML = this.clientStyling;
@@ -271,13 +337,6 @@ const LotteryGameDetails = class {
271
337
  this.stylingContainer.prepend(cssFile);
272
338
  }, 1);
273
339
  };
274
- this.clientStyling = '';
275
- this.clientStylingUrlContent = '';
276
- this.lowNumber = undefined;
277
- this.highNumber = undefined;
278
- this.minimumAllowed = undefined;
279
- this.maxinumAllowed = undefined;
280
- this.limitStylingAppends = false;
281
340
  }
282
341
  componentDidRender() {
283
342
  // start custom styling area
@@ -21,19 +21,23 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-game-details';
24
- const BUILD = /* lottery-game-details */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, 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: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* lottery-game-details */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, 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: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.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/client/client-host-ref.ts
34
36
  var hostRefs = /* @__PURE__ */ new WeakMap();
35
37
  var getHostRef = (ref) => hostRefs.get(ref);
36
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
38
+ var registerInstance = (lazyInstance, hostRef) => {
39
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
+ };
37
41
  var registerHost = (hostElement, cmpMeta) => {
38
42
  const hostRef = {
39
43
  $flags$: 0,
@@ -46,7 +50,8 @@ var registerHost = (hostElement, cmpMeta) => {
46
50
  hostElement["s-p"] = [];
47
51
  hostElement["s-rc"] = [];
48
52
  }
49
- return hostRefs.set(hostElement, hostRef);
53
+ const ref = hostRefs.set(hostElement, hostRef);
54
+ return ref;
50
55
  };
51
56
  var isMemberInElement = (elm, memberName) => memberName in elm;
52
57
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -83,16 +88,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
83
88
  /* webpackExclude: /\.system\.entry\.js$/ */
84
89
  /* webpackMode: "lazy" */
85
90
  `./${bundleId}.entry.js${""}`
86
- )); }).then((importedModule) => {
87
- {
88
- cmpModules.set(bundleId, importedModule);
91
+ )); }).then(
92
+ (importedModule) => {
93
+ {
94
+ cmpModules.set(bundleId, importedModule);
95
+ }
96
+ return importedModule[exportName];
97
+ },
98
+ (e) => {
99
+ consoleError(e, hostRef.$hostElement$);
89
100
  }
90
- return importedModule[exportName];
91
- }, consoleError);
101
+ );
92
102
  };
93
103
 
94
104
  // src/client/client-style.ts
95
105
  var styles = /* @__PURE__ */ new Map();
106
+ var HYDRATED_STYLE_ID = "sty-id";
96
107
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
97
108
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
98
109
  var win = typeof window !== "undefined" ? window : {};
@@ -150,12 +161,6 @@ var flush = () => {
150
161
  };
151
162
  var nextTick = (cb) => promiseResolve().then(cb);
152
163
  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;
159
164
  var isComplexType = (o) => {
160
165
  o = typeof o;
161
166
  return o === "object" || o === "function";
@@ -359,7 +364,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
359
364
  }
360
365
  if (!appliedStyles.has(scopeId2)) {
361
366
  {
362
- styleElm = doc.createElement("style");
367
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
363
368
  styleElm.innerHTML = style;
364
369
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
365
370
  if (nonce != null) {
@@ -369,7 +374,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
369
374
  if (styleContainerNode.nodeName === "HEAD") {
370
375
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
371
376
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
372
- styleContainerNode.insertBefore(styleElm, referenceNode2);
377
+ styleContainerNode.insertBefore(
378
+ styleElm,
379
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
380
+ );
373
381
  } else if ("host" in styleContainerNode) {
374
382
  if (supportsConstructableStylesheets) {
375
383
  const stylesheet = new CSSStyleSheet();
@@ -419,16 +427,18 @@ var attachStyles = (hostRef) => {
419
427
  endAttachStyles();
420
428
  };
421
429
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
422
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
430
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
423
431
  if (oldValue !== newValue) {
424
432
  let isProp = isMemberInElement(elm, memberName);
425
433
  let ln = memberName.toLowerCase();
426
434
  if (memberName === "class") {
427
435
  const classList = elm.classList;
428
436
  const oldClasses = parseClassList(oldValue);
429
- const newClasses = parseClassList(newValue);
430
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
431
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
437
+ let newClasses = parseClassList(newValue);
438
+ {
439
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
440
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
441
+ }
432
442
  } else if (memberName === "key") ; else if (memberName === "ref") {
433
443
  if (newValue) {
434
444
  newValue(elm);
@@ -466,7 +476,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
466
476
  elm.setAttribute(memberName, n);
467
477
  }
468
478
  }
469
- } else {
479
+ } else if (elm[memberName] !== newValue) {
470
480
  elm[memberName] = newValue;
471
481
  }
472
482
  } catch (e) {
@@ -488,24 +498,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
488
498
  }
489
499
  };
490
500
  var parseClassListRegex = /\s/;
491
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
501
+ var parseClassList = (value) => {
502
+ if (typeof value === "object" && value && "baseVal" in value) {
503
+ value = value.baseVal;
504
+ }
505
+ if (!value || typeof value !== "string") {
506
+ return [];
507
+ }
508
+ return value.split(parseClassListRegex);
509
+ };
492
510
  var CAPTURE_EVENT_SUFFIX = "Capture";
493
511
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
494
512
 
495
513
  // src/runtime/vdom/update-element.ts
496
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
514
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
497
515
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
498
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
499
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
516
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
517
+ const newVnodeAttrs = newVnode.$attrs$ || {};
500
518
  {
501
519
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
502
520
  if (!(memberName in newVnodeAttrs)) {
503
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
521
+ setAccessor(
522
+ elm,
523
+ memberName,
524
+ oldVnodeAttrs[memberName],
525
+ void 0,
526
+ isSvgMode2,
527
+ newVnode.$flags$);
504
528
  }
505
529
  }
506
530
  }
507
531
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
508
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
532
+ setAccessor(
533
+ elm,
534
+ memberName,
535
+ oldVnodeAttrs[memberName],
536
+ newVnodeAttrs[memberName],
537
+ isSvgMode2,
538
+ newVnode.$flags$);
509
539
  }
510
540
  };
511
541
  function sortedAttrNames(attrNames) {
@@ -517,13 +547,10 @@ function sortedAttrNames(attrNames) {
517
547
  attrNames
518
548
  );
519
549
  }
520
-
521
- // src/runtime/vdom/vdom-render.ts
522
- var scopeId;
523
550
  var hostTagName;
524
551
  var useNativeShadowDom = false;
525
552
  var isSvgMode = false;
526
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
553
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
527
554
  const newVNode2 = newParentVNode.$children$[childIndex];
528
555
  let i2 = 0;
529
556
  let elm;
@@ -537,11 +564,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
537
564
  {
538
565
  updateElement(null, newVNode2, isSvgMode);
539
566
  }
540
- const rootNode = elm.getRootNode();
541
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
542
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
543
- elm.classList.add(elm["s-si"] = scopeId);
544
- }
545
567
  if (newVNode2.$children$) {
546
568
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
547
569
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -671,6 +693,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
671
693
  if (!isInitialRender) {
672
694
  return leftVNode.$key$ === rightVNode.$key$;
673
695
  }
696
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
697
+ leftVNode.$key$ = rightVNode.$key$;
698
+ }
674
699
  return true;
675
700
  }
676
701
  return false;
@@ -711,8 +736,9 @@ var nullifyVNodeRefs = (vNode) => {
711
736
  }
712
737
  };
713
738
  var insertBefore = (parent, newNode, reference) => {
714
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
715
- return inserted;
739
+ {
740
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
741
+ }
716
742
  };
717
743
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
718
744
  const hostElm = hostRef.$hostElement$;
@@ -737,9 +763,6 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
737
763
  rootVnode.$flags$ |= 4 /* isHost */;
738
764
  hostRef.$vnode$ = rootVnode;
739
765
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
740
- {
741
- scopeId = hostElm["s-sc"];
742
- }
743
766
  useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
744
767
  patch(oldVNode, rootVnode, isInitialLoad);
745
768
  };
@@ -747,7 +770,14 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
747
770
  // src/runtime/update-component.ts
748
771
  var attachToAncestor = (hostRef, ancestorComponent) => {
749
772
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
750
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
773
+ const index = ancestorComponent["s-p"].push(
774
+ new Promise(
775
+ (r) => hostRef.$onRenderResolve$ = () => {
776
+ ancestorComponent["s-p"].splice(index - 1, 1);
777
+ r();
778
+ }
779
+ )
780
+ );
751
781
  }
752
782
  };
753
783
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -838,7 +868,7 @@ var postUpdateComponent = (hostRef) => {
838
868
  const instance = hostRef.$lazyInstance$ ;
839
869
  const ancestorComponent = hostRef.$ancestorComponent$;
840
870
  {
841
- safeCall(instance, "componentDidRender");
871
+ safeCall(instance, "componentDidRender", void 0, elm);
842
872
  }
843
873
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
844
874
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -872,12 +902,12 @@ var appDidLoad = (who) => {
872
902
  }
873
903
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
874
904
  };
875
- var safeCall = (instance, method, arg) => {
905
+ var safeCall = (instance, method, arg, elm) => {
876
906
  if (instance && instance[method]) {
877
907
  try {
878
908
  return instance[method](arg);
879
909
  } catch (e) {
880
- consoleError(e);
910
+ consoleError(e, elm);
881
911
  }
882
912
  }
883
913
  return void 0;
@@ -920,15 +950,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
920
950
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
921
951
  members.map(([memberName, [memberFlags]]) => {
922
952
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
953
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
954
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
955
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
956
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
957
+ Object.defineProperty(prototype, memberName, {
958
+ get() {
959
+ {
960
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
961
+ return getValue(this, memberName);
962
+ }
963
+ const ref = getHostRef(this);
964
+ const instance = ref ? ref.$lazyInstance$ : prototype;
965
+ if (!instance) return;
966
+ return instance[memberName];
967
+ }
968
+ },
969
+ configurable: true,
970
+ enumerable: true
971
+ });
972
+ }
923
973
  Object.defineProperty(prototype, memberName, {
924
- get() {
925
- return getValue(this, memberName);
926
- },
927
974
  set(newValue) {
928
- setValue(this, memberName, newValue, cmpMeta);
929
- },
930
- configurable: true,
931
- enumerable: true
975
+ const ref = getHostRef(this);
976
+ if (origSetter) {
977
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
978
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
979
+ newValue = ref.$instanceValues$.get(memberName);
980
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
981
+ ref.$instanceValues$.set(memberName, currentValue);
982
+ }
983
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
984
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
985
+ setValue(this, memberName, newValue, cmpMeta);
986
+ return;
987
+ }
988
+ {
989
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
990
+ setValue(this, memberName, newValue, cmpMeta);
991
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
992
+ ref.$onReadyPromise$.then(() => {
993
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
994
+ ref.$lazyInstance$[memberName] = newValue;
995
+ }
996
+ });
997
+ }
998
+ return;
999
+ }
1000
+ const setterSetVal = () => {
1001
+ const currentValue = ref.$lazyInstance$[memberName];
1002
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
1003
+ ref.$instanceValues$.set(memberName, currentValue);
1004
+ }
1005
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1006
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1007
+ };
1008
+ if (ref.$lazyInstance$) {
1009
+ setterSetVal();
1010
+ } else {
1011
+ ref.$onReadyPromise$.then(() => setterSetVal());
1012
+ }
1013
+ }
1014
+ }
932
1015
  });
933
1016
  }
934
1017
  });
@@ -938,7 +1021,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
938
1021
  plt.jmp(() => {
939
1022
  var _a2;
940
1023
  const propName = attrNameToPropName.get(attrName);
941
- if (this.hasOwnProperty(propName)) {
1024
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
942
1025
  newValue = this[propName];
943
1026
  delete this[propName];
944
1027
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -958,7 +1041,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
958
1041
  }
959
1042
  return;
960
1043
  }
961
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1044
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1045
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1046
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1047
+ this[propName] = newValue;
1048
+ }
962
1049
  });
963
1050
  };
964
1051
  Cstr.observedAttributes = Array.from(
@@ -985,9 +1072,8 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
985
1072
  let Cstr;
986
1073
  if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
987
1074
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
988
- const bundleId = cmpMeta.$lazyBundleId$;
989
- if (bundleId) {
990
- const CstrImport = loadModule(cmpMeta);
1075
+ {
1076
+ const CstrImport = loadModule(cmpMeta, hostRef);
991
1077
  if (CstrImport && "then" in CstrImport) {
992
1078
  const endLoad = uniqueTime();
993
1079
  Cstr = await CstrImport;
@@ -1009,17 +1095,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1009
1095
  try {
1010
1096
  new Cstr(hostRef);
1011
1097
  } catch (e) {
1012
- consoleError(e);
1098
+ consoleError(e, elm);
1013
1099
  }
1014
1100
  {
1015
1101
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1016
1102
  }
1017
1103
  endNewInstance();
1018
- fireConnectedCallback(hostRef.$lazyInstance$);
1019
- } else {
1020
- Cstr = elm.constructor;
1021
- const cmpTag = elm.localName;
1022
- customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
1104
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1023
1105
  }
1024
1106
  if (Cstr && Cstr.style) {
1025
1107
  let style;
@@ -1042,9 +1124,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1042
1124
  schedule();
1043
1125
  }
1044
1126
  };
1045
- var fireConnectedCallback = (instance) => {
1127
+ var fireConnectedCallback = (instance, elm) => {
1046
1128
  {
1047
- safeCall(instance, "connectedCallback");
1129
+ safeCall(instance, "connectedCallback", void 0, elm);
1048
1130
  }
1049
1131
  };
1050
1132
 
@@ -1079,15 +1161,15 @@ var connectedCallback = (elm) => {
1079
1161
  }
1080
1162
  } else {
1081
1163
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1082
- fireConnectedCallback(hostRef.$lazyInstance$);
1164
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
1083
1165
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1084
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1166
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1085
1167
  }
1086
1168
  }
1087
1169
  endConnected();
1088
1170
  }
1089
1171
  };
1090
- var disconnectInstance = (instance) => {
1172
+ var disconnectInstance = (instance, elm) => {
1091
1173
  };
1092
1174
  var disconnectedCallback = async (elm) => {
1093
1175
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1096,6 +1178,12 @@ var disconnectedCallback = async (elm) => {
1096
1178
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1097
1179
  }
1098
1180
  }
1181
+ if (rootAppliedStyles.has(elm)) {
1182
+ rootAppliedStyles.delete(elm);
1183
+ }
1184
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1185
+ rootAppliedStyles.delete(elm.shadowRoot);
1186
+ }
1099
1187
  };
1100
1188
 
1101
1189
  // src/runtime/bootstrap-lazy.ts
@@ -1172,6 +1260,13 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1172
1260
  }
1173
1261
  disconnectedCallback() {
1174
1262
  plt.jmp(() => disconnectedCallback(this));
1263
+ plt.raf(() => {
1264
+ var _a3;
1265
+ const hostRef = getHostRef(this);
1266
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1267
+ delete hostRef.$vnode$.$elm$;
1268
+ }
1269
+ });
1175
1270
  }
1176
1271
  componentOnReady() {
1177
1272
  return getHostRef(this).$onReadyPromise$;