@devtron-labs/devtron-fe-common-lib 1.23.4-pre-2 → 1.23.5-beta-0

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-hUF3-kiJ.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-B46zvwJV.js";
4
- import { a as sc, i as cc, n as lc, o as uc, r as dc, t as fc } from "./@framer-motion-Dlmom4Lw.js";
5
- import { t as pc } from "./@react-virtualized-sticky-tree-Cw3f9vXu.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-C85FfSYl.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-CEfUVN6C.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-CfWdQLUA.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-CYYvyuON.js";
4
+ import { a as sc, i as cc, n as lc, o as uc, r as dc, t as fc } from "./@framer-motion-CYALETZG.js";
5
+ import { t as pc } from "./@react-virtualized-sticky-tree-BGypbpsu.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-l9UWMPVR.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-BbD457C8.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,12 +5645,16 @@ 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
- e.childNodes = (n || x_.getValue().resourceTree?.podMetadata)?.filter((t) => t.uid === e.uid)[0]?.containers?.map((t) => {
5650
+ let t = (n || x_.getValue().resourceTree?.podMetadata)?.filter((t) => t.uid === e.uid)[0], r = (t?.initContainers || []).map((t) => {
5651
+ let n = {};
5652
+ return n.kind = Po.Containers, n.name = t, n.pNode = e, n.isInitContainer = !0, n;
5653
+ }), i = (t?.containers || []).map((t) => {
5651
5654
  let n = {};
5652
- return n.kind = Po.Containers, n.pNode = e, n.name = t, n;
5655
+ return n.kind = Po.Containers, n.name = t, n.pNode = e, n;
5653
5656
  });
5657
+ e.childNodes = [...r, ...i];
5654
5658
  }), a = a.flatMap((e) => e.childNodes ?? []);
5655
5659
  return t;
5656
5660
  }
@@ -6298,24 +6302,7 @@ var cv = (e) => {
6298
6302
  }, `${e.resourceKind}/${e.resourceName}`))
6299
6303
  })]
6300
6304
  }) : null]
6301
- }) : 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", {
6302
- className: "bg__primary en-2 detail-tab_border bw-1",
6303
- children: [c.timelineStatus && /* @__PURE__ */ (0, Y.jsxs)("div", {
6304
- className: `flex left pt-8 pl-12 pb-8 lh-20 ${c.icon === "inprogress" ? "bcy-2" : "bcr-1"}`,
6305
- children: [c.timelineStatus, (n.deploymentStatus === B.TIMED_OUT || n.deploymentStatus === B.UNABLE_TO_FETCH) && /* @__PURE__ */ (0, Y.jsx)(N, {
6306
- dataTestId: "manual-sync-resource-status",
6307
- text: "Try now",
6308
- variant: R.text,
6309
- size: V.xxs,
6310
- onClick: d,
6311
- isLoading: o
6312
- })]
6313
- }), e === P.APP_HEALTH ? /* @__PURE__ */ (0, Y.jsx)("div", { children: /* @__PURE__ */ (0, Y.jsx)(PS, {
6314
- appDetails: r,
6315
- filterHealthyNodes: !0,
6316
- isCardLayout: !1
6317
- }) }) : p()]
6318
- });
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";
6319
6306
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
6320
6307
  /* @__PURE__ */ (0, Y.jsx)("div", {
6321
6308
  className: "bw-1 en-2",
@@ -6360,7 +6347,24 @@ var cv = (e) => {
6360
6347
  })]
6361
6348
  })
6362
6349
  }),
6363
- 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
+ }),
6364
6368
  !t && /* @__PURE__ */ (0, Y.jsx)("div", { className: "vertical-connector" })
6365
6369
  ] });
6366
6370
  }, _v = ({ deploymentStatusDetailsBreakdownData: e, isVirtualEnvironment: t, appDetails: n, rootClassName: r = "", deploymentAppType: i }) => {
@@ -8502,11 +8506,7 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8502
8506
  }), x = () => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
8503
8507
  className: "flex left dc__content-space",
