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

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-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";
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";
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,7 +38,9 @@ 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;
41
+ let o = e === c.RIGHT ? n : r, s = () => {
42
+ i(e);
43
+ };
42
44
  return t?.includes(e) ? /* @__PURE__ */ (0, Y.jsx)(ko, {
43
45
  placement: "top",
44
46
  content: /* @__PURE__ */ (0, Y.jsx)(su, { tooltipContent: a }),
@@ -53,9 +55,7 @@ function cu({ position: e, addCDButtons: t, endNode: n, startNode: r, handleAddC
53
55
  fill: "none",
54
56
  xmlns: "http://www.w3.org/2000/svg",
55
57
  "data-testid": `add-cd-to-${e}`,
56
- onClick: () => {
57
- i(e);
58
- },
58
+ onClick: s,
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);
713
+ let [u, d] = J(!1), f = () => d(!0), p = () => d(!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: () => d(!0),
720
- onHoverEnd: () => d(!1),
719
+ onHoverStart: f,
720
+ onHoverEnd: p,
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,6 +1494,10 @@ 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();
1497
1501
  };
1498
1502
  return kl(() => {
1499
1503
  if (!l || !_ || !b.current || !x.current || !S.current) return;
@@ -1530,9 +1534,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1530
1534
  triggerProps: {
1531
1535
  ref: b,
1532
1536
  onClick: w,
1533
- onKeyDown: (e) => {
1534
- !l && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), C(!0)), s?.(e, l, E);
1535
- },
1537
+ onKeyDown: D,
1536
1538
  "aria-haspopup": "listbox",
1537
1539
  "aria-expanded": l,
1538
1540
  className: "flex",
@@ -1546,9 +1548,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
1546
1548
  },
1547
1549
  overlayProps: {
1548
1550
  hasClearBackground: !0,
1549
- onClick: () => {
1550
- E();
1551
- },
1551
+ onClick: k,
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: (e) => o?.(e, l, E),
1561
+ onKeyDown: O,
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;
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;
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 }) : n ? xf.EDIT_SUBMIT : xf.SAVE_SUBMIT
2244
+ children: r ? /* @__PURE__ */ (0, Y.jsx)(rt, { size: 16 }) : a()
2245
2245
  })
2246
2246
  })
2247
2247
  }), t && /* @__PURE__ */ (0, Y.jsx)("button", {
@@ -3689,7 +3689,9 @@ 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);
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
+ };
3693
3695
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
3694
3696
  className: `flex dc__content-space dc__gap-6 dc__position-rel ${l ? "w-100 h-100 sortable-table-header__container" : ""}`,
3695
3697
  children: [/* @__PURE__ */ (0, Y.jsxs)("button", {
@@ -3717,7 +3719,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
3717
3719
  }
3718
3720
  })]
3719
3721
  })
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]
3722
+ }), p()]
3721
3723
  }), f && /* @__PURE__ */ (0, Y.jsx)(ch.default, {
3722
3724
  nodeRef: d,
3723
3725
  handle: ".sortable-table-header__resize-btn",
@@ -3727,9 +3729,7 @@ var lu = ({ startNode: e }) => e.type === cr.WEBHOOK ? Gn.WEBHOOK : e.type === c
3727
3729
  y: 0
3728
3730
  },
3729
3731
  axis: "none",
3730
- onDrag: (e, t) => {
3731
- f && c(s, t.deltaX);
3732
- },
3732
+ onDrag: m,
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));
5648
+ (e.childNodes ?? []).sort((e, t) => e.name < t.name ? -1 : e.name > t.name ? 1 : 0);
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,7 +6302,24 @@ 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";
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
+ });
6306
6323
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
6307
6324
  /* @__PURE__ */ (0, Y.jsx)("div", {
6308
6325
  className: "bw-1 en-2",
@@ -6347,24 +6364,7 @@ var cv = (e) => {
6347
6364
  })]
6348
6365
  })
6349
6366
  }),
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
- }),
6367
+ h(),
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,7 +8506,11 @@ 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()] });
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
+ };
8510
8514
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
8511
8515
  className: "git-commit-info-generic__wrapper cn-9 fs-12",
