@everymatrix/lottery-bullet 1.54.11 → 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 (23) hide show
  1. package/dist/cjs/{index-38c8c84c.js → index-a0006003.js} +65 -166
  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 +1 -1
  6. package/dist/collection/components/lottery-bullet/lottery-bullet.js +7 -37
  7. package/dist/esm/{index-74f54f1d.js → index-a2e76fac.js} +65 -166
  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-27f9105f.entry.js} +1 -1
  13. package/dist/lottery-bullet/p-464d66b0.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/package.json +1 -1
  17. package/dist/lottery-bullet/p-01d9eaf5.js +0 -2
  18. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.d.ts +0 -2
  19. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/packages/stencil/lottery-bullet/stencil.config.dev.d.ts +0 -2
  20. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/index.d.ts +0 -0
  21. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  22. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  23. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-bullet/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -21,23 +21,19 @@ function _interopNamespace(e) {
21
21
  }
22
22
 
23
23
  const NAMESPACE = 'lottery-bullet';
24
- 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 };
24
+ 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 };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
28
28
  */
29
29
  var __defProp = Object.defineProperty;
30
30
  var __export = (target, all) => {
31
31
  for (var name in all)
32
32
  __defProp(target, name, { get: all[name], enumerable: true });
33
33
  };
34
-
35
- // src/client/client-host-ref.ts
36
34
  var hostRefs = /* @__PURE__ */ new WeakMap();
37
35
  var getHostRef = (ref) => hostRefs.get(ref);
38
- var registerInstance = (lazyInstance, hostRef) => {
39
- hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
40
- };
36
+ var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
41
37
  var registerHost = (hostElement, cmpMeta) => {
42
38
  const hostRef = {
43
39
  $flags$: 0,
@@ -50,8 +46,7 @@ var registerHost = (hostElement, cmpMeta) => {
50
46
  hostElement["s-p"] = [];
51
47
  hostElement["s-rc"] = [];
52
48
  }
53
- const ref = hostRefs.set(hostElement, hostRef);
54
- return ref;
49
+ return hostRefs.set(hostElement, hostRef);
55
50
  };
56
51
  var isMemberInElement = (elm, memberName) => memberName in elm;
57
52
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -88,22 +83,16 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
88
83
  /* webpackExclude: /\.system\.entry\.js$/ */
89
84
  /* webpackMode: "lazy" */
90
85
  `./${bundleId}.entry.js${""}`
91
- )); }).then(
92
- (importedModule) => {
93
- {
94
- cmpModules.set(bundleId, importedModule);
95
- }
96
- return importedModule[exportName];
97
- },
98
- (e) => {
99
- consoleError(e, hostRef.$hostElement$);
86
+ )); }).then((importedModule) => {
87
+ {
88
+ cmpModules.set(bundleId, importedModule);
100
89
  }
101
- );
90
+ return importedModule[exportName];
91
+ }, consoleError);
102
92
  };
103
93
 
104
94
  // src/client/client-style.ts
105
95
  var styles = /* @__PURE__ */ new Map();
106
- var HYDRATED_STYLE_ID = "sty-id";
107
96
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
108
97
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
109
98
  var win = typeof window !== "undefined" ? window : {};
@@ -161,6 +150,12 @@ var flush = () => {
161
150
  };
162
151
  var nextTick = (cb) => promiseResolve().then(cb);
163
152
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
153
+
154
+ // src/utils/constants.ts
155
+ var EMPTY_OBJ = {};
156
+
157
+ // src/utils/helpers.ts
158
+ var isDef = (v) => v != null;
164
159
  var isComplexType = (o) => {
165
160
  o = typeof o;
166
161
  return o === "object" || o === "function";
@@ -361,7 +356,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
361
356
  }
362
357
  if (!appliedStyles.has(scopeId2)) {
363
358
  {
364
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
359
+ styleElm = doc.createElement("style");
365
360
  styleElm.innerHTML = style;
366
361
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
367
362
  if (nonce != null) {
@@ -371,10 +366,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
371
366
  if (styleContainerNode.nodeName === "HEAD") {
372
367
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
373
368
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
374
- styleContainerNode.insertBefore(
375
- styleElm,
376
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
377
- );
369
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
378
370
  } else if ("host" in styleContainerNode) {
379
371
  if (supportsConstructableStylesheets) {
380
372
  const stylesheet = new CSSStyleSheet();
@@ -392,7 +384,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
392
384
  styleContainerNode.append(styleElm);
393
385
  }
394
386
  }
395
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
387
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
396
388
  styleContainerNode.insertBefore(styleElm, null);
397
389
  }
398
390
  }
@@ -417,25 +409,23 @@ var attachStyles = (hostRef) => {
417
409
  const scopeId2 = addStyle(
418
410
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
419
411
  cmpMeta);
420
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
412
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
421
413
  elm["s-sc"] = scopeId2;
422
414
  elm.classList.add(scopeId2 + "-h");
423
415
  }
424
416
  endAttachStyles();
425
417
  };
