@everymatrix/bonus-pagination-nav 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 (24) hide show
  1. package/dist/bonus-pagination-nav/bonus-pagination-nav.esm.js +1 -1
  2. package/dist/bonus-pagination-nav/p-22747bba.js +2 -0
  3. package/dist/bonus-pagination-nav/p-f089fb89.entry.js +1 -0
  4. package/dist/cjs/bonus-pagination-nav.cjs.entry.js +33 -3
  5. package/dist/cjs/bonus-pagination-nav.cjs.js +2 -2
  6. package/dist/cjs/{index-10e16208.js → index-de67c104.js} +167 -63
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/bonus-pagination-nav/bonus-pagination-nav.js +54 -2
  10. package/dist/esm/bonus-pagination-nav.entry.js +33 -3
  11. package/dist/esm/bonus-pagination-nav.js +3 -3
  12. package/dist/esm/{index-94427c87.js → index-bbf5341c.js} +167 -63
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/bonus-pagination-nav/p-493062dd.entry.js +0 -1
  18. package/dist/bonus-pagination-nav/p-8bf2c2f3.js +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.d.ts +0 -2
  20. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/packages/stencil/bonus-pagination-nav/stencil.config.dev.d.ts +0 -2
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/tools/plugins/index.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  24. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/bonus-pagination-nav/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1,17 +1,21 @@
1
1
  const NAMESPACE = 'bonus-pagination-nav';
2
- const BUILD = /* bonus-pagination-nav */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
2
+ const BUILD = /* bonus-pagination-nav */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: false, cmpDidRender: false, 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: true, hostListenerTarget: true, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: false, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: false, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: false, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: false, vdomRender: true, vdomStyle: false, vdomText: true, vdomXlink: false, watchCallback: false };
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 : {};
@@ -145,12 +156,6 @@ var flush = () => {
145
156
  };
146
157
  var nextTick = (cb) => promiseResolve().then(cb);
147
158
  var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
148
-
149
- // src/utils/constants.ts
150
- var EMPTY_OBJ = {};
151
-
152
- // src/utils/helpers.ts
153
- var isDef = (v) => v != null;
154
159
  var isComplexType = (o) => {
155
160
  o = typeof o;
156
161
  return o === "object" || o === "function";
@@ -354,7 +359,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
354
359
  }
355
360
  if (!appliedStyles.has(scopeId2)) {
356
361
  {
357
- styleElm = doc.createElement("style");
362
+ styleElm = document.querySelector(`[${HYDRATED_STYLE_ID}="${scopeId2}"]`) || doc.createElement("style");
358
363
  styleElm.innerHTML = style;
359
364
  const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(doc);
360
365
  if (nonce != null) {
@@ -364,7 +369,10 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
364
369
  if (styleContainerNode.nodeName === "HEAD") {
365
370
  const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
366
371
  const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
367
- styleContainerNode.insertBefore(styleElm, referenceNode2);
372
+ styleContainerNode.insertBefore(
373
+ styleElm,
374
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
375
+ );
368
376
  } else if ("host" in styleContainerNode) {
369
377
  if (supportsConstructableStylesheets) {
370
378
  const stylesheet = new CSSStyleSheet();
@@ -382,7 +390,7 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
382
390
  styleContainerNode.append(styleElm);
383
391
  }
384
392
  }
385
- if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD") {
393
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
386
394
  styleContainerNode.insertBefore(styleElm, null);
387
395
  }
388
396
  }
@@ -409,16 +417,18 @@ var attachStyles = (hostRef) => {
409
417
  endAttachStyles();
410
418
  };
411
419
  var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
412
- var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
420
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
413
421
  if (oldValue !== newValue) {
414
422
  let isProp = isMemberInElement(elm, memberName);
415
423
  let ln = memberName.toLowerCase();
416
424
  if (memberName === "class") {
417
425
  const classList = elm.classList;
418
426
  const oldClasses = parseClassList(oldValue);
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)));
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
+ }
422
432
  } else if (memberName === "key") ; else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
