@everymatrix/lottery-ticket-controller 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/helper-accordion_5.cjs.entry.js +96 -331
  2. package/dist/cjs/{index-ce57b34d.js → index-1fc68b7c.js} +72 -207
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/lottery-ticket-controller.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +2 -2
  6. package/dist/collection/components/lottery-ticket-controller/lottery-ticket-controller.js +15 -83
  7. package/dist/esm/helper-accordion_5.entry.js +96 -331
  8. package/dist/esm/{index-30728886.js → index-bf542936.js} +72 -207
  9. package/dist/esm/loader.js +2 -2
  10. package/dist/esm/lottery-ticket-controller.js +3 -3
  11. package/dist/lottery-ticket-controller/lottery-ticket-controller.esm.js +1 -1
  12. package/dist/lottery-ticket-controller/p-6880be75.js +2 -0
  13. package/dist/lottery-ticket-controller/{p-6262cd49.entry.js → p-82d50d23.entry.js} +130 -132
  14. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/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-ticket-controller/p-44ec1b95.js +0 -2
  19. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-ticket-controller/.stencil/packages/stencil/lottery-ticket-controller/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-ticket-controller/.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-ticket-controller/.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-ticket-controller/.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-ticket-controller/.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-ticket-controller';
24
- const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: 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: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
24
+ const BUILD = /* lottery-ticket-controller */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: 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: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: false, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
25
25
 
26
26
  /*
27
- Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
27
+ Stencil Client Platform v4.19.2 | 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 : {};
@@ -177,6 +166,12 @@ var flush = () => {
177
166
  };
178
167
  var nextTick = (cb) => promiseResolve().then(cb);
179
168
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
169
+
170
+ // src/utils/constants.ts
171
+ var EMPTY_OBJ = {};
172
+
173
+ // src/utils/helpers.ts
174
+ var isDef = (v) => v != null;
180
175
  var isComplexType = (o) => {
181
176
  o = typeof o;
182
177
  return o === "object" || o === "function";
@@ -380,40 +375,13 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
380
375
  }
381
376
  if (!appliedStyles.has(scopeId2)) {
382
377
  {
383
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
378
+ styleElm = doc.createElement("style");
384
379
  styleElm.innerHTML = style;
385
380
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
386
381
  if (nonce != null) {
387
382
  styleElm.setAttribute("nonce", nonce);
388
383
  }
389
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
390
- if (styleContainerNode.nodeName === "HEAD") {
391
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
392
- const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
393
- styleContainerNode.insertBefore(
394
- styleElm,
395
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
396
- );
397
- } else if ("host" in styleContainerNode) {
398
- if (supportsConstructableStylesheets) {
399
- const stylesheet = new CSSStyleSheet();
400
- stylesheet.replaceSync(style);
401
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
402
- } else {
403
- const existingStyleContainer = styleContainerNode.querySelector("style");
404
- if (existingStyleContainer) {
405
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
406
- } else {
407
- styleContainerNode.prepend(styleElm);
408
- }
409
- }
410
- } else {
411
- styleContainerNode.append(styleElm);
412
- }
413
- }
414
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
415
- styleContainerNode.insertBefore(styleElm, null);
416
- }
384
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
417
385
  }
418
386
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
419
387
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -436,25 +404,23 @@ var attachStyles = (hostRef) => {
436
404
  const scopeId2 = addStyle(
437
405
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
438
406
  cmpMeta);
439
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
407
+ if (flags & 10 /* needsScopedEncapsulation */) {
440
408
  elm["s-sc"] = scopeId2;
441
409
  elm.classList.add(scopeId2 + "-h");
442
410
  }
443
411
  endAttachStyles();
444
412
  };
