@devtron-labs/devtron-fe-common-lib 1.23.5-pre-2 → 1.23.5-pre-3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { o as e } from "./rolldown-runtime-BETGA6I9.js";
2
- import { $a as t, $i as n, $l as r, $n as i, $o as a, $r as o, $t as s, $u as c, Ad as l, Ai as u, Ao as d, Ar as f, As as p, At as m, Au as h, Ba as g, Bn as _, Bo as v, Br as y, Bs as b, Bt as x, Bu as S, Ci as C, Co as w, Cr as T, Cs as E, Ct as D, Cu as O, Di as k, Do as A, Dr as j, Ds as M, Dt as ee, Du as te, Ea as ne, Ed as re, Ei as ie, Eo as ae, Er as oe, Es as se, Et as ce, Eu as le, Fa as ue, Fi as de, Fo as fe, Fr as pe, Fs as me, Ft as he, Fu as ge, Ga as _e, Gi as ve, Gn as ye, Go as be, Gr as xe, Gt as Se, Gu as Ce, Ha as we, Hn as Te, Ho as Ee, Hr as De, Ht as Oe, Hu as ke, Ia as Ae, Ii as je, Io as Me, Ir as Ne, Is as Pe, It as Fe, Iu as Ie, Ja as Le, Ji as Re, Jn as N, Jo as ze, Jr as Be, Jt as Ve, Ju as He, Ka as Ue, Ki as We, Kn as Ge, Ko as Ke, Kr as qe, Kt as Je, Ku as Ye, La as Xe, Li as Ze, Lo as Qe, Lr as $e, Ls as et, Lt as tt, Lu as nt, Ma as rt, Md as it, Mi as at, Mo as ot, Mr as st, Ms as P, Mt as ct, Mu as lt, Na as ut, Ni as dt, No as ft, Nr as pt, Ns as mt, Nt as ht, Nu as gt, Oi as _t, Oo as vt, Or as yt, Os as bt, Ot as xt, Ou as St, Pa as Ct, Pi as wt, Po as Tt, Pr as Et, Ps as Dt, Pt as Ot, Pu as kt, Qa as At, Qi as jt, Ql as Mt, Qn as F, Qo as Nt, Qr as Pt, Qt as Ft, Qu as It, Ra as Lt, Ri as Rt, Rn as zt, Ro as Bt, Rr as Vt, Rs as Ht, Rt as Ut, Ru as Wt, Sd as Gt, Si as Kt, Sn as qt, So as Jt, Sr as Yt, Ss as Xt, St as Zt, Su as Qt, Td as $t, Ti as en, To as tn, Tr as nn, Ts as rn, Tt as an, Tu as on, Ua as sn, Un as cn, Uo as ln, Ur as un, Ut as dn, Uu as fn, Va as pn, Vi as mn, Vn as hn, Vo as gn, Vr as _n, Vt as vn, Vu as yn, Wa as bn, Wi as I, Wn as xn, Wo as Sn, Wr as Cn, Wt as wn, Wu as Tn, Xa as En, Xi as Dn, Xn as L, Xo as On, Xr as kn, Xt as An, Xu as jn, Ya as Mn, Yi as Nn, Yn as Pn, Yo as Fn, Yr as In, Yt as Ln, Yu as Rn, Za as zn, Zi as Bn, Zl as Vn, Zn as R, Zo as Hn, Zr as Un, Zt as z, Zu as Wn, _d as Gn, _i as Kn, _n as qn, _o as Jn, _r as Yn, _s as Xn, _t as Zn, _u as Qn, a as $n, aa as er, ad as tr, ai as nr, an as rr, ao as ir, ar, as as or, au as sr, bd as cr, bi as lr, bn as ur, bo as dr, br as fr, bs as pr, bt as mr, bu as hr, c as gr, ca as _r, cd as vr, ci as yr, cn as br, co as xr, cr as Sr, cs as Cr, cu as wr, da as Tr, dd as Er, di as Dr, dn as Or, do as kr, dr as Ar, ds as jr, dt as Mr, du as Nr, ea as Pr, ed as Fr, ei as Ir, en as Lr, eo as Rr, er as zr, es as Br, eu as Vr, fa as Hr, fd as Ur, fi as Wr, fn as Gr, fo as B, fr as Kr, fs as qr, ft as Jr, fu as Yr, gd as Xr, gi as Zr, gn as Qr, go as $r, gr as ei, gs as ti, gt as ni, gu as ri, hd as ii, hi as ai, hl as oi, hn as si, ho as ci, hr as li, hs as ui, ht as di, hu as fi, i as pi, ia as mi, id as hi, ii as gi, in as _i, io as V, ir as vi, is as yi, iu as bi, ja as xi, ji as Si, jo as Ci, jr as wi, js as Ti, jt as Ei, ju as H, kd as Di, ki as Oi, ko as ki, kr as Ai, ks as ji, kt as Mi, ku as Ni, l as Pi, la as Fi, ld as Ii, li as Li, ln as U, lo as Ri, lr as zi, ls as Bi, lt as Vi, lu as Hi, ma as Ui, md as Wi, mi as Gi, mn as Ki, mo as qi, mr as Ji, ms as Yi, mt as Xi, mu as Zi, n as Qi, na as $i, nd as ea, ni as ta, nn as na, no as ra, nr as ia, ns as aa, nu as oa, o as sa, oa as ca, od as la, oi as ua, on as da, oo as fa, or as pa, os as ma, ou as ha, pa as ga, pd as _a, pi as va, pn as ya, po as ba, pr as xa, ps as Sa, pt as Ca, pu as wa, qa as Ta, qi as Ea, ql as Da, qo as Oa, qr as ka, qt as Aa, qu as ja, r as Ma, ra as Na, rd as Pa, ri as Fa, rn as Ia, ro as La, rr as Ra, rs as za, ru as Ba, s as Va, sa as Ha, sd as Ua, si as Wa, sn as Ga, so as Ka, sr as qa, ss as Ja, su as Ya, t as W, ta as Xa, td as Za, ti as Qa, tn as $a, to as eo, tr as to, ts as no, tu as ro, u as io, ua as ao, ud as oo, ui as so, un as co, uo as lo, ur as uo, us as fo, ut as po, uu as mo, vd as ho, vi as go, vn as _o, vo, vr as yo, vs as bo, vt as xo, vu as So, wi as Co, wo, wr as To, ws as Eo, wt as Do, wu as Oo, xd as ko, xi as Ao, xn as jo, xo as Mo, xr as No, xs as Po, xt as Fo, xu as Io, yd as Lo, yi as Ro, yn as zo, yo as Bo, yr as Vo, ys as Ho, yt as Uo, yu as Wo, za as Go, zi as Ko, zn as qo, zo as Jo, zr as Yo, zs as Xo, zt as Zo, zu as Qo } from "./@code-editor-BOF1j8j2.js";
3
- import { $ as $o, A as es, B as ts, C as ns, D as rs, E as is, F as as, G as os, H as ss, I as cs, J as ls, K as us, L as ds, M as fs, N as ps, O as ms, P as hs, Q as gs, R as _s, S as vs, T as ys, U as bs, V as xs, W as Ss, Y as Cs, Z as ws, _ as Ts, a as Es, at as Ds, b as Os, c as ks, ct as As, d as js, et as Ms, f as Ns, g as Ps, h as Fs, i as Is, it as Ls, j as Rs, k as zs, l as Bs, lt as Vs, m as Hs, n as Us, nt as Ws, o as Gs, ot as Ks, p as qs, q as Js, r as Ys, rt as Xs, s as Zs, st as Qs, t as $s, tt as ec, u as tc, v as nc, w as rc, x as ic, y as ac, z as oc } from "./@common-rjsf-C9EfLUzX.js";
4
- import { a as sc, i as cc, n as lc, o as uc, r as dc, t as fc } from "./@framer-motion-tEFaGTol.js";
5
- import { t as pc } from "./@react-virtualized-sticky-tree-D7r74210.js";
6
- import { $ as mc, A as hc, B as gc, C as _c, D as vc, E as yc, F as bc, G as xc, H as Sc, I as Cc, J as wc, K as Tc, L as Ec, M as Dc, N as Oc, O as kc, P as Ac, Q as jc, R as Mc, S as Nc, T as Pc, U as Fc, V as Ic, W as Lc, X as Rc, Y as zc, Z as Bc, _ as Vc, b as Hc, c as Uc, d as Wc, et as Gc, f as Kc, g as qc, h as Jc, j as Yc, k as Xc, l as Zc, m as Qc, nt as $c, o as el, p as tl, q as nl, s as rl, tt as il, u as al, v as ol, w as sl, x as cl, y as ll, z as ul } from "./@vendor-BB0CVf6T.js";
7
- import { a as dl, c as fl, i as pl, l as ml, n as hl, r as gl, s as _l, t as vl } from "./@src-assets-images-nuI9vAgb.js";
2
+ import { $a as t, $i as n, $l as r, $n as i, $o as a, $r as o, $t as s, $u as c, Ad as l, Ai as u, Ao as d, Ar as f, As as p, At as m, Au as h, Ba as g, Bn as _, Bo as v, Br as y, Bs as b, Bt as x, Bu as S, Ci as C, Co as w, Cr as T, Cs as E, Ct as D, Cu as O, Di as k, Do as A, Dr as j, Ds as M, Dt as ee, Du as te, Ea as ne, Ed as re, Ei as ie, Eo as ae, Er as oe, Es as se, Et as ce, Eu as le, Fa as ue, Fi as de, Fo as fe, Fr as pe, Fs as me, Ft as he, Fu as ge, Ga as _e, Gi as ve, Gn as ye, Go as be, Gr as xe, Gt as Se, Gu as Ce, Ha as we, Hn as Te, Ho as Ee, Hr as De, Ht as Oe, Hu as ke, Ia as Ae, Ii as je, Io as Me, Ir as Ne, Is as Pe, It as Fe, Iu as Ie, Ja as Le, Ji as Re, Jn as N, Jo as ze, Jr as Be, Jt as Ve, Ju as He, Ka as Ue, Ki as We, Kn as Ge, Ko as Ke, Kr as qe, Kt as Je, Ku as Ye, La as Xe, Li as Ze, Lo as Qe, Lr as $e, Ls as et, Lt as tt, Lu as nt, Ma as rt, Md as it, Mi as at, Mo as ot, Mr as st, Ms as P, Mt as ct, Mu as lt, Na as ut, Ni as dt, No as ft, Nr as pt, Ns as mt, Nt as ht, Nu as gt, Oi as _t, Oo as vt, Or as yt, Os as bt, Ot as xt, Ou as St, Pa as Ct, Pi as wt, Po as Tt, Pr as Et, Ps as Dt, Pt as Ot, Pu as kt, Qa as At, Qi as jt, Ql as Mt, Qn as F, Qo as Nt, Qr as Pt, Qt as Ft, Qu as It, Ra as Lt, Ri as Rt, Rn as zt, Ro as Bt, Rr as Vt, Rs as Ht, Rt as Ut, Ru as Wt, Sd as Gt, Si as Kt, Sn as qt, So as Jt, Sr as Yt, Ss as Xt, St as Zt, Su as Qt, Td as $t, Ti as en, To as tn, Tr as nn, Ts as rn, Tt as an, Tu as on, Ua as sn, Un as cn, Uo as ln, Ur as un, Ut as dn, Uu as fn, Va as pn, Vi as mn, Vn as hn, Vo as gn, Vr as _n, Vt as vn, Vu as yn, Wa as bn, Wi as I, Wn as xn, Wo as Sn, Wr as Cn, Wt as wn, Wu as Tn, Xa as En, Xi as Dn, Xn as L, Xo as On, Xr as kn, Xt as An, Xu as jn, Ya as Mn, Yi as Nn, Yn as Pn, Yo as Fn, Yr as In, Yt as Ln, Yu as Rn, Za as zn, Zi as Bn, Zl as Vn, Zn as R, Zo as Hn, Zr as Un, Zt as z, Zu as Wn, _d as Gn, _i as Kn, _n as qn, _o as Jn, _r as Yn, _s as Xn, _t as Zn, _u as Qn, a as $n, aa as er, ad as tr, ai as nr, an as rr, ao as ir, ar, as as or, au as sr, bd as cr, bi as lr, bn as ur, bo as dr, br as fr, bs as pr, bt as mr, bu as hr, c as gr, ca as _r, cd as vr, ci as yr, cn as br, co as xr, cr as Sr, cs as Cr, cu as wr, da as Tr, dd as Er, di as Dr, dn as Or, do as kr, dr as Ar, ds as jr, dt as Mr, du as Nr, ea as Pr, ed as Fr, ei as Ir, en as Lr, eo as Rr, er as zr, es as Br, eu as Vr, fa as Hr, fd as Ur, fi as Wr, fn as Gr, fo as B, fr as Kr, fs as qr, ft as Jr, fu as Yr, gd as Xr, gi as Zr, gn as Qr, go as $r, gr as ei, gs as ti, gt as ni, gu as ri, hd as ii, hi as ai, hl as oi, hn as si, ho as ci, hr as li, hs as ui, ht as di, hu as fi, i as pi, ia as mi, id as hi, ii as gi, in as _i, io as V, ir as vi, is as yi, iu as bi, ja as xi, ji as Si, jo as Ci, jr as wi, js as Ti, jt as Ei, ju as H, kd as Di, ki as Oi, ko as ki, kr as Ai, ks as ji, kt as Mi, ku as Ni, l as Pi, la as Fi, ld as Ii, li as Li, ln as U, lo as Ri, lr as zi, ls as Bi, lt as Vi, lu as Hi, ma as Ui, md as Wi, mi as Gi, mn as Ki, mo as qi, mr as Ji, ms as Yi, mt as Xi, mu as Zi, n as Qi, na as $i, nd as ea, ni as ta, nn as na, no as ra, nr as ia, ns as aa, nu as oa, o as sa, oa as ca, od as la, oi as ua, on as da, oo as fa, or as pa, os as ma, ou as ha, pa as ga, pd as _a, pi as va, pn as ya, po as ba, pr as xa, ps as Sa, pt as Ca, pu as wa, qa as Ta, qi as Ea, ql as Da, qo as Oa, qr as ka, qt as Aa, qu as ja, r as Ma, ra as Na, rd as Pa, ri as Fa, rn as Ia, ro as La, rr as Ra, rs as za, ru as Ba, s as Va, sa as Ha, sd as Ua, si as Wa, sn as Ga, so as Ka, sr as qa, ss as Ja, su as Ya, t as W, ta as Xa, td as Za, ti as Qa, tn as $a, to as eo, tr as to, ts as no, tu as ro, u as io, ua as ao, ud as oo, ui as so, un as co, uo as lo, ur as uo, us as fo, ut as po, uu as mo, vd as ho, vi as go, vn as _o, vo, vr as yo, vs as bo, vt as xo, vu as So, wi as Co, wo, wr as To, ws as Eo, wt as Do, wu as Oo, xd as ko, xi as Ao, xn as jo, xo as Mo, xr as No, xs as Po, xt as Fo, xu as Io, yd as Lo, yi as Ro, yn as zo, yo as Bo, yr as Vo, ys as Ho, yt as Uo, yu as Wo, za as Go, zi as Ko, zn as qo, zo as Jo, zr as Yo, zs as Xo, zt as Zo, zu as Qo } from "./@code-editor-BAM7bZOw.js";
3
+ import { $ as $o, A as es, B as ts, C as ns, D as rs, E as is, F as as, G as os, H as ss, I as cs, J as ls, K as us, L as ds, M as fs, N as ps, O as ms, P as hs, Q as gs, R as _s, S as vs, T as ys, U as bs, V as xs, W as Ss, Y as Cs, Z as ws, _ as Ts, a as Es, at as Ds, b as Os, c as ks, ct as As, d as js, et as Ms, f as Ns, g as Ps, h as Fs, i as Is, it as Ls, j as Rs, k as zs, l as Bs, lt as Vs, m as Hs, n as Us, nt as Ws, o as Gs, ot as Ks, p as qs, q as Js, r as Ys, rt as Xs, s as Zs, st as Qs, t as $s, tt as ec, u as tc, v as nc, w as rc, x as ic, y as ac, z as oc } from "./@common-rjsf-Bx2aOoF1.js";
4
+ import { a as sc, i as cc, n as lc, o as uc, r as dc, t as fc } from "./@framer-motion-CJHeDr_5.js";
5
+ import { t as pc } from "./@react-virtualized-sticky-tree-Cru7sOnT.js";
6
+ import { $ as mc, A as hc, B as gc, C as _c, D as vc, E as yc, F as bc, G as xc, H as Sc, I as Cc, J as wc, K as Tc, L as Ec, M as Dc, N as Oc, O as kc, P as Ac, Q as jc, R as Mc, S as Nc, T as Pc, U as Fc, V as Ic, W as Lc, X as Rc, Y as zc, Z as Bc, _ as Vc, b as Hc, c as Uc, d as Wc, et as Gc, f as Kc, g as qc, h as Jc, j as Yc, k as Xc, l as Zc, m as Qc, nt as $c, o as el, p as tl, q as nl, s as rl, tt as il, u as al, v as ol, w as sl, x as cl, y as ll, z as ul } from "./@vendor-M2R6W7KJ.js";
7
+ import { a as dl, c as fl, i as pl, l as ml, n as hl, r as gl, s as _l, t as vl } from "./@src-assets-images-B2NAtpLS.js";
8
8
  import yl, { Component as bl, Fragment as xl, cloneElement as Sl, createContext as Cl, createElement as wl, createRef as Tl, memo as El, useCallback as Dl, useContext as Ol, useEffect as G, useLayoutEffect as kl, useMemo as K, useRef as q, useState as J } from "react";
