@devtron-labs/devtron-fe-common-lib 1.22.6-beta-1 → 1.22.6-beta-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3,7 +3,7 @@ var Cl = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var eh = (e, s, n) => s in e ? Qf(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
|
6
|
-
var
|
|
6
|
+
var ue = (e, s, n) => eh(e, typeof s != "symbol" ? s + "" : s, n), Nl = (e, s, n) => s.has(e) || Cl("Cannot " + n);
|
|
7
7
|
var tn = (e, s, n) => (Nl(e, s, "read from private field"), n ? n.call(e) : s.get(e)), nr = (e, s, n) => s.has(e) ? Cl("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), ar = (e, s, n, a) => (Nl(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
|
8
8
|
import { j as t, i as ye, Q as rr, k as th, F as sh, d as nm, n as nh, c as ah, f as am, D as Br, t as qe, g as rh, a as oh, E as Ea, S as _c, b as rm, r as om, s as ih, o as ch, e as bl, h as lh, l as dh, y as uh, m as Gr, p as mh, q as ph, u as Tl, v as Sl, w as _h, x as fh, z as hh, A as gh, B as xh, C as Eh, G as Ch, H as im, T as vl, I as fc, J as Nh, K as Al, L as bh, M as Th, N as cm, O as Rl, P as Sh, R as vh, U as Ah, V as Rh, W as Il, X as Ih, Y as yh, Z as Oh, _ as yl, $ as jh, a0 as Ol, a1 as jl, a2 as wh, a3 as Lh, a4 as Dh, a5 as Ph, a6 as Mh, a7 as kh, a8 as $h, a9 as zo, aa as Uh, ab as Fh, ac as Bh, ad as Gh, ae as Vh, af as lm, ag as dm, ah as Hh, ai as Yh, aj as Wh, ak as Kh, al as zh, am as qh, an as Xh, ao as Jh, ap as Zh, aq as Qh, ar as eg, as as um, at as tg, au as sg, av as ng, aw as ag, ax as rg, ay as og, az as ig, aA as wl, aB as Ll, aC as cg, aD as lg, aE as dg, aF as ug, aG as mg, aH as pg, aI as _g, aJ as fg, aK as mm, aL as pm, aM as hg, aN as gg, aO as xg, aP as Eg, aQ as Cg, aR as Ng, aS as bg, aT as Tg, aU as Sg, aV as vg, aW as Ag, aX as Rg, aY as an } from "./@vendor-CtCMPfdc.js";
|
|
9
9
|
import Ke, { createContext as Bt, useContext as ms, useMemo as J, useState as w, useEffect as M, forwardRef as xo, createElement as hc, Children as bi, useRef as B, useCallback as He, useLayoutEffect as gc, createRef as Vr, cloneElement as Ca, Fragment as us, memo as At, Component as xc } from "react";
|
|
@@ -920,18 +920,18 @@ const Gl = {
|
|
|
920
920
|
};
|
|
921
921
|
class U0 {
|
|
922
922
|
constructor(s) {
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
923
|
+
ue(this, "code");
|
|
924
|
+
ue(this, "internalMessage");
|
|
925
|
+
ue(this, "userMessage");
|
|
926
|
+
ue(this, "moreInfo");
|
|
927
927
|
this.code = s.code || 0, this.userMessage = s.userMessage || "", this.internalMessage = s.internalMessage || "", this.moreInfo = s.moreInfo || "";
|
|
928
928
|
}
|
|
929
929
|
}
|
|
930
930
|
class Ht extends Error {
|
|
931
931
|
constructor(n) {
|
|
932
932
|
super();
|
|
933
|
-
|
|
934
|
-
|
|
933
|
+
ue(this, "code");
|
|
934
|
+
ue(this, "errors");
|
|
935
935
|
this.code = n.code;
|
|
936
936
|
const a = n.errors.reduce((r, o) => (r += `${o.internalMessage || o.userMessage}`, r), "");
|
|
937
937
|
this.name = `[${n.code.toString()}]`, this.message = a, this.errors = n.errors.map((r) => new U0(r)), Object.setPrototypeOf(this, Ht.prototype);
|
|
@@ -939,7 +939,7 @@ class Ht extends Error {
|
|
|
939
939
|
}
|
|
940
940
|
const F0 = async (e, s) => {
|
|
941
941
|
try {
|
|
942
|
-
await
|
|
942
|
+
await _e(`${Y.DASHBOARD_EVENT}/${e}`, { preventLicenseRedirect: s });
|
|
943
943
|
} catch {
|
|
944
944
|
}
|
|
945
945
|
}, wi = ({ category: e, action: s }) => {
|
|
@@ -1525,7 +1525,7 @@ const Hs = {
|
|
|
1525
1525
|
document.removeEventListener("click", n);
|
|
1526
1526
|
};
|
|
1527
1527
|
}, [e, s]);
|
|
1528
|
-
}, jv = async (e) =>
|
|
1528
|
+
}, jv = async (e) => _e(`${Y.APP}/material-info/${e.envId}/${e.ciArtifactId}`), wv = (e) => _e(`${Y.APP}/material-info/${e.ciArtifactId}`), Lv = ({
|
|
1529
1529
|
params: e,
|
|
1530
1530
|
signal: s,
|
|
1531
1531
|
isTemplateView: n,
|
|
@@ -1538,13 +1538,13 @@ const Hs = {
|
|
|
1538
1538
|
...e
|
|
1539
1539
|
}
|
|
1540
1540
|
}) : Ue(Y.CONFIG_DATA, e);
|
|
1541
|
-
return
|
|
1541
|
+
return _e(r, { signal: s });
|
|
1542
1542
|
}, Dv = async (e) => {
|
|
1543
1543
|
const s = {
|
|
1544
1544
|
comparisonItems: e.filter((r) => !!r).map((r, o) => ({ index: o, ...r }))
|
|
1545
1545
|
}, n = Array(e.length).fill(null), {
|
|
1546
1546
|
result: { comparisonItemResponse: a }
|
|
1547
|
-
} = await
|
|
1547
|
+
} = await _e(
|
|
1548
1548
|
Ue(Y.CONFIG_COMPARE_SECRET, {
|
|
1549
1549
|
compareConfig: JSON.stringify(s)
|
|
1550
1550
|
})
|
|
@@ -1562,15 +1562,15 @@ const kv = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => U
|
|
|
1562
1562
|
}
|
|
1563
1563
|
}) : Y.CD_CONFIG;
|
|
1564
1564
|
return ft(n, e);
|
|
1565
|
-
}, r2 = () =>
|
|
1566
|
-
const { result: s } = await
|
|
1565
|
+
}, r2 = () => _e(Y.ENVIRONMENT_DATA), Uv = async (e) => {
|
|
1566
|
+
const { result: s } = await _e(Y.CLUSTER_LIST_MIN, { signal: e });
|
|
1567
1567
|
return s ? s.map(({ id: n, cluster_name: a, isVirtualCluster: r, isProd: o }) => ({
|
|
1568
1568
|
id: n,
|
|
1569
1569
|
name: a,
|
|
1570
1570
|
isVirtual: r ?? !1,
|
|
1571
1571
|
isProd: o ?? !1
|
|
1572
1572
|
})).sort((n, a) => st(n.name, a.name)) : [];
|
|
1573
|
-
}, o2 = async (e) => await
|
|
1573
|
+
}, o2 = async (e) => await _e(Y.CLUSTER_MIN, {
|
|
1574
1574
|
signal: e
|
|
1575
1575
|
}), yo = ({ type: e, queryParams: { id: s, ...n } }) => Ue(
|
|
1576
1576
|
`${kv({
|
|
@@ -1670,7 +1670,7 @@ const ln = class ln {
|
|
|
1670
1670
|
* Handler for showing the toast
|
|
1671
1671
|
*/
|
|
1672
1672
|
// eslint-disable-next-line class-methods-use-this
|
|
1673
|
-
|
|
1673
|
+
ue(this, "showToast", ({
|
|
1674
1674
|
variant: s = ve.info,
|
|
1675
1675
|
icon: n,
|
|
1676
1676
|
title: a,
|
|
@@ -1710,11 +1710,11 @@ const ln = class ln {
|
|
|
1710
1710
|
/**
|
|
1711
1711
|
* Handler for dismissing an existing toast
|
|
1712
1712
|
*/
|
|
1713
|
-
|
|
1713
|
+
ue(this, "dismissToast", rr.dismiss);
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Handler for checking if the toast is active
|
|
1716
1716
|
*/
|
|
1717
|
-
|
|
1717
|
+
ue(this, "isToastActive", rr.isActive);
|
|
1718
1718
|
}
|
|
1719
1719
|
static get instance() {
|
|
1720
1720
|
return tn(ln, Pn) || ar(ln, Pn, new ln()), tn(ln, Pn);
|
|
@@ -1854,8 +1854,8 @@ const c2 = {
|
|
|
1854
1854
|
] }) : null;
|
|
1855
1855
|
class d2 {
|
|
1856
1856
|
constructor(s, n) {
|
|
1857
|
-
|
|
1858
|
-
|
|
1857
|
+
ue(this, "title", "");
|
|
1858
|
+
ue(this, "subTitle", "");
|
|
1859
1859
|
this.title = s, this.subTitle = n;
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
@@ -2068,7 +2068,7 @@ const Yl = (e) => ({
|
|
|
2068
2068
|
label: e.startsWith($n) ? e.split(":")[1] : e,
|
|
2069
2069
|
value: e
|
|
2070
2070
|
}), T2 = async () => {
|
|
2071
|
-
const { result: e } = await
|
|
2071
|
+
const { result: e } = await _e(Y.USER_LIST_MIN);
|
|
2072
2072
|
if (!e)
|
|
2073
2073
|
return [];
|
|
2074
2074
|
const s = e.map(({ emailId: n }) => n).sort(st);
|
|
@@ -3579,9 +3579,9 @@ const Zl = (e) => {
|
|
|
3579
3579
|
selectRef: S,
|
|
3580
3580
|
shouldMenuAlignRight: O = !1,
|
|
3581
3581
|
fullWidth: v = !1,
|
|
3582
|
-
customSelectedOptionsCount:
|
|
3582
|
+
customSelectedOptionsCount: A = null,
|
|
3583
3583
|
menuListFooterConfig: I,
|
|
3584
|
-
isCreatable:
|
|
3584
|
+
isCreatable: R = !1,
|
|
3585
3585
|
onCreateOption: y,
|
|
3586
3586
|
closeMenuOnSelect: D,
|
|
3587
3587
|
shouldShowNoOptionsMessage: k = !0,
|
|
@@ -3590,10 +3590,10 @@ const Zl = (e) => {
|
|
|
3590
3590
|
shouldHideMenu: L = !1,
|
|
3591
3591
|
warningText: G,
|
|
3592
3592
|
layout: z,
|
|
3593
|
-
ariaLabel:
|
|
3593
|
+
ariaLabel: q,
|
|
3594
3594
|
borderConfig: re,
|
|
3595
|
-
borderRadiusConfig:
|
|
3596
|
-
labelTippyCustomizedConfig:
|
|
3595
|
+
borderRadiusConfig: fe,
|
|
3596
|
+
labelTippyCustomizedConfig: K,
|
|
3597
3597
|
labelTooltipConfig: Z,
|
|
3598
3598
|
hideFormFieldInfo: ge,
|
|
3599
3599
|
autoFocus: xe,
|
|
@@ -3610,7 +3610,7 @@ const Zl = (e) => {
|
|
|
3610
3610
|
getOptionValue: V,
|
|
3611
3611
|
noOptionsMessage: Ee
|
|
3612
3612
|
} = te, {
|
|
3613
|
-
isGroupHeadingSelectable:
|
|
3613
|
+
isGroupHeadingSelectable: pe = !1,
|
|
3614
3614
|
getIsOptionValid: ee = () => !0,
|
|
3615
3615
|
customDisplayText: Ce = null
|
|
3616
3616
|
} = g, ze = Dt && !Ce, Os = !f && i, Jn = !b && T, Zn = D ?? !f, Jt = J(
|
|
@@ -3620,13 +3620,13 @@ const Zl = (e) => {
|
|
|
3620
3620
|
menuSize: u,
|
|
3621
3621
|
variant: h,
|
|
3622
3622
|
getIsOptionValid: ee,
|
|
3623
|
-
isGroupHeadingSelectable:
|
|
3623
|
+
isGroupHeadingSelectable: pe,
|
|
3624
3624
|
shouldMenuAlignRight: O
|
|
3625
3625
|
}),
|
|
3626
|
-
[e, c, u, h,
|
|
3626
|
+
[e, c, u, h, pe, O]
|
|
3627
3627
|
), En = (De) => {
|
|
3628
3628
|
const js = De?.trim();
|
|
3629
|
-
return
|
|
3629
|
+
return R && !!js && !Un(
|
|
3630
3630
|
at,
|
|
3631
3631
|
js,
|
|
3632
3632
|
null,
|
|
@@ -3638,10 +3638,10 @@ const Zl = (e) => {
|
|
|
3638
3638
|
{
|
|
3639
3639
|
...De,
|
|
3640
3640
|
showSelectedOptionsCount: d,
|
|
3641
|
-
customSelectedOptionsCount:
|
|
3641
|
+
customSelectedOptionsCount: A
|
|
3642
3642
|
}
|
|
3643
3643
|
),
|
|
3644
|
-
[d,
|
|
3644
|
+
[d, A]
|
|
3645
3645
|
), ea = He(
|
|
3646
3646
|
(De) => /* @__PURE__ */ t.jsx(
|
|
3647
3647
|
PA,
|
|
@@ -3653,8 +3653,8 @@ const Zl = (e) => {
|
|
|
3653
3653
|
),
|
|
3654
3654
|
[E, x]
|
|
3655
3655
|
), en = (De) => /* @__PURE__ */ t.jsx(kA, { ...De, getIsOptionValid: ee }), Cn = He(
|
|
3656
|
-
(De) => /* @__PURE__ */ t.jsx($A, { ...De, isGroupHeadingSelectable:
|
|
3657
|
-
[
|
|
3656
|
+
(De) => /* @__PURE__ */ t.jsx($A, { ...De, isGroupHeadingSelectable: pe }),
|
|
3657
|
+
[pe]
|
|
3658
3658
|
), tr = () => m ? /* @__PURE__ */ t.jsx(gn, { reload: p }) : k ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: Ee?.({
|
|
3659
3659
|
inputValue: Se
|
|
3660
3660
|
}) || "No options" }) : null, sr = (De) => /* @__PURE__ */ t.jsx(ye, { content: l, placement: "top", className: "default-tt", arrow: !1, children: De }), Kf = (De) => {
|
|
@@ -3690,10 +3690,10 @@ const Zl = (e) => {
|
|
|
3690
3690
|
warningText: G,
|
|
3691
3691
|
required: Pe,
|
|
3692
3692
|
fullWidth: v,
|
|
3693
|
-
ariaLabel:
|
|
3693
|
+
ariaLabel: q,
|
|
3694
3694
|
borderConfig: re,
|
|
3695
|
-
borderRadiusConfig:
|
|
3696
|
-
labelTippyCustomizedConfig:
|
|
3695
|
+
borderRadiusConfig: fe,
|
|
3696
|
+
labelTippyCustomizedConfig: K,
|
|
3697
3697
|
labelTooltipConfig: Z,
|
|
3698
3698
|
hideFormFieldInfo: ge,
|
|
3699
3699
|
children: /* @__PURE__ */ t.jsx(_t, { condition: ct && !!l, wrap: sr, children: /* @__PURE__ */ t.jsx("div", { className: "w-100", children: /* @__PURE__ */ t.jsx(
|
|
@@ -3704,15 +3704,15 @@ const Zl = (e) => {
|
|
|
3704
3704
|
inputId: Ye,
|
|
3705
3705
|
required: Pe,
|
|
3706
3706
|
label: o,
|
|
3707
|
-
ariaLabel:
|
|
3707
|
+
ariaLabel: q,
|
|
3708
3708
|
error: e,
|
|
3709
3709
|
helperText: a
|
|
3710
3710
|
}),
|
|
3711
3711
|
classNames: {
|
|
3712
|
-
control: () => wo({ borderConfig: re, borderRadiusConfig:
|
|
3712
|
+
control: () => wo({ borderConfig: re, borderRadiusConfig: fe }),
|
|
3713
3713
|
...f ? {
|
|
3714
3714
|
option: () => "checkbox__parent-container",
|
|
3715
|
-
...
|
|
3715
|
+
...pe ? { groupHeading: () => "checkbox__parent-container" } : {}
|
|
3716
3716
|
} : {},
|
|
3717
3717
|
group: () => "select-picker__group"
|
|
3718
3718
|
},
|
|
@@ -3879,13 +3879,13 @@ const Zl = (e) => {
|
|
|
3879
3879
|
}, [E]);
|
|
3880
3880
|
const O = (I) => {
|
|
3881
3881
|
if (d) {
|
|
3882
|
-
const
|
|
3883
|
-
I.target.value !==
|
|
3882
|
+
const R = I.target.value?.trim();
|
|
3883
|
+
I.target.value !== R && (I.stopPropagation(), I.target.value = R, b.onChange(I));
|
|
3884
3884
|
}
|
|
3885
3885
|
l?.(I);
|
|
3886
3886
|
}, v = (I) => {
|
|
3887
3887
|
I.stopPropagation(), S.current.focus(), x?.onClick(I);
|
|
3888
|
-
},
|
|
3888
|
+
}, A = (I) => {
|
|
3889
3889
|
I.key === "Escape" && S.current.blur(), b.onKeyDown?.(I);
|
|
3890
3890
|
};
|
|
3891
3891
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -3925,7 +3925,7 @@ const Zl = (e) => {
|
|
|
3925
3925
|
"data-testid": e,
|
|
3926
3926
|
required: c,
|
|
3927
3927
|
onBlur: O,
|
|
3928
|
-
onKeyDown:
|
|
3928
|
+
onKeyDown: A,
|
|
3929
3929
|
type: h,
|
|
3930
3930
|
ref: S,
|
|
3931
3931
|
className: `${cs[u]} ${_p[u]} ${wo({ borderConfig: p, borderRadiusConfig: _ })} ${x ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
|
@@ -4161,9 +4161,9 @@ const Zl = (e) => {
|
|
|
4161
4161
|
if (l)
|
|
4162
4162
|
return;
|
|
4163
4163
|
S(!1), N.current?.querySelector("button")?.blur(), N.current?.blur();
|
|
4164
|
-
},
|
|
4164
|
+
}, A = (y) => {
|
|
4165
4165
|
!d && (y.key === "Enter" || y.key === " ") && (y.preventDefault(), S(!0)), c?.(y, d, v);
|
|
4166
|
-
}, I = (y) => i?.(y, d, v),
|
|
4166
|
+
}, I = (y) => i?.(y, d, v), R = () => {
|
|
4167
4167
|
v();
|
|
4168
4168
|
};
|
|
4169
4169
|
return gc(() => {
|
|
@@ -4197,7 +4197,7 @@ const Zl = (e) => {
|
|
|
4197
4197
|
triggerProps: {
|
|
4198
4198
|
ref: N,
|
|
4199
4199
|
onClick: O,
|
|
4200
|
-
onKeyDown:
|
|
4200
|
+
onKeyDown: A,
|
|
4201
4201
|
"aria-haspopup": "listbox",
|
|
4202
4202
|
"aria-expanded": d,
|
|
4203
4203
|
className: "flex",
|
|
@@ -4206,7 +4206,7 @@ const Zl = (e) => {
|
|
|
4206
4206
|
},
|
|
4207
4207
|
overlayProps: {
|
|
4208
4208
|
hasClearBackground: !0,
|
|
4209
|
-
onClick:
|
|
4209
|
+
onClick: R,
|
|
4210
4210
|
onEscape: v,
|
|
4211
4211
|
onBackdropMount: f
|
|
4212
4212
|
},
|
|
@@ -4690,17 +4690,17 @@ const Zl = (e) => {
|
|
|
4690
4690
|
const h = (O) => {
|
|
4691
4691
|
u(O.target.value);
|
|
4692
4692
|
}, E = (O, v) => {
|
|
4693
|
-
let
|
|
4693
|
+
let A = O;
|
|
4694
4694
|
const I = p.length;
|
|
4695
|
-
for (let
|
|
4696
|
-
if (
|
|
4697
|
-
return
|
|
4695
|
+
for (let R = 0; R < I; R++)
|
|
4696
|
+
if (A = (A + v + I) % I, !p[A]?.option?.isDisabled)
|
|
4697
|
+
return A;
|
|
4698
4698
|
return O;
|
|
4699
|
-
}, x = (O, v,
|
|
4699
|
+
}, x = (O, v, A) => {
|
|
4700
4700
|
if (O.stopPropagation(), v)
|
|
4701
4701
|
switch (O.key) {
|
|
4702
4702
|
case "Escape":
|
|
4703
|
-
O.preventDefault(),
|
|
4703
|
+
O.preventDefault(), A();
|
|
4704
4704
|
break;
|
|
4705
4705
|
case "ArrowDown":
|
|
4706
4706
|
case "Tab":
|
|
@@ -4716,8 +4716,8 @@ const Zl = (e) => {
|
|
|
4716
4716
|
case "Enter":
|
|
4717
4717
|
case " ": {
|
|
4718
4718
|
O.preventDefault();
|
|
4719
|
-
const I = p[c].option,
|
|
4720
|
-
!I.isDisabled &&
|
|
4719
|
+
const I = p[c].option, R = _.current[c].current;
|
|
4720
|
+
!I.isDisabled && R && R.click();
|
|
4721
4721
|
break;
|
|
4722
4722
|
}
|
|
4723
4723
|
}
|
|
@@ -4785,8 +4785,8 @@ const Zl = (e) => {
|
|
|
4785
4785
|
width: o,
|
|
4786
4786
|
isSearchable: i,
|
|
4787
4787
|
onOpen: u
|
|
4788
|
-
}), v = (I) => () => T(I),
|
|
4789
|
-
n(I,
|
|
4788
|
+
}), v = (I) => () => T(I), A = (I, R) => {
|
|
4789
|
+
n(I, R), I.doNotCloseMenuOnClick || S();
|
|
4790
4790
|
};
|
|
4791
4791
|
return /* @__PURE__ */ t.jsx(
|
|
4792
4792
|
Uc,
|
|
@@ -4822,7 +4822,7 @@ const Zl = (e) => {
|
|
|
4822
4822
|
ref: O,
|
|
4823
4823
|
role: "menu",
|
|
4824
4824
|
className: "action-menu m-0 p-0 flex-grow-1 dc__overflow-auto dc__overscroll-none",
|
|
4825
|
-
children: _.length > 0 ? _.map((I,
|
|
4825
|
+
children: _.length > 0 ? _.map((I, R) => /* @__PURE__ */ t.jsxs(
|
|
4826
4826
|
"li",
|
|
4827
4827
|
{
|
|
4828
4828
|
role: "menuitem",
|
|
@@ -4831,7 +4831,7 @@ const Zl = (e) => {
|
|
|
4831
4831
|
I.groupLabel && /* @__PURE__ */ t.jsx("h4", { className: "bg__menu--secondary dc__truncate m-0 fs-12 lh-18 cn-9 fw-6 py-4 px-12 dc__position-sticky dc__top-0 dc__zi-1", children: I.groupLabel }),
|
|
4832
4832
|
I.items.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "action-menu__group-list p-0", children: I.items.map((y, D) => {
|
|
4833
4833
|
const k = h.findIndex(
|
|
4834
|
-
(P) => P.sectionIndex ===
|
|
4834
|
+
(P) => P.sectionIndex === R && P.itemIndex === D
|
|
4835
4835
|
);
|
|
4836
4836
|
return /* @__PURE__ */ t.jsx(
|
|
4837
4837
|
xR,
|
|
@@ -4840,7 +4840,7 @@ const Zl = (e) => {
|
|
|
4840
4840
|
itemRef: b.current[k],
|
|
4841
4841
|
isFocused: k === f,
|
|
4842
4842
|
onMouseEnter: v(k),
|
|
4843
|
-
onClick:
|
|
4843
|
+
onClick: A,
|
|
4844
4844
|
disableDescriptionEllipsis: c
|
|
4845
4845
|
},
|
|
4846
4846
|
`${y.label}-${y.id}`
|
|
@@ -4848,7 +4848,7 @@ const Zl = (e) => {
|
|
|
4848
4848
|
}) }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-18 fw-4 cn-7 py-6 px-12", children: "No options in this group" })
|
|
4849
4849
|
]
|
|
4850
4850
|
},
|
|
4851
|
-
I.groupLabel || `no-group-label-${
|
|
4851
|
+
I.groupLabel || `no-group-label-${R}`
|
|
4852
4852
|
)) : /* @__PURE__ */ t.jsx("li", { role: "menuitem", className: "py-8 px-12", children: /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-20 fw-4 cn-7", children: "No options" }) })
|
|
4853
4853
|
}
|
|
4854
4854
|
),
|
|
@@ -4960,8 +4960,8 @@ const Zl = (e) => {
|
|
|
4960
4960
|
const { selectionStart: N, selectionEnd: b } = m.current.inputRef, T = `${d.slice(0, N)}
|
|
4961
4961
|
${d.slice(b)}`;
|
|
4962
4962
|
u(T);
|
|
4963
|
-
const S = m.current.inputRef, O = S.selectionStart,
|
|
4964
|
-
`), I = parseInt(getComputedStyle(S).lineHeight, 10), y =
|
|
4963
|
+
const S = m.current.inputRef, O = S.selectionStart, A = S.value.substring(0, O).split(`
|
|
4964
|
+
`), I = parseInt(getComputedStyle(S).lineHeight, 10), y = A.length * I - S.scrollTop;
|
|
4965
4965
|
y < 0 ? S.scrollTop += y : y > S.offsetHeight - I && (S.scrollTop += y - S.offsetHeight + I), setTimeout(() => {
|
|
4966
4966
|
m.current.inputRef.selectionStart = N + 1, m.current.inputRef.selectionEnd = N + 1;
|
|
4967
4967
|
}), x();
|
|
@@ -5223,9 +5223,9 @@ ${d.slice(b)}`;
|
|
|
5223
5223
|
onImageLoadError: S,
|
|
5224
5224
|
heading: O,
|
|
5225
5225
|
headingInfo: v,
|
|
5226
|
-
infoTextHeading:
|
|
5226
|
+
infoTextHeading: A,
|
|
5227
5227
|
hideHeading: I,
|
|
5228
|
-
infoText:
|
|
5228
|
+
infoText: R,
|
|
5229
5229
|
showCloseButton: y,
|
|
5230
5230
|
additionalContent: D,
|
|
5231
5231
|
documentationLink: k,
|
|
@@ -5270,18 +5270,18 @@ ${d.slice(b)}`;
|
|
|
5270
5270
|
]
|
|
5271
5271
|
}
|
|
5272
5272
|
),
|
|
5273
|
-
|
|
5273
|
+
A && /* @__PURE__ */ t.jsx(
|
|
5274
5274
|
"div",
|
|
5275
5275
|
{
|
|
5276
5276
|
className: `dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
|
5277
|
-
children:
|
|
5277
|
+
children: A
|
|
5278
5278
|
}
|
|
5279
5279
|
),
|
|
5280
|
-
|
|
5280
|
+
R && /* @__PURE__ */ t.jsx(
|
|
5281
5281
|
"div",
|
|
5282
5282
|
{
|
|
5283
5283
|
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${r ? "p-12" : `pl-20 pr-20 pt-4 ${D && k ? "pb-12" : "pb-20"}`}`,
|
|
5284
|
-
children:
|
|
5284
|
+
children: R
|
|
5285
5285
|
}
|
|
5286
5286
|
),
|
|
5287
5287
|
D,
|
|
@@ -5430,7 +5430,7 @@ ${d.slice(b)}`;
|
|
|
5430
5430
|
try {
|
|
5431
5431
|
const a = { name: e }, {
|
|
5432
5432
|
result: { configurationUnits: r, defaultConfigurations: o, profile: i }
|
|
5433
|
-
} = await
|
|
5433
|
+
} = await _e(Ue(Vc(), a));
|
|
5434
5434
|
return YR({
|
|
5435
5435
|
configurationUnits: r,
|
|
5436
5436
|
defaultConfigurations: o,
|
|
@@ -5875,42 +5875,42 @@ const F2 = (e, s = !1) => {
|
|
|
5875
5875
|
case F.CPU_REQUEST:
|
|
5876
5876
|
case F.MEMORY_LIMIT:
|
|
5877
5877
|
case F.MEMORY_REQUEST: {
|
|
5878
|
-
const { value: v, unit:
|
|
5878
|
+
const { value: v, unit: A } = C;
|
|
5879
5879
|
S[f] = {
|
|
5880
5880
|
...S[f],
|
|
5881
5881
|
key: f,
|
|
5882
5882
|
value: v,
|
|
5883
|
-
unit:
|
|
5883
|
+
unit: A
|
|
5884
5884
|
};
|
|
5885
|
-
const { keyToPersist: I, keyToPersistConfigType:
|
|
5885
|
+
const { keyToPersist: I, keyToPersistConfigType: R } = dA[f], { request: y, limit: D } = $R({
|
|
5886
5886
|
request: {
|
|
5887
5887
|
value: v,
|
|
5888
|
-
unit:
|
|
5888
|
+
unit: A
|
|
5889
5889
|
},
|
|
5890
5890
|
limit: {
|
|
5891
5891
|
value: v,
|
|
5892
|
-
unit:
|
|
5892
|
+
unit: A
|
|
5893
5893
|
},
|
|
5894
5894
|
[I]: {
|
|
5895
|
-
value: S[
|
|
5896
|
-
unit: S[
|
|
5895
|
+
value: S[R].value,
|
|
5896
|
+
unit: S[R].unit
|
|
5897
5897
|
},
|
|
5898
5898
|
unitsMap: i.configurationUnits[f]
|
|
5899
5899
|
});
|
|
5900
5900
|
if (I === "limit") {
|
|
5901
|
-
b[
|
|
5901
|
+
b[R] = D.message, b[f] = y.message;
|
|
5902
5902
|
break;
|
|
5903
5903
|
}
|
|
5904
|
-
b[f] = D.message, b[
|
|
5904
|
+
b[f] = D.message, b[R] = y.message;
|
|
5905
5905
|
break;
|
|
5906
5906
|
}
|
|
5907
5907
|
case F.BUILD_TIMEOUT: {
|
|
5908
|
-
const { value: v, unit:
|
|
5908
|
+
const { value: v, unit: A } = C;
|
|
5909
5909
|
S[f] = {
|
|
5910
5910
|
...S[f],
|
|
5911
5911
|
key: f,
|
|
5912
5912
|
value: v,
|
|
5913
|
-
unit:
|
|
5913
|
+
unit: A
|
|
5914
5914
|
}, b[f] = DR(v).message;
|
|
5915
5915
|
break;
|
|
5916
5916
|
}
|
|
@@ -5947,8 +5947,8 @@ const F2 = (e, s = !1) => {
|
|
|
5947
5947
|
case "activate_cs":
|
|
5948
5948
|
case "de_activate_cm":
|
|
5949
5949
|
case "de_activate_cs": {
|
|
5950
|
-
const { id: v, componentType:
|
|
5951
|
-
if (y === -1 || !
|
|
5950
|
+
const { id: v, componentType: A } = C, I = ot[A], R = S[I].value, y = R.findIndex((k) => k.id === v);
|
|
5951
|
+
if (y === -1 || !R[y].canOverride) {
|
|
5952
5952
|
const k = "Unable to customize this CM/CS";
|
|
5953
5953
|
$e.showToast({
|
|
5954
5954
|
variant: ve.error,
|
|
@@ -5957,12 +5957,12 @@ const F2 = (e, s = !1) => {
|
|
|
5957
5957
|
return;
|
|
5958
5958
|
}
|
|
5959
5959
|
const D = f === "activate_cm" || f === "activate_cs";
|
|
5960
|
-
if (
|
|
5961
|
-
const P = (O[I]?.value || []).find((U) => U.id === v) ||
|
|
5962
|
-
|
|
5960
|
+
if (R[y].isOverridden = D, D) {
|
|
5961
|
+
const P = (O[I]?.value || []).find((U) => U.id === v) || R[y];
|
|
5962
|
+
R[y].useFormProps = P?.useFormProps, R[y].initialResponse = P?.initialResponse;
|
|
5963
5963
|
} else
|
|
5964
|
-
|
|
5965
|
-
b[ot[
|
|
5964
|
+
R[y].useFormProps = R[y].defaultValue, R[y].initialResponse = R[y].defaultValueInitialResponse;
|
|
5965
|
+
b[ot[A]] && (delete b[ot[A]][v], Object.keys(b[ot[A]]).length === 0 && (b[ot[A]] = null));
|
|
5966
5966
|
break;
|
|
5967
5967
|
}
|
|
5968
5968
|
case It.ADD_TARGET_PLATFORM: {
|
|
@@ -5973,10 +5973,10 @@ const F2 = (e, s = !1) => {
|
|
|
5973
5973
|
).message : "", N.configurations[T] = i.fallbackPlatformConfigurationMap[T] || // Here need to update target platform name for each configuration
|
|
5974
5974
|
Object.entries(
|
|
5975
5975
|
i.fallbackPlatformConfigurationMap[Cs]
|
|
5976
|
-
).reduce((
|
|
5977
|
-
...
|
|
5976
|
+
).reduce((A, [I, R]) => (A[I] = {
|
|
5977
|
+
...R,
|
|
5978
5978
|
targetPlatform: T
|
|
5979
|
-
},
|
|
5979
|
+
}, A), {}), v(N);
|
|
5980
5980
|
break;
|
|
5981
5981
|
}
|
|
5982
5982
|
case It.REMOVE_TARGET_PLATFORM: {
|
|
@@ -5993,10 +5993,10 @@ const F2 = (e, s = !1) => {
|
|
|
5993
5993
|
break;
|
|
5994
5994
|
}
|
|
5995
5995
|
case It.RENAME_TARGET_PLATFORM: {
|
|
5996
|
-
const { originalPlatformName: v, newPlatformName:
|
|
5997
|
-
if (v ===
|
|
5996
|
+
const { originalPlatformName: v, newPlatformName: A, configSnapshot: I } = C, R = N.configurations[v];
|
|
5997
|
+
if (v === A)
|
|
5998
5998
|
return;
|
|
5999
|
-
if (!
|
|
5999
|
+
if (!R) {
|
|
6000
6000
|
$e.showToast({
|
|
6001
6001
|
variant: ve.error,
|
|
6002
6002
|
description: "Original platform does not exist"
|
|
@@ -6004,20 +6004,20 @@ const F2 = (e, s = !1) => {
|
|
|
6004
6004
|
return;
|
|
6005
6005
|
}
|
|
6006
6006
|
b[Ia.TARGET_PLATFORM] = ad(
|
|
6007
|
-
|
|
6007
|
+
A,
|
|
6008
6008
|
E(N.configurations)
|
|
6009
6009
|
).message;
|
|
6010
|
-
const y = i.fallbackPlatformConfigurationMap[
|
|
6010
|
+
const y = i.fallbackPlatformConfigurationMap[A] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
|
|
6011
6011
|
i.fallbackPlatformConfigurationMap[Cs];
|
|
6012
|
-
if (N.configurations[
|
|
6013
|
-
|
|
6012
|
+
if (N.configurations[A] = Object.entries(
|
|
6013
|
+
R
|
|
6014
6014
|
).reduce(
|
|
6015
6015
|
(D, [k, P]) => {
|
|
6016
6016
|
const U = y[k]?.defaultValue, L = P?.active ? {} : U;
|
|
6017
6017
|
return D[k] = {
|
|
6018
6018
|
...P,
|
|
6019
6019
|
...L,
|
|
6020
|
-
targetPlatform:
|
|
6020
|
+
targetPlatform: A,
|
|
6021
6021
|
defaultValue: U
|
|
6022
6022
|
}, D;
|
|
6023
6023
|
},
|
|
@@ -6031,20 +6031,20 @@ const F2 = (e, s = !1) => {
|
|
|
6031
6031
|
}
|
|
6032
6032
|
case It.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
|
|
6033
6033
|
const { configSnapshot: v } = C;
|
|
6034
|
-
N.configurations = v, Object.keys(b).forEach((
|
|
6035
|
-
Kl[
|
|
6034
|
+
N.configurations = v, Object.keys(b).forEach((A) => {
|
|
6035
|
+
Kl[A] && (b[A] = null);
|
|
6036
6036
|
});
|
|
6037
6037
|
break;
|
|
6038
6038
|
}
|
|
6039
6039
|
case It.ADD_NODE_SELECTOR_ITEM: {
|
|
6040
6040
|
if (S[F.NODE_SELECTOR].key !== F.NODE_SELECTOR)
|
|
6041
6041
|
break;
|
|
6042
|
-
const
|
|
6042
|
+
const A = {
|
|
6043
6043
|
id: vt(),
|
|
6044
6044
|
key: "",
|
|
6045
6045
|
value: ""
|
|
6046
6046
|
};
|
|
6047
|
-
S[F.NODE_SELECTOR].value.unshift(
|
|
6047
|
+
S[F.NODE_SELECTOR].value.unshift(A);
|
|
6048
6048
|
break;
|
|
6049
6049
|
}
|
|
6050
6050
|
case It.DELETE_NODE_SELECTOR_ITEM: {
|
|
@@ -6052,13 +6052,13 @@ const F2 = (e, s = !1) => {
|
|
|
6052
6052
|
break;
|
|
6053
6053
|
const { id: v } = C;
|
|
6054
6054
|
S[F.NODE_SELECTOR].value = S[F.NODE_SELECTOR].value.filter((I) => I.id !== v), delete b[F.NODE_SELECTOR]?.[v], Object.keys(b[F.NODE_SELECTOR] || {}).length === 0 && (b[F.NODE_SELECTOR] = null);
|
|
6055
|
-
const
|
|
6055
|
+
const A = S[F.NODE_SELECTOR].value.map(
|
|
6056
6056
|
(I) => I.key
|
|
6057
6057
|
);
|
|
6058
6058
|
S[F.NODE_SELECTOR].value.forEach((I) => {
|
|
6059
6059
|
rd({
|
|
6060
6060
|
selector: I,
|
|
6061
|
-
existingKeys:
|
|
6061
|
+
existingKeys: A,
|
|
6062
6062
|
profileInputErrors: b
|
|
6063
6063
|
});
|
|
6064
6064
|
});
|
|
@@ -6067,12 +6067,12 @@ const F2 = (e, s = !1) => {
|
|
|
6067
6067
|
case It.EDIT_NODE_SELECTOR_ITEM: {
|
|
6068
6068
|
if (S[F.NODE_SELECTOR].key !== F.NODE_SELECTOR)
|
|
6069
6069
|
break;
|
|
6070
|
-
const { id: v, key:
|
|
6070
|
+
const { id: v, key: A, value: I } = C, R = S[F.NODE_SELECTOR].value.find(
|
|
6071
6071
|
(D) => D.id === v
|
|
6072
6072
|
);
|
|
6073
|
-
|
|
6073
|
+
R ? (R.key = A, R.value = I) : S[F.NODE_SELECTOR].value.unshift({
|
|
6074
6074
|
id: v,
|
|
6075
|
-
key:
|
|
6075
|
+
key: A,
|
|
6076
6076
|
value: I
|
|
6077
6077
|
});
|
|
6078
6078
|
const y = S[F.NODE_SELECTOR].value.map(
|
|
@@ -6090,37 +6090,37 @@ const F2 = (e, s = !1) => {
|
|
|
6090
6090
|
case It.ADD_TOLERANCE_ITEM: {
|
|
6091
6091
|
if (S[F.TOLERANCE].key !== F.TOLERANCE)
|
|
6092
6092
|
break;
|
|
6093
|
-
const
|
|
6093
|
+
const A = {
|
|
6094
6094
|
id: vt(),
|
|
6095
6095
|
key: "",
|
|
6096
6096
|
effect: uA,
|
|
6097
6097
|
operator: mA,
|
|
6098
6098
|
value: ""
|
|
6099
6099
|
};
|
|
6100
|
-
S[F.TOLERANCE].value.unshift(
|
|
6100
|
+
S[F.TOLERANCE].value.unshift(A);
|
|
6101
6101
|
break;
|
|
6102
6102
|
}
|
|
6103
6103
|
case It.DELETE_TOLERANCE_ITEM: {
|
|
6104
6104
|
if (S[F.TOLERANCE].key !== F.TOLERANCE)
|
|
6105
6105
|
break;
|
|
6106
6106
|
const { id: v } = C;
|
|
6107
|
-
S[F.TOLERANCE].value = S[F.TOLERANCE].value.filter((
|
|
6107
|
+
S[F.TOLERANCE].value = S[F.TOLERANCE].value.filter((A) => A.id !== v), delete b[F.TOLERANCE]?.[v], Object.keys(b[F.TOLERANCE] || {}).length === 0 && (b[F.TOLERANCE] = null);
|
|
6108
6108
|
break;
|
|
6109
6109
|
}
|
|
6110
6110
|
case It.EDIT_TOLERANCE_ITEM: {
|
|
6111
6111
|
if (S[F.TOLERANCE].key !== F.TOLERANCE)
|
|
6112
6112
|
break;
|
|
6113
|
-
const { id: v, key:
|
|
6113
|
+
const { id: v, key: A, effect: I, operator: R, value: y } = C, D = S[F.TOLERANCE].value.find(
|
|
6114
6114
|
(G) => G.id === v
|
|
6115
6115
|
);
|
|
6116
|
-
D ? (D.key =
|
|
6116
|
+
D ? (D.key = A, D.effect = I, D.operator = R, D.value = y, R === Ys.EXISTS && delete D.value) : S[F.TOLERANCE].value.unshift({
|
|
6117
6117
|
id: v,
|
|
6118
|
-
key:
|
|
6118
|
+
key: A,
|
|
6119
6119
|
effect: I,
|
|
6120
|
-
operator:
|
|
6120
|
+
operator: R,
|
|
6121
6121
|
value: y
|
|
6122
6122
|
});
|
|
6123
|
-
const k = Gc(
|
|
6123
|
+
const k = Gc(A).messages, P = R !== Ys.EXISTS ? Kp(y).messages : [], L = !(R === Ys.EXISTS ? !A : !A && !y) && (k.length > 0 || P.length > 0);
|
|
6124
6124
|
b[F.TOLERANCE]?.[v] || (b[F.TOLERANCE] || (b[F.TOLERANCE] = {}), b[F.TOLERANCE][v] = {}), b[F.TOLERANCE][v] = {
|
|
6125
6125
|
...k.length > 0 && { [Bi.KEY]: k },
|
|
6126
6126
|
...P.length > 0 && { [Bi.VALUE]: P }
|
|
@@ -6128,10 +6128,10 @@ const F2 = (e, s = !1) => {
|
|
|
6128
6128
|
break;
|
|
6129
6129
|
}
|
|
6130
6130
|
case It.ADD_CM_CS_ITEM: {
|
|
6131
|
-
const { id: v, infraConfigType:
|
|
6131
|
+
const { id: v, infraConfigType: A } = C, R = {
|
|
6132
6132
|
useFormProps: dl({
|
|
6133
6133
|
configMapSecretData: null,
|
|
6134
|
-
componentType: Lp[
|
|
6134
|
+
componentType: Lp[A],
|
|
6135
6135
|
cmSecretStateLabel: Io.BASE,
|
|
6136
6136
|
isJob: !0,
|
|
6137
6137
|
fallbackMergeStrategy: null
|
|
@@ -6143,11 +6143,11 @@ const F2 = (e, s = !1) => {
|
|
|
6143
6143
|
defaultValue: null,
|
|
6144
6144
|
defaultValueInitialResponse: null
|
|
6145
6145
|
};
|
|
6146
|
-
S[
|
|
6146
|
+
S[A].value.push(R);
|
|
6147
6147
|
break;
|
|
6148
6148
|
}
|
|
6149
6149
|
case It.SYNC_CM_CS_ITEM: {
|
|
6150
|
-
const { id: v, value:
|
|
6150
|
+
const { id: v, value: A, hasError: I, componentType: R } = C, y = S[ot[R]].value.findIndex((k) => k.id === v);
|
|
6151
6151
|
if (y === -1) {
|
|
6152
6152
|
$e.showToast({
|
|
6153
6153
|
variant: ve.error,
|
|
@@ -6155,14 +6155,14 @@ const F2 = (e, s = !1) => {
|
|
|
6155
6155
|
}), Dn(new Error("ConfigMap does not exist"));
|
|
6156
6156
|
return;
|
|
6157
6157
|
}
|
|
6158
|
-
S[ot[
|
|
6159
|
-
b[ot[
|
|
6160
|
-
).length === 0 && (b[ot[
|
|
6158
|
+
S[ot[R]].value[y].useFormProps = A, b[ot[R]] || (b[ot[R]] = {}), I ? b[ot[R]][v] = !0 : b[ot[R]][v] && delete b[ot[R]][v], Object.keys(
|
|
6159
|
+
b[ot[R]]
|
|
6160
|
+
).length === 0 && (b[ot[R]] = null);
|
|
6161
6161
|
break;
|
|
6162
6162
|
}
|
|
6163
6163
|
case It.DELETE_CM_CS_ITEM: {
|
|
6164
|
-
const { id: v, componentType:
|
|
6165
|
-
S[ot[
|
|
6164
|
+
const { id: v, componentType: A } = C, I = S[ot[A]].value.filter((R) => R.id !== v);
|
|
6165
|
+
S[ot[A]].value = I, b[ot[A]] && (delete b[ot[A]][v], Object.keys(b[ot[A]]).length === 0 && (b[ot[A]] = null));
|
|
6166
6166
|
break;
|
|
6167
6167
|
}
|
|
6168
6168
|
}
|
|
@@ -6933,7 +6933,7 @@ const o3 = (e, s, n, a) => ({
|
|
|
6933
6933
|
var aI = /* @__PURE__ */ ((e) => (e.NAME = "name", e.NAMESPACE = "namespace", e.KIND = "kind", e.API_VERSION = "apiVersion", e.CONTAINER_NAME = "containerName", e.CPU_REQUEST = "cpuRequest", e.CPU_LIMIT = "cpuLimit", e.MEMORY_REQUEST = "memoryRequest", e.MEMORY_LIMIT = "memoryLimit", e))(aI || {});
|
|
6934
6934
|
const l3 = (e, s) => ft(Y.K8S_RESOURCE_LIST, e, {
|
|
6935
6935
|
signal: s
|
|
6936
|
-
}), d3 = (e, s) => ft(Y.K8S_RESOURCE_CREATE, e, { abortControllerRef: s }), u3 = (e, s) => ft(Y.DELETE_RESOURCE, e, { abortControllerRef: s }), m3 = (e, s) => Ko(Y.NODE_CAPACITY, e, { abortControllerRef: s }), p3 = (e, s) => xl(`${Y.NODE_CAPACITY}/cordon`, e, { abortControllerRef: s }), _3 = (e, s) => xl(`${Y.NODE_CAPACITY}/drain`, e, { abortControllerRef: s }), f3 = (e) =>
|
|
6936
|
+
}), d3 = (e, s) => ft(Y.K8S_RESOURCE_CREATE, e, { abortControllerRef: s }), u3 = (e, s) => ft(Y.DELETE_RESOURCE, e, { abortControllerRef: s }), m3 = (e, s) => Ko(Y.NODE_CAPACITY, e, { abortControllerRef: s }), p3 = (e, s) => xl(`${Y.NODE_CAPACITY}/cordon`, e, { abortControllerRef: s }), _3 = (e, s) => xl(`${Y.NODE_CAPACITY}/drain`, e, { abortControllerRef: s }), f3 = (e) => _e(Y.CLUSTER_LIST_RAW, { abortControllerRef: e });
|
|
6937
6937
|
var rI = /* @__PURE__ */ ((e) => (e.ALL_CLUSTERS = "all", e.HEALTHY = "healthy", e.UNHEALTHY = "unhealthy", e.CONNECTION_FAILED = "connectionFailed", e))(rI || {}), oI = /* @__PURE__ */ ((e) => (e.Creating = "Creating", e.Updated = "Updated", e.Updating = "Updating", e.Installed = "Installed", e.Failed = "Failed", e.Deleting = "Deleting", e.Deleted = "Deleted", e))(oI || {}), Yi = /* @__PURE__ */ ((e) => (e.HEALTHY = "healthy", e.UNHEALTHY = "unhealthy", e.CONNECTION_FAILED = "connection failed", e))(Yi || {}), iI = /* @__PURE__ */ ((e) => (e.terminal = "terminal", e.cordon = "cordon", e.uncordon = "uncordon", e.drain = "drain", e.editTaints = "edit-taints", e.editYaml = "edit-yaml", e.delete = "delete", e))(iI || {}), cI = /* @__PURE__ */ ((e) => (e.manifest = "manifest", e.events = "events", e.logs = "logs", e.terminal = "terminal", e.delete = "delete", e.vulnerability = "vulnerability", e.restart = "restart", e))(cI || {});
|
|
6938
6938
|
const lI = (e) => e.replace(Wt.ESCAPED_CHARACTERS, "\\$&"), h3 = ({ searchText: e, text: s, highlightClasses: n }) => {
|
|
6939
6939
|
if (!e)
|
|
@@ -7197,7 +7197,7 @@ const _I = (e, s = !1) => s ? btoa(e) : atob(e), Wi = (e, s = !1) => Object.keys
|
|
|
7197
7197
|
var zr = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.FROM_PREVIOUS_STEP = "FROM_PREVIOUS_STEP", e.NEW = "NEW", e))(zr || {}), AI = /* @__PURE__ */ ((e) => (e.INLINE = "INLINE", e.PLUGIN_REF = "REF_PLUGIN", e))(AI || {}), RI = /* @__PURE__ */ ((e) => (e.SHELL = "SHELL", e.DOCKERFILE = "DOCKERFILE", e.CONTAINERIMAGE = "CONTAINER_IMAGE", e))(RI || {}), II = /* @__PURE__ */ ((e) => (e.TRUE = "Yes", e.FALSE = "No", e))(II || {}), yI = /* @__PURE__ */ ((e) => (e.SKIP = "SKIP", e.TRIGGER = "TRIGGER", e.PASS = "PASS", e.FAIL = "FAIL", e))(yI || {}), OI = /* @__PURE__ */ ((e) => (e.PRE_CI = "PRE_CI", e.POST_CI = "POST_CI", e))(OI || {}), jI = /* @__PURE__ */ ((e) => (e.KB = "KB", e.MB = "MB", e))(jI || {}), Qp = /* @__PURE__ */ ((e) => (e.STRING = "STRING", e.NUMBER = "NUMBER", e.BOOL = "BOOL", e.DATE = "DATE", e.FILE = "FILE", e))(Qp || {}), wI = /* @__PURE__ */ ((e) => (e.SELF_DOCKERFILE_BUILD_TYPE = "self-dockerfile-build", e.MANAGED_DOCKERFILE_BUILD_TYPE = "managed-dockerfile-build", e.BUILDPACK_BUILD_TYPE = "buildpack-build", e))(wI || {}), LI = /* @__PURE__ */ ((e) => (e.INHERIT = "INHERIT", e.OVERRIDE = "OVERRIDE", e))(LI || {}), DI = /* @__PURE__ */ ((e) => (e.VARIABLE = "variable", e.FORMAT = "format", e.VALUE = "val", e))(DI || {}), PI = /* @__PURE__ */ ((e) => (e.VARIABLE = "variable", e.OPERATOR = "operator", e.VALUE = "val", e))(PI || {});
|
|
7198
7198
|
const MI = () => {
|
|
7199
7199
|
const e = `${Y.PROJECT_LIST_MIN}`;
|
|
7200
|
-
return
|
|
7200
|
+
return _e(e).then((s) => {
|
|
7201
7201
|
let n = [];
|
|
7202
7202
|
return s && s.result && Array.isArray(s.result) && (n = s.result), n = n.sort((a, r) => fk("name", a, r)), {
|
|
7203
7203
|
code: s.code,
|
|
@@ -7211,7 +7211,7 @@ const MI = () => {
|
|
|
7211
7211
|
BranchRegex: "SOURCE_TYPE_BRANCH_REGEX"
|
|
7212
7212
|
};
|
|
7213
7213
|
function kI(e) {
|
|
7214
|
-
return
|
|
7214
|
+
return _e(`${Y.USER_CHECK_ROLE}${e ? `?appName=${e}` : ""}`);
|
|
7215
7215
|
}
|
|
7216
7216
|
function $I(e, s, n) {
|
|
7217
7217
|
return ft(`${Y.IMAGE_TAGGING}/${s}/${n}`, e);
|
|
@@ -7423,7 +7423,7 @@ const e_ = (e) => ({
|
|
|
7423
7423
|
});
|
|
7424
7424
|
break;
|
|
7425
7425
|
}
|
|
7426
|
-
return
|
|
7426
|
+
return _e(i, { signal: a }).then(
|
|
7427
7427
|
(c) => VI(c.result, n, r.offset, r.filter)
|
|
7428
7428
|
);
|
|
7429
7429
|
};
|
|
@@ -7450,28 +7450,28 @@ function Ya(e, s) {
|
|
|
7450
7450
|
return "NA";
|
|
7451
7451
|
}
|
|
7452
7452
|
function YI() {
|
|
7453
|
-
return
|
|
7453
|
+
return _e(`${Y.DEPLOYMENT_TEMPLATE_LIST}?appId=-1&envId=-1`);
|
|
7454
7454
|
}
|
|
7455
|
-
const D3 = () =>
|
|
7455
|
+
const D3 = () => _e(`${Y.NOTIFIER}/channel/config`);
|
|
7456
7456
|
function P3(e, s) {
|
|
7457
7457
|
const n = Ue(Y.ENVIRONMENT_LIST_MIN, {
|
|
7458
7458
|
auth: !1,
|
|
7459
7459
|
...e ? { showDeploymentOptions: !0 } : {}
|
|
7460
7460
|
});
|
|
7461
|
-
return
|
|
7461
|
+
return _e(n, s);
|
|
7462
7462
|
}
|
|
7463
7463
|
function M3() {
|
|
7464
7464
|
const e = `${Y.CLUSTER}/autocomplete`;
|
|
7465
|
-
return
|
|
7465
|
+
return _e(e);
|
|
7466
7466
|
}
|
|
7467
|
-
const k3 = (e) =>
|
|
7467
|
+
const k3 = (e) => _e(`${Y.API_RESOURCE}/${Y.GVK}/${e}`);
|
|
7468
7468
|
function $3(e, s) {
|
|
7469
7469
|
const n = `${Y.NAMESPACE}/autocomplete?ids=${e}`;
|
|
7470
|
-
return
|
|
7470
|
+
return _e(n, { abortControllerRef: s });
|
|
7471
7471
|
}
|
|
7472
7472
|
function md(e) {
|
|
7473
7473
|
const s = `${Y.GIT_HOST_EVENT}/${e}`;
|
|
7474
|
-
return
|
|
7474
|
+
return _e(s);
|
|
7475
7475
|
}
|
|
7476
7476
|
const WI = (e, s) => {
|
|
7477
7477
|
if (!e) return null;
|
|
@@ -7483,7 +7483,7 @@ const WI = (e, s) => {
|
|
|
7483
7483
|
abortControllerRef: n
|
|
7484
7484
|
}) => {
|
|
7485
7485
|
try {
|
|
7486
|
-
const { result: a } = await
|
|
7486
|
+
const { result: a } = await _e(
|
|
7487
7487
|
Ue(Y.PLUGIN_GLOBAL_VARIABLES, { appId: e }),
|
|
7488
7488
|
{
|
|
7489
7489
|
abortControllerRef: n
|
|
@@ -7505,7 +7505,7 @@ const WI = (e, s) => {
|
|
|
7505
7505
|
}, F3 = async ({ envId: e, appIds: s }) => {
|
|
7506
7506
|
const n = Ue(`${Y.ENV}/${e}/${Y.APP_METADATA}`, {
|
|
7507
7507
|
appIds: s?.join()
|
|
7508
|
-
}), a = await
|
|
7508
|
+
}), a = await _e(n);
|
|
7509
7509
|
return {
|
|
7510
7510
|
appCount: a.result?.appCount ?? 0,
|
|
7511
7511
|
apps: (a.result?.apps ?? []).reduce((r, { appId: o, appName: i, appStatus: c }) => (o && r.push({
|
|
@@ -7515,13 +7515,13 @@ const WI = (e, s) => {
|
|
|
7515
7515
|
}), r), [])
|
|
7516
7516
|
};
|
|
7517
7517
|
}, KI = async () => {
|
|
7518
|
-
const { result: e } = await
|
|
7518
|
+
const { result: e } = await _e(Y.APP_LIST_MIN);
|
|
7519
7519
|
return e ? e.map((s) => ({
|
|
7520
7520
|
...s,
|
|
7521
7521
|
appList: s.appList.sort((n, a) => st(n.name, a.name))
|
|
7522
7522
|
})).sort((s, n) => st(s.projectName, n.projectName)) : [];
|
|
7523
7523
|
}, zI = async () => {
|
|
7524
|
-
const { result: e } = await
|
|
7524
|
+
const { result: e } = await _e(Y.ENVIRONMENT_LIST_MIN);
|
|
7525
7525
|
if (!e)
|
|
7526
7526
|
return [];
|
|
7527
7527
|
const s = e.map(
|
|
@@ -7548,7 +7548,7 @@ const WI = (e, s) => {
|
|
|
7548
7548
|
}), a[r.cluster].envList.push(r), a), {})
|
|
7549
7549
|
).sort((a, r) => st(a.clusterName, r.clusterName));
|
|
7550
7550
|
}, B3 = async (e, s) => {
|
|
7551
|
-
const n = Ue(Y.CLUSTER, { clusterId: e?.join() }), { result: a } = await
|
|
7551
|
+
const n = Ue(Y.CLUSTER, { clusterId: e?.join() }), { result: a } = await _e(n, { signal: s });
|
|
7552
7552
|
return (a ?? []).map(
|
|
7553
7553
|
({
|
|
7554
7554
|
id: r,
|
|
@@ -7781,10 +7781,10 @@ const WI = (e, s) => {
|
|
|
7781
7781
|
);
|
|
7782
7782
|
else {
|
|
7783
7783
|
c.current = !0;
|
|
7784
|
-
const
|
|
7785
|
-
if (
|
|
7784
|
+
const R = localStorage.getItem(n);
|
|
7785
|
+
if (R)
|
|
7786
7786
|
try {
|
|
7787
|
-
const y = Ue("", JSON.parse(
|
|
7787
|
+
const y = Ue("", JSON.parse(R)), D = new URLSearchParams(y.split("?")[1] ?? "");
|
|
7788
7788
|
return i.replace({ search: D.toString() }), D;
|
|
7789
7789
|
} catch {
|
|
7790
7790
|
localStorage.removeItem(n);
|
|
@@ -7792,21 +7792,21 @@ const WI = (e, s) => {
|
|
|
7792
7792
|
}
|
|
7793
7793
|
return I;
|
|
7794
7794
|
})(), u = (I) => s ? s(I) : {}, { pageSize: m, pageNumber: p, searchKey: _, sortBy: h, sortOrder: E, parsedParams: x } = J(() => {
|
|
7795
|
-
const I = d.get(fd),
|
|
7795
|
+
const I = d.get(fd), R = d.get(si), y = d.get(hd), D = d.get(xd), P = d.get(gd) || e || "", U = Object.values(Ae).includes(D) ? D : Ae.ASC, L = u(d);
|
|
7796
7796
|
return {
|
|
7797
7797
|
pageSize: Number(I) || r,
|
|
7798
|
-
pageNumber: Number(
|
|
7798
|
+
pageNumber: Number(R) || wn,
|
|
7799
7799
|
searchKey: y || "",
|
|
7800
7800
|
sortBy: P,
|
|
7801
7801
|
// sort order should only be applied if the key is available
|
|
7802
7802
|
sortOrder: P ? U : "",
|
|
7803
7803
|
parsedParams: L
|
|
7804
7804
|
};
|
|
7805
|
-
}, [d]), g = m * (p - 1), f = (I,
|
|
7805
|
+
}, [d]), g = m * (p - 1), f = (I, R) => {
|
|
7806
7806
|
const y = { search: I };
|
|
7807
|
-
(
|
|
7808
|
-
}, C = (I,
|
|
7809
|
-
d.set(I, String(
|
|
7807
|
+
(R.redirectionMethod ?? a) === "push" ? i.push(y) : i.replace(y);
|
|
7808
|
+
}, C = (I, R, y = {}) => {
|
|
7809
|
+
d.set(I, String(R)), f(d.toString(), y);
|
|
7810
7810
|
}, N = (I = {}) => {
|
|
7811
7811
|
if (p !== wn) {
|
|
7812
7812
|
C(si, wn, I);
|
|
@@ -7830,19 +7830,19 @@ const WI = (e, s) => {
|
|
|
7830
7830
|
sortBy: h,
|
|
7831
7831
|
sortOrder: E,
|
|
7832
7832
|
handleSorting: (I) => {
|
|
7833
|
-
let
|
|
7834
|
-
I === h && E === Ae.ASC ?
|
|
7833
|
+
let R;
|
|
7834
|
+
I === h && E === Ae.ASC ? R = Ae.DESC : R = Ae.ASC, C(gd, I), C(xd, R), N();
|
|
7835
7835
|
},
|
|
7836
7836
|
clearFilters: () => {
|
|
7837
7837
|
f("", {}), n && localStorage.removeItem(n);
|
|
7838
7838
|
},
|
|
7839
7839
|
...x,
|
|
7840
|
-
updateSearchParams: (I,
|
|
7840
|
+
updateSearchParams: (I, R = {}) => {
|
|
7841
7841
|
Object.keys(I).forEach((y) => {
|
|
7842
7842
|
np.includes(I[y]) ? d.delete(y) : Array.isArray(I[y]) ? (d.delete(y), I[y].forEach((D) => {
|
|
7843
7843
|
d.append(y, D);
|
|
7844
7844
|
})) : d.set(y, I[y]);
|
|
7845
|
-
}), _d(n, JSON.stringify(u(d))), N(
|
|
7845
|
+
}), _d(n, JSON.stringify(u(d))), N(R);
|
|
7846
7846
|
},
|
|
7847
7847
|
areFiltersApplied: !!_ || ZI(x)
|
|
7848
7848
|
};
|
|
@@ -8027,8 +8027,8 @@ const r_ = {
|
|
|
8027
8027
|
}, 100), () => {
|
|
8028
8028
|
b(!1), clearTimeout(T.current);
|
|
8029
8029
|
}), [g]);
|
|
8030
|
-
const
|
|
8031
|
-
b(!1), clearTimeout(T.current), f.onClick?.(
|
|
8030
|
+
const A = (R) => {
|
|
8031
|
+
b(!1), clearTimeout(T.current), f.onClick?.(R);
|
|
8032
8032
|
}, I = () => !u && h && p && _ ? {
|
|
8033
8033
|
alwaysShowTippyOnHover: !0,
|
|
8034
8034
|
content: _
|
|
@@ -8046,7 +8046,7 @@ const r_ = {
|
|
|
8046
8046
|
"data-testid": e,
|
|
8047
8047
|
"aria-label": _ || (d ? s : void 0),
|
|
8048
8048
|
elementRef: S,
|
|
8049
|
-
onClick:
|
|
8049
|
+
onClick: A,
|
|
8050
8050
|
children: [
|
|
8051
8051
|
p ? /* @__PURE__ */ t.jsx("span", { className: v, children: p }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
8052
8052
|
i && /* @__PURE__ */ t.jsx("span", { className: v, children: i }),
|
|
@@ -8431,11 +8431,11 @@ const r_ = {
|
|
|
8431
8431
|
const s = B(e?.initialValues || {}), [n, a] = w(s.current), [r, o] = w({}), [i, c] = w({}), [l, d] = w({}), [u, m] = w({}), p = (T = n) => e?.validations ? typeof e.validations == "function" ? e.validations(T) : e.validations : {}, _ = (T) => {
|
|
8432
8432
|
const S = p(T), O = {};
|
|
8433
8433
|
return Object.keys(S || {}).forEach((v) => {
|
|
8434
|
-
const
|
|
8434
|
+
const A = S[v], I = bn(T[v], A);
|
|
8435
8435
|
I && (O[v] = I);
|
|
8436
8436
|
}), O;
|
|
8437
8437
|
}, h = (T, S) => (O) => {
|
|
8438
|
-
O?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((
|
|
8438
|
+
O?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((A, I) => ({ ...A, [I]: !0 }), {}));
|
|
8439
8439
|
const v = _(n);
|
|
8440
8440
|
if (Object.keys(v).length) {
|
|
8441
8441
|
d(v), S?.(v, O);
|
|
@@ -8447,7 +8447,7 @@ const r_ = {
|
|
|
8447
8447
|
e?.shouldValidateOnMount && h(Ne)();
|
|
8448
8448
|
}, []);
|
|
8449
8449
|
const E = (T, S, O) => (v) => {
|
|
8450
|
-
const
|
|
8450
|
+
const A = O ? v : v.target.value, I = S ? S(A) : A;
|
|
8451
8451
|
a((y) => {
|
|
8452
8452
|
const D = { ...y, [T]: I }, k = e?.validationMode ?? "onChange";
|
|
8453
8453
|
if (k === "onChange" || k === "all" || u[T] || l[T]) {
|
|
@@ -8456,12 +8456,12 @@ const r_ = {
|
|
|
8456
8456
|
}
|
|
8457
8457
|
return D;
|
|
8458
8458
|
});
|
|
8459
|
-
const
|
|
8460
|
-
o((y) => ({ ...y, [T]: !xa(
|
|
8459
|
+
const R = s.current;
|
|
8460
|
+
o((y) => ({ ...y, [T]: !xa(R[T], I) }));
|
|
8461
8461
|
}, x = (T, S) => () => {
|
|
8462
8462
|
if (S || a({ ...n, [T]: n[T]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
|
8463
|
-
const v = p(),
|
|
8464
|
-
|
|
8463
|
+
const v = p(), A = bn(n[T], v[T]);
|
|
8464
|
+
A && !u[T] && m({ ...u, [T]: !0 }), d({ ...l, [T]: A });
|
|
8465
8465
|
}
|
|
8466
8466
|
}, g = (T) => () => {
|
|
8467
8467
|
c((S) => ({ ...S, [T]: !0 }));
|
|
@@ -8481,10 +8481,10 @@ const r_ = {
|
|
|
8481
8481
|
trigger: (T) => {
|
|
8482
8482
|
const S = p();
|
|
8483
8483
|
if (Array.isArray(T)) {
|
|
8484
|
-
const O = {}, v = T.map((
|
|
8484
|
+
const O = {}, v = T.map((A) => {
|
|
8485
8485
|
if (S) {
|
|
8486
|
-
const I = S[
|
|
8487
|
-
return O[
|
|
8486
|
+
const I = S[A], R = bn(n[A], I);
|
|
8487
|
+
return O[A] = R, R;
|
|
8488
8488
|
}
|
|
8489
8489
|
return null;
|
|
8490
8490
|
});
|
|
@@ -8498,12 +8498,12 @@ const r_ = {
|
|
|
8498
8498
|
},
|
|
8499
8499
|
setValue: (T, S, O) => {
|
|
8500
8500
|
if (a((v) => ({ ...v, [T]: S })), O?.triggerError) {
|
|
8501
|
-
const
|
|
8502
|
-
d((
|
|
8501
|
+
const A = p({ ...n, [T]: S })[T], I = bn(S, A);
|
|
8502
|
+
d((R) => ({ ...R, [T]: I }));
|
|
8503
8503
|
}
|
|
8504
8504
|
if (O?.shouldDirty) {
|
|
8505
8505
|
const v = s.current;
|
|
8506
|
-
o((
|
|
8506
|
+
o((A) => ({ ...A, [T]: !xa(v[T], S) }));
|
|
8507
8507
|
}
|
|
8508
8508
|
O?.shouldTouch && c((v) => ({ ...v, [T]: !0 }));
|
|
8509
8509
|
},
|
|
@@ -8511,16 +8511,16 @@ const r_ = {
|
|
|
8511
8511
|
const {
|
|
8512
8512
|
keepDirty: O = !1,
|
|
8513
8513
|
keepTouched: v = !1,
|
|
8514
|
-
keepErrors:
|
|
8514
|
+
keepErrors: A = !1,
|
|
8515
8515
|
triggerDirty: I = !1,
|
|
8516
|
-
triggerError:
|
|
8516
|
+
triggerError: R = !1,
|
|
8517
8517
|
keepInitialValues: y = !1,
|
|
8518
8518
|
formInitialValues: D = {}
|
|
8519
8519
|
} = S ?? {};
|
|
8520
|
-
if (a(T), Object.keys(D).length ? s.current = D : y || (s.current = T),
|
|
8520
|
+
if (a(T), Object.keys(D).length ? s.current = D : y || (s.current = T), R) {
|
|
8521
8521
|
const k = _(T);
|
|
8522
8522
|
d(k);
|
|
8523
|
-
} else
|
|
8523
|
+
} else A || d({});
|
|
8524
8524
|
if (I) {
|
|
8525
8525
|
const k = s.current, P = Object.keys(T).reduce(
|
|
8526
8526
|
(U, L) => ({
|
|
@@ -8703,7 +8703,7 @@ const vy = ({
|
|
|
8703
8703
|
}, Jr = async (e) => {
|
|
8704
8704
|
const s = {
|
|
8705
8705
|
key: c_
|
|
8706
|
-
}, { result: n } = await
|
|
8706
|
+
}, { result: n } = await _e(
|
|
8707
8707
|
Ue(`${Y.ATTRIBUTES_USER}/${Y.GET}`, s),
|
|
8708
8708
|
{ signal: e }
|
|
8709
8709
|
);
|
|
@@ -10130,8 +10130,8 @@ const nO = (e, s) => {
|
|
|
10130
10130
|
return;
|
|
10131
10131
|
x(!0), f(!1);
|
|
10132
10132
|
const S = JSON.parse(s), O = S.eventId, v = S.condition;
|
|
10133
|
-
md(O).then((
|
|
10134
|
-
const I =
|
|
10133
|
+
md(O).then((A) => {
|
|
10134
|
+
const I = A.result;
|
|
10135
10135
|
p(I.name), h(Rd(I.name, v, I.selectors)), x(!1);
|
|
10136
10136
|
}).catch(() => {
|
|
10137
10137
|
x(!1), f(!0);
|
|
@@ -10686,7 +10686,7 @@ async function kO({
|
|
|
10686
10686
|
triggerId: a,
|
|
10687
10687
|
fetchIdData: r
|
|
10688
10688
|
}) {
|
|
10689
|
-
const o = await
|
|
10689
|
+
const o = await _e(
|
|
10690
10690
|
a ? `${Y.APP}/cd-pipeline/workflow/trigger-info/${e}/${s}/${n}/${a}${jd(r)}` : `${Y.APP}/cd-pipeline/workflow/trigger-info/${e}/${s}/${n}/last${jd(r)}`
|
|
10691
10691
|
);
|
|
10692
10692
|
return {
|
|
@@ -10699,7 +10699,7 @@ async function kO({
|
|
|
10699
10699
|
}
|
|
10700
10700
|
const $O = (e) => {
|
|
10701
10701
|
const s = `${Y.IMAGE_TAGGING}/${e.pipelineId}/${e.artifactId}`;
|
|
10702
|
-
return
|
|
10702
|
+
return _e(s);
|
|
10703
10703
|
}, UO = (e, s) => {
|
|
10704
10704
|
const n = `${Y.CI_CONFIG_GET}/${e.pipelineId}/workflow/${e.workflowId}?forceAbort=${s}`;
|
|
10705
10705
|
return Ko(n);
|
|
@@ -10711,12 +10711,12 @@ const $O = (e) => {
|
|
|
10711
10711
|
};
|
|
10712
10712
|
function BO(e, s, n, a, r, o) {
|
|
10713
10713
|
let i;
|
|
10714
|
-
return r ? i = Y.HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP : i = Y.DEPLOYMENT_STATUS,
|
|
10714
|
+
return r ? i = Y.HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP : i = Y.DEPLOYMENT_STATUS, _e(
|
|
10715
10715
|
`${i}/${e}/${s}${`?showTimeline=${n}`}${a ? `&wfrId=${a}` : ""}${o ? `&installedAppVersionHistoryId=${o}` : ""}`
|
|
10716
10716
|
);
|
|
10717
10717
|
}
|
|
10718
10718
|
function GO(e) {
|
|
10719
|
-
return
|
|
10719
|
+
return _e(`${Y.MANUAL_SYNC}/${e.appId}/${e.envId}`);
|
|
10720
10720
|
}
|
|
10721
10721
|
const VO = (e) => {
|
|
10722
10722
|
const s = {};
|
|
@@ -10813,9 +10813,9 @@ const VO = (e) => {
|
|
|
10813
10813
|
offset: n.offset,
|
|
10814
10814
|
limit: n.size
|
|
10815
10815
|
}
|
|
10816
|
-
), { result: i } = await
|
|
10816
|
+
), { result: i } = await _e(o);
|
|
10817
10817
|
return { result: dO(i) };
|
|
10818
|
-
}, rY = (e) =>
|
|
10818
|
+
}, rY = (e) => _e(`${Y.MODULE_CONFIGURED}?name=${e}`), b_ = async ({
|
|
10819
10819
|
pipelineId: e,
|
|
10820
10820
|
triggerId: s,
|
|
10821
10821
|
appId: n
|
|
@@ -10836,7 +10836,7 @@ const VO = (e) => {
|
|
|
10836
10836
|
triggerId: n,
|
|
10837
10837
|
signal: a
|
|
10838
10838
|
}) => {
|
|
10839
|
-
const { result: r } = await
|
|
10839
|
+
const { result: r } = await _e(
|
|
10840
10840
|
Fs(Y.RESOURCE_CONFLICTS_LIST, {
|
|
10841
10841
|
appId: e,
|
|
10842
10842
|
pipelineId: s,
|
|
@@ -11082,9 +11082,9 @@ const zO = ({
|
|
|
11082
11082
|
), g = SO.getAppDetails(), f = B(i), C = B(d), N = f.current && c ? c() : Zi(s ?? g?.deploymentAppType), [b, T] = w(N), S = () => {
|
|
11083
11083
|
hr && clearTimeout(hr);
|
|
11084
11084
|
}, O = () => {
|
|
11085
|
-
BO(p, _, !0, h, n, a).then((
|
|
11085
|
+
BO(p, _, !0, h, n, a).then((R) => {
|
|
11086
11086
|
e !== "Aborted" && v({
|
|
11087
|
-
...
|
|
11087
|
+
...R.result,
|
|
11088
11088
|
isDeploymentWithoutApproval: C.current
|
|
11089
11089
|
});
|
|
11090
11090
|
}).catch(() => {
|
|
@@ -11100,17 +11100,17 @@ const zO = ({
|
|
|
11100
11100
|
}, [i]), M(() => {
|
|
11101
11101
|
C.current = d;
|
|
11102
11102
|
}, [d]);
|
|
11103
|
-
const v = (
|
|
11104
|
-
const y = f.current && c ? c(
|
|
11105
|
-
|
|
11106
|
-
|
|
11103
|
+
const v = (R) => {
|
|
11104
|
+
const y = f.current && c ? c(R) : Zi(
|
|
11105
|
+
R.deploymentAppType,
|
|
11106
|
+
R
|
|
11107
11107
|
);
|
|
11108
11108
|
S(), y.deploymentStatus === le.INPROGRESS ? hr = setTimeout(() => {
|
|
11109
11109
|
O();
|
|
11110
11110
|
}, 1e4) : hr = setTimeout(() => {
|
|
11111
11111
|
O();
|
|
11112
11112
|
}, 3e4), T(y);
|
|
11113
|
-
},
|
|
11113
|
+
}, A = () => {
|
|
11114
11114
|
if (n) {
|
|
11115
11115
|
Oa(
|
|
11116
11116
|
`${window.__BASE_URL__}${be.INFRASTRUCTURE_MANAGEMENT_APP}/${be.DEVTRON_CHARTS}/${be.APP_DEPLOYMNENT_HISTORY}/${p}/env/${_}/${be.DETAILS}/${be.APP_DETAILS_K8}?${vd}`
|
|
@@ -11127,7 +11127,7 @@ const zO = ({
|
|
|
11127
11127
|
imgSource: Ug,
|
|
11128
11128
|
actionButtonClass: "bcb-5 cn-0",
|
|
11129
11129
|
ActionButtonIcon: Nm,
|
|
11130
|
-
actionHandler:
|
|
11130
|
+
actionHandler: A,
|
|
11131
11131
|
subtitle: tt.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.SUBTITLE,
|
|
11132
11132
|
actionButtonText: "Check live status",
|
|
11133
11133
|
actionButtonIconRight: !0,
|
|
@@ -11605,9 +11605,9 @@ const zn = ({
|
|
|
11605
11605
|
const [r, o] = w(0), [i, c] = w(50), [l, d] = w(!1), u = B(null), m = B(null), p = B(0), _ = B(0), h = fn(s), E = () => {
|
|
11606
11606
|
if (!e?.dom || !u.current || !m.current)
|
|
11607
11607
|
return;
|
|
11608
|
-
const { clientHeight: b, scrollHeight: T, scrollTop: S } = e.dom, O = u.current.clientHeight, v = b / T * O,
|
|
11609
|
-
c(
|
|
11610
|
-
I +
|
|
11608
|
+
const { clientHeight: b, scrollHeight: T, scrollTop: S } = e.dom, O = u.current.clientHeight, v = b / T * O, A = Math.max(v, cj), I = S / T * O;
|
|
11609
|
+
c(A), o(
|
|
11610
|
+
I + A > b ? b - A : I
|
|
11611
11611
|
);
|
|
11612
11612
|
};
|
|
11613
11613
|
M(() => {
|
|
@@ -11620,8 +11620,8 @@ const zn = ({
|
|
|
11620
11620
|
}, f = (b) => {
|
|
11621
11621
|
if (!l || !e?.dom || !u.current)
|
|
11622
11622
|
return;
|
|
11623
|
-
const { scrollHeight: T, clientHeight: S } = e.dom, O = u.current.clientHeight,
|
|
11624
|
-
e.dom.scrollTo({ top: _.current +
|
|
11623
|
+
const { scrollHeight: T, clientHeight: S } = e.dom, O = u.current.clientHeight, A = (b.clientY - p.current) / O;
|
|
11624
|
+
e.dom.scrollTo({ top: _.current + A * (T - S) });
|
|
11625
11625
|
}, C = () => {
|
|
11626
11626
|
d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
|
|
11627
11627
|
};
|
|
@@ -11641,8 +11641,8 @@ const zn = ({
|
|
|
11641
11641
|
}), [e, l]);
|
|
11642
11642
|
const N = (b) => {
|
|
11643
11643
|
if (!e.dom || !u.current) return;
|
|
11644
|
-
const { clientHeight: T, scrollHeight: S } = e.dom, O = u.current.clientHeight,
|
|
11645
|
-
e.dom.scrollTo({ top:
|
|
11644
|
+
const { clientHeight: T, scrollHeight: S } = e.dom, O = u.current.clientHeight, A = (b.clientY - u.current.getBoundingClientRect().top) / O;
|
|
11645
|
+
e.dom.scrollTo({ top: A * (S - T) });
|
|
11646
11646
|
};
|
|
11647
11647
|
return /* @__PURE__ */ t.jsxs(
|
|
11648
11648
|
"div",
|
|
@@ -11903,14 +11903,14 @@ const zn = ({
|
|
|
11903
11903
|
wholeWord: z = r.wholeWord
|
|
11904
11904
|
}) => {
|
|
11905
11905
|
a();
|
|
11906
|
-
const
|
|
11906
|
+
const q = new Rl({
|
|
11907
11907
|
caseSensitive: P,
|
|
11908
11908
|
regexp: U,
|
|
11909
11909
|
replace: L,
|
|
11910
11910
|
search: G,
|
|
11911
11911
|
wholeWord: z
|
|
11912
11912
|
});
|
|
11913
|
-
|
|
11913
|
+
q.eq(r) || (o(q), e.dispatch({ effects: cm.of(q) }), c(na(q, e)));
|
|
11914
11914
|
};
|
|
11915
11915
|
M(() => {
|
|
11916
11916
|
s.eq(r) || (a(), c(na(s, e)), o(s));
|
|
@@ -11947,7 +11947,7 @@ const zn = ({
|
|
|
11947
11947
|
p({ regexp: P });
|
|
11948
11948
|
}, v = () => {
|
|
11949
11949
|
d(!l), e.dispatch({ effects: [za.of(!l)] });
|
|
11950
|
-
},
|
|
11950
|
+
}, A = (P) => {
|
|
11951
11951
|
P.preventDefault(), P.stopPropagation(), Rh(e);
|
|
11952
11952
|
}, I = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
|
|
11953
11953
|
H,
|
|
@@ -11974,7 +11974,7 @@ const zn = ({
|
|
|
11974
11974
|
placement: "bottom"
|
|
11975
11975
|
}
|
|
11976
11976
|
}
|
|
11977
|
-
) }),
|
|
11977
|
+
) }), R = () => /* @__PURE__ */ t.jsxs("div", { className: "code-editor__search__field-container", children: [
|
|
11978
11978
|
/* @__PURE__ */ t.jsx(
|
|
11979
11979
|
"input",
|
|
11980
11980
|
{
|
|
@@ -12089,7 +12089,7 @@ const zn = ({
|
|
|
12089
12089
|
variant: W.borderLess,
|
|
12090
12090
|
style: ae.neutral,
|
|
12091
12091
|
size: j.xxs,
|
|
12092
|
-
onClick:
|
|
12092
|
+
onClick: A,
|
|
12093
12093
|
showTooltip: !0,
|
|
12094
12094
|
tooltipProps: {
|
|
12095
12095
|
shortcutKeyCombo: {
|
|
@@ -12161,7 +12161,7 @@ const zn = ({
|
|
|
12161
12161
|
!m && I(),
|
|
12162
12162
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
|
12163
12163
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
|
12164
|
-
|
|
12164
|
+
R(),
|
|
12165
12165
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 w-80px fs-12 lh-18 cn-7 ${r.search && !i.count ? "cr-5" : ""}`, children: i.count ? `${i.current || "?"} of ${i.count}` : "No results" }),
|
|
12166
12166
|
y(),
|
|
12167
12167
|
D()
|
|
@@ -12232,8 +12232,8 @@ const zn = ({
|
|
|
12232
12232
|
}, Rj = Ih.fromClass(
|
|
12233
12233
|
class {
|
|
12234
12234
|
constructor(e) {
|
|
12235
|
-
|
|
12236
|
-
|
|
12235
|
+
ue(this, "timeoutId", null);
|
|
12236
|
+
ue(this, "handleKeyPress", (e) => {
|
|
12237
12237
|
if (!this.view.state.readOnly || Sj.includes(e.key) || e.metaKey || e.shiftKey || e.altKey || e.ctrlKey)
|
|
12238
12238
|
return;
|
|
12239
12239
|
const s = Aj(this.view);
|
|
@@ -12333,7 +12333,7 @@ const zn = ({
|
|
|
12333
12333
|
collapseUnchanged: C = !1,
|
|
12334
12334
|
disableMinimap: N = !1
|
|
12335
12335
|
}) => {
|
|
12336
|
-
const { value: b, lhsValue: T, diffMode: S } = Bo(), [O, v] = w(0), [
|
|
12336
|
+
const { value: b, lhsValue: T, diffMode: S } = Bo(), [O, v] = w(0), [A, I] = w(null), [R, y] = w(null), [D, k] = w(1), P = B(), U = B(), L = B(), G = B(), z = B(), q = fn(s), re = () => {
|
|
12337
12337
|
const oe = document.querySelector(".cm-gutters");
|
|
12338
12338
|
oe && v(oe.getBoundingClientRect().width);
|
|
12339
12339
|
};
|
|
@@ -12347,8 +12347,8 @@ const zn = ({
|
|
|
12347
12347
|
let oe = !1;
|
|
12348
12348
|
const ie = document.querySelector("body");
|
|
12349
12349
|
if (ie) {
|
|
12350
|
-
if (
|
|
12351
|
-
const Se =
|
|
12350
|
+
if (A) {
|
|
12351
|
+
const Se = A.a, Re = A.b;
|
|
12352
12352
|
oe = (Se.hasFocus || Re.hasFocus) && (Se.scrollDOM.scrollWidth > Se.scrollDOM.clientWidth || Re.scrollDOM.scrollWidth > Re.scrollDOM.clientWidth);
|
|
12353
12353
|
} else if (P.current?.view) {
|
|
12354
12354
|
const { scrollWidth: Se, clientWidth: Re } = P.current.view.scrollDOM;
|
|
@@ -12357,22 +12357,22 @@ const zn = ({
|
|
|
12357
12357
|
oe ? ie.classList.add("dc__overscroll-none") : ie.classList.remove("dc__overscroll-none");
|
|
12358
12358
|
}
|
|
12359
12359
|
}, [
|
|
12360
|
-
|
|
12361
|
-
|
|
12360
|
+
A?.a?.hasFocus,
|
|
12361
|
+
A?.b?.hasFocus,
|
|
12362
12362
|
P.current?.view?.hasFocus
|
|
12363
12363
|
]);
|
|
12364
|
-
const
|
|
12365
|
-
|
|
12366
|
-
left:
|
|
12364
|
+
const fe = () => {
|
|
12365
|
+
A.a.scrollDOM.scrollTo({
|
|
12366
|
+
left: A.b.scrollDOM.scrollLeft
|
|
12367
12367
|
});
|
|
12368
|
-
},
|
|
12369
|
-
|
|
12370
|
-
left:
|
|
12368
|
+
}, K = () => {
|
|
12369
|
+
A.b.scrollDOM.scrollTo({
|
|
12370
|
+
left: A.a.scrollDOM.scrollLeft
|
|
12371
12371
|
});
|
|
12372
12372
|
};
|
|
12373
|
-
M(() => (n ||
|
|
12374
|
-
|
|
12375
|
-
}), [
|
|
12373
|
+
M(() => (n || A && (A.a.scrollDOM.addEventListener("scroll", K), A.b.scrollDOM.addEventListener("scroll", fe)), () => {
|
|
12374
|
+
A && (A.b.scrollDOM.removeEventListener("scroll", fe), A.a.scrollDOM.removeEventListener("scroll", K));
|
|
12375
|
+
}), [A]);
|
|
12376
12376
|
const Z = () => {
|
|
12377
12377
|
re();
|
|
12378
12378
|
}, ge = Ea.updateListener.of((oe) => {
|
|
@@ -12388,7 +12388,7 @@ const zn = ({
|
|
|
12388
12388
|
}
|
|
12389
12389
|
N || Ld(G.current, oe.transactions, "b");
|
|
12390
12390
|
}), Ie = () => {
|
|
12391
|
-
|
|
12391
|
+
A?.destroy(), L.current?.destroy();
|
|
12392
12392
|
const oe = new Ol({
|
|
12393
12393
|
a: {
|
|
12394
12394
|
doc: T,
|
|
@@ -12404,7 +12404,7 @@ const zn = ({
|
|
|
12404
12404
|
collapseUnchanged: C ? {} : void 0
|
|
12405
12405
|
});
|
|
12406
12406
|
if (L.current = oe, I(oe), !N && oe && z.current) {
|
|
12407
|
-
|
|
12407
|
+
R?.destroy(), G.current?.destroy();
|
|
12408
12408
|
const ie = new Ol({
|
|
12409
12409
|
a: {
|
|
12410
12410
|
doc: T,
|
|
@@ -12431,21 +12431,21 @@ const zn = ({
|
|
|
12431
12431
|
}, [T, b]), M(() => {
|
|
12432
12432
|
N || setTimeout(() => {
|
|
12433
12433
|
k(
|
|
12434
|
-
|
|
12435
|
-
|
|
12434
|
+
A ? Math.min(
|
|
12435
|
+
A.dom.clientHeight / A.dom.scrollHeight,
|
|
12436
12436
|
1
|
|
12437
12437
|
) : 1
|
|
12438
12438
|
);
|
|
12439
12439
|
}, 100);
|
|
12440
|
-
}, [T, b,
|
|
12440
|
+
}, [T, b, A, N]);
|
|
12441
12441
|
const { codeEditorClassName: te, codeEditorHeight: Te, codeEditorParentClassName: se } = hj(r);
|
|
12442
12442
|
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: Te }, children: /* @__PURE__ */ t.jsx(Qe, { pageLoader: !0 }) }) : S ? /* @__PURE__ */ t.jsxs(
|
|
12443
12443
|
"div",
|
|
12444
12444
|
{
|
|
12445
12445
|
ref: m,
|
|
12446
|
-
className: `flexbox w-100 ${
|
|
12446
|
+
className: `flexbox w-100 ${q} ${se}`,
|
|
12447
12447
|
children: [
|
|
12448
|
-
!
|
|
12448
|
+
!A && /* @__PURE__ */ t.jsx("div", { className: "flex h-100 w-100", children: /* @__PURE__ */ t.jsx("p", { children: "Calculating diff for large file. Please wait..." }) }),
|
|
12449
12449
|
/* @__PURE__ */ t.jsx(
|
|
12450
12450
|
"div",
|
|
12451
12451
|
{
|
|
@@ -12457,7 +12457,7 @@ const zn = ({
|
|
|
12457
12457
|
dj,
|
|
12458
12458
|
{
|
|
12459
12459
|
theme: s,
|
|
12460
|
-
view:
|
|
12460
|
+
view: A,
|
|
12461
12461
|
diffMinimapParentRef: z,
|
|
12462
12462
|
scalingFactor: D
|
|
12463
12463
|
}
|
|
@@ -12468,7 +12468,7 @@ const zn = ({
|
|
|
12468
12468
|
"div",
|
|
12469
12469
|
{
|
|
12470
12470
|
ref: m,
|
|
12471
|
-
className: `w-100 ${
|
|
12471
|
+
className: `w-100 ${q} ${se}`,
|
|
12472
12472
|
children: [
|
|
12473
12473
|
p && /* @__PURE__ */ t.jsxs("p", { className: "m-0 flexbox cn-9 code-editor__shebang", children: [
|
|
12474
12474
|
/* @__PURE__ */ t.jsx(
|
|
@@ -12531,16 +12531,16 @@ const zn = ({
|
|
|
12531
12531
|
autoFocus: S,
|
|
12532
12532
|
onSearchPanelOpen: O = Ne,
|
|
12533
12533
|
onSearchBarAction: v = Ne,
|
|
12534
|
-
collapseUnchangedDiffView:
|
|
12534
|
+
collapseUnchangedDiffView: A = !1,
|
|
12535
12535
|
...I
|
|
12536
12536
|
}) => {
|
|
12537
|
-
const
|
|
12537
|
+
const R = (A || I.disableSearch) ?? !1, y = (A || I.readOnly) ?? !1, { appTheme: D } = hn(), k = B(), P = B({ code: "", lhsCode: "" }), U = J(() => {
|
|
12538
12538
|
const V = E ? a : s, Ee = N ? Xu(V) : V;
|
|
12539
12539
|
return Ee !== P.current.code ? ![lt.JSON, lt.YAML].includes(o) || i ? Ee : wd(Ee, o, l) : P.current.code;
|
|
12540
12540
|
}, [s, a, E, i]), L = J(() => {
|
|
12541
12541
|
const V = N ? Xu(n) : n;
|
|
12542
12542
|
return V !== P.current.lhsCode ? ![lt.JSON, lt.YAML].includes(o) || i ? V : wd(V, o, l) : P.current.lhsCode;
|
|
12543
|
-
}, [n, i]), G = e ?? D, z = G === je.dark, { codeEditorTheme:
|
|
12543
|
+
}, [n, i]), G = e ?? D, z = G === je.dark, { codeEditorTheme: q, themeExtension: re } = lj(z), [fe, K] = w(), [Z, ge] = w(!1), [xe, Ie] = w(E), te = J(
|
|
12544
12544
|
() => ({ setDiffMode: Ie, diffMode: xe, hasCodeEditorContainer: Z, lhsValue: L, value: U, readOnly: y, theme: G }),
|
|
12545
12545
|
[xe, Z, L, U, y, G]
|
|
12546
12546
|
);
|
|
@@ -12552,10 +12552,10 @@ const zn = ({
|
|
|
12552
12552
|
Ie(E);
|
|
12553
12553
|
}, [E]), M(
|
|
12554
12554
|
() => {
|
|
12555
|
-
|
|
12555
|
+
K(vt());
|
|
12556
12556
|
},
|
|
12557
12557
|
// Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
|
|
12558
|
-
[y, l,
|
|
12558
|
+
[y, l, R, D, o, r]
|
|
12559
12559
|
);
|
|
12560
12560
|
const Te = (V) => {
|
|
12561
12561
|
P.current.code = V, xe ? _?.(V) : m?.(V);
|
|
@@ -12579,13 +12579,13 @@ const zn = ({
|
|
|
12579
12579
|
re,
|
|
12580
12580
|
Lh.of([
|
|
12581
12581
|
...Uh.filter(({ key: V }) => V !== "Mod-Alt-Enter" && V !== "Mod-Enter" && V !== "Mod-f"),
|
|
12582
|
-
...
|
|
12582
|
+
...R ? [] : [{ key: "Mod-f", run: Re, scope: "editor search-panel" }],
|
|
12583
12583
|
{ key: "Mod-Enter", run: mj, scope: "editor search-panel" },
|
|
12584
12584
|
{ key: "Mod-Alt-f", run: Ye, scope: "editor search-panel" },
|
|
12585
12585
|
{ key: "Escape", run: pj, stopPropagation: !0 }
|
|
12586
12586
|
]),
|
|
12587
12587
|
Dh(),
|
|
12588
|
-
Md(o,
|
|
12588
|
+
Md(o, A),
|
|
12589
12589
|
Lj.of(Dj),
|
|
12590
12590
|
Mh(),
|
|
12591
12591
|
kh({
|
|
@@ -12599,17 +12599,17 @@ const zn = ({
|
|
|
12599
12599
|
...xe ? [] : Nj({ mode: o, schemaURI: C, validatorSchema: f }),
|
|
12600
12600
|
di
|
|
12601
12601
|
], Dt = [
|
|
12602
|
-
|
|
12602
|
+
q,
|
|
12603
12603
|
...Pe(),
|
|
12604
12604
|
di,
|
|
12605
12605
|
zo.readOnly.of(y || !r)
|
|
12606
12606
|
], at = [
|
|
12607
|
-
|
|
12607
|
+
q,
|
|
12608
12608
|
...Pe(),
|
|
12609
12609
|
di,
|
|
12610
12610
|
zo.readOnly.of(y)
|
|
12611
12611
|
], Pt = [
|
|
12612
|
-
|
|
12612
|
+
q,
|
|
12613
12613
|
jl({
|
|
12614
12614
|
...oe,
|
|
12615
12615
|
drawSelection: !1,
|
|
@@ -12627,9 +12627,9 @@ const zn = ({
|
|
|
12627
12627
|
/* @__PURE__ */ t.jsx(
|
|
12628
12628
|
wj,
|
|
12629
12629
|
{
|
|
12630
|
-
codemirrorMergeKey:
|
|
12630
|
+
codemirrorMergeKey: fe,
|
|
12631
12631
|
codeMirrorParentDivRef: k,
|
|
12632
|
-
codeEditorTheme:
|
|
12632
|
+
codeEditorTheme: q,
|
|
12633
12633
|
theme: G,
|
|
12634
12634
|
loading: x,
|
|
12635
12635
|
customLoader: g,
|
|
@@ -12646,8 +12646,8 @@ const zn = ({
|
|
|
12646
12646
|
modifiedViewExtensions: at,
|
|
12647
12647
|
extensions: ct,
|
|
12648
12648
|
diffMinimapExtensions: Pt,
|
|
12649
|
-
collapseUnchanged:
|
|
12650
|
-
disableMinimap:
|
|
12649
|
+
collapseUnchanged: A,
|
|
12650
|
+
disableMinimap: A
|
|
12651
12651
|
}
|
|
12652
12652
|
)
|
|
12653
12653
|
] });
|
|
@@ -12940,7 +12940,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
12940
12940
|
}
|
|
12941
12941
|
return null;
|
|
12942
12942
|
}, g = () => a.map(({ id: C, primaryConfig: N, secondaryConfig: b, title: T, diffState: S, singleView: O }) => {
|
|
12943
|
-
const { heading: v, list:
|
|
12943
|
+
const { heading: v, list: A } = N, { heading: I, list: R } = b;
|
|
12944
12944
|
return /* @__PURE__ */ t.jsx(
|
|
12945
12945
|
Pj,
|
|
12946
12946
|
{
|
|
@@ -12960,8 +12960,8 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
12960
12960
|
/* @__PURE__ */ t.jsx(
|
|
12961
12961
|
kt,
|
|
12962
12962
|
{
|
|
12963
|
-
originalValue:
|
|
12964
|
-
modifiedValue:
|
|
12963
|
+
originalValue: A.codeEditorValue.value,
|
|
12964
|
+
modifiedValue: R.codeEditorValue.value,
|
|
12965
12965
|
height: "100%",
|
|
12966
12966
|
mode: lt.YAML,
|
|
12967
12967
|
noParsing: !0,
|
|
@@ -12977,8 +12977,8 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
12977
12977
|
/* @__PURE__ */ t.jsx(
|
|
12978
12978
|
nw,
|
|
12979
12979
|
{
|
|
12980
|
-
baseTemplateConfiguration:
|
|
12981
|
-
currentConfiguration:
|
|
12980
|
+
baseTemplateConfiguration: R,
|
|
12981
|
+
currentConfiguration: A,
|
|
12982
12982
|
previousConfigAvailable: !0,
|
|
12983
12983
|
rootClassName: `${v && I ? "dc__no-top-radius dc__no-top-border" : ""}`
|
|
12984
12984
|
}
|
|
@@ -13585,7 +13585,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13585
13585
|
x.pipelineConfigData,
|
|
13586
13586
|
c
|
|
13587
13587
|
);
|
|
13588
|
-
const
|
|
13588
|
+
const R = {
|
|
13589
13589
|
...N,
|
|
13590
13590
|
values: qd(N.values)
|
|
13591
13591
|
}, y = {
|
|
@@ -13604,7 +13604,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13604
13604
|
heading: null,
|
|
13605
13605
|
list: N
|
|
13606
13606
|
},
|
|
13607
|
-
diffState: Lr(
|
|
13607
|
+
diffState: Lr(R, y)
|
|
13608
13608
|
};
|
|
13609
13609
|
}
|
|
13610
13610
|
const S = Kd(
|
|
@@ -13628,7 +13628,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13628
13628
|
...T ? [T] : [],
|
|
13629
13629
|
...S,
|
|
13630
13630
|
...O
|
|
13631
|
-
],
|
|
13631
|
+
], A = [
|
|
13632
13632
|
{
|
|
13633
13633
|
title: C.title,
|
|
13634
13634
|
diffState: C.diffState,
|
|
@@ -13653,10 +13653,10 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13653
13653
|
{
|
|
13654
13654
|
header: "ConfigMaps",
|
|
13655
13655
|
id: pt.ConfigMap,
|
|
13656
|
-
items: S.map(({ name:
|
|
13657
|
-
title:
|
|
13656
|
+
items: S.map(({ name: R, diffState: y, id: D }) => ({
|
|
13657
|
+
title: R,
|
|
13658
13658
|
diffState: y,
|
|
13659
|
-
href: n(pt.ConfigMap,
|
|
13659
|
+
href: n(pt.ConfigMap, R),
|
|
13660
13660
|
onClick: () => {
|
|
13661
13661
|
document.querySelector(`#${D}`)?.scrollIntoView({ block: "start" });
|
|
13662
13662
|
}
|
|
@@ -13666,10 +13666,10 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13666
13666
|
{
|
|
13667
13667
|
header: "Secrets",
|
|
13668
13668
|
id: pt.Secret,
|
|
13669
|
-
items: O.map(({ name:
|
|
13670
|
-
title:
|
|
13669
|
+
items: O.map(({ name: R, diffState: y, id: D }) => ({
|
|
13670
|
+
title: R,
|
|
13671
13671
|
diffState: y,
|
|
13672
|
-
href: n(pt.Secret,
|
|
13672
|
+
href: n(pt.Secret, R),
|
|
13673
13673
|
onClick: () => {
|
|
13674
13674
|
document.querySelector(`#${D}`)?.scrollIntoView({ block: "start" });
|
|
13675
13675
|
}
|
|
@@ -13680,7 +13680,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13680
13680
|
return {
|
|
13681
13681
|
configList: v,
|
|
13682
13682
|
collapsibleNavList: I,
|
|
13683
|
-
navList:
|
|
13683
|
+
navList: A
|
|
13684
13684
|
};
|
|
13685
13685
|
}
|
|
13686
13686
|
const l = e, d = s, u = Hd(l), m = Hd(d), p = {
|
|
@@ -13849,31 +13849,31 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13849
13849
|
isLoading: !1,
|
|
13850
13850
|
data: c,
|
|
13851
13851
|
hasMore: c.size >= On
|
|
13852
|
-
}), [v,
|
|
13852
|
+
}), [v, A] = w(n);
|
|
13853
13853
|
M(() => (C({ compareWfrId: f }), s(!0), N !== wr && T(wr), () => {
|
|
13854
13854
|
i(!1), s(!1);
|
|
13855
13855
|
}), []);
|
|
13856
|
-
const I = async (
|
|
13856
|
+
const I = async (K) => {
|
|
13857
13857
|
O({ ...S, isLoading: !0 });
|
|
13858
13858
|
try {
|
|
13859
13859
|
const { result: Z } = await WO({
|
|
13860
13860
|
appId: +x,
|
|
13861
13861
|
envId: +g,
|
|
13862
|
-
pagination: { offset:
|
|
13862
|
+
pagination: { offset: K, size: On }
|
|
13863
13863
|
}), ge = new Map((Z.cdWorkflows || []).map((Ie) => [Ie.id, Ie])), xe = new Map([...S.data, ...ge]);
|
|
13864
13864
|
O({
|
|
13865
13865
|
isLoading: !1,
|
|
13866
13866
|
data: xe,
|
|
13867
13867
|
hasMore: Z.cdWorkflows?.length === On
|
|
13868
|
-
}),
|
|
13868
|
+
}), A(D_(xe));
|
|
13869
13869
|
} catch {
|
|
13870
13870
|
O({ ...S, isLoading: !1 });
|
|
13871
13871
|
}
|
|
13872
|
-
},
|
|
13872
|
+
}, R = () => I(S.data.size), y = () => S.hasMore ? /* @__PURE__ */ t.jsx("div", { className: "px-4", children: /* @__PURE__ */ t.jsx(
|
|
13873
13873
|
H,
|
|
13874
13874
|
{
|
|
13875
13875
|
isLoading: S.isLoading,
|
|
13876
|
-
onClick:
|
|
13876
|
+
onClick: R,
|
|
13877
13877
|
dataTestId: "load-more-previous-deployments",
|
|
13878
13878
|
variant: W.borderLess,
|
|
13879
13879
|
text: "Load more",
|
|
@@ -13886,8 +13886,8 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13886
13886
|
triggerHistory: S.data,
|
|
13887
13887
|
renderRunSource: l,
|
|
13888
13888
|
resourceId: d
|
|
13889
|
-
}), P = k.find(({ value:
|
|
13890
|
-
C({ compareWfrId:
|
|
13889
|
+
}), P = k.find(({ value: K }) => K === f), U = !!k.length, L = ({ value: K }) => {
|
|
13890
|
+
C({ compareWfrId: K });
|
|
13891
13891
|
}, G = {
|
|
13892
13892
|
primaryConfig: U ? [
|
|
13893
13893
|
{
|
|
@@ -13925,7 +13925,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13925
13925
|
handleSorting: () => T(b !== Ae.DESC ? wr : ""),
|
|
13926
13926
|
sortBy: N,
|
|
13927
13927
|
sortOrder: b
|
|
13928
|
-
},
|
|
13928
|
+
}, fe = {
|
|
13929
13929
|
convertVariables: o,
|
|
13930
13930
|
onConvertVariablesClick: () => i(!o)
|
|
13931
13931
|
};
|
|
@@ -13942,7 +13942,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13942
13942
|
goBackURL: Fs(p.split("/:resourceType")[0], { ..._ }),
|
|
13943
13943
|
selectorsConfig: G,
|
|
13944
13944
|
sortingConfig: re,
|
|
13945
|
-
scopeVariablesConfig:
|
|
13945
|
+
scopeVariablesConfig: fe
|
|
13946
13946
|
}
|
|
13947
13947
|
);
|
|
13948
13948
|
}, sw = ({
|
|
@@ -13976,36 +13976,36 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
13976
13976
|
pipelineId: n,
|
|
13977
13977
|
wfrId: f
|
|
13978
13978
|
} : null
|
|
13979
|
-
], [z, ...
|
|
13979
|
+
], [z, ...q] = await Promise.allSettled([
|
|
13980
13980
|
p ? null : Dv([...G]),
|
|
13981
13981
|
...G.map(
|
|
13982
13982
|
(re) => re && Lv({ params: re, appId: null, isTemplateView: !1 })
|
|
13983
13983
|
)
|
|
13984
13984
|
]);
|
|
13985
|
-
return z.status !== "fulfilled" || !z.value || z.value.forEach((re,
|
|
13986
|
-
|
|
13987
|
-
}),
|
|
13988
|
-
}, [h, f]),
|
|
13985
|
+
return z.status !== "fulfilled" || !z.value || z.value.forEach((re, fe) => {
|
|
13986
|
+
q[fe].status !== "fulfilled" || !q[fe].value || q[fe].value.result.isAppAdmin || (q[fe].value.result.secretsData = re.secretsData);
|
|
13987
|
+
}), q;
|
|
13988
|
+
}, [h, f]), A = (G, z) => `${Fs(l, { ...d })}/${G}${z ? `/${z}` : ""}${m}`, { deploymentConfigList: I, sortedDeploymentConfigList: R } = J(() => {
|
|
13989
13989
|
if (!S && O) {
|
|
13990
13990
|
const G = x && O[1].status === "fulfilled" ? O[1].value.result : {
|
|
13991
13991
|
configMapData: null,
|
|
13992
13992
|
deploymentTemplate: null,
|
|
13993
13993
|
secretsData: null,
|
|
13994
13994
|
isAppAdmin: !1
|
|
13995
|
-
}, z = O[0].status === "fulfilled" ? O[0].value.result : null,
|
|
13995
|
+
}, z = O[0].status === "fulfilled" ? O[0].value.result : null, q = Xd({
|
|
13996
13996
|
currentList: z,
|
|
13997
13997
|
compareList: G,
|
|
13998
|
-
getNavItemHref:
|
|
13998
|
+
getNavItemHref: A,
|
|
13999
13999
|
convertVariables: b,
|
|
14000
14000
|
sortingConfig: { sortBy: C, sortOrder: N }
|
|
14001
14001
|
}), re = Xd({
|
|
14002
14002
|
currentList: z,
|
|
14003
14003
|
compareList: G,
|
|
14004
|
-
getNavItemHref:
|
|
14004
|
+
getNavItemHref: A,
|
|
14005
14005
|
convertVariables: b,
|
|
14006
14006
|
sortingConfig: { sortBy: wr, sortOrder: Ae.ASC }
|
|
14007
14007
|
});
|
|
14008
|
-
return { deploymentConfigList:
|
|
14008
|
+
return { deploymentConfigList: q, sortedDeploymentConfigList: re };
|
|
14009
14009
|
}
|
|
14010
14010
|
return { deploymentConfigList: null, sortedDeploymentConfigList: null };
|
|
14011
14011
|
}, [
|
|
@@ -14019,8 +14019,8 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14019
14019
|
() => !S && O ? Zd(O[0]) || Zd(O[1]) : null,
|
|
14020
14020
|
[S, O]
|
|
14021
14021
|
), D = J(
|
|
14022
|
-
() =>
|
|
14023
|
-
[
|
|
14022
|
+
() => R ? gI(R.configList, "groupHeader") : [],
|
|
14023
|
+
[R]
|
|
14024
14024
|
), k = O && Jd(O[1]), P = !x || k, U = S || !y && !I, L = {
|
|
14025
14025
|
code: y?.code,
|
|
14026
14026
|
error: y && !S,
|
|
@@ -14686,9 +14686,9 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14686
14686
|
}, hw = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
|
14687
14687
|
const { pipelineId: r, envId: o, appId: i } = Rt(), c = B(null), l = n === Fe.CI ? `${Yr}/${Y.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Yr}/${Y.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = fw(
|
|
14688
14688
|
e.podStatus && e.podStatus !== ii.PENDING && l
|
|
14689
|
-
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, C] = w([]), { searchKey: N, handleSearch: b } = qc(), T = h.length > 0, S = J(() => p.every((
|
|
14690
|
-
function
|
|
14691
|
-
log:
|
|
14689
|
+
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, C] = w([]), { searchKey: N, handleSearch: b } = qc(), T = h.length > 0, S = J(() => p.every((K) => K.isOpen), [p]), O = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: v, unregisterShortcut: A } = Qs(), I = d[0]?.startsWith(Ad) || !1;
|
|
14690
|
+
function R({
|
|
14691
|
+
log: K,
|
|
14692
14692
|
currentIndex: Z = -1,
|
|
14693
14693
|
targetSearchKey: ge = N,
|
|
14694
14694
|
searchMatchResults: xe = null,
|
|
@@ -14696,9 +14696,9 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14696
14696
|
}) {
|
|
14697
14697
|
let te = !1;
|
|
14698
14698
|
try {
|
|
14699
|
-
if (
|
|
14700
|
-
const se =
|
|
14701
|
-
|
|
14699
|
+
if (K = K.replace(/\[[.]*m/, (se) => `\x1B[${se}m`), ge && I) {
|
|
14700
|
+
const se = K.split(Vl), oe = K.match(Vl) || [], ie = new RegExp(`(${lI(ge)})`, "ig");
|
|
14701
|
+
K = se.reduce((Re, Ye, Pe) => {
|
|
14702
14702
|
try {
|
|
14703
14703
|
te = te || ie.test(Ye), Re.push(
|
|
14704
14704
|
Ye.replace(ie, (ct) => (Ie && xe?.push(Ie), `\x1B[0m\x1B[48;2;${xe && Z === xe.length - 1 ? "0;102;204" : "197;141;54"}m${ct}\x1B[0m${Pe > 0 ? oe[Pe - 1] : ""}`))
|
|
@@ -14710,17 +14710,17 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14710
14710
|
}, []).join("");
|
|
14711
14711
|
}
|
|
14712
14712
|
return {
|
|
14713
|
-
__html: new Bh().ansi_to_html(
|
|
14713
|
+
__html: new Bh().ansi_to_html(K),
|
|
14714
14714
|
isSearchKeyPresent: te
|
|
14715
14715
|
};
|
|
14716
14716
|
} catch {
|
|
14717
|
-
return { __html:
|
|
14717
|
+
return { __html: K, isSearchKeyPresent: te };
|
|
14718
14718
|
}
|
|
14719
14719
|
}
|
|
14720
|
-
const y = (
|
|
14720
|
+
const y = (K, Z, ge, xe) => {
|
|
14721
14721
|
const Ie = p.length === 0, te = Z ?? !0;
|
|
14722
|
-
return xe ? ge || te : Ie ?
|
|
14723
|
-
}, D = e.podStatus === ii.PENDING || !!(u && u.readyState <= 1), k = (
|
|
14722
|
+
return xe ? ge || te : Ie ? K !== Ln.SUCCESS || ge : te;
|
|
14723
|
+
}, D = e.podStatus === ii.PENDING || !!(u && u.readyState <= 1), k = (K, Z) => {
|
|
14724
14724
|
const ge = p.reduce(
|
|
14725
14725
|
(Te, se) => (Te[se.stage] || (Te[se.stage] = {}), Te[se.stage][se.startTime] = se, Te),
|
|
14726
14726
|
{}
|
|
@@ -14764,9 +14764,9 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14764
14764
|
const ie = Te[Te.length - 1], Se = p_({
|
|
14765
14765
|
stageIndex: Te.length - 1,
|
|
14766
14766
|
lineNumberInsideStage: ie.logs.length
|
|
14767
|
-
}), { __html: Re, isSearchKeyPresent: Ye } =
|
|
14767
|
+
}), { __html: Re, isSearchKeyPresent: Ye } = R({
|
|
14768
14768
|
log: se,
|
|
14769
|
-
currentIndex:
|
|
14769
|
+
currentIndex: K,
|
|
14770
14770
|
searchMatchResults: Ie,
|
|
14771
14771
|
targetSearchKey: Z,
|
|
14772
14772
|
searchIndex: Se
|
|
@@ -14786,42 +14786,42 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14786
14786
|
if (!d?.length)
|
|
14787
14787
|
return;
|
|
14788
14788
|
if (!I) {
|
|
14789
|
-
const Z = d.map((ge) =>
|
|
14789
|
+
const Z = d.map((ge) => R({ log: ge }).__html);
|
|
14790
14790
|
C(Z);
|
|
14791
14791
|
return;
|
|
14792
14792
|
}
|
|
14793
|
-
const
|
|
14794
|
-
_(
|
|
14793
|
+
const K = k(x);
|
|
14794
|
+
_(K);
|
|
14795
14795
|
}, [d, D]);
|
|
14796
14796
|
const P = He(() => {
|
|
14797
14797
|
_(
|
|
14798
|
-
(
|
|
14798
|
+
(K) => K.map((Z) => ({
|
|
14799
14799
|
...Z,
|
|
14800
14800
|
isOpen: !S
|
|
14801
14801
|
}))
|
|
14802
14802
|
);
|
|
14803
14803
|
}, [S]);
|
|
14804
14804
|
M(() => (v({ callback: P, keys: ["E"] }), () => {
|
|
14805
|
-
|
|
14805
|
+
A(["E"]);
|
|
14806
14806
|
}), [P]);
|
|
14807
|
-
const U = (
|
|
14808
|
-
if (h.length > 0 ||
|
|
14807
|
+
const U = (K, Z = N) => {
|
|
14808
|
+
if (h.length > 0 || K === "reset") {
|
|
14809
14809
|
let ge = 0;
|
|
14810
|
-
|
|
14810
|
+
K === "next" ? ge = (x + 1) % h.length : K === "prev" && (ge = x > 0 ? x - 1 : h.length - 1), g(ge), _(k(ge, Z));
|
|
14811
14811
|
}
|
|
14812
14812
|
}, L = () => {
|
|
14813
14813
|
U("next");
|
|
14814
14814
|
}, G = () => {
|
|
14815
14815
|
U("prev");
|
|
14816
|
-
}, z = (
|
|
14817
|
-
b(
|
|
14818
|
-
},
|
|
14816
|
+
}, z = (K) => {
|
|
14817
|
+
b(K), N === K ? L() : U("reset", K);
|
|
14818
|
+
}, q = (K) => {
|
|
14819
14819
|
const Z = structuredClone(p);
|
|
14820
|
-
Z[
|
|
14821
|
-
}, re = (
|
|
14820
|
+
Z[K].isOpen = !1, _(Z);
|
|
14821
|
+
}, re = (K) => {
|
|
14822
14822
|
const Z = structuredClone(p);
|
|
14823
|
-
Z[
|
|
14824
|
-
},
|
|
14823
|
+
Z[K].isOpen = !0, _(Z);
|
|
14824
|
+
}, fe = () => I ? /* @__PURE__ */ t.jsxs(
|
|
14825
14825
|
"div",
|
|
14826
14826
|
{
|
|
14827
14827
|
className: "flexbox-col pb-20 logs-renderer-container flex-grow-1",
|
|
@@ -14910,17 +14910,17 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14910
14910
|
}
|
|
14911
14911
|
),
|
|
14912
14912
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col px-12 dc__gap-4", children: p.map(
|
|
14913
|
-
({ stage:
|
|
14913
|
+
({ stage: K, isOpen: Z, logs: ge, endTime: xe, startTime: Ie, status: te, targetPlatforms: Te }, se) => /* @__PURE__ */ t.jsx(
|
|
14914
14914
|
mw,
|
|
14915
14915
|
{
|
|
14916
|
-
stage:
|
|
14916
|
+
stage: K,
|
|
14917
14917
|
isOpen: Z,
|
|
14918
14918
|
logs: ge,
|
|
14919
14919
|
endTime: xe,
|
|
14920
14920
|
startTime: Ie,
|
|
14921
14921
|
targetPlatforms: Te,
|
|
14922
14922
|
status: te,
|
|
14923
|
-
handleStageClose:
|
|
14923
|
+
handleStageClose: q,
|
|
14924
14924
|
handleStageOpen: re,
|
|
14925
14925
|
stageIndex: se,
|
|
14926
14926
|
isLoading: se === p.length - 1 && D,
|
|
@@ -14928,13 +14928,13 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14928
14928
|
searchIndex: h[x],
|
|
14929
14929
|
logsRendererRef: c
|
|
14930
14930
|
},
|
|
14931
|
-
`${
|
|
14931
|
+
`${K}-${Ie}-log-stage-accordion`
|
|
14932
14932
|
)
|
|
14933
14933
|
) })
|
|
14934
14934
|
]
|
|
14935
14935
|
}
|
|
14936
14936
|
) : /* @__PURE__ */ t.jsxs("div", { className: "logs__body dark-background flex-grow-1", "data-testid": "check-logs-detail", children: [
|
|
14937
|
-
f.map((
|
|
14937
|
+
f.map((K, Z) => (
|
|
14938
14938
|
// eslint-disable-next-line react/no-array-index-key
|
|
14939
14939
|
/* @__PURE__ */ t.jsxs("div", { className: "flex top left mb-10 lh-24", children: [
|
|
14940
14940
|
/* @__PURE__ */ t.jsx("span", { className: "cn-4 col-2 pr-10", children: Z + 1 }),
|
|
@@ -14943,7 +14943,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14943
14943
|
{
|
|
14944
14944
|
className: "mono fs-14 mb-0-imp",
|
|
14945
14945
|
dangerouslySetInnerHTML: {
|
|
14946
|
-
__html: un.sanitize(
|
|
14946
|
+
__html: un.sanitize(K)
|
|
14947
14947
|
}
|
|
14948
14948
|
}
|
|
14949
14949
|
)
|
|
@@ -14956,7 +14956,7 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
14956
14956
|
{
|
|
14957
14957
|
className: `flexbox-col flex-grow-1 ${fn(je.dark)}`,
|
|
14958
14958
|
ref: c,
|
|
14959
|
-
children: e.podStatus !== ii.PENDING && m && (!s || !e.blobStorageEnabled) ? _w(s) :
|
|
14959
|
+
children: e.podStatus !== ii.PENDING && m && (!s || !e.blobStorageEnabled) ? _w(s) : fe()
|
|
14960
14960
|
}
|
|
14961
14961
|
);
|
|
14962
14962
|
}, k_ = ({ callback: e, hasError: s }) => {
|
|
@@ -15516,21 +15516,21 @@ const el = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
|
15516
15516
|
namespace: E,
|
|
15517
15517
|
workflowExecutionStages: x
|
|
15518
15518
|
}) => {
|
|
15519
|
-
const { path: g, params: f } = Rs(), { pathname: C } = is(), N = C.split("/").pop(), { envId: b, ...T } = Rt(), S = l === Fe.CD || l === Fe.GROUP_CD, O = S ? "triggerId" : "buildId", v = _ === p?.id,
|
|
15519
|
+
const { path: g, params: f } = Rs(), { pathname: C } = is(), N = C.split("/").pop(), { envId: b, ...T } = Rt(), S = l === Fe.CD || l === Fe.GROUP_CD, O = S ? "triggerId" : "buildId", v = _ === p?.id, A = B(null), I = () => {
|
|
15520
15520
|
const P = {
|
|
15521
15521
|
...T,
|
|
15522
15522
|
envId: b,
|
|
15523
15523
|
[O]: e
|
|
15524
15524
|
};
|
|
15525
15525
|
return `${Fs(g, P)}/${N}`;
|
|
15526
|
-
},
|
|
15527
|
-
|
|
15526
|
+
}, R = () => {
|
|
15527
|
+
A?.current && A.current.scrollIntoView({ behavior: "smooth" });
|
|
15528
15528
|
};
|
|
15529
15529
|
M(() => {
|
|
15530
|
-
|
|
15531
|
-
}, [
|
|
15530
|
+
R();
|
|
15531
|
+
}, [A]);
|
|
15532
15532
|
const y = f[O], D = (P) => {
|
|
15533
|
-
+y == +e && (
|
|
15533
|
+
+y == +e && (A.current = P);
|
|
15534
15534
|
}, k = d !== ds.DEPLOY && Object.keys(x || {}).length > 0;
|
|
15535
15535
|
return /* @__PURE__ */ t.jsx(
|
|
15536
15536
|
_t,
|
|
@@ -15856,8 +15856,8 @@ const yw = (e) => {
|
|
|
15856
15856
|
M(() => (p({ keys: ["Enter"], callback: S }), () => {
|
|
15857
15857
|
_(["Enter"]);
|
|
15858
15858
|
}), [f, T]);
|
|
15859
|
-
const v = (
|
|
15860
|
-
E(
|
|
15859
|
+
const v = (A) => {
|
|
15860
|
+
E(A.target.value);
|
|
15861
15861
|
};
|
|
15862
15862
|
return /* @__PURE__ */ t.jsxs(
|
|
15863
15863
|
Zs,
|
|
@@ -16020,8 +16020,8 @@ const yw = (e) => {
|
|
|
16020
16020
|
successToastMessage: p,
|
|
16021
16021
|
children: _
|
|
16022
16022
|
}) => {
|
|
16023
|
-
const [h, E] = w(!1), [x, g] = w(!1), [f, C] = w(u), [N, b] = w(o), T = async (
|
|
16024
|
-
|
|
16023
|
+
const [h, E] = w(!1), [x, g] = w(!1), [f, C] = w(u), [N, b] = w(o), T = async (R) => {
|
|
16024
|
+
R && Oe(R), b(!0);
|
|
16025
16025
|
try {
|
|
16026
16026
|
await i(), $e.showToast({
|
|
16027
16027
|
variant: ve.success,
|
|
@@ -16040,7 +16040,7 @@ const yw = (e) => {
|
|
|
16040
16040
|
closeConfirmationModal: S,
|
|
16041
16041
|
component: n
|
|
16042
16042
|
}
|
|
16043
|
-
),
|
|
16043
|
+
), A = () => /* @__PURE__ */ t.jsx(
|
|
16044
16044
|
Dw,
|
|
16045
16045
|
{
|
|
16046
16046
|
title: e,
|
|
@@ -16075,7 +16075,7 @@ const yw = (e) => {
|
|
|
16075
16075
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
16076
16076
|
!h && !x && I(),
|
|
16077
16077
|
h && v(),
|
|
16078
|
-
x &&
|
|
16078
|
+
x && A()
|
|
16079
16079
|
] });
|
|
16080
16080
|
}, Mw = ({ appName: e, environmentName: s, handleClose: n }) => {
|
|
16081
16081
|
const a = Gn(), { appId: r, envId: o, pipelineId: i, triggerId: c } = Rt(), [l, d] = w(!1), u = async () => {
|
|
@@ -16116,7 +16116,7 @@ const yw = (e) => {
|
|
|
16116
16116
|
class qn extends Ke.Component {
|
|
16117
16117
|
constructor(n) {
|
|
16118
16118
|
super(n);
|
|
16119
|
-
|
|
16119
|
+
ue(this, "handleBodyClick", (n) => {
|
|
16120
16120
|
document.getElementById(hp) || (n.stopPropagation(), this.props.close?.(n));
|
|
16121
16121
|
});
|
|
16122
16122
|
this.escFunction = this.escFunction.bind(this);
|
|
@@ -16883,13 +16883,13 @@ const Qw = ({
|
|
|
16883
16883
|
getRows: x,
|
|
16884
16884
|
totalRows: g
|
|
16885
16885
|
}) => {
|
|
16886
|
-
const f = B(null), C = B(null), N = B(null), b = B(null), [T, S] = w(null), [O, v] = w(!1), { width:
|
|
16887
|
-
BulkActionsComponent:
|
|
16886
|
+
const f = B(null), C = B(null), N = B(null), b = B(null), [T, S] = w(null), [O, v] = w(!1), { width: A, Component: I } = p || {}, {
|
|
16887
|
+
BulkActionsComponent: R,
|
|
16888
16888
|
bulkActionsData: y = null,
|
|
16889
16889
|
BulkOperationModal: D,
|
|
16890
16890
|
bulkOperationModalData: k = null,
|
|
16891
16891
|
disableSelectAllAcrossEvenIfPaginated: P = !1
|
|
16892
|
-
} = c ?? {}, { showSeparatorBetweenRows: U = !0 } = o ?? {}, { sortBy: L, sortOrder: G, handleSorting: z, pageSize:
|
|
16892
|
+
} = c ?? {}, { showSeparatorBetweenRows: U = !0 } = o ?? {}, { sortBy: L, sortOrder: G, handleSorting: z, pageSize: q, offset: re, changePage: fe, changePageSize: K } = e ?? {}, Z = !!c, {
|
|
16893
16893
|
selectedIdentifiers: ge = {},
|
|
16894
16894
|
isBulkSelectionApplied: xe = !1,
|
|
16895
16895
|
setIdentifiers: Ie,
|
|
@@ -16897,7 +16897,7 @@ const Qw = ({
|
|
|
16897
16897
|
} = l ?? {}, {
|
|
16898
16898
|
handleResize: Te,
|
|
16899
16899
|
gridTemplateColumns: se = r.map((ee) => typeof ee.size?.fixed == "number" ? `${ee.size.fixed}px` : "minmax(200px, 1fr)").join(" ")
|
|
16900
|
-
} = n ?? {}, oe =
|
|
16900
|
+
} = n ?? {}, oe = A ? `${se} ${typeof A == "number" ? `minmax(${A}px, 1fr)` : A}` : se;
|
|
16901
16901
|
M(() => {
|
|
16902
16902
|
const ee = () => {
|
|
16903
16903
|
v(f.current?.scrollLeft > 0);
|
|
@@ -16908,8 +16908,8 @@ const Qw = ({
|
|
|
16908
16908
|
}, []);
|
|
16909
16909
|
const ie = xe ? g : te?.() ?? 0, Se = J(() => {
|
|
16910
16910
|
const ee = h ?? [];
|
|
16911
|
-
return m !== ga.PAGINATED || m === ga.PAGINATED && x ? ee : ee.slice(re, re +
|
|
16912
|
-
}, [m, re,
|
|
16911
|
+
return m !== ga.PAGINATED || m === ga.PAGINATED && x ? ee : ee.slice(re, re + q);
|
|
16912
|
+
}, [m, re, q, h]), Re = !!x, Ye = m === ga.PAGINATED && (Re || h?.length > (_?.[0]?.value ?? On)), { activeRowIndex: Pe, setActiveRowIndex: ct, shortcutContainerProps: Dt } = Qw(
|
|
16913
16913
|
{ bulkSelectionConfig: c, bulkSelectionReturnValue: l, handleToggleBulkSelectionOnRow: u },
|
|
16914
16914
|
Se,
|
|
16915
16915
|
Ye,
|
|
@@ -16928,7 +16928,7 @@ const Qw = ({
|
|
|
16928
16928
|
ee && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && ee.dataset.active === "true" && (ee.focus({ preventScroll: !0 }), aL(ee, f.current, b.current?.offsetHeight), ee.dataset.active = "false");
|
|
16929
16929
|
}, V = () => {
|
|
16930
16930
|
S(null);
|
|
16931
|
-
}, Ee = () => xe && s ? h : Object.values(ge),
|
|
16931
|
+
}, Ee = () => xe && s ? h : Object.values(ge), pe = () => i ? xr.map((ee) => /* @__PURE__ */ t.jsxs(
|
|
16932
16932
|
"div",
|
|
16933
16933
|
{
|
|
16934
16934
|
className: `px-20 flexbox py-12 dc__gap-16 ${U ? "border__secondary--bottom" : ""}`,
|
|
@@ -17102,7 +17102,7 @@ const Qw = ({
|
|
|
17102
17102
|
)
|
|
17103
17103
|
}
|
|
17104
17104
|
),
|
|
17105
|
-
|
|
17105
|
+
pe()
|
|
17106
17106
|
]
|
|
17107
17107
|
}
|
|
17108
17108
|
),
|
|
@@ -17112,7 +17112,7 @@ const Qw = ({
|
|
|
17112
17112
|
count: ie,
|
|
17113
17113
|
handleClearBulkSelection: d,
|
|
17114
17114
|
parentRef: C,
|
|
17115
|
-
BulkActionsComponent:
|
|
17115
|
+
BulkActionsComponent: R,
|
|
17116
17116
|
setBulkActionState: S,
|
|
17117
17117
|
bulkActionsData: y
|
|
17118
17118
|
}
|
|
@@ -17121,9 +17121,9 @@ const Qw = ({
|
|
|
17121
17121
|
Ye && !E && /* @__PURE__ */ t.jsx(
|
|
17122
17122
|
qw,
|
|
17123
17123
|
{
|
|
17124
|
-
pageSize:
|
|
17125
|
-
changePage:
|
|
17126
|
-
changePageSize:
|
|
17124
|
+
pageSize: q,
|
|
17125
|
+
changePage: fe,
|
|
17126
|
+
changePageSize: K,
|
|
17127
17127
|
offset: re,
|
|
17128
17128
|
rootClassName: "border__secondary--top flex dc__content-space px-20",
|
|
17129
17129
|
size: g,
|
|
@@ -17172,10 +17172,10 @@ const Qw = ({
|
|
|
17172
17172
|
const {
|
|
17173
17173
|
sortBy: O,
|
|
17174
17174
|
sortOrder: v,
|
|
17175
|
-
searchKey:
|
|
17175
|
+
searchKey: A = "",
|
|
17176
17176
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17177
17177
|
handleSorting: I,
|
|
17178
|
-
pageSize:
|
|
17178
|
+
pageSize: R,
|
|
17179
17179
|
offset: y,
|
|
17180
17180
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17181
17181
|
changePage: D,
|
|
@@ -17187,7 +17187,7 @@ const Qw = ({
|
|
|
17187
17187
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
17188
17188
|
handleSearch: L,
|
|
17189
17189
|
...G
|
|
17190
|
-
} = s ?? {}, z = B(null),
|
|
17190
|
+
} = s ?? {}, z = B(null), q = B(-1);
|
|
17191
17191
|
M(() => {
|
|
17192
17192
|
const at = (Pt) => {
|
|
17193
17193
|
setTimeout(() => {
|
|
@@ -17198,7 +17198,7 @@ const Qw = ({
|
|
|
17198
17198
|
}, 0);
|
|
17199
17199
|
};
|
|
17200
17200
|
return z.current?.addEventListener("focusout", at), () => {
|
|
17201
|
-
clearTimeout(
|
|
17201
|
+
clearTimeout(q.current), z.current?.removeEventListener("focusout", at);
|
|
17202
17202
|
};
|
|
17203
17203
|
}, []), M(() => {
|
|
17204
17204
|
f();
|
|
@@ -17206,20 +17206,20 @@ const Qw = ({
|
|
|
17206
17206
|
const re = async () => {
|
|
17207
17207
|
let at = n.length;
|
|
17208
17208
|
return { filteredRows: await nL({
|
|
17209
|
-
searchSortTimeoutRef:
|
|
17209
|
+
searchSortTimeoutRef: q,
|
|
17210
17210
|
callback: () => {
|
|
17211
17211
|
const { rows: V, totalRows: Ee } = eL(
|
|
17212
17212
|
n,
|
|
17213
17213
|
u,
|
|
17214
17214
|
s,
|
|
17215
|
-
p.find(({ field:
|
|
17215
|
+
p.find(({ field: pe }) => pe === O)?.comparator
|
|
17216
17216
|
);
|
|
17217
17217
|
return at = Ee, V;
|
|
17218
17218
|
}
|
|
17219
17219
|
}), totalRows: at };
|
|
17220
|
-
}, [
|
|
17220
|
+
}, [fe, K, Z, ge] = Lt(
|
|
17221
17221
|
re,
|
|
17222
|
-
[
|
|
17222
|
+
[A, O, v, n, JSON.stringify(G), p],
|
|
17223
17223
|
!!n
|
|
17224
17224
|
), {
|
|
17225
17225
|
isFetching: xe,
|
|
@@ -17233,17 +17233,17 @@ const Qw = ({
|
|
|
17233
17233
|
},
|
|
17234
17234
|
// eslint-disable-next-line @tanstack/query/exhaustive-deps
|
|
17235
17235
|
queryKey: [
|
|
17236
|
-
|
|
17236
|
+
A,
|
|
17237
17237
|
O,
|
|
17238
17238
|
v,
|
|
17239
17239
|
a,
|
|
17240
17240
|
y,
|
|
17241
|
-
|
|
17241
|
+
R,
|
|
17242
17242
|
JSON.stringify(G),
|
|
17243
17243
|
p
|
|
17244
17244
|
],
|
|
17245
17245
|
enabled: !!a
|
|
17246
|
-
}), se = a ? xe :
|
|
17246
|
+
}), se = a ? xe : fe, oe = a ? Ie : K, ie = a ? te : Z, Se = a ? Te : ge, { filteredRows: Re, totalRows: Ye } = J(
|
|
17247
17247
|
() => oe ?? { filteredRows: [], totalRows: 0 },
|
|
17248
17248
|
[oe]
|
|
17249
17249
|
), Pe = se || ie === Vw, ct = o ?? us, Dt = () => ie && !Pe && !h ? /* @__PURE__ */ t.jsx(zn, { code: ie.code, reload: Se }) : !Pe && !Re?.length && !h ? e !== La.NONE && U ? /* @__PURE__ */ t.jsx(
|
|
@@ -17285,7 +17285,7 @@ const Qw = ({
|
|
|
17285
17285
|
handleSearch: L,
|
|
17286
17286
|
updateSearchParams: Ne,
|
|
17287
17287
|
offset: y,
|
|
17288
|
-
searchKey:
|
|
17288
|
+
searchKey: A,
|
|
17289
17289
|
sortBy: O,
|
|
17290
17290
|
sortOrder: v,
|
|
17291
17291
|
...s,
|
|
@@ -17773,7 +17773,7 @@ const Qw = ({
|
|
|
17773
17773
|
const { isFELibAvailable: T } = Xt(), [S, O] = w(null), v = J(
|
|
17774
17774
|
() => Jc(f),
|
|
17775
17775
|
[f]
|
|
17776
|
-
),
|
|
17776
|
+
), A = v?.workerDetails.message || c, I = T && N && (d === Fe.CD || d === Fe.GROUP_CD) && u === ds.DEPLOY && A?.includes(Qy), R = () => {
|
|
17777
17777
|
O(pa.DEPLOY_DIALOG);
|
|
17778
17778
|
}, y = () => {
|
|
17779
17779
|
O(pa.RESOURCE_DETAIL_MODAL);
|
|
@@ -17904,7 +17904,7 @@ const Qw = ({
|
|
|
17904
17904
|
dataTestId: "resource-conflict-re-deploy",
|
|
17905
17905
|
text: "Re-deploy",
|
|
17906
17906
|
startIcon: /* @__PURE__ */ t.jsx($, { name: "ic-rocket-launch", color: null }),
|
|
17907
|
-
onClick:
|
|
17907
|
+
onClick: R,
|
|
17908
17908
|
variant: W.text,
|
|
17909
17909
|
style: ae.warning,
|
|
17910
17910
|
size: j.medium
|
|
@@ -18006,10 +18006,10 @@ const Qw = ({
|
|
|
18006
18006
|
}, [a, n, g, f]);
|
|
18007
18007
|
const { tabClassName: T, iconClassName: S, badgeClassName: O } = NL({
|
|
18008
18008
|
hideTopPadding: c
|
|
18009
|
-
})[o], v = (
|
|
18010
|
-
(a ||
|
|
18011
|
-
},
|
|
18012
|
-
const
|
|
18009
|
+
})[o], v = (R) => {
|
|
18010
|
+
(a || R.currentTarget.classList.contains("active") || n === "navLink" && m) && R.preventDefault(), s?.onClick?.(R);
|
|
18011
|
+
}, A = () => {
|
|
18012
|
+
const R = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
18013
18013
|
/* @__PURE__ */ t.jsxs("span", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
|
18014
18014
|
TL({ className: S, icon: r, showError: d, showWarning: u, size: o, active: a, iconElement: x }),
|
|
18015
18015
|
/* @__PURE__ */ t.jsx(Q, { content: e, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: e }) }),
|
|
@@ -18027,7 +18027,7 @@ const Qw = ({
|
|
|
18027
18027
|
"aria-disabled": m,
|
|
18028
18028
|
...s,
|
|
18029
18029
|
onClick: v,
|
|
18030
|
-
children:
|
|
18030
|
+
children: R
|
|
18031
18031
|
}
|
|
18032
18032
|
);
|
|
18033
18033
|
case "navLink":
|
|
@@ -18039,7 +18039,7 @@ const Qw = ({
|
|
|
18039
18039
|
"aria-disabled": m,
|
|
18040
18040
|
...s,
|
|
18041
18041
|
onClick: v,
|
|
18042
|
-
children:
|
|
18042
|
+
children: R
|
|
18043
18043
|
}
|
|
18044
18044
|
);
|
|
18045
18045
|
case "block":
|
|
@@ -18048,7 +18048,7 @@ const Qw = ({
|
|
|
18048
18048
|
{
|
|
18049
18049
|
className: `flexbox-col fw-6 ${T} ${m ? "cursor-not-allowed" : ""}`,
|
|
18050
18050
|
...s,
|
|
18051
|
-
children:
|
|
18051
|
+
children: R
|
|
18052
18052
|
}
|
|
18053
18053
|
);
|
|
18054
18054
|
default:
|
|
@@ -18060,7 +18060,7 @@ const Qw = ({
|
|
|
18060
18060
|
disabled: m,
|
|
18061
18061
|
...s,
|
|
18062
18062
|
onClick: v,
|
|
18063
|
-
children:
|
|
18063
|
+
children: R
|
|
18064
18064
|
}
|
|
18065
18065
|
);
|
|
18066
18066
|
}
|
|
@@ -18069,7 +18069,7 @@ const Qw = ({
|
|
|
18069
18069
|
{
|
|
18070
18070
|
className: `tab-group__tab lh-20 ${a ? "cb-5 fw-6" : "cn-9 fw-4"} ${n === "block" ? "tab-group__tab--block" : ""} ${m ? "dc__disabled" : "cursor"}`,
|
|
18071
18071
|
children: [
|
|
18072
|
-
|
|
18072
|
+
A(),
|
|
18073
18073
|
N && /* @__PURE__ */ t.jsx(RL, { layoutId: E })
|
|
18074
18074
|
]
|
|
18075
18075
|
}
|
|
@@ -18123,13 +18123,13 @@ const Qw = ({
|
|
|
18123
18123
|
triggerHistory: S,
|
|
18124
18124
|
targetPlatforms: O
|
|
18125
18125
|
}) => {
|
|
18126
|
-
const { path: v } = Rs(), { appId:
|
|
18127
|
-
appId:
|
|
18126
|
+
const { path: v } = Rs(), { appId: A, pipelineId: I, triggerId: R, envId: y } = Rt(), D = {
|
|
18127
|
+
appId: A,
|
|
18128
18128
|
envId: y,
|
|
18129
18129
|
appName: e.helmPackageName,
|
|
18130
18130
|
workflowId: e.id,
|
|
18131
18131
|
cdWorkflowType: Nv[e.stage]
|
|
18132
|
-
}, k = `app/cd-pipeline/workflow/download/${
|
|
18132
|
+
}, k = `app/cd-pipeline/workflow/download/${A}/${y}/${I}/${R}`;
|
|
18133
18133
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container bg__tertiary flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Qe, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(fm, { children: [
|
|
18134
18134
|
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(cn, { path: `${v}/logs`, children: [
|
|
18135
18135
|
/* @__PURE__ */ t.jsx(
|
|
@@ -18193,7 +18193,7 @@ const Qw = ({
|
|
|
18193
18193
|
appName: T,
|
|
18194
18194
|
envName: p,
|
|
18195
18195
|
pipelineId: +I,
|
|
18196
|
-
wfrId: +
|
|
18196
|
+
wfrId: +R,
|
|
18197
18197
|
triggerHistory: S,
|
|
18198
18198
|
setFullScreenView: n,
|
|
18199
18199
|
resourceId: _,
|
|
@@ -18203,7 +18203,7 @@ const Qw = ({
|
|
|
18203
18203
|
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(cn, { path: `${v}/artifacts`, children: e.IsVirtualEnvironment && f ? f({
|
|
18204
18204
|
status: e.status,
|
|
18205
18205
|
title: e.helmPackageName,
|
|
18206
|
-
params: { ...D, appId: Number(
|
|
18206
|
+
params: { ...D, appId: Number(A), envId: Number(y) }
|
|
18207
18207
|
}) : /* @__PURE__ */ t.jsx(
|
|
18208
18208
|
m_,
|
|
18209
18209
|
{
|
|
@@ -18258,12 +18258,12 @@ const Qw = ({
|
|
|
18258
18258
|
renderTargetConfigInfo: T,
|
|
18259
18259
|
appName: S
|
|
18260
18260
|
}) => {
|
|
18261
|
-
const { appId: O, triggerId: v, envId:
|
|
18262
|
-
() => kO({ appId: O, envId:
|
|
18261
|
+
const { appId: O, triggerId: v, envId: A, pipelineId: I } = Rt(), R = s.get(+v), [y, D, k, P] = Lt(
|
|
18262
|
+
() => kO({ appId: O, envId: A, pipelineId: I, triggerId: v, fetchIdData: d }),
|
|
18263
18263
|
// TODO: Ask if fetchIdData is required here as dependency
|
|
18264
|
-
[v, O,
|
|
18264
|
+
[v, O, A],
|
|
18265
18265
|
!!v && !!I
|
|
18266
|
-
), U = jo(
|
|
18266
|
+
), U = jo(R?.targetPlatforms), L = (Z, ge, xe) => {
|
|
18267
18267
|
if (xe) {
|
|
18268
18268
|
p?.result?.cdWorkflows?.length && n(Pf(p.result.cdWorkflows, "id")), u(Bs.SUSPEND);
|
|
18269
18269
|
return;
|
|
@@ -18281,22 +18281,22 @@ const Qw = ({
|
|
|
18281
18281
|
}
|
|
18282
18282
|
};
|
|
18283
18283
|
let G = !!d && d !== Bs.SUSPEND;
|
|
18284
|
-
(D?.result?.artifactId === 0 ||
|
|
18285
|
-
const [z,
|
|
18284
|
+
(D?.result?.artifactId === 0 || R?.artifactId === 0) && (G = !1);
|
|
18285
|
+
const [z, q, re] = Lt(
|
|
18286
18286
|
() => $O({
|
|
18287
18287
|
pipelineId: I,
|
|
18288
|
-
artifactId: D?.result?.artifactId ||
|
|
18288
|
+
artifactId: D?.result?.artifactId || R?.artifactId
|
|
18289
18289
|
}),
|
|
18290
18290
|
[I, v],
|
|
18291
|
-
G && !!I && (!!D?.result?.artifactId || !!
|
|
18291
|
+
G && !!I && (!!D?.result?.artifactId || !!R?.artifactId)
|
|
18292
18292
|
);
|
|
18293
18293
|
M(() => {
|
|
18294
18294
|
if (y)
|
|
18295
18295
|
return;
|
|
18296
18296
|
let Z = {
|
|
18297
18297
|
...D?.result,
|
|
18298
|
-
imageComment:
|
|
18299
|
-
imageReleaseTags:
|
|
18298
|
+
imageComment: R?.imageComment,
|
|
18299
|
+
imageReleaseTags: R?.imageReleaseTags
|
|
18300
18300
|
};
|
|
18301
18301
|
G && (Z = null), L(+v, Z, k);
|
|
18302
18302
|
}, [y, D, k]), M(() => {
|
|
@@ -18304,54 +18304,54 @@ const Qw = ({
|
|
|
18304
18304
|
return;
|
|
18305
18305
|
const Z = {
|
|
18306
18306
|
...D?.result,
|
|
18307
|
-
imageReleaseTags:
|
|
18308
|
-
imageComment:
|
|
18307
|
+
imageReleaseTags: q?.result?.imageReleaseTags,
|
|
18308
|
+
imageComment: q?.result?.imageComment
|
|
18309
18309
|
};
|
|
18310
18310
|
L(+v, Z, re);
|
|
18311
|
-
}, [z,
|
|
18312
|
-
const
|
|
18313
|
-
Df(P,
|
|
18314
|
-
const
|
|
18315
|
-
return !G && y && !
|
|
18311
|
+
}, [z, q, re]);
|
|
18312
|
+
const fe = J(() => !R || ky.has(R.podStatus?.toLowerCase() || R.status?.toLowerCase()) ? null : $y.has(R.status?.toLowerCase() || R.podStatus?.toLowerCase()) ? 1e4 : 3e4, [R]);
|
|
18313
|
+
Df(P, fe);
|
|
18314
|
+
const K = J(() => h_(s)?.[0]?.[0], [s]);
|
|
18315
|
+
return !G && y && !R || !v || G && (z || y) && !R ? /* @__PURE__ */ t.jsx(Qe, { pageLoader: !0 }) : k?.code === 404 ? /* @__PURE__ */ t.jsx(
|
|
18316
18316
|
Ze,
|
|
18317
18317
|
{
|
|
18318
18318
|
title: tt.TRIGGER_NOT_FOUND.TITLE,
|
|
18319
18319
|
subTitle: tt.TRIGGER_NOT_FOUND.SUBTITLE
|
|
18320
18320
|
}
|
|
18321
|
-
) : !G && !y && !
|
|
18321
|
+
) : !G && !y && !R ? /* @__PURE__ */ t.jsx(wa, {}) : G && !(z || y) && !R ? /* @__PURE__ */ t.jsx(wa, {}) : R?.id !== +v ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
18322
18322
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
18323
18323
|
/* @__PURE__ */ t.jsx(
|
|
18324
18324
|
CL,
|
|
18325
18325
|
{
|
|
18326
18326
|
type: Fe.CD,
|
|
18327
|
-
status:
|
|
18328
|
-
startedOn:
|
|
18329
|
-
finishedOn:
|
|
18330
|
-
triggeredBy:
|
|
18331
|
-
triggeredByEmail:
|
|
18332
|
-
ciMaterials:
|
|
18333
|
-
gitTriggers:
|
|
18334
|
-
message:
|
|
18335
|
-
podStatus:
|
|
18336
|
-
stage:
|
|
18337
|
-
artifact:
|
|
18338
|
-
triggerMetadata:
|
|
18327
|
+
status: R.status,
|
|
18328
|
+
startedOn: R.startedOn,
|
|
18329
|
+
finishedOn: R.finishedOn,
|
|
18330
|
+
triggeredBy: R.triggeredBy,
|
|
18331
|
+
triggeredByEmail: R.triggeredByEmail,
|
|
18332
|
+
ciMaterials: R.ciMaterials,
|
|
18333
|
+
gitTriggers: R.gitTriggers,
|
|
18334
|
+
message: R.message,
|
|
18335
|
+
podStatus: R.podStatus,
|
|
18336
|
+
stage: R.stage,
|
|
18337
|
+
artifact: R.artifact,
|
|
18338
|
+
triggerMetadata: R.triggerMetadata,
|
|
18339
18339
|
renderDeploymentHistoryTriggerMetaText: f,
|
|
18340
18340
|
environmentName: m,
|
|
18341
18341
|
renderTargetConfigInfo: T,
|
|
18342
|
-
workflowExecutionStages:
|
|
18343
|
-
namespace:
|
|
18344
|
-
isLatest:
|
|
18342
|
+
workflowExecutionStages: R.workflowExecutionStages,
|
|
18343
|
+
namespace: R.namespace,
|
|
18344
|
+
isLatest: K === R.id,
|
|
18345
18345
|
appName: S
|
|
18346
18346
|
}
|
|
18347
18347
|
),
|
|
18348
|
-
/* @__PURE__ */ t.jsx("div", { className: "pl-50 pr-20 pt-8 dc__border-bottom dc__position-sticky dc__top-0 bg__primary dc__zi-3", children: /* @__PURE__ */ t.jsx(X_, { tabs: EO(
|
|
18348
|
+
/* @__PURE__ */ t.jsx("div", { className: "pl-50 pr-20 pt-8 dc__border-bottom dc__position-sticky dc__top-0 bg__primary dc__zi-3", children: /* @__PURE__ */ t.jsx(X_, { tabs: EO(R, r) }) })
|
|
18349
18349
|
] }),
|
|
18350
18350
|
/* @__PURE__ */ t.jsx(
|
|
18351
18351
|
yL,
|
|
18352
18352
|
{
|
|
18353
|
-
triggerDetails:
|
|
18354
|
-
loading: y && !D || !
|
|
18353
|
+
triggerDetails: R,
|
|
18354
|
+
loading: y && !D || !R || G && !q,
|
|
18355
18355
|
userApprovalMetadata: D?.result?.userApprovalMetadata,
|
|
18356
18356
|
triggeredByEmail: D?.result?.triggeredByEmail,
|
|
18357
18357
|
setFullScreenView: a,
|
|
@@ -18376,7 +18376,7 @@ const Qw = ({
|
|
|
18376
18376
|
triggerHistory: s,
|
|
18377
18377
|
targetPlatforms: U
|
|
18378
18378
|
},
|
|
18379
|
-
|
|
18379
|
+
R.id
|
|
18380
18380
|
)
|
|
18381
18381
|
] });
|
|
18382
18382
|
}, OL = (e) => {
|
|
@@ -18754,10 +18754,10 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18754
18754
|
"app-id": e,
|
|
18755
18755
|
"env-id": s
|
|
18756
18756
|
}), [r, o] = await Promise.allSettled([
|
|
18757
|
-
|
|
18757
|
+
_e(`${Y.APP_DETAIL}/v2${a}`, {
|
|
18758
18758
|
abortControllerRef: n
|
|
18759
18759
|
}),
|
|
18760
|
-
|
|
18760
|
+
_e(`${Y.APP_DETAIL}/resource-tree${a}`, {
|
|
18761
18761
|
abortControllerRef: n
|
|
18762
18762
|
})
|
|
18763
18763
|
]);
|
|
@@ -18778,7 +18778,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18778
18778
|
isHelmApp: o,
|
|
18779
18779
|
deploymentAppType: i
|
|
18780
18780
|
}) => {
|
|
18781
|
-
const c = o ? Y.HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP : Y.DEPLOYMENT_STATUS, l = await
|
|
18781
|
+
const c = o ? Y.HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP : Y.DEPLOYMENT_STATUS, l = await _e(
|
|
18782
18782
|
Ue(`${c}/${s}/${n}`, {
|
|
18783
18783
|
showTimeline: a,
|
|
18784
18784
|
...r && {
|
|
@@ -18820,7 +18820,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18820
18820
|
N,
|
|
18821
18821
|
b,
|
|
18822
18822
|
T
|
|
18823
|
-
] = Lt(g, [], n === "release"), S = n === "release" ? C : a, O = sc({ type: n, appDetails: S }), v = B(new AbortController()),
|
|
18823
|
+
] = Lt(g, [], n === "release"), S = n === "release" ? C : a, O = sc({ type: n, appDetails: S }), v = B(new AbortController()), A = B(null), I = async () => {
|
|
18824
18824
|
const se = await fo(
|
|
18825
18825
|
() => FL({
|
|
18826
18826
|
abortControllerRef: v,
|
|
@@ -18838,7 +18838,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18838
18838
|
);
|
|
18839
18839
|
return o?.(se), se;
|
|
18840
18840
|
}, [
|
|
18841
|
-
|
|
18841
|
+
R,
|
|
18842
18842
|
y,
|
|
18843
18843
|
D,
|
|
18844
18844
|
k,
|
|
@@ -18863,7 +18863,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18863
18863
|
), oe = Number(
|
|
18864
18864
|
S.appType !== xt.DEVTRON_HELM_CHART ? window._env_.DEVTRON_APP_DETAILS_POLLING_INTERVAL : window._env_.HELM_APP_DETAILS_POLLING_INTERVAL
|
|
18865
18865
|
) || Hl;
|
|
18866
|
-
|
|
18866
|
+
A.current = setTimeout(
|
|
18867
18867
|
async () => {
|
|
18868
18868
|
try {
|
|
18869
18869
|
const ie = await I();
|
|
@@ -18874,14 +18874,14 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18874
18874
|
},
|
|
18875
18875
|
se ? bv : oe
|
|
18876
18876
|
);
|
|
18877
|
-
}, G = f || Ft(N), z =
|
|
18877
|
+
}, G = f || Ft(N), z = R || Ft(D), q = _ === ht.DEPLOYMENT_STATUS && z;
|
|
18878
18878
|
M(() => {
|
|
18879
18879
|
!f && !N && C && !x.current && U();
|
|
18880
18880
|
}, [f, C, N]), M(() => {
|
|
18881
|
-
!
|
|
18882
|
-
}, [
|
|
18881
|
+
!R && !D && y && !A.current && L();
|
|
18882
|
+
}, [R, y, D]);
|
|
18883
18883
|
const re = () => {
|
|
18884
|
-
|
|
18884
|
+
A.current && (clearTimeout(A.current), A.current = null);
|
|
18885
18885
|
};
|
|
18886
18886
|
M(
|
|
18887
18887
|
() => () => {
|
|
@@ -18889,13 +18889,13 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18889
18889
|
},
|
|
18890
18890
|
[]
|
|
18891
18891
|
);
|
|
18892
|
-
const
|
|
18892
|
+
const fe = i ? () => {
|
|
18893
18893
|
s(), p({
|
|
18894
18894
|
open: !0,
|
|
18895
18895
|
title: `${S.appName} / Live and desired manifest comparison`,
|
|
18896
18896
|
component: /* @__PURE__ */ t.jsx(c, { appId: S.appId, envId: S.environmentId })
|
|
18897
18897
|
});
|
|
18898
|
-
} : null,
|
|
18898
|
+
} : null, K = async (se) => {
|
|
18899
18899
|
re(), h(se);
|
|
18900
18900
|
}, Z = (e || []).filter((se) => !!se), ge = () => _ ? _ === ht.APP_STATUS ? S?.resourceTree ? "" : "Application status is not available" : !y || !sc({ type: n, appDetails: S }) ? "Deployment status is not available" : "" : "Status is not available", xe = () => {
|
|
18901
18901
|
const se = ge();
|
|
@@ -18918,7 +18918,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18918
18918
|
{
|
|
18919
18919
|
appDetails: S,
|
|
18920
18920
|
type: n,
|
|
18921
|
-
handleShowConfigDriftModal:
|
|
18921
|
+
handleShowConfigDriftModal: fe,
|
|
18922
18922
|
deploymentStatusDetailsBreakdownData: y,
|
|
18923
18923
|
selectedTab: _,
|
|
18924
18924
|
debugWithAIButton: m,
|
|
@@ -18973,7 +18973,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18973
18973
|
!G && !N && !!S && /* @__PURE__ */ t.jsx(
|
|
18974
18974
|
$L,
|
|
18975
18975
|
{
|
|
18976
|
-
handleSelectTab:
|
|
18976
|
+
handleSelectTab: K,
|
|
18977
18977
|
appDetails: S,
|
|
18978
18978
|
type: n,
|
|
18979
18979
|
selectedTab: _,
|
|
@@ -18984,7 +18984,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
18984
18984
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col flex-grow-1 dc__overflow-auto dc__gap-16 dc__content-space", children: /* @__PURE__ */ t.jsx(
|
|
18985
18985
|
Lo,
|
|
18986
18986
|
{
|
|
18987
|
-
isLoading: G ||
|
|
18987
|
+
isLoading: G || q,
|
|
18988
18988
|
progressingProps: {
|
|
18989
18989
|
pageLoader: !0
|
|
18990
18990
|
},
|
|
@@ -19212,7 +19212,7 @@ const ML = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
|
19212
19212
|
]
|
|
19213
19213
|
}
|
|
19214
19214
|
);
|
|
19215
|
-
},
|
|
19215
|
+
}, me = {
|
|
19216
19216
|
IMAGE_SCAN: "imageScan",
|
|
19217
19217
|
CODE_SCAN: "codeScan",
|
|
19218
19218
|
KUBERNETES_MANIFEST: "kubernetesManifest"
|
|
@@ -19328,15 +19328,15 @@ const YL = {
|
|
|
19328
19328
|
};
|
|
19329
19329
|
return /* @__PURE__ */ t.jsx("button", { type: "button", className: "dc__unset-button-styles dc__align-left", onClick: a, children: e });
|
|
19330
19330
|
}, ac = {
|
|
19331
|
-
category:
|
|
19331
|
+
category: me.IMAGE_SCAN,
|
|
19332
19332
|
subCategory: ce.VULNERABILITIES,
|
|
19333
19333
|
detailViewData: null
|
|
19334
19334
|
}, KL = {
|
|
19335
|
-
category:
|
|
19335
|
+
category: me.CODE_SCAN,
|
|
19336
19336
|
subCategory: ce.VULNERABILITIES,
|
|
19337
19337
|
detailViewData: null
|
|
19338
19338
|
}, zL = {
|
|
19339
|
-
category:
|
|
19339
|
+
category: me.KUBERNETES_MANIFEST,
|
|
19340
19340
|
subCategory: ce.MISCONFIGURATIONS,
|
|
19341
19341
|
detailViewData: null
|
|
19342
19342
|
}, qL = (e) => e.imageScan ? ac : e.codeScan ? KL : e.kubernetesManifest ? zL : ac, xs = {
|
|
@@ -19421,7 +19421,7 @@ const YL = {
|
|
|
19421
19421
|
[ne.EXCEPTIONS]: 7,
|
|
19422
19422
|
[ne.SUCCESSES]: 8
|
|
19423
19423
|
})[e] || 1e4, Qa = (e, s) => _u(e) - _u(s), bY = (e) => {
|
|
19424
|
-
const s = e[
|
|
19424
|
+
const s = e[me.IMAGE_SCAN].vulnerability?.summary?.severities, n = e[me.CODE_SCAN].vulnerability?.summary?.severities;
|
|
19425
19425
|
return {
|
|
19426
19426
|
critical: (s?.[ne.CRITICAL] || 0) + (n?.[ne.CRITICAL] || 0),
|
|
19427
19427
|
high: (s?.[ne.HIGH] || 0) + (n?.[ne.HIGH] || 0),
|
|
@@ -19449,7 +19449,7 @@ const YL = {
|
|
|
19449
19449
|
return null;
|
|
19450
19450
|
}
|
|
19451
19451
|
}, TY = (e) => ({
|
|
19452
|
-
[
|
|
19452
|
+
[me.IMAGE_SCAN]: {
|
|
19453
19453
|
[ce.VULNERABILITIES]: {
|
|
19454
19454
|
summary: {
|
|
19455
19455
|
severities: {
|
|
@@ -19486,8 +19486,8 @@ const YL = {
|
|
|
19486
19486
|
},
|
|
19487
19487
|
[ce.LICENSE]: null
|
|
19488
19488
|
},
|
|
19489
|
-
[
|
|
19490
|
-
[
|
|
19489
|
+
[me.CODE_SCAN]: null,
|
|
19490
|
+
[me.KUBERNETES_MANIFEST]: null,
|
|
19491
19491
|
scanned: !0,
|
|
19492
19492
|
isImageScanEnabled: !0
|
|
19493
19493
|
}), SY = (e) => e.reduce(
|
|
@@ -19631,13 +19631,13 @@ const YL = {
|
|
|
19631
19631
|
kubernetesManifest: n
|
|
19632
19632
|
}) => ({
|
|
19633
19633
|
...e && {
|
|
19634
|
-
[
|
|
19634
|
+
[me.IMAGE_SCAN]: kr[me.IMAGE_SCAN]
|
|
19635
19635
|
},
|
|
19636
19636
|
...s && {
|
|
19637
|
-
[
|
|
19637
|
+
[me.CODE_SCAN]: kr[me.CODE_SCAN]
|
|
19638
19638
|
},
|
|
19639
19639
|
...n && {
|
|
19640
|
-
[
|
|
19640
|
+
[me.KUBERNETES_MANIFEST]: kr[me.KUBERNETES_MANIFEST]
|
|
19641
19641
|
}
|
|
19642
19642
|
}), nD = (e) => {
|
|
19643
19643
|
const { imageScan: s, codeScan: n, kubernetesManifest: a } = e, r = Q_({
|
|
@@ -20026,11 +20026,11 @@ const YL = {
|
|
|
20026
20026
|
return null;
|
|
20027
20027
|
}
|
|
20028
20028
|
}, uD = (e, s, n) => {
|
|
20029
|
-
switch (e[
|
|
20029
|
+
switch (e[me.CODE_SCAN].status) {
|
|
20030
20030
|
case "Failed":
|
|
20031
20031
|
return rl;
|
|
20032
20032
|
case "Completed":
|
|
20033
|
-
return dD(e[
|
|
20033
|
+
return dD(e[me.CODE_SCAN], s, n);
|
|
20034
20034
|
case "Progressing":
|
|
20035
20035
|
case "Running":
|
|
20036
20036
|
default:
|
|
@@ -20257,7 +20257,7 @@ const YL = {
|
|
|
20257
20257
|
return null;
|
|
20258
20258
|
}
|
|
20259
20259
|
}, CD = (e, s, n) => {
|
|
20260
|
-
if (!e[
|
|
20260
|
+
if (!e[me.IMAGE_SCAN]?.[s]?.list?.length)
|
|
20261
20261
|
return ao;
|
|
20262
20262
|
if (!n)
|
|
20263
20263
|
return null;
|
|
@@ -20333,12 +20333,12 @@ const YL = {
|
|
|
20333
20333
|
return null;
|
|
20334
20334
|
}
|
|
20335
20335
|
}, SD = (e, s, n) => {
|
|
20336
|
-
switch (e[
|
|
20336
|
+
switch (e[me.KUBERNETES_MANIFEST].status) {
|
|
20337
20337
|
case "Failed":
|
|
20338
20338
|
return rl;
|
|
20339
20339
|
/* FIXME: api is sending empty state for status after re-deployment */
|
|
20340
20340
|
case "Completed":
|
|
20341
|
-
return TD(e[
|
|
20341
|
+
return TD(e[me.KUBERNETES_MANIFEST], s, n);
|
|
20342
20342
|
case "Progressing":
|
|
20343
20343
|
case "Running":
|
|
20344
20344
|
default:
|
|
@@ -20346,11 +20346,11 @@ const YL = {
|
|
|
20346
20346
|
}
|
|
20347
20347
|
}, vD = (e, s, n) => {
|
|
20348
20348
|
switch (s) {
|
|
20349
|
-
case
|
|
20349
|
+
case me.IMAGE_SCAN:
|
|
20350
20350
|
return xD(e[s], n);
|
|
20351
|
-
case
|
|
20351
|
+
case me.CODE_SCAN:
|
|
20352
20352
|
return lD(e[s], n);
|
|
20353
|
-
case
|
|
20353
|
+
case me.KUBERNETES_MANIFEST:
|
|
20354
20354
|
return bD(e[s], n);
|
|
20355
20355
|
default:
|
|
20356
20356
|
return null;
|
|
@@ -20379,7 +20379,7 @@ const YL = {
|
|
|
20379
20379
|
type: "item",
|
|
20380
20380
|
title: Ds.VULNERABILITIES,
|
|
20381
20381
|
id: Ps({
|
|
20382
|
-
category:
|
|
20382
|
+
category: me.IMAGE_SCAN,
|
|
20383
20383
|
subCategory: ce.VULNERABILITIES
|
|
20384
20384
|
})
|
|
20385
20385
|
},
|
|
@@ -20388,7 +20388,7 @@ const YL = {
|
|
|
20388
20388
|
type: "item",
|
|
20389
20389
|
title: Ds.LICENSE,
|
|
20390
20390
|
id: Ps({
|
|
20391
|
-
category:
|
|
20391
|
+
category: me.IMAGE_SCAN,
|
|
20392
20392
|
subCategory: ce.LICENSE
|
|
20393
20393
|
})
|
|
20394
20394
|
}
|
|
@@ -20406,7 +20406,7 @@ const YL = {
|
|
|
20406
20406
|
type: "item",
|
|
20407
20407
|
title: Ds.VULNERABILITIES,
|
|
20408
20408
|
id: Ps({
|
|
20409
|
-
category:
|
|
20409
|
+
category: me.CODE_SCAN,
|
|
20410
20410
|
subCategory: ce.VULNERABILITIES
|
|
20411
20411
|
})
|
|
20412
20412
|
},
|
|
@@ -20414,7 +20414,7 @@ const YL = {
|
|
|
20414
20414
|
type: "item",
|
|
20415
20415
|
title: Ds.LICENSE,
|
|
20416
20416
|
id: Ps({
|
|
20417
|
-
category:
|
|
20417
|
+
category: me.CODE_SCAN,
|
|
20418
20418
|
subCategory: ce.LICENSE
|
|
20419
20419
|
})
|
|
20420
20420
|
},
|
|
@@ -20422,7 +20422,7 @@ const YL = {
|
|
|
20422
20422
|
type: "item",
|
|
20423
20423
|
title: Ds.MISCONFIGURATIONS,
|
|
20424
20424
|
id: Ps({
|
|
20425
|
-
category:
|
|
20425
|
+
category: me.CODE_SCAN,
|
|
20426
20426
|
subCategory: ce.MISCONFIGURATIONS
|
|
20427
20427
|
})
|
|
20428
20428
|
},
|
|
@@ -20430,7 +20430,7 @@ const YL = {
|
|
|
20430
20430
|
type: "item",
|
|
20431
20431
|
title: Ds.EXPOSED_SECRETS,
|
|
20432
20432
|
id: Ps({
|
|
20433
|
-
category:
|
|
20433
|
+
category: me.CODE_SCAN,
|
|
20434
20434
|
subCategory: ce.EXPOSED_SECRETS
|
|
20435
20435
|
})
|
|
20436
20436
|
}
|
|
@@ -20447,7 +20447,7 @@ const YL = {
|
|
|
20447
20447
|
type: "item",
|
|
20448
20448
|
title: Ds.MISCONFIGURATIONS,
|
|
20449
20449
|
id: Ps({
|
|
20450
|
-
category:
|
|
20450
|
+
category: me.KUBERNETES_MANIFEST,
|
|
20451
20451
|
subCategory: ce.MISCONFIGURATIONS
|
|
20452
20452
|
})
|
|
20453
20453
|
},
|
|
@@ -20455,7 +20455,7 @@ const YL = {
|
|
|
20455
20455
|
type: "item",
|
|
20456
20456
|
title: Ds.EXPOSED_SECRETS,
|
|
20457
20457
|
id: Ps({
|
|
20458
|
-
category:
|
|
20458
|
+
category: me.KUBERNETES_MANIFEST,
|
|
20459
20459
|
subCategory: ce.EXPOSED_SECRETS
|
|
20460
20460
|
})
|
|
20461
20461
|
}
|
|
@@ -20489,22 +20489,22 @@ const YL = {
|
|
|
20489
20489
|
return l;
|
|
20490
20490
|
}), RD = (e, s, n, a, r) => {
|
|
20491
20491
|
switch (s) {
|
|
20492
|
-
case
|
|
20492
|
+
case me.IMAGE_SCAN:
|
|
20493
20493
|
return gD(e[s], n, a, r);
|
|
20494
|
-
case
|
|
20494
|
+
case me.CODE_SCAN:
|
|
20495
20495
|
return cD(e[s], n, a, r);
|
|
20496
|
-
case
|
|
20496
|
+
case me.KUBERNETES_MANIFEST:
|
|
20497
20497
|
return ND(e[s], n, a);
|
|
20498
20498
|
default:
|
|
20499
20499
|
return null;
|
|
20500
20500
|
}
|
|
20501
20501
|
}, ID = (e, s, n, a) => {
|
|
20502
20502
|
switch (s) {
|
|
20503
|
-
case
|
|
20503
|
+
case me.CODE_SCAN:
|
|
20504
20504
|
return uD(e, n, a);
|
|
20505
|
-
case
|
|
20505
|
+
case me.IMAGE_SCAN:
|
|
20506
20506
|
return CD(e, n, a);
|
|
20507
|
-
case
|
|
20507
|
+
case me.KUBERNETES_MANIFEST:
|
|
20508
20508
|
return SD(e, n, a);
|
|
20509
20509
|
default:
|
|
20510
20510
|
return null;
|
|
@@ -20570,7 +20570,7 @@ const YL = {
|
|
|
20570
20570
|
const f = ID(c, l.category, l.subCategory, _);
|
|
20571
20571
|
if (f)
|
|
20572
20572
|
return /* @__PURE__ */ t.jsx(Ze, { ...f, imageType: Js.Large });
|
|
20573
|
-
const { headers: C, rows: N, defaultSortIndex: b, hasExpandableRows: T } = _ || RD(c, l.category, l.subCategory, u, o), { entities: S, lastScanTimeString: O, scanToolName: v, scanToolUrl:
|
|
20573
|
+
const { headers: C, rows: N, defaultSortIndex: b, hasExpandableRows: T } = _ || RD(c, l.category, l.subCategory, u, o), { entities: S, lastScanTimeString: O, scanToolName: v, scanToolUrl: A } = _ || vD(c, l.category, l.subCategory);
|
|
20574
20574
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
|
20575
20575
|
S?.length ? /* @__PURE__ */ t.jsx(
|
|
20576
20576
|
WL,
|
|
@@ -20578,7 +20578,7 @@ const YL = {
|
|
|
20578
20578
|
entities: S,
|
|
20579
20579
|
lastScanTimeString: O,
|
|
20580
20580
|
scanToolName: v,
|
|
20581
|
-
scanToolUrl:
|
|
20581
|
+
scanToolUrl: A
|
|
20582
20582
|
},
|
|
20583
20583
|
`${l.category}-${l.subCategory}`
|
|
20584
20584
|
) : null,
|
|
@@ -20627,13 +20627,13 @@ const YL = {
|
|
|
20627
20627
|
artifactId: a,
|
|
20628
20628
|
installedAppVersionHistoryId: r
|
|
20629
20629
|
}, i = Ue(Y.SCAN_RESULT, o);
|
|
20630
|
-
return await
|
|
20630
|
+
return await _e(i);
|
|
20631
20631
|
}, kr = {
|
|
20632
|
-
[
|
|
20632
|
+
[me.IMAGE_SCAN]: {
|
|
20633
20633
|
label: xs.IMAGE_SCAN,
|
|
20634
20634
|
subCategories: [ce.VULNERABILITIES, ce.LICENSE]
|
|
20635
20635
|
},
|
|
20636
|
-
[
|
|
20636
|
+
[me.CODE_SCAN]: {
|
|
20637
20637
|
label: xs.CODE_SCAN,
|
|
20638
20638
|
subCategories: [
|
|
20639
20639
|
ce.VULNERABILITIES,
|
|
@@ -20642,7 +20642,7 @@ const YL = {
|
|
|
20642
20642
|
ce.EXPOSED_SECRETS
|
|
20643
20643
|
]
|
|
20644
20644
|
},
|
|
20645
|
-
[
|
|
20645
|
+
[me.KUBERNETES_MANIFEST]: {
|
|
20646
20646
|
label: xs.KUBERNETES_MANIFEST,
|
|
20647
20647
|
subCategories: [ce.MISCONFIGURATIONS, ce.EXPOSED_SECRETS]
|
|
20648
20648
|
}
|
|
@@ -20734,9 +20734,9 @@ const YL = {
|
|
|
20734
20734
|
}), p = (x) => {
|
|
20735
20735
|
const g = i?.vulnerability?.list?.[0];
|
|
20736
20736
|
switch (x) {
|
|
20737
|
-
case
|
|
20737
|
+
case me.CODE_SCAN:
|
|
20738
20738
|
return { scanToolName: c?.scanToolName, scanToolUrl: c?.scanToolUrl };
|
|
20739
|
-
case
|
|
20739
|
+
case me.KUBERNETES_MANIFEST:
|
|
20740
20740
|
return { scanToolName: l?.scanToolName, scanToolUrl: l?.scanToolUrl };
|
|
20741
20741
|
default:
|
|
20742
20742
|
return {
|
|
@@ -20755,7 +20755,7 @@ const YL = {
|
|
|
20755
20755
|
};
|
|
20756
20756
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
20757
20757
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((x) => {
|
|
20758
|
-
const g = x !==
|
|
20758
|
+
const g = x !== me.IMAGE_SCAN && (e.codeScan?.status === "Failed" || e.kubernetesManifest?.status === "Failed"), { scanToolName: f, scanToolUrl: C } = p(x);
|
|
20759
20759
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
|
20760
20760
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space pb-8 dc__border-bottom-n1", children: [
|
|
20761
20761
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[x].label }),
|
|
@@ -20764,14 +20764,14 @@ const YL = {
|
|
|
20764
20764
|
g ? /* @__PURE__ */ t.jsx("div", { className: "dc__border br-8", children: /* @__PURE__ */ t.jsx(
|
|
20765
20765
|
gn,
|
|
20766
20766
|
{
|
|
20767
|
-
title: x ===
|
|
20767
|
+
title: x === me.CODE_SCAN ? "Code scan failed" : "Manifest scan failed",
|
|
20768
20768
|
subTitle: "",
|
|
20769
20769
|
description: ""
|
|
20770
20770
|
}
|
|
20771
20771
|
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[x].subCategories.map((N) => {
|
|
20772
20772
|
if (!e[x][N])
|
|
20773
20773
|
return null;
|
|
20774
|
-
const b = x ===
|
|
20774
|
+
const b = x === me.IMAGE_SCAN && ro(e[x][N].list ?? []) === "Failed", T = N === ce.MISCONFIGURATIONS ? e[x][N]?.misConfSummary?.status : e[x][N]?.summary?.severities;
|
|
20775
20775
|
return /* @__PURE__ */ t.jsx(
|
|
20776
20776
|
rf,
|
|
20777
20777
|
{
|
|
@@ -20844,7 +20844,7 @@ const yY = (e) => e.sort(
|
|
|
20844
20844
|
/* @__PURE__ */ t.jsx(
|
|
20845
20845
|
rf,
|
|
20846
20846
|
{
|
|
20847
|
-
category:
|
|
20847
|
+
category: me.IMAGE_SCAN,
|
|
20848
20848
|
subCategory: ce.VULNERABILITIES,
|
|
20849
20849
|
severities: E?.summary?.severities,
|
|
20850
20850
|
handleCardClick: _,
|
|
@@ -21075,12 +21075,12 @@ const yY = (e) => e.sort(
|
|
|
21075
21075
|
var Mn, kn;
|
|
21076
21076
|
class gu {
|
|
21077
21077
|
constructor(s) {
|
|
21078
|
-
|
|
21079
|
-
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21078
|
+
ue(this, "size");
|
|
21079
|
+
ue(this, "results", []);
|
|
21080
|
+
ue(this, "map", /* @__PURE__ */ new Map());
|
|
21081
|
+
ue(this, "retryOperations", []);
|
|
21082
|
+
ue(this, "retryOperationsSet", /* @__PURE__ */ new Set());
|
|
21083
|
+
ue(this, "barChartEntities", {
|
|
21084
21084
|
Completed: 0,
|
|
21085
21085
|
Failed: 0,
|
|
21086
21086
|
Progressing: 0,
|
|
@@ -21088,30 +21088,30 @@ class gu {
|
|
|
21088
21088
|
});
|
|
21089
21089
|
nr(this, Mn, !1);
|
|
21090
21090
|
nr(this, kn, !1);
|
|
21091
|
-
|
|
21091
|
+
ue(this, "updateStatus", (s, n) => {
|
|
21092
21092
|
n.status === "Completed" && !tn(this, kn) && ar(this, kn, !0), n.status === "Failed" && !tn(this, Mn) && ar(this, Mn, !0), n.status === "Failed" && n.retryOperation && this.retryOperationsSet.has(s) && (this.retryOperations.push(n.retryOperation), this.retryOperationsSet.add(s)), n.status !== "Progressing" && (this.barChartEntities[n.status] ? this.barChartEntities[n.status] += 1 : this.barChartEntities[n.status] = 1), this.barChartEntities.Pending = this.size - (this.barChartEntities.Failed ?? 0) - (this.barChartEntities.Completed ?? 0), this.barChartEntities.Pending <= 0 && delete this.barChartEntities.Pending;
|
|
21093
21093
|
});
|
|
21094
|
-
|
|
21094
|
+
ue(this, "addResult", (s) => {
|
|
21095
21095
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
|
21096
21096
|
return this.results.push(r), this.map.set(a, r), this.updateStatus(a, r), a;
|
|
21097
21097
|
});
|
|
21098
|
-
|
|
21099
|
-
|
|
21098
|
+
ue(this, "getResults", (s) => s ? [...this.results].sort(s) : this.results);
|
|
21099
|
+
ue(this, "getBarChartEntities", () => Object.entries(this.barChartEntities).filter(([s, n]) => fu[s] && !!n).map(([s, n]) => ({
|
|
21100
21100
|
color: fu[s],
|
|
21101
21101
|
label: s,
|
|
21102
21102
|
value: n
|
|
21103
21103
|
})));
|
|
21104
|
-
|
|
21104
|
+
ue(this, "getResultsStatusCount", () => ({
|
|
21105
21105
|
...this.barChartEntities
|
|
21106
21106
|
}));
|
|
21107
|
-
|
|
21108
|
-
|
|
21107
|
+
ue(this, "getSize", () => this.map.size);
|
|
21108
|
+
ue(this, "updateResultStatus", (s, n) => {
|
|
21109
21109
|
const r = { ...this.map.get(s), ...n };
|
|
21110
21110
|
this.map.set(s, r), this.results[s] = r, n.status === "Failed" && n.retryOperation && this.retryOperations.push(n.retryOperation), this.updateStatus(s, r);
|
|
21111
21111
|
});
|
|
21112
|
-
|
|
21113
|
-
|
|
21114
|
-
|
|
21112
|
+
ue(this, "getRetryOperations", () => this.retryOperations);
|
|
21113
|
+
ue(this, "hasAnyOperationFailed", () => tn(this, Mn));
|
|
21114
|
+
ue(this, "getHasAnyOperationSucceeded", () => tn(this, kn));
|
|
21115
21115
|
this.size = s, this.barChartEntities.Pending = s;
|
|
21116
21116
|
}
|
|
21117
21117
|
}
|
|
@@ -21142,8 +21142,8 @@ const OY = ({
|
|
|
21142
21142
|
O >= 0 || (O = setTimeout(() => {
|
|
21143
21143
|
p((/* @__PURE__ */ new Date()).toISOString()), O = -1;
|
|
21144
21144
|
}, 10));
|
|
21145
|
-
},
|
|
21146
|
-
const { operation:
|
|
21145
|
+
}, A = _.current.map((I) => async () => {
|
|
21146
|
+
const { operation: R, name: y, additionalKeys: D, renderContentAtResultRowEnd: k = null } = I;
|
|
21147
21147
|
if (E.current.signal.aborted)
|
|
21148
21148
|
throw new Error("bulk operations aborted");
|
|
21149
21149
|
let P = -1;
|
|
@@ -21154,7 +21154,7 @@ const OY = ({
|
|
|
21154
21154
|
status: "Progressing",
|
|
21155
21155
|
message: "-"
|
|
21156
21156
|
}), v();
|
|
21157
|
-
const U = await
|
|
21157
|
+
const U = await R(E, l);
|
|
21158
21158
|
h.current.updateResultStatus(P, {
|
|
21159
21159
|
status: "Completed",
|
|
21160
21160
|
...k ? {
|
|
@@ -21177,7 +21177,7 @@ const OY = ({
|
|
|
21177
21177
|
}), v();
|
|
21178
21178
|
}
|
|
21179
21179
|
});
|
|
21180
|
-
await tv(
|
|
21180
|
+
await tv(A, !0), $e.showToast({
|
|
21181
21181
|
variant: ve.info,
|
|
21182
21182
|
description: "Action completed"
|
|
21183
21183
|
}), r && g();
|
|
@@ -22144,15 +22144,15 @@ const DY = (e) => {
|
|
|
22144
22144
|
yAxisMax: u,
|
|
22145
22145
|
yScaleTitle: m,
|
|
22146
22146
|
centerText: p
|
|
22147
|
-
} = e, { getTooltipContent: _, placement: h } = o || { placement: "top" }, E = B(null), x = B(null), g = B(null), f = B(null), [C, N] = w(!1), [b, T] = w(null), { appTheme: S } = hn(), v = Nk((
|
|
22148
|
-
const I =
|
|
22147
|
+
} = e, { getTooltipContent: _, placement: h } = o || { placement: "top" }, E = B(null), x = B(null), g = B(null), f = B(null), [C, N] = w(!1), [b, T] = w(null), { appTheme: S } = hn(), v = Nk((A) => {
|
|
22148
|
+
const I = A.tooltip;
|
|
22149
22149
|
if (!g.current || !x.current || !I || I.opacity === 0 || !I.body) {
|
|
22150
22150
|
N(!1);
|
|
22151
22151
|
return;
|
|
22152
22152
|
}
|
|
22153
|
-
const { caretX:
|
|
22154
|
-
g.current.style.transform = `translate(${D +
|
|
22155
|
-
const P = _ ? _(
|
|
22153
|
+
const { caretX: R, caretY: y } = I, { offsetLeft: D, offsetTop: k } = A.chart.canvas;
|
|
22154
|
+
g.current.style.transform = `translate(${D + R}px, ${k + y}px)`, g.current.style.pointerEvents = "none";
|
|
22155
|
+
const P = _ ? _(A) : QD({
|
|
22156
22156
|
title: I.title,
|
|
22157
22157
|
body: I.body,
|
|
22158
22158
|
labelColors: I.labelColors
|
|
@@ -22160,10 +22160,10 @@ const DY = (e) => {
|
|
|
22160
22160
|
T(P), N(!0);
|
|
22161
22161
|
}, 50);
|
|
22162
22162
|
return M(() => {
|
|
22163
|
-
const
|
|
22164
|
-
if (!
|
|
22163
|
+
const A = E.current?.getContext("2d");
|
|
22164
|
+
if (!A)
|
|
22165
22165
|
return Ne;
|
|
22166
|
-
const I = KD(i),
|
|
22166
|
+
const I = KD(i), R = {
|
|
22167
22167
|
labels: n,
|
|
22168
22168
|
datasets: ZD({ type: i, datasets: c, appTheme: S })
|
|
22169
22169
|
}, y = XD({
|
|
@@ -22172,9 +22172,9 @@ const DY = (e) => {
|
|
|
22172
22172
|
externalTooltipHandler: v,
|
|
22173
22173
|
setTooltipVisible: N
|
|
22174
22174
|
});
|
|
22175
|
-
return x.current = new dm(
|
|
22175
|
+
return x.current = new dm(A, {
|
|
22176
22176
|
type: I,
|
|
22177
|
-
data:
|
|
22177
|
+
data: R,
|
|
22178
22178
|
options: {
|
|
22179
22179
|
...y
|
|
22180
22180
|
},
|
|
@@ -23697,9 +23697,9 @@ const jt = ({
|
|
|
23697
23697
|
if (N.isIntersecting && N.intersectionRatio >= 1)
|
|
23698
23698
|
l(1);
|
|
23699
23699
|
else {
|
|
23700
|
-
const { boundingClientRect: b, rootBounds: T } = N, { x: S, y: O, height: v, width:
|
|
23700
|
+
const { boundingClientRect: b, rootBounds: T } = N, { x: S, y: O, height: v, width: A } = b, {
|
|
23701
23701
|
x: I,
|
|
23702
|
-
y:
|
|
23702
|
+
y: R,
|
|
23703
23703
|
height: y,
|
|
23704
23704
|
width: D,
|
|
23705
23705
|
left: k,
|
|
@@ -23707,7 +23707,7 @@ const jt = ({
|
|
|
23707
23707
|
top: U,
|
|
23708
23708
|
bottom: L
|
|
23709
23709
|
} = u.current.getBoundingClientRect();
|
|
23710
|
-
O + v > T.height && (i({ left: I, bottom: document.documentElement.clientHeight -
|
|
23710
|
+
O + v > T.height && (i({ left: I, bottom: document.documentElement.clientHeight - R }), l(1)), S + A > T.width && (i((G) => ({ ...G, right: "20px", left: "unset" })), l(1));
|
|
23711
23711
|
}
|
|
23712
23712
|
});
|
|
23713
23713
|
}
|
|
@@ -23724,7 +23724,7 @@ const jt = ({
|
|
|
23724
23724
|
function g(f) {
|
|
23725
23725
|
if (!f) return;
|
|
23726
23726
|
u.current = f;
|
|
23727
|
-
const { bottom: C, height: N, left: b, right: T, top: S, width: O, x: v, y:
|
|
23727
|
+
const { bottom: C, height: N, left: b, right: T, top: S, width: O, x: v, y: A } = f.getBoundingClientRect();
|
|
23728
23728
|
m.current = O;
|
|
23729
23729
|
}
|
|
23730
23730
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -23802,8 +23802,8 @@ jt.Button = $1;
|
|
|
23802
23802
|
jt.Body = U1;
|
|
23803
23803
|
class Yo {
|
|
23804
23804
|
constructor() {
|
|
23805
|
-
|
|
23806
|
-
|
|
23805
|
+
ue(this, "propagateTagKey", (s) => Gc(s));
|
|
23806
|
+
ue(this, "propagateTagValue", (s, n) => {
|
|
23807
23807
|
const a = [];
|
|
23808
23808
|
return s ? n.startsWith("devtron.ai/") || a.push(...Hi(s)) : a.push("Value is required"), { isValid: a.length === 0, messages: a };
|
|
23809
23809
|
});
|
|
@@ -23833,39 +23833,39 @@ const Nu = ({
|
|
|
23833
23833
|
}, g = (v) => {
|
|
23834
23834
|
if (!v.relatedTarget || !v.relatedTarget.classList.value || !v.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
|
|
23835
23835
|
h("");
|
|
23836
|
-
const
|
|
23837
|
-
|
|
23836
|
+
const A = { ...s };
|
|
23837
|
+
A[o] = m, o === gs.KEY ? A.isInvalidKey = m || A.propagate ? !E.propagateTagKey(m).isValid : A.value !== "" : m || r || A.propagate ? (A.isInvalidValue = !E.propagateTagValue(m, A.key).isValid, A.isInvalidKey = !A.key || A.isInvalidKey) : (A.isInvalidValue = !1, A.isInvalidKey = A.key ? A.isInvalidKey : !1), n(e, A);
|
|
23838
23838
|
}
|
|
23839
23839
|
}, f = (v) => {
|
|
23840
23840
|
p(v.target.value);
|
|
23841
23841
|
}, C = (v) => {
|
|
23842
23842
|
Oe(v);
|
|
23843
|
-
const
|
|
23844
|
-
|
|
23843
|
+
const A = { ...s };
|
|
23844
|
+
A[o] = v.currentTarget.dataset.key, A.propagate = v.currentTarget.dataset.propagate === "true", n(e, A), h("");
|
|
23845
23845
|
}, N = () => {
|
|
23846
23846
|
let v = { isValid: !0, messages: [] };
|
|
23847
23847
|
return o === gs.KEY ? (m || s.value) && (v = E.propagateTagKey(m)) : (r || m || s.propagate) && (v = E.propagateTagValue(m, s.key)), v.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Oe, "data-testid": "tag-label-cross-stop-propagation", children: [
|
|
23848
|
-
v.messages.map((
|
|
23848
|
+
v.messages.map((A) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
|
23849
23849
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Xs, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
|
23850
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
|
23851
|
-
] },
|
|
23850
|
+
/* @__PURE__ */ t.jsx("span", { children: A })
|
|
23851
|
+
] }, A)),
|
|
23852
23852
|
o === gs.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
|
23853
23853
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Sa, { className: "icon-dim-14 mt-3 mr-4" }) }),
|
|
23854
23854
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
|
23855
23855
|
] })
|
|
23856
23856
|
] });
|
|
23857
|
-
}, b = (v,
|
|
23857
|
+
}, b = (v, A) => /* @__PURE__ */ t.jsx(
|
|
23858
23858
|
"div",
|
|
23859
23859
|
{
|
|
23860
23860
|
"data-key": v.label,
|
|
23861
23861
|
"data-propagate": v.propagate,
|
|
23862
23862
|
className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
|
|
23863
23863
|
onClick: C,
|
|
23864
|
-
"data-testid": `tag-label-value-${
|
|
23864
|
+
"data-testid": `tag-label-value-${A}`,
|
|
23865
23865
|
children: v.label
|
|
23866
23866
|
},
|
|
23867
|
-
`${v.value}-${
|
|
23868
|
-
), T = (v,
|
|
23867
|
+
`${v.value}-${A}`
|
|
23868
|
+
), T = (v, A) => /* @__PURE__ */ t.jsx(
|
|
23869
23869
|
ye,
|
|
23870
23870
|
{
|
|
23871
23871
|
className: "default-tt",
|
|
@@ -23875,14 +23875,14 @@ const Nu = ({
|
|
|
23875
23875
|
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: v.label }),
|
|
23876
23876
|
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: v.description })
|
|
23877
23877
|
] }),
|
|
23878
|
-
children: b(v,
|
|
23878
|
+
children: b(v, A)
|
|
23879
23879
|
}
|
|
23880
23880
|
), S = () => {
|
|
23881
23881
|
if (a?.length) {
|
|
23882
|
-
const v = a.filter((
|
|
23882
|
+
const v = a.filter((A) => A.label.indexOf(m) >= 0);
|
|
23883
23883
|
if (v.length)
|
|
23884
23884
|
return /* @__PURE__ */ t.jsx("div", { children: v.map(
|
|
23885
|
-
(
|
|
23885
|
+
(A, I) => A.description ? T(A, I) : b(A, I)
|
|
23886
23886
|
) });
|
|
23887
23887
|
}
|
|
23888
23888
|
return N();
|
|
@@ -24060,21 +24060,21 @@ const V1 = ({
|
|
|
24060
24060
|
focusableFieldKey: m,
|
|
24061
24061
|
shouldAutoFocusOnMount: p = !1
|
|
24062
24062
|
}) => {
|
|
24063
|
-
const _ = s.every(({ key:
|
|
24063
|
+
const _ = s.every(({ key: R }) => !e[0]?.data[R].value), h = !!e.length, E = e.length === 1 && _, x = L1(
|
|
24064
24064
|
s,
|
|
24065
24065
|
o,
|
|
24066
24066
|
a || n
|
|
24067
24067
|
), g = B(p), f = B(null);
|
|
24068
|
-
f.current || (f.current = e.reduce((
|
|
24069
|
-
const C = J(() => e.map(({ id:
|
|
24068
|
+
f.current || (f.current = e.reduce((R, y) => (R[y.id] = s.reduce((D, { key: k }) => ({ ...D, [k]: Vr() }), {}), R), {}));
|
|
24069
|
+
const C = J(() => e.map(({ id: R }) => R), [e]);
|
|
24070
24070
|
M(() => {
|
|
24071
|
-
const
|
|
24072
|
-
f.current =
|
|
24071
|
+
const R = C.reduce((y, D) => (f.current[D] ? y[D] = f.current[D] : y[D] = s.reduce((k, { key: P }) => ({ ...k, [P]: Vr() }), {}), y), {});
|
|
24072
|
+
f.current = R;
|
|
24073
24073
|
}, [JSON.stringify(C)]);
|
|
24074
|
-
const N = (
|
|
24074
|
+
const N = (R, y) => (D) => {
|
|
24075
24075
|
let k = "";
|
|
24076
24076
|
const P = { selectedValue: null, files: [] };
|
|
24077
|
-
switch (
|
|
24077
|
+
switch (R.data[y].type) {
|
|
24078
24078
|
case et.DROPDOWN:
|
|
24079
24079
|
case et.SELECT_TEXT:
|
|
24080
24080
|
k = D?.value || "", P.selectedValue = D;
|
|
@@ -24087,33 +24087,33 @@ const V1 = ({
|
|
|
24087
24087
|
k = D.target.value;
|
|
24088
24088
|
break;
|
|
24089
24089
|
}
|
|
24090
|
-
i(
|
|
24091
|
-
}, b = (
|
|
24092
|
-
c(
|
|
24093
|
-
}, T = (
|
|
24094
|
-
const k = n ||
|
|
24095
|
-
switch (!p && !g.current && D === 0 && f?.current?.[
|
|
24090
|
+
i(R, y, k, P);
|
|
24091
|
+
}, b = (R) => () => {
|
|
24092
|
+
c(R);
|
|
24093
|
+
}, T = (R, y, D) => {
|
|
24094
|
+
const k = n || R.data[y].disabled, P = g.current && y === (m ?? s[0].key) && D === 0;
|
|
24095
|
+
switch (!p && !g.current && D === 0 && f?.current?.[R.id]?.[y].current && (g.current = !0), R.data[y].type) {
|
|
24096
24096
|
case et.DROPDOWN:
|
|
24097
24097
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
|
24098
24098
|
$t,
|
|
24099
24099
|
{
|
|
24100
24100
|
autoFocus: P,
|
|
24101
|
-
...
|
|
24102
|
-
inputId: `data-table-${
|
|
24101
|
+
...R.data[y].props,
|
|
24102
|
+
inputId: `data-table-${R.id}-${y}-cell`,
|
|
24103
24103
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
|
24104
24104
|
variant: Kt.COMPACT,
|
|
24105
24105
|
value: Un(
|
|
24106
|
-
|
|
24107
|
-
|
|
24106
|
+
R.data[y].props?.options,
|
|
24107
|
+
R.data[y].value,
|
|
24108
24108
|
null
|
|
24109
24109
|
),
|
|
24110
|
-
onChange: N(
|
|
24110
|
+
onChange: N(R, y),
|
|
24111
24111
|
isDisabled: k,
|
|
24112
24112
|
fullWidth: !0
|
|
24113
24113
|
}
|
|
24114
24114
|
) });
|
|
24115
24115
|
case et.SELECT_TEXT: {
|
|
24116
|
-
const { value: U, props: L } =
|
|
24116
|
+
const { value: U, props: L } = R.data[y], { isCreatable: G = !0 } = L;
|
|
24117
24117
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
|
24118
24118
|
TR,
|
|
24119
24119
|
{
|
|
@@ -24123,7 +24123,7 @@ const V1 = ({
|
|
|
24123
24123
|
...L,
|
|
24124
24124
|
variant: Kt.COMPACT,
|
|
24125
24125
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
|
24126
|
-
inputId: `data-table-${
|
|
24126
|
+
inputId: `data-table-${R.id}-${y}-cell`,
|
|
24127
24127
|
minHeight: 20,
|
|
24128
24128
|
maxHeight: 160,
|
|
24129
24129
|
value: Un(
|
|
@@ -24131,11 +24131,11 @@ const V1 = ({
|
|
|
24131
24131
|
U,
|
|
24132
24132
|
G && U ? { label: U, value: U } : null
|
|
24133
24133
|
),
|
|
24134
|
-
onChange: N(
|
|
24134
|
+
onChange: N(R, y),
|
|
24135
24135
|
isDisabled: k,
|
|
24136
24136
|
formatCreateLabel: (z) => `Use ${z}`,
|
|
24137
|
-
refVar: f?.current?.[
|
|
24138
|
-
dependentRefs: f?.current?.[
|
|
24137
|
+
refVar: f?.current?.[R.id]?.[y],
|
|
24138
|
+
dependentRefs: f?.current?.[R.id],
|
|
24139
24139
|
fullWidth: !0
|
|
24140
24140
|
}
|
|
24141
24141
|
) });
|
|
@@ -24145,15 +24145,15 @@ const V1 = ({
|
|
|
24145
24145
|
_t,
|
|
24146
24146
|
{
|
|
24147
24147
|
condition: !!u,
|
|
24148
|
-
wrap: H1(u,
|
|
24148
|
+
wrap: H1(u, R),
|
|
24149
24149
|
children: /* @__PURE__ */ t.jsxs(
|
|
24150
24150
|
"button",
|
|
24151
24151
|
{
|
|
24152
24152
|
type: "button",
|
|
24153
|
-
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${
|
|
24153
|
+
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${R.data[y].disabled ? "dc__disabled" : ""}`,
|
|
24154
24154
|
children: [
|
|
24155
|
-
|
|
24156
|
-
|
|
24155
|
+
R.data[y].props?.icon || null,
|
|
24156
|
+
R.data[y].props.text
|
|
24157
24157
|
]
|
|
24158
24158
|
}
|
|
24159
24159
|
)
|
|
@@ -24163,13 +24163,13 @@ const V1 = ({
|
|
|
24163
24163
|
return /* @__PURE__ */ t.jsx(
|
|
24164
24164
|
"div",
|
|
24165
24165
|
{
|
|
24166
|
-
className: `mw-none w-100 h-100 flex top left px-8 ${
|
|
24166
|
+
className: `mw-none w-100 h-100 flex top left px-8 ${R.data[y].props?.isLoading || R.data[y].value ? "py-3" : "py-8"}`,
|
|
24167
24167
|
children: /* @__PURE__ */ t.jsx(
|
|
24168
24168
|
V1,
|
|
24169
24169
|
{
|
|
24170
|
-
...
|
|
24171
|
-
fileName:
|
|
24172
|
-
onUpload: N(
|
|
24170
|
+
...R.data[y].props,
|
|
24171
|
+
fileName: R.data[y].value,
|
|
24172
|
+
onUpload: N(R, y)
|
|
24173
24173
|
}
|
|
24174
24174
|
)
|
|
24175
24175
|
}
|
|
@@ -24179,34 +24179,34 @@ const V1 = ({
|
|
|
24179
24179
|
df,
|
|
24180
24180
|
{
|
|
24181
24181
|
autoFocus: P,
|
|
24182
|
-
...
|
|
24183
|
-
id: `data-table-${
|
|
24182
|
+
...R.data[y].props,
|
|
24183
|
+
id: `data-table-${R.id}-${y}-cell`,
|
|
24184
24184
|
className: `dynamic-data-table__cell-input placeholder-cn5 p-8 cn-9 fs-13 lh-20 dc__align-self-start dc__no-border-radius ${k ? "cursor-not-allowed" : ""}`,
|
|
24185
24185
|
minHeight: 20,
|
|
24186
24186
|
maxHeight: 160,
|
|
24187
|
-
value:
|
|
24188
|
-
onChange: N(
|
|
24187
|
+
value: R.data[y].value,
|
|
24188
|
+
onChange: N(R, y),
|
|
24189
24189
|
disabled: k,
|
|
24190
|
-
refVar: f?.current?.[
|
|
24191
|
-
dependentRefs: f?.current?.[
|
|
24190
|
+
refVar: f?.current?.[R.id]?.[y],
|
|
24191
|
+
dependentRefs: f?.current?.[R.id],
|
|
24192
24192
|
disableOnBlurResizeToMinHeight: !0
|
|
24193
24193
|
}
|
|
24194
24194
|
);
|
|
24195
24195
|
}
|
|
24196
|
-
}, S = (
|
|
24196
|
+
}, S = (R, y) => R.data[y].required && /* @__PURE__ */ t.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), O = (R, y, D) => {
|
|
24197
24197
|
const k = D ? l : d;
|
|
24198
|
-
return k?.[y]?.(
|
|
24198
|
+
return k?.[y]?.(R) ? /* @__PURE__ */ t.jsx(
|
|
24199
24199
|
"div",
|
|
24200
24200
|
{
|
|
24201
|
-
className: `flex h-100 dc__align-self-start ${
|
|
24202
|
-
children: k[y](
|
|
24201
|
+
className: `flex h-100 dc__align-self-start ${R.data[y].type !== et.TEXT ? `py-8 ${D ? "pl-8" : "pr-8"}` : ""}`,
|
|
24202
|
+
children: k[y](R)
|
|
24203
24203
|
}
|
|
24204
24204
|
) : null;
|
|
24205
|
-
}, v = (
|
|
24205
|
+
}, v = (R) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4", children: [
|
|
24206
24206
|
/* @__PURE__ */ t.jsx($, { name: "ic-close-small", color: "R500" }),
|
|
24207
|
-
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children:
|
|
24208
|
-
] },
|
|
24209
|
-
const { isValid: D, errorMessages: k } = !
|
|
24207
|
+
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: R })
|
|
24208
|
+
] }, R), A = (R, y) => {
|
|
24209
|
+
const { isValid: D, errorMessages: k } = !R.data[y].disabled && r[R.id]?.[y] ? r[R.id][y] : { isValid: !0, errorMessages: [] }, P = R.data[y].type === et.SELECT_TEXT || R.data[y].type === et.DROPDOWN;
|
|
24210
24210
|
return D ? null : /* @__PURE__ */ t.jsx(
|
|
24211
24211
|
"div",
|
|
24212
24212
|
{
|
|
@@ -24214,44 +24214,44 @@ const V1 = ({
|
|
|
24214
24214
|
children: k.map((U) => v(U))
|
|
24215
24215
|
}
|
|
24216
24216
|
);
|
|
24217
|
-
}, I = (
|
|
24218
|
-
const k = n ||
|
|
24217
|
+
}, I = (R, y, D) => {
|
|
24218
|
+
const k = n || R.data[y].disabled || !1, P = !(r[R.id]?.[y]?.isValid ?? !0), U = /* @__PURE__ */ t.jsx(
|
|
24219
24219
|
Q,
|
|
24220
24220
|
{
|
|
24221
|
-
alwaysShowTippyOnHover: !!
|
|
24222
|
-
className:
|
|
24223
|
-
content:
|
|
24221
|
+
alwaysShowTippyOnHover: !!R.data[y].tooltip?.content || k,
|
|
24222
|
+
className: R.data[y].tooltip?.className,
|
|
24223
|
+
content: R.data[y].tooltip?.content || (k ? "Cannot edit in read-only mode" : ""),
|
|
24224
24224
|
followCursor: "horizontal",
|
|
24225
24225
|
plugins: [am],
|
|
24226
24226
|
children: /* @__PURE__ */ t.jsxs(
|
|
24227
24227
|
"div",
|
|
24228
24228
|
{
|
|
24229
|
-
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${k ? "cursor-not-allowed no-hover" : ""} ${!k && P ? "dynamic-data-table__cell--error no-hover" : ""} ${D1(
|
|
24229
|
+
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${k ? "cursor-not-allowed no-hover" : ""} ${!k && P ? "dynamic-data-table__cell--error no-hover" : ""} ${D1(R.data[y].type) ? "" : "no-hover no-focus"}`,
|
|
24230
24230
|
children: [
|
|
24231
|
-
O(
|
|
24232
|
-
T(
|
|
24233
|
-
S(
|
|
24234
|
-
O(
|
|
24235
|
-
R
|
|
24231
|
+
O(R, y, !0),
|
|
24232
|
+
T(R, y, D),
|
|
24233
|
+
S(R, y),
|
|
24234
|
+
O(R, y),
|
|
24235
|
+
A(R, y)
|
|
24236
24236
|
]
|
|
24237
24237
|
}
|
|
24238
24238
|
)
|
|
24239
24239
|
}
|
|
24240
24240
|
);
|
|
24241
24241
|
if (Ho({ headers: s, actionButtonConfig: o }) === D) {
|
|
24242
|
-
const { renderer: G, position: z = "start" } = o,
|
|
24242
|
+
const { renderer: G, position: z = "start" } = o, q = /* @__PURE__ */ t.jsx(
|
|
24243
24243
|
"div",
|
|
24244
24244
|
{
|
|
24245
24245
|
className: `dc__overflow-hidden flex top bg__primary ${z === "start" && y === s[0].key || a && z === "end" && y === s[s.length - 1].key ? "dynamic-data-table__cell" : ""}`,
|
|
24246
|
-
children: G(
|
|
24246
|
+
children: G(R)
|
|
24247
24247
|
}
|
|
24248
24248
|
);
|
|
24249
24249
|
return z === "start" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
24250
|
-
|
|
24250
|
+
q,
|
|
24251
24251
|
U
|
|
24252
24252
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
24253
24253
|
U,
|
|
24254
|
-
|
|
24254
|
+
q
|
|
24255
24255
|
] });
|
|
24256
24256
|
}
|
|
24257
24257
|
return U;
|
|
@@ -24263,8 +24263,8 @@ const V1 = ({
|
|
|
24263
24263
|
style: {
|
|
24264
24264
|
gridTemplateColumns: x
|
|
24265
24265
|
},
|
|
24266
|
-
children: e.map((
|
|
24267
|
-
s.map(({ key: y }, D) => /* @__PURE__ */ t.jsx(us, { children: I(
|
|
24266
|
+
children: e.map((R) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
|
24267
|
+
s.map(({ key: y }, D) => /* @__PURE__ */ t.jsx(us, { children: I(R, y, D) }, y)),
|
|
24268
24268
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
|
24269
24269
|
H,
|
|
24270
24270
|
{
|
|
@@ -24272,14 +24272,14 @@ const V1 = ({
|
|
|
24272
24272
|
ariaLabel: "Delete Row",
|
|
24273
24273
|
showAriaLabelInTippy: !1,
|
|
24274
24274
|
icon: /* @__PURE__ */ t.jsx($, { name: "ic-close-large", color: null }),
|
|
24275
|
-
disabled: E ||
|
|
24276
|
-
onClick: b(
|
|
24275
|
+
disabled: E || R.disableDelete,
|
|
24276
|
+
onClick: b(R),
|
|
24277
24277
|
variant: W.borderLess,
|
|
24278
24278
|
style: ae.negativeGrey,
|
|
24279
24279
|
size: j.small
|
|
24280
24280
|
}
|
|
24281
24281
|
) })
|
|
24282
|
-
] },
|
|
24282
|
+
] }, R.id))
|
|
24283
24283
|
}
|
|
24284
24284
|
) }) : null;
|
|
24285
24285
|
}, pf = ({
|
|
@@ -24321,10 +24321,10 @@ const V1 = ({
|
|
|
24321
24321
|
newlineOnShiftEnter: N = !1,
|
|
24322
24322
|
...b
|
|
24323
24323
|
}) => {
|
|
24324
|
-
const T = B(null), [S, O] = w(""), { MIN_HEIGHT: v, AUTO_EXPANSION_MAX_HEIGHT:
|
|
24324
|
+
const T = B(null), [S, O] = w(""), { MIN_HEIGHT: v, AUTO_EXPANSION_MAX_HEIGHT: A } = K1(m), I = (U) => {
|
|
24325
24325
|
const L = T.current;
|
|
24326
24326
|
L && (L.style.height = `${U}px`);
|
|
24327
|
-
},
|
|
24327
|
+
}, R = He((U) => {
|
|
24328
24328
|
n && (typeof n == "function" ? n(U) : n.current = U), T.current = U;
|
|
24329
24329
|
}, []), y = () => {
|
|
24330
24330
|
const U = T.current;
|
|
@@ -24332,7 +24332,7 @@ const V1 = ({
|
|
|
24332
24332
|
return;
|
|
24333
24333
|
U.style.height = "auto";
|
|
24334
24334
|
let L = U.scrollHeight;
|
|
24335
|
-
L >
|
|
24335
|
+
L > A ? (L = A, U.style.overflowY = "auto") : U.style.overflowY = "hidden", L = Math.max(v, L), I(L);
|
|
24336
24336
|
};
|
|
24337
24337
|
M(() => {
|
|
24338
24338
|
O(g);
|
|
@@ -24388,7 +24388,7 @@ const V1 = ({
|
|
|
24388
24388
|
onBlur: k,
|
|
24389
24389
|
onKeyDown: P,
|
|
24390
24390
|
className: `${cs[m]} ${_p[m]} ${wo({ borderConfig: f, borderRadiusConfig: _ })} w-100 dc__overflow-auto textarea`,
|
|
24391
|
-
ref:
|
|
24391
|
+
ref: R,
|
|
24392
24392
|
style: {
|
|
24393
24393
|
// No max height when user is expanding
|
|
24394
24394
|
maxHeight: "none",
|
|
@@ -24497,19 +24497,19 @@ const V1 = ({
|
|
|
24497
24497
|
}, g = (v) => {
|
|
24498
24498
|
d(v);
|
|
24499
24499
|
}, f = (v) => {
|
|
24500
|
-
const
|
|
24501
|
-
g(
|
|
24500
|
+
const A = v ?? l;
|
|
24501
|
+
g(A), r(A), n(""), m(!1), _(!1), E("");
|
|
24502
24502
|
}, C = () => {
|
|
24503
24503
|
f(a);
|
|
24504
24504
|
}, N = () => {
|
|
24505
24505
|
f();
|
|
24506
24506
|
}, b = (v) => {
|
|
24507
|
-
const { value:
|
|
24508
|
-
if (r(
|
|
24507
|
+
const { value: A } = v.target;
|
|
24508
|
+
if (r(A), !A.trim()) {
|
|
24509
24509
|
n("");
|
|
24510
24510
|
return;
|
|
24511
24511
|
}
|
|
24512
|
-
E(""), n(Wp(
|
|
24512
|
+
E(""), n(Wp(A, !1).message);
|
|
24513
24513
|
}, T = async () => {
|
|
24514
24514
|
if (!a) {
|
|
24515
24515
|
E(Tu), $e.showToast({
|
|
@@ -24530,12 +24530,12 @@ const V1 = ({
|
|
|
24530
24530
|
const v = await fetch(a, { mode: "cors" });
|
|
24531
24531
|
if (!v.ok)
|
|
24532
24532
|
throw new Error("Invalid network response");
|
|
24533
|
-
const
|
|
24534
|
-
if (
|
|
24533
|
+
const A = await v.blob();
|
|
24534
|
+
if (A.size > bu)
|
|
24535
24535
|
throw new Error(`Please add an image smaller than ${bu / (1024 * 1024)} MB`);
|
|
24536
|
-
const I = URL.createObjectURL(
|
|
24537
|
-
if (URL.revokeObjectURL(I), !
|
|
24538
|
-
throw new Error(
|
|
24536
|
+
const I = URL.createObjectURL(A), R = await MR(I);
|
|
24537
|
+
if (URL.revokeObjectURL(I), !R.isValid)
|
|
24538
|
+
throw new Error(R.message);
|
|
24539
24539
|
C();
|
|
24540
24540
|
} catch (v) {
|
|
24541
24541
|
n(v.message || "Failed to load image"), Le(v);
|
|
@@ -24544,7 +24544,7 @@ const V1 = ({
|
|
|
24544
24544
|
}
|
|
24545
24545
|
}, S = async (v) => {
|
|
24546
24546
|
v.key === "Enter" && (v.preventDefault(), await T());
|
|
24547
|
-
}, O = (v,
|
|
24547
|
+
}, O = (v, A) => /* @__PURE__ */ t.jsx(
|
|
24548
24548
|
Vo,
|
|
24549
24549
|
{
|
|
24550
24550
|
imageProps: {
|
|
@@ -24552,7 +24552,7 @@ const V1 = ({
|
|
|
24552
24552
|
src: l,
|
|
24553
24553
|
height: uo.height,
|
|
24554
24554
|
width: uo.width,
|
|
24555
|
-
className: `br-4 dc__no-shrink ${
|
|
24555
|
+
className: `br-4 dc__no-shrink ${A || ""}`
|
|
24556
24556
|
},
|
|
24557
24557
|
fallbackImage: /* @__PURE__ */ t.jsx(q1, { defaultIcon: e, showEditIcon: v })
|
|
24558
24558
|
}
|
|
@@ -24635,7 +24635,7 @@ const V1 = ({
|
|
|
24635
24635
|
return [...n, ...r];
|
|
24636
24636
|
}, []) : [], Z1 = async () => {
|
|
24637
24637
|
try {
|
|
24638
|
-
const { result: e } = await
|
|
24638
|
+
const { result: e } = await _e(Y.ENVIRONMENT_LIST_MIN);
|
|
24639
24639
|
return e ? X1(e) : [];
|
|
24640
24640
|
} catch (e) {
|
|
24641
24641
|
return Le(e), e;
|
|
@@ -25116,7 +25116,7 @@ const Su = (e) => {
|
|
|
25116
25116
|
hideObjectVariables: a,
|
|
25117
25117
|
isTemplateView: r
|
|
25118
25118
|
}) => {
|
|
25119
|
-
const { result: o } = await
|
|
25119
|
+
const { result: o } = await _e(
|
|
25120
25120
|
`${Y.SCOPED_GLOBAL_VARIABLES}${aP({
|
|
25121
25121
|
appId: e,
|
|
25122
25122
|
envId: s,
|
|
@@ -25361,9 +25361,9 @@ const Su = (e) => {
|
|
|
25361
25361
|
return { x: v.x, y: v.y };
|
|
25362
25362
|
}, [C.current]);
|
|
25363
25363
|
M(() => {
|
|
25364
|
-
const v = new ResizeObserver((
|
|
25365
|
-
if (
|
|
25366
|
-
const { height: I } =
|
|
25364
|
+
const v = new ResizeObserver((A) => {
|
|
25365
|
+
if (A?.length > 0 && l) {
|
|
25366
|
+
const { height: I } = A[0].contentRect;
|
|
25367
25367
|
N.y + p.y + I > f.height && _({
|
|
25368
25368
|
x: p.x,
|
|
25369
25369
|
y: f.height - I - N.y
|
|
@@ -25394,18 +25394,18 @@ const Su = (e) => {
|
|
|
25394
25394
|
}), d(!0);
|
|
25395
25395
|
}, T = He((v) => {
|
|
25396
25396
|
v.stopPropagation(), d(!1);
|
|
25397
|
-
}, []), S = (v,
|
|
25397
|
+
}, []), S = (v, A) => {
|
|
25398
25398
|
const I = {
|
|
25399
|
-
x: N.x +
|
|
25400
|
-
y: N.y +
|
|
25399
|
+
x: N.x + A.x,
|
|
25400
|
+
y: N.y + A.y
|
|
25401
25401
|
};
|
|
25402
|
-
I.y < 0 || I.x < 0 || I.x + (C.current?.getBoundingClientRect().width || 0) > f.width || I.y + (C.current?.getBoundingClientRect().height || 0) > f.height || m(
|
|
25403
|
-
}, O = (v,
|
|
25402
|
+
I.y < 0 || I.x < 0 || I.x + (C.current?.getBoundingClientRect().width || 0) > f.width || I.y + (C.current?.getBoundingClientRect().height || 0) > f.height || m(A);
|
|
25403
|
+
}, O = (v, A) => {
|
|
25404
25404
|
const I = {
|
|
25405
|
-
x: N.x +
|
|
25406
|
-
y: N.y +
|
|
25405
|
+
x: N.x + A.x,
|
|
25406
|
+
y: N.y + A.y
|
|
25407
25407
|
};
|
|
25408
|
-
I.y < 0 || I.x < 0 || I.x + (C.current?.getBoundingClientRect().width || 0) > f.width || I.y + (C.current?.getBoundingClientRect().height || 0) > f.height || (_(
|
|
25408
|
+
I.y < 0 || I.x < 0 || I.x + (C.current?.getBoundingClientRect().width || 0) > f.width || I.y + (C.current?.getBoundingClientRect().height || 0) > f.height || (_(A), m(A));
|
|
25409
25409
|
};
|
|
25410
25410
|
return l ? /* @__PURE__ */ t.jsx(
|
|
25411
25411
|
Br,
|
|
@@ -26005,7 +26005,7 @@ const PP = ({
|
|
|
26005
26005
|
], UP = (e) => ft(Y.TELEMETRY_EVENT, e);
|
|
26006
26006
|
let ju;
|
|
26007
26007
|
const FP = async (e, s) => {
|
|
26008
|
-
const n = await
|
|
26008
|
+
const n = await _e(`${Y.SERVER_INFO_API}?showServerStatus=false`);
|
|
26009
26009
|
return ju = n, typeof Storage < "u" && (localStorage.serverInfo = JSON.stringify(ju)), Promise.resolve(n);
|
|
26010
26010
|
}, BP = 864e5, GP = (e) => 1 + (/* @__PURE__ */ new Date()).valueOf() + (e ?? 0) * BP, lc = async (e) => {
|
|
26011
26011
|
await UP({
|
|
@@ -26113,14 +26113,14 @@ const FP = async (e, s) => {
|
|
|
26113
26113
|
f.current?.open();
|
|
26114
26114
|
}, b = () => {
|
|
26115
26115
|
m(!0);
|
|
26116
|
-
}, T = (I,
|
|
26117
|
-
g && !
|
|
26116
|
+
}, T = (I, R) => {
|
|
26117
|
+
g && !R.metaKey && (R.preventDefault(), _((y) => ({
|
|
26118
26118
|
...y,
|
|
26119
26119
|
state: Ro.DOCUMENTATION,
|
|
26120
26120
|
docLink: `${Ba}${r ? `/${r}` : ""}`,
|
|
26121
26121
|
reinitialize: !0
|
|
26122
26122
|
})));
|
|
26123
|
-
}, S = (I,
|
|
26123
|
+
}, S = (I, R) => {
|
|
26124
26124
|
switch (wi({
|
|
26125
26125
|
category: "Help Nav",
|
|
26126
26126
|
action: `HELP_${I.id.toUpperCase().replace("-", "_")}`
|
|
@@ -26135,14 +26135,14 @@ const FP = async (e, s) => {
|
|
|
26135
26135
|
N();
|
|
26136
26136
|
break;
|
|
26137
26137
|
case Et.VIEW_DOCUMENTATION:
|
|
26138
|
-
T(I,
|
|
26138
|
+
T(I, R);
|
|
26139
26139
|
break;
|
|
26140
26140
|
}
|
|
26141
26141
|
}, O = () => (/* @__PURE__ */ new Date()).valueOf() > c;
|
|
26142
26142
|
M(() => {
|
|
26143
26143
|
l(+localStorage.getItem("clickedOkay"));
|
|
26144
26144
|
}, []);
|
|
26145
|
-
const v = `UheGN3KJ#source=${window.location.hostname}`,
|
|
26145
|
+
const v = `UheGN3KJ#source=${window.location.hostname}`, A = E && h >= 0 && h < rp && O();
|
|
26146
26146
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
26147
26147
|
/* @__PURE__ */ t.jsx(
|
|
26148
26148
|
Ha,
|
|
@@ -26168,7 +26168,7 @@ const FP = async (e, s) => {
|
|
|
26168
26168
|
{
|
|
26169
26169
|
placement: "bottom",
|
|
26170
26170
|
content: /* @__PURE__ */ t.jsx(YP, { hideGettingStartedCard: a }),
|
|
26171
|
-
visible:
|
|
26171
|
+
visible: A,
|
|
26172
26172
|
className: `br-8 ${x === je.light ? "tippy-white-container default-white" : "tippy-black-container default-black"} no-content-padding tippy-shadow`,
|
|
26173
26173
|
interactive: !0,
|
|
26174
26174
|
children: /* @__PURE__ */ t.jsxs(
|
|
@@ -26354,58 +26354,59 @@ const FP = async (e, s) => {
|
|
|
26354
26354
|
setSidePanelConfig: h,
|
|
26355
26355
|
sidePanelConfig: E,
|
|
26356
26356
|
tempAppWindowConfig: x,
|
|
26357
|
-
featureAskDevtronExpert: g
|
|
26358
|
-
|
|
26359
|
-
|
|
26360
|
-
|
|
26361
|
-
|
|
26362
|
-
|
|
26363
|
-
|
|
26364
|
-
|
|
26365
|
-
|
|
26366
|
-
|
|
26357
|
+
featureAskDevtronExpert: g,
|
|
26358
|
+
isSuperAdmin: f
|
|
26359
|
+
} = Xt(), { showSwitchThemeLocationTippy: C, handleShowSwitchThemeLocationTippyChange: N } = hn(), {
|
|
26360
|
+
isTippyCustomized: b,
|
|
26361
|
+
tippyRedirectLink: T,
|
|
26362
|
+
TippyIcon: S,
|
|
26363
|
+
tippyMessage: O,
|
|
26364
|
+
onClickTippyButton: v,
|
|
26365
|
+
additionalContent: A,
|
|
26366
|
+
tippyHeader: I
|
|
26367
|
+
} = d || {}, { email: R } = Dc(), [y, D] = w(
|
|
26367
26368
|
{
|
|
26368
26369
|
serverInfo: void 0,
|
|
26369
26370
|
fetchingServerInfo: !1
|
|
26370
26371
|
}
|
|
26371
|
-
),
|
|
26372
|
+
), k = async () => {
|
|
26372
26373
|
try {
|
|
26373
|
-
const { result:
|
|
26374
|
-
|
|
26375
|
-
serverInfo:
|
|
26374
|
+
const { result: K } = await FP(!0, !0);
|
|
26375
|
+
D({
|
|
26376
|
+
serverInfo: K,
|
|
26376
26377
|
fetchingServerInfo: !1
|
|
26377
26378
|
});
|
|
26378
26379
|
} catch {
|
|
26379
|
-
|
|
26380
|
-
serverInfo:
|
|
26380
|
+
D({
|
|
26381
|
+
serverInfo: y.serverInfo,
|
|
26381
26382
|
fetchingServerInfo: !1
|
|
26382
26383
|
}), console.error("Error in fetching server info");
|
|
26383
26384
|
}
|
|
26384
|
-
},
|
|
26385
|
-
_(!1),
|
|
26386
|
-
}, P = () => {
|
|
26387
|
-
C(!1);
|
|
26385
|
+
}, P = (K) => {
|
|
26386
|
+
_(!1), K && p(+K);
|
|
26388
26387
|
}, U = () => {
|
|
26389
|
-
|
|
26390
|
-
}, L =
|
|
26391
|
-
|
|
26388
|
+
N(!1);
|
|
26389
|
+
}, L = () => {
|
|
26390
|
+
U(), dc("clickedOkay", 1), P();
|
|
26391
|
+
}, G = async () => {
|
|
26392
|
+
!window._env_.K8S_CLIENT && y.serverInfo?.installationType !== Ic.ENTERPRISE && await k(), dc("clickedOkay", 1), P(), await lc(ji.HELP), wi({
|
|
26392
26393
|
category: "Main Navigation",
|
|
26393
26394
|
action: "Help Clicked"
|
|
26394
26395
|
});
|
|
26395
|
-
},
|
|
26396
|
+
}, z = () => /* @__PURE__ */ t.jsxs("div", { className: "px-16 pb-16 flexbox-col dc__gap-4", children: [
|
|
26396
26397
|
/* @__PURE__ */ t.jsx("h6", { className: "m-0 fs-14 fw-6 lh-20", children: "Theme Preference" }),
|
|
26397
26398
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 fw-4 lh-20", children: "You can change your theme preference here" })
|
|
26398
|
-
] }),
|
|
26399
|
+
] }), q = () => {
|
|
26399
26400
|
wi({
|
|
26400
26401
|
category: "AI",
|
|
26401
26402
|
action: "HELP_ASK_DEVTRON_AI"
|
|
26402
|
-
}), h((
|
|
26403
|
-
},
|
|
26404
|
-
g && E.state === "closed" && !x.open && /* @__PURE__ */ t.jsx(Q, { content: "Ask Devtron AI", placement: "bottom", alwaysShowTippyOnHover: !0, delay: [500, null], children: /* @__PURE__ */ t.jsx(
|
|
26403
|
+
}), h((K) => ({ ...K, state: Ro.ASK_DEVTRON }));
|
|
26404
|
+
}, re = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
26405
|
+
f && g && E.state === "closed" && !x.open && /* @__PURE__ */ t.jsx(Q, { content: "Ask Devtron AI", placement: "bottom", alwaysShowTippyOnHover: !0, delay: [500, null], children: /* @__PURE__ */ t.jsx(
|
|
26405
26406
|
"button",
|
|
26406
26407
|
{
|
|
26407
26408
|
className: "enable-svg-animation--hover flex dc__no-background p-2 dc__outline-none-imp dc__no-border",
|
|
26408
|
-
onClick:
|
|
26409
|
+
onClick: q,
|
|
26409
26410
|
type: "button",
|
|
26410
26411
|
"aria-label": "Ask Devtron Expert",
|
|
26411
26412
|
children: /* @__PURE__ */ t.jsx($, { name: "ic-devtron-ai", color: null, size: 28 })
|
|
@@ -26414,10 +26415,10 @@ const FP = async (e, s) => {
|
|
|
26414
26415
|
/* @__PURE__ */ t.jsx(
|
|
26415
26416
|
KP,
|
|
26416
26417
|
{
|
|
26417
|
-
serverInfo:
|
|
26418
|
-
fetchingServerInfo:
|
|
26419
|
-
onClick:
|
|
26420
|
-
hideGettingStartedCard:
|
|
26418
|
+
serverInfo: y.serverInfo,
|
|
26419
|
+
fetchingServerInfo: y.fetchingServerInfo,
|
|
26420
|
+
onClick: G,
|
|
26421
|
+
hideGettingStartedCard: P,
|
|
26421
26422
|
docPath: m
|
|
26422
26423
|
}
|
|
26423
26424
|
),
|
|
@@ -26427,21 +26428,21 @@ const FP = async (e, s) => {
|
|
|
26427
26428
|
theme: Fa.black,
|
|
26428
26429
|
className: "w-250",
|
|
26429
26430
|
placement: "bottom",
|
|
26430
|
-
visible:
|
|
26431
|
+
visible: C,
|
|
26431
26432
|
Icon: Wm,
|
|
26432
26433
|
iconClass: "icon-dim-40 dc__no-shrink",
|
|
26433
26434
|
iconSize: 40,
|
|
26434
|
-
additionalContent:
|
|
26435
|
+
additionalContent: z(),
|
|
26435
26436
|
showCloseButton: !0,
|
|
26436
26437
|
trigger: "manual",
|
|
26437
26438
|
interactive: !0,
|
|
26438
26439
|
arrow: !0,
|
|
26439
|
-
onClose:
|
|
26440
|
-
documentationLink:
|
|
26441
|
-
children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(XP, { user:
|
|
26440
|
+
onClose: U,
|
|
26441
|
+
documentationLink: T,
|
|
26442
|
+
children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(XP, { user: R, onClick: L }) })
|
|
26442
26443
|
}
|
|
26443
26444
|
)
|
|
26444
|
-
] }),
|
|
26445
|
+
] }), fe = () => /* @__PURE__ */ t.jsx(zP, {});
|
|
26445
26446
|
return /* @__PURE__ */ t.jsxs(
|
|
26446
26447
|
"div",
|
|
26447
26448
|
{
|
|
@@ -26482,16 +26483,16 @@ const FP = async (e, s) => {
|
|
|
26482
26483
|
] }),
|
|
26483
26484
|
n && n(),
|
|
26484
26485
|
o && i(),
|
|
26485
|
-
d && (
|
|
26486
|
+
d && (b ? /* @__PURE__ */ t.jsx(
|
|
26486
26487
|
xn,
|
|
26487
26488
|
{
|
|
26488
|
-
infoText:
|
|
26489
|
-
heading: e ||
|
|
26489
|
+
infoText: O,
|
|
26490
|
+
heading: e || I,
|
|
26490
26491
|
iconClassName: "icon-dim-20 ml-8 fcn-7",
|
|
26491
|
-
documentationLink:
|
|
26492
|
+
documentationLink: T,
|
|
26492
26493
|
documentationLinkText: "View Documentation",
|
|
26493
|
-
additionalContent:
|
|
26494
|
-
children:
|
|
26494
|
+
additionalContent: A,
|
|
26495
|
+
children: S && /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(S, { className: "icon-dim-20 ml- cursor fcn-5" }) })
|
|
26495
26496
|
}
|
|
26496
26497
|
) : /* @__PURE__ */ t.jsx(
|
|
26497
26498
|
"a",
|
|
@@ -26499,8 +26500,8 @@ const FP = async (e, s) => {
|
|
|
26499
26500
|
"data-testid": "learn-more-symbol",
|
|
26500
26501
|
className: "dc__link flex",
|
|
26501
26502
|
target: "_blank",
|
|
26502
|
-
href:
|
|
26503
|
-
onClick:
|
|
26503
|
+
href: T,
|
|
26504
|
+
onClick: v,
|
|
26504
26505
|
rel: "noreferrer",
|
|
26505
26506
|
"aria-label": "tippy-icon",
|
|
26506
26507
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -26511,26 +26512,26 @@ const FP = async (e, s) => {
|
|
|
26511
26512
|
placement: "top",
|
|
26512
26513
|
content: /* @__PURE__ */ t.jsxs("span", { style: { display: "block", width: "66px" }, children: [
|
|
26513
26514
|
" ",
|
|
26514
|
-
|
|
26515
|
+
O,
|
|
26515
26516
|
" "
|
|
26516
26517
|
] }),
|
|
26517
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
|
26518
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(S, { className: "icon-dim-20 ml-8 cursor fcn-5" }) })
|
|
26518
26519
|
}
|
|
26519
26520
|
)
|
|
26520
26521
|
}
|
|
26521
26522
|
))
|
|
26522
26523
|
] }),
|
|
26523
26524
|
a && /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
|
|
26524
|
-
|
|
26525
|
+
fe(),
|
|
26525
26526
|
typeof c == "function" && c(),
|
|
26526
|
-
|
|
26527
|
+
re()
|
|
26527
26528
|
] })
|
|
26528
26529
|
] }),
|
|
26529
26530
|
a && r(),
|
|
26530
26531
|
!a && /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
|
|
26531
26532
|
typeof c == "function" && c(),
|
|
26532
|
-
|
|
26533
|
-
|
|
26533
|
+
fe(),
|
|
26534
|
+
re()
|
|
26534
26535
|
] })
|
|
26535
26536
|
]
|
|
26536
26537
|
}
|
|
@@ -27232,44 +27233,44 @@ const iM = ({
|
|
|
27232
27233
|
);
|
|
27233
27234
|
};
|
|
27234
27235
|
M(() => {
|
|
27235
|
-
const { isValid:
|
|
27236
|
+
const { isValid: R, updatedCellError: y } = Du({
|
|
27236
27237
|
rows: T,
|
|
27237
27238
|
validateDuplicateKeys: _,
|
|
27238
27239
|
validateEmptyKeys: h,
|
|
27239
27240
|
validationSchema: m
|
|
27240
27241
|
});
|
|
27241
|
-
x(y), p?.(!
|
|
27242
|
+
x(y), p?.(!R), S();
|
|
27242
27243
|
}, []), _o(() => {
|
|
27243
27244
|
if (!r) {
|
|
27244
27245
|
f(T);
|
|
27245
27246
|
return;
|
|
27246
27247
|
}
|
|
27247
|
-
const
|
|
27248
|
+
const R = new Map(T.map((P) => [P.id, P])), y = new Set(g.map((P) => P.id)), D = g.map((P) => R.get(P.id)).filter(Boolean), k = T.filter((P) => !y.has(P.id));
|
|
27248
27249
|
f([...k, ...D]);
|
|
27249
27250
|
}, [T]), _o(() => {
|
|
27250
27251
|
S();
|
|
27251
27252
|
}, [C, N]);
|
|
27252
|
-
const O = (
|
|
27253
|
+
const O = (R) => {
|
|
27253
27254
|
const { isValid: y, updatedCellError: D } = Du({
|
|
27254
|
-
rows:
|
|
27255
|
+
rows: R,
|
|
27255
27256
|
validateDuplicateKeys: _,
|
|
27256
27257
|
validateEmptyKeys: h,
|
|
27257
27258
|
validationSchema: m
|
|
27258
27259
|
});
|
|
27259
|
-
x(D), p?.(!y), i(mM(
|
|
27260
|
+
x(D), p?.(!y), i(mM(R));
|
|
27260
27261
|
}, v = () => {
|
|
27261
27262
|
const y = [uc(n), ...T];
|
|
27262
27263
|
O(y);
|
|
27263
|
-
},
|
|
27264
|
-
const y = T.filter(({ id: D }) => D !==
|
|
27264
|
+
}, A = (R) => {
|
|
27265
|
+
const y = T.filter(({ id: D }) => D !== R.id);
|
|
27265
27266
|
if (y.length === 0 && !c) {
|
|
27266
27267
|
const D = uc(n);
|
|
27267
27268
|
O([D]);
|
|
27268
27269
|
return;
|
|
27269
27270
|
}
|
|
27270
27271
|
O(y);
|
|
27271
|
-
}, I = (
|
|
27272
|
-
const k = T, P = T.findIndex(({ id: L }) =>
|
|
27272
|
+
}, I = (R, y, D) => {
|
|
27273
|
+
const k = T, P = T.findIndex(({ id: L }) => R.id === L), U = T[P];
|
|
27273
27274
|
U && (U.data[y].value = D, k[P] = U), O(k);
|
|
27274
27275
|
};
|
|
27275
27276
|
return /* @__PURE__ */ t.jsx(
|
|
@@ -27279,7 +27280,7 @@ const iM = ({
|
|
|
27279
27280
|
rows: g,
|
|
27280
27281
|
cellError: u ? E : {},
|
|
27281
27282
|
onRowAdd: v,
|
|
27282
|
-
onRowDelete:
|
|
27283
|
+
onRowDelete: A,
|
|
27283
27284
|
onRowEdit: I,
|
|
27284
27285
|
headerComponent: o,
|
|
27285
27286
|
readOnly: d,
|
|
@@ -27599,31 +27600,31 @@ const xM = ({
|
|
|
27599
27600
|
licenseStatus: r,
|
|
27600
27601
|
licenseStatusError: u,
|
|
27601
27602
|
isSaasInstance: m
|
|
27602
|
-
}), E = l === je.dark, x = B(null), g = ba(window.innerWidth), f = ba(window.innerHeight), C = Us(f, (
|
|
27603
|
+
}), E = l === je.dark, x = B(null), g = ba(window.innerWidth), f = ba(window.innerHeight), C = Us(f, (A) => {
|
|
27603
27604
|
if (!x.current) return 0;
|
|
27604
27605
|
const I = x.current.getBoundingClientRect();
|
|
27605
|
-
return -(
|
|
27606
|
-
}), N = Us(g, (
|
|
27606
|
+
return -(A - I.top - I.height / 2) / Pu;
|
|
27607
|
+
}), N = Us(g, (A) => {
|
|
27607
27608
|
if (!x.current) return 0;
|
|
27608
27609
|
const I = x.current.getBoundingClientRect();
|
|
27609
|
-
return (
|
|
27610
|
+
return (A - I.left - I.width / 2) / Pu;
|
|
27610
27611
|
});
|
|
27611
27612
|
M(() => {
|
|
27612
|
-
const
|
|
27613
|
+
const A = (I) => {
|
|
27613
27614
|
Na(g, I.clientX), Na(f, I.clientY);
|
|
27614
27615
|
};
|
|
27615
|
-
return window.addEventListener("mousemove",
|
|
27616
|
-
window.removeEventListener("mousemove",
|
|
27616
|
+
return window.addEventListener("mousemove", A), () => {
|
|
27617
|
+
window.removeEventListener("mousemove", A);
|
|
27617
27618
|
};
|
|
27618
27619
|
}, []);
|
|
27619
27620
|
const b = Us(
|
|
27620
27621
|
[C, N],
|
|
27621
|
-
([
|
|
27622
|
+
([A, I]) => A + I
|
|
27622
27623
|
), T = Us(b, [-5, 5], [-100, 200]), S = Us(T, [-100, 50, 200], [0, E ? 0.25 : 0.1, 0]), O = E ? Dl`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${S}) ${T}%, transparent)` : Dl`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${S}) ${T}%, transparent)`, v = () => {
|
|
27623
27624
|
if (p)
|
|
27624
27625
|
return null;
|
|
27625
|
-
const
|
|
27626
|
-
return c < 0 ? `Expired ${
|
|
27626
|
+
const A = Ak(c);
|
|
27627
|
+
return c < 0 ? `Expired ${A} ago` : `${A} remaining`;
|
|
27627
27628
|
};
|
|
27628
27629
|
return /* @__PURE__ */ t.jsxs("div", { className: "license-card-wrapper flexbox-col p-8 br-16", style: { backgroundColor: _ }, children: [
|
|
27629
27630
|
/* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
|
|
@@ -28242,7 +28243,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28242
28243
|
appId: n,
|
|
28243
28244
|
size: 20,
|
|
28244
28245
|
tag: s
|
|
28245
|
-
}, { result: i } = await
|
|
28246
|
+
}, { result: i } = await _e(Ue(Y.PLUGIN_GLOBAL_LIST_V2, o), {
|
|
28246
28247
|
signal: r
|
|
28247
28248
|
}), c = Af(i?.parentPlugins);
|
|
28248
28249
|
return {
|
|
@@ -28257,7 +28258,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28257
28258
|
try {
|
|
28258
28259
|
const s = {
|
|
28259
28260
|
appId: e
|
|
28260
|
-
}, { result: n } = await
|
|
28261
|
+
}, { result: n } = await _e(Ue(Y.PLUGIN_GLOBAL_LIST_TAGS, s));
|
|
28261
28262
|
if (!n?.tagNames)
|
|
28262
28263
|
return [];
|
|
28263
28264
|
const a = new Set(n.tagNames);
|
|
@@ -28266,7 +28267,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28266
28267
|
throw Le(s), s;
|
|
28267
28268
|
}
|
|
28268
28269
|
}, x8 = async (e) => {
|
|
28269
|
-
const s = await
|
|
28270
|
+
const s = await _e(Ue(Y.PLUGIN_LIST_MIN, e));
|
|
28270
28271
|
return {
|
|
28271
28272
|
...s,
|
|
28272
28273
|
result: (s?.result ?? []).sort((n, a) => st(n.name, a.name))
|
|
@@ -28384,12 +28385,12 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28384
28385
|
f(te), d?.(te);
|
|
28385
28386
|
}, v = (te) => {
|
|
28386
28387
|
N(te), m?.(te);
|
|
28387
|
-
},
|
|
28388
|
+
}, A = (te) => {
|
|
28388
28389
|
T(te), _?.(te);
|
|
28389
|
-
}, { searchKey: I, selectedTags:
|
|
28390
|
+
}, { searchKey: I, selectedTags: R } = b || {}, y = () => fo(
|
|
28390
28391
|
() => Rf({
|
|
28391
28392
|
searchKey: I,
|
|
28392
|
-
selectedTags:
|
|
28393
|
+
selectedTags: R,
|
|
28393
28394
|
offset: 0,
|
|
28394
28395
|
appId: x ? +x : null,
|
|
28395
28396
|
signal: S.current.signal
|
|
@@ -28398,9 +28399,9 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28398
28399
|
), [D, k, P, U] = Lt(
|
|
28399
28400
|
y,
|
|
28400
28401
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
|
28401
|
-
[I, x,
|
|
28402
|
+
[I, x, R],
|
|
28402
28403
|
c ? !g.length : !0
|
|
28403
|
-
), [L, G, z,
|
|
28404
|
+
), [L, G, z, q] = Lt(
|
|
28404
28405
|
() => UM(x ? +x : null),
|
|
28405
28406
|
[],
|
|
28406
28407
|
!e?.length
|
|
@@ -28428,28 +28429,28 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28428
28429
|
M(() => {
|
|
28429
28430
|
!(D || Ft(P)) && !P && k && re(k);
|
|
28430
28431
|
}, [D, k, P]);
|
|
28431
|
-
const
|
|
28432
|
+
const fe = () => {
|
|
28432
28433
|
c && O([]);
|
|
28433
|
-
},
|
|
28434
|
-
|
|
28434
|
+
}, K = () => {
|
|
28435
|
+
A({
|
|
28435
28436
|
searchKey: "",
|
|
28436
28437
|
selectedTags: []
|
|
28437
|
-
}),
|
|
28438
|
+
}), fe();
|
|
28438
28439
|
}, Z = (te) => {
|
|
28439
|
-
|
|
28440
|
+
A({
|
|
28440
28441
|
...b,
|
|
28441
28442
|
searchKey: te
|
|
28442
|
-
}),
|
|
28443
|
+
}), fe();
|
|
28443
28444
|
}, ge = (te) => {
|
|
28444
|
-
|
|
28445
|
+
A({
|
|
28445
28446
|
...b,
|
|
28446
28447
|
selectedTags: te
|
|
28447
|
-
}),
|
|
28448
|
+
}), fe();
|
|
28448
28449
|
}, xe = (te) => {
|
|
28449
|
-
|
|
28450
|
+
A({
|
|
28450
28451
|
...b,
|
|
28451
28452
|
selectedTags: te.selectedTags
|
|
28452
|
-
}),
|
|
28453
|
+
}), fe();
|
|
28453
28454
|
}, Ie = (te) => {
|
|
28454
28455
|
r(te);
|
|
28455
28456
|
};
|
|
@@ -28472,21 +28473,21 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28472
28473
|
{
|
|
28473
28474
|
availableTags: e,
|
|
28474
28475
|
handleUpdateSelectedTags: ge,
|
|
28475
|
-
selectedTags:
|
|
28476
|
+
selectedTags: R,
|
|
28476
28477
|
isLoading: L,
|
|
28477
28478
|
tagsError: z,
|
|
28478
|
-
reloadTags:
|
|
28479
|
+
reloadTags: q
|
|
28479
28480
|
}
|
|
28480
28481
|
)
|
|
28481
28482
|
] }),
|
|
28482
|
-
!!
|
|
28483
|
+
!!R.length && /* @__PURE__ */ t.jsx(
|
|
28483
28484
|
tP,
|
|
28484
28485
|
{
|
|
28485
28486
|
filterConfig: {
|
|
28486
|
-
selectedTags:
|
|
28487
|
+
selectedTags: R
|
|
28487
28488
|
},
|
|
28488
28489
|
onRemoveFilter: xe,
|
|
28489
|
-
clearFilters:
|
|
28490
|
+
clearFilters: K,
|
|
28490
28491
|
className: "w-100 pt-0-imp",
|
|
28491
28492
|
clearButtonClassName: "dc__no-background-imp dc__no-border-imp dc__tab-focus",
|
|
28492
28493
|
shouldHideLabel: !0
|
|
@@ -28513,7 +28514,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
28513
28514
|
handlePluginSelection: Ie,
|
|
28514
28515
|
selectedPluginsMap: i,
|
|
28515
28516
|
isSelectable: o,
|
|
28516
|
-
handleClearFilters:
|
|
28517
|
+
handleClearFilters: K,
|
|
28517
28518
|
showCardBorder: E,
|
|
28518
28519
|
getPluginStoreRef: S
|
|
28519
28520
|
}
|
|
@@ -29145,8 +29146,8 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29145
29146
|
});
|
|
29146
29147
|
b((G) => {
|
|
29147
29148
|
const z = { ...G };
|
|
29148
|
-
return L.forEach((
|
|
29149
|
-
z[
|
|
29149
|
+
return L.forEach((q) => {
|
|
29150
|
+
z[q] = !0;
|
|
29150
29151
|
}), z;
|
|
29151
29152
|
}), f(a);
|
|
29152
29153
|
}
|
|
@@ -29158,7 +29159,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29158
29159
|
}));
|
|
29159
29160
|
}, v = (L) => {
|
|
29160
29161
|
s ? r(L) : O(L)();
|
|
29161
|
-
},
|
|
29162
|
+
}, A = (L) => (G) => {
|
|
29162
29163
|
if (!E)
|
|
29163
29164
|
throw new Error("getUpdateItemsRefMap should only be used at the first level of the tree view.");
|
|
29164
29165
|
L === g && (G?.scrollIntoView({
|
|
@@ -29169,17 +29170,17 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29169
29170
|
}, I = J(() => l || yf({
|
|
29170
29171
|
nodeList: e,
|
|
29171
29172
|
expandedMap: T
|
|
29172
|
-
}), [e, T, l]),
|
|
29173
|
+
}), [e, T, l]), R = (L) => {
|
|
29173
29174
|
if (c !== "navigation" || !E)
|
|
29174
29175
|
return;
|
|
29175
29176
|
const { key: G } = L;
|
|
29176
29177
|
if (!["ArrowUp", "ArrowDown"].includes(G))
|
|
29177
29178
|
return;
|
|
29178
29179
|
L.preventDefault();
|
|
29179
|
-
const
|
|
29180
|
-
if (!
|
|
29180
|
+
const q = L.target.getAttribute("data-node-id");
|
|
29181
|
+
if (!q)
|
|
29181
29182
|
return;
|
|
29182
|
-
const re = I.indexOf(
|
|
29183
|
+
const re = I.indexOf(q);
|
|
29183
29184
|
if (re !== -1) {
|
|
29184
29185
|
if (G === "ArrowDown" && re < I.length - 1) {
|
|
29185
29186
|
C.current[I[re + 1]]?.focus();
|
|
@@ -29198,14 +29199,14 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29198
29199
|
}
|
|
29199
29200
|
L.href === h && G.preventDefault(), y(G, L);
|
|
29200
29201
|
}, P = (L, G, z) => {
|
|
29201
|
-
const
|
|
29202
|
+
const q = a === L.id, re = "dc__transparent p-0-imp flexbox dc__align-start flex-grow-1 tree-view__container--item dc__select-text";
|
|
29202
29203
|
return L.as === "div" ? /* @__PURE__ */ t.jsxs(
|
|
29203
29204
|
"div",
|
|
29204
29205
|
{
|
|
29205
29206
|
className: re,
|
|
29206
29207
|
"data-node-id": L.id,
|
|
29207
29208
|
"data-testid": `tree-view-item-${L.title}`,
|
|
29208
|
-
ref: d ? d(L.id) :
|
|
29209
|
+
ref: d ? d(L.id) : A(L.id),
|
|
29209
29210
|
...L.dataAttributes ? L.dataAttributes : {},
|
|
29210
29211
|
children: [
|
|
29211
29212
|
G,
|
|
@@ -29219,10 +29220,10 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29219
29220
|
className: `${re} ${L.isDisabled ? "dc__disabled" : ""}`,
|
|
29220
29221
|
activeClassName: `tree-view__container__nav-link--active ${L.activeClassName || ""}`,
|
|
29221
29222
|
onClick: k(L),
|
|
29222
|
-
tabIndex:
|
|
29223
|
+
tabIndex: q ? 0 : S,
|
|
29223
29224
|
"data-node-id": L.id,
|
|
29224
29225
|
"data-testid": `tree-view-item-${L.title}`,
|
|
29225
|
-
ref: d ? d(L.id) :
|
|
29226
|
+
ref: d ? d(L.id) : A(L.id),
|
|
29226
29227
|
...L.dataAttributes ? L.dataAttributes : {},
|
|
29227
29228
|
children: [
|
|
29228
29229
|
G,
|
|
@@ -29236,9 +29237,9 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29236
29237
|
disabled: L.isDisabled,
|
|
29237
29238
|
className: re,
|
|
29238
29239
|
onClick: D(L),
|
|
29239
|
-
tabIndex:
|
|
29240
|
+
tabIndex: q ? 0 : S,
|
|
29240
29241
|
"data-node-id": L.id,
|
|
29241
|
-
ref: d ? d(L.id) :
|
|
29242
|
+
ref: d ? d(L.id) : A(L.id),
|
|
29242
29243
|
"data-testid": `tree-view-item-${L.title}`,
|
|
29243
29244
|
...L.dataAttributes ? L.dataAttributes : {},
|
|
29244
29245
|
children: [
|
|
@@ -29252,10 +29253,10 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29252
29253
|
"div",
|
|
29253
29254
|
{
|
|
29254
29255
|
className: `tree-view__container ${U} ${Gu[u]} ${E ? "w-100 h-100 flex-grow-1" : ""}`,
|
|
29255
|
-
...E ? { role: "tree", onKeyDown:
|
|
29256
|
+
...E ? { role: "tree", onKeyDown: R } : {},
|
|
29256
29257
|
children: e.map((L) => {
|
|
29257
29258
|
const G = a === L.id, z = i > 1 && // eslint-disable-next-line react/no-array-index-key
|
|
29258
|
-
Array.from({ length: i - 1 }).map((
|
|
29259
|
+
Array.from({ length: i - 1 }).map((fe, K) => /* @__PURE__ */ t.jsx(Yu, {}, `divider-${K}`)), q = /* @__PURE__ */ t.jsx(
|
|
29259
29260
|
nk,
|
|
29260
29261
|
{
|
|
29261
29262
|
startIconConfig: L.startIconConfig,
|
|
@@ -29269,13 +29270,13 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29269
29270
|
}
|
|
29270
29271
|
);
|
|
29271
29272
|
if (L.type === "heading") {
|
|
29272
|
-
const
|
|
29273
|
+
const fe = T[L.id] ?? !1;
|
|
29273
29274
|
return /* @__PURE__ */ t.jsxs(
|
|
29274
29275
|
"div",
|
|
29275
29276
|
{
|
|
29276
29277
|
role: "treeitem",
|
|
29277
29278
|
"aria-selected": !1,
|
|
29278
|
-
"aria-expanded":
|
|
29279
|
+
"aria-expanded": fe,
|
|
29279
29280
|
className: "flexbox-col w-100",
|
|
29280
29281
|
"aria-level": i + 1,
|
|
29281
29282
|
children: [
|
|
@@ -29288,7 +29289,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29288
29289
|
/* @__PURE__ */ t.jsxs(
|
|
29289
29290
|
"div",
|
|
29290
29291
|
{
|
|
29291
|
-
className: `flexbox w-100 dc__align-start br-4 ${G && (!p || !
|
|
29292
|
+
className: `flexbox w-100 dc__align-start br-4 ${G && (!p || !fe) ? QM[u] : Vu[u]}`,
|
|
29292
29293
|
children: [
|
|
29293
29294
|
/* @__PURE__ */ t.jsxs(
|
|
29294
29295
|
"button",
|
|
@@ -29299,7 +29300,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29299
29300
|
tabIndex: S,
|
|
29300
29301
|
"data-node-id": L.id,
|
|
29301
29302
|
"data-testid": `tree-view-heading-${L.title}`,
|
|
29302
|
-
ref: d ? d(L.id) :
|
|
29303
|
+
ref: d ? d(L.id) : A(L.id),
|
|
29303
29304
|
...L.dataAttributes ? L.dataAttributes : {},
|
|
29304
29305
|
children: [
|
|
29305
29306
|
i > 0 && /* @__PURE__ */ t.jsx("span", { className: "dc__grid dc__align-self-stretch dc__content-center pl-8 w-24 dc__no-shrink dc__align-items-center", children: /* @__PURE__ */ t.jsx(
|
|
@@ -29314,18 +29315,18 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29314
29315
|
{
|
|
29315
29316
|
name: "ic-expand-sm",
|
|
29316
29317
|
color: u === "sidenav" ? "white" : null,
|
|
29317
|
-
rotateBy:
|
|
29318
|
+
rotateBy: fe ? 270 : 180,
|
|
29318
29319
|
size: 16
|
|
29319
29320
|
}
|
|
29320
29321
|
) }),
|
|
29321
|
-
|
|
29322
|
+
fe && /* @__PURE__ */ t.jsx("span", { className: "flex pl-8", children: /* @__PURE__ */ t.jsx(
|
|
29322
29323
|
"span",
|
|
29323
29324
|
{
|
|
29324
29325
|
className: `tree-view__node-heading-divider tree-view__node-heading-divider--${u} dc__inline-block w-1 h-100`
|
|
29325
29326
|
}
|
|
29326
29327
|
) })
|
|
29327
29328
|
] }),
|
|
29328
|
-
|
|
29329
|
+
q
|
|
29329
29330
|
]
|
|
29330
29331
|
}
|
|
29331
29332
|
),
|
|
@@ -29336,7 +29337,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29336
29337
|
] })
|
|
29337
29338
|
}
|
|
29338
29339
|
),
|
|
29339
|
-
/* @__PURE__ */ t.jsx(_n, { initial: !1, children:
|
|
29340
|
+
/* @__PURE__ */ t.jsx(_n, { initial: !1, children: fe && /* @__PURE__ */ t.jsx(
|
|
29340
29341
|
Be.div,
|
|
29341
29342
|
{
|
|
29342
29343
|
role: "group",
|
|
@@ -29346,7 +29347,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29346
29347
|
exit: { height: 0, opacity: 0 },
|
|
29347
29348
|
transition: { duration: 0.2, easings: ["easeOut"] },
|
|
29348
29349
|
style: { overflow: "hidden" },
|
|
29349
|
-
children: L.items?.length ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col flex-grow-1", children: L.items.map((
|
|
29350
|
+
children: L.items?.length ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col flex-grow-1", children: L.items.map((K) => /* @__PURE__ */ t.jsx(
|
|
29350
29351
|
ak,
|
|
29351
29352
|
{
|
|
29352
29353
|
expandedMap: T,
|
|
@@ -29354,14 +29355,14 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29354
29355
|
isControlled: !0,
|
|
29355
29356
|
onToggle: v,
|
|
29356
29357
|
onSelect: o,
|
|
29357
|
-
nodes: [
|
|
29358
|
+
nodes: [K],
|
|
29358
29359
|
depth: i + 1,
|
|
29359
29360
|
mode: c,
|
|
29360
|
-
getUpdateItemsRefMap: d ||
|
|
29361
|
+
getUpdateItemsRefMap: d || A,
|
|
29361
29362
|
flatNodeList: I,
|
|
29362
29363
|
variant: u
|
|
29363
29364
|
},
|
|
29364
|
-
|
|
29365
|
+
K.id
|
|
29365
29366
|
)) }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
29366
29367
|
z,
|
|
29367
29368
|
/* @__PURE__ */ t.jsx(Yu, {}),
|
|
@@ -29394,7 +29395,7 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29394
29395
|
{
|
|
29395
29396
|
className: `tree-view__container--item-container tree-view__container--item-container--${u} flexbox flex-grow-1 w-100 br-4 ${G ? tk[u] : Vu[u]}`,
|
|
29396
29397
|
children: [
|
|
29397
|
-
P(L, re,
|
|
29398
|
+
P(L, re, q),
|
|
29398
29399
|
L.trailingItem && /* @__PURE__ */ t.jsx("div", { className: "flex py-6 pr-8 dc__no-shrink", children: /* @__PURE__ */ t.jsx(Vi, { ...L.trailingItem }) })
|
|
29399
29400
|
]
|
|
29400
29401
|
}
|
|
@@ -29729,19 +29730,19 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29729
29730
|
if (!(v.currentTarget instanceof HTMLDivElement) || "key" in v && v.key !== "Enter")
|
|
29730
29731
|
return;
|
|
29731
29732
|
v.stopPropagation();
|
|
29732
|
-
const { pipelineType:
|
|
29733
|
-
if (
|
|
29733
|
+
const { pipelineType: A } = v.currentTarget.dataset;
|
|
29734
|
+
if (A === yn.WEBHOOK) {
|
|
29734
29735
|
N();
|
|
29735
29736
|
return;
|
|
29736
29737
|
}
|
|
29737
|
-
if (d &&
|
|
29738
|
+
if (d && A === d.type) {
|
|
29738
29739
|
a(o), p();
|
|
29739
29740
|
return;
|
|
29740
29741
|
}
|
|
29741
|
-
s(
|
|
29742
|
+
s(A, o?.appWorkflowId ?? 0), p();
|
|
29742
29743
|
}, T = (v) => !r && v === ut.LINKED_CD ? ok : _ ? ik : null;
|
|
29743
29744
|
M(() => {
|
|
29744
|
-
o && i && (i.find((
|
|
29745
|
+
o && i && (i.find((A) => +A.id === o.appWorkflowId) || (C(), $e.showToast({
|
|
29745
29746
|
variant: ve.error,
|
|
29746
29747
|
description: zu.WORKFLOW_NOT_AVAILABLE
|
|
29747
29748
|
})));
|
|
@@ -29752,9 +29753,9 @@ const kM = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
|
29752
29753
|
M(() => {
|
|
29753
29754
|
e || S();
|
|
29754
29755
|
}, [e]);
|
|
29755
|
-
const O = (v,
|
|
29756
|
+
const O = (v, A) => !!A.length && /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
|
|
29756
29757
|
/* @__PURE__ */ t.jsx("h4", { className: "m-0 fs-13 lh-16 fw-6 cn-7", children: v }),
|
|
29757
|
-
/* @__PURE__ */ t.jsx("div", { className: "workflow-options-modal__cards-container dc__grid dc__gap-12", children:
|
|
29758
|
+
/* @__PURE__ */ t.jsx("div", { className: "workflow-options-modal__cards-container dc__grid dc__gap-12", children: A.map((I) => /* @__PURE__ */ t.jsx(
|
|
29758
29759
|
lk,
|
|
29759
29760
|
{
|
|
29760
29761
|
...I,
|
|
@@ -30392,11 +30393,11 @@ const eW = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, tW = (e, s = 300) => {
|
|
|
30392
30393
|
};
|
|
30393
30394
|
class hl {
|
|
30394
30395
|
constructor({ handleLogout: s, host: n, timeout: a, handleRedirectToLicenseActivation: r }) {
|
|
30395
|
-
|
|
30396
|
-
|
|
30397
|
-
|
|
30398
|
-
|
|
30399
|
-
|
|
30396
|
+
ue(this, "handleLogout");
|
|
30397
|
+
ue(this, "handleRedirectToLicenseActivation");
|
|
30398
|
+
ue(this, "host");
|
|
30399
|
+
ue(this, "timeout");
|
|
30400
|
+
ue(this, "fetchAPI", async ({
|
|
30400
30401
|
url: s,
|
|
30401
30402
|
type: n,
|
|
30402
30403
|
data: a,
|
|
@@ -30477,7 +30478,7 @@ class hl {
|
|
|
30477
30478
|
}
|
|
30478
30479
|
);
|
|
30479
30480
|
});
|
|
30480
|
-
|
|
30481
|
+
ue(this, "fetchInTime", ({
|
|
30481
30482
|
url: s,
|
|
30482
30483
|
type: n,
|
|
30483
30484
|
data: a,
|
|
@@ -30524,12 +30525,12 @@ class hl {
|
|
|
30524
30525
|
});
|
|
30525
30526
|
});
|
|
30526
30527
|
});
|
|
30527
|
-
|
|
30528
|
-
|
|
30529
|
-
|
|
30530
|
-
|
|
30531
|
-
|
|
30532
|
-
|
|
30528
|
+
ue(this, "post", (s, n, a, r) => this.fetchInTime({ url: s, type: "POST", data: n, options: a, isMultipartRequest: r }));
|
|
30529
|
+
ue(this, "put", (s, n, a) => this.fetchInTime({ url: s, type: "PUT", data: n, options: a }));
|
|
30530
|
+
ue(this, "patch", (s, n, a) => this.fetchInTime({ url: s, type: "PATCH", data: n, options: a }));
|
|
30531
|
+
ue(this, "get", (s, n) => this.fetchInTime({ url: s, type: "GET", data: null, options: n }));
|
|
30532
|
+
ue(this, "trash", (s, n, a) => this.fetchInTime({ url: s, type: "DELETE", data: n, options: a }));
|
|
30533
|
+
ue(this, "setGlobalAPITimeout", (s) => {
|
|
30533
30534
|
this.timeout = s || $l;
|
|
30534
30535
|
});
|
|
30535
30536
|
this.handleLogout = s, this.host = n || Yr, this.timeout = a || $l, this.handleRedirectToLicenseActivation = r || Ne;
|
|
@@ -30593,7 +30594,7 @@ const wk = new Ng({
|
|
|
30593
30594
|
handleLogout: Ok,
|
|
30594
30595
|
timeout: window?._env_?.GLOBAL_API_TIMEOUT,
|
|
30595
30596
|
handleRedirectToLicenseActivation: jk
|
|
30596
|
-
}), { post: ft, put: xl, patch: Dk, get:
|
|
30597
|
+
}), { post: ft, put: xl, patch: Dk, get: _e, trash: Ko, setGlobalAPITimeout: lW } = Lk, Pk = {
|
|
30597
30598
|
alias: {}
|
|
30598
30599
|
}, ho = ({ heading: e, isActive: s, shouldTruncate: n = !1 }) => /* @__PURE__ */ t.jsx("span", { className: `dc__breadcrumb-text cb-5 fs-16 lh-1-5 ${n ? "dc__truncate" : ""} ${s ? "cn-9 fw-6" : "cb-5 fw-4 dc__mxw-155 dc__ellipsis-right"}`, children: e }), kf = (e = "/") => /* @__PURE__ */ t.jsx("span", { className: "dc__devtron-breadcrumb__item__separator", children: e }), dW = ({ children: e }) => {
|
|
30599
30600
|
const [s, n] = w(Pk);
|
|
@@ -31420,42 +31421,42 @@ const Ff = ({
|
|
|
31420
31421
|
forceReInit: m,
|
|
31421
31422
|
isSuperAdmin: p
|
|
31422
31423
|
}) => {
|
|
31423
|
-
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [C, N] = w(n ? n.comment : ""), [b, T] = w(!1), [S, O] = w(!1), [v,
|
|
31424
|
+
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [C, N] = w(n ? n.comment : ""), [b, T] = w(!1), [S, O] = w(!1), [v, A] = w(a || []), [I, R] = w(""), [y, D] = w([]), [k, P] = w([]), [U, L] = w([]), [G, z] = w(""), [q, re] = w(""), [fe, K] = w(!1);
|
|
31424
31425
|
M(() => {
|
|
31425
31426
|
Z();
|
|
31426
31427
|
}, [a, n, c]), M(() => {
|
|
31427
31428
|
f(o || []);
|
|
31428
31429
|
}, [o]);
|
|
31429
31430
|
const Z = () => {
|
|
31430
|
-
(m || !b) && (h(a || []), x(n ? n.comment : ""), N(n ? n.comment : ""),
|
|
31431
|
+
(m || !b) && (h(a || []), x(n ? n.comment : ""), N(n ? n.comment : ""), A(a || []), T(!1));
|
|
31431
31432
|
}, ge = () => {
|
|
31432
31433
|
T(!b), typeof d == "function" && d(s);
|
|
31433
31434
|
}, xe = (V) => {
|
|
31434
31435
|
const Ee = V.target.value;
|
|
31435
31436
|
Ee?.length > 500 ? z("comment length cannot exceed 500 characters") : z(""), N(Ee);
|
|
31436
31437
|
}, Ie = () => {
|
|
31437
|
-
|
|
31438
|
+
A(_), N(E), D([]), P([]), L([]), ge(), O(!1), R("");
|
|
31438
31439
|
}, te = (V) => {
|
|
31439
31440
|
if (V.length == 0 || V.length >= 128 || V[0] == "." || V[0] == "-")
|
|
31440
|
-
return
|
|
31441
|
-
|
|
31441
|
+
return R("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
|
31442
|
+
R("");
|
|
31442
31443
|
const Ee = g.includes(V);
|
|
31443
|
-
let
|
|
31444
|
+
let pe = !1;
|
|
31444
31445
|
for (let ee = 0; ee < v?.length; ee++)
|
|
31445
|
-
v[ee].tagName.toLowerCase() === V && (
|
|
31446
|
-
return V === Gl.value || V === Gl.value ? (
|
|
31446
|
+
v[ee].tagName.toLowerCase() === V && (pe = !0);
|
|
31447
|
+
return V === Gl.value || V === Gl.value ? (R('Label name cannot be "latest" or "active"'), !1) : Ee || pe ? (R("This label is already being used in this application"), !1) : !0;
|
|
31447
31448
|
}, Te = (V) => {
|
|
31448
31449
|
const Ee = V.toLowerCase().trim();
|
|
31449
31450
|
if (te(Ee)) {
|
|
31450
|
-
const
|
|
31451
|
+
const pe = {
|
|
31451
31452
|
id: 0,
|
|
31452
31453
|
tagName: Ee,
|
|
31453
31454
|
appId: 0,
|
|
31454
31455
|
deleted: !1,
|
|
31455
31456
|
artifactId: 0,
|
|
31456
31457
|
duplicateTag: !1
|
|
31457
|
-
}, ee = [...y,
|
|
31458
|
-
return D(ee),
|
|
31458
|
+
}, ee = [...y, pe];
|
|
31459
|
+
return D(ee), A([...v, pe]), O(!0), re(""), ee;
|
|
31459
31460
|
}
|
|
31460
31461
|
return y;
|
|
31461
31462
|
}, se = (V) => {
|
|
@@ -31464,13 +31465,13 @@ const Ff = ({
|
|
|
31464
31465
|
...Ee[V],
|
|
31465
31466
|
deleted: !Ee[V].deleted
|
|
31466
31467
|
};
|
|
31467
|
-
const
|
|
31468
|
-
Ce !== -1 ? ee.splice(Ce, 1) : ee.push(
|
|
31468
|
+
const pe = Ee[V], ee = [...k], Ce = ee.findIndex((ze) => ze.tagName === pe.tagName);
|
|
31469
|
+
Ce !== -1 ? ee.splice(Ce, 1) : ee.push(pe), A(Ee), P(ee);
|
|
31469
31470
|
}, oe = (V) => {
|
|
31470
|
-
const Ee = v[V],
|
|
31471
|
-
D(
|
|
31471
|
+
const Ee = v[V], pe = y.filter((ze) => ze.tagName !== Ee.tagName);
|
|
31472
|
+
D(pe);
|
|
31472
31473
|
const ee = [...v];
|
|
31473
|
-
ee.splice(V, 1),
|
|
31474
|
+
ee.splice(V, 1), A(ee);
|
|
31474
31475
|
const Ce = g.filter((ze) => ze.toLowerCase() !== Ee.tagName.toLowerCase());
|
|
31475
31476
|
if (f(Ce), Ee.id !== 0) {
|
|
31476
31477
|
const ze = [...U, Ee];
|
|
@@ -31478,16 +31479,16 @@ const Ff = ({
|
|
|
31478
31479
|
}
|
|
31479
31480
|
}, ie = (V) => {
|
|
31480
31481
|
V.forEach(({ userMessage: Ee }) => {
|
|
31481
|
-
const
|
|
31482
|
+
const pe = y.map((Ce) => Ee?.appReleaseTags?.includes(Ce.tagName) ? {
|
|
31482
31483
|
...Ce,
|
|
31483
31484
|
duplicateTag: !0
|
|
31484
31485
|
} : Ce);
|
|
31485
|
-
D(
|
|
31486
|
+
D(pe);
|
|
31486
31487
|
const ee = v.map((Ce) => {
|
|
31487
|
-
const ze =
|
|
31488
|
+
const ze = pe.find((Os) => Os.tagName === Ce.tagName);
|
|
31488
31489
|
return ze ? { ...Ce, duplicateTag: ze.duplicateTag } : Ce;
|
|
31489
31490
|
});
|
|
31490
|
-
|
|
31491
|
+
A(ee);
|
|
31491
31492
|
});
|
|
31492
31493
|
}, Se = async (V) => {
|
|
31493
31494
|
if (I) return;
|
|
@@ -31501,22 +31502,22 @@ const Ff = ({
|
|
|
31501
31502
|
},
|
|
31502
31503
|
hardDeleteTags: U
|
|
31503
31504
|
};
|
|
31504
|
-
|
|
31505
|
-
const ee =
|
|
31505
|
+
K(!0), $I(Ee, e ?? 0, s).then((pe) => {
|
|
31506
|
+
const ee = pe.result?.imageReleaseTags?.map((Ce) => ({
|
|
31506
31507
|
id: Ce.id,
|
|
31507
31508
|
tagName: Ce.tagName,
|
|
31508
31509
|
deleted: Ce.deleted,
|
|
31509
31510
|
appId: 0,
|
|
31510
31511
|
artifactId: 0
|
|
31511
31512
|
}));
|
|
31512
|
-
i && i(
|
|
31513
|
-
}).catch((
|
|
31514
|
-
|
|
31513
|
+
i && i(pe.result?.appReleaseTags), l && l(pe.result?.tagsEditable), h(ee), x(pe.result?.imageComment?.comment), A(ee), N(pe.result?.imageComment?.comment), D([]), P([]), L([]), ge(), O(!1), R(""), r && r(s, ee, pe.result?.imageComment);
|
|
31514
|
+
}).catch((pe) => {
|
|
31515
|
+
pe.errors?.[0]?.userMessage?.appReleaseTags?.length ? ($e.showToast({
|
|
31515
31516
|
variant: ve.error,
|
|
31516
|
-
description:
|
|
31517
|
-
}), ie(
|
|
31517
|
+
description: pe.errors?.[0]?.internalMessage
|
|
31518
|
+
}), ie(pe.errors)) : Le(pe);
|
|
31518
31519
|
}).finally(() => {
|
|
31519
|
-
|
|
31520
|
+
K(!1);
|
|
31520
31521
|
});
|
|
31521
31522
|
}, Re = () => /* @__PURE__ */ t.jsx(
|
|
31522
31523
|
xn,
|
|
@@ -31541,10 +31542,10 @@ const Ff = ({
|
|
|
31541
31542
|
}, Dt = (V) => {
|
|
31542
31543
|
V.target.value && te(V.target.value), re(V.target.value);
|
|
31543
31544
|
}, at = (V) => {
|
|
31544
|
-
Oe(V),
|
|
31545
|
+
Oe(V), q.trim() && Te(q.trim());
|
|
31545
31546
|
}, Pt = () => {
|
|
31546
31547
|
let V = y;
|
|
31547
|
-
|
|
31548
|
+
q.trim() && (V = Te(q)), Se(V);
|
|
31548
31549
|
};
|
|
31549
31550
|
return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: b && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
|
|
31550
31551
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
|
|
@@ -31556,7 +31557,7 @@ const Ff = ({
|
|
|
31556
31557
|
"input",
|
|
31557
31558
|
{
|
|
31558
31559
|
className: "form__input fs-13",
|
|
31559
|
-
value:
|
|
31560
|
+
value: q,
|
|
31560
31561
|
onChange: Dt,
|
|
31561
31562
|
placeholder: "Type a tag and press enter",
|
|
31562
31563
|
onKeyDown: ct,
|
|
@@ -31564,7 +31565,7 @@ const Ff = ({
|
|
|
31564
31565
|
ref: Pe
|
|
31565
31566
|
}
|
|
31566
31567
|
),
|
|
31567
|
-
|
|
31568
|
+
q.length > 0 && /* @__PURE__ */ t.jsxs(
|
|
31568
31569
|
"div",
|
|
31569
31570
|
{
|
|
31570
31571
|
onClick: at,
|
|
@@ -31592,11 +31593,11 @@ const Ff = ({
|
|
|
31592
31593
|
text: V?.tagName,
|
|
31593
31594
|
isSoftDeleted: V?.deleted,
|
|
31594
31595
|
isEditing: b,
|
|
31595
|
-
onSoftDeleteClick: (
|
|
31596
|
-
Oe(
|
|
31596
|
+
onSoftDeleteClick: (pe) => {
|
|
31597
|
+
Oe(pe), se(Ee);
|
|
31597
31598
|
},
|
|
31598
|
-
onHardDeleteClick: (
|
|
31599
|
-
Oe(
|
|
31599
|
+
onHardDeleteClick: (pe) => {
|
|
31600
|
+
Oe(pe), oe(Ee);
|
|
31600
31601
|
},
|
|
31601
31602
|
tagId: V.id,
|
|
31602
31603
|
softDeleteTags: k,
|
|
@@ -31630,7 +31631,7 @@ const Ff = ({
|
|
|
31630
31631
|
onClick: (V) => {
|
|
31631
31632
|
Oe(V), Ie();
|
|
31632
31633
|
},
|
|
31633
|
-
disabled:
|
|
31634
|
+
disabled: fe,
|
|
31634
31635
|
children: "Cancel"
|
|
31635
31636
|
}
|
|
31636
31637
|
),
|
|
@@ -31643,8 +31644,8 @@ const Ff = ({
|
|
|
31643
31644
|
onClick: (V) => {
|
|
31644
31645
|
Oe(V), Pt();
|
|
31645
31646
|
},
|
|
31646
|
-
disabled:
|
|
31647
|
-
children:
|
|
31647
|
+
disabled: fe,
|
|
31648
|
+
children: fe ? /* @__PURE__ */ t.jsx(Qe, {}) : "Save"
|
|
31648
31649
|
}
|
|
31649
31650
|
)
|
|
31650
31651
|
] })
|
|
@@ -31662,11 +31663,11 @@ const Ff = ({
|
|
|
31662
31663
|
text: V?.tagName,
|
|
31663
31664
|
isSoftDeleted: V?.deleted,
|
|
31664
31665
|
isEditing: b,
|
|
31665
|
-
onSoftDeleteClick: (
|
|
31666
|
-
Oe(
|
|
31666
|
+
onSoftDeleteClick: (pe) => {
|
|
31667
|
+
Oe(pe), se(Ee);
|
|
31667
31668
|
},
|
|
31668
|
-
onHardDeleteClick: (
|
|
31669
|
-
Oe(
|
|
31669
|
+
onHardDeleteClick: (pe) => {
|
|
31670
|
+
Oe(pe), oe(Ee);
|
|
31670
31671
|
},
|
|
31671
31672
|
tagId: V.id,
|
|
31672
31673
|
softDeleteTags: k,
|
|
@@ -31798,7 +31799,7 @@ const Ff = ({
|
|
|
31798
31799
|
class Jk extends Ke.Component {
|
|
31799
31800
|
constructor(n) {
|
|
31800
31801
|
super(n);
|
|
31801
|
-
|
|
31802
|
+
ue(this, "handleBodyClick", (n) => {
|
|
31802
31803
|
n.stopPropagation(), this.props.close?.(n);
|
|
31803
31804
|
});
|
|
31804
31805
|
}
|
|
@@ -31858,14 +31859,14 @@ const t$ = (e) => {
|
|
|
31858
31859
|
}, N = () => {
|
|
31859
31860
|
E.current.value = "", C(""), h(!1);
|
|
31860
31861
|
}, b = (v) => {
|
|
31861
|
-
const { value:
|
|
31862
|
-
h(!!
|
|
31862
|
+
const { value: A } = v.target;
|
|
31863
|
+
h(!!A), o ? x(A) : s(A);
|
|
31863
31864
|
}, T = (v) => {
|
|
31864
|
-
const { key:
|
|
31865
|
-
if (
|
|
31865
|
+
const { key: A } = v;
|
|
31866
|
+
if (A === "Enter") {
|
|
31866
31867
|
v.preventDefault();
|
|
31867
|
-
const
|
|
31868
|
-
C(
|
|
31868
|
+
const R = v.target.value.trim();
|
|
31869
|
+
C(R);
|
|
31869
31870
|
}
|
|
31870
31871
|
}, S = (v = null) => {
|
|
31871
31872
|
a.ref && (a.ref.current = v), E.current = v;
|
|
@@ -32225,7 +32226,7 @@ export {
|
|
|
32225
32226
|
zn as E,
|
|
32226
32227
|
Dk as F,
|
|
32227
32228
|
gW as G,
|
|
32228
|
-
|
|
32229
|
+
_e as H,
|
|
32229
32230
|
$ as I,
|
|
32230
32231
|
Ko as J,
|
|
32231
32232
|
lW as K,
|