@everymatrix/lottery-bullet 1.56.0 → 1.56.2

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/cjs/{index-38c8c84c.js → index-1580c0b3.js} +65 -200
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet.cjs.entry.js +8 -26
  4. package/dist/cjs/lottery-bullet.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-bullet/lottery-bullet.js +7 -37
  7. package/dist/esm/{index-74f54f1d.js → index-4eaba73f.js} +65 -200
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet.entry.js +8 -26
  10. package/dist/esm/lottery-bullet.js +3 -3
  11. package/dist/lottery-bullet/lottery-bullet.esm.js +1 -1
  12. package/dist/lottery-bullet/{p-4a3d752b.entry.js → p-f1de5e39.entry.js} +1 -1
  13. package/dist/lottery-bullet/p-fec2a7df.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/stencil-public-runtime.d.ts +0 -6
  17. package/package.json +1 -1
  18. package/dist/lottery-bullet/p-01d9eaf5.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,31 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  export class LotteryBullet {
3
3
  constructor() {
4
- /**
5
- * Value of the bullet
6
- */
7
- this.value = '0';
8
- /**
9
- * Marks if the bullet should be selectable
10
- */
11
- this.selectable = true;
12
- /**
13
- * Marks if the bullet should be selected
14
- */
15
- this.isSelected = false;
16
- /**
17
- * Marks if the number is bonus number.
18
- */
19
- this.isBonus = false;
20
- /**
21
- * Client custom styling via string
22
- */
23
- this.clientStyling = '';
24
- /**
25
- * Client custom styling via url content
26
- */
27
- this.clientStylingUrlContent = '';
28
- this.limitStylingAppends = false;
29
4
  this.select = () => {
30
5
  if (this.selectable) {
31
6
  this.isSelected = !this.isSelected;
@@ -47,6 +22,13 @@ export class LotteryBullet {
47
22
  this.stylingContainer.prepend(cssFile);
48
23
  }, 1);
49
24
  };
25
+ this.value = '0';
26
+ this.selectable = true;
27
+ this.isSelected = false;
28
+ this.isBonus = false;
29
+ this.clientStyling = '';
30
+ this.clientStylingUrlContent = '';
31
+ this.limitStylingAppends = false;
50
32
  }
51
33
  componentDidRender() {
52
34
  // start custom styling area
@@ -90,8 +72,6 @@ export class LotteryBullet {
90
72
  "tags": [],
91
73
  "text": "Value of the bullet"
92
74
  },
93
- "getter": false,
94
- "setter": false,
95
75
  "attribute": "value",
96
76
  "reflect": true,
97
77
  "defaultValue": "'0'"
@@ -110,8 +90,6 @@ export class LotteryBullet {
110
90
  "tags": [],
111
91
  "text": "Marks if the bullet should be selectable"
112
92
  },
113
- "getter": false,
114
- "setter": false,
115
93
  "attribute": "selectable",
116
94
  "reflect": true,
117
95
  "defaultValue": "true"
@@ -130,8 +108,6 @@ export class LotteryBullet {
130
108
  "tags": [],
131
109
  "text": "Marks if the bullet should be selected"
132
110
  },
133
- "getter": false,
134
- "setter": false,
135
111
  "attribute": "is-selected",
136
112
  "reflect": true,
137
113
  "defaultValue": "false"
@@ -150,8 +126,6 @@ export class LotteryBullet {
150
126
  "tags": [],
151
127
  "text": "Marks if the number is bonus number."
152
128
  },
153
- "getter": false,
154
- "setter": false,
155
129
  "attribute": "is-bonus",
156
130
  "reflect": true,
157
131
  "defaultValue": "false"
@@ -170,8 +144,6 @@ export class LotteryBullet {
170
144
  "tags": [],
171
145
  "text": "Client custom styling via string"
172
146
  },
173
- "getter": false,
174
- "setter": false,
175
147
  "attribute": "client-styling",
176
148
  "reflect": true,
177
149
  "defaultValue": "''"
@@ -190,8 +162,6 @@ export class LotteryBullet {
190
162
  "tags": [],
191
163
  "text": "Client custom styling via url content"
192
164
  },
193
- "getter": false,
194
- "setter": false,
195
165
  "attribute": "client-styling-url-content",
196
166
  "reflect": true,
197
167
  "defaultValue": "''"
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-bullet';
2
- const BUILD = /* lottery-bullet */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* lottery-bullet */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
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);
@@ -66,22 +61,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
66
61
  /* webpackExclude: /\.system\.entry\.js$/ */
67
62
  /* webpackMode: "lazy" */
68
63
  `./${bundleId}.entry.js${""}`
69
- ).then(
70
- (importedModule) => {
71
- {
72
- cmpModules.set(bundleId, importedModule);
73
- }
74
- return importedModule[exportName];
75
- },
76
- (e) => {
77
- consoleError(e, hostRef.$hostElement$);
64
+ ).then((importedModule) => {
65
+ {
66
+ cmpModules.set(bundleId, importedModule);
78
67
  }
79
- );
68
+ return importedModule[exportName];
69
+ }, consoleError);
80
70
  };
