@everymatrix/casino-engagement-suite-jackpot-details 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) 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-bc0336af.entry.js → p-0b530d04.entry.js} +1 -1
  3. package/dist/casino-engagement-suite-jackpot-details/p-9ccbc802.js +2 -0
  4. package/dist/casino-engagement-suite-jackpot-details/p-d318c6b3.entry.js +1 -0
  5. package/dist/cjs/casino-engagement-suite-jackpot-details.cjs.entry.js +31 -20
  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 +26 -8
  8. package/dist/cjs/{index-da2a2e23.js → index-bf875f95.js} +172 -71
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/collection-manifest.json +1 -1
  11. package/dist/collection/components/casino-engagement-suite-jackpot-details/casino-engagement-suite-jackpot-details.js +46 -21
  12. package/dist/esm/casino-engagement-suite-jackpot-details.entry.js +31 -20
  13. package/dist/esm/casino-engagement-suite-jackpot-details.js +3 -3
  14. package/dist/esm/casino-engagement-suite-progress-bar.entry.js +26 -8
  15. package/dist/esm/{index-82ecc11c.js → index-0ce0e283.js} +172 -71
  16. package/dist/esm/loader.js +2 -2
  17. 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 +2 -0
  18. 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 +2 -0
  19. package/package.json +1 -1
  20. package/dist/casino-engagement-suite-jackpot-details/p-cce9058f.js +0 -2
  21. package/dist/casino-engagement-suite-jackpot-details/p-dc5f1261.entry.js +0 -1
  22. 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 +0 -2
  23. 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 +0 -2
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/index.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-engagement-suite-jackpot-details/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  27. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/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-82ecc11c.js';
1
+ import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0ce0e283.js';
2
2
 
3
3
  function _typeof(o) {
4
4
  "@babel/helpers - typeof";
@@ -138,6 +138,36 @@ 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 = '';
141
171
  this.maxVisibleGames = 0;
142
172
  this.handleTabChange = (e) => {
143
173
  this.activeTab = +(e.target.getAttribute('data-index'));
@@ -194,25 +224,6 @@ const CasinoEngagementSuiteJackpotDetails = class {
194
224
  });
195
225
  }
196
226
  };
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 = '';
216
227
  }
217
228
  handleEvent(e) {
218
229
  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-82ecc11c.js';
2
- export { s as setNonce } from './index-82ecc11c.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-0ce0e283.js';
2
+ export { s as setNonce } from './index-0ce0e283.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  /*
6
- Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.26.0 | 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-82ecc11c.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-0ce0e283.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,6 +6,31 @@ 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;
9
34
  this.setClientStyling = () => {
10
35
  let sheet = document.createElement('style');
11
36
  sheet.innerHTML = this.clientStyling;
@@ -24,13 +49,6 @@ const CasinoEngagementSuiteProgressBar = class {
24
49
  console.log('Error ', err);
25
50
  });
26
51
  };
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;
34
52
  }
35
53
  componentDidRender() {
36
54
  if (!this.limitStylingAppends && this.host) {
@@ -1,17 +1,21 @@
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, 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, 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 };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -65,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
65
70
  /* webpackExclude: /\.system\.entry\.js$/ */
66
71
  /* webpackMode: "lazy" */
67
72
  `./${bundleId}.entry.js${""}`
68
- ).then((importedModule) => {
69
- {
70
- cmpModules.set(bundleId, importedModule);
73
+ ).then(
74
+ (importedModule) => {
75
+ {
76
+ cmpModules.set(bundleId, importedModule);
77
+ }
78
+ return importedModule[exportName];
79
+ },
80
+ (e) => {
81
+ consoleError(e, hostRef.$hostElement$);
71
82
  }
72
- return importedModule[exportName];
73
- }, consoleError);
83
+ );
74
84
  };
75
85
 
76
86
  // src/client/client-style.ts
77
87
  var styles = /* @__PURE__ */ new Map();