8512
8516
  children: [a && (l || c.commit) && !!i && /* @__PURE__ */ (0, Y.jsx)(qy, {
@@ -8564,11 +8568,7 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
8564
8568
  })]
8565
8569
  }) : null]
8566
8570
  })
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
- })()]
8571
+ ] }), S()]
8572
8572
  })]
8573
8573
  });
8574
8574
  }, Yy = ({ shortcutCombo: e = ["Shift", "F"], showOnlyWhenPathIncludesLogs: t = !0, fullScreenView: n, setFullScreenView: r }) => {
@@ -8782,18 +8782,21 @@ 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) => /* @__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_({
8785
+ children: [n.map((t, n) => {
8786
+ let r = i_({
8789
8787
  stageIndex: c,
8790
8788
  lineNumberInsideStage: n
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" })] })]
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" })] })]
8797
8800
  })]
8798
8801
  });
8799
8802
  }, nb = (e) => /* @__PURE__ */ (0, Y.jsx)("div", {
@@ -9792,14 +9795,24 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9792
9795
  });
9793
9796
  }, _ = () => e === lg.CI || e === lg.GROUP_CI ? d : e === lg.GROUP_CD ? f : p, v = t?.find((e) => e.value === _()) ?? null;
9794
9797
  t?.sort((e, t) => e.label > t.label ? 1 : -1);
9795
- let y = t?.filter((e) => !e.deploymentAppDeleteRequest);
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
+ }));
9796
9809
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [s || /* @__PURE__ */ (0, Y.jsxs)("div", {
9797
9810
  className: "select-pipeline-wrapper w-100 pl-16 pr-16 dc__overflow-hidden dc__border-bottom-n1",
9798
9811
  children: [/* @__PURE__ */ (0, Y.jsxs)("label", {
9799
9812
  htmlFor: "history-pipeline-selector",
9800
9813
  className: "form__label",
9801
9814
  "data-testid": "select-history-heading",
9802
- children: ["Select ", e === lg.GROUP_CI || e === lg.GROUP_CD ? Sg.APPLICATION : e === lg.CI ? Sg.PIPELINE : Sg.ENVIRONMENT]
9815
+ children: ["Select ", b()]
9803
9816
  }), /* @__PURE__ */ (0, Y.jsx)(Ml, {
9804
9817
  classNamePrefix: "history-pipeline-dropdown",
9805
9818
  value: v,
@@ -9807,17 +9820,7 @@ var Cv = ({ code: e, reload: t, subtitle: n, reloadClass: r, redirectURL: i, on4
9807
9820
  onChange: h,
9808
9821
  components: {
9809
9822
  IndicatorSeparator: null,
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
- })),
9823
+ Option: x,
9821
9824
  DropdownIndicator: Xi
9822
9825
  },
9823
9826
  styles: Cg,
@@ -11246,7 +11249,7 @@ var Px = /* @__PURE__ */ function(e) {
11246
11249
  }) : null,
11247
11250
  !Ce && v && !me && /* @__PURE__ */ (0, Y.jsx)("div", {}),
11248
11251
  i.map(({ label: e, field: t, isSortable: n, size: r, showTippyOnTruncate: i, horizontallySticky: a, infoTooltipText: o }, s) => {
11249
- let c = !!r?.range, { className: l = "", left: u = "" } = a || t === "bulk-action-gutter" ? Kx(Te, s + +!!Ce) : {};
11252
+ let c = !!r?.range, { className: l = "", left: u = "" } = a || t === "bulk-action-gutter" ? Kx(Te, s + (Ce ? 1 : 0)) : {};
11250
11253
  return t === "bulk-action-gutter" ? /* @__PURE__ */ (0, Y.jsx)("div", {
11251
11254
  className: `flex ${l}`,
11252
11255
  style: { left: u },
@@ -17736,7 +17739,9 @@ var FE = class {
17736
17739
  })]
17737
17740
  });
17738
17741
  }, LE = ({ index: e, tagData: t, setTagData: n, removeTag: r, tabIndex: i = 1, suggestedTagsOptions: a, hidePropagateTag: o }) => {
17739
- let s = q(null), c = q(null), l = new FE();
17742
+ let s = q(null), c = q(null), l = new FE(), u = (t) => {
17743
+ U(t), r(e);
17744
+ };
17740
17745
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
17741
17746
  className: "flexbox mb-8",
17742
17747
  children: [
@@ -17772,9 +17777,7 @@ var FE = class {
17772
17777
  }),
17773
17778
  /* @__PURE__ */ (0, Y.jsx)("div", {
17774
17779
  className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
17775
- onClick: (t) => {
17776
- U(t), r(e);
17777
- },
17780
+ onClick: u,
17778
17781
  "data-testid": `delete-tag-${e}`,
17779
17782
  children: /* @__PURE__ */ (0, Y.jsx)(ao, { className: "icon-dim-20 mt-4" })
17780
17783
  })
@@ -18456,76 +18459,79 @@ var FE = class {
18456
18459
  children: e
18457
18460
  })]
18458
18461
  })
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",
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",
18464
18478
  children: [
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"
18479
+ /* @__PURE__ */ (0, Y.jsx)(I, {
18480
+ name: "ic-success",
18481
+ color: null,
18482
+ size: 32
18468
18483
  }),
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
- })
18484
+ /* @__PURE__ */ (0, Y.jsx)("span", {
18485
+ className: "fs-14 fw-6 mt-8",
18486
+ children: "Your export is ready"
18509
18487
  }),
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
- })] })
18488
+ /* @__PURE__ */ (0, Y.jsx)("span", {
18489
+ className: "fs-13 fw-4",
18490
+ children: " If download does not start automatically,"
18491
+ }),
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
18525
18498
  })
