@everymatrix/lottery-pagination 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 (33) hide show
  1. package/dist/cjs/{index-ddbadb0f.js → index-6e6ef6de.js} +67 -168
  2. package/dist/cjs/index.cjs.js +2 -2
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{lottery-pagination-038b9722.js → lottery-pagination-a3dc058a.js} +22 -51
  5. package/dist/cjs/lottery-pagination.cjs.entry.js +2 -2
  6. package/dist/cjs/lottery-pagination.cjs.js +2 -2
  7. package/dist/collection/collection-manifest.json +1 -1
  8. package/dist/collection/components/lottery-pagination/lottery-pagination.js +21 -76
  9. package/dist/esm/{index-893d5ea1.js → index-d339423e.js} +67 -168
  10. package/dist/esm/index.js +2 -2
  11. package/dist/esm/loader.js +2 -2
  12. package/dist/esm/{lottery-pagination-d8ef15e4.js → lottery-pagination-55f8c7a0.js} +22 -51
  13. package/dist/esm/lottery-pagination.entry.js +2 -2
  14. package/dist/esm/lottery-pagination.js +3 -3
  15. package/dist/lottery-pagination/index.esm.js +1 -1
  16. package/dist/lottery-pagination/lottery-pagination.esm.js +1 -1
  17. package/dist/lottery-pagination/p-70ca4bf8.js +1 -0
  18. package/dist/lottery-pagination/p-fa51c61f.js +2 -0
  19. package/dist/lottery-pagination/p-fad681ff.entry.js +1 -0
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +2 -0
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +2 -0
  22. package/package.json +1 -1
  23. package/dist/lottery-pagination/p-5eeb537f.js +0 -2
  24. package/dist/lottery-pagination/p-6bb4c606.js +0 -1
  25. package/dist/lottery-pagination/p-716cfefa.entry.js +0 -1
  26. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +0 -2
  27. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +0 -2
  28. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +0 -0
  29. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +0 -0
  30. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  31. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  32. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  33. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.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-pagination';
24
- const BUILD = /* lottery-pagination */ { 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: true, 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: true, 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: false, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
24
+ const BUILD = /* lottery-pagination */ { 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: true, 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: true, 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: false, 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";
@@ -354,7 +349,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
349
  }
355
350
  if (!appliedStyles.has(scopeId2)) {
356
351
  {
357
- styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
352
+ styleElm = doc.createElement("style");
358
353
  styleElm.innerHTML = style;
359
354
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
360
355
  if (nonce != null) {
@@ -364,10 +359,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
359
  if (styleContainerNode.nodeName === "HEAD") {
365
360
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
366
361
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
367
- styleContainerNode.insertBefore(
368
- styleElm,
369
- (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
370
- );
362
+ styleContainerNode.insertBefore(styleElm, referenceNode2);
371
363
  } else if ("host" in styleContainerNode) {
372
364
  if (supportsConstructableStylesheets) {
373
365
  const stylesheet = new CSSStyleSheet();
@@ -385,7 +377,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
385
377
  styleContainerNode.append(styleElm);
386
378
  }
387
379
  }
388
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
380
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
389
381
  styleContainerNode.insertBefore(styleElm, null);
390
382
  }
391
383
  }
@@ -410,25 +402,23 @@ var attachStyles = (hostRef) => {
410
402
  const scopeId2 = addStyle(
411
403
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
412
404
  cmpMeta);
413
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
405
+ if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
414
406
  elm["s-sc"] = scopeId2;
415
407
  elm.classList.add(scopeId2 + "-h");
416
408
  }
417
409
  endAttachStyles();
418
410
  };
419
411
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
420
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
412
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
413
  if (oldValue !== newValue) {
422
414
  let isProp = isMemberInElement(elm, memberName);
423
415
  let ln = memberName.toLowerCase();
424
416
  if (memberName === "class") {
425
417
  const classList = elm.classList;
426
418
  const oldClasses = parseClassList(oldValue);
427
- let newClasses = parseClassList(newValue);
428
- {
429
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
430
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
431
- }
419
+ const newClasses = parseClassList(newValue);
420
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
421
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
432
422
  } else if (memberName === "ref") {
433
423
  if (newValue) {
434
424
  newValue(elm);
@@ -466,7 +456,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
466
456
  elm.setAttribute(memberName, n);
467
457
  }
468
458
  }
469
- } else if (elm[memberName] !== newValue) {
459
+ } else {
470
460
  elm[memberName] = newValue;
471
461
  }
472
462
  } catch (e) {
@@ -488,44 +478,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
488
478
  }
489
479
  };
490
480
  var parseClassListRegex = /\s/;
