@everymatrix/helper-pagination 1.55.0 → 1.56.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 (26) hide show
  1. package/dist/cjs/helper-pagination.cjs.entry.js +135 -41
  2. package/dist/cjs/helper-pagination.cjs.js +3 -3
  3. package/dist/cjs/{index-502d881b.js → index-5d7ac0d5.js} +203 -71
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/components/helper-pagination/helper-pagination.js +127 -44
  7. package/dist/esm/helper-pagination.entry.js +135 -41
  8. package/dist/esm/helper-pagination.js +4 -4
  9. package/dist/esm/{index-79ce7f1f.js → index-49bd7818.js} +203 -71
  10. package/dist/esm/loader.js +3 -3
  11. package/dist/helper-pagination/helper-pagination.esm.js +1 -1
  12. package/dist/helper-pagination/p-645aa72c.entry.js +1 -0
  13. package/dist/helper-pagination/p-d28f6456.js +2 -0
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +2 -0
  16. package/dist/types/components/helper-pagination/helper-pagination.d.ts +10 -5
  17. package/dist/types/components.d.ts +10 -2
  18. package/package.json +1 -1
  19. package/dist/helper-pagination/p-a3272d7a.entry.js +0 -1
  20. package/dist/helper-pagination/p-ddd49f2d.js +0 -2
  21. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.d.ts +0 -2
  22. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/helper-pagination/.stencil/packages/stencil/helper-pagination/stencil.config.dev.d.ts +0 -2
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/index.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  25. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  26. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/helper-pagination/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'helper-pagination';
2
- const BUILD = /* helper-pagination */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: 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 };
2
+ const BUILD = /* helper-pagination */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: false, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: false, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, 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: true };
3
3
 
4
4
  /*
5
- Stencil Client Platform v4.22.3 | MIT Licensed | https://stenciljs.com
5
+ Stencil Client Platform v4.26.0 | MIT Licensed | https://stenciljs.com
6
6
  */
7
7
  var __defProp = Object.defineProperty;
8
8
  var __export = (target, all) => {
9
9
  for (var name in all)
10
10
  __defProp(target, name, { get: all[name], enumerable: true });
11
11
  };
12
+
13
+ // src/client/client-host-ref.ts
12
14
  var hostRefs = /* @__PURE__ */ new WeakMap();
13
15
  var getHostRef = (ref) => hostRefs.get(ref);
14
- var registerInstance = (lazyInstance, hostRef) => hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
16
+ var registerInstance = (lazyInstance, hostRef) => {
17
+ hostRefs.set(hostRef.$lazyInstance$ = lazyInstance, hostRef);
18
+ };
15
19
  var registerHost = (hostElement, cmpMeta) => {
16
20
  const hostRef = {
17
21
  $flags$: 0,
@@ -24,7 +28,8 @@ var registerHost = (hostElement, cmpMeta) => {
24
28
  hostElement["s-p"] = [];
25
29
  hostElement["s-rc"] = [];
26
30
  }
27
- return hostRefs.set(hostElement, hostRef);
31
+ const ref = hostRefs.set(hostElement, hostRef);
32
+ return ref;
28
33
  };
29
34
  var isMemberInElement = (elm, memberName) => memberName in elm;
30
35
  var consoleError = (e, el) => (0, console.error)(e, el);
@@ -61,16 +66,22 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
61
66
  /* webpackExclude: /\.system\.entry\.js$/ */
62
67
  /* webpackMode: "lazy" */
63
68
  `./${bundleId}.entry.js${""}`
64
- ).then((importedModule) => {
65
- {
66
- cmpModules.set(bundleId, importedModule);
69
+ ).then(
70
+ (importedModule) => {
71
+ {
72
+ cmpModules.set(bundleId, importedModule);
73
+ }
74
+ return importedModule[exportName];
75
+ },
76
+ (e) => {
77
+ consoleError(e, hostRef.$hostElement$);
67
78
  }
68
- return importedModule[exportName];
69
- }, consoleError);
79
+ );
70
80
  };
71
81
 
72
82
  // src/client/client-style.ts
73
83
  var styles = /* @__PURE__ */ new Map();
84
+ var HYDRATED_STYLE_ID = "sty-id";
74
85
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
75
86
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
76
87
  var win = typeof window !== "undefined" ? window : {};
@@ -128,12 +139,6 @@ var flush = () => {
128
139
  };
129
140
  var nextTick = (cb) => promiseResolve().then(cb);
130
141
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
131
-
132
- // src/utils/constants.ts
133
- var EMPTY_OBJ = {};
134
-
135
- // src/utils/helpers.ts
136
- var isDef = (v) => v != null;
137
142
  var isComplexType = (o) => {
138
143
  o = typeof o;
139
144
  return o === "object" || o === "function";
@@ -327,7 +332,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
327
332
  }