423
433
  if (memberName[2] === "-") {
424
434
  memberName = memberName.slice(3);
@@ -452,7 +462,7 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
452
462
  elm.setAttribute(memberName, n);
453
463
  }
454
464
  }
455
- } else {
465
+ } else if (elm[memberName] !== newValue) {
456
466
  elm[memberName] = newValue;
457
467
  }
458
468
  } catch (e) {
@@ -474,24 +484,44 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
474
484
  }
475
485
  };
476
486
  var parseClassListRegex = /\s/;
477
- var parseClassList = (value) => !value ? [] : value.split(parseClassListRegex);
487
+ var parseClassList = (value) => {
488
+ if (typeof value === "object" && value && "baseVal" in value) {
489
+ value = value.baseVal;
490
+ }
491
+ if (!value || typeof value !== "string") {
492
+ return [];
493
+ }
494
+ return value.split(parseClassListRegex);
495
+ };
478
496
  var CAPTURE_EVENT_SUFFIX = "Capture";
479
497
  var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
480
498
 
481
499
  // src/runtime/vdom/update-element.ts
482
- var updateElement = (oldVnode, newVnode, isSvgMode2) => {
500
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
483
501
  const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
484
- const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || EMPTY_OBJ;
485
- const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
502
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
503
+ const newVnodeAttrs = newVnode.$attrs$ || {};
486
504
  {
487
505
  for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
488
506
  if (!(memberName in newVnodeAttrs)) {
489
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], void 0, isSvgMode2, newVnode.$flags$);
507
+ setAccessor(
508
+ elm,
509
+ memberName,
510
+ oldVnodeAttrs[memberName],
511
+ void 0,
512
+ isSvgMode2,
513
+ newVnode.$flags$);
490
514
  }
491
515
  }
492
516
  }
493
517
  for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
494
- setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode2, newVnode.$flags$);
518
+ setAccessor(
519
+ elm,
520
+ memberName,
521
+ oldVnodeAttrs[memberName],
522
+ newVnodeAttrs[memberName],
523
+ isSvgMode2,
524
+ newVnode.$flags$);
495
525
  }
496
526
  };
497
527
  function sortedAttrNames(attrNames) {
@@ -503,13 +533,10 @@ function sortedAttrNames(attrNames) {
503
533
  attrNames
504
534
  );
505
535
  }
506
-
507
- // src/runtime/vdom/vdom-render.ts
508
- var scopeId;
509
536
  var hostTagName;
510
537
  var useNativeShadowDom = false;
511
538
  var isSvgMode = false;
512
- var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
539
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
513
540
  const newVNode2 = newParentVNode.$children$[childIndex];
514
541
  let i2 = 0;
515
542
  let elm;
@@ -523,11 +550,6 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
523
550
  {
524
551
  updateElement(null, newVNode2, isSvgMode);
525
552
  }
526
- const rootNode = elm.getRootNode();
527
- const isElementWithinShadowRoot = !rootNode.querySelector("body");
528
- if (!isElementWithinShadowRoot && BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
529
- elm.classList.add(elm["s-si"] = scopeId);
530
- }
531
553
  if (newVNode2.$children$) {
532
554
  for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
533
555
  childNode = createElm(oldParentVNode, newVNode2, i2);
@@ -653,6 +675,9 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
653
675
  if (!isInitialRender) {
654
676
  return leftVNode.$key$ === rightVNode.$key$;
655
677
  }
678
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
679
+ leftVNode.$key$ = rightVNode.$key$;
680
+ }
656
681
  return true;
657
682
  }
658
683
  return false;
@@ -686,8 +711,9 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
686
711
  }
687
712
  };
688
713
  var insertBefore = (parent, newNode, reference) => {
689
- const inserted = parent == null ? void 0 : parent.insertBefore(newNode, reference);
690
- return inserted;
714
+ {
715
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
716
+ }
691
717
  };
692
718
  var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
693
719
  const hostElm = hostRef.$hostElement$;
@@ -712,14 +738,21 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
712
738
  rootVnode.$flags$ |= 4 /* isHost */;