18526
18499
  ]
18527
- })
18528
- }), fD = ({ apiPromise: e, fileName: t, triggerElementConfig: n, disabled: r, modalConfig: i, headers: a, downloadRequestId: o }) => {
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 }) => {
18529
18535
  let s = q(null), c = q(new AbortController()), [l, u] = J([]), [d, f] = J(null), [p, m] = J(!1), [h, g] = J(null), _ = async () => {
18530
18536
  if (!r) try {
18531
18537
  m(!0), g(null), u(await e({ signal: c.current.signal })), s.current?.link?.click();
@@ -18820,7 +18826,16 @@ var FE = class {
18820
18826
  } catch {
18821
18827
  return e;
18822
18828
  }
18823
- };
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
+ });
18824
18839
  return /* @__PURE__ */ (0, Y.jsx)(Ca, {
18825
18840
  condition: a,
18826
18841
  wrap: (e) => /* @__PURE__ */ (0, Y.jsx)(F, {
@@ -18847,23 +18862,14 @@ var FE = class {
18847
18862
  "data-testid": "suggestion-item",
18848
18863
  children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
18849
18864
  className: "flexbox dc__align-items-center dc__gap-8 dc__ellipsis-right",
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, {
18865
+ children: [p(), /* @__PURE__ */ (0, Y.jsx)(hn, {
18854
18866
  content: c,
18855
18867
  copiedTippyText: `Copied: ${c}`,
18856
18868
  copyToClipboardPromise: o
18857
18869
  })]
18858
18870
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
18859
18871
  className: "flexbox dc__align-items-center",
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
- })
18872
+ children: f()
18867
18873
  })]
18868
18874
  })
18869
18875
  });
@@ -19760,14 +19766,14 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
19760
19766
  })
19761
19767
  })] });