328
333
  if (!appliedStyles.has(scopeId2)) {
329
334
  {
330
- styleElm = doc.createElement("style");
335
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
331
336
  styleElm.innerHTML = style;
332
337
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
333
338
  if (nonce != null) {
@@ -337,7 +342,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
337
342
  if (styleContainerNode.nodeName === "HEAD") {
338
343
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
339
344
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
340
- styleContainerNode.insertBefore(styleElm, referenceNode2);
345
+ styleContainerNode.insertBefore(
346
+ styleElm,
347
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
348
+ );
341
349
  } else if ("host" in styleContainerNode) {
342
350
  if (supportsConstructableStylesheets) {
343
351
  const stylesheet = new CSSStyleSheet();
@@ -355,7 +363,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
355
363
  styleContainerNode.append(styleElm);
356
364
  }
357
365
  }
358
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
366
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
359
367
  styleContainerNode.insertBefore(styleElm, null);
360
368
  }
361
369
  }
@@ -380,23 +388,25 @@ var attachStyles = (hostRef) => {
380
388
  const scopeId2 = addStyle(
381
389
  elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
382
390
  cmpMeta);
383
- if (flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
391
+ if ((flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */ || flags & 128 /* shadowNeedsScopedCss */)) {
384
392
  elm["s-sc"] = scopeId2;
385
393
  elm.classList.add(scopeId2 + "-h");
386
394
  }
387
395
  endAttachStyles();
388
396
  };
389
397
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
390
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
398
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
391
399
  if (oldValue !== newValue) {
392
400
  let isProp = isMemberInElement(elm, memberName);
393
401
  let ln = memberName.toLowerCase();
394
402
  if (memberName === "class") {
395
403
  const classList = elm.classList;
396
404
  const oldClasses = parseClassList(oldValue);
397
- const newClasses = parseClassList(newValue);
398
- classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
399
- classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
405
+ let newClasses = parseClassList(newValue);
406
+ {
407
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
408
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
409
+ }
400
410
  } else if (memberName === "ref") {
401
411
  if (newValue) {
402
412
  newValue(elm);
@@ -434,7 +444,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
434
444
  elm.setAttribute(memberName, n);
435
445
  }
436
446
  }
437
- } else {
447
+ } else if (elm[memberName] !== newValue) {
438
448
  elm[memberName] = newValue;
439
449
  }
440
450
  } catch (e) {
@@ -456,24 +466,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
456
466
  }
457
467
  };
458
468
  var parseClassListRegex = /\s/;
459
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
469
+ var parseClassList = (value) => {
470
+ if (typeof value === "object" && value && "baseVal" in value) {
471
+ value = value.baseVal;
472
+ }
473
+ if (!value || typeof value !== "string") {
474
+ return [];
475
+ }
476
+ return value.split(parseClassListRegex);
477
+ };
460
478
  var CAPTURE_EVENT_SUFFIX = "Capture";
461
479
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
462
480
 
463
481
  // src/runtime/vdom/update-element.ts
464
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
482
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
465
483
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
466
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
467
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
484
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
485
+ const newVnodeAttrs = newVnode.$attrs$ || {};
468
486
  {
469
487
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
470
488
  if (!(memberName in newVnodeAttrs)) {
471
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
489
+ setAccessor(
490
+ elm,
491
+ memberName,
492
+ oldVnodeAttrs[memberName],
493
+ void 0,
494
+ isSvgMode2,
495
+ newVnode.$flags$);
472
496
  }
473
497
  }
474
498
  }
475
499
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
476
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
500
+ setAccessor(
501
+ elm,
502
+ memberName,
503
+ oldVnodeAttrs[memberName],
504
+ newVnodeAttrs[memberName],
505
+ isSvgMode2,
506
+ newVnode.$flags$);
477
507
  }
478
508
  };
479
509
  function sortedAttrNames(attrNames) {
@@ -485,13 +515,10 @@ function sortedAttrNames(attrNames) {
485
515
  attrNames
486
516
  );
487
517
  }
488
-
489
- // src/runtime/vdom/vdom-render.ts
490
- var scopeId;
491
518
  var hostTagName;
492
519
  var useNativeShadowDom = false;
493
520
  var isSvgMode = false;
494
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
521
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
495
522
  const newVNode2 = newParentVNode.$children$[childIndex];
496
523
  let i2 = 0;
497
524
  let elm;
@@ -505,11 +532,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
505
532
  {
506
533
  updateElement(null, newVNode2, isSvgMode);
507
534
  }
508
- const rootNode = elm.getRootNode();
509
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
510
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
511
- elm.classList.add(elm["s-si"] = scopeId);
512
- }
513
535
  if (newVNode2.$children$) {
514
536
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
515
537
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -614,6 +636,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
614
636
  };
615
637
  var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
616
638
  if (leftVNode.$tag$ === rightVNode.$tag$) {
639
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
640
+ leftVNode.$key$ = rightVNode.$key$;
641
+ }
617
642
  return true;
618
643
  }
619
644
  return false;
@@ -653,8 +678,9 @@ var nullifyVNodeRefs = (vNode) => {
653
678
  }
654
679
  };