445
413
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
446
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
414
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
447
415
  if (oldValue !== newValue) {
448
416
  let isProp = isMemberInElement(elm, memberName);
449
417
  let ln = memberName.toLowerCase();
450
418
  if (memberName === "class") {
451
419
  const classList = elm.classList;
452
420
  const oldClasses = parseClassList(oldValue);
453
- let newClasses = parseClassList(newValue);
454
- {
455
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
456
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
457
- }
421
+ const newClasses = parseClassList(newValue);
422
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
423
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
458
424
  } else if (memberName === "style") {
459
425
  {
460
426
  for (const prop in oldValue) {
@@ -507,13 +473,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
507
473
  if (memberName === "list") {
508
474
  isProp = false;
509
475
  } else if (oldValue == null || elm[memberName] != n) {
510
- if (typeof elm.__lookupSetter__(memberName) === "function") {
511
- elm[memberName] = n;
512
- } else {
513
- elm.setAttribute(memberName, n);
514
- }
476
+ elm[memberName] = n;
515
477
  }
516
- } else if (elm[memberName] !== newValue) {
478
+ } else {
517
479
  elm[memberName] = newValue;
518
480
  }
519
481
  } catch (e) {
@@ -535,44 +497,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
535
497
  }
536
498
  };
537
499
  var parseClassListRegex = /\s/;
538
- var parseClassList = (value) => {
539
- if (typeof value === "object" && value && "baseVal" in value) {
540
- value = value.baseVal;
541
- }
542
- if (!value || typeof value !== "string") {
543
- return [];
544
- }
545
- return value.split(parseClassListRegex);
546
- };
500
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
547
501
  var CAPTURE_EVENT_SUFFIX = "Capture";
548
502
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
549
503
 
550
504
  // src/runtime/vdom/update-element.ts
551
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
505
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
552
506
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
553
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
554
- const newVnodeAttrs = newVnode.$attrs$ || {};
507
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
508
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
555
509
  {
556
510
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
557
511
  if (!(memberName in newVnodeAttrs)) {
558
- setAccessor(
559
- elm,
560
- memberName,
561
- oldVnodeAttrs[memberName],
562
- void 0,
563
- isSvgMode2,
564
- newVnode.$flags$);
512
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
565
513
  }
566
514
  }
567
515
  }
568
516
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
569
- setAccessor(
570
- elm,
571
- memberName,
572
- oldVnodeAttrs[memberName],
573
- newVnodeAttrs[memberName],
574
- isSvgMode2,
575
- newVnode.$flags$);
517
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
576
518
  }
577
519
  };
578
520
  function sortedAttrNames(attrNames) {
@@ -584,10 +526,13 @@ function sortedAttrNames(attrNames) {
584
526
  attrNames
585
527
  );
586
528
  }
529
+
530
+ // src/runtime/vdom/vdom-render.ts
531
+ var scopeId;
587
532
  var hostTagName;
588
533
  var useNativeShadowDom = false;
589
534
  var isSvgMode = false;
590
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
535
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
591
536
  const newVNode2 = newParentVNode.$children$[childIndex];
592
537
  let i2 = 0;
593
538
  let elm;
@@ -601,6 +546,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
601
546
  {
602
547
  updateElement(null, newVNode2, isSvgMode);
603
548
  }
549
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
550
+ elm.classList.add(elm["s-si"] = scopeId);
551
+ }
604
552
  if (newVNode2.$children$) {
605
553
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
606
554
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -730,9 +678,6 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
730
678
  if (!isInitialRender) {
731
679
  return leftVNode.$key$ === rightVNode.$key$;
732
680
  }
733
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
734
- leftVNode.$key$ = rightVNode.$key$;
735
- }
736
681
  return true;
737
682
  }
738
683
  return false;
@@ -756,10 +701,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
756
701
  elm.textContent = "";
757
702
  }
758
703
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
759
- } else if (
760
- // don't do this on initial render as it can cause non-hydrated content to be removed
761
- !isInitialRender && BUILD.updatable && oldChildren !== null
762
- ) {
704
+ } else if (oldChildren !== null) {
763
705
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
764
706
  }
765
707
  } else if (oldVNode.$text$ !== text) {
@@ -773,9 +715,8 @@ var nullifyVNodeRefs = (vNode) => {
773
715
  }
774
716
  };
775
717
  var insertBefore = (parent, newNode, reference) => {
776
- {
777
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
778
- }
718
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
719
+ return inserted;
779
720
  };
780
721
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
781
722
  const hostElm = hostRef.$hostElement$;
@@ -800,21 +741,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
800
741
  rootVnode.$flags$ |= 4 /* isHost */;
801
742
  hostRef.$vnode$ = rootVnode;
802
743
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
803
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
744
+ {
745
+ scopeId = hostElm["s-sc"];
746
+ }
747
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
804
748
  patch(oldVNode, rootVnode, isInitialLoad);
805
749
  };
806
750
 
807
751
  // src/runtime/update-component.ts
808
752
  var attachToAncestor = (hostRef, ancestorComponent) => {
809
753
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
810
- const index = ancestorComponent["s-p"].push(
811
- new Promise(
812
- (r) => hostRef.$onRenderResolve$ = () => {
813
- ancestorComponent["s-p"].splice(index - 1, 1);
814
- r();
815
- }
816
- )
817
- );
754
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
818
755
  }