19762
19768
  }, SO = ({ onClick: e }) => {
19763
- let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct();
19769
+ let { handleThemeSwitcherDialogVisibilityChange: t, themePreference: n } = Ct(), r = () => {
19770
+ t(!0), e?.();
19771
+ };
19764
19772
  return /* @__PURE__ */ (0, Y.jsxs)("button", {
19765
19773
  type: "button",
19766
19774
  "data-testid": "open-theme-switcher-dialog",
19767
19775
  className: "dc__transparent w-100 flex dc__content-space dc__gap-8 px-8 py-6 br-4 dc__tab-focus dc__hover-n50",
19768
- onClick: () => {
19769
- t(!0), e?.();
19770
- },
19776
+ onClick: r,
19771
19777
  children: [/* @__PURE__ */ (0, Y.jsx)("span", {
19772
19778
  className: "flex-grow-1 fs-13 lh-1-5 fw-4 cn-9 dc__text-justify",
19773
19779
  children: "Theme"
@@ -20129,6 +20135,8 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20129
20135
  s(!0);
20130
20136
  }, d = () => {
20131
20137
  s(!1);
20138
+ }, f = () => {
20139
+ l(!0);
20132
20140
  };
20133
20141
  return c ? /* @__PURE__ */ (0, Y.jsx)(us, { description: "Please try again later" }) : /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("div", {
20134
20142
  className: "flexbox-col dc__gap-4",
@@ -20154,9 +20162,7 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
20154
20162
  width: Math.min(a, t),
20155
20163
  height: Math.min(i, n),
20156
20164
  className: "dc__no-border",
20157
- onError: () => {
20158
- l(!0);
20159
- },
20165
+ onError: f,
20160
20166
  sandbox: "allow-same-origin allow-scripts",
20161
20167
  referrerPolicy: "no-referrer"
20162
20168
  })]
@@ -23238,30 +23244,26 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23238
23244
  }), GO = ({ imagePath: e, registryName: t }) => /* @__PURE__ */ (0, Y.jsxs)("div", { children: [/* @__PURE__ */ (0, Y.jsx)("div", {
23239
23245
  className: "fw-6",
23240
23246
  children: t
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", {
23247
+ }), /* @__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 }) => {
23248
+ let u = (n) => /* @__PURE__ */ (0, Y.jsx)(ko, {
23249
+ className: "default-tt dc__mxw-500",
23250
+ arrow: !1,
23251
+ placement: "top-start",
23252
+ content: /* @__PURE__ */ (0, Y.jsx)(GO, {
23253
+ imagePath: e,
23254
+ registryName: t
23255
+ }),
23256
+ children: n
23257
+ }), d = () => i ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23258
+ className: "material-history__info flex left fs-13 dc__gap-8",
23259
+ children: [/* @__PURE__ */ (0, Y.jsx)(I, {
23260
+ name: "ic-rocket-launch",
23261
+ color: "N600"
23262
+ }), /* @__PURE__ */ (0, Y.jsx)("span", {
23263
+ className: "fs-13 fw-4",
23264
+ children: i
23265
+ })]
23266
+ }) : null, f = () => !a || !o ? null : a === fo.system ? /* @__PURE__ */ (0, Y.jsxs)("div", {
23265
23267
  className: "material-history__deployed-by flex left",
23266
23268
  children: [/* @__PURE__ */ (0, Y.jsx)(WO, { className: "icon-dim-16 mr-6" }), /* @__PURE__ */ (0, Y.jsx)("span", {
23267
23269
  className: "fs-13 fw-4",
@@ -23280,18 +23282,25 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23280
23282
  children: a
23281
23283
  })
23282
23284
  })]
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 = {
23285
+ });
23286
+ return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [
23287
+ /* @__PURE__ */ (0, Y.jsx)("div", {
23288
+ className: "flex left column",
23289
+ children: s ?? /* @__PURE__ */ (0, Y.jsx)(Ca, {
23290
+ condition: !!e,
23291
+ wrap: u,
23292
+ children: /* @__PURE__ */ (0, Y.jsxs)("div", {
23293
+ className: "commit-hash commit-hash--docker dc__gap-8",
23294
+ "data-testid": "cd-trigger-modal-image-value",
23295
+ children: [/* @__PURE__ */ (0, Y.jsx)(Wh, { registryType: n }), r]
23296
+ })
23297
+ })
23298
+ }),
23299
+ l,
23300
+ f(),
23301
+ c ?? d()
23302
+ ] });
23303
+ }, qO = {
23295
23304
  ACTIVE: "Active on",
23296
23305
  VIRTUAL_ENV: "Last deployed on",
23297
23306
  FAILED: "Last deployment failed on",
@@ -23454,7 +23463,17 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23454
23463
  children: r
23455
23464
  })
