@eliseubatista99/react-scaffold-core 0.1.11 → 0.1.12
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,6 +1,6 @@
|
|
|
1
1
|
import * as _ from "react";
|
|
2
2
|
import U, { forwardRef as hn, useContext as Ht, useEffect as Er, useState as vn, useMemo as mn } from "react";
|
|
3
|
-
var
|
|
3
|
+
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function yn(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6
6
|
}
|
|
@@ -28,7 +28,7 @@ function gn(e) {
|
|
|
28
28
|
});
|
|
29
29
|
}), r;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
31
|
+
var rt = { exports: {} }, Ae = {};
|
|
32
32
|
/**
|
|
33
33
|
* @license React
|
|
34
34
|
* react-jsx-runtime.production.js
|
|
@@ -305,10 +305,10 @@ React keys must be passed directly to JSX without using spread:
|
|
|
305
305
|
}
|
|
306
306
|
var Jt;
|
|
307
307
|
function Sn() {
|
|
308
|
-
return Jt || (Jt = 1, process.env.NODE_ENV === "production" ?
|
|
308
|
+
return Jt || (Jt = 1, process.env.NODE_ENV === "production" ? rt.exports = bn() : rt.exports = wn()), rt.exports;
|
|
309
309
|
}
|
|
310
310
|
var G = Sn();
|
|
311
|
-
const
|
|
311
|
+
const Da = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ G.jsx(
|
|
312
312
|
"button",
|
|
313
313
|
{
|
|
314
314
|
style: {
|
|
@@ -372,7 +372,7 @@ var Ct, Qt;
|
|
|
372
372
|
function kn() {
|
|
373
373
|
if (Qt) return Ct;
|
|
374
374
|
Qt = 1;
|
|
375
|
-
var e = "Expected a function", t = NaN, r = "[object Symbol]", o = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, l = /^0o[0-7]+$/i, f = parseInt, d = typeof
|
|
375
|
+
var e = "Expected a function", t = NaN, r = "[object Symbol]", o = /^\s+|\s+$/g, i = /^[-+]0x[0-9a-f]+$/i, a = /^0b[01]+$/i, l = /^0o[0-7]+$/i, f = parseInt, d = typeof tt == "object" && tt && tt.Object === Object && tt, h = typeof self == "object" && self && self.Object === Object && self, w = d || h || Function("return this")(), R = Object.prototype, E = R.toString, z = Math.max, C = Math.min, v = function() {
|
|
376
376
|
return w.Date.now();
|
|
377
377
|
};
|
|
378
378
|
function I(p, y, g) {
|
|
@@ -565,7 +565,7 @@ function Rr() {
|
|
|
565
565
|
}(Et)), Et;
|
|
566
566
|
}
|
|
567
567
|
var rr;
|
|
568
|
-
function
|
|
568
|
+
function Ge() {
|
|
569
569
|
if (rr) return W;
|
|
570
570
|
rr = 1, Object.defineProperty(W, "__esModule", {
|
|
571
571
|
value: !0
|
|
@@ -770,7 +770,7 @@ function Xe() {
|
|
|
770
770
|
if (!S) {
|
|
771
771
|
if (M) return w(n);
|
|
772
772
|
j && N && A && w(n);
|
|
773
|
-
var he, Pe = {},
|
|
773
|
+
var he, Pe = {}, et = c(u);
|
|
774
774
|
K.curX = n.touches ? n.touches[0].pageX : n.clientX, K.curY = n.touches ? n.touches[0].pageY : n.clientY, K.swipeLength = Math.round(Math.sqrt(Math.pow(K.curX - K.startX, 2)));
|
|
775
775
|
var Xt = Math.round(Math.sqrt(Math.pow(K.curY - K.startY, 2)));
|
|
776
776
|
if (!A && !Q && Xt > 10)
|
|
@@ -781,7 +781,7 @@ function Xe() {
|
|
|
781
781
|
var Me = (F ? -1 : 1) * (K.curX > K.startX ? 1 : -1);
|
|
782
782
|
A && (Me = K.curY > K.startY ? 1 : -1);
|
|
783
783
|
var pn = Math.ceil(Z / ne), Oe = H(u.touchObject, A), Ie = K.swipeLength;
|
|
784
|
-
return le || (Y === 0 && (Oe === "right" || Oe === "down") || Y + 1 >= pn && (Oe === "left" || Oe === "up") || !q(u) && (Oe === "left" || Oe === "up")) && (Ie = K.swipeLength * V, X === !1 && re && (re(Oe), Pe.edgeDragged = !0)), !ie && ae && (ae(Oe), Pe.swiped = !0), j ? he =
|
|
784
|
+
return le || (Y === 0 && (Oe === "right" || Oe === "down") || Y + 1 >= pn && (Oe === "left" || Oe === "up") || !q(u) && (Oe === "left" || Oe === "up")) && (Ie = K.swipeLength * V, X === !1 && re && (re(Oe), Pe.edgeDragged = !0)), !ie && ae && (ae(Oe), Pe.swiped = !0), j ? he = et + Ie * (ue / ce) * Me : F ? he = et - Ie * Me : he = et + Ie * Me, A && (he = et + Ie * Me), Pe = a(a({}, Pe), {}, {
|
|
785
785
|
touchObject: K,
|
|
786
786
|
swipeLeft: he,
|
|
787
787
|
trackStyle: k(a(a({}, u), {}, {
|
|
@@ -954,7 +954,7 @@ function On() {
|
|
|
954
954
|
nr = 1, Object.defineProperty(He, "__esModule", {
|
|
955
955
|
value: !0
|
|
956
956
|
}), He.Track = void 0;
|
|
957
|
-
var e = o(U), t = o(ht()), r =
|
|
957
|
+
var e = o(U), t = o(ht()), r = Ge();
|
|
958
958
|
function o(m) {
|
|
959
959
|
return m && m.__esModule ? m : { default: m };
|
|
960
960
|
}
|
|
@@ -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(U), r = i(ht()), o =
|
|
1193
|
+
var t = i(U), r = i(ht()), o = Ge();
|
|
1194
1194
|
function i(p) {
|
|
1195
1195
|
return p && p.__esModule ? p : { default: p };
|
|
1196
1196
|
}
|
|
@@ -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(U), r = i(ht()), o =
|
|
1356
|
+
var t = i(U), r = i(ht()), o = Ge();
|
|
1357
1357
|
function i(p) {
|
|
1358
1358
|
return p && p.__esModule ? p : { default: p };
|
|
1359
1359
|
}
|
|
@@ -1587,10 +1587,10 @@ var _r = function() {
|
|
|
1587
1587
|
}, t;
|
|
1588
1588
|
}()
|
|
1589
1589
|
);
|
|
1590
|
-
}(), Dt = typeof window < "u" && typeof document < "u" && window.document === document,
|
|
1590
|
+
}(), Dt = typeof window < "u" && typeof document < "u" && window.document === document, ct = function() {
|
|
1591
1591
|
return typeof global < "u" && global.Math === Math ? global : typeof self < "u" && self.Math === Math ? self : typeof window < "u" && window.Math === Math ? window : Function("return this")();
|
|
1592
1592
|
}(), En = function() {
|
|
1593
|
-
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(
|
|
1593
|
+
return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(ct) : function(e) {
|
|
1594
1594
|
return setTimeout(function() {
|
|
1595
1595
|
return e(Date.now());
|
|
1596
1596
|
}, 1e3 / 60);
|
|
@@ -1668,9 +1668,9 @@ var Tn = 20, jn = ["top", "right", "bottom", "left", "width", "height", "size",
|
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}, _e = function(e) {
|
|
1670
1670
|
var t = e && e.ownerDocument && e.ownerDocument.defaultView;
|
|
1671
|
-
return t ||
|
|
1671
|
+
return t || ct;
|
|
1672
1672
|
}, jr = vt(0, 0, 0, 0);
|
|
1673
|
-
function
|
|
1673
|
+
function ft(e) {
|
|
1674
1674
|
return parseFloat(e) || 0;
|
|
1675
1675
|
}
|
|
1676
1676
|
function ar(e) {
|
|
@@ -1678,13 +1678,13 @@ function ar(e) {
|
|
|
1678
1678
|
t[r - 1] = arguments[r];
|
|
1679
1679
|
return t.reduce(function(o, i) {
|
|
1680
1680
|
var a = e["border-" + i + "-width"];
|
|
1681
|
-
return o +
|
|
1681
|
+
return o + ft(a);
|
|
1682
1682
|
}, 0);
|
|
1683
1683
|
}
|
|
1684
1684
|
function Mn(e) {
|
|
1685
1685
|
for (var t = ["top", "right", "bottom", "left"], r = {}, o = 0, i = t; o < i.length; o++) {
|
|
1686
1686
|
var a = i[o], l = e["padding-" + a];
|
|
1687
|
-
r[a] =
|
|
1687
|
+
r[a] = ft(l);
|
|
1688
1688
|
}
|
|
1689
1689
|
return r;
|
|
1690
1690
|
}
|
|
@@ -1696,7 +1696,7 @@ function An(e) {
|
|
|
1696
1696
|
var t = e.clientWidth, r = e.clientHeight;
|
|
1697
1697
|
if (!t && !r)
|
|
1698
1698
|
return jr;
|
|
1699
|
-
var o = _e(e).getComputedStyle(e), i = Mn(o), a = i.left + i.right, l = i.top + i.bottom, f =
|
|
1699
|
+
var o = _e(e).getComputedStyle(e), i = Mn(o), a = i.left + i.right, l = i.top + i.bottom, f = ft(o.width), d = ft(o.height);
|
|
1700
1700
|
if (o.boxSizing === "border-box" && (Math.round(f + a) !== t && (f -= ar(o, "left", "right") + a), Math.round(d + l) !== r && (d -= ar(o, "top", "bottom") + l)), !Nn(e)) {
|
|
1701
1701
|
var h = Math.round(f + a) - t, w = Math.round(d + l) - r;
|
|
1702
1702
|
Math.abs(h) !== 1 && (f -= h), Math.abs(w) !== 1 && (d -= w);
|
|
@@ -1826,7 +1826,7 @@ var Fn = (
|
|
|
1826
1826
|
};
|
|
1827
1827
|
});
|
|
1828
1828
|
var Un = function() {
|
|
1829
|
-
return typeof
|
|
1829
|
+
return typeof ct.ResizeObserver < "u" ? ct.ResizeObserver : Dr;
|
|
1830
1830
|
}();
|
|
1831
1831
|
const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1832
1832
|
__proto__: null,
|
|
@@ -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(U), t = h(xn()), r = h(kn()), o = h(ht()), i =
|
|
1841
|
+
var e = h(U), t = h(xn()), r = h(kn()), o = h(ht()), 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
|
}
|
|
@@ -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(U), r = Vn(), o = l(Gn()), i = l(Rr()), a =
|
|
2407
|
+
var t = l(U), r = Vn(), o = l(Gn()), i = l(Rr()), a = Ge();
|
|
2408
2408
|
function l(k) {
|
|
2409
2409
|
return k && k.__esModule ? k : { default: k };
|
|
2410
2410
|
}
|
|
@@ -2711,7 +2711,7 @@ var ri = /* @__PURE__ */ function() {
|
|
|
2711
2711
|
return (i = o.parentNode) == null ? void 0 : i.removeChild(o);
|
|
2712
2712
|
}), this.tags = [], this.ctr = 0;
|
|
2713
2713
|
}, e;
|
|
2714
|
-
}(), de = "-ms-",
|
|
2714
|
+
}(), de = "-ms-", dt = "-moz-", ee = "-webkit-", Mr = "comm", $t = "rule", Ft = "decl", ni = "@import", Ir = "@keyframes", ii = "@layer", oi = Math.abs, mt = String.fromCharCode, ai = Object.assign;
|
|
2715
2715
|
function si(e, t) {
|
|
2716
2716
|
return fe(e, 0) ^ 45 ? (((t << 2 ^ fe(e, 0)) << 2 ^ fe(e, 1)) << 2 ^ fe(e, 2)) << 2 ^ fe(e, 3) : 0;
|
|
2717
2717
|
}
|
|
@@ -2739,7 +2739,7 @@ function me(e) {
|
|
|
2739
2739
|
function Wt(e) {
|
|
2740
2740
|
return e.length;
|
|
2741
2741
|
}
|
|
2742
|
-
function
|
|
2742
|
+
function nt(e, t) {
|
|
2743
2743
|
return t.push(e), e;
|
|
2744
2744
|
}
|
|
2745
2745
|
function ui(e, t) {
|
|
@@ -2764,10 +2764,10 @@ function ve() {
|
|
|
2764
2764
|
function ge() {
|
|
2765
2765
|
return fe(je, pe);
|
|
2766
2766
|
}
|
|
2767
|
-
function
|
|
2767
|
+
function ot() {
|
|
2768
2768
|
return pe;
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function Ke(e, t) {
|
|
2771
2771
|
return Ue(je, e, t);
|
|
2772
2772
|
}
|
|
2773
2773
|
function Be(e) {
|
|
@@ -2814,8 +2814,8 @@ function Nr(e) {
|
|
|
2814
2814
|
function Hr(e) {
|
|
2815
2815
|
return je = "", e;
|
|
2816
2816
|
}
|
|
2817
|
-
function
|
|
2818
|
-
return Ar(
|
|
2817
|
+
function at(e) {
|
|
2818
|
+
return Ar(Ke(pe - 1, At(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
2819
2819
|
}
|
|
2820
2820
|
function di(e) {
|
|
2821
2821
|
for (; (se = ge()) && se < 33; )
|
|
@@ -2825,7 +2825,7 @@ function di(e) {
|
|
|
2825
2825
|
function pi(e, t) {
|
|
2826
2826
|
for (; --t && ve() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
|
|
2827
2827
|
;
|
|
2828
|
-
return
|
|
2828
|
+
return Ke(e, ot() + (t < 6 && ge() == 32 && ve() == 32));
|
|
2829
2829
|
}
|
|
2830
2830
|
function At(e) {
|
|
2831
2831
|
for (; ve(); )
|
|
@@ -2853,30 +2853,30 @@ function hi(e, t) {
|
|
|
2853
2853
|
for (; ve() && e + se !== 57; )
|
|
2854
2854
|
if (e + se === 84 && ge() === 47)
|
|
2855
2855
|
break;
|
|
2856
|
-
return "/*" +
|
|
2856
|
+
return "/*" + Ke(t, pe - 1) + "*" + mt(e === 47 ? e : ve());
|
|
2857
2857
|
}
|
|
2858
2858
|
function vi(e) {
|
|
2859
2859
|
for (; !Be(ge()); )
|
|
2860
2860
|
ve();
|
|
2861
|
-
return
|
|
2861
|
+
return Ke(e, pe);
|
|
2862
2862
|
}
|
|
2863
2863
|
function mi(e) {
|
|
2864
|
-
return Hr(
|
|
2864
|
+
return Hr(st("", null, null, null, [""], e = Nr(e), 0, [0], e));
|
|
2865
2865
|
}
|
|
2866
|
-
function
|
|
2866
|
+
function st(e, t, r, o, i, a, l, f, d) {
|
|
2867
2867
|
for (var h = 0, w = 0, R = l, E = 0, z = 0, C = 0, v = 1, I = 1, O = 1, H = 0, q = "", B = i, p = a, y = o, g = q; I; )
|
|
2868
2868
|
switch (C = H, H = ve()) {
|
|
2869
2869
|
// (
|
|
2870
2870
|
case 40:
|
|
2871
2871
|
if (C != 108 && fe(g, R - 1) == 58) {
|
|
2872
|
-
It(g += te(
|
|
2872
|
+
It(g += te(at(H), "&", "&\f"), "&\f") != -1 && (O = -1);
|
|
2873
2873
|
break;
|
|
2874
2874
|
}
|
|
2875
2875
|
// " ' [
|
|
2876
2876
|
case 34:
|
|
2877
2877
|
case 39:
|
|
2878
2878
|
case 91:
|
|
2879
|
-
g +=
|
|
2879
|
+
g += at(H);
|
|
2880
2880
|
break;
|
|
2881
2881
|
// \t \n \r \s
|
|
2882
2882
|
case 9:
|
|
@@ -2887,14 +2887,14 @@ function at(e, t, r, o, i, a, l, f, d) {
|
|
|
2887
2887
|
break;
|
|
2888
2888
|
// \
|
|
2889
2889
|
case 92:
|
|
2890
|
-
g += pi(
|
|
2890
|
+
g += pi(ot() - 1, 7);
|
|
2891
2891
|
continue;
|
|
2892
2892
|
// /
|
|
2893
2893
|
case 47:
|
|
2894
2894
|
switch (ge()) {
|
|
2895
2895
|
case 42:
|
|
2896
2896
|
case 47:
|
|
2897
|
-
|
|
2897
|
+
nt(yi(hi(ve(), ot()), t, r), d);
|
|
2898
2898
|
break;
|
|
2899
2899
|
default:
|
|
2900
2900
|
g += "/";
|
|
@@ -2914,16 +2914,16 @@ function at(e, t, r, o, i, a, l, f, d) {
|
|
|
2914
2914
|
I = 0;
|
|
2915
2915
|
// ;
|
|
2916
2916
|
case 59 + w:
|
|
2917
|
-
O == -1 && (g = te(g, /\f/g, "")), z > 0 && me(g) - R &&
|
|
2917
|
+
O == -1 && (g = te(g, /\f/g, "")), z > 0 && me(g) - R && nt(z > 32 ? pr(g + ";", o, r, R - 1) : pr(te(g, " ", "") + ";", o, r, R - 2), d);
|
|
2918
2918
|
break;
|
|
2919
2919
|
// @ ;
|
|
2920
2920
|
case 59:
|
|
2921
2921
|
g += ";";
|
|
2922
2922
|
// { rule/at-rule
|
|
2923
2923
|
default:
|
|
2924
|
-
if (
|
|
2924
|
+
if (nt(y = dr(g, t, r, h, w, i, f, q, B = [], p = [], R), a), H === 123)
|
|
2925
2925
|
if (w === 0)
|
|
2926
|
-
|
|
2926
|
+
st(g, t, y, y, B, a, R, f, p);
|
|
2927
2927
|
else
|
|
2928
2928
|
switch (E === 99 && fe(g, 3) === 110 ? 100 : E) {
|
|
2929
2929
|
// d l m s
|
|
@@ -2931,10 +2931,10 @@ function at(e, t, r, o, i, a, l, f, d) {
|
|
|
2931
2931
|
case 108:
|
|
2932
2932
|
case 109:
|
|
2933
2933
|
case 115:
|
|
2934
|
-
|
|
2934
|
+
st(e, y, y, o && nt(dr(e, y, y, 0, 0, i, f, q, i, B = [], R), p), i, p, R, f, o ? B : p);
|
|
2935
2935
|
break;
|
|
2936
2936
|
default:
|
|
2937
|
-
|
|
2937
|
+
st(g, y, y, y, [""], p, 0, f, p);
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
2940
|
h = w = z = 0, v = O = 1, q = g = "", R = l;
|
|
@@ -2960,7 +2960,7 @@ function at(e, t, r, o, i, a, l, f, d) {
|
|
|
2960
2960
|
break;
|
|
2961
2961
|
// @
|
|
2962
2962
|
case 64:
|
|
2963
|
-
ge() === 45 && (g +=
|
|
2963
|
+
ge() === 45 && (g += at(ve())), E = ge(), w = R = me(q = g += vi(ot())), H++;
|
|
2964
2964
|
break;
|
|
2965
2965
|
// -
|
|
2966
2966
|
case 45:
|
|
@@ -3024,7 +3024,7 @@ function $r(e) {
|
|
|
3024
3024
|
var Si = function(t, r, o) {
|
|
3025
3025
|
for (var i = 0, a = 0; i = a, a = ge(), i === 38 && a === 12 && (r[o] = 1), !Be(a); )
|
|
3026
3026
|
ve();
|
|
3027
|
-
return
|
|
3027
|
+
return Ke(t, pe);
|
|
3028
3028
|
}, xi = function(t, r) {
|
|
3029
3029
|
var o = -1, i = 44;
|
|
3030
3030
|
do
|
|
@@ -3033,7 +3033,7 @@ var Si = function(t, r, o) {
|
|
|
3033
3033
|
i === 38 && ge() === 12 && (r[o] = 1), t[o] += Si(pe - 1, r, o);
|
|
3034
3034
|
break;
|
|
3035
3035
|
case 2:
|
|
3036
|
-
t[o] +=
|
|
3036
|
+
t[o] += at(i);
|
|
3037
3037
|
break;
|
|
3038
3038
|
case 4:
|
|
3039
3039
|
if (i === 44) {
|
|
@@ -3110,7 +3110,7 @@ function Fr(e, t) {
|
|
|
3110
3110
|
case 4810:
|
|
3111
3111
|
case 6968:
|
|
3112
3112
|
case 2756:
|
|
3113
|
-
return ee + e +
|
|
3113
|
+
return ee + e + dt + e + de + e + e;
|
|
3114
3114
|
// flex, flex-direction
|
|
3115
3115
|
case 6828:
|
|
3116
3116
|
case 4268:
|
|
@@ -3174,7 +3174,7 @@ function Fr(e, t) {
|
|
|
3174
3174
|
if (fe(e, t + 4) !== 45) break;
|
|
3175
3175
|
// (f)ill-available, (f)it-content
|
|
3176
3176
|
case 102:
|
|
3177
|
-
return te(e, /(.+:)(.+)-([^]+)/, "$1" + ee + "$2-$3$1" +
|
|
3177
|
+
return te(e, /(.+:)(.+)-([^]+)/, "$1" + ee + "$2-$3$1" + dt + (fe(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
3178
3178
|
// (s)tretch
|
|
3179
3179
|
case 115:
|
|
3180
3180
|
return ~It(e, "stretch") ? Fr(te(e, "stretch", "fill-available"), t) + e : e;
|
|
@@ -3227,14 +3227,14 @@ var Pi = function(t, r, o, i) {
|
|
|
3227
3227
|
case ":read-only":
|
|
3228
3228
|
case ":read-write":
|
|
3229
3229
|
return Re([Fe(t, {
|
|
3230
|
-
props: [te(a, /:(read-\w+)/, ":" +
|
|
3230
|
+
props: [te(a, /:(read-\w+)/, ":" + dt + "$1")]
|
|
3231
3231
|
})], i);
|
|
3232
3232
|
// :placeholder
|
|
3233
3233
|
case "::placeholder":
|
|
3234
3234
|
return Re([Fe(t, {
|
|
3235
3235
|
props: [te(a, /:(plac\w+)/, ":" + ee + "input-$1")]
|
|
3236
3236
|
}), Fe(t, {
|
|
3237
|
-
props: [te(a, /:(plac\w+)/, ":" +
|
|
3237
|
+
props: [te(a, /:(plac\w+)/, ":" + dt + "$1")]
|
|
3238
3238
|
}), Fe(t, {
|
|
3239
3239
|
props: [te(a, /:(plac\w+)/, de + "input-$1")]
|
|
3240
3240
|
})], i);
|
|
@@ -3736,11 +3736,16 @@ var Fi = function(t) {
|
|
|
3736
3736
|
"svg",
|
|
3737
3737
|
"text",
|
|
3738
3738
|
"tspan"
|
|
3739
|
-
],
|
|
3739
|
+
], Ve = Xi.bind(null);
|
|
3740
3740
|
Gi.forEach(function(e) {
|
|
3741
|
-
|
|
3741
|
+
Ve[e] = Ve(e);
|
|
3742
3742
|
});
|
|
3743
|
-
const Ki =
|
|
3743
|
+
const Ki = Ve.div`
|
|
3744
|
+
width: 100%;
|
|
3745
|
+
height: fit-content;
|
|
3746
|
+
|
|
3747
|
+
${({ styles: e }) => e && { ...e }}
|
|
3748
|
+
`, Ji = Ve.div`
|
|
3744
3749
|
box-sizing: border-box;
|
|
3745
3750
|
display: flex;
|
|
3746
3751
|
flex-direction: column;
|
|
@@ -3753,28 +3758,35 @@ const Ki = dt.div`
|
|
|
3753
3758
|
box-sizing: border-box;
|
|
3754
3759
|
display: flex;
|
|
3755
3760
|
}
|
|
3756
|
-
`,
|
|
3757
|
-
|
|
3761
|
+
`, Ma = ({
|
|
3762
|
+
styles: e,
|
|
3763
|
+
content: t,
|
|
3764
|
+
settings: r,
|
|
3765
|
+
gap: o = "15px"
|
|
3766
|
+
}) => {
|
|
3767
|
+
var i = {
|
|
3758
3768
|
dots: !1,
|
|
3759
3769
|
speed: 500,
|
|
3760
3770
|
slidesToScroll: 1,
|
|
3761
3771
|
infinite: !1,
|
|
3762
3772
|
variableWidth: !0,
|
|
3773
|
+
arrows: !1,
|
|
3763
3774
|
...r
|
|
3764
3775
|
};
|
|
3765
|
-
const
|
|
3766
|
-
|
|
3776
|
+
const a = t.map((l, f) => /* @__PURE__ */ G.jsx(
|
|
3777
|
+
Ji,
|
|
3767
3778
|
{
|
|
3768
3779
|
styles: {
|
|
3769
|
-
|
|
3770
|
-
|
|
3780
|
+
paddingLeft: f === 0 ? "0px" : o,
|
|
3781
|
+
marginLeft: f !== 0 ? "0px" : o,
|
|
3782
|
+
...l.styles
|
|
3771
3783
|
},
|
|
3772
3784
|
"data-testid": "carousel-slide-item",
|
|
3773
|
-
children:
|
|
3785
|
+
children: l.content
|
|
3774
3786
|
}
|
|
3775
3787
|
));
|
|
3776
|
-
return /* @__PURE__ */ G.jsx(
|
|
3777
|
-
},
|
|
3788
|
+
return /* @__PURE__ */ G.jsx(Ki, { styles: { ...e }, children: /* @__PURE__ */ G.jsx(Qn, { ...i, children: a }) });
|
|
3789
|
+
}, Ia = (e) => Er(e, []), Zi = () => {
|
|
3778
3790
|
const [e, t] = U.useState(
|
|
3779
3791
|
{}
|
|
3780
3792
|
), [r, o] = U.useState(!1);
|
|
@@ -3793,13 +3805,13 @@ const Ki = dt.div`
|
|
|
3793
3805
|
pointerPosition: e,
|
|
3794
3806
|
isPointerDown: r
|
|
3795
3807
|
};
|
|
3796
|
-
},
|
|
3808
|
+
}, Qi = ({
|
|
3797
3809
|
ref: e,
|
|
3798
3810
|
onDrag: t,
|
|
3799
3811
|
onDragStart: r,
|
|
3800
3812
|
onDragEnd: o
|
|
3801
3813
|
}) => {
|
|
3802
|
-
const i = U.useRef(!1), a = U.useRef(!1), { pointerPosition: l, isPointerDown: f } =
|
|
3814
|
+
const i = U.useRef(!1), a = U.useRef(!1), { pointerPosition: l, isPointerDown: f } = Zi(), d = U.useRef({
|
|
3803
3815
|
isDragging: !1
|
|
3804
3816
|
}), h = U.useCallback(
|
|
3805
3817
|
(C) => {
|
|
@@ -3848,7 +3860,7 @@ const Ki = dt.div`
|
|
|
3848
3860
|
}, [l]), U.useEffect(() => {
|
|
3849
3861
|
f !== a.current && (a.current = f, f || R());
|
|
3850
3862
|
}, [f, a.current]);
|
|
3851
|
-
},
|
|
3863
|
+
}, Aa = () => {
|
|
3852
3864
|
const e = (r, o) => {
|
|
3853
3865
|
let i = 0, a = `${r}?`;
|
|
3854
3866
|
for (const l in o) {
|
|
@@ -3861,16 +3873,16 @@ const Ki = dt.div`
|
|
|
3861
3873
|
const i = e(r, o);
|
|
3862
3874
|
return await (await fetch(i)).json();
|
|
3863
3875
|
};
|
|
3864
|
-
},
|
|
3876
|
+
}, eo = {
|
|
3865
3877
|
xs: 0,
|
|
3866
3878
|
sm: 420,
|
|
3867
3879
|
md: 768,
|
|
3868
3880
|
lg: 991,
|
|
3869
3881
|
xl: 1200,
|
|
3870
3882
|
xxl: 1440
|
|
3871
|
-
},
|
|
3883
|
+
}, za = (e) => {
|
|
3872
3884
|
const t = {
|
|
3873
|
-
...
|
|
3885
|
+
...eo,
|
|
3874
3886
|
...e?.breakpointConfiguration
|
|
3875
3887
|
}, [r, o] = vn(
|
|
3876
3888
|
wr(t)
|
|
@@ -3880,10 +3892,10 @@ const Ki = dt.div`
|
|
|
3880
3892
|
return Er(() => (window.addEventListener("resize", i), () => {
|
|
3881
3893
|
window.removeEventListener("resize", i);
|
|
3882
3894
|
}), []), mn(() => r, [r]);
|
|
3883
|
-
},
|
|
3884
|
-
const t = window.innerWidth, r = window.innerHeight, o =
|
|
3895
|
+
}, to = (e, t) => e < t.sm ? "xs" : e < t.md ? "sm" : e < t.lg ? "md" : e < t.xl ? "lg" : e < t.xxl ? "xl" : "xxl", ro = (e, t) => e <= t.sm ? "mobile" : e <= t.md ? "tablet" : "desktop", wr = (e) => {
|
|
3896
|
+
const t = window.innerWidth, r = window.innerHeight, o = to(t, e), i = ro(t, e);
|
|
3885
3897
|
return { currentWidth: t, currentHeight: r, currentBreakpoint: o, currentSize: i };
|
|
3886
|
-
},
|
|
3898
|
+
}, Na = (e) => {
|
|
3887
3899
|
const t = e.translations, r = e.language, o = (a, l) => {
|
|
3888
3900
|
if (!a)
|
|
3889
3901
|
return;
|
|
@@ -3906,7 +3918,7 @@ const Ki = dt.div`
|
|
|
3906
3918
|
};
|
|
3907
3919
|
};
|
|
3908
3920
|
var We = {}, Sr;
|
|
3909
|
-
function
|
|
3921
|
+
function no() {
|
|
3910
3922
|
if (Sr) return We;
|
|
3911
3923
|
Sr = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.parse = l, We.serialize = h;
|
|
3912
3924
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, o = /^[\u0020-\u003A\u003D-\u007E]*$/, i = Object.prototype.toString, a = /* @__PURE__ */ (() => {
|
|
@@ -4030,7 +4042,7 @@ function ro() {
|
|
|
4030
4042
|
}
|
|
4031
4043
|
return We;
|
|
4032
4044
|
}
|
|
4033
|
-
|
|
4045
|
+
no();
|
|
4034
4046
|
/**
|
|
4035
4047
|
* react-router v7.6.3
|
|
4036
4048
|
*
|
|
@@ -4042,7 +4054,7 @@ ro();
|
|
|
4042
4054
|
* @license MIT
|
|
4043
4055
|
*/
|
|
4044
4056
|
var xr = "popstate";
|
|
4045
|
-
function
|
|
4057
|
+
function io(e = {}) {
|
|
4046
4058
|
function t(o, i) {
|
|
4047
4059
|
let { pathname: a, search: l, hash: f } = o.location;
|
|
4048
4060
|
return zt(
|
|
@@ -4054,9 +4066,9 @@ function no(e = {}) {
|
|
|
4054
4066
|
);
|
|
4055
4067
|
}
|
|
4056
4068
|
function r(o, i) {
|
|
4057
|
-
return typeof i == "string" ? i :
|
|
4069
|
+
return typeof i == "string" ? i : Xe(i);
|
|
4058
4070
|
}
|
|
4059
|
-
return
|
|
4071
|
+
return ao(
|
|
4060
4072
|
t,
|
|
4061
4073
|
r,
|
|
4062
4074
|
null,
|
|
@@ -4076,7 +4088,7 @@ function be(e, t) {
|
|
|
4076
4088
|
}
|
|
4077
4089
|
}
|
|
4078
4090
|
}
|
|
4079
|
-
function
|
|
4091
|
+
function oo() {
|
|
4080
4092
|
return Math.random().toString(36).substring(2, 10);
|
|
4081
4093
|
}
|
|
4082
4094
|
function kr(e, t) {
|
|
@@ -4097,10 +4109,10 @@ function zt(e, t, r = null, o) {
|
|
|
4097
4109
|
// full Locations now and avoid the need to run through this flow at all
|
|
4098
4110
|
// But that's a pretty big refactor to the current test suite so going to
|
|
4099
4111
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
4100
|
-
key: t && t.key || o ||
|
|
4112
|
+
key: t && t.key || o || oo()
|
|
4101
4113
|
};
|
|
4102
4114
|
}
|
|
4103
|
-
function
|
|
4115
|
+
function Xe({
|
|
4104
4116
|
pathname: e = "/",
|
|
4105
4117
|
search: t = "",
|
|
4106
4118
|
hash: r = ""
|
|
@@ -4117,7 +4129,7 @@ function Le(e) {
|
|
|
4117
4129
|
}
|
|
4118
4130
|
return t;
|
|
4119
4131
|
}
|
|
4120
|
-
function
|
|
4132
|
+
function ao(e, t, r, o = {}) {
|
|
4121
4133
|
let { window: i = document.defaultView, v5Compat: a = !1 } = o, l = i.history, f = "POP", d = null, h = w();
|
|
4122
4134
|
h == null && (h = 0, l.replaceState({ ...l.state, idx: h }, ""));
|
|
4123
4135
|
function w() {
|
|
@@ -4150,7 +4162,7 @@ function oo(e, t, r, o = {}) {
|
|
|
4150
4162
|
l.replaceState(q, "", B), a && d && d({ action: f, location: v.location, delta: 0 });
|
|
4151
4163
|
}
|
|
4152
4164
|
function C(I) {
|
|
4153
|
-
return
|
|
4165
|
+
return so(I);
|
|
4154
4166
|
}
|
|
4155
4167
|
let v = {
|
|
4156
4168
|
get action() {
|
|
@@ -4186,25 +4198,25 @@ function oo(e, t, r, o = {}) {
|
|
|
4186
4198
|
};
|
|
4187
4199
|
return v;
|
|
4188
4200
|
}
|
|
4189
|
-
function
|
|
4201
|
+
function so(e, t = !1) {
|
|
4190
4202
|
let r = "http://localhost";
|
|
4191
4203
|
typeof window < "u" && (r = window.location.origin !== "null" ? window.location.origin : window.location.href), oe(r, "No window.location.(origin|href) available to create URL");
|
|
4192
|
-
let o = typeof e == "string" ? e :
|
|
4204
|
+
let o = typeof e == "string" ? e : Xe(e);
|
|
4193
4205
|
return o = o.replace(/ $/, "%20"), !t && o.startsWith("//") && (o = r + o), new URL(o, r);
|
|
4194
4206
|
}
|
|
4195
4207
|
function Br(e, t, r = "/") {
|
|
4196
|
-
return
|
|
4208
|
+
return lo(e, t, r, !1);
|
|
4197
4209
|
}
|
|
4198
|
-
function
|
|
4210
|
+
function lo(e, t, r, o) {
|
|
4199
4211
|
let i = typeof t == "string" ? Le(t) : t, a = xe(i.pathname || "/", r);
|
|
4200
4212
|
if (a == null)
|
|
4201
4213
|
return null;
|
|
4202
4214
|
let l = Yr(e);
|
|
4203
|
-
|
|
4215
|
+
uo(l);
|
|
4204
4216
|
let f = null;
|
|
4205
4217
|
for (let d = 0; f == null && d < l.length; ++d) {
|
|
4206
|
-
let h =
|
|
4207
|
-
f =
|
|
4218
|
+
let h = So(a);
|
|
4219
|
+
f = bo(
|
|
4208
4220
|
l[d],
|
|
4209
4221
|
h,
|
|
4210
4222
|
o
|
|
@@ -4232,7 +4244,7 @@ function Yr(e, t = [], r = [], o = "") {
|
|
|
4232
4244
|
`Index routes must not have child routes. Please remove all child routes from route path "${h}".`
|
|
4233
4245
|
), Yr(a.children, t, w, h)), !(a.path == null && !a.index) && t.push({
|
|
4234
4246
|
path: h,
|
|
4235
|
-
score:
|
|
4247
|
+
score: yo(h, a.index),
|
|
4236
4248
|
routesMeta: w
|
|
4237
4249
|
});
|
|
4238
4250
|
};
|
|
@@ -4259,23 +4271,23 @@ function Vr(e) {
|
|
|
4259
4271
|
(d) => e.startsWith("/") && d === "" ? "/" : d
|
|
4260
4272
|
);
|
|
4261
4273
|
}
|
|
4262
|
-
function
|
|
4274
|
+
function uo(e) {
|
|
4263
4275
|
e.sort(
|
|
4264
|
-
(t, r) => t.score !== r.score ? r.score - t.score :
|
|
4276
|
+
(t, r) => t.score !== r.score ? r.score - t.score : go(
|
|
4265
4277
|
t.routesMeta.map((o) => o.childrenIndex),
|
|
4266
4278
|
r.routesMeta.map((o) => o.childrenIndex)
|
|
4267
4279
|
)
|
|
4268
4280
|
);
|
|
4269
4281
|
}
|
|
4270
|
-
var
|
|
4271
|
-
function
|
|
4282
|
+
var co = /^:[\w-]+$/, fo = 3, po = 2, ho = 1, vo = 10, mo = -2, Or = (e) => e === "*";
|
|
4283
|
+
function yo(e, t) {
|
|
4272
4284
|
let r = e.split("/"), o = r.length;
|
|
4273
|
-
return r.some(Or) && (o +=
|
|
4274
|
-
(i, a) => i + (
|
|
4285
|
+
return r.some(Or) && (o += mo), t && (o += po), r.filter((i) => !Or(i)).reduce(
|
|
4286
|
+
(i, a) => i + (co.test(a) ? fo : a === "" ? ho : vo),
|
|
4275
4287
|
o
|
|
4276
4288
|
);
|
|
4277
4289
|
}
|
|
4278
|
-
function
|
|
4290
|
+
function go(e, t) {
|
|
4279
4291
|
return e.length === t.length && e.slice(0, -1).every((o, i) => o === t[i]) ? (
|
|
4280
4292
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
4281
4293
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -4288,7 +4300,7 @@ function yo(e, t) {
|
|
|
4288
4300
|
0
|
|
4289
4301
|
);
|
|
4290
4302
|
}
|
|
4291
|
-
function
|
|
4303
|
+
function bo(e, t, r = !1) {
|
|
4292
4304
|
let { routesMeta: o } = e, i = {}, a = "/", l = [];
|
|
4293
4305
|
for (let f = 0; f < o.length; ++f) {
|
|
4294
4306
|
let d = o[f], h = f === o.length - 1, w = a === "/" ? t : t.slice(a.length) || "/", R = pt(
|
|
@@ -4308,7 +4320,7 @@ function go(e, t, r = !1) {
|
|
|
4308
4320
|
// TODO: Can this as be avoided?
|
|
4309
4321
|
params: i,
|
|
4310
4322
|
pathname: Se([a, R.pathname]),
|
|
4311
|
-
pathnameBase:
|
|
4323
|
+
pathnameBase: Co(
|
|
4312
4324
|
Se([a, R.pathnameBase])
|
|
4313
4325
|
),
|
|
4314
4326
|
route: E
|
|
@@ -4318,7 +4330,7 @@ function go(e, t, r = !1) {
|
|
|
4318
4330
|
}
|
|
4319
4331
|
function pt(e, t) {
|
|
4320
4332
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
4321
|
-
let [r, o] =
|
|
4333
|
+
let [r, o] = wo(
|
|
4322
4334
|
e.path,
|
|
4323
4335
|
e.caseSensitive,
|
|
4324
4336
|
e.end
|
|
@@ -4342,7 +4354,7 @@ function pt(e, t) {
|
|
|
4342
4354
|
pattern: e
|
|
4343
4355
|
};
|
|
4344
4356
|
}
|
|
4345
|
-
function
|
|
4357
|
+
function wo(e, t = !1, r = !0) {
|
|
4346
4358
|
be(
|
|
4347
4359
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
4348
4360
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
@@ -4353,7 +4365,7 @@ function bo(e, t = !1, r = !0) {
|
|
|
4353
4365
|
);
|
|
4354
4366
|
return e.endsWith("*") ? (o.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), o];
|
|
4355
4367
|
}
|
|
4356
|
-
function
|
|
4368
|
+
function So(e) {
|
|
4357
4369
|
try {
|
|
4358
4370
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
4359
4371
|
} catch (t) {
|
|
@@ -4370,19 +4382,19 @@ function xe(e, t) {
|
|
|
4370
4382
|
let r = t.endsWith("/") ? t.length - 1 : t.length, o = e.charAt(r);
|
|
4371
4383
|
return o && o !== "/" ? null : e.slice(r) || "/";
|
|
4372
4384
|
}
|
|
4373
|
-
function
|
|
4385
|
+
function xo(e, t = "/") {
|
|
4374
4386
|
let {
|
|
4375
4387
|
pathname: r,
|
|
4376
4388
|
search: o = "",
|
|
4377
4389
|
hash: i = ""
|
|
4378
4390
|
} = typeof e == "string" ? Le(e) : e;
|
|
4379
4391
|
return {
|
|
4380
|
-
pathname: r ? r.startsWith("/") ? r :
|
|
4381
|
-
search:
|
|
4382
|
-
hash:
|
|
4392
|
+
pathname: r ? r.startsWith("/") ? r : ko(r, t) : t,
|
|
4393
|
+
search: Po(o),
|
|
4394
|
+
hash: Eo(i)
|
|
4383
4395
|
};
|
|
4384
4396
|
}
|
|
4385
|
-
function
|
|
4397
|
+
function ko(e, t) {
|
|
4386
4398
|
let r = t.replace(/\/+$/, "").split("/");
|
|
4387
4399
|
return e.split("/").forEach((i) => {
|
|
4388
4400
|
i === ".." ? r.length > 1 && r.pop() : i !== "." && r.push(i);
|
|
@@ -4393,13 +4405,13 @@ function jt(e, t, r, o) {
|
|
|
4393
4405
|
o
|
|
4394
4406
|
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
4395
4407
|
}
|
|
4396
|
-
function
|
|
4408
|
+
function Oo(e) {
|
|
4397
4409
|
return e.filter(
|
|
4398
4410
|
(t, r) => r === 0 || t.route.path && t.route.path.length > 0
|
|
4399
4411
|
);
|
|
4400
4412
|
}
|
|
4401
4413
|
function Xr(e) {
|
|
4402
|
-
let t =
|
|
4414
|
+
let t = Oo(e);
|
|
4403
4415
|
return t.map(
|
|
4404
4416
|
(r, o) => o === t.length - 1 ? r.pathname : r.pathnameBase
|
|
4405
4417
|
);
|
|
@@ -4429,11 +4441,11 @@ function Gr(e, t, r, o = !1) {
|
|
|
4429
4441
|
}
|
|
4430
4442
|
f = R >= 0 ? t[R] : "/";
|
|
4431
4443
|
}
|
|
4432
|
-
let d =
|
|
4444
|
+
let d = xo(i, f), h = l && l !== "/" && l.endsWith("/"), w = (a || l === ".") && r.endsWith("/");
|
|
4433
4445
|
return !d.pathname.endsWith("/") && (h || w) && (d.pathname += "/"), d;
|
|
4434
4446
|
}
|
|
4435
|
-
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
4436
|
-
function
|
|
4447
|
+
var Se = (e) => e.join("/").replace(/\/\/+/g, "/"), Co = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Po = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Eo = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
4448
|
+
function Ro(e) {
|
|
4437
4449
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
4438
4450
|
}
|
|
4439
4451
|
var Kr = [
|
|
@@ -4445,11 +4457,11 @@ var Kr = [
|
|
|
4445
4457
|
new Set(
|
|
4446
4458
|
Kr
|
|
4447
4459
|
);
|
|
4448
|
-
var
|
|
4460
|
+
var _o = [
|
|
4449
4461
|
"GET",
|
|
4450
4462
|
...Kr
|
|
4451
4463
|
];
|
|
4452
|
-
new Set(
|
|
4464
|
+
new Set(_o);
|
|
4453
4465
|
var De = _.createContext(null);
|
|
4454
4466
|
De.displayName = "DataRouter";
|
|
4455
4467
|
var bt = _.createContext(null);
|
|
@@ -4458,20 +4470,20 @@ var Jr = _.createContext({
|
|
|
4458
4470
|
isTransitioning: !1
|
|
4459
4471
|
});
|
|
4460
4472
|
Jr.displayName = "ViewTransition";
|
|
4461
|
-
var
|
|
4473
|
+
var To = _.createContext(
|
|
4462
4474
|
/* @__PURE__ */ new Map()
|
|
4463
4475
|
);
|
|
4464
|
-
|
|
4465
|
-
var
|
|
4466
|
-
|
|
4476
|
+
To.displayName = "Fetchers";
|
|
4477
|
+
var jo = _.createContext(null);
|
|
4478
|
+
jo.displayName = "Await";
|
|
4467
4479
|
var we = _.createContext(
|
|
4468
4480
|
null
|
|
4469
4481
|
);
|
|
4470
4482
|
we.displayName = "Navigation";
|
|
4471
|
-
var
|
|
4483
|
+
var Je = _.createContext(
|
|
4472
4484
|
null
|
|
4473
4485
|
);
|
|
4474
|
-
|
|
4486
|
+
Je.displayName = "Location";
|
|
4475
4487
|
var ke = _.createContext({
|
|
4476
4488
|
outlet: null,
|
|
4477
4489
|
matches: [],
|
|
@@ -4480,26 +4492,26 @@ var ke = _.createContext({
|
|
|
4480
4492
|
ke.displayName = "Route";
|
|
4481
4493
|
var qt = _.createContext(null);
|
|
4482
4494
|
qt.displayName = "RouteError";
|
|
4483
|
-
function
|
|
4495
|
+
function Lo(e, { relative: t } = {}) {
|
|
4484
4496
|
oe(
|
|
4485
|
-
|
|
4497
|
+
Ze(),
|
|
4486
4498
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4487
4499
|
// router loaded. We can help them understand how to avoid that.
|
|
4488
4500
|
"useHref() may be used only in the context of a <Router> component."
|
|
4489
4501
|
);
|
|
4490
|
-
let { basename: r, navigator: o } = _.useContext(we), { hash: i, pathname: a, search: l } =
|
|
4502
|
+
let { basename: r, navigator: o } = _.useContext(we), { hash: i, pathname: a, search: l } = Qe(e, { relative: t }), f = a;
|
|
4491
4503
|
return r !== "/" && (f = a === "/" ? r : Se([r, a])), o.createHref({ pathname: f, search: l, hash: i });
|
|
4492
4504
|
}
|
|
4493
|
-
function
|
|
4494
|
-
return _.useContext(
|
|
4505
|
+
function Ze() {
|
|
4506
|
+
return _.useContext(Je) != null;
|
|
4495
4507
|
}
|
|
4496
4508
|
function Ce() {
|
|
4497
4509
|
return oe(
|
|
4498
|
-
|
|
4510
|
+
Ze(),
|
|
4499
4511
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4500
4512
|
// router loaded. We can help them understand how to avoid that.
|
|
4501
4513
|
"useLocation() may be used only in the context of a <Router> component."
|
|
4502
|
-
), _.useContext(
|
|
4514
|
+
), _.useContext(Je).location;
|
|
4503
4515
|
}
|
|
4504
4516
|
var Zr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
4505
4517
|
function Qr(e) {
|
|
@@ -4507,11 +4519,11 @@ function Qr(e) {
|
|
|
4507
4519
|
}
|
|
4508
4520
|
function en() {
|
|
4509
4521
|
let { isDataRoute: e } = _.useContext(ke);
|
|
4510
|
-
return e ?
|
|
4522
|
+
return e ? Bo() : Do();
|
|
4511
4523
|
}
|
|
4512
|
-
function
|
|
4524
|
+
function Do() {
|
|
4513
4525
|
oe(
|
|
4514
|
-
|
|
4526
|
+
Ze(),
|
|
4515
4527
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4516
4528
|
// router loaded. We can help them understand how to avoid that.
|
|
4517
4529
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
@@ -4548,7 +4560,7 @@ function Lo() {
|
|
|
4548
4560
|
);
|
|
4549
4561
|
}
|
|
4550
4562
|
_.createContext(null);
|
|
4551
|
-
function
|
|
4563
|
+
function Qe(e, { relative: t } = {}) {
|
|
4552
4564
|
let { matches: r } = _.useContext(ke), { pathname: o } = Ce(), i = JSON.stringify(Xr(r));
|
|
4553
4565
|
return _.useMemo(
|
|
4554
4566
|
() => Gr(
|
|
@@ -4560,12 +4572,12 @@ function Ze(e, { relative: t } = {}) {
|
|
|
4560
4572
|
[e, i, o, t]
|
|
4561
4573
|
);
|
|
4562
4574
|
}
|
|
4563
|
-
function
|
|
4575
|
+
function Mo(e, t) {
|
|
4564
4576
|
return tn(e, t);
|
|
4565
4577
|
}
|
|
4566
4578
|
function tn(e, t, r, o) {
|
|
4567
4579
|
oe(
|
|
4568
|
-
|
|
4580
|
+
Ze(),
|
|
4569
4581
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
4570
4582
|
// router loaded. We can help them understand how to avoid that.
|
|
4571
4583
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
@@ -4603,7 +4615,7 @@ Please change the parent <Route path="${O}"> to <Route path="${O === "/" ? "*" :
|
|
|
4603
4615
|
v == null || v[v.length - 1].route.element !== void 0 || v[v.length - 1].route.Component !== void 0 || v[v.length - 1].route.lazy !== void 0,
|
|
4604
4616
|
`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
4605
4617
|
);
|
|
4606
|
-
let I =
|
|
4618
|
+
let I = Ho(
|
|
4607
4619
|
v && v.map(
|
|
4608
4620
|
(O) => Object.assign({}, O, {
|
|
4609
4621
|
params: Object.assign({}, f, O.params),
|
|
@@ -4624,7 +4636,7 @@ Please change the parent <Route path="${O}"> to <Route path="${O === "/" ? "*" :
|
|
|
4624
4636
|
o
|
|
4625
4637
|
);
|
|
4626
4638
|
return t && I ? /* @__PURE__ */ _.createElement(
|
|
4627
|
-
|
|
4639
|
+
Je.Provider,
|
|
4628
4640
|
{
|
|
4629
4641
|
value: {
|
|
4630
4642
|
location: {
|
|
@@ -4642,14 +4654,14 @@ Please change the parent <Route path="${O}"> to <Route path="${O === "/" ? "*" :
|
|
|
4642
4654
|
I
|
|
4643
4655
|
) : I;
|
|
4644
4656
|
}
|
|
4645
|
-
function
|
|
4646
|
-
let e =
|
|
4657
|
+
function Io() {
|
|
4658
|
+
let e = Uo(), t = Ro(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: o }, a = { padding: "2px 4px", backgroundColor: o }, l = null;
|
|
4647
4659
|
return console.error(
|
|
4648
4660
|
"Error handled by React Router default ErrorBoundary:",
|
|
4649
4661
|
e
|
|
4650
4662
|
), l = /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ _.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ _.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ _.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ _.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ _.createElement("pre", { style: i }, r) : null, l);
|
|
4651
4663
|
}
|
|
4652
|
-
var
|
|
4664
|
+
var Ao = /* @__PURE__ */ _.createElement(Io, null), zo = class extends _.Component {
|
|
4653
4665
|
constructor(e) {
|
|
4654
4666
|
super(e), this.state = {
|
|
4655
4667
|
location: e.location,
|
|
@@ -4688,11 +4700,11 @@ var Io = /* @__PURE__ */ _.createElement(Mo, null), Ao = class extends _.Compone
|
|
|
4688
4700
|
)) : this.props.children;
|
|
4689
4701
|
}
|
|
4690
4702
|
};
|
|
4691
|
-
function
|
|
4703
|
+
function No({ routeContext: e, match: t, children: r }) {
|
|
4692
4704
|
let o = _.useContext(De);
|
|
4693
4705
|
return o && o.static && o.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (o.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ _.createElement(ke.Provider, { value: e }, r);
|
|
4694
4706
|
}
|
|
4695
|
-
function
|
|
4707
|
+
function Ho(e, t = [], r = null, o = null) {
|
|
4696
4708
|
if (e == null) {
|
|
4697
4709
|
if (!r)
|
|
4698
4710
|
return null;
|
|
@@ -4732,7 +4744,7 @@ function No(e, t = [], r = null, o = null) {
|
|
|
4732
4744
|
}
|
|
4733
4745
|
return i.reduceRight((d, h, w) => {
|
|
4734
4746
|
let R, E = !1, z = null, C = null;
|
|
4735
|
-
r && (R = a && h.route.id ? a[h.route.id] : void 0, z = h.route.errorElement ||
|
|
4747
|
+
r && (R = a && h.route.id ? a[h.route.id] : void 0, z = h.route.errorElement || Ao, l && (f < 0 && w === 0 ? (rn(
|
|
4736
4748
|
"route-fallback",
|
|
4737
4749
|
!1,
|
|
4738
4750
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
@@ -4740,7 +4752,7 @@ function No(e, t = [], r = null, o = null) {
|
|
|
4740
4752
|
let v = t.concat(i.slice(0, w + 1)), I = () => {
|
|
4741
4753
|
let O;
|
|
4742
4754
|
return R ? O = z : E ? O = C : h.route.Component ? O = /* @__PURE__ */ _.createElement(h.route.Component, null) : h.route.element ? O = h.route.element : O = d, /* @__PURE__ */ _.createElement(
|
|
4743
|
-
|
|
4755
|
+
No,
|
|
4744
4756
|
{
|
|
4745
4757
|
match: h,
|
|
4746
4758
|
routeContext: {
|
|
@@ -4753,7 +4765,7 @@ function No(e, t = [], r = null, o = null) {
|
|
|
4753
4765
|
);
|
|
4754
4766
|
};
|
|
4755
4767
|
return r && (h.route.ErrorBoundary || h.route.errorElement || w === 0) ? /* @__PURE__ */ _.createElement(
|
|
4756
|
-
|
|
4768
|
+
zo,
|
|
4757
4769
|
{
|
|
4758
4770
|
location: r.location,
|
|
4759
4771
|
revalidation: r.revalidation,
|
|
@@ -4768,33 +4780,33 @@ function No(e, t = [], r = null, o = null) {
|
|
|
4768
4780
|
function Ut(e) {
|
|
4769
4781
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
4770
4782
|
}
|
|
4771
|
-
function
|
|
4783
|
+
function $o(e) {
|
|
4772
4784
|
let t = _.useContext(De);
|
|
4773
4785
|
return oe(t, Ut(e)), t;
|
|
4774
4786
|
}
|
|
4775
|
-
function
|
|
4787
|
+
function Fo(e) {
|
|
4776
4788
|
let t = _.useContext(bt);
|
|
4777
4789
|
return oe(t, Ut(e)), t;
|
|
4778
4790
|
}
|
|
4779
|
-
function
|
|
4791
|
+
function Wo(e) {
|
|
4780
4792
|
let t = _.useContext(ke);
|
|
4781
4793
|
return oe(t, Ut(e)), t;
|
|
4782
4794
|
}
|
|
4783
4795
|
function Bt(e) {
|
|
4784
|
-
let t =
|
|
4796
|
+
let t = Wo(e), r = t.matches[t.matches.length - 1];
|
|
4785
4797
|
return oe(
|
|
4786
4798
|
r.route.id,
|
|
4787
4799
|
`${e} can only be used on routes that contain a unique "id"`
|
|
4788
4800
|
), r.route.id;
|
|
4789
4801
|
}
|
|
4790
|
-
function
|
|
4802
|
+
function qo() {
|
|
4791
4803
|
return Bt(
|
|
4792
4804
|
"useRouteId"
|
|
4793
4805
|
/* UseRouteId */
|
|
4794
4806
|
);
|
|
4795
4807
|
}
|
|
4796
|
-
function
|
|
4797
|
-
let e = _.useContext(qt), t =
|
|
4808
|
+
function Uo() {
|
|
4809
|
+
let e = _.useContext(qt), t = Fo(
|
|
4798
4810
|
"useRouteError"
|
|
4799
4811
|
/* UseRouteError */
|
|
4800
4812
|
), r = Bt(
|
|
@@ -4803,8 +4815,8 @@ function qo() {
|
|
|
4803
4815
|
);
|
|
4804
4816
|
return e !== void 0 ? e : t.errors?.[r];
|
|
4805
4817
|
}
|
|
4806
|
-
function
|
|
4807
|
-
let { router: e } =
|
|
4818
|
+
function Bo() {
|
|
4819
|
+
let { router: e } = $o(
|
|
4808
4820
|
"useNavigate"
|
|
4809
4821
|
/* UseNavigateStable */
|
|
4810
4822
|
), t = Bt(
|
|
@@ -4824,8 +4836,8 @@ var Cr = {};
|
|
|
4824
4836
|
function rn(e, t, r) {
|
|
4825
4837
|
!t && !Cr[e] && (Cr[e] = !0, be(!1, r));
|
|
4826
4838
|
}
|
|
4827
|
-
_.memo(
|
|
4828
|
-
function
|
|
4839
|
+
_.memo(Yo);
|
|
4840
|
+
function Yo({
|
|
4829
4841
|
routes: e,
|
|
4830
4842
|
future: t,
|
|
4831
4843
|
state: r
|
|
@@ -4838,7 +4850,7 @@ function nn(e) {
|
|
|
4838
4850
|
"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."
|
|
4839
4851
|
);
|
|
4840
4852
|
}
|
|
4841
|
-
function
|
|
4853
|
+
function Vo({
|
|
4842
4854
|
basename: e = "/",
|
|
4843
4855
|
children: t = null,
|
|
4844
4856
|
location: r,
|
|
@@ -4847,7 +4859,7 @@ function Yo({
|
|
|
4847
4859
|
static: a = !1
|
|
4848
4860
|
}) {
|
|
4849
4861
|
oe(
|
|
4850
|
-
!
|
|
4862
|
+
!Ze(),
|
|
4851
4863
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
4852
4864
|
);
|
|
4853
4865
|
let l = e.replace(/^\/*/, "/"), f = _.useMemo(
|
|
@@ -4882,13 +4894,13 @@ function Yo({
|
|
|
4882
4894
|
return be(
|
|
4883
4895
|
z != null,
|
|
4884
4896
|
`<Router basename="${l}"> is not able to match the URL "${d}${h}${w}" because it does not start with the basename, so the <Router> won't render anything.`
|
|
4885
|
-
), z == null ? null : /* @__PURE__ */ _.createElement(we.Provider, { value: f }, /* @__PURE__ */ _.createElement(
|
|
4897
|
+
), z == null ? null : /* @__PURE__ */ _.createElement(we.Provider, { value: f }, /* @__PURE__ */ _.createElement(Je.Provider, { children: t, value: z }));
|
|
4886
4898
|
}
|
|
4887
|
-
function
|
|
4899
|
+
function Xo({
|
|
4888
4900
|
children: e,
|
|
4889
4901
|
location: t
|
|
4890
4902
|
}) {
|
|
4891
|
-
return
|
|
4903
|
+
return Mo(Nt(e), t);
|
|
4892
4904
|
}
|
|
4893
4905
|
function Nt(e, t = []) {
|
|
4894
4906
|
let r = [];
|
|
@@ -4934,65 +4946,65 @@ function Nt(e, t = []) {
|
|
|
4934
4946
|
)), r.push(l);
|
|
4935
4947
|
}), r;
|
|
4936
4948
|
}
|
|
4937
|
-
var
|
|
4949
|
+
var lt = "get", ut = "application/x-www-form-urlencoded";
|
|
4938
4950
|
function wt(e) {
|
|
4939
4951
|
return e != null && typeof e.tagName == "string";
|
|
4940
4952
|
}
|
|
4941
|
-
function
|
|
4953
|
+
function Go(e) {
|
|
4942
4954
|
return wt(e) && e.tagName.toLowerCase() === "button";
|
|
4943
4955
|
}
|
|
4944
|
-
function
|
|
4956
|
+
function Ko(e) {
|
|
4945
4957
|
return wt(e) && e.tagName.toLowerCase() === "form";
|
|
4946
4958
|
}
|
|
4947
|
-
function
|
|
4959
|
+
function Jo(e) {
|
|
4948
4960
|
return wt(e) && e.tagName.toLowerCase() === "input";
|
|
4949
4961
|
}
|
|
4950
|
-
function
|
|
4962
|
+
function Zo(e) {
|
|
4951
4963
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
4952
4964
|
}
|
|
4953
|
-
function
|
|
4965
|
+
function Qo(e, t) {
|
|
4954
4966
|
return e.button === 0 && // Ignore everything but left clicks
|
|
4955
4967
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
4956
|
-
!
|
|
4968
|
+
!Zo(e);
|
|
4957
4969
|
}
|
|
4958
|
-
var
|
|
4959
|
-
function
|
|
4960
|
-
if (
|
|
4970
|
+
var it = null;
|
|
4971
|
+
function ea() {
|
|
4972
|
+
if (it === null)
|
|
4961
4973
|
try {
|
|
4962
4974
|
new FormData(
|
|
4963
4975
|
document.createElement("form"),
|
|
4964
4976
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
4965
4977
|
0
|
|
4966
|
-
),
|
|
4978
|
+
), it = !1;
|
|
4967
4979
|
} catch {
|
|
4968
|
-
|
|
4980
|
+
it = !0;
|
|
4969
4981
|
}
|
|
4970
|
-
return
|
|
4982
|
+
return it;
|
|
4971
4983
|
}
|
|
4972
|
-
var
|
|
4984
|
+
var ta = /* @__PURE__ */ new Set([
|
|
4973
4985
|
"application/x-www-form-urlencoded",
|
|
4974
4986
|
"multipart/form-data",
|
|
4975
4987
|
"text/plain"
|
|
4976
4988
|
]);
|
|
4977
4989
|
function Lt(e) {
|
|
4978
|
-
return e != null && !
|
|
4990
|
+
return e != null && !ta.has(e) ? (be(
|
|
4979
4991
|
!1,
|
|
4980
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
4992
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ut}"`
|
|
4981
4993
|
), null) : e;
|
|
4982
4994
|
}
|
|
4983
|
-
function
|
|
4995
|
+
function ra(e, t) {
|
|
4984
4996
|
let r, o, i, a, l;
|
|
4985
|
-
if (
|
|
4997
|
+
if (Ko(e)) {
|
|
4986
4998
|
let f = e.getAttribute("action");
|
|
4987
|
-
o = f ? xe(f, t) : null, r = e.getAttribute("method") ||
|
|
4988
|
-
} else if (
|
|
4999
|
+
o = f ? xe(f, t) : null, r = e.getAttribute("method") || lt, i = Lt(e.getAttribute("enctype")) || ut, a = new FormData(e);
|
|
5000
|
+
} else if (Go(e) || Jo(e) && (e.type === "submit" || e.type === "image")) {
|
|
4989
5001
|
let f = e.form;
|
|
4990
5002
|
if (f == null)
|
|
4991
5003
|
throw new Error(
|
|
4992
5004
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
4993
5005
|
);
|
|
4994
5006
|
let d = e.getAttribute("formaction") || f.getAttribute("action");
|
|
4995
|
-
if (o = d ? xe(d, t) : null, r = e.getAttribute("formmethod") || f.getAttribute("method") ||
|
|
5007
|
+
if (o = d ? xe(d, t) : null, r = e.getAttribute("formmethod") || f.getAttribute("method") || lt, i = Lt(e.getAttribute("formenctype")) || Lt(f.getAttribute("enctype")) || ut, a = new FormData(f, e), !ea()) {
|
|
4996
5008
|
let { name: h, type: w, value: R } = e;
|
|
4997
5009
|
if (w === "image") {
|
|
4998
5010
|
let E = h ? `${h}.` : "";
|
|
@@ -5004,7 +5016,7 @@ function ta(e, t) {
|
|
|
5004
5016
|
throw new Error(
|
|
5005
5017
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
5006
5018
|
);
|
|
5007
|
-
r =
|
|
5019
|
+
r = lt, o = null, i = ut, l = e;
|
|
5008
5020
|
}
|
|
5009
5021
|
return a && i === "text/plain" && (l = a, a = void 0), { action: o, method: r.toLowerCase(), encType: i, formData: a, body: l };
|
|
5010
5022
|
}
|
|
@@ -5012,7 +5024,7 @@ function Yt(e, t) {
|
|
|
5012
5024
|
if (e === !1 || e === null || typeof e > "u")
|
|
5013
5025
|
throw new Error(t);
|
|
5014
5026
|
}
|
|
5015
|
-
async function
|
|
5027
|
+
async function na(e, t) {
|
|
5016
5028
|
if (e.id in t)
|
|
5017
5029
|
return t[e.id];
|
|
5018
5030
|
try {
|
|
@@ -5029,22 +5041,22 @@ async function ra(e, t) {
|
|
|
5029
5041
|
});
|
|
5030
5042
|
}
|
|
5031
5043
|
}
|
|
5032
|
-
function
|
|
5044
|
+
function ia(e) {
|
|
5033
5045
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
5034
5046
|
}
|
|
5035
|
-
async function
|
|
5047
|
+
async function oa(e, t, r) {
|
|
5036
5048
|
let o = await Promise.all(
|
|
5037
5049
|
e.map(async (i) => {
|
|
5038
5050
|
let a = t.routes[i.route.id];
|
|
5039
5051
|
if (a) {
|
|
5040
|
-
let l = await
|
|
5052
|
+
let l = await na(a, r);
|
|
5041
5053
|
return l.links ? l.links() : [];
|
|
5042
5054
|
}
|
|
5043
5055
|
return [];
|
|
5044
5056
|
})
|
|
5045
5057
|
);
|
|
5046
|
-
return
|
|
5047
|
-
o.flat(1).filter(
|
|
5058
|
+
return ua(
|
|
5059
|
+
o.flat(1).filter(ia).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
|
|
5048
5060
|
(i) => i.rel === "stylesheet" ? { ...i, rel: "prefetch", as: "style" } : { ...i, rel: "prefetch" }
|
|
5049
5061
|
)
|
|
5050
5062
|
);
|
|
@@ -5081,8 +5093,8 @@ function Pr(e, t, r, o, i, a) {
|
|
|
5081
5093
|
return !0;
|
|
5082
5094
|
}) : [];
|
|
5083
5095
|
}
|
|
5084
|
-
function
|
|
5085
|
-
return
|
|
5096
|
+
function aa(e, t, { includeHydrateFallback: r } = {}) {
|
|
5097
|
+
return sa(
|
|
5086
5098
|
e.map((o) => {
|
|
5087
5099
|
let i = t.routes[o.route.id];
|
|
5088
5100
|
if (!i) return [];
|
|
@@ -5091,25 +5103,25 @@ function oa(e, t, { includeHydrateFallback: r } = {}) {
|
|
|
5091
5103
|
}).flat(1)
|
|
5092
5104
|
);
|
|
5093
5105
|
}
|
|
5094
|
-
function
|
|
5106
|
+
function sa(e) {
|
|
5095
5107
|
return [...new Set(e)];
|
|
5096
5108
|
}
|
|
5097
|
-
function
|
|
5109
|
+
function la(e) {
|
|
5098
5110
|
let t = {}, r = Object.keys(e).sort();
|
|
5099
5111
|
for (let o of r)
|
|
5100
5112
|
t[o] = e[o];
|
|
5101
5113
|
return t;
|
|
5102
5114
|
}
|
|
5103
|
-
function
|
|
5115
|
+
function ua(e, t) {
|
|
5104
5116
|
let r = /* @__PURE__ */ new Set();
|
|
5105
5117
|
return new Set(t), e.reduce((o, i) => {
|
|
5106
|
-
let a = JSON.stringify(
|
|
5118
|
+
let a = JSON.stringify(la(i));
|
|
5107
5119
|
return r.has(a) || (r.add(a), o.push({ key: a, link: i })), o;
|
|
5108
5120
|
}, []);
|
|
5109
5121
|
}
|
|
5110
5122
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
5111
|
-
var
|
|
5112
|
-
function
|
|
5123
|
+
var ca = /* @__PURE__ */ new Set([100, 101, 204, 205]);
|
|
5124
|
+
function fa(e, t) {
|
|
5113
5125
|
let r = typeof e == "string" ? new URL(
|
|
5114
5126
|
e,
|
|
5115
5127
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
@@ -5125,7 +5137,7 @@ function on() {
|
|
|
5125
5137
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
5126
5138
|
), e;
|
|
5127
5139
|
}
|
|
5128
|
-
function
|
|
5140
|
+
function da() {
|
|
5129
5141
|
let e = _.useContext(bt);
|
|
5130
5142
|
return Yt(
|
|
5131
5143
|
e,
|
|
@@ -5141,7 +5153,7 @@ function an() {
|
|
|
5141
5153
|
"You must render this element inside a <HydratedRouter> element"
|
|
5142
5154
|
), e;
|
|
5143
5155
|
}
|
|
5144
|
-
function
|
|
5156
|
+
function pa(e, t) {
|
|
5145
5157
|
let r = _.useContext(Vt), [o, i] = _.useState(!1), [a, l] = _.useState(!1), { onFocus: f, onBlur: d, onMouseEnter: h, onMouseLeave: w, onTouchStart: R } = t, E = _.useRef(null);
|
|
5146
5158
|
_.useEffect(() => {
|
|
5147
5159
|
if (e === "render" && l(!0), e === "viewport") {
|
|
@@ -5186,7 +5198,7 @@ function qe(e, t) {
|
|
|
5186
5198
|
e && e(r), r.defaultPrevented || t(r);
|
|
5187
5199
|
};
|
|
5188
5200
|
}
|
|
5189
|
-
function
|
|
5201
|
+
function ha({
|
|
5190
5202
|
page: e,
|
|
5191
5203
|
...t
|
|
5192
5204
|
}) {
|
|
@@ -5194,13 +5206,13 @@ function pa({
|
|
|
5194
5206
|
() => Br(r.routes, e, r.basename),
|
|
5195
5207
|
[r.routes, e, r.basename]
|
|
5196
5208
|
);
|
|
5197
|
-
return o ? /* @__PURE__ */ _.createElement(
|
|
5209
|
+
return o ? /* @__PURE__ */ _.createElement(ma, { page: e, matches: o, ...t }) : null;
|
|
5198
5210
|
}
|
|
5199
|
-
function
|
|
5211
|
+
function va(e) {
|
|
5200
5212
|
let { manifest: t, routeModules: r } = an(), [o, i] = _.useState([]);
|
|
5201
5213
|
return _.useEffect(() => {
|
|
5202
5214
|
let a = !1;
|
|
5203
|
-
return
|
|
5215
|
+
return oa(e, t, r).then(
|
|
5204
5216
|
(l) => {
|
|
5205
5217
|
a || i(l);
|
|
5206
5218
|
}
|
|
@@ -5209,12 +5221,12 @@ function ha(e) {
|
|
|
5209
5221
|
};
|
|
5210
5222
|
}, [e, t, r]), o;
|
|
5211
5223
|
}
|
|
5212
|
-
function
|
|
5224
|
+
function ma({
|
|
5213
5225
|
page: e,
|
|
5214
5226
|
matches: t,
|
|
5215
5227
|
...r
|
|
5216
5228
|
}) {
|
|
5217
|
-
let o = Ce(), { manifest: i, routeModules: a } = an(), { basename: l } = on(), { loaderData: f, matches: d } =
|
|
5229
|
+
let o = Ce(), { manifest: i, routeModules: a } = an(), { basename: l } = on(), { loaderData: f, matches: d } = da(), h = _.useMemo(
|
|
5218
5230
|
() => Pr(
|
|
5219
5231
|
e,
|
|
5220
5232
|
t,
|
|
@@ -5243,7 +5255,7 @@ function va({
|
|
|
5243
5255
|
!H || !H.hasLoader || (!h.some((q) => q.route.id === O.route.id) && O.route.id in f && a[O.route.id]?.shouldRevalidate || H.hasClientLoader ? v = !0 : C.add(O.route.id));
|
|
5244
5256
|
}), C.size === 0)
|
|
5245
5257
|
return [];
|
|
5246
|
-
let I =
|
|
5258
|
+
let I = fa(e, l);
|
|
5247
5259
|
return v && C.size > 0 && I.searchParams.set(
|
|
5248
5260
|
"_routes",
|
|
5249
5261
|
t.filter((O) => C.has(O.route.id)).map((O) => O.route.id).join(",")
|
|
@@ -5258,16 +5270,16 @@ function va({
|
|
|
5258
5270
|
e,
|
|
5259
5271
|
a
|
|
5260
5272
|
]), E = _.useMemo(
|
|
5261
|
-
() =>
|
|
5273
|
+
() => aa(w, i),
|
|
5262
5274
|
[w, i]
|
|
5263
|
-
), z =
|
|
5275
|
+
), z = va(w);
|
|
5264
5276
|
return /* @__PURE__ */ _.createElement(_.Fragment, null, R.map((C) => /* @__PURE__ */ _.createElement("link", { key: C, rel: "prefetch", as: "fetch", href: C, ...r })), E.map((C) => /* @__PURE__ */ _.createElement("link", { key: C, rel: "modulepreload", href: C, ...r })), z.map(({ key: C, link: v }) => (
|
|
5265
5277
|
// these don't spread `linkProps` because they are full link descriptors
|
|
5266
5278
|
// already with their own props
|
|
5267
5279
|
/* @__PURE__ */ _.createElement("link", { key: C, ...v })
|
|
5268
5280
|
)));
|
|
5269
5281
|
}
|
|
5270
|
-
function
|
|
5282
|
+
function ya(...e) {
|
|
5271
5283
|
return (t) => {
|
|
5272
5284
|
e.forEach((r) => {
|
|
5273
5285
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
@@ -5279,13 +5291,13 @@ try {
|
|
|
5279
5291
|
sn && (window.__reactRouterVersion = "7.6.3");
|
|
5280
5292
|
} catch {
|
|
5281
5293
|
}
|
|
5282
|
-
function
|
|
5294
|
+
function ga({
|
|
5283
5295
|
basename: e,
|
|
5284
5296
|
children: t,
|
|
5285
5297
|
window: r
|
|
5286
5298
|
}) {
|
|
5287
5299
|
let o = _.useRef();
|
|
5288
|
-
o.current == null && (o.current =
|
|
5300
|
+
o.current == null && (o.current = io({ window: r, v5Compat: !0 }));
|
|
5289
5301
|
let i = o.current, [a, l] = _.useState({
|
|
5290
5302
|
action: i.action,
|
|
5291
5303
|
location: i.location
|
|
@@ -5296,7 +5308,7 @@ function ya({
|
|
|
5296
5308
|
[l]
|
|
5297
5309
|
);
|
|
5298
5310
|
return _.useLayoutEffect(() => i.listen(f), [i, f]), /* @__PURE__ */ _.createElement(
|
|
5299
|
-
|
|
5311
|
+
Vo,
|
|
5300
5312
|
{
|
|
5301
5313
|
basename: e,
|
|
5302
5314
|
children: t,
|
|
@@ -5332,10 +5344,10 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
|
|
|
5332
5344
|
`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5333
5345
|
);
|
|
5334
5346
|
}
|
|
5335
|
-
let H =
|
|
5347
|
+
let H = Lo(h, { relative: i }), [q, B, p] = pa(
|
|
5336
5348
|
o,
|
|
5337
5349
|
E
|
|
5338
|
-
), y =
|
|
5350
|
+
), y = xa(h, {
|
|
5339
5351
|
replace: l,
|
|
5340
5352
|
state: f,
|
|
5341
5353
|
target: d,
|
|
@@ -5355,17 +5367,17 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
|
|
|
5355
5367
|
...p,
|
|
5356
5368
|
href: I || H,
|
|
5357
5369
|
onClick: O || a ? t : g,
|
|
5358
|
-
ref:
|
|
5370
|
+
ref: ya(z, B),
|
|
5359
5371
|
target: d,
|
|
5360
5372
|
"data-discover": !v && r === "render" ? "true" : void 0
|
|
5361
5373
|
}
|
|
5362
5374
|
)
|
|
5363
5375
|
);
|
|
5364
|
-
return q && !v ? /* @__PURE__ */ _.createElement(_.Fragment, null, k, /* @__PURE__ */ _.createElement(
|
|
5376
|
+
return q && !v ? /* @__PURE__ */ _.createElement(_.Fragment, null, k, /* @__PURE__ */ _.createElement(ha, { page: H })) : k;
|
|
5365
5377
|
}
|
|
5366
5378
|
);
|
|
5367
5379
|
un.displayName = "Link";
|
|
5368
|
-
var
|
|
5380
|
+
var ba = _.forwardRef(
|
|
5369
5381
|
function({
|
|
5370
5382
|
"aria-current": t = "page",
|
|
5371
5383
|
caseSensitive: r = !1,
|
|
@@ -5377,9 +5389,9 @@ var ga = _.forwardRef(
|
|
|
5377
5389
|
children: d,
|
|
5378
5390
|
...h
|
|
5379
5391
|
}, w) {
|
|
5380
|
-
let R =
|
|
5392
|
+
let R = Qe(l, { relative: h.relative }), E = Ce(), z = _.useContext(bt), { navigator: C, basename: v } = _.useContext(we), I = z != null && // Conditional usage is OK here because the usage of a data router is static
|
|
5381
5393
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5382
|
-
|
|
5394
|
+
Ea(R) && f === !0, O = C.encodeLocation ? C.encodeLocation(R).pathname : R.pathname, H = E.pathname, q = z && z.navigation && z.navigation.location ? z.navigation.location.pathname : null;
|
|
5383
5395
|
r || (H = H.toLowerCase(), q = q ? q.toLowerCase() : null, O = O.toLowerCase()), q && v && (q = xe(q, v) || q);
|
|
5384
5396
|
const B = O !== "/" && O.endsWith("/") ? O.length - 1 : O.length;
|
|
5385
5397
|
let p = H === O || !i && H.startsWith(O) && H.charAt(B) === "/", y = q != null && (q === O || !i && q.startsWith(O) && q.charAt(O.length) === "/"), g = {
|
|
@@ -5409,8 +5421,8 @@ var ga = _.forwardRef(
|
|
|
5409
5421
|
);
|
|
5410
5422
|
}
|
|
5411
5423
|
);
|
|
5412
|
-
|
|
5413
|
-
var
|
|
5424
|
+
ba.displayName = "NavLink";
|
|
5425
|
+
var wa = _.forwardRef(
|
|
5414
5426
|
({
|
|
5415
5427
|
discover: e = "render",
|
|
5416
5428
|
fetcherKey: t,
|
|
@@ -5418,7 +5430,7 @@ var ba = _.forwardRef(
|
|
|
5418
5430
|
reloadDocument: o,
|
|
5419
5431
|
replace: i,
|
|
5420
5432
|
state: a,
|
|
5421
|
-
method: l =
|
|
5433
|
+
method: l = lt,
|
|
5422
5434
|
action: f,
|
|
5423
5435
|
onSubmit: d,
|
|
5424
5436
|
relative: h,
|
|
@@ -5426,7 +5438,7 @@ var ba = _.forwardRef(
|
|
|
5426
5438
|
viewTransition: R,
|
|
5427
5439
|
...E
|
|
5428
5440
|
}, z) => {
|
|
5429
|
-
let C =
|
|
5441
|
+
let C = Ca(), v = Pa(f, { relative: h }), I = l.toLowerCase() === "get" ? "get" : "post", O = typeof f == "string" && ln.test(f), H = (q) => {
|
|
5430
5442
|
if (d && d(q), q.defaultPrevented) return;
|
|
5431
5443
|
q.preventDefault();
|
|
5432
5444
|
let B = q.nativeEvent.submitter, p = B?.getAttribute("formmethod") || l;
|
|
@@ -5454,15 +5466,15 @@ var ba = _.forwardRef(
|
|
|
5454
5466
|
);
|
|
5455
5467
|
}
|
|
5456
5468
|
);
|
|
5457
|
-
|
|
5458
|
-
function
|
|
5469
|
+
wa.displayName = "Form";
|
|
5470
|
+
function Sa(e) {
|
|
5459
5471
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
5460
5472
|
}
|
|
5461
5473
|
function cn(e) {
|
|
5462
5474
|
let t = _.useContext(De);
|
|
5463
|
-
return oe(t,
|
|
5475
|
+
return oe(t, Sa(e)), t;
|
|
5464
5476
|
}
|
|
5465
|
-
function
|
|
5477
|
+
function xa(e, {
|
|
5466
5478
|
target: t,
|
|
5467
5479
|
replace: r,
|
|
5468
5480
|
state: o,
|
|
@@ -5470,12 +5482,12 @@ function Sa(e, {
|
|
|
5470
5482
|
relative: a,
|
|
5471
5483
|
viewTransition: l
|
|
5472
5484
|
} = {}) {
|
|
5473
|
-
let f = en(), d = Ce(), h =
|
|
5485
|
+
let f = en(), d = Ce(), h = Qe(e, { relative: a });
|
|
5474
5486
|
return _.useCallback(
|
|
5475
5487
|
(w) => {
|
|
5476
|
-
if (
|
|
5488
|
+
if (Qo(w, t)) {
|
|
5477
5489
|
w.preventDefault();
|
|
5478
|
-
let R = r !== void 0 ? r :
|
|
5490
|
+
let R = r !== void 0 ? r : Xe(d) === Xe(h);
|
|
5479
5491
|
f(e, {
|
|
5480
5492
|
replace: R,
|
|
5481
5493
|
state: o,
|
|
@@ -5499,20 +5511,20 @@ function Sa(e, {
|
|
|
5499
5511
|
]
|
|
5500
5512
|
);
|
|
5501
5513
|
}
|
|
5502
|
-
var
|
|
5503
|
-
function
|
|
5514
|
+
var ka = 0, Oa = () => `__${String(++ka)}__`;
|
|
5515
|
+
function Ca() {
|
|
5504
5516
|
let { router: e } = cn(
|
|
5505
5517
|
"useSubmit"
|
|
5506
5518
|
/* UseSubmit */
|
|
5507
|
-
), { basename: t } = _.useContext(we), r =
|
|
5519
|
+
), { basename: t } = _.useContext(we), r = qo();
|
|
5508
5520
|
return _.useCallback(
|
|
5509
5521
|
async (o, i = {}) => {
|
|
5510
|
-
let { action: a, method: l, encType: f, formData: d, body: h } =
|
|
5522
|
+
let { action: a, method: l, encType: f, formData: d, body: h } = ra(
|
|
5511
5523
|
o,
|
|
5512
5524
|
t
|
|
5513
5525
|
);
|
|
5514
5526
|
if (i.navigate === !1) {
|
|
5515
|
-
let w = i.fetcherKey ||
|
|
5527
|
+
let w = i.fetcherKey || Oa();
|
|
5516
5528
|
await e.fetch(w, r, i.action || a, {
|
|
5517
5529
|
preventScrollReset: i.preventScrollReset,
|
|
5518
5530
|
formData: d,
|
|
@@ -5538,10 +5550,10 @@ function Oa() {
|
|
|
5538
5550
|
[e, t, r]
|
|
5539
5551
|
);
|
|
5540
5552
|
}
|
|
5541
|
-
function
|
|
5553
|
+
function Pa(e, { relative: t } = {}) {
|
|
5542
5554
|
let { basename: r } = _.useContext(we), o = _.useContext(ke);
|
|
5543
5555
|
oe(o, "useFormAction must be used inside a RouteContext");
|
|
5544
|
-
let [i] = o.matches.slice(-1), a = { ...
|
|
5556
|
+
let [i] = o.matches.slice(-1), a = { ...Qe(e || ".", { relative: t }) }, l = Ce();
|
|
5545
5557
|
if (e == null) {
|
|
5546
5558
|
a.search = l.search;
|
|
5547
5559
|
let f = new URLSearchParams(a.search), d = f.getAll("index");
|
|
@@ -5551,9 +5563,9 @@ function Ca(e, { relative: t } = {}) {
|
|
|
5551
5563
|
a.search = w ? `?${w}` : "";
|
|
5552
5564
|
}
|
|
5553
5565
|
}
|
|
5554
|
-
return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : Se([r, a.pathname])),
|
|
5566
|
+
return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : Se([r, a.pathname])), Xe(a);
|
|
5555
5567
|
}
|
|
5556
|
-
function
|
|
5568
|
+
function Ea(e, t = {}) {
|
|
5557
5569
|
let r = _.useContext(Jr);
|
|
5558
5570
|
oe(
|
|
5559
5571
|
r != null,
|
|
@@ -5562,14 +5574,14 @@ function Pa(e, t = {}) {
|
|
|
5562
5574
|
let { basename: o } = cn(
|
|
5563
5575
|
"useViewTransitionState"
|
|
5564
5576
|
/* useViewTransitionState */
|
|
5565
|
-
), i =
|
|
5577
|
+
), i = Qe(e, { relative: t.relative });
|
|
5566
5578
|
if (!r.isTransitioning)
|
|
5567
5579
|
return !1;
|
|
5568
5580
|
let a = xe(r.currentLocation.pathname, o) || r.currentLocation.pathname, l = xe(r.nextLocation.pathname, o) || r.nextLocation.pathname;
|
|
5569
5581
|
return pt(i.pathname, l) != null || pt(i.pathname, a) != null;
|
|
5570
5582
|
}
|
|
5571
5583
|
[
|
|
5572
|
-
...
|
|
5584
|
+
...ca
|
|
5573
5585
|
];
|
|
5574
5586
|
const fn = U.createContext({
|
|
5575
5587
|
history: [],
|
|
@@ -5578,7 +5590,7 @@ const fn = U.createContext({
|
|
|
5578
5590
|
popFromHistory: () => "",
|
|
5579
5591
|
replaceHistory: () => {
|
|
5580
5592
|
}
|
|
5581
|
-
}),
|
|
5593
|
+
}), Ha = ({
|
|
5582
5594
|
routes: e,
|
|
5583
5595
|
children: t
|
|
5584
5596
|
}) => {
|
|
@@ -5604,13 +5616,13 @@ const fn = U.createContext({
|
|
|
5604
5616
|
popFromHistory: f,
|
|
5605
5617
|
replaceHistory: d
|
|
5606
5618
|
},
|
|
5607
|
-
children: /* @__PURE__ */ G.jsxs(
|
|
5619
|
+
children: /* @__PURE__ */ G.jsxs(ga, { children: [
|
|
5608
5620
|
t,
|
|
5609
|
-
/* @__PURE__ */ G.jsx(
|
|
5621
|
+
/* @__PURE__ */ G.jsx(Xo, { children: h })
|
|
5610
5622
|
] })
|
|
5611
5623
|
}
|
|
5612
5624
|
);
|
|
5613
|
-
},
|
|
5625
|
+
}, $a = () => {
|
|
5614
5626
|
const e = en(), t = Ce(), r = Ht(fn), o = U.useCallback(
|
|
5615
5627
|
(l, f = !0) => {
|
|
5616
5628
|
l !== t.pathname && e(l, { replace: !0 }), f && r.addToHistory(l);
|
|
@@ -5644,7 +5656,7 @@ const fn = U.createContext({
|
|
|
5644
5656
|
hideItem: () => {
|
|
5645
5657
|
}
|
|
5646
5658
|
}
|
|
5647
|
-
),
|
|
5659
|
+
), Fa = ({ children: e }) => {
|
|
5648
5660
|
const t = U.useRef([]), [r, o] = U.useState([]), i = U.useCallback((d) => {
|
|
5649
5661
|
t.current = d, o(d);
|
|
5650
5662
|
}, []), a = U.useCallback((d) => t.current.some((h) => h === d), []), l = U.useCallback(
|
|
@@ -5684,7 +5696,7 @@ const fn = U.createContext({
|
|
|
5684
5696
|
showItem: r,
|
|
5685
5697
|
hideItem: o
|
|
5686
5698
|
};
|
|
5687
|
-
},
|
|
5699
|
+
}, Ra = ({
|
|
5688
5700
|
id: e,
|
|
5689
5701
|
onCloseDrawer: t,
|
|
5690
5702
|
drawerCloseOffset: r = 15
|
|
@@ -5696,7 +5708,7 @@ const fn = U.createContext({
|
|
|
5696
5708
|
}, E = (C) => {
|
|
5697
5709
|
a(C), w(0);
|
|
5698
5710
|
};
|
|
5699
|
-
return
|
|
5711
|
+
return Qi({
|
|
5700
5712
|
ref: d,
|
|
5701
5713
|
onDrag: (C) => {
|
|
5702
5714
|
a(C);
|
|
@@ -5712,14 +5724,14 @@ const fn = U.createContext({
|
|
|
5712
5724
|
drawerBottomDistance: h,
|
|
5713
5725
|
handleRef: d
|
|
5714
5726
|
};
|
|
5715
|
-
},
|
|
5727
|
+
}, Wa = (e) => {
|
|
5716
5728
|
const { children: t, backgroundStyles: r, contentStyles: o, handle: i } = e, {
|
|
5717
5729
|
isVisible: a,
|
|
5718
5730
|
drawerParentRef: l,
|
|
5719
5731
|
drawerRef: f,
|
|
5720
5732
|
handleRef: d,
|
|
5721
5733
|
drawerBottomDistance: h
|
|
5722
|
-
} =
|
|
5734
|
+
} = Ra(e);
|
|
5723
5735
|
return /* @__PURE__ */ G.jsx(G.Fragment, { children: a && /* @__PURE__ */ G.jsx(
|
|
5724
5736
|
"div",
|
|
5725
5737
|
{
|
|
@@ -5788,7 +5800,7 @@ const fn = U.createContext({
|
|
|
5788
5800
|
)
|
|
5789
5801
|
}
|
|
5790
5802
|
) });
|
|
5791
|
-
},
|
|
5803
|
+
}, _a = ({ onSubmit: e, fields: t }) => {
|
|
5792
5804
|
const r = U.useRef(null), o = U.useCallback(
|
|
5793
5805
|
(l) => {
|
|
5794
5806
|
var f = Object.keys(l.currentTarget.elements), d = Object.values(l.currentTarget.elements), h = [];
|
|
@@ -5820,8 +5832,8 @@ const fn = U.createContext({
|
|
|
5820
5832
|
},
|
|
5821
5833
|
handleFormSubmission: i
|
|
5822
5834
|
};
|
|
5823
|
-
},
|
|
5824
|
-
const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } =
|
|
5835
|
+
}, qa = (e) => {
|
|
5836
|
+
const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } = _a(e), f = U.useCallback(() => t.map((d) => ({ ...d.content, key: d.name })), [t]);
|
|
5825
5837
|
return /* @__PURE__ */ G.jsxs(
|
|
5826
5838
|
"form",
|
|
5827
5839
|
{
|
|
@@ -5854,7 +5866,7 @@ const fn = U.createContext({
|
|
|
5854
5866
|
]
|
|
5855
5867
|
}
|
|
5856
5868
|
);
|
|
5857
|
-
},
|
|
5869
|
+
}, Ua = ({ src: e, alt: t = "", onClick: r, styles: o }) => /* @__PURE__ */ G.jsx(
|
|
5858
5870
|
"img",
|
|
5859
5871
|
{
|
|
5860
5872
|
src: e,
|
|
@@ -5871,7 +5883,7 @@ const fn = U.createContext({
|
|
|
5871
5883
|
},
|
|
5872
5884
|
onClick: () => r?.()
|
|
5873
5885
|
}
|
|
5874
|
-
),
|
|
5886
|
+
), Ta = Ve.div`
|
|
5875
5887
|
display: flex;
|
|
5876
5888
|
flex-direction: column;
|
|
5877
5889
|
font-family: inherit;
|
|
@@ -5889,7 +5901,7 @@ const fn = U.createContext({
|
|
|
5889
5901
|
input:-webkit-autofill {
|
|
5890
5902
|
background-color: #00000000;
|
|
5891
5903
|
}
|
|
5892
|
-
`,
|
|
5904
|
+
`, Ba = ({
|
|
5893
5905
|
name: e,
|
|
5894
5906
|
label: t,
|
|
5895
5907
|
leftIcon: r,
|
|
@@ -5909,7 +5921,7 @@ const fn = U.createContext({
|
|
|
5909
5921
|
w?.(v.currentTarget.value);
|
|
5910
5922
|
};
|
|
5911
5923
|
return /* @__PURE__ */ G.jsxs(
|
|
5912
|
-
|
|
5924
|
+
Ta,
|
|
5913
5925
|
{
|
|
5914
5926
|
style: {
|
|
5915
5927
|
width: "100%",
|
|
@@ -5977,7 +5989,7 @@ const fn = U.createContext({
|
|
|
5977
5989
|
]
|
|
5978
5990
|
}
|
|
5979
5991
|
);
|
|
5980
|
-
},
|
|
5992
|
+
}, Ya = ({ id: e, styles: t, children: r }) => {
|
|
5981
5993
|
const { isItemVisible: o } = St();
|
|
5982
5994
|
return /* @__PURE__ */ G.jsx(G.Fragment, { children: o(e) && /* @__PURE__ */ G.jsx(
|
|
5983
5995
|
"div",
|
|
@@ -5998,7 +6010,7 @@ const fn = U.createContext({
|
|
|
5998
6010
|
children: r
|
|
5999
6011
|
}
|
|
6000
6012
|
) });
|
|
6001
|
-
},
|
|
6013
|
+
}, Va = ({
|
|
6002
6014
|
id: e,
|
|
6003
6015
|
children: t,
|
|
6004
6016
|
backgroundStyles: r,
|
|
@@ -6056,7 +6068,7 @@ const fn = U.createContext({
|
|
|
6056
6068
|
)
|
|
6057
6069
|
}
|
|
6058
6070
|
) });
|
|
6059
|
-
},
|
|
6071
|
+
}, ja = (e) => {
|
|
6060
6072
|
const t = U.useRef(null), r = U.useRef(null), [o, i] = U.useState(24), [a, l] = U.useState(24), f = U.useCallback(() => {
|
|
6061
6073
|
t.current && i(t.current.clientHeight);
|
|
6062
6074
|
}, [t, t.current]), d = U.useCallback(() => {
|
|
@@ -6080,14 +6092,14 @@ const fn = U.createContext({
|
|
|
6080
6092
|
ref: r
|
|
6081
6093
|
}
|
|
6082
6094
|
};
|
|
6083
|
-
},
|
|
6095
|
+
}, Xa = (e) => {
|
|
6084
6096
|
const {
|
|
6085
6097
|
containerStyles: t,
|
|
6086
6098
|
pageStyles: r,
|
|
6087
6099
|
children: o,
|
|
6088
6100
|
allowScroll: i = !0,
|
|
6089
6101
|
floatingContent: a
|
|
6090
|
-
} = e, { footer: l, header: f } =
|
|
6102
|
+
} = e, { footer: l, header: f } = ja(e);
|
|
6091
6103
|
return /* @__PURE__ */ G.jsxs(
|
|
6092
6104
|
"div",
|
|
6093
6105
|
{
|
|
@@ -6186,7 +6198,7 @@ const fn = U.createContext({
|
|
|
6186
6198
|
]
|
|
6187
6199
|
}
|
|
6188
6200
|
);
|
|
6189
|
-
},
|
|
6201
|
+
}, Ga = ({
|
|
6190
6202
|
src: e,
|
|
6191
6203
|
width: t = "22",
|
|
6192
6204
|
height: r = "28",
|
|
@@ -6224,7 +6236,7 @@ const fn = U.createContext({
|
|
|
6224
6236
|
}
|
|
6225
6237
|
)
|
|
6226
6238
|
}
|
|
6227
|
-
),
|
|
6239
|
+
), Ka = ({
|
|
6228
6240
|
id: e,
|
|
6229
6241
|
children: t,
|
|
6230
6242
|
styles: r,
|
|
@@ -6261,7 +6273,7 @@ const fn = U.createContext({
|
|
|
6261
6273
|
children: t
|
|
6262
6274
|
}
|
|
6263
6275
|
) });
|
|
6264
|
-
},
|
|
6276
|
+
}, Ja = ({
|
|
6265
6277
|
overflowEllipsis: e,
|
|
6266
6278
|
children: t,
|
|
6267
6279
|
styles: r
|
|
@@ -6283,7 +6295,7 @@ const fn = U.createContext({
|
|
|
6283
6295
|
children: t
|
|
6284
6296
|
}
|
|
6285
6297
|
);
|
|
6286
|
-
class
|
|
6298
|
+
class Za {
|
|
6287
6299
|
static isScrollEnabled = () => document.body.style.overflow === "unset" || document.body.style.overflow === "auto";
|
|
6288
6300
|
static disableScroll = () => {
|
|
6289
6301
|
document.body.style.overflow = "hidden";
|
|
@@ -6292,36 +6304,36 @@ class Ja {
|
|
|
6292
6304
|
document.body.style.overflow = "unset";
|
|
6293
6305
|
};
|
|
6294
6306
|
}
|
|
6295
|
-
class
|
|
6307
|
+
class Qa {
|
|
6296
6308
|
static getPascalCase = (t) => t.replace(/\w+/g, function(r) {
|
|
6297
6309
|
return r[0].toUpperCase() + r.slice(1).toLowerCase();
|
|
6298
6310
|
});
|
|
6299
6311
|
static isEqual = (t, r, o = !0) => o ? t === r : t.toUpperCase() === r.toUpperCase();
|
|
6300
6312
|
}
|
|
6301
6313
|
export {
|
|
6302
|
-
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
|
|
6313
|
-
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6314
|
+
Da as Button,
|
|
6315
|
+
Ma as Carousel,
|
|
6316
|
+
Wa as Drawer,
|
|
6317
|
+
Fa as FeedbackProvider,
|
|
6318
|
+
qa as Form,
|
|
6319
|
+
Ua as Image,
|
|
6320
|
+
Ba as InputField,
|
|
6321
|
+
Ya as Loader,
|
|
6322
|
+
Va as Modal,
|
|
6323
|
+
Ha as NavigationProvider,
|
|
6324
|
+
Xa as PageLayout,
|
|
6325
|
+
Za as ScrollHelper,
|
|
6326
|
+
Ga as SvgImage,
|
|
6327
|
+
Qa as TextHelper,
|
|
6328
|
+
Ka as Toast,
|
|
6329
|
+
Ja as Typography,
|
|
6330
|
+
eo as defaultBreakpoints,
|
|
6331
|
+
Ia as useDidMount,
|
|
6332
|
+
Qi as useDrag,
|
|
6321
6333
|
St as useFeedback,
|
|
6322
|
-
|
|
6323
|
-
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6334
|
+
Aa as useFetch,
|
|
6335
|
+
$a as useNavigation,
|
|
6336
|
+
Zi as usePointer,
|
|
6337
|
+
za as useResponsive,
|
|
6338
|
+
Na as useTranslations
|
|
6327
6339
|
};
|