81
71
 
82
72
  // src/client/client-style.ts
83
73
  var styles = /* @__PURE__ */ new Map();
84
- var HYDRATED_STYLE_ID = "sty-id";
85
74
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
86
75
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
87
76
  var win = typeof window !== "undefined" ? window : {};
@@ -139,6 +128,12 @@ var flush = () => {
139
128
  };
140
129
  var nextTick = (cb) => promiseResolve().then(cb);
141
130
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
+
132
+ // src/utils/constants.ts
133
+ var EMPTY_OBJ = {};
134
+
135
+ // src/utils/helpers.ts
136
+ var isDef = (v) => v != null;
142
137
  var isComplexType = (o) => {
143
138
  o = typeof o;
144
139
  return o === "object" || o === "function";
@@ -339,40 +334,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
339
334
  }
340
335
  if (!appliedStyles.has(scopeId2)) {
341
336
  {
342
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
337
+ styleElm = doc.createElement("style");
343
338
  styleElm.innerHTML = style;
344
339
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
345
340
  if (nonce != null) {
346
341
  styleElm.setAttribute("nonce", nonce);
347
342
  }
348
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
349
- if (styleContainerNode.nodeName === "HEAD") {
350
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
351
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
352
- styleContainerNode.insertBefore(
353
- styleElm,
354
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
355
- );
356
- } else if ("host" in styleContainerNode) {
357
- if (supportsConstructableStylesheets) {
358
- const stylesheet = new CSSStyleSheet();
359
- stylesheet.replaceSync(style);
360
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
361
- } else {
362
- const existingStyleContainer = styleContainerNode.querySelector("style");
363
- if (existingStyleContainer) {
364
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
365
- } else {
366
- styleContainerNode.prepend(styleElm);
367
- }
368
- }
369
- } else {
370
- styleContainerNode.append(styleElm);
371
- }
372
- }
373
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
374
- styleContainerNode.insertBefore(styleElm, null);
375
- }
343
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
376
344
  }
377
345
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
378
346
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -395,25 +363,23 @@ var attachStyles = (hostRef) => {
395
363
  const scopeId2 = addStyle(
396
364
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
397
365
  cmpMeta);
398
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
366
+ if (flags & 10 /* needsScopedEncapsulation */) {
399
367
  elm["s-sc"] = scopeId2;
400
368
  elm.classList.add(scopeId2 + "-h");
401
369
  }
402
370
  endAttachStyles();
403
371
  };
404
372
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
405
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
373
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
406
374
  if (oldValue !== newValue) {
407
375
  let isProp = isMemberInElement(elm, memberName);
408
376
  let ln = memberName.toLowerCase();
409
377
  if (memberName === "class") {
410
378
  const classList = elm.classList;
411
379
  const oldClasses = parseClassList(oldValue);
412
- let newClasses = parseClassList(newValue);
413
- {
414
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
415
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
416
- }
380
+ const newClasses = parseClassList(newValue);
381
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
382
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
417
383
  } else if (memberName === "key") ; else if (memberName === "ref") {
418
384
  if (newValue) {
419
385
  newValue(elm);
@@ -445,13 +411,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
445
411
  if (memberName === "list") {
446
412
  isProp = false;
447
413
  } else if (oldValue == null || elm[memberName] != n) {
448
- if (typeof elm.__lookupSetter__(memberName) === "function") {
449
- elm[memberName] = n;
450
- } else {
451
- elm.setAttribute(memberName, n);
452
- }
414
+ elm[memberName] = n;
453
415
  }
454
- } else if (elm[memberName] !== newValue) {
416
+ } else {
455
417
  elm[memberName] = newValue;
456
418
  }
457
419
  } catch (e) {
@@ -473,44 +435,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
473
435
  }
474
436
  };