8504
8508
  children: [v(u.data["target checkout"]), y()]
8505
- }), p()] }), S = () => {
8506
- if (!l) return null;
8507
- let e = u.eventactiontype === Hy.MERGED;
8508
- return i.includes(Wo.GITLAB) ? e ? x() : b() : e ? b() : x();
8509
- };
8509
+ }), p()] });
8510
8510
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
8511
8511
  className: "git-commit-info-generic__wrapper cn-9 fs-12",
8512
8512
  children: [a && (l || c.commit) && !!i && /* @__PURE__ */ (0, Y.jsx)(qy, {
@@ -8564,7 +8564,11 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8564
8564
  })]
8565
8565
  }) : null]
8566
8566
  })
8567
- ] }), 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
+ })()]
8568
8572
  })]
8569
8573
  });
8570
8574
  }, Yy = ({ shortcutCombo: e = ["Shift", "F"], showOnlyWhenPathIncludesLogs: t = !0, fullScreenView: n, setFullScreenView: r }) => {
@@ -8778,21 +8782,18 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8778
8782
  })]
8779
8783
  }), t && /* @__PURE__ */ (0, Y.jsxs)("div", {
8780
8784
  className: "flexbox-col dc__gap-4",
8781
- children: [n.map((t, n) => {
8782
- 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_({
8783
8789
  stageIndex: c,
8784
8790
  lineNumberInsideStage: n
8785
- }) === d;
8786
- return /* @__PURE__ */ (0, Y.jsxs)(eb, { children: [/* @__PURE__ */ (0, Y.jsx)("span", {
8787
- ref: g,
8788
- className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
8789
- "data-contains-match": r,
8790
- children: n + 1
8791
- }), /* @__PURE__ */ (0, Y.jsx)("pre", {
8792
- className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
8793
- dangerouslySetInnerHTML: { __html: jl.sanitize(t) }
8794
- })] }, `logs-${e}-${i}-${n}`);
8795
- }), 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" })] })]
8796
8797
  })]
8797
8798
  });
8798
8799
  }, nb = (e) => /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -9791,24 +9792,14 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9791
9792
  });
9792
9793
  }, _ = () => e === lg.CI || e === lg.GROUP_CI ? d : e === lg.GROUP_CD ? f : p, v = t?.find((e) => e.value === _()) ?? null;
9793
9794
  t?.sort((e, t) => e.label > t.label ? 1 : -1);