9
9
  import { createPortal as Al } from "react-dom";
10
10
  import jl from "dompurify";
@@ -38,9 +38,7 @@ var Y = re(), su = ({ tooltipContent: e }) => e ? /* @__PURE__ */ (0, Y.jsxs)("d
38
38
  children: "Click to add here"
39
39
  });
40
40
  function cu({ position: e, addCDButtons: t, endNode: n, startNode: r, handleAddCD: i, tooltipContent: a }) {
41
- let o = e === c.RIGHT ? n : r, s = () => {
42
- i(e);
43
- };
41
+ let o = e === c.RIGHT ? n : r;
44
42
  return t?.includes(e) ? /* @__PURE__ */ (0, Y.jsx)(ko, {
45
43
  placement: "top",
46
44
  content: /* @__PURE__ */ (0, Y.jsx)(su, { tooltipContent: a }),
@@ -55,7 +53,9 @@ function cu({ position: e, addCDButtons: t, endNode: n, startNode: r, handleAddC
55
53
  fill: "none",
56
54
  xmlns: "http://www.w3.org/2000/svg",
57
55
  "data-testid": `add-cd-to-${e}`,
58
- onClick: s,
56
+ onClick: () => {
57
+ i(e);
58
+ },
59
59
  className: "dc__outline-none-imp",
60
60
  children: [/* @__PURE__ */ (0, Y.jsx)("rect", {
61
61
  width: "20",
@@ -710,14 +710,14 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
710
710
  children: /* @__PURE__ */ (0, Y.jsx)("span", { className: "w-100px h-18 shimmer" })
711
711
  })]
712
712
  }), Jd = ({ dataTestId: e, metricTitle: t, metricValue: n, metricUnit: r, valueOutOf: i, iconName: a, subtitle: o, redirectionLink: s, tooltipContent: c, subtitleRedirection: l }) => {
713
- let [u, d] = J(!1), f = () => d(!0), p = () => d(!1);
713
+ let [u, d] = J(!1);
714
714
  return /* @__PURE__ */ (0, Y.jsx)(Ca, {
715
715
  condition: !!s,
716
716
  wrap: Kd(s),
717
717
  children: /* @__PURE__ */ (0, Y.jsxs)(Ui.div, {
718
718
  "data-testid": e,
719
- onHoverStart: f,
720
- onHoverEnd: p,
719
+ onHoverStart: () => d(!0),
720
+ onHoverEnd: () => d(!1),
721
721
  className: `flexbox-col br-8 bg__primary border__secondary cn-9 ${u ? "shadow__card--10" : ""}`,
722
722
  children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
723
723
  className: "flexbox dc__gap-12 p-16 dc__content-space",
@@ -1494,10 +1494,6 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1494
1494
  C(!0);
1495
1495
  }, E = () => {
1496
1496
  c || (C(!1), (b.current?.querySelector("button"))?.blur(), b.current?.blur());
1497
- }, D = (e) => {
1498
- !l && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C(!0)), s?.(e, l, E);
1499
- }, O = (e) => o?.(e, l, E), k = () => {
1500
- E();
1501
1497
  };
1502
1498
  return kl(() => {
1503
1499
  if (!l || !_ || !b.current || !x.current || !S.current) return;
@@ -1534,7 +1530,9 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1534
1530
  triggerProps: {
1535
1531
  ref: b,
1536
1532
  onClick: w,
1537
- onKeyDown: D,
1533
+ onKeyDown: (e) => {
1534
+ !l && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C(!0)), s?.(e, l, E);
1535
+ },
1538
1536
  "aria-haspopup": "listbox",
1539
1537
  "aria-expanded": l,
1540
1538
  className: "flex",
@@ -1548,7 +1546,9 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1548
1546
  },
1549
1547
  overlayProps: {
1550
1548
  hasClearBackground: !0,
1551
- onClick: k,
1549
+ onClick: () => {
1550
+ E();
1551
+ },
1552
1552
  onEscape: E,
1553
1553
  onBackdropMount: v
1554
1554
  },
@@ -1558,7 +1558,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1558
1558
  role: "listbox",
1559
1559
  className: `dc__position-abs dc__outline-none-imp ${i === "menu" ? "bg__menu--primary shadow__menu" : "bg__overlay--primary shadow__overlay"} border__primary br-6 dc__overflow-hidden ${y ? "dc_width-max-content dc__mxw-250" : ""}`,
1560
1560
  onClick: U,
1561
- onKeyDown: O,
1561
+ onKeyDown: (e) => o?.(e, l, E),
1562
1562
  style: {
1563
1563
  width: y ? void 0 : `${r}px`,
1564
1564
  ...sp({ position: d }),
@@ -2222,7 +2222,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
2222
2222
  })] })
2223
2223
  }), t]