491
- var parseClassList = (value) => {
492
- if (typeof value === "object" && value && "baseVal" in value) {
493
- value = value.baseVal;
494
- }
495
- if (!value || typeof value !== "string") {
496
- return [];
497
- }
498
- return value.split(parseClassListRegex);
499
- };
481
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
500
482
  var CAPTURE_EVENT_SUFFIX = "Capture";
501
483
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
502
484
 
503
485
  // src/runtime/vdom/update-element.ts
504
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
486
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
505
487
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
506
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
507
- const newVnodeAttrs = newVnode.$attrs$ || {};
488
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
489
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
508
490
  {
509
491
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
510
492
  if (!(memberName in newVnodeAttrs)) {
511
- setAccessor(
512
- elm,
513
- memberName,
514
- oldVnodeAttrs[memberName],
515
- void 0,
516
- isSvgMode2,
517
- newVnode.$flags$);
493
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
518
494
  }
519
495
  }
520
496
  }
521
497
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
522
- setAccessor(
523
- elm,
524
- memberName,
525
- oldVnodeAttrs[memberName],
526
- newVnodeAttrs[memberName],
527
- isSvgMode2,
528
- newVnode.$flags$);
498
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
529
499
  }
530
500
  };
531
501
  function sortedAttrNames(attrNames) {
@@ -537,10 +507,13 @@ function sortedAttrNames(attrNames) {
537
507
  attrNames
538
508
  );
539
509
  }
510
+
511
+ // src/runtime/vdom/vdom-render.ts
512
+ var scopeId;
540
513
  var hostTagName;
541
514
  var useNativeShadowDom = false;
542
515
  var isSvgMode = false;
543
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
516
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
544
517
  const newVNode2 = newParentVNode.$children$[childIndex];
545
518
  let i2 = 0;
546
519
  let elm;
@@ -554,6 +527,11 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
554
527
  {
555
528
  updateElement(null, newVNode2, isSvgMode);
556
529
  }
530
+ const rootNode = elm.getRootNode();
531
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
532
+ if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
533
+ elm.classList.add(elm["s-si"] = scopeId);
534
+ }
557
535
  if (newVNode2.$children$) {
558
536
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
559
537
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -658,9 +636,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
658
636
  };
659
637
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
660
638
  if (leftVNode.$tag$ === rightVNode.$tag$) {
661
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
662
- leftVNode.$key$ = rightVNode.$key$;
663
- }
664
639
  return true;
665
640
  }
666
641
  return false;
@@ -700,9 +675,8 @@ var nullifyVNodeRefs = (vNode) => {
700
675
  }
701
676
  };
702
677
  var insertBefore = (parent, newNode, reference) => {
703
- {
704
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
705
- }
678
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
679
+ return inserted;
706
680
  };
707
681
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
708
682
  const hostElm = hostRef.$hostElement$;
@@ -727,21 +701,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
727
701
  rootVnode.$flags$ |= 4 /* isHost */;
728
702
  hostRef.$vnode$ = rootVnode;
729
703
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
730
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
704
+ {
705
+ scopeId = hostElm["s-sc"];
706
+ }
707
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
731
708
  patch(oldVNode, rootVnode, isInitialLoad);
732
709
  };
733
710
 
734
711
  // src/runtime/update-component.ts
735
712
  var attachToAncestor = (hostRef, ancestorComponent) => {
736
713
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
737
- const index = ancestorComponent["s-p"].push(
738
- new Promise(
739
- (r) => hostRef.$onRenderResolve$ = () => {
740
- ancestorComponent["s-p"].splice(index - 1, 1);
741
- r();
742
- }
743
- )
744
- );
714
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
745
715
  }
746
716
  };
747
717
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -768,11 +738,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
768
738
  let maybePromise;
769
739
  if (isInitialLoad) {
770
740
  {
771
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
741
+ maybePromise = safeCall(instance, "componentWillLoad");
772
742
  }
773
743
  }
774
744
  {
775
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
745
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
776
746
  }
777
747
  endSchedule();
778
748
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -840,7 +810,7 @@ var postUpdateComponent = (hostRef) => {
840
810
  const instance = hostRef.$lazyInstance$ ;
841
811
  const ancestorComponent = hostRef.$ancestorComponent$;
842
812
  {
843
- safeCall(instance, "componentDidRender", void 0, elm);
813
+ safeCall(instance, "componentDidRender");
844
814
  }
845
815
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
846
816
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -869,14 +839,17 @@ var postUpdateComponent = (hostRef) => {
869
839
  }
870
840
  };
871
841
  var appDidLoad = (who) => {
842
+ {
843
+ addHydratedFlag(doc.documentElement);
844
+ }
872
845
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
873
846
  };
