@everymatrix/casino-engagement-suite-jackpot-details 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 (29) hide show
  1. package/dist/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.esm.js +1 -1
  2. package/dist/casino-engagement-suite-jackpot-details/p-1406eb6b.js +2 -0
  3. package/dist/casino-engagement-suite-jackpot-details/{p-0b530d04.entry.js → p-1c3958d0.entry.js} +1 -1
  4. package/dist/casino-engagement-suite-jackpot-details/p-6e07926a.entry.js +1 -0
  5. package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.entry.js +20 -31
  6. package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.js +2 -2
  7. package/dist/cjs/casino-engagement-suite-progress-bar.cjs.entry.js +8 -26
  8. package/dist/cjs/{index-bf875f95.js → index-dd964ee8.js} +71 -206
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +2 -2
  11. package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.js +21 -46
  12. package/dist/esm/casino-engagement-suite-jackpot-details.entry.js +20 -31
  13. package/dist/esm/casino-engagement-suite-jackpot-details.js +3 -3
  14. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +8 -26
  15. package/dist/esm/{index-0ce0e283.js → index-9c79c75d.js} +71 -206
  16. package/dist/esm/loader.js +2 -2
  17. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +2 -0
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +2 -0
  19. package/dist/types/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.d.ts +1 -1
  20. package/dist/types/stencil-public-runtime.d.ts +0 -6
  21. package/package.json +1 -1
  22. package/dist/casino-engagement-suite-jackpot-details/p-9ccbc802.js +0 -2
  23. package/dist/casino-engagement-suite-jackpot-details/p-d318c6b3.entry.js +0 -1
  24. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.d.ts +0 -2
  25. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/packages/stencil/casino-engagement-suite-jackpot-details/stencil.config.dev.d.ts +0 -2
  26. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/index.d.ts +0 -0
  27. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  28. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0ce0e283.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-9c79c75d.js';
2
2
 
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
@@ -138,36 +138,6 @@ const CasinoEngagementSuiteJackpotDetails = class {
138
138
  registerInstance(this, hostRef);
139
139
  this.close = createEvent(this, "close", 7);
140
140
  this.back = createEvent(this, "back", 7);
141
- /**
142
- * Client custom styling via string
143
- */
144
- this.clientStyling = '';
145
- /**
146
- * Client custom styling via url
147
- */
148
- this.clientStylingUrl = '';
149
- /**
150
- * Language of the widget
151
- */
152
- this.language = 'en';
153
- /**
154
- * Current game slug
155
- */
156
- this.gameSlug = '';
157
- /**
158
- * User's device type
159
- */
160
- this.device = 'Mobile';
161
- this.limitStylingAppends = false;
162
- this.timer = '';
163
- this.disabledStatus = '';
164
- this.activeTab = 1;
165
- this.visibleGames = [];
166
- this.enabled = false;
167
- this.showDetails = false;
168
- this.jackpotEndTime = '';
169
- this.tooltip = '';
170
- this.partialWins = '';
171
141
  this.maxVisibleGames = 0;
172
142
  this.handleTabChange = (e) => {
173
143
  this.activeTab = +(e.target.getAttribute('data-index'));
@@ -224,6 +194,25 @@ const CasinoEngagementSuiteJackpotDetails = class {
224
194
  });
225
195
  }
226
196
  };
197
+ this.clientStyling = '';
198
+ this.clientStylingUrl = '';
199
+ this.jackpot = undefined;
200
+ this.jackpotChangeStatusRequest = undefined;
201
+ this.language = 'en';
202
+ this.gameSlug = '';
203
+ this.device = 'Mobile';
204
+ this.limitStylingAppends = false;
205
+ this.timer = '';
206
+ this.disabledStatus = '';
207
+ this.activeTab = 1;
208
+ this.visibleGames = [];
209
+ this.enabled = false;
210
+ this.balance = undefined;
211
+ this.winBalance = undefined;
212
+ this.showDetails = false;
213
+ this.jackpotEndTime = '';
214
+ this.tooltip = '';
215
+ this.partialWins = '';
227
216
  }