426
418
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
427
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
419
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
428
420
  if (oldValue !== newValue) {
429
421
  let isProp = isMemberInElement(elm, memberName);
430
422
  let ln = memberName.toLowerCase();
431
423
  if (memberName === "class") {
432
424
  const classList = elm.classList;
433
425
  const oldClasses = parseClassList(oldValue);
434
- let newClasses = parseClassList(newValue);
435
- {
436
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
437
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
438
- }
426
+ const newClasses = parseClassList(newValue);
427
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
428
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
439
429
  } else if (memberName === "key") ; else if (memberName === "ref") {
440
430
  if (newValue) {
441
431
  newValue(elm);
@@ -473,7 +463,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
473
463
  elm.setAttribute(memberName, n);
474
464
  }
475
465
  }
476
- } else if (elm[memberName] !== newValue) {
466
+ } else {
477
467
  elm[memberName] = newValue;
478
468
  }
479
469
  } catch (e) {
@@ -495,44 +485,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
495
485
  }
496
486
  };
497
487
  var parseClassListRegex = /\s/;
498
- var parseClassList = (value) => {
499
- if (typeof value === "object" && value && "baseVal" in value) {
500
- value = value.baseVal;
501
- }
502
- if (!value || typeof value !== "string") {
503
- return [];
504
- }
505
- return value.split(parseClassListRegex);
506
- };
488
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
507
489
  var CAPTURE_EVENT_SUFFIX = "Capture";
508
490
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
509
491
 
510
492
  // src/runtime/vdom/update-element.ts
511
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
493
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
512
494
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
513
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
514
- const newVnodeAttrs = newVnode.$attrs$ || {};
495
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
496
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
515
497
  {
516
498
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
517
499
  if (!(memberName in newVnodeAttrs)) {
518
- setAccessor(
519
- elm,
520
- memberName,
521
- oldVnodeAttrs[memberName],
522
- void 0,
523
- isSvgMode2,
524
- newVnode.$flags$);
500
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
525
501
  }
526
502
  }
527
503
  }
528
504
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
529
- setAccessor(
530
- elm,
531
- memberName,
532
- oldVnodeAttrs[memberName],
533
- newVnodeAttrs[memberName],
534
- isSvgMode2,
535
- newVnode.$flags$);
505
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
536
506
  }
537
507
  };
538
508
  function sortedAttrNames(attrNames) {
@@ -544,10 +514,13 @@ function sortedAttrNames(attrNames) {
544
514
  attrNames
545
515
  );
546
516
  }
517
+
518
+ // src/runtime/vdom/vdom-render.ts
519
+ var scopeId;
547
520
  var hostTagName;
548
521
  var useNativeShadowDom = false;
549
522
  var isSvgMode = false;
550
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
523
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
551
524
  const newVNode2 = newParentVNode.$children$[childIndex];
552
525
  let i2 = 0;
553
526
  let elm;
@@ -561,6 +534,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
561
534
  {
562
535
  updateElement(null, newVNode2, isSvgMode);
563
536
  }
537
+ const rootNode = elm.getRootNode();
538
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
539
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
540
+ elm.classList.add(elm["s-si"] = scopeId);
541
+ }
564
542
  if (newVNode2.$children$) {
565
543
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
566
544
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -690,9 +668,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
690
668
  if (!isInitialRender) {
691
669
  return leftVNode.$key$ === rightVNode.$key$;
692
670
  }
693
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
694
- leftVNode.$key$ = rightVNode.$key$;
695
- }
696
671
  return true;
697
672
  }
698
673
  return false;
@@ -732,9 +707,8 @@ var nullifyVNodeRefs = (vNode) => {
732
707
  }
733
708
  };
734
709
  var insertBefore = (parent, newNode, reference) => {
735
- {
736
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
737
- }
710
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
711
+ return inserted;
738
712
  };
739
713
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
740
714
  const hostElm = hostRef.$hostElement$;
@@ -759,21 +733,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
759
733
  rootVnode.$flags$ |= 4 /* isHost */;
760
734
  hostRef.$vnode$ = rootVnode;
761
735
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
762
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
736
+ {
737
+ scopeId = hostElm["s-sc"];
738
+ }
739
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
763
740
  patch(oldVNode, rootVnode, isInitialLoad);