2224
2224
  }), Mp = ({ disabled: e, handleCancel: t, editProfile: n, loading: r }) => {
2225
- let i = e ? xf.SUBMIT_BUTTON_TIPPY.INVALID_INPUT : xf.SUBMIT_BUTTON_TIPPY.REQUEST_IN_PROGRESS, a = () => n ? xf.EDIT_SUBMIT : xf.SAVE_SUBMIT;
2225
+ let i = e ? xf.SUBMIT_BUTTON_TIPPY.INVALID_INPUT : xf.SUBMIT_BUTTON_TIPPY.REQUEST_IN_PROGRESS;
2226
2226
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
2227
2227
  className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start",
2228
2228
  children: [/* @__PURE__ */ (0, Y.jsx)(Ca, {
@@ -2241,7 +2241,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
2241
2241
  className: "cta submit h-32 flex",
2242
2242
  disabled: e || r,
2243
2243
  "data-testid": Of.SUBMIT_BUTTON,
2244
- children: r ? /* @__PURE__ */ (0, Y.jsx)(rt, { size: 16 }) : a()
2244
+ children: r ? /* @__PURE__ */ (0, Y.jsx)(rt, { size: 16 }) : n ? xf.EDIT_SUBMIT : xf.SAVE_SUBMIT
2245
2245
  })
2246
2246
  })
2247
2247
  }), t && /* @__PURE__ */ (0, Y.jsx)("button", {
@@ -3689,9 +3689,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
3689
3689
  strokeLinejoin: "round"
3690
3690
  })
3691
3691
  }), ch = /* @__PURE__ */ e(il(), 1), lh = ({ isSorted: e, triggerSorting: t, sortOrder: n, title: r, disabled: i, isSortable: a = !0, showTippyOnTruncate: o = !1, id: s, handleResize: c, isResizable: l, infoTooltipText: u }) => {
3692
- let d = q(null), f = !!(l && s && c), p = () => a ? e ? /* @__PURE__ */ (0, Y.jsx)(sh, { className: `icon-dim-12 mw-12 scn-7 dc__no-shrink dc__transition--transform ${n === Wt.DESC ? "" : "dc__flip-180"}` }) : /* @__PURE__ */ (0, Y.jsx)(oh, { className: "icon-dim-12 mw-12 scn-7 dc__no-shrink" }) : null, m = (e, t) => {
3693
- f && c(s, t.deltaX);
3694
- };
3692
+ let d = q(null), f = !!(l && s && c);
3695
3693
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
3696
3694
  className: `flex dc__content-space dc__gap-6 dc__position-rel ${l ? "w-100 h-100 sortable-table-header__container" : ""}`,
3697
3695
  children: [/* @__PURE__ */ (0, Y.jsxs)("button", {
@@ -3719,7 +3717,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
3719
3717
  }
3720
3718
  })]
