@everymatrix/lottery-grid 1.54.12 → 1.55.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/cjs/{index-0019f59e.js → index-8b26cfcb.js} +71 -172
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/lottery-bullet_2.cjs.entry.js +25 -90
  4. package/dist/cjs/lottery-grid.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/lottery-grid/lottery-grid.js +17 -102
  7. package/dist/esm/{index-a4a45d0f.js → index-610c64ca.js} +71 -172
  8. package/dist/esm/loader.js +2 -2
  9. package/dist/esm/lottery-bullet_2.entry.js +25 -90
  10. package/dist/esm/lottery-grid.js +3 -3
  11. package/dist/lottery-grid/lottery-grid.esm.js +1 -1
  12. package/dist/lottery-grid/p-a27a4bfc.entry.js +1 -0
  13. package/dist/lottery-grid/p-a2add9a5.js +2 -0
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/lottery-grid/p-7ec64ea7.entry.js +0 -1
  18. package/dist/lottery-grid/p-eee776b4.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-grid/.stencil/packages/stencil/lottery-grid/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-grid/.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-grid/.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-grid/.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-grid/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,21 +1,17 @@
1
1
  const NAMESPACE = 'lottery-grid';
2
- const BUILD = /* lottery-grid */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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: true, 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-grid */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: true, 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: true, 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.22.3 | 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 : {};
@@ -155,6 +144,12 @@ var flush = () => {
155
144
  };
156
145
  var nextTick = (cb) => promiseResolve().then(cb);
157
146
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
147
+
148
+ // src/utils/constants.ts
149
+ var EMPTY_OBJ = {};
150
+
151
+ // src/utils/helpers.ts
152
+ var isDef = (v) => v != null;
158
153
  var isComplexType = (o) => {
159
154
  o = typeof o;
160
155
  return o === "object" || o === "function";
@@ -358,7 +353,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
358
353
  }
359
354
  if (!appliedStyles.has(scopeId2)) {
360
355
  {
361
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
356
+ styleElm = doc.createElement("style");
362
357
  styleElm.innerHTML = style;
363
358
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
364
359
  if (nonce != null) {
@@ -368,10 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
368
363
  if (styleContainerNode.nodeName === "HEAD") {
369
364
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
370
365
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
371
- styleContainerNode.insertBefore(
372
- styleElm,
373
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
374
- );
366
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
375
367
  } else if ("host" in styleContainerNode) {
376
368
  if (supportsConstructableStylesheets) {
377
369
  const stylesheet = new CSSStyleSheet();
@@ -389,7 +381,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
389
381
  styleContainerNode.append(styleElm);
390
382
  }
391
383
  }
392
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
384
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
393
385
  styleContainerNode.insertBefore(styleElm, null);
394
386
  }
395
387
  }
@@ -414,25 +406,23 @@ var attachStyles = (hostRef) => {
414
406
  const scopeId2 = addStyle(
415
407
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
416
408
  cmpMeta);
417
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
409
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
418
410
  elm["s-sc"] = scopeId2;
419
411
  elm.classList.add(scopeId2 + "-h");
420
412
  }
421
413
  endAttachStyles();
422
414
  };
423
415
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
424
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
416
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
425
417
  if (oldValue !== newValue) {
426
418
  let isProp = isMemberInElement(elm, memberName);
427
419
  let ln = memberName.toLowerCase();
428
420
  if (memberName === "class") {
429
421
  const classList = elm.classList;
430
422
  const oldClasses = parseClassList(oldValue);
431
- let newClasses = parseClassList(newValue);
432
- {
433
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
434
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
435
- }
423
+ const newClasses = parseClassList(newValue);
424
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
425
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
436
426
  } else if (memberName === "key") ; else if (memberName === "ref") {
437
427
  if (newValue) {
438
428
  newValue(elm);
@@ -470,7 +460,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
470
460
  elm.setAttribute(memberName, n);
471
461
  }
472
462
  }
473
- } else if (elm[memberName] !== newValue) {
463
+ } else {
474
464
  elm[memberName] = newValue;
475
465
  }
