@billgangcom/theme-lib 1.122.1 → 1.123.1
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-BP2NF8ba.cjs → builder-BNQD7fm1.cjs} +13 -13
- package/dist/{builder-DLbxHcGl.js → builder-Cbzb-Pzj.js} +805 -805
- package/dist/{builder-components-CvwzjRgz.js → builder-components-B6Ct-1cI.js} +699 -699
- package/dist/builder-components-B8gWw88v.cjs +5 -0
- package/dist/builder.cjs.js +1 -1
- package/dist/builder.es.js +55 -55
- package/dist/{charge-D4NUd_5K.js → charge-Bv8wu-fV.js} +3413 -3411
- package/dist/{charge-BHOPMu9B.cjs → charge-DcKd_es2.cjs} +38 -38
- package/dist/{checkout-DDFInBAH.cjs → checkout-BQwNBpVW.cjs} +1 -1
- package/dist/{checkout-Be8X_4uK.js → checkout-DkIvY2zs.js} +5 -5
- package/dist/exports.cjs.js +1 -1
- package/dist/exports.es.js +6 -6
- package/dist/{index-BNnvygcY.js → index-BHLQHIsH.js} +2 -2
- package/dist/{index-WepRctI4.js → index-BIfw5wrd.js} +5 -5
- package/dist/{index-DtmPPvyI.cjs → index-BYdRgPyI.cjs} +1 -1
- package/dist/{index-DdeE8DtM.js → index-Bk-mY9E3.js} +5 -5
- package/dist/{index-qS6eq-cu.cjs → index-BnMpELp_.cjs} +1 -1
- package/dist/{index-CpusUNuE.cjs → index-BtqOzf1F.cjs} +1 -1
- package/dist/{index-BFpaF1oT.js → index-C-OH-0Jj.js} +1 -1
- package/dist/{index-nMMf5rX0.js → index-CtZBWOyf.js} +5 -5
- package/dist/{index-An-uLEwq.js → index-D1W9Fza6.js} +5 -5
- package/dist/{index-Dh-QXL4z.cjs → index-DoklSmf4.cjs} +1 -1
- package/dist/{index-DC5b0ag7.cjs → index-DozNvPOR.cjs} +1 -1
- package/dist/{index-x85KH7TY.cjs → index-Dyg2ZZW6.cjs} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/{order-DgGQVpIG.cjs → order-B0gf5VEi.cjs} +1 -1
- package/dist/{order-DnWNBSt4.js → order-S6e2WcCX.js} +5 -5
- package/dist/src/builder/components/ExitButton/index.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{subscription-CU8xIJMY.cjs → subscription-5ytxlwXp.cjs} +1 -1
- package/dist/{subscription-DnmKIrml.js → subscription-HEpvSKgZ.js} +5 -5
- package/dist/{ticket-B6IYS1Cm.cjs → ticket-C5g3kw8c.cjs} +1 -1
- package/dist/{ticket-DWbUjROU.js → ticket-CbQabuyp.js} +5 -5
- package/dist/{top-up-CMYplLen.cjs → top-up-CrbYB293.cjs} +1 -1
- package/dist/{top-up-DwN1AWtR.js → top-up-lubckd9w.js} +5 -5
- package/dist/{ui-components-C-vKKPue.js → ui-components-BhVIVLV-.js} +2214 -2210
- package/dist/ui-components-jkqz3-Kc.cjs +1 -0
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +1 -1
- package/dist/{validation-CHMZxQ3t.cjs → validation-Be-6h5-8.cjs} +1 -1
- package/dist/{validation-AShv6XKA.js → validation-lwFWEACU.js} +5 -5
- package/package.json +1 -1
- package/dist/builder-components-Dc6wkxdX.cjs +0 -5
- package/dist/ui-components-BmZEF6MK.cjs +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as E from "react";
|
|
2
|
-
import _e, { useRef as jr, useEffect as
|
|
3
|
-
import * as
|
|
4
|
-
import { jsx as
|
|
5
|
-
import { I as Wt, B as $r, a as qn, C as
|
|
6
|
-
import { N as
|
|
7
|
-
import "./charge-
|
|
8
|
-
import "./ticket-
|
|
2
|
+
import _e, { useRef as jr, useEffect as Ta } from "react";
|
|
3
|
+
import * as Pa from "react-dom";
|
|
4
|
+
import { jsx as A, jsxs as Re, Fragment as Oa } from "react/jsx-runtime";
|
|
5
|
+
import { I as Wt, B as $r, a as qn, C as Aa, b as Ma, L as Da } from "./ui-components-BhVIVLV-.js";
|
|
6
|
+
import { N as Fa, H as Ia, S as Ba, P as Ha, M as Ua } from "./builder-components-B6Ct-1cI.js";
|
|
7
|
+
import "./charge-Bv8wu-fV.js";
|
|
8
|
+
import "./ticket-CbQabuyp.js";
|
|
9
9
|
/**
|
|
10
10
|
* @remix-run/router v1.23.0
|
|
11
11
|
*
|
|
@@ -31,7 +31,7 @@ var ye;
|
|
|
31
31
|
e.Pop = "POP", e.Push = "PUSH", e.Replace = "REPLACE";
|
|
32
32
|
})(ye || (ye = {}));
|
|
33
33
|
const zr = "popstate";
|
|
34
|
-
function
|
|
34
|
+
function Va(e) {
|
|
35
35
|
e === void 0 && (e = {});
|
|
36
36
|
function t(r, o) {
|
|
37
37
|
let {
|
|
@@ -54,7 +54,7 @@ function Ua(e) {
|
|
|
54
54
|
function n(r, o) {
|
|
55
55
|
return typeof o == "string" ? o : ct(o);
|
|
56
56
|
}
|
|
57
|
-
return
|
|
57
|
+
return $a(t, n, null, e);
|
|
58
58
|
}
|
|
59
59
|
function I(e, t) {
|
|
60
60
|
if (e === !1 || e === null || typeof e > "u")
|
|
@@ -69,7 +69,7 @@ function we(e, t) {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ja() {
|
|
73
73
|
return Math.random().toString(36).substr(2, 8);
|
|
74
74
|
}
|
|
75
75
|
function Jr(e, t) {
|
|
@@ -90,7 +90,7 @@ function Zt(e, t, n, r) {
|
|
|
90
90
|
// full Locations now and avoid the need to run through this flow at all
|
|
91
91
|
// But that's a pretty big refactor to the current test suite so going to
|
|
92
92
|
// keep as is for the time being and just let any incoming keys take precedence
|
|
93
|
-
key: t && t.key || r ||
|
|
93
|
+
key: t && t.key || r || ja()
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function ct(e) {
|
|
@@ -111,7 +111,7 @@ function dt(e) {
|
|
|
111
111
|
}
|
|
112
112
|
return t;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function $a(e, t, n, r) {
|
|
115
115
|
r === void 0 && (r = {});
|
|
116
116
|
let {
|
|
117
117
|
window: o = document.defaultView,
|
|
@@ -127,20 +127,20 @@ function ja(e, t, n, r) {
|
|
|
127
127
|
}
|
|
128
128
|
function d() {
|
|
129
129
|
s = ye.Pop;
|
|
130
|
-
let v = u(),
|
|
130
|
+
let v = u(), x = v == null ? null : v - c;
|
|
131
131
|
c = v, l && l({
|
|
132
132
|
action: s,
|
|
133
133
|
location: p.location,
|
|
134
|
-
delta:
|
|
134
|
+
delta: x
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
|
-
function h(v,
|
|
137
|
+
function h(v, x) {
|
|
138
138
|
s = ye.Push;
|
|
139
|
-
let b = Zt(p.location, v,
|
|
139
|
+
let b = Zt(p.location, v, x);
|
|
140
140
|
c = u() + 1;
|
|
141
|
-
let
|
|
141
|
+
let L = Jr(b, c), _ = p.createHref(b);
|
|
142
142
|
try {
|
|
143
|
-
i.pushState(
|
|
143
|
+
i.pushState(L, "", _);
|
|
144
144
|
} catch (N) {
|
|
145
145
|
if (N instanceof DOMException && N.name === "DataCloneError")
|
|
146
146
|
throw N;
|
|
@@ -152,20 +152,20 @@ function ja(e, t, n, r) {
|
|
|
152
152
|
delta: 1
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
-
function y(v,
|
|
155
|
+
function y(v, x) {
|
|
156
156
|
s = ye.Replace;
|
|
157
|
-
let b = Zt(p.location, v,
|
|
157
|
+
let b = Zt(p.location, v, x);
|
|
158
158
|
c = u();
|
|
159
|
-
let
|
|
160
|
-
i.replaceState(
|
|
159
|
+
let L = Jr(b, c), _ = p.createHref(b);
|
|
160
|
+
i.replaceState(L, "", _), a && l && l({
|
|
161
161
|
action: s,
|
|
162
162
|
location: p.location,
|
|
163
163
|
delta: 0
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
function m(v) {
|
|
167
|
-
let
|
|
168
|
-
return b = b.replace(/ $/, "%20"), I(
|
|
167
|
+
let x = o.location.origin !== "null" ? o.location.origin : o.location.href, b = typeof v == "string" ? v : ct(v);
|
|
168
|
+
return b = b.replace(/ $/, "%20"), I(x, "No window.location.(origin|href) available to create URL for href: " + b), new URL(b, x);
|
|
169
169
|
}
|
|
170
170
|
let p = {
|
|
171
171
|
get action() {
|
|
@@ -186,11 +186,11 @@ function ja(e, t, n, r) {
|
|
|
186
186
|
},
|
|
187
187
|
createURL: m,
|
|
188
188
|
encodeLocation(v) {
|
|
189
|
-
let
|
|
189
|
+
let x = m(v);
|
|
190
190
|
return {
|
|
191
|
-
pathname:
|
|
192
|
-
search:
|
|
193
|
-
hash:
|
|
191
|
+
pathname: x.pathname,
|
|
192
|
+
search: x.search,
|
|
193
|
+
hash: x.hash
|
|
194
194
|
};
|
|
195
195
|
},
|
|
196
196
|
push: h,
|
|
@@ -205,14 +205,14 @@ var oe;
|
|
|
205
205
|
(function(e) {
|
|
206
206
|
e.data = "data", e.deferred = "deferred", e.redirect = "redirect", e.error = "error";
|
|
207
207
|
})(oe || (oe = {}));
|
|
208
|
-
const
|
|
209
|
-
function
|
|
208
|
+
const za = /* @__PURE__ */ new Set(["lazy", "caseSensitive", "path", "id", "index", "children"]);
|
|
209
|
+
function Ja(e) {
|
|
210
210
|
return e.index === !0;
|
|
211
211
|
}
|
|
212
212
|
function Cn(e, t, n, r) {
|
|
213
213
|
return n === void 0 && (n = []), r === void 0 && (r = {}), e.map((o, a) => {
|
|
214
214
|
let i = [...n, String(a)], s = typeof o.id == "string" ? o.id : i.join("-");
|
|
215
|
-
if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`),
|
|
215
|
+
if (I(o.index !== !0 || !o.children, "Cannot specify children on an index route"), I(!r[s], 'Found a route id collision on id "' + s + `". Route id's must be globally unique within Data Router usages`), Ja(o)) {
|
|
216
216
|
let l = fe({}, o, t(o), {
|
|
217
217
|
id: s
|
|
218
218
|
});
|
|
@@ -234,15 +234,15 @@ function gn(e, t, n, r) {
|
|
|
234
234
|
if (a == null)
|
|
235
235
|
return null;
|
|
236
236
|
let i = Oo(e);
|
|
237
|
-
|
|
237
|
+
Za(i);
|
|
238
238
|
let s = null;
|
|
239
239
|
for (let l = 0; s == null && l < i.length; ++l) {
|
|
240
|
-
let c =
|
|
241
|
-
s =
|
|
240
|
+
let c = oi(a);
|
|
241
|
+
s = ni(i[l], c, r);
|
|
242
242
|
}
|
|
243
243
|
return s;
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function Wa(e, t) {
|
|
246
246
|
let {
|
|
247
247
|
route: n,
|
|
248
248
|
pathname: r,
|
|
@@ -274,7 +274,7 @@ function Oo(e, t, n, r) {
|
|
|
274
274
|
"Index routes must not have child routes. Please remove " + ('all child routes from route path "' + c + '".')
|
|
275
275
|
), Oo(a.children, t, u, c)), !(a.path == null && !a.index) && t.push({
|
|
276
276
|
path: c,
|
|
277
|
-
score:
|
|
277
|
+
score: ei(c, a.index),
|
|
278
278
|
routesMeta: u
|
|
279
279
|
});
|
|
280
280
|
};
|
|
@@ -283,28 +283,28 @@ function Oo(e, t, n, r) {
|
|
|
283
283
|
if (a.path === "" || !((s = a.path) != null && s.includes("?")))
|
|
284
284
|
o(a, i);
|
|
285
285
|
else
|
|
286
|
-
for (let l of
|
|
286
|
+
for (let l of Ao(a.path))
|
|
287
287
|
o(a, i, l);
|
|
288
288
|
}), t;
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ao(e) {
|
|
291
291
|
let t = e.split("/");
|
|
292
292
|
if (t.length === 0) return [];
|
|
293
293
|
let [n, ...r] = t, o = n.endsWith("?"), a = n.replace(/\?$/, "");
|
|
294
294
|
if (r.length === 0)
|
|
295
295
|
return o ? [a, ""] : [a];
|
|
296
|
-
let i =
|
|
296
|
+
let i = Ao(r.join("/")), s = [];
|
|
297
297
|
return s.push(...i.map((l) => l === "" ? a : [a, l].join("/"))), o && s.push(...i), s.map((l) => e.startsWith("/") && l === "" ? "/" : l);
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
e.sort((t, n) => t.score !== n.score ? n.score - t.score :
|
|
299
|
+
function Za(e) {
|
|
300
|
+
e.sort((t, n) => t.score !== n.score ? n.score - t.score : ti(t.routesMeta.map((r) => r.childrenIndex), n.routesMeta.map((r) => r.childrenIndex)));
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
302
|
+
const qa = /^:[\w-]+$/, Ka = 3, Ga = 2, Ya = 1, Xa = 10, Qa = -2, Wr = (e) => e === "*";
|
|
303
|
+
function ei(e, t) {
|
|
304
304
|
let n = e.split("/"), r = n.length;
|
|
305
|
-
return n.some(Wr) && (r +=
|
|
305
|
+
return n.some(Wr) && (r += Qa), t && (r += Ga), n.filter((o) => !Wr(o)).reduce((o, a) => o + (qa.test(a) ? Ka : a === "" ? Ya : Xa), r);
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function ti(e, t) {
|
|
308
308
|
return e.length === t.length && e.slice(0, -1).every((r, o) => r === t[o]) ? (
|
|
309
309
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
310
310
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -317,7 +317,7 @@ function ei(e, t) {
|
|
|
317
317
|
0
|
|
318
318
|
);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ni(e, t, n) {
|
|
321
321
|
n === void 0 && (n = !1);
|
|
322
322
|
let {
|
|
323
323
|
routesMeta: r
|
|
@@ -338,7 +338,7 @@ function ti(e, t, n) {
|
|
|
338
338
|
// TODO: Can this as be avoided?
|
|
339
339
|
params: o,
|
|
340
340
|
pathname: Xe([a, d.pathname]),
|
|
341
|
-
pathnameBase:
|
|
341
|
+
pathnameBase: si(Xe([a, d.pathnameBase])),
|
|
342
342
|
route: h
|
|
343
343
|
}), d.pathnameBase !== "/" && (a = Xe([a, d.pathnameBase]));
|
|
344
344
|
}
|
|
@@ -350,7 +350,7 @@ function En(e, t) {
|
|
|
350
350
|
caseSensitive: !1,
|
|
351
351
|
end: !0
|
|
352
352
|
});
|
|
353
|
-
let [n, r] =
|
|
353
|
+
let [n, r] = ri(e.path, e.caseSensitive, e.end), o = t.match(n);
|
|
354
354
|
if (!o) return null;
|
|
355
355
|
let a = o[0], i = a.replace(/(.)\/+$/, "$1"), s = o.slice(1);
|
|
356
356
|
return {
|
|
@@ -371,7 +371,7 @@ function En(e, t) {
|
|
|
371
371
|
pattern: e
|
|
372
372
|
};
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function ri(e, t, n) {
|
|
375
375
|
t === void 0 && (t = !1), n === void 0 && (n = !0), we(e === "*" || !e.endsWith("*") || e.endsWith("/*"), '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(/\*$/, "/*") + '".'));
|
|
376
376
|
let r = [], o = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (i, s, l) => (r.push({
|
|
377
377
|
paramName: s,
|
|
@@ -381,7 +381,7 @@ function ni(e, t, n) {
|
|
|
381
381
|
paramName: "*"
|
|
382
382
|
}), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), r];
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function oi(e) {
|
|
385
385
|
try {
|
|
386
386
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
387
387
|
} catch (t) {
|
|
@@ -395,7 +395,7 @@ function Je(e, t) {
|
|
|
395
395
|
let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
|
|
396
396
|
return r && r !== "/" ? null : e.slice(n) || "/";
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function ai(e, t) {
|
|
399
399
|
t === void 0 && (t = "/");
|
|
400
400
|
let {
|
|
401
401
|
pathname: n,
|
|
@@ -403,12 +403,12 @@ function oi(e, t) {
|
|
|
403
403
|
hash: o = ""
|
|
404
404
|
} = typeof e == "string" ? dt(e) : e;
|
|
405
405
|
return {
|
|
406
|
-
pathname: n ? n.startsWith("/") ? n :
|
|
407
|
-
search:
|
|
408
|
-
hash:
|
|
406
|
+
pathname: n ? n.startsWith("/") ? n : ii(n, t) : t,
|
|
407
|
+
search: li(r),
|
|
408
|
+
hash: ci(o)
|
|
409
409
|
};
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function ii(e, t) {
|
|
412
412
|
let n = t.replace(/\/+$/, "").split("/");
|
|
413
413
|
return e.split("/").forEach((o) => {
|
|
414
414
|
o === ".." ? n.length > 1 && n.pop() : o !== "." && n.push(o);
|
|
@@ -417,11 +417,11 @@ function ai(e, t) {
|
|
|
417
417
|
function Kn(e, t, n, r) {
|
|
418
418
|
return "Cannot include a '" + e + "' character in a manually specified " + ("`to." + t + "` field [" + JSON.stringify(r) + "]. Please separate it out to the ") + ("`to." + n + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function Mo(e) {
|
|
421
421
|
return e.filter((t, n) => n === 0 || t.route.path && t.route.path.length > 0);
|
|
422
422
|
}
|
|
423
423
|
function Tn(e, t) {
|
|
424
|
-
let n =
|
|
424
|
+
let n = Mo(e);
|
|
425
425
|
return t ? n.map((r, o) => o === n.length - 1 ? r.pathname : r.pathnameBase) : n.map((r) => r.pathnameBase);
|
|
426
426
|
}
|
|
427
427
|
function Pn(e, t, n, r) {
|
|
@@ -441,10 +441,10 @@ function Pn(e, t, n, r) {
|
|
|
441
441
|
}
|
|
442
442
|
s = d >= 0 ? t[d] : "/";
|
|
443
443
|
}
|
|
444
|
-
let l =
|
|
444
|
+
let l = ai(o, s), c = i && i !== "/" && i.endsWith("/"), u = (a || i === ".") && n.endsWith("/");
|
|
445
445
|
return !l.pathname.endsWith("/") && (c || u) && (l.pathname += "/"), l;
|
|
446
446
|
}
|
|
447
|
-
const Xe = (e) => e.join("/").replace(/\/\/+/g, "/"),
|
|
447
|
+
const Xe = (e) => e.join("/").replace(/\/\/+/g, "/"), si = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, ci = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
448
448
|
class Rn {
|
|
449
449
|
constructor(t, n, r, o) {
|
|
450
450
|
o === void 0 && (o = !1), this.status = t, this.statusText = n || "", this.internal = o, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
@@ -453,7 +453,7 @@ class Rn {
|
|
|
453
453
|
function qt(e) {
|
|
454
454
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
455
455
|
}
|
|
456
|
-
const Do = ["post", "put", "patch", "delete"],
|
|
456
|
+
const Do = ["post", "put", "patch", "delete"], ui = new Set(Do), di = ["get", ...Do], fi = new Set(di), hi = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]), pi = /* @__PURE__ */ new Set([307, 308]), Gn = {
|
|
457
457
|
state: "idle",
|
|
458
458
|
location: void 0,
|
|
459
459
|
formMethod: void 0,
|
|
@@ -462,7 +462,7 @@ const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ..
|
|
|
462
462
|
formData: void 0,
|
|
463
463
|
json: void 0,
|
|
464
464
|
text: void 0
|
|
465
|
-
},
|
|
465
|
+
}, mi = {
|
|
466
466
|
state: "idle",
|
|
467
467
|
data: void 0,
|
|
468
468
|
formMethod: void 0,
|
|
@@ -476,10 +476,10 @@ const Do = ["post", "put", "patch", "delete"], ci = new Set(Do), ui = ["get", ..
|
|
|
476
476
|
proceed: void 0,
|
|
477
477
|
reset: void 0,
|
|
478
478
|
location: void 0
|
|
479
|
-
}, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,
|
|
479
|
+
}, Cr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, gi = (e) => ({
|
|
480
480
|
hasErrorBoundary: !!e.hasErrorBoundary
|
|
481
481
|
}), Fo = "remix-router-transitions";
|
|
482
|
-
function
|
|
482
|
+
function vi(e) {
|
|
483
483
|
const t = e.window ? e.window : typeof window < "u" ? window : void 0, n = typeof t < "u" && typeof t.document < "u" && typeof t.document.createElement < "u", r = !n;
|
|
484
484
|
I(e.routes.length > 0, "You must provide a non-empty routes array to createRouter");
|
|
485
485
|
let o;
|
|
@@ -491,17 +491,17 @@ function gi(e) {
|
|
|
491
491
|
hasErrorBoundary: f(g)
|
|
492
492
|
});
|
|
493
493
|
} else
|
|
494
|
-
o =
|
|
495
|
-
let a = {}, i = Cn(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy ||
|
|
494
|
+
o = gi;
|
|
495
|
+
let a = {}, i = Cn(e.routes, o, void 0, a), s, l = e.basename || "/", c = e.dataStrategy || Si, u = e.patchRoutesOnNavigation, d = fe({
|
|
496
496
|
v7_fetcherPersist: !1,
|
|
497
497
|
v7_normalizeFormMethod: !1,
|
|
498
498
|
v7_partialHydration: !1,
|
|
499
499
|
v7_prependBasename: !1,
|
|
500
500
|
v7_relativeSplatPath: !1,
|
|
501
501
|
v7_skipActionErrorRevalidation: !1
|
|
502
|
-
}, e.future), h = null, y = /* @__PURE__ */ new Set(), m = null, p = null, v = null,
|
|
502
|
+
}, e.future), h = null, y = /* @__PURE__ */ new Set(), m = null, p = null, v = null, x = e.hydrationData != null, b = mt(i, e.history.location, l), L = !1, _ = null;
|
|
503
503
|
if (b == null && !u) {
|
|
504
|
-
let f =
|
|
504
|
+
let f = Me(404, {
|
|
505
505
|
pathname: e.history.location.pathname
|
|
506
506
|
}), {
|
|
507
507
|
matches: g,
|
|
@@ -529,7 +529,7 @@ function gi(e) {
|
|
|
529
529
|
N = e.hydrationData != null;
|
|
530
530
|
else if (N = !1, b = [], d.v7_partialHydration) {
|
|
531
531
|
let f = sn(null, i, e.history.location.pathname);
|
|
532
|
-
f.active && f.matches && (
|
|
532
|
+
f.active && f.matches && (L = !0, b = f.matches);
|
|
533
533
|
}
|
|
534
534
|
let U, w = {
|
|
535
535
|
historyAction: e.history.action,
|
|
@@ -546,7 +546,7 @@ function gi(e) {
|
|
|
546
546
|
errors: e.hydrationData && e.hydrationData.errors || _,
|
|
547
547
|
fetchers: /* @__PURE__ */ new Map(),
|
|
548
548
|
blockers: /* @__PURE__ */ new Map()
|
|
549
|
-
}, T = ye.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Te = [], Ze = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(),
|
|
549
|
+
}, T = ye.Pop, K = !1, B, ae = !1, ee = /* @__PURE__ */ new Map(), te = null, he = !1, Oe = !1, Te = [], Ze = /* @__PURE__ */ new Set(), ce = /* @__PURE__ */ new Map(), xe = 0, Se = -1, be = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), pe = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new Map(), ft;
|
|
550
550
|
function en() {
|
|
551
551
|
if (h = e.history.listen((f) => {
|
|
552
552
|
let {
|
|
@@ -559,20 +559,20 @@ function gi(e) {
|
|
|
559
559
|
return;
|
|
560
560
|
}
|
|
561
561
|
we(Ce.size === 0 || R != null, "You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");
|
|
562
|
-
let
|
|
562
|
+
let k = Br({
|
|
563
563
|
currentLocation: w.location,
|
|
564
564
|
nextLocation: S,
|
|
565
565
|
historyAction: g
|
|
566
566
|
});
|
|
567
|
-
if (
|
|
567
|
+
if (k && R != null) {
|
|
568
568
|
let F = new Promise((H) => {
|
|
569
569
|
ft = H;
|
|
570
570
|
});
|
|
571
|
-
e.history.go(R * -1), an(
|
|
571
|
+
e.history.go(R * -1), an(k, {
|
|
572
572
|
state: "blocked",
|
|
573
573
|
location: S,
|
|
574
574
|
proceed() {
|
|
575
|
-
an(
|
|
575
|
+
an(k, {
|
|
576
576
|
state: "proceeding",
|
|
577
577
|
proceed: void 0,
|
|
578
578
|
reset: void 0,
|
|
@@ -581,7 +581,7 @@ function gi(e) {
|
|
|
581
581
|
},
|
|
582
582
|
reset() {
|
|
583
583
|
let H = new Map(w.blockers);
|
|
584
|
-
H.set(
|
|
584
|
+
H.set(k, Ft), Ee({
|
|
585
585
|
blockers: H
|
|
586
586
|
});
|
|
587
587
|
}
|
|
@@ -590,8 +590,8 @@ function gi(e) {
|
|
|
590
590
|
}
|
|
591
591
|
return qe(g, S);
|
|
592
592
|
}), n) {
|
|
593
|
-
|
|
594
|
-
let f = () =>
|
|
593
|
+
Di(t, ee);
|
|
594
|
+
let f = () => Fi(t, ee);
|
|
595
595
|
t.addEventListener("pagehide", f), te = () => t.removeEventListener("pagehide", f);
|
|
596
596
|
}
|
|
597
597
|
return w.initialized || qe(ye.Pop, w.location, {
|
|
@@ -607,25 +607,25 @@ function gi(e) {
|
|
|
607
607
|
function Ee(f, g) {
|
|
608
608
|
g === void 0 && (g = {}), w = fe({}, w, f);
|
|
609
609
|
let S = [], R = [];
|
|
610
|
-
d.v7_fetcherPersist && w.fetchers.forEach((
|
|
611
|
-
|
|
612
|
-
}), pe.forEach((
|
|
613
|
-
!w.fetchers.has(
|
|
614
|
-
}), [...y].forEach((
|
|
610
|
+
d.v7_fetcherPersist && w.fetchers.forEach((k, F) => {
|
|
611
|
+
k.state === "idle" && (pe.has(F) ? R.push(F) : S.push(F));
|
|
612
|
+
}), pe.forEach((k) => {
|
|
613
|
+
!w.fetchers.has(k) && !ce.has(k) && R.push(k);
|
|
614
|
+
}), [...y].forEach((k) => k(w, {
|
|
615
615
|
deletedFetchers: R,
|
|
616
616
|
viewTransitionOpts: g.viewTransitionOpts,
|
|
617
617
|
flushSync: g.flushSync === !0
|
|
618
|
-
})), d.v7_fetcherPersist ? (S.forEach((
|
|
618
|
+
})), d.v7_fetcherPersist ? (S.forEach((k) => w.fetchers.delete(k)), R.forEach((k) => on(k))) : R.forEach((k) => pe.delete(k));
|
|
619
619
|
}
|
|
620
620
|
function et(f, g, S) {
|
|
621
|
-
var R,
|
|
621
|
+
var R, k;
|
|
622
622
|
let {
|
|
623
623
|
flushSync: F
|
|
624
624
|
} = S === void 0 ? {} : S, H = w.actionData != null && w.navigation.formMethod != null && ze(w.navigation.formMethod) && w.navigation.state === "loading" && ((R = f.state) == null ? void 0 : R._isRedirect) !== !0, O;
|
|
625
625
|
g.actionData ? Object.keys(g.actionData).length > 0 ? O = g.actionData : O = null : H ? O = w.actionData : O = null;
|
|
626
|
-
let
|
|
627
|
-
P.size > 0 && (P = new Map(P), P.forEach((Y,
|
|
628
|
-
let D = K === !0 || w.navigation.formMethod != null && ze(w.navigation.formMethod) && ((
|
|
626
|
+
let M = g.loaderData ? to(w.loaderData, g.loaderData, g.matches || [], g.errors) : w.loaderData, P = w.blockers;
|
|
627
|
+
P.size > 0 && (P = new Map(P), P.forEach((Y, Le) => P.set(Le, Ft)));
|
|
628
|
+
let D = K === !0 || w.navigation.formMethod != null && ze(w.navigation.formMethod) && ((k = f.state) == null ? void 0 : k._isRedirect) !== !0;
|
|
629
629
|
s && (i = s, s = void 0), he || T === ye.Pop || (T === ye.Push ? e.history.push(f, f.state) : T === ye.Replace && e.history.replace(f, f.state));
|
|
630
630
|
let J;
|
|
631
631
|
if (T === ye.Pop) {
|
|
@@ -646,7 +646,7 @@ function gi(e) {
|
|
|
646
646
|
}
|
|
647
647
|
Ee(fe({}, g, {
|
|
648
648
|
actionData: O,
|
|
649
|
-
loaderData:
|
|
649
|
+
loaderData: M,
|
|
650
650
|
historyAction: T,
|
|
651
651
|
location: f,
|
|
652
652
|
initialized: !0,
|
|
@@ -667,12 +667,12 @@ function gi(e) {
|
|
|
667
667
|
}
|
|
668
668
|
let S = sr(w.location, w.matches, l, d.v7_prependBasename, f, d.v7_relativeSplatPath, g == null ? void 0 : g.fromRouteId, g == null ? void 0 : g.relative), {
|
|
669
669
|
path: R,
|
|
670
|
-
submission:
|
|
670
|
+
submission: k,
|
|
671
671
|
error: F
|
|
672
672
|
} = Zr(d.v7_normalizeFormMethod, !1, S, g), H = w.location, O = Zt(w.location, R, g && g.state);
|
|
673
673
|
O = fe({}, O, e.history.encodeLocation(O));
|
|
674
|
-
let
|
|
675
|
-
|
|
674
|
+
let M = g && g.replace != null ? g.replace : void 0, P = ye.Push;
|
|
675
|
+
M === !0 ? P = ye.Replace : M === !1 || k != null && ze(k.formMethod) && k.formAction === w.location.pathname + w.location.search && (P = ye.Replace);
|
|
676
676
|
let D = g && "preventScrollReset" in g ? g.preventScrollReset === !0 : void 0, J = (g && g.flushSync) === !0, Y = Br({
|
|
677
677
|
currentLocation: H,
|
|
678
678
|
nextLocation: O,
|
|
@@ -691,16 +691,16 @@ function gi(e) {
|
|
|
691
691
|
}), nn(f, g);
|
|
692
692
|
},
|
|
693
693
|
reset() {
|
|
694
|
-
let
|
|
695
|
-
|
|
696
|
-
blockers:
|
|
694
|
+
let Le = new Map(w.blockers);
|
|
695
|
+
Le.set(Y, Ft), Ee({
|
|
696
|
+
blockers: Le
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
702
702
|
return await qe(P, O, {
|
|
703
|
-
submission:
|
|
703
|
+
submission: k,
|
|
704
704
|
// Send through the formData serialization error if we have one so we can
|
|
705
705
|
// render at the right error boundary after we match routes
|
|
706
706
|
pendingError: F,
|
|
@@ -728,12 +728,12 @@ function gi(e) {
|
|
|
728
728
|
}
|
|
729
729
|
}
|
|
730
730
|
async function qe(f, g, S) {
|
|
731
|
-
B && B.abort(), B = null, T = f, he = (S && S.startUninterruptedRevalidation) === !0,
|
|
732
|
-
let R = s || i,
|
|
731
|
+
B && B.abort(), B = null, T = f, he = (S && S.startUninterruptedRevalidation) === !0, La(w.location, w.matches), K = (S && S.preventScrollReset) === !0, ae = (S && S.enableViewTransition) === !0;
|
|
732
|
+
let R = s || i, k = S && S.overrideNavigation, F = S != null && S.initialHydration && w.matches && w.matches.length > 0 && !L ? (
|
|
733
733
|
// `matchRoutes()` has already been called if we're in here via `router.initialize()`
|
|
734
734
|
w.matches
|
|
735
735
|
) : mt(R, g, l), H = (S && S.flushSync) === !0;
|
|
736
|
-
if (F && w.initialized && !Oe &&
|
|
736
|
+
if (F && w.initialized && !Oe && ki(w.location, g) && !(S && S.submission && ze(S.submission.formMethod))) {
|
|
737
737
|
et(g, {
|
|
738
738
|
matches: F
|
|
739
739
|
}, {
|
|
@@ -760,14 +760,14 @@ function gi(e) {
|
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
B = new AbortController();
|
|
763
|
-
let
|
|
763
|
+
let M = Rt(e.history, g, B.signal, S && S.submission), P;
|
|
764
764
|
if (S && S.pendingError)
|
|
765
765
|
P = [gt(F).route.id, {
|
|
766
766
|
type: oe.error,
|
|
767
767
|
error: S.pendingError
|
|
768
768
|
}];
|
|
769
769
|
else if (S && S.submission && ze(S.submission.formMethod)) {
|
|
770
|
-
let le = await j(
|
|
770
|
+
let le = await j(M, g, S.submission, F, O.active, {
|
|
771
771
|
replace: S.replace,
|
|
772
772
|
flushSync: H
|
|
773
773
|
});
|
|
@@ -786,29 +786,29 @@ function gi(e) {
|
|
|
786
786
|
return;
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
|
-
F = le.matches || F, P = le.pendingActionResult,
|
|
789
|
+
F = le.matches || F, P = le.pendingActionResult, k = Yn(g, S.submission), H = !1, O.active = !1, M = Rt(e.history, M.url, M.signal);
|
|
790
790
|
}
|
|
791
791
|
let {
|
|
792
792
|
shortCircuited: D,
|
|
793
793
|
matches: J,
|
|
794
794
|
loaderData: Y,
|
|
795
|
-
errors:
|
|
796
|
-
} = await V(
|
|
795
|
+
errors: Le
|
|
796
|
+
} = await V(M, g, F, O.active, k, S && S.submission, S && S.fetcherSubmission, S && S.replace, S && S.initialHydration === !0, H, P);
|
|
797
797
|
D || (B = null, et(g, fe({
|
|
798
798
|
matches: J || F
|
|
799
799
|
}, no(P), {
|
|
800
800
|
loaderData: Y,
|
|
801
|
-
errors:
|
|
801
|
+
errors: Le
|
|
802
802
|
})));
|
|
803
803
|
}
|
|
804
|
-
async function j(f, g, S, R,
|
|
804
|
+
async function j(f, g, S, R, k, F) {
|
|
805
805
|
F === void 0 && (F = {}), ht();
|
|
806
|
-
let H =
|
|
806
|
+
let H = Ai(g, S);
|
|
807
807
|
if (Ee({
|
|
808
808
|
navigation: H
|
|
809
809
|
}, {
|
|
810
810
|
flushSync: F.flushSync === !0
|
|
811
|
-
}),
|
|
811
|
+
}), k) {
|
|
812
812
|
let P = await ln(R, g.pathname, f.signal);
|
|
813
813
|
if (P.type === "aborted")
|
|
814
814
|
return {
|
|
@@ -840,17 +840,17 @@ function gi(e) {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
let O,
|
|
844
|
-
if (!
|
|
843
|
+
let O, M = $t(R, g);
|
|
844
|
+
if (!M.route.action && !M.route.lazy)
|
|
845
845
|
O = {
|
|
846
846
|
type: oe.error,
|
|
847
|
-
error:
|
|
847
|
+
error: Me(405, {
|
|
848
848
|
method: f.method,
|
|
849
849
|
pathname: g.pathname,
|
|
850
|
-
routeId:
|
|
850
|
+
routeId: M.route.id
|
|
851
851
|
})
|
|
852
852
|
};
|
|
853
|
-
else if (O = (await ue("action", w, f, [
|
|
853
|
+
else if (O = (await ue("action", w, f, [M], R, null))[M.route.id], f.signal.aborted)
|
|
854
854
|
return {
|
|
855
855
|
shortCircuited: !0
|
|
856
856
|
};
|
|
@@ -864,11 +864,11 @@ function gi(e) {
|
|
|
864
864
|
};
|
|
865
865
|
}
|
|
866
866
|
if (lt(O))
|
|
867
|
-
throw
|
|
867
|
+
throw Me(400, {
|
|
868
868
|
type: "defer-action"
|
|
869
869
|
});
|
|
870
870
|
if (Ie(O)) {
|
|
871
|
-
let P = gt(R,
|
|
871
|
+
let P = gt(R, M.route.id);
|
|
872
872
|
return (F && F.replace) !== !0 && (T = ye.Push), {
|
|
873
873
|
matches: R,
|
|
874
874
|
pendingActionResult: [P.route.id, O]
|
|
@@ -876,13 +876,13 @@ function gi(e) {
|
|
|
876
876
|
}
|
|
877
877
|
return {
|
|
878
878
|
matches: R,
|
|
879
|
-
pendingActionResult: [
|
|
879
|
+
pendingActionResult: [M.route.id, O]
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
async function V(f, g, S, R,
|
|
883
|
-
let J =
|
|
882
|
+
async function V(f, g, S, R, k, F, H, O, M, P, D) {
|
|
883
|
+
let J = k || Yn(g, F), Y = F || H || ao(J), Le = !he && (!d.v7_partialHydration || !M);
|
|
884
884
|
if (R) {
|
|
885
|
-
if (
|
|
885
|
+
if (Le) {
|
|
886
886
|
let ge = ne(D);
|
|
887
887
|
Ee(fe({
|
|
888
888
|
navigation: J
|
|
@@ -923,8 +923,8 @@ function gi(e) {
|
|
|
923
923
|
};
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
|
-
let le = s || i, [Q, me] = Kr(e.history, w, S, Y, g, d.v7_partialHydration &&
|
|
927
|
-
if (Wn((X) => !(S && S.some((ge) => ge.route.id === X)) || Q && Q.some((ge) => ge.route.id === X)), Se = ++
|
|
926
|
+
let le = s || i, [Q, me] = Kr(e.history, w, S, Y, g, d.v7_partialHydration && M === !0, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, le, l, D);
|
|
927
|
+
if (Wn((X) => !(S && S.some((ge) => ge.route.id === X)) || Q && Q.some((ge) => ge.route.id === X)), Se = ++xe, Q.length === 0 && me.length === 0) {
|
|
928
928
|
let X = Dr();
|
|
929
929
|
return et(g, fe({
|
|
930
930
|
matches: S,
|
|
@@ -941,7 +941,7 @@ function gi(e) {
|
|
|
941
941
|
shortCircuited: !0
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
if (
|
|
944
|
+
if (Le) {
|
|
945
945
|
let X = {};
|
|
946
946
|
if (!R) {
|
|
947
947
|
X.navigation = J;
|
|
@@ -958,7 +958,7 @@ function gi(e) {
|
|
|
958
958
|
let St = () => me.forEach((X) => ot(X.key));
|
|
959
959
|
B && B.signal.addEventListener("abort", St);
|
|
960
960
|
let {
|
|
961
|
-
loaderResults:
|
|
961
|
+
loaderResults: At,
|
|
962
962
|
fetcherResults: rt
|
|
963
963
|
} = await tt(w, S, Q, me, f);
|
|
964
964
|
if (f.signal.aborted)
|
|
@@ -966,7 +966,7 @@ function gi(e) {
|
|
|
966
966
|
shortCircuited: !0
|
|
967
967
|
};
|
|
968
968
|
B && B.signal.removeEventListener("abort", St), me.forEach((X) => ce.delete(X.key));
|
|
969
|
-
let Ge = dn(
|
|
969
|
+
let Ge = dn(At);
|
|
970
970
|
if (Ge)
|
|
971
971
|
return await q(f, Ge.result, !0, {
|
|
972
972
|
replace: O
|
|
@@ -981,18 +981,18 @@ function gi(e) {
|
|
|
981
981
|
};
|
|
982
982
|
let {
|
|
983
983
|
loaderData: Zn,
|
|
984
|
-
errors:
|
|
985
|
-
} = eo(w, S,
|
|
986
|
-
|
|
984
|
+
errors: Mt
|
|
985
|
+
} = eo(w, S, At, D, me, rt, Ae);
|
|
986
|
+
Ae.forEach((X, ge) => {
|
|
987
987
|
X.subscribe((Ct) => {
|
|
988
|
-
(Ct || X.done) &&
|
|
988
|
+
(Ct || X.done) && Ae.delete(ge);
|
|
989
989
|
});
|
|
990
|
-
}), d.v7_partialHydration &&
|
|
990
|
+
}), d.v7_partialHydration && M && w.errors && (Mt = fe({}, w.errors, Mt));
|
|
991
991
|
let pt = Dr(), cn = Fr(Se), un = pt || cn || me.length > 0;
|
|
992
992
|
return fe({
|
|
993
993
|
matches: S,
|
|
994
994
|
loaderData: Zn,
|
|
995
|
-
errors:
|
|
995
|
+
errors: Mt
|
|
996
996
|
}, un ? {
|
|
997
997
|
fetchers: new Map(w.fetchers)
|
|
998
998
|
} : {});
|
|
@@ -1015,12 +1015,12 @@ function gi(e) {
|
|
|
1015
1015
|
if (r)
|
|
1016
1016
|
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.");
|
|
1017
1017
|
ot(f);
|
|
1018
|
-
let
|
|
1019
|
-
if (
|
|
1020
|
-
nt(f, g,
|
|
1018
|
+
let k = (R && R.flushSync) === !0, F = s || i, H = sr(w.location, w.matches, l, d.v7_prependBasename, S, d.v7_relativeSplatPath, g, R == null ? void 0 : R.relative), O = mt(F, H, l), M = sn(O, F, H);
|
|
1019
|
+
if (M.active && M.matches && (O = M.matches), !O) {
|
|
1020
|
+
nt(f, g, Me(404, {
|
|
1021
1021
|
pathname: H
|
|
1022
1022
|
}), {
|
|
1023
|
-
flushSync:
|
|
1023
|
+
flushSync: k
|
|
1024
1024
|
});
|
|
1025
1025
|
return;
|
|
1026
1026
|
}
|
|
@@ -1031,26 +1031,26 @@ function gi(e) {
|
|
|
1031
1031
|
} = Zr(d.v7_normalizeFormMethod, !0, H, R);
|
|
1032
1032
|
if (J) {
|
|
1033
1033
|
nt(f, g, J, {
|
|
1034
|
-
flushSync:
|
|
1034
|
+
flushSync: k
|
|
1035
1035
|
});
|
|
1036
1036
|
return;
|
|
1037
1037
|
}
|
|
1038
|
-
let Y = $t(O, P),
|
|
1038
|
+
let Y = $t(O, P), Le = (R && R.preventScrollReset) === !0;
|
|
1039
1039
|
if (D && ze(D.formMethod)) {
|
|
1040
|
-
W(f, g, P, Y, O,
|
|
1040
|
+
W(f, g, P, Y, O, M.active, k, Le, D);
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
1043
1043
|
He.set(f, {
|
|
1044
1044
|
routeId: g,
|
|
1045
1045
|
path: P
|
|
1046
|
-
}), re(f, g, P, Y, O,
|
|
1046
|
+
}), re(f, g, P, Y, O, M.active, k, Le, D);
|
|
1047
1047
|
}
|
|
1048
|
-
async function W(f, g, S, R,
|
|
1048
|
+
async function W(f, g, S, R, k, F, H, O, M) {
|
|
1049
1049
|
ht(), He.delete(f);
|
|
1050
1050
|
function P(ve) {
|
|
1051
1051
|
if (!ve.route.action && !ve.route.lazy) {
|
|
1052
|
-
let Et =
|
|
1053
|
-
method:
|
|
1052
|
+
let Et = Me(405, {
|
|
1053
|
+
method: M.formMethod,
|
|
1054
1054
|
pathname: S,
|
|
1055
1055
|
routeId: g
|
|
1056
1056
|
});
|
|
@@ -1063,12 +1063,12 @@ function gi(e) {
|
|
|
1063
1063
|
if (!F && P(R))
|
|
1064
1064
|
return;
|
|
1065
1065
|
let D = w.fetchers.get(f);
|
|
1066
|
-
Ke(f, Mi(
|
|
1066
|
+
Ke(f, Mi(M, D), {
|
|
1067
1067
|
flushSync: H
|
|
1068
1068
|
});
|
|
1069
|
-
let J = new AbortController(), Y = Rt(e.history, S, J.signal,
|
|
1069
|
+
let J = new AbortController(), Y = Rt(e.history, S, J.signal, M);
|
|
1070
1070
|
if (F) {
|
|
1071
|
-
let ve = await ln(
|
|
1071
|
+
let ve = await ln(k, new URL(Y.url).pathname, Y.signal, f);
|
|
1072
1072
|
if (ve.type === "aborted")
|
|
1073
1073
|
return;
|
|
1074
1074
|
if (ve.type === "error") {
|
|
@@ -1077,10 +1077,10 @@ function gi(e) {
|
|
|
1077
1077
|
});
|
|
1078
1078
|
return;
|
|
1079
1079
|
} else if (ve.matches) {
|
|
1080
|
-
if (
|
|
1080
|
+
if (k = ve.matches, R = $t(k, S), P(R))
|
|
1081
1081
|
return;
|
|
1082
1082
|
} else {
|
|
1083
|
-
nt(f, g,
|
|
1083
|
+
nt(f, g, Me(404, {
|
|
1084
1084
|
pathname: S
|
|
1085
1085
|
}), {
|
|
1086
1086
|
flushSync: H
|
|
@@ -1089,7 +1089,7 @@ function gi(e) {
|
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
ce.set(f, J);
|
|
1092
|
-
let
|
|
1092
|
+
let Le = xe, Q = (await ue("action", w, Y, [R], k, f))[R.route.id];
|
|
1093
1093
|
if (Y.signal.aborted) {
|
|
1094
1094
|
ce.get(f) === J && ce.delete(f);
|
|
1095
1095
|
return;
|
|
@@ -1101,12 +1101,12 @@ function gi(e) {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
} else {
|
|
1103
1103
|
if (vt(Q))
|
|
1104
|
-
if (ce.delete(f), Se >
|
|
1104
|
+
if (ce.delete(f), Se > Le) {
|
|
1105
1105
|
Ke(f, at(void 0));
|
|
1106
1106
|
return;
|
|
1107
1107
|
} else
|
|
1108
|
-
return Pe.add(f), Ke(f, It(
|
|
1109
|
-
fetcherSubmission:
|
|
1108
|
+
return Pe.add(f), Ke(f, It(M)), q(Y, Q, !1, {
|
|
1109
|
+
fetcherSubmission: M,
|
|
1110
1110
|
preventScrollReset: O
|
|
1111
1111
|
});
|
|
1112
1112
|
if (Ie(Q)) {
|
|
@@ -1115,19 +1115,19 @@ function gi(e) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
}
|
|
1117
1117
|
if (lt(Q))
|
|
1118
|
-
throw
|
|
1118
|
+
throw Me(400, {
|
|
1119
1119
|
type: "defer-action"
|
|
1120
1120
|
});
|
|
1121
|
-
let me = w.navigation.location || w.location, St = Rt(e.history, me, J.signal),
|
|
1121
|
+
let me = w.navigation.location || w.location, St = Rt(e.history, me, J.signal), At = s || i, rt = w.navigation.state !== "idle" ? mt(At, w.navigation.location, l) : w.matches;
|
|
1122
1122
|
I(rt, "Didn't find any matches after fetcher action");
|
|
1123
|
-
let Ge = ++
|
|
1123
|
+
let Ge = ++xe;
|
|
1124
1124
|
be.set(f, Ge);
|
|
1125
|
-
let Zn = It(
|
|
1125
|
+
let Zn = It(M, Q.data);
|
|
1126
1126
|
w.fetchers.set(f, Zn);
|
|
1127
|
-
let [
|
|
1127
|
+
let [Mt, pt] = Kr(e.history, w, rt, M, me, !1, d.v7_skipActionErrorRevalidation, Oe, Te, Ze, pe, He, Pe, At, l, [R.route.id, Q]);
|
|
1128
1128
|
pt.filter((ve) => ve.key !== f).forEach((ve) => {
|
|
1129
|
-
let Et = ve.key, Vr = w.fetchers.get(Et),
|
|
1130
|
-
w.fetchers.set(Et,
|
|
1129
|
+
let Et = ve.key, Vr = w.fetchers.get(Et), _a = It(void 0, Vr ? Vr.data : void 0);
|
|
1130
|
+
w.fetchers.set(Et, _a), ot(Et), ve.controller && ce.set(Et, ve.controller);
|
|
1131
1131
|
}), Ee({
|
|
1132
1132
|
fetchers: new Map(w.fetchers)
|
|
1133
1133
|
});
|
|
@@ -1136,7 +1136,7 @@ function gi(e) {
|
|
|
1136
1136
|
let {
|
|
1137
1137
|
loaderResults: un,
|
|
1138
1138
|
fetcherResults: X
|
|
1139
|
-
} = await tt(w, rt,
|
|
1139
|
+
} = await tt(w, rt, Mt, pt, St);
|
|
1140
1140
|
if (J.signal.aborted)
|
|
1141
1141
|
return;
|
|
1142
1142
|
J.signal.removeEventListener("abort", cn), be.delete(f), ce.delete(f), pt.forEach((ve) => ce.delete(ve.key));
|
|
@@ -1152,7 +1152,7 @@ function gi(e) {
|
|
|
1152
1152
|
let {
|
|
1153
1153
|
loaderData: Ct,
|
|
1154
1154
|
errors: Dt
|
|
1155
|
-
} = eo(w, rt, un, void 0, pt, X,
|
|
1155
|
+
} = eo(w, rt, un, void 0, pt, X, Ae);
|
|
1156
1156
|
if (w.fetchers.has(f)) {
|
|
1157
1157
|
let ve = at(Q.data);
|
|
1158
1158
|
w.fetchers.set(f, ve);
|
|
@@ -1168,14 +1168,14 @@ function gi(e) {
|
|
|
1168
1168
|
fetchers: new Map(w.fetchers)
|
|
1169
1169
|
}), Oe = !1);
|
|
1170
1170
|
}
|
|
1171
|
-
async function re(f, g, S, R,
|
|
1171
|
+
async function re(f, g, S, R, k, F, H, O, M) {
|
|
1172
1172
|
let P = w.fetchers.get(f);
|
|
1173
|
-
Ke(f, It(
|
|
1173
|
+
Ke(f, It(M, P ? P.data : void 0), {
|
|
1174
1174
|
flushSync: H
|
|
1175
1175
|
});
|
|
1176
1176
|
let D = new AbortController(), J = Rt(e.history, S, D.signal);
|
|
1177
1177
|
if (F) {
|
|
1178
|
-
let Q = await ln(
|
|
1178
|
+
let Q = await ln(k, new URL(J.url).pathname, J.signal, f);
|
|
1179
1179
|
if (Q.type === "aborted")
|
|
1180
1180
|
return;
|
|
1181
1181
|
if (Q.type === "error") {
|
|
@@ -1184,9 +1184,9 @@ function gi(e) {
|
|
|
1184
1184
|
});
|
|
1185
1185
|
return;
|
|
1186
1186
|
} else if (Q.matches)
|
|
1187
|
-
|
|
1187
|
+
k = Q.matches, R = $t(k, S);
|
|
1188
1188
|
else {
|
|
1189
|
-
nt(f, g,
|
|
1189
|
+
nt(f, g, Me(404, {
|
|
1190
1190
|
pathname: S
|
|
1191
1191
|
}), {
|
|
1192
1192
|
flushSync: H
|
|
@@ -1195,7 +1195,7 @@ function gi(e) {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
1197
|
ce.set(f, D);
|
|
1198
|
-
let Y =
|
|
1198
|
+
let Y = xe, le = (await ue("loader", w, J, [R], k, f))[R.route.id];
|
|
1199
1199
|
if (lt(le) && (le = await Er(le, J.signal, !0) || le), ce.get(f) === D && ce.delete(f), !J.signal.aborted) {
|
|
1200
1200
|
if (pe.has(f)) {
|
|
1201
1201
|
Ke(f, at(void 0));
|
|
@@ -1220,29 +1220,29 @@ function gi(e) {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
async function q(f, g, S, R) {
|
|
1222
1222
|
let {
|
|
1223
|
-
submission:
|
|
1223
|
+
submission: k,
|
|
1224
1224
|
fetcherSubmission: F,
|
|
1225
1225
|
preventScrollReset: H,
|
|
1226
1226
|
replace: O
|
|
1227
1227
|
} = R === void 0 ? {} : R;
|
|
1228
1228
|
g.response.headers.has("X-Remix-Revalidate") && (Oe = !0);
|
|
1229
|
-
let
|
|
1230
|
-
I(
|
|
1231
|
-
let P = Zt(w.location,
|
|
1229
|
+
let M = g.response.headers.get("Location");
|
|
1230
|
+
I(M, "Expected a Location header on the redirect Response"), M = Xr(M, new URL(f.url), l);
|
|
1231
|
+
let P = Zt(w.location, M, {
|
|
1232
1232
|
_isRedirect: !0
|
|
1233
1233
|
});
|
|
1234
1234
|
if (n) {
|
|
1235
1235
|
let Q = !1;
|
|
1236
1236
|
if (g.response.headers.has("X-Remix-Reload-Document"))
|
|
1237
1237
|
Q = !0;
|
|
1238
|
-
else if (Cr.test(
|
|
1239
|
-
const me = e.history.createURL(
|
|
1238
|
+
else if (Cr.test(M)) {
|
|
1239
|
+
const me = e.history.createURL(M);
|
|
1240
1240
|
Q = // Hard reload if it's an absolute URL to a new origin
|
|
1241
1241
|
me.origin !== t.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
1242
1242
|
Je(me.pathname, l) == null;
|
|
1243
1243
|
}
|
|
1244
1244
|
if (Q) {
|
|
1245
|
-
O ? t.location.replace(
|
|
1245
|
+
O ? t.location.replace(M) : t.location.assign(M);
|
|
1246
1246
|
return;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
@@ -1250,21 +1250,21 @@ function gi(e) {
|
|
|
1250
1250
|
let D = O === !0 || g.response.headers.has("X-Remix-Replace") ? ye.Replace : ye.Push, {
|
|
1251
1251
|
formMethod: J,
|
|
1252
1252
|
formAction: Y,
|
|
1253
|
-
formEncType:
|
|
1253
|
+
formEncType: Le
|
|
1254
1254
|
} = w.navigation;
|
|
1255
|
-
!
|
|
1256
|
-
let le =
|
|
1257
|
-
if (
|
|
1255
|
+
!k && !F && J && Y && Le && (k = ao(w.navigation));
|
|
1256
|
+
let le = k || F;
|
|
1257
|
+
if (pi.has(g.response.status) && le && ze(le.formMethod))
|
|
1258
1258
|
await qe(D, P, {
|
|
1259
1259
|
submission: fe({}, le, {
|
|
1260
|
-
formAction:
|
|
1260
|
+
formAction: M
|
|
1261
1261
|
}),
|
|
1262
1262
|
// Preserve these flags across redirects
|
|
1263
1263
|
preventScrollReset: H || K,
|
|
1264
1264
|
enableViewTransition: S ? ae : void 0
|
|
1265
1265
|
});
|
|
1266
1266
|
else {
|
|
1267
|
-
let Q = Yn(P,
|
|
1267
|
+
let Q = Yn(P, k);
|
|
1268
1268
|
await qe(D, P, {
|
|
1269
1269
|
overrideNavigation: Q,
|
|
1270
1270
|
// Send fetcher submissions through for shouldRevalidate
|
|
@@ -1275,31 +1275,31 @@ function gi(e) {
|
|
|
1275
1275
|
});
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
-
async function ue(f, g, S, R,
|
|
1278
|
+
async function ue(f, g, S, R, k, F) {
|
|
1279
1279
|
let H, O = {};
|
|
1280
1280
|
try {
|
|
1281
|
-
H = await
|
|
1282
|
-
} catch (
|
|
1281
|
+
H = await Ci(c, f, g, S, R, k, F, a, o);
|
|
1282
|
+
} catch (M) {
|
|
1283
1283
|
return R.forEach((P) => {
|
|
1284
1284
|
O[P.route.id] = {
|
|
1285
1285
|
type: oe.error,
|
|
1286
|
-
error:
|
|
1286
|
+
error: M
|
|
1287
1287
|
};
|
|
1288
1288
|
}), O;
|
|
1289
1289
|
}
|
|
1290
|
-
for (let [
|
|
1291
|
-
if (
|
|
1290
|
+
for (let [M, P] of Object.entries(H))
|
|
1291
|
+
if (Ni(P)) {
|
|
1292
1292
|
let D = P.result;
|
|
1293
|
-
O[
|
|
1293
|
+
O[M] = {
|
|
1294
1294
|
type: oe.redirect,
|
|
1295
|
-
response:
|
|
1295
|
+
response: xi(D, S, M, k, l, d.v7_relativeSplatPath)
|
|
1296
1296
|
};
|
|
1297
1297
|
} else
|
|
1298
|
-
O[
|
|
1298
|
+
O[M] = await Ri(P);
|
|
1299
1299
|
return O;
|
|
1300
1300
|
}
|
|
1301
|
-
async function tt(f, g, S, R,
|
|
1302
|
-
let F = f.matches, H = ue("loader", f,
|
|
1301
|
+
async function tt(f, g, S, R, k) {
|
|
1302
|
+
let F = f.matches, H = ue("loader", f, k, S, g, null), O = Promise.all(R.map(async (D) => {
|
|
1303
1303
|
if (D.matches && D.match && D.controller) {
|
|
1304
1304
|
let Y = (await ue("loader", f, Rt(e.history, D.path, D.controller.signal), [D.match], D.matches, D.key))[D.match.route.id];
|
|
1305
1305
|
return {
|
|
@@ -1309,14 +1309,14 @@ function gi(e) {
|
|
|
1309
1309
|
return Promise.resolve({
|
|
1310
1310
|
[D.key]: {
|
|
1311
1311
|
type: oe.error,
|
|
1312
|
-
error:
|
|
1312
|
+
error: Me(404, {
|
|
1313
1313
|
pathname: D.path
|
|
1314
1314
|
})
|
|
1315
1315
|
}
|
|
1316
1316
|
});
|
|
1317
|
-
})),
|
|
1318
|
-
return await Promise.all([
|
|
1319
|
-
loaderResults:
|
|
1317
|
+
})), M = await H, P = (await O).reduce((D, J) => Object.assign(D, J), {});
|
|
1318
|
+
return await Promise.all([Pi(g, M, k.signal, F, f.loaderData), Oi(g, P, R)]), {
|
|
1319
|
+
loaderResults: M,
|
|
1320
1320
|
fetcherResults: P
|
|
1321
1321
|
};
|
|
1322
1322
|
}
|
|
@@ -1334,24 +1334,24 @@ function gi(e) {
|
|
|
1334
1334
|
}
|
|
1335
1335
|
function nt(f, g, S, R) {
|
|
1336
1336
|
R === void 0 && (R = {});
|
|
1337
|
-
let
|
|
1337
|
+
let k = gt(w.matches, g);
|
|
1338
1338
|
on(f), Ee({
|
|
1339
1339
|
errors: {
|
|
1340
|
-
[
|
|
1340
|
+
[k.route.id]: S
|
|
1341
1341
|
},
|
|
1342
1342
|
fetchers: new Map(w.fetchers)
|
|
1343
1343
|
}, {
|
|
1344
1344
|
flushSync: (R && R.flushSync) === !0
|
|
1345
1345
|
});
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return ie.set(f, (ie.get(f) || 0) + 1), pe.has(f) && pe.delete(f), w.fetchers.get(f) ||
|
|
1347
|
+
function Ar(f) {
|
|
1348
|
+
return ie.set(f, (ie.get(f) || 0) + 1), pe.has(f) && pe.delete(f), w.fetchers.get(f) || mi;
|
|
1349
1349
|
}
|
|
1350
1350
|
function on(f) {
|
|
1351
1351
|
let g = w.fetchers.get(f);
|
|
1352
1352
|
ce.has(f) && !(g && g.state === "loading" && be.has(f)) && ot(f), He.delete(f), be.delete(f), Pe.delete(f), d.v7_fetcherPersist && pe.delete(f), Ze.delete(f), w.fetchers.delete(f);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Ea(f) {
|
|
1355
1355
|
let g = (ie.get(f) || 0) - 1;
|
|
1356
1356
|
g <= 0 ? (ie.delete(f), pe.add(f), d.v7_fetcherPersist || on(f)) : ie.set(f, g), Ee({
|
|
1357
1357
|
fetchers: new Map(w.fetchers)
|
|
@@ -1361,9 +1361,9 @@ function gi(e) {
|
|
|
1361
1361
|
let g = ce.get(f);
|
|
1362
1362
|
g && (g.abort(), ce.delete(f));
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Mr(f) {
|
|
1365
1365
|
for (let g of f) {
|
|
1366
|
-
let S =
|
|
1366
|
+
let S = Ar(g), R = at(S.data);
|
|
1367
1367
|
w.fetchers.set(g, R);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
@@ -1373,18 +1373,18 @@ function gi(e) {
|
|
|
1373
1373
|
let R = w.fetchers.get(S);
|
|
1374
1374
|
I(R, "Expected fetcher: " + S), R.state === "loading" && (Pe.delete(S), f.push(S), g = !0);
|
|
1375
1375
|
}
|
|
1376
|
-
return
|
|
1376
|
+
return Mr(f), g;
|
|
1377
1377
|
}
|
|
1378
1378
|
function Fr(f) {
|
|
1379
1379
|
let g = [];
|
|
1380
1380
|
for (let [S, R] of be)
|
|
1381
1381
|
if (R < f) {
|
|
1382
|
-
let
|
|
1383
|
-
I(
|
|
1382
|
+
let k = w.fetchers.get(S);
|
|
1383
|
+
I(k, "Expected fetcher: " + S), k.state === "loading" && (ot(S), be.delete(S), g.push(S));
|
|
1384
1384
|
}
|
|
1385
|
-
return
|
|
1385
|
+
return Mr(g), g.length > 0;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function Ra(f, g) {
|
|
1388
1388
|
let S = w.blockers.get(f) || Ft;
|
|
1389
1389
|
return Ce.get(f) !== g && Ce.set(f, g), S;
|
|
1390
1390
|
}
|
|
@@ -1408,7 +1408,7 @@ function gi(e) {
|
|
|
1408
1408
|
if (Ce.size === 0)
|
|
1409
1409
|
return;
|
|
1410
1410
|
Ce.size > 1 && we(!1, "A router only supports one blocker at a time");
|
|
1411
|
-
let
|
|
1411
|
+
let k = Array.from(Ce.entries()), [F, H] = k[k.length - 1], O = w.blockers.get(F);
|
|
1412
1412
|
if (!(O && O.state === "proceeding") && H({
|
|
1413
1413
|
currentLocation: g,
|
|
1414
1414
|
nextLocation: S,
|
|
@@ -1417,27 +1417,27 @@ function gi(e) {
|
|
|
1417
1417
|
return F;
|
|
1418
1418
|
}
|
|
1419
1419
|
function Jn(f) {
|
|
1420
|
-
let g =
|
|
1420
|
+
let g = Me(404, {
|
|
1421
1421
|
pathname: f
|
|
1422
1422
|
}), S = s || i, {
|
|
1423
1423
|
matches: R,
|
|
1424
|
-
route:
|
|
1424
|
+
route: k
|
|
1425
1425
|
} = ro(S);
|
|
1426
1426
|
return Wn(), {
|
|
1427
1427
|
notFoundMatches: R,
|
|
1428
|
-
route:
|
|
1428
|
+
route: k,
|
|
1429
1429
|
error: g
|
|
1430
1430
|
};
|
|
1431
1431
|
}
|
|
1432
1432
|
function Wn(f) {
|
|
1433
1433
|
let g = [];
|
|
1434
|
-
return
|
|
1435
|
-
(!f || f(R)) && (S.cancel(), g.push(R),
|
|
1434
|
+
return Ae.forEach((S, R) => {
|
|
1435
|
+
(!f || f(R)) && (S.cancel(), g.push(R), Ae.delete(R));
|
|
1436
1436
|
}), g;
|
|
1437
1437
|
}
|
|
1438
|
-
function
|
|
1439
|
-
if (m = f, v = g, p = S || null, !
|
|
1440
|
-
|
|
1438
|
+
function xa(f, g, S) {
|
|
1439
|
+
if (m = f, v = g, p = S || null, !x && w.navigation === Gn) {
|
|
1440
|
+
x = !0;
|
|
1441
1441
|
let R = Ur(w.location, w.matches);
|
|
1442
1442
|
R != null && Ee({
|
|
1443
1443
|
restoreScrollPosition: R
|
|
@@ -1448,9 +1448,9 @@ function gi(e) {
|
|
|
1448
1448
|
};
|
|
1449
1449
|
}
|
|
1450
1450
|
function Hr(f, g) {
|
|
1451
|
-
return p && p(f, g.map((R) =>
|
|
1451
|
+
return p && p(f, g.map((R) => Wa(R, w.loaderData))) || f.key;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function La(f, g) {
|
|
1454
1454
|
if (m && v) {
|
|
1455
1455
|
let S = Hr(f, g);
|
|
1456
1456
|
m[S] = v();
|
|
@@ -1488,14 +1488,14 @@ function gi(e) {
|
|
|
1488
1488
|
type: "success",
|
|
1489
1489
|
matches: f
|
|
1490
1490
|
};
|
|
1491
|
-
let
|
|
1491
|
+
let k = f;
|
|
1492
1492
|
for (; ; ) {
|
|
1493
1493
|
let F = s == null, H = s || i, O = a;
|
|
1494
1494
|
try {
|
|
1495
1495
|
await u({
|
|
1496
1496
|
signal: S,
|
|
1497
1497
|
path: g,
|
|
1498
|
-
matches:
|
|
1498
|
+
matches: k,
|
|
1499
1499
|
fetcherKey: R,
|
|
1500
1500
|
patch: (D, J) => {
|
|
1501
1501
|
S.aborted || Yr(D, J, H, O, o);
|
|
@@ -1505,7 +1505,7 @@ function gi(e) {
|
|
|
1505
1505
|
return {
|
|
1506
1506
|
type: "error",
|
|
1507
1507
|
error: D,
|
|
1508
|
-
partialMatches:
|
|
1508
|
+
partialMatches: k
|
|
1509
1509
|
};
|
|
1510
1510
|
} finally {
|
|
1511
1511
|
F && !S.aborted && (i = [...i]);
|
|
@@ -1514,25 +1514,25 @@ function gi(e) {
|
|
|
1514
1514
|
return {
|
|
1515
1515
|
type: "aborted"
|
|
1516
1516
|
};
|
|
1517
|
-
let
|
|
1518
|
-
if (
|
|
1517
|
+
let M = mt(H, g, l);
|
|
1518
|
+
if (M)
|
|
1519
1519
|
return {
|
|
1520
1520
|
type: "success",
|
|
1521
|
-
matches:
|
|
1521
|
+
matches: M
|
|
1522
1522
|
};
|
|
1523
1523
|
let P = gn(H, g, l, !0);
|
|
1524
|
-
if (!P ||
|
|
1524
|
+
if (!P || k.length === P.length && k.every((D, J) => D.route.id === P[J].route.id))
|
|
1525
1525
|
return {
|
|
1526
1526
|
type: "success",
|
|
1527
1527
|
matches: null
|
|
1528
1528
|
};
|
|
1529
|
-
|
|
1529
|
+
k = P;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function ka(f) {
|
|
1533
1533
|
a = {}, s = Cn(f, o, void 0, a);
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function Na(f, g) {
|
|
1536
1536
|
let S = s == null;
|
|
1537
1537
|
Yr(f, g, s || i, a, o), S && (i = [...i], Ee({}));
|
|
1538
1538
|
}
|
|
@@ -1554,7 +1554,7 @@ function gi(e) {
|
|
|
1554
1554
|
},
|
|
1555
1555
|
initialize: en,
|
|
1556
1556
|
subscribe: tn,
|
|
1557
|
-
enableScrollRestoration:
|
|
1557
|
+
enableScrollRestoration: xa,
|
|
1558
1558
|
navigate: nn,
|
|
1559
1559
|
fetch: G,
|
|
1560
1560
|
revalidate: rn,
|
|
@@ -1562,20 +1562,20 @@ function gi(e) {
|
|
|
1562
1562
|
// hash-aware URLs in DOM paths
|
|
1563
1563
|
createHref: (f) => e.history.createHref(f),
|
|
1564
1564
|
encodeLocation: (f) => e.history.encodeLocation(f),
|
|
1565
|
-
getFetcher:
|
|
1566
|
-
deleteFetcher:
|
|
1565
|
+
getFetcher: Ar,
|
|
1566
|
+
deleteFetcher: Ea,
|
|
1567
1567
|
dispose: zn,
|
|
1568
|
-
getBlocker:
|
|
1568
|
+
getBlocker: Ra,
|
|
1569
1569
|
deleteBlocker: Ir,
|
|
1570
|
-
patchRoutes:
|
|
1570
|
+
patchRoutes: Na,
|
|
1571
1571
|
_internalFetchControllers: ce,
|
|
1572
|
-
_internalActiveDeferreds:
|
|
1572
|
+
_internalActiveDeferreds: Ae,
|
|
1573
1573
|
// TODO: Remove setRoutes, it's temporary to avoid dealing with
|
|
1574
1574
|
// updating the tree while validating the update algorithm.
|
|
1575
|
-
_internalSetRoutes:
|
|
1575
|
+
_internalSetRoutes: ka
|
|
1576
1576
|
}, U;
|
|
1577
1577
|
}
|
|
1578
|
-
function
|
|
1578
|
+
function yi(e) {
|
|
1579
1579
|
return e != null && ("formData" in e && e.formData != null || "body" in e && e.body !== void 0);
|
|
1580
1580
|
}
|
|
1581
1581
|
function sr(e, t, n, r, o, a, i, s) {
|
|
@@ -1604,20 +1604,20 @@ function sr(e, t, n, r, o, a, i, s) {
|
|
|
1604
1604
|
return r && n !== "/" && (u.pathname = u.pathname === "/" ? n : Xe([n, u.pathname])), ct(u);
|
|
1605
1605
|
}
|
|
1606
1606
|
function Zr(e, t, n, r) {
|
|
1607
|
-
if (!r || !
|
|
1607
|
+
if (!r || !yi(r))
|
|
1608
1608
|
return {
|
|
1609
1609
|
path: n
|
|
1610
1610
|
};
|
|
1611
|
-
if (r.formMethod && !
|
|
1611
|
+
if (r.formMethod && !Ti(r.formMethod))
|
|
1612
1612
|
return {
|
|
1613
1613
|
path: n,
|
|
1614
|
-
error:
|
|
1614
|
+
error: Me(405, {
|
|
1615
1615
|
method: r.formMethod
|
|
1616
1616
|
})
|
|
1617
1617
|
};
|
|
1618
1618
|
let o = () => ({
|
|
1619
1619
|
path: n,
|
|
1620
|
-
error:
|
|
1620
|
+
error: Me(400, {
|
|
1621
1621
|
type: "invalid-body"
|
|
1622
1622
|
})
|
|
1623
1623
|
}), a = r.formMethod || "get", i = e ? a.toUpperCase() : a.toLowerCase(), s = Ho(n);
|
|
@@ -1706,9 +1706,9 @@ function qr(e, t, n) {
|
|
|
1706
1706
|
return r >= 0 ? e.slice(0, n ? r + 1 : r) : e;
|
|
1707
1707
|
}
|
|
1708
1708
|
function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
|
|
1709
|
-
let v = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0,
|
|
1710
|
-
a && t.errors ?
|
|
1711
|
-
let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U =
|
|
1709
|
+
let v = p ? Ie(p[1]) ? p[1].error : p[1].data : void 0, x = e.createURL(t.location), b = e.createURL(o), L = n;
|
|
1710
|
+
a && t.errors ? L = qr(n, Object.keys(t.errors)[0], !0) : p && Ie(p[1]) && (L = qr(n, p[0]));
|
|
1711
|
+
let _ = p ? p[1].statusCode : void 0, N = i && _ && _ >= 400, U = L.filter((T, K) => {
|
|
1712
1712
|
let {
|
|
1713
1713
|
route: B
|
|
1714
1714
|
} = T;
|
|
@@ -1718,11 +1718,11 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
|
|
|
1718
1718
|
return !1;
|
|
1719
1719
|
if (a)
|
|
1720
1720
|
return lr(B, t.loaderData, t.errors);
|
|
1721
|
-
if (
|
|
1721
|
+
if (wi(t.loaderData, t.matches[K], T) || l.some((te) => te === T.route.id))
|
|
1722
1722
|
return !0;
|
|
1723
1723
|
let ae = t.matches[K], ee = T;
|
|
1724
1724
|
return Gr(T, fe({
|
|
1725
|
-
currentUrl:
|
|
1725
|
+
currentUrl: x,
|
|
1726
1726
|
currentParams: ae.params,
|
|
1727
1727
|
nextUrl: b,
|
|
1728
1728
|
nextParams: ee.params
|
|
@@ -1731,8 +1731,8 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
|
|
|
1731
1731
|
actionStatus: _,
|
|
1732
1732
|
defaultShouldRevalidate: N ? !1 : (
|
|
1733
1733
|
// Forced revalidation due to submission, useRevalidator, or X-Remix-Revalidate
|
|
1734
|
-
s ||
|
|
1735
|
-
|
|
1734
|
+
s || x.pathname + x.search === b.pathname + b.search || // Search params affect all loaders
|
|
1735
|
+
x.search !== b.search || Io(ae, ee)
|
|
1736
1736
|
)
|
|
1737
1737
|
}));
|
|
1738
1738
|
}), w = [];
|
|
@@ -1753,7 +1753,7 @@ function Kr(e, t, n, r, o, a, i, s, l, c, u, d, h, y, m, p) {
|
|
|
1753
1753
|
}
|
|
1754
1754
|
let ae = t.fetchers.get(K), ee = $t(B, T.path), te = !1;
|
|
1755
1755
|
h.has(K) ? te = !1 : c.has(K) ? (c.delete(K), te = !0) : ae && ae.state !== "idle" && ae.data === void 0 ? te = s : te = Gr(ee, fe({
|
|
1756
|
-
currentUrl:
|
|
1756
|
+
currentUrl: x,
|
|
1757
1757
|
currentParams: t.matches[t.matches.length - 1].params,
|
|
1758
1758
|
nextUrl: b,
|
|
1759
1759
|
nextParams: n[n.length - 1].params
|
|
@@ -1779,7 +1779,7 @@ function lr(e, t, n) {
|
|
|
1779
1779
|
let r = t != null && t[e.id] !== void 0, o = n != null && n[e.id] !== void 0;
|
|
1780
1780
|
return !r && o ? !1 : typeof e.loader == "function" && e.loader.hydrate === !0 ? !0 : !r && !o;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function wi(e, t, n) {
|
|
1783
1783
|
let r = (
|
|
1784
1784
|
// [a] -> [a, b]
|
|
1785
1785
|
!t || // [a, b] -> [a, c]
|
|
@@ -1821,7 +1821,7 @@ function Bo(e, t) {
|
|
|
1821
1821
|
return (o = t.children) == null ? void 0 : o.some((a) => Bo(n, a));
|
|
1822
1822
|
}) : !1;
|
|
1823
1823
|
}
|
|
1824
|
-
async function
|
|
1824
|
+
async function bi(e, t, n) {
|
|
1825
1825
|
if (!e.lazy)
|
|
1826
1826
|
return;
|
|
1827
1827
|
let r = await e.lazy();
|
|
@@ -1834,13 +1834,13 @@ async function wi(e, t, n) {
|
|
|
1834
1834
|
let l = o[i] !== void 0 && // This property isn't static since it should always be updated based
|
|
1835
1835
|
// on the route updates
|
|
1836
1836
|
i !== "hasErrorBoundary";
|
|
1837
|
-
we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l &&
|
|
1837
|
+
we(!l, 'Route "' + o.id + '" has a static property "' + i + '" defined but its lazy function is also returning a value for this property. ' + ('The lazy route property "' + i + '" will be ignored.')), !l && !za.has(i) && (a[i] = r[i]);
|
|
1838
1838
|
}
|
|
1839
1839
|
Object.assign(o, a), Object.assign(o, fe({}, t(o), {
|
|
1840
1840
|
lazy: void 0
|
|
1841
1841
|
}));
|
|
1842
1842
|
}
|
|
1843
|
-
async function
|
|
1843
|
+
async function Si(e) {
|
|
1844
1844
|
let {
|
|
1845
1845
|
matches: t
|
|
1846
1846
|
} = e, n = t.filter((o) => o.shouldLoad);
|
|
@@ -1848,12 +1848,12 @@ async function bi(e) {
|
|
|
1848
1848
|
[n[i].route.id]: a
|
|
1849
1849
|
}), {});
|
|
1850
1850
|
}
|
|
1851
|
-
async function
|
|
1852
|
-
let u = a.map((y) => y.route.lazy ?
|
|
1851
|
+
async function Ci(e, t, n, r, o, a, i, s, l, c) {
|
|
1852
|
+
let u = a.map((y) => y.route.lazy ? bi(y.route, l, s) : void 0), d = a.map((y, m) => {
|
|
1853
1853
|
let p = u[m], v = o.some((b) => b.route.id === y.route.id);
|
|
1854
1854
|
return fe({}, y, {
|
|
1855
1855
|
shouldLoad: v,
|
|
1856
|
-
resolve: async (b) => (b && r.method === "GET" && (y.route.lazy || y.route.loader) && (v = !0), v ?
|
|
1856
|
+
resolve: async (b) => (b && r.method === "GET" && (y.route.lazy || y.route.loader) && (v = !0), v ? Ei(t, r, y, p, b, c) : Promise.resolve({
|
|
1857
1857
|
type: oe.data,
|
|
1858
1858
|
result: void 0
|
|
1859
1859
|
}))
|
|
@@ -1871,7 +1871,7 @@ async function Si(e, t, n, r, o, a, i, s, l, c) {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
return h;
|
|
1873
1873
|
}
|
|
1874
|
-
async function
|
|
1874
|
+
async function Ei(e, t, n, r, o, a) {
|
|
1875
1875
|
let i, s, l = (c) => {
|
|
1876
1876
|
let u, d = new Promise((m, p) => u = p);
|
|
1877
1877
|
s = () => u(), t.signal.addEventListener("abort", s);
|
|
@@ -1914,7 +1914,7 @@ async function Ci(e, t, n, r, o, a) {
|
|
|
1914
1914
|
i = await l(c);
|
|
1915
1915
|
else if (e === "action") {
|
|
1916
1916
|
let u = new URL(t.url), d = u.pathname + u.search;
|
|
1917
|
-
throw
|
|
1917
|
+
throw Me(405, {
|
|
1918
1918
|
method: t.method,
|
|
1919
1919
|
pathname: d,
|
|
1920
1920
|
routeId: n.route.id
|
|
@@ -1928,7 +1928,7 @@ async function Ci(e, t, n, r, o, a) {
|
|
|
1928
1928
|
i = await l(c);
|
|
1929
1929
|
else {
|
|
1930
1930
|
let u = new URL(t.url), d = u.pathname + u.search;
|
|
1931
|
-
throw
|
|
1931
|
+
throw Me(404, {
|
|
1932
1932
|
pathname: d
|
|
1933
1933
|
});
|
|
1934
1934
|
}
|
|
@@ -1943,7 +1943,7 @@ async function Ci(e, t, n, r, o, a) {
|
|
|
1943
1943
|
}
|
|
1944
1944
|
return i;
|
|
1945
1945
|
}
|
|
1946
|
-
async function
|
|
1946
|
+
async function Ri(e) {
|
|
1947
1947
|
let {
|
|
1948
1948
|
result: t,
|
|
1949
1949
|
type: n
|
|
@@ -1996,7 +1996,7 @@ async function Ei(e) {
|
|
|
1996
1996
|
statusCode: qt(t) ? t.status : void 0
|
|
1997
1997
|
};
|
|
1998
1998
|
}
|
|
1999
|
-
if (
|
|
1999
|
+
if (_i(t)) {
|
|
2000
2000
|
var s, l;
|
|
2001
2001
|
return {
|
|
2002
2002
|
type: oe.deferred,
|
|
@@ -2019,7 +2019,7 @@ async function Ei(e) {
|
|
|
2019
2019
|
data: t
|
|
2020
2020
|
};
|
|
2021
2021
|
}
|
|
2022
|
-
function
|
|
2022
|
+
function xi(e, t, n, r, o, a) {
|
|
2023
2023
|
let i = e.headers.get("Location");
|
|
2024
2024
|
if (I(i, "Redirects returned/thrown from loaders/actions must have a Location header"), !Cr.test(i)) {
|
|
2025
2025
|
let s = r.slice(0, r.findIndex((l) => l.route.id === n) + 1);
|
|
@@ -2062,7 +2062,7 @@ function Qr(e) {
|
|
|
2062
2062
|
t.append(n, r);
|
|
2063
2063
|
return t;
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function Li(e, t, n, r, o) {
|
|
2066
2066
|
let a = {}, i = null, s, l = !1, c = {}, u = n && Ie(n[1]) ? n[1].error : void 0;
|
|
2067
2067
|
return e.forEach((d) => {
|
|
2068
2068
|
if (!(d.route.id in t))
|
|
@@ -2091,7 +2091,7 @@ function eo(e, t, n, r, o, a, i) {
|
|
|
2091
2091
|
let {
|
|
2092
2092
|
loaderData: s,
|
|
2093
2093
|
errors: l
|
|
2094
|
-
} =
|
|
2094
|
+
} = Li(t, n, r, i);
|
|
2095
2095
|
return o.forEach((c) => {
|
|
2096
2096
|
let {
|
|
2097
2097
|
key: u,
|
|
@@ -2153,7 +2153,7 @@ function ro(e) {
|
|
|
2153
2153
|
route: t
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
|
-
function
|
|
2156
|
+
function Me(e, t) {
|
|
2157
2157
|
let {
|
|
2158
2158
|
pathname: n,
|
|
2159
2159
|
routeId: r,
|
|
@@ -2180,11 +2180,11 @@ function Ho(e) {
|
|
|
2180
2180
|
hash: ""
|
|
2181
2181
|
}));
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function ki(e, t) {
|
|
2184
2184
|
return e.pathname !== t.pathname || e.search !== t.search ? !1 : e.hash === "" ? t.hash !== "" : e.hash === t.hash ? !0 : t.hash !== "";
|
|
2185
2185
|
}
|
|
2186
|
-
function
|
|
2187
|
-
return Uo(e.result) &&
|
|
2186
|
+
function Ni(e) {
|
|
2187
|
+
return Uo(e.result) && hi.has(e.result.status);
|
|
2188
2188
|
}
|
|
2189
2189
|
function lt(e) {
|
|
2190
2190
|
return e.type === oe.deferred;
|
|
@@ -2198,20 +2198,20 @@ function vt(e) {
|
|
|
2198
2198
|
function oo(e) {
|
|
2199
2199
|
return typeof e == "object" && e != null && "type" in e && "data" in e && "init" in e && e.type === "DataWithResponseInit";
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function _i(e) {
|
|
2202
2202
|
let t = e;
|
|
2203
2203
|
return t && typeof t == "object" && typeof t.data == "object" && typeof t.subscribe == "function" && typeof t.cancel == "function" && typeof t.resolveData == "function";
|
|
2204
2204
|
}
|
|
2205
2205
|
function Uo(e) {
|
|
2206
2206
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.headers == "object" && typeof e.body < "u";
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2209
|
-
return
|
|
2208
|
+
function Ti(e) {
|
|
2209
|
+
return fi.has(e.toLowerCase());
|
|
2210
2210
|
}
|
|
2211
2211
|
function ze(e) {
|
|
2212
|
-
return
|
|
2212
|
+
return ui.has(e.toLowerCase());
|
|
2213
2213
|
}
|
|
2214
|
-
async function
|
|
2214
|
+
async function Pi(e, t, n, r, o) {
|
|
2215
2215
|
let a = Object.entries(t);
|
|
2216
2216
|
for (let i = 0; i < a.length; i++) {
|
|
2217
2217
|
let [s, l] = a[i], c = e.find((h) => (h == null ? void 0 : h.route.id) === s);
|
|
@@ -2223,7 +2223,7 @@ async function Ti(e, t, n, r, o) {
|
|
|
2223
2223
|
});
|
|
2224
2224
|
}
|
|
2225
2225
|
}
|
|
2226
|
-
async function
|
|
2226
|
+
async function Oi(e, t, n) {
|
|
2227
2227
|
for (let r = 0; r < n.length; r++) {
|
|
2228
2228
|
let {
|
|
2229
2229
|
key: o,
|
|
@@ -2262,7 +2262,7 @@ function $t(e, t) {
|
|
|
2262
2262
|
let n = typeof t == "string" ? dt(t).search : t.search;
|
|
2263
2263
|
if (e[e.length - 1].route.index && Rr(n || ""))
|
|
2264
2264
|
return e[e.length - 1];
|
|
2265
|
-
let r =
|
|
2265
|
+
let r = Mo(e);
|
|
2266
2266
|
return r[r.length - 1];
|
|
2267
2267
|
}
|
|
2268
2268
|
function ao(e) {
|
|
@@ -2325,7 +2325,7 @@ function Yn(e, t) {
|
|
|
2325
2325
|
text: void 0
|
|
2326
2326
|
};
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function Ai(e, t) {
|
|
2329
2329
|
return {
|
|
2330
2330
|
state: "submitting",
|
|
2331
2331
|
location: e,
|
|
@@ -2382,7 +2382,7 @@ function at(e) {
|
|
|
2382
2382
|
data: e
|
|
2383
2383
|
};
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function Di(e, t) {
|
|
2386
2386
|
try {
|
|
2387
2387
|
let n = e.sessionStorage.getItem(Fo);
|
|
2388
2388
|
if (n) {
|
|
@@ -2393,7 +2393,7 @@ function Ai(e, t) {
|
|
|
2393
2393
|
} catch {
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
function
|
|
2396
|
+
function Fi(e, t) {
|
|
2397
2397
|
if (t.size > 0) {
|
|
2398
2398
|
let n = {};
|
|
2399
2399
|
for (let [r, o] of t)
|
|
@@ -2415,35 +2415,35 @@ function Di(e, t) {
|
|
|
2415
2415
|
*
|
|
2416
2416
|
* @license MIT
|
|
2417
2417
|
*/
|
|
2418
|
-
function
|
|
2419
|
-
return
|
|
2418
|
+
function xn() {
|
|
2419
|
+
return xn = Object.assign ? Object.assign.bind() : function(e) {
|
|
2420
2420
|
for (var t = 1; t < arguments.length; t++) {
|
|
2421
2421
|
var n = arguments[t];
|
|
2422
2422
|
for (var r in n)
|
|
2423
2423
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
2424
2424
|
}
|
|
2425
2425
|
return e;
|
|
2426
|
-
},
|
|
2426
|
+
}, xn.apply(this, arguments);
|
|
2427
2427
|
}
|
|
2428
2428
|
const _t = /* @__PURE__ */ E.createContext(null);
|
|
2429
2429
|
process.env.NODE_ENV !== "production" && (_t.displayName = "DataRouter");
|
|
2430
2430
|
const On = /* @__PURE__ */ E.createContext(null);
|
|
2431
2431
|
process.env.NODE_ENV !== "production" && (On.displayName = "DataRouterState");
|
|
2432
|
-
const
|
|
2433
|
-
process.env.NODE_ENV !== "production" && (
|
|
2432
|
+
const Ii = /* @__PURE__ */ E.createContext(null);
|
|
2433
|
+
process.env.NODE_ENV !== "production" && (Ii.displayName = "Await");
|
|
2434
2434
|
const je = /* @__PURE__ */ E.createContext(null);
|
|
2435
2435
|
process.env.NODE_ENV !== "production" && (je.displayName = "Navigation");
|
|
2436
|
-
const
|
|
2437
|
-
process.env.NODE_ENV !== "production" && (
|
|
2436
|
+
const An = /* @__PURE__ */ E.createContext(null);
|
|
2437
|
+
process.env.NODE_ENV !== "production" && (An.displayName = "Location");
|
|
2438
2438
|
const $e = /* @__PURE__ */ E.createContext({
|
|
2439
2439
|
outlet: null,
|
|
2440
2440
|
matches: [],
|
|
2441
2441
|
isDataRoute: !1
|
|
2442
2442
|
});
|
|
2443
2443
|
process.env.NODE_ENV !== "production" && ($e.displayName = "Route");
|
|
2444
|
-
const
|
|
2445
|
-
process.env.NODE_ENV !== "production" && (
|
|
2446
|
-
function
|
|
2444
|
+
const xr = /* @__PURE__ */ E.createContext(null);
|
|
2445
|
+
process.env.NODE_ENV !== "production" && (xr.displayName = "RouteError");
|
|
2446
|
+
function Bi(e, t) {
|
|
2447
2447
|
let {
|
|
2448
2448
|
relative: n
|
|
2449
2449
|
} = t === void 0 ? {} : t;
|
|
@@ -2470,7 +2470,7 @@ function Ii(e, t) {
|
|
|
2470
2470
|
});
|
|
2471
2471
|
}
|
|
2472
2472
|
function Tt() {
|
|
2473
|
-
return E.useContext(
|
|
2473
|
+
return E.useContext(An) != null;
|
|
2474
2474
|
}
|
|
2475
2475
|
function Qe() {
|
|
2476
2476
|
return Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
@@ -2478,19 +2478,19 @@ function Qe() {
|
|
|
2478
2478
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2479
2479
|
// router loaded. We can help them understand how to avoid that.
|
|
2480
2480
|
"useLocation() may be used only in the context of a <Router> component."
|
|
2481
|
-
) : I(!1)), E.useContext(
|
|
2481
|
+
) : I(!1)), E.useContext(An).location;
|
|
2482
2482
|
}
|
|
2483
2483
|
const Vo = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2484
2484
|
function jo(e) {
|
|
2485
2485
|
E.useContext(je).static || E.useLayoutEffect(e);
|
|
2486
2486
|
}
|
|
2487
|
-
function
|
|
2487
|
+
function Mn() {
|
|
2488
2488
|
let {
|
|
2489
2489
|
isDataRoute: e
|
|
2490
2490
|
} = E.useContext($e);
|
|
2491
|
-
return e ?
|
|
2491
|
+
return e ? Qi() : Hi();
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function Hi() {
|
|
2494
2494
|
Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
2495
2495
|
!1,
|
|
2496
2496
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2518,14 +2518,14 @@ function Bi() {
|
|
|
2518
2518
|
e == null && t !== "/" && (d.pathname = d.pathname === "/" ? t : Xe([t, d.pathname])), (u.replace ? r.replace : r.push)(d, u.state, u);
|
|
2519
2519
|
}, [t, r, i, a, e]);
|
|
2520
2520
|
}
|
|
2521
|
-
const
|
|
2522
|
-
function
|
|
2521
|
+
const Ui = /* @__PURE__ */ E.createContext(null);
|
|
2522
|
+
function Vi(e) {
|
|
2523
2523
|
let t = E.useContext($e).outlet;
|
|
2524
|
-
return t && /* @__PURE__ */ E.createElement(
|
|
2524
|
+
return t && /* @__PURE__ */ E.createElement(Ui.Provider, {
|
|
2525
2525
|
value: e
|
|
2526
2526
|
}, t);
|
|
2527
2527
|
}
|
|
2528
|
-
function
|
|
2528
|
+
function kd() {
|
|
2529
2529
|
let {
|
|
2530
2530
|
matches: e
|
|
2531
2531
|
} = E.useContext($e), t = e[e.length - 1];
|
|
@@ -2543,7 +2543,7 @@ function Yt(e, t) {
|
|
|
2543
2543
|
} = Qe(), i = JSON.stringify(Tn(o, r.v7_relativeSplatPath));
|
|
2544
2544
|
return E.useMemo(() => Pn(e, JSON.parse(i), a, n === "path"), [e, i, a, n]);
|
|
2545
2545
|
}
|
|
2546
|
-
function
|
|
2546
|
+
function ji(e, t, n, r) {
|
|
2547
2547
|
Tt() || (process.env.NODE_ENV !== "production" ? I(
|
|
2548
2548
|
!1,
|
|
2549
2549
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
@@ -2572,7 +2572,7 @@ function Vi(e, t, n, r) {
|
|
|
2572
2572
|
let v = !a && n && n.matches && n.matches.length > 0 ? n.matches : mt(e, {
|
|
2573
2573
|
pathname: p
|
|
2574
2574
|
});
|
|
2575
|
-
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && we(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, 'Matched leaf route at location "' + y.pathname + y.search + y.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.')),
|
|
2575
|
+
return process.env.NODE_ENV !== "production" && (process.env.NODE_ENV !== "production" && we(d || v != null, 'No routes matched location "' + y.pathname + y.search + y.hash + '" '), process.env.NODE_ENV !== "production" && we(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, 'Matched leaf route at location "' + y.pathname + y.search + y.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.')), Zi(v && v.map((b) => Object.assign({}, b, {
|
|
2576
2576
|
params: Object.assign({}, l, b.params),
|
|
2577
2577
|
pathname: Xe([
|
|
2578
2578
|
u,
|
|
@@ -2586,8 +2586,8 @@ function Vi(e, t, n, r) {
|
|
|
2586
2586
|
])
|
|
2587
2587
|
})), i, n, r);
|
|
2588
2588
|
}
|
|
2589
|
-
function
|
|
2590
|
-
let e =
|
|
2589
|
+
function $i() {
|
|
2590
|
+
let e = Xi(), t = qt(e) ? e.status + " " + e.statusText : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", o = {
|
|
2591
2591
|
padding: "0.5rem",
|
|
2592
2592
|
backgroundColor: r
|
|
2593
2593
|
}, a = {
|
|
@@ -2606,8 +2606,8 @@ function ji() {
|
|
|
2606
2606
|
style: o
|
|
2607
2607
|
}, n) : null, i);
|
|
2608
2608
|
}
|
|
2609
|
-
const
|
|
2610
|
-
class
|
|
2609
|
+
const zi = /* @__PURE__ */ E.createElement($i, null);
|
|
2610
|
+
class Ji extends E.Component {
|
|
2611
2611
|
constructor(t) {
|
|
2612
2612
|
super(t), this.state = {
|
|
2613
2613
|
location: t.location,
|
|
@@ -2637,13 +2637,13 @@ class zi extends E.Component {
|
|
|
2637
2637
|
render() {
|
|
2638
2638
|
return this.state.error !== void 0 ? /* @__PURE__ */ E.createElement($e.Provider, {
|
|
2639
2639
|
value: this.props.routeContext
|
|
2640
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2640
|
+
}, /* @__PURE__ */ E.createElement(xr.Provider, {
|
|
2641
2641
|
value: this.state.error,
|
|
2642
2642
|
children: this.props.component
|
|
2643
2643
|
})) : this.props.children;
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Wi(e) {
|
|
2647
2647
|
let {
|
|
2648
2648
|
routeContext: t,
|
|
2649
2649
|
match: n,
|
|
@@ -2653,7 +2653,7 @@ function Ji(e) {
|
|
|
2653
2653
|
value: t
|
|
2654
2654
|
}, r);
|
|
2655
2655
|
}
|
|
2656
|
-
function
|
|
2656
|
+
function Zi(e, t, n, r) {
|
|
2657
2657
|
var o;
|
|
2658
2658
|
if (t === void 0 && (t = []), n === void 0 && (n = null), r === void 0 && (r = null), e == null) {
|
|
2659
2659
|
var a;
|
|
@@ -2688,20 +2688,20 @@ function Wi(e, t, n, r) {
|
|
|
2688
2688
|
}
|
|
2689
2689
|
return i.reduceRight((u, d, h) => {
|
|
2690
2690
|
let y, m = !1, p = null, v = null;
|
|
2691
|
-
n && (y = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement ||
|
|
2692
|
-
let
|
|
2693
|
-
let
|
|
2694
|
-
return y ?
|
|
2691
|
+
n && (y = s && d.route.id ? s[d.route.id] : void 0, p = d.route.errorElement || zi, l && (c < 0 && h === 0 ? (zo("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), m = !0, v = null) : c === h && (m = !0, v = d.route.hydrateFallbackElement || null)));
|
|
2692
|
+
let x = t.concat(i.slice(0, h + 1)), b = () => {
|
|
2693
|
+
let L;
|
|
2694
|
+
return y ? L = p : m ? L = v : d.route.Component ? L = /* @__PURE__ */ E.createElement(d.route.Component, null) : d.route.element ? L = d.route.element : L = u, /* @__PURE__ */ E.createElement(Wi, {
|
|
2695
2695
|
match: d,
|
|
2696
2696
|
routeContext: {
|
|
2697
2697
|
outlet: u,
|
|
2698
|
-
matches:
|
|
2698
|
+
matches: x,
|
|
2699
2699
|
isDataRoute: n != null
|
|
2700
2700
|
},
|
|
2701
|
-
children:
|
|
2701
|
+
children: L
|
|
2702
2702
|
});
|
|
2703
2703
|
};
|
|
2704
|
-
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ E.createElement(
|
|
2704
|
+
return n && (d.route.ErrorBoundary || d.route.errorElement || h === 0) ? /* @__PURE__ */ E.createElement(Ji, {
|
|
2705
2705
|
location: n.location,
|
|
2706
2706
|
revalidation: n.revalidation,
|
|
2707
2707
|
component: p,
|
|
@@ -2709,7 +2709,7 @@ function Wi(e, t, n, r) {
|
|
|
2709
2709
|
children: b(),
|
|
2710
2710
|
routeContext: {
|
|
2711
2711
|
outlet: null,
|
|
2712
|
-
matches:
|
|
2712
|
+
matches: x,
|
|
2713
2713
|
isDataRoute: !0
|
|
2714
2714
|
}
|
|
2715
2715
|
}) : b();
|
|
@@ -2720,41 +2720,41 @@ var $o = /* @__PURE__ */ function(e) {
|
|
|
2720
2720
|
}($o || {}), Kt = /* @__PURE__ */ function(e) {
|
|
2721
2721
|
return e.UseBlocker = "useBlocker", e.UseLoaderData = "useLoaderData", e.UseActionData = "useActionData", e.UseRouteError = "useRouteError", e.UseNavigation = "useNavigation", e.UseRouteLoaderData = "useRouteLoaderData", e.UseMatches = "useMatches", e.UseRevalidator = "useRevalidator", e.UseNavigateStable = "useNavigate", e.UseRouteId = "useRouteId", e;
|
|
2722
2722
|
}(Kt || {});
|
|
2723
|
-
function
|
|
2723
|
+
function Lr(e) {
|
|
2724
2724
|
return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function qi(e) {
|
|
2727
2727
|
let t = E.useContext(_t);
|
|
2728
|
-
return t || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
2728
|
+
return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function Ki(e) {
|
|
2731
2731
|
let t = E.useContext(On);
|
|
2732
|
-
return t || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
2732
|
+
return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
|
|
2733
2733
|
}
|
|
2734
|
-
function
|
|
2734
|
+
function Gi(e) {
|
|
2735
2735
|
let t = E.useContext($e);
|
|
2736
|
-
return t || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
2736
|
+
return t || (process.env.NODE_ENV !== "production" ? I(!1, Lr(e)) : I(!1)), t;
|
|
2737
2737
|
}
|
|
2738
|
-
function
|
|
2739
|
-
let t =
|
|
2738
|
+
function kr(e) {
|
|
2739
|
+
let t = Gi(e), n = t.matches[t.matches.length - 1];
|
|
2740
2740
|
return n.route.id || (process.env.NODE_ENV !== "production" ? I(!1, e + ' can only be used on routes that contain a unique "id"') : I(!1)), n.route.id;
|
|
2741
2741
|
}
|
|
2742
|
-
function Gi() {
|
|
2743
|
-
return Lr(Kt.UseRouteId);
|
|
2744
|
-
}
|
|
2745
2742
|
function Yi() {
|
|
2743
|
+
return kr(Kt.UseRouteId);
|
|
2744
|
+
}
|
|
2745
|
+
function Xi() {
|
|
2746
2746
|
var e;
|
|
2747
|
-
let t = E.useContext(
|
|
2747
|
+
let t = E.useContext(xr), n = Ki(Kt.UseRouteError), r = kr(Kt.UseRouteError);
|
|
2748
2748
|
return t !== void 0 ? t : (e = n.errors) == null ? void 0 : e[r];
|
|
2749
2749
|
}
|
|
2750
|
-
function
|
|
2750
|
+
function Qi() {
|
|
2751
2751
|
let {
|
|
2752
2752
|
router: e
|
|
2753
|
-
} =
|
|
2753
|
+
} = qi($o.UseNavigateStable), t = kr(Kt.UseNavigateStable), n = E.useRef(!1);
|
|
2754
2754
|
return jo(() => {
|
|
2755
2755
|
n.current = !0;
|
|
2756
2756
|
}), E.useCallback(function(o, a) {
|
|
2757
|
-
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, Vo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o,
|
|
2757
|
+
a === void 0 && (a = {}), process.env.NODE_ENV !== "production" && we(n.current, Vo), n.current && (typeof o == "number" ? e.navigate(o) : e.navigate(o, xn({
|
|
2758
2758
|
fromRouteId: t
|
|
2759
2759
|
}, a)));
|
|
2760
2760
|
}, [e, t]);
|
|
@@ -2764,12 +2764,12 @@ function zo(e, t, n) {
|
|
|
2764
2764
|
!t && !io[e] && (io[e] = !0, process.env.NODE_ENV !== "production" && we(!1, n));
|
|
2765
2765
|
}
|
|
2766
2766
|
const so = {};
|
|
2767
|
-
function
|
|
2767
|
+
function es(e, t) {
|
|
2768
2768
|
process.env.NODE_ENV !== "production" && !so[t] && (so[t] = !0, console.warn(t));
|
|
2769
2769
|
}
|
|
2770
|
-
const
|
|
2771
|
-
function
|
|
2772
|
-
(e == null ? void 0 : e.v7_startTransition) === void 0 &&
|
|
2770
|
+
const xt = (e, t, n) => es(e, "⚠️ React Router Future Flag Warning: " + t + ". " + ("You can use the `" + e + "` future flag to opt-in early. ") + ("For more information, see " + n + "."));
|
|
2771
|
+
function ts(e, t) {
|
|
2772
|
+
(e == null ? void 0 : e.v7_startTransition) === void 0 && xt("v7_startTransition", "React Router will begin wrapping state updates in `React.startTransition` in v7", "https://reactrouter.com/v6/upgrading/future#v7_starttransition"), (e == null ? void 0 : e.v7_relativeSplatPath) === void 0 && (!t || !t.v7_relativeSplatPath) && xt("v7_relativeSplatPath", "Relative route resolution within Splat routes is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"), t && (t.v7_fetcherPersist === void 0 && xt("v7_fetcherPersist", "The persistence behavior of fetchers is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"), t.v7_normalizeFormMethod === void 0 && xt("v7_normalizeFormMethod", "Casing of `formMethod` fields is being normalized to uppercase in v7", "https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"), t.v7_partialHydration === void 0 && xt("v7_partialHydration", "`RouterProvider` hydration behavior is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_partialhydration"), t.v7_skipActionErrorRevalidation === void 0 && xt("v7_skipActionErrorRevalidation", "The revalidation behavior after 4xx/5xx `action` responses is changing in v7", "https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"));
|
|
2773
2773
|
}
|
|
2774
2774
|
function Nd(e) {
|
|
2775
2775
|
let {
|
|
@@ -2793,7 +2793,7 @@ function Nd(e) {
|
|
|
2793
2793
|
matches: s
|
|
2794
2794
|
} = E.useContext($e), {
|
|
2795
2795
|
pathname: l
|
|
2796
|
-
} = Qe(), c =
|
|
2796
|
+
} = Qe(), c = Mn(), u = Pn(t, Tn(s, a.v7_relativeSplatPath), l, o === "path"), d = JSON.stringify(u);
|
|
2797
2797
|
return E.useEffect(() => c(JSON.parse(d), {
|
|
2798
2798
|
replace: n,
|
|
2799
2799
|
state: r,
|
|
@@ -2801,9 +2801,9 @@ function Nd(e) {
|
|
|
2801
2801
|
}), [c, d, o, n, r]), null;
|
|
2802
2802
|
}
|
|
2803
2803
|
function _d(e) {
|
|
2804
|
-
return
|
|
2804
|
+
return Vi(e.context);
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function ns(e) {
|
|
2807
2807
|
let {
|
|
2808
2808
|
basename: t = "/",
|
|
2809
2809
|
children: n = null,
|
|
@@ -2818,7 +2818,7 @@ function ts(e) {
|
|
|
2818
2818
|
basename: l,
|
|
2819
2819
|
navigator: a,
|
|
2820
2820
|
static: i,
|
|
2821
|
-
future:
|
|
2821
|
+
future: xn({
|
|
2822
2822
|
v7_relativeSplatPath: !1
|
|
2823
2823
|
}, s)
|
|
2824
2824
|
}), [l, s, a, i]);
|
|
@@ -2844,14 +2844,14 @@ function ts(e) {
|
|
|
2844
2844
|
}, [l, u, d, h, y, m, o]);
|
|
2845
2845
|
return process.env.NODE_ENV !== "production" && we(p != null, '<Router basename="' + l + '"> is not able to match the URL ' + ('"' + u + d + h + '" because it does not start with the ') + "basename, so the <Router> won't render anything."), p == null ? null : /* @__PURE__ */ E.createElement(je.Provider, {
|
|
2846
2846
|
value: c
|
|
2847
|
-
}, /* @__PURE__ */ E.createElement(
|
|
2847
|
+
}, /* @__PURE__ */ E.createElement(An.Provider, {
|
|
2848
2848
|
children: n,
|
|
2849
2849
|
value: p
|
|
2850
2850
|
}));
|
|
2851
2851
|
}
|
|
2852
2852
|
new Promise(() => {
|
|
2853
2853
|
});
|
|
2854
|
-
function
|
|
2854
|
+
function rs(e) {
|
|
2855
2855
|
let t = {
|
|
2856
2856
|
// Note: this check also occurs in createRoutesFromChildren so update
|
|
2857
2857
|
// there if you change this -- please and thank you!
|
|
@@ -2899,22 +2899,22 @@ const vn = "get", yn = "application/x-www-form-urlencoded";
|
|
|
2899
2899
|
function Dn(e) {
|
|
2900
2900
|
return e != null && typeof e.tagName == "string";
|
|
2901
2901
|
}
|
|
2902
|
-
function
|
|
2902
|
+
function os(e) {
|
|
2903
2903
|
return Dn(e) && e.tagName.toLowerCase() === "button";
|
|
2904
2904
|
}
|
|
2905
|
-
function
|
|
2905
|
+
function as(e) {
|
|
2906
2906
|
return Dn(e) && e.tagName.toLowerCase() === "form";
|
|
2907
2907
|
}
|
|
2908
|
-
function
|
|
2908
|
+
function is(e) {
|
|
2909
2909
|
return Dn(e) && e.tagName.toLowerCase() === "input";
|
|
2910
2910
|
}
|
|
2911
|
-
function
|
|
2911
|
+
function ss(e) {
|
|
2912
2912
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
2913
2913
|
}
|
|
2914
|
-
function
|
|
2914
|
+
function ls(e, t) {
|
|
2915
2915
|
return e.button === 0 && // Ignore everything but left clicks
|
|
2916
2916
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
2917
|
-
!
|
|
2917
|
+
!ss(e);
|
|
2918
2918
|
}
|
|
2919
2919
|
function ur(e) {
|
|
2920
2920
|
return e === void 0 && (e = ""), new URLSearchParams(typeof e == "string" || Array.isArray(e) || e instanceof URLSearchParams ? e : Object.keys(e).reduce((t, n) => {
|
|
@@ -2922,7 +2922,7 @@ function ur(e) {
|
|
|
2922
2922
|
return t.concat(Array.isArray(r) ? r.map((o) => [n, o]) : [[n, r]]);
|
|
2923
2923
|
}, []));
|
|
2924
2924
|
}
|
|
2925
|
-
function
|
|
2925
|
+
function cs(e, t) {
|
|
2926
2926
|
let n = ur(e);
|
|
2927
2927
|
return t && t.forEach((r, o) => {
|
|
2928
2928
|
n.has(o) || t.getAll(o).forEach((a) => {
|
|
@@ -2931,7 +2931,7 @@ function ls(e, t) {
|
|
|
2931
2931
|
}), n;
|
|
2932
2932
|
}
|
|
2933
2933
|
let fn = null;
|
|
2934
|
-
function
|
|
2934
|
+
function us() {
|
|
2935
2935
|
if (fn === null)
|
|
2936
2936
|
try {
|
|
2937
2937
|
new FormData(
|
|
@@ -2944,21 +2944,21 @@ function cs() {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
return fn;
|
|
2946
2946
|
}
|
|
2947
|
-
const
|
|
2947
|
+
const ds = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
|
|
2948
2948
|
function Xn(e) {
|
|
2949
|
-
return e != null && !
|
|
2949
|
+
return e != null && !ds.has(e) ? (process.env.NODE_ENV !== "production" && we(!1, '"' + e + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + yn + '"')), null) : e;
|
|
2950
2950
|
}
|
|
2951
|
-
function
|
|
2951
|
+
function fs(e, t) {
|
|
2952
2952
|
let n, r, o, a, i;
|
|
2953
|
-
if (
|
|
2953
|
+
if (as(e)) {
|
|
2954
2954
|
let s = e.getAttribute("action");
|
|
2955
2955
|
r = s ? Je(s, t) : null, n = e.getAttribute("method") || vn, o = Xn(e.getAttribute("enctype")) || yn, a = new FormData(e);
|
|
2956
|
-
} else if (
|
|
2956
|
+
} else if (os(e) || is(e) && (e.type === "submit" || e.type === "image")) {
|
|
2957
2957
|
let s = e.form;
|
|
2958
2958
|
if (s == null)
|
|
2959
2959
|
throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
|
|
2960
2960
|
let l = e.getAttribute("formaction") || s.getAttribute("action");
|
|
2961
|
-
if (r = l ? Je(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || yn, a = new FormData(s, e), !
|
|
2961
|
+
if (r = l ? Je(l, t) : null, n = e.getAttribute("formmethod") || s.getAttribute("method") || vn, o = Xn(e.getAttribute("formenctype")) || Xn(s.getAttribute("enctype")) || yn, a = new FormData(s, e), !us()) {
|
|
2962
2962
|
let {
|
|
2963
2963
|
name: c,
|
|
2964
2964
|
type: u,
|
|
@@ -2982,36 +2982,36 @@ function ds(e, t) {
|
|
|
2982
2982
|
body: i
|
|
2983
2983
|
};
|
|
2984
2984
|
}
|
|
2985
|
-
const
|
|
2985
|
+
const hs = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], ps = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], ms = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"], gs = "6";
|
|
2986
2986
|
try {
|
|
2987
|
-
window.__reactRouterVersion =
|
|
2987
|
+
window.__reactRouterVersion = gs;
|
|
2988
2988
|
} catch {
|
|
2989
2989
|
}
|
|
2990
2990
|
function Td(e, t) {
|
|
2991
|
-
return
|
|
2991
|
+
return vi({
|
|
2992
2992
|
basename: void 0,
|
|
2993
2993
|
future: ut({}, void 0, {
|
|
2994
2994
|
v7_prependBasename: !0
|
|
2995
2995
|
}),
|
|
2996
|
-
history:
|
|
2996
|
+
history: Va({
|
|
2997
2997
|
window: void 0
|
|
2998
2998
|
}),
|
|
2999
|
-
hydrationData:
|
|
2999
|
+
hydrationData: vs(),
|
|
3000
3000
|
routes: e,
|
|
3001
|
-
mapRouteProperties:
|
|
3001
|
+
mapRouteProperties: rs,
|
|
3002
3002
|
dataStrategy: void 0,
|
|
3003
3003
|
patchRoutesOnNavigation: void 0,
|
|
3004
3004
|
window: void 0
|
|
3005
3005
|
}).initialize();
|
|
3006
3006
|
}
|
|
3007
|
-
function
|
|
3007
|
+
function vs() {
|
|
3008
3008
|
var e;
|
|
3009
3009
|
let t = (e = window) == null ? void 0 : e.__staticRouterHydrationData;
|
|
3010
3010
|
return t && t.errors && (t = ut({}, t, {
|
|
3011
|
-
errors:
|
|
3011
|
+
errors: ys(t.errors)
|
|
3012
3012
|
})), t;
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function ys(e) {
|
|
3015
3015
|
if (!e) return null;
|
|
3016
3016
|
let t = Object.entries(e), n = {};
|
|
3017
3017
|
for (let [r, o] of t)
|
|
@@ -3041,14 +3041,14 @@ const _r = /* @__PURE__ */ E.createContext({
|
|
|
3041
3041
|
process.env.NODE_ENV !== "production" && (_r.displayName = "ViewTransition");
|
|
3042
3042
|
const Jo = /* @__PURE__ */ E.createContext(/* @__PURE__ */ new Map());
|
|
3043
3043
|
process.env.NODE_ENV !== "production" && (Jo.displayName = "Fetchers");
|
|
3044
|
-
const
|
|
3045
|
-
function
|
|
3044
|
+
const ws = "startTransition", lo = E[ws], bs = "flushSync", co = Pa[bs];
|
|
3045
|
+
function Ss(e) {
|
|
3046
3046
|
lo ? lo(e) : e();
|
|
3047
3047
|
}
|
|
3048
3048
|
function Bt(e) {
|
|
3049
3049
|
co ? co(e) : e();
|
|
3050
3050
|
}
|
|
3051
|
-
class
|
|
3051
|
+
class Cs {
|
|
3052
3052
|
constructor() {
|
|
3053
3053
|
this.status = "pending", this.promise = new Promise((t, n) => {
|
|
3054
3054
|
this.resolve = (r) => {
|
|
@@ -3067,10 +3067,10 @@ function Pd(e) {
|
|
|
3067
3067
|
} = e, [o, a] = E.useState(n.state), [i, s] = E.useState(), [l, c] = E.useState({
|
|
3068
3068
|
isTransitioning: !1
|
|
3069
3069
|
}), [u, d] = E.useState(), [h, y] = E.useState(), [m, p] = E.useState(), v = E.useRef(/* @__PURE__ */ new Map()), {
|
|
3070
|
-
v7_startTransition:
|
|
3070
|
+
v7_startTransition: x
|
|
3071
3071
|
} = r || {}, b = E.useCallback((T) => {
|
|
3072
|
-
|
|
3073
|
-
}, [
|
|
3072
|
+
x ? Ss(T) : T();
|
|
3073
|
+
}, [x]), L = E.useCallback((T, K) => {
|
|
3074
3074
|
let {
|
|
3075
3075
|
deletedFetchers: B,
|
|
3076
3076
|
flushSync: ae,
|
|
@@ -3116,8 +3116,8 @@ function Pd(e) {
|
|
|
3116
3116
|
nextLocation: ee.nextLocation
|
|
3117
3117
|
}));
|
|
3118
3118
|
}, [n.window, h, u, v, b]);
|
|
3119
|
-
E.useLayoutEffect(() => n.subscribe(
|
|
3120
|
-
l.isTransitioning && !l.flushSync && d(new
|
|
3119
|
+
E.useLayoutEffect(() => n.subscribe(L), [n, L]), E.useEffect(() => {
|
|
3120
|
+
l.isTransitioning && !l.flushSync && d(new Cs());
|
|
3121
3121
|
}, [l]), E.useEffect(() => {
|
|
3122
3122
|
if (u && i && n.window) {
|
|
3123
3123
|
let T = i, K = u.promise, B = n.window.document.startViewTransition(async () => {
|
|
@@ -3162,7 +3162,7 @@ function Pd(e) {
|
|
|
3162
3162
|
}), [n, _, N]), w = E.useMemo(() => ({
|
|
3163
3163
|
v7_relativeSplatPath: n.future.v7_relativeSplatPath
|
|
3164
3164
|
}), [n.future.v7_relativeSplatPath]);
|
|
3165
|
-
return E.useEffect(() =>
|
|
3165
|
+
return E.useEffect(() => ts(r, n.future), [r, n.future]), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement(_t.Provider, {
|
|
3166
3166
|
value: U
|
|
3167
3167
|
}, /* @__PURE__ */ E.createElement(On.Provider, {
|
|
3168
3168
|
value: o
|
|
@@ -3170,29 +3170,29 @@ function Pd(e) {
|
|
|
3170
3170
|
value: v.current
|
|
3171
3171
|
}, /* @__PURE__ */ E.createElement(_r.Provider, {
|
|
3172
3172
|
value: l
|
|
3173
|
-
}, /* @__PURE__ */ E.createElement(
|
|
3173
|
+
}, /* @__PURE__ */ E.createElement(ns, {
|
|
3174
3174
|
basename: N,
|
|
3175
3175
|
location: o.location,
|
|
3176
3176
|
navigationType: o.historyAction,
|
|
3177
3177
|
navigator: _,
|
|
3178
3178
|
future: w
|
|
3179
|
-
}, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ E.createElement(
|
|
3179
|
+
}, o.initialized || n.future.v7_partialHydration ? /* @__PURE__ */ E.createElement(Es, {
|
|
3180
3180
|
routes: n.routes,
|
|
3181
3181
|
future: n.future,
|
|
3182
3182
|
state: o
|
|
3183
3183
|
}) : t))))), null);
|
|
3184
3184
|
}
|
|
3185
|
-
const
|
|
3186
|
-
function
|
|
3185
|
+
const Es = /* @__PURE__ */ E.memo(Rs);
|
|
3186
|
+
function Rs(e) {
|
|
3187
3187
|
let {
|
|
3188
3188
|
routes: t,
|
|
3189
3189
|
future: n,
|
|
3190
3190
|
state: r
|
|
3191
3191
|
} = e;
|
|
3192
|
-
return
|
|
3192
|
+
return ji(t, void 0, r, n);
|
|
3193
3193
|
}
|
|
3194
3194
|
process.env.NODE_ENV;
|
|
3195
|
-
const
|
|
3195
|
+
const xs = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ls = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Wo = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
3196
3196
|
let {
|
|
3197
3197
|
onClick: r,
|
|
3198
3198
|
relative: o,
|
|
@@ -3203,19 +3203,19 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3203
3203
|
to: c,
|
|
3204
3204
|
preventScrollReset: u,
|
|
3205
3205
|
viewTransition: d
|
|
3206
|
-
} = t, h = Nr(t,
|
|
3206
|
+
} = t, h = Nr(t, hs), {
|
|
3207
3207
|
basename: y
|
|
3208
3208
|
} = E.useContext(je), m, p = !1;
|
|
3209
|
-
if (typeof c == "string" &&
|
|
3209
|
+
if (typeof c == "string" && Ls.test(c) && (m = c, xs))
|
|
3210
3210
|
try {
|
|
3211
|
-
let
|
|
3212
|
-
_.origin ===
|
|
3211
|
+
let L = new URL(window.location.href), _ = c.startsWith("//") ? new URL(L.protocol + c) : new URL(c), N = Je(_.pathname, y);
|
|
3212
|
+
_.origin === L.origin && N != null ? c = N + _.search + _.hash : p = !0;
|
|
3213
3213
|
} catch {
|
|
3214
3214
|
process.env.NODE_ENV !== "production" && we(!1, '<Link to="' + c + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.');
|
|
3215
3215
|
}
|
|
3216
|
-
let v =
|
|
3216
|
+
let v = Bi(c, {
|
|
3217
3217
|
relative: o
|
|
3218
|
-
}),
|
|
3218
|
+
}), x = Ts(c, {
|
|
3219
3219
|
replace: i,
|
|
3220
3220
|
state: s,
|
|
3221
3221
|
target: l,
|
|
@@ -3223,8 +3223,8 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3223
3223
|
relative: o,
|
|
3224
3224
|
viewTransition: d
|
|
3225
3225
|
});
|
|
3226
|
-
function b(
|
|
3227
|
-
r && r(
|
|
3226
|
+
function b(L) {
|
|
3227
|
+
r && r(L), L.defaultPrevented || x(L);
|
|
3228
3228
|
}
|
|
3229
3229
|
return (
|
|
3230
3230
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
@@ -3237,7 +3237,7 @@ const Rs = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
|
3237
3237
|
);
|
|
3238
3238
|
});
|
|
3239
3239
|
process.env.NODE_ENV !== "production" && (Wo.displayName = "Link");
|
|
3240
|
-
const
|
|
3240
|
+
const ks = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
3241
3241
|
let {
|
|
3242
3242
|
"aria-current": r = "page",
|
|
3243
3243
|
caseSensitive: o = !1,
|
|
@@ -3247,22 +3247,22 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
3247
3247
|
to: l,
|
|
3248
3248
|
viewTransition: c,
|
|
3249
3249
|
children: u
|
|
3250
|
-
} = t, d = Nr(t,
|
|
3250
|
+
} = t, d = Nr(t, ps), h = Yt(l, {
|
|
3251
3251
|
relative: d.relative
|
|
3252
3252
|
}), y = Qe(), m = E.useContext(On), {
|
|
3253
3253
|
navigator: p,
|
|
3254
3254
|
basename: v
|
|
3255
|
-
} = E.useContext(je),
|
|
3255
|
+
} = E.useContext(je), x = m != null && // Conditional usage is OK here because the usage of a data router is static
|
|
3256
3256
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3257
|
-
|
|
3258
|
-
o || (
|
|
3257
|
+
Fs(h) && c === !0, b = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, L = y.pathname, _ = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
|
|
3258
|
+
o || (L = L.toLowerCase(), _ = _ ? _.toLowerCase() : null, b = b.toLowerCase()), _ && v && (_ = Je(_, v) || _);
|
|
3259
3259
|
const N = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
|
|
3260
|
-
let U =
|
|
3260
|
+
let U = L === b || !i && L.startsWith(b) && L.charAt(N) === "/", w = _ != null && (_ === b || !i && _.startsWith(b) && _.charAt(b.length) === "/"), T = {
|
|
3261
3261
|
isActive: U,
|
|
3262
3262
|
isPending: w,
|
|
3263
|
-
isTransitioning:
|
|
3263
|
+
isTransitioning: x
|
|
3264
3264
|
}, K = U ? r : void 0, B;
|
|
3265
|
-
typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, w ? "pending" : null,
|
|
3265
|
+
typeof a == "function" ? B = a(T) : B = [a, U ? "active" : null, w ? "pending" : null, x ? "transitioning" : null].filter(Boolean).join(" ");
|
|
3266
3266
|
let ae = typeof s == "function" ? s(T) : s;
|
|
3267
3267
|
return /* @__PURE__ */ E.createElement(Wo, ut({}, d, {
|
|
3268
3268
|
"aria-current": K,
|
|
@@ -3273,8 +3273,8 @@ const xs = /* @__PURE__ */ E.forwardRef(function(t, n) {
|
|
|
3273
3273
|
viewTransition: c
|
|
3274
3274
|
}), typeof u == "function" ? u(T) : u);
|
|
3275
3275
|
});
|
|
3276
|
-
process.env.NODE_ENV !== "production" && (
|
|
3277
|
-
const
|
|
3276
|
+
process.env.NODE_ENV !== "production" && (ks.displayName = "NavLink");
|
|
3277
|
+
const Ns = /* @__PURE__ */ E.forwardRef((e, t) => {
|
|
3278
3278
|
let {
|
|
3279
3279
|
fetcherKey: n,
|
|
3280
3280
|
navigate: r,
|
|
@@ -3287,13 +3287,13 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
|
|
|
3287
3287
|
relative: u,
|
|
3288
3288
|
preventScrollReset: d,
|
|
3289
3289
|
viewTransition: h
|
|
3290
|
-
} = e, y = Nr(e,
|
|
3290
|
+
} = e, y = Nr(e, ms), m = Ms(), p = Ds(l, {
|
|
3291
3291
|
relative: u
|
|
3292
|
-
}), v = s.toLowerCase() === "get" ? "get" : "post",
|
|
3292
|
+
}), v = s.toLowerCase() === "get" ? "get" : "post", x = (b) => {
|
|
3293
3293
|
if (c && c(b), b.defaultPrevented) return;
|
|
3294
3294
|
b.preventDefault();
|
|
3295
|
-
let
|
|
3296
|
-
m(
|
|
3295
|
+
let L = b.nativeEvent.submitter, _ = (L == null ? void 0 : L.getAttribute("formmethod")) || s;
|
|
3296
|
+
m(L || b.currentTarget, {
|
|
3297
3297
|
fetcherKey: n,
|
|
3298
3298
|
method: _,
|
|
3299
3299
|
navigate: r,
|
|
@@ -3308,27 +3308,27 @@ const Ls = /* @__PURE__ */ E.forwardRef((e, t) => {
|
|
|
3308
3308
|
ref: t,
|
|
3309
3309
|
method: v,
|
|
3310
3310
|
action: p,
|
|
3311
|
-
onSubmit: o ? c :
|
|
3311
|
+
onSubmit: o ? c : x
|
|
3312
3312
|
}, y));
|
|
3313
3313
|
});
|
|
3314
|
-
process.env.NODE_ENV !== "production" && (
|
|
3314
|
+
process.env.NODE_ENV !== "production" && (Ns.displayName = "Form");
|
|
3315
3315
|
process.env.NODE_ENV;
|
|
3316
|
-
var
|
|
3316
|
+
var Ln;
|
|
3317
3317
|
(function(e) {
|
|
3318
3318
|
e.UseScrollRestoration = "useScrollRestoration", e.UseSubmit = "useSubmit", e.UseSubmitFetcher = "useSubmitFetcher", e.UseFetcher = "useFetcher", e.useViewTransitionState = "useViewTransitionState";
|
|
3319
|
-
})(
|
|
3319
|
+
})(Ln || (Ln = {}));
|
|
3320
3320
|
var uo;
|
|
3321
3321
|
(function(e) {
|
|
3322
3322
|
e.UseFetcher = "useFetcher", e.UseFetchers = "useFetchers", e.UseScrollRestoration = "useScrollRestoration";
|
|
3323
3323
|
})(uo || (uo = {}));
|
|
3324
|
-
function
|
|
3324
|
+
function _s(e) {
|
|
3325
3325
|
return e + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
|
|
3326
3326
|
}
|
|
3327
3327
|
function Zo(e) {
|
|
3328
3328
|
let t = E.useContext(_t);
|
|
3329
|
-
return t || (process.env.NODE_ENV !== "production" ? I(!1,
|
|
3329
|
+
return t || (process.env.NODE_ENV !== "production" ? I(!1, _s(e)) : I(!1)), t;
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function Ts(e, t) {
|
|
3332
3332
|
let {
|
|
3333
3333
|
target: n,
|
|
3334
3334
|
replace: r,
|
|
@@ -3336,11 +3336,11 @@ function _s(e, t) {
|
|
|
3336
3336
|
preventScrollReset: a,
|
|
3337
3337
|
relative: i,
|
|
3338
3338
|
viewTransition: s
|
|
3339
|
-
} = t === void 0 ? {} : t, l =
|
|
3339
|
+
} = t === void 0 ? {} : t, l = Mn(), c = Qe(), u = Yt(e, {
|
|
3340
3340
|
relative: i
|
|
3341
3341
|
});
|
|
3342
3342
|
return E.useCallback((d) => {
|
|
3343
|
-
if (
|
|
3343
|
+
if (ls(d, n)) {
|
|
3344
3344
|
d.preventDefault();
|
|
3345
3345
|
let h = r !== void 0 ? r : ct(c) === ct(u);
|
|
3346
3346
|
l(e, {
|
|
@@ -3359,35 +3359,35 @@ function Od(e) {
|
|
|
3359
3359
|
// Only merge in the defaults if we haven't yet called setSearchParams.
|
|
3360
3360
|
// Once we call that we want those to take precedence, otherwise you can't
|
|
3361
3361
|
// remove a param with setSearchParams({}) if it has an initial value
|
|
3362
|
-
|
|
3363
|
-
), [r.search]), a =
|
|
3362
|
+
cs(r.search, n.current ? null : t.current)
|
|
3363
|
+
), [r.search]), a = Mn(), i = E.useCallback((s, l) => {
|
|
3364
3364
|
const c = ur(typeof s == "function" ? s(o) : s);
|
|
3365
3365
|
n.current = !0, a("?" + c, l);
|
|
3366
3366
|
}, [a, o]);
|
|
3367
3367
|
return [o, i];
|
|
3368
3368
|
}
|
|
3369
|
-
function
|
|
3369
|
+
function Ps() {
|
|
3370
3370
|
if (typeof document > "u")
|
|
3371
3371
|
throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
|
|
3372
3372
|
}
|
|
3373
|
-
let
|
|
3373
|
+
let Os = 0, As = () => "__" + String(++Os) + "__";
|
|
3374
3374
|
function Ms() {
|
|
3375
3375
|
let {
|
|
3376
3376
|
router: e
|
|
3377
|
-
} = Zo(
|
|
3377
|
+
} = Zo(Ln.UseSubmit), {
|
|
3378
3378
|
basename: t
|
|
3379
|
-
} = E.useContext(je), n =
|
|
3379
|
+
} = E.useContext(je), n = Yi();
|
|
3380
3380
|
return E.useCallback(function(r, o) {
|
|
3381
|
-
o === void 0 && (o = {}),
|
|
3381
|
+
o === void 0 && (o = {}), Ps();
|
|
3382
3382
|
let {
|
|
3383
3383
|
action: a,
|
|
3384
3384
|
method: i,
|
|
3385
3385
|
encType: s,
|
|
3386
3386
|
formData: l,
|
|
3387
3387
|
body: c
|
|
3388
|
-
} =
|
|
3388
|
+
} = fs(r, t);
|
|
3389
3389
|
if (o.navigate === !1) {
|
|
3390
|
-
let u = o.fetcherKey ||
|
|
3390
|
+
let u = o.fetcherKey || As();
|
|
3391
3391
|
e.fetch(u, n, o.action || a, {
|
|
3392
3392
|
preventScrollReset: o.preventScrollReset,
|
|
3393
3393
|
formData: l,
|
|
@@ -3411,7 +3411,7 @@ function Ms() {
|
|
|
3411
3411
|
});
|
|
3412
3412
|
}, [e, t, n]);
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function Ds(e, t) {
|
|
3415
3415
|
let {
|
|
3416
3416
|
relative: n
|
|
3417
3417
|
} = t === void 0 ? {} : t, {
|
|
@@ -3432,13 +3432,13 @@ function As(e, t) {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
return (!e || e === ".") && a.route.index && (i.search = i.search ? i.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (i.pathname = i.pathname === "/" ? r : Xe([r, i.pathname])), ct(i);
|
|
3434
3434
|
}
|
|
3435
|
-
function
|
|
3435
|
+
function Fs(e, t) {
|
|
3436
3436
|
t === void 0 && (t = {});
|
|
3437
3437
|
let n = E.useContext(_r);
|
|
3438
3438
|
n == null && (process.env.NODE_ENV !== "production" ? I(!1, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : I(!1));
|
|
3439
3439
|
let {
|
|
3440
3440
|
basename: r
|
|
3441
|
-
} = Zo(
|
|
3441
|
+
} = Zo(Ln.useViewTransitionState), o = Yt(e, {
|
|
3442
3442
|
relative: t.relative
|
|
3443
3443
|
});
|
|
3444
3444
|
if (!n.isTransitioning)
|
|
@@ -3446,8 +3446,8 @@ function Ds(e, t) {
|
|
|
3446
3446
|
let a = Je(n.currentLocation.pathname, r) || n.currentLocation.pathname, i = Je(n.nextLocation.pathname, r) || n.nextLocation.pathname;
|
|
3447
3447
|
return En(o.pathname, i) != null || En(o.pathname, a) != null;
|
|
3448
3448
|
}
|
|
3449
|
-
var qo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(qo || {}),
|
|
3450
|
-
const
|
|
3449
|
+
var qo = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Subscriptions = "Subscriptions", e.Tickets = "Tickets", e.Api = "API", e))(qo || {}), Is = /* @__PURE__ */ ((e) => (e.Home = "Home", e.Orders = "Orders", e.Rewards = "Rewards", e.Balance = "Balance", e.Tickets = "Tickets", e.Api = "API", e))(Is || {});
|
|
3450
|
+
const Ad = [
|
|
3451
3451
|
{
|
|
3452
3452
|
caption: "Share link",
|
|
3453
3453
|
description: "Send the link to your friends in all convenient ways"
|
|
@@ -3470,8 +3470,8 @@ const Md = [
|
|
|
3470
3470
|
}
|
|
3471
3471
|
}, o = () => t, s = { setState: r, getState: o, getInitialState: () => l, subscribe: (c) => (n.add(c), () => n.delete(c)) }, l = t = e(r, o, s);
|
|
3472
3472
|
return s;
|
|
3473
|
-
},
|
|
3474
|
-
function
|
|
3473
|
+
}, Bs = (e) => e ? fo(e) : fo, Hs = (e) => e;
|
|
3474
|
+
function Us(e, t = Hs) {
|
|
3475
3475
|
const n = _e.useSyncExternalStore(
|
|
3476
3476
|
e.subscribe,
|
|
3477
3477
|
() => t(e.getState()),
|
|
@@ -3480,9 +3480,9 @@ function Hs(e, t = Bs) {
|
|
|
3480
3480
|
return _e.useDebugValue(n), n;
|
|
3481
3481
|
}
|
|
3482
3482
|
const ho = (e) => {
|
|
3483
|
-
const t =
|
|
3483
|
+
const t = Bs(e), n = (r) => Us(t, r);
|
|
3484
3484
|
return Object.assign(n, t), n;
|
|
3485
|
-
}, se = (e) => e ? ho(e) : ho,
|
|
3485
|
+
}, se = (e) => e ? ho(e) : ho, Md = se((e) => ({
|
|
3486
3486
|
action: null,
|
|
3487
3487
|
setAction: (t) => e(() => ({ action: t })),
|
|
3488
3488
|
route: qo.Home,
|
|
@@ -3527,13 +3527,13 @@ const ho = (e) => {
|
|
|
3527
3527
|
class zt extends Error {
|
|
3528
3528
|
}
|
|
3529
3529
|
zt.prototype.name = "InvalidTokenError";
|
|
3530
|
-
function
|
|
3530
|
+
function Vs(e) {
|
|
3531
3531
|
return decodeURIComponent(atob(e).replace(/(.)/g, (t, n) => {
|
|
3532
3532
|
let r = n.charCodeAt(0).toString(16).toUpperCase();
|
|
3533
3533
|
return r.length < 2 && (r = "0" + r), "%" + r;
|
|
3534
3534
|
}));
|
|
3535
3535
|
}
|
|
3536
|
-
function
|
|
3536
|
+
function js(e) {
|
|
3537
3537
|
let t = e.replace(/-/g, "+").replace(/_/g, "/");
|
|
3538
3538
|
switch (t.length % 4) {
|
|
3539
3539
|
case 0:
|
|
@@ -3548,12 +3548,12 @@ function Vs(e) {
|
|
|
3548
3548
|
throw new Error("base64 string is not of the correct length");
|
|
3549
3549
|
}
|
|
3550
3550
|
try {
|
|
3551
|
-
return
|
|
3551
|
+
return Vs(t);
|
|
3552
3552
|
} catch {
|
|
3553
3553
|
return atob(t);
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
|
-
function
|
|
3556
|
+
function $s(e, t) {
|
|
3557
3557
|
if (typeof e != "string")
|
|
3558
3558
|
throw new zt("Invalid token specified: must be a string");
|
|
3559
3559
|
t || (t = {});
|
|
@@ -3562,7 +3562,7 @@ function js(e, t) {
|
|
|
3562
3562
|
throw new zt(`Invalid token specified: missing part #${n + 1}`);
|
|
3563
3563
|
let o;
|
|
3564
3564
|
try {
|
|
3565
|
-
o =
|
|
3565
|
+
o = js(r);
|
|
3566
3566
|
} catch (a) {
|
|
3567
3567
|
throw new zt(`Invalid token specified: invalid base64 for part #${n + 1} (${a.message})`);
|
|
3568
3568
|
}
|
|
@@ -3577,28 +3577,28 @@ function Ko(e, t) {
|
|
|
3577
3577
|
return e.apply(t, arguments);
|
|
3578
3578
|
};
|
|
3579
3579
|
}
|
|
3580
|
-
const { toString:
|
|
3581
|
-
const n =
|
|
3580
|
+
const { toString: zs } = Object.prototype, { getPrototypeOf: Tr } = Object, Fn = /* @__PURE__ */ ((e) => (t) => {
|
|
3581
|
+
const n = zs.call(t);
|
|
3582
3582
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
3583
3583
|
})(/* @__PURE__ */ Object.create(null)), We = (e) => (e = e.toLowerCase(), (t) => Fn(t) === e), In = (e) => (t) => typeof t === e, { isArray: Pt } = Array, Gt = In("undefined");
|
|
3584
|
-
function
|
|
3584
|
+
function Js(e) {
|
|
3585
3585
|
return e !== null && !Gt(e) && e.constructor !== null && !Gt(e.constructor) && Be(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
3586
3586
|
}
|
|
3587
3587
|
const Go = We("ArrayBuffer");
|
|
3588
|
-
function
|
|
3588
|
+
function Ws(e) {
|
|
3589
3589
|
let t;
|
|
3590
3590
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Go(e.buffer), t;
|
|
3591
3591
|
}
|
|
3592
|
-
const
|
|
3592
|
+
const Zs = In("string"), Be = In("function"), Yo = In("number"), Bn = (e) => e !== null && typeof e == "object", qs = (e) => e === !0 || e === !1, wn = (e) => {
|
|
3593
3593
|
if (Fn(e) !== "object")
|
|
3594
3594
|
return !1;
|
|
3595
3595
|
const t = Tr(e);
|
|
3596
3596
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
3597
|
-
},
|
|
3597
|
+
}, Ks = We("Date"), Gs = We("File"), Ys = We("Blob"), Xs = We("FileList"), Qs = (e) => Bn(e) && Be(e.pipe), el = (e) => {
|
|
3598
3598
|
let t;
|
|
3599
3599
|
return e && (typeof FormData == "function" && e instanceof FormData || Be(e.append) && ((t = Fn(e)) === "formdata" || // detect form-data instance
|
|
3600
3600
|
t === "object" && Be(e.toString) && e.toString() === "[object FormData]"));
|
|
3601
|
-
},
|
|
3601
|
+
}, tl = We("URLSearchParams"), [nl, rl, ol, al] = ["ReadableStream", "Request", "Response", "Headers"].map(We), il = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
3602
3602
|
function Xt(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
3603
3603
|
if (e === null || typeof e > "u")
|
|
3604
3604
|
return;
|
|
@@ -3632,13 +3632,13 @@ function dr() {
|
|
|
3632
3632
|
arguments[r] && Xt(arguments[r], n);
|
|
3633
3633
|
return t;
|
|
3634
3634
|
}
|
|
3635
|
-
const
|
|
3635
|
+
const sl = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
3636
3636
|
n && Be(o) ? e[a] = Ko(o, n) : e[a] = o;
|
|
3637
|
-
}, { allOwnKeys: r }), e),
|
|
3637
|
+
}, { allOwnKeys: r }), e), ll = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), cl = (e, t, n, r) => {
|
|
3638
3638
|
e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
|
|
3639
3639
|
value: t.prototype
|
|
3640
3640
|
}), n && Object.assign(e.prototype, n);
|
|
3641
|
-
},
|
|
3641
|
+
}, ul = (e, t, n, r) => {
|
|
3642
3642
|
let o, a, i;
|
|
3643
3643
|
const s = {};
|
|
3644
3644
|
if (t = t || {}, e == null) return t;
|
|
@@ -3648,11 +3648,11 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3648
3648
|
e = n !== !1 && Tr(e);
|
|
3649
3649
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
3650
3650
|
return t;
|
|
3651
|
-
},
|
|
3651
|
+
}, dl = (e, t, n) => {
|
|
3652
3652
|
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
3653
3653
|
const r = e.indexOf(t, n);
|
|
3654
3654
|
return r !== -1 && r === n;
|
|
3655
|
-
},
|
|
3655
|
+
}, fl = (e) => {
|
|
3656
3656
|
if (!e) return null;
|
|
3657
3657
|
if (Pt(e)) return e;
|
|
3658
3658
|
let t = e.length;
|
|
@@ -3661,31 +3661,31 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3661
3661
|
for (; t-- > 0; )
|
|
3662
3662
|
n[t] = e[t];
|
|
3663
3663
|
return n;
|
|
3664
|
-
},
|
|
3664
|
+
}, hl = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Tr(Uint8Array)), pl = (e, t) => {
|
|
3665
3665
|
const r = (e && e[Symbol.iterator]).call(e);
|
|
3666
3666
|
let o;
|
|
3667
3667
|
for (; (o = r.next()) && !o.done; ) {
|
|
3668
3668
|
const a = o.value;
|
|
3669
3669
|
t.call(e, a[0], a[1]);
|
|
3670
3670
|
}
|
|
3671
|
-
},
|
|
3671
|
+
}, ml = (e, t) => {
|
|
3672
3672
|
let n;
|
|
3673
3673
|
const r = [];
|
|
3674
3674
|
for (; (n = e.exec(t)) !== null; )
|
|
3675
3675
|
r.push(n);
|
|
3676
3676
|
return r;
|
|
3677
|
-
},
|
|
3677
|
+
}, gl = We("HTMLFormElement"), vl = (e) => e.toLowerCase().replace(
|
|
3678
3678
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
3679
3679
|
function(n, r, o) {
|
|
3680
3680
|
return r.toUpperCase() + o;
|
|
3681
3681
|
}
|
|
3682
|
-
), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype),
|
|
3682
|
+
), po = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), yl = We("RegExp"), ea = (e, t) => {
|
|
3683
3683
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
3684
3684
|
Xt(n, (o, a) => {
|
|
3685
3685
|
let i;
|
|
3686
3686
|
(i = t(o, a, e)) !== !1 && (r[a] = i || o);
|
|
3687
3687
|
}), Object.defineProperties(e, r);
|
|
3688
|
-
},
|
|
3688
|
+
}, wl = (e) => {
|
|
3689
3689
|
ea(e, (t, n) => {
|
|
3690
3690
|
if (Be(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
3691
3691
|
return !1;
|
|
@@ -3700,19 +3700,19 @@ const il = (e, t, n, { allOwnKeys: r } = {}) => (Xt(t, (o, a) => {
|
|
|
3700
3700
|
});
|
|
3701
3701
|
}
|
|
3702
3702
|
});
|
|
3703
|
-
},
|
|
3703
|
+
}, bl = (e, t) => {
|
|
3704
3704
|
const n = {}, r = (o) => {
|
|
3705
3705
|
o.forEach((a) => {
|
|
3706
3706
|
n[a] = !0;
|
|
3707
3707
|
});
|
|
3708
3708
|
};
|
|
3709
3709
|
return Pt(e) ? r(e) : r(String(e).split(t)), n;
|
|
3710
|
-
},
|
|
3711
|
-
},
|
|
3712
|
-
function
|
|
3710
|
+
}, Sl = () => {
|
|
3711
|
+
}, Cl = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
3712
|
+
function El(e) {
|
|
3713
3713
|
return !!(e && Be(e.append) && e[Symbol.toStringTag] === "FormData" && e[Symbol.iterator]);
|
|
3714
3714
|
}
|
|
3715
|
-
const
|
|
3715
|
+
const Rl = (e) => {
|
|
3716
3716
|
const t = new Array(10), n = (r, o) => {
|
|
3717
3717
|
if (Bn(r)) {
|
|
3718
3718
|
if (t.indexOf(r) >= 0)
|
|
@@ -3729,70 +3729,70 @@ const El = (e) => {
|
|
|
3729
3729
|
return r;
|
|
3730
3730
|
};
|
|
3731
3731
|
return n(e, 0);
|
|
3732
|
-
},
|
|
3732
|
+
}, xl = We("AsyncFunction"), Ll = (e) => e && (Bn(e) || Be(e)) && Be(e.then) && Be(e.catch), ta = ((e, t) => e ? setImmediate : t ? ((n, r) => (yt.addEventListener("message", ({ source: o, data: a }) => {
|
|
3733
3733
|
o === yt && a === n && r.length && r.shift()();
|
|
3734
3734
|
}, !1), (o) => {
|
|
3735
3735
|
r.push(o), yt.postMessage(n, "*");
|
|
3736
3736
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3737
3737
|
typeof setImmediate == "function",
|
|
3738
3738
|
Be(yt.postMessage)
|
|
3739
|
-
),
|
|
3739
|
+
), kl = typeof queueMicrotask < "u" ? queueMicrotask.bind(yt) : typeof process < "u" && process.nextTick || ta, C = {
|
|
3740
3740
|
isArray: Pt,
|
|
3741
3741
|
isArrayBuffer: Go,
|
|
3742
|
-
isBuffer:
|
|
3743
|
-
isFormData:
|
|
3744
|
-
isArrayBufferView:
|
|
3745
|
-
isString:
|
|
3742
|
+
isBuffer: Js,
|
|
3743
|
+
isFormData: el,
|
|
3744
|
+
isArrayBufferView: Ws,
|
|
3745
|
+
isString: Zs,
|
|
3746
3746
|
isNumber: Yo,
|
|
3747
|
-
isBoolean:
|
|
3747
|
+
isBoolean: qs,
|
|
3748
3748
|
isObject: Bn,
|
|
3749
3749
|
isPlainObject: wn,
|
|
3750
|
-
isReadableStream:
|
|
3751
|
-
isRequest:
|
|
3752
|
-
isResponse:
|
|
3753
|
-
isHeaders:
|
|
3750
|
+
isReadableStream: nl,
|
|
3751
|
+
isRequest: rl,
|
|
3752
|
+
isResponse: ol,
|
|
3753
|
+
isHeaders: al,
|
|
3754
3754
|
isUndefined: Gt,
|
|
3755
|
-
isDate:
|
|
3756
|
-
isFile:
|
|
3757
|
-
isBlob:
|
|
3758
|
-
isRegExp:
|
|
3755
|
+
isDate: Ks,
|
|
3756
|
+
isFile: Gs,
|
|
3757
|
+
isBlob: Ys,
|
|
3758
|
+
isRegExp: yl,
|
|
3759
3759
|
isFunction: Be,
|
|
3760
|
-
isStream:
|
|
3761
|
-
isURLSearchParams:
|
|
3762
|
-
isTypedArray:
|
|
3763
|
-
isFileList:
|
|
3760
|
+
isStream: Qs,
|
|
3761
|
+
isURLSearchParams: tl,
|
|
3762
|
+
isTypedArray: hl,
|
|
3763
|
+
isFileList: Xs,
|
|
3764
3764
|
forEach: Xt,
|
|
3765
3765
|
merge: dr,
|
|
3766
|
-
extend:
|
|
3767
|
-
trim:
|
|
3768
|
-
stripBOM:
|
|
3769
|
-
inherits:
|
|
3770
|
-
toFlatObject:
|
|
3766
|
+
extend: sl,
|
|
3767
|
+
trim: il,
|
|
3768
|
+
stripBOM: ll,
|
|
3769
|
+
inherits: cl,
|
|
3770
|
+
toFlatObject: ul,
|
|
3771
3771
|
kindOf: Fn,
|
|
3772
3772
|
kindOfTest: We,
|
|
3773
|
-
endsWith:
|
|
3774
|
-
toArray:
|
|
3775
|
-
forEachEntry:
|
|
3776
|
-
matchAll:
|
|
3777
|
-
isHTMLForm:
|
|
3773
|
+
endsWith: dl,
|
|
3774
|
+
toArray: fl,
|
|
3775
|
+
forEachEntry: pl,
|
|
3776
|
+
matchAll: ml,
|
|
3777
|
+
isHTMLForm: gl,
|
|
3778
3778
|
hasOwnProperty: po,
|
|
3779
3779
|
hasOwnProp: po,
|
|
3780
3780
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
3781
3781
|
reduceDescriptors: ea,
|
|
3782
|
-
freezeMethods:
|
|
3783
|
-
toObjectSet:
|
|
3784
|
-
toCamelCase:
|
|
3785
|
-
noop:
|
|
3786
|
-
toFiniteNumber:
|
|
3782
|
+
freezeMethods: wl,
|
|
3783
|
+
toObjectSet: bl,
|
|
3784
|
+
toCamelCase: vl,
|
|
3785
|
+
noop: Sl,
|
|
3786
|
+
toFiniteNumber: Cl,
|
|
3787
3787
|
findKey: Xo,
|
|
3788
3788
|
global: yt,
|
|
3789
3789
|
isContextDefined: Qo,
|
|
3790
|
-
isSpecCompliantForm:
|
|
3791
|
-
toJSONObject:
|
|
3792
|
-
isAsyncFn:
|
|
3793
|
-
isThenable:
|
|
3790
|
+
isSpecCompliantForm: El,
|
|
3791
|
+
toJSONObject: Rl,
|
|
3792
|
+
isAsyncFn: xl,
|
|
3793
|
+
isThenable: Ll,
|
|
3794
3794
|
setImmediate: ta,
|
|
3795
|
-
asap:
|
|
3795
|
+
asap: kl
|
|
3796
3796
|
};
|
|
3797
3797
|
function $(e, t, n, r, o) {
|
|
3798
3798
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
|
|
@@ -3844,7 +3844,7 @@ $.from = (e, t, n, r, o, a) => {
|
|
|
3844
3844
|
return l !== Error.prototype;
|
|
3845
3845
|
}, (s) => s !== "isAxiosError"), $.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, a && Object.assign(i, a), i;
|
|
3846
3846
|
};
|
|
3847
|
-
const
|
|
3847
|
+
const Nl = null;
|
|
3848
3848
|
function fr(e) {
|
|
3849
3849
|
return C.isPlainObject(e) || C.isArray(e);
|
|
3850
3850
|
}
|
|
@@ -3856,10 +3856,10 @@ function mo(e, t, n) {
|
|
|
3856
3856
|
return o = oa(o), !n && a ? "[" + o + "]" : o;
|
|
3857
3857
|
}).join(n ? "." : "") : t;
|
|
3858
3858
|
}
|
|
3859
|
-
function
|
|
3859
|
+
function _l(e) {
|
|
3860
3860
|
return C.isArray(e) && !e.some(fr);
|
|
3861
3861
|
}
|
|
3862
|
-
const
|
|
3862
|
+
const Tl = C.toFlatObject(C, {}, null, function(t) {
|
|
3863
3863
|
return /^is[A-Z]/.test(t);
|
|
3864
3864
|
});
|
|
3865
3865
|
function Hn(e, t, n) {
|
|
@@ -3884,22 +3884,22 @@ function Hn(e, t, n) {
|
|
|
3884
3884
|
return C.isArrayBuffer(m) || C.isTypedArray(m) ? l && typeof Blob == "function" ? new Blob([m]) : Buffer.from(m) : m;
|
|
3885
3885
|
}
|
|
3886
3886
|
function u(m, p, v) {
|
|
3887
|
-
let
|
|
3887
|
+
let x = m;
|
|
3888
3888
|
if (m && !v && typeof m == "object") {
|
|
3889
3889
|
if (C.endsWith(p, "{}"))
|
|
3890
3890
|
p = r ? p : p.slice(0, -2), m = JSON.stringify(m);
|
|
3891
|
-
else if (C.isArray(m) &&
|
|
3892
|
-
return p = oa(p),
|
|
3893
|
-
!(C.isUndefined(
|
|
3891
|
+
else if (C.isArray(m) && _l(m) || (C.isFileList(m) || C.endsWith(p, "[]")) && (x = C.toArray(m)))
|
|
3892
|
+
return p = oa(p), x.forEach(function(L, _) {
|
|
3893
|
+
!(C.isUndefined(L) || L === null) && t.append(
|
|
3894
3894
|
// eslint-disable-next-line no-nested-ternary
|
|
3895
3895
|
i === !0 ? mo([p], _, a) : i === null ? p : p + "[]",
|
|
3896
|
-
c(
|
|
3896
|
+
c(L)
|
|
3897
3897
|
);
|
|
3898
3898
|
}), !1;
|
|
3899
3899
|
}
|
|
3900
3900
|
return fr(m) ? !0 : (t.append(mo(v, p, a), c(m)), !1);
|
|
3901
3901
|
}
|
|
3902
|
-
const d = [], h = Object.assign(
|
|
3902
|
+
const d = [], h = Object.assign(Tl, {
|
|
3903
3903
|
defaultVisitor: u,
|
|
3904
3904
|
convertValue: c,
|
|
3905
3905
|
isVisitable: fr
|
|
@@ -3908,14 +3908,14 @@ function Hn(e, t, n) {
|
|
|
3908
3908
|
if (!C.isUndefined(m)) {
|
|
3909
3909
|
if (d.indexOf(m) !== -1)
|
|
3910
3910
|
throw Error("Circular reference detected in " + p.join("."));
|
|
3911
|
-
d.push(m), C.forEach(m, function(
|
|
3912
|
-
(!(C.isUndefined(
|
|
3911
|
+
d.push(m), C.forEach(m, function(x, b) {
|
|
3912
|
+
(!(C.isUndefined(x) || x === null) && o.call(
|
|
3913
3913
|
t,
|
|
3914
|
-
|
|
3914
|
+
x,
|
|
3915
3915
|
C.isString(b) ? b.trim() : b,
|
|
3916
3916
|
p,
|
|
3917
3917
|
h
|
|
3918
|
-
)) === !0 && y(
|
|
3918
|
+
)) === !0 && y(x, p ? p.concat(b) : [b]);
|
|
3919
3919
|
}), d.pop();
|
|
3920
3920
|
}
|
|
3921
3921
|
}
|
|
@@ -3952,13 +3952,13 @@ aa.toString = function(t) {
|
|
|
3952
3952
|
return n(o[0]) + "=" + n(o[1]);
|
|
3953
3953
|
}, "").join("&");
|
|
3954
3954
|
};
|
|
3955
|
-
function
|
|
3955
|
+
function Pl(e) {
|
|
3956
3956
|
return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
3957
3957
|
}
|
|
3958
3958
|
function ia(e, t, n) {
|
|
3959
3959
|
if (!t)
|
|
3960
3960
|
return e;
|
|
3961
|
-
const r = n && n.encode ||
|
|
3961
|
+
const r = n && n.encode || Pl;
|
|
3962
3962
|
C.isFunction(n) && (n = {
|
|
3963
3963
|
serialize: n
|
|
3964
3964
|
});
|
|
@@ -4028,37 +4028,37 @@ const sa = {
|
|
|
4028
4028
|
silentJSONParsing: !0,
|
|
4029
4029
|
forcedJSONParsing: !0,
|
|
4030
4030
|
clarifyTimeoutError: !1
|
|
4031
|
-
},
|
|
4031
|
+
}, Ol = typeof URLSearchParams < "u" ? URLSearchParams : Pr, Al = typeof FormData < "u" ? FormData : null, Ml = typeof Blob < "u" ? Blob : null, Dl = {
|
|
4032
4032
|
isBrowser: !0,
|
|
4033
4033
|
classes: {
|
|
4034
|
-
URLSearchParams:
|
|
4035
|
-
FormData:
|
|
4034
|
+
URLSearchParams: Ol,
|
|
4035
|
+
FormData: Al,
|
|
4036
4036
|
Blob: Ml
|
|
4037
4037
|
},
|
|
4038
4038
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
4039
|
-
}, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0,
|
|
4040
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
4039
|
+
}, Or = typeof window < "u" && typeof document < "u", hr = typeof navigator == "object" && navigator || void 0, Fl = Or && (!hr || ["ReactNative", "NativeScript", "NS"].indexOf(hr.product) < 0), Il = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
4040
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bl = Or && window.location.href || "http://localhost", Hl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4041
4041
|
__proto__: null,
|
|
4042
4042
|
hasBrowserEnv: Or,
|
|
4043
|
-
hasStandardBrowserEnv:
|
|
4044
|
-
hasStandardBrowserWebWorkerEnv:
|
|
4043
|
+
hasStandardBrowserEnv: Fl,
|
|
4044
|
+
hasStandardBrowserWebWorkerEnv: Il,
|
|
4045
4045
|
navigator: hr,
|
|
4046
|
-
origin:
|
|
4046
|
+
origin: Bl
|
|
4047
4047
|
}, Symbol.toStringTag, { value: "Module" })), Ne = {
|
|
4048
|
-
...
|
|
4049
|
-
...
|
|
4048
|
+
...Hl,
|
|
4049
|
+
...Dl
|
|
4050
4050
|
};
|
|
4051
|
-
function
|
|
4051
|
+
function Ul(e, t) {
|
|
4052
4052
|
return Hn(e, new Ne.classes.URLSearchParams(), Object.assign({
|
|
4053
4053
|
visitor: function(n, r, o, a) {
|
|
4054
4054
|
return Ne.isNode && C.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
4055
4055
|
}
|
|
4056
4056
|
}, t));
|
|
4057
4057
|
}
|
|
4058
|
-
function
|
|
4058
|
+
function Vl(e) {
|
|
4059
4059
|
return C.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function jl(e) {
|
|
4062
4062
|
const t = {}, n = Object.keys(e);
|
|
4063
4063
|
let r;
|
|
4064
4064
|
const o = n.length;
|
|
@@ -4072,17 +4072,17 @@ function la(e) {
|
|
|
4072
4072
|
let i = n[a++];
|
|
4073
4073
|
if (i === "__proto__") return !0;
|
|
4074
4074
|
const s = Number.isFinite(+i), l = a >= n.length;
|
|
4075
|
-
return i = !i && C.isArray(o) ? o.length : i, l ? (C.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !C.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && C.isArray(o[i]) && (o[i] =
|
|
4075
|
+
return i = !i && C.isArray(o) ? o.length : i, l ? (C.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !s) : ((!o[i] || !C.isObject(o[i])) && (o[i] = []), t(n, r, o[i], a) && C.isArray(o[i]) && (o[i] = jl(o[i])), !s);
|
|
4076
4076
|
}
|
|
4077
4077
|
if (C.isFormData(e) && C.isFunction(e.entries)) {
|
|
4078
4078
|
const n = {};
|
|
4079
4079
|
return C.forEachEntry(e, (r, o) => {
|
|
4080
|
-
t(
|
|
4080
|
+
t(Vl(r), o, n, 0);
|
|
4081
4081
|
}), n;
|
|
4082
4082
|
}
|
|
4083
4083
|
return null;
|
|
4084
4084
|
}
|
|
4085
|
-
function
|
|
4085
|
+
function $l(e, t, n) {
|
|
4086
4086
|
if (C.isString(e))
|
|
4087
4087
|
try {
|
|
4088
4088
|
return (t || JSON.parse)(e), C.trim(e);
|
|
@@ -4108,7 +4108,7 @@ const Qt = {
|
|
|
4108
4108
|
let s;
|
|
4109
4109
|
if (a) {
|
|
4110
4110
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
4111
|
-
return
|
|
4111
|
+
return Ul(t, this.formSerializer).toString();
|
|
4112
4112
|
if ((s = C.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
4113
4113
|
const l = this.env && this.env.FormData;
|
|
4114
4114
|
return Hn(
|
|
@@ -4118,7 +4118,7 @@ const Qt = {
|
|
|
4118
4118
|
);
|
|
4119
4119
|
}
|
|
4120
4120
|
}
|
|
4121
|
-
return a || o ? (n.setContentType("application/json", !1),
|
|
4121
|
+
return a || o ? (n.setContentType("application/json", !1), $l(t)) : t;
|
|
4122
4122
|
}],
|
|
4123
4123
|
transformResponse: [function(t) {
|
|
4124
4124
|
const n = this.transitional || Qt.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
|
|
@@ -4161,7 +4161,7 @@ const Qt = {
|
|
|
4161
4161
|
C.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
|
|
4162
4162
|
Qt.headers[e] = {};
|
|
4163
4163
|
});
|
|
4164
|
-
const
|
|
4164
|
+
const zl = C.toObjectSet([
|
|
4165
4165
|
"age",
|
|
4166
4166
|
"authorization",
|
|
4167
4167
|
"content-length",
|
|
@@ -4179,12 +4179,12 @@ const $l = C.toObjectSet([
|
|
|
4179
4179
|
"referer",
|
|
4180
4180
|
"retry-after",
|
|
4181
4181
|
"user-agent"
|
|
4182
|
-
]),
|
|
4182
|
+
]), Jl = (e) => {
|
|
4183
4183
|
const t = {};
|
|
4184
4184
|
let n, r, o;
|
|
4185
4185
|
return e && e.split(`
|
|
4186
4186
|
`).forEach(function(i) {
|
|
4187
|
-
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] &&
|
|
4187
|
+
o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && zl[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
|
|
4188
4188
|
}), t;
|
|
4189
4189
|
}, yo = Symbol("internals");
|
|
4190
4190
|
function Ht(e) {
|
|
@@ -4193,14 +4193,14 @@ function Ht(e) {
|
|
|
4193
4193
|
function bn(e) {
|
|
4194
4194
|
return e === !1 || e == null ? e : C.isArray(e) ? e.map(bn) : String(e);
|
|
4195
4195
|
}
|
|
4196
|
-
function
|
|
4196
|
+
function Wl(e) {
|
|
4197
4197
|
const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
4198
4198
|
let r;
|
|
4199
4199
|
for (; r = n.exec(e); )
|
|
4200
4200
|
t[r[1]] = r[2];
|
|
4201
4201
|
return t;
|
|
4202
4202
|
}
|
|
4203
|
-
const
|
|
4203
|
+
const Zl = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
|
|
4204
4204
|
function Qn(e, t, n, r, o) {
|
|
4205
4205
|
if (C.isFunction(r))
|
|
4206
4206
|
return r.call(this, t, n);
|
|
@@ -4211,10 +4211,10 @@ function Qn(e, t, n, r, o) {
|
|
|
4211
4211
|
return r.test(t);
|
|
4212
4212
|
}
|
|
4213
4213
|
}
|
|
4214
|
-
function
|
|
4214
|
+
function ql(e) {
|
|
4215
4215
|
return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
|
|
4216
4216
|
}
|
|
4217
|
-
function
|
|
4217
|
+
function Kl(e, t) {
|
|
4218
4218
|
const n = C.toCamelCase(" " + t);
|
|
4219
4219
|
["get", "set", "has"].forEach((r) => {
|
|
4220
4220
|
Object.defineProperty(e, r + n, {
|
|
@@ -4241,8 +4241,8 @@ let Fe = class {
|
|
|
4241
4241
|
const i = (s, l) => C.forEach(s, (c, u) => a(c, u, l));
|
|
4242
4242
|
if (C.isPlainObject(t) || t instanceof this.constructor)
|
|
4243
4243
|
i(t, n);
|
|
4244
|
-
else if (C.isString(t) && (t = t.trim()) && !
|
|
4245
|
-
i(
|
|
4244
|
+
else if (C.isString(t) && (t = t.trim()) && !Zl(t))
|
|
4245
|
+
i(Jl(t), n);
|
|
4246
4246
|
else if (C.isHeaders(t))
|
|
4247
4247
|
for (const [s, l] of t.entries())
|
|
4248
4248
|
a(l, s, r);
|
|
@@ -4258,7 +4258,7 @@ let Fe = class {
|
|
|
4258
4258
|
if (!n)
|
|
4259
4259
|
return o;
|
|
4260
4260
|
if (n === !0)
|
|
4261
|
-
return
|
|
4261
|
+
return Wl(o);
|
|
4262
4262
|
if (C.isFunction(n))
|
|
4263
4263
|
return n.call(this, o, r);
|
|
4264
4264
|
if (C.isRegExp(n))
|
|
@@ -4302,7 +4302,7 @@ let Fe = class {
|
|
|
4302
4302
|
n[i] = bn(o), delete n[a];
|
|
4303
4303
|
return;
|
|
4304
4304
|
}
|
|
4305
|
-
const s = t ?
|
|
4305
|
+
const s = t ? ql(a) : String(a).trim();
|
|
4306
4306
|
s !== a && delete n[a], n[s] = bn(o), r[s] = !0;
|
|
4307
4307
|
}), this;
|
|
4308
4308
|
}
|
|
@@ -4338,7 +4338,7 @@ let Fe = class {
|
|
|
4338
4338
|
}).accessors, o = this.prototype;
|
|
4339
4339
|
function a(i) {
|
|
4340
4340
|
const s = Ht(i);
|
|
4341
|
-
r[s] || (
|
|
4341
|
+
r[s] || (Kl(o, i), r[s] = !0);
|
|
4342
4342
|
}
|
|
4343
4343
|
return C.isArray(t) ? t.forEach(a) : a(t), this;
|
|
4344
4344
|
}
|
|
@@ -4380,11 +4380,11 @@ function ua(e, t, n) {
|
|
|
4380
4380
|
n
|
|
4381
4381
|
));
|
|
4382
4382
|
}
|
|
4383
|
-
function
|
|
4383
|
+
function Gl(e) {
|
|
4384
4384
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
4385
4385
|
return t && t[1] || "";
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function Yl(e, t) {
|
|
4388
4388
|
e = e || 10;
|
|
4389
4389
|
const n = new Array(e), r = new Array(e);
|
|
4390
4390
|
let o = 0, a = 0, i;
|
|
@@ -4400,7 +4400,7 @@ function Gl(e, t) {
|
|
|
4400
4400
|
return y ? Math.round(h * 1e3 / y) : void 0;
|
|
4401
4401
|
};
|
|
4402
4402
|
}
|
|
4403
|
-
function
|
|
4403
|
+
function Xl(e, t) {
|
|
4404
4404
|
let n = 0, r = 1e3 / t, o, a;
|
|
4405
4405
|
const i = (c, u = Date.now()) => {
|
|
4406
4406
|
n = u, o = null, a && (clearTimeout(a), a = null), e.apply(null, c);
|
|
@@ -4412,10 +4412,10 @@ function Yl(e, t) {
|
|
|
4412
4412
|
}, r - d)));
|
|
4413
4413
|
}, () => o && i(o)];
|
|
4414
4414
|
}
|
|
4415
|
-
const
|
|
4415
|
+
const kn = (e, t, n = 3) => {
|
|
4416
4416
|
let r = 0;
|
|
4417
|
-
const o =
|
|
4418
|
-
return
|
|
4417
|
+
const o = Yl(50, 250);
|
|
4418
|
+
return Xl((a) => {
|
|
4419
4419
|
const i = a.loaded, s = a.lengthComputable ? a.total : void 0, l = i - r, c = o(l), u = i <= s;
|
|
4420
4420
|
r = i;
|
|
4421
4421
|
const d = {
|
|
@@ -4438,10 +4438,10 @@ const Ln = (e, t, n = 3) => {
|
|
|
4438
4438
|
total: e,
|
|
4439
4439
|
loaded: r
|
|
4440
4440
|
}), t[1]];
|
|
4441
|
-
}, bo = (e) => (...t) => C.asap(() => e(...t)),
|
|
4441
|
+
}, bo = (e) => (...t) => C.asap(() => e(...t)), Ql = Ne.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, Ne.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
|
|
4442
4442
|
new URL(Ne.origin),
|
|
4443
4443
|
Ne.navigator && /(msie|trident)/i.test(Ne.navigator.userAgent)
|
|
4444
|
-
) : () => !0,
|
|
4444
|
+
) : () => !0, ec = Ne.hasStandardBrowserEnv ? (
|
|
4445
4445
|
// Standard browser envs support document.cookie
|
|
4446
4446
|
{
|
|
4447
4447
|
write(e, t, n, r, o, a) {
|
|
@@ -4468,15 +4468,15 @@ const Ln = (e, t, n = 3) => {
|
|
|
4468
4468
|
}
|
|
4469
4469
|
}
|
|
4470
4470
|
);
|
|
4471
|
-
function
|
|
4471
|
+
function tc(e) {
|
|
4472
4472
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
|
|
4473
4473
|
}
|
|
4474
|
-
function
|
|
4474
|
+
function nc(e, t) {
|
|
4475
4475
|
return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
|
|
4476
4476
|
}
|
|
4477
4477
|
function da(e, t, n) {
|
|
4478
|
-
let r = !
|
|
4479
|
-
return e && r || n == !1 ?
|
|
4478
|
+
let r = !tc(t);
|
|
4479
|
+
return e && r || n == !1 ? nc(e, t) : t;
|
|
4480
4480
|
}
|
|
4481
4481
|
const So = (e) => e instanceof Fe ? { ...e } : e;
|
|
4482
4482
|
function bt(e, t) {
|
|
@@ -4559,12 +4559,12 @@ const fa = (e) => {
|
|
|
4559
4559
|
i.setContentType([c || "multipart/form-data", ...u].join("; "));
|
|
4560
4560
|
}
|
|
4561
4561
|
}
|
|
4562
|
-
if (Ne.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(t)), r || r !== !1 &&
|
|
4563
|
-
const c = o && a &&
|
|
4562
|
+
if (Ne.hasStandardBrowserEnv && (r && C.isFunction(r) && (r = r(t)), r || r !== !1 && Ql(t.url))) {
|
|
4563
|
+
const c = o && a && ec.read(a);
|
|
4564
4564
|
c && i.set(o, c);
|
|
4565
4565
|
}
|
|
4566
4566
|
return t;
|
|
4567
|
-
},
|
|
4567
|
+
}, rc = typeof XMLHttpRequest < "u", oc = rc && function(e) {
|
|
4568
4568
|
return new Promise(function(n, r) {
|
|
4569
4569
|
const o = fa(e);
|
|
4570
4570
|
let a = o.data;
|
|
@@ -4575,16 +4575,16 @@ const fa = (e) => {
|
|
|
4575
4575
|
}
|
|
4576
4576
|
let v = new XMLHttpRequest();
|
|
4577
4577
|
v.open(o.method.toUpperCase(), o.url, !0), v.timeout = o.timeout;
|
|
4578
|
-
function
|
|
4578
|
+
function x() {
|
|
4579
4579
|
if (!v)
|
|
4580
4580
|
return;
|
|
4581
|
-
const
|
|
4581
|
+
const L = Fe.from(
|
|
4582
4582
|
"getAllResponseHeaders" in v && v.getAllResponseHeaders()
|
|
4583
4583
|
), N = {
|
|
4584
4584
|
data: !s || s === "text" || s === "json" ? v.responseText : v.response,
|
|
4585
4585
|
status: v.status,
|
|
4586
4586
|
statusText: v.statusText,
|
|
4587
|
-
headers:
|
|
4587
|
+
headers: L,
|
|
4588
4588
|
config: e,
|
|
4589
4589
|
request: v
|
|
4590
4590
|
};
|
|
@@ -4594,8 +4594,8 @@ const fa = (e) => {
|
|
|
4594
4594
|
r(w), p();
|
|
4595
4595
|
}, N), v = null;
|
|
4596
4596
|
}
|
|
4597
|
-
"onloadend" in v ? v.onloadend =
|
|
4598
|
-
!v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(
|
|
4597
|
+
"onloadend" in v ? v.onloadend = x : v.onreadystatechange = function() {
|
|
4598
|
+
!v || v.readyState !== 4 || v.status === 0 && !(v.responseURL && v.responseURL.indexOf("file:") === 0) || setTimeout(x);
|
|
4599
4599
|
}, v.onabort = function() {
|
|
4600
4600
|
v && (r(new $("Request aborted", $.ECONNABORTED, e, v)), v = null);
|
|
4601
4601
|
}, v.onerror = function() {
|
|
@@ -4611,17 +4611,17 @@ const fa = (e) => {
|
|
|
4611
4611
|
)), v = null;
|
|
4612
4612
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in v && C.forEach(i.toJSON(), function(_, N) {
|
|
4613
4613
|
v.setRequestHeader(N, _);
|
|
4614
|
-
}), C.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), c && ([h, m] =
|
|
4615
|
-
v && (r(!
|
|
4614
|
+
}), C.isUndefined(o.withCredentials) || (v.withCredentials = !!o.withCredentials), s && s !== "json" && (v.responseType = o.responseType), c && ([h, m] = kn(c, !0), v.addEventListener("progress", h)), l && v.upload && ([d, y] = kn(l), v.upload.addEventListener("progress", d), v.upload.addEventListener("loadend", y)), (o.cancelToken || o.signal) && (u = (L) => {
|
|
4615
|
+
v && (r(!L || L.type ? new Ot(null, e, v) : L), v.abort(), v = null);
|
|
4616
4616
|
}, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
|
|
4617
|
-
const b =
|
|
4617
|
+
const b = Gl(o.url);
|
|
4618
4618
|
if (b && Ne.protocols.indexOf(b) === -1) {
|
|
4619
4619
|
r(new $("Unsupported protocol " + b + ":", $.ERR_BAD_REQUEST, e));
|
|
4620
4620
|
return;
|
|
4621
4621
|
}
|
|
4622
4622
|
v.send(a || null);
|
|
4623
4623
|
});
|
|
4624
|
-
},
|
|
4624
|
+
}, ac = (e, t) => {
|
|
4625
4625
|
const { length: n } = e = e ? e.filter(Boolean) : [];
|
|
4626
4626
|
if (t || n) {
|
|
4627
4627
|
let r = new AbortController(), o;
|
|
@@ -4644,7 +4644,7 @@ const fa = (e) => {
|
|
|
4644
4644
|
const { signal: l } = r;
|
|
4645
4645
|
return l.unsubscribe = () => C.asap(s), l;
|
|
4646
4646
|
}
|
|
4647
|
-
},
|
|
4647
|
+
}, ic = function* (e, t) {
|
|
4648
4648
|
let n = e.byteLength;
|
|
4649
4649
|
if (n < t) {
|
|
4650
4650
|
yield e;
|
|
@@ -4653,10 +4653,10 @@ const fa = (e) => {
|
|
|
4653
4653
|
let r = 0, o;
|
|
4654
4654
|
for (; r < n; )
|
|
4655
4655
|
o = r + t, yield e.slice(r, o), r = o;
|
|
4656
|
-
},
|
|
4657
|
-
for await (const n of
|
|
4658
|
-
yield*
|
|
4659
|
-
},
|
|
4656
|
+
}, sc = async function* (e, t) {
|
|
4657
|
+
for await (const n of lc(e))
|
|
4658
|
+
yield* ic(n, t);
|
|
4659
|
+
}, lc = async function* (e) {
|
|
4660
4660
|
if (e[Symbol.asyncIterator]) {
|
|
4661
4661
|
yield* e;
|
|
4662
4662
|
return;
|
|
@@ -4673,7 +4673,7 @@ const fa = (e) => {
|
|
|
4673
4673
|
await t.cancel();
|
|
4674
4674
|
}
|
|
4675
4675
|
}, Co = (e, t, n, r) => {
|
|
4676
|
-
const o =
|
|
4676
|
+
const o = sc(e, t);
|
|
4677
4677
|
let a = 0, i, s = (l) => {
|
|
4678
4678
|
i || (i = !0, r && r(l));
|
|
4679
4679
|
};
|
|
@@ -4701,13 +4701,13 @@ const fa = (e) => {
|
|
|
4701
4701
|
}, {
|
|
4702
4702
|
highWaterMark: 2
|
|
4703
4703
|
});
|
|
4704
|
-
}, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Un && typeof ReadableStream == "function",
|
|
4704
|
+
}, Un = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", ha = Un && typeof ReadableStream == "function", cc = Un && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), pa = (e, ...t) => {
|
|
4705
4705
|
try {
|
|
4706
4706
|
return !!e(...t);
|
|
4707
4707
|
} catch {
|
|
4708
4708
|
return !1;
|
|
4709
4709
|
}
|
|
4710
|
-
},
|
|
4710
|
+
}, uc = ha && pa(() => {
|
|
4711
4711
|
let e = !1;
|
|
4712
4712
|
const t = new Request(Ne.origin, {
|
|
4713
4713
|
body: new ReadableStream(),
|
|
@@ -4727,7 +4727,7 @@ Un && ((e) => {
|
|
|
4727
4727
|
});
|
|
4728
4728
|
});
|
|
4729
4729
|
})(new Response());
|
|
4730
|
-
const
|
|
4730
|
+
const dc = async (e) => {
|
|
4731
4731
|
if (e == null)
|
|
4732
4732
|
return 0;
|
|
4733
4733
|
if (C.isBlob(e))
|
|
@@ -4740,11 +4740,11 @@ const uc = async (e) => {
|
|
|
4740
4740
|
if (C.isArrayBufferView(e) || C.isArrayBuffer(e))
|
|
4741
4741
|
return e.byteLength;
|
|
4742
4742
|
if (C.isURLSearchParams(e) && (e = e + ""), C.isString(e))
|
|
4743
|
-
return (await
|
|
4744
|
-
},
|
|
4743
|
+
return (await cc(e)).byteLength;
|
|
4744
|
+
}, fc = async (e, t) => {
|
|
4745
4745
|
const n = C.toFiniteNumber(e.getContentLength());
|
|
4746
|
-
return n ??
|
|
4747
|
-
},
|
|
4746
|
+
return n ?? dc(t);
|
|
4747
|
+
}, hc = Un && (async (e) => {
|
|
4748
4748
|
let {
|
|
4749
4749
|
url: t,
|
|
4750
4750
|
method: n,
|
|
@@ -4760,13 +4760,13 @@ const uc = async (e) => {
|
|
|
4760
4760
|
fetchOptions: h
|
|
4761
4761
|
} = fa(e);
|
|
4762
4762
|
c = c ? (c + "").toLowerCase() : "text";
|
|
4763
|
-
let y =
|
|
4763
|
+
let y = ac([o, a && a.toAbortSignal()], i), m;
|
|
4764
4764
|
const p = y && y.unsubscribe && (() => {
|
|
4765
4765
|
y.unsubscribe();
|
|
4766
4766
|
});
|
|
4767
4767
|
let v;
|
|
4768
4768
|
try {
|
|
4769
|
-
if (l &&
|
|
4769
|
+
if (l && uc && n !== "get" && n !== "head" && (v = await fc(u, r)) !== 0) {
|
|
4770
4770
|
let N = new Request(t, {
|
|
4771
4771
|
method: "POST",
|
|
4772
4772
|
body: r,
|
|
@@ -4775,13 +4775,13 @@ const uc = async (e) => {
|
|
|
4775
4775
|
if (C.isFormData(r) && (U = N.headers.get("content-type")) && u.setContentType(U), N.body) {
|
|
4776
4776
|
const [w, T] = wo(
|
|
4777
4777
|
v,
|
|
4778
|
-
|
|
4778
|
+
kn(bo(l))
|
|
4779
4779
|
);
|
|
4780
4780
|
r = Co(N.body, Eo, w, T);
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
C.isString(d) || (d = d ? "include" : "omit");
|
|
4784
|
-
const
|
|
4784
|
+
const x = "credentials" in Request.prototype;
|
|
4785
4785
|
m = new Request(t, {
|
|
4786
4786
|
...h,
|
|
4787
4787
|
signal: y,
|
|
@@ -4789,18 +4789,18 @@ const uc = async (e) => {
|
|
|
4789
4789
|
headers: u.normalize().toJSON(),
|
|
4790
4790
|
body: r,
|
|
4791
4791
|
duplex: "half",
|
|
4792
|
-
credentials:
|
|
4792
|
+
credentials: x ? d : void 0
|
|
4793
4793
|
});
|
|
4794
4794
|
let b = await fetch(m);
|
|
4795
|
-
const
|
|
4796
|
-
if (pr && (s ||
|
|
4795
|
+
const L = pr && (c === "stream" || c === "response");
|
|
4796
|
+
if (pr && (s || L && p)) {
|
|
4797
4797
|
const N = {};
|
|
4798
4798
|
["status", "statusText", "headers"].forEach((K) => {
|
|
4799
4799
|
N[K] = b[K];
|
|
4800
4800
|
});
|
|
4801
4801
|
const U = C.toFiniteNumber(b.headers.get("content-length")), [w, T] = s && wo(
|
|
4802
4802
|
U,
|
|
4803
|
-
|
|
4803
|
+
kn(bo(s), !0)
|
|
4804
4804
|
) || [];
|
|
4805
4805
|
b = new Response(
|
|
4806
4806
|
Co(b.body, Eo, w, () => {
|
|
@@ -4811,7 +4811,7 @@ const uc = async (e) => {
|
|
|
4811
4811
|
}
|
|
4812
4812
|
c = c || "text";
|
|
4813
4813
|
let _ = await Nn[C.findKey(Nn, c) || "text"](b, e);
|
|
4814
|
-
return !
|
|
4814
|
+
return !L && p && p(), await new Promise((N, U) => {
|
|
4815
4815
|
ua(N, U, {
|
|
4816
4816
|
data: _,
|
|
4817
4817
|
headers: Fe.from(b.headers),
|
|
@@ -4821,18 +4821,18 @@ const uc = async (e) => {
|
|
|
4821
4821
|
request: m
|
|
4822
4822
|
});
|
|
4823
4823
|
});
|
|
4824
|
-
} catch (
|
|
4825
|
-
throw p && p(),
|
|
4824
|
+
} catch (x) {
|
|
4825
|
+
throw p && p(), x && x.name === "TypeError" && /fetch/i.test(x.message) ? Object.assign(
|
|
4826
4826
|
new $("Network Error", $.ERR_NETWORK, e, m),
|
|
4827
4827
|
{
|
|
4828
|
-
cause:
|
|
4828
|
+
cause: x.cause || x
|
|
4829
4829
|
}
|
|
4830
|
-
) : $.from(
|
|
4830
|
+
) : $.from(x, x && x.code, e, m);
|
|
4831
4831
|
}
|
|
4832
4832
|
}), mr = {
|
|
4833
|
-
http:
|
|
4834
|
-
xhr:
|
|
4835
|
-
fetch:
|
|
4833
|
+
http: Nl,
|
|
4834
|
+
xhr: oc,
|
|
4835
|
+
fetch: hc
|
|
4836
4836
|
};
|
|
4837
4837
|
C.forEach(mr, (e, t) => {
|
|
4838
4838
|
if (e) {
|
|
@@ -4843,7 +4843,7 @@ C.forEach(mr, (e, t) => {
|
|
|
4843
4843
|
Object.defineProperty(e, "adapterName", { value: t });
|
|
4844
4844
|
}
|
|
4845
4845
|
});
|
|
4846
|
-
const Ro = (e) => `- ${e}`,
|
|
4846
|
+
const Ro = (e) => `- ${e}`, pc = (e) => C.isFunction(e) || e === null || e === !1, ma = {
|
|
4847
4847
|
getAdapter: (e) => {
|
|
4848
4848
|
e = C.isArray(e) ? e : [e];
|
|
4849
4849
|
const { length: t } = e;
|
|
@@ -4852,7 +4852,7 @@ const Ro = (e) => `- ${e}`, hc = (e) => C.isFunction(e) || e === null || e === !
|
|
|
4852
4852
|
for (let a = 0; a < t; a++) {
|
|
4853
4853
|
n = e[a];
|
|
4854
4854
|
let i;
|
|
4855
|
-
if (r = n, !
|
|
4855
|
+
if (r = n, !pc(n) && (r = mr[(i = String(n)).toLowerCase()], r === void 0))
|
|
4856
4856
|
throw new $(`Unknown adapter '${i}'`);
|
|
4857
4857
|
if (r)
|
|
4858
4858
|
break;
|
|
@@ -4878,7 +4878,7 @@ function tr(e) {
|
|
|
4878
4878
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
4879
4879
|
throw new Ot(null, e);
|
|
4880
4880
|
}
|
|
4881
|
-
function
|
|
4881
|
+
function xo(e) {
|
|
4882
4882
|
return tr(e), e.headers = Fe.from(e.headers), e.data = er.call(
|
|
4883
4883
|
e,
|
|
4884
4884
|
e.transformRequest
|
|
@@ -4902,7 +4902,7 @@ const ga = "1.8.1", Vn = {};
|
|
|
4902
4902
|
return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
|
|
4903
4903
|
};
|
|
4904
4904
|
});
|
|
4905
|
-
const
|
|
4905
|
+
const Lo = {};
|
|
4906
4906
|
Vn.transitional = function(t, n, r) {
|
|
4907
4907
|
function o(a, i) {
|
|
4908
4908
|
return "[Axios v" + ga + "] Transitional option '" + a + "'" + i + (r ? ". " + r : "");
|
|
@@ -4913,7 +4913,7 @@ Vn.transitional = function(t, n, r) {
|
|
|
4913
4913
|
o(i, " has been removed" + (n ? " in " + n : "")),
|
|
4914
4914
|
$.ERR_DEPRECATED
|
|
4915
4915
|
);
|
|
4916
|
-
return n && !
|
|
4916
|
+
return n && !Lo[i] && (Lo[i] = !0, console.warn(
|
|
4917
4917
|
o(
|
|
4918
4918
|
i,
|
|
4919
4919
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
@@ -4924,7 +4924,7 @@ Vn.transitional = function(t, n, r) {
|
|
|
4924
4924
|
Vn.spelling = function(t) {
|
|
4925
4925
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
4926
4926
|
};
|
|
4927
|
-
function
|
|
4927
|
+
function mc(e, t, n) {
|
|
4928
4928
|
if (typeof e != "object")
|
|
4929
4929
|
throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
|
|
4930
4930
|
const r = Object.keys(e);
|
|
@@ -4942,7 +4942,7 @@ function pc(e, t, n) {
|
|
|
4942
4942
|
}
|
|
4943
4943
|
}
|
|
4944
4944
|
const Sn = {
|
|
4945
|
-
assertOptions:
|
|
4945
|
+
assertOptions: mc,
|
|
4946
4946
|
validators: Vn
|
|
4947
4947
|
}, Ye = Sn.validators;
|
|
4948
4948
|
let wt = class {
|
|
@@ -5014,7 +5014,7 @@ let wt = class {
|
|
|
5014
5014
|
});
|
|
5015
5015
|
let u, d = 0, h;
|
|
5016
5016
|
if (!l) {
|
|
5017
|
-
const m = [
|
|
5017
|
+
const m = [xo.bind(this), void 0];
|
|
5018
5018
|
for (m.unshift.apply(m, s), m.push.apply(m, c), h = m.length, u = Promise.resolve(n); d < h; )
|
|
5019
5019
|
u = u.then(m[d++], m[d++]);
|
|
5020
5020
|
return u;
|
|
@@ -5031,7 +5031,7 @@ let wt = class {
|
|
|
5031
5031
|
}
|
|
5032
5032
|
}
|
|
5033
5033
|
try {
|
|
5034
|
-
u =
|
|
5034
|
+
u = xo.call(this, y);
|
|
5035
5035
|
} catch (m) {
|
|
5036
5036
|
return Promise.reject(m);
|
|
5037
5037
|
}
|
|
@@ -5069,7 +5069,7 @@ C.forEach(["post", "put", "patch"], function(t) {
|
|
|
5069
5069
|
}
|
|
5070
5070
|
wt.prototype[t] = n(), wt.prototype[t + "Form"] = n(!0);
|
|
5071
5071
|
});
|
|
5072
|
-
let
|
|
5072
|
+
let gc = class va {
|
|
5073
5073
|
constructor(t) {
|
|
5074
5074
|
if (typeof t != "function")
|
|
5075
5075
|
throw new TypeError("executor must be a function.");
|
|
@@ -5142,12 +5142,12 @@ let mc = class va {
|
|
|
5142
5142
|
};
|
|
5143
5143
|
}
|
|
5144
5144
|
};
|
|
5145
|
-
function
|
|
5145
|
+
function vc(e) {
|
|
5146
5146
|
return function(n) {
|
|
5147
5147
|
return e.apply(null, n);
|
|
5148
5148
|
};
|
|
5149
5149
|
}
|
|
5150
|
-
function
|
|
5150
|
+
function yc(e) {
|
|
5151
5151
|
return C.isObject(e) && e.isAxiosError === !0;
|
|
5152
5152
|
}
|
|
5153
5153
|
const gr = {
|
|
@@ -5227,7 +5227,7 @@ function ya(e) {
|
|
|
5227
5227
|
const de = ya(Qt);
|
|
5228
5228
|
de.Axios = wt;
|
|
5229
5229
|
de.CanceledError = Ot;
|
|
5230
|
-
de.CancelToken =
|
|
5230
|
+
de.CancelToken = gc;
|
|
5231
5231
|
de.isCancel = ca;
|
|
5232
5232
|
de.VERSION = ga;
|
|
5233
5233
|
de.toFormData = Hn;
|
|
@@ -5236,8 +5236,8 @@ de.Cancel = de.CanceledError;
|
|
|
5236
5236
|
de.all = function(t) {
|
|
5237
5237
|
return Promise.all(t);
|
|
5238
5238
|
};
|
|
5239
|
-
de.spread =
|
|
5240
|
-
de.isAxiosError =
|
|
5239
|
+
de.spread = vc;
|
|
5240
|
+
de.isAxiosError = yc;
|
|
5241
5241
|
de.mergeConfig = bt;
|
|
5242
5242
|
de.AxiosHeaders = Fe;
|
|
5243
5243
|
de.formToJSON = (e) => la(C.isHTMLForm(e) ? new FormData(e) : e);
|
|
@@ -5246,7 +5246,7 @@ de.HttpStatusCode = gr;
|
|
|
5246
5246
|
de.default = de;
|
|
5247
5247
|
const {
|
|
5248
5248
|
Axios: Bd,
|
|
5249
|
-
AxiosError:
|
|
5249
|
+
AxiosError: wc,
|
|
5250
5250
|
CanceledError: Hd,
|
|
5251
5251
|
isCancel: Ud,
|
|
5252
5252
|
CancelToken: Vd,
|
|
@@ -5288,26 +5288,26 @@ const {
|
|
|
5288
5288
|
};
|
|
5289
5289
|
} catch (m) {
|
|
5290
5290
|
const p = m, v = (h = p.response) == null ? void 0 : h.data;
|
|
5291
|
-
let
|
|
5292
|
-
v && (
|
|
5291
|
+
let x = "Something Went Wrong";
|
|
5292
|
+
v && (x = v.errors[0]);
|
|
5293
5293
|
const b = (y = p.response) == null ? void 0 : y.status;
|
|
5294
5294
|
if (b === 401)
|
|
5295
5295
|
try {
|
|
5296
|
-
const _ = await import("./charge-
|
|
5296
|
+
const _ = await import("./charge-Bv8wu-fV.js").then((N) => N.a5);
|
|
5297
5297
|
_ && _.logoutCustomer ? await _.logoutCustomer() : localStorage.removeItem("token"), window.location.reload();
|
|
5298
5298
|
} catch (_) {
|
|
5299
5299
|
console.error("Failed to import logoutCustomer:", _), localStorage.removeItem("token"), window.location.reload();
|
|
5300
5300
|
}
|
|
5301
|
-
const
|
|
5302
|
-
throw
|
|
5303
|
-
}
|
|
5304
|
-
},
|
|
5305
|
-
api:
|
|
5306
|
-
googleFonts:
|
|
5307
|
-
storeApi:
|
|
5308
|
-
slApi:
|
|
5309
|
-
customersApi:
|
|
5310
|
-
cashappApi:
|
|
5301
|
+
const L = new wc(x, (b == null ? void 0 : b.toString()) || "400");
|
|
5302
|
+
throw L.response = p.response, L;
|
|
5303
|
+
}
|
|
5304
|
+
}, bc = "https://g-api.billgang.com", Sc = "https://www.googleapis.com/webfonts/v1/webfonts", Cc = "https://stores-api.billgang.com", Ec = "https://sl-api.billgang.com", Rc = "https://customers-api.billgang.com", xc = "https://cashapp-api.billgang.com", Lc = {
|
|
5305
|
+
api: bc,
|
|
5306
|
+
googleFonts: Sc,
|
|
5307
|
+
storeApi: Cc,
|
|
5308
|
+
slApi: Ec,
|
|
5309
|
+
customersApi: Rc,
|
|
5310
|
+
cashappApi: xc
|
|
5311
5311
|
}, Qd = (e, t = "300") => e === "not found" ? "empty" : `https://imagedelivery.net/${e}/w=${t}`, e0 = (e) => {
|
|
5312
5312
|
const t = new Intl.NumberFormat("en-US", {
|
|
5313
5313
|
style: "currency",
|
|
@@ -5350,17 +5350,17 @@ const {
|
|
|
5350
5350
|
} catch {
|
|
5351
5351
|
return t;
|
|
5352
5352
|
}
|
|
5353
|
-
},
|
|
5353
|
+
}, ko = (e, t) => {
|
|
5354
5354
|
(t === null || typeof t != "object") && window.localStorage.setItem(e, String(t));
|
|
5355
5355
|
const n = JSON.stringify(t);
|
|
5356
5356
|
window.localStorage.setItem(e, n);
|
|
5357
|
-
}, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io", Jt = "I",
|
|
5357
|
+
}, nr = "f10120ab-7ebb-4785-b240-7428edaa3c4e", Ut = "https://t-api.billgang.com", Vt = "https://internal-t-api.antistock.io", Jt = "I", kc = 10 * 1e3, Nc = 15 * 1e3, _c = 15 * 60 * 1e3, Tc = () => {
|
|
5358
5358
|
var t;
|
|
5359
5359
|
const e = vr(Jt);
|
|
5360
5360
|
return ((t = e == null ? void 0 : e.s) == null ? void 0 : t.i) || null;
|
|
5361
5361
|
}, a0 = (e, t = "production", n) => {
|
|
5362
5362
|
const { pathname: r } = Qe(), o = jr(), a = jr(document.visibilityState);
|
|
5363
|
-
|
|
5363
|
+
Ta(() => {
|
|
5364
5364
|
if (!e) return;
|
|
5365
5365
|
const i = () => Date.now(), s = async () => (await st({
|
|
5366
5366
|
url: `${n ? Vt : Ut}/${e}/t/p`,
|
|
@@ -5370,14 +5370,14 @@ const {
|
|
|
5370
5370
|
url: `${n ? Vt : Ut}/${e}/t/p/${t === "development" ? nr : m}/s`,
|
|
5371
5371
|
method: "post",
|
|
5372
5372
|
withToken: !1
|
|
5373
|
-
})).data.data.id, c = async (m, p, v,
|
|
5373
|
+
})).data.data.id, c = async (m, p, v, x) => {
|
|
5374
5374
|
const b = t === "development" ? nr : m;
|
|
5375
5375
|
try {
|
|
5376
5376
|
return (await st({
|
|
5377
5377
|
url: `${n ? Vt : Ut}/${e}/t/p/${b}/s/${p}/e`,
|
|
5378
5378
|
method: "post",
|
|
5379
5379
|
withToken: !1,
|
|
5380
|
-
body: { url: v, oldEventId:
|
|
5380
|
+
body: { url: v, oldEventId: x },
|
|
5381
5381
|
contentType: "application/json"
|
|
5382
5382
|
})).data.data.id;
|
|
5383
5383
|
} catch {
|
|
@@ -5396,7 +5396,7 @@ const {
|
|
|
5396
5396
|
withToken: !1
|
|
5397
5397
|
});
|
|
5398
5398
|
const b = vr(Jt);
|
|
5399
|
-
b && (b.s.u = i().toString(), b.lu = i().toString(),
|
|
5399
|
+
b && (b.s.u = i().toString(), b.lu = i().toString(), ko(Jt, b));
|
|
5400
5400
|
}, d = (m, p, v) => {
|
|
5401
5401
|
o.current && clearInterval(o.current), o.current = setInterval(async () => {
|
|
5402
5402
|
if (document.visibilityState === "visible")
|
|
@@ -5405,17 +5405,17 @@ const {
|
|
|
5405
5405
|
} catch {
|
|
5406
5406
|
await h();
|
|
5407
5407
|
}
|
|
5408
|
-
},
|
|
5408
|
+
}, kc);
|
|
5409
5409
|
}, h = async () => {
|
|
5410
|
-
var
|
|
5410
|
+
var x, b, L, _;
|
|
5411
5411
|
const m = `${window.location.hostname}${r}`, p = vr(Jt), v = i();
|
|
5412
5412
|
try {
|
|
5413
5413
|
let N = p == null ? void 0 : p.p;
|
|
5414
5414
|
N || (N = await s());
|
|
5415
|
-
let U = (
|
|
5416
|
-
const w = Number(((b = p == null ? void 0 : p.s) == null ? void 0 : b.u) || ((
|
|
5415
|
+
let U = (x = p == null ? void 0 : p.s) == null ? void 0 : x.i;
|
|
5416
|
+
const w = Number(((b = p == null ? void 0 : p.s) == null ? void 0 : b.u) || ((L = p == null ? void 0 : p.s) == null ? void 0 : L.c)), T = !U || v - w > _c;
|
|
5417
5417
|
(!U || T) && (U = await l(N));
|
|
5418
|
-
const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K >
|
|
5418
|
+
const K = Number((p == null ? void 0 : p.lu) || 0), B = v - K > Nc, ae = await c(
|
|
5419
5419
|
N,
|
|
5420
5420
|
U,
|
|
5421
5421
|
m,
|
|
@@ -5430,7 +5430,7 @@ const {
|
|
|
5430
5430
|
l: ae,
|
|
5431
5431
|
lu: v.toString()
|
|
5432
5432
|
};
|
|
5433
|
-
|
|
5433
|
+
ko(Jt, ee), d(N, U, ae);
|
|
5434
5434
|
} catch (N) {
|
|
5435
5435
|
console.error("[TrackingAnalytics] error", N);
|
|
5436
5436
|
}
|
|
@@ -5443,7 +5443,7 @@ const {
|
|
|
5443
5443
|
o.current && clearInterval(o.current), document.removeEventListener("visibilitychange", y);
|
|
5444
5444
|
};
|
|
5445
5445
|
}, [r, e, t]);
|
|
5446
|
-
},
|
|
5446
|
+
}, Pc = {
|
|
5447
5447
|
customerEmail: "",
|
|
5448
5448
|
recaptcha: "",
|
|
5449
5449
|
gateway: "",
|
|
@@ -5452,18 +5452,18 @@ const {
|
|
|
5452
5452
|
customFields: {},
|
|
5453
5453
|
discordSocialConnectId: null,
|
|
5454
5454
|
coupon: null,
|
|
5455
|
-
tsId:
|
|
5455
|
+
tsId: Tc()
|
|
5456
5456
|
};
|
|
5457
5457
|
let Nt = null;
|
|
5458
5458
|
const No = localStorage.getItem("token");
|
|
5459
5459
|
if (No)
|
|
5460
5460
|
try {
|
|
5461
|
-
Nt =
|
|
5461
|
+
Nt = $s(JSON.parse(No) || "");
|
|
5462
5462
|
} catch {
|
|
5463
5463
|
Nt = null;
|
|
5464
5464
|
}
|
|
5465
5465
|
const i0 = se((e) => ({
|
|
5466
|
-
cart: { ...
|
|
5466
|
+
cart: { ...Pc, customerEmail: Nt ? Nt.email : "" },
|
|
5467
5467
|
products: [],
|
|
5468
5468
|
coupon: null,
|
|
5469
5469
|
pending: !1,
|
|
@@ -5499,9 +5499,9 @@ const i0 = se((e) => ({
|
|
|
5499
5499
|
subscription: null,
|
|
5500
5500
|
setSubscription: (t) => e({ subscription: t })
|
|
5501
5501
|
})), jn = se((e) => ({
|
|
5502
|
-
apiUrls:
|
|
5502
|
+
apiUrls: Lc,
|
|
5503
5503
|
setApiUrls: (t) => e(() => ({ apiUrls: t }))
|
|
5504
|
-
})),
|
|
5504
|
+
})), Oc = se((e) => ({
|
|
5505
5505
|
header: null,
|
|
5506
5506
|
footer: null,
|
|
5507
5507
|
announcement: null,
|
|
@@ -5520,7 +5520,7 @@ const i0 = se((e) => ({
|
|
|
5520
5520
|
setSettings: (t) => e(() => ({ settings: t })),
|
|
5521
5521
|
settingsInstance: null,
|
|
5522
5522
|
setSettingsInstance: (t) => e(() => ({ settingsInstance: t }))
|
|
5523
|
-
})),
|
|
5523
|
+
})), wa = se((e) => ({
|
|
5524
5524
|
general: null,
|
|
5525
5525
|
setGeneral: (t) => e(() => ({ general: t })),
|
|
5526
5526
|
isAntistock: !1,
|
|
@@ -5901,17 +5901,17 @@ const i0 = se((e) => ({
|
|
|
5901
5901
|
isOpen: !0,
|
|
5902
5902
|
setIsOpen: (t) => e(() => ({ isOpen: t }))
|
|
5903
5903
|
}));
|
|
5904
|
-
var
|
|
5904
|
+
var ke = [];
|
|
5905
5905
|
for (var rr = 0; rr < 256; ++rr)
|
|
5906
|
-
|
|
5907
|
-
function
|
|
5908
|
-
return (
|
|
5906
|
+
ke.push((rr + 256).toString(16).slice(1));
|
|
5907
|
+
function Ac(e, t = 0) {
|
|
5908
|
+
return (ke[e[t + 0]] + ke[e[t + 1]] + ke[e[t + 2]] + ke[e[t + 3]] + "-" + ke[e[t + 4]] + ke[e[t + 5]] + "-" + ke[e[t + 6]] + ke[e[t + 7]] + "-" + ke[e[t + 8]] + ke[e[t + 9]] + "-" + ke[e[t + 10]] + ke[e[t + 11]] + ke[e[t + 12]] + ke[e[t + 13]] + ke[e[t + 14]] + ke[e[t + 15]]).toLowerCase();
|
|
5909
5909
|
}
|
|
5910
|
-
var pn,
|
|
5910
|
+
var pn, Mc = new Uint8Array(16);
|
|
5911
5911
|
function Dc() {
|
|
5912
5912
|
if (!pn && (pn = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !pn))
|
|
5913
5913
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
5914
|
-
return pn(
|
|
5914
|
+
return pn(Mc);
|
|
5915
5915
|
}
|
|
5916
5916
|
var Fc = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
5917
5917
|
const To = {
|
|
@@ -5922,7 +5922,7 @@ function it(e, t, n) {
|
|
|
5922
5922
|
return To.randomUUID();
|
|
5923
5923
|
e = e || {};
|
|
5924
5924
|
var r = e.random || (e.rng || Dc)();
|
|
5925
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
5925
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Ac(r);
|
|
5926
5926
|
}
|
|
5927
5927
|
function Ic(e, t) {
|
|
5928
5928
|
let n;
|
|
@@ -6011,10 +6011,10 @@ const wr = (e) => (t) => {
|
|
|
6011
6011
|
var p, v;
|
|
6012
6012
|
if (!c) return;
|
|
6013
6013
|
i = !1, s.forEach((b) => {
|
|
6014
|
-
var
|
|
6015
|
-
return b((
|
|
6014
|
+
var L;
|
|
6015
|
+
return b((L = r()) != null ? L : h);
|
|
6016
6016
|
});
|
|
6017
|
-
const
|
|
6017
|
+
const x = ((v = a.onRehydrateStorage) == null ? void 0 : v.call(a, (p = r()) != null ? p : h)) || void 0;
|
|
6018
6018
|
return wr(c.getItem.bind(c))(a.name).then((b) => {
|
|
6019
6019
|
if (b)
|
|
6020
6020
|
if (typeof b.version == "number" && b.version !== a.version) {
|
|
@@ -6033,17 +6033,17 @@ const wr = (e) => (t) => {
|
|
|
6033
6033
|
return [!1, b.state];
|
|
6034
6034
|
return [!1, void 0];
|
|
6035
6035
|
}).then((b) => {
|
|
6036
|
-
var
|
|
6036
|
+
var L;
|
|
6037
6037
|
const [_, N] = b;
|
|
6038
6038
|
if (y = a.merge(
|
|
6039
6039
|
N,
|
|
6040
|
-
(
|
|
6040
|
+
(L = r()) != null ? L : h
|
|
6041
6041
|
), n(y, !0), _)
|
|
6042
6042
|
return u();
|
|
6043
6043
|
}).then(() => {
|
|
6044
|
-
|
|
6044
|
+
x == null || x(y, void 0), y = r(), i = !0, l.forEach((b) => b(y));
|
|
6045
6045
|
}).catch((b) => {
|
|
6046
|
-
|
|
6046
|
+
x == null || x(void 0, b);
|
|
6047
6047
|
});
|
|
6048
6048
|
};
|
|
6049
6049
|
return o.persist = {
|
|
@@ -6558,7 +6558,7 @@ const wr = (e) => (t) => {
|
|
|
6558
6558
|
}, b0 = [
|
|
6559
6559
|
{
|
|
6560
6560
|
value: "4:3",
|
|
6561
|
-
addon: /* @__PURE__ */
|
|
6561
|
+
addon: /* @__PURE__ */ A(
|
|
6562
6562
|
"div",
|
|
6563
6563
|
{
|
|
6564
6564
|
style: {
|
|
@@ -6568,7 +6568,7 @@ const wr = (e) => (t) => {
|
|
|
6568
6568
|
alignItems: "center",
|
|
6569
6569
|
justifyContent: "center"
|
|
6570
6570
|
},
|
|
6571
|
-
children: /* @__PURE__ */
|
|
6571
|
+
children: /* @__PURE__ */ A(
|
|
6572
6572
|
"div",
|
|
6573
6573
|
{
|
|
6574
6574
|
style: {
|
|
@@ -6584,7 +6584,7 @@ const wr = (e) => (t) => {
|
|
|
6584
6584
|
},
|
|
6585
6585
|
{
|
|
6586
6586
|
value: "16:9",
|
|
6587
|
-
addon: /* @__PURE__ */
|
|
6587
|
+
addon: /* @__PURE__ */ A(
|
|
6588
6588
|
"div",
|
|
6589
6589
|
{
|
|
6590
6590
|
style: {
|
|
@@ -6594,7 +6594,7 @@ const wr = (e) => (t) => {
|
|
|
6594
6594
|
alignItems: "center",
|
|
6595
6595
|
justifyContent: "center"
|
|
6596
6596
|
},
|
|
6597
|
-
children: /* @__PURE__ */
|
|
6597
|
+
children: /* @__PURE__ */ A(
|
|
6598
6598
|
"div",
|
|
6599
6599
|
{
|
|
6600
6600
|
style: {
|
|
@@ -6610,7 +6610,7 @@ const wr = (e) => (t) => {
|
|
|
6610
6610
|
},
|
|
6611
6611
|
{
|
|
6612
6612
|
value: "9:16",
|
|
6613
|
-
addon: /* @__PURE__ */
|
|
6613
|
+
addon: /* @__PURE__ */ A(
|
|
6614
6614
|
"div",
|
|
6615
6615
|
{
|
|
6616
6616
|
style: {
|
|
@@ -6620,7 +6620,7 @@ const wr = (e) => (t) => {
|
|
|
6620
6620
|
alignItems: "center",
|
|
6621
6621
|
justifyContent: "center"
|
|
6622
6622
|
},
|
|
6623
|
-
children: /* @__PURE__ */
|
|
6623
|
+
children: /* @__PURE__ */ A(
|
|
6624
6624
|
"div",
|
|
6625
6625
|
{
|
|
6626
6626
|
style: {
|
|
@@ -6636,7 +6636,7 @@ const wr = (e) => (t) => {
|
|
|
6636
6636
|
},
|
|
6637
6637
|
{
|
|
6638
6638
|
value: "1:1",
|
|
6639
|
-
addon: /* @__PURE__ */
|
|
6639
|
+
addon: /* @__PURE__ */ A(
|
|
6640
6640
|
"div",
|
|
6641
6641
|
{
|
|
6642
6642
|
style: {
|
|
@@ -6646,7 +6646,7 @@ const wr = (e) => (t) => {
|
|
|
6646
6646
|
alignItems: "center",
|
|
6647
6647
|
justifyContent: "center"
|
|
6648
6648
|
},
|
|
6649
|
-
children: /* @__PURE__ */
|
|
6649
|
+
children: /* @__PURE__ */ A(
|
|
6650
6650
|
"div",
|
|
6651
6651
|
{
|
|
6652
6652
|
style: {
|
|
@@ -6696,7 +6696,7 @@ var R0 = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
6696
6696
|
function $c(e) {
|
|
6697
6697
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6698
6698
|
}
|
|
6699
|
-
var
|
|
6699
|
+
var ba = { exports: {} };
|
|
6700
6700
|
/*!
|
|
6701
6701
|
Copyright (c) 2018 Jed Watson.
|
|
6702
6702
|
Licensed under the MIT License (MIT), see
|
|
@@ -6731,9 +6731,9 @@ var wa = { exports: {} };
|
|
|
6731
6731
|
}
|
|
6732
6732
|
e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
|
|
6733
6733
|
})();
|
|
6734
|
-
})(
|
|
6735
|
-
var zc =
|
|
6736
|
-
const Ve = /* @__PURE__ */ $c(zc),
|
|
6734
|
+
})(ba);
|
|
6735
|
+
var zc = ba.exports;
|
|
6736
|
+
const Ve = /* @__PURE__ */ $c(zc), x0 = se((e) => ({
|
|
6737
6737
|
currentDevice: {
|
|
6738
6738
|
icon: "Desktop",
|
|
6739
6739
|
value: "desktop"
|
|
@@ -6744,7 +6744,7 @@ se((e) => ({
|
|
|
6744
6744
|
pageData: null,
|
|
6745
6745
|
setPageData: (t) => e(() => ({ pageData: t }))
|
|
6746
6746
|
}));
|
|
6747
|
-
const
|
|
6747
|
+
const Sa = se((e, t) => ({
|
|
6748
6748
|
isModalVisible: !1,
|
|
6749
6749
|
hoverBlockId: null,
|
|
6750
6750
|
isMouseOverModal: !1,
|
|
@@ -6798,7 +6798,7 @@ const ba = se((e, t) => ({
|
|
|
6798
6798
|
name: "fonts-storage"
|
|
6799
6799
|
}
|
|
6800
6800
|
)
|
|
6801
|
-
),
|
|
6801
|
+
), Ca = se()((e) => ({
|
|
6802
6802
|
color: "default",
|
|
6803
6803
|
initialColor: "",
|
|
6804
6804
|
setInitialColor: (t) => e(() => ({ initialColor: t })),
|
|
@@ -6874,13 +6874,13 @@ const ba = se((e, t) => ({
|
|
|
6874
6874
|
setShowTooltip: (t) => e({ showTooltip: t })
|
|
6875
6875
|
})), Zc = "_loader_jr7a4_1", qc = {
|
|
6876
6876
|
loader: Zc
|
|
6877
|
-
},
|
|
6877
|
+
}, L0 = () => /* @__PURE__ */ A("div", { className: qc.loader }), Kc = "_tooltip_7oy60_1", Gc = {
|
|
6878
6878
|
tooltip: Kc
|
|
6879
|
-
},
|
|
6879
|
+
}, k0 = (e) => {
|
|
6880
6880
|
const { text: t } = e, { setShowTooltip: n } = Wc();
|
|
6881
6881
|
return _e.useEffect(() => (n(!0), () => {
|
|
6882
6882
|
n(!1);
|
|
6883
|
-
}), []), /* @__PURE__ */
|
|
6883
|
+
}), []), /* @__PURE__ */ A("div", { className: Gc.tooltip, children: t });
|
|
6884
6884
|
}, N0 = (e) => e ? e.replace(/_/g, " ").split(" ").map((t) => t.charAt(0).toUpperCase() + t.slice(1)).join(" and ") : "";
|
|
6885
6885
|
function _0(e, t) {
|
|
6886
6886
|
if (!t || !t[e])
|
|
@@ -6909,12 +6909,12 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6909
6909
|
ContactUs: cu,
|
|
6910
6910
|
Footer: du,
|
|
6911
6911
|
Video: hu
|
|
6912
|
-
}, pu = "
|
|
6912
|
+
}, pu = "_wrapper_1jz8n_1", mu = "_submodal_1jz8n_14", Sr = {
|
|
6913
6913
|
wrapper: pu,
|
|
6914
6914
|
submodal: mu
|
|
6915
6915
|
}, P0 = ({ children: e, positionTop: t, positionLeft: n }) => {
|
|
6916
|
-
const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } =
|
|
6917
|
-
return r ? /* @__PURE__ */
|
|
6916
|
+
const { keyBlock: r, startHideTimeout: o, clearHideTimeout: a, setMouseOverModal: i } = Sa();
|
|
6917
|
+
return r ? /* @__PURE__ */ A(
|
|
6918
6918
|
"div",
|
|
6919
6919
|
{
|
|
6920
6920
|
className: Sr.wrapper,
|
|
@@ -6932,8 +6932,8 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6932
6932
|
}
|
|
6933
6933
|
) : null;
|
|
6934
6934
|
}, O0 = ({ children: e }) => {
|
|
6935
|
-
const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } =
|
|
6936
|
-
return t ? /* @__PURE__ */
|
|
6935
|
+
const { hoverBlockId: t, startHideTimeout: n, clearHideTimeout: r, setMouseOverModal: o } = Sa();
|
|
6936
|
+
return t ? /* @__PURE__ */ A(
|
|
6937
6937
|
"div",
|
|
6938
6938
|
{
|
|
6939
6939
|
className: Ve(Sr.wrapper, Sr.submodal),
|
|
@@ -6946,7 +6946,7 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6946
6946
|
children: e
|
|
6947
6947
|
}
|
|
6948
6948
|
) : null;
|
|
6949
|
-
}, gu = "
|
|
6949
|
+
}, gu = "_applyButton_17aa5_2", vu = "_content_17aa5_7", yu = "_title_17aa5_14", wu = "_label_17aa5_21", bu = "_colorValue_17aa5_40", Su = "_colorMap_17aa5_48", Cu = "_indicator_17aa5_57", Eu = "_hueSlider_17aa5_66", Ru = "_slider_17aa5_97", xu = "_buttons_17aa5_102", Lu = "_name_17aa5_109", ku = "_secondary_17aa5_114", Nu = "_input_17aa5_122", _u = "_modal_17aa5_160", Tu = "_alphaSlider_17aa5_249", Pu = "_alphaBackground_17aa5_257", Ou = "_alphaGradient_17aa5_268", Au = "_chargeTypes_17aa5_297", Mu = "_charge_17aa5_297", Du = "_chargeActive_17aa5_326", Fu = "_gradient_17aa5_334", Iu = "_color_17aa5_40", Bu = "_colorActive_17aa5_355", Hu = "_gradientWrapper_17aa5_362", Uu = "_subtitle_17aa5_368", Vu = "_colorTypes_17aa5_375", ju = "_colorType_17aa5_375", $u = "_colorTypeActive_17aa5_399", zu = "_colorsWrapper_17aa5_404", Ju = "_colors_17aa5_404", Z = {
|
|
6950
6950
|
applyButton: gu,
|
|
6951
6951
|
content: vu,
|
|
6952
6952
|
title: yu,
|
|
@@ -6956,16 +6956,16 @@ const Yc = (e, t, n, r, o, a, i) => {
|
|
|
6956
6956
|
indicator: Cu,
|
|
6957
6957
|
hueSlider: Eu,
|
|
6958
6958
|
slider: Ru,
|
|
6959
|
-
buttons:
|
|
6960
|
-
name:
|
|
6961
|
-
secondary:
|
|
6959
|
+
buttons: xu,
|
|
6960
|
+
name: Lu,
|
|
6961
|
+
secondary: ku,
|
|
6962
6962
|
input: Nu,
|
|
6963
6963
|
modal: _u,
|
|
6964
6964
|
alphaSlider: Tu,
|
|
6965
6965
|
alphaBackground: Pu,
|
|
6966
6966
|
alphaGradient: Ou,
|
|
6967
|
-
chargeTypes:
|
|
6968
|
-
charge:
|
|
6967
|
+
chargeTypes: Au,
|
|
6968
|
+
charge: Mu,
|
|
6969
6969
|
chargeActive: Du,
|
|
6970
6970
|
gradient: Fu,
|
|
6971
6971
|
color: Iu,
|
|
@@ -7002,8 +7002,8 @@ const Wu = (e) => {
|
|
|
7002
7002
|
setColor: m,
|
|
7003
7003
|
setColorChange: p,
|
|
7004
7004
|
setIsGradientActive: v,
|
|
7005
|
-
colorChange:
|
|
7006
|
-
} =
|
|
7005
|
+
colorChange: x
|
|
7006
|
+
} = Ca();
|
|
7007
7007
|
_e.useEffect(() => {
|
|
7008
7008
|
const N = () => {
|
|
7009
7009
|
h(!1), c(null), d(t), y(() => {
|
|
@@ -7021,14 +7021,14 @@ const Wu = (e) => {
|
|
|
7021
7021
|
top: U,
|
|
7022
7022
|
left: w
|
|
7023
7023
|
});
|
|
7024
|
-
},
|
|
7024
|
+
}, L = (N) => {
|
|
7025
7025
|
const U = N.target.value;
|
|
7026
|
-
l(U), or(U) && (n(U), m(U), p(
|
|
7026
|
+
l(U), or(U) && (n(U), m(U), p(x));
|
|
7027
7027
|
}, _ = () => {
|
|
7028
7028
|
or(s) || l(t);
|
|
7029
7029
|
};
|
|
7030
7030
|
return /* @__PURE__ */ Re("div", { className: Z.content, children: [
|
|
7031
|
-
/* @__PURE__ */
|
|
7031
|
+
/* @__PURE__ */ A(
|
|
7032
7032
|
"span",
|
|
7033
7033
|
{
|
|
7034
7034
|
className: Ve(Z.name, {
|
|
@@ -7043,7 +7043,7 @@ const Wu = (e) => {
|
|
|
7043
7043
|
className: Z.label,
|
|
7044
7044
|
onClick: (N) => N.stopPropagation(),
|
|
7045
7045
|
children: [
|
|
7046
|
-
/* @__PURE__ */
|
|
7046
|
+
/* @__PURE__ */ A(
|
|
7047
7047
|
"div",
|
|
7048
7048
|
{
|
|
7049
7049
|
className: Z.colorValue,
|
|
@@ -7055,12 +7055,12 @@ const Wu = (e) => {
|
|
|
7055
7055
|
onClick: i ? void 0 : b
|
|
7056
7056
|
}
|
|
7057
7057
|
),
|
|
7058
|
-
/* @__PURE__ */
|
|
7058
|
+
/* @__PURE__ */ A(
|
|
7059
7059
|
"input",
|
|
7060
7060
|
{
|
|
7061
7061
|
type: "text",
|
|
7062
7062
|
value: s.includes("linear-gradient") ? s : s.toUpperCase(),
|
|
7063
|
-
onChange:
|
|
7063
|
+
onChange: L,
|
|
7064
7064
|
onBlur: _,
|
|
7065
7065
|
className: Z.input,
|
|
7066
7066
|
style: {
|
|
@@ -7072,7 +7072,7 @@ const Wu = (e) => {
|
|
|
7072
7072
|
}
|
|
7073
7073
|
)
|
|
7074
7074
|
] });
|
|
7075
|
-
},
|
|
7075
|
+
}, A0 = () => {
|
|
7076
7076
|
const {
|
|
7077
7077
|
modalPosition: e,
|
|
7078
7078
|
color: t,
|
|
@@ -7091,9 +7091,9 @@ const Wu = (e) => {
|
|
|
7091
7091
|
colorChange: m,
|
|
7092
7092
|
setColor: p,
|
|
7093
7093
|
update: v,
|
|
7094
|
-
isGradient:
|
|
7094
|
+
isGradient: x,
|
|
7095
7095
|
setIsGradient: b,
|
|
7096
|
-
gradientDirection:
|
|
7096
|
+
gradientDirection: L,
|
|
7097
7097
|
setGradientDirection: _,
|
|
7098
7098
|
hue2: N,
|
|
7099
7099
|
saturation2: U,
|
|
@@ -7107,31 +7107,31 @@ const Wu = (e) => {
|
|
|
7107
7107
|
setActiveColorIndex: he,
|
|
7108
7108
|
isGradientActive: Oe,
|
|
7109
7109
|
isBlockSettings: Te
|
|
7110
|
-
} =
|
|
7110
|
+
} = Ca(), Ze = (j, V, ne) => {
|
|
7111
7111
|
V /= 100, ne /= 100;
|
|
7112
7112
|
const z = (ue) => (ue + j / 60) % 6, G = (ue) => ne * (1 - V * Math.max(0, Math.min(z(ue), 4 - z(ue), 1))), W = Math.round(255 * G(5)), re = Math.round(255 * G(3)), q = Math.round(255 * G(1));
|
|
7113
7113
|
return { r: W, g: re, b: q };
|
|
7114
|
-
}, ce = (j) => j.toString(16).padStart(2, "0"),
|
|
7114
|
+
}, ce = (j) => j.toString(16).padStart(2, "0"), xe = (j, V, ne, z) => {
|
|
7115
7115
|
const { r: G, g: W, b: re } = Ze(j, V, ne), q = Math.round(z / 100 * 255);
|
|
7116
7116
|
return `#${ce(G)}${ce(W)}${ce(re)}${ce(q)}`;
|
|
7117
7117
|
}, Se = (j, V, ne, z) => {
|
|
7118
|
-
if (
|
|
7118
|
+
if (x)
|
|
7119
7119
|
if (te === 1) {
|
|
7120
7120
|
u(j), d(V), h(ne), y(z);
|
|
7121
|
-
const G =
|
|
7121
|
+
const G = xe(j, V, ne, z), W = xe(N, U, w, T), q = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${G} 0%, ${W} 100%)`;
|
|
7122
7122
|
m(q), p(q);
|
|
7123
7123
|
} else {
|
|
7124
7124
|
K(j), B(V), ae(ne), ee(z);
|
|
7125
|
-
const G =
|
|
7125
|
+
const G = xe(j, V, ne, z), W = xe(o, a, i, s), q = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${W} 0%, ${G} 100%)`;
|
|
7126
7126
|
m(q), p(q);
|
|
7127
7127
|
}
|
|
7128
7128
|
else {
|
|
7129
|
-
const G =
|
|
7129
|
+
const G = xe(j, V, ne, z);
|
|
7130
7130
|
m(G), p(G);
|
|
7131
7131
|
}
|
|
7132
7132
|
}, be = (j, V, ne) => {
|
|
7133
7133
|
const { width: z, height: G } = ne.getBoundingClientRect(), W = Math.max(0, Math.min(j / z * 100, 100)), re = Math.max(0, Math.min(100 - V / G * 100, 100));
|
|
7134
|
-
|
|
7134
|
+
x ? te === 1 ? (d(W), h(re), Se(o, W, re, s)) : (B(W), ae(re), Se(N, W, re, T)) : (d(W), h(re), Se(o, W, re, s));
|
|
7135
7135
|
}, Pe = (j) => {
|
|
7136
7136
|
const { offsetX: V, offsetY: ne } = j.nativeEvent;
|
|
7137
7137
|
c(!0), be(V, ne, j.currentTarget);
|
|
@@ -7205,10 +7205,10 @@ const Wu = (e) => {
|
|
|
7205
7205
|
he
|
|
7206
7206
|
]), _e.useEffect(() => {
|
|
7207
7207
|
let j, V, ne, z;
|
|
7208
|
-
|
|
7208
|
+
x ? te === 1 ? (j = o, V = a, ne = i, z = s) : (j = N, V = U, ne = w, z = T) : (j = o, V = a, ne = i, z = s), Se(j, V, ne, z);
|
|
7209
7209
|
}, [
|
|
7210
|
-
k,
|
|
7211
7210
|
x,
|
|
7211
|
+
L,
|
|
7212
7212
|
te,
|
|
7213
7213
|
o,
|
|
7214
7214
|
a,
|
|
@@ -7223,20 +7223,20 @@ const Wu = (e) => {
|
|
|
7223
7223
|
return l ? (document.addEventListener("mousemove", j), document.addEventListener("mouseup", V)) : (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V)), () => {
|
|
7224
7224
|
document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", V);
|
|
7225
7225
|
};
|
|
7226
|
-
}, [l,
|
|
7226
|
+
}, [l, x, L]);
|
|
7227
7227
|
function pe() {
|
|
7228
|
-
if (!
|
|
7228
|
+
if (!x)
|
|
7229
7229
|
v(t);
|
|
7230
7230
|
else {
|
|
7231
|
-
const j =
|
|
7231
|
+
const j = xe(o, a, i, s), V = xe(N, U, w, T), z = `linear-gradient(${L === "vertical" ? "0deg" : "90deg"}, ${j} 0%, ${V} 100%)`;
|
|
7232
7232
|
v(z);
|
|
7233
7233
|
}
|
|
7234
7234
|
r(!1);
|
|
7235
7235
|
}
|
|
7236
|
-
function
|
|
7236
|
+
function Ae() {
|
|
7237
7237
|
r(!1), m(n);
|
|
7238
7238
|
}
|
|
7239
|
-
const Ce =
|
|
7239
|
+
const Ce = x ? te === 1 ? o : N : o, ft = x ? te === 1 ? a : U : a, en = x ? te === 1 ? i : w : i, zn = x ? te === 1 ? s : T : s, { r: tn, g: Ee, b: et } = Ze(Ce, ft, en), nn = `linear-gradient(to right, rgba(${tn}, ${Ee}, ${et}, 0), rgba(${tn}, ${Ee}, ${et}, 1))`, rn = xe(o, a, i, s), qe = xe(N, U, w, T);
|
|
7240
7240
|
return /* @__PURE__ */ Re(
|
|
7241
7241
|
"div",
|
|
7242
7242
|
{
|
|
@@ -7247,15 +7247,15 @@ const Wu = (e) => {
|
|
|
7247
7247
|
left: `${e.left}px`
|
|
7248
7248
|
},
|
|
7249
7249
|
children: [
|
|
7250
|
-
/* @__PURE__ */
|
|
7250
|
+
/* @__PURE__ */ A("h2", { className: Z.title, children: "Color" }),
|
|
7251
7251
|
Oe && /* @__PURE__ */ Re("div", { className: Z.colorTypes, children: [
|
|
7252
7252
|
/* @__PURE__ */ Re(
|
|
7253
7253
|
"div",
|
|
7254
7254
|
{
|
|
7255
|
-
className: Ve(Z.colorType, { [Z.colorTypeActive]: !
|
|
7255
|
+
className: Ve(Z.colorType, { [Z.colorTypeActive]: !x }),
|
|
7256
7256
|
onClick: () => b(!1),
|
|
7257
7257
|
children: [
|
|
7258
|
-
/* @__PURE__ */
|
|
7258
|
+
/* @__PURE__ */ A(
|
|
7259
7259
|
"div",
|
|
7260
7260
|
{
|
|
7261
7261
|
style: {
|
|
@@ -7273,10 +7273,10 @@ const Wu = (e) => {
|
|
|
7273
7273
|
/* @__PURE__ */ Re(
|
|
7274
7274
|
"div",
|
|
7275
7275
|
{
|
|
7276
|
-
className: Ve(Z.colorType, { [Z.colorTypeActive]:
|
|
7276
|
+
className: Ve(Z.colorType, { [Z.colorTypeActive]: x }),
|
|
7277
7277
|
onClick: () => b(!0),
|
|
7278
7278
|
children: [
|
|
7279
|
-
/* @__PURE__ */
|
|
7279
|
+
/* @__PURE__ */ A(
|
|
7280
7280
|
"div",
|
|
7281
7281
|
{
|
|
7282
7282
|
style: {
|
|
@@ -7292,8 +7292,8 @@ const Wu = (e) => {
|
|
|
7292
7292
|
}
|
|
7293
7293
|
)
|
|
7294
7294
|
] }),
|
|
7295
|
-
|
|
7296
|
-
/* @__PURE__ */
|
|
7295
|
+
x && Oe && /* @__PURE__ */ Re("div", { className: Z.colorsWrapper, children: [
|
|
7296
|
+
/* @__PURE__ */ A(
|
|
7297
7297
|
"div",
|
|
7298
7298
|
{
|
|
7299
7299
|
className: Z.colors,
|
|
@@ -7302,7 +7302,7 @@ const Wu = (e) => {
|
|
|
7302
7302
|
}
|
|
7303
7303
|
}
|
|
7304
7304
|
),
|
|
7305
|
-
/* @__PURE__ */
|
|
7305
|
+
/* @__PURE__ */ A(
|
|
7306
7306
|
"div",
|
|
7307
7307
|
{
|
|
7308
7308
|
className: Ve(Z.color, { [Z.colorActive]: te === 1 }),
|
|
@@ -7310,7 +7310,7 @@ const Wu = (e) => {
|
|
|
7310
7310
|
style: { background: rn }
|
|
7311
7311
|
}
|
|
7312
7312
|
),
|
|
7313
|
-
/* @__PURE__ */
|
|
7313
|
+
/* @__PURE__ */ A(
|
|
7314
7314
|
"div",
|
|
7315
7315
|
{
|
|
7316
7316
|
className: Ve(Z.color, { [Z.colorActive]: te === 2 }),
|
|
@@ -7319,7 +7319,7 @@ const Wu = (e) => {
|
|
|
7319
7319
|
}
|
|
7320
7320
|
)
|
|
7321
7321
|
] }),
|
|
7322
|
-
/* @__PURE__ */
|
|
7322
|
+
/* @__PURE__ */ A(
|
|
7323
7323
|
"div",
|
|
7324
7324
|
{
|
|
7325
7325
|
className: Z.colorMap,
|
|
@@ -7330,7 +7330,7 @@ const Wu = (e) => {
|
|
|
7330
7330
|
linear-gradient(to right, hsl(${Ce}, 100%, 100%), hsl(${Ce}, 100%, 50%))
|
|
7331
7331
|
`
|
|
7332
7332
|
},
|
|
7333
|
-
children: /* @__PURE__ */
|
|
7333
|
+
children: /* @__PURE__ */ A(
|
|
7334
7334
|
"div",
|
|
7335
7335
|
{
|
|
7336
7336
|
className: Z.indicator,
|
|
@@ -7344,14 +7344,14 @@ const Wu = (e) => {
|
|
|
7344
7344
|
)
|
|
7345
7345
|
}
|
|
7346
7346
|
),
|
|
7347
|
-
/* @__PURE__ */
|
|
7347
|
+
/* @__PURE__ */ A(
|
|
7348
7348
|
"div",
|
|
7349
7349
|
{
|
|
7350
7350
|
className: Z.hueSlider,
|
|
7351
7351
|
style: {
|
|
7352
|
-
bottom: Te ?
|
|
7352
|
+
bottom: Te ? x ? "225px" : "150px" : x ? "175px" : "100px"
|
|
7353
7353
|
},
|
|
7354
|
-
children: /* @__PURE__ */
|
|
7354
|
+
children: /* @__PURE__ */ A(
|
|
7355
7355
|
"input",
|
|
7356
7356
|
{
|
|
7357
7357
|
type: "range",
|
|
@@ -7360,7 +7360,7 @@ const Wu = (e) => {
|
|
|
7360
7360
|
value: Ce,
|
|
7361
7361
|
onChange: (j) => {
|
|
7362
7362
|
const V = Number(j.target.value);
|
|
7363
|
-
|
|
7363
|
+
x ? te === 1 ? Se(V, a, i, s) : Se(V, U, w, T) : (u(V), Se(V, a, i, s));
|
|
7364
7364
|
},
|
|
7365
7365
|
className: Z.slider
|
|
7366
7366
|
}
|
|
@@ -7372,18 +7372,18 @@ const Wu = (e) => {
|
|
|
7372
7372
|
{
|
|
7373
7373
|
className: Z.alphaSlider,
|
|
7374
7374
|
style: {
|
|
7375
|
-
bottom: Te ?
|
|
7375
|
+
bottom: Te ? x ? "200px" : "125px" : x ? "150px" : "75px"
|
|
7376
7376
|
},
|
|
7377
7377
|
children: [
|
|
7378
|
-
/* @__PURE__ */
|
|
7379
|
-
/* @__PURE__ */
|
|
7378
|
+
/* @__PURE__ */ A("div", { className: Z.alphaBackground }),
|
|
7379
|
+
/* @__PURE__ */ A(
|
|
7380
7380
|
"div",
|
|
7381
7381
|
{
|
|
7382
7382
|
className: Z.alphaGradient,
|
|
7383
7383
|
style: { background: nn }
|
|
7384
7384
|
}
|
|
7385
7385
|
),
|
|
7386
|
-
/* @__PURE__ */
|
|
7386
|
+
/* @__PURE__ */ A(
|
|
7387
7387
|
"input",
|
|
7388
7388
|
{
|
|
7389
7389
|
type: "range",
|
|
@@ -7392,7 +7392,7 @@ const Wu = (e) => {
|
|
|
7392
7392
|
value: zn,
|
|
7393
7393
|
onChange: (j) => {
|
|
7394
7394
|
const V = Number(j.target.value);
|
|
7395
|
-
|
|
7395
|
+
x ? te === 1 ? Se(o, a, i, V) : Se(N, U, w, V) : (y(V), Se(o, a, i, V));
|
|
7396
7396
|
},
|
|
7397
7397
|
className: Z.slider
|
|
7398
7398
|
}
|
|
@@ -7400,18 +7400,18 @@ const Wu = (e) => {
|
|
|
7400
7400
|
]
|
|
7401
7401
|
}
|
|
7402
7402
|
),
|
|
7403
|
-
|
|
7404
|
-
/* @__PURE__ */
|
|
7405
|
-
/* @__PURE__ */
|
|
7403
|
+
x && Oe && /* @__PURE__ */ Re("div", { className: Z.gradientWrapper, children: [
|
|
7404
|
+
/* @__PURE__ */ A("h3", { className: Z.subtitle, children: "Rotation" }),
|
|
7405
|
+
/* @__PURE__ */ A("div", { className: Z.gradient, children: /* @__PURE__ */ Re("div", { className: Z.chargeTypes, children: [
|
|
7406
7406
|
/* @__PURE__ */ Re(
|
|
7407
7407
|
"div",
|
|
7408
7408
|
{
|
|
7409
7409
|
className: Ve(Z.charge, {
|
|
7410
|
-
[Z.chargeActive]:
|
|
7410
|
+
[Z.chargeActive]: L === "horizontal"
|
|
7411
7411
|
}),
|
|
7412
7412
|
onClick: () => _("horizontal"),
|
|
7413
7413
|
children: [
|
|
7414
|
-
/* @__PURE__ */
|
|
7414
|
+
/* @__PURE__ */ A(
|
|
7415
7415
|
Wt,
|
|
7416
7416
|
{
|
|
7417
7417
|
name: "ArrowsHorizontal",
|
|
@@ -7427,11 +7427,11 @@ const Wu = (e) => {
|
|
|
7427
7427
|
"div",
|
|
7428
7428
|
{
|
|
7429
7429
|
className: Ve(Z.charge, {
|
|
7430
|
-
[Z.chargeActive]:
|
|
7430
|
+
[Z.chargeActive]: L === "vertical"
|
|
7431
7431
|
}),
|
|
7432
7432
|
onClick: () => _("vertical"),
|
|
7433
7433
|
children: [
|
|
7434
|
-
/* @__PURE__ */
|
|
7434
|
+
/* @__PURE__ */ A(
|
|
7435
7435
|
Wt,
|
|
7436
7436
|
{
|
|
7437
7437
|
name: "ArrowsVertical",
|
|
@@ -7445,7 +7445,7 @@ const Wu = (e) => {
|
|
|
7445
7445
|
)
|
|
7446
7446
|
] }) })
|
|
7447
7447
|
] }),
|
|
7448
|
-
Te && /* @__PURE__ */
|
|
7448
|
+
Te && /* @__PURE__ */ A(
|
|
7449
7449
|
Wu,
|
|
7450
7450
|
{
|
|
7451
7451
|
initialColor: t,
|
|
@@ -7455,16 +7455,16 @@ const Wu = (e) => {
|
|
|
7455
7455
|
}
|
|
7456
7456
|
),
|
|
7457
7457
|
/* @__PURE__ */ Re("div", { className: Z.buttons, children: [
|
|
7458
|
-
/* @__PURE__ */
|
|
7458
|
+
/* @__PURE__ */ A(
|
|
7459
7459
|
$r,
|
|
7460
7460
|
{
|
|
7461
|
-
onClick:
|
|
7461
|
+
onClick: Ae,
|
|
7462
7462
|
className: Ve(Z.applyButton, Z.cancelButton),
|
|
7463
7463
|
type: "Secondary",
|
|
7464
7464
|
children: "Cancel"
|
|
7465
7465
|
}
|
|
7466
7466
|
),
|
|
7467
|
-
/* @__PURE__ */
|
|
7467
|
+
/* @__PURE__ */ A(
|
|
7468
7468
|
$r,
|
|
7469
7469
|
{
|
|
7470
7470
|
onClick: pe,
|
|
@@ -7477,13 +7477,13 @@ const Wu = (e) => {
|
|
|
7477
7477
|
]
|
|
7478
7478
|
}
|
|
7479
7479
|
);
|
|
7480
|
-
}, Zu = "
|
|
7480
|
+
}, Zu = "_wrapper_1bsje_1", qu = "_open_1bsje_16", Ku = "_close_1bsje_20", ar = {
|
|
7481
7481
|
wrapper: Zu,
|
|
7482
7482
|
open: qu,
|
|
7483
7483
|
close: Ku
|
|
7484
|
-
},
|
|
7484
|
+
}, M0 = (e) => {
|
|
7485
7485
|
const { isOpen: t, isClose: n, children: r } = e;
|
|
7486
|
-
return /* @__PURE__ */
|
|
7486
|
+
return /* @__PURE__ */ A(
|
|
7487
7487
|
"div",
|
|
7488
7488
|
{
|
|
7489
7489
|
className: Ve(ar.wrapper, {
|
|
@@ -7493,18 +7493,18 @@ const Wu = (e) => {
|
|
|
7493
7493
|
children: r
|
|
7494
7494
|
}
|
|
7495
7495
|
);
|
|
7496
|
-
}, Gu = "
|
|
7496
|
+
}, Gu = "_blocks_1h216_1", Yu = "_block_1h216_1", Xu = "_active_1h216_21", ir = {
|
|
7497
7497
|
blocks: Gu,
|
|
7498
7498
|
block: Yu,
|
|
7499
7499
|
active: Xu
|
|
7500
7500
|
}, D0 = (e) => {
|
|
7501
7501
|
const { items: t, selectedItem: n, onSelect: r, getIconName: o } = e;
|
|
7502
|
-
return /* @__PURE__ */
|
|
7502
|
+
return /* @__PURE__ */ A("div", { className: ir.blocks, children: t.map((a) => /* @__PURE__ */ A(
|
|
7503
7503
|
"div",
|
|
7504
7504
|
{
|
|
7505
7505
|
className: Ve(ir.block, { [ir.active]: n === a }),
|
|
7506
7506
|
onClick: () => r(a),
|
|
7507
|
-
children: /* @__PURE__ */
|
|
7507
|
+
children: /* @__PURE__ */ A(
|
|
7508
7508
|
Wt,
|
|
7509
7509
|
{
|
|
7510
7510
|
name: o(a),
|
|
@@ -7519,7 +7519,7 @@ const Wu = (e) => {
|
|
|
7519
7519
|
main: ed,
|
|
7520
7520
|
content: td,
|
|
7521
7521
|
notifications: nd
|
|
7522
|
-
}, rd = "
|
|
7522
|
+
}, rd = "_notification_rpmz2_1", od = "_text_rpmz2_22", ad = "_timer_rpmz2_27", id = "_warning_rpmz2_32", sd = "_error_rpmz2_37", ld = "_success_rpmz2_42", Lt = {
|
|
7523
7523
|
notification: rd,
|
|
7524
7524
|
text: od,
|
|
7525
7525
|
timer: ad,
|
|
@@ -7551,7 +7551,7 @@ const Wu = (e) => {
|
|
|
7551
7551
|
padding: o,
|
|
7552
7552
|
timer: a,
|
|
7553
7553
|
id: i
|
|
7554
|
-
}) : /* @__PURE__ */
|
|
7554
|
+
}) : /* @__PURE__ */ A(
|
|
7555
7555
|
"div",
|
|
7556
7556
|
{
|
|
7557
7557
|
style: {
|
|
@@ -7561,14 +7561,14 @@ const Wu = (e) => {
|
|
|
7561
7561
|
children: /* @__PURE__ */ Re(
|
|
7562
7562
|
"div",
|
|
7563
7563
|
{
|
|
7564
|
-
className: Ve(
|
|
7565
|
-
[
|
|
7566
|
-
[
|
|
7567
|
-
[
|
|
7564
|
+
className: Ve(Lt.notification, {
|
|
7565
|
+
[Lt.warning]: t === "warning",
|
|
7566
|
+
[Lt.error]: t === "error",
|
|
7567
|
+
[Lt.success]: t === "success"
|
|
7568
7568
|
}),
|
|
7569
7569
|
style: r,
|
|
7570
7570
|
children: [
|
|
7571
|
-
/* @__PURE__ */
|
|
7571
|
+
/* @__PURE__ */ A("div", { children: /* @__PURE__ */ A(
|
|
7572
7572
|
Wt,
|
|
7573
7573
|
{
|
|
7574
7574
|
name: "Info",
|
|
@@ -7577,15 +7577,15 @@ const Wu = (e) => {
|
|
|
7577
7577
|
height: 20
|
|
7578
7578
|
}
|
|
7579
7579
|
) }),
|
|
7580
|
-
/* @__PURE__ */
|
|
7581
|
-
a && /* @__PURE__ */
|
|
7582
|
-
/* @__PURE__ */
|
|
7580
|
+
/* @__PURE__ */ A("div", { className: Lt.text, children: n }),
|
|
7581
|
+
a && /* @__PURE__ */ A("div", { className: Lt.timer, children: l }),
|
|
7582
|
+
/* @__PURE__ */ A(
|
|
7583
7583
|
"div",
|
|
7584
7584
|
{
|
|
7585
7585
|
style: {
|
|
7586
7586
|
display: "flex"
|
|
7587
7587
|
},
|
|
7588
|
-
children: /* @__PURE__ */
|
|
7588
|
+
children: /* @__PURE__ */ A(
|
|
7589
7589
|
Wt,
|
|
7590
7590
|
{
|
|
7591
7591
|
name: "X",
|
|
@@ -7604,43 +7604,43 @@ const Wu = (e) => {
|
|
|
7604
7604
|
}
|
|
7605
7605
|
);
|
|
7606
7606
|
}, ud = () => {
|
|
7607
|
-
const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), {
|
|
7608
|
-
return /* @__PURE__ */ Re("div", { id: "builder", children: [
|
|
7607
|
+
const { isOpenModal: e, setIsOpenModal: t } = _n(), { openModal: n, setOpenModal: r } = Vc(), { isAntistock: o } = wa(), { notifications: a } = Ue(), { title: i, description: s, setTitle: l, setDescription: c, setOnConfirm: u } = jc();
|
|
7608
|
+
return /* @__PURE__ */ Re("div", { id: "builder", className: o ? "builder-dark" : "", children: [
|
|
7609
7609
|
/* @__PURE__ */ Re("div", { className: mn.layout, children: [
|
|
7610
|
-
/* @__PURE__ */
|
|
7610
|
+
/* @__PURE__ */ A(Fa, {}),
|
|
7611
7611
|
/* @__PURE__ */ Re("main", { className: mn.main, children: [
|
|
7612
|
-
/* @__PURE__ */
|
|
7612
|
+
/* @__PURE__ */ A(Ia, {}),
|
|
7613
7613
|
/* @__PURE__ */ Re("div", { className: mn.content, children: [
|
|
7614
|
-
/* @__PURE__ */
|
|
7615
|
-
/* @__PURE__ */
|
|
7614
|
+
/* @__PURE__ */ A(Ba, {}),
|
|
7615
|
+
/* @__PURE__ */ A(Ha, {})
|
|
7616
7616
|
] })
|
|
7617
7617
|
] })
|
|
7618
7618
|
] }),
|
|
7619
|
-
|
|
7619
|
+
i && s && /* @__PURE__ */ A(
|
|
7620
7620
|
qn,
|
|
7621
7621
|
{
|
|
7622
7622
|
close: () => {
|
|
7623
|
-
|
|
7623
|
+
l(null), c(null), u(null);
|
|
7624
7624
|
},
|
|
7625
|
-
children: /* @__PURE__ */
|
|
7625
|
+
children: /* @__PURE__ */ A(Aa, {})
|
|
7626
7626
|
}
|
|
7627
7627
|
),
|
|
7628
|
-
e && /* @__PURE__ */
|
|
7629
|
-
n && /* @__PURE__ */
|
|
7630
|
-
|
|
7628
|
+
e && /* @__PURE__ */ A(qn, { close: t, children: /* @__PURE__ */ A(Ua, {}) }),
|
|
7629
|
+
n && /* @__PURE__ */ A(qn, { close: r, children: /* @__PURE__ */ A(Ma, {}) }),
|
|
7630
|
+
a.length > 0 && /* @__PURE__ */ A("div", { className: mn.notifications, children: a.map((d) => /* @__PURE__ */ A(
|
|
7631
7631
|
cd,
|
|
7632
7632
|
{
|
|
7633
|
-
type:
|
|
7634
|
-
message:
|
|
7635
|
-
timer:
|
|
7636
|
-
id:
|
|
7637
|
-
element:
|
|
7633
|
+
type: d.status,
|
|
7634
|
+
message: d.message,
|
|
7635
|
+
timer: d.timer || 10,
|
|
7636
|
+
id: d.id,
|
|
7637
|
+
element: d.component
|
|
7638
7638
|
},
|
|
7639
|
-
|
|
7639
|
+
d.id
|
|
7640
7640
|
)) })
|
|
7641
7641
|
] });
|
|
7642
7642
|
};
|
|
7643
|
-
async function
|
|
7643
|
+
async function kt(e, t) {
|
|
7644
7644
|
const n = localStorage.getItem("shopId") || void 0, o = `${jn.getState().apiUrls.api}/${e}/builder/shops/${n}/${t}`;
|
|
7645
7645
|
return (await st({
|
|
7646
7646
|
url: o,
|
|
@@ -7651,12 +7651,12 @@ async function Lt(e, t) {
|
|
|
7651
7651
|
async function dd() {
|
|
7652
7652
|
try {
|
|
7653
7653
|
const [e, t, n, r, o, a, i, s, l] = await Promise.allSettled([
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7654
|
+
kt("v1", "general"),
|
|
7655
|
+
kt("v1", "faqs"),
|
|
7656
|
+
kt("v1", "listings"),
|
|
7657
|
+
kt("v1", "products"),
|
|
7658
|
+
kt("v1", "reviews"),
|
|
7659
|
+
kt("v1", "categories"),
|
|
7660
7660
|
{
|
|
7661
7661
|
data: null
|
|
7662
7662
|
},
|
|
@@ -7725,7 +7725,7 @@ const md = (e) => {
|
|
|
7725
7725
|
setFooter: c,
|
|
7726
7726
|
setAnnouncement: u,
|
|
7727
7727
|
setSettings: d
|
|
7728
|
-
} =
|
|
7728
|
+
} = Oc(), { fonts: h, setFonts: y } = Jc(), { setSettings: m } = _o(), { setPageContext: p } = _n(), { setThemeSettings: v, setIsLoadingThemeSettings: x } = yr(), { setIsLoadingSettings: b } = _o(), { notifications: L, setNotifications: _ } = Ue(), {
|
|
7729
7729
|
setBlocks: N,
|
|
7730
7730
|
blocks: U,
|
|
7731
7731
|
createPage: w,
|
|
@@ -7735,7 +7735,7 @@ const md = (e) => {
|
|
|
7735
7735
|
setFooter: ae
|
|
7736
7736
|
} = br(), { setPages: ee, setCurrentPage: te } = _n();
|
|
7737
7737
|
return _e.useEffect(() => {
|
|
7738
|
-
|
|
7738
|
+
x(!0), T(!0), b(!0);
|
|
7739
7739
|
const he = {};
|
|
7740
7740
|
Object.keys(t).forEach((Te) => {
|
|
7741
7741
|
he[Te] = t[Te];
|
|
@@ -7756,7 +7756,7 @@ const md = (e) => {
|
|
|
7756
7756
|
const pe = ie;
|
|
7757
7757
|
Te[pe] = Ze[pe].value.data;
|
|
7758
7758
|
}), p(Te);
|
|
7759
|
-
const { data: ce } = await pd(), { themeSettings:
|
|
7759
|
+
const { data: ce } = await pd(), { themeSettings: xe, layers: Se, settings: be } = ce || {};
|
|
7760
7760
|
if (be) {
|
|
7761
7761
|
if (be.settings) {
|
|
7762
7762
|
const ie = new n();
|
|
@@ -7771,40 +7771,40 @@ const md = (e) => {
|
|
|
7771
7771
|
const ie = new n();
|
|
7772
7772
|
m(ie.blockSettings);
|
|
7773
7773
|
}
|
|
7774
|
-
|
|
7774
|
+
xe && v(xe);
|
|
7775
7775
|
const Pe = await hd(), He = {};
|
|
7776
7776
|
if (Pe.status >= 400 && _([
|
|
7777
|
-
...
|
|
7777
|
+
...L,
|
|
7778
7778
|
{
|
|
7779
7779
|
id: it(),
|
|
7780
7780
|
message: "Error fetching pages",
|
|
7781
7781
|
status: "error"
|
|
7782
7782
|
}
|
|
7783
7783
|
]), Pe.data.length > 0 ? (Pe.data.forEach((ie) => {
|
|
7784
|
-
var pe,
|
|
7784
|
+
var pe, Ae;
|
|
7785
7785
|
U[ie.path] || w(ie.path), He[ie.id || ie.path] = {
|
|
7786
7786
|
...ie,
|
|
7787
7787
|
icon: jt[ie.path] ? jt[ie.path].icon : "File",
|
|
7788
|
-
name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((
|
|
7788
|
+
name: ie.name || ((pe = ie.seo) == null ? void 0 : pe.pageTitle) || ((Ae = jt[ie.path]) == null ? void 0 : Ae.name) || ie.path
|
|
7789
7789
|
};
|
|
7790
7790
|
}), ee(He), te(Object.keys(He)[0])) : (ee(jt), te(Object.keys(jt)[0])), h.length === 0) {
|
|
7791
7791
|
const ie = await fd();
|
|
7792
7792
|
y([
|
|
7793
7793
|
...ie.map((pe) => {
|
|
7794
|
-
const
|
|
7794
|
+
const Ae = pe.variants.map((Ce) => {
|
|
7795
7795
|
if (!Ce.includes("italic"))
|
|
7796
7796
|
return Ce === "regular" ? "400" : Ce;
|
|
7797
7797
|
}).filter((Ce) => Ce !== void 0);
|
|
7798
7798
|
return {
|
|
7799
7799
|
name: pe.family,
|
|
7800
|
-
weights:
|
|
7800
|
+
weights: Ae
|
|
7801
7801
|
};
|
|
7802
7802
|
})
|
|
7803
7803
|
]);
|
|
7804
7804
|
}
|
|
7805
|
-
N(Se),
|
|
7805
|
+
N(Se), x(!1), T(!1), b(!1);
|
|
7806
7806
|
})();
|
|
7807
|
-
}, []), /* @__PURE__ */
|
|
7807
|
+
}, []), /* @__PURE__ */ A(ud, {});
|
|
7808
7808
|
};
|
|
7809
7809
|
function gd() {
|
|
7810
7810
|
const e = new URL(window.location.href);
|
|
@@ -7815,7 +7815,7 @@ function vd() {
|
|
|
7815
7815
|
return gd(), n && localStorage.setItem("sellerAccessToken", n), t && localStorage.setItem("shopId", t), r && localStorage.setItem("draftId", r), !!(n && t && r);
|
|
7816
7816
|
}
|
|
7817
7817
|
const yd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%200%20204%20241'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M204%200V118.282L154.174%20134.707V69.0074L49.7111%20102.77V43.5716L204%200Z'%20fill='%23FF3F19'/%3e%3cpath%20d='M154.174%20134.694V191.155L0%20241V117.471L49.7114%20102.757V169.597L154.174%20134.694Z'%20fill='%23FF3F19'/%3e%3c/svg%3e", wd = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2019%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.0103662%2023.5362C0.0538052%2022.4425%200.370173%2021.4309%201.08058%2020.6127C1.92699%2019.6379%202.91375%2019.2329%204.14841%2019.1732C4.162%2020.1401%204.15111%2021.1085%204.15091%2022.0756L4.70583%2022.0747L7.42027%2022.0755C7.95952%2022.0752%208.50027%2022.0844%209.03933%2022.0742L9.17755%2022.0731L10.6132%2022.0759C10.8265%2022.0759%2011.0767%2022.1021%2011.2852%2022.0658C11.3052%2022.0703%2011.3534%2022.0735%2011.3625%2022.0928C11.3917%2022.1543%2011.3688%2031.0517%2011.3725%2031.9631C11.1563%2032.0856%2010.2676%2031.8701%2010.0303%2031.7947C9.89866%2031.7528%209.644%2031.6914%209.54946%2031.5874L9.51914%2031.584C9.46943%2031.5736%209.44171%2031.5537%209.40126%2031.5222C9.30218%2031.5131%209.14954%2031.4132%209.07718%2031.343C9.00129%2031.3163%208.92757%2031.2576%208.85921%2031.2134L8.85617%2031.2002C8.5748%2031.0715%208.14929%2030.6244%207.94318%2030.376C7.35205%2029.6639%206.93892%2028.7659%206.83493%2027.8203C6.78763%2027.3904%206.7994%2026.9595%206.80055%2026.5277C6.80084%2026.4202%206.82996%2026.126%206.78242%2026.0387L6.71237%2026.023C6.54382%2026.0528%206.34316%2026.0328%206.17124%2026.0324L1.0194%2026.0325L0.942306%2026.0307C0.74237%2026.0326%200.173082%2026.0689%200.0224192%2026.0192L0.00848581%2026.0029C0.022853%2025.8597%200.0136924%2025.7065%200.013837%2025.562L0.0113299%2024.6651L0.0117161%2024.5253C0.0150266%2024.1956%200.0145767%2023.8659%200.0103662%2023.5362Z'%20fill='currentColor'/%3e%3cpath%20d='M6.79824%200.00127802C6.88001%20-0.000781892%206.96176%20-0.000351703%207.04349%200.00256876C7.12523%200.00549261%207.20682%200.0108998%207.28827%200.0187905C7.36968%200.0266845%207.45082%200.0370518%207.53169%200.0498924C7.61259%200.0627296%207.69305%200.078018%207.77309%200.0957576C7.85312%200.113501%207.93259%200.133663%208.0115%200.156244C8.09044%200.178828%208.16868%200.203796%208.24624%200.231148C8.3238%200.258499%208.40053%200.28819%208.47645%200.32022C8.55237%200.352247%208.62736%200.386559%208.70141%200.423156L8.71428%200.423492C8.76476%200.450874%208.815%200.479135%208.8661%200.50516C8.947%200.550491%209.03065%200.593185%209.10687%200.646856L9.24939%200.733144C9.31674%200.78126%209.38361%200.83049%209.45202%200.87695C10.462%201.67615%2011.1434%202.77146%2011.325%204.10211C11.4076%204.70784%2011.3729%205.34243%2011.372%205.9541C11.4625%205.96599%2011.5526%205.9664%2011.6436%205.96762C12.6033%205.93794%2013.5708%205.96289%2014.5314%205.96294C15.459%205.96305%2016.3927%205.93758%2017.3195%205.9633C17.5874%205.96523%2017.9062%206.00101%2018.1677%205.95273C18.1496%206.13096%2018.1583%206.31472%2018.1585%206.49401L18.1598%207.38388L18.1595%207.51855C18.1591%207.83084%2018.14%208.15609%2018.1607%208.46685C18.109%209.73893%2017.6972%2010.8198%2016.8003%2011.6891C15.9969%2012.4676%2015.0894%2012.76%2014.0228%2012.8194L14.021%2010.9083C14.0209%2010.5892%2014.0389%2010.2573%2014.0163%209.93952C14.0002%209.92849%2013.9879%209.91884%2013.9692%209.9133C13.7941%209.93418%2013.6055%209.92148%2013.4293%209.92133H9.15258L9.04077%209.92082L7.56664%209.92209C7.31676%209.92224%207.04528%209.94526%206.79858%209.90893L6.79824%200.00127802Z'%20fill='currentColor'/%3e%3cpath%20d='M4.13987%205.96279C4.65941%205.9653%205.17894%205.96467%205.69847%205.96091C5.70059%207.27995%205.71757%208.60219%205.69833%209.92082L4.15072%209.92046L4.15106%2011.4065C4.15096%2011.6783%204.1406%2011.9555%204.15443%2012.2266C4.73799%2012.8393%205.31307%2013.4655%205.90921%2014.0644L5.98321%2014.0407C6.25311%2014.0833%206.6928%2014.0501%206.97981%2014.0499L12.7386%2014.0492L13.5943%2014.0482C13.7363%2014.0479%2013.9068%2014.0286%2014.0457%2014.0577L15.8019%2015.9078L15.8915%2015.997L15.9615%2016.0784L15.9955%2016.1093L17.4221%2017.6163C17.6528%2017.8599%2017.9077%2018.0979%2018.1211%2018.3569C18.1463%2018.3875%2018.1599%2018.4086%2018.1691%2018.4477C18.1415%2018.6757%2018.1577%2018.9211%2018.1579%2019.1514L18.1594%2020.4531C18.1597%2021.8112%2018.142%2023.1721%2018.1599%2024.5297L18.1589%2024.6625L18.158%2025.5556C18.158%2025.7089%2018.1437%2025.8808%2018.1676%2026.0315L18.0995%2026.031L17.2568%2026.0329L17.2101%2026.0308C16.2512%2026.0486%2015.2892%2026.0305%2014.3299%2026.0308C13.7488%2026.031%2013.0694%2026.064%2012.4959%2026.0258L12.4831%2026.0202C12.4481%2025.9239%2012.4717%2022.4806%2012.47%2022.075L14.0216%2022.0744C14.0024%2021.3241%2014.0324%2020.5711%2014.0173%2019.8203C13.4629%2019.2116%2012.887%2018.6041%2012.3052%2018.0244L12.293%2017.9978C12.0554%2018.0392%2011.5401%2018.0054%2011.2777%2018.0053L8.9362%2018.0074C7.75375%2017.9793%206.56306%2018.0065%205.37994%2018.0069C5.13497%2018.007%204.32737%2018.0401%204.13472%2017.9962L2.36331%2016.1262L2.29219%2016.0566L2.21959%2015.9758L2.15074%2015.9102C1.93803%2015.6694%201.70849%2015.441%201.48797%2015.2079L0%2013.631C0.0383768%2013.4512%200.014078%2013.2231%200.013837%2013.0369L0.0121494%2011.9198L0.0113299%207.52017L0.0122943%207.34622C0.0134032%206.9143%200.0453199%206.37479%200.00371286%205.95329C0.115854%205.96772%200.229056%205.9664%200.341872%205.96777C0.589393%205.96198%200.836946%205.96042%201.08453%205.9631L3.10905%205.96548C3.44789%205.96554%203.80282%205.98825%204.13987%205.96279Z'%20fill='currentColor'/%3e%3c/svg%3e", bd = (e) => {
|
|
7818
|
-
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } =
|
|
7818
|
+
const { blocks: t, settings: n, header: r, footer: o, announcement: a } = e, { isAntistock: i } = wa(), [s, l] = _e.useState(!0), c = Mn(), u = Qe();
|
|
7819
7819
|
return _e.useEffect(() => {
|
|
7820
7820
|
const d = u.pathname;
|
|
7821
7821
|
if (d.startsWith("/admin/builder")) {
|
|
@@ -7825,7 +7825,7 @@ const yd = "data:image/svg+xml,%3csvg%20width='204'%20height='241'%20viewBox='0%
|
|
|
7825
7825
|
}
|
|
7826
7826
|
}, [u]), _e.useEffect(() => {
|
|
7827
7827
|
l(!0), vd() ? l(!1) : c("/");
|
|
7828
|
-
}, []), /* @__PURE__ */
|
|
7828
|
+
}, []), /* @__PURE__ */ A(Oa, { children: s ? /* @__PURE__ */ A(Da, {}) : /* @__PURE__ */ A(
|
|
7829
7829
|
md,
|
|
7830
7830
|
{
|
|
7831
7831
|
blocks: t,
|
|
@@ -7843,41 +7843,41 @@ export {
|
|
|
7843
7843
|
Qd as $,
|
|
7844
7844
|
O0 as A,
|
|
7845
7845
|
Yc as B,
|
|
7846
|
-
|
|
7846
|
+
A0 as C,
|
|
7847
7847
|
N0 as D,
|
|
7848
|
-
|
|
7848
|
+
M0 as E,
|
|
7849
7849
|
y0 as F,
|
|
7850
7850
|
Jc as G,
|
|
7851
7851
|
p0 as H,
|
|
7852
7852
|
Wu as I,
|
|
7853
7853
|
u0 as J,
|
|
7854
|
-
|
|
7855
|
-
|
|
7854
|
+
wa as K,
|
|
7855
|
+
L0 as L,
|
|
7856
7856
|
g0 as M,
|
|
7857
7857
|
Dd as N,
|
|
7858
|
-
|
|
7858
|
+
Md as O,
|
|
7859
7859
|
D0 as P,
|
|
7860
7860
|
i0 as Q,
|
|
7861
7861
|
v0 as R,
|
|
7862
7862
|
P0 as S,
|
|
7863
|
-
|
|
7863
|
+
k0 as T,
|
|
7864
7864
|
l0 as U,
|
|
7865
|
-
|
|
7865
|
+
Tc as V,
|
|
7866
7866
|
$c as W,
|
|
7867
7867
|
s0 as X,
|
|
7868
|
-
|
|
7868
|
+
Is as Y,
|
|
7869
7869
|
qo as Z,
|
|
7870
7870
|
e0 as _,
|
|
7871
7871
|
_o as a,
|
|
7872
7872
|
r0 as a0,
|
|
7873
7873
|
Nd as a1,
|
|
7874
|
-
|
|
7874
|
+
Ad as a2,
|
|
7875
7875
|
o0 as a3,
|
|
7876
|
-
|
|
7876
|
+
ks as a4,
|
|
7877
7877
|
n0 as a5,
|
|
7878
7878
|
R0 as a6,
|
|
7879
7879
|
Od as a7,
|
|
7880
|
-
|
|
7880
|
+
kd as a8,
|
|
7881
7881
|
c0 as a9,
|
|
7882
7882
|
t0 as aa,
|
|
7883
7883
|
de as ab,
|
|
@@ -7886,21 +7886,21 @@ export {
|
|
|
7886
7886
|
Vc as ae,
|
|
7887
7887
|
b0 as af,
|
|
7888
7888
|
w0 as ag,
|
|
7889
|
-
|
|
7889
|
+
$s as ah,
|
|
7890
7890
|
d0 as ai,
|
|
7891
7891
|
Td as aj,
|
|
7892
7892
|
_d as ak,
|
|
7893
7893
|
Pd as al,
|
|
7894
7894
|
a0 as am,
|
|
7895
|
-
|
|
7895
|
+
Xi as an,
|
|
7896
7896
|
F0 as ao,
|
|
7897
7897
|
_n as b,
|
|
7898
|
-
|
|
7898
|
+
Oc as c,
|
|
7899
7899
|
De as d,
|
|
7900
7900
|
Ue as e,
|
|
7901
7901
|
Ve as f,
|
|
7902
7902
|
f0 as g,
|
|
7903
|
-
|
|
7903
|
+
x0 as h,
|
|
7904
7904
|
Hc as i,
|
|
7905
7905
|
jn as j,
|
|
7906
7906
|
jc as k,
|
|
@@ -7908,15 +7908,15 @@ export {
|
|
|
7908
7908
|
yr as m,
|
|
7909
7909
|
Wc as n,
|
|
7910
7910
|
C0 as o,
|
|
7911
|
-
|
|
7911
|
+
Mn as p,
|
|
7912
7912
|
Uc as q,
|
|
7913
7913
|
st as r,
|
|
7914
7914
|
E0 as s,
|
|
7915
7915
|
_0 as t,
|
|
7916
7916
|
br as u,
|
|
7917
7917
|
it as v,
|
|
7918
|
-
|
|
7918
|
+
Sa as w,
|
|
7919
7919
|
T0 as x,
|
|
7920
|
-
|
|
7920
|
+
Ca as y,
|
|
7921
7921
|
h0 as z
|
|
7922
7922
|
};
|