3721
3719
  })
3722
- }), p()]
3720
+ }), a ? e ? /* @__PURE__ */ (0, Y.jsx)(sh, { className: `icon-dim-12 mw-12 scn-7 dc__no-shrink dc__transition--transform ${n === Wt.DESC ? "" : "dc__flip-180"}` }) : /* @__PURE__ */ (0, Y.jsx)(oh, { className: "icon-dim-12 mw-12 scn-7 dc__no-shrink" }) : null]
3723
3721
  }), f && /* @__PURE__ */ (0, Y.jsx)(ch.default, {
3724
3722
  nodeRef: d,
3725
3723
  handle: ".sortable-table-header__resize-btn",
@@ -3729,7 +3727,9 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
3729
3727
  y: 0
3730
3728
  },
3731
3729
  axis: "none",
3732
- onDrag: m,
3730
+ onDrag: (e, t) => {
3731
+ f && c(s, t.deltaX);
3732
+ },
3733
3733
  bounds: {
3734
3734
  top: 0,
3735
3735
  bottom: 0
@@ -5645,7 +5645,7 @@ function D_(e, t, n) {
5645
5645
  }
5646
5646
  let a = t;
5647
5647
  for (; a.length > 0;) a.forEach((e) => {
5648
- (e.childNodes ?? []).sort((e, t) => e.name < t.name ? -1 : e.name > t.name ? 1 : 0);
5648
+ (e.childNodes ?? []).sort((e, t) => e.name < t.name ? -1 : +(e.name > t.name));
5649
5649
  }), a.filter((e) => e.kind.toLowerCase() == Po.Pod.toLowerCase()).map((e) => {
5650
5650
  let t = (n || x_.getValue().resourceTree?.podMetadata)?.filter((t) => t.uid === e.uid)[0], r = (t?.initContainers || []).map((t) => {
5651
5651
  let n = {};
@@ -6302,24 +6302,7 @@ var cv = (e) => {
6302
6302
  }, `${e.resourceKind}/${e.resourceName}`))
6303
6303
  })]
6304
6304
  }) : null]
6305
- }) : null, m = !!c.subSteps?.length || e === P.APP_HEALTH && Lg.includes(c.icon) || (e === P.GIT_COMMIT || e === P.ARGOCD_SYNC) && c.icon === "failed", h = () => l ? null : /* @__PURE__ */ (0, Y.jsxs)("div", {
6306
- className: "bg__primary en-2 detail-tab_border bw-1",
6307
- children: [c.timelineStatus && /* @__PURE__ */ (0, Y.jsxs)("div", {
6308
- className: `flex left pt-8 pl-12 pb-8 lh-20 ${c.icon === "inprogress" ? "bcy-2" : "bcr-1"}`,
6309
- children: [c.timelineStatus, (n.deploymentStatus === B.TIMED_OUT || n.deploymentStatus === B.UNABLE_TO_FETCH) && /* @__PURE__ */ (0, Y.jsx)(N, {
6310
- dataTestId: "manual-sync-resource-status",
6311
- text: "Try now",
6312
- variant: R.text,
6313
- size: V.xxs,
6314
- onClick: d,
6315
- isLoading: o
6316
- })]
6317
- }), e === P.APP_HEALTH ? /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(PS, {
6318
- appDetails: r,
6319
- filterHealthyNodes: !0,
6320
- isCardLayout: !1
6321
- }) }) : p()]
6322
- });
6305
+ }) : null, m = !!c.subSteps?.length || e === P.APP_HEALTH && Lg.includes(c.icon) || (e === P.GIT_COMMIT || e === P.ARGOCD_SYNC) && c.icon === "failed";
6323
6306
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
6324
6307
  /* @__PURE__ */ (0, Y.jsx)("div", {
6325
6308
  className: "bw-1 en-2",
@@ -6364,7 +6347,24 @@ var cv = (e) => {
6364
6347
  })]
6365
6348
  })
6366
6349
  }),
6367
- h(),
6350
+ l ? null : /* @__PURE__ */ (0, Y.jsxs)("div", {
6351
+ className: "bg__primary en-2 detail-tab_border bw-1",
6352
+ children: [c.timelineStatus && /* @__PURE__ */ (0, Y.jsxs)("div", {
6353
+ className: `flex left pt-8 pl-12 pb-8 lh-20 ${c.icon === "inprogress" ? "bcy-2" : "bcr-1"}`,
6354
+ children: [c.timelineStatus, (n.deploymentStatus === B.TIMED_OUT || n.deploymentStatus === B.UNABLE_TO_FETCH) && /* @__PURE__ */ (0, Y.jsx)(N, {
6355
+ dataTestId: "manual-sync-resource-status",
6356
+ text: "Try now",
6357
+ variant: R.text,
6358
+ size: V.xxs,
6359
+ onClick: d,
6360
+ isLoading: o
6361
+ })]
6362
+ }), e === P.APP_HEALTH ? /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(PS, {
6363
+ appDetails: r,
6364
+ filterHealthyNodes: !0,
6365
+ isCardLayout: !1
6366
+ }) }) : p()]
6367
+ }),
6368
6368
  !t && /* @__PURE__ */ (0, Y.jsx)("div", { className: "vertical-connector" })
6369
6369
  ] });
6370
6370
  }, _v = ({ deploymentStatusDetailsBreakdownData: e, isVirtualEnvironment: t, appDetails: n, rootClassName: r = "", deploymentAppType: i }) => {
@@ -8506,11 +8506,7 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8506
8506
  }), x = () => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
8507
8507
  className: "flex left dc__content-space",
8508
8508
  children: [v(u.data["target checkout"]), y()]
8509
- }), p()] }), S = () => {
8510
- if (!l) return null;
8511
- let e = u.eventactiontype === Hy.MERGED;
8512
- return i.includes(Wo.GITLAB) ? e ? x() : b() : e ? b() : x();
8513
- };
8509
+ }), p()] });
8514
8510
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
8515
8511
  className: "git-commit-info-generic__wrapper cn-9 fs-12",
8516
8512
  children: [a && (l || c.commit) && !!i && /* @__PURE__ */ (0, Y.jsx)(qy, {
@@ -8568,7 +8564,11 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8568
8564
  })]
8569
8565
  }) : null]
8570
8566
  })
8571
- ] }), S()]
8567
+ ] }), (() => {
8568
+ if (!l) return null;
8569
+ let e = u.eventactiontype === Hy.MERGED;
8570
+ return i.includes(Wo.GITLAB) ? e ? x() : b() : e ? b() : x();
8571
+ })()]
8572
8572
  })]
8573
8573
  });
8574
8574
  }, Yy = ({ shortcutCombo: e = ["Shift", "F"], showOnlyWhenPathIncludesLogs: t = !0, fullScreenView: n, setFullScreenView: r }) => {
@@ -8782,21 +8782,18 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8782
8782
  })]
8783
8783
  }), t && /* @__PURE__ */ (0, Y.jsxs)("div", {
8784
8784
  className: "flexbox-col dc__gap-4",
8785
- children: [n.map((t, n) => {
8786
- let r = i_({
8785
+ children: [n.map((t, n) => /* @__PURE__ */ (0, Y.jsxs)(eb, { children: [/* @__PURE__ */ (0, Y.jsx)("span", {
8786
+ ref: g,
8787
+ className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
8788
+ "data-contains-match": i_({
8787
8789
  stageIndex: c,
8788
8790
  lineNumberInsideStage: n
8789
- }) === d;
8790
- return /* @__PURE__ */ (0, Y.jsxs)(eb, { children: [/* @__PURE__ */ (0, Y.jsx)("span", {
8791
- ref: g,
8792
- className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
8793
- "data-contains-match": r,
8794
- children: n + 1
8795
- }), /* @__PURE__ */ (0, Y.jsx)("pre", {
8796
- className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
8797
- dangerouslySetInnerHTML: { __html: jl.sanitize(t) }
8798
- })] }, `logs-${e}-${i}-${n}`);
8799
- }), l && /* @__PURE__ */ (0, Y.jsxs)(eb, { children: [/* @__PURE__ */ (0, Y.jsx)("span", {}), /* @__PURE__ */ (0, Y.jsx)("div", { className: "dc__loading-dots text__white" })] })]
8791
+ }) === d,
8792
+ children: n + 1
8793
+ }), /* @__PURE__ */ (0, Y.jsx)("pre", {
8794
+ className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
8795
+ dangerouslySetInnerHTML: { __html: jl.sanitize(t) }
8796
+ })] }, `logs-${e}-${i}-${n}`)), l && /* @__PURE__ */ (0, Y.jsxs)(eb, { children: [/* @__PURE__ */ (0, Y.jsx)("span", {}), /* @__PURE__ */ (0, Y.jsx)("div", { className: "dc__loading-dots text__white" })] })]
8800
8797
  })]