476
466
  } catch (e) {
@@ -492,44 +482,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
492
482
  }
493
483
  };
494
484
  var parseClassListRegex = /\s/;
495
- var parseClassList = (value) => {
496
- if (typeof value === "object" && value && "baseVal" in value) {
497
- value = value.baseVal;
498
- }
499
- if (!value || typeof value !== "string") {
500
- return [];
501
- }
502
- return value.split(parseClassListRegex);
503
- };
485
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
504
486
  var CAPTURE_EVENT_SUFFIX = "Capture";
505
487
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
506
488
 
507
489
  // src/runtime/vdom/update-element.ts
508
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
490
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
509
491
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
510
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
511
- const newVnodeAttrs = newVnode.$attrs$ || {};
492
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
493
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
512
494
  {
513
495
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
514
496
  if (!(memberName in newVnodeAttrs)) {
515
- setAccessor(
516
- elm,
517
- memberName,
518
- oldVnodeAttrs[memberName],
519
- void 0,
520
- isSvgMode2,
521
- newVnode.$flags$);
497
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
522
498
  }
523
499
  }
524
500
  }
525
501
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
526
- setAccessor(
527
- elm,
528
- memberName,
529
- oldVnodeAttrs[memberName],
530
- newVnodeAttrs[memberName],
531
- isSvgMode2,
532
- newVnode.$flags$);
502
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
533
503
  }
534
504
  };
535
505
  function sortedAttrNames(attrNames) {
@@ -541,10 +511,13 @@ function sortedAttrNames(attrNames) {
541
511
  attrNames
542
512
  );
543
513
  }
514
+
515
+ // src/runtime/vdom/vdom-render.ts
516
+ var scopeId;
544
517
  var hostTagName;
545
518
  var useNativeShadowDom = false;
546
519
  var isSvgMode = false;
547
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
520
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
548
521
  const newVNode2 = newParentVNode.$children$[childIndex];
549
522
  let i2 = 0;
550
523
  let elm;
@@ -558,6 +531,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
558
531
  {
559
532
  updateElement(null, newVNode2, isSvgMode);
560
533
  }
534
+ const rootNode = elm.getRootNode();
535
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
536
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
537
+ elm.classList.add(elm["s-si"] = scopeId);
538
+ }
561
539
  if (newVNode2.$children$) {
562
540
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
563
541
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -687,9 +665,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
687
665
  if (!isInitialRender) {
688
666
  return leftVNode.$key$ === rightVNode.$key$;
689
667
  }
690
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
691
- leftVNode.$key$ = rightVNode.$key$;
692
- }
693
668
  return true;
694
669
  }
695
670
  return false;
@@ -729,9 +704,8 @@ var nullifyVNodeRefs = (vNode) => {
729
704
  }
730
705
  };
731
706
  var insertBefore = (parent, newNode, reference) => {
732
- {
733
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
734
- }
707
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
708
+ return inserted;
735
709
  };
736
710
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
737
711
  const hostElm = hostRef.$hostElement$;
@@ -756,21 +730,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
756
730
  rootVnode.$flags$ |= 4 /* isHost */;
757
731
  hostRef.$vnode$ = rootVnode;
758
732
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
759
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
733
+ {
734
+ scopeId = hostElm["s-sc"];
735
+ }
736
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
760
737
  patch(oldVNode, rootVnode, isInitialLoad);
761
738
  };
762
739
 
763
740
  // src/runtime/update-component.ts
764
741
  var attachToAncestor = (hostRef, ancestorComponent) => {
765
742
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
766
- const index = ancestorComponent["s-p"].push(
767
- new Promise(
768
- (r) => hostRef.$onRenderResolve$ = () => {
769
- ancestorComponent["s-p"].splice(index - 1, 1);
770
- r();
771
- }
772
- )
773
- );
743
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
774
744
  }