9794
- 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, {
9795
- ...t,
9796
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
9797
- className: "flexbox dc dc__gap-4",
9798
- children: [(e === lg.CI || e === lg.GROUP_CI) && /* @__PURE__ */ (0, Y.jsx)(I, {
9799
- name: t.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
9800
- size: 20,
9801
- color: null
9802
- }), /* @__PURE__ */ (0, Y.jsx)("span", { children: t.label })]
9803
- })
9804
- }));
9795
+ let y = t?.filter((e) => !e.deploymentAppDeleteRequest);
9805
9796
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [s || /* @__PURE__ */ (0, Y.jsxs)("div", {
9806
9797
  className: "select-pipeline-wrapper w-100 pl-16 pr-16 dc__overflow-hidden dc__border-bottom-n1",
9807
9798
  children: [/* @__PURE__ */ (0, Y.jsxs)("label", {
9808
9799
  htmlFor: "history-pipeline-selector",
9809
9800
  className: "form__label",
9810
9801
  "data-testid": "select-history-heading",
9811
- children: ["Select ", b()]
9802
+ children: ["Select ", e === lg.GROUP_CI || e === lg.GROUP_CD ? Sg.APPLICATION : e === lg.CI ? Sg.PIPELINE : Sg.ENVIRONMENT]
9812
9803
  }), /* @__PURE__ */ (0, Y.jsx)(Ml, {
9813
9804
  classNamePrefix: "history-pipeline-dropdown",
9814
9805
  value: v,
@@ -9816,7 +9807,17 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9816
9807
  onChange: h,
9817
9808
  components: {
9818
9809
  IndicatorSeparator: null,
9819
- 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
+ })),
9820
9821
  DropdownIndicator: Xi
9821
9822
  },
9822
9823
  styles: Cg,
@@ -11245,7 +11246,7 @@ var Px = /* @__PURE__ */ function(e) {
11245
11246
  }) : null,
11246
11247
  !Ce && v && !me && /* @__PURE__ */ (0, Y.jsx)("div", {}),
11247
11248
  i.map(({ label: e, field: t, isSortable: n, size: r, showTippyOnTruncate: i, horizontallySticky: a, infoTooltipText: o }, s) => {
11248
- 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) : {};
11249
11250
  return t === "bulk-action-gutter" ? /* @__PURE__ */ (0, Y.jsx)("div", {
11250
11251
  className: `flex ${l}`,
11251
11252
  style: { left: u },
@@ -17735,9 +17736,7 @@ var FE = class {
17735
17736
  })]
17736
17737
  });
17737
17738
  }, LE = ({ index: e, tagData: t, setTagData: n, removeTag: r, tabIndex: i = 1, suggestedTagsOptions: a, hidePropagateTag: o }) => {
17738
- let s = q(null), c = q(null), l = new FE(), u = (t) => {
17739
- U(t), r(e);
17740
- };
17739
+ let s = q(null), c = q(null), l = new FE();
17741
17740
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
17742
17741
  className: "flexbox mb-8",
17743
17742
  children: [
@@ -17773,7 +17772,9 @@ var FE = class {
17773
17772
  }),
17774
17773
  /* @__PURE__ */ (0, Y.jsx)("div", {
17775
17774
  className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
17776
- onClick: u,
17775
+ onClick: (t) => {
17776
+ U(t), r(e);
17777
+ },
17777
17778
  "data-testid": `delete-tag-${e}`,
17778
17779
  children: /* @__PURE__ */ (0, Y.jsx)(ao, { className: "icon-dim-20 mt-4" })
17779
17780
  })
@@ -18455,79 +18456,76 @@ var FE = class {
18455
18456
  children: e
18456
18457
  })]
18457
18458
  })
18458
- }), dD = ({ exportDataError: e, isLoading: t, initiateDownload: n, handleCancelRequest: r }) => {
18459
- let i = () => e ? /* @__PURE__ */ (0, Y.jsx)(us, {
18460
- title: "Unable to export data",
18461
- description: "Encountered an error while trying to export. Please try again. If error persists then try after\n some time.",
18462
- buttonText: "",
18463
- subTitle: ""
18464
- }) : t ? /* @__PURE__ */ (0, Y.jsx)(xi, {
18465
- size: 32,
18466
- loadingText: "Preparing export...",
18467
- fullHeight: !0,
18468
- children: /* @__PURE__ */ (0, Y.jsx)("span", {
18469
- className: "fs-13 fw-4",
18470
- children: "Please do not reload or press the browser back button."
18471
- })
18472
- }) : /* @__PURE__ */ (0, Y.jsxs)("div", {
18473
- 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",
18474
18464
  children: [
18475
- /* @__PURE__ */ (0, Y.jsx)(I, {
18476
- name: "ic-success",
18477
- color: null,
18478
- size: 32
18479
- }),
18480
- /* @__PURE__ */ (0, Y.jsx)("span", {
18481
- className: "fs-14 fw-6 mt-8",
18482
- 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"
18483
18468
  }),
18484
- /* @__PURE__ */ (0, Y.jsx)("span", {
18485
- className: "fs-13 fw-4",
18486
- 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
+ })
18487
18509
  }),
18488
- /* @__PURE__ */ (0, Y.jsx)(N, {
18489
- text: "click here to download manually.",
18490
- onClick: n,
18491
- dataTestId: "manual-download",
18492
- variant: R.text,
18493
- 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
+ })] })
18494
18525
  })
18495
18526
  ]