8801
8798
  });
8802
8799
  }, nb = (e) => /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -9795,24 +9792,14 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9795
9792
  });
9796
9793
  }, _ = () => e === lg.CI || e === lg.GROUP_CI ? d : e === lg.GROUP_CD ? f : p, v = t?.find((e) => e.value === _()) ?? null;
9797
9794
  t?.sort((e, t) => e.label > t.label ? 1 : -1);
9798
- let y = t?.filter((e) => !e.deploymentAppDeleteRequest), b = () => e === lg.GROUP_CI || e === lg.GROUP_CD ? Sg.APPLICATION : e === lg.CI ? Sg.PIPELINE : Sg.ENVIRONMENT, x = (t) => (t.selectProps.styles.option = _b(), /* @__PURE__ */ (0, Y.jsx)(Nl.Option, {
9799
- ...t,
9800
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
9801
- className: "flexbox dc dc__gap-4",
9802
- children: [(e === lg.CI || e === lg.GROUP_CI) && /* @__PURE__ */ (0, Y.jsx)(I, {
9803
- name: t.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
9804
- size: 20,
9805
- color: null
9806
- }), /* @__PURE__ */ (0, Y.jsx)("span", { children: t.label })]
9807
- })
9808
- }));
9795
+ let y = t?.filter((e) => !e.deploymentAppDeleteRequest);
9809
9796
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [s || /* @__PURE__ */ (0, Y.jsxs)("div", {
9810
9797
  className: "select-pipeline-wrapper w-100 pl-16 pr-16 dc__overflow-hidden dc__border-bottom-n1",
9811
9798
  children: [/* @__PURE__ */ (0, Y.jsxs)("label", {
9812
9799
  htmlFor: "history-pipeline-selector",
9813
9800
  className: "form__label",
9814
9801
  "data-testid": "select-history-heading",
9815
- children: ["Select ", b()]
9802
+ children: ["Select ", e === lg.GROUP_CI || e === lg.GROUP_CD ? Sg.APPLICATION : e === lg.CI ? Sg.PIPELINE : Sg.ENVIRONMENT]
9816
9803
  }), /* @__PURE__ */ (0, Y.jsx)(Ml, {
9817
9804
  classNamePrefix: "history-pipeline-dropdown",
9818
9805
  value: v,
@@ -9820,7 +9807,17 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9820
9807
  onChange: h,
9821
9808
  components: {
9822
9809
  IndicatorSeparator: null,
9823
- Option: x,
9810
+ Option: (t) => (t.selectProps.styles.option = _b(), /* @__PURE__ */ (0, Y.jsx)(Nl.Option, {
9811
+ ...t,
9812
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
9813
+ className: "flexbox dc dc__gap-4",
9814
+ children: [(e === lg.CI || e === lg.GROUP_CI) && /* @__PURE__ */ (0, Y.jsx)(I, {
9815
+ name: t.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
9816
+ size: 20,
9817
+ color: null
9818
+ }), /* @__PURE__ */ (0, Y.jsx)("span", { children: t.label })]
9819
+ })
9820
+ })),
9824
9821
  DropdownIndicator: Xi
9825
9822
  },
9826
9823
  styles: Cg,
@@ -11249,7 +11246,7 @@ var Px = /* @__PURE__ */ function(e) {
11249
11246
  }) : null,
11250
11247
  !Ce && v && !me && /* @__PURE__ */ (0, Y.jsx)("div", {}),
11251
11248
  i.map(({ label: e, field: t, isSortable: n, size: r, showTippyOnTruncate: i, horizontallySticky: a, infoTooltipText: o }, s) => {
11252
- let c = !!r?.range, { className: l = "", left: u = "" } = a || t === "bulk-action-gutter" ? Kx(Te, s + (Ce ? 1 : 0)) : {};
11249
+ let c = !!r?.range, { className: l = "", left: u = "" } = a || t === "bulk-action-gutter" ? Kx(Te, s + +!!Ce) : {};
11253
11250
  return t === "bulk-action-gutter" ? /* @__PURE__ */ (0, Y.jsx)("div", {
11254
11251
  className: `flex ${l}`,
11255
11252
  style: { left: u },
@@ -17739,9 +17736,7 @@ var FE = class {
17739
17736
  })]
17740
17737
  });
17741
17738
  }, LE = ({ index: e, tagData: t, setTagData: n, removeTag: r, tabIndex: i = 1, suggestedTagsOptions: a, hidePropagateTag: o }) => {
17742
- let s = q(null), c = q(null), l = new FE(), u = (t) => {
17743
- U(t), r(e);
17744
- };
17739
+ let s = q(null), c = q(null), l = new FE();
17745
17740
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
17746
17741
  className: "flexbox mb-8",
17747
17742
  children: [
@@ -17777,7 +17772,9 @@ var FE = class {
17777
17772
  }),
17778
17773
  /* @__PURE__ */ (0, Y.jsx)("div", {
17779
17774
  className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
17780
- onClick: u,
17775
+ onClick: (t) => {
17776
+ U(t), r(e);
17777
+ },
17781
17778
  "data-testid": `delete-tag-${e}`,
17782
17779
  children: /* @__PURE__ */ (0, Y.jsx)(ao, { className: "icon-dim-20 mt-4" })
17783
17780
  })
@@ -18459,79 +18456,76 @@ var FE = class {
18459
18456
  children: e
18460
18457
  })]
18461
18458
  })