228
217
  handleEvent(e) {
229
218
  const { type, data } = e === null || e === void 0 ? void 0 : e.data;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0ce0e283.js';
2
- export { s as setNonce } from './index-0ce0e283.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-9c79c75d.js';
2
+ export { s as setNonce } from './index-9c79c75d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.19.2 | MIT Licensed | https://stenciljs.com
7
7
  */
8
8
  var patchBrowser = () => {
9
9
  const importMeta = import.meta.url;
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-0ce0e283.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-9c79c75d.js';
2
2
 
3
3
  const casinoEngagementSuiteProgressBarCss = ":host{display:block;font-family:inherit}:host(.Desktop) .ProgressBarPercent{font-size:var(--emw--font-size-small, 14px);line-height:14px}@keyframes indeterminate{0%{left:-200%;right:100%}60%{left:110%;right:-10%}to{left:110%;right:-10%}}.ProgressBarBackground{height:8px;background-color:var(--emw--color-gray-300, #666178);border-radius:var(--emw--border-radius-small, 4px);position:relative;overflow:hidden}.ProgressBarLine{position:absolute;left:0;top:0;bottom:0;border-radius:var(--emw--border-radius-small, 4px);background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));transition:width ease-out 0.3s}.ProgressBarLine.Indeterminate{animation:indeterminate 1s linear infinite}.ProgressBarInfo{margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.ProgressBarPercent{font-weight:var(--emw--font-weight-bold, 700);font-size:var(--emw--font-size-x-small, 12px);line-height:12px}.HidePercent .ProgressBarPercent{display:none}.ProgressBar:not(.Disabled) .ProgressBarPercent{background:var(--emw--engagement-suite-gradient-button, linear-gradient(98.25deg, #FF9400 22.48%, #FEF746 131.02%, #FFE24A 131.9%));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.ProgressBar.Disabled .ProgressBarPercent{color:var(--emw--color-gray-300, #666178)}.ProgressBar.Disabled .ProgressBarLine{background:var(--emw--color-background-secondary, #474668)}";
4
4
  const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarCss;
@@ -6,31 +6,6 @@ const CasinoEngagementSuiteProgressBarStyle0 = casinoEngagementSuiteProgressBarC
6
6
  const CasinoEngagementSuiteProgressBar = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
- /**
10
- * Value for the widget
11
- */
12
- this.value = 0;
13
- /**
14
- * Shows disabled styles
15
- */
16
- this.disabled = false;
17
- /**
18
- * Hide percent value
19
- */
20
- this.hidePercent = false;
21
- /**
22
- * Constantly animates
23
- */
24
- this.indeterminate = false;
25
- /**
26
- * Client custom styling via string
27
- */
28
- this.clientStyling = '';
29
- /**
30
- * Client custom styling via url
31
- */
32
- this.clientStylingUrl = '';
33
- this.limitStylingAppends = false;
34
9
  this.setClientStyling = () => {
35
10
  let sheet = document.createElement('style');
36
11
  sheet.innerHTML = this.clientStyling;
@@ -49,6 +24,13 @@ const CasinoEngagementSuiteProgressBar = class {
49
24
  console.log('Error ', err);
50
25
  });
51
26
  };
27
+ this.value = 0;
28
+ this.disabled = false;
29
+ this.hidePercent = false;
30
+ this.indeterminate = false;
31
+ this.clientStyling = '';
32
+ this.clientStylingUrl = '';
33
+ this.limitStylingAppends = false;
52
34
  }
