@eliseubatista99/react-scaffold-core 0.1.32 → 0.1.33

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.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _ from "react";
2
- import B, { forwardRef as pn, useContext as Nt, useEffect as Er, useState as vn, useMemo as mn } from "react";
2
+ import q, { forwardRef as pn, useContext as Nt, useEffect as Er, useState as vn, useMemo as mn } from "react";
3
3
  var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function gn(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -98,7 +98,7 @@ function wn() {
98
98
  ), n.$$typeof) {
99
99
  case C:
100
100
  return "Portal";
101
- case q:
101
+ case B:
102
102
  return (n.displayName || "Context") + ".Provider";
103
103
  case N:
104
104
  return (n._context.displayName || "Context") + ".Consumer";
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
264
264
  function E(n) {
265
265
  typeof n == "object" && n !== null && n.$$typeof === A && n._store && (n._store.validated = 1);
266
266
  }
267
- var R = B, A = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), q = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), m = Symbol.for("react.activity"), c = Symbol.for("react.client.reference"), P = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, x = Array.isArray, T = console.createTask ? console.createTask : function() {
267
+ var R = q, A = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), B = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), m = Symbol.for("react.activity"), c = Symbol.for("react.client.reference"), P = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, x = Array.isArray, T = console.createTask ? console.createTask : function() {
268
268
  return null;
269
269
  };