764
741
  };
765
742
 
766
743
  // src/runtime/update-component.ts
767
744
  var attachToAncestor = (hostRef, ancestorComponent) => {
768
745
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
769
- const index = ancestorComponent["s-p"].push(
770
- new Promise(
771
- (r) => hostRef.$onRenderResolve$ = () => {
772
- ancestorComponent["s-p"].splice(index - 1, 1);
773
- r();
774
- }
775
- )
776
- );
746
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
777
747
  }
778
748
  };
779
749
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -864,7 +834,7 @@ var postUpdateComponent = (hostRef) => {
864
834
  const instance = hostRef.$lazyInstance$ ;
865
835
  const ancestorComponent = hostRef.$ancestorComponent$;
866
836
  {
867
- safeCall(instance, "componentDidRender", void 0, elm);
837
+ safeCall(instance, "componentDidRender");
868
838
  }
869
839
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
870
840
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -893,14 +863,17 @@ var postUpdateComponent = (hostRef) => {
893
863
  }
894
864
  };
895
865
  var appDidLoad = (who) => {
866
+ {
867
+ addHydratedFlag(doc.documentElement);
868
+ }
896
869
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
897
870
  };
898
- var safeCall = (instance, method, arg, elm) => {
871
+ var safeCall = (instance, method, arg) => {
899
872
  if (instance && instance[method]) {
900
873
  try {
901
874
  return instance[method](arg);
902
875
  } catch (e) {
903
- consoleError(e, elm);
876
+ consoleError(e);
904
877
  }
905
878
  }
906
879
  return void 0;
@@ -943,68 +916,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
943
916
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
944
917
  members.map(([memberName, [memberFlags]]) => {
945
918
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
946
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
947
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
948
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
949
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
950
- Object.defineProperty(prototype, memberName, {
951
- get() {
952
- {
953
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
954
- return getValue(this, memberName);
955
- }
956
- const ref = getHostRef(this);
957
- const instance = ref ? ref.$lazyInstance$ : prototype;
958
- if (!instance) return;
959
- return instance[memberName];
960
- }
961
- },
962
- configurable: true,
963
- enumerable: true
964
- });
965
- }
966
919
  Object.defineProperty(prototype, memberName, {
920
+ get() {
921
+ return getValue(this, memberName);
922
+ },
967
923
  set(newValue) {
968
- const ref = getHostRef(this);
969
- if (origSetter) {
970
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
971
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
972
- newValue = ref.$instanceValues$.get(memberName);
973
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
974
- ref.$instanceValues$.set(memberName, currentValue);
975
- }
976
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
977
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
978
- setValue(this, memberName, newValue, cmpMeta);
979
- return;
980
- }
981
- {
982
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
983
- setValue(this, memberName, newValue, cmpMeta);
984
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
985
- ref.$onReadyPromise$.then(() => {
986
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
987
- ref.$lazyInstance$[memberName] = newValue;
988
- }
989
- });
990
- }
991
- return;
992
- }
993
- const setterSetVal = () => {
994
- const currentValue = ref.$lazyInstance$[memberName];
995
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
996
- ref.$instanceValues$.set(memberName, currentValue);
997
- }
998
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
999
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1000
- };
1001
- if (ref.$lazyInstance$) {
1002
- setterSetVal();
1003
- } else {
1004
- ref.$onReadyPromise$.then(() => setterSetVal());
1005
- }
1006
- }
1007
- }
924
+ setValue(this, memberName, newValue, cmpMeta);
925
+ },
926
+ configurable: true,
927
+ enumerable: true
1008
928
  });
1009
929
  }
1010
930
  });
@@ -1014,7 +934,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1014
934
  plt.jmp(() => {
1015
935
  var _a2;
1016
936
  const propName = attrNameToPropName.get(attrName);
1017
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
937
+ if (this.hasOwnProperty(propName)) {
1018
938
  newValue = this[propName];
1019
939
  delete this[propName];
1020
940
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1034,11 +954,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1034
954
  }
1035
955
  return;
1036
956
  }
1037
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1038
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1039
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1040
- this[propName] = newValue;
1041
- }
957
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1042
958
  });
1043
959
  };