775
745
  };
776
746
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -799,7 +769,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
799
769
  {
800
770
  hostRef.$flags$ |= 256 /* isListenReady */;
801
771
  if (hostRef.$queuedListeners$) {
802
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
772
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
803
773
  hostRef.$queuedListeners$ = void 0;
804
774
  }
805
775
  }
@@ -870,7 +840,7 @@ var postUpdateComponent = (hostRef) => {
870
840
  const instance = hostRef.$lazyInstance$ ;
871
841
  const ancestorComponent = hostRef.$ancestorComponent$;
872
842
  {
873
- safeCall(instance, "componentDidRender", void 0, elm);
843
+ safeCall(instance, "componentDidRender");
874
844
  }
875
845
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
876
846
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -899,14 +869,17 @@ var postUpdateComponent = (hostRef) => {
899
869
  }
900
870
  };
901
871
  var appDidLoad = (who) => {
872
+ {
873
+ addHydratedFlag(doc.documentElement);
874
+ }
902
875
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
903
876
  };
904
- var safeCall = (instance, method, arg, elm) => {
877
+ var safeCall = (instance, method, arg) => {
905
878
  if (instance && instance[method]) {
906
879
  try {
907
880
  return instance[method](arg);
908
881
  } catch (e) {
909
- consoleError(e, elm);
882
+ consoleError(e);
910
883
  }
911
884
  }
912
885
  return void 0;
@@ -949,68 +922,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
949
922
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
950
923
  members.map(([memberName, [memberFlags]]) => {
951
924
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
952
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
953
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
954
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
955
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
956
- Object.defineProperty(prototype, memberName, {
957
- get() {
958
- {
959
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
960
- return getValue(this, memberName);
961
- }
962
- const ref = getHostRef(this);
963
- const instance = ref ? ref.$lazyInstance$ : prototype;
964
- if (!instance) return;
965
- return instance[memberName];
966
- }
967
- },
968
- configurable: true,
969
- enumerable: true
970
- });
971
- }
972
925
  Object.defineProperty(prototype, memberName, {
926
+ get() {
927
+ return getValue(this, memberName);
928
+ },
973
929
  set(newValue) {
974
- const ref = getHostRef(this);
975
- if (origSetter) {
976
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
977
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
978
- newValue = ref.$instanceValues$.get(memberName);
979
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
980
- ref.$instanceValues$.set(memberName, currentValue);
981
- }
982
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
983
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
984
- setValue(this, memberName, newValue, cmpMeta);
985
- return;
986
- }
987
- {
988
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
989
- setValue(this, memberName, newValue, cmpMeta);
990
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
991
- ref.$onReadyPromise$.then(() => {
992
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
993
- ref.$lazyInstance$[memberName] = newValue;
994
- }
995
- });
996
- }
997
- return;
998
- }
999
- const setterSetVal = () => {
1000
- const currentValue = ref.$lazyInstance$[memberName];
1001
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1002
- ref.$instanceValues$.set(memberName, currentValue);
1003
- }
1004
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1005
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1006
- };
1007
- if (ref.$lazyInstance$) {
1008
- setterSetVal();
1009
- } else {
1010
- ref.$onReadyPromise$.then(() => setterSetVal());
1011
- }
1012
- }
1013
- }
930
+ setValue(this, memberName, newValue, cmpMeta);
931
+ },
932
+ configurable: true,
933
+ enumerable: true
1014
934
  });
1015
935
  }
1016
936
  });
@@ -1020,7 +940,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1020
940
  plt.jmp(() => {
1021
941
  var _a2;
1022
942
  const propName = attrNameToPropName.get(attrName);
1023
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
943
+ if (this.hasOwnProperty(propName)) {
1024
944
  newValue = this[propName];
1025
945
  delete this[propName];
1026
946
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1040,11 +960,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1040
960
  }
1041
961
  return;
1042
962
  }
1043
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1044
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1045
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1046
- this[propName] = newValue;
1047
- }
963
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1048
964
  });