18496
- }), a = () => /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)(N, {
18497
- variant: R.secondary,
18498
- size: V.medium,
18499
- style: L.neutral,
18500
- onClick: r,
18501
- text: t ? "Cancel" : "Close",
18502
- dataTestId: "close-export-csv-button"
18503
- }), !t && e && /* @__PURE__ */ (0, Y.jsx)(N, {
18504
- size: V.medium,
18505
- onClick: n,
18506
- text: "Retry",
18507
- dataTestId: "retry-export-csv-button"
18508
- })] });
18509
- return /* @__PURE__ */ (0, Y.jsx)(nx, {
18510
- className: "export-to-csv-modal",
18511
- "data-testid": "export-to-csv-modal",
18512
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
18513
- className: "modal__body mt-40 p-0",
18514
- children: [
18515
- /* @__PURE__ */ (0, Y.jsx)("h2", {
18516
- className: "cn-9 fw-6 fs-16 m-0 dc__border-bottom px-20 py-12",
18517
- children: "Export to CSV"
18518
- }),
18519
- /* @__PURE__ */ (0, Y.jsx)("div", {
18520
- className: "py-16 flex px-20",
18521
- children: i()
18522
- }),
18523
- /* @__PURE__ */ (0, Y.jsx)("div", {
18524
- className: "flex right dc__gap-12 dc__border-top py-16 px-20",
18525
- children: a()
18526
- })
18527
- ]
18528
- })
18529
- });
18530
- }, 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 }) => {
18531
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 () => {
18532
18530
  if (!r) try {
18533
18531
  m(!0), g(null), u(await e({ signal: c.current.signal })), s.current?.link?.click();
@@ -18822,16 +18820,7 @@ var FE = class {
18822
18820
  } catch {
18823
18821
  return e;
18824
18822
  }
18825
- }, f = () => t === "No Defined Description" ? /* @__PURE__ */ (0, Y.jsx)("p", {
18826
- className: "m-0 fs-12 fw-4 lh-18",
18827
- children: t
18828
- }) : /* @__PURE__ */ (0, Y.jsx)("p", {
18829
- className: "m-0 fs-12 fw-4 lh-18 dc__word-break-all",
18830
- dangerouslySetInnerHTML: { __html: jl.sanitize(d(t)) }
18831
- }), p = () => /* @__PURE__ */ (0, Y.jsx)("p", {
18832
- className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
18833
- dangerouslySetInnerHTML: { __html: jl.sanitize(d(e)) }
18834
- });
18823
+ };
18835
18824
  return /* @__PURE__ */ (0, Y.jsx)(Ca, {
18836
18825
  condition: a,
18837
18826
  wrap: (e) => /* @__PURE__ */ (0, Y.jsx)(F, {
@@ -18858,14 +18847,23 @@ var FE = class {
18858
18847
  "data-testid": "suggestion-item",
18859
18848
  children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
18860
18849
  className: "flexbox dc__align-items-center dc__gap-8 dc__ellipsis-right",
18861
- 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, {
18862
18854
  content: c,
18863
18855
  copiedTippyText: `Copied: ${c}`,
18864
18856
  copyToClipboardPromise: o
18865
18857
  })]
18866
18858
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
18867
18859
  className: "flexbox dc__align-items-center",
18868
- 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
+ })
18869
18867
  })]
18870
18868
  })
18871
18869
  });
@@ -19762,14 +19760,14 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
19762
19760
  })
19763
19761
  })] });
