@everymatrix/casino-tournament-prizes 1.55.0 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist/casino-tournament-prizes/casino-tournament-prizes.esm.js +1 -1
  2. package/dist/casino-tournament-prizes/p-dea4ad64.entry.js +1 -0
  3. package/dist/casino-tournament-prizes/p-e83ebab2.js +2 -0
  4. package/dist/cjs/casino-tournament-prizes.cjs.entry.js +1 -6
  5. package/dist/cjs/casino-tournament-prizes.cjs.js +2 -2
  6. package/dist/cjs/{index-af94fbb3.js → index-0c084c74.js} +173 -70
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-tournament-prizes/casino-tournament-prizes.js +18 -5
  10. package/dist/esm/casino-tournament-prizes.entry.js +1 -6
  11. package/dist/esm/casino-tournament-prizes.js +3 -3
  12. package/dist/esm/{index-db720582.js → index-30effb08.js} +173 -70
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-prizes/p-05dcfba0.js +0 -2
  18. package/dist/casino-tournament-prizes/p-107abf52.entry.js +0 -1
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/packages/stencil/casino-tournament-prizes/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-prizes/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,13 +2,8 @@ import { h } from "@stencil/core";
2
2
  import { translate } from "../../utils/locale.utils";
3
3
  export class CasinoTournamentPrizes {
4
4
  constructor() {
5
- this.language = undefined;
6
5
  this.useGroup = false;
7
6
  this.useEvent = false;
8
- this.endpoint = undefined;
9
- this.session = undefined;
10
- this.rawPrizes = undefined;
11
- this.tournamentId = undefined;
12
7
  this.clientStyling = '';
13
8
  this.clientStylingUrl = '';
14
9
  this.limitStylingAppends = false;
@@ -139,6 +134,8 @@ export class CasinoTournamentPrizes {
139
134
  "tags": [],
140
135
  "text": ""
141
136
  },
137
+ "getter": false,
138
+ "setter": false,
142
139
  "attribute": "language",
143
140
  "reflect": false
144
141
  },
@@ -156,6 +153,8 @@ export class CasinoTournamentPrizes {
156
153
  "tags": [],
157
154
  "text": ""
158
155
  },
156
+ "getter": false,
157
+ "setter": false,
159
158
  "attribute": "use-group",
160
159
  "reflect": false,
161
160
  "defaultValue": "false"
@@ -174,6 +173,8 @@ export class CasinoTournamentPrizes {
174
173
  "tags": [],
175
174
  "text": ""
176
175
  },
176
+ "getter": false,
177
+ "setter": false,
177
178
  "attribute": "use-event",
178
179
  "reflect": false,
179
180
  "defaultValue": "false"
@@ -192,6 +193,8 @@ export class CasinoTournamentPrizes {
192
193
  "tags": [],
193
194
  "text": ""
194
195
  },
196
+ "getter": false,
197
+ "setter": false,
195
198
  "attribute": "endpoint",
196
199
  "reflect": false
197
200
  },
@@ -209,6 +212,8 @@ export class CasinoTournamentPrizes {
209
212
  "tags": [],
210
213
  "text": ""
211
214
  },
215
+ "getter": false,
216
+ "setter": false,
212
217
  "attribute": "session",
213
218
  "reflect": false
214
219
  },
@@ -226,6 +231,8 @@ export class CasinoTournamentPrizes {
226
231
  "tags": [],
227
232
  "text": ""
228
233
  },
234
+ "getter": false,
235
+ "setter": false,
229
236
  "attribute": "raw-prizes",
230
237
  "reflect": false
231
238
  },
@@ -243,6 +250,8 @@ export class CasinoTournamentPrizes {
243
250
  "tags": [],
244
251
  "text": ""
245
252
  },
253
+ "getter": false,
254
+ "setter": false,
246
255
  "attribute": "tournament-id",
247
256
  "reflect": false
248
257
  },
@@ -260,6 +269,8 @@ export class CasinoTournamentPrizes {
260
269
  "tags": [],
261
270
  "text": ""
262
271
  },
272
+ "getter": false,
273
+ "setter": false,
263
274
  "attribute": "client-styling",
264
275
  "reflect": false,
265
276
  "defaultValue": "''"