475
437
  var parseClassListRegex = /\s/;
476
- var parseClassList = (value) => {
477
- if (typeof value === "object" && value && "baseVal" in value) {
478
- value = value.baseVal;
479
- }
480
- if (!value || typeof value !== "string") {
481
- return [];
482
- }
483
- return value.split(parseClassListRegex);
484
- };
438
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
485
439
  var CAPTURE_EVENT_SUFFIX = "Capture";
486
440
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
487
441
 
488
442
  // src/runtime/vdom/update-element.ts
489
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
443
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
490
444
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
491
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
492
- const newVnodeAttrs = newVnode.$attrs$ || {};
445
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
446
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
493
447
  {
494
448
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
495
449
  if (!(memberName in newVnodeAttrs)) {
496
- setAccessor(
497
- elm,
498
- memberName,
499
- oldVnodeAttrs[memberName],
500
- void 0,
501
- isSvgMode2,
502
- newVnode.$flags$);
450
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
503
451
  }
504
452
  }
505
453
  }
506
454
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
507
- setAccessor(
508
- elm,
509
- memberName,
510
- oldVnodeAttrs[memberName],
511
- newVnodeAttrs[memberName],
512
- isSvgMode2,
513
- newVnode.$flags$);
455
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
514
456
  }
515
457
  };
516
458
  function sortedAttrNames(attrNames) {
@@ -522,10 +464,13 @@ function sortedAttrNames(attrNames) {
522
464
  attrNames
523
465
  );
524
466
  }
467
+
468
+ // src/runtime/vdom/vdom-render.ts
469
+ var scopeId;
525
470
  var hostTagName;
526
471
  var useNativeShadowDom = false;
527
472
  var isSvgMode = false;
528
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
473
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
529
474
  const newVNode2 = newParentVNode.$children$[childIndex];
530
475
  let i2 = 0;
531
476
  let elm;
@@ -539,6 +484,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
539
484
  {
540
485
  updateElement(null, newVNode2, isSvgMode);
541
486
  }
487
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
488
+ elm.classList.add(elm["s-si"] = scopeId);
489
+ }
542
490
  if (newVNode2.$children$) {
543
491
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
544
492
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -668,9 +616,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
668
616
  if (!isInitialRender) {
669
617
  return leftVNode.$key$ === rightVNode.$key$;
670
618
  }
671
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
672
- leftVNode.$key$ = rightVNode.$key$;
673
- }
674
619
  return true;
675
620
  }
676
621
  return false;
@@ -693,10 +638,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
693
638
  elm.textContent = "";
694
639
  }
695
640
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
696
- } else if (
697
- // don't do this on initial render as it can cause non-hydrated content to be removed
698
- !isInitialRender && BUILD.updatable && oldChildren !== null
699
- ) {
641
+ } else if (oldChildren !== null) {
700
642
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
701
643
  }
702
644
  } else if (oldVNode.$text$ !== text) {
@@ -710,9 +652,8 @@ var nullifyVNodeRefs = (vNode) => {
710
652
  }
711
653
  };
712
654
  var insertBefore = (parent, newNode, reference) => {
713
- {
714
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
715
- }
655
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
656
+ return inserted;
716
657
  };
717
658
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
718
659
  const hostElm = hostRef.$hostElement$;
@@ -737,21 +678,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
737
678
  rootVnode.$flags$ |= 4 /* isHost */;
738
679
  hostRef.$vnode$ = rootVnode;
739
680
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
740
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
681
+ {
682
+ scopeId = hostElm["s-sc"];
683
+ }
684
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
741
685
  patch(oldVNode, rootVnode, isInitialLoad);
742
686
  };
743
687
 
744
688
  // src/runtime/update-component.ts
745
689
  var attachToAncestor = (hostRef, ancestorComponent) => {
746
690
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
747
- const index = ancestorComponent["s-p"].push(
748
- new Promise(
749
- (r) => hostRef.$onRenderResolve$ = () => {
750
- ancestorComponent["s-p"].splice(index - 1, 1);
751
- r();
752
- }
753
- )
754
- );
691
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
755
692
  }
756
693
  };