655
680
  var insertBefore = (parent, newNode, reference) => {
656
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
657
- return inserted;
681
+ {
682
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
683
+ }
658
684
  };
659
685
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
660
686
  const hostElm = hostRef.$hostElement$;
@@ -679,17 +705,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
679
705
  rootVnode.$flags$ |= 4 /* isHost */;
680
706
  hostRef.$vnode$ = rootVnode;
681
707
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
682
- {
683
- scopeId = hostElm["s-sc"];
684
- }
685
- useNativeShadowDom = (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) !== 0;
708
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
686
709
  patch(oldVNode, rootVnode, isInitialLoad);
687
710
  };
688
711
 
689
712
  // src/runtime/update-component.ts
690
713
  var attachToAncestor = (hostRef, ancestorComponent) => {
691
714
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
692
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
715
+ const index = ancestorComponent["s-p"].push(
716
+ new Promise(
717
+ (r) => hostRef.$onRenderResolve$ = () => {
718
+ ancestorComponent["s-p"].splice(index - 1, 1);
719
+ r();
720
+ }
721
+ )
722
+ );
693
723
  }
694
724
  };
695
725
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -715,7 +745,7 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
715
745
  }
716
746
  let maybePromise;
717
747
  {
718
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
748
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
719
749
  }
720
750
  endSchedule();
721
751
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -782,14 +812,14 @@ var postUpdateComponent = (hostRef) => {
782
812
  const endPostUpdate = createTime("postUpdate", tagName);
783
813
  const instance = hostRef.$lazyInstance$ ;
784
814
  const ancestorComponent = hostRef.$ancestorComponent$;
785
- {
786
- safeCall(instance, "componentDidRender");
787
- }
788
815
  if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
789
816
  hostRef.$flags$ |= 64 /* hasLoadedComponent */;
790
817
  {
791
818
  addHydratedFlag(elm);
792
819
  }
820
+ {
821
+ safeCall(instance, "componentDidLoad", void 0, elm);
822
+ }
793
823
  endPostUpdate();
794
824
  {
795
825
  hostRef.$onReadyResolve$(elm);
@@ -812,17 +842,14 @@ var postUpdateComponent = (hostRef) => {
812
842
  }
813
843
  };
814
844
  var appDidLoad = (who) => {
815
- {
816
- addHydratedFlag(doc.documentElement);
817
- }
818
845
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
819
846
  };
820
- var safeCall = (instance, method, arg) => {
847
+ var safeCall = (instance, method, arg, elm) => {
821
848
  if (instance && instance[method]) {
822
849
  try {
823
850
  return instance[method](arg);
824
851
  } catch (e) {
825
- consoleError(e);
852
+ consoleError(e, elm);
826
853
  }
827
854
  }
828
855
  return void 0;
@@ -841,6 +868,7 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
841
868
  `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`
842
869
  );
843
870
  }
871
+ const elm = hostRef.$hostElement$ ;
844
872
  const oldVal = hostRef.$instanceValues$.get(propName);
845
873
  const flags = hostRef.$flags$;
846
874
  const instance = hostRef.$lazyInstance$ ;
@@ -850,6 +878,18 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
850
878
  if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
851
879
  hostRef.$instanceValues$.set(propName, newVal);
852
880
  if (instance) {
881
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
882
+ const watchMethods = cmpMeta.$watchers$[propName];
883
+ if (watchMethods) {
884
+ watchMethods.map((watchMethodName) => {
885
+ try {
886
+ instance[watchMethodName](newVal, oldVal, propName);
887
+ } catch (e) {
888
+ consoleError(e, elm);
889
+ }
890
+ });
891
+ }
892
+ }
853
893
  if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
854
894
  scheduleUpdate(hostRef, false);
855
895
  }
@@ -861,19 +901,75 @@ var setValue = (ref, propName, newVal, cmpMeta) => {
861
901
  var proxyComponent = (Cstr, cmpMeta, flags) => {
862
902
  var _a, _b;
863
903
  const prototype = Cstr.prototype;
864
- if (cmpMeta.$members$ || BUILD.watchCallback ) {
904
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
905
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
906
+ cmpMeta.$watchers$ = Cstr.watchers;
907
+ }
865
908
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
866
909
  members.map(([memberName, [memberFlags]]) => {
867
910
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
911
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
912
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
913
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
914
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
915
+ Object.defineProperty(prototype, memberName, {
916
+ get() {
917
+ {
918
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
919
+ return getValue(this, memberName);
920
+ }
921
+ const ref = getHostRef(this);
922
+ const instance = ref ? ref.$lazyInstance$ : prototype;
923
+ if (!instance) return;
924
+ return instance[memberName];
925
+ }
926
+ },
927
+ configurable: true,
928
+ enumerable: true
929
+ });
930
+ }
868
931
  Object.defineProperty(prototype, memberName, {
869
- get() {
870
- return getValue(this, memberName);
871
- },
872
932
  set(newValue) {
873
- setValue(this, memberName, newValue, cmpMeta);
874
- },
875
- configurable: true,
876
- enumerable: true
933
+ const ref = getHostRef(this);
934
+ if (origSetter) {
935
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
936
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
937
+ newValue = ref.$instanceValues$.get(memberName);
938
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
939
+ ref.$instanceValues$.set(memberName, currentValue);
940
+ }
941
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
942
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
943
+ setValue(this, memberName, newValue, cmpMeta);
944
+ return;
945
+ }
946
+ {
947
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
948
+ setValue(this, memberName, newValue, cmpMeta);
949
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
950
+ ref.$onReadyPromise$.then(() => {
951
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
952
+ ref.$lazyInstance$[memberName] = newValue;
953
+ }
954
+ });
955
+ }
956
+ return;
957
+ }
958
+ const setterSetVal = () => {
959
+ const currentValue = ref.$lazyInstance$[memberName];
960
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
961
+ ref.$instanceValues$.set(memberName, currentValue);
962
+ }
963
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
964
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
965
+ };
966
+ if (ref.$lazyInstance$) {
967
+ setterSetVal();
968
+ } else {
969
+ ref.$onReadyPromise$.then(() => setterSetVal());
970
+ }
971
+ }
972
+ }
877
973
  });