53
35
  componentDidRender() {
54
36
  if (!this.limitStylingAppends && this.host) {
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'casino-engagement-suite-jackpot-details';
2
- const BUILD = /* casino-engagement-suite-jackpot-details */ { 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: true, 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: 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* casino-engagement-suite-jackpot-details */ { 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: true, 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: 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: true, vdomText: true, vdomXlink: false, watchCallback: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.19.2 | 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
14
12
  var hostRefs = /* @__PURE__ */ new WeakMap();
15
13
  var getHostRef = (ref) => hostRefs.get(ref);
16
- var registerInstance = (lazyInstance, hostRef) => {
17
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
- };
14
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
19
15
  var registerHost = (hostElement, cmpMeta) => {
20
16
  const hostRef = {
21
17
  $flags$: 0,
@@ -28,8 +24,7 @@ var registerHost = (hostElement, cmpMeta) => {
28
24
  hostElement["s-p"] = [];
29
25
  hostElement["s-rc"] = [];
30
26
  }
31
- const ref = hostRefs.set(hostElement, hostRef);
32
- return ref;
27
+ return hostRefs.set(hostElement, hostRef);
33
28
  };
34
29
  var isMemberInElement = (elm, memberName) => memberName in elm;
35
30
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -70,22 +65,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
70
65
  /* webpackExclude: /\.system\.entry\.js$/ */
71
66
  /* webpackMode: "lazy" */
72
67
  `./${bundleId}.entry.js${""}`
73
- ).then(
74
- (importedModule) => {
75
- {
76
- cmpModules.set(bundleId, importedModule);
77
- }
78
- return importedModule[exportName];
79
- },
80
- (e) => {
81
- consoleError(e, hostRef.$hostElement$);
68
+ ).then((importedModule) => {
69
+ {
70
+ cmpModules.set(bundleId, importedModule);
82
71
  }
83
- );
72
+ return importedModule[exportName];
73
+ }, consoleError);
84
74
  };
85
75
 
86
76
  // src/client/client-style.ts
87
77
  var styles = /* @__PURE__ */ new Map();
88
- var HYDRATED_STYLE_ID = "sty-id";
89
78
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
90
79
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
91
80
  var win = typeof window !== "undefined" ? window : {};
@@ -159,6 +148,12 @@ var flush = () => {
159
148
  };
160
149
  var nextTick = (cb) => promiseResolve().then(cb);
161
150
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
151
+
152
+ // src/utils/constants.ts
153
+ var EMPTY_OBJ = {};
154
+
155
+ // src/utils/helpers.ts
156
+ var isDef = (v) => v != null;
162
157
  var isComplexType = (o) => {
163
158
  o = typeof o;
164
159
  return o === "object" || o === "function";
@@ -362,40 +357,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
362
357
  }
363
358
  if (!appliedStyles.has(scopeId2)) {
364
359
  {
365
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
360
+ styleElm = doc.createElement("style");
366
361
  styleElm.innerHTML = style;
367
362
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
368
363
  if (nonce != null) {
369
364
  styleElm.setAttribute("nonce", nonce);
370
365
  }
371
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
372
- if (styleContainerNode.nodeName === "HEAD") {
373
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
374
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
375
- styleContainerNode.insertBefore(
376
- styleElm,
377
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
378
- );
379
- } else if ("host" in styleContainerNode) {
380
- if (supportsConstructableStylesheets) {
381
- const stylesheet = new CSSStyleSheet();
382
- stylesheet.replaceSync(style);
383
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
384
- } else {
385
- const existingStyleContainer = styleContainerNode.querySelector("style");
386
- if (existingStyleContainer) {
387
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
388
- } else {
389
- styleContainerNode.prepend(styleElm);
390
- }
391
- }
392
- } else {
393
- styleContainerNode.append(styleElm);
394
- }
395
- }
396
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
397
- styleContainerNode.insertBefore(styleElm, null);
398
- }
366
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
399
367
  }
400
368
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
401
369
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -418,25 +386,23 @@ var attachStyles = (hostRef) => {
418
386
  const scopeId2 = addStyle(
419
387
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
420
388
  cmpMeta);
421
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
389
+ if (flags & 10 /* needsScopedEncapsulation */) {
422
390
  elm["s-sc"] = scopeId2;
423
391
  elm.classList.add(scopeId2 + "-h");
424
392
  }
425
393
  endAttachStyles();
426
394
  };
427
395
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
428
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
396
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
429
397
  if (oldValue !== newValue) {
430
398
  let isProp = isMemberInElement(elm, memberName);
431
399
  let ln = memberName.toLowerCase();
432
400
  if (memberName === "class") {
433
401
  const classList = elm.classList;
434
402
  const oldClasses = parseClassList(oldValue);
435
- let newClasses = parseClassList(newValue);
436
- {
437
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
438
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
- }
403
+ const newClasses = parseClassList(newValue);
404
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
405
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
440
406
  } else if (memberName === "style") {
441
407
  {
442
408
  for (const prop in oldValue) {
@@ -489,13 +455,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
489
455
  if (memberName === "list") {
490
456
  isProp = false;
491
457
  } else if (oldValue == null || elm[memberName] != n) {
492
- if (typeof elm.__lookupSetter__(memberName) === "function") {
493
- elm[memberName] = n;
494
- } else {
495
- elm.setAttribute(memberName, n);
496
- }
458
+ elm[memberName] = n;
497
459
  }
498
- } else if (elm[memberName] !== newValue) {
460
+ } else {
499
461
  elm[memberName] = newValue;
500
462
  }
501
463
  } catch (e) {
@@ -517,44 +479,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
517
479
  }
518
480
  };
519
481
  var parseClassListRegex = /\s/;
520
- var parseClassList = (value) => {
521
- if (typeof value === "object" && value && "baseVal" in value) {
522
- value = value.baseVal;
523
- }
524
- if (!value || typeof value !== "string") {
525
- return [];
526
- }
527
- return value.split(parseClassListRegex);
528
- };
482
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
529
483
  var CAPTURE_EVENT_SUFFIX = "Capture";
530
484
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
531
485
 
532
486
  // src/runtime/vdom/update-element.ts
533
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
487
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
534
488
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
535
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
536
- const newVnodeAttrs = newVnode.$attrs$ || {};
489
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
490
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
537
491
  {
538
492
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
539
493
  if (!(memberName in newVnodeAttrs)) {
540
- setAccessor(
541
- elm,
542
- memberName,
543
- oldVnodeAttrs[memberName],
544
- void 0,
545
- isSvgMode2,
546
- newVnode.$flags$);
494
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
547
495
  }
548
496
  }
549
497
  }
550
498
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
551
- setAccessor(
552
- elm,
553
- memberName,
554
- oldVnodeAttrs[memberName],
555
- newVnodeAttrs[memberName],
556
- isSvgMode2,
557
- newVnode.$flags$);
499
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
558
500
  }
559
501
  };
