@devtron-labs/devtron-fe-common-lib 1.20.3 → 1.20.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-BEMPeFu_.js → @code-editor-DLmaobU2.js} +516 -515
- package/dist/{@common-rjsf-Yk5P2kqe.js → @common-rjsf-DS5LSU3C.js} +1 -1
- package/dist/Shared/Components/ContextSwitcher/ContextSwitcher.d.ts +1 -1
- package/dist/Shared/Components/ContextSwitcher/types.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
@@ -3291,14 +3291,14 @@ const El = (e) => {
|
|
3291
3291
|
name: f,
|
3292
3292
|
classNamePrefix: C,
|
3293
3293
|
shouldRenderCustomOptions: N = !1,
|
3294
|
-
isSearchable:
|
3294
|
+
isSearchable: S,
|
3295
3295
|
selectRef: T,
|
3296
3296
|
shouldMenuAlignRight: A = !1,
|
3297
3297
|
fullWidth: R = !1,
|
3298
3298
|
customSelectedOptionsCount: b = null,
|
3299
3299
|
menuListFooterConfig: I,
|
3300
3300
|
isCreatable: y = !1,
|
3301
|
-
onCreateOption:
|
3301
|
+
onCreateOption: v,
|
3302
3302
|
closeMenuOnSelect: j,
|
3303
3303
|
shouldShowNoOptionsMessage: P = !0,
|
3304
3304
|
shouldRenderTextArea: O = !1,
|
@@ -3329,7 +3329,7 @@ const El = (e) => {
|
|
3329
3329
|
isGroupHeadingSelectable: J = !1,
|
3330
3330
|
getIsOptionValid: ae = () => !0,
|
3331
3331
|
customDisplayText: Ae = null
|
3332
|
-
} = x, Me = lt && !Ae, We = !g && i, vs = !N &&
|
3332
|
+
} = x, Me = lt && !Ae, We = !g && i, vs = !N && S, Un = j ?? !g, $n = X(
|
3333
3333
|
() => yS({
|
3334
3334
|
error: e,
|
3335
3335
|
size: c,
|
@@ -3368,7 +3368,7 @@ const El = (e) => {
|
|
3368
3368
|
inputValue: z
|
3369
3369
|
}) || "No options" }) : null, Q_ = (Oe) => /* @__PURE__ */ t.jsx(Re, { content: l, placement: "top", className: "default-tt", arrow: !1, children: Oe }), ef = (Oe) => {
|
3370
3370
|
const Is = Oe?.trim();
|
3371
|
-
Is &&
|
3371
|
+
Is && v?.(Is);
|
3372
3372
|
}, tf = (Oe, Is) => {
|
3373
3373
|
if (le.onInputChange) {
|
3374
3374
|
le.onInputChange(Oe, Is);
|
@@ -3505,16 +3505,16 @@ const El = (e) => {
|
|
3505
3505
|
m(), l(!1), r?.();
|
3506
3506
|
}, N = (A) => {
|
3507
3507
|
u(), _(structuredClone(A));
|
3508
|
-
},
|
3508
|
+
}, S = (A) => {
|
3509
3509
|
s(p), m(), !A || A.isTrusted ? C() : setTimeout(() => {
|
3510
3510
|
i.current.focus();
|
3511
3511
|
}, 100);
|
3512
3512
|
}, T = () => {
|
3513
|
-
r?.(),
|
3513
|
+
r?.(), S();
|
3514
3514
|
};
|
3515
|
-
return M(() => (c && h({ keys: yo, callback:
|
3515
|
+
return M(() => (c && h({ keys: yo, callback: S }), () => {
|
3516
3516
|
E(yo);
|
3517
|
-
}), [
|
3517
|
+
}), [S, c]), /* @__PURE__ */ t.jsx("div", { className: "dc__mxw-250", children: /* @__PURE__ */ t.jsx(
|
3518
3518
|
Ft,
|
3519
3519
|
{
|
3520
3520
|
...o,
|
@@ -3531,7 +3531,7 @@ const El = (e) => {
|
|
3531
3531
|
buttonProps: {
|
3532
3532
|
text: "Apply",
|
3533
3533
|
dataTestId: "filter-select-picker-apply",
|
3534
|
-
onClick:
|
3534
|
+
onClick: S,
|
3535
3535
|
showTooltip: !0,
|
3536
3536
|
tooltipProps: {
|
3537
3537
|
shortcutKeyCombo: {
|
@@ -3576,7 +3576,7 @@ const El = (e) => {
|
|
3576
3576
|
labelTooltipConfig: f,
|
3577
3577
|
inputRef: C,
|
3578
3578
|
hideFormFieldInfo: N,
|
3579
|
-
...
|
3579
|
+
...S
|
3580
3580
|
}) => {
|
3581
3581
|
const T = F(null), A = C || T;
|
3582
3582
|
M(() => {
|
@@ -3586,14 +3586,14 @@ const El = (e) => {
|
|
3586
3586
|
}, [E]);
|
3587
3587
|
const R = (y) => {
|
3588
3588
|
if (d) {
|
3589
|
-
const
|
3590
|
-
y.target.value !==
|
3589
|
+
const v = y.target.value?.trim();
|
3590
|
+
y.target.value !== v && (y.stopPropagation(), y.target.value = v, S.onChange(y));
|
3591
3591
|
}
|
3592
3592
|
l?.(y);
|
3593
3593
|
}, b = (y) => {
|
3594
3594
|
y.stopPropagation(), A.current.focus(), x?.onClick(y);
|
3595
3595
|
}, I = (y) => {
|
3596
|
-
y.key === "Escape" && A.current.blur(),
|
3596
|
+
y.key === "Escape" && A.current.blur(), S.onKeyDown?.(y);
|
3597
3597
|
};
|
3598
3598
|
return /* @__PURE__ */ t.jsx(
|
3599
3599
|
cc,
|
@@ -3616,7 +3616,7 @@ const El = (e) => {
|
|
3616
3616
|
/* @__PURE__ */ t.jsx(
|
3617
3617
|
"input",
|
3618
3618
|
{
|
3619
|
-
...
|
3619
|
+
...S,
|
3620
3620
|
...ic({
|
3621
3621
|
inputId: e,
|
3622
3622
|
required: c,
|
@@ -3865,7 +3865,7 @@ const El = (e) => {
|
|
3865
3865
|
onTriggerKeyDown: c,
|
3866
3866
|
disableClose: l = !1
|
3867
3867
|
}) => {
|
3868
|
-
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E, x] = w(null), [g, f] = w(!1), C = a === "auto", N = F(null),
|
3868
|
+
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E, x] = w(null), [g, f] = w(!1), C = a === "auto", N = F(null), S = F(null), T = F(null), A = (j) => {
|
3869
3869
|
u(j), o?.(j);
|
3870
3870
|
}, R = () => {
|
3871
3871
|
l && d || A(!d);
|
@@ -3875,14 +3875,14 @@ const El = (e) => {
|
|
3875
3875
|
A(!1), N.current?.querySelector("button")?.blur(), N.current?.blur();
|
3876
3876
|
}, I = (j) => {
|
3877
3877
|
!d && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), A(!0)), c?.(j, d, b);
|
3878
|
-
}, y = (j) => i?.(j, d, b),
|
3878
|
+
}, y = (j) => i?.(j, d, b), v = () => {
|
3879
3879
|
b();
|
3880
3880
|
};
|
3881
3881
|
return Gi(() => {
|
3882
|
-
if (!d || !g || !N.current || !
|
3882
|
+
if (!d || !g || !N.current || !S.current || !T.current)
|
3883
3883
|
return;
|
3884
3884
|
const j = () => {
|
3885
|
-
const O = N.current.getBoundingClientRect(), D =
|
3885
|
+
const O = N.current.getBoundingClientRect(), D = S.current.getBoundingClientRect(), { fallbackPosition: k, fallbackAlignment: G } = JS({
|
3886
3886
|
position: s,
|
3887
3887
|
alignment: n,
|
3888
3888
|
triggerRect: O,
|
@@ -3895,7 +3895,7 @@ const El = (e) => {
|
|
3895
3895
|
width: O.width
|
3896
3896
|
});
|
3897
3897
|
};
|
3898
|
-
j(),
|
3898
|
+
j(), S.current.focus();
|
3899
3899
|
const P = (O) => {
|
3900
3900
|
O.stopPropagation();
|
3901
3901
|
const D = T.current.scrollTop === 0 && O.deltaY < 0, k = T.current.scrollHeight - T.current.clientHeight === T.current.scrollTop && O.deltaY > 0;
|
@@ -3918,13 +3918,13 @@ const El = (e) => {
|
|
3918
3918
|
},
|
3919
3919
|
overlayProps: {
|
3920
3920
|
hasClearBackground: !0,
|
3921
|
-
onClick:
|
3921
|
+
onClick: v,
|
3922
3922
|
onEscape: b,
|
3923
3923
|
onBackdropMount: f
|
3924
3924
|
},
|
3925
3925
|
popoverProps: {
|
3926
3926
|
id: e,
|
3927
|
-
ref:
|
3927
|
+
ref: S,
|
3928
3928
|
role: "listbox",
|
3929
3929
|
className: `dc__position-abs dc__outline-none-imp ${r === "menu" ? "bg__menu--primary shadow__menu" : "bg__overlay--primary shadow__overlay"} border__primary br-6 dc__overflow-hidden ${C ? "dc_width-max-content dc__mxw-250" : ""}`,
|
3930
3930
|
onClick: ye,
|
@@ -4283,7 +4283,7 @@ const El = (e) => {
|
|
4283
4283
|
n && R && R.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
4284
4284
|
}, g = p === "negative", f = `w-100 flex left top dc__gap-8 py-6 px-8 ${_ ? "dc__disabled" : "cursor"}`, C = (R) => {
|
4285
4285
|
_ || a(e, R);
|
4286
|
-
}, N = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(B, { ...R, color: R.color || (g ? "R500" : "N800") }) }),
|
4286
|
+
}, N = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(B, { ...R, color: R.color || (g ? "R500" : "N800") }) }), S = () => u ? /* @__PURE__ */ t.jsx(fi, { ...u, variant: p }) : null, T = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
4287
4287
|
N(d),
|
4288
4288
|
/* @__PURE__ */ t.jsxs("span", { className: "flex-grow-1", children: [
|
4289
4289
|
/* @__PURE__ */ t.jsx(Z, { content: l, placement: "right", children: /* @__PURE__ */ t.jsx("span", { className: `m-0 fs-13 fw-4 lh-20 dc__truncate ${g ? "cr-5" : "cn-9"}`, children: l }) }),
|
@@ -4295,7 +4295,7 @@ const El = (e) => {
|
|
4295
4295
|
}
|
4296
4296
|
) : c)
|
4297
4297
|
] }),
|
4298
|
-
|
4298
|
+
S()
|
4299
4299
|
] }), A = () => {
|
4300
4300
|
switch (h) {
|
4301
4301
|
case "anchor":
|
@@ -4387,7 +4387,7 @@ const El = (e) => {
|
|
4387
4387
|
}, E = (R, b) => {
|
4388
4388
|
let I = R;
|
4389
4389
|
const y = p.length;
|
4390
|
-
for (let
|
4390
|
+
for (let v = 0; v < y; v++)
|
4391
4391
|
if (I = (I + b + y) % y, !p[I]?.option?.isDisabled)
|
4392
4392
|
return I;
|
4393
4393
|
return R;
|
@@ -4411,14 +4411,14 @@ const El = (e) => {
|
|
4411
4411
|
case "Enter":
|
4412
4412
|
case " ": {
|
4413
4413
|
R.preventDefault();
|
4414
|
-
const y = p[c].option,
|
4415
|
-
!y.isDisabled &&
|
4414
|
+
const y = p[c].option, v = _.current[c].current;
|
4415
|
+
!y.isDisabled && v && v.click();
|
4416
4416
|
break;
|
4417
4417
|
}
|
4418
4418
|
}
|
4419
4419
|
}, g = (R, b) => {
|
4420
4420
|
!b && (R.key === "Enter" || R.key === " ") && l(0);
|
4421
|
-
}, { open: f, closePopover: C, overlayProps: N, popoverProps:
|
4421
|
+
}, { open: f, closePopover: C, overlayProps: N, popoverProps: S, triggerProps: T, scrollableRef: A } = dc({
|
4422
4422
|
id: e,
|
4423
4423
|
position: s,
|
4424
4424
|
alignment: n,
|
@@ -4437,7 +4437,7 @@ const El = (e) => {
|
|
4437
4437
|
itemsRef: _,
|
4438
4438
|
triggerProps: T,
|
4439
4439
|
overlayProps: N,
|
4440
|
-
popoverProps:
|
4440
|
+
popoverProps: S,
|
4441
4441
|
setFocusedIndex: l,
|
4442
4442
|
closePopover: C,
|
4443
4443
|
searchTerm: d,
|
@@ -4468,7 +4468,7 @@ const El = (e) => {
|
|
4468
4468
|
focusedIndex: f,
|
4469
4469
|
searchTerm: C,
|
4470
4470
|
handleSearch: N,
|
4471
|
-
itemsRef:
|
4471
|
+
itemsRef: S,
|
4472
4472
|
setFocusedIndex: T,
|
4473
4473
|
closePopover: A,
|
4474
4474
|
scrollableRef: R
|
@@ -4480,8 +4480,8 @@ const El = (e) => {
|
|
4480
4480
|
width: o,
|
4481
4481
|
isSearchable: i,
|
4482
4482
|
onOpen: u
|
4483
|
-
}), b = (y) => () => T(y), I = (y,
|
4484
|
-
n(y,
|
4483
|
+
}), b = (y) => () => T(y), I = (y, v) => {
|
4484
|
+
n(y, v), A();
|
4485
4485
|
};
|
4486
4486
|
return /* @__PURE__ */ t.jsx(
|
4487
4487
|
lc,
|
@@ -4517,7 +4517,7 @@ const El = (e) => {
|
|
4517
4517
|
ref: R,
|
4518
4518
|
role: "menu",
|
4519
4519
|
className: "action-menu m-0 p-0 flex-grow-1 dc__overflow-auto dc__overscroll-none",
|
4520
|
-
children: _.length > 0 ? _.map((y,
|
4520
|
+
children: _.length > 0 ? _.map((y, v) => /* @__PURE__ */ t.jsxs(
|
4521
4521
|
"li",
|
4522
4522
|
{
|
4523
4523
|
role: "menuitem",
|
@@ -4526,13 +4526,13 @@ const El = (e) => {
|
|
4526
4526
|
y.groupLabel && /* @__PURE__ */ t.jsx("h4", { className: "bg__menu--secondary dc__truncate m-0 fs-12 lh-18 cn-9 fw-6 py-4 px-12 dc__position-sticky dc__top-0 dc__zi-1", children: y.groupLabel }),
|
4527
4527
|
y.items.length > 0 ? /* @__PURE__ */ t.jsx("ul", { className: "action-menu__group-list p-0", children: y.items.map((j, P) => {
|
4528
4528
|
const O = h.findIndex(
|
4529
|
-
(D) => D.sectionIndex ===
|
4529
|
+
(D) => D.sectionIndex === v && D.itemIndex === P
|
4530
4530
|
);
|
4531
4531
|
return /* @__PURE__ */ t.jsx(
|
4532
4532
|
Cv,
|
4533
4533
|
{
|
4534
4534
|
item: j,
|
4535
|
-
itemRef:
|
4535
|
+
itemRef: S.current[O],
|
4536
4536
|
isFocused: O === f,
|
4537
4537
|
onMouseEnter: b(O),
|
4538
4538
|
onClick: I,
|
@@ -4543,7 +4543,7 @@ const El = (e) => {
|
|
4543
4543
|
}) }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-18 fw-4 cn-7 py-6 px-12", children: "No options in this group" })
|
4544
4544
|
]
|
4545
4545
|
},
|
4546
|
-
y.groupLabel || `no-group-label-${
|
4546
|
+
y.groupLabel || `no-group-label-${v}`
|
4547
4547
|
)) : /* @__PURE__ */ t.jsx("li", { role: "menuitem", className: "py-8 px-12", children: /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-20 fw-4 cn-7", children: "No options" }) })
|
4548
4548
|
}
|
4549
4549
|
),
|
@@ -4643,12 +4643,12 @@ const El = (e) => {
|
|
4643
4643
|
}, g = (f) => {
|
4644
4644
|
if (f.key === "Enter" && f.shiftKey) {
|
4645
4645
|
f.preventDefault();
|
4646
|
-
const { selectionStart: C, selectionEnd: N } = m.current.inputRef,
|
4646
|
+
const { selectionStart: C, selectionEnd: N } = m.current.inputRef, S = `${d.slice(0, C)}
|
4647
4647
|
${d.slice(N)}`;
|
4648
|
-
u(
|
4648
|
+
u(S);
|
4649
4649
|
const T = m.current.inputRef, A = T.selectionStart, b = T.value.substring(0, A).split(`
|
4650
|
-
`), I = parseInt(getComputedStyle(T).lineHeight, 10),
|
4651
|
-
|
4650
|
+
`), I = parseInt(getComputedStyle(T).lineHeight, 10), v = b.length * I - T.scrollTop;
|
4651
|
+
v < 0 ? T.scrollTop += v : v > T.offsetHeight - I && (T.scrollTop += v - T.offsetHeight + I), setTimeout(() => {
|
4652
4652
|
m.current.inputRef.selectionStart = C + 1, m.current.inputRef.selectionEnd = C + 1;
|
4653
4653
|
});
|
4654
4654
|
return;
|
@@ -4906,14 +4906,14 @@ ${d.slice(N)}`;
|
|
4906
4906
|
const {
|
4907
4907
|
Icon: C,
|
4908
4908
|
iconPath: N,
|
4909
|
-
iconClass:
|
4909
|
+
iconClass: S,
|
4910
4910
|
iconSize: T,
|
4911
4911
|
onImageLoadError: A,
|
4912
4912
|
heading: R,
|
4913
4913
|
headingInfo: b,
|
4914
4914
|
infoTextHeading: I,
|
4915
4915
|
hideHeading: y,
|
4916
|
-
infoText:
|
4916
|
+
infoText: v,
|
4917
4917
|
showCloseButton: j,
|
4918
4918
|
additionalContent: P,
|
4919
4919
|
documentationLink: O,
|
@@ -4930,12 +4930,12 @@ ${d.slice(N)}`;
|
|
4930
4930
|
N ? /* @__PURE__ */ t.jsx(
|
4931
4931
|
"img",
|
4932
4932
|
{
|
4933
|
-
className: `icon-dim-${T || 20} mr-6 ${
|
4933
|
+
className: `icon-dim-${T || 20} mr-6 ${S || ""}`,
|
4934
4934
|
src: N,
|
4935
4935
|
alt: "Heading",
|
4936
4936
|
onError: A
|
4937
4937
|
}
|
4938
|
-
) : C && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${T || 20} mr-6`, children: /* @__PURE__ */ t.jsx(C, { className: `icon-dim-${T || 20} ${
|
4938
|
+
) : C && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${T || 20} mr-6`, children: /* @__PURE__ */ t.jsx(C, { className: `icon-dim-${T || 20} ${S || ""}` }) }),
|
4939
4939
|
R && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: R }),
|
4940
4940
|
b && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(Zr, { className: "icon-dim-20" }) }),
|
4941
4941
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
@@ -4965,11 +4965,11 @@ ${d.slice(N)}`;
|
|
4965
4965
|
children: I
|
4966
4966
|
}
|
4967
4967
|
),
|
4968
|
-
|
4968
|
+
v && /* @__PURE__ */ t.jsx(
|
4969
4969
|
"div",
|
4970
4970
|
{
|
4971
4971
|
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${r ? "p-12" : `pl-20 pr-20 pt-4 ${P && O ? "pb-12" : "pb-20"}`}`,
|
4972
|
-
children:
|
4972
|
+
children: v
|
4973
4973
|
}
|
4974
4974
|
),
|
4975
4975
|
P,
|
@@ -5505,7 +5505,7 @@ const cV = (e, s = !1) => {
|
|
5505
5505
|
}, [i, o]);
|
5506
5506
|
const E = (f) => {
|
5507
5507
|
const C = Object.keys(f || {}), N = Object.keys(i?.profile?.configurations || {});
|
5508
|
-
return C.concat(N).reduce((
|
5508
|
+
return C.concat(N).reduce((S, T) => (S[T] = !0, S), {});
|
5509
5509
|
};
|
5510
5510
|
return {
|
5511
5511
|
isLoading: o,
|
@@ -5515,18 +5515,18 @@ const cV = (e, s = !1) => {
|
|
5515
5515
|
profileInput: d,
|
5516
5516
|
profileInputErrors: m,
|
5517
5517
|
handleProfileInputChange: ({ action: f, data: C }) => {
|
5518
|
-
const N = structuredClone(d),
|
5518
|
+
const N = structuredClone(d), S = structuredClone(m), T = C && "targetPlatform" in C && Object.hasOwn(C, "targetPlatform") ? C.targetPlatform : "", A = N.configurations[T], R = structuredClone(
|
5519
5519
|
i.profile.configurations[T] || A
|
5520
5520
|
);
|
5521
5521
|
switch (f) {
|
5522
5522
|
case Zt.DESCRIPTION: {
|
5523
5523
|
const { value: b } = C;
|
5524
|
-
N.description = b,
|
5524
|
+
N.description = b, S[Zt.DESCRIPTION] = Pv(b).message;
|
5525
5525
|
break;
|
5526
5526
|
}
|
5527
5527
|
case Zt.NAME: {
|
5528
5528
|
const { value: b } = C;
|
5529
|
-
N.name = b,
|
5529
|
+
N.name = b, S[Zt.NAME] = Dv(b).message;
|
5530
5530
|
break;
|
5531
5531
|
}
|
5532
5532
|
case U.CPU_LIMIT:
|
@@ -5540,7 +5540,7 @@ const cV = (e, s = !1) => {
|
|
5540
5540
|
value: b,
|
5541
5541
|
unit: I
|
5542
5542
|
};
|
5543
|
-
const { keyToPersist: y, keyToPersistConfigType:
|
5543
|
+
const { keyToPersist: y, keyToPersistConfigType: v } = uS[f], { request: j, limit: P } = Fv({
|
5544
5544
|
request: {
|
5545
5545
|
value: b,
|
5546
5546
|
unit: I
|
@@ -5550,16 +5550,16 @@ const cV = (e, s = !1) => {
|
|
5550
5550
|
unit: I
|
5551
5551
|
},
|
5552
5552
|
[y]: {
|
5553
|
-
value: A[
|
5554
|
-
unit: A[
|
5553
|
+
value: A[v].value,
|
5554
|
+
unit: A[v].unit
|
5555
5555
|
},
|
5556
5556
|
unitsMap: i.configurationUnits[f]
|
5557
5557
|
});
|
5558
5558
|
if (y === "limit") {
|
5559
|
-
v
|
5559
|
+
S[v] = P.message, S[f] = j.message;
|
5560
5560
|
break;
|
5561
5561
|
}
|
5562
|
-
|
5562
|
+
S[f] = P.message, S[v] = j.message;
|
5563
5563
|
break;
|
5564
5564
|
}
|
5565
5565
|
case U.BUILD_TIMEOUT: {
|
@@ -5569,7 +5569,7 @@ const cV = (e, s = !1) => {
|
|
5569
5569
|
key: f,
|
5570
5570
|
value: b,
|
5571
5571
|
unit: I
|
5572
|
-
},
|
5572
|
+
}, S[f] = Mv(b).message;
|
5573
5573
|
break;
|
5574
5574
|
}
|
5575
5575
|
case "activate_tolerance":
|
@@ -5582,7 +5582,7 @@ const cV = (e, s = !1) => {
|
|
5582
5582
|
A[y] = {
|
5583
5583
|
...R[y],
|
5584
5584
|
active: !0
|
5585
|
-
},
|
5585
|
+
}, S[y] = null;
|
5586
5586
|
});
|
5587
5587
|
break;
|
5588
5588
|
}
|
@@ -5597,7 +5597,7 @@ const cV = (e, s = !1) => {
|
|
5597
5597
|
...A[y],
|
5598
5598
|
...R[y]?.defaultValue,
|
5599
5599
|
active: !1
|
5600
|
-
},
|
5600
|
+
}, S[y] = null;
|
5601
5601
|
});
|
5602
5602
|
break;
|
5603
5603
|
}
|
@@ -5605,8 +5605,8 @@ const cV = (e, s = !1) => {
|
|
5605
5605
|
case "activate_cs":
|
5606
5606
|
case "de_activate_cm":
|
5607
5607
|
case "de_activate_cs": {
|
5608
|
-
const { id: b, componentType: I } = C, y = at[I],
|
5609
|
-
if (j === -1 || !
|
5608
|
+
const { id: b, componentType: I } = C, y = at[I], v = A[y].value, j = v.findIndex((O) => O.id === b);
|
5609
|
+
if (j === -1 || !v[j].canOverride) {
|
5610
5610
|
const O = "Unable to customize this CM/CS";
|
5611
5611
|
ke.showToast({
|
5612
5612
|
variant: be.error,
|
@@ -5615,24 +5615,24 @@ const cV = (e, s = !1) => {
|
|
5615
5615
|
return;
|
5616
5616
|
}
|
5617
5617
|
const P = f === "activate_cm" || f === "activate_cs";
|
5618
|
-
if (
|
5619
|
-
const D = (R[y]?.value || []).find((k) => k.id === b) ||
|
5620
|
-
|
5618
|
+
if (v[j].isOverridden = P, P) {
|
5619
|
+
const D = (R[y]?.value || []).find((k) => k.id === b) || v[j];
|
5620
|
+
v[j].useFormProps = D?.useFormProps, v[j].initialResponse = D?.initialResponse;
|
5621
5621
|
} else
|
5622
|
-
|
5623
|
-
|
5622
|
+
v[j].useFormProps = v[j].defaultValue, v[j].initialResponse = v[j].defaultValueInitialResponse;
|
5623
|
+
S[at[I]] && (delete S[at[I]][b], Object.keys(S[at[I]]).length === 0 && (S[at[I]] = null));
|
5624
5624
|
break;
|
5625
5625
|
}
|
5626
5626
|
case Rt.ADD_TARGET_PLATFORM: {
|
5627
5627
|
const { handleCaptureSnapshot: b } = C;
|
5628
|
-
|
5628
|
+
S[da.TARGET_PLATFORM] = T ? vl(
|
5629
5629
|
T,
|
5630
5630
|
E(N.configurations)
|
5631
5631
|
).message : "", N.configurations[T] = i.fallbackPlatformConfigurationMap[T] || // Here need to update target platform name for each configuration
|
5632
5632
|
Object.entries(
|
5633
5633
|
i.fallbackPlatformConfigurationMap[fs]
|
5634
|
-
).reduce((I, [y,
|
5635
|
-
...
|
5634
|
+
).reduce((I, [y, v]) => (I[y] = {
|
5635
|
+
...v,
|
5636
5636
|
targetPlatform: T
|
5637
5637
|
}, I), {}), b(N);
|
5638
5638
|
break;
|
@@ -5645,30 +5645,30 @@ const cV = (e, s = !1) => {
|
|
5645
5645
|
}), bn(new Error("Platform does not exist"));
|
5646
5646
|
return;
|
5647
5647
|
}
|
5648
|
-
delete N.configurations[T], Object.keys(
|
5649
|
-
_l[b] && (
|
5648
|
+
delete N.configurations[T], Object.keys(S).forEach((b) => {
|
5649
|
+
_l[b] && (S[b] = null);
|
5650
5650
|
});
|
5651
5651
|
break;
|
5652
5652
|
}
|
5653
5653
|
case Rt.RENAME_TARGET_PLATFORM: {
|
5654
|
-
const { originalPlatformName: b, newPlatformName: I, configSnapshot: y } = C,
|
5654
|
+
const { originalPlatformName: b, newPlatformName: I, configSnapshot: y } = C, v = N.configurations[b];
|
5655
5655
|
if (b === I)
|
5656
5656
|
return;
|
5657
|
-
if (!
|
5657
|
+
if (!v) {
|
5658
5658
|
ke.showToast({
|
5659
5659
|
variant: be.error,
|
5660
5660
|
description: "Original platform does not exist"
|
5661
5661
|
});
|
5662
5662
|
return;
|
5663
5663
|
}
|
5664
|
-
|
5664
|
+
S[da.TARGET_PLATFORM] = vl(
|
5665
5665
|
I,
|
5666
5666
|
E(N.configurations)
|
5667
5667
|
).message;
|
5668
5668
|
const j = i.fallbackPlatformConfigurationMap[I] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
|
5669
5669
|
i.fallbackPlatformConfigurationMap[fs];
|
5670
5670
|
if (N.configurations[I] = Object.entries(
|
5671
|
-
|
5671
|
+
v
|
5672
5672
|
).reduce(
|
5673
5673
|
(P, [O, D]) => {
|
5674
5674
|
const k = j[O]?.defaultValue, G = D?.active ? {} : k;
|
@@ -5689,8 +5689,8 @@ const cV = (e, s = !1) => {
|
|
5689
5689
|
}
|
5690
5690
|
case Rt.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
|
5691
5691
|
const { configSnapshot: b } = C;
|
5692
|
-
N.configurations = b, Object.keys(
|
5693
|
-
_l[I] && (
|
5692
|
+
N.configurations = b, Object.keys(S).forEach((I) => {
|
5693
|
+
_l[I] && (S[I] = null);
|
5694
5694
|
});
|
5695
5695
|
break;
|
5696
5696
|
}
|
@@ -5709,7 +5709,7 @@ const cV = (e, s = !1) => {
|
|
5709
5709
|
if (A[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
5710
5710
|
break;
|
5711
5711
|
const { id: b } = C;
|
5712
|
-
A[U.NODE_SELECTOR].value = A[U.NODE_SELECTOR].value.filter((y) => y.id !== b), delete
|
5712
|
+
A[U.NODE_SELECTOR].value = A[U.NODE_SELECTOR].value.filter((y) => y.id !== b), delete S[U.NODE_SELECTOR]?.[b], Object.keys(S[U.NODE_SELECTOR] || {}).length === 0 && (S[U.NODE_SELECTOR] = null);
|
5713
5713
|
const I = A[U.NODE_SELECTOR].value.map(
|
5714
5714
|
(y) => y.key
|
5715
5715
|
);
|
@@ -5717,7 +5717,7 @@ const cV = (e, s = !1) => {
|
|
5717
5717
|
Il({
|
5718
5718
|
selector: y,
|
5719
5719
|
existingKeys: I,
|
5720
|
-
profileInputErrors:
|
5720
|
+
profileInputErrors: S
|
5721
5721
|
});
|
5722
5722
|
});
|
5723
5723
|
break;
|
@@ -5725,10 +5725,10 @@ const cV = (e, s = !1) => {
|
|
5725
5725
|
case Rt.EDIT_NODE_SELECTOR_ITEM: {
|
5726
5726
|
if (A[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
5727
5727
|
break;
|
5728
|
-
const { id: b, key: I, value: y } = C,
|
5728
|
+
const { id: b, key: I, value: y } = C, v = A[U.NODE_SELECTOR].value.find(
|
5729
5729
|
(P) => P.id === b
|
5730
5730
|
);
|
5731
|
-
|
5731
|
+
v ? (v.key = I, v.value = y) : A[U.NODE_SELECTOR].value.unshift({
|
5732
5732
|
id: b,
|
5733
5733
|
key: I,
|
5734
5734
|
value: y
|
@@ -5740,7 +5740,7 @@ const cV = (e, s = !1) => {
|
|
5740
5740
|
Il({
|
5741
5741
|
selector: P,
|
5742
5742
|
existingKeys: j,
|
5743
|
-
profileInputErrors:
|
5743
|
+
profileInputErrors: S
|
5744
5744
|
});
|
5745
5745
|
});
|
5746
5746
|
break;
|
@@ -5762,31 +5762,31 @@ const cV = (e, s = !1) => {
|
|
5762
5762
|
if (A[U.TOLERANCE].key !== U.TOLERANCE)
|
5763
5763
|
break;
|
5764
5764
|
const { id: b } = C;
|
5765
|
-
A[U.TOLERANCE].value = A[U.TOLERANCE].value.filter((I) => I.id !== b), delete
|
5765
|
+
A[U.TOLERANCE].value = A[U.TOLERANCE].value.filter((I) => I.id !== b), delete S[U.TOLERANCE]?.[b], Object.keys(S[U.TOLERANCE] || {}).length === 0 && (S[U.TOLERANCE] = null);
|
5766
5766
|
break;
|
5767
5767
|
}
|
5768
5768
|
case Rt.EDIT_TOLERANCE_ITEM: {
|
5769
5769
|
if (A[U.TOLERANCE].key !== U.TOLERANCE)
|
5770
5770
|
break;
|
5771
|
-
const { id: b, key: I, effect: y, operator:
|
5771
|
+
const { id: b, key: I, effect: y, operator: v, value: j } = C, P = A[U.TOLERANCE].value.find(
|
5772
5772
|
(V) => V.id === b
|
5773
5773
|
);
|
5774
|
-
P ? (P.key = I, P.effect = y, P.operator =
|
5774
|
+
P ? (P.key = I, P.effect = y, P.operator = v, P.value = j, v === ks.EXISTS && delete P.value) : A[U.TOLERANCE].value.unshift({
|
5775
5775
|
id: b,
|
5776
5776
|
key: I,
|
5777
5777
|
effect: y,
|
5778
|
-
operator:
|
5778
|
+
operator: v,
|
5779
5779
|
value: j
|
5780
5780
|
});
|
5781
|
-
const O = mc(I).messages, D =
|
5782
|
-
|
5781
|
+
const O = mc(I).messages, D = v !== ks.EXISTS ? np(j).messages : [], G = !(v === ks.EXISTS ? !I : !I && !j) && (O.length > 0 || D.length > 0);
|
5782
|
+
S[U.TOLERANCE]?.[b] || (S[U.TOLERANCE] || (S[U.TOLERANCE] = {}), S[U.TOLERANCE][b] = {}), S[U.TOLERANCE][b] = {
|
5783
5783
|
...O.length > 0 && { [pi.KEY]: O },
|
5784
5784
|
...D.length > 0 && { [pi.VALUE]: D }
|
5785
|
-
}, G || (delete
|
5785
|
+
}, G || (delete S[U.TOLERANCE][b], Object.keys(S[U.TOLERANCE]).length === 0 && (S[U.TOLERANCE] = null));
|
5786
5786
|
break;
|
5787
5787
|
}
|
5788
5788
|
case Rt.ADD_CM_CS_ITEM: {
|
5789
|
-
const { id: b, infraConfigType: I } = C,
|
5789
|
+
const { id: b, infraConfigType: I } = C, v = {
|
5790
5790
|
useFormProps: Dc({
|
5791
5791
|
configMapSecretData: null,
|
5792
5792
|
componentType: Gm[I],
|
@@ -5801,11 +5801,11 @@ const cV = (e, s = !1) => {
|
|
5801
5801
|
defaultValue: null,
|
5802
5802
|
defaultValueInitialResponse: null
|
5803
5803
|
};
|
5804
|
-
A[I].value.push(
|
5804
|
+
A[I].value.push(v);
|
5805
5805
|
break;
|
5806
5806
|
}
|
5807
5807
|
case Rt.SYNC_CM_CS_ITEM: {
|
5808
|
-
const { id: b, value: I, hasError: y, componentType:
|
5808
|
+
const { id: b, value: I, hasError: y, componentType: v } = C, j = A[at[v]].value.findIndex((O) => O.id === b);
|
5809
5809
|
if (j === -1) {
|
5810
5810
|
ke.showToast({
|
5811
5811
|
variant: be.error,
|
@@ -5813,18 +5813,18 @@ const cV = (e, s = !1) => {
|
|
5813
5813
|
}), bn(new Error("ConfigMap does not exist"));
|
5814
5814
|
return;
|
5815
5815
|
}
|
5816
|
-
A[at[
|
5817
|
-
|
5818
|
-
).length === 0 && (
|
5816
|
+
A[at[v]].value[j].useFormProps = I, S[at[v]] || (S[at[v]] = {}), y ? S[at[v]][b] = !0 : S[at[v]][b] && delete S[at[v]][b], Object.keys(
|
5817
|
+
S[at[v]]
|
5818
|
+
).length === 0 && (S[at[v]] = null);
|
5819
5819
|
break;
|
5820
5820
|
}
|
5821
5821
|
case Rt.DELETE_CM_CS_ITEM: {
|
5822
|
-
const { id: b, componentType: I } = C, y = A[at[I]].value.filter((
|
5823
|
-
A[at[I]].value = y,
|
5822
|
+
const { id: b, componentType: I } = C, y = A[at[I]].value.filter((v) => v.id !== b);
|
5823
|
+
A[at[I]].value = y, S[at[I]] && (delete S[at[I]][b], Object.keys(S[at[I]]).length === 0 && (S[at[I]] = null));
|
5824
5824
|
break;
|
5825
5825
|
}
|
5826
5826
|
}
|
5827
|
-
u(N), p(
|
5827
|
+
u(N), p(S);
|
5828
5828
|
},
|
5829
5829
|
loadingActionRequest: _,
|
5830
5830
|
handleSubmit: async (f) => {
|
@@ -7173,7 +7173,7 @@ const zI = (e, s) => {
|
|
7173
7173
|
}) => {
|
7174
7174
|
const o = F(!1), i = F({}), c = F(/* @__PURE__ */ new Set()), l = F(-1), d = s ?? qI, u = Ge(
|
7175
7175
|
({ keys: f, callback: C, description: N = "" }) => {
|
7176
|
-
const { keys:
|
7176
|
+
const { keys: S, id: T } = za(f);
|
7177
7177
|
if (typeof C != "function")
|
7178
7178
|
throw new Error("callback provided is not a function");
|
7179
7179
|
const A = i.current[T] && om(i.current[T].keys, f) ? i.current[T] : null;
|
@@ -7181,7 +7181,7 @@ const zI = (e, s) => {
|
|
7181
7181
|
qa(A.callbackStack), A.callbackStack.push(C);
|
7182
7182
|
return;
|
7183
7183
|
}
|
7184
|
-
i.current[T] = { keys:
|
7184
|
+
i.current[T] = { keys: S, callbackStack: [C], description: N };
|
7185
7185
|
},
|
7186
7186
|
[]
|
7187
7187
|
), m = Ge((f) => {
|
@@ -7321,10 +7321,10 @@ const zI = (e, s) => {
|
|
7321
7321
|
);
|
7322
7322
|
else {
|
7323
7323
|
c.current = !0;
|
7324
|
-
const
|
7325
|
-
if (
|
7324
|
+
const v = localStorage.getItem(n);
|
7325
|
+
if (v)
|
7326
7326
|
try {
|
7327
|
-
const j = Ye("", JSON.parse(
|
7327
|
+
const j = Ye("", JSON.parse(v)), P = new URLSearchParams(j.split("?")[1] ?? "");
|
7328
7328
|
return i.replace({ search: P.toString() }), P;
|
7329
7329
|
} catch {
|
7330
7330
|
localStorage.removeItem(n);
|
@@ -7332,21 +7332,21 @@ const zI = (e, s) => {
|
|
7332
7332
|
}
|
7333
7333
|
return y;
|
7334
7334
|
})(), u = (y) => s ? s(y) : {}, { pageSize: m, pageNumber: p, searchKey: _, sortBy: h, sortOrder: E, parsedParams: x } = X(() => {
|
7335
|
-
const y = d.get(Ml),
|
7335
|
+
const y = d.get(Ml), v = d.get(Oo), j = d.get(kl), P = d.get($l), D = d.get(Ul) || e || "", k = Object.values(Te).includes(P) ? P : Te.ASC, G = u(d);
|
7336
7336
|
return {
|
7337
7337
|
pageSize: Number(y) || r,
|
7338
|
-
pageNumber: Number(
|
7338
|
+
pageNumber: Number(v) || Cn,
|
7339
7339
|
searchKey: j || "",
|
7340
7340
|
sortBy: D,
|
7341
7341
|
// sort order should only be applied if the key is available
|
7342
7342
|
sortOrder: D ? k : "",
|
7343
7343
|
parsedParams: G
|
7344
7344
|
};
|
7345
|
-
}, [d]), g = m * (p - 1), f = (y,
|
7345
|
+
}, [d]), g = m * (p - 1), f = (y, v) => {
|
7346
7346
|
const j = { search: y };
|
7347
|
-
(
|
7348
|
-
}, C = (y,
|
7349
|
-
d.set(y, String(
|
7347
|
+
(v.redirectionMethod ?? a) === "push" ? i.push(j) : i.replace(j);
|
7348
|
+
}, C = (y, v, j = {}) => {
|
7349
|
+
d.set(y, String(v)), f(d.toString(), j);
|
7350
7350
|
}, N = (y = {}) => {
|
7351
7351
|
if (p !== Cn) {
|
7352
7352
|
C(Oo, Cn, y);
|
@@ -7370,19 +7370,19 @@ const zI = (e, s) => {
|
|
7370
7370
|
sortBy: h,
|
7371
7371
|
sortOrder: E,
|
7372
7372
|
handleSorting: (y) => {
|
7373
|
-
let
|
7374
|
-
y === h && E === Te.ASC ?
|
7373
|
+
let v;
|
7374
|
+
y === h && E === Te.ASC ? v = Te.DESC : v = Te.ASC, C(Ul, y), C($l, v), N();
|
7375
7375
|
},
|
7376
7376
|
clearFilters: () => {
|
7377
7377
|
f("", {}), n && localStorage.removeItem(n);
|
7378
7378
|
},
|
7379
7379
|
...x,
|
7380
|
-
updateSearchParams: (y,
|
7380
|
+
updateSearchParams: (y, v = {}) => {
|
7381
7381
|
Object.keys(y).forEach((j) => {
|
7382
7382
|
pm.includes(y[j]) ? d.delete(j) : Array.isArray(y[j]) ? (d.delete(j), y[j].forEach((P) => {
|
7383
7383
|
d.append(j, P);
|
7384
7384
|
})) : d.set(j, y[j]);
|
7385
|
-
}), Pl(n, JSON.stringify(u(d))), N(
|
7385
|
+
}), Pl(n, JSON.stringify(u(d))), N(v);
|
7386
7386
|
},
|
7387
7387
|
areFiltersApplied: !!_ || ZI(x)
|
7388
7388
|
};
|
@@ -7553,19 +7553,19 @@ const pp = {
|
|
7553
7553
|
triggerAutoClickTimestamp: g,
|
7554
7554
|
...f
|
7555
7555
|
}, C) => {
|
7556
|
-
const [N,
|
7556
|
+
const [N, S] = w(!1), T = F(), A = F(null), R = l || d, b = `dc__no-shrink flex dc__fill-available-space ${aA({
|
7557
7557
|
size: a,
|
7558
7558
|
icon: p
|
7559
7559
|
})}`;
|
7560
7560
|
M(() => (g && setTimeout(() => {
|
7561
|
-
|
7561
|
+
S(!0), T.current = setTimeout(() => {
|
7562
7562
|
A.current.click();
|
7563
7563
|
}, 1495);
|
7564
7564
|
}, 100), () => {
|
7565
|
-
|
7565
|
+
S(!1), clearTimeout(T.current);
|
7566
7566
|
}), [g]);
|
7567
|
-
const I = (
|
7568
|
-
|
7567
|
+
const I = (v) => {
|
7568
|
+
S(!1), clearTimeout(T.current), f.onClick?.(v);
|
7569
7569
|
}, y = () => !u && h && p && _ ? {
|
7570
7570
|
alwaysShowTippyOnHover: !0,
|
7571
7571
|
content: _
|
@@ -7993,8 +7993,8 @@ const pp = {
|
|
7993
7993
|
}
|
7994
7994
|
return P;
|
7995
7995
|
});
|
7996
|
-
const
|
7997
|
-
o((j) => ({ ...j, [T]: !ea(
|
7996
|
+
const v = s.current;
|
7997
|
+
o((j) => ({ ...j, [T]: !ea(v[T], y) }));
|
7998
7998
|
}, x = (T, A) => () => {
|
7999
7999
|
if (A || a({ ...n, [T]: n[T]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
8000
8000
|
const b = p(), I = un(n[T], b[T]);
|
@@ -8020,8 +8020,8 @@ const pp = {
|
|
8020
8020
|
if (Array.isArray(T)) {
|
8021
8021
|
const R = {}, b = T.map((I) => {
|
8022
8022
|
if (A) {
|
8023
|
-
const y = A[I],
|
8024
|
-
return R[I] =
|
8023
|
+
const y = A[I], v = un(n[I], y);
|
8024
|
+
return R[I] = v, v;
|
8025
8025
|
}
|
8026
8026
|
return null;
|
8027
8027
|
});
|
@@ -8036,7 +8036,7 @@ const pp = {
|
|
8036
8036
|
setValue: (T, A, R) => {
|
8037
8037
|
if (a((b) => ({ ...b, [T]: A })), R?.triggerError) {
|
8038
8038
|
const I = p({ ...n, [T]: A })[T], y = un(A, I);
|
8039
|
-
d((
|
8039
|
+
d((v) => ({ ...v, [T]: y }));
|
8040
8040
|
}
|
8041
8041
|
if (R?.shouldDirty) {
|
8042
8042
|
const b = s.current;
|
@@ -8050,11 +8050,11 @@ const pp = {
|
|
8050
8050
|
keepTouched: b = !1,
|
8051
8051
|
keepErrors: I = !1,
|
8052
8052
|
triggerDirty: y = !1,
|
8053
|
-
triggerError:
|
8053
|
+
triggerError: v = !1,
|
8054
8054
|
keepInitialValues: j = !1,
|
8055
8055
|
formInitialValues: P = {}
|
8056
8056
|
} = A ?? {};
|
8057
|
-
if (a(T), Object.keys(P).length ? s.current = P : j || (s.current = T),
|
8057
|
+
if (a(T), Object.keys(P).length ? s.current = P : j || (s.current = T), v) {
|
8058
8058
|
const O = _(T);
|
8059
8059
|
d(O);
|
8060
8060
|
} else I || d({});
|
@@ -8420,8 +8420,8 @@ const yA = ({
|
|
8420
8420
|
o(null);
|
8421
8421
|
const N = await Ar();
|
8422
8422
|
if (e) {
|
8423
|
-
const
|
8424
|
-
x(
|
8423
|
+
const S = await e(N);
|
8424
|
+
x(S);
|
8425
8425
|
} else
|
8426
8426
|
x(N);
|
8427
8427
|
} catch (N) {
|
@@ -8429,14 +8429,14 @@ const yA = ({
|
|
8429
8429
|
}
|
8430
8430
|
},
|
8431
8431
|
handleUpdatePipelineRBACViewSelectedTab: (N) => {
|
8432
|
-
a((
|
8433
|
-
...
|
8432
|
+
a((S) => ({
|
8433
|
+
...S,
|
8434
8434
|
pipelineRBACViewSelectedTab: N
|
8435
8435
|
}));
|
8436
8436
|
},
|
8437
8437
|
handleUpdateUserThemePreference: (N) => {
|
8438
|
-
a((
|
8439
|
-
...
|
8438
|
+
a((S) => ({
|
8439
|
+
...S,
|
8440
8440
|
themePreference: N
|
8441
8441
|
}));
|
8442
8442
|
},
|
@@ -9050,7 +9050,7 @@ const BA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9050
9050
|
const { isSuperAdmin: x } = dp(), { handleDownload: g } = xA({
|
9051
9051
|
shouldOpenInNewTab: !0
|
9052
9052
|
}), { triggerId: f, buildId: C } = kt(), N = e.toLowerCase();
|
9053
|
-
async function
|
9053
|
+
async function S() {
|
9054
9054
|
await g({
|
9055
9055
|
downloadUrl: r,
|
9056
9056
|
fileName: `${C || f}.zip`
|
@@ -9112,7 +9112,7 @@ const BA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9112
9112
|
"button",
|
9113
9113
|
{
|
9114
9114
|
type: "button",
|
9115
|
-
onClick:
|
9115
|
+
onClick: S,
|
9116
9116
|
className: "anchor p-0 cb-5 fs-12 flex left pointer",
|
9117
9117
|
children: [
|
9118
9118
|
"Download",
|
@@ -9647,7 +9647,7 @@ const rR = (e, s) => {
|
|
9647
9647
|
/* @__PURE__ */ t.jsx("p", { children: c || "Not set" })
|
9648
9648
|
] })
|
9649
9649
|
] });
|
9650
|
-
function
|
9650
|
+
function S() {
|
9651
9651
|
if (!d)
|
9652
9652
|
return;
|
9653
9653
|
x(!0), f(!1);
|
@@ -9663,7 +9663,7 @@ const rR = (e, s) => {
|
|
9663
9663
|
u && h(N());
|
9664
9664
|
}
|
9665
9665
|
return M(() => {
|
9666
|
-
|
9666
|
+
S(), T();
|
9667
9667
|
}, []), !E && g ? /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4", children: [
|
9668
9668
|
/* @__PURE__ */ t.jsx(B, { name: "ic-error", size: 16, color: null }),
|
9669
9669
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate fw-5 cr-5", children: "Failed to fetch" })
|
@@ -10350,8 +10350,8 @@ const YR = (e) => {
|
|
10350
10350
|
const m = async () => {
|
10351
10351
|
try {
|
10352
10352
|
c(!0);
|
10353
|
-
const { appId: x, appType: g, environmentId: f, installedAppId: C } = a || {}, N = g === Et.DEVTRON_HELM_CHART ? C : x,
|
10354
|
-
await HR({ appId:
|
10353
|
+
const { appId: x, appType: g, environmentId: f, installedAppId: C } = a || {}, N = g === Et.DEVTRON_HELM_CHART ? C : x, S = r || String(N), T = o || String(f);
|
10354
|
+
await HR({ appId: S, envId: T });
|
10355
10355
|
} catch (x) {
|
10356
10356
|
Ue(x);
|
10357
10357
|
} finally {
|
@@ -10560,12 +10560,12 @@ const qR = ({
|
|
10560
10560
|
}) => {
|
10561
10561
|
const u = Yr(), { url: m } = Ns(), { appId: p, envId: _, triggerId: h } = kt(), [E, x] = w(
|
10562
10562
|
e?.toUpperCase() !== q.ABORTED
|
10563
|
-
), g = IR.getAppDetails(), f = F(i), C = F(d), N = f.current && c ? c() : Ti(s ?? g?.deploymentAppType), [
|
10563
|
+
), g = IR.getAppDetails(), f = F(i), C = F(d), N = f.current && c ? c() : Ti(s ?? g?.deploymentAppType), [S, T] = w(N), A = () => {
|
10564
10564
|
Za && clearTimeout(Za);
|
10565
10565
|
}, R = () => {
|
10566
|
-
VR(p, _, !0, h, n, a).then((
|
10566
|
+
VR(p, _, !0, h, n, a).then((v) => {
|
10567
10567
|
e !== "Aborted" && b({
|
10568
|
-
...
|
10568
|
+
...v.result,
|
10569
10569
|
isDeploymentWithoutApproval: C.current
|
10570
10570
|
});
|
10571
10571
|
}).catch(() => {
|
@@ -10581,10 +10581,10 @@ const qR = ({
|
|
10581
10581
|
}, [i]), M(() => {
|
10582
10582
|
C.current = d;
|
10583
10583
|
}, [d]);
|
10584
|
-
const b = (
|
10585
|
-
const j = f.current && c ? c(
|
10586
|
-
|
10587
|
-
|
10584
|
+
const b = (v) => {
|
10585
|
+
const j = f.current && c ? c(v) : Ti(
|
10586
|
+
v.deploymentAppType,
|
10587
|
+
v
|
10588
10588
|
);
|
10589
10589
|
A(), j.deploymentStatus === re.INPROGRESS ? Za = setTimeout(() => {
|
10590
10590
|
R();
|
@@ -10601,7 +10601,7 @@ const qR = ({
|
|
10601
10601
|
ma(
|
10602
10602
|
`${window.__BASE_URL__}${ve.APP}/${p}/${ve.APP_DETAILS}/${_}/${ve.APP_DETAILS_K8}?${Wl}`
|
10603
10603
|
)();
|
10604
|
-
}, y = () => !f.current && !
|
10604
|
+
}, y = () => !f.current && !S?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
10605
10605
|
aR,
|
10606
10606
|
{
|
10607
10607
|
title: tt.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.TITLE,
|
@@ -10619,15 +10619,15 @@ const qR = ({
|
|
10619
10619
|
/* @__PURE__ */ t.jsx(
|
10620
10620
|
yp,
|
10621
10621
|
{
|
10622
|
-
deploymentStatusDetailsBreakdownData:
|
10622
|
+
deploymentStatusDetailsBreakdownData: S,
|
10623
10623
|
isVirtualEnvironment: f.current,
|
10624
10624
|
appDetails: g,
|
10625
10625
|
rootClassName: "p-20",
|
10626
|
-
deploymentAppType:
|
10626
|
+
deploymentAppType: S.deploymentAppType
|
10627
10627
|
}
|
10628
10628
|
)
|
10629
10629
|
] });
|
10630
|
-
return e?.toUpperCase() === q.ABORTED ||
|
10630
|
+
return e?.toUpperCase() === q.ABORTED || S.deploymentStatus === re.SUPERSEDED ? /* @__PURE__ */ t.jsx(
|
10631
10631
|
"div",
|
10632
10632
|
{
|
10633
10633
|
className: "flexbox flex-grow-1 dc__content-center",
|
@@ -11069,9 +11069,9 @@ const Mn = ({
|
|
11069
11069
|
const [r, o] = w(0), [i, c] = w(50), [l, d] = w(!1), u = F(null), m = F(null), p = F(0), _ = F(0), h = cn(s), E = () => {
|
11070
11070
|
if (!e?.dom || !u.current || !m.current)
|
11071
11071
|
return;
|
11072
|
-
const { clientHeight:
|
11072
|
+
const { clientHeight: S, scrollHeight: T, scrollTop: A } = e.dom, R = u.current.clientHeight, b = S / T * R, I = Math.max(b, l0), y = A / T * R;
|
11073
11073
|
c(I), o(
|
11074
|
-
y + I >
|
11074
|
+
y + I > S ? S - I : y
|
11075
11075
|
);
|
11076
11076
|
};
|
11077
11077
|
M(() => {
|
@@ -11079,33 +11079,33 @@ const Mn = ({
|
|
11079
11079
|
}, [e, a]);
|
11080
11080
|
const x = () => {
|
11081
11081
|
E();
|
11082
|
-
}, g = (
|
11083
|
-
|
11084
|
-
}, f = (
|
11082
|
+
}, g = (S) => {
|
11083
|
+
S.preventDefault(), d(!0), p.current = S.clientY, _.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
|
11084
|
+
}, f = (S) => {
|
11085
11085
|
if (!l || !e?.dom || !u.current)
|
11086
11086
|
return;
|
11087
|
-
const { scrollHeight: T, clientHeight: A } = e.dom, R = u.current.clientHeight, I = (
|
11087
|
+
const { scrollHeight: T, clientHeight: A } = e.dom, R = u.current.clientHeight, I = (S.clientY - p.current) / R;
|
11088
11088
|
e.dom.scrollTo({ top: _.current + I * (T - A) });
|
11089
11089
|
}, C = () => {
|
11090
11090
|
d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
|
11091
11091
|
};
|
11092
11092
|
M(() => {
|
11093
11093
|
if (e) {
|
11094
|
-
const { dom:
|
11095
|
-
|
11094
|
+
const { dom: S } = e;
|
11095
|
+
S.addEventListener("scroll", x);
|
11096
11096
|
}
|
11097
11097
|
return () => {
|
11098
11098
|
if (e) {
|
11099
|
-
const { dom:
|
11100
|
-
|
11099
|
+
const { dom: S } = e;
|
11100
|
+
S.removeEventListener("scroll", x);
|
11101
11101
|
}
|
11102
11102
|
};
|
11103
11103
|
}, [e]), M(() => (l ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", C)) : (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", C)), () => {
|
11104
11104
|
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", C);
|
11105
11105
|
}), [e, l]);
|
11106
|
-
const N = (
|
11106
|
+
const N = (S) => {
|
11107
11107
|
if (!e.dom || !u.current) return;
|
11108
|
-
const { clientHeight: T, scrollHeight: A } = e.dom, R = u.current.clientHeight, I = (
|
11108
|
+
const { clientHeight: T, scrollHeight: A } = e.dom, R = u.current.clientHeight, I = (S.clientY - u.current.getBoundingClientRect().top) / R;
|
11109
11109
|
e.dom.scrollTo({ top: I * (A - T) });
|
11110
11110
|
};
|
11111
11111
|
return /* @__PURE__ */ t.jsxs(
|
@@ -11401,7 +11401,7 @@ const Mn = ({
|
|
11401
11401
|
Lf(e);
|
11402
11402
|
}, N = () => {
|
11403
11403
|
a(), Xc(e);
|
11404
|
-
},
|
11404
|
+
}, S = () => {
|
11405
11405
|
a(), Nu(e);
|
11406
11406
|
}, T = (D) => {
|
11407
11407
|
p({ caseSensitive: D });
|
@@ -11438,7 +11438,7 @@ const Mn = ({
|
|
11438
11438
|
placement: "bottom"
|
11439
11439
|
}
|
11440
11440
|
}
|
11441
|
-
) }),
|
11441
|
+
) }), v = () => /* @__PURE__ */ t.jsxs("div", { className: "code-editor__search__field-container", children: [
|
11442
11442
|
/* @__PURE__ */ t.jsx(
|
11443
11443
|
"input",
|
11444
11444
|
{
|
@@ -11608,7 +11608,7 @@ const Mn = ({
|
|
11608
11608
|
variant: K.borderLess,
|
11609
11609
|
style: oe.neutral,
|
11610
11610
|
size: L.xxs,
|
11611
|
-
onClick:
|
11611
|
+
onClick: S,
|
11612
11612
|
showTooltip: !0,
|
11613
11613
|
tooltipProps: {
|
11614
11614
|
shortcutKeyCombo: {
|
@@ -11625,7 +11625,7 @@ const Mn = ({
|
|
11625
11625
|
!m && y(),
|
11626
11626
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
11627
11627
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
11628
|
-
|
11628
|
+
v(),
|
11629
11629
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 w-80px fs-12 lh-18 cn-7 ${r.search && !i.count ? "cr-5" : ""}`, children: i.count ? `${i.current || "?"} of ${i.count}` : "No results" }),
|
11630
11630
|
j(),
|
11631
11631
|
P()
|
@@ -11797,13 +11797,13 @@ const Mn = ({
|
|
11797
11797
|
collapseUnchanged: C = !1,
|
11798
11798
|
disableMinimap: N = !1
|
11799
11799
|
}) => {
|
11800
|
-
const { value:
|
11800
|
+
const { value: S, lhsValue: T, diffMode: A } = ho(), [R, b] = w(0), [I, y] = w(null), [v, j] = w(null), [P, O] = w(1), D = F(), k = F(), G = F(), V = F(), Q = F(), te = cn(s), Se = () => {
|
11801
11801
|
const ie = document.querySelector(".cm-gutters");
|
11802
11802
|
ie && b(ie.getBoundingClientRect().width);
|
11803
11803
|
};
|
11804
11804
|
M(() => {
|
11805
11805
|
Se();
|
11806
|
-
}, [T,
|
11806
|
+
}, [T, S]), M(() => {
|
11807
11807
|
setTimeout(() => {
|
11808
11808
|
g && D.current?.view && D.current.view.focus();
|
11809
11809
|
}, 100);
|
@@ -11859,27 +11859,27 @@ const Mn = ({
|
|
11859
11859
|
extensions: [...l, fe]
|
11860
11860
|
},
|
11861
11861
|
b: {
|
11862
|
-
doc:
|
11862
|
+
doc: S,
|
11863
11863
|
extensions: [...u, Ce]
|
11864
11864
|
},
|
11865
11865
|
...i ? {} : { revertControls: "a-to-b", renderRevertControl: N0 },
|
11866
|
-
diffConfig: { scanLimit: td(T,
|
11866
|
+
diffConfig: { scanLimit: td(T, S), timeout: 5e3 },
|
11867
11867
|
parent: k.current,
|
11868
11868
|
collapseUnchanged: C ? {} : void 0
|
11869
11869
|
});
|
11870
11870
|
if (G.current = ie, y(ie), !N && ie && Q.current) {
|
11871
|
-
|
11871
|
+
v?.destroy(), V.current?.destroy();
|
11872
11872
|
const z = new Zc({
|
11873
11873
|
a: {
|
11874
11874
|
doc: T,
|
11875
11875
|
extensions: f
|
11876
11876
|
},
|
11877
11877
|
b: {
|
11878
|
-
doc:
|
11878
|
+
doc: S,
|
11879
11879
|
extensions: f
|
11880
11880
|
},
|
11881
11881
|
gutter: !1,
|
11882
|
-
diffConfig: { scanLimit: td(T,
|
11882
|
+
diffConfig: { scanLimit: td(T, S), timeout: 5e3 },
|
11883
11883
|
parent: Q.current
|
11884
11884
|
});
|
11885
11885
|
V.current = z, j(z);
|
@@ -11890,9 +11890,9 @@ const Mn = ({
|
|
11890
11890
|
}), [n, e, A, C, N]), M(() => {
|
11891
11891
|
if (G.current) {
|
11892
11892
|
const ie = G.current.a.state.doc.toString(), z = G.current.b.state.doc.toString();
|
11893
|
-
(ie !== T || z !==
|
11893
|
+
(ie !== T || z !== S) && le();
|
11894
11894
|
}
|
11895
|
-
}, [T,
|
11895
|
+
}, [T, S]), M(() => {
|
11896
11896
|
N || setTimeout(() => {
|
11897
11897
|
O(
|
11898
11898
|
I ? Math.min(
|
@@ -11901,7 +11901,7 @@ const Mn = ({
|
|
11901
11901
|
) : 1
|
11902
11902
|
);
|
11903
11903
|
}, 100);
|
11904
|
-
}, [T,
|
11904
|
+
}, [T, S, I, N]);
|
11905
11905
|
const { codeEditorClassName: se, codeEditorHeight: de, codeEditorParentClassName: ge } = g0(r);
|
11906
11906
|
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: de }, children: /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0 }) }) : A ? /* @__PURE__ */ t.jsxs(
|
11907
11907
|
"div",
|
@@ -11951,7 +11951,7 @@ const Mn = ({
|
|
11951
11951
|
theme: o,
|
11952
11952
|
className: se,
|
11953
11953
|
basicSetup: !1,
|
11954
|
-
value:
|
11954
|
+
value: S,
|
11955
11955
|
placeholder: _,
|
11956
11956
|
readOnly: i,
|
11957
11957
|
height: de,
|
@@ -11990,7 +11990,7 @@ const Mn = ({
|
|
11990
11990
|
validatorSchema: f = {},
|
11991
11991
|
schemaURI: C = Ob,
|
11992
11992
|
cleanData: N = !1,
|
11993
|
-
onBlur:
|
11993
|
+
onBlur: S,
|
11994
11994
|
onFocus: T,
|
11995
11995
|
autoFocus: A,
|
11996
11996
|
onSearchPanelOpen: R = xe,
|
@@ -11998,7 +11998,7 @@ const Mn = ({
|
|
11998
11998
|
collapseUnchangedDiffView: I = !1,
|
11999
11999
|
...y
|
12000
12000
|
}) => {
|
12001
|
-
const
|
12001
|
+
const v = (I || y.disableSearch) ?? !1, j = (I || y.readOnly) ?? !1, { appTheme: P } = jn(), O = F(), D = F({ code: "", lhsCode: "" }), k = X(() => {
|
12002
12002
|
const $ = E ? a : s, J = N ? fu($) : $;
|
12003
12003
|
return J !== D.current.code ? ![ot.JSON, ot.YAML].includes(o) || i ? J : Ql(J, o, l) : D.current.code;
|
12004
12004
|
}, [s, a, E, i]), G = X(() => {
|
@@ -12019,7 +12019,7 @@ const Mn = ({
|
|
12019
12019
|
W(Dt());
|
12020
12020
|
},
|
12021
12021
|
// Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
|
12022
|
-
[j, l,
|
12022
|
+
[j, l, v, P, o, r]
|
12023
12023
|
);
|
12024
12024
|
const de = ($) => {
|
12025
12025
|
D.current.code = $, Ce ? _?.($) : m?.($);
|
@@ -12043,7 +12043,7 @@ const Mn = ({
|
|
12043
12043
|
Se,
|
12044
12044
|
Ff.of([
|
12045
12045
|
...Wf.filter(({ key: $ }) => $ !== "Mod-Alt-Enter" && $ !== "Mod-Enter" && $ !== "Mod-f"),
|
12046
|
-
...
|
12046
|
+
...v ? [] : [{ key: "Mod-f", run: Ne, scope: "editor search-panel" }],
|
12047
12047
|
{ key: "Mod-Enter", run: p0, scope: "editor search-panel" },
|
12048
12048
|
{ key: "Mod-Alt-f", run: Qe, scope: "editor search-panel" },
|
12049
12049
|
{ key: "Escape", run: _0, stopPropagation: !0 }
|
@@ -12103,7 +12103,7 @@ const Mn = ({
|
|
12103
12103
|
placeholder: h,
|
12104
12104
|
handleOnChange: z,
|
12105
12105
|
handleLhsOnChange: Ee,
|
12106
|
-
onBlur:
|
12106
|
+
onBlur: S,
|
12107
12107
|
onFocus: T,
|
12108
12108
|
autoFocus: A,
|
12109
12109
|
originalViewExtensions: ft,
|
@@ -12339,11 +12339,11 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12339
12339
|
}, [e]), M(() => {
|
12340
12340
|
i && m((C) => ({ ...C, [i]: !0 }));
|
12341
12341
|
}, [i]);
|
12342
|
-
const h = (C) => C.map((N,
|
12342
|
+
const h = (C) => C.map((N, S) => {
|
12343
12343
|
if (N.type === "string")
|
12344
12344
|
return /* @__PURE__ */ t.jsxs(hs, { children: [
|
12345
12345
|
typeof N.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: N.text }) : N.text,
|
12346
|
-
!r?.hideDivider &&
|
12346
|
+
!r?.hideDivider && S !== C.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
12347
12347
|
] }, N.id);
|
12348
12348
|
if (N.type === "radio-group")
|
12349
12349
|
return /* @__PURE__ */ t.jsx(
|
@@ -12362,11 +12362,11 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12362
12362
|
isDisabled: e || T?.isDisabled
|
12363
12363
|
}
|
12364
12364
|
) }),
|
12365
|
-
!r?.hideDivider &&
|
12365
|
+
!r?.hideDivider && S !== C.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
12366
12366
|
] }, N.id);
|
12367
12367
|
}), E = () => {
|
12368
12368
|
if (o) {
|
12369
|
-
const { handleSorting: C, sortBy: N, sortOrder:
|
12369
|
+
const { handleSorting: C, sortBy: N, sortOrder: S } = o;
|
12370
12370
|
return /* @__PURE__ */ t.jsx(
|
12371
12371
|
H,
|
12372
12372
|
{
|
@@ -12380,7 +12380,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12380
12380
|
{
|
12381
12381
|
className: "rotate",
|
12382
12382
|
style: {
|
12383
|
-
"--rotateBy":
|
12383
|
+
"--rotateBy": S === Te.DESC ? "0deg" : "180deg"
|
12384
12384
|
}
|
12385
12385
|
}
|
12386
12386
|
) : /* @__PURE__ */ t.jsx(Bu, {}),
|
@@ -12403,8 +12403,8 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12403
12403
|
);
|
12404
12404
|
}
|
12405
12405
|
return null;
|
12406
|
-
}, g = () => a.map(({ id: C, primaryConfig: N, secondaryConfig:
|
12407
|
-
const { heading: b, list: I } = N, { heading: y, list:
|
12406
|
+
}, g = () => a.map(({ id: C, primaryConfig: N, secondaryConfig: S, title: T, diffState: A, singleView: R }) => {
|
12407
|
+
const { heading: b, list: I } = N, { heading: y, list: v } = S;
|
12408
12408
|
return /* @__PURE__ */ t.jsx(
|
12409
12409
|
M0,
|
12410
12410
|
{
|
@@ -12425,7 +12425,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12425
12425
|
$t,
|
12426
12426
|
{
|
12427
12427
|
originalValue: I.codeEditorValue.value,
|
12428
|
-
modifiedValue:
|
12428
|
+
modifiedValue: v.codeEditorValue.value,
|
12429
12429
|
height: "100%",
|
12430
12430
|
mode: ot.YAML,
|
12431
12431
|
noParsing: !0,
|
@@ -12441,7 +12441,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12441
12441
|
/* @__PURE__ */ t.jsx(
|
12442
12442
|
oy,
|
12443
12443
|
{
|
12444
|
-
baseTemplateConfiguration:
|
12444
|
+
baseTemplateConfiguration: v,
|
12445
12445
|
currentConfiguration: I,
|
12446
12446
|
previousConfigAvailable: !0,
|
12447
12447
|
rootClassName: `${b && y ? "dc__no-top-radius dc__no-top-border" : ""}`
|
@@ -12601,12 +12601,12 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12601
12601
|
}) => {
|
12602
12602
|
const [m, p] = w({});
|
12603
12603
|
M(() => {
|
12604
|
-
p(s.reduce((N,
|
12604
|
+
p(s.reduce((N, S) => ({ ...N, [S.id]: !!S.items.length }), {}));
|
12605
12605
|
}, [s]);
|
12606
12606
|
const _ = s.map(
|
12607
|
-
({ items: N, ...
|
12608
|
-
...
|
12609
|
-
isExpanded: m[
|
12607
|
+
({ items: N, ...S }) => ({
|
12608
|
+
...S,
|
12609
|
+
isExpanded: m[S.id],
|
12610
12610
|
items: N.map(({ diffState: T, ...A }) => ({
|
12611
12611
|
...A,
|
12612
12612
|
strikeThrough: d && T === Ht.DELETED,
|
@@ -12623,20 +12623,20 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12623
12623
|
}))
|
12624
12624
|
})
|
12625
12625
|
), h = (N) => {
|
12626
|
-
p((
|
12626
|
+
p((S) => ({ ...S, [N]: !S[N] }));
|
12627
12627
|
}, E = (N) => {
|
12628
|
-
const { value:
|
12629
|
-
c?.activeTab !==
|
12628
|
+
const { value: S } = N.target;
|
12629
|
+
c?.activeTab !== S && c?.onClick?.(S);
|
12630
12630
|
}, x = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12631
12631
|
a && /* @__PURE__ */ t.jsx(ns, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(cs, { className: "icon-dim-16 fcn-6" }) }) }),
|
12632
12632
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12633
12633
|
] }), g = () => {
|
12634
|
-
const { tabs: N, activeTab:
|
12634
|
+
const { tabs: N, activeTab: S } = c;
|
12635
12635
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12636
12636
|
Ea,
|
12637
12637
|
{
|
12638
12638
|
name: "deployment-config-diff-tab-list",
|
12639
|
-
initialTab:
|
12639
|
+
initialTab: S,
|
12640
12640
|
onChange: E,
|
12641
12641
|
disabled: e,
|
12642
12642
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
@@ -12644,14 +12644,14 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12644
12644
|
}
|
12645
12645
|
) });
|
12646
12646
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12647
|
-
n.map(({ title: N, href:
|
12647
|
+
n.map(({ title: N, href: S, onClick: T, diffState: A, Icon: R }) => {
|
12648
12648
|
const b = d ? Xn[A] : Xn.hasDiff;
|
12649
12649
|
return /* @__PURE__ */ t.jsxs(
|
12650
12650
|
Vs,
|
12651
12651
|
{
|
12652
12652
|
"data-testid": "env-deployment-template",
|
12653
12653
|
className: "dc__nav-item cursor dc__gap-8 fs-13 lh-32 cn-7 w-100 br-4 px-8 flexbox dc__align-items-center dc__no-decor",
|
12654
|
-
to:
|
12654
|
+
to: S,
|
12655
12655
|
onClick: T,
|
12656
12656
|
children: [
|
12657
12657
|
R && /* @__PURE__ */ t.jsx(R, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
@@ -13045,18 +13045,18 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13045
13045
|
},
|
13046
13046
|
diffState: cr(g, f)
|
13047
13047
|
};
|
13048
|
-
let N,
|
13048
|
+
let N, S, T;
|
13049
13049
|
if (E.pipelineConfigData || x.pipelineConfigData) {
|
13050
|
-
N = md(E.pipelineConfigData, c),
|
13050
|
+
N = md(E.pipelineConfigData, c), S = md(
|
13051
13051
|
x.pipelineConfigData,
|
13052
13052
|
c
|
13053
13053
|
);
|
13054
|
-
const
|
13054
|
+
const v = {
|
13055
13055
|
...N,
|
13056
13056
|
values: hd(N.values)
|
13057
13057
|
}, j = {
|
13058
|
-
...
|
13059
|
-
values: hd(
|
13058
|
+
...S,
|
13059
|
+
values: hd(S.values)
|
13060
13060
|
};
|
13061
13061
|
T = {
|
13062
13062
|
id: _t.PipelineStrategy,
|
@@ -13064,13 +13064,13 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13064
13064
|
title: "Pipeline Configuration",
|
13065
13065
|
primaryConfig: {
|
13066
13066
|
heading: null,
|
13067
|
-
list:
|
13067
|
+
list: S
|
13068
13068
|
},
|
13069
13069
|
secondaryConfig: {
|
13070
13070
|
heading: null,
|
13071
13071
|
list: N
|
13072
13072
|
},
|
13073
|
-
diffState: cr(
|
13073
|
+
diffState: cr(v, j)
|
13074
13074
|
};
|
13075
13075
|
}
|
13076
13076
|
const A = _d(
|
@@ -13119,10 +13119,10 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13119
13119
|
{
|
13120
13120
|
header: "ConfigMaps",
|
13121
13121
|
id: _t.ConfigMap,
|
13122
|
-
items: A.map(({ name:
|
13123
|
-
title:
|
13122
|
+
items: A.map(({ name: v, diffState: j, id: P }) => ({
|
13123
|
+
title: v,
|
13124
13124
|
diffState: j,
|
13125
|
-
href: n(_t.ConfigMap,
|
13125
|
+
href: n(_t.ConfigMap, v),
|
13126
13126
|
onClick: () => {
|
13127
13127
|
document.querySelector(`#${P}`)?.scrollIntoView({ block: "start" });
|
13128
13128
|
}
|
@@ -13132,10 +13132,10 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13132
13132
|
{
|
13133
13133
|
header: "Secrets",
|
13134
13134
|
id: _t.Secret,
|
13135
|
-
items: R.map(({ name:
|
13136
|
-
title:
|
13135
|
+
items: R.map(({ name: v, diffState: j, id: P }) => ({
|
13136
|
+
title: v,
|
13137
13137
|
diffState: j,
|
13138
|
-
href: n(_t.Secret,
|
13138
|
+
href: n(_t.Secret, v),
|
13139
13139
|
onClick: () => {
|
13140
13140
|
document.querySelector(`#${P}`)?.scrollIntoView({ block: "start" });
|
13141
13141
|
}
|
@@ -13311,7 +13311,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13311
13311
|
isCompareDeploymentConfigNotAvailable: u,
|
13312
13312
|
...m
|
13313
13313
|
}) => {
|
13314
|
-
const { path: p, params: _ } = Ns(), { resourceType: h, resourceName: E, appId: x, envId: g } = _, { compareWfrId: f, updateSearchParams: C, sortBy: N, sortOrder:
|
13314
|
+
const { path: p, params: _ } = Ns(), { resourceType: h, resourceName: E, appId: x, envId: g } = _, { compareWfrId: f, updateSearchParams: C, sortBy: N, sortOrder: S, handleSorting: T } = r, [A, R] = w({
|
13315
13315
|
isLoading: !1,
|
13316
13316
|
data: c,
|
13317
13317
|
hasMore: c.size >= sn
|
@@ -13335,11 +13335,11 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13335
13335
|
} catch {
|
13336
13336
|
R({ ...A, isLoading: !1 });
|
13337
13337
|
}
|
13338
|
-
},
|
13338
|
+
}, v = () => y(A.data.size), j = () => A.hasMore ? /* @__PURE__ */ t.jsx("div", { className: "px-4", children: /* @__PURE__ */ t.jsx(
|
13339
13339
|
H,
|
13340
13340
|
{
|
13341
13341
|
isLoading: A.isLoading,
|
13342
|
-
onClick:
|
13342
|
+
onClick: v,
|
13343
13343
|
dataTestId: "load-more-previous-deployments",
|
13344
13344
|
variant: K.borderLess,
|
13345
13345
|
text: "Load more",
|
@@ -13388,9 +13388,9 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13388
13388
|
}
|
13389
13389
|
]
|
13390
13390
|
}, Q = () => k ? u ? `Diff unavailable: Configurations for deployment execution ‘${D?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${D?.label || "N/A"} & ${P}` : null, Se = {
|
13391
|
-
handleSorting: () => T(
|
13391
|
+
handleSorting: () => T(S !== Te.DESC ? ir : ""),
|
13392
13392
|
sortBy: N,
|
13393
|
-
sortOrder:
|
13393
|
+
sortOrder: S
|
13394
13394
|
}, Ie = {
|
13395
13395
|
convertVariables: o,
|
13396
13396
|
onConvertVariablesClick: () => i(!o)
|
@@ -13426,7 +13426,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13426
13426
|
[_, a]
|
13427
13427
|
), x = !!E, g = Ec({
|
13428
13428
|
parseSearchParams: ny(E)
|
13429
|
-
}), { compareWfrId: f, sortBy: C, sortOrder: N } = g, [
|
13429
|
+
}), { compareWfrId: f, sortBy: C, sortOrder: N } = g, [S, T] = w(!1), [A, R, , b] = It(async () => {
|
13430
13430
|
const V = [
|
13431
13431
|
{
|
13432
13432
|
appName: e,
|
@@ -13451,7 +13451,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13451
13451
|
return Q.status !== "fulfilled" || !Q.value || Q.value.forEach((Se, Ie) => {
|
13452
13452
|
te[Ie].status !== "fulfilled" || !te[Ie].value || te[Ie].value.result.isAppAdmin || (te[Ie].value.result.secretsData = Se.secretsData);
|
13453
13453
|
}), te;
|
13454
|
-
}, [h, f]), I = (V, Q) => `${tn(l, { ...d })}/${V}${Q ? `/${Q}` : ""}${m}`, { deploymentConfigList: y, sortedDeploymentConfigList:
|
13454
|
+
}, [h, f]), I = (V, Q) => `${tn(l, { ...d })}/${V}${Q ? `/${Q}` : ""}${m}`, { deploymentConfigList: y, sortedDeploymentConfigList: v } = X(() => {
|
13455
13455
|
if (!A && R) {
|
13456
13456
|
const V = x && R[1].status === "fulfilled" ? R[1].value.result : {
|
13457
13457
|
configMapData: null,
|
@@ -13462,13 +13462,13 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13462
13462
|
currentList: Q,
|
13463
13463
|
compareList: V,
|
13464
13464
|
getNavItemHref: I,
|
13465
|
-
convertVariables:
|
13465
|
+
convertVariables: S,
|
13466
13466
|
sortingConfig: { sortBy: C, sortOrder: N }
|
13467
13467
|
}), Se = gd({
|
13468
13468
|
currentList: Q,
|
13469
13469
|
compareList: V,
|
13470
13470
|
getNavItemHref: I,
|
13471
|
-
convertVariables:
|
13471
|
+
convertVariables: S,
|
13472
13472
|
sortingConfig: { sortBy: ir, sortOrder: Te.ASC }
|
13473
13473
|
});
|
13474
13474
|
return { deploymentConfigList: te, sortedDeploymentConfigList: Se };
|
@@ -13478,15 +13478,15 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13478
13478
|
x,
|
13479
13479
|
A,
|
13480
13480
|
R,
|
13481
|
-
|
13481
|
+
S,
|
13482
13482
|
C,
|
13483
13483
|
N
|
13484
13484
|
]), j = X(
|
13485
13485
|
() => !A && R ? Ed(R[0]) || Ed(R[1]) : null,
|
13486
13486
|
[A, R]
|
13487
13487
|
), P = X(
|
13488
|
-
() =>
|
13489
|
-
[
|
13488
|
+
() => v ? CI(v.configList, "groupHeader") : [],
|
13489
|
+
[v]
|
13490
13490
|
), O = R && xd(R[1]), D = !x || O, k = A || !j && !y, G = {
|
13491
13491
|
code: j?.code,
|
13492
13492
|
error: j && !A,
|
@@ -13510,7 +13510,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13510
13510
|
urlFilters: g,
|
13511
13511
|
pipelineDeployments: _,
|
13512
13512
|
setFullScreenView: o,
|
13513
|
-
convertVariables:
|
13513
|
+
convertVariables: S,
|
13514
13514
|
setConvertVariables: T,
|
13515
13515
|
triggerHistory: r,
|
13516
13516
|
resourceId: i,
|
@@ -13777,7 +13777,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13777
13777
|
] }),
|
13778
13778
|
x(),
|
13779
13779
|
_(!0)
|
13780
|
-
] }),
|
13780
|
+
] }), S = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13781
13781
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__content-space", children: [
|
13782
13782
|
f(u.data["target checkout"]),
|
13783
13783
|
C()
|
@@ -13786,7 +13786,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13786
13786
|
] }), T = () => {
|
13787
13787
|
if (!d) return null;
|
13788
13788
|
const A = u.eventactiontype === iy.MERGED;
|
13789
|
-
return r.includes(xt.GITLAB) ? A ?
|
13789
|
+
return r.includes(xt.GITLAB) ? A ? S() : N() : A ? N() : S();
|
13790
13790
|
};
|
13791
13791
|
return /* @__PURE__ */ t.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
|
13792
13792
|
o && (d || l.commit) && !!r && /* @__PURE__ */ t.jsx(
|
@@ -13946,8 +13946,8 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13946
13946
|
);
|
13947
13947
|
const N = vr(n);
|
13948
13948
|
return /* @__PURE__ */ t.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
|
13949
|
-
s?.map((
|
13950
|
-
const A = e[
|
13949
|
+
s?.map((S, T) => {
|
13950
|
+
const A = e[S.id];
|
13951
13951
|
return A && (A.Commit || A.WebhookData?.data) ? /* @__PURE__ */ t.jsx(
|
13952
13952
|
"div",
|
13953
13953
|
{
|
@@ -13958,12 +13958,12 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13958
13958
|
Fp,
|
13959
13959
|
{
|
13960
13960
|
index: T,
|
13961
|
-
materialUrl: A?.GitRepoUrl ? A.GitRepoUrl :
|
13961
|
+
materialUrl: A?.GitRepoUrl ? A.GitRepoUrl : S?.url,
|
13962
13962
|
showMaterialInfoHeader: !0,
|
13963
13963
|
commitInfo: A,
|
13964
|
-
materialSourceType: A?.CiConfigureSourceType ? A.CiConfigureSourceType :
|
13964
|
+
materialSourceType: A?.CiConfigureSourceType ? A.CiConfigureSourceType : S?.type,
|
13965
13965
|
selectedCommitInfo: "",
|
13966
|
-
materialSourceValue: A?.CiConfigureSourceValue ? A.CiConfigureSourceValue :
|
13966
|
+
materialSourceValue: A?.CiConfigureSourceValue ? A.CiConfigureSourceValue : S?.value
|
13967
13967
|
}
|
13968
13968
|
)
|
13969
13969
|
},
|
@@ -14152,8 +14152,8 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14152
14152
|
}, Ey = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
14153
14153
|
const { pipelineId: r, envId: o, appId: i } = kt(), c = F(null), l = n === Ke.CI ? `${Cr}/${Y.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Cr}/${Y.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = xy(
|
14154
14154
|
e.podStatus && e.podStatus !== Mo.PENDING && l
|
14155
|
-
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, C] = w([]), { searchKey: N, handleSearch:
|
14156
|
-
function
|
14155
|
+
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, C] = w([]), { searchKey: N, handleSearch: S } = Ec(), T = h.length > 0, A = X(() => p.every((W) => W.isOpen), [p]), R = A ? "Collapse all stages" : "Expand all stages", { registerShortcut: b, unregisterShortcut: I } = Ws(), y = d[0]?.startsWith(Kl) || !1;
|
14156
|
+
function v({
|
14157
14157
|
log: W,
|
14158
14158
|
currentIndex: ce = -1,
|
14159
14159
|
targetSearchKey: fe = N,
|
@@ -14230,7 +14230,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14230
14230
|
const z = de[de.length - 1], Ee = Np({
|
14231
14231
|
stageIndex: de.length - 1,
|
14232
14232
|
lineNumberInsideStage: z.logs.length
|
14233
|
-
}), { __html: Ne, isSearchKeyPresent: Qe } =
|
14233
|
+
}), { __html: Ne, isSearchKeyPresent: Qe } = v({
|
14234
14234
|
log: ge,
|
14235
14235
|
currentIndex: W,
|
14236
14236
|
searchMatchResults: le,
|
@@ -14252,7 +14252,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14252
14252
|
if (!d?.length)
|
14253
14253
|
return;
|
14254
14254
|
if (!y) {
|
14255
|
-
const ce = d.map((fe) =>
|
14255
|
+
const ce = d.map((fe) => v({ log: fe }).__html);
|
14256
14256
|
C(ce);
|
14257
14257
|
return;
|
14258
14258
|
}
|
@@ -14280,7 +14280,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14280
14280
|
}, V = () => {
|
14281
14281
|
k("prev");
|
14282
14282
|
}, Q = (W) => {
|
14283
|
-
|
14283
|
+
S(W), N === W ? G() : k("reset", W);
|
14284
14284
|
}, te = (W) => {
|
14285
14285
|
const ce = structuredClone(p);
|
14286
14286
|
ce[W].isOpen = !1, _(ce);
|
@@ -14980,18 +14980,18 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14980
14980
|
namespace: E,
|
14981
14981
|
workflowExecutionStages: x
|
14982
14982
|
}) => {
|
14983
|
-
const { path: g, params: f } = Ns(), { pathname: C } = as(), N = C.split("/").pop(), { envId:
|
14983
|
+
const { path: g, params: f } = Ns(), { pathname: C } = as(), N = C.split("/").pop(), { envId: S, ...T } = kt(), A = l === Ke.CD || l === Ke.GROUP_CD, R = A ? "triggerId" : "buildId", b = _ === p?.id, I = F(null), y = () => {
|
14984
14984
|
const D = {
|
14985
14985
|
...T,
|
14986
|
-
envId:
|
14986
|
+
envId: S,
|
14987
14987
|
[R]: e
|
14988
14988
|
};
|
14989
14989
|
return `${tn(g, D)}/${N}`;
|
14990
|
-
},
|
14990
|
+
}, v = () => {
|
14991
14991
|
I?.current && I.current.scrollIntoView({ behavior: "smooth" });
|
14992
14992
|
};
|
14993
14993
|
M(() => {
|
14994
|
-
|
14994
|
+
v();
|
14995
14995
|
}, [I]);
|
14996
14996
|
const j = f[R], P = (D) => {
|
14997
14997
|
+j == +e && (I.current = D);
|
@@ -15099,7 +15099,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15099
15099
|
}), r({ offset: n.size, size: 20 });
|
15100
15100
|
}, g = () => e === Ke.CI || e === Ke.GROUP_CI ? u : e === Ke.GROUP_CD ? m : p, f = s?.find((T) => T.value === g()) ?? null;
|
15101
15101
|
s?.sort((T, A) => T.label > A.label ? 1 : -1);
|
15102
|
-
const C = s?.filter((T) => !T.deploymentAppDeleteRequest), N = () => e === Ke.GROUP_CI || e === Ke.GROUP_CD ? Po.APPLICATION : e === Ke.CI ? Po.PIPELINE : Po.ENVIRONMENT,
|
15102
|
+
const C = s?.filter((T) => !T.deploymentAppDeleteRequest), N = () => e === Ke.GROUP_CI || e === Ke.GROUP_CD ? Po.APPLICATION : e === Ke.CI ? Po.PIPELINE : Po.ENVIRONMENT, S = (T) => (T.selectProps.styles.option = by(), /* @__PURE__ */ t.jsx(Xe.Option, { ...T, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
15103
15103
|
(e === Ke.CI || e === Ke.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
15104
15104
|
B,
|
15105
15105
|
{
|
@@ -15133,7 +15133,7 @@ const vc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15133
15133
|
onChange: E,
|
15134
15134
|
components: {
|
15135
15135
|
IndicatorSeparator: null,
|
15136
|
-
Option:
|
15136
|
+
Option: S,
|
15137
15137
|
DropdownIndicator: BD
|
15138
15138
|
},
|
15139
15139
|
styles: VA,
|
@@ -15311,14 +15311,14 @@ const wy = (e) => {
|
|
15311
15311
|
isLandscapeView: d = !1,
|
15312
15312
|
showConfetti: u = !1
|
15313
15313
|
}) => {
|
15314
|
-
const { registerShortcut: m, unregisterShortcut: p } = Ws(), [_, h] = w(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, C = n ?? wy(a), N = a === zt.custom && !n,
|
15315
|
-
g && !
|
15314
|
+
const { registerShortcut: m, unregisterShortcut: p } = Ws(), [_, h] = w(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, C = n ?? wy(a), N = a === zt.custom && !n, S = !!g?.disabled || x && _.trim() !== x, T = () => {
|
15315
|
+
g && !S && g.onClick();
|
15316
15316
|
}, A = Ge(() => {
|
15317
15317
|
!g?.isLoading && !f?.disabled && c();
|
15318
15318
|
}, [g, f]);
|
15319
15319
|
M(() => (m({ keys: ["Enter"], callback: T }), () => {
|
15320
15320
|
p(["Enter"]);
|
15321
|
-
}), [g,
|
15321
|
+
}), [g, S]);
|
15322
15322
|
const R = (b) => {
|
15323
15323
|
h(b.target.value);
|
15324
15324
|
};
|
@@ -15384,7 +15384,7 @@ const wy = (e) => {
|
|
15384
15384
|
size: L.large,
|
15385
15385
|
variant: K.primary,
|
15386
15386
|
style: "style" in g ? g.style : Dy(a),
|
15387
|
-
disabled:
|
15387
|
+
disabled: S,
|
15388
15388
|
isLoading: g.isLoading,
|
15389
15389
|
text: g.text,
|
15390
15390
|
onClick: g.onClick,
|
@@ -15482,15 +15482,15 @@ const wy = (e) => {
|
|
15482
15482
|
successToastMessage: p,
|
15483
15483
|
children: _
|
15484
15484
|
}) => {
|
15485
|
-
const [h, E] = w(!1), [x, g] = w(!1), [f, C] = w(u), [N,
|
15486
|
-
|
15485
|
+
const [h, E] = w(!1), [x, g] = w(!1), [f, C] = w(u), [N, S] = w(o), T = async (v) => {
|
15486
|
+
v && ye(v), S(!0);
|
15487
15487
|
try {
|
15488
15488
|
await i(), ke.showToast({
|
15489
15489
|
variant: be.success,
|
15490
15490
|
description: p || "Successfully deleted"
|
15491
|
-
}),
|
15491
|
+
}), S(!1), l();
|
15492
15492
|
} catch (j) {
|
15493
|
-
j instanceof Vt && j.code === m ? (E(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && C(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : Ue(j),
|
15493
|
+
j instanceof Vt && j.code === m ? (E(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && C(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : Ue(j), S(!1);
|
15494
15494
|
}
|
15495
15495
|
}, A = () => {
|
15496
15496
|
E(!1), l();
|
@@ -15948,20 +15948,20 @@ const wy = (e) => {
|
|
15948
15948
|
uniqueGroupId: E,
|
15949
15949
|
iconElement: x
|
15950
15950
|
}) => {
|
15951
|
-
const { pathname: g, search: f } = as(), C = F(null), [N,
|
15951
|
+
const { pathname: g, search: f } = as(), C = F(null), [N, S] = w(n === "button" && a);
|
15952
15952
|
M(() => {
|
15953
15953
|
if (n === "navLink") {
|
15954
|
-
|
15954
|
+
S(C.current?.classList.contains("active") || !1);
|
15955
15955
|
return;
|
15956
15956
|
}
|
15957
|
-
|
15957
|
+
S(a);
|
15958
15958
|
}, [a, n, g, f]);
|
15959
15959
|
const { tabClassName: T, iconClassName: A, badgeClassName: R } = Hy({
|
15960
15960
|
hideTopPadding: c
|
15961
|
-
})[o], b = (
|
15962
|
-
(a ||
|
15961
|
+
})[o], b = (v) => {
|
15962
|
+
(a || v.currentTarget.classList.contains("active") || n === "navLink" && m) && v.preventDefault(), s?.onClick?.(v);
|
15963
15963
|
}, I = () => {
|
15964
|
-
const
|
15964
|
+
const v = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15965
15965
|
/* @__PURE__ */ t.jsxs("span", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
15966
15966
|
Wy({ className: A, icon: r, showError: d, showWarning: u, size: o, active: a, iconElement: x }),
|
15967
15967
|
/* @__PURE__ */ t.jsx(Z, { content: e, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: e }) }),
|
@@ -15979,7 +15979,7 @@ const wy = (e) => {
|
|
15979
15979
|
"aria-disabled": m,
|
15980
15980
|
...s,
|
15981
15981
|
onClick: b,
|
15982
|
-
children:
|
15982
|
+
children: v
|
15983
15983
|
}
|
15984
15984
|
);
|
15985
15985
|
case "navLink":
|
@@ -15991,7 +15991,7 @@ const wy = (e) => {
|
|
15991
15991
|
"aria-disabled": m,
|
15992
15992
|
...s,
|
15993
15993
|
onClick: b,
|
15994
|
-
children:
|
15994
|
+
children: v
|
15995
15995
|
}
|
15996
15996
|
);
|
15997
15997
|
case "block":
|
@@ -16000,7 +16000,7 @@ const wy = (e) => {
|
|
16000
16000
|
{
|
16001
16001
|
className: `flexbox-col fw-6 ${T} ${m ? "cursor-not-allowed" : ""}`,
|
16002
16002
|
...s,
|
16003
|
-
children:
|
16003
|
+
children: v
|
16004
16004
|
}
|
16005
16005
|
);
|
16006
16006
|
default:
|
@@ -16012,7 +16012,7 @@ const wy = (e) => {
|
|
16012
16012
|
disabled: m,
|
16013
16013
|
...s,
|
16014
16014
|
onClick: b,
|
16015
|
-
children:
|
16015
|
+
children: v
|
16016
16016
|
}
|
16017
16017
|
);
|
16018
16018
|
}
|
@@ -16070,18 +16070,18 @@ const wy = (e) => {
|
|
16070
16070
|
renderVirtualHistoryArtifacts: f,
|
16071
16071
|
scrollToTop: C,
|
16072
16072
|
scrollToBottom: N,
|
16073
|
-
fullScreenView:
|
16073
|
+
fullScreenView: S,
|
16074
16074
|
appName: T,
|
16075
16075
|
triggerHistory: A,
|
16076
16076
|
targetPlatforms: R
|
16077
16077
|
}) => {
|
16078
|
-
const { path: b } = Ns(), { appId: I, pipelineId: y, triggerId:
|
16078
|
+
const { path: b } = Ns(), { appId: I, pipelineId: y, triggerId: v, envId: j } = kt(), P = {
|
16079
16079
|
appId: I,
|
16080
16080
|
envId: j,
|
16081
16081
|
appName: e.helmPackageName,
|
16082
16082
|
workflowId: e.id,
|
16083
16083
|
cdWorkflowType: vT[e.stage]
|
16084
|
-
}, O = `app/cd-pipeline/workflow/download/${I}/${j}/${y}/${
|
16084
|
+
}, O = `app/cd-pipeline/workflow/download/${I}/${j}/${y}/${v}`;
|
16085
16085
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container bg__tertiary flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(Au, { children: [
|
16086
16086
|
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Qs, { path: `${b}/logs`, children: [
|
16087
16087
|
/* @__PURE__ */ t.jsx(
|
@@ -16090,7 +16090,7 @@ const wy = (e) => {
|
|
16090
16090
|
triggerDetails: e,
|
16091
16091
|
isBlobStorageConfigured: r,
|
16092
16092
|
parentType: Ke.CD,
|
16093
|
-
fullScreenView:
|
16093
|
+
fullScreenView: S
|
16094
16094
|
}
|
16095
16095
|
),
|
16096
16096
|
(C || N) && /* @__PURE__ */ t.jsx(
|
@@ -16145,7 +16145,7 @@ const wy = (e) => {
|
|
16145
16145
|
appName: T,
|
16146
16146
|
envName: p,
|
16147
16147
|
pipelineId: +y,
|
16148
|
-
wfrId: +
|
16148
|
+
wfrId: +v,
|
16149
16149
|
triggerHistory: A,
|
16150
16150
|
setFullScreenView: n,
|
16151
16151
|
resourceId: _,
|
@@ -16206,16 +16206,16 @@ const wy = (e) => {
|
|
16206
16206
|
renderDeploymentHistoryTriggerMetaText: f,
|
16207
16207
|
resourceId: C,
|
16208
16208
|
scrollToTop: N,
|
16209
|
-
scrollToBottom:
|
16209
|
+
scrollToBottom: S,
|
16210
16210
|
renderTargetConfigInfo: T,
|
16211
16211
|
appName: A
|
16212
16212
|
}) => {
|
16213
|
-
const { appId: R, triggerId: b, envId: I, pipelineId: y } = kt(),
|
16213
|
+
const { appId: R, triggerId: b, envId: I, pipelineId: y } = kt(), v = s.get(+b), [j, P, O, D] = It(
|
16214
16214
|
() => $R({ appId: R, envId: I, pipelineId: y, triggerId: b, fetchIdData: d }),
|
16215
16215
|
// TODO: Ask if fetchIdData is required here as dependency
|
16216
16216
|
[b, R, I],
|
16217
16217
|
!!b && !!y
|
16218
|
-
), k = ro(
|
16218
|
+
), k = ro(v?.targetPlatforms), G = (W, ce, fe) => {
|
16219
16219
|
if (fe) {
|
16220
16220
|
p?.result?.cdWorkflows?.length && n($_(p.result.cdWorkflows, "id")), u(Ls.SUSPEND);
|
16221
16221
|
return;
|
@@ -16233,22 +16233,22 @@ const wy = (e) => {
|
|
16233
16233
|
}
|
16234
16234
|
};
|
16235
16235
|
let V = !!d && d !== Ls.SUSPEND;
|
16236
|
-
(P?.result?.artifactId === 0 ||
|
16236
|
+
(P?.result?.artifactId === 0 || v?.artifactId === 0) && (V = !1);
|
16237
16237
|
const [Q, te, Se] = It(
|
16238
16238
|
() => FR({
|
16239
16239
|
pipelineId: y,
|
16240
|
-
artifactId: P?.result?.artifactId ||
|
16240
|
+
artifactId: P?.result?.artifactId || v?.artifactId
|
16241
16241
|
}),
|
16242
16242
|
[y, b],
|
16243
|
-
V && !!y && (!!P?.result?.artifactId || !!
|
16243
|
+
V && !!y && (!!P?.result?.artifactId || !!v?.artifactId)
|
16244
16244
|
);
|
16245
16245
|
M(() => {
|
16246
16246
|
if (j)
|
16247
16247
|
return;
|
16248
16248
|
let W = {
|
16249
16249
|
...P?.result,
|
16250
|
-
imageComment:
|
16251
|
-
imageReleaseTags:
|
16250
|
+
imageComment: v?.imageComment,
|
16251
|
+
imageReleaseTags: v?.imageReleaseTags
|
16252
16252
|
};
|
16253
16253
|
V && (W = null), G(+b, W, O);
|
16254
16254
|
}, [j, P, O]), M(() => {
|
@@ -16261,45 +16261,45 @@ const wy = (e) => {
|
|
16261
16261
|
};
|
16262
16262
|
G(+b, W, Se);
|
16263
16263
|
}, [Q, te, Se]);
|
16264
|
-
const Ie = X(() => !
|
16265
|
-
return U_(D, Ie), !V && j && !
|
16264
|
+
const Ie = X(() => !v || BA.has(v.podStatus?.toLowerCase() || v.status?.toLowerCase()) ? null : GA.has(v.status?.toLowerCase() || v.podStatus?.toLowerCase()) ? 1e4 : 3e4, [v]);
|
16265
|
+
return U_(D, Ie), !V && j && !v || !b || V && (Q || j) && !v ? /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0 }) : O?.code === 404 ? /* @__PURE__ */ t.jsx(
|
16266
16266
|
Je,
|
16267
16267
|
{
|
16268
16268
|
title: tt.TRIGGER_NOT_FOUND.TITLE,
|
16269
16269
|
subTitle: tt.TRIGGER_NOT_FOUND.SUBTITLE
|
16270
16270
|
}
|
16271
|
-
) : !V && !j && !
|
16271
|
+
) : !V && !j && !v ? /* @__PURE__ */ t.jsx(_a, {}) : V && !(Q || j) && !v ? /* @__PURE__ */ t.jsx(_a, {}) : v?.id !== +b ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16272
16272
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16273
16273
|
/* @__PURE__ */ t.jsx(
|
16274
16274
|
Vy,
|
16275
16275
|
{
|
16276
16276
|
type: Ke.CD,
|
16277
|
-
status:
|
16278
|
-
startedOn:
|
16279
|
-
finishedOn:
|
16280
|
-
triggeredBy:
|
16281
|
-
triggeredByEmail:
|
16282
|
-
ciMaterials:
|
16283
|
-
gitTriggers:
|
16284
|
-
message:
|
16285
|
-
podStatus:
|
16286
|
-
stage:
|
16287
|
-
artifact:
|
16288
|
-
triggerMetadata:
|
16277
|
+
status: v.status,
|
16278
|
+
startedOn: v.startedOn,
|
16279
|
+
finishedOn: v.finishedOn,
|
16280
|
+
triggeredBy: v.triggeredBy,
|
16281
|
+
triggeredByEmail: v.triggeredByEmail,
|
16282
|
+
ciMaterials: v.ciMaterials,
|
16283
|
+
gitTriggers: v.gitTriggers,
|
16284
|
+
message: v.message,
|
16285
|
+
podStatus: v.podStatus,
|
16286
|
+
stage: v.stage,
|
16287
|
+
artifact: v.artifact,
|
16288
|
+
triggerMetadata: v.triggerMetadata,
|
16289
16289
|
renderDeploymentHistoryTriggerMetaText: f,
|
16290
16290
|
environmentName: m,
|
16291
16291
|
renderTargetConfigInfo: T,
|
16292
|
-
workflowExecutionStages:
|
16293
|
-
namespace:
|
16292
|
+
workflowExecutionStages: v.workflowExecutionStages,
|
16293
|
+
namespace: v.namespace
|
16294
16294
|
}
|
16295
16295
|
),
|
16296
|
-
/* @__PURE__ */ t.jsx("div", { className: "pl-50 pr-20 pt-8 dc__border-bottom dc__position-sticky dc__top-0 bg__primary dc__zi-3", children: /* @__PURE__ */ t.jsx(zp, { tabs: NR(
|
16296
|
+
/* @__PURE__ */ t.jsx("div", { className: "pl-50 pr-20 pt-8 dc__border-bottom dc__position-sticky dc__top-0 bg__primary dc__zi-3", children: /* @__PURE__ */ t.jsx(zp, { tabs: NR(v, r) }) })
|
16297
16297
|
] }),
|
16298
16298
|
/* @__PURE__ */ t.jsx(
|
16299
16299
|
Zy,
|
16300
16300
|
{
|
16301
|
-
triggerDetails:
|
16302
|
-
loading: j && !P || !
|
16301
|
+
triggerDetails: v,
|
16302
|
+
loading: j && !P || !v || V && !te,
|
16303
16303
|
userApprovalMetadata: P?.result?.userApprovalMetadata,
|
16304
16304
|
triggeredByEmail: P?.result?.triggeredByEmail,
|
16305
16305
|
setFullScreenView: a,
|
@@ -16318,13 +16318,13 @@ const wy = (e) => {
|
|
16318
16318
|
renderCIListHeader: h,
|
16319
16319
|
renderVirtualHistoryArtifacts: g,
|
16320
16320
|
scrollToTop: N,
|
16321
|
-
scrollToBottom:
|
16321
|
+
scrollToBottom: S,
|
16322
16322
|
fullScreenView: e,
|
16323
16323
|
appName: A,
|
16324
16324
|
triggerHistory: s,
|
16325
16325
|
targetPlatforms: k
|
16326
16326
|
},
|
16327
|
-
|
16327
|
+
v.id
|
16328
16328
|
)
|
16329
16329
|
] });
|
16330
16330
|
}, Qy = (e) => {
|
@@ -16840,10 +16840,10 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16840
16840
|
), [
|
16841
16841
|
C,
|
16842
16842
|
N,
|
16843
|
-
|
16843
|
+
S,
|
16844
16844
|
T,
|
16845
16845
|
A
|
16846
|
-
] = It(f, [], n === "release"), R = n === "release" ? N : a, b = Ii({ type: n, appDetails: R }), I = F(new AbortController()), y = F(null),
|
16846
|
+
] = It(f, [], n === "release"), R = n === "release" ? N : a, b = Ii({ type: n, appDetails: R }), I = F(new AbortController()), y = F(null), v = async () => {
|
16847
16847
|
const z = await ga(
|
16848
16848
|
() => lj({
|
16849
16849
|
abortControllerRef: I,
|
@@ -16866,7 +16866,7 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16866
16866
|
O,
|
16867
16867
|
D,
|
16868
16868
|
k
|
16869
|
-
] = It(
|
16869
|
+
] = It(v, [b, h], !!b, {
|
16870
16870
|
resetOnChange: !1
|
16871
16871
|
}), G = async () => {
|
16872
16872
|
g.current = setTimeout(
|
@@ -16889,7 +16889,7 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16889
16889
|
y.current = setTimeout(
|
16890
16890
|
async () => {
|
16891
16891
|
try {
|
16892
|
-
const Ne = await
|
16892
|
+
const Ne = await v();
|
16893
16893
|
k(Ne);
|
16894
16894
|
} catch {
|
16895
16895
|
}
|
@@ -16897,10 +16897,10 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16897
16897
|
},
|
16898
16898
|
z ? IT : Ee
|
16899
16899
|
);
|
16900
|
-
}, Q = C || Pt(
|
16900
|
+
}, Q = C || Pt(S), te = j || Pt(O), Se = h === gt.DEPLOYMENT_STATUS && te;
|
16901
16901
|
M(() => {
|
16902
|
-
!C && !
|
16903
|
-
}, [C, N,
|
16902
|
+
!C && !S && N && !g.current && G();
|
16903
|
+
}, [C, N, S]), M(() => {
|
16904
16904
|
!j && !O && P && !y.current && V();
|
16905
16905
|
}, [j, P, O]);
|
16906
16906
|
const Ie = () => {
|
@@ -16973,7 +16973,7 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16973
16973
|
)
|
16974
16974
|
] })
|
16975
16975
|
] });
|
16976
|
-
}, de = h === gt.DEPLOYMENT_STATUS ? O : null, ge =
|
16976
|
+
}, de = h === gt.DEPLOYMENT_STATUS ? O : null, ge = S || de, ie = S ? T : D;
|
16977
16977
|
return /* @__PURE__ */ t.jsx(Ac, { position: "right", width: "1024px", onClose: s, onEscape: s, children: /* @__PURE__ */ t.jsxs(
|
16978
16978
|
"div",
|
16979
16979
|
{
|
@@ -17000,7 +17000,7 @@ const rj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
17000
17000
|
}
|
17001
17001
|
)
|
17002
17002
|
] }),
|
17003
|
-
!Q && !
|
17003
|
+
!Q && !S && !!R && /* @__PURE__ */ t.jsx(
|
17004
17004
|
ij,
|
17005
17005
|
{
|
17006
17006
|
handleSelectTab: fe,
|
@@ -18594,7 +18594,7 @@ const pj = {
|
|
18594
18594
|
const f = Xj(c, l.category, l.subCategory, _);
|
18595
18595
|
if (f)
|
18596
18596
|
return /* @__PURE__ */ t.jsx(Je, { ...f, imageType: Hs.Large });
|
18597
|
-
const { headers: C, rows: N, defaultSortIndex:
|
18597
|
+
const { headers: C, rows: N, defaultSortIndex: S, hasExpandableRows: T } = _ || qj(c, l.category, l.subCategory, u, o), { entities: A, lastScanTimeString: R, scanToolName: b, scanToolUrl: I } = _ || Kj(c, l.category, l.subCategory);
|
18598
18598
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
18599
18599
|
A?.length ? /* @__PURE__ */ t.jsx(
|
18600
18600
|
_j,
|
@@ -18611,7 +18611,7 @@ const pj = {
|
|
18611
18611
|
{
|
18612
18612
|
headers: C,
|
18613
18613
|
rows: N,
|
18614
|
-
defaultSortIndex:
|
18614
|
+
defaultSortIndex: S,
|
18615
18615
|
hasExpandableRows: T,
|
18616
18616
|
headerTopPosition: _ ? 40 : 0
|
18617
18617
|
},
|
@@ -18789,7 +18789,7 @@ const pj = {
|
|
18789
18789
|
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[x].subCategories.map((N) => {
|
18790
18790
|
if (!e[x][N])
|
18791
18791
|
return null;
|
18792
|
-
const
|
18792
|
+
const S = x === me.IMAGE_SCAN && Dr(e[x][N].list ?? []) === "Failed", T = N === ne.MISCONFIGURATIONS ? e[x][N]?.misConfSummary?.status : e[x][N]?.summary?.severities;
|
18793
18793
|
return /* @__PURE__ */ t.jsx(
|
18794
18794
|
n_,
|
18795
18795
|
{
|
@@ -18797,7 +18797,7 @@ const pj = {
|
|
18797
18797
|
subCategory: N,
|
18798
18798
|
severities: T,
|
18799
18799
|
handleCardClick: h(x, N),
|
18800
|
-
scanFailed:
|
18800
|
+
scanFailed: S
|
18801
18801
|
}
|
18802
18802
|
);
|
18803
18803
|
}) })
|
@@ -18920,19 +18920,19 @@ const pj = {
|
|
18920
18920
|
d(f);
|
18921
18921
|
}, h = Ge(
|
18922
18922
|
(f, C) => {
|
18923
|
-
const N = Bo.some((T) => T.label === u),
|
18923
|
+
const N = Bo.some((T) => T.label === u), S = eO[u] ?? ((T) => T);
|
18924
18924
|
if (!N) {
|
18925
18925
|
const T = f.additionalKeys?.find((R) => R.label === u)?.value || "", A = C.additionalKeys?.find((R) => R.label === u)?.value || "";
|
18926
18926
|
return mt(T, A, m);
|
18927
18927
|
}
|
18928
|
-
return (m === Te.ASC ? 1 : -1) * (
|
18928
|
+
return (m === Te.ASC ? 1 : -1) * (S(f[wd[u]]) < S(C[wd[u]]) ? -1 : 1);
|
18929
18929
|
},
|
18930
18930
|
[m, u]
|
18931
18931
|
), E = a.getResults(e ? null : h), x = Bo.reduce(
|
18932
18932
|
(f, C, N) => {
|
18933
18933
|
if (f.push(C), N === 0) {
|
18934
|
-
const
|
18935
|
-
|
18934
|
+
const S = E?.[0]?.additionalKeys;
|
18935
|
+
S?.length && S.forEach((T) => {
|
18936
18936
|
f.push({
|
18937
18937
|
label: T.label,
|
18938
18938
|
isSortable: T.isSortable,
|
@@ -19026,7 +19026,7 @@ const pj = {
|
|
19026
19026
|
},
|
19027
19027
|
children: [
|
19028
19028
|
/* @__PURE__ */ t.jsx(Z, { content: f.name, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: f.name }) }),
|
19029
|
-
f.additionalKeys?.map((
|
19029
|
+
f.additionalKeys?.map((S) => /* @__PURE__ */ t.jsx(Z, { content: S.value, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: S.value || "-" }) })),
|
19030
19030
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-6 dc__align-items-center dc__align-self-start", children: [
|
19031
19031
|
f.status !== "Pending" && Pr(f.status),
|
19032
19032
|
/* @__PURE__ */ t.jsx("span", { children: f.status })
|
@@ -19159,7 +19159,7 @@ const VH = ({
|
|
19159
19159
|
p((/* @__PURE__ */ new Date()).toISOString()), R = -1;
|
19160
19160
|
}, 10));
|
19161
19161
|
}, I = _.current.map((y) => async () => {
|
19162
|
-
const { operation:
|
19162
|
+
const { operation: v, name: j, additionalKeys: P, renderContentAtResultRowEnd: O = null } = y;
|
19163
19163
|
if (E.current.signal.aborted)
|
19164
19164
|
throw new Error("bulk operations aborted");
|
19165
19165
|
let D = -1;
|
@@ -19170,7 +19170,7 @@ const VH = ({
|
|
19170
19170
|
status: "Progressing",
|
19171
19171
|
message: "-"
|
19172
19172
|
}), b();
|
19173
|
-
const k = await
|
19173
|
+
const k = await v(E, l);
|
19174
19174
|
h.current.updateResultStatus(D, {
|
19175
19175
|
status: "Completed",
|
19176
19176
|
...O ? {
|
@@ -19208,7 +19208,7 @@ const VH = ({
|
|
19208
19208
|
}), []);
|
19209
19209
|
const C = u ? Va : g, N = async () => {
|
19210
19210
|
_.current = h.current.getRetryOperations(), h.current = new Ld(_.current.length), E.current = new AbortController(), await f();
|
19211
|
-
},
|
19211
|
+
}, S = () => {
|
19212
19212
|
E.current.abort();
|
19213
19213
|
}, T = () => /* @__PURE__ */ t.jsx(
|
19214
19214
|
Gs,
|
@@ -19233,7 +19233,7 @@ const VH = ({
|
|
19233
19233
|
tO,
|
19234
19234
|
{
|
19235
19235
|
apiCallInProgress: u,
|
19236
|
-
handleAbortBulkOperation:
|
19236
|
+
handleAbortBulkOperation: S,
|
19237
19237
|
handleModalClose: C,
|
19238
19238
|
isOperationAborted: E.current?.signal.aborted ?? !1,
|
19239
19239
|
resultsStore: h.current,
|
@@ -19637,8 +19637,8 @@ const HH = ({
|
|
19637
19637
|
yaml: null
|
19638
19638
|
};
|
19639
19639
|
if (s) {
|
19640
|
-
const N = e || l ? rc.REPLACE : o,
|
19641
|
-
configMapSecretData: { ...s, mergeStrategy:
|
19640
|
+
const N = e || l ? rc.REPLACE : o, S = s.mergeStrategy || (n === to.INHERITED ? N : null), T = dO({
|
19641
|
+
configMapSecretData: { ...s, mergeStrategy: S },
|
19642
19642
|
cmSecretStateLabel: n,
|
19643
19643
|
isSecret: i
|
19644
19644
|
});
|
@@ -19652,7 +19652,7 @@ const HH = ({
|
|
19652
19652
|
}),
|
19653
19653
|
yaml: mO(T),
|
19654
19654
|
currentData: T,
|
19655
|
-
mergeStrategy:
|
19655
|
+
mergeStrategy: S,
|
19656
19656
|
...pO(s)
|
19657
19657
|
};
|
19658
19658
|
}
|
@@ -19702,7 +19702,7 @@ const HH = ({
|
|
19702
19702
|
}), C = i && c === (f ? Fe.KubernetesSecret : Fe.Internal);
|
19703
19703
|
let N = "";
|
19704
19704
|
return f ? N = i && c === "" ? Fe.KubernetesSecret : An(lO(a, !0), c).label : N = cO.find(
|
19705
|
-
({ value:
|
19705
|
+
({ value: S }) => i && c === "" ? S === Fe.KubernetesConfigMap : S === c
|
19706
19706
|
).label, {
|
19707
19707
|
configData: [
|
19708
19708
|
{
|
@@ -19743,7 +19743,7 @@ const HH = ({
|
|
19743
19743
|
...o ? [
|
19744
19744
|
{
|
19745
19745
|
displayName: "Keys",
|
19746
|
-
value: g?.length > 0 ? g.map((
|
19746
|
+
value: g?.length > 0 ? g.map((S) => S.key).join(", ") : "No keys available",
|
19747
19747
|
key: "keys"
|
19748
19748
|
}
|
19749
19749
|
] : []
|
@@ -19801,13 +19801,13 @@ const HH = ({
|
|
19801
19801
|
isSubPathChecked: h,
|
19802
19802
|
mergeStrategy: E
|
19803
19803
|
}) => {
|
19804
|
-
const x = e && Pm(n), f = (o ? fO(r) : i).reduce((N,
|
19805
|
-
if (!
|
19804
|
+
const x = e && Pm(n), f = (o ? fO(r) : i).reduce((N, S) => {
|
19805
|
+
if (!S.key)
|
19806
19806
|
return N;
|
19807
|
-
const T =
|
19807
|
+
const T = S.value ?? "";
|
19808
19808
|
return {
|
19809
19809
|
...N,
|
19810
|
-
[
|
19810
|
+
[S.key]: e && n === "" ? btoa(T) : T
|
19811
19811
|
};
|
19812
19812
|
}, {}), C = {
|
19813
19813
|
name: d,
|
@@ -19835,10 +19835,10 @@ const HH = ({
|
|
19835
19835
|
}, C.roleARN = p, h && a && (C.esoSubPath = a.replace(/\s+/g, "").split(",")));
|
19836
19836
|
}
|
19837
19837
|
if (u === kr.volume.value && (C.mountPath = _, C.subPath = h, m && (C.filePermission = l.length === 3 ? `0${l}` : `${l}`), h && (e && n === Fe.KubernetesSecret || !e && s))) {
|
19838
|
-
const N = a.replace(/\s+/g, "").split(","),
|
19838
|
+
const N = a.replace(/\s+/g, "").split(","), S = {};
|
19839
19839
|
N.forEach((T) => {
|
19840
|
-
|
19841
|
-
}), C.data =
|
19840
|
+
S[T] = "";
|
19841
|
+
}), C.data = S;
|
19842
19842
|
}
|
19843
19843
|
return C;
|
19844
19844
|
}, YH = ({
|
@@ -20074,37 +20074,38 @@ const HH = ({
|
|
20074
20074
|
formatOptionLabel: d,
|
20075
20075
|
optionListError: u,
|
20076
20076
|
reloadOptionList: m,
|
20077
|
-
classNamePrefix: p
|
20077
|
+
classNamePrefix: p,
|
20078
|
+
resource: _
|
20078
20079
|
}) => {
|
20079
|
-
const
|
20080
|
-
...
|
20081
|
-
options:
|
20082
|
-
})), { registerShortcut:
|
20083
|
-
|
20080
|
+
const h = F(null), E = F(!0), x = s?.map((S) => ({
|
20081
|
+
...S,
|
20082
|
+
options: S?.label === "Recently Visited" ? S.options?.slice(1) : S.options
|
20083
|
+
})), { registerShortcut: g, unregisterShortcut: f } = Ws(), C = () => {
|
20084
|
+
E.current && ke.showToast({
|
20084
20085
|
variant: be.shortcut,
|
20085
|
-
text:
|
20086
|
+
text: `to switch ${_}`,
|
20086
20087
|
shortcuts: ["S"]
|
20087
|
-
}),
|
20088
|
+
}), E.current = !0;
|
20088
20089
|
};
|
20089
|
-
M(() => (
|
20090
|
+
M(() => (g({
|
20090
20091
|
keys: ["S"],
|
20091
20092
|
callback: () => {
|
20092
|
-
|
20093
|
+
E.current = !1, h.current?.focus(), h.current?.openMenu("first");
|
20093
20094
|
}
|
20094
20095
|
}), () => {
|
20095
|
-
|
20096
|
+
f(["S"]);
|
20096
20097
|
}), []);
|
20097
|
-
const
|
20098
|
-
(
|
20098
|
+
const N = (S) => {
|
20099
|
+
(S.key === "Escape" || S.key === "Esc") && (S.preventDefault(), h.current?.blurInput(), h.current?.blur());
|
20099
20100
|
};
|
20100
20101
|
return /* @__PURE__ */ t.jsx(
|
20101
20102
|
Ft,
|
20102
20103
|
{
|
20103
|
-
selectRef:
|
20104
|
+
selectRef: h,
|
20104
20105
|
inputId: e,
|
20105
|
-
options:
|
20106
|
+
options: x || [],
|
20106
20107
|
inputValue: n,
|
20107
|
-
onFocus:
|
20108
|
+
onFocus: C,
|
20108
20109
|
onInputChange: a,
|
20109
20110
|
isLoading: r,
|
20110
20111
|
noOptionsMessage: Vp,
|
@@ -20119,7 +20120,7 @@ const HH = ({
|
|
20119
20120
|
optionListError: u,
|
20120
20121
|
reloadOptionList: m,
|
20121
20122
|
classNamePrefix: p,
|
20122
|
-
onKeyDown:
|
20123
|
+
onKeyDown: N
|
20123
20124
|
}
|
20124
20125
|
);
|
20125
20126
|
}, Oi = ({ country: e, size: s }) => /* @__PURE__ */ t.jsx(
|
@@ -20160,7 +20161,7 @@ const HH = ({
|
|
20160
20161
|
g.data.value.name.toLowerCase(),
|
20161
20162
|
`+${g.data.value.dialCode.toLowerCase()}`,
|
20162
20163
|
g.data.value.iso2.toLowerCase()
|
20163
|
-
].some((
|
20164
|
+
].some((S) => S.includes(C));
|
20164
20165
|
}, E = (g) => g.value.iso2, x = (g, f) => f.context === "menu" || c === "default" ? g.label : `+${g.value.dialCode}`;
|
20165
20166
|
return /* @__PURE__ */ t.jsx(
|
20166
20167
|
Ft,
|
@@ -20349,7 +20350,7 @@ const HH = ({
|
|
20349
20350
|
}) => {
|
20350
20351
|
const h = jO(e), E = dr.find((b) => b.value === h) ?? dr[0], [x, g] = w(!1), { disableFocusTrap: f, resumeFocusTrap: C } = YS(), N = ({ focused: b }) => {
|
20351
20352
|
g(b);
|
20352
|
-
},
|
20353
|
+
}, S = (b) => {
|
20353
20354
|
s(wO(e, b?.toDate()));
|
20354
20355
|
}, T = (b) => {
|
20355
20356
|
s(OO(e, b.value).value);
|
@@ -20369,7 +20370,7 @@ const HH = ({
|
|
20369
20370
|
id: r,
|
20370
20371
|
placeholder: "Select date",
|
20371
20372
|
date: we(e),
|
20372
|
-
onDateChange:
|
20373
|
+
onDateChange: S,
|
20373
20374
|
focused: x,
|
20374
20375
|
onFocusChange: N,
|
20375
20376
|
numberOfMonths: 1,
|
@@ -20515,7 +20516,7 @@ const xo = ({
|
|
20515
20516
|
e,
|
20516
20517
|
d,
|
20517
20518
|
c || o
|
20518
|
-
), E = xo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", x = (f) => () => n?.handleSorting(f), g = ({ key: f, label: C, isSortable: N, renderAdditionalContent:
|
20519
|
+
), E = xo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", x = (f) => () => n?.handleSorting(f), g = ({ key: f, label: C, isSortable: N, renderAdditionalContent: S }) => {
|
20519
20520
|
const T = !p && f === u;
|
20520
20521
|
return /* @__PURE__ */ t.jsxs(
|
20521
20522
|
"div",
|
@@ -20539,7 +20540,7 @@ const xo = ({
|
|
20539
20540
|
}
|
20540
20541
|
}
|
20541
20542
|
),
|
20542
|
-
typeof
|
20543
|
+
typeof S == "function" && S()
|
20543
20544
|
]
|
20544
20545
|
}
|
20545
20546
|
) : /* @__PURE__ */ t.jsxs(
|
@@ -20548,7 +20549,7 @@ const xo = ({
|
|
20548
20549
|
className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-4 ${_ ? "dc__top-left-radius" : "dc__left-radius-4"}`,
|
20549
20550
|
children: [
|
20550
20551
|
C,
|
20551
|
-
typeof
|
20552
|
+
typeof S == "function" && S()
|
20552
20553
|
]
|
20553
20554
|
}
|
20554
20555
|
),
|
@@ -20751,9 +20752,9 @@ const Ot = ({
|
|
20751
20752
|
if (N.isIntersecting && N.intersectionRatio >= 1)
|
20752
20753
|
l(1);
|
20753
20754
|
else {
|
20754
|
-
const { boundingClientRect:
|
20755
|
+
const { boundingClientRect: S, rootBounds: T } = N, { x: A, y: R, height: b, width: I } = S, {
|
20755
20756
|
x: y,
|
20756
|
-
y:
|
20757
|
+
y: v,
|
20757
20758
|
height: j,
|
20758
20759
|
width: P,
|
20759
20760
|
left: O,
|
@@ -20761,14 +20762,14 @@ const Ot = ({
|
|
20761
20762
|
top: k,
|
20762
20763
|
bottom: G
|
20763
20764
|
} = u.current.getBoundingClientRect();
|
20764
|
-
R + b > T.height && (i({ left: y, bottom: document.documentElement.clientHeight -
|
20765
|
+
R + b > T.height && (i({ left: y, bottom: document.documentElement.clientHeight - v }), l(1)), A + I > T.width && (i((V) => ({ ...V, right: "20px", left: "unset" })), l(1));
|
20765
20766
|
}
|
20766
20767
|
});
|
20767
20768
|
}
|
20768
20769
|
const h = (f) => {
|
20769
20770
|
f.stopPropagation(), r && f.preventDefault(), l(0);
|
20770
|
-
const { height: C, x: N, y:
|
20771
|
-
i({ left: N, top:
|
20771
|
+
const { height: C, x: N, y: S } = f.currentTarget.getBoundingClientRect();
|
20772
|
+
i({ left: N, top: S + C });
|
20772
20773
|
}, E = (f, C) => {
|
20773
20774
|
n || C === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : f.stopPropagation();
|
20774
20775
|
};
|
@@ -20778,7 +20779,7 @@ const Ot = ({
|
|
20778
20779
|
function g(f) {
|
20779
20780
|
if (!f) return;
|
20780
20781
|
u.current = f;
|
20781
|
-
const { bottom: C, height: N, left:
|
20782
|
+
const { bottom: C, height: N, left: S, right: T, top: A, width: R, x: b, y: I } = f.getBoundingClientRect();
|
20782
20783
|
m.current = R;
|
20783
20784
|
}
|
20784
20785
|
return /* @__PURE__ */ t.jsx(
|
@@ -20908,7 +20909,7 @@ const Pd = ({
|
|
20908
20909
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
20909
20910
|
] })
|
20910
20911
|
] });
|
20911
|
-
},
|
20912
|
+
}, S = (b, I) => /* @__PURE__ */ t.jsx(
|
20912
20913
|
"div",
|
20913
20914
|
{
|
20914
20915
|
"data-key": b.label,
|
@@ -20929,14 +20930,14 @@ const Pd = ({
|
|
20929
20930
|
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: b.label }),
|
20930
20931
|
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: b.description })
|
20931
20932
|
] }),
|
20932
|
-
children:
|
20933
|
+
children: S(b, I)
|
20933
20934
|
}
|
20934
20935
|
), A = () => {
|
20935
20936
|
if (a?.length) {
|
20936
20937
|
const b = a.filter((I) => I.label.indexOf(m) >= 0);
|
20937
20938
|
if (b.length)
|
20938
20939
|
return /* @__PURE__ */ t.jsx("div", { children: b.map(
|
20939
|
-
(I, y) => I.description ? T(I, y) :
|
20940
|
+
(I, y) => I.description ? T(I, y) : S(I, y)
|
20940
20941
|
) });
|
20941
20942
|
}
|
20942
20943
|
return N();
|
@@ -21114,21 +21115,21 @@ const KO = ({
|
|
21114
21115
|
focusableFieldKey: m,
|
21115
21116
|
shouldAutoFocusOnMount: p = !1
|
21116
21117
|
}) => {
|
21117
|
-
const _ = s.every(({ key:
|
21118
|
+
const _ = s.every(({ key: v }) => !e[0]?.data[v].value), h = !!e.length, E = e.length === 1 && _, x = kO(
|
21118
21119
|
s,
|
21119
21120
|
o,
|
21120
21121
|
a || n
|
21121
21122
|
), g = F(p), f = F(null);
|
21122
|
-
f.current || (f.current = e.reduce((
|
21123
|
-
const C = X(() => e.map(({ id:
|
21123
|
+
f.current || (f.current = e.reduce((v, j) => (v[j.id] = s.reduce((P, { key: O }) => ({ ...P, [O]: xr() }), {}), v), {}));
|
21124
|
+
const C = X(() => e.map(({ id: v }) => v), [e]);
|
21124
21125
|
M(() => {
|
21125
|
-
const
|
21126
|
-
f.current =
|
21126
|
+
const v = C.reduce((j, P) => (f.current[P] ? j[P] = f.current[P] : j[P] = s.reduce((O, { key: D }) => ({ ...O, [D]: xr() }), {}), j), {});
|
21127
|
+
f.current = v;
|
21127
21128
|
}, [JSON.stringify(C)]);
|
21128
|
-
const N = (
|
21129
|
+
const N = (v, j) => (P) => {
|
21129
21130
|
let O = "";
|
21130
21131
|
const D = { selectedValue: null, files: [] };
|
21131
|
-
switch (
|
21132
|
+
switch (v.data[j].type) {
|
21132
21133
|
case et.DROPDOWN:
|
21133
21134
|
case et.SELECT_TEXT:
|
21134
21135
|
O = P?.value || "", D.selectedValue = P;
|
@@ -21141,33 +21142,33 @@ const KO = ({
|
|
21141
21142
|
O = P.target.value;
|
21142
21143
|
break;
|
21143
21144
|
}
|
21144
|
-
i(
|
21145
|
-
},
|
21146
|
-
c(
|
21147
|
-
}, T = (
|
21148
|
-
const O = n ||
|
21149
|
-
switch (!p && !g.current && P === 0 && f?.current?.[
|
21145
|
+
i(v, j, O, D);
|
21146
|
+
}, S = (v) => () => {
|
21147
|
+
c(v);
|
21148
|
+
}, T = (v, j, P) => {
|
21149
|
+
const O = n || v.data[j].disabled, D = g.current && j === (m ?? s[0].key) && P === 0;
|
21150
|
+
switch (!p && !g.current && P === 0 && f?.current?.[v.id]?.[j].current && (g.current = !0), v.data[j].type) {
|
21150
21151
|
case et.DROPDOWN:
|
21151
21152
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
21152
21153
|
Ft,
|
21153
21154
|
{
|
21154
21155
|
autoFocus: D,
|
21155
|
-
...
|
21156
|
-
inputId: `data-table-${
|
21156
|
+
...v.data[j].props,
|
21157
|
+
inputId: `data-table-${v.id}-${j}-cell`,
|
21157
21158
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
21158
21159
|
variant: Wt.COMPACT,
|
21159
21160
|
value: An(
|
21160
|
-
|
21161
|
-
|
21161
|
+
v.data[j].props?.options,
|
21162
|
+
v.data[j].value,
|
21162
21163
|
null
|
21163
21164
|
),
|
21164
|
-
onChange: N(
|
21165
|
+
onChange: N(v, j),
|
21165
21166
|
isDisabled: O,
|
21166
21167
|
fullWidth: !0
|
21167
21168
|
}
|
21168
21169
|
) });
|
21169
21170
|
case et.SELECT_TEXT: {
|
21170
|
-
const { value: k, props: G } =
|
21171
|
+
const { value: k, props: G } = v.data[j], { isCreatable: V = !0 } = G;
|
21171
21172
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
21172
21173
|
vv,
|
21173
21174
|
{
|
@@ -21177,7 +21178,7 @@ const KO = ({
|
|
21177
21178
|
...G,
|
21178
21179
|
variant: Wt.COMPACT,
|
21179
21180
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
21180
|
-
inputId: `data-table-${
|
21181
|
+
inputId: `data-table-${v.id}-${j}-cell`,
|
21181
21182
|
minHeight: 20,
|
21182
21183
|
maxHeight: 160,
|
21183
21184
|
value: An(
|
@@ -21185,11 +21186,11 @@ const KO = ({
|
|
21185
21186
|
k,
|
21186
21187
|
V && k ? { label: k, value: k } : null
|
21187
21188
|
),
|
21188
|
-
onChange: N(
|
21189
|
+
onChange: N(v, j),
|
21189
21190
|
isDisabled: O,
|
21190
21191
|
formatCreateLabel: (Q) => `Use ${Q}`,
|
21191
|
-
refVar: f?.current?.[
|
21192
|
-
dependentRefs: f?.current?.[
|
21192
|
+
refVar: f?.current?.[v.id]?.[j],
|
21193
|
+
dependentRefs: f?.current?.[v.id],
|
21193
21194
|
fullWidth: !0
|
21194
21195
|
}
|
21195
21196
|
) });
|
@@ -21199,15 +21200,15 @@ const KO = ({
|
|
21199
21200
|
pt,
|
21200
21201
|
{
|
21201
21202
|
condition: !!u,
|
21202
|
-
wrap: zO(u,
|
21203
|
+
wrap: zO(u, v),
|
21203
21204
|
children: /* @__PURE__ */ t.jsxs(
|
21204
21205
|
"button",
|
21205
21206
|
{
|
21206
21207
|
type: "button",
|
21207
|
-
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${
|
21208
|
+
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${v.data[j].disabled ? "dc__disabled" : ""}`,
|
21208
21209
|
children: [
|
21209
|
-
|
21210
|
-
|
21210
|
+
v.data[j].props?.icon || null,
|
21211
|
+
v.data[j].props.text
|
21211
21212
|
]
|
21212
21213
|
}
|
21213
21214
|
)
|
@@ -21217,13 +21218,13 @@ const KO = ({
|
|
21217
21218
|
return /* @__PURE__ */ t.jsx(
|
21218
21219
|
"div",
|
21219
21220
|
{
|
21220
|
-
className: `mw-none w-100 h-100 flex top left px-8 ${
|
21221
|
+
className: `mw-none w-100 h-100 flex top left px-8 ${v.data[j].props?.isLoading || v.data[j].value ? "py-3" : "py-8"}`,
|
21221
21222
|
children: /* @__PURE__ */ t.jsx(
|
21222
21223
|
KO,
|
21223
21224
|
{
|
21224
|
-
...
|
21225
|
-
fileName:
|
21226
|
-
onUpload: N(
|
21225
|
+
...v.data[j].props,
|
21226
|
+
fileName: v.data[j].value,
|
21227
|
+
onUpload: N(v, j)
|
21227
21228
|
}
|
21228
21229
|
)
|
21229
21230
|
}
|
@@ -21233,34 +21234,34 @@ const KO = ({
|
|
21233
21234
|
d_,
|
21234
21235
|
{
|
21235
21236
|
autoFocus: D,
|
21236
|
-
...
|
21237
|
-
id: `data-table-${
|
21237
|
+
...v.data[j].props,
|
21238
|
+
id: `data-table-${v.id}-${j}-cell`,
|
21238
21239
|
className: `dynamic-data-table__cell-input placeholder-cn5 p-8 cn-9 fs-13 lh-20 dc__align-self-start dc__no-border-radius ${O ? "cursor-not-allowed" : ""}`,
|
21239
21240
|
minHeight: 20,
|
21240
21241
|
maxHeight: 160,
|
21241
|
-
value:
|
21242
|
-
onChange: N(
|
21242
|
+
value: v.data[j].value,
|
21243
|
+
onChange: N(v, j),
|
21243
21244
|
disabled: O,
|
21244
|
-
refVar: f?.current?.[
|
21245
|
-
dependentRefs: f?.current?.[
|
21245
|
+
refVar: f?.current?.[v.id]?.[j],
|
21246
|
+
dependentRefs: f?.current?.[v.id],
|
21246
21247
|
disableOnBlurResizeToMinHeight: !0
|
21247
21248
|
}
|
21248
21249
|
);
|
21249
21250
|
}
|
21250
|
-
}, A = (
|
21251
|
+
}, A = (v, j) => v.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: "*" }), R = (v, j, P) => {
|
21251
21252
|
const O = P ? l : d;
|
21252
|
-
return O?.[j]?.(
|
21253
|
+
return O?.[j]?.(v) ? /* @__PURE__ */ t.jsx(
|
21253
21254
|
"div",
|
21254
21255
|
{
|
21255
|
-
className: `flex h-100 dc__align-self-start ${
|
21256
|
-
children: O[j](
|
21256
|
+
className: `flex h-100 dc__align-self-start ${v.data[j].type !== et.TEXT ? `py-8 ${P ? "pl-8" : "pr-8"}` : ""}`,
|
21257
|
+
children: O[j](v)
|
21257
21258
|
}
|
21258
21259
|
) : null;
|
21259
|
-
}, b = (
|
21260
|
+
}, b = (v) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4", children: [
|
21260
21261
|
/* @__PURE__ */ t.jsx(B, { name: "ic-close-small", color: "R500" }),
|
21261
|
-
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children:
|
21262
|
-
] },
|
21263
|
-
const { isValid: P, errorMessages: O } = !
|
21262
|
+
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: v })
|
21263
|
+
] }, v), I = (v, j) => {
|
21264
|
+
const { isValid: P, errorMessages: O } = !v.data[j].disabled && r[v.id]?.[j] ? r[v.id][j] : { isValid: !0, errorMessages: [] }, D = v.data[j].type === et.SELECT_TEXT || v.data[j].type === et.DROPDOWN;
|
21264
21265
|
return P ? null : /* @__PURE__ */ t.jsx(
|
21265
21266
|
"div",
|
21266
21267
|
{
|
@@ -21268,25 +21269,25 @@ const KO = ({
|
|
21268
21269
|
children: O.map((k) => b(k))
|
21269
21270
|
}
|
21270
21271
|
);
|
21271
|
-
}, y = (
|
21272
|
-
const O = n ||
|
21272
|
+
}, y = (v, j, P) => {
|
21273
|
+
const O = n || v.data[j].disabled || !1, D = !(r[v.id]?.[j]?.isValid ?? !0), k = /* @__PURE__ */ t.jsx(
|
21273
21274
|
Z,
|
21274
21275
|
{
|
21275
|
-
alwaysShowTippyOnHover: !!
|
21276
|
-
className:
|
21277
|
-
content:
|
21276
|
+
alwaysShowTippyOnHover: !!v.data[j].tooltip?.content || O,
|
21277
|
+
className: v.data[j].tooltip?.className,
|
21278
|
+
content: v.data[j].tooltip?.content || (O ? "Cannot edit in read-only mode" : ""),
|
21278
21279
|
followCursor: "horizontal",
|
21279
21280
|
plugins: [eh],
|
21280
21281
|
children: /* @__PURE__ */ t.jsxs(
|
21281
21282
|
"div",
|
21282
21283
|
{
|
21283
|
-
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${O ? "cursor-not-allowed no-hover" : ""} ${!O && D ? "dynamic-data-table__cell--error no-hover" : ""} ${UO(
|
21284
|
+
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${O ? "cursor-not-allowed no-hover" : ""} ${!O && D ? "dynamic-data-table__cell--error no-hover" : ""} ${UO(v.data[j].type) ? "" : "no-hover no-focus"}`,
|
21284
21285
|
children: [
|
21285
|
-
R(
|
21286
|
-
T(
|
21287
|
-
A(
|
21288
|
-
R(
|
21289
|
-
I(
|
21286
|
+
R(v, j, !0),
|
21287
|
+
T(v, j, P),
|
21288
|
+
A(v, j),
|
21289
|
+
R(v, j),
|
21290
|
+
I(v, j)
|
21290
21291
|
]
|
21291
21292
|
}
|
21292
21293
|
)
|
@@ -21297,7 +21298,7 @@ const KO = ({
|
|
21297
21298
|
"div",
|
21298
21299
|
{
|
21299
21300
|
className: `dc__overflow-hidden flex top bg__primary ${Q === "start" && j === s[0].key || a && Q === "end" && j === s[s.length - 1].key ? "dynamic-data-table__cell" : ""}`,
|
21300
|
-
children: V(
|
21301
|
+
children: V(v)
|
21301
21302
|
}
|
21302
21303
|
);
|
21303
21304
|
return Q === "start" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -21317,8 +21318,8 @@ const KO = ({
|
|
21317
21318
|
style: {
|
21318
21319
|
gridTemplateColumns: x
|
21319
21320
|
},
|
21320
|
-
children: e.map((
|
21321
|
-
s.map(({ key: j }, P) => /* @__PURE__ */ t.jsx(hs, { children: y(
|
21321
|
+
children: e.map((v) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
21322
|
+
s.map(({ key: j }, P) => /* @__PURE__ */ t.jsx(hs, { children: y(v, j, P) }, j)),
|
21322
21323
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
21323
21324
|
H,
|
21324
21325
|
{
|
@@ -21326,14 +21327,14 @@ const KO = ({
|
|
21326
21327
|
ariaLabel: "Delete Row",
|
21327
21328
|
showAriaLabelInTippy: !1,
|
21328
21329
|
icon: /* @__PURE__ */ t.jsx(B, { name: "ic-close-large", color: null }),
|
21329
|
-
disabled: E ||
|
21330
|
-
onClick: v
|
21330
|
+
disabled: E || v.disableDelete,
|
21331
|
+
onClick: S(v),
|
21331
21332
|
variant: K.borderLess,
|
21332
21333
|
style: oe.negativeGrey,
|
21333
21334
|
size: L.small
|
21334
21335
|
}
|
21335
21336
|
) })
|
21336
|
-
] },
|
21337
|
+
] }, v.id))
|
21337
21338
|
}
|
21338
21339
|
) }) : null;
|
21339
21340
|
}, p_ = ({
|
@@ -21373,12 +21374,12 @@ const KO = ({
|
|
21373
21374
|
borderConfig: f,
|
21374
21375
|
disableResize: C,
|
21375
21376
|
newlineOnShiftEnter: N = !1,
|
21376
|
-
...
|
21377
|
+
...S
|
21377
21378
|
}) => {
|
21378
21379
|
const T = F(null), [A, R] = w(""), { MIN_HEIGHT: b, AUTO_EXPANSION_MAX_HEIGHT: I } = JO(m), y = (k) => {
|
21379
21380
|
const G = T.current;
|
21380
21381
|
G && (G.style.height = `${k}px`);
|
21381
|
-
},
|
21382
|
+
}, v = Ge((k) => {
|
21382
21383
|
n && (typeof n == "function" ? n(k) : n.current = k), T.current = k;
|
21383
21384
|
}, []), j = () => {
|
21384
21385
|
const k = parseInt(T.current.style.height, 10);
|
@@ -21389,11 +21390,11 @@ const KO = ({
|
|
21389
21390
|
R(g);
|
21390
21391
|
}, [g]), No(j, 300, [A]);
|
21391
21392
|
const P = (k) => {
|
21392
|
-
R(k.target.value),
|
21393
|
+
R(k.target.value), S.onChange?.(k);
|
21393
21394
|
}, O = (k) => {
|
21394
21395
|
if (u) {
|
21395
21396
|
const G = k.target.value?.trim();
|
21396
|
-
k.target.value !== G && (k.stopPropagation(), k.target.value = G,
|
21397
|
+
k.target.value !== G && (k.stopPropagation(), k.target.value = G, S.onChange(k));
|
21397
21398
|
}
|
21398
21399
|
typeof d == "function" && d(k);
|
21399
21400
|
}, D = (k) => {
|
@@ -21419,7 +21420,7 @@ const KO = ({
|
|
21419
21420
|
children: /* @__PURE__ */ t.jsx(
|
21420
21421
|
"textarea",
|
21421
21422
|
{
|
21422
|
-
...
|
21423
|
+
...S,
|
21423
21424
|
...ic({
|
21424
21425
|
inputId: e,
|
21425
21426
|
required: l,
|
@@ -21439,7 +21440,7 @@ const KO = ({
|
|
21439
21440
|
onBlur: O,
|
21440
21441
|
onKeyDown: D,
|
21441
21442
|
className: `${rs[m]} ${Sm[m]} ${oo({ borderConfig: f, borderRadiusConfig: _ })} w-100 dc__overflow-auto textarea`,
|
21442
|
-
ref:
|
21443
|
+
ref: v,
|
21443
21444
|
style: {
|
21444
21445
|
// No max height when user is expanding
|
21445
21446
|
maxHeight: "none",
|
@@ -21554,7 +21555,7 @@ const KO = ({
|
|
21554
21555
|
f(a);
|
21555
21556
|
}, N = () => {
|
21556
21557
|
f();
|
21557
|
-
},
|
21558
|
+
}, S = (b) => {
|
21558
21559
|
const { value: I } = b.target;
|
21559
21560
|
if (r(I), !I.trim()) {
|
21560
21561
|
n("");
|
@@ -21584,9 +21585,9 @@ const KO = ({
|
|
21584
21585
|
const I = await b.blob();
|
21585
21586
|
if (I.size > Md)
|
21586
21587
|
throw new Error(`Please add an image smaller than ${Md / (1024 * 1024)} MB`);
|
21587
|
-
const y = URL.createObjectURL(I),
|
21588
|
-
if (URL.revokeObjectURL(y), !
|
21589
|
-
throw new Error(
|
21588
|
+
const y = URL.createObjectURL(I), v = await Uv(y);
|
21589
|
+
if (URL.revokeObjectURL(y), !v.isValid)
|
21590
|
+
throw new Error(v.message);
|
21590
21591
|
C();
|
21591
21592
|
} catch (b) {
|
21592
21593
|
n(b.message || "Failed to load image"), Ue(b);
|
@@ -21618,7 +21619,7 @@ const KO = ({
|
|
21618
21619
|
label: "Image URL",
|
21619
21620
|
placeholder: "Enter image url",
|
21620
21621
|
value: a,
|
21621
|
-
onChange:
|
21622
|
+
onChange: S,
|
21622
21623
|
error: s || h,
|
21623
21624
|
fullWidth: !0,
|
21624
21625
|
onKeyDown: A,
|
@@ -22154,10 +22155,10 @@ const Ud = (e) => {
|
|
22154
22155
|
c(n);
|
22155
22156
|
}, [n]);
|
22156
22157
|
const _ = (C) => {
|
22157
|
-
const N = C.trim().toLowerCase(),
|
22158
|
+
const N = C.trim().toLowerCase(), S = n.filter(
|
22158
22159
|
(T) => T.variableName.toLowerCase().includes(N) || T.shortDescription?.toLowerCase().includes(N)
|
22159
22160
|
);
|
22160
|
-
c(
|
22161
|
+
c(S), m(N);
|
22161
22162
|
}, h = () => {
|
22162
22163
|
d(!l);
|
22163
22164
|
}, E = () => /* @__PURE__ */ t.jsx(
|
@@ -22277,7 +22278,7 @@ const Ud = (e) => {
|
|
22277
22278
|
b.disconnect();
|
22278
22279
|
};
|
22279
22280
|
}, [l, p, f, N]);
|
22280
|
-
const
|
22281
|
+
const S = () => {
|
22281
22282
|
const b = {
|
22282
22283
|
x: N.x + u.x,
|
22283
22284
|
y: N.y + u.y
|
@@ -22363,7 +22364,7 @@ const Ud = (e) => {
|
|
22363
22364
|
{
|
22364
22365
|
className: `dc__outline-none-imp dc__no-border p-0 bcn-7 h-20 ${In}`,
|
22365
22366
|
type: "button",
|
22366
|
-
onClick:
|
22367
|
+
onClick: S,
|
22367
22368
|
"data-testid": "activate-suggestions",
|
22368
22369
|
"aria-label": "Activate suggestions",
|
22369
22370
|
children: /* @__PURE__ */ t.jsx(B, { name: "ic-view-variable-toggle", color: "N0", size: 20 })
|
@@ -22688,8 +22689,8 @@ const Pc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22688
22689
|
};
|
22689
22690
|
const f = new ResizeObserver((C) => {
|
22690
22691
|
let N = !1;
|
22691
|
-
C.forEach((
|
22692
|
-
const { width: T } =
|
22692
|
+
C.forEach((S) => {
|
22693
|
+
const { width: T } = S.contentRect;
|
22693
22694
|
N = r.current.getNodesBounds(u).width + Wo * 2 > T;
|
22694
22695
|
}), d(N);
|
22695
22696
|
});
|
@@ -22701,11 +22702,11 @@ const Pc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22701
22702
|
n(
|
22702
22703
|
(C) => ih(f, Hd(C, m)).map(
|
22703
22704
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
22704
|
-
({ position: N, ...
|
22705
|
+
({ position: N, ...S }) => S
|
22705
22706
|
)
|
22706
22707
|
);
|
22707
22708
|
}, E = (f) => {
|
22708
|
-
a((C) => oh(f, Vd(C)).map(({ type: N, ...
|
22709
|
+
a((C) => oh(f, Vd(C)).map(({ type: N, ...S }) => S));
|
22709
22710
|
}, x = (f) => {
|
22710
22711
|
const C = r.current.getNodesBounds(u), N = f;
|
22711
22712
|
N.x = Math.min(f.x, Gd.x), N.y = Math.abs(C.y - er), c(N);
|
@@ -22932,9 +22933,9 @@ const kw = async (e, s) => {
|
|
22932
22933
|
g.current?.open();
|
22933
22934
|
}, N = () => {
|
22934
22935
|
u(!0);
|
22935
|
-
},
|
22936
|
-
x && !y.metaKey && (y.preventDefault(), p((
|
22937
|
-
...
|
22936
|
+
}, S = (I, y) => {
|
22937
|
+
x && !y.metaKey && (y.preventDefault(), p((v) => ({
|
22938
|
+
...v,
|
22938
22939
|
state: eo.DOCUMENTATION,
|
22939
22940
|
docLink: Sa,
|
22940
22941
|
reinitialize: !0
|
@@ -22954,7 +22955,7 @@ const kw = async (e, s) => {
|
|
22954
22955
|
C();
|
22955
22956
|
break;
|
22956
22957
|
case Ct.VIEW_DOCUMENTATION:
|
22957
|
-
|
22958
|
+
S(I, y);
|
22958
22959
|
break;
|
22959
22960
|
}
|
22960
22961
|
}, A = () => (/* @__PURE__ */ new Date()).valueOf() > i;
|
@@ -23164,7 +23165,7 @@ const kw = async (e, s) => {
|
|
23164
23165
|
onClose: l,
|
23165
23166
|
tippyProps: d
|
23166
23167
|
}) => {
|
23167
|
-
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ts(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = jn(), { isTippyCustomized: x, tippyRedirectLink: g, TippyIcon: f, tippyMessage: C, onClickTippyButton: N, additionalContent:
|
23168
|
+
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ts(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = jn(), { isTippyCustomized: x, tippyRedirectLink: g, TippyIcon: f, tippyMessage: C, onClickTippyButton: N, additionalContent: S } = d || {}, { email: T } = ac(), [A, R] = w(
|
23168
23169
|
{
|
23169
23170
|
serverInfo: void 0,
|
23170
23171
|
fetchingServerInfo: !1
|
@@ -23186,7 +23187,7 @@ const kw = async (e, s) => {
|
|
23186
23187
|
m(!1), G && u(+G);
|
23187
23188
|
}, y = () => {
|
23188
23189
|
E(!1);
|
23189
|
-
},
|
23190
|
+
}, v = () => {
|
23190
23191
|
y(), Di("clickedOkay", 1), I();
|
23191
23192
|
}, j = async () => {
|
23192
23193
|
!window._env_.K8S_CLIENT && A.serverInfo?.installationType !== Zi.ENTERPRISE && await b(), Di("clickedOkay", 1), I(), await Li(ni.HELP), ai({
|
@@ -23238,7 +23239,7 @@ const kw = async (e, s) => {
|
|
23238
23239
|
arrow: !0,
|
23239
23240
|
onClose: y,
|
23240
23241
|
documentationLink: g,
|
23241
|
-
children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Kw, { user: T, onClick:
|
23242
|
+
children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Kw, { user: T, onClick: v }) })
|
23242
23243
|
}
|
23243
23244
|
)
|
23244
23245
|
] }), k = () => /* @__PURE__ */ t.jsx(Yw, {});
|
@@ -23290,7 +23291,7 @@ const kw = async (e, s) => {
|
|
23290
23291
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
23291
23292
|
documentationLink: g,
|
23292
23293
|
documentationLinkText: "View Documentation",
|
23293
|
-
additionalContent:
|
23294
|
+
additionalContent: S,
|
23294
23295
|
children: f && /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(f, { className: "icon-dim-20 ml- cursor fcn-5" }) })
|
23295
23296
|
}
|
23296
23297
|
) : /* @__PURE__ */ t.jsx(
|
@@ -23942,7 +23943,7 @@ const aL = ({
|
|
23942
23943
|
validateDuplicateKeys: _ = !1,
|
23943
23944
|
validateEmptyKeys: h = !1
|
23944
23945
|
}) => {
|
23945
|
-
const [E, x] = w({}), [g, f] = w([]), { sortBy: C, sortOrder: N, handleSorting:
|
23946
|
+
const [E, x] = w({}), [g, f] = w([]), { sortBy: C, sortOrder: N, handleSorting: S } = xc({
|
23946
23947
|
initialSortKey: r ? "key" : null
|
23947
23948
|
}), T = X(
|
23948
23949
|
() => dL({ rows: s, placeholder: n, maskValue: a }),
|
@@ -23957,44 +23958,44 @@ const aL = ({
|
|
23957
23958
|
);
|
23958
23959
|
};
|
23959
23960
|
M(() => {
|
23960
|
-
const { isValid:
|
23961
|
+
const { isValid: v, updatedCellError: j } = zd({
|
23961
23962
|
rows: T,
|
23962
23963
|
validateDuplicateKeys: _,
|
23963
23964
|
validateEmptyKeys: h,
|
23964
23965
|
validationSchema: m
|
23965
23966
|
});
|
23966
|
-
x(j), p?.(!
|
23967
|
+
x(j), p?.(!v), A();
|
23967
23968
|
}, []), Gr(() => {
|
23968
23969
|
if (!r) {
|
23969
23970
|
f(T);
|
23970
23971
|
return;
|
23971
23972
|
}
|
23972
|
-
const
|
23973
|
+
const v = new Map(T.map((D) => [D.id, D])), j = new Set(g.map((D) => D.id)), P = g.map((D) => v.get(D.id)).filter(Boolean), O = T.filter((D) => !j.has(D.id));
|
23973
23974
|
f([...O, ...P]);
|
23974
23975
|
}, [T]), Gr(() => {
|
23975
23976
|
A();
|
23976
23977
|
}, [C, N]);
|
23977
|
-
const R = (
|
23978
|
+
const R = (v) => {
|
23978
23979
|
const { isValid: j, updatedCellError: P } = zd({
|
23979
|
-
rows:
|
23980
|
+
rows: v,
|
23980
23981
|
validateDuplicateKeys: _,
|
23981
23982
|
validateEmptyKeys: h,
|
23982
23983
|
validationSchema: m
|
23983
23984
|
});
|
23984
|
-
x(P), p?.(!j), i(lL(
|
23985
|
+
x(P), p?.(!j), i(lL(v));
|
23985
23986
|
}, b = () => {
|
23986
23987
|
const j = [Pi(n), ...T];
|
23987
23988
|
R(j);
|
23988
|
-
}, I = (
|
23989
|
-
const j = T.filter(({ id: P }) => P !==
|
23989
|
+
}, I = (v) => {
|
23990
|
+
const j = T.filter(({ id: P }) => P !== v.id);
|
23990
23991
|
if (j.length === 0 && !c) {
|
23991
23992
|
const P = Pi(n);
|
23992
23993
|
R([P]);
|
23993
23994
|
return;
|
23994
23995
|
}
|
23995
23996
|
R(j);
|
23996
|
-
}, y = (
|
23997
|
-
const O = T, D = T.findIndex(({ id: G }) =>
|
23997
|
+
}, y = (v, j, P) => {
|
23998
|
+
const O = T, D = T.findIndex(({ id: G }) => v.id === G), k = T[D];
|
23998
23999
|
k && (k.data[j].value = P, O[D] = k), R(O);
|
23999
24000
|
};
|
24000
24001
|
return /* @__PURE__ */ t.jsx(
|
@@ -24013,7 +24014,7 @@ const aL = ({
|
|
24013
24014
|
sortingConfig: {
|
24014
24015
|
sortBy: C,
|
24015
24016
|
sortOrder: N,
|
24016
|
-
handleSorting:
|
24017
|
+
handleSorting: S
|
24017
24018
|
}
|
24018
24019
|
}
|
24019
24020
|
);
|
@@ -24326,10 +24327,10 @@ const fL = ({
|
|
24326
24327
|
window.removeEventListener("mousemove", b);
|
24327
24328
|
};
|
24328
24329
|
}, []);
|
24329
|
-
const
|
24330
|
+
const S = ws(
|
24330
24331
|
[C, N],
|
24331
24332
|
([b, I]) => b + I
|
24332
|
-
), T = ws(
|
24333
|
+
), T = ws(S, [-5, 5], [-100, 200]), A = ws(T, [-100, 50, 200], [0, E ? 0.25 : 0.1, 0]), R = E ? sl`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${A}) ${T}%, transparent)` : sl`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${A}) ${T}%, transparent)`;
|
24333
24334
|
return /* @__PURE__ */ t.jsxs("div", { className: "license-card-wrapper flexbox-col p-8 br-16", style: { backgroundColor: m }, children: [
|
24334
24335
|
/* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
|
24335
24336
|
$e.div,
|
@@ -25082,7 +25083,7 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25082
25083
|
rootClassName: h = "",
|
25083
25084
|
showCardBorder: E = !1
|
25084
25085
|
}) => {
|
25085
|
-
const { appId: x } = kt(), [g, f] = w(l || []), [C, N] = w(u || 0), [
|
25086
|
+
const { appId: x } = kt(), [g, f] = w(l || []), [C, N] = w(u || 0), [S, T] = w(
|
25086
25087
|
p || structuredClone(IL)
|
25087
25088
|
), A = F(new AbortController()), R = (se) => {
|
25088
25089
|
f(se), d?.(se);
|
@@ -25090,10 +25091,10 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25090
25091
|
N(se), m?.(se);
|
25091
25092
|
}, I = (se) => {
|
25092
25093
|
T(se), _?.(se);
|
25093
|
-
}, { searchKey: y, selectedTags:
|
25094
|
+
}, { searchKey: y, selectedTags: v } = S || {}, j = () => ga(
|
25094
25095
|
() => A_({
|
25095
25096
|
searchKey: y,
|
25096
|
-
selectedTags:
|
25097
|
+
selectedTags: v,
|
25097
25098
|
offset: 0,
|
25098
25099
|
appId: x ? +x : null,
|
25099
25100
|
signal: A.current.signal
|
@@ -25102,7 +25103,7 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25102
25103
|
), [P, O, D, k] = It(
|
25103
25104
|
j,
|
25104
25105
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
25105
|
-
[y, x,
|
25106
|
+
[y, x, v],
|
25106
25107
|
c ? !g.length : !0
|
25107
25108
|
), [G, V, Q, te] = It(
|
25108
25109
|
() => PL(x ? +x : null),
|
@@ -25141,17 +25142,17 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25141
25142
|
}), Ie();
|
25142
25143
|
}, ce = (se) => {
|
25143
25144
|
I({
|
25144
|
-
...
|
25145
|
+
...S,
|
25145
25146
|
searchKey: se
|
25146
25147
|
}), Ie();
|
25147
25148
|
}, fe = (se) => {
|
25148
25149
|
I({
|
25149
|
-
...
|
25150
|
+
...S,
|
25150
25151
|
selectedTags: se
|
25151
25152
|
}), Ie();
|
25152
25153
|
}, Ce = (se) => {
|
25153
25154
|
I({
|
25154
|
-
...
|
25155
|
+
...S,
|
25155
25156
|
selectedTags: se.selectedTags
|
25156
25157
|
}), Ie();
|
25157
25158
|
}, le = (se) => {
|
@@ -25176,18 +25177,18 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25176
25177
|
{
|
25177
25178
|
availableTags: e,
|
25178
25179
|
handleUpdateSelectedTags: fe,
|
25179
|
-
selectedTags:
|
25180
|
+
selectedTags: v,
|
25180
25181
|
isLoading: G,
|
25181
25182
|
tagsError: Q,
|
25182
25183
|
reloadTags: te
|
25183
25184
|
}
|
25184
25185
|
)
|
25185
25186
|
] }),
|
25186
|
-
!!
|
25187
|
+
!!v.length && /* @__PURE__ */ t.jsx(
|
25187
25188
|
aw,
|
25188
25189
|
{
|
25189
25190
|
filterConfig: {
|
25190
|
-
selectedTags:
|
25191
|
+
selectedTags: v
|
25191
25192
|
},
|
25192
25193
|
onRemoveFilter: Ce,
|
25193
25194
|
clearFilters: W,
|
@@ -25213,7 +25214,7 @@ const LL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25213
25214
|
pluginList: g,
|
25214
25215
|
totalCount: C,
|
25215
25216
|
handleDataUpdateForPluginResponse: Se,
|
25216
|
-
filters:
|
25217
|
+
filters: S,
|
25217
25218
|
handlePluginSelection: le,
|
25218
25219
|
selectedPluginsMap: i,
|
25219
25220
|
isSelectable: o,
|
@@ -25670,8 +25671,8 @@ function tD({
|
|
25670
25671
|
}, x = d.current?.getBoundingClientRect().height ?? 0, g = d.current?.getBoundingClientRect().width ?? 0;
|
25671
25672
|
switch (h) {
|
25672
25673
|
case Fr.PARENT_BOTTOM_CENTER: {
|
25673
|
-
const f = (E.width - g) / 2, C = E.top > 0 ? E.top : c,
|
25674
|
-
return { x: f, y:
|
25674
|
+
const f = (E.width - g) / 2, C = E.top > 0 ? E.top : c, S = (E.height > l.height ? l.height - C : E.height) - x - o;
|
25675
|
+
return { x: f, y: S };
|
25675
25676
|
}
|
25676
25677
|
case Fr.SCREEN_BOTTOM_RIGHT: {
|
25677
25678
|
const f = l.width - E.left - g - o, C = l.height - E.top - x - o;
|
@@ -25988,10 +25989,10 @@ const nD = ({
|
|
25988
25989
|
getRows: x,
|
25989
25990
|
totalRows: g
|
25990
25991
|
}) => {
|
25991
|
-
const f = F(null), C = F(null), N = F(null),
|
25992
|
+
const f = F(null), C = F(null), N = F(null), S = F(null), [T, A] = w(null), [R, b] = w(!1), {
|
25992
25993
|
BulkActionsComponent: I,
|
25993
25994
|
bulkActionsData: y = null,
|
25994
|
-
BulkOperationModal:
|
25995
|
+
BulkOperationModal: v,
|
25995
25996
|
bulkOperationModalData: j = null
|
25996
25997
|
} = c ?? {}, { showSeparatorBetweenRows: P = !0 } = o ?? {}, { sortBy: O, sortOrder: D, handleSorting: k, pageSize: G, offset: V, changePage: Q, changePageSize: te } = e ?? {}, Se = !!c, {
|
25997
25998
|
selectedIdentifiers: Ie = {},
|
@@ -26029,7 +26030,7 @@ const nD = ({
|
|
26029
26030
|
const Qe = (pe) => () => {
|
26030
26031
|
k(pe);
|
26031
26032
|
}, Le = (pe) => {
|
26032
|
-
pe && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && pe.dataset.active === "true" && (pe.focus({ preventScroll: !0 }), cD(pe, f.current,
|
26033
|
+
pe && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && pe.dataset.active === "true" && (pe.focus({ preventScroll: !0 }), cD(pe, f.current, S.current?.offsetHeight), pe.dataset.active = "false");
|
26033
26034
|
}, lt = () => {
|
26034
26035
|
A(null);
|
26035
26036
|
}, ft = () => W && s ? h : Object.values(Ie), ht = () => i ? tr.map((pe) => /* @__PURE__ */ t.jsxs(
|
@@ -26133,7 +26134,7 @@ const nD = ({
|
|
26133
26134
|
/* @__PURE__ */ t.jsx(
|
26134
26135
|
"div",
|
26135
26136
|
{
|
26136
|
-
ref:
|
26137
|
+
ref: S,
|
26137
26138
|
className: "bg__primary dc__min-width-fit-content px-20 border__secondary--bottom dc__position-sticky dc__zi-2 dc__top-0 generic-table__header",
|
26138
26139
|
children: i ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-12 dc__gap-16", children: [
|
26139
26140
|
Se ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
@@ -26229,7 +26230,7 @@ const nD = ({
|
|
26229
26230
|
}
|
26230
26231
|
),
|
26231
26232
|
T && /* @__PURE__ */ t.jsx(
|
26232
|
-
|
26233
|
+
v,
|
26233
26234
|
{
|
26234
26235
|
action: T,
|
26235
26236
|
onClose: lt,
|
@@ -26263,7 +26264,7 @@ const nD = ({
|
|
26263
26264
|
handleToggleBulkSelectionOnRow: f,
|
26264
26265
|
paginationVariant: C,
|
26265
26266
|
RowActionsOnHoverComponent: N,
|
26266
|
-
pageSizeOptions:
|
26267
|
+
pageSizeOptions: S,
|
26267
26268
|
clearFilters: T
|
26268
26269
|
}) => {
|
26269
26270
|
const {
|
@@ -26273,7 +26274,7 @@ const nD = ({
|
|
26273
26274
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
26274
26275
|
handleSorting: I,
|
26275
26276
|
pageSize: y,
|
26276
|
-
offset:
|
26277
|
+
offset: v,
|
26277
26278
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
26278
26279
|
changePage: j,
|
26279
26280
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
@@ -26324,13 +26325,13 @@ const nD = ({
|
|
26324
26325
|
const { rows: ae, totalRows: Ae } = await a(s, V);
|
26325
26326
|
return J = Ae, { filteredRows: ae, totalRows: J };
|
26326
26327
|
}, V),
|
26327
|
-
[b, A, R, a,
|
26328
|
+
[b, A, R, a, v, y, JSON.stringify(G), p],
|
26328
26329
|
!!a,
|
26329
26330
|
{ resetOnChange: !1 }
|
26330
26331
|
), ge = Ce || !!Pt(se), ie = !Pt(se) && !ge ? se : null, z = a ? ge : Ie, Ee = a ? le : W, Ne = a ? ie : ce, Qe = a ? de : fe, { filteredRows: Le, totalRows: lt } = Ee ?? { filteredRows: [], totalRows: 0 }, ft = z || Ne === YL, ht = X(() => {
|
26331
26332
|
const J = Le ?? [];
|
26332
|
-
return C !== Qn.PAGINATED ? J : J.slice(
|
26333
|
-
}, [C,
|
26333
|
+
return C !== Qn.PAGINATED ? J : J.slice(v, v + y);
|
26334
|
+
}, [C, v, y, Le]);
|
26334
26335
|
M(() => {
|
26335
26336
|
te?.(
|
26336
26337
|
ht.reduce((J, ae) => (J[ae.id] = ae, J), {})
|
@@ -26358,7 +26359,7 @@ const nD = ({
|
|
26358
26359
|
additionalProps: l,
|
26359
26360
|
bulkSelectionConfig: E,
|
26360
26361
|
loading: h,
|
26361
|
-
pageSizeOptions:
|
26362
|
+
pageSizeOptions: S,
|
26362
26363
|
rows: n,
|
26363
26364
|
stylesConfig: _,
|
26364
26365
|
getRows: a,
|
@@ -26374,7 +26375,7 @@ const nD = ({
|
|
26374
26375
|
filteredRows: Le,
|
26375
26376
|
handleSearch: k,
|
26376
26377
|
updateSearchParams: xe,
|
26377
|
-
offset:
|
26378
|
+
offset: v,
|
26378
26379
|
searchKey: b,
|
26379
26380
|
sortBy: A,
|
26380
26381
|
sortOrder: R,
|
@@ -26812,7 +26813,7 @@ const nD = ({
|
|
26812
26813
|
}).forEach((k) => {
|
26813
26814
|
O[k] = !0;
|
26814
26815
|
}), O;
|
26815
|
-
}, [E, x] = w(null), g = F({}), [f, C] = w(h), N = s ? n : f,
|
26816
|
+
}, [E, x] = w(null), g = F({}), [f, C] = w(h), N = s ? n : f, S = c === "navigation" ? -1 : 0;
|
26816
26817
|
M(() => {
|
26817
26818
|
if (_) {
|
26818
26819
|
const O = lu({
|
@@ -26865,7 +26866,7 @@ const nD = ({
|
|
26865
26866
|
}
|
26866
26867
|
}, y = (O, D) => {
|
26867
26868
|
D.onClick?.(O), o?.(D);
|
26868
|
-
},
|
26869
|
+
}, v = (O) => (D) => {
|
26869
26870
|
y(D, O);
|
26870
26871
|
}, j = (O) => (D) => {
|
26871
26872
|
O.href === p && D.preventDefault(), y(D, O);
|
@@ -26890,7 +26891,7 @@ const nD = ({
|
|
26890
26891
|
to: O.clearQueryParamsOnNavigation ? { pathname: O.href, search: "" } : O.href,
|
26891
26892
|
className: V,
|
26892
26893
|
onClick: j(O),
|
26893
|
-
tabIndex: G ? 0 :
|
26894
|
+
tabIndex: G ? 0 : S,
|
26894
26895
|
"data-node-id": O.id,
|
26895
26896
|
"data-testid": `tree-view-item-${O.title}`,
|
26896
26897
|
ref: d ? d(O.id) : R(O.id),
|
@@ -26906,8 +26907,8 @@ const nD = ({
|
|
26906
26907
|
type: "button",
|
26907
26908
|
disabled: O.isDisabled,
|
26908
26909
|
className: V,
|
26909
|
-
onClick:
|
26910
|
-
tabIndex: G ? 0 :
|
26910
|
+
onClick: v(O),
|
26911
|
+
tabIndex: G ? 0 : S,
|
26911
26912
|
"data-node-id": O.id,
|
26912
26913
|
ref: d ? d(O.id) : R(O.id),
|
26913
26914
|
"data-testid": `tree-view-item-${O.title}`,
|
@@ -26966,7 +26967,7 @@ const nD = ({
|
|
26966
26967
|
type: "button",
|
26967
26968
|
className: "tree-view__container--item dc__transparent p-0-imp flexbox dc__align-start flex-grow-1 dc__select-text",
|
26968
26969
|
onClick: T(O),
|
26969
|
-
tabIndex:
|
26970
|
+
tabIndex: S,
|
26970
26971
|
"data-node-id": O.id,
|
26971
26972
|
"data-testid": `tree-view-heading-${O.title}`,
|
26972
26973
|
ref: d ? d(O.id) : R(O.id),
|
@@ -27380,7 +27381,7 @@ const nD = ({
|
|
27380
27381
|
return;
|
27381
27382
|
}
|
27382
27383
|
n(o?.appWorkflowId || 0), p();
|
27383
|
-
},
|
27384
|
+
}, S = (b) => {
|
27384
27385
|
if (!(b.currentTarget instanceof HTMLDivElement) || "key" in b && b.key !== "Enter")
|
27385
27386
|
return;
|
27386
27387
|
b.stopPropagation();
|
@@ -27413,7 +27414,7 @@ const nD = ({
|
|
27413
27414
|
AD,
|
27414
27415
|
{
|
27415
27416
|
...y,
|
27416
|
-
onCardAction:
|
27417
|
+
onCardAction: S,
|
27417
27418
|
disableInfo: T(y.type)
|
27418
27419
|
}
|
27419
27420
|
)) })
|
@@ -28782,7 +28783,7 @@ const cP = (e) => {
|
|
28782
28783
|
}
|
28783
28784
|
}, N = () => {
|
28784
28785
|
m(hn.WRITE);
|
28785
|
-
},
|
28786
|
+
}, S = (T) => {
|
28786
28787
|
m(T);
|
28787
28788
|
};
|
28788
28789
|
if (u === "empty") {
|
@@ -28866,7 +28867,7 @@ const cP = (e) => {
|
|
28866
28867
|
minEditorHeight: i,
|
28867
28868
|
minPreviewHeight: 150,
|
28868
28869
|
selectedTab: u,
|
28869
|
-
onTabChange:
|
28870
|
+
onTabChange: S,
|
28870
28871
|
generateMarkdownPreview: (T) => Promise.resolve(
|
28871
28872
|
/* @__PURE__ */ t.jsx(Eu, { markdown: T || aP, breaks: !0 })
|
28872
28873
|
),
|
@@ -28953,30 +28954,30 @@ const V_ = ({
|
|
28953
28954
|
forceReInit: m,
|
28954
28955
|
isSuperAdmin: p
|
28955
28956
|
}) => {
|
28956
|
-
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [C, N] = w(n ? n.comment : ""), [
|
28957
|
+
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [C, N] = w(n ? n.comment : ""), [S, T] = w(!1), [A, R] = w(!1), [b, I] = w(a || []), [y, v] = w(""), [j, P] = w([]), [O, D] = w([]), [k, G] = w([]), [V, Q] = w(""), [te, Se] = w(""), [Ie, W] = w(!1);
|
28957
28958
|
M(() => {
|
28958
28959
|
ce();
|
28959
28960
|
}, [a, n, c]), M(() => {
|
28960
28961
|
f(o || []);
|
28961
28962
|
}, [o]);
|
28962
28963
|
const ce = () => {
|
28963
|
-
(m || !
|
28964
|
+
(m || !S) && (h(a || []), x(n ? n.comment : ""), N(n ? n.comment : ""), I(a || []), T(!1));
|
28964
28965
|
}, fe = () => {
|
28965
|
-
T(!
|
28966
|
+
T(!S), typeof d == "function" && d(s);
|
28966
28967
|
}, Ce = ($) => {
|
28967
28968
|
const J = $.target.value;
|
28968
28969
|
J?.length > 500 ? Q("comment length cannot exceed 500 characters") : Q(""), N(J);
|
28969
28970
|
}, le = () => {
|
28970
|
-
I(_), N(E), P([]), D([]), G([]), fe(), R(!1),
|
28971
|
+
I(_), N(E), P([]), D([]), G([]), fe(), R(!1), v("");
|
28971
28972
|
}, se = ($) => {
|
28972
28973
|
if ($.length == 0 || $.length >= 128 || $[0] == "." || $[0] == "-")
|
28973
|
-
return
|
28974
|
-
|
28974
|
+
return v("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
28975
|
+
v("");
|
28975
28976
|
const J = g.includes($);
|
28976
28977
|
let ae = !1;
|
28977
28978
|
for (let Ae = 0; Ae < b?.length; Ae++)
|
28978
28979
|
b[Ae].tagName.toLowerCase() === $ && (ae = !0);
|
28979
|
-
return $ === cl.value || $ === cl.value ? (
|
28980
|
+
return $ === cl.value || $ === cl.value ? (v('Label name cannot be "latest" or "active"'), !1) : J || ae ? (v("This label is already being used in this application"), !1) : !0;
|
28980
28981
|
}, de = ($) => {
|
28981
28982
|
const J = $.toLowerCase().trim();
|
28982
28983
|
if (se(J)) {
|
@@ -29042,7 +29043,7 @@ const V_ = ({
|
|
29042
29043
|
appId: 0,
|
29043
29044
|
artifactId: 0
|
29044
29045
|
}));
|
29045
|
-
i && i(ae.result?.appReleaseTags), l && l(ae.result?.tagsEditable), h(Ae), x(ae.result?.imageComment?.comment), I(Ae), N(ae.result?.imageComment?.comment), P([]), D([]), G([]), fe(), R(!1),
|
29046
|
+
i && i(ae.result?.appReleaseTags), l && l(ae.result?.tagsEditable), h(Ae), x(ae.result?.imageComment?.comment), I(Ae), N(ae.result?.imageComment?.comment), P([]), D([]), G([]), fe(), R(!1), v(""), r && r(s, Ae, ae.result?.imageComment);
|
29046
29047
|
}).catch((ae) => {
|
29047
29048
|
ae.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ke.showToast({
|
29048
29049
|
variant: be.error,
|
@@ -29067,7 +29068,7 @@ const V_ = ({
|
|
29067
29068
|
/* @__PURE__ */ t.jsx("li", { children: "Labels cannot be deleted once saved. Although, you can soft delete a label if an unwanted label has been added." })
|
29068
29069
|
] })
|
29069
29070
|
] }), Le = F(null);
|
29070
|
-
if (C === "" && b.length === 0 && !
|
29071
|
+
if (C === "" && b.length === 0 && !S)
|
29071
29072
|
return c ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 flexbox", children: /* @__PURE__ */ t.jsx(dP, { handleEditClick: fe }) }) : /* @__PURE__ */ t.jsx("div", {});
|
29072
29073
|
const lt = ($) => {
|
29073
29074
|
$.key === "Enter" && $.target.value.trim() && de($.target.value.trim());
|
@@ -29079,7 +29080,7 @@ const V_ = ({
|
|
29079
29080
|
let $ = j;
|
29080
29081
|
te.trim() && ($ = de(te)), Ee($);
|
29081
29082
|
};
|
29082
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children:
|
29083
|
+
return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: S && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
|
29083
29084
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
|
29084
29085
|
/* @__PURE__ */ t.jsx("div", { children: "Image labels (eg. v1.0)" }),
|
29085
29086
|
Ne()
|
@@ -29124,7 +29125,7 @@ const V_ = ({
|
|
29124
29125
|
{
|
29125
29126
|
text: $?.tagName,
|
29126
29127
|
isSoftDeleted: $?.deleted,
|
29127
|
-
isEditing:
|
29128
|
+
isEditing: S,
|
29128
29129
|
onSoftDeleteClick: (ae) => {
|
29129
29130
|
ye(ae), ge(J);
|
29130
29131
|
},
|
@@ -29194,7 +29195,7 @@ const V_ = ({
|
|
29194
29195
|
{
|
29195
29196
|
text: $?.tagName,
|
29196
29197
|
isSoftDeleted: $?.deleted,
|
29197
|
-
isEditing:
|
29198
|
+
isEditing: S,
|
29198
29199
|
onSoftDeleteClick: (ae) => {
|
29199
29200
|
ye(ae), ge(J);
|
29200
29201
|
},
|
@@ -29465,7 +29466,7 @@ const xP = (e) => {
|
|
29465
29466
|
const I = A.target.value.trim();
|
29466
29467
|
g(I);
|
29467
29468
|
}
|
29468
|
-
},
|
29469
|
+
}, S = (A = null) => {
|
29469
29470
|
a.ref && (a.ref.current = A), _.current = A;
|
29470
29471
|
}, T = (A) => {
|
29471
29472
|
(A.key === "Escape" || A.key === "Esc") && _.current?.blur();
|
@@ -29487,7 +29488,7 @@ const xP = (e) => {
|
|
29487
29488
|
className: `search-bar__input dc__position-abs w-100 h-100 br-4 dc__no-border pt-6 pr-10 pb-6 pl-30 fs-13 lh-20 fw-4 cn-9 placeholder-cn5 dc__left-0 ${m || !m && u ? "pr-30" : "pr-10"} ${l ? "dc__no-background" : "bg__secondary"}`,
|
29488
29489
|
onChange: C,
|
29489
29490
|
onKeyDown: N,
|
29490
|
-
ref:
|
29491
|
+
ref: S,
|
29491
29492
|
onKeyUp: T
|
29492
29493
|
}
|
29493
29494
|
),
|
@@ -29631,7 +29632,7 @@ const kn = ({
|
|
29631
29632
|
p(b), R.target.name = c, R.target.value = b, s(R);
|
29632
29633
|
}
|
29633
29634
|
if (!e) return null;
|
29634
|
-
const { button: N, body:
|
29635
|
+
const { button: N, body: S, optionLength: T, AsyncComponent: A } = Ve.Children.toArray(e).reduce(
|
29635
29636
|
(R, b) => (b.type === q_ ? R.button = b : b.type === X_ ? R.AsyncComponent = b : ((b.type === K_ || b.type === z_) && (R.optionLength += 1), R.body.push(b)), R),
|
29636
29637
|
{ button: null, body: [], optionLength: 0, AsyncComponent: null }
|
29637
29638
|
);
|
@@ -29665,7 +29666,7 @@ const kn = ({
|
|
29665
29666
|
_ && A,
|
29666
29667
|
/* @__PURE__ */ t.jsx(Ot.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children: g ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
29667
29668
|
T === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
|
29668
|
-
|
29669
|
+
S
|
29669
29670
|
] }) })
|
29670
29671
|
] })
|
29671
29672
|
}
|