713
739
  hostRef.$vnode$ = rootVnode;
714
740
  rootVnode.$elm$ = oldVNode.$elm$ = hostElm;
715
- useNativeShadowDom = supportsShadow ;
741
+ useNativeShadowDom = supportsShadow ;
716
742
  patch(oldVNode, rootVnode, isInitialLoad);
717
743
  };
718
744
 
719
745
  // src/runtime/update-component.ts
720
746
  var attachToAncestor = (hostRef, ancestorComponent) => {
721
747
  if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
722
- ancestorComponent["s-p"].push(new Promise((r) => hostRef.$onRenderResolve$ = r));
748
+ const index = ancestorComponent["s-p"].push(
749
+ new Promise(
750
+ (r) => hostRef.$onRenderResolve$ = () => {
751
+ ancestorComponent["s-p"].splice(index - 1, 1);
752
+ r();
753
+ }
754
+ )
755
+ );
723
756
  }
724
757
  };
725
758
  var scheduleUpdate = (hostRef, isInitialLoad) => {
@@ -748,13 +781,13 @@ var dispatchHooks = (hostRef, isInitialLoad) => {
748
781
  {
749
782
  hostRef.$flags$ |= 256 /* isListenReady */;
750
783
  if (hostRef.$queuedListeners$) {
751
- hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event));
784
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
752
785
  hostRef.$queuedListeners$ = void 0;
753
786
  }
754
787
  }
755
788
  }
756
789
  {
757
- maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender"));
790
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
758
791
  }
759
792
  endSchedule();
760
793
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
@@ -847,17 +880,14 @@ var postUpdateComponent = (hostRef) => {
847
880
  }
848
881
  };
849
882
  var appDidLoad = (who) => {
850
- {
851
- addHydratedFlag(doc.documentElement);
852
- }
853
883
  nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
854
884
  };
855
- var safeCall = (instance, method, arg) => {
885
+ var safeCall = (instance, method, arg, elm) => {
856
886
  if (instance && instance[method]) {
857
887
  try {
858
888
  return instance[method](arg);
859
889
  } catch (e) {
860
- consoleError(e);
890
+ consoleError(e, elm);
861
891
  }
862
892
  }
863
893
  return void 0;
@@ -900,15 +930,68 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
900
930
  const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
901
931
  members.map(([memberName, [memberFlags]]) => {
902
932
  if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
933
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
934
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
935
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
936
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
937
+ Object.defineProperty(prototype, memberName, {
938
+ get() {
939
+ {
940
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
941
+ return getValue(this, memberName);
942
+ }
943
+ const ref = getHostRef(this);
944
+ const instance = ref ? ref.$lazyInstance$ : prototype;
945
+ if (!instance) return;
946
+ return instance[memberName];
947
+ }
948
+ },
949
+ configurable: true,
950
+ enumerable: true
951
+ });
952
+ }
903
953
  Object.defineProperty(prototype, memberName, {
904
- get() {
905
- return getValue(this, memberName);
906
- },
907
954
  set(newValue) {
908
- setValue(this, memberName, newValue, cmpMeta);
909
- },
910
- configurable: true,
911
- enumerable: true
955
+ const ref = getHostRef(this);
956
+ if (origSetter) {
957
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
958
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
959
+ newValue = ref.$instanceValues$.get(memberName);
960
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
961
+ ref.$instanceValues$.set(memberName, currentValue);
962
+ }
963
+ origSetter.apply(this, [parsePropertyValue(newValue, memberFlags)]);
964
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
965
+ setValue(this, memberName, newValue, cmpMeta);
966
+ return;
967
+ }
968
+ {
969
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
970
+ setValue(this, memberName, newValue, cmpMeta);
971
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
972
+ ref.$onReadyPromise$.then(() => {
973
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
974
+ ref.$lazyInstance$[memberName] = newValue;
975
+ }
976
+ });
977
+ }
978
+ return;
979
+ }
980
+ const setterSetVal = () => {
981
+ const currentValue = ref.$lazyInstance$[memberName];
982
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
983
+ ref.$instanceValues$.set(memberName, currentValue);
984
+ }
985
+ ref.$lazyInstance$[memberName] = parsePropertyValue(newValue, memberFlags);
986
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
987
+ };
988
+ if (ref.$lazyInstance$) {
989
+ setterSetVal();
990
+ } else {
991
+ ref.$onReadyPromise$.then(() => setterSetVal());
992
+ }
993
+ }
994
+ }
912
995
  });