874
- var safeCall = (instance, method, arg, elm) => {
847
+ var safeCall = (instance, method, arg) => {
875
848
  if (instance && instance[method]) {
876
849
  try {
877
850
  return instance[method](arg);
878
851
  } catch (e) {
879
- consoleError(e, elm);
852
+ consoleError(e);
880
853
  }
881
854
  }
882
855
  return void 0;
@@ -919,68 +892,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
919
892
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
920
893
  members.map(([memberName, [memberFlags]]) => {
921
894
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
922
- const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
923
- if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
924
- if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
925
- if (flags & 1 /* isElementConstructor */ || !origGetter) {
926
- Object.defineProperty(prototype, memberName, {
927
- get() {
928
- {
929
- if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
930
- return getValue(this, memberName);
931
- }
932
- const ref = getHostRef(this);
933
- const instance = ref ? ref.$lazyInstance$ : prototype;
934
- if (!instance) return;
935
- return instance[memberName];
936
- }
937
- },
938
- configurable: true,
939
- enumerable: true
940
- });
941
- }
942
895
  Object.defineProperty(prototype, memberName, {
896
+ get() {
897
+ return getValue(this, memberName);
898
+ },
943
899
  set(newValue) {
944
- const ref = getHostRef(this);
945
- if (origSetter) {
946
- const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
947
- if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
948
- newValue = ref.$instanceValues$.get(memberName);
949
- } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
950
- ref.$instanceValues$.set(memberName, currentValue);
951
- }
952
- origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
953
- newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
954
- setValue(this, memberName, newValue, cmpMeta);
955
- return;
956
- }
957
- {
958
- if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
959
- setValue(this, memberName, newValue, cmpMeta);
960
- if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
961
- ref.$onReadyPromise$.then(() => {
962
- if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
963
- ref.$lazyInstance$[memberName] = newValue;
964
- }
965
- });
966
- }
967
- return;
968
- }
969
- const setterSetVal = () => {
970
- const currentValue = ref.$lazyInstance$[memberName];
971
- if (!ref.$instanceValues$.get(memberName) && currentValue) {
972
- ref.$instanceValues$.set(memberName, currentValue);
973
- }
974
- ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
975
- setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
976
- };
977
- if (ref.$lazyInstance$) {
978
- setterSetVal();
979
- } else {
980
- ref.$onReadyPromise$.then(() => setterSetVal());
981
- }
982
- }
983
- }
900
+ setValue(this, memberName, newValue, cmpMeta);
901
+ },
902
+ configurable: true,
903
+ enumerable: true
984
904
  });
985
905
  }
986
906
  });
@@ -990,7 +910,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
910
  plt.jmp(() => {
991
911
  var _a2;
992
912
  const propName = attrNameToPropName.get(attrName);
993
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
913
+ if (this.hasOwnProperty(propName)) {
994
914
  newValue = this[propName];
995
915
  delete this[propName];
996
916
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -1010,11 +930,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1010
930
  }
1011
931
  return;
1012
932
  }
1013
- const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1014
- newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1015
- if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1016
- this[propName] = newValue;
1017
- }
933
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1018
934
  });
1019
935
  };
1020
936
  Cstr.observedAttributes = Array.from(
@@ -1043,7 +959,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
959
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1044
960
  const bundleId = cmpMeta.$lazyBundleId$;
1045
961
  if (bundleId) {
1046
- const CstrImport = loadModule(cmpMeta, hostRef);
962
+ const CstrImport = loadModule(cmpMeta);
1047
963
  if (CstrImport && "then" in CstrImport) {
1048
964
  const endLoad = uniqueTime();
1049
965
  Cstr = await CstrImport;
@@ -1065,7 +981,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1065
981
  try {
1066
982
  new Cstr(hostRef);
1067
983
  } catch (e) {
1068
- consoleError(e, elm);
984
+ consoleError(e);
1069
985
  }
1070
986
  {
1071
987
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1097,7 +1013,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1097
1013
  schedule();
1098
1014
  }
1099
1015
  };
1100
- var fireConnectedCallback = (instance, elm) => {
1016
+ var fireConnectedCallback = (instance) => {
1101
1017
  };
1102
1018
 
1103
1019
  // src/runtime/connected-callback.ts
@@ -1137,7 +1053,7 @@ var connectedCallback = (elm) => {
1137
1053
  endConnected();
1138
1054
  }
1139
1055
  };
1140
- var disconnectInstance = (instance, elm) => {
1056
+ var disconnectInstance = (instance) => {
1141
1057
  };
1142
1058
  var disconnectedCallback = async (elm) => {
1143
1059
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1146,12 +1062,6 @@ var disconnectedCallback = async (elm) => {
1146
1062
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1147
1063
  }
1148
1064
  }
1149
- if (rootAppliedStyles.has(elm)) {
1150
- rootAppliedStyles.delete(elm);
1151
- }
1152
- if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1153
- rootAppliedStyles.delete(elm.shadowRoot);
1154
- }
1155
1065
  };
1156
1066
 
1157
1067
  // src/runtime/bootstrap-lazy.ts
@@ -1228,17 +1138,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1228
1138
  }