878
974
  }
879
975
  });
@@ -883,7 +979,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
883
979
  plt.jmp(() => {
884
980
  var _a2;
885
981
  const propName = attrNameToPropName.get(attrName);
886
- if (this.hasOwnProperty(propName)) {
982
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
887
983
  newValue = this[propName];
888
984
  delete this[propName];
889
985
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -903,7 +999,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
903
999
  }
904
1000
  return;
905
1001
  }
906
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1002
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1003
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1004
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1005
+ this[propName] = newValue;
1006
+ }
907
1007
  });
908
1008
  };
909
1009
  Cstr.observedAttributes = Array.from(
@@ -932,7 +1032,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
932
1032
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
933
1033
  const bundleId = cmpMeta.$lazyBundleId$;
934
1034
  if (bundleId) {
935
- const CstrImport = loadModule(cmpMeta);
1035
+ const CstrImport = loadModule(cmpMeta, hostRef);
936
1036
  if (CstrImport && "then" in CstrImport) {
937
1037
  const endLoad = uniqueTime();
938
1038
  Cstr = await CstrImport;
@@ -944,6 +1044,9 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
944
1044
  throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
945
1045
  }
946
1046
  if (!Cstr.isProxied) {
1047
+ {
1048
+ cmpMeta.$watchers$ = Cstr.watchers;
1049
+ }
947
1050
  proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
948
1051
  Cstr.isProxied = true;
949
1052
  }
@@ -954,11 +1057,14 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
954
1057
  try {
955
1058
  new Cstr(hostRef);
956
1059
  } catch (e) {
957
- consoleError(e);
1060
+ consoleError(e, elm);
958
1061
  }
959
1062
  {
960
1063
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
961
1064
  }
1065
+ {
1066
+ hostRef.$flags$ |= 128 /* isWatchReady */;
1067
+ }
962
1068
  endNewInstance();
963
1069
  } else {
964
1070
  Cstr = elm.constructor;
@@ -986,7 +1092,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
986
1092
  schedule();
987
1093
  }
988
1094
  };
989
- var fireConnectedCallback = (instance) => {
1095
+ var fireConnectedCallback = (instance, elm) => {
990
1096
  };
991
1097
 
992
1098
  // src/runtime/connected-callback.ts
@@ -1026,15 +1132,26 @@ var connectedCallback = (elm) => {
1026
1132
  endConnected();
1027
1133
  }
1028
1134
  };
1029
- var disconnectInstance = (instance) => {
1135
+ var disconnectInstance = (instance, elm) => {
1136
+ {
1137
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
1138
+ }
1030
1139
  };
1031
1140
  var disconnectedCallback = async (elm) => {
1032
1141
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
1033
1142
  const hostRef = getHostRef(elm);
1034
- if (hostRef == null ? void 0 : hostRef.$lazyInstance$) ; else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1035
- hostRef.$onReadyPromise$.then(() => disconnectInstance());
1143
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
1144
+ disconnectInstance(hostRef.$lazyInstance$, elm);
1145
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
1146
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
1036
1147
  }
1037
1148
  }
1149
+ if (rootAppliedStyles.has(elm)) {
1150
+ rootAppliedStyles.delete(elm);
1151
+ }
1152
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1153
+ rootAppliedStyles.delete(elm.shadowRoot);
1154
+ }
1038
1155
  };
1039
1156
 
1040
1157
  // src/runtime/bootstrap-lazy.ts
@@ -1055,6 +1172,7 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1055
1172
  let hasSlotRelocation = false;