270
270
  R = {
@@ -429,13 +429,13 @@ function kn() {
429
429
  function N(p) {
430
430
  return !!p && typeof p == "object";
431
431
  }
432
- function q(p) {
432
+ function B(p) {
433
433
  return typeof p == "symbol" || N(p) && R.call(p) == r;
434
434
  }
435
435
  function U(p) {
436
436
  if (typeof p == "number")
437
437
  return p;
438
- if (q(p))
438
+ if (B(p))
439
439
  return t;
440
440
  if (k(p)) {
441
441
  var g = typeof p.valueOf == "function" ? p.valueOf() : p;
@@ -494,7 +494,7 @@ function Rr() {
494
494
  Object.defineProperty(e, "__esModule", {
495
495
  value: !0
496
496
  }), e.default = void 0;
497
- var t = r(B);
497
+ var t = r(q);
498
498
  function r(i) {
499
499
  return i && i.__esModule ? i : { default: i };
500
500
  }
@@ -570,7 +570,7 @@ function Ge() {
570
570
  rr = 1, Object.defineProperty(W, "__esModule", {
571
571
  value: !0
572
572
  }), W.checkSpecKeys = W.checkNavigable = W.changeSlide = W.canUseDOM = W.canGoNext = void 0, W.clamp = h, W.extractObject = void 0, W.filterSettings = J, W.validSettings = W.swipeStart = W.swipeMove = W.swipeEnd = W.slidesOnRight = W.slidesOnLeft = W.slideHandler = W.siblingDirection = W.safePreventDefault = W.lazyStartIndex = W.lazySlidesOnRight = W.lazySlidesOnLeft = W.lazyEndIndex = W.keyHandler = W.initializedState = W.getWidth = W.getTrackLeft = W.getTrackCSS = W.getTrackAnimateCSS = W.getTotalSlides = W.getSwipeDirection = W.getSlideCount = W.getRequiredLazySlides = W.getPreClones = W.getPostClones = W.getOnDemandLazySlides = W.getNavigableIndexes = W.getHeight = void 0;
573
- var e = r(B), t = r(Rr());
573
+ var e = r(q), t = r(Rr());
574
574
  function r(b) {
575
575
  return b && b.__esModule ? b : { default: b };
576
576
  }
@@ -651,7 +651,7 @@ function Ge() {
651
651
  }, N = W.getSwipeDirection = function(n) {
652
652
  var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, S, I, j, H;
653
653
  return S = n.startX - n.curX, I = n.startY - n.curY, j = Math.atan2(I, S), H = Math.round(j * 180 / Math.PI), H < 0 && (H = 360 - Math.abs(H)), H <= 45 && H >= 0 || H <= 360 && H >= 315 ? "left" : H >= 135 && H <= 225 ? "right" : u === !0 ? H >= 35 && H <= 135 ? "up" : "down" : "vertical";
654
- }, q = W.canGoNext = function(n) {
654
+ }, B = W.canGoNext = function(n) {
655
655
  var u = !0;
656
656
  return n.infinite || (n.centerMode && n.currentSlide >= n.slideCount - 1 || n.slideCount <= n.slidesToShow || n.currentSlide >= n.slideCount - n.slidesToShow) && (u = !1), u;
657
657
  };
@@ -702,7 +702,7 @@ function Ge() {
702
702
  targetSlide: Z
703
703
  };
704
704
  } else
705
- ne = Z, Z < 0 ? (ne = Z + z, j ? z % X !== 0 && (ne = z - z % X) : ne = 0) : !q(n) && Z > Y ? Z = ne = Y : V && Z >= z ? (Z = j ? z : z - 1, ne = j ? 0 : z - 1) : Z >= z && (ne = Z - z, j ? z % X !== 0 && (ne = 0) : ne = z - re), !j && Z + re >= z && (ne = z - re), le = c(a(a({}, n), {}, {
705
+ ne = Z, Z < 0 ? (ne = Z + z, j ? z % X !== 0 && (ne = z - z % X) : ne = 0) : !B(n) && Z > Y ? Z = ne = Y : V && Z >= z ? (Z = j ? z : z - 1, ne = j ? 0 : z - 1) : Z >= z && (ne = Z - z, j ? z % X !== 0 && (ne = 0) : ne = z - re), !j && Z + re >= z && (ne = z - re), le = c(a(a({}, n), {}, {
706
706
  slideIndex: Z
707
707
  })), K = c(a(a({}, n), {}, {
708
708
  slideIndex: ne
@@ -781,7 +781,7 @@ function Ge() {
781
781
  var Ie = ($ ? -1 : 1) * (K.curX > K.startX ? 1 : -1);
782
782
  z && (Ie = K.curY > K.startY ? 1 : -1);
783
783
  var hn = Math.ceil(Z / ne), Oe = N(u.touchObject, z), Ae = K.swipeLength;
784
- return le || (Y === 0 && (Oe === "right" || Oe === "down") || Y + 1 >= hn && (Oe === "left" || Oe === "up") || !q(u) && (Oe === "left" || Oe === "up")) && (Ae = K.swipeLength * V, X === !1 && re && (re(Oe), Pe.edgeDragged = !0)), !ie && ae && (ae(Oe), Pe.swiped = !0), j ? pe = et + Ae * (ue / ce) * Ie : $ ? pe = et - Ae * Ie : pe = et + Ae * Ie, z && (pe = et + Ae * Ie), Pe = a(a({}, Pe), {}, {
784
+ return le || (Y === 0 && (Oe === "right" || Oe === "down") || Y + 1 >= hn && (Oe === "left" || Oe === "up") || !B(u) && (Oe === "left" || Oe === "up")) && (Ae = K.swipeLength * V, X === !1 && re && (re(Oe), Pe.edgeDragged = !0)), !ie && ae && (ae(Oe), Pe.swiped = !0), j ? pe = et + Ae * (ue / ce) * Ie : $ ? pe = et - Ae * Ie : pe = et + Ae * Ie, z && (pe = et + Ae * Ie), Pe = a(a({}, Pe), {}, {
785
785
  touchObject: K,
786
786
  swipeLeft: pe,
787
787
  trackStyle: O(a(a({}, u), {}, {
@@ -954,7 +954,7 @@ function On() {
954
954
  nr = 1, Object.defineProperty(Fe, "__esModule", {
955
955
  value: !0
956
956
  }), Fe.Track = void 0;
957
- var e = o(B), t = o(pt()), r = Ge();
957
+ var e = o(q), t = o(pt()), r = Ge();
958
958
  function o(m) {
959
959
  return m && m.__esModule ? m : { default: m };
960
960
  }
@@ -982,7 +982,7 @@ function On() {
982
982
  function f(m, c) {
983
983
  for (var P = 0; P < c.length; P++) {
984
984
  var L = c[P];
985
- L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(m, q(L.key), L);
985
+ L.enumerable = L.enumerable || !1, L.configurable = !0, "value" in L && (L.writable = !0), Object.defineProperty(m, B(L.key), L);
986
986
  }
987
987
  }
988
988
  function d(m, c, P) {
@@ -1054,9 +1054,9 @@ function On() {
1054
1054
  return m;
1055
1055
  }
1056
1056
  function N(m, c, P) {
1057
- return (c = q(c)) in m ? Object.defineProperty(m, c, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : m[c] = P, m;
1057
+ return (c = B(c)) in m ? Object.defineProperty(m, c, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : m[c] = P, m;
1058
1058
  }
1059
- function q(m) {
1059
+ function B(m) {
1060
1060
  var c = U(m, "string");
1061
1061
  return i(c) == "symbol" ? c : c + "";
1062
1062
  }
@@ -1190,7 +1190,7 @@ function Cn() {
1190
1190
  Object.defineProperty($e, "__esModule", {
1191
1191
  value: !0
1192
1192
  }), $e.Dots = void 0;
1193
- var t = i(B), r = i(pt()), o = Ge();
1193
+ var t = i(q), r = i(pt()), o = Ge();
1194
1194
  function i(p) {
1195
1195
  return p && p.__esModule ? p : { default: p };
1196
1196
  }
@@ -1256,9 +1256,9 @@ function Cn() {
1256
1256
  function v(p) {
1257
1257
  var g = N();
1258
1258
  return function() {
1259
- var y, O = q(p);
1259
+ var y, O = B(p);
1260
1260
  if (g) {
1261
- var m = q(this).constructor;
1261
+ var m = B(this).constructor;
1262
1262
  y = Reflect.construct(O, arguments, m);
1263
1263
  } else y = O.apply(this, arguments);
1264
1264
  return M(this, y);
@@ -1283,10 +1283,10 @@ function Cn() {
1283
1283
  return !!p;
1284
1284
  })();
1285
1285
  }
1286
- function q(p) {
1287
- return q = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(g) {
1286
+ function B(p) {
1287
+ return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(g) {
1288
1288
  return g.__proto__ || Object.getPrototypeOf(g);
1289
- }, q(p);
1289
+ }, B(p);
1290
1290
  }
1291
1291
  var U = function(g) {
1292
1292
  var y;
@@ -1353,7 +1353,7 @@ function Pn() {
1353
1353
  Object.defineProperty(Ee, "__esModule", {
1354
1354
  value: !0
1355
1355
  }), Ee.PrevArrow = Ee.NextArrow = void 0;
1356
- var t = i(B), r = i(pt()), o = Ge();
1356
+ var t = i(q), r = i(pt()), o = Ge();
1357
1357
  function i(p) {
1358
1358
  return p && p.__esModule ? p : { default: p };
1359
1359
  }
@@ -1427,7 +1427,7 @@ function Pn() {
1427
1427
  }, v(p, g);
1428
1428
  }
1429
1429
  function M(p) {
1430
- var g = q();
1430
+ var g = B();
1431
1431
  return function() {
1432
1432
  var y, O = U(p);
1433
1433
  if (g) {
@@ -1446,13 +1446,13 @@ function Pn() {
1446
1446
  if (p === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1447
1447
  return p;
1448
1448
  }
1449
- function q() {
1449
+ function B() {
1450
1450
  try {
1451
1451
  var p = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
1452
1452
  }));
1453
1453
  } catch {
1454
1454
  }
1455
- return (q = function() {
1455
+ return (B = function() {
1456
1456
  return !!p;
1457
1457
  })();
1458
1458
  }
@@ -1838,7 +1838,7 @@ function Vn() {
1838
1838
  sr = 1, Object.defineProperty(Ne, "__esModule", {
1839
1839
  value: !0
1840
1840
  }), Ne.InnerSlider = void 0;
1841
- var e = h(B), t = h(xn()), r = h(kn()), o = h(pt()), i = Ge(), a = On(), l = Cn(), f = Pn(), d = h(Yn);
1841
+ var e = h(q), t = h(xn()), r = h(kn()), o = h(pt()), i = Ge(), a = On(), l = Cn(), f = Pn(), d = h(Yn);
1842
1842
  function h(x) {
1843
1843
  return x && x.__esModule ? x : { default: x };
1844
1844
  }
@@ -1913,7 +1913,7 @@ function Vn() {
1913
1913
  function N(x, T, D) {
1914
1914
  return T && k(x.prototype, T), Object.defineProperty(x, "prototype", { writable: !1 }), x;
1915
1915
  }
1916
- function q(x, T) {
1916
+ function B(x, T) {
1917
1917
  if (typeof T != "function" && T !== null) throw new TypeError("Super expression must either be null or a function");
1918
1918
  x.prototype = Object.create(T && T.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), T && U(x, T);
1919
1919
  }
@@ -1975,7 +1975,7 @@ function Vn() {
1975
1975
  return (T === "string" ? String : Number)(x);
1976
1976
  }
1977
1977
  return Ne.InnerSlider = /* @__PURE__ */ function(x) {
1978
- q(D, x);
1978
+ B(D, x);
1979
1979
  var T = p(D);
1980
1980
  function D(F) {
1981
1981
  var s;
@@ -2404,7 +2404,7 @@ function Kn() {
2404
2404
  Object.defineProperty(e, "__esModule", {
2405
2405
  value: !0
2406
2406
  }), e.default = void 0;
2407
- var t = l(B), r = Vn(), o = l(Gn()), i = l(Rr()), a = Ge();
2407
+ var t = l(q), r = Vn(), o = l(Gn()), i = l(Rr()), a = Ge();
2408
2408
  function l(O) {
2409
2409
  return O && O.__esModule ? O : { default: O };
2410
2410
  }
@@ -2469,7 +2469,7 @@ function Kn() {
2469
2469
  }, v(O, m);
2470
2470
  }
2471
2471
  function M(O) {
2472
- var m = q();
2472
+ var m = B();
2473
2473
  return function() {
2474
2474
  var c, P = U(O);
2475
2475
  if (m) {
@@ -2488,13 +2488,13 @@ function Kn() {
2488
2488
  if (O === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2489
2489
  return O;
2490
2490
  }
2491
- function q() {
2491
+ function B() {
2492
2492
  try {
2493
2493
  var O = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
2494
2494
  }));
2495
2495
  } catch {
2496
2496
  }
2497
- return (q = function() {
2497
+ return (B = function() {
2498
2498
  return !!O;
2499
2499
  })();
2500
2500
  }
@@ -2864,7 +2864,7 @@ function mi(e) {
2864
2864
  return Nr(st("", null, null, null, [""], e = Hr(e), 0, [0], e));
2865
2865
  }
2866
2866
  function st(e, t, r, o, i, a, l, f, d) {
2867
- for (var h = 0, w = 0, E = l, R = 0, A = 0, C = 0, v = 1, M = 1, k = 1, N = 0, q = "", U = i, p = a, g = o, y = q; M; )
2867
+ for (var h = 0, w = 0, E = l, R = 0, A = 0, C = 0, v = 1, M = 1, k = 1, N = 0, B = "", U = i, p = a, g = o, y = B; M; )
2868
2868
  switch (C = N, N = ve()) {
2869
2869
  // (
2870
2870
  case 40:
@@ -2921,7 +2921,7 @@ function st(e, t, r, o, i, a, l, f, d) {
2921
2921
  y += ";";
2922
2922
  // { rule/at-rule
2923
2923
  default:
2924
- if (nt(g = dr(y, t, r, h, w, i, f, q, U = [], p = [], E), a), N === 123)
2924
+ if (nt(g = dr(y, t, r, h, w, i, f, B, U = [], p = [], E), a), N === 123)
2925
2925
  if (w === 0)
2926
2926
  st(y, t, g, g, U, a, E, f, p);
2927
2927
  else
@@ -2931,13 +2931,13 @@ function st(e, t, r, o, i, a, l, f, d) {
2931
2931
  case 108:
2932
2932
  case 109:
2933
2933
  case 115:
2934
- st(e, g, g, o && nt(dr(e, g, g, 0, 0, i, f, q, i, U = [], E), p), i, p, E, f, o ? U : p);
2934
+ st(e, g, g, o && nt(dr(e, g, g, 0, 0, i, f, B, i, U = [], E), p), i, p, E, f, o ? U : p);
2935
2935
  break;
2936
2936
  default:
2937
2937
  st(y, g, g, g, [""], p, 0, f, p);
2938
2938
  }
2939
2939
  }
2940
- h = w = A = 0, v = k = 1, q = y = "", E = l;
2940
+ h = w = A = 0, v = k = 1, B = y = "", E = l;
2941
2941
  break;
2942
2942
  // :
2943
2943
  case 58:
@@ -2960,7 +2960,7 @@ function st(e, t, r, o, i, a, l, f, d) {
2960
2960
  break;
2961
2961
  // @
2962
2962
  case 64:
2963
- ye() === 45 && (y += at(ve())), R = ye(), w = E = me(q = y += vi(ot())), N++;
2963
+ ye() === 45 && (y += at(ve())), R = ye(), w = E = me(B = y += vi(ot())), N++;
2964
2964
  break;
2965
2965
  // -
2966
2966
  case 45:
@@ -2971,8 +2971,8 @@ function st(e, t, r, o, i, a, l, f, d) {
2971
2971
  }
2972
2972
  function dr(e, t, r, o, i, a, l, f, d, h, w) {
2973
2973
  for (var E = i - 1, R = i === 0 ? a : [""], A = Wt(R), C = 0, v = 0, M = 0; C < o; ++C)
2974
- for (var k = 0, N = Ue(e, E + 1, E = oi(v = l[C])), q = e; k < A; ++k)
2975
- (q = Ar(v > 0 ? R[k] + " " + N : te(N, /&\f/g, R[k]))) && (d[M++] = q);
2974
+ for (var k = 0, N = Ue(e, E + 1, E = oi(v = l[C])), B = e; k < A; ++k)
2975
+ (B = Ar(v > 0 ? R[k] + " " + N : te(N, /&\f/g, R[k]))) && (d[M++] = B);
2976
2976
  return yt(e, t, r, i === 0 ? Ft : f, d, h, w);
2977
2977
  }
2978
2978
  function gi(e, t, r) {
@@ -3269,8 +3269,8 @@ var Pi = function(t, r, o, i) {
3269
3269
  })], R = bi(h.concat(i, E)), A = function(M) {
3270
3270
  return Re(mi(M), R);
3271
3271
  };
3272
- d = function(M, k, N, q) {
3273
- w = N, A(M ? M + "{" + k.styles + "}" : k.styles), q && (C.inserted[k.name] = !0);
3272
+ d = function(M, k, N, B) {
3273
+ w = N, A(M ? M + "{" + k.styles + "}" : k.styles), B && (C.inserted[k.name] = !0);
3274
3274
  };
3275
3275
  }
3276
3276
  var C = {
@@ -3570,7 +3570,7 @@ var $i = function(t) {
3570
3570
  E.push(w[C], R[C]);
3571
3571
  }
3572
3572
  var v = $i(function(M, k, N) {
3573
- var q = h && M.as || i, U = "", p = [], g = M;
3573
+ var B = h && M.as || i, U = "", p = [], g = M;
3574
3574
  if (M.theme == null) {
3575
3575
  g = {};
3576
3576
  for (var y in M)
@@ -3580,14 +3580,14 @@ var $i = function(t) {
3580
3580
  typeof M.className == "string" ? U = Ti(k.registered, p, M.className) : M.className != null && (U = M.className + " ");
3581
3581
  var O = zi(E.concat(p), k.registered, g);
3582
3582
  U += k.key + "-" + O.name, l !== void 0 && (U += " " + l);
3583
- var m = h && f === void 0 ? yr(q) : d, c = {};
3583
+ var m = h && f === void 0 ? yr(B) : d, c = {};
3584
3584
  for (var P in M)
3585
3585
  h && P === "as" || m(P) && (c[P] = M[P]);
3586
3586
  return c.className = U, N && (c.ref = N), /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(Vi, {
3587
3587
  cache: k,
3588
3588
  serialized: O,
3589
- isStringTag: typeof q == "string"
3590
- }), /* @__PURE__ */ _.createElement(q, c));
3589
+ isStringTag: typeof B == "string"
3590
+ }), /* @__PURE__ */ _.createElement(B, c));
3591
3591
  });
3592
3592
  return v.displayName = a !== void 0 ? a : "Styled(" + (typeof i == "string" ? i : i.displayName || i.name || "Component") + ")", v.defaultProps = t.defaultProps, v.__emotion_real = v, v.__emotion_base = i, v.__emotion_styles = E, v.__emotion_forwardProp = f, Object.defineProperty(v, "toString", {
3593
3593
  value: function() {
@@ -3768,33 +3768,47 @@ const Ki = je.div`
3768
3768
  settings: r,
3769
3769
  gap: o = "15px"
3770
3770
  }) => {
3771
- var i = {
3771
+ const [i, a] = q.useState(1), l = q.useRef(null), f = q.useRef(null);
3772
+ var d = {
3772
3773
  dots: !1,
3773
3774
  speed: 500,
3774
3775
  slidesToScroll: 1,
3775
3776
  infinite: !1,
3776
3777
  variableWidth: !0,
3777
3778
  arrows: !1,
3779
+ rows: 1,
3778
3780
  ...r
3779
3781
  };
3780
- const a = t.map((l, f) => /* @__PURE__ */ G.jsx(
3782
+ const h = t.map((E, R) => /* @__PURE__ */ G.jsx(
3781
3783
  Ji,
3782
3784
  {
3785
+ ref: R === 0 ? f : void 0,
3783
3786
  styles: {
3784
- paddingLeft: f === 0 ? "0px" : o,
3787
+ paddingLeft: R === 0 ? "0px" : o,
3788
+ overflow: "visible",
3785
3789
  // marginLeft: index !== 0 ? "0px" : margin,
3786
- ...l.styles
3790
+ ...E.styles
3787
3791
  },
3788
3792
  "data-testid": "carousel-slide-item",
3789
- children: l.content
3790
- }
3791
- ));
3792
- return /* @__PURE__ */ G.jsx(Ki, { styles: { ...e }, children: /* @__PURE__ */ G.jsx(Qn, { ...i, children: a }) });
3793
+ children: E.content
3794
+ }
3795
+ )), w = () => {
3796
+ d.slidesToShow && a(d.slidesToShow);
3797
+ const E = l.current?.offsetWidth || 1, R = f.current?.offsetWidth || 1, A = Math.floor(E / R);
3798
+ console.log("Slides to show > ", {
3799
+ container: E,
3800
+ slide: R,
3801
+ res: A
3802
+ }), a(A);
3803
+ };
3804
+ return q.useEffect(() => {
3805
+ w();
3806
+ }, [l, f]), /* @__PURE__ */ G.jsx(Ki, { ref: l, styles: { ...e }, children: /* @__PURE__ */ G.jsx(Qn, { ...d, slidesToShow: i, children: h }) });
3793
3807
  }, za = (e) => Er(e, []), Zi = () => {
3794
- const [e, t] = B.useState(
3808
+ const [e, t] = q.useState(
3795
3809
  {}
3796
- ), [r, o] = B.useState(!1);
3797
- return B.useEffect(() => {
3810
+ ), [r, o] = q.useState(!1);
3811
+ return q.useEffect(() => {
3798
3812
  const i = (f) => {
3799
3813
  t({ x: f.clientX, y: f.clientY });
3800
3814
  }, a = (f) => {
@@ -3815,9 +3829,9 @@ const Ki = je.div`
3815
3829
  onDragStart: r,
3816
3830
  onDragEnd: o
3817
3831
  }) => {
3818
- const i = B.useRef(!1), a = B.useRef(!1), { pointerPosition: l, isPointerDown: f } = Zi(), d = B.useRef({
3832
+ const i = q.useRef(!1), a = q.useRef(!1), { pointerPosition: l, isPointerDown: f } = Zi(), d = q.useRef({
3819
3833
  isDragging: !1
3820
- }), h = B.useCallback(
3834
+ }), h = q.useCallback(
3821
3835
  (C) => {
3822
3836
  if (!e || !e.current || !d.current)
3823
3837
  return;
@@ -3825,21 +3839,21 @@ const Ki = je.div`
3825
3839
  return v.posY = C.y, v.posX = C.x, d.current.startPosX && d.current.posX && (v.distanceX = d.current.startPosX - d.current.posX), d.current.startPosY && d.current.posY && (v.distanceY = -(d.current.startPosY - d.current.posY)), v;
3826
3840
  },
3827
3841
  []
3828
- ), w = B.useCallback(
3842
+ ), w = q.useCallback(
3829
3843
  (C) => {
3830
3844
  C.preventDefault(), C.stopPropagation(), d.current.isDragging = !0, d.current.startPosY = C.clientY, d.current.startPosX = C.clientX;
3831
3845
  const v = h({ x: C.clientX, y: C.clientY });
3832
3846
  v && (d.current = v, r?.(v));
3833
3847
  },
3834
3848
  [h]
3835
- ), E = B.useCallback(
3849
+ ), E = q.useCallback(
3836
3850
  (C) => {
3837
3851
  d.current.isDragging = !1;
3838
3852
  const v = h(l);
3839
3853
  v && (o?.(v), v.startPosX = void 0, v.startPosY = void 0, d.current = v);
3840
3854
  },
3841
3855
  [h, l]
3842
- ), R = B.useCallback(
3856
+ ), R = q.useCallback(
3843
3857
  (C) => {
3844
3858
  if (console.debug(
3845
3859
  "useDrag > onPointerMove > Is Dragging >",
@@ -3850,18 +3864,18 @@ const Ki = je.div`
3850
3864
  console.debug("useDrag > onPointerMove > Drag Result >", v), v && (t?.(v), d.current = v);
3851
3865
  },
3852
3866
  [h, l]
3853
- ), A = B.useCallback(async () => {
3867
+ ), A = q.useCallback(async () => {
3854
3868
  if (!i.current) {
3855
3869
  for (; !e?.current; )
3856
3870
  await new Promise((C) => setTimeout(C, 300));
3857
3871
  i.current = !0, e.current.onpointerdown = w, e.current.style.touchAction = "none";
3858
3872
  }
3859
3873
  }, [e?.current, w]);
3860
- B.useEffect(() => {
3874
+ q.useEffect(() => {
3861
3875
  A();
3862
- }, [A]), B.useEffect(() => {
3876
+ }, [A]), q.useEffect(() => {
3863
3877
  R();
3864
- }, [l]), B.useEffect(() => {
3878
+ }, [l]), q.useEffect(() => {
3865
3879
  f !== a.current && (a.current = f, f || E());
3866
3880
  }, [f, a.current]);
3867
3881
  }, Ha = () => {
@@ -3899,10 +3913,10 @@ class eo {
3899
3913
  static isDateOneAfterDateTwo = (t, r) => t.getFullYear() >= r.getFullYear() && t.getMonth() >= r.getMonth() ? t.getDay() > r.getDay() : !1;
3900
3914
  }
3901
3915
  const Na = (e, t = 0) => {
3902
- const r = B.useRef(0), [o, i] = B.useState(0), a = B.useRef(null), [l, f] = B.useState(!1), d = B.useCallback(() => {
3916
+ const r = q.useRef(0), [o, i] = q.useState(0), a = q.useRef(null), [l, f] = q.useState(!1), d = q.useCallback(() => {
3903
3917
  f((E) => !E);
3904
- }, []), h = B.useCallback(() => r.current === 0 ? !1 : o >= r.current - t, [t, o]), w = B.useCallback(() => e.current !== null && e.current !== void 0, [e]);
3905
- return B.useEffect(() => {
3918
+ }, []), h = q.useCallback(() => r.current === 0 ? !1 : o >= r.current - t, [t, o]), w = q.useCallback(() => e.current !== null && e.current !== void 0, [e]);
3919
+ return q.useEffect(() => {
3906
3920
  const E = () => {
3907
3921
  if (!e.current) return;
3908
3922
  const A = e.current.scrollHeight - e.current.clientHeight;
@@ -3987,7 +4001,7 @@ function io() {
3987
4001
  const N = R.indexOf("=", k);
3988
4002
  if (N === -1)
3989
4003
  break;
3990
- const q = R.indexOf(";", k), U = q === -1 ? v : q;
4004
+ const B = R.indexOf(";", k), U = B === -1 ? v : B;
3991
4005
  if (N > U) {
3992
4006
  k = R.lastIndexOf(";", N - 1) + 1;
3993
4007
  continue;
@@ -4195,9 +4209,9 @@ function so(e, t, r, o = {}) {
4195
4209
  f = "PUSH";
4196
4210
  let N = zt(v.location, M, k);
4197
4211
  h = w() + 1;
4198
- let q = kr(N, h), U = v.createHref(N);
4212
+ let B = kr(N, h), U = v.createHref(N);
4199
4213
  try {
4200
- l.pushState(q, "", U);
4214
+ l.pushState(B, "", U);
4201
4215
  } catch (p) {
4202
4216
  if (p instanceof DOMException && p.name === "DataCloneError")
4203
4217
  throw p;
@@ -4209,8 +4223,8 @@ function so(e, t, r, o = {}) {
4209
4223
  f = "REPLACE";
4210
4224
  let N = zt(v.location, M, k);
4211
4225
  h = w();
4212
- let q = kr(N, h), U = v.createHref(N);
4213
- l.replaceState(q, "", U), a && d && d({ action: f, location: v.location, delta: 0 });
4226
+ let B = kr(N, h), U = v.createHref(N);
4227
+ l.replaceState(B, "", U), a && d && d({ action: f, location: v.location, delta: 0 });
4214
4228
  }
4215
4229
  function C(M) {
4216
4230
  return lo(M);
@@ -5303,7 +5317,7 @@ function ga({
5303
5317
  let C = /* @__PURE__ */ new Set(), v = !1;
5304
5318
  if (t.forEach((k) => {
5305
5319
  let N = i.routes[k.route.id];
5306
- !N || !N.hasLoader || (!h.some((q) => q.route.id === k.route.id) && k.route.id in f && a[k.route.id]?.shouldRevalidate || N.hasClientLoader ? v = !0 : C.add(k.route.id));
5320
+ !N || !N.hasLoader || (!h.some((B) => B.route.id === k.route.id) && k.route.id in f && a[k.route.id]?.shouldRevalidate || N.hasClientLoader ? v = !0 : C.add(k.route.id));
5307
5321
  }), C.size === 0)
5308
5322
  return [];
5309
5323
  let M = da(e, l);
@@ -5395,7 +5409,7 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
5395
5409
  `<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
5396
5410
  );
5397
5411
  }
5398
- let N = Do(h, { relative: i }), [q, U, p] = pa(
5412
+ let N = Do(h, { relative: i }), [B, U, p] = pa(
5399
5413
  o,
5400
5414
  R
5401
5415
  ), g = ka(h, {
@@ -5424,7 +5438,7 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
5424
5438
  }
5425
5439
  )
5426
5440
  );
5427
- return q && !v ? /* @__PURE__ */ _.createElement(_.Fragment, null, O, /* @__PURE__ */ _.createElement(va, { page: N })) : O;
5441
+ return B && !v ? /* @__PURE__ */ _.createElement(_.Fragment, null, O, /* @__PURE__ */ _.createElement(va, { page: N })) : O;
5428
5442
  }
5429
5443
  );
5430
5444
  un.displayName = "Link";
@@ -5442,10 +5456,10 @@ var wa = _.forwardRef(
5442
5456
  }, w) {
5443
5457
  let E = Qe(l, { relative: h.relative }), R = Ce(), A = _.useContext(bt), { navigator: C, basename: v } = _.useContext(we), M = A != null && // Conditional usage is OK here because the usage of a data router is static
5444
5458
  // eslint-disable-next-line react-hooks/rules-of-hooks
5445
- Ra(E) && f === !0, k = C.encodeLocation ? C.encodeLocation(E).pathname : E.pathname, N = R.pathname, q = A && A.navigation && A.navigation.location ? A.navigation.location.pathname : null;
5446
- r || (N = N.toLowerCase(), q = q ? q.toLowerCase() : null, k = k.toLowerCase()), q && v && (q = xe(q, v) || q);
5459
+ Ra(E) && f === !0, k = C.encodeLocation ? C.encodeLocation(E).pathname : E.pathname, N = R.pathname, B = A && A.navigation && A.navigation.location ? A.navigation.location.pathname : null;
5460
+ r || (N = N.toLowerCase(), B = B ? B.toLowerCase() : null, k = k.toLowerCase()), B && v && (B = xe(B, v) || B);
5447
5461
  const U = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
5448
- let p = N === k || !i && N.startsWith(k) && N.charAt(U) === "/", g = q != null && (q === k || !i && q.startsWith(k) && q.charAt(k.length) === "/"), y = {
5462
+ let p = N === k || !i && N.startsWith(k) && N.charAt(U) === "/", g = B != null && (B === k || !i && B.startsWith(k) && B.charAt(k.length) === "/"), y = {
5449
5463
  isActive: p,
5450
5464
  isPending: g,
5451
5465
  isTransitioning: M
@@ -5489,11 +5503,11 @@ var Sa = _.forwardRef(
5489
5503
  viewTransition: E,
5490
5504
  ...R
5491
5505
  }, A) => {
5492
- let C = Pa(), v = Ea(f, { relative: h }), M = l.toLowerCase() === "get" ? "get" : "post", k = typeof f == "string" && ln.test(f), N = (q) => {
5493
- if (d && d(q), q.defaultPrevented) return;
5494
- q.preventDefault();
5495
- let U = q.nativeEvent.submitter, p = U?.getAttribute("formmethod") || l;
5496
- C(U || q.currentTarget, {
5506
+ let C = Pa(), v = Ea(f, { relative: h }), M = l.toLowerCase() === "get" ? "get" : "post", k = typeof f == "string" && ln.test(f), N = (B) => {
5507
+ if (d && d(B), B.defaultPrevented) return;
5508
+ B.preventDefault();
5509
+ let U = B.nativeEvent.submitter, p = U?.getAttribute("formmethod") || l;
5510
+ C(U || B.currentTarget, {
5497
5511
  fetcherKey: t,
5498
5512
  method: p,
5499
5513
  navigate: r,
@@ -5634,7 +5648,7 @@ function Ra(e, t = {}) {
5634
5648
  [
5635
5649
  ...fa
5636
5650
  ];
5637
- const fn = B.createContext({
5651
+ const fn = q.createContext({
5638
5652
  history: [],
5639
5653
  addToHistory: () => {
5640
5654
  },
@@ -5645,7 +5659,7 @@ const fn = B.createContext({
5645
5659
  routes: e,
5646
5660
  children: t
5647
5661
  }) => {
5648
- const r = B.useRef(["/"]), [o, i] = B.useState(["/"]), a = B.useCallback((w) => {
5662
+ const r = q.useRef(["/"]), [o, i] = q.useState(["/"]), a = q.useCallback((w) => {
5649
5663
  r.current = w, i(w);
5650
5664
  }, []), l = (w) => {
5651
5665
  a([...r.current, w]);
@@ -5674,18 +5688,18 @@ const fn = B.createContext({
5674
5688
  }
5675
5689
  );
5676
5690
  }, qa = () => {
5677
- const e = en(), t = Ce(), r = Nt(fn), o = B.useCallback(
5691
+ const e = en(), t = Ce(), r = Nt(fn), o = q.useCallback(
5678
5692
  (l, f = !0) => {
5679
5693
  l !== t.pathname && e(l, { replace: !0 }), f && r.addToHistory(l);
5680
5694
  },
5681
5695
  [t.pathname, e, r]
5682
- ), i = B.useCallback(
5696
+ ), i = q.useCallback(
5683
5697
  (l) => {
5684
5698
  const f = l || 1, d = r.popFromHistory(f);
5685
5699
  o(d, !1);
5686
5700
  },
5687
5701
  [o, r]
5688
- ), a = B.useCallback(
5702
+ ), a = q.useCallback(
5689
5703
  (l) => {
5690
5704
  r.replaceHistory(l);
5691
5705
  },
@@ -5698,7 +5712,7 @@ const fn = B.createContext({
5698
5712
  goTo: o,
5699
5713
  replaceHistory: a
5700
5714
  };
5701
- }, dn = B.createContext(
5715
+ }, dn = q.createContext(
5702
5716
  {
5703
5717
  visibleItems: [],
5704
5718
  isItemVisible: () => !1,
@@ -5708,14 +5722,14 @@ const fn = B.createContext({
5708
5722
  }
5709
5723
  }
5710
5724
  ), Ba = ({ children: e }) => {
5711
- const t = B.useRef([]), [r, o] = B.useState([]), i = B.useCallback((d) => {
5725
+ const t = q.useRef([]), [r, o] = q.useState([]), i = q.useCallback((d) => {
5712
5726
  t.current = d, o(d);
5713
- }, []), a = B.useCallback((d) => t.current.some((h) => h === d), []), l = B.useCallback(
5727
+ }, []), a = q.useCallback((d) => t.current.some((h) => h === d), []), l = q.useCallback(
5714
5728
  (d) => {
5715
5729
  a(d) || i([...t.current, d]);
5716
5730
  },
5717
5731
  [a, i]
5718
- ), f = B.useCallback(
5732
+ ), f = q.useCallback(
5719
5733
  (d) => {
5720
5734
  a(d) && i(
5721
5735
  t.current.filter((w) => w !== d)
@@ -5752,9 +5766,9 @@ const fn = B.createContext({
5752
5766
  onCloseDrawer: t,
5753
5767
  drawerCloseOffset: r = 15
5754
5768
  }) => {
5755
- const { isItemVisible: o } = St(), [i, a] = B.useState({
5769
+ const { isItemVisible: o } = St(), [i, a] = q.useState({
5756
5770
  isDragging: !1
5757
- }), l = B.useRef(null), f = B.useRef(null), d = B.useRef(null), [h, w] = B.useState(0), E = (C) => {
5771
+ }), l = q.useRef(null), f = q.useRef(null), d = q.useRef(null), [h, w] = q.useState(0), E = (C) => {
5758
5772
  a(C);
5759
5773
  }, R = (C) => {
5760
5774
  a(C), w(0);
@@ -5852,7 +5866,7 @@ const fn = B.createContext({
5852
5866
  }
5853
5867
  ) });
5854
5868
  }, Ta = ({ onSubmit: e, fields: t }) => {
5855
- const r = B.useRef(null), o = B.useCallback(
5869
+ const r = q.useRef(null), o = q.useCallback(
5856
5870
  (l) => {
5857
5871
  var f = Object.keys(l.currentTarget.elements), d = Object.values(l.currentTarget.elements), h = [];
5858
5872
  for (let w = 0; w < f.length; w++) {
@@ -5868,7 +5882,7 @@ const fn = B.createContext({
5868
5882
  return h;
5869
5883
  },
5870
5884
  [e]
5871
- ), i = B.useCallback(
5885
+ ), i = q.useCallback(
5872
5886
  (l) => {
5873
5887
  l.preventDefault();
5874
5888
  const f = o(l);
@@ -5884,7 +5898,7 @@ const fn = B.createContext({
5884
5898
  handleFormSubmission: i
5885
5899
  };
5886
5900
  }, Ya = (e) => {
5887
- const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } = Ta(e), f = B.useCallback(() => t.map((d) => ({ ...d.content, key: d.name })), [t]);
5901
+ const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } = Ta(e), f = q.useCallback(() => t.map((d) => ({ ...d.content, key: d.name })), [t]);
5888
5902
  return /* @__PURE__ */ G.jsxs(
5889
5903
  "form",
5890
5904
  {
@@ -6124,17 +6138,17 @@ const fn = B.createContext({
6124
6138
  }
6125
6139
  ) });
6126
6140
  }, La = (e) => {
6127
- const t = B.useRef(null), r = B.useRef(null), [o, i] = B.useState(24), [a, l] = B.useState(24), f = B.useCallback(() => {
6141
+ const t = q.useRef(null), r = q.useRef(null), [o, i] = q.useState(24), [a, l] = q.useState(24), f = q.useCallback(() => {
6128
6142
  t.current && i(t.current.clientHeight);
6129
- }, [t, t.current]), d = B.useCallback(() => {
6143
+ }, [t, t.current]), d = q.useCallback(() => {
6130
6144
  r.current && l(r.current.clientHeight);
6131
- }, [r, r.current]), h = B.useCallback(() => {
6145
+ }, [r, r.current]), h = q.useCallback(() => {
6132
6146
  let w = 0;
6133
6147
  return e.header?.visibility === "always" && (w = w + (o || 0)), e.footer?.visibility === "always" && (w = w + (a || 0)), w;
6134
6148
  }, [r, r.current]);
6135
- return B.useEffect(() => {
6149
+ return q.useEffect(() => {
6136
6150
  f();
6137
- }, [f, t, t.current]), B.useEffect(() => {
6151
+ }, [f, t, t.current]), q.useEffect(() => {
6138
6152
  d();
6139
6153
  }, [d, r, r.current]), {
6140
6154
  header: {
@@ -6315,8 +6329,8 @@ const fn = B.createContext({
6315
6329
  styles: r,
6316
6330
  durationInSeconds: o = 3
6317
6331
  }) => {
6318
- const i = B.useRef(!1), { isItemVisible: a, hideItem: l } = St();
6319
- return B.useEffect(() => {
6332
+ const i = q.useRef(!1), { isItemVisible: a, hideItem: l } = St();
6333
+ return q.useEffect(() => {
6320
6334
  const f = a(e);
6321
6335
  i.current !== f && (i.current = f, f && setTimeout(() => l(e), o * 1e3));
6322
6336
  }, [i, a, l]), /* @__PURE__ */ G.jsx(G.Fragment, { children: a(e) && /* @__PURE__ */ G.jsx(