@@ -278,6 +289,8 @@ export class CasinoTournamentPrizes {
278
289
  "tags": [],
279
290
  "text": ""
280
291
  },
292
+ "getter": false,
293
+ "setter": false,
281
294
  "attribute": "client-styling-url",
282
295
  "reflect": false,
283
296
  "defaultValue": "''"
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-db720582.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-30effb08.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE = 'en';
4
4
  const TRANSLATIONS = {
@@ -65,13 +65,8 @@ const CasinoTournamentPrizesStyle0 = casinoTournamentPrizesCss;
65
65
  const CasinoTournamentPrizes = class {
66
66
  constructor(hostRef) {
67
67
  registerInstance(this, hostRef);
68
- this.language = undefined;
69
68
  this.useGroup = false;
70
69
  this.useEvent = false;
71
- this.endpoint = undefined;
72
- this.session = undefined;
73
- this.rawPrizes = undefined;
74
- this.tournamentId = undefined;
75
70
  this.clientStyling = '';
76
71
  this.clientStylingUrl = '';
77
72
  this.limitStylingAppends = false;
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-db720582.js';
2
- export { s as setNonce } from './index-db720582.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-30effb08.js';
2
+ export { s as setNonce } from './index-30effb08.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,17 +1,25 @@
1
1
  const NAMESPACE = 'casino-tournament-prizes';
2
- const BUILD = /* casino-tournament-prizes */ { 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: false, element: false, event: false, 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: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* casino-tournament-prizes */ { 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: false, element: false, event: false, 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: false, propNumber: false, propString: true, reflect: false, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: false, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
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/utils/constants.ts
14
+ var SVG_NS = "http://www.w3.org/2000/svg";
15
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
16
+
17
+ // src/client/client-host-ref.ts
12
18
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
19
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
20
+ var registerInstance = (lazyInstance, hostRef) => {
21
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
22
+ };
15
23
  var registerHost = (hostElement, cmpMeta) => {
16
24
  const hostRef = {
17
25
  $flags$: 0,
@@ -24,7 +32,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
32
  hostElement["s-p"] = [];
25
33
  hostElement["s-rc"] = [];
26
34
  }
27
- return hostRefs.set(hostElement, hostRef);
35
+ const ref = hostRefs.set(hostElement, hostRef);
36
+ return ref;
28
37
  };
29
38
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
39
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +70,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
70
  /* webpackExclude: /\.system\.entry\.js$/ */
62
71
  /* webpackMode: "lazy" */
63
72
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- 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$);
67
82
  }
68
- return importedModule[exportName];
69
- }, consoleError);
83
+ );
70
84
  };
71
85
 
72
86
  // src/client/client-style.ts
73
87
  var styles = /* @__PURE__ */ new Map();
88
+ var HYDRATED_STYLE_ID = "sty-id";
74
89
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
90
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
91
  var win = typeof window !== "undefined" ? window : {};
@@ -144,14 +159,6 @@ var flush = () => {
144
159
  };
145
160
  var nextTick = (cb) => promiseResolve().then(cb);
146
161
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
-
148
- // src/utils/constants.ts
149
- var EMPTY_OBJ = {};
150
- var SVG_NS = "http://www.w3.org/2000/svg";
151
- var HTML_NS = "http://www.w3.org/1999/xhtml";
152
-
153
- // src/utils/helpers.ts
154
- var isDef = (v) => v != null;
155
162
  var isComplexType = (o) => {
156
163
  o = typeof o;
157
164
  return o === "object" || o === "function";
@@ -337,7 +344,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
337
344
  }
338
345
  if (!appliedStyles.has(scopeId2)) {
339
346
  {
340
- styleElm = doc.createElement("style");
347
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
341
348
  styleElm.innerHTML = style;
342
349
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
343
350
  if (nonce != null) {
@@ -347,7 +354,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
347
354
  if (styleContainerNode.nodeName === "HEAD") {
348
355
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
349
356
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
350
- styleContainerNode.insertBefore(styleElm, referenceNode2);
357
+ styleContainerNode.insertBefore(
358
+ styleElm,
359
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
360
+ );
351
361
  } else if ("host" in styleContainerNode) {
352
362
  if (supportsConstructableStylesheets) {
353
363
  const stylesheet = new CSSStyleSheet();
@@ -365,7 +375,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
365
375
  styleContainerNode.append(styleElm);
366
376
  }
367
377
  }
368
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
378
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
369
379
  styleContainerNode.insertBefore(styleElm, null);
370
380
  }
371
381
  }
@@ -390,23 +400,25 @@ var attachStyles = (hostRef) => {
390
400
  const scopeId2 = addStyle(
391
401
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
392
402
  cmpMeta);
393
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
403
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
394
404
  elm["s-sc"] = scopeId2;
395
405
  elm.classList.add(scopeId2 + "-h");
396
406
  }
397
407
  endAttachStyles();
398
408
  };