913
996
  }
914
997
  });
@@ -918,7 +1001,7 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
918
1001
  plt.jmp(() => {
919
1002
  var _a2;
920
1003
  const propName = attrNameToPropName.get(attrName);
921
- if (this.hasOwnProperty(propName)) {
1004
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
922
1005
  newValue = this[propName];
923
1006
  delete this[propName];
924
1007
  } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
@@ -938,7 +1021,11 @@ var proxyComponent = (Cstr, cmpMeta, flags) => {
938
1021
  }
939
1022
  return;
940
1023
  }
941
- this[propName] = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1024
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
1025
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
1026
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
1027
+ this[propName] = newValue;
1028
+ }
942
1029
  });
943
1030
  };
944
1031
  Cstr.observedAttributes = Array.from(
@@ -967,7 +1054,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
967
1054
  hostRef.$flags$ |= 32 /* hasInitializedComponent */;
968
1055
  const bundleId = cmpMeta.$lazyBundleId$;
969
1056
  if (bundleId) {
970
- const CstrImport = loadModule(cmpMeta);
1057
+ const CstrImport = loadModule(cmpMeta, hostRef);
971
1058
  if (CstrImport && "then" in CstrImport) {
972
1059
  const endLoad = uniqueTime();
973
1060
  Cstr = await CstrImport;
@@ -989,7 +1076,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
989
1076
  try {
990
1077
  new Cstr(hostRef);
991
1078
  } catch (e) {
992
- consoleError(e);
1079
+ consoleError(e, elm);
993
1080
  }
994
1081
  {
995
1082
  hostRef.$flags$ &= ~8 /* isConstructingInstance */;
@@ -1021,7 +1108,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1021
1108
  schedule();
1022
1109
  }
1023
1110
  };
1024
- var fireConnectedCallback = (instance) => {
1111
+ var fireConnectedCallback = (instance, elm) => {
1025
1112
  };
1026
1113
 
1027
1114
  // src/runtime/connected-callback.ts
@@ -1062,7 +1149,7 @@ var connectedCallback = (elm) => {
1062
1149
  endConnected();
1063
1150
  }
1064
1151
  };
1065
- var disconnectInstance = (instance) => {
1152
+ var disconnectInstance = (instance, elm) => {
1066
1153
  };
1067
1154
  var disconnectedCallback = async (elm) => {
1068
1155
  if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
@@ -1077,6 +1164,12 @@ var disconnectedCallback = async (elm) => {
1077
1164
  hostRef.$onReadyPromise$.then(() => disconnectInstance());
1078
1165
  }
1079
1166
  }
1167
+ if (rootAppliedStyles.has(elm)) {
1168
+ rootAppliedStyles.delete(elm);
1169
+ }
1170
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
1171
+ rootAppliedStyles.delete(elm.shadowRoot);
1172
+ }
1080
1173
  };
1081
1174
 
1082
1175
  // src/runtime/bootstrap-lazy.ts
@@ -1142,6 +1235,17 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
1142
1235
  }
1143
1236
  disconnectedCallback() {
1144
1237
  plt.jmp(() => disconnectedCallback(this));
1238
+ plt.raf(() => {
1239
+ var _a3;
1240
+ const hostRef = getHostRef(this);
1241
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
1242
+ if (i2 > -1) {
1243
+ deferredConnectedCallbacks.splice(i2, 1);
1244
+ }
1245
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
1246
+ delete hostRef.$vnode$.$elm$;
1247
+ }
1248
+ });
1145
1249
  }
