@everymatrix/lottery-pagination 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 (34) hide show
  1. package/dist/cjs/{index-ddbadb0f.js → index-94cc7cac.js} +67 -202
  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-e0a51394.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 +2 -2
  8. package/dist/collection/components/lottery-pagination/lottery-pagination.js +21 -76
  9. package/dist/esm/{index-893d5ea1.js → index-af8909e6.js} +67 -202
  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-b349c62d.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-19a4165f.js +1 -0
  18. package/dist/lottery-pagination/p-9fa953ac.entry.js +1 -0
  19. package/dist/lottery-pagination/p-f60ce5fa.js +2 -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/dist/types/stencil-public-runtime.d.ts +0 -6
  23. package/package.json +1 -1
  24. package/dist/lottery-pagination/p-5eeb537f.js +0 -2
  25. package/dist/lottery-pagination/p-6bb4c606.js +0 -1
  26. package/dist/lottery-pagination/p-716cfefa.entry.js +0 -1
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.d.ts +0 -2
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/stencil.config.dev.d.ts +0 -2
  29. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/main.d.ts +0 -0
  30. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/packages/stencil/lottery-pagination/storybook/preview.d.ts +0 -0
  31. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  32. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  33. /package/dist/types/Users/{adrian.pripon/Documents/Work → maria.bumbar/Desktop}/widgets-monorepo/packages/stencil/lottery-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  34. /package/dist/types/Users/{adrian.pripon/Documents/Work → 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.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 : {};
@@ -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,40 +349,13 @@ 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) {
361
356
  styleElm.setAttribute("nonce", nonce);
362
357
  }
363
- if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
364
- if (styleContainerNode.nodeName === "HEAD") {
365
- const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
366
- 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
- );
371
- } else if ("host" in styleContainerNode) {
372
- if (supportsConstructableStylesheets) {
373
- const stylesheet = new CSSStyleSheet();
374
- stylesheet.replaceSync(style);
375
- styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
376
- } else {
377
- const existingStyleContainer = styleContainerNode.querySelector("style");
378
- if (existingStyleContainer) {
379
- existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
380
- } else {
381
- styleContainerNode.prepend(styleElm);
382
- }
383
- }
384
- } else {
385
- styleContainerNode.append(styleElm);
386
- }
387
- }
388
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
389
- styleContainerNode.insertBefore(styleElm, null);
390
- }
358
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
391
359
  }
392
360
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
393
361
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -410,25 +378,23 @@ var attachStyles = (hostRef) => {
410
378
  const scopeId2 = addStyle(
411
379
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
412
380
  cmpMeta);
413
- if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
381
+ if (flags & 10 /* needsScopedEncapsulation */) {
414
382
  elm["s-sc"] = scopeId2;
415
383
  elm.classList.add(scopeId2 + "-h");
416
384
  }
417
385
  endAttachStyles();
418
386
  };
419
387
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
420
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
388
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
421
389
  if (oldValue !== newValue) {
422
390
  let isProp = isMemberInElement(elm, memberName);
423
391
  let ln = memberName.toLowerCase();
424
392
  if (memberName === "class") {
425
393
  const classList = elm.classList;
426
394
  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
- }
395
+ const newClasses = parseClassList(newValue);
396
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
397
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
432
398
  } else if (memberName === "ref") {
433
399
  if (newValue) {
434
400
  newValue(elm);
@@ -460,13 +426,9 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
460
426
  if (memberName === "list") {
461
427
  isProp = false;
462
428
  } else if (oldValue == null || elm[memberName] != n) {
463
- if (typeof elm.__lookupSetter__(memberName) === "function") {
464
- elm[memberName] = n;
465
- } else {
466
- elm.setAttribute(memberName, n);
467
- }
429
+ elm[memberName] = n;
468
430
  }
469
- } else if (elm[memberName] !== newValue) {
431
+ } else {
470
432
  elm[memberName] = newValue;
471
433
  }
472
434
  } catch (e) {
@@ -488,44 +450,24 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRen
488
450
  }
489
451
  };
490
452
  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
- };
453
+ var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
500
454
  var CAPTURE_EVENT_SUFFIX = "Capture";