1044
960
  Cstr.observedAttributes = Array.from(
@@ -1067,7 +983,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1067
983
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1068
984
  const bundleId = cmpMeta.$lazyBundleId$;
1069
985
  if (bundleId) {
1070
- const CstrImport = loadModule(cmpMeta, hostRef);
986
+ const CstrImport = loadModule(cmpMeta);
1071
987
  if (CstrImport && "then" in CstrImport) {
1072
988
  const endLoad = uniqueTime();
1073
989
  Cstr = await CstrImport;
@@ -1089,7 +1005,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1089
1005
  try {
1090
1006
  new Cstr(hostRef);
1091
1007
  } catch (e) {
1092
- consoleError(e, elm);
1008
+ consoleError(e);
1093
1009
  }
1094
1010
  {
1095
1011
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1121,7 +1037,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1121
1037
  schedule();
1122
1038
  }
1123
1039
  };
1124
- var fireConnectedCallback = (instance, elm) => {
1040
+ var fireConnectedCallback = (instance) => {
1125
1041
  };
1126
1042
 
1127
1043
  // src/runtime/connected-callback.ts
@@ -1161,7 +1077,7 @@ var connectedCallback = (elm) => {
1161
1077
  endConnected();
1162
1078
  }
1163
1079
  };
1164
- var disconnectInstance = (instance, elm) => {
1080
+ var disconnectInstance = (instance) => {
1165
1081
  };
1166
1082
  var disconnectedCallback = async (elm) => {
1167
1083
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1170,12 +1086,6 @@ var disconnectedCallback = async (elm) => {
1170
1086
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1171
1087
  }
1172
1088
  }
1173
- if (rootAppliedStyles.has(elm)) {
1174
- rootAppliedStyles.delete(elm);
1175
- }
1176
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1177
- rootAppliedStyles.delete(elm.shadowRoot);
1178
- }
1179
1089
  };
1180
1090
 
1181
1091
  // src/runtime/bootstrap-lazy.ts
@@ -1252,17 +1162,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1252
1162
  }
1253
1163
  disconnectedCallback() {
1254
1164
  plt.jmp(() => disconnectedCallback(this));
1255
- plt.raf(() => {
1256
- var _a3;
1257
- const hostRef = getHostRef(this);
1258
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1259
- if (i2 > -1) {
1260
- deferredConnectedCallbacks.splice(i2, 1);
1261
- }
1262
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1263
- delete hostRef.$vnode$.$elm$;
1264
- }
1265
- });
1266
1165
  }
1267
1166
  componentOnReady() {
1268
1167
  return getHostRef(this).$onReadyPromise$;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-38c8c84c.js');
5
+ const index = require('./index-a0006003.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-38c8c84c.js');
5
+ const index = require('./index-a0006003.js');
6
6
 
7
7
  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)}";
8
8
  const LotteryBulletStyle0 = lotteryBulletCss;
@@ -11,31 +11,6 @@ const LotteryBullet = class {
11
11
  constructor(hostRef) {
12
12
  index.registerInstance(this, hostRef);
13
13
  this.bulletEvent = index.createEvent(this, "lotteryBulletSelection", 7);
14
- /**
15
- * Value of the bullet
16
- */
17
- this.value = '0';
18
- /**
19
- * Marks if the bullet should be selectable
20
- */
21
- this.selectable = true;
22
- /**
23
- * Marks if the bullet should be selected
24
- */
25
- this.isSelected = false;
26
- /**
27
- * Marks if the number is bonus number.
28
- */
29
- this.isBonus = false;
30
- /**
31
- * Client custom styling via string
32
- */
33
- this.clientStyling = '';
34
- /**
35
- * Client custom styling via url content
36
- */
37
- this.clientStylingUrlContent = '';
38
- this.limitStylingAppends = false;
39
14
  this.select = () => {
40
15
  if (this.selectable) {
41
16
  this.isSelected = !this.isSelected;
@@ -57,6 +32,13 @@ const LotteryBullet = class {
57
32
  this.stylingContainer.prepend(cssFile);
58
33
  }, 1);
59
34
  };
35
+ this.value = '0';
36
+ this.selectable = true;
37
+ this.isSelected = false;
38
+ this.isBonus = false;
39
+ this.clientStyling = '';
40
+ this.clientStylingUrlContent = '';
41
+ this.limitStylingAppends = false;
60
42
  }
61
43
  componentDidRender() {
62
44
  // start custom styling area
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-38c8c84c.js');
5
+ const index = require('./index-a0006003.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  /*
9
- Stencil Client Patch Browser v4.26.0 | MIT Licensed | https://stenciljs.com
9
+ Stencil Client Patch Browser v4.22.3 | MIT Licensed | https://stenciljs.com
10
10
  */
11
11
  var patchBrowser = () => {
12
12
  const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('lottery-bullet.cjs.js', document.baseURI).href));
@@ -4,7 +4,7 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
7
+ "version": "4.22.3",
8
8
  "typescriptVersion": "5.5.4"
9
9
  },
10
10
  "collections": [],
@@ -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": "''"