@devtron-labs/devtron-fe-common-lib 1.7.6 → 1.7.7
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.
@@ -1167,7 +1167,7 @@ const ed = {
|
|
1167
1167
|
triggerAutoClickTimestamp: f,
|
1168
1168
|
...E
|
1169
1169
|
}) => {
|
1170
|
-
const [h, N] = R(!1), C = q(), A = q(null),
|
1170
|
+
const [h, N] = R(!1), C = q(), A = q(null), S = l || c, I = `dc__no-shrink flex dc__fill-available-space ${lh({
|
1171
1171
|
size: a,
|
1172
1172
|
icon: m
|
1173
1173
|
})}`;
|
@@ -1180,7 +1180,7 @@ const ed = {
|
|
1180
1180
|
}), [f]);
|
1181
1181
|
const j = (T) => {
|
1182
1182
|
N(!1), clearTimeout(C.current), E.onClick?.(T);
|
1183
|
-
},
|
1183
|
+
}, v = () => !d && _ && m && p ? {
|
1184
1184
|
alwaysShowTippyOnHover: !0,
|
1185
1185
|
content: p
|
1186
1186
|
} : Object.hasOwn(u, "shortcutKeyCombo") && "shortcutKeyCombo" in u ? u : {
|
@@ -1188,12 +1188,12 @@ const ed = {
|
|
1188
1188
|
alwaysShowTippyOnHover: d && !!u?.content,
|
1189
1189
|
...u
|
1190
1190
|
};
|
1191
|
-
return /* @__PURE__ */ t.jsx(ne, { ...
|
1191
|
+
return /* @__PURE__ */ t.jsx(ne, { ...v(), children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs(
|
1192
1192
|
uh,
|
1193
1193
|
{
|
1194
1194
|
...E,
|
1195
|
-
disabled:
|
1196
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${g ? "dc__opacity-hover--child" : ""} ${dh({ size: a, variant: n, style: r, isLoading: c, icon: m, isAutoTriggerActive: h })} ${
|
1195
|
+
disabled: S,
|
1196
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${g ? "dc__opacity-hover--child" : ""} ${dh({ size: a, variant: n, style: r, isLoading: c, icon: m, isAutoTriggerActive: h })} ${S ? "dc__disabled" : ""} ${x ? "w-100" : ""}`,
|
1197
1197
|
"data-testid": e,
|
1198
1198
|
"aria-label": p || (c ? s : void 0),
|
1199
1199
|
elementRef: A,
|
@@ -1583,10 +1583,10 @@ const nd = (e) => {
|
|
1583
1583
|
Icon: N,
|
1584
1584
|
iconPath: C,
|
1585
1585
|
iconClass: A,
|
1586
|
-
iconSize:
|
1586
|
+
iconSize: S,
|
1587
1587
|
onImageLoadError: I,
|
1588
1588
|
heading: j,
|
1589
|
-
headingInfo:
|
1589
|
+
headingInfo: v,
|
1590
1590
|
infoTextHeading: T,
|
1591
1591
|
hideHeading: O,
|
1592
1592
|
infoText: b,
|
@@ -1604,14 +1604,14 @@ const nd = (e) => {
|
|
1604
1604
|
C ? /* @__PURE__ */ t.jsx(
|
1605
1605
|
"img",
|
1606
1606
|
{
|
1607
|
-
className: `icon-dim-${
|
1607
|
+
className: `icon-dim-${S || 20} mr-6 ${A || ""}`,
|
1608
1608
|
src: C,
|
1609
1609
|
alt: "Heading",
|
1610
1610
|
onError: I
|
1611
1611
|
}
|
1612
|
-
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${
|
1612
|
+
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${S || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${S || 20} ${A || ""}` }) }),
|
1613
1613
|
j && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${y ? "mr-12" : ""}`, children: j }),
|
1614
|
-
|
1614
|
+
v && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: c, children: /* @__PURE__ */ t.jsx(mn, { className: "icon-dim-20" }) }),
|
1615
1615
|
y && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1616
1616
|
ns,
|
1617
1617
|
{
|
@@ -1628,7 +1628,7 @@ const nd = (e) => {
|
|
1628
1628
|
className: `flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
1629
1629
|
children: [
|
1630
1630
|
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(pn, { className: "icon-dim-20 fcv-5" }) }),
|
1631
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children:
|
1631
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: v })
|
1632
1632
|
]
|
1633
1633
|
}
|
1634
1634
|
),
|
@@ -2571,10 +2571,10 @@ const Lh = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2571
2571
|
shouldRenderCustomOptions: N = !1,
|
2572
2572
|
isSearchable: C,
|
2573
2573
|
selectRef: A,
|
2574
|
-
shouldMenuAlignRight:
|
2574
|
+
shouldMenuAlignRight: S = !1,
|
2575
2575
|
fullWidth: I = !1,
|
2576
2576
|
customSelectedOptionsCount: j = null,
|
2577
|
-
renderMenuListFooter:
|
2577
|
+
renderMenuListFooter: v,
|
2578
2578
|
isCreatable: T = !1,
|
2579
2579
|
onCreateOption: O,
|
2580
2580
|
closeMenuOnSelect: b = !1,
|
@@ -2611,9 +2611,9 @@ const Lh = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2611
2611
|
variant: _,
|
2612
2612
|
getIsOptionValid: we,
|
2613
2613
|
isGroupHeadingSelectable: Me,
|
2614
|
-
shouldMenuAlignRight:
|
2614
|
+
shouldMenuAlignRight: S
|
2615
2615
|
}),
|
2616
|
-
[e, ra, d, _, Me,
|
2616
|
+
[e, ra, d, _, Me, S]
|
2617
2617
|
), le = (Re) => {
|
2618
2618
|
const as = Re?.trim();
|
2619
2619
|
return T && !!as && !ln(
|
@@ -2724,7 +2724,7 @@ const Lh = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2724
2724
|
isValidNewOption: le,
|
2725
2725
|
createOptionPosition: "first",
|
2726
2726
|
onCreateOption: nm,
|
2727
|
-
renderMenuListFooter: !u &&
|
2727
|
+
renderMenuListFooter: !u && v,
|
2728
2728
|
inputValue: $.inputValue ?? Ae,
|
2729
2729
|
onInputChange: am,
|
2730
2730
|
icon: s,
|
@@ -2792,9 +2792,9 @@ const Lh = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2792
2792
|
const { selectionStart: N, selectionEnd: C } = m.current.inputRef, A = `${d.slice(0, N)}
|
2793
2793
|
${d.slice(C)}`;
|
2794
2794
|
u(A);
|
2795
|
-
const
|
2796
|
-
`), T = parseInt(getComputedStyle(
|
2797
|
-
b < 0 ?
|
2795
|
+
const S = m.current.inputRef, I = S.selectionStart, v = S.value.substring(0, I).split(`
|
2796
|
+
`), T = parseInt(getComputedStyle(S).lineHeight, 10), b = v.length * T - S.scrollTop;
|
2797
|
+
b < 0 ? S.scrollTop += b : b > S.offsetHeight - T && (S.scrollTop += b - S.offsetHeight + T), setTimeout(() => {
|
2798
2798
|
m.current.inputRef.selectionStart = N + 1, m.current.inputRef.selectionEnd = N + 1;
|
2799
2799
|
});
|
2800
2800
|
return;
|
@@ -3260,9 +3260,9 @@ const Yi = () => ({
|
|
3260
3260
|
const { keys: C, id: A } = ma(E);
|
3261
3261
|
if (typeof h != "function")
|
3262
3262
|
throw new Error("callback provided is not a function");
|
3263
|
-
const
|
3264
|
-
if (
|
3265
|
-
pa(
|
3263
|
+
const S = o.current[A] && kc(o.current[A].keys, E) ? o.current[A] : null;
|
3264
|
+
if (S) {
|
3265
|
+
pa(S.callbackStack), S.callbackStack.push(h);
|
3266
3266
|
return;
|
3267
3267
|
}
|
3268
3268
|
o.current[A] = { keys: C, callbackStack: [h], description: N };
|
@@ -4003,7 +4003,7 @@ const tR = (e, s = !1) => {
|
|
4003
4003
|
}, [i, o]);
|
4004
4004
|
const g = (h) => {
|
4005
4005
|
const N = Object.keys(h || {}), C = Object.keys(i?.profile?.configurations || {});
|
4006
|
-
return N.concat(C).reduce((A,
|
4006
|
+
return N.concat(C).reduce((A, S) => (A[S] = !0, A), {});
|
4007
4007
|
};
|
4008
4008
|
return {
|
4009
4009
|
isLoading: o,
|
@@ -4013,38 +4013,38 @@ const tR = (e, s = !1) => {
|
|
4013
4013
|
profileInput: d,
|
4014
4014
|
profileInputErrors: m,
|
4015
4015
|
handleProfileInputChange: ({ action: h, data: N }) => {
|
4016
|
-
const C = structuredClone(d), A = structuredClone(m),
|
4017
|
-
i.profile.configurations[
|
4016
|
+
const C = structuredClone(d), A = structuredClone(m), S = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", I = C.configurations[S], j = structuredClone(
|
4017
|
+
i.profile.configurations[S] || I
|
4018
4018
|
);
|
4019
4019
|
switch (h) {
|
4020
4020
|
case Lt.DESCRIPTION: {
|
4021
|
-
const { value:
|
4022
|
-
C.description =
|
4021
|
+
const { value: v } = N;
|
4022
|
+
C.description = v, A[Lt.DESCRIPTION] = Ig(v).message;
|
4023
4023
|
break;
|
4024
4024
|
}
|
4025
4025
|
case Lt.NAME: {
|
4026
|
-
const { value:
|
4027
|
-
C.name =
|
4026
|
+
const { value: v } = N;
|
4027
|
+
C.name = v, A[Lt.NAME] = Ag(v).message;
|
4028
4028
|
break;
|
4029
4029
|
}
|
4030
4030
|
case P.CPU_LIMIT:
|
4031
4031
|
case P.CPU_REQUEST:
|
4032
4032
|
case P.MEMORY_LIMIT:
|
4033
4033
|
case P.MEMORY_REQUEST: {
|
4034
|
-
const { value:
|
4034
|
+
const { value: v, unit: T } = N;
|
4035
4035
|
I[h] = {
|
4036
4036
|
...I[h],
|
4037
4037
|
key: h,
|
4038
|
-
value:
|
4038
|
+
value: v,
|
4039
4039
|
unit: T
|
4040
4040
|
};
|
4041
4041
|
const { keyToPersist: O, keyToPersistConfigType: b } = Th[h], { request: y, limit: L } = Lg({
|
4042
4042
|
request: {
|
4043
|
-
value:
|
4043
|
+
value: v,
|
4044
4044
|
unit: T
|
4045
4045
|
},
|
4046
4046
|
limit: {
|
4047
|
-
value:
|
4047
|
+
value: v,
|
4048
4048
|
unit: T
|
4049
4049
|
},
|
4050
4050
|
[O]: {
|
@@ -4061,13 +4061,13 @@ const tR = (e, s = !1) => {
|
|
4061
4061
|
break;
|
4062
4062
|
}
|
4063
4063
|
case P.BUILD_TIMEOUT: {
|
4064
|
-
const { value:
|
4064
|
+
const { value: v, unit: T } = N;
|
4065
4065
|
I[h] = {
|
4066
4066
|
...I[h],
|
4067
4067
|
key: h,
|
4068
|
-
value:
|
4068
|
+
value: v,
|
4069
4069
|
unit: T
|
4070
|
-
}, A[h] = jg(
|
4070
|
+
}, A[h] = jg(v).message;
|
4071
4071
|
break;
|
4072
4072
|
}
|
4073
4073
|
case "activate_tolerance":
|
@@ -4075,8 +4075,8 @@ const tR = (e, s = !1) => {
|
|
4075
4075
|
case "activate_timeout":
|
4076
4076
|
case "activate_memory":
|
4077
4077
|
case "activate_cpu": {
|
4078
|
-
const
|
4079
|
-
ki[
|
4078
|
+
const v = Pi[h];
|
4079
|
+
ki[v]?.forEach((O) => {
|
4080
4080
|
I[O] = {
|
4081
4081
|
...j[O],
|
4082
4082
|
active: !0
|
@@ -4089,8 +4089,8 @@ const tR = (e, s = !1) => {
|
|
4089
4089
|
case "de_activate_memory":
|
4090
4090
|
case "de_activate_timeout":
|
4091
4091
|
case "de_activate_cpu": {
|
4092
|
-
const
|
4093
|
-
ki[
|
4092
|
+
const v = Pi[h];
|
4093
|
+
ki[v]?.forEach((O) => {
|
4094
4094
|
I[O] = {
|
4095
4095
|
...I[O],
|
4096
4096
|
...j[O]?.defaultValue,
|
@@ -4103,7 +4103,7 @@ const tR = (e, s = !1) => {
|
|
4103
4103
|
case "activate_cs":
|
4104
4104
|
case "de_activate_cm":
|
4105
4105
|
case "de_activate_cs": {
|
4106
|
-
const { id:
|
4106
|
+
const { id: v, componentType: T } = N, O = We[T], b = I[O].value, y = b.findIndex((k) => k.id === v);
|
4107
4107
|
if (y === -1 || !b[y].canOverride) {
|
4108
4108
|
const k = "Unable to customize this CM/CS";
|
4109
4109
|
Pe.showToast({
|
@@ -4114,43 +4114,43 @@ const tR = (e, s = !1) => {
|
|
4114
4114
|
}
|
4115
4115
|
const L = h === "activate_cm" || h === "activate_cs";
|
4116
4116
|
if (b[y].isOverridden = L, L) {
|
4117
|
-
const B = (j[O]?.value || []).find((G) => G.id ===
|
4117
|
+
const B = (j[O]?.value || []).find((G) => G.id === v) || b[y];
|
4118
4118
|
b[y].useFormProps = B?.useFormProps, b[y].initialResponse = B?.initialResponse;
|
4119
4119
|
} else
|
4120
4120
|
b[y].useFormProps = b[y].defaultValue, b[y].initialResponse = b[y].defaultValueInitialResponse;
|
4121
|
-
A[We[T]] && (delete A[We[T]][
|
4121
|
+
A[We[T]] && (delete A[We[T]][v], Object.keys(A[We[T]]).length === 0 && (A[We[T]] = null));
|
4122
4122
|
break;
|
4123
4123
|
}
|
4124
4124
|
case pt.ADD_TARGET_PLATFORM: {
|
4125
|
-
const { handleCaptureSnapshot:
|
4126
|
-
A[Fn.TARGET_PLATFORM] =
|
4127
|
-
|
4125
|
+
const { handleCaptureSnapshot: v } = N;
|
4126
|
+
A[Fn.TARGET_PLATFORM] = S ? tl(
|
4127
|
+
S,
|
4128
4128
|
g(C.configurations)
|
4129
|
-
).message : "", C.configurations[
|
4129
|
+
).message : "", C.configurations[S] = i.fallbackPlatformConfigurationMap[S] || // Here need to update target platform name for each configuration
|
4130
4130
|
Object.entries(
|
4131
4131
|
i.fallbackPlatformConfigurationMap[Qt]
|
4132
4132
|
).reduce((T, [O, b]) => (T[O] = {
|
4133
4133
|
...b,
|
4134
|
-
targetPlatform:
|
4135
|
-
}, T), {}),
|
4134
|
+
targetPlatform: S
|
4135
|
+
}, T), {}), v(C);
|
4136
4136
|
break;
|
4137
4137
|
}
|
4138
4138
|
case pt.REMOVE_TARGET_PLATFORM: {
|
4139
|
-
if (!C.configurations[
|
4139
|
+
if (!C.configurations[S]) {
|
4140
4140
|
Pe.showToast({
|
4141
4141
|
variant: xe.error,
|
4142
4142
|
description: "Platform does not exist"
|
4143
4143
|
}), Ia(new Error("Platform does not exist"));
|
4144
4144
|
return;
|
4145
4145
|
}
|
4146
|
-
delete C.configurations[
|
4147
|
-
Di[
|
4146
|
+
delete C.configurations[S], Object.keys(A).forEach((v) => {
|
4147
|
+
Di[v] && (A[v] = null);
|
4148
4148
|
});
|
4149
4149
|
break;
|
4150
4150
|
}
|
4151
4151
|
case pt.RENAME_TARGET_PLATFORM: {
|
4152
|
-
const { originalPlatformName:
|
4153
|
-
if (
|
4152
|
+
const { originalPlatformName: v, newPlatformName: T, configSnapshot: O } = N, b = C.configurations[v];
|
4153
|
+
if (v === T)
|
4154
4154
|
return;
|
4155
4155
|
if (!b) {
|
4156
4156
|
Pe.showToast({
|
@@ -4178,16 +4178,16 @@ const tR = (e, s = !1) => {
|
|
4178
4178
|
}, L;
|
4179
4179
|
},
|
4180
4180
|
{}
|
4181
|
-
), O[
|
4182
|
-
C.configurations[
|
4181
|
+
), O[v]) {
|
4182
|
+
C.configurations[v] = O[v];
|
4183
4183
|
break;
|
4184
4184
|
}
|
4185
|
-
delete C.configurations[
|
4185
|
+
delete C.configurations[v];
|
4186
4186
|
break;
|
4187
4187
|
}
|
4188
4188
|
case pt.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
|
4189
|
-
const { configSnapshot:
|
4190
|
-
C.configurations =
|
4189
|
+
const { configSnapshot: v } = N;
|
4190
|
+
C.configurations = v, Object.keys(A).forEach((T) => {
|
4191
4191
|
Di[T] && (A[T] = null);
|
4192
4192
|
});
|
4193
4193
|
break;
|
@@ -4206,8 +4206,8 @@ const tR = (e, s = !1) => {
|
|
4206
4206
|
case pt.DELETE_NODE_SELECTOR_ITEM: {
|
4207
4207
|
if (I[P.NODE_SELECTOR].key !== P.NODE_SELECTOR)
|
4208
4208
|
break;
|
4209
|
-
const { id:
|
4210
|
-
I[P.NODE_SELECTOR].value = I[P.NODE_SELECTOR].value.filter((O) => O.id !==
|
4209
|
+
const { id: v } = N;
|
4210
|
+
I[P.NODE_SELECTOR].value = I[P.NODE_SELECTOR].value.filter((O) => O.id !== v), delete A[P.NODE_SELECTOR]?.[v], Object.keys(A[P.NODE_SELECTOR] || {}).length === 0 && (A[P.NODE_SELECTOR] = null);
|
4211
4211
|
const T = I[P.NODE_SELECTOR].value.map(
|
4212
4212
|
(O) => O.key
|
4213
4213
|
);
|
@@ -4223,11 +4223,11 @@ const tR = (e, s = !1) => {
|
|
4223
4223
|
case pt.EDIT_NODE_SELECTOR_ITEM: {
|
4224
4224
|
if (I[P.NODE_SELECTOR].key !== P.NODE_SELECTOR)
|
4225
4225
|
break;
|
4226
|
-
const { id:
|
4227
|
-
(L) => L.id ===
|
4226
|
+
const { id: v, key: T, value: O } = N, b = I[P.NODE_SELECTOR].value.find(
|
4227
|
+
(L) => L.id === v
|
4228
4228
|
);
|
4229
4229
|
b ? (b.key = T, b.value = O) : I[P.NODE_SELECTOR].value.unshift({
|
4230
|
-
id:
|
4230
|
+
id: v,
|
4231
4231
|
key: T,
|
4232
4232
|
value: O
|
4233
4233
|
});
|
@@ -4259,32 +4259,32 @@ const tR = (e, s = !1) => {
|
|
4259
4259
|
case pt.DELETE_TOLERANCE_ITEM: {
|
4260
4260
|
if (I[P.TOLERANCE].key !== P.TOLERANCE)
|
4261
4261
|
break;
|
4262
|
-
const { id:
|
4263
|
-
I[P.TOLERANCE].value = I[P.TOLERANCE].value.filter((T) => T.id !==
|
4262
|
+
const { id: v } = N;
|
4263
|
+
I[P.TOLERANCE].value = I[P.TOLERANCE].value.filter((T) => T.id !== v), delete A[P.TOLERANCE]?.[v], Object.keys(A[P.TOLERANCE] || {}).length === 0 && (A[P.TOLERANCE] = null);
|
4264
4264
|
break;
|
4265
4265
|
}
|
4266
4266
|
case pt.EDIT_TOLERANCE_ITEM: {
|
4267
4267
|
if (I[P.TOLERANCE].key !== P.TOLERANCE)
|
4268
4268
|
break;
|
4269
|
-
const { id:
|
4270
|
-
(ee) => ee.id ===
|
4269
|
+
const { id: v, key: T, effect: O, operator: b, value: y } = N, L = I[P.TOLERANCE].value.find(
|
4270
|
+
(ee) => ee.id === v
|
4271
4271
|
);
|
4272
4272
|
L ? (L.key = T, L.effect = O, L.operator = b, L.value = y, b === ps.EXISTS && delete L.value) : I[P.TOLERANCE].value.unshift({
|
4273
|
-
id:
|
4273
|
+
id: v,
|
4274
4274
|
key: T,
|
4275
4275
|
effect: O,
|
4276
4276
|
operator: b,
|
4277
4277
|
value: y
|
4278
4278
|
});
|
4279
4279
|
const k = zo(T).messages, B = b !== ps.EXISTS ? Nd(y).messages : [], Z = !(b === ps.EXISTS ? !T : !T && !y) && (k.length > 0 || B.length > 0);
|
4280
|
-
A[P.TOLERANCE]?.[
|
4280
|
+
A[P.TOLERANCE]?.[v] || (A[P.TOLERANCE] || (A[P.TOLERANCE] = {}), A[P.TOLERANCE][v] = {}), A[P.TOLERANCE][v] = {
|
4281
4281
|
...k.length > 0 && { [mo.KEY]: k },
|
4282
4282
|
...B.length > 0 && { [mo.VALUE]: B }
|
4283
|
-
}, Z || (delete A[P.TOLERANCE][
|
4283
|
+
}, Z || (delete A[P.TOLERANCE][v], Object.keys(A[P.TOLERANCE]).length === 0 && (A[P.TOLERANCE] = null));
|
4284
4284
|
break;
|
4285
4285
|
}
|
4286
4286
|
case pt.ADD_CM_CS_ITEM: {
|
4287
|
-
const { id:
|
4287
|
+
const { id: v, infraConfigType: T } = N, b = {
|
4288
4288
|
useFormProps: fi({
|
4289
4289
|
configMapSecretData: null,
|
4290
4290
|
componentType: ld[T],
|
@@ -4292,7 +4292,7 @@ const tR = (e, s = !1) => {
|
|
4292
4292
|
isJob: !0,
|
4293
4293
|
fallbackMergeStrategy: null
|
4294
4294
|
}),
|
4295
|
-
id:
|
4295
|
+
id: v,
|
4296
4296
|
isOverridden: !0,
|
4297
4297
|
canOverride: !1,
|
4298
4298
|
initialResponse: null,
|
@@ -4303,7 +4303,7 @@ const tR = (e, s = !1) => {
|
|
4303
4303
|
break;
|
4304
4304
|
}
|
4305
4305
|
case pt.SYNC_CM_CS_ITEM: {
|
4306
|
-
const { id:
|
4306
|
+
const { id: v, value: T, hasError: O, componentType: b } = N, y = I[We[b]].value.findIndex((k) => k.id === v);
|
4307
4307
|
if (y === -1) {
|
4308
4308
|
Pe.showToast({
|
4309
4309
|
variant: xe.error,
|
@@ -4311,14 +4311,14 @@ const tR = (e, s = !1) => {
|
|
4311
4311
|
}), Ia(new Error("ConfigMap does not exist"));
|
4312
4312
|
return;
|
4313
4313
|
}
|
4314
|
-
I[We[b]].value[y].useFormProps = T, A[We[b]] || (A[We[b]] = {}), O ? A[We[b]][
|
4314
|
+
I[We[b]].value[y].useFormProps = T, A[We[b]] || (A[We[b]] = {}), O ? A[We[b]][v] = !0 : A[We[b]][v] && delete A[We[b]][v], Object.keys(
|
4315
4315
|
A[We[b]]
|
4316
4316
|
).length === 0 && (A[We[b]] = null);
|
4317
4317
|
break;
|
4318
4318
|
}
|
4319
4319
|
case pt.DELETE_CM_CS_ITEM: {
|
4320
|
-
const { id:
|
4321
|
-
I[We[T]].value = O, A[We[T]] && (delete A[We[T]][
|
4320
|
+
const { id: v, componentType: T } = N, O = I[We[T]].value.filter((b) => b.id !== v);
|
4321
|
+
I[We[T]].value = O, A[We[T]] && (delete A[We[T]][v], Object.keys(A[We[T]]).length === 0 && (A[We[T]] = null));
|
4322
4322
|
break;
|
4323
4323
|
}
|
4324
4324
|
}
|
@@ -7911,14 +7911,14 @@ const nx = {
|
|
7911
7911
|
const h = Bx(l, c.category, c.subCategory, _);
|
7912
7912
|
if (h)
|
7913
7913
|
return /* @__PURE__ */ t.jsx(Xe, { ...h, imageType: Hs.Large });
|
7914
|
-
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows:
|
7914
|
+
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: S } = _ || Mx(l, c.category, c.subCategory, u, o), { entities: I, lastScanTimeString: j, scanToolName: v, scanToolUrl: T } = _ || Ux(l, c.category, c.subCategory);
|
7915
7915
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
7916
7916
|
I?.length ? /* @__PURE__ */ t.jsx(
|
7917
7917
|
fx,
|
7918
7918
|
{
|
7919
7919
|
entities: I,
|
7920
7920
|
lastScanTimeString: j,
|
7921
|
-
scanToolName:
|
7921
|
+
scanToolName: v,
|
7922
7922
|
scanToolUrl: T
|
7923
7923
|
},
|
7924
7924
|
`${c.category}-${c.subCategory}`
|
@@ -7929,7 +7929,7 @@ const nx = {
|
|
7929
7929
|
headers: N,
|
7930
7930
|
rows: C,
|
7931
7931
|
defaultSortIndex: A,
|
7932
|
-
hasExpandableRows:
|
7932
|
+
hasExpandableRows: S,
|
7933
7933
|
headerTopPosition: _ ? 40 : 0
|
7934
7934
|
},
|
7935
7935
|
`${c.category}${c.subCategory}${p}`
|
@@ -8125,13 +8125,13 @@ const nx = {
|
|
8125
8125
|
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[f].subCategories.map((C) => {
|
8126
8126
|
if (!e[f][C])
|
8127
8127
|
return null;
|
8128
|
-
const A = f === Q.IMAGE_SCAN && Va(e[f][C].list ?? []) === "Failed",
|
8128
|
+
const A = f === Q.IMAGE_SCAN && Va(e[f][C].list ?? []) === "Failed", S = C === z.MISCONFIGURATIONS ? e[f][C]?.misConfSummary?.status : e[f][C]?.summary?.severities;
|
8129
8129
|
return /* @__PURE__ */ t.jsx(
|
8130
8130
|
$d,
|
8131
8131
|
{
|
8132
8132
|
category: f,
|
8133
8133
|
subCategory: C,
|
8134
|
-
severities:
|
8134
|
+
severities: S,
|
8135
8135
|
handleCardClick: x(f, C),
|
8136
8136
|
scanFailed: A
|
8137
8137
|
}
|
@@ -8423,14 +8423,14 @@ const Hx = {
|
|
8423
8423
|
const h = q(null), [N, C] = R(""), A = (T) => {
|
8424
8424
|
const O = h.current;
|
8425
8425
|
O && (O.style.height = `${T}px`);
|
8426
|
-
},
|
8426
|
+
}, S = () => {
|
8427
8427
|
const T = parseInt(h.current.style.height, 10);
|
8428
8428
|
let O = h.current.scrollHeight || 0;
|
8429
8429
|
O < T || T > $r || (O < Br && (O = Br), O > $r && (O = $r), A(O));
|
8430
8430
|
};
|
8431
8431
|
U(() => {
|
8432
8432
|
C(g);
|
8433
|
-
}, [g]), vr(
|
8433
|
+
}, [g]), vr(S, 300, [N]);
|
8434
8434
|
const I = (T) => {
|
8435
8435
|
C(T.target.value), E.onChange?.(T);
|
8436
8436
|
}, j = (T) => {
|
@@ -8439,7 +8439,7 @@ const Hx = {
|
|
8439
8439
|
T.target.value !== O && (T.stopPropagation(), T.target.value = O, E.onChange(T));
|
8440
8440
|
}
|
8441
8441
|
typeof c == "function" && c(T);
|
8442
|
-
},
|
8442
|
+
}, v = (T) => {
|
8443
8443
|
(T.key === "Enter" || T.key === "Escape") && T.stopPropagation();
|
8444
8444
|
};
|
8445
8445
|
return /* @__PURE__ */ t.jsx(
|
@@ -8479,7 +8479,7 @@ const Hx = {
|
|
8479
8479
|
value: N,
|
8480
8480
|
onChange: I,
|
8481
8481
|
onBlur: j,
|
8482
|
-
onKeyDown:
|
8482
|
+
onKeyDown: v,
|
8483
8483
|
className: `${ls[u]} ${Jc[u]} ${hr({ borderConfig: f, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8484
8484
|
ref: h,
|
8485
8485
|
style: {
|
@@ -8522,16 +8522,14 @@ const Hx = {
|
|
8522
8522
|
C.current && g && C.current.focus();
|
8523
8523
|
}, 100);
|
8524
8524
|
}, [g]);
|
8525
|
-
const A = (
|
8525
|
+
const A = (I) => {
|
8526
8526
|
if (d) {
|
8527
|
-
const
|
8528
|
-
|
8527
|
+
const j = I.target.value?.trim();
|
8528
|
+
I.target.value !== j && (I.stopPropagation(), I.target.value = j, N.onChange(I));
|
8529
8529
|
}
|
8530
|
-
c?.(
|
8531
|
-
},
|
8532
|
-
(
|
8533
|
-
}, I = (j) => {
|
8534
|
-
j.stopPropagation(), C.current.focus(), f?.onClick(j);
|
8530
|
+
c?.(I);
|
8531
|
+
}, S = (I) => {
|
8532
|
+
I.stopPropagation(), C.current.focus(), f?.onClick(I);
|
8535
8533
|
};
|
8536
8534
|
return /* @__PURE__ */ t.jsx(
|
8537
8535
|
Ko,
|
@@ -8569,7 +8567,6 @@ const Hx = {
|
|
8569
8567
|
"data-testid": e,
|
8570
8568
|
required: l,
|
8571
8569
|
onBlur: A,
|
8572
|
-
onKeyDown: v,
|
8573
8570
|
type: x,
|
8574
8571
|
ref: C,
|
8575
8572
|
className: `${ls[u]} ${Jc[u]} ${hr({ borderConfig: p, borderRadiusConfig: _ })} ${f ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
@@ -8583,7 +8580,7 @@ const Hx = {
|
|
8583
8580
|
dataTestId: `${e}-end-icon`,
|
8584
8581
|
variant: ve.borderLess,
|
8585
8582
|
size: Yx[u],
|
8586
|
-
onClick:
|
8583
|
+
onClick: S
|
8587
8584
|
}
|
8588
8585
|
) })
|
8589
8586
|
] })
|
@@ -9353,7 +9350,7 @@ const rN = (e) => Et(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), oN = ({ className:
|
|
9353
9350
|
showAnnouncementHeader: u,
|
9354
9351
|
tippyProps: m
|
9355
9352
|
}) => {
|
9356
|
-
const { loginCount: p, setLoginCount: _, showGettingStartedCard: x, setShowGettingStartedCard: g, setGettingStartedClicked: f } = Er(), { isTippyCustomized: E, tippyRedirectLink: h, TippyIcon: N, tippyMessage: C, onClickTippyButton: A, additionalContent:
|
9353
|
+
const { loginCount: p, setLoginCount: _, showGettingStartedCard: x, setShowGettingStartedCard: g, setGettingStartedClicked: f } = Er(), { isTippyCustomized: E, tippyRedirectLink: h, TippyIcon: N, tippyMessage: C, onClickTippyButton: A, additionalContent: S } = m || {}, [I, j] = R(!1), [v, T] = R(!1), { email: O } = Jd(), [b, y] = R(
|
9357
9354
|
{
|
9358
9355
|
serverInfo: void 0,
|
9359
9356
|
fetchingServerInfo: !1
|
@@ -9378,9 +9375,9 @@ const rN = (e) => Et(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), oN = ({ className:
|
|
9378
9375
|
const G = ($) => {
|
9379
9376
|
g(!1), $ && _(+$);
|
9380
9377
|
}, Z = () => {
|
9381
|
-
T(!
|
9378
|
+
T(!v), I && j(!1), Ga("clickedOkay", 1), G();
|
9382
9379
|
}, ee = async () => {
|
9383
|
-
!window._env_.K8S_CLIENT && b.serverInfo?.installationType !== Ha.ENTERPRISE && await B(), j(!I),
|
9380
|
+
!window._env_.K8S_CLIENT && b.serverInfo?.installationType !== Ha.ENTERPRISE && await B(), j(!I), v && T(!1), Ga("clickedOkay", 1), G(), await No(to.HELP), fs.event({
|
9384
9381
|
category: "Main Navigation",
|
9385
9382
|
action: "Help Clicked"
|
9386
9383
|
});
|
@@ -9435,7 +9432,7 @@ const rN = (e) => Et(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), oN = ({ className:
|
|
9435
9432
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
9436
9433
|
documentationLink: h,
|
9437
9434
|
documentationLinkText: "Learn More",
|
9438
|
-
additionalContent:
|
9435
|
+
additionalContent: S,
|
9439
9436
|
children: N && /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(N, { className: "icon-dim-20 ml- cursor fcn-5" }) })
|
9440
9437
|
}
|
9441
9438
|
) : /* @__PURE__ */ t.jsx(
|
@@ -9493,13 +9490,13 @@ const rN = (e) => Et(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), oN = ({ className:
|
|
9493
9490
|
loginCount: p
|
9494
9491
|
}
|
9495
9492
|
),
|
9496
|
-
|
9493
|
+
v && /* @__PURE__ */ t.jsx(
|
9497
9494
|
tN,
|
9498
9495
|
{
|
9499
9496
|
className: "logout-card__more-option",
|
9500
9497
|
userFirstLetter: O,
|
9501
9498
|
setShowLogOutCard: T,
|
9502
|
-
showLogOutCard:
|
9499
|
+
showLogOutCard: v
|
9503
9500
|
}
|
9504
9501
|
),
|
9505
9502
|
!n && /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-12", children: [
|
@@ -10546,8 +10543,8 @@ const DN = (e, s) => {
|
|
10546
10543
|
const d = e === kt.WEBHOOK, u = e === kt.BranchRegex || !!o || i, [m, p] = R(""), [_, x] = R(""), [g, f] = R(!!d), E = () => {
|
10547
10544
|
if (d) {
|
10548
10545
|
const A = JSON.parse(s);
|
10549
|
-
Hi(A.eventId).then((
|
10550
|
-
const I =
|
10546
|
+
Hi(A.eventId).then((S) => {
|
10547
|
+
const I = S.result;
|
10551
10548
|
p(I.name), x(
|
10552
10549
|
El(
|
10553
10550
|
I.name,
|
@@ -10555,8 +10552,8 @@ const DN = (e, s) => {
|
|
10555
10552
|
I.selectors
|
10556
10553
|
)
|
10557
10554
|
), f(!1);
|
10558
|
-
}).catch((
|
10559
|
-
throw
|
10555
|
+
}).catch((S) => {
|
10556
|
+
throw S;
|
10560
10557
|
});
|
10561
10558
|
} else
|
10562
10559
|
p(s), x(s);
|
@@ -10577,10 +10574,10 @@ const DN = (e, s) => {
|
|
10577
10574
|
function N() {
|
10578
10575
|
if (!d)
|
10579
10576
|
return;
|
10580
|
-
const A = JSON.parse(s),
|
10581
|
-
Hi(
|
10582
|
-
const
|
10583
|
-
p(
|
10577
|
+
const A = JSON.parse(s), S = A.eventId, I = A.condition;
|
10578
|
+
Hi(S).then((j) => {
|
10579
|
+
const v = j.result;
|
10580
|
+
p(v.name), x(El(v.name, I, v.selectors)), f(!1);
|
10584
10581
|
}).catch((j) => {
|
10585
10582
|
throw j;
|
10586
10583
|
});
|
@@ -10867,9 +10864,9 @@ const DN = (e, s) => {
|
|
10867
10864
|
namespace: g,
|
10868
10865
|
workflowExecutionStages: f
|
10869
10866
|
}) => {
|
10870
|
-
const { path: E, params: h } = Yt(), { pathname: N } = Ss(), C = N.split("/").pop(), { envId: A, ...
|
10867
|
+
const { path: E, params: h } = Yt(), { pathname: N } = Ss(), C = N.split("/").pop(), { envId: A, ...S } = gt(), I = c === Oe.CD || c === Oe.GROUP_CD, j = I ? "triggerId" : "buildId", v = _ === p?.id, T = q(null), O = () => {
|
10871
10868
|
const B = {
|
10872
|
-
...
|
10869
|
+
...S,
|
10873
10870
|
envId: A,
|
10874
10871
|
[j]: e
|
10875
10872
|
};
|
@@ -10954,7 +10951,7 @@ const DN = (e, s) => {
|
|
10954
10951
|
/* @__PURE__ */ t.jsx("div", { className: "cn-7 fs-12 dc__truncate", children: a === 1 ? "auto trigger" : r })
|
10955
10952
|
] })
|
10956
10953
|
] }),
|
10957
|
-
p && m && m(p,
|
10954
|
+
p && m && m(p, v)
|
10958
10955
|
] })
|
10959
10956
|
] })
|
10960
10957
|
}
|
@@ -10975,8 +10972,8 @@ const DN = (e, s) => {
|
|
10975
10972
|
renderRunSource: c,
|
10976
10973
|
resourceId: d
|
10977
10974
|
}) => {
|
10978
|
-
const { pipelineId: u, appId: m, envId: p } = gt(), { push: _ } = Vs(), { path: x } = Yt(), g = (
|
10979
|
-
e === Oe.CI ? (r({ offset: 0, size: 20 }), _(Ds(x, { appId: m, pipelineId:
|
10975
|
+
const { pipelineId: u, appId: m, envId: p } = gt(), { push: _ } = Vs(), { path: x } = Yt(), g = (S) => {
|
10976
|
+
e === Oe.CI ? (r({ offset: 0, size: 20 }), _(Ds(x, { appId: m, pipelineId: S.value }))) : e === Oe.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Ds(x, { envId: p, pipelineId: S.pipelineId }))) : e === Oe.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Ds(x, { envId: p, appId: S.value, pipelineId: S.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Ds(x, { appId: m, envId: S.value, pipelineId: S.pipelineId })));
|
10980
10977
|
}, f = () => {
|
10981
10978
|
fs.event({
|
10982
10979
|
category: "pagination",
|
@@ -10984,18 +10981,18 @@ const DN = (e, s) => {
|
|
10984
10981
|
label: `${e.toLowerCase()}-history`,
|
10985
10982
|
value: n.size
|
10986
10983
|
}), r({ offset: n.size, size: 20 });
|
10987
|
-
}, E = () => e === Oe.CI || e === Oe.GROUP_CI ? u : e === Oe.GROUP_CD ? m : p, h = s?.find((
|
10988
|
-
s?.sort((
|
10989
|
-
const N = s?.filter((
|
10984
|
+
}, E = () => e === Oe.CI || e === Oe.GROUP_CI ? u : e === Oe.GROUP_CD ? m : p, h = s?.find((S) => S.value === E()) ?? null;
|
10985
|
+
s?.sort((S, I) => S.label > I.label ? 1 : -1);
|
10986
|
+
const N = s?.filter((S) => !S.deploymentAppDeleteRequest), C = () => e === Oe.GROUP_CI || e === Oe.GROUP_CD ? Fr.APPLICATION : e === Oe.CI ? Fr.PIPELINE : Fr.ENVIRONMENT, A = (S) => (S.selectProps.styles.option = _h(), /* @__PURE__ */ t.jsx(Ue.Option, { ...S, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10990
10987
|
(e === Oe.CI || e === Oe.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
10991
10988
|
jt,
|
10992
10989
|
{
|
10993
|
-
name:
|
10990
|
+
name: S.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
|
10994
10991
|
size: 20,
|
10995
10992
|
color: null
|
10996
10993
|
}
|
10997
10994
|
),
|
10998
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
10995
|
+
/* @__PURE__ */ t.jsx("span", { children: S.label })
|
10999
10996
|
] }) }));
|
11000
10997
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
11001
10998
|
l || /* @__PURE__ */ t.jsxs("div", { className: "select-pipeline-wrapper w-100 pl-16 pr-16 dc__overflow-hidden dc__border-bottom-n1", children: [
|
@@ -11031,11 +11028,11 @@ const DN = (e, s) => {
|
|
11031
11028
|
] }),
|
11032
11029
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
11033
11030
|
o === ms.SUCCESS && /* @__PURE__ */ t.jsx(JN, { handleViewAllHistory: i }),
|
11034
|
-
Array.from(n).sort(([
|
11031
|
+
Array.from(n).sort(([S], [I]) => I - S).map(([S, I], j) => /* @__PURE__ */ t.jsx(
|
11035
11032
|
ZN,
|
11036
11033
|
{
|
11037
11034
|
dataTestId: `deployment-history-${j}`,
|
11038
|
-
id:
|
11035
|
+
id: S,
|
11039
11036
|
status: I.status,
|
11040
11037
|
startedOn: I.startedOn,
|
11041
11038
|
triggeredBy: I.triggeredBy,
|
@@ -11052,7 +11049,7 @@ const DN = (e, s) => {
|
|
11052
11049
|
podName: I.podName,
|
11053
11050
|
namespace: I.namespace
|
11054
11051
|
},
|
11055
|
-
|
11052
|
+
S
|
11056
11053
|
)),
|
11057
11054
|
a && (o === ms.SUSPEND || !o) && /* @__PURE__ */ t.jsx(iu, { callback: f })
|
11058
11055
|
] })
|
@@ -11200,100 +11197,100 @@ const DN = (e, s) => {
|
|
11200
11197
|
} else r?.isValid && !r.isValid(e) && n.push(r.message);
|
11201
11198
|
return n.length ? n : null;
|
11202
11199
|
}, ky = (e) => {
|
11203
|
-
const s = q(e?.initialValues || {}), [n, a] = R(s.current), [r, o] = R({}), [i, l] = R({}), [c, d] = R({}), [u, m] = R({}), p = (
|
11204
|
-
const I = p(
|
11205
|
-
return Object.keys(I || {}).forEach((
|
11206
|
-
const T = I[
|
11207
|
-
O && (j[
|
11200
|
+
const s = q(e?.initialValues || {}), [n, a] = R(s.current), [r, o] = R({}), [i, l] = R({}), [c, d] = R({}), [u, m] = R({}), p = (S = n) => e?.validations ? typeof e.validations == "function" ? e.validations(S) : e.validations : {}, _ = (S) => {
|
11201
|
+
const I = p(S), j = {};
|
11202
|
+
return Object.keys(I || {}).forEach((v) => {
|
11203
|
+
const T = I[v], O = Cn(S[v], T);
|
11204
|
+
O && (j[v] = O);
|
11208
11205
|
}), j;
|
11209
|
-
}, x = (
|
11206
|
+
}, x = (S, I) => (j) => {
|
11210
11207
|
j?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((T, O) => ({ ...T, [O]: !0 }), {}));
|
11211
|
-
const
|
11212
|
-
if (Object.keys(
|
11213
|
-
d(
|
11208
|
+
const v = _(n);
|
11209
|
+
if (Object.keys(v).length) {
|
11210
|
+
d(v), I?.(v, j);
|
11214
11211
|
return;
|
11215
11212
|
}
|
11216
|
-
d({}),
|
11213
|
+
d({}), S(n, j);
|
11217
11214
|
};
|
11218
11215
|
U(() => {
|
11219
11216
|
e?.shouldValidateOnMount && x(lt)();
|
11220
11217
|
}, []);
|
11221
|
-
const g = (
|
11222
|
-
const T = j ?
|
11218
|
+
const g = (S, I, j) => (v) => {
|
11219
|
+
const T = j ? v : v.target.value, O = I ? I(T) : T;
|
11223
11220
|
a((y) => {
|
11224
|
-
const L = { ...y, [
|
11225
|
-
if (k === "onChange" || k === "all" || u[
|
11226
|
-
const B = p(L), G = Cn(O, B[
|
11227
|
-
d({ ...c, [
|
11221
|
+
const L = { ...y, [S]: O }, k = e?.validationMode ?? "onChange";
|
11222
|
+
if (k === "onChange" || k === "all" || u[S] || c[S]) {
|
11223
|
+
const B = p(L), G = Cn(O, B[S]);
|
11224
|
+
d({ ...c, [S]: G });
|
11228
11225
|
}
|
11229
11226
|
return L;
|
11230
11227
|
});
|
11231
11228
|
const b = s.current;
|
11232
|
-
o((y) => ({ ...y, [
|
11233
|
-
}, f = (
|
11234
|
-
if (I || a({ ...n, [
|
11235
|
-
const
|
11236
|
-
T && !u[
|
11237
|
-
}
|
11238
|
-
}, E = (
|
11239
|
-
l((I) => ({ ...I, [
|
11229
|
+
o((y) => ({ ...y, [S]: !Pn(b[S], O) }));
|
11230
|
+
}, f = (S, I) => () => {
|
11231
|
+
if (I || a({ ...n, [S]: n[S]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
11232
|
+
const v = p(), T = Cn(n[S], v[S]);
|
11233
|
+
T && !u[S] && m({ ...u, [S]: !0 }), d({ ...c, [S]: T });
|
11234
|
+
}
|
11235
|
+
}, E = (S) => () => {
|
11236
|
+
l((I) => ({ ...I, [S]: !0 }));
|
11240
11237
|
};
|
11241
11238
|
return {
|
11242
11239
|
/** The current form data. */
|
11243
11240
|
data: n,
|
11244
11241
|
/** An object containing validation errors for each form field. */
|
11245
11242
|
errors: c,
|
11246
|
-
register: (
|
11247
|
-
onChange: g(
|
11248
|
-
onBlur: f(
|
11249
|
-
onFocus: E(
|
11250
|
-
name:
|
11243
|
+
register: (S, I) => ({
|
11244
|
+
onChange: g(S, I?.sanitizeFn, I?.isCustomComponent),
|
11245
|
+
onBlur: f(S, I?.noTrim),
|
11246
|
+
onFocus: E(S),
|
11247
|
+
name: S
|
11251
11248
|
}),
|
11252
11249
|
handleSubmit: x,
|
11253
|
-
trigger: (
|
11250
|
+
trigger: (S) => {
|
11254
11251
|
const I = p();
|
11255
|
-
if (Array.isArray(
|
11256
|
-
const j = {},
|
11252
|
+
if (Array.isArray(S)) {
|
11253
|
+
const j = {}, v = S.map((T) => {
|
11257
11254
|
if (I) {
|
11258
11255
|
const O = I[T], b = Cn(n[T], O);
|
11259
11256
|
return j[T] = b, b;
|
11260
11257
|
}
|
11261
11258
|
return null;
|
11262
11259
|
});
|
11263
|
-
return Object.keys(j).length && d({ ...c, ...j }),
|
11260
|
+
return Object.keys(j).length && d({ ...c, ...j }), v;
|
11264
11261
|
}
|
11265
11262
|
if (I) {
|
11266
|
-
const j = I[
|
11267
|
-
return
|
11263
|
+
const j = I[S], v = Cn(n[S], j);
|
11264
|
+
return v && d({ ...c, [S]: v }), v;
|
11268
11265
|
}
|
11269
11266
|
return null;
|
11270
11267
|
},
|
11271
|
-
setValue: (
|
11272
|
-
if (a((
|
11273
|
-
const
|
11274
|
-
o((T) => ({ ...T, [
|
11268
|
+
setValue: (S, I, j) => {
|
11269
|
+
if (a((v) => ({ ...v, [S]: I })), j?.shouldDirty) {
|
11270
|
+
const v = s.current;
|
11271
|
+
o((T) => ({ ...T, [S]: !Pn(v[S], I) }));
|
11275
11272
|
}
|
11276
|
-
j?.shouldTouch && l((
|
11273
|
+
j?.shouldTouch && l((v) => ({ ...v, [S]: !0 }));
|
11277
11274
|
},
|
11278
|
-
reset: (
|
11275
|
+
reset: (S, I) => {
|
11279
11276
|
const {
|
11280
11277
|
keepDirty: j = !1,
|
11281
|
-
keepTouched:
|
11278
|
+
keepTouched: v = !1,
|
11282
11279
|
keepErrors: T = !1,
|
11283
11280
|
triggerDirty: O = !1,
|
11284
11281
|
keepInitialValues: b = !1
|
11285
11282
|
} = I ?? {};
|
11286
|
-
if (a(
|
11287
|
-
const y = s.current, L = Object.keys(
|
11283
|
+
if (a(S), b || (s.current = S), T || d({}), O) {
|
11284
|
+
const y = s.current, L = Object.keys(S).reduce(
|
11288
11285
|
(k, B) => ({
|
11289
11286
|
...k,
|
11290
|
-
[B]: !Pn(
|
11287
|
+
[B]: !Pn(S[B], y[B])
|
11291
11288
|
}),
|
11292
11289
|
{}
|
11293
11290
|
);
|
11294
11291
|
o(L);
|
11295
11292
|
} else j || o({});
|
11296
|
-
|
11293
|
+
v || l({});
|
11297
11294
|
},
|
11298
11295
|
/** An object representing additional form state. */
|
11299
11296
|
formState: {
|
@@ -11302,7 +11299,7 @@ const DN = (e, s) => {
|
|
11302
11299
|
/** An object indicating which fields have been modified. */
|
11303
11300
|
dirtyFields: r,
|
11304
11301
|
/** A boolean indicating if any field has been modified. */
|
11305
|
-
isDirty: Object.values(r).some((
|
11302
|
+
isDirty: Object.values(r).some((S) => S)
|
11306
11303
|
},
|
11307
11304
|
getErrorsFromFormData: _
|
11308
11305
|
};
|
@@ -11770,7 +11767,7 @@ const My = (e, s, n) => oe(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11770
11767
|
}, bC = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
11771
11768
|
const { pipelineId: r, envId: o, appId: i } = gt(), l = n === Oe.CI ? `${La}/${V.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${La}/${V.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [c, d, u] = CC(
|
11772
11769
|
e.podStatus && e.podStatus !== Vr.PENDING && l
|
11773
|
-
), [m, p] = R([]), [_, x] = R([]), [g, f] = R(0), [E, h] = R([]), { searchKey: N, handleSearch: C } = _d(), A = _.length > 0,
|
11770
|
+
), [m, p] = R([]), [_, x] = R([]), [g, f] = R(0), [E, h] = R([]), { searchKey: N, handleSearch: C } = _d(), A = _.length > 0, S = J(() => m.every((H) => H.isOpen), [m]), I = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: j, unregisterShortcut: v } = Jn(), T = c[0]?.startsWith(gl) || !1;
|
11774
11771
|
function O({
|
11775
11772
|
log: H,
|
11776
11773
|
currentIndex: $ = -1,
|
@@ -11881,12 +11878,12 @@ const My = (e, s, n) => oe(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11881
11878
|
p(
|
11882
11879
|
(H) => H.map(($) => ({
|
11883
11880
|
...$,
|
11884
|
-
isOpen: !
|
11881
|
+
isOpen: !S
|
11885
11882
|
}))
|
11886
11883
|
);
|
11887
|
-
}, [
|
11884
|
+
}, [S]);
|
11888
11885
|
U(() => (j({ callback: k, keys: ["E"] }), () => {
|
11889
|
-
|
11886
|
+
v(["E"]);
|
11890
11887
|
}), [k]);
|
11891
11888
|
const B = (H, $ = N) => {
|
11892
11889
|
if (_.length > 0 || H === "reset") {
|
@@ -11985,7 +11982,7 @@ const My = (e, s, n) => oe(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11985
11982
|
className: "dc__unset-button-styles px-10 flex dc__bg-n0--opacity-0_2",
|
11986
11983
|
onClick: k,
|
11987
11984
|
"aria-label": I,
|
11988
|
-
children:
|
11985
|
+
children: S ? /* @__PURE__ */ t.jsx(sp, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" }) : /* @__PURE__ */ t.jsx(tp, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" })
|
11989
11986
|
}
|
11990
11987
|
)
|
11991
11988
|
}
|
@@ -12795,8 +12792,8 @@ const wC = ({
|
|
12795
12792
|
), f = q(i), E = f.current && l ? l() : ol(), [h, N] = R(E), C = () => {
|
12796
12793
|
ha && clearTimeout(ha);
|
12797
12794
|
}, A = () => {
|
12798
|
-
mC(m, p, !0, _, n, a).then((
|
12799
|
-
e !== "Aborted" && v
|
12795
|
+
mC(m, p, !0, _, n, a).then((v) => {
|
12796
|
+
e !== "Aborted" && S(v.result);
|
12800
12797
|
}).catch(() => {
|
12801
12798
|
g(!1);
|
12802
12799
|
}).finally(() => {
|
@@ -12808,8 +12805,8 @@ const wC = ({
|
|
12808
12805
|
}), [a]), U(() => {
|
12809
12806
|
f.current = i;
|
12810
12807
|
}, [i]);
|
12811
|
-
const
|
12812
|
-
const T = f.current && l ? l(
|
12808
|
+
const S = (v) => {
|
12809
|
+
const T = f.current && l ? l(v) : ol(v);
|
12813
12810
|
C(), T.deploymentStatus === me.INPROGRESS ? ha = setTimeout(() => {
|
12814
12811
|
A();
|
12815
12812
|
}, 1e4) : ha = setTimeout(() => {
|
@@ -13021,14 +13018,14 @@ const mu = {
|
|
13021
13018
|
({ items: C, ...A }) => ({
|
13022
13019
|
...A,
|
13023
13020
|
isExpanded: m[A.id],
|
13024
|
-
items: C.map(({ diffState:
|
13021
|
+
items: C.map(({ diffState: S, ...I }) => ({
|
13025
13022
|
...I,
|
13026
|
-
strikeThrough: d &&
|
13027
|
-
...!u &&
|
13023
|
+
strikeThrough: d && S === At.DELETED,
|
13024
|
+
...!u && S !== At.NO_DIFF ? {
|
13028
13025
|
iconConfig: {
|
13029
|
-
Icon: d ? yn[
|
13026
|
+
Icon: d ? yn[S] : yn.hasDiff,
|
13030
13027
|
tooltipProps: {
|
13031
|
-
content: d ? ga[
|
13028
|
+
content: d ? ga[S] : ga.hasDiff,
|
13032
13029
|
arrow: !1,
|
13033
13030
|
placement: "right"
|
13034
13031
|
}
|
@@ -13054,19 +13051,19 @@ const mu = {
|
|
13054
13051
|
onChange: g,
|
13055
13052
|
disabled: e,
|
13056
13053
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
13057
|
-
children: C.map((
|
13054
|
+
children: C.map((S) => /* @__PURE__ */ t.jsx(Ct.Radio, { value: S, className: "fs-12 lh-20 cn-7 fw-6", children: S }, S))
|
13058
13055
|
}
|
13059
13056
|
) });
|
13060
13057
|
}, h = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13061
|
-
n.map(({ title: C, href: A, onClick:
|
13062
|
-
const
|
13058
|
+
n.map(({ title: C, href: A, onClick: S, diffState: I, Icon: j }) => {
|
13059
|
+
const v = d ? yn[I] : yn.hasDiff;
|
13063
13060
|
return /* @__PURE__ */ t.jsxs(
|
13064
13061
|
dt,
|
13065
13062
|
{
|
13066
13063
|
"data-testid": "env-deployment-template",
|
13067
13064
|
className: "dc__nav-item cursor dc__gap-8 fs-13 lh-32 cn-7 w-100 br-4 px-8 flexbox dc__align-items-center dc__no-decor",
|
13068
13065
|
to: A,
|
13069
|
-
onClick:
|
13066
|
+
onClick: S,
|
13070
13067
|
children: [
|
13071
13068
|
j && /* @__PURE__ */ t.jsx(j, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
13072
13069
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children: C }),
|
@@ -13077,7 +13074,7 @@ const mu = {
|
|
13077
13074
|
content: d ? ga[I] : ga.hasDiff,
|
13078
13075
|
arrow: !1,
|
13079
13076
|
placement: "right",
|
13080
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
13077
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(v, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
13081
13078
|
}
|
13082
13079
|
)
|
13083
13080
|
]
|
@@ -13768,11 +13765,11 @@ const mu = {
|
|
13768
13765
|
},
|
13769
13766
|
diffState: va(E, h)
|
13770
13767
|
};
|
13771
|
-
let C, A,
|
13768
|
+
let C, A, S;
|
13772
13769
|
(g.pipelineConfigData || f.pipelineConfigData) && (C = wl(g.pipelineConfigData, l), A = wl(
|
13773
13770
|
f.pipelineConfigData,
|
13774
13771
|
l
|
13775
|
-
),
|
13772
|
+
), S = {
|
13776
13773
|
id: tt.PipelineStrategy,
|
13777
13774
|
pathType: tt.PipelineStrategy,
|
13778
13775
|
title: "Pipeline Configuration",
|
@@ -13802,9 +13799,9 @@ const mu = {
|
|
13802
13799
|
f.isAppAdmin,
|
13803
13800
|
r,
|
13804
13801
|
l
|
13805
|
-
),
|
13802
|
+
), v = [
|
13806
13803
|
N,
|
13807
|
-
...
|
13804
|
+
...S ? [S] : [],
|
13808
13805
|
...I,
|
13809
13806
|
...j
|
13810
13807
|
], T = [
|
@@ -13817,13 +13814,13 @@ const mu = {
|
|
13817
13814
|
},
|
13818
13815
|
Icon: Qr
|
13819
13816
|
},
|
13820
|
-
...
|
13817
|
+
...S ? [
|
13821
13818
|
{
|
13822
|
-
title:
|
13823
|
-
diffState:
|
13819
|
+
title: S.title,
|
13820
|
+
diffState: S.diffState,
|
13824
13821
|
href: n(tt.PipelineStrategy, null),
|
13825
13822
|
onClick: () => {
|
13826
|
-
document.querySelector(`#${
|
13823
|
+
document.querySelector(`#${S.id}`)?.scrollIntoView({ block: "start" });
|
13827
13824
|
},
|
13828
13825
|
Icon: Qr
|
13829
13826
|
}
|
@@ -13857,7 +13854,7 @@ const mu = {
|
|
13857
13854
|
}
|
13858
13855
|
];
|
13859
13856
|
return {
|
13860
|
-
configList:
|
13857
|
+
configList: v,
|
13861
13858
|
collapsibleNavList: O,
|
13862
13859
|
navList: T
|
13863
13860
|
};
|
@@ -13981,13 +13978,13 @@ const mu = {
|
|
13981
13978
|
typeof C.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
|
13982
13979
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
13983
13980
|
] }, C.id);
|
13984
|
-
const { selectPickerProps:
|
13981
|
+
const { selectPickerProps: S } = C;
|
13985
13982
|
return /* @__PURE__ */ t.jsxs(Ms, { children: [
|
13986
13983
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
13987
13984
|
Gt,
|
13988
13985
|
{
|
13989
|
-
...
|
13990
|
-
isDisabled: e ||
|
13986
|
+
...S,
|
13987
|
+
isDisabled: e || S?.isDisabled
|
13991
13988
|
}
|
13992
13989
|
) }),
|
13993
13990
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
@@ -14031,13 +14028,13 @@ const mu = {
|
|
14031
14028
|
);
|
14032
14029
|
}
|
14033
14030
|
return null;
|
14034
|
-
}, E = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title:
|
14035
|
-
const { heading:
|
14031
|
+
}, E = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title: S, diffState: I, singleView: j }) => {
|
14032
|
+
const { heading: v, list: T } = C, { heading: O, list: b } = A;
|
14036
14033
|
return /* @__PURE__ */ t.jsx(
|
14037
14034
|
UC,
|
14038
14035
|
{
|
14039
14036
|
id: N,
|
14040
|
-
title:
|
14037
|
+
title: S,
|
14041
14038
|
isExpanded: u[N],
|
14042
14039
|
diffState: I,
|
14043
14040
|
onClick: p(N),
|
@@ -14050,7 +14047,7 @@ const mu = {
|
|
14050
14047
|
oldValue: T.codeEditorValue.value,
|
14051
14048
|
newValue: b.codeEditorValue.value,
|
14052
14049
|
...T.codeEditorValue.value !== b.codeEditorValue.value && {
|
14053
|
-
leftTitle:
|
14050
|
+
leftTitle: v,
|
14054
14051
|
rightTitle: O
|
14055
14052
|
},
|
14056
14053
|
codeFoldMessageRenderer: fu(
|
@@ -14059,8 +14056,8 @@ const mu = {
|
|
14059
14056
|
)
|
14060
14057
|
}
|
14061
14058
|
) : /* @__PURE__ */ t.jsxs("div", { className: "p-16", children: [
|
14062
|
-
|
14063
|
-
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children:
|
14059
|
+
v && O && /* @__PURE__ */ t.jsxs("div", { className: "bcn-1 deployment-diff__upper dc__top-radius-4 dc__border-right dc__border-left dc__border-top", children: [
|
14060
|
+
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children: v }),
|
14064
14061
|
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children: O })
|
14065
14062
|
] }),
|
14066
14063
|
/* @__PURE__ */ t.jsx(
|
@@ -14070,12 +14067,12 @@ const mu = {
|
|
14070
14067
|
baseTemplateConfiguration: b,
|
14071
14068
|
currentConfiguration: T,
|
14072
14069
|
previousConfigAvailable: !0,
|
14073
|
-
rootClassName: `${
|
14070
|
+
rootClassName: `${v && O ? "dc__no-top-radius dc__no-top-border" : ""}`
|
14074
14071
|
}
|
14075
14072
|
)
|
14076
14073
|
] })
|
14077
14074
|
},
|
14078
|
-
`${N}-${
|
14075
|
+
`${N}-${S}`
|
14079
14076
|
);
|
14080
14077
|
}), h = () => e ? /* @__PURE__ */ t.jsx(Be, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
14081
14078
|
br,
|
@@ -14254,12 +14251,12 @@ const mu = {
|
|
14254
14251
|
isCompareDeploymentConfigNotAvailable: u,
|
14255
14252
|
...m
|
14256
14253
|
}) => {
|
14257
|
-
const { path: p, params: _ } = Yt(), { resourceType: x, resourceName: g, appId: f, envId: E } = _, { compareWfrId: h, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting:
|
14254
|
+
const { path: p, params: _ } = Yt(), { resourceType: x, resourceName: g, appId: f, envId: E } = _, { compareWfrId: h, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting: S } = r, [I, j] = R({
|
14258
14255
|
isLoading: !1,
|
14259
14256
|
data: l,
|
14260
14257
|
hasMore: l.size >= Js
|
14261
|
-
}), [
|
14262
|
-
U(() => (N({ compareWfrId: h }), s(!0), C !== Hr &&
|
14258
|
+
}), [v, T] = R(n);
|
14259
|
+
U(() => (N({ compareWfrId: h }), s(!0), C !== Hr && S(Hr), () => {
|
14263
14260
|
i(!1), s(!1);
|
14264
14261
|
}), []);
|
14265
14262
|
const O = async ($) => {
|
@@ -14290,7 +14287,7 @@ const mu = {
|
|
14290
14287
|
fullWidth: !0
|
14291
14288
|
}
|
14292
14289
|
) }) : null, { currentDeployment: L, pipelineDeploymentsOptions: k } = eb({
|
14293
|
-
pipelineDeployments:
|
14290
|
+
pipelineDeployments: v,
|
14294
14291
|
wfrId: a,
|
14295
14292
|
triggerHistory: I.data,
|
14296
14293
|
renderRunSource: c,
|
@@ -14331,7 +14328,7 @@ const mu = {
|
|
14331
14328
|
}
|
14332
14329
|
]
|
14333
14330
|
}, ae = () => G ? u ? `Diff unavailable: Configurations for deployment execution ‘${B?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${B?.label || "N/A"} & ${L}` : null, ye = {
|
14334
|
-
handleSorting: () =>
|
14331
|
+
handleSorting: () => S(A !== fe.DESC ? Hr : ""),
|
14335
14332
|
sortBy: C,
|
14336
14333
|
sortOrder: A
|
14337
14334
|
}, H = {
|
@@ -14369,7 +14366,7 @@ const mu = {
|
|
14369
14366
|
[_, a]
|
14370
14367
|
), f = !!g, E = _d({
|
14371
14368
|
parseSearchParams: tb(g)
|
14372
|
-
}), { compareWfrId: h, sortBy: N, sortOrder: C } = E, [A,
|
14369
|
+
}), { compareWfrId: h, sortBy: N, sortOrder: C } = E, [A, S] = R(!1), [I, j, , v] = Ut(async () => {
|
14373
14370
|
const Z = [
|
14374
14371
|
{
|
14375
14372
|
appName: e,
|
@@ -14425,7 +14422,7 @@ const mu = {
|
|
14425
14422
|
), L = j && Ml(j[1]), k = !f || L, B = I || !b && !O, G = {
|
14426
14423
|
code: b?.code,
|
14427
14424
|
error: b && !I,
|
14428
|
-
reload:
|
14425
|
+
reload: v
|
14429
14426
|
};
|
14430
14427
|
return j && Ml(j[0]) ? /* @__PURE__ */ t.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ t.jsx(
|
14431
14428
|
Xe,
|
@@ -14446,7 +14443,7 @@ const mu = {
|
|
14446
14443
|
pipelineDeployments: _,
|
14447
14444
|
setFullScreenView: o,
|
14448
14445
|
convertVariables: A,
|
14449
|
-
setConvertVariables:
|
14446
|
+
setConvertVariables: S,
|
14450
14447
|
triggerHistory: r,
|
14451
14448
|
resourceId: i,
|
14452
14449
|
renderRunSource: l,
|
@@ -14757,7 +14754,7 @@ const mu = {
|
|
14757
14754
|
N()
|
14758
14755
|
] }),
|
14759
14756
|
_()
|
14760
|
-
] }),
|
14757
|
+
] }), S = () => {
|
14761
14758
|
if (!d) return null;
|
14762
14759
|
const I = u.eventactiontype === ib.MERGED;
|
14763
14760
|
return r.includes(ct.GITLAB) ? I ? A() : C() : I ? C() : A();
|
@@ -14831,7 +14828,7 @@ const mu = {
|
|
14831
14828
|
] }) : null
|
14832
14829
|
] })
|
14833
14830
|
] }),
|
14834
|
-
|
14831
|
+
S()
|
14835
14832
|
] })
|
14836
14833
|
] });
|
14837
14834
|
}, Vy = ({
|
@@ -14920,8 +14917,8 @@ const mu = {
|
|
14920
14917
|
const N = Pa(n);
|
14921
14918
|
return /* @__PURE__ */ t.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
|
14922
14919
|
s?.map((C, A) => {
|
14923
|
-
const
|
14924
|
-
return
|
14920
|
+
const S = e[C.id];
|
14921
|
+
return S && (S.Commit || S.WebhookData?.data) ? /* @__PURE__ */ t.jsx(
|
14925
14922
|
"div",
|
14926
14923
|
{
|
14927
14924
|
className: "bg__primary br-4 en-2 bw-1",
|
@@ -14931,16 +14928,16 @@ const mu = {
|
|
14931
14928
|
gu,
|
14932
14929
|
{
|
14933
14930
|
index: A,
|
14934
|
-
materialUrl:
|
14931
|
+
materialUrl: S?.GitRepoUrl ? S.GitRepoUrl : C?.url,
|
14935
14932
|
showMaterialInfoHeader: !0,
|
14936
|
-
commitInfo:
|
14937
|
-
materialSourceType:
|
14933
|
+
commitInfo: S,
|
14934
|
+
materialSourceType: S?.CiConfigureSourceType ? S.CiConfigureSourceType : C?.type,
|
14938
14935
|
selectedCommitInfo: "",
|
14939
|
-
materialSourceValue:
|
14936
|
+
materialSourceValue: S?.CiConfigureSourceValue ? S.CiConfigureSourceValue : C?.value
|
14940
14937
|
}
|
14941
14938
|
)
|
14942
14939
|
},
|
14943
|
-
`mat-${
|
14940
|
+
`mat-${S?.Commit}-${A}`
|
14944
14941
|
) : null;
|
14945
14942
|
}),
|
14946
14943
|
n && /* @__PURE__ */ t.jsx("div", { className: "history-component__artifact flex left column", children: /* @__PURE__ */ t.jsx(
|
@@ -15061,8 +15058,8 @@ const db = (e) => {
|
|
15061
15058
|
U(() => (d({ keys: ["Enter"], callback: N }), () => {
|
15062
15059
|
u(["Enter"]);
|
15063
15060
|
}), [g, h]);
|
15064
|
-
const A = (
|
15065
|
-
p(
|
15061
|
+
const A = (S) => {
|
15062
|
+
p(S.target.value);
|
15066
15063
|
};
|
15067
15064
|
return /* @__PURE__ */ t.jsx(pb, { onEscape: c ? C : lt, children: /* @__PURE__ */ t.jsxs(
|
15068
15065
|
rn.div,
|
@@ -15210,7 +15207,7 @@ const db = (e) => {
|
|
15210
15207
|
successToastMessage: p,
|
15211
15208
|
children: _
|
15212
15209
|
}) => {
|
15213
|
-
const [x, g] = R(!1), [f, E] = R(!1), [h, N] = R(u), [C, A] = R(o),
|
15210
|
+
const [x, g] = R(!1), [f, E] = R(!1), [h, N] = R(u), [C, A] = R(o), S = async (b) => {
|
15214
15211
|
b && he(b), A(!0);
|
15215
15212
|
try {
|
15216
15213
|
await i(), Pe.showToast({
|
@@ -15222,7 +15219,7 @@ const db = (e) => {
|
|
15222
15219
|
}
|
15223
15220
|
}, I = () => {
|
15224
15221
|
g(!1), c();
|
15225
|
-
}, j = () => E(!1),
|
15222
|
+
}, j = () => E(!1), v = () => /* @__PURE__ */ t.jsx(
|
15226
15223
|
fb,
|
15227
15224
|
{
|
15228
15225
|
title: e,
|
@@ -15252,7 +15249,7 @@ const db = (e) => {
|
|
15252
15249
|
},
|
15253
15250
|
primaryButtonConfig: {
|
15254
15251
|
text: a,
|
15255
|
-
onClick:
|
15252
|
+
onClick: S,
|
15256
15253
|
isLoading: o || C,
|
15257
15254
|
disabled: r
|
15258
15255
|
}
|
@@ -15264,7 +15261,7 @@ const db = (e) => {
|
|
15264
15261
|
);
|
15265
15262
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15266
15263
|
!x && !f && O(),
|
15267
|
-
x &&
|
15264
|
+
x && v(),
|
15268
15265
|
f && T()
|
15269
15266
|
] });
|
15270
15267
|
}, Bl = ut(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
|
@@ -15620,18 +15617,18 @@ const db = (e) => {
|
|
15620
15617
|
scrollToTop: N,
|
15621
15618
|
scrollToBottom: C,
|
15622
15619
|
fullScreenView: A,
|
15623
|
-
appName:
|
15620
|
+
appName: S,
|
15624
15621
|
triggerHistory: I,
|
15625
15622
|
targetPlatforms: j
|
15626
15623
|
}) => {
|
15627
|
-
const { path:
|
15624
|
+
const { path: v } = Yt(), { appId: T, pipelineId: O, triggerId: b, envId: y } = gt(), L = {
|
15628
15625
|
appId: T,
|
15629
15626
|
envId: y,
|
15630
15627
|
appName: `${e.helmPackageName}.tgz`,
|
15631
15628
|
workflowId: e.id
|
15632
15629
|
}, k = `app/cd-pipeline/workflow/download/${T}/${y}/${O}/${b}`;
|
15633
15630
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Be, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(uc, { children: [
|
15634
|
-
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Ls, { path: `${
|
15631
|
+
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Ls, { path: `${v}/logs`, children: [
|
15635
15632
|
/* @__PURE__ */ t.jsx(
|
15636
15633
|
bC,
|
15637
15634
|
{
|
@@ -15649,7 +15646,7 @@ const db = (e) => {
|
|
15649
15646
|
scrollToBottom: C
|
15650
15647
|
}
|
15651
15648
|
)
|
15652
|
-
] }) : /* @__PURE__ */ t.jsx(Ls, { path: `${
|
15649
|
+
] }) : /* @__PURE__ */ t.jsx(Ls, { path: `${v}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
15653
15650
|
wC,
|
15654
15651
|
{
|
15655
15652
|
deploymentStatus: e.status,
|
@@ -15662,7 +15659,7 @@ const db = (e) => {
|
|
15662
15659
|
renderDeploymentApprovalInfo: f
|
15663
15660
|
}
|
15664
15661
|
) }),
|
15665
|
-
/* @__PURE__ */ t.jsx(Ls, { path: `${
|
15662
|
+
/* @__PURE__ */ t.jsx(Ls, { path: `${v}/source-code`, children: /* @__PURE__ */ t.jsx(
|
15666
15663
|
cb,
|
15667
15664
|
{
|
15668
15665
|
gitTriggers: e.gitTriggers,
|
@@ -15685,10 +15682,10 @@ const db = (e) => {
|
|
15685
15682
|
targetPlatforms: j
|
15686
15683
|
}
|
15687
15684
|
) }),
|
15688
|
-
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Ls, { path: `${
|
15685
|
+
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Ls, { path: `${v}${Ie.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
15689
15686
|
nb,
|
15690
15687
|
{
|
15691
|
-
appName:
|
15688
|
+
appName: S,
|
15692
15689
|
envName: p,
|
15693
15690
|
pipelineId: +O,
|
15694
15691
|
wfrId: +b,
|
@@ -15698,7 +15695,7 @@ const db = (e) => {
|
|
15698
15695
|
renderRunSource: x
|
15699
15696
|
}
|
15700
15697
|
) }),
|
15701
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Ls, { path: `${
|
15698
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Ls, { path: `${v}/artifacts`, children: e.IsVirtualEnvironment && h ? h({
|
15702
15699
|
status: e.status,
|
15703
15700
|
title: e.helmPackageName,
|
15704
15701
|
params: { ...L, appId: Number(T), envId: Number(y) }
|
@@ -15725,7 +15722,7 @@ const db = (e) => {
|
|
15725
15722
|
/* @__PURE__ */ t.jsx(
|
15726
15723
|
Am,
|
15727
15724
|
{
|
15728
|
-
to: `${
|
15725
|
+
to: `${v}/${// eslint-disable-next-line no-nested-ternary
|
15729
15726
|
e.stage === "DEPLOY" ? "deployment-steps" : e.status.toLowerCase() === "succeeded" || e.IsVirtualEnvironment ? "artifacts" : "logs"}`
|
15730
15727
|
}
|
15731
15728
|
)
|
@@ -15753,14 +15750,14 @@ const db = (e) => {
|
|
15753
15750
|
resourceId: N,
|
15754
15751
|
scrollToTop: C,
|
15755
15752
|
scrollToBottom: A,
|
15756
|
-
renderTargetConfigInfo:
|
15753
|
+
renderTargetConfigInfo: S,
|
15757
15754
|
appName: I
|
15758
15755
|
}) => {
|
15759
|
-
const { appId: j, triggerId:
|
15760
|
-
() => lC({ appId: j, envId: T, pipelineId: O, triggerId:
|
15756
|
+
const { appId: j, triggerId: v, envId: T, pipelineId: O } = gt(), b = s.get(+v), [y, L, k, B] = Ut(
|
15757
|
+
() => lC({ appId: j, envId: T, pipelineId: O, triggerId: v, fetchIdData: d }),
|
15761
15758
|
// TODO: Ask if fetchIdData is required here as dependency
|
15762
|
-
[
|
15763
|
-
!!
|
15759
|
+
[v, j, T],
|
15760
|
+
!!v && !!O
|
15764
15761
|
), G = fr(b?.targetPlatforms), Z = ($, de, _e) => {
|
15765
15762
|
if (_e) {
|
15766
15763
|
p?.result?.cdWorkflows?.length && n(Yu(p.result.cdWorkflows, "id")), u(ms.SUSPEND);
|
@@ -15785,7 +15782,7 @@ const db = (e) => {
|
|
15785
15782
|
pipelineId: O,
|
15786
15783
|
artifactId: L?.result?.artifactId || b?.artifactId
|
15787
15784
|
}),
|
15788
|
-
[O,
|
15785
|
+
[O, v],
|
15789
15786
|
ee && !!O && (!!L?.result?.artifactId || !!b?.artifactId)
|
15790
15787
|
);
|
15791
15788
|
U(() => {
|
@@ -15796,7 +15793,7 @@ const db = (e) => {
|
|
15796
15793
|
imageComment: b?.imageComment,
|
15797
15794
|
imageReleaseTags: b?.imageReleaseTags
|
15798
15795
|
};
|
15799
|
-
ee && ($ = null), Z(+
|
15796
|
+
ee && ($ = null), Z(+v, $, k);
|
15800
15797
|
}, [y, L, k]), U(() => {
|
15801
15798
|
if (ae || !L || !ee)
|
15802
15799
|
return;
|
@@ -15805,16 +15802,16 @@ const db = (e) => {
|
|
15805
15802
|
imageReleaseTags: pe?.result?.imageReleaseTags,
|
15806
15803
|
imageComment: pe?.result?.imageComment
|
15807
15804
|
};
|
15808
|
-
Z(+
|
15805
|
+
Z(+v, $, ye);
|
15809
15806
|
}, [ae, pe, ye]);
|
15810
15807
|
const H = J(() => !b || gN.has(b.podStatus?.toLowerCase() || b.status?.toLowerCase()) ? null : EN.has(b.status?.toLowerCase() || b.podStatus?.toLowerCase()) ? 1e4 : 3e4, [b]);
|
15811
|
-
return Hu(B, H), !ee && y && !b || !
|
15808
|
+
return Hu(B, H), !ee && y && !b || !v || ee && (ae || y) && !b ? /* @__PURE__ */ t.jsx(Be, { pageLoader: !0 }) : k?.code === 404 ? /* @__PURE__ */ t.jsx(
|
15812
15809
|
Xe,
|
15813
15810
|
{
|
15814
15811
|
title: Ge.TRIGGER_NOT_FOUND.TITLE,
|
15815
15812
|
subTitle: Ge.TRIGGER_NOT_FOUND.SUBTITLE
|
15816
15813
|
}
|
15817
|
-
) : !ee && !y && !b ? /* @__PURE__ */ t.jsx(Yn, {}) : ee && !(ae || y) && !b ? /* @__PURE__ */ t.jsx(Yn, {}) : b?.id !== +
|
15814
|
+
) : !ee && !y && !b ? /* @__PURE__ */ t.jsx(Yn, {}) : ee && !(ae || y) && !b ? /* @__PURE__ */ t.jsx(Yn, {}) : b?.id !== +v ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15818
15815
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15819
15816
|
/* @__PURE__ */ t.jsx(
|
15820
15817
|
Cb,
|
@@ -15834,7 +15831,7 @@ const db = (e) => {
|
|
15834
15831
|
triggerMetadata: b.triggerMetadata,
|
15835
15832
|
renderDeploymentHistoryTriggerMetaText: h,
|
15836
15833
|
environmentName: m,
|
15837
|
-
renderTargetConfigInfo:
|
15834
|
+
renderTargetConfigInfo: S,
|
15838
15835
|
workflowExecutionStages: b.workflowExecutionStages,
|
15839
15836
|
namespace: b.namespace
|
15840
15837
|
}
|
@@ -16217,7 +16214,7 @@ const db = (e) => {
|
|
16217
16214
|
s(wb(e, I?.toDate()));
|
16218
16215
|
}, C = (I) => {
|
16219
16216
|
s(Lb(e, I.value).value);
|
16220
|
-
}, A = Le(),
|
16217
|
+
}, A = Le(), S = (I) => d && !I.isAfter(A);
|
16221
16218
|
return /* @__PURE__ */ t.jsxs("div", { className: "date-time-picker", children: [
|
16222
16219
|
o && /* @__PURE__ */ t.jsx("label", { className: `form__label ${i ? "dc__required-field" : ""}`, htmlFor: r, children: o }),
|
16223
16220
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
|
@@ -16241,7 +16238,7 @@ const db = (e) => {
|
|
16241
16238
|
inputIconPosition: "after",
|
16242
16239
|
displayFormat: bt.DD_MMM_YYYY,
|
16243
16240
|
"data-testid": m,
|
16244
|
-
isDayBlocked:
|
16241
|
+
isDayBlocked: S,
|
16245
16242
|
disabled: a,
|
16246
16243
|
appendToBody: !0
|
16247
16244
|
}
|
@@ -16854,14 +16851,14 @@ const tO = {
|
|
16854
16851
|
rootClassName: x = "",
|
16855
16852
|
showCardBorder: g = !1
|
16856
16853
|
}) => {
|
16857
|
-
const { appId: f } = gt(), [E, h] = R(c || []), [N, C] = R(u || 0), [A,
|
16854
|
+
const { appId: f } = gt(), [E, h] = R(c || []), [N, C] = R(u || 0), [A, S] = R(
|
16858
16855
|
p || structuredClone(Mb)
|
16859
16856
|
), I = q(new AbortController()), j = (D) => {
|
16860
16857
|
h(D), d?.(D);
|
16861
|
-
},
|
16858
|
+
}, v = (D) => {
|
16862
16859
|
C(D), m?.(D);
|
16863
16860
|
}, T = (D) => {
|
16864
|
-
|
16861
|
+
S(D), _?.(D);
|
16865
16862
|
}, { searchKey: O, selectedTags: b } = A || {}, y = () => zc(
|
16866
16863
|
() => Tu({
|
16867
16864
|
searchKey: O,
|
@@ -16890,7 +16887,7 @@ const tO = {
|
|
16890
16887
|
totalCount: Se,
|
16891
16888
|
parentPluginIdList: Ne
|
16892
16889
|
} = D;
|
16893
|
-
a($b(n, re, se)),
|
16890
|
+
a($b(n, re, se)), v(Se);
|
16894
16891
|
const K = F ? structuredClone(E) : [], Me = K.reduce(
|
16895
16892
|
(we, mt) => (we[mt.parentPluginId] = !0, we),
|
16896
16893
|
{}
|
@@ -17025,7 +17022,7 @@ const tO = {
|
|
17025
17022
|
validateDuplicateKeys: _ = !1,
|
17026
17023
|
validateEmptyKeys: x = !1
|
17027
17024
|
}) => {
|
17028
|
-
const { headers: g, rows: f } = e, E = g[0].key, h = g[1].key, [N, C] = R(f), [A,
|
17025
|
+
const { headers: g, rows: f } = e, E = g[0].key, h = g[1].key, [N, C] = R(f), [A, S] = R(!1), I = c || l, j = !c && !l || !!N.length, v = !N[0]?.data[E].value && !N[0]?.data[h].value, T = N.length === 1 && v, { sortBy: O, sortOrder: b, handleSorting: y } = gd({
|
17029
17026
|
initialSortKey: n ? E : null
|
17030
17027
|
}), L = q(), k = q();
|
17031
17028
|
L.current || (L.current = N.reduce((M, D) => ({ ...M, [D.id]: is() }), {})), k.current || (k.current = N.reduce((M, D) => ({ ...M, [D.id]: is() }), {}));
|
@@ -17082,7 +17079,7 @@ const tO = {
|
|
17082
17079
|
};
|
17083
17080
|
}, ae = () => {
|
17084
17081
|
const M = ee(), D = [M, ...N], { id: F } = M;
|
17085
|
-
p?.(!Z(D)),
|
17082
|
+
p?.(!Z(D)), S(!0), C(D), L.current = {
|
17086
17083
|
...L.current || {},
|
17087
17084
|
[F]: is()
|
17088
17085
|
}, k.current = {
|
@@ -17102,7 +17099,7 @@ const tO = {
|
|
17102
17099
|
}, [b]), U(() => {
|
17103
17100
|
const M = N[0];
|
17104
17101
|
if (M && A) {
|
17105
|
-
|
17102
|
+
S(!1);
|
17106
17103
|
const D = L.current[M.id].current && k.current[M.id].current;
|
17107
17104
|
!M.data[E].value && D && k.current[M.id].current.focus(), !M.data[h].value && D && L.current[M.id].current.focus();
|
17108
17105
|
}
|
@@ -17111,7 +17108,7 @@ const tO = {
|
|
17111
17108
|
const D = N.filter(({ id: F }) => F !== M.id);
|
17112
17109
|
if (D.length === 0 && !l) {
|
17113
17110
|
const F = ee(), { id: re } = F;
|
17114
|
-
|
17111
|
+
S(!0), p?.(!Z([F])), C([F]), L.current = {
|
17115
17112
|
[re]: is()
|
17116
17113
|
}, k.current = {
|
17117
17114
|
[re]: is()
|
@@ -17310,10 +17307,10 @@ const tO = {
|
|
17310
17307
|
const { tabClassName: f, iconClassName: E, badgeClassName: h } = Jb({
|
17311
17308
|
hideTopPadding: c,
|
17312
17309
|
alignActiveBorderWithContainer: l
|
17313
|
-
})[o], N = (
|
17314
|
-
(a ||
|
17310
|
+
})[o], N = (S) => {
|
17311
|
+
(a || S.currentTarget.classList.contains("active") || n === "navLink" && p) && S.preventDefault(), s?.onClick?.(S);
|
17315
17312
|
}, C = () => {
|
17316
|
-
const
|
17313
|
+
const S = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17317
17314
|
/* @__PURE__ */ t.jsxs("p", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
17318
17315
|
Qb({ className: E, icon: r, showError: u, showWarning: m }),
|
17319
17316
|
e,
|
@@ -17331,7 +17328,7 @@ const tO = {
|
|
17331
17328
|
"aria-disabled": p,
|
17332
17329
|
...s,
|
17333
17330
|
onClick: N,
|
17334
|
-
children:
|
17331
|
+
children: S
|
17335
17332
|
}
|
17336
17333
|
);
|
17337
17334
|
case "navLink":
|
@@ -17342,7 +17339,7 @@ const tO = {
|
|
17342
17339
|
"aria-disabled": p,
|
17343
17340
|
...s,
|
17344
17341
|
onClick: N,
|
17345
|
-
children:
|
17342
|
+
children: S
|
17346
17343
|
}
|
17347
17344
|
);
|
17348
17345
|
case "block":
|
@@ -17351,7 +17348,7 @@ const tO = {
|
|
17351
17348
|
{
|
17352
17349
|
className: `flexbox-col fw-6 ${f} ${p ? "cursor-not-allowed" : ""}`,
|
17353
17350
|
...s,
|
17354
|
-
children:
|
17351
|
+
children: S
|
17355
17352
|
}
|
17356
17353
|
);
|
17357
17354
|
default:
|
@@ -17363,7 +17360,7 @@ const tO = {
|
|
17363
17360
|
disabled: p,
|
17364
17361
|
...s,
|
17365
17362
|
onClick: N,
|
17366
|
-
children:
|
17363
|
+
children: S
|
17367
17364
|
}
|
17368
17365
|
);
|
17369
17366
|
}
|
@@ -17419,23 +17416,23 @@ const tO = {
|
|
17419
17416
|
}) => {
|
17420
17417
|
const [c, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [x, g] = R(""), f = () => {
|
17421
17418
|
m(!0);
|
17422
|
-
}, E = (
|
17423
|
-
d(
|
17424
|
-
}, h = (
|
17425
|
-
const T =
|
17419
|
+
}, E = (v) => {
|
17420
|
+
d(v);
|
17421
|
+
}, h = (v) => {
|
17422
|
+
const T = v ?? c;
|
17426
17423
|
E(T), r(T), n(""), m(!1), _(!1), g("");
|
17427
17424
|
}, N = () => {
|
17428
17425
|
h(a);
|
17429
17426
|
}, C = () => {
|
17430
17427
|
h();
|
17431
|
-
}, A = (
|
17432
|
-
const { value: T } =
|
17428
|
+
}, A = (v) => {
|
17429
|
+
const { value: T } = v.target;
|
17433
17430
|
if (r(T), !T.trim()) {
|
17434
17431
|
n("");
|
17435
17432
|
return;
|
17436
17433
|
}
|
17437
17434
|
g(""), n(xd(T, !1).message);
|
17438
|
-
},
|
17435
|
+
}, S = async () => {
|
17439
17436
|
if (!a) {
|
17440
17437
|
g(Gl), Pe.showToast({
|
17441
17438
|
variant: xe.error,
|
@@ -17452,24 +17449,24 @@ const tO = {
|
|
17452
17449
|
}
|
17453
17450
|
_(!0);
|
17454
17451
|
try {
|
17455
|
-
const
|
17456
|
-
if (!
|
17452
|
+
const v = await fetch(a, { mode: "cors" });
|
17453
|
+
if (!v.ok)
|
17457
17454
|
throw new Error("Invalid network response");
|
17458
|
-
const T = await
|
17455
|
+
const T = await v.blob();
|
17459
17456
|
if (T.size > Vl)
|
17460
17457
|
throw new Error(`Please add an image smaller than ${Vl / (1024 * 1024)} MB`);
|
17461
17458
|
const O = URL.createObjectURL(T), b = await yg(O);
|
17462
17459
|
if (URL.revokeObjectURL(O), !b.isValid)
|
17463
17460
|
throw new Error(b.message);
|
17464
17461
|
N();
|
17465
|
-
} catch (
|
17466
|
-
n(
|
17462
|
+
} catch (v) {
|
17463
|
+
n(v.message || "Failed to load image"), $e(v);
|
17467
17464
|
} finally {
|
17468
17465
|
_(!1);
|
17469
17466
|
}
|
17470
|
-
}, I = async (
|
17471
|
-
|
17472
|
-
}, j = (
|
17467
|
+
}, I = async (v) => {
|
17468
|
+
v.key === "Enter" && (v.preventDefault(), await S());
|
17469
|
+
}, j = (v, T) => /* @__PURE__ */ t.jsx(
|
17473
17470
|
si,
|
17474
17471
|
{
|
17475
17472
|
imageProps: {
|
@@ -17479,7 +17476,7 @@ const tO = {
|
|
17479
17476
|
width: za.width,
|
17480
17477
|
className: `br-4 dc__no-shrink ${T || ""}`
|
17481
17478
|
},
|
17482
|
-
fallbackImage: /* @__PURE__ */ t.jsx(aT, { defaultIcon: e, showEditIcon:
|
17479
|
+
fallbackImage: /* @__PURE__ */ t.jsx(aT, { defaultIcon: e, showEditIcon: v })
|
17483
17480
|
}
|
17484
17481
|
);
|
17485
17482
|
return u ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-20", children: [
|
@@ -17508,7 +17505,7 @@ const tO = {
|
|
17508
17505
|
type: "button",
|
17509
17506
|
disabled: p,
|
17510
17507
|
"data-testid": `${i}-preview`,
|
17511
|
-
onClick:
|
17508
|
+
onClick: S,
|
17512
17509
|
children: "Preview"
|
17513
17510
|
}
|
17514
17511
|
),
|
@@ -17807,7 +17804,7 @@ const at = ({
|
|
17807
17804
|
if (C.isIntersecting && C.intersectionRatio >= 1)
|
17808
17805
|
c(1);
|
17809
17806
|
else {
|
17810
|
-
const { boundingClientRect: A, rootBounds:
|
17807
|
+
const { boundingClientRect: A, rootBounds: S } = C, { x: I, y: j, height: v, width: T } = A, {
|
17811
17808
|
x: O,
|
17812
17809
|
y: b,
|
17813
17810
|
height: y,
|
@@ -17817,7 +17814,7 @@ const at = ({
|
|
17817
17814
|
top: G,
|
17818
17815
|
bottom: Z
|
17819
17816
|
} = u.current.getBoundingClientRect();
|
17820
|
-
j +
|
17817
|
+
j + v > S.height && (i({ left: O, bottom: document.documentElement.clientHeight - b }), c(1)), I + T > S.width && (i((ee) => ({ ...ee, right: "20px", left: "unset" })), c(1));
|
17821
17818
|
}
|
17822
17819
|
});
|
17823
17820
|
}
|
@@ -17834,7 +17831,7 @@ const at = ({
|
|
17834
17831
|
function E(h) {
|
17835
17832
|
if (!h) return;
|
17836
17833
|
u.current = h;
|
17837
|
-
const { bottom: N, height: C, left: A, right:
|
17834
|
+
const { bottom: N, height: C, left: A, right: S, top: I, width: j, x: v, y: T } = h.getBoundingClientRect();
|
17838
17835
|
m.current = j;
|
17839
17836
|
}
|
17840
17837
|
return /* @__PURE__ */ t.jsx(
|
@@ -17995,26 +17992,26 @@ const Hl = ({
|
|
17995
17992
|
U(() => {
|
17996
17993
|
p(s?.[o] || "");
|
17997
17994
|
}, [e, s, o]);
|
17998
|
-
const f = (
|
17995
|
+
const f = (v) => {
|
17999
17996
|
setTimeout(() => {
|
18000
17997
|
x(`tag-${o}-${e}`);
|
18001
17998
|
}, 300);
|
18002
|
-
}, E = (
|
18003
|
-
if (!
|
17999
|
+
}, E = (v) => {
|
18000
|
+
if (!v.relatedTarget || !v.relatedTarget.classList.value || !v.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
|
18004
18001
|
x("");
|
18005
18002
|
const T = { ...s };
|
18006
18003
|
T[o] = m, o === Xt.KEY ? T.isInvalidKey = m || T.propagate ? !g.propagateTagKey(m).isValid : T.value !== "" : m || r || T.propagate ? (T.isInvalidValue = !g.propagateTagValue(m, T.key).isValid, T.isInvalidKey = !T.key || T.isInvalidKey) : (T.isInvalidValue = !1, T.isInvalidKey = T.key ? T.isInvalidKey : !1), n(e, T);
|
18007
18004
|
}
|
18008
|
-
}, h = (
|
18009
|
-
p(
|
18010
|
-
}, N = (
|
18011
|
-
he(
|
18005
|
+
}, h = (v) => {
|
18006
|
+
p(v.target.value);
|
18007
|
+
}, N = (v) => {
|
18008
|
+
he(v);
|
18012
18009
|
const T = { ...s };
|
18013
|
-
T[o] =
|
18010
|
+
T[o] = v.currentTarget.dataset.key, T.propagate = v.currentTarget.dataset.propagate === "true", n(e, T), x("");
|
18014
18011
|
}, C = () => {
|
18015
|
-
let
|
18016
|
-
return o === Xt.KEY ? (m || s.value) && (
|
18017
|
-
|
18012
|
+
let v = { isValid: !0, messages: [] };
|
18013
|
+
return o === Xt.KEY ? (m || s.value) && (v = g.propagateTagKey(m)) : (r || m || s.propagate) && (v = g.propagateTagValue(m, s.key)), v.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: he, "data-testid": "tag-label-cross-stop-propagation", children: [
|
18014
|
+
v.messages.map((T) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
18018
18015
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(ns, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
18019
18016
|
/* @__PURE__ */ t.jsx("span", { children: T })
|
18020
18017
|
] }, T)),
|
@@ -18023,35 +18020,35 @@ const Hl = ({
|
|
18023
18020
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
18024
18021
|
] })
|
18025
18022
|
] });
|
18026
|
-
}, A = (
|
18023
|
+
}, A = (v, T) => /* @__PURE__ */ t.jsx(
|
18027
18024
|
"div",
|
18028
18025
|
{
|
18029
|
-
"data-key":
|
18030
|
-
"data-propagate":
|
18026
|
+
"data-key": v.label,
|
18027
|
+
"data-propagate": v.propagate,
|
18031
18028
|
className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
|
18032
18029
|
onClick: N,
|
18033
18030
|
"data-testid": `tag-label-value-${T}`,
|
18034
|
-
children:
|
18031
|
+
children: v.label
|
18035
18032
|
},
|
18036
|
-
`${
|
18037
|
-
),
|
18033
|
+
`${v.value}-${T}`
|
18034
|
+
), S = (v, T) => /* @__PURE__ */ t.jsx(
|
18038
18035
|
ie,
|
18039
18036
|
{
|
18040
18037
|
className: "default-tt",
|
18041
18038
|
arrow: !1,
|
18042
18039
|
placement: "right",
|
18043
18040
|
content: /* @__PURE__ */ t.jsxs("div", { children: [
|
18044
|
-
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children:
|
18045
|
-
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children:
|
18041
|
+
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: v.label }),
|
18042
|
+
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: v.description })
|
18046
18043
|
] }),
|
18047
|
-
children: A(
|
18044
|
+
children: A(v, T)
|
18048
18045
|
}
|
18049
18046
|
), I = () => {
|
18050
18047
|
if (a?.length) {
|
18051
|
-
const
|
18052
|
-
if (
|
18053
|
-
return /* @__PURE__ */ t.jsx("div", { children:
|
18054
|
-
(T, O) => T.description ?
|
18048
|
+
const v = a.filter((T) => T.label.indexOf(m) >= 0);
|
18049
|
+
if (v.length)
|
18050
|
+
return /* @__PURE__ */ t.jsx("div", { children: v.map(
|
18051
|
+
(T, O) => T.description ? S(T, O) : A(T, O)
|
18055
18052
|
) });
|
18056
18053
|
}
|
18057
18054
|
return C();
|
@@ -18270,7 +18267,7 @@ const xT = (e) => {
|
|
18270
18267
|
i(b, y, k, B);
|
18271
18268
|
}, A = (b) => () => {
|
18272
18269
|
l(b);
|
18273
|
-
},
|
18270
|
+
}, S = (b, y) => {
|
18274
18271
|
const L = n || b.data[y].disabled;
|
18275
18272
|
switch (b.data[y].type) {
|
18276
18273
|
case st.DROPDOWN:
|
@@ -18379,7 +18376,7 @@ const xT = (e) => {
|
|
18379
18376
|
children: k[y](b)
|
18380
18377
|
}
|
18381
18378
|
) : null;
|
18382
|
-
},
|
18379
|
+
}, v = (b) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
|
18383
18380
|
/* @__PURE__ */ t.jsx(Qe, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
|
18384
18381
|
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: b })
|
18385
18382
|
] }, b), T = (b, y) => {
|
@@ -18388,7 +18385,7 @@ const xT = (e) => {
|
|
18388
18385
|
"div",
|
18389
18386
|
{
|
18390
18387
|
className: `dynamic-data-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4 ${B ? "no-error" : ""}`,
|
18391
|
-
children: k.map((G) =>
|
18388
|
+
children: k.map((G) => v(G))
|
18392
18389
|
}
|
18393
18390
|
);
|
18394
18391
|
}, O = (b, y, L) => {
|
@@ -18406,7 +18403,7 @@ const xT = (e) => {
|
|
18406
18403
|
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${k ? "cursor-not-allowed no-hover" : ""} ${!k && B ? "dynamic-data-table__cell--error no-hover" : ""} ${pT(b.data[y].type) ? "" : "no-hover no-focus"}`,
|
18407
18404
|
children: [
|
18408
18405
|
j(b, y, !0),
|
18409
|
-
|
18406
|
+
S(b, y),
|
18410
18407
|
I(b, y),
|
18411
18408
|
j(b, y),
|
18412
18409
|
T(b, y)
|
@@ -18671,12 +18668,12 @@ const Ft = ({
|
|
18671
18668
|
}, [m]), useEffectAfterMount(() => {
|
18672
18669
|
p(n);
|
18673
18670
|
}, [n]);
|
18674
|
-
function N(j,
|
18675
|
-
p(
|
18671
|
+
function N(j, v) {
|
18672
|
+
p(v), j.target.name = l, j.target.value = v, s(j);
|
18676
18673
|
}
|
18677
18674
|
if (!e) return null;
|
18678
|
-
const { button: C, body: A, optionLength:
|
18679
|
-
(j,
|
18675
|
+
const { button: C, body: A, optionLength: S, AsyncComponent: I } = ge.Children.toArray(e).reduce(
|
18676
|
+
(j, v) => (v.type === wu ? j.button = v : v.type === Du ? j.AsyncComponent = v : ((v.type === Ou || v.type === Lu) && (j.optionLength += 1), j.body.push(v)), j),
|
18680
18677
|
{ button: null, body: [], optionLength: 0, AsyncComponent: null }
|
18681
18678
|
);
|
18682
18679
|
return /* @__PURE__ */ t.jsx(
|
@@ -18708,7 +18705,7 @@ const Ft = ({
|
|
18708
18705
|
),
|
18709
18706
|
_ && I,
|
18710
18707
|
/* @__PURE__ */ t.jsx(at.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: c, children: E ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
18711
|
-
|
18708
|
+
S === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
|
18712
18709
|
A
|
18713
18710
|
] }) })
|
18714
18711
|
] })
|
@@ -18914,10 +18911,10 @@ const wT = 100, Kt = ge.memo(
|
|
18914
18911
|
isKubernetes: N = !0,
|
18915
18912
|
cleanData: C = !1,
|
18916
18913
|
onBlur: A,
|
18917
|
-
onFocus:
|
18914
|
+
onFocus: S,
|
18918
18915
|
adjustEditorHeightToContent: I = !1,
|
18919
18916
|
disableSearch: j = !1,
|
18920
|
-
originalEditable:
|
18917
|
+
originalEditable: v = !1
|
18921
18918
|
}) => {
|
18922
18919
|
const { appTheme: T } = qd();
|
18923
18920
|
C && (e = sc(e), a = sc(a));
|
@@ -18968,7 +18965,7 @@ const wT = 100, Kt = ge.memo(
|
|
18968
18965
|
};
|
18969
18966
|
}, [j]);
|
18970
18967
|
const _e = (K) => {
|
18971
|
-
s === hs.YAML && K && typeof K.getModel == "function" && typeof K.getModel().updateOptions == "function" && K.getModel().updateOptions({ tabSize: 2 }), K && (typeof K.onDidFocusEditorWidget == "function" && typeof
|
18968
|
+
s === hs.YAML && K && typeof K.getModel == "function" && typeof K.getModel().updateOptions == "function" && K.getModel().updateOptions({ tabSize: 2 }), K && (typeof K.onDidFocusEditorWidget == "function" && typeof S == "function" && K.onDidFocusEditorWidget(S), typeof K.onDidBlurEditorWidget == "function" && typeof A == "function" && K.onDidBlurEditorWidget(A)), I && K && (K.onDidContentSizeChange(() => {
|
18972
18969
|
$(K.getContentHeight());
|
18973
18970
|
}), $(K.getContentHeight())), O.current = K, b.current = Ti;
|
18974
18971
|
}, Ae = (K, Me) => {
|
@@ -18987,7 +18984,7 @@ const wT = 100, Kt = ge.memo(
|
|
18987
18984
|
mt.getContentHeight()
|
18988
18985
|
)
|
18989
18986
|
);
|
18990
|
-
}), $(Math.max(we.getContentHeight(), mt.getContentHeight()))),
|
18987
|
+
}), $(Math.max(we.getContentHeight(), mt.getContentHeight()))), v && we.onDidChangeModelContent(() => {
|
18991
18988
|
F(mt.getValue(), we.getValue());
|
18992
18989
|
}), O.current = K, b.current = Me;
|
18993
18990
|
}, M = J(() => I ? H : l, [l, H, I]);
|
@@ -19063,7 +19060,7 @@ const wT = 100, Kt = ge.memo(
|
|
19063
19060
|
}
|
19064
19061
|
}, Ne = {
|
19065
19062
|
...Se,
|
19066
|
-
originalEditable:
|
19063
|
+
originalEditable: v && !m,
|
19067
19064
|
useInlineViewWhenSpaceIsLimited: !1
|
19068
19065
|
};
|
19069
19066
|
return /* @__PURE__ */ t.jsxs(
|
@@ -19314,7 +19311,7 @@ const Xa = "Please provide valid YAML", bn = {
|
|
19314
19311
|
yaml: null
|
19315
19312
|
};
|
19316
19313
|
if (s) {
|
19317
|
-
const C = e || c ? Jo.REPLACE : o, A = s.mergeStrategy || (n === ur.INHERITED ? C : null),
|
19314
|
+
const C = e || c ? Jo.REPLACE : o, A = s.mergeStrategy || (n === ur.INHERITED ? C : null), S = KT({
|
19318
19315
|
configMapSecretData: { ...s, mergeStrategy: A },
|
19319
19316
|
cmSecretStateLabel: n,
|
19320
19317
|
isSecret: i
|
@@ -19327,8 +19324,8 @@ const Xa = "Please provide valid YAML", bn = {
|
|
19327
19324
|
subPath: _,
|
19328
19325
|
esoSubPath: h
|
19329
19326
|
}),
|
19330
|
-
yaml: zT(
|
19331
|
-
currentData:
|
19327
|
+
yaml: zT(S),
|
19328
|
+
currentData: S,
|
19332
19329
|
mergeStrategy: A,
|
19333
19330
|
...qT(s)
|
19334
19331
|
};
|
@@ -19481,10 +19478,10 @@ const Xa = "Please provide valid YAML", bn = {
|
|
19481
19478
|
const f = e && Cd(n), h = (o ? JT(r) : i).reduce((C, A) => {
|
19482
19479
|
if (!A.k)
|
19483
19480
|
return C;
|
19484
|
-
const
|
19481
|
+
const S = A.v ?? "";
|
19485
19482
|
return {
|
19486
19483
|
...C,
|
19487
|
-
[A.k]: e && n === "" ? btoa(
|
19484
|
+
[A.k]: e && n === "" ? btoa(S) : S
|
19488
19485
|
};
|
19489
19486
|
}, {}), N = {
|
19490
19487
|
name: d,
|
@@ -19513,8 +19510,8 @@ const Xa = "Please provide valid YAML", bn = {
|
|
19513
19510
|
}
|
19514
19511
|
if (u === Ja.volume.value && (N.mountPath = _, N.subPath = x, m && (N.filePermission = c.length === 3 ? `0${c}` : `${c}`), x && (e && n === je.KubernetesSecret || !e && s))) {
|
19515
19512
|
const C = a.replace(/\s+/g, "").split(","), A = {};
|
19516
|
-
C.forEach((
|
19517
|
-
A[
|
19513
|
+
C.forEach((S) => {
|
19514
|
+
A[S] = "";
|
19518
19515
|
}), N.data = A;
|
19519
19516
|
}
|
19520
19517
|
return N;
|
@@ -19877,7 +19874,7 @@ const Xa = "Please provide valid YAML", bn = {
|
|
19877
19874
|
}, [n]);
|
19878
19875
|
const _ = (N) => {
|
19879
19876
|
const C = N.trim().toLowerCase(), A = n.filter(
|
19880
|
-
(
|
19877
|
+
(S) => S.variableName.toLowerCase().includes(C) || S.shortDescription?.toLowerCase().includes(C)
|
19881
19878
|
);
|
19882
19879
|
l(A), m(C);
|
19883
19880
|
}, x = () => {
|
@@ -20003,9 +20000,9 @@ const Xa = "Please provide valid YAML", bn = {
|
|
20003
20000
|
return { x: j.x, y: j.y };
|
20004
20001
|
}, [h.current]);
|
20005
20002
|
U(() => {
|
20006
|
-
const j = new ResizeObserver((
|
20007
|
-
if (
|
20008
|
-
const { height: T } =
|
20003
|
+
const j = new ResizeObserver((v) => {
|
20004
|
+
if (v?.length > 0 && l) {
|
20005
|
+
const { height: T } = v[0].contentRect;
|
20009
20006
|
N.y + m.y + T > E.height && p({
|
20010
20007
|
x: m.x,
|
20011
20008
|
y: E.height - T - N.y
|
@@ -20036,18 +20033,18 @@ const Xa = "Please provide valid YAML", bn = {
|
|
20036
20033
|
}), c(!0);
|
20037
20034
|
}, A = Ke((j) => {
|
20038
20035
|
j.stopPropagation(), c(!1);
|
20039
|
-
}, []),
|
20036
|
+
}, []), S = (j, v) => {
|
20040
20037
|
const T = {
|
20041
|
-
x: N.x +
|
20042
|
-
y: N.y +
|
20038
|
+
x: N.x + v.x,
|
20039
|
+
y: N.y + v.y
|
20043
20040
|
};
|
20044
|
-
T.y < 0 || T.x < 0 || T.x + (h.current?.getBoundingClientRect().width || 0) > E.width || T.y + (h.current?.getBoundingClientRect().height || 0) > E.height || u(
|
20045
|
-
}, I = (j,
|
20041
|
+
T.y < 0 || T.x < 0 || T.x + (h.current?.getBoundingClientRect().width || 0) > E.width || T.y + (h.current?.getBoundingClientRect().height || 0) > E.height || u(v);
|
20042
|
+
}, I = (j, v) => {
|
20046
20043
|
const T = {
|
20047
|
-
x: N.x +
|
20048
|
-
y: N.y +
|
20044
|
+
x: N.x + v.x,
|
20045
|
+
y: N.y + v.y
|
20049
20046
|
};
|
20050
|
-
T.y < 0 || T.x < 0 || T.x + (h.current?.getBoundingClientRect().width || 0) > E.width || T.y + (h.current?.getBoundingClientRect().height || 0) > E.height || (p(
|
20047
|
+
T.y < 0 || T.x < 0 || T.x + (h.current?.getBoundingClientRect().width || 0) > E.width || T.y + (h.current?.getBoundingClientRect().height || 0) > E.height || (p(v), u(v));
|
20051
20048
|
};
|
20052
20049
|
return l ? /* @__PURE__ */ t.jsx(
|
20053
20050
|
ja,
|
@@ -20087,7 +20084,7 @@ const Xa = "Please provide valid YAML", bn = {
|
|
20087
20084
|
handle: ".handle-drag",
|
20088
20085
|
nodeRef: h,
|
20089
20086
|
position: d,
|
20090
|
-
onDrag:
|
20087
|
+
onDrag: S,
|
20091
20088
|
children: /* @__PURE__ */ t.jsxs(
|
20092
20089
|
"div",
|
20093
20090
|
{
|
@@ -20228,10 +20225,10 @@ const _S = ({
|
|
20228
20225
|
d(h);
|
20229
20226
|
}, x = Ke(
|
20230
20227
|
(h, N) => {
|
20231
|
-
const C = zr.some((
|
20228
|
+
const C = zr.some((S) => S.label === u), A = pS[u] ?? ((S) => S);
|
20232
20229
|
if (!C) {
|
20233
|
-
const
|
20234
|
-
return et(
|
20230
|
+
const S = h.additionalKeys?.find((j) => j.label === u)?.value || "", I = N.additionalKeys?.find((j) => j.label === u)?.value || "";
|
20231
|
+
return et(S, I, m);
|
20235
20232
|
}
|
20236
20233
|
return (m === fe.ASC ? 1 : -1) * (A(h[zl[u]]) < A(N[zl[u]]) ? -1 : 1);
|
20237
20234
|
},
|
@@ -20240,11 +20237,11 @@ const _S = ({
|
|
20240
20237
|
(h, N, C) => {
|
20241
20238
|
if (h.push(N), C === 0) {
|
20242
20239
|
const A = g?.[0]?.additionalKeys;
|
20243
|
-
A?.length && A.forEach((
|
20240
|
+
A?.length && A.forEach((S) => {
|
20244
20241
|
h.push({
|
20245
|
-
label:
|
20246
|
-
isSortable:
|
20247
|
-
width:
|
20242
|
+
label: S.label,
|
20243
|
+
isSortable: S.isSortable,
|
20244
|
+
width: S.width
|
20248
20245
|
});
|
20249
20246
|
});
|
20250
20247
|
}
|
@@ -20417,7 +20414,7 @@ const _S = ({
|
|
20417
20414
|
try {
|
20418
20415
|
m(!0);
|
20419
20416
|
let j = -1;
|
20420
|
-
const
|
20417
|
+
const v = () => {
|
20421
20418
|
j >= 0 || (j = setTimeout(() => {
|
20422
20419
|
p((/* @__PURE__ */ new Date()).toISOString()), j = -1;
|
20423
20420
|
}, 10));
|
@@ -20432,28 +20429,28 @@ const _S = ({
|
|
20432
20429
|
additionalKeys: L,
|
20433
20430
|
status: "Progressing",
|
20434
20431
|
message: "-"
|
20435
|
-
}),
|
20432
|
+
}), v();
|
20436
20433
|
const G = await b(g, c);
|
20437
20434
|
x.current.updateResultStatus(B, {
|
20438
20435
|
status: "Completed",
|
20439
20436
|
...k ? {
|
20440
20437
|
renderContentAtResultRowEnd: () => k(G)
|
20441
20438
|
} : {}
|
20442
|
-
}),
|
20439
|
+
}), v();
|
20443
20440
|
} catch (G) {
|
20444
20441
|
if (Vt(G)) {
|
20445
20442
|
x.current.updateResultStatus(B, {
|
20446
20443
|
status: "Failed",
|
20447
20444
|
message: "Aborted by you",
|
20448
20445
|
retryOperation: O
|
20449
|
-
}),
|
20446
|
+
}), v();
|
20450
20447
|
return;
|
20451
20448
|
}
|
20452
20449
|
x.current.updateResultStatus(B, {
|
20453
20450
|
status: "Failed",
|
20454
20451
|
message: (G && (G.message || G instanceof It && Array.isArray(G.errors) && G.errors[0].userMessage)) ?? "",
|
20455
20452
|
retryOperation: O
|
20456
|
-
}),
|
20453
|
+
}), v();
|
20457
20454
|
}
|
20458
20455
|
});
|
20459
20456
|
await uS(T, !0), Pe.showToast({
|
@@ -20473,7 +20470,7 @@ const _S = ({
|
|
20473
20470
|
_.current = x.current.getRetryOperations(), x.current = new ql(_.current.length), g.current = new AbortController(), await h();
|
20474
20471
|
}, A = () => {
|
20475
20472
|
g.current.abort();
|
20476
|
-
},
|
20473
|
+
}, S = () => /* @__PURE__ */ t.jsx(
|
20477
20474
|
Fs,
|
20478
20475
|
{
|
20479
20476
|
...l,
|
@@ -20508,7 +20505,7 @@ const _S = ({
|
|
20508
20505
|
);
|
20509
20506
|
return /* @__PURE__ */ t.jsxs("div", { className: "bulk-operations", children: [
|
20510
20507
|
/* @__PURE__ */ t.jsx(Im, { when: u, message: o.prompt }),
|
20511
|
-
!i && !f ?
|
20508
|
+
!i && !f ? S() : I()
|
20512
20509
|
] });
|
20513
20510
|
}, Tn = ({
|
20514
20511
|
title: e,
|
@@ -20621,7 +20618,7 @@ const _S = ({
|
|
20621
20618
|
};
|
20622
20619
|
U(() => {
|
20623
20620
|
if (o && i) {
|
20624
|
-
const N = i.find((
|
20621
|
+
const N = i.find((S) => +S.id === o?.appWorkflowId);
|
20625
20622
|
if (!N) {
|
20626
20623
|
g(), Pe.showToast({
|
20627
20624
|
variant: xe.error,
|
@@ -20629,8 +20626,8 @@ const _S = ({
|
|
20629
20626
|
});
|
20630
20627
|
return;
|
20631
20628
|
}
|
20632
|
-
const C = N.nodes.find((
|
20633
|
-
if (N.nodes.some((
|
20629
|
+
const C = N.nodes.find((S) => S.type === ds.CI);
|
20630
|
+
if (N.nodes.some((S) => S.type === ds.WEBHOOK)) {
|
20634
20631
|
p(ds.WEBHOOK);
|
20635
20632
|
return;
|
20636
20633
|
}
|
@@ -21808,8 +21805,8 @@ const gi = ({
|
|
21808
21805
|
const { key: C } = N;
|
21809
21806
|
if (C === "Enter") {
|
21810
21807
|
N.preventDefault();
|
21811
|
-
const
|
21812
|
-
x(
|
21808
|
+
const S = N.target.value.trim();
|
21809
|
+
x(S);
|
21813
21810
|
}
|
21814
21811
|
}, h = (N = null) => {
|
21815
21812
|
a.ref && (a.ref.current = N), p.current = N;
|
@@ -21910,16 +21907,16 @@ const em = ({
|
|
21910
21907
|
forceReInit: m,
|
21911
21908
|
isSuperAdmin: p
|
21912
21909
|
}) => {
|
21913
|
-
const [_, x] = R(a || []), [g, f] = R(n ? n.comment : ""), [E, h] = R(o || []), [N, C] = R(n ? n.comment : ""), [A,
|
21910
|
+
const [_, x] = R(a || []), [g, f] = R(n ? n.comment : ""), [E, h] = R(o || []), [N, C] = R(n ? n.comment : ""), [A, S] = R(!1), [I, j] = R(!1), [v, T] = R(a || []), [O, b] = R(""), [y, L] = R([]), [k, B] = R([]), [G, Z] = R([]), [ee, ae] = R(""), [pe, ye] = R(""), [H, $] = R(!1);
|
21914
21911
|
U(() => {
|
21915
21912
|
de();
|
21916
21913
|
}, [a, n, l]), U(() => {
|
21917
21914
|
h(o || []);
|
21918
21915
|
}, [o]);
|
21919
21916
|
const de = () => {
|
21920
|
-
(m || !A) && (x(a || []), f(n ? n.comment : ""), C(n ? n.comment : ""), T(a || []),
|
21917
|
+
(m || !A) && (x(a || []), f(n ? n.comment : ""), C(n ? n.comment : ""), T(a || []), S(!1));
|
21921
21918
|
}, _e = () => {
|
21922
|
-
|
21919
|
+
S(!A), typeof d == "function" && d(s);
|
21923
21920
|
}, Ae = (Y) => {
|
21924
21921
|
const Ce = Y.target.value;
|
21925
21922
|
Ce?.length > 500 ? ae("comment length cannot exceed 500 characters") : ae(""), C(Ce);
|
@@ -21931,8 +21928,8 @@ const em = ({
|
|
21931
21928
|
b("");
|
21932
21929
|
const Ce = E.includes(Y);
|
21933
21930
|
let le = !1;
|
21934
|
-
for (let Fe = 0; Fe <
|
21935
|
-
|
21931
|
+
for (let Fe = 0; Fe < v?.length; Fe++)
|
21932
|
+
v[Fe].tagName.toLowerCase() === Y && (le = !0);
|
21936
21933
|
return Ce || le || Y === "latest" ? (b("This label is already being used in this application"), !1) : !0;
|
21937
21934
|
}, F = (Y) => {
|
21938
21935
|
const Ce = Y.toLowerCase().trim();
|
@@ -21945,11 +21942,11 @@ const em = ({
|
|
21945
21942
|
artifactId: 0,
|
21946
21943
|
duplicateTag: !1
|
21947
21944
|
}, Fe = [...y, le];
|
21948
|
-
return L(Fe), T([...
|
21945
|
+
return L(Fe), T([...v, le]), j(!0), ye(""), Fe;
|
21949
21946
|
}
|
21950
21947
|
return y;
|
21951
21948
|
}, re = (Y) => {
|
21952
|
-
const Ce = [...
|
21949
|
+
const Ce = [...v];
|
21953
21950
|
Ce[Y] = {
|
21954
21951
|
...Ce[Y],
|
21955
21952
|
deleted: !Ce[Y].deleted
|
@@ -21957,9 +21954,9 @@ const em = ({
|
|
21957
21954
|
const le = Ce[Y], Fe = [...k], Je = Fe.findIndex((St) => St.tagName === le.tagName);
|
21958
21955
|
Je !== -1 ? Fe.splice(Je, 1) : Fe.push(le), T(Ce), B(Fe);
|
21959
21956
|
}, se = (Y) => {
|
21960
|
-
const Ce =
|
21957
|
+
const Ce = v[Y], le = y.filter((St) => St.tagName !== Ce.tagName);
|
21961
21958
|
L(le);
|
21962
|
-
const Fe = [...
|
21959
|
+
const Fe = [...v];
|
21963
21960
|
Fe.splice(Y, 1), T(Fe);
|
21964
21961
|
const Je = E.filter((St) => St.toLowerCase() !== Ce.tagName.toLowerCase());
|
21965
21962
|
if (h(Je), Ce.id !== 0) {
|
@@ -21973,7 +21970,7 @@ const em = ({
|
|
21973
21970
|
duplicateTag: !0
|
21974
21971
|
} : Je);
|
21975
21972
|
L(le);
|
21976
|
-
const Fe =
|
21973
|
+
const Fe = v.map((Je) => {
|
21977
21974
|
const St = le.find((Ir) => Ir.tagName === Je.tagName);
|
21978
21975
|
return St ? { ...Je, duplicateTag: St.duplicateTag } : Je;
|
21979
21976
|
});
|
@@ -22024,7 +22021,7 @@ const em = ({
|
|
22024
22021
|
/* @__PURE__ */ t.jsx("li", { children: "Labels cannot be deleted once saved. Although, you can soft delete a label if an unwanted label has been added." })
|
22025
22022
|
] })
|
22026
22023
|
] }), we = q(null);
|
22027
|
-
if (N === "" &&
|
22024
|
+
if (N === "" && v.length === 0 && !A)
|
22028
22025
|
return l ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 add-image-button", children: /* @__PURE__ */ t.jsx(KS, { handleEditClick: _e }) }) : /* @__PURE__ */ t.jsx("div", {});
|
22029
22026
|
const mt = (Y) => {
|
22030
22027
|
Y.key === "Enter" && Y.target.value.trim() && F(Y.target.value.trim());
|
@@ -22076,7 +22073,7 @@ const em = ({
|
|
22076
22073
|
/* @__PURE__ */ t.jsx(un, { className: "form__icon form__icon--error" }),
|
22077
22074
|
/* @__PURE__ */ t.jsx("div", { className: "form__error", children: O })
|
22078
22075
|
] }),
|
22079
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex-wrap mt-8 flex left", children:
|
22076
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex-wrap mt-8 flex left", children: v?.map((Y, Ce) => /* @__PURE__ */ t.jsx(
|
22080
22077
|
er,
|
22081
22078
|
{
|
22082
22079
|
text: Y?.tagName,
|
@@ -22790,15 +22787,15 @@ const Rt = {
|
|
22790
22787
|
_(e);
|
22791
22788
|
}, [e]);
|
22792
22789
|
const h = Le(n), N = h.isValid() ? h.format(bt.TWELVE_HOURS_FORMAT) : n, C = (j) => {
|
22793
|
-
let
|
22790
|
+
let v = !0;
|
22794
22791
|
return j.length === 0 && (Pe.showToast({
|
22795
22792
|
variant: xe.error,
|
22796
22793
|
description: av
|
22797
|
-
}),
|
22794
|
+
}), v = !1), v;
|
22798
22795
|
}, A = () => {
|
22799
22796
|
let j = !0;
|
22800
22797
|
f && !u && (j = window.confirm(rv)), j && (_(e), m(!u), g(Xs.WRITE));
|
22801
|
-
},
|
22798
|
+
}, S = async () => {
|
22802
22799
|
const j = p.trim();
|
22803
22800
|
if (C(j))
|
22804
22801
|
try {
|
@@ -23029,7 +23026,7 @@ const Rt = {
|
|
23029
23026
|
"data-testid": "description-edit-save-button",
|
23030
23027
|
rootClassName: "cta flex h-36",
|
23031
23028
|
type: "submit",
|
23032
|
-
onClick:
|
23029
|
+
onClick: S,
|
23033
23030
|
children: "Save"
|
23034
23031
|
}
|
23035
23032
|
)
|