501
455
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
502
456
 
503
457
  // src/runtime/vdom/update-element.ts
504
- var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
458
+ var updateElement = (oldVnode, newVnode, isSvgMode2) => {
505
459
  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$ || {};
460
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
461
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
508
462
  {
509
463
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
510
464
  if (!(memberName in newVnodeAttrs)) {
511
- setAccessor(
512
- elm,
513
- memberName,
514
- oldVnodeAttrs[memberName],
515
- void 0,
516
- isSvgMode2,
517
- newVnode.$flags$);
465
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
518
466
  }
519
467
  }
520
468
  }
521
469
  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$);
470
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
529
471
  }
530
472
  };
531
473
  function sortedAttrNames(attrNames) {
@@ -537,10 +479,13 @@ function sortedAttrNames(attrNames) {
537
479
  attrNames
538
480
  );
539
481
  }
482
+
483
+ // src/runtime/vdom/vdom-render.ts
484
+ var scopeId;
540
485
  var hostTagName;
541
486
  var useNativeShadowDom = false;
542
487
  var isSvgMode = false;
543
- var createElm = (oldParentVNode, newParentVNode, childIndex) => {
488
+ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
544
489
  const newVNode2 = newParentVNode.$children$[childIndex];
545
490
  let i2 = 0;
546
491
  let elm;
@@ -554,6 +499,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
554
499
  {
555
500
  updateElement(null, newVNode2, isSvgMode);
556
501
  }
502
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
503
+ elm.classList.add(elm["s-si"] = scopeId);
504
+ }
557
505
  if (newVNode2.$children$) {
558
506
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
559
507
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -658,9 +606,6 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
658
606
  };
659
607
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
660
608
  if (leftVNode.$tag$ === rightVNode.$tag$) {
661
- if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
662
- leftVNode.$key$ = rightVNode.$key$;
663
- }
664
609
  return true;
665
610
  }
666
611
  return false;
@@ -683,10 +628,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
683
628
  elm.textContent = "";
684
629
  }
685
630
  addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
686
- } else if (
687
- // don't do this on initial render as it can cause non-hydrated content to be removed
688
- !isInitialRender && BUILD.updatable && oldChildren !== null
689
- ) {
631
+ } else if (oldChildren !== null) {
690
632
  removeVnodes(oldChildren, 0, oldChildren.length - 1);
691
633
  }
692
634
  } else if (oldVNode.$text$ !== text) {
@@ -700,9 +642,8 @@ var nullifyVNodeRefs = (vNode) => {
700
642
  }
701
643
  };
702
644
  var insertBefore = (parent, newNode, reference) => {
703
- {
704
- return parent == null ? void 0 : parent.insertBefore(newNode, reference);
705
- }
645
+ const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
646
+ return inserted;
706
647
  };
707
648
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
708
649
  const hostElm = hostRef.$hostElement$;
@@ -727,21 +668,17 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
727
668
  rootVnode.$flags$ |= 4 /* isHost */;
728
669
  hostRef.$vnode$ = rootVnode;
729
670
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
730
- useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
671
+ {
672
+ scopeId = hostElm["s-sc"];
673
+ }
674
+ useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
731
675
  patch(oldVNode, rootVnode, isInitialLoad);
732
676
  };
733
677
 
734
678
  // src/runtime/update-component.ts
735
679
  var attachToAncestor = (hostRef, ancestorComponent) => {
736
680
  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
- );
681
+ ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
745
682
  }
746
683
  };
747
684
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -768,11 +705,11 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
768
705
  let maybePromise;
769
706
  if (isInitialLoad) {
770
707
  {
771
- maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
708
+ maybePromise = safeCall(instance, "componentWillLoad");
772
709
  }
773
710
  }
774
711
  {
775
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
712
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
776
713
  }
777
714
  endSchedule();