1049
965
  };
1050
966
  Cstr.observedAttributes = Array.from(
@@ -1073,7 +989,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1073
989
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1074
990
  const bundleId = cmpMeta.$lazyBundleId$;
1075
991
  if (bundleId) {
1076
- const CstrImport = loadModule(cmpMeta, hostRef);
992
+ const CstrImport = loadModule(cmpMeta);
1077
993
  if (CstrImport && "then" in CstrImport) {
1078
994
  const endLoad = uniqueTime();
1079
995
  Cstr = await CstrImport;
@@ -1095,13 +1011,13 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1095
1011
  try {
1096
1012
  new Cstr(hostRef);
1097
1013
  } catch (e) {
1098
- consoleError(e, elm);
1014
+ consoleError(e);
1099
1015
  }
1100
1016
  {
1101
1017
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
1102
1018
  }
1103
1019
  endNewInstance();
1104
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1020
+ fireConnectedCallback(hostRef.$lazyInstance$);
1105
1021
  } else {
1106
1022
  Cstr = elm.constructor;
1107
1023
  const cmpTag = elm.localName;
@@ -1128,9 +1044,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1128
1044
  schedule();
1129
1045
  }
1130
1046
  };
1131
- var fireConnectedCallback = (instance, elm) => {
1047
+ var fireConnectedCallback = (instance) => {
1132
1048
  {
1133
- safeCall(instance, "connectedCallback", void 0, elm);
1049
+ safeCall(instance, "connectedCallback");
1134
1050
  }
1135
1051
  };
1136
1052
 
@@ -1166,15 +1082,15 @@ var connectedCallback = (elm) => {
1166
1082
  } else {
1167
1083
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1168
1084
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1169
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1085
+ fireConnectedCallback(hostRef.$lazyInstance$);
1170
1086
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1171
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1087
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1172
1088
  }
1173
1089
  }
1174
1090
  endConnected();
1175
1091
  }
1176
1092
  };
1177
- var disconnectInstance = (instance, elm) => {
1093
+ var disconnectInstance = (instance) => {
1178
1094
  };
1179
1095
  var disconnectedCallback = async (elm) => {
1180
1096
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1189,12 +1105,6 @@ var disconnectedCallback = async (elm) => {
1189
1105
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1190
1106
  }
1191
1107
  }
1192
- if (rootAppliedStyles.has(elm)) {
1193
- rootAppliedStyles.delete(elm);
1194
- }
1195
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1196
- rootAppliedStyles.delete(elm.shadowRoot);
1197
- }
1198
1108
  };
1199
1109
 
1200
1110
  // src/runtime/bootstrap-lazy.ts
@@ -1275,17 +1185,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1275
1185
  }
1276
1186
  disconnectedCallback() {
1277
1187
  plt.jmp(() => disconnectedCallback(this));
1278
- plt.raf(() => {
1279
- var _a3;
1280
- const hostRef = getHostRef(this);
1281
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1282
- if (i2 > -1) {
1283
- deferredConnectedCallbacks.splice(i2, 1);
1284
- }
1285
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1286
- delete hostRef.$vnode$.$elm$;
1287
- }
1288
- });
1289
1188
  }
1290
1189
  componentOnReady() {
1291
1190
  return getHostRef(this).$onReadyPromise$;
@@ -1349,7 +1248,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1349
1248
  }
1350
1249
  }
1351
1250
  } catch (e) {
1352
- consoleError(e, hostRef.$hostElement$);
1251
+ consoleError(e);
1353
1252
  }
1354
1253
  };
