@devtron-labs/devtron-fe-common-lib 1.18.0-alpha-6 → 1.18.0-alpha-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-BfmI8x1s.js → @code-editor-BdtT_76p.js} +672 -664
- package/dist/{@common-rjsf-BoIeo5pm.js → @common-rjsf-H6egnztj.js} +1 -1
- package/dist/Shared/Components/Chip/Chip.component.d.ts +1 -1
- package/dist/Shared/Components/Chip/types.d.ts +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
@@ -2470,26 +2470,33 @@ const Bs = {
|
|
2470
2470
|
style: o = "neutral",
|
2471
2471
|
type: i = "non-interactive",
|
2472
2472
|
onClick: c,
|
2473
|
-
|
2473
|
+
capitalizeLabel: l = !1,
|
2474
|
+
href: d
|
2474
2475
|
}) => {
|
2475
|
-
const
|
2476
|
-
o === "error" && g && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size:
|
2477
|
-
(o === "neutral" || o === "error" && !g) && s && /* @__PURE__ */ t.jsx(F, { ...s, size:
|
2478
|
-
/* @__PURE__ */ t.jsx(
|
2479
|
-
|
2476
|
+
const u = aS(n), m = tS(u), p = sS(u), _ = nS(u), h = (g = !0) => /* @__PURE__ */ t.jsxs("div", { className: `flex dc__gap-4 ${p} dc__no-shrink dc__mxw-120`, children: [
|
2477
|
+
o === "error" && g && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size: m }),
|
2478
|
+
(o === "neutral" || o === "error" && !g) && s && /* @__PURE__ */ t.jsx(F, { ...s, size: m }),
|
2479
|
+
/* @__PURE__ */ t.jsx(
|
2480
|
+
"span",
|
2481
|
+
{
|
2482
|
+
className: `${_} ${l ? "dc__capitalize" : ""} cn-9 ${g ? "fw-4" : "fw-6"} dc__open-sans dc__truncate`,
|
2483
|
+
children: e
|
2484
|
+
}
|
2485
|
+
)
|
2486
|
+
] }), E = () => (
|
2480
2487
|
// NOTE: always render label and value in a fragment or an element to ensure consistent structure
|
2481
2488
|
/* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2482
|
-
|
2483
|
-
a && /* @__PURE__ */ t.jsxs("div", { className: `flex border__secondary--left dc__gap-4 ${
|
2484
|
-
o === "error" && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size:
|
2485
|
-
/* @__PURE__ */ t.jsx("span", { className: `${
|
2489
|
+
h(!a),
|
2490
|
+
a && /* @__PURE__ */ t.jsxs("div", { className: `flex border__secondary--left dc__gap-4 ${p}`, children: [
|
2491
|
+
o === "error" && /* @__PURE__ */ t.jsx(F, { name: "ic-error", color: "R500", size: m }),
|
2492
|
+
/* @__PURE__ */ t.jsx("span", { className: `${_} cn-9 fw-4 dc__open-sans dc__truncate`, children: a })
|
2486
2493
|
] })
|
2487
2494
|
] })
|
2488
|
-
),
|
2495
|
+
), x = (g) => {
|
2489
2496
|
g.stopPropagation(), r(g);
|
2490
2497
|
};
|
2491
|
-
return /* @__PURE__ */ t.jsxs(rS, { style: o, type: i, onClick: c, href:
|
2492
|
-
|
2498
|
+
return /* @__PURE__ */ t.jsxs(rS, { style: o, type: i, onClick: c, href: d, size: u, children: [
|
2499
|
+
E(),
|
2493
2500
|
r && /* @__PURE__ */ t.jsx(
|
2494
2501
|
H,
|
2495
2502
|
{
|
@@ -2499,8 +2506,8 @@ const Bs = {
|
|
2499
2506
|
showAriaLabelInTippy: !1,
|
2500
2507
|
ariaLabel: "Remove filter",
|
2501
2508
|
icon: /* @__PURE__ */ t.jsx(F, { name: "ic-close-small", color: null }),
|
2502
|
-
size:
|
2503
|
-
onClick:
|
2509
|
+
size: u,
|
2510
|
+
onClick: x,
|
2504
2511
|
buttonProps: {
|
2505
2512
|
onMouseDown: (g) => {
|
2506
2513
|
g.preventDefault(), g.stopPropagation();
|
@@ -2512,14 +2519,14 @@ const Bs = {
|
|
2512
2519
|
H,
|
2513
2520
|
{
|
2514
2521
|
component: ut.link,
|
2515
|
-
linkProps: { to:
|
2522
|
+
linkProps: { to: d },
|
2516
2523
|
variant: z.borderLess,
|
2517
2524
|
style: oe.neutral,
|
2518
2525
|
dataTestId: "chip__visit-link",
|
2519
2526
|
showAriaLabelInTippy: !1,
|
2520
2527
|
ariaLabel: "Visit link",
|
2521
2528
|
icon: /* @__PURE__ */ t.jsx(F, { name: "ic-arrow-square-out", color: null }),
|
2522
|
-
size:
|
2529
|
+
size: u
|
2523
2530
|
}
|
2524
2531
|
)
|
2525
2532
|
] });
|
@@ -2915,9 +2922,9 @@ const dl = (e) => {
|
|
2915
2922
|
selectOption: i,
|
2916
2923
|
isDisabled: c,
|
2917
2924
|
isSelected: l
|
2918
|
-
} = s, { description: d, startIcon: u, endIcon: m, tooltipProps: p } = a ?? {}, _ = !!d, h = "__isNew__" in a && a.__isNew__, E = (
|
2919
|
-
|
2920
|
-
},
|
2925
|
+
} = s, { description: d, startIcon: u, endIcon: m, tooltipProps: p } = a ?? {}, _ = !!d, h = "__isNew__" in a && a.__isNew__, E = (g) => {
|
2926
|
+
g.preventDefault(), g.stopPropagation(), i(a);
|
2927
|
+
}, x = "dc__no-shrink icon-dim-16 flex dc__fill-available-space";
|
2921
2928
|
return /* @__PURE__ */ t.jsx(qe.Option, { ...s, children: /* @__PURE__ */ t.jsx(ee, { ...Lm(p), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2922
2929
|
r && o && !h && /* @__PURE__ */ t.jsx(
|
2923
2930
|
vs,
|
@@ -2931,7 +2938,7 @@ const dl = (e) => {
|
|
2931
2938
|
}
|
2932
2939
|
),
|
2933
2940
|
/* @__PURE__ */ t.jsxs("div", { className: `flex left w-100 ${_ ? "top" : ""} dc__gap-8`, children: [
|
2934
|
-
u && /* @__PURE__ */ t.jsx("div", { className: `${
|
2941
|
+
u && /* @__PURE__ */ t.jsx("div", { className: `${x} mt-2`, children: u }),
|
2935
2942
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-grow-1", children: [
|
2936
2943
|
/* @__PURE__ */ t.jsx(
|
2937
2944
|
ee,
|
@@ -2957,7 +2964,7 @@ const dl = (e) => {
|
|
2957
2964
|
}
|
2958
2965
|
) : /* @__PURE__ */ t.jsx("div", { className: "fs-12 lh-18", children: d }))
|
2959
2966
|
] }),
|
2960
|
-
m && /* @__PURE__ */ t.jsx("div", { className:
|
2967
|
+
m && /* @__PURE__ */ t.jsx("div", { className: x, children: m })
|
2961
2968
|
] })
|
2962
2969
|
] }) }) });
|
2963
2970
|
}, Dm = ({
|
@@ -3230,8 +3237,8 @@ const dl = (e) => {
|
|
3230
3237
|
menuPosition: _ = "fixed",
|
3231
3238
|
variant: h = Ht.DEFAULT,
|
3232
3239
|
disableDescriptionEllipsis: E = !1,
|
3233
|
-
multiSelectProps:
|
3234
|
-
isMulti:
|
3240
|
+
multiSelectProps: x = {},
|
3241
|
+
isMulti: g,
|
3235
3242
|
name: f,
|
3236
3243
|
classNamePrefix: N,
|
3237
3244
|
shouldRenderCustomOptions: C = !1,
|
@@ -3273,7 +3280,7 @@ const dl = (e) => {
|
|
3273
3280
|
isGroupHeadingSelectable: he = !1,
|
3274
3281
|
getIsOptionValid: ue = () => !0,
|
3275
3282
|
customDisplayText: Me = null
|
3276
|
-
} =
|
3283
|
+
} = x, We = re && !Me, ft = !g && i, ls = !C && S, cn = j ?? !g, wa = X(
|
3277
3284
|
() => dS({
|
3278
3285
|
error: e,
|
3279
3286
|
size: c,
|
@@ -3326,7 +3333,7 @@ const dl = (e) => {
|
|
3326
3333
|
}, X_ = (Oe) => {
|
3327
3334
|
le(!1), de.onBlur?.(Oe);
|
3328
3335
|
}, J_ = (...Oe) => {
|
3329
|
-
|
3336
|
+
g && os(de.inputValue) && Ce(K), de.onChange?.(...Oe);
|
3330
3337
|
};
|
3331
3338
|
return M(() => {
|
3332
3339
|
ce && setTimeout(() => {
|
@@ -3363,7 +3370,7 @@ const dl = (e) => {
|
|
3363
3370
|
}),
|
3364
3371
|
classNames: {
|
3365
3372
|
control: () => Qr({ borderConfig: J, borderRadiusConfig: be }),
|
3366
|
-
...
|
3373
|
+
...g ? {
|
3367
3374
|
option: () => "checkbox__parent-container",
|
3368
3375
|
...he ? { groupHeading: () => "checkbox__parent-container" } : {}
|
3369
3376
|
} : {},
|
@@ -3377,10 +3384,10 @@ const dl = (e) => {
|
|
3377
3384
|
menuPlacement: "auto",
|
3378
3385
|
menuPosition: _,
|
3379
3386
|
menuShouldScrollIntoView: !0,
|
3380
|
-
backspaceRemovesValue:
|
3387
|
+
backspaceRemovesValue: g && We,
|
3381
3388
|
hideSelectedOptions: !1,
|
3382
3389
|
shouldRenderCustomOptions: C || !1,
|
3383
|
-
isMulti:
|
3390
|
+
isMulti: g,
|
3384
3391
|
ref: ne,
|
3385
3392
|
components: {
|
3386
3393
|
IndicatorSeparator: null,
|
@@ -3436,13 +3443,13 @@ const dl = (e) => {
|
|
3436
3443
|
}) => {
|
3437
3444
|
const i = $(), [c, l] = w(a), { triggerAutoClickTimestamp: d, setTriggerAutoClickTimestampToNow: u, resetTriggerAutoClickTimestamp: m } = VI(), [p, _] = w(
|
3438
3445
|
structuredClone(e ?? [])
|
3439
|
-
), { registerShortcut: h, unregisterShortcut: E } = wn(),
|
3446
|
+
), { registerShortcut: h, unregisterShortcut: E } = wn(), x = e?.length ?? 0;
|
3440
3447
|
M(() => {
|
3441
3448
|
_(e ?? []);
|
3442
3449
|
}, [e]);
|
3443
|
-
const
|
3444
|
-
() =>
|
3445
|
-
[
|
3450
|
+
const g = X(
|
3451
|
+
() => x ? /* @__PURE__ */ t.jsx($u, { className: "p-2" }) : /* @__PURE__ */ t.jsx(Uu, { className: "p-2 scn-6" }),
|
3452
|
+
[x]
|
3446
3453
|
), f = () => {
|
3447
3454
|
l(!0);
|
3448
3455
|
}, N = () => {
|
@@ -3491,8 +3498,8 @@ const dl = (e) => {
|
|
3491
3498
|
showSelectedOptionsCount: !0,
|
3492
3499
|
isSearchable: !0,
|
3493
3500
|
isClearable: !1,
|
3494
|
-
customSelectedOptionsCount:
|
3495
|
-
icon:
|
3501
|
+
customSelectedOptionsCount: x,
|
3502
|
+
icon: g
|
3496
3503
|
}
|
3497
3504
|
) });
|
3498
3505
|
}, Um = (e) => /* @__PURE__ */ t.jsx(lc, { ignoreTags: [], children: /* @__PURE__ */ t.jsx(SS, { ...e }) }), vS = {
|
@@ -3515,8 +3522,8 @@ const dl = (e) => {
|
|
3515
3522
|
borderRadiusConfig: _,
|
3516
3523
|
type: h = "text",
|
3517
3524
|
autoFocus: E = !1,
|
3518
|
-
endIconButtonConfig:
|
3519
|
-
labelTippyCustomizedConfig:
|
3525
|
+
endIconButtonConfig: x,
|
3526
|
+
labelTippyCustomizedConfig: g,
|
3520
3527
|
labelTooltipConfig: f,
|
3521
3528
|
inputRef: N,
|
3522
3529
|
hideFormFieldInfo: C,
|
@@ -3535,7 +3542,7 @@ const dl = (e) => {
|
|
3535
3542
|
}
|
3536
3543
|
l?.(y);
|
3537
3544
|
}, T = (y) => {
|
3538
|
-
y.stopPropagation(), A.current.focus(),
|
3545
|
+
y.stopPropagation(), A.current.focus(), x?.onClick(y);
|
3539
3546
|
}, I = (y) => {
|
3540
3547
|
y.key === "Escape" && A.current.blur(), S.onKeyDown?.(y);
|
3541
3548
|
};
|
@@ -3553,7 +3560,7 @@ const dl = (e) => {
|
|
3553
3560
|
ariaLabel: m,
|
3554
3561
|
borderConfig: p,
|
3555
3562
|
borderRadiusConfig: _,
|
3556
|
-
labelTippyCustomizedConfig:
|
3563
|
+
labelTippyCustomizedConfig: g,
|
3557
3564
|
labelTooltipConfig: f,
|
3558
3565
|
hideFormFieldInfo: C,
|
3559
3566
|
children: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -3579,14 +3586,14 @@ const dl = (e) => {
|
|
3579
3586
|
onKeyDown: I,
|
3580
3587
|
type: h,
|
3581
3588
|
ref: A,
|
3582
|
-
className: `${ns[u]} ${um[u]} ${Qr({ borderConfig: p, borderRadiusConfig: _ })} ${
|
3589
|
+
className: `${ns[u]} ${um[u]} ${Qr({ borderConfig: p, borderRadiusConfig: _ })} ${x ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
3583
3590
|
}
|
3584
3591
|
),
|
3585
|
-
|
3592
|
+
x && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink dc__position-abs custom-input__icon-button--${u}`, children: /* @__PURE__ */ t.jsx(
|
3586
3593
|
H,
|
3587
3594
|
{
|
3588
3595
|
style: oe.neutral,
|
3589
|
-
...
|
3596
|
+
...x,
|
3590
3597
|
dataTestId: `${e}-end-icon`,
|
3591
3598
|
variant: z.borderLess,
|
3592
3599
|
size: vS[u],
|
@@ -3797,7 +3804,7 @@ const dl = (e) => {
|
|
3797
3804
|
onTriggerKeyDown: c,
|
3798
3805
|
disableClose: l = !1
|
3799
3806
|
}) => {
|
3800
|
-
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E,
|
3807
|
+
const [d, u] = w(!1), [m, p] = w(s), [_, h] = w(n), [E, x] = w(null), [g, f] = w(!1), N = a === "auto", C = $(null), S = $(null), b = $(null), A = (j) => {
|
3801
3808
|
u(j), o?.(j);
|
3802
3809
|
}, R = () => {
|
3803
3810
|
A(!d);
|
@@ -3811,7 +3818,7 @@ const dl = (e) => {
|
|
3811
3818
|
T();
|
3812
3819
|
};
|
3813
3820
|
return Mi(() => {
|
3814
|
-
if (!d || !
|
3821
|
+
if (!d || !g || !C.current || !S.current || !b.current)
|
3815
3822
|
return;
|
3816
3823
|
const j = () => {
|
3817
3824
|
const O = C.current.getBoundingClientRect(), D = S.current.getBoundingClientRect(), { fallbackPosition: k, fallbackAlignment: B } = OS({
|
@@ -3820,7 +3827,7 @@ const dl = (e) => {
|
|
3820
3827
|
triggerRect: O,
|
3821
3828
|
popoverRect: D
|
3822
3829
|
});
|
3823
|
-
p(k), h(B),
|
3830
|
+
p(k), h(B), x({
|
3824
3831
|
left: O.left,
|
3825
3832
|
top: O.top,
|
3826
3833
|
height: O.height,
|
@@ -3836,7 +3843,7 @@ const dl = (e) => {
|
|
3836
3843
|
return b.current.addEventListener("wheel", P, { passive: !1 }), window.addEventListener("resize", j), () => {
|
3837
3844
|
b.current.removeEventListener("wheel", P), window.removeEventListener("resize", j);
|
3838
3845
|
};
|
3839
|
-
}, [d, s, n,
|
3846
|
+
}, [d, s, n, g]), {
|
3840
3847
|
open: d,
|
3841
3848
|
triggerProps: {
|
3842
3849
|
ref: C,
|
@@ -4070,7 +4077,7 @@ const dl = (e) => {
|
|
4070
4077
|
onChange: _,
|
4071
4078
|
autoFocus: h = !1
|
4072
4079
|
}) => {
|
4073
|
-
const E = $(Lt()),
|
4080
|
+
const E = $(Lt()), g = a ? d ? "mixed" : !0 : !1, f = g === "mixed", N = ZS({ isChecked: a, shape: o, size: u, indeterminate: d, isLoading: n }), C = () => /* @__PURE__ */ t.jsx(
|
4074
4081
|
"span",
|
4075
4082
|
{
|
4076
4083
|
className: `flexbox flex-grow-1 ${!n && f ? "dc__align-items-center" : ""} ${QS({ shape: o, isLoading: n })}`,
|
@@ -4132,7 +4139,7 @@ const dl = (e) => {
|
|
4132
4139
|
type: "button",
|
4133
4140
|
role: "checkbox",
|
4134
4141
|
autoFocus: h,
|
4135
|
-
"aria-checked":
|
4142
|
+
"aria-checked": g,
|
4136
4143
|
"aria-labelledby": E.current,
|
4137
4144
|
"aria-label": n ? "Loading..." : e,
|
4138
4145
|
"data-testid": p,
|
@@ -4209,14 +4216,14 @@ const dl = (e) => {
|
|
4209
4216
|
type: p = "neutral",
|
4210
4217
|
isDisabled: _,
|
4211
4218
|
componentType: h = "button"
|
4212
|
-
} = e, { isEnterprise: E } = Ss(),
|
4219
|
+
} = e, { isEnterprise: E } = Ss(), x = (R) => {
|
4213
4220
|
n && R && R.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
4214
|
-
},
|
4221
|
+
}, g = p === "negative", f = `w-100 flex left top dc__gap-8 py-6 px-8 ${_ ? "dc__disabled" : "cursor"}`, N = (R) => {
|
4215
4222
|
_ || a(e, R);
|
4216
|
-
}, C = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(F, { ...R, color: R.color || (
|
4223
|
+
}, C = (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(li, { ...u, variant: p }) : null, b = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
4217
4224
|
C(d),
|
4218
4225
|
/* @__PURE__ */ t.jsxs("span", { className: "flex-grow-1", children: [
|
4219
|
-
/* @__PURE__ */ t.jsx(ee, { content: l, placement: "right", children: /* @__PURE__ */ t.jsx("span", { className: `m-0 fs-13 fw-4 lh-20 dc__truncate ${
|
4226
|
+
/* @__PURE__ */ t.jsx(ee, { 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 }) }),
|
4220
4227
|
c && (typeof c == "string" ? /* @__PURE__ */ t.jsx(
|
4221
4228
|
"span",
|
4222
4229
|
{
|
@@ -4272,12 +4279,12 @@ const dl = (e) => {
|
|
4272
4279
|
return /* @__PURE__ */ t.jsx(ee, { ...Lm(m), children: /* @__PURE__ */ t.jsx(
|
4273
4280
|
"li",
|
4274
4281
|
{
|
4275
|
-
ref:
|
4282
|
+
ref: x,
|
4276
4283
|
role: "menuitem",
|
4277
4284
|
"data-testid": `action-menu-item-${i}`,
|
4278
4285
|
onMouseEnter: r,
|
4279
4286
|
tabIndex: -1,
|
4280
|
-
className: `action-menu__option br-4 mr-4 ml-4 ${!_ && (
|
4287
|
+
className: `action-menu__option br-4 mr-4 ml-4 ${!_ && (g ? "dc__hover-r50" : "dc__hover-n50") || ""} ${n ? `action-menu__option--focused${g ? "-negative" : ""}` : ""}`,
|
4281
4288
|
"aria-disabled": _,
|
4282
4289
|
children: A()
|
4283
4290
|
}
|
@@ -4321,7 +4328,7 @@ const dl = (e) => {
|
|
4321
4328
|
if (I = (I + T + y) % y, !p[I]?.option?.isDisabled)
|
4322
4329
|
return I;
|
4323
4330
|
return R;
|
4324
|
-
},
|
4331
|
+
}, x = (R, T, I) => {
|
4325
4332
|
if (R.stopPropagation(), T)
|
4326
4333
|
switch (R.key) {
|
4327
4334
|
case "Escape":
|
@@ -4346,7 +4353,7 @@ const dl = (e) => {
|
|
4346
4353
|
break;
|
4347
4354
|
}
|
4348
4355
|
}
|
4349
|
-
},
|
4356
|
+
}, g = (R, T) => {
|
4350
4357
|
!T && (R.key === "Enter" || R.key === " ") && l(0);
|
4351
4358
|
}, { open: f, closePopover: N, overlayProps: C, popoverProps: S, triggerProps: b, scrollableRef: A } = nc({
|
4352
4359
|
id: e,
|
@@ -4354,8 +4361,8 @@ const dl = (e) => {
|
|
4354
4361
|
alignment: n,
|
4355
4362
|
width: a,
|
4356
4363
|
onOpen: i,
|
4357
|
-
onPopoverKeyDown:
|
4358
|
-
onTriggerKeyDown:
|
4364
|
+
onPopoverKeyDown: x,
|
4365
|
+
onTriggerKeyDown: g
|
4359
4366
|
});
|
4360
4367
|
return M(() => {
|
4361
4368
|
f || (l(-1), u(""));
|
@@ -4393,8 +4400,8 @@ const dl = (e) => {
|
|
4393
4400
|
filteredOptions: _,
|
4394
4401
|
flatOptions: h,
|
4395
4402
|
triggerProps: E,
|
4396
|
-
overlayProps:
|
4397
|
-
popoverProps:
|
4403
|
+
overlayProps: x,
|
4404
|
+
popoverProps: g,
|
4398
4405
|
focusedIndex: f,
|
4399
4406
|
searchTerm: N,
|
4400
4407
|
handleSearch: C,
|
@@ -4417,8 +4424,8 @@ const dl = (e) => {
|
|
4417
4424
|
sc,
|
4418
4425
|
{
|
4419
4426
|
open: p,
|
4420
|
-
overlayProps:
|
4421
|
-
popoverProps:
|
4427
|
+
overlayProps: x,
|
4428
|
+
popoverProps: g,
|
4422
4429
|
triggerProps: E,
|
4423
4430
|
buttonProps: l,
|
4424
4431
|
triggerElement: d,
|
@@ -4565,12 +4572,12 @@ const dl = (e) => {
|
|
4565
4572
|
action: "remove-value",
|
4566
4573
|
removedValue: e
|
4567
4574
|
})) : N === na.inputBlur && u(e?.value || "");
|
4568
|
-
},
|
4575
|
+
}, x = (f) => {
|
4569
4576
|
a?.(
|
4570
4577
|
{ label: f, value: f },
|
4571
4578
|
{ action: "create-option", option: { label: f, value: f } }
|
4572
4579
|
), m.current.blurInput();
|
4573
|
-
},
|
4580
|
+
}, g = (f) => {
|
4574
4581
|
if (f.key === "Enter" && f.shiftKey) {
|
4575
4582
|
f.preventDefault();
|
4576
4583
|
const { selectionStart: N, selectionEnd: C } = m.current.inputRef, S = `${d.slice(0, N)}
|
@@ -4583,7 +4590,7 @@ ${d.slice(C)}`;
|
|
4583
4590
|
});
|
4584
4591
|
return;
|
4585
4592
|
}
|
4586
|
-
n && f.key === "Enter" &&
|
4593
|
+
n && f.key === "Enter" && x(d);
|
4587
4594
|
};
|
4588
4595
|
return /* @__PURE__ */ t.jsx(
|
4589
4596
|
kt,
|
@@ -4597,8 +4604,8 @@ ${d.slice(C)}`;
|
|
4597
4604
|
onInputChange: E,
|
4598
4605
|
controlShouldRenderValue: !1,
|
4599
4606
|
onChange: a,
|
4600
|
-
onKeyDown:
|
4601
|
-
onCreateOption:
|
4607
|
+
onKeyDown: g,
|
4608
|
+
onCreateOption: x,
|
4602
4609
|
shouldRenderTextArea: !0
|
4603
4610
|
}
|
4604
4611
|
);
|
@@ -4616,31 +4623,31 @@ ${d.slice(C)}`;
|
|
4616
4623
|
isDisabled: u = !1,
|
4617
4624
|
autoFocus: m = !1
|
4618
4625
|
}) => {
|
4619
|
-
const p = (
|
4626
|
+
const p = (g) => {
|
4620
4627
|
i({
|
4621
4628
|
action: e,
|
4622
4629
|
data: {
|
4623
4630
|
targetPlatform: d,
|
4624
|
-
...
|
4631
|
+
...g
|
4625
4632
|
}
|
4626
4633
|
});
|
4627
|
-
}, _ = (
|
4634
|
+
}, _ = (g) => {
|
4628
4635
|
const f = {
|
4629
|
-
unit:
|
4636
|
+
unit: g.label,
|
4630
4637
|
value: os(l) ? l : +l
|
4631
4638
|
};
|
4632
4639
|
p(f);
|
4633
|
-
}, h = (
|
4640
|
+
}, h = (g) => {
|
4634
4641
|
const f = {
|
4635
4642
|
unit: c,
|
4636
|
-
value:
|
4643
|
+
value: g.currentTarget.value === "" ? null : +g.currentTarget.value
|
4637
4644
|
};
|
4638
4645
|
p(f);
|
4639
4646
|
}, E = X(() => (Object.values(o)?.map((f) => ({
|
4640
4647
|
label: f.name,
|
4641
4648
|
value: String(f.conversionFactor)
|
4642
|
-
})) ?? []).sort((f, N) => Number(f.value) - Number(N.value)), [o]),
|
4643
|
-
() => E.find((
|
4649
|
+
})) ?? []).sort((f, N) => Number(f.value) - Number(N.value)), [o]), x = X(
|
4650
|
+
() => E.find((g) => g.label === c),
|
4644
4651
|
[E, c]
|
4645
4652
|
);
|
4646
4653
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 dc__mxw-420 w-100 dc__align-start", children: [
|
@@ -4679,7 +4686,7 @@ ${d.slice(C)}`;
|
|
4679
4686
|
classNamePrefix: "build-infra-unit-select",
|
4680
4687
|
name: `${e}-unit`,
|
4681
4688
|
options: E,
|
4682
|
-
value:
|
4689
|
+
value: x,
|
4683
4690
|
onChange: _,
|
4684
4691
|
isSearchable: !1,
|
4685
4692
|
size: L.large,
|
@@ -4916,7 +4923,7 @@ ${d.slice(C)}`;
|
|
4916
4923
|
}
|
4917
4924
|
) })
|
4918
4925
|
] });
|
4919
|
-
}, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: h, trigger: E, animation:
|
4926
|
+
}, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: h, trigger: E, animation: x, duration: g, children: f } = e;
|
4920
4927
|
return /* @__PURE__ */ t.jsx(
|
4921
4928
|
Ie,
|
4922
4929
|
{
|
@@ -4929,8 +4936,8 @@ ${d.slice(C)}`;
|
|
4929
4936
|
onMount: i,
|
4930
4937
|
onClickOutside: (N, C) => c(C),
|
4931
4938
|
showOnCreate: h || !1,
|
4932
|
-
animation:
|
4933
|
-
duration:
|
4939
|
+
animation: x || "fade",
|
4940
|
+
duration: g || 300,
|
4934
4941
|
visible: e.visible,
|
4935
4942
|
appendTo: e.appendTo,
|
4936
4943
|
children: f
|
@@ -5926,24 +5933,24 @@ const CV = (e, s = !1) => {
|
|
5926
5933
|
defaultValue: m ? null : u
|
5927
5934
|
} : null;
|
5928
5935
|
if (m) {
|
5929
|
-
const _ = l.value?.reduce((
|
5930
|
-
const
|
5931
|
-
_[
|
5936
|
+
const _ = l.value?.reduce((x, g) => (x[g.useFormProps.name] = g, x), {}), h = d?.value?.map((x) => {
|
5937
|
+
const g = structuredClone(
|
5938
|
+
_[x.useFormProps.name]
|
5932
5939
|
);
|
5933
5940
|
return {
|
5934
|
-
...
|
5935
|
-
defaultValueInitialResponse:
|
5936
|
-
defaultValue:
|
5941
|
+
...x,
|
5942
|
+
defaultValueInitialResponse: g?.defaultValueInitialResponse,
|
5943
|
+
defaultValue: g?.useFormProps,
|
5937
5944
|
isOverridden: !0,
|
5938
|
-
canOverride: !!
|
5945
|
+
canOverride: !!g
|
5939
5946
|
};
|
5940
5947
|
}) || [], E = h.reduce(
|
5941
|
-
(
|
5948
|
+
(x, g) => (x[g.useFormProps.name] = g, x),
|
5942
5949
|
{}
|
5943
5950
|
);
|
5944
|
-
Object.values(_).forEach((
|
5945
|
-
E[
|
5946
|
-
...
|
5951
|
+
Object.values(_).forEach((x) => {
|
5952
|
+
E[x.useFormProps.name] || h.push({
|
5953
|
+
...x,
|
5947
5954
|
isOverridden: !1,
|
5948
5955
|
canOverride: !0
|
5949
5956
|
});
|
@@ -5997,10 +6004,10 @@ const CV = (e, s = !1) => {
|
|
5997
6004
|
(h, E) => {
|
5998
6005
|
if (!p[E])
|
5999
6006
|
return h;
|
6000
|
-
const
|
6007
|
+
const x = vn(_[E]), g = vn(p[E]);
|
6001
6008
|
return h[E] = {
|
6002
|
-
...
|
6003
|
-
defaultValue:
|
6009
|
+
...x,
|
6010
|
+
defaultValue: g,
|
6004
6011
|
active: !0,
|
6005
6012
|
targetPlatform: m
|
6006
6013
|
}, h;
|
@@ -6030,12 +6037,12 @@ const CV = (e, s = !1) => {
|
|
6030
6037
|
const _ = vv(u);
|
6031
6038
|
if (!_)
|
6032
6039
|
return d;
|
6033
|
-
const h = m ? _.value?.length > 0 : u.active, E = e.name === Xr ? !0 : h,
|
6040
|
+
const h = m ? _.value?.length > 0 : u.active, E = e.name === Xr ? !0 : h, x = {
|
6034
6041
|
..._,
|
6035
6042
|
id: u.id,
|
6036
6043
|
active: E
|
6037
6044
|
};
|
6038
|
-
return d.push(
|
6045
|
+
return d.push(x), d;
|
6039
6046
|
}
|
6040
6047
|
return d;
|
6041
6048
|
}, []);
|
@@ -6126,7 +6133,7 @@ const El = {
|
|
6126
6133
|
h(f.value, f.label),
|
6127
6134
|
_(f.label)
|
6128
6135
|
] }, N)
|
6129
|
-
)),
|
6136
|
+
)), 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(
|
6130
6137
|
ke.div,
|
6131
6138
|
{
|
6132
6139
|
...c ? {
|
@@ -6146,11 +6153,11 @@ const El = {
|
|
6146
6153
|
}
|
6147
6154
|
);
|
6148
6155
|
return d.length ? /* @__PURE__ */ t.jsx("div", { className: `flexbox-col w-100 dc__gap-12 ${n}`, children: i ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6149
|
-
x(),
|
6150
|
-
g()
|
6151
|
-
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6152
6156
|
g(),
|
6153
6157
|
x()
|
6158
|
+
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6159
|
+
x(),
|
6160
|
+
g()
|
6154
6161
|
] }) }) : null;
|
6155
6162
|
}, Dv = (e) => e.reduce(
|
6156
6163
|
(s, n) => {
|
@@ -7127,22 +7134,22 @@ const RI = (e, s) => {
|
|
7127
7134
|
!f.key || d.map((N) => N.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(() => {
|
7128
7135
|
h();
|
7129
7136
|
}, a ?? jI)));
|
7130
|
-
}, []),
|
7137
|
+
}, []), x = Fe(() => {
|
7131
7138
|
c.current.clear();
|
7132
7139
|
}, []);
|
7133
|
-
M(() => e ? (window.addEventListener("keydown", E), window.addEventListener("keyup", h), window.addEventListener("blur",
|
7140
|
+
M(() => e ? (window.addEventListener("keydown", E), window.addEventListener("keyup", h), window.addEventListener("blur", x), () => {
|
7134
7141
|
window.removeEventListener(
|
7135
7142
|
"keydown",
|
7136
7143
|
E
|
7137
|
-
), window.removeEventListener("keyup", h), window.removeEventListener("blur",
|
7138
|
-
}) : Ne, [h, E,
|
7139
|
-
const
|
7144
|
+
), window.removeEventListener("keyup", h), window.removeEventListener("blur", x), l.current > -1 && clearTimeout(l.current);
|
7145
|
+
}) : Ne, [h, E, x, e]);
|
7146
|
+
const g = X(
|
7140
7147
|
() => ({
|
7141
7148
|
registerShortcut: u,
|
7142
7149
|
unregisterShortcut: m,
|
7143
7150
|
setDisableShortcuts: p,
|
7144
7151
|
triggerShortcut: _,
|
7145
|
-
...e ? {} : { targetProps: { onKeyDown: E, onKeyUp: h, onBlur:
|
7152
|
+
...e ? {} : { targetProps: { onKeyDown: E, onKeyUp: h, onBlur: x } }
|
7146
7153
|
}),
|
7147
7154
|
[
|
7148
7155
|
u,
|
@@ -7152,10 +7159,10 @@ const RI = (e, s) => {
|
|
7152
7159
|
e,
|
7153
7160
|
E,
|
7154
7161
|
h,
|
7155
|
-
|
7162
|
+
x
|
7156
7163
|
]
|
7157
7164
|
);
|
7158
|
-
return /* @__PURE__ */ t.jsx(ep.Provider, { value:
|
7165
|
+
return /* @__PURE__ */ t.jsx(ep.Provider, { value: g, children: r });
|
7159
7166
|
}, xn = 1, OI = {
|
7160
7167
|
PAGE_SIZE: "pageSize",
|
7161
7168
|
PAGE_NUMBER: "pageNumber",
|
@@ -7173,24 +7180,24 @@ const RI = (e, s) => {
|
|
7173
7180
|
pageSize: s,
|
7174
7181
|
pageNumber: xn
|
7175
7182
|
}), u = l.pageSize * (l.pageNumber - 1), m = () => {
|
7176
|
-
d((
|
7177
|
-
...
|
7183
|
+
d((g) => ({
|
7184
|
+
...g,
|
7178
7185
|
pageNumber: xn
|
7179
7186
|
}));
|
7180
7187
|
};
|
7181
7188
|
return {
|
7182
7189
|
...n,
|
7183
|
-
handleSorting: (
|
7190
|
+
handleSorting: (g) => {
|
7184
7191
|
let f;
|
7185
|
-
|
7192
|
+
g === i && c === Te.ASC ? f = Te.DESC : f = Te.ASC, a(() => ({
|
7186
7193
|
...n,
|
7187
|
-
sortBy:
|
7194
|
+
sortBy: g,
|
7188
7195
|
sortOrder: f
|
7189
7196
|
})), m();
|
7190
7197
|
},
|
7191
7198
|
searchKey: r,
|
7192
|
-
handleSearch: (
|
7193
|
-
o(
|
7199
|
+
handleSearch: (g) => {
|
7200
|
+
o(g?.trim() ?? ""), m();
|
7194
7201
|
},
|
7195
7202
|
clearFilters: () => {
|
7196
7203
|
o(""), a({
|
@@ -7202,16 +7209,16 @@ const RI = (e, s) => {
|
|
7202
7209
|
});
|
7203
7210
|
},
|
7204
7211
|
...l,
|
7205
|
-
changePage: (
|
7212
|
+
changePage: (g) => {
|
7206
7213
|
d({
|
7207
7214
|
...l,
|
7208
|
-
pageNumber:
|
7215
|
+
pageNumber: g
|
7209
7216
|
});
|
7210
7217
|
},
|
7211
|
-
changePageSize: (
|
7218
|
+
changePageSize: (g) => {
|
7212
7219
|
d({
|
7213
7220
|
...l,
|
7214
|
-
pageSize:
|
7221
|
+
pageSize: g
|
7215
7222
|
}), m();
|
7216
7223
|
},
|
7217
7224
|
offset: u,
|
@@ -7246,7 +7253,7 @@ const RI = (e, s) => {
|
|
7246
7253
|
}
|
7247
7254
|
}
|
7248
7255
|
return y;
|
7249
|
-
})(), u = (y) => s ? s(y) : {}, { pageSize: m, pageNumber: p, searchKey: _, sortBy: h, sortOrder: E, parsedParams:
|
7256
|
+
})(), u = (y) => s ? s(y) : {}, { pageSize: m, pageNumber: p, searchKey: _, sortBy: h, sortOrder: E, parsedParams: x } = X(() => {
|
7250
7257
|
const y = d.get(Al), v = d.get(vo), j = d.get(Rl), P = d.get(jl), D = d.get(yl) || e || "", k = Object.values(Te).includes(P) ? P : Te.ASC, B = u(d);
|
7251
7258
|
return {
|
7252
7259
|
pageSize: Number(y) || r,
|
@@ -7257,7 +7264,7 @@ const RI = (e, s) => {
|
|
7257
7264
|
sortOrder: D ? k : "",
|
7258
7265
|
parsedParams: B
|
7259
7266
|
};
|
7260
|
-
}, [d]),
|
7267
|
+
}, [d]), g = m * (p - 1), f = (y, v) => {
|
7261
7268
|
const j = { search: y };
|
7262
7269
|
(v.redirectionMethod ?? a) === "push" ? i.push(j) : i.replace(j);
|
7263
7270
|
}, N = (y, v, j = {}) => {
|
@@ -7281,7 +7288,7 @@ const RI = (e, s) => {
|
|
7281
7288
|
handleSearch: (y) => {
|
7282
7289
|
N(Rl, y), C();
|
7283
7290
|
},
|
7284
|
-
offset:
|
7291
|
+
offset: g,
|
7285
7292
|
sortBy: h,
|
7286
7293
|
sortOrder: E,
|
7287
7294
|
handleSorting: (y) => {
|
@@ -7291,7 +7298,7 @@ const RI = (e, s) => {
|
|
7291
7298
|
clearFilters: () => {
|
7292
7299
|
f("", {}), n && localStorage.removeItem(n);
|
7293
7300
|
},
|
7294
|
-
...
|
7301
|
+
...x,
|
7295
7302
|
updateSearchParams: (y, v = {}) => {
|
7296
7303
|
Object.keys(y).forEach((j) => {
|
7297
7304
|
em.includes(y[j]) ? d.delete(j) : Array.isArray(y[j]) ? (d.delete(j), y[j].forEach((P) => {
|
@@ -7299,7 +7306,7 @@ const RI = (e, s) => {
|
|
7299
7306
|
})) : d.set(j, y[j]);
|
7300
7307
|
}), Il(n, JSON.stringify(u(d))), C(v);
|
7301
7308
|
},
|
7302
|
-
areFiltersApplied: !!_ || wI(
|
7309
|
+
areFiltersApplied: !!_ || wI(x)
|
7303
7310
|
};
|
7304
7311
|
};
|
7305
7312
|
let Io;
|
@@ -7464,21 +7471,21 @@ const sp = {
|
|
7464
7471
|
ariaLabel: _ = null,
|
7465
7472
|
showAriaLabelInTippy: h = !0,
|
7466
7473
|
fullWidth: E = !1,
|
7467
|
-
isOpacityHoverChild:
|
7468
|
-
triggerAutoClickTimestamp:
|
7474
|
+
isOpacityHoverChild: x = !1,
|
7475
|
+
triggerAutoClickTimestamp: g,
|
7469
7476
|
...f
|
7470
7477
|
}, N) => {
|
7471
7478
|
const [C, S] = w(!1), b = $(), A = $(null), R = l || d, T = `dc__no-shrink flex dc__fill-available-space ${UI({
|
7472
7479
|
size: a,
|
7473
7480
|
icon: p
|
7474
7481
|
})}`;
|
7475
|
-
M(() => (
|
7482
|
+
M(() => (g && setTimeout(() => {
|
7476
7483
|
S(!0), b.current = setTimeout(() => {
|
7477
7484
|
A.current.click();
|
7478
7485
|
}, 1495);
|
7479
7486
|
}, 100), () => {
|
7480
7487
|
S(!1), clearTimeout(b.current);
|
7481
|
-
}), [
|
7488
|
+
}), [g]);
|
7482
7489
|
const I = (v) => {
|
7483
7490
|
S(!1), clearTimeout(b.current), f.onClick?.(v);
|
7484
7491
|
}, y = () => !u && h && p && _ ? {
|
@@ -7494,7 +7501,7 @@ const sp = {
|
|
7494
7501
|
ref: N,
|
7495
7502
|
...f,
|
7496
7503
|
disabled: R,
|
7497
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${
|
7504
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${FI({ size: a, variant: n, style: r, isLoading: d, icon: p, isAutoTriggerActive: C, fontWeight: o })} ${R ? "dc__disabled" : ""} ${E ? "w-100" : ""}`,
|
7498
7505
|
"data-testid": e,
|
7499
7506
|
"aria-label": _ || (d ? s : void 0),
|
7500
7507
|
elementRef: A,
|
@@ -7621,7 +7628,7 @@ const sp = {
|
|
7621
7628
|
hover: {
|
7622
7629
|
rotate: 45
|
7623
7630
|
}
|
7624
|
-
},
|
7631
|
+
}, x = async (f) => {
|
7625
7632
|
if (!d) {
|
7626
7633
|
c(f);
|
7627
7634
|
return;
|
@@ -7643,7 +7650,7 @@ const sp = {
|
|
7643
7650
|
},
|
7644
7651
|
[]
|
7645
7652
|
);
|
7646
|
-
const
|
7653
|
+
const g = d && r ? /* @__PURE__ */ t.jsx(
|
7647
7654
|
ke.div,
|
7648
7655
|
{
|
7649
7656
|
variants: E,
|
@@ -7667,8 +7674,8 @@ const sp = {
|
|
7667
7674
|
endIcon: o,
|
7668
7675
|
isLoading: a,
|
7669
7676
|
dataTestId: i,
|
7670
|
-
onClick:
|
7671
|
-
startIcon:
|
7677
|
+
onClick: x,
|
7678
|
+
startIcon: g,
|
7672
7679
|
showTooltip: !!l,
|
7673
7680
|
tooltipProps: {
|
7674
7681
|
content: l
|
@@ -7910,12 +7917,12 @@ const sp = {
|
|
7910
7917
|
});
|
7911
7918
|
const v = s.current;
|
7912
7919
|
o((j) => ({ ...j, [b]: !qn(v[b], y) }));
|
7913
|
-
},
|
7920
|
+
}, x = (b, A) => () => {
|
7914
7921
|
if (A || a({ ...n, [b]: n[b]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
7915
7922
|
const T = p(), I = ln(n[b], T[b]);
|
7916
7923
|
I && !u[b] && m({ ...u, [b]: !0 }), d({ ...l, [b]: I });
|
7917
7924
|
}
|
7918
|
-
},
|
7925
|
+
}, g = (b) => () => {
|
7919
7926
|
c((A) => ({ ...A, [b]: !0 }));
|
7920
7927
|
};
|
7921
7928
|
return {
|
@@ -7925,8 +7932,8 @@ const sp = {
|
|
7925
7932
|
errors: l,
|
7926
7933
|
register: (b, A) => ({
|
7927
7934
|
onChange: E(b, A?.sanitizeFn, A?.isCustomComponent),
|
7928
|
-
onBlur:
|
7929
|
-
onFocus:
|
7935
|
+
onBlur: x(b, A?.noTrim),
|
7936
|
+
onFocus: g(b),
|
7930
7937
|
name: b
|
7931
7938
|
}),
|
7932
7939
|
handleSubmit: h,
|
@@ -8324,7 +8331,7 @@ const lA = ({
|
|
8324
8331
|
() => p(),
|
8325
8332
|
[i, c],
|
8326
8333
|
d && !!l
|
8327
|
-
), E = h?.resources?.[l]?.[ba.RECENTLY_VISITED] || [],
|
8334
|
+
), E = h?.resources?.[l]?.[ba.RECENTLY_VISITED] || [], x = (C) => {
|
8328
8335
|
C?.themePreference ? C?.themePreference && m(C.themePreference) : u(!0), a(C);
|
8329
8336
|
};
|
8330
8337
|
return {
|
@@ -8336,9 +8343,9 @@ const lA = ({
|
|
8336
8343
|
const C = await xr();
|
8337
8344
|
if (e) {
|
8338
8345
|
const S = await e(C);
|
8339
|
-
|
8346
|
+
x(S);
|
8340
8347
|
} else
|
8341
|
-
|
8348
|
+
x(C);
|
8342
8349
|
} catch (C) {
|
8343
8350
|
o(C);
|
8344
8351
|
}
|
@@ -8373,16 +8380,16 @@ const lA = ({
|
|
8373
8380
|
openInNewTab: u = !1,
|
8374
8381
|
fullWidth: m = !1
|
8375
8382
|
}) => {
|
8376
|
-
const { isEnterprise: p, setSidePanelConfig: _, isLicenseDashboard: h } = Ss(), E = np(),
|
8383
|
+
const { isEnterprise: p, setSidePanelConfig: _, isLicenseDashboard: h } = Ss(), E = np(), x = LS({
|
8377
8384
|
docLinkKey: e,
|
8378
8385
|
isEnterprise: p,
|
8379
8386
|
isExternalLink: d,
|
8380
8387
|
isLicenseDashboard: h
|
8381
|
-
}),
|
8382
|
-
E && !d && !u && !f.metaKey && !h &&
|
8388
|
+
}), g = (f) => {
|
8389
|
+
E && !d && !u && !f.metaKey && !h && x.startsWith(xa) && (f.preventDefault(), _((N) => ({
|
8383
8390
|
...N,
|
8384
8391
|
state: Kr.DOCUMENTATION,
|
8385
|
-
docLink:
|
8392
|
+
docLink: x,
|
8386
8393
|
reinitialize: !0
|
8387
8394
|
}))), o?.(f);
|
8388
8395
|
};
|
@@ -8391,9 +8398,9 @@ const lA = ({
|
|
8391
8398
|
{
|
8392
8399
|
component: ut.anchor,
|
8393
8400
|
anchorProps: {
|
8394
|
-
href:
|
8401
|
+
href: x
|
8395
8402
|
},
|
8396
|
-
onClick:
|
8403
|
+
onClick: g,
|
8397
8404
|
dataTestId: n,
|
8398
8405
|
text: s,
|
8399
8406
|
variant: l,
|
@@ -8674,18 +8681,18 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8674
8681
|
promotionApprovalMetadata: _,
|
8675
8682
|
appliedFiltersTimestamp: h,
|
8676
8683
|
selectedEnvironmentName: E,
|
8677
|
-
renderCIListHeader:
|
8678
|
-
targetPlatforms:
|
8684
|
+
renderCIListHeader: x,
|
8685
|
+
targetPlatforms: g,
|
8679
8686
|
isDeploymentWithoutApproval: f
|
8680
8687
|
}) => {
|
8681
|
-
const N = !!
|
8688
|
+
const N = !!x && (!!qm(s?.approvalConfigData) || !!m?.length || !!_?.promotedFromType || f);
|
8682
8689
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8683
8690
|
e === "deployed-artifact" && /* @__PURE__ */ t.jsxs("div", { className: "flex dc__width-inherit pb-12", children: [
|
8684
8691
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" }),
|
8685
8692
|
/* @__PURE__ */ t.jsx(Su, { className: "icon-dim-16 ml-8 mr-8", style: { transform: "rotate(90deg)" } }),
|
8686
8693
|
/* @__PURE__ */ t.jsx("div", { className: "w-50 text-underline-dashed-300" })
|
8687
8694
|
] }),
|
8688
|
-
N &&
|
8695
|
+
N && x({
|
8689
8696
|
userApprovalMetadata: s,
|
8690
8697
|
triggeredBy: n,
|
8691
8698
|
appliedFilters: m,
|
@@ -8705,7 +8712,7 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8705
8712
|
a
|
8706
8713
|
] }),
|
8707
8714
|
e !== "report" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8708
|
-
!!
|
8715
|
+
!!g?.length && /* @__PURE__ */ t.jsx("div", { className: "mt-8 flexbox-col dc__gap-8", children: /* @__PURE__ */ t.jsx(fA, { targetPlatforms: g }) }),
|
8709
8716
|
/* @__PURE__ */ t.jsx(
|
8710
8717
|
w_,
|
8711
8718
|
{
|
@@ -8742,11 +8749,11 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8742
8749
|
renderCIListHeader: h,
|
8743
8750
|
targetPlatforms: E
|
8744
8751
|
}) => {
|
8745
|
-
const { isSuperAdmin:
|
8752
|
+
const { isSuperAdmin: x } = Qm(), { handleDownload: g } = ZI({
|
8746
8753
|
shouldOpenInNewTab: !0
|
8747
8754
|
}), { triggerId: f, buildId: N } = Dt(), C = e.toLowerCase();
|
8748
8755
|
async function S() {
|
8749
|
-
await
|
8756
|
+
await g({
|
8750
8757
|
downloadUrl: r,
|
8751
8758
|
fileName: `${N || f}.zip`
|
8752
8759
|
});
|
@@ -8785,7 +8792,7 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8785
8792
|
appReleaseTagNames: u,
|
8786
8793
|
tagsEditable: m,
|
8787
8794
|
hideImageTaggingHardDelete: p,
|
8788
|
-
isSuperAdmin:
|
8795
|
+
isSuperAdmin: x,
|
8789
8796
|
renderCIListHeader: h,
|
8790
8797
|
targetPlatforms: E,
|
8791
8798
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
|
@@ -9309,9 +9316,9 @@ const UA = (e, s) => {
|
|
9309
9316
|
primaryBranchAfterRegex: c,
|
9310
9317
|
rootClassName: l = ""
|
9311
9318
|
}) => {
|
9312
|
-
const d = e === es.WEBHOOK, u = e === es.BranchRegex || !!o || i, [m, p] = w(""), [_, h] = w(""), [E,
|
9319
|
+
const d = e === es.WEBHOOK, u = e === es.BranchRegex || !!o || i, [m, p] = w(""), [_, h] = w(""), [E, x] = w(!!d), [g, f] = w(!1), N = () => {
|
9313
9320
|
if (d) {
|
9314
|
-
|
9321
|
+
x(!0), f(!1);
|
9315
9322
|
const A = JSON.parse(s);
|
9316
9323
|
Sl(A.eventId).then((R) => {
|
9317
9324
|
const T = R.result;
|
@@ -9321,9 +9328,9 @@ const UA = (e, s) => {
|
|
9321
9328
|
A.condition,
|
9322
9329
|
T.selectors
|
9323
9330
|
)
|
9324
|
-
),
|
9331
|
+
), x(!1);
|
9325
9332
|
}).catch(() => {
|
9326
|
-
|
9333
|
+
x(!1), f(!0);
|
9327
9334
|
});
|
9328
9335
|
} else
|
9329
9336
|
p(s), h(s);
|
@@ -9344,13 +9351,13 @@ const UA = (e, s) => {
|
|
9344
9351
|
function S() {
|
9345
9352
|
if (!d)
|
9346
9353
|
return;
|
9347
|
-
|
9354
|
+
x(!0), f(!1);
|
9348
9355
|
const A = JSON.parse(s), R = A.eventId, T = A.condition;
|
9349
9356
|
Sl(R).then((I) => {
|
9350
9357
|
const y = I.result;
|
9351
|
-
p(y.name), h($l(y.name, T, y.selectors)),
|
9358
|
+
p(y.name), h($l(y.name, T, y.selectors)), x(!1);
|
9352
9359
|
}).catch(() => {
|
9353
|
-
|
9360
|
+
x(!1), f(!0);
|
9354
9361
|
});
|
9355
9362
|
}
|
9356
9363
|
function b() {
|
@@ -9358,7 +9365,7 @@ const UA = (e, s) => {
|
|
9358
9365
|
}
|
9359
9366
|
return M(() => {
|
9360
9367
|
S(), b();
|
9361
|
-
}, []), !E &&
|
9368
|
+
}, []), !E && g ? /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4", children: [
|
9362
9369
|
/* @__PURE__ */ t.jsx(F, { name: "ic-error", size: 16, color: null }),
|
9363
9370
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate fw-5 cr-5", children: "Failed to fetch" })
|
9364
9371
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: `flex left ${n ? "fw-5" : ""} ${l}`, children: [
|
@@ -9839,9 +9846,9 @@ const oR = {
|
|
9839
9846
|
className: `m-0 cn-9 fw-4 ${n === L.large ? "fs-13 lh-20" : "fs-12 lh-18"} dc__truncate--clamp-6 dc__word-break`,
|
9840
9847
|
children: i
|
9841
9848
|
}
|
9842
|
-
) : i : null,
|
9843
|
-
const
|
9844
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${
|
9849
|
+
) : i : null, x = () => {
|
9850
|
+
const g = e === "column", f = n === L.medium ? "dc__gap-2" : "dc__gap-4";
|
9851
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${g ? f : ""}`, children: [
|
9845
9852
|
h(),
|
9846
9853
|
E()
|
9847
9854
|
] });
|
@@ -9849,12 +9856,12 @@ const oR = {
|
|
9849
9856
|
return e === "row" ? /* @__PURE__ */ t.jsxs("div", { className: `${d} flexbox dc__gap-16`, children: [
|
9850
9857
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 flex-grow-1", children: [
|
9851
9858
|
_(),
|
9852
|
-
|
9859
|
+
x()
|
9853
9860
|
] }),
|
9854
9861
|
r && /* @__PURE__ */ t.jsx(H, { ...r, size: p })
|
9855
9862
|
] }) : e === "column" ? /* @__PURE__ */ t.jsxs("div", { className: `${d} flexbox-col dc__gap-8`, children: [
|
9856
9863
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
9857
|
-
|
9864
|
+
x(),
|
9858
9865
|
_()
|
9859
9866
|
] }),
|
9860
9867
|
r && /* @__PURE__ */ t.jsx(H, { ...r, size: p })
|
@@ -10044,46 +10051,46 @@ const SR = (e) => {
|
|
10044
10051
|
const m = async () => {
|
10045
10052
|
try {
|
10046
10053
|
c(!0);
|
10047
|
-
const { appId:
|
10054
|
+
const { appId: x, appType: g, environmentId: f, installedAppId: N } = a || {}, C = g === gt.DEVTRON_HELM_CHART ? N : x, S = r || String(C), b = o || String(f);
|
10048
10055
|
await TR({ appId: S, envId: b });
|
10049
|
-
} catch (
|
10050
|
-
Le(
|
10056
|
+
} catch (x) {
|
10057
|
+
Le(x);
|
10051
10058
|
} finally {
|
10052
10059
|
c(!1);
|
10053
10060
|
}
|
10054
10061
|
}, p = () => {
|
10055
|
-
u((
|
10062
|
+
u((x) => !x);
|
10056
10063
|
}, _ = () => e !== q.KUBECTL_APPLY ? null : /* @__PURE__ */ t.jsxs("div", { className: "px-8 py-12", children: [
|
10057
|
-
l.subSteps?.map((
|
10064
|
+
l.subSteps?.map((x, g) => (
|
10058
10065
|
// eslint-disable-next-line react/no-array-index-key
|
10059
10066
|
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs("div", { className: "flex left lh-20 mb-8", children: [
|
10060
|
-
Bl(
|
10061
|
-
/* @__PURE__ */ t.jsx("span", { className: "ml-12", children:
|
10062
|
-
] }) }, `item-${
|
10067
|
+
Bl(x.icon),
|
10068
|
+
/* @__PURE__ */ t.jsx("span", { className: "ml-12", children: x.message })
|
10069
|
+
] }) }, `item-${g}`)
|
10063
10070
|
)),
|
10064
10071
|
l.resourceDetails?.length ? /* @__PURE__ */ t.jsxs("div", { className: "pl-32", children: [
|
10065
|
-
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom py-8", children: RA.map((
|
10072
|
+
/* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom py-8", children: RA.map((x, g) => (
|
10066
10073
|
// eslint-disable-next-line react/no-array-index-key
|
10067
|
-
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children:
|
10074
|
+
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: x }, `header_${g}`)
|
10068
10075
|
)) }),
|
10069
|
-
/* @__PURE__ */ t.jsx("div", { className: "resource-list fs-13", children: l.resourceDetails.map((
|
10076
|
+
/* @__PURE__ */ t.jsx("div", { className: "resource-list fs-13", children: l.resourceDetails.map((x) => /* @__PURE__ */ t.jsxs(
|
10070
10077
|
"div",
|
10071
10078
|
{
|
10072
10079
|
className: "app-status-row py-8",
|
10073
10080
|
children: [
|
10074
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children:
|
10075
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children:
|
10081
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: x.resourceKind }),
|
10082
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: x.resourceName }),
|
10076
10083
|
/* @__PURE__ */ t.jsx(
|
10077
10084
|
"div",
|
10078
10085
|
{
|
10079
|
-
className: `app-summary__status-name f-${
|
10080
|
-
children:
|
10086
|
+
className: `app-summary__status-name f-${x.resourceStatus ? x.resourceStatus.toLowerCase() === De.RUNNING ? De.PROGRESSING : x.resourceStatus.toLowerCase() : ""}`,
|
10087
|
+
children: x.resourceStatus
|
10081
10088
|
}
|
10082
10089
|
),
|
10083
|
-
/* @__PURE__ */ t.jsx(io, { text:
|
10090
|
+
/* @__PURE__ */ t.jsx(io, { text: x.statusMessage })
|
10084
10091
|
]
|
10085
10092
|
},
|
10086
|
-
`${
|
10093
|
+
`${x.resourceKind}/${x.resourceName}`
|
10087
10094
|
)) })
|
10088
10095
|
] }) : null
|
10089
10096
|
] }), h = !!l.subSteps?.length || e === q.APP_HEALTH && PA.includes(l.icon) || (e === q.GIT_COMMIT || e === q.ARGOCD_SYNC) && l.icon === "failed", E = () => d ? null : /* @__PURE__ */ t.jsxs("div", { className: "bg__primary en-2 detail-tab_border bw-1", children: [
|
@@ -10252,9 +10259,9 @@ const RR = ({
|
|
10252
10259
|
renderDeploymentApprovalInfo: l,
|
10253
10260
|
isDeploymentWithoutApproval: d
|
10254
10261
|
}) => {
|
10255
|
-
const u = Ur(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Dt(), [E,
|
10262
|
+
const u = Ur(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Dt(), [E, x] = w(
|
10256
10263
|
e?.toUpperCase() !== q.ABORTED
|
10257
|
-
),
|
10264
|
+
), g = rR.getAppDetails(), f = $(i), N = $(d), C = f.current && c ? c() : gi(s ?? g?.deploymentAppType), [S, b] = w(C), A = () => {
|
10258
10265
|
Ha && clearTimeout(Ha);
|
10259
10266
|
}, R = () => {
|
10260
10267
|
bR(p, _, !0, h, n, a).then((v) => {
|
@@ -10263,9 +10270,9 @@ const RR = ({
|
|
10263
10270
|
isDeploymentWithoutApproval: N.current
|
10264
10271
|
});
|
10265
10272
|
}).catch(() => {
|
10266
|
-
|
10273
|
+
x(!1);
|
10267
10274
|
}).finally(() => {
|
10268
|
-
|
10275
|
+
x(!1);
|
10269
10276
|
});
|
10270
10277
|
};
|
10271
10278
|
M(() => (s === St.HELM && u.replace(`${m.replace("deployment-steps", "source-code")}`), r && R(), () => {
|
@@ -10315,7 +10322,7 @@ const RR = ({
|
|
10315
10322
|
{
|
10316
10323
|
deploymentStatusDetailsBreakdownData: S,
|
10317
10324
|
isVirtualEnvironment: f.current,
|
10318
|
-
appDetails:
|
10325
|
+
appDetails: g,
|
10319
10326
|
rootClassName: "p-20",
|
10320
10327
|
deploymentAppType: S.deploymentAppType
|
10321
10328
|
}
|
@@ -10353,7 +10360,7 @@ const RR = ({
|
|
10353
10360
|
imageStyles: h = {},
|
10354
10361
|
imgName: E
|
10355
10362
|
}) => {
|
10356
|
-
const
|
10363
|
+
const x = p === "row", g = () => {
|
10357
10364
|
switch (i) {
|
10358
10365
|
case Hs.Large:
|
10359
10366
|
return { width: "250px", height: "200px" };
|
@@ -10364,7 +10371,7 @@ const RR = ({
|
|
10364
10371
|
return /* @__PURE__ */ t.jsxs(
|
10365
10372
|
"div",
|
10366
10373
|
{
|
10367
|
-
className: `flex ${
|
10374
|
+
className: `flex ${x ? "dc__gap-32" : "column dc__gap-20"} empty-state ${r || ""}`,
|
10368
10375
|
style: o,
|
10369
10376
|
"data-testid": "generic-empty-state",
|
10370
10377
|
children: [
|
@@ -10372,8 +10379,8 @@ const RR = ({
|
|
10372
10379
|
u,
|
10373
10380
|
{
|
10374
10381
|
style: {
|
10375
|
-
width: `${
|
10376
|
-
height: `${
|
10382
|
+
width: `${g().width}`,
|
10383
|
+
height: `${g().height}`,
|
10377
10384
|
...h
|
10378
10385
|
}
|
10379
10386
|
}
|
@@ -10384,8 +10391,8 @@ const RR = ({
|
|
10384
10391
|
imageProps: {
|
10385
10392
|
alt: "empty-state",
|
10386
10393
|
style: {
|
10387
|
-
width: `${
|
10388
|
-
height: `${
|
10394
|
+
width: `${g().width}`,
|
10395
|
+
height: `${g().height}`,
|
10389
10396
|
...h
|
10390
10397
|
}
|
10391
10398
|
}
|
@@ -10396,8 +10403,8 @@ const RR = ({
|
|
10396
10403
|
className: l || "",
|
10397
10404
|
src: s || Iu,
|
10398
10405
|
style: {
|
10399
|
-
width: `${
|
10400
|
-
height: `${
|
10406
|
+
width: `${g().width}`,
|
10407
|
+
height: `${g().height}`,
|
10401
10408
|
...h
|
10402
10409
|
},
|
10403
10410
|
alt: "empty-state"
|
@@ -10406,11 +10413,11 @@ const RR = ({
|
|
10406
10413
|
/* @__PURE__ */ t.jsxs(
|
10407
10414
|
"div",
|
10408
10415
|
{
|
10409
|
-
className: `flex column dc__gap-20 dc__mxw-300 ${
|
10416
|
+
className: `flex column dc__gap-20 dc__mxw-300 ${x ? "dc__align-start" : ""} ${_}`,
|
10410
10417
|
children: [
|
10411
10418
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-8", children: [
|
10412
10419
|
/* @__PURE__ */ t.jsx("h4", { className: "title fw-6 cn-9 mt-0 mb-0 lh-24 dc__align-center", children: e }),
|
10413
|
-
n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${
|
10420
|
+
n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${x ? "subtitle--text-start" : ""}`, children: n })
|
10414
10421
|
] }),
|
10415
10422
|
a && c(),
|
10416
10423
|
d
|
@@ -10765,9 +10772,9 @@ const Dn = ({
|
|
10765
10772
|
M(() => {
|
10766
10773
|
E();
|
10767
10774
|
}, [e, a]);
|
10768
|
-
const
|
10775
|
+
const x = () => {
|
10769
10776
|
E();
|
10770
|
-
},
|
10777
|
+
}, g = (S) => {
|
10771
10778
|
S.preventDefault(), d(!0), p.current = S.clientY, _.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
|
10772
10779
|
}, f = (S) => {
|
10773
10780
|
if (!l || !e?.dom || !u.current)
|
@@ -10780,12 +10787,12 @@ const Dn = ({
|
|
10780
10787
|
M(() => {
|
10781
10788
|
if (e) {
|
10782
10789
|
const { dom: S } = e;
|
10783
|
-
S.addEventListener("scroll",
|
10790
|
+
S.addEventListener("scroll", x);
|
10784
10791
|
}
|
10785
10792
|
return () => {
|
10786
10793
|
if (e) {
|
10787
10794
|
const { dom: S } = e;
|
10788
|
-
S.removeEventListener("scroll",
|
10795
|
+
S.removeEventListener("scroll", x);
|
10789
10796
|
}
|
10790
10797
|
};
|
10791
10798
|
}, [e]), M(() => (l ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", N)) : (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", N)), () => {
|
@@ -10822,7 +10829,7 @@ const Dn = ({
|
|
10822
10829
|
top: `${r}px`,
|
10823
10830
|
height: `${i}px`
|
10824
10831
|
},
|
10825
|
-
onMouseDown:
|
10832
|
+
onMouseDown: g
|
10826
10833
|
}
|
10827
10834
|
)
|
10828
10835
|
]
|
@@ -11079,9 +11086,9 @@ const Dn = ({
|
|
11079
11086
|
D?.preventDefault(), D?.stopPropagation(), a(), Tf(e), c(Un(r, e));
|
11080
11087
|
}, E = (D) => {
|
11081
11088
|
p({ search: D.target.value });
|
11082
|
-
}, g = (D) => {
|
11083
|
-
D.stopPropagation(), D.key === "Enter" && (D.preventDefault(), D.shiftKey ? h() : _());
|
11084
11089
|
}, x = (D) => {
|
11090
|
+
D.stopPropagation(), D.key === "Enter" && (D.preventDefault(), D.shiftKey ? h() : _());
|
11091
|
+
}, g = (D) => {
|
11085
11092
|
p({ replace: D.target.value });
|
11086
11093
|
}, f = (D) => {
|
11087
11094
|
D.stopPropagation(), D.key === "Enter" && (D.preventDefault(), a(), Vc(e));
|
@@ -11136,7 +11143,7 @@ const Dn = ({
|
|
11136
11143
|
value: r.search,
|
11137
11144
|
placeholder: "Find",
|
11138
11145
|
onChange: E,
|
11139
|
-
onKeyDown:
|
11146
|
+
onKeyDown: x,
|
11140
11147
|
"main-field": "true"
|
11141
11148
|
}
|
11142
11149
|
),
|
@@ -11260,7 +11267,7 @@ const Dn = ({
|
|
11260
11267
|
type: "text",
|
11261
11268
|
value: r.replace,
|
11262
11269
|
placeholder: "Replace with...",
|
11263
|
-
onChange:
|
11270
|
+
onChange: g,
|
11264
11271
|
onKeyDown: f
|
11265
11272
|
}
|
11266
11273
|
) }),
|
@@ -11479,8 +11486,8 @@ const Dn = ({
|
|
11479
11486
|
placeholder: _,
|
11480
11487
|
onFocus: h,
|
11481
11488
|
onBlur: E,
|
11482
|
-
extensions:
|
11483
|
-
autoFocus:
|
11489
|
+
extensions: x,
|
11490
|
+
autoFocus: g,
|
11484
11491
|
diffMinimapExtensions: f,
|
11485
11492
|
collapseUnchanged: N = !1,
|
11486
11493
|
disableMinimap: C = !1
|
@@ -11493,9 +11500,9 @@ const Dn = ({
|
|
11493
11500
|
be();
|
11494
11501
|
}, [b, S]), M(() => {
|
11495
11502
|
setTimeout(() => {
|
11496
|
-
|
11503
|
+
g && D.current?.view && D.current.view.focus();
|
11497
11504
|
}, 100);
|
11498
|
-
}, [
|
11505
|
+
}, [g]), M(() => {
|
11499
11506
|
let le = !1;
|
11500
11507
|
const K = document.querySelector("body");
|
11501
11508
|
if (K) {
|
@@ -11648,7 +11655,7 @@ const Dn = ({
|
|
11648
11655
|
onFocus: h,
|
11649
11656
|
onBlur: E,
|
11650
11657
|
onChange: d,
|
11651
|
-
extensions:
|
11658
|
+
extensions: x
|
11652
11659
|
}
|
11653
11660
|
)
|
11654
11661
|
]
|
@@ -11673,8 +11680,8 @@ const Dn = ({
|
|
11673
11680
|
onModifiedValueChange: _,
|
11674
11681
|
placeholder: h,
|
11675
11682
|
diffView: E,
|
11676
|
-
loading:
|
11677
|
-
customLoader:
|
11683
|
+
loading: x,
|
11684
|
+
customLoader: g,
|
11678
11685
|
validatorSchema: f = {},
|
11679
11686
|
schemaURI: N = _b,
|
11680
11687
|
cleanData: C = !1,
|
@@ -11783,8 +11790,8 @@ const Dn = ({
|
|
11783
11790
|
codeMirrorParentDivRef: O,
|
11784
11791
|
codeEditorTheme: J,
|
11785
11792
|
theme: G,
|
11786
|
-
loading:
|
11787
|
-
customLoader:
|
11793
|
+
loading: x,
|
11794
|
+
customLoader: g,
|
11788
11795
|
height: d,
|
11789
11796
|
shebang: u,
|
11790
11797
|
readOnly: j,
|
@@ -11982,8 +11989,8 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
11982
11989
|
name: m,
|
11983
11990
|
value: h,
|
11984
11991
|
onChange: E,
|
11985
|
-
children: _.map(({ label:
|
11986
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
11992
|
+
children: _.map(({ label: x, value: g, description: f }) => /* @__PURE__ */ t.jsx(g0, { value: g, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
11993
|
+
/* @__PURE__ */ t.jsx("span", { children: x }),
|
11987
11994
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-4 lh-18 cn-7", children: f })
|
11988
11995
|
] }) }))
|
11989
11996
|
}
|
@@ -12078,7 +12085,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12078
12085
|
);
|
12079
12086
|
}
|
12080
12087
|
return null;
|
12081
|
-
},
|
12088
|
+
}, x = () => {
|
12082
12089
|
if (c) {
|
12083
12090
|
const { convertVariables: N, onConvertVariablesClick: C } = c;
|
12084
12091
|
return /* @__PURE__ */ t.jsx(
|
@@ -12091,7 +12098,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12091
12098
|
);
|
12092
12099
|
}
|
12093
12100
|
return null;
|
12094
|
-
},
|
12101
|
+
}, g = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: S, title: b, diffState: A, singleView: R }) => {
|
12095
12102
|
const { heading: T, list: I } = C, { heading: y, list: v } = S;
|
12096
12103
|
return /* @__PURE__ */ t.jsx(
|
12097
12104
|
f0,
|
@@ -12147,7 +12154,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12147
12154
|
redirectURL: s.redirectURL,
|
12148
12155
|
reload: s.reload
|
12149
12156
|
}
|
12150
|
-
) : /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12 p-12", children:
|
12157
|
+
) : /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12 p-12", children: g() });
|
12151
12158
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary deployment-config-diff__main-top flexbox-col min-h-100 mw-none", children: [
|
12152
12159
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__border-bottom-n1 flexbox dc__align-items-center dc__position-sticky dc__top-0 bg__primary w-100 dc__zi-11", children: [
|
12153
12160
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center p-12 dc__gap-8 deployment-config-diff__main-top__header", children: [
|
@@ -12158,7 +12165,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12158
12165
|
/* @__PURE__ */ t.jsx("div", { className: "flex-grow-1 flexbox dc__align-items-center dc__gap-8 p-12", children: h(r.secondaryConfig) }),
|
12159
12166
|
(o || c) && /* @__PURE__ */ t.jsxs("div", { className: "dc__border-left flex dc__gap-8 pr-12 pl-8 py-8 dc__no-shrink", children: [
|
12160
12167
|
E(),
|
12161
|
-
|
12168
|
+
x()
|
12162
12169
|
] })
|
12163
12170
|
] })
|
12164
12171
|
] }),
|
@@ -12315,10 +12322,10 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12315
12322
|
}, E = (C) => {
|
12316
12323
|
const { value: S } = C.target;
|
12317
12324
|
c?.activeTab !== S && c?.onClick?.(S);
|
12318
|
-
},
|
12325
|
+
}, x = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12319
12326
|
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" }) }) }),
|
12320
12327
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12321
|
-
] }),
|
12328
|
+
] }), g = () => {
|
12322
12329
|
const { tabs: C, activeTab: S } = c;
|
12323
12330
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12324
12331
|
pa,
|
@@ -12369,8 +12376,8 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12369
12376
|
/* @__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." })
|
12370
12377
|
] }) : f();
|
12371
12378
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
12372
|
-
|
12373
|
-
!!c?.tabs.length &&
|
12379
|
+
x(),
|
12380
|
+
!!c?.tabs.length && g(),
|
12374
12381
|
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children: N() })
|
12375
12382
|
] });
|
12376
12383
|
}, T0 = ({
|
@@ -12708,15 +12715,15 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12708
12715
|
const E = od(
|
12709
12716
|
e,
|
12710
12717
|
r
|
12711
|
-
),
|
12718
|
+
), x = od(
|
12712
12719
|
s,
|
12713
12720
|
r
|
12714
|
-
),
|
12721
|
+
), g = td(
|
12715
12722
|
E.deploymentTemplate,
|
12716
12723
|
o,
|
12717
12724
|
c
|
12718
12725
|
), f = td(
|
12719
|
-
|
12726
|
+
x.deploymentTemplate,
|
12720
12727
|
i,
|
12721
12728
|
c
|
12722
12729
|
), N = {
|
@@ -12724,19 +12731,19 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12724
12731
|
pathType: _t.DeploymentTemplate,
|
12725
12732
|
title: "Deployment Template",
|
12726
12733
|
primaryConfig: {
|
12727
|
-
heading: Cr(
|
12734
|
+
heading: Cr(x.deploymentTemplate, !0),
|
12728
12735
|
list: f
|
12729
12736
|
},
|
12730
12737
|
secondaryConfig: {
|
12731
12738
|
heading: Cr(E.deploymentTemplate, !0),
|
12732
|
-
list:
|
12739
|
+
list: g
|
12733
12740
|
},
|
12734
|
-
diffState: Qa(
|
12741
|
+
diffState: Qa(g, f)
|
12735
12742
|
};
|
12736
12743
|
let C, S, b;
|
12737
|
-
if (E.pipelineConfigData ||
|
12744
|
+
if (E.pipelineConfigData || x.pipelineConfigData) {
|
12738
12745
|
C = nd(E.pipelineConfigData, c), S = nd(
|
12739
|
-
|
12746
|
+
x.pipelineConfigData,
|
12740
12747
|
c
|
12741
12748
|
);
|
12742
12749
|
const v = {
|
@@ -12763,18 +12770,18 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12763
12770
|
}
|
12764
12771
|
const A = rd(
|
12765
12772
|
E.configMapData,
|
12766
|
-
|
12773
|
+
x.configMapData,
|
12767
12774
|
Qt.ConfigMap,
|
12768
12775
|
E.isAppAdmin,
|
12769
|
-
|
12776
|
+
x.isAppAdmin,
|
12770
12777
|
r,
|
12771
12778
|
c
|
12772
12779
|
), R = rd(
|
12773
12780
|
E.secretsData,
|
12774
|
-
|
12781
|
+
x.secretsData,
|
12775
12782
|
Qt.Secret,
|
12776
12783
|
E.isAppAdmin,
|
12777
|
-
|
12784
|
+
x.isAppAdmin,
|
12778
12785
|
r,
|
12779
12786
|
c
|
12780
12787
|
), T = [
|
@@ -12999,7 +13006,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12999
13006
|
isCompareDeploymentConfigNotAvailable: u,
|
13000
13007
|
...m
|
13001
13008
|
}) => {
|
13002
|
-
const { path: p, params: _ } = bs(), { resourceType: h, resourceName: E, appId:
|
13009
|
+
const { path: p, params: _ } = bs(), { resourceType: h, resourceName: E, appId: x, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: C, sortOrder: S, handleSorting: b } = r, [A, R] = w({
|
13003
13010
|
isLoading: !1,
|
13004
13011
|
data: c,
|
13005
13012
|
hasMore: c.size >= en
|
@@ -13011,8 +13018,8 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13011
13018
|
R({ ...A, isLoading: !0 });
|
13012
13019
|
try {
|
13013
13020
|
const { result: ie } = await AR({
|
13014
|
-
appId: +
|
13015
|
-
envId: +
|
13021
|
+
appId: +x,
|
13022
|
+
envId: +g,
|
13016
13023
|
pagination: { offset: W, size: en }
|
13017
13024
|
}), ce = new Map((ie.cdWorkflows || []).map((de) => [de.id, de])), xe = new Map([...A.data, ...ce]);
|
13018
13025
|
R({
|
@@ -13112,9 +13119,9 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13112
13119
|
const { path: l, params: d } = bs(), { pathname: u, search: m } = ss(), { isSuperAdmin: p } = Ss(), _ = X(() => Rp(r), [r]), { currentWfrId: h, previousWfrId: E } = X(
|
13113
13120
|
() => D0({ pipelineDeployments: _, wfrId: a }),
|
13114
13121
|
[_, a]
|
13115
|
-
),
|
13122
|
+
), x = !!E, g = uc({
|
13116
13123
|
parseSearchParams: M0(E)
|
13117
|
-
}), { compareWfrId: f, sortBy: N, sortOrder: C } =
|
13124
|
+
}), { compareWfrId: f, sortBy: N, sortOrder: C } = g, [S, b] = w(!1), [A, R, , T] = vt(async () => {
|
13118
13125
|
const G = [
|
13119
13126
|
{
|
13120
13127
|
appName: e,
|
@@ -13123,7 +13130,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13123
13130
|
pipelineId: n,
|
13124
13131
|
wfrId: h
|
13125
13132
|
},
|
13126
|
-
|
13133
|
+
x ? {
|
13127
13134
|
appName: e,
|
13128
13135
|
envName: s,
|
13129
13136
|
configArea: "DeploymentHistory",
|
@@ -13141,7 +13148,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13141
13148
|
}), J;
|
13142
13149
|
}, [h, f]), I = (G, Q) => `${Qs(l, { ...d })}/${G}${Q ? `/${Q}` : ""}${m}`, { deploymentConfigList: y, sortedDeploymentConfigList: v } = X(() => {
|
13143
13150
|
if (!A && R) {
|
13144
|
-
const G =
|
13151
|
+
const G = x && R[1].status === "fulfilled" ? R[1].value.result : {
|
13145
13152
|
configMapData: null,
|
13146
13153
|
deploymentTemplate: null,
|
13147
13154
|
secretsData: null,
|
@@ -13163,7 +13170,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13163
13170
|
}
|
13164
13171
|
return { deploymentConfigList: null, sortedDeploymentConfigList: null };
|
13165
13172
|
}, [
|
13166
|
-
|
13173
|
+
x,
|
13167
13174
|
A,
|
13168
13175
|
R,
|
13169
13176
|
S,
|
@@ -13175,7 +13182,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13175
13182
|
), P = X(
|
13176
13183
|
() => v ? eI(v.configList, "groupHeader") : [],
|
13177
13184
|
[v]
|
13178
|
-
), O = R && ld(R[1]), D = !
|
13185
|
+
), O = R && ld(R[1]), D = !x || O, k = A || !j && !y, B = {
|
13179
13186
|
code: j?.code,
|
13180
13187
|
error: j && !A,
|
13181
13188
|
reload: T
|
@@ -13195,7 +13202,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13195
13202
|
errorConfig: B,
|
13196
13203
|
envName: s,
|
13197
13204
|
wfrId: a,
|
13198
|
-
urlFilters:
|
13205
|
+
urlFilters: g,
|
13199
13206
|
pipelineDeployments: _,
|
13200
13207
|
setFullScreenView: o,
|
13201
13208
|
convertVariables: S,
|
@@ -13274,18 +13281,18 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13274
13281
|
"data-testid": `configuration-link-${n ? "previous-deployment" : "no-previous-deployment"}`,
|
13275
13282
|
children: s && Object.keys({ ...e?.values, ...s.values }).map(
|
13276
13283
|
(_, h) => {
|
13277
|
-
const E = e?.values?.[_],
|
13284
|
+
const E = e?.values?.[_], x = s.values[_], g = n && E?.value !== x?.value;
|
13278
13285
|
return (
|
13279
13286
|
// eslint-disable-next-line react/no-array-index-key
|
13280
13287
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__contents", children: [
|
13281
13288
|
E?.value ? ud(
|
13282
|
-
|
13289
|
+
g ? "code-editor-red-diff" : "",
|
13283
13290
|
E,
|
13284
13291
|
`configuration-deployment-template-heading-${h}`
|
13285
13292
|
) : /* @__PURE__ */ t.jsx("div", {}),
|
13286
|
-
|
13287
|
-
|
13288
|
-
|
13293
|
+
x?.value ? ud(
|
13294
|
+
g ? "code-editor-green-diff" : "",
|
13295
|
+
x,
|
13289
13296
|
`configuration-deployment-template-heading-${h}`
|
13290
13297
|
) : /* @__PURE__ */ t.jsx("div", {})
|
13291
13298
|
] }, `deployment-history-diff-view-${h}`)
|
@@ -13435,7 +13442,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13435
13442
|
}
|
13436
13443
|
)
|
13437
13444
|
}
|
13438
|
-
) : /* @__PURE__ */ t.jsx(Xc, { "data-testid": "valid-git-commit" }), E = () => l.isselected ? /* @__PURE__ */ t.jsx(qc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : h(),
|
13445
|
+
) : /* @__PURE__ */ t.jsx(Xc, { "data-testid": "valid-git-commit" }), E = () => l.isselected ? /* @__PURE__ */ t.jsx(qc, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : h(), x = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (A) => {
|
13439
13446
|
const R = A?.split("/").pop();
|
13440
13447
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
|
13441
13448
|
/* @__PURE__ */ t.jsxs(
|
@@ -13460,10 +13467,10 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13460
13467
|
A
|
13461
13468
|
] }), N = () => a ? l.isselected ? /* @__PURE__ */ t.jsx(qc, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ t.jsx(Xc, { "data-testid": "valid-git-commit icon-dim-20" }) : null, C = () => /* @__PURE__ */ t.jsxs("div", { className: "flex column left dc__gap-8", children: [
|
13462
13469
|
/* @__PURE__ */ t.jsxs("div", { className: "flex dc__content-space w-100", children: [
|
13463
|
-
|
13470
|
+
g(u.data["git url"]),
|
13464
13471
|
N()
|
13465
13472
|
] }),
|
13466
|
-
|
13473
|
+
x(),
|
13467
13474
|
_(!0)
|
13468
13475
|
] }), S = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13469
13476
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__content-space", children: [
|
@@ -13619,8 +13626,8 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13619
13626
|
appliedFiltersTimestamp: _,
|
13620
13627
|
promotionApprovalMetadata: h,
|
13621
13628
|
selectedEnvironmentName: E,
|
13622
|
-
renderCIListHeader:
|
13623
|
-
targetPlatforms:
|
13629
|
+
renderCIListHeader: x,
|
13630
|
+
targetPlatforms: g,
|
13624
13631
|
isDeploymentWithoutApproval: f
|
13625
13632
|
}) => {
|
13626
13633
|
const { isSuperAdmin: N } = Qm();
|
@@ -13676,8 +13683,8 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13676
13683
|
isSuperAdmin: N,
|
13677
13684
|
promotionApprovalMetadata: h,
|
13678
13685
|
selectedEnvironmentName: E,
|
13679
|
-
renderCIListHeader:
|
13680
|
-
targetPlatforms:
|
13686
|
+
renderCIListHeader: x,
|
13687
|
+
targetPlatforms: g,
|
13681
13688
|
isDeploymentWithoutApproval: f,
|
13682
13689
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
|
13683
13690
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-9 fs-14 flex left", children: [
|
@@ -13713,9 +13720,9 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13713
13720
|
}, E = () => {
|
13714
13721
|
const f = Zv({ startTime: r, endTime: a });
|
13715
13722
|
return f === "0s" ? "< 1s" : f;
|
13716
|
-
},
|
13723
|
+
}, x = (f) => {
|
13717
13724
|
f && (f.dataset.containsMatch === "true" && f.dataset.triggered !== "true" && (f.dataset.triggered = "true", f.scrollIntoView({ block: "center", behavior: "smooth" })), f.dataset.containsMatch === "false" && (f.dataset.triggered = "false"));
|
13718
|
-
},
|
13725
|
+
}, g = () => _.current;
|
13719
13726
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
|
13720
13727
|
/* @__PURE__ */ t.jsxs(
|
13721
13728
|
"button",
|
@@ -13743,7 +13750,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13743
13750
|
cp,
|
13744
13751
|
{
|
13745
13752
|
targetPlatforms: p,
|
13746
|
-
appendTo:
|
13753
|
+
appendTo: g,
|
13747
13754
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-items-center", children: [
|
13748
13755
|
/* @__PURE__ */ t.jsx(Fi, { className: "dc__no-shrink icon-stroke__white icon-dim-12" }),
|
13749
13756
|
/* @__PURE__ */ t.jsxs("span", { className: "text__white fs-13 fw-4 lh-20", children: [
|
@@ -13771,7 +13778,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13771
13778
|
/* @__PURE__ */ t.jsx(
|
13772
13779
|
"span",
|
13773
13780
|
{
|
13774
|
-
ref:
|
13781
|
+
ref: x,
|
13775
13782
|
className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
|
13776
13783
|
"data-contains-match": C,
|
13777
13784
|
children: N + 1
|
@@ -13829,17 +13836,17 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13829
13836
|
function E() {
|
13830
13837
|
r = Ga, a((f) => [...f, ...d.current]), d.current = [], u.current.close(), l(null);
|
13831
13838
|
}
|
13832
|
-
function
|
13833
|
-
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(Va.MESSAGE, _), u.current.addEventListener(Va.START_OF_STREAM, h), u.current.addEventListener(Va.END_OF_STREAM, E), u.current.addEventListener(Va.ERROR,
|
13839
|
+
function x() {
|
13840
|
+
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(Va.MESSAGE, _), u.current.addEventListener(Va.START_OF_STREAM, h), u.current.addEventListener(Va.END_OF_STREAM, E), u.current.addEventListener(Va.ERROR, g);
|
13834
13841
|
}
|
13835
|
-
function
|
13836
|
-
r -= 1, u.current && u.current.close(), r > 0 ?
|
13842
|
+
function g(f) {
|
13843
|
+
r -= 1, u.current && u.current.close(), r > 0 ? x() : (i(!0), l(null));
|
13837
13844
|
}
|
13838
|
-
return M(() => (e &&
|
13845
|
+
return M(() => (e && x(), p), [e, s]), [n, u.current, o];
|
13839
13846
|
}, J0 = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
13840
13847
|
const { pipelineId: r, envId: o, appId: i } = Dt(), c = $(null), l = n === Ge.CI ? `${ur}/${Y.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${ur}/${Y.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = X0(
|
13841
13848
|
e.podStatus && e.podStatus !== jo.PENDING && l
|
13842
|
-
), [p, _] = w([]), [h, E] = w([]), [
|
13849
|
+
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, N] = w([]), { searchKey: C, handleSearch: S } = uc(), 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(Ul) || !1;
|
13843
13850
|
function v({
|
13844
13851
|
log: W,
|
13845
13852
|
currentIndex: ie = -1,
|
@@ -13943,7 +13950,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13943
13950
|
N(ie);
|
13944
13951
|
return;
|
13945
13952
|
}
|
13946
|
-
const W = O(
|
13953
|
+
const W = O(x);
|
13947
13954
|
_(W);
|
13948
13955
|
}, [d, P]);
|
13949
13956
|
const D = Fe(() => {
|
@@ -13960,7 +13967,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13960
13967
|
const k = (W, ie = C) => {
|
13961
13968
|
if (h.length > 0 || W === "reset") {
|
13962
13969
|
let ce = 0;
|
13963
|
-
W === "next" ? ce = (
|
13970
|
+
W === "next" ? ce = (x + 1) % h.length : W === "prev" && (ce = x > 0 ? x - 1 : h.length - 1), g(ce), _(O(ce, ie));
|
13964
13971
|
}
|
13965
13972
|
}, B = () => {
|
13966
13973
|
k("next");
|
@@ -14006,7 +14013,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14006
14013
|
),
|
14007
14014
|
!!C && /* @__PURE__ */ t.jsxs("div", { className: "flexbox px-10 py-6 dc__gap-8 dc__align-items-center", children: [
|
14008
14015
|
/* @__PURE__ */ t.jsxs("span", { className: "fs-13 fw-4 lh-20 text__white", children: [
|
14009
|
-
b ?
|
14016
|
+
b ? x + 1 : 0,
|
14010
14017
|
"/",
|
14011
14018
|
h.length,
|
14012
14019
|
" results"
|
@@ -14078,7 +14085,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14078
14085
|
stageIndex: me,
|
14079
14086
|
isLoading: me === p.length - 1 && P,
|
14080
14087
|
fullScreenView: a,
|
14081
|
-
searchIndex: h[
|
14088
|
+
searchIndex: h[x],
|
14082
14089
|
logsRendererRef: c
|
14083
14090
|
},
|
14084
14091
|
`${W}-${de}-log-stage-accordion`
|
@@ -14665,15 +14672,15 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14665
14672
|
resourceId: _,
|
14666
14673
|
podName: h,
|
14667
14674
|
namespace: E,
|
14668
|
-
workflowExecutionStages:
|
14675
|
+
workflowExecutionStages: x
|
14669
14676
|
}) => {
|
14670
|
-
const { path:
|
14677
|
+
const { path: g, params: f } = bs(), { pathname: N } = ss(), C = N.split("/").pop(), { envId: S, ...b } = Dt(), A = l === Ge.CD || l === Ge.GROUP_CD, R = A ? "triggerId" : "buildId", T = _ === p?.id, I = $(null), y = () => {
|
14671
14678
|
const D = {
|
14672
14679
|
...b,
|
14673
14680
|
envId: S,
|
14674
14681
|
[R]: e
|
14675
14682
|
};
|
14676
|
-
return `${Qs(
|
14683
|
+
return `${Qs(g, D)}/${C}`;
|
14677
14684
|
}, v = () => {
|
14678
14685
|
I?.current && I.current.scrollIntoView({ behavior: "smooth" });
|
14679
14686
|
};
|
@@ -14682,7 +14689,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14682
14689
|
}, [I]);
|
14683
14690
|
const j = f[R], P = (D) => {
|
14684
14691
|
+j == +e && (I.current = D);
|
14685
|
-
}, O = d !== fs.DEPLOY && Object.keys(
|
14692
|
+
}, O = d !== fs.DEPLOY && Object.keys(x || {}).length > 0;
|
14686
14693
|
return /* @__PURE__ */ t.jsx(
|
14687
14694
|
pt,
|
14688
14695
|
{
|
@@ -14697,7 +14704,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14697
14704
|
O ? /* @__PURE__ */ t.jsx(
|
14698
14705
|
ay,
|
14699
14706
|
{
|
14700
|
-
workflowExecutionStages:
|
14707
|
+
workflowExecutionStages: x,
|
14701
14708
|
triggeredByEmail: r,
|
14702
14709
|
namespace: E,
|
14703
14710
|
podName: h,
|
@@ -14729,7 +14736,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14729
14736
|
activeClassName: "active",
|
14730
14737
|
ref: P,
|
14731
14738
|
children: /* @__PURE__ */ t.jsxs("div", { className: "w-100 deployment-history-card", children: [
|
14732
|
-
O ? zA(
|
14739
|
+
O ? zA(x) : /* @__PURE__ */ t.jsx(
|
14733
14740
|
Ln,
|
14734
14741
|
{
|
14735
14742
|
status: ZA(s),
|
@@ -14777,14 +14784,14 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14777
14784
|
}) => {
|
14778
14785
|
const { pipelineId: u, appId: m, envId: p } = Dt(), { push: _ } = Ur(), { path: h } = bs(), E = (b) => {
|
14779
14786
|
e === Ge.CI ? (r({ offset: 0, size: 20 }), _(Qs(h, { appId: m, pipelineId: b.value }))) : e === Ge.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Qs(h, { envId: p, pipelineId: b.pipelineId }))) : e === Ge.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Qs(h, { envId: p, appId: b.value, pipelineId: b.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Qs(h, { appId: m, envId: b.value, pipelineId: b.pipelineId })));
|
14780
|
-
},
|
14787
|
+
}, x = () => {
|
14781
14788
|
xs.event({
|
14782
14789
|
category: "pagination",
|
14783
14790
|
action: "auto",
|
14784
14791
|
label: `${e.toLowerCase()}-history`,
|
14785
14792
|
value: n.size
|
14786
14793
|
}), r({ offset: n.size, size: 20 });
|
14787
|
-
},
|
14794
|
+
}, g = () => e === Ge.CI || e === Ge.GROUP_CI ? u : e === Ge.GROUP_CD ? m : p, f = s?.find((b) => b.value === g()) ?? null;
|
14788
14795
|
s?.sort((b, A) => b.label > A.label ? 1 : -1);
|
14789
14796
|
const N = s?.filter((b) => !b.deploymentAppDeleteRequest), C = () => e === Ge.GROUP_CI || e === Ge.GROUP_CD ? yo.APPLICATION : e === Ge.CI ? yo.PIPELINE : yo.ENVIRONMENT, S = (b) => (b.selectProps.styles.option = ey(), /* @__PURE__ */ t.jsx(qe.Option, { ...b, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
14790
14797
|
(e === Ge.CI || e === Ge.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
@@ -14854,7 +14861,7 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14854
14861
|
},
|
14855
14862
|
b
|
14856
14863
|
)),
|
14857
|
-
a && (o === Ls.SUSPEND || !o) && /* @__PURE__ */ t.jsx(Op, { callback:
|
14864
|
+
a && (o === Ls.SUSPEND || !o) && /* @__PURE__ */ t.jsx(Op, { callback: x })
|
14858
14865
|
] })
|
14859
14866
|
] });
|
14860
14867
|
}
|
@@ -14866,37 +14873,37 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14866
14873
|
}) => {
|
14867
14874
|
const r = $(Lt()), [o, i] = w(0), { allResourceKindFilter: c, statusFilters: l } = JA(XA(e));
|
14868
14875
|
M(() => {
|
14869
|
-
const
|
14870
|
-
|
14876
|
+
const x = l.findIndex(({ status: g }) => g === s);
|
14877
|
+
x === -1 && n(c.status), i(Math.max(x, 0));
|
14871
14878
|
}, [JSON.stringify(l)]);
|
14872
14879
|
const d = a > 0 && l.length > a, m = (() => {
|
14873
14880
|
if (d) {
|
14874
|
-
const
|
14875
|
-
return l.slice(
|
14881
|
+
const x = Math.max(0, Math.min(o - 1, l.length - a)), g = Math.min(x + a, l.length);
|
14882
|
+
return l.slice(x, g);
|
14876
14883
|
}
|
14877
14884
|
return l;
|
14878
|
-
})(), p = (
|
14879
|
-
const { value:
|
14880
|
-
|
14881
|
-
}, _ = (
|
14882
|
-
s !==
|
14885
|
+
})(), p = (x) => {
|
14886
|
+
const { value: g } = x;
|
14887
|
+
g === c.status && i(0), s !== g && n(g);
|
14888
|
+
}, _ = (x, g) => () => {
|
14889
|
+
s !== x && (i(g), n(x));
|
14883
14890
|
}, h = [
|
14884
14891
|
{
|
14885
14892
|
value: c.status,
|
14886
14893
|
label: `All (${c.count})`
|
14887
14894
|
},
|
14888
|
-
...m.map(({ status:
|
14889
|
-
value:
|
14895
|
+
...m.map(({ status: x, count: g }) => ({
|
14896
|
+
value: x,
|
14890
14897
|
label: /* @__PURE__ */ t.jsxs("span", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
14891
|
-
Fl(
|
14892
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
14898
|
+
Fl(x, !0),
|
14899
|
+
/* @__PURE__ */ t.jsx("span", { children: g })
|
14893
14900
|
] }),
|
14894
14901
|
tooltipProps: {
|
14895
|
-
content:
|
14902
|
+
content: x,
|
14896
14903
|
className: "w-100 dc__first-letter-capitalize"
|
14897
14904
|
}
|
14898
14905
|
}))
|
14899
|
-
], E = h.find(({ value:
|
14906
|
+
], E = h.find(({ value: x }) => x === s)?.value || null;
|
14900
14907
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox status-filter__container", children: [
|
14901
14908
|
/* @__PURE__ */ t.jsx(
|
14902
14909
|
ZD,
|
@@ -14917,18 +14924,18 @@ const gc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14917
14924
|
children: /* @__PURE__ */ t.jsx(Cs, { className: "icon-dim-14 scn-6" })
|
14918
14925
|
}
|
14919
14926
|
),
|
14920
|
-
/* @__PURE__ */ t.jsx(jt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: l.map(({ status:
|
14927
|
+
/* @__PURE__ */ t.jsx(jt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: l.map(({ status: x, count: g }, f) => /* @__PURE__ */ t.jsxs(
|
14921
14928
|
"button",
|
14922
14929
|
{
|
14923
14930
|
type: "button",
|
14924
|
-
className: `dc__transparent w-100 py-6 px-8 flex dc__content-space dc__gap-8 fs-13 lh-20 fw-4 cn-9 dc__hover-n50 ${s ===
|
14925
|
-
onClick: _(
|
14931
|
+
className: `dc__transparent w-100 py-6 px-8 flex dc__content-space dc__gap-8 fs-13 lh-20 fw-4 cn-9 dc__hover-n50 ${s === x ? "bcb-1" : ""}`,
|
14932
|
+
onClick: _(x, f),
|
14926
14933
|
children: [
|
14927
|
-
Fl(
|
14928
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
14934
|
+
Fl(x),
|
14935
|
+
/* @__PURE__ */ t.jsx("span", { children: g })
|
14929
14936
|
]
|
14930
14937
|
},
|
14931
|
-
|
14938
|
+
x
|
14932
14939
|
)) })
|
14933
14940
|
] })
|
14934
14941
|
] });
|
@@ -15204,14 +15211,14 @@ const uy = (e) => {
|
|
15204
15211
|
isLandscapeView: d = !1,
|
15205
15212
|
showConfetti: u = !1
|
15206
15213
|
}) => {
|
15207
|
-
const { registerShortcut: m, unregisterShortcut: p } = wn(), [_, h] = w(""), E = o?.identifier,
|
15208
|
-
|
15214
|
+
const { registerShortcut: m, unregisterShortcut: p } = wn(), [_, h] = w(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, N = n ?? uy(a), C = a === Wt.custom && !n, S = !!g?.disabled || x && _.trim() !== x, b = () => {
|
15215
|
+
g && !S && g.onClick();
|
15209
15216
|
}, A = Fe(() => {
|
15210
|
-
!
|
15211
|
-
}, [
|
15217
|
+
!g?.isLoading && !f?.disabled && c();
|
15218
|
+
}, [g, f]);
|
15212
15219
|
M(() => (m({ keys: ["Enter"], callback: b }), () => {
|
15213
15220
|
p(["Enter"]);
|
15214
|
-
}), [
|
15221
|
+
}), [g, S]);
|
15215
15222
|
const R = (T) => {
|
15216
15223
|
h(T.target.value);
|
15217
15224
|
};
|
@@ -15246,7 +15253,7 @@ const uy = (e) => {
|
|
15246
15253
|
name: E,
|
15247
15254
|
value: _,
|
15248
15255
|
onChange: R,
|
15249
|
-
label: my(
|
15256
|
+
label: my(x),
|
15250
15257
|
fullWidth: !0,
|
15251
15258
|
placeholder: "Type to confirm",
|
15252
15259
|
required: !0,
|
@@ -15269,20 +15276,20 @@ const uy = (e) => {
|
|
15269
15276
|
endIcon: f.endIcon
|
15270
15277
|
}
|
15271
15278
|
),
|
15272
|
-
|
15279
|
+
g && /* @__PURE__ */ t.jsx(
|
15273
15280
|
H,
|
15274
15281
|
{
|
15275
15282
|
id: _d,
|
15276
15283
|
dataTestId: "confirmation-modal-primary-button",
|
15277
15284
|
size: L.large,
|
15278
15285
|
variant: z.primary,
|
15279
|
-
style: "style" in
|
15286
|
+
style: "style" in g ? g.style : py(a),
|
15280
15287
|
disabled: S,
|
15281
|
-
isLoading:
|
15282
|
-
text:
|
15283
|
-
onClick:
|
15284
|
-
startIcon:
|
15285
|
-
endIcon:
|
15288
|
+
isLoading: g.isLoading,
|
15289
|
+
text: g.text,
|
15290
|
+
onClick: g.onClick,
|
15291
|
+
startIcon: g.startIcon,
|
15292
|
+
endIcon: g.endIcon || /* @__PURE__ */ t.jsx(F, { name: "ic-key-enter", color: null })
|
15286
15293
|
}
|
15287
15294
|
)
|
15288
15295
|
] })
|
@@ -15373,7 +15380,7 @@ const uy = (e) => {
|
|
15373
15380
|
successToastMessage: p,
|
15374
15381
|
children: _
|
15375
15382
|
}) => {
|
15376
|
-
const [h, E] = w(!1), [
|
15383
|
+
const [h, E] = w(!1), [x, g] = w(!1), [f, N] = w(u), [C, S] = w(o), b = async (v) => {
|
15377
15384
|
v && Ae(v), S(!0);
|
15378
15385
|
try {
|
15379
15386
|
await i(), Ve.showToast({
|
@@ -15385,7 +15392,7 @@ const uy = (e) => {
|
|
15385
15392
|
}
|
15386
15393
|
}, A = () => {
|
15387
15394
|
E(!1), l();
|
15388
|
-
}, R = () =>
|
15395
|
+
}, R = () => g(!1), T = () => /* @__PURE__ */ t.jsx(
|
15389
15396
|
fy,
|
15390
15397
|
{
|
15391
15398
|
title: e,
|
@@ -15426,9 +15433,9 @@ const uy = (e) => {
|
|
15426
15433
|
}
|
15427
15434
|
);
|
15428
15435
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15429
|
-
!h && !
|
15436
|
+
!h && !x && y(),
|
15430
15437
|
h && T(),
|
15431
|
-
|
15438
|
+
x && I()
|
15432
15439
|
] });
|
15433
15440
|
}, fd = It(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
|
15434
15441
|
const o = r?.finishedOn || s, i = () => r ? /* @__PURE__ */ t.jsxs("span", { className: "cn-9 fs-13 fw-6 lh-20", children: [
|
@@ -15456,7 +15463,7 @@ const uy = (e) => {
|
|
15456
15463
|
message: ""
|
15457
15464
|
}), { buildId: d, triggerId: u, pipelineId: m } = Dt();
|
15458
15465
|
let p = null;
|
15459
|
-
s === Ge.CI ? p = (
|
15466
|
+
s === Ge.CI ? p = (x) => CR({ pipelineId: m, workflowId: d }, x) : e !== fs.DEPLOY && (p = (x) => NR(m, u, x));
|
15460
15467
|
async function _() {
|
15461
15468
|
r(!0);
|
15462
15469
|
try {
|
@@ -15467,12 +15474,12 @@ const uy = (e) => {
|
|
15467
15474
|
status: !1,
|
15468
15475
|
message: ""
|
15469
15476
|
});
|
15470
|
-
} catch (
|
15471
|
-
if (
|
15472
|
-
const { errors:
|
15477
|
+
} catch (x) {
|
15478
|
+
if (x.code === 400) {
|
15479
|
+
const { errors: g } = x;
|
15473
15480
|
l({
|
15474
15481
|
status: !0,
|
15475
|
-
message:
|
15482
|
+
message: g[0].userMessage
|
15476
15483
|
});
|
15477
15484
|
}
|
15478
15485
|
} finally {
|
@@ -15661,8 +15668,8 @@ const uy = (e) => {
|
|
15661
15668
|
isJobView: _,
|
15662
15669
|
workerPodName: h,
|
15663
15670
|
triggerMetadata: E,
|
15664
|
-
renderDeploymentHistoryTriggerMetaText:
|
15665
|
-
renderTargetConfigInfo:
|
15671
|
+
renderDeploymentHistoryTriggerMetaText: x,
|
15672
|
+
renderTargetConfigInfo: g,
|
15666
15673
|
workflowExecutionStages: f,
|
15667
15674
|
namespace: N
|
15668
15675
|
}) => {
|
@@ -15687,18 +15694,18 @@ const uy = (e) => {
|
|
15687
15694
|
artifact: m,
|
15688
15695
|
type: d,
|
15689
15696
|
environmentName: p,
|
15690
|
-
renderTargetConfigInfo:
|
15697
|
+
renderTargetConfigInfo: g,
|
15691
15698
|
stage: u
|
15692
15699
|
}
|
15693
15700
|
) })
|
15694
15701
|
] }),
|
15695
|
-
!!E && !!
|
15702
|
+
!!E && !!x && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
15696
15703
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
15697
15704
|
Xs(),
|
15698
|
-
|
15705
|
+
x(E, !0),
|
15699
15706
|
Xs()
|
15700
15707
|
] }) }),
|
15701
|
-
|
15708
|
+
x(E)
|
15702
15709
|
] }),
|
15703
15710
|
_ && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
15704
15711
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
@@ -15837,16 +15844,16 @@ const uy = (e) => {
|
|
15837
15844
|
shouldWrapTooltip: _,
|
15838
15845
|
tooltipProps: h,
|
15839
15846
|
uniqueGroupId: E,
|
15840
|
-
iconElement:
|
15847
|
+
iconElement: x
|
15841
15848
|
}) => {
|
15842
|
-
const { pathname:
|
15849
|
+
const { pathname: g, search: f } = ss(), N = $(null), [C, S] = w(n === "button" && a);
|
15843
15850
|
M(() => {
|
15844
15851
|
if (n === "navLink") {
|
15845
15852
|
S(N.current?.classList.contains("active") || !1);
|
15846
15853
|
return;
|
15847
15854
|
}
|
15848
15855
|
S(a);
|
15849
|
-
}, [a, n,
|
15856
|
+
}, [a, n, g, f]);
|
15850
15857
|
const { tabClassName: b, iconClassName: A, badgeClassName: R } = Ty({
|
15851
15858
|
hideTopPadding: c
|
15852
15859
|
})[o], T = (v) => {
|
@@ -15854,7 +15861,7 @@ const uy = (e) => {
|
|
15854
15861
|
}, I = () => {
|
15855
15862
|
const v = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
15856
15863
|
/* @__PURE__ */ t.jsxs("span", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
15857
|
-
vy({ className: A, icon: r, showError: d, showWarning: u, size: o, active: a, iconElement:
|
15864
|
+
vy({ className: A, icon: r, showError: d, showWarning: u, size: o, active: a, iconElement: x }),
|
15858
15865
|
/* @__PURE__ */ t.jsx(ee, { content: e, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: e }) }),
|
15859
15866
|
Iy(i, R),
|
15860
15867
|
Ay(l)
|
@@ -15956,8 +15963,8 @@ const uy = (e) => {
|
|
15956
15963
|
resourceId: _,
|
15957
15964
|
renderRunSource: h,
|
15958
15965
|
processVirtualEnvironmentDeploymentData: E,
|
15959
|
-
renderDeploymentApprovalInfo:
|
15960
|
-
renderCIListHeader:
|
15966
|
+
renderDeploymentApprovalInfo: x,
|
15967
|
+
renderCIListHeader: g,
|
15961
15968
|
renderVirtualHistoryArtifacts: f,
|
15962
15969
|
scrollToTop: N,
|
15963
15970
|
scrollToBottom: C,
|
@@ -16002,7 +16009,7 @@ const uy = (e) => {
|
|
16002
16009
|
isHelmApps: !1,
|
16003
16010
|
isVirtualEnvironment: e.IsVirtualEnvironment,
|
16004
16011
|
processVirtualEnvironmentDeploymentData: E,
|
16005
|
-
renderDeploymentApprovalInfo:
|
16012
|
+
renderDeploymentApprovalInfo: x,
|
16006
16013
|
isDeploymentWithoutApproval: e.isDeploymentWithoutApproval ?? !1
|
16007
16014
|
}
|
16008
16015
|
) }),
|
@@ -16025,7 +16032,7 @@ const uy = (e) => {
|
|
16025
16032
|
appliedFiltersTimestamp: e.appliedFiltersTimestamp,
|
16026
16033
|
selectedEnvironmentName: p,
|
16027
16034
|
promotionApprovalMetadata: e?.promotionApprovalMetadata,
|
16028
|
-
renderCIListHeader:
|
16035
|
+
renderCIListHeader: g,
|
16029
16036
|
targetPlatforms: R,
|
16030
16037
|
isDeploymentWithoutApproval: e.isDeploymentWithoutApproval ?? !1
|
16031
16038
|
}
|
@@ -16062,7 +16069,7 @@ const uy = (e) => {
|
|
16062
16069
|
appReleaseTagNames: d,
|
16063
16070
|
hideImageTaggingHardDelete: m,
|
16064
16071
|
downloadArtifactUrl: O,
|
16065
|
-
renderCIListHeader:
|
16072
|
+
renderCIListHeader: g,
|
16066
16073
|
targetPlatforms: R,
|
16067
16074
|
rootClassName: "p-16 flex-grow-1"
|
16068
16075
|
}
|
@@ -16092,8 +16099,8 @@ const uy = (e) => {
|
|
16092
16099
|
renderRunSource: _,
|
16093
16100
|
renderCIListHeader: h,
|
16094
16101
|
renderDeploymentApprovalInfo: E,
|
16095
|
-
processVirtualEnvironmentDeploymentData:
|
16096
|
-
renderVirtualHistoryArtifacts:
|
16102
|
+
processVirtualEnvironmentDeploymentData: x,
|
16103
|
+
renderVirtualHistoryArtifacts: g,
|
16097
16104
|
renderDeploymentHistoryTriggerMetaText: f,
|
16098
16105
|
resourceId: N,
|
16099
16106
|
scrollToTop: C,
|
@@ -16204,10 +16211,10 @@ const uy = (e) => {
|
|
16204
16211
|
selectedEnvironmentName: m,
|
16205
16212
|
resourceId: N,
|
16206
16213
|
renderRunSource: _,
|
16207
|
-
processVirtualEnvironmentDeploymentData:
|
16214
|
+
processVirtualEnvironmentDeploymentData: x,
|
16208
16215
|
renderDeploymentApprovalInfo: E,
|
16209
16216
|
renderCIListHeader: h,
|
16210
|
-
renderVirtualHistoryArtifacts:
|
16217
|
+
renderVirtualHistoryArtifacts: g,
|
16211
16218
|
scrollToTop: C,
|
16212
16219
|
scrollToBottom: S,
|
16213
16220
|
fullScreenView: e,
|
@@ -16721,13 +16728,13 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16721
16728
|
initialTab: u,
|
16722
16729
|
debugWithAIButton: m
|
16723
16730
|
}) => {
|
16724
|
-
const [p, _] = w(!1), [h, E] = w(u || null),
|
16731
|
+
const [p, _] = w(!1), [h, E] = w(u || null), x = $(new AbortController()), g = $(null), f = async () => await Pr(
|
16725
16732
|
() => By({
|
16726
16733
|
appId: l,
|
16727
16734
|
envId: d,
|
16728
|
-
abortControllerRef:
|
16735
|
+
abortControllerRef: x
|
16729
16736
|
}),
|
16730
|
-
|
16737
|
+
x
|
16731
16738
|
), [
|
16732
16739
|
N,
|
16733
16740
|
C,
|
@@ -16760,7 +16767,7 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16760
16767
|
] = vt(v, [T, h], !!T, {
|
16761
16768
|
resetOnChange: !1
|
16762
16769
|
}), B = async () => {
|
16763
|
-
|
16770
|
+
g.current = setTimeout(
|
16764
16771
|
async () => {
|
16765
16772
|
try {
|
16766
16773
|
const K = await f();
|
@@ -16790,7 +16797,7 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16790
16797
|
);
|
16791
16798
|
}, Q = N || Kt(S), J = j || Kt(O), be = h === ht.DEPLOYMENT_STATUS && J;
|
16792
16799
|
M(() => {
|
16793
|
-
!N && !S && C && !
|
16800
|
+
!N && !S && C && !g.current && B();
|
16794
16801
|
}, [N, C, S]), M(() => {
|
16795
16802
|
!j && !O && P && !y.current && G();
|
16796
16803
|
}, [j, P, O]);
|
@@ -16799,7 +16806,7 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16799
16806
|
};
|
16800
16807
|
M(
|
16801
16808
|
() => () => {
|
16802
|
-
|
16809
|
+
g.current && clearTimeout(g.current), Ee(), x.current.abort(), I.current.abort();
|
16803
16810
|
},
|
16804
16811
|
[]
|
16805
16812
|
);
|
@@ -17454,8 +17461,8 @@ const Wy = {
|
|
17454
17461
|
order: e[n]?.defaultSortOrder || Nr.ASC
|
17455
17462
|
}), [c, l] = w(Array(s.length).fill(!1)), d = X(
|
17456
17463
|
() => s.sort((h, E) => {
|
17457
|
-
const
|
17458
|
-
return o.order * f(
|
17464
|
+
const x = h.cells[o.index].cellContent, g = E.cells[o.index].cellContent, f = e[o.index].compareFunc || Zy;
|
17465
|
+
return o.order * f(x, g);
|
17459
17466
|
}),
|
17460
17467
|
[s, o]
|
17461
17468
|
), u = () => i({ ...o, order: -1 * o.order }), m = (h) => () => i({ index: h, order: e[h]?.defaultSortOrder || Nr.ASC }), p = () => l(Array(s.length).fill(!c.every((h) => h))), _ = (h) => () => {
|
@@ -17524,13 +17531,13 @@ const Wy = {
|
|
17524
17531
|
)
|
17525
17532
|
}
|
17526
17533
|
),
|
17527
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: h.cells.map((
|
17534
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: h.cells.map((x, g) => /* @__PURE__ */ t.jsx(
|
17528
17535
|
"div",
|
17529
17536
|
{
|
17530
17537
|
className: "flexbox dc__align-start dc__content-start fs-13 lh-20 fw-4 dc__word-break",
|
17531
|
-
style: { width: `${e[
|
17532
|
-
"data-testid": `security-table-cell-${E}:${
|
17533
|
-
children:
|
17538
|
+
style: { width: `${e[g].width}px` },
|
17539
|
+
"data-testid": `security-table-cell-${E}:${g}`,
|
17540
|
+
children: x.component || x.cellContent
|
17534
17541
|
}
|
17535
17542
|
)) })
|
17536
17543
|
] }),
|
@@ -18383,7 +18390,7 @@ const Wy = {
|
|
18383
18390
|
throw new Error(
|
18384
18391
|
"Broken assumption: Heading should not have nested headings in security sidebar, Please implement dfs based handling for nested headings in security sidebar"
|
18385
18392
|
);
|
18386
|
-
const { category: m, subCategory: p } = Aj(u.id), _ = o[m]?.[p], h = _?.summary?.severities || _?.misConfSummary?.status, E = Object.keys(h || {}).reduce((
|
18393
|
+
const { category: m, subCategory: p } = Aj(u.id), _ = o[m]?.[p], h = _?.summary?.severities || _?.misConfSummary?.status, E = Object.keys(h || {}).reduce((x, g) => g === Z.SUCCESSES ? x : x + h[g], 0);
|
18387
18394
|
return {
|
18388
18395
|
...u,
|
18389
18396
|
trailingItem: E ? {
|
@@ -18480,7 +18487,7 @@ const Wy = {
|
|
18480
18487
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 cn-900 mono dc__truncate dc__mxw-600", children: _.title }),
|
18481
18488
|
/* @__PURE__ */ t.jsx(Yt, { content: _.title })
|
18482
18489
|
] })
|
18483
|
-
] }),
|
18490
|
+
] }), x = () => {
|
18484
18491
|
const f = yj(c, l.category, l.subCategory, _);
|
18485
18492
|
if (f)
|
18486
18493
|
return /* @__PURE__ */ t.jsx(Xe, { ...f, imageType: Hs.Large });
|
@@ -18508,12 +18515,12 @@ const Wy = {
|
|
18508
18515
|
`${l.category}${l.subCategory}${p}`
|
18509
18516
|
)
|
18510
18517
|
] });
|
18511
|
-
},
|
18518
|
+
}, g = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Je, { size: 24, pageLoader: !0 }) }) : a ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Dn, { code: a.code }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox flex-grow-1 dc__overflow-auto", children: [
|
18512
18519
|
e && /* @__PURE__ */ t.jsx(e, { modalState: l, setModalState: d, scanResult: r }),
|
18513
18520
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-right-n1 h-100" }),
|
18514
18521
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__overflow-auto flex-grow-1", style: { width: "744px" }, children: [
|
18515
18522
|
_ && E(),
|
18516
|
-
c &&
|
18523
|
+
c && x()
|
18517
18524
|
] })
|
18518
18525
|
] });
|
18519
18526
|
return /* @__PURE__ */ t.jsx(FD, { className: "dc__position-rel", close: s, children: /* @__PURE__ */ t.jsxs(
|
@@ -18523,7 +18530,7 @@ const Wy = {
|
|
18523
18530
|
onClick: Ae,
|
18524
18531
|
children: [
|
18525
18532
|
h(),
|
18526
|
-
|
18533
|
+
g()
|
18527
18534
|
]
|
18528
18535
|
}
|
18529
18536
|
) });
|
@@ -18639,59 +18646,59 @@ const Wy = {
|
|
18639
18646
|
imageScan: !!i,
|
18640
18647
|
codeScan: !!c,
|
18641
18648
|
kubernetesManifest: !!l
|
18642
|
-
}), p = (
|
18643
|
-
const
|
18644
|
-
switch (
|
18649
|
+
}), p = (x) => {
|
18650
|
+
const g = i?.vulnerability?.list?.[0];
|
18651
|
+
switch (x) {
|
18645
18652
|
case _e.CODE_SCAN:
|
18646
18653
|
return { scanToolName: c?.scanToolName, scanToolUrl: c?.scanToolUrl };
|
18647
18654
|
case _e.KUBERNETES_MANIFEST:
|
18648
18655
|
return { scanToolName: l?.scanToolName, scanToolUrl: l?.scanToolUrl };
|
18649
18656
|
default:
|
18650
18657
|
return {
|
18651
|
-
scanToolName:
|
18652
|
-
scanToolUrl:
|
18658
|
+
scanToolName: g?.scanToolName,
|
18659
|
+
scanToolUrl: g?.scanToolUrl
|
18653
18660
|
};
|
18654
18661
|
}
|
18655
|
-
}, _ = (
|
18662
|
+
}, _ = (x, g) => {
|
18656
18663
|
a(!0), o({
|
18657
|
-
category:
|
18658
|
-
subCategory:
|
18664
|
+
category: x,
|
18665
|
+
subCategory: g,
|
18659
18666
|
detailViewData: null
|
18660
18667
|
});
|
18661
|
-
}, h = (
|
18668
|
+
}, h = (x, g) => () => _(x, g), E = () => {
|
18662
18669
|
a(!1);
|
18663
18670
|
};
|
18664
18671
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
18665
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((
|
18666
|
-
const
|
18672
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-20 mw-600 dc__mxw-1200", children: Object.keys(m).map((x) => {
|
18673
|
+
const g = x !== _e.IMAGE_SCAN && (e.codeScan?.status === "Failed" || e.kubernetesManifest?.status === "Failed"), { scanToolName: f, scanToolUrl: N } = p(x);
|
18667
18674
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
18668
18675
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space pb-8 dc__border-bottom-n1", children: [
|
18669
|
-
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[
|
18676
|
+
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: m[x].label }),
|
18670
18677
|
/* @__PURE__ */ t.jsx(Nc, { scanToolName: f, scanToolUrl: N })
|
18671
18678
|
] }),
|
18672
|
-
|
18679
|
+
g ? /* @__PURE__ */ t.jsx("div", { className: "dc__border br-8", children: /* @__PURE__ */ t.jsx(
|
18673
18680
|
Rn,
|
18674
18681
|
{
|
18675
|
-
title:
|
18682
|
+
title: x === _e.CODE_SCAN ? "Code scan failed" : "Manifest scan failed",
|
18676
18683
|
subTitle: "",
|
18677
18684
|
description: ""
|
18678
18685
|
}
|
18679
|
-
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[
|
18680
|
-
if (!e[
|
18686
|
+
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[x].subCategories.map((C) => {
|
18687
|
+
if (!e[x][C])
|
18681
18688
|
return null;
|
18682
|
-
const S =
|
18689
|
+
const S = x === _e.IMAGE_SCAN && vr(e[x][C].list ?? []) === "Failed", b = C === te.MISCONFIGURATIONS ? e[x][C]?.misConfSummary?.status : e[x][C]?.summary?.severities;
|
18683
18690
|
return /* @__PURE__ */ t.jsx(
|
18684
18691
|
Wp,
|
18685
18692
|
{
|
18686
|
-
category:
|
18693
|
+
category: x,
|
18687
18694
|
subCategory: C,
|
18688
18695
|
severities: b,
|
18689
|
-
handleCardClick: h(
|
18696
|
+
handleCardClick: h(x, C),
|
18690
18697
|
scanFailed: S
|
18691
18698
|
}
|
18692
18699
|
);
|
18693
18700
|
}) })
|
18694
|
-
] },
|
18701
|
+
] }, x);
|
18695
18702
|
}) }),
|
18696
18703
|
n && /* @__PURE__ */ t.jsx(
|
18697
18704
|
Yp,
|
@@ -18745,7 +18752,7 @@ const Wy = {
|
|
18745
18752
|
l(!0);
|
18746
18753
|
}, h = () => {
|
18747
18754
|
l(!1);
|
18748
|
-
}, E = u.result?.imageScan?.vulnerability,
|
18755
|
+
}, E = u.result?.imageScan?.vulnerability, x = E?.list || [], g = vr(x) === "Failed";
|
18749
18756
|
return /* @__PURE__ */ t.jsxs("div", { className: "p-12", children: [
|
18750
18757
|
/* @__PURE__ */ t.jsx(
|
18751
18758
|
Wp,
|
@@ -18754,7 +18761,7 @@ const Wy = {
|
|
18754
18761
|
subCategory: te.VULNERABILITIES,
|
18755
18762
|
severities: E?.summary?.severities,
|
18756
18763
|
handleCardClick: _,
|
18757
|
-
scanFailed:
|
18764
|
+
scanFailed: g
|
18758
18765
|
}
|
18759
18766
|
),
|
18760
18767
|
c && /* @__PURE__ */ t.jsx(
|
@@ -18818,7 +18825,7 @@ const Wy = {
|
|
18818
18825
|
return (m === Te.ASC ? 1 : -1) * (S(f[Td[u]]) < S(N[Td[u]]) ? -1 : 1);
|
18819
18826
|
},
|
18820
18827
|
[m, u]
|
18821
|
-
), E = a.getResults(e ? null : h),
|
18828
|
+
), E = a.getResults(e ? null : h), x = Po.reduce(
|
18822
18829
|
(f, N, C) => {
|
18823
18830
|
if (f.push(N), C === 0) {
|
18824
18831
|
const S = E?.[0]?.additionalKeys;
|
@@ -18833,7 +18840,7 @@ const Wy = {
|
|
18833
18840
|
return f;
|
18834
18841
|
},
|
18835
18842
|
[]
|
18836
|
-
),
|
18843
|
+
), g = x.map((f) => f.width).join(" ");
|
18837
18844
|
return /* @__PURE__ */ t.jsx(
|
18838
18845
|
Ec,
|
18839
18846
|
{
|
@@ -18891,8 +18898,8 @@ const Wy = {
|
|
18891
18898
|
"div",
|
18892
18899
|
{
|
18893
18900
|
className: "dc__grid dc__border-bottom-n1 py-8 fs-12 fw-6 cn-7 ml-20 mr-20 dc__gap-16",
|
18894
|
-
style: { gridTemplateColumns:
|
18895
|
-
children:
|
18901
|
+
style: { gridTemplateColumns: g },
|
18902
|
+
children: x.map((f) => /* @__PURE__ */ t.jsx(
|
18896
18903
|
eo,
|
18897
18904
|
{
|
18898
18905
|
title: f.label,
|
@@ -18912,7 +18919,7 @@ const Wy = {
|
|
18912
18919
|
{
|
18913
18920
|
className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${N === C.length - 1 ? "mb-20" : ""}`,
|
18914
18921
|
style: {
|
18915
|
-
gridTemplateColumns: f.renderContentAtResultRowEnd ? `${
|
18922
|
+
gridTemplateColumns: f.renderContentAtResultRowEnd ? `${g} min-content` : g
|
18916
18923
|
},
|
18917
18924
|
children: [
|
18918
18925
|
/* @__PURE__ */ t.jsx(ee, { content: f.name, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: f.name }) }),
|
@@ -19034,11 +19041,11 @@ const tH = ({
|
|
19034
19041
|
data: l,
|
19035
19042
|
disableTransition: d
|
19036
19043
|
}) => {
|
19037
|
-
const [u, m] = w(!!i), [, p] = w((/* @__PURE__ */ new Date()).toISOString()), _ = $(s), h = $(new Sd(_.current.length)), E = $(new AbortController()),
|
19044
|
+
const [u, m] = w(!!i), [, p] = w((/* @__PURE__ */ new Date()).toISOString()), _ = $(s), h = $(new Sd(_.current.length)), E = $(new AbortController()), x = !r && !!h.current.getSize();
|
19038
19045
|
aA({
|
19039
19046
|
shouldPrompt: u
|
19040
19047
|
});
|
19041
|
-
const
|
19048
|
+
const g = () => {
|
19042
19049
|
(h.current.getHasAnyOperationSucceeded() || r) && a(), e();
|
19043
19050
|
}, f = async () => {
|
19044
19051
|
try {
|
@@ -19086,7 +19093,7 @@ const tH = ({
|
|
19086
19093
|
await Vb(I, !0), Ve.showToast({
|
19087
19094
|
variant: ve.info,
|
19088
19095
|
description: "Action completed"
|
19089
|
-
}), r &&
|
19096
|
+
}), r && g();
|
19090
19097
|
} catch (R) {
|
19091
19098
|
Le(R);
|
19092
19099
|
} finally {
|
@@ -19096,7 +19103,7 @@ const tH = ({
|
|
19096
19103
|
M(() => (i && f().then(Ma).catch(Ma), () => {
|
19097
19104
|
E.current?.abort();
|
19098
19105
|
}), []);
|
19099
|
-
const N = u ? Ma :
|
19106
|
+
const N = u ? Ma : g, C = async () => {
|
19100
19107
|
_.current = h.current.getRetryOperations(), h.current = new Sd(_.current.length), E.current = new AbortController(), await f();
|
19101
19108
|
}, S = () => {
|
19102
19109
|
E.current.abort();
|
@@ -19104,7 +19111,7 @@ const tH = ({
|
|
19104
19111
|
Vs,
|
19105
19112
|
{
|
19106
19113
|
...c,
|
19107
|
-
handleClose:
|
19114
|
+
handleClose: g,
|
19108
19115
|
buttonConfig: {
|
19109
19116
|
primaryButtonConfig: {
|
19110
19117
|
...c.buttonConfig.primaryButtonConfig,
|
@@ -19114,7 +19121,7 @@ const tH = ({
|
|
19114
19121
|
},
|
19115
19122
|
secondaryButtonConfig: {
|
19116
19123
|
...c.buttonConfig.secondaryButtonConfig,
|
19117
|
-
onClick:
|
19124
|
+
onClick: g,
|
19118
19125
|
disabled: u || c.buttonConfig.secondaryButtonConfig.disabled
|
19119
19126
|
}
|
19120
19127
|
}
|
@@ -19135,7 +19142,7 @@ const tH = ({
|
|
19135
19142
|
);
|
19136
19143
|
return /* @__PURE__ */ t.jsxs("div", { className: "bulk-operations", children: [
|
19137
19144
|
/* @__PURE__ */ t.jsx(Eh, { when: u, message: o.prompt }),
|
19138
|
-
!i && !
|
19145
|
+
!i && !x ? b() : A()
|
19139
19146
|
] });
|
19140
19147
|
};
|
19141
19148
|
var $e = /* @__PURE__ */ ((e) => (e.CLEAR_ALL_SELECTIONS = "CLEAR_ALL_SELECTIONS", e.CLEAR_IDENTIFIERS = "CLEAR_IDENTIFIERS", e.SELECT_ALL_ACROSS_PAGES = "SELECT_ALL_ACROSS_PAGES", e.SELECT_ALL_ON_PAGE = "SELECT_ALL_ON_PAGE", e.SELECT_IDENTIFIER = "SELECT_IDENTIFIER", e.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION", e.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES", e))($e || {}), Kp = /* @__PURE__ */ ((e) => (e.OPEN = "OPEN", e.CLOSED = "CLOSED", e))(Kp || {});
|
@@ -19165,20 +19172,20 @@ const Pj = "bulk-selection-pop-up-menu", Mo = {
|
|
19165
19172
|
Dr(() => {
|
19166
19173
|
s && i(s);
|
19167
19174
|
}, [s]);
|
19168
|
-
const c = a[$n], l = () => Object.keys(a).length, d = (
|
19169
|
-
const f = JSON.parse(JSON.stringify(
|
19170
|
-
|
19175
|
+
const c = a[$n], l = () => Object.keys(a).length, d = (x, g) => {
|
19176
|
+
const f = JSON.parse(JSON.stringify(x));
|
19177
|
+
g.forEach((N) => {
|
19171
19178
|
delete f[N];
|
19172
19179
|
}), r(f);
|
19173
|
-
}, u = (
|
19174
|
-
const
|
19175
|
-
c && delete
|
19176
|
-
...
|
19177
|
-
...
|
19180
|
+
}, u = (x) => {
|
19181
|
+
const g = JSON.parse(JSON.stringify(a));
|
19182
|
+
c && delete g[$n], r({
|
19183
|
+
...g,
|
19184
|
+
...x
|
19178
19185
|
});
|
19179
|
-
}, m = ({ action:
|
19180
|
-
const f =
|
19181
|
-
switch (
|
19186
|
+
}, m = ({ action: x, data: g }) => {
|
19187
|
+
const f = g?.identifierIds ?? [], N = g?.identifierObject ?? {};
|
19188
|
+
switch (x) {
|
19182
19189
|
case $e.CLEAR_ALL_SELECTIONS:
|
19183
19190
|
r({});
|
19184
19191
|
break;
|
@@ -19218,7 +19225,7 @@ const Pj = "bulk-selection-pop-up-menu", Mo = {
|
|
19218
19225
|
break;
|
19219
19226
|
}
|
19220
19227
|
default:
|
19221
|
-
throw new Error(Mj(
|
19228
|
+
throw new Error(Mj(x));
|
19222
19229
|
}
|
19223
19230
|
}, p = () => Object.keys(a).length === 0 ? {
|
19224
19231
|
isChecked: !1,
|
@@ -19501,8 +19508,8 @@ const sH = ({
|
|
19501
19508
|
subPath: _,
|
19502
19509
|
data: h,
|
19503
19510
|
defaultData: E,
|
19504
|
-
filePermission:
|
19505
|
-
roleARN:
|
19511
|
+
filePermission: x,
|
19512
|
+
roleARN: g,
|
19506
19513
|
esoSubPath: f
|
19507
19514
|
} = s || {}, N = {
|
19508
19515
|
name: c ?? "",
|
@@ -19510,11 +19517,11 @@ const sH = ({
|
|
19510
19517
|
external: l ?? !1,
|
19511
19518
|
externalType: d ?? Ue.Internal,
|
19512
19519
|
selectedType: u ?? Rr.environment.value,
|
19513
|
-
isFilePermissionChecked: !!
|
19520
|
+
isFilePermissionChecked: !!x,
|
19514
19521
|
isSubPathChecked: !!_,
|
19515
|
-
filePermission:
|
19522
|
+
filePermission: x ?? "",
|
19516
19523
|
volumeMountPath: m ?? p ?? "",
|
19517
|
-
roleARN:
|
19524
|
+
roleARN: g ?? "",
|
19518
19525
|
yamlMode: !0,
|
19519
19526
|
hasCurrentDataErr: !1,
|
19520
19527
|
isResolvedData: !1,
|
@@ -19580,8 +19587,8 @@ const sH = ({
|
|
19580
19587
|
secretDataYaml: _,
|
19581
19588
|
selectedType: h,
|
19582
19589
|
volumeMountPath: E,
|
19583
|
-
yaml:
|
19584
|
-
currentData:
|
19590
|
+
yaml: x,
|
19591
|
+
currentData: g,
|
19585
19592
|
isSecret: f
|
19586
19593
|
} = Ic({
|
19587
19594
|
isJob: a,
|
@@ -19633,12 +19640,12 @@ const sH = ({
|
|
19633
19640
|
...o ? [
|
19634
19641
|
{
|
19635
19642
|
displayName: "Keys",
|
19636
|
-
value:
|
19643
|
+
value: g?.length > 0 ? g.map((S) => S.key).join(", ") : "No keys available",
|
19637
19644
|
key: "keys"
|
19638
19645
|
}
|
19639
19646
|
] : []
|
19640
19647
|
],
|
19641
|
-
data: N ? null :
|
19648
|
+
data: N ? null : g?.[0]?.key && x || l || _
|
19642
19649
|
};
|
19643
19650
|
}, zj = (e) => {
|
19644
19651
|
try {
|
@@ -19691,7 +19698,7 @@ const sH = ({
|
|
19691
19698
|
isSubPathChecked: h,
|
19692
19699
|
mergeStrategy: E
|
19693
19700
|
}) => {
|
19694
|
-
const
|
19701
|
+
const x = e && Sm(n), f = (o ? zj(r) : i).reduce((C, S) => {
|
19695
19702
|
if (!S.key)
|
19696
19703
|
return C;
|
19697
19704
|
const b = S.value ?? "";
|
@@ -19713,7 +19720,7 @@ const sH = ({
|
|
19713
19720
|
esoSubPath: null,
|
19714
19721
|
mergeStrategy: E
|
19715
19722
|
};
|
19716
|
-
if ((e && n === Ue.KubernetesSecret || !e && s || e &&
|
19723
|
+
if ((e && n === Ue.KubernetesSecret || !e && s || e && x) && delete N[Tm.DATA], e && (N.roleARN = "", N.externalType = n, x)) {
|
19717
19724
|
const C = Jp(c);
|
19718
19725
|
C && (N.esoSecretData = {
|
19719
19726
|
secretStore: C.secretStore,
|
@@ -20022,16 +20029,16 @@ const sH = ({
|
|
20022
20029
|
onMenuClose: d,
|
20023
20030
|
onMenuOpen: u
|
20024
20031
|
}) => {
|
20025
|
-
const m = X(() => eO(c), [c]), p = (
|
20026
|
-
r(
|
20027
|
-
}, _ = e && m.find((
|
20032
|
+
const m = X(() => eO(c), [c]), p = (g) => {
|
20033
|
+
r(g.value.iso2);
|
20034
|
+
}, _ = e && m.find((g) => g.value.iso2 === e) || null, h = (g, f) => {
|
20028
20035
|
const N = f.toLowerCase();
|
20029
20036
|
return [
|
20030
|
-
|
20031
|
-
`+${
|
20032
|
-
|
20037
|
+
g.data.value.name.toLowerCase(),
|
20038
|
+
`+${g.data.value.dialCode.toLowerCase()}`,
|
20039
|
+
g.data.value.iso2.toLowerCase()
|
20033
20040
|
].some((S) => S.includes(N));
|
20034
|
-
}, E = (
|
20041
|
+
}, E = (g) => g.value.iso2, x = (g, f) => f.context === "menu" || c === "default" ? g.label : `+${g.value.dialCode}`;
|
20035
20042
|
return /* @__PURE__ */ t.jsx(
|
20036
20043
|
kt,
|
20037
20044
|
{
|
@@ -20049,7 +20056,7 @@ const sH = ({
|
|
20049
20056
|
onMenuClose: d,
|
20050
20057
|
onMenuOpen: u,
|
20051
20058
|
icon: c === "selectPhoneCode" && _?.value?.iso2 ? /* @__PURE__ */ t.jsx(vi, { country: _?.value?.iso2, size: 20 }) : null,
|
20052
|
-
formatOptionLabel:
|
20059
|
+
formatOptionLabel: x,
|
20053
20060
|
fullWidth: !0,
|
20054
20061
|
ariaLabel: c === "default" ? "Country" : "Phone Code"
|
20055
20062
|
}
|
@@ -20217,8 +20224,8 @@ const sH = ({
|
|
20217
20224
|
openDirection: p = "down",
|
20218
20225
|
error: _ = ""
|
20219
20226
|
}) => {
|
20220
|
-
const h = lO(e), E = tr.find((A) => A.value === h) ?? tr[0], [
|
20221
|
-
|
20227
|
+
const h = lO(e), E = tr.find((A) => A.value === h) ?? tr[0], [x, g] = w(!1), f = ({ focused: A }) => {
|
20228
|
+
g(A);
|
20222
20229
|
}, N = (A) => {
|
20223
20230
|
s(uO(e, A?.toDate()));
|
20224
20231
|
}, C = (A) => {
|
@@ -20234,7 +20241,7 @@ const sH = ({
|
|
20234
20241
|
placeholder: "Select date",
|
20235
20242
|
date: we(e),
|
20236
20243
|
onDateChange: N,
|
20237
|
-
focused:
|
20244
|
+
focused: x,
|
20238
20245
|
onFocusChange: f,
|
20239
20246
|
numberOfMonths: 1,
|
20240
20247
|
openDirection: p,
|
@@ -20379,7 +20386,7 @@ const uo = ({
|
|
20379
20386
|
e,
|
20380
20387
|
d,
|
20381
20388
|
c || o
|
20382
|
-
), E = uo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end",
|
20389
|
+
), E = uo({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", x = (f) => () => n?.handleSorting(f), g = ({ key: f, label: N, isSortable: C, renderAdditionalContent: S }) => {
|
20383
20390
|
const b = !p && f === u;
|
20384
20391
|
return /* @__PURE__ */ t.jsxs(
|
20385
20392
|
"div",
|
@@ -20391,7 +20398,7 @@ const uo = ({
|
|
20391
20398
|
{
|
20392
20399
|
type: "button",
|
20393
20400
|
className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
|
20394
|
-
onClick:
|
20401
|
+
onClick: x(f),
|
20395
20402
|
children: [
|
20396
20403
|
N,
|
20397
20404
|
/* @__PURE__ */ t.jsx(
|
@@ -20445,7 +20452,7 @@ const uo = ({
|
|
20445
20452
|
className: `bg__secondary ${_ || !p ? "dc__top-left-radius" : "dc__left-radius-4"}`
|
20446
20453
|
}
|
20447
20454
|
),
|
20448
|
-
e.map((f) =>
|
20455
|
+
e.map((f) => g(f))
|
20449
20456
|
] })
|
20450
20457
|
}
|
20451
20458
|
) });
|
@@ -20500,36 +20507,36 @@ const Qp = ({
|
|
20500
20507
|
id: u,
|
20501
20508
|
...m
|
20502
20509
|
}) => {
|
20503
|
-
const p = (
|
20510
|
+
const p = (g) => {
|
20504
20511
|
const f = i?.current;
|
20505
|
-
f && (f.style.height = `${
|
20512
|
+
f && (f.style.height = `${g}px`), Object.values(c || {}).forEach((N) => {
|
20506
20513
|
const C = N?.current;
|
20507
|
-
C && (C.style.height = `${
|
20514
|
+
C && (C.style.height = `${g}px`);
|
20508
20515
|
});
|
20509
|
-
}, _ = (
|
20516
|
+
}, _ = (g) => {
|
20510
20517
|
const f = o?.current;
|
20511
|
-
f && (f.style.height = `${
|
20518
|
+
f && (f.style.height = `${g}px`), p(g);
|
20512
20519
|
}, h = () => {
|
20513
20520
|
_(s || 0);
|
20514
|
-
let
|
20521
|
+
let g = o?.current?.scrollHeight || 0;
|
20515
20522
|
if (i) {
|
20516
20523
|
const f = i.current;
|
20517
|
-
f && f.scrollHeight >
|
20524
|
+
f && f.scrollHeight > g && (g = f.scrollHeight);
|
20518
20525
|
}
|
20519
20526
|
c && Object.values(c).forEach((f) => {
|
20520
20527
|
const N = f.current;
|
20521
|
-
N && N.scrollHeight >
|
20522
|
-
}), s &&
|
20528
|
+
N && N.scrollHeight > g && (g = N.scrollHeight);
|
20529
|
+
}), s && g < s && (g = s), n && g > n && (g = n), _(g);
|
20523
20530
|
};
|
20524
20531
|
M(() => {
|
20525
20532
|
setTimeout(() => {
|
20526
20533
|
h();
|
20527
20534
|
}, 100);
|
20528
20535
|
}, []), _o(h, 500, [e]);
|
20529
|
-
const E = (
|
20530
|
-
d || _(s), a?.(
|
20531
|
-
},
|
20532
|
-
h(), r?.(
|
20536
|
+
const E = (g) => {
|
20537
|
+
d || _(s), a?.(g);
|
20538
|
+
}, x = (g) => {
|
20539
|
+
h(), r?.(g);
|
20533
20540
|
};
|
20534
20541
|
return /* @__PURE__ */ t.jsx(
|
20535
20542
|
"textarea",
|
@@ -20543,7 +20550,7 @@ const Qp = ({
|
|
20543
20550
|
className: `${l || ""} lh-20`,
|
20544
20551
|
style: { resize: "none" },
|
20545
20552
|
onBlur: E,
|
20546
|
-
onFocus:
|
20553
|
+
onFocus: x
|
20547
20554
|
}
|
20548
20555
|
);
|
20549
20556
|
}, CO = ({
|
@@ -20636,10 +20643,10 @@ const jt = ({
|
|
20636
20643
|
}, E = (f, N) => {
|
20637
20644
|
n || N === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : f.stopPropagation();
|
20638
20645
|
};
|
20639
|
-
function
|
20646
|
+
function x(f) {
|
20640
20647
|
f && d?.current?.observe ? d.current.observe(f) : d.current.disconnect();
|
20641
20648
|
}
|
20642
|
-
function
|
20649
|
+
function g(f) {
|
20643
20650
|
if (!f) return;
|
20644
20651
|
u.current = f;
|
20645
20652
|
const { bottom: N, height: C, left: S, right: b, top: A, width: R, x: T, y: I } = f.getBoundingClientRect();
|
@@ -20654,9 +20661,9 @@ const jt = ({
|
|
20654
20661
|
handleClose: E,
|
20655
20662
|
opacity: c,
|
20656
20663
|
setPopupPosition: i,
|
20657
|
-
callbackRef:
|
20664
|
+
callbackRef: x,
|
20658
20665
|
buttonRef: u,
|
20659
|
-
initialiseButtonWidth:
|
20666
|
+
initialiseButtonWidth: g,
|
20660
20667
|
buttonWidth: m
|
20661
20668
|
},
|
20662
20669
|
children: e
|
@@ -20744,11 +20751,11 @@ const Id = ({
|
|
20744
20751
|
M(() => {
|
20745
20752
|
p(s?.[o] || "");
|
20746
20753
|
}, [e, s, o]);
|
20747
|
-
const
|
20754
|
+
const x = (T) => {
|
20748
20755
|
setTimeout(() => {
|
20749
20756
|
h(`tag-${o}-${e}`);
|
20750
20757
|
}, 300);
|
20751
|
-
},
|
20758
|
+
}, g = (T) => {
|
20752
20759
|
if (!T.relatedTarget || !T.relatedTarget.classList.value || !T.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
|
20753
20760
|
h("");
|
20754
20761
|
const I = { ...s };
|
@@ -20814,8 +20821,8 @@ const Id = ({
|
|
20814
20821
|
className: `form__input tag-input pt-4-imp pb-4-imp fs-13 ${o === ms.KEY ? "dc__no-right-radius" : "dc__no-border-radius dc__no-right-border dc__no-left-border"} ${s[o === ms.KEY ? "isInvalidKey" : "isInvalidValue"] ? "form__input--error" : ""}`,
|
20815
20822
|
value: m,
|
20816
20823
|
onChange: f,
|
20817
|
-
onBlur:
|
20818
|
-
onFocus:
|
20824
|
+
onBlur: g,
|
20825
|
+
onFocus: x,
|
20819
20826
|
placeholder: i,
|
20820
20827
|
tabIndex: c,
|
20821
20828
|
refVar: l,
|
@@ -20978,11 +20985,11 @@ const IO = ({
|
|
20978
20985
|
focusableFieldKey: m,
|
20979
20986
|
shouldAutoFocusOnMount: p = !1
|
20980
20987
|
}) => {
|
20981
|
-
const _ = s.every(({ key: v }) => !e[0]?.data[v].value), h = !!e.length, E = e.length === 1 && _,
|
20988
|
+
const _ = s.every(({ key: v }) => !e[0]?.data[v].value), h = !!e.length, E = e.length === 1 && _, x = hO(
|
20982
20989
|
s,
|
20983
20990
|
o,
|
20984
20991
|
a || n
|
20985
|
-
),
|
20992
|
+
), g = $(p), f = $(null);
|
20986
20993
|
f.current || (f.current = e.reduce((v, j) => (v[j.id] = s.reduce((P, { key: O }) => ({ ...P, [O]: lr() }), {}), v), {}));
|
20987
20994
|
const N = X(() => e.map(({ id: v }) => v), [e]);
|
20988
20995
|
M(() => {
|
@@ -21009,8 +21016,8 @@ const IO = ({
|
|
21009
21016
|
}, S = (v) => () => {
|
21010
21017
|
c(v);
|
21011
21018
|
}, b = (v, j, P) => {
|
21012
|
-
const O = n || v.data[j].disabled, D =
|
21013
|
-
switch (!p && !
|
21019
|
+
const O = n || v.data[j].disabled, D = g.current && j === (m ?? s[0].key) && P === 0;
|
21020
|
+
switch (!p && !g.current && P === 0 && f?.current?.[v.id]?.[j].current && (g.current = !0), v.data[j].type) {
|
21014
21021
|
case Qe.DROPDOWN:
|
21015
21022
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
21016
21023
|
kt,
|
@@ -21179,7 +21186,7 @@ const IO = ({
|
|
21179
21186
|
{
|
21180
21187
|
className: `dynamic-data-table w-100 bcn-1 dc__bottom-radius-4 ${n ? "header-column" : "row-column"}`,
|
21181
21188
|
style: {
|
21182
|
-
gridTemplateColumns:
|
21189
|
+
gridTemplateColumns: x
|
21183
21190
|
},
|
21184
21191
|
children: e.map((v) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
21185
21192
|
s.map(({ key: j }, P) => /* @__PURE__ */ t.jsx(gs, { children: y(v, j, P) }, j)),
|
@@ -21232,8 +21239,8 @@ const IO = ({
|
|
21232
21239
|
borderRadiusConfig: _,
|
21233
21240
|
labelTooltipConfig: h,
|
21234
21241
|
labelTippyCustomizedConfig: E,
|
21235
|
-
hideFormFieldInfo:
|
21236
|
-
value:
|
21242
|
+
hideFormFieldInfo: x,
|
21243
|
+
value: g,
|
21237
21244
|
borderConfig: f,
|
21238
21245
|
disableResize: N,
|
21239
21246
|
newlineOnShiftEnter: C = !1,
|
@@ -21250,8 +21257,8 @@ const IO = ({
|
|
21250
21257
|
B < k || k > I || (B < T && (B = T), B > I && (B = I), y(B));
|
21251
21258
|
};
|
21252
21259
|
M(() => {
|
21253
|
-
R(
|
21254
|
-
}, [
|
21260
|
+
R(g);
|
21261
|
+
}, [g]), _o(j, 300, [A]);
|
21255
21262
|
const P = (k) => {
|
21256
21263
|
R(k.target.value), S.onChange?.(k);
|
21257
21264
|
}, O = (k) => {
|
@@ -21279,7 +21286,7 @@ const IO = ({
|
|
21279
21286
|
borderRadiusConfig: _,
|
21280
21287
|
labelTooltipConfig: h,
|
21281
21288
|
labelTippyCustomizedConfig: E,
|
21282
|
-
hideFormFieldInfo:
|
21289
|
+
hideFormFieldInfo: x,
|
21283
21290
|
children: /* @__PURE__ */ t.jsx(
|
21284
21291
|
"textarea",
|
21285
21292
|
{
|
@@ -21323,10 +21330,10 @@ const IO = ({
|
|
21323
21330
|
}).catch(() => {
|
21324
21331
|
d(!1);
|
21325
21332
|
});
|
21326
|
-
}, h = (
|
21333
|
+
}, h = (x) => {
|
21327
21334
|
if (o) {
|
21328
|
-
const
|
21329
|
-
if (f &&
|
21335
|
+
const g = x.trim(), { maxLength: f } = o;
|
21336
|
+
if (f && g.length > f.value)
|
21330
21337
|
return {
|
21331
21338
|
isValid: !1,
|
21332
21339
|
message: f.message
|
@@ -21336,9 +21343,9 @@ const IO = ({
|
|
21336
21343
|
isValid: !0,
|
21337
21344
|
message: ""
|
21338
21345
|
};
|
21339
|
-
}, E = (
|
21340
|
-
const
|
21341
|
-
c(
|
21346
|
+
}, E = (x) => {
|
21347
|
+
const g = x.target.value ?? "";
|
21348
|
+
c(g), m(h(g));
|
21342
21349
|
};
|
21343
21350
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 dc__gap-12", children: [
|
21344
21351
|
/* @__PURE__ */ t.jsx(
|
@@ -21406,13 +21413,13 @@ const IO = ({
|
|
21406
21413
|
dataTestIdPrefix: i,
|
21407
21414
|
altText: c
|
21408
21415
|
}) => {
|
21409
|
-
const [l, d] = w(a), [u, m] = w(!1), [p, _] = w(!1), [h, E] = w(""),
|
21416
|
+
const [l, d] = w(a), [u, m] = w(!1), [p, _] = w(!1), [h, E] = w(""), x = () => {
|
21410
21417
|
m(!0);
|
21411
|
-
},
|
21418
|
+
}, g = (T) => {
|
21412
21419
|
d(T);
|
21413
21420
|
}, f = (T) => {
|
21414
21421
|
const I = T ?? l;
|
21415
|
-
|
21422
|
+
g(I), r(I), n(""), m(!1), _(!1), E("");
|
21416
21423
|
}, N = () => {
|
21417
21424
|
f(a);
|
21418
21425
|
}, C = () => {
|
@@ -21521,7 +21528,7 @@ const IO = ({
|
|
21521
21528
|
type: "button",
|
21522
21529
|
"data-testid": `${i}-button`,
|
21523
21530
|
"aria-label": `${o} image`,
|
21524
|
-
onClick:
|
21531
|
+
onClick: x,
|
21525
21532
|
children: [
|
21526
21533
|
R(!0, n_),
|
21527
21534
|
/* @__PURE__ */ t.jsx("div", { className: "flex p-4 br-4 bg__primary dc__border edit-image-form-field__figure-container--edit-image-icon dc__zi-1 bg__primary dc__hover-n50 icon-dim-24", children: /* @__PURE__ */ t.jsx(Hr, { className: "dc__no-shrink icon-dim-16" }) })
|
@@ -21735,10 +21742,10 @@ const yd = (e) => {
|
|
21735
21742
|
showInfoIcon: _ = !1,
|
21736
21743
|
tabsConfig: h
|
21737
21744
|
}) => {
|
21738
|
-
const [E,
|
21739
|
-
|
21745
|
+
const [E, x] = w(!1), g = () => {
|
21746
|
+
x(!0);
|
21740
21747
|
}, f = () => {
|
21741
|
-
|
21748
|
+
x(!1);
|
21742
21749
|
}, N = () => d ? /* @__PURE__ */ t.jsxs("div", { className: "flex left fs-16 cn-9 fw-6 dc__gap-4", children: [
|
21743
21750
|
/* @__PURE__ */ t.jsx("span", { "data-testid": m, className: "lh-32", children: r }),
|
21744
21751
|
/* @__PURE__ */ t.jsx(
|
@@ -21755,7 +21762,7 @@ const yd = (e) => {
|
|
21755
21762
|
)
|
21756
21763
|
] }) : s?.length > 0 || _ ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
21757
21764
|
_ && s?.length === 0 ? /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r }) : /* @__PURE__ */ t.jsx(O_, { breadcrumbs: s }),
|
21758
|
-
/* @__PURE__ */ t.jsx(Yr, { className: `${a} icon-dim-20 cursor fcn-6`, onClick:
|
21765
|
+
/* @__PURE__ */ t.jsx(Yr, { className: `${a} icon-dim-20 cursor fcn-6`, onClick: g })
|
21759
21766
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r });
|
21760
21767
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
21761
21768
|
/* @__PURE__ */ t.jsxs(
|
@@ -21801,7 +21808,8 @@ const yd = (e) => {
|
|
21801
21808
|
{
|
21802
21809
|
label: l,
|
21803
21810
|
value: d,
|
21804
|
-
onRemove: o ? c : null
|
21811
|
+
onRemove: o ? c : null,
|
21812
|
+
capitalizeLabel: !0
|
21805
21813
|
}
|
21806
21814
|
);
|
21807
21815
|
}, kO = ({
|
@@ -21903,14 +21911,14 @@ const yd = (e) => {
|
|
21903
21911
|
}, u = (E) => {
|
21904
21912
|
if (a)
|
21905
21913
|
return /* @__PURE__ */ t.jsx("i", { className: "text__white fs-12 fw-6 lh-18 m-0", children: "is sensitive & hidden" });
|
21906
|
-
const
|
21907
|
-
return E === "" ? /* @__PURE__ */ t.jsx("p", { className:
|
21914
|
+
const x = "text__white fs-12 fw-6 lh-18 m-0";
|
21915
|
+
return E === "" ? /* @__PURE__ */ t.jsx("p", { className: x, children: `'""'` }) : typeof E == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: x, children: E ? "true" : "false" }) : typeof E == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${x} dc__transparent--unstyled border__primary`, children: Ot(E) }) : /* @__PURE__ */ t.jsx("p", { className: x, children: E });
|
21908
21916
|
}, m = (E) => {
|
21909
21917
|
if (r === "")
|
21910
21918
|
return E;
|
21911
21919
|
try {
|
21912
|
-
const
|
21913
|
-
return E.replace(
|
21920
|
+
const x = new RegExp(r, "gi");
|
21921
|
+
return E.replace(x, (g) => `<span class="bcy-2">${g}</span>`);
|
21914
21922
|
} catch {
|
21915
21923
|
return E;
|
21916
21924
|
}
|
@@ -22030,7 +22038,7 @@ const yd = (e) => {
|
|
22030
22038
|
type: "button",
|
22031
22039
|
children: "Clear Search"
|
22032
22040
|
}
|
22033
|
-
),
|
22041
|
+
), x = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch", children: [
|
22034
22042
|
/* @__PURE__ */ t.jsxs("div", { className: "handle-drag flexbox pt-8 pl-12 pr-12 dc__gap-16 dc__align-start dc__align-self-stretch dc__grabbable dc__border-bottom", children: [
|
22035
22043
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__content-center dc__align-start flex-grow-1 dc__no-shrink", children: [
|
22036
22044
|
/* @__PURE__ */ t.jsxs("div", { className: "flex center dc__gap-4", children: [
|
@@ -22074,7 +22082,7 @@ const yd = (e) => {
|
|
22074
22082
|
)
|
22075
22083
|
}
|
22076
22084
|
)
|
22077
|
-
] }),
|
22085
|
+
] }), g = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22078
22086
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1", children: i.length ? i.map((N) => /* @__PURE__ */ t.jsx(
|
22079
22087
|
VO,
|
22080
22088
|
{
|
@@ -22100,9 +22108,9 @@ const yd = (e) => {
|
|
22100
22108
|
] }), f = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Je, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22101
22109
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Xe, { title: "No variables found", image: Vr }) }),
|
22102
22110
|
/* @__PURE__ */ t.jsx(wd, {})
|
22103
|
-
] }) : p ?
|
22111
|
+
] }) : p ? g() : /* @__PURE__ */ t.jsx(la, { reload: a, className: "bg__primary pb-16" });
|
22104
22112
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22105
|
-
|
22113
|
+
x(),
|
22106
22114
|
f()
|
22107
22115
|
] });
|
22108
22116
|
}, YO = It(HO), WO = ({
|
@@ -22115,7 +22123,7 @@ const yd = (e) => {
|
|
22115
22123
|
showValueOnHover: i = !0,
|
22116
22124
|
isTemplateView: c
|
22117
22125
|
}) => {
|
22118
|
-
const [l, d] = w(!1), [u, m] = w({ x: 0, y: 0 }), [p, _] = w({ x: 0, y: 0 }), [h, E,
|
22126
|
+
const [l, d] = w(!1), [u, m] = w({ x: 0, y: 0 }), [p, _] = w({ x: 0, y: 0 }), [h, E, x, g] = vt(
|
22119
22127
|
() => BO(s, n, a, { hideObjectVariables: o, isTemplateView: c }),
|
22120
22128
|
[s, n, a]
|
22121
22129
|
), f = tp(), N = $(null), C = X(() => {
|
@@ -22195,8 +22203,8 @@ const yd = (e) => {
|
|
22195
22203
|
handleDeActivation: b,
|
22196
22204
|
loading: h,
|
22197
22205
|
variables: E ?? [],
|
22198
|
-
reloadVariables:
|
22199
|
-
error:
|
22206
|
+
reloadVariables: g,
|
22207
|
+
error: x,
|
22200
22208
|
showValueOnHover: i
|
22201
22209
|
}
|
22202
22210
|
)
|
@@ -22566,10 +22574,10 @@ const Ac = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22566
22574
|
);
|
22567
22575
|
}, E = (f) => {
|
22568
22576
|
a((N) => Zf(f, Dd(N)).map(({ type: C, ...S }) => S));
|
22569
|
-
},
|
22577
|
+
}, x = (f) => {
|
22570
22578
|
const N = r.current.getNodesBounds(u), C = f;
|
22571
22579
|
C.x = Math.min(f.x, Ld.x), C.y = Math.abs(N.y - Wa), c(C);
|
22572
|
-
},
|
22580
|
+
}, g = async (f) => {
|
22573
22581
|
r.current = f, await f.setViewport(Ld);
|
22574
22582
|
};
|
22575
22583
|
return /* @__PURE__ */ t.jsx(qf, { children: /* @__PURE__ */ t.jsx(
|
@@ -22589,7 +22597,7 @@ const Ac = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22589
22597
|
onEdgesChange: E,
|
22590
22598
|
translateExtent: p,
|
22591
22599
|
viewport: i,
|
22592
|
-
onViewportChange:
|
22600
|
+
onViewportChange: x,
|
22593
22601
|
panOnScroll: l,
|
22594
22602
|
panOnScrollMode: Jf.Horizontal,
|
22595
22603
|
preventScrolling: l,
|
@@ -22600,7 +22608,7 @@ const Ac = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22600
22608
|
nodesConnectable: !1,
|
22601
22609
|
nodesDraggable: !1,
|
22602
22610
|
elementsSelectable: !1,
|
22603
|
-
onInit:
|
22611
|
+
onInit: g,
|
22604
22612
|
proOptions: dw
|
22605
22613
|
}
|
22606
22614
|
)
|
@@ -22786,14 +22794,14 @@ const hw = async (e, s) => {
|
|
22786
22794
|
setSidePanelConfig: p,
|
22787
22795
|
loginCount: _,
|
22788
22796
|
showGettingStartedCard: h
|
22789
|
-
} = Ss(), { appTheme: E } = An(),
|
22797
|
+
} = Ss(), { appTheme: E } = An(), x = np(), g = $(null), f = () => {
|
22790
22798
|
l();
|
22791
22799
|
}, N = () => {
|
22792
|
-
|
22800
|
+
g.current?.open();
|
22793
22801
|
}, C = () => {
|
22794
22802
|
u(!0);
|
22795
22803
|
}, S = (I, y) => {
|
22796
|
-
|
22804
|
+
x && !y.metaKey && (y.preventDefault(), p((v) => ({
|
22797
22805
|
...v,
|
22798
22806
|
state: Kr.DOCUMENTATION,
|
22799
22807
|
docLink: xa,
|
@@ -22870,7 +22878,7 @@ const hw = async (e, s) => {
|
|
22870
22878
|
m && /* @__PURE__ */ t.jsx(
|
22871
22879
|
yg,
|
22872
22880
|
{
|
22873
|
-
ref:
|
22881
|
+
ref: g,
|
22874
22882
|
className: "dc__hide-section",
|
22875
22883
|
id: R,
|
22876
22884
|
autoClose: 2e3,
|
@@ -23024,7 +23032,7 @@ const hw = async (e, s) => {
|
|
23024
23032
|
onClose: l,
|
23025
23033
|
tippyProps: d
|
23026
23034
|
}) => {
|
23027
|
-
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ss(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = An(), { isTippyCustomized:
|
23035
|
+
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ss(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = An(), { isTippyCustomized: x, tippyRedirectLink: g, TippyIcon: f, tippyMessage: N, onClickTippyButton: C, additionalContent: S } = d || {}, { email: b } = Ji(), [A, R] = w(
|
23028
23036
|
{
|
23029
23037
|
serverInfo: void 0,
|
23030
23038
|
fetchingServerInfo: !1
|
@@ -23097,7 +23105,7 @@ const hw = async (e, s) => {
|
|
23097
23105
|
interactive: !0,
|
23098
23106
|
arrow: !0,
|
23099
23107
|
onClose: y,
|
23100
|
-
documentationLink:
|
23108
|
+
documentationLink: g,
|
23101
23109
|
children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Iw, { user: b, onClick: v }) })
|
23102
23110
|
}
|
23103
23111
|
)
|
@@ -23142,13 +23150,13 @@ const hw = async (e, s) => {
|
|
23142
23150
|
] }),
|
23143
23151
|
n && n(),
|
23144
23152
|
o && i(),
|
23145
|
-
d && (
|
23153
|
+
d && (x ? /* @__PURE__ */ t.jsx(
|
23146
23154
|
on,
|
23147
23155
|
{
|
23148
23156
|
infoText: N,
|
23149
23157
|
heading: e,
|
23150
23158
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
23151
|
-
documentationLink:
|
23159
|
+
documentationLink: g,
|
23152
23160
|
documentationLinkText: "View Documentation",
|
23153
23161
|
additionalContent: S,
|
23154
23162
|
children: f && /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(f, { className: "icon-dim-20 ml- cursor fcn-5" }) })
|
@@ -23159,7 +23167,7 @@ const hw = async (e, s) => {
|
|
23159
23167
|
"data-testid": "learn-more-symbol",
|
23160
23168
|
className: "dc__link flex",
|
23161
23169
|
target: "_blank",
|
23162
|
-
href:
|
23170
|
+
href: g,
|
23163
23171
|
onClick: C,
|
23164
23172
|
rel: "noreferrer",
|
23165
23173
|
"aria-label": "tippy-icon",
|
@@ -23466,12 +23474,12 @@ const Aw = (e) => [
|
|
23466
23474
|
}) => {
|
23467
23475
|
const m = () => c ? Ds.VIRTUAL_ENV : Ds.ACTIVE, p = () => {
|
23468
23476
|
if (l?.length) {
|
23469
|
-
const
|
23477
|
+
const g = l.length === 1 ? l[0] : `${l.length} environments`;
|
23470
23478
|
return /* @__PURE__ */ t.jsx(
|
23471
23479
|
Bn,
|
23472
23480
|
{
|
23473
23481
|
envStateText: m(),
|
23474
|
-
title:
|
23482
|
+
title: g,
|
23475
23483
|
tooltipContent: /* @__PURE__ */ t.jsx("div", { className: "flexbox-col lh-20", children: l.map((f) => /* @__PURE__ */ t.jsx("span", { children: f }, f)) })
|
23476
23484
|
}
|
23477
23485
|
);
|
@@ -23483,7 +23491,7 @@ const Aw = (e) => [
|
|
23483
23491
|
}, _ = o !== Eo.CD;
|
23484
23492
|
if (!e && !d && (o !== Eo.CD || !s && !Object.values(Ua).includes(n) && !i && !l?.length))
|
23485
23493
|
return null;
|
23486
|
-
const
|
23494
|
+
const x = () => o !== Eo.CD ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23487
23495
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
23488
23496
|
d
|
23489
23497
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -23504,7 +23512,7 @@ const Aw = (e) => [
|
|
23504
23512
|
d
|
23505
23513
|
] });
|
23506
23514
|
return /* @__PURE__ */ t.jsxs("div", { className: `bg__primary pb-8 br-4 flex left flex-wrap ${_ ? "dc__gap-8" : ""}`, children: [
|
23507
|
-
|
23515
|
+
x(),
|
23508
23516
|
!!u?.length && /* @__PURE__ */ t.jsx(cp, { targetPlatforms: u, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
23509
23517
|
Mr,
|
23510
23518
|
{
|
@@ -23800,7 +23808,7 @@ const kw = ({
|
|
23800
23808
|
validateDuplicateKeys: _ = !1,
|
23801
23809
|
validateEmptyKeys: h = !1
|
23802
23810
|
}) => {
|
23803
|
-
const [E,
|
23811
|
+
const [E, x] = w({}), [g, f] = w([]), { sortBy: N, sortOrder: C, handleSorting: S } = dc({
|
23804
23812
|
initialSortKey: r ? "key" : null
|
23805
23813
|
}), b = X(
|
23806
23814
|
() => Gw({ rows: s, placeholder: n, maskValue: a }),
|
@@ -23821,13 +23829,13 @@ const kw = ({
|
|
23821
23829
|
validateEmptyKeys: h,
|
23822
23830
|
validationSchema: m
|
23823
23831
|
});
|
23824
|
-
|
23832
|
+
x(j), p?.(!v), A();
|
23825
23833
|
}, []), Dr(() => {
|
23826
23834
|
if (!r) {
|
23827
23835
|
f(b);
|
23828
23836
|
return;
|
23829
23837
|
}
|
23830
|
-
const v = new Map(b.map((D) => [D.id, D])), j = new Set(
|
23838
|
+
const v = new Map(b.map((D) => [D.id, D])), j = new Set(g.map((D) => D.id)), P = g.map((D) => v.get(D.id)).filter(Boolean), O = b.filter((D) => !j.has(D.id));
|
23831
23839
|
f([...O, ...P]);
|
23832
23840
|
}, [b]), Dr(() => {
|
23833
23841
|
A();
|
@@ -23839,7 +23847,7 @@ const kw = ({
|
|
23839
23847
|
validateEmptyKeys: h,
|
23840
23848
|
validationSchema: m
|
23841
23849
|
});
|
23842
|
-
|
23850
|
+
x(P), p?.(!j), i(Vw(v));
|
23843
23851
|
}, T = () => {
|
23844
23852
|
const j = [yi(n), ...b];
|
23845
23853
|
R(j);
|
@@ -23859,7 +23867,7 @@ const kw = ({
|
|
23859
23867
|
s_,
|
23860
23868
|
{
|
23861
23869
|
headers: Yw({ headerLabel: e, isSortable: r }),
|
23862
|
-
rows:
|
23870
|
+
rows: g,
|
23863
23871
|
cellError: u ? E : {},
|
23864
23872
|
onRowAdd: T,
|
23865
23873
|
onRowDelete: I,
|
@@ -23975,18 +23983,18 @@ const Kw = (e) => {
|
|
23975
23983
|
}) => {
|
23976
23984
|
const [r, o] = w(!1), [i, c] = w(""), [l, d] = w(!1), [u, m] = w(""), p = () => {
|
23977
23985
|
Ib(rm.GET_LICENSE_CLICKED, !0);
|
23978
|
-
const
|
23979
|
-
ia(
|
23986
|
+
const g = m_(e);
|
23987
|
+
ia(g)(), o(!0);
|
23980
23988
|
}, _ = () => {
|
23981
23989
|
o(!1);
|
23982
|
-
}, h = (
|
23983
|
-
const f = Vm(
|
23990
|
+
}, h = (g) => {
|
23991
|
+
const f = Vm(g).message;
|
23984
23992
|
return m(f || ""), !f;
|
23985
|
-
}, E = (
|
23986
|
-
const { value: f } =
|
23993
|
+
}, E = (g) => {
|
23994
|
+
const { value: f } = g.target;
|
23987
23995
|
c(f), h(f);
|
23988
|
-
},
|
23989
|
-
if (
|
23996
|
+
}, x = async (g) => {
|
23997
|
+
if (g.preventDefault(), h(i)) {
|
23990
23998
|
d(!0);
|
23991
23999
|
try {
|
23992
24000
|
await eL(i), Ve.showToast({
|
@@ -24045,7 +24053,7 @@ const Kw = (e) => {
|
|
24045
24053
|
text: "Activate",
|
24046
24054
|
fullWidth: !0,
|
24047
24055
|
isLoading: l,
|
24048
|
-
onClick:
|
24056
|
+
onClick: x
|
24049
24057
|
}
|
24050
24058
|
),
|
24051
24059
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__content-space", children: [
|
@@ -24074,18 +24082,18 @@ const Kw = (e) => {
|
|
24074
24082
|
appTheme: c,
|
24075
24083
|
handleCopySuccess: l
|
24076
24084
|
}) => {
|
24077
|
-
const { bgColor: d, textColor: u } = Kw(r), m = gD(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, _ = r !== $s.EXPIRED, h = c === tt.dark, E = $(null),
|
24085
|
+
const { bgColor: d, textColor: u } = Kw(r), m = gD(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, _ = r !== $s.EXPIRED, h = c === tt.dark, E = $(null), x = Qn(window.innerWidth), g = Qn(window.innerHeight), f = ws(g, (R) => {
|
24078
24086
|
if (!E.current) return 0;
|
24079
24087
|
const T = E.current.getBoundingClientRect();
|
24080
24088
|
return -(R - T.top - T.height / 2) / Fd;
|
24081
|
-
}), N = ws(
|
24089
|
+
}), N = ws(x, (R) => {
|
24082
24090
|
if (!E.current) return 0;
|
24083
24091
|
const T = E.current.getBoundingClientRect();
|
24084
24092
|
return (R - T.left - T.width / 2) / Fd;
|
24085
24093
|
});
|
24086
24094
|
M(() => {
|
24087
24095
|
const R = (T) => {
|
24088
|
-
Zn(
|
24096
|
+
Zn(x, T.clientX), Zn(g, T.clientY);
|
24089
24097
|
};
|
24090
24098
|
return window.addEventListener("mousemove", R), () => {
|
24091
24099
|
window.removeEventListener("mousemove", R);
|
@@ -24484,9 +24492,9 @@ const Kw = (e) => {
|
|
24484
24492
|
}
|
24485
24493
|
}), [_, h] = w(!1), E = () => {
|
24486
24494
|
h(!0);
|
24487
|
-
},
|
24495
|
+
}, x = () => {
|
24488
24496
|
h(!1);
|
24489
|
-
},
|
24497
|
+
}, g = (f) => {
|
24490
24498
|
p(f);
|
24491
24499
|
};
|
24492
24500
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-6", children: [
|
@@ -24499,10 +24507,10 @@ const Kw = (e) => {
|
|
24499
24507
|
placeholder: null,
|
24500
24508
|
selectedCountry: m.iso2,
|
24501
24509
|
variant: "selectPhoneCode",
|
24502
|
-
handleChange:
|
24510
|
+
handleChange: g,
|
24503
24511
|
name: r,
|
24504
24512
|
size: i,
|
24505
|
-
onMenuClose:
|
24513
|
+
onMenuClose: x,
|
24506
24514
|
onMenuOpen: E
|
24507
24515
|
}
|
24508
24516
|
) }),
|
@@ -24775,8 +24783,8 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24775
24783
|
showCardBorder: u,
|
24776
24784
|
getPluginStoreRef: m
|
24777
24785
|
}) => {
|
24778
|
-
const { appId: p } = Dt(), [_, h] = w(!1), [E,
|
24779
|
-
h(!0),
|
24786
|
+
const { appId: p } = Dt(), [_, h] = w(!1), [E, x] = w(!1), g = async () => {
|
24787
|
+
h(!0), x(!1);
|
24780
24788
|
try {
|
24781
24789
|
const f = await Pr(
|
24782
24790
|
() => h_({
|
@@ -24790,7 +24798,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24790
24798
|
);
|
24791
24799
|
a(f, !0);
|
24792
24800
|
} catch {
|
24793
|
-
|
24801
|
+
x(!0);
|
24794
24802
|
} finally {
|
24795
24803
|
h(!1);
|
24796
24804
|
}
|
@@ -24809,7 +24817,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24809
24817
|
f.parentPluginId
|
24810
24818
|
)),
|
24811
24819
|
_ && /* @__PURE__ */ t.jsx(p_, {}),
|
24812
|
-
n > s.length && !_ && /* @__PURE__ */ t.jsx(Op, { callback:
|
24820
|
+
n > s.length && !_ && /* @__PURE__ */ t.jsx(Op, { callback: g, hasError: E })
|
24813
24821
|
] }) : o || r.length ? /* @__PURE__ */ t.jsx(Cc, { handleClearFilters: d, imageType: Hs.Large }) : /* @__PURE__ */ t.jsx(Xe, { title: "No plugins found", subTitle: "We are unable to locate any plugin in our system" });
|
24814
24822
|
}, _L = ({
|
24815
24823
|
availableTags: e,
|
@@ -24869,7 +24877,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24869
24877
|
rootClassName: h = "",
|
24870
24878
|
showCardBorder: E = !1
|
24871
24879
|
}) => {
|
24872
|
-
const { appId:
|
24880
|
+
const { appId: x } = Dt(), [g, f] = w(l || []), [N, C] = w(u || 0), [S, b] = w(
|
24873
24881
|
p || structuredClone(nL)
|
24874
24882
|
), A = $(new AbortController()), R = (se) => {
|
24875
24883
|
f(se), d?.(se);
|
@@ -24882,17 +24890,17 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24882
24890
|
searchKey: y,
|
24883
24891
|
selectedTags: v,
|
24884
24892
|
offset: 0,
|
24885
|
-
appId:
|
24893
|
+
appId: x ? +x : null,
|
24886
24894
|
signal: A.current.signal
|
24887
24895
|
}),
|
24888
24896
|
A
|
24889
24897
|
), [P, O, D, k] = vt(
|
24890
24898
|
j,
|
24891
24899
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
24892
|
-
[y,
|
24893
|
-
c ? !
|
24900
|
+
[y, x, v],
|
24901
|
+
c ? !g.length : !0
|
24894
24902
|
), [B, G, Q, J] = vt(
|
24895
|
-
() => mL(
|
24903
|
+
() => mL(x ? +x : null),
|
24896
24904
|
[],
|
24897
24905
|
!e?.length
|
24898
24906
|
);
|
@@ -24906,7 +24914,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24906
24914
|
parentPluginIdList: Ce
|
24907
24915
|
} = se;
|
24908
24916
|
a(uL(n, me, le)), T(K);
|
24909
|
-
const Re = ne ? structuredClone(
|
24917
|
+
const Re = ne ? structuredClone(g) : [], at = Re.reduce(
|
24910
24918
|
(Ye, re) => (Ye[re.parentPluginId] = !0, Ye),
|
24911
24919
|
{}
|
24912
24920
|
);
|
@@ -24997,7 +25005,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24997
25005
|
pL,
|
24998
25006
|
{
|
24999
25007
|
pluginDataStore: n,
|
25000
|
-
pluginList:
|
25008
|
+
pluginList: g,
|
25001
25009
|
totalCount: N,
|
25002
25010
|
handleDataUpdateForPluginResponse: be,
|
25003
25011
|
filters: S,
|
@@ -25139,10 +25147,10 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25139
25147
|
M(() => {
|
25140
25148
|
let E = null;
|
25141
25149
|
return e || (E = setInterval(() => {
|
25142
|
-
const
|
25150
|
+
const x = localStorage.getItem(
|
25143
25151
|
qi
|
25144
25152
|
);
|
25145
|
-
|
25153
|
+
x && m(x);
|
25146
25154
|
}, 1e4)), () => {
|
25147
25155
|
clearInterval(E);
|
25148
25156
|
};
|
@@ -25262,22 +25270,22 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25262
25270
|
}) => {
|
25263
25271
|
const [l, d] = w([]);
|
25264
25272
|
M(() => {
|
25265
|
-
const
|
25266
|
-
d(g);
|
25267
|
-
}, [e, s]), M(() => {
|
25268
|
-
const g = 1 + Math.floor(n / s), x = Vo({ size: e, pageSize: s, selectedPageNo: g });
|
25273
|
+
const x = Vo({ size: e, pageSize: s, selectedPageNo: 1 });
|
25269
25274
|
d(x);
|
25275
|
+
}, [e, s]), M(() => {
|
25276
|
+
const x = 1 + Math.floor(n / s), g = Vo({ size: e, pageSize: s, selectedPageNo: x });
|
25277
|
+
d(g);
|
25270
25278
|
}, [n]);
|
25271
|
-
const u = (
|
25272
|
-
const
|
25273
|
-
d(
|
25279
|
+
const u = (x) => {
|
25280
|
+
const g = Vo({ size: e, pageSize: s, selectedPageNo: x });
|
25281
|
+
d(g), a(x);
|
25274
25282
|
}, m = () => {
|
25275
|
-
const
|
25276
|
-
u(
|
25283
|
+
const g = l.find((f) => f.selected).value - 1;
|
25284
|
+
u(g);
|
25277
25285
|
}, p = () => {
|
25278
|
-
const
|
25279
|
-
u(
|
25280
|
-
}, _ = n + s < e ? n + s : e, h = l.findIndex((
|
25286
|
+
const g = l.find((f) => f.selected).value + 1;
|
25287
|
+
u(g);
|
25288
|
+
}, _ = n + s < e ? n + s : e, h = l.findIndex((x) => x.selected), E = l.filter((x) => x.isVisible);
|
25281
25289
|
return /* @__PURE__ */ t.jsxs("div", { className: c || "", children: [
|
25282
25290
|
/* @__PURE__ */ t.jsxs("div", { className: "page-number", children: [
|
25283
25291
|
n + 1,
|
@@ -25300,14 +25308,14 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25300
25308
|
size: L.xs
|
25301
25309
|
}
|
25302
25310
|
),
|
25303
|
-
E.map((
|
25311
|
+
E.map((x) => /* @__PURE__ */ t.jsx(
|
25304
25312
|
IL,
|
25305
25313
|
{
|
25306
|
-
value:
|
25307
|
-
isSelected:
|
25314
|
+
value: x.value,
|
25315
|
+
isSelected: x.selected,
|
25308
25316
|
selectPage: u
|
25309
25317
|
},
|
25310
|
-
|
25318
|
+
x.value
|
25311
25319
|
)),
|
25312
25320
|
/* @__PURE__ */ t.jsx(
|
25313
25321
|
H,
|
@@ -25366,19 +25374,19 @@ function yL({
|
|
25366
25374
|
height: 0,
|
25367
25375
|
top: 0,
|
25368
25376
|
left: 0
|
25369
|
-
},
|
25377
|
+
}, x = d.current?.getBoundingClientRect().height ?? 0, g = d.current?.getBoundingClientRect().width ?? 0;
|
25370
25378
|
switch (h) {
|
25371
25379
|
case Or.PARENT_BOTTOM_CENTER: {
|
25372
|
-
const f = (E.width -
|
25380
|
+
const f = (E.width - g) / 2, N = E.top > 0 ? E.top : c, S = (E.height > l.height ? l.height - N : E.height) - x - o;
|
25373
25381
|
return { x: f, y: S };
|
25374
25382
|
}
|
25375
25383
|
case Or.SCREEN_BOTTOM_RIGHT: {
|
25376
|
-
const f = l.width - E.left -
|
25384
|
+
const f = l.width - E.left - g - o, N = l.height - E.top - x - o;
|
25377
25385
|
return { x: f, y: N };
|
25378
25386
|
}
|
25379
25387
|
// Add more cases for other variants if needed
|
25380
25388
|
default: {
|
25381
|
-
const f = l.width / 2 - E.left -
|
25389
|
+
const f = l.width / 2 - E.left - g / 2, N = l.height - E.top - x - o;
|
25382
25390
|
return { x: f, y: N };
|
25383
25391
|
}
|
25384
25392
|
}
|
@@ -25388,8 +25396,8 @@ function yL({
|
|
25388
25396
|
m(h);
|
25389
25397
|
}, [d, n, l]);
|
25390
25398
|
function _(h, E) {
|
25391
|
-
const
|
25392
|
-
|
25399
|
+
const x = r?.current?.getBoundingClientRect().left ?? 0, g = r?.current?.getBoundingClientRect().top ?? 0, f = d.current?.getBoundingClientRect().height ?? 0, N = d.current?.getBoundingClientRect().width ?? 0;
|
25400
|
+
x + E.x + N + o > l.width || g + E.y + f + o > l.height || x + E.x < 0 || g + E.y < 0 || m({
|
25393
25401
|
x: E.x,
|
25394
25402
|
y: E.y
|
25395
25403
|
});
|
@@ -25474,15 +25482,15 @@ const OL = ({
|
|
25474
25482
|
bulkSelectionReturnValue: n
|
25475
25483
|
}, a, r, o) => {
|
25476
25484
|
const i = !!e, { registerShortcut: c, unregisterShortcut: l, targetProps: d } = wn(), { handleBulkSelection: u } = n ?? {}, [m, p] = w(0), _ = $({ count: 0, type: "" }), h = Fe(
|
25477
|
-
(
|
25485
|
+
(g) => {
|
25478
25486
|
x_.dispatchEvent(
|
25479
|
-
new CustomEvent(
|
25487
|
+
new CustomEvent(g, { detail: { activeRowData: a[m] } })
|
25480
25488
|
);
|
25481
25489
|
},
|
25482
25490
|
[m, a]
|
25483
25491
|
), E = Fe(
|
25484
|
-
(
|
25485
|
-
_.current =
|
25492
|
+
(g) => {
|
25493
|
+
_.current = g === _.current.type ? { count: _.current.count + 1, type: g } : { count: 1, type: g };
|
25486
25494
|
const f = Math.min(m + 1, a.length - 1);
|
25487
25495
|
return p(f), {
|
25488
25496
|
consecutiveSequencesForBulkSelection: _.current.count,
|
@@ -25490,9 +25498,9 @@ const OL = ({
|
|
25490
25498
|
};
|
25491
25499
|
},
|
25492
25500
|
[m, a]
|
25493
|
-
),
|
25494
|
-
(
|
25495
|
-
_.current =
|
25501
|
+
), x = Fe(
|
25502
|
+
(g) => {
|
25503
|
+
_.current = g === _.current.type ? { count: _.current.count + 1, type: g } : { count: 1, type: g };
|
25496
25504
|
const f = Math.max(m - 1, 0);
|
25497
25505
|
return p(f), {
|
25498
25506
|
consecutiveSequencesForBulkSelection: _.current.count,
|
@@ -25509,7 +25517,7 @@ const OL = ({
|
|
25509
25517
|
}), c({
|
25510
25518
|
keys: ["ArrowUp"],
|
25511
25519
|
callback: () => {
|
25512
|
-
|
25520
|
+
x("arrow-up");
|
25513
25521
|
}
|
25514
25522
|
}), c({
|
25515
25523
|
keys: ["Enter"],
|
@@ -25528,7 +25536,7 @@ const OL = ({
|
|
25528
25536
|
}
|
25529
25537
|
}), () => {
|
25530
25538
|
l(["ArrowDown"]), l(["ArrowUp"]), l(["Enter"]), l(["Backspace"]), l(["."]);
|
25531
|
-
}), [E,
|
25539
|
+
}), [E, x, h]), M(() => i ? (c({
|
25532
25540
|
keys: ["Escape"],
|
25533
25541
|
callback: () => {
|
25534
25542
|
u({ action: $e.CLEAR_ALL_SELECTIONS });
|
@@ -25536,7 +25544,7 @@ const OL = ({
|
|
25536
25544
|
}), c({
|
25537
25545
|
keys: ["Shift", "ArrowDown"],
|
25538
25546
|
callback: () => {
|
25539
|
-
const { consecutiveSequencesForBulkSelection:
|
25547
|
+
const { consecutiveSequencesForBulkSelection: g, activeRowIndex: f } = E("shift-arrow-down");
|
25540
25548
|
if (m === f)
|
25541
25549
|
return;
|
25542
25550
|
const N = a[m], C = a[f];
|
@@ -25544,7 +25552,7 @@ const OL = ({
|
|
25544
25552
|
action: $e.SELECT_IDENTIFIER,
|
25545
25553
|
data: {
|
25546
25554
|
identifierObject: {
|
25547
|
-
...
|
25555
|
+
...g === 1 ? { [N.id]: N } : {},
|
25548
25556
|
[C.id]: C
|
25549
25557
|
}
|
25550
25558
|
}
|
@@ -25564,7 +25572,7 @@ const OL = ({
|
|
25564
25572
|
}), c({
|
25565
25573
|
keys: ["Shift", "ArrowUp"],
|
25566
25574
|
callback: () => {
|
25567
|
-
const { consecutiveSequencesForBulkSelection:
|
25575
|
+
const { consecutiveSequencesForBulkSelection: g, activeRowIndex: f } = x("shift-arrow-up");
|
25568
25576
|
if (m === f)
|
25569
25577
|
return;
|
25570
25578
|
const N = a[m], C = a[f];
|
@@ -25572,7 +25580,7 @@ const OL = ({
|
|
25572
25580
|
action: $e.SELECT_IDENTIFIER,
|
25573
25581
|
data: {
|
25574
25582
|
identifierObject: {
|
25575
|
-
...
|
25583
|
+
...g === 1 ? { [N.id]: N } : {},
|
25576
25584
|
[C.id]: C
|
25577
25585
|
}
|
25578
25586
|
}
|
@@ -25587,7 +25595,7 @@ const OL = ({
|
|
25587
25595
|
l(["Shift", "ArrowUp"]), l(["Shift", "ArrowDown"]), l(["X"]), l(["Control", "A"]), l(["Escape"]);
|
25588
25596
|
}) : Ne, [
|
25589
25597
|
E,
|
25590
|
-
|
25598
|
+
x,
|
25591
25599
|
m,
|
25592
25600
|
a,
|
25593
25601
|
s,
|
@@ -25682,7 +25690,7 @@ const OL = ({
|
|
25682
25690
|
filteredRows: h,
|
25683
25691
|
areFilteredRowsLoading: E
|
25684
25692
|
}) => {
|
25685
|
-
const
|
25693
|
+
const x = $(null), g = $(null), f = $(null), N = $(null), [C, S] = w(null), [b, A] = w(!1), {
|
25686
25694
|
BulkActionsComponent: R,
|
25687
25695
|
bulkActionsData: T = null,
|
25688
25696
|
BulkOperationModal: I,
|
@@ -25698,11 +25706,11 @@ const OL = ({
|
|
25698
25706
|
} = n ?? {};
|
25699
25707
|
M(() => {
|
25700
25708
|
const re = () => {
|
25701
|
-
A(
|
25709
|
+
A(x.current?.scrollLeft > 0);
|
25702
25710
|
}, ye = (st) => {
|
25703
25711
|
["ArrowUp", "ArrowDown"].includes(st.key) && st.preventDefault();
|
25704
25712
|
};
|
25705
|
-
|
25713
|
+
x.current.addEventListener("scroll", re), x.current.addEventListener("keydown", ye);
|
25706
25714
|
}, []);
|
25707
25715
|
const xe = be && s ? s.length : W?.() ?? 0, de = X(() => {
|
25708
25716
|
const re = h ?? [];
|
@@ -25723,7 +25731,7 @@ const OL = ({
|
|
25723
25731
|
const K = (re) => () => {
|
25724
25732
|
O(re);
|
25725
25733
|
}, Ce = (re) => {
|
25726
|
-
re && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && re.dataset.active === "true" && (re.focus({ preventScroll: !0 }), ML(re,
|
25734
|
+
re && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && re.dataset.active === "true" && (re.focus({ preventScroll: !0 }), ML(re, x.current, N.current?.offsetHeight), re.dataset.active = "false");
|
25727
25735
|
}, Re = () => {
|
25728
25736
|
S(null);
|
25729
25737
|
}, at = () => be && s ? h : Object.values(J), Ye = () => i ? Ka.map((re) => /* @__PURE__ */ t.jsxs(
|
@@ -25817,11 +25825,11 @@ const OL = ({
|
|
25817
25825
|
role: "grid",
|
25818
25826
|
className: "generic-table flexbox-col dc__overflow-hidden flex-grow-1 dc__outline-none-imp",
|
25819
25827
|
children: [
|
25820
|
-
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 w-100 dc__overflow-hidden", ref:
|
25828
|
+
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 w-100 dc__overflow-hidden", ref: g, children: [
|
25821
25829
|
/* @__PURE__ */ t.jsxs(
|
25822
25830
|
"div",
|
25823
25831
|
{
|
25824
|
-
ref:
|
25832
|
+
ref: x,
|
25825
25833
|
className: `flex-grow-1 flexbox-col dc__overflow-auto ${b ? "generic-table--scrolled" : ""}`,
|
25826
25834
|
children: [
|
25827
25835
|
/* @__PURE__ */ t.jsx(
|
@@ -25903,7 +25911,7 @@ const OL = ({
|
|
25903
25911
|
{
|
25904
25912
|
count: xe,
|
25905
25913
|
handleClearBulkSelection: d,
|
25906
|
-
parentRef:
|
25914
|
+
parentRef: g,
|
25907
25915
|
BulkActionsComponent: R,
|
25908
25916
|
setBulkActionState: S,
|
25909
25917
|
bulkActionsData: T
|
@@ -25952,8 +25960,8 @@ const OL = ({
|
|
25952
25960
|
stylesConfig: _,
|
25953
25961
|
loading: h,
|
25954
25962
|
bulkSelectionConfig: E,
|
25955
|
-
bulkSelectionReturnValue:
|
25956
|
-
handleClearBulkSelection:
|
25963
|
+
bulkSelectionReturnValue: x,
|
25964
|
+
handleClearBulkSelection: g,
|
25957
25965
|
handleToggleBulkSelectionOnRow: f,
|
25958
25966
|
paginationVariant: N,
|
25959
25967
|
RowActionsOnHoverComponent: C,
|
@@ -25978,7 +25986,7 @@ const OL = ({
|
|
25978
25986
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
25979
25987
|
handleSearch: k,
|
25980
25988
|
...B
|
25981
|
-
} = s ?? {}, G = $(null), { setIdentifiers: Q } =
|
25989
|
+
} = s ?? {}, G = $(null), { setIdentifiers: Q } = x ?? {}, J = $(-1);
|
25982
25990
|
M(() => {
|
25983
25991
|
const ne = (me) => {
|
25984
25992
|
setTimeout(() => {
|
@@ -25992,7 +26000,7 @@ const OL = ({
|
|
25992
26000
|
clearTimeout(J.current), G.current?.removeEventListener("focusout", ne);
|
25993
26001
|
};
|
25994
26002
|
}, []), M(() => {
|
25995
|
-
|
26003
|
+
g();
|
25996
26004
|
}, [n]);
|
25997
26005
|
const [be, Ee, W, ie] = vt(async () => {
|
25998
26006
|
if (!n && !a)
|
@@ -26027,11 +26035,11 @@ const OL = ({
|
|
26027
26035
|
filteredRows: Ee,
|
26028
26036
|
areFilteredRowsLoading: ce,
|
26029
26037
|
visibleColumns: p,
|
26030
|
-
bulkSelectionReturnValue:
|
26038
|
+
bulkSelectionReturnValue: x,
|
26031
26039
|
paginationVariant: N,
|
26032
26040
|
resizableConfig: i,
|
26033
26041
|
filterData: s,
|
26034
|
-
handleClearBulkSelection:
|
26042
|
+
handleClearBulkSelection: g,
|
26035
26043
|
handleToggleBulkSelectionOnRow: f,
|
26036
26044
|
RowActionsOnHoverComponent: C,
|
26037
26045
|
additionalProps: l,
|
@@ -26249,12 +26257,12 @@ const OL = ({
|
|
26249
26257
|
const h = [r(), ...s];
|
26250
26258
|
n(h);
|
26251
26259
|
}, m = (_, h, E) => {
|
26252
|
-
const
|
26253
|
-
|
26260
|
+
const x = structuredClone(i);
|
26261
|
+
x[_.id] || (x[_.id] = {
|
26254
26262
|
tagKey: { isValid: !0, errorMessages: [] },
|
26255
26263
|
tagValue: { isValid: !0, errorMessages: [] }
|
26256
|
-
}), h === "tagKey" ?
|
26257
|
-
const
|
26264
|
+
}), h === "tagKey" ? x[_.id].tagKey = TO(E) : x[_.id].tagValue = SO(E, _.data.tagKey.value);
|
26265
|
+
const g = s.map((f) => f.id === _.id ? {
|
26258
26266
|
...f,
|
26259
26267
|
data: {
|
26260
26268
|
...f.data,
|
@@ -26268,7 +26276,7 @@ const OL = ({
|
|
26268
26276
|
propagateTag: h === "tagKey" && E === zd ? !1 : f.customState.propagateTag
|
26269
26277
|
}
|
26270
26278
|
} : f);
|
26271
|
-
n(
|
26279
|
+
n(g), c(x);
|
26272
26280
|
}, p = (_) => {
|
26273
26281
|
const h = s.filter(({ id: E }) => E !== _.id);
|
26274
26282
|
if (h.length === 0) {
|
@@ -26489,7 +26497,7 @@ const OL = ({
|
|
26489
26497
|
}).forEach((k) => {
|
26490
26498
|
O[k] = !0;
|
26491
26499
|
}), O;
|
26492
|
-
}, [E,
|
26500
|
+
}, [E, x] = w(null), g = $({}), [f, N] = w(h), C = s ? n : f, S = c === "navigation" ? -1 : 0;
|
26493
26501
|
M(() => {
|
26494
26502
|
if (_) {
|
26495
26503
|
const O = Zd({
|
@@ -26501,7 +26509,7 @@ const OL = ({
|
|
26501
26509
|
return O.forEach((B) => {
|
26502
26510
|
k[B] = !0;
|
26503
26511
|
}), k;
|
26504
|
-
}),
|
26512
|
+
}), x(a);
|
26505
26513
|
}
|
26506
26514
|
}, [a]);
|
26507
26515
|
const b = (O) => () => {
|
@@ -26518,7 +26526,7 @@ const OL = ({
|
|
26518
26526
|
behavior: "smooth",
|
26519
26527
|
block: "center",
|
26520
26528
|
inline: "center"
|
26521
|
-
}),
|
26529
|
+
}), x(null)), g.current[O] = D;
|
26522
26530
|
}, T = X(() => l || b_({
|
26523
26531
|
nodeList: e,
|
26524
26532
|
expandedMap: C
|
@@ -26535,10 +26543,10 @@ const OL = ({
|
|
26535
26543
|
const G = T.indexOf(B);
|
26536
26544
|
if (G !== -1) {
|
26537
26545
|
if (D === "ArrowDown" && G < T.length - 1) {
|
26538
|
-
|
26546
|
+
g.current[T[G + 1]]?.focus();
|
26539
26547
|
return;
|
26540
26548
|
}
|
26541
|
-
D === "ArrowUp" && G > 0 &&
|
26549
|
+
D === "ArrowUp" && G > 0 && g.current[T[G - 1]]?.focus();
|
26542
26550
|
}
|
26543
26551
|
}, y = (O, D) => {
|
26544
26552
|
D.onClick?.(O), o?.(D);
|
@@ -27031,10 +27039,10 @@ const OL = ({
|
|
27031
27039
|
const [_, h] = w(!1), E = X(
|
27032
27040
|
() => nD({ workflows: i, changeCIPayload: o }),
|
27033
27041
|
[i, o]
|
27034
|
-
),
|
27042
|
+
), x = X(
|
27035
27043
|
() => aD({ currentPipelineType: E, changeCIPayload: o, isAppGroup: u }),
|
27036
27044
|
[E, u, o]
|
27037
|
-
),
|
27045
|
+
), g = X(
|
27038
27046
|
() => rD({ currentPipelineType: E, linkedCDSourceVariant: d, isAppGroup: u }),
|
27039
27047
|
[E, d, u]
|
27040
27048
|
), f = X(
|
@@ -27126,8 +27134,8 @@ const OL = ({
|
|
27126
27134
|
)
|
27127
27135
|
] }),
|
27128
27136
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-grow-1 flexbox-col dc__gap-24 px-20 py-16 dc__overflow-auto", children: [
|
27129
|
-
R("Build Container Image",
|
27130
|
-
R("Receive Container Image",
|
27137
|
+
R("Build Container Image", x),
|
27138
|
+
R("Receive Container Image", g),
|
27131
27139
|
R("Create Job", f)
|
27132
27140
|
] })
|
27133
27141
|
] }) })
|
@@ -27256,23 +27264,23 @@ function a4(e, s = 4, n = "json", a = !1) {
|
|
27256
27264
|
if (n === "json")
|
27257
27265
|
try {
|
27258
27266
|
_ = JSON.parse(e), h = null, E = null;
|
27259
|
-
} catch (
|
27260
|
-
h =
|
27267
|
+
} catch (x) {
|
27268
|
+
h = x;
|
27261
27269
|
try {
|
27262
27270
|
_ = Zt.parse(e, p), h = null, E = null;
|
27263
|
-
} catch (
|
27264
|
-
E =
|
27271
|
+
} catch (g) {
|
27272
|
+
E = g;
|
27265
27273
|
}
|
27266
27274
|
}
|
27267
27275
|
else
|
27268
27276
|
try {
|
27269
27277
|
_ = Zt.parse(e, p), h = null, E = null;
|
27270
|
-
} catch (
|
27271
|
-
E =
|
27278
|
+
} catch (x) {
|
27279
|
+
E = x;
|
27272
27280
|
try {
|
27273
27281
|
_ = JSON.parse(e), h = null, E = null;
|
27274
|
-
} catch (
|
27275
|
-
h =
|
27282
|
+
} catch (g) {
|
27283
|
+
h = g;
|
27276
27284
|
}
|
27277
27285
|
}
|
27278
27286
|
(h || E) && m(n === "json" ? h.message : E.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), c(Zt.stringify(_, { indent: 2, lineWidth: 0 })), d(_), m("")) : (d(null), m(h || E ? n === "json" ? h.message : E.message : "cannot parse to valid object"));
|
@@ -27503,21 +27511,21 @@ function A_(e, s) {
|
|
27503
27511
|
}, [s]);
|
27504
27512
|
}
|
27505
27513
|
function h4(e) {
|
27506
|
-
const s = $(null), n = $(0), a = $(null), [r, o] = w(0), [i, c] = w(0), [l, d] = w(!1), u = Fe((
|
27507
|
-
if (
|
27508
|
-
return s.current =
|
27509
|
-
|
27514
|
+
const s = $(null), n = $(0), a = $(null), [r, o] = w(0), [i, c] = w(0), [l, d] = w(!1), u = Fe((g) => {
|
27515
|
+
if (g !== null)
|
27516
|
+
return s.current = g, a.current = g.addEventListener("wheel", m), n.current = requestAnimationFrame(x), () => {
|
27517
|
+
g.removeEventListener("wheel", m), cancelAnimationFrame(n.current);
|
27510
27518
|
};
|
27511
27519
|
}, []);
|
27512
|
-
function m(
|
27513
|
-
|
27520
|
+
function m(g) {
|
27521
|
+
g.deltaY < 0 && d(!1);
|
27514
27522
|
}
|
27515
27523
|
const [p, _] = X(() => {
|
27516
27524
|
if (!s.current)
|
27517
27525
|
return [!1, !1];
|
27518
|
-
let
|
27526
|
+
let g = !0;
|
27519
27527
|
const f = s.current.scrollHeight - s.current.scrollTop !== s.current.clientHeight;
|
27520
|
-
return i === 0 && (
|
27528
|
+
return i === 0 && (g = !1), !f && e.autoBottomScroll && d(!0), [g, f];
|
27521
27529
|
}, [r, i]);
|
27522
27530
|
M(() => {
|
27523
27531
|
e.autoBottomScroll ? d(!0) : d(!1);
|
@@ -27531,22 +27539,22 @@ function h4(e) {
|
|
27531
27539
|
500,
|
27532
27540
|
[r, l]
|
27533
27541
|
);
|
27534
|
-
function h(
|
27542
|
+
function h(g) {
|
27535
27543
|
s.current.scrollBy({
|
27536
27544
|
top: -1 * i,
|
27537
27545
|
left: 0,
|
27538
27546
|
behavior: "smooth"
|
27539
27547
|
}), e.autoBottomScroll && d(!1);
|
27540
27548
|
}
|
27541
|
-
function E(
|
27549
|
+
function E(g) {
|
27542
27550
|
d(!0), s.current.scrollBy({
|
27543
27551
|
top: r,
|
27544
27552
|
left: 0,
|
27545
27553
|
behavior: "smooth"
|
27546
27554
|
});
|
27547
27555
|
}
|
27548
|
-
function
|
27549
|
-
s.current && (o(s.current.scrollHeight), c(s.current.scrollTop), n.current = requestAnimationFrame(
|
27556
|
+
function x() {
|
27557
|
+
s.current && (o(s.current.scrollHeight), c(s.current.scrollTop), n.current = requestAnimationFrame(x));
|
27550
27558
|
}
|
27551
27559
|
return [u, p ? h : null, _ ? E : null];
|
27552
27560
|
}
|
@@ -27941,24 +27949,24 @@ function j4(e, s) {
|
|
27941
27949
|
c((_) => ({ ..._, alias: { ..._.alias, ...p } }));
|
27942
27950
|
}
|
27943
27951
|
function d(p) {
|
27944
|
-
const _ = p.reduce((h, E,
|
27952
|
+
const _ = p.reduce((h, E, x) => (delete h[E], h), i.alias);
|
27945
27953
|
c((h) => ({ ...h, alias: _ }));
|
27946
27954
|
}
|
27947
27955
|
const u = X(() => {
|
27948
27956
|
const p = r.split("/").filter(Boolean), _ = a.split("/").filter(Boolean);
|
27949
27957
|
return p.map((h, E) => {
|
27950
|
-
const
|
27951
|
-
return h.startsWith(":") && o[h.replace(":", "")] && (
|
27958
|
+
const x = { to: _[E], name: h };
|
27959
|
+
return h.startsWith(":") && o[h.replace(":", "")] && (x.className = "param"), x;
|
27952
27960
|
});
|
27953
27961
|
}, [r, a]), { res: m } = X(
|
27954
27962
|
() => u.reduce(
|
27955
27963
|
(p, _, h) => {
|
27956
|
-
const { res: E, prefix:
|
27964
|
+
const { res: E, prefix: x } = p, { to: g, name: f } = _;
|
27957
27965
|
return E.push({
|
27958
|
-
to: !i.alias[f]?.component || i.alias[f]?.component && i.alias[f]?.linked ? `${
|
27966
|
+
to: !i.alias[f]?.component || i.alias[f]?.component && i.alias[f]?.linked ? `${x}${g}` : null,
|
27959
27967
|
name: typeof i.alias[f] == "object" ? i.alias[f]?.component ? i.alias[f].component : null : i.alias[f] || f,
|
27960
27968
|
className: _.className || ""
|
27961
|
-
}), { res: E, prefix: `${
|
27969
|
+
}), { res: E, prefix: `${x}${_.to}${n}` };
|
27962
27970
|
},
|
27963
27971
|
{ res: [], prefix: "/" }
|
27964
27972
|
),
|
@@ -27996,13 +28004,13 @@ const O_ = ({
|
|
27996
28004
|
AI().then((h) => {
|
27997
28005
|
const E = h?.result || [];
|
27998
28006
|
n(E);
|
27999
|
-
const
|
28007
|
+
const x = [...new Set(E.map((f) => f.chartType))].map((f) => ({
|
28000
28008
|
value: f,
|
28001
28009
|
label: f
|
28002
28010
|
}));
|
28003
|
-
l(
|
28004
|
-
const
|
28005
|
-
m(
|
28011
|
+
l(x);
|
28012
|
+
const g = ru(E, x[0]);
|
28013
|
+
m(g);
|
28006
28014
|
}).catch((h) => {
|
28007
28015
|
Le(h);
|
28008
28016
|
});
|
@@ -28141,32 +28149,32 @@ const w4 = ({
|
|
28141
28149
|
}) => {
|
28142
28150
|
const [d, u] = w(!1), m = () => {
|
28143
28151
|
u(!1);
|
28144
|
-
}, p = (
|
28145
|
-
Ae(
|
28152
|
+
}, p = (g) => {
|
28153
|
+
Ae(g), cD(g), u(!0);
|
28146
28154
|
}, _ = async () => {
|
28147
28155
|
try {
|
28148
|
-
const
|
28156
|
+
const g = await OD(
|
28149
28157
|
String(o.appId),
|
28150
28158
|
Number(o.appWorkflowId),
|
28151
28159
|
l
|
28152
28160
|
);
|
28153
|
-
if (
|
28154
|
-
const { errors: f } =
|
28161
|
+
if (g.errors) {
|
28162
|
+
const { errors: f } = g, { userMessage: N } = f[0];
|
28155
28163
|
Ve.showToast({
|
28156
28164
|
variant: ve.error,
|
28157
28165
|
description: N
|
28158
28166
|
});
|
28159
28167
|
return;
|
28160
28168
|
}
|
28161
|
-
|
28169
|
+
g.status.toLowerCase() === "ok" && (Ve.showToast({
|
28162
28170
|
variant: ve.success,
|
28163
28171
|
description: "Workflow Deleted"
|
28164
28172
|
}), c());
|
28165
|
-
} catch (
|
28166
|
-
Le(
|
28173
|
+
} catch (g) {
|
28174
|
+
Le(g);
|
28167
28175
|
}
|
28168
28176
|
}, h = async () => {
|
28169
|
-
const
|
28177
|
+
const g = {
|
28170
28178
|
action: 2,
|
28171
28179
|
// To delete the pipeline
|
28172
28180
|
appId: Number(o.appId),
|
@@ -28176,7 +28184,7 @@ const w4 = ({
|
|
28176
28184
|
name: o.pipelineName
|
28177
28185
|
}
|
28178
28186
|
};
|
28179
|
-
await jD(
|
28187
|
+
await jD(g, { isTemplateView: l }), typeof i == "function" && i(), await _();
|
28180
28188
|
}, E = () => s ? /* @__PURE__ */ t.jsx(
|
28181
28189
|
H,
|
28182
28190
|
{
|
@@ -28206,7 +28214,7 @@ const w4 = ({
|
|
28206
28214
|
variant: z.secondary,
|
28207
28215
|
style: oe.negative
|
28208
28216
|
}
|
28209
|
-
),
|
28217
|
+
), x = () => d && /* @__PURE__ */ t.jsx(
|
28210
28218
|
gy,
|
28211
28219
|
{
|
28212
28220
|
title: a,
|
@@ -28221,7 +28229,7 @@ const w4 = ({
|
|
28221
28229
|
);
|
28222
28230
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
28223
28231
|
E(),
|
28224
|
-
|
28232
|
+
x()
|
28225
28233
|
] });
|
28226
28234
|
}, L4 = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", { className: s || "", children: /* @__PURE__ */ t.jsx(kg, { className: e || "" }) }), wi = Ut({ title: "", isLoading: !1, close: (e) => {
|
28227
28235
|
}, onSave: (e) => {
|
@@ -28523,7 +28531,7 @@ const kD = (e) => {
|
|
28523
28531
|
M(() => {
|
28524
28532
|
_(e);
|
28525
28533
|
}, [e]);
|
28526
|
-
const
|
28534
|
+
const x = kD(n), g = (b) => {
|
28527
28535
|
const A = b.length;
|
28528
28536
|
return A || Ve.showToast({
|
28529
28537
|
variant: ve.error,
|
@@ -28534,7 +28542,7 @@ const kD = (e) => {
|
|
28534
28542
|
h && (b = window.confirm(MD)), b && (_(e), m(e ? "previewSaved" : "empty"));
|
28535
28543
|
}, N = async () => {
|
28536
28544
|
const b = p.trim();
|
28537
|
-
if (
|
28545
|
+
if (g(b))
|
28538
28546
|
try {
|
28539
28547
|
d(!0), await r(b), _(b), m("previewSaved");
|
28540
28548
|
} catch (R) {
|
@@ -28576,11 +28584,11 @@ const kD = (e) => {
|
|
28576
28584
|
/* @__PURE__ */ t.jsx(qu, { className: "icon-dim-16" }),
|
28577
28585
|
/* @__PURE__ */ t.jsx("div", { className: "fw-6 lh-20 cn-9 fs-13", children: o })
|
28578
28586
|
] }),
|
28579
|
-
s &&
|
28587
|
+
s && x && /* @__PURE__ */ t.jsxs("div", { className: "flex left fw-4 cn-7 ml-8 fs-12 h-20", children: [
|
28580
28588
|
"Last updated by ",
|
28581
28589
|
/* @__PURE__ */ t.jsx("span", { className: "dc__ellipsis-right dc__mxw-200", children: s }),
|
28582
28590
|
" on ",
|
28583
|
-
|
28591
|
+
x
|
28584
28592
|
] }),
|
28585
28593
|
/* @__PURE__ */ t.jsxs(
|
28586
28594
|
"div",
|
@@ -28715,14 +28723,14 @@ const w_ = ({
|
|
28715
28723
|
forceReInit: m,
|
28716
28724
|
isSuperAdmin: p
|
28717
28725
|
}) => {
|
28718
|
-
const [_, h] = w(a || []), [E,
|
28726
|
+
const [_, h] = w(a || []), [E, x] = w(n ? n.comment : ""), [g, f] = w(o || []), [N, C] = 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, Q] = w(""), [J, be] = w(""), [Ee, W] = w(!1);
|
28719
28727
|
M(() => {
|
28720
28728
|
ie();
|
28721
28729
|
}, [a, n, c]), M(() => {
|
28722
28730
|
f(o || []);
|
28723
28731
|
}, [o]);
|
28724
28732
|
const ie = () => {
|
28725
|
-
(m || !S) && (h(a || []),
|
28733
|
+
(m || !S) && (h(a || []), x(n ? n.comment : ""), C(n ? n.comment : ""), I(a || []), b(!1));
|
28726
28734
|
}, ce = () => {
|
28727
28735
|
b(!S), typeof d == "function" && d(s);
|
28728
28736
|
}, xe = (V) => {
|
@@ -28734,7 +28742,7 @@ const w_ = ({
|
|
28734
28742
|
if (V.length == 0 || V.length >= 128 || V[0] == "." || V[0] == "-")
|
28735
28743
|
return v("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
28736
28744
|
v("");
|
28737
|
-
const he =
|
28745
|
+
const he = g.includes(V);
|
28738
28746
|
let ue = !1;
|
28739
28747
|
for (let Me = 0; Me < T?.length; Me++)
|
28740
28748
|
T[Me].tagName.toLowerCase() === V && (ue = !0);
|
@@ -28766,7 +28774,7 @@ const w_ = ({
|
|
28766
28774
|
P(ue);
|
28767
28775
|
const Me = [...T];
|
28768
28776
|
Me.splice(V, 1), I(Me);
|
28769
|
-
const We =
|
28777
|
+
const We = g.filter((ft) => ft.toLowerCase() !== he.tagName.toLowerCase());
|
28770
28778
|
if (f(We), he.id !== 0) {
|
28771
28779
|
const ft = [...k, he];
|
28772
28780
|
B(ft);
|
@@ -28804,7 +28812,7 @@ const w_ = ({
|
|
28804
28812
|
appId: 0,
|
28805
28813
|
artifactId: 0
|
28806
28814
|
}));
|
28807
|
-
i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(Me),
|
28815
|
+
i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(Me), x(ue.result?.imageComment?.comment), I(Me), C(ue.result?.imageComment?.comment), P([]), D([]), B([]), ce(), R(!1), v(""), r && r(s, Me, ue.result?.imageComment);
|
28808
28816
|
}).catch((ue) => {
|
28809
28817
|
ue.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Ve.showToast({
|
28810
28818
|
variant: ve.error,
|
@@ -29175,9 +29183,9 @@ const KD = (e) => {
|
|
29175
29183
|
}, [e]);
|
29176
29184
|
const E = (C) => {
|
29177
29185
|
s(C), n(C);
|
29178
|
-
},
|
29186
|
+
}, x = () => {
|
29179
29187
|
_.current.value = "", E(""), p(!1);
|
29180
|
-
},
|
29188
|
+
}, g = (C) => {
|
29181
29189
|
const { value: S } = C.target;
|
29182
29190
|
p(!!S), o ? h(S) : s(S);
|
29183
29191
|
}, f = (C) => {
|
@@ -29205,7 +29213,7 @@ const KD = (e) => {
|
|
29205
29213
|
...a,
|
29206
29214
|
defaultValue: e,
|
29207
29215
|
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"}`,
|
29208
|
-
onChange:
|
29216
|
+
onChange: g,
|
29209
29217
|
onKeyDown: f,
|
29210
29218
|
ref: N
|
29211
29219
|
}
|
@@ -29219,7 +29227,7 @@ const KD = (e) => {
|
|
29219
29227
|
style: oe.negativeGrey,
|
29220
29228
|
dataTestId: "clear-search",
|
29221
29229
|
ariaLabel: "Clear search",
|
29222
|
-
onClick:
|
29230
|
+
onClick: x,
|
29223
29231
|
showAriaLabelInTippy: !1
|
29224
29232
|
}
|
29225
29233
|
) }) : u && /* @__PURE__ */ t.jsx("kbd", { className: "icon-dim-20 flex bg__primary border__primary br-2 shadow__key fs-12 lh-20 cn-7 dc__no-shrink dc__position-abs search-bar__kbd-shortcut", children: u })
|
@@ -29340,7 +29348,7 @@ const Pn = ({
|
|
29340
29348
|
isKebab: d = !1,
|
29341
29349
|
dataTestId: u = ""
|
29342
29350
|
}) => {
|
29343
|
-
const [m, p] = Be.useState(n), [_, h] = Be.useState(!1), [E,
|
29351
|
+
const [m, p] = Be.useState(n), [_, h] = Be.useState(!1), [E, x] = Be.useState(""), [g, f] = Be.useState(!1);
|
29344
29352
|
useEffectAfterMount(() => {
|
29345
29353
|
m !== n && h(!1);
|
29346
29354
|
}, [m]), useEffectAfterMount(() => {
|
@@ -29363,10 +29371,10 @@ const Pn = ({
|
|
29363
29371
|
popupOpen: _,
|
29364
29372
|
valueComparator: a,
|
29365
29373
|
searchString: E,
|
29366
|
-
search:
|
29374
|
+
search: x,
|
29367
29375
|
handleClick: N,
|
29368
29376
|
disabled: o,
|
29369
|
-
loading:
|
29377
|
+
loading: g,
|
29370
29378
|
setLoading: f
|
29371
29379
|
},
|
29372
29380
|
children: /* @__PURE__ */ t.jsxs(jt, { onToggleCallback: (R) => h(R), autoClose: _, children: [
|
@@ -29382,7 +29390,7 @@ const Pn = ({
|
|
29382
29390
|
}
|
29383
29391
|
),
|
29384
29392
|
_ && A,
|
29385
|
-
/* @__PURE__ */ t.jsx(jt.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children:
|
29393
|
+
/* @__PURE__ */ t.jsx(jt.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children: g ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
29386
29394
|
b === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
|
29387
29395
|
S
|
29388
29396
|
] }) })
|