@devtron-labs/devtron-fe-common-lib 1.9.0-patch-4 → 1.9.0-patch-5
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.
@@ -1275,20 +1275,20 @@ const Yd = {
|
|
1275
1275
|
showAriaLabelInTippy: _ = !0,
|
1276
1276
|
fullWidth: E = !1,
|
1277
1277
|
isOpacityHoverChild: x = !1,
|
1278
|
-
triggerAutoClickTimestamp:
|
1278
|
+
triggerAutoClickTimestamp: f,
|
1279
1279
|
...g
|
1280
1280
|
}) => {
|
1281
|
-
const [
|
1281
|
+
const [h, N] = R(!1), C = Y(), A = Y(null), v = c || l, I = `dc__no-shrink flex dc__fill-available-space ${dx({
|
1282
1282
|
size: a,
|
1283
1283
|
icon: m
|
1284
1284
|
})}`;
|
1285
|
-
k(() => (
|
1285
|
+
k(() => (f && setTimeout(() => {
|
1286
1286
|
N(!0), C.current = setTimeout(() => {
|
1287
1287
|
A.current.click();
|
1288
1288
|
}, 2400);
|
1289
1289
|
}, 100), () => {
|
1290
1290
|
N(!1), clearTimeout(C.current);
|
1291
|
-
}), [
|
1291
|
+
}), [f]);
|
1292
1292
|
const y = (b) => {
|
1293
1293
|
N(!1), clearTimeout(C.current), g.onClick?.(b);
|
1294
1294
|
}, T = () => !d && _ && m && p ? {
|
@@ -1304,7 +1304,7 @@ const Yd = {
|
|
1304
1304
|
{
|
1305
1305
|
...g,
|
1306
1306
|
disabled: v,
|
1307
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${mx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive:
|
1307
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${mx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: h })} ${v ? "dc__disabled" : ""} ${E ? "w-100" : ""}`,
|
1308
1308
|
"data-testid": e,
|
1309
1309
|
"aria-label": p || (l ? s : void 0),
|
1310
1310
|
elementRef: A,
|
@@ -1779,7 +1779,7 @@ const di = (e) => {
|
|
1779
1779
|
}
|
1780
1780
|
) })
|
1781
1781
|
] });
|
1782
|
-
}, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: E, trigger: x, animation:
|
1782
|
+
}, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: E, trigger: x, animation: f, duration: g, children: h } = e;
|
1783
1783
|
return /* @__PURE__ */ t.jsx(
|
1784
1784
|
fe,
|
1785
1785
|
{
|
@@ -1792,11 +1792,11 @@ const di = (e) => {
|
|
1792
1792
|
onMount: i,
|
1793
1793
|
onClickOutside: (N, C) => c(C),
|
1794
1794
|
showOnCreate: E || !1,
|
1795
|
-
animation:
|
1795
|
+
animation: f || "fade",
|
1796
1796
|
duration: g || 300,
|
1797
1797
|
visible: e.visible,
|
1798
1798
|
appendTo: e.appendTo,
|
1799
|
-
children:
|
1799
|
+
children: h
|
1800
1800
|
}
|
1801
1801
|
);
|
1802
1802
|
}, En = ({
|
@@ -2009,7 +2009,7 @@ const ys = {
|
|
2009
2009
|
}, Zd = {
|
2010
2010
|
[U.CONFIG_MAP]: Is.ConfigMap,
|
2011
2011
|
[U.SECRET]: Is.Secret
|
2012
|
-
},
|
2012
|
+
}, Je = {
|
2013
2013
|
[Is.ConfigMap]: U.CONFIG_MAP,
|
2014
2014
|
[Is.Secret]: U.SECRET
|
2015
2015
|
}, dL = {
|
@@ -2434,8 +2434,8 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2434
2434
|
selectOption: o,
|
2435
2435
|
isDisabled: i,
|
2436
2436
|
isSelected: c
|
2437
|
-
} = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, E = (
|
2438
|
-
|
2437
|
+
} = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, E = (f) => {
|
2438
|
+
f.preventDefault(), f.stopPropagation(), o(a);
|
2439
2439
|
}, x = "dc__no-shrink icon-dim-16 flex dc__fill-available-space";
|
2440
2440
|
return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ie, { ...Dx(m), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2441
2441
|
r && !_ && /* @__PURE__ */ t.jsx(
|
@@ -2668,9 +2668,9 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2668
2668
|
variant: _ = Rs.DEFAULT,
|
2669
2669
|
disableDescriptionEllipsis: E = !1,
|
2670
2670
|
multiSelectProps: x = {},
|
2671
|
-
isMulti:
|
2671
|
+
isMulti: f,
|
2672
2672
|
name: g,
|
2673
|
-
classNamePrefix:
|
2673
|
+
classNamePrefix: h,
|
2674
2674
|
shouldRenderCustomOptions: N = !1,
|
2675
2675
|
isSearchable: C,
|
2676
2676
|
selectRef: A,
|
@@ -2706,7 +2706,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2706
2706
|
isGroupHeadingSelectable: se = !1,
|
2707
2707
|
getIsOptionValid: je = () => !0,
|
2708
2708
|
customDisplayText: xt = null
|
2709
|
-
} = x, jt = oe && !xt, _a =
|
2709
|
+
} = x, jt = oe && !xt, _a = f && jt ? M.large : i, Br = !f && o, W = !N && C, Ae = te(
|
2710
2710
|
() => Lx({
|
2711
2711
|
error: e,
|
2712
2712
|
size: _a,
|
@@ -2757,7 +2757,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2757
2757
|
}, tp = (we) => {
|
2758
2758
|
le(!1), F.onBlur?.(we);
|
2759
2759
|
}, sp = (...we) => {
|
2760
|
-
|
2760
|
+
f && qa(F.inputValue) && D(pe), F.onChange?.(...we);
|
2761
2761
|
};
|
2762
2762
|
return /* @__PURE__ */ t.jsx(
|
2763
2763
|
mi,
|
@@ -2791,17 +2791,17 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2791
2791
|
control: () => Ir({ borderConfig: Q, borderRadiusConfig: de })
|
2792
2792
|
},
|
2793
2793
|
name: g || P,
|
2794
|
-
classNamePrefix:
|
2794
|
+
classNamePrefix: h || P,
|
2795
2795
|
isSearchable: W,
|
2796
2796
|
placeholder: a,
|
2797
2797
|
styles: Ae,
|
2798
2798
|
menuPlacement: "auto",
|
2799
2799
|
menuPosition: p,
|
2800
2800
|
menuShouldScrollIntoView: !0,
|
2801
|
-
backspaceRemovesValue:
|
2801
|
+
backspaceRemovesValue: f && jt,
|
2802
2802
|
hideSelectedOptions: !1,
|
2803
2803
|
shouldRenderCustomOptions: N || !1,
|
2804
|
-
isMulti:
|
2804
|
+
isMulti: f,
|
2805
2805
|
ref: A,
|
2806
2806
|
components: {
|
2807
2807
|
IndicatorSeparator: null,
|
@@ -2822,7 +2822,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2822
2822
|
DropdownIndicator: () => null
|
2823
2823
|
}
|
2824
2824
|
},
|
2825
|
-
closeMenuOnSelect: !
|
2825
|
+
closeMenuOnSelect: !f || S,
|
2826
2826
|
allowCreateWhileLoading: !1,
|
2827
2827
|
isValidNewOption: _e,
|
2828
2828
|
createOptionPosition: "first",
|
@@ -2857,41 +2857,41 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2857
2857
|
}) => {
|
2858
2858
|
const [d, u] = R(e?.value || ""), m = Y(null);
|
2859
2859
|
k(() => {
|
2860
|
-
const
|
2861
|
-
|
2860
|
+
const h = i;
|
2861
|
+
h && (h.current = m.current.inputRef);
|
2862
2862
|
}, [i]), k(() => {
|
2863
2863
|
u(e?.value || "");
|
2864
2864
|
}, [e]);
|
2865
|
-
const p = (
|
2865
|
+
const p = (h) => {
|
2866
2866
|
Object.values(c || {}).forEach((N) => {
|
2867
2867
|
const C = N?.current;
|
2868
|
-
C && (C.style.height = `${
|
2868
|
+
C && (C.style.height = `${h}px`);
|
2869
2869
|
});
|
2870
|
-
}, _ = (
|
2870
|
+
}, _ = (h) => {
|
2871
2871
|
const N = i?.current;
|
2872
|
-
N && (N.style.height = `${
|
2872
|
+
N && (N.style.height = `${h}px`), p(h);
|
2873
2873
|
};
|
2874
2874
|
kr(() => {
|
2875
2875
|
_(r || 0);
|
2876
|
-
let
|
2876
|
+
let h = i?.current?.scrollHeight || 0;
|
2877
2877
|
c && Object.values(c).forEach((N) => {
|
2878
2878
|
const C = N.current;
|
2879
|
-
C && C.scrollHeight >
|
2880
|
-
}), r &&
|
2879
|
+
C && C.scrollHeight > h && (h = C.scrollHeight);
|
2880
|
+
}), r && h < r && (h = r), o && h > o && (h = o), _(h);
|
2881
2881
|
}, 500, [d]);
|
2882
|
-
const x = (
|
2883
|
-
N === Gn.inputChange ? (u(
|
2882
|
+
const x = (h, { action: N }) => {
|
2883
|
+
N === Gn.inputChange ? (u(h), h || a?.(null, {
|
2884
2884
|
action: "remove-value",
|
2885
2885
|
removedValue: e
|
2886
2886
|
})) : N === Gn.inputBlur && u(e?.value || "");
|
2887
|
-
},
|
2887
|
+
}, f = (h) => {
|
2888
2888
|
a?.(
|
2889
|
-
{ label:
|
2890
|
-
{ action: "create-option", option: { label:
|
2889
|
+
{ label: h, value: h },
|
2890
|
+
{ action: "create-option", option: { label: h, value: h } }
|
2891
2891
|
), m.current.blurInput();
|
2892
|
-
}, g = (
|
2893
|
-
if (
|
2894
|
-
|
2892
|
+
}, g = (h) => {
|
2893
|
+
if (h.key === "Enter" && h.shiftKey) {
|
2894
|
+
h.preventDefault();
|
2895
2895
|
const { selectionStart: N, selectionEnd: C } = m.current.inputRef, A = `${d.slice(0, N)}
|
2896
2896
|
${d.slice(C)}`;
|
2897
2897
|
u(A);
|
@@ -2902,7 +2902,7 @@ ${d.slice(C)}`;
|
|
2902
2902
|
});
|
2903
2903
|
return;
|
2904
2904
|
}
|
2905
|
-
n &&
|
2905
|
+
n && h.key === "Enter" && f(d);
|
2906
2906
|
};
|
2907
2907
|
return /* @__PURE__ */ t.jsx(
|
2908
2908
|
Xt,
|
@@ -2917,7 +2917,7 @@ ${d.slice(C)}`;
|
|
2917
2917
|
controlShouldRenderValue: !1,
|
2918
2918
|
onChange: a,
|
2919
2919
|
onKeyDown: g,
|
2920
|
-
onCreateOption:
|
2920
|
+
onCreateOption: f,
|
2921
2921
|
shouldRenderTextArea: !0
|
2922
2922
|
}
|
2923
2923
|
);
|
@@ -3131,16 +3131,16 @@ const su = (e) => ({
|
|
3131
3131
|
let i;
|
3132
3132
|
switch (e) {
|
3133
3133
|
case Eo.ROLLBACK:
|
3134
|
-
i =
|
3134
|
+
i = Xe(
|
3135
3135
|
`${G.CD_MATERIAL_GET}/${s}/material/rollback`,
|
3136
3136
|
o
|
3137
3137
|
);
|
3138
3138
|
break;
|
3139
3139
|
case Eo.IMAGE_PROMOTION:
|
3140
|
-
i =
|
3140
|
+
i = Xe(G.APP_ARTIFACT_PROMOTE_MATERIAL, r);
|
3141
3141
|
break;
|
3142
3142
|
default:
|
3143
|
-
i =
|
3143
|
+
i = Xe(`${G.CD_MATERIAL_GET}/${s}/material`, {
|
3144
3144
|
...o,
|
3145
3145
|
stage: mu[n]
|
3146
3146
|
});
|
@@ -3205,7 +3205,7 @@ const fE = (e, s) => {
|
|
3205
3205
|
}) => {
|
3206
3206
|
try {
|
3207
3207
|
const { result: a } = await ue(
|
3208
|
-
|
3208
|
+
Xe(G.PLUGIN_GLOBAL_VARIABLES, { appId: e }),
|
3209
3209
|
{
|
3210
3210
|
abortControllerRef: n
|
3211
3211
|
}
|
@@ -3290,7 +3290,7 @@ const Sc = () => ({
|
|
3290
3290
|
const j = localStorage.getItem(n);
|
3291
3291
|
if (j)
|
3292
3292
|
try {
|
3293
|
-
const S =
|
3293
|
+
const S = Xe("", JSON.parse(j)), O = new URLSearchParams(S.split("?")[1] ?? "");
|
3294
3294
|
return o.replace({ search: O.toString() }), O;
|
3295
3295
|
} catch {
|
3296
3296
|
localStorage.removeItem(n);
|
@@ -3308,14 +3308,14 @@ const Sc = () => ({
|
|
3308
3308
|
sortOrder: L ? B : "",
|
3309
3309
|
parsedParams: V
|
3310
3310
|
};
|
3311
|
-
}, [l]),
|
3311
|
+
}, [l]), f = u * (m - 1), g = (b, j) => {
|
3312
3312
|
const S = { search: b };
|
3313
3313
|
(j.redirectionMethod ?? a) === "push" ? o.push(S) : o.replace(S);
|
3314
|
-
},
|
3314
|
+
}, h = (b, j, S = {}) => {
|
3315
3315
|
l.set(b, String(j)), g(l.toString(), S);
|
3316
3316
|
}, N = (b = {}) => {
|
3317
3317
|
if (m !== rn) {
|
3318
|
-
|
3318
|
+
h(zr, rn, b);
|
3319
3319
|
return;
|
3320
3320
|
}
|
3321
3321
|
g(l.toString(), b);
|
@@ -3323,21 +3323,21 @@ const Sc = () => ({
|
|
3323
3323
|
return {
|
3324
3324
|
pageSize: u,
|
3325
3325
|
changePage: (b) => {
|
3326
|
-
|
3326
|
+
h(zr, b);
|
3327
3327
|
},
|
3328
3328
|
changePageSize: (b) => {
|
3329
|
-
|
3329
|
+
h(Ac, b), N();
|
3330
3330
|
},
|
3331
3331
|
searchKey: p,
|
3332
3332
|
handleSearch: (b) => {
|
3333
|
-
|
3333
|
+
h(Ic, b), N();
|
3334
3334
|
},
|
3335
|
-
offset:
|
3335
|
+
offset: f,
|
3336
3336
|
sortBy: _,
|
3337
3337
|
sortOrder: E,
|
3338
3338
|
handleSorting: (b) => {
|
3339
3339
|
let j;
|
3340
|
-
b === _ && E === xe.ASC ? j = xe.DESC : j = xe.ASC,
|
3340
|
+
b === _ && E === xe.ASC ? j = xe.DESC : j = xe.ASC, h(yc, b), h(Rc, j), N();
|
3341
3341
|
},
|
3342
3342
|
clearFilters: () => {
|
3343
3343
|
g("", {}), n && localStorage.removeItem(n);
|
@@ -3369,43 +3369,43 @@ const Sc = () => ({
|
|
3369
3369
|
children: a
|
3370
3370
|
}) => {
|
3371
3371
|
const r = Y(!1), o = Y({}), i = Y(/* @__PURE__ */ new Set()), c = Y(-1), l = e ?? xE, d = qe(
|
3372
|
-
({ keys: g, callback:
|
3372
|
+
({ keys: g, callback: h, description: N = "" }) => {
|
3373
3373
|
const { keys: C, id: A } = Ca(g);
|
3374
|
-
if (typeof
|
3374
|
+
if (typeof h != "function")
|
3375
3375
|
throw new Error("callback provided is not a function");
|
3376
3376
|
const v = o.current[A] && Ad(o.current[A].keys, g) ? o.current[A] : null;
|
3377
3377
|
if (v) {
|
3378
|
-
ba(v.callbackStack), v.callbackStack.push(
|
3378
|
+
ba(v.callbackStack), v.callbackStack.push(h);
|
3379
3379
|
return;
|
3380
3380
|
}
|
3381
|
-
o.current[A] = { keys: C, callbackStack: [
|
3381
|
+
o.current[A] = { keys: C, callbackStack: [h], description: N };
|
3382
3382
|
},
|
3383
3383
|
[]
|
3384
3384
|
), u = qe((g) => {
|
3385
|
-
const { id:
|
3386
|
-
if (!o.current[
|
3385
|
+
const { id: h } = Ca(g);
|
3386
|
+
if (!o.current[h])
|
3387
3387
|
return;
|
3388
|
-
const { callbackStack: N } = o.current[
|
3389
|
-
ba(N), N.pop(), N.length || delete o.current[
|
3388
|
+
const { callbackStack: N } = o.current[h];
|
3389
|
+
ba(N), N.pop(), N.length || delete o.current[h];
|
3390
3390
|
}, []), m = qe((g) => {
|
3391
3391
|
r.current = g;
|
3392
3392
|
}, []), p = qe((g) => {
|
3393
|
-
const { id:
|
3394
|
-
if (!o.current[
|
3393
|
+
const { id: h } = Ca(g);
|
3394
|
+
if (!o.current[h])
|
3395
3395
|
return;
|
3396
|
-
const { callbackStack: N } = o.current[
|
3396
|
+
const { callbackStack: N } = o.current[h];
|
3397
3397
|
ba(N), N[N.length - 1]();
|
3398
3398
|
}, []), _ = qe(() => {
|
3399
3399
|
if (!i.current.size)
|
3400
3400
|
return;
|
3401
3401
|
const { id: g } = Ca(Array.from(i.current.values()));
|
3402
3402
|
if (o.current[g]) {
|
3403
|
-
const { callbackStack:
|
3404
|
-
ba(
|
3403
|
+
const { callbackStack: h } = o.current[g];
|
3404
|
+
ba(h), h[h.length - 1]();
|
3405
3405
|
}
|
3406
3406
|
i.current.clear(), c.current > -1 && (clearTimeout(c.current), c.current = -1);
|
3407
3407
|
}, []), E = qe((g) => {
|
3408
|
-
s && g.preventDefault(), !(l.map((
|
3408
|
+
s && g.preventDefault(), !(l.map((h) => h.toUpperCase()).indexOf(g.target.tagName.toUpperCase()) > -1 || g.target?.role === "textbox" || r.current) && (i.current.add(g.key.toUpperCase()), g.ctrlKey && i.current.add("CONTROL"), g.metaKey && i.current.add("META"), g.altKey && i.current.add("ALT"), g.shiftKey && i.current.add("SHIFT"), c.current === -1 && (c.current = setTimeout(() => {
|
3409
3409
|
_();
|
3410
3410
|
}, n ?? EE)));
|
3411
3411
|
}, []), x = qe(() => {
|
@@ -3414,7 +3414,7 @@ const Sc = () => ({
|
|
3414
3414
|
k(() => (window.addEventListener("keydown", E), window.addEventListener("keyup", _), window.addEventListener("blur", x), () => {
|
3415
3415
|
window.removeEventListener("keydown", E), window.removeEventListener("keyup", _), window.removeEventListener("blur", x), c.current > -1 && clearTimeout(c.current);
|
3416
3416
|
}), [_, E, x]);
|
3417
|
-
const
|
3417
|
+
const f = te(
|
3418
3418
|
() => ({
|
3419
3419
|
registerShortcut: d,
|
3420
3420
|
unregisterShortcut: u,
|
@@ -3423,7 +3423,7 @@ const Sc = () => ({
|
|
3423
3423
|
}),
|
3424
3424
|
[d, u, m, p]
|
3425
3425
|
);
|
3426
|
-
return /* @__PURE__ */ t.jsx(ru.Provider, { value:
|
3426
|
+
return /* @__PURE__ */ t.jsx(ru.Provider, { value: f, children: a });
|
3427
3427
|
}, iu = ({
|
3428
3428
|
initialSortKey: e
|
3429
3429
|
} = {}) => {
|
@@ -3434,24 +3434,24 @@ const Sc = () => ({
|
|
3434
3434
|
pageSize: nn,
|
3435
3435
|
pageNumber: rn
|
3436
3436
|
}), d = c.pageSize * (c.pageNumber - 1), u = () => {
|
3437
|
-
l((
|
3438
|
-
...
|
3437
|
+
l((f) => ({
|
3438
|
+
...f,
|
3439
3439
|
pageNumber: rn
|
3440
3440
|
}));
|
3441
3441
|
};
|
3442
3442
|
return {
|
3443
3443
|
...s,
|
3444
|
-
handleSorting: (
|
3444
|
+
handleSorting: (f) => {
|
3445
3445
|
let g;
|
3446
|
-
|
3446
|
+
f === o && i === xe.ASC ? g = xe.DESC : g = xe.ASC, n(() => ({
|
3447
3447
|
...s,
|
3448
|
-
sortBy:
|
3448
|
+
sortBy: f,
|
3449
3449
|
sortOrder: g
|
3450
3450
|
})), u();
|
3451
3451
|
},
|
3452
3452
|
searchKey: a,
|
3453
|
-
handleSearch: (
|
3454
|
-
r(
|
3453
|
+
handleSearch: (f) => {
|
3454
|
+
r(f?.trim() ?? ""), u();
|
3455
3455
|
},
|
3456
3456
|
clearFilters: () => {
|
3457
3457
|
r(""), n({
|
@@ -3463,16 +3463,16 @@ const Sc = () => ({
|
|
3463
3463
|
});
|
3464
3464
|
},
|
3465
3465
|
...c,
|
3466
|
-
changePage: (
|
3466
|
+
changePage: (f) => {
|
3467
3467
|
l({
|
3468
3468
|
...c,
|
3469
|
-
pageNumber:
|
3469
|
+
pageNumber: f
|
3470
3470
|
});
|
3471
3471
|
},
|
3472
|
-
changePageSize: (
|
3472
|
+
changePageSize: (f) => {
|
3473
3473
|
l({
|
3474
3474
|
...c,
|
3475
|
-
pageSize:
|
3475
|
+
pageSize: f
|
3476
3476
|
}), u();
|
3477
3477
|
},
|
3478
3478
|
offset: d
|
@@ -3496,18 +3496,18 @@ const Sc = () => ({
|
|
3496
3496
|
o(!0);
|
3497
3497
|
}, _ = () => {
|
3498
3498
|
o(!1);
|
3499
|
-
}, E = (
|
3500
|
-
c(structuredClone(
|
3499
|
+
}, E = (h) => {
|
3500
|
+
c(structuredClone(h));
|
3501
3501
|
}, x = () => {
|
3502
3502
|
_(), c(structuredClone(e ?? []));
|
3503
|
-
},
|
3503
|
+
}, f = () => {
|
3504
3504
|
s(i), _();
|
3505
3505
|
}, g = () => /* @__PURE__ */ t.jsx("div", { className: "p-8 dc__border-top-n1", children: /* @__PURE__ */ t.jsx(
|
3506
3506
|
re,
|
3507
3507
|
{
|
3508
3508
|
text: "Apply",
|
3509
3509
|
dataTestId: "filter-select-picker-apply",
|
3510
|
-
onClick:
|
3510
|
+
onClick: f,
|
3511
3511
|
size: M.small,
|
3512
3512
|
fullWidth: !0,
|
3513
3513
|
showTooltip: !0,
|
@@ -3519,9 +3519,9 @@ const Sc = () => ({
|
|
3519
3519
|
}
|
3520
3520
|
}
|
3521
3521
|
) });
|
3522
|
-
return k(() => (r && l({ keys: qr, callback:
|
3522
|
+
return k(() => (r && l({ keys: qr, callback: f }), () => {
|
3523
3523
|
d(qr);
|
3524
|
-
}), [
|
3524
|
+
}), [f, r]), /* @__PURE__ */ t.jsx("div", { className: "dc__mxw-250", children: /* @__PURE__ */ t.jsx(
|
3525
3525
|
Xt,
|
3526
3526
|
{
|
3527
3527
|
...a,
|
@@ -3564,21 +3564,21 @@ const Sc = () => ({
|
|
3564
3564
|
}
|
3565
3565
|
});
|
3566
3566
|
}, _ = (g) => {
|
3567
|
-
const
|
3567
|
+
const h = {
|
3568
3568
|
unit: g.label,
|
3569
3569
|
value: qa(l) ? l : +l
|
3570
3570
|
};
|
3571
|
-
p(
|
3571
|
+
p(h);
|
3572
3572
|
}, E = (g) => {
|
3573
|
-
const
|
3573
|
+
const h = {
|
3574
3574
|
unit: c,
|
3575
3575
|
value: g.currentTarget.value === "" ? null : +g.currentTarget.value
|
3576
3576
|
};
|
3577
|
-
p(
|
3578
|
-
}, x = te(() => (Object.values(o)?.map((
|
3579
|
-
label:
|
3580
|
-
value: String(
|
3581
|
-
})) ?? []).sort((
|
3577
|
+
p(h);
|
3578
|
+
}, x = te(() => (Object.values(o)?.map((h) => ({
|
3579
|
+
label: h.name,
|
3580
|
+
value: String(h.conversionFactor)
|
3581
|
+
})) ?? []).sort((h, N) => Number(h.value) - Number(N.value)), [o]), f = te(
|
3582
3582
|
() => x.find((g) => g.label === c),
|
3583
3583
|
[x, c]
|
3584
3584
|
);
|
@@ -3618,7 +3618,7 @@ const Sc = () => ({
|
|
3618
3618
|
classNamePrefix: "build-infra-unit-select",
|
3619
3619
|
name: `${e}-unit`,
|
3620
3620
|
options: x,
|
3621
|
-
value:
|
3621
|
+
value: f,
|
3622
3622
|
onChange: _,
|
3623
3623
|
isSearchable: !1,
|
3624
3624
|
size: M.large,
|
@@ -4130,8 +4130,8 @@ const AL = (e, s = !1) => {
|
|
4130
4130
|
...i.profile
|
4131
4131
|
}), p(PE(r)));
|
4132
4132
|
}, [i, o]);
|
4133
|
-
const x = (
|
4134
|
-
const N = Object.keys(
|
4133
|
+
const x = (h) => {
|
4134
|
+
const N = Object.keys(h || {}), C = Object.keys(i?.profile?.configurations || {});
|
4135
4135
|
return N.concat(C).reduce((A, v) => (A[v] = !0, A), {});
|
4136
4136
|
};
|
4137
4137
|
return {
|
@@ -4141,11 +4141,11 @@ const AL = (e, s = !1) => {
|
|
4141
4141
|
reloadRequest: l,
|
4142
4142
|
profileInput: d,
|
4143
4143
|
profileInputErrors: m,
|
4144
|
-
handleProfileInputChange: ({ action:
|
4144
|
+
handleProfileInputChange: ({ action: h, data: N }) => {
|
4145
4145
|
const C = structuredClone(d), A = structuredClone(m), v = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", I = C.configurations[v], y = structuredClone(
|
4146
4146
|
i.profile.configurations[v] || I
|
4147
4147
|
);
|
4148
|
-
switch (
|
4148
|
+
switch (h) {
|
4149
4149
|
case $t.DESCRIPTION: {
|
4150
4150
|
const { value: T } = N;
|
4151
4151
|
C.description = T, A[$t.DESCRIPTION] = RE(T).message;
|
@@ -4161,13 +4161,13 @@ const AL = (e, s = !1) => {
|
|
4161
4161
|
case U.MEMORY_LIMIT:
|
4162
4162
|
case U.MEMORY_REQUEST: {
|
4163
4163
|
const { value: T, unit: b } = N;
|
4164
|
-
I[
|
4165
|
-
...I[
|
4166
|
-
key:
|
4164
|
+
I[h] = {
|
4165
|
+
...I[h],
|
4166
|
+
key: h,
|
4167
4167
|
value: T,
|
4168
4168
|
unit: b
|
4169
4169
|
};
|
4170
|
-
const { keyToPersist: j, keyToPersistConfigType: S } = vx[
|
4170
|
+
const { keyToPersist: j, keyToPersistConfigType: S } = vx[h], { request: O, limit: w } = DE({
|
4171
4171
|
request: {
|
4172
4172
|
value: T,
|
4173
4173
|
unit: b
|
@@ -4180,23 +4180,23 @@ const AL = (e, s = !1) => {
|
|
4180
4180
|
value: I[S].value,
|
4181
4181
|
unit: I[S].unit
|
4182
4182
|
},
|
4183
|
-
unitsMap: i.configurationUnits[
|
4183
|
+
unitsMap: i.configurationUnits[h]
|
4184
4184
|
});
|
4185
4185
|
if (j === "limit") {
|
4186
|
-
A[S] = w.message, A[
|
4186
|
+
A[S] = w.message, A[h] = O.message;
|
4187
4187
|
break;
|
4188
4188
|
}
|
4189
|
-
A[
|
4189
|
+
A[h] = w.message, A[S] = O.message;
|
4190
4190
|
break;
|
4191
4191
|
}
|
4192
4192
|
case U.BUILD_TIMEOUT: {
|
4193
4193
|
const { value: T, unit: b } = N;
|
4194
|
-
I[
|
4195
|
-
...I[
|
4196
|
-
key:
|
4194
|
+
I[h] = {
|
4195
|
+
...I[h],
|
4196
|
+
key: h,
|
4197
4197
|
value: T,
|
4198
4198
|
unit: b
|
4199
|
-
}, A[
|
4199
|
+
}, A[h] = jE(T).message;
|
4200
4200
|
break;
|
4201
4201
|
}
|
4202
4202
|
case "activate_tolerance":
|
@@ -4204,7 +4204,7 @@ const AL = (e, s = !1) => {
|
|
4204
4204
|
case "activate_timeout":
|
4205
4205
|
case "activate_memory":
|
4206
4206
|
case "activate_cpu": {
|
4207
|
-
const T = _c[
|
4207
|
+
const T = _c[h];
|
4208
4208
|
fc[T]?.forEach((j) => {
|
4209
4209
|
I[j] = {
|
4210
4210
|
...y[j],
|
@@ -4218,7 +4218,7 @@ const AL = (e, s = !1) => {
|
|
4218
4218
|
case "de_activate_memory":
|
4219
4219
|
case "de_activate_timeout":
|
4220
4220
|
case "de_activate_cpu": {
|
4221
|
-
const T = _c[
|
4221
|
+
const T = _c[h];
|
4222
4222
|
fc[T]?.forEach((j) => {
|
4223
4223
|
I[j] = {
|
4224
4224
|
...I[j],
|
@@ -4232,7 +4232,7 @@ const AL = (e, s = !1) => {
|
|
4232
4232
|
case "activate_cs":
|
4233
4233
|
case "de_activate_cm":
|
4234
4234
|
case "de_activate_cs": {
|
4235
|
-
const { id: T, componentType: b } = N, j =
|
4235
|
+
const { id: T, componentType: b } = N, j = Je[b], S = I[j].value, O = S.findIndex((L) => L.id === T);
|
4236
4236
|
if (O === -1 || !S[O].canOverride) {
|
4237
4237
|
const L = "Unable to customize this CM/CS";
|
4238
4238
|
ke.showToast({
|
@@ -4241,13 +4241,13 @@ const AL = (e, s = !1) => {
|
|
4241
4241
|
}), Ma(new Error(L));
|
4242
4242
|
return;
|
4243
4243
|
}
|
4244
|
-
const w =
|
4244
|
+
const w = h === "activate_cm" || h === "activate_cs";
|
4245
4245
|
if (S[O].isOverridden = w, w) {
|
4246
4246
|
const B = (y[j]?.value || []).find((V) => V.id === T) || S[O];
|
4247
4247
|
S[O].useFormProps = B?.useFormProps, S[O].initialResponse = B?.initialResponse;
|
4248
4248
|
} else
|
4249
4249
|
S[O].useFormProps = S[O].defaultValue, S[O].initialResponse = S[O].defaultValueInitialResponse;
|
4250
|
-
A[
|
4250
|
+
A[Je[b]] && (delete A[Je[b]][T], Object.keys(A[Je[b]]).length === 0 && (A[Je[b]] = null));
|
4251
4251
|
break;
|
4252
4252
|
}
|
4253
4253
|
case Et.ADD_TARGET_PLATFORM: {
|
@@ -4432,7 +4432,7 @@ const AL = (e, s = !1) => {
|
|
4432
4432
|
break;
|
4433
4433
|
}
|
4434
4434
|
case Et.SYNC_CM_CS_ITEM: {
|
4435
|
-
const { id: T, value: b, hasError: j, componentType: S } = N, O = I[
|
4435
|
+
const { id: T, value: b, hasError: j, componentType: S } = N, O = I[Je[S]].value.findIndex((L) => L.id === T);
|
4436
4436
|
if (O === -1) {
|
4437
4437
|
ke.showToast({
|
4438
4438
|
variant: Se.error,
|
@@ -4440,22 +4440,22 @@ const AL = (e, s = !1) => {
|
|
4440
4440
|
}), Ma(new Error("ConfigMap does not exist"));
|
4441
4441
|
return;
|
4442
4442
|
}
|
4443
|
-
I[
|
4444
|
-
A[
|
4445
|
-
).length === 0 && (A[
|
4443
|
+
I[Je[S]].value[O].useFormProps = b, A[Je[S]] || (A[Je[S]] = {}), j ? A[Je[S]][T] = !0 : A[Je[S]][T] && delete A[Je[S]][T], Object.keys(
|
4444
|
+
A[Je[S]]
|
4445
|
+
).length === 0 && (A[Je[S]] = null);
|
4446
4446
|
break;
|
4447
4447
|
}
|
4448
4448
|
case Et.DELETE_CM_CS_ITEM: {
|
4449
|
-
const { id: T, componentType: b } = N, j = I[
|
4450
|
-
I[
|
4449
|
+
const { id: T, componentType: b } = N, j = I[Je[b]].value.filter((S) => S.id !== T);
|
4450
|
+
I[Je[b]].value = j, A[Je[b]] && (delete A[Je[b]][T], Object.keys(A[Je[b]]).length === 0 && (A[Je[b]] = null));
|
4451
4451
|
break;
|
4452
4452
|
}
|
4453
4453
|
}
|
4454
4454
|
u(C), p(A);
|
4455
4455
|
},
|
4456
4456
|
loadingActionRequest: _,
|
4457
|
-
handleSubmit: async (
|
4458
|
-
if (
|
4457
|
+
handleSubmit: async (h) => {
|
4458
|
+
if (h?.preventDefault(), Object.keys(m).filter(
|
4459
4459
|
(C) => m[C] !== null && m[C] !== void 0
|
4460
4460
|
).length > 0) {
|
4461
4461
|
ke.showToast({
|
@@ -4492,7 +4492,7 @@ const AL = (e, s = !1) => {
|
|
4492
4492
|
try {
|
4493
4493
|
const a = { name: e }, {
|
4494
4494
|
result: { configurationUnits: r, defaultConfigurations: o, profile: i }
|
4495
|
-
} = await ue(
|
4495
|
+
} = await ue(Xe(fi(), a));
|
4496
4496
|
return YE({
|
4497
4497
|
configurationUnits: r,
|
4498
4498
|
defaultConfigurations: o,
|
@@ -4512,7 +4512,7 @@ const AL = (e, s = !1) => {
|
|
4512
4512
|
if (a) {
|
4513
4513
|
const i = { name: e };
|
4514
4514
|
return await oi(
|
4515
|
-
|
4515
|
+
Xe(fi(), i),
|
4516
4516
|
r
|
4517
4517
|
);
|
4518
4518
|
}
|
@@ -4661,24 +4661,24 @@ const AL = (e, s = !1) => {
|
|
4661
4661
|
defaultValue: m ? null : u
|
4662
4662
|
} : null;
|
4663
4663
|
if (m) {
|
4664
|
-
const _ = l.value?.reduce((
|
4664
|
+
const _ = l.value?.reduce((f, g) => (f[g.useFormProps.name] = g, f), {}), E = d?.value?.map((f) => {
|
4665
4665
|
const g = structuredClone(
|
4666
|
-
_[
|
4666
|
+
_[f.useFormProps.name]
|
4667
4667
|
);
|
4668
4668
|
return {
|
4669
|
-
...
|
4669
|
+
...f,
|
4670
4670
|
defaultValueInitialResponse: g?.defaultValueInitialResponse,
|
4671
4671
|
defaultValue: g?.useFormProps,
|
4672
4672
|
isOverridden: !0,
|
4673
4673
|
canOverride: !!g
|
4674
4674
|
};
|
4675
4675
|
}) || [], x = E.reduce(
|
4676
|
-
(
|
4676
|
+
(f, g) => (f[g.useFormProps.name] = g, f),
|
4677
4677
|
{}
|
4678
4678
|
);
|
4679
|
-
Object.values(_).forEach((
|
4680
|
-
x[
|
4681
|
-
...
|
4679
|
+
Object.values(_).forEach((f) => {
|
4680
|
+
x[f.useFormProps.name] || E.push({
|
4681
|
+
...f,
|
4682
4682
|
isOverridden: !1,
|
4683
4683
|
canOverride: !0
|
4684
4684
|
});
|
@@ -4732,9 +4732,9 @@ const AL = (e, s = !1) => {
|
|
4732
4732
|
(E, x) => {
|
4733
4733
|
if (!p[x])
|
4734
4734
|
return E;
|
4735
|
-
const
|
4735
|
+
const f = fn(_[x]), g = fn(p[x]);
|
4736
4736
|
return E[x] = {
|
4737
|
-
...
|
4737
|
+
...f,
|
4738
4738
|
defaultValue: g,
|
4739
4739
|
active: !0,
|
4740
4740
|
targetPlatform: m
|
@@ -4765,12 +4765,12 @@ const AL = (e, s = !1) => {
|
|
4765
4765
|
const _ = GE(u);
|
4766
4766
|
if (!_)
|
4767
4767
|
return d;
|
4768
|
-
const E = m ? _.value?.length > 0 : u.active, x = e.name === vr ? !0 : E,
|
4768
|
+
const E = m ? _.value?.length > 0 : u.active, x = e.name === vr ? !0 : E, f = {
|
4769
4769
|
..._,
|
4770
4770
|
id: u.id,
|
4771
4771
|
active: x
|
4772
4772
|
};
|
4773
|
-
return d.push(
|
4773
|
+
return d.push(f), d;
|
4774
4774
|
}
|
4775
4775
|
return d;
|
4776
4776
|
}, []);
|
@@ -5405,7 +5405,7 @@ const xN = (e) => {
|
|
5405
5405
|
i.append("file", e[0]);
|
5406
5406
|
try {
|
5407
5407
|
const { result: c } = await gt(
|
5408
|
-
|
5408
|
+
Xe(`${G.CD_CONFIG}/${s}/${n}/${G.FILE_UPLOAD}`, {
|
5409
5409
|
allowedExtensions: a,
|
5410
5410
|
maxUploadSize: r
|
5411
5411
|
}),
|
@@ -5450,7 +5450,7 @@ const xN = (e) => {
|
|
5450
5450
|
c.append("file", e[0]);
|
5451
5451
|
try {
|
5452
5452
|
const { result: l } = await gt(
|
5453
|
-
|
5453
|
+
Xe(`${G.CI_CONFIG_GET}/${s}/${n}/${G.FILE_UPLOAD}`, {
|
5454
5454
|
envId: a,
|
5455
5455
|
allowedExtensions: r,
|
5456
5456
|
maxUploadSize: o
|
@@ -5886,13 +5886,13 @@ const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5886
5886
|
}, kN = ({
|
5887
5887
|
params: e,
|
5888
5888
|
signal: s
|
5889
|
-
}) => ue(
|
5889
|
+
}) => ue(Xe(G.CONFIG_DATA, e), { signal: s }), UN = async (e) => {
|
5890
5890
|
const s = {
|
5891
5891
|
comparisonItems: e.filter((r) => !!r).map((r, o) => ({ index: o, ...r }))
|
5892
5892
|
}, n = Array(e.length).fill(null), {
|
5893
5893
|
result: { comparisonItemResponse: a }
|
5894
5894
|
} = await ue(
|
5895
|
-
|
5895
|
+
Xe(G.CONFIG_COMPARE_SECRET, {
|
5896
5896
|
compareConfig: JSON.stringify(s)
|
5897
5897
|
})
|
5898
5898
|
);
|
@@ -5904,11 +5904,11 @@ var At = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(At ||
|
|
5904
5904
|
const os = {
|
5905
5905
|
...At,
|
5906
5906
|
auto: "auto"
|
5907
|
-
}, Eu = "userPreferences", Cw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) =>
|
5907
|
+
}, Eu = "userPreferences", Cw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => Xe(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), bw = ({ kind: e, version: s, queryParams: n, suffix: a }) => Xe(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), BN = (e) => gt(G.CD_CONFIG, e), Tw = () => ue(G.ENVIRONMENT_DATA), Sw = async () => {
|
5908
5908
|
const e = {
|
5909
5909
|
key: Eu
|
5910
5910
|
}, { result: s } = await ue(
|
5911
|
-
|
5911
|
+
Xe(`${G.ATTRIBUTES_USER}/${G.GET}`, e)
|
5912
5912
|
);
|
5913
5913
|
if (!s?.value)
|
5914
5914
|
return null;
|
@@ -6082,20 +6082,20 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6082
6082
|
ur(() => {
|
6083
6083
|
s && i(s);
|
6084
6084
|
}, [s]);
|
6085
|
-
const c = a[Tn], l = () => Object.keys(a).length, d = (
|
6086
|
-
const
|
6085
|
+
const c = a[Tn], l = () => Object.keys(a).length, d = (f, g) => {
|
6086
|
+
const h = JSON.parse(JSON.stringify(f));
|
6087
6087
|
g.forEach((N) => {
|
6088
|
-
delete
|
6089
|
-
}), r(
|
6090
|
-
}, u = (
|
6088
|
+
delete h[N];
|
6089
|
+
}), r(h);
|
6090
|
+
}, u = (f) => {
|
6091
6091
|
const g = JSON.parse(JSON.stringify(a));
|
6092
6092
|
c && delete g[Tn], r({
|
6093
6093
|
...g,
|
6094
|
-
...
|
6094
|
+
...f
|
6095
6095
|
});
|
6096
|
-
}, m = ({ action:
|
6097
|
-
const
|
6098
|
-
switch (
|
6096
|
+
}, m = ({ action: f, data: g }) => {
|
6097
|
+
const h = g?.identifierIds ?? [], N = g?.identifierObject ?? {};
|
6098
|
+
switch (f) {
|
6099
6099
|
case it.CLEAR_ALL_SELECTIONS:
|
6100
6100
|
r({});
|
6101
6101
|
break;
|
@@ -6103,11 +6103,11 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6103
6103
|
ke.showToast({
|
6104
6104
|
variant: Se.info,
|
6105
6105
|
description: $c
|
6106
|
-
}), d(o,
|
6106
|
+
}), d(o, h);
|
6107
6107
|
break;
|
6108
6108
|
}
|
6109
6109
|
case it.CLEAR_IDENTIFIERS: {
|
6110
|
-
d(a,
|
6110
|
+
d(a, h);
|
6111
6111
|
break;
|
6112
6112
|
}
|
6113
6113
|
case it.SELECT_ALL_ACROSS_PAGES: {
|
@@ -6135,7 +6135,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6135
6135
|
break;
|
6136
6136
|
}
|
6137
6137
|
default:
|
6138
|
-
throw new Error(HN(
|
6138
|
+
throw new Error(HN(f));
|
6139
6139
|
}
|
6140
6140
|
}, p = () => Object.keys(a).length === 0 ? {
|
6141
6141
|
isChecked: !1,
|
@@ -6144,7 +6144,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6144
6144
|
isChecked: !0,
|
6145
6145
|
checkboxValue: dt.BULK_CHECKED
|
6146
6146
|
} : Object.keys(o).every(
|
6147
|
-
(
|
6147
|
+
(h) => a[h]
|
6148
6148
|
) ? {
|
6149
6149
|
isChecked: !0,
|
6150
6150
|
checkboxValue: dt.CHECKED
|
@@ -6545,7 +6545,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6545
6545
|
{
|
6546
6546
|
envStateText: m(),
|
6547
6547
|
title: g,
|
6548
|
-
tooltipContent: /* @__PURE__ */ t.jsx("div", { className: "flexbox-col lh-20", children: l.map((
|
6548
|
+
tooltipContent: /* @__PURE__ */ t.jsx("div", { className: "flexbox-col lh-20", children: l.map((h) => /* @__PURE__ */ t.jsx("span", { children: h }, h)) })
|
6549
6549
|
}
|
6550
6550
|
);
|
6551
6551
|
}
|
@@ -6556,7 +6556,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6556
6556
|
}, _ = o !== Hr.CD;
|
6557
6557
|
if (!e && !d && (o !== Hr.CD || !s && !Object.values(Ea).includes(n) && !i && !l?.length))
|
6558
6558
|
return null;
|
6559
|
-
const
|
6559
|
+
const f = () => o !== Hr.CD ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6560
6560
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
6561
6561
|
d
|
6562
6562
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -6577,7 +6577,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6577
6577
|
d
|
6578
6578
|
] });
|
6579
6579
|
return /* @__PURE__ */ t.jsxs("div", { className: `bg__primary pb-8 br-4 flex left flex-wrap ${_ ? "dc__gap-8" : ""}`, children: [
|
6580
|
-
|
6580
|
+
f(),
|
6581
6581
|
!!u?.length && /* @__PURE__ */ t.jsx(bu, { targetPlatforms: u, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
6582
6582
|
_r,
|
6583
6583
|
{
|
@@ -6632,7 +6632,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6632
6632
|
installedAppId: n,
|
6633
6633
|
artifactId: a,
|
6634
6634
|
installedAppVersionHistoryId: r
|
6635
|
-
}, i =
|
6635
|
+
}, i = Xe(G.SCAN_RESULT, o);
|
6636
6636
|
return await ue(i);
|
6637
6637
|
}, sC = {
|
6638
6638
|
color: "var(--N300)",
|
@@ -6647,7 +6647,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6647
6647
|
swapLegendAndBar: o = !1,
|
6648
6648
|
showAnimationOnBar: i = !1
|
6649
6649
|
}) => {
|
6650
|
-
const c = e.reduce((x,
|
6650
|
+
const c = e.reduce((x, f) => f.value + x, 0), l = e.filter((x) => !!x.value), d = (x) => `${x.value / c * 100}%`, u = (x) => /* @__PURE__ */ t.jsx("span", { className: a, "data-testid": `segmented-bar-chart-${x}-label`, children: x }), m = (x, f) => /* @__PURE__ */ t.jsx("span", { className: n, "data-testid": `segmented-bar-chart-${f}-value`, children: r ? `${x}/${c}` : x }), p = () => r ? l.map((x, f) => (
|
6651
6651
|
// eslint-disable-next-line react/no-array-index-key
|
6652
6652
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
6653
6653
|
m(x.value, x.label),
|
@@ -6655,14 +6655,14 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6655
6655
|
/* @__PURE__ */ t.jsx("span", { style: { backgroundColor: x.color }, className: "h-12 dc__border-radius-2 w-4" }),
|
6656
6656
|
u(x.label)
|
6657
6657
|
] })
|
6658
|
-
] },
|
6659
|
-
)) : e.map((x,
|
6658
|
+
] }, f)
|
6659
|
+
)) : e.map((x, f) => (
|
6660
6660
|
// eslint-disable-next-line react/no-array-index-key
|
6661
6661
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-items-center", children: [
|
6662
6662
|
/* @__PURE__ */ t.jsx("div", { className: "dot", style: { backgroundColor: x.color, width: "10px", height: "10px" } }),
|
6663
6663
|
m(x.value, x.label),
|
6664
6664
|
u(x.label)
|
6665
|
-
] },
|
6665
|
+
] }, f)
|
6666
6666
|
));
|
6667
6667
|
if (!e.length)
|
6668
6668
|
return null;
|
@@ -6675,10 +6675,10 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6675
6675
|
transition: { duration: 0.6 }
|
6676
6676
|
} : {},
|
6677
6677
|
className: "flexbox dc__gap-2",
|
6678
|
-
children: l.map((x,
|
6678
|
+
children: l.map((x, f, g) => /* @__PURE__ */ t.jsx(
|
6679
6679
|
"div",
|
6680
6680
|
{
|
6681
|
-
className: `h-8 ${
|
6681
|
+
className: `h-8 ${f === 0 ? "dc__left-radius-4" : ""} ${f === g.length - 1 ? "dc__right-radius-4" : ""}`,
|
6682
6682
|
style: { backgroundColor: x.color, width: d(x) }
|
6683
6683
|
},
|
6684
6684
|
x.label
|
@@ -7040,8 +7040,8 @@ const nC = {
|
|
7040
7040
|
order: e[n]?.defaultSortOrder || Xa.ASC
|
7041
7041
|
}), [c, l] = R(Array(s.length).fill(!1)), d = te(
|
7042
7042
|
() => s.sort((E, x) => {
|
7043
|
-
const
|
7044
|
-
return o.order * f
|
7043
|
+
const f = E.cells[o.index].cellContent, g = x.cells[o.index].cellContent, h = e[o.index].compareFunc || dC;
|
7044
|
+
return o.order * h(f, g);
|
7045
7045
|
}),
|
7046
7046
|
[s, o]
|
7047
7047
|
), u = () => i({ ...o, order: -1 * o.order }), m = (E) => () => i({ index: E, order: e[E]?.defaultSortOrder || Xa.ASC }), p = () => l(Array(s.length).fill(!c.every((E) => E))), _ = (E) => () => {
|
@@ -7110,13 +7110,13 @@ const nC = {
|
|
7110
7110
|
)
|
7111
7111
|
}
|
7112
7112
|
),
|
7113
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: E.cells.map((
|
7113
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: E.cells.map((f, g) => /* @__PURE__ */ t.jsx(
|
7114
7114
|
"div",
|
7115
7115
|
{
|
7116
7116
|
className: "flexbox dc__align-start dc__content-start fs-13 lh-20 fw-4 dc__word-break",
|
7117
7117
|
style: { width: `${e[g].width}px` },
|
7118
7118
|
"data-testid": `security-table-cell-${x}:${g}`,
|
7119
|
-
children:
|
7119
|
+
children: f.component || f.cellContent
|
7120
7120
|
}
|
7121
7121
|
)) })
|
7122
7122
|
] }),
|
@@ -7983,13 +7983,13 @@ const nC = {
|
|
7983
7983
|
codeScan: !!c?.codeScan,
|
7984
7984
|
kubernetesManifest: !!c?.kubernetesManifest
|
7985
7985
|
})
|
7986
|
-
), u = (
|
7986
|
+
), u = (h) => {
|
7987
7987
|
d((N) => ({
|
7988
7988
|
...N,
|
7989
|
-
detailViewData: [...N.detailViewData ?? [],
|
7989
|
+
detailViewData: [...N.detailViewData ?? [], h]
|
7990
7990
|
}));
|
7991
7991
|
}, m = () => {
|
7992
|
-
d((
|
7992
|
+
d((h) => ({ ...h, detailViewData: h.detailViewData?.slice(0, -1) ?? null }));
|
7993
7993
|
}, p = (l.detailViewData?.length ?? 0) - 1, _ = l.detailViewData?.[p] ?? null, E = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__align-items-center pl-20 pr-20 pt-12 pb-12 dc__border-bottom", children: [
|
7994
7994
|
/* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 lh-24 cn-9", children: "Security" }),
|
7995
7995
|
/* @__PURE__ */ t.jsx(
|
@@ -8024,10 +8024,10 @@ const nC = {
|
|
8024
8024
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 cn-900 mono dc__truncate dc__mxw-600", children: _.title }),
|
8025
8025
|
/* @__PURE__ */ t.jsx(Ht, { content: _.title })
|
8026
8026
|
] })
|
8027
|
-
] }),
|
8028
|
-
const
|
8029
|
-
if (
|
8030
|
-
return /* @__PURE__ */ t.jsx(Qe, { ...
|
8027
|
+
] }), f = () => {
|
8028
|
+
const h = BC(c, l.category, l.subCategory, _);
|
8029
|
+
if (h)
|
8030
|
+
return /* @__PURE__ */ t.jsx(Qe, { ...h, imageType: Xs.Large });
|
8031
8031
|
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: v } = _ || kC(c, l.category, l.subCategory, u, o), { entities: I, lastScanTimeString: y, scanToolName: T, scanToolUrl: b } = _ || UC(c, l.category, l.subCategory);
|
8032
8032
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
8033
8033
|
I?.length ? /* @__PURE__ */ t.jsx(
|
@@ -8059,7 +8059,7 @@ const nC = {
|
|
8059
8059
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-right-n1 h-100" }),
|
8060
8060
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__overflow-auto flex-grow-1", style: { width: "744px" }, children: [
|
8061
8061
|
_ && x(),
|
8062
|
-
c &&
|
8062
|
+
c && f()
|
8063
8063
|
] })
|
8064
8064
|
] })
|
8065
8065
|
);
|
@@ -8202,9 +8202,9 @@ const nC = {
|
|
8202
8202
|
imageScan: !!i,
|
8203
8203
|
codeScan: !!c,
|
8204
8204
|
kubernetesManifest: !!l
|
8205
|
-
}), p = (
|
8205
|
+
}), p = (f) => {
|
8206
8206
|
const g = i?.vulnerability?.list?.[0];
|
8207
|
-
switch (
|
8207
|
+
switch (f) {
|
8208
8208
|
case ne.CODE_SCAN:
|
8209
8209
|
return { scanToolName: c?.scanToolName, scanToolUrl: c?.scanToolUrl };
|
8210
8210
|
case ne.KUBERNETES_MANIFEST:
|
@@ -8215,46 +8215,46 @@ const nC = {
|
|
8215
8215
|
scanToolUrl: g?.scanToolUrl
|
8216
8216
|
};
|
8217
8217
|
}
|
8218
|
-
}, _ = (
|
8218
|
+
}, _ = (f, g) => {
|
8219
8219
|
a(!0), o({
|
8220
|
-
category:
|
8220
|
+
category: f,
|
8221
8221
|
subCategory: g,
|
8222
8222
|
detailViewData: null
|
8223
8223
|
});
|
8224
|
-
}, E = (
|
8224
|
+
}, E = (f, g) => () => _(f, g), x = () => {
|
8225
8225
|
a(!1);
|
8226
8226
|
};
|
8227
8227
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8228
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((
|
8229
|
-
const g =
|
8228
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((f) => {
|
8229
|
+
const g = f !== ne.IMAGE_SCAN && (e.codeScan?.status === "Failed" || e.kubernetesManifest?.status === "Failed"), { scanToolName: h, scanToolUrl: N } = p(f);
|
8230
8230
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
8231
8231
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space pb-8 dc__border-bottom-n1", children: [
|
8232
|
-
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[
|
8233
|
-
/* @__PURE__ */ t.jsx(Ti, { scanToolName:
|
8232
|
+
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[f].label }),
|
8233
|
+
/* @__PURE__ */ t.jsx(Ti, { scanToolName: h, scanToolUrl: N })
|
8234
8234
|
] }),
|
8235
8235
|
g ? /* @__PURE__ */ t.jsx("div", { className: "dc__border br-8", children: /* @__PURE__ */ t.jsx(
|
8236
8236
|
Js,
|
8237
8237
|
{
|
8238
|
-
title:
|
8238
|
+
title: f === ne.CODE_SCAN ? "Code scan failed" : "Manifest scan failed",
|
8239
8239
|
subTitle: "",
|
8240
8240
|
description: ""
|
8241
8241
|
}
|
8242
|
-
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[
|
8243
|
-
if (!e[
|
8242
|
+
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[f].subCategories.map((C) => {
|
8243
|
+
if (!e[f][C])
|
8244
8244
|
return null;
|
8245
|
-
const A =
|
8245
|
+
const A = f === ne.IMAGE_SCAN && tr(e[f][C].list ?? []) === "Failed", v = C === J.MISCONFIGURATIONS ? e[f][C]?.misConfSummary?.status : e[f][C]?.summary?.severities;
|
8246
8246
|
return /* @__PURE__ */ t.jsx(
|
8247
8247
|
Ou,
|
8248
8248
|
{
|
8249
|
-
category:
|
8249
|
+
category: f,
|
8250
8250
|
subCategory: C,
|
8251
8251
|
severities: v,
|
8252
|
-
handleCardClick: E(
|
8252
|
+
handleCardClick: E(f, C),
|
8253
8253
|
scanFailed: A
|
8254
8254
|
}
|
8255
8255
|
);
|
8256
8256
|
}) })
|
8257
|
-
] },
|
8257
|
+
] }, f);
|
8258
8258
|
}) }),
|
8259
8259
|
n && /* @__PURE__ */ t.jsx(
|
8260
8260
|
yu,
|
@@ -8302,7 +8302,7 @@ const nC = {
|
|
8302
8302
|
l(!0);
|
8303
8303
|
}, E = () => {
|
8304
8304
|
l(!1);
|
8305
|
-
}, x = u.result?.imageScan?.vulnerability,
|
8305
|
+
}, x = u.result?.imageScan?.vulnerability, f = x?.list || [], g = tr(f) === "Failed";
|
8306
8306
|
return /* @__PURE__ */ t.jsxs("div", { className: "p-12", children: [
|
8307
8307
|
/* @__PURE__ */ t.jsx(
|
8308
8308
|
Ou,
|
@@ -8528,15 +8528,15 @@ const nC = {
|
|
8528
8528
|
labelTooltipConfig: _,
|
8529
8529
|
labelTippyCustomizedConfig: E,
|
8530
8530
|
value: x,
|
8531
|
-
borderConfig:
|
8531
|
+
borderConfig: f,
|
8532
8532
|
...g
|
8533
8533
|
}) => {
|
8534
|
-
const
|
8535
|
-
const j =
|
8534
|
+
const h = Y(null), [N, C] = R(""), A = (b) => {
|
8535
|
+
const j = h.current;
|
8536
8536
|
j && (j.style.height = `${b}px`);
|
8537
8537
|
}, v = () => {
|
8538
|
-
const b = parseInt(
|
8539
|
-
let j =
|
8538
|
+
const b = parseInt(h.current.style.height, 10);
|
8539
|
+
let j = h.current.scrollHeight || 0;
|
8540
8540
|
j < b || b > Qr || (j < Zr && (j = Zr), j > Qr && (j = Qr), A(j));
|
8541
8541
|
};
|
8542
8542
|
k(() => {
|
@@ -8565,7 +8565,7 @@ const nC = {
|
|
8565
8565
|
required: c,
|
8566
8566
|
fullWidth: n,
|
8567
8567
|
ariaLabel: m,
|
8568
|
-
borderConfig:
|
8568
|
+
borderConfig: f,
|
8569
8569
|
borderRadiusConfig: p,
|
8570
8570
|
labelTooltipConfig: _,
|
8571
8571
|
labelTippyCustomizedConfig: E,
|
@@ -8591,8 +8591,8 @@ const nC = {
|
|
8591
8591
|
onChange: I,
|
8592
8592
|
onBlur: y,
|
8593
8593
|
onKeyDown: T,
|
8594
|
-
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig:
|
8595
|
-
ref:
|
8594
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: f, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8595
|
+
ref: h,
|
8596
8596
|
style: {
|
8597
8597
|
// No max height when user is expanding
|
8598
8598
|
maxHeight: "none",
|
@@ -8611,21 +8611,21 @@ const nC = {
|
|
8611
8611
|
}).catch(() => {
|
8612
8612
|
d(!1);
|
8613
8613
|
});
|
8614
|
-
}, E = (
|
8614
|
+
}, E = (f) => {
|
8615
8615
|
if (o) {
|
8616
|
-
const g =
|
8617
|
-
if (
|
8616
|
+
const g = f.trim(), { maxLength: h } = o;
|
8617
|
+
if (h && g.length > h.value)
|
8618
8618
|
return {
|
8619
8619
|
isValid: !1,
|
8620
|
-
message:
|
8620
|
+
message: h.message
|
8621
8621
|
};
|
8622
8622
|
}
|
8623
8623
|
return {
|
8624
8624
|
isValid: !0,
|
8625
8625
|
message: ""
|
8626
8626
|
};
|
8627
|
-
}, x = (
|
8628
|
-
const g =
|
8627
|
+
}, x = (f) => {
|
8628
|
+
const g = f.target.value ?? "";
|
8629
8629
|
c(g), m(E(g));
|
8630
8630
|
};
|
8631
8631
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 dc__gap-12", children: [
|
@@ -8934,10 +8934,10 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8934
8934
|
...c ? nb : ab
|
8935
8935
|
], u = () => {
|
8936
8936
|
r(!0);
|
8937
|
-
}, m = (
|
8937
|
+
}, m = (f) => {
|
8938
8938
|
vs.event({
|
8939
8939
|
category: "Help Nav",
|
8940
|
-
action: `${
|
8940
|
+
action: `${f.name} Clicked`
|
8941
8941
|
});
|
8942
8942
|
}, p = () => {
|
8943
8943
|
s(!o);
|
@@ -8953,30 +8953,30 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8953
8953
|
children: "Give feedback"
|
8954
8954
|
}
|
8955
8955
|
)
|
8956
|
-
] }), E = (
|
8957
|
-
const g = d[
|
8956
|
+
] }), E = (f) => {
|
8957
|
+
const g = d[f.currentTarget.dataset.index];
|
8958
8958
|
m(g);
|
8959
8959
|
}, x = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8960
8960
|
" ",
|
8961
|
-
d.map((
|
8961
|
+
d.map((f, g) => /* @__PURE__ */ t.jsxs(Hs, { children: [
|
8962
8962
|
/* @__PURE__ */ t.jsxs(
|
8963
8963
|
"a",
|
8964
8964
|
{
|
8965
8965
|
className: "dc__no-decor help-card__option help-card__link flex left cn-9",
|
8966
|
-
href:
|
8966
|
+
href: f.link,
|
8967
8967
|
target: "_blank",
|
8968
8968
|
rel: "noreferrer noopener",
|
8969
8969
|
"data-index": g,
|
8970
8970
|
onClick: E,
|
8971
8971
|
children: [
|
8972
|
-
/* @__PURE__ */ t.jsx(
|
8973
|
-
/* @__PURE__ */ t.jsx("div", { className: "help-card__option-name ml-12 cn-9 fs-14", children:
|
8972
|
+
/* @__PURE__ */ t.jsx(f.icon, {}),
|
8973
|
+
/* @__PURE__ */ t.jsx("div", { className: "help-card__option-name ml-12 cn-9 fs-14", children: f.name })
|
8974
8974
|
]
|
8975
8975
|
},
|
8976
|
-
|
8976
|
+
f.name
|
8977
8977
|
),
|
8978
8978
|
c && g === 1 && /* @__PURE__ */ t.jsx("div", { className: "help__enterprise pl-8 pb-4-imp pt-4-imp dc__gap-12 flexbox dc__align-items-center h-28", children: "Enterprise Support" })
|
8979
|
-
] },
|
8979
|
+
] }, f.name))
|
8980
8980
|
] });
|
8981
8981
|
return /* @__PURE__ */ t.jsx("div", { className: "dc__transparent-div", onClick: p, children: /* @__PURE__ */ t.jsxs("div", { className: `help-card pt-4 pb-4 ${e} ${c ? "help-grid__feedback" : ""}`, children: [
|
8982
8982
|
!window._env_.K8S_CLIENT && /* @__PURE__ */ t.jsxs(
|
@@ -9121,7 +9121,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9121
9121
|
showAnnouncementHeader: u,
|
9122
9122
|
tippyProps: m
|
9123
9123
|
}) => {
|
9124
|
-
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked:
|
9124
|
+
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: f } = ua(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: h } = yr(), { isTippyCustomized: N, tippyRedirectLink: C, TippyIcon: A, tippyMessage: v, onClickTippyButton: I, additionalContent: y } = m || {}, [T, b] = R(!1), [j, S] = R(!1), { email: O } = Uu(), [w, L] = R(
|
9125
9125
|
{
|
9126
9126
|
serverInfo: void 0,
|
9127
9127
|
fetchingServerInfo: !1
|
@@ -9146,7 +9146,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9146
9146
|
const q = (D) => {
|
9147
9147
|
x(!1), D && _(+D);
|
9148
9148
|
}, Q = () => {
|
9149
|
-
|
9149
|
+
h(!1);
|
9150
9150
|
}, de = () => {
|
9151
9151
|
Q(), S(!j), T && b(!1), sr("clickedOkay", 1), q();
|
9152
9152
|
}, Ie = async () => {
|
@@ -9279,7 +9279,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9279
9279
|
setShowHelpCard: b,
|
9280
9280
|
serverInfo: w.serverInfo,
|
9281
9281
|
fetchingServerInfo: w.fetchingServerInfo,
|
9282
|
-
setGettingStartedClicked:
|
9282
|
+
setGettingStartedClicked: f,
|
9283
9283
|
showHelpCard: T
|
9284
9284
|
}
|
9285
9285
|
),
|
@@ -9707,10 +9707,10 @@ const Yc = (e) => {
|
|
9707
9707
|
showInfoIcon: _ = !1,
|
9708
9708
|
tabsConfig: E
|
9709
9709
|
}) => {
|
9710
|
-
const [x,
|
9711
|
-
|
9712
|
-
},
|
9713
|
-
|
9710
|
+
const [x, f] = R(!1), g = () => {
|
9711
|
+
f(!0);
|
9712
|
+
}, h = () => {
|
9713
|
+
f(!1);
|
9714
9714
|
}, N = () => d ? /* @__PURE__ */ t.jsxs("div", { className: "flex left fs-16 cn-9 fw-6 dc__gap-4", children: [
|
9715
9715
|
/* @__PURE__ */ t.jsx("span", { "data-testid": m, className: "lh-32", children: r }),
|
9716
9716
|
/* @__PURE__ */ t.jsx(
|
@@ -9744,7 +9744,7 @@ const Yc = (e) => {
|
|
9744
9744
|
mb,
|
9745
9745
|
{
|
9746
9746
|
title: r,
|
9747
|
-
closeModal:
|
9747
|
+
closeModal: h,
|
9748
9748
|
closeModalText: i,
|
9749
9749
|
...Array.isArray(E) ? {
|
9750
9750
|
tabsConfig: E
|
@@ -10342,9 +10342,9 @@ const Ob = (e, s) => {
|
|
10342
10342
|
primaryBranchAfterRegex: c,
|
10343
10343
|
rootClassName: l = ""
|
10344
10344
|
}) => {
|
10345
|
-
const d = e === Gt.WEBHOOK, u = e === Gt.BranchRegex || !!o || i, [m, p] = R(""), [_, E] = R(""), [x,
|
10345
|
+
const d = e === Gt.WEBHOOK, u = e === Gt.BranchRegex || !!o || i, [m, p] = R(""), [_, E] = R(""), [x, f] = R(!!d), [g, h] = R(!1), N = () => {
|
10346
10346
|
if (d) {
|
10347
|
-
|
10347
|
+
f(!0), h(!1);
|
10348
10348
|
const I = JSON.parse(s);
|
10349
10349
|
Tc(I.eventId).then((y) => {
|
10350
10350
|
const T = y.result;
|
@@ -10354,9 +10354,9 @@ const Ob = (e, s) => {
|
|
10354
10354
|
I.condition,
|
10355
10355
|
T.selectors
|
10356
10356
|
)
|
10357
|
-
),
|
10357
|
+
), f(!1);
|
10358
10358
|
}).catch(() => {
|
10359
|
-
|
10359
|
+
f(!1), h(!0);
|
10360
10360
|
});
|
10361
10361
|
} else
|
10362
10362
|
p(s), E(s);
|
@@ -10377,13 +10377,13 @@ const Ob = (e, s) => {
|
|
10377
10377
|
function A() {
|
10378
10378
|
if (!d)
|
10379
10379
|
return;
|
10380
|
-
|
10380
|
+
f(!0), h(!1);
|
10381
10381
|
const I = JSON.parse(s), y = I.eventId, T = I.condition;
|
10382
10382
|
Tc(y).then((b) => {
|
10383
10383
|
const j = b.result;
|
10384
|
-
p(j.name), E(Xc(j.name, T, j.selectors)),
|
10384
|
+
p(j.name), E(Xc(j.name, T, j.selectors)), f(!1);
|
10385
10385
|
}).catch(() => {
|
10386
|
-
|
10386
|
+
f(!1), h(!0);
|
10387
10387
|
});
|
10388
10388
|
}
|
10389
10389
|
function v() {
|
@@ -10669,9 +10669,9 @@ const Ob = (e, s) => {
|
|
10669
10669
|
resourceId: _,
|
10670
10670
|
podName: E,
|
10671
10671
|
namespace: x,
|
10672
|
-
workflowExecutionStages:
|
10672
|
+
workflowExecutionStages: f
|
10673
10673
|
}) => {
|
10674
|
-
const { path: g, params:
|
10674
|
+
const { path: g, params: h } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...v } = Tt(), I = l === De.CD || l === De.GROUP_CD, y = I ? "triggerId" : "buildId", T = _ === p?.id, b = Y(null), j = () => {
|
10675
10675
|
const B = {
|
10676
10676
|
...v,
|
10677
10677
|
envId: A,
|
@@ -10684,9 +10684,9 @@ const Ob = (e, s) => {
|
|
10684
10684
|
k(() => {
|
10685
10685
|
S();
|
10686
10686
|
}, [b]);
|
10687
|
-
const O =
|
10687
|
+
const O = h[y], w = (B) => {
|
10688
10688
|
+O == +e && (b.current = B);
|
10689
|
-
}, L = d !== as.DEPLOY && Object.keys(
|
10689
|
+
}, L = d !== as.DEPLOY && Object.keys(f || {}).length > 0;
|
10690
10690
|
return /* @__PURE__ */ t.jsx(
|
10691
10691
|
mt,
|
10692
10692
|
{
|
@@ -10701,7 +10701,7 @@ const Ob = (e, s) => {
|
|
10701
10701
|
L ? /* @__PURE__ */ t.jsx(
|
10702
10702
|
Kb,
|
10703
10703
|
{
|
10704
|
-
workflowExecutionStages:
|
10704
|
+
workflowExecutionStages: f,
|
10705
10705
|
triggeredByEmail: r,
|
10706
10706
|
namespace: x,
|
10707
10707
|
podName: E,
|
@@ -10733,7 +10733,7 @@ const Ob = (e, s) => {
|
|
10733
10733
|
activeClassName: "active",
|
10734
10734
|
ref: w,
|
10735
10735
|
children: /* @__PURE__ */ t.jsxs("div", { className: "w-100 deployment-history-card", children: [
|
10736
|
-
L ? Fb(
|
10736
|
+
L ? Fb(f) : /* @__PURE__ */ t.jsx(
|
10737
10737
|
Oi,
|
10738
10738
|
{
|
10739
10739
|
status: Yb(s),
|
@@ -10781,14 +10781,14 @@ const Ob = (e, s) => {
|
|
10781
10781
|
}) => {
|
10782
10782
|
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = zs(), { path: E } = Jt(), x = (v) => {
|
10783
10783
|
e === De.CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, pipelineId: v.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, pipelineId: v.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
|
10784
|
-
},
|
10784
|
+
}, f = () => {
|
10785
10785
|
vs.event({
|
10786
10786
|
category: "pagination",
|
10787
10787
|
action: "auto",
|
10788
10788
|
label: `${e.toLowerCase()}-history`,
|
10789
10789
|
value: n.size
|
10790
10790
|
}), r({ offset: n.size, size: 20 });
|
10791
|
-
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p,
|
10791
|
+
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, h = s?.find((v) => v.value === g()) ?? null;
|
10792
10792
|
s?.sort((v, I) => v.label > I.label ? 1 : -1);
|
10793
10793
|
const N = s?.filter((v) => !v.deploymentAppDeleteRequest), C = () => e === De.GROUP_CI || e === De.GROUP_CD ? eo.APPLICATION : e === De.CI ? eo.PIPELINE : eo.ENVIRONMENT, A = (v) => (v.selectProps.styles.option = hx(), /* @__PURE__ */ t.jsx(Ve.Option, { ...v, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10794
10794
|
(e === De.CI || e === De.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
@@ -10819,7 +10819,7 @@ const Ob = (e, s) => {
|
|
10819
10819
|
ei,
|
10820
10820
|
{
|
10821
10821
|
classNamePrefix: "history-pipeline-dropdown",
|
10822
|
-
value:
|
10822
|
+
value: h,
|
10823
10823
|
options: e === De.CI || e === De.GROUP_CI ? s : N,
|
10824
10824
|
onChange: x,
|
10825
10825
|
components: {
|
@@ -10858,7 +10858,7 @@ const Ob = (e, s) => {
|
|
10858
10858
|
},
|
10859
10859
|
v
|
10860
10860
|
)),
|
10861
|
-
a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(zu, { callback:
|
10861
|
+
a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(zu, { callback: f })
|
10862
10862
|
] })
|
10863
10863
|
] });
|
10864
10864
|
}
|
@@ -11034,7 +11034,7 @@ const Ob = (e, s) => {
|
|
11034
11034
|
});
|
11035
11035
|
const S = s.current;
|
11036
11036
|
o((O) => ({ ...O, [v]: !$n(S[v], j) }));
|
11037
|
-
},
|
11037
|
+
}, f = (v, I) => () => {
|
11038
11038
|
if (I || a({ ...n, [v]: n[v]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
11039
11039
|
const T = p(), b = An(n[v], T[v]);
|
11040
11040
|
b && !u[v] && m({ ...u, [v]: !0 }), d({ ...l, [v]: b });
|
@@ -11049,7 +11049,7 @@ const Ob = (e, s) => {
|
|
11049
11049
|
errors: l,
|
11050
11050
|
register: (v, I) => ({
|
11051
11051
|
onChange: x(v, I?.sanitizeFn, I?.isCustomComponent),
|
11052
|
-
onBlur:
|
11052
|
+
onBlur: f(v, I?.noTrim),
|
11053
11053
|
onFocus: g(v),
|
11054
11054
|
name: v
|
11055
11055
|
}),
|
@@ -11134,17 +11134,17 @@ const Ob = (e, s) => {
|
|
11134
11134
|
promotionApprovalMetadata: _,
|
11135
11135
|
appliedFiltersTimestamp: E,
|
11136
11136
|
selectedEnvironmentName: x,
|
11137
|
-
renderCIListHeader:
|
11137
|
+
renderCIListHeader: f,
|
11138
11138
|
targetPlatforms: g
|
11139
11139
|
}) => {
|
11140
|
-
const
|
11140
|
+
const h = !!fu(s?.approvalConfigData) || !!m?.length || !!_?.promotedFromType;
|
11141
11141
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
11142
11142
|
e === "deployed-artifact" && /* @__PURE__ */ t.jsxs("div", { className: "flex dc__width-inherit pb-12", children: [
|
11143
11143
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" }),
|
11144
11144
|
/* @__PURE__ */ t.jsx(md, { className: "icon-dim-16 ml-8 mr-8", style: { transform: "rotate(90deg)" } }),
|
11145
11145
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" })
|
11146
11146
|
] }),
|
11147
|
-
|
11147
|
+
h && f && f({
|
11148
11148
|
userApprovalMetadata: s,
|
11149
11149
|
triggeredBy: n,
|
11150
11150
|
appliedFilters: m,
|
@@ -11155,7 +11155,7 @@ const Ob = (e, s) => {
|
|
11155
11155
|
/* @__PURE__ */ t.jsxs(
|
11156
11156
|
"div",
|
11157
11157
|
{
|
11158
|
-
className: `dc__h-fit-content ci-artifact image-tag-parent-card bg__primary br-4 dc__border p-12 w-100 dc__mxw-800 ci-artifact--${e} ${
|
11158
|
+
className: `dc__h-fit-content ci-artifact image-tag-parent-card bg__primary br-4 dc__border p-12 w-100 dc__mxw-800 ci-artifact--${e} ${h && f ? "dc__no-top-radius dc__no-top-border" : ""}`,
|
11159
11159
|
"data-testid": "hover-on-report-artifact",
|
11160
11160
|
children: [
|
11161
11161
|
/* @__PURE__ */ t.jsxs("div", { className: "ci-artifacts-grid flex left", children: [
|
@@ -11200,11 +11200,11 @@ const Ob = (e, s) => {
|
|
11200
11200
|
renderCIListHeader: E,
|
11201
11201
|
targetPlatforms: x
|
11202
11202
|
}) => {
|
11203
|
-
const { isSuperAdmin:
|
11203
|
+
const { isSuperAdmin: f } = nu(), { handleDownload: g } = nT(), { triggerId: h, buildId: N } = Tt(), C = e.toLowerCase();
|
11204
11204
|
async function A() {
|
11205
11205
|
await g({
|
11206
11206
|
downloadUrl: r,
|
11207
|
-
fileName: `${N ||
|
11207
|
+
fileName: `${N || h}.zip`
|
11208
11208
|
});
|
11209
11209
|
}
|
11210
11210
|
if (C === ye.RUNNING || C === ye.STARTING || C === ye.WAITING_TO_START)
|
@@ -11241,7 +11241,7 @@ const Ob = (e, s) => {
|
|
11241
11241
|
appReleaseTagNames: u,
|
11242
11242
|
tagsEditable: m,
|
11243
11243
|
hideImageTaggingHardDelete: p,
|
11244
|
-
isSuperAdmin:
|
11244
|
+
isSuperAdmin: f,
|
11245
11245
|
renderCIListHeader: E,
|
11246
11246
|
targetPlatforms: x,
|
11247
11247
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
|
@@ -11313,9 +11313,11 @@ const oT = (e) => {
|
|
11313
11313
|
}, iT = (e, s) => {
|
11314
11314
|
const n = `${G.CI_CONFIG_GET}/${e.pipelineId}/workflow/${e.workflowId}?forceAbort=${s}`;
|
11315
11315
|
return ii(n);
|
11316
|
-
}, cT = (e, s) => {
|
11317
|
-
const
|
11318
|
-
|
11316
|
+
}, cT = (e, s, n) => {
|
11317
|
+
const a = Xe(`${G.CD_MATERIAL_GET}/${e}/workflowRunner/${s}`, {
|
11318
|
+
forceAbort: n
|
11319
|
+
});
|
11320
|
+
return ii(a);
|
11319
11321
|
};
|
11320
11322
|
function lT(e, s, n, a, r, o) {
|
11321
11323
|
let i;
|
@@ -11400,7 +11402,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11400
11402
|
n
|
11401
11403
|
), r.values = a, r;
|
11402
11404
|
}, mD = (e, s, n, a) => {
|
11403
|
-
const r =
|
11405
|
+
const r = Xe(
|
11404
11406
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${G.CONFIG_CD_PIPELINE}/${li.v1}`,
|
11405
11407
|
{
|
11406
11408
|
baseConfigurationId: n,
|
@@ -11417,7 +11419,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11417
11419
|
releaseId: a,
|
11418
11420
|
showCurrentReleaseDeployments: r = !1
|
11419
11421
|
}) => {
|
11420
|
-
const o =
|
11422
|
+
const o = Xe(
|
11421
11423
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${lt.cdPipeline}/${li.v1}`,
|
11422
11424
|
{
|
11423
11425
|
filterCriteria: kb({ appId: e, envId: s, releaseId: a, showCurrentReleaseDeployments: r }),
|
@@ -11444,10 +11446,10 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11444
11446
|
const _ = () => {
|
11445
11447
|
s ? i(l) : c(l);
|
11446
11448
|
}, E = () => {
|
11447
|
-
const
|
11448
|
-
return
|
11449
|
-
}, x = (
|
11450
|
-
|
11449
|
+
const f = IN(r, a);
|
11450
|
+
return f === "0s" ? "< 1s" : f;
|
11451
|
+
}, x = (f) => {
|
11452
|
+
f && (f.dataset.containsMatch === "true" && f.dataset.triggered !== "true" && (f.dataset.triggered = "true", f.scrollIntoView({ block: "center", behavior: "smooth" })), f.dataset.containsMatch === "false" && (f.dataset.triggered = "false"));
|
11451
11453
|
};
|
11452
11454
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
|
11453
11455
|
/* @__PURE__ */ t.jsxs(
|
@@ -11488,8 +11490,8 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11488
11490
|
}
|
11489
11491
|
),
|
11490
11492
|
s && /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
11491
|
-
n.map((
|
11492
|
-
const
|
11493
|
+
n.map((f, g) => {
|
11494
|
+
const h = Fu({ stageIndex: l, lineNumberInsideStage: g }) === m;
|
11493
11495
|
return /* @__PURE__ */ t.jsxs(
|
11494
11496
|
tl,
|
11495
11497
|
{
|
@@ -11499,7 +11501,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11499
11501
|
{
|
11500
11502
|
ref: x,
|
11501
11503
|
className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
|
11502
|
-
"data-contains-match":
|
11504
|
+
"data-contains-match": h,
|
11503
11505
|
children: g + 1
|
11504
11506
|
}
|
11505
11507
|
),
|
@@ -11508,7 +11510,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11508
11510
|
{
|
11509
11511
|
className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
|
11510
11512
|
dangerouslySetInnerHTML: {
|
11511
|
-
__html: As.sanitize(
|
11513
|
+
__html: As.sanitize(f)
|
11512
11514
|
}
|
11513
11515
|
}
|
11514
11516
|
)
|
@@ -11549,32 +11551,32 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11549
11551
|
let r = Sa;
|
11550
11552
|
const [o, i] = R(!1), [c, l] = R(1e3), d = Y([]), u = Y(null);
|
11551
11553
|
function m() {
|
11552
|
-
a((
|
11554
|
+
a((h) => [...h, ...d.current]), d.current = [];
|
11553
11555
|
}
|
11554
11556
|
km(m, c);
|
11555
11557
|
function p() {
|
11556
11558
|
u.current && u.current.close && u.current.close();
|
11557
11559
|
}
|
11558
|
-
function _(
|
11559
|
-
|
11560
|
+
function _(h) {
|
11561
|
+
h.type === "message" && (r = Sa, d.current.push(h.data));
|
11560
11562
|
}
|
11561
11563
|
function E() {
|
11562
11564
|
r = Sa, d.current = [], a([]);
|
11563
11565
|
}
|
11564
11566
|
function x() {
|
11565
|
-
r = Sa, a((
|
11567
|
+
r = Sa, a((h) => [...h, ...d.current]), d.current = [], u.current.close(), l(null);
|
11566
11568
|
}
|
11567
|
-
function
|
11569
|
+
function f() {
|
11568
11570
|
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(Ta.MESSAGE, _), u.current.addEventListener(Ta.START_OF_STREAM, E), u.current.addEventListener(Ta.END_OF_STREAM, x), u.current.addEventListener(Ta.ERROR, g);
|
11569
11571
|
}
|
11570
|
-
function g(
|
11571
|
-
r -= 1, u.current && u.current.close(), r > 0 ?
|
11572
|
+
function g(h) {
|
11573
|
+
r -= 1, u.current && u.current.close(), r > 0 ? f() : (i(!0), l(null));
|
11572
11574
|
}
|
11573
|
-
return k(() => (e &&
|
11575
|
+
return k(() => (e && f(), p), [e, s]), [n, u.current, o];
|
11574
11576
|
}, ET = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
11575
11577
|
const { pipelineId: r, envId: o, appId: i } = Tt(), c = n === De.CI ? `${Ga}/${G.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Ga}/${G.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [l, d, u] = xT(
|
11576
11578
|
e.podStatus && e.podStatus !== to.PENDING && c
|
11577
|
-
), [m, p] = R([]), [_, E] = R([]), [x,
|
11579
|
+
), [m, p] = R([]), [_, E] = R([]), [x, f] = R(0), [g, h] = R([]), { searchKey: N, handleSearch: C } = au(), A = _.length > 0, v = te(() => m.every((H) => H.isOpen), [m]), I = v ? "Collapse all stages" : "Expand all stages", { registerShortcut: y, unregisterShortcut: T } = aa(), b = l[0]?.startsWith(qc) || !1;
|
11578
11580
|
function j({
|
11579
11581
|
log: H,
|
11580
11582
|
currentIndex: F = -1,
|
@@ -11675,7 +11677,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11675
11677
|
return;
|
11676
11678
|
if (!b) {
|
11677
11679
|
const F = l.map((ce) => j({ log: ce }).__html);
|
11678
|
-
|
11680
|
+
h(F);
|
11679
11681
|
return;
|
11680
11682
|
}
|
11681
11683
|
const H = w(x);
|
@@ -11695,7 +11697,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11695
11697
|
const B = (H, F = N) => {
|
11696
11698
|
if (_.length > 0 || H === "reset") {
|
11697
11699
|
let ce = 0;
|
11698
|
-
H === "next" ? ce = (x + 1) % _.length : H === "prev" && (ce = x > 0 ? x - 1 : _.length - 1),
|
11700
|
+
H === "next" ? ce = (x + 1) % _.length : H === "prev" && (ce = x > 0 ? x - 1 : _.length - 1), f(ce), p(w(ce, F));
|
11699
11701
|
}
|
11700
11702
|
}, V = () => {
|
11701
11703
|
B("next");
|
@@ -12149,26 +12151,26 @@ const vT = (e, s) => {
|
|
12149
12151
|
[o]
|
12150
12152
|
);
|
12151
12153
|
k(() => {
|
12152
|
-
const
|
12154
|
+
const f = Object.keys(_?.nodes || {});
|
12153
12155
|
let g = [];
|
12154
|
-
if (
|
12155
|
-
for (let
|
12156
|
-
_.nodes[h
|
12156
|
+
if (f.length > 0) {
|
12157
|
+
for (let h = 0; h < f.length; h++)
|
12158
|
+
_.nodes[f[h]].forEach((C) => {
|
12157
12159
|
C.health && g.push(C);
|
12158
12160
|
});
|
12159
12161
|
g.sort(
|
12160
|
-
(
|
12162
|
+
(h, N) => Wc[h.health.status?.toLowerCase()] - Wc[N.health.status?.toLowerCase()]
|
12161
12163
|
), e && (g = g.filter(
|
12162
|
-
(
|
12164
|
+
(h) => h.health.status?.toLowerCase() !== ge.HEALTHY
|
12163
12165
|
)), d(g);
|
12164
12166
|
}
|
12165
12167
|
}, [`${_}`]);
|
12166
|
-
function E(
|
12168
|
+
function E(f, g) {
|
12167
12169
|
return o.resourceTree?.resourcesSyncResult && // eslint-disable-next-line no-prototype-builtins
|
12168
|
-
o.resourceTree?.resourcesSyncResult.hasOwnProperty(`${
|
12170
|
+
o.resourceTree?.resourcesSyncResult.hasOwnProperty(`${f}/${g}`) ? o.resourceTree.resourcesSyncResult[`${f}/${g}`] : "";
|
12169
12171
|
}
|
12170
|
-
const x = (
|
12171
|
-
i !==
|
12172
|
+
const x = (f) => {
|
12173
|
+
i !== f.toLowerCase() && c(f.toLowerCase());
|
12172
12174
|
};
|
12173
12175
|
return /* @__PURE__ */ t.jsxs("div", { className: "pb-12", children: [
|
12174
12176
|
l.length > 0 && /* @__PURE__ */ t.jsx("div", { className: "pt-16 pl-20 pb-8", children: /* @__PURE__ */ t.jsx("div", { className: "flexbox pr-20 w-100", children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
@@ -12180,13 +12182,13 @@ const vT = (e, s) => {
|
|
12180
12182
|
}
|
12181
12183
|
) }) }) }),
|
12182
12184
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
12183
|
-
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pr-20 pb-8 pl-20", children: zg.map((
|
12185
|
+
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pr-20 pb-8 pl-20", children: zg.map((f, g) => (
|
12184
12186
|
// eslint-disable-next-line react/no-array-index-key
|
12185
|
-
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children:
|
12187
|
+
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: f }, `header_${g}`)
|
12186
12188
|
)) }),
|
12187
12189
|
/* @__PURE__ */ t.jsx("div", { className: `resource-list fs-13 ${s ? "with-footer" : ""}`, children: l.length > 0 ? l.filter(
|
12188
|
-
(
|
12189
|
-
).map((
|
12190
|
+
(f) => i === So || i === Rr.drifted && f.hasDrift || f.health.status?.toLowerCase() === i
|
12191
|
+
).map((f) => /* @__PURE__ */ t.jsxs(
|
12190
12192
|
"div",
|
12191
12193
|
{
|
12192
12194
|
className: "app-status-row pt-8 pr-20 pb-8 pl-20",
|
@@ -12197,20 +12199,20 @@ const vT = (e, s) => {
|
|
12197
12199
|
className: "default-tt",
|
12198
12200
|
arrow: !1,
|
12199
12201
|
placement: "right",
|
12200
|
-
content:
|
12201
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "dc__ellipsis-right", children:
|
12202
|
+
content: f.kind,
|
12203
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "dc__ellipsis-right", children: f.kind })
|
12202
12204
|
}
|
12203
12205
|
),
|
12204
|
-
/* @__PURE__ */ t.jsx("div", { children:
|
12206
|
+
/* @__PURE__ */ t.jsx("div", { children: f.name }),
|
12205
12207
|
/* @__PURE__ */ t.jsx(
|
12206
12208
|
"div",
|
12207
12209
|
{
|
12208
|
-
className: `app-summary__status-name f-${
|
12209
|
-
children:
|
12210
|
+
className: `app-summary__status-name f-${f.health.status ? f.health.status.toLowerCase() : ""}`,
|
12211
|
+
children: f.status ? f.status : f.health.status
|
12210
12212
|
}
|
12211
12213
|
),
|
12212
12214
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
12213
|
-
n &&
|
12215
|
+
n && f.hasDrift && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__align-items-center", children: [
|
12214
12216
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 cy-7", children: "Config drift detected" }),
|
12215
12217
|
a && u && m && /* @__PURE__ */ t.jsx(
|
12216
12218
|
re,
|
@@ -12224,11 +12226,11 @@ const vT = (e, s) => {
|
|
12224
12226
|
}
|
12225
12227
|
)
|
12226
12228
|
] }),
|
12227
|
-
/* @__PURE__ */ t.jsx("div", { children: E(
|
12229
|
+
/* @__PURE__ */ t.jsx("div", { children: E(f.kind, f.name) })
|
12228
12230
|
] })
|
12229
12231
|
]
|
12230
12232
|
},
|
12231
|
-
`${
|
12233
|
+
`${f.kind}/${f.name}`
|
12232
12234
|
)) : /* @__PURE__ */ t.jsx("div", { className: "flex dc__height-inherit mh-300", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__align-center", children: [
|
12233
12235
|
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-20" }),
|
12234
12236
|
/* @__PURE__ */ t.jsx("div", { children: "Checking resources status" })
|
@@ -12281,17 +12283,17 @@ const vT = (e, s) => {
|
|
12281
12283
|
}
|
12282
12284
|
),
|
12283
12285
|
e === z.KUBECTL_APPLY && /* @__PURE__ */ t.jsxs("div", { className: "pr-8 pl-8 pt-12 pb-12", children: [
|
12284
|
-
/* @__PURE__ */ t.jsx("div", { className: "", children: n.deploymentStatusBreakdown[z.KUBECTL_APPLY].kubeList?.map((x,
|
12286
|
+
/* @__PURE__ */ t.jsx("div", { className: "", children: n.deploymentStatusBreakdown[z.KUBECTL_APPLY].kubeList?.map((x, f) => (
|
12285
12287
|
// eslint-disable-next-line react/no-array-index-key
|
12286
12288
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left lh-20 mb-8", children: [
|
12287
12289
|
Jc(x.icon),
|
12288
12290
|
/* @__PURE__ */ t.jsx("span", { className: "ml-12", children: x.message })
|
12289
|
-
] }, `item-${
|
12291
|
+
] }, `item-${f}`)
|
12290
12292
|
)) }),
|
12291
12293
|
o.resourceDetails?.length ? /* @__PURE__ */ t.jsxs("div", { className: "pl-32", children: [
|
12292
|
-
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pb-8", children: Sb.map((x,
|
12294
|
+
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pb-8", children: Sb.map((x, f) => (
|
12293
12295
|
// eslint-disable-next-line react/no-array-index-key
|
12294
|
-
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: x }, `header_${
|
12296
|
+
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: x }, `header_${f}`)
|
12295
12297
|
)) }),
|
12296
12298
|
/* @__PURE__ */ t.jsx("div", { className: "resource-list fs-13", children: o.resourceDetails.map((x) => /* @__PURE__ */ t.jsxs(
|
12297
12299
|
"div",
|
@@ -12586,7 +12588,7 @@ const jT = ({
|
|
12586
12588
|
}) => {
|
12587
12589
|
const d = zs(), { url: u } = Jt(), { appId: m, envId: p, triggerId: _ } = Tt(), [E, x] = R(
|
12588
12590
|
e?.toUpperCase() !== z.ABORTED
|
12589
|
-
),
|
12591
|
+
), f = Y(i), g = f.current && c ? c() : Bc(), [h, N] = R(g), C = () => {
|
12590
12592
|
va && clearTimeout(va);
|
12591
12593
|
}, A = () => {
|
12592
12594
|
lT(m, p, !0, _, n, a).then((T) => {
|
@@ -12600,10 +12602,10 @@ const jT = ({
|
|
12600
12602
|
k(() => (s === an.HELM && d.replace(`${u.replace("deployment-steps", "source-code")}`), r && A(), () => {
|
12601
12603
|
C();
|
12602
12604
|
}), [a]), k(() => {
|
12603
|
-
|
12605
|
+
f.current = i;
|
12604
12606
|
}, [i]);
|
12605
12607
|
const v = (T) => {
|
12606
|
-
const b =
|
12608
|
+
const b = f.current && c ? c(T) : Bc(T);
|
12607
12609
|
C(), b.deploymentStatus === ge.INPROGRESS ? va = setTimeout(() => {
|
12608
12610
|
A();
|
12609
12611
|
}, 1e4) : va = setTimeout(() => {
|
@@ -12621,7 +12623,7 @@ const jT = ({
|
|
12621
12623
|
pathname: `${Oe.APP}/${m}/${Oe.APP_DETAILS}/${p}/${Oe.APP_DETAILS_K8}`,
|
12622
12624
|
search: zc
|
12623
12625
|
});
|
12624
|
-
}, y = () => !
|
12626
|
+
}, y = () => !f.current && !h?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
12625
12627
|
NT,
|
12626
12628
|
{
|
12627
12629
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.TITLE,
|
@@ -12639,12 +12641,12 @@ const jT = ({
|
|
12639
12641
|
/* @__PURE__ */ t.jsx(
|
12640
12642
|
RT,
|
12641
12643
|
{
|
12642
|
-
deploymentStatusDetailsBreakdownData:
|
12643
|
-
isVirtualEnvironment:
|
12644
|
+
deploymentStatusDetailsBreakdownData: h,
|
12645
|
+
isVirtualEnvironment: f.current
|
12644
12646
|
}
|
12645
12647
|
)
|
12646
12648
|
] });
|
12647
|
-
return e?.toUpperCase() === z.ABORTED ||
|
12649
|
+
return e?.toUpperCase() === z.ABORTED || h.deploymentStatus === ge.SUPERSEDED ? /* @__PURE__ */ t.jsx("div", { className: "flexbox deployment-aborted", "data-testid": "deployment-history-steps-failed-message", children: /* @__PURE__ */ t.jsx(
|
12648
12650
|
Qe,
|
12649
12651
|
{
|
12650
12652
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
|
@@ -12835,7 +12837,7 @@ const Zu = {
|
|
12835
12837
|
}, x = (C) => {
|
12836
12838
|
const { value: A } = C.target;
|
12837
12839
|
c?.activeTab !== A && c?.onClick?.(A);
|
12838
|
-
},
|
12840
|
+
}, f = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12839
12841
|
a && /* @__PURE__ */ t.jsx(Os, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(nt, { className: "icon-dim-16 fcn-6" }) }) }),
|
12840
12842
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12841
12843
|
] }), g = () => {
|
@@ -12851,7 +12853,7 @@ const Zu = {
|
|
12851
12853
|
children: C.map((v) => /* @__PURE__ */ t.jsx(It.Radio, { value: v, className: "fs-12 lh-20 cn-7 fw-6", children: v }, v))
|
12852
12854
|
}
|
12853
12855
|
) });
|
12854
|
-
},
|
12856
|
+
}, h = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12855
12857
|
n.map(({ title: C, href: A, onClick: v, diffState: I, Icon: y }) => {
|
12856
12858
|
const T = d ? Mn[I] : Mn.hasDiff;
|
12857
12859
|
return /* @__PURE__ */ t.jsxs(
|
@@ -12887,9 +12889,9 @@ const Zu = {
|
|
12887
12889
|
] }), N = () => e ? ["90", "70", "50"].map((C) => /* @__PURE__ */ t.jsx(LT, { width: C }, C)) : l?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12888
12890
|
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(Vn, { className: "icon-dim-16 fcn-7" }) }),
|
12889
12891
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
|
12890
|
-
] }) :
|
12892
|
+
] }) : h();
|
12891
12893
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
12892
|
-
|
12894
|
+
f(),
|
12893
12895
|
!!c?.tabs.length && g(),
|
12894
12896
|
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children: N() })
|
12895
12897
|
] });
|
@@ -12911,7 +12913,7 @@ const Zu = {
|
|
12911
12913
|
contentClassName: E = "",
|
12912
12914
|
imageStyles: x = {}
|
12913
12915
|
}) => {
|
12914
|
-
const
|
12916
|
+
const f = _ === "row", g = () => {
|
12915
12917
|
switch (c) {
|
12916
12918
|
case Xs.Large:
|
12917
12919
|
return { width: "250px", height: "200px" };
|
@@ -12922,7 +12924,7 @@ const Zu = {
|
|
12922
12924
|
return /* @__PURE__ */ t.jsxs(
|
12923
12925
|
"div",
|
12924
12926
|
{
|
12925
|
-
className: `flex ${
|
12927
|
+
className: `flex ${f ? "dc__gap-32" : "column dc__gap-20"} empty-state ${r || ""}`,
|
12926
12928
|
style: o,
|
12927
12929
|
"data-testid": "generic-empty-state",
|
12928
12930
|
...i >= 0 && { style: { ...o, height: `calc(100vh - ${i}px)` } },
|
@@ -12952,11 +12954,11 @@ const Zu = {
|
|
12952
12954
|
/* @__PURE__ */ t.jsxs(
|
12953
12955
|
"div",
|
12954
12956
|
{
|
12955
|
-
className: `flex column dc__gap-20 dc__mxw-300 ${
|
12957
|
+
className: `flex column dc__gap-20 dc__mxw-300 ${f ? "dc__align-start" : ""} ${E}`,
|
12956
12958
|
children: [
|
12957
12959
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-8", children: [
|
12958
12960
|
/* @__PURE__ */ t.jsx("h4", { className: "title fw-6 cn-9 mt-0 mb-0 lh-24 dc__align-center", children: e }),
|
12959
|
-
n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${
|
12961
|
+
n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${f ? "subtitle--text-start" : ""}`, children: n })
|
12960
12962
|
] }),
|
12961
12963
|
a && l(),
|
12962
12964
|
u
|
@@ -13537,15 +13539,15 @@ const Zu = {
|
|
13537
13539
|
const x = _l(
|
13538
13540
|
e,
|
13539
13541
|
r
|
13540
|
-
),
|
13542
|
+
), f = _l(
|
13541
13543
|
s,
|
13542
13544
|
r
|
13543
13545
|
), g = ll(
|
13544
13546
|
x.deploymentTemplate,
|
13545
13547
|
o,
|
13546
13548
|
c
|
13547
|
-
),
|
13548
|
-
|
13549
|
+
), h = ll(
|
13550
|
+
f.deploymentTemplate,
|
13549
13551
|
i,
|
13550
13552
|
c
|
13551
13553
|
), N = {
|
@@ -13553,18 +13555,18 @@ const Zu = {
|
|
13553
13555
|
pathType: rt.DeploymentTemplate,
|
13554
13556
|
title: "Deployment Template",
|
13555
13557
|
primaryConfig: {
|
13556
|
-
heading: or(
|
13557
|
-
list:
|
13558
|
+
heading: or(f.deploymentTemplate, !0),
|
13559
|
+
list: h
|
13558
13560
|
},
|
13559
13561
|
secondaryConfig: {
|
13560
13562
|
heading: or(x.deploymentTemplate, !0),
|
13561
13563
|
list: g
|
13562
13564
|
},
|
13563
|
-
diffState: Da(g,
|
13565
|
+
diffState: Da(g, h)
|
13564
13566
|
};
|
13565
13567
|
let C, A, v;
|
13566
|
-
(x.pipelineConfigData ||
|
13567
|
-
|
13568
|
+
(x.pipelineConfigData || f.pipelineConfigData) && (C = ul(x.pipelineConfigData, c), A = ul(
|
13569
|
+
f.pipelineConfigData,
|
13568
13570
|
c
|
13569
13571
|
), v = {
|
13570
13572
|
id: rt.PipelineStrategy,
|
@@ -13582,18 +13584,18 @@ const Zu = {
|
|
13582
13584
|
});
|
13583
13585
|
const I = pl(
|
13584
13586
|
x.configMapData,
|
13585
|
-
|
13587
|
+
f.configMapData,
|
13586
13588
|
Vt.ConfigMap,
|
13587
13589
|
x.isAppAdmin,
|
13588
|
-
|
13590
|
+
f.isAppAdmin,
|
13589
13591
|
r,
|
13590
13592
|
c
|
13591
13593
|
), y = pl(
|
13592
13594
|
x.secretsData,
|
13593
|
-
|
13595
|
+
f.secretsData,
|
13594
13596
|
Vt.Secret,
|
13595
13597
|
x.isAppAdmin,
|
13596
|
-
|
13598
|
+
f.isAppAdmin,
|
13597
13599
|
r,
|
13598
13600
|
c
|
13599
13601
|
), T = [
|
@@ -13812,7 +13814,7 @@ const Zu = {
|
|
13812
13814
|
);
|
13813
13815
|
}
|
13814
13816
|
return null;
|
13815
|
-
},
|
13817
|
+
}, f = () => {
|
13816
13818
|
if (c) {
|
13817
13819
|
const { convertVariables: N, onConvertVariablesClick: C } = c;
|
13818
13820
|
return /* @__PURE__ */ t.jsx(
|
@@ -13871,7 +13873,7 @@ const Zu = {
|
|
13871
13873
|
},
|
13872
13874
|
`${N}-${v}`
|
13873
13875
|
);
|
13874
|
-
}),
|
13876
|
+
}), h = () => e ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
13875
13877
|
Lr,
|
13876
13878
|
{
|
13877
13879
|
code: s.code,
|
@@ -13890,11 +13892,11 @@ const Zu = {
|
|
13890
13892
|
/* @__PURE__ */ t.jsx("div", { className: "flex-grow-1 flexbox dc__align-items-center dc__gap-8 p-12", children: E(r.secondaryConfig) }),
|
13891
13893
|
(o || c) && /* @__PURE__ */ t.jsxs("div", { className: "dc__border-left flex dc__gap-8 pr-12 pl-8 py-8", children: [
|
13892
13894
|
x(),
|
13893
|
-
|
13895
|
+
f()
|
13894
13896
|
] })
|
13895
13897
|
] })
|
13896
13898
|
] }),
|
13897
|
-
/* @__PURE__ */ t.jsx("div", { className: "deployment-config-diff__main-content dc__overflow-auto", children:
|
13899
|
+
/* @__PURE__ */ t.jsx("div", { className: "deployment-config-diff__main-content dc__overflow-auto", children: h() })
|
13898
13900
|
] });
|
13899
13901
|
}, KT = ({
|
13900
13902
|
isLoading: e,
|
@@ -14048,19 +14050,19 @@ const Zu = {
|
|
14048
14050
|
isCompareDeploymentConfigNotAvailable: u,
|
14049
14051
|
...m
|
14050
14052
|
}) => {
|
14051
|
-
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId:
|
14053
|
+
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId: f, envId: g } = _, { compareWfrId: h, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting: v } = r, [I, y] = R({
|
14052
14054
|
isLoading: !1,
|
14053
14055
|
data: c,
|
14054
14056
|
hasMore: c.size >= nn
|
14055
14057
|
}), [T, b] = R(n);
|
14056
|
-
k(() => (N({ compareWfrId:
|
14058
|
+
k(() => (N({ compareWfrId: h }), s(!0), C !== no && v(no), () => {
|
14057
14059
|
i(!1), s(!1);
|
14058
14060
|
}), []);
|
14059
14061
|
const j = async (F) => {
|
14060
14062
|
y({ ...I, isLoading: !0 });
|
14061
14063
|
try {
|
14062
14064
|
const { result: ce } = await _T({
|
14063
|
-
appId: +
|
14065
|
+
appId: +f,
|
14064
14066
|
envId: +g,
|
14065
14067
|
pagination: { offset: F, size: nn }
|
14066
14068
|
}), le = new Map((ce.cdWorkflows || []).map((D) => [D.id, D])), pe = new Map([...I.data, ...le]);
|
@@ -14089,7 +14091,7 @@ const Zu = {
|
|
14089
14091
|
triggerHistory: I.data,
|
14090
14092
|
renderRunSource: l,
|
14091
14093
|
resourceId: d
|
14092
|
-
}), B = L.find(({ value: F }) => F ===
|
14094
|
+
}), B = L.find(({ value: F }) => F === h), V = !!L.length, X = ({ value: F }) => {
|
14093
14095
|
N({ compareWfrId: F });
|
14094
14096
|
}, q = {
|
14095
14097
|
primaryConfig: V ? [
|
@@ -14103,7 +14105,7 @@ const Zu = {
|
|
14103
14105
|
variant: Rs.BORDER_LESS,
|
14104
14106
|
options: L,
|
14105
14107
|
placeholder: "Select Deployment",
|
14106
|
-
value: _n(L,
|
14108
|
+
value: _n(L, h, null),
|
14107
14109
|
onChange: X,
|
14108
14110
|
showSelectedOptionIcon: !1,
|
14109
14111
|
menuSize: M.large,
|
@@ -14161,9 +14163,9 @@ const Zu = {
|
|
14161
14163
|
const { path: l, params: d } = Jt(), { pathname: u, search: m } = Ls(), { isSuperAdmin: p } = ua(), _ = te(() => sm(r), [r]), { currentWfrId: E, previousWfrId: x } = te(
|
14162
14164
|
() => XT({ pipelineDeployments: _, wfrId: a }),
|
14163
14165
|
[_, a]
|
14164
|
-
),
|
14166
|
+
), f = !!x, g = au({
|
14165
14167
|
parseSearchParams: ZT(x)
|
14166
|
-
}), { compareWfrId:
|
14168
|
+
}), { compareWfrId: h, sortBy: N, sortOrder: C } = g, [A, v] = R(!1), [I, y, , T] = Kt(async () => {
|
14167
14169
|
const X = [
|
14168
14170
|
{
|
14169
14171
|
appName: e,
|
@@ -14172,12 +14174,12 @@ const Zu = {
|
|
14172
14174
|
pipelineId: n,
|
14173
14175
|
wfrId: E
|
14174
14176
|
},
|
14175
|
-
|
14177
|
+
f ? {
|
14176
14178
|
appName: e,
|
14177
14179
|
envName: s,
|
14178
14180
|
configArea: "DeploymentHistory",
|
14179
14181
|
pipelineId: n,
|
14180
|
-
wfrId:
|
14182
|
+
wfrId: h
|
14181
14183
|
} : null
|
14182
14184
|
], [q, ...Q] = await Promise.allSettled([
|
14183
14185
|
p ? null : UN([...X]),
|
@@ -14186,9 +14188,9 @@ const Zu = {
|
|
14186
14188
|
return q.status !== "fulfilled" || !q.value || q.value.forEach((de, Ie) => {
|
14187
14189
|
Q[Ie].status !== "fulfilled" || !Q[Ie].value || Q[Ie].value.result.isAppAdmin || (Q[Ie].value.result.secretsData = de.secretsData);
|
14188
14190
|
}), Q;
|
14189
|
-
}, [E,
|
14191
|
+
}, [E, h]), b = (X, q) => `${Fs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`, j = te(() => {
|
14190
14192
|
if (!I && y) {
|
14191
|
-
const X =
|
14193
|
+
const X = f && y[1].status === "fulfilled" ? y[1].value.result : {
|
14192
14194
|
configMapData: null,
|
14193
14195
|
deploymentTemplate: null,
|
14194
14196
|
secretsData: null,
|
@@ -14204,7 +14206,7 @@ const Zu = {
|
|
14204
14206
|
}
|
14205
14207
|
return null;
|
14206
14208
|
}, [
|
14207
|
-
|
14209
|
+
f,
|
14208
14210
|
I,
|
14209
14211
|
y,
|
14210
14212
|
A,
|
@@ -14216,7 +14218,7 @@ const Zu = {
|
|
14216
14218
|
), O = te(
|
14217
14219
|
() => j ? RN(j.configList, "groupHeader") : [],
|
14218
14220
|
[j]
|
14219
|
-
), w = y && fl(y[1]), L = !
|
14221
|
+
), w = y && fl(y[1]), L = !f || w, B = I || !S && !j, V = {
|
14220
14222
|
code: S?.code,
|
14221
14223
|
error: S && !I,
|
14222
14224
|
reload: T
|
@@ -14332,8 +14334,8 @@ const ct = ({
|
|
14332
14334
|
typeof s == "function" && s(!!o);
|
14333
14335
|
}, [o]), k(() => {
|
14334
14336
|
if (u?.current && a && o) {
|
14335
|
-
const { height:
|
14336
|
-
i({ left: N, top: C +
|
14337
|
+
const { height: h, x: N, y: C } = u.current.getBoundingClientRect();
|
14338
|
+
i({ left: N, top: C + h });
|
14337
14339
|
}
|
14338
14340
|
}, [u?.current?.clientHeight]);
|
14339
14341
|
let p = {
|
@@ -14342,8 +14344,8 @@ const ct = ({
|
|
14342
14344
|
threshold: 1
|
14343
14345
|
};
|
14344
14346
|
if (!e) return e;
|
14345
|
-
function _(
|
14346
|
-
|
14347
|
+
function _(h, N) {
|
14348
|
+
h.forEach((C) => {
|
14347
14349
|
if (C.isIntersecting && C.intersectionRatio >= 1)
|
14348
14350
|
l(1);
|
14349
14351
|
else {
|
@@ -14361,20 +14363,20 @@ const ct = ({
|
|
14361
14363
|
}
|
14362
14364
|
});
|
14363
14365
|
}
|
14364
|
-
const E = (
|
14365
|
-
|
14366
|
-
const { height: N, x: C, y: A } =
|
14366
|
+
const E = (h) => {
|
14367
|
+
h.stopPropagation(), r && h.preventDefault(), l(0);
|
14368
|
+
const { height: N, x: C, y: A } = h.currentTarget.getBoundingClientRect();
|
14367
14369
|
i({ left: C, top: A + N });
|
14368
|
-
}, x = (
|
14369
|
-
n || N === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) :
|
14370
|
+
}, x = (h, N) => {
|
14371
|
+
n || N === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : h.stopPropagation();
|
14370
14372
|
};
|
14371
|
-
function h
|
14372
|
-
|
14373
|
+
function f(h) {
|
14374
|
+
h && d?.current?.observe ? d.current.observe(h) : d.current.disconnect();
|
14373
14375
|
}
|
14374
|
-
function g(
|
14375
|
-
if (!
|
14376
|
-
u.current =
|
14377
|
-
const { bottom: N, height: C, left: A, right: v, top: I, width: y, x: T, y: b } =
|
14376
|
+
function g(h) {
|
14377
|
+
if (!h) return;
|
14378
|
+
u.current = h;
|
14379
|
+
const { bottom: N, height: C, left: A, right: v, top: I, width: y, x: T, y: b } = h.getBoundingClientRect();
|
14378
14380
|
m.current = y;
|
14379
14381
|
}
|
14380
14382
|
return /* @__PURE__ */ t.jsx(
|
@@ -14386,7 +14388,7 @@ const ct = ({
|
|
14386
14388
|
handleClose: x,
|
14387
14389
|
opacity: c,
|
14388
14390
|
setPopupPosition: i,
|
14389
|
-
callbackRef:
|
14391
|
+
callbackRef: f,
|
14390
14392
|
buttonRef: u,
|
14391
14393
|
initialiseButtonWidth: g,
|
14392
14394
|
buttonWidth: m
|
@@ -14470,7 +14472,7 @@ const zt = ({
|
|
14470
14472
|
isKebab: d = !1,
|
14471
14473
|
dataTestId: u = ""
|
14472
14474
|
}) => {
|
14473
|
-
const [m, p] = Ce.useState(n), [_, E] = Ce.useState(!1), [x,
|
14475
|
+
const [m, p] = Ce.useState(n), [_, E] = Ce.useState(!1), [x, f] = Ce.useState(""), [g, h] = Ce.useState(!1);
|
14474
14476
|
useEffectAfterMount(() => {
|
14475
14477
|
m !== n && E(!1);
|
14476
14478
|
}, [m]), useEffectAfterMount(() => {
|
@@ -14493,11 +14495,11 @@ const zt = ({
|
|
14493
14495
|
popupOpen: _,
|
14494
14496
|
valueComparator: a,
|
14495
14497
|
searchString: x,
|
14496
|
-
search:
|
14498
|
+
search: f,
|
14497
14499
|
handleClick: N,
|
14498
14500
|
disabled: o,
|
14499
14501
|
loading: g,
|
14500
|
-
setLoading:
|
14502
|
+
setLoading: h
|
14501
14503
|
},
|
14502
14504
|
children: /* @__PURE__ */ t.jsxs(ct, { onToggleCallback: (y) => E(y), autoClose: _, children: [
|
14503
14505
|
/* @__PURE__ */ t.jsx(
|
@@ -14819,9 +14821,9 @@ const uS = 100, et = Ce.memo(
|
|
14819
14821
|
theme: _,
|
14820
14822
|
loading: E,
|
14821
14823
|
customLoader: x,
|
14822
|
-
focus:
|
14824
|
+
focus: f,
|
14823
14825
|
validatorSchema: g,
|
14824
|
-
schemaURI:
|
14826
|
+
schemaURI: h = Od,
|
14825
14827
|
isKubernetes: N = !0,
|
14826
14828
|
cleanData: C = !1,
|
14827
14829
|
onBlur: A,
|
@@ -14910,7 +14912,7 @@ const uS = 100, et = Ce.memo(
|
|
14910
14912
|
isKubernetes: N,
|
14911
14913
|
schemas: [
|
14912
14914
|
{
|
14913
|
-
uri:
|
14915
|
+
uri: h,
|
14914
14916
|
fileMatch: ["*"],
|
14915
14917
|
// associate with our model
|
14916
14918
|
schema: g
|
@@ -14920,7 +14922,7 @@ const uS = 100, et = Ce.memo(
|
|
14920
14922
|
return () => {
|
14921
14923
|
K.dispose();
|
14922
14924
|
};
|
14923
|
-
}, [g,
|
14925
|
+
}, [g, h]), k(() => {
|
14924
14926
|
j.current && j.current.updateOptions({ readOnly: m });
|
14925
14927
|
}, [m]), k(() => {
|
14926
14928
|
j.current && j.current.layout();
|
@@ -14937,8 +14939,8 @@ const uS = 100, et = Ce.memo(
|
|
14937
14939
|
}, [e, a, n]), k(() => {
|
14938
14940
|
V({ type: "setDiff", value: p });
|
14939
14941
|
}, [p]), k(() => {
|
14940
|
-
|
14941
|
-
}, [
|
14942
|
+
f && j.current.focus();
|
14943
|
+
}, [f]);
|
14942
14944
|
const $ = (K, se) => {
|
14943
14945
|
P(K, se);
|
14944
14946
|
}, ee = (K) => {
|
@@ -15447,11 +15449,11 @@ const TS = () => (e) => {
|
|
15447
15449
|
m({ search: L.target.value });
|
15448
15450
|
}, x = (L) => {
|
15449
15451
|
L.stopPropagation(), L.key === "Enter" && (L.preventDefault(), L.shiftKey ? _() : p());
|
15450
|
-
},
|
15452
|
+
}, f = (L) => {
|
15451
15453
|
m({ replace: L.target.value });
|
15452
15454
|
}, g = (L) => {
|
15453
15455
|
L.stopPropagation(), L.key === "Enter" && (L.preventDefault(), qi(e));
|
15454
|
-
},
|
15456
|
+
}, h = () => {
|
15455
15457
|
wp(e);
|
15456
15458
|
}, N = () => {
|
15457
15459
|
qi(e);
|
@@ -15589,7 +15591,7 @@ const TS = () => (e) => {
|
|
15589
15591
|
variant: he.borderLess,
|
15590
15592
|
style: be.neutral,
|
15591
15593
|
size: M.xxs,
|
15592
|
-
onClick:
|
15594
|
+
onClick: h,
|
15593
15595
|
showTooltip: !0,
|
15594
15596
|
tooltipProps: {
|
15595
15597
|
content: "Select All",
|
@@ -15626,7 +15628,7 @@ const TS = () => (e) => {
|
|
15626
15628
|
type: "text",
|
15627
15629
|
value: a.replace,
|
15628
15630
|
placeholder: "Replace with...",
|
15629
|
-
onChange:
|
15631
|
+
onChange: f,
|
15630
15632
|
onKeyDown: g
|
15631
15633
|
}
|
15632
15634
|
) }),
|
@@ -15760,11 +15762,11 @@ const TS = () => (e) => {
|
|
15760
15762
|
k(() => {
|
15761
15763
|
x();
|
15762
15764
|
}, [e, a]);
|
15763
|
-
const
|
15765
|
+
const f = () => {
|
15764
15766
|
x();
|
15765
15767
|
}, g = (A) => {
|
15766
15768
|
A.preventDefault(), d(!0), p.current = A.clientY, _.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
|
15767
|
-
},
|
15769
|
+
}, h = (A) => {
|
15768
15770
|
if (!l || !e?.dom || !u.current)
|
15769
15771
|
return;
|
15770
15772
|
const { scrollHeight: v, clientHeight: I } = e.dom, y = u.current.clientHeight, b = (A.clientY - p.current) / y;
|
@@ -15775,16 +15777,16 @@ const TS = () => (e) => {
|
|
15775
15777
|
k(() => {
|
15776
15778
|
if (e) {
|
15777
15779
|
const { dom: A } = e;
|
15778
|
-
A.addEventListener("scroll",
|
15780
|
+
A.addEventListener("scroll", f);
|
15779
15781
|
}
|
15780
15782
|
return () => {
|
15781
15783
|
if (e) {
|
15782
15784
|
const { dom: A } = e;
|
15783
|
-
A.removeEventListener("scroll",
|
15785
|
+
A.removeEventListener("scroll", f);
|
15784
15786
|
}
|
15785
15787
|
};
|
15786
|
-
}, [e]), k(() => (l ? (document.addEventListener("mousemove",
|
15787
|
-
document.removeEventListener("mousemove",
|
15788
|
+
}, [e]), k(() => (l ? (document.addEventListener("mousemove", h), document.addEventListener("mouseup", N)) : (document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", N)), () => {
|
15789
|
+
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", N);
|
15788
15790
|
}), [e, l]);
|
15789
15791
|
const C = (A) => {
|
15790
15792
|
if (!e.dom || !u.current) return;
|
@@ -15969,9 +15971,9 @@ const TS = () => (e) => {
|
|
15969
15971
|
placeholder: _,
|
15970
15972
|
onFocus: E,
|
15971
15973
|
onBlur: x,
|
15972
|
-
extensions:
|
15974
|
+
extensions: f,
|
15973
15975
|
autoFocus: g,
|
15974
|
-
diffMinimapExtensions:
|
15976
|
+
diffMinimapExtensions: h
|
15975
15977
|
}) => {
|
15976
15978
|
const { value: N, lhsValue: C, diffMode: A } = wr(), [v, I] = R(0), [y, T] = R(null), [b, j] = R(null), [S, O] = R(1), w = Y(), L = Y(), B = Y(), V = Y(), X = Nn(s), q = () => {
|
15977
15979
|
const D = document.querySelector(".cm-gutters");
|
@@ -16049,11 +16051,11 @@ const TS = () => (e) => {
|
|
16049
16051
|
const P = new Ji({
|
16050
16052
|
a: {
|
16051
16053
|
doc: C,
|
16052
|
-
extensions:
|
16054
|
+
extensions: h
|
16053
16055
|
},
|
16054
16056
|
b: {
|
16055
16057
|
doc: N,
|
16056
|
-
extensions:
|
16058
|
+
extensions: h
|
16057
16059
|
},
|
16058
16060
|
gutter: !1,
|
16059
16061
|
diffConfig: { scanLimit: 5e3 },
|
@@ -16133,7 +16135,7 @@ const TS = () => (e) => {
|
|
16133
16135
|
onFocus: E,
|
16134
16136
|
onBlur: x,
|
16135
16137
|
onChange: d,
|
16136
|
-
extensions:
|
16138
|
+
extensions: f
|
16137
16139
|
}
|
16138
16140
|
)
|
16139
16141
|
]
|
@@ -16158,9 +16160,9 @@ const TS = () => (e) => {
|
|
16158
16160
|
onModifiedValueChange: _,
|
16159
16161
|
readOnly: E,
|
16160
16162
|
placeholder: x,
|
16161
|
-
diffView:
|
16163
|
+
diffView: f,
|
16162
16164
|
loading: g,
|
16163
|
-
customLoader:
|
16165
|
+
customLoader: h,
|
16164
16166
|
validatorSchema: N = {},
|
16165
16167
|
schemaURI: C = Od,
|
16166
16168
|
cleanData: A = !1,
|
@@ -16170,12 +16172,12 @@ const TS = () => (e) => {
|
|
16170
16172
|
disableSearch: T = !1
|
16171
16173
|
}) => {
|
16172
16174
|
const { appTheme: b } = yr(), j = Y(), S = Y({ code: "", lhsCode: "" }), O = te(() => {
|
16173
|
-
const se =
|
16175
|
+
const se = f ? a : s, je = A ? pr(se) : se;
|
16174
16176
|
return je !== S.current.code ? ![Fe.JSON, Fe.YAML].includes(o) || i ? je : gl(je, o, l) : S.current.code;
|
16175
|
-
}, [s, a,
|
16177
|
+
}, [s, a, f, i]), w = te(() => {
|
16176
16178
|
const se = A ? pr(n) : n;
|
16177
16179
|
return se !== S.current.lhsCode ? ![Fe.JSON, Fe.YAML].includes(o) || i ? se : gl(se, o, l) : S.current.lhsCode;
|
16178
|
-
}, [n, i]), L = e ?? b, B = L === At.dark, { codeEditorTheme: V, themeExtension: X } = rv(B), [q, Q] = R(), [de, Ie] = R(!1), [H, F] = R(
|
16180
|
+
}, [n, i]), L = e ?? b, B = L === At.dark, { codeEditorTheme: V, themeExtension: X } = rv(B), [q, Q] = R(), [de, Ie] = R(!1), [H, F] = R(f), ce = te(
|
16179
16181
|
() => ({ setDiffMode: F, diffMode: H, hasCodeEditorContainer: de, lhsValue: w, value: O, readOnly: E, theme: L }),
|
16180
16182
|
[H, de, w, O, E, L]
|
16181
16183
|
);
|
@@ -16184,8 +16186,8 @@ const TS = () => (e) => {
|
|
16184
16186
|
!!j.current.parentElement.getAttribute("data-code-editor-container")
|
16185
16187
|
);
|
16186
16188
|
}, []), k(() => {
|
16187
|
-
F(
|
16188
|
-
}, [
|
16189
|
+
F(f);
|
16190
|
+
}, [f]), k(
|
16189
16191
|
() => {
|
16190
16192
|
Q(Ks());
|
16191
16193
|
},
|
@@ -16264,7 +16266,7 @@ const TS = () => (e) => {
|
|
16264
16266
|
codeEditorTheme: V,
|
16265
16267
|
theme: L,
|
16266
16268
|
loading: g,
|
16267
|
-
customLoader:
|
16269
|
+
customLoader: h,
|
16268
16270
|
height: d,
|
16269
16271
|
shebang: u,
|
16270
16272
|
readOnly: E,
|
@@ -16316,13 +16318,13 @@ const xv = ({
|
|
16316
16318
|
const { historyComponent: o, historyComponentName: i } = Tt(), [c, l] = R(!1), d = Object.keys(s?.codeEditorValue?.variableSnapshot || {}).length !== 0 || Object.keys(e?.codeEditorValue?.variableSnapshot || {}).length !== 0, u = te(() => {
|
16317
16319
|
if (!s?.codeEditorValue?.value)
|
16318
16320
|
return "";
|
16319
|
-
const
|
16320
|
-
return ft(JSON.parse(
|
16321
|
+
const f = c ? s?.codeEditorValue?.resolvedValue : s?.codeEditorValue?.value;
|
16322
|
+
return ft(JSON.parse(f));
|
16321
16323
|
}, [c, s]), m = te(() => {
|
16322
16324
|
if (!e?.codeEditorValue?.value)
|
16323
16325
|
return "";
|
16324
|
-
const
|
16325
|
-
return ft(JSON.parse(
|
16326
|
+
const f = c ? e?.codeEditorValue?.resolvedValue : e?.codeEditorValue?.value;
|
16327
|
+
return ft(JSON.parse(f));
|
16326
16328
|
}, [c, e]), p = () => n ? /* @__PURE__ */ t.jsx(
|
16327
16329
|
em,
|
16328
16330
|
{
|
@@ -16350,8 +16352,8 @@ const xv = ({
|
|
16350
16352
|
r
|
16351
16353
|
), _ = () => {
|
16352
16354
|
l(!c);
|
16353
|
-
}, E = c ? "Hide variables values" : "Show variables values", x = (
|
16354
|
-
/* @__PURE__ */ t.jsx("div", { className: "cn-6 lh-16", "data-testid":
|
16355
|
+
}, E = c ? "Hide variables values" : "Show variables values", x = (f, g, h) => /* @__PURE__ */ t.jsxs("div", { className: `${f} px-16 py-8`, children: [
|
16356
|
+
/* @__PURE__ */ t.jsx("div", { className: "cn-6 lh-16", "data-testid": h, children: g.displayName }),
|
16355
16357
|
/* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20 dc__word-break", children: g.value })
|
16356
16358
|
] });
|
16357
16359
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
@@ -16369,14 +16371,14 @@ const xv = ({
|
|
16369
16371
|
className: `en-2 bw-1 br-4 bg__primary py-4 ${n ? "deployment-diff__upper" : ""} ${a ?? ""}`,
|
16370
16372
|
"data-testid": `configuration-link-${n ? "previous-deployment" : "no-previous-deployment"}`,
|
16371
16373
|
children: s && Object.keys({ ...e?.values, ...s.values }).map(
|
16372
|
-
(
|
16373
|
-
const
|
16374
|
+
(f, g) => {
|
16375
|
+
const h = e?.values?.[f], N = s.values[f], C = n && h?.value !== N?.value;
|
16374
16376
|
return (
|
16375
16377
|
// eslint-disable-next-line react/no-array-index-key
|
16376
16378
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__contents", children: [
|
16377
|
-
|
16379
|
+
h?.value ? x(
|
16378
16380
|
C ? "code-editor-red-diff" : "",
|
16379
|
-
|
16381
|
+
h,
|
16380
16382
|
`configuration-deployment-template-heading-${g}`
|
16381
16383
|
) : /* @__PURE__ */ t.jsx("div", {}),
|
16382
16384
|
N?.value ? x(
|
@@ -16519,7 +16521,7 @@ const xv = ({
|
|
16519
16521
|
}
|
16520
16522
|
)
|
16521
16523
|
}
|
16522
|
-
) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit" }), x = () => l.isselected ? /* @__PURE__ */ t.jsx(tc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : E(),
|
16524
|
+
) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit" }), x = () => l.isselected ? /* @__PURE__ */ t.jsx(tc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : E(), f = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (I) => {
|
16523
16525
|
const y = I?.split("/").pop();
|
16524
16526
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
|
16525
16527
|
/* @__PURE__ */ t.jsxs(
|
@@ -16539,7 +16541,7 @@ const xv = ({
|
|
16539
16541
|
),
|
16540
16542
|
/* @__PURE__ */ t.jsx("span", { className: "git-commit-info-generic__copy dc__visibility-hidden p-2", "data-testid": "git-commit-copy", children: /* @__PURE__ */ t.jsx(Ht, { content: I }) })
|
16541
16543
|
] });
|
16542
|
-
},
|
16544
|
+
}, h = (I) => /* @__PURE__ */ t.jsxs("div", { className: "commit-hash px-6 dc__w-fit-content dc__gap-4 fs-13", children: [
|
16543
16545
|
/* @__PURE__ */ t.jsx(hr, { className: "icon-dim-14 scb-5" }),
|
16544
16546
|
I
|
16545
16547
|
] }), N = () => a ? l.isselected ? /* @__PURE__ */ t.jsx(tc, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit icon-dim-20" }) : null, C = () => /* @__PURE__ */ t.jsxs("div", { className: "flex column left dc__gap-8", children: [
|
@@ -16547,11 +16549,11 @@ const xv = ({
|
|
16547
16549
|
g(u.data["git url"]),
|
16548
16550
|
N()
|
16549
16551
|
] }),
|
16550
|
-
|
16552
|
+
f(),
|
16551
16553
|
_(!0)
|
16552
16554
|
] }), A = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16553
16555
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__content-space", children: [
|
16554
|
-
|
16556
|
+
h(u.data["target checkout"]),
|
16555
16557
|
N()
|
16556
16558
|
] }),
|
16557
16559
|
_()
|
@@ -16703,10 +16705,10 @@ const xv = ({
|
|
16703
16705
|
appliedFiltersTimestamp: _,
|
16704
16706
|
promotionApprovalMetadata: E,
|
16705
16707
|
selectedEnvironmentName: x,
|
16706
|
-
renderCIListHeader:
|
16708
|
+
renderCIListHeader: f,
|
16707
16709
|
targetPlatforms: g
|
16708
16710
|
}) => {
|
16709
|
-
const { isSuperAdmin:
|
16711
|
+
const { isSuperAdmin: h } = nu();
|
16710
16712
|
if (!s?.length || !Object.keys(e ?? {}).length)
|
16711
16713
|
return /* @__PURE__ */ t.jsx(
|
16712
16714
|
Qe,
|
@@ -16756,10 +16758,10 @@ const xv = ({
|
|
16756
16758
|
hideImageTaggingHardDelete: m,
|
16757
16759
|
appliedFilters: p,
|
16758
16760
|
appliedFiltersTimestamp: _,
|
16759
|
-
isSuperAdmin:
|
16761
|
+
isSuperAdmin: h,
|
16760
16762
|
promotionApprovalMetadata: E,
|
16761
16763
|
selectedEnvironmentName: x,
|
16762
|
-
renderCIListHeader:
|
16764
|
+
renderCIListHeader: f,
|
16763
16765
|
targetPlatforms: g,
|
16764
16766
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
|
16765
16767
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-9 fs-14 flex left", children: [
|
@@ -16860,9 +16862,9 @@ const Sv = (e) => {
|
|
16860
16862
|
borderRadiusConfig: _,
|
16861
16863
|
type: E = "text",
|
16862
16864
|
autoFocus: x = !1,
|
16863
|
-
endIconButtonConfig:
|
16865
|
+
endIconButtonConfig: f,
|
16864
16866
|
labelTippyCustomizedConfig: g,
|
16865
|
-
labelTooltipConfig:
|
16867
|
+
labelTooltipConfig: h,
|
16866
16868
|
...N
|
16867
16869
|
}) => {
|
16868
16870
|
const C = Y(null);
|
@@ -16878,7 +16880,7 @@ const Sv = (e) => {
|
|
16878
16880
|
}
|
16879
16881
|
l?.(I);
|
16880
16882
|
}, v = (I) => {
|
16881
|
-
I.stopPropagation(), C.current.focus(),
|
16883
|
+
I.stopPropagation(), C.current.focus(), f?.onClick(I);
|
16882
16884
|
};
|
16883
16885
|
return /* @__PURE__ */ t.jsx(
|
16884
16886
|
mi,
|
@@ -16895,7 +16897,7 @@ const Sv = (e) => {
|
|
16895
16897
|
borderConfig: p,
|
16896
16898
|
borderRadiusConfig: _,
|
16897
16899
|
labelTippyCustomizedConfig: g,
|
16898
|
-
labelTooltipConfig:
|
16900
|
+
labelTooltipConfig: h,
|
16899
16901
|
children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16900
16902
|
/* @__PURE__ */ t.jsx(
|
16901
16903
|
"input",
|
@@ -16918,14 +16920,14 @@ const Sv = (e) => {
|
|
16918
16920
|
onBlur: A,
|
16919
16921
|
type: E,
|
16920
16922
|
ref: C,
|
16921
|
-
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${
|
16923
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${f ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
16922
16924
|
}
|
16923
16925
|
),
|
16924
|
-
|
16926
|
+
f && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink dc__position-abs custom-input__icon-button--${u}`, children: /* @__PURE__ */ t.jsx(
|
16925
16927
|
re,
|
16926
16928
|
{
|
16927
16929
|
style: be.neutral,
|
16928
|
-
...
|
16930
|
+
...f,
|
16929
16931
|
dataTestId: `${e}-end-icon`,
|
16930
16932
|
variant: he.borderLess,
|
16931
16933
|
size: yv[u],
|
@@ -16977,11 +16979,11 @@ const Sv = (e) => {
|
|
16977
16979
|
isLandscapeView: d = !1,
|
16978
16980
|
showConfetti: u = !1
|
16979
16981
|
}) => {
|
16980
|
-
const { registerShortcut: m, unregisterShortcut: p } = aa(), [_, E] = R(""), x = o?.identifier,
|
16982
|
+
const { registerShortcut: m, unregisterShortcut: p } = aa(), [_, E] = R(""), x = o?.identifier, f = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: h } = r, N = n ?? Sv(a), C = a === Yt.custom && !n, A = "disabled" in g && g.disabled || f && _.trim() !== f, v = () => {
|
16981
16983
|
g && !A && g.onClick();
|
16982
16984
|
}, I = qe(() => {
|
16983
|
-
!g?.isLoading && !
|
16984
|
-
}, [g,
|
16985
|
+
!g?.isLoading && !h?.disabled && c();
|
16986
|
+
}, [g, h]);
|
16985
16987
|
k(() => (m({ keys: ["Enter"], callback: v }), () => {
|
16986
16988
|
p(["Enter"]);
|
16987
16989
|
}), [g, A]);
|
@@ -17013,7 +17015,7 @@ const Sv = (e) => {
|
|
17013
17015
|
name: x,
|
17014
17016
|
value: _,
|
17015
17017
|
onChange: y,
|
17016
|
-
label: vv(
|
17018
|
+
label: vv(f),
|
17017
17019
|
fullWidth: !0,
|
17018
17020
|
placeholder: "Type to confirm",
|
17019
17021
|
required: !0,
|
@@ -17022,18 +17024,18 @@ const Sv = (e) => {
|
|
17022
17024
|
)
|
17023
17025
|
] }),
|
17024
17026
|
/* @__PURE__ */ t.jsxs("div", { className: "px-20 py-16 dc__gap-12 flexbox dc__content-end", children: [
|
17025
|
-
|
17027
|
+
h && /* @__PURE__ */ t.jsx(
|
17026
17028
|
re,
|
17027
17029
|
{
|
17028
17030
|
dataTestId: "confirmation-modal-secondary-button",
|
17029
17031
|
size: M.large,
|
17030
17032
|
variant: he.secondary,
|
17031
|
-
style: "style" in
|
17032
|
-
disabled:
|
17033
|
-
text:
|
17034
|
-
onClick:
|
17035
|
-
startIcon:
|
17036
|
-
endIcon:
|
17033
|
+
style: "style" in h ? h.style : be.neutral,
|
17034
|
+
disabled: h.disabled,
|
17035
|
+
text: h.text,
|
17036
|
+
onClick: h.onClick,
|
17037
|
+
startIcon: h.startIcon,
|
17038
|
+
endIcon: h.endIcon
|
17037
17039
|
}
|
17038
17040
|
),
|
17039
17041
|
g && /* @__PURE__ */ t.jsx(
|
@@ -17137,7 +17139,7 @@ const Sv = (e) => {
|
|
17137
17139
|
successToastMessage: p,
|
17138
17140
|
children: _
|
17139
17141
|
}) => {
|
17140
|
-
const [E, x] = R(!1), [
|
17142
|
+
const [E, x] = R(!1), [f, g] = R(!1), [h, N] = R(u), [C, A] = R(o), v = async (S) => {
|
17141
17143
|
S && Ne(S), A(!0);
|
17142
17144
|
try {
|
17143
17145
|
await i(), ke.showToast({
|
@@ -17153,7 +17155,7 @@ const Sv = (e) => {
|
|
17153
17155
|
Ov,
|
17154
17156
|
{
|
17155
17157
|
title: e,
|
17156
|
-
subtitle:
|
17158
|
+
subtitle: h,
|
17157
17159
|
closeConfirmationModal: I,
|
17158
17160
|
component: n
|
17159
17161
|
}
|
@@ -17190,9 +17192,9 @@ const Sv = (e) => {
|
|
17190
17192
|
}
|
17191
17193
|
);
|
17192
17194
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17193
|
-
!E && !
|
17195
|
+
!E && !f && j(),
|
17194
17196
|
E && T(),
|
17195
|
-
|
17197
|
+
f && b()
|
17196
17198
|
] });
|
17197
17199
|
}, bl = ht(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
|
17198
17200
|
const o = r?.finishedOn || s, i = () => r ? /* @__PURE__ */ t.jsxs("span", { className: "cn-9 fs-13 fw-6 lh-20", children: [
|
@@ -17220,7 +17222,7 @@ const Sv = (e) => {
|
|
17220
17222
|
message: ""
|
17221
17223
|
}), { buildId: d, triggerId: u, pipelineId: m } = Tt();
|
17222
17224
|
let p = null;
|
17223
|
-
s === De.CI ? p = (
|
17225
|
+
s === De.CI ? p = (f) => iT({ pipelineId: m, workflowId: d }, f) : e !== as.DEPLOY && (p = (f) => cT(m, u, f));
|
17224
17226
|
async function _() {
|
17225
17227
|
r(!0);
|
17226
17228
|
try {
|
@@ -17231,9 +17233,9 @@ const Sv = (e) => {
|
|
17231
17233
|
status: !1,
|
17232
17234
|
message: ""
|
17233
17235
|
});
|
17234
|
-
} catch (
|
17235
|
-
if (
|
17236
|
-
const { errors: g } =
|
17236
|
+
} catch (f) {
|
17237
|
+
if (f.code === 400) {
|
17238
|
+
const { errors: g } = f;
|
17237
17239
|
l({
|
17238
17240
|
status: !0,
|
17239
17241
|
message: g[0].userMessage
|
@@ -17425,14 +17427,14 @@ const Sv = (e) => {
|
|
17425
17427
|
isJobView: _,
|
17426
17428
|
workerPodName: E,
|
17427
17429
|
triggerMetadata: x,
|
17428
|
-
renderDeploymentHistoryTriggerMetaText:
|
17430
|
+
renderDeploymentHistoryTriggerMetaText: f,
|
17429
17431
|
renderTargetConfigInfo: g,
|
17430
|
-
workflowExecutionStages:
|
17432
|
+
workflowExecutionStages: h,
|
17431
17433
|
namespace: N
|
17432
17434
|
}) => {
|
17433
17435
|
const C = te(
|
17434
|
-
() => Li(
|
17435
|
-
[
|
17436
|
+
() => Li(h),
|
17437
|
+
[h]
|
17436
17438
|
);
|
17437
17439
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-details flexbox-col", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col py-8 trigger-details__summary lh-20", children: [
|
17438
17440
|
/* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
@@ -17456,13 +17458,13 @@ const Sv = (e) => {
|
|
17456
17458
|
}
|
17457
17459
|
) })
|
17458
17460
|
] }),
|
17459
|
-
!!x && !!
|
17461
|
+
!!x && !!f && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17460
17462
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17461
17463
|
Us(),
|
17462
|
-
|
17464
|
+
f(x, !0),
|
17463
17465
|
Us()
|
17464
17466
|
] }) }),
|
17465
|
-
|
17467
|
+
f(x)
|
17466
17468
|
] }),
|
17467
17469
|
_ && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17468
17470
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
@@ -17541,9 +17543,9 @@ const Sv = (e) => {
|
|
17541
17543
|
resourceId: _,
|
17542
17544
|
renderRunSource: E,
|
17543
17545
|
processVirtualEnvironmentDeploymentData: x,
|
17544
|
-
renderDeploymentApprovalInfo:
|
17546
|
+
renderDeploymentApprovalInfo: f,
|
17545
17547
|
renderCIListHeader: g,
|
17546
|
-
renderVirtualHistoryArtifacts:
|
17548
|
+
renderVirtualHistoryArtifacts: h,
|
17547
17549
|
scrollToTop: N,
|
17548
17550
|
scrollToBottom: C,
|
17549
17551
|
fullScreenView: A,
|
@@ -17586,7 +17588,7 @@ const Sv = (e) => {
|
|
17586
17588
|
isHelmApps: !1,
|
17587
17589
|
isVirtualEnvironment: e.IsVirtualEnvironment,
|
17588
17590
|
processVirtualEnvironmentDeploymentData: x,
|
17589
|
-
renderDeploymentApprovalInfo:
|
17591
|
+
renderDeploymentApprovalInfo: f
|
17590
17592
|
}
|
17591
17593
|
) }),
|
17592
17594
|
/* @__PURE__ */ t.jsx(Bs, { path: `${T}/source-code`, children: /* @__PURE__ */ t.jsx(
|
@@ -17625,7 +17627,7 @@ const Sv = (e) => {
|
|
17625
17627
|
renderRunSource: E
|
17626
17628
|
}
|
17627
17629
|
) }),
|
17628
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Bs, { path: `${T}/artifacts`, children: e.IsVirtualEnvironment &&
|
17630
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Bs, { path: `${T}/artifacts`, children: e.IsVirtualEnvironment && h ? h({
|
17629
17631
|
status: e.status,
|
17630
17632
|
title: e.helmPackageName,
|
17631
17633
|
params: { ...w, appId: Number(b), envId: Number(O) }
|
@@ -17674,9 +17676,9 @@ const Sv = (e) => {
|
|
17674
17676
|
renderRunSource: _,
|
17675
17677
|
renderCIListHeader: E,
|
17676
17678
|
renderDeploymentApprovalInfo: x,
|
17677
|
-
processVirtualEnvironmentDeploymentData:
|
17679
|
+
processVirtualEnvironmentDeploymentData: f,
|
17678
17680
|
renderVirtualHistoryArtifacts: g,
|
17679
|
-
renderDeploymentHistoryTriggerMetaText:
|
17681
|
+
renderDeploymentHistoryTriggerMetaText: h,
|
17680
17682
|
resourceId: N,
|
17681
17683
|
scrollToTop: C,
|
17682
17684
|
scrollToBottom: A,
|
@@ -17759,7 +17761,7 @@ const Sv = (e) => {
|
|
17759
17761
|
stage: S.stage,
|
17760
17762
|
artifact: S.artifact,
|
17761
17763
|
triggerMetadata: S.triggerMetadata,
|
17762
|
-
renderDeploymentHistoryTriggerMetaText:
|
17764
|
+
renderDeploymentHistoryTriggerMetaText: h,
|
17763
17765
|
environmentName: m,
|
17764
17766
|
renderTargetConfigInfo: v,
|
17765
17767
|
workflowExecutionStages: S.workflowExecutionStages,
|
@@ -17837,7 +17839,7 @@ const Sv = (e) => {
|
|
17837
17839
|
selectedEnvironmentName: m,
|
17838
17840
|
resourceId: N,
|
17839
17841
|
renderRunSource: _,
|
17840
|
-
processVirtualEnvironmentDeploymentData:
|
17842
|
+
processVirtualEnvironmentDeploymentData: f,
|
17841
17843
|
renderDeploymentApprovalInfo: x,
|
17842
17844
|
renderCIListHeader: E,
|
17843
17845
|
renderVirtualHistoryArtifacts: g,
|
@@ -18138,7 +18140,7 @@ const Sv = (e) => {
|
|
18138
18140
|
openDirection: p = "down",
|
18139
18141
|
error: _ = ""
|
18140
18142
|
}) => {
|
18141
|
-
const E = Wv(e), x = Pa.find((I) => I.value === E) ?? Pa[0], [
|
18143
|
+
const E = Wv(e), x = Pa.find((I) => I.value === E) ?? Pa[0], [f, g] = R(!1), h = ({ focused: I }) => {
|
18142
18144
|
g(I);
|
18143
18145
|
}, N = (I) => {
|
18144
18146
|
s(qv(e, I?.toDate()));
|
@@ -18155,8 +18157,8 @@ const Sv = (e) => {
|
|
18155
18157
|
placeholder: "Select date",
|
18156
18158
|
date: Pe(e),
|
18157
18159
|
onDateChange: N,
|
18158
|
-
focused:
|
18159
|
-
onFocusChange:
|
18160
|
+
focused: f,
|
18161
|
+
onFocusChange: h,
|
18160
18162
|
numberOfMonths: 1,
|
18161
18163
|
openDirection: p,
|
18162
18164
|
renderCalendarDay: (I) => /* @__PURE__ */ t.jsx(K_, { ...I, ...bm }),
|
@@ -18540,7 +18542,7 @@ const RD = {
|
|
18540
18542
|
appId: n,
|
18541
18543
|
size: 20,
|
18542
18544
|
tag: s
|
18543
|
-
}, { result: i } = await ue(
|
18545
|
+
}, { result: i } = await ue(Xe(G.PLUGIN_GLOBAL_LIST_V2, o), {
|
18544
18546
|
signal: r
|
18545
18547
|
}), c = Sm(i?.parentPlugins);
|
18546
18548
|
return {
|
@@ -18555,7 +18557,7 @@ const RD = {
|
|
18555
18557
|
try {
|
18556
18558
|
const s = {
|
18557
18559
|
appId: e
|
18558
|
-
}, { result: n } = await ue(
|
18560
|
+
}, { result: n } = await ue(Xe(G.PLUGIN_GLOBAL_LIST_TAGS, s));
|
18559
18561
|
if (!n?.tagNames)
|
18560
18562
|
return [];
|
18561
18563
|
const a = new Set(n.tagNames);
|
@@ -18564,7 +18566,7 @@ const RD = {
|
|
18564
18566
|
throw Be(s), s;
|
18565
18567
|
}
|
18566
18568
|
}, OD = async (e) => {
|
18567
|
-
const s = await ue(
|
18569
|
+
const s = await ue(Xe(G.PLUGIN_LIST_MIN, e));
|
18568
18570
|
return {
|
18569
18571
|
...s,
|
18570
18572
|
result: (s?.result ?? []).sort((n, a) => at(n.name, a.name))
|
@@ -18725,10 +18727,10 @@ const RD = {
|
|
18725
18727
|
showCardBorder: u,
|
18726
18728
|
getPluginStoreRef: m
|
18727
18729
|
}) => {
|
18728
|
-
const { appId: p } = Tt(), [_, E] = R(!1), [x,
|
18729
|
-
E(!0),
|
18730
|
+
const { appId: p } = Tt(), [_, E] = R(!1), [x, f] = R(!1), g = async () => {
|
18731
|
+
E(!0), f(!1);
|
18730
18732
|
try {
|
18731
|
-
const
|
18733
|
+
const h = await Bd(
|
18732
18734
|
() => vm({
|
18733
18735
|
searchKey: o,
|
18734
18736
|
offset: s.length,
|
@@ -18738,25 +18740,25 @@ const RD = {
|
|
18738
18740
|
}),
|
18739
18741
|
m
|
18740
18742
|
);
|
18741
|
-
a(
|
18743
|
+
a(h, !0);
|
18742
18744
|
} catch {
|
18743
|
-
|
18745
|
+
f(!0);
|
18744
18746
|
} finally {
|
18745
18747
|
E(!1);
|
18746
18748
|
}
|
18747
18749
|
};
|
18748
18750
|
return s.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
18749
|
-
s.map((
|
18751
|
+
s.map((h) => /* @__PURE__ */ t.jsx(
|
18750
18752
|
iA,
|
18751
18753
|
{
|
18752
|
-
parentPluginId:
|
18754
|
+
parentPluginId: h.parentPluginId,
|
18753
18755
|
isSelectable: l,
|
18754
18756
|
pluginDataStore: e,
|
18755
18757
|
handlePluginSelection: i,
|
18756
|
-
isSelected: !!c[
|
18758
|
+
isSelected: !!c[h.parentPluginId],
|
18757
18759
|
showCardBorder: u
|
18758
18760
|
},
|
18759
|
-
|
18761
|
+
h.parentPluginId
|
18760
18762
|
)),
|
18761
18763
|
_ && /* @__PURE__ */ t.jsx(Am, {}),
|
18762
18764
|
n > s.length && !_ && /* @__PURE__ */ t.jsx(zu, { callback: g, hasError: x })
|
@@ -18781,10 +18783,10 @@ const RD = {
|
|
18781
18783
|
rootClassName: E = "",
|
18782
18784
|
showCardBorder: x = !1
|
18783
18785
|
}) => {
|
18784
|
-
const { appId:
|
18786
|
+
const { appId: f } = Tt(), [g, h] = R(l || []), [N, C] = R(u || 0), [A, v] = R(
|
18785
18787
|
p || structuredClone(Qv)
|
18786
18788
|
), I = Y(new AbortController()), y = (P) => {
|
18787
|
-
|
18789
|
+
h(P), d?.(P);
|
18788
18790
|
}, T = (P) => {
|
18789
18791
|
C(P), m?.(P);
|
18790
18792
|
}, b = (P) => {
|
@@ -18794,17 +18796,17 @@ const RD = {
|
|
18794
18796
|
searchKey: j,
|
18795
18797
|
selectedTags: S,
|
18796
18798
|
offset: 0,
|
18797
|
-
appId:
|
18799
|
+
appId: f ? +f : null,
|
18798
18800
|
signal: I.current.signal
|
18799
18801
|
}),
|
18800
18802
|
I
|
18801
18803
|
), [w, L, B, V] = Kt(
|
18802
18804
|
O,
|
18803
18805
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
18804
|
-
[j,
|
18806
|
+
[j, f, S],
|
18805
18807
|
c ? !g.length : !0
|
18806
18808
|
), [X, q, Q, de] = Kt(
|
18807
|
-
() => nA(
|
18809
|
+
() => nA(f ? +f : null),
|
18808
18810
|
[],
|
18809
18811
|
!e?.length
|
18810
18812
|
);
|
@@ -18952,7 +18954,7 @@ const RD = {
|
|
18952
18954
|
validateDuplicateKeys: _ = !1,
|
18953
18955
|
validateEmptyKeys: E = !1
|
18954
18956
|
}) => {
|
18955
|
-
const { headers: x, rows:
|
18957
|
+
const { headers: x, rows: f } = e, g = x[0].key, h = x[1].key, [N, C] = R(f), [A, v] = R(!1), I = l || c, y = !l && !c || !!N.length, T = !N[0]?.data[g].value && !N[0]?.data[h].value, b = N.length === 1 && T, { sortBy: j, sortOrder: S, handleSorting: O } = iu({
|
18956
18958
|
initialSortKey: n ? g : null
|
18957
18959
|
}), w = Y(), L = Y();
|
18958
18960
|
w.current || (w.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {})), L.current || (L.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {}));
|
@@ -18969,7 +18971,7 @@ const RD = {
|
|
18969
18971
|
if (ee) {
|
18970
18972
|
const oe = D.trim();
|
18971
18973
|
if (_ && P === g && B[oe] > 1 || E && P === g && !oe && N.some(
|
18972
|
-
({ id: Ee, data: K }) => Ee === $ && K[
|
18974
|
+
({ id: Ee, data: K }) => Ee === $ && K[h].value.trim()
|
18973
18975
|
))
|
18974
18976
|
return !1;
|
18975
18977
|
}
|
@@ -18990,9 +18992,9 @@ const RD = {
|
|
18990
18992
|
return !1;
|
18991
18993
|
}
|
18992
18994
|
return E && D.some(
|
18993
|
-
(ee) => !ee.data[g].value.trim() && ee.data[
|
18995
|
+
(ee) => !ee.data[g].value.trim() && ee.data[h].value.trim()
|
18994
18996
|
) ? !1 : D.every(
|
18995
|
-
({ data: $, id: ee }) => V($[g].value, g, ee, !1) && V($[
|
18997
|
+
({ data: $, id: ee }) => V($[g].value, g, ee, !1) && V($[h].value, h, ee, !1)
|
18996
18998
|
);
|
18997
18999
|
}, q = () => {
|
18998
19000
|
const D = (Date.now() * Math.random()).toString(16);
|
@@ -19001,7 +19003,7 @@ const RD = {
|
|
19001
19003
|
[g]: {
|
19002
19004
|
value: ""
|
19003
19005
|
},
|
19004
|
-
[
|
19006
|
+
[h]: {
|
19005
19007
|
value: ""
|
19006
19008
|
}
|
19007
19009
|
},
|
@@ -19031,7 +19033,7 @@ const RD = {
|
|
19031
19033
|
if (D && A) {
|
19032
19034
|
v(!1);
|
19033
19035
|
const P = w.current[D.id].current && L.current[D.id].current;
|
19034
|
-
!D.data[g].value && P && L.current[D.id].current.focus(), !D.data[
|
19036
|
+
!D.data[g].value && P && L.current[D.id].current.focus(), !D.data[h].value && P && w.current[D.id].current.focus();
|
19035
19037
|
}
|
19036
19038
|
}, [A]);
|
19037
19039
|
const de = () => O(j), Ie = (D) => () => {
|
@@ -19234,7 +19236,7 @@ const RD = {
|
|
19234
19236
|
shouldWrapTooltip: E,
|
19235
19237
|
tooltipProps: x
|
19236
19238
|
}) => {
|
19237
|
-
const { tabClassName:
|
19239
|
+
const { tabClassName: f, iconClassName: g, badgeClassName: h } = pA({
|
19238
19240
|
hideTopPadding: l,
|
19239
19241
|
alignActiveBorderWithContainer: c
|
19240
19242
|
})[o], N = (v) => {
|
@@ -19244,7 +19246,7 @@ const RD = {
|
|
19244
19246
|
/* @__PURE__ */ t.jsxs("p", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
19245
19247
|
fA({ className: g, icon: r, showError: u, showWarning: m }),
|
19246
19248
|
e,
|
19247
|
-
hA(i,
|
19249
|
+
hA(i, h),
|
19248
19250
|
gA(d)
|
19249
19251
|
] }),
|
19250
19252
|
xA(_)
|
@@ -19254,7 +19256,7 @@ const RD = {
|
|
19254
19256
|
return /* @__PURE__ */ t.jsx(
|
19255
19257
|
Os,
|
19256
19258
|
{
|
19257
|
-
className: `${
|
19259
|
+
className: `${f} dc__no-decor flexbox-col ${p ? "cursor-not-allowed" : ""}`,
|
19258
19260
|
"aria-disabled": p,
|
19259
19261
|
...s,
|
19260
19262
|
onClick: N,
|
@@ -19265,7 +19267,7 @@ const RD = {
|
|
19265
19267
|
return /* @__PURE__ */ t.jsx(
|
19266
19268
|
_t,
|
19267
19269
|
{
|
19268
|
-
className: `${
|
19270
|
+
className: `${f} dc__no-decor flexbox-col tab-group__tab__nav-link ${p ? "cursor-not-allowed" : ""}`,
|
19269
19271
|
"aria-disabled": p,
|
19270
19272
|
...s,
|
19271
19273
|
onClick: N,
|
@@ -19276,7 +19278,7 @@ const RD = {
|
|
19276
19278
|
return /* @__PURE__ */ t.jsx(
|
19277
19279
|
"div",
|
19278
19280
|
{
|
19279
|
-
className: `flexbox-col fw-6 ${
|
19281
|
+
className: `flexbox-col fw-6 ${f} ${p ? "cursor-not-allowed" : ""}`,
|
19280
19282
|
...s,
|
19281
19283
|
children: v
|
19282
19284
|
}
|
@@ -19286,7 +19288,7 @@ const RD = {
|
|
19286
19288
|
"button",
|
19287
19289
|
{
|
19288
19290
|
type: "button",
|
19289
|
-
className: `dc__unset-button-styles flexbox-col ${
|
19291
|
+
className: `dc__unset-button-styles flexbox-col ${f} ${p ? "cursor-not-allowed" : ""}`,
|
19290
19292
|
disabled: p,
|
19291
19293
|
...s,
|
19292
19294
|
onClick: N,
|
@@ -19344,17 +19346,17 @@ const RD = {
|
|
19344
19346
|
dataTestIdPrefix: i,
|
19345
19347
|
altText: c
|
19346
19348
|
}) => {
|
19347
|
-
const [l, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [E, x] = R(""),
|
19349
|
+
const [l, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [E, x] = R(""), f = () => {
|
19348
19350
|
m(!0);
|
19349
19351
|
}, g = (T) => {
|
19350
19352
|
d(T);
|
19351
|
-
},
|
19353
|
+
}, h = (T) => {
|
19352
19354
|
const b = T ?? l;
|
19353
19355
|
g(b), r(b), n(""), m(!1), _(!1), x("");
|
19354
19356
|
}, N = () => {
|
19355
|
-
|
19357
|
+
h(a);
|
19356
19358
|
}, C = () => {
|
19357
|
-
|
19359
|
+
h();
|
19358
19360
|
}, A = (T) => {
|
19359
19361
|
const { value: b } = T.target;
|
19360
19362
|
if (r(b), !b.trim()) {
|
@@ -19459,7 +19461,7 @@ const RD = {
|
|
19459
19461
|
type: "button",
|
19460
19462
|
"data-testid": `${i}-button`,
|
19461
19463
|
"aria-label": `${o} image`,
|
19462
|
-
onClick:
|
19464
|
+
onClick: f,
|
19463
19465
|
children: [
|
19464
19466
|
y(!0, Im),
|
19465
19467
|
/* @__PURE__ */ t.jsx("div", { className: "flex p-4 br-4 bg__primary dc__border edit-image-form-field__figure-container--edit-image-icon dc__zi-1 bg__primary dc__hover-n50 icon-dim-24", children: /* @__PURE__ */ t.jsx(gr, { className: "dc__no-shrink icon-dim-16" }) })
|
@@ -19550,7 +19552,7 @@ const Pr = ({
|
|
19550
19552
|
e,
|
19551
19553
|
l,
|
19552
19554
|
i || r
|
19553
|
-
), E = Pr({ headers: e, actionButtonConfig: l }) === 0 && l.position !== "end", x = (g) => () => n?.handleSorting(g),
|
19555
|
+
), E = Pr({ headers: e, actionButtonConfig: l }) === 0 && l.position !== "end", x = (g) => () => n?.handleSorting(g), f = ({ key: g, label: h, isSortable: N, renderAdditionalContent: C }) => {
|
19554
19556
|
const A = !m && g === d;
|
19555
19557
|
return /* @__PURE__ */ t.jsxs(
|
19556
19558
|
"div",
|
@@ -19564,7 +19566,7 @@ const Pr = ({
|
|
19564
19566
|
className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
|
19565
19567
|
onClick: x(g),
|
19566
19568
|
children: [
|
19567
|
-
|
19569
|
+
h,
|
19568
19570
|
/* @__PURE__ */ t.jsx(
|
19569
19571
|
Cr,
|
19570
19572
|
{
|
@@ -19582,7 +19584,7 @@ const Pr = ({
|
|
19582
19584
|
{
|
19583
19585
|
className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-4 ${p ? "dc__top-left-radius" : "dc__left-radius-4"}`,
|
19584
19586
|
children: [
|
19585
|
-
|
19587
|
+
h,
|
19586
19588
|
typeof C == "function" && C()
|
19587
19589
|
]
|
19588
19590
|
}
|
@@ -19617,7 +19619,7 @@ const Pr = ({
|
|
19617
19619
|
className: `bg__secondary ${p || !m ? "dc__top-left-radius" : "dc__left-radius-4"}`
|
19618
19620
|
}
|
19619
19621
|
),
|
19620
|
-
e.map((g) =>
|
19622
|
+
e.map((g) => f(g))
|
19621
19623
|
] })
|
19622
19624
|
}
|
19623
19625
|
) });
|
@@ -19672,23 +19674,23 @@ const ki = ({
|
|
19672
19674
|
...m
|
19673
19675
|
}) => {
|
19674
19676
|
const p = (g) => {
|
19675
|
-
const
|
19676
|
-
|
19677
|
+
const h = i?.current;
|
19678
|
+
h && (h.style.height = `${g}px`), Object.values(c || {}).forEach((N) => {
|
19677
19679
|
const C = N?.current;
|
19678
19680
|
C && (C.style.height = `${g}px`);
|
19679
19681
|
});
|
19680
19682
|
}, _ = (g) => {
|
19681
|
-
const
|
19682
|
-
|
19683
|
+
const h = o?.current;
|
19684
|
+
h && (h.style.height = `${g}px`), p(g);
|
19683
19685
|
}, E = () => {
|
19684
19686
|
_(s || 0);
|
19685
19687
|
let g = o?.current?.scrollHeight || 0;
|
19686
19688
|
if (i) {
|
19687
|
-
const
|
19688
|
-
|
19689
|
+
const h = i.current;
|
19690
|
+
h && h.scrollHeight > g && (g = h.scrollHeight);
|
19689
19691
|
}
|
19690
|
-
c && Object.values(c).forEach((
|
19691
|
-
const N =
|
19692
|
+
c && Object.values(c).forEach((h) => {
|
19693
|
+
const N = h.current;
|
19692
19694
|
N && N.scrollHeight > g && (g = N.scrollHeight);
|
19693
19695
|
}), s && g < s && (g = s), n && g > n && (g = n), _(g);
|
19694
19696
|
};
|
@@ -19697,7 +19699,7 @@ const ki = ({
|
|
19697
19699
|
}, []), kr(E, 500, [e]);
|
19698
19700
|
const x = (g) => {
|
19699
19701
|
d || _(s), a?.(g);
|
19700
|
-
},
|
19702
|
+
}, f = (g) => {
|
19701
19703
|
E(), r?.(g);
|
19702
19704
|
};
|
19703
19705
|
return /* @__PURE__ */ t.jsx(
|
@@ -19712,7 +19714,7 @@ const ki = ({
|
|
19712
19714
|
className: `${l || ""} lh-20`,
|
19713
19715
|
style: { resize: "none" },
|
19714
19716
|
onBlur: x,
|
19715
|
-
onFocus:
|
19717
|
+
onFocus: f
|
19716
19718
|
}
|
19717
19719
|
);
|
19718
19720
|
};
|
@@ -19742,7 +19744,7 @@ const Il = ({
|
|
19742
19744
|
k(() => {
|
19743
19745
|
p(s?.[o] || "");
|
19744
19746
|
}, [e, s, o]);
|
19745
|
-
const
|
19747
|
+
const f = (T) => {
|
19746
19748
|
setTimeout(() => {
|
19747
19749
|
E(`tag-${o}-${e}`);
|
19748
19750
|
}, 300);
|
@@ -19752,7 +19754,7 @@ const Il = ({
|
|
19752
19754
|
const b = { ...s };
|
19753
19755
|
b[o] = m, o === ss.KEY ? b.isInvalidKey = m || b.propagate ? !x.propagateTagKey(m).isValid : b.value !== "" : m || r || b.propagate ? (b.isInvalidValue = !x.propagateTagValue(m, b.key).isValid, b.isInvalidKey = !b.key || b.isInvalidKey) : (b.isInvalidValue = !1, b.isInvalidKey = b.key ? b.isInvalidKey : !1), n(e, b);
|
19754
19756
|
}
|
19755
|
-
},
|
19757
|
+
}, h = (T) => {
|
19756
19758
|
p(T.target.value);
|
19757
19759
|
}, N = (T) => {
|
19758
19760
|
Ne(T);
|
@@ -19811,9 +19813,9 @@ const Il = ({
|
|
19811
19813
|
maxHeight: 80,
|
19812
19814
|
className: `form__input tag-input pt-4-imp pb-4-imp fs-13 ${o === ss.KEY ? "dc__no-right-radius" : "dc__no-border-radius dc__no-right-border dc__no-left-border"} ${s[o === ss.KEY ? "isInvalidKey" : "isInvalidValue"] ? "form__input--error" : ""}`,
|
19813
19815
|
value: m,
|
19814
|
-
onChange:
|
19816
|
+
onChange: h,
|
19815
19817
|
onBlur: g,
|
19816
|
-
onFocus:
|
19818
|
+
onFocus: f,
|
19817
19819
|
placeholder: i,
|
19818
19820
|
tabIndex: c,
|
19819
19821
|
refVar: l,
|
@@ -19979,8 +19981,8 @@ const wA = (e) => {
|
|
19979
19981
|
s,
|
19980
19982
|
o,
|
19981
19983
|
a || n
|
19982
|
-
), [
|
19983
|
-
|
19984
|
+
), [f, g] = R(!1), h = Y();
|
19985
|
+
h.current || (h.current = e.reduce(
|
19984
19986
|
(S, O) => ({
|
19985
19987
|
...S,
|
19986
19988
|
[O.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: hs() }), {})
|
@@ -19989,15 +19991,15 @@ const wA = (e) => {
|
|
19989
19991
|
));
|
19990
19992
|
const N = te(() => e.map(({ id: S }) => S), [e]);
|
19991
19993
|
k(() => {
|
19992
|
-
g(e.length > 0 && Object.keys(
|
19993
|
-
const S = N.reduce((O, w) => (
|
19994
|
-
|
19994
|
+
g(e.length > 0 && Object.keys(h.current).length < e.length);
|
19995
|
+
const S = N.reduce((O, w) => (h.current[w] ? O[w] = h.current[w] : O[w] = s.reduce((L, { key: B }) => ({ ...L, [B]: hs() }), {}), O), {});
|
19996
|
+
h.current = S;
|
19995
19997
|
}, [JSON.stringify(N)]), k(() => {
|
19996
|
-
if (
|
19997
|
-
const S =
|
19998
|
+
if (f) {
|
19999
|
+
const S = h.current[e[0].id][m || s[0].key].current;
|
19998
20000
|
S && (S.focus(), g(!1));
|
19999
20001
|
}
|
20000
|
-
}, [
|
20002
|
+
}, [f]);
|
20001
20003
|
const C = (S, O) => (w) => {
|
20002
20004
|
let L = "";
|
20003
20005
|
const B = { selectedValue: null, files: [] };
|
@@ -20059,8 +20061,8 @@ const wA = (e) => {
|
|
20059
20061
|
onChange: C(S, O),
|
20060
20062
|
isDisabled: w,
|
20061
20063
|
formatCreateLabel: (X) => `Use ${X}`,
|
20062
|
-
refVar:
|
20063
|
-
dependentRefs:
|
20064
|
+
refVar: h?.current?.[S.id]?.[O],
|
20065
|
+
dependentRefs: h?.current?.[S.id],
|
20064
20066
|
fullWidth: !0
|
20065
20067
|
}
|
20066
20068
|
) });
|
@@ -20111,8 +20113,8 @@ const wA = (e) => {
|
|
20111
20113
|
value: S.data[O].value,
|
20112
20114
|
onChange: C(S, O),
|
20113
20115
|
disabled: w,
|
20114
|
-
refVar:
|
20115
|
-
dependentRefs:
|
20116
|
+
refVar: h?.current?.[S.id]?.[O],
|
20117
|
+
dependentRefs: h?.current?.[S.id],
|
20116
20118
|
disableOnBlurResizeToMinHeight: !0
|
20117
20119
|
}
|
20118
20120
|
);
|
@@ -20290,26 +20292,26 @@ const wA = (e) => {
|
|
20290
20292
|
const E = [r(), ...s];
|
20291
20293
|
n(E);
|
20292
20294
|
}, m = (_, E, x) => {
|
20293
|
-
const
|
20294
|
-
|
20295
|
+
const f = structuredClone(i);
|
20296
|
+
f[_.id] || (f[_.id] = {
|
20295
20297
|
tagKey: { isValid: !0, errorMessages: [] },
|
20296
20298
|
tagValue: { isValid: !0, errorMessages: [] }
|
20297
|
-
}), E === "tagKey" ?
|
20298
|
-
const g = s.map((
|
20299
|
-
...
|
20299
|
+
}), E === "tagKey" ? f[_.id].tagKey = wA(x) : f[_.id].tagValue = DA(x, _.data.tagKey.value);
|
20300
|
+
const g = s.map((h) => h.id === _.id ? {
|
20301
|
+
...h,
|
20300
20302
|
data: {
|
20301
|
-
...
|
20303
|
+
...h.data,
|
20302
20304
|
[E]: {
|
20303
|
-
...
|
20305
|
+
...h.data[E],
|
20304
20306
|
value: x
|
20305
20307
|
}
|
20306
20308
|
},
|
20307
20309
|
customState: {
|
20308
|
-
...
|
20309
|
-
propagateTag: E === "tagKey" && x === yl ? !1 :
|
20310
|
+
...h.customState,
|
20311
|
+
propagateTag: E === "tagKey" && x === yl ? !1 : h.customState.propagateTag
|
20310
20312
|
}
|
20311
|
-
} :
|
20312
|
-
n(g), c(
|
20313
|
+
} : h);
|
20314
|
+
n(g), c(f);
|
20313
20315
|
}, p = (_) => {
|
20314
20316
|
const E = s.filter(({ id: x }) => x !== _.id);
|
20315
20317
|
if (E.length === 0) {
|
@@ -20494,18 +20496,18 @@ const wA = (e) => {
|
|
20494
20496
|
subPath: _,
|
20495
20497
|
data: E,
|
20496
20498
|
defaultData: x,
|
20497
|
-
filePermission:
|
20499
|
+
filePermission: f,
|
20498
20500
|
roleARN: g,
|
20499
|
-
esoSubPath:
|
20501
|
+
esoSubPath: h
|
20500
20502
|
} = s || {}, N = {
|
20501
20503
|
name: c ?? "",
|
20502
20504
|
isSecret: i,
|
20503
20505
|
external: l ?? !1,
|
20504
20506
|
externalType: d ?? Le.Internal,
|
20505
20507
|
selectedType: u ?? dr.environment.value,
|
20506
|
-
isFilePermissionChecked: !!
|
20508
|
+
isFilePermissionChecked: !!f,
|
20507
20509
|
isSubPathChecked: !!_,
|
20508
|
-
filePermission:
|
20510
|
+
filePermission: f ?? "",
|
20509
20511
|
volumeMountPath: m ?? p ?? "",
|
20510
20512
|
roleARN: g ?? "",
|
20511
20513
|
yamlMode: !0,
|
@@ -20531,7 +20533,7 @@ const wA = (e) => {
|
|
20531
20533
|
data: E || x,
|
20532
20534
|
external: l,
|
20533
20535
|
subPath: _,
|
20534
|
-
esoSubPath:
|
20536
|
+
esoSubPath: h
|
20535
20537
|
}),
|
20536
20538
|
yaml: KA(v),
|
20537
20539
|
currentData: v,
|
@@ -20573,18 +20575,18 @@ const wA = (e) => {
|
|
20573
20575
|
secretDataYaml: _,
|
20574
20576
|
selectedType: E,
|
20575
20577
|
volumeMountPath: x,
|
20576
|
-
yaml:
|
20578
|
+
yaml: f,
|
20577
20579
|
currentData: g,
|
20578
|
-
isSecret:
|
20580
|
+
isSecret: h
|
20579
20581
|
} = Ui({
|
20580
20582
|
isJob: a,
|
20581
20583
|
configMapSecretData: e,
|
20582
20584
|
cmSecretStateLabel: s,
|
20583
20585
|
componentType: n,
|
20584
20586
|
fallbackMergeStrategy: r
|
20585
|
-
}), N = i && c === (
|
20587
|
+
}), N = i && c === (h ? Le.KubernetesSecret : Le.Internal);
|
20586
20588
|
let C = "";
|
20587
|
-
return
|
20589
|
+
return h ? C = i && c === "" ? Le.KubernetesSecret : _n(GA(a, !0), c).label : C = VA.find(
|
20588
20590
|
({ value: A }) => i && c === "" ? A === Le.KubernetesConfigMap : A === c
|
20589
20591
|
).label, {
|
20590
20592
|
configData: [
|
@@ -20631,7 +20633,7 @@ const wA = (e) => {
|
|
20631
20633
|
}
|
20632
20634
|
] : []
|
20633
20635
|
],
|
20634
|
-
data: N ? null : g?.[0]?.k &&
|
20636
|
+
data: N ? null : g?.[0]?.k && f || l || _
|
20635
20637
|
};
|
20636
20638
|
}, qA = (e) => {
|
20637
20639
|
try {
|
@@ -20684,7 +20686,7 @@ const wA = (e) => {
|
|
20684
20686
|
isSubPathChecked: E,
|
20685
20687
|
mergeStrategy: x
|
20686
20688
|
}) => {
|
20687
|
-
const
|
20689
|
+
const f = e && uu(n), h = (o ? qA(r) : i).reduce((C, A) => {
|
20688
20690
|
if (!A.k)
|
20689
20691
|
return C;
|
20690
20692
|
const v = A.v ?? "";
|
@@ -20696,7 +20698,7 @@ const wA = (e) => {
|
|
20696
20698
|
name: d,
|
20697
20699
|
type: u,
|
20698
20700
|
external: s,
|
20699
|
-
data:
|
20701
|
+
data: h,
|
20700
20702
|
roleARN: null,
|
20701
20703
|
externalType: null,
|
20702
20704
|
esoSecretData: null,
|
@@ -20706,7 +20708,7 @@ const wA = (e) => {
|
|
20706
20708
|
esoSubPath: null,
|
20707
20709
|
mergeStrategy: x
|
20708
20710
|
};
|
20709
|
-
if ((e && n === Le.KubernetesSecret || !e && s || e &&
|
20711
|
+
if ((e && n === Le.KubernetesSecret || !e && s || e && f) && delete N[Wd.DATA], e && (N.roleARN = "", N.externalType = n, f)) {
|
20710
20712
|
const C = Rm(c);
|
20711
20713
|
C && (N.esoSecretData = {
|
20712
20714
|
secretStore: C.secretStore,
|
@@ -20982,14 +20984,14 @@ const wA = (e) => {
|
|
20982
20984
|
}, u = (x) => {
|
20983
20985
|
if (a)
|
20984
20986
|
return /* @__PURE__ */ t.jsx("i", { className: "text__white fs-12 fw-6 lh-18 m-0", children: "is sensitive & hidden" });
|
20985
|
-
const
|
20986
|
-
return x === "" ? /* @__PURE__ */ t.jsx("p", { className:
|
20987
|
+
const f = "text__white fs-12 fw-6 lh-18 m-0";
|
20988
|
+
return x === "" ? /* @__PURE__ */ t.jsx("p", { className: f, children: `'""'` }) : typeof x == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: f, children: x ? "true" : "false" }) : typeof x == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${f} dc__transparent--unstyled border__primary`, children: ft(x) }) : /* @__PURE__ */ t.jsx("p", { className: f, children: x });
|
20987
20989
|
}, m = (x) => {
|
20988
20990
|
if (r === "")
|
20989
20991
|
return x;
|
20990
20992
|
try {
|
20991
|
-
const
|
20992
|
-
return x.replace(
|
20993
|
+
const f = new RegExp(r, "gi");
|
20994
|
+
return x.replace(f, (g) => `<span class="bcy-2">${g}</span>`);
|
20993
20995
|
} catch {
|
20994
20996
|
return x;
|
20995
20997
|
}
|
@@ -21109,7 +21111,7 @@ const wA = (e) => {
|
|
21109
21111
|
type: "button",
|
21110
21112
|
children: "Clear Search"
|
21111
21113
|
}
|
21112
|
-
),
|
21114
|
+
), f = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch", children: [
|
21113
21115
|
/* @__PURE__ */ t.jsxs("div", { className: "handle-drag flexbox pt-8 pl-12 pr-12 dc__gap-16 dc__align-start dc__align-self-stretch dc__grabbable dc__border-bottom", children: [
|
21114
21116
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__content-center dc__align-start flex-grow-1 dc__no-shrink", children: [
|
21115
21117
|
/* @__PURE__ */ t.jsxs("div", { className: "flex center dc__gap-4", children: [
|
@@ -21176,13 +21178,13 @@ const wA = (e) => {
|
|
21176
21178
|
}
|
21177
21179
|
) }),
|
21178
21180
|
/* @__PURE__ */ t.jsx(Rl, {})
|
21179
|
-
] }),
|
21181
|
+
] }), h = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
21180
21182
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Qe, { title: "No variables found", image: xd }) }),
|
21181
21183
|
/* @__PURE__ */ t.jsx(Rl, {})
|
21182
21184
|
] }) : p ? g() : /* @__PURE__ */ t.jsx(Jn, { reload: a, className: "bg__primary pb-16" });
|
21183
21185
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
21184
|
-
|
21185
|
-
|
21186
|
+
f(),
|
21187
|
+
h()
|
21186
21188
|
] });
|
21187
21189
|
}, rI = ht(aI), co = (e, s) => e && s ? `"${e}":${s},` : "", oI = ({
|
21188
21190
|
appId: e,
|
@@ -21211,16 +21213,16 @@ const wA = (e) => {
|
|
21211
21213
|
hideObjectVariables: o = !0,
|
21212
21214
|
showValueOnHover: i = !0
|
21213
21215
|
}) => {
|
21214
|
-
const [c, l] = R(!1), [d, u] = R({ x: 0, y: 0 }), [m, p] = R({ x: 0, y: 0 }), [_, E, x,
|
21216
|
+
const [c, l] = R(!1), [d, u] = R({ x: 0, y: 0 }), [m, p] = R({ x: 0, y: 0 }), [_, E, x, f] = Kt(
|
21215
21217
|
() => iI(s, n, a, o),
|
21216
21218
|
[s, n, a]
|
21217
|
-
), g = pi(),
|
21218
|
-
const y =
|
21219
|
+
), g = pi(), h = Y(null), N = te(() => {
|
21220
|
+
const y = h.current?.getBoundingClientRect() || {
|
21219
21221
|
x: 0,
|
21220
21222
|
y: 0
|
21221
21223
|
};
|
21222
21224
|
return { x: y.x, y: y.y };
|
21223
|
-
}, [
|
21225
|
+
}, [h.current]);
|
21224
21226
|
k(() => {
|
21225
21227
|
const y = new ResizeObserver((T) => {
|
21226
21228
|
if (T?.length > 0 && c) {
|
@@ -21231,7 +21233,7 @@ const wA = (e) => {
|
|
21231
21233
|
});
|
21232
21234
|
}
|
21233
21235
|
});
|
21234
|
-
return y.observe(
|
21236
|
+
return y.observe(h.current), () => {
|
21235
21237
|
y.disconnect();
|
21236
21238
|
};
|
21237
21239
|
}, [c, m, g, N]);
|
@@ -21260,20 +21262,20 @@ const wA = (e) => {
|
|
21260
21262
|
x: N.x + T.x,
|
21261
21263
|
y: N.y + T.y
|
21262
21264
|
};
|
21263
|
-
b.y < 0 || b.x < 0 || b.x + (
|
21265
|
+
b.y < 0 || b.x < 0 || b.x + (h.current?.getBoundingClientRect().width || 0) > g.width || b.y + (h.current?.getBoundingClientRect().height || 0) > g.height || u(T);
|
21264
21266
|
}, I = (y, T) => {
|
21265
21267
|
const b = {
|
21266
21268
|
x: N.x + T.x,
|
21267
21269
|
y: N.y + T.y
|
21268
21270
|
};
|
21269
|
-
b.y < 0 || b.x < 0 || b.x + (
|
21271
|
+
b.y < 0 || b.x < 0 || b.x + (h.current?.getBoundingClientRect().width || 0) > g.width || b.y + (h.current?.getBoundingClientRect().height || 0) > g.height || (p(T), u(T));
|
21270
21272
|
};
|
21271
21273
|
return c ? /* @__PURE__ */ t.jsx(
|
21272
21274
|
ka,
|
21273
21275
|
{
|
21274
21276
|
bounds: r,
|
21275
21277
|
handle: ".handle-drag",
|
21276
|
-
nodeRef:
|
21278
|
+
nodeRef: h,
|
21277
21279
|
position: m,
|
21278
21280
|
onDrag: I,
|
21279
21281
|
children: /* @__PURE__ */ t.jsx(
|
@@ -21284,14 +21286,14 @@ const wA = (e) => {
|
|
21284
21286
|
zIndex: e,
|
21285
21287
|
boxShadow: "0px 4px 8px 0px rgba(0, 0, 0, 0.25)"
|
21286
21288
|
},
|
21287
|
-
ref:
|
21289
|
+
ref: h,
|
21288
21290
|
children: /* @__PURE__ */ t.jsx(
|
21289
21291
|
rI,
|
21290
21292
|
{
|
21291
21293
|
handleDeActivation: A,
|
21292
21294
|
loading: _,
|
21293
21295
|
variables: E ?? [],
|
21294
|
-
reloadVariables:
|
21296
|
+
reloadVariables: f,
|
21295
21297
|
error: x,
|
21296
21298
|
showValueOnHover: i
|
21297
21299
|
}
|
@@ -21304,7 +21306,7 @@ const wA = (e) => {
|
|
21304
21306
|
{
|
21305
21307
|
bounds: r,
|
21306
21308
|
handle: ".handle-drag",
|
21307
|
-
nodeRef:
|
21309
|
+
nodeRef: h,
|
21308
21310
|
position: d,
|
21309
21311
|
onDrag: v,
|
21310
21312
|
children: /* @__PURE__ */ t.jsxs(
|
@@ -21312,7 +21314,7 @@ const wA = (e) => {
|
|
21312
21314
|
{
|
21313
21315
|
className: "bcn-7 dc__outline-none-imp dc__border-n0 br-48 flex h-40 pt-8 pb-8 pl-12 pr-12 dc__gap-8 dc__no-shrink dc__position-abs",
|
21314
21316
|
style: { zIndex: e, boxShadow: "0px 4px 8px 0px rgba(0, 0, 0, 0.20)" },
|
21315
|
-
ref:
|
21317
|
+
ref: h,
|
21316
21318
|
"data-testid": "collapsed-state",
|
21317
21319
|
children: [
|
21318
21320
|
/* @__PURE__ */ t.jsx("button", { type: "button", className: "dc__outline-none-imp dc__no-border p-0 bcn-7 h-24", children: /* @__PURE__ */ t.jsx(vd, { className: "handle-drag dc__grabbable icon-dim-24 fcn-2" }) }),
|
@@ -21443,34 +21445,34 @@ const mI = ({
|
|
21443
21445
|
},
|
21444
21446
|
[]
|
21445
21447
|
);
|
21446
|
-
const _ = (
|
21447
|
-
d(
|
21448
|
+
const _ = (h) => () => {
|
21449
|
+
d(h);
|
21448
21450
|
}, E = qe(
|
21449
|
-
(
|
21451
|
+
(h, N) => {
|
21450
21452
|
const C = lo.some((v) => v.label === u), A = uI[u] ?? ((v) => v);
|
21451
21453
|
if (!C) {
|
21452
|
-
const v =
|
21454
|
+
const v = h.additionalKeys?.find((y) => y.label === u)?.value || "", I = N.additionalKeys?.find((y) => y.label === u)?.value || "";
|
21453
21455
|
return at(v, I, m);
|
21454
21456
|
}
|
21455
|
-
return (m === xe.ASC ? 1 : -1) * (A(
|
21457
|
+
return (m === xe.ASC ? 1 : -1) * (A(h[Ol[u]]) < A(N[Ol[u]]) ? -1 : 1);
|
21456
21458
|
},
|
21457
21459
|
[m, u]
|
21458
|
-
), x = a.getResults(e ? null : E),
|
21459
|
-
(
|
21460
|
-
if (
|
21460
|
+
), x = a.getResults(e ? null : E), f = lo.reduce(
|
21461
|
+
(h, N, C) => {
|
21462
|
+
if (h.push(N), C === 0) {
|
21461
21463
|
const A = x?.[0]?.additionalKeys;
|
21462
21464
|
A?.length && A.forEach((v) => {
|
21463
|
-
|
21465
|
+
h.push({
|
21464
21466
|
label: v.label,
|
21465
21467
|
isSortable: v.isSortable,
|
21466
21468
|
width: v.width
|
21467
21469
|
});
|
21468
21470
|
});
|
21469
21471
|
}
|
21470
|
-
return
|
21472
|
+
return h;
|
21471
21473
|
},
|
21472
21474
|
[]
|
21473
|
-
), g =
|
21475
|
+
), g = f.map((h) => h.width).join(" ");
|
21474
21476
|
return /* @__PURE__ */ t.jsx(
|
21475
21477
|
$m,
|
21476
21478
|
{
|
@@ -21529,40 +21531,40 @@ const mI = ({
|
|
21529
21531
|
{
|
21530
21532
|
className: "dc__grid dc__border-bottom-n1 py-8 fs-12 fw-6 cn-7 ml-20 mr-20 dc__gap-16",
|
21531
21533
|
style: { gridTemplateColumns: g },
|
21532
|
-
children:
|
21534
|
+
children: f.map((h) => /* @__PURE__ */ t.jsx(
|
21533
21535
|
Tu,
|
21534
21536
|
{
|
21535
|
-
title:
|
21537
|
+
title: h.label,
|
21536
21538
|
disabled: e,
|
21537
|
-
isSorted: u ===
|
21539
|
+
isSorted: u === h.label,
|
21538
21540
|
sortOrder: m,
|
21539
|
-
isSortable: !!
|
21540
|
-
triggerSorting: _(
|
21541
|
+
isSortable: !!h.isSortable && !e,
|
21542
|
+
triggerSorting: _(h.label),
|
21541
21543
|
showTippyOnTruncate: !0
|
21542
21544
|
},
|
21543
|
-
|
21545
|
+
h.label
|
21544
21546
|
))
|
21545
21547
|
}
|
21546
21548
|
),
|
21547
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: x.map((
|
21549
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: x.map((h, N, C) => /* @__PURE__ */ t.jsxs(
|
21548
21550
|
"div",
|
21549
21551
|
{
|
21550
21552
|
className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${N === C.length - 1 ? "mb-20" : ""}`,
|
21551
21553
|
style: {
|
21552
|
-
gridTemplateColumns:
|
21554
|
+
gridTemplateColumns: h.renderContentAtResultRowEnd ? `${g} min-content` : g
|
21553
21555
|
},
|
21554
21556
|
children: [
|
21555
|
-
/* @__PURE__ */ t.jsx(ie, { content:
|
21556
|
-
|
21557
|
+
/* @__PURE__ */ t.jsx(ie, { content: h.name, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: h.name }) }),
|
21558
|
+
h.additionalKeys?.map((A) => /* @__PURE__ */ t.jsx(ie, { content: A.value, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: A.value || "-" }) })),
|
21557
21559
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-6 dc__align-items-center dc__align-self-start", children: [
|
21558
|
-
|
21559
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
21560
|
+
h.status !== "Pending" && er(h.status),
|
21561
|
+
/* @__PURE__ */ t.jsx("span", { children: h.status })
|
21560
21562
|
] }),
|
21561
|
-
/* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children:
|
21562
|
-
|
21563
|
+
/* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: h.message }),
|
21564
|
+
h.renderContentAtResultRowEnd?.()
|
21563
21565
|
]
|
21564
21566
|
},
|
21565
|
-
|
21567
|
+
h.id
|
21566
21568
|
)) })
|
21567
21569
|
] })
|
21568
21570
|
] }),
|
@@ -21626,13 +21628,13 @@ const mI = ({
|
|
21626
21628
|
data: l,
|
21627
21629
|
disableTransition: d
|
21628
21630
|
}) => {
|
21629
|
-
const [u, m] = R(!!i), [, p] = R((/* @__PURE__ */ new Date()).toISOString()), _ = Y(s), E = Y(new Ll(_.current.length)), x = Y(new AbortController()),
|
21631
|
+
const [u, m] = R(!!i), [, p] = R((/* @__PURE__ */ new Date()).toISOString()), _ = Y(s), E = Y(new Ll(_.current.length)), x = Y(new AbortController()), f = !r && !!E.current.getSize();
|
21630
21632
|
Xb({
|
21631
21633
|
shouldPrompt: u
|
21632
21634
|
});
|
21633
21635
|
const g = () => {
|
21634
21636
|
(E.current.getHasAnyOperationSucceeded() || r) && a(), e();
|
21635
|
-
},
|
21637
|
+
}, h = async () => {
|
21636
21638
|
try {
|
21637
21639
|
m(!0);
|
21638
21640
|
let y = -1;
|
@@ -21685,11 +21687,11 @@ const mI = ({
|
|
21685
21687
|
m(!1);
|
21686
21688
|
}
|
21687
21689
|
};
|
21688
|
-
k(() => (i &&
|
21690
|
+
k(() => (i && h().then(ga).catch(ga), () => {
|
21689
21691
|
x.current?.abort();
|
21690
21692
|
}), []);
|
21691
21693
|
const N = u ? ga : g, C = async () => {
|
21692
|
-
_.current = E.current.getRetryOperations(), E.current = new Ll(_.current.length), x.current = new AbortController(), await
|
21694
|
+
_.current = E.current.getRetryOperations(), E.current = new Ll(_.current.length), x.current = new AbortController(), await h();
|
21693
21695
|
}, A = () => {
|
21694
21696
|
x.current.abort();
|
21695
21697
|
}, v = () => /* @__PURE__ */ t.jsx(
|
@@ -21700,7 +21702,7 @@ const mI = ({
|
|
21700
21702
|
buttonConfig: {
|
21701
21703
|
primaryButtonConfig: {
|
21702
21704
|
...c.buttonConfig.primaryButtonConfig,
|
21703
|
-
onClick:
|
21705
|
+
onClick: h,
|
21704
21706
|
disabled: u || c.buttonConfig.primaryButtonConfig.disabled,
|
21705
21707
|
isLoading: u
|
21706
21708
|
},
|
@@ -21727,7 +21729,7 @@ const mI = ({
|
|
21727
21729
|
);
|
21728
21730
|
return /* @__PURE__ */ t.jsxs("div", { className: "bulk-operations", children: [
|
21729
21731
|
/* @__PURE__ */ t.jsx(n_, { when: u, message: o.prompt }),
|
21730
|
-
!i && !
|
21732
|
+
!i && !f ? v() : I()
|
21731
21733
|
] });
|
21732
21734
|
}, Rn = ({
|
21733
21735
|
title: e,
|
@@ -21872,7 +21874,7 @@ const mI = ({
|
|
21872
21874
|
p(Ct.CI);
|
21873
21875
|
}
|
21874
21876
|
}, [i, o]);
|
21875
|
-
const
|
21877
|
+
const f = () => {
|
21876
21878
|
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === Es.CD)) {
|
21877
21879
|
E(!0), BN(hI(o)).then((A) => {
|
21878
21880
|
A.result && (ke.showToast({
|
@@ -21891,7 +21893,7 @@ const mI = ({
|
|
21891
21893
|
N.stopPropagation();
|
21892
21894
|
const { pipelineType: C } = N.currentTarget.dataset;
|
21893
21895
|
if (C === Vs.WEBHOOK) {
|
21894
|
-
|
21896
|
+
f();
|
21895
21897
|
return;
|
21896
21898
|
}
|
21897
21899
|
if (d && C === d.type) {
|
@@ -21899,7 +21901,7 @@ const mI = ({
|
|
21899
21901
|
return;
|
21900
21902
|
}
|
21901
21903
|
s(C, o?.appWorkflowId ?? 0), e();
|
21902
|
-
},
|
21904
|
+
}, h = (N) => !r && N === Ct.LINKED_CD ? pI : m === N ? _I : _ ? fI : null;
|
21903
21905
|
return /* @__PURE__ */ t.jsx(
|
21904
21906
|
Cn,
|
21905
21907
|
{
|
@@ -21939,7 +21941,7 @@ const mI = ({
|
|
21939
21941
|
dataTestId: Me.SOURCE_CODE.dataTestId,
|
21940
21942
|
type: Me.SOURCE_CODE.type,
|
21941
21943
|
handleCardAction: g,
|
21942
|
-
disableInfo:
|
21944
|
+
disableInfo: h(Ct.CI)
|
21943
21945
|
}
|
21944
21946
|
),
|
21945
21947
|
/* @__PURE__ */ t.jsx(
|
@@ -21952,7 +21954,7 @@ const mI = ({
|
|
21952
21954
|
dataTestId: Me.LINKED_PIPELINE.dataTestId,
|
21953
21955
|
type: Me.LINKED_PIPELINE.type,
|
21954
21956
|
handleCardAction: g,
|
21955
|
-
disableInfo:
|
21957
|
+
disableInfo: h(Ct.LINKED_CI),
|
21956
21958
|
isDisabled: u
|
21957
21959
|
}
|
21958
21960
|
)
|
@@ -21969,7 +21971,7 @@ const mI = ({
|
|
21969
21971
|
dataTestId: Me.EXTERNAL_SERVICE.dataTestId,
|
21970
21972
|
type: Me.EXTERNAL_SERVICE.type,
|
21971
21973
|
handleCardAction: g,
|
21972
|
-
disableInfo:
|
21974
|
+
disableInfo: h(Es.WEBHOOK),
|
21973
21975
|
isDisabled: u
|
21974
21976
|
}
|
21975
21977
|
),
|
@@ -21983,7 +21985,7 @@ const mI = ({
|
|
21983
21985
|
dataTestId: d.dataTestId,
|
21984
21986
|
type: d.type,
|
21985
21987
|
handleCardAction: g,
|
21986
|
-
disableInfo:
|
21988
|
+
disableInfo: h(Ct.LINKED_CD)
|
21987
21989
|
}
|
21988
21990
|
)
|
21989
21991
|
] }),
|
@@ -21999,7 +22001,7 @@ const mI = ({
|
|
21999
22001
|
dataTestId: Me.JOB.dataTestId,
|
22000
22002
|
type: Me.JOB.type,
|
22001
22003
|
handleCardAction: g,
|
22002
|
-
disableInfo:
|
22004
|
+
disableInfo: h(Ct.JOB_CI),
|
22003
22005
|
isDisabled: u
|
22004
22006
|
}
|
22005
22007
|
)
|
@@ -22128,8 +22130,8 @@ const mI = ({
|
|
22128
22130
|
children: i
|
22129
22131
|
}
|
22130
22132
|
) : i : null, x = () => {
|
22131
|
-
const
|
22132
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${
|
22133
|
+
const f = e === "column", g = n === M.medium ? "dc__gap-2" : "dc__gap-4";
|
22134
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${f ? g : ""}`, children: [
|
22133
22135
|
_(),
|
22134
22136
|
E()
|
22135
22137
|
] });
|
@@ -22278,8 +22280,8 @@ function Ul(e, s = 4, n = "json", a = !1) {
|
|
22278
22280
|
if (n === "json")
|
22279
22281
|
try {
|
22280
22282
|
_ = JSON.parse(e), E = null, x = null;
|
22281
|
-
} catch (
|
22282
|
-
E =
|
22283
|
+
} catch (f) {
|
22284
|
+
E = f;
|
22283
22285
|
try {
|
22284
22286
|
_ = Dt.parse(e, p), E = null, x = null;
|
22285
22287
|
} catch (g) {
|
@@ -22289,8 +22291,8 @@ function Ul(e, s = 4, n = "json", a = !1) {
|
|
22289
22291
|
else
|
22290
22292
|
try {
|
22291
22293
|
_ = Dt.parse(e, p), E = null, x = null;
|
22292
|
-
} catch (
|
22293
|
-
x =
|
22294
|
+
} catch (f) {
|
22295
|
+
x = f;
|
22294
22296
|
try {
|
22295
22297
|
_ = JSON.parse(e), E = null, x = null;
|
22296
22298
|
} catch (g) {
|
@@ -22387,7 +22389,7 @@ function Kt(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
22387
22389
|
};
|
22388
22390
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
22389
22391
|
}
|
22390
|
-
const aP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed",
|
22392
|
+
const aP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed", Xe = (e, s = {}) => {
|
22391
22393
|
const n = new URLSearchParams();
|
22392
22394
|
Object.keys(s).forEach((r) => {
|
22393
22395
|
Ld.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -22517,7 +22519,7 @@ function km(e, s) {
|
|
22517
22519
|
function fP(e) {
|
22518
22520
|
const s = Y(null), n = Y(0), a = Y(null), [r, o] = R(0), [i, c] = R(0), [l, d] = R(!1), u = qe((g) => {
|
22519
22521
|
if (g !== null)
|
22520
|
-
return s.current = g, a.current = g.addEventListener("wheel", m), n.current = requestAnimationFrame(
|
22522
|
+
return s.current = g, a.current = g.addEventListener("wheel", m), n.current = requestAnimationFrame(f), () => {
|
22521
22523
|
g.removeEventListener("wheel", m), cancelAnimationFrame(n.current);
|
22522
22524
|
};
|
22523
22525
|
}, []);
|
@@ -22528,8 +22530,8 @@ function fP(e) {
|
|
22528
22530
|
if (!s.current)
|
22529
22531
|
return [!1, !1];
|
22530
22532
|
let g = !0;
|
22531
|
-
const
|
22532
|
-
return i === 0 && (g = !1), !
|
22533
|
+
const h = s.current.scrollHeight - s.current.scrollTop !== s.current.clientHeight;
|
22534
|
+
return i === 0 && (g = !1), !h && e.autoBottomScroll && d(!0), [g, h];
|
22533
22535
|
}, [r, i]);
|
22534
22536
|
k(() => {
|
22535
22537
|
e.autoBottomScroll ? d(!0) : d(!1);
|
@@ -22557,8 +22559,8 @@ function fP(e) {
|
|
22557
22559
|
behavior: "smooth"
|
22558
22560
|
});
|
22559
22561
|
}
|
22560
|
-
function
|
22561
|
-
s.current && (o(s.current.scrollHeight), c(s.current.scrollTop), n.current = requestAnimationFrame(
|
22562
|
+
function f() {
|
22563
|
+
s.current && (o(s.current.scrollHeight), c(s.current.scrollTop), n.current = requestAnimationFrame(f));
|
22562
22564
|
}
|
22563
22565
|
return [u, p ? E : null, _ ? x : null];
|
22564
22566
|
}
|
@@ -22758,24 +22760,24 @@ function vP(e, s) {
|
|
22758
22760
|
c((_) => ({ ..._, alias: { ..._.alias, ...p } }));
|
22759
22761
|
}
|
22760
22762
|
function d(p) {
|
22761
|
-
const _ = p.reduce((E, x,
|
22763
|
+
const _ = p.reduce((E, x, f) => (delete E[x], E), i.alias);
|
22762
22764
|
c((E) => ({ ...E, alias: _ }));
|
22763
22765
|
}
|
22764
22766
|
const u = te(() => {
|
22765
22767
|
const p = r.split("/").filter(Boolean), _ = a.split("/").filter(Boolean);
|
22766
22768
|
return p.map((E, x) => {
|
22767
|
-
const
|
22768
|
-
return E.startsWith(":") && o[E.replace(":", "")] && (
|
22769
|
+
const f = { to: _[x], name: E };
|
22770
|
+
return E.startsWith(":") && o[E.replace(":", "")] && (f.className = "param"), f;
|
22769
22771
|
});
|
22770
22772
|
}, [r, a]), { res: m } = te(
|
22771
22773
|
() => u.reduce(
|
22772
22774
|
(p, _, E) => {
|
22773
|
-
const { res: x, prefix:
|
22775
|
+
const { res: x, prefix: f } = p, { to: g, name: h } = _;
|
22774
22776
|
return x.push({
|
22775
|
-
to: !i.alias[
|
22776
|
-
name: typeof i.alias[
|
22777
|
+
to: !i.alias[h]?.component || i.alias[h]?.component && i.alias[h]?.linked ? `${f}${g}` : null,
|
22778
|
+
name: typeof i.alias[h] == "object" ? i.alias[h]?.component ? i.alias[h].component : null : i.alias[h] || h,
|
22777
22779
|
className: _.className || ""
|
22778
|
-
}), { res: x, prefix: `${
|
22780
|
+
}), { res: x, prefix: `${f}${_.to}${n}` };
|
22779
22781
|
},
|
22780
22782
|
{ res: [], prefix: "/" }
|
22781
22783
|
),
|
@@ -22946,16 +22948,16 @@ const $i = ({
|
|
22946
22948
|
}
|
22947
22949
|
) : null, x = () => {
|
22948
22950
|
if (_) {
|
22949
|
-
const { heading:
|
22951
|
+
const { heading: f, description: g, actionButtonConfig: h } = _;
|
22950
22952
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox flex-grow-1 dc__content-space dc__align-start", children: [
|
22951
22953
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
22952
|
-
|
22954
|
+
f && /* @__PURE__ */ t.jsx("h6", { className: "m-0 cn-9 fs-13 fw-6 lh-20 dc__truncate", children: f }),
|
22953
22955
|
/* @__PURE__ */ t.jsx(ie, { content: g, children: /* @__PURE__ */ t.jsx("p", { className: "dc__truncate--clamp-3 m-0 cn-9 fs-13 fw-4 lh-20", children: g }) })
|
22954
22956
|
] }),
|
22955
|
-
|
22957
|
+
h && /* @__PURE__ */ t.jsx(
|
22956
22958
|
re,
|
22957
22959
|
{
|
22958
|
-
...
|
22960
|
+
...h
|
22959
22961
|
}
|
22960
22962
|
)
|
22961
22963
|
] });
|
@@ -23038,7 +23040,7 @@ const $i = ({
|
|
23038
23040
|
s(N), n(N);
|
23039
23041
|
}, x = () => {
|
23040
23042
|
p.current.value = "", E(""), m(!1);
|
23041
|
-
},
|
23043
|
+
}, f = (N) => {
|
23042
23044
|
const { value: C } = N.target;
|
23043
23045
|
m(!!C), o ? _(C) : s(C);
|
23044
23046
|
}, g = (N) => {
|
@@ -23048,7 +23050,7 @@ const $i = ({
|
|
23048
23050
|
const v = N.target.value.trim();
|
23049
23051
|
E(v);
|
23050
23052
|
}
|
23051
|
-
},
|
23053
|
+
}, h = (N = null) => {
|
23052
23054
|
a.ref && (a.ref.current = N), p.current = N;
|
23053
23055
|
};
|
23054
23056
|
return /* @__PURE__ */ t.jsx("div", { className: `search-bar-container ${r || ""}`, children: /* @__PURE__ */ t.jsxs(
|
@@ -23066,9 +23068,9 @@ const $i = ({
|
|
23066
23068
|
...a,
|
23067
23069
|
defaultValue: e,
|
23068
23070
|
className: `search-bar__input dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 dc__left-0 ${u ? "pr-30" : "pr-10"} ${l ? "dc__no-background" : "bg__secondary"}`,
|
23069
|
-
onChange:
|
23071
|
+
onChange: f,
|
23070
23072
|
onKeyDown: g,
|
23071
|
-
ref:
|
23073
|
+
ref: h
|
23072
23074
|
}
|
23073
23075
|
),
|
23074
23076
|
u && /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
@@ -23115,7 +23117,7 @@ const $i = ({
|
|
23115
23117
|
return;
|
23116
23118
|
}
|
23117
23119
|
_();
|
23118
|
-
},
|
23120
|
+
}, f = (g) => {
|
23119
23121
|
d && (g.preventDefault(), x());
|
23120
23122
|
};
|
23121
23123
|
return /* @__PURE__ */ t.jsxs(
|
@@ -23124,7 +23126,7 @@ const $i = ({
|
|
23124
23126
|
...u,
|
23125
23127
|
className: `${a} toggle__switch ${r ? "disabled" : ""}`,
|
23126
23128
|
style: { "--color": n },
|
23127
|
-
...d ? { onClick:
|
23129
|
+
...d ? { onClick: f } : {},
|
23128
23130
|
children: [
|
23129
23131
|
/* @__PURE__ */ t.jsx("input", { type: "checkbox", checked: !!m, onChange: x, className: "toggle__input" }),
|
23130
23132
|
/* @__PURE__ */ t.jsx("span", { className: `toggle__slider ${i ? "with-icon br-4 dc__border" : "round"}`, "data-testid": o, children: i && /* @__PURE__ */ t.jsx(i, { className: `icon-dim-20 br-4 p-2 ${c}` }) })
|
@@ -23149,14 +23151,14 @@ const Wm = ({
|
|
23149
23151
|
forceReInit: m,
|
23150
23152
|
isSuperAdmin: p
|
23151
23153
|
}) => {
|
23152
|
-
const [_, E] = R(a || []), [x,
|
23154
|
+
const [_, E] = R(a || []), [x, f] = R(n ? n.comment : ""), [g, h] = R(o || []), [N, C] = R(n ? n.comment : ""), [A, v] = R(!1), [I, y] = R(!1), [T, b] = R(a || []), [j, S] = R(""), [O, w] = R([]), [L, B] = R([]), [V, X] = R([]), [q, Q] = R(""), [de, Ie] = R(""), [H, F] = R(!1);
|
23153
23155
|
k(() => {
|
23154
23156
|
ce();
|
23155
23157
|
}, [a, n, c]), k(() => {
|
23156
|
-
|
23158
|
+
h(o || []);
|
23157
23159
|
}, [o]);
|
23158
23160
|
const ce = () => {
|
23159
|
-
(m || !A) && (E(a || []),
|
23161
|
+
(m || !A) && (E(a || []), f(n ? n.comment : ""), C(n ? n.comment : ""), b(a || []), v(!1));
|
23160
23162
|
}, le = () => {
|
23161
23163
|
v(!A), typeof d == "function" && d(s);
|
23162
23164
|
}, pe = (W) => {
|
@@ -23201,7 +23203,7 @@ const Wm = ({
|
|
23201
23203
|
const Ge = [...T];
|
23202
23204
|
Ge.splice(W, 1), b(Ge);
|
23203
23205
|
const tt = g.filter((Ot) => Ot.toLowerCase() !== Ae.tagName.toLowerCase());
|
23204
|
-
if (
|
23206
|
+
if (h(tt), Ae.id !== 0) {
|
23205
23207
|
const Ot = [...V, Ae];
|
23206
23208
|
X(Ot);
|
23207
23209
|
}
|
@@ -23238,7 +23240,7 @@ const Wm = ({
|
|
23238
23240
|
appId: 0,
|
23239
23241
|
artifactId: 0
|
23240
23242
|
}));
|
23241
|
-
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge),
|
23243
|
+
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), f(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(), y(!1), S(""), r && r(s, Ge, _e.result?.imageComment);
|
23242
23244
|
}).catch((_e) => {
|
23243
23245
|
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ke.showToast({
|
23244
23246
|
variant: Se.error,
|
@@ -23580,12 +23582,12 @@ const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
23580
23582
|
_E().then((E) => {
|
23581
23583
|
const x = E?.result || [];
|
23582
23584
|
n(x);
|
23583
|
-
const
|
23584
|
-
value:
|
23585
|
-
label:
|
23585
|
+
const f = [...new Set(x.map((h) => h.chartType))].map((h) => ({
|
23586
|
+
value: h,
|
23587
|
+
label: h
|
23586
23588
|
}));
|
23587
|
-
l(
|
23588
|
-
const g = Bl(x,
|
23589
|
+
l(f);
|
23590
|
+
const g = Bl(x, f[0]);
|
23589
23591
|
m(g);
|
23590
23592
|
}).catch((E) => {
|
23591
23593
|
Be(E);
|
@@ -23717,19 +23719,19 @@ function PP({
|
|
23717
23719
|
top: 0,
|
23718
23720
|
left: 0,
|
23719
23721
|
bottom: 0
|
23720
|
-
},
|
23722
|
+
}, f = d.current?.getBoundingClientRect().height ?? 0, g = d.current?.getBoundingClientRect().width ?? 0;
|
23721
23723
|
switch (E) {
|
23722
23724
|
case Yo.PARENT_BOTTOM_CENTER: {
|
23723
|
-
const
|
23724
|
-
return { x:
|
23725
|
+
const h = (x.width - g) / 2, N = x.top > 0 ? x.top : c, A = (x.height > l.height ? l.height - N : x.height) - f - o;
|
23726
|
+
return { x: h, y: A };
|
23725
23727
|
}
|
23726
23728
|
case Yo.SCREEN_BOTTOM_RIGHT: {
|
23727
|
-
const
|
23728
|
-
return { x:
|
23729
|
+
const h = l.width - x.left - g - o, N = l.height - x.top - f - o;
|
23730
|
+
return { x: h, y: N };
|
23729
23731
|
}
|
23730
23732
|
default: {
|
23731
|
-
const
|
23732
|
-
return { x:
|
23733
|
+
const h = l.width / 2 - x.left - g / 2, N = l.height - x.top - f - o;
|
23734
|
+
return { x: h, y: N };
|
23733
23735
|
}
|
23734
23736
|
}
|
23735
23737
|
};
|
@@ -23738,8 +23740,8 @@ function PP({
|
|
23738
23740
|
m(E);
|
23739
23741
|
}, [d, n, l]);
|
23740
23742
|
function _(E, x) {
|
23741
|
-
const
|
23742
|
-
|
23743
|
+
const f = r?.current?.getBoundingClientRect().left ?? 0, g = r?.current?.getBoundingClientRect().top ?? 0, h = d.current?.getBoundingClientRect().height ?? 0, N = d.current?.getBoundingClientRect().width ?? 0;
|
23744
|
+
f + x.x + N + o > l.width || g + x.y + h + o > l.height || f + x.x < 0 || g + x.y < 0 || m({
|
23743
23745
|
x: x.x,
|
23744
23746
|
y: x.y
|
23745
23747
|
});
|
@@ -23851,22 +23853,22 @@ const Fl = 5, XI = [
|
|
23851
23853
|
}) => {
|
23852
23854
|
const [l, d] = R([]);
|
23853
23855
|
k(() => {
|
23854
|
-
const
|
23855
|
-
d(
|
23856
|
+
const f = mo({ size: e, pageSize: s, selectedPageNo: 1 });
|
23857
|
+
d(f);
|
23856
23858
|
}, [e, s]), k(() => {
|
23857
|
-
const
|
23859
|
+
const f = 1 + Math.floor(n / s), g = mo({ size: e, pageSize: s, selectedPageNo: f });
|
23858
23860
|
d(g);
|
23859
23861
|
}, [n]);
|
23860
|
-
const u = (
|
23861
|
-
const g = mo({ size: e, pageSize: s, selectedPageNo:
|
23862
|
-
d(g), a(
|
23862
|
+
const u = (f) => {
|
23863
|
+
const g = mo({ size: e, pageSize: s, selectedPageNo: f });
|
23864
|
+
d(g), a(f);
|
23863
23865
|
}, m = () => {
|
23864
|
-
const g = l.find((
|
23866
|
+
const g = l.find((h) => h.selected).value - 1;
|
23865
23867
|
u(g);
|
23866
23868
|
}, p = () => {
|
23867
|
-
const g = l.find((
|
23869
|
+
const g = l.find((h) => h.selected).value + 1;
|
23868
23870
|
u(g);
|
23869
|
-
}, _ = n + s < e ? n + s : e, E = l.findIndex((
|
23871
|
+
}, _ = n + s < e ? n + s : e, E = l.findIndex((f) => f.selected), x = l.filter((f) => f.isVisible);
|
23870
23872
|
return /* @__PURE__ */ t.jsxs("div", { className: c || "", children: [
|
23871
23873
|
/* @__PURE__ */ t.jsxs("div", { className: "page-number", children: [
|
23872
23874
|
n + 1,
|
@@ -23887,14 +23889,14 @@ const Fl = 5, XI = [
|
|
23887
23889
|
children: /* @__PURE__ */ t.jsx("span", { className: "left-icon", children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-chevron-left" }) })
|
23888
23890
|
}
|
23889
23891
|
) }),
|
23890
|
-
x.map((
|
23892
|
+
x.map((f) => /* @__PURE__ */ t.jsx(
|
23891
23893
|
ey,
|
23892
23894
|
{
|
23893
|
-
value:
|
23894
|
-
isSelected:
|
23895
|
+
value: f.value,
|
23896
|
+
isSelected: f.selected,
|
23895
23897
|
selectPage: u
|
23896
23898
|
},
|
23897
|
-
|
23899
|
+
f.value
|
23898
23900
|
)),
|
23899
23901
|
/* @__PURE__ */ t.jsx("li", { className: "page", children: /* @__PURE__ */ t.jsx(
|
23900
23902
|
"button",
|
@@ -24024,11 +24026,11 @@ const kt = {
|
|
24024
24026
|
title: i,
|
24025
24027
|
minEditorHeight: c = 300
|
24026
24028
|
}) => {
|
24027
|
-
const [l, d] = R(!1), [u, m] = R(a), [p, _] = R(e), [E, x] = R(sn.WRITE),
|
24029
|
+
const [l, d] = R(!1), [u, m] = R(a), [p, _] = R(e), [E, x] = R(sn.WRITE), f = !$n(e, p), g = Y(null);
|
24028
24030
|
k(() => {
|
24029
24031
|
_(e);
|
24030
24032
|
}, [e]);
|
24031
|
-
const
|
24033
|
+
const h = Pe(n), N = h.isValid() ? h.format(yt.TWELVE_HOURS_FORMAT) : n, C = (y) => {
|
24032
24034
|
let T = !0;
|
24033
24035
|
return y.length === 0 && (ke.showToast({
|
24034
24036
|
variant: Se.error,
|
@@ -24036,7 +24038,7 @@ const kt = {
|
|
24036
24038
|
}), T = !1), T;
|
24037
24039
|
}, A = () => {
|
24038
24040
|
let y = !0;
|
24039
|
-
|
24041
|
+
f && !u && (y = window.confirm(ay)), y && (_(e), m(!u), x(sn.WRITE));
|
24040
24042
|
}, v = async () => {
|
24041
24043
|
const y = p.trim();
|
24042
24044
|
if (C(y))
|
@@ -24452,7 +24454,7 @@ export {
|
|
24452
24454
|
wm as bd,
|
24453
24455
|
Kt as be,
|
24454
24456
|
aP as bf,
|
24455
|
-
|
24457
|
+
Xe as bg,
|
24456
24458
|
Ma as bh,
|
24457
24459
|
rP as bi,
|
24458
24460
|
Bl as bj,
|
@@ -24573,7 +24575,7 @@ export {
|
|
24573
24575
|
yx as dV,
|
24574
24576
|
sa as dW,
|
24575
24577
|
Zd as dX,
|
24576
|
-
|
24578
|
+
Je as dY,
|
24577
24579
|
dL as dZ,
|
24578
24580
|
Rx as d_,
|
24579
24581
|
bE as da,
|