1355
1254
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-a4a45d0f.js';
2
- export { s as setNonce } from './index-a4a45d0f.js';
1
+ import { b as bootstrapLazy } from './index-610c64ca.js';
2
+ export { s as setNonce } from './index-610c64ca.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-a4a45d0f.js';
1
+ import { r as registerInstance, c as createEvent, h } from './index-610c64ca.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
@@ -80,88 +62,41 @@ const LotteryGrid = class {
80
62
  this.gridFilledEvent = createEvent(this, "gridFilled", 7);
81
63
  this.gridDirtyEvent = createEvent(this, "gridDirty", 7);
82
64
  this.gridClearAllEvent = createEvent(this, "gridClearAllEvent", 7);
83
- /**
84
- * Number of bullets of grid
85
- */
65
+ this.selectedCounter = 0;
66
+ this.setClientStyling = () => {
67
+ let sheet = document.createElement('style');
68
+ sheet.innerHTML = this.clientStyling;
69
+ this.stylingContainer.prepend(sheet);
70
+ };
71
+ this.setClientStylingURL = () => {
72
+ let cssFile = document.createElement('style');
73
+ setTimeout(() => {
74
+ cssFile.innerHTML = this.clientStylingUrlContent;
75
+ this.stylingContainer.prepend(cssFile);
76
+ }, 1);
77
+ };
78
+ this.ticketId = undefined;
86
79
  this.totalNumbers = 0;
87
- /**
88
- * Number of maximum bullets that can be selected
89
- */
80
+ this.gameId = undefined;
90
81
  this.maximumAllowed = 7;
91
- /**
92
- * Minimum allowed of bullets
93
- */
94
82
  this.minimumAllowed = 3;
95
- /**
96
- * Allows the user to select numbers on the grid
97
- */
83
+ this.numberRange = undefined;
98
84
  this.selectable = true;
99
- /**
100
- * Numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1,2,3,4,5,6')
101
- */
102
85
  this.selectedNumbers = '';
103
- /**
104
- * Bonus numbers that should be showed as selected on the grid (as a string of those numbers e.g. '1')
105
- */
106
86
  this.secondaryNumbers = '';
107
- /**
108
- * Show only selected numbers
109
- */
110
87
  this.displaySelected = false;
111
- /**
112
- * Language
113
- */
114
88
  this.language = 'en';
115
- /**
116
- * Personalize grid for ticket
117
- */
89
+ this.gridIndex = undefined;
118
90
  this.gridType = '';
119
- /**
120
- * Client custom styling via string
121
- */
122
91
  this.clientStyling = '';
123
- /**
124
- * Client custom styling via url content
125
- */
126
92
  this.clientStylingUrlContent = '';
127
- /**
128
- * Maximum number of the grid
129
- */
130
93
  this.highNumber = 47;
131
- /**
132
- * Lowest number of the grid
133
- */
134
94
  this.lowNumber = 1;
135
- /**
136
- * Type of selection
137
- */
138
95
  this.selectionType = 'mainSelection';
139
- /**
140
- * Allows partial quickpick or not
141
- */
142
96
  this.partialQuickpickAvailable = false;
143
- /**
144
- * main selection numbers
145
- */
146
97
  this.numbers = [];
147
- /**
148
- * Bonus selection numbers
149
- */
150
98
  this.bonusNumbers = [];
151
99
  this.limitStylingAppends = false;
152
- this.selectedCounter = 0;
153
- this.setClientStyling = () => {
154
- let sheet = document.createElement('style');
155
- sheet.innerHTML = this.clientStyling;
156
- this.stylingContainer.prepend(sheet);
157
- };
158
- this.setClientStylingURL = () => {
159
- let cssFile = document.createElement('style');
160
- setTimeout(() => {
161
- cssFile.innerHTML = this.clientStylingUrlContent;
162
- this.stylingContainer.prepend(cssFile);
163
- }, 1);
164
- };
165
100
  }
166
101
  connectedCallback() {
167
102
  let selected = [];