@billgangcom/theme-lib 1.72.4 → 1.72.6
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/builder.cjs.js +4 -4
- package/dist/builder.es.js +770 -790
- package/dist/{index-Dg_2v0bC.js → index-CVvVQkzN.js} +160 -160
- package/dist/{index-C3l0gDlm.cjs → index-D2QNOQ7N.cjs} +11 -11
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +2 -2
- package/package.json +1 -1
|
@@ -422,7 +422,7 @@ function Hk() {
|
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var
|
|
425
|
+
var cr = function(C, R, L, H, X, re, oe) {
|
|
426
426
|
var fe = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
@@ -466,7 +466,7 @@ function Hk() {
|
|
|
466
466
|
var Ce = typeof C == "function" ? C.displayName || C.name || "Unknown" : C;
|
|
467
467
|
fe && Tn(oe, Ce), xe && jn(oe, Ce);
|
|
468
468
|
}
|
|
469
|
-
return
|
|
469
|
+
return cr(C, fe, xe, X, H, Ke.current, oe);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var Ln = x.ReactCurrentOwner, On = x.ReactDebugCurrentFrame;
|
|
@@ -610,15 +610,15 @@ Check the top-level render call using <` + L + ">.");
|
|
|
610
610
|
if (je.call(R, "key")) {
|
|
611
611
|
var jt = z(C), He = Object.keys(R).filter(function(Fn) {
|
|
612
612
|
return Fn !== "key";
|
|
613
|
-
}),
|
|
614
|
-
if (!E[jt +
|
|
615
|
-
var
|
|
613
|
+
}), ur = He.length > 0 ? "{key: someKey, " + He.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
614
|
+
if (!E[jt + ur]) {
|
|
615
|
+
var dr = He.length > 0 ? "{" + He.join(": ..., ") + ": ...}" : "{}";
|
|
616
616
|
v(`A props object containing a "key" prop is being spread into JSX:
|
|
617
617
|
let props = %s;
|
|
618
618
|
<%s {...props} />
|
|
619
619
|
React keys must be passed directly to JSX without using spread:
|
|
620
620
|
let props = %s;
|
|
621
|
-
<%s key={someKey} {...props} />`,
|
|
621
|
+
<%s key={someKey} {...props} />`, ur, jt, dr, jt), E[jt + ur] = !0;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
return C === r ? Qe(Ce) : Rn(Ce), Ce;
|
|
@@ -682,7 +682,7 @@ function $k(e) {
|
|
|
682
682
|
);
|
|
683
683
|
}
|
|
684
684
|
function n(r, o) {
|
|
685
|
-
return typeof o == "string" ? o :
|
|
685
|
+
return typeof o == "string" ? o : tr(o);
|
|
686
686
|
}
|
|
687
687
|
return Zk(t, n, null, e);
|
|
688
688
|
}
|
|
@@ -714,7 +714,7 @@ function po(e, t, n, r) {
|
|
|
714
714
|
pathname: typeof e == "string" ? e : e.pathname,
|
|
715
715
|
search: "",
|
|
716
716
|
hash: ""
|
|
717
|
-
}, typeof t == "string" ?
|
|
717
|
+
}, typeof t == "string" ? or(t) : t, {
|
|
718
718
|
state: n,
|
|
719
719
|
// TODO: This could be cleaned up. push/replace should probably just take
|
|
720
720
|
// full Locations now and avoid the need to run through this flow at all
|
|
@@ -723,7 +723,7 @@ function po(e, t, n, r) {
|
|
|
723
723
|
key: t && t.key || r || Uk()
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
|
-
function
|
|
726
|
+
function tr(e) {
|
|
727
727
|
let {
|
|
728
728
|
pathname: t = "/",
|
|
729
729
|
search: n = "",
|
|
@@ -731,7 +731,7 @@ function er(e) {
|
|
|
731
731
|
} = e;
|
|
732
732
|
return n && n !== "?" && (t += n.charAt(0) === "?" ? n : "?" + n), r && r !== "#" && (t += r.charAt(0) === "#" ? r : "#" + r), t;
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function or(e) {
|
|
735
735
|
let t = {};
|
|
736
736
|
if (e) {
|
|
737
737
|
let n = e.indexOf("#");
|
|
@@ -794,7 +794,7 @@ function Zk(e, t, n, r) {
|
|
|
794
794
|
});
|
|
795
795
|
}
|
|
796
796
|
function y(g) {
|
|
797
|
-
let x = o.location.origin !== "null" ? o.location.origin : o.location.href, v = typeof g == "string" ? g :
|
|
797
|
+
let x = o.location.origin !== "null" ? o.location.origin : o.location.href, v = typeof g == "string" ? g : tr(g);
|
|
798
798
|
return v = v.replace(/ $/, "%20"), me(x, "No window.location.(origin|href) available to create URL for href: " + v), new URL(v, x);
|
|
799
799
|
}
|
|
800
800
|
let h = {
|
|
@@ -856,11 +856,11 @@ function ya(e, t, n, r) {
|
|
|
856
856
|
}
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function pr(e, t, n) {
|
|
860
860
|
return n === void 0 && (n = "/"), la(e, t, n, !1);
|
|
861
861
|
}
|
|
862
862
|
function la(e, t, n, r) {
|
|
863
|
-
let o = typeof t == "string" ?
|
|
863
|
+
let o = typeof t == "string" ? or(t) : t, a = yn(o.pathname || "/", n);
|
|
864
864
|
if (a == null)
|
|
865
865
|
return null;
|
|
866
866
|
let i = wc(e);
|
|
@@ -1031,7 +1031,7 @@ function sP(e, t) {
|
|
|
1031
1031
|
pathname: n,
|
|
1032
1032
|
search: r = "",
|
|
1033
1033
|
hash: o = ""
|
|
1034
|
-
} = typeof e == "string" ?
|
|
1034
|
+
} = typeof e == "string" ? or(e) : e;
|
|
1035
1035
|
return {
|
|
1036
1036
|
pathname: n ? n.startsWith("/") ? n : iP(n, t) : t,
|
|
1037
1037
|
search: cP(r),
|
|
@@ -1057,7 +1057,7 @@ function ii(e, t) {
|
|
|
1057
1057
|
function li(e, t, n, r) {
|
|
1058
1058
|
r === void 0 && (r = !1);
|
|
1059
1059
|
let o;
|
|
1060
|
-
typeof e == "string" ? o =
|
|
1060
|
+
typeof e == "string" ? o = or(e) : (o = ze({}, e), me(!o.pathname || !o.pathname.includes("?"), ts("?", "pathname", "search", o)), me(!o.pathname || !o.pathname.includes("#"), ts("#", "pathname", "hash", o)), me(!o.search || !o.search.includes("#"), ts("#", "search", "hash", o)));
|
|
1061
1061
|
let a = e === "" || o.pathname === "", i = a ? "/" : o.pathname, l;
|
|
1062
1062
|
if (i == null)
|
|
1063
1063
|
l = n;
|
|
@@ -1129,7 +1129,7 @@ function yP(e) {
|
|
|
1129
1129
|
v7_prependBasename: !1,
|
|
1130
1130
|
v7_relativeSplatPath: !1,
|
|
1131
1131
|
v7_skipActionErrorRevalidation: !1
|
|
1132
|
-
}, e.future), p = null, m = /* @__PURE__ */ new Set(), y = null, h = null, g = null, x = e.hydrationData != null, v =
|
|
1132
|
+
}, e.future), p = null, m = /* @__PURE__ */ new Set(), y = null, h = null, g = null, x = e.hydrationData != null, v = pr(i, e.history.location, c), w = !1, S = null;
|
|
1133
1133
|
if (v == null && !d) {
|
|
1134
1134
|
let E = qt(404, {
|
|
1135
1135
|
pathname: e.history.location.pathname
|
|
@@ -1362,7 +1362,7 @@ function yP(e) {
|
|
|
1362
1362
|
let U = l || i, Q = P && P.overrideNavigation, se = P != null && P.initialHydration && b.matches && b.matches.length > 0 && !w ? (
|
|
1363
1363
|
// `matchRoutes()` has already been called if we're in here via `router.initialize()`
|
|
1364
1364
|
b.matches
|
|
1365
|
-
) :
|
|
1365
|
+
) : pr(U, j, c), C = (P && P.flushSync) === !0;
|
|
1366
1366
|
if (se && b.initialized && !ie && RP(b.location, j) && !(P && P.submission && gn(P.submission.formMethod))) {
|
|
1367
1367
|
_e(j, {
|
|
1368
1368
|
matches: se
|
|
@@ -1392,7 +1392,7 @@ function yP(e) {
|
|
|
1392
1392
|
A = new AbortController();
|
|
1393
1393
|
let L = jr(e.history, j, A.signal, P && P.submission), H;
|
|
1394
1394
|
if (P && P.pendingError)
|
|
1395
|
-
H = [
|
|
1395
|
+
H = [mr(se).route.id, {
|
|
1396
1396
|
type: Ie.error,
|
|
1397
1397
|
error: P.pendingError
|
|
1398
1398
|
}];
|
|
@@ -1445,7 +1445,7 @@ function yP(e) {
|
|
|
1445
1445
|
shortCircuited: !0
|
|
1446
1446
|
};
|
|
1447
1447
|
if (H.type === "error") {
|
|
1448
|
-
let X =
|
|
1448
|
+
let X = mr(H.partialMatches).route.id;
|
|
1449
1449
|
return {
|
|
1450
1450
|
matches: H.partialMatches,
|
|
1451
1451
|
pendingActionResult: [X, {
|
|
@@ -1493,12 +1493,12 @@ function yP(e) {
|
|
|
1493
1493
|
shortCircuited: !0
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
|
-
if (
|
|
1496
|
+
if (Qn(R))
|
|
1497
1497
|
throw qt(400, {
|
|
1498
1498
|
type: "defer-action"
|
|
1499
1499
|
});
|
|
1500
1500
|
if (nn(R)) {
|
|
1501
|
-
let H =
|
|
1501
|
+
let H = mr(U, L.route.id);
|
|
1502
1502
|
return (se && se.replace) !== !0 && (T = ct.Push), {
|
|
1503
1503
|
matches: U,
|
|
1504
1504
|
pendingActionResult: [H.route.id, R]
|
|
@@ -1528,7 +1528,7 @@ function yP(e) {
|
|
|
1528
1528
|
shortCircuited: !0
|
|
1529
1529
|
};
|
|
1530
1530
|
if (ke.type === "error") {
|
|
1531
|
-
let Ye =
|
|
1531
|
+
let Ye = mr(ke.partialMatches).route.id;
|
|
1532
1532
|
return {
|
|
1533
1533
|
matches: ke.partialMatches,
|
|
1534
1534
|
loaderData: {},
|
|
@@ -1610,19 +1610,19 @@ function yP(e) {
|
|
|
1610
1610
|
shortCircuited: !0
|
|
1611
1611
|
};
|
|
1612
1612
|
let {
|
|
1613
|
-
loaderData:
|
|
1614
|
-
errors:
|
|
1613
|
+
loaderData: ur,
|
|
1614
|
+
errors: dr
|
|
1615
1615
|
} = Ji(b, P, ln, X, Ce, jt, K);
|
|
1616
1616
|
K.forEach((ke, Ye) => {
|
|
1617
1617
|
ke.subscribe((Er) => {
|
|
1618
1618
|
(Er || ke.done) && K.delete(Ye);
|
|
1619
1619
|
});
|
|
1620
|
-
}), f.v7_partialHydration && L && b.errors && (
|
|
1621
|
-
let Fn = jn(), Oo =
|
|
1620
|
+
}), f.v7_partialHydration && L && b.errors && (dr = ze({}, b.errors, dr));
|
|
1621
|
+
let Fn = jn(), Oo = cr($), Bo = Fn || Oo || Ce.length > 0;
|
|
1622
1622
|
return ze({
|
|
1623
1623
|
matches: P,
|
|
1624
|
-
loaderData:
|
|
1625
|
-
errors:
|
|
1624
|
+
loaderData: ur,
|
|
1625
|
+
errors: dr
|
|
1626
1626
|
}, Bo ? {
|
|
1627
1627
|
fetchers: new Map(b.fetchers)
|
|
1628
1628
|
} : {});
|
|
@@ -1645,7 +1645,7 @@ function yP(e) {
|
|
|
1645
1645
|
if (r)
|
|
1646
1646
|
throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");
|
|
1647
1647
|
it(E);
|
|
1648
|
-
let Q = (U && U.flushSync) === !0, se = l || i, C = ks(b.location, b.matches, c, f.v7_prependBasename, P, f.v7_relativeSplatPath, j, U == null ? void 0 : U.relative), R =
|
|
1648
|
+
let Q = (U && U.flushSync) === !0, se = l || i, C = ks(b.location, b.matches, c, f.v7_prependBasename, P, f.v7_relativeSplatPath, j, U == null ? void 0 : U.relative), R = pr(se, C, c), L = Xe(R, se, C);
|
|
1649
1649
|
if (L.active && L.matches && (R = L.matches), !R) {
|
|
1650
1650
|
Je(E, j, qt(404, {
|
|
1651
1651
|
pathname: C
|
|
@@ -1744,17 +1744,17 @@ function yP(e) {
|
|
|
1744
1744
|
return;
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
|
-
if (
|
|
1747
|
+
if (Qn(he))
|
|
1748
1748
|
throw qt(400, {
|
|
1749
1749
|
type: "defer-action"
|
|
1750
1750
|
});
|
|
1751
|
-
let Ce = b.navigation.location || b.location, ft = jr(e.history, Ce, re.signal), ln = l || i, jt = b.navigation.state !== "idle" ?
|
|
1751
|
+
let Ce = b.navigation.location || b.location, ft = jr(e.history, Ce, re.signal), ln = l || i, jt = b.navigation.state !== "idle" ? pr(ln, b.navigation.location, c) : b.matches;
|
|
1752
1752
|
me(jt, "Didn't find any matches after fetcher action");
|
|
1753
1753
|
let He = ++be;
|
|
1754
1754
|
G.set(E, He);
|
|
1755
|
-
let
|
|
1756
|
-
b.fetchers.set(E,
|
|
1757
|
-
let [
|
|
1755
|
+
let ur = Qr(L, he.data);
|
|
1756
|
+
b.fetchers.set(E, ur);
|
|
1757
|
+
let [dr, Fn] = zi(e.history, b, jt, L, Ce, !1, f.v7_skipActionErrorRevalidation, ie, de, pe, Y, ne, te, ln, c, [U.route.id, he]);
|
|
1758
1758
|
Fn.filter((lt) => lt.key !== E).forEach((lt) => {
|
|
1759
1759
|
let Tr = lt.key, Bi = b.fetchers.get(Tr), ld = Qr(void 0, Bi ? Bi.data : void 0);
|
|
1760
1760
|
b.fetchers.set(Tr, ld), it(Tr), lt.controller && ve.set(Tr, lt.controller);
|
|
@@ -1766,7 +1766,7 @@ function yP(e) {
|
|
|
1766
1766
|
let {
|
|
1767
1767
|
loaderResults: Bo,
|
|
1768
1768
|
fetcherResults: ke
|
|
1769
|
-
} = await At(b, jt,
|
|
1769
|
+
} = await At(b, jt, dr, Fn, ft);
|
|
1770
1770
|
if (re.signal.aborted)
|
|
1771
1771
|
return;
|
|
1772
1772
|
re.signal.removeEventListener("abort", Oo), G.delete(E), ve.delete(E), Fn.forEach((lt) => ve.delete(lt.key));
|
|
@@ -1787,7 +1787,7 @@ function yP(e) {
|
|
|
1787
1787
|
let lt = Kn(he.data);
|
|
1788
1788
|
b.fetchers.set(E, lt);
|
|
1789
1789
|
}
|
|
1790
|
-
|
|
1790
|
+
cr(He), b.navigation.state === "loading" && He > $ ? (me(T, "Expected pending action"), A && A.abort(), _e(b.navigation.location, {
|
|
1791
1791
|
matches: jt,
|
|
1792
1792
|
loaderData: Er,
|
|
1793
1793
|
errors: Gr,
|
|
@@ -1826,7 +1826,7 @@ function yP(e) {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
ve.set(E, X);
|
|
1828
1828
|
let oe = be, xe = (await dt("loader", b, re, [U], Q, E))[U.route.id];
|
|
1829
|
-
if (
|
|
1829
|
+
if (Qn(xe) && (xe = await ui(xe, re.signal, !0) || xe), ve.get(E) === X && ve.delete(E), !re.signal.aborted) {
|
|
1830
1830
|
if (Y.has(E)) {
|
|
1831
1831
|
st(E, Kn(void 0));
|
|
1832
1832
|
return;
|
|
@@ -1845,7 +1845,7 @@ function yP(e) {
|
|
|
1845
1845
|
Je(E, j, xe.error);
|
|
1846
1846
|
return;
|
|
1847
1847
|
}
|
|
1848
|
-
me(!
|
|
1848
|
+
me(!Qn(xe), "Unhandled fetcher deferred data"), st(E, Kn(xe.data));
|
|
1849
1849
|
}
|
|
1850
1850
|
}
|
|
1851
1851
|
async function Ge(E, j, P, U) {
|
|
@@ -1964,7 +1964,7 @@ function yP(e) {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
function Je(E, j, P, U) {
|
|
1966
1966
|
U === void 0 && (U = {});
|
|
1967
|
-
let Q =
|
|
1967
|
+
let Q = mr(b.matches, j);
|
|
1968
1968
|
Et(E), V({
|
|
1969
1969
|
errors: {
|
|
1970
1970
|
[Q.route.id]: P
|
|
@@ -2005,7 +2005,7 @@ function yP(e) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
return Tn(E), j;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function cr(E) {
|
|
2009
2009
|
let j = [];
|
|
2010
2010
|
for (let [P, U] of G)
|
|
2011
2011
|
if (U < E) {
|
|
@@ -2144,7 +2144,7 @@ function yP(e) {
|
|
|
2144
2144
|
return {
|
|
2145
2145
|
type: "aborted"
|
|
2146
2146
|
};
|
|
2147
|
-
let L =
|
|
2147
|
+
let L = pr(C, j, c);
|
|
2148
2148
|
if (L)
|
|
2149
2149
|
return {
|
|
2150
2150
|
type: "success",
|
|
@@ -2231,7 +2231,7 @@ function ks(e, t, n, r, o, a, i, l) {
|
|
|
2231
2231
|
d.search = y ? "?" + y : "";
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
return r && n !== "/" && (d.pathname = d.pathname === "/" ? n : Dn([n, d.pathname])),
|
|
2234
|
+
return r && n !== "/" && (d.pathname = d.pathname === "/" ? n : Dn([n, d.pathname])), tr(d);
|
|
2235
2235
|
}
|
|
2236
2236
|
function Zi(e, t, n, r) {
|
|
2237
2237
|
if (!r || !bP(r))
|
|
@@ -2324,9 +2324,9 @@ function Zi(e, t, n, r) {
|
|
|
2324
2324
|
path: n,
|
|
2325
2325
|
submission: d
|
|
2326
2326
|
};
|
|
2327
|
-
let f =
|
|
2327
|
+
let f = or(n);
|
|
2328
2328
|
return t && f.search && di(f.search) && c.append("index", ""), f.search = "?" + c, {
|
|
2329
|
-
path:
|
|
2329
|
+
path: tr(f),
|
|
2330
2330
|
submission: d
|
|
2331
2331
|
};
|
|
2332
2332
|
}
|
|
@@ -2369,7 +2369,7 @@ function zi(e, t, n, r, o, a, i, l, c, u, d, f, p, m, y, h) {
|
|
|
2369
2369
|
return f.forEach((T, I) => {
|
|
2370
2370
|
if (a || !n.some((F) => F.route.id === T.routeId) || d.has(I))
|
|
2371
2371
|
return;
|
|
2372
|
-
let A =
|
|
2372
|
+
let A = pr(m, T.path, y);
|
|
2373
2373
|
if (!A) {
|
|
2374
2374
|
b.push({
|
|
2375
2375
|
key: I,
|
|
@@ -2702,12 +2702,12 @@ function jP(e, t, n, r, o) {
|
|
|
2702
2702
|
let y = m.error;
|
|
2703
2703
|
d !== void 0 && (y = d, d = void 0), i = i || {};
|
|
2704
2704
|
{
|
|
2705
|
-
let h =
|
|
2705
|
+
let h = mr(e, p);
|
|
2706
2706
|
i[h.route.id] == null && (i[h.route.id] = y);
|
|
2707
2707
|
}
|
|
2708
2708
|
a[p] = void 0, c || (c = !0, l = mo(m.error) ? m.error.status : 500), m.headers && (u[p] = m.headers);
|
|
2709
2709
|
} else
|
|
2710
|
-
|
|
2710
|
+
Qn(m) ? (r.set(p, m.deferredData), a[p] = m.deferredData.data, m.statusCode != null && m.statusCode !== 200 && !c && (l = m.statusCode), m.headers && (u[p] = m.headers)) : (a[p] = m.data, m.statusCode && m.statusCode !== 200 && !c && (l = m.statusCode), m.headers && (u[p] = m.headers));
|
|
2711
2711
|
}), d !== void 0 && n && (i = {
|
|
2712
2712
|
[n[0]]: d
|
|
2713
2713
|
}, a[n[0]] = void 0), {
|
|
@@ -2730,13 +2730,13 @@ function Ji(e, t, n, r, o, a, i) {
|
|
|
2730
2730
|
} = u, m = a[d];
|
|
2731
2731
|
if (me(m, "Did not find corresponding fetcher result"), !(p && p.signal.aborted))
|
|
2732
2732
|
if (nn(m)) {
|
|
2733
|
-
let y =
|
|
2733
|
+
let y = mr(e.matches, f == null ? void 0 : f.route.id);
|
|
2734
2734
|
c && c[y.route.id] || (c = ze({}, c, {
|
|
2735
2735
|
[y.route.id]: m.error
|
|
2736
2736
|
})), e.fetchers.delete(d);
|
|
2737
2737
|
} else if (vr(m))
|
|
2738
2738
|
me(!1, "Unhandled fetcher revalidation redirect");
|
|
2739
|
-
else if (
|
|
2739
|
+
else if (Qn(m))
|
|
2740
2740
|
me(!1, "Unhandled fetcher deferred data");
|
|
2741
2741
|
else {
|
|
2742
2742
|
let y = Kn(m.data);
|
|
@@ -2766,7 +2766,7 @@ function Qi(e) {
|
|
|
2766
2766
|
}
|
|
2767
2767
|
} : {};
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2769
|
+
function mr(e, t) {
|
|
2770
2770
|
return (t ? e.slice(0, e.findIndex((r) => r.route.id === t) + 1) : [...e]).reverse().find((r) => r.route.hasErrorBoundary === !0) || e[0];
|
|
2771
2771
|
}
|
|
2772
2772
|
function el(e) {
|
|
@@ -2805,8 +2805,8 @@ function Vo(e) {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
}
|
|
2807
2807
|
function kc(e) {
|
|
2808
|
-
let t = typeof e == "string" ?
|
|
2809
|
-
return
|
|
2808
|
+
let t = typeof e == "string" ? or(e) : e;
|
|
2809
|
+
return tr(ze({}, t, {
|
|
2810
2810
|
hash: ""
|
|
2811
2811
|
}));
|
|
2812
2812
|
}
|
|
@@ -2816,7 +2816,7 @@ function RP(e, t) {
|
|
|
2816
2816
|
function kP(e) {
|
|
2817
2817
|
return Pc(e.result) && pP.has(e.result.status);
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function Qn(e) {
|
|
2820
2820
|
return e.type === Ie.deferred;
|
|
2821
2821
|
}
|
|
2822
2822
|
function nn(e) {
|
|
@@ -2848,7 +2848,7 @@ async function AP(e, t, n, r, o) {
|
|
|
2848
2848
|
if (!u)
|
|
2849
2849
|
continue;
|
|
2850
2850
|
let d = r.find((p) => p.route.id === u.route.id), f = d != null && !jc(d, u) && (o && o[u.route.id]) !== void 0;
|
|
2851
|
-
|
|
2851
|
+
Qn(c) && f && await ui(c, n, !1).then((p) => {
|
|
2852
2852
|
p && (t[l] = p);
|
|
2853
2853
|
});
|
|
2854
2854
|
}
|
|
@@ -2860,7 +2860,7 @@ async function IP(e, t, n) {
|
|
|
2860
2860
|
routeId: a,
|
|
2861
2861
|
controller: i
|
|
2862
2862
|
} = n[r], l = t[o];
|
|
2863
|
-
e.find((u) => (u == null ? void 0 : u.route.id) === a) &&
|
|
2863
|
+
e.find((u) => (u == null ? void 0 : u.route.id) === a) && Qn(l) && (me(i, "Expected an AbortController for revalidating fetcher deferred result"), await ui(l, i.signal, !0).then((u) => {
|
|
2864
2864
|
u && (t[o] = u);
|
|
2865
2865
|
}));
|
|
2866
2866
|
}
|
|
@@ -2889,7 +2889,7 @@ function di(e) {
|
|
|
2889
2889
|
return new URLSearchParams(e).getAll("index").some((t) => t === "");
|
|
2890
2890
|
}
|
|
2891
2891
|
function ao(e, t) {
|
|
2892
|
-
let n = typeof t == "string" ?
|
|
2892
|
+
let n = typeof t == "string" ? or(t).search : t.search;
|
|
2893
2893
|
if (e[e.length - 1].route.index && di(n || ""))
|
|
2894
2894
|
return e[e.length - 1];
|
|
2895
2895
|
let r = Sc(e);
|
|
@@ -3199,7 +3199,7 @@ function UP(e, t, n, r) {
|
|
|
3199
3199
|
let v = d.replace(/^\//, "").split("/");
|
|
3200
3200
|
h = "/" + y.replace(/^\//, "").split("/").slice(v.length).join("/");
|
|
3201
3201
|
}
|
|
3202
|
-
let g = !a && n && n.matches && n.matches.length > 0 ? n.matches :
|
|
3202
|
+
let g = !a && n && n.matches && n.matches.length > 0 ? n.matches : pr(e, {
|
|
3203
3203
|
pathname: h
|
|
3204
3204
|
});
|
|
3205
3205
|
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && mt(f || g != null, 'No routes matched location "' + m.pathname + m.search + m.hash + '" '), process.env.NODE_ENV !== "production" && mt(g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0, 'Matched leaf route at location "' + m.pathname + m.search + m.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.')), GP(g && g.map((v) => Object.assign({}, v, {
|
|
@@ -3423,7 +3423,7 @@ function rN(e) {
|
|
|
3423
3423
|
v7_relativeSplatPath: !1
|
|
3424
3424
|
}, l)
|
|
3425
3425
|
}), [c, l, a, i]);
|
|
3426
|
-
typeof r == "string" && (r =
|
|
3426
|
+
typeof r == "string" && (r = or(r));
|
|
3427
3427
|
let {
|
|
3428
3428
|
pathname: d = "/",
|
|
3429
3429
|
search: f = "",
|
|
@@ -3479,15 +3479,15 @@ function oN(e) {
|
|
|
3479
3479
|
*
|
|
3480
3480
|
* @license MIT
|
|
3481
3481
|
*/
|
|
3482
|
-
function
|
|
3483
|
-
return
|
|
3482
|
+
function nr() {
|
|
3483
|
+
return nr = Object.assign ? Object.assign.bind() : function(e) {
|
|
3484
3484
|
for (var t = 1; t < arguments.length; t++) {
|
|
3485
3485
|
var n = arguments[t];
|
|
3486
3486
|
for (var r in n)
|
|
3487
3487
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
3488
3488
|
}
|
|
3489
3489
|
return e;
|
|
3490
|
-
},
|
|
3490
|
+
}, nr.apply(this, arguments);
|
|
3491
3491
|
}
|
|
3492
3492
|
function mi(e, t) {
|
|
3493
3493
|
if (e == null) return {};
|
|
@@ -3591,7 +3591,7 @@ try {
|
|
|
3591
3591
|
function EY(e, t) {
|
|
3592
3592
|
return yP({
|
|
3593
3593
|
basename: void 0,
|
|
3594
|
-
future:
|
|
3594
|
+
future: nr({}, void 0, {
|
|
3595
3595
|
v7_prependBasename: !0
|
|
3596
3596
|
}),
|
|
3597
3597
|
history: $k({
|
|
@@ -3608,7 +3608,7 @@ function EY(e, t) {
|
|
|
3608
3608
|
function yN() {
|
|
3609
3609
|
var e;
|
|
3610
3610
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
3611
|
-
return t && t.errors && (t =
|
|
3611
|
+
return t && t.errors && (t = nr({}, t, {
|
|
3612
3612
|
errors: bN(t.errors)
|
|
3613
3613
|
})), t;
|
|
3614
3614
|
}
|
|
@@ -3829,7 +3829,7 @@ const TN = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3829
3829
|
}
|
|
3830
3830
|
return (
|
|
3831
3831
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
3832
|
-
/* @__PURE__ */ k.createElement("a",
|
|
3832
|
+
/* @__PURE__ */ k.createElement("a", nr({}, p, {
|
|
3833
3833
|
href: y || g,
|
|
3834
3834
|
onClick: h || a ? r : v,
|
|
3835
3835
|
ref: n,
|
|
@@ -3865,7 +3865,7 @@ const wa = /* @__PURE__ */ k.forwardRef(function(t, n) {
|
|
|
3865
3865
|
}, I = N ? r : void 0, A;
|
|
3866
3866
|
typeof a == "function" ? A = a(T) : A = [a, N ? "active" : null, b ? "pending" : null, x ? "transitioning" : null].filter(Boolean).join(" ");
|
|
3867
3867
|
let Z = typeof l == "function" ? l(T) : l;
|
|
3868
|
-
return /* @__PURE__ */ k.createElement(Lc,
|
|
3868
|
+
return /* @__PURE__ */ k.createElement(Lc, nr({}, f, {
|
|
3869
3869
|
"aria-current": I,
|
|
3870
3870
|
className: A,
|
|
3871
3871
|
ref: n,
|
|
@@ -3905,7 +3905,7 @@ const RN = /* @__PURE__ */ k.forwardRef((e, t) => {
|
|
|
3905
3905
|
viewTransition: p
|
|
3906
3906
|
});
|
|
3907
3907
|
};
|
|
3908
|
-
return /* @__PURE__ */ k.createElement("form",
|
|
3908
|
+
return /* @__PURE__ */ k.createElement("form", nr({
|
|
3909
3909
|
ref: t,
|
|
3910
3910
|
method: g,
|
|
3911
3911
|
action: h,
|
|
@@ -3943,7 +3943,7 @@ function PN(e, t) {
|
|
|
3943
3943
|
return k.useCallback((f) => {
|
|
3944
3944
|
if (cN(f, n)) {
|
|
3945
3945
|
f.preventDefault();
|
|
3946
|
-
let p = r !== void 0 ? r :
|
|
3946
|
+
let p = r !== void 0 ? r : tr(u) === tr(d);
|
|
3947
3947
|
c(e, {
|
|
3948
3948
|
replace: p,
|
|
3949
3949
|
state: o,
|
|
@@ -4019,7 +4019,7 @@ function MN(e, t) {
|
|
|
4019
4019
|
basename: r
|
|
4020
4020
|
} = k.useContext(Cn), o = k.useContext(xn);
|
|
4021
4021
|
o || (process.env.NODE_ENV !== "production" ? me(!1, "useFormAction must be used inside a RouteContext") : me(!1));
|
|
4022
|
-
let [a] = o.matches.slice(-1), i =
|
|
4022
|
+
let [a] = o.matches.slice(-1), i = nr({}, Eo(e || ".", {
|
|
4023
4023
|
relative: n
|
|
4024
4024
|
})), l = Sr();
|
|
4025
4025
|
if (e == null) {
|
|
@@ -4031,7 +4031,7 @@ function MN(e, t) {
|
|
|
4031
4031
|
i.search = f ? "?" + f : "";
|
|
4032
4032
|
}
|
|
4033
4033
|
}
|
|
4034
|
-
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Dn([r, i.pathname])),
|
|
4034
|
+
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Dn([r, i.pathname])), tr(i);
|
|
4035
4035
|
}
|
|
4036
4036
|
function LN(e, t) {
|
|
4037
4037
|
t === void 0 && (t = {});
|
|
@@ -4507,7 +4507,7 @@ function tt(e, t, n) {
|
|
|
4507
4507
|
var r = e.random || (e.rng || GN)();
|
|
4508
4508
|
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, zN(r);
|
|
4509
4509
|
}
|
|
4510
|
-
const
|
|
4510
|
+
const rr = Le(
|
|
4511
4511
|
Fa(
|
|
4512
4512
|
(e, t) => ({
|
|
4513
4513
|
header: null,
|
|
@@ -4552,7 +4552,7 @@ const nr = Le(
|
|
|
4552
4552
|
e({ currentBlock: n });
|
|
4553
4553
|
},
|
|
4554
4554
|
setPositionBlock: (n, r = !1) => {
|
|
4555
|
-
const { blocks: o } = t(), { currentPage: a, pages: i } =
|
|
4555
|
+
const { blocks: o } = t(), { currentPage: a, pages: i } = ar.getState();
|
|
4556
4556
|
if (!a || !i || !i[a] || !o[i[a].path]) {
|
|
4557
4557
|
console.error("Cannot set position: invalid page or block data");
|
|
4558
4558
|
return;
|
|
@@ -5117,13 +5117,13 @@ const nr = Le(
|
|
|
5117
5117
|
name: "fonts-storage"
|
|
5118
5118
|
}
|
|
5119
5119
|
)
|
|
5120
|
-
), Va = Le((e
|
|
5120
|
+
), Va = Le((e) => ({
|
|
5121
5121
|
settings: null,
|
|
5122
|
-
setSettings: (
|
|
5123
|
-
|
|
5122
|
+
setSettings: (t) => {
|
|
5123
|
+
e(() => ({ settings: t }));
|
|
5124
5124
|
},
|
|
5125
5125
|
isLoadingSettings: !0,
|
|
5126
|
-
setIsLoadingSettings: (
|
|
5126
|
+
setIsLoadingSettings: (t) => e(() => ({ isLoadingSettings: t }))
|
|
5127
5127
|
})), IY = Le()((e) => ({
|
|
5128
5128
|
color: "default",
|
|
5129
5129
|
initialColor: "",
|
|
@@ -5192,7 +5192,7 @@ const nr = Le(
|
|
|
5192
5192
|
activeColorIndex: 1,
|
|
5193
5193
|
isGradientActive: !0
|
|
5194
5194
|
}))
|
|
5195
|
-
})),
|
|
5195
|
+
})), ar = Le(
|
|
5196
5196
|
Fa(
|
|
5197
5197
|
(e, t) => ({
|
|
5198
5198
|
pages: null,
|
|
@@ -5281,7 +5281,7 @@ const nr = Le(
|
|
|
5281
5281
|
setHeader: f,
|
|
5282
5282
|
setFooter: p,
|
|
5283
5283
|
setAnnouncement: m
|
|
5284
|
-
} =
|
|
5284
|
+
} = rr.getState(), { themeSettings: y, setThemeSettings: h } = Or.getState(), g = {
|
|
5285
5285
|
themeSettings: JSON.parse(JSON.stringify(y)),
|
|
5286
5286
|
layers: JSON.parse(JSON.stringify(i)),
|
|
5287
5287
|
header: JSON.parse(JSON.stringify(l)),
|
|
@@ -5307,7 +5307,7 @@ const nr = Le(
|
|
|
5307
5307
|
setHeader: u,
|
|
5308
5308
|
setFooter: d,
|
|
5309
5309
|
setAnnouncement: f
|
|
5310
|
-
} =
|
|
5310
|
+
} = rr.getState(), { themeSettings: p, setThemeSettings: m } = Or.getState(), y = r[0], h = r.slice(1), g = {
|
|
5311
5311
|
themeSettings: JSON.parse(JSON.stringify(p)),
|
|
5312
5312
|
layers: JSON.parse(JSON.stringify(o)),
|
|
5313
5313
|
header: JSON.parse(JSON.stringify(a)),
|
|
@@ -5339,7 +5339,7 @@ const nr = Le(
|
|
|
5339
5339
|
})), MY = Le((e) => ({
|
|
5340
5340
|
showTooltip: !1,
|
|
5341
5341
|
setShowTooltip: (t) => e({ showTooltip: t })
|
|
5342
|
-
})),
|
|
5342
|
+
})), sr = Le((e) => ({
|
|
5343
5343
|
isOpen: !0,
|
|
5344
5344
|
setIsOpen: (t) => e(() => ({ isOpen: t }))
|
|
5345
5345
|
})), Fc = Le((e) => ({
|
|
@@ -7325,7 +7325,7 @@ function ZA(e = [], t = ge.minMatchCharLength) {
|
|
|
7325
7325
|
}
|
|
7326
7326
|
return e[a - 1] && a - r >= t && n.push([r, a - 1]), n;
|
|
7327
7327
|
}
|
|
7328
|
-
const
|
|
7328
|
+
const gr = 32;
|
|
7329
7329
|
function WA(e, t, n, {
|
|
7330
7330
|
location: r = ge.location,
|
|
7331
7331
|
distance: o = ge.distance,
|
|
@@ -7335,8 +7335,8 @@ function WA(e, t, n, {
|
|
|
7335
7335
|
includeMatches: c = ge.includeMatches,
|
|
7336
7336
|
ignoreLocation: u = ge.ignoreLocation
|
|
7337
7337
|
} = {}) {
|
|
7338
|
-
if (t.length >
|
|
7339
|
-
throw new Error(AA(
|
|
7338
|
+
if (t.length > gr)
|
|
7339
|
+
throw new Error(AA(gr));
|
|
7340
7340
|
const d = t.length, f = e.length, p = Math.max(0, Math.min(r, f));
|
|
7341
7341
|
let m = a, y = p;
|
|
7342
7342
|
const h = l > 1 || c, g = h ? Array(f) : [];
|
|
@@ -7445,13 +7445,13 @@ class zc {
|
|
|
7445
7445
|
startIndex: y
|
|
7446
7446
|
});
|
|
7447
7447
|
}, p = this.pattern.length;
|
|
7448
|
-
if (p >
|
|
7448
|
+
if (p > gr) {
|
|
7449
7449
|
let m = 0;
|
|
7450
|
-
const y = p %
|
|
7450
|
+
const y = p % gr, h = p - y;
|
|
7451
7451
|
for (; m < h; )
|
|
7452
|
-
f(this.pattern.substr(m,
|
|
7452
|
+
f(this.pattern.substr(m, gr), m), m += gr;
|
|
7453
7453
|
if (y) {
|
|
7454
|
-
const g = p -
|
|
7454
|
+
const g = p - gr;
|
|
7455
7455
|
f(this.pattern.substr(g), g);
|
|
7456
7456
|
}
|
|
7457
7457
|
} else
|
|
@@ -7494,7 +7494,7 @@ class zc {
|
|
|
7494
7494
|
return m && o && (y.indices = f), y;
|
|
7495
7495
|
}
|
|
7496
7496
|
}
|
|
7497
|
-
class
|
|
7497
|
+
class ir {
|
|
7498
7498
|
constructor(t) {
|
|
7499
7499
|
this.pattern = t;
|
|
7500
7500
|
}
|
|
@@ -7511,7 +7511,7 @@ function pl(e, t) {
|
|
|
7511
7511
|
const n = e.match(t);
|
|
7512
7512
|
return n ? n[1] : null;
|
|
7513
7513
|
}
|
|
7514
|
-
class qA extends
|
|
7514
|
+
class qA extends ir {
|
|
7515
7515
|
constructor(t) {
|
|
7516
7516
|
super(t);
|
|
7517
7517
|
}
|
|
@@ -7533,7 +7533,7 @@ class qA extends sr {
|
|
|
7533
7533
|
};
|
|
7534
7534
|
}
|
|
7535
7535
|
}
|
|
7536
|
-
class GA extends
|
|
7536
|
+
class GA extends ir {
|
|
7537
7537
|
constructor(t) {
|
|
7538
7538
|
super(t);
|
|
7539
7539
|
}
|
|
@@ -7555,7 +7555,7 @@ class GA extends sr {
|
|
|
7555
7555
|
};
|
|
7556
7556
|
}
|
|
7557
7557
|
}
|
|
7558
|
-
class YA extends
|
|
7558
|
+
class YA extends ir {
|
|
7559
7559
|
constructor(t) {
|
|
7560
7560
|
super(t);
|
|
7561
7561
|
}
|
|
@@ -7577,7 +7577,7 @@ class YA extends sr {
|
|
|
7577
7577
|
};
|
|
7578
7578
|
}
|
|
7579
7579
|
}
|
|
7580
|
-
class KA extends
|
|
7580
|
+
class KA extends ir {
|
|
7581
7581
|
constructor(t) {
|
|
7582
7582
|
super(t);
|
|
7583
7583
|
}
|
|
@@ -7599,7 +7599,7 @@ class KA extends sr {
|
|
|
7599
7599
|
};
|
|
7600
7600
|
}
|
|
7601
7601
|
}
|
|
7602
|
-
class JA extends
|
|
7602
|
+
class JA extends ir {
|
|
7603
7603
|
constructor(t) {
|
|
7604
7604
|
super(t);
|
|
7605
7605
|
}
|
|
@@ -7621,7 +7621,7 @@ class JA extends sr {
|
|
|
7621
7621
|
};
|
|
7622
7622
|
}
|
|
7623
7623
|
}
|
|
7624
|
-
class XA extends
|
|
7624
|
+
class XA extends ir {
|
|
7625
7625
|
constructor(t) {
|
|
7626
7626
|
super(t);
|
|
7627
7627
|
}
|
|
@@ -7643,7 +7643,7 @@ class XA extends sr {
|
|
|
7643
7643
|
};
|
|
7644
7644
|
}
|
|
7645
7645
|
}
|
|
7646
|
-
class qc extends
|
|
7646
|
+
class qc extends ir {
|
|
7647
7647
|
constructor(t, {
|
|
7648
7648
|
location: n = ge.location,
|
|
7649
7649
|
threshold: r = ge.threshold,
|
|
@@ -7680,7 +7680,7 @@ class qc extends sr {
|
|
|
7680
7680
|
return this._bitapSearch.searchIn(t);
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
|
-
class Gc extends
|
|
7683
|
+
class Gc extends ir {
|
|
7684
7684
|
constructor(t) {
|
|
7685
7685
|
super(t);
|
|
7686
7686
|
}
|
|
@@ -7902,7 +7902,7 @@ function uI(e, t, {
|
|
|
7902
7902
|
}), l;
|
|
7903
7903
|
});
|
|
7904
7904
|
}
|
|
7905
|
-
class
|
|
7905
|
+
class lr {
|
|
7906
7906
|
constructor(t, n = {}, r) {
|
|
7907
7907
|
this.options = { ...ge, ...n }, this.options.useExtendedSearch, this._keyStore = new MA(this.options.keys), this.setCollection(t, r);
|
|
7908
7908
|
}
|
|
@@ -8039,11 +8039,11 @@ class ir {
|
|
|
8039
8039
|
return o;
|
|
8040
8040
|
}
|
|
8041
8041
|
}
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8042
|
+
lr.version = "7.1.0";
|
|
8043
|
+
lr.createIndex = Wc;
|
|
8044
|
+
lr.parseIndex = UA;
|
|
8045
|
+
lr.config = ge;
|
|
8046
|
+
lr.parseQuery = Yc;
|
|
8047
8047
|
oI(rI);
|
|
8048
8048
|
const dI = "_wrapper_187gl_1", fI = "_label_187gl_9", hI = "_input_187gl_17", pI = "_required_187gl_47", mI = "_paddingless_187gl_54", gI = "_content_187gl_58", vI = "_borderless_187gl_66", yI = "_rightIcon_187gl_77", bI = "_inputPostfix_187gl_83", Vn = {
|
|
8049
8049
|
wrapper: dI,
|
|
@@ -8191,7 +8191,7 @@ const wr = (e) => {
|
|
|
8191
8191
|
(de) => de === null || de === 0 ? ie.length - 1 : de - 1
|
|
8192
8192
|
)), F.key === "Enter" && m !== null && (F.preventDefault(), S(ie[m])), F.key === "Escape" && d(!1);
|
|
8193
8193
|
}
|
|
8194
|
-
const b = D.useRef(null), T = D.useMemo(() => new
|
|
8194
|
+
const b = D.useRef(null), T = D.useMemo(() => new lr(o, {
|
|
8195
8195
|
threshold: 0.4,
|
|
8196
8196
|
minMatchCharLength: 1
|
|
8197
8197
|
}), [o]), I = D.useMemo(() => h && f.trim() !== "" ? T.search(f).map((F) => F.item) : o, [f, o, h, T]), A = () => w.current ? w.current.clientWidth : 100, Z = () => {
|
|
@@ -8746,7 +8746,7 @@ const Kc = (e) => {
|
|
|
8746
8746
|
(F) => F === null || F === 0 ? z.length - 1 : F - 1
|
|
8747
8747
|
)), O.key === "Enter" && m !== null && (O.preventDefault(), v(z[m])), O.key === "Escape" && d(!1);
|
|
8748
8748
|
}
|
|
8749
|
-
const _ = D.useRef(null), N = D.useMemo(() => new
|
|
8749
|
+
const _ = D.useRef(null), N = D.useMemo(() => new lr(o, {
|
|
8750
8750
|
threshold: 0.4,
|
|
8751
8751
|
minMatchCharLength: 2
|
|
8752
8752
|
}), [o]), b = D.useMemo(() => h && f.trim() !== "" ? N.search(f).map((O) => O.item) : o, [f, o, h, N]), T = D.useMemo(() => {
|
|
@@ -10864,7 +10864,7 @@ const {
|
|
|
10864
10864
|
}
|
|
10865
10865
|
) });
|
|
10866
10866
|
}, tK = () => {
|
|
10867
|
-
const { setOpenModal: e, onChange: t, tip: n, setTip: r } = Bc(), { setIsOpen: o } =
|
|
10867
|
+
const { setOpenModal: e, onChange: t, tip: n, setTip: r } = Bc(), { setIsOpen: o } = sr(), [a, i] = D.useState(!1), l = () => {
|
|
10868
10868
|
var v;
|
|
10869
10869
|
(v = c.current) == null || v.click();
|
|
10870
10870
|
}, c = D.useRef(null), [u, d] = D.useState([]), [f, p] = D.useState(!1), m = async (v) => {
|
|
@@ -13607,7 +13607,7 @@ const vB = /* @__PURE__ */ hd(function(t) {
|
|
|
13607
13607
|
droppableRects: ne,
|
|
13608
13608
|
droppableContainers: G,
|
|
13609
13609
|
pointerCoordinates: Ut
|
|
13610
|
-
}) : null, En = yO(Je, "id"), [Et, Gn] = nt(null), it = ot ? qe : Mr(qe, At), Tn = xO(it, (a = Et == null ? void 0 : Et.rect) != null ? a : null, J), jn = Ve(null),
|
|
13610
|
+
}) : null, En = yO(Je, "id"), [Et, Gn] = nt(null), it = ot ? qe : Mr(qe, At), Tn = xO(it, (a = Et == null ? void 0 : Et.rect) != null ? a : null, J), jn = Ve(null), cr = Vt(
|
|
13611
13611
|
(Ue, yt) => {
|
|
13612
13612
|
let {
|
|
13613
13613
|
sensor: bt,
|
|
@@ -13746,8 +13746,8 @@ const vB = /* @__PURE__ */ hd(function(t) {
|
|
|
13746
13746
|
};
|
|
13747
13747
|
Ue(bt, yt.options, Ct) === !0 && (Tt.dndKit = {
|
|
13748
13748
|
capturedBy: yt.sensor
|
|
13749
|
-
}, F.current = Qt,
|
|
13750
|
-
}, [T,
|
|
13749
|
+
}, F.current = Qt, cr(bt, yt));
|
|
13750
|
+
}, [T, cr]), Ln = GO(d, qr);
|
|
13751
13751
|
nB(d), Mn(() => {
|
|
13752
13752
|
J && S === Jn.Initializing && _(Jn.Initialized);
|
|
13753
13753
|
}, [J, S]), Me(
|
|
@@ -15015,7 +15015,7 @@ const VB = (e) => {
|
|
|
15015
15015
|
closeIcon: iF
|
|
15016
15016
|
}, rK = D.forwardRef((e, t) => {
|
|
15017
15017
|
var w;
|
|
15018
|
-
const { activeButton: n, setActiveButton: r, popupPosition: o, editableLink: a = !0 } = e, [i, l] = D.useState(n.typesText), [c, u] = D.useState(n.destination), [d, f] = D.useState(n.page), [p, m] = D.useState(n.link || ""), [y, h] = D.useState(n.text || { "en-US": "" }), [g, x] = D.useState(n.openInNewTab), { pages: v } =
|
|
15018
|
+
const { activeButton: n, setActiveButton: r, popupPosition: o, editableLink: a = !0 } = e, [i, l] = D.useState(n.typesText), [c, u] = D.useState(n.destination), [d, f] = D.useState(n.page), [p, m] = D.useState(n.link || ""), [y, h] = D.useState(n.text || { "en-US": "" }), [g, x] = D.useState(n.openInNewTab), { pages: v } = ar();
|
|
15019
15019
|
return To(t, () => {
|
|
15020
15020
|
r(null);
|
|
15021
15021
|
}), D.useEffect(() => {
|
|
@@ -15262,14 +15262,14 @@ const VB = (e) => {
|
|
|
15262
15262
|
deleteButton: IF,
|
|
15263
15263
|
closeIcon: DF
|
|
15264
15264
|
}, MF = ({ render: e, block: t }) => e(t), LF = ({ settings: e, pageContext: t }) => {
|
|
15265
|
-
const { footer: n } =
|
|
15265
|
+
const { footer: n } = rr(), { settings: r } = Va(), { pageContext: o } = ar(), { footer: a } = Lr();
|
|
15266
15266
|
if (!a || !n) return null;
|
|
15267
15267
|
const i = new a();
|
|
15268
15268
|
return Object.keys(n).map((l) => {
|
|
15269
15269
|
i[l] = n[l];
|
|
15270
15270
|
}), i.renderBlock(e || r, t || o);
|
|
15271
15271
|
}, OF = ({ settings: e, pageContext: t }) => {
|
|
15272
|
-
const { header: n } =
|
|
15272
|
+
const { header: n } = rr(), { settings: r } = Va(), { pageContext: o } = ar(), { header: a } = Lr();
|
|
15273
15273
|
if (!a || !n) return null;
|
|
15274
15274
|
const i = new a();
|
|
15275
15275
|
return Object.keys(n).map((l) => {
|
|
@@ -15279,7 +15279,7 @@ const VB = (e) => {
|
|
|
15279
15279
|
settings: e,
|
|
15280
15280
|
pageContext: t
|
|
15281
15281
|
}) => {
|
|
15282
|
-
const { announcement: n } =
|
|
15282
|
+
const { announcement: n } = rr(), { settings: r } = Va(), { pageContext: o } = ar(), { announcement: a } = Lr();
|
|
15283
15283
|
if (!a || !n) return null;
|
|
15284
15284
|
const i = new a();
|
|
15285
15285
|
return Object.keys(n).map((l) => {
|
|
@@ -15448,7 +15448,7 @@ if (Kl)
|
|
|
15448
15448
|
} catch {
|
|
15449
15449
|
Dr = null;
|
|
15450
15450
|
}
|
|
15451
|
-
const
|
|
15451
|
+
const Xn = Le((e) => ({
|
|
15452
15452
|
cart: { ...QF, customerEmail: Dr ? Dr.email : "" },
|
|
15453
15453
|
products: [],
|
|
15454
15454
|
coupon: null,
|
|
@@ -15652,7 +15652,7 @@ const bs = "Balance", gK = {
|
|
|
15652
15652
|
throw new Error("Variant does not have subscription settings");
|
|
15653
15653
|
if (o !== void 0 && ((u = l.quantity) != null && u.available) && l.quantity.available < o)
|
|
15654
15654
|
throw new Error("Not enough quantity available");
|
|
15655
|
-
const c =
|
|
15655
|
+
const c = Xn.getState().cart;
|
|
15656
15656
|
if (c.parts.length > 0) {
|
|
15657
15657
|
const d = e.find((p) => p.id === c.parts[0].productId), f = d == null ? void 0 : d.variants.find(
|
|
15658
15658
|
(p) => p.id === c.parts[0].productVariantId
|
|
@@ -15663,7 +15663,7 @@ const bs = "Balance", gK = {
|
|
|
15663
15663
|
return l;
|
|
15664
15664
|
}, vV = (e, t) => e.reduce((n, r) => {
|
|
15665
15665
|
var u, d;
|
|
15666
|
-
const o = t.find((f) => (f == null ? void 0 : f.id) === r.productId), a = o == null ? void 0 : o.variants.find((f) => f.id === r.productVariantId), { gateway: i } =
|
|
15666
|
+
const o = t.find((f) => (f == null ? void 0 : f.id) === r.productId), a = o == null ? void 0 : o.variants.find((f) => f.id === r.productVariantId), { gateway: i } = Xn.getState().cart, l = (a == null ? void 0 : a.gateways) || [], c = l.some((f) => f.name === i && f.overrodePrice) ? (u = l.find((f) => f.name === i)) == null ? void 0 : u.overrodePrice : null;
|
|
15667
15667
|
return r.chargeType === "ONE_TIME" ? n + ((c == null ? void 0 : c.amount) || (a == null ? void 0 : a.price.amount) || 0) * r.quantity : a != null && a.subscriptionSettings ? n + a.subscriptionSettings.price.amount + (((d = a.subscriptionSettings.entryFee) == null ? void 0 : d.amount) || 0) : n;
|
|
15668
15668
|
}, 0), yV = (e, t) => ({
|
|
15669
15669
|
isRequired: t.some((r) => {
|
|
@@ -15737,10 +15737,10 @@ const bs = "Balance", gK = {
|
|
|
15737
15737
|
setCoupon: c,
|
|
15738
15738
|
setPending: u,
|
|
15739
15739
|
setApplyCouponPending: d
|
|
15740
|
-
} =
|
|
15740
|
+
} = Xn(), f = async (h) => {
|
|
15741
15741
|
var b;
|
|
15742
15742
|
d(!0);
|
|
15743
|
-
const { cart: g } =
|
|
15743
|
+
const { cart: g } = Xn.getState(), { gateway: x, parts: v } = g, { notifications: w, setNotifications: S } = Ht.getState();
|
|
15744
15744
|
x || (d(!1), S([
|
|
15745
15745
|
...w,
|
|
15746
15746
|
{
|
|
@@ -15787,13 +15787,13 @@ const bs = "Balance", gK = {
|
|
|
15787
15787
|
i({ ...gV });
|
|
15788
15788
|
},
|
|
15789
15789
|
addProducts: (h) => {
|
|
15790
|
-
const g =
|
|
15790
|
+
const g = Xn.getState().products, x = h.filter(
|
|
15791
15791
|
(v) => !g.some((w) => w.id === v.id)
|
|
15792
15792
|
);
|
|
15793
15793
|
l([...g, ...x]);
|
|
15794
15794
|
},
|
|
15795
15795
|
addProductToCart: (h) => {
|
|
15796
|
-
const g =
|
|
15796
|
+
const g = Xn.getState().cart;
|
|
15797
15797
|
try {
|
|
15798
15798
|
Jl(t, h);
|
|
15799
15799
|
} catch (v) {
|
|
@@ -15841,9 +15841,9 @@ const bs = "Balance", gK = {
|
|
|
15841
15841
|
}));
|
|
15842
15842
|
},
|
|
15843
15843
|
getTotalAndDiscount() {
|
|
15844
|
-
const h = vV(e.parts, t)
|
|
15844
|
+
const { coupon: h } = Xn.getState(), g = vV(e.parts, t);
|
|
15845
15845
|
let x;
|
|
15846
|
-
return
|
|
15846
|
+
return h && h.discount && (!h.isFixed && h.discount === 100 ? x = 0 : x = h.isFixed ? Math.max(0, g - h.discount) : g * (1 - h.discount / 100)), { total: g, totalWithDiscount: x };
|
|
15847
15847
|
},
|
|
15848
15848
|
setGateway(h) {
|
|
15849
15849
|
i((g) => ({ ...g, gateway: h })), e.coupon && f(e.coupon);
|
|
@@ -15853,7 +15853,7 @@ const bs = "Balance", gK = {
|
|
|
15853
15853
|
},
|
|
15854
15854
|
async submitCart(h) {
|
|
15855
15855
|
u(!0);
|
|
15856
|
-
const { cart: g } =
|
|
15856
|
+
const { cart: g } = Xn.getState();
|
|
15857
15857
|
let x;
|
|
15858
15858
|
if (g.parts && a && bV(g.parts[0], t))
|
|
15859
15859
|
try {
|
|
@@ -16269,7 +16269,7 @@ document.head.querySelector('meta[name="_translator"]') !== null : !1, UV = ({
|
|
|
16269
16269
|
content: qV,
|
|
16270
16270
|
close: GV
|
|
16271
16271
|
}, Ai = (e) => {
|
|
16272
|
-
const { close: t, children: n, withAnimation: r = !0, hasPadding: o = !0 } = e, { isOpen: a, setIsOpen: i } =
|
|
16272
|
+
const { close: t, children: n, withAnimation: r = !0, hasPadding: o = !0 } = e, { isOpen: a, setIsOpen: i } = sr(), l = () => {
|
|
16273
16273
|
i(!1), r ? setTimeout(() => {
|
|
16274
16274
|
t(!1), i(!0);
|
|
16275
16275
|
}, 300) : (t(!1), i(!0));
|
|
@@ -16418,7 +16418,7 @@ const Jo = 16, nH = ({
|
|
|
16418
16418
|
)
|
|
16419
16419
|
}
|
|
16420
16420
|
);
|
|
16421
|
-
}, rH = "_wrapper_oxpf7_1", oH = "_label_oxpf7_10", aH = "_contentBorder_oxpf7_19", sH = "_textarea_oxpf7_23", iH = "_contentField_oxpf7_35", lH = "_length_oxpf7_49",
|
|
16421
|
+
}, rH = "_wrapper_oxpf7_1", oH = "_label_oxpf7_10", aH = "_contentBorder_oxpf7_19", sH = "_textarea_oxpf7_23", iH = "_contentField_oxpf7_35", lH = "_length_oxpf7_49", fr = {
|
|
16422
16422
|
wrapper: rH,
|
|
16423
16423
|
label: oH,
|
|
16424
16424
|
contentBorder: aH,
|
|
@@ -16438,15 +16438,15 @@ const Jo = 16, nH = ({
|
|
|
16438
16438
|
function f(p) {
|
|
16439
16439
|
return i === "number" ? p.replace(/[^\d\n]+/g, "") : p;
|
|
16440
16440
|
}
|
|
16441
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
16441
|
+
return /* @__PURE__ */ s.jsxs("div", { className: fr.wrapper, children: [
|
|
16442
16442
|
n && /* @__PURE__ */ s.jsxs(
|
|
16443
16443
|
"label",
|
|
16444
16444
|
{
|
|
16445
|
-
className:
|
|
16445
|
+
className: fr.label,
|
|
16446
16446
|
htmlFor: n,
|
|
16447
16447
|
children: [
|
|
16448
16448
|
n,
|
|
16449
|
-
l && /* @__PURE__ */ s.jsx("span", { className:
|
|
16449
|
+
l && /* @__PURE__ */ s.jsx("span", { className: fr.requiredStar, children: "*" })
|
|
16450
16450
|
]
|
|
16451
16451
|
}
|
|
16452
16452
|
),
|
|
@@ -16460,14 +16460,14 @@ const Jo = 16, nH = ({
|
|
|
16460
16460
|
u(m.length), t(m);
|
|
16461
16461
|
},
|
|
16462
16462
|
placeholder: a,
|
|
16463
|
-
className: ee(
|
|
16464
|
-
[
|
|
16465
|
-
[
|
|
16463
|
+
className: ee(fr.textarea, {
|
|
16464
|
+
[fr.contentBorder]: d.inputs.border.active,
|
|
16465
|
+
[fr.contentField]: d.inputs.field.active
|
|
16466
16466
|
}),
|
|
16467
16467
|
maxLength: o
|
|
16468
16468
|
}
|
|
16469
16469
|
),
|
|
16470
|
-
o && /* @__PURE__ */ s.jsxs("div", { className:
|
|
16470
|
+
o && /* @__PURE__ */ s.jsxs("div", { className: fr.length, children: [
|
|
16471
16471
|
c,
|
|
16472
16472
|
"/",
|
|
16473
16473
|
o
|
|
@@ -16525,7 +16525,7 @@ const RH = (e) => {
|
|
|
16525
16525
|
(O) => O === null || O === 0 ? Z.length - 1 : O - 1
|
|
16526
16526
|
)), A.key === "Enter" && m !== null && (A.preventDefault(), v(Z[m])), A.key === "Escape" && d(!1);
|
|
16527
16527
|
}
|
|
16528
|
-
const _ = D.useRef(null), N = D.useMemo(() => new
|
|
16528
|
+
const _ = D.useRef(null), N = D.useMemo(() => new lr(o, {
|
|
16529
16529
|
threshold: 0.4,
|
|
16530
16530
|
minMatchCharLength: 2
|
|
16531
16531
|
}), [o]), b = D.useMemo(() => h && f.trim() !== "" ? N.search(f).map((A) => A.item) : o, [f, o, h, N]);
|
|
@@ -16666,7 +16666,7 @@ const RH = (e) => {
|
|
|
16666
16666
|
]
|
|
16667
16667
|
}
|
|
16668
16668
|
);
|
|
16669
|
-
}, kH = "_wrapper_2vleg_1", PH = "_label_2vleg_9", NH = "_options_2vleg_17", AH = "_radioLabel_2vleg_23", IH = "_radio_2vleg_23", DH = "_custom_2vleg_38", MH = "_option_2vleg_17",
|
|
16669
|
+
}, kH = "_wrapper_2vleg_1", PH = "_label_2vleg_9", NH = "_options_2vleg_17", AH = "_radioLabel_2vleg_23", IH = "_radio_2vleg_23", DH = "_custom_2vleg_38", MH = "_option_2vleg_17", hr = {
|
|
16670
16670
|
wrapper: kH,
|
|
16671
16671
|
label: PH,
|
|
16672
16672
|
options: NH,
|
|
@@ -16679,17 +16679,17 @@ const RH = (e) => {
|
|
|
16679
16679
|
const d = u.target.value;
|
|
16680
16680
|
l(d), r(d);
|
|
16681
16681
|
};
|
|
16682
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
16683
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
16682
|
+
return /* @__PURE__ */ s.jsxs("div", { className: hr.wrapper, children: [
|
|
16683
|
+
/* @__PURE__ */ s.jsx("span", { className: hr.label, children: o }),
|
|
16684
16684
|
/* @__PURE__ */ s.jsx(
|
|
16685
16685
|
"div",
|
|
16686
16686
|
{
|
|
16687
|
-
className:
|
|
16687
|
+
className: hr.options,
|
|
16688
16688
|
style: { flexDirection: a },
|
|
16689
16689
|
children: n.map((u) => /* @__PURE__ */ s.jsxs(
|
|
16690
16690
|
"label",
|
|
16691
16691
|
{
|
|
16692
|
-
className:
|
|
16692
|
+
className: hr.radioLabel,
|
|
16693
16693
|
children: [
|
|
16694
16694
|
/* @__PURE__ */ s.jsx(
|
|
16695
16695
|
"input",
|
|
@@ -16698,11 +16698,11 @@ const RH = (e) => {
|
|
|
16698
16698
|
value: u.value,
|
|
16699
16699
|
checked: i === u.value,
|
|
16700
16700
|
onChange: c,
|
|
16701
|
-
className:
|
|
16701
|
+
className: hr.radio
|
|
16702
16702
|
}
|
|
16703
16703
|
),
|
|
16704
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
16705
|
-
/* @__PURE__ */ s.jsx("span", { className:
|
|
16704
|
+
/* @__PURE__ */ s.jsx("span", { className: hr.custom }),
|
|
16705
|
+
/* @__PURE__ */ s.jsx("span", { className: hr.option, children: u.label })
|
|
16706
16706
|
]
|
|
16707
16707
|
},
|
|
16708
16708
|
u.value
|
|
@@ -16726,7 +16726,7 @@ const RH = (e) => {
|
|
|
16726
16726
|
deleteButton: qH
|
|
16727
16727
|
}, GH = () => {
|
|
16728
16728
|
var _;
|
|
16729
|
-
const { activeBlock: e, setActiveBlock: t } = vi(), { blocks: n, removeBlock: r, moveBlock: o, duplicateBlock: a, setCurrentBlock: i } =
|
|
16729
|
+
const { activeBlock: e, setActiveBlock: t } = vi(), { blocks: n, removeBlock: r, moveBlock: o, duplicateBlock: a, setCurrentBlock: i } = rr(), { currentPage: l, pages: c } = ar(), { setTitle: u, setDescription: d, setOnConfirm: f } = JN(), { setActiveBlock: p } = Lr(), m = (_ = c == null ? void 0 : c[l]) == null ? void 0 : _.path, y = m ? n[m] : null, h = (y == null ? void 0 : y.order) || [], g = h.indexOf(e.id), x = (N) => {
|
|
16730
16730
|
N.stopPropagation(), g > 0 && m && (o(m, g, g - 1), t({
|
|
16731
16731
|
id: e.id,
|
|
16732
16732
|
neededScroll: !0
|
|
@@ -16815,7 +16815,7 @@ const SK = D.memo(({ scrollableRef: e }) => {
|
|
|
16815
16815
|
currentBlock: c,
|
|
16816
16816
|
setPositionBlock: u,
|
|
16817
16817
|
announcement: d
|
|
16818
|
-
} =
|
|
16818
|
+
} = rr(), { settings: f } = Va(), { currentPage: p, pages: m, pageContext: y } = ar(), { activeBlock: h, setActiveBlock: g } = Or(), { setError: x } = KN(), { setActiveBlock: v } = Lr(), w = D.useRef(n.id), S = D.useRef({});
|
|
16819
16819
|
D.useEffect(() => {
|
|
16820
16820
|
if (n.id && n.neededScroll && S.current[n.id]) {
|
|
16821
16821
|
const b = S.current[n.id];
|
|
@@ -17224,14 +17224,14 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
17224
17224
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
17225
17225
|
and limitations under the License.
|
|
17226
17226
|
***************************************************************************** */
|
|
17227
|
-
var
|
|
17228
|
-
return
|
|
17227
|
+
var er = function() {
|
|
17228
|
+
return er = Object.assign || function(t) {
|
|
17229
17229
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
17230
17230
|
n = arguments[r];
|
|
17231
17231
|
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
17232
17232
|
}
|
|
17233
17233
|
return t;
|
|
17234
|
-
},
|
|
17234
|
+
}, er.apply(this, arguments);
|
|
17235
17235
|
};
|
|
17236
17236
|
function E$(e, t) {
|
|
17237
17237
|
var n = {};
|
|
@@ -17247,7 +17247,7 @@ var T$ = function() {
|
|
|
17247
17247
|
var t = e.animate, n = t === void 0 ? !0 : t, r = e.backgroundColor, o = r === void 0 ? "#f5f6f7" : r, a = e.backgroundOpacity, i = a === void 0 ? 1 : a, l = e.baseUrl, c = l === void 0 ? "" : l, u = e.children, d = e.foregroundColor, f = d === void 0 ? "#eee" : d, p = e.foregroundOpacity, m = p === void 0 ? 1 : p, y = e.gradientRatio, h = y === void 0 ? 2 : y, g = e.uniqueKey, x = e.rtl, v = x === void 0 ? !1 : x, w = e.speed, S = w === void 0 ? 1.2 : w, _ = e.style, N = _ === void 0 ? {} : _, b = e.title, T = b === void 0 ? "Loading..." : b, I = e.beforeMask, A = I === void 0 ? null : I, Z = E$(e, ["animate", "backgroundColor", "backgroundOpacity", "baseUrl", "children", "foregroundColor", "foregroundOpacity", "gradientRatio", "uniqueKey", "rtl", "speed", "style", "title", "beforeMask"]), O = g || T$(), z = "".concat(O, "-diff"), F = "".concat(O, "-animated-diff"), ie = "".concat(O, "-aria"), de = v ? { transform: "scaleX(-1)" } : null, pe = "".concat(S, "s"), ve = "".concat(h * -1, " 0"), be = "".concat(h, " 0");
|
|
17248
17248
|
return We(
|
|
17249
17249
|
"svg",
|
|
17250
|
-
|
|
17250
|
+
er({ "aria-labelledby": ie, role: "img", style: er(er({}, N), de) }, Z),
|
|
17251
17251
|
T ? We("title", { id: ie }, T) : null,
|
|
17252
17252
|
A && md(A) ? A : null,
|
|
17253
17253
|
We("rect", { role: "presentation", x: "0", y: "0", width: "100%", height: "100%", clipPath: "url(".concat(c, "#").concat(z, ")"), style: { fill: "url(".concat(c, "#").concat(F, ")") } }),
|
|
@@ -17266,11 +17266,11 @@ var T$ = function() {
|
|
|
17266
17266
|
)
|
|
17267
17267
|
);
|
|
17268
17268
|
}, Do = function(e) {
|
|
17269
|
-
return e.children ? We(j$,
|
|
17269
|
+
return e.children ? We(j$, er({}, e)) : We(R$, er({}, e));
|
|
17270
17270
|
}, R$ = function(e) {
|
|
17271
17271
|
return We(
|
|
17272
17272
|
Do,
|
|
17273
|
-
|
|
17273
|
+
er({ viewBox: "0 0 476 124" }, e),
|
|
17274
17274
|
We("rect", { x: "48", y: "8", width: "88", height: "6", rx: "3" }),
|
|
17275
17275
|
We("rect", { x: "48", y: "26", width: "52", height: "6", rx: "3" }),
|
|
17276
17276
|
We("rect", { x: "0", y: "56", width: "410", height: "6", rx: "3" }),
|
|
@@ -17377,7 +17377,7 @@ const k$ = ({ adaptiveStyles: e }) => {
|
|
|
17377
17377
|
const [n, r] = D.useState({
|
|
17378
17378
|
amount: "",
|
|
17379
17379
|
gateway: ""
|
|
17380
|
-
}), [o, a] = D.useState({}), [i, l] = D.useState(!1), { gatewaysDetail: c, setGatewaysDetail: u, dashInfo: d, balanceSettings: f } = _n(), p = zn(), { notifications: m, setNotifications: y } = Ht(), { setIsOpen: h } =
|
|
17380
|
+
}), [o, a] = D.useState({}), [i, l] = D.useState(!1), { gatewaysDetail: c, setGatewaysDetail: u, dashInfo: d, balanceSettings: f } = _n(), p = zn(), { notifications: m, setNotifications: y } = Ht(), { setIsOpen: h } = sr();
|
|
17381
17381
|
D.useEffect(() => {
|
|
17382
17382
|
c || (async () => {
|
|
17383
17383
|
var Z;
|
|
@@ -17550,7 +17550,7 @@ const k$ = ({ adaptiveStyles: e }) => {
|
|
|
17550
17550
|
}
|
|
17551
17551
|
) });
|
|
17552
17552
|
}, vU = () => {
|
|
17553
|
-
const [e, t] = D.useState([]), { balanceSettings: n, balance: r } = _n(), { page: o, setPage: a } = Io(), { setIsOpen: i } =
|
|
17553
|
+
const [e, t] = D.useState([]), { balanceSettings: n, balance: r } = _n(), { page: o, setPage: a } = Io(), { setIsOpen: i } = sr(), [l, c] = D.useState(!0), [u, d] = D.useState(0), [f, p] = D.useState(!1), [m, y] = D.useState("Newest");
|
|
17554
17554
|
D.useEffect(() => {
|
|
17555
17555
|
a(1);
|
|
17556
17556
|
}, []), D.useEffect(() => {
|
|
@@ -17559,7 +17559,7 @@ const k$ = ({ adaptiveStyles: e }) => {
|
|
|
17559
17559
|
const { list: w, totalCount: S } = await hU(o);
|
|
17560
17560
|
t(w), d(S), c(!1);
|
|
17561
17561
|
})();
|
|
17562
|
-
}, []);
|
|
17562
|
+
}, [o]);
|
|
17563
17563
|
const h = (v, w) => {
|
|
17564
17564
|
var b;
|
|
17565
17565
|
const S = {}, _ = /* @__PURE__ */ new Date(), N = [...v].sort((T, I) => {
|
|
@@ -17754,7 +17754,7 @@ const k$ = ({ adaptiveStyles: e }) => {
|
|
|
17754
17754
|
title: TU
|
|
17755
17755
|
}, jU = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17%202V9.85233L13.5806%2010.9427V6.58116L6.41169%208.82252V4.89257L17%202Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M13.5806%2010.9427L13.5805%2014.691L3%2018V9.79935L6.41169%208.82252L6.41152%2013.2598L13.5806%2010.9427Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", RU = "Billgang", oc = ({ children: e }) => /* @__PURE__ */ s.jsx("div", { className: An.statContainer, children: e }), kU = ({ adaptiveStyles: e }) => {
|
|
17756
17756
|
var c, u;
|
|
17757
|
-
const [t, n] = D.useState(null), { setBalanceSettings: r } = _n(), { pageContext: o } =
|
|
17757
|
+
const [t, n] = D.useState(null), { setBalanceSettings: r } = _n(), { pageContext: o } = ar(), { general: a } = Fc(), { header: i } = rr();
|
|
17758
17758
|
function l(d) {
|
|
17759
17759
|
var m, y;
|
|
17760
17760
|
const f = d == null ? void 0 : d.name, p = (y = (m = o == null ? void 0 : o.listings) == null ? void 0 : m.filter((h) => h.type === "PRODUCT")) == null ? void 0 : y.find((h) => h.productData.name === f);
|
|
@@ -19879,7 +19879,7 @@ const SW = (e) => {
|
|
|
19879
19879
|
/* @__PURE__ */ s.jsx("div", { className: ye.descriptionStep, children: t })
|
|
19880
19880
|
] })
|
|
19881
19881
|
] }), dz = ({ setIsOpen: e, setIsLoading: t }) => {
|
|
19882
|
-
const [n, r] = D.useState(""), [o, a] = D.useState(""), { notifications: i, setNotifications: l } = Ht(), { setIsOpen: c } =
|
|
19882
|
+
const [n, r] = D.useState(""), [o, a] = D.useState(""), { notifications: i, setNotifications: l } = Ht(), { setIsOpen: c } = sr(), u = async (f) => {
|
|
19883
19883
|
if (f.preventDefault(), n.length < 3) {
|
|
19884
19884
|
a("Referral Code should have minimum length of 3");
|
|
19885
19885
|
return;
|
|
@@ -20243,7 +20243,7 @@ const SW = (e) => {
|
|
|
20243
20243
|
) })
|
|
20244
20244
|
] }) : null;
|
|
20245
20245
|
}, hz = ({ setIsOpen: e }) => {
|
|
20246
|
-
const { setIsOpen: t } =
|
|
20246
|
+
const { setIsOpen: t } = sr();
|
|
20247
20247
|
return /* @__PURE__ */ s.jsxs(
|
|
20248
20248
|
"div",
|
|
20249
20249
|
{
|
|
@@ -21352,7 +21352,7 @@ const Nz = {
|
|
|
21352
21352
|
const t = e.type;
|
|
21353
21353
|
return t === De.Text || t === De.Custom || t === De.Serial || t === De.Discord ? /* @__PURE__ */ s.jsx(fq, { deliveryConfiguration: e }) : /* @__PURE__ */ s.jsx(hq, { deliveryConfiguration: e });
|
|
21354
21354
|
}, fq = ({ deliveryConfiguration: e }) => {
|
|
21355
|
-
const t = e.type, [n, r] = nt(!1), { setIsOpen: o } =
|
|
21355
|
+
const t = e.type, [n, r] = nt(!1), { setIsOpen: o } = sr(), a = () => {
|
|
21356
21356
|
o(!0), r(!0);
|
|
21357
21357
|
};
|
|
21358
21358
|
return /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
@@ -21552,7 +21552,7 @@ const Eq = {
|
|
|
21552
21552
|
modal: zq,
|
|
21553
21553
|
header: qq
|
|
21554
21554
|
}, Gq = ({ setIsOpen: e, deliveryConfiguration: t }) => {
|
|
21555
|
-
const n = Ni(), r = t.type === De.Discord, { setIsOpen: o } =
|
|
21555
|
+
const n = Ni(), r = t.type === De.Discord, { setIsOpen: o } = sr(), a = t.type === De.Serial ? t.deliveryItems.map((l) => l.serialKey).join(`
|
|
21556
21556
|
`) : t.deliveryItems[0].textData, i = () => {
|
|
21557
21557
|
o(!1), setTimeout(() => {
|
|
21558
21558
|
e(!1);
|
|
@@ -22284,7 +22284,7 @@ export {
|
|
|
22284
22284
|
Br as G,
|
|
22285
22285
|
zr as H,
|
|
22286
22286
|
W as I,
|
|
22287
|
-
|
|
22287
|
+
sr as J,
|
|
22288
22288
|
YV as K,
|
|
22289
22289
|
bK as L,
|
|
22290
22290
|
Ai as M,
|
|
@@ -22322,7 +22322,7 @@ export {
|
|
|
22322
22322
|
kY as aF,
|
|
22323
22323
|
_n as aG,
|
|
22324
22324
|
jY as aH,
|
|
22325
|
-
|
|
22325
|
+
Xn as aI,
|
|
22326
22326
|
TK as aJ,
|
|
22327
22327
|
Zn as aK,
|
|
22328
22328
|
RK as aL,
|
|
@@ -22350,7 +22350,7 @@ export {
|
|
|
22350
22350
|
LF as ag,
|
|
22351
22351
|
Yl as ah,
|
|
22352
22352
|
Sr as ai,
|
|
22353
|
-
|
|
22353
|
+
rr as aj,
|
|
22354
22354
|
MY as ak,
|
|
22355
22355
|
Yt as al,
|
|
22356
22356
|
RY as am,
|
|
@@ -22364,7 +22364,7 @@ export {
|
|
|
22364
22364
|
VN as au,
|
|
22365
22365
|
Xo as av,
|
|
22366
22366
|
NY as aw,
|
|
22367
|
-
|
|
22367
|
+
lr as ax,
|
|
22368
22368
|
IY as ay,
|
|
22369
22369
|
SK as az,
|
|
22370
22370
|
tH as b,
|
|
@@ -22411,7 +22411,7 @@ export {
|
|
|
22411
22411
|
Ir as o,
|
|
22412
22412
|
nK as p,
|
|
22413
22413
|
qa as q,
|
|
22414
|
-
|
|
22414
|
+
ar as r,
|
|
22415
22415
|
CV as s,
|
|
22416
22416
|
rK as t,
|
|
22417
22417
|
Xu as u,
|