@devtron-labs/devtron-fe-common-lib 1.9.0-patch-2 → 1.9.0-patch-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1002,7 +1002,7 @@ const Ye = {
|
|
1002
1002
|
};
|
1003
1003
|
var Xg = /* @__PURE__ */ ((e) => (e[e.DEVTRON_APP = 0] = "DEVTRON_APP", e[e.HELM_APP = 1] = "HELM_APP", e[e.EXTERNAL_ARGO_APP = 2] = "EXTERNAL_ARGO_APP", e[e.EXTERNAL_FLUX_APP = 3] = "EXTERNAL_FLUX_APP", e))(Xg || {});
|
1004
1004
|
const lc = /\x1B\[.*?m/g;
|
1005
|
-
var
|
1005
|
+
var M = /* @__PURE__ */ ((e) => (e.xxs = "xxs", e.xs = "xs", e.small = "small", e.medium = "medium", e.large = "large", e.xl = "xl", e))(M || {});
|
1006
1006
|
const gs = {
|
1007
1007
|
xxs: "py-1 fs-12 lh-20",
|
1008
1008
|
xs: "py-1 fs-12 lh-20",
|
@@ -1204,28 +1204,28 @@ const zO = Object.values(
|
|
1204
1204
|
);
|
1205
1205
|
var he = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(he || {}), be = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e))(be || {}), Kn = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e))(Kn || {});
|
1206
1206
|
const cx = {
|
1207
|
-
[
|
1208
|
-
[
|
1209
|
-
[
|
1210
|
-
[
|
1211
|
-
[
|
1212
|
-
[
|
1207
|
+
[M.xxs]: `${gs[M.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1208
|
+
[M.xs]: `${gs[M.xs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1209
|
+
[M.small]: `${gs[M.small]} px-9 fw-6 dc__gap-8 mw-48`,
|
1210
|
+
[M.medium]: `${gs[M.medium]} px-11 fw-6 dc__gap-8 mw-48`,
|
1211
|
+
[M.large]: `${gs[M.large]} px-13 fw-6 dc__gap-8 mw-64`,
|
1212
|
+
[M.xl]: `${gs[M.xl]} px-15 fw-6 dc__gap-12 mw-64`
|
1213
1213
|
}, lx = {
|
1214
|
-
[
|
1215
|
-
[
|
1216
|
-
[
|
1217
|
-
[
|
1218
|
-
[
|
1219
|
-
[
|
1214
|
+
[M.xxs]: "p-1",
|
1215
|
+
[M.xs]: "p-3",
|
1216
|
+
[M.small]: "p-5",
|
1217
|
+
[M.medium]: "p-7",
|
1218
|
+
[M.large]: "p-7",
|
1219
|
+
[M.xl]: "p-7"
|
1220
1220
|
};
|
1221
|
-
|
1221
|
+
M.xxs + "", M.xs + "", M.small + "", M.medium + "", M.large + "", M.xl + "";
|
1222
1222
|
const Yd = {
|
1223
|
-
[
|
1224
|
-
[
|
1225
|
-
[
|
1226
|
-
[
|
1227
|
-
[
|
1228
|
-
[
|
1223
|
+
[M.xxs]: 16,
|
1224
|
+
[M.xs]: 16,
|
1225
|
+
[M.small]: 16,
|
1226
|
+
[M.medium]: 16,
|
1227
|
+
[M.large]: 20,
|
1228
|
+
[M.xl]: 24
|
1229
1229
|
}, dx = ({ size: e, icon: s }) => `icon-dim-${s ? Yd[e] : Gd[e]}`, ux = ({ size: e, icon: s }) => s ? Yd[e] : Gd[e], mx = ({
|
1230
1230
|
size: e,
|
1231
1231
|
variant: s,
|
@@ -1262,7 +1262,7 @@ const Yd = {
|
|
1262
1262
|
dataTestId: e,
|
1263
1263
|
text: s,
|
1264
1264
|
variant: n = he.primary,
|
1265
|
-
size: a =
|
1265
|
+
size: a = M.large,
|
1266
1266
|
style: r = be.default,
|
1267
1267
|
startIcon: o = null,
|
1268
1268
|
endIcon: i = null,
|
@@ -1278,7 +1278,7 @@ const Yd = {
|
|
1278
1278
|
triggerAutoClickTimestamp: h,
|
1279
1279
|
...g
|
1280
1280
|
}) => {
|
1281
|
-
const [f, N] = R(!1), C = Y(), A = Y(null), S = c || l,
|
1281
|
+
const [f, N] = R(!1), C = Y(), A = Y(null), S = c || l, I = `dc__no-shrink flex dc__fill-available-space ${dx({
|
1282
1282
|
size: a,
|
1283
1283
|
icon: m
|
1284
1284
|
})}`;
|
@@ -1289,7 +1289,7 @@ const Yd = {
|
|
1289
1289
|
}, 100), () => {
|
1290
1290
|
N(!1), clearTimeout(C.current);
|
1291
1291
|
}), [h]);
|
1292
|
-
const
|
1292
|
+
const y = (b) => {
|
1293
1293
|
N(!1), clearTimeout(C.current), g.onClick?.(b);
|
1294
1294
|
}, v = () => !d && _ && m && p ? {
|
1295
1295
|
alwaysShowTippyOnHover: !0,
|
@@ -1308,12 +1308,12 @@ const Yd = {
|
|
1308
1308
|
"data-testid": e,
|
1309
1309
|
"aria-label": p || (l ? s : void 0),
|
1310
1310
|
elementRef: A,
|
1311
|
-
onClick:
|
1311
|
+
onClick: y,
|
1312
1312
|
children: [
|
1313
|
-
m ? /* @__PURE__ */ t.jsx("span", { className:
|
1314
|
-
o && /* @__PURE__ */ t.jsx("span", { className:
|
1313
|
+
m ? /* @__PURE__ */ t.jsx("span", { className: I, children: m }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1314
|
+
o && /* @__PURE__ */ t.jsx("span", { className: I, children: o }),
|
1315
1315
|
/* @__PURE__ */ t.jsx("span", { className: "dc__align-left", children: s }),
|
1316
|
-
i && /* @__PURE__ */ t.jsx("span", { className:
|
1316
|
+
i && /* @__PURE__ */ t.jsx("span", { className: I, children: i })
|
1317
1317
|
] }),
|
1318
1318
|
l && /* @__PURE__ */ t.jsx(
|
1319
1319
|
Ue,
|
@@ -1354,7 +1354,7 @@ const Yd = {
|
|
1354
1354
|
text: o,
|
1355
1355
|
onClick: e,
|
1356
1356
|
variant: he.text,
|
1357
|
-
size:
|
1357
|
+
size: M.small,
|
1358
1358
|
dataTestId: "generic-section-reload-button"
|
1359
1359
|
}
|
1360
1360
|
)
|
@@ -1701,8 +1701,8 @@ const di = (e) => {
|
|
1701
1701
|
iconPath: C,
|
1702
1702
|
iconClass: A,
|
1703
1703
|
iconSize: S,
|
1704
|
-
onImageLoadError:
|
1705
|
-
heading:
|
1704
|
+
onImageLoadError: I,
|
1705
|
+
heading: y,
|
1706
1706
|
headingInfo: v,
|
1707
1707
|
infoTextHeading: b,
|
1708
1708
|
hideHeading: O,
|
@@ -1724,10 +1724,10 @@ const di = (e) => {
|
|
1724
1724
|
className: `icon-dim-${S || 20} mr-6 ${A || ""}`,
|
1725
1725
|
src: C,
|
1726
1726
|
alt: "Heading",
|
1727
|
-
onError:
|
1727
|
+
onError: I
|
1728
1728
|
}
|
1729
1729
|
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${S || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${S || 20} ${A || ""}` }) }),
|
1730
|
-
|
1730
|
+
y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: y }),
|
1731
1731
|
v && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" }) }),
|
1732
1732
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1733
1733
|
us,
|
@@ -2072,35 +2072,35 @@ const ys = {
|
|
2072
2072
|
};
|
2073
2073
|
var Rs = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER_LESS = "border-less", e))(Rs || {});
|
2074
2074
|
const hc = {
|
2075
|
-
[
|
2076
|
-
[
|
2077
|
-
[
|
2075
|
+
[M.small]: "12px",
|
2076
|
+
[M.medium]: "13px",
|
2077
|
+
[M.large]: "13px"
|
2078
2078
|
}, gc = {
|
2079
|
-
[
|
2080
|
-
[
|
2081
|
-
[
|
2079
|
+
[M.small]: { width: "12px", height: "12px" },
|
2080
|
+
[M.medium]: { width: "16px", height: "16px" },
|
2081
|
+
[M.large]: { width: "16px", height: "16px" }
|
2082
2082
|
}, jx = {
|
2083
|
-
[
|
2084
|
-
[
|
2085
|
-
[
|
2083
|
+
[M.small]: "auto",
|
2084
|
+
[M.medium]: "auto",
|
2085
|
+
[M.large]: "36px"
|
2086
2086
|
}, xc = (e) => {
|
2087
2087
|
switch (e) {
|
2088
|
-
case
|
2088
|
+
case M.medium:
|
2089
2089
|
return {
|
2090
2090
|
width: "125%",
|
2091
2091
|
minWidth: "250px"
|
2092
2092
|
};
|
2093
|
-
case
|
2093
|
+
case M.large:
|
2094
2094
|
return {
|
2095
2095
|
width: "150%",
|
2096
2096
|
minWidth: "300px"
|
2097
2097
|
};
|
2098
|
-
case
|
2098
|
+
case M.xs:
|
2099
2099
|
return {
|
2100
2100
|
width: "100%",
|
2101
2101
|
minWidth: "100%"
|
2102
2102
|
};
|
2103
|
-
case
|
2103
|
+
case M.small:
|
2104
2104
|
default:
|
2105
2105
|
return {
|
2106
2106
|
width: "100%",
|
@@ -2658,7 +2658,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2658
2658
|
placeholder: a = "Select a option",
|
2659
2659
|
label: r,
|
2660
2660
|
showSelectedOptionIcon: o = !0,
|
2661
|
-
size: i =
|
2661
|
+
size: i = M.medium,
|
2662
2662
|
disabledTippyContent: c,
|
2663
2663
|
showSelectedOptionsCount: l = !1,
|
2664
2664
|
menuSize: d,
|
@@ -2675,8 +2675,8 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2675
2675
|
isSearchable: C,
|
2676
2676
|
selectRef: A,
|
2677
2677
|
shouldMenuAlignRight: S = !1,
|
2678
|
-
fullWidth:
|
2679
|
-
customSelectedOptionsCount:
|
2678
|
+
fullWidth: I = !1,
|
2679
|
+
customSelectedOptionsCount: y = null,
|
2680
2680
|
renderMenuListFooter: v,
|
2681
2681
|
isCreatable: b = !1,
|
2682
2682
|
onCreateOption: O,
|
@@ -2695,7 +2695,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2695
2695
|
...F
|
2696
2696
|
}) => {
|
2697
2697
|
const [ce, le] = R(!1), [pe, D] = R(""), {
|
2698
|
-
inputId:
|
2698
|
+
inputId: P,
|
2699
2699
|
required: $,
|
2700
2700
|
isDisabled: ee,
|
2701
2701
|
controlShouldRenderValue: oe = !0,
|
@@ -2706,7 +2706,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2706
2706
|
isGroupHeadingSelectable: se = !1,
|
2707
2707
|
getIsOptionValid: je = () => !0,
|
2708
2708
|
customDisplayText: xt = null
|
2709
|
-
} = x, jt = oe && !xt, _a = h && jt ?
|
2709
|
+
} = x, jt = oe && !xt, _a = h && jt ? M.large : i, Br = !h && o, W = !N && C, Ae = te(
|
2710
2710
|
() => Lx({
|
2711
2711
|
error: e,
|
2712
2712
|
size: _a,
|
@@ -2731,10 +2731,10 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2731
2731
|
{
|
2732
2732
|
...we,
|
2733
2733
|
showSelectedOptionsCount: l,
|
2734
|
-
customSelectedOptionsCount:
|
2734
|
+
customSelectedOptionsCount: y
|
2735
2735
|
}
|
2736
2736
|
),
|
2737
|
-
[l,
|
2737
|
+
[l, y]
|
2738
2738
|
), tt = ze(
|
2739
2739
|
(we) => /* @__PURE__ */ t.jsx(Fx, { ...we, disableDescriptionEllipsis: E }),
|
2740
2740
|
[E]
|
@@ -2762,14 +2762,14 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2762
2762
|
return /* @__PURE__ */ t.jsx(
|
2763
2763
|
mi,
|
2764
2764
|
{
|
2765
|
-
inputId:
|
2765
|
+
inputId: P,
|
2766
2766
|
layout: X,
|
2767
2767
|
label: r,
|
2768
2768
|
error: e,
|
2769
2769
|
helperText: n,
|
2770
2770
|
warningText: V,
|
2771
2771
|
required: $,
|
2772
|
-
fullWidth:
|
2772
|
+
fullWidth: I,
|
2773
2773
|
ariaLabel: q,
|
2774
2774
|
borderConfig: Q,
|
2775
2775
|
borderRadiusConfig: de,
|
@@ -2780,7 +2780,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2780
2780
|
{
|
2781
2781
|
...F,
|
2782
2782
|
...ui({
|
2783
|
-
inputId:
|
2783
|
+
inputId: P,
|
2784
2784
|
required: $,
|
2785
2785
|
label: r,
|
2786
2786
|
ariaLabel: q,
|
@@ -2790,8 +2790,8 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2790
2790
|
classNames: {
|
2791
2791
|
control: () => Ir({ borderConfig: Q, borderRadiusConfig: de })
|
2792
2792
|
},
|
2793
|
-
name: g ||
|
2794
|
-
classNamePrefix: f ||
|
2793
|
+
name: g || P,
|
2794
|
+
classNamePrefix: f || P,
|
2795
2795
|
isSearchable: W,
|
2796
2796
|
placeholder: a,
|
2797
2797
|
styles: Ae,
|
@@ -2895,7 +2895,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2895
2895
|
const { selectionStart: N, selectionEnd: C } = m.current.inputRef, A = `${d.slice(0, N)}
|
2896
2896
|
${d.slice(C)}`;
|
2897
2897
|
u(A);
|
2898
|
-
const S = m.current.inputRef,
|
2898
|
+
const S = m.current.inputRef, I = S.selectionStart, v = S.value.substring(0, I).split(`
|
2899
2899
|
`), b = parseInt(getComputedStyle(S).lineHeight, 10), T = v.length * b - S.scrollTop;
|
2900
2900
|
T < 0 ? S.scrollTop += T : T > S.offsetHeight - b && (S.scrollTop += T - S.offsetHeight + b), setTimeout(() => {
|
2901
2901
|
m.current.inputRef.selectionStart = N + 1, m.current.inputRef.selectionEnd = N + 1;
|
@@ -3508,7 +3508,7 @@ const Sc = () => ({
|
|
3508
3508
|
text: "Apply",
|
3509
3509
|
dataTestId: "filter-select-picker-apply",
|
3510
3510
|
onClick: h,
|
3511
|
-
size:
|
3511
|
+
size: M.small,
|
3512
3512
|
fullWidth: !0,
|
3513
3513
|
showTooltip: !0,
|
3514
3514
|
tooltipProps: {
|
@@ -3621,8 +3621,8 @@ const Sc = () => ({
|
|
3621
3621
|
value: h,
|
3622
3622
|
onChange: _,
|
3623
3623
|
isSearchable: !1,
|
3624
|
-
size:
|
3625
|
-
menuSize:
|
3624
|
+
size: M.large,
|
3625
|
+
menuSize: M.small,
|
3626
3626
|
isDisabled: u,
|
3627
3627
|
shouldMenuAlignRight: !0
|
3628
3628
|
}
|
@@ -4142,8 +4142,8 @@ const AL = (e, s = !1) => {
|
|
4142
4142
|
profileInput: d,
|
4143
4143
|
profileInputErrors: m,
|
4144
4144
|
handleProfileInputChange: ({ action: f, data: N }) => {
|
4145
|
-
const C = structuredClone(d), A = structuredClone(m), S = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "",
|
4146
|
-
i.profile.configurations[S] ||
|
4145
|
+
const C = structuredClone(d), A = structuredClone(m), S = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", I = C.configurations[S], y = structuredClone(
|
4146
|
+
i.profile.configurations[S] || I
|
4147
4147
|
);
|
4148
4148
|
switch (f) {
|
4149
4149
|
case $t.DESCRIPTION: {
|
@@ -4161,8 +4161,8 @@ const AL = (e, s = !1) => {
|
|
4161
4161
|
case U.MEMORY_LIMIT:
|
4162
4162
|
case U.MEMORY_REQUEST: {
|
4163
4163
|
const { value: v, unit: b } = N;
|
4164
|
-
|
4165
|
-
...
|
4164
|
+
I[f] = {
|
4165
|
+
...I[f],
|
4166
4166
|
key: f,
|
4167
4167
|
value: v,
|
4168
4168
|
unit: b
|
@@ -4177,8 +4177,8 @@ const AL = (e, s = !1) => {
|
|
4177
4177
|
unit: b
|
4178
4178
|
},
|
4179
4179
|
[O]: {
|
4180
|
-
value:
|
4181
|
-
unit:
|
4180
|
+
value: I[T].value,
|
4181
|
+
unit: I[T].unit
|
4182
4182
|
},
|
4183
4183
|
unitsMap: i.configurationUnits[f]
|
4184
4184
|
});
|
@@ -4191,8 +4191,8 @@ const AL = (e, s = !1) => {
|
|
4191
4191
|
}
|
4192
4192
|
case U.BUILD_TIMEOUT: {
|
4193
4193
|
const { value: v, unit: b } = N;
|
4194
|
-
|
4195
|
-
...
|
4194
|
+
I[f] = {
|
4195
|
+
...I[f],
|
4196
4196
|
key: f,
|
4197
4197
|
value: v,
|
4198
4198
|
unit: b
|
@@ -4206,8 +4206,8 @@ const AL = (e, s = !1) => {
|
|
4206
4206
|
case "activate_cpu": {
|
4207
4207
|
const v = _c[f];
|
4208
4208
|
fc[v]?.forEach((O) => {
|
4209
|
-
|
4210
|
-
...
|
4209
|
+
I[O] = {
|
4210
|
+
...y[O],
|
4211
4211
|
active: !0
|
4212
4212
|
}, A[O] = null;
|
4213
4213
|
});
|
@@ -4220,9 +4220,9 @@ const AL = (e, s = !1) => {
|
|
4220
4220
|
case "de_activate_cpu": {
|
4221
4221
|
const v = _c[f];
|
4222
4222
|
fc[v]?.forEach((O) => {
|
4223
|
-
|
4224
|
-
...
|
4225
|
-
...
|
4223
|
+
I[O] = {
|
4224
|
+
...I[O],
|
4225
|
+
...y[O]?.defaultValue,
|
4226
4226
|
active: !1
|
4227
4227
|
}, A[O] = null;
|
4228
4228
|
});
|
@@ -4232,7 +4232,7 @@ const AL = (e, s = !1) => {
|
|
4232
4232
|
case "activate_cs":
|
4233
4233
|
case "de_activate_cm":
|
4234
4234
|
case "de_activate_cs": {
|
4235
|
-
const { id: v, componentType: b } = N, O = Xe[b], T =
|
4235
|
+
const { id: v, componentType: b } = N, O = Xe[b], T = I[O].value, j = T.findIndex((L) => L.id === v);
|
4236
4236
|
if (j === -1 || !T[j].canOverride) {
|
4237
4237
|
const L = "Unable to customize this CM/CS";
|
4238
4238
|
ke.showToast({
|
@@ -4243,7 +4243,7 @@ const AL = (e, s = !1) => {
|
|
4243
4243
|
}
|
4244
4244
|
const w = f === "activate_cm" || f === "activate_cs";
|
4245
4245
|
if (T[j].isOverridden = w, w) {
|
4246
|
-
const B = (
|
4246
|
+
const B = (y[O]?.value || []).find((V) => V.id === v) || T[j];
|
4247
4247
|
T[j].useFormProps = B?.useFormProps, T[j].initialResponse = B?.initialResponse;
|
4248
4248
|
} else
|
4249
4249
|
T[j].useFormProps = T[j].defaultValue, T[j].initialResponse = T[j].defaultValueInitialResponse;
|
@@ -4322,25 +4322,25 @@ const AL = (e, s = !1) => {
|
|
4322
4322
|
break;
|
4323
4323
|
}
|
4324
4324
|
case Et.ADD_NODE_SELECTOR_ITEM: {
|
4325
|
-
if (
|
4325
|
+
if (I[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4326
4326
|
break;
|
4327
4327
|
const b = {
|
4328
4328
|
id: Ks(),
|
4329
4329
|
key: "",
|
4330
4330
|
value: ""
|
4331
4331
|
};
|
4332
|
-
|
4332
|
+
I[U.NODE_SELECTOR].value.unshift(b);
|
4333
4333
|
break;
|
4334
4334
|
}
|
4335
4335
|
case Et.DELETE_NODE_SELECTOR_ITEM: {
|
4336
|
-
if (
|
4336
|
+
if (I[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4337
4337
|
break;
|
4338
4338
|
const { id: v } = N;
|
4339
|
-
|
4340
|
-
const b =
|
4339
|
+
I[U.NODE_SELECTOR].value = I[U.NODE_SELECTOR].value.filter((O) => O.id !== v), delete A[U.NODE_SELECTOR]?.[v], Object.keys(A[U.NODE_SELECTOR] || {}).length === 0 && (A[U.NODE_SELECTOR] = null);
|
4340
|
+
const b = I[U.NODE_SELECTOR].value.map(
|
4341
4341
|
(O) => O.key
|
4342
4342
|
);
|
4343
|
-
|
4343
|
+
I[U.NODE_SELECTOR].value.forEach((O) => {
|
4344
4344
|
Pc({
|
4345
4345
|
selector: O,
|
4346
4346
|
existingKeys: b,
|
@@ -4350,20 +4350,20 @@ const AL = (e, s = !1) => {
|
|
4350
4350
|
break;
|
4351
4351
|
}
|
4352
4352
|
case Et.EDIT_NODE_SELECTOR_ITEM: {
|
4353
|
-
if (
|
4353
|
+
if (I[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4354
4354
|
break;
|
4355
|
-
const { id: v, key: b, value: O } = N, T =
|
4355
|
+
const { id: v, key: b, value: O } = N, T = I[U.NODE_SELECTOR].value.find(
|
4356
4356
|
(w) => w.id === v
|
4357
4357
|
);
|
4358
|
-
T ? (T.key = b, T.value = O) :
|
4358
|
+
T ? (T.key = b, T.value = O) : I[U.NODE_SELECTOR].value.unshift({
|
4359
4359
|
id: v,
|
4360
4360
|
key: b,
|
4361
4361
|
value: O
|
4362
4362
|
});
|
4363
|
-
const j =
|
4363
|
+
const j = I[U.NODE_SELECTOR].value.map(
|
4364
4364
|
(w) => w.key
|
4365
4365
|
);
|
4366
|
-
|
4366
|
+
I[U.NODE_SELECTOR].value.forEach((w) => {
|
4367
4367
|
Pc({
|
4368
4368
|
selector: w,
|
4369
4369
|
existingKeys: j,
|
@@ -4373,7 +4373,7 @@ const AL = (e, s = !1) => {
|
|
4373
4373
|
break;
|
4374
4374
|
}
|
4375
4375
|
case Et.ADD_TOLERANCE_ITEM: {
|
4376
|
-
if (
|
4376
|
+
if (I[U.TOLERANCE].key !== U.TOLERANCE)
|
4377
4377
|
break;
|
4378
4378
|
const b = {
|
4379
4379
|
id: Ks(),
|
@@ -4382,23 +4382,23 @@ const AL = (e, s = !1) => {
|
|
4382
4382
|
operator: Ix,
|
4383
4383
|
value: ""
|
4384
4384
|
};
|
4385
|
-
|
4385
|
+
I[U.TOLERANCE].value.unshift(b);
|
4386
4386
|
break;
|
4387
4387
|
}
|
4388
4388
|
case Et.DELETE_TOLERANCE_ITEM: {
|
4389
|
-
if (
|
4389
|
+
if (I[U.TOLERANCE].key !== U.TOLERANCE)
|
4390
4390
|
break;
|
4391
4391
|
const { id: v } = N;
|
4392
|
-
|
4392
|
+
I[U.TOLERANCE].value = I[U.TOLERANCE].value.filter((b) => b.id !== v), delete A[U.TOLERANCE]?.[v], Object.keys(A[U.TOLERANCE] || {}).length === 0 && (A[U.TOLERANCE] = null);
|
4393
4393
|
break;
|
4394
4394
|
}
|
4395
4395
|
case Et.EDIT_TOLERANCE_ITEM: {
|
4396
|
-
if (
|
4396
|
+
if (I[U.TOLERANCE].key !== U.TOLERANCE)
|
4397
4397
|
break;
|
4398
|
-
const { id: v, key: b, effect: O, operator: T, value: j } = N, w =
|
4398
|
+
const { id: v, key: b, effect: O, operator: T, value: j } = N, w = I[U.TOLERANCE].value.find(
|
4399
4399
|
(q) => q.id === v
|
4400
4400
|
);
|
4401
|
-
w ? (w.key = b, w.effect = O, w.operator = T, w.value = j, T === bs.EXISTS && delete w.value) :
|
4401
|
+
w ? (w.key = b, w.effect = O, w.operator = T, w.value = j, T === bs.EXISTS && delete w.value) : I[U.TOLERANCE].value.unshift({
|
4402
4402
|
id: v,
|
4403
4403
|
key: b,
|
4404
4404
|
effect: O,
|
@@ -4428,11 +4428,11 @@ const AL = (e, s = !1) => {
|
|
4428
4428
|
defaultValue: null,
|
4429
4429
|
defaultValueInitialResponse: null
|
4430
4430
|
};
|
4431
|
-
|
4431
|
+
I[b].value.push(T);
|
4432
4432
|
break;
|
4433
4433
|
}
|
4434
4434
|
case Et.SYNC_CM_CS_ITEM: {
|
4435
|
-
const { id: v, value: b, hasError: O, componentType: T } = N, j =
|
4435
|
+
const { id: v, value: b, hasError: O, componentType: T } = N, j = I[Xe[T]].value.findIndex((L) => L.id === v);
|
4436
4436
|
if (j === -1) {
|
4437
4437
|
ke.showToast({
|
4438
4438
|
variant: Se.error,
|
@@ -4440,14 +4440,14 @@ const AL = (e, s = !1) => {
|
|
4440
4440
|
}), Ma(new Error("ConfigMap does not exist"));
|
4441
4441
|
return;
|
4442
4442
|
}
|
4443
|
-
|
4443
|
+
I[Xe[T]].value[j].useFormProps = b, A[Xe[T]] || (A[Xe[T]] = {}), O ? A[Xe[T]][v] = !0 : A[Xe[T]][v] && delete A[Xe[T]][v], Object.keys(
|
4444
4444
|
A[Xe[T]]
|
4445
4445
|
).length === 0 && (A[Xe[T]] = null);
|
4446
4446
|
break;
|
4447
4447
|
}
|
4448
4448
|
case Et.DELETE_CM_CS_ITEM: {
|
4449
|
-
const { id: v, componentType: b } = N, O =
|
4450
|
-
|
4449
|
+
const { id: v, componentType: b } = N, O = I[Xe[b]].value.filter((T) => T.id !== v);
|
4450
|
+
I[Xe[b]].value = O, A[Xe[b]] && (delete A[Xe[b]][v], Object.keys(A[Xe[b]]).length === 0 && (A[Xe[b]] = null));
|
4451
4451
|
break;
|
4452
4452
|
}
|
4453
4453
|
}
|
@@ -4838,7 +4838,7 @@ const ZE = ({
|
|
4838
4838
|
showDropdownBorder: !1,
|
4839
4839
|
breakLinesForTemporaryAccess: !0,
|
4840
4840
|
showTooltipWhenDisabled: !0,
|
4841
|
-
size:
|
4841
|
+
size: M.medium
|
4842
4842
|
}
|
4843
4843
|
),
|
4844
4844
|
m && /* @__PURE__ */ t.jsx(
|
@@ -4848,7 +4848,7 @@ const ZE = ({
|
|
4848
4848
|
ariaLabel: "Delete",
|
4849
4849
|
dataTestId: "user-role-groups__delete-button",
|
4850
4850
|
onClick: _,
|
4851
|
-
size:
|
4851
|
+
size: M.xs,
|
4852
4852
|
variant: he.borderLess,
|
4853
4853
|
style: be.negativeGrey
|
4854
4854
|
}
|
@@ -5950,7 +5950,7 @@ const $N = {
|
|
5950
5950
|
onClick: e,
|
5951
5951
|
dataTestId: "close-toast",
|
5952
5952
|
ariaLabel: "Close toast",
|
5953
|
-
size:
|
5953
|
+
size: M.xs,
|
5954
5954
|
variant: he.borderLess,
|
5955
5955
|
style: be.neutral,
|
5956
5956
|
showAriaLabelInTippy: !1
|
@@ -6001,7 +6001,7 @@ const $N = {
|
|
6001
6001
|
{
|
6002
6002
|
...n,
|
6003
6003
|
variant: he.text,
|
6004
|
-
size:
|
6004
|
+
size: M.small,
|
6005
6005
|
style: be.neutral
|
6006
6006
|
}
|
6007
6007
|
)
|
@@ -8000,7 +8000,7 @@ const nC = {
|
|
8000
8000
|
icon: /* @__PURE__ */ t.jsx(nt, {}),
|
8001
8001
|
onClick: s,
|
8002
8002
|
showAriaLabelInTippy: !1,
|
8003
|
-
size:
|
8003
|
+
size: M.xs,
|
8004
8004
|
style: be.negativeGrey,
|
8005
8005
|
variant: he.borderLess
|
8006
8006
|
}
|
@@ -8028,13 +8028,13 @@ const nC = {
|
|
8028
8028
|
const f = BC(c, l.category, l.subCategory, _);
|
8029
8029
|
if (f)
|
8030
8030
|
return /* @__PURE__ */ t.jsx(Qe, { ...f, imageType: Xs.Large });
|
8031
|
-
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: S } = _ || kC(c, l.category, l.subCategory, u, o), { entities:
|
8031
|
+
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: S } = _ || kC(c, l.category, l.subCategory, u, o), { entities: I, lastScanTimeString: y, scanToolName: v, scanToolUrl: b } = _ || UC(c, l.category, l.subCategory);
|
8032
8032
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
8033
|
-
|
8033
|
+
I?.length ? /* @__PURE__ */ t.jsx(
|
8034
8034
|
fC,
|
8035
8035
|
{
|
8036
|
-
entities:
|
8037
|
-
lastScanTimeString:
|
8036
|
+
entities: I,
|
8037
|
+
lastScanTimeString: y,
|
8038
8038
|
scanToolName: v,
|
8039
8039
|
scanToolUrl: b
|
8040
8040
|
},
|
@@ -8522,7 +8522,7 @@ const nC = {
|
|
8522
8522
|
required: c,
|
8523
8523
|
onBlur: l,
|
8524
8524
|
shouldTrim: d = !0,
|
8525
|
-
size: u =
|
8525
|
+
size: u = M.large,
|
8526
8526
|
ariaLabel: m,
|
8527
8527
|
borderRadiusConfig: p,
|
8528
8528
|
labelTooltipConfig: _,
|
@@ -8542,9 +8542,9 @@ const nC = {
|
|
8542
8542
|
k(() => {
|
8543
8543
|
C(x);
|
8544
8544
|
}, [x]), kr(S, 300, [N]);
|
8545
|
-
const
|
8545
|
+
const I = (b) => {
|
8546
8546
|
C(b.target.value), g.onChange?.(b);
|
8547
|
-
},
|
8547
|
+
}, y = (b) => {
|
8548
8548
|
if (d) {
|
8549
8549
|
const O = b.target.value?.trim();
|
8550
8550
|
b.target.value !== O && (b.stopPropagation(), b.target.value = O, g.onChange(b));
|
@@ -8588,8 +8588,8 @@ const nC = {
|
|
8588
8588
|
"data-testid": e,
|
8589
8589
|
required: c,
|
8590
8590
|
value: N,
|
8591
|
-
onChange:
|
8592
|
-
onBlur:
|
8591
|
+
onChange: I,
|
8592
|
+
onBlur: y,
|
8593
8593
|
onKeyDown: v,
|
8594
8594
|
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8595
8595
|
ref: f,
|
@@ -8643,7 +8643,7 @@ const nC = {
|
|
8643
8643
|
/* @__PURE__ */ t.jsx(
|
8644
8644
|
re,
|
8645
8645
|
{
|
8646
|
-
size:
|
8646
|
+
size: M.small,
|
8647
8647
|
style: be.neutral,
|
8648
8648
|
variant: he.secondary,
|
8649
8649
|
disabled: l,
|
@@ -8655,7 +8655,7 @@ const nC = {
|
|
8655
8655
|
/* @__PURE__ */ t.jsx(
|
8656
8656
|
re,
|
8657
8657
|
{
|
8658
|
-
size:
|
8658
|
+
size: M.small,
|
8659
8659
|
onClick: _,
|
8660
8660
|
disabled: !u.isValid,
|
8661
8661
|
isLoading: l,
|
@@ -8868,7 +8868,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8868
8868
|
re,
|
8869
8869
|
{
|
8870
8870
|
text: "Okay",
|
8871
|
-
size:
|
8871
|
+
size: M.xs,
|
8872
8872
|
dataTestId: "getting-started-okay",
|
8873
8873
|
onClick: n
|
8874
8874
|
}
|
@@ -8877,7 +8877,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8877
8877
|
re,
|
8878
8878
|
{
|
8879
8879
|
text: "Don't show again",
|
8880
|
-
size:
|
8880
|
+
size: M.xs,
|
8881
8881
|
dataTestId: "getting-started-don't-show-again",
|
8882
8882
|
onClick: a,
|
8883
8883
|
style: be.neutral,
|
@@ -9064,7 +9064,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9064
9064
|
{
|
9065
9065
|
ariaLabel: "promo-header-button",
|
9066
9066
|
dataTestId: "iframe-modal-close-button",
|
9067
|
-
size:
|
9067
|
+
size: M.small,
|
9068
9068
|
onClick: i,
|
9069
9069
|
style: be.negativeGrey,
|
9070
9070
|
variant: he.borderLess,
|
@@ -9099,7 +9099,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9099
9099
|
re,
|
9100
9100
|
{
|
9101
9101
|
dataTestId: "iframe-header-button",
|
9102
|
-
size:
|
9102
|
+
size: M.small,
|
9103
9103
|
onClick: o,
|
9104
9104
|
text: n,
|
9105
9105
|
variant: he.secondary
|
@@ -9121,7 +9121,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9121
9121
|
showAnnouncementHeader: u,
|
9122
9122
|
tippyProps: m
|
9123
9123
|
}) => {
|
9124
|
-
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: h } = ua(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: C, TippyIcon: A, tippyMessage: S, onClickTippyButton:
|
9124
|
+
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: h } = ua(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: C, TippyIcon: A, tippyMessage: S, onClickTippyButton: I, additionalContent: y } = m || {}, [v, b] = R(!1), [O, T] = R(!1), { email: j } = Uu(), [w, L] = R(
|
9125
9125
|
{
|
9126
9126
|
serverInfo: void 0,
|
9127
9127
|
fetchingServerInfo: !1
|
@@ -9234,7 +9234,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9234
9234
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
9235
9235
|
documentationLink: C,
|
9236
9236
|
documentationLinkText: "Learn More",
|
9237
|
-
additionalContent:
|
9237
|
+
additionalContent: y,
|
9238
9238
|
children: A && /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(A, { className: "icon-dim-20 ml- cursor fcn-5" }) })
|
9239
9239
|
}
|
9240
9240
|
) : /* @__PURE__ */ t.jsx(
|
@@ -9244,7 +9244,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9244
9244
|
className: "dc__link flex",
|
9245
9245
|
target: "_blank",
|
9246
9246
|
href: C,
|
9247
|
-
onClick:
|
9247
|
+
onClick: I,
|
9248
9248
|
rel: "noreferrer",
|
9249
9249
|
"aria-label": "tippy-icon",
|
9250
9250
|
children: /* @__PURE__ */ t.jsx(
|
@@ -9327,7 +9327,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9327
9327
|
onClick: c,
|
9328
9328
|
dataTestId: "create-app-button-on-header",
|
9329
9329
|
endIcon: /* @__PURE__ */ t.jsx($a, { className: "icon-dim-20" }),
|
9330
|
-
size:
|
9330
|
+
size: M.small
|
9331
9331
|
}
|
9332
9332
|
) : /* @__PURE__ */ t.jsx(
|
9333
9333
|
re,
|
@@ -9335,7 +9335,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9335
9335
|
text: "Deploy helm charts",
|
9336
9336
|
onClick: l,
|
9337
9337
|
dataTestId: "deploy-helm-chart-on-header",
|
9338
|
-
size:
|
9338
|
+
size: M.small
|
9339
9339
|
}
|
9340
9340
|
), p = () => /* @__PURE__ */ t.jsxs(
|
9341
9341
|
nm,
|
@@ -9619,7 +9619,7 @@ const Yc = (e) => {
|
|
9619
9619
|
{
|
9620
9620
|
text: s,
|
9621
9621
|
dataTestId: "feature-desc__got-it",
|
9622
|
-
size:
|
9622
|
+
size: M.medium,
|
9623
9623
|
onClick: a
|
9624
9624
|
}
|
9625
9625
|
)
|
@@ -10346,12 +10346,12 @@ const Ob = (e, s) => {
|
|
10346
10346
|
if (d) {
|
10347
10347
|
const A = JSON.parse(s);
|
10348
10348
|
Tc(A.eventId).then((S) => {
|
10349
|
-
const
|
10350
|
-
p(
|
10349
|
+
const I = S.result;
|
10350
|
+
p(I.name), E(
|
10351
10351
|
Xc(
|
10352
|
-
|
10352
|
+
I.name,
|
10353
10353
|
A.condition,
|
10354
|
-
|
10354
|
+
I.selectors
|
10355
10355
|
)
|
10356
10356
|
), h(!1);
|
10357
10357
|
}).catch((S) => {
|
@@ -10376,12 +10376,12 @@ const Ob = (e, s) => {
|
|
10376
10376
|
function N() {
|
10377
10377
|
if (!d)
|
10378
10378
|
return;
|
10379
|
-
const A = JSON.parse(s), S = A.eventId,
|
10380
|
-
Tc(S).then((
|
10381
|
-
const v =
|
10382
|
-
p(v.name), E(Xc(v.name,
|
10383
|
-
}).catch((
|
10384
|
-
throw
|
10379
|
+
const A = JSON.parse(s), S = A.eventId, I = A.condition;
|
10380
|
+
Tc(S).then((y) => {
|
10381
|
+
const v = y.result;
|
10382
|
+
p(v.name), E(Xc(v.name, I, v.selectors)), h(!1);
|
10383
|
+
}).catch((y) => {
|
10384
|
+
throw y;
|
10385
10385
|
});
|
10386
10386
|
}
|
10387
10387
|
function C() {
|
@@ -10666,11 +10666,11 @@ const Ob = (e, s) => {
|
|
10666
10666
|
namespace: x,
|
10667
10667
|
workflowExecutionStages: h
|
10668
10668
|
}) => {
|
10669
|
-
const { path: g, params: f } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...S } = Tt(),
|
10669
|
+
const { path: g, params: f } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...S } = Tt(), I = l === De.CD || l === De.GROUP_CD, y = I ? "triggerId" : "buildId", v = _ === p?.id, b = Y(null), O = () => {
|
10670
10670
|
const B = {
|
10671
10671
|
...S,
|
10672
10672
|
envId: A,
|
10673
|
-
[
|
10673
|
+
[y]: e
|
10674
10674
|
};
|
10675
10675
|
return `${Fs(g, B)}/${C}`;
|
10676
10676
|
}, T = () => {
|
@@ -10679,7 +10679,7 @@ const Ob = (e, s) => {
|
|
10679
10679
|
k(() => {
|
10680
10680
|
T();
|
10681
10681
|
}, [b]);
|
10682
|
-
const j = f[
|
10682
|
+
const j = f[y], w = (B) => {
|
10683
10683
|
+j == +e && (b.current = B);
|
10684
10684
|
}, L = d !== as.DEPLOY && Object.keys(h || {}).length > 0;
|
10685
10685
|
return /* @__PURE__ */ t.jsx(
|
@@ -10741,7 +10741,7 @@ const Ob = (e, s) => {
|
|
10741
10741
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
|
10742
10742
|
/* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20", children: Pe(n).format(yt.TWELVE_HOURS_FORMAT) }),
|
10743
10743
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left cn-7 fs-12", children: [
|
10744
|
-
|
10744
|
+
I && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10745
10745
|
/* @__PURE__ */ t.jsx("div", { className: "dc__first-letter-capitalize dc__no-shrink", children: ["pre", "post"].includes(d?.toLowerCase()) ? `${d}-deploy` : d }),
|
10746
10746
|
/* @__PURE__ */ t.jsx("span", { className: "dc__bullet dc__bullet--d2 ml-4 mr-4" }),
|
10747
10747
|
c && /* @__PURE__ */ t.jsxs("div", { className: "dc__app-commit__hash dc__app-commit__hash--no-bg dc__no-shrink", children: [
|
@@ -10784,7 +10784,7 @@ const Ob = (e, s) => {
|
|
10784
10784
|
value: n.size
|
10785
10785
|
}), r({ offset: n.size, size: 20 });
|
10786
10786
|
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, f = s?.find((S) => S.value === g()) ?? null;
|
10787
|
-
s?.sort((S,
|
10787
|
+
s?.sort((S, I) => S.label > I.label ? 1 : -1);
|
10788
10788
|
const N = s?.filter((S) => !S.deploymentAppDeleteRequest), C = () => e === De.GROUP_CI || e === De.GROUP_CD ? eo.APPLICATION : e === De.CI ? eo.PIPELINE : eo.ENVIRONMENT, A = (S) => (S.selectProps.styles.option = hx(), /* @__PURE__ */ t.jsx(Ve.Option, { ...S, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10789
10789
|
(e === De.CI || e === De.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
10790
10790
|
qe,
|
@@ -10830,26 +10830,26 @@ const Ob = (e, s) => {
|
|
10830
10830
|
] }),
|
10831
10831
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
10832
10832
|
o === Cs.SUCCESS && /* @__PURE__ */ t.jsx(zb, { handleViewAllHistory: i }),
|
10833
|
-
Array.from(n).sort(([S], [
|
10833
|
+
Array.from(n).sort(([S], [I]) => I - S).map(([S, I], y) => /* @__PURE__ */ t.jsx(
|
10834
10834
|
qb,
|
10835
10835
|
{
|
10836
|
-
dataTestId: `deployment-history-${
|
10836
|
+
dataTestId: `deployment-history-${y}`,
|
10837
10837
|
id: S,
|
10838
|
-
status:
|
10839
|
-
startedOn:
|
10840
|
-
triggeredBy:
|
10841
|
-
triggeredByEmail:
|
10842
|
-
ciMaterials:
|
10843
|
-
gitTriggers:
|
10844
|
-
artifact:
|
10845
|
-
stage:
|
10838
|
+
status: I.status,
|
10839
|
+
startedOn: I.startedOn,
|
10840
|
+
triggeredBy: I.triggeredBy,
|
10841
|
+
triggeredByEmail: I.triggeredByEmail,
|
10842
|
+
ciMaterials: I.ciMaterials,
|
10843
|
+
gitTriggers: I.gitTriggers,
|
10844
|
+
artifact: I.artifact,
|
10845
|
+
stage: I.stage,
|
10846
10846
|
type: e,
|
10847
|
-
runSource:
|
10847
|
+
runSource: I.runSource,
|
10848
10848
|
renderRunSource: l,
|
10849
10849
|
resourceId: d,
|
10850
|
-
workflowExecutionStages:
|
10851
|
-
podName:
|
10852
|
-
namespace:
|
10850
|
+
workflowExecutionStages: I.workflowExecutionStages,
|
10851
|
+
podName: I.podName,
|
10852
|
+
namespace: I.namespace
|
10853
10853
|
},
|
10854
10854
|
S
|
10855
10855
|
)),
|
@@ -11000,25 +11000,25 @@ const Ob = (e, s) => {
|
|
11000
11000
|
return n.length ? n : null;
|
11001
11001
|
}, lD = (e) => {
|
11002
11002
|
const s = Y(e?.initialValues || {}), [n, a] = R(s.current), [r, o] = R({}), [i, c] = R({}), [l, d] = R({}), [u, m] = R({}), p = (S = n) => e?.validations ? typeof e.validations == "function" ? e.validations(S) : e.validations : {}, _ = (S) => {
|
11003
|
-
const
|
11004
|
-
return Object.keys(
|
11005
|
-
const b =
|
11006
|
-
O && (
|
11007
|
-
}),
|
11008
|
-
}, E = (S,
|
11009
|
-
|
11003
|
+
const I = p(S), y = {};
|
11004
|
+
return Object.keys(I || {}).forEach((v) => {
|
11005
|
+
const b = I[v], O = An(S[v], b);
|
11006
|
+
O && (y[v] = O);
|
11007
|
+
}), y;
|
11008
|
+
}, E = (S, I) => (y) => {
|
11009
|
+
y?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((b, O) => ({ ...b, [O]: !0 }), {}));
|
11010
11010
|
const v = _(n);
|
11011
11011
|
if (Object.keys(v).length) {
|
11012
|
-
d(v),
|
11012
|
+
d(v), I?.(v, y);
|
11013
11013
|
return;
|
11014
11014
|
}
|
11015
|
-
d({}), S(n,
|
11015
|
+
d({}), S(n, y);
|
11016
11016
|
};
|
11017
11017
|
k(() => {
|
11018
11018
|
e?.shouldValidateOnMount && E(ut)();
|
11019
11019
|
}, []);
|
11020
|
-
const x = (S,
|
11021
|
-
const b =
|
11020
|
+
const x = (S, I, y) => (v) => {
|
11021
|
+
const b = y ? v : v.target.value, O = I ? I(b) : b;
|
11022
11022
|
a((j) => {
|
11023
11023
|
const w = { ...j, [S]: O }, L = e?.validationMode ?? "onChange";
|
11024
11024
|
if (L === "onChange" || L === "all" || u[S] || l[S]) {
|
@@ -11029,59 +11029,59 @@ const Ob = (e, s) => {
|
|
11029
11029
|
});
|
11030
11030
|
const T = s.current;
|
11031
11031
|
o((j) => ({ ...j, [S]: !$n(T[S], O) }));
|
11032
|
-
}, h = (S,
|
11033
|
-
if (
|
11032
|
+
}, h = (S, I) => () => {
|
11033
|
+
if (I || a({ ...n, [S]: n[S]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
11034
11034
|
const v = p(), b = An(n[S], v[S]);
|
11035
11035
|
b && !u[S] && m({ ...u, [S]: !0 }), d({ ...l, [S]: b });
|
11036
11036
|
}
|
11037
11037
|
}, g = (S) => () => {
|
11038
|
-
c((
|
11038
|
+
c((I) => ({ ...I, [S]: !0 }));
|
11039
11039
|
};
|
11040
11040
|
return {
|
11041
11041
|
/** The current form data. */
|
11042
11042
|
data: n,
|
11043
11043
|
/** An object containing validation errors for each form field. */
|
11044
11044
|
errors: l,
|
11045
|
-
register: (S,
|
11046
|
-
onChange: x(S,
|
11047
|
-
onBlur: h(S,
|
11045
|
+
register: (S, I) => ({
|
11046
|
+
onChange: x(S, I?.sanitizeFn, I?.isCustomComponent),
|
11047
|
+
onBlur: h(S, I?.noTrim),
|
11048
11048
|
onFocus: g(S),
|
11049
11049
|
name: S
|
11050
11050
|
}),
|
11051
11051
|
handleSubmit: E,
|
11052
11052
|
trigger: (S) => {
|
11053
|
-
const
|
11053
|
+
const I = p();
|
11054
11054
|
if (Array.isArray(S)) {
|
11055
|
-
const
|
11056
|
-
if (
|
11057
|
-
const O =
|
11058
|
-
return
|
11055
|
+
const y = {}, v = S.map((b) => {
|
11056
|
+
if (I) {
|
11057
|
+
const O = I[b], T = An(n[b], O);
|
11058
|
+
return y[b] = T, T;
|
11059
11059
|
}
|
11060
11060
|
return null;
|
11061
11061
|
});
|
11062
|
-
return Object.keys(
|
11062
|
+
return Object.keys(y).length && d({ ...l, ...y }), v;
|
11063
11063
|
}
|
11064
|
-
if (
|
11065
|
-
const
|
11064
|
+
if (I) {
|
11065
|
+
const y = I[S], v = An(n[S], y);
|
11066
11066
|
return v && d({ ...l, [S]: v }), v;
|
11067
11067
|
}
|
11068
11068
|
return null;
|
11069
11069
|
},
|
11070
|
-
setValue: (S,
|
11071
|
-
if (a((v) => ({ ...v, [S]:
|
11070
|
+
setValue: (S, I, y) => {
|
11071
|
+
if (a((v) => ({ ...v, [S]: I })), y?.shouldDirty) {
|
11072
11072
|
const v = s.current;
|
11073
|
-
o((b) => ({ ...b, [S]: !$n(v[S],
|
11073
|
+
o((b) => ({ ...b, [S]: !$n(v[S], I) }));
|
11074
11074
|
}
|
11075
|
-
|
11075
|
+
y?.shouldTouch && c((v) => ({ ...v, [S]: !0 }));
|
11076
11076
|
},
|
11077
|
-
reset: (S,
|
11077
|
+
reset: (S, I) => {
|
11078
11078
|
const {
|
11079
|
-
keepDirty:
|
11079
|
+
keepDirty: y = !1,
|
11080
11080
|
keepTouched: v = !1,
|
11081
11081
|
keepErrors: b = !1,
|
11082
11082
|
triggerDirty: O = !1,
|
11083
11083
|
keepInitialValues: T = !1
|
11084
|
-
} =
|
11084
|
+
} = I ?? {};
|
11085
11085
|
if (a(S), T || (s.current = S), b || d({}), O) {
|
11086
11086
|
const j = s.current, w = Object.keys(S).reduce(
|
11087
11087
|
(L, B) => ({
|
@@ -11091,7 +11091,7 @@ const Ob = (e, s) => {
|
|
11091
11091
|
{}
|
11092
11092
|
);
|
11093
11093
|
o(w);
|
11094
|
-
} else
|
11094
|
+
} else y || o({});
|
11095
11095
|
v || c({});
|
11096
11096
|
},
|
11097
11097
|
/** An object representing additional form state. */
|
@@ -11569,7 +11569,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11569
11569
|
}, ET = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
11570
11570
|
const { pipelineId: r, envId: o, appId: i } = Tt(), c = n === De.CI ? `${Ga}/${G.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Ga}/${G.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [l, d, u] = xT(
|
11571
11571
|
e.podStatus && e.podStatus !== to.PENDING && c
|
11572
|
-
), [m, p] = R([]), [_, E] = R([]), [x, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: C } = au(), A = _.length > 0, S = te(() => m.every((H) => H.isOpen), [m]),
|
11572
|
+
), [m, p] = R([]), [_, E] = R([]), [x, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: C } = au(), A = _.length > 0, S = te(() => m.every((H) => H.isOpen), [m]), I = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: y, unregisterShortcut: v } = aa(), b = l[0]?.startsWith(qc) || !1;
|
11573
11573
|
function O({
|
11574
11574
|
log: H,
|
11575
11575
|
currentIndex: F = -1,
|
@@ -11605,14 +11605,14 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11605
11605
|
return le ? ce || D : pe ? H !== cn.SUCCESS || ce : D;
|
11606
11606
|
}, j = e.podStatus === to.PENDING || !!(d && d.readyState <= 1), w = (H, F) => {
|
11607
11607
|
const ce = m.reduce(
|
11608
|
-
(
|
11608
|
+
(P, $) => (P[$.stage] || (P[$.stage] = {}), P[$.stage][$.startTime] = $, P),
|
11609
11609
|
{}
|
11610
|
-
), le = {}, pe = [], D = l.reduce((
|
11610
|
+
), le = {}, pe = [], D = l.reduce((P, $, ee) => {
|
11611
11611
|
if ($.startsWith(qc))
|
11612
11612
|
try {
|
11613
11613
|
const { stage: oe, startTime: ve, endTime: Ee, status: K, metadata: se } = JSON.parse(
|
11614
11614
|
$.split(vb)[1]
|
11615
|
-
), je =
|
11615
|
+
), je = P.find((jt) => jt.stage === oe && jt.startTime === ve), xt = ce[oe]?.[ve] ?? {};
|
11616
11616
|
if (je)
|
11617
11617
|
je.endTime = Ee, je.status = K, je.isOpen = T(
|
11618
11618
|
K,
|
@@ -11622,7 +11622,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11622
11622
|
);
|
11623
11623
|
else {
|
11624
11624
|
const jt = j ? cn.PROGRESSING : cn.FAILURE;
|
11625
|
-
|
11625
|
+
P.push({
|
11626
11626
|
stage: oe || `Untitled stage ${ee + 1}`,
|
11627
11627
|
startTime: ve || "",
|
11628
11628
|
endTime: Ee || "",
|
@@ -11639,13 +11639,13 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11639
11639
|
logs: []
|
11640
11640
|
});
|
11641
11641
|
}
|
11642
|
-
return
|
11642
|
+
return P;
|
11643
11643
|
} catch {
|
11644
|
-
return
|
11644
|
+
return P;
|
11645
11645
|
}
|
11646
|
-
if (
|
11647
|
-
const oe =
|
11648
|
-
stageIndex:
|
11646
|
+
if (P.length > 0) {
|
11647
|
+
const oe = P[P.length - 1], ve = Fu({
|
11648
|
+
stageIndex: P.length - 1,
|
11649
11649
|
lineNumberInsideStage: oe.logs.length
|
11650
11650
|
}), { __html: Ee, isSearchKeyPresent: K } = O({
|
11651
11651
|
log: $,
|
@@ -11661,7 +11661,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11661
11661
|
!!F
|
11662
11662
|
), le[oe.stage] || (le[oe.stage] = {}), le[oe.stage][oe.startTime] = !0);
|
11663
11663
|
}
|
11664
|
-
return
|
11664
|
+
return P;
|
11665
11665
|
}, []);
|
11666
11666
|
return E(pe), D;
|
11667
11667
|
};
|
@@ -11684,7 +11684,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11684
11684
|
}))
|
11685
11685
|
);
|
11686
11686
|
}, [S]);
|
11687
|
-
k(() => (
|
11687
|
+
k(() => (y({ callback: L, keys: ["E"] }), () => {
|
11688
11688
|
v(["E"]);
|
11689
11689
|
}), [L]);
|
11690
11690
|
const B = (H, F = N) => {
|
@@ -11731,7 +11731,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11731
11731
|
},
|
11732
11732
|
handleEnter: q,
|
11733
11733
|
initialSearchText: N,
|
11734
|
-
size:
|
11734
|
+
size: M.large
|
11735
11735
|
}
|
11736
11736
|
),
|
11737
11737
|
!!N && /* @__PURE__ */ t.jsxs("div", { className: "flexbox px-10 py-6 dc__gap-8 dc__align-items-center", children: [
|
@@ -11772,7 +11772,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11772
11772
|
ie,
|
11773
11773
|
{
|
11774
11774
|
shortcutKeyCombo: {
|
11775
|
-
text:
|
11775
|
+
text: I,
|
11776
11776
|
combo: ["E"]
|
11777
11777
|
},
|
11778
11778
|
className: "dc__mxw-500",
|
@@ -11783,7 +11783,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11783
11783
|
type: "button",
|
11784
11784
|
className: "dc__unset-button-styles px-10 flex dc__bg-n0--opacity-0_2",
|
11785
11785
|
onClick: L,
|
11786
|
-
"aria-label":
|
11786
|
+
"aria-label": I,
|
11787
11787
|
children: S ? /* @__PURE__ */ t.jsx(O_, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" }) : /* @__PURE__ */ t.jsx(j_, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" })
|
11788
11788
|
}
|
11789
11789
|
)
|
@@ -11793,7 +11793,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11793
11793
|
}
|
11794
11794
|
),
|
11795
11795
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col px-12 dc__gap-4", children: m.map(
|
11796
|
-
({ stage: H, isOpen: F, logs: ce, endTime: le, startTime: pe, status: D, targetPlatforms:
|
11796
|
+
({ stage: H, isOpen: F, logs: ce, endTime: le, startTime: pe, status: D, targetPlatforms: P }, $) => /* @__PURE__ */ t.jsx(
|
11797
11797
|
fT,
|
11798
11798
|
{
|
11799
11799
|
stage: H,
|
@@ -11801,7 +11801,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11801
11801
|
logs: ce,
|
11802
11802
|
endTime: le,
|
11803
11803
|
startTime: pe,
|
11804
|
-
targetPlatforms:
|
11804
|
+
targetPlatforms: P,
|
11805
11805
|
status: D,
|
11806
11806
|
handleStageClose: Q,
|
11807
11807
|
handleStageOpen: de,
|
@@ -12215,7 +12215,7 @@ const vT = (e, s) => {
|
|
12215
12215
|
variant: he.text,
|
12216
12216
|
style: be.default,
|
12217
12217
|
onClick: p,
|
12218
|
-
size:
|
12218
|
+
size: M.small
|
12219
12219
|
}
|
12220
12220
|
)
|
12221
12221
|
] }),
|
@@ -12604,7 +12604,7 @@ const jT = ({
|
|
12604
12604
|
}, 1e4) : va = setTimeout(() => {
|
12605
12605
|
A();
|
12606
12606
|
}, 3e4), N(b);
|
12607
|
-
},
|
12607
|
+
}, I = () => {
|
12608
12608
|
if (n) {
|
12609
12609
|
d.push({
|
12610
12610
|
pathname: `${Oe.APP}/${Oe.DEVTRON_CHARTS}/${Oe.APP_DEPLOYMNENT_HISTORY}/${m}/env/${p}/${Oe.DETAILS}/${Oe.APP_DETAILS_K8}`,
|
@@ -12616,14 +12616,14 @@ const jT = ({
|
|
12616
12616
|
pathname: `${Oe.APP}/${m}/${Oe.APP_DETAILS}/${p}/${Oe.APP_DETAILS_K8}`,
|
12617
12617
|
search: zc
|
12618
12618
|
});
|
12619
|
-
},
|
12619
|
+
}, y = () => !h.current && !f?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
12620
12620
|
NT,
|
12621
12621
|
{
|
12622
12622
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.TITLE,
|
12623
12623
|
imgSource: L_,
|
12624
12624
|
actionButtonClass: "bcb-5 cn-0",
|
12625
12625
|
ActionButtonIcon: md,
|
12626
|
-
actionHandler:
|
12626
|
+
actionHandler: I,
|
12627
12627
|
subtitle: Ye.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.SUBTITLE,
|
12628
12628
|
actionButtonText: "Check live status",
|
12629
12629
|
actionButtonIconRight: !0,
|
@@ -12645,7 +12645,7 @@ const jT = ({
|
|
12645
12645
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
|
12646
12646
|
subTitle: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
|
12647
12647
|
}
|
12648
|
-
) }) : E ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) :
|
12648
|
+
) }) : E ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : y();
|
12649
12649
|
}, Di = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t.jsx(Nd, { children: e && /* @__PURE__ */ t.jsx(
|
12650
12650
|
mn.div,
|
12651
12651
|
{
|
@@ -12810,8 +12810,8 @@ const Zu = {
|
|
12810
12810
|
({ items: C, ...A }) => ({
|
12811
12811
|
...A,
|
12812
12812
|
isExpanded: m[A.id],
|
12813
|
-
items: C.map(({ diffState: S, ...
|
12814
|
-
...
|
12813
|
+
items: C.map(({ diffState: S, ...I }) => ({
|
12814
|
+
...I,
|
12815
12815
|
strikeThrough: d && S === wt.DELETED,
|
12816
12816
|
...!u && S !== wt.NO_DIFF ? {
|
12817
12817
|
iconConfig: {
|
@@ -12847,8 +12847,8 @@ const Zu = {
|
|
12847
12847
|
}
|
12848
12848
|
) });
|
12849
12849
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12850
|
-
n.map(({ title: C, href: A, onClick: S, diffState:
|
12851
|
-
const v = d ? Mn[
|
12850
|
+
n.map(({ title: C, href: A, onClick: S, diffState: I, Icon: y }) => {
|
12851
|
+
const v = d ? Mn[I] : Mn.hasDiff;
|
12852
12852
|
return /* @__PURE__ */ t.jsxs(
|
12853
12853
|
_t,
|
12854
12854
|
{
|
@@ -12857,13 +12857,13 @@ const Zu = {
|
|
12857
12857
|
to: A,
|
12858
12858
|
onClick: S,
|
12859
12859
|
children: [
|
12860
|
-
|
12860
|
+
y && /* @__PURE__ */ t.jsx(y, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
12861
12861
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children: C }),
|
12862
|
-
!u &&
|
12862
|
+
!u && I !== wt.NO_DIFF && /* @__PURE__ */ t.jsx(
|
12863
12863
|
fe,
|
12864
12864
|
{
|
12865
12865
|
className: "default-tt",
|
12866
|
-
content: d ? Aa[
|
12866
|
+
content: d ? Aa[I] : Aa.hasDiff,
|
12867
12867
|
arrow: !1,
|
12868
12868
|
placement: "right",
|
12869
12869
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(v, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
@@ -13575,7 +13575,7 @@ const Zu = {
|
|
13575
13575
|
},
|
13576
13576
|
diffState: Da(C, A)
|
13577
13577
|
});
|
13578
|
-
const
|
13578
|
+
const I = pl(
|
13579
13579
|
x.configMapData,
|
13580
13580
|
h.configMapData,
|
13581
13581
|
Vt.ConfigMap,
|
@@ -13583,7 +13583,7 @@ const Zu = {
|
|
13583
13583
|
h.isAppAdmin,
|
13584
13584
|
r,
|
13585
13585
|
c
|
13586
|
-
),
|
13586
|
+
), y = pl(
|
13587
13587
|
x.secretsData,
|
13588
13588
|
h.secretsData,
|
13589
13589
|
Vt.Secret,
|
@@ -13594,8 +13594,8 @@ const Zu = {
|
|
13594
13594
|
), v = [
|
13595
13595
|
N,
|
13596
13596
|
...S ? [S] : [],
|
13597
|
-
...
|
13598
|
-
...
|
13597
|
+
...I,
|
13598
|
+
...y
|
13599
13599
|
], b = [
|
13600
13600
|
{
|
13601
13601
|
title: N.title,
|
@@ -13621,7 +13621,7 @@ const Zu = {
|
|
13621
13621
|
{
|
13622
13622
|
header: "ConfigMaps",
|
13623
13623
|
id: rt.ConfigMap,
|
13624
|
-
items:
|
13624
|
+
items: I.map(({ name: T, diffState: j, id: w }) => ({
|
13625
13625
|
title: T,
|
13626
13626
|
diffState: j,
|
13627
13627
|
href: n(rt.ConfigMap, T),
|
@@ -13634,7 +13634,7 @@ const Zu = {
|
|
13634
13634
|
{
|
13635
13635
|
header: "Secrets",
|
13636
13636
|
id: rt.Secret,
|
13637
|
-
items:
|
13637
|
+
items: y.map(({ name: T, diffState: j, id: w }) => ({
|
13638
13638
|
title: T,
|
13639
13639
|
diffState: j,
|
13640
13640
|
href: n(rt.Secret, T),
|
@@ -13791,7 +13791,7 @@ const Zu = {
|
|
13791
13791
|
text: "Sort keys",
|
13792
13792
|
variant: he.borderLess,
|
13793
13793
|
style: be.neutral,
|
13794
|
-
size:
|
13794
|
+
size: M.small,
|
13795
13795
|
startIcon: C ? /* @__PURE__ */ t.jsx(
|
13796
13796
|
Cr,
|
13797
13797
|
{
|
@@ -13820,7 +13820,7 @@ const Zu = {
|
|
13820
13820
|
);
|
13821
13821
|
}
|
13822
13822
|
return null;
|
13823
|
-
}, g = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title: S, diffState:
|
13823
|
+
}, g = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title: S, diffState: I, singleView: y }) => {
|
13824
13824
|
const { heading: v, list: b } = C, { heading: O, list: T } = A;
|
13825
13825
|
return /* @__PURE__ */ t.jsx(
|
13826
13826
|
PT,
|
@@ -13828,12 +13828,12 @@ const Zu = {
|
|
13828
13828
|
id: N,
|
13829
13829
|
title: S,
|
13830
13830
|
isExpanded: u[N],
|
13831
|
-
diffState:
|
13831
|
+
diffState: I,
|
13832
13832
|
onClick: p(N),
|
13833
13833
|
onTransitionEnd: _(N),
|
13834
13834
|
showDetailedDiffState: l,
|
13835
13835
|
hideDiffState: d,
|
13836
|
-
children:
|
13836
|
+
children: y ? /* @__PURE__ */ t.jsx(
|
13837
13837
|
em,
|
13838
13838
|
{
|
13839
13839
|
oldValue: b.codeEditorValue.value,
|
@@ -14043,7 +14043,7 @@ const Zu = {
|
|
14043
14043
|
isCompareDeploymentConfigNotAvailable: u,
|
14044
14044
|
...m
|
14045
14045
|
}) => {
|
14046
|
-
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting: S } = r, [
|
14046
|
+
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting: S } = r, [I, y] = R({
|
14047
14047
|
isLoading: !1,
|
14048
14048
|
data: c,
|
14049
14049
|
hasMore: c.size >= nn
|
@@ -14052,36 +14052,36 @@ const Zu = {
|
|
14052
14052
|
i(!1), s(!1);
|
14053
14053
|
}), []);
|
14054
14054
|
const O = async (F) => {
|
14055
|
-
|
14055
|
+
y({ ...I, isLoading: !0 });
|
14056
14056
|
try {
|
14057
14057
|
const { result: ce } = await _T({
|
14058
14058
|
appId: +h,
|
14059
14059
|
envId: +g,
|
14060
14060
|
pagination: { offset: F, size: nn }
|
14061
|
-
}), le = new Map((ce.cdWorkflows || []).map((D) => [D.id, D])), pe = new Map([...
|
14062
|
-
|
14061
|
+
}), le = new Map((ce.cdWorkflows || []).map((D) => [D.id, D])), pe = new Map([...I.data, ...le]);
|
14062
|
+
y({
|
14063
14063
|
isLoading: !1,
|
14064
14064
|
data: pe,
|
14065
14065
|
hasMore: ce.cdWorkflows?.length === nn
|
14066
14066
|
}), b(sm(pe));
|
14067
14067
|
} catch {
|
14068
|
-
|
14068
|
+
y({ ...I, isLoading: !1 });
|
14069
14069
|
}
|
14070
|
-
}, T = () => O(
|
14070
|
+
}, T = () => O(I.data.size), j = () => I.hasMore ? /* @__PURE__ */ t.jsx("div", { className: "px-4", children: /* @__PURE__ */ t.jsx(
|
14071
14071
|
re,
|
14072
14072
|
{
|
14073
|
-
isLoading:
|
14073
|
+
isLoading: I.isLoading,
|
14074
14074
|
onClick: T,
|
14075
14075
|
dataTestId: "load-more-previous-deployments",
|
14076
14076
|
variant: he.borderLess,
|
14077
14077
|
text: "Load more",
|
14078
|
-
size:
|
14078
|
+
size: M.small,
|
14079
14079
|
fullWidth: !0
|
14080
14080
|
}
|
14081
14081
|
) }) : null, { currentDeployment: w, pipelineDeploymentsOptions: L } = JT({
|
14082
14082
|
pipelineDeployments: v,
|
14083
14083
|
wfrId: a,
|
14084
|
-
triggerHistory:
|
14084
|
+
triggerHistory: I.data,
|
14085
14085
|
renderRunSource: l,
|
14086
14086
|
resourceId: d
|
14087
14087
|
}), B = L.find(({ value: F }) => F === f), V = !!L.length, X = ({ value: F }) => {
|
@@ -14101,7 +14101,7 @@ const Zu = {
|
|
14101
14101
|
value: _n(L, f, null),
|
14102
14102
|
onChange: X,
|
14103
14103
|
showSelectedOptionIcon: !1,
|
14104
|
-
menuSize:
|
14104
|
+
menuSize: M.large,
|
14105
14105
|
renderOptionsFooter: j
|
14106
14106
|
}
|
14107
14107
|
}
|
@@ -14158,7 +14158,7 @@ const Zu = {
|
|
14158
14158
|
[_, a]
|
14159
14159
|
), h = !!x, g = au({
|
14160
14160
|
parseSearchParams: ZT(x)
|
14161
|
-
}), { compareWfrId: f, sortBy: N, sortOrder: C } = g, [A, S] = R(!1), [
|
14161
|
+
}), { compareWfrId: f, sortBy: N, sortOrder: C } = g, [A, S] = R(!1), [I, y, , v] = Kt(async () => {
|
14162
14162
|
const X = [
|
14163
14163
|
{
|
14164
14164
|
appName: e,
|
@@ -14182,13 +14182,13 @@ const Zu = {
|
|
14182
14182
|
Q[Ie].status !== "fulfilled" || !Q[Ie].value || Q[Ie].value.result.isAppAdmin || (Q[Ie].value.result.secretsData = de.secretsData);
|
14183
14183
|
}), Q;
|
14184
14184
|
}, [E, f]), b = (X, q) => `${Fs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`, O = te(() => {
|
14185
|
-
if (!
|
14186
|
-
const X = h &&
|
14185
|
+
if (!I && y) {
|
14186
|
+
const X = h && y[1].status === "fulfilled" ? y[1].value.result : {
|
14187
14187
|
configMapData: null,
|
14188
14188
|
deploymentTemplate: null,
|
14189
14189
|
secretsData: null,
|
14190
14190
|
isAppAdmin: !1
|
14191
|
-
}, q =
|
14191
|
+
}, q = y[0].status === "fulfilled" ? y[0].value.result : null;
|
14192
14192
|
return GT({
|
14193
14193
|
currentList: q,
|
14194
14194
|
compareList: X,
|
@@ -14200,23 +14200,23 @@ const Zu = {
|
|
14200
14200
|
return null;
|
14201
14201
|
}, [
|
14202
14202
|
h,
|
14203
|
-
y,
|
14204
14203
|
I,
|
14204
|
+
y,
|
14205
14205
|
A,
|
14206
14206
|
N,
|
14207
14207
|
C
|
14208
14208
|
]), T = te(
|
14209
|
-
() => !
|
14210
|
-
[
|
14209
|
+
() => !I && y ? hl(y[0]) || hl(y[1]) : null,
|
14210
|
+
[I, y]
|
14211
14211
|
), j = te(
|
14212
14212
|
() => O ? RN(O.configList, "groupHeader") : [],
|
14213
14213
|
[O]
|
14214
|
-
), w =
|
14214
|
+
), w = y && fl(y[1]), L = !h || w, B = I || !T && !O, V = {
|
14215
14215
|
code: T?.code,
|
14216
|
-
error: T && !
|
14216
|
+
error: T && !I,
|
14217
14217
|
reload: v
|
14218
14218
|
};
|
14219
|
-
return
|
14219
|
+
return y && fl(y[0]) ? /* @__PURE__ */ t.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ t.jsx(
|
14220
14220
|
Qe,
|
14221
14221
|
{
|
14222
14222
|
title: "Data not available",
|
@@ -14243,7 +14243,7 @@ const Zu = {
|
|
14243
14243
|
isCompareDeploymentConfigNotAvailable: w
|
14244
14244
|
}
|
14245
14245
|
) }),
|
14246
|
-
/* @__PURE__ */ t.jsx(Bs, { children: T && !
|
14246
|
+
/* @__PURE__ */ t.jsx(Bs, { children: T && !I ? /* @__PURE__ */ t.jsx(Lr, { code: V.code, reload: V.reload }) : /* @__PURE__ */ t.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: B ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14247
14247
|
/* @__PURE__ */ t.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: L ? "Configurations used for this deployment trigger" : "Showing configuration change with respect to previous deployment" }),
|
14248
14248
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
14249
14249
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(j).map(
|
@@ -14342,7 +14342,7 @@ const ct = ({
|
|
14342
14342
|
if (C.isIntersecting && C.intersectionRatio >= 1)
|
14343
14343
|
l(1);
|
14344
14344
|
else {
|
14345
|
-
const { boundingClientRect: A, rootBounds: S } = C, { x:
|
14345
|
+
const { boundingClientRect: A, rootBounds: S } = C, { x: I, y, height: v, width: b } = A, {
|
14346
14346
|
x: O,
|
14347
14347
|
y: T,
|
14348
14348
|
height: j,
|
@@ -14352,7 +14352,7 @@ const ct = ({
|
|
14352
14352
|
top: V,
|
14353
14353
|
bottom: X
|
14354
14354
|
} = u.current.getBoundingClientRect();
|
14355
|
-
|
14355
|
+
y + v > S.height && (i({ left: O, bottom: document.documentElement.clientHeight - T }), l(1)), I + b > S.width && (i((q) => ({ ...q, right: "20px", left: "unset" })), l(1));
|
14356
14356
|
}
|
14357
14357
|
});
|
14358
14358
|
}
|
@@ -14369,8 +14369,8 @@ const ct = ({
|
|
14369
14369
|
function g(f) {
|
14370
14370
|
if (!f) return;
|
14371
14371
|
u.current = f;
|
14372
|
-
const { bottom: N, height: C, left: A, right: S, top:
|
14373
|
-
m.current =
|
14372
|
+
const { bottom: N, height: C, left: A, right: S, top: I, width: y, x: v, y: b } = f.getBoundingClientRect();
|
14373
|
+
m.current = y;
|
14374
14374
|
}
|
14375
14375
|
return /* @__PURE__ */ t.jsx(
|
14376
14376
|
am.Provider,
|
@@ -14471,12 +14471,12 @@ const zt = ({
|
|
14471
14471
|
}, [m]), useEffectAfterMount(() => {
|
14472
14472
|
p(n);
|
14473
14473
|
}, [n]);
|
14474
|
-
function N(
|
14475
|
-
p(v),
|
14474
|
+
function N(y, v) {
|
14475
|
+
p(v), y.target.name = c, y.target.value = v, s(y);
|
14476
14476
|
}
|
14477
14477
|
if (!e) return null;
|
14478
|
-
const { button: C, body: A, optionLength: S, AsyncComponent:
|
14479
|
-
(
|
14478
|
+
const { button: C, body: A, optionLength: S, AsyncComponent: I } = Ce.Children.toArray(e).reduce(
|
14479
|
+
(y, v) => (v.type === lm ? y.button = v : v.type === dm ? y.AsyncComponent = v : ((v.type === im || v.type === cm) && (y.optionLength += 1), y.body.push(v)), y),
|
14480
14480
|
{ button: null, body: [], optionLength: 0, AsyncComponent: null }
|
14481
14481
|
);
|
14482
14482
|
return /* @__PURE__ */ t.jsx(
|
@@ -14494,7 +14494,7 @@ const zt = ({
|
|
14494
14494
|
loading: g,
|
14495
14495
|
setLoading: f
|
14496
14496
|
},
|
14497
|
-
children: /* @__PURE__ */ t.jsxs(ct, { onToggleCallback: (
|
14497
|
+
children: /* @__PURE__ */ t.jsxs(ct, { onToggleCallback: (y) => E(y), autoClose: _, children: [
|
14498
14498
|
/* @__PURE__ */ t.jsx(
|
14499
14499
|
ct.Button,
|
14500
14500
|
{
|
@@ -14506,7 +14506,7 @@ const zt = ({
|
|
14506
14506
|
children: C
|
14507
14507
|
}
|
14508
14508
|
),
|
14509
|
-
_ &&
|
14509
|
+
_ && I,
|
14510
14510
|
/* @__PURE__ */ t.jsx(ct.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children: g ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14511
14511
|
S === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
|
14512
14512
|
A
|
@@ -14821,8 +14821,8 @@ const uS = 100, et = Ce.memo(
|
|
14821
14821
|
cleanData: C = !1,
|
14822
14822
|
onBlur: A,
|
14823
14823
|
onFocus: S,
|
14824
|
-
adjustEditorHeightToContent:
|
14825
|
-
disableSearch:
|
14824
|
+
adjustEditorHeightToContent: I = !1,
|
14825
|
+
disableSearch: y = !1,
|
14826
14826
|
originalEditable: v = !1
|
14827
14827
|
}) => {
|
14828
14828
|
const { appTheme: b } = yr();
|
@@ -14840,7 +14840,7 @@ const uS = 100, et = Ce.memo(
|
|
14840
14840
|
appTheme: b
|
14841
14841
|
})
|
14842
14842
|
), [, X, q, Q] = Ul(B.code, o, B.mode, !B.noParsing), [, de, Ie] = Ul(B.defaultCode, o, B.mode, !B.noParsing), [H, F] = R(
|
14843
|
-
|
14843
|
+
I ? uS : c
|
14844
14844
|
), ce = Y(u);
|
14845
14845
|
ce.current = u, Gr.defineTheme(qn.vsDarkDT, {
|
14846
14846
|
base: "vs-dark",
|
@@ -14865,21 +14865,21 @@ const uS = 100, et = Ce.memo(
|
|
14865
14865
|
}), k(() => {
|
14866
14866
|
V({ type: "setTheme", value: mm(_, b) });
|
14867
14867
|
}, [b]), k(() => {
|
14868
|
-
const K =
|
14868
|
+
const K = y ? Gr.addKeybindingRule({
|
14869
14869
|
command: null,
|
14870
14870
|
keybinding: xf.KeyF | Ef.CtrlCmd
|
14871
14871
|
}) : null;
|
14872
14872
|
return () => {
|
14873
14873
|
K?.dispose();
|
14874
14874
|
};
|
14875
|
-
}, [
|
14875
|
+
}, [y]);
|
14876
14876
|
const le = (K) => {
|
14877
|
-
s === Fe.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)),
|
14877
|
+
s === Fe.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(() => {
|
14878
14878
|
F(K.getContentHeight());
|
14879
14879
|
}), F(K.getContentHeight())), O.current = K, T.current = sc;
|
14880
14880
|
}, pe = (K, se) => {
|
14881
14881
|
const je = K.getOriginalEditor(), xt = K.getModifiedEditor();
|
14882
|
-
|
14882
|
+
I && (je.onDidContentSizeChange(() => {
|
14883
14883
|
F(
|
14884
14884
|
Math.max(
|
14885
14885
|
typeof H == "number" ? H : Number.MIN_SAFE_INTEGER,
|
@@ -14896,7 +14896,7 @@ const uS = 100, et = Ce.memo(
|
|
14896
14896
|
}), F(Math.max(je.getContentHeight(), xt.getContentHeight()))), v && je.onDidChangeModelContent(() => {
|
14897
14897
|
$(xt.getValue(), je.getValue());
|
14898
14898
|
}), O.current = K, T.current = se;
|
14899
|
-
}, D = te(() =>
|
14899
|
+
}, D = te(() => I ? H : c, [c, H, I]);
|
14900
14900
|
k(() => {
|
14901
14901
|
if (!g)
|
14902
14902
|
return;
|
@@ -14920,27 +14920,27 @@ const uS = 100, et = Ce.memo(
|
|
14920
14920
|
}, [m]), k(() => {
|
14921
14921
|
O.current && O.current.layout();
|
14922
14922
|
}, [j, w]);
|
14923
|
-
const
|
14923
|
+
const P = (K, se) => {
|
14924
14924
|
V({ type: "setCode", value: K }), V({ type: "setDefaultCode", value: se }), ce.current?.(K, se);
|
14925
14925
|
};
|
14926
14926
|
ur(() => {
|
14927
14927
|
if (n) {
|
14928
|
-
|
14928
|
+
P(e, a);
|
14929
14929
|
return;
|
14930
14930
|
}
|
14931
|
-
e !== B.code &&
|
14931
|
+
e !== B.code && P(ir(e, B.mode, o), ir(a, B.mode, o));
|
14932
14932
|
}, [e, a, n]), k(() => {
|
14933
14933
|
V({ type: "setDiff", value: p });
|
14934
14934
|
}, [p]), k(() => {
|
14935
14935
|
h && O.current.focus();
|
14936
14936
|
}, [h]);
|
14937
14937
|
const $ = (K, se) => {
|
14938
|
-
|
14938
|
+
P(K, se);
|
14939
14939
|
}, ee = (K) => {
|
14940
14940
|
$(K, O.current?.getOriginalEditor?.().getValue?.() ?? "");
|
14941
14941
|
};
|
14942
14942
|
function oe(K) {
|
14943
|
-
V({ type: "changeLanguage", value: K }),
|
14943
|
+
V({ type: "changeLanguage", value: K }), P(K === "json" ? X : q, K === "json" ? de : Ie);
|
14944
14944
|
}
|
14945
14945
|
const ve = {
|
14946
14946
|
selectOnLineNumbers: !0,
|
@@ -14949,8 +14949,8 @@ const uS = 100, et = Ce.memo(
|
|
14949
14949
|
lineDecorationsWidth: i,
|
14950
14950
|
automaticLayout: !0,
|
14951
14951
|
scrollBeyondLastLine: !1,
|
14952
|
-
...
|
14953
|
-
overviewRulerLanes:
|
14952
|
+
...I ? {
|
14953
|
+
overviewRulerLanes: I ? 0 : 1
|
14954
14954
|
} : {},
|
14955
14955
|
minimap: {
|
14956
14956
|
enabled: !1
|
@@ -14958,7 +14958,7 @@ const uS = 100, et = Ce.memo(
|
|
14958
14958
|
scrollbar: {
|
14959
14959
|
alwaysConsumeMouseWheel: !1,
|
14960
14960
|
vertical: l ? "hidden" : "auto",
|
14961
|
-
...
|
14961
|
+
...I ? {
|
14962
14962
|
vertical: "hidden",
|
14963
14963
|
verticalScrollbarSize: 0,
|
14964
14964
|
verticalSliderSize: 0
|
@@ -15456,9 +15456,9 @@ const TS = () => (e) => {
|
|
15456
15456
|
m({ caseSensitive: L });
|
15457
15457
|
}, S = (L) => {
|
15458
15458
|
m({ wholeWord: L });
|
15459
|
-
},
|
15459
|
+
}, I = (L) => {
|
15460
15460
|
m({ regexp: L });
|
15461
|
-
},
|
15461
|
+
}, y = () => {
|
15462
15462
|
l(!c), e.dispatch({ effects: [pa.of(!c)] });
|
15463
15463
|
}, v = (L) => {
|
15464
15464
|
L.preventDefault(), L.stopPropagation(), Dp(e);
|
@@ -15479,8 +15479,8 @@ const TS = () => (e) => {
|
|
15479
15479
|
),
|
15480
15480
|
variant: he.borderLess,
|
15481
15481
|
style: be.neutral,
|
15482
|
-
size:
|
15483
|
-
onClick:
|
15482
|
+
size: M.xxs,
|
15483
|
+
onClick: y,
|
15484
15484
|
showTooltip: !0,
|
15485
15485
|
tooltipProps: {
|
15486
15486
|
content: "Toggle Replace",
|
@@ -15524,7 +15524,7 @@ const TS = () => (e) => {
|
|
15524
15524
|
{
|
15525
15525
|
Icon: Td,
|
15526
15526
|
isChecked: a.regexp,
|
15527
|
-
onChange:
|
15527
|
+
onChange: I,
|
15528
15528
|
iconType: "fill",
|
15529
15529
|
tooltipText: "Use Regular Expression"
|
15530
15530
|
}
|
@@ -15539,7 +15539,7 @@ const TS = () => (e) => {
|
|
15539
15539
|
icon: /* @__PURE__ */ t.jsx(ho, { className: "rotate", style: { "--rotateBy": "180deg" } }),
|
15540
15540
|
variant: he.borderLess,
|
15541
15541
|
style: be.neutral,
|
15542
|
-
size:
|
15542
|
+
size: M.xxs,
|
15543
15543
|
onClick: _,
|
15544
15544
|
disabled: d,
|
15545
15545
|
showTooltip: !0,
|
@@ -15561,7 +15561,7 @@ const TS = () => (e) => {
|
|
15561
15561
|
icon: /* @__PURE__ */ t.jsx(ho, {}),
|
15562
15562
|
variant: he.borderLess,
|
15563
15563
|
style: be.neutral,
|
15564
|
-
size:
|
15564
|
+
size: M.xxs,
|
15565
15565
|
onClick: p,
|
15566
15566
|
disabled: d,
|
15567
15567
|
showTooltip: !0,
|
@@ -15583,7 +15583,7 @@ const TS = () => (e) => {
|
|
15583
15583
|
icon: /* @__PURE__ */ t.jsx(Zl, {}),
|
15584
15584
|
variant: he.borderLess,
|
15585
15585
|
style: be.neutral,
|
15586
|
-
size:
|
15586
|
+
size: M.xxs,
|
15587
15587
|
onClick: f,
|
15588
15588
|
showTooltip: !0,
|
15589
15589
|
tooltipProps: {
|
@@ -15601,7 +15601,7 @@ const TS = () => (e) => {
|
|
15601
15601
|
icon: /* @__PURE__ */ t.jsx(nt, {}),
|
15602
15602
|
variant: he.borderLess,
|
15603
15603
|
style: be.neutral,
|
15604
|
-
size:
|
15604
|
+
size: M.xxs,
|
15605
15605
|
onClick: v,
|
15606
15606
|
showTooltip: !0,
|
15607
15607
|
tooltipProps: {
|
@@ -15635,7 +15635,7 @@ const TS = () => (e) => {
|
|
15635
15635
|
icon: /* @__PURE__ */ t.jsx(Tf, {}),
|
15636
15636
|
variant: he.borderLess,
|
15637
15637
|
style: be.neutral,
|
15638
|
-
size:
|
15638
|
+
size: M.xxs,
|
15639
15639
|
onClick: N,
|
15640
15640
|
showTooltip: !0,
|
15641
15641
|
tooltipProps: {
|
@@ -15656,7 +15656,7 @@ const TS = () => (e) => {
|
|
15656
15656
|
icon: /* @__PURE__ */ t.jsx(Sf, {}),
|
15657
15657
|
variant: he.borderLess,
|
15658
15658
|
style: be.neutral,
|
15659
|
-
size:
|
15659
|
+
size: M.xxs,
|
15660
15660
|
onClick: C,
|
15661
15661
|
showTooltip: !0,
|
15662
15662
|
tooltipProps: {
|
@@ -15747,14 +15747,14 @@ const TS = () => (e) => {
|
|
15747
15747
|
const [r, o] = R(0), [i, c] = R(50), [l, d] = R(!1), u = Y(null), m = Y(null), p = Y(0), _ = Y(0), E = Nn(s), x = () => {
|
15748
15748
|
if (!e?.dom || !u.current || !m.current)
|
15749
15749
|
return;
|
15750
|
-
const { clientHeight: A, scrollHeight: S, scrollTop:
|
15750
|
+
const { clientHeight: A, scrollHeight: S, scrollTop: I } = e.dom, y = u.current.clientHeight, v = A / S * y, b = Math.max(v, US), O = I / S * y;
|
15751
15751
|
c(b), o(
|
15752
15752
|
O + b > A ? A - b : O
|
15753
15753
|
);
|
15754
15754
|
};
|
15755
15755
|
k(() => {
|
15756
15756
|
x();
|
15757
|
-
}, [a]);
|
15757
|
+
}, [e, a]);
|
15758
15758
|
const h = () => {
|
15759
15759
|
x();
|
15760
15760
|
}, g = (A) => {
|
@@ -15762,8 +15762,8 @@ const TS = () => (e) => {
|
|
15762
15762
|
}, f = (A) => {
|
15763
15763
|
if (!l || !e?.dom || !u.current)
|
15764
15764
|
return;
|
15765
|
-
const { scrollHeight: S, clientHeight:
|
15766
|
-
e.dom.scrollTo({ top: _.current + b * (S -
|
15765
|
+
const { scrollHeight: S, clientHeight: I } = e.dom, y = u.current.clientHeight, b = (A.clientY - p.current) / y;
|
15766
|
+
e.dom.scrollTo({ top: _.current + b * (S - I) });
|
15767
15767
|
}, N = () => {
|
15768
15768
|
d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
|
15769
15769
|
};
|
@@ -15780,11 +15780,11 @@ const TS = () => (e) => {
|
|
15780
15780
|
};
|
15781
15781
|
}, [e]), k(() => (l ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", N)) : (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", N)), () => {
|
15782
15782
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", N);
|
15783
|
-
}), [l]);
|
15783
|
+
}), [e, l]);
|
15784
15784
|
const C = (A) => {
|
15785
15785
|
if (!e.dom || !u.current) return;
|
15786
|
-
const { clientHeight: S, scrollHeight:
|
15787
|
-
e.dom.scrollTo({ top: b * (
|
15786
|
+
const { clientHeight: S, scrollHeight: I } = e.dom, y = u.current.clientHeight, b = (A.clientY - u.current.getBoundingClientRect().top) / y;
|
15787
|
+
e.dom.scrollTo({ top: b * (I - S) });
|
15788
15788
|
};
|
15789
15789
|
return /* @__PURE__ */ t.jsxs(
|
15790
15790
|
"div",
|
@@ -15968,9 +15968,9 @@ const TS = () => (e) => {
|
|
15968
15968
|
autoFocus: g,
|
15969
15969
|
diffMinimapExtensions: f
|
15970
15970
|
}) => {
|
15971
|
-
const { value: N, lhsValue: C, diffMode: A } = wr(), [S,
|
15971
|
+
const { value: N, lhsValue: C, diffMode: A } = wr(), [S, I] = R(0), [y, v] = R(null), [b, O] = R(null), [T, j] = R(1), w = Y(), L = Y(), B = Y(), V = Y(), X = Nn(s), q = () => {
|
15972
15972
|
const D = document.querySelector(".cm-gutters");
|
15973
|
-
D &&
|
15973
|
+
D && I(D.getBoundingClientRect().width);
|
15974
15974
|
};
|
15975
15975
|
k(() => {
|
15976
15976
|
q();
|
@@ -15980,101 +15980,104 @@ const TS = () => (e) => {
|
|
15980
15980
|
}, 100);
|
15981
15981
|
}, [g]), k(() => {
|
15982
15982
|
let D = !1;
|
15983
|
-
const
|
15984
|
-
if (
|
15985
|
-
if (
|
15986
|
-
const $ =
|
15983
|
+
const P = document.querySelector("body");
|
15984
|
+
if (P) {
|
15985
|
+
if (y) {
|
15986
|
+
const $ = y.a, ee = y.b;
|
15987
15987
|
D = ($.hasFocus || ee.hasFocus) && ($.scrollDOM.scrollWidth > $.scrollDOM.clientWidth || ee.scrollDOM.scrollWidth > ee.scrollDOM.clientWidth);
|
15988
15988
|
} else if (w.current?.view) {
|
15989
15989
|
const { scrollWidth: $, clientWidth: ee } = w.current.view.scrollDOM;
|
15990
15990
|
D = w.current.view.hasFocus && $ > ee;
|
15991
15991
|
}
|
15992
|
-
D ?
|
15992
|
+
D ? P.classList.add("dc__overscroll-none") : P.classList.remove("dc__overscroll-none");
|
15993
15993
|
}
|
15994
15994
|
}, [
|
15995
|
-
|
15996
|
-
|
15995
|
+
y?.a?.hasFocus,
|
15996
|
+
y?.b?.hasFocus,
|
15997
15997
|
w.current?.view?.hasFocus
|
15998
15998
|
]);
|
15999
15999
|
const Q = () => {
|
16000
|
-
|
16001
|
-
left:
|
16000
|
+
y.a.scrollDOM.scrollTo({
|
16001
|
+
left: y.b.scrollDOM.scrollLeft
|
16002
16002
|
});
|
16003
16003
|
}, de = () => {
|
16004
|
-
|
16005
|
-
left:
|
16004
|
+
y.b.scrollDOM.scrollTo({
|
16005
|
+
left: y.a.scrollDOM.scrollLeft
|
16006
16006
|
});
|
16007
16007
|
};
|
16008
|
-
k(() => (n ||
|
16009
|
-
|
16010
|
-
}), [
|
16008
|
+
k(() => (n || y && (y.a.scrollDOM.addEventListener("scroll", de), y.b.scrollDOM.addEventListener("scroll", Q)), () => {
|
16009
|
+
y && (y.b.scrollDOM.removeEventListener("scroll", Q), y.a.scrollDOM.removeEventListener("scroll", de));
|
16010
|
+
}), [y]);
|
16011
16011
|
const Ie = () => {
|
16012
16012
|
q();
|
16013
16013
|
}, H = Fn.updateListener.of((D) => {
|
16014
16014
|
if (D.docChanged) {
|
16015
|
-
const { doc:
|
16015
|
+
const { doc: P } = D.state, $ = P.toString();
|
16016
16016
|
c($, D);
|
16017
16017
|
}
|
16018
16018
|
xl(B.current, D.transactions, "a");
|
16019
16019
|
}), F = Fn.updateListener.of((D) => {
|
16020
16020
|
if (D.docChanged) {
|
16021
|
-
const { doc:
|
16021
|
+
const { doc: P } = D.state, $ = P.toString();
|
16022
16022
|
d($, D);
|
16023
16023
|
}
|
16024
16024
|
xl(B.current, D.transactions, "b");
|
16025
16025
|
});
|
16026
|
-
k(() =>
|
16027
|
-
|
16028
|
-
|
16029
|
-
doc: C,
|
16030
|
-
extensions: [...l, H]
|
16031
|
-
},
|
16032
|
-
b: {
|
16033
|
-
doc: N,
|
16034
|
-
extensions: [...u, F]
|
16035
|
-
},
|
16036
|
-
...i ? {} : { revertControls: "a-to-b", renderRevertControl: jS },
|
16037
|
-
diffConfig: { scanLimit: 5e3 },
|
16038
|
-
parent: L.current
|
16039
|
-
})
|
16040
|
-
), () => {
|
16041
|
-
I?.destroy(), v(null);
|
16042
|
-
}), [n, e, A]), k(() => {
|
16043
|
-
if (I) {
|
16044
|
-
const D = I.a.state.doc.toString();
|
16045
|
-
D !== C && I.a.dispatch({
|
16046
|
-
changes: { from: 0, to: D.length, insert: C || "" }
|
16047
|
-
}), I.b.state.doc.toString() !== N && I.b.dispatch({
|
16048
|
-
changes: { from: 0, to: D.length, insert: N || "" }
|
16049
|
-
});
|
16050
|
-
}
|
16051
|
-
}, [C, N]), k(() => {
|
16052
|
-
if (I && V.current) {
|
16026
|
+
k(() => {
|
16027
|
+
if (!n && L.current) {
|
16028
|
+
y?.destroy();
|
16053
16029
|
const D = new Ji({
|
16054
16030
|
a: {
|
16055
16031
|
doc: C,
|
16056
|
-
extensions:
|
16032
|
+
extensions: [...l, H]
|
16057
16033
|
},
|
16058
16034
|
b: {
|
16059
16035
|
doc: N,
|
16060
|
-
extensions:
|
16036
|
+
extensions: [...u, F]
|
16061
16037
|
},
|
16062
|
-
|
16038
|
+
...i ? {} : { revertControls: "a-to-b", renderRevertControl: jS },
|
16063
16039
|
diffConfig: { scanLimit: 5e3 },
|
16064
|
-
parent:
|
16040
|
+
parent: L.current
|
16065
16041
|
});
|
16066
|
-
|
16042
|
+
if (v(D), D && V.current) {
|
16043
|
+
b?.destroy(), B.current?.destroy();
|
16044
|
+
const P = new Ji({
|
16045
|
+
a: {
|
16046
|
+
doc: C,
|
16047
|
+
extensions: f
|
16048
|
+
},
|
16049
|
+
b: {
|
16050
|
+
doc: N,
|
16051
|
+
extensions: f
|
16052
|
+
},
|
16053
|
+
gutter: !1,
|
16054
|
+
diffConfig: { scanLimit: 5e3 },
|
16055
|
+
parent: V.current
|
16056
|
+
});
|
16057
|
+
B.current = P, O(P);
|
16058
|
+
}
|
16067
16059
|
}
|
16068
16060
|
return () => {
|
16069
|
-
|
16061
|
+
v(null), O(null), B.current = null;
|
16070
16062
|
};
|
16071
|
-
}, [
|
16063
|
+
}, [n, e, A]), k(() => {
|
16064
|
+
if (y) {
|
16065
|
+
const D = y.a.state.doc.toString();
|
16066
|
+
D !== C && y.a.dispatch({
|
16067
|
+
changes: { from: 0, to: D.length, insert: C || "" }
|
16068
|
+
});
|
16069
|
+
const P = y.b.state.doc.toString();
|
16070
|
+
P !== N && y.b.dispatch({
|
16071
|
+
changes: { from: 0, to: P.length, insert: N || "" }
|
16072
|
+
});
|
16073
|
+
}
|
16074
|
+
}, [C, N, y]), k(() => {
|
16072
16075
|
setTimeout(() => {
|
16073
16076
|
j(
|
16074
|
-
|
16077
|
+
y ? Math.min(y.dom.clientHeight / y.dom.scrollHeight, 1) : 1
|
16075
16078
|
);
|
16076
16079
|
}, 100);
|
16077
|
-
}, [C, N,
|
16080
|
+
}, [C, N, y]);
|
16078
16081
|
const { codeEditorClassName: ce, codeEditorHeight: le, codeEditorParentClassName: pe } = AS(r);
|
16079
16082
|
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: le }, children: /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) }) : A ? /* @__PURE__ */ t.jsxs("div", { className: `flexbox w-100 ${X} ${pe}`, children: [
|
16080
16083
|
/* @__PURE__ */ t.jsx(
|
@@ -16088,7 +16091,7 @@ const TS = () => (e) => {
|
|
16088
16091
|
JS,
|
16089
16092
|
{
|
16090
16093
|
theme: s,
|
16091
|
-
view:
|
16094
|
+
view: y,
|
16092
16095
|
diffMinimapParentRef: V,
|
16093
16096
|
scalingFactor: T
|
16094
16097
|
}
|
@@ -16157,8 +16160,8 @@ const TS = () => (e) => {
|
|
16157
16160
|
schemaURI: C = Od,
|
16158
16161
|
cleanData: A = !1,
|
16159
16162
|
onBlur: S,
|
16160
|
-
onFocus:
|
16161
|
-
autoFocus:
|
16163
|
+
onFocus: I,
|
16164
|
+
autoFocus: y,
|
16162
16165
|
disableSearch: v = !1
|
16163
16166
|
}) => {
|
16164
16167
|
const { appTheme: b } = yr(), O = Y(), T = Y({ code: "", lhsCode: "" }), j = te(() => {
|
@@ -16195,7 +16198,7 @@ const TS = () => (e) => {
|
|
16195
16198
|
drawSelection: !1,
|
16196
16199
|
highlightActiveLineGutter: !0,
|
16197
16200
|
tabSize: l
|
16198
|
-
},
|
16201
|
+
}, P = (se) => {
|
16199
16202
|
le(se);
|
16200
16203
|
}, $ = (se) => {
|
16201
16204
|
pe(se);
|
@@ -16261,11 +16264,11 @@ const TS = () => (e) => {
|
|
16261
16264
|
shebang: u,
|
16262
16265
|
readOnly: E,
|
16263
16266
|
placeholder: x,
|
16264
|
-
handleOnChange:
|
16267
|
+
handleOnChange: P,
|
16265
16268
|
handleLhsOnChange: $,
|
16266
16269
|
onBlur: S,
|
16267
|
-
onFocus:
|
16268
|
-
autoFocus:
|
16270
|
+
onFocus: I,
|
16271
|
+
autoFocus: y,
|
16269
16272
|
originalViewExtensions: ve,
|
16270
16273
|
modifiedViewExtensions: Ee,
|
16271
16274
|
extensions: oe,
|
@@ -16453,21 +16456,21 @@ const xv = ({
|
|
16453
16456
|
index: i,
|
16454
16457
|
isExcluded: c = !1
|
16455
16458
|
}) => {
|
16456
|
-
const l = xi(n), d = e === Gt.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl : na(r, l.commit), p = (
|
16459
|
+
const l = xi(n), d = e === Gt.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl : na(r, l.commit), p = (I) => I ? /* @__PURE__ */ t.jsx(
|
16457
16460
|
"a",
|
16458
16461
|
{
|
16459
|
-
href: fE(r,
|
16462
|
+
href: fE(r, I),
|
16460
16463
|
target: "_blank",
|
16461
16464
|
rel: "noopener noreferrer",
|
16462
16465
|
className: "commit-hash fs-14 px-6 mono",
|
16463
16466
|
onClick: Ne,
|
16464
|
-
children:
|
16467
|
+
children: I
|
16465
16468
|
}
|
16466
16469
|
) : null;
|
16467
|
-
function _(
|
16468
|
-
const
|
16470
|
+
function _(I) {
|
16471
|
+
const y = gu(e, n);
|
16469
16472
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 w-100", children: [
|
16470
|
-
|
16473
|
+
I ? /* @__PURE__ */ t.jsxs("div", { className: "flex left lh-20 dc__gap-8 w-100", children: [
|
16471
16474
|
/* @__PURE__ */ t.jsx(ti, { className: "icon-dim-16" }),
|
16472
16475
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4", children: [
|
16473
16476
|
"Merge commit into ",
|
@@ -16481,9 +16484,9 @@ const xv = ({
|
|
16481
16484
|
" ",
|
16482
16485
|
u.data.author
|
16483
16486
|
] }) : null,
|
16484
|
-
|
16487
|
+
y ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
|
16485
16488
|
/* @__PURE__ */ t.jsx(Fa, { className: "icon-dim-16 scn-7" }),
|
16486
|
-
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-12", children:
|
16489
|
+
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-12", children: y })
|
16487
16490
|
] }) : null,
|
16488
16491
|
u.data.message ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 top material-history-text--padded w-100", children: [
|
16489
16492
|
/* @__PURE__ */ t.jsx(q_, { className: "icon-dim-16 mw-16 mr-8 mt-2" }),
|
@@ -16511,13 +16514,13 @@ const xv = ({
|
|
16511
16514
|
}
|
16512
16515
|
)
|
16513
16516
|
}
|
16514
|
-
) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit" }), x = () => l.isselected ? /* @__PURE__ */ t.jsx(tc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : E(), h = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (
|
16515
|
-
const
|
16517
|
+
) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit" }), x = () => l.isselected ? /* @__PURE__ */ t.jsx(tc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : E(), h = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (I) => {
|
16518
|
+
const y = I?.split("/").pop();
|
16516
16519
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
|
16517
16520
|
/* @__PURE__ */ t.jsxs(
|
16518
16521
|
"a",
|
16519
16522
|
{
|
16520
|
-
href:
|
16523
|
+
href: I,
|
16521
16524
|
target: "_blank",
|
16522
16525
|
rel: "noopener noreferrer",
|
16523
16526
|
className: "commit-hash fs-13 px-6 dc__w-fit-content cursor flex left dc__gap-4",
|
@@ -16525,15 +16528,15 @@ const xv = ({
|
|
16525
16528
|
children: [
|
16526
16529
|
/* @__PURE__ */ t.jsx(X_, {}),
|
16527
16530
|
" ",
|
16528
|
-
/* @__PURE__ */ t.jsx("span", { children: Number.isNaN(
|
16531
|
+
/* @__PURE__ */ t.jsx("span", { children: Number.isNaN(y) ? "PR" : y })
|
16529
16532
|
]
|
16530
16533
|
}
|
16531
16534
|
),
|
16532
|
-
/* @__PURE__ */ t.jsx("span", { className: "git-commit-info-generic__copy dc__visibility-hidden p-2", "data-testid": "git-commit-copy", children: /* @__PURE__ */ t.jsx(Ht, { content:
|
16535
|
+
/* @__PURE__ */ t.jsx("span", { className: "git-commit-info-generic__copy dc__visibility-hidden p-2", "data-testid": "git-commit-copy", children: /* @__PURE__ */ t.jsx(Ht, { content: I }) })
|
16533
16536
|
] });
|
16534
|
-
}, f = (
|
16537
|
+
}, f = (I) => /* @__PURE__ */ t.jsxs("div", { className: "commit-hash px-6 dc__w-fit-content dc__gap-4 fs-13", children: [
|
16535
16538
|
/* @__PURE__ */ t.jsx(hr, { className: "icon-dim-14 scb-5" }),
|
16536
|
-
|
16539
|
+
I
|
16537
16540
|
] }), N = () => a ? l.isselected ? /* @__PURE__ */ t.jsx(tc, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ t.jsx(ec, { "data-testid": "valid-git-commit icon-dim-20" }) : null, C = () => /* @__PURE__ */ t.jsxs("div", { className: "flex column left dc__gap-8", children: [
|
16538
16541
|
/* @__PURE__ */ t.jsxs("div", { className: "flex dc__content-space w-100", children: [
|
16539
16542
|
g(u.data["git url"]),
|
@@ -16549,8 +16552,8 @@ const xv = ({
|
|
16549
16552
|
_()
|
16550
16553
|
] }), S = () => {
|
16551
16554
|
if (!d) return null;
|
16552
|
-
const
|
16553
|
-
return r.includes(pt.GITLAB) ?
|
16555
|
+
const I = u.eventactiontype === Cv.MERGED;
|
16556
|
+
return r.includes(pt.GITLAB) ? I ? A() : C() : I ? C() : A();
|
16554
16557
|
};
|
16555
16558
|
return /* @__PURE__ */ t.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
|
16556
16559
|
o && (d || l.commit) && /* @__PURE__ */ t.jsx(
|
@@ -16833,8 +16836,8 @@ const Sv = (e) => {
|
|
16833
16836
|
const s = Y(null), [n, a] = R(""), r = te(() => ({ modalKey: n, setModalKey: a, settersRef: s }), [n]);
|
16834
16837
|
return /* @__PURE__ */ t.jsx(Nm.Provider, { value: r, children: e });
|
16835
16838
|
}, Cm = () => ls(Nm), yv = {
|
16836
|
-
[
|
16837
|
-
[
|
16839
|
+
[M.medium]: M.xxs,
|
16840
|
+
[M.large]: M.xs
|
16838
16841
|
}, Dr = ({
|
16839
16842
|
name: e,
|
16840
16843
|
label: s,
|
@@ -16846,7 +16849,7 @@ const Sv = (e) => {
|
|
16846
16849
|
required: c,
|
16847
16850
|
onBlur: l,
|
16848
16851
|
shouldTrim: d = !0,
|
16849
|
-
size: u =
|
16852
|
+
size: u = M.large,
|
16850
16853
|
ariaLabel: m,
|
16851
16854
|
borderConfig: p,
|
16852
16855
|
borderRadiusConfig: _,
|
@@ -16863,14 +16866,14 @@ const Sv = (e) => {
|
|
16863
16866
|
C.current && x && C.current.focus();
|
16864
16867
|
}, 100);
|
16865
16868
|
}, [x]);
|
16866
|
-
const A = (
|
16869
|
+
const A = (I) => {
|
16867
16870
|
if (d) {
|
16868
|
-
const
|
16869
|
-
|
16871
|
+
const y = I.target.value?.trim();
|
16872
|
+
I.target.value !== y && (I.stopPropagation(), I.target.value = y, N.onChange(I));
|
16870
16873
|
}
|
16871
|
-
l?.(
|
16872
|
-
}, S = (
|
16873
|
-
|
16874
|
+
l?.(I);
|
16875
|
+
}, S = (I) => {
|
16876
|
+
I.stopPropagation(), C.current.focus(), h?.onClick(I);
|
16874
16877
|
};
|
16875
16878
|
return /* @__PURE__ */ t.jsx(
|
16876
16879
|
mi,
|
@@ -16971,16 +16974,16 @@ const Sv = (e) => {
|
|
16971
16974
|
}) => {
|
16972
16975
|
const { registerShortcut: m, unregisterShortcut: p } = aa(), [_, E] = R(""), x = o?.identifier, h = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, N = n ?? Sv(a), C = a === Yt.custom && !n, A = "disabled" in g && g.disabled || h && _.trim() !== h, S = () => {
|
16973
16976
|
g && !A && g.onClick();
|
16974
|
-
},
|
16977
|
+
}, I = ze(() => {
|
16975
16978
|
!g?.isLoading && !f?.disabled && c();
|
16976
16979
|
}, [g, f]);
|
16977
16980
|
k(() => (m({ keys: ["Enter"], callback: S }), () => {
|
16978
16981
|
p(["Enter"]);
|
16979
16982
|
}), [g, A]);
|
16980
|
-
const
|
16983
|
+
const y = (v) => {
|
16981
16984
|
E(v.target.value);
|
16982
16985
|
};
|
16983
|
-
return /* @__PURE__ */ t.jsxs(Iv, { onEscape: l ?
|
16986
|
+
return /* @__PURE__ */ t.jsxs(Iv, { onEscape: l ? I : ut, children: [
|
16984
16987
|
/* @__PURE__ */ t.jsxs(
|
16985
16988
|
mn.div,
|
16986
16989
|
{
|
@@ -17004,7 +17007,7 @@ const Sv = (e) => {
|
|
17004
17007
|
{
|
17005
17008
|
name: x,
|
17006
17009
|
value: _,
|
17007
|
-
onChange:
|
17010
|
+
onChange: y,
|
17008
17011
|
label: vv(h),
|
17009
17012
|
fullWidth: !0,
|
17010
17013
|
placeholder: "Type to confirm",
|
@@ -17018,7 +17021,7 @@ const Sv = (e) => {
|
|
17018
17021
|
re,
|
17019
17022
|
{
|
17020
17023
|
dataTestId: "confirmation-modal-secondary-button",
|
17021
|
-
size:
|
17024
|
+
size: M.large,
|
17022
17025
|
variant: he.secondary,
|
17023
17026
|
style: "style" in f ? f.style : be.neutral,
|
17024
17027
|
disabled: f.disabled,
|
@@ -17032,7 +17035,7 @@ const Sv = (e) => {
|
|
17032
17035
|
re,
|
17033
17036
|
{
|
17034
17037
|
dataTestId: "confirmation-modal-primary-button",
|
17035
|
-
size:
|
17038
|
+
size: M.large,
|
17036
17039
|
variant: he.primary,
|
17037
17040
|
style: "style" in g ? g.style : Av(a),
|
17038
17041
|
disabled: A,
|
@@ -17139,14 +17142,14 @@ const Sv = (e) => {
|
|
17139
17142
|
} catch (j) {
|
17140
17143
|
j instanceof Pt && j.code === m ? (x(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && N(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : Be(j), A(!1);
|
17141
17144
|
}
|
17142
|
-
},
|
17145
|
+
}, I = () => {
|
17143
17146
|
x(!1), l();
|
17144
|
-
},
|
17147
|
+
}, y = () => g(!1), v = () => /* @__PURE__ */ t.jsx(
|
17145
17148
|
Ov,
|
17146
17149
|
{
|
17147
17150
|
title: e,
|
17148
17151
|
subtitle: f,
|
17149
|
-
closeConfirmationModal:
|
17152
|
+
closeConfirmationModal: I,
|
17150
17153
|
component: n
|
17151
17154
|
}
|
17152
17155
|
), b = () => /* @__PURE__ */ t.jsx(
|
@@ -17155,7 +17158,7 @@ const Sv = (e) => {
|
|
17155
17158
|
title: e,
|
17156
17159
|
subtitle: s,
|
17157
17160
|
onDelete: i,
|
17158
|
-
closeConfirmationModal:
|
17161
|
+
closeConfirmationModal: y
|
17159
17162
|
}
|
17160
17163
|
), O = () => /* @__PURE__ */ t.jsx(
|
17161
17164
|
Ws,
|
@@ -17257,7 +17260,7 @@ const Sv = (e) => {
|
|
17257
17260
|
text: "Abort",
|
17258
17261
|
variant: he.text,
|
17259
17262
|
style: be.negative,
|
17260
|
-
size:
|
17263
|
+
size: M.small
|
17261
17264
|
}
|
17262
17265
|
)
|
17263
17266
|
] })
|
@@ -17540,8 +17543,8 @@ const Sv = (e) => {
|
|
17540
17543
|
scrollToBottom: C,
|
17541
17544
|
fullScreenView: A,
|
17542
17545
|
appName: S,
|
17543
|
-
triggerHistory:
|
17544
|
-
targetPlatforms:
|
17546
|
+
triggerHistory: I,
|
17547
|
+
targetPlatforms: y
|
17545
17548
|
}) => {
|
17546
17549
|
const { path: v } = Jt(), { appId: b, pipelineId: O, triggerId: T, envId: j } = Tt(), w = {
|
17547
17550
|
appId: b,
|
@@ -17601,7 +17604,7 @@ const Sv = (e) => {
|
|
17601
17604
|
selectedEnvironmentName: p,
|
17602
17605
|
promotionApprovalMetadata: e?.promotionApprovalMetadata,
|
17603
17606
|
renderCIListHeader: g,
|
17604
|
-
targetPlatforms:
|
17607
|
+
targetPlatforms: y
|
17605
17608
|
}
|
17606
17609
|
) }),
|
17607
17610
|
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Bs, { path: `${v}${Oe.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
@@ -17611,7 +17614,7 @@ const Sv = (e) => {
|
|
17611
17614
|
envName: p,
|
17612
17615
|
pipelineId: +O,
|
17613
17616
|
wfrId: +T,
|
17614
|
-
triggerHistory:
|
17617
|
+
triggerHistory: I,
|
17615
17618
|
setFullScreenView: n,
|
17616
17619
|
resourceId: _,
|
17617
17620
|
renderRunSource: E
|
@@ -17637,7 +17640,7 @@ const Sv = (e) => {
|
|
17637
17640
|
hideImageTaggingHardDelete: m,
|
17638
17641
|
downloadArtifactUrl: L,
|
17639
17642
|
renderCIListHeader: g,
|
17640
|
-
targetPlatforms:
|
17643
|
+
targetPlatforms: y,
|
17641
17644
|
rootClassName: "p-16 flex-grow-1"
|
17642
17645
|
}
|
17643
17646
|
) }),
|
@@ -17673,12 +17676,12 @@ const Sv = (e) => {
|
|
17673
17676
|
scrollToTop: C,
|
17674
17677
|
scrollToBottom: A,
|
17675
17678
|
renderTargetConfigInfo: S,
|
17676
|
-
appName:
|
17679
|
+
appName: I
|
17677
17680
|
}) => {
|
17678
|
-
const { appId:
|
17679
|
-
() => rT({ appId:
|
17681
|
+
const { appId: y, triggerId: v, envId: b, pipelineId: O } = Tt(), T = s.get(+v), [j, w, L, B] = Kt(
|
17682
|
+
() => rT({ appId: y, envId: b, pipelineId: O, triggerId: v, fetchIdData: d }),
|
17680
17683
|
// TODO: Ask if fetchIdData is required here as dependency
|
17681
|
-
[v,
|
17684
|
+
[v, y, b],
|
17682
17685
|
!!v && !!O
|
17683
17686
|
), V = Ar(T?.targetPlatforms), X = (F, ce, le) => {
|
17684
17687
|
if (le) {
|
@@ -17686,10 +17689,10 @@ const Sv = (e) => {
|
|
17686
17689
|
return;
|
17687
17690
|
}
|
17688
17691
|
if (F === ce?.id) {
|
17689
|
-
const pe = s.get(F)?.appliedFilters ?? [], D = s.get(F)?.appliedFiltersTimestamp,
|
17692
|
+
const pe = s.get(F)?.appliedFilters ?? [], D = s.get(F)?.appliedFiltersTimestamp, P = s.get(F)?.promotionApprovalMetadata, $ = s.get(F)?.runSource, ee = s.get(F)?.targetConfig, oe = s.get(F)?.userApprovalMetadata, ve = {
|
17690
17693
|
...pe.length ? { appliedFilters: pe } : {},
|
17691
17694
|
...D ? { appliedFiltersTimestamp: D } : {},
|
17692
|
-
...
|
17695
|
+
...P ? { promotionApprovalMetadata: P } : {},
|
17693
17696
|
...$ ? { runSource: $ } : {},
|
17694
17697
|
...ee ? { targetConfig: ee } : {},
|
17695
17698
|
...oe ? { userApprovalMetadata: oe } : {}
|
@@ -17836,7 +17839,7 @@ const Sv = (e) => {
|
|
17836
17839
|
scrollToTop: C,
|
17837
17840
|
scrollToBottom: A,
|
17838
17841
|
fullScreenView: e,
|
17839
|
-
appName:
|
17842
|
+
appName: I,
|
17840
17843
|
triggerHistory: s,
|
17841
17844
|
targetPlatforms: V
|
17842
17845
|
},
|
@@ -18111,7 +18114,7 @@ const Sv = (e) => {
|
|
18111
18114
|
icon: /* @__PURE__ */ t.jsx(Zo, { className: "icon-dim-20 fcn-6" }),
|
18112
18115
|
onChange: s,
|
18113
18116
|
"data-testid": Gs.TIME,
|
18114
|
-
size:
|
18117
|
+
size: M.large,
|
18115
18118
|
error: a
|
18116
18119
|
}
|
18117
18120
|
), AD = ({
|
@@ -18130,13 +18133,13 @@ const Sv = (e) => {
|
|
18130
18133
|
openDirection: p = "down",
|
18131
18134
|
error: _ = ""
|
18132
18135
|
}) => {
|
18133
|
-
const E = Wv(e), x = Pa.find((
|
18134
|
-
g(
|
18135
|
-
}, N = (
|
18136
|
-
s(qv(e,
|
18137
|
-
}, C = (
|
18138
|
-
s(zv(e,
|
18139
|
-
}, A = Pe(), S = (
|
18136
|
+
const E = Wv(e), x = Pa.find((I) => I.value === E) ?? Pa[0], [h, g] = R(!1), f = ({ focused: I }) => {
|
18137
|
+
g(I);
|
18138
|
+
}, N = (I) => {
|
18139
|
+
s(qv(e, I?.toDate()));
|
18140
|
+
}, C = (I) => {
|
18141
|
+
s(zv(e, I.value).value);
|
18142
|
+
}, A = Pe(), S = (I) => d && !I.isAfter(A);
|
18140
18143
|
return /* @__PURE__ */ t.jsxs("div", { className: "date-time-picker", children: [
|
18141
18144
|
o && /* @__PURE__ */ t.jsx("label", { className: `form__label ${i ? "dc__required-field" : ""}`, htmlFor: r, children: o }),
|
18142
18145
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
|
@@ -18151,7 +18154,7 @@ const Sv = (e) => {
|
|
18151
18154
|
onFocusChange: f,
|
18152
18155
|
numberOfMonths: 1,
|
18153
18156
|
openDirection: p,
|
18154
|
-
renderCalendarDay: (
|
18157
|
+
renderCalendarDay: (I) => /* @__PURE__ */ t.jsx(K_, { ...I, ...bm }),
|
18155
18158
|
hideKeyboardShortcutsPanel: !0,
|
18156
18159
|
withFullScreenPortal: !1,
|
18157
18160
|
orientation: "horizontal",
|
@@ -18179,8 +18182,8 @@ const Sv = (e) => {
|
|
18179
18182
|
value: x,
|
18180
18183
|
onChange: C,
|
18181
18184
|
"data-testid": u,
|
18182
|
-
menuSize:
|
18183
|
-
size:
|
18185
|
+
menuSize: M.xs,
|
18186
|
+
size: M.large,
|
18184
18187
|
shouldMenuAlignRight: !0
|
18185
18188
|
}
|
18186
18189
|
) })
|
@@ -18775,21 +18778,21 @@ const RD = {
|
|
18775
18778
|
}) => {
|
18776
18779
|
const { appId: h } = Tt(), [g, f] = R(l || []), [N, C] = R(u || 0), [A, S] = R(
|
18777
18780
|
p || structuredClone(Qv)
|
18778
|
-
),
|
18779
|
-
f(
|
18780
|
-
}, v = (
|
18781
|
-
C(
|
18782
|
-
}, b = (
|
18783
|
-
S(
|
18781
|
+
), I = Y(new AbortController()), y = (P) => {
|
18782
|
+
f(P), d?.(P);
|
18783
|
+
}, v = (P) => {
|
18784
|
+
C(P), m?.(P);
|
18785
|
+
}, b = (P) => {
|
18786
|
+
S(P), _?.(P);
|
18784
18787
|
}, { searchKey: O, selectedTags: T } = A || {}, j = () => Bd(
|
18785
18788
|
() => vm({
|
18786
18789
|
searchKey: O,
|
18787
18790
|
selectedTags: T,
|
18788
18791
|
offset: 0,
|
18789
18792
|
appId: h ? +h : null,
|
18790
|
-
signal:
|
18793
|
+
signal: I.current.signal
|
18791
18794
|
}),
|
18792
|
-
|
18795
|
+
I
|
18793
18796
|
), [w, L, B, V] = Kt(
|
18794
18797
|
j,
|
18795
18798
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
@@ -18803,12 +18806,12 @@ const RD = {
|
|
18803
18806
|
k(() => {
|
18804
18807
|
!X && !Q && q && s(q);
|
18805
18808
|
}, [X, q, Q]);
|
18806
|
-
const Ie = (
|
18809
|
+
const Ie = (P, $ = !1) => {
|
18807
18810
|
const {
|
18808
18811
|
pluginStore: { parentPluginStore: ee, pluginVersionStore: oe },
|
18809
18812
|
totalCount: ve,
|
18810
18813
|
parentPluginIdList: Ee
|
18811
|
-
} =
|
18814
|
+
} = P;
|
18812
18815
|
a(sA(n, ee, oe)), v(ve);
|
18813
18816
|
const K = $ ? structuredClone(g) : [], se = K.reduce(
|
18814
18817
|
(je, xt) => (je[xt.parentPluginId] = !0, je),
|
@@ -18818,35 +18821,35 @@ const RD = {
|
|
18818
18821
|
se[je] || (K.push({
|
18819
18822
|
parentPluginId: je
|
18820
18823
|
}), se[je] = !0);
|
18821
|
-
}),
|
18824
|
+
}), y(K);
|
18822
18825
|
};
|
18823
18826
|
k(() => {
|
18824
18827
|
!(w || qt(B)) && !B && L && Ie(L);
|
18825
18828
|
}, [w, L, B]);
|
18826
18829
|
const H = () => {
|
18827
|
-
c &&
|
18830
|
+
c && y([]);
|
18828
18831
|
}, F = () => {
|
18829
18832
|
b({
|
18830
18833
|
searchKey: "",
|
18831
18834
|
selectedTags: []
|
18832
18835
|
}), H();
|
18833
|
-
}, ce = (
|
18836
|
+
}, ce = (P) => {
|
18834
18837
|
b({
|
18835
18838
|
...A,
|
18836
|
-
searchKey:
|
18839
|
+
searchKey: P
|
18837
18840
|
}), H();
|
18838
|
-
}, le = (
|
18841
|
+
}, le = (P) => {
|
18839
18842
|
b({
|
18840
18843
|
...A,
|
18841
|
-
selectedTags:
|
18844
|
+
selectedTags: P
|
18842
18845
|
}), H();
|
18843
|
-
}, pe = (
|
18846
|
+
}, pe = (P) => {
|
18844
18847
|
b({
|
18845
18848
|
...A,
|
18846
|
-
selectedTags:
|
18849
|
+
selectedTags: P.selectedTags
|
18847
18850
|
}), H();
|
18848
|
-
}, D = (
|
18849
|
-
r(
|
18851
|
+
}, D = (P) => {
|
18852
|
+
r(P);
|
18850
18853
|
};
|
18851
18854
|
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col w-100 ${E}`, children: [
|
18852
18855
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__gap-12 py-12 dc__position-sticky dc__top-0 bg__primary dc__zi-1 flex-wrap", children: [
|
@@ -18910,7 +18913,7 @@ const RD = {
|
|
18910
18913
|
isSelectable: o,
|
18911
18914
|
handleClearFilters: F,
|
18912
18915
|
showCardBorder: x,
|
18913
|
-
getPluginStoreRef:
|
18916
|
+
getPluginStoreRef: I
|
18914
18917
|
}
|
18915
18918
|
)
|
18916
18919
|
}
|
@@ -18944,28 +18947,28 @@ const RD = {
|
|
18944
18947
|
validateDuplicateKeys: _ = !1,
|
18945
18948
|
validateEmptyKeys: E = !1
|
18946
18949
|
}) => {
|
18947
|
-
const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, C] = R(h), [A, S] = R(!1),
|
18950
|
+
const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, C] = R(h), [A, S] = R(!1), I = l || c, y = !l && !c || !!N.length, v = !N[0]?.data[g].value && !N[0]?.data[f].value, b = N.length === 1 && v, { sortBy: O, sortOrder: T, handleSorting: j } = iu({
|
18948
18951
|
initialSortKey: n ? g : null
|
18949
18952
|
}), w = Y(), L = Y();
|
18950
|
-
w.current || (w.current = N.reduce((D,
|
18953
|
+
w.current || (w.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {})), L.current || (L.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {}));
|
18951
18954
|
const B = te(
|
18952
18955
|
() => N.reduce(
|
18953
|
-
(D,
|
18954
|
-
const $ =
|
18956
|
+
(D, P) => {
|
18957
|
+
const $ = P.data[g].value;
|
18955
18958
|
return $ && (D[$] = (D[$] || 0) + 1), D;
|
18956
18959
|
},
|
18957
18960
|
{}
|
18958
18961
|
),
|
18959
18962
|
[N]
|
18960
|
-
), V = (D,
|
18963
|
+
), V = (D, P, $, ee = !0) => {
|
18961
18964
|
if (ee) {
|
18962
18965
|
const oe = D.trim();
|
18963
|
-
if (_ &&
|
18966
|
+
if (_ && P === g && B[oe] > 1 || E && P === g && !oe && N.some(
|
18964
18967
|
({ id: Ee, data: K }) => Ee === $ && K[f].value.trim()
|
18965
18968
|
))
|
18966
18969
|
return !1;
|
18967
18970
|
}
|
18968
|
-
return u ? u(D,
|
18971
|
+
return u ? u(D, P, $) : !0;
|
18969
18972
|
}, X = (D) => {
|
18970
18973
|
if (_) {
|
18971
18974
|
const { isAnyKeyDuplicated: $ } = D.reduce(
|
@@ -19000,8 +19003,8 @@ const RD = {
|
|
19000
19003
|
id: D
|
19001
19004
|
};
|
19002
19005
|
}, Q = () => {
|
19003
|
-
const D = q(),
|
19004
|
-
p?.(!X(
|
19006
|
+
const D = q(), P = [D, ...N], { id: $ } = D;
|
19007
|
+
p?.(!X(P)), S(!0), C(P), w.current = {
|
19005
19008
|
...w.current || {},
|
19006
19009
|
[$]: hs()
|
19007
19010
|
}, L.current = {
|
@@ -19010,25 +19013,25 @@ const RD = {
|
|
19010
19013
|
};
|
19011
19014
|
};
|
19012
19015
|
k(() => {
|
19013
|
-
!
|
19016
|
+
!I && !N.length && Q();
|
19014
19017
|
}, []), k(() => {
|
19015
19018
|
n && C((D) => {
|
19016
|
-
const
|
19017
|
-
return
|
19019
|
+
const P = structuredClone(D);
|
19020
|
+
return P.sort(
|
19018
19021
|
($, ee) => at($.data[O].value, ee.data[O].value, T)
|
19019
|
-
),
|
19022
|
+
), P;
|
19020
19023
|
});
|
19021
19024
|
}, [T]), k(() => {
|
19022
19025
|
const D = N[0];
|
19023
19026
|
if (D && A) {
|
19024
19027
|
S(!1);
|
19025
|
-
const
|
19026
|
-
!D.data[g].value &&
|
19028
|
+
const P = w.current[D.id].current && L.current[D.id].current;
|
19029
|
+
!D.data[g].value && P && L.current[D.id].current.focus(), !D.data[f].value && P && w.current[D.id].current.focus();
|
19027
19030
|
}
|
19028
19031
|
}, [A]);
|
19029
19032
|
const de = () => j(O), Ie = (D) => () => {
|
19030
|
-
const
|
19031
|
-
if (
|
19033
|
+
const P = N.filter(({ id: $ }) => $ !== D.id);
|
19034
|
+
if (P.length === 0 && !c) {
|
19032
19035
|
const $ = q(), { id: ee } = $;
|
19033
19036
|
S(!0), p?.(!X([$])), C([$]), w.current = {
|
19034
19037
|
[ee]: hs()
|
@@ -19037,26 +19040,26 @@ const RD = {
|
|
19037
19040
|
}, o?.(D.id);
|
19038
19041
|
return;
|
19039
19042
|
}
|
19040
|
-
p?.(!X(
|
19041
|
-
}, H = (D,
|
19043
|
+
p?.(!X(P)), C(P), delete w.current[D.id], delete L.current[D.id], o?.(D.id);
|
19044
|
+
}, H = (D, P) => ($) => {
|
19042
19045
|
const { value: ee } = $.target, oe = {
|
19043
19046
|
...D,
|
19044
19047
|
data: {
|
19045
19048
|
...D.data,
|
19046
|
-
[
|
19047
|
-
...D.data[
|
19049
|
+
[P]: {
|
19050
|
+
...D.data[P],
|
19048
19051
|
value: ee
|
19049
19052
|
}
|
19050
19053
|
}
|
19051
19054
|
}, ve = N.map((Ee) => Ee.id === D.id ? oe : Ee);
|
19052
19055
|
p?.(!X(ve)), C(ve);
|
19053
|
-
}, F = (D,
|
19056
|
+
}, F = (D, P) => ($) => {
|
19054
19057
|
const { value: ee } = $.target;
|
19055
|
-
r?.(D.id,
|
19056
|
-
}, ce = (D,
|
19058
|
+
r?.(D.id, P, ee), p?.(!X(N));
|
19059
|
+
}, ce = (D, P, $) => /* @__PURE__ */ t.jsxs(
|
19057
19060
|
"div",
|
19058
19061
|
{
|
19059
|
-
className: `bg__secondary py-8 px-12 flexbox dc__content-space dc__align-items-center ${N.length || !
|
19062
|
+
className: `bg__secondary py-8 px-12 flexbox dc__content-space dc__align-items-center ${N.length || !I ? "dc__top-left-radius" : "dc__left-radius-4"} ${$ || ""}`,
|
19060
19063
|
children: [
|
19061
19064
|
n ? /* @__PURE__ */ t.jsxs(
|
19062
19065
|
"button",
|
@@ -19065,7 +19068,7 @@ const RD = {
|
|
19065
19068
|
className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
|
19066
19069
|
onClick: de,
|
19067
19070
|
children: [
|
19068
|
-
|
19071
|
+
P,
|
19069
19072
|
/* @__PURE__ */ t.jsx(
|
19070
19073
|
Cr,
|
19071
19074
|
{
|
@@ -19080,9 +19083,9 @@ const RD = {
|
|
19080
19083
|
) : /* @__PURE__ */ t.jsxs(
|
19081
19084
|
"div",
|
19082
19085
|
{
|
19083
|
-
className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${
|
19086
|
+
className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${y ? "dc__top-left-radius" : "dc__left-radius-4"}`,
|
19084
19087
|
children: [
|
19085
|
-
|
19088
|
+
P,
|
19086
19089
|
!!a && a
|
19087
19090
|
]
|
19088
19091
|
}
|
@@ -19091,8 +19094,8 @@ const RD = {
|
|
19091
19094
|
"button",
|
19092
19095
|
{
|
19093
19096
|
type: "button",
|
19094
|
-
className: `dc__transparent p-0 flex dc__gap-4 ${
|
19095
|
-
disabled:
|
19097
|
+
className: `dc__transparent p-0 flex dc__gap-4 ${I ? "dc__disabled" : ""}`,
|
19098
|
+
disabled: I,
|
19096
19099
|
onClick: Q,
|
19097
19100
|
children: [
|
19098
19101
|
/* @__PURE__ */ t.jsx(xr, { className: "icon-dim-12 fcb-5 dc__no-shrink" }),
|
@@ -19106,57 +19109,57 @@ const RD = {
|
|
19106
19109
|
), le = (D) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
|
19107
19110
|
/* @__PURE__ */ t.jsx(nt, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
|
19108
19111
|
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: D })
|
19109
|
-
] }, D), pe = (D,
|
19112
|
+
] }, D), pe = (D, P, $) => d && !V(D, P, $) ? /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4", children: [
|
19110
19113
|
_ && le(dA),
|
19111
19114
|
E && le(uA),
|
19112
19115
|
m.map((oe) => le(oe))
|
19113
19116
|
] }) : null;
|
19114
19117
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
19115
|
-
/* @__PURE__ */ t.jsx("div", { className: `bcn-2 p-1 ${
|
19116
|
-
({ key: D, label:
|
19118
|
+
/* @__PURE__ */ t.jsx("div", { className: `bcn-2 p-1 ${y ? "dc__top-radius-4" : "br-4"}`, children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table two-columns w-100 bcn-1 br-4", children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table__row", children: x.map(
|
19119
|
+
({ key: D, label: P, className: $ }) => D === g ? ce(D, P, $) : /* @__PURE__ */ t.jsxs(
|
19117
19120
|
"div",
|
19118
19121
|
{
|
19119
|
-
className: `bg__secondary cn-9 fs-13 lh-20 py-8 px-12 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${D === g ? `${
|
19122
|
+
className: `bg__secondary cn-9 fs-13 lh-20 py-8 px-12 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${D === g ? `${y ? "dc__top-left-radius" : "dc__left-radius-4"}` : `${y ? "dc__top-right-radius-4" : "dc__right-radius-4"}`} ${$ || ""}`,
|
19120
19123
|
children: [
|
19121
|
-
|
19124
|
+
P,
|
19122
19125
|
!!a && a
|
19123
19126
|
]
|
19124
19127
|
},
|
19125
19128
|
D
|
19126
19129
|
)
|
19127
19130
|
) }) }) }),
|
19128
|
-
|
19131
|
+
y && /* @__PURE__ */ t.jsx("div", { className: "bcn-2 px-1 pb-1 dc__bottom-radius-4", children: !!N.length && /* @__PURE__ */ t.jsx(
|
19129
19132
|
"div",
|
19130
19133
|
{
|
19131
19134
|
className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${l ? "two-columns" : "three-columns"}`,
|
19132
19135
|
children: N.map((D) => /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__row", children: [
|
19133
|
-
x.map(({ key:
|
19136
|
+
x.map(({ key: P }) => /* @__PURE__ */ t.jsx(Hs, { children: /* @__PURE__ */ t.jsx(mt, { wrap: mA, condition: l, children: /* @__PURE__ */ t.jsx(
|
19134
19137
|
"div",
|
19135
19138
|
{
|
19136
|
-
className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || D.data[
|
19137
|
-
children: s?.[
|
19139
|
+
className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || D.data[P].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !V(D.data[P].value, P, D.id) ? "key-value-table__cell--error no-hover" : ""}`,
|
19140
|
+
children: s?.[P] && D.data[P].value ? /* @__PURE__ */ t.jsx("div", { className: "py-8 px-12 h-36 flex", children: Bn }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
19138
19141
|
/* @__PURE__ */ t.jsx(
|
19139
19142
|
ki,
|
19140
19143
|
{
|
19141
|
-
...D.data[
|
19142
|
-
className: `key-value-table__cell-input placeholder-cn5 py-8 px-12 cn-9 fs-13 lh-20 dc__no-border-radius ${l || D.data[
|
19144
|
+
...D.data[P],
|
19145
|
+
className: `key-value-table__cell-input placeholder-cn5 py-8 px-12 cn-9 fs-13 lh-20 dc__no-border-radius ${l || D.data[P].disabled ? "cursor-not-allowed" : ""}`,
|
19143
19146
|
minHeight: 20,
|
19144
19147
|
maxHeight: 160,
|
19145
|
-
value: D.data[
|
19146
|
-
placeholder: i[
|
19147
|
-
onChange: H(D,
|
19148
|
-
onBlur: F(D,
|
19149
|
-
refVar:
|
19150
|
-
dependentRef:
|
19151
|
-
disabled: l || D.data[
|
19148
|
+
value: D.data[P].value,
|
19149
|
+
placeholder: i[P],
|
19150
|
+
onChange: H(D, P),
|
19151
|
+
onBlur: F(D, P),
|
19152
|
+
refVar: P === g ? w.current?.[D.id] : L.current?.[D.id],
|
19153
|
+
dependentRef: P === g ? L.current?.[D.id] : w.current?.[D.id],
|
19154
|
+
disabled: l || D.data[P].disabled,
|
19152
19155
|
disableOnBlurResizeToMinHeight: !0
|
19153
19156
|
}
|
19154
19157
|
),
|
19155
|
-
D.data[
|
19156
|
-
pe(D.data[
|
19158
|
+
D.data[P].required && /* @__PURE__ */ t.jsx("span", { className: "cr-5 fs-16 dc__align-self-start px-6 py-8", children: "*" }),
|
19159
|
+
pe(D.data[P].value, P, D.id)
|
19157
19160
|
] })
|
19158
19161
|
}
|
19159
|
-
) }) },
|
19162
|
+
) }) }, P)),
|
19160
19163
|
!l && /* @__PURE__ */ t.jsx(
|
19161
19164
|
"button",
|
19162
19165
|
{
|
@@ -19181,25 +19184,25 @@ const RD = {
|
|
19181
19184
|
hideTopPadding: e,
|
19182
19185
|
alignActiveBorderWithContainer: s
|
19183
19186
|
}) => ({
|
19184
|
-
[
|
19187
|
+
[M.medium]: {
|
19185
19188
|
tabClassName: `fs-12 ${e ? "" : "pt-6"} ${s ? "pb-5" : "pb-6"}`,
|
19186
19189
|
iconClassName: "icon-dim-14",
|
19187
19190
|
badgeClassName: "fs-11 lh-18 tab-group__tab__badge--medium"
|
19188
19191
|
},
|
19189
|
-
[
|
19192
|
+
[M.large]: {
|
19190
19193
|
tabClassName: `fs-13 ${e ? "" : "pt-8"} ${s ? "pb-7" : "pb-8"}`,
|
19191
19194
|
iconClassName: "icon-dim-16",
|
19192
19195
|
badgeClassName: "fs-12 lh-20"
|
19193
19196
|
},
|
19194
|
-
[
|
19197
|
+
[M.xl]: {
|
19195
19198
|
tabClassName: `min-w-200 fs-13 ${e ? "" : "pt-10"} ${s ? "pb-9" : "pb-10"}`,
|
19196
19199
|
iconClassName: "icon-dim-16",
|
19197
19200
|
badgeClassName: "fs-12 lh-20"
|
19198
19201
|
}
|
19199
19202
|
}), _A = {
|
19200
|
-
[
|
19201
|
-
[
|
19202
|
-
[
|
19203
|
+
[M.medium]: "dc__gap-12",
|
19204
|
+
[M.large]: "dc__gap-16",
|
19205
|
+
[M.xl]: "dc__gap-16"
|
19203
19206
|
}, fA = ({
|
19204
19207
|
icon: e,
|
19205
19208
|
showError: s,
|
@@ -19296,7 +19299,7 @@ const RD = {
|
|
19296
19299
|
return E ? /* @__PURE__ */ t.jsx(ie, { ...x, children: A() }) : A();
|
19297
19300
|
}, DD = ({
|
19298
19301
|
tabs: e = [],
|
19299
|
-
size: s =
|
19302
|
+
size: s = M.large,
|
19300
19303
|
rightComponent: n,
|
19301
19304
|
alignActiveBorderWithContainer: a,
|
19302
19305
|
hideTopPadding: r
|
@@ -19386,9 +19389,9 @@ const RD = {
|
|
19386
19389
|
} finally {
|
19387
19390
|
_(!1);
|
19388
19391
|
}
|
19389
|
-
},
|
19392
|
+
}, I = async (v) => {
|
19390
19393
|
v.key === "Enter" && (v.preventDefault(), await S());
|
19391
|
-
},
|
19394
|
+
}, y = (v, b) => /* @__PURE__ */ t.jsx(
|
19392
19395
|
bi,
|
19393
19396
|
{
|
19394
19397
|
imageProps: {
|
@@ -19402,7 +19405,7 @@ const RD = {
|
|
19402
19405
|
}
|
19403
19406
|
);
|
19404
19407
|
return u ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-20", children: [
|
19405
|
-
|
19408
|
+
y(!1),
|
19406
19409
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 flex-grow-1", children: [
|
19407
19410
|
/* @__PURE__ */ t.jsx(
|
19408
19411
|
Dr,
|
@@ -19414,7 +19417,7 @@ const RD = {
|
|
19414
19417
|
onChange: A,
|
19415
19418
|
error: s || E,
|
19416
19419
|
fullWidth: !0,
|
19417
|
-
onKeyDown:
|
19420
|
+
onKeyDown: I,
|
19418
19421
|
autoFocus: !0
|
19419
19422
|
}
|
19420
19423
|
),
|
@@ -19453,7 +19456,7 @@ const RD = {
|
|
19453
19456
|
"aria-label": `${o} image`,
|
19454
19457
|
onClick: h,
|
19455
19458
|
children: [
|
19456
|
-
|
19459
|
+
y(!0, Im),
|
19457
19460
|
/* @__PURE__ */ t.jsx("div", { className: "flex p-4 br-4 bg__primary dc__border edit-image-form-field__figure-container--edit-image-icon dc__zi-1 bg__primary dc__hover-n50 icon-dim-24", children: /* @__PURE__ */ t.jsx(gr, { className: "dc__no-shrink icon-dim-16" }) })
|
19458
19461
|
]
|
19459
19462
|
}
|
@@ -19587,7 +19590,7 @@ const Pr = ({
|
|
19587
19590
|
onClick: a,
|
19588
19591
|
icon: /* @__PURE__ */ t.jsx(xr, {}),
|
19589
19592
|
variant: he.borderLess,
|
19590
|
-
size:
|
19593
|
+
size: M.xs,
|
19591
19594
|
showAriaLabelInTippy: !1
|
19592
19595
|
}
|
19593
19596
|
),
|
@@ -19785,7 +19788,7 @@ const Il = ({
|
|
19785
19788
|
] }),
|
19786
19789
|
children: A(v, b)
|
19787
19790
|
}
|
19788
|
-
),
|
19791
|
+
), I = () => {
|
19789
19792
|
if (a?.length) {
|
19790
19793
|
const v = a.filter((b) => b.label.indexOf(m) >= 0);
|
19791
19794
|
if (v.length)
|
@@ -19794,7 +19797,7 @@ const Il = ({
|
|
19794
19797
|
) });
|
19795
19798
|
}
|
19796
19799
|
return C();
|
19797
|
-
},
|
19800
|
+
}, y = _ === `tag-${o}-${e}` ? I() : null;
|
19798
19801
|
return /* @__PURE__ */ t.jsxs(ct, { autoClose: !0, autoPosition: !0, children: [
|
19799
19802
|
/* @__PURE__ */ t.jsx(ct.Button, { rootClassName: "bg__secondary flex top dc__no-border-imp", children: /* @__PURE__ */ t.jsx(
|
19800
19803
|
ki,
|
@@ -19813,14 +19816,14 @@ const Il = ({
|
|
19813
19816
|
id: `tag-${o === ss.KEY ? "key" : "value"}-${e}`
|
19814
19817
|
}
|
19815
19818
|
) }),
|
19816
|
-
|
19819
|
+
y && /* @__PURE__ */ t.jsx(
|
19817
19820
|
ct.Body,
|
19818
19821
|
{
|
19819
19822
|
rootClassName: `mxh-210 dc__overflow-auto tag-${e}-class`,
|
19820
19823
|
autoWidth: !0,
|
19821
19824
|
preventWheelDisable: !0,
|
19822
19825
|
noBackDrop: u,
|
19823
|
-
children:
|
19826
|
+
children: y
|
19824
19827
|
}
|
19825
19828
|
)
|
19826
19829
|
] });
|
@@ -19930,7 +19933,7 @@ const wA = (e) => {
|
|
19930
19933
|
onClick: c,
|
19931
19934
|
variant: he.borderLess,
|
19932
19935
|
style: be.negativeGrey,
|
19933
|
-
size:
|
19936
|
+
size: M.small
|
19934
19937
|
}
|
19935
19938
|
) })
|
19936
19939
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "dc__position-rel flex", children: [
|
@@ -20109,7 +20112,7 @@ const wA = (e) => {
|
|
20109
20112
|
}
|
20110
20113
|
);
|
20111
20114
|
}
|
20112
|
-
},
|
20115
|
+
}, I = (T, j) => T.data[j].required && /* @__PURE__ */ t.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), y = (T, j, w) => {
|
20113
20116
|
const L = w ? l : d;
|
20114
20117
|
return L?.[j]?.(T) ? /* @__PURE__ */ t.jsx(
|
20115
20118
|
"div",
|
@@ -20144,10 +20147,10 @@ const wA = (e) => {
|
|
20144
20147
|
{
|
20145
20148
|
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${L ? "cursor-not-allowed no-hover" : ""} ${!L && B ? "dynamic-data-table__cell--error no-hover" : ""} ${RA(T.data[j].type) ? "" : "no-hover no-focus"}`,
|
20146
20149
|
children: [
|
20147
|
-
|
20150
|
+
y(T, j, !0),
|
20148
20151
|
S(T, j),
|
20149
|
-
y(T, j),
|
20150
20152
|
I(T, j),
|
20153
|
+
y(T, j),
|
20151
20154
|
b(T, j)
|
20152
20155
|
]
|
20153
20156
|
}
|
@@ -20192,7 +20195,7 @@ const wA = (e) => {
|
|
20192
20195
|
onClick: A(T),
|
20193
20196
|
variant: he.borderLess,
|
20194
20197
|
style: be.negativeGrey,
|
20195
|
-
size:
|
20198
|
+
size: M.small
|
20196
20199
|
}
|
20197
20200
|
) })
|
20198
20201
|
] }, T.id))
|
@@ -20378,7 +20381,7 @@ const wA = (e) => {
|
|
20378
20381
|
children: /* @__PURE__ */ t.jsx(Ql, { className: "icon-dim-16" })
|
20379
20382
|
}
|
20380
20383
|
),
|
20381
|
-
size:
|
20384
|
+
size: M.large,
|
20382
20385
|
onClick: l
|
20383
20386
|
}
|
20384
20387
|
),
|
@@ -21118,7 +21121,7 @@ const wA = (e) => {
|
|
21118
21121
|
showAriaLabelInTippy: !1,
|
21119
21122
|
dataTestId: "deactivate-suggestions",
|
21120
21123
|
onClick: e,
|
21121
|
-
size:
|
21124
|
+
size: M.xs,
|
21122
21125
|
variant: he.borderLess,
|
21123
21126
|
style: be.negativeGrey
|
21124
21127
|
}
|
@@ -21207,14 +21210,14 @@ const wA = (e) => {
|
|
21207
21210
|
() => iI(s, n, a, o),
|
21208
21211
|
[s, n, a]
|
21209
21212
|
), g = pi(), f = Y(null), N = te(() => {
|
21210
|
-
const
|
21213
|
+
const y = f.current?.getBoundingClientRect() || {
|
21211
21214
|
x: 0,
|
21212
21215
|
y: 0
|
21213
21216
|
};
|
21214
|
-
return { x:
|
21217
|
+
return { x: y.x, y: y.y };
|
21215
21218
|
}, [f.current]);
|
21216
21219
|
k(() => {
|
21217
|
-
const
|
21220
|
+
const y = new ResizeObserver((v) => {
|
21218
21221
|
if (v?.length > 0 && c) {
|
21219
21222
|
const { height: b } = v[0].contentRect;
|
21220
21223
|
N.y + m.y + b > g.height && p({
|
@@ -21223,37 +21226,37 @@ const wA = (e) => {
|
|
21223
21226
|
});
|
21224
21227
|
}
|
21225
21228
|
});
|
21226
|
-
return
|
21227
|
-
|
21229
|
+
return y.observe(f.current), () => {
|
21230
|
+
y.disconnect();
|
21228
21231
|
};
|
21229
21232
|
}, [c, m, g, N]);
|
21230
21233
|
const C = () => {
|
21231
|
-
const
|
21234
|
+
const y = {
|
21232
21235
|
x: N.x + d.x,
|
21233
21236
|
y: N.y + d.y
|
21234
21237
|
};
|
21235
21238
|
p({
|
21236
21239
|
x: d.x,
|
21237
21240
|
y: d.y
|
21238
|
-
}),
|
21241
|
+
}), y.y > g.height - _s.height && p({
|
21239
21242
|
x: d.x,
|
21240
21243
|
y: g.height - _s.height - N.y
|
21241
|
-
}),
|
21244
|
+
}), y.x > g.width - _s.width && p({
|
21242
21245
|
x: g.width - _s.width - N.x,
|
21243
21246
|
y: d.y
|
21244
|
-
}),
|
21247
|
+
}), y.x > g.width - _s.width && y.y > g.height - _s.height && p({
|
21245
21248
|
x: g.width - _s.width - N.x,
|
21246
21249
|
y: g.height - _s.height - N.y
|
21247
21250
|
}), l(!0);
|
21248
|
-
}, A = ze((
|
21249
|
-
|
21250
|
-
}, []), S = (
|
21251
|
+
}, A = ze((y) => {
|
21252
|
+
y.stopPropagation(), l(!1);
|
21253
|
+
}, []), S = (y, v) => {
|
21251
21254
|
const b = {
|
21252
21255
|
x: N.x + v.x,
|
21253
21256
|
y: N.y + v.y
|
21254
21257
|
};
|
21255
21258
|
b.y < 0 || b.x < 0 || b.x + (f.current?.getBoundingClientRect().width || 0) > g.width || b.y + (f.current?.getBoundingClientRect().height || 0) > g.height || u(v);
|
21256
|
-
},
|
21259
|
+
}, I = (y, v) => {
|
21257
21260
|
const b = {
|
21258
21261
|
x: N.x + v.x,
|
21259
21262
|
y: N.y + v.y
|
@@ -21267,7 +21270,7 @@ const wA = (e) => {
|
|
21267
21270
|
handle: ".handle-drag",
|
21268
21271
|
nodeRef: f,
|
21269
21272
|
position: m,
|
21270
|
-
onDrag:
|
21273
|
+
onDrag: I,
|
21271
21274
|
children: /* @__PURE__ */ t.jsx(
|
21272
21275
|
"div",
|
21273
21276
|
{
|
@@ -21441,8 +21444,8 @@ const mI = ({
|
|
21441
21444
|
(f, N) => {
|
21442
21445
|
const C = lo.some((S) => S.label === u), A = uI[u] ?? ((S) => S);
|
21443
21446
|
if (!C) {
|
21444
|
-
const S = f.additionalKeys?.find((
|
21445
|
-
return at(S,
|
21447
|
+
const S = f.additionalKeys?.find((y) => y.label === u)?.value || "", I = N.additionalKeys?.find((y) => y.label === u)?.value || "";
|
21448
|
+
return at(S, I, m);
|
21446
21449
|
}
|
21447
21450
|
return (m === xe.ASC ? 1 : -1) * (A(f[Ol[u]]) < A(N[Ol[u]]) ? -1 : 1);
|
21448
21451
|
},
|
@@ -21487,7 +21490,7 @@ const mI = ({
|
|
21487
21490
|
dataTestId: "rb-bulk-action__cross",
|
21488
21491
|
component: Kn.button,
|
21489
21492
|
style: be.negativeGrey,
|
21490
|
-
size:
|
21493
|
+
size: M.xs,
|
21491
21494
|
variant: he.borderLess,
|
21492
21495
|
ariaLabel: `Close ${i} drawer`,
|
21493
21496
|
showTooltip: e,
|
@@ -21564,7 +21567,7 @@ const mI = ({
|
|
21564
21567
|
re,
|
21565
21568
|
{
|
21566
21569
|
dataTestId: "rb-bulk-action__abort",
|
21567
|
-
size:
|
21570
|
+
size: M.large,
|
21568
21571
|
variant: he.secondary,
|
21569
21572
|
style: be.negative,
|
21570
21573
|
onClick: r,
|
@@ -21578,7 +21581,7 @@ const mI = ({
|
|
21578
21581
|
re,
|
21579
21582
|
{
|
21580
21583
|
dataTestId: "rb-bulk-action__close",
|
21581
|
-
size:
|
21584
|
+
size: M.large,
|
21582
21585
|
variant: he.secondary,
|
21583
21586
|
style: be.neutral,
|
21584
21587
|
isLoading: e,
|
@@ -21590,7 +21593,7 @@ const mI = ({
|
|
21590
21593
|
re,
|
21591
21594
|
{
|
21592
21595
|
dataTestId: "rb-bulk-action__retry",
|
21593
|
-
size:
|
21596
|
+
size: M.large,
|
21594
21597
|
variant: he.primary,
|
21595
21598
|
style: be.default,
|
21596
21599
|
component: Kn.button,
|
@@ -21627,10 +21630,10 @@ const mI = ({
|
|
21627
21630
|
}, f = async () => {
|
21628
21631
|
try {
|
21629
21632
|
m(!0);
|
21630
|
-
let
|
21633
|
+
let y = -1;
|
21631
21634
|
const v = () => {
|
21632
|
-
|
21633
|
-
p((/* @__PURE__ */ new Date()).toISOString()),
|
21635
|
+
y >= 0 || (y = setTimeout(() => {
|
21636
|
+
p((/* @__PURE__ */ new Date()).toISOString()), y = -1;
|
21634
21637
|
}, 10));
|
21635
21638
|
}, b = _.current.map((O) => async () => {
|
21636
21639
|
const { operation: T, name: j, additionalKeys: w, renderContentAtResultRowEnd: L = null } = O;
|
@@ -21671,8 +21674,8 @@ const mI = ({
|
|
21671
21674
|
variant: Se.info,
|
21672
21675
|
description: "Action completed"
|
21673
21676
|
}), r && g();
|
21674
|
-
} catch (
|
21675
|
-
Be(
|
21677
|
+
} catch (y) {
|
21678
|
+
Be(y);
|
21676
21679
|
} finally {
|
21677
21680
|
m(!1);
|
21678
21681
|
}
|
@@ -21703,7 +21706,7 @@ const mI = ({
|
|
21703
21706
|
}
|
21704
21707
|
}
|
21705
21708
|
}
|
21706
|
-
),
|
21709
|
+
), I = () => /* @__PURE__ */ t.jsx(
|
21707
21710
|
mI,
|
21708
21711
|
{
|
21709
21712
|
apiCallInProgress: u,
|
@@ -21719,7 +21722,7 @@ const mI = ({
|
|
21719
21722
|
);
|
21720
21723
|
return /* @__PURE__ */ t.jsxs("div", { className: "bulk-operations", children: [
|
21721
21724
|
/* @__PURE__ */ t.jsx(n_, { when: u, message: o.prompt }),
|
21722
|
-
!i && !h ? S() :
|
21725
|
+
!i && !h ? S() : I()
|
21723
21726
|
] });
|
21724
21727
|
}, Rn = ({
|
21725
21728
|
title: e,
|
@@ -22088,18 +22091,18 @@ const mI = ({
|
|
22088
22091
|
warning: /* @__PURE__ */ t.jsx(xn, {}),
|
22089
22092
|
neutral: /* @__PURE__ */ t.jsx(qe, { name: "ic-info-filled", color: null })
|
22090
22093
|
}, NI = {
|
22091
|
-
[
|
22092
|
-
[
|
22094
|
+
[M.large]: "px-12",
|
22095
|
+
[M.medium]: "px-8"
|
22093
22096
|
}, CI = {
|
22094
|
-
[
|
22095
|
-
[
|
22097
|
+
[M.large]: "icon-dim-20",
|
22098
|
+
[M.medium]: "icon-dim-18"
|
22096
22099
|
}, Ml = {
|
22097
|
-
[
|
22098
|
-
[
|
22100
|
+
[M.large]: M.medium,
|
22101
|
+
[M.medium]: M.small
|
22099
22102
|
}, XD = ({
|
22100
22103
|
layout: e = "row",
|
22101
22104
|
variant: s = "information",
|
22102
|
-
size: n =
|
22105
|
+
size: n = M.large,
|
22103
22106
|
customIcon: a,
|
22104
22107
|
buttonProps: r,
|
22105
22108
|
heading: o,
|
@@ -22110,17 +22113,17 @@ const mI = ({
|
|
22110
22113
|
const d = `${NI[n]} ${xI[s]} ${Ir({ borderConfig: l, borderRadiusConfig: c })} w-100 py-8 br-4 bw-1`, u = `dc__no-shrink flex dc__fill-available-space ${CI[n]}`, m = a ?? EI[s], p = () => /* @__PURE__ */ t.jsx("span", { className: u, children: m }), _ = () => o ? typeof o == "string" ? /* @__PURE__ */ t.jsx(
|
22111
22114
|
"h6",
|
22112
22115
|
{
|
22113
|
-
className: `cn-9 ${n ===
|
22116
|
+
className: `cn-9 ${n === M.large ? "fs-13 lh-20" : "fs-12 lh-18"} fw-6 m-0 dc__truncate--clamp-3 dc__word-break`,
|
22114
22117
|
children: o
|
22115
22118
|
}
|
22116
22119
|
) : o : null, E = () => i ? typeof i == "string" ? /* @__PURE__ */ t.jsx(
|
22117
22120
|
"p",
|
22118
22121
|
{
|
22119
|
-
className: `m-0 cn-9 fw-4 ${n ===
|
22122
|
+
className: `m-0 cn-9 fw-4 ${n === M.large ? "fs-13 lh-20" : "fs-12 lh-18"} dc__truncate--clamp-6 dc__word-break`,
|
22120
22123
|
children: i
|
22121
22124
|
}
|
22122
22125
|
) : i : null, x = () => {
|
22123
|
-
const h = e === "column", g = n ===
|
22126
|
+
const h = e === "column", g = n === M.medium ? "dc__gap-2" : "dc__gap-4";
|
22124
22127
|
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${h ? g : ""}`, children: [
|
22125
22128
|
_(),
|
22126
22129
|
E()
|
@@ -22983,7 +22986,7 @@ const $i = ({
|
|
22983
22986
|
dataTestId: "clear-filters",
|
22984
22987
|
onClick: e,
|
22985
22988
|
variant: he.secondary,
|
22986
|
-
size:
|
22989
|
+
size: M.medium,
|
22987
22990
|
text: "Clear Filters"
|
22988
22991
|
}
|
22989
22992
|
);
|
@@ -23000,7 +23003,7 @@ const $i = ({
|
|
23000
23003
|
);
|
23001
23004
|
}, FI = (e) => {
|
23002
23005
|
switch (e) {
|
23003
|
-
case
|
23006
|
+
case M.large:
|
23004
23007
|
return "h-36";
|
23005
23008
|
default:
|
23006
23009
|
return "h-32";
|
@@ -23017,7 +23020,7 @@ const $i = ({
|
|
23017
23020
|
debounceTimeout: i = 300,
|
23018
23021
|
dataTestId: c = "search-bar",
|
23019
23022
|
noBackgroundAndBorder: l = !1,
|
23020
|
-
size: d =
|
23023
|
+
size: d = M.medium
|
23021
23024
|
}) => {
|
23022
23025
|
const [u, m] = R(!!e), p = Y(), _ = ze(Mm(s, i), [
|
23023
23026
|
s,
|
@@ -23067,7 +23070,7 @@ const $i = ({
|
|
23067
23070
|
re,
|
23068
23071
|
{
|
23069
23072
|
icon: /* @__PURE__ */ t.jsx(us, {}),
|
23070
|
-
size:
|
23073
|
+
size: M.xs,
|
23071
23074
|
variant: he.borderLess,
|
23072
23075
|
style: be.negativeGrey,
|
23073
23076
|
dataTestId: "clear-search",
|
@@ -23141,7 +23144,7 @@ const Wm = ({
|
|
23141
23144
|
forceReInit: m,
|
23142
23145
|
isSuperAdmin: p
|
23143
23146
|
}) => {
|
23144
|
-
const [_, E] = R(a || []), [x, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, C] = R(n ? n.comment : ""), [A, S] = R(!1), [
|
23147
|
+
const [_, E] = R(a || []), [x, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, C] = R(n ? n.comment : ""), [A, S] = R(!1), [I, y] = R(!1), [v, b] = R(a || []), [O, T] = R(""), [j, w] = R([]), [L, B] = R([]), [V, X] = R([]), [q, Q] = R(""), [de, Ie] = R(""), [H, F] = R(!1);
|
23145
23148
|
k(() => {
|
23146
23149
|
ce();
|
23147
23150
|
}, [a, n, c]), k(() => {
|
@@ -23155,8 +23158,8 @@ const Wm = ({
|
|
23155
23158
|
const Ae = W.target.value;
|
23156
23159
|
Ae?.length > 500 ? Q("comment length cannot exceed 500 characters") : Q(""), C(Ae);
|
23157
23160
|
}, D = () => {
|
23158
|
-
b(_), C(x), w([]), B([]), X([]), le(),
|
23159
|
-
},
|
23161
|
+
b(_), C(x), w([]), B([]), X([]), le(), y(!1), T("");
|
23162
|
+
}, P = (W) => {
|
23160
23163
|
if (W.length == 0 || W.length >= 128 || W[0] == "." || W[0] == "-")
|
23161
23164
|
return T("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
23162
23165
|
T("");
|
@@ -23167,7 +23170,7 @@ const Wm = ({
|
|
23167
23170
|
return Ae || _e || W === "latest" ? (T("This label is already being used in this application"), !1) : !0;
|
23168
23171
|
}, $ = (W) => {
|
23169
23172
|
const Ae = W.toLowerCase().trim();
|
23170
|
-
if (
|
23173
|
+
if (P(Ae)) {
|
23171
23174
|
const _e = {
|
23172
23175
|
id: 0,
|
23173
23176
|
tagName: Ae,
|
@@ -23176,7 +23179,7 @@ const Wm = ({
|
|
23176
23179
|
artifactId: 0,
|
23177
23180
|
duplicateTag: !1
|
23178
23181
|
}, Ge = [...j, _e];
|
23179
|
-
return w(Ge), b([...v, _e]),
|
23182
|
+
return w(Ge), b([...v, _e]), y(!0), Ie(""), Ge;
|
23180
23183
|
}
|
23181
23184
|
return j;
|
23182
23185
|
}, ee = (W) => {
|
@@ -23230,7 +23233,7 @@ const Wm = ({
|
|
23230
23233
|
appId: 0,
|
23231
23234
|
artifactId: 0
|
23232
23235
|
}));
|
23233
|
-
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), h(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(),
|
23236
|
+
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), h(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(), y(!1), T(""), r && r(s, Ge, _e.result?.imageComment);
|
23234
23237
|
}).catch((_e) => {
|
23235
23238
|
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ke.showToast({
|
23236
23239
|
variant: Se.error,
|
@@ -23260,7 +23263,7 @@ const Wm = ({
|
|
23260
23263
|
const xt = (W) => {
|
23261
23264
|
W.key === "Enter" && W.target.value.trim() && $(W.target.value.trim());
|
23262
23265
|
}, jt = (W) => {
|
23263
|
-
W.target.value &&
|
23266
|
+
W.target.value && P(W.target.value), Ie(W.target.value);
|
23264
23267
|
}, _a = (W) => {
|
23265
23268
|
Ne(W), de.trim() && $(de.trim());
|
23266
23269
|
}, Br = () => {
|
@@ -23327,7 +23330,7 @@ const Wm = ({
|
|
23327
23330
|
},
|
23328
23331
|
W.id
|
23329
23332
|
)) }),
|
23330
|
-
|
23333
|
+
I && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
23331
23334
|
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-16 mr-2" }),
|
23332
23335
|
"Tags cannot be edited/removed later"
|
23333
23336
|
] }),
|
@@ -24020,27 +24023,27 @@ const kt = {
|
|
24020
24023
|
k(() => {
|
24021
24024
|
_(e);
|
24022
24025
|
}, [e]);
|
24023
|
-
const f = Pe(n), N = f.isValid() ? f.format(yt.TWELVE_HOURS_FORMAT) : n, C = (
|
24026
|
+
const f = Pe(n), N = f.isValid() ? f.format(yt.TWELVE_HOURS_FORMAT) : n, C = (y) => {
|
24024
24027
|
let v = !0;
|
24025
|
-
return
|
24028
|
+
return y.length === 0 && (ke.showToast({
|
24026
24029
|
variant: Se.error,
|
24027
24030
|
description: ny
|
24028
24031
|
}), v = !1), v;
|
24029
24032
|
}, A = () => {
|
24030
|
-
let
|
24031
|
-
h && !u && (
|
24033
|
+
let y = !0;
|
24034
|
+
h && !u && (y = window.confirm(ay)), y && (_(e), m(!u), x(sn.WRITE));
|
24032
24035
|
}, S = async () => {
|
24033
|
-
const
|
24034
|
-
if (C(
|
24036
|
+
const y = p.trim();
|
24037
|
+
if (C(y))
|
24035
24038
|
try {
|
24036
|
-
d(!0), await o(
|
24039
|
+
d(!0), await o(y), m(!0), _(y);
|
24037
24040
|
} catch (b) {
|
24038
24041
|
Be(b);
|
24039
24042
|
} finally {
|
24040
24043
|
d(!1);
|
24041
24044
|
}
|
24042
|
-
},
|
24043
|
-
switch (
|
24045
|
+
}, I = (y) => {
|
24046
|
+
switch (y) {
|
24044
24047
|
case Lt.HEADER:
|
24045
24048
|
return /* @__PURE__ */ t.jsx(
|
24046
24049
|
fe,
|
@@ -24048,7 +24051,7 @@ const kt = {
|
|
24048
24051
|
className: "default-tt",
|
24049
24052
|
arrow: !1,
|
24050
24053
|
placement: "bottom",
|
24051
|
-
content: kt[
|
24054
|
+
content: kt[y],
|
24052
24055
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(qh, { className: "icon-dim-16 flex" }) })
|
24053
24056
|
}
|
24054
24057
|
);
|
@@ -24059,7 +24062,7 @@ const kt = {
|
|
24059
24062
|
className: "default-tt",
|
24060
24063
|
arrow: !1,
|
24061
24064
|
placement: "bottom",
|
24062
|
-
content: kt[
|
24065
|
+
content: kt[y],
|
24063
24066
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Xh, { className: "icon-dim-16 flex" }) })
|
24064
24067
|
}
|
24065
24068
|
);
|
@@ -24070,7 +24073,7 @@ const kt = {
|
|
24070
24073
|
className: "default-tt",
|
24071
24074
|
arrow: !1,
|
24072
24075
|
placement: "bottom",
|
24073
|
-
content: kt[
|
24076
|
+
content: kt[y],
|
24074
24077
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Jh, { className: "icon-dim-16 flex" }) })
|
24075
24078
|
}
|
24076
24079
|
);
|
@@ -24081,7 +24084,7 @@ const kt = {
|
|
24081
24084
|
className: "default-tt",
|
24082
24085
|
arrow: !1,
|
24083
24086
|
placement: "bottom",
|
24084
|
-
content: kt[
|
24087
|
+
content: kt[y],
|
24085
24088
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Qh, { className: "icon-dim-16 flex" }) })
|
24086
24089
|
}
|
24087
24090
|
);
|
@@ -24092,7 +24095,7 @@ const kt = {
|
|
24092
24095
|
className: "default-tt",
|
24093
24096
|
arrow: !1,
|
24094
24097
|
placement: "bottom",
|
24095
|
-
content: kt[
|
24098
|
+
content: kt[y],
|
24096
24099
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Zh, { className: "icon-dim-16 flex" }) })
|
24097
24100
|
}
|
24098
24101
|
);
|
@@ -24103,7 +24106,7 @@ const kt = {
|
|
24103
24106
|
className: "default-tt",
|
24104
24107
|
arrow: !1,
|
24105
24108
|
placement: "bottom",
|
24106
|
-
content: kt[
|
24109
|
+
content: kt[y],
|
24107
24110
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(tg, { className: "icon-dim-16 flex" }) })
|
24108
24111
|
}
|
24109
24112
|
);
|
@@ -24114,7 +24117,7 @@ const kt = {
|
|
24114
24117
|
className: "default-tt",
|
24115
24118
|
arrow: !1,
|
24116
24119
|
placement: "bottom",
|
24117
|
-
content: kt[
|
24120
|
+
content: kt[y],
|
24118
24121
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(eg, { className: "icon-dim-16 flex" }) })
|
24119
24122
|
}
|
24120
24123
|
);
|
@@ -24125,7 +24128,7 @@ const kt = {
|
|
24125
24128
|
className: "default-tt",
|
24126
24129
|
arrow: !1,
|
24127
24130
|
placement: "bottom",
|
24128
|
-
content: kt[
|
24131
|
+
content: kt[y],
|
24129
24132
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(sg, { className: "icon-dim-16 flex" }) })
|
24130
24133
|
}
|
24131
24134
|
);
|
@@ -24136,7 +24139,7 @@ const kt = {
|
|
24136
24139
|
className: "default-tt",
|
24137
24140
|
arrow: !1,
|
24138
24141
|
placement: "bottom",
|
24139
|
-
content: kt[
|
24142
|
+
content: kt[y],
|
24140
24143
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(ac, { className: "icon-dim-16 flex" }) })
|
24141
24144
|
}
|
24142
24145
|
);
|
@@ -24147,7 +24150,7 @@ const kt = {
|
|
24147
24150
|
className: "default-tt",
|
24148
24151
|
arrow: !1,
|
24149
24152
|
placement: "bottom",
|
24150
|
-
content: kt[
|
24153
|
+
content: kt[y],
|
24151
24154
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(ng, { className: "icon-dim-16 flex" }) })
|
24152
24155
|
}
|
24153
24156
|
);
|
@@ -24158,7 +24161,7 @@ const kt = {
|
|
24158
24161
|
className: "default-tt",
|
24159
24162
|
arrow: !1,
|
24160
24163
|
placement: "bottom",
|
24161
|
-
content: kt[
|
24164
|
+
content: kt[y],
|
24162
24165
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(ag, { className: "icon-dim-16 flex" }) })
|
24163
24166
|
}
|
24164
24167
|
);
|
@@ -24201,7 +24204,7 @@ const kt = {
|
|
24201
24204
|
value: e,
|
24202
24205
|
selectedTab: "preview",
|
24203
24206
|
minPreviewHeight: 150,
|
24204
|
-
generateMarkdownPreview: (
|
24207
|
+
generateMarkdownPreview: (y) => Promise.resolve(/* @__PURE__ */ t.jsx(Vl, { markdown: y, breaks: !0, disableEscapedText: !0 }))
|
24205
24208
|
}
|
24206
24209
|
)
|
24207
24210
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "min-w-500", children: [
|
@@ -24216,7 +24219,7 @@ const kt = {
|
|
24216
24219
|
preview: "mark-down-editor-preview pt-8",
|
24217
24220
|
textArea: `mark-down-editor-textarea-wrapper ${a ? "" : "h-200-imp"}`
|
24218
24221
|
},
|
24219
|
-
getIcon: (
|
24222
|
+
getIcon: (y) => I(y),
|
24220
24223
|
toolbarCommands: sy,
|
24221
24224
|
value: p,
|
24222
24225
|
onChange: _,
|
@@ -24224,8 +24227,8 @@ const kt = {
|
|
24224
24227
|
minPreviewHeight: 150,
|
24225
24228
|
selectedTab: E,
|
24226
24229
|
onTabChange: x,
|
24227
|
-
generateMarkdownPreview: (
|
24228
|
-
/* @__PURE__ */ t.jsx(Vl, { markdown:
|
24230
|
+
generateMarkdownPreview: (y) => Promise.resolve(
|
24231
|
+
/* @__PURE__ */ t.jsx(Vl, { markdown: y || ty, breaks: !0 })
|
24229
24232
|
),
|
24230
24233
|
childProps: {
|
24231
24234
|
writeButton: {
|
@@ -24269,8 +24272,8 @@ const kt = {
|
|
24269
24272
|
};
|
24270
24273
|
var zm = /* @__PURE__ */ ((e) => (e.GRAY_ON_WHITE = "gui-yaml-switch", e.WHITE_ON_GRAY = "gui-yaml-switch-window-bg", e))(zm || {});
|
24271
24274
|
const ry = {
|
24272
|
-
[
|
24273
|
-
[
|
24275
|
+
[M.medium]: "",
|
24276
|
+
[M.large]: "gui-yaml-switch--lg"
|
24274
24277
|
}, BP = ({
|
24275
24278
|
tabs: e,
|
24276
24279
|
initialTab: s,
|
@@ -24280,7 +24283,7 @@ const ry = {
|
|
24280
24283
|
rootClassName: o = "",
|
24281
24284
|
name: i,
|
24282
24285
|
variant: c = zm.WHITE_ON_GRAY,
|
24283
|
-
size: l =
|
24286
|
+
size: l = M.medium,
|
24284
24287
|
isControlled: d = !1
|
24285
24288
|
}) => /* @__PURE__ */ t.jsx(
|
24286
24289
|
It,
|
@@ -25007,7 +25010,7 @@ export {
|
|
25007
25010
|
cc as kL,
|
25008
25011
|
Xg as kM,
|
25009
25012
|
lc as kN,
|
25010
|
-
|
25013
|
+
M as kO,
|
25011
25014
|
gs as kP,
|
25012
25015
|
Vd as kQ,
|
25013
25016
|
Gd as kR,
|