757
694
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -842,7 +779,7 @@ var postUpdateComponent = (hostRef) => {
842
779
  const instance = hostRef.$lazyInstance$ ;
843
780
  const ancestorComponent = hostRef.$ancestorComponent$;
844
781
  {
845
- safeCall(instance, "componentDidRender", void 0, elm);
782
+ safeCall(instance, "componentDidRender");
846
783
  }
847
784
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
848
785
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -871,14 +808,17 @@ var postUpdateComponent = (hostRef) => {
871
808
  }
872
809
  };
873
810
  var appDidLoad = (who) => {
811
+ {
812
+ addHydratedFlag(doc.documentElement);
813
+ }
874
814
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
875
815
  };
876
- var safeCall = (instance, method, arg, elm) => {
816
+ var safeCall = (instance, method, arg) => {
877
817
  if (instance && instance[method]) {
878
818
  try {
879
819
  return instance[method](arg);
880
820
  } catch (e) {
881
- consoleError(e, elm);
821
+ consoleError(e);
882
822
  }
883
823
  }
884
824
  return void 0;
@@ -921,68 +861,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
921
861
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
922
862
  members.map(([memberName, [memberFlags]]) => {
923
863
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
924
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
925
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
926
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
927
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
928
- Object.defineProperty(prototype, memberName, {
929
- get() {
930
- {
931
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
932
- return getValue(this, memberName);
933
- }
934
- const ref = getHostRef(this);
935
- const instance = ref ? ref.$lazyInstance$ : prototype;
936
- if (!instance) return;
937
- return instance[memberName];
938
- }
939
- },
940
- configurable: true,
941
- enumerable: true
942
- });
943
- }
944
864
  Object.defineProperty(prototype, memberName, {
865
+ get() {
866
+ return getValue(this, memberName);
867
+ },
945
868
  set(newValue) {
946
- const ref = getHostRef(this);
947
- if (origSetter) {
948
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
949
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
950
- newValue = ref.$instanceValues$.get(memberName);
951
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
952
- ref.$instanceValues$.set(memberName, currentValue);
953
- }
954
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
955
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
956
- setValue(this, memberName, newValue, cmpMeta);
957
- return;
958
- }
959
- {
960
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
961
- setValue(this, memberName, newValue, cmpMeta);
962
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
963
- ref.$onReadyPromise$.then(() => {
964
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
965
- ref.$lazyInstance$[memberName] = newValue;
966
- }
967
- });
968
- }
969
- return;
970
- }
971
- const setterSetVal = () => {
972
- const currentValue = ref.$lazyInstance$[memberName];
973
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
974
- ref.$instanceValues$.set(memberName, currentValue);
975
- }
976
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
977
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
978
- };
979
- if (ref.$lazyInstance$) {
980
- setterSetVal();
981
- } else {
982
- ref.$onReadyPromise$.then(() => setterSetVal());
983
- }
984
- }
985
- }
869
+ setValue(this, memberName, newValue, cmpMeta);
870
+ },
871
+ configurable: true,
872
+ enumerable: true
986
873
  });
987
874
  }
988
875
  });
@@ -992,11 +879,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
992
879
  plt.jmp(() => {
993
880
  var _a2;
994
881
  const propName = attrNameToPropName.get(attrName);
995
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
882
+ if (this.hasOwnProperty(propName)) {
996
883
  newValue = this[propName];
997
884
  delete this[propName];
998
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
999
- this[propName] == newValue) {
885
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1000
886
  return;
1001
887
  } else if (propName == null) {
1002
888
  const hostRef = getHostRef(this);
@@ -1012,11 +898,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1012
898
  }
1013
899
  return;
1014
900
  }
1015
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1016
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1017
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1018
- this[propName] = newValue;
1019
- }
901
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1020
902
  });
1021
903
  };