23456
23465
  }), ek = ({ isSecurityModuleInstalled: e, artifactId: t, applicationId: n, environmentId: r, changesCard: i, isScanned: a, isScanEnabled: o, SecurityModalSidebar: s }) => {
23457
- let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null);
23466
+ let [c, l] = J(!1), [u, d] = J(la.Changes), [f, p] = J(null), m = () => {
23467
+ l(!c);
23468
+ }, h = () => c ? u === la.Changes ? i : /* @__PURE__ */ (0, Y.jsx)(Vw, {
23469
+ isScanned: a,
23470
+ isScanEnabled: o,
23471
+ artifactId: t,
23472
+ applicationId: n,
23473
+ environmentId: r,
23474
+ setVulnerabilityCount: p,
23475
+ SecurityModalSidebar: s
23476
+ }) : null;
23458
23477
  return /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsxs)("ul", {
23459
23478
  className: `tab-list tab-list--vulnerability ${c ? "" : "tab-bottom-radius"}`,
23460
23479
  children: [c && (e ? /* @__PURE__ */ (0, Y.jsxs)(Y.Fragment, { children: [/* @__PURE__ */ (0, Y.jsx)($O, {
@@ -23476,24 +23495,14 @@ var WD = ({ id: e, className: t, isConnectable: n, children: r }) => {
23476
23495
  type: "button",
23477
23496
  className: "material-history__changes-btn",
23478
23497
  "data-testid": c ? "collapse-show-info" : "collapse-hide-info",
23479
- onClick: () => {
23480
- l(!c);
23481
- },
23498
+ onClick: m,
23482
23499
  children: [c ? "Hide info" : "Show more info", /* @__PURE__ */ (0, Y.jsx)(xn, {
23483
23500
  className: "icon-dim-24 rotate fcn-6",
23484
23501
  style: { "--rotateBy": c ? "-180deg" : "0deg" }
23485
23502
  })]
23486
23503
  })
23487
23504
  })]
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] });
23505
+ }), h()] });
23497
23506
  }, tk = (e) => /* @__PURE__ */ (0, Y.jsxs)("svg", {
23498
23507
  width: 12,
23499
23508
  height: 12,
@@ -26379,6 +26388,10 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26379
26388
  }, []);
26380
26389
  let d = (t) => {
26381
26390
  o(t), u(t[0]), e(t[0]?.chartRefId);
26391
+ }, f = (e) => {
26392
+ i(e), d(he(t, e));
26393
+ }, p = (t) => {
26394
+ u(t), e(t.chartRefId);
26382
26395
  };
26383
26396
  return /* @__PURE__ */ (0, Y.jsxs)("div", {
26384
26397
  className: "flex left",
@@ -26392,9 +26405,7 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26392
26405
  inputId: "chart-type-select",
26393
26406
  value: r ?? s[0],
26394
26407
  options: s,
26395
- onChange: (e) => {
26396
- i(e), d(he(t, e));
26397
- },
26408
+ onChange: f,
26398
26409
  variant: Ws.COMPACT
26399
26410
  })]
26400
26411
  }), /* @__PURE__ */ (0, Y.jsxs)("div", {
@@ -26407,9 +26418,7 @@ var yj = ({ breadcrumbs: e, path: t, sep: n = "/", className: r = "dc__devtron-b
26407
26418
  inputId: "chart-version-select",
26408
26419
  value: l ?? a[0],
26409
26420
  options: a,
26410
- onChange: (t) => {
26411
- u(t), e(t.chartRefId);
26412
- },
26421
+ onChange: p,
26413
26422
  variant: Ws.COMPACT
26414
26423
  })]
26415
26424
  })]