1146
1250
  componentOnReady() {
1147
1251
  return getHostRef(this).$onReadyPromise$;
@@ -1205,7 +1309,7 @@ var hostListenerProxy = (hostRef, methodName) => (ev) => {
1205
1309
  }
1206
1310
  }
1207
1311
  } catch (e) {
1208
- consoleError(e);
1312
+ consoleError(e, hostRef.$hostElement$);
1209
1313
  }
1210
1314
  };
1211
1315
  var getHostListenerTarget = (elm, flags) => {
@@ -1,5 +1,5 @@
1
- import { b as bootstrapLazy } from './index-94427c87.js';
2
- export { s as setNonce } from './index-94427c87.js';
1
+ import { b as bootstrapLazy } from './index-bbf5341c.js';
2
+ export { s as setNonce } from './index-bbf5341c.js';
3
3
  import { g as globalScripts } from './app-globals-0f993ce5.js';
4
4
 
5
5
  const defineCustomElements = async (win, options) => {
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/bonus-pagination-nav",
3
- "version": "1.55.0",
3
+ "version": "1.56.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as a}from"./p-8bf2c2f3.js";const i=["pt-br","en","es-mx","hu","hr"],s={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},r=(t,e,a)=>{const r=e;let h=s[void 0!==r&&i.includes(r)?r:"en"][t];if(void 0!==a)for(const[t,e]of Object.entries(a.values)){const a=new RegExp(`{${t}}`,"g");h=h.replace(a,e)}return h},h=class{constructor(a){t(this,a),this.reloadPageEmitter=e(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return a("ul",{class:"PaginationArea"},this.pagesArray.map((t=>a("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return a("general-styling-wrapper",{targetTranslations:s,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let a=[],i=Math.floor(t/2);const s=this.endPageIndex+1;return e?this.currentPage<i||this.currentPage>s-i+1?(a=Array.from({length:i},((t,e)=>e+1)),a.push("..."),a=a.concat(Array.from({length:i},((t,e)=>this.endPageIndex-1+e)))):this.currentPage==i?(a=Array.from({length:i+1},((t,e)=>e+1)),a.push("..."),a=a.concat(Array.from({length:i-1},((t,e)=>this.endPageIndex+e)))):this.currentPage==s-i+1?(a=Array.from({length:i-1},((t,e)=>e+1)),a.push("..."),a=a.concat(Array.from({length:i+1},((t,e)=>this.endPageIndex-2+e)))):(a=[1,"..."],a=a.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),a=a.concat(["...",s])):this.currentPage<i-1?(a=Array.from({length:t-1},((t,e)=>e+1)),a.push("...")):this.endPageIndex-this.currentPage<i+1?(a=Array.from({length:t-1},((t,e)=>this.endPageIndex-i+e)),a.unshift("...")):(a=Array.from({length:i+1},((t,e)=>this.currentPage+e-1)),a.push("..."),a.unshift("...")),a}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return a("div",{key:"aa8d14788833b1b0e13ea20943935b03a3b043ac",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&a("span",{key:"a018261b6c598116829d878b8120aee7ae2576c4",class:"PageOfMessage"},r("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),a("div",{key:"64fc17d0b992b30a4b8d712e47442ee6a2d44b82",class:"PageNavigation"},this.arrowsActive&&a("div",{key:"f5f3b562fbdfb9e4b39ffd9755e5dba41e6231ba",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},r("firstPage",this.language)),this.secondaryArrowsActive&&a("span",{key:"39222e258f6c63502bfd3914c673d804edc96b53",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},r("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&a("span",{key:"d6f9a1394debdae49702713ccc59bea710ccd7ae",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},r("nextPage",this.language)),this.arrowsActive&&a("div",{key:"d2bb76f9d40fcfc3dbc6bb5fbfe6d237e77f0ee6",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",r("lastPage",this.language)," "),this.renderStylingWrapper()))}};h.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";export{h as bonus_pagination_nav}
@@ -1,2 +0,0 @@
1
- var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),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={l:0,o:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},h=e=>Promise.resolve(e),p=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),m=!1,d=[],y=[],v=(e,t)=>n=>{e.push(n),m||(m=!0,t&&4&f.l?w(b):f.raf(b))},$=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{$(d),$(y),(m=d.length>0)&&f.raf(b)},w=e=>h().then(e),S=v(y,!0),g={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>O,map:()=>C,ok:()=>E,unwrap:()=>P,unwrapErr:()=>x});var E=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>E(e))):E(n)}if(e.isErr)return O(e.value);throw"should never get here"}var M,P=e=>{if(e.isOk)return e.value;throw e.value},x=e=>{if(e.isErr)return e.value;throw e.value},A=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&i?r[r.length-1].i+=l:r.push(s?R(null,l):l),i=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const u=R(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=o,u},R=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),H={},T=(e,t,l)=>{const o=(e=>n(e).$hostElement$)(e);return{emit:e=>D(o,t,{bubbles:!!(4&l),composed:!!(2&l),cancelable:!!(1&l),detail:e})}},D=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},F=new WeakMap,N=e=>"sc-"+e.$,W=(e,t,n,l,s,i)=>{if(n!==l){let r=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=U(n),s=U(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===t);else if(r||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&i||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(u,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(q);t=t.replace(G,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},L=/\s/,U=e=>e?e.split(L):[],q="Capture",G=RegExp(q+"$"),V=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||g,s=t.u||g;for(const e of _(Object.keys(o)))e in s||W(l,e,o[e],void 0,n,t.l);for(const e of _(Object.keys(s)))W(l,e,o[e],s[e],n,t.l)};function _(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var z=!1,B=(e,t,n)=>{const l=t.h[n];let o,s,i=0;if(null!==l.i)o=l.v=a.createTextNode(l.i);else if(o=l.v=a.createElement(l.m),V(null,l,z),o.getRootNode().querySelector("body"),l.h)for(i=0;i<l.h.length;++i)s=B(e,l,i),s&&o.appendChild(s);return o["s-hn"]=M,o},I=(e,t,n,l,o,s)=>{let i,r=e;for(;o<=s;++o)l[o]&&(i=B(null,n,o),i&&(l[o].v=i,X(r,i,t)))},J=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;e&&e.remove()}}},K=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Q=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,i=t.i;null===i?(V(e,t,z),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,h=t[0],p=t[f],m=l.length-1,d=l[0],y=l[m];for(;r<=f&&c<=m;)if(null==h)h=t[++r];else if(null==p)p=t[--f];else if(null==d)d=l[++c];else if(null==y)y=l[--m];else if(K(h,d,o))Q(h,d,o),h=t[++r],d=l[++c];else if(K(p,y,o))Q(p,y,o),p=t[--f],y=l[--m];else if(K(h,y,o))Q(h,y,o),X(e,h.v,p.v.nextSibling),h=t[++r],y=l[--m];else if(K(p,d,o))Q(p,d,o),X(e,p.v,h.v),p=t[--f],d=l[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){u=a;break}u>=0?(i=t[u],i.m!==d.m?s=B(t&&t[c],n,u):(Q(i,d,o),t[u]=void 0,s=i.v),d=l[++c]):(s=B(t&&t[c],n,c),d=l[++c]),s&&X(h.v.parentNode,s,h.v)}r>f?I(e,null==l[m+1]?null:l[m+1].v,n,l,c,m):c>m&&J(t,r,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),I(l,null,t,s,0,s.length-1)):!n&&null!==o&&J(o,0,o.length-1)):e.i!==i&&(l.data=i)},X=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Y=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},Z=(e,t)=>{if(e.l|=16,!(4&e.l))return Y(e,e.j),S((()=>ee(e,t)));e.l|=512},ee=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.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 t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>re(n,e,t))),e.k=void 0)),l=te(l,(()=>re(n,"componentWillRender"))),te(l,(()=>le(e,n,t)))},te=(e,t)=>ne(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ne=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,le=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O;((e,t)=>{var n;const l=N(t),o=r.get(l);if(e=11===e.nodeType?e:a,o)if("string"==typeof o){let s,i=F.get(e=e.head||e);if(i||F.set(e,i=new Set),!i.has(l)){{s=a.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(a);if(null!=l&&s.setAttribute("nonce",l),!(1&t.l))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,n)}else if("host"in e)if(p){const t=new CSSStyleSheet;t.replaceSync(o),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=o+t.innerHTML:e.prepend(s)}else e.append(s);1&t.l&&"HEAD"!==e.nodeName&&e.insertBefore(s,null)}4&t.l&&(s.innerHTML+=c),i&&i.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o])})(e.$hostElement$.getRootNode(),t)})(e);oe(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>se(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},oe=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||R(null,null),i=(e=>e&&e.m===H)(t)?t:A(null,null,t);if(M=l.tagName,o.P&&(i.u=i.u||{},o.P.map((([e,t])=>i.u[t]=l[e]))),n&&i.u)for(const e of Object.keys(i.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=l[e]);i.m=null,i.l|=4,e.M=i,i.v=s.v=l,Q(s,i,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},se=e=>{const t=e.$hostElement$,n=e.j;64&e.l||(e.l|=64,ce(t),e.A(t),n||ie()),e.S&&(e.S(),e.S=void 0),512&e.l&&w((()=>Z(e,!1))),e.l&=-517},ie=()=>{ce(a.documentElement),w((()=>D(u,"appload",{detail:{namespace:"bonus-pagination-nav"}})))},re=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},ce=e=>e.classList.add("hydrated"),ue=(e,t,l)=>{var o,s;const i=e.prototype;if(t.R){const r=Object.entries(null!=(o=t.R)?o:{});if(r.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).H.get(t))(0,e)},set(l){((e,t,l,o)=>{const s=n(e);if(!s)throw Error(`Couldn't find host element for "${o.$}" 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 i=s.H.get(t),r=s.l,c=s.t;l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.R[t][0]),8&r&&void 0!==i||l===i||Number.isNaN(i)&&Number.isNaN(l)||(s.H.set(t,l),c&&2==(18&r)&&Z(s,!1))})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);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 l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.T)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=t.T)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},ae=(e,l={})=>{var o;const h=[],m=l.exclude||[],d=u.customElements,y=a.head,v=y.querySelector("meta[charset]"),$=a.createElement("style"),b=[];let w,S=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",a.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((l=>{const o={l:l[0],$:l[1],R:l[2],D:l[3]};4&o.l&&(g=!0),o.R=l[2],o.D=l[3],o.P=[];const c=o.$,u=class extends HTMLElement{constructor(e){super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,H:new Map};l.F=new Promise((e=>l.A=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,o)}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,fe(this,e,o.D)),w&&(clearTimeout(w),w=null),S?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)fe(e,t,l.D),(null==t?void 0:t.t)||(null==t?void 0:t.F)&&t.F.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Y(t,t.j=n);break}}l.R&&Object.entries(l.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.N){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.N;if(!n)return;const l=i.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(i.set(n,e),e[t])),s)
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.W}" was not found`);l.isProxied||(ue(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=N(n);if(!r.has(t)){const l=()=>{};((e,t,n)=>{let l=r.get(e);p&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,r.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>Z(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.L&&(e.L.map((e=>e())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.F)&&e.F.then((()=>{}))}})()))}componentOnReady(){return n(this).F}};o.N=e[0],m.includes(c)||d.get(c)||(h.push(c),d.define(c,ue(u,o,1)))}))})),h.length>0&&(g&&($.textContent+=c),$.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",$.innerHTML.length)){$.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(a);null!=e&&$.setAttribute("nonce",e),y.insertBefore($,v?v.nextSibling:y.firstChild)}S=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>w=setTimeout(ie,30)))},fe=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=pe(e,n),i=he(t,o),r=me(n);f.ael(s,l,i,r),(t.L=t.L||[]).push((()=>f.rel(s,l,i,r)))}))},he=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},pe=(e,t)=>8&t?u:e,me=e=>({passive:!!(1&e),capture:!!(2&e)}),de=e=>f.C=e;export{ae as b,T as c,A as h,h as p,l as r,de as s}
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;