819
756
  };
820
757
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -843,12 +780,12 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
843
780
  {
844
781
  hostRef.$flags$ |= 256 /* isListenReady */;
845
782
  if (hostRef.$queuedListeners$) {
846
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
783
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
847
784
  hostRef.$queuedListeners$ = void 0;
848
785
  }
849
786
  }
850
787
  {
851
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
788
+ maybePromise = safeCall(instance, "componentWillLoad");
852
789
  }
853
790
  }
854
791
  endSchedule();
@@ -917,7 +854,7 @@ var postUpdateComponent = (hostRef) => {
917
854
  const instance = hostRef.$lazyInstance$ ;
918
855
  const ancestorComponent = hostRef.$ancestorComponent$;
919
856
  {
920
- safeCall(instance, "componentDidRender", void 0, elm);
857
+ safeCall(instance, "componentDidRender");
921
858
  }
922
859
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
923
860
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -946,14 +883,17 @@ var postUpdateComponent = (hostRef) => {
946
883
  }
947
884
  };
948
885
  var appDidLoad = (who) => {
886
+ {
887
+ addHydratedFlag(doc.documentElement);
888
+ }
949
889
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
950
890
  };
951
- var safeCall = (instance, method, arg, elm) => {
891
+ var safeCall = (instance, method, arg) => {
952
892
  if (instance && instance[method]) {
953
893
  try {
954
894
  return instance[method](arg);
955
895
  } catch (e) {
956
- consoleError(e, elm);
896
+ consoleError(e);
957
897
  }
958
898
  }
959
899
  return void 0;
@@ -1012,68 +952,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1012
952
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
1013
953
  members.map(([memberName, [memberFlags]]) => {
1014
954
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
1015
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
1016
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
1017
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
1018
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
1019
- Object.defineProperty(prototype, memberName, {
1020
- get() {
1021
- {
1022
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
1023
- return getValue(this, memberName);
1024
- }
1025
- const ref = getHostRef(this);
1026
- const instance = ref ? ref.$lazyInstance$ : prototype;
1027
- if (!instance) return;
1028
- return instance[memberName];
1029
- }
1030
- },
1031
- configurable: true,
1032
- enumerable: true
1033
- });
1034
- }
1035
955
  Object.defineProperty(prototype, memberName, {
956
+ get() {
957
+ return getValue(this, memberName);
958
+ },
1036
959
  set(newValue) {
1037
- const ref = getHostRef(this);
1038
- if (origSetter) {
1039
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1040
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
1041
- newValue = ref.$instanceValues$.get(memberName);
1042
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
1043
- ref.$instanceValues$.set(memberName, currentValue);
1044
- }
1045
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
1046
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
1047
- setValue(this, memberName, newValue, cmpMeta);
1048
- return;
1049
- }
1050
- {
1051
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
1052
- setValue(this, memberName, newValue, cmpMeta);
1053
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
1054
- ref.$onReadyPromise$.then(() => {
1055
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
1056
- ref.$lazyInstance$[memberName] = newValue;
1057
- }
1058
- });
1059
- }
1060
- return;
1061
- }
1062
- const setterSetVal = () => {
1063
- const currentValue = ref.$lazyInstance$[memberName];
1064
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
1065
- ref.$instanceValues$.set(memberName, currentValue);
1066
- }
1067
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
1068
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
1069
- };
1070
- if (ref.$lazyInstance$) {
1071
- setterSetVal();
1072
- } else {
1073
- ref.$onReadyPromise$.then(() => setterSetVal());
1074
- }
1075
- }
1076
- }
960
+ setValue(this, memberName, newValue, cmpMeta);
961
+ },
962
+ configurable: true,
963
+ enumerable: true
1077
964
  });
1078
965
  }
1079
966
  });
@@ -1083,11 +970,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1083
970
  plt.jmp(() => {
1084
971
  var _a2;
1085
972
  const propName = attrNameToPropName.get(attrName);
1086
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
973
+ if (this.hasOwnProperty(propName)) {
1087
974
  newValue = this[propName];
1088
975
  delete this[propName];
1089
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
1090
- this[propName] == newValue) {
976
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
1091
977
  return;
1092
978
  } else if (propName == null) {
1093
979
  const hostRef = getHostRef(this);
@@ -1103,11 +989,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1103
989
  }
1104
990
  return;
1105
991
  }
1106
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1107
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1108
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1109
- this[propName] = newValue;
1110
- }
992
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1111
993
  });