1229
1139
  disconnectedCallback() {
1230
1140
  plt.jmp(() => disconnectedCallback(this));
1231
- plt.raf(() => {
1232
- var _a3;
1233
- const hostRef = getHostRef(this);
1234
- const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1235
- if (i2 > -1) {
1236
- deferredConnectedCallbacks.splice(i2, 1);
1237
- }
1238
- if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1239
- delete hostRef.$vnode$.$elm$;
1240
- }
1241
- });
1242
1141
  }
1243
1142
  componentOnReady() {
1244
1143
  return getHostRef(this).$onReadyPromise$;
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryPagination = require('./lottery-pagination-038b9722.js');
6
- require('./index-ddbadb0f.js');
5
+ const lotteryPagination = require('./lottery-pagination-a3dc058a.js');
6
+ require('./index-6e6ef6de.js');
7
7
 
8
8
 
9
9
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ddbadb0f.js');
5
+ const index = require('./index-6e6ef6de.js');
6
6
  const appGlobals = require('./app-globals-3a1e7e63.js');
7
7
 
8
8
  const defineCustomElements = async (win, options) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-ddbadb0f.js');
3
+ const index = require('./index-6e6ef6de.js');
4
4
 
5
5
  /**
6
6
  * @name isMobile
@@ -73,58 +73,8 @@ const LotteryPagination = class {
73
73
  constructor(hostRef) {
74
74
  index.registerInstance(this, hostRef);
75
75
  this.hpPageChange = index.createEvent(this, "hpPageChange", 7);
76
- /**
77
- * Next page string value - determines if the next page is disabled or active
78
- */
79
- this.nextPage = false;
80
- /**
81
- * Previous page string value - determines if the previous page is disabled or active
82
- */
83
- this.prevPage = false;
84
- /**
85
- * The received offset
86
- */
87
- this.offset = 0;
88
- /**
89
- * The received limit for the number of pages
90
- */
91
- this.limit = 10;
92
- /**
93
- * The received total number of pages
94
- */
95
- this.total = 1;
96
- /**
97
- * Language
98
- */
99
- this.language = 'en';
100
- /**
101
- * Client custom styling via string
102
- */
103
- this.clientStyling = '';
104
- /**
105
- * Client custom styling via url content
106
- */
107
- this.clientStylingUrlContent = '';
108
- this.isReset = false;
109
- /**
110
- * Component working variable for last page
111
- */
112
- this.lastPage = false;
113
- /**
114
- * Component working variable for prvious page
115
- */
116
- this.previousPage = false;
117
- /**
118
- * In component working variable for the array of pages
119
- */
120
- this.pagesArray = [];
121
- /**
122
- * In component working variable for last page
123
- */
124
- this.endInt = 0;
125
76
  this.userAgent = window.navigator.userAgent;
126
77
  this.currentPage = 1;
127
- this.limitStylingAppends = false;
128
78
  /**
129
79
  * Navigation logic
130
80
  */
@@ -202,6 +152,27 @@ const LotteryPagination = class {
202
152
  this.stylingContainer.prepend(cssFile);
203
153
  }, 1);
204
154
  };
155
+ this.nextPage = false;
156
+ this.prevPage = false;
157
+ this.offset = 0;
158
+ this.limit = 10;
159
+ this.total = 1;
160
+ this.language = 'en';
161
+ this.clientStyling = '';
162
+ this.clientStylingUrlContent = '';
163
+ this.arrowsActive = undefined;
164
+ this.secondaryArrowsActive = undefined;
165
+ this.numberedNavActive = undefined;
166
+ this.isReset = false;
167
+ this.translationUrl = undefined;
168
+ this.offsetInt = undefined;
169
+ this.lastPage = false;
170
+ this.previousPage = false;
171
+ this.limitInt = undefined;
172
+ this.totalInt = undefined;
173
+ this.pagesArray = [];
174
+ this.endInt = 0;
175
+ this.limitStylingAppends = false;
205
176
  }
206
177
  componentWillLoad() {
207
178
  if (this.translationUrl) {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const lotteryPagination = require('./lottery-pagination-038b9722.js');
6
- require('./index-ddbadb0f.js');
5
+ const lotteryPagination = require('./lottery-pagination-a3dc058a.js');
6
+ require('./index-6e6ef6de.js');
7
7
 
8
8
 
9
9
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-ddbadb0f.js');
5
+ const index = require('./index-6e6ef6de.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-pagination.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": [],