18462
- }), dD = ({ exportDataError: e, isLoading: t, initiateDownload: n, handleCancelRequest: r }) => {
18463
- let i = () => e ? /* @__PURE__ */ (0, Y.jsx)(us, {
18464
- title: "Unable to export data",
18465
- description: "Encountered an error while trying to export. Please try again. If error persists then try after\n some time.",
18466
- buttonText: "",
18467
- subTitle: ""
18468
- }) : t ? /* @__PURE__ */ (0, Y.jsx)(xi, {
18469
- size: 32,
18470
- loadingText: "Preparing export...",
18471
- fullHeight: !0,
18472
- children: /* @__PURE__ */ (0, Y.jsx)("span", {
18473
- className: "fs-13 fw-4",
18474
- children: "Please do not reload or press the browser back button."
18475
- })
18476
- }) : /* @__PURE__ */ (0, Y.jsxs)("div", {
18477
- className: "export-success bg__primary flex column cn-9 h-100 lh-20",
18459
+ }), dD = ({ exportDataError: e, isLoading: t, initiateDownload: n, handleCancelRequest: r }) => /* @__PURE__ */ (0, Y.jsx)(nx, {
18460
+ className: "export-to-csv-modal",
18461
+ "data-testid": "export-to-csv-modal",
18462
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
18463
+ className: "modal__body mt-40 p-0",
18478
18464
  children: [
18479
- /* @__PURE__ */ (0, Y.jsx)(I, {
18480
- name: "ic-success",
18481
- color: null,
18482
- size: 32
18483
- }),
18484
- /* @__PURE__ */ (0, Y.jsx)("span", {
18485
- className: "fs-14 fw-6 mt-8",
18486
- children: "Your export is ready"
18465
+ /* @__PURE__ */ (0, Y.jsx)("h2", {
18466
+ className: "cn-9 fw-6 fs-16 m-0 dc__border-bottom px-20 py-12",
18467
+ children: "Export to CSV"
18487
18468
  }),
18488
- /* @__PURE__ */ (0, Y.jsx)("span", {
18489
- className: "fs-13 fw-4",
18490
- children: " If download does not start automatically,"
18469
+ /* @__PURE__ */ (0, Y.jsx)("div", {
18470
+ className: "py-16 flex px-20",
18471
+ children: e ? /* @__PURE__ */ (0, Y.jsx)(us, {
18472
+ title: "Unable to export data",
18473
+ description: "Encountered an error while trying to export. Please try again. If error persists then try after\n some time.",
18474
+ buttonText: "",
18475
+ subTitle: ""
18476
+ }) : t ? /* @__PURE__ */ (0, Y.jsx)(xi, {
18477
+ size: 32,
18478
+ loadingText: "Preparing export...",
18479
+ fullHeight: !0,
18480
+ children: /* @__PURE__ */ (0, Y.jsx)("span", {
18481
+ className: "fs-13 fw-4",
18482
+ children: "Please do not reload or press the browser back button."
18483
+ })
18484
+ }) : /* @__PURE__ */ (0, Y.jsxs)("div", {
18485
+ className: "export-success bg__primary flex column cn-9 h-100 lh-20",
18486
+ children: [
18487
+ /* @__PURE__ */ (0, Y.jsx)(I, {
18488
+ name: "ic-success",
18489
+ color: null,
18490
+ size: 32
18491
+ }),
18492
+ /* @__PURE__ */ (0, Y.jsx)("span", {
18493
+ className: "fs-14 fw-6 mt-8",
18494
+ children: "Your export is ready"
18495
+ }),
18496
+ /* @__PURE__ */ (0, Y.jsx)("span", {
18497
+ className: "fs-13 fw-4",
18498
+ children: " If download does not start automatically,"
18499
+ }),
18500
+ /* @__PURE__ */ (0, Y.jsx)(N, {
18501
+ text: "click here to download manually.",
18502
+ onClick: n,
18503
+ dataTestId: "manual-download",
18504
+ variant: R.text,
18505
+ size: V.medium
18506
+ })
18507
+ ]
18508
+ })
18491
18509
  }),
18492
- /* @__PURE__ */ (0, Y.jsx)(N, {
18493
- text: "click here to download manually.",
18494
- onClick: n,
18495
- dataTestId: "manual-download",
18496
- variant: R.text,
18497
- size: V.medium
18510
+ /* @__PURE__ */ (0, Y.jsx)("div", {
18511
+ className: "flex right dc__gap-12 dc__border-top py-16 px-20",
18512
+ children: /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(N, {
18513
+ variant: R.secondary,
18514
+ size: V.medium,
18515
+ style: L.neutral,
18516
+ onClick: r,
18517
+ text: t ? "Cancel" : "Close",
18518
+ dataTestId: "close-export-csv-button"
18519
+ }), !t && e && /* @__PURE__ */ (0, Y.jsx)(N, {
18520
+ size: V.medium,
18521
+ onClick: n,
18522
+ text: "Retry",
18523
+ dataTestId: "retry-export-csv-button"
18524
+ })] })
18498
18525
  })
18499
18526
  ]
18500
- }), a = () => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(N, {
18501
- variant: R.secondary,
18502
- size: V.medium,
18503
- style: L.neutral,
18504
- onClick: r,
18505
- text: t ? "Cancel" : "Close",
18506
- dataTestId: "close-export-csv-button"
18507
- }), !t && e && /* @__PURE__ */ (0, Y.jsx)(N, {
18508
- size: V.medium,
18509
- onClick: n,
18510
- text: "Retry",
18511
- dataTestId: "retry-export-csv-button"
18512
- })] });
18513
- return /* @__PURE__ */ (0, Y.jsx)(nx, {
18514
- className: "export-to-csv-modal",
18515
- "data-testid": "export-to-csv-modal",
18516
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
18517
- className: "modal__body mt-40 p-0",
18518
- children: [
18519
- /* @__PURE__ */ (0, Y.jsx)("h2", {
18520
- className: "cn-9 fw-6 fs-16 m-0 dc__border-bottom px-20 py-12",
18521
- children: "Export to CSV"
18522
- }),
18523
- /* @__PURE__ */ (0, Y.jsx)("div", {
18524
- className: "py-16 flex px-20",
18525
- children: i()
18526
- }),
18527
- /* @__PURE__ */ (0, Y.jsx)("div", {
18528
- className: "flex right dc__gap-12 dc__border-top py-16 px-20",
18529
- children: a()
18530
- })
18531
- ]
18532
- })
18533
- });
18534
- }, fD = ({ apiPromise: e, fileName: t, triggerElementConfig: n, disabled: r, modalConfig: i, headers: a, downloadRequestId: o }) => {
18527
+ })
18528
+ }), fD = ({ apiPromise: e, fileName: t, triggerElementConfig: n, disabled: r, modalConfig: i, headers: a, downloadRequestId: o }) => {
18535
18529
  let s = q(null), c = q(new AbortController()), [l, u] = J([]), [d, f] = J(null), [p, m] = J(!1), [h, g] = J(null), _ = async () => {
18536
18530
  if (!r) try {
18537
18531
  m(!0), g(null), u(await e({ signal: c.current.signal })), s.current?.link?.click();
@@ -18826,16 +18820,7 @@ var FE = class {
18826
18820
  } catch {
18827
18821
  return e;
18828
18822
  }
18829
- }, f = () => t === "No Defined Description" ? /* @__PURE__ */ (0, Y.jsx)("p", {
18830
- className: "m-0 fs-12 fw-4 lh-18",
18831
- children: t
18832
- }) : /* @__PURE__ */ (0, Y.jsx)("p", {
18833
- className: "m-0 fs-12 fw-4 lh-18 dc__word-break-all",
18834
- dangerouslySetInnerHTML: { __html: jl.sanitize(d(t)) }
18835
- }), p = () => /* @__PURE__ */ (0, Y.jsx)("p", {
18836
- className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
18837
- dangerouslySetInnerHTML: { __html: jl.sanitize(d(e)) }
18838
- });
18823
+ };
18839
18824
  return /* @__PURE__ */ (0, Y.jsx)(Ca, {
18840
18825
  condition: a,
18841
18826
  wrap: (e) => /* @__PURE__ */ (0, Y.jsx)(F, {
@@ -18862,14 +18847,23 @@ var FE = class {
18862
18847
  "data-testid": "suggestion-item",
18863
18848
  children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
18864
18849
  className: "flexbox dc__align-items-center dc__gap-8 dc__ellipsis-right",
18865
- children: [p(), /* @__PURE__ */ (0, Y.jsx)(hn, {
18850
+ children: [/* @__PURE__ */ (0, Y.jsx)("p", {
18851
+ className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
18852
+ dangerouslySetInnerHTML: { __html: jl.sanitize(d(e)) }
18853
+ }), /* @__PURE__ */ (0, Y.jsx)(hn, {
18866
18854
  content: c,
18867
18855
  copiedTippyText: `Copied: ${c}`,
18868
18856
  copyToClipboardPromise: o
18869
18857
  })]
18870
18858
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
18871
18859
  className: "flexbox dc__align-items-center",
18872
- children: f()
18860
+ children: t === "No Defined Description" ? /* @__PURE__ */ (0, Y.jsx)("p", {
18861
+ className: "m-0 fs-12 fw-4 lh-18",
18862
+ children: t
18863
+ }) : /* @__PURE__ */ (0, Y.jsx)("p", {
18864
+ className: "m-0 fs-12 fw-4 lh-18 dc__word-break-all",
18865
+ dangerouslySetInnerHTML: { __html: jl.sanitize(d(t)) }
18866
+ })
18873
18867
  })]
18874
18868
  })
18875
18869
  });
@@ -19766,14 +19760,14 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
19766
19760
  })
19767
19761
  })] });
