@devtron-labs/devtron-fe-common-lib 1.18.1-pre-4 → 1.18.1-pre-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-B7xrS4xD.js → @code-editor-BzeAa_a8.js} +596 -594
- package/dist/{@common-rjsf-Cc6MSgIQ.js → @common-rjsf-B6-zgtfh.js} +1 -1
- package/dist/Shared/Components/Chip/Chip.component.d.ts +1 -1
- package/dist/Shared/Components/Chip/types.d.ts +7 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
@@ -2466,40 +2466,41 @@ const Bs = {
|
|
2466
2466
|
}, wm = ({
|
2467
2467
|
label: e,
|
2468
2468
|
startIconProps: s,
|
2469
|
-
|
2470
|
-
|
2471
|
-
|
2472
|
-
|
2473
|
-
|
2474
|
-
|
2475
|
-
|
2476
|
-
|
2469
|
+
startIcon: n,
|
2470
|
+
size: a = L.xs,
|
2471
|
+
value: r,
|
2472
|
+
onRemove: o,
|
2473
|
+
style: i = "neutral",
|
2474
|
+
type: c = "non-interactive",
|
2475
|
+
onClick: l,
|
2476
|
+
capitalizeLabel: d = !1,
|
2477
|
+
href: u
|
2477
2478
|
}) => {
|
2478
|
-
const
|
2479
|
-
|
2480
|
-
(
|
2479
|
+
const m = oS(a), p = nS(m), _ = aS(m), h = rS(m), E = () => s ? /* @__PURE__ */ t.jsx(F, { ...s, size: p }) : n ?? null, x = (C = !0) => /* @__PURE__ */ t.jsxs("div", { className: `flex dc__gap-4 ${_} dc__no-shrink dc__mxw-120`, children: [
|
2480
|
+
i === "error" && C && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size: p }),
|
2481
|
+
(i === "neutral" || i === "error" && !C) && E(),
|
2481
2482
|
/* @__PURE__ */ t.jsx(J, { content: e, children: /* @__PURE__ */ t.jsx(
|
2482
2483
|
"span",
|
2483
2484
|
{
|
2484
|
-
className: `${
|
2485
|
+
className: `${h} ${d ? "dc__capitalize" : ""} cn-9 ${C ? "fw-4" : "fw-6"} dc__open-sans dc__truncate`,
|
2485
2486
|
children: e
|
2486
2487
|
}
|
2487
2488
|
) })
|
2488
|
-
] }),
|
2489
|
+
] }), g = () => (
|
2489
2490
|
// NOTE: always render label and value in a fragment or an element to ensure consistent structure
|
2490
2491
|
/* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2491
|
-
|
2492
|
-
|
2493
|
-
|
2494
|
-
/* @__PURE__ */ t.jsx(J, { content:
|
2492
|
+
x(!r),
|
2493
|
+
r && /* @__PURE__ */ t.jsxs("div", { className: `flex border__secondary--left dc__gap-4 ${_}`, children: [
|
2494
|
+
i === "error" && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size: p }),
|
2495
|
+
/* @__PURE__ */ t.jsx(J, { content: r, children: /* @__PURE__ */ t.jsx("span", { className: `${h} cn-9 fw-4 dc__open-sans dc__truncate`, children: r }) })
|
2495
2496
|
] })
|
2496
2497
|
] })
|
2497
|
-
),
|
2498
|
-
|
2498
|
+
), f = (C) => {
|
2499
|
+
C.stopPropagation(), o(C);
|
2499
2500
|
};
|
2500
|
-
return /* @__PURE__ */ t.jsxs(iS, { style:
|
2501
|
-
|
2502
|
-
|
2501
|
+
return /* @__PURE__ */ t.jsxs(iS, { style: i, type: c, onClick: l, href: u, size: m, children: [
|
2502
|
+
g(),
|
2503
|
+
o && /* @__PURE__ */ t.jsx(
|
2503
2504
|
H,
|
2504
2505
|
{
|
2505
2506
|
variant: z.borderLess,
|
@@ -2508,27 +2509,27 @@ const Bs = {
|
|
2508
2509
|
showAriaLabelInTippy: !1,
|
2509
2510
|
ariaLabel: "Remove filter",
|
2510
2511
|
icon: /* @__PURE__ */ t.jsx(F, { name: "ic-close-small", color: null }),
|
2511
|
-
size:
|
2512
|
-
onClick:
|
2512
|
+
size: m,
|
2513
|
+
onClick: f,
|
2513
2514
|
buttonProps: {
|
2514
|
-
onMouseDown: (
|
2515
|
-
|
2515
|
+
onMouseDown: (C) => {
|
2516
|
+
C.preventDefault(), C.stopPropagation();
|
2516
2517
|
}
|
2517
2518
|
}
|
2518
2519
|
}
|
2519
2520
|
),
|
2520
|
-
|
2521
|
+
c === "link" && /* @__PURE__ */ t.jsx(
|
2521
2522
|
H,
|
2522
2523
|
{
|
2523
2524
|
component: ut.link,
|
2524
|
-
linkProps: { to:
|
2525
|
+
linkProps: { to: u },
|
2525
2526
|
variant: z.borderLess,
|
2526
2527
|
style: oe.neutral,
|
2527
2528
|
dataTestId: "chip__visit-link",
|
2528
2529
|
showAriaLabelInTippy: !1,
|
2529
2530
|
ariaLabel: "Visit link",
|
2530
2531
|
icon: /* @__PURE__ */ t.jsx(F, { name: "ic-arrow-square-out", color: null }),
|
2531
|
-
size:
|
2532
|
+
size: m
|
2532
2533
|
}
|
2533
2534
|
)
|
2534
2535
|
] });
|
@@ -3024,16 +3025,17 @@ const ul = (e) => {
|
|
3024
3025
|
}) => {
|
3025
3026
|
const {
|
3026
3027
|
data: n,
|
3027
|
-
|
3028
|
-
|
3028
|
+
isMulti: a,
|
3029
|
+
removeProps: { onClick: r }
|
3030
|
+
} = s, o = e?.(n) ?? !0, { startIcon: i, endIcon: c } = n, l = (i || c) ?? null, d = () => l && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink ${a ? "icon-dim-16" : "icon-dim-20"} flex dc__fill-available-space`, children: l });
|
3029
3031
|
return /* @__PURE__ */ t.jsx(
|
3030
3032
|
wm,
|
3031
3033
|
{
|
3032
3034
|
label: String(n.label),
|
3033
|
-
style:
|
3035
|
+
style: o ? "neutral" : "error",
|
3034
3036
|
size: L.xs,
|
3035
|
-
|
3036
|
-
onRemove:
|
3037
|
+
startIcon: d(),
|
3038
|
+
onRemove: r
|
3037
3039
|
}
|
3038
3040
|
);
|
3039
3041
|
}, bS = ({
|
@@ -3242,8 +3244,8 @@ const ul = (e) => {
|
|
3242
3244
|
multiSelectProps: x = {},
|
3243
3245
|
isMulti: g,
|
3244
3246
|
name: f,
|
3245
|
-
classNamePrefix:
|
3246
|
-
shouldRenderCustomOptions:
|
3247
|
+
classNamePrefix: C,
|
3248
|
+
shouldRenderCustomOptions: N = !1,
|
3247
3249
|
isSearchable: S,
|
3248
3250
|
selectRef: b,
|
3249
3251
|
shouldMenuAlignRight: A = !1,
|
@@ -3282,7 +3284,7 @@ const ul = (e) => {
|
|
3282
3284
|
isGroupHeadingSelectable: he = !1,
|
3283
3285
|
getIsOptionValid: ue = () => !0,
|
3284
3286
|
customDisplayText: Me = null
|
3285
|
-
} = x, We = re && !Me, ft = !g && i, ls = !
|
3287
|
+
} = x, We = re && !Me, ft = !g && i, ls = !N && S, cn = j ?? !g, La = X(
|
3286
3288
|
() => mS({
|
3287
3289
|
error: e,
|
3288
3290
|
size: c,
|
@@ -3379,7 +3381,7 @@ const ul = (e) => {
|
|
3379
3381
|
group: () => "select-picker__group"
|
3380
3382
|
},
|
3381
3383
|
name: f || Ae,
|
3382
|
-
classNamePrefix:
|
3384
|
+
classNamePrefix: C || Ae,
|
3383
3385
|
isSearchable: ls,
|
3384
3386
|
placeholder: r,
|
3385
3387
|
styles: La,
|
@@ -3388,7 +3390,7 @@ const ul = (e) => {
|
|
3388
3390
|
menuShouldScrollIntoView: !0,
|
3389
3391
|
backspaceRemovesValue: g && We,
|
3390
3392
|
hideSelectedOptions: !1,
|
3391
|
-
shouldRenderCustomOptions:
|
3393
|
+
shouldRenderCustomOptions: N || !1,
|
3392
3394
|
isMulti: g,
|
3393
3395
|
ref: ne,
|
3394
3396
|
components: {
|
@@ -3454,12 +3456,12 @@ const ul = (e) => {
|
|
3454
3456
|
[x]
|
3455
3457
|
), f = () => {
|
3456
3458
|
l(!0);
|
3457
|
-
},
|
3459
|
+
}, C = () => {
|
3458
3460
|
m(), l(!1), r?.();
|
3459
|
-
},
|
3461
|
+
}, N = (A) => {
|
3460
3462
|
u(), _(structuredClone(A));
|
3461
3463
|
}, S = (A) => {
|
3462
|
-
s(p), m(), !A || A.isTrusted ?
|
3464
|
+
s(p), m(), !A || A.isTrusted ? C() : setTimeout(() => {
|
3463
3465
|
i.current.focus();
|
3464
3466
|
}, 100);
|
3465
3467
|
}, b = () => {
|
@@ -3478,7 +3480,7 @@ const ul = (e) => {
|
|
3478
3480
|
menuIsOpen: c,
|
3479
3481
|
onMenuOpen: f,
|
3480
3482
|
onMenuClose: b,
|
3481
|
-
onChange:
|
3483
|
+
onChange: N,
|
3482
3484
|
menuListFooterConfig: {
|
3483
3485
|
type: "button",
|
3484
3486
|
buttonProps: {
|
@@ -3527,11 +3529,11 @@ const ul = (e) => {
|
|
3527
3529
|
endIconButtonConfig: x,
|
3528
3530
|
labelTippyCustomizedConfig: g,
|
3529
3531
|
labelTooltipConfig: f,
|
3530
|
-
inputRef:
|
3531
|
-
hideFormFieldInfo:
|
3532
|
+
inputRef: C,
|
3533
|
+
hideFormFieldInfo: N,
|
3532
3534
|
...S
|
3533
3535
|
}) => {
|
3534
|
-
const b = $(null), A =
|
3536
|
+
const b = $(null), A = C || b;
|
3535
3537
|
M(() => {
|
3536
3538
|
setTimeout(() => {
|
3537
3539
|
A.current && E && A.current.focus();
|
@@ -3564,7 +3566,7 @@ const ul = (e) => {
|
|
3564
3566
|
borderRadiusConfig: _,
|
3565
3567
|
labelTippyCustomizedConfig: g,
|
3566
3568
|
labelTooltipConfig: f,
|
3567
|
-
hideFormFieldInfo:
|
3569
|
+
hideFormFieldInfo: N,
|
3568
3570
|
children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
3569
3571
|
/* @__PURE__ */ t.jsx(
|
3570
3572
|
"input",
|
@@ -3814,24 +3816,24 @@ const ul = (e) => {
|
|
3814
3816
|
onTriggerKeyDown: c,
|
3815
3817
|
disableClose: l = !1
|
3816
3818
|
}) => {
|
3817
|
-
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E, x] = w(null), [g, f] = w(!1),
|
3819
|
+
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E, x] = w(null), [g, f] = w(!1), C = a === "auto", N = $(null), S = $(null), b = $(null), A = (j) => {
|
3818
3820
|
u(j), o?.(j);
|
3819
3821
|
}, R = () => {
|
3820
3822
|
A(!d);
|
3821
3823
|
}, T = () => {
|
3822
3824
|
if (l)
|
3823
3825
|
return;
|
3824
|
-
A(!1),
|
3826
|
+
A(!1), N.current?.querySelector("button")?.blur(), N.current?.blur();
|
3825
3827
|
}, I = (j) => {
|
3826
3828
|
!d && (j.key === "Enter" || j.key === " ") && (j.preventDefault(), A(!0)), c?.(j, d, T);
|
3827
3829
|
}, y = (j) => i?.(j, d, T), v = () => {
|
3828
3830
|
T();
|
3829
3831
|
};
|
3830
3832
|
return ki(() => {
|
3831
|
-
if (!d || !g || !
|
3833
|
+
if (!d || !g || !N.current || !S.current || !b.current)
|
3832
3834
|
return;
|
3833
3835
|
const j = () => {
|
3834
|
-
const O =
|
3836
|
+
const O = N.current.getBoundingClientRect(), D = S.current.getBoundingClientRect(), { fallbackPosition: k, fallbackAlignment: B } = LS({
|
3835
3837
|
position: s,
|
3836
3838
|
alignment: n,
|
3837
3839
|
triggerRect: O,
|
@@ -3856,7 +3858,7 @@ const ul = (e) => {
|
|
3856
3858
|
}, [d, s, n, g]), {
|
3857
3859
|
open: d,
|
3858
3860
|
triggerProps: {
|
3859
|
-
ref:
|
3861
|
+
ref: N,
|
3860
3862
|
onClick: R,
|
3861
3863
|
onKeyDown: I,
|
3862
3864
|
"aria-haspopup": "listbox",
|
@@ -3875,10 +3877,10 @@ const ul = (e) => {
|
|
3875
3877
|
id: e,
|
3876
3878
|
ref: S,
|
3877
3879
|
role: "listbox",
|
3878
|
-
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 ${
|
3880
|
+
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" : ""}`,
|
3879
3881
|
onKeyDown: y,
|
3880
3882
|
style: {
|
3881
|
-
width:
|
3883
|
+
width: C ? void 0 : `${a}px`,
|
3882
3884
|
...OS({ position: m }),
|
3883
3885
|
...jS({ position: m, alignment: _ })
|
3884
3886
|
},
|
@@ -4087,7 +4089,7 @@ const ul = (e) => {
|
|
4087
4089
|
onChange: _,
|
4088
4090
|
autoFocus: h = !1
|
4089
4091
|
}) => {
|
4090
|
-
const E = $(Lt()), g = a ? d ? "mixed" : !0 : !1, f = g === "mixed",
|
4092
|
+
const E = $(Lt()), g = a ? d ? "mixed" : !0 : !1, f = g === "mixed", C = ev({ isChecked: a, shape: o, size: u, indeterminate: d, isLoading: n }), N = () => /* @__PURE__ */ t.jsx(
|
4091
4093
|
"span",
|
4092
4094
|
{
|
4093
4095
|
className: `flexbox flex-grow-1 ${!n && f ? "dc__align-items-center" : ""} ${tv({ shape: o, isLoading: n })}`,
|
@@ -4096,7 +4098,7 @@ const ul = (e) => {
|
|
4096
4098
|
{
|
4097
4099
|
transition: { ease: "easeInOut", duration: 0.2 },
|
4098
4100
|
animate: {
|
4099
|
-
x:
|
4101
|
+
x: C
|
4100
4102
|
},
|
4101
4103
|
className: "flexbox dc__fill-available-space",
|
4102
4104
|
children: /* @__PURE__ */ t.jsx(F, { name: "ic-circle-loader", color: FS[i], size: null })
|
@@ -4106,7 +4108,7 @@ const ul = (e) => {
|
|
4106
4108
|
{
|
4107
4109
|
transition: { ease: "easeInOut", duration: 0.2 },
|
4108
4110
|
animate: {
|
4109
|
-
x:
|
4111
|
+
x: C
|
4110
4112
|
},
|
4111
4113
|
className: ZS({ shape: o, size: u, showIndeterminateIcon: f }),
|
4112
4114
|
children: l && !f && /* @__PURE__ */ t.jsx("span", { className: "icon-dim-12 flex dc__fill-available-space dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
@@ -4166,7 +4168,7 @@ const ul = (e) => {
|
|
4166
4168
|
isLoading: n
|
4167
4169
|
})
|
4168
4170
|
},
|
4169
|
-
children:
|
4171
|
+
children: N()
|
4170
4172
|
}
|
4171
4173
|
)
|
4172
4174
|
]
|
@@ -4228,10 +4230,10 @@ const ul = (e) => {
|
|
4228
4230
|
componentType: h = "button"
|
4229
4231
|
} = e, { isEnterprise: E } = Ss(), x = (R) => {
|
4230
4232
|
n && R && R.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
4231
|
-
}, g = p === "negative", f = `w-100 flex left top dc__gap-8 py-6 px-8 ${_ ? "dc__disabled" : "cursor"}`,
|
4233
|
+
}, g = p === "negative", f = `w-100 flex left top dc__gap-8 py-6 px-8 ${_ ? "dc__disabled" : "cursor"}`, C = (R) => {
|
4232
4234
|
_ || a(e, R);
|
4233
|
-
},
|
4234
|
-
|
4235
|
+
}, N = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(F, { ...R, color: R.color || (g ? "R500" : "N800") }) }), S = () => u ? /* @__PURE__ */ t.jsx(di, { ...u, variant: p }) : null, b = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
4236
|
+
N(d),
|
4235
4237
|
/* @__PURE__ */ t.jsxs("span", { className: "flex-grow-1", children: [
|
4236
4238
|
/* @__PURE__ */ t.jsx(J, { 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 }) }),
|
4237
4239
|
c && (typeof c == "string" ? /* @__PURE__ */ t.jsx(
|
@@ -4254,7 +4256,7 @@ const ul = (e) => {
|
|
4254
4256
|
href: $m({ isEnterprise: E, link: e.href }),
|
4255
4257
|
target: "_blank",
|
4256
4258
|
rel: "noreferrer",
|
4257
|
-
onClick:
|
4259
|
+
onClick: C,
|
4258
4260
|
"aria-disabled": _,
|
4259
4261
|
children: b()
|
4260
4262
|
}
|
@@ -4266,7 +4268,7 @@ const ul = (e) => {
|
|
4266
4268
|
ref: s,
|
4267
4269
|
className: f,
|
4268
4270
|
to: e.to,
|
4269
|
-
onClick:
|
4271
|
+
onClick: C,
|
4270
4272
|
"aria-disabled": _,
|
4271
4273
|
children: b()
|
4272
4274
|
}
|
@@ -4279,7 +4281,7 @@ const ul = (e) => {
|
|
4279
4281
|
ref: s,
|
4280
4282
|
type: "button",
|
4281
4283
|
className: `dc__transparent ${f}`,
|
4282
|
-
onClick:
|
4284
|
+
onClick: C,
|
4283
4285
|
disabled: _,
|
4284
4286
|
children: b()
|
4285
4287
|
}
|
@@ -4365,7 +4367,7 @@ const ul = (e) => {
|
|
4365
4367
|
}
|
4366
4368
|
}, g = (R, T) => {
|
4367
4369
|
!T && (R.key === "Enter" || R.key === " ") && l(0);
|
4368
|
-
}, { open: f, closePopover:
|
4370
|
+
}, { open: f, closePopover: C, overlayProps: N, popoverProps: S, triggerProps: b, scrollableRef: A } = ac({
|
4369
4371
|
id: e,
|
4370
4372
|
position: s,
|
4371
4373
|
alignment: n,
|
@@ -4383,10 +4385,10 @@ const ul = (e) => {
|
|
4383
4385
|
focusedIndex: c,
|
4384
4386
|
itemsRef: _,
|
4385
4387
|
triggerProps: b,
|
4386
|
-
overlayProps:
|
4388
|
+
overlayProps: N,
|
4387
4389
|
popoverProps: S,
|
4388
4390
|
setFocusedIndex: l,
|
4389
|
-
closePopover:
|
4391
|
+
closePopover: C,
|
4390
4392
|
searchTerm: d,
|
4391
4393
|
handleSearch: h,
|
4392
4394
|
scrollableRef: A
|
@@ -4413,8 +4415,8 @@ const ul = (e) => {
|
|
4413
4415
|
overlayProps: x,
|
4414
4416
|
popoverProps: g,
|
4415
4417
|
focusedIndex: f,
|
4416
|
-
searchTerm:
|
4417
|
-
handleSearch:
|
4418
|
+
searchTerm: C,
|
4419
|
+
handleSearch: N,
|
4418
4420
|
itemsRef: S,
|
4419
4421
|
setFocusedIndex: b,
|
4420
4422
|
closePopover: A,
|
@@ -4449,9 +4451,9 @@ const ul = (e) => {
|
|
4449
4451
|
yn,
|
4450
4452
|
{
|
4451
4453
|
name: "action-menu-search-box",
|
4452
|
-
value:
|
4454
|
+
value: C,
|
4453
4455
|
placeholder: "Search",
|
4454
|
-
onChange:
|
4456
|
+
onChange: N,
|
4455
4457
|
fullWidth: !0,
|
4456
4458
|
autoFocus: !0
|
4457
4459
|
}
|
@@ -4561,27 +4563,27 @@ const ul = (e) => {
|
|
4561
4563
|
u(e?.value || "");
|
4562
4564
|
}, [e]);
|
4563
4565
|
const p = (f) => {
|
4564
|
-
Object.values(c || {}).forEach((
|
4565
|
-
const
|
4566
|
-
|
4566
|
+
Object.values(c || {}).forEach((C) => {
|
4567
|
+
const N = C?.current;
|
4568
|
+
N && (N.style.height = `${f}px`);
|
4567
4569
|
});
|
4568
4570
|
}, _ = (f) => {
|
4569
|
-
const
|
4570
|
-
|
4571
|
+
const C = i?.current;
|
4572
|
+
C && (C.style.height = `${f}px`), p(f);
|
4571
4573
|
};
|
4572
4574
|
fo(() => {
|
4573
4575
|
_(r || 0);
|
4574
4576
|
let f = i?.current?.scrollHeight || 0;
|
4575
|
-
c && Object.values(c).forEach((
|
4576
|
-
const
|
4577
|
-
|
4577
|
+
c && Object.values(c).forEach((C) => {
|
4578
|
+
const N = C.current;
|
4579
|
+
N && N.scrollHeight > f && (f = N.scrollHeight);
|
4578
4580
|
}), r && f < r && (f = r), o && f > o && (f = o), _(f);
|
4579
4581
|
}, 500, [d]);
|
4580
|
-
const E = (f, { action:
|
4581
|
-
|
4582
|
+
const E = (f, { action: C }) => {
|
4583
|
+
C === na.inputChange ? (u(f), f || a?.(null, {
|
4582
4584
|
action: "remove-value",
|
4583
4585
|
removedValue: e
|
4584
|
-
})) :
|
4586
|
+
})) : C === na.inputBlur && u(e?.value || "");
|
4585
4587
|
}, x = (f) => {
|
4586
4588
|
a?.(
|
4587
4589
|
{ label: f, value: f },
|
@@ -4590,13 +4592,13 @@ const ul = (e) => {
|
|
4590
4592
|
}, g = (f) => {
|
4591
4593
|
if (f.key === "Enter" && f.shiftKey) {
|
4592
4594
|
f.preventDefault();
|
4593
|
-
const { selectionStart:
|
4594
|
-
${d.slice(
|
4595
|
+
const { selectionStart: C, selectionEnd: N } = m.current.inputRef, S = `${d.slice(0, C)}
|
4596
|
+
${d.slice(N)}`;
|
4595
4597
|
u(S);
|
4596
4598
|
const b = m.current.inputRef, A = b.selectionStart, T = b.value.substring(0, A).split(`
|
4597
4599
|
`), I = parseInt(getComputedStyle(b).lineHeight, 10), v = T.length * I - b.scrollTop;
|
4598
4600
|
v < 0 ? b.scrollTop += v : v > b.offsetHeight - I && (b.scrollTop += v - b.offsetHeight + I), setTimeout(() => {
|
4599
|
-
m.current.inputRef.selectionStart =
|
4601
|
+
m.current.inputRef.selectionStart = C + 1, m.current.inputRef.selectionEnd = C + 1;
|
4600
4602
|
});
|
4601
4603
|
return;
|
4602
4604
|
}
|
@@ -4656,7 +4658,7 @@ ${d.slice(C)}`;
|
|
4656
4658
|
}, E = X(() => (Object.values(o)?.map((f) => ({
|
4657
4659
|
label: f.name,
|
4658
4660
|
value: String(f.conversionFactor)
|
4659
|
-
})) ?? []).sort((f,
|
4661
|
+
})) ?? []).sort((f, C) => Number(f.value) - Number(C.value)), [o]), x = X(
|
4660
4662
|
() => E.find((g) => g.label === c),
|
4661
4663
|
[E, c]
|
4662
4664
|
);
|
@@ -4841,18 +4843,18 @@ ${d.slice(C)}`;
|
|
4841
4843
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
4842
4844
|
return e;
|
4843
4845
|
}, rc = (e) => {
|
4844
|
-
const s = $(null), [n, a] = w(!1), r = e.theme === xa.white, o = (
|
4845
|
-
|
4846
|
-
}, i = (
|
4847
|
-
s.current =
|
4848
|
-
}, c = (
|
4849
|
-
e.disableClose || (ye(
|
4850
|
-
}, l = (
|
4846
|
+
const s = $(null), [n, a] = w(!1), r = e.theme === xa.white, o = (C) => {
|
4847
|
+
C.keyCode === 27 && c(C);
|
4848
|
+
}, i = (C) => {
|
4849
|
+
s.current = C, document.addEventListener("keydown", o);
|
4850
|
+
}, c = (C) => {
|
4851
|
+
e.disableClose || (ye(C), s.current?.hide && (s.current.hide(), s.current = null, e.onClose && e.onClose()), a(!1), document.removeEventListener("keydown", o));
|
4852
|
+
}, l = (C) => {
|
4851
4853
|
a(uD);
|
4852
4854
|
}, d = () => {
|
4853
4855
|
const {
|
4854
|
-
Icon:
|
4855
|
-
iconPath:
|
4856
|
+
Icon: C,
|
4857
|
+
iconPath: N,
|
4856
4858
|
iconClass: S,
|
4857
4859
|
iconSize: b,
|
4858
4860
|
onImageLoadError: A,
|
@@ -4874,15 +4876,15 @@ ${d.slice(C)}`;
|
|
4874
4876
|
{
|
4875
4877
|
className: `dc__word-break dc__hyphens-auto flex dc__align-start left ${r ? `p-12 cn-9 ${e.noHeadingBorder ? "" : "border__secondary-translucent--bottom"}` : "pt-20 pb-12 pr-20 pl-20 cn-0 top"}`,
|
4876
4878
|
children: [
|
4877
|
-
|
4879
|
+
N ? /* @__PURE__ */ t.jsx(
|
4878
4880
|
"img",
|
4879
4881
|
{
|
4880
4882
|
className: `icon-dim-${b || 20} mr-6 ${S || ""}`,
|
4881
|
-
src:
|
4883
|
+
src: N,
|
4882
4884
|
alt: "Heading",
|
4883
4885
|
onError: A
|
4884
4886
|
}
|
4885
|
-
) :
|
4887
|
+
) : C && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${b || 20} mr-6`, children: /* @__PURE__ */ t.jsx(C, { className: `icon-dim-${b || 20} ${S || ""}` }) }),
|
4886
4888
|
R && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: R }),
|
4887
4889
|
T && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(Wr, { className: "icon-dim-20" }) }),
|
4888
4890
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
@@ -4944,7 +4946,7 @@ ${d.slice(C)}`;
|
|
4944
4946
|
content: d(),
|
4945
4947
|
trigger: E || "mouseenter",
|
4946
4948
|
onMount: i,
|
4947
|
-
onClickOutside: (
|
4949
|
+
onClickOutside: (C, N) => c(N),
|
4948
4950
|
showOnCreate: h || !1,
|
4949
4951
|
animation: x || "fade",
|
4950
4952
|
duration: g || 300,
|
@@ -5451,8 +5453,8 @@ const TV = (e, s = !1) => {
|
|
5451
5453
|
}), p(Tv(r)));
|
5452
5454
|
}, [i, o]);
|
5453
5455
|
const E = (f) => {
|
5454
|
-
const
|
5455
|
-
return
|
5456
|
+
const C = Object.keys(f || {}), N = Object.keys(i?.profile?.configurations || {});
|
5457
|
+
return C.concat(N).reduce((S, b) => (S[b] = !0, S), {});
|
5456
5458
|
};
|
5457
5459
|
return {
|
5458
5460
|
isLoading: o,
|
@@ -5461,26 +5463,26 @@ const TV = (e, s = !1) => {
|
|
5461
5463
|
reloadRequest: l,
|
5462
5464
|
profileInput: d,
|
5463
5465
|
profileInputErrors: m,
|
5464
|
-
handleProfileInputChange: ({ action: f, data:
|
5465
|
-
const
|
5466
|
+
handleProfileInputChange: ({ action: f, data: C }) => {
|
5467
|
+
const N = structuredClone(d), S = structuredClone(m), b = C && "targetPlatform" in C && Object.hasOwn(C, "targetPlatform") ? C.targetPlatform : "", A = N.configurations[b], R = structuredClone(
|
5466
5468
|
i.profile.configurations[b] || A
|
5467
5469
|
);
|
5468
5470
|
switch (f) {
|
5469
5471
|
case Jt.DESCRIPTION: {
|
5470
|
-
const { value: T } =
|
5471
|
-
|
5472
|
+
const { value: T } = C;
|
5473
|
+
N.description = T, S[Jt.DESCRIPTION] = gv(T).message;
|
5472
5474
|
break;
|
5473
5475
|
}
|
5474
5476
|
case Jt.NAME: {
|
5475
|
-
const { value: T } =
|
5476
|
-
|
5477
|
+
const { value: T } = C;
|
5478
|
+
N.name = T, S[Jt.NAME] = hv(T).message;
|
5477
5479
|
break;
|
5478
5480
|
}
|
5479
5481
|
case U.CPU_LIMIT:
|
5480
5482
|
case U.CPU_REQUEST:
|
5481
5483
|
case U.MEMORY_LIMIT:
|
5482
5484
|
case U.MEMORY_REQUEST: {
|
5483
|
-
const { value: T, unit: I } =
|
5485
|
+
const { value: T, unit: I } = C;
|
5484
5486
|
A[f] = {
|
5485
5487
|
...A[f],
|
5486
5488
|
key: f,
|
@@ -5510,7 +5512,7 @@ const TV = (e, s = !1) => {
|
|
5510
5512
|
break;
|
5511
5513
|
}
|
5512
5514
|
case U.BUILD_TIMEOUT: {
|
5513
|
-
const { value: T, unit: I } =
|
5515
|
+
const { value: T, unit: I } = C;
|
5514
5516
|
A[f] = {
|
5515
5517
|
...A[f],
|
5516
5518
|
key: f,
|
@@ -5552,7 +5554,7 @@ const TV = (e, s = !1) => {
|
|
5552
5554
|
case "activate_cs":
|
5553
5555
|
case "de_activate_cm":
|
5554
5556
|
case "de_activate_cs": {
|
5555
|
-
const { id: T, componentType: I } =
|
5557
|
+
const { id: T, componentType: I } = C, y = rt[I], v = A[y].value, j = v.findIndex((O) => O.id === T);
|
5556
5558
|
if (j === -1 || !v[j].canOverride) {
|
5557
5559
|
const O = "Unable to customize this CM/CS";
|
5558
5560
|
Ve.showToast({
|
@@ -5571,34 +5573,34 @@ const TV = (e, s = !1) => {
|
|
5571
5573
|
break;
|
5572
5574
|
}
|
5573
5575
|
case At.ADD_TARGET_PLATFORM: {
|
5574
|
-
const { handleCaptureSnapshot: T } =
|
5576
|
+
const { handleCaptureSnapshot: T } = C;
|
5575
5577
|
S[oa.TARGET_PLATFORM] = b ? gl(
|
5576
5578
|
b,
|
5577
|
-
E(
|
5578
|
-
).message : "",
|
5579
|
+
E(N.configurations)
|
5580
|
+
).message : "", N.configurations[b] = i.fallbackPlatformConfigurationMap[b] || // Here need to update target platform name for each configuration
|
5579
5581
|
Object.entries(
|
5580
5582
|
i.fallbackPlatformConfigurationMap[hs]
|
5581
5583
|
).reduce((I, [y, v]) => (I[y] = {
|
5582
5584
|
...v,
|
5583
5585
|
targetPlatform: b
|
5584
|
-
}, I), {}), T(
|
5586
|
+
}, I), {}), T(N);
|
5585
5587
|
break;
|
5586
5588
|
}
|
5587
5589
|
case At.REMOVE_TARGET_PLATFORM: {
|
5588
|
-
if (!
|
5590
|
+
if (!N.configurations[b]) {
|
5589
5591
|
Ve.showToast({
|
5590
5592
|
variant: ve.error,
|
5591
5593
|
description: "Platform does not exist"
|
5592
5594
|
}), Cn(new Error("Platform does not exist"));
|
5593
5595
|
return;
|
5594
5596
|
}
|
5595
|
-
delete
|
5597
|
+
delete N.configurations[b], Object.keys(S).forEach((T) => {
|
5596
5598
|
ol[T] && (S[T] = null);
|
5597
5599
|
});
|
5598
5600
|
break;
|
5599
5601
|
}
|
5600
5602
|
case At.RENAME_TARGET_PLATFORM: {
|
5601
|
-
const { originalPlatformName: T, newPlatformName: I, configSnapshot: y } =
|
5603
|
+
const { originalPlatformName: T, newPlatformName: I, configSnapshot: y } = C, v = N.configurations[T];
|
5602
5604
|
if (T === I)
|
5603
5605
|
return;
|
5604
5606
|
if (!v) {
|
@@ -5610,11 +5612,11 @@ const TV = (e, s = !1) => {
|
|
5610
5612
|
}
|
5611
5613
|
S[oa.TARGET_PLATFORM] = gl(
|
5612
5614
|
I,
|
5613
|
-
E(
|
5615
|
+
E(N.configurations)
|
5614
5616
|
).message;
|
5615
5617
|
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
|
5616
5618
|
i.fallbackPlatformConfigurationMap[hs];
|
5617
|
-
if (
|
5619
|
+
if (N.configurations[I] = Object.entries(
|
5618
5620
|
v
|
5619
5621
|
).reduce(
|
5620
5622
|
(P, [O, D]) => {
|
@@ -5628,15 +5630,15 @@ const TV = (e, s = !1) => {
|
|
5628
5630
|
},
|
5629
5631
|
{}
|
5630
5632
|
), y[T]) {
|
5631
|
-
|
5633
|
+
N.configurations[T] = y[T];
|
5632
5634
|
break;
|
5633
5635
|
}
|
5634
|
-
delete
|
5636
|
+
delete N.configurations[T];
|
5635
5637
|
break;
|
5636
5638
|
}
|
5637
5639
|
case At.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
|
5638
|
-
const { configSnapshot: T } =
|
5639
|
-
|
5640
|
+
const { configSnapshot: T } = C;
|
5641
|
+
N.configurations = T, Object.keys(S).forEach((I) => {
|
5640
5642
|
ol[I] && (S[I] = null);
|
5641
5643
|
});
|
5642
5644
|
break;
|
@@ -5655,7 +5657,7 @@ const TV = (e, s = !1) => {
|
|
5655
5657
|
case At.DELETE_NODE_SELECTOR_ITEM: {
|
5656
5658
|
if (A[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
5657
5659
|
break;
|
5658
|
-
const { id: T } =
|
5660
|
+
const { id: T } = C;
|
5659
5661
|
A[U.NODE_SELECTOR].value = A[U.NODE_SELECTOR].value.filter((y) => y.id !== T), delete S[U.NODE_SELECTOR]?.[T], Object.keys(S[U.NODE_SELECTOR] || {}).length === 0 && (S[U.NODE_SELECTOR] = null);
|
5660
5662
|
const I = A[U.NODE_SELECTOR].value.map(
|
5661
5663
|
(y) => y.key
|
@@ -5672,7 +5674,7 @@ const TV = (e, s = !1) => {
|
|
5672
5674
|
case At.EDIT_NODE_SELECTOR_ITEM: {
|
5673
5675
|
if (A[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
5674
5676
|
break;
|
5675
|
-
const { id: T, key: I, value: y } =
|
5677
|
+
const { id: T, key: I, value: y } = C, v = A[U.NODE_SELECTOR].value.find(
|
5676
5678
|
(P) => P.id === T
|
5677
5679
|
);
|
5678
5680
|
v ? (v.key = I, v.value = y) : A[U.NODE_SELECTOR].value.unshift({
|
@@ -5708,14 +5710,14 @@ const TV = (e, s = !1) => {
|
|
5708
5710
|
case At.DELETE_TOLERANCE_ITEM: {
|
5709
5711
|
if (A[U.TOLERANCE].key !== U.TOLERANCE)
|
5710
5712
|
break;
|
5711
|
-
const { id: T } =
|
5713
|
+
const { id: T } = C;
|
5712
5714
|
A[U.TOLERANCE].value = A[U.TOLERANCE].value.filter((I) => I.id !== T), delete S[U.TOLERANCE]?.[T], Object.keys(S[U.TOLERANCE] || {}).length === 0 && (S[U.TOLERANCE] = null);
|
5713
5715
|
break;
|
5714
5716
|
}
|
5715
5717
|
case At.EDIT_TOLERANCE_ITEM: {
|
5716
5718
|
if (A[U.TOLERANCE].key !== U.TOLERANCE)
|
5717
5719
|
break;
|
5718
|
-
const { id: T, key: I, effect: y, operator: v, value: j } =
|
5720
|
+
const { id: T, key: I, effect: y, operator: v, value: j } = C, P = A[U.TOLERANCE].value.find(
|
5719
5721
|
(G) => G.id === T
|
5720
5722
|
);
|
5721
5723
|
P ? (P.key = I, P.effect = y, P.operator = v, P.value = j, v === ks.EXISTS && delete P.value) : A[U.TOLERANCE].value.unshift({
|
@@ -5733,7 +5735,7 @@ const TV = (e, s = !1) => {
|
|
5733
5735
|
break;
|
5734
5736
|
}
|
5735
5737
|
case At.ADD_CM_CS_ITEM: {
|
5736
|
-
const { id: T, infraConfigType: I } =
|
5738
|
+
const { id: T, infraConfigType: I } = C, v = {
|
5737
5739
|
useFormProps: Ac({
|
5738
5740
|
configMapSecretData: null,
|
5739
5741
|
componentType: Om[I],
|
@@ -5752,7 +5754,7 @@ const TV = (e, s = !1) => {
|
|
5752
5754
|
break;
|
5753
5755
|
}
|
5754
5756
|
case At.SYNC_CM_CS_ITEM: {
|
5755
|
-
const { id: T, value: I, hasError: y, componentType: v } =
|
5757
|
+
const { id: T, value: I, hasError: y, componentType: v } = C, j = A[rt[v]].value.findIndex((O) => O.id === T);
|
5756
5758
|
if (j === -1) {
|
5757
5759
|
Ve.showToast({
|
5758
5760
|
variant: ve.error,
|
@@ -5766,17 +5768,17 @@ const TV = (e, s = !1) => {
|
|
5766
5768
|
break;
|
5767
5769
|
}
|
5768
5770
|
case At.DELETE_CM_CS_ITEM: {
|
5769
|
-
const { id: T, componentType: I } =
|
5771
|
+
const { id: T, componentType: I } = C, y = A[rt[I]].value.filter((v) => v.id !== T);
|
5770
5772
|
A[rt[I]].value = y, S[rt[I]] && (delete S[rt[I]][T], Object.keys(S[rt[I]]).length === 0 && (S[rt[I]] = null));
|
5771
5773
|
break;
|
5772
5774
|
}
|
5773
5775
|
}
|
5774
|
-
u(
|
5776
|
+
u(N), p(S);
|
5775
5777
|
},
|
5776
5778
|
loadingActionRequest: _,
|
5777
5779
|
handleSubmit: async (f) => {
|
5778
5780
|
if (f?.preventDefault(), Object.keys(m).filter(
|
5779
|
-
(
|
5781
|
+
(N) => m[N] !== null && m[N] !== void 0
|
5780
5782
|
).length > 0) {
|
5781
5783
|
Ve.showToast({
|
5782
5784
|
variant: ve.error,
|
@@ -5794,8 +5796,8 @@ const TV = (e, s = !1) => {
|
|
5794
5796
|
variant: ve.success,
|
5795
5797
|
description: ct.getSubmitSuccessMessage(d.name, s)
|
5796
5798
|
}), n ? n() : l();
|
5797
|
-
} catch (
|
5798
|
-
Le(
|
5799
|
+
} catch (N) {
|
5800
|
+
Le(N), h(!1);
|
5799
5801
|
}
|
5800
5802
|
}
|
5801
5803
|
};
|
@@ -6127,7 +6129,7 @@ const Cl = {
|
|
6127
6129
|
showAnimationOnBar: c = !1,
|
6128
6130
|
isLoading: l
|
6129
6131
|
}) => {
|
6130
|
-
const d = l ? [Cl] : s, u = d.reduce((f,
|
6132
|
+
const d = l ? [Cl] : s, u = d.reduce((f, C) => C.value + f, 0), m = d.filter((f) => !!f.value), p = (f) => `${f / u * 100}%`, _ = (f) => l ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-120" }) : /* @__PURE__ */ t.jsx("span", { className: r, "data-testid": `segmented-bar-chart-${f}-label`, children: f }), h = (f, C) => l ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-64 lh-1-5 h-24" }) : /* @__PURE__ */ t.jsx("span", { className: a, "data-testid": `segmented-bar-chart-${C}-value`, children: o ? `${f}/${u}` : f }), E = () => o ? m.map((f, C) => (
|
6131
6133
|
// eslint-disable-next-line react/no-array-index-key
|
6132
6134
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${l ? "dc__gap-10" : ""}`, children: [
|
6133
6135
|
h(f.value, f.label),
|
@@ -6135,14 +6137,14 @@ const Cl = {
|
|
6135
6137
|
!l && /* @__PURE__ */ t.jsx("span", { style: { backgroundColor: f.color }, className: "h-12 dc__border-radius-2 w-4" }),
|
6136
6138
|
_(f.label)
|
6137
6139
|
] })
|
6138
|
-
] },
|
6139
|
-
)) : d.map((f,
|
6140
|
+
] }, C)
|
6141
|
+
)) : d.map((f, C) => (
|
6140
6142
|
// eslint-disable-next-line react/no-array-index-key
|
6141
6143
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-items-center", children: [
|
6142
6144
|
!l && /* @__PURE__ */ t.jsx("div", { className: "dot", style: { backgroundColor: f.color, width: "10px", height: "10px" } }),
|
6143
6145
|
h(f.value, f.label),
|
6144
6146
|
_(f.label)
|
6145
|
-
] },
|
6147
|
+
] }, C)
|
6146
6148
|
)), x = () => e ? null : /* @__PURE__ */ t.jsx("div", { className: `flexbox flex-wrap dc__row-gap-4 ${o ? "dc__gap-24" : "dc__gap-16"}`, children: E() }), g = () => /* @__PURE__ */ t.jsx(
|
6147
6149
|
ke.div,
|
6148
6150
|
{
|
@@ -6152,13 +6154,13 @@ const Cl = {
|
|
6152
6154
|
transition: { duration: 0.6 }
|
6153
6155
|
} : {},
|
6154
6156
|
className: "flexbox dc__gap-2",
|
6155
|
-
children: m.map((f,
|
6157
|
+
children: m.map((f, C, N) => /* @__PURE__ */ t.jsx(
|
6156
6158
|
"div",
|
6157
6159
|
{
|
6158
|
-
className: `h-8 ${
|
6160
|
+
className: `h-8 ${C === 0 ? "dc__left-radius-4" : ""} ${C === N.length - 1 ? "dc__right-radius-4" : ""} ${l ? "shimmer" : ""}`,
|
6159
6161
|
style: { backgroundColor: f.color, width: p(f.value) }
|
6160
6162
|
},
|
6161
|
-
|
6163
|
+
C
|
6162
6164
|
))
|
6163
6165
|
}
|
6164
6166
|
);
|
@@ -7111,44 +7113,44 @@ const jI = (e, s) => {
|
|
7111
7113
|
children: r
|
7112
7114
|
}) => {
|
7113
7115
|
const o = $(!1), i = $({}), c = $(/* @__PURE__ */ new Set()), l = $(-1), d = s ?? OI, u = Fe(
|
7114
|
-
({ keys: f, callback:
|
7116
|
+
({ keys: f, callback: C, description: N = "" }) => {
|
7115
7117
|
const { keys: S, id: b } = Ba(f);
|
7116
|
-
if (typeof
|
7118
|
+
if (typeof C != "function")
|
7117
7119
|
throw new Error("callback provided is not a function");
|
7118
7120
|
const A = i.current[b] && qu(i.current[b].keys, f) ? i.current[b] : null;
|
7119
7121
|
if (A) {
|
7120
|
-
Va(A.callbackStack), A.callbackStack.push(
|
7122
|
+
Va(A.callbackStack), A.callbackStack.push(C);
|
7121
7123
|
return;
|
7122
7124
|
}
|
7123
|
-
i.current[b] = { keys: S, callbackStack: [
|
7125
|
+
i.current[b] = { keys: S, callbackStack: [C], description: N };
|
7124
7126
|
},
|
7125
7127
|
[]
|
7126
7128
|
), m = Fe((f) => {
|
7127
|
-
const { id:
|
7128
|
-
if (!i.current[
|
7129
|
+
const { id: C } = Ba(f);
|
7130
|
+
if (!i.current[C])
|
7129
7131
|
return;
|
7130
|
-
const { callbackStack:
|
7131
|
-
Va(
|
7132
|
+
const { callbackStack: N } = i.current[C];
|
7133
|
+
Va(N), N.pop(), N.length || delete i.current[C];
|
7132
7134
|
}, []), p = Fe((f) => {
|
7133
7135
|
o.current = f;
|
7134
7136
|
}, []), _ = Fe((f) => {
|
7135
|
-
const { id:
|
7136
|
-
if (!i.current[
|
7137
|
+
const { id: C } = Ba(f);
|
7138
|
+
if (!i.current[C])
|
7137
7139
|
return;
|
7138
|
-
const { callbackStack:
|
7139
|
-
Va(
|
7140
|
+
const { callbackStack: N } = i.current[C];
|
7141
|
+
Va(N), N[N.length - 1]();
|
7140
7142
|
}, []), h = Fe(() => {
|
7141
7143
|
if (!c.current.size)
|
7142
7144
|
return;
|
7143
7145
|
const { id: f } = Ba(Array.from(c.current.values()));
|
7144
7146
|
if (i.current[f]) {
|
7145
|
-
const { callbackStack:
|
7146
|
-
Va(
|
7147
|
+
const { callbackStack: C } = i.current[f];
|
7148
|
+
Va(C), C[C.length - 1]();
|
7147
7149
|
}
|
7148
7150
|
c.current.clear(), l.current > -1 && (clearTimeout(l.current), l.current = -1);
|
7149
7151
|
}, []), E = Fe((f) => {
|
7150
7152
|
// NOTE: in case of custom events generated by password managers autofill, the event.key is not set
|
7151
|
-
!f.key || d.map((
|
7153
|
+
!f.key || d.map((C) => C.toUpperCase()).indexOf(f.target.tagName?.toUpperCase()) > -1 || f.target?.role === "textbox" || o.current || (n && f.preventDefault(), c.current.add(f.key.toUpperCase()), f.ctrlKey && c.current.add("CONTROL"), f.metaKey && c.current.add("META"), f.altKey && c.current.add("ALT"), f.shiftKey && c.current.add("SHIFT"), l.current === -1 && (l.current = setTimeout(() => {
|
7152
7154
|
h();
|
7153
7155
|
}, a ?? wI)));
|
7154
7156
|
}, []), x = Fe(() => {
|
@@ -7284,11 +7286,11 @@ const jI = (e, s) => {
|
|
7284
7286
|
}, [d]), g = m * (p - 1), f = (y, v) => {
|
7285
7287
|
const j = { search: y };
|
7286
7288
|
(v.redirectionMethod ?? a) === "push" ? i.push(j) : i.replace(j);
|
7287
|
-
},
|
7289
|
+
}, C = (y, v, j = {}) => {
|
7288
7290
|
d.set(y, String(v)), f(d.toString(), j);
|
7289
|
-
},
|
7291
|
+
}, N = (y = {}) => {
|
7290
7292
|
if (p !== xn) {
|
7291
|
-
|
7293
|
+
C(Io, xn, y);
|
7292
7294
|
return;
|
7293
7295
|
}
|
7294
7296
|
f(d.toString(), y);
|
@@ -7296,21 +7298,21 @@ const jI = (e, s) => {
|
|
7296
7298
|
return {
|
7297
7299
|
pageSize: m,
|
7298
7300
|
changePage: (y) => {
|
7299
|
-
|
7301
|
+
C(Io, y);
|
7300
7302
|
},
|
7301
7303
|
changePageSize: (y) => {
|
7302
|
-
|
7304
|
+
C(Rl, y), N();
|
7303
7305
|
},
|
7304
7306
|
searchKey: _,
|
7305
7307
|
handleSearch: (y) => {
|
7306
|
-
|
7308
|
+
C(yl, y), N();
|
7307
7309
|
},
|
7308
7310
|
offset: g,
|
7309
7311
|
sortBy: h,
|
7310
7312
|
sortOrder: E,
|
7311
7313
|
handleSorting: (y) => {
|
7312
7314
|
let v;
|
7313
|
-
y === h && E === Te.ASC ? v = Te.DESC : v = Te.ASC,
|
7315
|
+
y === h && E === Te.ASC ? v = Te.DESC : v = Te.ASC, C(jl, y), C(Ol, v), N();
|
7314
7316
|
},
|
7315
7317
|
clearFilters: () => {
|
7316
7318
|
f("", {}), n && localStorage.removeItem(n);
|
@@ -7321,7 +7323,7 @@ const jI = (e, s) => {
|
|
7321
7323
|
tm.includes(y[j]) ? d.delete(j) : Array.isArray(y[j]) ? (d.delete(j), y[j].forEach((P) => {
|
7322
7324
|
d.append(j, P);
|
7323
7325
|
})) : d.set(j, y[j]);
|
7324
|
-
}), Al(n, JSON.stringify(u(d))),
|
7326
|
+
}), Al(n, JSON.stringify(u(d))), N(v);
|
7325
7327
|
},
|
7326
7328
|
areFiltersApplied: !!_ || DI(x)
|
7327
7329
|
};
|
@@ -7491,8 +7493,8 @@ const sp = {
|
|
7491
7493
|
isOpacityHoverChild: x = !1,
|
7492
7494
|
triggerAutoClickTimestamp: g,
|
7493
7495
|
...f
|
7494
|
-
},
|
7495
|
-
const [
|
7496
|
+
}, C) => {
|
7497
|
+
const [N, S] = w(!1), b = $(), A = $(null), R = l || d, T = `dc__no-shrink flex dc__fill-available-space ${FI({
|
7496
7498
|
size: a,
|
7497
7499
|
icon: p
|
7498
7500
|
})}`;
|
@@ -7515,10 +7517,10 @@ const sp = {
|
|
7515
7517
|
return /* @__PURE__ */ t.jsx(J, { ...y(), children: /* @__PURE__ */ t.jsx("div", { className: `dc__inline-block flex ${E ? "w-100" : "dc__w-fit-content"}`, children: /* @__PURE__ */ t.jsxs(
|
7516
7518
|
GI,
|
7517
7519
|
{
|
7518
|
-
ref:
|
7520
|
+
ref: C,
|
7519
7521
|
...f,
|
7520
7522
|
disabled: R,
|
7521
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${VI({ size: a, variant: n, style: r, isLoading: d, icon: p, isAutoTriggerActive:
|
7523
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${VI({ size: a, variant: n, style: r, isLoading: d, icon: p, isAutoTriggerActive: N, fontWeight: o })} ${R ? "dc__disabled" : ""} ${E ? "w-100" : ""}`,
|
7522
7524
|
"data-testid": e,
|
7523
7525
|
"aria-label": _ || (d ? s : void 0),
|
7524
7526
|
elementRef: A,
|
@@ -8336,20 +8338,20 @@ const uA = ({
|
|
8336
8338
|
}), o;
|
8337
8339
|
}, IG = ({ migrateUserPreferences: e, recentlyVisitedFetchConfig: s }) => {
|
8338
8340
|
const [n, a] = w(null), [r, o] = w(null), { id: i, name: c, resourceKind: l, isDataAvailable: d } = s ?? {}, { handleThemeSwitcherDialogVisibilityChange: u, handleThemePreferenceChange: m } = An(), p = async () => {
|
8339
|
-
const
|
8341
|
+
const N = await fA({
|
8340
8342
|
id: i,
|
8341
8343
|
name: c,
|
8342
8344
|
resourceKind: l,
|
8343
8345
|
updateLocalStorage: !0,
|
8344
8346
|
shouldThrowError: !1
|
8345
8347
|
});
|
8346
|
-
return a(
|
8348
|
+
return a(N), N;
|
8347
8349
|
}, [_, h] = vt(
|
8348
8350
|
() => p(),
|
8349
8351
|
[i, c],
|
8350
8352
|
d && !!l
|
8351
|
-
), E = h?.resources?.[l]?.[Ta.RECENTLY_VISITED] || [], x = (
|
8352
|
-
|
8353
|
+
), E = h?.resources?.[l]?.[Ta.RECENTLY_VISITED] || [], x = (N) => {
|
8354
|
+
N?.themePreference ? N?.themePreference && m(N.themePreference) : u(!0), a(N);
|
8353
8355
|
};
|
8354
8356
|
return {
|
8355
8357
|
userPreferences: n,
|
@@ -8357,26 +8359,26 @@ const uA = ({
|
|
8357
8359
|
handleFetchUserPreferences: async () => {
|
8358
8360
|
try {
|
8359
8361
|
o(null);
|
8360
|
-
const
|
8362
|
+
const N = await Er();
|
8361
8363
|
if (e) {
|
8362
|
-
const S = await e(
|
8364
|
+
const S = await e(N);
|
8363
8365
|
x(S);
|
8364
8366
|
} else
|
8365
|
-
x(
|
8366
|
-
} catch (
|
8367
|
-
o(
|
8367
|
+
x(N);
|
8368
|
+
} catch (N) {
|
8369
|
+
o(N);
|
8368
8370
|
}
|
8369
8371
|
},
|
8370
|
-
handleUpdatePipelineRBACViewSelectedTab: (
|
8372
|
+
handleUpdatePipelineRBACViewSelectedTab: (N) => {
|
8371
8373
|
a((S) => ({
|
8372
8374
|
...S,
|
8373
|
-
pipelineRBACViewSelectedTab:
|
8375
|
+
pipelineRBACViewSelectedTab: N
|
8374
8376
|
}));
|
8375
8377
|
},
|
8376
|
-
handleUpdateUserThemePreference: (
|
8378
|
+
handleUpdateUserThemePreference: (N) => {
|
8377
8379
|
a((S) => ({
|
8378
8380
|
...S,
|
8379
|
-
themePreference:
|
8381
|
+
themePreference: N
|
8380
8382
|
}));
|
8381
8383
|
},
|
8382
8384
|
fetchRecentlyVisitedParsedEntities: p,
|
@@ -8403,8 +8405,8 @@ const uA = ({
|
|
8403
8405
|
isExternalLink: d,
|
8404
8406
|
isLicenseDashboard: h
|
8405
8407
|
}), g = (f) => {
|
8406
|
-
E && !d && !u && !f.metaKey && !h && x.startsWith(Ea) && (f.preventDefault(), _((
|
8407
|
-
...
|
8408
|
+
E && !d && !u && !f.metaKey && !h && x.startsWith(Ea) && (f.preventDefault(), _((C) => ({
|
8409
|
+
...C,
|
8408
8410
|
state: zr.DOCUMENTATION,
|
8409
8411
|
docLink: x,
|
8410
8412
|
reinitialize: !0
|
@@ -8702,14 +8704,14 @@ const bA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8702
8704
|
targetPlatforms: g,
|
8703
8705
|
isDeploymentWithoutApproval: f
|
8704
8706
|
}) => {
|
8705
|
-
const
|
8707
|
+
const C = !!x && (!!qm(s?.approvalConfigData) || !!m?.length || !!_?.promotedFromType || f);
|
8706
8708
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8707
8709
|
e === "deployed-artifact" && /* @__PURE__ */ t.jsxs("div", { className: "flex dc__width-inherit pb-12", children: [
|
8708
8710
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" }),
|
8709
8711
|
/* @__PURE__ */ t.jsx(vu, { className: "icon-dim-16 ml-8 mr-8", style: { transform: "rotate(90deg)" } }),
|
8710
8712
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" })
|
8711
8713
|
] }),
|
8712
|
-
|
8714
|
+
C && x({
|
8713
8715
|
userApprovalMetadata: s,
|
8714
8716
|
triggeredBy: n,
|
8715
8717
|
appliedFilters: m,
|
@@ -8721,7 +8723,7 @@ const bA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8721
8723
|
/* @__PURE__ */ t.jsxs(
|
8722
8724
|
"div",
|
8723
8725
|
{
|
8724
|
-
className: `dc__h-fit-content ci-artifact image-tag-parent-card bg__primary br-4 dc__border p-12 w-100 dc__mxw-800 ci-artifact--${e} ${
|
8726
|
+
className: `dc__h-fit-content ci-artifact image-tag-parent-card bg__primary br-4 dc__border p-12 w-100 dc__mxw-800 ci-artifact--${e} ${C ? "dc__no-top-radius dc__no-top-border" : ""}`,
|
8725
8727
|
"data-testid": "hover-on-report-artifact",
|
8726
8728
|
children: [
|
8727
8729
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-12", children: [
|
@@ -8768,17 +8770,17 @@ const bA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8768
8770
|
}) => {
|
8769
8771
|
const { isSuperAdmin: x } = Qm(), { handleDownload: g } = eA({
|
8770
8772
|
shouldOpenInNewTab: !0
|
8771
|
-
}), { triggerId: f, buildId:
|
8773
|
+
}), { triggerId: f, buildId: C } = Dt(), N = e.toLowerCase();
|
8772
8774
|
async function S() {
|
8773
8775
|
await g({
|
8774
8776
|
downloadUrl: r,
|
8775
|
-
fileName: `${
|
8777
|
+
fileName: `${C || f}.zip`
|
8776
8778
|
});
|
8777
8779
|
}
|
8778
|
-
if (
|
8780
|
+
if (N === De.RUNNING || N === De.STARTING || N === De.WAITING_TO_START)
|
8779
8781
|
return /* @__PURE__ */ t.jsx(UA, {});
|
8780
8782
|
if (!a && !i) {
|
8781
|
-
if (
|
8783
|
+
if (N === De.FAILED || N === De.CANCELLED || N === De.ERROR || N === De.TIMED_OUT)
|
8782
8784
|
return /* @__PURE__ */ t.jsx(
|
8783
8785
|
Xe,
|
8784
8786
|
{
|
@@ -8786,7 +8788,7 @@ const bA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8786
8788
|
subTitle: c ? et.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifactsError : et.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError
|
8787
8789
|
}
|
8788
8790
|
);
|
8789
|
-
if (
|
8791
|
+
if (N === De.SUCCEEDED)
|
8790
8792
|
return /* @__PURE__ */ t.jsx(
|
8791
8793
|
Xe,
|
8792
8794
|
{
|
@@ -9333,7 +9335,7 @@ const FA = (e, s) => {
|
|
9333
9335
|
primaryBranchAfterRegex: c,
|
9334
9336
|
rootClassName: l = ""
|
9335
9337
|
}) => {
|
9336
|
-
const d = e === es.WEBHOOK, u = e === es.BranchRegex || !!o || i, [m, p] = w(""), [_, h] = w(""), [E, x] = w(!!d), [g, f] = w(!1),
|
9338
|
+
const d = e === es.WEBHOOK, u = e === es.BranchRegex || !!o || i, [m, p] = w(""), [_, h] = w(""), [E, x] = w(!!d), [g, f] = w(!1), C = () => {
|
9337
9339
|
if (d) {
|
9338
9340
|
x(!0), f(!1);
|
9339
9341
|
const A = JSON.parse(s);
|
@@ -9353,9 +9355,9 @@ const FA = (e, s) => {
|
|
9353
9355
|
p(s), h(s);
|
9354
9356
|
};
|
9355
9357
|
M(() => {
|
9356
|
-
|
9358
|
+
C();
|
9357
9359
|
}, [s]);
|
9358
|
-
const
|
9360
|
+
const N = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
9359
9361
|
/* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
9360
9362
|
/* @__PURE__ */ t.jsx("div", { className: "fw-6", children: "Regex" }),
|
9361
9363
|
/* @__PURE__ */ t.jsx("p", { children: o })
|
@@ -9378,7 +9380,7 @@ const FA = (e, s) => {
|
|
9378
9380
|
});
|
9379
9381
|
}
|
9380
9382
|
function b() {
|
9381
|
-
u && h(
|
9383
|
+
u && h(N());
|
9382
9384
|
}
|
9383
9385
|
return M(() => {
|
9384
9386
|
S(), b();
|
@@ -10068,7 +10070,7 @@ const IR = (e) => {
|
|
10068
10070
|
const m = async () => {
|
10069
10071
|
try {
|
10070
10072
|
c(!0);
|
10071
|
-
const { appId: x, appType: g, environmentId: f, installedAppId:
|
10073
|
+
const { appId: x, appType: g, environmentId: f, installedAppId: C } = a || {}, N = g === gt.DEVTRON_HELM_CHART ? C : x, S = r || String(N), b = o || String(f);
|
10072
10074
|
await vR({ appId: S, envId: b });
|
10073
10075
|
} catch (x) {
|
10074
10076
|
Le(x);
|
@@ -10278,13 +10280,13 @@ const jR = ({
|
|
10278
10280
|
}) => {
|
10279
10281
|
const u = $r(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Dt(), [E, x] = w(
|
10280
10282
|
e?.toUpperCase() !== q.ABORTED
|
10281
|
-
), g = iR.getAppDetails(), f = $(i),
|
10283
|
+
), g = iR.getAppDetails(), f = $(i), C = $(d), N = f.current && c ? c() : xi(s ?? g?.deploymentAppType), [S, b] = w(N), A = () => {
|
10282
10284
|
Ya && clearTimeout(Ya);
|
10283
10285
|
}, R = () => {
|
10284
10286
|
SR(p, _, !0, h, n, a).then((v) => {
|
10285
10287
|
e !== "Aborted" && T({
|
10286
10288
|
...v.result,
|
10287
|
-
isDeploymentWithoutApproval:
|
10289
|
+
isDeploymentWithoutApproval: C.current
|
10288
10290
|
});
|
10289
10291
|
}).catch(() => {
|
10290
10292
|
x(!1);
|
@@ -10297,7 +10299,7 @@ const jR = ({
|
|
10297
10299
|
}), [a]), M(() => {
|
10298
10300
|
f.current = i;
|
10299
10301
|
}, [i]), M(() => {
|
10300
|
-
|
10302
|
+
C.current = d;
|
10301
10303
|
}, [d]);
|
10302
10304
|
const T = (v) => {
|
10303
10305
|
const j = f.current && c ? c(v) : xi(
|
@@ -10798,7 +10800,7 @@ const Dn = ({
|
|
10798
10800
|
return;
|
10799
10801
|
const { scrollHeight: b, clientHeight: A } = e.dom, R = u.current.clientHeight, I = (S.clientY - p.current) / R;
|
10800
10802
|
e.dom.scrollTo({ top: _.current + I * (b - A) });
|
10801
|
-
},
|
10803
|
+
}, C = () => {
|
10802
10804
|
d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
|
10803
10805
|
};
|
10804
10806
|
M(() => {
|
@@ -10812,10 +10814,10 @@ const Dn = ({
|
|
10812
10814
|
S.removeEventListener("scroll", x);
|
10813
10815
|
}
|
10814
10816
|
};
|
10815
|
-
}, [e]), M(() => (l ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup",
|
10816
|
-
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup",
|
10817
|
+
}, [e]), M(() => (l ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", C)) : (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", C)), () => {
|
10818
|
+
document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", C);
|
10817
10819
|
}), [e, l]);
|
10818
|
-
const
|
10820
|
+
const N = (S) => {
|
10819
10821
|
if (!e.dom || !u.current) return;
|
10820
10822
|
const { clientHeight: b, scrollHeight: A } = e.dom, R = u.current.clientHeight, I = (S.clientY - u.current.getBoundingClientRect().top) / R;
|
10821
10823
|
e.dom.scrollTo({ top: I * (A - b) });
|
@@ -10825,7 +10827,7 @@ const Dn = ({
|
|
10825
10827
|
{
|
10826
10828
|
ref: u,
|
10827
10829
|
className: `code-editor__minimap-container dc__position-rel dc__no-shrink cursor ${h}`,
|
10828
|
-
onClick:
|
10830
|
+
onClick: N,
|
10829
10831
|
children: [
|
10830
10832
|
/* @__PURE__ */ t.jsx(
|
10831
10833
|
"div",
|
@@ -11109,9 +11111,9 @@ const Dn = ({
|
|
11109
11111
|
p({ replace: D.target.value });
|
11110
11112
|
}, f = (D) => {
|
11111
11113
|
D.stopPropagation(), D.key === "Enter" && (D.preventDefault(), a(), Gc(e));
|
11112
|
-
}, N = () => {
|
11113
|
-
vf(e);
|
11114
11114
|
}, C = () => {
|
11115
|
+
vf(e);
|
11116
|
+
}, N = () => {
|
11115
11117
|
a(), Gc(e);
|
11116
11118
|
}, S = () => {
|
11117
11119
|
a(), pu(e);
|
@@ -11247,7 +11249,7 @@ const Dn = ({
|
|
11247
11249
|
variant: z.borderLess,
|
11248
11250
|
style: oe.neutral,
|
11249
11251
|
size: L.xxs,
|
11250
|
-
onClick:
|
11252
|
+
onClick: C,
|
11251
11253
|
showTooltip: !0,
|
11252
11254
|
tooltipProps: {
|
11253
11255
|
content: "Select All",
|
@@ -11299,7 +11301,7 @@ const Dn = ({
|
|
11299
11301
|
variant: z.borderLess,
|
11300
11302
|
style: oe.neutral,
|
11301
11303
|
size: L.xxs,
|
11302
|
-
onClick:
|
11304
|
+
onClick: N,
|
11303
11305
|
showTooltip: !0,
|
11304
11306
|
tooltipProps: {
|
11305
11307
|
shortcutKeyCombo: {
|
@@ -11506,8 +11508,8 @@ const Dn = ({
|
|
11506
11508
|
extensions: x,
|
11507
11509
|
autoFocus: g,
|
11508
11510
|
diffMinimapExtensions: f,
|
11509
|
-
collapseUnchanged:
|
11510
|
-
disableMinimap:
|
11511
|
+
collapseUnchanged: C = !1,
|
11512
|
+
disableMinimap: N = !1
|
11511
11513
|
}) => {
|
11512
11514
|
const { value: S, lhsValue: b, diffMode: A } = lo(), [R, T] = w(0), [I, y] = w(null), [v, j] = w(null), [P, O] = w(1), D = $(), k = $(), B = $(), G = $(), ee = $(), Z = rn(s), be = () => {
|
11513
11515
|
const le = document.querySelector(".cm-gutters");
|
@@ -11556,13 +11558,13 @@ const Dn = ({
|
|
11556
11558
|
const { doc: K } = le.state, Ce = K.toString();
|
11557
11559
|
c(Ce, le);
|
11558
11560
|
}
|
11559
|
-
|
11561
|
+
N || Wl(G.current, le.transactions, "a");
|
11560
11562
|
}), xe = Xn.updateListener.of((le) => {
|
11561
11563
|
if (le.docChanged) {
|
11562
11564
|
const { doc: K } = le.state, Ce = K.toString();
|
11563
11565
|
d(Ce, le);
|
11564
11566
|
}
|
11565
|
-
|
11567
|
+
N || Wl(G.current, le.transactions, "b");
|
11566
11568
|
}), de = () => {
|
11567
11569
|
I?.destroy(), B.current?.destroy();
|
11568
11570
|
const le = new Yc({
|
@@ -11577,9 +11579,9 @@ const Dn = ({
|
|
11577
11579
|
...i ? {} : { revertControls: "a-to-b", renderRevertControl: s0 },
|
11578
11580
|
diffConfig: { scanLimit: Kl(b, S), timeout: 5e3 },
|
11579
11581
|
parent: k.current,
|
11580
|
-
collapseUnchanged:
|
11582
|
+
collapseUnchanged: C ? {} : void 0
|
11581
11583
|
});
|
11582
|
-
if (B.current = le, y(le), !
|
11584
|
+
if (B.current = le, y(le), !N && le && ee.current) {
|
11583
11585
|
v?.destroy(), G.current?.destroy();
|
11584
11586
|
const K = new Yc({
|
11585
11587
|
a: {
|
@@ -11599,13 +11601,13 @@ const Dn = ({
|
|
11599
11601
|
};
|
11600
11602
|
M(() => (!n && k.current && de(), () => {
|
11601
11603
|
y(null), j(null), B.current = null, G.current = null;
|
11602
|
-
}), [n, e, A,
|
11604
|
+
}), [n, e, A, C, N]), M(() => {
|
11603
11605
|
if (B.current) {
|
11604
11606
|
const le = B.current.a.state.doc.toString(), K = B.current.b.state.doc.toString();
|
11605
11607
|
(le !== b || K !== S) && de();
|
11606
11608
|
}
|
11607
11609
|
}, [b, S]), M(() => {
|
11608
|
-
|
11610
|
+
N || setTimeout(() => {
|
11609
11611
|
O(
|
11610
11612
|
I ? Math.min(
|
11611
11613
|
I.dom.clientHeight / I.dom.scrollHeight,
|
@@ -11613,7 +11615,7 @@ const Dn = ({
|
|
11613
11615
|
) : 1
|
11614
11616
|
);
|
11615
11617
|
}, 100);
|
11616
|
-
}, [b, S, I,
|
11618
|
+
}, [b, S, I, N]);
|
11617
11619
|
const { codeEditorClassName: se, codeEditorHeight: ne, codeEditorParentClassName: me } = ZR(r);
|
11618
11620
|
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: ne }, children: /* @__PURE__ */ t.jsx(Je, { pageLoader: !0 }) }) : A ? /* @__PURE__ */ t.jsxs(
|
11619
11621
|
"div",
|
@@ -11629,7 +11631,7 @@ const Dn = ({
|
|
11629
11631
|
className: `cm-merge-theme flex-grow-1 h-100 dc__overflow-hidden ${i ? "code-editor__read-only" : ""}`
|
11630
11632
|
}
|
11631
11633
|
),
|
11632
|
-
!
|
11634
|
+
!N && /* @__PURE__ */ t.jsx(
|
11633
11635
|
WR,
|
11634
11636
|
{
|
11635
11637
|
theme: s,
|
@@ -11700,8 +11702,8 @@ const Dn = ({
|
|
11700
11702
|
loading: x,
|
11701
11703
|
customLoader: g,
|
11702
11704
|
validatorSchema: f = {},
|
11703
|
-
schemaURI:
|
11704
|
-
cleanData:
|
11705
|
+
schemaURI: C = fb,
|
11706
|
+
cleanData: N = !1,
|
11705
11707
|
onBlur: S,
|
11706
11708
|
onFocus: b,
|
11707
11709
|
autoFocus: A,
|
@@ -11711,10 +11713,10 @@ const Dn = ({
|
|
11711
11713
|
...y
|
11712
11714
|
}) => {
|
11713
11715
|
const v = (I || y.disableSearch) ?? !1, j = (I || y.readOnly) ?? !1, { appTheme: P } = An(), O = $(), D = $({ code: "", lhsCode: "" }), k = X(() => {
|
11714
|
-
const V = E ? a : s, he =
|
11716
|
+
const V = E ? a : s, he = N ? ru(V) : V;
|
11715
11717
|
return he !== D.current.code ? ![it.JSON, it.YAML].includes(o) || i ? he : Yl(he, o, l) : D.current.code;
|
11716
11718
|
}, [s, a, E, i]), B = X(() => {
|
11717
|
-
const V =
|
11719
|
+
const V = N ? ru(n) : n;
|
11718
11720
|
return V !== D.current.lhsCode ? ![it.JSON, it.YAML].includes(o) || i ? V : Yl(V, o, l) : D.current.lhsCode;
|
11719
11721
|
}, [n, i]), G = e ?? P, ee = G === tt.dark, { codeEditorTheme: Z, themeExtension: be } = YR(ee), [Ee, W] = w(), [ie, ce] = w(!1), [xe, de] = w(E), se = X(
|
11720
11722
|
() => ({ setDiffMode: de, diffMode: xe, hasCodeEditorContainer: ie, lhsValue: B, value: k, readOnly: j, theme: G }),
|
@@ -11772,7 +11774,7 @@ const Dn = ({
|
|
11772
11774
|
kf
|
11773
11775
|
], re = [
|
11774
11776
|
...Ye(),
|
11775
|
-
...xe ? [] : n0({ mode: o, schemaURI:
|
11777
|
+
...xe ? [] : n0({ mode: o, schemaURI: C, validatorSchema: f }),
|
11776
11778
|
Do
|
11777
11779
|
], Re = [
|
11778
11780
|
Z,
|
@@ -12028,44 +12030,44 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12028
12030
|
showDetailedDiffState: l,
|
12029
12031
|
hideDiffState: d
|
12030
12032
|
}) => {
|
12031
|
-
const [u, m] = w({}), p = (
|
12033
|
+
const [u, m] = w({}), p = (C) => () => {
|
12032
12034
|
m({
|
12033
12035
|
...u,
|
12034
|
-
[
|
12036
|
+
[C]: !u[C]
|
12035
12037
|
});
|
12036
|
-
}, _ = (
|
12037
|
-
i ===
|
12038
|
+
}, _ = (C) => (N) => {
|
12039
|
+
i === C && N.target === N.currentTarget && setTimeout(() => {
|
12038
12040
|
document.querySelector(`#${i}`)?.scrollIntoView({ block: "start" });
|
12039
12041
|
});
|
12040
12042
|
};
|
12041
12043
|
M(() => {
|
12042
12044
|
e || m(
|
12043
12045
|
a.reduce(
|
12044
|
-
(
|
12045
|
-
...
|
12046
|
-
[
|
12046
|
+
(C, N) => ({
|
12047
|
+
...C,
|
12048
|
+
[N.id]: i === N.id || N.diffState !== Vt.NO_DIFF
|
12047
12049
|
}),
|
12048
12050
|
{}
|
12049
12051
|
)
|
12050
12052
|
);
|
12051
12053
|
}, [e]), M(() => {
|
12052
|
-
i && m((
|
12054
|
+
i && m((C) => ({ ...C, [i]: !0 }));
|
12053
12055
|
}, [i]);
|
12054
|
-
const h = (
|
12055
|
-
if (
|
12056
|
+
const h = (C) => C.map((N, S) => {
|
12057
|
+
if (N.type === "string")
|
12056
12058
|
return /* @__PURE__ */ t.jsxs(gs, { children: [
|
12057
|
-
typeof
|
12058
|
-
!r?.hideDivider && S !==
|
12059
|
-
] },
|
12060
|
-
if (
|
12059
|
+
typeof N.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: N.text }) : N.text,
|
12060
|
+
!r?.hideDivider && S !== C.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
12061
|
+
] }, N.id);
|
12062
|
+
if (N.type === "radio-group")
|
12061
12063
|
return /* @__PURE__ */ t.jsx(
|
12062
12064
|
C0,
|
12063
12065
|
{
|
12064
|
-
radioSelectConfig:
|
12066
|
+
radioSelectConfig: N.radioSelectConfig
|
12065
12067
|
},
|
12066
|
-
|
12068
|
+
N.id
|
12067
12069
|
);
|
12068
|
-
const { selectPickerProps: b } =
|
12070
|
+
const { selectPickerProps: b } = N;
|
12069
12071
|
return /* @__PURE__ */ t.jsxs(gs, { children: [
|
12070
12072
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
12071
12073
|
kt,
|
@@ -12074,11 +12076,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12074
12076
|
isDisabled: e || b?.isDisabled
|
12075
12077
|
}
|
12076
12078
|
) }),
|
12077
|
-
!r?.hideDivider && S !==
|
12078
|
-
] },
|
12079
|
+
!r?.hideDivider && S !== C.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
12080
|
+
] }, N.id);
|
12079
12081
|
}), E = () => {
|
12080
12082
|
if (o) {
|
12081
|
-
const { handleSorting:
|
12083
|
+
const { handleSorting: C, sortBy: N, sortOrder: S } = o;
|
12082
12084
|
return /* @__PURE__ */ t.jsx(
|
12083
12085
|
H,
|
12084
12086
|
{
|
@@ -12087,7 +12089,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12087
12089
|
variant: z.borderLess,
|
12088
12090
|
style: oe.neutral,
|
12089
12091
|
size: L.small,
|
12090
|
-
startIcon:
|
12092
|
+
startIcon: N ? /* @__PURE__ */ t.jsx(
|
12091
12093
|
Vi,
|
12092
12094
|
{
|
12093
12095
|
className: "rotate",
|
@@ -12096,7 +12098,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12096
12098
|
}
|
12097
12099
|
}
|
12098
12100
|
) : /* @__PURE__ */ t.jsx(ju, {}),
|
12099
|
-
onClick:
|
12101
|
+
onClick: C,
|
12100
12102
|
disabled: e
|
12101
12103
|
}
|
12102
12104
|
);
|
@@ -12104,28 +12106,28 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12104
12106
|
return null;
|
12105
12107
|
}, x = () => {
|
12106
12108
|
if (c) {
|
12107
|
-
const { convertVariables:
|
12109
|
+
const { convertVariables: C, onConvertVariablesClick: N } = c;
|
12108
12110
|
return /* @__PURE__ */ t.jsx(
|
12109
12111
|
Sp,
|
12110
12112
|
{
|
12111
12113
|
name: "resolve-scoped-variables",
|
12112
|
-
resolveScopedVariables:
|
12113
|
-
handleToggleScopedVariablesView:
|
12114
|
+
resolveScopedVariables: C,
|
12115
|
+
handleToggleScopedVariablesView: N
|
12114
12116
|
}
|
12115
12117
|
);
|
12116
12118
|
}
|
12117
12119
|
return null;
|
12118
|
-
}, g = () => a.map(({ id:
|
12119
|
-
const { heading: T, list: I } =
|
12120
|
+
}, g = () => a.map(({ id: C, primaryConfig: N, secondaryConfig: S, title: b, diffState: A, singleView: R }) => {
|
12121
|
+
const { heading: T, list: I } = N, { heading: y, list: v } = S;
|
12120
12122
|
return /* @__PURE__ */ t.jsx(
|
12121
12123
|
g0,
|
12122
12124
|
{
|
12123
|
-
id:
|
12125
|
+
id: C,
|
12124
12126
|
title: b,
|
12125
|
-
isExpanded: u[
|
12127
|
+
isExpanded: u[C],
|
12126
12128
|
diffState: A,
|
12127
|
-
onClick: p(
|
12128
|
-
onTransitionEnd: _(
|
12129
|
+
onClick: p(C),
|
12130
|
+
onTransitionEnd: _(C),
|
12129
12131
|
showDetailedDiffState: l,
|
12130
12132
|
hideDiffState: d,
|
12131
12133
|
children: R ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -12161,7 +12163,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12161
12163
|
)
|
12162
12164
|
] })
|
12163
12165
|
},
|
12164
|
-
`${
|
12166
|
+
`${C}-${b}`
|
12165
12167
|
);
|
12166
12168
|
}), f = () => e ? /* @__PURE__ */ t.jsx(Je, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
12167
12169
|
Dn,
|
@@ -12313,13 +12315,13 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12313
12315
|
}) => {
|
12314
12316
|
const [m, p] = w({});
|
12315
12317
|
M(() => {
|
12316
|
-
p(s.reduce((
|
12318
|
+
p(s.reduce((N, S) => ({ ...N, [S.id]: !!S.items.length }), {}));
|
12317
12319
|
}, [s]);
|
12318
12320
|
const _ = s.map(
|
12319
|
-
({ items:
|
12321
|
+
({ items: N, ...S }) => ({
|
12320
12322
|
...S,
|
12321
12323
|
isExpanded: m[S.id],
|
12322
|
-
items:
|
12324
|
+
items: N.map(({ diffState: b, ...A }) => ({
|
12323
12325
|
...A,
|
12324
12326
|
strikeThrough: d && b === Vt.DELETED,
|
12325
12327
|
...!u && b !== Vt.NO_DIFF ? {
|
@@ -12334,16 +12336,16 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12334
12336
|
} : {}
|
12335
12337
|
}))
|
12336
12338
|
})
|
12337
|
-
), h = (
|
12338
|
-
p((S) => ({ ...S, [
|
12339
|
-
}, E = (
|
12340
|
-
const { value: S } =
|
12339
|
+
), h = (N) => {
|
12340
|
+
p((S) => ({ ...S, [N]: !S[N] }));
|
12341
|
+
}, E = (N) => {
|
12342
|
+
const { value: S } = N.target;
|
12341
12343
|
c?.activeTab !== S && c?.onClick?.(S);
|
12342
12344
|
}, x = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12343
12345
|
a && /* @__PURE__ */ t.jsx(ts, { 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" }) }) }),
|
12344
12346
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12345
12347
|
] }), g = () => {
|
12346
|
-
const { tabs:
|
12348
|
+
const { tabs: N, activeTab: S } = c;
|
12347
12349
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12348
12350
|
_a,
|
12349
12351
|
{
|
@@ -12352,11 +12354,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12352
12354
|
onChange: E,
|
12353
12355
|
disabled: e,
|
12354
12356
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
12355
|
-
children:
|
12357
|
+
children: N.map((b) => /* @__PURE__ */ t.jsx(_a.Radio, { value: b, className: "fs-12 lh-20 cn-7 fw-6", children: b }, b))
|
12356
12358
|
}
|
12357
12359
|
) });
|
12358
12360
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12359
|
-
n.map(({ title:
|
12361
|
+
n.map(({ title: N, href: S, onClick: b, diffState: A, Icon: R }) => {
|
12360
12362
|
const T = d ? Wn[A] : Wn.hasDiff;
|
12361
12363
|
return /* @__PURE__ */ t.jsxs(
|
12362
12364
|
Gs,
|
@@ -12367,7 +12369,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12367
12369
|
onClick: b,
|
12368
12370
|
children: [
|
12369
12371
|
R && /* @__PURE__ */ t.jsx(R, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
12370
|
-
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children:
|
12372
|
+
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children: N }),
|
12371
12373
|
!u && A !== Vt.NO_DIFF && /* @__PURE__ */ t.jsx(
|
12372
12374
|
Ie,
|
12373
12375
|
{
|
@@ -12380,7 +12382,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12380
12382
|
)
|
12381
12383
|
]
|
12382
12384
|
},
|
12383
|
-
|
12385
|
+
N
|
12384
12386
|
);
|
12385
12387
|
}),
|
12386
12388
|
/* @__PURE__ */ t.jsx(b0, { config: _, tabType: "navLink", onCollapseBtnClick: h }),
|
@@ -12388,14 +12390,14 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12388
12390
|
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(Ou, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(ta, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
|
12389
12391
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${i ? "cr-5" : "cn-9"}`, children: o })
|
12390
12392
|
] })
|
12391
|
-
] }),
|
12393
|
+
] }), C = () => e ? ["90", "70", "50"].map((N) => /* @__PURE__ */ t.jsx(T0, { width: N }, N)) : l?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12392
12394
|
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(ta, { className: "icon-dim-16 fcn-7" }) }),
|
12393
12395
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
|
12394
12396
|
] }) : f();
|
12395
12397
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
12396
12398
|
x(),
|
12397
12399
|
!!c?.tabs.length && g(),
|
12398
|
-
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children:
|
12400
|
+
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children: C() })
|
12399
12401
|
] });
|
12400
12402
|
}, v0 = ({
|
12401
12403
|
isLoading: e,
|
@@ -12743,7 +12745,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12743
12745
|
x.deploymentTemplate,
|
12744
12746
|
i,
|
12745
12747
|
c
|
12746
|
-
),
|
12748
|
+
), C = {
|
12747
12749
|
id: _t.DeploymentTemplate,
|
12748
12750
|
pathType: _t.DeploymentTemplate,
|
12749
12751
|
title: "Deployment Template",
|
@@ -12757,15 +12759,15 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12757
12759
|
},
|
12758
12760
|
diffState: er(g, f)
|
12759
12761
|
};
|
12760
|
-
let
|
12762
|
+
let N, S, b;
|
12761
12763
|
if (E.pipelineConfigData || x.pipelineConfigData) {
|
12762
|
-
|
12764
|
+
N = ad(E.pipelineConfigData, c), S = ad(
|
12763
12765
|
x.pipelineConfigData,
|
12764
12766
|
c
|
12765
12767
|
);
|
12766
12768
|
const v = {
|
12767
|
-
...
|
12768
|
-
values: cd(
|
12769
|
+
...N,
|
12770
|
+
values: cd(N.values)
|
12769
12771
|
}, j = {
|
12770
12772
|
...S,
|
12771
12773
|
values: cd(S.values)
|
@@ -12780,7 +12782,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12780
12782
|
},
|
12781
12783
|
secondaryConfig: {
|
12782
12784
|
heading: null,
|
12783
|
-
list:
|
12785
|
+
list: N
|
12784
12786
|
},
|
12785
12787
|
diffState: er(v, j)
|
12786
12788
|
};
|
@@ -12802,17 +12804,17 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12802
12804
|
r,
|
12803
12805
|
c
|
12804
12806
|
), T = [
|
12805
|
-
|
12807
|
+
C,
|
12806
12808
|
...b ? [b] : [],
|
12807
12809
|
...A,
|
12808
12810
|
...R
|
12809
12811
|
], I = [
|
12810
12812
|
{
|
12811
|
-
title:
|
12812
|
-
diffState:
|
12813
|
+
title: C.title,
|
12814
|
+
diffState: C.diffState,
|
12813
12815
|
href: n(_t.DeploymentTemplate, null),
|
12814
12816
|
onClick: () => {
|
12815
|
-
document.querySelector(`#${
|
12817
|
+
document.querySelector(`#${C.id}`)?.scrollIntoView({ block: "start" });
|
12816
12818
|
},
|
12817
12819
|
Icon: Wo
|
12818
12820
|
},
|
@@ -13023,12 +13025,12 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13023
13025
|
isCompareDeploymentConfigNotAvailable: u,
|
13024
13026
|
...m
|
13025
13027
|
}) => {
|
13026
|
-
const { path: p, params: _ } = bs(), { resourceType: h, resourceName: E, appId: x, envId: g } = _, { compareWfrId: f, updateSearchParams:
|
13028
|
+
const { path: p, params: _ } = bs(), { resourceType: h, resourceName: E, appId: x, envId: g } = _, { compareWfrId: f, updateSearchParams: C, sortBy: N, sortOrder: S, handleSorting: b } = r, [A, R] = w({
|
13027
13029
|
isLoading: !1,
|
13028
13030
|
data: c,
|
13029
13031
|
hasMore: c.size >= en
|
13030
13032
|
}), [T, I] = w(n);
|
13031
|
-
M(() => (
|
13033
|
+
M(() => (C({ compareWfrId: f }), s(!0), N !== Qa && b(Qa), () => {
|
13032
13034
|
i(!1), s(!1);
|
13033
13035
|
}), []);
|
13034
13036
|
const y = async (W) => {
|
@@ -13065,7 +13067,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13065
13067
|
renderRunSource: l,
|
13066
13068
|
resourceId: d
|
13067
13069
|
}), D = O.find(({ value: W }) => W === f), k = !!O.length, B = ({ value: W }) => {
|
13068
|
-
|
13070
|
+
C({ compareWfrId: W });
|
13069
13071
|
}, G = {
|
13070
13072
|
primaryConfig: k ? [
|
13071
13073
|
{
|
@@ -13101,7 +13103,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13101
13103
|
]
|
13102
13104
|
}, ee = () => 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, be = {
|
13103
13105
|
handleSorting: () => b(S !== Te.DESC ? Qa : ""),
|
13104
|
-
sortBy:
|
13106
|
+
sortBy: N,
|
13105
13107
|
sortOrder: S
|
13106
13108
|
}, Ee = {
|
13107
13109
|
convertVariables: o,
|
@@ -13138,7 +13140,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13138
13140
|
[_, a]
|
13139
13141
|
), x = !!E, g = mc({
|
13140
13142
|
parseSearchParams: U0(E)
|
13141
|
-
}), { compareWfrId: f, sortBy:
|
13143
|
+
}), { compareWfrId: f, sortBy: C, sortOrder: N } = g, [S, b] = w(!1), [A, R, , T] = vt(async () => {
|
13142
13144
|
const G = [
|
13143
13145
|
{
|
13144
13146
|
appName: e,
|
@@ -13175,7 +13177,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13175
13177
|
compareList: G,
|
13176
13178
|
getNavItemHref: I,
|
13177
13179
|
convertVariables: S,
|
13178
|
-
sortingConfig: { sortBy:
|
13180
|
+
sortingConfig: { sortBy: C, sortOrder: N }
|
13179
13181
|
}), be = ld({
|
13180
13182
|
currentList: ee,
|
13181
13183
|
compareList: G,
|
@@ -13191,8 +13193,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13191
13193
|
A,
|
13192
13194
|
R,
|
13193
13195
|
S,
|
13194
|
-
|
13195
|
-
|
13196
|
+
C,
|
13197
|
+
N
|
13196
13198
|
]), j = X(
|
13197
13199
|
() => !A && R ? ud(R[0]) || ud(R[1]) : null,
|
13198
13200
|
[A, R]
|
@@ -13482,23 +13484,23 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13482
13484
|
}, f = (A) => /* @__PURE__ */ t.jsxs("div", { className: "commit-hash px-6 dc__w-fit-content dc__gap-4 fs-13", children: [
|
13483
13485
|
/* @__PURE__ */ t.jsx(Br, { className: "icon-dim-14 scb-5" }),
|
13484
13486
|
A
|
13485
|
-
] }),
|
13487
|
+
] }), C = () => a ? l.isselected ? /* @__PURE__ */ t.jsx(Xc, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ t.jsx(Jc, { "data-testid": "valid-git-commit icon-dim-20" }) : null, N = () => /* @__PURE__ */ t.jsxs("div", { className: "flex column left dc__gap-8", children: [
|
13486
13488
|
/* @__PURE__ */ t.jsxs("div", { className: "flex dc__content-space w-100", children: [
|
13487
13489
|
g(u.data["git url"]),
|
13488
|
-
|
13490
|
+
C()
|
13489
13491
|
] }),
|
13490
13492
|
x(),
|
13491
13493
|
_(!0)
|
13492
13494
|
] }), S = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13493
13495
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__content-space", children: [
|
13494
13496
|
f(u.data["target checkout"]),
|
13495
|
-
|
13497
|
+
C()
|
13496
13498
|
] }),
|
13497
13499
|
_()
|
13498
13500
|
] }), b = () => {
|
13499
13501
|
if (!d) return null;
|
13500
13502
|
const A = u.eventactiontype === V0.MERGED;
|
13501
|
-
return r.includes(Nt.GITLAB) ? A ? S() :
|
13503
|
+
return r.includes(Nt.GITLAB) ? A ? S() : N() : A ? N() : S();
|
13502
13504
|
};
|
13503
13505
|
return /* @__PURE__ */ t.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
|
13504
13506
|
o && (d || l.commit) && !!r && /* @__PURE__ */ t.jsx(
|
@@ -13647,7 +13649,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13647
13649
|
targetPlatforms: g,
|
13648
13650
|
isDeploymentWithoutApproval: f
|
13649
13651
|
}) => {
|
13650
|
-
const { isSuperAdmin:
|
13652
|
+
const { isSuperAdmin: C } = Qm();
|
13651
13653
|
if (!s?.length || !Object.keys(e ?? {}).length)
|
13652
13654
|
return /* @__PURE__ */ t.jsx(
|
13653
13655
|
Xe,
|
@@ -13656,7 +13658,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13656
13658
|
subTitle: et.DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE.SUBTITLE
|
13657
13659
|
}
|
13658
13660
|
);
|
13659
|
-
const
|
13661
|
+
const N = gr(n);
|
13660
13662
|
return /* @__PURE__ */ t.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
|
13661
13663
|
s?.map((S, b) => {
|
13662
13664
|
const A = e[S.id];
|
@@ -13697,7 +13699,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13697
13699
|
hideImageTaggingHardDelete: m,
|
13698
13700
|
appliedFilters: p,
|
13699
13701
|
appliedFiltersTimestamp: _,
|
13700
|
-
isSuperAdmin:
|
13702
|
+
isSuperAdmin: C,
|
13701
13703
|
promotionApprovalMetadata: h,
|
13702
13704
|
selectedEnvironmentName: E,
|
13703
13705
|
renderCIListHeader: x,
|
@@ -13705,8 +13707,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13705
13707
|
isDeploymentWithoutApproval: f,
|
13706
13708
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
|
13707
13709
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-9 fs-14 flex left", children: [
|
13708
|
-
|
13709
|
-
/* @__PURE__ */ t.jsx("div", { className: "pl-4", children: /* @__PURE__ */ t.jsx(Yt, { content:
|
13710
|
+
N,
|
13711
|
+
/* @__PURE__ */ t.jsx("div", { className: "pl-4", children: /* @__PURE__ */ t.jsx(Yt, { content: N }) })
|
13710
13712
|
] }),
|
13711
13713
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-7 fs-12 flex left", children: [
|
13712
13714
|
n,
|
@@ -13786,8 +13788,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13786
13788
|
}
|
13787
13789
|
),
|
13788
13790
|
s && /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
13789
|
-
n.map((f,
|
13790
|
-
const
|
13791
|
+
n.map((f, C) => {
|
13792
|
+
const N = dp({ stageIndex: l, lineNumberInsideStage: C }) === m;
|
13791
13793
|
return /* @__PURE__ */ t.jsxs(
|
13792
13794
|
pd,
|
13793
13795
|
{
|
@@ -13797,8 +13799,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13797
13799
|
{
|
13798
13800
|
ref: x,
|
13799
13801
|
className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
|
13800
|
-
"data-contains-match":
|
13801
|
-
children:
|
13802
|
+
"data-contains-match": N,
|
13803
|
+
children: C + 1
|
13802
13804
|
}
|
13803
13805
|
),
|
13804
13806
|
/* @__PURE__ */ t.jsx(
|
@@ -13812,7 +13814,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13812
13814
|
)
|
13813
13815
|
]
|
13814
13816
|
},
|
13815
|
-
`logs-${e}-${r}-${
|
13817
|
+
`logs-${e}-${r}-${C}`
|
13816
13818
|
);
|
13817
13819
|
}),
|
13818
13820
|
d && /* @__PURE__ */ t.jsxs(pd, { children: [
|
@@ -13863,11 +13865,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13863
13865
|
}, Q0 = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
13864
13866
|
const { pipelineId: r, envId: o, appId: i } = Dt(), c = $(null), l = n === Ge.CI ? `${mr}/${Y.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${mr}/${Y.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = Z0(
|
13865
13867
|
e.podStatus && e.podStatus !== Oo.PENDING && l
|
13866
|
-
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f,
|
13868
|
+
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, C] = w([]), { searchKey: N, handleSearch: S } = mc(), b = h.length > 0, A = X(() => p.every((W) => W.isOpen), [p]), R = A ? "Collapse all stages" : "Expand all stages", { registerShortcut: T, unregisterShortcut: I } = wn(), y = d[0]?.startsWith($l) || !1;
|
13867
13869
|
function v({
|
13868
13870
|
log: W,
|
13869
13871
|
currentIndex: ie = -1,
|
13870
|
-
targetSearchKey: ce =
|
13872
|
+
targetSearchKey: ce = N,
|
13871
13873
|
searchMatchResults: xe = null,
|
13872
13874
|
searchIndex: de = ""
|
13873
13875
|
}) {
|
@@ -13964,7 +13966,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13964
13966
|
return;
|
13965
13967
|
if (!y) {
|
13966
13968
|
const ie = d.map((ce) => v({ log: ce }).__html);
|
13967
|
-
|
13969
|
+
C(ie);
|
13968
13970
|
return;
|
13969
13971
|
}
|
13970
13972
|
const W = O(x);
|
@@ -13981,7 +13983,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13981
13983
|
M(() => (T({ callback: D, keys: ["E"] }), () => {
|
13982
13984
|
I(["E"]);
|
13983
13985
|
}), [D]);
|
13984
|
-
const k = (W, ie =
|
13986
|
+
const k = (W, ie = N) => {
|
13985
13987
|
if (h.length > 0 || W === "reset") {
|
13986
13988
|
let ce = 0;
|
13987
13989
|
W === "next" ? ce = (x + 1) % h.length : W === "prev" && (ce = x > 0 ? x - 1 : h.length - 1), g(ce), _(O(ce, ie));
|
@@ -13991,7 +13993,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13991
13993
|
}, G = () => {
|
13992
13994
|
k("prev");
|
13993
13995
|
}, ee = (W) => {
|
13994
|
-
S(W),
|
13996
|
+
S(W), N === W ? B() : k("reset", W);
|
13995
13997
|
}, Z = (W) => {
|
13996
13998
|
const ie = structuredClone(p);
|
13997
13999
|
ie[W].isOpen = !1, _(ie);
|
@@ -14024,11 +14026,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14024
14026
|
placeholder: "Search logs"
|
14025
14027
|
},
|
14026
14028
|
handleEnter: ee,
|
14027
|
-
initialSearchText:
|
14029
|
+
initialSearchText: N,
|
14028
14030
|
size: L.large
|
14029
14031
|
}
|
14030
14032
|
),
|
14031
|
-
!!
|
14033
|
+
!!N && /* @__PURE__ */ t.jsxs("div", { className: "flexbox px-10 py-6 dc__gap-8 dc__align-items-center", children: [
|
14032
14034
|
/* @__PURE__ */ t.jsxs("span", { className: "fs-13 fw-4 lh-20 text__white", children: [
|
14033
14035
|
b ? x + 1 : 0,
|
14034
14036
|
"/",
|
@@ -14691,13 +14693,13 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14691
14693
|
namespace: E,
|
14692
14694
|
workflowExecutionStages: x
|
14693
14695
|
}) => {
|
14694
|
-
const { path: g, params: f } = bs(), { pathname:
|
14696
|
+
const { path: g, params: f } = bs(), { pathname: C } = ss(), N = C.split("/").pop(), { envId: S, ...b } = Dt(), A = l === Ge.CD || l === Ge.GROUP_CD, R = A ? "triggerId" : "buildId", T = _ === p?.id, I = $(null), y = () => {
|
14695
14697
|
const D = {
|
14696
14698
|
...b,
|
14697
14699
|
envId: S,
|
14698
14700
|
[R]: e
|
14699
14701
|
};
|
14700
|
-
return `${Qs(g, D)}/${
|
14702
|
+
return `${Qs(g, D)}/${N}`;
|
14701
14703
|
}, v = () => {
|
14702
14704
|
I?.current && I.current.scrollIntoView({ behavior: "smooth" });
|
14703
14705
|
};
|
@@ -14810,7 +14812,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14810
14812
|
}), r({ offset: n.size, size: 20 });
|
14811
14813
|
}, g = () => e === Ge.CI || e === Ge.GROUP_CI ? u : e === Ge.GROUP_CD ? m : p, f = s?.find((b) => b.value === g()) ?? null;
|
14812
14814
|
s?.sort((b, A) => b.label > A.label ? 1 : -1);
|
14813
|
-
const
|
14815
|
+
const C = s?.filter((b) => !b.deploymentAppDeleteRequest), N = () => e === Ge.GROUP_CI || e === Ge.GROUP_CD ? jo.APPLICATION : e === Ge.CI ? jo.PIPELINE : jo.ENVIRONMENT, S = (b) => (b.selectProps.styles.option = sy(), /* @__PURE__ */ t.jsx(qe.Option, { ...b, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
14814
14816
|
(e === Ge.CI || e === Ge.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
14815
14817
|
F,
|
14816
14818
|
{
|
@@ -14831,7 +14833,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14831
14833
|
"data-testid": "select-history-heading",
|
14832
14834
|
children: [
|
14833
14835
|
"Select ",
|
14834
|
-
|
14836
|
+
N()
|
14835
14837
|
]
|
14836
14838
|
}
|
14837
14839
|
),
|
@@ -14840,7 +14842,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14840
14842
|
{
|
14841
14843
|
classNamePrefix: "history-pipeline-dropdown",
|
14842
14844
|
value: f,
|
14843
|
-
options: e === Ge.CI || e === Ge.GROUP_CI ? s :
|
14845
|
+
options: e === Ge.CI || e === Ge.GROUP_CI ? s : C,
|
14844
14846
|
onChange: E,
|
14845
14847
|
components: {
|
14846
14848
|
IndicatorSeparator: null,
|
@@ -15228,7 +15230,7 @@ const py = (e) => {
|
|
15228
15230
|
isLandscapeView: d = !1,
|
15229
15231
|
showConfetti: u = !1
|
15230
15232
|
}) => {
|
15231
|
-
const { registerShortcut: m, unregisterShortcut: p } = wn(), [_, h] = w(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r,
|
15233
|
+
const { registerShortcut: m, unregisterShortcut: p } = wn(), [_, h] = w(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, C = n ?? py(a), N = a === Wt.custom && !n, S = !!g?.disabled || x && _.trim() !== x, b = () => {
|
15232
15234
|
g && !S && g.onClick();
|
15233
15235
|
}, A = Fe(() => {
|
15234
15236
|
!g?.isLoading && !f?.disabled && c();
|
@@ -15256,8 +15258,8 @@ const py = (e) => {
|
|
15256
15258
|
onClick: ye,
|
15257
15259
|
children: [
|
15258
15260
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 p-20", children: [
|
15259
|
-
|
15260
|
-
className: `${
|
15261
|
+
N ? null : Jn(C, {
|
15262
|
+
className: `${C.props?.className ?? ""} icon-dim-48 dc__no-shrink`
|
15261
15263
|
}),
|
15262
15264
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${d ? "" : "dc__gap-8"}`, children: [
|
15263
15265
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-16 fw-6 lh-24 dc__word-break", children: e }),
|
@@ -15397,7 +15399,7 @@ const py = (e) => {
|
|
15397
15399
|
successToastMessage: p,
|
15398
15400
|
children: _
|
15399
15401
|
}) => {
|
15400
|
-
const [h, E] = w(!1), [x, g] = w(!1), [f,
|
15402
|
+
const [h, E] = w(!1), [x, g] = w(!1), [f, C] = w(u), [N, S] = w(o), b = async (v) => {
|
15401
15403
|
v && ye(v), S(!0);
|
15402
15404
|
try {
|
15403
15405
|
await i(), Ve.showToast({
|
@@ -15405,7 +15407,7 @@ const py = (e) => {
|
|
15405
15407
|
description: p || "Successfully deleted"
|
15406
15408
|
}), S(!1), l();
|
15407
15409
|
} catch (j) {
|
15408
|
-
j instanceof Bt && j.code === m ? (E(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u &&
|
15410
|
+
j instanceof Bt && j.code === m ? (E(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && C(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : Le(j), S(!1);
|
15409
15411
|
}
|
15410
15412
|
}, A = () => {
|
15411
15413
|
E(!1), l();
|
@@ -15435,12 +15437,12 @@ const py = (e) => {
|
|
15435
15437
|
secondaryButtonConfig: {
|
15436
15438
|
text: "Cancel",
|
15437
15439
|
onClick: l,
|
15438
|
-
disabled: o ||
|
15440
|
+
disabled: o || N
|
15439
15441
|
},
|
15440
15442
|
primaryButtonConfig: {
|
15441
15443
|
text: a,
|
15442
15444
|
onClick: b,
|
15443
|
-
isLoading: o ||
|
15445
|
+
isLoading: o || N,
|
15444
15446
|
disabled: r
|
15445
15447
|
}
|
15446
15448
|
},
|
@@ -15688,9 +15690,9 @@ const py = (e) => {
|
|
15688
15690
|
renderDeploymentHistoryTriggerMetaText: x,
|
15689
15691
|
renderTargetConfigInfo: g,
|
15690
15692
|
workflowExecutionStages: f,
|
15691
|
-
namespace:
|
15693
|
+
namespace: C
|
15692
15694
|
}) => {
|
15693
|
-
const
|
15695
|
+
const N = X(
|
15694
15696
|
() => fc(f),
|
15695
15697
|
[f]
|
15696
15698
|
);
|
@@ -15703,7 +15705,7 @@ const py = (e) => {
|
|
15703
15705
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col flex-grow-1", children: /* @__PURE__ */ t.jsx(
|
15704
15706
|
Ny,
|
15705
15707
|
{
|
15706
|
-
startedOn:
|
15708
|
+
startedOn: N?.triggeredOn || s,
|
15707
15709
|
triggeredBy: a,
|
15708
15710
|
triggeredByEmail: r,
|
15709
15711
|
ciMaterials: o,
|
@@ -15736,14 +15738,14 @@ const py = (e) => {
|
|
15736
15738
|
p === "" && /* @__PURE__ */ t.jsx("i", { className: "fw-4 fs-12 lh-20", children: "(Default)" })
|
15737
15739
|
] })
|
15738
15740
|
] }),
|
15739
|
-
!!
|
15741
|
+
!!N?.executionStartedOn && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
15740
15742
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
15741
15743
|
Xs(),
|
15742
15744
|
xd()
|
15743
15745
|
] }) }),
|
15744
15746
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 pr-20 flexbox dc__gap-8 py-8", children: [
|
15745
15747
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 cn-9 fs-13 fw-6 lh-20", children: "Execution started" }),
|
15746
|
-
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-13", children: ro(
|
15748
|
+
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-13", children: ro(N.executionStartedOn) })
|
15747
15749
|
] })
|
15748
15750
|
] }),
|
15749
15751
|
/* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
@@ -15753,7 +15755,7 @@ const py = (e) => {
|
|
15753
15755
|
Ty,
|
15754
15756
|
{
|
15755
15757
|
status: e,
|
15756
|
-
executionInfoCurrentStatus:
|
15758
|
+
executionInfoCurrentStatus: N?.currentStatus
|
15757
15759
|
}
|
15758
15760
|
),
|
15759
15761
|
/* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1" })
|
@@ -15761,7 +15763,7 @@ const py = (e) => {
|
|
15761
15763
|
/* @__PURE__ */ t.jsx(
|
15762
15764
|
Cy,
|
15763
15765
|
{
|
15764
|
-
executionInfo:
|
15766
|
+
executionInfo: N,
|
15765
15767
|
status: e,
|
15766
15768
|
finishedOn: n,
|
15767
15769
|
artifact: m,
|
@@ -15773,13 +15775,13 @@ const py = (e) => {
|
|
15773
15775
|
/* @__PURE__ */ t.jsx("div", { className: "display-grid trigger-details__grid py-4", children: /* @__PURE__ */ t.jsx(
|
15774
15776
|
Dp,
|
15775
15777
|
{
|
15776
|
-
message:
|
15777
|
-
podStatus:
|
15778
|
+
message: N?.workerDetails.message || c,
|
15779
|
+
podStatus: N?.workerDetails.status || l,
|
15778
15780
|
stage: u,
|
15779
|
-
finishedOn:
|
15780
|
-
clusterId:
|
15781
|
+
finishedOn: N?.workerDetails.endTime || n,
|
15782
|
+
clusterId: N?.workerDetails.clusterId || no,
|
15781
15783
|
workerPodName: h,
|
15782
|
-
namespace:
|
15784
|
+
namespace: C
|
15783
15785
|
}
|
15784
15786
|
) })
|
15785
15787
|
] }) });
|
@@ -15863,10 +15865,10 @@ const py = (e) => {
|
|
15863
15865
|
uniqueGroupId: E,
|
15864
15866
|
iconElement: x
|
15865
15867
|
}) => {
|
15866
|
-
const { pathname: g, search: f } = ss(),
|
15868
|
+
const { pathname: g, search: f } = ss(), C = $(null), [N, S] = w(n === "button" && a);
|
15867
15869
|
M(() => {
|
15868
15870
|
if (n === "navLink") {
|
15869
|
-
S(
|
15871
|
+
S(C.current?.classList.contains("active") || !1);
|
15870
15872
|
return;
|
15871
15873
|
}
|
15872
15874
|
S(a);
|
@@ -15901,7 +15903,7 @@ const py = (e) => {
|
|
15901
15903
|
return /* @__PURE__ */ t.jsx(
|
15902
15904
|
Gs,
|
15903
15905
|
{
|
15904
|
-
ref:
|
15906
|
+
ref: C,
|
15905
15907
|
className: `${b} dc__no-decor flexbox-col tab-group__tab__nav-link ${m ? "cursor-not-allowed" : ""}`,
|
15906
15908
|
"aria-disabled": m,
|
15907
15909
|
...s,
|
@@ -15937,7 +15939,7 @@ const py = (e) => {
|
|
15937
15939
|
className: `tab-group__tab lh-20 ${a ? "cb-5 fw-6" : "cn-9 fw-4"} ${n === "block" ? "tab-group__tab--block" : ""} ${m ? "dc__disabled" : "cursor"}`,
|
15938
15940
|
children: [
|
15939
15941
|
I(),
|
15940
|
-
|
15942
|
+
N && /* @__PURE__ */ t.jsx(Oy, { layoutId: E })
|
15941
15943
|
]
|
15942
15944
|
}
|
15943
15945
|
);
|
@@ -15983,8 +15985,8 @@ const py = (e) => {
|
|
15983
15985
|
renderDeploymentApprovalInfo: x,
|
15984
15986
|
renderCIListHeader: g,
|
15985
15987
|
renderVirtualHistoryArtifacts: f,
|
15986
|
-
scrollToTop:
|
15987
|
-
scrollToBottom:
|
15988
|
+
scrollToTop: C,
|
15989
|
+
scrollToBottom: N,
|
15988
15990
|
fullScreenView: S,
|
15989
15991
|
appName: b,
|
15990
15992
|
triggerHistory: A,
|
@@ -16008,12 +16010,12 @@ const py = (e) => {
|
|
16008
16010
|
fullScreenView: S
|
16009
16011
|
}
|
16010
16012
|
),
|
16011
|
-
(
|
16013
|
+
(C || N) && /* @__PURE__ */ t.jsx(
|
16012
16014
|
K0,
|
16013
16015
|
{
|
16014
16016
|
style: { position: "absolute", bottom: "52px", right: "12px", zIndex: "4" },
|
16015
|
-
scrollToTop:
|
16016
|
-
scrollToBottom:
|
16017
|
+
scrollToTop: C,
|
16018
|
+
scrollToBottom: N
|
16017
16019
|
}
|
16018
16020
|
)
|
16019
16021
|
] }) : /* @__PURE__ */ t.jsx(Js, { path: `${T}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
@@ -16119,8 +16121,8 @@ const py = (e) => {
|
|
16119
16121
|
processVirtualEnvironmentDeploymentData: x,
|
16120
16122
|
renderVirtualHistoryArtifacts: g,
|
16121
16123
|
renderDeploymentHistoryTriggerMetaText: f,
|
16122
|
-
resourceId:
|
16123
|
-
scrollToTop:
|
16124
|
+
resourceId: C,
|
16125
|
+
scrollToTop: N,
|
16124
16126
|
scrollToBottom: S,
|
16125
16127
|
renderTargetConfigInfo: b,
|
16126
16128
|
appName: A
|
@@ -16226,13 +16228,13 @@ const py = (e) => {
|
|
16226
16228
|
tagsEditable: c,
|
16227
16229
|
hideImageTaggingHardDelete: l,
|
16228
16230
|
selectedEnvironmentName: m,
|
16229
|
-
resourceId:
|
16231
|
+
resourceId: C,
|
16230
16232
|
renderRunSource: _,
|
16231
16233
|
processVirtualEnvironmentDeploymentData: x,
|
16232
16234
|
renderDeploymentApprovalInfo: E,
|
16233
16235
|
renderCIListHeader: h,
|
16234
16236
|
renderVirtualHistoryArtifacts: g,
|
16235
|
-
scrollToTop:
|
16237
|
+
scrollToTop: N,
|
16236
16238
|
scrollToBottom: S,
|
16237
16239
|
fullScreenView: e,
|
16238
16240
|
appName: A,
|
@@ -16753,12 +16755,12 @@ const Fy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16753
16755
|
}),
|
16754
16756
|
x
|
16755
16757
|
), [
|
16756
|
-
N,
|
16757
16758
|
C,
|
16759
|
+
N,
|
16758
16760
|
S,
|
16759
16761
|
b,
|
16760
16762
|
A
|
16761
|
-
] = vt(f, [], n === "release"), R = n === "release" ?
|
16763
|
+
] = vt(f, [], n === "release"), R = n === "release" ? N : a, T = Ni({ type: n, appDetails: R }), I = $(new AbortController()), y = $(null), v = async () => {
|
16762
16764
|
const K = await Mr(
|
16763
16765
|
() => Hy({
|
16764
16766
|
abortControllerRef: I,
|
@@ -16812,10 +16814,10 @@ const Fy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16812
16814
|
},
|
16813
16815
|
K ? uT : Ce
|
16814
16816
|
);
|
16815
|
-
}, ee =
|
16817
|
+
}, ee = C || Kt(S), Z = j || Kt(O), be = h === ht.DEPLOYMENT_STATUS && Z;
|
16816
16818
|
M(() => {
|
16817
|
-
!
|
16818
|
-
}, [
|
16819
|
+
!C && !S && N && !g.current && B();
|
16820
|
+
}, [C, N, S]), M(() => {
|
16819
16821
|
!j && !O && P && !y.current && G();
|
16820
16822
|
}, [j, P, O]);
|
16821
16823
|
const Ee = () => {
|
@@ -18464,9 +18466,9 @@ const zy = {
|
|
18464
18466
|
kubernetesManifest: !!c?.kubernetesManifest
|
18465
18467
|
})
|
18466
18468
|
), u = (f) => {
|
18467
|
-
d((
|
18468
|
-
...
|
18469
|
-
detailViewData: [...
|
18469
|
+
d((C) => ({
|
18470
|
+
...C,
|
18471
|
+
detailViewData: [...C.detailViewData ?? [], f]
|
18470
18472
|
}));
|
18471
18473
|
}, m = () => {
|
18472
18474
|
d((f) => ({ ...f, detailViewData: f.detailViewData?.slice(0, -1) ?? null }));
|
@@ -18508,7 +18510,7 @@ const zy = {
|
|
18508
18510
|
const f = Oj(c, l.category, l.subCategory, _);
|
18509
18511
|
if (f)
|
18510
18512
|
return /* @__PURE__ */ t.jsx(Xe, { ...f, imageType: Hs.Large });
|
18511
|
-
const { headers:
|
18513
|
+
const { headers: C, rows: N, defaultSortIndex: S, hasExpandableRows: b } = _ || jj(c, l.category, l.subCategory, u, o), { entities: A, lastScanTimeString: R, scanToolName: T, scanToolUrl: I } = _ || Rj(c, l.category, l.subCategory);
|
18512
18514
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
18513
18515
|
A?.length ? /* @__PURE__ */ t.jsx(
|
18514
18516
|
qy,
|
@@ -18523,8 +18525,8 @@ const zy = {
|
|
18523
18525
|
/* @__PURE__ */ t.jsx(
|
18524
18526
|
aj,
|
18525
18527
|
{
|
18526
|
-
headers:
|
18527
|
-
rows:
|
18528
|
+
headers: C,
|
18529
|
+
rows: N,
|
18528
18530
|
defaultSortIndex: S,
|
18529
18531
|
hasExpandableRows: b,
|
18530
18532
|
headerTopPosition: _ ? 40 : 0
|
@@ -18687,11 +18689,11 @@ const zy = {
|
|
18687
18689
|
};
|
18688
18690
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
18689
18691
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((x) => {
|
18690
|
-
const g = x !== _e.IMAGE_SCAN && (e.codeScan?.status === "Failed" || e.kubernetesManifest?.status === "Failed"), { scanToolName: f, scanToolUrl:
|
18692
|
+
const g = x !== _e.IMAGE_SCAN && (e.codeScan?.status === "Failed" || e.kubernetesManifest?.status === "Failed"), { scanToolName: f, scanToolUrl: C } = p(x);
|
18691
18693
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
18692
18694
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space pb-8 dc__border-bottom-n1", children: [
|
18693
18695
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[x].label }),
|
18694
|
-
/* @__PURE__ */ t.jsx(bc, { scanToolName: f, scanToolUrl:
|
18696
|
+
/* @__PURE__ */ t.jsx(bc, { scanToolName: f, scanToolUrl: C })
|
18695
18697
|
] }),
|
18696
18698
|
g ? /* @__PURE__ */ t.jsx("div", { className: "dc__border br-8", children: /* @__PURE__ */ t.jsx(
|
18697
18699
|
Rn,
|
@@ -18700,17 +18702,17 @@ const zy = {
|
|
18700
18702
|
subTitle: "",
|
18701
18703
|
description: ""
|
18702
18704
|
}
|
18703
|
-
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[x].subCategories.map((
|
18704
|
-
if (!e[x][
|
18705
|
+
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[x].subCategories.map((N) => {
|
18706
|
+
if (!e[x][N])
|
18705
18707
|
return null;
|
18706
|
-
const S = x === _e.IMAGE_SCAN && Ir(e[x][
|
18708
|
+
const S = x === _e.IMAGE_SCAN && Ir(e[x][N].list ?? []) === "Failed", b = N === te.MISCONFIGURATIONS ? e[x][N]?.misConfSummary?.status : e[x][N]?.summary?.severities;
|
18707
18709
|
return /* @__PURE__ */ t.jsx(
|
18708
18710
|
Wp,
|
18709
18711
|
{
|
18710
18712
|
category: x,
|
18711
|
-
subCategory:
|
18713
|
+
subCategory: N,
|
18712
18714
|
severities: b,
|
18713
|
-
handleCardClick: h(x,
|
18715
|
+
handleCardClick: h(x, N),
|
18714
18716
|
scanFailed: S
|
18715
18717
|
}
|
18716
18718
|
);
|
@@ -18833,18 +18835,18 @@ const zy = {
|
|
18833
18835
|
const _ = (f) => () => {
|
18834
18836
|
d(f);
|
18835
18837
|
}, h = Fe(
|
18836
|
-
(f,
|
18837
|
-
const
|
18838
|
-
if (!
|
18839
|
-
const b = f.additionalKeys?.find((R) => R.label === u)?.value || "", A =
|
18838
|
+
(f, C) => {
|
18839
|
+
const N = Mo.some((b) => b.label === u), S = Pj[u] ?? ((b) => b);
|
18840
|
+
if (!N) {
|
18841
|
+
const b = f.additionalKeys?.find((R) => R.label === u)?.value || "", A = C.additionalKeys?.find((R) => R.label === u)?.value || "";
|
18840
18842
|
return mt(b, A, m);
|
18841
18843
|
}
|
18842
|
-
return (m === Te.ASC ? 1 : -1) * (S(f[Sd[u]]) < S(
|
18844
|
+
return (m === Te.ASC ? 1 : -1) * (S(f[Sd[u]]) < S(C[Sd[u]]) ? -1 : 1);
|
18843
18845
|
},
|
18844
18846
|
[m, u]
|
18845
18847
|
), E = a.getResults(e ? null : h), x = Mo.reduce(
|
18846
|
-
(f,
|
18847
|
-
if (f.push(
|
18848
|
+
(f, C, N) => {
|
18849
|
+
if (f.push(C), N === 0) {
|
18848
18850
|
const S = E?.[0]?.additionalKeys;
|
18849
18851
|
S?.length && S.forEach((b) => {
|
18850
18852
|
f.push({
|
@@ -18931,10 +18933,10 @@ const zy = {
|
|
18931
18933
|
))
|
18932
18934
|
}
|
18933
18935
|
),
|
18934
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: E.map((f,
|
18936
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: E.map((f, C, N) => /* @__PURE__ */ t.jsxs(
|
18935
18937
|
"div",
|
18936
18938
|
{
|
18937
|
-
className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${
|
18939
|
+
className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${C === N.length - 1 ? "mb-20" : ""}`,
|
18938
18940
|
style: {
|
18939
18941
|
gridTemplateColumns: f.renderContentAtResultRowEnd ? `${g} min-content` : g
|
18940
18942
|
},
|
@@ -19120,7 +19122,7 @@ const aH = ({
|
|
19120
19122
|
M(() => (i && f().then(ka).catch(ka), () => {
|
19121
19123
|
E.current?.abort();
|
19122
19124
|
}), []);
|
19123
|
-
const
|
19125
|
+
const C = u ? ka : g, N = async () => {
|
19124
19126
|
_.current = h.current.getRetryOperations(), h.current = new vd(_.current.length), E.current = new AbortController(), await f();
|
19125
19127
|
}, S = () => {
|
19126
19128
|
E.current.abort();
|
@@ -19148,10 +19150,10 @@ const aH = ({
|
|
19148
19150
|
{
|
19149
19151
|
apiCallInProgress: u,
|
19150
19152
|
handleAbortBulkOperation: S,
|
19151
|
-
handleModalClose:
|
19153
|
+
handleModalClose: C,
|
19152
19154
|
isOperationAborted: E.current?.signal.aborted ?? !1,
|
19153
19155
|
resultsStore: h.current,
|
19154
|
-
handleRetryFailedOperations:
|
19156
|
+
handleRetryFailedOperations: N,
|
19155
19157
|
getResultsChartSummaryText: n,
|
19156
19158
|
resultsHeader: o.resultsHeader,
|
19157
19159
|
disableTransition: d
|
@@ -19191,8 +19193,8 @@ const kj = "bulk-selection-pop-up-menu", ko = {
|
|
19191
19193
|
}, [s]);
|
19192
19194
|
const c = a[$n], l = () => Object.keys(a).length, d = (x, g) => {
|
19193
19195
|
const f = JSON.parse(JSON.stringify(x));
|
19194
|
-
g.forEach((
|
19195
|
-
delete f[
|
19196
|
+
g.forEach((C) => {
|
19197
|
+
delete f[C];
|
19196
19198
|
}), r(f);
|
19197
19199
|
}, u = (x) => {
|
19198
19200
|
const g = JSON.parse(JSON.stringify(a));
|
@@ -19201,7 +19203,7 @@ const kj = "bulk-selection-pop-up-menu", ko = {
|
|
19201
19203
|
...x
|
19202
19204
|
});
|
19203
19205
|
}, m = ({ action: x, data: g }) => {
|
19204
|
-
const f = g?.identifierIds ?? [],
|
19206
|
+
const f = g?.identifierIds ?? [], C = g?.identifierObject ?? {};
|
19205
19207
|
switch (x) {
|
19206
19208
|
case $e.CLEAR_ALL_SELECTIONS:
|
19207
19209
|
r({});
|
@@ -19238,7 +19240,7 @@ const kj = "bulk-selection-pop-up-menu", ko = {
|
|
19238
19240
|
break;
|
19239
19241
|
}
|
19240
19242
|
case $e.SELECT_IDENTIFIER: {
|
19241
|
-
u(
|
19243
|
+
u(C);
|
19242
19244
|
break;
|
19243
19245
|
}
|
19244
19246
|
default:
|
@@ -19528,7 +19530,7 @@ const rH = ({
|
|
19528
19530
|
filePermission: x,
|
19529
19531
|
roleARN: g,
|
19530
19532
|
esoSubPath: f
|
19531
|
-
} = s || {},
|
19533
|
+
} = s || {}, C = {
|
19532
19534
|
name: c ?? "",
|
19533
19535
|
isSecret: i,
|
19534
19536
|
external: l ?? !1,
|
@@ -19551,13 +19553,13 @@ const rH = ({
|
|
19551
19553
|
yaml: null
|
19552
19554
|
};
|
19553
19555
|
if (s) {
|
19554
|
-
const
|
19556
|
+
const N = e || l ? Qi.REPLACE : o, S = s.mergeStrategy || (n === qr.INHERITED ? N : null), b = Yj({
|
19555
19557
|
configMapSecretData: { ...s, mergeStrategy: S },
|
19556
19558
|
cmSecretStateLabel: n,
|
19557
19559
|
isSecret: i
|
19558
19560
|
});
|
19559
19561
|
return {
|
19560
|
-
...
|
19562
|
+
...C,
|
19561
19563
|
externalSubpathValues: Wj({
|
19562
19564
|
data: h || E,
|
19563
19565
|
external: l,
|
@@ -19571,7 +19573,7 @@ const rH = ({
|
|
19571
19573
|
};
|
19572
19574
|
}
|
19573
19575
|
return {
|
19574
|
-
...
|
19576
|
+
...C,
|
19575
19577
|
externalSubpathValues: "",
|
19576
19578
|
yaml: `"": ""
|
19577
19579
|
`,
|
@@ -19613,15 +19615,15 @@ const rH = ({
|
|
19613
19615
|
cmSecretStateLabel: s,
|
19614
19616
|
componentType: n,
|
19615
19617
|
fallbackMergeStrategy: r
|
19616
|
-
}),
|
19617
|
-
let
|
19618
|
-
return f ?
|
19618
|
+
}), C = i && c === (f ? Ue.KubernetesSecret : Ue.Internal);
|
19619
|
+
let N = "";
|
19620
|
+
return f ? N = i && c === "" ? Ue.KubernetesSecret : Sn(Hj(a, !0), c).label : N = Gj.find(
|
19619
19621
|
({ value: S }) => i && c === "" ? S === Ue.KubernetesConfigMap : S === c
|
19620
19622
|
).label, {
|
19621
19623
|
configData: [
|
19622
19624
|
{
|
19623
19625
|
displayName: "DataType",
|
19624
|
-
value:
|
19626
|
+
value: N,
|
19625
19627
|
key: "dataType"
|
19626
19628
|
},
|
19627
19629
|
{
|
@@ -19662,7 +19664,7 @@ const rH = ({
|
|
19662
19664
|
}
|
19663
19665
|
] : []
|
19664
19666
|
],
|
19665
|
-
data:
|
19667
|
+
data: C ? null : g?.[0]?.key && x || l || _
|
19666
19668
|
};
|
19667
19669
|
}, Xj = (e) => {
|
19668
19670
|
try {
|
@@ -19715,15 +19717,15 @@ const rH = ({
|
|
19715
19717
|
isSubPathChecked: h,
|
19716
19718
|
mergeStrategy: E
|
19717
19719
|
}) => {
|
19718
|
-
const x = e && Sm(n), f = (o ? Xj(r) : i).reduce((
|
19720
|
+
const x = e && Sm(n), f = (o ? Xj(r) : i).reduce((N, S) => {
|
19719
19721
|
if (!S.key)
|
19720
|
-
return
|
19722
|
+
return N;
|
19721
19723
|
const b = S.value ?? "";
|
19722
19724
|
return {
|
19723
|
-
...
|
19725
|
+
...N,
|
19724
19726
|
[S.key]: e && n === "" ? btoa(b) : b
|
19725
19727
|
};
|
19726
|
-
}, {}),
|
19728
|
+
}, {}), C = {
|
19727
19729
|
name: d,
|
19728
19730
|
type: u,
|
19729
19731
|
external: s,
|
@@ -19737,24 +19739,24 @@ const rH = ({
|
|
19737
19739
|
esoSubPath: null,
|
19738
19740
|
mergeStrategy: E
|
19739
19741
|
};
|
19740
|
-
if ((e && n === Ue.KubernetesSecret || !e && s || e && x) && delete
|
19741
|
-
const
|
19742
|
-
|
19743
|
-
secretStore:
|
19744
|
-
esoData:
|
19745
|
-
secretStoreRef:
|
19746
|
-
refreshInterval:
|
19747
|
-
esoDataFrom:
|
19748
|
-
template:
|
19749
|
-
},
|
19750
|
-
}
|
19751
|
-
if (u === yr.volume.value && (
|
19752
|
-
const
|
19753
|
-
|
19742
|
+
if ((e && n === Ue.KubernetesSecret || !e && s || e && x) && delete C[Tm.DATA], e && (C.roleARN = "", C.externalType = n, x)) {
|
19743
|
+
const N = Jp(c);
|
19744
|
+
N && (C.esoSecretData = {
|
19745
|
+
secretStore: N.secretStore,
|
19746
|
+
esoData: N.esoData,
|
19747
|
+
secretStoreRef: N.secretStoreRef,
|
19748
|
+
refreshInterval: N.refreshInterval,
|
19749
|
+
esoDataFrom: N.esoDataFrom,
|
19750
|
+
template: N.template
|
19751
|
+
}, C.roleARN = p, h && a && (C.esoSubPath = a.replace(/\s+/g, "").split(",")));
|
19752
|
+
}
|
19753
|
+
if (u === yr.volume.value && (C.mountPath = _, C.subPath = h, m && (C.filePermission = l.length === 3 ? `0${l}` : `${l}`), h && (e && n === Ue.KubernetesSecret || !e && s))) {
|
19754
|
+
const N = a.replace(/\s+/g, "").split(","), S = {};
|
19755
|
+
N.forEach((b) => {
|
19754
19756
|
S[b] = "";
|
19755
|
-
}),
|
19757
|
+
}), C.data = S;
|
19756
19758
|
}
|
19757
|
-
return
|
19759
|
+
return C;
|
19758
19760
|
}, oH = ({
|
19759
19761
|
componentType: e,
|
19760
19762
|
isJob: s,
|
@@ -20049,12 +20051,12 @@ const rH = ({
|
|
20049
20051
|
const m = X(() => sO(c), [c]), p = (g) => {
|
20050
20052
|
r(g.value.iso2);
|
20051
20053
|
}, _ = e && m.find((g) => g.value.iso2 === e) || null, h = (g, f) => {
|
20052
|
-
const
|
20054
|
+
const C = f.toLowerCase();
|
20053
20055
|
return [
|
20054
20056
|
g.data.value.name.toLowerCase(),
|
20055
20057
|
`+${g.data.value.dialCode.toLowerCase()}`,
|
20056
20058
|
g.data.value.iso2.toLowerCase()
|
20057
|
-
].some((S) => S.includes(
|
20059
|
+
].some((S) => S.includes(C));
|
20058
20060
|
}, E = (g) => g.value.iso2, x = (g, f) => f.context === "menu" || c === "default" ? g.label : `+${g.value.dialCode}`;
|
20059
20061
|
return /* @__PURE__ */ t.jsx(
|
20060
20062
|
kt,
|
@@ -20243,9 +20245,9 @@ const rH = ({
|
|
20243
20245
|
}) => {
|
20244
20246
|
const h = uO(e), E = sr.find((A) => A.value === h) ?? sr[0], [x, g] = w(!1), f = ({ focused: A }) => {
|
20245
20247
|
g(A);
|
20246
|
-
}, N = (A) => {
|
20247
|
-
s(pO(e, A?.toDate()));
|
20248
20248
|
}, C = (A) => {
|
20249
|
+
s(pO(e, A?.toDate()));
|
20250
|
+
}, N = (A) => {
|
20249
20251
|
s(mO(e, A.value).value);
|
20250
20252
|
}, S = we(), b = (A) => d && !A.isAfter(S);
|
20251
20253
|
return /* @__PURE__ */ t.jsxs("div", { className: "date-time-picker", children: [
|
@@ -20257,7 +20259,7 @@ const rH = ({
|
|
20257
20259
|
id: r,
|
20258
20260
|
placeholder: "Select date",
|
20259
20261
|
date: we(e),
|
20260
|
-
onDateChange:
|
20262
|
+
onDateChange: C,
|
20261
20263
|
focused: x,
|
20262
20264
|
onFocusChange: f,
|
20263
20265
|
numberOfMonths: 1,
|
@@ -20288,7 +20290,7 @@ const rH = ({
|
|
20288
20290
|
isDisabled: a,
|
20289
20291
|
...n,
|
20290
20292
|
value: E,
|
20291
|
-
onChange:
|
20293
|
+
onChange: N,
|
20292
20294
|
"data-testid": u,
|
20293
20295
|
menuSize: L.xs,
|
20294
20296
|
size: L.large,
|
@@ -20403,21 +20405,21 @@ const mo = ({
|
|
20403
20405
|
e,
|
20404
20406
|
d,
|
20405
20407
|
c || o
|
20406
|
-
), E = mo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", x = (f) => () => n?.handleSorting(f), g = ({ key: f, label:
|
20408
|
+
), E = mo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", x = (f) => () => n?.handleSorting(f), g = ({ key: f, label: C, isSortable: N, renderAdditionalContent: S }) => {
|
20407
20409
|
const b = !p && f === u;
|
20408
20410
|
return /* @__PURE__ */ t.jsxs(
|
20409
20411
|
"div",
|
20410
20412
|
{
|
20411
20413
|
className: `bg__secondary ${b ? "py-6" : "py-8"} px-8 flexbox dc__content-space dc__align-items-center ${!E && (f === u ? `${_ || !p ? "dc__top-left-radius" : "dc__left-radius-4"}` : "") || ""} ${f === m ? `${_ || !p ? "dc__top-right-radius-4" : "dc__right-radius-4"}` : ""}`,
|
20412
20414
|
children: [
|
20413
|
-
|
20415
|
+
N ? /* @__PURE__ */ t.jsxs(
|
20414
20416
|
"button",
|
20415
20417
|
{
|
20416
20418
|
type: "button",
|
20417
20419
|
className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
|
20418
20420
|
onClick: x(f),
|
20419
20421
|
children: [
|
20420
|
-
|
20422
|
+
C,
|
20421
20423
|
/* @__PURE__ */ t.jsx(
|
20422
20424
|
Vi,
|
20423
20425
|
{
|
@@ -20435,7 +20437,7 @@ const mo = ({
|
|
20435
20437
|
{
|
20436
20438
|
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"}`,
|
20437
20439
|
children: [
|
20438
|
-
|
20440
|
+
C,
|
20439
20441
|
typeof S == "function" && S()
|
20440
20442
|
]
|
20441
20443
|
}
|
@@ -20526,9 +20528,9 @@ const Qp = ({
|
|
20526
20528
|
}) => {
|
20527
20529
|
const p = (g) => {
|
20528
20530
|
const f = i?.current;
|
20529
|
-
f && (f.style.height = `${g}px`), Object.values(c || {}).forEach((
|
20530
|
-
const
|
20531
|
-
|
20531
|
+
f && (f.style.height = `${g}px`), Object.values(c || {}).forEach((C) => {
|
20532
|
+
const N = C?.current;
|
20533
|
+
N && (N.style.height = `${g}px`);
|
20532
20534
|
});
|
20533
20535
|
}, _ = (g) => {
|
20534
20536
|
const f = o?.current;
|
@@ -20541,8 +20543,8 @@ const Qp = ({
|
|
20541
20543
|
f && f.scrollHeight > g && (g = f.scrollHeight);
|
20542
20544
|
}
|
20543
20545
|
c && Object.values(c).forEach((f) => {
|
20544
|
-
const
|
20545
|
-
|
20546
|
+
const C = f.current;
|
20547
|
+
C && C.scrollHeight > g && (g = C.scrollHeight);
|
20546
20548
|
}), s && g < s && (g = s), n && g > n && (g = n), _(g);
|
20547
20549
|
};
|
20548
20550
|
M(() => {
|
@@ -20624,8 +20626,8 @@ const jt = ({
|
|
20624
20626
|
typeof s == "function" && s(!!o);
|
20625
20627
|
}, [o]), M(() => {
|
20626
20628
|
if (u?.current && a && o) {
|
20627
|
-
const { height: f, x:
|
20628
|
-
i({ left:
|
20629
|
+
const { height: f, x: C, y: N } = u.current.getBoundingClientRect();
|
20630
|
+
i({ left: C, top: N + f });
|
20629
20631
|
}
|
20630
20632
|
}, [u?.current?.clientHeight]);
|
20631
20633
|
let p = {
|
@@ -20634,12 +20636,12 @@ const jt = ({
|
|
20634
20636
|
threshold: 1
|
20635
20637
|
};
|
20636
20638
|
if (!e) return e;
|
20637
|
-
function _(f,
|
20638
|
-
f.forEach((
|
20639
|
-
if (
|
20639
|
+
function _(f, C) {
|
20640
|
+
f.forEach((N) => {
|
20641
|
+
if (N.isIntersecting && N.intersectionRatio >= 1)
|
20640
20642
|
l(1);
|
20641
20643
|
else {
|
20642
|
-
const { boundingClientRect: S, rootBounds: b } =
|
20644
|
+
const { boundingClientRect: S, rootBounds: b } = N, { x: A, y: R, height: T, width: I } = S, {
|
20643
20645
|
x: y,
|
20644
20646
|
y: v,
|
20645
20647
|
height: j,
|
@@ -20655,10 +20657,10 @@ const jt = ({
|
|
20655
20657
|
}
|
20656
20658
|
const h = (f) => {
|
20657
20659
|
f.stopPropagation(), r && f.preventDefault(), l(0);
|
20658
|
-
const { height:
|
20659
|
-
i({ left:
|
20660
|
-
}, E = (f,
|
20661
|
-
n ||
|
20660
|
+
const { height: C, x: N, y: S } = f.currentTarget.getBoundingClientRect();
|
20661
|
+
i({ left: N, top: S + C });
|
20662
|
+
}, E = (f, C) => {
|
20663
|
+
n || C === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : f.stopPropagation();
|
20662
20664
|
};
|
20663
20665
|
function x(f) {
|
20664
20666
|
f && d?.current?.observe ? d.current.observe(f) : d.current.disconnect();
|
@@ -20666,7 +20668,7 @@ const jt = ({
|
|
20666
20668
|
function g(f) {
|
20667
20669
|
if (!f) return;
|
20668
20670
|
u.current = f;
|
20669
|
-
const { bottom:
|
20671
|
+
const { bottom: C, height: N, left: S, right: b, top: A, width: R, x: T, y: I } = f.getBoundingClientRect();
|
20670
20672
|
m.current = R;
|
20671
20673
|
}
|
20672
20674
|
return /* @__PURE__ */ t.jsx(
|
@@ -20780,11 +20782,11 @@ const Ad = ({
|
|
20780
20782
|
}
|
20781
20783
|
}, f = (T) => {
|
20782
20784
|
p(T.target.value);
|
20783
|
-
},
|
20785
|
+
}, C = (T) => {
|
20784
20786
|
ye(T);
|
20785
20787
|
const I = { ...s };
|
20786
20788
|
I[o] = T.currentTarget.dataset.key, I.propagate = T.currentTarget.dataset.propagate === "true", n(e, I), h("");
|
20787
|
-
},
|
20789
|
+
}, N = () => {
|
20788
20790
|
let T = { isValid: !0, messages: [] };
|
20789
20791
|
return o === ms.KEY ? (m || s.value) && (T = E.propagateTagKey(m)) : (r || m || s.propagate) && (T = E.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: ye, "data-testid": "tag-label-cross-stop-propagation", children: [
|
20790
20792
|
T.messages.map((I) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -20802,7 +20804,7 @@ const Ad = ({
|
|
20802
20804
|
"data-key": T.label,
|
20803
20805
|
"data-propagate": T.propagate,
|
20804
20806
|
className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
|
20805
|
-
onClick:
|
20807
|
+
onClick: C,
|
20806
20808
|
"data-testid": `tag-label-value-${I}`,
|
20807
20809
|
children: T.label
|
20808
20810
|
},
|
@@ -20827,7 +20829,7 @@ const Ad = ({
|
|
20827
20829
|
(I, y) => I.description ? b(I, y) : S(I, y)
|
20828
20830
|
) });
|
20829
20831
|
}
|
20830
|
-
return
|
20832
|
+
return N();
|
20831
20833
|
}, R = _ === `tag-${o}-${e}` ? A() : null;
|
20832
20834
|
return /* @__PURE__ */ t.jsxs(jt, { autoClose: !0, autoPosition: !0, children: [
|
20833
20835
|
/* @__PURE__ */ t.jsx(jt.Button, { rootClassName: "bg__secondary flex top dc__no-border-imp", children: /* @__PURE__ */ t.jsx(
|
@@ -21008,12 +21010,12 @@ const RO = ({
|
|
21008
21010
|
a || n
|
21009
21011
|
), g = $(p), f = $(null);
|
21010
21012
|
f.current || (f.current = e.reduce((v, j) => (v[j.id] = s.reduce((P, { key: O }) => ({ ...P, [O]: dr() }), {}), v), {}));
|
21011
|
-
const
|
21013
|
+
const C = X(() => e.map(({ id: v }) => v), [e]);
|
21012
21014
|
M(() => {
|
21013
|
-
const v =
|
21015
|
+
const v = C.reduce((j, P) => (f.current[P] ? j[P] = f.current[P] : j[P] = s.reduce((O, { key: D }) => ({ ...O, [D]: dr() }), {}), j), {});
|
21014
21016
|
f.current = v;
|
21015
|
-
}, [JSON.stringify(
|
21016
|
-
const
|
21017
|
+
}, [JSON.stringify(C)]);
|
21018
|
+
const N = (v, j) => (P) => {
|
21017
21019
|
let O = "";
|
21018
21020
|
const D = { selectedValue: null, files: [] };
|
21019
21021
|
switch (v.data[j].type) {
|
@@ -21049,7 +21051,7 @@ const RO = ({
|
|
21049
21051
|
v.data[j].value,
|
21050
21052
|
null
|
21051
21053
|
),
|
21052
|
-
onChange:
|
21054
|
+
onChange: N(v, j),
|
21053
21055
|
isDisabled: O,
|
21054
21056
|
fullWidth: !0
|
21055
21057
|
}
|
@@ -21073,7 +21075,7 @@ const RO = ({
|
|
21073
21075
|
k,
|
21074
21076
|
G && k ? { label: k, value: k } : null
|
21075
21077
|
),
|
21076
|
-
onChange:
|
21078
|
+
onChange: N(v, j),
|
21077
21079
|
isDisabled: O,
|
21078
21080
|
formatCreateLabel: (ee) => `Use ${ee}`,
|
21079
21081
|
refVar: f?.current?.[v.id]?.[j],
|
@@ -21111,7 +21113,7 @@ const RO = ({
|
|
21111
21113
|
{
|
21112
21114
|
...v.data[j].props,
|
21113
21115
|
fileName: v.data[j].value,
|
21114
|
-
onUpload:
|
21116
|
+
onUpload: N(v, j)
|
21115
21117
|
}
|
21116
21118
|
)
|
21117
21119
|
}
|
@@ -21127,7 +21129,7 @@ const RO = ({
|
|
21127
21129
|
minHeight: 20,
|
21128
21130
|
maxHeight: 160,
|
21129
21131
|
value: v.data[j].value,
|
21130
|
-
onChange:
|
21132
|
+
onChange: N(v, j),
|
21131
21133
|
disabled: O,
|
21132
21134
|
refVar: f?.current?.[v.id]?.[j],
|
21133
21135
|
dependentRefs: f?.current?.[v.id],
|
@@ -21259,8 +21261,8 @@ const RO = ({
|
|
21259
21261
|
hideFormFieldInfo: x,
|
21260
21262
|
value: g,
|
21261
21263
|
borderConfig: f,
|
21262
|
-
disableResize:
|
21263
|
-
newlineOnShiftEnter:
|
21264
|
+
disableResize: C,
|
21265
|
+
newlineOnShiftEnter: N = !1,
|
21264
21266
|
...S
|
21265
21267
|
}) => {
|
21266
21268
|
const b = $(null), [A, R] = w(""), { MIN_HEIGHT: T, AUTO_EXPANSION_MAX_HEIGHT: I } = wO(m), y = (k) => {
|
@@ -21285,7 +21287,7 @@ const RO = ({
|
|
21285
21287
|
}
|
21286
21288
|
typeof d == "function" && d(k);
|
21287
21289
|
}, D = (k) => {
|
21288
|
-
(k.key === "Enter" || k.key === "Escape") && (k.stopPropagation(),
|
21290
|
+
(k.key === "Enter" || k.key === "Escape") && (k.stopPropagation(), N && k.key === "Enter" && !k.shiftKey && k.preventDefault(), k.key === "Escape" && b.current.blur());
|
21289
21291
|
};
|
21290
21292
|
return /* @__PURE__ */ t.jsx(
|
21291
21293
|
sc,
|
@@ -21332,7 +21334,7 @@ const RO = ({
|
|
21332
21334
|
// No max height when user is expanding
|
21333
21335
|
maxHeight: "none",
|
21334
21336
|
minHeight: T,
|
21335
|
-
resize:
|
21337
|
+
resize: C ? "none" : "vertical"
|
21336
21338
|
}
|
21337
21339
|
}
|
21338
21340
|
)
|
@@ -21437,9 +21439,9 @@ const RO = ({
|
|
21437
21439
|
}, f = (T) => {
|
21438
21440
|
const I = T ?? l;
|
21439
21441
|
g(I), r(I), n(""), m(!1), _(!1), E("");
|
21440
|
-
}, N = () => {
|
21441
|
-
f(a);
|
21442
21442
|
}, C = () => {
|
21443
|
+
f(a);
|
21444
|
+
}, N = () => {
|
21443
21445
|
f();
|
21444
21446
|
}, S = (T) => {
|
21445
21447
|
const { value: I } = T.target;
|
@@ -21474,7 +21476,7 @@ const RO = ({
|
|
21474
21476
|
const y = URL.createObjectURL(I), v = await Cv(y);
|
21475
21477
|
if (URL.revokeObjectURL(y), !v.isValid)
|
21476
21478
|
throw new Error(v.message);
|
21477
|
-
|
21479
|
+
C();
|
21478
21480
|
} catch (T) {
|
21479
21481
|
n(T.message || "Failed to load image"), Le(T);
|
21480
21482
|
} finally {
|
@@ -21532,7 +21534,7 @@ const RO = ({
|
|
21532
21534
|
"data-testid": `${i}-cancel`,
|
21533
21535
|
type: "button",
|
21534
21536
|
disabled: p,
|
21535
|
-
onClick:
|
21537
|
+
onClick: N,
|
21536
21538
|
children: "Cancel"
|
21537
21539
|
}
|
21538
21540
|
)
|
@@ -21763,7 +21765,7 @@ const jd = (e) => {
|
|
21763
21765
|
x(!0);
|
21764
21766
|
}, f = () => {
|
21765
21767
|
x(!1);
|
21766
|
-
},
|
21768
|
+
}, C = () => d ? /* @__PURE__ */ t.jsxs("div", { className: "flex left fs-16 cn-9 fw-6 dc__gap-4", children: [
|
21767
21769
|
/* @__PURE__ */ t.jsx("span", { "data-testid": m, className: "lh-32", children: r }),
|
21768
21770
|
/* @__PURE__ */ t.jsx(
|
21769
21771
|
on,
|
@@ -21787,7 +21789,7 @@ const jd = (e) => {
|
|
21787
21789
|
{
|
21788
21790
|
className: `feature-description flexbox dc__content-space dc__align-items-center ${e ?? ""}`,
|
21789
21791
|
children: [
|
21790
|
-
|
21792
|
+
C(),
|
21791
21793
|
n
|
21792
21794
|
]
|
21793
21795
|
}
|
@@ -22040,11 +22042,11 @@ const jd = (e) => {
|
|
22040
22042
|
M(() => {
|
22041
22043
|
c(n);
|
22042
22044
|
}, [n]);
|
22043
|
-
const _ = (
|
22044
|
-
const
|
22045
|
-
(b) => b.variableName.toLowerCase().includes(
|
22045
|
+
const _ = (C) => {
|
22046
|
+
const N = C.trim().toLowerCase(), S = n.filter(
|
22047
|
+
(b) => b.variableName.toLowerCase().includes(N) || b.shortDescription?.toLowerCase().includes(N)
|
22046
22048
|
);
|
22047
|
-
c(S), m(
|
22049
|
+
c(S), m(N);
|
22048
22050
|
}, h = () => {
|
22049
22051
|
d(!l);
|
22050
22052
|
}, E = () => /* @__PURE__ */ t.jsx(
|
@@ -22081,8 +22083,8 @@ const jd = (e) => {
|
|
22081
22083
|
p && /* @__PURE__ */ t.jsx(
|
22082
22084
|
"div",
|
22083
22085
|
{
|
22084
|
-
onKeyDown: (
|
22085
|
-
|
22086
|
+
onKeyDown: (C) => {
|
22087
|
+
C.key === "Enter" && C.preventDefault();
|
22086
22088
|
},
|
22087
22089
|
className: "flexbox dc__align-self-stretch pt-8 pb-8 pl-12 pr-12 bg__primary",
|
22088
22090
|
children: /* @__PURE__ */ t.jsx(
|
@@ -22100,17 +22102,17 @@ const jd = (e) => {
|
|
22100
22102
|
}
|
22101
22103
|
)
|
22102
22104
|
] }), g = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22103
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1", children: i.length ? i.map((
|
22105
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1", children: i.length ? i.map((C) => /* @__PURE__ */ t.jsx(
|
22104
22106
|
HO,
|
22105
22107
|
{
|
22106
|
-
variableName:
|
22107
|
-
description:
|
22108
|
-
variableValue:
|
22109
|
-
isRedacted:
|
22108
|
+
variableName: C.variableName,
|
22109
|
+
description: C.shortDescription?.length ? C.shortDescription : a_,
|
22110
|
+
variableValue: C.variableValue?.value ?? FO,
|
22111
|
+
isRedacted: C.isRedacted,
|
22110
22112
|
highlightText: u,
|
22111
22113
|
showValueOnHover: o
|
22112
22114
|
},
|
22113
|
-
|
22115
|
+
C.variableName
|
22114
22116
|
)) : /* @__PURE__ */ t.jsx(
|
22115
22117
|
Xe,
|
22116
22118
|
{
|
@@ -22143,66 +22145,66 @@ const jd = (e) => {
|
|
22143
22145
|
const [l, d] = w(!1), [u, m] = w({ x: 0, y: 0 }), [p, _] = w({ x: 0, y: 0 }), [h, E, x, g] = vt(
|
22144
22146
|
() => GO(s, n, a, { hideObjectVariables: o, isTemplateView: c }),
|
22145
22147
|
[s, n, a]
|
22146
|
-
), f = tp(),
|
22147
|
-
const T =
|
22148
|
+
), f = tp(), C = $(null), N = X(() => {
|
22149
|
+
const T = C.current?.getBoundingClientRect() || {
|
22148
22150
|
x: 0,
|
22149
22151
|
y: 0
|
22150
22152
|
};
|
22151
22153
|
return { x: T.x, y: T.y };
|
22152
|
-
}, [
|
22154
|
+
}, [C.current]);
|
22153
22155
|
M(() => {
|
22154
22156
|
const T = new ResizeObserver((I) => {
|
22155
22157
|
if (I?.length > 0 && l) {
|
22156
22158
|
const { height: y } = I[0].contentRect;
|
22157
|
-
|
22159
|
+
N.y + p.y + y > f.height && _({
|
22158
22160
|
x: p.x,
|
22159
|
-
y: f.height - y -
|
22161
|
+
y: f.height - y - N.y
|
22160
22162
|
});
|
22161
22163
|
}
|
22162
22164
|
});
|
22163
|
-
return T.observe(
|
22165
|
+
return T.observe(C.current), () => {
|
22164
22166
|
T.disconnect();
|
22165
22167
|
};
|
22166
|
-
}, [l, p, f,
|
22168
|
+
}, [l, p, f, N]);
|
22167
22169
|
const S = () => {
|
22168
22170
|
const T = {
|
22169
|
-
x:
|
22170
|
-
y:
|
22171
|
+
x: N.x + u.x,
|
22172
|
+
y: N.y + u.y
|
22171
22173
|
};
|
22172
22174
|
_({
|
22173
22175
|
x: u.x,
|
22174
22176
|
y: u.y
|
22175
22177
|
}), T.y > f.height - ys.height && _({
|
22176
22178
|
x: u.x,
|
22177
|
-
y: f.height - ys.height -
|
22179
|
+
y: f.height - ys.height - N.y
|
22178
22180
|
}), T.x > f.width - ys.width && _({
|
22179
|
-
x: f.width - ys.width -
|
22181
|
+
x: f.width - ys.width - N.x,
|
22180
22182
|
y: u.y
|
22181
22183
|
}), T.x > f.width - ys.width && T.y > f.height - ys.height && _({
|
22182
|
-
x: f.width - ys.width -
|
22183
|
-
y: f.height - ys.height -
|
22184
|
+
x: f.width - ys.width - N.x,
|
22185
|
+
y: f.height - ys.height - N.y
|
22184
22186
|
}), d(!0);
|
22185
22187
|
}, b = Fe((T) => {
|
22186
22188
|
T.stopPropagation(), d(!1);
|
22187
22189
|
}, []), A = (T, I) => {
|
22188
22190
|
const y = {
|
22189
|
-
x:
|
22190
|
-
y:
|
22191
|
+
x: N.x + I.x,
|
22192
|
+
y: N.y + I.y
|
22191
22193
|
};
|
22192
|
-
y.y < 0 || y.x < 0 || y.x + (
|
22194
|
+
y.y < 0 || y.x < 0 || y.x + (C.current?.getBoundingClientRect().width || 0) > f.width || y.y + (C.current?.getBoundingClientRect().height || 0) > f.height || m(I);
|
22193
22195
|
}, R = (T, I) => {
|
22194
22196
|
const y = {
|
22195
|
-
x:
|
22196
|
-
y:
|
22197
|
+
x: N.x + I.x,
|
22198
|
+
y: N.y + I.y
|
22197
22199
|
};
|
22198
|
-
y.y < 0 || y.x < 0 || y.x + (
|
22200
|
+
y.y < 0 || y.x < 0 || y.x + (C.current?.getBoundingClientRect().width || 0) > f.width || y.y + (C.current?.getBoundingClientRect().height || 0) > f.height || (_(I), m(I));
|
22199
22201
|
};
|
22200
22202
|
return l ? /* @__PURE__ */ t.jsx(
|
22201
22203
|
cr,
|
22202
22204
|
{
|
22203
22205
|
bounds: r,
|
22204
22206
|
handle: ".handle-drag",
|
22205
|
-
nodeRef:
|
22207
|
+
nodeRef: C,
|
22206
22208
|
position: p,
|
22207
22209
|
onDrag: R,
|
22208
22210
|
children: /* @__PURE__ */ t.jsx(
|
@@ -22213,7 +22215,7 @@ const jd = (e) => {
|
|
22213
22215
|
zIndex: e,
|
22214
22216
|
boxShadow: "0px 4px 8px 0px rgba(0, 0, 0, 0.25)"
|
22215
22217
|
},
|
22216
|
-
ref:
|
22218
|
+
ref: C,
|
22217
22219
|
children: /* @__PURE__ */ t.jsx(
|
22218
22220
|
KO,
|
22219
22221
|
{
|
@@ -22233,7 +22235,7 @@ const jd = (e) => {
|
|
22233
22235
|
{
|
22234
22236
|
bounds: r,
|
22235
22237
|
handle: ".handle-drag",
|
22236
|
-
nodeRef:
|
22238
|
+
nodeRef: C,
|
22237
22239
|
position: u,
|
22238
22240
|
onDrag: A,
|
22239
22241
|
children: /* @__PURE__ */ t.jsxs(
|
@@ -22241,7 +22243,7 @@ const jd = (e) => {
|
|
22241
22243
|
{
|
22242
22244
|
className: "bcn-7 dc__outline-none-imp dc__border-n0 br-48 flex h-40 pt-8 pb-8 pl-12 pr-12 dc__gap-8 dc__no-shrink dc__position-abs",
|
22243
22245
|
style: { zIndex: e, boxShadow: "0px 4px 8px 0px rgba(0, 0, 0, 0.20)" },
|
22244
|
-
ref:
|
22246
|
+
ref: C,
|
22245
22247
|
"data-testid": "collapsed-state",
|
22246
22248
|
children: [
|
22247
22249
|
/* @__PURE__ */ t.jsx("button", { type: "button", className: "dc__outline-none-imp dc__no-border p-0 bcn-7 h-24", children: /* @__PURE__ */ t.jsx(Bu, { className: "handle-drag dc__grabbable icon-dim-24 fcn-2" }) }),
|
@@ -22571,12 +22573,12 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22571
22573
|
M(() => {
|
22572
22574
|
if (!o.current || !r.current) return () => {
|
22573
22575
|
};
|
22574
|
-
const f = new ResizeObserver((
|
22575
|
-
let
|
22576
|
-
|
22576
|
+
const f = new ResizeObserver((C) => {
|
22577
|
+
let N = !1;
|
22578
|
+
C.forEach((S) => {
|
22577
22579
|
const { width: b } = S.contentRect;
|
22578
|
-
|
22579
|
-
}), d(
|
22580
|
+
N = r.current.getNodesBounds(u).width + Bo * 2 > b;
|
22581
|
+
}), d(N);
|
22580
22582
|
});
|
22581
22583
|
return f.observe(o.current), () => {
|
22582
22584
|
f.disconnect();
|
@@ -22584,16 +22586,16 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22584
22586
|
}, [r.current]);
|
22585
22587
|
const h = (f) => {
|
22586
22588
|
n(
|
22587
|
-
(
|
22589
|
+
(C) => Qf(f, Md(C, m)).map(
|
22588
22590
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
22589
|
-
({ position:
|
22591
|
+
({ position: N, ...S }) => S
|
22590
22592
|
)
|
22591
22593
|
);
|
22592
22594
|
}, E = (f) => {
|
22593
|
-
a((
|
22595
|
+
a((C) => Zf(f, Pd(C)).map(({ type: N, ...S }) => S));
|
22594
22596
|
}, x = (f) => {
|
22595
|
-
const
|
22596
|
-
|
22597
|
+
const C = r.current.getNodesBounds(u), N = f;
|
22598
|
+
N.x = Math.min(f.x, Dd.x), N.y = Math.abs(C.y - Ka), c(N);
|
22597
22599
|
}, g = async (f) => {
|
22598
22600
|
r.current = f, await f.setViewport(Dd);
|
22599
22601
|
};
|
@@ -22813,9 +22815,9 @@ const xw = async (e, s) => {
|
|
22813
22815
|
showGettingStartedCard: h
|
22814
22816
|
} = Ss(), { appTheme: E } = An(), x = np(), g = $(null), f = () => {
|
22815
22817
|
l();
|
22816
|
-
}, N = () => {
|
22817
|
-
g.current?.open();
|
22818
22818
|
}, C = () => {
|
22819
|
+
g.current?.open();
|
22820
|
+
}, N = () => {
|
22819
22821
|
u(!0);
|
22820
22822
|
}, S = (I, y) => {
|
22821
22823
|
x && !y.metaKey && (y.preventDefault(), p((v) => ({
|
@@ -22830,13 +22832,13 @@ const xw = async (e, s) => {
|
|
22830
22832
|
action: `HELP_${I.id.toUpperCase().replace("-", "_")}`
|
22831
22833
|
}), I.id) {
|
22832
22834
|
case xt.GETTING_STARTED:
|
22833
|
-
|
22835
|
+
N();
|
22834
22836
|
break;
|
22835
22837
|
case xt.ABOUT_DEVTRON:
|
22836
22838
|
f();
|
22837
22839
|
break;
|
22838
22840
|
case xt.GIVE_FEEDBACK:
|
22839
|
-
|
22841
|
+
C();
|
22840
22842
|
break;
|
22841
22843
|
case xt.VIEW_DOCUMENTATION:
|
22842
22844
|
S(I, y);
|
@@ -23049,7 +23051,7 @@ const xw = async (e, s) => {
|
|
23049
23051
|
onClose: l,
|
23050
23052
|
tippyProps: d
|
23051
23053
|
}) => {
|
23052
|
-
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ss(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = An(), { isTippyCustomized: x, tippyRedirectLink: g, TippyIcon: f, tippyMessage:
|
23054
|
+
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ss(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = An(), { isTippyCustomized: x, tippyRedirectLink: g, TippyIcon: f, tippyMessage: C, onClickTippyButton: N, additionalContent: S } = d || {}, { email: b } = Zi(), [A, R] = w(
|
23053
23055
|
{
|
23054
23056
|
serverInfo: void 0,
|
23055
23057
|
fetchingServerInfo: !1
|
@@ -23170,7 +23172,7 @@ const xw = async (e, s) => {
|
|
23170
23172
|
d && (x ? /* @__PURE__ */ t.jsx(
|
23171
23173
|
on,
|
23172
23174
|
{
|
23173
|
-
infoText:
|
23175
|
+
infoText: C,
|
23174
23176
|
heading: e,
|
23175
23177
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
23176
23178
|
documentationLink: g,
|
@@ -23185,7 +23187,7 @@ const xw = async (e, s) => {
|
|
23185
23187
|
className: "dc__link flex",
|
23186
23188
|
target: "_blank",
|
23187
23189
|
href: g,
|
23188
|
-
onClick:
|
23190
|
+
onClick: N,
|
23189
23191
|
rel: "noreferrer",
|
23190
23192
|
"aria-label": "tippy-icon",
|
23191
23193
|
children: /* @__PURE__ */ t.jsx(
|
@@ -23196,7 +23198,7 @@ const xw = async (e, s) => {
|
|
23196
23198
|
placement: "top",
|
23197
23199
|
content: /* @__PURE__ */ t.jsxs("span", { style: { display: "block", width: "66px" }, children: [
|
23198
23200
|
" ",
|
23199
|
-
|
23201
|
+
C,
|
23200
23202
|
" "
|
23201
23203
|
] }),
|
23202
23204
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(f, { className: "icon-dim-20 ml-8 cursor fcn-5" }) })
|
@@ -23825,17 +23827,17 @@ const $w = ({
|
|
23825
23827
|
validateDuplicateKeys: _ = !1,
|
23826
23828
|
validateEmptyKeys: h = !1
|
23827
23829
|
}) => {
|
23828
|
-
const [E, x] = w({}), [g, f] = w([]), { sortBy:
|
23830
|
+
const [E, x] = w({}), [g, f] = w([]), { sortBy: C, sortOrder: N, handleSorting: S } = uc({
|
23829
23831
|
initialSortKey: r ? "key" : null
|
23830
23832
|
}), b = X(
|
23831
23833
|
() => Yw({ rows: s, placeholder: n, maskValue: a }),
|
23832
|
-
[s, n, a, r,
|
23834
|
+
[s, n, a, r, N, C]
|
23833
23835
|
), A = () => {
|
23834
23836
|
r && f(
|
23835
23837
|
Ww({
|
23836
23838
|
rows: b,
|
23837
|
-
sortBy:
|
23838
|
-
sortOrder:
|
23839
|
+
sortBy: C,
|
23840
|
+
sortOrder: N
|
23839
23841
|
})
|
23840
23842
|
);
|
23841
23843
|
};
|
@@ -23856,7 +23858,7 @@ const $w = ({
|
|
23856
23858
|
f([...O, ...P]);
|
23857
23859
|
}, [b]), Pr(() => {
|
23858
23860
|
A();
|
23859
|
-
}, [
|
23861
|
+
}, [C, N]);
|
23860
23862
|
const R = (v) => {
|
23861
23863
|
const { isValid: j, updatedCellError: P } = Fd({
|
23862
23864
|
rows: v,
|
@@ -23894,8 +23896,8 @@ const $w = ({
|
|
23894
23896
|
isAdditionNotAllowed: c,
|
23895
23897
|
shouldAutoFocusOnMount: l,
|
23896
23898
|
sortingConfig: {
|
23897
|
-
sortBy:
|
23898
|
-
sortOrder:
|
23899
|
+
sortBy: C,
|
23900
|
+
sortOrder: N,
|
23899
23901
|
handleSorting: S
|
23900
23902
|
}
|
23901
23903
|
}
|
@@ -24018,8 +24020,8 @@ const qw = (e) => {
|
|
24018
24020
|
description: "License activated successfully",
|
24019
24021
|
variant: ve.success
|
24020
24022
|
}), a();
|
24021
|
-
} catch (
|
24022
|
-
|
24023
|
+
} catch (C) {
|
24024
|
+
C.code === Ft.BAD_REQUEST && m("Invalid license key"), Le(C);
|
24023
24025
|
} finally {
|
24024
24026
|
d(!1);
|
24025
24027
|
}
|
@@ -24103,7 +24105,7 @@ const qw = (e) => {
|
|
24103
24105
|
if (!E.current) return 0;
|
24104
24106
|
const T = E.current.getBoundingClientRect();
|
24105
24107
|
return -(R - T.top - T.height / 2) / Bd;
|
24106
|
-
}),
|
24108
|
+
}), C = ws(x, (R) => {
|
24107
24109
|
if (!E.current) return 0;
|
24108
24110
|
const T = E.current.getBoundingClientRect();
|
24109
24111
|
return (R - T.left - T.width / 2) / Bd;
|
@@ -24116,10 +24118,10 @@ const qw = (e) => {
|
|
24116
24118
|
window.removeEventListener("mousemove", R);
|
24117
24119
|
};
|
24118
24120
|
}, []);
|
24119
|
-
const
|
24120
|
-
[f,
|
24121
|
+
const N = ws(
|
24122
|
+
[f, C],
|
24121
24123
|
([R, T]) => R + T
|
24122
|
-
), S = ws(
|
24124
|
+
), S = ws(N, [-5, 5], [-100, 200]), b = ws(S, [-100, 50, 200], [0, h ? 0.25 : 0.1, 0]), A = h ? qc`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${b}) ${S}%, transparent)` : qc`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${b}) ${S}%, transparent)`;
|
24123
24125
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-8 br-16", style: { backgroundColor: d }, children: [
|
24124
24126
|
/* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
|
24125
24127
|
ke.div,
|
@@ -24128,7 +24130,7 @@ const qw = (e) => {
|
|
24128
24130
|
ref: E,
|
24129
24131
|
style: {
|
24130
24132
|
rotateX: f,
|
24131
|
-
rotateY:
|
24133
|
+
rotateY: C,
|
24132
24134
|
backgroundImage: A,
|
24133
24135
|
transformStyle: "preserve-3d",
|
24134
24136
|
transform: "translateZ(0)"
|
@@ -24894,12 +24896,12 @@ const mL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24894
24896
|
rootClassName: h = "",
|
24895
24897
|
showCardBorder: E = !1
|
24896
24898
|
}) => {
|
24897
|
-
const { appId: x } = Dt(), [g, f] = w(l || []), [
|
24899
|
+
const { appId: x } = Dt(), [g, f] = w(l || []), [C, N] = w(u || 0), [S, b] = w(
|
24898
24900
|
p || structuredClone(rL)
|
24899
24901
|
), A = $(new AbortController()), R = (se) => {
|
24900
24902
|
f(se), d?.(se);
|
24901
24903
|
}, T = (se) => {
|
24902
|
-
|
24904
|
+
N(se), m?.(se);
|
24903
24905
|
}, I = (se) => {
|
24904
24906
|
b(se), _?.(se);
|
24905
24907
|
}, { searchKey: y, selectedTags: v } = S || {}, j = () => Mr(
|
@@ -25023,7 +25025,7 @@ const mL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25023
25025
|
{
|
25024
25026
|
pluginDataStore: n,
|
25025
25027
|
pluginList: g,
|
25026
|
-
totalCount:
|
25028
|
+
totalCount: C,
|
25027
25029
|
handleDataUpdateForPluginResponse: be,
|
25028
25030
|
filters: S,
|
25029
25031
|
handlePluginSelection: de,
|
@@ -25394,17 +25396,17 @@ function OL({
|
|
25394
25396
|
}, x = d.current?.getBoundingClientRect().height ?? 0, g = d.current?.getBoundingClientRect().width ?? 0;
|
25395
25397
|
switch (h) {
|
25396
25398
|
case wr.PARENT_BOTTOM_CENTER: {
|
25397
|
-
const f = (E.width - g) / 2,
|
25399
|
+
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;
|
25398
25400
|
return { x: f, y: S };
|
25399
25401
|
}
|
25400
25402
|
case wr.SCREEN_BOTTOM_RIGHT: {
|
25401
|
-
const f = l.width - E.left - g - o,
|
25402
|
-
return { x: f, y:
|
25403
|
+
const f = l.width - E.left - g - o, C = l.height - E.top - x - o;
|
25404
|
+
return { x: f, y: C };
|
25403
25405
|
}
|
25404
25406
|
// Add more cases for other variants if needed
|
25405
25407
|
default: {
|
25406
|
-
const f = l.width / 2 - E.left - g / 2,
|
25407
|
-
return { x: f, y:
|
25408
|
+
const f = l.width / 2 - E.left - g / 2, C = l.height - E.top - x - o;
|
25409
|
+
return { x: f, y: C };
|
25408
25410
|
}
|
25409
25411
|
}
|
25410
25412
|
};
|
@@ -25413,8 +25415,8 @@ function OL({
|
|
25413
25415
|
m(h);
|
25414
25416
|
}, [d, n, l]);
|
25415
25417
|
function _(h, E) {
|
25416
|
-
const x = r?.current?.getBoundingClientRect().left ?? 0, g = r?.current?.getBoundingClientRect().top ?? 0, f = d.current?.getBoundingClientRect().height ?? 0,
|
25417
|
-
x + E.x +
|
25418
|
+
const x = r?.current?.getBoundingClientRect().left ?? 0, g = r?.current?.getBoundingClientRect().top ?? 0, f = d.current?.getBoundingClientRect().height ?? 0, C = d.current?.getBoundingClientRect().width ?? 0;
|
25419
|
+
x + E.x + C + o > l.width || g + E.y + f + o > l.height || x + E.x < 0 || g + E.y < 0 || m({
|
25418
25420
|
x: E.x,
|
25419
25421
|
y: E.y
|
25420
25422
|
});
|
@@ -25564,13 +25566,13 @@ const LL = ({
|
|
25564
25566
|
const { consecutiveSequencesForBulkSelection: g, activeRowIndex: f } = E("shift-arrow-down");
|
25565
25567
|
if (m === f)
|
25566
25568
|
return;
|
25567
|
-
const
|
25569
|
+
const C = a[m], N = a[f];
|
25568
25570
|
u({
|
25569
25571
|
action: $e.SELECT_IDENTIFIER,
|
25570
25572
|
data: {
|
25571
25573
|
identifierObject: {
|
25572
|
-
...g === 1 ? { [
|
25573
|
-
[
|
25574
|
+
...g === 1 ? { [C.id]: C } : {},
|
25575
|
+
[N.id]: N
|
25574
25576
|
}
|
25575
25577
|
}
|
25576
25578
|
});
|
@@ -25592,13 +25594,13 @@ const LL = ({
|
|
25592
25594
|
const { consecutiveSequencesForBulkSelection: g, activeRowIndex: f } = x("shift-arrow-up");
|
25593
25595
|
if (m === f)
|
25594
25596
|
return;
|
25595
|
-
const
|
25597
|
+
const C = a[m], N = a[f];
|
25596
25598
|
u({
|
25597
25599
|
action: $e.SELECT_IDENTIFIER,
|
25598
25600
|
data: {
|
25599
25601
|
identifierObject: {
|
25600
|
-
...g === 1 ? { [
|
25601
|
-
[
|
25602
|
+
...g === 1 ? { [C.id]: C } : {},
|
25603
|
+
[N.id]: N
|
25602
25604
|
}
|
25603
25605
|
}
|
25604
25606
|
});
|
@@ -25707,7 +25709,7 @@ const LL = ({
|
|
25707
25709
|
filteredRows: h,
|
25708
25710
|
areFilteredRowsLoading: E
|
25709
25711
|
}) => {
|
25710
|
-
const x = $(null), g = $(null), f = $(null),
|
25712
|
+
const x = $(null), g = $(null), f = $(null), C = $(null), [N, S] = w(null), [b, A] = w(!1), {
|
25711
25713
|
BulkActionsComponent: R,
|
25712
25714
|
bulkActionsData: T = null,
|
25713
25715
|
BulkOperationModal: I,
|
@@ -25748,7 +25750,7 @@ const LL = ({
|
|
25748
25750
|
const K = (re) => () => {
|
25749
25751
|
O(re);
|
25750
25752
|
}, Ce = (re) => {
|
25751
|
-
re && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && re.dataset.active === "true" && (re.focus({ preventScroll: !0 }), UL(re, x.current,
|
25753
|
+
re && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && re.dataset.active === "true" && (re.focus({ preventScroll: !0 }), UL(re, x.current, C.current?.offsetHeight), re.dataset.active = "false");
|
25752
25754
|
}, Ae = () => {
|
25753
25755
|
S(null);
|
25754
25756
|
}, at = () => be && s ? h : Object.values(Z), Ye = () => i ? za.map((re) => /* @__PURE__ */ t.jsxs(
|
@@ -25852,7 +25854,7 @@ const LL = ({
|
|
25852
25854
|
/* @__PURE__ */ t.jsx(
|
25853
25855
|
"div",
|
25854
25856
|
{
|
25855
|
-
ref:
|
25857
|
+
ref: C,
|
25856
25858
|
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",
|
25857
25859
|
children: i ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-12 dc__gap-16", children: [
|
25858
25860
|
ee ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
@@ -25947,10 +25949,10 @@ const LL = ({
|
|
25947
25949
|
pageSizeOptions: _
|
25948
25950
|
}
|
25949
25951
|
),
|
25950
|
-
|
25952
|
+
N && /* @__PURE__ */ t.jsx(
|
25951
25953
|
I,
|
25952
25954
|
{
|
25953
|
-
action:
|
25955
|
+
action: N,
|
25954
25956
|
onClose: Ae,
|
25955
25957
|
bulkOperationModalData: y,
|
25956
25958
|
isBulkSelectionApplied: be,
|
@@ -25980,8 +25982,8 @@ const LL = ({
|
|
25980
25982
|
bulkSelectionReturnValue: x,
|
25981
25983
|
handleClearBulkSelection: g,
|
25982
25984
|
handleToggleBulkSelectionOnRow: f,
|
25983
|
-
paginationVariant:
|
25984
|
-
RowActionsOnHoverComponent:
|
25985
|
+
paginationVariant: C,
|
25986
|
+
RowActionsOnHoverComponent: N,
|
25985
25987
|
pageSizeOptions: S,
|
25986
25988
|
clearFilters: b
|
25987
25989
|
}) => {
|
@@ -26033,8 +26035,8 @@ const LL = ({
|
|
26033
26035
|
});
|
26034
26036
|
}, [T, A, R, n, JSON.stringify(B), p]), ce = be || W === Yd, xe = X(() => {
|
26035
26037
|
const ne = Ee ?? [];
|
26036
|
-
return
|
26037
|
-
}, [
|
26038
|
+
return C !== Dr.PAGINATED ? ne : ne.slice(v, v + y);
|
26039
|
+
}, [C, v, y, Ee]);
|
26038
26040
|
M(() => {
|
26039
26041
|
ee?.(
|
26040
26042
|
xe.reduce((ne, me) => (ne[me.id] = me, ne), {})
|
@@ -26053,12 +26055,12 @@ const LL = ({
|
|
26053
26055
|
areFilteredRowsLoading: ce,
|
26054
26056
|
visibleColumns: p,
|
26055
26057
|
bulkSelectionReturnValue: x,
|
26056
|
-
paginationVariant:
|
26058
|
+
paginationVariant: C,
|
26057
26059
|
resizableConfig: i,
|
26058
26060
|
filterData: s,
|
26059
26061
|
handleClearBulkSelection: g,
|
26060
26062
|
handleToggleBulkSelectionOnRow: f,
|
26061
|
-
RowActionsOnHoverComponent:
|
26063
|
+
RowActionsOnHoverComponent: N,
|
26062
26064
|
additionalProps: l,
|
26063
26065
|
bulkSelectionConfig: E,
|
26064
26066
|
loading: h,
|
@@ -26514,14 +26516,14 @@ const LL = ({
|
|
26514
26516
|
}).forEach((k) => {
|
26515
26517
|
O[k] = !0;
|
26516
26518
|
}), O;
|
26517
|
-
}, [E, x] = w(null), g = $({}), [f,
|
26519
|
+
}, [E, x] = w(null), g = $({}), [f, C] = w(h), N = s ? n : f, S = c === "navigation" ? -1 : 0;
|
26518
26520
|
M(() => {
|
26519
26521
|
if (_) {
|
26520
26522
|
const O = Qd({
|
26521
26523
|
selectedId: a,
|
26522
26524
|
nodes: e
|
26523
26525
|
});
|
26524
|
-
|
26526
|
+
C((D) => {
|
26525
26527
|
const k = { ...D };
|
26526
26528
|
return O.forEach((B) => {
|
26527
26529
|
k[B] = !0;
|
@@ -26530,7 +26532,7 @@ const LL = ({
|
|
26530
26532
|
}
|
26531
26533
|
}, [a]);
|
26532
26534
|
const b = (O) => () => {
|
26533
|
-
s ? r(O) :
|
26535
|
+
s ? r(O) : C((D) => ({
|
26534
26536
|
...D,
|
26535
26537
|
[O.id]: !D[O.id]
|
26536
26538
|
}));
|
@@ -26546,8 +26548,8 @@ const LL = ({
|
|
26546
26548
|
}), x(null)), g.current[O] = D;
|
26547
26549
|
}, T = X(() => l || b_({
|
26548
26550
|
nodeList: e,
|
26549
|
-
expandedMap:
|
26550
|
-
}), [e,
|
26551
|
+
expandedMap: N
|
26552
|
+
}), [e, N, l]), I = (O) => {
|
26551
26553
|
if (c !== "navigation" || !_)
|
26552
26554
|
return;
|
26553
26555
|
const { key: D } = O;
|
@@ -26641,7 +26643,7 @@ const LL = ({
|
|
26641
26643
|
}
|
26642
26644
|
);
|
26643
26645
|
if (O.type === "heading") {
|
26644
|
-
const ee =
|
26646
|
+
const ee = N[O.id] ?? !1;
|
26645
26647
|
return /* @__PURE__ */ t.jsxs(
|
26646
26648
|
"div",
|
26647
26649
|
{
|
@@ -26711,7 +26713,7 @@ const LL = ({
|
|
26711
26713
|
children: O.items?.length ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col flex-grow-1", children: O.items.map((Z) => /* @__PURE__ */ t.jsx(
|
26712
26714
|
ZL,
|
26713
26715
|
{
|
26714
|
-
expandedMap:
|
26716
|
+
expandedMap: N,
|
26715
26717
|
selectedId: a,
|
26716
26718
|
isControlled: !0,
|
26717
26719
|
onToggle: A,
|
@@ -27065,9 +27067,9 @@ const LL = ({
|
|
27065
27067
|
), f = X(
|
27066
27068
|
() => cD({ currentPipelineType: E, isAppGroup: u }),
|
27067
27069
|
[E, u]
|
27068
|
-
),
|
27070
|
+
), C = () => {
|
27069
27071
|
p(), l();
|
27070
|
-
},
|
27072
|
+
}, N = () => {
|
27071
27073
|
if (o && i.find((y) => +y.id === o.appWorkflowId).nodes.some((y) => y.type === Ps.CD)) {
|
27072
27074
|
h(!0), vT(aD(o), {
|
27073
27075
|
isTemplateView: m
|
@@ -27075,7 +27077,7 @@ const LL = ({
|
|
27075
27077
|
y.result && (Ve.showToast({
|
27076
27078
|
variant: ve.success,
|
27077
27079
|
description: nu.SUCCESS_CHANGE_TO_WEBHOOK
|
27078
|
-
}), c(),
|
27080
|
+
}), c(), C());
|
27079
27081
|
}).catch((y) => {
|
27080
27082
|
Le(y), h(!1);
|
27081
27083
|
});
|
@@ -27088,7 +27090,7 @@ const LL = ({
|
|
27088
27090
|
T.stopPropagation();
|
27089
27091
|
const { pipelineType: I } = T.currentTarget.dataset;
|
27090
27092
|
if (I === hn.WEBHOOK) {
|
27091
|
-
|
27093
|
+
N();
|
27092
27094
|
return;
|
27093
27095
|
}
|
27094
27096
|
if (d && I === d.type) {
|
@@ -27098,7 +27100,7 @@ const LL = ({
|
|
27098
27100
|
s(I, o?.appWorkflowId ?? 0), p();
|
27099
27101
|
}, b = (T) => !r && T === lt.LINKED_CD ? eD : _ ? tD : null;
|
27100
27102
|
M(() => {
|
27101
|
-
o && i && (i.find((I) => +I.id === o.appWorkflowId) || (
|
27103
|
+
o && i && (i.find((I) => +I.id === o.appWorkflowId) || (C(), Ve.showToast({
|
27102
27104
|
variant: ve.error,
|
27103
27105
|
description: nu.WORKFLOW_NOT_AVAILABLE
|
27104
27106
|
})));
|
@@ -27125,8 +27127,8 @@ const LL = ({
|
|
27125
27127
|
{
|
27126
27128
|
name: "workflow-options-modal",
|
27127
27129
|
open: e,
|
27128
|
-
onClose: _ ? Ne :
|
27129
|
-
onEscape: _ ? Ne :
|
27130
|
+
onClose: _ ? Ne : C,
|
27131
|
+
onEscape: _ ? Ne : C,
|
27130
27132
|
width: 800,
|
27131
27133
|
closeOnBackdropClick: !0,
|
27132
27134
|
children: /* @__PURE__ */ t.jsx(ma.Body, { children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col h-500", children: [
|
@@ -28176,10 +28178,10 @@ const P4 = ({
|
|
28176
28178
|
l
|
28177
28179
|
);
|
28178
28180
|
if (g.errors) {
|
28179
|
-
const { errors: f } = g, { userMessage:
|
28181
|
+
const { errors: f } = g, { userMessage: C } = f[0];
|
28180
28182
|
Ve.showToast({
|
28181
28183
|
variant: ve.error,
|
28182
|
-
description:
|
28184
|
+
description: C
|
28183
28185
|
});
|
28184
28186
|
return;
|
28185
28187
|
}
|
@@ -28557,7 +28559,7 @@ const $D = (e) => {
|
|
28557
28559
|
}, f = () => {
|
28558
28560
|
let b = !0;
|
28559
28561
|
h && (b = window.confirm(UD)), b && (_(e), m(e ? "previewSaved" : "empty"));
|
28560
|
-
},
|
28562
|
+
}, C = async () => {
|
28561
28563
|
const b = p.trim();
|
28562
28564
|
if (g(b))
|
28563
28565
|
try {
|
@@ -28567,7 +28569,7 @@ const $D = (e) => {
|
|
28567
28569
|
} finally {
|
28568
28570
|
d(!1);
|
28569
28571
|
}
|
28570
|
-
},
|
28572
|
+
}, N = () => {
|
28571
28573
|
m(_n.WRITE);
|
28572
28574
|
}, S = (b) => {
|
28573
28575
|
m(b);
|
@@ -28585,7 +28587,7 @@ const $D = (e) => {
|
|
28585
28587
|
{
|
28586
28588
|
dataTestId: "edit-description",
|
28587
28589
|
startIcon: /* @__PURE__ */ t.jsx(F, { name: "ic-pencil", color: null }),
|
28588
|
-
onClick:
|
28590
|
+
onClick: N,
|
28589
28591
|
text: "Write",
|
28590
28592
|
variant: z.secondary,
|
28591
28593
|
size: L.medium
|
@@ -28612,7 +28614,7 @@ const $D = (e) => {
|
|
28612
28614
|
{
|
28613
28615
|
"data-testid": "description-edit-button",
|
28614
28616
|
className: "dc__align-right pencil-icon cursor flex fw-6 cn-7",
|
28615
|
-
onClick:
|
28617
|
+
onClick: N,
|
28616
28618
|
children: [
|
28617
28619
|
/* @__PURE__ */ t.jsx(Yr, { className: "icon-dim-16 mr-4 scn-7" }),
|
28618
28620
|
" Edit"
|
@@ -28688,7 +28690,7 @@ const $D = (e) => {
|
|
28688
28690
|
dataTestId: "description-edit-save-button",
|
28689
28691
|
text: "Save",
|
28690
28692
|
isLoading: l,
|
28691
|
-
onClick:
|
28693
|
+
onClick: C,
|
28692
28694
|
buttonProps: {
|
28693
28695
|
type: "submit"
|
28694
28696
|
}
|
@@ -28740,21 +28742,21 @@ const w_ = ({
|
|
28740
28742
|
forceReInit: m,
|
28741
28743
|
isSuperAdmin: p
|
28742
28744
|
}) => {
|
28743
|
-
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [
|
28745
|
+
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [C, N] = w(n ? n.comment : ""), [S, b] = w(!1), [A, R] = w(!1), [T, I] = w(a || []), [y, v] = w(""), [j, P] = w([]), [O, D] = w([]), [k, B] = w([]), [G, ee] = w(""), [Z, be] = w(""), [Ee, W] = w(!1);
|
28744
28746
|
M(() => {
|
28745
28747
|
ie();
|
28746
28748
|
}, [a, n, c]), M(() => {
|
28747
28749
|
f(o || []);
|
28748
28750
|
}, [o]);
|
28749
28751
|
const ie = () => {
|
28750
|
-
(m || !S) && (h(a || []), x(n ? n.comment : ""),
|
28752
|
+
(m || !S) && (h(a || []), x(n ? n.comment : ""), N(n ? n.comment : ""), I(a || []), b(!1));
|
28751
28753
|
}, ce = () => {
|
28752
28754
|
b(!S), typeof d == "function" && d(s);
|
28753
28755
|
}, xe = (V) => {
|
28754
28756
|
const he = V.target.value;
|
28755
|
-
he?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""),
|
28757
|
+
he?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""), N(he);
|
28756
28758
|
}, de = () => {
|
28757
|
-
I(_),
|
28759
|
+
I(_), N(E), P([]), D([]), B([]), ce(), R(!1), v("");
|
28758
28760
|
}, se = (V) => {
|
28759
28761
|
if (V.length == 0 || V.length >= 128 || V[0] == "." || V[0] == "-")
|
28760
28762
|
return v("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
@@ -28816,7 +28818,7 @@ const w_ = ({
|
|
28816
28818
|
softDeleteTags: O,
|
28817
28819
|
imageComment: {
|
28818
28820
|
id: 0,
|
28819
|
-
comment:
|
28821
|
+
comment: C.trim(),
|
28820
28822
|
artifactId: 0
|
28821
28823
|
},
|
28822
28824
|
hardDeleteTags: k
|
@@ -28829,7 +28831,7 @@ const w_ = ({
|
|
28829
28831
|
appId: 0,
|
28830
28832
|
artifactId: 0
|
28831
28833
|
}));
|
28832
|
-
i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(Me), x(ue.result?.imageComment?.comment), I(Me),
|
28834
|
+
i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(Me), x(ue.result?.imageComment?.comment), I(Me), N(ue.result?.imageComment?.comment), P([]), D([]), B([]), ce(), R(!1), v(""), r && r(s, Me, ue.result?.imageComment);
|
28833
28835
|
}).catch((ue) => {
|
28834
28836
|
ue.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Ve.showToast({
|
28835
28837
|
variant: ve.error,
|
@@ -28854,7 +28856,7 @@ const w_ = ({
|
|
28854
28856
|
/* @__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." })
|
28855
28857
|
] })
|
28856
28858
|
] }), Ye = $(null);
|
28857
|
-
if (
|
28859
|
+
if (C === "" && T.length === 0 && !S)
|
28858
28860
|
return c ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 flexbox", children: /* @__PURE__ */ t.jsx(BD, { handleEditClick: ce }) }) : /* @__PURE__ */ t.jsx("div", {});
|
28859
28861
|
const re = (V) => {
|
28860
28862
|
V.key === "Enter" && V.target.value.trim() && ne(V.target.value.trim());
|
@@ -28934,7 +28936,7 @@ const w_ = ({
|
|
28934
28936
|
_o,
|
28935
28937
|
{
|
28936
28938
|
label: "Comment",
|
28937
|
-
value:
|
28939
|
+
value: C,
|
28938
28940
|
onChange: xe,
|
28939
28941
|
placeholder: "Enter comment",
|
28940
28942
|
name: "add-image-comment-text-area",
|
@@ -29198,22 +29200,22 @@ const qD = (e) => {
|
|
29198
29200
|
M(() => {
|
29199
29201
|
_.current.value = e, p(!!e);
|
29200
29202
|
}, [e]);
|
29201
|
-
const E = (
|
29202
|
-
s(
|
29203
|
+
const E = (N) => {
|
29204
|
+
s(N), n(N);
|
29203
29205
|
}, x = () => {
|
29204
29206
|
_.current.value = "", E(""), p(!1);
|
29205
|
-
}, g = (
|
29206
|
-
const { value: S } =
|
29207
|
+
}, g = (N) => {
|
29208
|
+
const { value: S } = N.target;
|
29207
29209
|
p(!!S), o ? h(S) : s(S);
|
29208
|
-
}, f = (
|
29209
|
-
const { key: S } =
|
29210
|
+
}, f = (N) => {
|
29211
|
+
const { key: S } = N;
|
29210
29212
|
if (S === "Enter") {
|
29211
|
-
|
29212
|
-
const A =
|
29213
|
+
N.preventDefault();
|
29214
|
+
const A = N.target.value.trim();
|
29213
29215
|
E(A);
|
29214
29216
|
}
|
29215
|
-
},
|
29216
|
-
a.ref && (a.ref.current =
|
29217
|
+
}, C = (N = null) => {
|
29218
|
+
a.ref && (a.ref.current = N), _.current = N;
|
29217
29219
|
};
|
29218
29220
|
return /* @__PURE__ */ t.jsx("div", { className: `search-bar-container ${r || ""}`, children: /* @__PURE__ */ t.jsxs(
|
29219
29221
|
"div",
|
@@ -29232,7 +29234,7 @@ const qD = (e) => {
|
|
29232
29234
|
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"}`,
|
29233
29235
|
onChange: g,
|
29234
29236
|
onKeyDown: f,
|
29235
|
-
ref:
|
29237
|
+
ref: C
|
29236
29238
|
}
|
29237
29239
|
),
|
29238
29240
|
m ? /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
@@ -29371,11 +29373,11 @@ const Pn = ({
|
|
29371
29373
|
}, [m]), useEffectAfterMount(() => {
|
29372
29374
|
p(n);
|
29373
29375
|
}, [n]);
|
29374
|
-
function
|
29376
|
+
function C(R, T) {
|
29375
29377
|
p(T), R.target.name = c, R.target.value = T, s(R);
|
29376
29378
|
}
|
29377
29379
|
if (!e) return null;
|
29378
|
-
const { button:
|
29380
|
+
const { button: N, body: S, optionLength: b, AsyncComponent: A } = Be.Children.toArray(e).reduce(
|
29379
29381
|
(R, T) => (T.type === U_ ? R.button = T : T.type === $_ ? R.AsyncComponent = T : ((T.type === M_ || T.type === k_) && (R.optionLength += 1), R.body.push(T)), R),
|
29380
29382
|
{ button: null, body: [], optionLength: 0, AsyncComponent: null }
|
29381
29383
|
);
|
@@ -29389,7 +29391,7 @@ const Pn = ({
|
|
29389
29391
|
valueComparator: a,
|
29390
29392
|
searchString: E,
|
29391
29393
|
search: x,
|
29392
|
-
handleClick:
|
29394
|
+
handleClick: C,
|
29393
29395
|
disabled: o,
|
29394
29396
|
loading: g,
|
29395
29397
|
setLoading: f
|
@@ -29403,7 +29405,7 @@ const Pn = ({
|
|
29403
29405
|
tabIndex: i,
|
29404
29406
|
rootClassName: r,
|
29405
29407
|
dataTestId: u,
|
29406
|
-
children:
|
29408
|
+
children: N
|
29407
29409
|
}
|
29408
29410
|
),
|
29409
29411
|
_ && A,
|