1022
904
  Cstr.observedAttributes = Array.from(
@@ -1045,7 +927,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1045
927
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1046
928
  const bundleId = cmpMeta.$lazyBundleId$;
1047
929
  if (bundleId) {
1048
- const CstrImport = loadModule(cmpMeta, hostRef);
930
+ const CstrImport = loadModule(cmpMeta);
1049
931
  if (CstrImport && "then" in CstrImport) {
1050
932
  const endLoad = uniqueTime();
1051
933
  Cstr = await CstrImport;
@@ -1067,7 +949,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1067
949
  try {
1068
950
  new Cstr(hostRef);
1069
951
  } catch (e) {
1070
- consoleError(e, elm);
952
+ consoleError(e);
1071
953
  }
1072
954
  {
1073
955
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1099,7 +981,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1099
981
  schedule();
1100
982
  }
1101
983
  };
1102
- var fireConnectedCallback = (instance, elm) => {
984
+ var fireConnectedCallback = (instance) => {
1103
985
  };
1104
986
 
1105
987
  // src/runtime/connected-callback.ts
@@ -1139,7 +1021,7 @@ var connectedCallback = (elm) => {
1139
1021
  endConnected();
1140
1022
  }
1141
1023
  };
1142
- var disconnectInstance = (instance, elm) => {
1024
+ var disconnectInstance = (instance) => {
1143
1025
  };
1144
1026
  var disconnectedCallback = async (elm) => {
1145
1027
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1148,12 +1030,6 @@ var disconnectedCallback = async (elm) => {
1148
1030
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1149
1031
  }
1150
1032
  }
1151
- if (rootAppliedStyles.has(elm)) {
1152
- rootAppliedStyles.delete(elm);
1153
- }
1154
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1155
- rootAppliedStyles.delete(elm.shadowRoot);
1156
- }
1157
1033
  };
1158
1034
 
1159
1035
  // src/runtime/bootstrap-lazy.ts
@@ -1230,17 +1106,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1230
1106
  }
1231
1107
  disconnectedCallback() {
1232
1108
  plt.jmp(() => disconnectedCallback(this));
1233
- plt.raf(() => {
1234
- var _a3;
1235
- const hostRef = getHostRef(this);
1236
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1237
- if (i2 > -1) {
1238
- deferredConnectedCallbacks.splice(i2, 1);
1239
- }
1240
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1241
- delete hostRef.$vnode$.$elm$;
1242
- }
1243
- });
1244
1109
  }
1245
1110
  componentOnReady() {
1246
1111
  return getHostRef(this).$onReadyPromise$;
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-74f54f1d.js';
2
- export { s as setNonce } from './index-74f54f1d.js';
1
+ import { b as bootstrapLazy } from './index-4eaba73f.js';
2
+ export { s as setNonce } from './index-4eaba73f.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, c as createEvent, h } from './index-74f54f1d.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-4eaba73f.js';
2
2
 
3
3
  const lotteryBulletCss = "@import url(\"https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap\");:host{display:block;font-family:\"Roboto\", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}";
4
4
  const LotteryBulletStyle0 = lotteryBulletCss;
@@ -7,31 +7,6 @@ const LotteryBullet = class {
7
7
  constructor(hostRef) {
8
8
  registerInstance(this, hostRef);
9
9
  this.bulletEvent = createEvent(this, "lotteryBulletSelection", 7);
10
- /**
11
- * Value of the bullet
12
- */
13
- this.value = '0';
14
- /**
15
- * Marks if the bullet should be selectable
16
- */
17
- this.selectable = true;
18
- /**
19
- * Marks if the bullet should be selected
20
- */
21
- this.isSelected = false;
22
- /**
23
- * Marks if the number is bonus number.
24
- */
25
- this.isBonus = false;
26
- /**
27
- * Client custom styling via string
28
- */
29
- this.clientStyling = '';
30
- /**
31
- * Client custom styling via url content
32
- */
33
- this.clientStylingUrlContent = '';
34
- this.limitStylingAppends = false;
35
10
  this.select = () => {
36
11
  if (this.selectable) {
37
12
  this.isSelected = !this.isSelected;
@@ -53,6 +28,13 @@ const LotteryBullet = class {
53
28
  this.stylingContainer.prepend(cssFile);
54
29
  }, 1);
55
30
  };
31
+ this.value = '0';
32
+ this.selectable = true;
33
+ this.isSelected = false;
34
+ this.isBonus = false;
35
+ this.clientStyling = '';
36
+ this.clientStylingUrlContent = '';
37
+ this.limitStylingAppends = false;
56
38
  }
57
39
  componentDidRender() {
58
40
  // start custom styling area
@@ -1,9 +1,9 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-74f54f1d.js';
2
- export { s as setNonce } from './index-74f54f1d.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-4eaba73f.js';
2
+ export { s as setNonce } from './index-4eaba73f.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;