399
409
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
400
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
410
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
401
411
  if (oldValue !== newValue) {
402
412
  let isProp = isMemberInElement(elm, memberName);
403
413
  memberName.toLowerCase();
404
414
  if (memberName === "class") {
405
415
  const classList = elm.classList;
406
416
  const oldClasses = parseClassList(oldValue);
407
- const newClasses = parseClassList(newValue);
408
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
409
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
417
+ let newClasses = parseClassList(newValue);
418
+ {
419
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
420
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
421
+ }
410
422
  } else if (memberName === "key") ; else {
411
423
  const isComplex = isComplexType(newValue);
412
424
  if ((isProp || isComplex && newValue !== null) && !isSvg) {
@@ -422,7 +434,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
422
434
  elm.setAttribute(memberName, n);
423
435
  }
424
436
  }
425
- } else {
437
+ } else if (elm[memberName] !== newValue) {
426
438
  elm[memberName] = newValue;
427
439
  }
428
440
  } catch (e) {
@@ -444,22 +456,42 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
444
456
  }
445
457
  };
446
458
  var parseClassListRegex = /\s/;
447
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
459
+ var parseClassList = (value) => {
460
+ if (typeof value === "object" && value && "baseVal" in value) {
461
+ value = value.baseVal;
462
+ }
463
+ if (!value || typeof value !== "string") {
464
+ return [];
465
+ }
466
+ return value.split(parseClassListRegex);
467
+ };
448
468
 
449
469
  // src/runtime/vdom/update-element.ts
450
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
470
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
451
471
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
452
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
453
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
472
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
473
+ const newVnodeAttrs = newVnode.$attrs$ || {};
454
474
  {
455
475
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
456
476
  if (!(memberName in newVnodeAttrs)) {
457
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
477
+ setAccessor(
478
+ elm,
479
+ memberName,
480
+ oldVnodeAttrs[memberName],
481
+ void 0,
482
+ isSvgMode2,
483
+ newVnode.$flags$);
458
484
  }
459
485
  }
460
486
  }
461
487
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
462
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
488
+ setAccessor(
489
+ elm,
490
+ memberName,
491
+ oldVnodeAttrs[memberName],
492
+ newVnodeAttrs[memberName],
493
+ isSvgMode2,
494
+ newVnode.$flags$);
463
495
  }
464
496
  };
465
497
  function sortedAttrNames(attrNames) {
@@ -471,13 +503,10 @@ function sortedAttrNames(attrNames) {
471
503
  attrNames
472
504
  );
473
505
  }
474
-
475
- // src/runtime/vdom/vdom-render.ts
476
- var scopeId;
477
506
  var hostTagName;
478
507
  var useNativeShadowDom = false;
479
508
  var isSvgMode = false;
480
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
509
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
481
510
  const newVNode2 = newParentVNode.$children$[childIndex];
482
511
  let i2 = 0;
483
512
  let elm;
@@ -498,11 +527,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
498
527
  {
499
528
  updateElement(null, newVNode2, isSvgMode);
500
529
  }
501
- const rootNode = elm.getRootNode();
502
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
503
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
504
- elm.classList.add(elm["s-si"] = scopeId);
505
- }
506
530
  if (newVNode2.$children$) {
507
531
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
508
532
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -638,6 +662,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
638
662
  if (!isInitialRender) {
639
663
  return leftVNode.$key$ === rightVNode.$key$;
640
664
  }
665
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
666
+ leftVNode.$key$ = rightVNode.$key$;
667
+ }
641
668
  return true;
642
669
  }
643
670
  return false;