19764
19762
  }, SO = ({ onClick: e }) => {
19765
- let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct(), r = () => {
19766
- t(!0), e?.();
19767
- };
19763
+ let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct();
19768
19764
  return /* @__PURE__ */ (0, Y.jsxs)("button", {
19769
19765
  type: "button",
19770
19766
  "data-testid": "open-theme-switcher-dialog",
19771
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",
19772
- onClick: r,
19768
+ onClick: () => {
19769
+ t(!0), e?.();
19770
+ },
19773
19771
  children: [/* @__PURE__ */ (0, Y.jsx)("span", {
19774
19772
  className: "flex-grow-1 fs-13 lh-1-5 fw-4 cn-9 dc__text-justify",
19775
19773
  children: "Theme"
@@ -20131,8 +20129,6 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20131
20129
  s(!0);
20132
20130
  }, d = () => {
20133
20131
  s(!1);
20134
- }, f = () => {
20135
- l(!0);
20136
20132
  };
20137
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", {
20138
20134
  className: "flexbox-col dc__gap-4",
@@ -20158,7 +20154,9 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20158
20154
  width: Math.min(a, t),
20159
20155
  height: Math.min(i, n),
20160
20156
  className: "dc__no-border",
20161
- onError: f,
20157
+ onError: () => {
20158
+ l(!0);
20159
+ },
20162
20160
  sandbox: "allow-same-origin allow-scripts",
20163
20161
  referrerPolicy: "no-referrer"
20164
20162
  })]
@@ -23240,26 +23238,30 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23240
23238
  }), GO = ({ imagePath: e, registryName: t }) => /* @__PURE__ */ (0, Y.jsxs)("div", { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
23241
23239
  className: "fw-6",
23242
23240
  children: t
23243
- }), /* @__PURE__ */ (0, Y.jsx)("div", { children: e })] }), KO = ({ imagePath: e, registryName: t, registryType: n, image: r, deployedTime: i, deployedBy: a, isRollbackTrigger: o, excludedImagePathNode: s, approvalChecksNode: c, approvalInfoTippy: l }) => {
23244
- let u = (n) => /* @__PURE__ */ (0, Y.jsx)(ko, {
23245
- className: "default-tt dc__mxw-500",
23246
- arrow: !1,
23247
- placement: "top-start",
23248
- content: /* @__PURE__ */ (0, Y.jsx)(GO, {
23249
- imagePath: e,
23250
- registryName: t
23251
- }),
23252
- children: n
23253
- }), d = () => i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23254
- className: "material-history__info flex left fs-13 dc__gap-8",
23255
- children: [/* @__PURE__ */ (0, Y.jsx)(I, {
23256
- name: "ic-rocket-launch",
23257
- color: "N600"
23258
- }), /* @__PURE__ */ (0, Y.jsx)("span", {
23259
- className: "fs-13 fw-4",
23260
- children: i
23261
- })]
23262
- }) : null, f = () => !a || !o ? null : a === fo.system ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23241
+ }), /* @__PURE__ */ (0, Y.jsx)("div", { children: e })] }), KO = ({ 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: [
23242
+ /* @__PURE__ */ (0, Y.jsx)("div", {
23243
+ className: "flex left column",
23244
+ children: s ?? /* @__PURE__ */ (0, Y.jsx)(Ca, {
23245
+ condition: !!e,
23246
+ wrap: (n) => /* @__PURE__ */ (0, Y.jsx)(ko, {
23247
+ className: "default-tt dc__mxw-500",
23248
+ arrow: !1,
23249
+ placement: "top-start",
23250
+ content: /* @__PURE__ */ (0, Y.jsx)(GO, {
23251
+ imagePath: e,
23252
+ registryName: t
23253
+ }),
23254
+ children: n
23255
+ }),
23256
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
23257
+ className: "commit-hash commit-hash--docker dc__gap-8",
23258
+ "data-testid": "cd-trigger-modal-image-value",
23259
+ children: [/* @__PURE__ */ (0, Y.jsx)(Wh, { registryType: n }), r]
23260
+ })
23261
+ })
23262
+ }),
23263
+ l,
23264
+ !a || !o ? null : a === fo.system ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23263
23265
  className: "material-history__deployed-by flex left",
23264
23266
  children: [/* @__PURE__ */ (0, Y.jsx)(WO, { className: "icon-dim-16 mr-6" }), /* @__PURE__ */ (0, Y.jsx)("span", {
23265
23267
  className: "fs-13 fw-4",
@@ -23278,25 +23280,18 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23278
23280
  children: a
23279
23281
  })
23280
23282
  })]