1056
1173
  lazyBundles.map((lazyBundle) => {
1057
1174
  lazyBundle[1].map((compactMeta) => {
1175
+ var _a2;
1058
1176
  const cmpMeta = {
1059
1177
  $flags$: compactMeta[0],
1060
1178
  $tagName$: compactMeta[1],
@@ -1070,6 +1188,9 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1070
1188
  {
1071
1189
  cmpMeta.$attrsToReflect$ = [];
1072
1190
  }
1191
+ {
1192
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
1193
+ }
1073
1194
  const tagName = cmpMeta.$tagName$;
1074
1195
  const HostElement = class extends HTMLElement {
1075
1196
  // StencilLazyHost
@@ -1111,6 +1232,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1111
1232
  }
1112
1233
  disconnectedCallback() {
1113
1234
  plt.jmp(() => disconnectedCallback(this));
1235
+ plt.raf(() => {
1236
+ var _a3;
1237
+ const hostRef = getHostRef(this);
1238
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1239
+ if (i2 > -1) {
1240
+ deferredConnectedCallbacks.splice(i2, 1);
1241
+ }
1242
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1243
+ delete hostRef.$vnode$.$elm$;
1244
+ }
1245
+ });
1114
1246
  }
1115
1247
  componentOnReady() {
1116
1248
  return getHostRef(this).$onReadyPromise$;
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-79ce7f1f.js';
2
- export { s as setNonce } from './index-79ce7f1f.js';
1
+ import { b as bootstrapLazy } from './index-49bd7818.js';
2
+ export { s as setNonce } from './index-49bd7818.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["helper-pagination",[[1,"helper-pagination",{"nextPage":[1537,"next-page"],"prevPage":[1537,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"clientStyling":[1537,"client-styling"],"clientStylingUrlContent":[1537,"client-styling-url-content"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32],"limitStylingAppends":[32]}]]]], options);
8
+ return bootstrapLazy([["helper-pagination",[[1,"helper-pagination",{"nextPage":[1537,"next-page"],"prevPage":[1537,"prev-page"],"offset":[1538],"limit":[1538],"total":[1538],"language":[1537],"mbSource":[1,"mb-source"],"clientStyling":[1537,"client-styling"],"clientStylingUrl":[1537,"client-styling-url"],"arrowsActive":[1540,"arrows-active"],"secondaryArrowsActive":[1540,"secondary-arrows-active"],"numberedNavActive":[1540,"numbered-nav-active"],"offsetInt":[32],"lastPage":[32],"previousPage":[32],"limitInt":[32],"totalInt":[32],"pagesArray":[32],"endInt":[32]},null,{"clientStyling":["handleClientStylingChange"],"clientStylingUrl":["handleClientStylingChangeURL"]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-ddd49f2d.js";export{s as setNonce}from"./p-ddd49f2d.js";import{g as a}from"./p-e1255160.js";(()=>{const e=import.meta.url,a={};return""!==e&&(a.resourcesUrl=new URL(".",e).href),t(a)})().then((async t=>(await a(),e([["p-a3272d7a",[[1,"helper-pagination",{nextPage:[1537,"next-page"],prevPage:[1537,"prev-page"],offset:[1538],limit:[1538],total:[1538],language:[1537],clientStyling:[1537,"client-styling"],clientStylingUrlContent:[1537,"client-styling-url-content"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],numberedNavActive:[1540,"numbered-nav-active"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32],limitStylingAppends:[32]}]]]],t))));
1
+ import{p as e,b as t}from"./p-d28f6456.js";export{s as setNonce}from"./p-d28f6456.js";import{g as n}from"./p-e1255160.js";(()=>{const t=import.meta.url,n={};return""!==t&&(n.resourcesUrl=new URL(".",t).href),e(n)})().then((async e=>(await n(),t([["p-645aa72c",[[1,"helper-pagination",{nextPage:[1537,"next-page"],prevPage:[1537,"prev-page"],offset:[1538],limit:[1538],total:[1538],language:[1537],mbSource:[1,"mb-source"],clientStyling:[1537,"client-styling"],clientStylingUrl:[1537,"client-styling-url"],arrowsActive:[1540,"arrows-active"],secondaryArrowsActive:[1540,"secondary-arrows-active"],numberedNavActive:[1540,"numbered-nav-active"],offsetInt:[32],lastPage:[32],previousPage:[32],limitInt:[32],totalInt:[32],pagesArray:[32],endInt:[32]},null,{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}]]]],e))));
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s}from"./p-d28f6456.js";function e(t,i){if(t){const s=document.createElement("style");s.innerHTML=i,t.appendChild(s)}}function a(t,i){const s=new URL(i);fetch(s.href).then((t=>t.text())).then((i=>{const s=document.createElement("style");s.innerHTML=i,t&&t.appendChild(s)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}const n=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),o={en:{firstPage:"First",previousPage:"Previous",nextPage:"Next",lastPage:"Last"},ro:{firstPage:"Prima",previousPage:"Anterior",nextPage:"Urmatoarea",lastPage:"Ultima"},fr:{firstPage:"First",previousPage:"Previous",nextPage:"Next",lastPage:"Last"},ar:{firstPage:"First",previousPage:"Previous",nextPage:"Next",lastPage:"Last"},hu:{firstPage:"First",previousPage:"Previous",nextPage:"Következő",lastPage:"Last"},hr:{firstPage:"Prva",previousPage:"Prethodna",nextPage:"Slijedeća",lastPage:"Zadnja"}},h=(t,i)=>o[void 0!==i&&i in o?i:"en"][t],r=class{constructor(s){t(this,s),this.hpPageChange=i(this,"hpPageChange",7),this.nextPage="",this.prevPage="",this.offset=0,this.limit=1,this.total=1,this.language="en",this.clientStyling="",this.clientStylingUrl="",this.lastPage=!1,this.previousPage=!1,this.pagesArray=[],this.endInt=0,this.userAgent=window.navigator.userAgent,this.currentPage=1,this.navigateTo=t=>{switch(t){case"firstPage":this.offsetInt=0;break;case"lastPage":this.offsetInt=this.endInt*this.limitInt;break;case"previousPage":this.offsetInt-=this.limitInt;break;case"nextPage":this.offsetInt+=this.limitInt;break;case"fivePagesBack":this.offsetInt-=5*this.limitInt,this.offsetInt=this.offsetInt<=0?0:this.offsetInt;break;case"fivePagesForward":this.offsetInt+=5*this.limitInt,this.offsetInt=this.offsetInt/this.limitInt>=this.endInt?this.endInt*this.limitInt:this.offsetInt}this.previousPage=!!this.offsetInt,this.hpPageChange.emit({offset:this.offsetInt,limit:this.limitInt,total:this.totalInt})},this.paginationNavigation=(t,i)=>{this.previousPage=!0,isNaN(t)?0===i&&this.currentPage<=4?this.navigateTo("firstPage"):0===i&&this.currentPage>4?this.navigateTo("fivePagesBack"):4===i&&this.endInt-this.currentPage>=2&&this.navigateTo("fivePagesForward"):1===t?(this.offsetInt=t-1,this.previousPage=!1):this.offsetInt=(t-1)*this.limitInt,this.hpPageChange.emit({offset:this.offsetInt,limit:this.limitInt,total:this.totalInt})}}handleClientStylingChange(t,i){t!=i&&e(this.stylingContainer,this.clientStyling)}handleClientStylingChangeURL(t,i){t!=i&&this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)}componentWillRender(){this.offsetInt=this.offset,this.limitInt=this.limit,this.currentPage=this.offsetInt/this.limitInt+1,this.limitInt=this.limit,this.totalInt=this.total,this.endInt=Math.ceil(this.totalInt/this.limitInt)-1,this.lastPage=!(this.offsetInt>=this.endInt*this.limitInt),1==this.currentPage||2==this.currentPage?(this.pagesArray=Array.from({length:4},((t,i)=>i+1)),this.pagesArray.push("...")):this.currentPage>=3&&this.endInt-this.currentPage>=2?(this.pagesArray=Array.from({length:3},((t,i)=>this.currentPage+i-1)),this.pagesArray.push("..."),this.pagesArray.unshift("...")):this.endInt-this.currentPage<3&&(this.pagesArray=Array.from({length:4},((t,i)=>this.endInt-2+i)),this.pagesArray.unshift("..."))}componentDidLoad(){this.stylingContainer&&(null!=window.emMessageBus?function(t,i){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(i,(i=>{s.innerHTML=i,t&&t.appendChild(s)}))}}(this.stylingContainer,`${this.mbSource}.Style`):(this.clientStyling&&e(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&a(this.stylingContainer,this.clientStylingUrl)))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}render(){let t=s("ul",{class:"PaginationArea"},this.pagesArray.map(((t,i)=>s("li",{class:"PaginationItem"+(t===this.currentPage?" ActiveItem":" ")+" "+(n(this.userAgent)?"MobileButtons":"")},s("button",{disabled:t===this.currentPage,onClick:this.paginationNavigation.bind(this,t,i)},s("span",null,t)))))),i=s("button",{disabled:!this.prevPage,onClick:this.navigateTo.bind(this,"firstPage")},s("span",{class:"NavigationButton"},h("firstPage",this.language)),s("span",{class:"NavigationIcon"})),e=s("div",{class:"LeftItems"},this.secondaryArrowsActive&&i,s("button",{disabled:!this.prevPage,onClick:this.navigateTo.bind(this,"previousPage")},s("span",{class:"NavigationButton"},h("previousPage",this.language)),s("span",{class:"NavigationIcon"})));n(this.userAgent)&&(e=s("div",{class:"LeftItems"},s("button",{disabled:!this.prevPage,onClick:this.navigateTo.bind(this,"previousPage")},s("span",{class:"NavigationButton"},h("previousPage",this.language)),s("span",{class:"NavigationIcon"}))));let a=s("button",{disabled:!this.nextPage,onClick:this.navigateTo.bind(this,"lastPage")},s("span",{class:"NavigationButton"},h("lastPage",this.language)),s("span",{class:"NavigationIcon"})),o=s("div",{class:"RightItems"},s("button",{disabled:!this.nextPage,onClick:this.navigateTo.bind(this,"nextPage")},s("span",{class:"NavigationButton"},h("nextPage",this.language)),s("span",{class:"NavigationIcon"})),this.secondaryArrowsActive&&a);return n(this.userAgent)&&(o=s("div",{class:"RightItems"},s("button",{disabled:!this.nextPage,onClick:this.navigateTo.bind(this,"nextPage")},s("span",{class:"NavigationButton"},h("nextPage",this.language)),s("span",{class:"NavigationIcon"})))),s("div",{id:"PaginationContainer",ref:t=>this.stylingContainer=t},this.arrowsActive&&e,this.numberedNavActive&&t,this.arrowsActive&&o)}static get watchers(){return{clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingChangeURL"]}}};r.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}#PaginationContainer{width:100%;margin:20px 0;display:inline-flex;justify-content:space-between;align-items:center}.LeftItems button:not(:first-child),.RightItems button:not(:last-child){margin:0 10px}.LeftItems button,.RightItems button{padding:0;background-color:#009993;border-color:#009993}.PaginationArea{display:inline-flex;gap:10px;list-style:none}.PaginationArea li{margin:0;padding:0}.PaginationArea li button{width:24px;height:24px;display:flex;border:0;padding:0;justify-content:center;align-items:center;background-color:transparent;color:#000;cursor:pointer;pointer-events:all}.PaginationItem.ActiveItem button{background:#009993;border-color:#009993;color:#fff}.PaginationItem.ActiveItem button:disabled{pointer-events:none;cursor:not-allowed}.PaginationItem button:hover,.PaginationItem button:active{background:#009993;border-color:#009993;color:#fff;opacity:0.8}button{width:100px;height:32px;border:1px solid #524e52;border-radius:5px;background:#524e52;color:#fff;font-size:14px;font:inherit;cursor:pointer;transition:all 0.1s linear;text-transform:uppercase;text-align:center;letter-spacing:0}button:hover,button:active{background:#004D4A;border-color:#004D4A}button:disabled{background-color:#ccc;border-color:#ccc;color:#fff;cursor:not-allowed}@media screen and (max-width: 720px){button{width:90px;font-size:14px}}@media screen and (max-width: 480px){button{width:70px;font-size:14px}.paginationArea{padding:5px}}@media screen and (max-width: 320px){button{width:58px;font-size:12px}.paginationArea{padding:5px;gap:5px}}@media (hover: none){.paginationItem button:hover{background:inherit;border-color:inherit;color:inherit;opacity:1}.paginationItem.activeItem button:hover{background:#009993;border-color:#009993;color:#fff}}';export{r as helper_pagination}
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],y=[],v=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.o?w($):f.raf($))},b=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},$=()=>{b(m),b(y),(p=m.length>0)&&f.raf($)},w=t=>h().then(t),S=v(y,!0),g=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=!1,s=!1;const i=[],r=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?r(o):null!=o&&"boolean"!=typeof o&&((l="function"!=typeof t&&!g(o))&&(o+=""),l&&s?i[i.length-1].i+=o:i.push(l?R(null,o):o),s=l)};if(r(n),e){const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}const c=R(t,null);return c.u=e,i.length>0&&(c.h=i),c},R=(t,e)=>({o:0,p:t,i:e,m:null,h:null,u:null}),A={},N=(t,e)=>null==t||g(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,T=(t,e,o)=>{const l=(t=>n(t).$hostElement$)(t);return{emit:t=>D(l,e,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t})}},D=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},F=new WeakMap,H=t=>"sc-"+t.v,L=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=W(n);let s=W(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("ref"===e)o&&o(t);else if(r||"o"!==e[0]||"n"!==e[1]){const l=g(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(V);e=e.replace(q,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},U=/\s/,W=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(U):[]),V="Capture",q=RegExp(V+"$"),G=(t,e,n)=>{const o=11===e.m.nodeType&&e.m.host?e.m.host:e.m,l=t&&t.u||{},s=e.u||{};for(const t of _(Object.keys(l)))t in s||L(o,t,l[t],void 0,n,e.o);for(const t of _(Object.keys(s)))L(o,t,l[t],s[t],n,e.o)};function _(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var z=!1,B=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.m=a.createTextNode(o.i);else if(l=o.m=a.createElement(o.p),G(null,o,z),o.h)for(i=0;i<o.h.length;++i)s=B(t,o,i),s&&l.appendChild(s);return l["s-hn"]=C,l},I=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=B(null,n,l),i&&(o[l].m=i,Y(r,i,e)))},J=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.m;X(e),t&&t.remove()}}},K=(t,e,n=!1)=>t.p===e.p&&(n&&!t.$&&e.$&&(t.$=e.$),!0),Q=(t,e,n=!1)=>{const o=e.m=t.m,l=t.h,s=e.h,i=e.i;null===i?(G(t,e,z),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i=0,r=0,c=e.length-1,u=e[0],a=e[c],f=o.length-1,h=o[0],d=o[f];for(;i<=c&&r<=f;)null==u?u=e[++i]:null==a?a=e[--c]:null==h?h=o[++r]:null==d?d=o[--f]:K(u,h,l)?(Q(u,h,l),u=e[++i],h=o[++r]):K(a,d,l)?(Q(a,d,l),a=e[--c],d=o[--f]):K(u,d,l)?(Q(u,d,l),Y(t,u.m,a.m.nextSibling),u=e[++i],d=o[--f]):K(a,h,l)?(Q(a,h,l),Y(t,a.m,u.m),a=e[--c],h=o[++r]):(s=B(e&&e[r],n,r),h=o[++r],s&&Y(u.m.parentNode,s,u.m));i>c?I(t,null==o[f+1]?null:o[f+1].m,n,o,r,f):r>f&&J(e,i,c)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),I(o,null,e,s,0,s.length-1)):!n&&null!==l&&J(l,0,l.length-1)):t.i!==i&&(o.data=i)},X=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(X)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.j),S((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=nt(l,(()=>ct(o,"componentWillRender",void 0,n))),nt(l,(()=>lt(t,o,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.O,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=H(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=F.get(t=t.head||t);if(i||F.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.k)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);st(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.O,s=t.C||R(null,null),i=(t=>t&&t.p===A)(e)?e:P(null,null,e);if(C=o.tagName,l.M&&(i.u=i.u||{},l.M.map((([t,e])=>i.u[e]=o[t]))),n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.p=null,i.o|=4,t.C=i,i.m=s.m=o.shadowRoot||o,Q(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.t,o=t.j;64&t.o||(t.o|=64,ut(e),ct(n,"componentDidLoad",void 0,e),t.P(e),o||rt()),t.S&&(t.S(),t.S=void 0),512&t.o&&w((()=>tt(t,!1))),t.o&=-517},rt=()=>{w((()=>D(u,"appload",{detail:{namespace:"helper-pagination"}})))},ct=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ut=t=>t.classList.add("hydrated"),at=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.v}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const r=i.$hostElement$,c=i.R.get(e),u=i.o,a=i.t;if(o=N(o,l.A[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.R.set(e,o),a)){if(l.N&&128&u){const t=l.N[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&tt(i,!1)}},ft=(t,e,o)=>{var l,s;const i=t.prototype;if(e.A||e.N||t.watchers){t.watchers&&!e.N&&(e.N=t.watchers);const r=Object.entries(null!=(l=e.A)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.A[t][0]|=2048),r&&(e.A[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.A[t][0]))return((t,e)=>n(this).R.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.R.get(t)?s=i.R.get(t):!i.R.get(t)&&n&&i.R.set(t,n),r.call(this,N(s,l)),void at(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.A[t][0]))return at(this,t,s,e),void(1&o&&!i.t&&i.T.then((()=>{4096&e.A[t][0]&&i.t[t]!==i.R.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.R.get(t)&&n&&i.R.set(t,n),i.t[t]=N(s,l),at(this,t,i.t[t],e)};i.t?n():i.T.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.N)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.N)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.M)||l.push([t,s])),s}))]))}}return t},ht=(t,e)=>{ct(t,"disconnectedCallback",void 0,e||t)},dt=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),b=a.createElement("style"),$=[];let w,S=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let g=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],v:o[1],A:o[2],D:o[3]};4&c.o&&(g=!0),c.A=o[2],c.M=[],c.N=null!=(l=o[4])?l:{};const u=c.v,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,O:n,R:new Map};o.T=new Promise((t=>o.P=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.v}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),w&&(clearTimeout(w),w=null),S?$.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.O,l=()=>{};if(1&e.o)(null==e?void 0:e.t)||(null==e?void 0:e.T)&&e.T.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.j=n);break}}o.A&&Object.entries(o.A).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.F){const l=((t,e)=>{const n=t.v.replace(/-/g,"_"),o=t.F;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.v}#${e.H}" was not found`);o.isProxied||(n.N=o.watchers,ft(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=H(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.j,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const e=n(t);(null==e?void 0:e.t)?ht(e.t,t):(null==e?void 0:e.T)&&e.T.then((()=>ht(e.t,t)))}F.has(t)&&F.delete(t),t.shadowRoot&&F.has(t.shadowRoot)&&F.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),o=$.findIndex((t=>t===this));o>-1&&$.splice(o,1),(null==(t=null==e?void 0:e.C)?void 0:t.m)instanceof Node&&!e.C.m.isConnected&&delete e.C.m}))}componentOnReady(){return n(this).T}};c.F=t[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ft(a,c,1)))}))})),h.length>0&&(g&&(b.textContent+=c),b.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",b.innerHTML.length)){b.setAttribute("data-styles","");const t=null!=(l=f.k)?l:j(a);null!=t&&b.setAttribute("nonce",t),y.insertBefore(b,v?v.nextSibling:y.firstChild)}S=!1,$.length?$.map((t=>t.connectedCallback())):f.jmp((()=>w=setTimeout(rt,30)))},pt=t=>f.k=t;export{dt as b,T as c,P as h,h as p,o as r,pt as s}
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;