88
+ var HYDRATED_STYLE_ID = "sty-id";
78
89
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
79
90
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
80
91
  var win = typeof window !== "undefined" ? window : {};
@@ -148,12 +159,6 @@ var flush = () => {
148
159
  };
149
160
  var nextTick = (cb) => promiseResolve().then(cb);
150
161
  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;
157
162
  var isComplexType = (o) => {
158
163
  o = typeof o;
159
164
  return o === "object" || o === "function";
@@ -357,7 +362,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
357
362
  }
358
363
  if (!appliedStyles.has(scopeId2)) {
359
364
  {
360
- styleElm = doc.createElement("style");
365
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
361
366
  styleElm.innerHTML = style;
362
367
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
363
368
  if (nonce != null) {
@@ -367,7 +372,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
367
372
  if (styleContainerNode.nodeName === "HEAD") {
368
373
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
369
374
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
370
- styleContainerNode.insertBefore(styleElm, referenceNode2);
375
+ styleContainerNode.insertBefore(
376
+ styleElm,
377
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
378
+ );
371
379
  } else if ("host" in styleContainerNode) {
372
380
  if (supportsConstructableStylesheets) {
373
381
  const stylesheet = new CSSStyleSheet();
@@ -385,7 +393,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
385
393
  styleContainerNode.append(styleElm);
386
394
  }
387
395
  }
388
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
396
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
389
397
  styleContainerNode.insertBefore(styleElm, null);
390
398
  }
391
399
  }
@@ -410,23 +418,25 @@ var attachStyles = (hostRef) => {
410
418
  const scopeId2 = addStyle(
411
419
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
412
420
  cmpMeta);
413
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
421
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
414
422
  elm["s-sc"] = scopeId2;
415
423
  elm.classList.add(scopeId2 + "-h");
416
424
  }
417
425
  endAttachStyles();
418
426
  };
419
427
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
420
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
421
429
  if (oldValue !== newValue) {
422
430
  let isProp = isMemberInElement(elm, memberName);
423
431
  let ln = memberName.toLowerCase();
424
432
  if (memberName === "class") {
425
433
  const classList = elm.classList;
426
434
  const oldClasses = parseClassList(oldValue);
427
- const newClasses = parseClassList(newValue);
428
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
429
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
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
+ }
430
440
  } else if (memberName === "style") {
431
441
  {
432
442
  for (const prop in oldValue) {
@@ -485,7 +495,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
485
495
  elm.setAttribute(memberName, n);
486
496
  }
487
497
  }
488
- } else {
498
+ } else if (elm[memberName] !== newValue) {
489
499
  elm[memberName] = newValue;
490
500
  }
491
501
  } catch (e) {
@@ -507,24 +517,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
507
517
  }
508
518
  };
509
519
  var parseClassListRegex = /\s/;
510
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
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
+ };
511
529
  var CAPTURE_EVENT_SUFFIX = "Capture";
512
530
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
513
531
 
514
532
  // src/runtime/vdom/update-element.ts
515
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
533
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
516
534
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
517
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
518
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
535
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
536
+ const newVnodeAttrs = newVnode.$attrs$ || {};
519
537
  {
520
538
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
521
539
  if (!(memberName in newVnodeAttrs)) {
522
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
540
+ setAccessor(
541
+ elm,
542
+ memberName,
543
+ oldVnodeAttrs[memberName],
544
+ void 0,
545
+ isSvgMode2,
546
+ newVnode.$flags$);
523
547
  }
524
548
  }
525
549
  }
526
550
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
527
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
551
+ setAccessor(
552
+ elm,
553
+ memberName,
554
+ oldVnodeAttrs[memberName],
555
+ newVnodeAttrs[memberName],
556
+ isSvgMode2,
557
+ newVnode.$flags$);
528
558
  }
529
559
  };
