meyi-insight-ui-dev 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +33 -33
- package/dist/index.mjs +504 -457
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3058,7 +3058,7 @@ function Xn(e) {
|
|
|
3058
3058
|
const t = x.useContext(ZN);
|
|
3059
3059
|
return process.env.NODE_ENV !== "production" && (t || console.warn("Warning: useRouter must be used inside a <RouterProvider> component!")), t;
|
|
3060
3060
|
}
|
|
3061
|
-
var Vu = x.createContext(void 0), ej = x.createContext(void 0),
|
|
3061
|
+
var Vu = x.createContext(void 0), ej = x.createContext(void 0), Bt = /* @__PURE__ */ ((e) => (e[e.None = 0] = "None", e[e.Mutable = 1] = "Mutable", e[e.Watching = 2] = "Watching", e[e.RecursedCheck = 4] = "RecursedCheck", e[e.Recursed = 8] = "Recursed", e[e.Dirty = 16] = "Dirty", e[e.Pending = 32] = "Pending", e))(Bt || {});
|
|
3062
3062
|
// @__NO_SIDE_EFFECTS__
|
|
3063
3063
|
function tj({
|
|
3064
3064
|
update: e,
|
|
@@ -3200,10 +3200,10 @@ const { link: m1, unlink: rj, propagate: aj, checkDirty: QN, shallowPropagate: h
|
|
|
3200
3200
|
},
|
|
3201
3201
|
// eslint-disable-next-line no-shadow
|
|
3202
3202
|
notify(e) {
|
|
3203
|
-
mm[hm++] = e, e.flags &= ~
|
|
3203
|
+
mm[hm++] = e, e.flags &= ~Bt.Watching;
|
|
3204
3204
|
},
|
|
3205
3205
|
unwatched(e) {
|
|
3206
|
-
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags =
|
|
3206
|
+
e.depsTail !== void 0 && (e.depsTail = void 0, e.flags = Bt.Mutable | Bt.Dirty, cu(e));
|
|
3207
3207
|
}
|
|
3208
3208
|
});
|
|
3209
3209
|
let Wl = 0, hm = 0, kr, gm = 0;
|
|
@@ -3236,7 +3236,7 @@ function g1(e, t) {
|
|
|
3236
3236
|
subsTail: void 0,
|
|
3237
3237
|
deps: void 0,
|
|
3238
3238
|
depsTail: void 0,
|
|
3239
|
-
flags: n ?
|
|
3239
|
+
flags: n ? Bt.None : Bt.Mutable,
|
|
3240
3240
|
get() {
|
|
3241
3241
|
return kr !== void 0 && m1(a, kr, Uc), a._snapshot;
|
|
3242
3242
|
},
|
|
@@ -3256,23 +3256,23 @@ function g1(e, t) {
|
|
|
3256
3256
|
kr = a, ++Uc, a.depsTail = void 0;
|
|
3257
3257
|
else if (s === void 0)
|
|
3258
3258
|
return !1;
|
|
3259
|
-
n && (a.flags =
|
|
3259
|
+
n && (a.flags = Bt.Mutable | Bt.RecursedCheck);
|
|
3260
3260
|
try {
|
|
3261
3261
|
const c = a._snapshot, u = typeof s == "function" ? s(c) : s === void 0 && n ? r(c) : s;
|
|
3262
3262
|
return c === void 0 || !l(c, u) ? (a._snapshot = u, !0) : !1;
|
|
3263
3263
|
} finally {
|
|
3264
|
-
kr = o, n && (a.flags &= ~
|
|
3264
|
+
kr = o, n && (a.flags &= ~Bt.RecursedCheck), cu(a);
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
3267
3267
|
};
|
|
3268
|
-
return n ? (a.flags =
|
|
3268
|
+
return n ? (a.flags = Bt.Mutable | Bt.Dirty, a.get = function() {
|
|
3269
3269
|
const s = a.flags;
|
|
3270
|
-
if (s &
|
|
3270
|
+
if (s & Bt.Dirty || s & Bt.Pending && QN(a.deps, a)) {
|
|
3271
3271
|
if (a._update()) {
|
|
3272
3272
|
const o = a.subs;
|
|
3273
3273
|
o !== void 0 && h1(o);
|
|
3274
3274
|
}
|
|
3275
|
-
} else s &
|
|
3275
|
+
} else s & Bt.Pending && (a.flags = s & ~Bt.Pending);
|
|
3276
3276
|
return kr !== void 0 && m1(a, kr, Uc), a._snapshot;
|
|
3277
3277
|
}) : a.set = function(s) {
|
|
3278
3278
|
if (a._update(s)) {
|
|
@@ -3284,24 +3284,24 @@ function g1(e, t) {
|
|
|
3284
3284
|
function ij(e) {
|
|
3285
3285
|
const t = () => {
|
|
3286
3286
|
const r = kr;
|
|
3287
|
-
kr = n, ++Uc, n.depsTail = void 0, n.flags =
|
|
3287
|
+
kr = n, ++Uc, n.depsTail = void 0, n.flags = Bt.Watching | Bt.RecursedCheck;
|
|
3288
3288
|
try {
|
|
3289
3289
|
return e();
|
|
3290
3290
|
} finally {
|
|
3291
|
-
kr = r, n.flags &= ~
|
|
3291
|
+
kr = r, n.flags &= ~Bt.RecursedCheck, cu(n);
|
|
3292
3292
|
}
|
|
3293
3293
|
}, n = {
|
|
3294
3294
|
deps: void 0,
|
|
3295
3295
|
depsTail: void 0,
|
|
3296
3296
|
subs: void 0,
|
|
3297
3297
|
subsTail: void 0,
|
|
3298
|
-
flags:
|
|
3298
|
+
flags: Bt.Watching | Bt.RecursedCheck,
|
|
3299
3299
|
notify() {
|
|
3300
3300
|
const r = this.flags;
|
|
3301
|
-
r &
|
|
3301
|
+
r & Bt.Dirty || r & Bt.Pending && QN(this.deps, this) ? t() : this.flags = Bt.Watching;
|
|
3302
3302
|
},
|
|
3303
3303
|
stop() {
|
|
3304
|
-
this.flags =
|
|
3304
|
+
this.flags = Bt.None, this.depsTail = void 0, cu(this);
|
|
3305
3305
|
}
|
|
3306
3306
|
};
|
|
3307
3307
|
return t(), n;
|
|
@@ -3518,7 +3518,7 @@ var dj = uj();
|
|
|
3518
3518
|
function pj(e, t) {
|
|
3519
3519
|
return e === t;
|
|
3520
3520
|
}
|
|
3521
|
-
function
|
|
3521
|
+
function qn(e, t, n = pj) {
|
|
3522
3522
|
const r = En(
|
|
3523
3523
|
(o) => {
|
|
3524
3524
|
if (!e)
|
|
@@ -3545,7 +3545,7 @@ var fj = {
|
|
|
3545
3545
|
};
|
|
3546
3546
|
function xi(e) {
|
|
3547
3547
|
const t = Xn(), n = x.useContext(e.from ? ej : Vu), r = e.from ?? n, a = r ? e.from ? t.stores.getRouteMatchStore(r) : t.stores.matchStores.get(r) : void 0, s = x.useRef(void 0);
|
|
3548
|
-
return
|
|
3548
|
+
return qn(a ?? fj, (o) => {
|
|
3549
3549
|
if ((e.shouldThrow ?? !0) && !o) {
|
|
3550
3550
|
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!"}`);
|
|
3551
3551
|
Qr();
|
|
@@ -3574,7 +3574,7 @@ function rC(e) {
|
|
|
3574
3574
|
select: (r) => t ? t(r.loaderDeps) : r.loaderDeps
|
|
3575
3575
|
});
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function $n(e) {
|
|
3578
3578
|
return xi({
|
|
3579
3579
|
from: e.from,
|
|
3580
3580
|
shouldThrow: e.shouldThrow,
|
|
@@ -3630,7 +3630,7 @@ function mj(e, t) {
|
|
|
3630
3630
|
e.state,
|
|
3631
3631
|
e.mask,
|
|
3632
3632
|
e.unsafeRelative
|
|
3633
|
-
]), oe =
|
|
3633
|
+
]), oe = qn(n.stores.location, (We) => We, (We, le) => We.href === le.href), ee = x.useMemo(() => {
|
|
3634
3634
|
const We = {
|
|
3635
3635
|
_fromLocation: oe,
|
|
3636
3636
|
...I
|
|
@@ -3850,7 +3850,7 @@ var wj = class extends KN {
|
|
|
3850
3850
|
select: t?.select,
|
|
3851
3851
|
structuralSharing: t?.structuralSharing,
|
|
3852
3852
|
from: this.id
|
|
3853
|
-
}), this.useParams = (t) =>
|
|
3853
|
+
}), this.useParams = (t) => $n({
|
|
3854
3854
|
select: t?.select,
|
|
3855
3855
|
structuralSharing: t?.structuralSharing,
|
|
3856
3856
|
from: this.id
|
|
@@ -3886,7 +3886,7 @@ var Tj = class extends K3 {
|
|
|
3886
3886
|
select: t?.select,
|
|
3887
3887
|
structuralSharing: t?.structuralSharing,
|
|
3888
3888
|
from: this.id
|
|
3889
|
-
}), this.useParams = (t) =>
|
|
3889
|
+
}), this.useParams = (t) => $n({
|
|
3890
3890
|
select: t?.select,
|
|
3891
3891
|
structuralSharing: t?.structuralSharing,
|
|
3892
3892
|
from: this.id
|
|
@@ -3907,7 +3907,7 @@ function Nj(e) {
|
|
|
3907
3907
|
return new Tj(e);
|
|
3908
3908
|
}
|
|
3909
3909
|
function Cj(e) {
|
|
3910
|
-
const t = Xn(), n = `not-found-${
|
|
3910
|
+
const t = Xn(), n = `not-found-${qn(t.stores.location, (r) => r.pathname)}-${qn(t.stores.status, (r) => r)}`;
|
|
3911
3911
|
return /* @__PURE__ */ i.jsx(Dh, {
|
|
3912
3912
|
getResetKey: () => n,
|
|
3913
3913
|
onCatch: (r, a) => {
|
|
@@ -3942,7 +3942,7 @@ var oC = x.memo(function({ matchId: t }) {
|
|
|
3942
3942
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find match for matchId "${t}". Please file an issue!`);
|
|
3943
3943
|
Qr();
|
|
3944
3944
|
}
|
|
3945
|
-
const a =
|
|
3945
|
+
const a = qn(n.stores.loadedAt, (o) => o), s = qn(r, (o) => o);
|
|
3946
3946
|
return /* @__PURE__ */ i.jsx(kj, {
|
|
3947
3947
|
router: n,
|
|
3948
3948
|
matchId: t,
|
|
@@ -4011,7 +4011,7 @@ var w1 = x.memo(function({ matchId: t }) {
|
|
|
4011
4011
|
if (process.env.NODE_ENV !== "production") throw new Error(`Invariant failed: Could not find match for matchId "${t}". Please file an issue!`);
|
|
4012
4012
|
Qr();
|
|
4013
4013
|
}
|
|
4014
|
-
const s =
|
|
4014
|
+
const s = qn(a, (p) => p), o = s.routeId, l = n.routesById[o], c = x.useMemo(() => {
|
|
4015
4015
|
const p = (n.routesById[o].options.remountDeps ?? n.options.defaultRemountDeps)?.({
|
|
4016
4016
|
routeId: o,
|
|
4017
4017
|
loaderDeps: s.loaderDeps,
|
|
@@ -4071,7 +4071,7 @@ var w1 = x.memo(function({ matchId: t }) {
|
|
|
4071
4071
|
let r, a = !1, s;
|
|
4072
4072
|
{
|
|
4073
4073
|
const u = n ? t.stores.matchStores.get(n) : void 0;
|
|
4074
|
-
[r, a] =
|
|
4074
|
+
[r, a] = qn(u, (p) => [p?.routeId, p?.globalNotFound ?? !1]), s = qn(t.stores.matchesId, (p) => p[p.findIndex((d) => d === n) + 1]);
|
|
4075
4075
|
}
|
|
4076
4076
|
const o = r ? t.routesById[r] : void 0, l = t.options.defaultPendingComponent ? /* @__PURE__ */ i.jsx(t.options.defaultPendingComponent, {}) : null;
|
|
4077
4077
|
if (a) {
|
|
@@ -4092,7 +4092,7 @@ function Dj() {
|
|
|
4092
4092
|
const e = Xn(), t = x.useRef({
|
|
4093
4093
|
router: e,
|
|
4094
4094
|
mounted: !1
|
|
4095
|
-
}), [n, r] = x.useState(!1), a =
|
|
4095
|
+
}), [n, r] = x.useState(!1), a = qn(e.stores.isLoading, (d) => d), s = qn(e.stores.hasPending, (d) => d), o = Rp(a), l = a || n || s, c = Rp(l), u = a || s, p = Rp(u);
|
|
4096
4096
|
return e.startTransition = (d) => {
|
|
4097
4097
|
r(!0), x.startTransition(() => {
|
|
4098
4098
|
d(), r(!1);
|
|
@@ -4166,7 +4166,7 @@ function Oj() {
|
|
|
4166
4166
|
return e.options.InnerWrap ? /* @__PURE__ */ i.jsx(e.options.InnerWrap, { children: r }) : r;
|
|
4167
4167
|
}
|
|
4168
4168
|
function Lj() {
|
|
4169
|
-
const e = Xn(), t =
|
|
4169
|
+
const e = Xn(), t = qn(e.stores.firstId, (a) => a), n = qn(e.stores.loadedAt, (a) => a), r = t ? /* @__PURE__ */ i.jsx(oC, { matchId: t }) : null;
|
|
4170
4170
|
return /* @__PURE__ */ i.jsx(Vu.Provider, {
|
|
4171
4171
|
value: t,
|
|
4172
4172
|
children: e.options.disableGlobalCatchBoundary ? r : /* @__PURE__ */ i.jsx(Dh, {
|
|
@@ -6288,26 +6288,26 @@ function RC(e) {
|
|
|
6288
6288
|
return RC(oi(e, a));
|
|
6289
6289
|
}, n;
|
|
6290
6290
|
}
|
|
6291
|
-
const
|
|
6292
|
-
|
|
6293
|
-
|
|
6294
|
-
|
|
6295
|
-
|
|
6296
|
-
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
|
|
6300
|
-
|
|
6291
|
+
const Wt = RC(ll);
|
|
6292
|
+
Wt.Axios = ai;
|
|
6293
|
+
Wt.CanceledError = cl;
|
|
6294
|
+
Wt.CancelToken = CM;
|
|
6295
|
+
Wt.isCancel = SC;
|
|
6296
|
+
Wt.VERSION = Bh;
|
|
6297
|
+
Wt.toFormData = Zu;
|
|
6298
|
+
Wt.AxiosError = Ve;
|
|
6299
|
+
Wt.Cancel = Wt.CanceledError;
|
|
6300
|
+
Wt.all = function(t) {
|
|
6301
6301
|
return Promise.all(t);
|
|
6302
6302
|
};
|
|
6303
|
-
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6303
|
+
Wt.spread = AM;
|
|
6304
|
+
Wt.isAxiosError = _M;
|
|
6305
|
+
Wt.mergeConfig = oi;
|
|
6306
|
+
Wt.AxiosHeaders = Tn;
|
|
6307
|
+
Wt.formToJSON = (e) => vC(ce.isHTMLForm(e) ? new FormData(e) : e);
|
|
6308
|
+
Wt.getAdapter = AC.getAdapter;
|
|
6309
|
+
Wt.HttpStatusCode = vm;
|
|
6310
|
+
Wt.default = Wt;
|
|
6311
6311
|
const {
|
|
6312
6312
|
Axios: bde,
|
|
6313
6313
|
AxiosError: yde,
|
|
@@ -6326,7 +6326,7 @@ const {
|
|
|
6326
6326
|
getAdapter: Ide,
|
|
6327
6327
|
mergeConfig: Dde,
|
|
6328
6328
|
create: Ode
|
|
6329
|
-
} =
|
|
6329
|
+
} = Wt, RM = {}, Ne = Wt.create({ baseURL: "/api/v1/insight" }), kM = RM?.VITE_INSIGHT_DEFAULT_TENANT_ID || "default";
|
|
6330
6330
|
Ne.interceptors.request.use((e) => (typeof window < "u" && (e.headers = e.headers || {}, e.headers["X-Tenant-Id"] = window.localStorage.getItem("insightTenantId") || kM), e));
|
|
6331
6331
|
function IM(e, t) {
|
|
6332
6332
|
Ne.defaults.baseURL = `${e}/insight`, t && (Ne.defaults.headers.common.Authorization = `Bearer ${t}`);
|
|
@@ -6783,8 +6783,8 @@ const n4 = (e) => {
|
|
|
6783
6783
|
var ye, Le, Oe;
|
|
6784
6784
|
if (ne || !pt) return;
|
|
6785
6785
|
de.current = null;
|
|
6786
|
-
const Ge = Number(((ye = lt.current) == null ? void 0 : ye.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), bt = Number(((Le = lt.current) == null ? void 0 : Le.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), At = (/* @__PURE__ */ new Date()).getTime() - ((Oe = st.current) == null ? void 0 : Oe.getTime()),
|
|
6787
|
-
if (Math.abs(
|
|
6786
|
+
const Ge = Number(((ye = lt.current) == null ? void 0 : ye.style.getPropertyValue("--swipe-amount-x").replace("px", "")) || 0), bt = Number(((Le = lt.current) == null ? void 0 : Le.style.getPropertyValue("--swipe-amount-y").replace("px", "")) || 0), At = (/* @__PURE__ */ new Date()).getTime() - ((Oe = st.current) == null ? void 0 : Oe.getTime()), Gt = Y === "x" ? Ge : bt, Zt = Math.abs(Gt) / At;
|
|
6787
|
+
if (Math.abs(Gt) >= JM || Zt > 0.11) {
|
|
6788
6788
|
Ke(v.current), d.onDismiss == null || d.onDismiss.call(d, d), W(Y === "x" ? Ge > 0 ? "right" : "left" : bt > 0 ? "down" : "up"), se(), Ie(!0);
|
|
6789
6789
|
return;
|
|
6790
6790
|
} else {
|
|
@@ -6796,10 +6796,10 @@ const n4 = (e) => {
|
|
|
6796
6796
|
onPointerMove: (ye) => {
|
|
6797
6797
|
var Le, Oe, Ge;
|
|
6798
6798
|
if (!de.current || !pt || ((Le = window.getSelection()) == null ? void 0 : Le.toString().length) > 0) return;
|
|
6799
|
-
const At = ye.clientY - de.current.y,
|
|
6799
|
+
const At = ye.clientY - de.current.y, Gt = ye.clientX - de.current.x;
|
|
6800
6800
|
var Zt;
|
|
6801
6801
|
const Sn = (Zt = e.swipeDirections) != null ? Zt : t4(Z);
|
|
6802
|
-
!Y && (Math.abs(
|
|
6802
|
+
!Y && (Math.abs(Gt) > 1 || Math.abs(At) > 1) && R(Math.abs(Gt) > Math.abs(At) ? "x" : "y");
|
|
6803
6803
|
let Qn = {
|
|
6804
6804
|
x: 0,
|
|
6805
6805
|
y: 0
|
|
@@ -6814,11 +6814,11 @@ const n4 = (e) => {
|
|
|
6814
6814
|
Qn.y = Math.abs(pa) < Math.abs(At) ? pa : At;
|
|
6815
6815
|
}
|
|
6816
6816
|
} else if (Y === "x" && (Sn.includes("left") || Sn.includes("right")))
|
|
6817
|
-
if (Sn.includes("left") &&
|
|
6818
|
-
Qn.x =
|
|
6817
|
+
if (Sn.includes("left") && Gt < 0 || Sn.includes("right") && Gt > 0)
|
|
6818
|
+
Qn.x = Gt;
|
|
6819
6819
|
else {
|
|
6820
|
-
const pa =
|
|
6821
|
-
Qn.x = Math.abs(pa) < Math.abs(
|
|
6820
|
+
const pa = Gt * xp(Gt);
|
|
6821
|
+
Qn.x = Math.abs(pa) < Math.abs(Gt) ? pa : Gt;
|
|
6822
6822
|
}
|
|
6823
6823
|
(Math.abs(Qn.x) > 0 || Math.abs(Qn.y) > 0) && pe(!0), (Oe = lt.current) == null || Oe.style.setProperty("--swipe-amount-x", `${Qn.x}px`), (Ge = lt.current) == null || Ge.style.setProperty("--swipe-amount-y", `${Qn.y}px`);
|
|
6824
6824
|
}
|
|
@@ -7731,7 +7731,7 @@ const t6 = [
|
|
|
7731
7731
|
const n6 = [
|
|
7732
7732
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
7733
7733
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
7734
|
-
],
|
|
7734
|
+
], Yn = Fe("x", n6);
|
|
7735
7735
|
const r6 = [
|
|
7736
7736
|
[
|
|
7737
7737
|
"path",
|
|
@@ -12365,7 +12365,7 @@ const Dt = x.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
12365
12365
|
children: [
|
|
12366
12366
|
t,
|
|
12367
12367
|
/* @__PURE__ */ i.jsxs(eg, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
12368
|
-
/* @__PURE__ */ i.jsx(
|
|
12368
|
+
/* @__PURE__ */ i.jsx(Yn, { className: "h-4 w-4" }),
|
|
12369
12369
|
/* @__PURE__ */ i.jsx("span", { className: "sr-only", children: "Close" })
|
|
12370
12370
|
] })
|
|
12371
12371
|
]
|
|
@@ -12373,11 +12373,11 @@ const Dt = x.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
12373
12373
|
)
|
|
12374
12374
|
] }));
|
|
12375
12375
|
Dt.displayName = ud.displayName;
|
|
12376
|
-
const
|
|
12377
|
-
|
|
12378
|
-
const
|
|
12379
|
-
|
|
12380
|
-
const
|
|
12376
|
+
const jt = ({ className: e, ...t }) => /* @__PURE__ */ i.jsx("div", { className: je("flex flex-col space-y-1.5 text-start", e), ...t });
|
|
12377
|
+
jt.displayName = "DialogHeader";
|
|
12378
|
+
const Ht = ({ className: e, ...t }) => /* @__PURE__ */ i.jsx("div", { className: je("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
|
|
12379
|
+
Ht.displayName = "DialogFooter";
|
|
12380
|
+
const Pt = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
12381
12381
|
Qh,
|
|
12382
12382
|
{
|
|
12383
12383
|
ref: n,
|
|
@@ -12385,8 +12385,8 @@ const Ut = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
|
12385
12385
|
...t
|
|
12386
12386
|
}
|
|
12387
12387
|
));
|
|
12388
|
-
|
|
12389
|
-
const
|
|
12388
|
+
Pt.displayName = Qh.displayName;
|
|
12389
|
+
const zt = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
12390
12390
|
Jh,
|
|
12391
12391
|
{
|
|
12392
12392
|
ref: n,
|
|
@@ -12394,13 +12394,13 @@ const Wt = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
|
12394
12394
|
...t
|
|
12395
12395
|
}
|
|
12396
12396
|
));
|
|
12397
|
-
|
|
12397
|
+
zt.displayName = Jh.displayName;
|
|
12398
12398
|
function mS(e, t) {
|
|
12399
12399
|
if (typeof e == "function")
|
|
12400
12400
|
return e(t);
|
|
12401
12401
|
e != null && (e.current = t);
|
|
12402
12402
|
}
|
|
12403
|
-
function
|
|
12403
|
+
function Mn(...e) {
|
|
12404
12404
|
return (t) => {
|
|
12405
12405
|
let n = !1;
|
|
12406
12406
|
const r = e.map((a) => {
|
|
@@ -12417,7 +12417,7 @@ function Fn(...e) {
|
|
|
12417
12417
|
};
|
|
12418
12418
|
}
|
|
12419
12419
|
function Tt(...e) {
|
|
12420
|
-
return x.useCallback(
|
|
12420
|
+
return x.useCallback(Mn(...e), e);
|
|
12421
12421
|
}
|
|
12422
12422
|
var MB = /* @__PURE__ */ Symbol.for("react.lazy"), mu = x[" use ".trim().toString()];
|
|
12423
12423
|
function FB(e) {
|
|
@@ -12447,7 +12447,7 @@ function UB(e) {
|
|
|
12447
12447
|
let { children: a, ...s } = n;
|
|
12448
12448
|
if (KA(a) && typeof mu == "function" && (a = mu(a._payload)), x.isValidElement(a)) {
|
|
12449
12449
|
const o = GB(a), l = zB(s, a.props);
|
|
12450
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
12450
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
12451
12451
|
}
|
|
12452
12452
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
12453
12453
|
});
|
|
@@ -12595,7 +12595,7 @@ const Re = x.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
|
12595
12595
|
{
|
|
12596
12596
|
ref: n,
|
|
12597
12597
|
className: je(
|
|
12598
|
-
"text-sm font-medium leading-
|
|
12598
|
+
"block text-sm font-medium leading-snug peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
|
12599
12599
|
e
|
|
12600
12600
|
),
|
|
12601
12601
|
...t
|
|
@@ -12722,7 +12722,7 @@ function JB(e) {
|
|
|
12722
12722
|
const { children: a, ...s } = n;
|
|
12723
12723
|
if (x.isValidElement(a)) {
|
|
12724
12724
|
const o = r8(a), l = n8(s, a.props);
|
|
12725
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
12725
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
12726
12726
|
}
|
|
12727
12727
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
12728
12728
|
});
|
|
@@ -12793,7 +12793,7 @@ function i8(e) {
|
|
|
12793
12793
|
const { children: a, ...s } = n;
|
|
12794
12794
|
if (x.isValidElement(a)) {
|
|
12795
12795
|
const o = c8(a), l = l8(s, a.props);
|
|
12796
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
12796
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
12797
12797
|
}
|
|
12798
12798
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
12799
12799
|
});
|
|
@@ -13145,7 +13145,7 @@ function jn(e) {
|
|
|
13145
13145
|
n((r) => r ?? String(A8++));
|
|
13146
13146
|
}, [e]), t ? `radix-${t}` : "";
|
|
13147
13147
|
}
|
|
13148
|
-
const _8 = ["top", "right", "bottom", "left"], Da = Math.min,
|
|
13148
|
+
const _8 = ["top", "right", "bottom", "left"], Da = Math.min, zn = Math.max, hu = Math.round, sc = Math.floor, Mr = (e) => ({
|
|
13149
13149
|
x: e,
|
|
13150
13150
|
y: e
|
|
13151
13151
|
}), R8 = {
|
|
@@ -13155,7 +13155,7 @@ const _8 = ["top", "right", "bottom", "left"], Da = Math.min, Gn = Math.max, hu
|
|
|
13155
13155
|
top: "bottom"
|
|
13156
13156
|
};
|
|
13157
13157
|
function Rm(e, t, n) {
|
|
13158
|
-
return
|
|
13158
|
+
return zn(e, Da(t, n));
|
|
13159
13159
|
}
|
|
13160
13160
|
function ea(e, t) {
|
|
13161
13161
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -13751,8 +13751,8 @@ const G8 = function(e) {
|
|
|
13751
13751
|
const S = g - p.top - p.bottom, T = h - p.left - p.right, w = Da(g - p[b], S), C = Da(h - p[y], T), N = !t.middlewareData.shift;
|
|
13752
13752
|
let _ = w, D = C;
|
|
13753
13753
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (D = T), (r = t.middlewareData.shift) != null && r.enabled.y && (_ = S), N && !f) {
|
|
13754
|
-
const k =
|
|
13755
|
-
m ? D = h - 2 * (k !== 0 || F !== 0 ? k + F :
|
|
13754
|
+
const k = zn(p.left, 0), F = zn(p.right, 0), U = zn(p.top, 0), Z = zn(p.bottom, 0);
|
|
13755
|
+
m ? D = h - 2 * (k !== 0 || F !== 0 ? k + F : zn(p.left, p.right)) : _ = g - 2 * (U !== 0 || Z !== 0 ? U + Z : zn(p.top, p.bottom));
|
|
13756
13756
|
}
|
|
13757
13757
|
await c({
|
|
13758
13758
|
...t,
|
|
@@ -13774,7 +13774,7 @@ function fd() {
|
|
|
13774
13774
|
function Rs(e) {
|
|
13775
13775
|
return i_(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
13776
13776
|
}
|
|
13777
|
-
function
|
|
13777
|
+
function Vn(e) {
|
|
13778
13778
|
var t;
|
|
13779
13779
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
13780
13780
|
}
|
|
@@ -13783,16 +13783,16 @@ function Ur(e) {
|
|
|
13783
13783
|
return (t = (i_(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
13784
13784
|
}
|
|
13785
13785
|
function i_(e) {
|
|
13786
|
-
return fd() ? e instanceof Node || e instanceof
|
|
13786
|
+
return fd() ? e instanceof Node || e instanceof Vn(e).Node : !1;
|
|
13787
13787
|
}
|
|
13788
13788
|
function gr(e) {
|
|
13789
|
-
return fd() ? e instanceof Element || e instanceof
|
|
13789
|
+
return fd() ? e instanceof Element || e instanceof Vn(e).Element : !1;
|
|
13790
13790
|
}
|
|
13791
13791
|
function sa(e) {
|
|
13792
|
-
return fd() ? e instanceof HTMLElement || e instanceof
|
|
13792
|
+
return fd() ? e instanceof HTMLElement || e instanceof Vn(e).HTMLElement : !1;
|
|
13793
13793
|
}
|
|
13794
13794
|
function kS(e) {
|
|
13795
|
-
return !fd() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
13795
|
+
return !fd() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Vn(e).ShadowRoot;
|
|
13796
13796
|
}
|
|
13797
13797
|
function ml(e) {
|
|
13798
13798
|
const {
|
|
@@ -13842,7 +13842,7 @@ function bs(e) {
|
|
|
13842
13842
|
return /^(html|body|#document)$/.test(Rs(e));
|
|
13843
13843
|
}
|
|
13844
13844
|
function br(e) {
|
|
13845
|
-
return
|
|
13845
|
+
return Vn(e).getComputedStyle(e);
|
|
13846
13846
|
}
|
|
13847
13847
|
function hd(e) {
|
|
13848
13848
|
return gr(e) ? {
|
|
@@ -13872,7 +13872,7 @@ function s_(e) {
|
|
|
13872
13872
|
function Wo(e, t, n) {
|
|
13873
13873
|
var r;
|
|
13874
13874
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
13875
|
-
const a = s_(e), s = a === ((r = e.ownerDocument) == null ? void 0 : r.body), o =
|
|
13875
|
+
const a = s_(e), s = a === ((r = e.ownerDocument) == null ? void 0 : r.body), o = Vn(a);
|
|
13876
13876
|
if (s) {
|
|
13877
13877
|
const l = Im(o);
|
|
13878
13878
|
return t.concat(o, o.visualViewport || [], ml(a) ? a : [], l && n ? Wo(l) : []);
|
|
@@ -13912,14 +13912,14 @@ function os(e) {
|
|
|
13912
13912
|
}
|
|
13913
13913
|
const Q8 = /* @__PURE__ */ Mr(0);
|
|
13914
13914
|
function l_(e) {
|
|
13915
|
-
const t =
|
|
13915
|
+
const t = Vn(e);
|
|
13916
13916
|
return !dg() || !t.visualViewport ? Q8 : {
|
|
13917
13917
|
x: t.visualViewport.offsetLeft,
|
|
13918
13918
|
y: t.visualViewport.offsetTop
|
|
13919
13919
|
};
|
|
13920
13920
|
}
|
|
13921
13921
|
function J8(e, t, n) {
|
|
13922
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
13922
|
+
return t === void 0 && (t = !1), !n || t && n !== Vn(e) ? !1 : t;
|
|
13923
13923
|
}
|
|
13924
13924
|
function di(e, t, n, r) {
|
|
13925
13925
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -13929,11 +13929,11 @@ function di(e, t, n, r) {
|
|
|
13929
13929
|
const l = J8(s, n, r) ? l_(s) : Mr(0);
|
|
13930
13930
|
let c = (a.left + l.x) / o.x, u = (a.top + l.y) / o.y, p = a.width / o.x, d = a.height / o.y;
|
|
13931
13931
|
if (s) {
|
|
13932
|
-
const f =
|
|
13932
|
+
const f = Vn(s), m = r && gr(r) ? Vn(r) : r;
|
|
13933
13933
|
let h = f, g = Im(h);
|
|
13934
13934
|
for (; g && r && m !== h; ) {
|
|
13935
13935
|
const b = os(g), y = g.getBoundingClientRect(), S = br(g), T = y.left + (g.clientLeft + parseFloat(S.paddingLeft)) * b.x, w = y.top + (g.clientTop + parseFloat(S.paddingTop)) * b.y;
|
|
13936
|
-
c *= b.x, u *= b.y, p *= b.x, d *= b.y, c += T, u += w, h =
|
|
13936
|
+
c *= b.x, u *= b.y, p *= b.x, d *= b.y, c += T, u += w, h = Vn(g), g = Im(h);
|
|
13937
13937
|
}
|
|
13938
13938
|
}
|
|
13939
13939
|
return bu({
|
|
@@ -13985,10 +13985,10 @@ function tU(e) {
|
|
|
13985
13985
|
return Array.from(e.getClientRects());
|
|
13986
13986
|
}
|
|
13987
13987
|
function nU(e) {
|
|
13988
|
-
const t = Ur(e), n = hd(e), r = e.ownerDocument.body, a =
|
|
13988
|
+
const t = Ur(e), n = hd(e), r = e.ownerDocument.body, a = zn(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = zn(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
13989
13989
|
let o = -n.scrollLeft + gd(e);
|
|
13990
13990
|
const l = -n.scrollTop;
|
|
13991
|
-
return br(r).direction === "rtl" && (o +=
|
|
13991
|
+
return br(r).direction === "rtl" && (o += zn(t.clientWidth, r.clientWidth) - a), {
|
|
13992
13992
|
width: a,
|
|
13993
13993
|
height: s,
|
|
13994
13994
|
x: o,
|
|
@@ -13997,7 +13997,7 @@ function nU(e) {
|
|
|
13997
13997
|
}
|
|
13998
13998
|
const IS = 25;
|
|
13999
13999
|
function rU(e, t) {
|
|
14000
|
-
const n =
|
|
14000
|
+
const n = Vn(e), r = Ur(e), a = n.visualViewport;
|
|
14001
14001
|
let s = r.clientWidth, o = r.clientHeight, l = 0, c = 0;
|
|
14002
14002
|
if (a) {
|
|
14003
14003
|
s = a.width, o = a.height;
|
|
@@ -14072,7 +14072,7 @@ function sU(e) {
|
|
|
14072
14072
|
let c = l.top, u = l.right, p = l.bottom, d = l.left;
|
|
14073
14073
|
for (let f = 1; f < o.length; f++) {
|
|
14074
14074
|
const m = DS(t, o[f], a);
|
|
14075
|
-
c =
|
|
14075
|
+
c = zn(m.top, c), u = Da(m.right, u), p = Da(m.bottom, p), d = zn(m.left, d);
|
|
14076
14076
|
}
|
|
14077
14077
|
return {
|
|
14078
14078
|
width: u - d,
|
|
@@ -14127,7 +14127,7 @@ function OS(e, t) {
|
|
|
14127
14127
|
return Ur(e) === n && (n = n.ownerDocument.body), n;
|
|
14128
14128
|
}
|
|
14129
14129
|
function d_(e, t) {
|
|
14130
|
-
const n =
|
|
14130
|
+
const n = Vn(e);
|
|
14131
14131
|
if (md(e))
|
|
14132
14132
|
return n;
|
|
14133
14133
|
if (!sa(e)) {
|
|
@@ -14193,7 +14193,7 @@ function pU(e, t) {
|
|
|
14193
14193
|
return;
|
|
14194
14194
|
const h = sc(d), g = sc(a.clientWidth - (p + f)), b = sc(a.clientHeight - (d + m)), y = sc(p), T = {
|
|
14195
14195
|
rootMargin: -h + "px " + -g + "px " + -b + "px " + -y + "px",
|
|
14196
|
-
threshold:
|
|
14196
|
+
threshold: zn(0, Da(1, c)) || 1
|
|
14197
14197
|
};
|
|
14198
14198
|
let w = !0;
|
|
14199
14199
|
function C(N) {
|
|
@@ -14972,7 +14972,7 @@ function n7(e) {
|
|
|
14972
14972
|
const { children: a, ...s } = n;
|
|
14973
14973
|
if (x.isValidElement(a)) {
|
|
14974
14974
|
const o = s7(a), l = i7(s, a.props);
|
|
14975
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
14975
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
14976
14976
|
}
|
|
14977
14977
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
14978
14978
|
});
|
|
@@ -15426,7 +15426,7 @@ var R7 = "MenuSub", [Lde, K_] = wi(R7), yo = "MenuSubTrigger", X_ = x.forwardRef
|
|
|
15426
15426
|
"aria-controls": a.contentId,
|
|
15427
15427
|
"data-state": J_(n.open),
|
|
15428
15428
|
...e,
|
|
15429
|
-
ref:
|
|
15429
|
+
ref: Mn(t, a.onTriggerChange),
|
|
15430
15430
|
onClick: (d) => {
|
|
15431
15431
|
e.onClick?.(d), !(e.disabled || d.defaultPrevented) && (d.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
15432
15432
|
},
|
|
@@ -15601,7 +15601,7 @@ var nR = "DropdownMenuTrigger", Ng = x.forwardRef(
|
|
|
15601
15601
|
"data-disabled": r ? "" : void 0,
|
|
15602
15602
|
disabled: r,
|
|
15603
15603
|
...a,
|
|
15604
|
-
ref:
|
|
15604
|
+
ref: Mn(t, s.triggerRef),
|
|
15605
15605
|
onPointerDown: ze(e.onPointerDown, (l) => {
|
|
15606
15606
|
!r && l.button === 0 && l.ctrlKey === !1 && (s.onOpenToggle(), s.open || l.preventDefault());
|
|
15607
15607
|
}),
|
|
@@ -15853,7 +15853,7 @@ function $t({
|
|
|
15853
15853
|
type: "button",
|
|
15854
15854
|
variant: "outline",
|
|
15855
15855
|
size: "sm",
|
|
15856
|
-
className: je("h-
|
|
15856
|
+
className: je("h-9 justify-between gap-2 px-3 font-normal", s),
|
|
15857
15857
|
style: { minWidth: o },
|
|
15858
15858
|
disabled: a,
|
|
15859
15859
|
children: [
|
|
@@ -15910,38 +15910,53 @@ function N9({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
15910
15910
|
status: g
|
|
15911
15911
|
});
|
|
15912
15912
|
};
|
|
15913
|
-
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (S) => !S && !n && r(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "
|
|
15914
|
-
/* @__PURE__ */ i.jsxs(
|
|
15915
|
-
/* @__PURE__ */ i.
|
|
15916
|
-
|
|
15917
|
-
/* @__PURE__ */ i.jsx("p", { children: t ? "Update incident details" : "Manual incident raised outside the alarm pipeline" })
|
|
15918
|
-
] }),
|
|
15919
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", className: "im-dialog-close", onClick: r, "aria-label": "Close", children: /* @__PURE__ */ i.jsx(Mn, { size: 22 }) })
|
|
15913
|
+
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (S) => !S && !n && r(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-w-xl max-h-[90vh] overflow-y-auto", children: [
|
|
15914
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
15915
|
+
/* @__PURE__ */ i.jsx(Pt, { children: t ? "Edit Incident" : "Create Incident" }),
|
|
15916
|
+
/* @__PURE__ */ i.jsx(zt, { children: t ? "Update incident details" : "Manual incident raised outside the alarm pipeline" })
|
|
15920
15917
|
] }),
|
|
15921
|
-
/* @__PURE__ */ i.jsxs("form", { onSubmit: y, children: [
|
|
15922
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15923
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15918
|
+
/* @__PURE__ */ i.jsxs("form", { onSubmit: y, className: "flex flex-col gap-4 mt-2", children: [
|
|
15919
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
15920
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15924
15921
|
/* @__PURE__ */ i.jsxs(Re, { children: [
|
|
15925
15922
|
"Title ",
|
|
15926
|
-
/* @__PURE__ */ i.jsx("span", { children: "*" })
|
|
15923
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-destructive", children: "*" })
|
|
15927
15924
|
] }),
|
|
15928
|
-
/* @__PURE__ */ i.jsx(
|
|
15925
|
+
/* @__PURE__ */ i.jsx(
|
|
15926
|
+
Be,
|
|
15927
|
+
{
|
|
15928
|
+
value: s,
|
|
15929
|
+
onChange: (S) => o(S.target.value),
|
|
15930
|
+
placeholder: "Short description of the incident",
|
|
15931
|
+
disabled: n
|
|
15932
|
+
}
|
|
15933
|
+
)
|
|
15929
15934
|
] }),
|
|
15930
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15935
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15931
15936
|
/* @__PURE__ */ i.jsx(Re, { children: "Description" }),
|
|
15932
|
-
/* @__PURE__ */ i.jsx(
|
|
15937
|
+
/* @__PURE__ */ i.jsx(
|
|
15938
|
+
"textarea",
|
|
15939
|
+
{
|
|
15940
|
+
value: l,
|
|
15941
|
+
onChange: (S) => c(S.target.value),
|
|
15942
|
+
placeholder: "Markdown supported",
|
|
15943
|
+
rows: 4,
|
|
15944
|
+
disabled: n,
|
|
15945
|
+
className: "flex w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-50 resize-none"
|
|
15946
|
+
}
|
|
15947
|
+
)
|
|
15933
15948
|
] }),
|
|
15934
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15935
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15949
|
+
/* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
15950
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15936
15951
|
/* @__PURE__ */ i.jsxs(Re, { children: [
|
|
15937
15952
|
"Priority ",
|
|
15938
|
-
/* @__PURE__ */ i.jsx("span", { children: "*" })
|
|
15953
|
+
/* @__PURE__ */ i.jsx("span", { className: "text-destructive", children: "*" })
|
|
15939
15954
|
] }),
|
|
15940
15955
|
/* @__PURE__ */ i.jsx(
|
|
15941
15956
|
$t,
|
|
15942
15957
|
{
|
|
15943
15958
|
label: "Select priority",
|
|
15944
|
-
className: "im-single-select-full",
|
|
15959
|
+
className: "im-single-select-full w-full",
|
|
15945
15960
|
value: d,
|
|
15946
15961
|
onValueChange: f,
|
|
15947
15962
|
disabled: n,
|
|
@@ -15953,13 +15968,13 @@ function N9({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
15953
15968
|
}
|
|
15954
15969
|
)
|
|
15955
15970
|
] }),
|
|
15956
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15971
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15957
15972
|
/* @__PURE__ */ i.jsx(Re, { children: "Source" }),
|
|
15958
15973
|
/* @__PURE__ */ i.jsx(
|
|
15959
15974
|
$t,
|
|
15960
15975
|
{
|
|
15961
15976
|
label: "Select source",
|
|
15962
|
-
className: "im-single-select-full",
|
|
15977
|
+
className: "im-single-select-full w-full",
|
|
15963
15978
|
value: u,
|
|
15964
15979
|
onValueChange: p,
|
|
15965
15980
|
disabled: n,
|
|
@@ -15974,17 +15989,17 @@ function N9({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
15974
15989
|
)
|
|
15975
15990
|
] })
|
|
15976
15991
|
] }),
|
|
15977
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
15978
|
-
/* @__PURE__ */ i.jsx(Re, { children: "Affected
|
|
15979
|
-
/* @__PURE__ */ i.jsx(Be, { value: m, onChange: (S) => h(S.target.value), placeholder: "
|
|
15992
|
+
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15993
|
+
/* @__PURE__ */ i.jsx(Re, { children: "Affected Resource" }),
|
|
15994
|
+
/* @__PURE__ */ i.jsx(Be, { value: m, onChange: (S) => h(S.target.value), placeholder: "Resource name or ID", disabled: n, className: "font-mono" })
|
|
15980
15995
|
] }),
|
|
15981
|
-
t && /* @__PURE__ */ i.jsxs("div", { className: "
|
|
15996
|
+
t && /* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
15982
15997
|
/* @__PURE__ */ i.jsx(Re, { children: "State" }),
|
|
15983
15998
|
/* @__PURE__ */ i.jsx(
|
|
15984
15999
|
$t,
|
|
15985
16000
|
{
|
|
15986
16001
|
label: "Select state",
|
|
15987
|
-
className: "im-single-select-full",
|
|
16002
|
+
className: "im-single-select-full w-full",
|
|
15988
16003
|
value: g,
|
|
15989
16004
|
onValueChange: (S) => b(S),
|
|
15990
16005
|
disabled: n,
|
|
@@ -15998,26 +16013,26 @@ function N9({ open: e, incident: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
15998
16013
|
)
|
|
15999
16014
|
] })
|
|
16000
16015
|
] }),
|
|
16001
|
-
/* @__PURE__ */ i.jsxs(
|
|
16016
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
16002
16017
|
/* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: r, disabled: n, children: "Cancel" }),
|
|
16003
|
-
/* @__PURE__ */ i.jsx(ie, { type: "submit",
|
|
16004
|
-
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin" }),
|
|
16005
|
-
" Saving
|
|
16006
|
-
] }) : t ? "Save
|
|
16018
|
+
/* @__PURE__ */ i.jsx(ie, { type: "submit", disabled: n, children: n ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
16019
|
+
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
16020
|
+
" Saving…"
|
|
16021
|
+
] }) : t ? "Save Changes" : "Create Incident" })
|
|
16007
16022
|
] })
|
|
16008
16023
|
] })
|
|
16009
16024
|
] }) });
|
|
16010
16025
|
}
|
|
16011
16026
|
function C9({ open: e, onConfirm: t, onCancel: n, deleting: r }) {
|
|
16012
16027
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (a) => !a && !r && n(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-w-md", children: [
|
|
16013
|
-
/* @__PURE__ */ i.jsxs(
|
|
16014
|
-
/* @__PURE__ */ i.jsxs(
|
|
16028
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
16029
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2 text-destructive", children: [
|
|
16015
16030
|
/* @__PURE__ */ i.jsx(Ei, { className: "h-5 w-5" }),
|
|
16016
16031
|
"Delete Incident"
|
|
16017
16032
|
] }),
|
|
16018
|
-
/* @__PURE__ */ i.jsx(
|
|
16033
|
+
/* @__PURE__ */ i.jsx(zt, { className: "pt-2", children: "Are you sure you want to delete this incident? This action cannot be undone." })
|
|
16019
16034
|
] }),
|
|
16020
|
-
/* @__PURE__ */ i.jsxs(
|
|
16035
|
+
/* @__PURE__ */ i.jsxs(Ht, { className: "mt-4", children: [
|
|
16021
16036
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: n, disabled: r, children: "Cancel" }),
|
|
16022
16037
|
/* @__PURE__ */ i.jsx(ie, { variant: "destructive", onClick: t, disabled: r, children: r ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
16023
16038
|
/* @__PURE__ */ i.jsx(qe, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
@@ -17831,7 +17846,7 @@ const bn = x.forwardRef(
|
|
|
17831
17846
|
)
|
|
17832
17847
|
);
|
|
17833
17848
|
bn.displayName = "TableHead";
|
|
17834
|
-
const
|
|
17849
|
+
const Ut = x.forwardRef(
|
|
17835
17850
|
({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx(
|
|
17836
17851
|
"td",
|
|
17837
17852
|
{
|
|
@@ -17844,7 +17859,7 @@ const Ft = x.forwardRef(
|
|
|
17844
17859
|
}
|
|
17845
17860
|
)
|
|
17846
17861
|
);
|
|
17847
|
-
|
|
17862
|
+
Ut.displayName = "TableCell";
|
|
17848
17863
|
const y$ = x.forwardRef(
|
|
17849
17864
|
({ className: e, ...t }, n) => /* @__PURE__ */ i.jsx("caption", { ref: n, className: je("mt-4 text-sm text-muted-foreground", e), ...t })
|
|
17850
17865
|
);
|
|
@@ -17870,7 +17885,7 @@ function E$(e) {
|
|
|
17870
17885
|
const { children: a, ...s } = n;
|
|
17871
17886
|
if (x.isValidElement(a)) {
|
|
17872
17887
|
const o = T$(a), l = w$(s, a.props);
|
|
17873
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
17888
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
17874
17889
|
}
|
|
17875
17890
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
17876
17891
|
});
|
|
@@ -19166,7 +19181,7 @@ const hH = XA(
|
|
|
19166
19181
|
defaultVariants: { variant: "default" }
|
|
19167
19182
|
}
|
|
19168
19183
|
);
|
|
19169
|
-
function
|
|
19184
|
+
function Vt({ className: e, variant: t, ...n }) {
|
|
19170
19185
|
return /* @__PURE__ */ i.jsx("div", { className: je(hH({ variant: t }), e), ...n });
|
|
19171
19186
|
}
|
|
19172
19187
|
let dc = null, hf = null;
|
|
@@ -19174,7 +19189,7 @@ function Lg() {
|
|
|
19174
19189
|
const [e, t] = j(dc || []), [n, r] = j(!dc);
|
|
19175
19190
|
return Me(() => {
|
|
19176
19191
|
if (dc) return;
|
|
19177
|
-
hf || (hf =
|
|
19192
|
+
hf || (hf = Wt.get("/api/v1/users?limit=100").then((s) => {
|
|
19178
19193
|
const o = s.data?.data || s.data?.users || s.data || [], l = Array.isArray(o) ? o : [];
|
|
19179
19194
|
return dc = l, l;
|
|
19180
19195
|
}).catch((s) => (console.error("Failed to fetch insight users", s), [])));
|
|
@@ -19236,7 +19251,7 @@ const gH = (e) => [
|
|
|
19236
19251
|
header: ({ column: t }) => /* @__PURE__ */ i.jsx(dt, { column: t, title: "ID" }),
|
|
19237
19252
|
cell: ({ row: t }) => {
|
|
19238
19253
|
const n = t.original.aliasId || t.original.alias_id;
|
|
19239
|
-
return /* @__PURE__ */ i.jsx(
|
|
19254
|
+
return /* @__PURE__ */ i.jsx(Vt, { variant: "outline", className: "text-[10px] font-medium", children: n ? `INC-${String(n).padStart(3, "0")}` : "-" });
|
|
19240
19255
|
}
|
|
19241
19256
|
},
|
|
19242
19257
|
{
|
|
@@ -19247,7 +19262,7 @@ const gH = (e) => [
|
|
|
19247
19262
|
{
|
|
19248
19263
|
accessorKey: "source",
|
|
19249
19264
|
header: ({ column: t }) => /* @__PURE__ */ i.jsx(dt, { column: t, title: "Source" }),
|
|
19250
|
-
cell: ({ row: t }) => /* @__PURE__ */ i.jsx(
|
|
19265
|
+
cell: ({ row: t }) => /* @__PURE__ */ i.jsx(Vt, { variant: "outline", className: "text-[10px] font-medium uppercase", children: t.getValue("source") })
|
|
19251
19266
|
},
|
|
19252
19267
|
{
|
|
19253
19268
|
accessorKey: "resourceName",
|
|
@@ -19259,7 +19274,7 @@ const gH = (e) => [
|
|
|
19259
19274
|
header: ({ column: t }) => /* @__PURE__ */ i.jsx(dt, { column: t, title: "Project Tag" }),
|
|
19260
19275
|
cell: ({ row: t }) => {
|
|
19261
19276
|
const n = t.getValue("projectTag");
|
|
19262
|
-
return n ? /* @__PURE__ */ i.jsx(
|
|
19277
|
+
return n ? /* @__PURE__ */ i.jsx(Vt, { variant: "secondary", children: n }) : /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground text-xs", children: "—" });
|
|
19263
19278
|
}
|
|
19264
19279
|
},
|
|
19265
19280
|
{
|
|
@@ -19372,14 +19387,14 @@ function bH({
|
|
|
19372
19387
|
"data-state": b.getIsSelected() && "selected",
|
|
19373
19388
|
className: "cursor-pointer group/row hover:bg-muted/30",
|
|
19374
19389
|
onClick: () => l(b.original.id),
|
|
19375
|
-
children: b.getVisibleCells().map((y) => /* @__PURE__ */ i.jsx(
|
|
19390
|
+
children: b.getVisibleCells().map((y) => /* @__PURE__ */ i.jsx(Ut, { children: sr(
|
|
19376
19391
|
y.column.columnDef.cell,
|
|
19377
19392
|
y.getContext()
|
|
19378
19393
|
) }, y.id))
|
|
19379
19394
|
},
|
|
19380
19395
|
b.id
|
|
19381
19396
|
)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(
|
|
19382
|
-
|
|
19397
|
+
Ut,
|
|
19383
19398
|
{
|
|
19384
19399
|
colSpan: m.length,
|
|
19385
19400
|
className: "h-24 text-center",
|
|
@@ -19469,7 +19484,7 @@ function xH({
|
|
|
19469
19484
|
disabled: n
|
|
19470
19485
|
}
|
|
19471
19486
|
),
|
|
19472
|
-
e && /* @__PURE__ */ i.jsx("button", { className: "im-clear-search", type: "button", onClick: () => r(""), "aria-label": "Clear search", children: /* @__PURE__ */ i.jsx(
|
|
19487
|
+
e && /* @__PURE__ */ i.jsx("button", { className: "im-clear-search", type: "button", onClick: () => r(""), "aria-label": "Clear search", children: /* @__PURE__ */ i.jsx(Yn, { size: 14 }) })
|
|
19473
19488
|
] }),
|
|
19474
19489
|
/* @__PURE__ */ i.jsx(
|
|
19475
19490
|
$t,
|
|
@@ -20899,7 +20914,7 @@ function ZH({ open: e, onOpenChange: t, assigneeIds: n = [], onAssign: r }) {
|
|
|
20899
20914
|
}
|
|
20900
20915
|
};
|
|
20901
20916
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: t, children: /* @__PURE__ */ i.jsxs(Dt, { className: "sm:max-w-[425px]", children: [
|
|
20902
|
-
/* @__PURE__ */ i.jsx(
|
|
20917
|
+
/* @__PURE__ */ i.jsx(jt, { children: /* @__PURE__ */ i.jsx(Pt, { children: "Assign Users" }) }),
|
|
20903
20918
|
/* @__PURE__ */ i.jsx("div", { className: "py-4", children: o ? /* @__PURE__ */ i.jsx("div", { className: "flex items-center justify-center py-8", children: /* @__PURE__ */ i.jsx(qe, { className: "h-6 w-6 animate-spin text-muted-foreground" }) }) : /* @__PURE__ */ i.jsx(Nk, { className: "h-[300px] pr-4", children: /* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
20904
20919
|
s.map((m) => {
|
|
20905
20920
|
const h = u.includes(m.id);
|
|
@@ -24011,11 +24026,11 @@ function aG({
|
|
|
24011
24026
|
Zn(s), a(!0), setTimeout(() => a(!1), 2e3);
|
|
24012
24027
|
};
|
|
24013
24028
|
return /* @__PURE__ */ i.jsx(It, { open: !0, onOpenChange: (l) => !l && n(), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
24014
|
-
/* @__PURE__ */ i.jsx(
|
|
24029
|
+
/* @__PURE__ */ i.jsx(jt, { children: /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-3", children: [
|
|
24015
24030
|
/* @__PURE__ */ i.jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-full", children: /* @__PURE__ */ i.jsx(an, { className: "h-5 w-5" }) }),
|
|
24016
24031
|
/* @__PURE__ */ i.jsxs("div", { children: [
|
|
24017
|
-
/* @__PURE__ */ i.jsx(
|
|
24018
|
-
/* @__PURE__ */ i.jsx(
|
|
24032
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Source Created!" }),
|
|
24033
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Your webhook URL is ready." })
|
|
24019
24034
|
] })
|
|
24020
24035
|
] }) }),
|
|
24021
24036
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2 mt-4", children: [
|
|
@@ -24034,17 +24049,17 @@ function aG({
|
|
|
24034
24049
|
)
|
|
24035
24050
|
] })
|
|
24036
24051
|
] }),
|
|
24037
|
-
/* @__PURE__ */ i.jsx(
|
|
24052
|
+
/* @__PURE__ */ i.jsx(Ht, { className: "mt-4", children: /* @__PURE__ */ i.jsx(ie, { onClick: n, className: "w-full", children: "Got it, close" }) })
|
|
24038
24053
|
] }) });
|
|
24039
24054
|
}
|
|
24040
24055
|
const iG = [
|
|
24041
|
-
"meyi_pulse"
|
|
24056
|
+
/*"meyi_pulse",*/
|
|
24042
24057
|
"grafana",
|
|
24043
|
-
"datadog"
|
|
24058
|
+
/*"datadog",*/
|
|
24044
24059
|
"prometheus",
|
|
24045
24060
|
"cloudwatch",
|
|
24046
24061
|
"cloudtrail",
|
|
24047
|
-
"pagerduty"
|
|
24062
|
+
/*"pagerduty",*/
|
|
24048
24063
|
"custom"
|
|
24049
24064
|
], sG = {
|
|
24050
24065
|
meyi_pulse: { label: "Meyi Pulse", Icon: li, color: "text-violet-500" },
|
|
@@ -24085,9 +24100,9 @@ function oG({
|
|
|
24085
24100
|
onClose: o ?? r
|
|
24086
24101
|
}
|
|
24087
24102
|
) : /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (b) => !b && !n && r(), children: /* @__PURE__ */ i.jsx(Dt, { children: /* @__PURE__ */ i.jsxs("form", { onSubmit: g, children: [
|
|
24088
|
-
/* @__PURE__ */ i.jsxs(
|
|
24089
|
-
/* @__PURE__ */ i.jsx(
|
|
24090
|
-
/* @__PURE__ */ i.jsx(
|
|
24103
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24104
|
+
/* @__PURE__ */ i.jsx(Pt, { children: c ? "Configure Source" : "Add Webhook Source" }),
|
|
24105
|
+
/* @__PURE__ */ i.jsx(zt, { children: c ? "Update the source details below." : "Create a webhook endpoint to receive alerts from your monitoring tool." })
|
|
24091
24106
|
] }),
|
|
24092
24107
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4 py-4", children: [
|
|
24093
24108
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -24148,7 +24163,7 @@ function oG({
|
|
|
24148
24163
|
/* @__PURE__ */ i.jsx("p", { children: "A unique webhook URL will be generated. Configure your monitoring tool to POST alerts to that URL when a resource goes down." })
|
|
24149
24164
|
] })
|
|
24150
24165
|
] }),
|
|
24151
|
-
/* @__PURE__ */ i.jsxs(
|
|
24166
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
24152
24167
|
/* @__PURE__ */ i.jsx(
|
|
24153
24168
|
ie,
|
|
24154
24169
|
{
|
|
@@ -24218,9 +24233,9 @@ function cG({
|
|
|
24218
24233
|
}
|
|
24219
24234
|
};
|
|
24220
24235
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (c) => !a && t(c), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
24221
|
-
/* @__PURE__ */ i.jsxs(
|
|
24222
|
-
/* @__PURE__ */ i.jsx(
|
|
24223
|
-
/* @__PURE__ */ i.jsxs(
|
|
24236
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24237
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Are you absolutely sure?" }),
|
|
24238
|
+
/* @__PURE__ */ i.jsxs(zt, { children: [
|
|
24224
24239
|
"This will permanently delete the source",
|
|
24225
24240
|
" ",
|
|
24226
24241
|
/* @__PURE__ */ i.jsx("strong", { className: "text-foreground font-semibold", children: n?.name || "this source" }),
|
|
@@ -24234,7 +24249,7 @@ function cG({
|
|
|
24234
24249
|
] }),
|
|
24235
24250
|
/* @__PURE__ */ i.jsx("div", { className: "space-y-2", children: o.map((c) => /* @__PURE__ */ i.jsx("p", { children: c }, c)) })
|
|
24236
24251
|
] }) : null,
|
|
24237
|
-
/* @__PURE__ */ i.jsxs(
|
|
24252
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
24238
24253
|
/* @__PURE__ */ i.jsx(
|
|
24239
24254
|
ie,
|
|
24240
24255
|
{
|
|
@@ -24279,9 +24294,9 @@ function uG({
|
|
|
24279
24294
|
!Number.isFinite(f) || f <= 0 || await s("expires", f);
|
|
24280
24295
|
}, d = !!(n || r);
|
|
24281
24296
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (f) => !d && a(f), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
24282
|
-
/* @__PURE__ */ i.jsxs(
|
|
24283
|
-
/* @__PURE__ */ i.jsx(
|
|
24284
|
-
/* @__PURE__ */ i.jsx(
|
|
24297
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24298
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Webhook Token Policy" }),
|
|
24299
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Configure token expiry per source. Default is 30 days, or set unlimited." })
|
|
24285
24300
|
] }),
|
|
24286
24301
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
24287
24302
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -24324,7 +24339,7 @@ function uG({
|
|
|
24324
24339
|
)
|
|
24325
24340
|
] })
|
|
24326
24341
|
] }),
|
|
24327
|
-
/* @__PURE__ */ i.jsxs(
|
|
24342
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
24328
24343
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: () => a(!1), disabled: d, children: "Cancel" }),
|
|
24329
24344
|
/* @__PURE__ */ i.jsxs(ie, { onClick: p, disabled: d, children: [
|
|
24330
24345
|
r ? /* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin" }) : null,
|
|
@@ -24415,9 +24430,9 @@ function fG({
|
|
|
24415
24430
|
}), F(""), Z(null), _(!1);
|
|
24416
24431
|
};
|
|
24417
24432
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (P) => !(t || n) && T(P), children: /* @__PURE__ */ i.jsxs(Dt, { className: "w-[96vw] max-w-5xl max-h-[88vh] overflow-y-auto", children: [
|
|
24418
|
-
/* @__PURE__ */ i.jsxs(
|
|
24419
|
-
/* @__PURE__ */ i.jsx(
|
|
24420
|
-
/* @__PURE__ */ i.jsx(
|
|
24433
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24434
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "AWS CloudWatch Setup" }),
|
|
24435
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Save AWS credentials, discover alarms/metrics, select alarm mapping, then deploy automatically." })
|
|
24421
24436
|
] }),
|
|
24422
24437
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-5", children: [
|
|
24423
24438
|
/* @__PURE__ */ i.jsxs(Rd, { defaultValue: "connection", className: "w-full", children: [
|
|
@@ -24776,7 +24791,7 @@ export AWS_DEFAULT_REGION=ap-south-1`
|
|
|
24776
24791
|
] })
|
|
24777
24792
|
] }) : null
|
|
24778
24793
|
] }),
|
|
24779
|
-
/* @__PURE__ */ i.jsx(
|
|
24794
|
+
/* @__PURE__ */ i.jsx(Ht, { children: /* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: () => T(!1), disabled: !!t || !!n, children: "Close" }) })
|
|
24780
24795
|
] }) });
|
|
24781
24796
|
}
|
|
24782
24797
|
function Sf({ value: e }) {
|
|
@@ -24822,9 +24837,9 @@ function hG({
|
|
|
24822
24837
|
kubernetes: DC
|
|
24823
24838
|
}, T = o?.status === "configured" ? "border-emerald-200 bg-emerald-50 text-emerald-800" : o?.status === "failed" ? "border-red-200 bg-red-50 text-red-800" : "border-amber-200 bg-amber-50 text-amber-800";
|
|
24824
24839
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (w) => !f && d(w), children: /* @__PURE__ */ i.jsxs(Dt, { className: "w-[96vw] max-w-4xl max-h-[88vh] overflow-y-auto", children: [
|
|
24825
|
-
/* @__PURE__ */ i.jsxs(
|
|
24826
|
-
/* @__PURE__ */ i.jsx(
|
|
24827
|
-
/* @__PURE__ */ i.jsx(
|
|
24840
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24841
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Prometheus Setup" }),
|
|
24842
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Generate a setup script or Kubernetes YAML to connect Alertmanager to Meyi Connect." })
|
|
24828
24843
|
] }),
|
|
24829
24844
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
24830
24845
|
/* @__PURE__ */ i.jsxs(ie, { variant: "outline", size: "sm", onClick: p, disabled: f, children: [
|
|
@@ -24928,7 +24943,7 @@ function hG({
|
|
|
24928
24943
|
/* @__PURE__ */ i.jsx("p", { className: "text-xs text-muted-foreground", children: n.snippets.note })
|
|
24929
24944
|
] }) : /* @__PURE__ */ i.jsx("p", { className: "text-sm text-muted-foreground", children: "Load setup details to continue." })
|
|
24930
24945
|
] }),
|
|
24931
|
-
/* @__PURE__ */ i.jsx(
|
|
24946
|
+
/* @__PURE__ */ i.jsx(Ht, { children: /* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: () => d(!1), disabled: f, children: "Close" }) })
|
|
24932
24947
|
] }) });
|
|
24933
24948
|
}
|
|
24934
24949
|
function gG({ value: e }) {
|
|
@@ -24968,9 +24983,9 @@ function bG({
|
|
|
24968
24983
|
}) {
|
|
24969
24984
|
const b = !!(t || n);
|
|
24970
24985
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (y) => !b && g(y), children: /* @__PURE__ */ i.jsxs(Dt, { className: "w-[96vw] max-w-4xl max-h-[88vh] overflow-y-auto", children: [
|
|
24971
|
-
/* @__PURE__ */ i.jsxs(
|
|
24972
|
-
/* @__PURE__ */ i.jsx(
|
|
24973
|
-
/* @__PURE__ */ i.jsx(
|
|
24986
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
24987
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Datadog Setup" }),
|
|
24988
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Configure this Datadog source manually or automatically via Datadog API." })
|
|
24974
24989
|
] }),
|
|
24975
24990
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
24976
24991
|
/* @__PURE__ */ i.jsxs(ie, { variant: "outline", onClick: m, disabled: b, children: [
|
|
@@ -25071,7 +25086,7 @@ function bG({
|
|
|
25071
25086
|
] }) : null
|
|
25072
25087
|
] }) : /* @__PURE__ */ i.jsx("p", { className: "text-sm text-muted-foreground", children: "Load setup details to continue." })
|
|
25073
25088
|
] }),
|
|
25074
|
-
/* @__PURE__ */ i.jsx(
|
|
25089
|
+
/* @__PURE__ */ i.jsx(Ht, { children: /* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: () => g(!1), disabled: b, children: "Close" }) })
|
|
25075
25090
|
] }) });
|
|
25076
25091
|
}
|
|
25077
25092
|
const ew = {
|
|
@@ -25231,13 +25246,13 @@ const eh = [
|
|
|
25231
25246
|
mono: "PR",
|
|
25232
25247
|
color: "#8E44AD"
|
|
25233
25248
|
},
|
|
25234
|
-
{
|
|
25235
|
-
|
|
25236
|
-
|
|
25237
|
-
|
|
25238
|
-
|
|
25239
|
-
|
|
25240
|
-
},
|
|
25249
|
+
// {
|
|
25250
|
+
// type: "datadog",
|
|
25251
|
+
// label: "Datadog",
|
|
25252
|
+
// description: "Connect Datadog monitors through the Webhooks integration",
|
|
25253
|
+
// mono: "DD",
|
|
25254
|
+
// color: "#7048C4",
|
|
25255
|
+
// },
|
|
25241
25256
|
{
|
|
25242
25257
|
type: "custom",
|
|
25243
25258
|
label: "Custom / SDK",
|
|
@@ -25664,9 +25679,9 @@ function _G({
|
|
|
25664
25679
|
R && a(R);
|
|
25665
25680
|
}
|
|
25666
25681
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: t, children: /* @__PURE__ */ i.jsxs(Dt, { className: "im-add-source-dialog p-0", children: [
|
|
25667
|
-
/* @__PURE__ */ i.jsx(
|
|
25668
|
-
/* @__PURE__ */ i.jsx(
|
|
25669
|
-
/* @__PURE__ */ i.jsx(
|
|
25682
|
+
/* @__PURE__ */ i.jsx(jt, { className: "im-add-dialog-header", children: /* @__PURE__ */ i.jsxs("div", { children: [
|
|
25683
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Add source" }),
|
|
25684
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Connect a new monitoring source instance" })
|
|
25670
25685
|
] }) }),
|
|
25671
25686
|
/* @__PURE__ */ i.jsx("div", { className: "im-stepper", "aria-label": "Add source steps", children: gc.map((R, B) => /* @__PURE__ */ i.jsxs("div", { className: `im-step ${B <= Z ? "is-active" : ""}`, children: [
|
|
25672
25687
|
/* @__PURE__ */ i.jsx("span", { children: B + 1 }),
|
|
@@ -25697,7 +25712,7 @@ function _G({
|
|
|
25697
25712
|
datadog: F
|
|
25698
25713
|
}
|
|
25699
25714
|
),
|
|
25700
|
-
/* @__PURE__ */ i.jsxs(
|
|
25715
|
+
/* @__PURE__ */ i.jsxs(Ht, { className: "im-add-dialog-footer", children: [
|
|
25701
25716
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", type: "button", onClick: () => t(!1), children: "Cancel" }),
|
|
25702
25717
|
/* @__PURE__ */ i.jsxs("div", { className: "im-dialog-footer-actions", children: [
|
|
25703
25718
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", type: "button", onClick: Y, disabled: Z === 0 || g || y, children: "Back" }),
|
|
@@ -25855,12 +25870,12 @@ aws cloudwatch describe-alarms \\
|
|
|
25855
25870
|
}
|
|
25856
25871
|
};
|
|
25857
25872
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (ve) => !Z && !P && t(ve), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-h-[92vh] w-[min(96vw,900px)] max-w-none overflow-y-auto", children: [
|
|
25858
|
-
/* @__PURE__ */ i.jsxs(
|
|
25859
|
-
/* @__PURE__ */ i.jsxs(
|
|
25873
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
25874
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2", children: [
|
|
25860
25875
|
/* @__PURE__ */ i.jsx(du, { className: "h-5 w-5 text-amber-500" }),
|
|
25861
25876
|
"AWS CloudWatch Wizard"
|
|
25862
25877
|
] }),
|
|
25863
|
-
/* @__PURE__ */ i.jsx(
|
|
25878
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Create a CloudWatch source and deploy the AWS forwarding stack from your AWS Console session." })
|
|
25864
25879
|
] }),
|
|
25865
25880
|
/* @__PURE__ */ i.jsx("div", { className: "border-b pb-4", children: /* @__PURE__ */ i.jsx("div", { className: "mx-auto flex max-w-2xl items-center justify-center", children: rw.map(({ step: ve, label: Qe, Icon: Xe }, st) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-1 items-center", children: [
|
|
25866
25881
|
/* @__PURE__ */ i.jsxs("div", { className: "flex min-w-0 flex-1 flex-col items-center gap-2", children: [
|
|
@@ -26006,7 +26021,7 @@ aws cloudwatch describe-alarms \\
|
|
|
26006
26021
|
/* @__PURE__ */ i.jsx("p", { className: "mt-2 text-xs text-muted-foreground", children: "CloudWatch sends notifications on state changes. If the alarm is already ALARM, send value 10, wait for OK, then send 100 again." })
|
|
26007
26022
|
] }) : null
|
|
26008
26023
|
] }),
|
|
26009
|
-
/* @__PURE__ */ i.jsxs(
|
|
26024
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
26010
26025
|
s > 1 && s < 3 && /* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: () => o(s - 1), disabled: Z || P, children: "Back" }),
|
|
26011
26026
|
s === 1 && /* @__PURE__ */ i.jsx(ie, { type: "button", onClick: () => o(2), children: "Next" }),
|
|
26012
26027
|
s === 2 && /* @__PURE__ */ i.jsxs(ie, { type: "button", onClick: pe, disabled: Z || !I, children: [
|
|
@@ -26160,12 +26175,12 @@ Integration: Webhook
|
|
|
26160
26175
|
Webhook URL: ${w.webhook.url}`), te.success("Contact point details copied")), window.open(`${J}/alerting/notifications/receivers/new`, "_blank", "noopener,noreferrer");
|
|
26161
26176
|
};
|
|
26162
26177
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (J) => !ee && n(J), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-h-[92vh] w-[min(96vw,920px)] max-w-none overflow-y-auto", children: [
|
|
26163
|
-
/* @__PURE__ */ i.jsxs(
|
|
26164
|
-
/* @__PURE__ */ i.jsxs(
|
|
26178
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
26179
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2", children: [
|
|
26165
26180
|
/* @__PURE__ */ i.jsx($h, { className: "h-5 w-5 text-orange-500" }),
|
|
26166
26181
|
"Grafana Source Wizard"
|
|
26167
26182
|
] }),
|
|
26168
|
-
/* @__PURE__ */ i.jsx(
|
|
26183
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Create a Grafana source and configure Grafana alerts to send webhooks to Meyi Connect." })
|
|
26169
26184
|
] }),
|
|
26170
26185
|
/* @__PURE__ */ i.jsx("div", { className: "border-b pb-4", children: /* @__PURE__ */ i.jsx("div", { className: "mx-auto flex max-w-2xl items-center justify-center", children: iw.map(({ step: J, label: pe, Icon: Ue }, Ke) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-1 items-center", children: [
|
|
26171
26186
|
/* @__PURE__ */ i.jsxs("div", { className: "flex min-w-0 flex-1 flex-col items-center gap-2", children: [
|
|
@@ -26368,7 +26383,7 @@ Webhook URL: ${w.webhook.url}`), te.success("Contact point details copied")), wi
|
|
|
26368
26383
|
/* @__PURE__ */ i.jsx("div", { children: w.setup.statusReason || "Retry automatic setup with a valid Grafana URL and token." })
|
|
26369
26384
|
] }) : null
|
|
26370
26385
|
] }) : /* @__PURE__ */ i.jsx("div", { className: "rounded-md border bg-muted/20 p-4 text-sm text-muted-foreground", children: "Setup details are not loaded yet." }) }) : null,
|
|
26371
|
-
/* @__PURE__ */ i.jsxs(
|
|
26386
|
+
/* @__PURE__ */ i.jsxs(Ht, { className: "gap-2", children: [
|
|
26372
26387
|
a > 1 && a < 3 ? /* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: () => s((J) => J - 1), disabled: ee, children: "Back" }) : null,
|
|
26373
26388
|
a === 1 ? /* @__PURE__ */ i.jsx(ie, { type: "button", onClick: () => s(2), children: "Continue" }) : null,
|
|
26374
26389
|
a === 2 ? /* @__PURE__ */ i.jsxs(ie, { type: "button", onClick: Q, disabled: !W || p, children: [
|
|
@@ -26485,12 +26500,12 @@ function jG({
|
|
|
26485
26500
|
}
|
|
26486
26501
|
}, $ = O?.status === "configured" ? "border-emerald-200 bg-emerald-50 text-emerald-800" : O?.status === "failed" ? "border-red-200 bg-red-50 text-red-800" : "border-amber-200 bg-amber-50 text-amber-800";
|
|
26487
26502
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (Y) => !U && t(Y), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-h-[92vh] w-[min(96vw,900px)] max-w-none overflow-y-auto", children: [
|
|
26488
|
-
/* @__PURE__ */ i.jsxs(
|
|
26489
|
-
/* @__PURE__ */ i.jsxs(
|
|
26503
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
26504
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2", children: [
|
|
26490
26505
|
/* @__PURE__ */ i.jsx(td, { className: "h-5 w-5 text-red-500" }),
|
|
26491
26506
|
"Prometheus Source Wizard"
|
|
26492
26507
|
] }),
|
|
26493
|
-
/* @__PURE__ */ i.jsx(
|
|
26508
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Create a Prometheus source and generate setup automation for Alertmanager." })
|
|
26494
26509
|
] }),
|
|
26495
26510
|
/* @__PURE__ */ i.jsx("div", { className: "border-b pb-4", children: /* @__PURE__ */ i.jsx("div", { className: "mx-auto flex max-w-2xl items-center justify-center", children: sw.map(({ step: Y, label: R, Icon: B }, W) => /* @__PURE__ */ i.jsxs("div", { className: "flex flex-1 items-center", children: [
|
|
26496
26511
|
/* @__PURE__ */ i.jsxs("div", { className: "flex min-w-0 flex-1 flex-col items-center gap-2", children: [
|
|
@@ -26638,7 +26653,7 @@ function jG({
|
|
|
26638
26653
|
/* @__PURE__ */ i.jsx(ow, { value: g.snippets.alertmanagerConfig })
|
|
26639
26654
|
] })
|
|
26640
26655
|
] }) : /* @__PURE__ */ i.jsx("div", { className: "rounded-md border bg-muted/20 p-4 text-sm text-muted-foreground", children: "Setup details are not loaded yet." }) }) : null,
|
|
26641
|
-
/* @__PURE__ */ i.jsxs(
|
|
26656
|
+
/* @__PURE__ */ i.jsxs(Ht, { className: "gap-2", children: [
|
|
26642
26657
|
r > 1 && r < 3 ? /* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: () => a((Y) => Y - 1), disabled: U, children: "Back" }) : null,
|
|
26643
26658
|
r === 1 ? /* @__PURE__ */ i.jsx(ie, { type: "button", onClick: () => a(2), children: "Continue" }) : null,
|
|
26644
26659
|
r === 2 ? /* @__PURE__ */ i.jsxs(ie, { type: "button", onClick: P, disabled: !F || u, children: [
|
|
@@ -26826,7 +26841,7 @@ function FG({
|
|
|
26826
26841
|
className: "im-clear-search",
|
|
26827
26842
|
"aria-label": "Clear search",
|
|
26828
26843
|
type: "button",
|
|
26829
|
-
children: /* @__PURE__ */ i.jsx(
|
|
26844
|
+
children: /* @__PURE__ */ i.jsx(Yn, { size: 14 })
|
|
26830
26845
|
}
|
|
26831
26846
|
)
|
|
26832
26847
|
] }),
|
|
@@ -27102,7 +27117,7 @@ function YG() {
|
|
|
27102
27117
|
statistic: "Average",
|
|
27103
27118
|
comparisonOperator: "GreaterThanOrEqualToThreshold",
|
|
27104
27119
|
treatMissingData: "breaching"
|
|
27105
|
-
}), [ge, Pe] = j(!1), [ye, Le] = j(null), [Oe, Ge] = j(!1), [bt, At] = j(null), [
|
|
27120
|
+
}), [ge, Pe] = j(!1), [ye, Le] = j(null), [Oe, Ge] = j(!1), [bt, At] = j(null), [Gt, Zt] = j(!1), [Sn, Qn] = j(null), [xp, pa] = j(""), [iL, sde] = j(""), [ode, sL] = j(""), [lde, cde] = j(!1), [ude, oL] = j("service"), [dde, lL] = j(""), [Ep, wv] = j(!1), [Mi, Tv] = j(null), [cL, Nv] = j(!1), [uL, vp] = j(null), [Sp, wp] = j(""), [Tp, Np] = j(""), [dL, Cp] = j(!1), [pL, $l] = j(null), [Ap, fL] = j(!1), [Fi, mL] = j(null), [hL, Cv] = j(!1), [gL, Av] = j(null), [bL, _v] = j(!1), [yL, Rv] = j(null), [kv, Iv] = j("datadoghq.com"), [Dv, Ov] = j(""), [Lv, jv] = j(""), [Pv, Mv] = j("");
|
|
27106
27121
|
Me(() => {
|
|
27107
27122
|
const he = setTimeout(() => {
|
|
27108
27123
|
g(f), u(1);
|
|
@@ -27740,7 +27755,7 @@ function QG({ alarms: e }) {
|
|
|
27740
27755
|
return /* @__PURE__ */ i.jsxs("div", { className: "flex flex-1 flex-col gap-4", children: [
|
|
27741
27756
|
/* @__PURE__ */ i.jsx("div", { className: "im-table-card", children: /* @__PURE__ */ i.jsxs(oa, { children: [
|
|
27742
27757
|
/* @__PURE__ */ i.jsx(la, { children: a.getHeaderGroups().map((s) => /* @__PURE__ */ i.jsx(Lt, { className: "bg-muted/50 group/row", children: s.headers.map((o) => /* @__PURE__ */ i.jsx(bn, { children: o.isPlaceholder ? null : sr(o.column.columnDef.header, o.getContext()) }, o.id)) }, s.id)) }),
|
|
27743
|
-
/* @__PURE__ */ i.jsx(ca, { children: a.getRowModel().rows?.length ? a.getRowModel().rows.map((s) => /* @__PURE__ */ i.jsx(Lt, { className: "group/row hover:bg-muted/30", children: s.getVisibleCells().map((o) => /* @__PURE__ */ i.jsx(
|
|
27758
|
+
/* @__PURE__ */ i.jsx(ca, { children: a.getRowModel().rows?.length ? a.getRowModel().rows.map((s) => /* @__PURE__ */ i.jsx(Lt, { className: "group/row hover:bg-muted/30", children: s.getVisibleCells().map((o) => /* @__PURE__ */ i.jsx(Ut, { children: sr(o.column.columnDef.cell, o.getContext()) }, o.id)) }, s.id)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(Ut, { colSpan: dw.length, className: "h-24 text-center", children: "No alarms found for this source." }) }) })
|
|
27744
27759
|
] }) }),
|
|
27745
27760
|
/* @__PURE__ */ i.jsx(Ls, { table: a, className: "mt-auto" })
|
|
27746
27761
|
] });
|
|
@@ -27892,7 +27907,7 @@ function nV({
|
|
|
27892
27907
|
] }),
|
|
27893
27908
|
/* @__PURE__ */ i.jsx("div", { className: "im-table-card", children: /* @__PURE__ */ i.jsxs(oa, { children: [
|
|
27894
27909
|
/* @__PURE__ */ i.jsx(la, { children: o.getHeaderGroups().map((l) => /* @__PURE__ */ i.jsx(Lt, { className: "bg-muted/50 group/row", children: l.headers.map((c) => /* @__PURE__ */ i.jsx(bn, { children: c.isPlaceholder ? null : sr(c.column.columnDef.header, c.getContext()) }, c.id)) }, l.id)) }),
|
|
27895
|
-
/* @__PURE__ */ i.jsx(ca, { children: o.getRowModel().rows?.length ? o.getRowModel().rows.map((l) => /* @__PURE__ */ i.jsx(Lt, { className: "group/row hover:bg-muted/30", children: l.getVisibleCells().map((c) => /* @__PURE__ */ i.jsx(
|
|
27910
|
+
/* @__PURE__ */ i.jsx(ca, { children: o.getRowModel().rows?.length ? o.getRowModel().rows.map((l) => /* @__PURE__ */ i.jsx(Lt, { className: "group/row hover:bg-muted/30", children: l.getVisibleCells().map((c) => /* @__PURE__ */ i.jsx(Ut, { children: sr(c.column.columnDef.cell, c.getContext()) }, c.id)) }, l.id)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(Ut, { colSpan: pw.length, className: "h-24 text-center", children: "No logs found." }) }) })
|
|
27896
27911
|
] }) }),
|
|
27897
27912
|
/* @__PURE__ */ i.jsx(Ls, { table: o, className: "mt-auto" })
|
|
27898
27913
|
] });
|
|
@@ -28136,12 +28151,12 @@ function Zk({
|
|
|
28136
28151
|
converting: a
|
|
28137
28152
|
}) {
|
|
28138
28153
|
return /* @__PURE__ */ i.jsx(It, { open: t, onOpenChange: (s) => !s && r(), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
28139
|
-
/* @__PURE__ */ i.jsxs(
|
|
28140
|
-
/* @__PURE__ */ i.jsxs(
|
|
28154
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
28155
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2", children: [
|
|
28141
28156
|
/* @__PURE__ */ i.jsx(Hh, { className: "h-5 w-5 text-primary" }),
|
|
28142
28157
|
"Convert Alert to Incident"
|
|
28143
28158
|
] }),
|
|
28144
|
-
/* @__PURE__ */ i.jsx(
|
|
28159
|
+
/* @__PURE__ */ i.jsx(zt, { children: "This will create a new incident from the alert and run AI-powered RCA analysis on it." })
|
|
28145
28160
|
] }),
|
|
28146
28161
|
e && /* @__PURE__ */ i.jsxs("div", { className: "rounded-lg bg-muted/50 border p-3 space-y-2 text-sm", children: [
|
|
28147
28162
|
/* @__PURE__ */ i.jsxs("div", { className: "text-muted-foreground", children: [
|
|
@@ -28166,7 +28181,7 @@ function Zk({
|
|
|
28166
28181
|
/* @__PURE__ */ i.jsx("code", { className: "text-xs bg-muted px-1.5 py-0.5 rounded", children: e.projectTag })
|
|
28167
28182
|
] })
|
|
28168
28183
|
] }),
|
|
28169
|
-
/* @__PURE__ */ i.jsxs(
|
|
28184
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
28170
28185
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: r, disabled: a, children: "Cancel" }),
|
|
28171
28186
|
/* @__PURE__ */ i.jsx(ie, { onClick: n, disabled: a, children: a ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
28172
28187
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin" }),
|
|
@@ -28182,11 +28197,11 @@ function Qk({
|
|
|
28182
28197
|
deleting: r
|
|
28183
28198
|
}) {
|
|
28184
28199
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (a) => !a && !r && n(), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
28185
|
-
/* @__PURE__ */ i.jsxs(
|
|
28186
|
-
/* @__PURE__ */ i.jsx(
|
|
28187
|
-
/* @__PURE__ */ i.jsx(
|
|
28200
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
28201
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Delete alert?" }),
|
|
28202
|
+
/* @__PURE__ */ i.jsx(zt, { children: "This will permanently delete this alert. It will no longer be visible in the alerts list." })
|
|
28188
28203
|
] }),
|
|
28189
|
-
/* @__PURE__ */ i.jsxs(
|
|
28204
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
28190
28205
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: n, disabled: r, children: "Cancel" }),
|
|
28191
28206
|
/* @__PURE__ */ i.jsx(ie, { variant: "destructive", onClick: t, disabled: r, children: r ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
28192
28207
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -28213,7 +28228,7 @@ function Jk({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
28213
28228
|
});
|
|
28214
28229
|
};
|
|
28215
28230
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (h) => !h && !n && r(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-w-md", children: [
|
|
28216
|
-
/* @__PURE__ */ i.jsx(
|
|
28231
|
+
/* @__PURE__ */ i.jsx(jt, { children: /* @__PURE__ */ i.jsx(Pt, { children: "Edit Alert" }) }),
|
|
28217
28232
|
/* @__PURE__ */ i.jsxs("form", { id: "alert-form", onSubmit: m, className: "flex flex-col gap-4 mt-2", children: [
|
|
28218
28233
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
28219
28234
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -28277,7 +28292,7 @@ function Jk({ open: e, alert: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
28277
28292
|
)
|
|
28278
28293
|
] })
|
|
28279
28294
|
] }),
|
|
28280
|
-
/* @__PURE__ */ i.jsxs(
|
|
28295
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
28281
28296
|
/* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: r, disabled: n, children: "Cancel" }),
|
|
28282
28297
|
/* @__PURE__ */ i.jsx(ie, { type: "submit", form: "alert-form", disabled: n || !s.trim(), children: n ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
28283
28298
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -28316,7 +28331,7 @@ function lV({
|
|
|
28316
28331
|
disabled: l
|
|
28317
28332
|
}
|
|
28318
28333
|
),
|
|
28319
|
-
e && /* @__PURE__ */ i.jsx("button", { className: "im-clear-search", type: "button", onClick: () => t(""), "aria-label": "Clear search", children: /* @__PURE__ */ i.jsx(
|
|
28334
|
+
e && /* @__PURE__ */ i.jsx("button", { className: "im-clear-search", type: "button", onClick: () => t(""), "aria-label": "Clear search", children: /* @__PURE__ */ i.jsx(Yn, { size: 14 }) })
|
|
28320
28335
|
] }),
|
|
28321
28336
|
/* @__PURE__ */ i.jsx(
|
|
28322
28337
|
$t,
|
|
@@ -28430,7 +28445,7 @@ const cV = (e) => [
|
|
|
28430
28445
|
medium: "bg-amber-500/15 text-amber-500 border-amber-500/30",
|
|
28431
28446
|
low: "bg-sky-500/15 text-sky-500 border-sky-500/30"
|
|
28432
28447
|
}[n] || "";
|
|
28433
|
-
return /* @__PURE__ */ i.jsx(
|
|
28448
|
+
return /* @__PURE__ */ i.jsx(Vt, { variant: "outline", className: `capitalize text-[11px] ${a}`, children: n });
|
|
28434
28449
|
}
|
|
28435
28450
|
},
|
|
28436
28451
|
{
|
|
@@ -28557,14 +28572,14 @@ function uV({
|
|
|
28557
28572
|
"data-state": N.getIsSelected() && "selected",
|
|
28558
28573
|
className: `group/row hover:bg-muted/30 ${c ? "cursor-pointer" : ""}`,
|
|
28559
28574
|
onClick: () => c?.(N.original.id),
|
|
28560
|
-
children: N.getVisibleCells().map((_) => /* @__PURE__ */ i.jsx(
|
|
28575
|
+
children: N.getVisibleCells().map((_) => /* @__PURE__ */ i.jsx(Ut, { children: sr(
|
|
28561
28576
|
_.column.columnDef.cell,
|
|
28562
28577
|
_.getContext()
|
|
28563
28578
|
) }, _.id))
|
|
28564
28579
|
},
|
|
28565
28580
|
N.id
|
|
28566
28581
|
)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(
|
|
28567
|
-
|
|
28582
|
+
Ut,
|
|
28568
28583
|
{
|
|
28569
28584
|
colSpan: S.length,
|
|
28570
28585
|
className: "h-24 text-center",
|
|
@@ -29117,7 +29132,7 @@ function vV({ open: e, project: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
29117
29132
|
return;
|
|
29118
29133
|
}
|
|
29119
29134
|
if (!c.trim()) {
|
|
29120
|
-
te.error("
|
|
29135
|
+
te.error("Project tag is required");
|
|
29121
29136
|
return;
|
|
29122
29137
|
}
|
|
29123
29138
|
let O = [];
|
|
@@ -29144,9 +29159,9 @@ function vV({ open: e, project: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
29144
29159
|
});
|
|
29145
29160
|
};
|
|
29146
29161
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (D) => !D && !n && r(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "max-w-xl max-h-[90vh] overflow-y-auto", children: [
|
|
29147
|
-
/* @__PURE__ */ i.jsxs(
|
|
29148
|
-
/* @__PURE__ */ i.jsx(
|
|
29149
|
-
/* @__PURE__ */ i.jsx(
|
|
29162
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
29163
|
+
/* @__PURE__ */ i.jsx(Pt, { children: s ? "Edit Project" : "New Project" }),
|
|
29164
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Projects map a resource tag to a list of dependencies used for RCA context." })
|
|
29150
29165
|
] }),
|
|
29151
29166
|
/* @__PURE__ */ i.jsxs("form", { onSubmit: _, className: "flex flex-col gap-4 mt-2", children: [
|
|
29152
29167
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-4", children: [
|
|
@@ -29272,7 +29287,7 @@ function vV({ open: e, project: t, submitting: n, onClose: r, onSubmit: a }) {
|
|
|
29272
29287
|
/* @__PURE__ */ i.jsx("p", { className: "text-xs text-muted-foreground", children: "Describe your infrastructure dependencies as JSON. This is sent to the AI for Root Cause Analysis." })
|
|
29273
29288
|
] })
|
|
29274
29289
|
] }),
|
|
29275
|
-
/* @__PURE__ */ i.jsxs(
|
|
29290
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
29276
29291
|
/* @__PURE__ */ i.jsx(ie, { type: "button", variant: "outline", onClick: r, disabled: n, children: "Cancel" }),
|
|
29277
29292
|
/* @__PURE__ */ i.jsx(ie, { type: "submit", disabled: n, children: n ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
29278
29293
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -29289,15 +29304,15 @@ function SV({
|
|
|
29289
29304
|
deleting: r
|
|
29290
29305
|
}) {
|
|
29291
29306
|
return /* @__PURE__ */ i.jsx(It, { open: !0, onOpenChange: (a) => !a && !r && n(), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
29292
|
-
/* @__PURE__ */ i.jsxs(
|
|
29293
|
-
/* @__PURE__ */ i.jsx(
|
|
29294
|
-
/* @__PURE__ */ i.jsxs(
|
|
29307
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
29308
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Delete project?" }),
|
|
29309
|
+
/* @__PURE__ */ i.jsxs(zt, { children: [
|
|
29295
29310
|
"This will permanently delete ",
|
|
29296
29311
|
/* @__PURE__ */ i.jsx("strong", { children: e.name }),
|
|
29297
29312
|
". Existing incidents that were converted using this project's dependencies will not be affected."
|
|
29298
29313
|
] })
|
|
29299
29314
|
] }),
|
|
29300
|
-
/* @__PURE__ */ i.jsxs(
|
|
29315
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
29301
29316
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: n, disabled: r, children: "Cancel" }),
|
|
29302
29317
|
/* @__PURE__ */ i.jsx(ie, { variant: "destructive", onClick: t, disabled: r, children: r ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
29303
29318
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -29354,7 +29369,7 @@ function wV({
|
|
|
29354
29369
|
)
|
|
29355
29370
|
] })
|
|
29356
29371
|
] }),
|
|
29357
|
-
/* @__PURE__ */ i.jsx("div", { className: "mt-auto pt-2 flex items-center ", children: /* @__PURE__ */ i.jsx(
|
|
29372
|
+
/* @__PURE__ */ i.jsx("div", { className: "mt-auto pt-2 flex items-center ", children: /* @__PURE__ */ i.jsx(Vt, { variant: "secondary", className: "uppercase tracking-wider text-[10px] font-semibold px-2 py-0.5 rounded-md", children: e.tag || "PROJECT" }) })
|
|
29358
29373
|
] }) });
|
|
29359
29374
|
}
|
|
29360
29375
|
function TV({
|
|
@@ -29376,7 +29391,7 @@ function TV({
|
|
|
29376
29391
|
cell: ({ row: n }) => {
|
|
29377
29392
|
const r = n.getValue("tag");
|
|
29378
29393
|
return /* @__PURE__ */ i.jsx(
|
|
29379
|
-
|
|
29394
|
+
Vt,
|
|
29380
29395
|
{
|
|
29381
29396
|
variant: "secondary",
|
|
29382
29397
|
className: "uppercase tracking-wider text-[10px] font-semibold px-2 py-0.5 rounded-md",
|
|
@@ -29487,14 +29502,14 @@ function NV({
|
|
|
29487
29502
|
{
|
|
29488
29503
|
"data-state": g.getIsSelected() && "selected",
|
|
29489
29504
|
className: "group/row hover:bg-muted/30",
|
|
29490
|
-
children: g.getVisibleCells().map((b) => /* @__PURE__ */ i.jsx(
|
|
29505
|
+
children: g.getVisibleCells().map((b) => /* @__PURE__ */ i.jsx(Ut, { children: sr(
|
|
29491
29506
|
b.column.columnDef.cell,
|
|
29492
29507
|
b.getContext()
|
|
29493
29508
|
) }, b.id))
|
|
29494
29509
|
},
|
|
29495
29510
|
g.id
|
|
29496
29511
|
)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(
|
|
29497
|
-
|
|
29512
|
+
Ut,
|
|
29498
29513
|
{
|
|
29499
29514
|
colSpan: f.length,
|
|
29500
29515
|
className: "h-24 text-center",
|
|
@@ -29530,7 +29545,7 @@ function hw({
|
|
|
29530
29545
|
onClick: () => t(""),
|
|
29531
29546
|
className: "absolute right-2.5 top-2 text-muted-foreground hover:text-foreground",
|
|
29532
29547
|
"aria-label": "Clear search",
|
|
29533
|
-
children: /* @__PURE__ */ i.jsx(
|
|
29548
|
+
children: /* @__PURE__ */ i.jsx(Yn, { className: "h-4 w-4" })
|
|
29534
29549
|
}
|
|
29535
29550
|
)
|
|
29536
29551
|
] }) }),
|
|
@@ -31469,34 +31484,34 @@ function gq({
|
|
|
31469
31484
|
}, p = (f) => {
|
|
31470
31485
|
switch (f) {
|
|
31471
31486
|
case "completed":
|
|
31472
|
-
return /* @__PURE__ */ i.jsxs(
|
|
31487
|
+
return /* @__PURE__ */ i.jsxs(Vt, { className: "bg-emerald-500/10 text-emerald-400 border-emerald-500/20", children: [
|
|
31473
31488
|
/* @__PURE__ */ i.jsx(G1, { className: "h-3 w-3 mr-1" }),
|
|
31474
31489
|
" Completed"
|
|
31475
31490
|
] });
|
|
31476
31491
|
case "failed":
|
|
31477
|
-
return /* @__PURE__ */ i.jsxs(
|
|
31492
|
+
return /* @__PURE__ */ i.jsxs(Vt, { className: "bg-red-500/10 text-red-400 border-red-500/20", children: [
|
|
31478
31493
|
/* @__PURE__ */ i.jsx(BC, { className: "h-3 w-3 mr-1" }),
|
|
31479
31494
|
" Failed"
|
|
31480
31495
|
] });
|
|
31481
31496
|
case "running":
|
|
31482
|
-
return /* @__PURE__ */ i.jsxs(
|
|
31497
|
+
return /* @__PURE__ */ i.jsxs(Vt, { className: "bg-blue-500/10 text-blue-400 border-blue-500/20", children: [
|
|
31483
31498
|
/* @__PURE__ */ i.jsx(li, { className: "h-3 w-3 mr-1 animate-pulse" }),
|
|
31484
31499
|
" Running"
|
|
31485
31500
|
] });
|
|
31486
31501
|
default:
|
|
31487
|
-
return /* @__PURE__ */ i.jsx(
|
|
31502
|
+
return /* @__PURE__ */ i.jsx(Vt, { className: "bg-zinc-500/10 text-zinc-400 border-zinc-500/20", children: f });
|
|
31488
31503
|
}
|
|
31489
31504
|
}, d = r.filter(
|
|
31490
31505
|
(f) => f.id.toLowerCase().includes(l.toLowerCase()) || f.alertName && f.alertName.toLowerCase().includes(l.toLowerCase()) || f.errorMessage && f.errorMessage.toLowerCase().includes(l.toLowerCase())
|
|
31491
31506
|
);
|
|
31492
31507
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: t, children: /* @__PURE__ */ i.jsxs(Dt, { className: "w-[90vw] max-w-6xl max-h-[85vh] flex flex-col p-0", children: [
|
|
31493
|
-
/* @__PURE__ */ i.jsxs(
|
|
31494
|
-
/* @__PURE__ */ i.jsxs(
|
|
31508
|
+
/* @__PURE__ */ i.jsxs(jt, { className: "p-6 pb-4 border-b bg-muted/30", children: [
|
|
31509
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "text-2xl font-bold flex items-center gap-2", children: [
|
|
31495
31510
|
/* @__PURE__ */ i.jsx(li, { className: "h-6 w-6 text-primary" }),
|
|
31496
31511
|
"Execution History: ",
|
|
31497
31512
|
n?.name
|
|
31498
31513
|
] }),
|
|
31499
|
-
/* @__PURE__ */ i.jsx(
|
|
31514
|
+
/* @__PURE__ */ i.jsx(zt, { children: "View recent triggers and action outcomes for this workflow." })
|
|
31500
31515
|
] }),
|
|
31501
31516
|
/* @__PURE__ */ i.jsxs("div", { className: "flex-1 overflow-hidden flex flex-col p-6 gap-4", children: [
|
|
31502
31517
|
/* @__PURE__ */ i.jsxs("div", { className: "relative", children: [
|
|
@@ -31518,18 +31533,18 @@ function gq({
|
|
|
31518
31533
|
/* @__PURE__ */ i.jsx(bn, { children: "Status" }),
|
|
31519
31534
|
/* @__PURE__ */ i.jsx(bn, { children: "Actions Executed" })
|
|
31520
31535
|
] }) }),
|
|
31521
|
-
/* @__PURE__ */ i.jsx(ca, { children: s ? /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(
|
|
31522
|
-
/* @__PURE__ */ i.jsxs(
|
|
31536
|
+
/* @__PURE__ */ i.jsx(ca, { children: s ? /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(Ut, { colSpan: 4, className: "h-24 text-center text-muted-foreground", children: "Loading execution history..." }) }) : d.length === 0 ? /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(Ut, { colSpan: 4, className: "h-24 text-center text-muted-foreground", children: "No executions found." }) }) : d.map((f) => /* @__PURE__ */ i.jsxs(Lt, { children: [
|
|
31537
|
+
/* @__PURE__ */ i.jsxs(Ut, { className: "font-medium", children: [
|
|
31523
31538
|
/* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
31524
31539
|
/* @__PURE__ */ i.jsx(ci, { className: "h-3 w-3 text-muted-foreground" }),
|
|
31525
31540
|
/* @__PURE__ */ i.jsx("span", { children: pq(new Date(f.triggeredAt), "MMM d, HH:mm:ss") })
|
|
31526
31541
|
] }),
|
|
31527
31542
|
/* @__PURE__ */ i.jsx("div", { className: "text-xs text-muted-foreground mt-1", children: hq(new Date(f.triggeredAt), { addSuffix: !0 }) })
|
|
31528
31543
|
] }),
|
|
31529
|
-
/* @__PURE__ */ i.jsx(
|
|
31530
|
-
/* @__PURE__ */ i.jsx(
|
|
31531
|
-
/* @__PURE__ */ i.jsx(
|
|
31532
|
-
|
|
31544
|
+
/* @__PURE__ */ i.jsx(Ut, { children: /* @__PURE__ */ i.jsx("div", { className: "font-medium", children: f.alertName || "Unknown Alert" }) }),
|
|
31545
|
+
/* @__PURE__ */ i.jsx(Ut, { children: p(f.status) }),
|
|
31546
|
+
/* @__PURE__ */ i.jsx(Ut, { children: /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap gap-1.5", children: f.actionsExecuted && f.actionsExecuted.length > 0 ? f.actionsExecuted.map((m, h) => /* @__PURE__ */ i.jsxs(
|
|
31547
|
+
Vt,
|
|
31533
31548
|
{
|
|
31534
31549
|
variant: "outline",
|
|
31535
31550
|
className: `text-[10px] py-0 px-2 flex items-center gap-1 ${m.status === "success" ? "bg-emerald-500/10 text-emerald-600 border-emerald-500/20" : m.status === "skipped" ? "bg-muted text-muted-foreground" : "bg-red-500/10 text-red-600 border-red-500/20"}`,
|
|
@@ -31635,8 +31650,8 @@ function xI({
|
|
|
31635
31650
|
options: [
|
|
31636
31651
|
{ label: "All sources", value: "" },
|
|
31637
31652
|
{ label: "CloudWatch", value: "cloudwatch" },
|
|
31638
|
-
{ label: "Prometheus", value: "prometheus" }
|
|
31639
|
-
{ label: "Datadog", value: "datadog" }
|
|
31653
|
+
{ label: "Prometheus", value: "prometheus" }
|
|
31654
|
+
// { label: "Datadog", value: "datadog" },
|
|
31640
31655
|
]
|
|
31641
31656
|
}
|
|
31642
31657
|
)
|
|
@@ -32573,12 +32588,12 @@ function Yq() {
|
|
|
32573
32588
|
] }, S.provider_name);
|
|
32574
32589
|
}) }),
|
|
32575
32590
|
/* @__PURE__ */ i.jsx(It, { open: !!a, onOpenChange: (S) => !S && s(null), children: /* @__PURE__ */ i.jsxs(Dt, { className: "sm:max-w-[425px]", children: [
|
|
32576
|
-
/* @__PURE__ */ i.jsxs(
|
|
32577
|
-
/* @__PURE__ */ i.jsxs(
|
|
32591
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
32592
|
+
/* @__PURE__ */ i.jsxs(Pt, { children: [
|
|
32578
32593
|
"Configure ",
|
|
32579
32594
|
b?.display_name
|
|
32580
32595
|
] }),
|
|
32581
|
-
/* @__PURE__ */ i.jsxs(
|
|
32596
|
+
/* @__PURE__ */ i.jsxs(zt, { children: [
|
|
32582
32597
|
"Set up the default connection credentials for ",
|
|
32583
32598
|
b?.display_name,
|
|
32584
32599
|
"."
|
|
@@ -32648,7 +32663,7 @@ function Yq() {
|
|
|
32648
32663
|
] })
|
|
32649
32664
|
] })
|
|
32650
32665
|
] }),
|
|
32651
|
-
/* @__PURE__ */ i.jsxs(
|
|
32666
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
32652
32667
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: () => s(null), children: "Cancel" }),
|
|
32653
32668
|
/* @__PURE__ */ i.jsxs(ie, { onClick: g, disabled: !!p, children: [
|
|
32654
32669
|
p ? /* @__PURE__ */ i.jsx(qe, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ i.jsx(WC, { className: "mr-2 h-4 w-4" }),
|
|
@@ -32841,11 +32856,11 @@ function eY({ sop: e, onEdit: t, onDelete: n, onView: r }) {
|
|
|
32841
32856
|
] }),
|
|
32842
32857
|
e.description && /* @__PURE__ */ i.jsx("p", { className: "text-xs text-muted-foreground line-clamp-2", children: e.description }),
|
|
32843
32858
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-wrap gap-1.5 mt-auto", children: [
|
|
32844
|
-
e.severity && /* @__PURE__ */ i.jsxs(
|
|
32859
|
+
e.severity && /* @__PURE__ */ i.jsxs(Vt, { variant: "outline", className: `text-[10px] px-1.5 py-0 capitalize ${Qq[e.severity] ?? ""}`, children: [
|
|
32845
32860
|
"• ",
|
|
32846
32861
|
e.severity
|
|
32847
32862
|
] }),
|
|
32848
|
-
/* @__PURE__ */ i.jsx(
|
|
32863
|
+
/* @__PURE__ */ i.jsx(Vt, { variant: "outline", className: `text-[10px] px-1.5 py-0 capitalize ${Jq[e.status] ?? ""}`, children: e.status })
|
|
32849
32864
|
] }),
|
|
32850
32865
|
/* @__PURE__ */ i.jsxs("div", { className: "text-xs flex flex-col gap-1.5 border-t pt-2 mt-1", children: [
|
|
32851
32866
|
e.alertType && /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-1.5 text-muted-foreground", children: [
|
|
@@ -32904,7 +32919,7 @@ const tY = {
|
|
|
32904
32919
|
header: ({ column: t }) => /* @__PURE__ */ i.jsx(dt, { column: t, title: "Severity" }),
|
|
32905
32920
|
cell: ({ row: t }) => {
|
|
32906
32921
|
const n = t.getValue("severity");
|
|
32907
|
-
return n ? /* @__PURE__ */ i.jsxs(
|
|
32922
|
+
return n ? /* @__PURE__ */ i.jsxs(Vt, { variant: "outline", className: `text-[11px] capitalize ${tY[n] ?? ""}`, children: [
|
|
32908
32923
|
"• ",
|
|
32909
32924
|
n
|
|
32910
32925
|
] }) : /* @__PURE__ */ i.jsx("span", { className: "text-muted-foreground text-xs", children: "—" });
|
|
@@ -32992,14 +33007,14 @@ function rY({
|
|
|
32992
33007
|
"data-state": b.getIsSelected() && "selected",
|
|
32993
33008
|
className: "cursor-pointer group/row hover:bg-muted/30",
|
|
32994
33009
|
onClick: () => l(b.original.id),
|
|
32995
|
-
children: b.getVisibleCells().map((y) => /* @__PURE__ */ i.jsx(
|
|
33010
|
+
children: b.getVisibleCells().map((y) => /* @__PURE__ */ i.jsx(Ut, { children: sr(
|
|
32996
33011
|
y.column.columnDef.cell,
|
|
32997
33012
|
y.getContext()
|
|
32998
33013
|
) }, y.id))
|
|
32999
33014
|
},
|
|
33000
33015
|
b.id
|
|
33001
33016
|
)) : /* @__PURE__ */ i.jsx(Lt, { children: /* @__PURE__ */ i.jsx(
|
|
33002
|
-
|
|
33017
|
+
Ut,
|
|
33003
33018
|
{
|
|
33004
33019
|
colSpan: m.length,
|
|
33005
33020
|
className: "h-24 text-center",
|
|
@@ -33046,12 +33061,12 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33046
33061
|
}, U.readAsText(F);
|
|
33047
33062
|
};
|
|
33048
33063
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (k) => !k && !n && a(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "sm:max-w-xl max-h-[90vh] overflow-y-auto flex flex-col", children: [
|
|
33049
|
-
/* @__PURE__ */ i.jsxs(
|
|
33050
|
-
/* @__PURE__ */ i.jsx(
|
|
33051
|
-
/* @__PURE__ */ i.jsx(
|
|
33064
|
+
/* @__PURE__ */ i.jsxs(jt, { className: "shrink-0", children: [
|
|
33065
|
+
/* @__PURE__ */ i.jsx(Pt, { children: t ? "Edit SOP Metadata" : "Create New SOP" }),
|
|
33066
|
+
/* @__PURE__ */ i.jsx(zt, { children: t ? "Update the details of this standard operating procedure." : "Create a new runbook for incident response." })
|
|
33052
33067
|
] }),
|
|
33053
|
-
/* @__PURE__ */ i.jsxs("form", { id: "sop-form", onSubmit: D, className: "space-y-
|
|
33054
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33068
|
+
/* @__PURE__ */ i.jsxs("form", { id: "sop-form", onSubmit: D, className: "space-y-5 flex-1", children: [
|
|
33069
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33055
33070
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-title", children: "Title *" }),
|
|
33056
33071
|
/* @__PURE__ */ i.jsx(
|
|
33057
33072
|
Be,
|
|
@@ -33066,7 +33081,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33066
33081
|
)
|
|
33067
33082
|
] }),
|
|
33068
33083
|
/* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
33069
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33084
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33070
33085
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-alert-type", children: "Alert Type" }),
|
|
33071
33086
|
/* @__PURE__ */ i.jsx(
|
|
33072
33087
|
Be,
|
|
@@ -33079,7 +33094,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33079
33094
|
}
|
|
33080
33095
|
)
|
|
33081
33096
|
] }),
|
|
33082
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33097
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33083
33098
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-service", children: "Service" }),
|
|
33084
33099
|
/* @__PURE__ */ i.jsx(
|
|
33085
33100
|
Be,
|
|
@@ -33094,7 +33109,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33094
33109
|
] })
|
|
33095
33110
|
] }),
|
|
33096
33111
|
/* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-2 gap-4", children: [
|
|
33097
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33112
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33098
33113
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-severity", children: "Severity" }),
|
|
33099
33114
|
/* @__PURE__ */ i.jsx(
|
|
33100
33115
|
$t,
|
|
@@ -33113,7 +33128,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33113
33128
|
}
|
|
33114
33129
|
)
|
|
33115
33130
|
] }),
|
|
33116
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33131
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33117
33132
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-status", children: "Initial Status" }),
|
|
33118
33133
|
/* @__PURE__ */ i.jsx(
|
|
33119
33134
|
$t,
|
|
@@ -33132,7 +33147,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33132
33147
|
)
|
|
33133
33148
|
] })
|
|
33134
33149
|
] }),
|
|
33135
|
-
/* @__PURE__ */ i.jsxs("div", { className: "
|
|
33150
|
+
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33136
33151
|
/* @__PURE__ */ i.jsx(Re, { htmlFor: "sop-description", children: "Description" }),
|
|
33137
33152
|
/* @__PURE__ */ i.jsx(
|
|
33138
33153
|
Au,
|
|
@@ -33146,8 +33161,8 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33146
33161
|
}
|
|
33147
33162
|
)
|
|
33148
33163
|
] }),
|
|
33149
|
-
!t && /* @__PURE__ */ i.
|
|
33150
|
-
/* @__PURE__ */ i.jsx(Re, {
|
|
33164
|
+
!t && /* @__PURE__ */ i.jsx("div", { className: "pt-1", children: /* @__PURE__ */ i.jsxs("div", { className: "flex flex-col gap-1.5", children: [
|
|
33165
|
+
/* @__PURE__ */ i.jsx(Re, { children: "Runbook Content Generation" }),
|
|
33151
33166
|
/* @__PURE__ */ i.jsxs(Rd, { value: T, onValueChange: (k) => w(k), className: "w-full", children: [
|
|
33152
33167
|
/* @__PURE__ */ i.jsxs(yl, { className: "grid w-full grid-cols-2 mb-4", children: [
|
|
33153
33168
|
/* @__PURE__ */ i.jsxs(ja, { value: "manual", disabled: n, children: [
|
|
@@ -33206,7 +33221,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33206
33221
|
}
|
|
33207
33222
|
) })
|
|
33208
33223
|
] })
|
|
33209
|
-
] }),
|
|
33224
|
+
] }) }),
|
|
33210
33225
|
t && /* @__PURE__ */ i.jsx("div", { className: "pt-2", children: /* @__PURE__ */ i.jsxs("p", { className: "text-sm text-muted-foreground bg-muted/50 p-3 rounded-md", children: [
|
|
33211
33226
|
/* @__PURE__ */ i.jsx(hs, { className: "h-4 w-4 inline-block mr-2 -mt-0.5" }),
|
|
33212
33227
|
"To edit the runbook contents, please save these metadata changes and click ",
|
|
@@ -33214,7 +33229,7 @@ function aY({ open: e, editing: t, submitting: n, onSubmit: r, onCancel: a }) {
|
|
|
33214
33229
|
" on the detail page."
|
|
33215
33230
|
] }) })
|
|
33216
33231
|
] }),
|
|
33217
|
-
/* @__PURE__ */ i.jsxs(
|
|
33232
|
+
/* @__PURE__ */ i.jsxs(Ht, { className: "shrink-0 mt-2", children: [
|
|
33218
33233
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: a, disabled: n, children: "Cancel" }),
|
|
33219
33234
|
/* @__PURE__ */ i.jsx(ie, { type: "submit", form: "sop-form", disabled: n || !s.trim(), children: n ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
33220
33235
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -33230,11 +33245,11 @@ function iY({
|
|
|
33230
33245
|
deleting: r
|
|
33231
33246
|
}) {
|
|
33232
33247
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (a) => !a && !r && n(), children: /* @__PURE__ */ i.jsxs(Dt, { children: [
|
|
33233
|
-
/* @__PURE__ */ i.jsxs(
|
|
33234
|
-
/* @__PURE__ */ i.jsx(
|
|
33235
|
-
/* @__PURE__ */ i.jsx(
|
|
33248
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
33249
|
+
/* @__PURE__ */ i.jsx(Pt, { children: "Delete SOP?" }),
|
|
33250
|
+
/* @__PURE__ */ i.jsx(zt, { children: "This will permanently delete this standard operating procedure. This action cannot be undone." })
|
|
33236
33251
|
] }),
|
|
33237
|
-
/* @__PURE__ */ i.jsxs(
|
|
33252
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
33238
33253
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: n, disabled: r, children: "Cancel" }),
|
|
33239
33254
|
/* @__PURE__ */ i.jsx(ie, { variant: "destructive", onClick: t, disabled: r, children: r ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
33240
33255
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -33252,12 +33267,12 @@ function sY({ open: e, submitting: t, onSubmit: n, onCancel: r }) {
|
|
|
33252
33267
|
l.preventDefault(), a.trim() && n(a);
|
|
33253
33268
|
};
|
|
33254
33269
|
return /* @__PURE__ */ i.jsx(It, { open: e, onOpenChange: (l) => !l && !t && r(), children: /* @__PURE__ */ i.jsxs(Dt, { className: "sm:max-w-md", children: [
|
|
33255
|
-
/* @__PURE__ */ i.jsxs(
|
|
33256
|
-
/* @__PURE__ */ i.jsxs(
|
|
33270
|
+
/* @__PURE__ */ i.jsxs(jt, { children: [
|
|
33271
|
+
/* @__PURE__ */ i.jsxs(Pt, { className: "flex items-center gap-2 text-foreground", children: [
|
|
33257
33272
|
/* @__PURE__ */ i.jsx(dl, { className: "w-5 h-5" }),
|
|
33258
33273
|
"Generate SOP with AI"
|
|
33259
33274
|
] }),
|
|
33260
|
-
/* @__PURE__ */ i.jsx(
|
|
33275
|
+
/* @__PURE__ */ i.jsx(zt, { children: "Provide a prompt and our AI will generate a complete runbook for you." })
|
|
33261
33276
|
] }),
|
|
33262
33277
|
/* @__PURE__ */ i.jsxs("form", { id: "sop-ai-form", onSubmit: o, className: "space-y-4 py-2", children: [
|
|
33263
33278
|
/* @__PURE__ */ i.jsxs("div", { className: "space-y-2", children: [
|
|
@@ -33282,7 +33297,7 @@ function sY({ open: e, submitting: t, onSubmit: n, onCancel: r }) {
|
|
|
33282
33297
|
" state. You will be able to review and edit the generated runbook."
|
|
33283
33298
|
] })
|
|
33284
33299
|
] }),
|
|
33285
|
-
/* @__PURE__ */ i.jsxs(
|
|
33300
|
+
/* @__PURE__ */ i.jsxs(Ht, { children: [
|
|
33286
33301
|
/* @__PURE__ */ i.jsx(ie, { variant: "outline", onClick: r, disabled: t, children: "Cancel" }),
|
|
33287
33302
|
/* @__PURE__ */ i.jsx(ie, { type: "submit", form: "sop-ai-form", disabled: t || !a.trim(), children: t ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
33288
33303
|
/* @__PURE__ */ i.jsx(qe, { className: "h-4 w-4 animate-spin mr-2" }),
|
|
@@ -33500,15 +33515,15 @@ var lo = '[cmdk-group=""]', If = '[cmdk-group-items=""]', gY = '[cmdk-group-head
|
|
|
33500
33515
|
}
|
|
33501
33516
|
if (!m) return null;
|
|
33502
33517
|
let { disabled: b, value: y, onSelect: S, forceMount: T, keywords: w, ...C } = e;
|
|
33503
|
-
return x.createElement(it.div, { ref:
|
|
33518
|
+
return x.createElement(it.div, { ref: Mn(s, t), ...C, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!f, "data-disabled": !!b, "data-selected": !!f, onPointerMove: b || l.getDisablePointerSelection() ? void 0 : g, onClick: b ? void 0 : h }, e.children);
|
|
33504
33519
|
}), xY = x.forwardRef((e, t) => {
|
|
33505
33520
|
let { heading: n, children: r, forceMount: a, ...s } = e, o = jn(), l = x.useRef(null), c = x.useRef(null), u = jn(), p = El(), d = Pa((m) => a || p.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(o) : !0);
|
|
33506
33521
|
mi(() => p.group(o), []), FI(o, l, [e.value, e.heading, c]);
|
|
33507
33522
|
let f = x.useMemo(() => ({ id: o, forceMount: a }), [a]);
|
|
33508
|
-
return x.createElement(it.div, { ref:
|
|
33523
|
+
return x.createElement(it.div, { ref: Mn(l, t), ...s, "cmdk-group": "", role: "presentation", hidden: d ? void 0 : !0 }, n && x.createElement("div", { ref: c, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, n), Fd(e, (m) => x.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? u : void 0 }, x.createElement(jI.Provider, { value: f }, m))));
|
|
33509
33524
|
}), EY = x.forwardRef((e, t) => {
|
|
33510
33525
|
let { alwaysRender: n, ...r } = e, a = x.useRef(null), s = Pa((o) => !o.search);
|
|
33511
|
-
return !n && !s ? null : x.createElement(it.div, { ref:
|
|
33526
|
+
return !n && !s ? null : x.createElement(it.div, { ref: Mn(a, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
33512
33527
|
}), vY = x.forwardRef((e, t) => {
|
|
33513
33528
|
let { onValueChange: n, ...r } = e, a = e.value != null, s = ob(), o = Pa((u) => u.search), l = Pa((u) => u.selectedItemId), c = El();
|
|
33514
33529
|
return x.useEffect(() => {
|
|
@@ -33530,7 +33545,7 @@ var lo = '[cmdk-group=""]', If = '[cmdk-group-items=""]', gY = '[cmdk-group-head
|
|
|
33530
33545
|
cancelAnimationFrame(d), f.unobserve(u);
|
|
33531
33546
|
};
|
|
33532
33547
|
}
|
|
33533
|
-
}, []), x.createElement(it.div, { ref:
|
|
33548
|
+
}, []), x.createElement(it.div, { ref: Mn(s, t), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": r, id: c.listId }, Fd(e, (u) => x.createElement("div", { ref: Mn(o, c.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
33534
33549
|
}), wY = x.forwardRef((e, t) => {
|
|
33535
33550
|
let { open: n, onOpenChange: r, overlayClassName: a, contentClassName: s, container: o, ...l } = e;
|
|
33536
33551
|
return x.createElement(Xh, { open: n, onOpenChange: r }, x.createElement(Zh, { container: o }, x.createElement(cd, { "cmdk-overlay": "", className: a }), x.createElement(ud, { "aria-label": e.label, "cmdk-dialog": "", className: s }, x.createElement(PI, { ref: t, ...l }))));
|
|
@@ -33730,7 +33745,7 @@ function OY(e) {
|
|
|
33730
33745
|
const { children: a, ...s } = n;
|
|
33731
33746
|
if (x.isValidElement(a)) {
|
|
33732
33747
|
const o = MY(a), l = PY(s, a.props);
|
|
33733
|
-
return a.type !== x.Fragment && (l.ref = r ?
|
|
33748
|
+
return a.type !== x.Fragment && (l.ref = r ? Mn(r, o) : o), x.cloneElement(a, l);
|
|
33734
33749
|
}
|
|
33735
33750
|
return x.Children.count(a) > 1 ? x.Children.only(null) : null;
|
|
33736
33751
|
});
|
|
@@ -34066,11 +34081,11 @@ function Iw({
|
|
|
34066
34081
|
e,
|
|
34067
34082
|
a.size > 0 && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
34068
34083
|
/* @__PURE__ */ i.jsx(a2, { orientation: "vertical", className: "mx-2 h-4" }),
|
|
34069
|
-
/* @__PURE__ */ i.jsx(
|
|
34070
|
-
/* @__PURE__ */ i.jsx("div", { className: "hidden space-x-1 lg:flex", children: a.size > 2 ? /* @__PURE__ */ i.jsxs(
|
|
34084
|
+
/* @__PURE__ */ i.jsx(Vt, { variant: "secondary", className: "rounded-sm px-1 font-normal lg:hidden", children: a.size }),
|
|
34085
|
+
/* @__PURE__ */ i.jsx("div", { className: "hidden space-x-1 lg:flex", children: a.size > 2 ? /* @__PURE__ */ i.jsxs(Vt, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: [
|
|
34071
34086
|
a.size,
|
|
34072
34087
|
" selected"
|
|
34073
|
-
] }) : t.filter((o) => a.has(o.value)).map((o) => /* @__PURE__ */ i.jsx(
|
|
34088
|
+
] }) : t.filter((o) => a.has(o.value)).map((o) => /* @__PURE__ */ i.jsx(Vt, { variant: "secondary", className: "rounded-sm px-1 font-normal", children: o.label }, o.value)) })
|
|
34074
34089
|
] })
|
|
34075
34090
|
] }) }),
|
|
34076
34091
|
/* @__PURE__ */ i.jsx(t2, { className: "w-[220px] p-0", align: "start", children: /* @__PURE__ */ i.jsxs(BI, { children: [
|
|
@@ -34143,7 +34158,7 @@ function Dw({
|
|
|
34143
34158
|
onClick: () => t(""),
|
|
34144
34159
|
className: "absolute right-2.5 top-2 text-muted-foreground hover:text-foreground",
|
|
34145
34160
|
"aria-label": "Clear search",
|
|
34146
|
-
children: /* @__PURE__ */ i.jsx(
|
|
34161
|
+
children: /* @__PURE__ */ i.jsx(Yn, { className: "h-4 w-4" })
|
|
34147
34162
|
}
|
|
34148
34163
|
)
|
|
34149
34164
|
] }),
|
|
@@ -34573,7 +34588,7 @@ function cb(e, t, n, r) {
|
|
|
34573
34588
|
function uK(e) {
|
|
34574
34589
|
return Array.isArray(e) ? e : typeof e == "number" ? [cK, e] : e == null ? i2 : [e];
|
|
34575
34590
|
}
|
|
34576
|
-
function
|
|
34591
|
+
function Fn(e, t, n, r) {
|
|
34577
34592
|
let a, s, o;
|
|
34578
34593
|
typeof t == "function" && typeof n != "function" ? (s = void 0, o = t, a = n) : (s = t, o = n, a = r), cb(e, s, l, a);
|
|
34579
34594
|
function l(c, u) {
|
|
@@ -38150,7 +38165,7 @@ function o2(e, t) {
|
|
|
38150
38165
|
function Zo(e) {
|
|
38151
38166
|
return e.toLowerCase();
|
|
38152
38167
|
}
|
|
38153
|
-
class
|
|
38168
|
+
class Bn {
|
|
38154
38169
|
/**
|
|
38155
38170
|
* @param {string} property
|
|
38156
38171
|
* Property.
|
|
@@ -38163,20 +38178,20 @@ class Un {
|
|
|
38163
38178
|
this.attribute = n, this.property = t;
|
|
38164
38179
|
}
|
|
38165
38180
|
}
|
|
38166
|
-
|
|
38167
|
-
|
|
38168
|
-
|
|
38169
|
-
|
|
38170
|
-
|
|
38171
|
-
|
|
38172
|
-
|
|
38173
|
-
|
|
38174
|
-
|
|
38175
|
-
|
|
38176
|
-
|
|
38177
|
-
|
|
38181
|
+
Bn.prototype.attribute = "";
|
|
38182
|
+
Bn.prototype.booleanish = !1;
|
|
38183
|
+
Bn.prototype.boolean = !1;
|
|
38184
|
+
Bn.prototype.commaOrSpaceSeparated = !1;
|
|
38185
|
+
Bn.prototype.commaSeparated = !1;
|
|
38186
|
+
Bn.prototype.defined = !1;
|
|
38187
|
+
Bn.prototype.mustUseProperty = !1;
|
|
38188
|
+
Bn.prototype.number = !1;
|
|
38189
|
+
Bn.prototype.overloadedBoolean = !1;
|
|
38190
|
+
Bn.prototype.property = "";
|
|
38191
|
+
Bn.prototype.spaceSeparated = !1;
|
|
38192
|
+
Bn.prototype.space = void 0;
|
|
38178
38193
|
let yK = 0;
|
|
38179
|
-
const ot = Oi(), Kt = Oi(), ih = Oi(), De = Oi(), Rt = Oi(), cs = Oi(),
|
|
38194
|
+
const ot = Oi(), Kt = Oi(), ih = Oi(), De = Oi(), Rt = Oi(), cs = Oi(), Un = Oi();
|
|
38180
38195
|
function Oi() {
|
|
38181
38196
|
return 2 ** ++yK;
|
|
38182
38197
|
}
|
|
@@ -38184,7 +38199,7 @@ const sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
38184
38199
|
__proto__: null,
|
|
38185
38200
|
boolean: ot,
|
|
38186
38201
|
booleanish: Kt,
|
|
38187
|
-
commaOrSpaceSeparated:
|
|
38202
|
+
commaOrSpaceSeparated: Un,
|
|
38188
38203
|
commaSeparated: cs,
|
|
38189
38204
|
number: De,
|
|
38190
38205
|
overloadedBoolean: ih,
|
|
@@ -38193,7 +38208,7 @@ const sh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
38193
38208
|
/** @type {ReadonlyArray<keyof typeof types>} */
|
|
38194
38209
|
Object.keys(sh)
|
|
38195
38210
|
);
|
|
38196
|
-
class ub extends
|
|
38211
|
+
class ub extends Bn {
|
|
38197
38212
|
/**
|
|
38198
38213
|
* @constructor
|
|
38199
38214
|
* @param {string} property
|
|
@@ -38833,7 +38848,7 @@ const xK = Bs({
|
|
|
38833
38848
|
timelineBegin: "timelinebegin"
|
|
38834
38849
|
},
|
|
38835
38850
|
properties: {
|
|
38836
|
-
about:
|
|
38851
|
+
about: Un,
|
|
38837
38852
|
accentHeight: De,
|
|
38838
38853
|
accumulate: null,
|
|
38839
38854
|
additive: null,
|
|
@@ -38945,7 +38960,7 @@ const xK = Bs({
|
|
|
38945
38960
|
k2: De,
|
|
38946
38961
|
k3: De,
|
|
38947
38962
|
k4: De,
|
|
38948
|
-
kernelMatrix:
|
|
38963
|
+
kernelMatrix: Un,
|
|
38949
38964
|
kernelUnitLength: null,
|
|
38950
38965
|
keyPoints: null,
|
|
38951
38966
|
// SEMI_COLON_SEPARATED
|
|
@@ -39102,21 +39117,21 @@ const xK = Bs({
|
|
|
39102
39117
|
preserveAspectRatio: null,
|
|
39103
39118
|
primitiveUnits: null,
|
|
39104
39119
|
propagate: null,
|
|
39105
|
-
property:
|
|
39120
|
+
property: Un,
|
|
39106
39121
|
r: null,
|
|
39107
39122
|
radius: null,
|
|
39108
39123
|
referrerPolicy: null,
|
|
39109
39124
|
refX: null,
|
|
39110
39125
|
refY: null,
|
|
39111
|
-
rel:
|
|
39112
|
-
rev:
|
|
39126
|
+
rel: Un,
|
|
39127
|
+
rev: Un,
|
|
39113
39128
|
renderingIntent: null,
|
|
39114
39129
|
repeatCount: null,
|
|
39115
39130
|
repeatDur: null,
|
|
39116
|
-
requiredExtensions:
|
|
39117
|
-
requiredFeatures:
|
|
39118
|
-
requiredFonts:
|
|
39119
|
-
requiredFormats:
|
|
39131
|
+
requiredExtensions: Un,
|
|
39132
|
+
requiredFeatures: Un,
|
|
39133
|
+
requiredFonts: Un,
|
|
39134
|
+
requiredFormats: Un,
|
|
39120
39135
|
resource: null,
|
|
39121
39136
|
restart: null,
|
|
39122
39137
|
result: null,
|
|
@@ -39144,7 +39159,7 @@ const xK = Bs({
|
|
|
39144
39159
|
strikethroughThickness: De,
|
|
39145
39160
|
string: null,
|
|
39146
39161
|
stroke: null,
|
|
39147
|
-
strokeDashArray:
|
|
39162
|
+
strokeDashArray: Un,
|
|
39148
39163
|
strokeDashOffset: null,
|
|
39149
39164
|
strokeLineCap: null,
|
|
39150
39165
|
strokeLineJoin: null,
|
|
@@ -39158,7 +39173,7 @@ const xK = Bs({
|
|
|
39158
39173
|
syncMaster: null,
|
|
39159
39174
|
syncTolerance: null,
|
|
39160
39175
|
syncToleranceDefault: null,
|
|
39161
|
-
systemLanguage:
|
|
39176
|
+
systemLanguage: Un,
|
|
39162
39177
|
tabIndex: De,
|
|
39163
39178
|
tableValues: null,
|
|
39164
39179
|
target: null,
|
|
@@ -39172,7 +39187,7 @@ const xK = Bs({
|
|
|
39172
39187
|
title: null,
|
|
39173
39188
|
transformBehavior: null,
|
|
39174
39189
|
type: null,
|
|
39175
|
-
typeOf:
|
|
39190
|
+
typeOf: Un,
|
|
39176
39191
|
to: null,
|
|
39177
39192
|
transform: null,
|
|
39178
39193
|
transformOrigin: null,
|
|
@@ -39261,7 +39276,7 @@ const xK = Bs({
|
|
|
39261
39276
|
}, SK = /[A-Z]/g, jw = /-[a-z]/g, wK = /^data[-\w.:]+$/i;
|
|
39262
39277
|
function Us(e, t) {
|
|
39263
39278
|
const n = Zo(t);
|
|
39264
|
-
let r = t, a =
|
|
39279
|
+
let r = t, a = Bn;
|
|
39265
39280
|
if (n in e.normal)
|
|
39266
39281
|
return e.property[e.normal[n]];
|
|
39267
39282
|
if (n.length > 4 && n.slice(0, 4) === "data" && wK.test(t)) {
|
|
@@ -56736,7 +56751,7 @@ var XK = function(e) {
|
|
|
56736
56751
|
return t === void 0 && (t = {}), (function(r, a) {
|
|
56737
56752
|
if (a && !r.registered(a)) throw new Error('The default language "' + a + '" is not registered with refractor.');
|
|
56738
56753
|
})(e, t.defaultLanguage), function(r) {
|
|
56739
|
-
|
|
56754
|
+
Fn(r, "element", n);
|
|
56740
56755
|
};
|
|
56741
56756
|
function n(r, a, s) {
|
|
56742
56757
|
var o, l;
|
|
@@ -57650,11 +57665,11 @@ function uX(e) {
|
|
|
57650
57665
|
Ge && Ge.length > 0 && (bt += ". It is defined in: ".concat(Ge.join(", "))), Ke(bt + ".");
|
|
57651
57666
|
}
|
|
57652
57667
|
if (Le = R && (ye || !ye && B && Object.prototype.hasOwnProperty.call(I, Oe)), Le) {
|
|
57653
|
-
var At = (X = I[Oe]) !== null && X !== void 0 ? X : oe && Gw,
|
|
57668
|
+
var At = (X = I[Oe]) !== null && X !== void 0 ? X : oe && Gw, Gt = {
|
|
57654
57669
|
type: "PseudoElement",
|
|
57655
57670
|
name: Oe
|
|
57656
57671
|
}, Zt = de(Oe, "pseudo-element", At);
|
|
57657
|
-
Zt && (ve(Zt.type !== "Formula" && Zt.type !== "FormulaOfSelector", "Pseudo-elements cannot have formula argument."),
|
|
57672
|
+
Zt && (ve(Zt.type !== "Formula" && Zt.type !== "FormulaOfSelector", "Pseudo-elements cannot have formula argument."), Gt.argument = Zt), se.items.push(Gt);
|
|
57658
57673
|
} else {
|
|
57659
57674
|
ve(q, "Pseudo-classes are not enabled.");
|
|
57660
57675
|
var At = (me = V[Oe]) !== null && me !== void 0 ? me : $ && Gw;
|
|
@@ -57702,7 +57717,7 @@ function gX(e, t) {
|
|
|
57702
57717
|
const u = t.properties.xmlLang || t.properties.lang, p = t.properties.type || "text", d = Xw(t);
|
|
57703
57718
|
u != null && (e.language = String(u)), n && n.space === "html" ? (t.properties.contentEditable === "true" && (e.editableOrEditingHost = !0), t.tagName === "svg" && (e.schema = Tr), d === "rtl" ? o = d : /* Explicit `[dir=ltr]`. */ d === "ltr" || // HTML with an invalid or no `[dir]`.
|
|
57704
57719
|
d !== "auto" && t.tagName === "html" || // `input[type=tel]` with an invalid or no `[dir]`.
|
|
57705
|
-
d !== "auto" && t.tagName === "input" && p === "tel" ? o = "ltr" : (d === "auto" || t.tagName === "bdi") && (t.tagName === "textarea" ? o = Pf(ts(t)) : t.tagName === "input" && (p === "email" || p === "search" || p === "tel" || p === "text") ? o = t.properties.value ? Pf(String(t.properties.value)) : "ltr" :
|
|
57720
|
+
d !== "auto" && t.tagName === "input" && p === "tel" ? o = "ltr" : (d === "auto" || t.tagName === "bdi") && (t.tagName === "textarea" ? o = Pf(ts(t)) : t.tagName === "input" && (p === "email" || p === "search" || p === "tel" || p === "text") ? o = t.properties.value ? Pf(String(t.properties.value)) : "ltr" : Fn(t, c)), o && (e.direction = o)) : e.editableOrEditingHost && (e.editableOrEditingHost = !1);
|
|
57706
57721
|
}
|
|
57707
57722
|
return l;
|
|
57708
57723
|
function l() {
|
|
@@ -58240,12 +58255,12 @@ const L2 = (e = [], t = "") => (e.forEach((n) => {
|
|
|
58240
58255
|
if (!(!n || typeof n != "function")) {
|
|
58241
58256
|
if (t && typeof t == "string") {
|
|
58242
58257
|
const a = uZ(t, r);
|
|
58243
|
-
a && a.length > 0 &&
|
|
58258
|
+
a && a.length > 0 && Fn(r, a, (s, o, l) => {
|
|
58244
58259
|
n(s, o, l);
|
|
58245
58260
|
});
|
|
58246
58261
|
return;
|
|
58247
58262
|
}
|
|
58248
|
-
|
|
58263
|
+
Fn(r, (a, s, o) => {
|
|
58249
58264
|
n(a, s, o);
|
|
58250
58265
|
});
|
|
58251
58266
|
}
|
|
@@ -58845,7 +58860,7 @@ const z2 = [
|
|
|
58845
58860
|
1048575,
|
|
58846
58861
|
1114110,
|
|
58847
58862
|
1114111
|
|
58848
|
-
]),
|
|
58863
|
+
]), Ft = "�";
|
|
58849
58864
|
var M;
|
|
58850
58865
|
(function(e) {
|
|
58851
58866
|
e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z";
|
|
@@ -60077,7 +60092,7 @@ class tQ {
|
|
|
60077
60092
|
break;
|
|
60078
60093
|
}
|
|
60079
60094
|
case M.NULL: {
|
|
60080
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60095
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60081
60096
|
break;
|
|
60082
60097
|
}
|
|
60083
60098
|
case M.EOF: {
|
|
@@ -60097,7 +60112,7 @@ class tQ {
|
|
|
60097
60112
|
break;
|
|
60098
60113
|
}
|
|
60099
60114
|
case M.NULL: {
|
|
60100
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60115
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60101
60116
|
break;
|
|
60102
60117
|
}
|
|
60103
60118
|
case M.EOF: {
|
|
@@ -60117,7 +60132,7 @@ class tQ {
|
|
|
60117
60132
|
break;
|
|
60118
60133
|
}
|
|
60119
60134
|
case M.NULL: {
|
|
60120
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60135
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60121
60136
|
break;
|
|
60122
60137
|
}
|
|
60123
60138
|
case M.EOF: {
|
|
@@ -60133,7 +60148,7 @@ class tQ {
|
|
|
60133
60148
|
_statePlaintext(t) {
|
|
60134
60149
|
switch (t) {
|
|
60135
60150
|
case M.NULL: {
|
|
60136
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60151
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60137
60152
|
break;
|
|
60138
60153
|
}
|
|
60139
60154
|
case M.EOF: {
|
|
@@ -60211,7 +60226,7 @@ class tQ {
|
|
|
60211
60226
|
break;
|
|
60212
60227
|
}
|
|
60213
60228
|
case M.NULL: {
|
|
60214
|
-
this._err(Ee.unexpectedNullCharacter), n.tagName +=
|
|
60229
|
+
this._err(Ee.unexpectedNullCharacter), n.tagName += Ft;
|
|
60215
60230
|
break;
|
|
60216
60231
|
}
|
|
60217
60232
|
case M.EOF: {
|
|
@@ -60320,7 +60335,7 @@ class tQ {
|
|
|
60320
60335
|
break;
|
|
60321
60336
|
}
|
|
60322
60337
|
case M.NULL: {
|
|
60323
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60338
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60324
60339
|
break;
|
|
60325
60340
|
}
|
|
60326
60341
|
case M.EOF: {
|
|
@@ -60344,7 +60359,7 @@ class tQ {
|
|
|
60344
60359
|
break;
|
|
60345
60360
|
}
|
|
60346
60361
|
case M.NULL: {
|
|
60347
|
-
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_ESCAPED, this._emitChars(
|
|
60362
|
+
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_ESCAPED, this._emitChars(Ft);
|
|
60348
60363
|
break;
|
|
60349
60364
|
}
|
|
60350
60365
|
case M.EOF: {
|
|
@@ -60372,7 +60387,7 @@ class tQ {
|
|
|
60372
60387
|
break;
|
|
60373
60388
|
}
|
|
60374
60389
|
case M.NULL: {
|
|
60375
|
-
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_ESCAPED, this._emitChars(
|
|
60390
|
+
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_ESCAPED, this._emitChars(Ft);
|
|
60376
60391
|
break;
|
|
60377
60392
|
}
|
|
60378
60393
|
case M.EOF: {
|
|
@@ -60421,7 +60436,7 @@ class tQ {
|
|
|
60421
60436
|
break;
|
|
60422
60437
|
}
|
|
60423
60438
|
case M.NULL: {
|
|
60424
|
-
this._err(Ee.unexpectedNullCharacter), this._emitChars(
|
|
60439
|
+
this._err(Ee.unexpectedNullCharacter), this._emitChars(Ft);
|
|
60425
60440
|
break;
|
|
60426
60441
|
}
|
|
60427
60442
|
case M.EOF: {
|
|
@@ -60445,7 +60460,7 @@ class tQ {
|
|
|
60445
60460
|
break;
|
|
60446
60461
|
}
|
|
60447
60462
|
case M.NULL: {
|
|
60448
|
-
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
|
60463
|
+
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Ft);
|
|
60449
60464
|
break;
|
|
60450
60465
|
}
|
|
60451
60466
|
case M.EOF: {
|
|
@@ -60473,7 +60488,7 @@ class tQ {
|
|
|
60473
60488
|
break;
|
|
60474
60489
|
}
|
|
60475
60490
|
case M.NULL: {
|
|
60476
|
-
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(
|
|
60491
|
+
this._err(Ee.unexpectedNullCharacter), this.state = H.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(Ft);
|
|
60477
60492
|
break;
|
|
60478
60493
|
}
|
|
60479
60494
|
case M.EOF: {
|
|
@@ -60547,7 +60562,7 @@ class tQ {
|
|
|
60547
60562
|
break;
|
|
60548
60563
|
}
|
|
60549
60564
|
case M.NULL: {
|
|
60550
|
-
this._err(Ee.unexpectedNullCharacter), this.currentAttr.name +=
|
|
60565
|
+
this._err(Ee.unexpectedNullCharacter), this.currentAttr.name += Ft;
|
|
60551
60566
|
break;
|
|
60552
60567
|
}
|
|
60553
60568
|
default:
|
|
@@ -60621,7 +60636,7 @@ class tQ {
|
|
|
60621
60636
|
break;
|
|
60622
60637
|
}
|
|
60623
60638
|
case M.NULL: {
|
|
60624
|
-
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value +=
|
|
60639
|
+
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value += Ft;
|
|
60625
60640
|
break;
|
|
60626
60641
|
}
|
|
60627
60642
|
case M.EOF: {
|
|
@@ -60645,7 +60660,7 @@ class tQ {
|
|
|
60645
60660
|
break;
|
|
60646
60661
|
}
|
|
60647
60662
|
case M.NULL: {
|
|
60648
|
-
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value +=
|
|
60663
|
+
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value += Ft;
|
|
60649
60664
|
break;
|
|
60650
60665
|
}
|
|
60651
60666
|
case M.EOF: {
|
|
@@ -60676,7 +60691,7 @@ class tQ {
|
|
|
60676
60691
|
break;
|
|
60677
60692
|
}
|
|
60678
60693
|
case M.NULL: {
|
|
60679
|
-
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value +=
|
|
60694
|
+
this._err(Ee.unexpectedNullCharacter), this.currentAttr.value += Ft;
|
|
60680
60695
|
break;
|
|
60681
60696
|
}
|
|
60682
60697
|
case M.QUOTATION_MARK:
|
|
@@ -60753,7 +60768,7 @@ class tQ {
|
|
|
60753
60768
|
break;
|
|
60754
60769
|
}
|
|
60755
60770
|
case M.NULL: {
|
|
60756
|
-
this._err(Ee.unexpectedNullCharacter), n.data +=
|
|
60771
|
+
this._err(Ee.unexpectedNullCharacter), n.data += Ft;
|
|
60757
60772
|
break;
|
|
60758
60773
|
}
|
|
60759
60774
|
default:
|
|
@@ -60818,7 +60833,7 @@ class tQ {
|
|
|
60818
60833
|
break;
|
|
60819
60834
|
}
|
|
60820
60835
|
case M.NULL: {
|
|
60821
|
-
this._err(Ee.unexpectedNullCharacter), n.data +=
|
|
60836
|
+
this._err(Ee.unexpectedNullCharacter), n.data += Ft;
|
|
60822
60837
|
break;
|
|
60823
60838
|
}
|
|
60824
60839
|
case M.EOF: {
|
|
@@ -60962,7 +60977,7 @@ class tQ {
|
|
|
60962
60977
|
case M.FORM_FEED:
|
|
60963
60978
|
break;
|
|
60964
60979
|
case M.NULL: {
|
|
60965
|
-
this._err(Ee.unexpectedNullCharacter), this._createDoctypeToken(
|
|
60980
|
+
this._err(Ee.unexpectedNullCharacter), this._createDoctypeToken(Ft), this.state = H.DOCTYPE_NAME;
|
|
60966
60981
|
break;
|
|
60967
60982
|
}
|
|
60968
60983
|
case M.GREATER_THAN_SIGN: {
|
|
@@ -60998,7 +61013,7 @@ class tQ {
|
|
|
60998
61013
|
break;
|
|
60999
61014
|
}
|
|
61000
61015
|
case M.NULL: {
|
|
61001
|
-
this._err(Ee.unexpectedNullCharacter), n.name +=
|
|
61016
|
+
this._err(Ee.unexpectedNullCharacter), n.name += Ft;
|
|
61002
61017
|
break;
|
|
61003
61018
|
}
|
|
61004
61019
|
case M.EOF: {
|
|
@@ -61103,7 +61118,7 @@ class tQ {
|
|
|
61103
61118
|
break;
|
|
61104
61119
|
}
|
|
61105
61120
|
case M.NULL: {
|
|
61106
|
-
this._err(Ee.unexpectedNullCharacter), n.publicId +=
|
|
61121
|
+
this._err(Ee.unexpectedNullCharacter), n.publicId += Ft;
|
|
61107
61122
|
break;
|
|
61108
61123
|
}
|
|
61109
61124
|
case M.GREATER_THAN_SIGN: {
|
|
@@ -61128,7 +61143,7 @@ class tQ {
|
|
|
61128
61143
|
break;
|
|
61129
61144
|
}
|
|
61130
61145
|
case M.NULL: {
|
|
61131
|
-
this._err(Ee.unexpectedNullCharacter), n.publicId +=
|
|
61146
|
+
this._err(Ee.unexpectedNullCharacter), n.publicId += Ft;
|
|
61132
61147
|
break;
|
|
61133
61148
|
}
|
|
61134
61149
|
case M.GREATER_THAN_SIGN: {
|
|
@@ -61277,7 +61292,7 @@ class tQ {
|
|
|
61277
61292
|
break;
|
|
61278
61293
|
}
|
|
61279
61294
|
case M.NULL: {
|
|
61280
|
-
this._err(Ee.unexpectedNullCharacter), n.systemId +=
|
|
61295
|
+
this._err(Ee.unexpectedNullCharacter), n.systemId += Ft;
|
|
61281
61296
|
break;
|
|
61282
61297
|
}
|
|
61283
61298
|
case M.GREATER_THAN_SIGN: {
|
|
@@ -61302,7 +61317,7 @@ class tQ {
|
|
|
61302
61317
|
break;
|
|
61303
61318
|
}
|
|
61304
61319
|
case M.NULL: {
|
|
61305
|
-
this._err(Ee.unexpectedNullCharacter), n.systemId +=
|
|
61320
|
+
this._err(Ee.unexpectedNullCharacter), n.systemId += Ft;
|
|
61306
61321
|
break;
|
|
61307
61322
|
}
|
|
61308
61323
|
case M.GREATER_THAN_SIGN: {
|
|
@@ -64404,7 +64419,7 @@ function iee(e, t) {
|
|
|
64404
64419
|
}
|
|
64405
64420
|
}
|
|
64406
64421
|
function see(e, t) {
|
|
64407
|
-
t.chars =
|
|
64422
|
+
t.chars = Ft, e._insertCharacters(t);
|
|
64408
64423
|
}
|
|
64409
64424
|
function oee(e, t) {
|
|
64410
64425
|
e._insertCharacters(t), e.framesetOk = !1;
|
|
@@ -64490,7 +64505,7 @@ function yD(e, t) {
|
|
|
64490
64505
|
// To do: support `space`?
|
|
64491
64506
|
file: a.options.file
|
|
64492
64507
|
});
|
|
64493
|
-
return a.stitches &&
|
|
64508
|
+
return a.stitches && Fn(o, "comment", function(l, c, u) {
|
|
64494
64509
|
const p = (
|
|
64495
64510
|
/** @type {Stitch} */
|
|
64496
64511
|
/** @type {unknown} */
|
|
@@ -65266,7 +65281,7 @@ function IT(e, t, n) {
|
|
|
65266
65281
|
function nte(e) {
|
|
65267
65282
|
return !!(e && typeof e == "object");
|
|
65268
65283
|
}
|
|
65269
|
-
function
|
|
65284
|
+
function Wn(e, t, n, r) {
|
|
65270
65285
|
const a = e.length;
|
|
65271
65286
|
let s = 0, o;
|
|
65272
65287
|
if (t < 0 ? t = -t > a ? 0 : a + t : t = t > a ? a : t, n = n > 0 ? n : 0, r.length < 1e4)
|
|
@@ -65276,7 +65291,7 @@ function qn(e, t, n, r) {
|
|
|
65276
65291
|
o = r.slice(s, s + 1e4), o.unshift(t, 0), e.splice(...o), s += 1e4, t += 1e4;
|
|
65277
65292
|
}
|
|
65278
65293
|
function rr(e, t) {
|
|
65279
|
-
return e.length > 0 ? (
|
|
65294
|
+
return e.length > 0 ? (Wn(e, e.length, 0, t), e) : t;
|
|
65280
65295
|
}
|
|
65281
65296
|
const DT = {}.hasOwnProperty;
|
|
65282
65297
|
function _D(e) {
|
|
@@ -65308,7 +65323,7 @@ function ate(e, t) {
|
|
|
65308
65323
|
const r = [];
|
|
65309
65324
|
for (; ++n < t.length; )
|
|
65310
65325
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
65311
|
-
|
|
65326
|
+
Wn(e, 0, 0, r);
|
|
65312
65327
|
}
|
|
65313
65328
|
function RD(e, t) {
|
|
65314
65329
|
const n = Number.parseInt(e, t);
|
|
@@ -65445,7 +65460,7 @@ function dte(e) {
|
|
|
65445
65460
|
t.events[_][1].end = {
|
|
65446
65461
|
...N
|
|
65447
65462
|
}, _++;
|
|
65448
|
-
return
|
|
65463
|
+
return Wn(t.events, C + 1, 0, t.events.slice(w)), t.events.length = _, u(T);
|
|
65449
65464
|
}
|
|
65450
65465
|
return l(T);
|
|
65451
65466
|
}
|
|
@@ -65515,7 +65530,7 @@ function dte(e) {
|
|
|
65515
65530
|
t.events[N][1].end = {
|
|
65516
65531
|
...k
|
|
65517
65532
|
}, N++;
|
|
65518
|
-
|
|
65533
|
+
Wn(t.events, D + 1, 0, t.events.slice(_)), t.events.length = N;
|
|
65519
65534
|
}
|
|
65520
65535
|
}
|
|
65521
65536
|
function y(T) {
|
|
@@ -65600,7 +65615,7 @@ function fte(e, t) {
|
|
|
65600
65615
|
...o.start
|
|
65601
65616
|
}, e[n][1].start = {
|
|
65602
65617
|
...l.end
|
|
65603
|
-
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = rr(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = rr(u, [["enter", a, t], ["enter", o, t], ["exit", o, t], ["enter", s, t]]), u = rr(u, bp(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = rr(u, [["exit", s, t], ["enter", l, t], ["exit", l, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (p = 2, u = rr(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : p = 0,
|
|
65618
|
+
}, u = [], e[r][1].end.offset - e[r][1].start.offset && (u = rr(u, [["enter", e[r][1], t], ["exit", e[r][1], t]])), u = rr(u, [["enter", a, t], ["enter", o, t], ["exit", o, t], ["enter", s, t]]), u = rr(u, bp(t.parser.constructs.insideSpan.null, e.slice(r + 1, n), t)), u = rr(u, [["exit", s, t], ["enter", l, t], ["exit", l, t], ["exit", a, t]]), e[n][1].end.offset - e[n][1].start.offset ? (p = 2, u = rr(u, [["enter", e[n][1], t], ["exit", e[n][1], t]])) : p = 0, Wn(e, r - 1, n - r + 3, u), n = r + u.length - p - 2;
|
|
65604
65619
|
break;
|
|
65605
65620
|
}
|
|
65606
65621
|
}
|
|
@@ -66114,7 +66129,7 @@ function OD(e) {
|
|
|
66114
66129
|
}, l = p.slice(a, n), l.unshift(r), p.splice(a, n - a + 1, l));
|
|
66115
66130
|
}
|
|
66116
66131
|
}
|
|
66117
|
-
return
|
|
66132
|
+
return Wn(e, 0, Number.POSITIVE_INFINITY, p.slice(0)), !u;
|
|
66118
66133
|
}
|
|
66119
66134
|
function Ote(e, t) {
|
|
66120
66135
|
const n = e.get(t)[1], r = e.get(t)[2];
|
|
@@ -66363,7 +66378,7 @@ function Wte(e, t) {
|
|
|
66363
66378
|
start: e[r][1].start,
|
|
66364
66379
|
end: e[n][1].end,
|
|
66365
66380
|
contentType: "text"
|
|
66366
|
-
},
|
|
66381
|
+
}, Wn(e, r, n - r + 1, [["enter", a, t], ["enter", s, t], ["exit", s, t], ["exit", a, t]])), e;
|
|
66367
66382
|
}
|
|
66368
66383
|
function qte(e, t, n) {
|
|
66369
66384
|
let r = 0;
|
|
@@ -66707,7 +66722,7 @@ function one(e) {
|
|
|
66707
66722
|
r.type = "data", t += a;
|
|
66708
66723
|
}
|
|
66709
66724
|
}
|
|
66710
|
-
return e.length !== n.length &&
|
|
66725
|
+
return e.length !== n.length && Wn(e, 0, e.length, n), e;
|
|
66711
66726
|
}
|
|
66712
66727
|
function lne(e, t) {
|
|
66713
66728
|
let n = e.length, r = 0, a, s, o, l;
|
|
@@ -66747,7 +66762,7 @@ function lne(e, t) {
|
|
|
66747
66762
|
...e[o - 2][1].start
|
|
66748
66763
|
}
|
|
66749
66764
|
};
|
|
66750
|
-
return l = [["enter", c, t], ["enter", u, t]], l = rr(l, e.slice(s + 1, s + r + 3)), l = rr(l, [["enter", p, t]]), l = rr(l, bp(t.parser.constructs.insideSpan.null, e.slice(s + r + 4, o - 3), t)), l = rr(l, [["exit", p, t], e[o - 2], e[o - 1], ["exit", u, t]]), l = rr(l, e.slice(o + 1)), l = rr(l, [["exit", c, t]]),
|
|
66765
|
+
return l = [["enter", c, t], ["enter", u, t]], l = rr(l, e.slice(s + 1, s + r + 3)), l = rr(l, [["enter", p, t]]), l = rr(l, bp(t.parser.constructs.insideSpan.null, e.slice(s + r + 4, o - 3), t)), l = rr(l, [["exit", p, t], e[o - 2], e[o - 1], ["exit", u, t]]), l = rr(l, e.slice(o + 1)), l = rr(l, [["exit", c, t]]), Wn(e, s, e.length, l), e;
|
|
66751
66766
|
}
|
|
66752
66767
|
function cne(e, t, n) {
|
|
66753
66768
|
const r = this;
|
|
@@ -67352,7 +67367,7 @@ function Gne(e, t, n) {
|
|
|
67352
67367
|
}
|
|
67353
67368
|
}
|
|
67354
67369
|
function D(F, U) {
|
|
67355
|
-
F.resolveAll && !s.includes(F) && s.push(F), F.resolve &&
|
|
67370
|
+
F.resolveAll && !s.includes(F) && s.push(F), F.resolve && Wn(u.events, U, u.events.length - U, F.resolve(u.events.slice(U), u)), F.resolveTo && (u.events = F.resolveTo(u.events, u));
|
|
67356
67371
|
}
|
|
67357
67372
|
function O() {
|
|
67358
67373
|
const F = h(), U = u.previous, Z = u.currentConstruct, G = u.events.length, P = Array.from(l);
|
|
@@ -68530,7 +68545,7 @@ function Ore(e, t) {
|
|
|
68530
68545
|
patch: Lre,
|
|
68531
68546
|
wrap: Mre
|
|
68532
68547
|
};
|
|
68533
|
-
return
|
|
68548
|
+
return Fn(e, function(p) {
|
|
68534
68549
|
if (p.type === "definition" || p.type === "footnoteDefinition") {
|
|
68535
68550
|
const d = p.type === "definition" ? r : a, f = String(p.identifier).toUpperCase();
|
|
68536
68551
|
d.has(f) || d.set(f, p);
|
|
@@ -69879,7 +69894,7 @@ function dae(e, t) {
|
|
|
69879
69894
|
const n = t.allowedElements, r = t.allowElement, a = t.components, s = t.disallowedElements, o = t.skipHtml, l = t.unwrapDisallowed, c = t.urlTransform || pae;
|
|
69880
69895
|
for (const p of oae)
|
|
69881
69896
|
Object.hasOwn(t, p.from) && ("" + p.from + (p.to ? "use `" + p.to + "` instead" : "remove it") + iae + p.id, void 0);
|
|
69882
|
-
return
|
|
69897
|
+
return Fn(e, u), Bee(e, {
|
|
69883
69898
|
Fragment: i.Fragment,
|
|
69884
69899
|
components: a,
|
|
69885
69900
|
ignoreInvalidStyle: !0,
|
|
@@ -70527,7 +70542,7 @@ function oie(e, t, n) {
|
|
|
70527
70542
|
}
|
|
70528
70543
|
function lie(e, t) {
|
|
70529
70544
|
let n = !1;
|
|
70530
|
-
return
|
|
70545
|
+
return Fn(e, function(r) {
|
|
70531
70546
|
if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
|
|
70532
70547
|
return n = !0, _u;
|
|
70533
70548
|
}), !!((!e.depth || e.depth < 3) && cv(e) && (t.options.setext || n));
|
|
@@ -71528,7 +71543,7 @@ function lse(e) {
|
|
|
71528
71543
|
start: Object.assign({}, o[u][1].end),
|
|
71529
71544
|
end: Object.assign({}, o[c][1].start)
|
|
71530
71545
|
}, f = [["enter", p, l], ["enter", o[u][1], l], ["exit", o[u][1], l], ["enter", d, l]], m = l.parser.constructs.insideSpan.null;
|
|
71531
|
-
m &&
|
|
71546
|
+
m && Wn(f, f.length, 0, bp(m, o.slice(u + 1, c), l)), Wn(f, f.length, 0, [["exit", d, l], ["enter", o[c][1], l], ["exit", o[c][1], l], ["exit", p, l]]), Wn(o, u - 1, c - u + 3, f), c = u + f.length - 2;
|
|
71532
71547
|
break;
|
|
71533
71548
|
}
|
|
71534
71549
|
}
|
|
@@ -71837,7 +71852,7 @@ function vse(e) {
|
|
|
71837
71852
|
a.push(xse(n)), s.push(Uie()), o.push($ie(n));
|
|
71838
71853
|
}
|
|
71839
71854
|
const Sse = /^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i, wse = /^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i, Tse = ({ legacyTitle: e = !1, tagName: t = "div" } = {}) => (n) => {
|
|
71840
|
-
|
|
71855
|
+
Fn(n, "blockquote", (r, a, s) => {
|
|
71841
71856
|
let o = "", l = "", c = !0, u = r.children.map((p) => {
|
|
71842
71857
|
if (c && p.type === "paragraph") {
|
|
71843
71858
|
const d = p.children[0], f = d.type === "text" ? d.value : "", m = e ? wse : Sse, h = f.match(m);
|
|
@@ -71988,7 +72003,7 @@ const Ise = /* @__PURE__ */ Se.forwardRef((e, t) => {
|
|
|
71988
72003
|
});
|
|
71989
72004
|
var Dse = function(t) {
|
|
71990
72005
|
return (n) => {
|
|
71991
|
-
|
|
72006
|
+
Fn(n, (r) => {
|
|
71992
72007
|
r.type === "element" && r.tagName === "code" && r.data && r.data.meta && (r.properties = ft({}, r.properties, {
|
|
71993
72008
|
"data-meta": String(r.data.meta)
|
|
71994
72009
|
}));
|
|
@@ -71996,7 +72011,7 @@ var Dse = function(t) {
|
|
|
71996
72011
|
};
|
|
71997
72012
|
}, Ose = function(t) {
|
|
71998
72013
|
return (n) => {
|
|
71999
|
-
|
|
72014
|
+
Fn(n, (r) => {
|
|
72000
72015
|
if (r.type === "element" && r.tagName === "code" && r.properties && r.properties.dataMeta) {
|
|
72001
72016
|
r.data || (r.data = {});
|
|
72002
72017
|
var a = r.properties.dataMeta;
|
|
@@ -72055,7 +72070,7 @@ const Fse = {}, iN = new Pse();
|
|
|
72055
72070
|
function Bse(e) {
|
|
72056
72071
|
const n = (e || Fse).prefix || "";
|
|
72057
72072
|
return function(r) {
|
|
72058
|
-
iN.reset(),
|
|
72073
|
+
iN.reset(), Fn(r, "element", function(a) {
|
|
72059
72074
|
mO(a) && !a.properties.id && (a.properties.id = n + iN.slug(ts(a)));
|
|
72060
72075
|
});
|
|
72061
72076
|
};
|
|
@@ -72134,7 +72149,7 @@ function Vse(e) {
|
|
|
72134
72149
|
const r = t.headingProperties, a = t.behavior || "prepend", s = t.content, o = t.group, l = hO(t.test);
|
|
72135
72150
|
let c;
|
|
72136
72151
|
return a === "after" || a === "before" ? c = p : a === "wrap" ? c = d : (c = u, n || (n = { ariaHidden: "true", tabIndex: -1 })), function(f) {
|
|
72137
|
-
|
|
72152
|
+
Fn(f, "element", function(m, h, g) {
|
|
72138
72153
|
if (mO(m) && m.properties.id && l(m, h, g))
|
|
72139
72154
|
return Object.assign(m.properties, Rc(r, m)), c(m, h, g);
|
|
72140
72155
|
});
|
|
@@ -72193,7 +72208,7 @@ function Rc(e, t) {
|
|
|
72193
72208
|
const Wse = (e = {}) => {
|
|
72194
72209
|
const { openDelimiter: t = "rehype:ignore:start", closeDelimiter: n = "rehype:ignore:end" } = e;
|
|
72195
72210
|
return (r) => {
|
|
72196
|
-
|
|
72211
|
+
Fn(r, (a, s, o) => {
|
|
72197
72212
|
if (a.type === "element" || a.type === "root") {
|
|
72198
72213
|
let l = !1;
|
|
72199
72214
|
a.children = a.children.filter((c) => {
|
|
@@ -75126,20 +75141,20 @@ function fce({ sopId: e, onBack: t }) {
|
|
|
75126
75141
|
] })
|
|
75127
75142
|
] }),
|
|
75128
75143
|
/* @__PURE__ */ i.jsxs("div", { className: "flex flex-wrap items-center gap-2 mt-3", children: [
|
|
75129
|
-
r.severity && /* @__PURE__ */ i.jsxs(
|
|
75144
|
+
r.severity && /* @__PURE__ */ i.jsxs(Vt, { variant: "outline", className: `text-xs capitalize ${dce[r.severity] ?? ""}`, children: [
|
|
75130
75145
|
"• ",
|
|
75131
75146
|
r.severity
|
|
75132
75147
|
] }),
|
|
75133
|
-
/* @__PURE__ */ i.jsxs(
|
|
75148
|
+
/* @__PURE__ */ i.jsxs(Vt, { variant: "outline", className: `text-xs capitalize ${pce[r.status] ?? ""}`, children: [
|
|
75134
75149
|
r.status === "generating" && /* @__PURE__ */ i.jsx(qe, { className: "h-3 w-3 animate-spin mr-1 inline-block" }),
|
|
75135
75150
|
r.status
|
|
75136
75151
|
] }),
|
|
75137
|
-
r.alertType && /* @__PURE__ */ i.jsxs(
|
|
75152
|
+
r.alertType && /* @__PURE__ */ i.jsxs(Vt, { variant: "secondary", className: "text-xs", children: [
|
|
75138
75153
|
/* @__PURE__ */ i.jsx(ad, { className: "h-3 w-3 mr-1" }),
|
|
75139
75154
|
" ",
|
|
75140
75155
|
r.alertType
|
|
75141
75156
|
] }),
|
|
75142
|
-
r.service && /* @__PURE__ */ i.jsxs(
|
|
75157
|
+
r.service && /* @__PURE__ */ i.jsxs(Vt, { variant: "secondary", className: "text-xs", children: [
|
|
75143
75158
|
/* @__PURE__ */ i.jsx(Gh, { className: "h-3 w-3 mr-1" }),
|
|
75144
75159
|
" ",
|
|
75145
75160
|
r.service
|
|
@@ -75625,7 +75640,7 @@ function pue(e, t, n = !0) {
|
|
|
75625
75640
|
r.current = !1;
|
|
75626
75641
|
} : e, t);
|
|
75627
75642
|
}
|
|
75628
|
-
var
|
|
75643
|
+
var Hn = pue;
|
|
75629
75644
|
function Mo() {
|
|
75630
75645
|
}
|
|
75631
75646
|
function rs(e, t, n, r) {
|
|
@@ -75645,27 +75660,27 @@ function hue({ original: e, modified: t, language: n, originalLanguage: r, modif
|
|
|
75645
75660
|
jO(() => {
|
|
75646
75661
|
let P = OO.init();
|
|
75647
75662
|
return P.then((q) => (_.current = q) && C(!1)).catch((q) => q?.type !== "cancelation" && console.error("Monaco initialization: error:", q)), () => N.current ? G() : P.cancel();
|
|
75648
|
-
}),
|
|
75663
|
+
}), Hn(() => {
|
|
75649
75664
|
if (N.current && _.current) {
|
|
75650
75665
|
let P = N.current.getOriginalEditor(), q = rs(_.current, e || "", r || n || "text", s || "");
|
|
75651
75666
|
q !== P.getModel() && P.setModel(q);
|
|
75652
75667
|
}
|
|
75653
|
-
}, [s], S),
|
|
75668
|
+
}, [s], S), Hn(() => {
|
|
75654
75669
|
if (N.current && _.current) {
|
|
75655
75670
|
let P = N.current.getModifiedEditor(), q = rs(_.current, t || "", a || n || "text", o || "");
|
|
75656
75671
|
q !== P.getModel() && P.setModel(q);
|
|
75657
75672
|
}
|
|
75658
|
-
}, [o], S),
|
|
75673
|
+
}, [o], S), Hn(() => {
|
|
75659
75674
|
let P = N.current.getModifiedEditor();
|
|
75660
75675
|
P.getOption(_.current.editor.EditorOption.readOnly) ? P.setValue(t || "") : t !== P.getValue() && (P.executeEdits("", [{ range: P.getModel().getFullModelRange(), text: t || "", forceMoveMarkers: !0 }]), P.pushUndoStop());
|
|
75661
|
-
}, [t], S),
|
|
75676
|
+
}, [t], S), Hn(() => {
|
|
75662
75677
|
N.current?.getModel()?.original.setValue(e || "");
|
|
75663
|
-
}, [e], S),
|
|
75678
|
+
}, [e], S), Hn(() => {
|
|
75664
75679
|
let { original: P, modified: q } = N.current.getModel();
|
|
75665
75680
|
_.current.editor.setModelLanguage(P, r || n || "text"), _.current.editor.setModelLanguage(q, a || n || "text");
|
|
75666
|
-
}, [n, r, a], S),
|
|
75681
|
+
}, [n, r, a], S), Hn(() => {
|
|
75667
75682
|
_.current?.editor.setTheme(u);
|
|
75668
|
-
}, [u], S),
|
|
75683
|
+
}, [u], S), Hn(() => {
|
|
75669
75684
|
N.current?.updateOptions(d);
|
|
75670
75685
|
}, [d], S);
|
|
75671
75686
|
let U = En(() => {
|
|
@@ -75701,19 +75716,19 @@ function xue({ defaultValue: e, defaultLanguage: t, defaultPath: n, value: r, la
|
|
|
75701
75716
|
jO(() => {
|
|
75702
75717
|
let B = OO.init();
|
|
75703
75718
|
return B.then((W) => (O.current = W) && D(!1)).catch((W) => W?.type !== "cancelation" && console.error("Monaco initialization: error:", W)), () => k.current ? R() : B.cancel();
|
|
75704
|
-
}),
|
|
75719
|
+
}), Hn(() => {
|
|
75705
75720
|
let B = rs(O.current, e || r || "", t || a || "", s || n || "");
|
|
75706
75721
|
B !== k.current?.getModel() && (d && Oc.set(q, k.current?.saveViewState()), k.current?.setModel(B), d && k.current?.restoreViewState(Oc.get(s)));
|
|
75707
|
-
}, [s], C),
|
|
75722
|
+
}, [s], C), Hn(() => {
|
|
75708
75723
|
k.current?.updateOptions(u);
|
|
75709
|
-
}, [u], C),
|
|
75724
|
+
}, [u], C), Hn(() => {
|
|
75710
75725
|
!k.current || r === void 0 || (k.current.getOption(O.current.editor.EditorOption.readOnly) ? k.current.setValue(r) : r !== k.current.getValue() && ($.current = !0, k.current.executeEdits("", [{ range: k.current.getModel().getFullModelRange(), text: r, forceMoveMarkers: !0 }]), k.current.pushUndoStop(), $.current = !1));
|
|
75711
|
-
}, [r], C),
|
|
75726
|
+
}, [r], C), Hn(() => {
|
|
75712
75727
|
let B = k.current?.getModel();
|
|
75713
75728
|
B && a && O.current?.editor.setModelLanguage(B, a);
|
|
75714
|
-
}, [a], C),
|
|
75729
|
+
}, [a], C), Hn(() => {
|
|
75715
75730
|
l !== void 0 && k.current?.revealLine(l);
|
|
75716
|
-
}, [l], C),
|
|
75731
|
+
}, [l], C), Hn(() => {
|
|
75717
75732
|
O.current?.editor.setTheme(o);
|
|
75718
75733
|
}, [o], C);
|
|
75719
75734
|
let Y = En(() => {
|
|
@@ -75773,7 +75788,7 @@ function Sue({
|
|
|
75773
75788
|
t.length > 0 && /* @__PURE__ */ i.jsx("div", { className: "flex flex-wrap gap-2", children: t.map((h) => {
|
|
75774
75789
|
const g = e.find((b) => b.value === h);
|
|
75775
75790
|
return g ? /* @__PURE__ */ i.jsxs(
|
|
75776
|
-
|
|
75791
|
+
Vt,
|
|
75777
75792
|
{
|
|
75778
75793
|
variant: "secondary",
|
|
75779
75794
|
className: "flex items-center gap-1",
|
|
@@ -75788,7 +75803,7 @@ function Sue({
|
|
|
75788
75803
|
},
|
|
75789
75804
|
className: "cursor-pointer",
|
|
75790
75805
|
disabled: o,
|
|
75791
|
-
children: /* @__PURE__ */ i.jsx(
|
|
75806
|
+
children: /* @__PURE__ */ i.jsx(Yn, { className: "h-3 w-3" })
|
|
75792
75807
|
}
|
|
75793
75808
|
)
|
|
75794
75809
|
]
|
|
@@ -75831,7 +75846,7 @@ function Sue({
|
|
|
75831
75846
|
type: "button",
|
|
75832
75847
|
onClick: () => p(""),
|
|
75833
75848
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",
|
|
75834
|
-
children: /* @__PURE__ */ i.jsx(
|
|
75849
|
+
children: /* @__PURE__ */ i.jsx(Yn, { className: "h-4 w-4" })
|
|
75835
75850
|
}
|
|
75836
75851
|
)
|
|
75837
75852
|
] }),
|
|
@@ -75868,7 +75883,7 @@ function Sue({
|
|
|
75868
75883
|
] })
|
|
75869
75884
|
] });
|
|
75870
75885
|
}
|
|
75871
|
-
var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnPropertyDescriptor, Nue = Object.getOwnPropertyNames, Cue = Object.getPrototypeOf, Aue = Object.prototype.hasOwnProperty,
|
|
75886
|
+
var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnPropertyDescriptor, Nue = Object.getOwnPropertyNames, Cue = Object.getPrototypeOf, Aue = Object.prototype.hasOwnProperty, Mt = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), _ue = (e, t, n, r) => {
|
|
75872
75887
|
if (t && typeof t == "object" || typeof t == "function") for (var a = Nue(t), s = 0, o = a.length, l; s < o; s++)
|
|
75873
75888
|
l = a[s], !Aue.call(e, l) && l !== n && MO(e, l, {
|
|
75874
75889
|
get: ((c) => t[c]).bind(null, l),
|
|
@@ -75878,7 +75893,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
75878
75893
|
}, Rue = (e, t, n) => (n = e != null ? wue(Cue(e)) : {}, _ue(MO(n, "default", {
|
|
75879
75894
|
value: e,
|
|
75880
75895
|
enumerable: !0
|
|
75881
|
-
}), e)), Bl = /* @__PURE__ */
|
|
75896
|
+
}), e)), Bl = /* @__PURE__ */ Mt(((e, t) => {
|
|
75882
75897
|
function n(c) {
|
|
75883
75898
|
return typeof c > "u" || c === null;
|
|
75884
75899
|
}
|
|
@@ -75907,7 +75922,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
75907
75922
|
return c === 0 && Number.NEGATIVE_INFINITY === 1 / c;
|
|
75908
75923
|
}
|
|
75909
75924
|
t.exports.isNothing = n, t.exports.isObject = r, t.exports.toArray = a, t.exports.repeat = o, t.exports.isNegativeZero = l, t.exports.extend = s;
|
|
75910
|
-
})), Ul = /* @__PURE__ */
|
|
75925
|
+
})), Ul = /* @__PURE__ */ Mt(((e, t) => {
|
|
75911
75926
|
function n(a, s) {
|
|
75912
75927
|
let o = "";
|
|
75913
75928
|
const l = a.reason || "(unknown reason)";
|
|
@@ -75921,7 +75936,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
75921
75936
|
r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r.prototype.toString = function(s) {
|
|
75922
75937
|
return this.name + ": " + n(this, s);
|
|
75923
75938
|
}, t.exports = r;
|
|
75924
|
-
})), kue = /* @__PURE__ */
|
|
75939
|
+
})), kue = /* @__PURE__ */ Mt(((e, t) => {
|
|
75925
75940
|
var n = Bl();
|
|
75926
75941
|
function r(o, l, c, u, p) {
|
|
75927
75942
|
let d = "", f = "";
|
|
@@ -75961,7 +75976,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
75961
75976
|
return m.replace(/\n$/, "");
|
|
75962
75977
|
}
|
|
75963
75978
|
t.exports = s;
|
|
75964
|
-
})), An = /* @__PURE__ */
|
|
75979
|
+
})), An = /* @__PURE__ */ Mt(((e, t) => {
|
|
75965
75980
|
var n = Ul(), r = [
|
|
75966
75981
|
"kind",
|
|
75967
75982
|
"multi",
|
|
@@ -75996,7 +76011,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
75996
76011
|
}, this.instanceOf = c.instanceOf || null, this.predicate = c.predicate || null, this.represent = c.represent || null, this.representName = c.representName || null, this.defaultStyle = c.defaultStyle || null, this.multi = c.multi || !1, this.styleAliases = s(c.styleAliases || null), a.indexOf(this.kind) === -1) throw new n('Unknown kind "' + this.kind + '" is specified for "' + l + '" YAML type.');
|
|
75997
76012
|
}
|
|
75998
76013
|
t.exports = o;
|
|
75999
|
-
})), FO = /* @__PURE__ */
|
|
76014
|
+
})), FO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76000
76015
|
var n = Ul(), r = An();
|
|
76001
76016
|
function a(l, c) {
|
|
76002
76017
|
const u = [];
|
|
@@ -76046,34 +76061,34 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76046
76061
|
const d = Object.create(o.prototype);
|
|
76047
76062
|
return d.implicit = (this.implicit || []).concat(u), d.explicit = (this.explicit || []).concat(p), d.compiledImplicit = a(d, "implicit"), d.compiledExplicit = a(d, "explicit"), d.compiledTypeMap = s(d.compiledImplicit, d.compiledExplicit), d;
|
|
76048
76063
|
}, t.exports = o;
|
|
76049
|
-
})), BO = /* @__PURE__ */
|
|
76064
|
+
})), BO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76050
76065
|
t.exports = new (An())("tag:yaml.org,2002:str", {
|
|
76051
76066
|
kind: "scalar",
|
|
76052
76067
|
construct: function(n) {
|
|
76053
76068
|
return n !== null ? n : "";
|
|
76054
76069
|
}
|
|
76055
76070
|
});
|
|
76056
|
-
})), UO = /* @__PURE__ */
|
|
76071
|
+
})), UO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76057
76072
|
t.exports = new (An())("tag:yaml.org,2002:seq", {
|
|
76058
76073
|
kind: "sequence",
|
|
76059
76074
|
construct: function(n) {
|
|
76060
76075
|
return n !== null ? n : [];
|
|
76061
76076
|
}
|
|
76062
76077
|
});
|
|
76063
|
-
})), $O = /* @__PURE__ */
|
|
76078
|
+
})), $O = /* @__PURE__ */ Mt(((e, t) => {
|
|
76064
76079
|
t.exports = new (An())("tag:yaml.org,2002:map", {
|
|
76065
76080
|
kind: "mapping",
|
|
76066
76081
|
construct: function(n) {
|
|
76067
76082
|
return n !== null ? n : {};
|
|
76068
76083
|
}
|
|
76069
76084
|
});
|
|
76070
|
-
})), HO = /* @__PURE__ */
|
|
76085
|
+
})), HO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76071
76086
|
t.exports = new (FO())({ explicit: [
|
|
76072
76087
|
BO(),
|
|
76073
76088
|
UO(),
|
|
76074
76089
|
$O()
|
|
76075
76090
|
] });
|
|
76076
|
-
})), zO = /* @__PURE__ */
|
|
76091
|
+
})), zO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76077
76092
|
var n = An();
|
|
76078
76093
|
function r(o) {
|
|
76079
76094
|
if (o === null) return !0;
|
|
@@ -76110,7 +76125,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76110
76125
|
},
|
|
76111
76126
|
defaultStyle: "lowercase"
|
|
76112
76127
|
});
|
|
76113
|
-
})), GO = /* @__PURE__ */
|
|
76128
|
+
})), GO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76114
76129
|
var n = An();
|
|
76115
76130
|
function r(o) {
|
|
76116
76131
|
if (o === null) return !1;
|
|
@@ -76141,7 +76156,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76141
76156
|
},
|
|
76142
76157
|
defaultStyle: "lowercase"
|
|
76143
76158
|
});
|
|
76144
|
-
})), VO = /* @__PURE__ */
|
|
76159
|
+
})), VO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76145
76160
|
var n = Bl(), r = An();
|
|
76146
76161
|
function a(d) {
|
|
76147
76162
|
return d >= 48 && d <= 57 || d >= 65 && d <= 70 || d >= 97 && d <= 102;
|
|
@@ -76231,7 +76246,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76231
76246
|
hexadecimal: [16, "hex"]
|
|
76232
76247
|
}
|
|
76233
76248
|
});
|
|
76234
|
-
})), WO = /* @__PURE__ */
|
|
76249
|
+
})), WO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76235
76250
|
var n = Bl(), r = An(), a = /* @__PURE__ */ new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"), s = /* @__PURE__ */ new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
76236
76251
|
function o(d) {
|
|
76237
76252
|
return d === null || !a.test(d) ? !1 : Number.isFinite(parseFloat(d, 10)) ? !0 : s.test(d);
|
|
@@ -76282,16 +76297,16 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76282
76297
|
represent: u,
|
|
76283
76298
|
defaultStyle: "lowercase"
|
|
76284
76299
|
});
|
|
76285
|
-
})), qO = /* @__PURE__ */
|
|
76300
|
+
})), qO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76286
76301
|
t.exports = HO().extend({ implicit: [
|
|
76287
76302
|
zO(),
|
|
76288
76303
|
GO(),
|
|
76289
76304
|
VO(),
|
|
76290
76305
|
WO()
|
|
76291
76306
|
] });
|
|
76292
|
-
})), YO = /* @__PURE__ */
|
|
76307
|
+
})), YO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76293
76308
|
t.exports = qO();
|
|
76294
|
-
})), KO = /* @__PURE__ */
|
|
76309
|
+
})), KO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76295
76310
|
var n = An(), r = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"), a = /* @__PURE__ */ new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
76296
76311
|
function s(c) {
|
|
76297
76312
|
return c === null ? !1 : r.exec(c) !== null || a.exec(c) !== null;
|
|
@@ -76323,7 +76338,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76323
76338
|
instanceOf: Date,
|
|
76324
76339
|
represent: l
|
|
76325
76340
|
});
|
|
76326
|
-
})), XO = /* @__PURE__ */
|
|
76341
|
+
})), XO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76327
76342
|
var n = An();
|
|
76328
76343
|
function r(a) {
|
|
76329
76344
|
return a === "<<" || a === null;
|
|
@@ -76332,7 +76347,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76332
76347
|
kind: "scalar",
|
|
76333
76348
|
resolve: r
|
|
76334
76349
|
});
|
|
76335
|
-
})), ZO = /* @__PURE__ */
|
|
76350
|
+
})), ZO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76336
76351
|
var n = An(), r = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
76337
76352
|
\r`;
|
|
76338
76353
|
function a(c) {
|
|
@@ -76375,7 +76390,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76375
76390
|
predicate: l,
|
|
76376
76391
|
represent: o
|
|
76377
76392
|
});
|
|
76378
|
-
})), QO = /* @__PURE__ */
|
|
76393
|
+
})), QO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76379
76394
|
var n = An(), r = Object.prototype.hasOwnProperty, a = Object.prototype.toString;
|
|
76380
76395
|
function s(l) {
|
|
76381
76396
|
if (l === null) return !0;
|
|
@@ -76401,7 +76416,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76401
76416
|
resolve: s,
|
|
76402
76417
|
construct: o
|
|
76403
76418
|
});
|
|
76404
|
-
})), JO = /* @__PURE__ */
|
|
76419
|
+
})), JO = /* @__PURE__ */ Mt(((e, t) => {
|
|
76405
76420
|
var n = An(), r = Object.prototype.toString;
|
|
76406
76421
|
function a(o) {
|
|
76407
76422
|
if (o === null) return !0;
|
|
@@ -76429,7 +76444,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76429
76444
|
resolve: a,
|
|
76430
76445
|
construct: s
|
|
76431
76446
|
});
|
|
76432
|
-
})), eL = /* @__PURE__ */
|
|
76447
|
+
})), eL = /* @__PURE__ */ Mt(((e, t) => {
|
|
76433
76448
|
var n = An(), r = Object.prototype.hasOwnProperty;
|
|
76434
76449
|
function a(o) {
|
|
76435
76450
|
if (o === null) return !0;
|
|
@@ -76446,7 +76461,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76446
76461
|
resolve: a,
|
|
76447
76462
|
construct: s
|
|
76448
76463
|
});
|
|
76449
|
-
})), Sv = /* @__PURE__ */
|
|
76464
|
+
})), Sv = /* @__PURE__ */ Mt(((e, t) => {
|
|
76450
76465
|
t.exports = YO().extend({
|
|
76451
76466
|
implicit: [KO(), XO()],
|
|
76452
76467
|
explicit: [
|
|
@@ -76456,7 +76471,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76456
76471
|
eL()
|
|
76457
76472
|
]
|
|
76458
76473
|
});
|
|
76459
|
-
})), Iue = /* @__PURE__ */
|
|
76474
|
+
})), Iue = /* @__PURE__ */ Mt(((e, t) => {
|
|
76460
76475
|
var n = Bl(), r = Ul(), a = kue(), s = Sv(), o = Object.prototype.hasOwnProperty, l = 1, c = 2, u = 3, p = 4, d = 1, f = 2, m = 3, h = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, g = /[\x85\u2028\u2029]/, b = /[,\[\]{}]/, y = /^(?:!|!!|![0-9A-Za-z-]+!)$/, S = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
76461
76476
|
function T(v) {
|
|
76462
76477
|
return Object.prototype.toString.call(v);
|
|
@@ -76995,7 +77010,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
76995
77010
|
}
|
|
76996
77011
|
}
|
|
76997
77012
|
t.exports.loadAll = Ye, t.exports.load = et;
|
|
76998
|
-
})), Due = /* @__PURE__ */
|
|
77013
|
+
})), Due = /* @__PURE__ */ Mt(((e, t) => {
|
|
76999
77014
|
var n = Bl(), r = Ul(), a = Sv(), s = Object.prototype.toString, o = Object.prototype.hasOwnProperty, l = 65279, c = 9, u = 10, p = 13, d = 32, f = 33, m = 34, h = 35, g = 37, b = 38, y = 39, S = 42, T = 44, w = 45, C = 58, N = 61, _ = 62, D = 63, O = 64, k = 91, F = 93, U = 96, Z = 123, G = 124, P = 125, q = {};
|
|
77000
77015
|
q[0] = "\\0", q[7] = "\\a", q[8] = "\\b", q[9] = "\\t", q[10] = "\\n", q[11] = "\\v", q[12] = "\\f", q[13] = "\\r", q[27] = "\\e", q[34] = '\\"', q[92] = "\\\\", q[133] = "\\N", q[160] = "\\_", q[8232] = "\\L", q[8233] = "\\P";
|
|
77001
77016
|
var V = [
|
|
@@ -77095,7 +77110,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
77095
77110
|
function Ot(A, X, me, se, be, Te, ge, Pe) {
|
|
77096
77111
|
let ye, Le = 0, Oe = null, Ge = !1, bt = !1;
|
|
77097
77112
|
const At = se !== -1;
|
|
77098
|
-
let
|
|
77113
|
+
let Gt = -1, Zt = J(Ue(A, 0)) && pe(Ue(A, A.length - 1));
|
|
77099
77114
|
if (X || ge) for (ye = 0; ye < A.length; Le >= 65536 ? ye += 2 : ye++) {
|
|
77100
77115
|
if (Le = Ue(A, ye), !z(Le)) return lt;
|
|
77101
77116
|
Zt = Zt && Ie(Le, Oe, Pe), Oe = Le;
|
|
@@ -77103,11 +77118,11 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
77103
77118
|
else {
|
|
77104
77119
|
for (ye = 0; ye < A.length; Le >= 65536 ? ye += 2 : ye++) {
|
|
77105
77120
|
if (Le = Ue(A, ye), Le === u)
|
|
77106
|
-
Ge = !0, At && (bt = bt || ye -
|
|
77121
|
+
Ge = !0, At && (bt = bt || ye - Gt - 1 > se && A[Gt + 1] !== " ", Gt = ye);
|
|
77107
77122
|
else if (!z(Le)) return lt;
|
|
77108
77123
|
Zt = Zt && Ie(Le, Oe, Pe), Oe = Le;
|
|
77109
77124
|
}
|
|
77110
|
-
bt = bt || At && ye -
|
|
77125
|
+
bt = bt || At && ye - Gt - 1 > se && A[Gt + 1] !== " ";
|
|
77111
77126
|
}
|
|
77112
77127
|
return !Ge && !bt ? Zt && !ge && !be(A) ? ve : Te === W ? lt : Qe : me > 9 && Ke(A) ? lt : ge ? Te === W ? lt : Qe : bt ? st : Xe;
|
|
77113
77128
|
}
|
|
@@ -77300,7 +77315,7 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
77300
77315
|
` : "";
|
|
77301
77316
|
}
|
|
77302
77317
|
t.exports.dump = we;
|
|
77303
|
-
})), tL = /* @__PURE__ */ Rue((/* @__PURE__ */
|
|
77318
|
+
})), tL = /* @__PURE__ */ Rue((/* @__PURE__ */ Mt(((e, t) => {
|
|
77304
77319
|
var n = Iue(), r = Due();
|
|
77305
77320
|
function a(s, o) {
|
|
77306
77321
|
return function() {
|
|
@@ -77322,8 +77337,16 @@ var wue = Object.create, MO = Object.defineProperty, Tue = Object.getOwnProperty
|
|
|
77322
77337
|
seq: UO(),
|
|
77323
77338
|
str: BO()
|
|
77324
77339
|
}, t.exports.safeLoad = a("safeLoad", "load"), t.exports.safeLoadAll = a("safeLoadAll", "loadAll"), t.exports.safeDump = a("safeDump", "dump");
|
|
77325
|
-
})))()), { Type: Mde, Schema: Fde, FAILSAFE_SCHEMA: Bde, JSON_SCHEMA: Ude, CORE_SCHEMA: $de, DEFAULT_SCHEMA: Hde, load: zde, loadAll: Gde, dump: Vde, YAMLException: Wde, types: qde, safeLoad: Yde, safeLoadAll: Kde, safeDump: Xde } = tL.default,
|
|
77326
|
-
const Oue = ["critical", "high", "medium", "low", "info"], Lue = [
|
|
77340
|
+
})))()), { Type: Mde, Schema: Fde, FAILSAFE_SCHEMA: Bde, JSON_SCHEMA: Ude, CORE_SCHEMA: $de, DEFAULT_SCHEMA: Hde, load: zde, loadAll: Gde, dump: Vde, YAMLException: Wde, types: qde, safeLoad: Yde, safeLoadAll: Kde, safeDump: Xde } = tL.default, Gn = tL.default;
|
|
77341
|
+
const Oue = ["critical", "high", "medium", "low", "info"], Lue = [
|
|
77342
|
+
"cloudwatch",
|
|
77343
|
+
"grafana",
|
|
77344
|
+
"prometheus",
|
|
77345
|
+
/*"datadog",*/
|
|
77346
|
+
"custom",
|
|
77347
|
+
"cloudtrail"
|
|
77348
|
+
/*"pagerduty"*/
|
|
77349
|
+
], jue = {
|
|
77327
77350
|
cloudtrail: "Level 1 Security",
|
|
77328
77351
|
cloudwatch: "CloudWatch",
|
|
77329
77352
|
grafana: "Grafana",
|
|
@@ -77469,14 +77492,14 @@ ${m}
|
|
|
77469
77492
|
}
|
|
77470
77493
|
function wN(e) {
|
|
77471
77494
|
try {
|
|
77472
|
-
return
|
|
77495
|
+
return Gn.load(e)?.name || "new-workflow";
|
|
77473
77496
|
} catch {
|
|
77474
77497
|
return "new-workflow";
|
|
77475
77498
|
}
|
|
77476
77499
|
}
|
|
77477
77500
|
function TN(e) {
|
|
77478
77501
|
try {
|
|
77479
|
-
const t =
|
|
77502
|
+
const t = Gn.load(e), n = Array.isArray(t?.triggers?.labels) ? t.triggers.labels.map((d) => {
|
|
77480
77503
|
if (typeof d != "string") return { key: "env", op: "equals", value: "production" };
|
|
77481
77504
|
const f = d.match(/^(\S+)\s+(\S+)\s+'?(.+?)'?$/);
|
|
77482
77505
|
return { key: f?.[1] || "env", op: f?.[2] || "equals", value: f?.[3] || "production" };
|
|
@@ -77598,7 +77621,7 @@ function Hue({ form: e, updateForm: t }) {
|
|
|
77598
77621
|
/* @__PURE__ */ i.jsx("option", { value: "matches", children: "matches" })
|
|
77599
77622
|
] }),
|
|
77600
77623
|
/* @__PURE__ */ i.jsx("input", { value: a.value, onChange: (o) => r(s, { value: o.target.value }), placeholder: "value" }),
|
|
77601
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => t((o) => ({ ...o, labels: o.labels.filter((l, c) => c !== s) })), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(
|
|
77624
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => t((o) => ({ ...o, labels: o.labels.filter((l, c) => c !== s) })), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(Yn, { size: 16 }) })
|
|
77602
77625
|
] }, s))
|
|
77603
77626
|
] });
|
|
77604
77627
|
}
|
|
@@ -77619,12 +77642,12 @@ function zue({ form: e, updateForm: t }) {
|
|
|
77619
77642
|
" Add condition"
|
|
77620
77643
|
] })
|
|
77621
77644
|
] }),
|
|
77622
|
-
e.conditions.length === 0 && /* @__PURE__ */ i.jsx("p", { style: { fontSize: 12, color: "var(--muted
|
|
77645
|
+
e.conditions.length === 0 && /* @__PURE__ */ i.jsx("p", { style: { fontSize: 12, color: "var(--im-fg-muted)", marginTop: 4 }, children: "No extra conditions — all trigger matches pass through." }),
|
|
77623
77646
|
e.conditions.map((s, o) => /* @__PURE__ */ i.jsxs("div", { className: "im-label-row im-condition-row", children: [
|
|
77624
77647
|
/* @__PURE__ */ i.jsx("select", { value: s.field, onChange: (l) => r(o, { field: l.target.value }), children: Fue.map((l) => /* @__PURE__ */ i.jsx("option", { value: l, children: l }, l)) }),
|
|
77625
77648
|
/* @__PURE__ */ i.jsx("select", { value: s.operator, onChange: (l) => r(o, { operator: l.target.value }), children: Bue.map((l) => /* @__PURE__ */ i.jsx("option", { value: l, children: l }, l)) }),
|
|
77626
77649
|
/* @__PURE__ */ i.jsx("input", { value: s.value, onChange: (l) => r(o, { value: l.target.value }), placeholder: "value" }),
|
|
77627
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => a(o), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(
|
|
77650
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => a(o), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(Yn, { size: 16 }) })
|
|
77628
77651
|
] }, o))
|
|
77629
77652
|
] });
|
|
77630
77653
|
}
|
|
@@ -77737,7 +77760,7 @@ function Vue({ form: e, updateForm: t }) {
|
|
|
77737
77760
|
/* @__PURE__ */ i.jsxs("div", { className: "im-tag-input-row", children: [
|
|
77738
77761
|
r.groupByFields.map((u) => /* @__PURE__ */ i.jsxs("span", { className: "im-tag", children: [
|
|
77739
77762
|
u,
|
|
77740
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => l(u), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(
|
|
77763
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => l(u), "aria-label": "Remove", children: /* @__PURE__ */ i.jsx(Yn, { size: 12 }) })
|
|
77741
77764
|
] }, u)),
|
|
77742
77765
|
/* @__PURE__ */ i.jsx(
|
|
77743
77766
|
"input",
|
|
@@ -77785,7 +77808,7 @@ function Vue({ form: e, updateForm: t }) {
|
|
|
77785
77808
|
placeholder: "{resource.name} — {metric.name} incident"
|
|
77786
77809
|
}
|
|
77787
77810
|
),
|
|
77788
|
-
/* @__PURE__ */ i.jsxs("small", { style: { color: "var(--muted
|
|
77811
|
+
/* @__PURE__ */ i.jsxs("small", { style: { color: "var(--im-fg-muted)" }, children: [
|
|
77789
77812
|
"Preview: ",
|
|
77790
77813
|
c
|
|
77791
77814
|
] }),
|
|
@@ -77867,7 +77890,7 @@ function Wue({
|
|
|
77867
77890
|
const d = l.notifyChannels.some((f) => f.channel === p.provider_name);
|
|
77868
77891
|
return /* @__PURE__ */ i.jsx("button", { className: d ? "is-active" : "", type: "button", onClick: () => c(p.provider_name), children: p.display_name || p.provider_name }, p.id);
|
|
77869
77892
|
}) }),
|
|
77870
|
-
l.notifyChannels.length > 0 && /* @__PURE__ */ i.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "8px", marginTop: "8px", padding: "12px", background: "var(--
|
|
77893
|
+
l.notifyChannels.length > 0 && /* @__PURE__ */ i.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "8px", marginTop: "8px", padding: "12px", background: "var(--im-surface-2)", borderRadius: "6px" }, children: l.notifyChannels.map((p) => /* @__PURE__ */ i.jsxs("div", { style: { display: "flex", alignItems: "center", gap: "12px" }, children: [
|
|
77871
77894
|
/* @__PURE__ */ i.jsxs("label", { style: { margin: 0, minWidth: "120px", fontWeight: 600 }, children: [
|
|
77872
77895
|
p.channel,
|
|
77873
77896
|
" target ",
|
|
@@ -77884,7 +77907,7 @@ function Wue({
|
|
|
77884
77907
|
}
|
|
77885
77908
|
)
|
|
77886
77909
|
] }, p.channel)) })
|
|
77887
|
-
] }) : /* @__PURE__ */ i.jsx("p", { style: { fontSize: 12, color: "var(--muted
|
|
77910
|
+
] }) : /* @__PURE__ */ i.jsx("p", { style: { fontSize: 12, color: "var(--im-fg-muted)" }, children: "No notification providers configured. Add them in Settings." }),
|
|
77888
77911
|
/* @__PURE__ */ i.jsxs("div", { className: "im-toggle-row", children: [
|
|
77889
77912
|
/* @__PURE__ */ i.jsx(
|
|
77890
77913
|
"button",
|
|
@@ -77982,7 +78005,7 @@ function Lc({
|
|
|
77982
78005
|
}
|
|
77983
78006
|
let V;
|
|
77984
78007
|
try {
|
|
77985
|
-
V =
|
|
78008
|
+
V = Gn.load(n);
|
|
77986
78009
|
} catch {
|
|
77987
78010
|
te.error("Invalid YAML syntax");
|
|
77988
78011
|
return;
|
|
@@ -78189,11 +78212,11 @@ function que() {
|
|
|
78189
78212
|
!e && /* @__PURE__ */ i.jsx(bn, { className: "w-[100px] text-right", children: "Actions" })
|
|
78190
78213
|
] }) }),
|
|
78191
78214
|
/* @__PURE__ */ i.jsx(ca, { children: t.map((c, u) => /* @__PURE__ */ i.jsxs(Lt, { className: c.isActive ? "" : "opacity-50", children: [
|
|
78192
|
-
/* @__PURE__ */ i.jsx(
|
|
78193
|
-
/* @__PURE__ */ i.jsx(
|
|
78194
|
-
/* @__PURE__ */ i.jsx(
|
|
78195
|
-
/* @__PURE__ */ i.jsx(
|
|
78196
|
-
!e && /* @__PURE__ */ i.jsx(
|
|
78215
|
+
/* @__PURE__ */ i.jsx(Ut, { className: "font-mono text-muted-foreground", children: c.priority }),
|
|
78216
|
+
/* @__PURE__ */ i.jsx(Ut, { className: "font-medium", children: c.name }),
|
|
78217
|
+
/* @__PURE__ */ i.jsx(Ut, { className: "text-muted-foreground text-xs", children: c.sourceId ? `source: ${c.sourceId}` : c.sourceType ? c.sourceType : "global" }),
|
|
78218
|
+
/* @__PURE__ */ i.jsx(Ut, { children: /* @__PURE__ */ i.jsx("span", { className: `text-xs px-2 py-0.5 rounded-full border font-medium ${c.isActive ? "bg-emerald-500/10 text-emerald-600 border-emerald-500/20" : "bg-muted/50 text-muted-foreground border-border"}`, children: c.isActive ? "active" : "inactive" }) }),
|
|
78219
|
+
!e && /* @__PURE__ */ i.jsx(Ut, { className: "text-right", children: /* @__PURE__ */ i.jsxs("div", { className: "flex items-center gap-2 justify-end", children: [
|
|
78197
78220
|
/* @__PURE__ */ i.jsx(ie, { variant: "ghost", size: "icon", className: "h-8 w-8 text-muted-foreground", onClick: () => s({ to: `/pipeline/normalization/${c.id}/edit` }), children: /* @__PURE__ */ i.jsx(ed, { className: "w-4 h-4" }) }),
|
|
78198
78221
|
/* @__PURE__ */ i.jsx(ie, { variant: "ghost", size: "icon", className: "h-8 w-8 text-muted-foreground hover:text-red-500", onClick: () => l(c.id), children: /* @__PURE__ */ i.jsx(As, { className: "w-4 h-4" }) })
|
|
78199
78222
|
] }) })
|
|
@@ -78244,7 +78267,7 @@ function CN({
|
|
|
78244
78267
|
}
|
|
78245
78268
|
let w;
|
|
78246
78269
|
try {
|
|
78247
|
-
w =
|
|
78270
|
+
w = Gn.load(n);
|
|
78248
78271
|
} catch {
|
|
78249
78272
|
te.error("Invalid YAML syntax");
|
|
78250
78273
|
return;
|
|
@@ -78272,14 +78295,14 @@ function CN({
|
|
|
78272
78295
|
}
|
|
78273
78296
|
}, y = (w, C) => {
|
|
78274
78297
|
try {
|
|
78275
|
-
const N =
|
|
78276
|
-
N[w] = C, r(
|
|
78298
|
+
const N = Gn.load(n) || {};
|
|
78299
|
+
N[w] = C, r(Gn.dump(N, { indent: 2 }));
|
|
78277
78300
|
} catch {
|
|
78278
78301
|
}
|
|
78279
78302
|
}, S = async () => {
|
|
78280
78303
|
let w = null;
|
|
78281
78304
|
try {
|
|
78282
|
-
w =
|
|
78305
|
+
w = Gn.load(n)?.source_type;
|
|
78283
78306
|
} catch {
|
|
78284
78307
|
}
|
|
78285
78308
|
if (!w) {
|
|
@@ -78294,7 +78317,7 @@ function CN({
|
|
|
78294
78317
|
}
|
|
78295
78318
|
}, T = x.useMemo(() => {
|
|
78296
78319
|
try {
|
|
78297
|
-
return
|
|
78320
|
+
return Gn.load(n);
|
|
78298
78321
|
} catch {
|
|
78299
78322
|
return {};
|
|
78300
78323
|
}
|
|
@@ -78379,7 +78402,15 @@ function CN({
|
|
|
78379
78402
|
disabled: h,
|
|
78380
78403
|
children: [
|
|
78381
78404
|
/* @__PURE__ */ i.jsx("option", { value: "", children: "— Any (global) —" }),
|
|
78382
|
-
[
|
|
78405
|
+
[
|
|
78406
|
+
"cloudwatch",
|
|
78407
|
+
"grafana",
|
|
78408
|
+
"prometheus",
|
|
78409
|
+
/*"datadog", "meyi_pulse",*/
|
|
78410
|
+
"custom",
|
|
78411
|
+
"cloudtrail"
|
|
78412
|
+
/*, "pagerduty"*/
|
|
78413
|
+
].map((w) => /* @__PURE__ */ i.jsx("option", { value: w, children: w === "cloudtrail" ? "Level 1 Security" : w === "pagerduty" ? "PagerDuty" : w === "cloudwatch" ? "CloudWatch" : w === "grafana" ? "Grafana" : w === "prometheus" ? "Prometheus" : w === "datadog" ? "Datadog" : w === "meyi_pulse" ? "Meyi Pulse" : "Custom" }, w))
|
|
78383
78414
|
]
|
|
78384
78415
|
}
|
|
78385
78416
|
)
|
|
@@ -78418,7 +78449,15 @@ severity: "{{labels.severity}}"`
|
|
|
78418
78449
|
] })
|
|
78419
78450
|
] });
|
|
78420
78451
|
}
|
|
78421
|
-
const Yue = [
|
|
78452
|
+
const Yue = [
|
|
78453
|
+
"cloudwatch",
|
|
78454
|
+
"grafana",
|
|
78455
|
+
"prometheus",
|
|
78456
|
+
/*"datadog", "meyi_pulse",*/
|
|
78457
|
+
"custom",
|
|
78458
|
+
"cloudtrail"
|
|
78459
|
+
/*, "pagerduty"*/
|
|
78460
|
+
], Kue = {
|
|
78422
78461
|
cloudtrail: "Level 1 Security",
|
|
78423
78462
|
cloudwatch: "CloudWatch",
|
|
78424
78463
|
grafana: "Grafana",
|
|
@@ -78471,7 +78510,7 @@ function jc({
|
|
|
78471
78510
|
fields: h
|
|
78472
78511
|
}
|
|
78473
78512
|
};
|
|
78474
|
-
return S && (J.flap = { threshold: w, window_seconds: B, on_flap: D }), J.on_hit = { action: "suppress" }, J.on_miss = { action: "pass_to_grouping" },
|
|
78513
|
+
return S && (J.flap = { threshold: w, window_seconds: B, on_flap: D }), J.on_hit = { action: "suppress" }, J.on_miss = { action: "pass_to_grouping" }, Gn.dump(J, { indent: 2 });
|
|
78475
78514
|
}, [n, a, o, c, R, h, S, w, B, D]);
|
|
78476
78515
|
x.useEffect(() => {
|
|
78477
78516
|
if (q) return;
|
|
@@ -78534,7 +78573,7 @@ function jc({
|
|
|
78534
78573
|
try {
|
|
78535
78574
|
const J = await Ce.getPipelineDefaults(c);
|
|
78536
78575
|
if (J.ok && J.defaults?.dedup?.yamlDefinition) {
|
|
78537
|
-
const pe =
|
|
78576
|
+
const pe = Gn.load(J.defaults.dedup.yamlDefinition);
|
|
78538
78577
|
pe.name && r(pe.name), pe.priority !== void 0 && s(pe.priority), pe.is_active !== void 0 && l(pe.is_active);
|
|
78539
78578
|
const Ue = pe.window_seconds || 300, Ke = AN(Ue);
|
|
78540
78579
|
d(Ke.n), m(Ke.u), pe.fingerprint?.fields && g(pe.fingerprint.fields), pe.flap ? (T(!0), C(pe.flap.threshold || 4), _(Math.max(1, Math.round((pe.flap.window_seconds || 600) / 60))), O(pe.flap.on_flap || "none")) : T(!1), te.success(`Loaded defaults for ${c}`);
|
|
@@ -78637,7 +78676,7 @@ function jc({
|
|
|
78637
78676
|
/* @__PURE__ */ i.jsxs("div", { className: "im-chip-input", children: [
|
|
78638
78677
|
h.map((J) => /* @__PURE__ */ i.jsxs("span", { className: "im-chip-active", children: [
|
|
78639
78678
|
J,
|
|
78640
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => ae(J), "aria-label": `Remove ${J}`, children: /* @__PURE__ */ i.jsx(
|
|
78679
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => ae(J), "aria-label": `Remove ${J}`, children: /* @__PURE__ */ i.jsx(Yn, { size: 12 }) })
|
|
78641
78680
|
] }, J)),
|
|
78642
78681
|
/* @__PURE__ */ i.jsx(
|
|
78643
78682
|
"input",
|
|
@@ -78747,7 +78786,15 @@ function jc({
|
|
|
78747
78786
|
] })
|
|
78748
78787
|
] });
|
|
78749
78788
|
}
|
|
78750
|
-
const Jue = [
|
|
78789
|
+
const Jue = [
|
|
78790
|
+
"cloudwatch",
|
|
78791
|
+
"grafana",
|
|
78792
|
+
"prometheus",
|
|
78793
|
+
/*"datadog", "meyi_pulse",*/
|
|
78794
|
+
"custom",
|
|
78795
|
+
"cloudtrail"
|
|
78796
|
+
/*, "pagerduty"*/
|
|
78797
|
+
], ede = {
|
|
78751
78798
|
cloudtrail: "Level 1 Security",
|
|
78752
78799
|
cloudwatch: "CloudWatch",
|
|
78753
78800
|
grafana: "Grafana",
|
|
@@ -78781,7 +78828,7 @@ function Pc({
|
|
|
78781
78828
|
const ne = z.config;
|
|
78782
78829
|
let Ie = {};
|
|
78783
78830
|
try {
|
|
78784
|
-
Ie =
|
|
78831
|
+
Ie = Gn.load(ne.yamlDefinition || "") || {};
|
|
78785
78832
|
} catch {
|
|
78786
78833
|
}
|
|
78787
78834
|
r(ne.name || "My Grouping Strategy"), s(ne.priority ?? 0), l(ne.isActive !== !1), u(ne.sourceType || ""), Y(!!ne.isSystem), d(ne.groupBy?.length ? ne.groupBy : ["resourceId", "metricName"]);
|
|
@@ -78805,7 +78852,7 @@ function Pc({
|
|
|
78805
78852
|
max_alarms: S,
|
|
78806
78853
|
incident_severity: D
|
|
78807
78854
|
};
|
|
78808
|
-
return w && (z.incident_title = w), N && (z.group_name = N),
|
|
78855
|
+
return w && (z.incident_title = w), N && (z.group_name = N), Gn.dump(z, { indent: 2 });
|
|
78809
78856
|
}, [n, a, o, c, p, R, S, D, w, N]);
|
|
78810
78857
|
x.useEffect(() => {
|
|
78811
78858
|
if (q) return;
|
|
@@ -78867,7 +78914,7 @@ function Pc({
|
|
|
78867
78914
|
try {
|
|
78868
78915
|
const z = await Ce.getPipelineDefaults(c);
|
|
78869
78916
|
if (z.ok && z.defaults?.grouping?.yamlDefinition) {
|
|
78870
|
-
const ne =
|
|
78917
|
+
const ne = Gn.load(z.defaults.grouping.yamlDefinition);
|
|
78871
78918
|
ne.name && r(ne.name), ne.priority !== void 0 && s(ne.priority), ne.is_active !== void 0 && l(ne.is_active), ne.default_key && d(ne.default_key);
|
|
78872
78919
|
const Ie = ne.window_seconds || 900, J = _N(Ie);
|
|
78873
78920
|
g(J.n), y(J.u), ne.max_alarms !== void 0 && T(ne.max_alarms), ne.incident_severity && O(ne.incident_severity), te.success(`Loaded defaults for ${c}`);
|
|
@@ -78947,7 +78994,7 @@ function Pc({
|
|
|
78947
78994
|
/* @__PURE__ */ i.jsxs("div", { className: "im-chip-input", children: [
|
|
78948
78995
|
p.map((z) => /* @__PURE__ */ i.jsxs("span", { className: "im-chip-active", children: [
|
|
78949
78996
|
z,
|
|
78950
|
-
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => I(z), "aria-label": `Remove ${z}`, children: /* @__PURE__ */ i.jsx(
|
|
78997
|
+
/* @__PURE__ */ i.jsx("button", { type: "button", onClick: () => I(z), "aria-label": `Remove ${z}`, children: /* @__PURE__ */ i.jsx(Yn, { size: 12 }) })
|
|
78951
78998
|
] }, z)),
|
|
78952
78999
|
/* @__PURE__ */ i.jsx(
|
|
78953
79000
|
"input",
|
|
@@ -79133,7 +79180,7 @@ function ide() {
|
|
|
79133
79180
|
getParentRoute: () => e,
|
|
79134
79181
|
path: "/sources/$id",
|
|
79135
79182
|
component: () => {
|
|
79136
|
-
const { id: n } =
|
|
79183
|
+
const { id: n } = $n({ strict: !1 });
|
|
79137
79184
|
return /* @__PURE__ */ i.jsx(oV, { sourceId: n });
|
|
79138
79185
|
}
|
|
79139
79186
|
}),
|
|
@@ -79181,7 +79228,7 @@ function ide() {
|
|
|
79181
79228
|
getParentRoute: () => e,
|
|
79182
79229
|
path: "/settings/workflow/$id/edit",
|
|
79183
79230
|
component: () => {
|
|
79184
|
-
const { id: n } =
|
|
79231
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79185
79232
|
return /* @__PURE__ */ i.jsx(Lc, { workflowId: n, onBack: () => r({ to: "/settings/workflow" }) });
|
|
79186
79233
|
}
|
|
79187
79234
|
}),
|
|
@@ -79197,7 +79244,7 @@ function ide() {
|
|
|
79197
79244
|
getParentRoute: () => e,
|
|
79198
79245
|
path: "/settings/grouping/$id/edit",
|
|
79199
79246
|
component: () => {
|
|
79200
|
-
const { id: n } =
|
|
79247
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79201
79248
|
return /* @__PURE__ */ i.jsx(Pc, { ruleId: n, onBack: () => r({ to: "/settings/grouping" }) });
|
|
79202
79249
|
}
|
|
79203
79250
|
}),
|
|
@@ -79213,7 +79260,7 @@ function ide() {
|
|
|
79213
79260
|
getParentRoute: () => e,
|
|
79214
79261
|
path: "/settings/dedup/$id/edit",
|
|
79215
79262
|
component: () => {
|
|
79216
|
-
const { id: n } =
|
|
79263
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79217
79264
|
return /* @__PURE__ */ i.jsx(jc, { ruleId: n, onBack: () => r({ to: "/settings/dedup" }) });
|
|
79218
79265
|
}
|
|
79219
79266
|
}),
|
|
@@ -79231,7 +79278,7 @@ function ide() {
|
|
|
79231
79278
|
getParentRoute: () => e,
|
|
79232
79279
|
path: "/sops/$id",
|
|
79233
79280
|
component: () => {
|
|
79234
|
-
const { id: n } =
|
|
79281
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79235
79282
|
return /* @__PURE__ */ i.jsx(
|
|
79236
79283
|
fce,
|
|
79237
79284
|
{
|
|
@@ -79261,7 +79308,7 @@ function ide() {
|
|
|
79261
79308
|
getParentRoute: () => e,
|
|
79262
79309
|
path: "/workflows/$id/edit",
|
|
79263
79310
|
component: () => {
|
|
79264
|
-
const { id: n } =
|
|
79311
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79265
79312
|
return /* @__PURE__ */ i.jsx(Lc, { workflowId: n, onBack: () => r({ to: "/workflows" }) });
|
|
79266
79313
|
}
|
|
79267
79314
|
}),
|
|
@@ -79285,7 +79332,7 @@ function ide() {
|
|
|
79285
79332
|
getParentRoute: () => e,
|
|
79286
79333
|
path: "/alert/$id",
|
|
79287
79334
|
component: () => {
|
|
79288
|
-
const { id: n } =
|
|
79335
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79289
79336
|
return /* @__PURE__ */ i.jsx(
|
|
79290
79337
|
EV,
|
|
79291
79338
|
{
|
|
@@ -79330,7 +79377,7 @@ function ide() {
|
|
|
79330
79377
|
getParentRoute: () => e,
|
|
79331
79378
|
path: "/incidents/$id",
|
|
79332
79379
|
component: () => {
|
|
79333
|
-
const { id: n } =
|
|
79380
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79334
79381
|
return /* @__PURE__ */ i.jsx(
|
|
79335
79382
|
uz,
|
|
79336
79383
|
{
|
|
@@ -79359,7 +79406,7 @@ function ide() {
|
|
|
79359
79406
|
getParentRoute: () => e,
|
|
79360
79407
|
path: "/pipeline/normalization/$id/edit",
|
|
79361
79408
|
component: () => {
|
|
79362
|
-
const { id: n } =
|
|
79409
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79363
79410
|
return /* @__PURE__ */ i.jsx(CN, { ruleId: n, onBack: () => r({ to: "/pipeline/normalization" }) });
|
|
79364
79411
|
}
|
|
79365
79412
|
}),
|
|
@@ -79381,7 +79428,7 @@ function ide() {
|
|
|
79381
79428
|
getParentRoute: () => e,
|
|
79382
79429
|
path: "/pipeline/dedup/$id/edit",
|
|
79383
79430
|
component: () => {
|
|
79384
|
-
const { id: n } =
|
|
79431
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79385
79432
|
return /* @__PURE__ */ i.jsx(jc, { ruleId: n, onBack: () => r({ to: "/pipeline/dedup" }) });
|
|
79386
79433
|
}
|
|
79387
79434
|
}),
|
|
@@ -79403,7 +79450,7 @@ function ide() {
|
|
|
79403
79450
|
getParentRoute: () => e,
|
|
79404
79451
|
path: "/pipeline/grouping/$id/edit",
|
|
79405
79452
|
component: () => {
|
|
79406
|
-
const { id: n } =
|
|
79453
|
+
const { id: n } = $n({ strict: !1 }), r = St();
|
|
79407
79454
|
return /* @__PURE__ */ i.jsx(Pc, { ruleId: n, onBack: () => r({ to: "/pipeline/grouping" }) });
|
|
79408
79455
|
}
|
|
79409
79456
|
})
|