@@ -26436,9 +26445,15 @@ function Sj(e, t, n = []) {
26436
26445
  //#region src/Common/DebouncedSearch/DebouncedSearch.tsx
26437
26446
  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 }) {
26438
26447
  let [d, f] = J("");
26439
- return G(() => {
26448
+ G(() => {
26449
+ f("");
26450
+ }, [c]);
26451
+ let p = (e) => {
26452
+ f(e.target.value);
26453
+ }, m = () => {
26440
26454
  f("");
26441
- }, [c]), Sj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
26455
+ };
26456
+ return Sj(() => e(d), s, [d]), /* @__PURE__ */ (0, Y.jsxs)("div", {
26442
26457
  className: i,
26443
26458
  children: [
26444
26459
  t && /* @__PURE__ */ (0, Y.jsx)(t, { className: a }),
@@ -26447,18 +26462,14 @@ function Cj({ onSearch: e, Icon: t, children: n, placeholder: r, containerClass:
26447
26462
  className: o,
26448
26463
  placeholder: r ?? "Search",
26449
26464
  value: d,
26450
- onChange: (e) => {
26451
- f(e.target.value);
26452
- },
26465
+ onChange: p,
26453
26466
  autoFocus: u,
26454
26467
  "data-testid": "debounced-search"
26455
26468
  }),
26456
26469
  l && !!d && /* @__PURE__ */ (0, Y.jsx)("button", {
26457
26470
  type: "button",
26458
26471
  className: "dc__outline-none-imp dc__no-border p-0 bg__secondary flex",
26459
- onClick: () => {
26460
- f("");
26461
- },
26472
+ onClick: m,
26462
26473
  "data-testid": "clear-search",
26463
26474
  children: /* @__PURE__ */ (0, Y.jsx)(Zh, { className: "icon-dim-20 icon-n6" })
26464
26475
  }),
@@ -27035,7 +27046,24 @@ var Ej = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
27035
27046
  breaks: !0,
27036
27047
  disableEscapedText: !0,
27037
27048
  className: "mh-150 pt-8 fs-14 fw-4 cn-9"
27038
- });
27049
+ }), x = (e, t, n, r) => e.name === "edit" || e.name === "preview" ? /* @__PURE__ */ (0, Y.jsx)("button", {
27050
+ type: "button",
27051
+ className: "markdown-editor__tab-button flex dc__transparent p-4",
27052
+ onClick: () => n(e, e.name),
27053
+ disabled: t,
27054
+ children: e.icon
27055
+ }, r) : /* @__PURE__ */ (0, Y.jsx)(F, {
27056
+ alwaysShowTippyOnHover: !!e.buttonProps?.title,
27057
+ content: e.buttonProps?.title,
27058
+ placement: "top",
27059
+ children: /* @__PURE__ */ (0, Y.jsx)("button", {
27060
+ type: "button",
27061
+ className: "flex dc__transparent p-4 mr-4",
27062
+ onClick: () => n(e, e.name),
27063
+ disabled: t,
27064
+ children: e.icon
27065
+ })
27066
+ }, r);
27039
27067
  return /* @__PURE__ */ (0, Y.jsx)("div", {
27040
27068
  "data-testid": "generic-description-wrapper",
27041
27069
  className: `flexbox-col markdown-editor__wrapper bg__primary ${d ? "br-4 border__primary" : ""}`,
@@ -27047,24 +27075,7 @@ var Ej = ({ testId: e, showIconOnly: t = !0, disabled: n = !1, title: r, isJobVi
27047
27075
  preview: p === "preview" ? "preview" : "edit",
27048
27076
  components: {
27049
27077
  preview: b,
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)
27078
+ toolbar: x
27068
27079
  }
27069
27080
  }), /* @__PURE__ */ (0, Y.jsx)("div", {
27070
27081
  className: "flexbox dc__content-end pt-12 pb-12 dc__contain--paint border__primary--top",
@@ -27467,17 +27478,20 @@ var Qj = (e) => /* @__PURE__ */ (0, Y.jsx)("svg", {
27467
27478
  })
27468
27479
  ]
27469
27480
  });
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) => {
27481
+ }, nM = ({ handleEditClick: e }) => {
27482
+ let t = (t) => {
27474
27483
  U(t), e();
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, {
27484
+ };
27485
+ return /* @__PURE__ */ (0, Y.jsxs)("button", {
27486
+ className: "dc__transparent px-8 py-4 flexbox dc__align-items-center dc__gap-4 dc__border-dashed--n3 br-4",
27487
+ "data-testid": "add-tags-button",
27488
+ onClick: t,
27489
+ children: [/* @__PURE__ */ (0, Y.jsx)(Zs, { className: "icon-dim-16 cn-6 dc__no-shrink" }), /* @__PURE__ */ (0, Y.jsx)("span", {
27490
+ className: "cn-7 lh-16",
27491
+ children: "Add labels/comment"
27492
+ })]
27493
+ });
27494
+ }, rM = ({ text: e, onClickHandler: t, dataTestId: n, rootClassName: r, interactive: i = !1, fontSize: a = 13, tippyContent: o = null }) => /* @__PURE__ */ (0, Y.jsx)(F, {
27481
27495
  content: o || e,
27482
27496
  placement: "bottom",
27483
27497
  className: "mxh-210 dc__overflow-auto dc__word-break",