530
560
  function sortedAttrNames(attrNames) {
@@ -536,13 +566,10 @@ function sortedAttrNames(attrNames) {
536
566
  attrNames
537
567
  );
538
568
  }
539
-
540
- // src/runtime/vdom/vdom-render.ts
541
- var scopeId;
542
569
  var hostTagName;
543
570
  var useNativeShadowDom = false;
544
571
  var isSvgMode = false;
545
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
572
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
546
573
  const newVNode2 = newParentVNode.$children$[childIndex];
547
574
  let i2 = 0;
548
575
  let elm;
@@ -556,11 +583,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
556
583
  {
557
584
  updateElement(null, newVNode2, isSvgMode);
558
585
  }
559
- const rootNode = elm.getRootNode();
560
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
561
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
562
- elm.classList.add(elm["s-si"] = scopeId);
563
- }
564
586
  if (newVNode2.$children$) {
565
587
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
566
588
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -690,6 +712,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
712
  if (!isInitialRender) {
691
713
  return leftVNode.$key$ === rightVNode.$key$;
692
714
  }
715
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
716
+ leftVNode.$key$ = rightVNode.$key$;
717
+ }
693
718
  return true;
694
719
  }
695
720
  return false;
@@ -730,8 +755,9 @@ var nullifyVNodeRefs = (vNode) => {
730
755
  }
731
756
  };
732
757
  var insertBefore = (parent, newNode, reference) => {
733
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
734
- return inserted;
758
+ {
759
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
760
+ }
735
761
  };
736
762
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
737
763
  const hostElm = hostRef.$hostElement$;
@@ -756,17 +782,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
756
782
  rootVnode.$flags$ |= 4 /* isHost */;
757
783
  hostRef.$vnode$ = rootVnode;
758
784
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
759
- {
760
- scopeId = hostElm["s-sc"];
761
- }
762
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
785
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
763
786
  patch(oldVNode, rootVnode, isInitialLoad);
764
787
  };
765
788
 
766
789
  // src/runtime/update-component.ts
767
790
  var attachToAncestor = (hostRef, ancestorComponent) => {
768
791
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
769
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
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
+ );
770
800
  }
771
801
  };
772
802
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -795,12 +825,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
795
825
  {
796
826
  hostRef.$flags$ |= 256 /* isListenReady */;
797
827
  if (hostRef.$queuedListeners$) {
798
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
828
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
799
829
  hostRef.$queuedListeners$ = void 0;
800
830
  }
801
831
  }
802
832
  {
803
- maybePromise = safeCall(instance, "componentWillLoad");
833
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
804
834
  }
805
835
  }
806
836
  endSchedule();
@@ -869,7 +899,7 @@ var postUpdateComponent = (hostRef) => {
869
899
  const instance = hostRef.$lazyInstance$ ;
870
900
  const ancestorComponent = hostRef.$ancestorComponent$;
871
901
  {
872
- safeCall(instance, "componentDidRender");
902
+ safeCall(instance, "componentDidRender", void 0, elm);
873
903
  }
874
904
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
875
905
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -898,17 +928,14 @@ var postUpdateComponent = (hostRef) => {
898
928
  }
899
929
  };
900
930
  var appDidLoad = (who) => {
901
- {
902
- addHydratedFlag(doc.documentElement);
903
- }
904
931
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
905
932
  };
906
- var safeCall = (instance, method, arg) => {
933
+ var safeCall = (instance, method, arg, elm) => {
907
934
  if (instance && instance[method]) {
908
935
  try {
909
936
  return instance[method](arg);
910
937
  } catch (e) {
911
- consoleError(e);
938
+ consoleError(e, elm);
912
939
  }
913
940
  }
914
941
  return void 0;
@@ -967,15 +994,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
967
994
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
968
995
  members.map(([memberName, [memberFlags]]) => {
969
996
  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
+ }
970
1017
  Object.defineProperty(prototype, memberName, {
971
- get() {
972
- return getValue(this, memberName);
973
- },
974
1018
  set(newValue) {
975
- setValue(this, memberName, newValue, cmpMeta);
976
- },
977
- configurable: true,
978
- enumerable: true
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
+ }
979
1059
  });
980
1060
  }
981
1061
  });