1112
994
  };
1113
995
  Cstr.observedAttributes = Array.from(
@@ -1136,7 +1018,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1136
1018
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1137
1019
  const bundleId = cmpMeta.$lazyBundleId$;
1138
1020
  if (bundleId) {
1139
- const CstrImport = loadModule(cmpMeta, hostRef);
1021
+ const CstrImport = loadModule(cmpMeta);
1140
1022
  if (CstrImport && "then" in CstrImport) {
1141
1023
  const endLoad = uniqueTime();
1142
1024
  Cstr = await CstrImport;
@@ -1161,7 +1043,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1161
1043
  try {
1162
1044
  new Cstr(hostRef);
1163
1045
  } catch (e) {
1164
- consoleError(e, elm);
1046
+ consoleError(e);
1165
1047
  }
1166
1048
  {
1167
1049
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1170,7 +1052,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1170
1052
  hostRef.$flags$ |= 128 /* isWatchReady */;
1171
1053
  }
1172
1054
  endNewInstance();
1173
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1055
+ fireConnectedCallback(hostRef.$lazyInstance$);
1174
1056
  } else {
1175
1057
  Cstr = elm.constructor;
1176
1058
  const cmpTag = elm.localName;
@@ -1197,9 +1079,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1197
1079
  schedule();
1198
1080
  }
1199
1081
  };
1200
- var fireConnectedCallback = (instance, elm) => {
1082
+ var fireConnectedCallback = (instance) => {
1201
1083
  {
1202
- safeCall(instance, "connectedCallback", void 0, elm);
1084
+ safeCall(instance, "connectedCallback");
1203
1085
  }
1204
1086
  };
1205
1087
 
@@ -1235,15 +1117,15 @@ var connectedCallback = (elm) => {
1235
1117
  } else {
1236
1118
  addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
1237
1119
  if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1238
- fireConnectedCallback(hostRef.$lazyInstance$, elm);
1120
+ fireConnectedCallback(hostRef.$lazyInstance$);
1239
1121
  } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1240
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
1122
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1241
1123
  }
1242
1124
  }
1243
1125
  endConnected();
1244
1126
  }
1245
1127
  };
1246
- var disconnectInstance = (instance, elm) => {
1128
+ var disconnectInstance = (instance) => {
1247
1129
  };
1248
1130
  var disconnectedCallback = async (elm) => {
1249
1131
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1258,12 +1140,6 @@ var disconnectedCallback = async (elm) => {
1258
1140
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1259
1141
  }
1260
1142
  }
1261
- if (rootAppliedStyles.has(elm)) {
1262
- rootAppliedStyles.delete(elm);
1263
- }
1264
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1265
- rootAppliedStyles.delete(elm.shadowRoot);
1266
- }
1267
1143
  };
1268
1144
 
1269
1145
  // src/runtime/bootstrap-lazy.ts
@@ -1348,17 +1224,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1348
1224
  }
1349
1225
  disconnectedCallback() {
1350
1226
  plt.jmp(() => disconnectedCallback(this));
1351
- plt.raf(() => {
1352
- var _a3;
1353
- const hostRef = getHostRef(this);
1354
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1355
- if (i2 > -1) {
1356
- deferredConnectedCallbacks.splice(i2, 1);
1357
- }
1358
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1359
- delete hostRef.$vnode$.$elm$;
1360
- }
1361
- });
1362
1227
  }
1363
1228
  componentOnReady() {
1364
1229
  return getHostRef(this).$onReadyPromise$;
@@ -1422,7 +1287,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1422
1287
  }
1423
1288
  }
1424
1289
  } catch (e) {
1425
- consoleError(e, hostRef.$hostElement$);
1290
+ consoleError(e);
1426
1291
  }
1427
1292
  };
1428
1293
  var getHostListenerTarget = (elm, flags) => {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ce57b34d.js');
5
+ const index = require('./index-1fc68b7c.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ce57b34d.js');
5
+ const index = require('./index-1fc68b7c.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.19.2 | 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-ticket-controller.cjs.js', document.baseURI).href));
@@ -4,8 +4,8 @@
4
4
  ],
5
5
  "compiler": {
6
6
  "name": "@stencil/core",
7
- "version": "4.26.0",
8
- "typescriptVersion": "5.5.4"
7
+ "version": "4.19.2",
8
+ "typescriptVersion": "5.4.5"
9
9
  },
10
10
  "collections": [
11
11
  {