778
715
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -840,7 +777,7 @@ var postUpdateComponent = (hostRef) => {
840
777
  const instance = hostRef.$lazyInstance$ ;
841
778
  const ancestorComponent = hostRef.$ancestorComponent$;
842
779
  {
843
- safeCall(instance, "componentDidRender", void 0, elm);
780
+ safeCall(instance, "componentDidRender");
844
781
  }
845
782
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
846
783
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
@@ -869,14 +806,17 @@ var postUpdateComponent = (hostRef) => {
869
806
  }
870
807
  };
871
808
  var appDidLoad = (who) => {
809
+ {
810
+ addHydratedFlag(doc.documentElement);
811
+ }
872
812
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
873
813
  };
874
- var safeCall = (instance, method, arg, elm) => {
814
+ var safeCall = (instance, method, arg) => {
875
815
  if (instance && instance[method]) {
876
816
  try {
877
817
  return instance[method](arg);
878
818
  } catch (e) {
879
- consoleError(e, elm);
819
+ consoleError(e);
880
820
  }
881
821
  }
882
822
  return void 0;
@@ -919,68 +859,15 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
919
859
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
920
860
  members.map(([memberName, [memberFlags]]) => {
921
861
  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
862
  Object.defineProperty(prototype, memberName, {
863
+ get() {
864
+ return getValue(this, memberName);
865
+ },
943
866
  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
- }
867
+ setValue(this, memberName, newValue, cmpMeta);
868
+ },
869
+ configurable: true,
870
+ enumerable: true
984
871
  });
985
872
  }
986
873
  });
@@ -990,11 +877,10 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
990
877
  plt.jmp(() => {
991
878
  var _a2;
992
879
  const propName = attrNameToPropName.get(attrName);
993
- if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
880
+ if (this.hasOwnProperty(propName)) {
994
881
  newValue = this[propName];
995
882
  delete this[propName];
996
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
997
- this[propName] == newValue) {
883
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
998
884
  return;
999
885
  } else if (propName == null) {
1000
886
  const hostRef = getHostRef(this);
@@ -1010,11 +896,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
1010
896
  }
1011
897
  return;
1012
898
  }
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
- }
899
+ this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1018
900
  });
1019
901
  };
1020
902
  Cstr.observedAttributes = Array.from(
@@ -1043,7 +925,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1043
925
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
1044
926
  const bundleId = cmpMeta.$lazyBundleId$;
1045
927
  if (bundleId) {
1046
- const CstrImport = loadModule(cmpMeta, hostRef);
928
+ const CstrImport = loadModule(cmpMeta);
1047
929
  if (CstrImport && "then" in CstrImport) {
1048
930
  const endLoad = uniqueTime();
1049
931
  Cstr = await CstrImport;
@@ -1065,7 +947,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1065
947
  try {
1066
948
  new Cstr(hostRef);
1067
949
  } catch (e) {
1068
- consoleError(e, elm);
950
+ consoleError(e);
1069
951
  }
1070
952
  {
1071
953
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1097,7 +979,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1097
979
  schedule();
1098
980
  }
1099
981
  };
1100
- var fireConnectedCallback = (instance, elm) => {
982
+ var fireConnectedCallback = (instance) => {
1101
983
  };
1102
984
 
1103
985
  // src/runtime/connected-callback.ts
@@ -1137,7 +1019,7 @@ var connectedCallback = (elm) => {
1137
1019
  endConnected();
1138
1020
  }
1139
1021
  };
1140
- var disconnectInstance = (instance, elm) => {
1022
+ var disconnectInstance = (instance) => {
1141
1023
  };
1142
1024
  var disconnectedCallback = async (elm) => {
1143
1025
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1146,12 +1028,6 @@ var disconnectedCallback = async (elm) => {
1146
1028
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1147
1029
  }
1148
1030
  }
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
1031
  };
1156
1032
 
1157
1033
  // src/runtime/bootstrap-lazy.ts
@@ -1228,17 +1104,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1228
1104
  }
1229
1105
  disconnectedCallback() {
1230
1106
  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
1107
  }
1243
1108
  componentOnReady() {
1244
1109
  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-e0a51394.js');
6
+ require('./index-94cc7cac.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-94cc7cac.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-94cc7cac.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-e0a51394.js');
6
+ require('./index-94cc7cac.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-94cc7cac.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-pagination.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
  "bundles": []