@@ -985,7 +1065,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
985
1065
  plt.jmp(() => {
986
1066
  var _a2;
987
1067
  const propName = attrNameToPropName.get(attrName);
988
- if (this.hasOwnProperty(propName)) {
1068
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
989
1069
  newValue = this[propName];
990
1070
  delete this[propName];
991
1071
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1005,7 +1085,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1005
1085
  }
1006
1086
  return;
1007
1087
  }
1008
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
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
+ }
1009
1093
  });
1010
1094
  };
1011
1095
  Cstr.observedAttributes = Array.from(
@@ -1034,7 +1118,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1034
1118
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1035
1119
  const bundleId = cmpMeta.$lazyBundleId$;
1036
1120
  if (bundleId) {
1037
- const CstrImport = loadModule(cmpMeta);
1121
+ const CstrImport = loadModule(cmpMeta, hostRef);
1038
1122
  if (CstrImport && "then" in CstrImport) {
1039
1123
  const endLoad = uniqueTime();
1040
1124
  Cstr = await CstrImport;
@@ -1059,7 +1143,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1059
1143
  try {
1060
1144
  new Cstr(hostRef);
1061
1145
  } catch (e) {
1062
- consoleError(e);
1146
+ consoleError(e, elm);
1063
1147
  }
1064
1148
  {
1065
1149
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1094,7 +1178,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1094
1178
  schedule();
1095
1179
  }
1096
1180
  };
1097
- var fireConnectedCallback = (instance) => {
1181
+ var fireConnectedCallback = (instance, elm) => {
1098
1182
  };
1099
1183
 
1100
1184
  // src/runtime/connected-callback.ts
@@ -1135,9 +1219,9 @@ var connectedCallback = (elm) => {
1135
1219
  endConnected();
1136
1220
  }
1137
1221
  };
1138
- var disconnectInstance = (instance) => {
1222
+ var disconnectInstance = (instance, elm) => {
1139
1223
  {
1140
- safeCall(instance, "disconnectedCallback");
1224
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1141
1225
  }
1142
1226
  };
1143
1227
  var disconnectedCallback = async (elm) => {
@@ -1150,11 +1234,17 @@ var disconnectedCallback = async (elm) => {
1150
1234
  }
1151
1235
  }
1152
1236
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1153
- disconnectInstance(hostRef.$lazyInstance$);
1237
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1154
1238
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1155
- hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$));
1239
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1156
1240
  }
1157
1241
  }
1242
+ if (rootAppliedStyles.has(elm)) {
1243
+ rootAppliedStyles.delete(elm);
1244
+ }
1245
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1246
+ rootAppliedStyles.delete(elm.shadowRoot);
1247
+ }
1158
1248
  };
1159
1249
 
1160
1250
  // src/runtime/bootstrap-lazy.ts
@@ -1239,6 +1329,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1239
1329
  }
1240
1330
  disconnectedCallback() {
1241
1331
  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
+ });
1242
1343
  }
1243
1344
  componentOnReady() {
1244
1345
  return getHostRef(this).$onReadyPromise$;
@@ -1302,7 +1403,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1302
1403
  }
1303
1404
  }
1304
1405
  } catch (e) {
1305
- consoleError(e);
1406
+ consoleError(e, hostRef.$hostElement$);
1306
1407
  }
1307
1408
  };
1308
1409
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-82ecc11c.js';
2
- export { s as setNonce } from './index-82ecc11c.js';
1
+ import { b as bootstrapLazy } from './index-0ce0e283.js';
2
+ export { s as setNonce } from './index-0ce0e283.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-engagement-suite-jackpot-details",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",