560
502
  function sortedAttrNames(attrNames) {
@@ -566,10 +508,13 @@ function sortedAttrNames(attrNames) {
566
508
  attrNames
567
509
  );
568
510
  }
511
+
512
+ // src/runtime/vdom/vdom-render.ts
513
+ var scopeId;
569
514
  var hostTagName;
570
515
  var useNativeShadowDom = false;
571
516
  var isSvgMode = false;
572
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
517
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
573
518
  const newVNode2 = newParentVNode.$children$[childIndex];
574
519
  let i2 = 0;
575
520
  let elm;
@@ -583,6 +528,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
583
528
  {
584
529
  updateElement(null, newVNode2, isSvgMode);
585
530
  }
531
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
532
+ elm.classList.add(elm["s-si"] = scopeId);
533
+ }
586
534
  if (newVNode2.$children$) {
587
535
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
588
536
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -712,9 +660,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
712
660
  if (!isInitialRender) {
713
661
  return leftVNode.$key$ === rightVNode.$key$;
714
662
  }
715
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
716
- leftVNode.$key$ = rightVNode.$key$;
717
- }
718
663
  return true;
719
664
  }
720
665
  return false;
@@ -738,10 +683,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
738
683
  elm.textContent = "";
739
684
  }
740
685
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
741
- } else if (
742
- // don't do this on initial render as it can cause non-hydrated content to be removed
743
- !isInitialRender && BUILD.updatable && oldChildren !== null
744
- ) {
686
+ } else if (oldChildren !== null) {
745
687
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
746
688
  }
747
689
  } else if (oldVNode.$text$ !== text) {
@@ -755,9 +697,8 @@ var nullifyVNodeRefs = (vNode) => {
755
697
  }
756
698
  };
757
699
  var insertBefore = (parent, newNode, reference) => {
758
- {
759
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
760
- }
700
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
701
+ return inserted;
761
702
  };
762
703
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
763
704
  const hostElm = hostRef.$hostElement$;
@@ -782,21 +723,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
782
723
  rootVnode.$flags$ |= 4 /* isHost */;
783
724
  hostRef.$vnode$ = rootVnode;
784
725
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
785
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
726
+ {
727
+ scopeId = hostElm["s-sc"];
728
+ }
729
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
786
730
  patch(oldVNode, rootVnode, isInitialLoad);