@@ -678,8 +705,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
678
705
  }
679
706
  };
680
707
  var insertBefore = (parent, newNode, reference) => {
681
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
682
- return inserted;
708
+ {
709
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
710
+ }
683
711
  };
684
712
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
685
713
  const hostElm = hostRef.$hostElement$;
@@ -698,17 +726,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
698
726
  rootVnode.$flags$ |= 4 /* isHost */;
699
727
  hostRef.$vnode$ = rootVnode;
700
728
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
701
- {
702
- scopeId = hostElm["s-sc"];
703
- }
704
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
729
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
705
730
  patch(oldVNode, rootVnode, isInitialLoad);
706
731
  };
707
732
 
708
733
  // src/runtime/update-component.ts
709
734
  var attachToAncestor = (hostRef, ancestorComponent) => {
710
735
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
711
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
736
+ const index = ancestorComponent["s-p"].push(
737
+ new Promise(
738
+ (r) => hostRef.$onRenderResolve$ = () => {
739
+ ancestorComponent["s-p"].splice(index - 1, 1);
740
+ r();
741
+ }
742
+ )
743
+ );
712
744
  }
713
745
  };
714
746
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -737,12 +769,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
737
769
  {
738
770
  hostRef.$flags$ |= 256 /* isListenReady */;
739
771
  if (hostRef.$queuedListeners$) {
740
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
772
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
741
773
  hostRef.$queuedListeners$ = void 0;
742
774
  }
743
775
  }
744
776
  {
745
- maybePromise = safeCall(instance, "componentWillLoad");
777
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
746
778
  }
747
779
  }
748
780
  endSchedule();
@@ -811,7 +843,7 @@ var postUpdateComponent = (hostRef) => {
811
843
  const instance = hostRef.$lazyInstance$ ;
812
844
  const ancestorComponent = hostRef.$ancestorComponent$;
813
845
  {
814
- safeCall(instance, "componentDidRender");
846
+ safeCall(instance, "componentDidRender", void 0, elm);
815
847
  }
816
848
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
817
849
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -840,17 +872,14 @@ var postUpdateComponent = (hostRef) => {
840
872
  }
841
873
  };
842
874
  var appDidLoad = (who) => {
843
- {
844
- addHydratedFlag(doc.documentElement);
845
- }
846
875
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
847
876
  };
848
- var safeCall = (instance, method, arg) => {
877
+ var safeCall = (instance, method, arg, elm) => {
849
878
  if (instance && instance[method]) {
850
879
  try {
851
880
  return instance[method](arg);
852
881
  } catch (e) {
853
- consoleError(e);
882
+ consoleError(e, elm);
854
883
  }
855
884
  }
856
885
  return void 0;
@@ -893,15 +922,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
893
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
894
923
  members.map(([memberName, [memberFlags]]) => {
895
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
925
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
926
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
927
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
928
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
929
+ Object.defineProperty(prototype, memberName, {
930
+ get() {
931
+ {
932
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
933
+ return getValue(this, memberName);
934
+ }
935
+ const ref = getHostRef(this);
936
+ const instance = ref ? ref.$lazyInstance$ : prototype;
937
+ if (!instance) return;
938
+ return instance[memberName];
939
+ }
940
+ },
941
+ configurable: true,
942
+ enumerable: true
943
+ });
944
+ }
896
945
  Object.defineProperty(prototype, memberName, {
897
- get() {
898
- return getValue(this, memberName);
899
- },
900
946
  set(newValue) {
901
- setValue(this, memberName, newValue, cmpMeta);
902
- },
903
- configurable: true,
904
- enumerable: true
947
+ const ref = getHostRef(this);
948
+ if (origSetter) {
949
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
950
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
951
+ newValue = ref.$instanceValues$.get(memberName);
952
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
953
+ ref.$instanceValues$.set(memberName, currentValue);
954
+ }
955
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
956
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
957
+ setValue(this, memberName, newValue, cmpMeta);
958
+ return;
959
+ }
960
+ {
961
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
962
+ setValue(this, memberName, newValue, cmpMeta);
963
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
964
+ ref.$onReadyPromise$.then(() => {
965
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
966
+ ref.$lazyInstance$[memberName] = newValue;
967
+ }
968
+ });
969
+ }
970
+ return;
971
+ }
972
+ const setterSetVal = () => {
973
+ const currentValue = ref.$lazyInstance$[memberName];
974
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
975
+ ref.$instanceValues$.set(memberName, currentValue);
976
+ }
977
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
978
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
979
+ };
980
+ if (ref.$lazyInstance$) {
981
+ setterSetVal();
982
+ } else {
983
+ ref.$onReadyPromise$.then(() => setterSetVal());
984
+ }
985
+ }
986
+ }
905
987
  });