23281
- });
23282
- return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
23283
- /* @__PURE__ */ (0, Y.jsx)("div", {
23284
- className: "flex left column",
23285
- children: s ?? /* @__PURE__ */ (0, Y.jsx)(Ca, {
23286
- condition: !!e,
23287
- wrap: u,
23288
- children: /* @__PURE__ */ (0, Y.jsxs)("div", {
23289
- className: "commit-hash commit-hash--docker dc__gap-8",
23290
- "data-testid": "cd-trigger-modal-image-value",
23291
- children: [/* @__PURE__ */ (0, Y.jsx)(Wh, { registryType: n }), r]
23292
- })
23293
- })
23294
- }),
23295
- l,
23296
- f(),
23297
- c ?? d()
23298
- ] });
23299
- }, qO = {
23283
+ }),
23284
+ c ?? (i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23285
+ className: "material-history__info flex left fs-13 dc__gap-8",
23286
+ children: [/* @__PURE__ */ (0, Y.jsx)(I, {
23287
+ name: "ic-rocket-launch",
23288
+ color: "N600"
23289
+ }), /* @__PURE__ */ (0, Y.jsx)("span", {
23290
+ className: "fs-13 fw-4",
23291
+ children: i
23292
+ })]
23293
+ }) : null)
23294
+ ] }), qO = {
23300
23295
  ACTIVE: "Active on",
23301
23296
  VIRTUAL_ENV: "Last deployed on",
23302
23297
  FAILED: "Last deployment failed on",
@@ -23459,17 +23454,7 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23459
23454
  children: r
23460
23455
  })
23461
23456
  }), ek = ({ isSecurityModuleInstalled: e, artifactId: t, applicationId: n, environmentId: r, changesCard: i, isScanned: a, isScanEnabled: o, SecurityModalSidebar: s }) => {
23462
- let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null), m = () => {
23463
- l(!c);
23464
- }, h = () => c ? u === la.Changes ? i : /* @__PURE__ */ (0, Y.jsx)(Vw, {
23465
- isScanned: a,
23466
- isScanEnabled: o,
23467
- artifactId: t,
23468
- applicationId: n,
23469
- environmentId: r,
23470
- setVulnerabilityCount: p,
23471
- SecurityModalSidebar: s
23472
- }) : null;
23457
+ let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null);
23473
23458
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("ul", {
23474
23459
  className: `tab-list tab-list--vulnerability ${c ? "" : "tab-bottom-radius"}`,
23475
23460
  children: [c && (e ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)($O, {
@@ -23491,14 +23476,24 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23491
23476
  type: "button",
23492
23477
  className: "material-history__changes-btn",
23493
23478
  "data-testid": c ? "collapse-show-info" : "collapse-hide-info",
23494
- onClick: m,
23479
+ onClick: () => {
23480
+ l(!c);
23481
+ },
23495
23482
  children: [c ? "Hide info" : "Show more info", /* @__PURE__ */ (0, Y.jsx)(xn, {
23496
23483
  className: "icon-dim-24 rotate fcn-6",
23497
23484
  style: { "--rotateBy": c ? "-180deg" : "0deg" }
23498
23485
  })]
23499
23486
  })
23500
23487
  })]
23501
- }), h()] });
23488
+ }), c ? u === la.Changes ? i : /* @__PURE__ */ (0, Y.jsx)(Vw, {
23489
+ isScanned: a,
23490
+ isScanEnabled: o,
23491
+ artifactId: t,
23492
+ applicationId: n,
23493
+ environmentId: r,
23494
+ setVulnerabilityCount: p,
23495
+ SecurityModalSidebar: s
23496
+ }) : null] });
23502
23497
  }, tk = (e) => /* @__PURE__ */ (0, Y.jsxs)("svg", {
23503
23498
  width: 12,
23504
23499
  height: 12,
@@ -26384,10 +26379,6 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26384
26379
  }, []);
26385
26380
  let d = (t) => {
26386
26381
  o(t), u(t[0]), e(t[0]?.chartRefId);
26387
- }, f = (e) => {
26388
- i(e), d(he(t, e));
26389
- }, p = (t) => {
26390
- u(t), e(t.chartRefId);
26391
26382
  };