19768
19762
  }, SO = ({ onClick: e }) => {
19769
- let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct(), r = () => {
19770
- t(!0), e?.();
19771
- };
19763
+ let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct();
19772
19764
  return /* @__PURE__ */ (0, Y.jsxs)("button", {
19773
19765
  type: "button",
19774
19766
  "data-testid": "open-theme-switcher-dialog",
19775
19767
  className: "dc__transparent w-100 flex dc__content-space dc__gap-8 px-8 py-6 br-4 dc__tab-focus dc__hover-n50",
19776
- onClick: r,
19768
+ onClick: () => {
19769
+ t(!0), e?.();
19770
+ },
19777
19771
  children: [/* @__PURE__ */ (0, Y.jsx)("span", {
19778
19772
  className: "flex-grow-1 fs-13 lh-1-5 fw-4 cn-9 dc__text-justify",
19779
19773
  children: "Theme"
@@ -20135,8 +20129,6 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20135
20129
  s(!0);
20136
20130
  }, d = () => {
20137
20131
  s(!1);
20138
- }, f = () => {
20139
- l(!0);
20140
20132
  };
20141
20133
  return c ? /* @__PURE__ */ (0, Y.jsx)(us, { description: "Please try again later" }) : /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
20142
20134
  className: "flexbox-col dc__gap-4",
@@ -20162,7 +20154,9 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20162
20154
  width: Math.min(a, t),
20163
20155
  height: Math.min(i, n),
20164
20156
  className: "dc__no-border",
20165
- onError: f,
20157
+ onError: () => {
20158
+ l(!0);
20159
+ },
20166
20160
  sandbox: "allow-same-origin allow-scripts",
20167
20161
  referrerPolicy: "no-referrer"
20168
20162
  })]
@@ -24302,26 +24296,30 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
24302
24296
  }), qO = ({ imagePath: e, registryName: t }) => /* @__PURE__ */ (0, Y.jsxs)("div", { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
24303
24297
  className: "fw-6",
24304
24298
  children: t
24305
- }), /* @__PURE__ */ (0, Y.jsx)("div", { children: e })] }), JO = ({ imagePath: e, registryName: t, registryType: n, image: r, deployedTime: i, deployedBy: a, isRollbackTrigger: o, excludedImagePathNode: s, approvalChecksNode: c, approvalInfoTippy: l }) => {
24306
- let u = (n) => /* @__PURE__ */ (0, Y.jsx)(ko, {
24307
- className: "default-tt dc__mxw-500",
24308
- arrow: !1,
24309
- placement: "top-start",
24310
- content: /* @__PURE__ */ (0, Y.jsx)(qO, {
24311
- imagePath: e,
24312
- registryName: t
24313
- }),
24314
- children: n
24315
- }), d = () => i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
24316
- className: "material-history__info flex left fs-13 dc__gap-8",
24317
- children: [/* @__PURE__ */ (0, Y.jsx)(I, {
24318
- name: "ic-rocket-launch",
24319
- color: "N600"
24320
- }), /* @__PURE__ */ (0, Y.jsx)("span", {
24321
- className: "fs-13 fw-4",
24322
- children: i
24323
- })]
24324
- }) : null, f = () => !a || !o ? null : a === fo.system ? /* @__PURE__ */ (0, Y.jsxs)("div", {
24299
+ }), /* @__PURE__ */ (0, Y.jsx)("div", { children: e })] }), JO = ({ imagePath: e, registryName: t, registryType: n, image: r, deployedTime: i, deployedBy: a, isRollbackTrigger: o, excludedImagePathNode: s, approvalChecksNode: c, approvalInfoTippy: l }) => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
24300
+ /* @__PURE__ */ (0, Y.jsx)("div", {
24301
+ className: "flex left column",
24302
+ children: s ?? /* @__PURE__ */ (0, Y.jsx)(Ca, {
24303
+ condition: !!e,
24304
+ wrap: (n) => /* @__PURE__ */ (0, Y.jsx)(ko, {
24305
+ className: "default-tt dc__mxw-500",
24306
+ arrow: !1,
24307
+ placement: "top-start",
24308
+ content: /* @__PURE__ */ (0, Y.jsx)(qO, {
24309
+ imagePath: e,
24310
+ registryName: t
24311
+ }),
24312
+ children: n
24313
+ }),
24314
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
24315
+ className: "commit-hash commit-hash--docker dc__gap-8",
24316
+ "data-testid": "cd-trigger-modal-image-value",
24317
+ children: [/* @__PURE__ */ (0, Y.jsx)(Wh, { registryType: n }), r]
24318
+ })
24319
+ })
24320
+ }),
24321
+ l,
24322
+ !a || !o ? null : a === fo.system ? /* @__PURE__ */ (0, Y.jsxs)("div", {
24325
24323
  className: "material-history__deployed-by flex left",
24326
24324
  children: [/* @__PURE__ */ (0, Y.jsx)(KO, { className: "icon-dim-16 mr-6" }), /* @__PURE__ */ (0, Y.jsx)("span", {
24327
24325
  className: "fs-13 fw-4",
@@ -24340,25 +24338,18 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
24340
24338
  children: a
24341
24339
  })
24342
24340
  })]
24343
- });
24344
- return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
24345
- /* @__PURE__ */ (0, Y.jsx)("div", {
24346
- className: "flex left column",
24347
- children: s ?? /* @__PURE__ */ (0, Y.jsx)(Ca, {
24348
- condition: !!e,
24349
- wrap: u,
24350
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
24351
- className: "commit-hash commit-hash--docker dc__gap-8",
24352
- "data-testid": "cd-trigger-modal-image-value",
24353
- children: [/* @__PURE__ */ (0, Y.jsx)(Wh, { registryType: n }), r]
24354
- })
24355
- })
24356
- }),
24357
- l,
24358
- f(),
24359
- c ?? d()
24360
- ] });
24361
- }, YO = {
24341
+ }),
24342
+ c ?? (i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
24343
+ className: "material-history__info flex left fs-13 dc__gap-8",
24344
+ children: [/* @__PURE__ */ (0, Y.jsx)(I, {
24345
+ name: "ic-rocket-launch",
24346
+ color: "N600"
24347
+ }), /* @__PURE__ */ (0, Y.jsx)("span", {
24348
+ className: "fs-13 fw-4",
24349
+ children: i
24350
+ })]
24351
+ }) : null)
24352
+ ] }), YO = {
24362
24353
  ACTIVE: "Active on",
24363
24354
  VIRTUAL_ENV: "Last deployed on",
24364
24355
  FAILED: "Last deployment failed on",
@@ -24521,17 +24512,7 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
24521
24512
  children: r
24522
24513
  })
24523
24514
  }), nk = ({ isSecurityModuleInstalled: e, artifactId: t, applicationId: n, environmentId: r, changesCard: i, isScanned: a, isScanEnabled: o, SecurityModalSidebar: s }) => {
24524
- let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null), m = () => {
24525
- l(!c);
24526
- }, h = () => c ? u === la.Changes ? i : /* @__PURE__ */ (0, Y.jsx)(Vw, {
24527
- isScanned: a,
24528
- isScanEnabled: o,
24529
- artifactId: t,
24530
- applicationId: n,
24531
- environmentId: r,
24532
- setVulnerabilityCount: p,
24533
- SecurityModalSidebar: s
24534
- }) : null;
24515
+ let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null);
24535
24516
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("ul", {
24536
24517
  className: `tab-list tab-list--vulnerability ${c ? "" : "tab-bottom-radius"}`,
24537
24518
  children: [c && (e ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(tk, {
@@ -24553,14 +24534,24 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
24553
24534
  type: "button",
24554
24535
  className: "material-history__changes-btn",
24555
24536
  "data-testid": c ? "collapse-show-info" : "collapse-hide-info",
24556
- onClick: m,
24537
+ onClick: () => {
24538
+ l(!c);
24539
+ },
24557
24540
  children: [c ? "Hide info" : "Show more info", /* @__PURE__ */ (0, Y.jsx)(xn, {
24558
24541
  className: "icon-dim-24 rotate fcn-6",
24559
24542
  style: { "--rotateBy": c ? "-180deg" : "0deg" }
24560
24543
  })]
24561
24544
  })
24562
24545
  })]
24563
- }), h()] });
24546
+ }), c ? u === la.Changes ? i : /* @__PURE__ */ (0, Y.jsx)(Vw, {
24547
+ isScanned: a,
24548
+ isScanEnabled: o,
24549
+ artifactId: t,
24550
+ applicationId: n,
24551
+ environmentId: r,
24552
+ setVulnerabilityCount: p,
24553
+ SecurityModalSidebar: s
24554
+ }) : null] });
24564
24555
  }, rk = (e) => /* @__PURE__ */ (0, Y.jsxs)("svg", {
24565
24556
  width: 12,
24566
24557
  height: 12,
@@ -27446,10 +27437,6 @@ var xj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
27446
27437
  }, []);