906
988
  }
907
989
  });
@@ -911,7 +993,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
911
993
  plt.jmp(() => {
912
994
  var _a2;
913
995
  const propName = attrNameToPropName.get(attrName);
914
- if (this.hasOwnProperty(propName)) {
996
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
915
997
  newValue = this[propName];
916
998
  delete this[propName];
917
999
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -931,7 +1013,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
931
1013
  }
932
1014
  return;
933
1015
  }
934
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1016
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1017
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1018
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1019
+ this[propName] = newValue;
1020
+ }
935
1021
  });
936
1022
  };
937
1023
  Cstr.observedAttributes = Array.from(
@@ -956,7 +1042,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
956
1042
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
957
1043
  const bundleId = cmpMeta.$lazyBundleId$;
958
1044
  if (bundleId) {
959
- const CstrImport = loadModule(cmpMeta);
1045
+ const CstrImport = loadModule(cmpMeta, hostRef);
960
1046
  if (CstrImport && "then" in CstrImport) {
961
1047
  const endLoad = uniqueTime();
962
1048
  Cstr = await CstrImport;
@@ -978,7 +1064,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
978
1064
  try {
979
1065
  new Cstr(hostRef);
980
1066
  } catch (e) {
981
- consoleError(e);
1067
+ consoleError(e, elm);
982
1068
  }
983
1069
  {
984
1070
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1010,7 +1096,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1010
1096
  schedule();
1011
1097
  }
1012
1098
  };
1013
- var fireConnectedCallback = (instance) => {
1099
+ var fireConnectedCallback = (instance, elm) => {
1014
1100
  };
1015
1101
 
1016
1102
  // src/runtime/connected-callback.ts
@@ -1051,7 +1137,7 @@ var connectedCallback = (elm) => {
1051
1137
  endConnected();
1052
1138
  }
1053
1139
  };
1054
- var disconnectInstance = (instance) => {
1140
+ var disconnectInstance = (instance, elm) => {
1055
1141
  };
1056
1142
  var disconnectedCallback = async (elm) => {
1057
1143
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1066,6 +1152,12 @@ var disconnectedCallback = async (elm) => {
1066
1152
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1067
1153
  }
1068
1154
  }
1155
+ if (rootAppliedStyles.has(elm)) {
1156
+ rootAppliedStyles.delete(elm);
1157
+ }
1158
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1159
+ rootAppliedStyles.delete(elm.shadowRoot);
1160
+ }
1069
1161
  };
1070
1162
 
1071
1163
  // src/runtime/bootstrap-lazy.ts
@@ -1143,6 +1235,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1143
1235
  }
1144
1236
  disconnectedCallback() {
1145
1237
  plt.jmp(() => disconnectedCallback(this));
1238
+ plt.raf(() => {
1239
+ var _a3;
1240
+ const hostRef = getHostRef(this);
1241
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1242
+ if (i2 > -1) {
1243
+ deferredConnectedCallbacks.splice(i2, 1);
1244
+ }
1245
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1246
+ delete hostRef.$vnode$.$elm$;
1247
+ }
1248
+ });
1146
1249
  }
1147
1250
  componentOnReady() {
1148
1251
  return getHostRef(this).$onReadyPromise$;
@@ -1206,7 +1309,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1206
1309
  }
1207
1310
  }
1208
1311
  } catch (e) {
1209
- consoleError(e);
1312
+ consoleError(e, hostRef.$hostElement$);
1210
1313
  }
1211
1314
  };
1212
1315
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-db720582.js';
2
- export { s as setNonce } from './index-db720582.js';
1
+ import { b as bootstrapLazy } from './index-30effb08.js';
2
+ export { s as setNonce } from './index-30effb08.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-tournament-prizes",
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",