26392
26383
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
26393
26384
  className: "flex left",
@@ -26401,7 +26392,9 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26401
26392
  inputId: "chart-type-select",
26402
26393
  value: r ?? s[0],
26403
26394
  options: s,
26404
- onChange: f,
26395
+ onChange: (e) => {
26396
+ i(e), d(he(t, e));
26397
+ },
26405
26398
  variant: Ws.COMPACT
26406
26399
  })]
26407
26400
  }), /* @__PURE__ */ (0, Y.jsxs)("div", {
@@ -26414,7 +26407,9 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26414
26407
  inputId: "chart-version-select",
26415
26408
  value: l ?? a[0],
26416
26409
  options: a,
26417
- onChange: p,
26410
+ onChange: (t) => {
26411
+ u(t), e(t.chartRefId);
26412
+ },
26418
26413
  variant: Ws.COMPACT
26419
26414
  })]
26420
26415
  })]
@@ -26441,15 +26436,9 @@ function Sj(e, t, n = []) {
26441
26436
  //#region src/Common/DebouncedSearch/DebouncedSearch.tsx
26442
26437
  function Cj({ 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 }) {
26443
26438
  let [d, f] = J("");
26444
- G(() => {
26445
- f("");
26446
- }, [c]);
26447
- let p = (e) => {
26448
- f(e.target.value);
26449
- }, m = () => {
26439
+ return G(() => {
26450
26440
  f("");
26451
- };
26452
- return Sj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
26441
+ }, [c]), Sj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
26453
26442
  className: i,
26454
26443
  children: [
26455
26444
  t && /* @__PURE__ */ (0, Y.jsx)(t, { className: a }),
@@ -26458,14 +26447,18 @@ function Cj({ onSearch: e, Icon: t, children: n, placeholder: r, containerClass:
26458
26447
  className: o,
26459
26448
  placeholder: r ?? "Search",
26460
26449
  value: d,
26461
- onChange: p,
26450
+ onChange: (e) => {
26451
+ f(e.target.value);
26452
+ },
26462
26453
  autoFocus: u,
26463
26454
  "data-testid": "debounced-search"
26464
26455
  }),
26465
26456
  l && !!d && /* @__PURE__ */ (0, Y.jsx)("button", {
26466
26457
  type: "button",
26467
26458
  className: "dc__outline-none-imp dc__no-border p-0 bg__secondary flex",
26468
- onClick: m,
26459
+ onClick: () => {
26460
+ f("");
26461
+ },
26469
26462
  "data-testid": "clear-search",
26470
26463
  children: /* @__PURE__ */ (0, Y.jsx)(Zh, { className: "icon-dim-20 icon-n6" })
26471
26464
  }),
@@ -27042,24 +27035,7 @@ var Ej = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
27042
27035
  breaks: !0,
27043
27036
  disableEscapedText: !0,
27044
27037
  className: "mh-150 pt-8 fs-14 fw-4 cn-9"
27045
- }), x = (e, t, n, r) => e.name === "edit" || e.name === "preview" ? /* @__PURE__ */ (0, Y.jsx)("button", {
27046
- type: "button",
27047
- className: "markdown-editor__tab-button flex dc__transparent p-4",
27048
- onClick: () => n(e, e.name),
27049
- disabled: t,
27050
- children: e.icon
27051
- }, r) : /* @__PURE__ */ (0, Y.jsx)(F, {
27052
- alwaysShowTippyOnHover: !!e.buttonProps?.title,
27053
- content: e.buttonProps?.title,
27054
- placement: "top",
27055
- children: /* @__PURE__ */ (0, Y.jsx)("button", {
27056
- type: "button",
27057
- className: "flex dc__transparent p-4 mr-4",
27058
- onClick: () => n(e, e.name),
27059
- disabled: t,
27060
- children: e.icon
27061
- })
27062
- }, r);
27038
+ });
27063
27039
  return /* @__PURE__ */ (0, Y.jsx)("div", {
27064
27040
  "data-testid": "generic-description-wrapper",
27065
27041
  className: `flexbox-col markdown-editor__wrapper bg__primary ${d ? "br-4 border__primary" : ""}`,
@@ -27071,7 +27047,24 @@ var Ej = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
27071
27047
  preview: p === "preview" ? "preview" : "edit",
27072
27048
  components: {
27073
27049
  preview: b,
27074
- toolbar: x
27050
+ toolbar: (e, t, n, r) => e.name === "edit" || e.name === "preview" ? /* @__PURE__ */ (0, Y.jsx)("button", {
27051
+ type: "button",
27052
+ className: "markdown-editor__tab-button flex dc__transparent p-4",
27053
+ onClick: () => n(e, e.name),
27054
+ disabled: t,
27055
+ children: e.icon
27056
+ }, r) : /* @__PURE__ */ (0, Y.jsx)(F, {
27057
+ alwaysShowTippyOnHover: !!e.buttonProps?.title,
27058
+ content: e.buttonProps?.title,
27059
+ placement: "top",
27060
+ children: /* @__PURE__ */ (0, Y.jsx)("button", {
27061
+ type: "button",
27062
+ className: "flex dc__transparent p-4 mr-4",
27063
+ onClick: () => n(e, e.name),
27064
+ disabled: t,
27065
+ children: e.icon
27066
+ })
27067
+ }, r)
27075
27068
  }
27076
27069
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
27077
27070
  className: "flexbox dc__content-end pt-12 pb-12 dc__contain--paint border__primary--top",
@@ -27474,20 +27467,17 @@ var Qj = (e) => /* @__PURE__ */ (0, Y.jsx)("svg", {
27474
27467
  })
27475
27468
  ]
27476
27469
  });