27447
27438
  let d = (t) => {
27448
27439
  o(t), u(t[0]), e(t[0]?.chartRefId);
27449
- }, f = (e) => {
27450
- i(e), d(he(t, e));
27451
- }, p = (t) => {
27452
- u(t), e(t.chartRefId);
27453
27440
  };
27454
27441
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
27455
27442
  className: "flex left",
@@ -27463,7 +27450,9 @@ var xj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
27463
27450
  inputId: "chart-type-select",
27464
27451
  value: r ?? s[0],
27465
27452
  options: s,
27466
- onChange: f,
27453
+ onChange: (e) => {
27454
+ i(e), d(he(t, e));
27455
+ },
27467
27456
  variant: Ws.COMPACT
27468
27457
  })]
27469
27458
  }), /* @__PURE__ */ (0, Y.jsxs)("div", {
@@ -27476,7 +27465,9 @@ var xj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
27476
27465
  inputId: "chart-version-select",
27477
27466
  value: l ?? a[0],
27478
27467
  options: a,
27479
- onChange: p,
27468
+ onChange: (t) => {
27469
+ u(t), e(t.chartRefId);
27470
+ },
27480
27471
  variant: Ws.COMPACT
27481
27472
  })]
27482
27473
  })]
@@ -27503,15 +27494,9 @@ function wj(e, t, n = []) {
27503
27494
  //#region src/Common/DebouncedSearch/DebouncedSearch.tsx
27504
27495
  function Tj({ onSearch: e, Icon: t, children: n, placeholder: r, containerClass: i = "", iconClass: a = "", inputClass: o = "", debounceTimeout: s = 500, clearSearch: c, showClearIcon: l = !0, autoFocus: u = !0 }) {
27505
27496
  let [d, f] = J("");
27506
- G(() => {
27507
- f("");
27508
- }, [c]);
27509
- let p = (e) => {
27510
- f(e.target.value);
27511
- }, m = () => {
27497
+ return G(() => {
27512
27498
  f("");
27513
- };
27514
- return wj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
27499
+ }, [c]), wj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
27515
27500
  className: i,
27516
27501
  children: [
27517
27502
  t && /* @__PURE__ */ (0, Y.jsx)(t, { className: a }),
@@ -27520,14 +27505,18 @@ function Tj({ onSearch: e, Icon: t, children: n, placeholder: r, containerClass:
27520
27505
  className: o,
27521
27506
  placeholder: r ?? "Search",
27522
27507
  value: d,
27523
- onChange: p,
27508
+ onChange: (e) => {
27509
+ f(e.target.value);
27510
+ },
27524
27511
  autoFocus: u,
27525
27512
  "data-testid": "debounced-search"
27526
27513
  }),
27527
27514
  l && !!d && /* @__PURE__ */ (0, Y.jsx)("button", {
27528
27515
  type: "button",
27529
27516
  className: "dc__outline-none-imp dc__no-border p-0 bg__secondary flex",
27530
- onClick: m,
27517
+ onClick: () => {
27518
+ f("");
27519
+ },
27531
27520
  "data-testid": "clear-search",
27532
27521
  children: /* @__PURE__ */ (0, Y.jsx)(Zh, { className: "icon-dim-20 icon-n6" })
27533
27522
  }),
@@ -28104,24 +28093,7 @@ var Oj = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
28104
28093
  breaks: !0,
28105
28094
  disableEscapedText: !0,
28106
28095
  className: "mh-150 pt-8 fs-14 fw-4 cn-9"
28107
- }), x = (e, t, n, r) => e.name === "edit" || e.name === "preview" ? /* @__PURE__ */ (0, Y.jsx)("button", {
28108
- type: "button",
28109
- className: "markdown-editor__tab-button flex dc__transparent p-4",
28110
- onClick: () => n(e, e.name),
28111
- disabled: t,
28112
- children: e.icon
28113
- }, r) : /* @__PURE__ */ (0, Y.jsx)(F, {
28114
- alwaysShowTippyOnHover: !!e.buttonProps?.title,
28115
- content: e.buttonProps?.title,
28116
- placement: "top",
28117
- children: /* @__PURE__ */ (0, Y.jsx)("button", {
28118
- type: "button",
28119
- className: "flex dc__transparent p-4 mr-4",
28120
- onClick: () => n(e, e.name),
28121
- disabled: t,
28122
- children: e.icon
28123
- })
28124
- }, r);
28096
+ });
28125
28097
  return /* @__PURE__ */ (0, Y.jsx)("div", {
28126
28098
  "data-testid": "generic-description-wrapper",
28127
28099
  className: `flexbox-col markdown-editor__wrapper bg__primary ${d ? "br-4 border__primary" : ""}`,
@@ -28133,7 +28105,24 @@ var Oj = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
28133
28105
  preview: p === "preview" ? "preview" : "edit",
28134
28106
  components: {
28135
28107
  preview: b,
28136
- toolbar: x
28108
+ toolbar: (e, t, n, r) => e.name === "edit" || e.name === "preview" ? /* @__PURE__ */ (0, Y.jsx)("button", {
28109
+ type: "button",
28110
+ className: "markdown-editor__tab-button flex dc__transparent p-4",
28111
+ onClick: () => n(e, e.name),
28112
+ disabled: t,
28113
+ children: e.icon
28114
+ }, r) : /* @__PURE__ */ (0, Y.jsx)(F, {
28115
+ alwaysShowTippyOnHover: !!e.buttonProps?.title,
28116
+ content: e.buttonProps?.title,
28117
+ placement: "top",
28118
+ children: /* @__PURE__ */ (0, Y.jsx)("button", {
28119
+ type: "button",
28120
+ className: "flex dc__transparent p-4 mr-4",
28121
+ onClick: () => n(e, e.name),
28122
+ disabled: t,
28123
+ children: e.icon
28124
+ })
28125
+ }, r)
28137
28126
  }
28138
28127
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
28139
28128
  className: "flexbox dc__content-end pt-12 pb-12 dc__contain--paint border__primary--top",
@@ -28536,20 +28525,17 @@ var eM = (e) => /* @__PURE__ */ (0, Y.jsx)("svg", {
28536
28525
  })
28537
28526
  ]
28538
28527
  });
28539
- }, iM = ({ handleEditClick: e }) => {
28540
- let t = (t) => {
28528
+ }, iM = ({ handleEditClick: e }) => /* @__PURE__ */ (0, Y.jsxs)("button", {
28529
+ className: "dc__transparent px-8 py-4 flexbox dc__align-items-center dc__gap-4 dc__border-dashed--n3 br-4",
28530
+ "data-testid": "add-tags-button",
28531
+ onClick: (t) => {
28541
28532
  U(t), e();
28542
- };
28543
- return /* @__PURE__ */ (0, Y.jsxs)("button", {
28544
- className: "dc__transparent px-8 py-4 flexbox dc__align-items-center dc__gap-4 dc__border-dashed--n3 br-4",
28545
- "data-testid": "add-tags-button",
28546
- onClick: t,
28547
- children: [/* @__PURE__ */ (0, Y.jsx)(Zs, { className: "icon-dim-16 cn-6 dc__no-shrink" }), /* @__PURE__ */ (0, Y.jsx)("span", {
28548
- className: "cn-7 lh-16",
28549
- children: "Add labels/comment"
28550
- })]
28551
- });
28552
- }, aM = ({ text: e, onClickHandler: t, dataTestId: n, rootClassName: r, interactive: i = !1, fontSize: a = 13, tippyContent: o = null }) => /* @__PURE__ */ (0, Y.jsx)(F, {
28533
+ },
28534
+ children: [/* @__PURE__ */ (0, Y.jsx)(Zs, { className: "icon-dim-16 cn-6 dc__no-shrink" }), /* @__PURE__ */ (0, Y.jsx)("span", {
28535
+ className: "cn-7 lh-16",
28536
+ children: "Add labels/comment"
28537
+ })]
28538
+ }), aM = ({ text: e, onClickHandler: t, dataTestId: n, rootClassName: r, interactive: i = !1, fontSize: a = 13, tippyContent: o = null }) => /* @__PURE__ */ (0, Y.jsx)(F, {
28553
28539
  content: o || e,
28554
28540
  placement: "bottom",
28555
28541
  className: "mxh-210 dc__overflow-auto dc__word-break",