787
731
  };
788
732
 
789
733
  // src/runtime/update-component.ts
790
734
  var attachToAncestor = (hostRef, ancestorComponent) => {
791
735
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
792
- const index = ancestorComponent["s-p"].push(
793
- new Promise(
794
- (r) => hostRef.$onRenderResolve$ = () => {
795
- ancestorComponent["s-p"].splice(index - 1, 1);
796
- r();
797
- }
798
- )
799
- );
736
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
800
737
  }
801
738
  };
802
739
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -825,12 +762,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
825
762
  {
826
763
  hostRef.$flags$ |= 256 /* isListenReady */;
827
764
  if (hostRef.$queuedListeners$) {
828
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
765
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
829
766
  hostRef.$queuedListeners$ = void 0;
830
767
  }
831
768
  }
832
769
  {
833
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
770
+ maybePromise = safeCall(instance, "componentWillLoad");
834
771
  }
835
772
  }
836
773
  endSchedule();
@@ -899,7 +836,7 @@ var postUpdateComponent = (hostRef) => {
899
836
  const instance = hostRef.$lazyInstance$ ;
900
837
  const ancestorComponent = hostRef.$ancestorComponent$;
901
838
  {
902
- safeCall(instance, "componentDidRender", void 0, elm);
839
+ safeCall(instance, "componentDidRender");
903
840
  }
904
841
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
905
842
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -928,14 +865,17 @@ var postUpdateComponent = (hostRef) => {
928
865
  }
929
866
  };
930
867
  var appDidLoad = (who) => {
868
+ {
869
+ addHydratedFlag(doc.documentElement);
870
+ }
931
871
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
932
872
  };
933
- var safeCall = (instance, method, arg, elm) => {
873
+ var safeCall = (instance, method, arg) => {
934
874
  if (instance && instance[method]) {
935
875
  try {
936
876
  return instance[method](arg);
937
877
  } catch (e) {
938
- consoleError(e, elm);
878
+ consoleError(e);
939
879
  }
940
880
  }
941
881
  return void 0;
@@ -994,68 +934,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
994
934
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
995
935
  members.map(([memberName, [memberFlags]]) => {
996
936
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
997
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
998
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
999
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1000
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1001
- Object.defineProperty(prototype, memberName, {
1002
- get() {
1003
- {
1004
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1005
- return getValue(this, memberName);
1006
- }
1007
- const ref = getHostRef(this);
1008
- const instance = ref ? ref.$lazyInstance$ : prototype;
1009
- if (!instance) return;
1010
- return instance[memberName];
1011
- }
1012
- },
1013
- configurable: true,
1014
- enumerable: true
1015
- });
1016
- }
1017
937
  Object.defineProperty(prototype, memberName, {
938
+ get() {
939
+ return getValue(this, memberName);
940
+ },
1018
941
  set(newValue) {
1019
- const ref = getHostRef(this);
1020
- if (origSetter) {
1021
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1022
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1023
- newValue = ref.$instanceValues$.get(memberName);
1024
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1025
- ref.$instanceValues$.set(memberName, currentValue);
1026
- }
1027
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1028
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1029
- setValue(this, memberName, newValue, cmpMeta);
1030
- return;
1031
- }
1032
- {
1033
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1034
- setValue(this, memberName, newValue, cmpMeta);
1035
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1036
- ref.$onReadyPromise$.then(() => {
1037
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1038
- ref.$lazyInstance$[memberName] = newValue;
1039
- }
1040
- });
1041
- }
1042
- return;
1043
- }
1044
- const setterSetVal = () => {
1045
- const currentValue = ref.$lazyInstance$[memberName];
1046
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1047
- ref.$instanceValues$.set(memberName, currentValue);
1048
- }
1049
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1050
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1051
- };
1052
- if (ref.$lazyInstance$) {
1053
- setterSetVal();
1054
- } else {
1055
- ref.$onReadyPromise$.then(() => setterSetVal());
1056
- }
1057
- }
1058
- }
942
+ setValue(this, memberName, newValue, cmpMeta);
943
+ },
944
+ configurable: true,
945
+ enumerable: true
1059
946
  });
1060
947
  }
1061
948
  });