27477
- }, nM = ({ handleEditClick: e }) => {
27478
- let t = (t) => {
27470
+ }, nM = ({ handleEditClick: e }) => /* @__PURE__ */ (0, Y.jsxs)("button", {
27471
+ className: "dc__transparent px-8 py-4 flexbox dc__align-items-center dc__gap-4 dc__border-dashed--n3 br-4",
27472
+ "data-testid": "add-tags-button",
27473
+ onClick: (t) => {
27479
27474
  U(t), e();
27480
- };
27481
- return /* @__PURE__ */ (0, Y.jsxs)("button", {
27482
- className: "dc__transparent px-8 py-4 flexbox dc__align-items-center dc__gap-4 dc__border-dashed--n3 br-4",
27483
- "data-testid": "add-tags-button",
27484
- onClick: t,
27485
- children: [/* @__PURE__ */ (0, Y.jsx)(Zs, { className: "icon-dim-16 cn-6 dc__no-shrink" }), /* @__PURE__ */ (0, Y.jsx)("span", {
27486
- className: "cn-7 lh-16",
27487
- children: "Add labels/comment"
27488
- })]
27489
- });
27490
- }, rM = ({ text: e, onClickHandler: t, dataTestId: n, rootClassName: r, interactive: i = !1, fontSize: a = 13, tippyContent: o = null }) => /* @__PURE__ */ (0, Y.jsx)(F, {
27475
+ },
27476
+ children: [/* @__PURE__ */ (0, Y.jsx)(Zs, { className: "icon-dim-16 cn-6 dc__no-shrink" }), /* @__PURE__ */ (0, Y.jsx)("span", {
27477
+ className: "cn-7 lh-16",
27478
+ children: "Add labels/comment"
27479
+ })]
27480
+ }), rM = ({ text: e, onClickHandler: t, dataTestId: n, rootClassName: r, interactive: i = !1, fontSize: a = 13, tippyContent: o = null }) => /* @__PURE__ */ (0, Y.jsx)(F, {
27491
27481
  content: o || e,
27492
27482
  placement: "bottom",
27493
27483
  className: "mxh-210 dc__overflow-auto dc__word-break",