@meyicloud/meyi-cost-ui 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -10
- package/dist/index.mjs +170 -154
- package/dist/services/cost.d.ts +3 -3
- package/dist/style.css +1 -1
- package/dist/types.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as S from "react";
|
|
2
|
-
import Pe, { useCallback as
|
|
2
|
+
import Pe, { useCallback as xt, forwardRef as ra, createElement as zr, createContext as sa, useState as U, useEffect as Ue, useMemo as un, 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
5
|
var gn = { exports: {} }, Ht = {};
|
|
@@ -384,7 +384,7 @@ function dt(e, t, n) {
|
|
|
384
384
|
}
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function Lt(e) {
|
|
388
388
|
let t, n;
|
|
389
389
|
const r = new Promise((s, o) => {
|
|
390
390
|
t = s, n = o;
|
|
@@ -1267,7 +1267,7 @@ const Wr = (e) => {
|
|
|
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 = Lt(() => {
|
|
1271
1271
|
o?.resolve(), o = void 0;
|
|
1272
1272
|
});
|
|
1273
1273
|
const { paramsError: i, searchError: c } = s;
|
|
@@ -1293,7 +1293,7 @@ const Wr = (e) => {
|
|
|
1293
1293
|
});
|
|
1294
1294
|
return;
|
|
1295
1295
|
}
|
|
1296
|
-
s._nonReactive.beforeLoadPromise =
|
|
1296
|
+
s._nonReactive.beforeLoadPromise = Lt();
|
|
1297
1297
|
const h = {
|
|
1298
1298
|
...ht(e, n, !1),
|
|
1299
1299
|
...s.__routeContext
|
|
@@ -1472,7 +1472,7 @@ const Wr = (e) => {
|
|
|
1472
1472
|
y && Xe(e, b, y), b.status === "pending" && await r(x, m, p, b, u);
|
|
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 = Lt(), b !== y.preload && e.updateMatch(s, (v) => ({
|
|
1476
1476
|
...v,
|
|
1477
1477
|
preload: b
|
|
1478
1478
|
})), await r(x, m, p, y, u);
|
|
@@ -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 Ot(e, t) {
|
|
1985
1985
|
const n = t, r = e;
|
|
1986
1986
|
return {
|
|
1987
1987
|
fromLocation: n,
|
|
@@ -2212,7 +2212,7 @@ var ll = class {
|
|
|
2212
2212
|
}), f;
|
|
2213
2213
|
}, c = ze(this.latestLocation.href) === ze(s.href);
|
|
2214
2214
|
let u = this.commitLocationPromise;
|
|
2215
|
-
if (this.commitLocationPromise =
|
|
2215
|
+
if (this.commitLocationPromise = Lt(() => {
|
|
2216
2216
|
u?.resolve(), u = 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 = Ot(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(Ot(o, i)) : r.types;
|
|
2372
2372
|
if (c === !1) {
|
|
2373
2373
|
n();
|
|
2374
2374
|
return;
|
|
@@ -2582,7 +2582,7 @@ var ll = class {
|
|
|
2582
2582
|
error: void 0,
|
|
2583
2583
|
paramsError: R,
|
|
2584
2584
|
__routeContext: void 0,
|
|
2585
|
-
_nonReactive: { loadPromise:
|
|
2585
|
+
_nonReactive: { loadPromise: Lt() },
|
|
2586
2586
|
__beforeLoadContext: void 0,
|
|
2587
2587
|
context: {},
|
|
2588
2588
|
abortController: new AbortController(),
|
|
@@ -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(_t));
|
|
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 _t = /* @__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 Pt = "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 === Pt) 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(d, h);
|
|
2849
2849
|
}, c = (d) => {
|
|
2850
2850
|
if (!(yn || !r.restoring))
|
|
2851
|
-
if (d.target === document) i(
|
|
2851
|
+
if (d.target === document) i(Pt, scrollX, scrollY);
|
|
2852
2852
|
else {
|
|
2853
2853
|
const f = d.target;
|
|
2854
2854
|
i(f, f.scrollLeft, f.scrollTop);
|
|
2855
2855
|
}
|
|
2856
2856
|
}, u = (d) => {
|
|
2857
2857
|
if (!r.restoring) return;
|
|
2858
|
-
const f =
|
|
2859
|
-
for (const [l, h] of o) l ===
|
|
2858
|
+
const f = _t[d] ||= {};
|
|
2859
|
+
for (const [l, h] of o) l === Pt ? f[Pt] = 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", (d) => {
|
|
2862
2862
|
d.fromLocation && u(s(d.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(d.toLocation), p = d.fromLocation && s(d.fromLocation);
|
|
2870
2870
|
if (r.restoring && p && p !== g) {
|
|
2871
|
-
const x =
|
|
2871
|
+
const x = _t[p];
|
|
2872
2872
|
if (x) {
|
|
2873
|
-
let b =
|
|
2873
|
+
let b = _t[g];
|
|
2874
2874
|
for (const y in x) {
|
|
2875
|
-
if (y ===
|
|
2875
|
+
if (y === Pt) {
|
|
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 = _t[g] = {}), b[y] ??= x[y];
|
|
2883
2883
|
}
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
@@ -2888,10 +2888,10 @@ function Sl(e, t) {
|
|
|
2888
2888
|
const x = d.toLocation.hash, b = d.toLocation.state.__hashScrollIntoViewOptions ?? !0;
|
|
2889
2889
|
let y = !1;
|
|
2890
2890
|
if (h) {
|
|
2891
|
-
const v = Hr.get(d.toLocation), N = x && b && (v === "PUSH" || v === "REPLACE"), j = r.restoring ?
|
|
2891
|
+
const v = Hr.get(d.toLocation), N = x && b && (v === "PUSH" || v === "REPLACE"), j = r.restoring ? _t[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 === Pt) {
|
|
2895
2895
|
if (N) continue;
|
|
2896
2896
|
scrollTo({
|
|
2897
2897
|
top: R,
|
|
@@ -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 = xt(
|
|
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 = xt(() => e?.get(), [e]);
|
|
3535
3535
|
return Ul.useSyncExternalStoreWithSelector(
|
|
3536
3536
|
r,
|
|
3537
3537
|
s,
|
|
@@ -3555,7 +3555,7 @@ function Bl(e, t) {
|
|
|
3555
3555
|
return e?.structuralSharing ?? t.options.defaultStructuralSharing ? n.current = it(n.current, s) : s;
|
|
3556
3556
|
};
|
|
3557
3557
|
}
|
|
3558
|
-
function
|
|
3558
|
+
function vt(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) {
|
|
@@ -3564,7 +3564,7 @@ function yt(e) {
|
|
|
3564
3564
|
}
|
|
3565
3565
|
}
|
|
3566
3566
|
function _a(e) {
|
|
3567
|
-
return
|
|
3567
|
+
return vt({
|
|
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 vt({
|
|
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 vt({
|
|
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 Oa(e) {
|
|
3594
|
-
return
|
|
3594
|
+
return vt({
|
|
3595
3595
|
from: e.from,
|
|
3596
3596
|
strict: e.strict,
|
|
3597
3597
|
shouldThrow: e.shouldThrow,
|
|
@@ -3607,7 +3607,7 @@ function Ta(e) {
|
|
|
3607
3607
|
}), [e?.from, t]);
|
|
3608
3608
|
}
|
|
3609
3609
|
function La(e) {
|
|
3610
|
-
return
|
|
3610
|
+
return vt({
|
|
3611
3611
|
...e,
|
|
3612
3612
|
select: (t) => e.select ? e.select(t.context) : t.context
|
|
3613
3613
|
});
|
|
@@ -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: Rt([j, mr]),
|
|
3778
|
+
onBlur: Rt([k, Cs]),
|
|
3779
|
+
onFocus: Rt([C, qe]),
|
|
3780
|
+
onMouseEnter: Rt([R, qe]),
|
|
3781
|
+
onMouseLeave: Rt([_, Cs]),
|
|
3782
|
+
onTouchStart: Rt([T, 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" }, Yt = /* @__PURE__ */ new WeakMap(), Gl = { rootMargin: "100px" },
|
|
3798
|
+
}, ql = { "data-transitioning": "transitioning" }, Yt = /* @__PURE__ */ new WeakMap(), Gl = { rootMargin: "100px" }, Rt = (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) => vt({
|
|
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) => vt({
|
|
3873
3873
|
select: t?.select,
|
|
3874
3874
|
from: this.id,
|
|
3875
3875
|
structuralSharing: t?.structuralSharing
|
|
@@ -3918,7 +3918,7 @@ function eu(e) {
|
|
|
3918
3918
|
function tu() {
|
|
3919
3919
|
return /* @__PURE__ */ a.jsx("p", { children: "Not Found" });
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3921
|
+
function At(e) {
|
|
3922
3922
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: e.children });
|
|
3923
3923
|
}
|
|
3924
3924
|
function Ia(e, t, n) {
|
|
@@ -3958,8 +3958,8 @@ var su = (e, t) => e.routeId === t.routeId && e._displayPending === t._displayPe
|
|
|
3958
3958
|
});
|
|
3959
3959
|
});
|
|
3960
3960
|
function au({ 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, u = s.options.onCatch ?? e.options.defaultOnCatch, d = 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, u = s.options.onCatch ?? e.options.defaultOnCatch, d = 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 : At, h = c ? ls : At, m = d ? eu : At;
|
|
3962
|
+
return /* @__PURE__ */ a.jsxs(s.isRoot ? s.options.shellComponent ?? At : At, { children: [/* @__PURE__ */ a.jsx(ar.Provider, {
|
|
3963
3963
|
value: t,
|
|
3964
3964
|
children: /* @__PURE__ */ a.jsx(l, {
|
|
3965
3965
|
fallback: i,
|
|
@@ -3991,7 +3991,7 @@ function iu() {
|
|
|
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
|
+
...Ot(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
|
}
|
|
@@ -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 = Lt();
|
|
4035
4035
|
l._nonReactive.minPendingPromise = h, setTimeout(() => {
|
|
4036
4036
|
h.resolve(), l._nonReactive.minPendingPromise = void 0;
|
|
4037
4037
|
}, f);
|
|
@@ -4117,7 +4117,7 @@ function cu() {
|
|
|
4117
4117
|
}, [e]), tn(() => {
|
|
4118
4118
|
i && !s && e.emit({
|
|
4119
4119
|
type: "onLoad",
|
|
4120
|
-
...
|
|
4120
|
+
...Ot(e.stores.location.get(), e.stores.resolvedLocation.get())
|
|
4121
4121
|
});
|
|
4122
4122
|
}, [
|
|
4123
4123
|
i,
|
|
@@ -4126,7 +4126,7 @@ function cu() {
|
|
|
4126
4126
|
]), tn(() => {
|
|
4127
4127
|
f && !d && e.emit({
|
|
4128
4128
|
type: "onBeforeRouteMount",
|
|
4129
|
-
...
|
|
4129
|
+
...Ot(e.stores.location.get(), e.stores.resolvedLocation.get())
|
|
4130
4130
|
});
|
|
4131
4131
|
}, [
|
|
4132
4132
|
d,
|
|
@@ -4134,7 +4134,7 @@ function cu() {
|
|
|
4134
4134
|
e
|
|
4135
4135
|
]), tn(() => {
|
|
4136
4136
|
if (u && !c) {
|
|
4137
|
-
const l =
|
|
4137
|
+
const l = Ot(e.stores.location.get(), e.stores.resolvedLocation.get());
|
|
4138
4138
|
e.emit({
|
|
4139
4139
|
type: "onResolved",
|
|
4140
4140
|
...l
|
|
@@ -4149,7 +4149,7 @@ function cu() {
|
|
|
4149
4149
|
]), null;
|
|
4150
4150
|
}
|
|
4151
4151
|
function lu() {
|
|
4152
|
-
const e = Ee(), t = e.routesById[ft].options.pendingComponent ?? e.options.defaultPendingComponent, n = t ? /* @__PURE__ */ a.jsx(t, {}) : null, r = /* @__PURE__ */ a.jsxs(typeof document < "u" && e.ssr ?
|
|
4152
|
+
const e = Ee(), t = e.routesById[ft].options.pendingComponent ?? e.options.defaultPendingComponent, n = t ? /* @__PURE__ */ a.jsx(t, {}) : null, r = /* @__PURE__ */ a.jsxs(typeof document < "u" && e.ssr ? At : S.Suspense, {
|
|
4153
4153
|
fallback: n,
|
|
4154
4154
|
children: [/* @__PURE__ */ a.jsx(cu, {}), /* @__PURE__ */ a.jsx(uu, {})]
|
|
4155
4155
|
});
|
|
@@ -4205,7 +4205,7 @@ function Ua(e, t) {
|
|
|
4205
4205
|
return e.apply(t, arguments);
|
|
4206
4206
|
};
|
|
4207
4207
|
}
|
|
4208
|
-
const { toString: pu } = Object.prototype, { getPrototypeOf:
|
|
4208
|
+
const { toString: pu } = Object.prototype, { getPrototypeOf: It } = 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,15 +4213,15 @@ const { toString: pu } = Object.prototype, { getPrototypeOf: Lt } = Object, { it
|
|
|
4213
4213
|
return !1;
|
|
4214
4214
|
if (r.push(n), Xn(n, t))
|
|
4215
4215
|
return !0;
|
|
4216
|
-
n =
|
|
4216
|
+
n = It(n);
|
|
4217
4217
|
}
|
|
4218
4218
|
return !1;
|
|
4219
4219
|
}, gu = (e, t) => e != null && an(e, t) ? e[t] : void 0, ds = /* @__PURE__ */ ((e) => (t) => {
|
|
4220
4220
|
const n = pu.call(t);
|
|
4221
4221
|
return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
|
|
4222
|
-
})(/* @__PURE__ */ Object.create(null)), Oe = (e) => (e = e.toLowerCase(), (t) => ds(t) === e), ir = (e) => (t) => typeof t === e, { isArray:
|
|
4222
|
+
})(/* @__PURE__ */ Object.create(null)), Oe = (e) => (e = e.toLowerCase(), (t) => ds(t) === e), ir = (e) => (t) => typeof t === e, { isArray: bt } = Array, Mt = ir("undefined");
|
|
4223
4223
|
function $t(e) {
|
|
4224
|
-
return e !== null && !
|
|
4224
|
+
return e !== null && !Mt(e) && e.constructor !== null && !Mt(e.constructor) && Se(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
4225
4225
|
}
|
|
4226
4226
|
const Ba = Oe("ArrayBuffer");
|
|
4227
4227
|
function xu(e) {
|
|
@@ -4231,8 +4231,8 @@ function xu(e) {
|
|
|
4231
4231
|
const bu = ir("string"), Se = ir("function"), za = ir("number"), Bt = (e) => e !== null && typeof e == "object", yu = (e) => e === !0 || e === !1, Un = (e) => {
|
|
4232
4232
|
if (!Bt(e))
|
|
4233
4233
|
return !1;
|
|
4234
|
-
const t =
|
|
4235
|
-
return (t === null || t === Object.prototype ||
|
|
4234
|
+
const t = It(e);
|
|
4235
|
+
return (t === null || t === Object.prototype || It(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);
|
|
@@ -4251,7 +4251,7 @@ function ku() {
|
|
|
4251
4251
|
const io = ku(), co = typeof io.FormData < "u" ? io.FormData : void 0, _u = (e) => {
|
|
4252
4252
|
if (!e) return !1;
|
|
4253
4253
|
if (co && e instanceof co) return !0;
|
|
4254
|
-
const t =
|
|
4254
|
+
const t = It(e);
|
|
4255
4255
|
if (!t || t === Object.prototype || !Se(e.append)) return !1;
|
|
4256
4256
|
const n = ds(e);
|
|
4257
4257
|
return n === "formdata" || // detect form-data instance
|
|
@@ -4266,7 +4266,7 @@ 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]), bt(e))
|
|
4270
4270
|
for (r = 0, s = e.length; r < s; r++)
|
|
4271
4271
|
t.call(null, e[r], r, e);
|
|
4272
4272
|
else {
|
|
@@ -4289,17 +4289,17 @@ function Wa(e, t) {
|
|
|
4289
4289
|
return s;
|
|
4290
4290
|
return null;
|
|
4291
4291
|
}
|
|
4292
|
-
const lt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Va = (e) => !
|
|
4292
|
+
const lt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Va = (e) => !Mt(e) && e !== lt;
|
|
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, u = Xn(r, c) ? r[c] : void 0;
|
|
4298
|
-
Un(u) && Un(o) ? r[c] = Jr(u, o) : Un(o) ? r[c] = Jr({}, o) :
|
|
4298
|
+
Un(u) && Un(o) ? r[c] = Jr(u, o) : Un(o) ? r[c] = Jr({}, o) : bt(o) ? r[c] = o.slice() : (!n || !Mt(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 || $t(c) || (hn(c, s), typeof c != "object" ||
|
|
4302
|
+
if (!c || $t(c) || (hn(c, s), typeof c != "object" || bt(c)))
|
|
4303
4303
|
continue;
|
|
4304
4304
|
const u = Object.getOwnPropertySymbols(c);
|
|
4305
4305
|
for (let d = 0; d < u.length; d++) {
|
|
@@ -4347,7 +4347,7 @@ const Mu = (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 && It(e);
|
|
4351
4351
|
} while (e && (!n || n(e, t)) && e !== Object.prototype);
|
|
4352
4352
|
return t;
|
|
4353
4353
|
}, $u = (e, t, n) => {
|
|
@@ -4356,14 +4356,14 @@ const Mu = (e, t, n, { allOwnKeys: r } = {}) => (hn(
|
|
|
4356
4356
|
return r !== -1 && r === n;
|
|
4357
4357
|
}, Bu = (e) => {
|
|
4358
4358
|
if (!e) return null;
|
|
4359
|
-
if (
|
|
4359
|
+
if (bt(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
|
-
}, zu = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
4366
|
+
}, zu = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && It(Uint8Array)), Wu = (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 Mu = (e, t, n, { allOwnKeys: r } = {}) => (hn(
|
|
|
4405
4405
|
n[o] = !0;
|
|
4406
4406
|
});
|
|
4407
4407
|
};
|
|
4408
|
-
return
|
|
4408
|
+
return bt(e) ? r(e) : r(String(e).split(t)), n;
|
|
4409
4409
|
}, Xu = () => {
|
|
4410
4410
|
}, Zu = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
4411
4411
|
function Qu(e) {
|
|
@@ -4420,10 +4420,10 @@ const ed = (e) => {
|
|
|
4420
4420
|
return r;
|
|
4421
4421
|
if (!("toJSON" in r)) {
|
|
4422
4422
|
t.add(r);
|
|
4423
|
-
const s =
|
|
4423
|
+
const s = bt(r) ? [] : {};
|
|
4424
4424
|
return hn(r, (o, i) => {
|
|
4425
4425
|
const c = n(o);
|
|
4426
|
-
!
|
|
4426
|
+
!Mt(c) && (s[i] = c);
|
|
4427
4427
|
}), t.delete(r), s;
|
|
4428
4428
|
}
|
|
4429
4429
|
}
|
|
@@ -4439,7 +4439,7 @@ const ed = (e) => {
|
|
|
4439
4439
|
), (s) => {
|
|
4440
4440
|
r.push(s), lt.postMessage(n, "*");
|
|
4441
4441
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", Se(lt.postMessage)), rd = typeof queueMicrotask < "u" ? queueMicrotask.bind(lt) : typeof process < "u" && process.nextTick || qa, Ga = (e) => e != null && Se(e[fn]), sd = (e) => e != null && an(e, fn) && Ga(e), w = {
|
|
4442
|
-
isArray:
|
|
4442
|
+
isArray: bt,
|
|
4443
4443
|
isArrayBuffer: Ba,
|
|
4444
4444
|
isBuffer: $t,
|
|
4445
4445
|
isFormData: _u,
|
|
@@ -4454,7 +4454,7 @@ const ed = (e) => {
|
|
|
4454
4454
|
isRequest: Ou,
|
|
4455
4455
|
isResponse: Tu,
|
|
4456
4456
|
isHeaders: Lu,
|
|
4457
|
-
isUndefined:
|
|
4457
|
+
isUndefined: Mt,
|
|
4458
4458
|
isDate: wu,
|
|
4459
4459
|
isFile: Su,
|
|
4460
4460
|
isReactNativeBlob: Ru,
|
|
@@ -5126,7 +5126,7 @@ function ti(e) {
|
|
|
5126
5126
|
}
|
|
5127
5127
|
return null;
|
|
5128
5128
|
}
|
|
5129
|
-
const
|
|
5129
|
+
const Nt = (e, t) => e != null && w.hasOwnProp(e, t) ? e[t] : void 0;
|
|
5130
5130
|
function Ld(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 u =
|
|
5156
|
+
const u = Nt(this, "formSerializer");
|
|
5157
5157
|
if (r.indexOf("application/x-www-form-urlencoded") > -1)
|
|
5158
5158
|
return Ad(t, u).toString();
|
|
5159
5159
|
if ((c = w.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
|
|
5160
|
-
const d =
|
|
5160
|
+
const d = Nt(this, "env"), f = d && d.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 = Nt(this, "transitional") || mn.transitional, r = n && n.forcedJSONParsing, s = Nt(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, Nt(this, "parseReviver"));
|
|
5180
5180
|
} catch (u) {
|
|
5181
5181
|
if (c)
|
|
5182
|
-
throw u.name === "SyntaxError" ? O.from(u, O.ERR_BAD_RESPONSE, this, null,
|
|
5182
|
+
throw u.name === "SyntaxError" ? O.from(u, O.ERR_BAD_RESPONSE, this, null, Nt(this, "response")) : u;
|
|
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), Bd(e, t)) : t;
|
|
5380
5380
|
}
|
|
5381
5381
|
const xo = (e) => e instanceof be ? { ...e } : e;
|
|
5382
|
-
function
|
|
5382
|
+
function yt(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 Kd = (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 = yt({}, 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");
|
|
@@ -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 = yt(this.defaults, n);
|
|
6201
6201
|
const { transitional: r, paramsSerializer: s, headers: o } = n;
|
|
6202
6202
|
r !== void 0 && Bn.assertOptions(
|
|
6203
6203
|
r,
|
|
@@ -6272,7 +6272,7 @@ let mt = class {
|
|
|
6272
6272
|
return f;
|
|
6273
6273
|
}
|
|
6274
6274
|
getUri(t) {
|
|
6275
|
-
t =
|
|
6275
|
+
t = yt(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
|
}
|
|
@@ -6280,7 +6280,7 @@ let mt = class {
|
|
|
6280
6280
|
w.forEach(["delete", "get", "head", "options"], function(t) {
|
|
6281
6281
|
mt.prototype[t] = function(n, r) {
|
|
6282
6282
|
return this.request(
|
|
6283
|
-
|
|
6283
|
+
yt(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
|
+
yt(c || {}, {
|
|
6296
6296
|
method: t,
|
|
6297
6297
|
headers: r ? {
|
|
6298
6298
|
"Content-Type": "multipart/form-data"
|
|
@@ -6463,7 +6463,7 @@ Object.entries(Qr).forEach(([e, t]) => {
|
|
|
6463
6463
|
function li(e) {
|
|
6464
6464
|
const t = new mt(e), n = Ua(mt.prototype.request, t);
|
|
6465
6465
|
return w.extend(n, mt.prototype, t, { allOwnKeys: !0 }), w.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(s) {
|
|
6466
|
-
return li(
|
|
6466
|
+
return li(yt(e, s));
|
|
6467
6467
|
}, n;
|
|
6468
6468
|
}
|
|
6469
6469
|
const ae = li(mn);
|
|
@@ -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 = yt;
|
|
6484
6484
|
ae.AxiosHeaders = be;
|
|
6485
6485
|
ae.formToJSON = (e) => ti(w.isHTMLForm(e) ? new FormData(e) : e);
|
|
6486
6486
|
ae.getAdapter = ii.getAdapter;
|
|
@@ -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
|
+
], Dt = 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
|
+
], pt = 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;
|
|
@@ -7050,10 +7050,10 @@ const ih = (e, t) => {
|
|
|
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
|
Oh.test(e) && !Th.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) => tt(e, Ai, ws), I = (e) => ji.test(e), st = (e) => tt(e, Oi, Mh), Po = (e) => tt(e, Yh, G), zh = (e) => tt(e, Li, ki), Wh = (e) => tt(e, Ti, ws), Ao = (e) => tt(e, _i, ws), Vh = (e) => tt(e, Pi, Fh), Nn = (e) => tt(e, Ii, Dh), D = (e) => Ei.test(e), Xt = (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) => tt(e, Ai, ws), I = (e) => ji.test(e), st = (e) => tt(e, Oi, Mh), Po = (e) => tt(e, Yh, G), zh = (e) => tt(e, Li, ki), Wh = (e) => tt(e, Ti, ws), Ao = (e) => tt(e, _i, ws), Vh = (e) => tt(e, Pi, Fh), Nn = (e) => tt(e, Ii, Dh), D = (e) => Ei.test(e), Xt = (e) => wt(e, Oi), Hh = (e) => wt(e, Ti), Oo = (e) => wt(e, _i), qh = (e) => wt(e, Ai), Gh = (e) => wt(e, Pi), Cn = (e) => wt(e, Ii, !0), Kh = (e) => wt(e, Li, !0), tt = (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
|
+
}, wt = (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", Oi = (e) => e === "length", Yh = (e) => e === "number", Ti = (e) => e === "family-name", Li = (e) => e === "number" || e === "weight", Ii = (e) => e === "shadow", Jh = () => {
|
|
@@ -9818,12 +9818,12 @@ const oe = {
|
|
|
9818
9818
|
createSource: (e) => re.post("/sources", e).then((t) => t.data),
|
|
9819
9819
|
getSourceStatus: (e) => re.get(`/sources/${e}/status`).then((t) => t.data),
|
|
9820
9820
|
verifySource: (e) => re.post(`/sources/${e}/verify`).then((t) => t.data),
|
|
9821
|
-
removeSource: (e
|
|
9821
|
+
removeSource: (e) => re.delete(`/sources/${e}`).then((t) => t.data),
|
|
9822
9822
|
downloadSourceTemplate: (e) => re.get(`/sources/${e}/template`, { responseType: "blob" }).then((t) => t.data),
|
|
9823
9823
|
getCurDiscovery: (e) => re.get("/cur-discovery", { params: e }).then((t) => t.data)
|
|
9824
9824
|
}, Mi = sa("user"), em = Mi.Provider, tm = () => oa(Mi), Di = sa(null);
|
|
9825
9825
|
function nm({ tenantId: e = "default", children: t }) {
|
|
9826
|
-
const n = `meyi-cost:selected-management-account:${e || "default"}`, [r, s] = U([]), [o, i] = U(""), [c, u] = U(!0), d =
|
|
9826
|
+
const n = `meyi-cost:selected-management-account:${e || "default"}`, [r, s] = U([]), [o, i] = U(""), [c, u] = U(!0), d = xt(async () => {
|
|
9827
9827
|
u(!0);
|
|
9828
9828
|
try {
|
|
9829
9829
|
const m = ((await oe.getSources()).sources || []).filter((g) => !!g.managementAccountId);
|
|
@@ -9840,7 +9840,7 @@ function nm({ tenantId: e = "default", children: t }) {
|
|
|
9840
9840
|
Ue(() => {
|
|
9841
9841
|
d();
|
|
9842
9842
|
}, [d]);
|
|
9843
|
-
const f =
|
|
9843
|
+
const f = xt((h) => {
|
|
9844
9844
|
/^\d{12}$/.test(h) && (window.localStorage.setItem(n, h), i(h));
|
|
9845
9845
|
}, [n]), l = un(() => ({ sources: r, managementAccountId: o, loading: c, selectManagementAccount: f, refreshSources: d }), [r, o, c, f, d]);
|
|
9846
9846
|
return /* @__PURE__ */ a.jsx(Di.Provider, { value: l, children: t });
|
|
@@ -10079,7 +10079,7 @@ function lm() {
|
|
|
10079
10079
|
/* @__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)) }),
|
|
10080
10080
|
/* @__PURE__ */ a.jsx("button", { onClick: () => {
|
|
10081
10081
|
d();
|
|
10082
|
-
}, disabled: n, className: "rounded-lg border p-2 hover:bg-muted", children: /* @__PURE__ */ a.jsx(
|
|
10082
|
+
}, disabled: n, className: "rounded-lg border p-2 hover:bg-muted", children: /* @__PURE__ */ a.jsx(Dt, { className: `h-4 w-4 ${n ? "animate-spin" : ""}` }) })
|
|
10083
10083
|
] })
|
|
10084
10084
|
] }),
|
|
10085
10085
|
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: [
|
|
@@ -10231,7 +10231,7 @@ function fm() {
|
|
|
10231
10231
|
/* @__PURE__ */ a.jsx("div", { className: "h-64 animate-pulse rounded-xl border bg-muted/40" })
|
|
10232
10232
|
] });
|
|
10233
10233
|
}
|
|
10234
|
-
const Qe = 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), Zt = { services: [], regions: [], accountIds: [], tagKey: "", tagValues: [] },
|
|
10234
|
+
const Qe = 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), Zt = { services: [], regions: [], accountIds: [], tagKey: "", tagValues: [] }, gt = {
|
|
10235
10235
|
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." },
|
|
10236
10236
|
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." },
|
|
10237
10237
|
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." },
|
|
@@ -10284,7 +10284,7 @@ function Do({ values: e }) {
|
|
|
10284
10284
|
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: [
|
|
10285
10285
|
/* @__PURE__ */ a.jsxs("div", { className: "mb-2 flex items-center justify-between", children: [
|
|
10286
10286
|
/* @__PURE__ */ a.jsx("strong", { className: "text-xs", children: "Cost distribution" }),
|
|
10287
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ a.jsx(
|
|
10287
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => n(!1), children: /* @__PURE__ */ a.jsx(pt, { className: "h-3.5 w-3.5" }) })
|
|
10288
10288
|
] }),
|
|
10289
10289
|
e.length ? e.map((r) => /* @__PURE__ */ a.jsxs("div", { className: "flex justify-between gap-3 border-t py-2 text-xs", children: [
|
|
10290
10290
|
/* @__PURE__ */ a.jsx("span", { className: "min-w-0 truncate", title: r.label, children: r.label }),
|
|
@@ -10317,7 +10317,7 @@ function $i({ page: e, pages: t, total: n, onChange: r }) {
|
|
|
10317
10317
|
] });
|
|
10318
10318
|
}
|
|
10319
10319
|
function gm({ groupBy: e, report: t }) {
|
|
10320
|
-
const [n, r] = U(""), [s, o] = U(1), [i, c] = U(null), [u, d] = U({ percentage: !0, accounts: !0, regions: !0 }), f =
|
|
10320
|
+
const [n, r] = U(""), [s, o] = U(1), [i, c] = U(null), [u, d] = U({ percentage: !0, accounts: !0, regions: !0 }), f = gt[e], l = un(() => {
|
|
10321
10321
|
const p = n.trim().toLowerCase();
|
|
10322
10322
|
return p ? t.summary.filter((x) => `${x.label} ${x.accountId || ""}`.toLowerCase().includes(p)) : t.summary;
|
|
10323
10323
|
}, [t, n]), h = Math.max(1, Math.ceil(l.length / Qe)), m = l.slice((s - 1) * Qe, s * Qe), g = 3 + Number(u.percentage) + Number(u.accounts) + Number(u.regions);
|
|
@@ -10377,7 +10377,7 @@ function gm({ groupBy: e, report: t }) {
|
|
|
10377
10377
|
/* @__PURE__ */ a.jsx("p", { className: "text-xs uppercase text-muted-foreground", children: f.item }),
|
|
10378
10378
|
/* @__PURE__ */ a.jsx("h3", { className: "mt-1 text-lg font-semibold", children: i.label })
|
|
10379
10379
|
] }),
|
|
10380
|
-
/* @__PURE__ */ a.jsx("button", { onClick: () => c(null), children: /* @__PURE__ */ a.jsx(
|
|
10380
|
+
/* @__PURE__ */ a.jsx("button", { onClick: () => c(null), children: /* @__PURE__ */ a.jsx(pt, {}) })
|
|
10381
10381
|
] }),
|
|
10382
10382
|
/* @__PURE__ */ a.jsxs("div", { className: "mt-5 grid gap-3 sm:grid-cols-3", children: [
|
|
10383
10383
|
/* @__PURE__ */ a.jsx(De, { label: "Cost", value: X(i.amount, t.currency) }),
|
|
@@ -10421,7 +10421,7 @@ function xm({ rows: e, groupBy: t, comparison: n, granularity: r }) {
|
|
|
10421
10421
|
/* @__PURE__ */ a.jsx(de, { className: "overflow-x-auto", children: /* @__PURE__ */ a.jsxs("table", { className: "w-full text-sm", children: [
|
|
10422
10422
|
/* @__PURE__ */ a.jsx("thead", { children: /* @__PURE__ */ a.jsxs("tr", { className: "border-b bg-primary/5 text-left text-xs uppercase text-primary", children: [
|
|
10423
10423
|
/* @__PURE__ */ a.jsxs("th", { className: "px-4 py-4", children: [
|
|
10424
|
-
|
|
10424
|
+
gt[t].item,
|
|
10425
10425
|
" name"
|
|
10426
10426
|
] }),
|
|
10427
10427
|
/* @__PURE__ */ a.jsxs("th", { className: "px-4", children: [
|
|
@@ -10500,7 +10500,7 @@ function bm(e) {
|
|
|
10500
10500
|
!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." })
|
|
10501
10501
|
] }),
|
|
10502
10502
|
/* @__PURE__ */ a.jsxs("button", { onClick: e.onRun, disabled: d || 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: [
|
|
10503
|
-
/* @__PURE__ */ a.jsx(
|
|
10503
|
+
/* @__PURE__ */ a.jsx(Dt, { className: `h-4 w-4 ${d ? "animate-spin" : ""}` }),
|
|
10504
10504
|
"Run report"
|
|
10505
10505
|
] })
|
|
10506
10506
|
] })
|
|
@@ -10618,7 +10618,7 @@ function ym() {
|
|
|
10618
10618
|
};
|
|
10619
10619
|
}
|
|
10620
10620
|
function vm(e) {
|
|
10621
|
-
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c } = e, u =
|
|
10621
|
+
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c } = e, u = gt[s];
|
|
10622
10622
|
let d, f;
|
|
10623
10623
|
o === "compare" && n ? (d = [[u.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(`
|
|
10624
10624
|
`), f = `comparison-report-${s}-${Date.now()}.csv`) : (d = [[u.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(`
|
|
@@ -10627,7 +10627,7 @@ function vm(e) {
|
|
|
10627
10627
|
l.href = URL.createObjectURL(new Blob([d], { type: "text/csv" })), l.download = f, l.click(), URL.revokeObjectURL(l.href);
|
|
10628
10628
|
}
|
|
10629
10629
|
async function wm(e) {
|
|
10630
|
-
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c, granularity: u } = e, d =
|
|
10630
|
+
const { report: t, comparison: n, rows: r, groupBy: s, mode: o, start: i, end: c, granularity: u } = e, d = gt[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) => {
|
|
10631
10631
|
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);
|
|
10632
10632
|
};
|
|
10633
10633
|
if (o === "compare" && n) {
|
|
@@ -10639,7 +10639,7 @@ async function wm(e) {
|
|
|
10639
10639
|
l(h, { startY: 146, head: [g ? ["Account ID", "Account Name", "Total Cost", "Percentage", "Regions"] : [`${d.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)}%`, ot(p.regions)] : [p.label, X(p.amount, t.currency), `${(p.percentage || 0).toFixed(2)}%`, ot(p.accounts), ot(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`);
|
|
10640
10640
|
}
|
|
10641
10641
|
function Sm() {
|
|
10642
|
-
const e = ym(), { groupBy: t, mode: n, report: r, comparison: s, comparedRows: o, loading: i, error: c, dataStatus: u, granularity: d, start: f, end: l } = e, h =
|
|
10642
|
+
const e = ym(), { groupBy: t, mode: n, report: r, comparison: s, comparedRows: o, loading: i, error: c, dataStatus: u, granularity: d, start: f, end: l } = e, h = gt[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: d } : null, b = /* @__PURE__ */ a.jsxs("div", { className: "flex gap-2", children: [
|
|
10643
10643
|
/* @__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: [
|
|
10644
10644
|
/* @__PURE__ */ a.jsx(Bf, { className: "h-4 w-4" }),
|
|
10645
10645
|
"PDF"
|
|
@@ -10661,7 +10661,7 @@ function Sm() {
|
|
|
10661
10661
|
/* @__PURE__ */ a.jsx(ur, {})
|
|
10662
10662
|
] }),
|
|
10663
10663
|
!i && (u && !u.ready || c && !u) ? /* @__PURE__ */ a.jsx(nr, { status: u, error: c }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
10664
|
-
/* @__PURE__ */ a.jsx("div", { className: "flex gap-1 overflow-x-auto border-b", children: Object.keys(
|
|
10664
|
+
/* @__PURE__ */ a.jsx("div", { className: "flex gap-1 overflow-x-auto border-b", children: Object.keys(gt).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: gt[y].tab }, y)) }),
|
|
10665
10665
|
/* @__PURE__ */ a.jsxs("div", { className: "grid gap-5 xl:grid-cols-[minmax(0,1fr)_320px]", children: [
|
|
10666
10666
|
/* @__PURE__ */ a.jsxs("div", { className: "space-y-5", children: [
|
|
10667
10667
|
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: [
|
|
@@ -10772,7 +10772,7 @@ function Be({ label: e, value: t, mono: n }) {
|
|
|
10772
10772
|
] });
|
|
10773
10773
|
}
|
|
10774
10774
|
function Cm() {
|
|
10775
|
-
const { managementAccountId: e, loading: t } = Wt(), [n, r] = U([]), [s, o] = U([]), [i, c] = U(!0), [u, d] = U(null), f =
|
|
10775
|
+
const { managementAccountId: e, loading: t } = Wt(), [n, r] = U([]), [s, o] = U([]), [i, c] = U(!0), [u, d] = U(null), f = xt(async () => {
|
|
10776
10776
|
c(!0), d(null);
|
|
10777
10777
|
try {
|
|
10778
10778
|
const l = await re.get("/cur-discovery", { params: { logLimit: 100, managementAccountId: e } });
|
|
@@ -10798,7 +10798,7 @@ function Cm() {
|
|
|
10798
10798
|
/* @__PURE__ */ a.jsx(ur, {}),
|
|
10799
10799
|
/* @__PURE__ */ a.jsx("button", { onClick: () => {
|
|
10800
10800
|
f();
|
|
10801
|
-
}, disabled: i || t, className: "rounded-lg border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh", children: /* @__PURE__ */ a.jsx(
|
|
10801
|
+
}, disabled: i || t, className: "rounded-lg border p-2 hover:bg-muted disabled:opacity-50", "aria-label": "Refresh", children: /* @__PURE__ */ a.jsx(Dt, { className: `h-4 w-4 ${i || t ? "animate-spin" : ""}` }) })
|
|
10802
10802
|
] })
|
|
10803
10803
|
] }),
|
|
10804
10804
|
u && /* @__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: [
|
|
@@ -10873,7 +10873,7 @@ const jm = (e) => e.launchUrl || `https://console.aws.amazon.com/cloudformation/
|
|
|
10873
10873
|
return n ? `${t} ${n}` : t;
|
|
10874
10874
|
};
|
|
10875
10875
|
function km() {
|
|
10876
|
-
const { selectManagementAccount: e, refreshSources: t } = Wt(), [n, r] = U([]), [s, o] = U(!1), [i, c] = U(!0), [u, d] = U(!1), [f, l] = U(null), [h, m] = U(
|
|
10876
|
+
const { selectManagementAccount: e, refreshSources: t } = Wt(), [n, r] = U([]), [s, o] = U(!1), [i, c] = U(!0), [u, d] = 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 = xt(async () => {
|
|
10877
10877
|
c(!0), C(null);
|
|
10878
10878
|
try {
|
|
10879
10879
|
const A = await oe.getSources();
|
|
@@ -10925,7 +10925,8 @@ function km() {
|
|
|
10925
10925
|
if (f) {
|
|
10926
10926
|
j(`remove-${f.connectionId}`), C(null);
|
|
10927
10927
|
try {
|
|
10928
|
-
await oe.removeSource(f.connectionId
|
|
10928
|
+
const A = await oe.removeSource(f.connectionId);
|
|
10929
|
+
l(null), m(A.awsCleanup ?? null), await R(), await t();
|
|
10929
10930
|
} catch (A) {
|
|
10930
10931
|
C(Qt(A));
|
|
10931
10932
|
} finally {
|
|
@@ -10945,7 +10946,7 @@ function km() {
|
|
|
10945
10946
|
/* @__PURE__ */ a.jsxs("div", { className: "flex gap-2", children: [
|
|
10946
10947
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
10947
10948
|
R();
|
|
10948
|
-
}, 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(
|
|
10949
|
+
}, 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(Dt, { className: `h-4 w-4 ${i ? "animate-spin" : ""}` }) }),
|
|
10949
10950
|
(s || n.length === 0) && /* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
10950
10951
|
C(null), d(!0);
|
|
10951
10952
|
}, 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: [
|
|
@@ -10992,12 +10993,10 @@ function km() {
|
|
|
10992
10993
|
/* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
10993
10994
|
P(A.connectionId);
|
|
10994
10995
|
}, 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: [
|
|
10995
|
-
N === `verify-${A.connectionId}` ? /* @__PURE__ */ a.jsx(ut, { className: "h-4 w-4 animate-spin" }) : A.status === "CONNECTED" ? /* @__PURE__ */ a.jsx(Of, { className: "h-4 w-4 text-emerald-600" }) : /* @__PURE__ */ a.jsx(
|
|
10996
|
+
N === `verify-${A.connectionId}` ? /* @__PURE__ */ a.jsx(ut, { className: "h-4 w-4 animate-spin" }) : A.status === "CONNECTED" ? /* @__PURE__ */ a.jsx(Of, { className: "h-4 w-4 text-emerald-600" }) : /* @__PURE__ */ a.jsx(Dt, { className: "h-4 w-4" }),
|
|
10996
10997
|
A.status === "CONNECTED" ? "Connected" : "Verify"
|
|
10997
10998
|
] }),
|
|
10998
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
10999
|
-
m(!1), l(A);
|
|
11000
|
-
}, 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" }) })
|
|
10999
|
+
/* @__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" }) })
|
|
11001
11000
|
] }) })
|
|
11002
11001
|
] }, A.connectionId)) })
|
|
11003
11002
|
] }) }),
|
|
@@ -11006,7 +11005,7 @@ function km() {
|
|
|
11006
11005
|
}, className: "w-full max-w-md rounded-md border bg-background p-5 shadow-xl", children: [
|
|
11007
11006
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11008
11007
|
/* @__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: () => d(!1), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11008
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => d(!1), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(pt, { className: "h-4 w-4" }) })
|
|
11010
11009
|
] }),
|
|
11011
11010
|
/* @__PURE__ */ a.jsx("label", { className: "mt-5 block text-sm font-medium", htmlFor: "aws-account-id", children: "AWS account ID" }),
|
|
11012
11011
|
/* @__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" }),
|
|
@@ -11028,21 +11027,14 @@ function km() {
|
|
|
11028
11027
|
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
11028
|
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11030
11029
|
/* @__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(
|
|
11030
|
+
/* @__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(pt, { className: "h-4 w-4" }) })
|
|
11032
11031
|
] }),
|
|
11033
11032
|
/* @__PURE__ */ a.jsxs("p", { className: "mt-4 text-sm", children: [
|
|
11034
11033
|
"Remove AWS account ",
|
|
11035
11034
|
/* @__PURE__ */ a.jsx("span", { className: "font-mono font-medium", children: f.managementAccountId }),
|
|
11036
11035
|
" from this tenant?"
|
|
11037
11036
|
] }),
|
|
11038
|
-
/* @__PURE__ */ a.
|
|
11039
|
-
/* @__PURE__ */ a.jsx("input", { type: "checkbox", checked: h, onChange: (A) => m(A.target.checked), disabled: !!N, className: "mt-1 h-4 w-4" }),
|
|
11040
|
-
/* @__PURE__ */ a.jsxs("span", { children: [
|
|
11041
|
-
/* @__PURE__ */ a.jsx("span", { className: "block text-sm font-medium", children: "Also delete generated AWS resources" }),
|
|
11042
|
-
/* @__PURE__ */ a.jsx("span", { className: "block text-xs text-muted-foreground", children: "Deletes MeyiConnect StackSet instances, the StackSet, and the management stack before removing this source. CUR data already delivered to the central bucket is retained." })
|
|
11043
|
-
] })
|
|
11044
|
-
] }),
|
|
11045
|
-
/* @__PURE__ */ a.jsx("p", { className: "mt-3 text-xs text-muted-foreground", children: "If AWS cleanup fails, the source is preserved so you can retry or clean up manually." }),
|
|
11037
|
+
/* @__PURE__ */ a.jsx("p", { className: "mt-3 text-xs text-muted-foreground", children: "Meyi Connect has no permission to change your AWS account, so the CloudFormation stacks stay until you delete them. You will see their names after removal. CUR data already delivered to Meyi Connect is retained." }),
|
|
11046
11038
|
/* @__PURE__ */ a.jsxs("div", { className: "mt-5 flex justify-end gap-2", children: [
|
|
11047
11039
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => l(null), disabled: !!N, className: "rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted", children: "Cancel" }),
|
|
11048
11040
|
/* @__PURE__ */ a.jsxs("button", { type: "button", onClick: () => {
|
|
@@ -11052,6 +11044,30 @@ function km() {
|
|
|
11052
11044
|
"Remove"
|
|
11053
11045
|
] })
|
|
11054
11046
|
] })
|
|
11047
|
+
] }) }),
|
|
11048
|
+
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: [
|
|
11049
|
+
/* @__PURE__ */ a.jsxs("div", { className: "flex items-center justify-between gap-4", children: [
|
|
11050
|
+
/* @__PURE__ */ a.jsx("h2", { id: "cleanup-title", className: "text-lg font-semibold", children: "Delete the AWS resources" }),
|
|
11051
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => m(null), className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(pt, { className: "h-4 w-4" }) })
|
|
11052
|
+
] }),
|
|
11053
|
+
/* @__PURE__ */ a.jsxs("p", { className: "mt-4 text-sm", children: [
|
|
11054
|
+
"The source is removed. In your AWS management account, CloudFormation console, region ",
|
|
11055
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-mono", children: h.region }),
|
|
11056
|
+
":"
|
|
11057
|
+
] }),
|
|
11058
|
+
/* @__PURE__ */ a.jsxs("ol", { className: "mt-3 list-decimal space-y-2 pl-5 text-sm", children: [
|
|
11059
|
+
h.stackSetName && /* @__PURE__ */ a.jsxs("li", { children: [
|
|
11060
|
+
"StackSets: open ",
|
|
11061
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-mono", children: h.stackSetName }),
|
|
11062
|
+
", delete its stack instances, then delete the StackSet."
|
|
11063
|
+
] }),
|
|
11064
|
+
/* @__PURE__ */ a.jsxs("li", { children: [
|
|
11065
|
+
"Stacks: delete ",
|
|
11066
|
+
/* @__PURE__ */ a.jsx("span", { className: "font-mono", children: h.managementStackName }),
|
|
11067
|
+
"."
|
|
11068
|
+
] })
|
|
11069
|
+
] }),
|
|
11070
|
+
/* @__PURE__ */ a.jsx("div", { className: "mt-5 flex justify-end", children: /* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => m(null), className: "rounded-md border px-4 py-2 text-sm font-medium hover:bg-muted", children: "Done" }) })
|
|
11055
11071
|
] }) })
|
|
11056
11072
|
] });
|
|
11057
11073
|
}
|
|
@@ -11071,7 +11087,7 @@ function Om({ open: e, schedule: t, saving: n, onClose: r, onSave: s }) {
|
|
|
11071
11087
|
] }),
|
|
11072
11088
|
/* @__PURE__ */ a.jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: "Reports run automatically against completed AWS CUR periods." })
|
|
11073
11089
|
] }),
|
|
11074
|
-
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: r, className: "rounded-md p-1.5 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(
|
|
11090
|
+
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: r, className: "rounded-md p-1.5 hover:bg-muted", "aria-label": "Close", children: /* @__PURE__ */ a.jsx(pt, { className: "h-4 w-4" }) })
|
|
11075
11091
|
] }),
|
|
11076
11092
|
/* @__PURE__ */ a.jsxs("form", { className: "space-y-5 p-5", onSubmit: (u) => {
|
|
11077
11093
|
u.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);
|
|
@@ -11150,7 +11166,7 @@ function Tm(...e) {
|
|
|
11150
11166
|
};
|
|
11151
11167
|
};
|
|
11152
11168
|
}
|
|
11153
|
-
function
|
|
11169
|
+
function St(...e) {
|
|
11154
11170
|
return S.useCallback(Tm(...e), e);
|
|
11155
11171
|
}
|
|
11156
11172
|
function Lm(e, t = []) {
|
|
@@ -11280,7 +11296,7 @@ function Bi(e) {
|
|
|
11280
11296
|
// itself as the slot target — throw a descriptive error below instead.
|
|
11281
11297
|
!c && S.Children.count(s) === 1 && S.isValidElement(s) && (i = s)
|
|
11282
11298
|
);
|
|
11283
|
-
const d = i ? Hm(i) : void 0, f =
|
|
11299
|
+
const d = i ? Hm(i) : void 0, f = St(r, d);
|
|
11284
11300
|
if (!i) {
|
|
11285
11301
|
if (s || s === 0)
|
|
11286
11302
|
throw new Error(
|
|
@@ -11380,7 +11396,7 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11380
11396
|
onInteractOutside: c,
|
|
11381
11397
|
onDismiss: u,
|
|
11382
11398
|
...d
|
|
11383
|
-
} = e, f = S.useContext(Ss), [l, h] = S.useState(null), m = l?.ownerDocument ?? globalThis?.document, [, g] = S.useState({}), p =
|
|
11399
|
+
} = e, f = S.useContext(Ss), [l, h] = S.useState(null), m = l?.ownerDocument ?? globalThis?.document, [, g] = S.useState({}), p = St(t, h), x = Array.from(f.layers), [b] = [
|
|
11384
11400
|
...f.layersWithOutsidePointerEventsDisabled
|
|
11385
11401
|
].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(
|
|
11386
11402
|
(P) => {
|
|
@@ -11445,7 +11461,7 @@ var Qm = "DismissableLayer", ns = "dismissableLayer.update", ep = "dismissableLa
|
|
|
11445
11461
|
);
|
|
11446
11462
|
zi.displayName = Qm;
|
|
11447
11463
|
var np = "DismissableLayerBranch", rp = S.forwardRef((e, t) => {
|
|
11448
|
-
const n = S.useContext(Ss), r = S.useRef(null), s =
|
|
11464
|
+
const n = S.useContext(Ss), r = S.useRef(null), s = St(t, r);
|
|
11449
11465
|
return S.useEffect(() => {
|
|
11450
11466
|
const o = r.current;
|
|
11451
11467
|
if (o)
|
|
@@ -11572,7 +11588,7 @@ var Ir = "focusScope.autoFocusOnMount", Mr = "focusScope.autoFocusOnUnmount", Wo
|
|
|
11572
11588
|
onMountAutoFocus: s,
|
|
11573
11589
|
onUnmountAutoFocus: o,
|
|
11574
11590
|
...i
|
|
11575
|
-
} = e, [c, u] = S.useState(null), d = ln(s), f = ln(o), l = S.useRef(null), h =
|
|
11591
|
+
} = e, [c, u] = S.useState(null), d = ln(s), f = ln(o), l = S.useRef(null), h = St(t, u), m = S.useRef({
|
|
11576
11592
|
paused: !1,
|
|
11577
11593
|
pause() {
|
|
11578
11594
|
this.paused = !0;
|
|
@@ -11793,13 +11809,13 @@ function yp(e) {
|
|
|
11793
11809
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
11794
11810
|
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);
|
|
11795
11811
|
}
|
|
11796
|
-
var Pn = 0,
|
|
11812
|
+
var Pn = 0, Ct = null;
|
|
11797
11813
|
function vp() {
|
|
11798
11814
|
S.useEffect(() => {
|
|
11799
|
-
|
|
11800
|
-
const { start: e, end: t } =
|
|
11815
|
+
Ct || (Ct = { start: Ko(), end: Ko() });
|
|
11816
|
+
const { start: e, end: t } = Ct;
|
|
11801
11817
|
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== t && document.body.insertAdjacentElement("beforeend", t), Pn++, () => {
|
|
11802
|
-
Pn === 1 && (
|
|
11818
|
+
Pn === 1 && (Ct?.start.remove(), Ct?.end.remove(), Ct = null), Pn = Math.max(0, Pn - 1);
|
|
11803
11819
|
};
|
|
11804
11820
|
}, []);
|
|
11805
11821
|
}
|
|
@@ -12037,14 +12053,14 @@ var Ip = function() {
|
|
|
12037
12053
|
right: t[2],
|
|
12038
12054
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
12039
12055
|
};
|
|
12040
|
-
}, $p = Ji(),
|
|
12056
|
+
}, $p = Ji(), Tt = "data-scroll-locked", Bp = function(e, t, n, r) {
|
|
12041
12057
|
var s = e.left, o = e.top, i = e.right, c = e.gap;
|
|
12042
12058
|
return n === void 0 && (n = "margin"), `
|
|
12043
12059
|
.`.concat(Sp, ` {
|
|
12044
12060
|
overflow: hidden `).concat(r, `;
|
|
12045
12061
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
12046
12062
|
}
|
|
12047
|
-
body[`).concat(
|
|
12063
|
+
body[`).concat(Tt, `] {
|
|
12048
12064
|
overflow: hidden `).concat(r, `;
|
|
12049
12065
|
overscroll-behavior: contain;
|
|
12050
12066
|
`).concat([
|
|
@@ -12077,18 +12093,18 @@ var Ip = function() {
|
|
|
12077
12093
|
margin-right: 0 `).concat(r, `;
|
|
12078
12094
|
}
|
|
12079
12095
|
|
|
12080
|
-
body[`).concat(
|
|
12096
|
+
body[`).concat(Tt, `] {
|
|
12081
12097
|
`).concat(Rp, ": ").concat(c, `px;
|
|
12082
12098
|
}
|
|
12083
12099
|
`);
|
|
12084
12100
|
}, Jo = function() {
|
|
12085
|
-
var e = parseInt(document.body.getAttribute(
|
|
12101
|
+
var e = parseInt(document.body.getAttribute(Tt) || "0", 10);
|
|
12086
12102
|
return isFinite(e) ? e : 0;
|
|
12087
12103
|
}, zp = function() {
|
|
12088
12104
|
S.useEffect(function() {
|
|
12089
|
-
return document.body.setAttribute(
|
|
12105
|
+
return document.body.setAttribute(Tt, (Jo() + 1).toString()), function() {
|
|
12090
12106
|
var e = Jo() - 1;
|
|
12091
|
-
e <= 0 ? document.body.removeAttribute(
|
|
12107
|
+
e <= 0 ? document.body.removeAttribute(Tt) : document.body.setAttribute(Tt, e.toString());
|
|
12092
12108
|
};
|
|
12093
12109
|
}, []);
|
|
12094
12110
|
}, Wp = function(e) {
|
|
@@ -12110,7 +12126,7 @@ if (typeof window < "u")
|
|
|
12110
12126
|
} catch {
|
|
12111
12127
|
rs = !1;
|
|
12112
12128
|
}
|
|
12113
|
-
var
|
|
12129
|
+
var jt = rs ? { passive: !1 } : !1, Vp = function(e) {
|
|
12114
12130
|
return e.tagName === "TEXTAREA";
|
|
12115
12131
|
}, Xi = function(e, t) {
|
|
12116
12132
|
if (!(e instanceof Element))
|
|
@@ -12186,7 +12202,7 @@ var Ct = rs ? { passive: !1 } : !1, Vp = function(e) {
|
|
|
12186
12202
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
12187
12203
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
12188
12204
|
`);
|
|
12189
|
-
}, Qp = 0,
|
|
12205
|
+
}, Qp = 0, Et = [];
|
|
12190
12206
|
function eg(e) {
|
|
12191
12207
|
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);
|
|
12192
12208
|
S.useEffect(function() {
|
|
@@ -12224,7 +12240,7 @@ function eg(e) {
|
|
|
12224
12240
|
return Jp(M, x, p, M === "h" ? v : N);
|
|
12225
12241
|
}, []), u = S.useCallback(function(p) {
|
|
12226
12242
|
var x = p;
|
|
12227
|
-
if (!(!
|
|
12243
|
+
if (!(!Et.length || Et[Et.length - 1] !== o)) {
|
|
12228
12244
|
var b = "deltaY" in x ? Zo(x) : On(x), y = t.current.filter(function(j) {
|
|
12229
12245
|
return j.name === x.type && (j.target === x.target || x.target === j.shadowParent) && Xp(j.delta, b);
|
|
12230
12246
|
})[0];
|
|
@@ -12254,14 +12270,14 @@ function eg(e) {
|
|
|
12254
12270
|
d(p.type, On(p), p.target, c(p, e.lockRef.current));
|
|
12255
12271
|
}, []);
|
|
12256
12272
|
S.useEffect(function() {
|
|
12257
|
-
return
|
|
12273
|
+
return Et.push(o), e.setCallbacks({
|
|
12258
12274
|
onScrollCapture: l,
|
|
12259
12275
|
onWheelCapture: l,
|
|
12260
12276
|
onTouchMoveCapture: h
|
|
12261
|
-
}), document.addEventListener("wheel", u,
|
|
12262
|
-
|
|
12277
|
+
}), document.addEventListener("wheel", u, jt), document.addEventListener("touchmove", u, jt), document.addEventListener("touchstart", f, jt), function() {
|
|
12278
|
+
Et = Et.filter(function(p) {
|
|
12263
12279
|
return p !== o;
|
|
12264
|
-
}), document.removeEventListener("wheel", u,
|
|
12280
|
+
}), document.removeEventListener("wheel", u, jt), document.removeEventListener("touchmove", u, jt), document.removeEventListener("touchstart", f, jt);
|
|
12265
12281
|
};
|
|
12266
12282
|
}, []);
|
|
12267
12283
|
var m = e.removeScrollBar, g = e.inert;
|
|
@@ -12287,7 +12303,7 @@ var rg = function(e) {
|
|
|
12287
12303
|
return null;
|
|
12288
12304
|
var t = Array.isArray(e) ? e[0] : e;
|
|
12289
12305
|
return t.ownerDocument.body;
|
|
12290
|
-
},
|
|
12306
|
+
}, kt = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Ln = {}, $r = 0, tc = function(e) {
|
|
12291
12307
|
return e && (e.host || tc(e.parentNode));
|
|
12292
12308
|
}, sg = function(e, t) {
|
|
12293
12309
|
return t.map(function(n) {
|
|
@@ -12311,8 +12327,8 @@ var rg = function(e) {
|
|
|
12311
12327
|
f(h);
|
|
12312
12328
|
else
|
|
12313
12329
|
try {
|
|
12314
|
-
var m = h.getAttribute(r), g = m !== null && m !== "false", p = (
|
|
12315
|
-
|
|
12330
|
+
var m = h.getAttribute(r), g = m !== null && m !== "false", p = (kt.get(h) || 0) + 1, x = (o.get(h) || 0) + 1;
|
|
12331
|
+
kt.set(h, p), o.set(h, x), i.push(h), p === 1 && g && Tn.set(h, !0), x === 1 && h.setAttribute(n, "true"), g || h.setAttribute(r, "true");
|
|
12316
12332
|
} catch (b) {
|
|
12317
12333
|
console.error("aria-hidden: cannot operate on ", h, b);
|
|
12318
12334
|
}
|
|
@@ -12320,9 +12336,9 @@ var rg = function(e) {
|
|
|
12320
12336
|
};
|
|
12321
12337
|
return f(t), c.clear(), $r++, function() {
|
|
12322
12338
|
i.forEach(function(l) {
|
|
12323
|
-
var h =
|
|
12324
|
-
|
|
12325
|
-
}), $r--, $r || (
|
|
12339
|
+
var h = kt.get(l) - 1, m = o.get(l) - 1;
|
|
12340
|
+
kt.set(l, h), o.set(l, m), h || (Tn.has(l) || l.removeAttribute(r), Tn.delete(l)), m || l.removeAttribute(n);
|
|
12341
|
+
}), $r--, $r || (kt = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Ln = {});
|
|
12326
12342
|
};
|
|
12327
12343
|
}, ag = function(e, t, n) {
|
|
12328
12344
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -12364,7 +12380,7 @@ var rg = function(e) {
|
|
|
12364
12380
|
rc.displayName = hr;
|
|
12365
12381
|
var sc = "DialogTrigger", cg = S.forwardRef(
|
|
12366
12382
|
(e, t) => {
|
|
12367
|
-
const { __scopeDialog: n, ...r } = e, s = Te(sc, n), o =
|
|
12383
|
+
const { __scopeDialog: n, ...r } = e, s = Te(sc, n), o = St(t, s.triggerRef);
|
|
12368
12384
|
return /* @__PURE__ */ a.jsx(
|
|
12369
12385
|
He.button,
|
|
12370
12386
|
{
|
|
@@ -12397,7 +12413,7 @@ var rr = "DialogOverlay", ic = S.forwardRef(
|
|
|
12397
12413
|
ic.displayName = rr;
|
|
12398
12414
|
var ug = /* @__PURE__ */ Bi("DialogOverlay.RemoveScroll"), dg = S.forwardRef(
|
|
12399
12415
|
(e, t) => {
|
|
12400
|
-
const { __scopeDialog: n, ...r } = e, s = Te(rr, n), o = sp(), i =
|
|
12416
|
+
const { __scopeDialog: n, ...r } = e, s = Te(rr, n), o = sp(), i = St(t, o);
|
|
12401
12417
|
return (
|
|
12402
12418
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
12403
12419
|
// ie. when `Overlay` and `Content` are siblings
|
|
@@ -12421,7 +12437,7 @@ var ug = /* @__PURE__ */ Bi("DialogOverlay.RemoveScroll"), dg = S.forwardRef(
|
|
|
12421
12437
|
cc.displayName = Ut;
|
|
12422
12438
|
var fg = S.forwardRef(
|
|
12423
12439
|
(e, t) => {
|
|
12424
|
-
const n = Te(Ut, e.__scopeDialog), r = S.useRef(null), s =
|
|
12440
|
+
const n = Te(Ut, e.__scopeDialog), r = S.useRef(null), s = St(t, n.contentRef, r);
|
|
12425
12441
|
return S.useEffect(() => {
|
|
12426
12442
|
const o = r.current;
|
|
12427
12443
|
if (o) return ag(o);
|
|
@@ -12545,7 +12561,7 @@ function pg({ report: e, onClose: t }) {
|
|
|
12545
12561
|
/* @__PURE__ */ a.jsx(hc, { className: "mt-1 text-sm text-muted-foreground", children: "Failure details for the scheduled report." })
|
|
12546
12562
|
] })
|
|
12547
12563
|
] }),
|
|
12548
|
-
/* @__PURE__ */ a.jsx(ss, { className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close failure details", children: /* @__PURE__ */ a.jsx(
|
|
12564
|
+
/* @__PURE__ */ a.jsx(ss, { className: "rounded-md p-1 hover:bg-muted", "aria-label": "Close failure details", children: /* @__PURE__ */ a.jsx(pt, { className: "h-4 w-4" }) })
|
|
12549
12565
|
] }),
|
|
12550
12566
|
e && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
12551
12567
|
/* @__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: [
|
|
@@ -12580,7 +12596,7 @@ function pg({ report: e, onClose: t }) {
|
|
|
12580
12596
|
] }) });
|
|
12581
12597
|
}
|
|
12582
12598
|
function gg() {
|
|
12583
|
-
const { managementAccountId: e, loading: t } = Wt(), [n, r] = U(null), [s, o] = U(null), [i, c] = U(null), [u, d] = U([]), [f, l] = U(!0), [h, m] = U(!1), [g, p] = U(null), [x, b] = U(null), y = os(!0), v =
|
|
12599
|
+
const { managementAccountId: e, loading: t } = Wt(), [n, r] = U(null), [s, o] = U(null), [i, c] = U(null), [u, d] = U([]), [f, l] = U(!0), [h, m] = U(!1), [g, p] = U(null), [x, b] = U(null), y = os(!0), v = xt(async (C = !1) => {
|
|
12584
12600
|
C || l(!0);
|
|
12585
12601
|
try {
|
|
12586
12602
|
const R = await oe.getDataStatus({ managementAccountId: e });
|
|
@@ -12668,7 +12684,7 @@ function yg() {
|
|
|
12668
12684
|
/* @__PURE__ */ a.jsx(ur, {}),
|
|
12669
12685
|
/* @__PURE__ */ a.jsx("button", { type: "button", onClick: () => {
|
|
12670
12686
|
e.load();
|
|
12671
|
-
}, 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(
|
|
12687
|
+
}, 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(Dt, { className: `h-4 w-4 ${e.loading ? "animate-spin" : ""}` }) }),
|
|
12672
12688
|
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: [
|
|
12673
12689
|
/* @__PURE__ */ a.jsx(bi, { className: "h-4 w-4" }),
|
|
12674
12690
|
"Report settings"
|