@meyicloud/meyi-cost-ui 1.7.2 → 1.7.3
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/README.md +22 -22
- package/dist/index.js +13 -13
- package/dist/index.mjs +399 -403
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as S from "react";
|
|
2
|
-
import Pe, { useCallback as
|
|
2
|
+
import Pe, { useCallback as gt, forwardRef as ra, createElement as zr, createContext as sa, useState as U, useEffect as Ue, useMemo as dn, useContext as oa, useRef as os } from "react";
|
|
3
3
|
import * as aa from "react-dom";
|
|
4
4
|
import { flushSync as bc } from "react-dom";
|
|
5
|
-
var gn = { exports: {} },
|
|
5
|
+
var gn = { exports: {} }, Vt = {};
|
|
6
6
|
var js;
|
|
7
7
|
function yc() {
|
|
8
|
-
if (js) return
|
|
8
|
+
if (js) return Vt;
|
|
9
9
|
js = 1;
|
|
10
10
|
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
11
|
function n(r, s, o) {
|
|
@@ -23,9 +23,9 @@ function yc() {
|
|
|
23
23
|
props: o
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return Vt.Fragment = t, Vt.jsx = n, Vt.jsxs = n, Vt;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var Ht = {};
|
|
29
29
|
var Es;
|
|
30
30
|
function vc() {
|
|
31
31
|
return Es || (Es = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
@@ -234,7 +234,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
234
234
|
m,
|
|
235
235
|
o
|
|
236
236
|
)(), me = J(r(o)), L = {};
|
|
237
|
-
|
|
237
|
+
Ht.Fragment = x, Ht.jsx = function(E, B, q) {
|
|
238
238
|
var K = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
239
239
|
return f(
|
|
240
240
|
E,
|
|
@@ -244,7 +244,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
244
244
|
K ? Error("react-stack-top-frame") : he,
|
|
245
245
|
K ? J(r(E)) : me
|
|
246
246
|
);
|
|
247
|
-
},
|
|
247
|
+
}, Ht.jsxs = function(E, B, q) {
|
|
248
248
|
var K = 1e4 > M.recentlyCreatedOwnerStacks++;
|
|
249
249
|
return f(
|
|
250
250
|
E,
|
|
@@ -255,7 +255,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
255
255
|
K ? J(r(E)) : me
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
|
-
})()),
|
|
258
|
+
})()), Ht;
|
|
259
259
|
}
|
|
260
260
|
var ks;
|
|
261
261
|
function wc() {
|
|
@@ -299,7 +299,7 @@ function nn(e) {
|
|
|
299
299
|
function Nc(e) {
|
|
300
300
|
return typeof e == "function";
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ot(e, t) {
|
|
303
303
|
return Nc(e) ? e(t) : e;
|
|
304
304
|
}
|
|
305
305
|
const ca = Object.prototype.hasOwnProperty, _s = Object.prototype.propertyIsEnumerable;
|
|
@@ -307,8 +307,8 @@ function la(e) {
|
|
|
307
307
|
for (const t in e) if (ca.call(e, t)) return !0;
|
|
308
308
|
return !1;
|
|
309
309
|
}
|
|
310
|
-
const Cc = () => /* @__PURE__ */ Object.create(null),
|
|
311
|
-
function
|
|
310
|
+
const Cc = () => /* @__PURE__ */ Object.create(null), nt = (e, t) => at(e, t, Cc);
|
|
311
|
+
function at(e, t, n = () => ({}), r = 0) {
|
|
312
312
|
if (e === t) return e;
|
|
313
313
|
if (r > 500) return t;
|
|
314
314
|
const s = t, o = Ts(e) && Ts(s);
|
|
@@ -329,7 +329,7 @@ function it(e, t, n = () => ({}), r = 0) {
|
|
|
329
329
|
f[m] = p;
|
|
330
330
|
continue;
|
|
331
331
|
}
|
|
332
|
-
const x =
|
|
332
|
+
const x = at(g, p, n, r + 1);
|
|
333
333
|
f[m] = x, x === g && l++;
|
|
334
334
|
}
|
|
335
335
|
return d === u && l === d ? e : f;
|
|
@@ -359,18 +359,18 @@ function As(e) {
|
|
|
359
359
|
function Ts(e) {
|
|
360
360
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function dt(e, t, n) {
|
|
363
363
|
if (e === t) return !0;
|
|
364
364
|
if (typeof e != typeof t) return !1;
|
|
365
365
|
if (Array.isArray(e) && Array.isArray(t)) {
|
|
366
366
|
if (e.length !== t.length) return !1;
|
|
367
|
-
for (let r = 0, s = e.length; r < s; r++) if (!
|
|
367
|
+
for (let r = 0, s = e.length; r < s; r++) if (!dt(e[r], t[r], n)) return !1;
|
|
368
368
|
return !0;
|
|
369
369
|
}
|
|
370
370
|
if (Vn(e) && Vn(t)) {
|
|
371
371
|
const r = n?.ignoreUndefined ?? !0;
|
|
372
372
|
if (n?.partial) {
|
|
373
|
-
for (const i in t) if ((!r || t[i] !== void 0) && !
|
|
373
|
+
for (const i in t) if ((!r || t[i] !== void 0) && !dt(e[i], t[i], n))
|
|
374
374
|
return !1;
|
|
375
375
|
return !0;
|
|
376
376
|
}
|
|
@@ -378,13 +378,13 @@ function ut(e, t, n) {
|
|
|
378
378
|
if (!r) s = Object.keys(e).length;
|
|
379
379
|
else for (const i in e) e[i] !== void 0 && s++;
|
|
380
380
|
let o = 0;
|
|
381
|
-
for (const i in t) if ((!r || t[i] !== void 0) && (o++, o > s || !
|
|
381
|
+
for (const i in t) if ((!r || t[i] !== void 0) && (o++, o > s || !dt(e[i], t[i], n)))
|
|
382
382
|
return !1;
|
|
383
383
|
return s === o;
|
|
384
384
|
}
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Ot(e) {
|
|
388
388
|
let t, n;
|
|
389
389
|
const r = new Promise((s, o) => {
|
|
390
390
|
t = s, n = o;
|
|
@@ -438,7 +438,7 @@ function Hn(e, t) {
|
|
|
438
438
|
return !1;
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function qt(e) {
|
|
442
442
|
if (!e) return {
|
|
443
443
|
path: e,
|
|
444
444
|
handledProtocolRelativeURL: !1
|
|
@@ -467,7 +467,7 @@ function Pc(e, t) {
|
|
|
467
467
|
for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1;
|
|
468
468
|
return !0;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function ze() {
|
|
471
471
|
throw new Error("Invariant failed");
|
|
472
472
|
}
|
|
473
473
|
function sn(e) {
|
|
@@ -504,7 +504,7 @@ function sn(e) {
|
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
|
-
const
|
|
507
|
+
const Ye = 4, da = 5;
|
|
508
508
|
function Ac(e) {
|
|
509
509
|
const t = e.indexOf("{");
|
|
510
510
|
if (t === -1) return null;
|
|
@@ -554,7 +554,7 @@ function sr(e, t, n, r, s, o, i) {
|
|
|
554
554
|
if (y) g = y;
|
|
555
555
|
else {
|
|
556
556
|
s.static ??= /* @__PURE__ */ new Map();
|
|
557
|
-
const v =
|
|
557
|
+
const v = it(n.fullPath ?? n.from);
|
|
558
558
|
v.parent = s, v.depth = o, g = v, s.static.set(b, v);
|
|
559
559
|
}
|
|
560
560
|
} else {
|
|
@@ -562,7 +562,7 @@ function sr(e, t, n, r, s, o, i) {
|
|
|
562
562
|
if (v) g = v;
|
|
563
563
|
else {
|
|
564
564
|
s.staticInsensitive ??= /* @__PURE__ */ new Map();
|
|
565
|
-
const N =
|
|
565
|
+
const N = it(n.fullPath ?? n.from);
|
|
566
566
|
N.parent = s, N.depth = o, g = N, s.staticInsensitive.set(y, N);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -594,13 +594,13 @@ function sr(e, t, n, r, s, o, i) {
|
|
|
594
594
|
s = g;
|
|
595
595
|
}
|
|
596
596
|
if (l && n.children && !n.isRoot && n.id && n.id.charCodeAt(n.id.lastIndexOf("/") + 1) === 95) {
|
|
597
|
-
const m =
|
|
597
|
+
const m = it(n.fullPath ?? n.from);
|
|
598
598
|
m.kind = da, m.parent = s, o++, m.depth = o, s.pathless ??= [], s.pathless.push(m), s = m;
|
|
599
599
|
}
|
|
600
600
|
const h = (n.path || !n.children) && !n.isRoot;
|
|
601
601
|
if (h && d.endsWith("/")) {
|
|
602
|
-
const m =
|
|
603
|
-
m.kind =
|
|
602
|
+
const m = it(n.fullPath ?? n.from);
|
|
603
|
+
m.kind = Ye, m.parent = s, o++, m.depth = o, s.index = m, s = m;
|
|
604
604
|
}
|
|
605
605
|
s.parse = l ?? null, s.priority = n.options?.params?.priority ?? 0, h && !s.route && (s.route = n, s.fullPath = n.fullPath ?? n.from);
|
|
606
606
|
}
|
|
@@ -620,24 +620,24 @@ function gr(e, t) {
|
|
|
620
620
|
}
|
|
621
621
|
return e.prefix && !t.prefix ? -1 : !e.prefix && t.prefix ? 1 : e.suffix && !t.suffix ? -1 : !e.suffix && t.suffix ? 1 : e.caseSensitive && !t.caseSensitive ? -1 : !e.caseSensitive && t.caseSensitive ? 1 : 0;
|
|
622
622
|
}
|
|
623
|
-
function
|
|
624
|
-
if (e.pathless) for (const t of e.pathless)
|
|
625
|
-
if (e.static) for (const t of e.static.values())
|
|
626
|
-
if (e.staticInsensitive) for (const t of e.staticInsensitive.values())
|
|
623
|
+
function Ke(e) {
|
|
624
|
+
if (e.pathless) for (const t of e.pathless) Ke(t);
|
|
625
|
+
if (e.static) for (const t of e.static.values()) Ke(t);
|
|
626
|
+
if (e.staticInsensitive) for (const t of e.staticInsensitive.values()) Ke(t);
|
|
627
627
|
if (e.dynamic?.length) {
|
|
628
628
|
e.dynamic.sort(gr);
|
|
629
|
-
for (const t of e.dynamic)
|
|
629
|
+
for (const t of e.dynamic) Ke(t);
|
|
630
630
|
}
|
|
631
631
|
if (e.optional?.length) {
|
|
632
632
|
e.optional.sort(gr);
|
|
633
|
-
for (const t of e.optional)
|
|
633
|
+
for (const t of e.optional) Ke(t);
|
|
634
634
|
}
|
|
635
635
|
if (e.wildcard?.length) {
|
|
636
636
|
e.wildcard.sort(gr);
|
|
637
|
-
for (const t of e.wildcard)
|
|
637
|
+
for (const t of e.wildcard) Ke(t);
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function it(e) {
|
|
641
641
|
return {
|
|
642
642
|
kind: 0,
|
|
643
643
|
depth: 0,
|
|
@@ -677,9 +677,9 @@ function xr(e, t, n, r, s) {
|
|
|
677
677
|
};
|
|
678
678
|
}
|
|
679
679
|
function Tc(e, t) {
|
|
680
|
-
const n =
|
|
680
|
+
const n = it("/"), r = new Uint16Array(6);
|
|
681
681
|
for (const s of e) sr(!1, r, s, 1, n, 0);
|
|
682
|
-
|
|
682
|
+
Ke(n), t.masksTree = n, t.flatCache = sn(1e3);
|
|
683
683
|
}
|
|
684
684
|
function Oc(e, t) {
|
|
685
685
|
e ||= "/";
|
|
@@ -692,7 +692,7 @@ function Lc(e, t, n, r, s) {
|
|
|
692
692
|
e ||= "/", r ||= "/";
|
|
693
693
|
const o = t ? `case\0${e}` : e;
|
|
694
694
|
let i = s.singleCache.get(o);
|
|
695
|
-
return i || (i =
|
|
695
|
+
return i || (i = it("/"), sr(t, new Uint16Array(6), { from: e }, 1, i, 0), s.singleCache.set(o, i)), as(r, i, n);
|
|
696
696
|
}
|
|
697
697
|
function Ic(e, t, n = !1) {
|
|
698
698
|
const r = n ? e : `nofuzz\0${e}`, s = t.matchCache.get(r);
|
|
@@ -711,19 +711,19 @@ function Mc(e) {
|
|
|
711
711
|
return e === "/" ? e : e.replace(/\/{1,}$/, "");
|
|
712
712
|
}
|
|
713
713
|
function Dc(e, t = !1, n) {
|
|
714
|
-
const r =
|
|
714
|
+
const r = it(e.fullPath), s = new Uint16Array(6), o = {}, i = {};
|
|
715
715
|
let c = 0;
|
|
716
716
|
return sr(t, s, e, 1, r, 0, (d) => {
|
|
717
717
|
if (n?.(d, c), d.id in o) {
|
|
718
718
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Duplicate routes found with id: ${String(d.id)}`);
|
|
719
|
-
|
|
719
|
+
ze();
|
|
720
720
|
}
|
|
721
721
|
if (o[d.id] = d, c !== 0 && d.path) {
|
|
722
722
|
const u = Mc(d.fullPath);
|
|
723
723
|
(!i[u] || d.fullPath.endsWith("/")) && (i[u] = d);
|
|
724
724
|
}
|
|
725
725
|
c++;
|
|
726
|
-
}),
|
|
726
|
+
}), Ke(r), {
|
|
727
727
|
processedTree: {
|
|
728
728
|
segmentTree: r,
|
|
729
729
|
singleCache: sn(1e3),
|
|
@@ -751,7 +751,7 @@ function fa(e, t, n) {
|
|
|
751
751
|
let i = n.extract?.part ?? 0, c = n.extract?.node ?? 0, d = n.extract?.path ?? 0, u = n.extract?.segment ?? 0;
|
|
752
752
|
for (; c < r.length; i++, c++, d++, u++) {
|
|
753
753
|
const f = r[c];
|
|
754
|
-
if (f.kind ===
|
|
754
|
+
if (f.kind === Ye) break;
|
|
755
755
|
if (f.kind === da) {
|
|
756
756
|
u--, i--, d--;
|
|
757
757
|
continue;
|
|
@@ -824,9 +824,9 @@ function Uc(e, t, n, r) {
|
|
|
824
824
|
if (!Is(e, t, f)) continue;
|
|
825
825
|
v = f.rawParams, y = f.extract;
|
|
826
826
|
}
|
|
827
|
-
r && l.route && l.kind !==
|
|
827
|
+
r && l.route && l.kind !== Ye && bn(d, f) && (d = f);
|
|
828
828
|
const N = h === i;
|
|
829
|
-
if (N && (l.route && (!o || l.kind ===
|
|
829
|
+
if (N && (l.route && (!o || l.kind === Ye || l.kind === 2) && bn(u, f) && (u = f), !l.optional && !l.wildcard && !l.index && !l.pathless))
|
|
830
830
|
continue;
|
|
831
831
|
const j = N ? void 0 : t[h];
|
|
832
832
|
let k;
|
|
@@ -998,7 +998,7 @@ function Is(e, t, n) {
|
|
|
998
998
|
return !0;
|
|
999
999
|
}
|
|
1000
1000
|
function bn(e, t) {
|
|
1001
|
-
return e ? t.statics > e.statics || t.statics === e.statics && (t.dynamics > e.dynamics || t.dynamics === e.dynamics && (t.optionals > e.optionals || t.optionals === e.optionals && ((t.node.kind ===
|
|
1001
|
+
return e ? t.statics > e.statics || t.statics === e.statics && (t.dynamics > e.dynamics || t.dynamics === e.dynamics && (t.optionals > e.optionals || t.optionals === e.optionals && ((t.node.kind === Ye) > (e.node.kind === Ye) || t.node.kind === Ye == (e.node.kind === Ye) && t.depth > e.depth))) : !0;
|
|
1002
1002
|
}
|
|
1003
1003
|
function In(e) {
|
|
1004
1004
|
return is(e.filter((t) => t !== void 0).join("/"));
|
|
@@ -1009,12 +1009,12 @@ function is(e) {
|
|
|
1009
1009
|
function ma(e) {
|
|
1010
1010
|
return e === "/" ? e : e.replace(/^\/{1,}/, "");
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Be(e) {
|
|
1013
1013
|
const t = e.length;
|
|
1014
1014
|
return t > 1 && e[t - 1] === "/" ? e.replace(/\/{1,}$/, "") : e;
|
|
1015
1015
|
}
|
|
1016
1016
|
function pa(e) {
|
|
1017
|
-
return
|
|
1017
|
+
return Be(ma(e));
|
|
1018
1018
|
}
|
|
1019
1019
|
function qn(e, t) {
|
|
1020
1020
|
return e?.endsWith("/") && e !== "/" && e !== `${t}/` ? e.slice(0, -1) : e;
|
|
@@ -1171,7 +1171,7 @@ function Yc(e, t) {
|
|
|
1171
1171
|
return o ? `?${o}` : "";
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
|
-
const
|
|
1174
|
+
const ut = "__root__";
|
|
1175
1175
|
function Jc(e) {
|
|
1176
1176
|
if (e.statusCode = e.statusCode || e.code || 307, !e._builtLocation && !e.reloadDocument && typeof e.href == "string") try {
|
|
1177
1177
|
new URL(e.href), e.reloadDocument = !0;
|
|
@@ -1192,7 +1192,7 @@ function we(e) {
|
|
|
1192
1192
|
const Wr = (e) => {
|
|
1193
1193
|
if (!e.rendered)
|
|
1194
1194
|
return e.rendered = !0, e.onReady?.();
|
|
1195
|
-
}, Xc = (e) => e.stores.matchesId.get().some((t) => e.stores.matchStores.get(t)?.get()._forcePending), or = (e, t) => !!(e.preload && !e.router.stores.matchStores.has(t)),
|
|
1195
|
+
}, Xc = (e) => e.stores.matchesId.get().some((t) => e.stores.matchStores.get(t)?.get()._forcePending), or = (e, t) => !!(e.preload && !e.router.stores.matchStores.has(t)), ft = (e, t, n = !0) => {
|
|
1196
1196
|
const r = { ...e.router.options.context ?? {} }, s = n ? t : t - 1;
|
|
1197
1197
|
for (let o = 0; o <= s; o++) {
|
|
1198
1198
|
const i = e.matches[o];
|
|
@@ -1211,12 +1211,12 @@ const Wr = (e) => {
|
|
|
1211
1211
|
if (e.router.looseRoutesById[c.routeId].options.notFoundComponent) return i;
|
|
1212
1212
|
}
|
|
1213
1213
|
return n ? o : s;
|
|
1214
|
-
},
|
|
1214
|
+
}, Je = (e, t, n) => {
|
|
1215
1215
|
if (!(!we(n) && !xe(n)))
|
|
1216
1216
|
throw we(n) && n.redirectHandled && !n.options.reloadDocument || (t && (t._nonReactive.beforeLoadPromise?.resolve(), t._nonReactive.loaderPromise?.resolve(), t._nonReactive.beforeLoadPromise = void 0, t._nonReactive.loaderPromise = void 0, t._nonReactive.error = n, e.updateMatch(t.id, (r) => ({
|
|
1217
1217
|
...r,
|
|
1218
1218
|
status: we(n) ? "redirected" : xe(n) ? "notFound" : r.status === "pending" ? "success" : r.status,
|
|
1219
|
-
context:
|
|
1219
|
+
context: ft(e, t.index),
|
|
1220
1220
|
isFetching: !1,
|
|
1221
1221
|
error: n
|
|
1222
1222
|
})), xe(n) && !n.routeId && (n.routeId = t.routeId), t._nonReactive.loadPromise?.resolve()), we(n) && (e.rendered = !0, n.options._fromLocation = e.location, n.redirectHandled = !0, n = e.router.resolveRedirect(n))), n;
|
|
@@ -1224,19 +1224,19 @@ const Wr = (e) => {
|
|
|
1224
1224
|
const n = e.router.getMatch(t);
|
|
1225
1225
|
return !!(!n || n._nonReactive.dehydrated);
|
|
1226
1226
|
}, Us = (e, t, n) => {
|
|
1227
|
-
const r =
|
|
1227
|
+
const r = ft(e, n);
|
|
1228
1228
|
e.updateMatch(t, (s) => ({
|
|
1229
1229
|
...s,
|
|
1230
1230
|
context: r
|
|
1231
1231
|
}));
|
|
1232
|
-
},
|
|
1232
|
+
}, Gt = (e, t, n) => {
|
|
1233
1233
|
const { id: r, routeId: s } = e.matches[t], o = e.router.looseRoutesById[s];
|
|
1234
1234
|
if (n instanceof Promise) throw n;
|
|
1235
|
-
e.firstBadMatchIndex ??= t,
|
|
1235
|
+
e.firstBadMatchIndex ??= t, Je(e, e.router.getMatch(r), n);
|
|
1236
1236
|
try {
|
|
1237
1237
|
o.options.onError?.(n);
|
|
1238
1238
|
} catch (i) {
|
|
1239
|
-
n = i,
|
|
1239
|
+
n = i, Je(e, e.router.getMatch(r), n);
|
|
1240
1240
|
}
|
|
1241
1241
|
e.updateMatch(r, (i) => (i._nonReactive.beforeLoadPromise?.resolve(), i._nonReactive.beforeLoadPromise = void 0, i._nonReactive.loadPromise?.resolve(), {
|
|
1242
1242
|
...i,
|
|
@@ -1261,17 +1261,17 @@ const Wr = (e) => {
|
|
|
1261
1261
|
xa(e, t, n, r);
|
|
1262
1262
|
const s = () => {
|
|
1263
1263
|
const o = e.router.getMatch(t);
|
|
1264
|
-
o.preload && (o.status === "redirected" || o.status === "notFound") &&
|
|
1264
|
+
o.preload && (o.status === "redirected" || o.status === "notFound") && Je(e, o, o.error);
|
|
1265
1265
|
};
|
|
1266
1266
|
return r._nonReactive.beforeLoadPromise ? r._nonReactive.beforeLoadPromise.then(s) : s();
|
|
1267
1267
|
}, Qc = (e, t, n, r) => {
|
|
1268
1268
|
const s = e.router.getMatch(t);
|
|
1269
1269
|
let o = s._nonReactive.loadPromise;
|
|
1270
|
-
s._nonReactive.loadPromise =
|
|
1270
|
+
s._nonReactive.loadPromise = Ot(() => {
|
|
1271
1271
|
o?.resolve(), o = void 0;
|
|
1272
1272
|
});
|
|
1273
1273
|
const { paramsError: i, searchError: c } = s;
|
|
1274
|
-
i &&
|
|
1274
|
+
i && Gt(e, n, i), c && Gt(e, n, c), xa(e, t, r, s);
|
|
1275
1275
|
const d = new AbortController();
|
|
1276
1276
|
let u = !1;
|
|
1277
1277
|
const f = () => {
|
|
@@ -1293,9 +1293,9 @@ const Wr = (e) => {
|
|
|
1293
1293
|
});
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
s._nonReactive.beforeLoadPromise =
|
|
1296
|
+
s._nonReactive.beforeLoadPromise = Ot();
|
|
1297
1297
|
const h = {
|
|
1298
|
-
...
|
|
1298
|
+
...ft(e, n, !1),
|
|
1299
1299
|
...s.__routeContext
|
|
1300
1300
|
}, { search: m, params: g, cause: p } = s, x = or(e, t), b = {
|
|
1301
1301
|
search: m,
|
|
@@ -1320,7 +1320,7 @@ const Wr = (e) => {
|
|
|
1320
1320
|
});
|
|
1321
1321
|
return;
|
|
1322
1322
|
}
|
|
1323
|
-
(we(N) || xe(N)) && (f(),
|
|
1323
|
+
(we(N) || xe(N)) && (f(), Gt(e, n, N)), e.router.batch(() => {
|
|
1324
1324
|
f(), e.updateMatch(t, (j) => ({
|
|
1325
1325
|
...j,
|
|
1326
1326
|
__beforeLoadContext: N
|
|
@@ -1331,10 +1331,10 @@ const Wr = (e) => {
|
|
|
1331
1331
|
try {
|
|
1332
1332
|
if (v = r.options.beforeLoad(b), rn(v))
|
|
1333
1333
|
return f(), v.catch((N) => {
|
|
1334
|
-
|
|
1334
|
+
Gt(e, n, N);
|
|
1335
1335
|
}).then(y);
|
|
1336
1336
|
} catch (N) {
|
|
1337
|
-
f(),
|
|
1337
|
+
f(), Gt(e, n, N);
|
|
1338
1338
|
}
|
|
1339
1339
|
y(v);
|
|
1340
1340
|
}, el = (e, t) => {
|
|
@@ -1367,7 +1367,7 @@ const Wr = (e) => {
|
|
|
1367
1367
|
styles: o?.styles
|
|
1368
1368
|
}));
|
|
1369
1369
|
}, ba = (e, t, n, r, s) => {
|
|
1370
|
-
const o = t[r - 1], { params: i, loaderDeps: c, abortController: d, cause: u } = e.router.getMatch(n), f =
|
|
1370
|
+
const o = t[r - 1], { params: i, loaderDeps: c, abortController: d, cause: u } = e.router.getMatch(n), f = ft(e, r), l = or(e, n);
|
|
1371
1371
|
return {
|
|
1372
1372
|
params: i,
|
|
1373
1373
|
deps: c,
|
|
@@ -1395,7 +1395,7 @@ const Wr = (e) => {
|
|
|
1395
1395
|
isFetching: "loader"
|
|
1396
1396
|
})), c) {
|
|
1397
1397
|
const l = u ? await d : d;
|
|
1398
|
-
|
|
1398
|
+
Je(e, e.router.getMatch(n), l), l !== void 0 && e.updateMatch(n, (h) => ({
|
|
1399
1399
|
...h,
|
|
1400
1400
|
loaderData: l
|
|
1401
1401
|
}));
|
|
@@ -1405,7 +1405,7 @@ const Wr = (e) => {
|
|
|
1405
1405
|
f && await f, s._componentsPromise && await s._componentsPromise, e.updateMatch(n, (l) => ({
|
|
1406
1406
|
...l,
|
|
1407
1407
|
error: void 0,
|
|
1408
|
-
context:
|
|
1408
|
+
context: ft(e, r),
|
|
1409
1409
|
status: "success",
|
|
1410
1410
|
isFetching: !1,
|
|
1411
1411
|
updatedAt: Date.now()
|
|
@@ -1421,28 +1421,28 @@ const Wr = (e) => {
|
|
|
1421
1421
|
...u,
|
|
1422
1422
|
status: u.status === "pending" ? "success" : u.status,
|
|
1423
1423
|
isFetching: !1,
|
|
1424
|
-
context:
|
|
1424
|
+
context: ft(e, r)
|
|
1425
1425
|
}));
|
|
1426
1426
|
return;
|
|
1427
1427
|
}
|
|
1428
1428
|
const d = o._nonReactive.minPendingPromise;
|
|
1429
|
-
d && await d, xe(i) && await s.options.notFoundComponent?.preload?.(),
|
|
1429
|
+
d && await d, xe(i) && await s.options.notFoundComponent?.preload?.(), Je(e, e.router.getMatch(n), i);
|
|
1430
1430
|
try {
|
|
1431
1431
|
s.options.onError?.(i);
|
|
1432
1432
|
} catch (u) {
|
|
1433
|
-
c = u,
|
|
1433
|
+
c = u, Je(e, e.router.getMatch(n), u);
|
|
1434
1434
|
}
|
|
1435
1435
|
!we(c) && !xe(c) && await on(s, ["errorComponent"]), e.updateMatch(n, (u) => ({
|
|
1436
1436
|
...u,
|
|
1437
1437
|
error: c,
|
|
1438
|
-
context:
|
|
1438
|
+
context: ft(e, r),
|
|
1439
1439
|
status: "error",
|
|
1440
1440
|
isFetching: !1
|
|
1441
1441
|
}));
|
|
1442
1442
|
}
|
|
1443
1443
|
} catch (o) {
|
|
1444
1444
|
const i = e.router.getMatch(n);
|
|
1445
|
-
i && (i._nonReactive.loaderPromise = void 0),
|
|
1445
|
+
i && (i._nonReactive.loaderPromise = void 0), Je(e, i, o);
|
|
1446
1446
|
}
|
|
1447
1447
|
}, nl = async (e, t, n) => {
|
|
1448
1448
|
async function r(m, g, p, x, b) {
|
|
@@ -1469,10 +1469,10 @@ const Wr = (e) => {
|
|
|
1469
1469
|
if (m.status === "success" && !e.sync && !m.preload && f) return m;
|
|
1470
1470
|
await m._nonReactive.loaderPromise;
|
|
1471
1471
|
const b = e.router.getMatch(s), y = b._nonReactive.error || b.error;
|
|
1472
|
-
y &&
|
|
1472
|
+
y && Je(e, b, y), b.status === "pending" && await r(x, m, p, b, d);
|
|
1473
1473
|
} else {
|
|
1474
1474
|
const b = x && !e.router.stores.matchStores.has(s), y = e.router.getMatch(s);
|
|
1475
|
-
y._nonReactive.loaderPromise =
|
|
1475
|
+
y._nonReactive.loaderPromise = Ot(), b !== y.preload && e.updateMatch(s, (v) => ({
|
|
1476
1476
|
...v,
|
|
1477
1477
|
preload: b
|
|
1478
1478
|
})), await r(x, m, p, y, d);
|
|
@@ -1525,7 +1525,7 @@ async function Bs(e) {
|
|
|
1525
1525
|
const h = Fs(t, u);
|
|
1526
1526
|
if (h === void 0) {
|
|
1527
1527
|
if (process.env.NODE_ENV !== "production") throw new Error("Invariant failed: Could not find match for notFound boundary");
|
|
1528
|
-
|
|
1528
|
+
ze();
|
|
1529
1529
|
}
|
|
1530
1530
|
const m = t.matches[h], g = t.router.looseRoutesById[m.routeId], p = t.router.options?.defaultNotFoundComponent;
|
|
1531
1531
|
!g.options.notFoundComponent && p && (g.options.notFoundComponent = p), u.routeId = m.routeId;
|
|
@@ -1736,7 +1736,7 @@ function wr(e, t, n, r, s) {
|
|
|
1736
1736
|
Pc(n.get(), o) || n.set(o);
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
|
-
var
|
|
1739
|
+
var Xe = "__TSR_index", Ws = "popstate", Vs = "beforeunload";
|
|
1740
1740
|
function al(e) {
|
|
1741
1741
|
let t = e.getLocation();
|
|
1742
1742
|
const n = /* @__PURE__ */ new Set(), r = (i) => {
|
|
@@ -1777,7 +1777,7 @@ function al(e) {
|
|
|
1777
1777
|
n.delete(i);
|
|
1778
1778
|
}),
|
|
1779
1779
|
push: (i, c, d) => {
|
|
1780
|
-
const u = t.state[
|
|
1780
|
+
const u = t.state[Xe];
|
|
1781
1781
|
c = Hs(u + 1, c), o({
|
|
1782
1782
|
task: () => {
|
|
1783
1783
|
e.pushState(i, c), r({ type: "PUSH" });
|
|
@@ -1789,7 +1789,7 @@ function al(e) {
|
|
|
1789
1789
|
});
|
|
1790
1790
|
},
|
|
1791
1791
|
replace: (i, c, d) => {
|
|
1792
|
-
const u = t.state[
|
|
1792
|
+
const u = t.state[Xe];
|
|
1793
1793
|
c = Hs(u, c), o({
|
|
1794
1794
|
task: () => {
|
|
1795
1795
|
e.replaceState(i, c), r({ type: "REPLACE" });
|
|
@@ -1830,7 +1830,7 @@ function al(e) {
|
|
|
1830
1830
|
type: "FORWARD"
|
|
1831
1831
|
});
|
|
1832
1832
|
},
|
|
1833
|
-
canGoBack: () => t.state[
|
|
1833
|
+
canGoBack: () => t.state[Xe] !== 0,
|
|
1834
1834
|
createHref: (i) => e.createHref(i),
|
|
1835
1835
|
block: (i) => {
|
|
1836
1836
|
if (!e.setBlockers) return () => {
|
|
@@ -1853,7 +1853,7 @@ function Hs(e, t) {
|
|
|
1853
1853
|
...t,
|
|
1854
1854
|
key: n,
|
|
1855
1855
|
__TSR_key: n,
|
|
1856
|
-
[
|
|
1856
|
+
[Xe]: e
|
|
1857
1857
|
};
|
|
1858
1858
|
}
|
|
1859
1859
|
function il(e) {
|
|
@@ -1863,7 +1863,7 @@ function il(e) {
|
|
|
1863
1863
|
if (!t.history.state?.__TSR_key && !t.history.state?.key) {
|
|
1864
1864
|
const R = cs();
|
|
1865
1865
|
t.history.replaceState({
|
|
1866
|
-
[
|
|
1866
|
+
[Xe]: 0,
|
|
1867
1867
|
key: R,
|
|
1868
1868
|
__TSR_key: R
|
|
1869
1869
|
}, "");
|
|
@@ -1887,7 +1887,7 @@ function il(e) {
|
|
|
1887
1887
|
h = !1;
|
|
1888
1888
|
return;
|
|
1889
1889
|
}
|
|
1890
|
-
const R = d(), _ = R.state[
|
|
1890
|
+
const R = d(), _ = R.state[Xe] - u.state[Xe], O = _ === 1, P = _ === -1, M = !O && !P || l;
|
|
1891
1891
|
l = !1;
|
|
1892
1892
|
const A = M ? "GO" : P ? "BACK" : "FORWARD", $ = M ? {
|
|
1893
1893
|
type: "GO",
|
|
@@ -1972,7 +1972,7 @@ function Gn(e, t) {
|
|
|
1972
1972
|
hash: r > -1 ? n.substring(r) : "",
|
|
1973
1973
|
search: s > -1 ? n.slice(s, r === -1 ? void 0 : r) : "",
|
|
1974
1974
|
state: t || {
|
|
1975
|
-
[
|
|
1975
|
+
[Xe]: 0,
|
|
1976
1976
|
key: o,
|
|
1977
1977
|
__TSR_key: o
|
|
1978
1978
|
}
|
|
@@ -1981,7 +1981,7 @@ function Gn(e, t) {
|
|
|
1981
1981
|
function cs() {
|
|
1982
1982
|
return (Math.random() + 1).toString(36).substring(7);
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1984
|
+
function At(e, t) {
|
|
1985
1985
|
const n = t, r = e;
|
|
1986
1986
|
return {
|
|
1987
1987
|
fromLocation: n,
|
|
@@ -2046,24 +2046,24 @@ var ll = class {
|
|
|
2046
2046
|
return {
|
|
2047
2047
|
href: d + y + f,
|
|
2048
2048
|
publicHref: d + y + f,
|
|
2049
|
-
pathname:
|
|
2049
|
+
pathname: qt(d).path,
|
|
2050
2050
|
external: !1,
|
|
2051
2051
|
searchStr: y,
|
|
2052
|
-
search:
|
|
2053
|
-
hash:
|
|
2054
|
-
state:
|
|
2052
|
+
search: nt(r?.search, b),
|
|
2053
|
+
hash: qt(f.slice(1)).path,
|
|
2054
|
+
state: at(r?.state, h)
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
2057
|
const m = new URL(l, this.origin), g = Vr(this.rewrite, m), p = this.options.parseSearch(g.search), x = this.options.stringifySearch(p);
|
|
2058
2058
|
return g.search = x, {
|
|
2059
2059
|
href: g.href.replace(g.origin, ""),
|
|
2060
2060
|
publicHref: l,
|
|
2061
|
-
pathname:
|
|
2061
|
+
pathname: qt(g.pathname).path,
|
|
2062
2062
|
external: !!this.rewrite && g.origin !== this.origin,
|
|
2063
2063
|
searchStr: x,
|
|
2064
|
-
search:
|
|
2065
|
-
hash:
|
|
2066
|
-
state:
|
|
2064
|
+
search: nt(r?.search, p),
|
|
2065
|
+
hash: qt(g.hash.slice(1)).path,
|
|
2066
|
+
state: at(r?.state, h)
|
|
2067
2067
|
};
|
|
2068
2068
|
}, o = s(n), { __tempLocation: i, __tempKey: c } = o.state;
|
|
2069
2069
|
if (i && (!c || c === this.tempLocationKey)) {
|
|
@@ -2104,7 +2104,7 @@ var ll = class {
|
|
|
2104
2104
|
const P = this.getMatchedRoutes(o.from).matchedRoutes, M = Os(c.matchedRoutes, ($) => Gs($.fullPath, o.from)), A = Os(P, ($) => Gs($.fullPath, c.fullPath));
|
|
2105
2105
|
!M && !A && console.warn(`Could not find match for from: ${o.from}`);
|
|
2106
2106
|
}
|
|
2107
|
-
const d = o.unsafeRelative === "path" ? i.pathname : o.from ?? c.fullPath, u = o.to ? `${o.to}` : void 0, f = c.search, l = Object.assign(/* @__PURE__ */ Object.create(null), c.params), h = u?.charCodeAt(0) === 47 ? "/" : this.resolvePathWithBase(d, "."), m = u ? this.resolvePathWithBase(h, u) : h, g = o.params === !1 || o.params === null ? /* @__PURE__ */ Object.create(null) : (o.params ?? !0) === !0 ? l : Object.assign(l,
|
|
2107
|
+
const d = o.unsafeRelative === "path" ? i.pathname : o.from ?? c.fullPath, u = o.to ? `${o.to}` : void 0, f = c.search, l = Object.assign(/* @__PURE__ */ Object.create(null), c.params), h = u?.charCodeAt(0) === 47 ? "/" : this.resolvePathWithBase(d, "."), m = u ? this.resolvePathWithBase(h, u) : h, g = o.params === !1 || o.params === null ? /* @__PURE__ */ Object.create(null) : (o.params ?? !0) === !0 ? l : Object.assign(l, ot(o.params, l)), p = this.routesByPath[Be(m)];
|
|
2108
2108
|
let x;
|
|
2109
2109
|
if (p) x = this.getRouteBranch(p);
|
|
2110
2110
|
else if (m.includes("$")) x = [];
|
|
@@ -2119,7 +2119,7 @@ var ll = class {
|
|
|
2119
2119
|
} catch {
|
|
2120
2120
|
}
|
|
2121
2121
|
}
|
|
2122
|
-
const b = n.leaveParams ? m :
|
|
2122
|
+
const b = n.leaveParams ? m : qt(Ms({
|
|
2123
2123
|
path: m,
|
|
2124
2124
|
params: g,
|
|
2125
2125
|
decoder: this.pathParamsDecoder,
|
|
@@ -2148,10 +2148,10 @@ var ll = class {
|
|
|
2148
2148
|
dest: o,
|
|
2149
2149
|
destRoutes: x,
|
|
2150
2150
|
_includeValidateSearch: n._includeValidateSearch
|
|
2151
|
-
}), y =
|
|
2152
|
-
const v = this.options.stringifySearch(y), N = o.hash === !0 ? i.hash : o.hash ?
|
|
2153
|
-
let k = o.state === !0 ? i.state : o.state ?
|
|
2154
|
-
k =
|
|
2151
|
+
}), y = nt(f, y);
|
|
2152
|
+
const v = this.options.stringifySearch(y), N = o.hash === !0 ? i.hash : o.hash ? ot(o.hash, i.hash) : void 0, j = N ? `#${N}` : "";
|
|
2153
|
+
let k = o.state === !0 ? i.state : o.state ? ot(o.state, i.state) : {};
|
|
2154
|
+
k = at(i.state, k);
|
|
2155
2155
|
const C = `${b}${v}${j}`;
|
|
2156
2156
|
let R, _, O = !1;
|
|
2157
2157
|
if (this.rewrite) {
|
|
@@ -2179,7 +2179,7 @@ var ll = class {
|
|
|
2179
2179
|
const f = Oc(c.pathname, this.processedTree);
|
|
2180
2180
|
if (f) {
|
|
2181
2181
|
Object.assign(u, f.rawParams);
|
|
2182
|
-
const { from: l, params: h, ...m } = f.route, g = h === !1 || h === null ? /* @__PURE__ */ Object.create(null) : (h ?? !0) === !0 ? u : Object.assign(u,
|
|
2182
|
+
const { from: l, params: h, ...m } = f.route, g = h === !1 || h === null ? /* @__PURE__ */ Object.create(null) : (h ?? !0) === !0 ? u : Object.assign(u, ot(h, u));
|
|
2183
2183
|
i = {
|
|
2184
2184
|
from: n.from,
|
|
2185
2185
|
...m,
|
|
@@ -2206,13 +2206,13 @@ var ll = class {
|
|
|
2206
2206
|
u.forEach((l) => {
|
|
2207
2207
|
s.state[l] = this.latestLocation.state[l];
|
|
2208
2208
|
});
|
|
2209
|
-
const f =
|
|
2209
|
+
const f = dt(s.state, this.latestLocation.state);
|
|
2210
2210
|
return u.forEach((l) => {
|
|
2211
2211
|
delete s.state[l];
|
|
2212
2212
|
}), f;
|
|
2213
|
-
}, c =
|
|
2213
|
+
}, c = Be(this.latestLocation.href) === Be(s.href);
|
|
2214
2214
|
let d = this.commitLocationPromise;
|
|
2215
|
-
if (this.commitLocationPromise =
|
|
2215
|
+
if (this.commitLocationPromise = Ot(() => {
|
|
2216
2216
|
d?.resolve(), d = void 0;
|
|
2217
2217
|
}), c && i()) this.load();
|
|
2218
2218
|
else {
|
|
@@ -2309,7 +2309,7 @@ var ll = class {
|
|
|
2309
2309
|
this.startTransition(async () => {
|
|
2310
2310
|
try {
|
|
2311
2311
|
this.beforeLoad(), r ? Hr.set(this.latestLocation, r) : Hr.delete(this.latestLocation);
|
|
2312
|
-
const f = this.latestLocation, l =
|
|
2312
|
+
const f = this.latestLocation, l = At(f, this.stores.resolvedLocation.get());
|
|
2313
2313
|
this.stores.redirect.get() || this.emit({
|
|
2314
2314
|
type: "onBeforeNavigate",
|
|
2315
2315
|
...l
|
|
@@ -2368,7 +2368,7 @@ var ll = class {
|
|
|
2368
2368
|
if (this.shouldViewTransition = void 0, r && typeof document < "u" && "startViewTransition" in document && typeof document.startViewTransition == "function") {
|
|
2369
2369
|
let s;
|
|
2370
2370
|
if (typeof r == "object" && this.isViewTransitionTypesSupported) {
|
|
2371
|
-
const o = this.latestLocation, i = this.stores.resolvedLocation.get(), c = typeof r.types == "function" ? r.types(
|
|
2371
|
+
const o = this.latestLocation, i = this.stores.resolvedLocation.get(), c = typeof r.types == "function" ? r.types(At(o, i)) : r.types;
|
|
2372
2372
|
if (c === !1) {
|
|
2373
2373
|
n();
|
|
2374
2374
|
return;
|
|
@@ -2476,7 +2476,7 @@ var ll = class {
|
|
|
2476
2476
|
}, o = this.buildLocation(s);
|
|
2477
2477
|
if (r?.pending && this.stores.status.get() !== "pending") return !1;
|
|
2478
2478
|
const i = (r?.pending === void 0 ? !this.stores.isLoading.get() : r.pending) ? this.latestLocation : this.stores.resolvedLocation.get() || this.stores.location.get(), c = Lc(o.pathname, r?.caseSensitive ?? !1, r?.fuzzy ?? !1, i.pathname, this.processedTree);
|
|
2479
|
-
return !c || n.params && !
|
|
2479
|
+
return !c || n.params && !dt(c.rawParams, n.params, { partial: !0 }) ? !1 : r?.includeSearch ?? !0 ? dt(i.search, o.search, { partial: !0 }) ? c.rawParams : !1 : c.rawParams;
|
|
2480
2480
|
}, this.hasNotFoundMatch = () => this.stores.matches.get().some((n) => n.status === "notFound" || n.globalNotFound), this.getStoreConfig = t, this.update({
|
|
2481
2481
|
defaultPreloadDelay: 50,
|
|
2482
2482
|
defaultPendingMs: 1e3,
|
|
@@ -2517,7 +2517,7 @@ var ll = class {
|
|
|
2517
2517
|
matchRoutesInternal(e, t) {
|
|
2518
2518
|
const n = this.getMatchedRoutes(e.pathname), { foundRoute: r, routeParams: s } = n;
|
|
2519
2519
|
let { matchedRoutes: o } = n, i = !1;
|
|
2520
|
-
(r ? r.path !== "/" && s["**"] :
|
|
2520
|
+
(r ? r.path !== "/" && s["**"] : Be(e.pathname)) && (this.options.notFoundRoute ? o = [...o, this.options.notFoundRoute] : i = !0);
|
|
2521
2521
|
const c = i ? pl(this.options.notFoundMode, o) : void 0, d = new Array(o.length), u = /* @__PURE__ */ new Map();
|
|
2522
2522
|
for (const f of this.stores.matchStores.values()) f.routeId && u.set(f.routeId, f.get());
|
|
2523
2523
|
for (let f = 0; f < o.length; f++) {
|
|
@@ -2560,7 +2560,7 @@ var ll = class {
|
|
|
2560
2560
|
cause: _,
|
|
2561
2561
|
params: k?.params ?? s,
|
|
2562
2562
|
_strictParams: C,
|
|
2563
|
-
search:
|
|
2563
|
+
search: nt(k ? k.search : j.search, m),
|
|
2564
2564
|
_strictSearch: g
|
|
2565
2565
|
};
|
|
2566
2566
|
else {
|
|
@@ -2574,7 +2574,7 @@ var ll = class {
|
|
|
2574
2574
|
_strictParams: C,
|
|
2575
2575
|
pathname: y,
|
|
2576
2576
|
updatedAt: Date.now(),
|
|
2577
|
-
search: k ?
|
|
2577
|
+
search: k ? nt(k.search, m) : m,
|
|
2578
2578
|
_strictSearch: g,
|
|
2579
2579
|
searchError: void 0,
|
|
2580
2580
|
status: M,
|
|
@@ -2582,13 +2582,13 @@ var ll = class {
|
|
|
2582
2582
|
error: void 0,
|
|
2583
2583
|
paramsError: R,
|
|
2584
2584
|
__routeContext: void 0,
|
|
2585
|
-
_nonReactive: { loadPromise:
|
|
2585
|
+
_nonReactive: { loadPromise: Ot() },
|
|
2586
2586
|
__beforeLoadContext: void 0,
|
|
2587
2587
|
context: {},
|
|
2588
2588
|
abortController: new AbortController(),
|
|
2589
2589
|
fetchCount: 0,
|
|
2590
2590
|
cause: _,
|
|
2591
|
-
loaderDeps: k ?
|
|
2591
|
+
loaderDeps: k ? at(k.loaderDeps, x) : x,
|
|
2592
2592
|
invalid: !1,
|
|
2593
2593
|
preload: !1,
|
|
2594
2594
|
links: void 0,
|
|
@@ -2609,7 +2609,7 @@ var ll = class {
|
|
|
2609
2609
|
}
|
|
2610
2610
|
for (let f = 0; f < d.length; f++) {
|
|
2611
2611
|
const l = d[f], h = this.looseRoutesById[l.routeId], m = this.getMatch(l.id), g = u.get(l.routeId);
|
|
2612
|
-
if (l.params = g ?
|
|
2612
|
+
if (l.params = g ? nt(g.params, s) : s, !m) {
|
|
2613
2613
|
const p = d[f - 1], x = this.getParentContext(p);
|
|
2614
2614
|
if (h.options.context) {
|
|
2615
2615
|
const b = {
|
|
@@ -2701,7 +2701,7 @@ function Dn(e, t) {
|
|
|
2701
2701
|
return "parse" in e ? e.parse(t) : typeof e == "function" ? e(t) : {};
|
|
2702
2702
|
}
|
|
2703
2703
|
function fl({ pathname: e, routesById: t, processedTree: n }) {
|
|
2704
|
-
const r = /* @__PURE__ */ Object.create(null), s =
|
|
2704
|
+
const r = /* @__PURE__ */ Object.create(null), s = Be(e);
|
|
2705
2705
|
let o;
|
|
2706
2706
|
const i = Ic(s, n, !0);
|
|
2707
2707
|
return i && (o = i.route, Object.assign(r, i.rawParams)), {
|
|
@@ -2750,7 +2750,7 @@ function ml(e) {
|
|
|
2750
2750
|
if (o >= r.length) {
|
|
2751
2751
|
if (!t.search) return {};
|
|
2752
2752
|
if (t.search === !0) return i;
|
|
2753
|
-
const u =
|
|
2753
|
+
const u = ot(t.search, i);
|
|
2754
2754
|
return c && (c.explicit = u), u;
|
|
2755
2755
|
}
|
|
2756
2756
|
const d = (u, f) => {
|
|
@@ -2778,7 +2778,7 @@ function pl(e, t) {
|
|
|
2778
2778
|
const r = t[n];
|
|
2779
2779
|
if (r.children) return r.id;
|
|
2780
2780
|
}
|
|
2781
|
-
return
|
|
2781
|
+
return ut;
|
|
2782
2782
|
}
|
|
2783
2783
|
function Ks(e, t) {
|
|
2784
2784
|
const n = e.options.params?.parse ?? e.options.parseParams;
|
|
@@ -2805,12 +2805,12 @@ function bl() {
|
|
|
2805
2805
|
}
|
|
2806
2806
|
function yl() {
|
|
2807
2807
|
try {
|
|
2808
|
-
wa?.setItem(xl, JSON.stringify(
|
|
2808
|
+
wa?.setItem(xl, JSON.stringify(kt));
|
|
2809
2809
|
} catch {
|
|
2810
2810
|
process.env.NODE_ENV !== "production" && console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.");
|
|
2811
2811
|
}
|
|
2812
2812
|
}
|
|
2813
|
-
const
|
|
2813
|
+
const kt = /* @__PURE__ */ bl(), Ys = "data-scroll-restoration-id", vl = (e) => e.state.__TSR_key || e.href;
|
|
2814
2814
|
function wl(e) {
|
|
2815
2815
|
const t = e.getAttribute(Ys);
|
|
2816
2816
|
if (t) return `[${Ys}="${t}"]`;
|
|
@@ -2824,7 +2824,7 @@ function wl(e) {
|
|
|
2824
2824
|
return n;
|
|
2825
2825
|
}
|
|
2826
2826
|
let yn = !1;
|
|
2827
|
-
const
|
|
2827
|
+
const _t = "window";
|
|
2828
2828
|
function qr(e) {
|
|
2829
2829
|
try {
|
|
2830
2830
|
return typeof e == "function" ? e() : document.querySelector(e);
|
|
@@ -2834,7 +2834,7 @@ function qr(e) {
|
|
|
2834
2834
|
function Js(e) {
|
|
2835
2835
|
const t = [];
|
|
2836
2836
|
for (const n of e) {
|
|
2837
|
-
if (n ===
|
|
2837
|
+
if (n === _t) continue;
|
|
2838
2838
|
const r = qr(n);
|
|
2839
2839
|
r && t.push(r);
|
|
2840
2840
|
}
|
|
@@ -2848,15 +2848,15 @@ function Sl(e, t) {
|
|
|
2848
2848
|
h.scrollX = f, h.scrollY = l, o.set(u, h);
|
|
2849
2849
|
}, c = (u) => {
|
|
2850
2850
|
if (!(yn || !r.restoring))
|
|
2851
|
-
if (u.target === document) i(
|
|
2851
|
+
if (u.target === document) i(_t, scrollX, scrollY);
|
|
2852
2852
|
else {
|
|
2853
2853
|
const f = u.target;
|
|
2854
2854
|
i(f, f.scrollLeft, f.scrollTop);
|
|
2855
2855
|
}
|
|
2856
2856
|
}, d = (u) => {
|
|
2857
2857
|
if (!r.restoring) return;
|
|
2858
|
-
const f =
|
|
2859
|
-
for (const [l, h] of o) l ===
|
|
2858
|
+
const f = kt[u] ||= {};
|
|
2859
|
+
for (const [l, h] of o) l === _t ? f[_t] = h : l.isConnected && (f[wl(l)] = h);
|
|
2860
2860
|
};
|
|
2861
2861
|
n && !r.restoration && (r.restoration = !0, yn = !1, history.scrollRestoration = "manual", document.addEventListener("scroll", c, !0), e.subscribe("onBeforeLoad", (u) => {
|
|
2862
2862
|
u.fromLocation && d(s(u.fromLocation)), o.clear();
|
|
@@ -2868,18 +2868,18 @@ function Sl(e, t) {
|
|
|
2868
2868
|
if (o.clear(), h || (r.next = !0), typeof e.options.scrollRestoration == "function" && !e.options.scrollRestoration({ location: e.latestLocation })) return;
|
|
2869
2869
|
const g = s(u.toLocation), p = u.fromLocation && s(u.fromLocation);
|
|
2870
2870
|
if (r.restoring && p && p !== g) {
|
|
2871
|
-
const x =
|
|
2871
|
+
const x = kt[p];
|
|
2872
2872
|
if (x) {
|
|
2873
|
-
let b =
|
|
2873
|
+
let b = kt[g];
|
|
2874
2874
|
for (const y in x) {
|
|
2875
|
-
if (y ===
|
|
2875
|
+
if (y === _t) {
|
|
2876
2876
|
if (h) continue;
|
|
2877
2877
|
} else {
|
|
2878
2878
|
const v = qr(y);
|
|
2879
2879
|
if (!v || h && l && (m ??= Js(l), m.includes(v)))
|
|
2880
2880
|
continue;
|
|
2881
2881
|
}
|
|
2882
|
-
b || (b =
|
|
2882
|
+
b || (b = kt[g] = {}), b[y] ??= x[y];
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
@@ -2888,10 +2888,10 @@ function Sl(e, t) {
|
|
|
2888
2888
|
const x = u.toLocation.hash, b = u.toLocation.state.__hashScrollIntoViewOptions ?? !0;
|
|
2889
2889
|
let y = !1;
|
|
2890
2890
|
if (h) {
|
|
2891
|
-
const v = Hr.get(u.toLocation), N = x && b && (v === "PUSH" || v === "REPLACE"), j = r.restoring ?
|
|
2891
|
+
const v = Hr.get(u.toLocation), N = x && b && (v === "PUSH" || v === "REPLACE"), j = r.restoring ? kt[g] : void 0;
|
|
2892
2892
|
if (j) for (const k in j) {
|
|
2893
2893
|
const { scrollX: C, scrollY: R } = j[k];
|
|
2894
|
-
if (k ===
|
|
2894
|
+
if (k === _t) {
|
|
2895
2895
|
if (N) continue;
|
|
2896
2896
|
scrollTo({
|
|
2897
2897
|
top: R,
|
|
@@ -2939,18 +2939,18 @@ var Sa = class {
|
|
|
2939
2939
|
if (this.init = (t) => {
|
|
2940
2940
|
this.originalIndex = t.originalIndex;
|
|
2941
2941
|
const n = this.options, r = !n?.path && !n?.id;
|
|
2942
|
-
if (this.parentRoute = this.options.getParentRoute?.(), r) this._path =
|
|
2942
|
+
if (this.parentRoute = this.options.getParentRoute?.(), r) this._path = ut;
|
|
2943
2943
|
else if (!this.parentRoute) {
|
|
2944
2944
|
if (process.env.NODE_ENV !== "production") throw new Error("Invariant failed: Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.");
|
|
2945
|
-
|
|
2945
|
+
ze();
|
|
2946
2946
|
}
|
|
2947
|
-
let s = r ?
|
|
2947
|
+
let s = r ? ut : n?.path;
|
|
2948
2948
|
s && s !== "/" && (s = ma(s));
|
|
2949
2949
|
const o = n?.id || s;
|
|
2950
|
-
let i = r ?
|
|
2950
|
+
let i = r ? ut : In([this.parentRoute.id === "__root__" ? "" : this.parentRoute.id, o]);
|
|
2951
2951
|
s === "__root__" && (s = "/"), i !== "__root__" && (i = In(["/", i]));
|
|
2952
2952
|
const c = i === "__root__" ? "/" : In([this.parentRoute.fullPath, s]);
|
|
2953
|
-
this._path = s, this._id = i, this._fullPath = c, this._to =
|
|
2953
|
+
this._path = s, this._id = i, this._fullPath = c, this._to = Be(c);
|
|
2954
2954
|
}, this.addChildren = (t) => this._addFileChildren(t), this._addFileChildren = (t) => (Array.isArray(t) && (this.children = t), typeof t == "object" && t !== null && (this.children = Object.values(t)), this), this._addFileTypes = () => this, this.updateLoader = (t) => (Object.assign(this.options, t), this), this.update = (t) => (Object.assign(this.options, t), this), this.lazy = (t) => (this.lazyFn = t, this), this.redirect = (t) => Jc({
|
|
2955
2955
|
from: this.fullPath,
|
|
2956
2956
|
...t
|
|
@@ -3522,7 +3522,7 @@ function $l(e, t) {
|
|
|
3522
3522
|
return e === t;
|
|
3523
3523
|
}
|
|
3524
3524
|
function Ne(e, t, n = $l) {
|
|
3525
|
-
const r =
|
|
3525
|
+
const r = gt(
|
|
3526
3526
|
(i) => {
|
|
3527
3527
|
if (!e)
|
|
3528
3528
|
return () => {
|
|
@@ -3531,7 +3531,7 @@ function Ne(e, t, n = $l) {
|
|
|
3531
3531
|
return c;
|
|
3532
3532
|
},
|
|
3533
3533
|
[e]
|
|
3534
|
-
), s =
|
|
3534
|
+
), s = gt(() => e?.get(), [e]);
|
|
3535
3535
|
return Ul.useSyncExternalStoreWithSelector(
|
|
3536
3536
|
r,
|
|
3537
3537
|
s,
|
|
@@ -3552,19 +3552,19 @@ function Bl(e, t) {
|
|
|
3552
3552
|
const n = S.useRef();
|
|
3553
3553
|
return (r) => {
|
|
3554
3554
|
const s = e?.select ? e.select(r) : r;
|
|
3555
|
-
return e?.structuralSharing ?? t.options.defaultStructuralSharing ? n.current =
|
|
3555
|
+
return e?.structuralSharing ?? t.options.defaultStructuralSharing ? n.current = at(n.current, s) : s;
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function yt(e) {
|
|
3559
3559
|
const t = Ee(), n = S.useContext(e.from ? kl : ar), r = e.from ? t.stores.getRouteMatchStore(e.from) : t.stores.matchStores.get(n), s = Bl(e, t), o = Ne(r ?? jr, (i) => i ? s(i) : jr);
|
|
3560
3560
|
if (o !== jr) return o;
|
|
3561
3561
|
if (e.shouldThrow ?? !0) {
|
|
3562
3562
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find ${e.from ? `an active match from "${e.from}"` : "a nearest match!"}`);
|
|
3563
|
-
|
|
3563
|
+
ze();
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
3566
|
function _a(e) {
|
|
3567
|
-
return
|
|
3567
|
+
return yt({
|
|
3568
3568
|
from: e.from,
|
|
3569
3569
|
strict: e.strict,
|
|
3570
3570
|
structuralSharing: e.structuralSharing,
|
|
@@ -3573,13 +3573,13 @@ function _a(e) {
|
|
|
3573
3573
|
}
|
|
3574
3574
|
function Pa(e) {
|
|
3575
3575
|
const { select: t, ...n } = e;
|
|
3576
|
-
return
|
|
3576
|
+
return yt({
|
|
3577
3577
|
...n,
|
|
3578
3578
|
select: (r) => t ? t(r.loaderDeps) : r.loaderDeps
|
|
3579
3579
|
});
|
|
3580
3580
|
}
|
|
3581
3581
|
function Aa(e) {
|
|
3582
|
-
return
|
|
3582
|
+
return yt({
|
|
3583
3583
|
from: e.from,
|
|
3584
3584
|
shouldThrow: e.shouldThrow,
|
|
3585
3585
|
structuralSharing: e.structuralSharing,
|
|
@@ -3591,7 +3591,7 @@ function Aa(e) {
|
|
|
3591
3591
|
});
|
|
3592
3592
|
}
|
|
3593
3593
|
function Ta(e) {
|
|
3594
|
-
return
|
|
3594
|
+
return yt({
|
|
3595
3595
|
from: e.from,
|
|
3596
3596
|
strict: e.strict,
|
|
3597
3597
|
shouldThrow: e.shouldThrow,
|
|
@@ -3607,7 +3607,7 @@ function Oa(e) {
|
|
|
3607
3607
|
}), [e?.from, t]);
|
|
3608
3608
|
}
|
|
3609
3609
|
function La(e) {
|
|
3610
|
-
return
|
|
3610
|
+
return yt({
|
|
3611
3611
|
...e,
|
|
3612
3612
|
select: (t) => e.select ? e.select(t.context) : t.context
|
|
3613
3613
|
});
|
|
@@ -3668,7 +3668,7 @@ function zl(e, t) {
|
|
|
3668
3668
|
const re = qn(K.pathname, n.basepath), ve = qn(H.pathname, n.basepath);
|
|
3669
3669
|
if (!(re.startsWith(ve) && (re.length === ve.length || re[ve.length] === "/"))) return !1;
|
|
3670
3670
|
}
|
|
3671
|
-
return (i?.includeSearch ?? !0) && !
|
|
3671
|
+
return (i?.includeSearch ?? !0) && !dt(K.search, H.search, {
|
|
3672
3672
|
partial: !i?.exact,
|
|
3673
3673
|
ignoreUndefined: !i?.explicitUndefined
|
|
3674
3674
|
}) ? !1 : i?.includeHash ? B && K.hash === H.hash : !0;
|
|
@@ -3684,7 +3684,7 @@ function zl(e, t) {
|
|
|
3684
3684
|
H.pathname,
|
|
3685
3685
|
H.search,
|
|
3686
3686
|
n.basepath
|
|
3687
|
-
]), le = ie ?
|
|
3687
|
+
]), le = ie ? ot(s, {}) ?? Wl : Er, te = ie ? Er : ot(o, {}) ?? Er, je = [
|
|
3688
3688
|
N,
|
|
3689
3689
|
le.className,
|
|
3690
3690
|
te.className
|
|
@@ -3714,8 +3714,8 @@ function zl(e, t) {
|
|
|
3714
3714
|
ye
|
|
3715
3715
|
]);
|
|
3716
3716
|
const mr = (re) => {
|
|
3717
|
-
const ve = re.currentTarget.getAttribute("target"),
|
|
3718
|
-
if (!y && !Jl(re) && !re.defaultPrevented && (!
|
|
3717
|
+
const ve = re.currentTarget.getAttribute("target"), tt = b !== void 0 ? b : ve;
|
|
3718
|
+
if (!y && !Jl(re) && !re.defaultPrevented && (!tt || tt === "_self") && re.button === 0) {
|
|
3719
3719
|
re.preventDefault(), bc(() => {
|
|
3720
3720
|
W(!0);
|
|
3721
3721
|
});
|
|
@@ -3749,24 +3749,24 @@ function zl(e, t) {
|
|
|
3749
3749
|
..._ && { onMouseLeave: _ },
|
|
3750
3750
|
...O && { onTouchStart: O }
|
|
3751
3751
|
};
|
|
3752
|
-
const
|
|
3752
|
+
const He = (re) => {
|
|
3753
3753
|
if (y || ye !== "intent") return;
|
|
3754
3754
|
if (!_e) {
|
|
3755
3755
|
Le();
|
|
3756
3756
|
return;
|
|
3757
3757
|
}
|
|
3758
3758
|
const ve = re.currentTarget;
|
|
3759
|
-
if (
|
|
3760
|
-
const
|
|
3761
|
-
|
|
3759
|
+
if (Kt.has(ve)) return;
|
|
3760
|
+
const tt = setTimeout(() => {
|
|
3761
|
+
Kt.delete(ve), Le();
|
|
3762
3762
|
}, _e);
|
|
3763
|
-
|
|
3763
|
+
Kt.set(ve, tt);
|
|
3764
3764
|
}, gc = (re) => {
|
|
3765
3765
|
y || ye !== "intent" || Le();
|
|
3766
3766
|
}, Cs = (re) => {
|
|
3767
3767
|
if (y || !ye || !_e) return;
|
|
3768
|
-
const ve = re.currentTarget,
|
|
3769
|
-
|
|
3768
|
+
const ve = re.currentTarget, tt = Kt.get(ve);
|
|
3769
|
+
tt && (clearTimeout(tt), Kt.delete(ve));
|
|
3770
3770
|
};
|
|
3771
3771
|
return {
|
|
3772
3772
|
...E,
|
|
@@ -3774,12 +3774,12 @@ function zl(e, t) {
|
|
|
3774
3774
|
...te,
|
|
3775
3775
|
href: Z?.href,
|
|
3776
3776
|
ref: r,
|
|
3777
|
-
onClick:
|
|
3778
|
-
onBlur:
|
|
3779
|
-
onFocus:
|
|
3780
|
-
onMouseEnter:
|
|
3781
|
-
onMouseLeave:
|
|
3782
|
-
onTouchStart:
|
|
3777
|
+
onClick: St([j, mr]),
|
|
3778
|
+
onBlur: St([k, Cs]),
|
|
3779
|
+
onFocus: St([C, He]),
|
|
3780
|
+
onMouseEnter: St([R, He]),
|
|
3781
|
+
onMouseLeave: St([_, Cs]),
|
|
3782
|
+
onTouchStart: St([O, gc]),
|
|
3783
3783
|
disabled: !!y,
|
|
3784
3784
|
target: b,
|
|
3785
3785
|
...Ce && { style: Ce },
|
|
@@ -3795,7 +3795,7 @@ var Er = {}, Wl = { className: "active" }, Vl = {
|
|
|
3795
3795
|
}, Hl = {
|
|
3796
3796
|
"data-status": "active",
|
|
3797
3797
|
"aria-current": "page"
|
|
3798
|
-
}, ql = { "data-transitioning": "transitioning" },
|
|
3798
|
+
}, ql = { "data-transitioning": "transitioning" }, Kt = /* @__PURE__ */ new WeakMap(), Gl = { rootMargin: "100px" }, St = (e) => (t) => {
|
|
3799
3799
|
for (const n of e)
|
|
3800
3800
|
if (n) {
|
|
3801
3801
|
if (t.defaultPrevented) return;
|
|
@@ -3833,7 +3833,7 @@ var Xl = class extends Sa {
|
|
|
3833
3833
|
* @deprecated Use the `createRoute` function instead.
|
|
3834
3834
|
*/
|
|
3835
3835
|
constructor(e) {
|
|
3836
|
-
super(e), this.useMatch = (t) =>
|
|
3836
|
+
super(e), this.useMatch = (t) => yt({
|
|
3837
3837
|
select: t?.select,
|
|
3838
3838
|
from: this.id,
|
|
3839
3839
|
structuralSharing: t?.structuralSharing
|
|
@@ -3869,7 +3869,7 @@ var Zl = class extends Nl {
|
|
|
3869
3869
|
* @deprecated `RootRoute` is now an internal implementation detail. Use `createRootRoute()` instead.
|
|
3870
3870
|
*/
|
|
3871
3871
|
constructor(e) {
|
|
3872
|
-
super(e), this.useMatch = (t) =>
|
|
3872
|
+
super(e), this.useMatch = (t) => yt({
|
|
3873
3873
|
select: t?.select,
|
|
3874
3874
|
from: this.id,
|
|
3875
3875
|
structuralSharing: t?.structuralSharing
|
|
@@ -3918,7 +3918,7 @@ function ed(e) {
|
|
|
3918
3918
|
function td() {
|
|
3919
3919
|
return /* @__PURE__ */ a.jsx("p", { children: "Not Found" });
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function Pt(e) {
|
|
3922
3922
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.children });
|
|
3923
3923
|
}
|
|
3924
3924
|
function Ia(e, t, n) {
|
|
@@ -3934,7 +3934,7 @@ var sd = (e, t) => e.routeId === t.routeId && e._displayPending === t._displayPe
|
|
|
3934
3934
|
const n = Ee(), r = n.stores.matchStores.get(t);
|
|
3935
3935
|
if (!r) {
|
|
3936
3936
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find match for matchId "${t}". Please file an issue!`);
|
|
3937
|
-
|
|
3937
|
+
ze();
|
|
3938
3938
|
}
|
|
3939
3939
|
const s = Ne(n.stores.loadedAt, (i) => i), o = Ne(r, (i) => i, sd);
|
|
3940
3940
|
return /* @__PURE__ */ a.jsx(ad, {
|
|
@@ -3958,8 +3958,8 @@ var sd = (e, t) => e.routeId === t.routeId && e._displayPending === t._displayPe
|
|
|
3958
3958
|
});
|
|
3959
3959
|
});
|
|
3960
3960
|
function ad({ router: e, matchId: t, resetKey: n, matchState: r }) {
|
|
3961
|
-
const s = e.routesById[r.routeId], o = s.options.pendingComponent ?? e.options.defaultPendingComponent, i = o ? /* @__PURE__ */ a.jsx(o, {}) : null, c = s.options.errorComponent ?? e.options.defaultErrorComponent, d = s.options.onCatch ?? e.options.defaultOnCatch, u = s.isRoot ? s.options.notFoundComponent ?? e.options.notFoundRoute?.options.component : s.options.notFoundComponent, f = r.ssr === !1 || r.ssr === "data-only", l = (!s.isRoot || s.options.wrapInSuspense || f) && (s.options.wrapInSuspense ?? o ?? (s.options.errorComponent?.preload || f)) ? S.Suspense :
|
|
3962
|
-
return /* @__PURE__ */ a.jsxs(s.isRoot ? s.options.shellComponent ??
|
|
3961
|
+
const s = e.routesById[r.routeId], o = s.options.pendingComponent ?? e.options.defaultPendingComponent, i = o ? /* @__PURE__ */ a.jsx(o, {}) : null, c = s.options.errorComponent ?? e.options.defaultErrorComponent, d = s.options.onCatch ?? e.options.defaultOnCatch, u = s.isRoot ? s.options.notFoundComponent ?? e.options.notFoundRoute?.options.component : s.options.notFoundComponent, f = r.ssr === !1 || r.ssr === "data-only", l = (!s.isRoot || s.options.wrapInSuspense || f) && (s.options.wrapInSuspense ?? o ?? (s.options.errorComponent?.preload || f)) ? S.Suspense : Pt, h = c ? ls : Pt, m = u ? ed : Pt;
|
|
3962
|
+
return /* @__PURE__ */ a.jsxs(s.isRoot ? s.options.shellComponent ?? Pt : Pt, { children: [/* @__PURE__ */ a.jsx(ar.Provider, {
|
|
3963
3963
|
value: t,
|
|
3964
3964
|
children: /* @__PURE__ */ a.jsx(l, {
|
|
3965
3965
|
fallback: i,
|
|
@@ -3983,7 +3983,7 @@ function ad({ router: e, matchId: t, resetKey: n, matchState: r }) {
|
|
|
3983
3983
|
})
|
|
3984
3984
|
})
|
|
3985
3985
|
})
|
|
3986
|
-
}), r.parentRouteId ===
|
|
3986
|
+
}), r.parentRouteId === ut ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [/* @__PURE__ */ a.jsx(id, {}), e.options.scrollRestoration && ia ? /* @__PURE__ */ a.jsx(rd, {}) : null] }) : null] });
|
|
3987
3987
|
}
|
|
3988
3988
|
function id() {
|
|
3989
3989
|
const e = Ee(), t = S.useRef();
|
|
@@ -3991,7 +3991,7 @@ function id() {
|
|
|
3991
3991
|
const n = e.stores.resolvedLocation.get(), r = t.current;
|
|
3992
3992
|
n && (!r || r.href !== n.href) && e.emit({
|
|
3993
3993
|
type: "onRendered",
|
|
3994
|
-
...
|
|
3994
|
+
...At(e.stores.location.get(), r ?? n)
|
|
3995
3995
|
}), t.current = n;
|
|
3996
3996
|
}, [Ne(e.stores.resolvedLocation, (n) => n?.state.__TSR_key), e]), null;
|
|
3997
3997
|
}
|
|
@@ -3999,7 +3999,7 @@ var ao = S.memo(function({ matchId: t }) {
|
|
|
3999
3999
|
const n = Ee(), r = (f, l) => n.getMatch(f.id)?._nonReactive[l] ?? f._nonReactive[l], s = n.stores.matchStores.get(t);
|
|
4000
4000
|
if (!s) {
|
|
4001
4001
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find match for matchId "${t}". Please file an issue!`);
|
|
4002
|
-
|
|
4002
|
+
ze();
|
|
4003
4003
|
}
|
|
4004
4004
|
const o = Ne(s, (f) => f), i = o.routeId, c = n.routesById[i], d = S.useMemo(() => {
|
|
4005
4005
|
const f = (n.routesById[i].options.remountDeps ?? n.options.defaultRemountDeps)?.({
|
|
@@ -4031,7 +4031,7 @@ var ao = S.memo(function({ matchId: t }) {
|
|
|
4031
4031
|
if (f) {
|
|
4032
4032
|
const l = n.getMatch(o.id);
|
|
4033
4033
|
if (l && !l._nonReactive.minPendingPromise) {
|
|
4034
|
-
const h =
|
|
4034
|
+
const h = Ot();
|
|
4035
4035
|
l._nonReactive.minPendingPromise = h, setTimeout(() => {
|
|
4036
4036
|
h.resolve(), l._nonReactive.minPendingPromise = void 0;
|
|
4037
4037
|
}, f);
|
|
@@ -4042,14 +4042,14 @@ var ao = S.memo(function({ matchId: t }) {
|
|
|
4042
4042
|
if (o.status === "notFound") {
|
|
4043
4043
|
if (!xe(o.error)) {
|
|
4044
4044
|
if (process.env.NODE_ENV !== "production") throw new Error("Invariant failed: Expected a notFound error");
|
|
4045
|
-
|
|
4045
|
+
ze();
|
|
4046
4046
|
}
|
|
4047
4047
|
return Ia(n, c, o.error);
|
|
4048
4048
|
}
|
|
4049
4049
|
if (o.status === "redirected") {
|
|
4050
4050
|
if (!we(o.error)) {
|
|
4051
4051
|
if (process.env.NODE_ENV !== "production") throw new Error("Invariant failed: Expected a redirect error");
|
|
4052
|
-
|
|
4052
|
+
ze();
|
|
4053
4053
|
}
|
|
4054
4054
|
throw r(o, "loadPromise");
|
|
4055
4055
|
}
|
|
@@ -4067,13 +4067,13 @@ var ao = S.memo(function({ matchId: t }) {
|
|
|
4067
4067
|
if (s) {
|
|
4068
4068
|
if (!i) {
|
|
4069
4069
|
if (process.env.NODE_ENV !== "production") throw new Error("Invariant failed: Could not resolve route for Outlet render");
|
|
4070
|
-
|
|
4070
|
+
ze();
|
|
4071
4071
|
}
|
|
4072
4072
|
return Ia(t, i, void 0);
|
|
4073
4073
|
}
|
|
4074
4074
|
if (!o) return null;
|
|
4075
4075
|
const d = /* @__PURE__ */ a.jsx(Ma, { matchId: o });
|
|
4076
|
-
return r ===
|
|
4076
|
+
return r === ut ? /* @__PURE__ */ a.jsx(S.Suspense, {
|
|
4077
4077
|
fallback: c,
|
|
4078
4078
|
children: d
|
|
4079
4079
|
}) : d;
|
|
@@ -4096,7 +4096,7 @@ function cd() {
|
|
|
4096
4096
|
state: !0,
|
|
4097
4097
|
_includeValidateSearch: !0
|
|
4098
4098
|
});
|
|
4099
|
-
return
|
|
4099
|
+
return Be(e.latestLocation.publicHref) !== Be(h.publicHref) && e.commitLocation({
|
|
4100
4100
|
...h,
|
|
4101
4101
|
replace: !0
|
|
4102
4102
|
}), () => {
|
|
@@ -4117,7 +4117,7 @@ function cd() {
|
|
|
4117
4117
|
}, [e]), tn(() => {
|
|
4118
4118
|
i && !s && e.emit({
|
|
4119
4119
|
type: "onLoad",
|
|
4120
|
-
...
|
|
4120
|
+
...At(e.stores.location.get(), e.stores.resolvedLocation.get())
|
|
4121
4121
|
});
|
|
4122
4122
|
}, [
|
|
4123
4123
|
i,
|
|
@@ -4126,7 +4126,7 @@ function cd() {
|
|
|
4126
4126
|
]), tn(() => {
|
|
4127
4127
|
f && !u && e.emit({
|
|
4128
4128
|
type: "onBeforeRouteMount",
|
|
4129
|
-
...
|
|
4129
|
+
...At(e.stores.location.get(), e.stores.resolvedLocation.get())
|
|
4130
4130
|
});
|
|
4131
4131
|
}, [
|
|
4132
4132
|
u,
|
|
@@ -4134,7 +4134,7 @@ function cd() {
|
|
|
4134
4134
|
e
|
|
4135
4135
|
]), tn(() => {
|
|
4136
4136
|
if (d && !c) {
|
|
4137
|
-
const l =
|
|
4137
|
+
const l = At(e.stores.location.get(), e.stores.resolvedLocation.get());
|
|
4138
4138
|
e.emit({
|
|
4139
4139
|
type: "onResolved",
|
|
4140
4140
|
...l
|
|
@@ -4149,7 +4149,7 @@ function cd() {
|
|
|
4149
4149
|
]), null;
|
|
4150
4150
|
}
|
|
4151
4151
|
function ld() {
|
|
4152
|
-
const e = Ee(), t = e.routesById[
|
|
4152
|
+
const e = Ee(), t = e.routesById[ut].options.pendingComponent ?? e.options.defaultPendingComponent, n = t ? /* @__PURE__ */ a.jsx(t, {}) : null, r = /* @__PURE__ */ a.jsxs(typeof document < "u" && e.ssr ? Pt : S.Suspense, {
|
|
4153
4153
|
fallback: n,
|
|
4154
4154
|
children: [/* @__PURE__ */ a.jsx(cd, {}), /* @__PURE__ */ a.jsx(dd, {})]
|
|
4155
4155
|
});
|
|
@@ -4205,7 +4205,7 @@ function Ua(e, t) {
|
|
|
4205
4205
|
return e.apply(t, arguments);
|
|
4206
4206
|
};
|
|
4207
4207
|
}
|
|
4208
|
-
const { toString: pd } = Object.prototype, { getPrototypeOf:
|
|
4208
|
+
const { toString: pd } = Object.prototype, { getPrototypeOf: Lt } = Object, { iterator: fn, toStringTag: $a } = Symbol, Xn = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), an = (e, t) => {
|
|
4209
4209
|
let n = e;
|
|
4210
4210
|
const r = [];
|
|
4211
4211
|
for (; n != null && n !== Object.prototype; ) {
|
|
@@ -4213,45 +4213,45 @@ const { toString: pd } = Object.prototype, { getPrototypeOf: It } = Object, { it
|
|
|
4213
4213
|
return !1;
|
|
4214
4214
|
if (r.push(n), Xn(n, t))
|
|
4215
4215
|
return !0;
|
|
4216
|
-
n =
|
|
4216
|
+
n = Lt(n);
|
|
4217
4217
|
}
|
|
4218
4218
|
return !1;
|
|
4219
4219
|
}, gd = (e, t) => e != null && an(e, t) ? e[t] : void 0, us = /* @__PURE__ */ ((e) => (t) => {
|
|
4220
4220
|
const n = pd.call(t);
|
|
4221
4221
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
4222
|
-
})(/* @__PURE__ */ Object.create(null)), Te = (e) => (e = e.toLowerCase(), (t) => us(t) === e), ir = (e) => (t) => typeof t === e, { isArray:
|
|
4223
|
-
function
|
|
4224
|
-
return e !== null && !
|
|
4222
|
+
})(/* @__PURE__ */ Object.create(null)), Te = (e) => (e = e.toLowerCase(), (t) => us(t) === e), ir = (e) => (t) => typeof t === e, { isArray: xt } = Array, It = ir("undefined");
|
|
4223
|
+
function Ut(e) {
|
|
4224
|
+
return e !== null && !It(e) && e.constructor !== null && !It(e.constructor) && Se(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
4225
4225
|
}
|
|
4226
4226
|
const Ba = Te("ArrayBuffer");
|
|
4227
4227
|
function xd(e) {
|
|
4228
4228
|
let t;
|
|
4229
4229
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ba(e.buffer), t;
|
|
4230
4230
|
}
|
|
4231
|
-
const bd = ir("string"), Se = ir("function"), za = ir("number"),
|
|
4232
|
-
if (
|
|
4231
|
+
const bd = ir("string"), Se = ir("function"), za = ir("number"), $t = (e) => e !== null && typeof e == "object", yd = (e) => e === !0 || e === !1, Un = (e) => {
|
|
4232
|
+
if (!$t(e))
|
|
4233
4233
|
return !1;
|
|
4234
|
-
const t =
|
|
4235
|
-
return (t === null || t === Object.prototype ||
|
|
4234
|
+
const t = Lt(e);
|
|
4235
|
+
return (t === null || t === Object.prototype || Lt(t) === null) && // Treat any genuine (non-Object.prototype-polluted) Symbol.toStringTag or
|
|
4236
4236
|
// Symbol.iterator as evidence the value is a tagged/iterable type rather
|
|
4237
4237
|
// than a plain object, while ignoring keys injected onto Object.prototype.
|
|
4238
4238
|
!an(e, $a) && !an(e, fn);
|
|
4239
4239
|
}, vd = (e) => {
|
|
4240
|
-
if (
|
|
4240
|
+
if (!$t(e) || Ut(e))
|
|
4241
4241
|
return !1;
|
|
4242
4242
|
try {
|
|
4243
4243
|
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
4244
4244
|
} catch {
|
|
4245
4245
|
return !1;
|
|
4246
4246
|
}
|
|
4247
|
-
}, wd = Te("Date"), Sd = Te("File"), Rd = (e) => !!(e && typeof e.uri < "u"), Nd = (e) => e && typeof e.getParts < "u", Cd = Te("Blob"), jd = Te("FileList"), Ed = (e) =>
|
|
4247
|
+
}, wd = Te("Date"), Sd = Te("File"), Rd = (e) => !!(e && typeof e.uri < "u"), Nd = (e) => e && typeof e.getParts < "u", Cd = Te("Blob"), jd = Te("FileList"), Ed = (e) => $t(e) && Se(e.pipe);
|
|
4248
4248
|
function kd() {
|
|
4249
4249
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
4250
4250
|
}
|
|
4251
4251
|
const io = kd(), co = typeof io.FormData < "u" ? io.FormData : void 0, _d = (e) => {
|
|
4252
4252
|
if (!e) return !1;
|
|
4253
4253
|
if (co && e instanceof co) return !0;
|
|
4254
|
-
const t =
|
|
4254
|
+
const t = Lt(e);
|
|
4255
4255
|
if (!t || t === Object.prototype || !Se(e.append)) return !1;
|
|
4256
4256
|
const n = us(e);
|
|
4257
4257
|
return n === "formdata" || // detect form-data instance
|
|
@@ -4266,11 +4266,11 @@ function hn(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
4266
4266
|
if (e === null || typeof e > "u")
|
|
4267
4267
|
return;
|
|
4268
4268
|
let r, s;
|
|
4269
|
-
if (typeof e != "object" && (e = [e]),
|
|
4269
|
+
if (typeof e != "object" && (e = [e]), xt(e))
|
|
4270
4270
|
for (r = 0, s = e.length; r < s; r++)
|
|
4271
4271
|
t.call(null, e[r], r, e);
|
|
4272
4272
|
else {
|
|
4273
|
-
if (
|
|
4273
|
+
if (Ut(e))
|
|
4274
4274
|
return;
|
|
4275
4275
|
const o = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = o.length;
|
|
4276
4276
|
let c;
|
|
@@ -4279,7 +4279,7 @@ function hn(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
|
4279
4279
|
}
|
|
4280
4280
|
}
|
|
4281
4281
|
function Wa(e, t) {
|
|
4282
|
-
if (
|
|
4282
|
+
if (Ut(e))
|
|
4283
4283
|
return null;
|
|
4284
4284
|
t = t.toLowerCase();
|
|
4285
4285
|
const n = Object.keys(e);
|
|
@@ -4289,17 +4289,17 @@ function Wa(e, t) {
|
|
|
4289
4289
|
return s;
|
|
4290
4290
|
return null;
|
|
4291
4291
|
}
|
|
4292
|
-
const
|
|
4292
|
+
const ct = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Va = (e) => !It(e) && e !== ct;
|
|
4293
4293
|
function Jr(...e) {
|
|
4294
4294
|
const { caseless: t, skipUndefined: n } = Va(this) && this || {}, r = {}, s = (o, i) => {
|
|
4295
4295
|
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
4296
4296
|
return;
|
|
4297
4297
|
const c = t && typeof i == "string" && Wa(r, i) || i, d = Xn(r, c) ? r[c] : void 0;
|
|
4298
|
-
Un(d) && Un(o) ? r[c] = Jr(d, o) : Un(o) ? r[c] = Jr({}, o) :
|
|
4298
|
+
Un(d) && Un(o) ? r[c] = Jr(d, o) : Un(o) ? r[c] = Jr({}, o) : xt(o) ? r[c] = o.slice() : (!n || !It(o)) && (r[c] = o);
|
|
4299
4299
|
};
|
|
4300
4300
|
for (let o = 0, i = e.length; o < i; o++) {
|
|
4301
4301
|
const c = e[o];
|
|
4302
|
-
if (!c ||
|
|
4302
|
+
if (!c || Ut(c) || (hn(c, s), typeof c != "object" || xt(c)))
|
|
4303
4303
|
continue;
|
|
4304
4304
|
const d = Object.getOwnPropertySymbols(c);
|
|
4305
4305
|
for (let u = 0; u < d.length; u++) {
|
|
@@ -4347,7 +4347,7 @@ const Md = (e, t, n, { allOwnKeys: r } = {}) => (hn(
|
|
|
4347
4347
|
do {
|
|
4348
4348
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
4349
4349
|
i = s[o], (!r || r(i, e, t)) && !c[i] && (t[i] = e[i], c[i] = !0);
|
|
4350
|
-
e = n !== !1 &&
|
|
4350
|
+
e = n !== !1 && Lt(e);
|
|
4351
4351
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
4352
4352
|
return t;
|
|
4353
4353
|
}, $d = (e, t, n) => {
|
|
@@ -4356,14 +4356,14 @@ const Md = (e, t, n, { allOwnKeys: r } = {}) => (hn(
|
|
|
4356
4356
|
return r !== -1 && r === n;
|
|
4357
4357
|
}, Bd = (e) => {
|
|
4358
4358
|
if (!e) return null;
|
|
4359
|
-
if (
|
|
4359
|
+
if (xt(e)) return e;
|
|
4360
4360
|
let t = e.length;
|
|
4361
4361
|
if (!za(t)) return null;
|
|
4362
4362
|
const n = new Array(t);
|
|
4363
4363
|
for (; t-- > 0; )
|
|
4364
4364
|
n[t] = e[t];
|
|
4365
4365
|
return n;
|
|
4366
|
-
}, zd = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
4366
|
+
}, zd = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Lt(Uint8Array)), Wd = (e, t) => {
|
|
4367
4367
|
const r = (e && e[fn]).call(e);
|
|
4368
4368
|
let s;
|
|
4369
4369
|
for (; (s = r.next()) && !s.done; ) {
|
|
@@ -4405,7 +4405,7 @@ const Md = (e, t, n, { allOwnKeys: r } = {}) => (hn(
|
|
|
4405
4405
|
n[o] = !0;
|
|
4406
4406
|
});
|
|
4407
4407
|
};
|
|
4408
|
-
return
|
|
4408
|
+
return xt(e) ? r(e) : r(String(e).split(t)), n;
|
|
4409
4409
|
}, Xd = () => {
|
|
4410
4410
|
}, Zd = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
4411
4411
|
function Qd(e) {
|
|
@@ -4413,48 +4413,48 @@ function Qd(e) {
|
|
|
4413
4413
|
}
|
|
4414
4414
|
const eu = (e) => {
|
|
4415
4415
|
const t = /* @__PURE__ */ new WeakSet(), n = (r) => {
|
|
4416
|
-
if (
|
|
4416
|
+
if ($t(r)) {
|
|
4417
4417
|
if (t.has(r))
|
|
4418
4418
|
return;
|
|
4419
|
-
if (
|
|
4419
|
+
if (Ut(r))
|
|
4420
4420
|
return r;
|
|
4421
4421
|
if (!("toJSON" in r)) {
|
|
4422
4422
|
t.add(r);
|
|
4423
|
-
const s =
|
|
4423
|
+
const s = xt(r) ? [] : {};
|
|
4424
4424
|
return hn(r, (o, i) => {
|
|
4425
4425
|
const c = n(o);
|
|
4426
|
-
!
|
|
4426
|
+
!It(c) && (s[i] = c);
|
|
4427
4427
|
}), t.delete(r), s;
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
4430
4430
|
return r;
|
|
4431
4431
|
};
|
|
4432
4432
|
return n(e);
|
|
4433
|
-
}, tu = Te("AsyncFunction"), nu = (e) => e && (
|
|
4433
|
+
}, tu = Te("AsyncFunction"), nu = (e) => e && ($t(e) || Se(e)) && Se(e.then) && Se(e.catch), qa = ((e, t) => e ? setImmediate : t ? ((n, r) => (ct.addEventListener(
|
|
4434
4434
|
"message",
|
|
4435
4435
|
({ source: s, data: o }) => {
|
|
4436
|
-
s ===
|
|
4436
|
+
s === ct && o === n && r.length && r.shift()();
|
|
4437
4437
|
},
|
|
4438
4438
|
!1
|
|
4439
4439
|
), (s) => {
|
|
4440
|
-
r.push(s),
|
|
4441
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Se(
|
|
4442
|
-
isArray:
|
|
4440
|
+
r.push(s), ct.postMessage(n, "*");
|
|
4441
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Se(ct.postMessage)), ru = typeof queueMicrotask < "u" ? queueMicrotask.bind(ct) : typeof process < "u" && process.nextTick || qa, Ga = (e) => e != null && Se(e[fn]), su = (e) => e != null && an(e, fn) && Ga(e), w = {
|
|
4442
|
+
isArray: xt,
|
|
4443
4443
|
isArrayBuffer: Ba,
|
|
4444
|
-
isBuffer:
|
|
4444
|
+
isBuffer: Ut,
|
|
4445
4445
|
isFormData: _d,
|
|
4446
4446
|
isArrayBufferView: xd,
|
|
4447
4447
|
isString: bd,
|
|
4448
4448
|
isNumber: za,
|
|
4449
4449
|
isBoolean: yd,
|
|
4450
|
-
isObject:
|
|
4450
|
+
isObject: $t,
|
|
4451
4451
|
isPlainObject: Un,
|
|
4452
4452
|
isEmptyObject: vd,
|
|
4453
4453
|
isReadableStream: Ad,
|
|
4454
4454
|
isRequest: Td,
|
|
4455
4455
|
isResponse: Od,
|
|
4456
4456
|
isHeaders: Ld,
|
|
4457
|
-
isUndefined:
|
|
4457
|
+
isUndefined: It,
|
|
4458
4458
|
isDate: wd,
|
|
4459
4459
|
isFile: Sd,
|
|
4460
4460
|
isReactNativeBlob: Rd,
|
|
@@ -4492,7 +4492,7 @@ const eu = (e) => {
|
|
|
4492
4492
|
noop: Xd,
|
|
4493
4493
|
toFiniteNumber: Zd,
|
|
4494
4494
|
findKey: Wa,
|
|
4495
|
-
global:
|
|
4495
|
+
global: ct,
|
|
4496
4496
|
isContextDefined: Va,
|
|
4497
4497
|
isSpecCompliantForm: Qd,
|
|
4498
4498
|
toJSONObject: eu,
|
|
@@ -4556,7 +4556,7 @@ function Ka(e) {
|
|
|
4556
4556
|
}), t;
|
|
4557
4557
|
}
|
|
4558
4558
|
const lo = /* @__PURE__ */ Symbol("internals");
|
|
4559
|
-
function
|
|
4559
|
+
function Yt(e) {
|
|
4560
4560
|
return e && String(e).trim().toLowerCase();
|
|
4561
4561
|
}
|
|
4562
4562
|
function $n(e) {
|
|
@@ -4604,7 +4604,7 @@ let be = class {
|
|
|
4604
4604
|
set(t, n, r) {
|
|
4605
4605
|
const s = this;
|
|
4606
4606
|
function o(c, d, u) {
|
|
4607
|
-
const f =
|
|
4607
|
+
const f = Yt(d);
|
|
4608
4608
|
if (!f)
|
|
4609
4609
|
return;
|
|
4610
4610
|
const l = w.findKey(s, f);
|
|
@@ -4628,7 +4628,7 @@ let be = class {
|
|
|
4628
4628
|
return this;
|
|
4629
4629
|
}
|
|
4630
4630
|
get(t, n) {
|
|
4631
|
-
if (t =
|
|
4631
|
+
if (t = Yt(t), t) {
|
|
4632
4632
|
const r = w.findKey(this, t);
|
|
4633
4633
|
if (r) {
|
|
4634
4634
|
const s = this[r];
|
|
@@ -4645,7 +4645,7 @@ let be = class {
|
|
|
4645
4645
|
}
|
|
4646
4646
|
}
|
|
4647
4647
|
has(t, n) {
|
|
4648
|
-
if (t =
|
|
4648
|
+
if (t = Yt(t), t) {
|
|
4649
4649
|
const r = w.findKey(this, t);
|
|
4650
4650
|
return !!(r && this[r] !== void 0 && (!n || kr(this, this[r], r, n)));
|
|
4651
4651
|
}
|
|
@@ -4655,7 +4655,7 @@ let be = class {
|
|
|
4655
4655
|
const r = this;
|
|
4656
4656
|
let s = !1;
|
|
4657
4657
|
function o(i) {
|
|
4658
|
-
if (i =
|
|
4658
|
+
if (i = Yt(i), i) {
|
|
4659
4659
|
const c = w.findKey(r, i);
|
|
4660
4660
|
c && (!n || kr(r, r[c], c, n)) && (delete r[c], s = !0);
|
|
4661
4661
|
}
|
|
@@ -4717,7 +4717,7 @@ let be = class {
|
|
|
4717
4717
|
accessors: {}
|
|
4718
4718
|
}).accessors, s = this.prototype;
|
|
4719
4719
|
function o(i) {
|
|
4720
|
-
const c =
|
|
4720
|
+
const c = Yt(i);
|
|
4721
4721
|
r[c] || (pu(s, i), r[c] = !0);
|
|
4722
4722
|
}
|
|
4723
4723
|
return w.isArray(t) ? t.forEach(o) : o(t), this;
|
|
@@ -5126,7 +5126,7 @@ function ti(e) {
|
|
|
5126
5126
|
}
|
|
5127
5127
|
return null;
|
|
5128
5128
|
}
|
|
5129
|
-
const
|
|
5129
|
+
const Rt = (e, t) => e != null && w.hasOwnProp(e, t) ? e[t] : void 0;
|
|
5130
5130
|
function Lu(e, t, n) {
|
|
5131
5131
|
if (w.isString(e))
|
|
5132
5132
|
try {
|
|
@@ -5153,11 +5153,11 @@ const mn = {
|
|
|
5153
5153
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
|
|
5154
5154
|
let c;
|
|
5155
5155
|
if (o) {
|
|
5156
|
-
const d =
|
|
5156
|
+
const d = Rt(this, "formSerializer");
|
|
5157
5157
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
5158
5158
|
return Au(t, d).toString();
|
|
5159
5159
|
if ((c = w.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
5160
|
-
const u =
|
|
5160
|
+
const u = Rt(this, "env"), f = u && u.FormData;
|
|
5161
5161
|
return cr(
|
|
5162
5162
|
c ? { "files[]": t } : t,
|
|
5163
5163
|
f && new f(),
|
|
@@ -5170,16 +5170,16 @@ const mn = {
|
|
|
5170
5170
|
],
|
|
5171
5171
|
transformResponse: [
|
|
5172
5172
|
function(t) {
|
|
5173
|
-
const n =
|
|
5173
|
+
const n = Rt(this, "transitional") || mn.transitional, r = n && n.forcedJSONParsing, s = Rt(this, "responseType"), o = s === "json";
|
|
5174
5174
|
if (w.isResponse(t) || w.isReadableStream(t))
|
|
5175
5175
|
return t;
|
|
5176
5176
|
if (t && w.isString(t) && (r && !s || o)) {
|
|
5177
5177
|
const c = !(n && n.silentJSONParsing) && o;
|
|
5178
5178
|
try {
|
|
5179
|
-
return JSON.parse(t,
|
|
5179
|
+
return JSON.parse(t, Rt(this, "parseReviver"));
|
|
5180
5180
|
} catch (d) {
|
|
5181
5181
|
if (c)
|
|
5182
|
-
throw d.name === "SyntaxError" ? T.from(d, T.ERR_BAD_RESPONSE, this, null,
|
|
5182
|
+
throw d.name === "SyntaxError" ? T.from(d, T.ERR_BAD_RESPONSE, this, null, Rt(this, "response")) : d;
|
|
5183
5183
|
}
|
|
5184
5184
|
}
|
|
5185
5185
|
return t;
|
|
@@ -5379,7 +5379,7 @@ function si(e, t, n, r) {
|
|
|
5379
5379
|
return e && (s || n === !1) ? (go(e, r), Bu(e, t)) : t;
|
|
5380
5380
|
}
|
|
5381
5381
|
const xo = (e) => e instanceof be ? { ...e } : e;
|
|
5382
|
-
function
|
|
5382
|
+
function bt(e, t) {
|
|
5383
5383
|
e = e || {}, t = t || {};
|
|
5384
5384
|
const n = /* @__PURE__ */ Object.create(null);
|
|
5385
5385
|
Object.defineProperty(n, "hasOwnProperty", {
|
|
@@ -5481,7 +5481,7 @@ const Ku = (e) => encodeURIComponent(e).replace(
|
|
|
5481
5481
|
(t, n) => String.fromCharCode(parseInt(n, 16))
|
|
5482
5482
|
);
|
|
5483
5483
|
function oi(e) {
|
|
5484
|
-
const t =
|
|
5484
|
+
const t = bt({}, e), n = (h) => w.hasOwnProp(t, h) ? t[h] : void 0, r = n("data");
|
|
5485
5485
|
let s = n("withXSRFToken");
|
|
5486
5486
|
const o = n("xsrfHeaderName"), i = n("xsrfCookieName");
|
|
5487
5487
|
let c = n("headers");
|
|
@@ -5916,23 +5916,23 @@ const gs = "1.18.1", yo = 64 * 1024, { isFunction: Rn } = w, rf = (e) => encodeU
|
|
|
5916
5916
|
const Ce = m && (O === "stream" || O === "response");
|
|
5917
5917
|
if (m && te.body && (R || Y || Ce && B)) {
|
|
5918
5918
|
const W = {};
|
|
5919
|
-
["status", "statusText", "headers"].forEach((
|
|
5920
|
-
W[
|
|
5919
|
+
["status", "statusText", "headers"].forEach((He) => {
|
|
5920
|
+
W[He] = te[He];
|
|
5921
5921
|
});
|
|
5922
5922
|
const pe = w.toFiniteNumber(je.getContentLength()), [ye, _e] = R && mo(
|
|
5923
5923
|
pe,
|
|
5924
5924
|
Zn(po(R), !0)
|
|
5925
5925
|
) || [];
|
|
5926
5926
|
let Le = 0;
|
|
5927
|
-
const mr = (
|
|
5928
|
-
if (Y && (Le =
|
|
5927
|
+
const mr = (He) => {
|
|
5928
|
+
if (Y && (Le = He, Le > $))
|
|
5929
5929
|
throw new T(
|
|
5930
5930
|
"maxContentLength size of " + $ + " exceeded",
|
|
5931
5931
|
T.ERR_BAD_RESPONSE,
|
|
5932
5932
|
b,
|
|
5933
5933
|
E
|
|
5934
5934
|
);
|
|
5935
|
-
ye && ye(
|
|
5935
|
+
ye && ye(He);
|
|
5936
5936
|
};
|
|
5937
5937
|
te = new i(
|
|
5938
5938
|
bo(te.body, yo, mr, () => {
|
|
@@ -6151,7 +6151,7 @@ const Bn = {
|
|
|
6151
6151
|
assertOptions: df,
|
|
6152
6152
|
validators: lr
|
|
6153
6153
|
}, ge = Bn.validators;
|
|
6154
|
-
let
|
|
6154
|
+
let ht = class {
|
|
6155
6155
|
constructor(t) {
|
|
6156
6156
|
this.defaults = t || {}, this.interceptors = {
|
|
6157
6157
|
request: new fo(),
|
|
@@ -6197,7 +6197,7 @@ let mt = class {
|
|
|
6197
6197
|
}
|
|
6198
6198
|
}
|
|
6199
6199
|
_request(t, n) {
|
|
6200
|
-
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n =
|
|
6200
|
+
typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = bt(this.defaults, n);
|
|
6201
6201
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
6202
6202
|
r !== void 0 && Bn.assertOptions(
|
|
6203
6203
|
r,
|
|
@@ -6272,15 +6272,15 @@ let mt = class {
|
|
|
6272
6272
|
return f;
|
|
6273
6273
|
}
|
|
6274
6274
|
getUri(t) {
|
|
6275
|
-
t =
|
|
6275
|
+
t = bt(this.defaults, t);
|
|
6276
6276
|
const n = si(t.baseURL, t.url, t.allowAbsoluteUrls, t);
|
|
6277
6277
|
return Qa(n, t.params, t.paramsSerializer);
|
|
6278
6278
|
}
|
|
6279
6279
|
};
|
|
6280
6280
|
w.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6281
|
-
|
|
6281
|
+
ht.prototype[t] = function(n, r) {
|
|
6282
6282
|
return this.request(
|
|
6283
|
-
|
|
6283
|
+
bt(r || {}, {
|
|
6284
6284
|
method: t,
|
|
6285
6285
|
url: n,
|
|
6286
6286
|
data: r && w.hasOwnProp(r, "data") ? r.data : void 0
|
|
@@ -6292,7 +6292,7 @@ w.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
6292
6292
|
function n(r) {
|
|
6293
6293
|
return function(o, i, c) {
|
|
6294
6294
|
return this.request(
|
|
6295
|
-
|
|
6295
|
+
bt(c || {}, {
|
|
6296
6296
|
method: t,
|
|
6297
6297
|
headers: r ? {
|
|
6298
6298
|
"Content-Type": "multipart/form-data"
|
|
@@ -6303,7 +6303,7 @@ w.forEach(["post", "put", "patch", "query"], function(t) {
|
|
|
6303
6303
|
);
|
|
6304
6304
|
};
|
|
6305
6305
|
}
|
|
6306
|
-
|
|
6306
|
+
ht.prototype[t] = n(), t !== "query" && (ht.prototype[t + "Form"] = n(!0));
|
|
6307
6307
|
});
|
|
6308
6308
|
let uf = class ci {
|
|
6309
6309
|
constructor(t) {
|
|
@@ -6461,13 +6461,13 @@ Object.entries(Qr).forEach(([e, t]) => {
|
|
|
6461
6461
|
Qr[t] = e;
|
|
6462
6462
|
});
|
|
6463
6463
|
function li(e) {
|
|
6464
|
-
const t = new
|
|
6465
|
-
return w.extend(n,
|
|
6466
|
-
return li(
|
|
6464
|
+
const t = new ht(e), n = Ua(ht.prototype.request, t);
|
|
6465
|
+
return w.extend(n, ht.prototype, t, { allOwnKeys: !0 }), w.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
6466
|
+
return li(bt(e, s));
|
|
6467
6467
|
}, n;
|
|
6468
6468
|
}
|
|
6469
6469
|
const ae = li(mn);
|
|
6470
|
-
ae.Axios =
|
|
6470
|
+
ae.Axios = ht;
|
|
6471
6471
|
ae.CanceledError = pn;
|
|
6472
6472
|
ae.CancelToken = uf;
|
|
6473
6473
|
ae.isCancel = ni;
|
|
@@ -6480,7 +6480,7 @@ ae.all = function(t) {
|
|
|
6480
6480
|
};
|
|
6481
6481
|
ae.spread = ff;
|
|
6482
6482
|
ae.isAxiosError = hf;
|
|
6483
|
-
ae.mergeConfig =
|
|
6483
|
+
ae.mergeConfig = bt;
|
|
6484
6484
|
ae.AxiosHeaders = be;
|
|
6485
6485
|
ae.formToJSON = (e) => ti(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
6486
6486
|
ae.getAdapter = ii.getAdapter;
|
|
@@ -6617,7 +6617,7 @@ const Pf = [
|
|
|
6617
6617
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
6618
6618
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
6619
6619
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
6620
|
-
],
|
|
6620
|
+
], We = ee("circle-alert", Pf);
|
|
6621
6621
|
const Af = [
|
|
6622
6622
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
6623
6623
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
@@ -6675,7 +6675,7 @@ const Wf = [
|
|
|
6675
6675
|
["path", { d: "M8 12h13", key: "1za7za" }],
|
|
6676
6676
|
["path", { d: "M8 19h13", key: "m83p4d" }]
|
|
6677
6677
|
], Vf = ee("list", Wf);
|
|
6678
|
-
const Hf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]],
|
|
6678
|
+
const Hf = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], lt = ee("loader-circle", Hf);
|
|
6679
6679
|
const qf = [
|
|
6680
6680
|
[
|
|
6681
6681
|
"path",
|
|
@@ -6695,7 +6695,7 @@ const Jf = [
|
|
|
6695
6695
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
6696
6696
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
6697
6697
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
6698
|
-
],
|
|
6698
|
+
], Mt = ee("refresh-cw", Jf);
|
|
6699
6699
|
const Xf = [
|
|
6700
6700
|
["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
|
|
6701
6701
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
|
|
@@ -6742,7 +6742,7 @@ const sh = [
|
|
|
6742
6742
|
const oh = [
|
|
6743
6743
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
6744
6744
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
6745
|
-
],
|
|
6745
|
+
], mt = ee("x", oh);
|
|
6746
6746
|
function wi(e) {
|
|
6747
6747
|
var t, n, r = "";
|
|
6748
6748
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
@@ -7045,15 +7045,15 @@ const ih = (e, t) => {
|
|
|
7045
7045
|
}, _h = [], ce = (e) => {
|
|
7046
7046
|
const t = (n) => n[e] || _h;
|
|
7047
7047
|
return t.isThemeGetter = !0, t;
|
|
7048
|
-
}, ji = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ei = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ph = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ah = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Th = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Lh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ih = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
7048
|
+
}, ji = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ei = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ph = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Ah = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Th = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Oh = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Lh = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ih = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, qe = (e) => Ph.test(e), G = (e) => !!e && !Number.isNaN(Number(e)), Ie = (e) => !!e && Number.isInteger(Number(e)), Tr = (e) => e.endsWith("%") && G(e.slice(0, -1)), $e = (e) => Ah.test(e), ki = () => !0, Mh = (e) => (
|
|
7049
7049
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
7050
7050
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
7051
7051
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
7052
7052
|
Th.test(e) && !Oh.test(e)
|
|
7053
|
-
), ws = () => !1, Dh = (e) => Lh.test(e), Fh = (e) => Ih.test(e), Uh = (e) => !I(e) && !D(e), $h = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Bh = (e) =>
|
|
7053
|
+
), ws = () => !1, Dh = (e) => Lh.test(e), Fh = (e) => Ih.test(e), Uh = (e) => !I(e) && !D(e), $h = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Bh = (e) => et(e, Ai, ws), I = (e) => ji.test(e), rt = (e) => et(e, Ti, Mh), Po = (e) => et(e, Yh, G), zh = (e) => et(e, Li, ki), Wh = (e) => et(e, Oi, ws), Ao = (e) => et(e, _i, ws), Vh = (e) => et(e, Pi, Fh), Nn = (e) => et(e, Ii, Dh), D = (e) => Ei.test(e), Jt = (e) => vt(e, Ti), Hh = (e) => vt(e, Oi), To = (e) => vt(e, _i), qh = (e) => vt(e, Ai), Gh = (e) => vt(e, Pi), Cn = (e) => vt(e, Ii, !0), Kh = (e) => vt(e, Li, !0), et = (e, t, n) => {
|
|
7054
7054
|
const r = ji.exec(e);
|
|
7055
7055
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
7056
|
-
},
|
|
7056
|
+
}, vt = (e, t, n = !1) => {
|
|
7057
7057
|
const r = Ei.exec(e);
|
|
7058
7058
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
7059
7059
|
}, _i = (e) => e === "position" || e === "percentage", Pi = (e) => e === "image" || e === "url", Ai = (e) => e === "length" || e === "size" || e === "bg-size", Ti = (e) => e === "length", Yh = (e) => e === "number", Oi = (e) => e === "family-name", Li = (e) => e === "number" || e === "weight", Ii = (e) => e === "shadow", Jh = () => {
|
|
@@ -7075,15 +7075,15 @@ const ih = (e, t) => {
|
|
|
7075
7075
|
"bottom-left",
|
|
7076
7076
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
7077
7077
|
"left-bottom"
|
|
7078
|
-
], j = () => [...N(), D, I], k = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], R = () => [D, I, d], _ = () => [
|
|
7078
|
+
], j = () => [...N(), D, I], k = () => ["auto", "hidden", "clip", "visible", "scroll"], C = () => ["auto", "contain", "none"], R = () => [D, I, d], _ = () => [qe, "full", "auto", ...R()], O = () => [Ie, "none", "subgrid", D, I], P = () => ["auto", {
|
|
7079
7079
|
span: ["full", Ie, D, I]
|
|
7080
|
-
}, Ie, D, I], M = () => [Ie, "auto", D, I], A = () => ["auto", "min", "max", "fr", D, I], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...R()], Q = () => [
|
|
7080
|
+
}, Ie, D, I], M = () => [Ie, "auto", D, I], A = () => ["auto", "min", "max", "fr", D, I], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], J = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Y = () => ["auto", ...R()], Q = () => [qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], he = () => [qe, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], me = () => [qe, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], L = () => [e, D, I], E = () => [...N(), To, Ao, {
|
|
7081
7081
|
position: [D, I]
|
|
7082
7082
|
}], B = () => ["no-repeat", {
|
|
7083
7083
|
repeat: ["", "x", "y", "space", "round"]
|
|
7084
7084
|
}], q = () => ["auto", "cover", "contain", qh, Bh, {
|
|
7085
7085
|
size: [D, I]
|
|
7086
|
-
}], K = () => [Tr,
|
|
7086
|
+
}], K = () => [Tr, Jt, rt], H = () => [
|
|
7087
7087
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7088
7088
|
"",
|
|
7089
7089
|
"none",
|
|
@@ -7091,14 +7091,14 @@ const ih = (e, t) => {
|
|
|
7091
7091
|
u,
|
|
7092
7092
|
D,
|
|
7093
7093
|
I
|
|
7094
|
-
], z = () => ["", G,
|
|
7094
|
+
], z = () => ["", G, Jt, rt], F = () => ["solid", "dashed", "dotted", "double"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [G, Tr, To, Ao], ie = () => [
|
|
7095
7095
|
// Deprecated since Tailwind CSS v4.0.0
|
|
7096
7096
|
"",
|
|
7097
7097
|
"none",
|
|
7098
7098
|
g,
|
|
7099
7099
|
D,
|
|
7100
7100
|
I
|
|
7101
|
-
], le = () => ["none", G, D, I], te = () => ["none", G, D, I], je = () => [G, D, I], Ce = () => [
|
|
7101
|
+
], le = () => ["none", G, D, I], te = () => ["none", G, D, I], je = () => [G, D, I], Ce = () => [qe, "full", ...R()];
|
|
7102
7102
|
return {
|
|
7103
7103
|
cacheSize: 500,
|
|
7104
7104
|
theme: {
|
|
@@ -7131,7 +7131,7 @@ const ih = (e, t) => {
|
|
|
7131
7131
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
7132
7132
|
*/
|
|
7133
7133
|
aspect: [{
|
|
7134
|
-
aspect: ["auto", "square",
|
|
7134
|
+
aspect: ["auto", "square", qe, I, D, x]
|
|
7135
7135
|
}],
|
|
7136
7136
|
/**
|
|
7137
7137
|
* Container
|
|
@@ -7392,7 +7392,7 @@ const ih = (e, t) => {
|
|
|
7392
7392
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
7393
7393
|
*/
|
|
7394
7394
|
basis: [{
|
|
7395
|
-
basis: [
|
|
7395
|
+
basis: [qe, "full", "auto", c, ...R()]
|
|
7396
7396
|
}],
|
|
7397
7397
|
/**
|
|
7398
7398
|
* Flex Direction
|
|
@@ -7413,7 +7413,7 @@ const ih = (e, t) => {
|
|
|
7413
7413
|
* @see https://tailwindcss.com/docs/flex
|
|
7414
7414
|
*/
|
|
7415
7415
|
flex: [{
|
|
7416
|
-
flex: [G,
|
|
7416
|
+
flex: [G, qe, "auto", "initial", "none", I]
|
|
7417
7417
|
}],
|
|
7418
7418
|
/**
|
|
7419
7419
|
* Flex Grow
|
|
@@ -7899,7 +7899,7 @@ const ih = (e, t) => {
|
|
|
7899
7899
|
* @see https://tailwindcss.com/docs/font-size
|
|
7900
7900
|
*/
|
|
7901
7901
|
"font-size": [{
|
|
7902
|
-
text: ["base", n,
|
|
7902
|
+
text: ["base", n, Jt, rt]
|
|
7903
7903
|
}],
|
|
7904
7904
|
/**
|
|
7905
7905
|
* Font Smoothing
|
|
@@ -8054,7 +8054,7 @@ const ih = (e, t) => {
|
|
|
8054
8054
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
8055
8055
|
*/
|
|
8056
8056
|
"text-decoration-thickness": [{
|
|
8057
|
-
decoration: [G, "from-font", "auto", D,
|
|
8057
|
+
decoration: [G, "from-font", "auto", D, rt]
|
|
8058
8058
|
}],
|
|
8059
8059
|
/**
|
|
8060
8060
|
* Text Decoration Color
|
|
@@ -8576,7 +8576,7 @@ const ih = (e, t) => {
|
|
|
8576
8576
|
* @see https://tailwindcss.com/docs/outline-width
|
|
8577
8577
|
*/
|
|
8578
8578
|
"outline-w": [{
|
|
8579
|
-
outline: ["", G,
|
|
8579
|
+
outline: ["", G, Jt, rt]
|
|
8580
8580
|
}],
|
|
8581
8581
|
/**
|
|
8582
8582
|
* Outline Color
|
|
@@ -8651,7 +8651,7 @@ const ih = (e, t) => {
|
|
|
8651
8651
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
8652
8652
|
*/
|
|
8653
8653
|
"ring-offset-w": [{
|
|
8654
|
-
"ring-offset": [G,
|
|
8654
|
+
"ring-offset": [G, rt]
|
|
8655
8655
|
}],
|
|
8656
8656
|
/**
|
|
8657
8657
|
* Ring Offset Color
|
|
@@ -9664,7 +9664,7 @@ const ih = (e, t) => {
|
|
|
9664
9664
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
9665
9665
|
*/
|
|
9666
9666
|
"stroke-w": [{
|
|
9667
|
-
stroke: [G,
|
|
9667
|
+
stroke: [G, Jt, rt, Po]
|
|
9668
9668
|
}],
|
|
9669
9669
|
/**
|
|
9670
9670
|
* Stroke
|
|
@@ -9742,7 +9742,7 @@ const ih = (e, t) => {
|
|
|
9742
9742
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
9743
9743
|
};
|
|
9744
9744
|
}, Xh = /* @__PURE__ */ kh(Jh);
|
|
9745
|
-
function
|
|
9745
|
+
function Bt(...e) {
|
|
9746
9746
|
return Xh(ah(e));
|
|
9747
9747
|
}
|
|
9748
9748
|
function X(e, t = "USD") {
|
|
@@ -9757,36 +9757,36 @@ const de = S.forwardRef(
|
|
|
9757
9757
|
"div",
|
|
9758
9758
|
{
|
|
9759
9759
|
ref: n,
|
|
9760
|
-
className:
|
|
9760
|
+
className: Bt("rounded-xl border bg-card text-card-foreground shadow", e),
|
|
9761
9761
|
...t
|
|
9762
9762
|
}
|
|
9763
9763
|
)
|
|
9764
9764
|
);
|
|
9765
9765
|
de.displayName = "Card";
|
|
9766
9766
|
const Re = S.forwardRef(
|
|
9767
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className:
|
|
9767
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className: Bt("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
9768
9768
|
);
|
|
9769
9769
|
Re.displayName = "CardHeader";
|
|
9770
9770
|
const Ae = S.forwardRef(
|
|
9771
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("h3", { ref: n, className:
|
|
9771
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("h3", { ref: n, className: Bt("font-semibold leading-none tracking-tight", e), ...t })
|
|
9772
9772
|
);
|
|
9773
9773
|
Ae.displayName = "CardTitle";
|
|
9774
9774
|
const Zh = S.forwardRef(
|
|
9775
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("p", { ref: n, className:
|
|
9775
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("p", { ref: n, className: Bt("text-sm text-muted-foreground", e), ...t })
|
|
9776
9776
|
);
|
|
9777
9777
|
Zh.displayName = "CardDescription";
|
|
9778
9778
|
const ue = S.forwardRef(
|
|
9779
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className:
|
|
9779
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className: Bt("p-6 pt-0", e), ...t })
|
|
9780
9780
|
);
|
|
9781
9781
|
ue.displayName = "CardContent";
|
|
9782
9782
|
const Qh = S.forwardRef(
|
|
9783
|
-
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className:
|
|
9783
|
+
({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { ref: n, className: Bt("flex items-center p-6 pt-0", e), ...t })
|
|
9784
9784
|
);
|
|
9785
9785
|
Qh.displayName = "CardFooter";
|
|
9786
9786
|
function nr({ status: e, error: t }) {
|
|
9787
9787
|
const n = e?.action === "connect_source" || e?.state === "not_configured", r = e?.message || t || "CUR status could not be loaded. Verify the cost source, discovery job, and Athena configuration.";
|
|
9788
9788
|
return /* @__PURE__ */ a.jsx("section", { className: "rounded-md border bg-card p-6", "aria-live": "polite", children: /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
9789
|
-
e?.state === "unavailable" || t ? /* @__PURE__ */ a.jsx(
|
|
9789
|
+
e?.state === "unavailable" || t ? /* @__PURE__ */ a.jsx(We, { className: "mt-0.5 h-5 w-5 shrink-0 text-destructive" }) : /* @__PURE__ */ a.jsx(hi, { className: "mt-0.5 h-5 w-5 shrink-0 text-primary" }),
|
|
9790
9790
|
/* @__PURE__ */ a.jsxs("div", { className: "min-w-0", children: [
|
|
9791
9791
|
/* @__PURE__ */ a.jsx("h2", { className: "font-semibold", children: n ? "Enable AWS Cost and Usage Reports" : "CUR data is not ready" }),
|
|
9792
9792
|
/* @__PURE__ */ a.jsx("p", { className: "mt-1 max-w-3xl text-sm text-muted-foreground", children: r }),
|
|
@@ -9824,7 +9824,7 @@ const oe = {
|
|
|
9824
9824
|
getCurDiscovery: (e) => ne.get("/cur-discovery", { params: e }).then((t) => t.data)
|
|
9825
9825
|
}, Mi = sa("user"), em = Mi.Provider, tm = () => oa(Mi), Di = sa(null);
|
|
9826
9826
|
function nm({ tenantId: e = "default", children: t }) {
|
|
9827
|
-
const n = `meyi-cost:selected-management-account:${e || "default"}`, [r, s] = U([]), [o, i] = U(""), [c, d] = U(!0), u =
|
|
9827
|
+
const n = `meyi-cost:selected-management-account:${e || "default"}`, [r, s] = U([]), [o, i] = U(""), [c, d] = U(!0), u = gt(async () => {
|
|
9828
9828
|
d(!0);
|
|
9829
9829
|
try {
|
|
9830
9830
|
const m = ((await oe.getSources()).sources || []).filter((g) => !!g.managementAccountId);
|
|
@@ -9841,18 +9841,18 @@ function nm({ tenantId: e = "default", children: t }) {
|
|
|
9841
9841
|
Ue(() => {
|
|
9842
9842
|
u();
|
|
9843
9843
|
}, [u]);
|
|
9844
|
-
const f =
|
|
9844
|
+
const f = gt((h) => {
|
|
9845
9845
|
/^\d{12}$/.test(h) && (window.localStorage.setItem(n, h), i(h));
|
|
9846
9846
|
}, [n]), l = dn(() => ({ sources: r, managementAccountId: o, loading: c, selectManagementAccount: f, refreshSources: u }), [r, o, c, f, u]);
|
|
9847
9847
|
return /* @__PURE__ */ a.jsx(Di.Provider, { value: l, children: t });
|
|
9848
9848
|
}
|
|
9849
|
-
function
|
|
9849
|
+
function zt() {
|
|
9850
9850
|
const e = oa(Di);
|
|
9851
9851
|
if (!e) throw new Error("useCostAccount must be used inside CostAccountProvider");
|
|
9852
9852
|
return e;
|
|
9853
9853
|
}
|
|
9854
9854
|
function dr() {
|
|
9855
|
-
const { sources: e, managementAccountId: t, loading: n, selectManagementAccount: r } =
|
|
9855
|
+
const { sources: e, managementAccountId: t, loading: n, selectManagementAccount: r } = zt();
|
|
9856
9856
|
return e.length <= 1 ? null : /* @__PURE__ */ a.jsxs("label", { className: "flex items-center gap-2", children: [
|
|
9857
9857
|
/* @__PURE__ */ a.jsx(ui, { className: "h-4 w-4 text-muted-foreground" }),
|
|
9858
9858
|
/* @__PURE__ */ a.jsx("span", { className: "sr-only", children: "Management account" }),
|
|
@@ -10034,7 +10034,7 @@ Cost - ${X(s.amount, e.currency)}` }) : "-", helper: d, icon: /* @__PURE__ */ a.
|
|
|
10034
10034
|
] }, f.label)) });
|
|
10035
10035
|
}
|
|
10036
10036
|
function cm() {
|
|
10037
|
-
const e = /* @__PURE__ */ new Date(), t = `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, [n, r] = U(null), [s, o] = U(!0), [i, c] = U(null), [d, u] = U(null), [f, l] = U("monthly"), [h, m] = U(t), { managementAccountId: g, loading: p } =
|
|
10037
|
+
const e = /* @__PURE__ */ new Date(), t = `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}`, [n, r] = U(null), [s, o] = U(!0), [i, c] = U(null), [d, u] = U(null), [f, l] = U("monthly"), [h, m] = U(t), { managementAccountId: g, loading: p } = zt(), x = os(0), b = Array.from({ length: e.getMonth() + 1 }, (j, k) => ({ value: `${e.getFullYear()}-${String(k + 1).padStart(2, "0")}`, label: new Intl.DateTimeFormat("en-US", { month: "long", year: "numeric" }).format(new Date(e.getFullYear(), k, 1)) })), y = async (j = f, k = h, C = g) => {
|
|
10038
10038
|
const R = ++x.current;
|
|
10039
10039
|
o(!0), r(null), c(null);
|
|
10040
10040
|
try {
|
|
@@ -10080,11 +10080,11 @@ function lm() {
|
|
|
10080
10080
|
/* @__PURE__ */ a.jsx("div", { className: "flex rounded-lg border p-1", children: ["monthly", "yearly"].map((f) => /* @__PURE__ */ a.jsx("button", { onClick: () => c(f), className: `rounded-md px-3 py-1.5 text-sm capitalize transition-colors ${s === f ? "bg-primary text-primary-foreground" : "hover:bg-muted"}`, children: f }, f)) }),
|
|
10081
10081
|
/* @__PURE__ */ a.jsx("button", { onClick: () => {
|
|
10082
10082
|
u();
|
|
10083
|
-
}, disabled: n, className: "rounded-lg border p-2 hover:bg-muted", children: /* @__PURE__ */ a.jsx(
|
|
10083
|
+
}, disabled: n, className: "rounded-lg border p-2 hover:bg-muted", children: /* @__PURE__ */ a.jsx(Mt, { className: `h-4 w-4 ${n ? "animate-spin" : ""}` }) })
|
|
10084
10084
|
] })
|
|
10085
10085
|
] }),
|
|
10086
10086
|
r && e && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
10087
|
-
/* @__PURE__ */ a.jsx(
|
|
10087
|
+
/* @__PURE__ */ a.jsx(We, { className: "h-4 w-4" }),
|
|
10088
10088
|
r
|
|
10089
10089
|
] }),
|
|
10090
10090
|
n ? /* @__PURE__ */ a.jsx(am, {}) : t && !t.ready ? /* @__PURE__ */ a.jsx(nr, { status: t }) : r && !e ? /* @__PURE__ */ a.jsx(nr, { status: t, error: r }) : e ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -10223,7 +10223,7 @@ function fm() {
|
|
|
10223
10223
|
return /* @__PURE__ */ a.jsxs("div", { "aria-live": "polite", "aria-busy": "true", className: "space-y-5", children: [
|
|
10224
10224
|
/* @__PURE__ */ a.jsxs("section", { className: "rounded-xl bg-primary/5 p-5", children: [
|
|
10225
10225
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-3 text-sm font-medium text-primary", children: [
|
|
10226
|
-
/* @__PURE__ */ a.jsx(
|
|
10226
|
+
/* @__PURE__ */ a.jsx(lt, { className: "h-5 w-5 animate-spin" }),
|
|
10227
10227
|
"Loading live AWS cost report..."
|
|
10228
10228
|
] }),
|
|
10229
10229
|
/* @__PURE__ */ a.jsx("div", { className: "mt-5 grid gap-3 sm:grid-cols-3", children: [1, 2, 3].map((e) => /* @__PURE__ */ a.jsx("div", { className: "h-28 animate-pulse rounded-xl border bg-card/70" }, e)) })
|
|
@@ -10232,7 +10232,7 @@ function fm() {
|
|
|
10232
10232
|
/* @__PURE__ */ a.jsx("div", { className: "h-64 animate-pulse rounded-xl border bg-muted/40" })
|
|
10233
10233
|
] });
|
|
10234
10234
|
}
|
|
10235
|
-
const
|
|
10235
|
+
const Ze = 10, ts = /* @__PURE__ */ new Date(), Ui = (e) => `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`, hm = Ui(new Date(ts.getFullYear(), ts.getMonth() - 2, 1)), mm = Ui(ts), Xt = { services: [], regions: [], accountIds: [], tagKey: "", tagValues: [] }, pt = {
|
|
10236
10236
|
service: { tab: "Services", title: "Service Cost Summary", pdfTitle: "Service Cost Report", top: "Top service cost", count: "Service count", item: "Service", empty: "No service cost data found." },
|
|
10237
10237
|
account: { tab: "Accounts", title: "Account Cost Summary", pdfTitle: "Account Cost Report", top: "Top account cost", count: "Account count", item: "Linked account", empty: "No linked account cost data found." },
|
|
10238
10238
|
region: { tab: "Regions", title: "Regional Cost Summary", pdfTitle: "Region Cost Report", top: "Top region cost", count: "Region count", item: "Region", empty: "No regional cost data found." },
|
|
@@ -10253,7 +10253,7 @@ function Mo(e, t) {
|
|
|
10253
10253
|
const r = new Date(n);
|
|
10254
10254
|
return r.setUTCDate(r.getUTCDate() - 1), { currentStart: e, currentEnd: e, previousStart: r.toISOString().slice(0, 10), previousEnd: r.toISOString().slice(0, 10) };
|
|
10255
10255
|
}
|
|
10256
|
-
function
|
|
10256
|
+
function Dt(e, t, n) {
|
|
10257
10257
|
const r = /* @__PURE__ */ new Date(`${e}T00:00:00Z`), s = /* @__PURE__ */ new Date(`${t}T00:00:00Z`);
|
|
10258
10258
|
if (n === "monthly" && r.getUTCFullYear() === s.getUTCFullYear() && r.getUTCMonth() === s.getUTCMonth())
|
|
10259
10259
|
return new Intl.DateTimeFormat("en-US", { month: "long", year: "numeric", timeZone: "UTC" }).format(r);
|
|
@@ -10270,7 +10270,7 @@ function pm(e) {
|
|
|
10270
10270
|
return { key: n, label: r.current?.label || r.previous?.label || n, ...r, difference: i, change: o ? i / Math.abs(o) * 100 : 0 };
|
|
10271
10271
|
}).sort((n, r) => Math.max(r.current?.amount || 0, r.previous?.amount || 0) - Math.max(n.current?.amount || 0, n.previous?.amount || 0));
|
|
10272
10272
|
}
|
|
10273
|
-
function
|
|
10273
|
+
function st(e) {
|
|
10274
10274
|
return e?.length ? e.map((t) => `${t.label}
|
|
10275
10275
|
${X(t.amount, "USD")}`).join(`
|
|
10276
10276
|
`) : "—";
|
|
@@ -10285,7 +10285,7 @@ function Do({ values: e }) {
|
|
|
10285
10285
|
t && /* @__PURE__ */ a.jsxs("div", { className: "absolute right-0 top-8 z-20 w-72 rounded-lg border bg-popover p-3 shadow-xl", children: [
|
|
10286
10286
|
/* @__PURE__ */ a.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
10287
10287
|
/* @__PURE__ */ a.jsx("strong", { className: "text-xs", children: "Cost distribution" }),
|
|
10288
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ a.jsx(
|
|
10288
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ a.jsx(mt, { className: "h-3.5 w-3.5" }) })
|
|
10289
10289
|
] }),
|
|
10290
10290
|
e.length ? e.map((r) => /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between gap-3 border-t py-2 text-xs", children: [
|
|
10291
10291
|
/* @__PURE__ */ a.jsx("span", { className: "min-w-0 truncate", title: r.label, children: r.label }),
|
|
@@ -10295,7 +10295,7 @@ function Do({ values: e }) {
|
|
|
10295
10295
|
] });
|
|
10296
10296
|
}
|
|
10297
10297
|
function $i({ page: e, pages: t, total: n, onChange: r }) {
|
|
10298
|
-
const s = n ? (e - 1) *
|
|
10298
|
+
const s = n ? (e - 1) * Ze + 1 : 0, o = Math.min(e * Ze, n);
|
|
10299
10299
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 border-t px-4 py-4 text-xs text-muted-foreground", children: [
|
|
10300
10300
|
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
10301
10301
|
"Showing ",
|
|
@@ -10318,10 +10318,10 @@ function $i({ page: e, pages: t, total: n, onChange: r }) {
|
|
|
10318
10318
|
] });
|
|
10319
10319
|
}
|
|
10320
10320
|
function gm({ groupBy: e, report: t }) {
|
|
10321
|
-
const [n, r] = U(""), [s, o] = U(1), [i, c] = U(null), [d, u] = U({ percentage: !0, accounts: !0, regions: !0 }), f =
|
|
10321
|
+
const [n, r] = U(""), [s, o] = U(1), [i, c] = U(null), [d, u] = U({ percentage: !0, accounts: !0, regions: !0 }), f = pt[e], l = dn(() => {
|
|
10322
10322
|
const p = n.trim().toLowerCase();
|
|
10323
10323
|
return p ? t.summary.filter((x) => `${x.label} ${x.accountId || ""}`.toLowerCase().includes(p)) : t.summary;
|
|
10324
|
-
}, [t, n]), h = Math.max(1, Math.ceil(l.length /
|
|
10324
|
+
}, [t, n]), h = Math.max(1, Math.ceil(l.length / Ze)), m = l.slice((s - 1) * Ze, s * Ze), g = 3 + Number(d.percentage) + Number(d.accounts) + Number(d.regions);
|
|
10325
10325
|
return Ue(() => {
|
|
10326
10326
|
o(1);
|
|
10327
10327
|
}, [t, n, e]), /* @__PURE__ */ a.jsxs(de, { children: [
|
|
@@ -10378,7 +10378,7 @@ function gm({ groupBy: e, report: t }) {
|
|
|
10378
10378
|
/* @__PURE__ */ a.jsx("p", { className: "text-xs uppercase text-muted-foreground", children: f.item }),
|
|
10379
10379
|
/* @__PURE__ */ a.jsx("h3", { className: "mt-1 text-lg font-semibold", children: i.label })
|
|
10380
10380
|
] }),
|
|
10381
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () => c(null), children: /* @__PURE__ */ a.jsx(
|
|
10381
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => c(null), children: /* @__PURE__ */ a.jsx(mt, {}) })
|
|
10382
10382
|
] }),
|
|
10383
10383
|
/* @__PURE__ */ a.jsxs("div", { className: "mt-5 grid gap-3 sm:grid-cols-3", children: [
|
|
10384
10384
|
/* @__PURE__ */ a.jsx(De, { label: "Cost", value: X(i.amount, t.currency) }),
|
|
@@ -10408,7 +10408,7 @@ function xm({ rows: e, groupBy: t, comparison: n, granularity: r }) {
|
|
|
10408
10408
|
const [s, o] = U(""), [i, c] = U(1), d = dn(() => {
|
|
10409
10409
|
const m = s.trim().toLowerCase();
|
|
10410
10410
|
return m ? e.filter((g) => g.label.toLowerCase().includes(m)) : e;
|
|
10411
|
-
}, [e, s]), u = Math.max(1, Math.ceil(d.length /
|
|
10411
|
+
}, [e, s]), u = Math.max(1, Math.ceil(d.length / Ze)), f = d.slice((i - 1) * Ze, i * Ze), l = Dt(n.currentStart, n.currentEnd, r), h = Dt(n.previousStart, n.previousEnd, r);
|
|
10412
10412
|
return Ue(() => {
|
|
10413
10413
|
c(1);
|
|
10414
10414
|
}, [s, t, n]), /* @__PURE__ */ a.jsxs(de, { children: [
|
|
@@ -10422,7 +10422,7 @@ function xm({ rows: e, groupBy: t, comparison: n, granularity: r }) {
|
|
|
10422
10422
|
/* @__PURE__ */ a.jsx(ue, { className: "overflow-x-auto", children: /* @__PURE__ */ a.jsxs("table", { className: "w-full text-sm", children: [
|
|
10423
10423
|
/* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { className: "border-b bg-primary/5 text-left text-xs uppercase text-primary", children: [
|
|
10424
10424
|
/* @__PURE__ */ a.jsxs("th", { className: "px-4 py-4", children: [
|
|
10425
|
-
|
|
10425
|
+
pt[t].item,
|
|
10426
10426
|
" name"
|
|
10427
10427
|
] }),
|
|
10428
10428
|
/* @__PURE__ */ a.jsxs("th", { className: "px-4", children: [
|
|
@@ -10501,7 +10501,7 @@ function bm(e) {
|
|
|
10501
10501
|
!f && !c.tagKeys.length && /* @__PURE__ */ a.jsx("span", { className: "mt-2 block text-xs text-muted-foreground", children: "No activated AWS cost allocation tags are present in this CUR data." })
|
|
10502
10502
|
] }),
|
|
10503
10503
|
/* @__PURE__ */ a.jsxs("button", { onClick: e.onRun, disabled: u || n === "tag" && !c.tagKeys.length, className: "flex w-full items-center justify-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50", children: [
|
|
10504
|
-
/* @__PURE__ */ a.jsx(
|
|
10504
|
+
/* @__PURE__ */ a.jsx(Mt, { className: `h-4 w-4 ${u ? "animate-spin" : ""}` }),
|
|
10505
10505
|
"Run report"
|
|
10506
10506
|
] })
|
|
10507
10507
|
] })
|
|
@@ -10529,7 +10529,7 @@ function bm(e) {
|
|
|
10529
10529
|
] });
|
|
10530
10530
|
}
|
|
10531
10531
|
function ym() {
|
|
10532
|
-
const { managementAccountId: e, loading: t } =
|
|
10532
|
+
const { managementAccountId: e, loading: t } = zt(), [n, r] = U("service"), [s, o] = U("standard"), [i, c] = U(hm), [d, u] = U(mm), [f, l] = U("monthly"), [h, m] = U("Name"), [g, p] = U({ services: [], regions: [], accounts: [], tagKeys: [], tagValues: [] }), [x, b] = U(Xt), [y, v] = U(Xt), [N, j] = U(null), [k, C] = U(null), [R, _] = U(!0), [O, P] = U(!1), [M, A] = U(null), [$, J] = U(null), Y = os(0), Q = dn(() => k ? pm(k) : [], [k]), he = Mo(d, f), me = (F, Z, V, ie) => ({
|
|
10533
10533
|
start: Z,
|
|
10534
10534
|
end: V,
|
|
10535
10535
|
groupBy: ie,
|
|
@@ -10610,7 +10610,7 @@ function ym() {
|
|
|
10610
10610
|
v(F), E(F);
|
|
10611
10611
|
},
|
|
10612
10612
|
resetFilters: () => {
|
|
10613
|
-
b(
|
|
10613
|
+
b(Xt), v(Xt), E(Xt);
|
|
10614
10614
|
},
|
|
10615
10615
|
runReport: () => {
|
|
10616
10616
|
L(), E();
|
|
@@ -10619,7 +10619,7 @@ function ym() {
|
|
|
10619
10619
|
};
|
|
10620
10620
|
}
|
|
10621
10621
|
function vm(e) {
|
|
10622
|
-
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c } = e, d =
|
|
10622
|
+
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c } = e, d = pt[s];
|
|
10623
10623
|
let u, f;
|
|
10624
10624
|
o === "compare" && n ? (u = [[d.item, "Current Cost", "Previous Cost", "Difference", "Change %"].join(","), ...r.map((h) => [`"${h.label.replace(/"/g, '""')}"`, h.current?.amount || 0, h.previous?.amount || 0, h.difference, h.change.toFixed(2)].join(","))].join(`
|
|
10625
10625
|
`), f = `comparison-report-${s}-${Date.now()}.csv`) : (u = [[d.item, "Cost", "Percentage", "Accounts", "Regions"].join(","), ...t.summary.map((h) => [`"${h.label.replace(/"/g, '""')}"`, h.amount, h.percentage || 0, h.accounts?.length || 0, h.regions?.length || 0].join(","))].join(`
|
|
@@ -10628,19 +10628,19 @@ function vm(e) {
|
|
|
10628
10628
|
l.href = URL.createObjectURL(new Blob([u], { type: "text/csv" })), l.download = f, l.click(), URL.revokeObjectURL(l.href);
|
|
10629
10629
|
}
|
|
10630
10630
|
async function wm(e) {
|
|
10631
|
-
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c, granularity: d } = e, u =
|
|
10631
|
+
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c, granularity: d } = e, u = pt[s], [{ jsPDF: f }, { default: l }] = await Promise.all([import("./jspdf.es.min-6LRJ71fx.js").then((p) => p.j), import("./jspdf.plugin.autotable-CogKBV4l.js")]), h = new f({ orientation: "landscape", unit: "pt", format: "a4" }), m = (p, x, b) => {
|
|
10632
10632
|
h.setFontSize(7), h.setTextColor(100), h.text(`Report generated · All costs in ${t.currency} · ${x} to ${b}`, 40, h.internal.pageSize.height - 18), h.text(`Page ${p.pageNumber}`, h.internal.pageSize.width - 70, h.internal.pageSize.height - 18);
|
|
10633
10633
|
};
|
|
10634
10634
|
if (o === "compare" && n) {
|
|
10635
|
-
h.setFontSize(18), h.setTextColor(25), h.text("Comparison Report", 40, 42), h.setFontSize(9), h.setTextColor(98, 86, 230), h.text("TOTAL COST", 40, 66), h.setTextColor(40), h.text(`Previous Cost: ${n.previous.totalCost}`, 40, 82), h.text(`Current Cost: ${n.current.totalCost}`, 220, 82), h.text(`Granularity: ${d}`, 400, 82), l(h, { startY: 100, head: [[`${u.item} Name`, "Current Cost", "Previous Cost", "Current Period", "Previous Period", "Change %", "Current Accounts", "Previous Accounts", "Current Regions", "Previous Regions"]], body: r.map((p) => [p.label, p.current?.amount?.toFixed(2) || "0.00", p.previous?.amount?.toFixed(2) || "0.00",
|
|
10635
|
+
h.setFontSize(18), h.setTextColor(25), h.text("Comparison Report", 40, 42), h.setFontSize(9), h.setTextColor(98, 86, 230), h.text("TOTAL COST", 40, 66), h.setTextColor(40), h.text(`Previous Cost: ${n.previous.totalCost}`, 40, 82), h.text(`Current Cost: ${n.current.totalCost}`, 220, 82), h.text(`Granularity: ${d}`, 400, 82), l(h, { startY: 100, head: [[`${u.item} Name`, "Current Cost", "Previous Cost", "Current Period", "Previous Period", "Change %", "Current Accounts", "Previous Accounts", "Current Regions", "Previous Regions"]], body: r.map((p) => [p.label, p.current?.amount?.toFixed(2) || "0.00", p.previous?.amount?.toFixed(2) || "0.00", Dt(n.currentStart, n.currentEnd, d), Dt(n.previousStart, n.previousEnd, d), `${p.change.toFixed(4)}%`, st(p.current?.accounts), st(p.previous?.accounts), st(p.current?.regions), st(p.previous?.regions)]), styles: { fontSize: 6, cellPadding: 3, overflow: "linebreak" }, headStyles: { fillColor: [242, 237, 255], textColor: [82, 35, 190] }, didDrawPage: (p) => m(p, n.previousStart, n.currentEnd), margin: { bottom: 32 } }), h.save(`comparison-report-${s}-${Date.now()}.pdf`);
|
|
10636
10636
|
return;
|
|
10637
10637
|
}
|
|
10638
10638
|
h.setFontSize(18), h.setTextColor(25), h.text(u.pdfTitle, 40, 42), h.setFontSize(9), h.setTextColor(98, 86, 230), h.text("REPORT METADATA", 40, 66), h.setTextColor(40), h.text(`Tenant ID: ${t.tenantId || "Current tenant"}`, 40, 82), h.text(`Date Range: ${i} to ${c}`, 40, 97), h.text(`Accrued Total Cost: ${X(t.totalCost, t.currency)}`, 40, 112), h.setTextColor(98, 86, 230), h.text("COST SUMMARY BREAKDOWN", 40, 136);
|
|
10639
10639
|
const g = s === "account";
|
|
10640
|
-
l(h, { startY: 146, head: [g ? ["Account ID", "Account Name", "Total Cost", "Percentage", "Regions"] : [`${u.item} Name`, "Total Cost", "Percentage", "Accounts", "Regions"]], body: t.summary.map((p) => g ? [p.accountId || p.key || "—", p.label, X(p.amount, t.currency), `${(p.percentage || 0).toFixed(2)}%`,
|
|
10640
|
+
l(h, { startY: 146, head: [g ? ["Account ID", "Account Name", "Total Cost", "Percentage", "Regions"] : [`${u.item} Name`, "Total Cost", "Percentage", "Accounts", "Regions"]], body: t.summary.map((p) => g ? [p.accountId || p.key || "—", p.label, X(p.amount, t.currency), `${(p.percentage || 0).toFixed(2)}%`, st(p.regions)] : [p.label, X(p.amount, t.currency), `${(p.percentage || 0).toFixed(2)}%`, st(p.accounts), st(p.regions)]), styles: { fontSize: 7, cellPadding: 4, overflow: "linebreak" }, headStyles: { fillColor: [242, 237, 255], textColor: [82, 35, 190] }, didDrawPage: (p) => m(p, i, c), margin: { bottom: 32 } }), h.save(`${s}-summary-report-${Date.now()}.pdf`);
|
|
10641
10641
|
}
|
|
10642
10642
|
function Sm() {
|
|
10643
|
-
const e = ym(), { groupBy: t, mode: n, report: r, comparison: s, comparedRows: o, loading: i, error: c, dataStatus: d, granularity: u, start: f, end: l } = e, h =
|
|
10643
|
+
const e = ym(), { groupBy: t, mode: n, report: r, comparison: s, comparedRows: o, loading: i, error: c, dataStatus: d, granularity: u, start: f, end: l } = e, h = pt[t], m = r?.summary[0], g = s ? s.current.totalCost - s.previous.totalCost : 0, p = s?.previous.totalCost ? g / Math.abs(s.previous.totalCost) * 100 : 0, x = r ? { report: r, comparison: s, rows: o, groupBy: t, mode: n, start: f, end: l, granularity: u } : null, b = /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2", children: [
|
|
10644
10644
|
/* @__PURE__ */ a.jsxs("button", { onClick: () => x && void wm(x), disabled: !x || i, className: "flex items-center gap-2 rounded-md border bg-card px-3 py-1.5 text-sm disabled:opacity-50", children: [
|
|
10645
10645
|
/* @__PURE__ */ a.jsx(Bf, { className: "h-4 w-4" }),
|
|
10646
10646
|
"PDF"
|
|
@@ -10662,11 +10662,11 @@ function Sm() {
|
|
|
10662
10662
|
/* @__PURE__ */ a.jsx(dr, {})
|
|
10663
10663
|
] }),
|
|
10664
10664
|
!i && (d && !d.ready || c && !d) ? /* @__PURE__ */ a.jsx(nr, { status: d, error: c }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10665
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex gap-1 overflow-x-auto border-b", children: Object.keys(
|
|
10665
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-1 overflow-x-auto border-b", children: Object.keys(pt).map((y) => /* @__PURE__ */ a.jsx("button", { onClick: () => e.changeGroup(y), className: `border-b-2 px-4 py-3 text-sm font-medium ${t === y ? "border-primary text-primary" : "border-transparent text-muted-foreground"}`, children: pt[y].tab }, y)) }),
|
|
10666
10666
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-5 xl:grid-cols-[minmax(0,1fr)_320px]", children: [
|
|
10667
10667
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-5", children: [
|
|
10668
10668
|
c && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
10669
|
-
/* @__PURE__ */ a.jsx(
|
|
10669
|
+
/* @__PURE__ */ a.jsx(We, { className: "h-4 w-4" }),
|
|
10670
10670
|
c
|
|
10671
10671
|
] }),
|
|
10672
10672
|
i ? /* @__PURE__ */ a.jsx(fm, {}) : n === "compare" && s ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
@@ -10683,8 +10683,8 @@ function Sm() {
|
|
|
10683
10683
|
] }),
|
|
10684
10684
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-4", children: [
|
|
10685
10685
|
/* @__PURE__ */ a.jsx(De, { label: "Period accrued total", value: `${X(s.current.totalCost, s.current.currency)} vs ${X(s.previous.totalCost, s.previous.currency)}`, helper: `${p >= 0 ? "+" : ""}${p.toFixed(1)}% from previous period`, trend: p }),
|
|
10686
|
-
/* @__PURE__ */ a.jsx(De, { label:
|
|
10687
|
-
/* @__PURE__ */ a.jsx(De, { label:
|
|
10686
|
+
/* @__PURE__ */ a.jsx(De, { label: Dt(s.currentStart, s.currentEnd, u), value: X(s.current.totalCost, s.current.currency), helper: "Current period spending" }),
|
|
10687
|
+
/* @__PURE__ */ a.jsx(De, { label: Dt(s.previousStart, s.previousEnd, u), value: X(s.previous.totalCost, s.previous.currency), helper: "Previous period spending" }),
|
|
10688
10688
|
/* @__PURE__ */ a.jsx(De, { label: u === "monthly" ? "Monthly change" : "Period change", value: `${g >= 0 ? "+" : ""}${X(g, s.current.currency)}`, helper: `${p >= 0 ? "+" : ""}${p.toFixed(1)}% from previous period`, trend: g })
|
|
10689
10689
|
] })
|
|
10690
10690
|
] }),
|
|
@@ -10692,7 +10692,7 @@ function Sm() {
|
|
|
10692
10692
|
/* @__PURE__ */ a.jsx(xm, { rows: o, groupBy: t, comparison: s, granularity: u })
|
|
10693
10693
|
] }) : r ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10694
10694
|
r.message && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 rounded-lg border bg-muted/50 p-3 text-sm text-muted-foreground", children: [
|
|
10695
|
-
/* @__PURE__ */ a.jsx(
|
|
10695
|
+
/* @__PURE__ */ a.jsx(We, { className: "h-4 w-4" }),
|
|
10696
10696
|
r.message
|
|
10697
10697
|
] }),
|
|
10698
10698
|
/* @__PURE__ */ a.jsxs("section", { className: "rounded-xl bg-primary/5 p-4", children: [
|
|
@@ -10766,14 +10766,14 @@ const Fo = {
|
|
|
10766
10766
|
function Nm({ status: e }) {
|
|
10767
10767
|
return /* @__PURE__ */ a.jsx("span", { className: `rounded-full border px-2 py-0.5 text-xs font-medium ${Fo[e] || Fo.PENDING}`, children: e.replace(/_/g, " ") });
|
|
10768
10768
|
}
|
|
10769
|
-
function
|
|
10769
|
+
function Zt({ label: e, value: t, mono: n }) {
|
|
10770
10770
|
return /* @__PURE__ */ a.jsxs("div", { className: "flex flex-col gap-0.5", children: [
|
|
10771
10771
|
/* @__PURE__ */ a.jsx("span", { className: "text-xs text-muted-foreground", children: e }),
|
|
10772
10772
|
/* @__PURE__ */ a.jsx("span", { className: `break-all text-sm ${n ? "font-mono text-xs" : ""}`, children: t || "—" })
|
|
10773
10773
|
] });
|
|
10774
10774
|
}
|
|
10775
10775
|
function Cm() {
|
|
10776
|
-
const { managementAccountId: e, loading: t } =
|
|
10776
|
+
const { managementAccountId: e, loading: t } = zt(), [n, r] = U([]), [s, o] = U([]), [i, c] = U(!0), [d, u] = U(null), f = gt(async () => {
|
|
10777
10777
|
c(!0), u(null);
|
|
10778
10778
|
try {
|
|
10779
10779
|
const l = await ne.get("/cur-discovery", { params: { logLimit: 100, managementAccountId: e } });
|
|
@@ -10799,11 +10799,11 @@ function Cm() {
|
|
|
10799
10799
|
/* @__PURE__ */ a.jsx(dr, {}),
|
|
10800
10800
|
/* @__PURE__ */ a.jsx("button", { onClick: () => {
|
|
10801
10801
|
f();
|
|
10802
|
-
}, disabled: i || t, className: "rounded-lg border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh", children: /* @__PURE__ */ a.jsx(
|
|
10802
|
+
}, disabled: i || t, className: "rounded-lg border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh", children: /* @__PURE__ */ a.jsx(Mt, { className: `h-4 w-4 ${i || t ? "animate-spin" : ""}` }) })
|
|
10803
10803
|
] })
|
|
10804
10804
|
] }),
|
|
10805
10805
|
d && /* @__PURE__ */ a.jsxs("div", { className: "flex items-center gap-2 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
10806
|
-
/* @__PURE__ */ a.jsx(
|
|
10806
|
+
/* @__PURE__ */ a.jsx(We, { className: "h-4 w-4" }),
|
|
10807
10807
|
d
|
|
10808
10808
|
] }),
|
|
10809
10809
|
!i && !d && !n.length && /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsx(ue, { className: "py-10 text-center text-sm text-muted-foreground", children: "No discovery job exists for this tenant yet. One is created automatically once the AWS connection is verified and the Cost plugin is entitled." }) }),
|
|
@@ -10829,15 +10829,11 @@ function Cm() {
|
|
|
10829
10829
|
] })
|
|
10830
10830
|
] }),
|
|
10831
10831
|
/* @__PURE__ */ a.jsxs(ue, { className: "grid gap-4 md:grid-cols-2 lg:grid-cols-3", children: [
|
|
10832
|
-
/* @__PURE__ */ a.jsx(
|
|
10833
|
-
/* @__PURE__ */ a.jsx(
|
|
10834
|
-
/* @__PURE__ */ a.jsx(
|
|
10835
|
-
/* @__PURE__ */ a.jsx(
|
|
10836
|
-
/* @__PURE__ */ a.jsx(
|
|
10837
|
-
/* @__PURE__ */ a.jsx(Be, { label: "Table location", value: l.tableLocation, mono: !0 }),
|
|
10838
|
-
/* @__PURE__ */ a.jsx(Be, { label: "Sample object", value: l.sampleObjectKey, mono: !0 }),
|
|
10839
|
-
/* @__PURE__ */ a.jsx(Be, { label: "Last data", value: kn(l.lastDataAt) }),
|
|
10840
|
-
/* @__PURE__ */ a.jsx(Be, { label: "Last checked", value: kn(l.lastFinishedAt || l.lastStartedAt) }),
|
|
10832
|
+
/* @__PURE__ */ a.jsx(Zt, { label: "Region", value: l.region }),
|
|
10833
|
+
/* @__PURE__ */ a.jsx(Zt, { label: "Glue database", value: l.database, mono: !0 }),
|
|
10834
|
+
/* @__PURE__ */ a.jsx(Zt, { label: "Discovered table", value: l.table, mono: !0 }),
|
|
10835
|
+
/* @__PURE__ */ a.jsx(Zt, { label: "Last data", value: kn(l.lastDataAt) }),
|
|
10836
|
+
/* @__PURE__ */ a.jsx(Zt, { label: "Last checked", value: kn(l.lastFinishedAt || l.lastStartedAt) }),
|
|
10841
10837
|
l.lastError && /* @__PURE__ */ a.jsx("div", { className: "md:col-span-2 lg:col-span-3 rounded-lg border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: l.lastError })
|
|
10842
10838
|
] })
|
|
10843
10839
|
] }, l.id)),
|
|
@@ -10874,7 +10870,7 @@ const jm = (e) => e.launchUrl || `https://console.aws.amazon.com/cloudformation/
|
|
|
10874
10870
|
return n ? `${t} ${n}` : t;
|
|
10875
10871
|
};
|
|
10876
10872
|
function km() {
|
|
10877
|
-
const { selectManagementAccount: e, refreshSources: t } =
|
|
10873
|
+
const { selectManagementAccount: e, refreshSources: t } = zt(), [n, r] = U([]), [s, o] = U(!1), [i, c] = U(!0), [d, u] = U(!1), [f, l] = U(null), [h, m] = U(null), [g, p] = U(""), [x, b] = U(!1), [y, v] = U(null), [N, j] = U(null), [k, C] = U(null), R = gt(async () => {
|
|
10878
10874
|
c(!0), C(null);
|
|
10879
10875
|
try {
|
|
10880
10876
|
const A = await oe.getSources();
|
|
@@ -10947,7 +10943,7 @@ function km() {
|
|
|
10947
10943
|
/* @__PURE__ */ a.jsxs("div", { className: "flex gap-2", children: [
|
|
10948
10944
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
10949
10945
|
R();
|
|
10950
|
-
}, disabled: i, className: "rounded-md border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh sources", title: "Refresh sources", children: /* @__PURE__ */ a.jsx(
|
|
10946
|
+
}, disabled: i, className: "rounded-md border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh sources", title: "Refresh sources", children: /* @__PURE__ */ a.jsx(Mt, { className: `h-4 w-4 ${i ? "animate-spin" : ""}` }) }),
|
|
10951
10947
|
(s || n.length === 0) && /* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
10952
10948
|
C(null), u(!0);
|
|
10953
10949
|
}, className: "flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground hover:opacity-90", children: [
|
|
@@ -10957,7 +10953,7 @@ function km() {
|
|
|
10957
10953
|
] })
|
|
10958
10954
|
] }),
|
|
10959
10955
|
k && /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-2 rounded-md border border-destructive/40 bg-destructive/10 p-3 text-sm text-destructive", children: [
|
|
10960
|
-
/* @__PURE__ */ a.jsx(
|
|
10956
|
+
/* @__PURE__ */ a.jsx(We, { className: "mt-0.5 h-4 w-4 shrink-0" }),
|
|
10961
10957
|
k
|
|
10962
10958
|
] }),
|
|
10963
10959
|
!i && n.length === 0 && /* @__PURE__ */ a.jsxs("div", { className: "rounded-md border border-dashed py-14 text-center", children: [
|
|
@@ -10989,12 +10985,12 @@ function km() {
|
|
|
10989
10985
|
/* @__PURE__ */ a.jsx("td", { className: "px-4 py-3", children: /* @__PURE__ */ a.jsxs("div", { className: "flex justify-end gap-2", children: [
|
|
10990
10986
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
10991
10987
|
O(A.connectionId);
|
|
10992
|
-
}, disabled: !!N, className: "rounded-md border p-2 hover:bg-muted disabled:opacity-50", title: "Download CloudFormation template", "aria-label": "Download CloudFormation template", children: N === `download-${A.connectionId}` ? /* @__PURE__ */ a.jsx(
|
|
10988
|
+
}, disabled: !!N, className: "rounded-md border p-2 hover:bg-muted disabled:opacity-50", title: "Download CloudFormation template", "aria-label": "Download CloudFormation template", children: N === `download-${A.connectionId}` ? /* @__PURE__ */ a.jsx(lt, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ a.jsx(bs, { className: "h-4 w-4" }) }),
|
|
10993
10989
|
/* @__PURE__ */ a.jsx("a", { href: jm(A), target: "_blank", rel: "noreferrer", className: "rounded-md border p-2 hover:bg-muted", title: `Open AWS CloudFormation as ${A.stackName || `MeyiConnect-${A.connectionId}-Management`}`, "aria-label": "Open AWS CloudFormation", children: /* @__PURE__ */ a.jsx(pi, { className: "h-4 w-4" }) }),
|
|
10994
10990
|
/* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
10995
10991
|
P(A.connectionId);
|
|
10996
10992
|
}, disabled: !!N || A.status === "CONNECTED", className: "flex items-center gap-2 rounded-md border px-3 py-2 font-medium hover:bg-muted disabled:opacity-50", children: [
|
|
10997
|
-
N === `verify-${A.connectionId}` ? /* @__PURE__ */ a.jsx(
|
|
10993
|
+
N === `verify-${A.connectionId}` ? /* @__PURE__ */ a.jsx(lt, { className: "h-4 w-4 animate-spin" }) : A.status === "CONNECTED" ? /* @__PURE__ */ a.jsx(Tf, { className: "h-4 w-4 text-emerald-600" }) : /* @__PURE__ */ a.jsx(Mt, { className: "h-4 w-4" }),
|
|
10998
10994
|
A.status === "CONNECTED" ? "Connected" : "Verify"
|
|
10999
10995
|
] }),
|
|
11000
10996
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => l(A), disabled: !!N, className: "rounded-md border p-2 text-destructive hover:bg-destructive/10 disabled:opacity-50", title: "Remove Cost source", "aria-label": "Remove Cost source", children: /* @__PURE__ */ a.jsx(yi, { className: "h-4 w-4" }) })
|
|
@@ -11006,7 +11002,7 @@ function km() {
|
|
|
11006
11002
|
}, className: "w-full max-w-md rounded-md border bg-background p-5 shadow-xl", children: [
|
|
11007
11003
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11008
11004
|
/* @__PURE__ */ a.jsx("h2", { id: "add-source-title", className: "text-lg font-semibold", children: "Add AWS account" }),
|
|
11009
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => u(!1), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11005
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => u(!1), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4" }) })
|
|
11010
11006
|
] }),
|
|
11011
11007
|
/* @__PURE__ */ a.jsx("label", { className: "mt-5 block text-sm font-medium", htmlFor: "aws-account-id", children: "AWS account ID" }),
|
|
11012
11008
|
/* @__PURE__ */ a.jsx("input", { id: "aws-account-id", value: g, onChange: (A) => p(A.target.value.replace(/\D/g, "").slice(0, 12)), inputMode: "numeric", autoComplete: "off", placeholder: "123456789012", className: "mt-2 h-10 w-full rounded-md border bg-background px-3 font-mono outline-none focus:ring-2 focus:ring-ring" }),
|
|
@@ -11020,7 +11016,7 @@ function km() {
|
|
|
11020
11016
|
/* @__PURE__ */ a.jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [
|
|
11021
11017
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => u(!1), className: "rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted", children: "Cancel" }),
|
|
11022
11018
|
/* @__PURE__ */ a.jsxs("button", { type: "submit", disabled: N === "create" || g.length !== 12, className: "flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50", children: [
|
|
11023
|
-
N === "create" && /* @__PURE__ */ a.jsx(
|
|
11019
|
+
N === "create" && /* @__PURE__ */ a.jsx(lt, { className: "h-4 w-4 animate-spin" }),
|
|
11024
11020
|
"Create source"
|
|
11025
11021
|
] })
|
|
11026
11022
|
] })
|
|
@@ -11028,7 +11024,7 @@ function km() {
|
|
|
11028
11024
|
f && /* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4", role: "dialog", "aria-modal": "true", "aria-labelledby": "remove-source-title", children: /* @__PURE__ */ a.jsxs("div", { className: "w-full max-w-md rounded-md border bg-background p-5 shadow-xl", children: [
|
|
11029
11025
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11030
11026
|
/* @__PURE__ */ a.jsx("h2", { id: "remove-source-title", className: "text-lg font-semibold", children: "Remove Cost source" }),
|
|
11031
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => l(null), disabled: !!N, className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11027
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => l(null), disabled: !!N, className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4" }) })
|
|
11032
11028
|
] }),
|
|
11033
11029
|
/* @__PURE__ */ a.jsxs("p", { className: "mt-4 text-sm", children: [
|
|
11034
11030
|
"Remove AWS account ",
|
|
@@ -11041,7 +11037,7 @@ function km() {
|
|
|
11041
11037
|
/* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
11042
11038
|
M();
|
|
11043
11039
|
}, disabled: !!N, className: "flex items-center gap-2 rounded-md bg-destructive px-4 py-2 text-sm font-medium text-destructive-foreground disabled:opacity-50", children: [
|
|
11044
|
-
N === `remove-${f.connectionId}` && /* @__PURE__ */ a.jsx(
|
|
11040
|
+
N === `remove-${f.connectionId}` && /* @__PURE__ */ a.jsx(lt, { className: "h-4 w-4 animate-spin" }),
|
|
11045
11041
|
"Remove"
|
|
11046
11042
|
] })
|
|
11047
11043
|
] })
|
|
@@ -11049,7 +11045,7 @@ function km() {
|
|
|
11049
11045
|
h && /* @__PURE__ */ a.jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4", role: "dialog", "aria-modal": "true", "aria-labelledby": "cleanup-title", children: /* @__PURE__ */ a.jsxs("div", { className: "w-full max-w-md rounded-md border bg-background p-5 shadow-xl", children: [
|
|
11050
11046
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11051
11047
|
/* @__PURE__ */ a.jsx("h2", { id: "cleanup-title", className: "text-lg font-semibold", children: "Delete the AWS resources" }),
|
|
11052
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => m(null), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11048
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => m(null), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4" }) })
|
|
11053
11049
|
] }),
|
|
11054
11050
|
/* @__PURE__ */ a.jsxs("p", { className: "mt-4 text-sm", children: [
|
|
11055
11051
|
"The source is removed. In your AWS management account, CloudFormation console, region ",
|
|
@@ -11092,7 +11088,7 @@ function Tm({ open: e, schedule: t, saving: n, onClose: r, onSave: s }) {
|
|
|
11092
11088
|
] }),
|
|
11093
11089
|
/* @__PURE__ */ a.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Reports run automatically against completed AWS CUR periods." })
|
|
11094
11090
|
] }),
|
|
11095
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: r, className: "rounded-md p-1.5 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11091
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: r, className: "rounded-md p-1.5 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4" }) })
|
|
11096
11092
|
] }),
|
|
11097
11093
|
/* @__PURE__ */ a.jsxs("form", { className: "space-y-5 p-5", onSubmit: (d) => {
|
|
11098
11094
|
d.preventDefault(), s({ enabled: o.enabled, frequency: o.frequency, time: o.time, timezone: o.timezone, dayOfWeek: o.dayOfWeek, dayOfMonth: o.dayOfMonth, ticketLimit: o.ticketLimit ?? 10 }).then(r);
|
|
@@ -11144,7 +11140,7 @@ function Tm({ open: e, schedule: t, saving: n, onClose: r, onSave: s }) {
|
|
|
11144
11140
|
] })
|
|
11145
11141
|
] }) });
|
|
11146
11142
|
}
|
|
11147
|
-
function
|
|
11143
|
+
function Qe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
11148
11144
|
return function(s) {
|
|
11149
11145
|
if (e?.(s), n === !1 || !s || !s.defaultPrevented)
|
|
11150
11146
|
return t?.(s);
|
|
@@ -11171,7 +11167,7 @@ function Om(...e) {
|
|
|
11171
11167
|
};
|
|
11172
11168
|
};
|
|
11173
11169
|
}
|
|
11174
|
-
function
|
|
11170
|
+
function wt(...e) {
|
|
11175
11171
|
return S.useCallback(Om(...e), e);
|
|
11176
11172
|
}
|
|
11177
11173
|
function Lm(e, t = []) {
|
|
@@ -11301,7 +11297,7 @@ function Bi(e) {
|
|
|
11301
11297
|
// itself as the slot target — throw a descriptive error below instead.
|
|
11302
11298
|
!c && S.Children.count(s) === 1 && S.isValidElement(s) && (i = s)
|
|
11303
11299
|
);
|
|
11304
|
-
const u = i ? Hm(i) : void 0, f =
|
|
11300
|
+
const u = i ? Hm(i) : void 0, f = wt(r, u);
|
|
11305
11301
|
if (!i) {
|
|
11306
11302
|
if (s || s === 0)
|
|
11307
11303
|
throw new Error(
|
|
@@ -11364,7 +11360,7 @@ var Ym = (e) => `${e} failed to slot onto its children. Expected a single React
|
|
|
11364
11360
|
"span",
|
|
11365
11361
|
"svg",
|
|
11366
11362
|
"ul"
|
|
11367
|
-
],
|
|
11363
|
+
], Ve = Xm.reduce((e, t) => {
|
|
11368
11364
|
const n = /* @__PURE__ */ Bi(`Primitive.${t}`), r = S.forwardRef((s, o) => {
|
|
11369
11365
|
const { asChild: i, ...c } = s, d = i ? n : t;
|
|
11370
11366
|
return typeof window < "u" && (window[/* @__PURE__ */ Symbol.for("radix-ui")] = !0), /* @__PURE__ */ a.jsx(d, { ...c, ref: o });
|
|
@@ -11401,7 +11397,7 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11401
11397
|
onInteractOutside: c,
|
|
11402
11398
|
onDismiss: d,
|
|
11403
11399
|
...u
|
|
11404
|
-
} = e, f = S.useContext(Ss), [l, h] = S.useState(null), m = l?.ownerDocument ?? globalThis?.document, [, g] = S.useState({}), p =
|
|
11400
|
+
} = e, f = S.useContext(Ss), [l, h] = S.useState(null), m = l?.ownerDocument ?? globalThis?.document, [, g] = S.useState({}), p = wt(t, h), x = Array.from(f.layers), [b] = [
|
|
11405
11401
|
...f.layersWithOutsidePointerEventsDisabled
|
|
11406
11402
|
].slice(-1), y = b ? x.indexOf(b) : -1, v = l ? x.indexOf(l) : -1, N = f.layersWithOutsidePointerEventsDisabled.size > 0, j = v >= y, k = S.useRef(!1), C = ap(
|
|
11407
11403
|
(P) => {
|
|
@@ -11446,7 +11442,7 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11446
11442
|
const P = () => g({});
|
|
11447
11443
|
return document.addEventListener(ns, P), () => document.removeEventListener(ns, P);
|
|
11448
11444
|
}, []), /* @__PURE__ */ a.jsx(
|
|
11449
|
-
|
|
11445
|
+
Ve.div,
|
|
11450
11446
|
{
|
|
11451
11447
|
...u,
|
|
11452
11448
|
ref: p,
|
|
@@ -11454,9 +11450,9 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11454
11450
|
pointerEvents: N ? j ? "auto" : "none" : void 0,
|
|
11455
11451
|
...e.style
|
|
11456
11452
|
},
|
|
11457
|
-
onFocusCapture:
|
|
11458
|
-
onBlurCapture:
|
|
11459
|
-
onPointerDownCapture:
|
|
11453
|
+
onFocusCapture: Qe(e.onFocusCapture, R.onFocusCapture),
|
|
11454
|
+
onBlurCapture: Qe(e.onBlurCapture, R.onBlurCapture),
|
|
11455
|
+
onPointerDownCapture: Qe(
|
|
11460
11456
|
e.onPointerDownCapture,
|
|
11461
11457
|
C.onPointerDownCapture
|
|
11462
11458
|
)
|
|
@@ -11466,14 +11462,14 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11466
11462
|
);
|
|
11467
11463
|
zi.displayName = Qm;
|
|
11468
11464
|
var np = "DismissableLayerBranch", rp = S.forwardRef((e, t) => {
|
|
11469
|
-
const n = S.useContext(Ss), r = S.useRef(null), s =
|
|
11465
|
+
const n = S.useContext(Ss), r = S.useRef(null), s = wt(t, r);
|
|
11470
11466
|
return S.useEffect(() => {
|
|
11471
11467
|
const o = r.current;
|
|
11472
11468
|
if (o)
|
|
11473
11469
|
return n.branches.add(o), () => {
|
|
11474
11470
|
n.branches.delete(o);
|
|
11475
11471
|
};
|
|
11476
|
-
}, [n.branches]), /* @__PURE__ */ a.jsx(
|
|
11472
|
+
}, [n.branches]), /* @__PURE__ */ a.jsx(Ve.div, { ...e, ref: s });
|
|
11477
11473
|
});
|
|
11478
11474
|
rp.displayName = np;
|
|
11479
11475
|
function sp() {
|
|
@@ -11593,7 +11589,7 @@ var Ir = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Wo
|
|
|
11593
11589
|
onMountAutoFocus: s,
|
|
11594
11590
|
onUnmountAutoFocus: o,
|
|
11595
11591
|
...i
|
|
11596
|
-
} = e, [c, d] = S.useState(null), u = ln(s), f = ln(o), l = S.useRef(null), h =
|
|
11592
|
+
} = e, [c, d] = S.useState(null), u = ln(s), f = ln(o), l = S.useRef(null), h = wt(t, d), m = S.useRef({
|
|
11597
11593
|
paused: !1,
|
|
11598
11594
|
pause() {
|
|
11599
11595
|
this.paused = !0;
|
|
@@ -11607,15 +11603,15 @@ var Ir = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Wo
|
|
|
11607
11603
|
let p = function(v) {
|
|
11608
11604
|
if (m.paused || !c) return;
|
|
11609
11605
|
const N = v.target;
|
|
11610
|
-
c.contains(N) ? l.current = N :
|
|
11606
|
+
c.contains(N) ? l.current = N : Ge(l.current, { select: !0 });
|
|
11611
11607
|
}, x = function(v) {
|
|
11612
11608
|
if (m.paused || !c) return;
|
|
11613
11609
|
const N = v.relatedTarget;
|
|
11614
|
-
N !== null && (c.contains(N) ||
|
|
11610
|
+
N !== null && (c.contains(N) || Ge(l.current, { select: !0 }));
|
|
11615
11611
|
}, b = function(v) {
|
|
11616
11612
|
if (document.activeElement === document.body)
|
|
11617
11613
|
for (const j of v)
|
|
11618
|
-
j.removedNodes.length > 0 &&
|
|
11614
|
+
j.removedNodes.length > 0 && Ge(c);
|
|
11619
11615
|
};
|
|
11620
11616
|
document.addEventListener("focusin", p), document.addEventListener("focusout", x);
|
|
11621
11617
|
const y = new MutationObserver(b);
|
|
@@ -11629,12 +11625,12 @@ var Ir = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Wo
|
|
|
11629
11625
|
const p = document.activeElement;
|
|
11630
11626
|
if (!c.contains(p)) {
|
|
11631
11627
|
const b = new CustomEvent(Ir, Wo);
|
|
11632
|
-
c.addEventListener(Ir, u), c.dispatchEvent(b), b.defaultPrevented || (lp(mp(Hi(c)), { select: !0 }), document.activeElement === p &&
|
|
11628
|
+
c.addEventListener(Ir, u), c.dispatchEvent(b), b.defaultPrevented || (lp(mp(Hi(c)), { select: !0 }), document.activeElement === p && Ge(c));
|
|
11633
11629
|
}
|
|
11634
11630
|
return () => {
|
|
11635
11631
|
c.removeEventListener(Ir, u), setTimeout(() => {
|
|
11636
11632
|
const b = new CustomEvent(Mr, Wo);
|
|
11637
|
-
c.addEventListener(Mr, f), c.dispatchEvent(b), b.defaultPrevented ||
|
|
11633
|
+
c.addEventListener(Mr, f), c.dispatchEvent(b), b.defaultPrevented || Ge(p ?? document.body, { select: !0 }), c.removeEventListener(Mr, f), Ho.remove(m);
|
|
11638
11634
|
}, 0);
|
|
11639
11635
|
};
|
|
11640
11636
|
}
|
|
@@ -11645,18 +11641,18 @@ var Ir = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Wo
|
|
|
11645
11641
|
const x = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, b = document.activeElement;
|
|
11646
11642
|
if (x && b) {
|
|
11647
11643
|
const y = p.currentTarget, [v, N] = dp(y);
|
|
11648
|
-
v && N ? !p.shiftKey && b === N ? (p.preventDefault(), n &&
|
|
11644
|
+
v && N ? !p.shiftKey && b === N ? (p.preventDefault(), n && Ge(v, { select: !0 })) : p.shiftKey && b === v && (p.preventDefault(), n && Ge(N, { select: !0 })) : b === y && p.preventDefault();
|
|
11649
11645
|
}
|
|
11650
11646
|
},
|
|
11651
11647
|
[n, r, m.paused]
|
|
11652
11648
|
);
|
|
11653
|
-
return /* @__PURE__ */ a.jsx(
|
|
11649
|
+
return /* @__PURE__ */ a.jsx(Ve.div, { tabIndex: -1, ...i, ref: h, onKeyDown: g });
|
|
11654
11650
|
});
|
|
11655
11651
|
Vi.displayName = cp;
|
|
11656
11652
|
function lp(e, { select: t = !1 } = {}) {
|
|
11657
11653
|
const n = document.activeElement;
|
|
11658
11654
|
for (const r of e)
|
|
11659
|
-
if (
|
|
11655
|
+
if (Ge(r, { select: t }), document.activeElement !== n) return;
|
|
11660
11656
|
}
|
|
11661
11657
|
function dp(e) {
|
|
11662
11658
|
const t = Hi(e), n = Vo(t, e), r = Vo(t.reverse(), e);
|
|
@@ -11690,7 +11686,7 @@ function up(e, { upTo: t }) {
|
|
|
11690
11686
|
function fp(e) {
|
|
11691
11687
|
return e instanceof HTMLInputElement && "select" in e;
|
|
11692
11688
|
}
|
|
11693
|
-
function
|
|
11689
|
+
function Ge(e, { select: t = !1 } = {}) {
|
|
11694
11690
|
if (e && e.focus) {
|
|
11695
11691
|
const n = document.activeElement;
|
|
11696
11692
|
e.focus({ preventScroll: !0 }), e !== n && fp(e) && t && e.select();
|
|
@@ -11720,7 +11716,7 @@ var pp = "Portal", qi = S.forwardRef((e, t) => {
|
|
|
11720
11716
|
const { container: n, ...r } = e, [s, o] = S.useState(!1);
|
|
11721
11717
|
cn(() => o(!0), []);
|
|
11722
11718
|
const i = n || s && globalThis?.document?.body;
|
|
11723
|
-
return i ? aa.createPortal(/* @__PURE__ */ a.jsx(
|
|
11719
|
+
return i ? aa.createPortal(/* @__PURE__ */ a.jsx(Ve.div, { ...r, ref: t }), i) : null;
|
|
11724
11720
|
});
|
|
11725
11721
|
qi.displayName = pp;
|
|
11726
11722
|
function gp(e, t) {
|
|
@@ -11814,13 +11810,13 @@ function yp(e) {
|
|
|
11814
11810
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
11815
11811
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
11816
11812
|
}
|
|
11817
|
-
var Pn = 0,
|
|
11813
|
+
var Pn = 0, Nt = null;
|
|
11818
11814
|
function vp() {
|
|
11819
11815
|
S.useEffect(() => {
|
|
11820
|
-
|
|
11821
|
-
const { start: e, end: t } =
|
|
11816
|
+
Nt || (Nt = { start: Ko(), end: Ko() });
|
|
11817
|
+
const { start: e, end: t } = Nt;
|
|
11822
11818
|
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), Pn++, () => {
|
|
11823
|
-
Pn === 1 && (
|
|
11819
|
+
Pn === 1 && (Nt?.start.remove(), Nt?.end.remove(), Nt = null), Pn = Math.max(0, Pn - 1);
|
|
11824
11820
|
};
|
|
11825
11821
|
}, []);
|
|
11826
11822
|
}
|
|
@@ -12058,14 +12054,14 @@ var Ip = function() {
|
|
|
12058
12054
|
right: t[2],
|
|
12059
12055
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
12060
12056
|
};
|
|
12061
|
-
}, $p = Ji(),
|
|
12057
|
+
}, $p = Ji(), Tt = "data-scroll-locked", Bp = function(e, t, n, r) {
|
|
12062
12058
|
var s = e.left, o = e.top, i = e.right, c = e.gap;
|
|
12063
12059
|
return n === void 0 && (n = "margin"), `
|
|
12064
12060
|
.`.concat(Sp, ` {
|
|
12065
12061
|
overflow: hidden `).concat(r, `;
|
|
12066
12062
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
12067
12063
|
}
|
|
12068
|
-
body[`).concat(
|
|
12064
|
+
body[`).concat(Tt, `] {
|
|
12069
12065
|
overflow: hidden `).concat(r, `;
|
|
12070
12066
|
overscroll-behavior: contain;
|
|
12071
12067
|
`).concat([
|
|
@@ -12098,18 +12094,18 @@ var Ip = function() {
|
|
|
12098
12094
|
margin-right: 0 `).concat(r, `;
|
|
12099
12095
|
}
|
|
12100
12096
|
|
|
12101
|
-
body[`).concat(
|
|
12097
|
+
body[`).concat(Tt, `] {
|
|
12102
12098
|
`).concat(Rp, ": ").concat(c, `px;
|
|
12103
12099
|
}
|
|
12104
12100
|
`);
|
|
12105
12101
|
}, Jo = function() {
|
|
12106
|
-
var e = parseInt(document.body.getAttribute(
|
|
12102
|
+
var e = parseInt(document.body.getAttribute(Tt) || "0", 10);
|
|
12107
12103
|
return isFinite(e) ? e : 0;
|
|
12108
12104
|
}, zp = function() {
|
|
12109
12105
|
S.useEffect(function() {
|
|
12110
|
-
return document.body.setAttribute(
|
|
12106
|
+
return document.body.setAttribute(Tt, (Jo() + 1).toString()), function() {
|
|
12111
12107
|
var e = Jo() - 1;
|
|
12112
|
-
e <= 0 ? document.body.removeAttribute(
|
|
12108
|
+
e <= 0 ? document.body.removeAttribute(Tt) : document.body.setAttribute(Tt, e.toString());
|
|
12113
12109
|
};
|
|
12114
12110
|
}, []);
|
|
12115
12111
|
}, Wp = function(e) {
|
|
@@ -12131,7 +12127,7 @@ if (typeof window < "u")
|
|
|
12131
12127
|
} catch {
|
|
12132
12128
|
rs = !1;
|
|
12133
12129
|
}
|
|
12134
|
-
var
|
|
12130
|
+
var Ct = rs ? { passive: !1 } : !1, Vp = function(e) {
|
|
12135
12131
|
return e.tagName === "TEXTAREA";
|
|
12136
12132
|
}, Xi = function(e, t) {
|
|
12137
12133
|
if (!(e instanceof Element))
|
|
@@ -12207,7 +12203,7 @@ var jt = rs ? { passive: !1 } : !1, Vp = function(e) {
|
|
|
12207
12203
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
12208
12204
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
12209
12205
|
`);
|
|
12210
|
-
}, Qp = 0,
|
|
12206
|
+
}, Qp = 0, jt = [];
|
|
12211
12207
|
function eg(e) {
|
|
12212
12208
|
var t = S.useRef([]), n = S.useRef([0, 0]), r = S.useRef(), s = S.useState(Qp++)[0], o = S.useState(Ji)[0], i = S.useRef(e);
|
|
12213
12209
|
S.useEffect(function() {
|
|
@@ -12245,7 +12241,7 @@ function eg(e) {
|
|
|
12245
12241
|
return Jp(M, x, p, M === "h" ? v : N);
|
|
12246
12242
|
}, []), d = S.useCallback(function(p) {
|
|
12247
12243
|
var x = p;
|
|
12248
|
-
if (!(!
|
|
12244
|
+
if (!(!jt.length || jt[jt.length - 1] !== o)) {
|
|
12249
12245
|
var b = "deltaY" in x ? Zo(x) : Tn(x), y = t.current.filter(function(j) {
|
|
12250
12246
|
return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && Xp(j.delta, b);
|
|
12251
12247
|
})[0];
|
|
@@ -12275,14 +12271,14 @@ function eg(e) {
|
|
|
12275
12271
|
u(p.type, Tn(p), p.target, c(p, e.lockRef.current));
|
|
12276
12272
|
}, []);
|
|
12277
12273
|
S.useEffect(function() {
|
|
12278
|
-
return
|
|
12274
|
+
return jt.push(o), e.setCallbacks({
|
|
12279
12275
|
onScrollCapture: l,
|
|
12280
12276
|
onWheelCapture: l,
|
|
12281
12277
|
onTouchMoveCapture: h
|
|
12282
|
-
}), document.addEventListener("wheel", d,
|
|
12283
|
-
|
|
12278
|
+
}), document.addEventListener("wheel", d, Ct), document.addEventListener("touchmove", d, Ct), document.addEventListener("touchstart", f, Ct), function() {
|
|
12279
|
+
jt = jt.filter(function(p) {
|
|
12284
12280
|
return p !== o;
|
|
12285
|
-
}), document.removeEventListener("wheel", d,
|
|
12281
|
+
}), document.removeEventListener("wheel", d, Ct), document.removeEventListener("touchmove", d, Ct), document.removeEventListener("touchstart", f, Ct);
|
|
12286
12282
|
};
|
|
12287
12283
|
}, []);
|
|
12288
12284
|
var m = e.removeScrollBar, g = e.inert;
|
|
@@ -12308,7 +12304,7 @@ var rg = function(e) {
|
|
|
12308
12304
|
return null;
|
|
12309
12305
|
var t = Array.isArray(e) ? e[0] : e;
|
|
12310
12306
|
return t.ownerDocument.body;
|
|
12311
|
-
},
|
|
12307
|
+
}, Et = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Ln = {}, $r = 0, tc = function(e) {
|
|
12312
12308
|
return e && (e.host || tc(e.parentNode));
|
|
12313
12309
|
}, sg = function(e, t) {
|
|
12314
12310
|
return t.map(function(n) {
|
|
@@ -12332,8 +12328,8 @@ var rg = function(e) {
|
|
|
12332
12328
|
f(h);
|
|
12333
12329
|
else
|
|
12334
12330
|
try {
|
|
12335
|
-
var m = h.getAttribute(r), g = m !== null && m !== "false", p = (
|
|
12336
|
-
|
|
12331
|
+
var m = h.getAttribute(r), g = m !== null && m !== "false", p = (Et.get(h) || 0) + 1, x = (o.get(h) || 0) + 1;
|
|
12332
|
+
Et.set(h, p), o.set(h, x), i.push(h), p === 1 && g && On.set(h, !0), x === 1 && h.setAttribute(n, "true"), g || h.setAttribute(r, "true");
|
|
12337
12333
|
} catch (b) {
|
|
12338
12334
|
console.error("aria-hidden: cannot operate on ", h, b);
|
|
12339
12335
|
}
|
|
@@ -12341,9 +12337,9 @@ var rg = function(e) {
|
|
|
12341
12337
|
};
|
|
12342
12338
|
return f(t), c.clear(), $r++, function() {
|
|
12343
12339
|
i.forEach(function(l) {
|
|
12344
|
-
var h =
|
|
12345
|
-
|
|
12346
|
-
}), $r--, $r || (
|
|
12340
|
+
var h = Et.get(l) - 1, m = o.get(l) - 1;
|
|
12341
|
+
Et.set(l, h), o.set(l, m), h || (On.has(l) || l.removeAttribute(r), On.delete(l)), m || l.removeAttribute(n);
|
|
12342
|
+
}), $r--, $r || (Et = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), On = /* @__PURE__ */ new WeakMap(), Ln = {});
|
|
12347
12343
|
};
|
|
12348
12344
|
}, ag = function(e, t, n) {
|
|
12349
12345
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -12385,9 +12381,9 @@ var rg = function(e) {
|
|
|
12385
12381
|
rc.displayName = hr;
|
|
12386
12382
|
var sc = "DialogTrigger", cg = S.forwardRef(
|
|
12387
12383
|
(e, t) => {
|
|
12388
|
-
const { __scopeDialog: n, ...r } = e, s = Oe(sc, n), o =
|
|
12384
|
+
const { __scopeDialog: n, ...r } = e, s = Oe(sc, n), o = wt(t, s.triggerRef);
|
|
12389
12385
|
return /* @__PURE__ */ a.jsx(
|
|
12390
|
-
|
|
12386
|
+
Ve.button,
|
|
12391
12387
|
{
|
|
12392
12388
|
type: "button",
|
|
12393
12389
|
"aria-haspopup": "dialog",
|
|
@@ -12396,7 +12392,7 @@ var sc = "DialogTrigger", cg = S.forwardRef(
|
|
|
12396
12392
|
"data-state": Ns(s.open),
|
|
12397
12393
|
...r,
|
|
12398
12394
|
ref: o,
|
|
12399
|
-
onClick:
|
|
12395
|
+
onClick: Qe(e.onClick, s.onOpenToggle)
|
|
12400
12396
|
}
|
|
12401
12397
|
);
|
|
12402
12398
|
}
|
|
@@ -12418,12 +12414,12 @@ var rr = "DialogOverlay", ic = S.forwardRef(
|
|
|
12418
12414
|
ic.displayName = rr;
|
|
12419
12415
|
var dg = /* @__PURE__ */ Bi("DialogOverlay.RemoveScroll"), ug = S.forwardRef(
|
|
12420
12416
|
(e, t) => {
|
|
12421
|
-
const { __scopeDialog: n, ...r } = e, s = Oe(rr, n), o = sp(), i =
|
|
12417
|
+
const { __scopeDialog: n, ...r } = e, s = Oe(rr, n), o = sp(), i = wt(t, o);
|
|
12422
12418
|
return (
|
|
12423
12419
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
12424
12420
|
// ie. when `Overlay` and `Content` are siblings
|
|
12425
12421
|
/* @__PURE__ */ a.jsx(ec, { as: dg, allowPinchZoom: !0, shards: [s.contentRef], children: /* @__PURE__ */ a.jsx(
|
|
12426
|
-
|
|
12422
|
+
Ve.div,
|
|
12427
12423
|
{
|
|
12428
12424
|
"data-state": Ns(s.open),
|
|
12429
12425
|
...r,
|
|
@@ -12433,16 +12429,16 @@ var dg = /* @__PURE__ */ Bi("DialogOverlay.RemoveScroll"), ug = S.forwardRef(
|
|
|
12433
12429
|
) })
|
|
12434
12430
|
);
|
|
12435
12431
|
}
|
|
12436
|
-
),
|
|
12432
|
+
), Ft = "DialogContent", cc = S.forwardRef(
|
|
12437
12433
|
(e, t) => {
|
|
12438
|
-
const n = oc(
|
|
12434
|
+
const n = oc(Ft, e.__scopeDialog), { forceMount: r = n.forceMount, ...s } = e, o = Oe(Ft, e.__scopeDialog);
|
|
12439
12435
|
return /* @__PURE__ */ a.jsx(ur, { present: r || o.open, children: o.modal ? /* @__PURE__ */ a.jsx(fg, { ...s, ref: t }) : /* @__PURE__ */ a.jsx(hg, { ...s, ref: t }) });
|
|
12440
12436
|
}
|
|
12441
12437
|
);
|
|
12442
|
-
cc.displayName =
|
|
12438
|
+
cc.displayName = Ft;
|
|
12443
12439
|
var fg = S.forwardRef(
|
|
12444
12440
|
(e, t) => {
|
|
12445
|
-
const n = Oe(
|
|
12441
|
+
const n = Oe(Ft, e.__scopeDialog), r = S.useRef(null), s = wt(t, n.contentRef, r);
|
|
12446
12442
|
return S.useEffect(() => {
|
|
12447
12443
|
const o = r.current;
|
|
12448
12444
|
if (o) return ag(o);
|
|
@@ -12453,14 +12449,14 @@ var fg = S.forwardRef(
|
|
|
12453
12449
|
ref: s,
|
|
12454
12450
|
trapFocus: n.open,
|
|
12455
12451
|
disableOutsidePointerEvents: n.open,
|
|
12456
|
-
onCloseAutoFocus:
|
|
12452
|
+
onCloseAutoFocus: Qe(e.onCloseAutoFocus, (o) => {
|
|
12457
12453
|
o.preventDefault(), n.triggerRef.current?.focus();
|
|
12458
12454
|
}),
|
|
12459
|
-
onPointerDownOutside:
|
|
12455
|
+
onPointerDownOutside: Qe(e.onPointerDownOutside, (o) => {
|
|
12460
12456
|
const i = o.detail.originalEvent, c = i.button === 0 && i.ctrlKey === !0;
|
|
12461
12457
|
(i.button === 2 || c) && o.preventDefault();
|
|
12462
12458
|
}),
|
|
12463
|
-
onFocusOutside:
|
|
12459
|
+
onFocusOutside: Qe(
|
|
12464
12460
|
e.onFocusOutside,
|
|
12465
12461
|
(o) => o.preventDefault()
|
|
12466
12462
|
)
|
|
@@ -12469,7 +12465,7 @@ var fg = S.forwardRef(
|
|
|
12469
12465
|
}
|
|
12470
12466
|
), hg = S.forwardRef(
|
|
12471
12467
|
(e, t) => {
|
|
12472
|
-
const n = Oe(
|
|
12468
|
+
const n = Oe(Ft, e.__scopeDialog), r = S.useRef(!1), s = S.useRef(!1);
|
|
12473
12469
|
return /* @__PURE__ */ a.jsx(
|
|
12474
12470
|
lc,
|
|
12475
12471
|
{
|
|
@@ -12490,7 +12486,7 @@ var fg = S.forwardRef(
|
|
|
12490
12486
|
}
|
|
12491
12487
|
), lc = S.forwardRef(
|
|
12492
12488
|
(e, t) => {
|
|
12493
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: s, onCloseAutoFocus: o, ...i } = e, c = Oe(
|
|
12489
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: s, onCloseAutoFocus: o, ...i } = e, c = Oe(Ft, n);
|
|
12494
12490
|
return vp(), /* @__PURE__ */ a.jsx(a.Fragment, { children: /* @__PURE__ */ a.jsx(
|
|
12495
12491
|
Vi,
|
|
12496
12492
|
{
|
|
@@ -12519,14 +12515,14 @@ var fg = S.forwardRef(
|
|
|
12519
12515
|
), dc = "DialogTitle", uc = S.forwardRef(
|
|
12520
12516
|
(e, t) => {
|
|
12521
12517
|
const { __scopeDialog: n, ...r } = e, s = Oe(dc, n);
|
|
12522
|
-
return /* @__PURE__ */ a.jsx(
|
|
12518
|
+
return /* @__PURE__ */ a.jsx(Ve.h2, { id: s.titleId, ...r, ref: t });
|
|
12523
12519
|
}
|
|
12524
12520
|
);
|
|
12525
12521
|
uc.displayName = dc;
|
|
12526
12522
|
var fc = "DialogDescription", hc = S.forwardRef(
|
|
12527
12523
|
(e, t) => {
|
|
12528
12524
|
const { __scopeDialog: n, ...r } = e, s = Oe(fc, n);
|
|
12529
|
-
return /* @__PURE__ */ a.jsx(
|
|
12525
|
+
return /* @__PURE__ */ a.jsx(Ve.p, { id: s.descriptionId, ...r, ref: t });
|
|
12530
12526
|
}
|
|
12531
12527
|
);
|
|
12532
12528
|
hc.displayName = fc;
|
|
@@ -12534,12 +12530,12 @@ var mc = "DialogClose", ss = S.forwardRef(
|
|
|
12534
12530
|
(e, t) => {
|
|
12535
12531
|
const { __scopeDialog: n, ...r } = e, s = Oe(mc, n);
|
|
12536
12532
|
return /* @__PURE__ */ a.jsx(
|
|
12537
|
-
|
|
12533
|
+
Ve.button,
|
|
12538
12534
|
{
|
|
12539
12535
|
type: "button",
|
|
12540
12536
|
...r,
|
|
12541
12537
|
ref: t,
|
|
12542
|
-
onClick:
|
|
12538
|
+
onClick: Qe(e.onClick, () => s.onOpenChange(!1))
|
|
12543
12539
|
}
|
|
12544
12540
|
);
|
|
12545
12541
|
}
|
|
@@ -12560,13 +12556,13 @@ function pg({ report: e, onClose: t }) {
|
|
|
12560
12556
|
/* @__PURE__ */ a.jsxs(cc, { className: "fixed left-1/2 top-1/2 z-50 max-h-[80vh] w-[calc(100%-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 overflow-y-auto rounded-md border bg-background p-5 shadow-xl", children: [
|
|
12561
12557
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-start justify-between gap-4", children: [
|
|
12562
12558
|
/* @__PURE__ */ a.jsxs("div", { className: "flex min-w-0 items-start gap-3", children: [
|
|
12563
|
-
/* @__PURE__ */ a.jsx(
|
|
12559
|
+
/* @__PURE__ */ a.jsx(We, { className: "mt-0.5 h-5 w-5 shrink-0 text-destructive" }),
|
|
12564
12560
|
/* @__PURE__ */ a.jsxs("div", { children: [
|
|
12565
12561
|
/* @__PURE__ */ a.jsx(uc, { className: "text-lg font-semibold", children: "AI cost analysis failed" }),
|
|
12566
12562
|
/* @__PURE__ */ a.jsx(hc, { className: "mt-1 text-sm text-muted-foreground", children: "Failure details for the scheduled report." })
|
|
12567
12563
|
] })
|
|
12568
12564
|
] }),
|
|
12569
|
-
/* @__PURE__ */ a.jsx(ss, { className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close failure details", children: /* @__PURE__ */ a.jsx(
|
|
12565
|
+
/* @__PURE__ */ a.jsx(ss, { className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close failure details", children: /* @__PURE__ */ a.jsx(mt, { className: "h-4 w-4" }) })
|
|
12570
12566
|
] }),
|
|
12571
12567
|
e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
12572
12568
|
/* @__PURE__ */ a.jsxs("dl", { className: "mt-5 grid gap-x-6 gap-y-3 border-y py-4 text-sm sm:grid-cols-2", children: [
|
|
@@ -12601,7 +12597,7 @@ function pg({ report: e, onClose: t }) {
|
|
|
12601
12597
|
] }) });
|
|
12602
12598
|
}
|
|
12603
12599
|
function gg() {
|
|
12604
|
-
const { managementAccountId: e, loading: t } =
|
|
12600
|
+
const { managementAccountId: e, loading: t } = zt(), [n, r] = U(null), [s, o] = U(null), [i, c] = U(null), [d, u] = U([]), [f, l] = U(!0), [h, m] = U(!1), [g, p] = U(null), [x, b] = U(null), y = os(!0), v = gt(async (C = !1) => {
|
|
12605
12601
|
C || l(!0);
|
|
12606
12602
|
try {
|
|
12607
12603
|
const R = await oe.getDataStatus({ managementAccountId: e });
|
|
@@ -12689,7 +12685,7 @@ function yg() {
|
|
|
12689
12685
|
/* @__PURE__ */ a.jsx(dr, {}),
|
|
12690
12686
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
12691
12687
|
e.load();
|
|
12692
|
-
}, disabled: e.loading, className: "rounded-lg border p-2.5 hover:bg-muted disabled:opacity-50", title: "Refresh reports", "aria-label": "Refresh reports", children: /* @__PURE__ */ a.jsx(
|
|
12688
|
+
}, disabled: e.loading, className: "rounded-lg border p-2.5 hover:bg-muted disabled:opacity-50", title: "Refresh reports", "aria-label": "Refresh reports", children: /* @__PURE__ */ a.jsx(Mt, { className: `h-4 w-4 ${e.loading ? "animate-spin" : ""}` }) }),
|
|
12693
12689
|
i && e.schedule && /* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => r(!0), className: "inline-flex h-10 items-center gap-2 rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground", children: [
|
|
12694
12690
|
/* @__PURE__ */ a.jsx(bi, { className: "h-4 w-4" }),
|
|
12695
12691
|
"Report settings"
|
|
@@ -12697,7 +12693,7 @@ function yg() {
|
|
|
12697
12693
|
] })
|
|
12698
12694
|
] }),
|
|
12699
12695
|
e.error && /* @__PURE__ */ a.jsxs("div", { className: "flex items-start gap-2 rounded-lg border border-destructive/40 bg-destructive/5 p-3 text-sm text-destructive", children: [
|
|
12700
|
-
/* @__PURE__ */ a.jsx(
|
|
12696
|
+
/* @__PURE__ */ a.jsx(We, { className: "mt-0.5 h-4 w-4 shrink-0" }),
|
|
12701
12697
|
e.error
|
|
12702
12698
|
] }),
|
|
12703
12699
|
e.loading ? /* @__PURE__ */ a.jsx("div", { className: "h-72 animate-pulse rounded-lg bg-muted" }) : e.dataStatus && !e.dataStatus.ready ? /* @__PURE__ */ a.jsx(nr, { status: e.dataStatus }) : e.status && !e.status.enabled ? /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsxs(ue, { className: "flex min-h-64 flex-col items-center justify-center px-6 text-center", children: [
|
|
@@ -12742,10 +12738,10 @@ function yg() {
|
|
|
12742
12738
|
/* @__PURE__ */ a.jsx("td", { className: "px-4 py-3 text-muted-foreground", children: Br(c.completedAt || c.startedAt || c.createdAt) }),
|
|
12743
12739
|
/* @__PURE__ */ a.jsxs("td", { className: "px-4 py-3", children: [
|
|
12744
12740
|
c.status === "FAILED" ? /* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => o(c), className: `inline-flex items-center gap-1.5 rounded-full border px-2 py-1 text-xs font-medium hover:opacity-80 ${na.FAILED}`, title: "View failure reason", children: [
|
|
12745
|
-
/* @__PURE__ */ a.jsx(
|
|
12741
|
+
/* @__PURE__ */ a.jsx(We, { className: "h-3 w-3" }),
|
|
12746
12742
|
"failed"
|
|
12747
12743
|
] }) : /* @__PURE__ */ a.jsxs("span", { className: `inline-flex items-center gap-1.5 rounded-full border px-2 py-1 text-xs font-medium ${na[c.status]}`, children: [
|
|
12748
|
-
(c.status === "RUNNING" || c.status === "PENDING") && /* @__PURE__ */ a.jsx(
|
|
12744
|
+
(c.status === "RUNNING" || c.status === "PENDING") && /* @__PURE__ */ a.jsx(lt, { className: "h-3 w-3 animate-spin" }),
|
|
12749
12745
|
c.status.toLowerCase()
|
|
12750
12746
|
] }),
|
|
12751
12747
|
c.error && /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => o(c), className: "mt-1 block max-w-xs truncate text-left text-xs text-destructive underline-offset-2 hover:underline", title: "View complete failure reason", children: c.error === "1" ? "View failure reason" : c.error }),
|
|
@@ -12761,7 +12757,7 @@ function yg() {
|
|
|
12761
12757
|
] }),
|
|
12762
12758
|
i && /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
12763
12759
|
e.remove(c);
|
|
12764
|
-
}, disabled: e.removingId === c.id || c.status === "RUNNING" || c.status === "PENDING", className: "inline-flex h-9 w-9 items-center justify-center rounded-lg border text-destructive hover:bg-destructive/10 disabled:cursor-not-allowed disabled:opacity-40", title: "Remove report", "aria-label": "Remove report", children: e.removingId === c.id ? /* @__PURE__ */ a.jsx(
|
|
12760
|
+
}, disabled: e.removingId === c.id || c.status === "RUNNING" || c.status === "PENDING", className: "inline-flex h-9 w-9 items-center justify-center rounded-lg border text-destructive hover:bg-destructive/10 disabled:cursor-not-allowed disabled:opacity-40", title: "Remove report", "aria-label": "Remove report", children: e.removingId === c.id ? /* @__PURE__ */ a.jsx(lt, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ a.jsx(yi, { className: "h-4 w-4" }) })
|
|
12765
12761
|
] }) })
|
|
12766
12762
|
] }, c.id)) })
|
|
12767
12763
|
] }) }) }) : /* @__PURE__ */ a.jsx(de, { children: /* @__PURE__ */ a.jsxs(ue, { className: "flex min-h-64 flex-col items-center justify-center px-6 text-center", children: [
|
|
@@ -12774,31 +12770,31 @@ function yg() {
|
|
|
12774
12770
|
/* @__PURE__ */ a.jsx(pg, { report: s, onClose: () => o(null) })
|
|
12775
12771
|
] });
|
|
12776
12772
|
}
|
|
12777
|
-
const
|
|
12773
|
+
const Wt = Ql({
|
|
12778
12774
|
component: Da
|
|
12779
12775
|
}), vg = un({
|
|
12780
|
-
getParentRoute: () =>
|
|
12776
|
+
getParentRoute: () => Wt,
|
|
12781
12777
|
path: "/",
|
|
12782
12778
|
component: lm
|
|
12783
12779
|
}), wg = un({
|
|
12784
|
-
getParentRoute: () =>
|
|
12780
|
+
getParentRoute: () => Wt,
|
|
12785
12781
|
path: "/reports",
|
|
12786
12782
|
component: Sm
|
|
12787
12783
|
}), Sg = un({
|
|
12788
|
-
getParentRoute: () =>
|
|
12784
|
+
getParentRoute: () => Wt,
|
|
12789
12785
|
path: "/cur-discovery",
|
|
12790
12786
|
component: Cm
|
|
12791
12787
|
}), Rg = un({
|
|
12792
|
-
getParentRoute: () =>
|
|
12788
|
+
getParentRoute: () => Wt,
|
|
12793
12789
|
path: "/analysis",
|
|
12794
12790
|
component: yg
|
|
12795
12791
|
}), Ng = un({
|
|
12796
|
-
getParentRoute: () =>
|
|
12792
|
+
getParentRoute: () => Wt,
|
|
12797
12793
|
path: "/sources",
|
|
12798
12794
|
component: km
|
|
12799
12795
|
});
|
|
12800
12796
|
function pc() {
|
|
12801
|
-
return
|
|
12797
|
+
return Wt.addChildren([vg, Rg, wg, Ng, Sg]);
|
|
12802
12798
|
}
|
|
12803
12799
|
function Kg(e = "/cost") {
|
|
12804
12800
|
return Fa({
|