@@ -1065,11 +952,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1065
952
  plt.jmp(() => {
1066
953
  var _a2;
1067
954
  const propName = attrNameToPropName.get(attrName);
1068
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
955
+ if (this.hasOwnProperty(propName)) {
1069
956
  newValue = this[propName];
1070
957
  delete this[propName];
1071
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1072
- this[propName] == newValue) {
958
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1073
959
  return;
1074
960
  } else if (propName == null) {
1075
961
  const hostRef = getHostRef(this);
@@ -1085,11 +971,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1085
971
  }
1086
972
  return;
1087
973
  }
1088
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1089
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1090
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1091
- this[propName] = newValue;
1092
- }
974
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1093
975
  });
1094
976
  };
1095
977
  Cstr.observedAttributes = Array.from(
@@ -1118,7 +1000,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1118
1000
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1119
1001
  const bundleId = cmpMeta.$lazyBundleId$;
1120
1002
  if (bundleId) {
1121
- const CstrImport = loadModule(cmpMeta, hostRef);
1003
+ const CstrImport = loadModule(cmpMeta);
1122
1004
  if (CstrImport && "then" in CstrImport) {
1123
1005
  const endLoad = uniqueTime();
1124
1006
  Cstr = await CstrImport;
@@ -1143,7 +1025,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1143
1025
  try {
1144
1026
  new Cstr(hostRef);
1145
1027
  } catch (e) {
1146
- consoleError(e, elm);
1028
+ consoleError(e);
1147
1029
  }
1148
1030
  {
1149
1031
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1178,7 +1060,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1178
1060
  schedule();
1179
1061
  }
1180
1062
  };
1181
- var fireConnectedCallback = (instance, elm) => {
1063
+ var fireConnectedCallback = (instance) => {
1182
1064
  };
1183
1065
 
1184
1066
  // src/runtime/connected-callback.ts
@@ -1219,9 +1101,9 @@ var connectedCallback = (elm) => {
1219
1101
  endConnected();
1220
1102
  }
1221
1103
  };
1222
- var disconnectInstance = (instance, elm) => {
1104
+ var disconnectInstance = (instance) => {
1223
1105
  {
1224
- safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1106
+ safeCall(instance, "disconnectedCallback");
1225
1107
  }
1226
1108
  };
1227
1109
  var disconnectedCallback = async (elm) => {
@@ -1234,17 +1116,11 @@ var disconnectedCallback = async (elm) => {
1234
1116
  }
1235
1117
  }
1236
1118
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1237
- disconnectInstance(hostRef.$lazyInstance$, elm);
1119
+ disconnectInstance(hostRef.$lazyInstance$);
1238
1120
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1239
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1121
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1240
1122
  }
1241
1123
  }
1242
- if (rootAppliedStyles.has(elm)) {
1243
- rootAppliedStyles.delete(elm);
1244
- }
1245
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1246
- rootAppliedStyles.delete(elm.shadowRoot);
1247
- }
1248
1124
  };
1249
1125
 
1250
1126
  // src/runtime/bootstrap-lazy.ts
@@ -1329,17 +1205,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1329
1205
  }
1330
1206
  disconnectedCallback() {
1331
1207
  plt.jmp(() => disconnectedCallback(this));
1332
- plt.raf(() => {
1333
- var _a3;
1334
- const hostRef = getHostRef(this);
1335
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1336
- if (i2 > -1) {
1337
- deferredConnectedCallbacks.splice(i2, 1);
1338
- }
1339
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1340
- delete hostRef.$vnode$.$elm$;
1341
- }
1342
- });
1343
1208
  }
1344
1209
  componentOnReady() {
1345
1210
  return getHostRef(this).$onReadyPromise$;
@@ -1403,7 +1268,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1403
1268
  }
1404
1269
  }
1405
1270
  } catch (e) {
1406
- consoleError(e, hostRef.$hostElement$);
1271
+ consoleError(e);
1407
1272
  }
1408
1273
  };
1409
1274
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-0ce0e283.js';
2
- export { s as setNonce } from './index-0ce0e283.js';
1
+ import { b as bootstrapLazy } from './index-9c79c75d.js';
2
+ export { s as setNonce } from './index-9c79c75d.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {