@devtron-labs/devtron-fe-common-lib 1.8.10 → 1.8.11

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.
@@ -6,7 +6,7 @@ var rp = (e, s, n) => s in e ? ap(e, s, { enumerable: !0, configurable: !0, writ
6
6
  var me = (e, s, n) => rp(e, typeof s != "symbol" ? s + "" : s, n), $i = (e, s, n) => s.has(e) || Bi("Cannot " + n);
7
7
  var Ps = (e, s, n) => ($i(e, s, "read from private field"), n ? n.call(e) : s.get(e)), ga = (e, s, n) => s.has(e) ? Bi("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), xa = (e, s, n, a) => ($i(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
8
8
  import { j as t, i as _e, n as op, Q as $r, k as ip, D as Ba, d as Fl, h as cp, A as lp, R as dp, s as up, c as mp, S as Fi, a as pp, b as _p, y as fp, l as $a, e as hp, f as gp, g as xp, m as Ep, o as Vi, p as Np, q as Gi, r as Cp, t as bp, u as Tp, v as Sp, w as Ho, x as vp, z as Hi, B as Vl, C as Yo, E as Ap, V as Ip, F as yp, G as Rp, H as Gl, I as jp, J as Op, K as Hl, L as Yi, M as Lp, N as wp, O as Ki, P as Dp, T as Pp, U as Yl, W as kp, X as Wi, Y as nn, Z as $e, _ as Mp, $ as Up, a0 as Bp, a1 as $p, a2 as zi, a3 as Fp, a4 as Vp, a5 as Gp, a6 as Hp, a7 as Yp, a8 as Kp, a9 as Wp, aa as Kl, ab as Wl, ac as zl, ad as zp, ae as qp, af as Xp, ag as Jp, ah as Us } from "./@vendor-C6JiJKw0.js";
9
- import Ce, { useState as R, cloneElement as Fa, useRef as Y, useEffect as P, Component as fr, Children as qi, createElement as Ko, useMemo as Q, useCallback as ze, createContext as kt, useContext as cs, Fragment as Ks, memo as ht, useReducer as Zp, createRef as fs } from "react";
9
+ import Ce, { useState as R, cloneElement as Fa, useRef as Y, useEffect as P, Component as fr, Children as qi, createElement as Ko, useMemo as Q, useCallback as ze, createContext as kt, useContext as ls, Fragment as Ks, memo as ht, useReducer as Zp, createRef as hs } from "react";
10
10
  import { ReactComponent as Qn } from "./assets/ic-warning.ecf7ff97.svg";
11
11
  import { ReactComponent as Qp } from "./assets/ic-cpu.8be677ee.svg";
12
12
  import { ReactComponent as e_ } from "./assets/ic-memory.c4159f96.svg";
@@ -20,7 +20,7 @@ import Dt, { parse as o_, YAMLParseError as i_ } from "yaml";
20
20
  import { ReactComponent as c_ } from "./assets/ic-info-filled-override.99e8094a.svg";
21
21
  import { ReactComponent as l_ } from "./assets/ic-var-initial.afdaa854.svg";
22
22
  import { ReactComponent as zo } from "./assets/ic-info-outline.29f1089c.svg";
23
- import d_, { ReactComponent as Ts } from "./assets/ic-chevron-down.fc70d7a7.svg";
23
+ import d_, { ReactComponent as Ss } from "./assets/ic-chevron-down.fc70d7a7.svg";
24
24
  import { ReactComponent as u_ } from "./assets/ic-check-square.2a3d3fb9.svg";
25
25
  import { ReactComponent as m_ } from "./assets/ic-check-all.0376437d.svg";
26
26
  import { ReactComponent as at } from "./assets/ic-close.43adc42a.svg";
@@ -32,7 +32,7 @@ import { ReactComponent as __ } from "./assets/ic-bot.f1d4abcc.svg";
32
32
  import { ReactComponent as Zl } from "./assets/ic-vulnerability-not-found.7d75cc30.svg";
33
33
  import { ReactComponent as f_ } from "./assets/ic-shield-warning-outline.e6832dbc.svg";
34
34
  import { ReactComponent as h_ } from "./assets/ic-shield-check.ecde083d.svg";
35
- import { ReactComponent as ls } from "./assets/ic-error-exclamation.c224de09.svg";
35
+ import { ReactComponent as ds } from "./assets/ic-error-exclamation.c224de09.svg";
36
36
  import { ReactComponent as Ql } from "./assets/ic-caret-down-small.66339dda.svg";
37
37
  import { ReactComponent as ed } from "./assets/ic-caret-left-small.fe00c98d.svg";
38
38
  import { ReactComponent as Xo } from "./assets/ic-clock.c21a2d14.svg";
@@ -42,7 +42,7 @@ import { ReactComponent as gr } from "./assets/ic-pencil.c75a6acc.svg";
42
42
  import { ReactComponent as g_ } from "./assets/ic-charts.f41e185f.svg";
43
43
  import { ReactComponent as xr } from "./assets/ic-add.cfaa779b.svg";
44
44
  import { ReactComponent as x_ } from "./assets/ic-k8s-job.f4414c10.svg";
45
- import Ss from "react-ga4";
45
+ import is from "react-ga4";
46
46
  import { ReactComponent as sd } from "./assets/ic-medium-paintbucket.38ef52c1.svg";
47
47
  import { ReactComponent as Gt } from "./assets/ic-caret-down.1666c029.svg";
48
48
  import { ReactComponent as gn } from "./assets/ic-help-outline.9c012a0c.svg";
@@ -118,7 +118,7 @@ import { ReactComponent as sf } from "./assets/ic-in-progress.53ef18ae.svg";
118
118
  import { ReactComponent as nf } from "./assets/ic-download.c30437cd.svg";
119
119
  import af from "./assets/ic-folder.051cd30d.svg";
120
120
  import gd from "./assets/no-artifact.fd2d84d9.webp";
121
- import rf, { ReactComponent as ds } from "./assets/ic-cross.01e03666.svg";
121
+ import rf, { ReactComponent as us } from "./assets/ic-cross.01e03666.svg";
122
122
  import { ReactComponent as xd } from "./assets/ic-arrow-counter-clockwise.01cbb0e1.svg";
123
123
  import { ReactComponent as of } from "./assets/ic-minus.df865aaf.svg";
124
124
  import { ReactComponent as cf } from "./assets/ic-enter.cab07082.svg";
@@ -489,7 +489,7 @@ const FO = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2), Pd = Symbol(
489
489
  `The element at this index remains unchanged from the original object.
490
490
  This symbol is used by @buildObjectFromPath & later consumed by @recursivelyRemoveSymbolFromArraysInObject`
491
491
  );
492
- var _s = /* @__PURE__ */ ((e) => (e.google = "google", e.github = "github", e.gitlab = "gitlab", e.microsoft = "microsoft", e.ldap = "ldap", e.oidc = "oidc", e.openshift = "openshift", e))(_s || {});
492
+ var fs = /* @__PURE__ */ ((e) => (e.google = "google", e.github = "github", e.gitlab = "gitlab", e.microsoft = "microsoft", e.ldap = "ldap", e.oidc = "oidc", e.openshift = "openshift", e))(fs || {});
493
493
  class Cg {
494
494
  constructor(s) {
495
495
  me(this, "code");
@@ -514,7 +514,7 @@ const wn = {
514
514
  Security: "SECURITY",
515
515
  Changes: "CHANGES"
516
516
  };
517
- var Bt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Bt || {}), kd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(kd || {}), bg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(bg || {}), Tg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Tg || {}), Bn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Bn || {}), Sg = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(vg || {}), go = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(go || {}), Ag = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(Ag || {}), Md = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Md || {}), Ig = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Ig || {}), rn = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(rn || {}), yg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(yg || {}), Gs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Gs || {}), xs = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(xs || {}), Hn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Hn || {}), xo = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(xo || {}), Rg = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(Rg || {});
517
+ var Bt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Bt || {}), kd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(kd || {}), bg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(bg || {}), Tg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Tg || {}), Bn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Bn || {}), Sg = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(vg || {}), go = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(go || {}), Ag = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(Ag || {}), Md = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Md || {}), Ig = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Ig || {}), rn = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(rn || {}), yg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(yg || {}), Gs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Gs || {}), Es = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Es || {}), Hn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Hn || {}), xo = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(xo || {}), Rg = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(Rg || {});
518
518
  const nc = {
519
519
  100: "Continue",
520
520
  101: "Switching Protocols",
@@ -1003,7 +1003,7 @@ const Ye = {
1003
1003
  var Xg = /* @__PURE__ */ ((e) => (e[e.DEVTRON_APP = 0] = "DEVTRON_APP", e[e.HELM_APP = 1] = "HELM_APP", e[e.EXTERNAL_ARGO_APP = 2] = "EXTERNAL_ARGO_APP", e[e.EXTERNAL_FLUX_APP = 3] = "EXTERNAL_FLUX_APP", e))(Xg || {});
1004
1004
  const rc = /\x1B\[.*?m/g;
1005
1005
  var D = /* @__PURE__ */ ((e) => (e.xxs = "xxs", e.xs = "xs", e.small = "small", e.medium = "medium", e.large = "large", e.xl = "xl", e))(D || {});
1006
- const hs = {
1006
+ const gs = {
1007
1007
  xxs: "py-1 fs-12 lh-20",
1008
1008
  xs: "py-1 fs-12 lh-20",
1009
1009
  small: "py-3 fs-12 lh-20",
@@ -1073,7 +1073,7 @@ const KO = Object.values(
1073
1073
  }) => /* @__PURE__ */ t.jsxs(
1074
1074
  "div",
1075
1075
  {
1076
- className: `details-loader bg__primary flex column fs-14 fw-6 ${n ? "h-100" : "details-loader-height"}`,
1076
+ className: `bg__primary flex column fs-14 fw-6 ${n ? "h-100" : ""}`,
1077
1077
  style: a,
1078
1078
  "data-testid": "details-progressing",
1079
1079
  children: [
@@ -1126,12 +1126,12 @@ const KO = Object.values(
1126
1126
  };
1127
1127
  var fe = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(fe || {}), Te = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e))(Te || {}), Kn = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e))(Kn || {});
1128
1128
  const rx = {
1129
- [D.xxs]: `${hs[D.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
1130
- [D.xs]: `${hs[D.xs]} px-9 fw-6 dc__gap-6 mw-48`,
1131
- [D.small]: `${hs[D.small]} px-9 fw-6 dc__gap-8 mw-48`,
1132
- [D.medium]: `${hs[D.medium]} px-11 fw-6 dc__gap-8 mw-48`,
1133
- [D.large]: `${hs[D.large]} px-13 fw-6 dc__gap-8 mw-64`,
1134
- [D.xl]: `${hs[D.xl]} px-15 fw-6 dc__gap-12 mw-64`
1129
+ [D.xxs]: `${gs[D.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
1130
+ [D.xs]: `${gs[D.xs]} px-9 fw-6 dc__gap-6 mw-48`,
1131
+ [D.small]: `${gs[D.small]} px-9 fw-6 dc__gap-8 mw-48`,
1132
+ [D.medium]: `${gs[D.medium]} px-11 fw-6 dc__gap-8 mw-48`,
1133
+ [D.large]: `${gs[D.large]} px-13 fw-6 dc__gap-8 mw-64`,
1134
+ [D.xl]: `${gs[D.xl]} px-15 fw-6 dc__gap-12 mw-64`
1135
1135
  }, ox = {
1136
1136
  [D.xxs]: "p-1",
1137
1137
  [D.xs]: "p-3",
@@ -1195,8 +1195,8 @@ const Hd = {
1195
1195
  icon: m = null,
1196
1196
  ariaLabel: p = null,
1197
1197
  showAriaLabelInTippy: _ = !0,
1198
- fullWidth: E = !1,
1199
- isOpacityHoverChild: x = !1,
1198
+ fullWidth: x = !1,
1199
+ isOpacityHoverChild: E = !1,
1200
1200
  triggerAutoClickTimestamp: h,
1201
1201
  ...g
1202
1202
  }) => {
@@ -1226,7 +1226,7 @@ const Hd = {
1226
1226
  {
1227
1227
  ...g,
1228
1228
  disabled: v,
1229
- className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${lx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${v ? "dc__disabled" : ""} ${E ? "w-100" : ""}`,
1229
+ className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${E ? "dc__opacity-hover--child" : ""} ${lx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${v ? "dc__disabled" : ""} ${x ? "w-100" : ""}`,
1230
1230
  "data-testid": e,
1231
1231
  "aria-label": p || (l ? s : void 0),
1232
1232
  elementRef: A,
@@ -1260,7 +1260,7 @@ const Hd = {
1260
1260
  useInfoIcon: c = !1,
1261
1261
  progressingProps: l
1262
1262
  }) => {
1263
- const d = () => l ? /* @__PURE__ */ t.jsx(ke, { ...l }) : c ? /* @__PURE__ */ t.jsx(zo, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
1263
+ const d = () => l ? /* @__PURE__ */ t.jsx(ke, { ...l }) : c ? /* @__PURE__ */ t.jsx(zo, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
1264
1264
  return /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${i || ""}`, children: [
1265
1265
  d(),
1266
1266
  /* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
@@ -1652,7 +1652,7 @@ const ci = (e) => {
1652
1652
  y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${O ? "mr-12" : ""}`, children: y }),
1653
1653
  T && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-20" }) }),
1654
1654
  O && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
1655
- ds,
1655
+ us,
1656
1656
  {
1657
1657
  className: `icon-dim-16 cursor ${r ? "fcn-9" : "fcn-0"}`,
1658
1658
  onClick: c
@@ -1701,7 +1701,7 @@ const ci = (e) => {
1701
1701
  }
1702
1702
  ) })
1703
1703
  ] });
1704
- }, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: E, trigger: x, animation: h, duration: g, children: f } = e;
1704
+ }, { className: u, placement: m, arrow: p, interactive: _, showOnCreate: x, trigger: E, animation: h, duration: g, children: f } = e;
1705
1705
  return /* @__PURE__ */ t.jsx(
1706
1706
  _e,
1707
1707
  {
@@ -1710,10 +1710,10 @@ const ci = (e) => {
1710
1710
  interactive: _ || !1,
1711
1711
  placement: m || "top",
1712
1712
  content: d(),
1713
- trigger: x || "mouseenter",
1713
+ trigger: E || "mouseenter",
1714
1714
  onMount: i,
1715
1715
  onClickOutside: (N, b) => c(b),
1716
- showOnCreate: E || !1,
1716
+ showOnCreate: x || !1,
1717
1717
  animation: h || "fade",
1718
1718
  duration: g || 300,
1719
1719
  visible: e.visible,
@@ -1764,7 +1764,7 @@ const ci = (e) => {
1764
1764
  )
1765
1765
  }
1766
1766
  );
1767
- var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), Se = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Se || {}), Wd = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(Wd || {}), Cs = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(Cs || {}), zd = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(zd || {}), Wa = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Wa || {}), Wn = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(Wn || {}), So = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(So || {}), vo = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(vo || {}), Et = /* @__PURE__ */ ((e) => (e.ADD_TARGET_PLATFORM = "add_target_platform", e.REMOVE_TARGET_PLATFORM = "remove_target_platform", e.RENAME_TARGET_PLATFORM = "rename_target_platform", e.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", e.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", e.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", e.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", e.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", e.ADD_TOLERANCE_ITEM = "add_tolerance_item", e.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", e.ADD_CM_CS_ITEM = "add_cm_cs_item", e.SYNC_CM_CS_ITEM = "sync_cm_cs_item", e.DELETE_CM_CS_ITEM = "delete_cm_cs_item", e))(Et || {}), qd = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(qd || {});
1767
+ var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), Se = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Se || {}), Wd = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(Wd || {}), bs = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(bs || {}), zd = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(zd || {}), Wa = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Wa || {}), Wn = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(Wn || {}), So = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(So || {}), vo = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(vo || {}), Et = /* @__PURE__ */ ((e) => (e.ADD_TARGET_PLATFORM = "add_target_platform", e.REMOVE_TARGET_PLATFORM = "remove_target_platform", e.RENAME_TARGET_PLATFORM = "rename_target_platform", e.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", e.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", e.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", e.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", e.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", e.ADD_TOLERANCE_ITEM = "add_tolerance_item", e.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", e.ADD_CM_CS_ITEM = "add_cm_cs_item", e.SYNC_CM_CS_ITEM = "sync_cm_cs_item", e.DELETE_CM_CS_ITEM = "delete_cm_cs_item", e))(Et || {}), qd = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(qd || {});
1768
1768
  const Is = {
1769
1769
  // Will not enforce any decimal specification on input field
1770
1770
  STEP: "any",
@@ -1921,7 +1921,7 @@ const Is = {
1921
1921
  keyToPersist: "limit",
1922
1922
  keyToPersistConfigType: U.MEMORY_LIMIT
1923
1923
  }
1924
- }, Tx = zd.NO_SCHEDULE, Sx = Cs.EQUALS, vx = {
1924
+ }, Tx = zd.NO_SCHEDULE, Sx = bs.EQUALS, vx = {
1925
1925
  [U.BUILD_TIMEOUT]: !0,
1926
1926
  [U.CONFIG_MAP]: !0,
1927
1927
  [U.SECRET]: !0
@@ -2356,15 +2356,15 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2356
2356
  selectOption: o,
2357
2357
  isDisabled: i,
2358
2358
  isSelected: c
2359
- } = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, E = (x) => {
2360
- x.preventDefault(), x.stopPropagation(), o(a);
2359
+ } = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, x = (E) => {
2360
+ E.preventDefault(), E.stopPropagation(), o(a);
2361
2361
  };
2362
2362
  return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ce, { ...Ox(m), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
2363
2363
  r && !_ && /* @__PURE__ */ t.jsx(
2364
2364
  Ds,
2365
2365
  {
2366
2366
  onChange: nt,
2367
- onClick: E,
2367
+ onClick: x,
2368
2368
  isChecked: c || !1,
2369
2369
  value: ut.CHECKED,
2370
2370
  rootClassName: "mb-0 w-20 p-2 dc__align-self-start dc__no-shrink",
@@ -2414,7 +2414,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2414
2414
  getIsOptionValid: e,
2415
2415
  ...s
2416
2416
  }) => {
2417
- const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(ls, {});
2417
+ const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(ds, {});
2418
2418
  return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4 mw-0 dc__truncate", children: [
2419
2419
  o && /* @__PURE__ */ t.jsx(
2420
2420
  "div",
@@ -2666,8 +2666,8 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2666
2666
  reloadOptionList: m,
2667
2667
  menuPosition: p = "fixed",
2668
2668
  variant: _ = ys.DEFAULT,
2669
- disableDescriptionEllipsis: E = !1,
2670
- multiSelectProps: x = {},
2669
+ disableDescriptionEllipsis: x = !1,
2670
+ multiSelectProps: E = {},
2671
2671
  isMulti: h,
2672
2672
  name: g,
2673
2673
  classNamePrefix: f,
@@ -2706,7 +2706,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2706
2706
  isGroupHeadingSelectable: te = !1,
2707
2707
  getIsOptionValid: je = () => !0,
2708
2708
  customDisplayText: xt = null
2709
- } = x, jt = ie && !xt, ha = h && jt ? D.large : i, Ur = !h && o, W = !N && b, Ie = Q(
2709
+ } = E, jt = ie && !xt, ha = h && jt ? D.large : i, Ur = !h && o, W = !N && b, Ie = Q(
2710
2710
  () => Rx({
2711
2711
  error: e,
2712
2712
  size: ha,
@@ -2718,13 +2718,13 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2718
2718
  }),
2719
2719
  [e, ha, d, _, te, v]
2720
2720
  ), pe = (we) => {
2721
- const us = we?.trim();
2722
- return S && !!us && !fn(
2721
+ const ms = we?.trim();
2722
+ return S && !!ms && !fn(
2723
2723
  Ae,
2724
- us,
2724
+ ms,
2725
2725
  null,
2726
2726
  K
2727
- ) && !fn(Ee, us, null, K);
2727
+ ) && !fn(Ee, ms, null, K);
2728
2728
  }, Ge = ze(
2729
2729
  (we) => /* @__PURE__ */ t.jsx(
2730
2730
  kx,
@@ -2736,17 +2736,17 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2736
2736
  ),
2737
2737
  [l, y]
2738
2738
  ), et = ze(
2739
- (we) => /* @__PURE__ */ t.jsx(Ux, { ...we, disableDescriptionEllipsis: E }),
2740
- [E]
2739
+ (we) => /* @__PURE__ */ t.jsx(Ux, { ...we, disableDescriptionEllipsis: x }),
2740
+ [x]
2741
2741
  ), Ot = (we) => /* @__PURE__ */ t.jsx($x, { ...we, getIsOptionValid: je }), Br = ze(
2742
2742
  (we) => /* @__PURE__ */ t.jsx(Vx, { ...we, isGroupHeadingSelectable: te }),
2743
2743
  [te]
2744
2744
  ), Xm = () => u ? /* @__PURE__ */ t.jsx(Js, { reload: m }) : O ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No options" }) : null, Jm = (we) => /* @__PURE__ */ t.jsx(_e, { content: c, placement: "top", className: "default-tt", arrow: !1, children: we }), Zm = (we) => {
2745
- const us = we?.trim();
2746
- us && j?.(us);
2747
- }, Qm = (we, us) => {
2745
+ const ms = we?.trim();
2746
+ ms && j?.(ms);
2747
+ }, Qm = (we, ms) => {
2748
2748
  if ($.onInputChange) {
2749
- $.onInputChange(we, us);
2749
+ $.onInputChange(we, ms);
2750
2750
  return;
2751
2751
  }
2752
2752
  k(we);
@@ -2879,7 +2879,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
2879
2879
  b && b.scrollHeight > f && (f = b.scrollHeight);
2880
2880
  }), r && f < r && (f = r), o && f > o && (f = o), _(f);
2881
2881
  }, 500, [d]);
2882
- const x = (f, { action: N }) => {
2882
+ const E = (f, { action: N }) => {
2883
2883
  N === Gn.inputChange ? (u(f), f || a?.(null, {
2884
2884
  action: "remove-value",
2885
2885
  removedValue: e
@@ -2913,7 +2913,7 @@ ${d.slice(b)}`;
2913
2913
  selectRef: m,
2914
2914
  inputValue: d,
2915
2915
  value: e,
2916
- onInputChange: x,
2916
+ onInputChange: E,
2917
2917
  controlShouldRenderValue: !1,
2918
2918
  onChange: a,
2919
2919
  onKeyDown: g,
@@ -3000,16 +3000,16 @@ const tu = (e) => ({
3000
3000
  imageReleaseTags: d.imageReleaseTags,
3001
3001
  // It is going to be null but required in type so can't remove
3002
3002
  lastExecution: d.lastExecution,
3003
- materialInfo: d.material_info ? d.material_info.map((E) => ({
3004
- modifiedTime: E.modifiedTime ? Pe(E.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
3005
- commitLink: aa(E.url, E.revision),
3006
- author: E.author || "",
3007
- message: E.message || "",
3008
- revision: E.revision || "",
3009
- tag: E.tag || "",
3010
- webhookData: E.webhookData || "",
3011
- url: E.url || "",
3012
- branch: (d.ciConfigureSourceType === Ht.WEBHOOK ? d.ciConfigureSourceValue : E.branch) || "",
3003
+ materialInfo: d.material_info ? d.material_info.map((x) => ({
3004
+ modifiedTime: x.modifiedTime ? Pe(x.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
3005
+ commitLink: aa(x.url, x.revision),
3006
+ author: x.author || "",
3007
+ message: x.message || "",
3008
+ revision: x.revision || "",
3009
+ tag: x.tag || "",
3010
+ webhookData: x.webhookData || "",
3011
+ url: x.url || "",
3012
+ branch: (d.ciConfigureSourceType === Ht.WEBHOOK ? d.ciConfigureSourceValue : x.branch) || "",
3013
3013
  type: d.ciConfigureSourceType || ""
3014
3014
  })) : [],
3015
3015
  filterState: p,
@@ -3297,7 +3297,7 @@ const Nc = () => ({
3297
3297
  }
3298
3298
  }
3299
3299
  return S;
3300
- })(), d = (S) => s ? s(S) : {}, { pageSize: u, pageNumber: m, searchKey: p, sortBy: _, sortOrder: E, parsedParams: x } = Q(() => {
3300
+ })(), d = (S) => s ? s(S) : {}, { pageSize: u, pageNumber: m, searchKey: p, sortBy: _, sortOrder: x, parsedParams: E } = Q(() => {
3301
3301
  const S = l.get(bc), j = l.get(Kr), C = l.get(Tc), O = l.get(vc), L = l.get(Sc) || e || "", B = Object.values(ge).includes(O) ? O : ge.ASC, H = d(l);
3302
3302
  return {
3303
3303
  pageSize: Number(S) || an,
@@ -3334,15 +3334,15 @@ const Nc = () => ({
3334
3334
  },
3335
3335
  offset: h,
3336
3336
  sortBy: _,
3337
- sortOrder: E,
3337
+ sortOrder: x,
3338
3338
  handleSorting: (S) => {
3339
3339
  let j;
3340
- S === _ && E === ge.ASC ? j = ge.DESC : j = ge.ASC, f(Sc, S), f(vc, j), N();
3340
+ S === _ && x === ge.ASC ? j = ge.DESC : j = ge.ASC, f(Sc, S), f(vc, j), N();
3341
3341
  },
3342
3342
  clearFilters: () => {
3343
3343
  g("", {}), n && localStorage.removeItem(n);
3344
3344
  },
3345
- ...x,
3345
+ ...E,
3346
3346
  updateSearchParams: (S, j = {}) => {
3347
3347
  Object.keys(S).forEach((C) => {
3348
3348
  Od.includes(S[C]) ? l.delete(C) : Array.isArray(S[C]) ? (l.delete(C), S[C].forEach((O) => {
@@ -3351,7 +3351,7 @@ const Nc = () => ({
3351
3351
  }), Cc(n, JSON.stringify(d(l))), N(j);
3352
3352
  }
3353
3353
  };
3354
- }, au = kt(null), ra = () => cs(au), Ta = (e) => {
3354
+ }, au = kt(null), ra = () => ls(au), Ta = (e) => {
3355
3355
  if (!e)
3356
3356
  throw new Error("keys undefined");
3357
3357
  const s = e.map((n) => `${n}`.toUpperCase()).sort();
@@ -3404,16 +3404,16 @@ const Nc = () => ({
3404
3404
  Sa(f), f[f.length - 1]();
3405
3405
  }
3406
3406
  i.current.clear(), c.current > -1 && (clearTimeout(c.current), c.current = -1);
3407
- }, []), E = ze((g) => {
3407
+ }, []), x = ze((g) => {
3408
3408
  s && g.preventDefault(), !(l.map((f) => f.toUpperCase()).indexOf(g.target.tagName.toUpperCase()) > -1 || g.target?.role === "textbox" || r.current) && (i.current.add(g.key.toUpperCase()), g.ctrlKey && i.current.add("CONTROL"), g.metaKey && i.current.add("META"), g.altKey && i.current.add("ALT"), g.shiftKey && i.current.add("SHIFT"), c.current === -1 && (c.current = setTimeout(() => {
3409
3409
  _();
3410
3410
  }, n ?? EE)));
3411
- }, []), x = ze(() => {
3411
+ }, []), E = ze(() => {
3412
3412
  i.current.clear();
3413
3413
  }, []);
3414
- P(() => (window.addEventListener("keydown", E), window.addEventListener("keyup", _), window.addEventListener("blur", x), () => {
3415
- window.removeEventListener("keydown", E), window.removeEventListener("keyup", _), window.removeEventListener("blur", x), c.current > -1 && clearTimeout(c.current);
3416
- }), [_, E, x]);
3414
+ P(() => (window.addEventListener("keydown", x), window.addEventListener("keyup", _), window.addEventListener("blur", E), () => {
3415
+ window.removeEventListener("keydown", x), window.removeEventListener("keyup", _), window.removeEventListener("blur", E), c.current > -1 && clearTimeout(c.current);
3416
+ }), [_, x, E]);
3417
3417
  const h = Q(
3418
3418
  () => ({
3419
3419
  registerShortcut: d,
@@ -3496,9 +3496,9 @@ const Nc = () => ({
3496
3496
  o(!0);
3497
3497
  }, _ = () => {
3498
3498
  o(!1);
3499
- }, E = (f) => {
3499
+ }, x = (f) => {
3500
3500
  c(structuredClone(f));
3501
- }, x = () => {
3501
+ }, E = () => {
3502
3502
  _(), c(structuredClone(e ?? []));
3503
3503
  }, h = () => {
3504
3504
  s(i), _();
@@ -3530,8 +3530,8 @@ const Nc = () => ({
3530
3530
  isMulti: !0,
3531
3531
  menuIsOpen: r,
3532
3532
  onMenuOpen: p,
3533
- onMenuClose: x,
3534
- onChange: E,
3533
+ onMenuClose: E,
3534
+ onChange: x,
3535
3535
  renderMenuListFooter: g,
3536
3536
  controlShouldRenderValue: !1,
3537
3537
  showSelectedOptionsCount: !0,
@@ -3569,18 +3569,18 @@ const Nc = () => ({
3569
3569
  value: zn(l) ? l : +l
3570
3570
  };
3571
3571
  p(f);
3572
- }, E = (g) => {
3572
+ }, x = (g) => {
3573
3573
  const f = {
3574
3574
  unit: c,
3575
3575
  value: g.currentTarget.value === "" ? null : +g.currentTarget.value
3576
3576
  };
3577
3577
  p(f);
3578
- }, x = Q(() => (Object.values(o)?.map((f) => ({
3578
+ }, E = Q(() => (Object.values(o)?.map((f) => ({
3579
3579
  label: f.name,
3580
3580
  value: String(f.conversionFactor)
3581
3581
  })) ?? []).sort((f, N) => Number(f.value) - Number(N.value)), [o]), h = Q(
3582
- () => x.find((g) => g.label === c),
3583
- [x, c]
3582
+ () => E.find((g) => g.label === c),
3583
+ [E, c]
3584
3584
  );
3585
3585
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 dc__mxw-420 w-100 dc__align-start", children: [
3586
3586
  s && /* @__PURE__ */ t.jsx(
@@ -3603,7 +3603,7 @@ const Nc = () => ({
3603
3603
  className: `form__input dc__no-right-border dc__no-right-radius ${u ? "dc__disabled" : ""}`,
3604
3604
  placeholder: n,
3605
3605
  value: zn(l) ? "" : l,
3606
- onChange: E,
3606
+ onChange: x,
3607
3607
  required: r,
3608
3608
  autoComplete: "off",
3609
3609
  disabled: u,
@@ -3617,7 +3617,7 @@ const Nc = () => ({
3617
3617
  inputId: `${e}-unit`,
3618
3618
  classNamePrefix: "build-infra-unit-select",
3619
3619
  name: `${e}-unit`,
3620
- options: x,
3620
+ options: E,
3621
3621
  value: h,
3622
3622
  onChange: _,
3623
3623
  isSearchable: !1,
@@ -4124,13 +4124,13 @@ const SL = (e, s = !1) => {
4124
4124
  [e]
4125
4125
  ), [d, u] = R(null), [m, p] = R(
4126
4126
  structuredClone(Xd)
4127
- ), [_, E] = R(!1);
4127
+ ), [_, x] = R(!1);
4128
4128
  P(() => {
4129
4129
  !o && i?.configurationUnits && i?.profile && (u({
4130
4130
  ...i.profile
4131
4131
  }), p(PE(r)));
4132
4132
  }, [i, o]);
4133
- const x = (f) => {
4133
+ const E = (f) => {
4134
4134
  const N = Object.keys(f || {}), b = Object.keys(i?.profile?.configurations || {});
4135
4135
  return N.concat(b).reduce((A, v) => (A[v] = !0, A), {});
4136
4136
  };
@@ -4254,7 +4254,7 @@ const SL = (e, s = !1) => {
4254
4254
  const { handleCaptureSnapshot: T } = N;
4255
4255
  A[Wn.TARGET_PLATFORM] = v ? jc(
4256
4256
  v,
4257
- x(b.configurations)
4257
+ E(b.configurations)
4258
4258
  ).message : "", b.configurations[v] = i.fallbackPlatformConfigurationMap[v] || // Here need to update target platform name for each configuration
4259
4259
  Object.entries(
4260
4260
  i.fallbackPlatformConfigurationMap[os]
@@ -4290,7 +4290,7 @@ const SL = (e, s = !1) => {
4290
4290
  }
4291
4291
  A[Wn.TARGET_PLATFORM] = jc(
4292
4292
  S,
4293
- x(b.configurations)
4293
+ E(b.configurations)
4294
4294
  ).message;
4295
4295
  const O = i.fallbackPlatformConfigurationMap[S] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
4296
4296
  i.fallbackPlatformConfigurationMap[os];
@@ -4398,14 +4398,14 @@ const SL = (e, s = !1) => {
4398
4398
  const { id: T, key: S, effect: j, operator: C, value: O } = N, w = I[U.TOLERANCE].value.find(
4399
4399
  (q) => q.id === T
4400
4400
  );
4401
- w ? (w.key = S, w.effect = j, w.operator = C, w.value = O, C === Cs.EXISTS && delete w.value) : I[U.TOLERANCE].value.unshift({
4401
+ w ? (w.key = S, w.effect = j, w.operator = C, w.value = O, C === bs.EXISTS && delete w.value) : I[U.TOLERANCE].value.unshift({
4402
4402
  id: T,
4403
4403
  key: S,
4404
4404
  effect: j,
4405
4405
  operator: C,
4406
4406
  value: O
4407
4407
  });
4408
- const L = mi(S).messages, B = C !== Cs.EXISTS ? lu(O).messages : [], J = !(C === Cs.EXISTS ? !S : !S && !O) && (L.length > 0 || B.length > 0);
4408
+ const L = mi(S).messages, B = C !== bs.EXISTS ? lu(O).messages : [], J = !(C === bs.EXISTS ? !S : !S && !O) && (L.length > 0 || B.length > 0);
4409
4409
  A[U.TOLERANCE]?.[T] || (A[U.TOLERANCE] || (A[U.TOLERANCE] = {}), A[U.TOLERANCE][T] = {}), A[U.TOLERANCE][T] = {
4410
4410
  ...L.length > 0 && { [vo.KEY]: L },
4411
4411
  ...B.length > 0 && { [vo.VALUE]: B }
@@ -4464,23 +4464,23 @@ const SL = (e, s = !1) => {
4464
4464
  });
4465
4465
  return;
4466
4466
  }
4467
- E(!0);
4467
+ x(!0);
4468
4468
  try {
4469
4469
  await BE({
4470
4470
  name: e,
4471
4471
  profileInput: d,
4472
4472
  canConfigureUseK8sDriver: a
4473
- }), E(!1), Ue.showToast({
4473
+ }), x(!1), Ue.showToast({
4474
4474
  variant: ve.success,
4475
4475
  description: Je.getSubmitSuccessMessage(d.name, s)
4476
4476
  }), n ? n() : l();
4477
4477
  } catch (b) {
4478
- Be(b), E(!1);
4478
+ Be(b), x(!1);
4479
4479
  }
4480
4480
  }
4481
4481
  };
4482
4482
  }, kE = kt(null), RL = () => {
4483
- const e = cs(kE);
4483
+ const e = ls(kE);
4484
4484
  if (!e)
4485
4485
  throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
4486
4486
  return e;
@@ -4537,13 +4537,13 @@ const SL = (e, s = !1) => {
4537
4537
  effect: r,
4538
4538
  id: s ? js() : null
4539
4539
  };
4540
- return o === Cs.EQUALS ? {
4540
+ return o === bs.EQUALS ? {
4541
4541
  ...c,
4542
- operator: Cs.EQUALS,
4542
+ operator: bs.EQUALS,
4543
4543
  value: i
4544
4544
  } : {
4545
4545
  ...c,
4546
- operator: Cs.EXISTS
4546
+ operator: bs.EXISTS
4547
4547
  };
4548
4548
  }).filter((n) => n.key)
4549
4549
  };
@@ -4661,7 +4661,7 @@ const SL = (e, s = !1) => {
4661
4661
  defaultValue: m ? null : u
4662
4662
  } : null;
4663
4663
  if (m) {
4664
- const _ = l.value?.reduce((h, g) => (h[g.useFormProps.name] = g, h), {}), E = d?.value?.map((h) => {
4664
+ const _ = l.value?.reduce((h, g) => (h[g.useFormProps.name] = g, h), {}), x = d?.value?.map((h) => {
4665
4665
  const g = structuredClone(
4666
4666
  _[h.useFormProps.name]
4667
4667
  );
@@ -4672,12 +4672,12 @@ const SL = (e, s = !1) => {
4672
4672
  isOverridden: !0,
4673
4673
  canOverride: !!g
4674
4674
  };
4675
- }) || [], x = E.reduce(
4675
+ }) || [], E = x.reduce(
4676
4676
  (h, g) => (h[g.useFormProps.name] = g, h),
4677
4677
  {}
4678
4678
  );
4679
4679
  Object.values(_).forEach((h) => {
4680
- x[h.useFormProps.name] || E.push({
4680
+ E[h.useFormProps.name] || x.push({
4681
4681
  ...h,
4682
4682
  isOverridden: !1,
4683
4683
  canOverride: !0
@@ -4688,7 +4688,7 @@ const SL = (e, s = !1) => {
4688
4688
  active: d?.active,
4689
4689
  targetPlatform: n,
4690
4690
  key: c,
4691
- value: E,
4691
+ value: x,
4692
4692
  defaultValue: null
4693
4693
  };
4694
4694
  } else
@@ -4729,16 +4729,16 @@ const SL = (e, s = !1) => {
4729
4729
  ), d = Object.entries(i).reduce((u, [m, p]) => {
4730
4730
  const _ = l[os];
4731
4731
  return u[m] = Object.values(U).reduce(
4732
- (E, x) => {
4733
- if (!p[x])
4734
- return E;
4735
- const h = hn(_[x]), g = hn(p[x]);
4736
- return E[x] = {
4732
+ (x, E) => {
4733
+ if (!p[E])
4734
+ return x;
4735
+ const h = hn(_[E]), g = hn(p[E]);
4736
+ return x[E] = {
4737
4737
  ...h,
4738
4738
  defaultValue: g,
4739
4739
  active: !0,
4740
4740
  targetPlatform: m
4741
- }, E;
4741
+ }, x;
4742
4742
  },
4743
4743
  {}
4744
4744
  ), u;
@@ -4765,10 +4765,10 @@ const SL = (e, s = !1) => {
4765
4765
  const _ = GE(u);
4766
4766
  if (!_)
4767
4767
  return d;
4768
- const E = m ? _.value?.length > 0 : u.active, x = e.name === vr ? !0 : E, h = {
4768
+ const x = m ? _.value?.length > 0 : u.active, E = e.name === vr ? !0 : x, h = {
4769
4769
  ..._,
4770
4770
  id: u.id,
4771
- active: x
4771
+ active: E
4772
4772
  };
4773
4773
  return d.push(h), d;
4774
4774
  }
@@ -4807,8 +4807,8 @@ const ZE = ({
4807
4807
  showStatus: u,
4808
4808
  showDelete: m
4809
4809
  }) => {
4810
- const p = (E, x) => {
4811
- c?.(e, E, x);
4810
+ const p = (x, E) => {
4811
+ c?.(e, x, E);
4812
4812
  }, _ = () => {
4813
4813
  l(e);
4814
4814
  };
@@ -5718,8 +5718,8 @@ function vN(e, s) {
5718
5718
  { nodes: {}, aggregation: {}, statusCount: {}, nodeStatusCount: {}, aggregatorStatusCount: {} }
5719
5719
  );
5720
5720
  }
5721
- const AN = (e, s = !1) => s ? btoa(e) : atob(e), yo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? AN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), bs = (e) => !!e && e !== ea, IN = (e, s) => {
5722
- if (!bs(e) || !bs(s))
5721
+ const AN = (e, s = !1) => s ? btoa(e) : atob(e), yo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? AN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), Ts = (e) => !!e && e !== ea, IN = (e, s) => {
5722
+ if (!Ts(e) || !Ts(s))
5723
5723
  return "-";
5724
5724
  const n = Pe(s).diff(Pe(e), "seconds"), a = Pe(s).diff(Pe(e), "minutes"), r = Pe(s).diff(Pe(e), "hours");
5725
5725
  if (n < 60)
@@ -5941,7 +5941,7 @@ const $N = {
5941
5941
  closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
5942
5942
  re,
5943
5943
  {
5944
- icon: /* @__PURE__ */ t.jsx(ds, { className: "fcn-0" }),
5944
+ icon: /* @__PURE__ */ t.jsx(us, { className: "fcn-0" }),
5945
5945
  onClick: e,
5946
5946
  dataTestId: "close-toast",
5947
5947
  ariaLabel: "Close toast",
@@ -6064,7 +6064,7 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6064
6064
  setIdentifiers: nt,
6065
6065
  getSelectedIdentifiersCount: nt
6066
6066
  }), KN = () => {
6067
- const e = cs(Nu);
6067
+ const e = ls(Nu);
6068
6068
  if (!e)
6069
6069
  throw new Error(YN);
6070
6070
  return e;
@@ -6146,12 +6146,12 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6146
6146
  } : {
6147
6147
  isChecked: !0,
6148
6148
  checkboxValue: ut.INTERMEDIATE
6149
- }, { isChecked: _, checkboxValue: E } = p(), x = Q(
6149
+ }, { isChecked: _, checkboxValue: x } = p(), E = Q(
6150
6150
  () => ({
6151
6151
  selectedIdentifiers: a,
6152
6152
  handleBulkSelection: m,
6153
6153
  isChecked: _,
6154
- checkboxValue: E,
6154
+ checkboxValue: x,
6155
6155
  isBulkSelectionApplied: c,
6156
6156
  getSelectedIdentifiersCount: l,
6157
6157
  setIdentifiers: i
@@ -6160,13 +6160,13 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6160
6160
  a,
6161
6161
  m,
6162
6162
  _,
6163
- E,
6163
+ x,
6164
6164
  l,
6165
6165
  o,
6166
6166
  c
6167
6167
  ]
6168
6168
  );
6169
- return /* @__PURE__ */ t.jsx(Nu.Provider, { value: x, children: e });
6169
+ return /* @__PURE__ */ t.jsx(Nu.Provider, { value: E, children: e });
6170
6170
  }, Iw = ({ showPagination: e, disabled: s = !1, showChevronDownIcon: n = !0 }) => {
6171
6171
  const { handleBulkSelection: a, isChecked: r, checkboxValue: o, getSelectedIdentifiersCount: i } = KN(), c = i() > 0, l = [
6172
6172
  {
@@ -6212,7 +6212,7 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6212
6212
  disabled: s
6213
6213
  }
6214
6214
  ),
6215
- n && /* @__PURE__ */ t.jsx(Ts, { className: "icon-dim-20 fcn-6 dc__no-shrink" })
6215
+ n && /* @__PURE__ */ t.jsx(Ss, { className: "icon-dim-20 fcn-6 dc__no-shrink" })
6216
6216
  ]
6217
6217
  }
6218
6218
  ),
@@ -6427,8 +6427,8 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6427
6427
  approvalInfoTippy: d
6428
6428
  }) => {
6429
6429
  const u = (_) => {
6430
- const E = /* @__PURE__ */ t.jsx(zN, { imagePath: e, registryName: s });
6431
- return /* @__PURE__ */ t.jsx(_e, { className: "default-tt dc__mxw-500", arrow: !1, placement: "top-start", content: E, children: _ });
6430
+ const x = /* @__PURE__ */ t.jsx(zN, { imagePath: e, registryName: s });
6431
+ return /* @__PURE__ */ t.jsx(_e, { className: "default-tt dc__mxw-500", arrow: !1, placement: "top-start", content: x, children: _ });
6432
6432
  }, m = () => r ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__info flex left fs-13 dc__gap-8", children: [
6433
6433
  /* @__PURE__ */ t.jsx(Jl, { className: "icon-dim-16 scn-6" }),
6434
6434
  /* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4", children: r })
@@ -6479,19 +6479,19 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6479
6479
  interactive: !0,
6480
6480
  children: s
6481
6481
  }
6482
- ), Es = {
6482
+ ), Ns = {
6483
6483
  ACTIVE: "Active on",
6484
6484
  VIRTUAL_ENV: "Last deployed on",
6485
6485
  FAILED: "Last deployment failed on",
6486
6486
  DEPLOYING: "Deploying on"
6487
6487
  }, QN = (e) => {
6488
6488
  switch (e) {
6489
- case Es.VIRTUAL_ENV:
6490
- case Es.ACTIVE:
6489
+ case Ns.VIRTUAL_ENV:
6490
+ case Ns.ACTIVE:
6491
6491
  return { Icon: /* @__PURE__ */ t.jsx(Xl, { className: "icon-dim-16 scg-5" }), stateClassName: "bcg-1 eg-2" };
6492
- case Es.FAILED:
6492
+ case Ns.FAILED:
6493
6493
  return { Icon: /* @__PURE__ */ t.jsx(p_, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
6494
- case Es.DEPLOYING:
6494
+ case Ns.DEPLOYING:
6495
6495
  return {
6496
6496
  Icon: /* @__PURE__ */ t.jsx(st, { name: "ic-circle-loader", color: "O500" }),
6497
6497
  stateClassName: "bcy-1 ey-2"
@@ -6532,7 +6532,7 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6532
6532
  additionalInfo: d,
6533
6533
  targetPlatforms: u
6534
6534
  }) => {
6535
- const m = () => c ? Es.VIRTUAL_ENV : Es.ACTIVE, p = () => {
6535
+ const m = () => c ? Ns.VIRTUAL_ENV : Ns.ACTIVE, p = () => {
6536
6536
  if (l?.length) {
6537
6537
  const g = l.length === 1 ? l[0] : `${l.length} environments`;
6538
6538
  return /* @__PURE__ */ t.jsx(
@@ -6556,8 +6556,8 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6556
6556
  d
6557
6557
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
6558
6558
  p(),
6559
- n === Ca.PROGRESSING && /* @__PURE__ */ t.jsx(vn, { envStateText: Es.DEPLOYING, title: a }),
6560
- (n === Ca.DEGRADED || n === Ca.FAILED) && /* @__PURE__ */ t.jsx(vn, { envStateText: Es.FAILED, title: a }),
6559
+ n === Ca.PROGRESSING && /* @__PURE__ */ t.jsx(vn, { envStateText: Ns.DEPLOYING, title: a }),
6560
+ (n === Ca.DEGRADED || n === Ca.FAILED) && /* @__PURE__ */ t.jsx(vn, { envStateText: Ns.FAILED, title: a }),
6561
6561
  i && /* @__PURE__ */ t.jsx(
6562
6562
  _r,
6563
6563
  {
@@ -6643,7 +6643,7 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6643
6643
  showAnimationOnBar: i = !1,
6644
6644
  isLoading: c
6645
6645
  }) => {
6646
- const l = c ? [Mc] : e, d = l.reduce((g, f) => f.value + g, 0), u = l.filter((g) => !!g.value), m = (g) => `${g.value / d * 100}%`, p = (g) => c ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-120" }) : /* @__PURE__ */ t.jsx("span", { className: a, "data-testid": `segmented-bar-chart-${g}-label`, children: g }), _ = (g, f) => c ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-64 lh-1-5 h-24" }) : /* @__PURE__ */ t.jsx("span", { className: n, "data-testid": `segmented-bar-chart-${f}-value`, children: r ? `${g}/${d}` : g }), E = () => r ? u.map((g, f) => (
6646
+ const l = c ? [Mc] : e, d = l.reduce((g, f) => f.value + g, 0), u = l.filter((g) => !!g.value), m = (g) => `${g.value / d * 100}%`, p = (g) => c ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-120" }) : /* @__PURE__ */ t.jsx("span", { className: a, "data-testid": `segmented-bar-chart-${g}-label`, children: g }), _ = (g, f) => c ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-64 lh-1-5 h-24" }) : /* @__PURE__ */ t.jsx("span", { className: n, "data-testid": `segmented-bar-chart-${f}-value`, children: r ? `${g}/${d}` : g }), x = () => r ? u.map((g, f) => (
6647
6647
  // eslint-disable-next-line react/no-array-index-key
6648
6648
  /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${c ? "dc__gap-10" : ""}`, children: [
6649
6649
  _(g.value, g.label),
@@ -6659,7 +6659,7 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6659
6659
  _(g.value, g.label),
6660
6660
  p(g.label)
6661
6661
  ] }, f)
6662
- )), x = () => /* @__PURE__ */ t.jsx("div", { className: `flexbox flex-wrap dc__row-gap-4 ${r ? "dc__gap-24" : "dc__gap-16"}`, children: E() }), h = () => /* @__PURE__ */ t.jsx(
6662
+ )), E = () => /* @__PURE__ */ t.jsx("div", { className: `flexbox flex-wrap dc__row-gap-4 ${r ? "dc__gap-24" : "dc__gap-16"}`, children: x() }), h = () => /* @__PURE__ */ t.jsx(
6663
6663
  pn.div,
6664
6664
  {
6665
6665
  ...i ? {
@@ -6680,9 +6680,9 @@ const GN = "bulk-selection-pop-up-menu", qr = {
6680
6680
  );
6681
6681
  return l.length ? /* @__PURE__ */ t.jsx("div", { className: `flexbox-col w-100 dc__gap-12 ${s}`, children: o ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
6682
6682
  h(),
6683
- x()
6683
+ E()
6684
6684
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
6685
- x(),
6685
+ E(),
6686
6686
  h()
6687
6687
  ] }) }) : null;
6688
6688
  }, se = {
@@ -6716,7 +6716,7 @@ const sC = {
6716
6716
  IMAGE_SCAN: "Image Scan",
6717
6717
  CODE_SCAN: "Code Scan",
6718
6718
  KUBERNETES_MANIFEST: "Kubernetes Manifest"
6719
- }, ms = {
6719
+ }, ps = {
6720
6720
  VULNERABILITIES: "Vulnerability",
6721
6721
  LICENSE: "License Risks",
6722
6722
  MISCONFIGURATIONS: "Misconfigurations",
@@ -6788,8 +6788,8 @@ const sC = {
6788
6788
  {
6789
6789
  className: `icon-dim-12 mw-12 scn-7 dc__no-shrink dc__transition--transform ${n !== ge.DESC ? "dc__flip-180" : ""}`
6790
6790
  }
6791
- ) : /* @__PURE__ */ t.jsx(fd, { className: "icon-dim-12 mw-12 scn-7 dc__no-shrink" }) : null, p = (_, E) => {
6792
- u && l(c, E.deltaX);
6791
+ ) : /* @__PURE__ */ t.jsx(fd, { className: "icon-dim-12 mw-12 scn-7 dc__no-shrink" }) : null, p = (_, x) => {
6792
+ u && l(c, x.deltaX);
6793
6793
  };
6794
6794
  return (
6795
6795
  // Added w-100, h-100 when isResizable is true to ensure the cell takes full dimensions in wrapper flex layout (if any)
@@ -6882,7 +6882,7 @@ const sC = {
6882
6882
  fallbackImage: /* @__PURE__ */ t.jsx(Rf, { className: "icon-dim-20-imp dc__no-shrink" })
6883
6883
  }
6884
6884
  )
6885
- ] }), is = (e) => (
6885
+ ] }), cs = (e) => (
6886
6886
  /* for all the SEVERITY keys in @severities create @Entity */
6887
6887
  e && Za.map(
6888
6888
  (s) => e[s] && {
@@ -7021,13 +7021,13 @@ const sC = {
7021
7021
  index: n || 0,
7022
7022
  order: e[n]?.defaultSortOrder || Xa.ASC
7023
7023
  }), [c, l] = R(Array(s.length).fill(!1)), d = Q(
7024
- () => s.sort((E, x) => {
7025
- const h = E.cells[o.index].cellContent, g = x.cells[o.index].cellContent, f = e[o.index].compareFunc || lC;
7024
+ () => s.sort((x, E) => {
7025
+ const h = x.cells[o.index].cellContent, g = E.cells[o.index].cellContent, f = e[o.index].compareFunc || lC;
7026
7026
  return o.order * f(h, g);
7027
7027
  }),
7028
7028
  [s, o]
7029
- ), u = () => i({ ...o, order: -1 * o.order }), m = (E) => () => i({ index: E, order: e[E]?.defaultSortOrder || Xa.ASC }), p = () => l(Array(s.length).fill(!c.every((E) => E))), _ = (E) => () => {
7030
- c[E] = !c[E], l([...c]);
7029
+ ), u = () => i({ ...o, order: -1 * o.order }), m = (x) => () => i({ index: x, order: e[x]?.defaultSortOrder || Xa.ASC }), p = () => l(Array(s.length).fill(!c.every((x) => x))), _ = (x) => () => {
7030
+ c[x] = !c[x], l([...c]);
7031
7031
  };
7032
7032
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
7033
7033
  /* @__PURE__ */ t.jsxs(
@@ -7048,26 +7048,26 @@ const sC = {
7048
7048
  {
7049
7049
  className: "icon-dim-20 rotate",
7050
7050
  style: {
7051
- "--rotateBy": c.every((E) => E) ? "0deg" : "-90deg"
7051
+ "--rotateBy": c.every((x) => x) ? "0deg" : "-90deg"
7052
7052
  }
7053
7053
  }
7054
7054
  )
7055
7055
  }
7056
7056
  ),
7057
- /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: e.map((E, x) => /* @__PURE__ */ t.jsx("div", { className: "dc__uppercase fs-12 lh-20 fw-6", style: { width: `${E.width}px` }, children: E.isSortable ? /* @__PURE__ */ t.jsx(
7057
+ /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: e.map((x, E) => /* @__PURE__ */ t.jsx("div", { className: "dc__uppercase fs-12 lh-20 fw-6", style: { width: `${x.width}px` }, children: x.isSortable ? /* @__PURE__ */ t.jsx(
7058
7058
  bu,
7059
7059
  {
7060
- isSorted: o.index === x,
7061
- triggerSorting: o.index === x ? u : m(x),
7060
+ isSorted: o.index === E,
7061
+ triggerSorting: o.index === E ? u : m(E),
7062
7062
  sortOrder: o.order === 1 ? ge.ASC : ge.DESC,
7063
- title: E.headerText,
7063
+ title: x.headerText,
7064
7064
  disabled: !1
7065
7065
  }
7066
- ) : /* @__PURE__ */ t.jsx("span", { children: E.headerText }) })) })
7066
+ ) : /* @__PURE__ */ t.jsx("span", { children: x.headerText }) })) })
7067
7067
  ]
7068
7068
  }
7069
7069
  ),
7070
- d.map((E, x) => /* @__PURE__ */ t.jsxs(
7070
+ d.map((x, E) => /* @__PURE__ */ t.jsxs(
7071
7071
  "div",
7072
7072
  {
7073
7073
  className: `flexbox-col dc__gap-16 dc__border-bottom-n1 ${a ? "pt-16 pb-16" : "pt-10 pb-10"}`,
@@ -7078,31 +7078,31 @@ const sC = {
7078
7078
  {
7079
7079
  type: "button",
7080
7080
  className: "dc__unset-button-styles",
7081
- onClick: _(x),
7082
- "aria-label": `Expand row ${x}`,
7083
- "data-testid": `security-table-expand-${x}`,
7081
+ onClick: _(E),
7082
+ "aria-label": `Expand row ${E}`,
7083
+ "data-testid": `security-table-expand-${E}`,
7084
7084
  children: /* @__PURE__ */ t.jsx(
7085
7085
  uo,
7086
7086
  {
7087
7087
  className: "icon-dim-20 rotate",
7088
7088
  style: {
7089
- "--rotateBy": c[x] ? "0deg" : "-90deg"
7089
+ "--rotateBy": c[E] ? "0deg" : "-90deg"
7090
7090
  }
7091
7091
  }
7092
7092
  )
7093
7093
  }
7094
7094
  ),
7095
- /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: E.cells.map((h, g) => /* @__PURE__ */ t.jsx(
7095
+ /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-space w-100", children: x.cells.map((h, g) => /* @__PURE__ */ t.jsx(
7096
7096
  "div",
7097
7097
  {
7098
7098
  className: "flexbox dc__align-start dc__content-start fs-13 lh-20 fw-4 dc__word-break",
7099
7099
  style: { width: `${e[g].width}px` },
7100
- "data-testid": `security-table-cell-${x}:${g}`,
7100
+ "data-testid": `security-table-cell-${E}:${g}`,
7101
7101
  children: h.component || h.cellContent
7102
7102
  }
7103
7103
  )) })
7104
7104
  ] }),
7105
- a && c[x] && E.expandableComponent
7105
+ a && c[E] && x.expandableComponent
7106
7106
  ]
7107
7107
  }
7108
7108
  ))
@@ -7315,7 +7315,7 @@ const sC = {
7315
7315
  ]
7316
7316
  })) : null,
7317
7317
  defaultSortIndex: 1,
7318
- entities: is(e.misConfSummary.status),
7318
+ entities: cs(e.misConfSummary.status),
7319
7319
  lastScanTimeString: s,
7320
7320
  scanToolName: a,
7321
7321
  scanToolUrl: r,
@@ -7397,7 +7397,7 @@ const sC = {
7397
7397
  ]
7398
7398
  })) : null,
7399
7399
  defaultSortIndex: 1,
7400
- entities: is(e.summary.severities),
7400
+ entities: cs(e.summary.severities),
7401
7401
  lastScanTimeString: s,
7402
7402
  scanToolName: a,
7403
7403
  scanToolUrl: r,
@@ -7473,12 +7473,12 @@ const sC = {
7473
7473
  case X.LICENSE:
7474
7474
  case X.EXPOSED_SECRETS:
7475
7475
  return {
7476
- entities: is(e[s]?.summary.severities),
7476
+ entities: cs(e[s]?.summary.severities),
7477
7477
  ...o
7478
7478
  };
7479
7479
  case X.MISCONFIGURATIONS:
7480
7480
  return {
7481
- entities: is(e[s]?.misConfSummary.status),
7481
+ entities: cs(e[s]?.misConfSummary.status),
7482
7482
  ...o
7483
7483
  };
7484
7484
  default:
@@ -7526,7 +7526,7 @@ const sC = {
7526
7526
  }, Oo = (e) => ({
7527
7527
  titlePrefix: "Image",
7528
7528
  title: e.image,
7529
- entities: is(e.summary.severities),
7529
+ entities: cs(e.summary.severities),
7530
7530
  lastScanTimeString: e.StartedOn,
7531
7531
  scanToolName: e.scanToolName,
7532
7532
  scanToolUrl: e.scanToolUrl,
@@ -7669,7 +7669,7 @@ const sC = {
7669
7669
  ]
7670
7670
  })) : null,
7671
7671
  defaultSortIndex: 1,
7672
- entities: is(e.summary.severities),
7672
+ entities: cs(e.summary.severities),
7673
7673
  lastScanTimeString: e.StartedOn,
7674
7674
  scanToolName: e.scanToolName,
7675
7675
  scanToolUrl: e.scanToolUrl,
@@ -7720,7 +7720,7 @@ const sC = {
7720
7720
  }, RC = (e, s) => {
7721
7721
  const n = e[s]?.list?.[0];
7722
7722
  return {
7723
- entities: is(e[s]?.summary.severities),
7723
+ entities: cs(e[s]?.summary.severities),
7724
7724
  scanToolName: n?.scanToolName,
7725
7725
  scanToolUrl: n?.scanToolUrl,
7726
7726
  lastScanTimeString: n?.StartedOn
@@ -7790,12 +7790,12 @@ const sC = {
7790
7790
  switch (s) {
7791
7791
  case X.MISCONFIGURATIONS:
7792
7792
  return {
7793
- entities: is(e[s]?.misConfSummary.status),
7793
+ entities: cs(e[s]?.misConfSummary.status),
7794
7794
  ...n
7795
7795
  };
7796
7796
  case X.EXPOSED_SECRETS:
7797
7797
  return {
7798
- entities: is(e[s]?.summary.severities),
7798
+ entities: cs(e[s]?.summary.severities),
7799
7799
  ...n
7800
7800
  };
7801
7801
  default:
@@ -7861,7 +7861,7 @@ const sC = {
7861
7861
  isExpanded: !0,
7862
7862
  children: [
7863
7863
  {
7864
- label: ms.VULNERABILITIES,
7864
+ label: ps.VULNERABILITIES,
7865
7865
  value: {
7866
7866
  category: se.IMAGE_SCAN,
7867
7867
  subCategory: X.VULNERABILITIES
@@ -7869,7 +7869,7 @@ const sC = {
7869
7869
  },
7870
7870
  ...r ? [
7871
7871
  {
7872
- label: ms.LICENSE,
7872
+ label: ps.LICENSE,
7873
7873
  value: {
7874
7874
  category: se.IMAGE_SCAN,
7875
7875
  subCategory: X.LICENSE
@@ -7885,28 +7885,28 @@ const sC = {
7885
7885
  isExpanded: !0,
7886
7886
  children: [
7887
7887
  {
7888
- label: ms.VULNERABILITIES,
7888
+ label: ps.VULNERABILITIES,
7889
7889
  value: {
7890
7890
  category: se.CODE_SCAN,
7891
7891
  subCategory: X.VULNERABILITIES
7892
7892
  }
7893
7893
  },
7894
7894
  {
7895
- label: ms.LICENSE,
7895
+ label: ps.LICENSE,
7896
7896
  value: {
7897
7897
  category: se.CODE_SCAN,
7898
7898
  subCategory: X.LICENSE
7899
7899
  }
7900
7900
  },
7901
7901
  {
7902
- label: ms.MISCONFIGURATIONS,
7902
+ label: ps.MISCONFIGURATIONS,
7903
7903
  value: {
7904
7904
  category: se.CODE_SCAN,
7905
7905
  subCategory: X.MISCONFIGURATIONS
7906
7906
  }
7907
7907
  },
7908
7908
  {
7909
- label: ms.EXPOSED_SECRETS,
7909
+ label: ps.EXPOSED_SECRETS,
7910
7910
  value: {
7911
7911
  category: se.CODE_SCAN,
7912
7912
  subCategory: X.EXPOSED_SECRETS
@@ -7921,14 +7921,14 @@ const sC = {
7921
7921
  isExpanded: !0,
7922
7922
  children: [
7923
7923
  {
7924
- label: ms.MISCONFIGURATIONS,
7924
+ label: ps.MISCONFIGURATIONS,
7925
7925
  value: {
7926
7926
  category: se.KUBERNETES_MANIFEST,
7927
7927
  subCategory: X.MISCONFIGURATIONS
7928
7928
  }
7929
7929
  },
7930
7930
  {
7931
- label: ms.EXPOSED_SECRETS,
7931
+ label: ps.EXPOSED_SECRETS,
7932
7932
  value: {
7933
7933
  category: se.KUBERNETES_MANIFEST,
7934
7934
  subCategory: X.EXPOSED_SECRETS
@@ -7972,7 +7972,7 @@ const sC = {
7972
7972
  }));
7973
7973
  }, m = () => {
7974
7974
  d((f) => ({ ...f, detailViewData: f.detailViewData?.slice(0, -1) ?? null }));
7975
- }, p = (l.detailViewData?.length ?? 0) - 1, _ = l.detailViewData?.[p] ?? null, E = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__align-items-center pl-20 pr-20 pt-12 pb-12 dc__border-bottom", children: [
7975
+ }, p = (l.detailViewData?.length ?? 0) - 1, _ = l.detailViewData?.[p] ?? null, x = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__align-items-center pl-20 pr-20 pt-12 pb-12 dc__border-bottom dc__no-shrink", children: [
7976
7976
  /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 lh-24 cn-9", children: "Security" }),
7977
7977
  /* @__PURE__ */ t.jsx(
7978
7978
  re,
@@ -7987,7 +7987,7 @@ const sC = {
7987
7987
  variant: fe.borderLess
7988
7988
  }
7989
7989
  )
7990
- ] }), x = () => /* @__PURE__ */ t.jsxs("div", { className: "pt-10 pb-10 pl-12 pr-12 flexbox dc__align-items-center dc__gap-12 dc__position-sticky dc__border-bottom-n1 dc__top-0 bg__primary dc__zi-20", children: [
7990
+ ] }), E = () => /* @__PURE__ */ t.jsxs("div", { className: "pt-10 pb-10 pl-12 pr-12 flexbox dc__align-items-center dc__gap-12 dc__position-sticky dc__border-bottom-n1 dc__top-0 bg__primary dc__zi-20", children: [
7991
7991
  /* @__PURE__ */ t.jsx(
7992
7992
  "button",
7993
7993
  {
@@ -8034,24 +8034,21 @@ const sC = {
8034
8034
  `${l.category}${l.subCategory}${p}`
8035
8035
  )
8036
8036
  ] });
8037
- }, g = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(ke, { size: 24, pageLoader: !0 }) }) : a ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Lr, { code: a.code }) }) : (
8038
- /* NOTE: the height is restricted to (viewport - header) height since we need overflow-scroll */
8039
- /* @__PURE__ */ t.jsxs("div", { className: "flexbox", style: { height: "calc(100vh - 49px)" }, children: [
8040
- e && /* @__PURE__ */ t.jsx(e, { modalState: l, setModalState: d, scanResult: r }),
8041
- /* @__PURE__ */ t.jsx("div", { className: "dc__border-right-n1 h-100" }),
8042
- /* @__PURE__ */ t.jsxs("div", { className: "dc__overflow-auto flex-grow-1", style: { width: "744px" }, children: [
8043
- _ && x(),
8044
- c && h()
8045
- ] })
8037
+ }, g = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(ke, { size: 24, pageLoader: !0 }) }) : a ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Lr, { code: a.code }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox flex-grow-1 dc__overflow-auto", children: [
8038
+ e && /* @__PURE__ */ t.jsx(e, { modalState: l, setModalState: d, scanResult: r }),
8039
+ /* @__PURE__ */ t.jsx("div", { className: "dc__border-right-n1 h-100" }),
8040
+ /* @__PURE__ */ t.jsxs("div", { className: "dc__overflow-auto flex-grow-1", style: { width: "744px" }, children: [
8041
+ _ && E(),
8042
+ c && h()
8046
8043
  ] })
8047
- );
8044
+ ] });
8048
8045
  return /* @__PURE__ */ t.jsx(Vm, { className: "dc__position-rel", close: s, children: /* @__PURE__ */ t.jsxs(
8049
8046
  "div",
8050
8047
  {
8051
- className: `${e ? "w-1024" : "w-800"} h-100vh bg__primary flexbox-col dc__right-0 dc__top-0 dc__position-abs`,
8048
+ className: `${e ? "w-1024" : "w-800"} h-100 bg__modal--primary flexbox-col dc__right-0 dc__top-0 dc__position-abs dc__overflow-hidden`,
8052
8049
  onClick: Ne,
8053
8050
  children: [
8054
- E(),
8051
+ x(),
8055
8052
  g()
8056
8053
  ]
8057
8054
  }
@@ -8112,10 +8109,10 @@ const sC = {
8112
8109
  handleCardClick: a,
8113
8110
  scanFailed: r = !1
8114
8111
  }) => {
8115
- const o = yu(n), i = !!o, c = Object.entries(Ja).map(([_, E]) => ({
8116
- ...E,
8112
+ const o = yu(n), i = !!o, c = Object.entries(Ja).map(([_, x]) => ({
8113
+ ...x,
8117
8114
  value: n[_]
8118
- })).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-24 dc__no-shrink" }) : i ? /* @__PURE__ */ t.jsx(f_, { className: "icon-dim-24 scr-5 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(h_, { className: "icon-dim-24 scg-5 dc__no-shrink" }), d = () => {
8115
+ })).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-24 dc__no-shrink" }) : i ? /* @__PURE__ */ t.jsx(f_, { className: "icon-dim-24 scr-5 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(h_, { className: "icon-dim-24 scg-5 dc__no-shrink" }), d = () => {
8119
8116
  if (r)
8120
8117
  return s === X.VULNERABILITIES ? { title: "Vulnerability scan failed", subtitle: "Failed" } : { title: "License scan failed", subtitle: "Failed" };
8121
8118
  switch (s) {
@@ -8203,7 +8200,7 @@ const sC = {
8203
8200
  subCategory: g,
8204
8201
  detailViewData: null
8205
8202
  });
8206
- }, E = (h, g) => () => _(h, g), x = () => {
8203
+ }, x = (h, g) => () => _(h, g), E = () => {
8207
8204
  a(!1);
8208
8205
  };
8209
8206
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -8231,7 +8228,7 @@ const sC = {
8231
8228
  category: h,
8232
8229
  subCategory: b,
8233
8230
  severities: v,
8234
- handleCardClick: E(h, b),
8231
+ handleCardClick: x(h, b),
8235
8232
  scanFailed: A
8236
8233
  }
8237
8234
  );
@@ -8244,7 +8241,7 @@ const sC = {
8244
8241
  isLoading: !1,
8245
8242
  error: null,
8246
8243
  responseData: e,
8247
- handleModalClose: x,
8244
+ handleModalClose: E,
8248
8245
  Sidebar: s,
8249
8246
  defaultState: r
8250
8247
  }
@@ -8282,16 +8279,16 @@ const sC = {
8282
8279
  return /* @__PURE__ */ t.jsx("div", { className: "security-tab-empty", children: /* @__PURE__ */ t.jsx("p", { className: "security-tab-empty__title", children: "Image was not scanned" }) });
8283
8280
  const _ = () => {
8284
8281
  l(!0);
8285
- }, E = () => {
8282
+ }, x = () => {
8286
8283
  l(!1);
8287
- }, x = u.result?.imageScan?.vulnerability, h = x?.list || [], g = tr(h) === "Failed";
8284
+ }, E = u.result?.imageScan?.vulnerability, h = E?.list || [], g = tr(h) === "Failed";
8288
8285
  return /* @__PURE__ */ t.jsxs("div", { className: "p-12", children: [
8289
8286
  /* @__PURE__ */ t.jsx(
8290
8287
  ju,
8291
8288
  {
8292
8289
  category: se.IMAGE_SCAN,
8293
8290
  subCategory: X.VULNERABILITIES,
8294
- severities: x?.summary?.severities,
8291
+ severities: E?.summary?.severities,
8295
8292
  handleCardClick: _,
8296
8293
  scanFailed: g
8297
8294
  }
@@ -8302,7 +8299,7 @@ const sC = {
8302
8299
  isLoading: d,
8303
8300
  error: m,
8304
8301
  responseData: u?.result,
8305
- handleModalClose: E,
8302
+ handleModalClose: x,
8306
8303
  Sidebar: i
8307
8304
  }
8308
8305
  )
@@ -8336,9 +8333,9 @@ const sC = {
8336
8333
  isScanEnabled: i,
8337
8334
  SecurityModalSidebar: c
8338
8335
  }) => {
8339
- const [l, d] = R(!1), [u, m] = R(wn.Changes), [p, _] = R(null), E = () => {
8336
+ const [l, d] = R(!1), [u, m] = R(wn.Changes), [p, _] = R(null), x = () => {
8340
8337
  d(!l);
8341
- }, x = () => l ? u === wn.Changes ? r : /* @__PURE__ */ t.jsx(
8338
+ }, E = () => l ? u === wn.Changes ? r : /* @__PURE__ */ t.jsx(
8342
8339
  FC,
8343
8340
  {
8344
8341
  isScanned: o,
@@ -8378,11 +8375,11 @@ const sC = {
8378
8375
  type: "button",
8379
8376
  className: "material-history__changes-btn",
8380
8377
  "data-testid": l ? "collapse-show-info" : "collapse-hide-info",
8381
- onClick: E,
8378
+ onClick: x,
8382
8379
  children: [
8383
8380
  l ? "Hide info" : "Show more info",
8384
8381
  /* @__PURE__ */ t.jsx(
8385
- Ts,
8382
+ Ss,
8386
8383
  {
8387
8384
  className: "icon-dim-24 rotate fcn-6",
8388
8385
  style: { "--rotateBy": l ? "-180deg" : "0deg" }
@@ -8392,7 +8389,7 @@ const sC = {
8392
8389
  }
8393
8390
  ) })
8394
8391
  ] }),
8395
- x()
8392
+ E()
8396
8393
  ] });
8397
8394
  }, Bw = ({ image: e }) => /* @__PURE__ */ t.jsx(_e, { className: "default-tt w-200", arrow: !1, placement: "top", content: Hg, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox pt-2 pb-2 pl-8 pr-8 br-4 bcr-1 dc__align-items-center dc__gap-4", children: [
8398
8395
  /* @__PURE__ */ t.jsx(td, { className: "icon-dim-20 fcr-5 dc__no-shrink" }),
@@ -8442,7 +8439,7 @@ const sC = {
8442
8439
  if (Array.isArray(e[m])) {
8443
8440
  n({
8444
8441
  ..._,
8445
- [m]: _[m].filter((E) => E !== p)
8442
+ [m]: _[m].filter((x) => x !== p)
8446
8443
  });
8447
8444
  return;
8448
8445
  }
@@ -8508,8 +8505,8 @@ const sC = {
8508
8505
  ariaLabel: m,
8509
8506
  borderRadiusConfig: p,
8510
8507
  labelTooltipConfig: _,
8511
- labelTippyCustomizedConfig: E,
8512
- value: x,
8508
+ labelTippyCustomizedConfig: x,
8509
+ value: E,
8513
8510
  borderConfig: h,
8514
8511
  ...g
8515
8512
  }) => {
@@ -8522,8 +8519,8 @@ const sC = {
8522
8519
  j < S || S > Jr || (j < Xr && (j = Xr), j > Jr && (j = Jr), A(j));
8523
8520
  };
8524
8521
  P(() => {
8525
- b(x);
8526
- }, [x]), kr(v, 300, [N]);
8522
+ b(E);
8523
+ }, [E]), kr(v, 300, [N]);
8527
8524
  const I = (S) => {
8528
8525
  b(S.target.value), g.onChange?.(S);
8529
8526
  }, y = (S) => {
@@ -8550,7 +8547,7 @@ const sC = {
8550
8547
  borderConfig: h,
8551
8548
  borderRadiusConfig: p,
8552
8549
  labelTooltipConfig: _,
8553
- labelTippyCustomizedConfig: E,
8550
+ labelTippyCustomizedConfig: x,
8554
8551
  children: /* @__PURE__ */ t.jsx(
8555
8552
  "textarea",
8556
8553
  {
@@ -8573,7 +8570,7 @@ const sC = {
8573
8570
  onChange: I,
8574
8571
  onBlur: y,
8575
8572
  onKeyDown: T,
8576
- className: `${hs[u]} ${Fd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
8573
+ className: `${gs[u]} ${Fd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
8577
8574
  ref: f,
8578
8575
  style: {
8579
8576
  // No max height when user is expanding
@@ -8593,7 +8590,7 @@ const sC = {
8593
8590
  }).catch(() => {
8594
8591
  d(!1);
8595
8592
  });
8596
- }, E = (h) => {
8593
+ }, x = (h) => {
8597
8594
  if (o) {
8598
8595
  const g = h.trim(), { maxLength: f } = o;
8599
8596
  if (f && g.length > f.value)
@@ -8606,9 +8603,9 @@ const sC = {
8606
8603
  isValid: !0,
8607
8604
  message: ""
8608
8605
  };
8609
- }, x = (h) => {
8606
+ }, E = (h) => {
8610
8607
  const g = h.target.value ?? "";
8611
- c(g), m(E(g));
8608
+ c(g), m(x(g));
8612
8609
  };
8613
8610
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 dc__gap-12", children: [
8614
8611
  /* @__PURE__ */ t.jsx(
@@ -8616,7 +8613,7 @@ const sC = {
8616
8613
  {
8617
8614
  placeholder: s,
8618
8615
  value: i,
8619
- onChange: x,
8616
+ onChange: E,
8620
8617
  name: "editable-description",
8621
8618
  error: !u.isValid && u.message
8622
8619
  }
@@ -8654,12 +8651,12 @@ const sC = {
8654
8651
  /* @__PURE__ */ t.jsx(gr, { className: "icon-dim-16 cursor mw-16", onClick: () => o(!r) })
8655
8652
  ] });
8656
8653
  }, Ou = kt(null), ma = () => {
8657
- const e = cs(Ou);
8654
+ const e = ls(Ou);
8658
8655
  if (!e)
8659
8656
  throw new Error("Please wrap with MainContextProvider");
8660
8657
  return e;
8661
8658
  }, Vw = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(Ou.Provider, { value: s, children: e }), Lu = kt(null), Gw = () => {
8662
- const e = cs(Lu);
8659
+ const e = ls(Lu);
8663
8660
  if (!e)
8664
8661
  throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
8665
8662
  return e;
@@ -8675,7 +8672,10 @@ const Hs = {
8675
8672
  localStorage.setItem(wu, e);
8676
8673
  }, ku = ({ appTheme: e, themePreference: s }) => {
8677
8674
  const n = s === Hs.auto ? `system-${e}` : e;
8678
- Ss.event({
8675
+ "gtag" in window && window.gtag && typeof window.gtag == "function" && (window.gtag("set", "user_properties", {
8676
+ appTheme: e,
8677
+ themePreference: s
8678
+ }), is.send("pageview")), is.event({
8679
8679
  category: "application-theme",
8680
8680
  action: `theme-changed-to-${n}`
8681
8681
  });
@@ -8744,11 +8744,11 @@ const Hs = {
8744
8744
  );
8745
8745
  return /* @__PURE__ */ t.jsx(Mu.Provider, { value: m, children: e });
8746
8746
  }, yr = () => {
8747
- const e = cs(Mu);
8747
+ const e = ls(Mu);
8748
8748
  if (!e)
8749
8749
  throw new Error("useTheme must be used within ThemeProvider");
8750
8750
  return e;
8751
- }, Uu = kt(null), Bu = () => cs(Uu), Kw = ({ children: e }) => {
8751
+ }, Uu = kt(null), Bu = () => ls(Uu), Kw = ({ children: e }) => {
8752
8752
  const [s, n] = R(""), a = Q(
8753
8753
  () => ({
8754
8754
  email: s,
@@ -8926,7 +8926,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
8926
8926
  ], u = () => {
8927
8927
  r(!0);
8928
8928
  }, m = (h) => {
8929
- Ss.event({
8929
+ is.event({
8930
8930
  category: "Help Nav",
8931
8931
  action: `${h.name} Clicked`
8932
8932
  });
@@ -8944,10 +8944,10 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
8944
8944
  children: "Give feedback"
8945
8945
  }
8946
8946
  )
8947
- ] }), E = (h) => {
8947
+ ] }), x = (h) => {
8948
8948
  const g = d[h.currentTarget.dataset.index];
8949
8949
  m(g);
8950
- }, x = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
8950
+ }, E = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
8951
8951
  " ",
8952
8952
  d.map((h, g) => /* @__PURE__ */ t.jsxs(Ks, { children: [
8953
8953
  /* @__PURE__ */ t.jsxs(
@@ -8958,7 +8958,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
8958
8958
  target: "_blank",
8959
8959
  rel: "noreferrer noopener",
8960
8960
  "data-index": g,
8961
- onClick: E,
8961
+ onClick: x,
8962
8962
  children: [
8963
8963
  /* @__PURE__ */ t.jsx(h.icon, {}),
8964
8964
  /* @__PURE__ */ t.jsx("div", { className: "help-card__option-name ml-12 cn-9 fs-14", children: h.name })
@@ -8983,7 +8983,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
8983
8983
  ]
8984
8984
  }
8985
8985
  ),
8986
- x(),
8986
+ E(),
8987
8987
  c && _(),
8988
8988
  n?.installationType === nr.OSS_HELM && /* @__PURE__ */ t.jsxs("div", { className: "help-card__update-option fs-11 fw-6 mt-4", children: [
8989
8989
  a ? /* @__PURE__ */ t.jsx("span", { className: "dc__loading-dots", children: "Checking current version" }) : /* @__PURE__ */ t.jsxs("span", { children: [
@@ -9038,7 +9038,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
9038
9038
  FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
9039
9039
  FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
9040
9040
  } = window._env_, o = ze(() => {
9041
- s(!0), Ss.event({
9041
+ s(!0), is.event({
9042
9042
  category: "PRIMARY_HEADER",
9043
9043
  action: "HEADER_IFRAME_BUTTON_CLICKED"
9044
9044
  });
@@ -9112,7 +9112,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
9112
9112
  showAnnouncementHeader: u,
9113
9113
  tippyProps: m
9114
9114
  }) => {
9115
- const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: h } = ma(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: b, TippyIcon: A, tippyMessage: v, onClickTippyButton: I, additionalContent: y } = m || {}, [T, S] = R(!1), [j, C] = R(!1), { email: O } = Bu(), [w, L] = R(
9115
+ const { loginCount: p, setLoginCount: _, showGettingStartedCard: x, setShowGettingStartedCard: E, setGettingStartedClicked: h } = ma(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: b, TippyIcon: A, tippyMessage: v, onClickTippyButton: I, additionalContent: y } = m || {}, [T, S] = R(!1), [j, C] = R(!1), { email: O } = Bu(), [w, L] = R(
9116
9116
  {
9117
9117
  serverInfo: void 0,
9118
9118
  fetchingServerInfo: !1
@@ -9135,11 +9135,11 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
9135
9135
  H(+localStorage.getItem("clickedOkay"));
9136
9136
  }, []);
9137
9137
  const q = (k) => {
9138
- x(!1), k && _(+k);
9138
+ E(!1), k && _(+k);
9139
9139
  }, ee = () => {
9140
9140
  C(!j), T && S(!1), sr("clickedOkay", 1), q();
9141
9141
  }, ne = async () => {
9142
- !window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await J(), S(!T), j && C(!1), sr("clickedOkay", 1), q(), await wo(ho.HELP), Ss.event({
9142
+ !window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await J(), S(!T), j && C(!1), sr("clickedOkay", 1), q(), await wo(ho.HELP), is.event({
9143
9143
  category: "Main Navigation",
9144
9144
  action: "Help Clicked"
9145
9145
  });
@@ -9274,7 +9274,7 @@ const ZC = (e) => gt(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), QC = ({ className:
9274
9274
  showHelpCard: T
9275
9275
  }
9276
9276
  ),
9277
- !window._env_.K8S_CLIENT && E && p >= 0 && p < wd && de() && /* @__PURE__ */ t.jsx(
9277
+ !window._env_.K8S_CLIENT && x && p >= 0 && p < wd && de() && /* @__PURE__ */ t.jsx(
9278
9278
  QC,
9279
9279
  {
9280
9280
  className: "w-300",
@@ -9451,7 +9451,7 @@ const qw = ({
9451
9451
  disabled: i,
9452
9452
  rootClassName: "flex dc__transparent p-0 w-28 bcb-5 dc__right-radius-4 dc__no-left-radius dc__no-top-border dc__no-bottom-border dc__no-right-border button-with-selector",
9453
9453
  children: /* @__PURE__ */ t.jsx(
9454
- Ts,
9454
+ Ss,
9455
9455
  {
9456
9456
  className: "icon-dim-16 fcn-0 dc__no-shrink rotate",
9457
9457
  style: { "--rotateBy": l ? "180deg" : "0deg" }
@@ -9501,9 +9501,9 @@ const qw = ({
9501
9501
  const [l, d, u, m] = Wt(
9502
9502
  cb
9503
9503
  ), p = Q(() => d ? r?.(d) || d : [], [d, r]), _ = Q(() => {
9504
- const x = ib(s, p);
9505
- return n ? x : x?.[0] || null;
9506
- }, [s, p, n]), E = () => u ? /* @__PURE__ */ t.jsx(Js, { withBorder: !0, reload: m }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: Do.NO_ENVIRONMENTS_AVAILABLE });
9504
+ const E = ib(s, p);
9505
+ return n ? E : E?.[0] || null;
9506
+ }, [s, p, n]), x = () => u ? /* @__PURE__ */ t.jsx(Js, { withBorder: !0, reload: m }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: Do.NO_ENVIRONMENTS_AVAILABLE });
9507
9507
  return /* @__PURE__ */ t.jsx(
9508
9508
  Zo,
9509
9509
  {
@@ -9518,7 +9518,7 @@ const qw = ({
9518
9518
  components: {
9519
9519
  IndicatorSeparator: null,
9520
9520
  LoadingIndicator: _x,
9521
- NoOptionsMessage: E,
9521
+ NoOptionsMessage: x,
9522
9522
  GroupHeading: fx,
9523
9523
  ClearIndicator: pb
9524
9524
  },
@@ -9696,9 +9696,9 @@ const Vc = (e) => {
9696
9696
  dataTestId: m = "feature-title-with-info",
9697
9697
  additionalContent: p,
9698
9698
  showInfoIcon: _ = !1,
9699
- tabsConfig: E
9699
+ tabsConfig: x
9700
9700
  }) => {
9701
- const [x, h] = R(!1), g = () => {
9701
+ const [E, h] = R(!1), g = () => {
9702
9702
  h(!0);
9703
9703
  }, f = () => {
9704
9704
  h(!1);
@@ -9731,14 +9731,14 @@ const Vc = (e) => {
9731
9731
  ]
9732
9732
  }
9733
9733
  ),
9734
- x && /* @__PURE__ */ t.jsx(
9734
+ E && /* @__PURE__ */ t.jsx(
9735
9735
  lb,
9736
9736
  {
9737
9737
  title: r,
9738
9738
  closeModal: f,
9739
9739
  closeModalText: i,
9740
- ...Array.isArray(E) ? {
9741
- tabsConfig: E
9740
+ ...Array.isArray(x) ? {
9741
+ tabsConfig: x
9742
9742
  } : {
9743
9743
  renderDescriptionContent: o,
9744
9744
  docLink: c,
@@ -9748,7 +9748,7 @@ const Vc = (e) => {
9748
9748
  )
9749
9749
  ] });
9750
9750
  };
9751
- var De = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(De || {}), Ns = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Ns || {}), yi = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(yi || {}), Re = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(Re || {}), Po = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(Po || {}), db = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(db || {}), as = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(as || {}), Rr = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(Rr || {});
9751
+ var De = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(De || {}), Cs = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Cs || {}), yi = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(yi || {}), Re = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(Re || {}), Po = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(Po || {}), db = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(db || {}), as = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(as || {}), Rr = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(Rr || {});
9752
9752
  const Hc = {
9753
9753
  missing: 1,
9754
9754
  degraded: 2,
@@ -10187,7 +10187,7 @@ const yb = (e, s) => {
10187
10187
  case "success":
10188
10188
  return /* @__PURE__ */ t.jsx(Q_, { className: "icon-dim-20 green-tick", "data-testid": "success-green-tick" });
10189
10189
  case "failed":
10190
- return /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-20" });
10190
+ return /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20" });
10191
10191
  case "unknown":
10192
10192
  return /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-20" });
10193
10193
  case "inprogress":
@@ -10221,7 +10221,7 @@ const yb = (e, s) => {
10221
10221
  status: n || Re.UNKNOWN,
10222
10222
  message: a || "",
10223
10223
  clusterId: o?.clusterId || jr,
10224
- endTime: bs(r) ? r : ""
10224
+ endTime: Ts(r) ? r : ""
10225
10225
  };
10226
10226
  }, ji = (e) => {
10227
10227
  if (!Object.keys(e || {}).length)
@@ -10239,9 +10239,9 @@ const yb = (e, s) => {
10239
10239
  return s.forEach(({ status: c, endTime: l }, d) => {
10240
10240
  (rr[c] || d === s.length - 1 && c === Re.SUCCEEDED) && (i = l);
10241
10241
  }), {
10242
- triggeredOn: bs(r) ? r : "",
10243
- executionStartedOn: bs(a?.startTime) ? a?.startTime : "",
10244
- finishedOn: bs(i) ? i : "",
10242
+ triggeredOn: Ts(r) ? r : "",
10243
+ executionStartedOn: Ts(a?.startTime) ? a?.startTime : "",
10244
+ finishedOn: Ts(i) ? i : "",
10245
10245
  currentStatus: o,
10246
10246
  workerDetails: Mb(e)
10247
10247
  };
@@ -10258,7 +10258,7 @@ const yb = (e, s) => {
10258
10258
  }, Ub = (e) => {
10259
10259
  const s = ji(e);
10260
10260
  return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(st, { name: "ic-warning", size: 20, color: null }) : Gu(s.workerDetails.status) : /* @__PURE__ */ t.jsx(st, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx(st, { name: "ic-help-outline", size: 20, color: "N500" });
10261
- }, Bb = (e = jr, s = Eb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Hu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ws.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) => bs(e) ? Pe(e, "YYYY-MM-DDTHH:mm:ssZ").format(yt.TWELVE_HOURS_FORMAT) : "", $b = (e) => (e || []).reduce(
10261
+ }, Bb = (e = jr, s = Eb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Hu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ws.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) => Ts(e) ? Pe(e, "YYYY-MM-DDTHH:mm:ssZ").format(yt.TWELVE_HOURS_FORMAT) : "", $b = (e) => (e || []).reduce(
10262
10262
  (s, n) => {
10263
10263
  const a = n.health?.status?.toLowerCase() ?? "";
10264
10264
  switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
@@ -10333,12 +10333,12 @@ const yb = (e, s) => {
10333
10333
  primaryBranchAfterRegex: c,
10334
10334
  rootClassName: l = ""
10335
10335
  }) => {
10336
- const d = e === Ht.WEBHOOK, u = e === Ht.BranchRegex || !!o || i, [m, p] = R(""), [_, E] = R(""), [x, h] = R(!!d), g = () => {
10336
+ const d = e === Ht.WEBHOOK, u = e === Ht.BranchRegex || !!o || i, [m, p] = R(""), [_, x] = R(""), [E, h] = R(!!d), g = () => {
10337
10337
  if (d) {
10338
10338
  const A = JSON.parse(s);
10339
10339
  Ec(A.eventId).then((v) => {
10340
10340
  const I = v.result;
10341
- p(I.name), E(
10341
+ p(I.name), x(
10342
10342
  Wc(
10343
10343
  I.name,
10344
10344
  A.condition,
@@ -10349,7 +10349,7 @@ const yb = (e, s) => {
10349
10349
  throw v;
10350
10350
  });
10351
10351
  } else
10352
- p(s), E(s);
10352
+ p(s), x(s);
10353
10353
  };
10354
10354
  P(() => {
10355
10355
  g();
@@ -10370,19 +10370,19 @@ const yb = (e, s) => {
10370
10370
  const A = JSON.parse(s), v = A.eventId, I = A.condition;
10371
10371
  Ec(v).then((y) => {
10372
10372
  const T = y.result;
10373
- p(T.name), E(Wc(T.name, I, T.selectors)), h(!1);
10373
+ p(T.name), x(Wc(T.name, I, T.selectors)), h(!1);
10374
10374
  }).catch((y) => {
10375
10375
  throw y;
10376
10376
  });
10377
10377
  }
10378
10378
  function b() {
10379
- u && E(f());
10379
+ u && x(f());
10380
10380
  }
10381
10381
  return P(() => {
10382
10382
  N(), b();
10383
10383
  }, []), /* @__PURE__ */ t.jsxs("div", { className: `flex left ${n ? "fw-5" : ""} ${l}`, children: [
10384
- x && a && /* @__PURE__ */ t.jsx("span", { className: "dc__loading-dots", children: "loading" }),
10385
- !x && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-start", children: [
10384
+ E && a && /* @__PURE__ */ t.jsx("span", { className: "dc__loading-dots", children: "loading" }),
10385
+ !E && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-start", children: [
10386
10386
  a && /* @__PURE__ */ t.jsx("span", { className: "icon-dim-12 flex dc__no-shrink dc__fill-available-space mt-4", children: LI(e, u, m) }),
10387
10387
  n ? /* @__PURE__ */ t.jsx(
10388
10388
  ce,
@@ -10519,7 +10519,7 @@ const yb = (e, s) => {
10519
10519
  }) => {
10520
10520
  if (!e && !s)
10521
10521
  return null;
10522
- const m = a && (!bs(r) || !Pe(r).isBefore(Pe().subtract(xb, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
10522
+ const m = a && (!Ts(r) || !Pe(r).isBefore(Pe().subtract(xb, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
10523
10523
  _t,
10524
10524
  {
10525
10525
  to: `${Bb(o, i)}/${a}/logs`,
@@ -10653,8 +10653,8 @@ const yb = (e, s) => {
10653
10653
  renderRunSource: m,
10654
10654
  runSource: p,
10655
10655
  resourceId: _,
10656
- podName: E,
10657
- namespace: x,
10656
+ podName: x,
10657
+ namespace: E,
10658
10658
  workflowExecutionStages: h
10659
10659
  }) => {
10660
10660
  const { path: g, params: f } = Zt(), { pathname: N } = Ls(), b = N.split("/").pop(), { envId: A, ...v } = Tt(), I = l === De.CD || l === De.GROUP_CD, y = I ? "triggerId" : "buildId", T = _ === p?.id, S = Y(null), j = () => {
@@ -10689,8 +10689,8 @@ const yb = (e, s) => {
10689
10689
  {
10690
10690
  workflowExecutionStages: h,
10691
10691
  triggeredByEmail: r,
10692
- namespace: x,
10693
- podName: E,
10692
+ namespace: E,
10693
+ podName: x,
10694
10694
  stage: d,
10695
10695
  gitTriggers: i,
10696
10696
  ciMaterials: o
@@ -10765,10 +10765,10 @@ const yb = (e, s) => {
10765
10765
  renderRunSource: l,
10766
10766
  resourceId: d
10767
10767
  }) => {
10768
- const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = qs(), { path: E } = Zt(), x = (v) => {
10769
- e === De.CI ? (r({ offset: 0, size: 20 }), _(Vs(E, { appId: m, pipelineId: v.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Vs(E, { envId: p, pipelineId: v.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Vs(E, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Vs(E, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
10768
+ const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = qs(), { path: x } = Zt(), E = (v) => {
10769
+ e === De.CI ? (r({ offset: 0, size: 20 }), _(Vs(x, { appId: m, pipelineId: v.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Vs(x, { envId: p, pipelineId: v.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Vs(x, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Vs(x, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
10770
10770
  }, h = () => {
10771
- Ss.event({
10771
+ is.event({
10772
10772
  category: "pagination",
10773
10773
  action: "auto",
10774
10774
  label: `${e.toLowerCase()}-history`,
@@ -10807,7 +10807,7 @@ const yb = (e, s) => {
10807
10807
  classNamePrefix: "history-pipeline-dropdown",
10808
10808
  value: f,
10809
10809
  options: e === De.CI || e === De.GROUP_CI ? s : N,
10810
- onChange: x,
10810
+ onChange: E,
10811
10811
  components: {
10812
10812
  IndicatorSeparator: null,
10813
10813
  Option: A,
@@ -10820,7 +10820,7 @@ const yb = (e, s) => {
10820
10820
  )
10821
10821
  ] }),
10822
10822
  /* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
10823
- o === Ns.SUCCESS && /* @__PURE__ */ t.jsx(Yb, { handleViewAllHistory: i }),
10823
+ o === Cs.SUCCESS && /* @__PURE__ */ t.jsx(Yb, { handleViewAllHistory: i }),
10824
10824
  Array.from(n).sort(([v], [I]) => I - v).map(([v, I], y) => /* @__PURE__ */ t.jsx(
10825
10825
  Kb,
10826
10826
  {
@@ -10844,7 +10844,7 @@ const yb = (e, s) => {
10844
10844
  },
10845
10845
  v
10846
10846
  )),
10847
- a && (o === Ns.SUSPEND || !o) && /* @__PURE__ */ t.jsx(qu, { callback: h })
10847
+ a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(qu, { callback: h })
10848
10848
  ] })
10849
10849
  ] });
10850
10850
  }
@@ -10937,44 +10937,47 @@ const yb = (e, s) => {
10937
10937
  resourcesOptionsError: r,
10938
10938
  refetchResourcesOptions: o
10939
10939
  };
10940
- }, Qb = (e) => fetch(`${Ha}/${e}`), eT = () => {
10941
- const [e, s] = R(!1);
10940
+ }, Qb = (e) => fetch(e), eT = ({ shouldOpenInNewTab: e } = {}) => {
10941
+ const [s, n] = R(!1);
10942
10942
  return { handleDownload: async ({
10943
- downloadUrl: a,
10944
- showFilePreparingToast: r = !1,
10945
- fileName: o,
10946
- showSuccessfulToast: i = !0,
10947
- downloadSuccessToastContent: c = "Downloaded Successfully"
10943
+ downloadUrl: r,
10944
+ showFilePreparingToast: o = !1,
10945
+ fileName: i,
10946
+ showSuccessfulToast: c = !0,
10947
+ downloadSuccessToastContent: l = "Downloaded Successfully"
10948
10948
  }) => {
10949
- s(!0);
10949
+ const d = `${Ha}/${r}`;
10950
+ if (e)
10951
+ return window.open(d, "_blank"), null;
10952
+ n(!0);
10950
10953
  try {
10951
- const l = await Qb(a);
10952
- if (l.status === tc.OK) {
10953
- r && Ue.showToast({
10954
+ const u = await Qb(d);
10955
+ if (u.status === tc.OK) {
10956
+ o && Ue.showToast({
10954
10957
  variant: ve.info,
10955
10958
  title: "Preparing file for download",
10956
10959
  description: "File will be downloaded when it is available."
10957
10960
  });
10958
- const d = await l.blob(), u = URL.createObjectURL(d), m = document.createElement("a");
10959
- m.href = u, m.download = o || yN(l.headers) || "file.tgz", document.body.appendChild(m), m.click(), setTimeout(() => {
10960
- URL.revokeObjectURL(u), document.body.removeChild(m);
10961
- }, 0), i && Ue.showToast({
10961
+ const m = await u.blob(), p = URL.createObjectURL(m), _ = document.createElement("a");
10962
+ _.href = p, _.download = i || yN(u.headers) || "file.tgz", document.body.appendChild(_), _.click(), setTimeout(() => {
10963
+ URL.revokeObjectURL(p), document.body.removeChild(_);
10964
+ }, 0), c && Ue.showToast({
10962
10965
  variant: ve.success,
10963
- description: c
10966
+ description: l
10964
10967
  });
10965
10968
  } else {
10966
- if (l.status === tc.NO_CONTENT)
10969
+ if (u.status === tc.NO_CONTENT)
10967
10970
  throw new Error("No content to download");
10968
10971
  {
10969
- const d = await l?.json();
10970
- throw new Pt(d);
10972
+ const m = await u?.json();
10973
+ throw new Pt(m);
10971
10974
  }
10972
10975
  }
10973
- } catch (l) {
10974
- return s(!1), Be(l), l;
10976
+ } catch (u) {
10977
+ return n(!1), Be(u), u;
10975
10978
  }
10976
- return s(!1), null;
10977
- }, isDownloading: e };
10979
+ return n(!1), null;
10980
+ }, isDownloading: s };
10978
10981
  }, In = (e, s) => {
10979
10982
  if (s?.required && (typeof s.required == "object" ? s.required.value : s.required) && (e == null || e === ""))
10980
10983
  return [typeof s.required == "object" ? s.required.message : "This is a required field"];
@@ -10996,7 +10999,7 @@ const yb = (e, s) => {
10996
10999
  const S = I[T], j = In(v[T], S);
10997
11000
  j && (y[T] = j);
10998
11001
  }), y;
10999
- }, E = (v, I) => (y) => {
11002
+ }, x = (v, I) => (y) => {
11000
11003
  y?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((S, j) => ({ ...S, [j]: !0 }), {}));
11001
11004
  const T = _(n);
11002
11005
  if (Object.keys(T).length) {
@@ -11006,9 +11009,9 @@ const yb = (e, s) => {
11006
11009
  d({}), v(n, y);
11007
11010
  };
11008
11011
  P(() => {
11009
- e?.shouldValidateOnMount && E(nt)();
11012
+ e?.shouldValidateOnMount && x(nt)();
11010
11013
  }, []);
11011
- const x = (v, I, y) => (T) => {
11014
+ const E = (v, I, y) => (T) => {
11012
11015
  const S = y ? T : T.target.value, j = I ? I(S) : S;
11013
11016
  a((O) => {
11014
11017
  const w = { ...O, [v]: j }, L = e?.validationMode ?? "onChange";
@@ -11034,12 +11037,12 @@ const yb = (e, s) => {
11034
11037
  /** An object containing validation errors for each form field. */
11035
11038
  errors: l,
11036
11039
  register: (v, I) => ({
11037
- onChange: x(v, I?.sanitizeFn, I?.isCustomComponent),
11040
+ onChange: E(v, I?.sanitizeFn, I?.isCustomComponent),
11038
11041
  onBlur: h(v, I?.noTrim),
11039
11042
  onFocus: g(v),
11040
11043
  name: v
11041
11044
  }),
11042
- handleSubmit: E,
11045
+ handleSubmit: x,
11043
11046
  trigger: (v) => {
11044
11047
  const I = p();
11045
11048
  if (Array.isArray(v)) {
@@ -11126,13 +11129,13 @@ const yb = (e, s) => {
11126
11129
  let l, d;
11127
11130
  const u = `${n}__sentinel`, m = new IntersectionObserver(
11128
11131
  (_) => {
11129
- _.forEach((E) => {
11130
- switch (E.target.id) {
11132
+ _.forEach((x) => {
11133
+ switch (x.target.id) {
11131
11134
  case u:
11132
- l = !E.isIntersecting;
11135
+ l = !x.isIntersecting;
11133
11136
  break;
11134
11137
  default:
11135
- d = !E.isIntersecting;
11138
+ d = !x.isIntersecting;
11136
11139
  }
11137
11140
  }), i(l && !d);
11138
11141
  },
@@ -11173,8 +11176,8 @@ const yb = (e, s) => {
11173
11176
  appliedFilters: m,
11174
11177
  isSuperAdmin: p,
11175
11178
  promotionApprovalMetadata: _,
11176
- appliedFiltersTimestamp: E,
11177
- selectedEnvironmentName: x,
11179
+ appliedFiltersTimestamp: x,
11180
+ selectedEnvironmentName: E,
11178
11181
  renderCIListHeader: h,
11179
11182
  targetPlatforms: g
11180
11183
  }) => {
@@ -11189,9 +11192,9 @@ const yb = (e, s) => {
11189
11192
  userApprovalMetadata: s,
11190
11193
  triggeredBy: n,
11191
11194
  appliedFilters: m,
11192
- appliedFiltersTimestamp: E,
11195
+ appliedFiltersTimestamp: x,
11193
11196
  promotionApprovalMetadata: _,
11194
- selectedEnvironmentName: x
11197
+ selectedEnvironmentName: E
11195
11198
  }),
11196
11199
  /* @__PURE__ */ t.jsxs(
11197
11200
  "div",
@@ -11238,10 +11241,12 @@ const yb = (e, s) => {
11238
11241
  tagsEditable: m,
11239
11242
  hideImageTaggingHardDelete: p,
11240
11243
  rootClassName: _,
11241
- renderCIListHeader: E,
11242
- targetPlatforms: x
11244
+ renderCIListHeader: x,
11245
+ targetPlatforms: E
11243
11246
  }) => {
11244
- const { isSuperAdmin: h } = su(), { handleDownload: g } = eT(), { triggerId: f, buildId: N } = Tt(), b = e.toLowerCase();
11247
+ const { isSuperAdmin: h } = su(), { handleDownload: g } = eT({
11248
+ shouldOpenInNewTab: !0
11249
+ }), { triggerId: f, buildId: N } = Tt(), b = e.toLowerCase();
11245
11250
  async function A() {
11246
11251
  await g({
11247
11252
  downloadUrl: r,
@@ -11283,8 +11288,8 @@ const yb = (e, s) => {
11283
11288
  tagsEditable: m,
11284
11289
  hideImageTaggingHardDelete: p,
11285
11290
  isSuperAdmin: h,
11286
- renderCIListHeader: E,
11287
- targetPlatforms: x,
11291
+ renderCIListHeader: x,
11292
+ targetPlatforms: E,
11288
11293
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
11289
11294
  /* @__PURE__ */ t.jsxs("div", { className: "cn-9 fs-14 flex left", "data-testid": "artifact-text-visibility", children: [
11290
11295
  qa(s),
@@ -11297,7 +11302,7 @@ const yb = (e, s) => {
11297
11302
  ] })
11298
11303
  }
11299
11304
  ),
11300
- n && r && a && /* @__PURE__ */ t.jsx(Uo, { type: "report", renderCIListHeader: E, children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
11305
+ n && r && a && /* @__PURE__ */ t.jsx(Uo, { type: "report", renderCIListHeader: x, children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
11301
11306
  /* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-14", children: "Reports.zip" }),
11302
11307
  /* @__PURE__ */ t.jsxs(
11303
11308
  "button",
@@ -11329,7 +11334,7 @@ const yb = (e, s) => {
11329
11334
  /* @__PURE__ */ t.jsx(dd, { className: "icon-dim-20 ml-8" })
11330
11335
  ] }) })
11331
11336
  ] });
11332
- }, Zc = (e) => e && e === Ns.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
11337
+ }, Zc = (e) => e && e === Cs.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
11333
11338
  async function rT({
11334
11339
  appId: e,
11335
11340
  envId: s,
@@ -11484,10 +11489,10 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11484
11489
  }) => {
11485
11490
  const _ = () => {
11486
11491
  s ? i(l) : c(l);
11487
- }, E = () => {
11492
+ }, x = () => {
11488
11493
  const h = IN(r, a);
11489
11494
  return h === "0s" ? "< 1s" : h;
11490
- }, x = (h) => {
11495
+ }, E = (h) => {
11491
11496
  h && (h.dataset.containsMatch === "true" && h.dataset.triggered !== "true" && (h.dataset.triggered = "true", h.scrollIntoView({ block: "center", behavior: "smooth" })), h.dataset.containsMatch === "false" && (h.dataset.triggered = "false"));
11492
11497
  };
11493
11498
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
@@ -11523,7 +11528,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11523
11528
  ] }) }),
11524
11529
  !!a && /* @__PURE__ */ t.jsx("div", { className: "dc__bullet--white dc__bullet" })
11525
11530
  ] }),
11526
- !!a && /* @__PURE__ */ t.jsx("span", { className: "text__white fs-13 fw-4 lh-20", children: E() })
11531
+ !!a && /* @__PURE__ */ t.jsx("span", { className: "text__white fs-13 fw-4 lh-20", children: x() })
11527
11532
  ] })
11528
11533
  ]
11529
11534
  }
@@ -11538,7 +11543,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11538
11543
  /* @__PURE__ */ t.jsx(
11539
11544
  "span",
11540
11545
  {
11541
- ref: x,
11546
+ ref: E,
11542
11547
  className: "cn-5 col-2 lh-20 dc__text-align-end dc__word-break mono fs-14 dc__user-select-none",
11543
11548
  "data-contains-match": f,
11544
11549
  children: g + 1
@@ -11599,14 +11604,14 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11599
11604
  function _(f) {
11600
11605
  f.type === "message" && (r = Aa, d.current.push(f.data));
11601
11606
  }
11602
- function E() {
11607
+ function x() {
11603
11608
  r = Aa, d.current = [], a([]);
11604
11609
  }
11605
- function x() {
11610
+ function E() {
11606
11611
  r = Aa, a((f) => [...f, ...d.current]), d.current = [], u.current.close(), l(null);
11607
11612
  }
11608
11613
  function h() {
11609
- d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(va.MESSAGE, _), u.current.addEventListener(va.START_OF_STREAM, E), u.current.addEventListener(va.END_OF_STREAM, x), u.current.addEventListener(va.ERROR, g);
11614
+ d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(va.MESSAGE, _), u.current.addEventListener(va.START_OF_STREAM, x), u.current.addEventListener(va.END_OF_STREAM, E), u.current.addEventListener(va.ERROR, g);
11610
11615
  }
11611
11616
  function g(f) {
11612
11617
  r -= 1, u.current && u.current.close(), r > 0 ? h() : (i(!0), l(null));
@@ -11615,7 +11620,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11615
11620
  }, ET = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
11616
11621
  const { pipelineId: r, envId: o, appId: i } = Tt(), c = n === De.CI ? `${Ha}/${V.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Ha}/${V.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [l, d, u] = xT(
11617
11622
  e.podStatus && e.podStatus !== Qr.PENDING && c
11618
- ), [m, p] = R([]), [_, E] = R([]), [x, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: b } = nu(), A = _.length > 0, v = Q(() => m.every((F) => F.isOpen), [m]), I = v ? "Collapse all stages" : "Expand all stages", { registerShortcut: y, unregisterShortcut: T } = ra(), S = l[0]?.startsWith(Kc) || !1;
11623
+ ), [m, p] = R([]), [_, x] = R([]), [E, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: b } = nu(), A = _.length > 0, v = Q(() => m.every((F) => F.isOpen), [m]), I = v ? "Collapse all stages" : "Expand all stages", { registerShortcut: y, unregisterShortcut: T } = ra(), S = l[0]?.startsWith(Kc) || !1;
11619
11624
  function j({
11620
11625
  log: F,
11621
11626
  currentIndex: $ = -1,
@@ -11709,7 +11714,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11709
11714
  }
11710
11715
  return M;
11711
11716
  }, []);
11712
- return E(xe), k;
11717
+ return x(xe), k;
11713
11718
  };
11714
11719
  P(() => {
11715
11720
  if (!l?.length)
@@ -11719,7 +11724,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11719
11724
  f($);
11720
11725
  return;
11721
11726
  }
11722
- const F = w(x);
11727
+ const F = w(E);
11723
11728
  p(F);
11724
11729
  }, [l, O]);
11725
11730
  const L = ze(() => {
@@ -11736,7 +11741,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11736
11741
  const B = (F, $ = N) => {
11737
11742
  if (_.length > 0 || F === "reset") {
11738
11743
  let de = 0;
11739
- F === "next" ? de = (x + 1) % _.length : F === "prev" && (de = x > 0 ? x - 1 : _.length - 1), h(de), p(w(de, $));
11744
+ F === "next" ? de = (E + 1) % _.length : F === "prev" && (de = E > 0 ? E - 1 : _.length - 1), h(de), p(w(de, $));
11740
11745
  }
11741
11746
  }, H = () => {
11742
11747
  B("next");
@@ -11782,7 +11787,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11782
11787
  ),
11783
11788
  !!N && /* @__PURE__ */ t.jsxs("div", { className: "flexbox px-10 py-6 dc__gap-8 dc__align-items-center", children: [
11784
11789
  /* @__PURE__ */ t.jsxs("span", { className: "fs-13 fw-4 lh-20 text__white", children: [
11785
- A ? x + 1 : 0,
11790
+ A ? E + 1 : 0,
11786
11791
  "/",
11787
11792
  _.length,
11788
11793
  " results"
@@ -11854,7 +11859,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11854
11859
  stageIndex: G,
11855
11860
  isLoading: G === m.length - 1 && O,
11856
11861
  fullScreenView: a,
11857
- searchIndex: _[x]
11862
+ searchIndex: _[E]
11858
11863
  },
11859
11864
  `${F}-${xe}-log-stage-accordion`
11860
11865
  )
@@ -11929,7 +11934,7 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
11929
11934
  {
11930
11935
  className: `bcr-1 ${s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO ? "fs-13" : "flex left"} ${r ? "" : "er-2 br-4 bw-1"} p-8`,
11931
11936
  children: [
11932
- !r && /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-20 mr-8" }),
11937
+ !r && /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20 mr-8" }),
11933
11938
  n,
11934
11939
  s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO && /* @__PURE__ */ t.jsxs("ol", { className: "m-0 pl-20", children: [
11935
11940
  /* @__PURE__ */ t.jsx("li", { children: "Ensure provided repository path is valid" }),
@@ -12010,12 +12015,12 @@ const dD = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
12010
12015
  children: /* @__PURE__ */ t.jsx(Gt, { className: "icon-dim-14 scn-6" })
12011
12016
  }
12012
12017
  ),
12013
- /* @__PURE__ */ t.jsx(lt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: c.map(({ status: p, count: _ }, E) => /* @__PURE__ */ t.jsxs(
12018
+ /* @__PURE__ */ t.jsx(lt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: c.map(({ status: p, count: _ }, x) => /* @__PURE__ */ t.jsxs(
12014
12019
  "button",
12015
12020
  {
12016
12021
  type: "button",
12017
12022
  className: `dc__transparent w-100 py-6 px-8 flex dc__content-space dc__gap-8 fs-13 lh-20 fw-4 cn-9 dc__hover-n50 ${s === p ? "bcb-1" : ""}`,
12018
- onClick: m(p, E),
12023
+ onClick: m(p, x),
12019
12024
  children: [
12020
12025
  qc(p),
12021
12026
  /* @__PURE__ */ t.jsx("span", { children: _ })
@@ -12214,11 +12219,11 @@ const vT = (e, s) => {
12214
12219
  )), d(g);
12215
12220
  }
12216
12221
  }, [`${_}`]);
12217
- function E(h, g) {
12222
+ function x(h, g) {
12218
12223
  return o.resourceTree?.resourcesSyncResult && // eslint-disable-next-line no-prototype-builtins
12219
12224
  o.resourceTree?.resourcesSyncResult.hasOwnProperty(`${h}/${g}`) ? o.resourceTree.resourcesSyncResult[`${h}/${g}`] : "";
12220
12225
  }
12221
- const x = (h) => {
12226
+ const E = (h) => {
12222
12227
  i !== h.toLowerCase() && c(h.toLowerCase());
12223
12228
  };
12224
12229
  return /* @__PURE__ */ t.jsxs("div", { className: "pb-12", children: [
@@ -12227,7 +12232,7 @@ const vT = (e, s) => {
12227
12232
  {
12228
12233
  nodes: l,
12229
12234
  selectedTab: i,
12230
- handleFilterClick: x
12235
+ handleFilterClick: E
12231
12236
  }
12232
12237
  ) }) }) }),
12233
12238
  /* @__PURE__ */ t.jsxs("div", { children: [
@@ -12275,7 +12280,7 @@ const vT = (e, s) => {
12275
12280
  }
12276
12281
  )
12277
12282
  ] }),
12278
- /* @__PURE__ */ t.jsx("div", { children: E(h.kind, h.name) })
12283
+ /* @__PURE__ */ t.jsx("div", { children: x(h.kind, h.name) })
12279
12284
  ] })
12280
12285
  ]
12281
12286
  },
@@ -12313,9 +12318,9 @@ const vT = (e, s) => {
12313
12318
  }, [o.isCollapsed]);
12314
12319
  async function u() {
12315
12320
  try {
12316
- const x = await dT({ appId: a, envId: r });
12317
- } catch (x) {
12318
- Be(x);
12321
+ const E = await dT({ appId: a, envId: r });
12322
+ } catch (E) {
12323
+ Be(E);
12319
12324
  }
12320
12325
  }
12321
12326
  const m = () => {
@@ -12332,36 +12337,36 @@ const vT = (e, s) => {
12332
12337
  }
12333
12338
  ),
12334
12339
  e === z.KUBECTL_APPLY && /* @__PURE__ */ t.jsxs("div", { className: "pr-8 pl-8 pt-12 pb-12", children: [
12335
- /* @__PURE__ */ t.jsx("div", { className: "", children: n.deploymentStatusBreakdown[z.KUBECTL_APPLY].kubeList?.map((x, h) => (
12340
+ /* @__PURE__ */ t.jsx("div", { className: "", children: n.deploymentStatusBreakdown[z.KUBECTL_APPLY].kubeList?.map((E, h) => (
12336
12341
  // eslint-disable-next-line react/no-array-index-key
12337
12342
  /* @__PURE__ */ t.jsxs("div", { className: "flex left lh-20 mb-8", children: [
12338
- zc(x.icon),
12339
- /* @__PURE__ */ t.jsx("span", { className: "ml-12", children: x.message })
12343
+ zc(E.icon),
12344
+ /* @__PURE__ */ t.jsx("span", { className: "ml-12", children: E.message })
12340
12345
  ] }, `item-${h}`)
12341
12346
  )) }),
12342
12347
  o.resourceDetails?.length ? /* @__PURE__ */ t.jsxs("div", { className: "pl-32", children: [
12343
- /* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pb-8", children: Cb.map((x, h) => (
12348
+ /* @__PURE__ */ t.jsx("div", { className: "app-status-row dc__border-bottom pt-8 pb-8", children: Cb.map((E, h) => (
12344
12349
  // eslint-disable-next-line react/no-array-index-key
12345
- /* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: x }, `header_${h}`)
12350
+ /* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: E }, `header_${h}`)
12346
12351
  )) }),
12347
- /* @__PURE__ */ t.jsx("div", { className: "resource-list fs-13", children: o.resourceDetails.map((x) => /* @__PURE__ */ t.jsxs(
12352
+ /* @__PURE__ */ t.jsx("div", { className: "resource-list fs-13", children: o.resourceDetails.map((E) => /* @__PURE__ */ t.jsxs(
12348
12353
  "div",
12349
12354
  {
12350
12355
  className: "app-status-row pt-8 pb-8",
12351
12356
  children: [
12352
- /* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: x.resourceKind }),
12353
- /* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: x.resourceName }),
12357
+ /* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: E.resourceKind }),
12358
+ /* @__PURE__ */ t.jsx("div", { className: "dc__break-word", children: E.resourceName }),
12354
12359
  /* @__PURE__ */ t.jsx(
12355
12360
  "div",
12356
12361
  {
12357
- className: `app-summary__status-name f-${x.resourceStatus ? x.resourceStatus.toLowerCase() === ye.RUNNING ? ye.PROGRESSING : x.resourceStatus.toLowerCase() : ""}`,
12358
- children: x.resourceStatus
12362
+ className: `app-summary__status-name f-${E.resourceStatus ? E.resourceStatus.toLowerCase() === ye.RUNNING ? ye.PROGRESSING : E.resourceStatus.toLowerCase() : ""}`,
12363
+ children: E.resourceStatus
12359
12364
  }
12360
12365
  ),
12361
- /* @__PURE__ */ t.jsx(Wu, { text: x.statusMessage })
12366
+ /* @__PURE__ */ t.jsx(Wu, { text: E.statusMessage })
12362
12367
  ]
12363
12368
  },
12364
- `${x.resourceKind}/${x.resourceName}`
12369
+ `${E.resourceKind}/${E.resourceName}`
12365
12370
  )) })
12366
12371
  ] }) : null
12367
12372
  ] })
@@ -12377,7 +12382,7 @@ const vT = (e, s) => {
12377
12382
  }
12378
12383
  ),
12379
12384
  /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(AT, { filterRemoveHealth: !0, showFooter: !1 }) })
12380
- ] }), E = () => /* @__PURE__ */ t.jsx(
12385
+ ] }), x = () => /* @__PURE__ */ t.jsx(
12381
12386
  Da,
12382
12387
  {
12383
12388
  type: z.HELM_MANIFEST_PUSHED_TO_HELM_REPO,
@@ -12410,7 +12415,7 @@ const vT = (e, s) => {
12410
12415
  }
12411
12416
  ),
12412
12417
  (e === z.KUBECTL_APPLY && o.kubeList?.length || e === z.APP_HEALTH && l.includes(o.icon) || (e === z.GIT_COMMIT || e === z.ARGOCD_SYNC) && o.icon === "failed") && /* @__PURE__ */ t.jsx(
12413
- Ts,
12418
+ Ss,
12414
12419
  {
12415
12420
  style: { marginLeft: "auto", "--rotateBy": `${180 * +!i}deg` },
12416
12421
  className: "icon-dim-24 rotate pointer",
@@ -12421,7 +12426,7 @@ const vT = (e, s) => {
12421
12426
  ]
12422
12427
  }
12423
12428
  ),
12424
- d && E()
12429
+ d && x()
12425
12430
  ] }),
12426
12431
  e === z.GIT_COMMIT && p(),
12427
12432
  e === z.ARGOCD_SYNC && p(),
@@ -12635,7 +12640,7 @@ const jT = ({
12635
12640
  processVirtualEnvironmentDeploymentData: c,
12636
12641
  renderDeploymentApprovalInfo: l
12637
12642
  }) => {
12638
- const d = qs(), { url: u } = Zt(), { appId: m, envId: p, triggerId: _ } = Tt(), [E, x] = R(
12643
+ const d = qs(), { url: u } = Zt(), { appId: m, envId: p, triggerId: _ } = Tt(), [x, E] = R(
12639
12644
  e?.toUpperCase() !== z.ABORTED
12640
12645
  ), h = Y(i), g = h.current && c ? c() : Pc(), [f, N] = R(g), b = () => {
12641
12646
  Ia && clearTimeout(Ia);
@@ -12643,9 +12648,9 @@ const jT = ({
12643
12648
  lT(m, p, !0, _, n, a).then((T) => {
12644
12649
  e !== "Aborted" && v(T.result);
12645
12650
  }).catch(() => {
12646
- x(!1);
12651
+ E(!1);
12647
12652
  }).finally(() => {
12648
- x(!1);
12653
+ E(!1);
12649
12654
  });
12650
12655
  };
12651
12656
  P(() => (s === rn.HELM && d.replace(`${u.replace("deployment-steps", "source-code")}`), r && A(), () => {
@@ -12695,13 +12700,20 @@ const jT = ({
12695
12700
  }
12696
12701
  )
12697
12702
  ] });
12698
- return e?.toUpperCase() === z.ABORTED || f.deploymentStatus === he.SUPERSEDED ? /* @__PURE__ */ t.jsx("div", { className: "flexbox deployment-aborted", "data-testid": "deployment-history-steps-failed-message", children: /* @__PURE__ */ t.jsx(
12699
- Ze,
12703
+ return e?.toUpperCase() === z.ABORTED || f.deploymentStatus === he.SUPERSEDED ? /* @__PURE__ */ t.jsx(
12704
+ "div",
12700
12705
  {
12701
- title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
12702
- subTitle: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
12706
+ className: "flexbox flex-grow-1 dc__content-center",
12707
+ "data-testid": "deployment-history-steps-failed-message",
12708
+ children: /* @__PURE__ */ t.jsx(
12709
+ Ze,
12710
+ {
12711
+ title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
12712
+ subTitle: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
12713
+ }
12714
+ )
12703
12715
  }
12704
- ) }) : E ? /* @__PURE__ */ t.jsx(ke, { pageLoader: !0 }) : y();
12716
+ ) : x ? /* @__PURE__ */ t.jsx(ke, { pageLoader: !0 }) : y();
12705
12717
  }, Li = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t.jsx(Ed, { children: e && /* @__PURE__ */ t.jsx(
12706
12718
  pn.div,
12707
12719
  {
@@ -12881,9 +12893,9 @@ const Qu = {
12881
12893
  } : {}
12882
12894
  }))
12883
12895
  })
12884
- ), E = (b) => {
12896
+ ), x = (b) => {
12885
12897
  p((A) => ({ ...A, [b]: !A[b] }));
12886
- }, x = (b) => {
12898
+ }, E = (b) => {
12887
12899
  const { value: A } = b.target;
12888
12900
  c?.activeTab !== A && c?.onClick?.(A);
12889
12901
  }, h = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
@@ -12896,7 +12908,7 @@ const Qu = {
12896
12908
  {
12897
12909
  name: "deployment-config-diff-tab-list",
12898
12910
  initialTab: A,
12899
- onChange: x,
12911
+ onChange: E,
12900
12912
  disabled: e,
12901
12913
  className: "gui-yaml-switch deployment-config-diff__tab-list",
12902
12914
  children: b.map((v) => /* @__PURE__ */ t.jsx(It.Radio, { value: v, className: "fs-12 lh-20 cn-7 fw-6", children: v }, v))
@@ -12930,7 +12942,7 @@ const Qu = {
12930
12942
  b
12931
12943
  );
12932
12944
  }),
12933
- /* @__PURE__ */ t.jsx(OT, { config: _, tabType: "navLink", onCollapseBtnClick: E }),
12945
+ /* @__PURE__ */ t.jsx(OT, { config: _, tabType: "navLink", onCollapseBtnClick: x }),
12934
12946
  o && /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
12935
12947
  /* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(Nr, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(Vn, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
12936
12948
  /* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${i ? "cr-5" : "cn-9"}`, children: o })
@@ -12951,19 +12963,18 @@ const Qu = {
12951
12963
  isButtonAvailable: a,
12952
12964
  classname: r,
12953
12965
  styles: o,
12954
- heightToDeduct: i,
12955
- imageType: c,
12956
- renderButton: l,
12957
- imageClassName: d,
12958
- children: u,
12959
- SvgImage: m,
12960
- noImage: p,
12961
- layout: _ = "column",
12962
- contentClassName: E = "",
12966
+ imageType: i,
12967
+ renderButton: c,
12968
+ imageClassName: l,
12969
+ children: d,
12970
+ SvgImage: u,
12971
+ noImage: m,
12972
+ layout: p = "column",
12973
+ contentClassName: _ = "",
12963
12974
  imageStyles: x = {}
12964
12975
  }) => {
12965
- const h = _ === "row", g = () => {
12966
- switch (c) {
12976
+ const E = p === "row", h = () => {
12977
+ switch (i) {
12967
12978
  case Xs.Large:
12968
12979
  return { width: "250px", height: "200px" };
12969
12980
  default:
@@ -12973,28 +12984,27 @@ const Qu = {
12973
12984
  return /* @__PURE__ */ t.jsxs(
12974
12985
  "div",
12975
12986
  {
12976
- className: `flex ${h ? "dc__gap-32" : "column dc__gap-20"} empty-state ${r || ""}`,
12987
+ className: `flex ${E ? "dc__gap-32" : "column dc__gap-20"} empty-state ${r || ""}`,
12977
12988
  style: o,
12978
12989
  "data-testid": "generic-empty-state",
12979
- ...i >= 0 && { style: { ...o, height: `calc(100vh - ${i}px)` } },
12980
12990
  children: [
12981
- m ? /* @__PURE__ */ t.jsx(
12982
- m,
12991
+ u ? /* @__PURE__ */ t.jsx(
12992
+ u,
12983
12993
  {
12984
12994
  style: {
12985
- width: `${g().width}`,
12986
- height: `${g().height}`,
12995
+ width: `${h().width}`,
12996
+ height: `${h().height}`,
12987
12997
  ...x
12988
12998
  }
12989
12999
  }
12990
- ) : !p && /* @__PURE__ */ t.jsx(
13000
+ ) : !m && /* @__PURE__ */ t.jsx(
12991
13001
  "img",
12992
13002
  {
12993
- className: d || "",
13003
+ className: l || "",
12994
13004
  src: s || pd,
12995
13005
  style: {
12996
- width: `${g().width}`,
12997
- height: `${g().height}`,
13006
+ width: `${h().width}`,
13007
+ height: `${h().height}`,
12998
13008
  ...x
12999
13009
  },
13000
13010
  alt: "empty-state"
@@ -13003,28 +13013,28 @@ const Qu = {
13003
13013
  /* @__PURE__ */ t.jsxs(
13004
13014
  "div",
13005
13015
  {
13006
- className: `flex column dc__gap-20 dc__mxw-300 ${h ? "dc__align-start" : ""} ${E}`,
13016
+ className: `flex column dc__gap-20 dc__mxw-300 ${E ? "dc__align-start" : ""} ${_}`,
13007
13017
  children: [
13008
13018
  /* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-8", children: [
13009
13019
  /* @__PURE__ */ t.jsx("h4", { className: "title fw-6 cn-9 mt-0 mb-0 lh-24 dc__align-center", children: e }),
13010
- n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${h ? "subtitle--text-start" : ""}`, children: n })
13020
+ n && /* @__PURE__ */ t.jsx("p", { className: `subtitle ${E ? "subtitle--text-start" : ""}`, children: n })
13011
13021
  ] }),
13012
- a && l(),
13013
- u
13022
+ a && c(),
13023
+ d
13014
13024
  ]
13015
13025
  }
13016
13026
  )
13017
13027
  ]
13018
13028
  }
13019
13029
  );
13020
- }, Ms = ({ code: e, image: s, title: n, subTitle: a, imageType: r, heightToDeduct: o, redirectURL: i, reload: c }) => {
13021
- const { push: l } = qs(), d = () => {
13022
- l(i || `/${V.APP_LIST}`);
13023
- }, u = (x) => {
13030
+ }, Ms = ({ code: e, image: s, title: n, subTitle: a, imageType: r, redirectURL: o, reload: i }) => {
13031
+ const { push: c } = qs(), l = () => {
13032
+ c(o || `/${V.APP_LIST}`);
13033
+ }, d = (x) => {
13024
13034
  switch (x) {
13025
13035
  case He.NOT_FOUND:
13026
13036
  return {
13027
- onClick: d,
13037
+ onClick: l,
13028
13038
  renderButtonText: Ke.TAKE_BACK_HOME,
13029
13039
  isButtonAvailable: !0
13030
13040
  };
@@ -13038,7 +13048,7 @@ const Qu = {
13038
13048
  case He.BAD_GATEWAY:
13039
13049
  case He.SERVICE_TEMPORARY_UNAVAILABLE:
13040
13050
  return {
13041
- onClick: c ?? Dm,
13051
+ onClick: i ?? Dm,
13042
13052
  renderButtonText: Ke.TRY_AGAIN,
13043
13053
  isButtonAvailable: !0
13044
13054
  };
@@ -13046,20 +13056,19 @@ const Qu = {
13046
13056
  return { onClick: nt, renderButtonText: "", isButtonAvailable: !1 };
13047
13057
  }
13048
13058
  }, {
13049
- onClick: m,
13050
- renderButtonText: p,
13051
- isButtonAvailable: _
13052
- } = u(e), E = () => /* @__PURE__ */ t.jsx("button", { type: "button", className: "flex cta h-36", onClick: m, "data-testid": "empty-screen-take-me-home", children: p });
13059
+ onClick: u,
13060
+ renderButtonText: m,
13061
+ isButtonAvailable: p
13062
+ } = d(e), _ = () => /* @__PURE__ */ t.jsx("button", { type: "button", className: "flex cta h-36", onClick: u, "data-testid": "empty-screen-take-me-home", children: m });
13053
13063
  return /* @__PURE__ */ t.jsx(
13054
13064
  Ze,
13055
13065
  {
13056
13066
  image: s,
13057
13067
  title: n,
13058
13068
  subTitle: a,
13059
- isButtonAvailable: _,
13060
- renderButton: E,
13061
- imageType: r,
13062
- heightToDeduct: o
13069
+ isButtonAvailable: p,
13070
+ renderButton: _,
13071
+ imageType: r
13063
13072
  }
13064
13073
  );
13065
13074
  }, Lr = ({
@@ -13067,9 +13076,8 @@ const Qu = {
13067
13076
  reload: s,
13068
13077
  subtitle: n,
13069
13078
  reloadClass: a,
13070
- heightToDeduct: r,
13071
- redirectURL: o,
13072
- imageType: i = Xs.Large
13079
+ redirectURL: r,
13080
+ imageType: o = Xs.Large
13073
13081
  }) => (() => {
13074
13082
  switch (e) {
13075
13083
  case He.BAD_REQUEST:
@@ -13080,8 +13088,7 @@ const Qu = {
13080
13088
  title: Ke.BAD_REQUEST,
13081
13089
  subTitle: n || Ke.BAD_REQUEST_MESSAGE,
13082
13090
  image: Ln,
13083
- imageType: i,
13084
- heightToDeduct: r,
13091
+ imageType: o,
13085
13092
  reload: s
13086
13093
  }
13087
13094
  );
@@ -13093,8 +13100,7 @@ const Qu = {
13093
13100
  title: Ke.UNAUTHORIZED,
13094
13101
  subTitle: n || Ke.UNAUTHORIZED_MESSAGE,
13095
13102
  image: fo,
13096
- imageType: i,
13097
- heightToDeduct: r
13103
+ imageType: o
13098
13104
  }
13099
13105
  );
13100
13106
  case He.PERMISSION_DENIED:
@@ -13105,8 +13111,7 @@ const Qu = {
13105
13111
  title: Ke.FORBIDDEN,
13106
13112
  subTitle: n || Ke.FORBIDDEN_MESSAGE,
13107
13113
  image: fo,
13108
- imageType: i,
13109
- heightToDeduct: r
13114
+ imageType: o
13110
13115
  }
13111
13116
  );
13112
13117
  case He.NOT_FOUND:
@@ -13117,9 +13122,8 @@ const Qu = {
13117
13122
  title: Ke.PAGE_NOT_FOUND,
13118
13123
  subTitle: n || Ke.PAGE_NOT_EXIST,
13119
13124
  image: pf,
13120
- imageType: i,
13121
- heightToDeduct: r,
13122
- redirectURL: o
13125
+ imageType: o,
13126
+ redirectURL: r
13123
13127
  }
13124
13128
  );
13125
13129
  case He.INTERNAL_SERVER_ERROR:
@@ -13130,8 +13134,7 @@ const Qu = {
13130
13134
  title: Ke.INTERNAL_SERVER_ERROR,
13131
13135
  subTitle: n || Ke.INTERNAL_SERVER_ERROR_MESSAGE,
13132
13136
  image: Ln,
13133
- imageType: i,
13134
- heightToDeduct: r,
13137
+ imageType: o,
13135
13138
  reload: s
13136
13139
  }
13137
13140
  );
@@ -13143,8 +13146,7 @@ const Qu = {
13143
13146
  title: Ke.BAD_GATEWAY,
13144
13147
  subTitle: n || Ke.BAD_GATEWAY_MESSAGE,
13145
13148
  image: Ln,
13146
- imageType: i,
13147
- heightToDeduct: r,
13149
+ imageType: o,
13148
13150
  reload: s
13149
13151
  }
13150
13152
  );
@@ -13156,13 +13158,12 @@ const Qu = {
13156
13158
  title: Ke.SERVICE_TEMPORARY_UNAVAILABLE,
13157
13159
  subTitle: n || Ke.SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE,
13158
13160
  image: Ln,
13159
- imageType: i,
13160
- heightToDeduct: r,
13161
+ imageType: o,
13161
13162
  reload: s
13162
13163
  }
13163
13164
  );
13164
13165
  default:
13165
- return /* @__PURE__ */ t.jsx(Zn, { heightToDeduct: r, reload: s, className: a });
13166
+ return /* @__PURE__ */ t.jsx(Zn, { reload: s, className: a });
13166
13167
  }
13167
13168
  })(), DT = {
13168
13169
  variables: {
@@ -13354,7 +13355,7 @@ const Qu = {
13354
13355
  compareToObfuscatedData: Object.keys(i).length ? i : void 0,
13355
13356
  compareWithObfuscatedData: Object.keys(c).length ? c : void 0
13356
13357
  };
13357
- }, gs = (e, s) => {
13358
+ }, xs = (e, s) => {
13358
13359
  const { sortBy: n, sortOrder: a } = s ?? { sortBy: "", sortOrder: null };
13359
13360
  try {
13360
13361
  return JSON.stringify(
@@ -13381,26 +13382,26 @@ const Qu = {
13381
13382
  displayName: "data",
13382
13383
  ...al(e) ? {
13383
13384
  value: null,
13384
- resolvedValue: gs(u, o)
13385
+ resolvedValue: xs(u, o)
13385
13386
  } : {
13386
- value: gs(u, o)
13387
+ value: xs(u, o)
13387
13388
  }
13388
13389
  }, d = {
13389
13390
  displayName: "data",
13390
13391
  ...al(s) ? {
13391
13392
  value: null,
13392
- resolvedValue: gs(m, o)
13393
+ resolvedValue: xs(m, o)
13393
13394
  } : {
13394
- value: gs(m, o)
13395
+ value: xs(m, o)
13395
13396
  }
13396
13397
  };
13397
13398
  } else
13398
13399
  l = {
13399
13400
  displayName: "data",
13400
- value: gs(i, o)
13401
+ value: xs(i, o)
13401
13402
  }, d = {
13402
13403
  displayName: "data",
13403
- value: gs(c, o)
13404
+ value: xs(c, o)
13404
13405
  };
13405
13406
  return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
13406
13407
  }, ka = (e, s) => {
@@ -13440,7 +13441,7 @@ const Qu = {
13440
13441
  }, il = (e, s, n) => {
13441
13442
  const a = kT(e), r = {
13442
13443
  displayName: "data",
13443
- value: a ? gs(a, n) : ""
13444
+ value: a ? xs(a, n) : ""
13444
13445
  };
13445
13446
  return qn(
13446
13447
  {
@@ -13461,7 +13462,7 @@ const Qu = {
13461
13462
  }, ll = (e, s) => {
13462
13463
  const n = {
13463
13464
  displayName: "data",
13464
- value: e?.data ? gs(e.data, s) : ""
13465
+ value: e?.data ? xs(e.data, s) : ""
13465
13466
  };
13466
13467
  return qn(
13467
13468
  { ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
@@ -13514,10 +13515,10 @@ const Qu = {
13514
13515
  a,
13515
13516
  r,
13516
13517
  i
13517
- ), E = n === Vt.ConfigMap ? ot.ConfigMap : ot.Secret;
13518
+ ), x = n === Vt.ConfigMap ? ot.ConfigMap : ot.Secret;
13518
13519
  return {
13519
- id: `${E}-${d?.name || u?.name}`,
13520
- pathType: E,
13520
+ id: `${x}-${d?.name || u?.name}`,
13521
+ pathType: x,
13521
13522
  title: `${n === Vt.ConfigMap ? "ConfigMap" : "Secret"} / ${d?.name || u?.name}`,
13522
13523
  name: d?.name || u?.name,
13523
13524
  primaryConfig: {
@@ -13585,14 +13586,14 @@ const Qu = {
13585
13586
  sortingConfig: c
13586
13587
  }) => {
13587
13588
  if (!a) {
13588
- const x = ml(
13589
+ const E = ml(
13589
13590
  e,
13590
13591
  r
13591
13592
  ), h = ml(
13592
13593
  s,
13593
13594
  r
13594
13595
  ), g = il(
13595
- x.deploymentTemplate,
13596
+ E.deploymentTemplate,
13596
13597
  o,
13597
13598
  c
13598
13599
  ), f = il(
@@ -13608,13 +13609,13 @@ const Qu = {
13608
13609
  list: f
13609
13610
  },
13610
13611
  secondaryConfig: {
13611
- heading: or(x.deploymentTemplate, !0),
13612
+ heading: or(E.deploymentTemplate, !0),
13612
13613
  list: g
13613
13614
  },
13614
13615
  diffState: ka(g, f)
13615
13616
  };
13616
13617
  let b, A, v;
13617
- (x.pipelineConfigData || h.pipelineConfigData) && (b = ll(x.pipelineConfigData, c), A = ll(
13618
+ (E.pipelineConfigData || h.pipelineConfigData) && (b = ll(E.pipelineConfigData, c), A = ll(
13618
13619
  h.pipelineConfigData,
13619
13620
  c
13620
13621
  ), v = {
@@ -13632,18 +13633,18 @@ const Qu = {
13632
13633
  diffState: ka(b, A)
13633
13634
  });
13634
13635
  const I = ul(
13635
- x.configMapData,
13636
+ E.configMapData,
13636
13637
  h.configMapData,
13637
13638
  Vt.ConfigMap,
13638
- x.isAppAdmin,
13639
+ E.isAppAdmin,
13639
13640
  h.isAppAdmin,
13640
13641
  r,
13641
13642
  c
13642
13643
  ), y = ul(
13643
- x.secretsData,
13644
+ E.secretsData,
13644
13645
  h.secretsData,
13645
13646
  Vt.Secret,
13646
- x.isAppAdmin,
13647
+ E.isAppAdmin,
13647
13648
  h.isAppAdmin,
13648
13649
  r,
13649
13650
  c
@@ -13721,7 +13722,7 @@ const Qu = {
13721
13722
  },
13722
13723
  diffState: ka(u, m),
13723
13724
  singleView: !0
13724
- }, _ = [p], E = [
13725
+ }, _ = [p], x = [
13725
13726
  {
13726
13727
  title: p.title,
13727
13728
  diffState: p.diffState,
@@ -13734,7 +13735,7 @@ const Qu = {
13734
13735
  return {
13735
13736
  configList: _,
13736
13737
  collapsibleNavList: [],
13737
- navList: E
13738
+ navList: x
13738
13739
  };
13739
13740
  }, _D = (e) => e.reduce(
13740
13741
  (s, n) => ({
@@ -13820,7 +13821,7 @@ const Qu = {
13820
13821
  }, [e]), P(() => {
13821
13822
  i && m((N) => ({ ...N, [i]: !0 }));
13822
13823
  }, [i]);
13823
- const E = (N) => N.map((b, A) => {
13824
+ const x = (N) => N.map((b, A) => {
13824
13825
  if (b.type === "string")
13825
13826
  return /* @__PURE__ */ t.jsxs(Ks, { children: [
13826
13827
  typeof b.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: b.text }) : b.text,
@@ -13837,7 +13838,7 @@ const Qu = {
13837
13838
  ) }),
13838
13839
  !r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
13839
13840
  ] }, b.id);
13840
- }), x = () => {
13841
+ }), E = () => {
13841
13842
  if (o) {
13842
13843
  const { handleSorting: N, sortBy: b, sortOrder: A } = o;
13843
13844
  return /* @__PURE__ */ t.jsx(
@@ -13935,12 +13936,12 @@ const Qu = {
13935
13936
  /* @__PURE__ */ t.jsxs("div", { className: "dc__border-bottom-n1 flexbox dc__align-items-center dc__position-sticky dc__top-0 bg__primary w-100 dc__zi-11", children: [
13936
13937
  /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center p-12 dc__gap-8 deployment-config-diff__main-top__header", children: [
13937
13938
  !!n && /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20", children: n }),
13938
- E(r.primaryConfig)
13939
+ x(r.primaryConfig)
13939
13940
  ] }),
13940
13941
  /* @__PURE__ */ t.jsxs("div", { className: "dc__border-left flexbox dc__align-items-center deployment-config-diff__main-top__header", children: [
13941
- /* @__PURE__ */ t.jsx("div", { className: "flex-grow-1 flexbox dc__align-items-center dc__gap-8 p-12", children: E(r.secondaryConfig) }),
13942
+ /* @__PURE__ */ t.jsx("div", { className: "flex-grow-1 flexbox dc__align-items-center dc__gap-8 p-12", children: x(r.secondaryConfig) }),
13942
13943
  (o || c) && /* @__PURE__ */ t.jsxs("div", { className: "dc__border-left flex dc__gap-8 pr-12 pl-8 py-8", children: [
13943
- x(),
13944
+ E(),
13944
13945
  h()
13945
13946
  ] })
13946
13947
  ] })
@@ -14065,19 +14066,19 @@ const Qu = {
14065
14066
  triggerHistory: r
14066
14067
  }) => {
14067
14068
  const o = e.findIndex(({ id: d }) => d === s), c = e.slice(o + 1).map(
14068
- ({ id: d, startedOn: u, stage: m, triggeredBy: p, triggeredByEmail: _, status: E, artifact: x }) => ({
14069
+ ({ id: d, startedOn: u, stage: m, triggeredBy: p, triggeredByEmail: _, status: x, artifact: E }) => ({
14069
14070
  value: d,
14070
14071
  label: Pe(u).format(yt.TWELVE_HOURS_FORMAT),
14071
14072
  description: qT({
14072
14073
  stage: m,
14073
14074
  triggeredByEmail: _,
14074
14075
  triggeredBy: p,
14075
- artifact: x,
14076
+ artifact: E,
14076
14077
  renderRunSource: n,
14077
14078
  resourceId: a,
14078
14079
  runSource: r.get(d).runSource
14079
14080
  }),
14080
- startIcon: /* @__PURE__ */ t.jsx(Ri, { status: E })
14081
+ startIcon: /* @__PURE__ */ t.jsx(Ri, { status: x })
14081
14082
  })
14082
14083
  );
14083
14084
  return { currentDeployment: Pe(e[o].startedOn).format(
@@ -14099,7 +14100,7 @@ const Qu = {
14099
14100
  isCompareDeploymentConfigNotAvailable: u,
14100
14101
  ...m
14101
14102
  }) => {
14102
- const { path: p, params: _ } = Zt(), { resourceType: E, resourceName: x, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: b, sortOrder: A, handleSorting: v } = r, [I, y] = R({
14103
+ const { path: p, params: _ } = Zt(), { resourceType: x, resourceName: E, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: b, sortOrder: A, handleSorting: v } = r, [I, y] = R({
14103
14104
  isLoading: !1,
14104
14105
  data: c,
14105
14106
  hasMore: c.size >= an
@@ -14190,7 +14191,7 @@ const Qu = {
14190
14191
  showDetailedDiffState: !0,
14191
14192
  navHeading: `Comparing ${e}`,
14192
14193
  headerText: H ? void 0 : "",
14193
- scrollIntoViewId: `${E}${x ? `-${x}` : ""}`,
14194
+ scrollIntoViewId: `${x}${E ? `-${E}` : ""}`,
14194
14195
  navHelpText: ee(),
14195
14196
  isNavHelpTextShowingError: u,
14196
14197
  goBackURL: Vs(p.split("/:resourceType")[0], { ..._ }),
@@ -14209,11 +14210,11 @@ const Qu = {
14209
14210
  resourceId: i,
14210
14211
  renderRunSource: c
14211
14212
  }) => {
14212
- const { path: l, params: d } = Zt(), { pathname: u, search: m } = Ls(), { isSuperAdmin: p } = ma(), _ = Q(() => nm(r), [r]), { currentWfrId: E, previousWfrId: x } = Q(
14213
+ const { path: l, params: d } = Zt(), { pathname: u, search: m } = Ls(), { isSuperAdmin: p } = ma(), _ = Q(() => nm(r), [r]), { currentWfrId: x, previousWfrId: E } = Q(
14213
14214
  () => XT({ pipelineDeployments: _, wfrId: a }),
14214
14215
  [_, a]
14215
- ), h = !!x, g = nu({
14216
- parseSearchParams: ZT(x)
14216
+ ), h = !!E, g = nu({
14217
+ parseSearchParams: ZT(E)
14217
14218
  }), { compareWfrId: f, sortBy: N, sortOrder: b } = g, [A, v] = R(!1), [I, y, , T] = Wt(async () => {
14218
14219
  const J = [
14219
14220
  {
@@ -14221,7 +14222,7 @@ const Qu = {
14221
14222
  envName: s,
14222
14223
  configArea: "DeploymentHistory",
14223
14224
  pipelineId: n,
14224
- wfrId: E
14225
+ wfrId: x
14225
14226
  },
14226
14227
  h ? {
14227
14228
  appName: e,
@@ -14237,7 +14238,7 @@ const Qu = {
14237
14238
  return q.status !== "fulfilled" || !q.value || q.value.forEach((ne, be) => {
14238
14239
  ee[be].status !== "fulfilled" || !ee[be].value || ee[be].value.result.isAppAdmin || (ee[be].value.result.secretsData = ne.secretsData);
14239
14240
  }), ee;
14240
- }, [E, f]), S = (J, q) => `${Vs(l, { ...d })}/${J}${q ? `/${q}` : ""}${m}`, j = Q(() => {
14241
+ }, [x, f]), S = (J, q) => `${Vs(l, { ...d })}/${J}${q ? `/${q}` : ""}${m}`, j = Q(() => {
14241
14242
  if (!I && y) {
14242
14243
  const J = h && y[1].status === "fulfilled" ? y[1].value.result : {
14243
14244
  configMapData: null,
@@ -14412,11 +14413,11 @@ const lt = ({
14412
14413
  }
14413
14414
  });
14414
14415
  }
14415
- const E = (f) => {
14416
+ const x = (f) => {
14416
14417
  f.stopPropagation(), r && f.preventDefault(), l(0);
14417
14418
  const { height: N, x: b, y: A } = f.currentTarget.getBoundingClientRect();
14418
14419
  i({ left: b, top: A + N });
14419
- }, x = (f, N) => {
14420
+ }, E = (f, N) => {
14420
14421
  n || N === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : f.stopPropagation();
14421
14422
  };
14422
14423
  function h(f) {
@@ -14432,9 +14433,9 @@ const lt = ({
14432
14433
  rm.Provider,
14433
14434
  {
14434
14435
  value: {
14435
- handleOpen: E,
14436
+ handleOpen: x,
14436
14437
  popupPosition: o,
14437
- handleClose: x,
14438
+ handleClose: E,
14438
14439
  opacity: c,
14439
14440
  setPopupPosition: i,
14440
14441
  callbackRef: h,
@@ -14521,9 +14522,9 @@ const qt = ({
14521
14522
  isKebab: d = !1,
14522
14523
  dataTestId: u = ""
14523
14524
  }) => {
14524
- const [m, p] = Ce.useState(n), [_, E] = Ce.useState(!1), [x, h] = Ce.useState(""), [g, f] = Ce.useState(!1);
14525
+ const [m, p] = Ce.useState(n), [_, x] = Ce.useState(!1), [E, h] = Ce.useState(""), [g, f] = Ce.useState(!1);
14525
14526
  useEffectAfterMount(() => {
14526
- m !== n && E(!1);
14527
+ m !== n && x(!1);
14527
14528
  }, [m]), useEffectAfterMount(() => {
14528
14529
  p(n);
14529
14530
  }, [n]);
@@ -14543,14 +14544,14 @@ const qt = ({
14543
14544
  select: p,
14544
14545
  popupOpen: _,
14545
14546
  valueComparator: a,
14546
- searchString: x,
14547
+ searchString: E,
14547
14548
  search: h,
14548
14549
  handleClick: N,
14549
14550
  disabled: o,
14550
14551
  loading: g,
14551
14552
  setLoading: f
14552
14553
  },
14553
- children: /* @__PURE__ */ t.jsxs(lt, { onToggleCallback: (y) => E(y), autoClose: _, children: [
14554
+ children: /* @__PURE__ */ t.jsxs(lt, { onToggleCallback: (y) => x(y), autoClose: _, children: [
14554
14555
  /* @__PURE__ */ t.jsx(
14555
14556
  lt.Button,
14556
14557
  {
@@ -14725,12 +14726,12 @@ const It = Ce.memo(
14725
14726
  tippyClass: l = "",
14726
14727
  dataTestId: d
14727
14728
  }) => {
14728
- const { name: u, selected: m, select: p, disabled: _, onChange: E } = rS();
14729
+ const { name: u, selected: m, select: p, disabled: _, onChange: x } = rS();
14729
14730
  return /* @__PURE__ */ t.jsx(
14730
14731
  mt,
14731
14732
  {
14732
14733
  condition: a,
14733
- wrap: (x) => oS(x, r, o, l),
14734
+ wrap: (E) => oS(E, r, o, l),
14734
14735
  children: /* @__PURE__ */ t.jsxs("label", { className: `${n} radio ${c || _ ? "disabled" : ""}`, children: [
14735
14736
  /* @__PURE__ */ t.jsx(
14736
14737
  "input",
@@ -14739,8 +14740,8 @@ const It = Ce.memo(
14739
14740
  value: e,
14740
14741
  name: u,
14741
14742
  checked: e === m,
14742
- onChange: (x) => {
14743
- x.persist(), i && p(x.target.value), E(x);
14743
+ onChange: (E) => {
14744
+ E.persist(), i && p(E.target.value), x(E);
14744
14745
  },
14745
14746
  disabled: c || _
14746
14747
  }
@@ -14868,8 +14869,8 @@ const uS = 100, Qe = Ce.memo(
14868
14869
  readOnly: m,
14869
14870
  diffView: p,
14870
14871
  theme: _,
14871
- loading: E,
14872
- customLoader: x,
14872
+ loading: x,
14873
+ customLoader: E,
14873
14874
  focus: h,
14874
14875
  validatorSchema: g,
14875
14876
  schemaURI: f = jd,
@@ -15034,7 +15035,7 @@ const uS = 100, Qe = Ce.memo(
15034
15035
  value: { dispatch: H, state: B, handleLanguageChange: ie, error: ee, defaultValue: a, height: k },
15035
15036
  children: [
15036
15037
  r,
15037
- E ? /* @__PURE__ */ t.jsx(CS, { customLoader: x }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
15038
+ x ? /* @__PURE__ */ t.jsx(CS, { customLoader: E }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
15038
15039
  d && /* @__PURE__ */ t.jsx("div", { className: "code-editor-shebang", children: d }),
15039
15040
  B.diffMode ? /* @__PURE__ */ t.jsx(
15040
15041
  Nf,
@@ -15108,7 +15109,7 @@ const uS = 100, Qe = Ce.memo(
15108
15109
  initialTab: n.mode,
15109
15110
  className: "flex left",
15110
15111
  onChange: (a) => {
15111
- Ss.event({
15112
+ is.event({
15112
15113
  category: "JSON-YAML Switch",
15113
15114
  action: `${a.target.value} view`
15114
15115
  }), s(a.target.value);
@@ -15127,7 +15128,7 @@ const uS = 100, Qe = Ce.memo(
15127
15128
  e.text,
15128
15129
  e.children
15129
15130
  ] }), gS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
15130
- /* @__PURE__ */ t.jsx(ls, { className: "code-editor__information-info-icon" }),
15131
+ /* @__PURE__ */ t.jsx(ds, { className: "code-editor__information-info-icon" }),
15131
15132
  e.text,
15132
15133
  e.children
15133
15134
  ] }), xS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
@@ -15489,9 +15490,9 @@ const TS = () => (e) => {
15489
15490
  L?.preventDefault(), L?.stopPropagation(), Lp(e), i(yn(a, e));
15490
15491
  }, _ = (L) => {
15491
15492
  L?.preventDefault(), L?.stopPropagation(), wp(e), i(yn(a, e));
15492
- }, E = (L) => {
15493
- m({ search: L.target.value });
15494
15493
  }, x = (L) => {
15494
+ m({ search: L.target.value });
15495
+ }, E = (L) => {
15495
15496
  L.key === "Enter" && (L.preventDefault(), L.shiftKey ? _() : p());
15496
15497
  }, h = (L) => {
15497
15498
  m({ replace: L.target.value });
@@ -15547,8 +15548,8 @@ const TS = () => (e) => {
15547
15548
  type: "text",
15548
15549
  value: a.search,
15549
15550
  placeholder: "Find",
15550
- onChange: E,
15551
- onKeyDown: x,
15551
+ onChange: x,
15552
+ onKeyDown: E,
15552
15553
  "main-field": "true"
15553
15554
  }
15554
15555
  ),
@@ -15811,12 +15812,12 @@ function Em(e, s, n = []) {
15811
15812
  }, [s, ...n]);
15812
15813
  }
15813
15814
  const Nm = kt(null), fa = () => {
15814
- const e = cs(Nm);
15815
+ const e = ls(Nm);
15815
15816
  if (!e)
15816
15817
  throw new Error("cannot be rendered outside the component");
15817
15818
  return e;
15818
15819
  }, XS = ({ view: e, diffMinimapExtensions: s, codeEditorTheme: n, theme: a }) => {
15819
- const { lhsValue: r, value: o } = fa(), [i, c] = R(0), [l, d] = R(50), [u, m] = R(!1), p = Y(null), _ = Y(null), E = Y(null), x = Y(0), h = Y(0), g = Cn(a), f = Q(() => e ? Math.min(e.dom.clientHeight / e.dom.scrollHeight, 1) : 1, [r, o]);
15820
+ const { lhsValue: r, value: o } = fa(), [i, c] = R(0), [l, d] = R(50), [u, m] = R(!1), p = Y(null), _ = Y(null), x = Y(null), E = Y(0), h = Y(0), g = Cn(a), f = Q(() => e ? Math.min(e.dom.clientHeight / e.dom.scrollHeight, 1) : 1, [r, o]);
15820
15821
  P(() => {
15821
15822
  setTimeout(() => {
15822
15823
  hl(_.current?.view, o, r);
@@ -15829,7 +15830,7 @@ const Nm = kt(null), fa = () => {
15829
15830
  [o, r, f]
15830
15831
  );
15831
15832
  const N = () => {
15832
- if (!e?.dom || !p.current || !E.current)
15833
+ if (!e?.dom || !p.current || !x.current)
15833
15834
  return;
15834
15835
  const { clientHeight: T, scrollHeight: S, scrollTop: j } = e.dom, C = p.current.clientHeight, O = T / S * C, w = Math.max(O, MS);
15835
15836
  d(w), c(
@@ -15842,11 +15843,11 @@ const Nm = kt(null), fa = () => {
15842
15843
  const b = () => {
15843
15844
  N();
15844
15845
  }, A = (T) => {
15845
- T.preventDefault(), m(!0), x.current = T.clientY, h.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
15846
+ T.preventDefault(), m(!0), E.current = T.clientY, h.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
15846
15847
  }, v = (T) => {
15847
15848
  if (!u || !e?.dom || !p.current)
15848
15849
  return;
15849
- const { scrollHeight: S, clientHeight: j } = e.dom, C = p.current.clientHeight, w = (T.clientY - x.current) / C;
15850
+ const { scrollHeight: S, clientHeight: j } = e.dom, C = p.current.clientHeight, w = (T.clientY - E.current) / C;
15850
15851
  e.dom.scrollTo({ top: h.current + w * (S - j) });
15851
15852
  }, I = () => {
15852
15853
  m(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
@@ -15914,7 +15915,7 @@ const Nm = kt(null), fa = () => {
15914
15915
  /* @__PURE__ */ t.jsx(
15915
15916
  "div",
15916
15917
  {
15917
- ref: E,
15918
+ ref: x,
15918
15919
  className: "code-editor__minimap-overlay dc__position-abs dc__left-0 w-100 dc__zi-1",
15919
15920
  style: {
15920
15921
  top: `${i}px`,
@@ -15961,7 +15962,7 @@ const Nm = kt(null), fa = () => {
15961
15962
  ]
15962
15963
  }
15963
15964
  ), ev = ({ className: e, text: s, children: n }) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error fs-12 fw-4 lh-16 py-8 px-16 bco-1 co-5 dc__border-bottom ${e || ""}`, children: [
15964
- /* @__PURE__ */ t.jsx(ls, { className: "code-editor__status-info-icon" }),
15965
+ /* @__PURE__ */ t.jsx(ds, { className: "code-editor__status-info-icon" }),
15965
15966
  s,
15966
15967
  n
15967
15968
  ] }), tv = ({ className: e, children: s, text: n }) => /* @__PURE__ */ t.jsxs(
@@ -16065,8 +16066,8 @@ const Nm = kt(null), fa = () => {
16065
16066
  modifiedViewExtensions: m,
16066
16067
  codeMirrorParentDivRef: p,
16067
16068
  shebang: _,
16068
- placeholder: E,
16069
- onFocus: x,
16069
+ placeholder: x,
16070
+ onFocus: E,
16070
16071
  onBlur: h,
16071
16072
  extensions: g,
16072
16073
  autoFocus: f,
@@ -16186,12 +16187,12 @@ const Nm = kt(null), fa = () => {
16186
16187
  className: J,
16187
16188
  basicSetup: !1,
16188
16189
  value: b,
16189
- placeholder: E,
16190
+ placeholder: x,
16190
16191
  readOnly: i,
16191
16192
  height: q,
16192
16193
  minHeight: "250px",
16193
16194
  onCreateEditor: H,
16194
- onFocus: x,
16195
+ onFocus: E,
16195
16196
  onBlur: h,
16196
16197
  onChange: u,
16197
16198
  extensions: g
@@ -16217,8 +16218,8 @@ const Nm = kt(null), fa = () => {
16217
16218
  onChange: m,
16218
16219
  onOriginalValueChange: p,
16219
16220
  onModifiedValueChange: _,
16220
- readOnly: E,
16221
- placeholder: x,
16221
+ readOnly: x,
16222
+ placeholder: E,
16222
16223
  diffView: h,
16223
16224
  loading: g,
16224
16225
  customLoader: f,
@@ -16237,8 +16238,8 @@ const Nm = kt(null), fa = () => {
16237
16238
  const te = A ? pr(n) : n;
16238
16239
  return te !== C.current.lhsCode ? ![Fe.JSON, Fe.YAML].includes(o) || i ? te : fl(te, o, l) : C.current.lhsCode;
16239
16240
  }, [n, i]), L = e ?? S, B = L === At.dark, { codeEditorTheme: H, themeExtension: J } = av(B), [q, ee] = R(), [ne, be] = R(!1), [F, $] = R(h), de = Q(
16240
- () => ({ setDiffMode: $, diffMode: F, hasCodeEditorContainer: ne, lhsValue: w, value: O, readOnly: E, theme: L }),
16241
- [F, ne, w, O, E, L]
16241
+ () => ({ setDiffMode: $, diffMode: F, hasCodeEditorContainer: ne, lhsValue: w, value: O, readOnly: x, theme: L }),
16242
+ [F, ne, w, O, x, L]
16242
16243
  );
16243
16244
  P(() => {
16244
16245
  j.current && be(
@@ -16251,7 +16252,7 @@ const Nm = kt(null), fa = () => {
16251
16252
  ee(js());
16252
16253
  },
16253
16254
  // Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
16254
- [E, l, T, S, o]
16255
+ [x, l, T, S, o]
16255
16256
  );
16256
16257
  const ue = (te) => {
16257
16258
  C.current.code = te, F ? _?.(te) : m?.(te);
@@ -16315,8 +16316,8 @@ const Nm = kt(null), fa = () => {
16315
16316
  customLoader: f,
16316
16317
  height: d,
16317
16318
  shebang: u,
16318
- readOnly: E,
16319
- placeholder: x,
16319
+ readOnly: x,
16320
+ placeholder: E,
16320
16321
  handleOnChange: M,
16321
16322
  handleLhsOnChange: G,
16322
16323
  isOriginalModifiable: r,
@@ -16399,7 +16400,7 @@ const gv = ({
16399
16400
  r
16400
16401
  ), _ = () => {
16401
16402
  l(!c);
16402
- }, E = c ? "Hide variables values" : "Show variables values", x = (h, g, f) => /* @__PURE__ */ t.jsxs("div", { className: `${h} px-16 py-8`, children: [
16403
+ }, x = c ? "Hide variables values" : "Show variables values", E = (h, g, f) => /* @__PURE__ */ t.jsxs("div", { className: `${h} px-16 py-8`, children: [
16403
16404
  /* @__PURE__ */ t.jsx("div", { className: "cn-6 lh-16", "data-testid": f, children: g.displayName }),
16404
16405
  /* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20 dc__word-break", children: g.value })
16405
16406
  ] });
@@ -16423,12 +16424,12 @@ const gv = ({
16423
16424
  return (
16424
16425
  // eslint-disable-next-line react/no-array-index-key
16425
16426
  /* @__PURE__ */ t.jsxs("div", { className: "dc__contents", children: [
16426
- f?.value ? x(
16427
+ f?.value ? E(
16427
16428
  b ? "code-editor-red-diff" : "",
16428
16429
  f,
16429
16430
  `configuration-deployment-template-heading-${g}`
16430
16431
  ) : /* @__PURE__ */ t.jsx("div", {}),
16431
- N?.value ? x(
16432
+ N?.value ? E(
16432
16433
  b ? "code-editor-green-diff" : "",
16433
16434
  N,
16434
16435
  `configuration-deployment-template-heading-${g}`
@@ -16447,7 +16448,7 @@ const gv = ({
16447
16448
  "data-testid": "configuration-link-comparison-body-heading",
16448
16449
  children: [
16449
16450
  /* @__PURE__ */ t.jsx("span", { children: s?.codeEditorValue?.displayName }),
16450
- d && /* @__PURE__ */ t.jsx(_e, { content: E, placement: "bottom-start", animation: "shift-away", arrow: !1, children: /* @__PURE__ */ t.jsx("li", { className: "flex left dc_width-max-content cursor", children: /* @__PURE__ */ t.jsx("div", { className: "w-40 h-20", children: /* @__PURE__ */ t.jsx(
16451
+ d && /* @__PURE__ */ t.jsx(_e, { content: x, placement: "bottom-start", animation: "shift-away", arrow: !1, children: /* @__PURE__ */ t.jsx("li", { className: "flex left dc_width-max-content cursor", children: /* @__PURE__ */ t.jsx("div", { className: "w-40 h-20", children: /* @__PURE__ */ t.jsx(
16451
16452
  Wm,
16452
16453
  {
16453
16454
  selected: c,
@@ -16548,7 +16549,7 @@ const gv = ({
16548
16549
  ] }) : null
16549
16550
  ] });
16550
16551
  }
16551
- const E = () => c ? /* @__PURE__ */ t.jsx(
16552
+ const x = () => c ? /* @__PURE__ */ t.jsx(
16552
16553
  _e,
16553
16554
  {
16554
16555
  className: "default-tt w-200 dc__align-left fw-4 fs-12 dc__no-text-transform",
@@ -16568,7 +16569,7 @@ const gv = ({
16568
16569
  }
16569
16570
  )
16570
16571
  }
16571
- ) : /* @__PURE__ */ t.jsx(Xi, { "data-testid": "valid-git-commit" }), x = () => l.isselected ? /* @__PURE__ */ t.jsx(Ji, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : E(), h = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (I) => {
16572
+ ) : /* @__PURE__ */ t.jsx(Xi, { "data-testid": "valid-git-commit" }), E = () => l.isselected ? /* @__PURE__ */ t.jsx(Ji, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : x(), h = () => u.data.title ? /* @__PURE__ */ t.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, g = (I) => {
16572
16573
  const y = I?.split("/").pop();
16573
16574
  return /* @__PURE__ */ t.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
16574
16575
  /* @__PURE__ */ t.jsxs(
@@ -16654,7 +16655,7 @@ const gv = ({
16654
16655
  }
16655
16656
  )
16656
16657
  ] }) : null,
16657
- a ? x() : null
16658
+ a ? E() : null
16658
16659
  ] }),
16659
16660
  l.message ? /* @__PURE__ */ t.jsx(
16660
16661
  "div",
@@ -16721,7 +16722,7 @@ const gv = ({
16721
16722
  type: "button",
16722
16723
  onClick: e,
16723
16724
  "aria-label": "scroll-to-top",
16724
- children: /* @__PURE__ */ t.jsx(Ts, { className: "rotate", style: { "--rotateBy": "180deg" } })
16725
+ children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate", style: { "--rotateBy": "180deg" } })
16725
16726
  }
16726
16727
  ) }),
16727
16728
  /* @__PURE__ */ t.jsx(ce, { alwaysShowTippyOnHover: !0, content: "Scroll to Bottom", placement: "left", children: /* @__PURE__ */ t.jsx(
@@ -16732,7 +16733,7 @@ const gv = ({
16732
16733
  type: "button",
16733
16734
  onClick: s,
16734
16735
  "aria-label": "scroll-to-button",
16735
- children: /* @__PURE__ */ t.jsx(Ts, { className: "rotate" })
16736
+ children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate" })
16736
16737
  }
16737
16738
  ) })
16738
16739
  ] }) }), bv = ({
@@ -16750,8 +16751,8 @@ const gv = ({
16750
16751
  hideImageTaggingHardDelete: m,
16751
16752
  appliedFilters: p,
16752
16753
  appliedFiltersTimestamp: _,
16753
- promotionApprovalMetadata: E,
16754
- selectedEnvironmentName: x,
16754
+ promotionApprovalMetadata: x,
16755
+ selectedEnvironmentName: E,
16755
16756
  renderCIListHeader: h,
16756
16757
  targetPlatforms: g
16757
16758
  }) => {
@@ -16806,8 +16807,8 @@ const gv = ({
16806
16807
  appliedFilters: p,
16807
16808
  appliedFiltersTimestamp: _,
16808
16809
  isSuperAdmin: f,
16809
- promotionApprovalMetadata: E,
16810
- selectedEnvironmentName: x,
16810
+ promotionApprovalMetadata: x,
16811
+ selectedEnvironmentName: E,
16811
16812
  renderCIListHeader: h,
16812
16813
  targetPlatforms: g,
16813
16814
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex column left hover-trigger", children: [
@@ -16889,7 +16890,7 @@ const Tv = (e) => {
16889
16890
  }, bm = kt(null), hD = ({ children: e }) => {
16890
16891
  const s = Y(null), [n, a] = R(""), r = Q(() => ({ modalKey: n, setModalKey: a, settersRef: s }), [n]);
16891
16892
  return /* @__PURE__ */ t.jsx(bm.Provider, { value: r, children: e });
16892
- }, Tm = () => cs(bm), Iv = {
16893
+ }, Tm = () => ls(bm), Iv = {
16893
16894
  [D.medium]: D.xxs,
16894
16895
  [D.large]: D.xs
16895
16896
  }, wr = ({
@@ -16907,8 +16908,8 @@ const Tv = (e) => {
16907
16908
  ariaLabel: m,
16908
16909
  borderConfig: p,
16909
16910
  borderRadiusConfig: _,
16910
- type: E = "text",
16911
- autoFocus: x = !1,
16911
+ type: x = "text",
16912
+ autoFocus: E = !1,
16912
16913
  endIconButtonConfig: h,
16913
16914
  labelTippyCustomizedConfig: g,
16914
16915
  labelTooltipConfig: f,
@@ -16917,9 +16918,9 @@ const Tv = (e) => {
16917
16918
  const b = Y(null);
16918
16919
  P(() => {
16919
16920
  setTimeout(() => {
16920
- b.current && x && b.current.focus();
16921
+ b.current && E && b.current.focus();
16921
16922
  }, 100);
16922
- }, [x]);
16923
+ }, [E]);
16923
16924
  const A = (I) => {
16924
16925
  if (d) {
16925
16926
  const y = I.target.value?.trim();
@@ -16965,9 +16966,9 @@ const Tv = (e) => {
16965
16966
  "data-testid": e,
16966
16967
  required: c,
16967
16968
  onBlur: A,
16968
- type: E,
16969
+ type: x,
16969
16970
  ref: b,
16970
- className: `${hs[u]} ${Fd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${h ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
16971
+ className: `${gs[u]} ${Fd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${h ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
16971
16972
  }
16972
16973
  ),
16973
16974
  h && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink dc__position-abs custom-input__icon-button--${u}`, children: /* @__PURE__ */ t.jsx(
@@ -17019,7 +17020,7 @@ const Tv = (e) => {
17019
17020
  shouldCloseOnEscape: l = !0,
17020
17021
  isLandscapeView: d = !1
17021
17022
  }) => {
17022
- const { registerShortcut: u, unregisterShortcut: m } = ra(), [p, _] = R(""), E = o?.identifier, x = o?.confirmationKeyword, { primaryButtonConfig: h, secondaryButtonConfig: g } = r, f = n ?? Tv(a), N = a === Kt.custom && !n, b = "disabled" in h && h.disabled || x && p.trim() !== x, A = () => {
17023
+ const { registerShortcut: u, unregisterShortcut: m } = ra(), [p, _] = R(""), x = o?.identifier, E = o?.confirmationKeyword, { primaryButtonConfig: h, secondaryButtonConfig: g } = r, f = n ?? Tv(a), N = a === Kt.custom && !n, b = "disabled" in h && h.disabled || E && p.trim() !== E, A = () => {
17023
17024
  h && !b && h.onClick();
17024
17025
  }, v = ze(() => {
17025
17026
  !h?.isLoading && !g?.disabled && c();
@@ -17051,10 +17052,10 @@ const Tv = (e) => {
17051
17052
  o && /* @__PURE__ */ t.jsx(
17052
17053
  wr,
17053
17054
  {
17054
- name: E,
17055
+ name: x,
17055
17056
  value: p,
17056
17057
  onChange: I,
17057
- label: Sv(x),
17058
+ label: Sv(E),
17058
17059
  fullWidth: !0,
17059
17060
  placeholder: "Type to confirm",
17060
17061
  required: !0,
@@ -17176,7 +17177,7 @@ const Tv = (e) => {
17176
17177
  successToastMessage: p,
17177
17178
  children: _
17178
17179
  }) => {
17179
- const [E, x] = R(!1), [h, g] = R(!1), [f, N] = R(u), [b, A] = R(o), v = async (C) => {
17180
+ const [x, E] = R(!1), [h, g] = R(!1), [f, N] = R(u), [b, A] = R(o), v = async (C) => {
17180
17181
  C && Ne(C), A(!0);
17181
17182
  try {
17182
17183
  await i(), Ue.showToast({
@@ -17184,10 +17185,10 @@ const Tv = (e) => {
17184
17185
  description: p || "Successfully deleted"
17185
17186
  }), A(!1), l();
17186
17187
  } catch (O) {
17187
- O instanceof Pt && O.code === m ? (x(!0), Array.isArray(O.errors) && O.errors.length > 0 && !u && N(O.errors[0].userMessage)) : typeof c == "function" ? c(O) : Be(O), A(!1);
17188
+ O instanceof Pt && O.code === m ? (E(!0), Array.isArray(O.errors) && O.errors.length > 0 && !u && N(O.errors[0].userMessage)) : typeof c == "function" ? c(O) : Be(O), A(!1);
17188
17189
  }
17189
17190
  }, I = () => {
17190
- x(!1), l();
17191
+ E(!1), l();
17191
17192
  }, y = () => g(!1), T = () => /* @__PURE__ */ t.jsx(
17192
17193
  Rv,
17193
17194
  {
@@ -17229,8 +17230,8 @@ const Tv = (e) => {
17229
17230
  }
17230
17231
  );
17231
17232
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
17232
- !E && !h && j(),
17233
- E && T(),
17233
+ !x && !h && j(),
17234
+ x && T(),
17234
17235
  h && S()
17235
17236
  ] });
17236
17237
  }, Nl = ht(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
@@ -17282,9 +17283,9 @@ const Tv = (e) => {
17282
17283
  r(!1), i(!1);
17283
17284
  }
17284
17285
  }
17285
- const E = () => {
17286
+ const x = () => {
17286
17287
  i(!o);
17287
- }, x = () => {
17288
+ }, E = () => {
17288
17289
  l({
17289
17290
  status: !1,
17290
17291
  message: ""
@@ -17299,7 +17300,7 @@ const Tv = (e) => {
17299
17300
  re,
17300
17301
  {
17301
17302
  dataTestId: "abort-execution-button",
17302
- onClick: E,
17303
+ onClick: x,
17303
17304
  startIcon: /* @__PURE__ */ t.jsx(_d, {}),
17304
17305
  text: "Abort",
17305
17306
  variant: fe.text,
@@ -17318,7 +17319,7 @@ const Tv = (e) => {
17318
17319
  buttonConfig: {
17319
17320
  secondaryButtonConfig: {
17320
17321
  disabled: a,
17321
- onClick: E,
17322
+ onClick: x,
17322
17323
  text: "Cancel"
17323
17324
  },
17324
17325
  primaryButtonConfig: {
@@ -17327,7 +17328,7 @@ const Tv = (e) => {
17327
17328
  text: "Yes, Abort"
17328
17329
  }
17329
17330
  },
17330
- handleClose: E
17331
+ handleClose: x
17331
17332
  }
17332
17333
  ),
17333
17334
  c.status && /* @__PURE__ */ t.jsxs(
@@ -17339,7 +17340,7 @@ const Tv = (e) => {
17339
17340
  buttonConfig: {
17340
17341
  secondaryButtonConfig: {
17341
17342
  disabled: a,
17342
- onClick: x,
17343
+ onClick: E,
17343
17344
  text: "Cancel"
17344
17345
  },
17345
17346
  primaryButtonConfig: {
@@ -17348,7 +17349,7 @@ const Tv = (e) => {
17348
17349
  text: "Force Abort"
17349
17350
  }
17350
17351
  },
17351
- handleClose: x,
17352
+ handleClose: E,
17352
17353
  children: [
17353
17354
  /* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 pt-12 cn-7 lh-1-54", children: /* @__PURE__ */ t.jsx("span", { children: "Please try to force abort" }) }),
17354
17355
  /* @__PURE__ */ t.jsx("div", { className: "pt-4 fw-4 cn-7 lh-1-54", children: /* @__PURE__ */ t.jsx("span", { children: "Some resource might get orphaned which will be cleaned up with Job-lifecycle" }) })
@@ -17462,8 +17463,8 @@ const Tv = (e) => {
17462
17463
  artifact: m,
17463
17464
  environmentName: p,
17464
17465
  isJobView: _,
17465
- workerPodName: E,
17466
- triggerMetadata: x,
17466
+ workerPodName: x,
17467
+ triggerMetadata: E,
17467
17468
  renderDeploymentHistoryTriggerMetaText: h,
17468
17469
  renderTargetConfigInfo: g,
17469
17470
  workflowExecutionStages: f,
@@ -17495,13 +17496,13 @@ const Tv = (e) => {
17495
17496
  }
17496
17497
  ) })
17497
17498
  ] }),
17498
- !!x && !!h && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
17499
+ !!E && !!h && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
17499
17500
  /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
17500
17501
  Bs(),
17501
- h(x, !0),
17502
+ h(E, !0),
17502
17503
  Bs()
17503
17504
  ] }) }),
17504
- h(x)
17505
+ h(E)
17505
17506
  ] }),
17506
17507
  _ && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
17507
17508
  /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
@@ -17557,7 +17558,7 @@ const Tv = (e) => {
17557
17558
  stage: u,
17558
17559
  finishedOn: b?.workerDetails.endTime || n,
17559
17560
  clusterId: b?.workerDetails.clusterId || jr,
17560
- workerPodName: E,
17561
+ workerPodName: x,
17561
17562
  namespace: N
17562
17563
  }
17563
17564
  ) })
@@ -17578,8 +17579,8 @@ const Tv = (e) => {
17578
17579
  hideImageTaggingHardDelete: m,
17579
17580
  selectedEnvironmentName: p,
17580
17581
  resourceId: _,
17581
- renderRunSource: E,
17582
- processVirtualEnvironmentDeploymentData: x,
17582
+ renderRunSource: x,
17583
+ processVirtualEnvironmentDeploymentData: E,
17583
17584
  renderDeploymentApprovalInfo: h,
17584
17585
  renderCIListHeader: g,
17585
17586
  renderVirtualHistoryArtifacts: f,
@@ -17610,7 +17611,7 @@ const Tv = (e) => {
17610
17611
  (N || b) && /* @__PURE__ */ t.jsx(
17611
17612
  Cv,
17612
17613
  {
17613
- style: { position: "fixed", bottom: "52px", right: "12px", zIndex: "4" },
17614
+ style: { position: "absolute", bottom: "52px", right: "12px", zIndex: "4" },
17614
17615
  scrollToTop: N,
17615
17616
  scrollToBottom: b
17616
17617
  }
@@ -17624,7 +17625,7 @@ const Tv = (e) => {
17624
17625
  isGitops: a === rn.GITOPS || a === rn.MANIFEST_DOWNLOAD || a === rn.MANIFEST_PUSH,
17625
17626
  isHelmApps: !1,
17626
17627
  isVirtualEnvironment: e.IsVirtualEnvironment,
17627
- processVirtualEnvironmentDeploymentData: x,
17628
+ processVirtualEnvironmentDeploymentData: E,
17628
17629
  renderDeploymentApprovalInfo: h
17629
17630
  }
17630
17631
  ) }),
@@ -17661,7 +17662,7 @@ const Tv = (e) => {
17661
17662
  triggerHistory: I,
17662
17663
  setFullScreenView: n,
17663
17664
  resourceId: _,
17664
- renderRunSource: E
17665
+ renderRunSource: x
17665
17666
  }
17666
17667
  ) }),
17667
17668
  (e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx($s, { path: `${T}/artifacts`, children: e.IsVirtualEnvironment && f ? f({
@@ -17711,8 +17712,8 @@ const Tv = (e) => {
17711
17712
  selectedEnvironmentName: m,
17712
17713
  deploymentHistoryResult: p,
17713
17714
  renderRunSource: _,
17714
- renderCIListHeader: E,
17715
- renderDeploymentApprovalInfo: x,
17715
+ renderCIListHeader: x,
17716
+ renderDeploymentApprovalInfo: E,
17716
17717
  processVirtualEnvironmentDeploymentData: h,
17717
17718
  renderVirtualHistoryArtifacts: g,
17718
17719
  renderDeploymentHistoryTriggerMetaText: f,
@@ -17729,7 +17730,7 @@ const Tv = (e) => {
17729
17730
  !!T && !!j
17730
17731
  ), H = Ar(C?.targetPlatforms), J = ($, de, ue) => {
17731
17732
  if (ue) {
17732
- p?.result?.cdWorkflows?.length && n(Bm(p.result.cdWorkflows, "id")), u(Ns.SUSPEND);
17733
+ p?.result?.cdWorkflows?.length && n(Bm(p.result.cdWorkflows, "id")), u(Cs.SUSPEND);
17733
17734
  return;
17734
17735
  }
17735
17736
  if ($ === de?.id) {
@@ -17741,10 +17742,10 @@ const Tv = (e) => {
17741
17742
  ...oe ? { targetConfig: oe } : {},
17742
17743
  ...ie ? { userApprovalMetadata: ie } : {}
17743
17744
  };
17744
- n((Ee) => (Ee.set($, { ...de, ...Ae }), new Map(Ee))), d === Ns.FETCHING && u(Ns.SUCCESS);
17745
+ n((Ee) => (Ee.set($, { ...de, ...Ae }), new Map(Ee))), d === Cs.FETCHING && u(Cs.SUCCESS);
17745
17746
  }
17746
17747
  };
17747
- let q = !!d && d !== Ns.SUSPEND;
17748
+ let q = !!d && d !== Cs.SUSPEND;
17748
17749
  (w?.result?.artifactId === 0 || C?.artifactId === 0) && (q = !1);
17749
17750
  const [ee, ne, be] = Wt(
17750
17751
  () => oT({
@@ -17877,8 +17878,8 @@ const Tv = (e) => {
17877
17878
  resourceId: N,
17878
17879
  renderRunSource: _,
17879
17880
  processVirtualEnvironmentDeploymentData: h,
17880
- renderDeploymentApprovalInfo: x,
17881
- renderCIListHeader: E,
17881
+ renderDeploymentApprovalInfo: E,
17882
+ renderCIListHeader: x,
17882
17883
  renderVirtualHistoryArtifacts: g,
17883
17884
  scrollToTop: b,
17884
17885
  scrollToBottom: A,
@@ -18177,7 +18178,7 @@ const Tv = (e) => {
18177
18178
  openDirection: p = "down",
18178
18179
  error: _ = ""
18179
18180
  }) => {
18180
- const E = Yv(e), x = Ma.find((I) => I.value === E) ?? Ma[0], [h, g] = R(!1), f = ({ focused: I }) => {
18181
+ const x = Yv(e), E = Ma.find((I) => I.value === x) ?? Ma[0], [h, g] = R(!1), f = ({ focused: I }) => {
18181
18182
  g(I);
18182
18183
  }, N = (I) => {
18183
18184
  s(Wv(e, I?.toDate()));
@@ -18223,7 +18224,7 @@ const Tv = (e) => {
18223
18224
  hideSelectedOptions: !0,
18224
18225
  isDisabled: a,
18225
18226
  ...n,
18226
- value: x,
18227
+ value: E,
18227
18228
  onChange: b,
18228
18229
  "data-testid": u,
18229
18230
  menuSize: D.xs,
@@ -18663,8 +18664,8 @@ const RD = {
18663
18664
  isSelected: r,
18664
18665
  showCardBorder: o
18665
18666
  }) => {
18666
- const i = s.parentPluginStore[a].latestVersionId, { icon: c, name: l, description: d, tags: u, pluginVersion: m, updatedBy: p, docLink: _ } = s.pluginVersionStore[i], E = (x) => {
18667
- x.preventDefault(), !("key" in x && x.key !== "Enter" && x.key !== " ") && n(a);
18667
+ const i = s.parentPluginStore[a].latestVersionId, { icon: c, name: l, description: d, tags: u, pluginVersion: m, updatedBy: p, docLink: _ } = s.pluginVersionStore[i], x = (E) => {
18668
+ E.preventDefault(), !("key" in E && E.key !== "Enter" && E.key !== " ") && n(a);
18668
18669
  };
18669
18670
  return /* @__PURE__ */ t.jsxs(
18670
18671
  "div",
@@ -18672,14 +18673,14 @@ const RD = {
18672
18673
  className: `p-12 flexbox dc__gap-16 dc__tab-focus plugin-card dc__visible-hover dc__visible-hover--parent br-4 ${o ? "dc__border dc__hover-n50" : "dc__border-transparent dc__hover-border-n1"}`,
18673
18674
  role: "button",
18674
18675
  tabIndex: 0,
18675
- onClick: E,
18676
- onKeyDown: E,
18676
+ onClick: x,
18677
+ onKeyDown: x,
18677
18678
  children: [
18678
18679
  e && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink icon-dim-40 p-8 ${r ? "" : "dc__visible-hover--child"}`, children: /* @__PURE__ */ t.jsx(
18679
18680
  Ds,
18680
18681
  {
18681
18682
  isChecked: r,
18682
- onChange: E,
18683
+ onChange: x,
18683
18684
  rootClassName: "icon-dim-40 p-8 w-100 mb-0 dc__no-shrink",
18684
18685
  value: ut.CHECKED
18685
18686
  }
@@ -18764,8 +18765,8 @@ const RD = {
18764
18765
  showCardBorder: u,
18765
18766
  getPluginStoreRef: m
18766
18767
  }) => {
18767
- const { appId: p } = Tt(), [_, E] = R(!1), [x, h] = R(!1), g = async () => {
18768
- E(!0), h(!1);
18768
+ const { appId: p } = Tt(), [_, x] = R(!1), [E, h] = R(!1), g = async () => {
18769
+ x(!0), h(!1);
18769
18770
  try {
18770
18771
  const f = await Ud(
18771
18772
  () => Im({
@@ -18781,7 +18782,7 @@ const RD = {
18781
18782
  } catch {
18782
18783
  h(!0);
18783
18784
  } finally {
18784
- E(!1);
18785
+ x(!1);
18785
18786
  }
18786
18787
  };
18787
18788
  return s.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -18798,7 +18799,7 @@ const RD = {
18798
18799
  f.parentPluginId
18799
18800
  )),
18800
18801
  _ && /* @__PURE__ */ t.jsx(ym, {}),
18801
- n > s.length && !_ && /* @__PURE__ */ t.jsx(qu, { callback: g, hasError: x })
18802
+ n > s.length && !_ && /* @__PURE__ */ t.jsx(qu, { callback: g, hasError: E })
18802
18803
  ] }) : o || r.length ? /* @__PURE__ */ t.jsx(BI, { handleClearFilters: d, imageType: Xs.Large }) : /* @__PURE__ */ t.jsx(Ze, { title: "No plugins found", subTitle: "We are unable to locate any plugin in our system" });
18803
18804
  }, LD = ({
18804
18805
  availableTags: e,
@@ -18817,8 +18818,8 @@ const RD = {
18817
18818
  handleParentTotalCount: m,
18818
18819
  parentFilters: p,
18819
18820
  handleUpdateParentFilters: _,
18820
- rootClassName: E = "",
18821
- showCardBorder: x = !1
18821
+ rootClassName: x = "",
18822
+ showCardBorder: E = !1
18822
18823
  }) => {
18823
18824
  const { appId: h } = Tt(), [g, f] = R(l || []), [N, b] = R(u || 0), [A, v] = R(
18824
18825
  p || structuredClone(Jv)
@@ -18895,7 +18896,7 @@ const RD = {
18895
18896
  }, k = (M) => {
18896
18897
  r(M);
18897
18898
  };
18898
- return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col w-100 ${E}`, children: [
18899
+ return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col w-100 ${x}`, children: [
18899
18900
  /* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__gap-12 py-12 dc__position-sticky dc__top-0 bg__primary dc__zi-1 flex-wrap", children: [
18900
18901
  /* @__PURE__ */ t.jsx(
18901
18902
  Km,
@@ -18956,7 +18957,7 @@ const RD = {
18956
18957
  selectedPluginsMap: i,
18957
18958
  isSelectable: o,
18958
18959
  handleClearFilters: $,
18959
- showCardBorder: x,
18960
+ showCardBorder: E,
18960
18961
  getPluginStoreRef: I
18961
18962
  }
18962
18963
  )
@@ -18989,12 +18990,12 @@ const RD = {
18989
18990
  errorMessages: m = [],
18990
18991
  onError: p,
18991
18992
  validateDuplicateKeys: _ = !1,
18992
- validateEmptyKeys: E = !1
18993
+ validateEmptyKeys: x = !1
18993
18994
  }) => {
18994
- const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, b] = R(h), [A, v] = R(!1), I = l || c, y = !l && !c || !!N.length, T = !N[0]?.data[g].value && !N[0]?.data[f].value, S = N.length === 1 && T, { sortBy: j, sortOrder: C, handleSorting: O } = ou({
18995
+ const { headers: E, rows: h } = e, g = E[0].key, f = E[1].key, [N, b] = R(h), [A, v] = R(!1), I = l || c, y = !l && !c || !!N.length, T = !N[0]?.data[g].value && !N[0]?.data[f].value, S = N.length === 1 && T, { sortBy: j, sortOrder: C, handleSorting: O } = ou({
18995
18996
  initialSortKey: n ? g : null
18996
18997
  }), w = Y(), L = Y();
18997
- w.current || (w.current = N.reduce((k, M) => ({ ...k, [M.id]: fs() }), {})), L.current || (L.current = N.reduce((k, M) => ({ ...k, [M.id]: fs() }), {}));
18998
+ w.current || (w.current = N.reduce((k, M) => ({ ...k, [M.id]: hs() }), {})), L.current || (L.current = N.reduce((k, M) => ({ ...k, [M.id]: hs() }), {}));
18998
18999
  const B = Q(
18999
19000
  () => N.reduce(
19000
19001
  (k, M) => {
@@ -19007,7 +19008,7 @@ const RD = {
19007
19008
  ), H = (k, M, G, oe = !0) => {
19008
19009
  if (oe) {
19009
19010
  const ie = k.trim();
19010
- if (_ && M === g && B[ie] > 1 || E && M === g && !ie && N.some(
19011
+ if (_ && M === g && B[ie] > 1 || x && M === g && !ie && N.some(
19011
19012
  ({ id: Ee, data: K }) => Ee === G && K[f].value.trim()
19012
19013
  ))
19013
19014
  return !1;
@@ -19028,7 +19029,7 @@ const RD = {
19028
19029
  if (G)
19029
19030
  return !1;
19030
19031
  }
19031
- return E && k.some(
19032
+ return x && k.some(
19032
19033
  (oe) => !oe.data[g].value.trim() && oe.data[f].value.trim()
19033
19034
  ) ? !1 : k.every(
19034
19035
  ({ data: G, id: oe }) => H(G[g].value, g, oe, !1) && H(G[f].value, f, oe, !1)
@@ -19050,10 +19051,10 @@ const RD = {
19050
19051
  const k = q(), M = [k, ...N], { id: G } = k;
19051
19052
  p?.(!J(M)), v(!0), b(M), w.current = {
19052
19053
  ...w.current || {},
19053
- [G]: fs()
19054
+ [G]: hs()
19054
19055
  }, L.current = {
19055
19056
  ...L.current || {},
19056
- [G]: fs()
19057
+ [G]: hs()
19057
19058
  };
19058
19059
  };
19059
19060
  P(() => {
@@ -19078,9 +19079,9 @@ const RD = {
19078
19079
  if (M.length === 0 && !c) {
19079
19080
  const G = q(), { id: oe } = G;
19080
19081
  v(!0), p?.(!J([G])), b([G]), w.current = {
19081
- [oe]: fs()
19082
+ [oe]: hs()
19082
19083
  }, L.current = {
19083
- [oe]: fs()
19084
+ [oe]: hs()
19084
19085
  }, o?.(k.id);
19085
19086
  return;
19086
19087
  }
@@ -19155,11 +19156,11 @@ const RD = {
19155
19156
  /* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: k })
19156
19157
  ] }, k), xe = (k, M, G) => d && !H(k, M, G) ? /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4", children: [
19157
19158
  _ && ue(cA),
19158
- E && ue(lA),
19159
+ x && ue(lA),
19159
19160
  m.map((ie) => ue(ie))
19160
19161
  ] }) : null;
19161
19162
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
19162
- /* @__PURE__ */ t.jsx("div", { className: `bcn-2 p-1 ${y ? "dc__top-radius-4" : "br-4"}`, children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table two-columns w-100 bcn-1 br-4", children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table__row", children: x.map(
19163
+ /* @__PURE__ */ t.jsx("div", { className: `bcn-2 p-1 ${y ? "dc__top-radius-4" : "br-4"}`, children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table two-columns w-100 bcn-1 br-4", children: /* @__PURE__ */ t.jsx("div", { className: "key-value-table__row", children: E.map(
19163
19164
  ({ key: k, label: M, className: G }) => k === g ? de(k, M, G) : /* @__PURE__ */ t.jsxs(
19164
19165
  "div",
19165
19166
  {
@@ -19177,7 +19178,7 @@ const RD = {
19177
19178
  {
19178
19179
  className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${l ? "two-columns" : "three-columns"}`,
19179
19180
  children: N.map((k) => /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__row", children: [
19180
- x.map(({ key: M }) => /* @__PURE__ */ t.jsx(Ks, { children: /* @__PURE__ */ t.jsx(mt, { wrap: dA, condition: l, children: /* @__PURE__ */ t.jsx(
19181
+ E.map(({ key: M }) => /* @__PURE__ */ t.jsx(Ks, { children: /* @__PURE__ */ t.jsx(mt, { wrap: dA, condition: l, children: /* @__PURE__ */ t.jsx(
19181
19182
  "div",
19182
19183
  {
19183
19184
  className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || k.data[M].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !H(k.data[M].value, M, k.id) ? "key-value-table__cell--error no-hover" : ""}`,
@@ -19212,7 +19213,7 @@ const RD = {
19212
19213
  onClick: be(k),
19213
19214
  disabled: S,
19214
19215
  children: /* @__PURE__ */ t.jsx(
19215
- ds,
19216
+ us,
19216
19217
  {
19217
19218
  "aria-label": "delete-row",
19218
19219
  className: "icon-dim-16 fcn-4 dc__align-self-start"
@@ -19252,7 +19253,7 @@ const RD = {
19252
19253
  showError: s,
19253
19254
  showWarning: n,
19254
19255
  className: a
19255
- }) => s ? /* @__PURE__ */ t.jsx(ls, { className: a }) : n ? /* @__PURE__ */ t.jsx(Qn, { className: `${a} warning-icon-y7` }) : e ? /* @__PURE__ */ t.jsx(e, { className: `${a} tab-group__tab__icon` }) : null, _A = (e, s) => e !== null && /* @__PURE__ */ t.jsx("div", { className: `tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${s}`, children: e }), fA = (e) => e && /* @__PURE__ */ t.jsx("span", { className: "tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" }), hA = (e) => e && /* @__PURE__ */ t.jsx("ul", { className: "tab-group__tab__description m-0 p-0 fs-12 lh-16 fw-4 cn-7 flexbox dc__align-items-center dc__gap-4", children: Array.isArray(e) ? e.map((s, n) => /* @__PURE__ */ t.jsxs("li", { className: "flex dc__gap-4", children: [
19256
+ }) => s ? /* @__PURE__ */ t.jsx(ds, { className: a }) : n ? /* @__PURE__ */ t.jsx(Qn, { className: `${a} warning-icon-y7` }) : e ? /* @__PURE__ */ t.jsx(e, { className: `${a} tab-group__tab__icon` }) : null, _A = (e, s) => e !== null && /* @__PURE__ */ t.jsx("div", { className: `tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${s}`, children: e }), fA = (e) => e && /* @__PURE__ */ t.jsx("span", { className: "tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" }), hA = (e) => e && /* @__PURE__ */ t.jsx("ul", { className: "tab-group__tab__description m-0 p-0 fs-12 lh-16 fw-4 cn-7 flexbox dc__align-items-center dc__gap-4", children: Array.isArray(e) ? e.map((s, n) => /* @__PURE__ */ t.jsxs("li", { className: "flex dc__gap-4", children: [
19256
19257
  !!n && /* @__PURE__ */ t.jsx("span", { className: "dc__bullet" }),
19257
19258
  s
19258
19259
  ] }, s)) : e }), gA = ({
@@ -19270,8 +19271,8 @@ const RD = {
19270
19271
  showWarning: m,
19271
19272
  disabled: p,
19272
19273
  description: _,
19273
- shouldWrapTooltip: E,
19274
- tooltipProps: x
19274
+ shouldWrapTooltip: x,
19275
+ tooltipProps: E
19275
19276
  }) => {
19276
19277
  const { tabClassName: h, iconClassName: g, badgeClassName: f } = uA({
19277
19278
  hideTopPadding: l,
@@ -19340,7 +19341,7 @@ const RD = {
19340
19341
  children: b()
19341
19342
  }
19342
19343
  );
19343
- return E ? /* @__PURE__ */ t.jsx(ce, { ...x, children: A() }) : A();
19344
+ return x ? /* @__PURE__ */ t.jsx(ce, { ...E, children: A() }) : A();
19344
19345
  }, DD = ({
19345
19346
  tabs: e = [],
19346
19347
  size: s = D.large,
@@ -19383,13 +19384,13 @@ const RD = {
19383
19384
  dataTestIdPrefix: i,
19384
19385
  altText: c
19385
19386
  }) => {
19386
- const [l, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [E, x] = R(""), h = () => {
19387
+ const [l, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [x, E] = R(""), h = () => {
19387
19388
  m(!0);
19388
19389
  }, g = (T) => {
19389
19390
  d(T);
19390
19391
  }, f = (T) => {
19391
19392
  const S = T ?? l;
19392
- g(S), r(S), n(""), m(!1), _(!1), x("");
19393
+ g(S), r(S), n(""), m(!1), _(!1), E("");
19393
19394
  }, N = () => {
19394
19395
  f(a);
19395
19396
  }, b = () => {
@@ -19400,10 +19401,10 @@ const RD = {
19400
19401
  n("");
19401
19402
  return;
19402
19403
  }
19403
- x(""), n(cu(S, !1).message);
19404
+ E(""), n(cu(S, !1).message);
19404
19405
  }, v = async () => {
19405
19406
  if (!a) {
19406
- x(Sl), Ue.showToast({
19407
+ E(Sl), Ue.showToast({
19407
19408
  variant: ve.error,
19408
19409
  description: Sl
19409
19410
  });
@@ -19459,7 +19460,7 @@ const RD = {
19459
19460
  placeholder: "Enter image url",
19460
19461
  value: a,
19461
19462
  onChange: A,
19462
- error: s || E,
19463
+ error: s || x,
19463
19464
  fullWidth: !0,
19464
19465
  onKeyDown: I,
19465
19466
  autoFocus: !0
@@ -19589,19 +19590,19 @@ const Dr = ({
19589
19590
  e,
19590
19591
  l,
19591
19592
  i || r
19592
- ), E = Dr({ headers: e, actionButtonConfig: l }) === 0 && l.position !== "end", x = (g) => () => n?.handleSorting(g), h = ({ key: g, label: f, isSortable: N, renderAdditionalContent: b }) => {
19593
+ ), x = Dr({ headers: e, actionButtonConfig: l }) === 0 && l.position !== "end", E = (g) => () => n?.handleSorting(g), h = ({ key: g, label: f, isSortable: N, renderAdditionalContent: b }) => {
19593
19594
  const A = !m && g === d;
19594
19595
  return /* @__PURE__ */ t.jsxs(
19595
19596
  "div",
19596
19597
  {
19597
- className: `bg__secondary ${A ? "py-6" : "py-8"} px-8 flexbox dc__content-space dc__align-items-center ${!E && (g === d ? `${p || !m ? "dc__top-left-radius" : "dc__left-radius-4"}` : "") || ""} ${g === u ? `${p || !m ? "dc__top-right-radius-4" : "dc__right-radius-4"}` : ""}`,
19598
+ className: `bg__secondary ${A ? "py-6" : "py-8"} px-8 flexbox dc__content-space dc__align-items-center ${!x && (g === d ? `${p || !m ? "dc__top-left-radius" : "dc__left-radius-4"}` : "") || ""} ${g === u ? `${p || !m ? "dc__top-right-radius-4" : "dc__right-radius-4"}` : ""}`,
19598
19599
  children: [
19599
19600
  N ? /* @__PURE__ */ t.jsxs(
19600
19601
  "button",
19601
19602
  {
19602
19603
  type: "button",
19603
19604
  className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
19604
- onClick: x(g),
19605
+ onClick: E(g),
19605
19606
  children: [
19606
19607
  f,
19607
19608
  /* @__PURE__ */ t.jsx(
@@ -19650,7 +19651,7 @@ const Dr = ({
19650
19651
  className: "dynamic-data-table header-column w-100 bcn-1 br-4",
19651
19652
  style: { gridTemplateColumns: _ },
19652
19653
  children: /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
19653
- E && /* @__PURE__ */ t.jsx(
19654
+ x && /* @__PURE__ */ t.jsx(
19654
19655
  "div",
19655
19656
  {
19656
19657
  className: `bg__secondary ${p || !m ? "dc__top-left-radius" : "dc__left-radius-4"}`
@@ -19719,7 +19720,7 @@ const Pi = ({
19719
19720
  }, _ = (g) => {
19720
19721
  const f = o?.current;
19721
19722
  f && (f.style.height = `${g}px`), p(g);
19722
- }, E = () => {
19723
+ }, x = () => {
19723
19724
  _(s || 0);
19724
19725
  let g = o?.current?.scrollHeight || 0;
19725
19726
  if (i) {
@@ -19732,12 +19733,12 @@ const Pi = ({
19732
19733
  }), s && g < s && (g = s), n && g > n && (g = n), _(g);
19733
19734
  };
19734
19735
  P(() => {
19735
- E();
19736
- }, []), kr(E, 500, [e]);
19737
- const x = (g) => {
19736
+ x();
19737
+ }, []), kr(x, 500, [e]);
19738
+ const E = (g) => {
19738
19739
  d || _(s), a?.(g);
19739
19740
  }, h = (g) => {
19740
- E(), r?.(g);
19741
+ x(), r?.(g);
19741
19742
  };
19742
19743
  return /* @__PURE__ */ t.jsx(
19743
19744
  "textarea",
@@ -19750,7 +19751,7 @@ const Pi = ({
19750
19751
  value: e,
19751
19752
  className: `${l || ""} lh-20`,
19752
19753
  style: { resize: "none" },
19753
- onBlur: x,
19754
+ onBlur: E,
19754
19755
  onFocus: h
19755
19756
  }
19756
19757
  );
@@ -19777,31 +19778,31 @@ const vl = ({
19777
19778
  dependentRef: d,
19778
19779
  noBackDrop: u
19779
19780
  }) => {
19780
- const [m, p] = R(""), [_, E] = R(""), x = new Pr();
19781
+ const [m, p] = R(""), [_, x] = R(""), E = new Pr();
19781
19782
  P(() => {
19782
19783
  p(s?.[o] || "");
19783
19784
  }, [e, s, o]);
19784
19785
  const h = (T) => {
19785
19786
  setTimeout(() => {
19786
- E(`tag-${o}-${e}`);
19787
+ x(`tag-${o}-${e}`);
19787
19788
  }, 300);
19788
19789
  }, g = (T) => {
19789
19790
  if (!T.relatedTarget || !T.relatedTarget.classList.value || !T.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
19790
- E("");
19791
+ x("");
19791
19792
  const S = { ...s };
19792
- S[o] = m, o === ns.KEY ? S.isInvalidKey = m || S.propagate ? !x.propagateTagKey(m).isValid : S.value !== "" : m || r || S.propagate ? (S.isInvalidValue = !x.propagateTagValue(m, S.key).isValid, S.isInvalidKey = !S.key || S.isInvalidKey) : (S.isInvalidValue = !1, S.isInvalidKey = S.key ? S.isInvalidKey : !1), n(e, S);
19793
+ S[o] = m, o === ns.KEY ? S.isInvalidKey = m || S.propagate ? !E.propagateTagKey(m).isValid : S.value !== "" : m || r || S.propagate ? (S.isInvalidValue = !E.propagateTagValue(m, S.key).isValid, S.isInvalidKey = !S.key || S.isInvalidKey) : (S.isInvalidValue = !1, S.isInvalidKey = S.key ? S.isInvalidKey : !1), n(e, S);
19793
19794
  }
19794
19795
  }, f = (T) => {
19795
19796
  p(T.target.value);
19796
19797
  }, N = (T) => {
19797
19798
  Ne(T);
19798
19799
  const S = { ...s };
19799
- S[o] = T.currentTarget.dataset.key, S.propagate = T.currentTarget.dataset.propagate === "true", n(e, S), E("");
19800
+ S[o] = T.currentTarget.dataset.key, S.propagate = T.currentTarget.dataset.propagate === "true", n(e, S), x("");
19800
19801
  }, b = () => {
19801
19802
  let T = { isValid: !0, messages: [] };
19802
- return o === ns.KEY ? (m || s.value) && (T = x.propagateTagKey(m)) : (r || m || s.propagate) && (T = x.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Ne, "data-testid": "tag-label-cross-stop-propagation", children: [
19803
+ return o === ns.KEY ? (m || s.value) && (T = E.propagateTagKey(m)) : (r || m || s.propagate) && (T = E.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Ne, "data-testid": "tag-label-cross-stop-propagation", children: [
19803
19804
  T.messages.map((S) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
19804
- /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
19805
+ /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
19805
19806
  /* @__PURE__ */ t.jsx("span", { children: S })
19806
19807
  ] }, S)),
19807
19808
  o === ns.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
@@ -19929,7 +19930,7 @@ const vl = ({
19929
19930
  className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
19930
19931
  onClick: u,
19931
19932
  "data-testid": `delete-tag-${e}`,
19932
- children: /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20 mt-4" })
19933
+ children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-20 mt-4" })
19933
19934
  }
19934
19935
  )
19935
19936
  ] });
@@ -19973,7 +19974,7 @@ const OA = (e) => {
19973
19974
  dataTestId: "file-upload-remove-file-button",
19974
19975
  ariaLabel: "Remove File",
19975
19976
  showAriaLabelInTippy: !1,
19976
- icon: /* @__PURE__ */ t.jsx(ds, {}),
19977
+ icon: /* @__PURE__ */ t.jsx(us, {}),
19977
19978
  onClick: c,
19978
19979
  variant: fe.borderLess,
19979
19980
  style: Te.negativeGrey,
@@ -20014,7 +20015,7 @@ const OA = (e) => {
20014
20015
  buttonCellWrapComponent: u,
20015
20016
  focusableFieldKey: m
20016
20017
  }) => {
20017
- const p = s.every(({ key: C }) => !e[0]?.data[C].value), _ = !!e.length, E = e.length === 1 && p, x = AA(
20018
+ const p = s.every(({ key: C }) => !e[0]?.data[C].value), _ = !!e.length, x = e.length === 1 && p, E = AA(
20018
20019
  s,
20019
20020
  o,
20020
20021
  a || n
@@ -20022,14 +20023,14 @@ const OA = (e) => {
20022
20023
  f.current || (f.current = e.reduce(
20023
20024
  (C, O) => ({
20024
20025
  ...C,
20025
- [O.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: fs() }), {})
20026
+ [O.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: hs() }), {})
20026
20027
  }),
20027
20028
  {}
20028
20029
  ));
20029
20030
  const N = Q(() => e.map(({ id: C }) => C), [e]);
20030
20031
  P(() => {
20031
20032
  g(e.length > 0 && Object.keys(f.current).length < e.length);
20032
- const C = N.reduce((O, w) => (f.current[w] ? O[w] = f.current[w] : O[w] = s.reduce((L, { key: B }) => ({ ...L, [B]: fs() }), {}), O), {});
20033
+ const C = N.reduce((O, w) => (f.current[w] ? O[w] = f.current[w] : O[w] = s.reduce((L, { key: B }) => ({ ...L, [B]: hs() }), {}), O), {});
20033
20034
  f.current = C;
20034
20035
  }, [JSON.stringify(N)]), P(() => {
20035
20036
  if (h) {
@@ -20224,7 +20225,7 @@ const OA = (e) => {
20224
20225
  {
20225
20226
  className: `dynamic-data-table w-100 bcn-1 dc__bottom-radius-4 ${n ? "header-column" : "row-column"}`,
20226
20227
  style: {
20227
- gridTemplateColumns: x
20228
+ gridTemplateColumns: E
20228
20229
  },
20229
20230
  children: e.map((C) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
20230
20231
  s.map(({ key: O }, w) => /* @__PURE__ */ t.jsx(Ks, { children: j(C, O, w) }, O)),
@@ -20235,7 +20236,7 @@ const OA = (e) => {
20235
20236
  ariaLabel: "Delete Row",
20236
20237
  showAriaLabelInTippy: !1,
20237
20238
  icon: /* @__PURE__ */ t.jsx(at, {}),
20238
- disabled: E || C.disableDelete,
20239
+ disabled: x || C.disableDelete,
20239
20240
  onClick: A(C),
20240
20241
  variant: fe.borderLess,
20241
20242
  style: Te.negativeGrey,
@@ -20297,65 +20298,65 @@ const OA = (e) => {
20297
20298
  setTagErrors: c
20298
20299
  }) => {
20299
20300
  const l = (_) => {
20300
- Ss.event({
20301
+ is.event({
20301
20302
  category: "Tags",
20302
20303
  action: `${e.toUpperCase()}_PROPAGATE_TAG_BUTTON_CLICKED`
20303
20304
  });
20304
- const E = s.map((x) => x.id === _ ? {
20305
- ...x,
20305
+ const x = s.map((E) => E.id === _ ? {
20306
+ ...E,
20306
20307
  customState: {
20307
- propagateTag: !x.customState.propagateTag
20308
+ propagateTag: !E.customState.propagateTag
20308
20309
  }
20309
- } : x);
20310
- n(E);
20310
+ } : E);
20311
+ n(x);
20311
20312
  }, d = (_) => {
20312
- const E = _.customState?.propagateTag || !1, x = _.customState?.disablePropagateButton || _.data.tagKey.value.startsWith(Al) || !1;
20313
+ const x = _.customState?.propagateTag || !1, E = _.customState?.disablePropagateButton || _.data.tagKey.value.startsWith(Al) || !1;
20313
20314
  return /* @__PURE__ */ t.jsx(ce, { content: "Propagate tags to K8s resources", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx(
20314
20315
  "button",
20315
20316
  {
20316
20317
  onClick: () => l(_.id),
20317
- className: `pointer flexbox dc__content-center dc__align-start pt-8 h-100 w-100 ${E ? "bcn-7" : ""} ${x ? "cursor-not-allowed" : ""} dc__transparent dc__tab-focus`,
20318
+ className: `pointer flexbox dc__content-center dc__align-start pt-8 h-100 w-100 ${x ? "bcn-7" : ""} ${E ? "cursor-not-allowed" : ""} dc__transparent dc__tab-focus`,
20318
20319
  "data-index": _.id,
20319
20320
  type: "button",
20320
- disabled: x,
20321
- children: /* @__PURE__ */ t.jsx(Un, { className: `icon-dim-20 ${E ? "scn-0" : ""}` })
20321
+ disabled: E,
20322
+ children: /* @__PURE__ */ t.jsx(Un, { className: `icon-dim-20 ${x ? "scn-0" : ""}` })
20322
20323
  }
20323
20324
  ) });
20324
20325
  }, u = () => {
20325
- Ss.event({
20326
+ is.event({
20326
20327
  category: "Tags",
20327
20328
  action: `${e.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`
20328
20329
  });
20329
- const E = [r(), ...s];
20330
- n(E);
20331
- }, m = (_, E, x) => {
20330
+ const x = [r(), ...s];
20331
+ n(x);
20332
+ }, m = (_, x, E) => {
20332
20333
  const h = structuredClone(i);
20333
20334
  h[_.id] || (h[_.id] = {
20334
20335
  tagKey: { isValid: !0, errorMessages: [] },
20335
20336
  tagValue: { isValid: !0, errorMessages: [] }
20336
- }), E === "tagKey" ? h[_.id].tagKey = OA(x) : h[_.id].tagValue = LA(x, _.data.tagKey.value);
20337
+ }), x === "tagKey" ? h[_.id].tagKey = OA(E) : h[_.id].tagValue = LA(E, _.data.tagKey.value);
20337
20338
  const g = s.map((f) => f.id === _.id ? {
20338
20339
  ...f,
20339
20340
  data: {
20340
20341
  ...f.data,
20341
- [E]: {
20342
- ...f.data[E],
20343
- value: x
20342
+ [x]: {
20343
+ ...f.data[x],
20344
+ value: E
20344
20345
  }
20345
20346
  },
20346
20347
  customState: {
20347
20348
  ...f.customState,
20348
- propagateTag: E === "tagKey" && x === Al ? !1 : f.customState.propagateTag
20349
+ propagateTag: x === "tagKey" && E === Al ? !1 : f.customState.propagateTag
20349
20350
  }
20350
20351
  } : f);
20351
20352
  n(g), c(h);
20352
20353
  }, p = (_) => {
20353
- const E = s.filter(({ id: x }) => x !== _.id);
20354
- if (E.length === 0) {
20354
+ const x = s.filter(({ id: E }) => E !== _.id);
20355
+ if (x.length === 0) {
20355
20356
  n([r()]);
20356
20357
  return;
20357
20358
  }
20358
- n(E);
20359
+ n(x);
20359
20360
  };
20360
20361
  return /* @__PURE__ */ t.jsx(
20361
20362
  kA,
@@ -20531,8 +20532,8 @@ const OA = (e) => {
20531
20532
  mountPath: m,
20532
20533
  defaultMountPath: p,
20533
20534
  subPath: _,
20534
- data: E,
20535
- defaultData: x,
20535
+ data: x,
20536
+ defaultData: E,
20536
20537
  filePermission: h,
20537
20538
  roleARN: g,
20538
20539
  esoSubPath: f
@@ -20567,7 +20568,7 @@ const OA = (e) => {
20567
20568
  return {
20568
20569
  ...N,
20569
20570
  externalSubpathValues: GA({
20570
- data: E || x,
20571
+ data: x || E,
20571
20572
  external: l,
20572
20573
  subPath: _,
20573
20574
  esoSubPath: f
@@ -20610,8 +20611,8 @@ const OA = (e) => {
20610
20611
  isSubPathChecked: m,
20611
20612
  roleARN: p,
20612
20613
  secretDataYaml: _,
20613
- selectedType: E,
20614
- volumeMountPath: x,
20614
+ selectedType: x,
20615
+ volumeMountPath: E,
20615
20616
  yaml: h,
20616
20617
  currentData: g,
20617
20618
  isSecret: f
@@ -20634,17 +20635,17 @@ const OA = (e) => {
20634
20635
  },
20635
20636
  {
20636
20637
  displayName: "Mount data as",
20637
- value: dr[E].title,
20638
+ value: dr[x].title,
20638
20639
  key: "mountDataAs"
20639
20640
  },
20640
20641
  {
20641
20642
  displayName: "Volume mount path",
20642
- value: x,
20643
+ value: E,
20643
20644
  key: "volumeMountPath"
20644
20645
  },
20645
20646
  {
20646
20647
  displayName: "Set Sub Path",
20647
- value: dr[E].value === "volume" && (m ? "True" : "False") || "",
20648
+ value: dr[x].value === "volume" && (m ? "True" : "False") || "",
20648
20649
  key: "setSubPath"
20649
20650
  },
20650
20651
  {
@@ -20720,8 +20721,8 @@ const OA = (e) => {
20720
20721
  isFilePermissionChecked: m,
20721
20722
  roleARN: p,
20722
20723
  volumeMountPath: _,
20723
- isSubPathChecked: E,
20724
- mergeStrategy: x
20724
+ isSubPathChecked: x,
20725
+ mergeStrategy: E
20725
20726
  }) => {
20726
20727
  const h = e && du(n), f = (o ? WA(r) : i).reduce((b, A) => {
20727
20728
  if (!A.k)
@@ -20743,7 +20744,7 @@ const OA = (e) => {
20743
20744
  subPath: null,
20744
20745
  filePermission: null,
20745
20746
  esoSubPath: null,
20746
- mergeStrategy: x
20747
+ mergeStrategy: E
20747
20748
  };
20748
20749
  if ((e && n === Le.KubernetesSecret || !e && s || e && h) && delete N[Kd.DATA], e && (N.roleARN = "", N.externalType = n, h)) {
20749
20750
  const b = Om(c);
@@ -20754,9 +20755,9 @@ const OA = (e) => {
20754
20755
  refreshInterval: b.refreshInterval,
20755
20756
  esoDataFrom: b.esoDataFrom,
20756
20757
  template: b.template
20757
- }, N.roleARN = p, E && a && (N.esoSubPath = a.replace(/\s+/g, "").split(",")));
20758
+ }, N.roleARN = p, x && a && (N.esoSubPath = a.replace(/\s+/g, "").split(",")));
20758
20759
  }
20759
- if (u === dr.volume.value && (N.mountPath = _, N.subPath = E, m && (N.filePermission = l.length === 3 ? `0${l}` : `${l}`), E && (e && n === Le.KubernetesSecret || !e && s))) {
20760
+ if (u === dr.volume.value && (N.mountPath = _, N.subPath = x, m && (N.filePermission = l.length === 3 ? `0${l}` : `${l}`), x && (e && n === Le.KubernetesSecret || !e && s))) {
20760
20761
  const b = a.replace(/\s+/g, "").split(","), A = {};
20761
20762
  b.forEach((v) => {
20762
20763
  A[v] = "";
@@ -20995,7 +20996,7 @@ const OA = (e) => {
20995
20996
  },
20996
20997
  currentData: {
20997
20998
  custom: {
20998
- isValid: (_) => !!_.filter(({ k: E }) => !!E).length,
20999
+ isValid: (_) => !!_.filter(({ k: x }) => !!x).length,
20999
21000
  message: "This is a required field"
21000
21001
  }
21001
21002
  }
@@ -21005,7 +21006,7 @@ const OA = (e) => {
21005
21006
  esoSecretYaml: JA(d)
21006
21007
  } : {}
21007
21008
  };
21008
- }, ps = {
21009
+ }, _s = {
21009
21010
  width: 356,
21010
21011
  height: 504
21011
21012
  }, Lm = "No Defined Description", ZA = "No Defined Value", QA = "What is scoped variable?", eI = ({
@@ -21018,19 +21019,19 @@ const OA = (e) => {
21018
21019
  }) => {
21019
21020
  const [i, c] = R(null), l = `@{{${e}}}`, d = () => {
21020
21021
  c(Pm(l));
21021
- }, u = (x) => {
21022
+ }, u = (E) => {
21022
21023
  if (a)
21023
21024
  return /* @__PURE__ */ t.jsx("i", { className: "text__white fs-12 fw-6 lh-18 m-0", children: "is sensitive & hidden" });
21024
21025
  const h = "text__white fs-12 fw-6 lh-18 m-0";
21025
- return x === "" ? /* @__PURE__ */ t.jsx("p", { className: h, children: `'""'` }) : typeof x == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: h, children: x ? "true" : "false" }) : typeof x == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${h} dc__transparent--unstyled border__primary`, children: ft(x) }) : /* @__PURE__ */ t.jsx("p", { className: h, children: x });
21026
- }, m = (x) => {
21026
+ return E === "" ? /* @__PURE__ */ t.jsx("p", { className: h, children: `'""'` }) : typeof E == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: h, children: E ? "true" : "false" }) : typeof E == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${h} dc__transparent--unstyled border__primary`, children: ft(E) }) : /* @__PURE__ */ t.jsx("p", { className: h, children: E });
21027
+ }, m = (E) => {
21027
21028
  if (r === "")
21028
- return x;
21029
+ return E;
21029
21030
  try {
21030
21031
  const h = new RegExp(r, "gi");
21031
- return x.replace(h, (g) => `<span class="bcy-2">${g}</span>`);
21032
+ return E.replace(h, (g) => `<span class="bcy-2">${g}</span>`);
21032
21033
  } catch {
21033
- return x;
21034
+ return E;
21034
21035
  }
21035
21036
  }, p = () => s === Lm ? /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 fw-4 lh-18", children: s }) : /* @__PURE__ */ t.jsx(
21036
21037
  "p",
@@ -21044,7 +21045,7 @@ const OA = (e) => {
21044
21045
  className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
21045
21046
  dangerouslySetInnerHTML: { __html: vs.sanitize(m(e)) }
21046
21047
  }
21047
- ), E = (x) => /* @__PURE__ */ t.jsx(
21048
+ ), x = (E) => /* @__PURE__ */ t.jsx(
21048
21049
  ce,
21049
21050
  {
21050
21051
  className: "default-tt dc__word-break-all",
@@ -21056,12 +21057,12 @@ const OA = (e) => {
21056
21057
  interactive: !0,
21057
21058
  alwaysShowTippyOnHover: !0,
21058
21059
  appendTo: document.body,
21059
- children: x
21060
+ children: E
21060
21061
  }
21061
21062
  );
21062
21063
  return (
21063
21064
  // TODO: conditional wrap is not required since handled through alwaysShowTippyOnHover in tooltip
21064
- /* @__PURE__ */ t.jsx(mt, { condition: o, wrap: E, children: /* @__PURE__ */ t.jsxs(
21065
+ /* @__PURE__ */ t.jsx(mt, { condition: o, wrap: x, children: /* @__PURE__ */ t.jsxs(
21065
21066
  "div",
21066
21067
  {
21067
21068
  className: "flexbox-col pt-8 pb-8 pl-12 pr-12 dc__align-self-stretch bg__primary dc__border-bottom-n1 dc__hover-n50",
@@ -21100,7 +21101,7 @@ const OA = (e) => {
21100
21101
  /* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(xn, { className: "icon-dim-16 fcv-5" }) }),
21101
21102
  /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: QA })
21102
21103
  ] }),
21103
- /* @__PURE__ */ t.jsx(Ts, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
21104
+ /* @__PURE__ */ t.jsx(Ss, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
21104
21105
  ]
21105
21106
  }
21106
21107
  ),
@@ -21138,13 +21139,13 @@ const OA = (e) => {
21138
21139
  (v) => v.variableName.toLowerCase().includes(b) || v.shortDescription?.toLowerCase().includes(b)
21139
21140
  );
21140
21141
  c(A), m(b);
21141
- }, E = () => {
21142
+ }, x = () => {
21142
21143
  d(!l);
21143
- }, x = () => /* @__PURE__ */ t.jsx(
21144
+ }, E = () => /* @__PURE__ */ t.jsx(
21144
21145
  "button",
21145
21146
  {
21146
21147
  className: "dc__outline-none-imp flexbox mw-56 pt-5 pb-5 pl-12 pr-12 dc__gap-8 dc__align-items-center dc__border-radius-4-imp dc__border bg__primary cb-5 fs-12 fw-6 lh-18 dc__align-center dc__hover-cn1 dc__hover-b500",
21147
- onClick: E,
21148
+ onClick: x,
21148
21149
  type: "button",
21149
21150
  children: "Clear Search"
21150
21151
  }
@@ -21160,7 +21161,7 @@ const OA = (e) => {
21160
21161
  /* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
21161
21162
  re,
21162
21163
  {
21163
- icon: /* @__PURE__ */ t.jsx(ds, {}),
21164
+ icon: /* @__PURE__ */ t.jsx(us, {}),
21164
21165
  ariaLabel: "Close suggestions",
21165
21166
  showAriaLabelInTippy: !1,
21166
21167
  dataTestId: "deactivate-suggestions",
@@ -21210,7 +21211,7 @@ const OA = (e) => {
21210
21211
  title: "No matching variable found",
21211
21212
  isButtonAvailable: !0,
21212
21213
  noImage: !0,
21213
- renderButton: x,
21214
+ renderButton: E,
21214
21215
  classname: "h-200"
21215
21216
  }
21216
21217
  ) }),
@@ -21250,7 +21251,7 @@ const OA = (e) => {
21250
21251
  hideObjectVariables: o = !0,
21251
21252
  showValueOnHover: i = !0
21252
21253
  }) => {
21253
- const [c, l] = R(!1), [d, u] = R({ x: 0, y: 0 }), [m, p] = R({ x: 0, y: 0 }), [_, E, x, h] = Wt(
21254
+ const [c, l] = R(!1), [d, u] = R({ x: 0, y: 0 }), [m, p] = R({ x: 0, y: 0 }), [_, x, E, h] = Wt(
21254
21255
  () => rI(s, n, a, o),
21255
21256
  [s, n, a]
21256
21257
  ), g = ui(), f = Y(null), N = Q(() => {
@@ -21282,15 +21283,15 @@ const OA = (e) => {
21282
21283
  p({
21283
21284
  x: d.x,
21284
21285
  y: d.y
21285
- }), y.y > g.height - ps.height && p({
21286
+ }), y.y > g.height - _s.height && p({
21286
21287
  x: d.x,
21287
- y: g.height - ps.height - N.y
21288
- }), y.x > g.width - ps.width && p({
21289
- x: g.width - ps.width - N.x,
21288
+ y: g.height - _s.height - N.y
21289
+ }), y.x > g.width - _s.width && p({
21290
+ x: g.width - _s.width - N.x,
21290
21291
  y: d.y
21291
- }), y.x > g.width - ps.width && y.y > g.height - ps.height && p({
21292
- x: g.width - ps.width - N.x,
21293
- y: g.height - ps.height - N.y
21292
+ }), y.x > g.width - _s.width && y.y > g.height - _s.height && p({
21293
+ x: g.width - _s.width - N.x,
21294
+ y: g.height - _s.height - N.y
21294
21295
  }), l(!0);
21295
21296
  }, A = ze((y) => {
21296
21297
  y.stopPropagation(), l(!1);
@@ -21329,9 +21330,9 @@ const OA = (e) => {
21329
21330
  {
21330
21331
  handleDeActivation: A,
21331
21332
  loading: _,
21332
- variables: E ?? [],
21333
+ variables: x ?? [],
21333
21334
  reloadVariables: h,
21334
- error: x,
21335
+ error: E,
21335
21336
  showValueOnHover: i
21336
21337
  }
21337
21338
  )
@@ -21484,7 +21485,7 @@ const dI = ({
21484
21485
  );
21485
21486
  const _ = (f) => () => {
21486
21487
  d(f);
21487
- }, E = ze(
21488
+ }, x = ze(
21488
21489
  (f, N) => {
21489
21490
  const b = io.some((v) => v.label === u), A = lI[u] ?? ((v) => v);
21490
21491
  if (!b) {
@@ -21494,10 +21495,10 @@ const dI = ({
21494
21495
  return (m === ge.ASC ? 1 : -1) * (A(f[Rl[u]]) < A(N[Rl[u]]) ? -1 : 1);
21495
21496
  },
21496
21497
  [m, u]
21497
- ), x = a.getResults(e ? null : E), h = io.reduce(
21498
+ ), E = a.getResults(e ? null : x), h = io.reduce(
21498
21499
  (f, N, b) => {
21499
21500
  if (f.push(N), b === 0) {
21500
- const A = x?.[0]?.additionalKeys;
21501
+ const A = E?.[0]?.additionalKeys;
21501
21502
  A?.length && A.forEach((v) => {
21502
21503
  f.push({
21503
21504
  label: v.label,
@@ -21583,7 +21584,7 @@ const dI = ({
21583
21584
  ))
21584
21585
  }
21585
21586
  ),
21586
- /* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: x.map((f, N, b) => /* @__PURE__ */ t.jsxs(
21587
+ /* @__PURE__ */ t.jsx("div", { className: "dc__overflow-auto px-20", children: E.map((f, N, b) => /* @__PURE__ */ t.jsxs(
21587
21588
  "div",
21588
21589
  {
21589
21590
  className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${N === b.length - 1 ? "mb-20" : ""}`,
@@ -21665,12 +21666,12 @@ const dI = ({
21665
21666
  data: l,
21666
21667
  disableTransition: d
21667
21668
  }) => {
21668
- const [u, m] = R(!!i), [, p] = R((/* @__PURE__ */ new Date()).toISOString()), _ = Y(s), E = Y(new jl(_.current.length)), x = Y(new AbortController()), h = !r && !!E.current.getSize();
21669
+ const [u, m] = R(!!i), [, p] = R((/* @__PURE__ */ new Date()).toISOString()), _ = Y(s), x = Y(new jl(_.current.length)), E = Y(new AbortController()), h = !r && !!x.current.getSize();
21669
21670
  Wb({
21670
21671
  shouldPrompt: u
21671
21672
  });
21672
21673
  const g = () => {
21673
- (E.current.getHasAnyOperationSucceeded() || r) && a(), e();
21674
+ (x.current.getHasAnyOperationSucceeded() || r) && a(), e();
21674
21675
  }, f = async () => {
21675
21676
  try {
21676
21677
  m(!0);
@@ -21681,18 +21682,18 @@ const dI = ({
21681
21682
  }, 10));
21682
21683
  }, S = _.current.map((j) => async () => {
21683
21684
  const { operation: C, name: O, additionalKeys: w, renderContentAtResultRowEnd: L = null } = j;
21684
- if (x.current.signal.aborted)
21685
+ if (E.current.signal.aborted)
21685
21686
  throw new Error("bulk operations aborted");
21686
21687
  let B = -1;
21687
21688
  try {
21688
- B = E.current.addResult({
21689
+ B = x.current.addResult({
21689
21690
  name: O,
21690
21691
  additionalKeys: w,
21691
21692
  status: "Progressing",
21692
21693
  message: "-"
21693
21694
  }), T();
21694
- const H = await C(x, l);
21695
- E.current.updateResultStatus(B, {
21695
+ const H = await C(E, l);
21696
+ x.current.updateResultStatus(B, {
21696
21697
  status: "Completed",
21697
21698
  ...L ? {
21698
21699
  renderContentAtResultRowEnd: () => L(H)
@@ -21700,14 +21701,14 @@ const dI = ({
21700
21701
  }), T();
21701
21702
  } catch (H) {
21702
21703
  if (Xt(H)) {
21703
- E.current.updateResultStatus(B, {
21704
+ x.current.updateResultStatus(B, {
21704
21705
  status: "Failed",
21705
21706
  message: "Aborted by you",
21706
21707
  retryOperation: j
21707
21708
  }), T();
21708
21709
  return;
21709
21710
  }
21710
- E.current.updateResultStatus(B, {
21711
+ x.current.updateResultStatus(B, {
21711
21712
  status: "Failed",
21712
21713
  message: (H && (H.message || H instanceof Pt && Array.isArray(H.errors) && H.errors[0].userMessage)) ?? "",
21713
21714
  retryOperation: j
@@ -21725,12 +21726,12 @@ const dI = ({
21725
21726
  }
21726
21727
  };
21727
21728
  P(() => (i && f().then(Ea).catch(Ea), () => {
21728
- x.current?.abort();
21729
+ E.current?.abort();
21729
21730
  }), []);
21730
21731
  const N = u ? Ea : g, b = async () => {
21731
- _.current = E.current.getRetryOperations(), E.current = new jl(_.current.length), x.current = new AbortController(), await f();
21732
+ _.current = x.current.getRetryOperations(), x.current = new jl(_.current.length), E.current = new AbortController(), await f();
21732
21733
  }, A = () => {
21733
- x.current.abort();
21734
+ E.current.abort();
21734
21735
  }, v = () => /* @__PURE__ */ t.jsx(
21735
21736
  zs,
21736
21737
  {
@@ -21756,8 +21757,8 @@ const dI = ({
21756
21757
  apiCallInProgress: u,
21757
21758
  handleAbortBulkOperation: A,
21758
21759
  handleModalClose: N,
21759
- isOperationAborted: x.current?.signal.aborted ?? !1,
21760
- resultsStore: E.current,
21760
+ isOperationAborted: E.current?.signal.aborted ?? !1,
21761
+ resultsStore: x.current,
21761
21762
  handleRetryFailedOperations: b,
21762
21763
  getResultsChartSummaryText: n,
21763
21764
  resultsHeader: o.resultsHeader,
@@ -21874,22 +21875,22 @@ const dI = ({
21874
21875
  }) => {
21875
21876
  const [m, p] = R(
21876
21877
  null
21877
- ), [_, E] = R(!1), x = () => {
21878
+ ), [_, x] = R(!1), E = () => {
21878
21879
  e(), l();
21879
21880
  };
21880
21881
  P(() => {
21881
21882
  if (o && i) {
21882
21883
  const N = i.find((v) => +v.id === o?.appWorkflowId);
21883
21884
  if (!N) {
21884
- x(), Ue.showToast({
21885
+ E(), Ue.showToast({
21885
21886
  variant: ve.error,
21886
21887
  description: Ol.WORKFLOW_NOT_AVAILABLE
21887
21888
  });
21888
21889
  return;
21889
21890
  }
21890
- const b = N.nodes.find((v) => v.type === xs.CI);
21891
- if (N.nodes.some((v) => v.type === xs.WEBHOOK)) {
21892
- p(xs.WEBHOOK);
21891
+ const b = N.nodes.find((v) => v.type === Es.CI);
21892
+ if (N.nodes.some((v) => v.type === Es.WEBHOOK)) {
21893
+ p(Es.WEBHOOK);
21893
21894
  return;
21894
21895
  }
21895
21896
  if (b?.isJobCI) {
@@ -21912,14 +21913,14 @@ const dI = ({
21912
21913
  }
21913
21914
  }, [i, o]);
21914
21915
  const h = () => {
21915
- if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === xs.CD)) {
21916
- E(!0), BN(_I(o)).then((A) => {
21916
+ if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === Es.CD)) {
21917
+ x(!0), BN(_I(o)).then((A) => {
21917
21918
  A.result && (Ue.showToast({
21918
21919
  variant: ve.success,
21919
21920
  description: Ol.SUCCESS_CHANGE_TO_WEBHOOK
21920
- }), c(), x());
21921
+ }), c(), E());
21921
21922
  }).catch((A) => {
21922
- Be(A), E(!1);
21923
+ Be(A), x(!1);
21923
21924
  });
21924
21925
  return;
21925
21926
  }
@@ -21942,8 +21943,8 @@ const dI = ({
21942
21943
  return /* @__PURE__ */ t.jsx(
21943
21944
  bn,
21944
21945
  {
21945
- onEscape: _ ? null : x,
21946
- close: _ ? null : x,
21946
+ onEscape: _ ? null : E,
21947
+ close: _ ? null : E,
21947
21948
  children: /* @__PURE__ */ t.jsxs(
21948
21949
  "div",
21949
21950
  {
@@ -22008,7 +22009,7 @@ const dI = ({
22008
22009
  dataTestId: Me.EXTERNAL_SERVICE.dataTestId,
22009
22010
  type: Me.EXTERNAL_SERVICE.type,
22010
22011
  handleCardAction: g,
22011
- disableInfo: f(xs.WEBHOOK),
22012
+ disableInfo: f(Es.WEBHOOK),
22012
22013
  isDisabled: u
22013
22014
  }
22014
22015
  ),
@@ -22158,40 +22159,40 @@ const dI = ({
22158
22159
  className: `cn-9 ${n === D.large ? "fs-13 lh-20" : "fs-12 lh-18"} fw-6 m-0 dc__truncate--clamp-3 dc__word-break`,
22159
22160
  children: o
22160
22161
  }
22161
- ) : o : null, E = () => i ? typeof i == "string" ? /* @__PURE__ */ t.jsx(
22162
+ ) : o : null, x = () => i ? typeof i == "string" ? /* @__PURE__ */ t.jsx(
22162
22163
  "p",
22163
22164
  {
22164
22165
  className: `m-0 cn-9 fw-4 ${n === D.large ? "fs-13 lh-20" : "fs-12 lh-18"} dc__truncate--clamp-6 dc__word-break`,
22165
22166
  children: i
22166
22167
  }
22167
- ) : i : null, x = () => {
22168
+ ) : i : null, E = () => {
22168
22169
  const h = e === "column", g = n === D.medium ? "dc__gap-2" : "dc__gap-4";
22169
22170
  return /* @__PURE__ */ t.jsxs("div", { className: `flexbox-col flex-grow-1 ${h ? g : ""}`, children: [
22170
22171
  _(),
22171
- E()
22172
+ x()
22172
22173
  ] });
22173
22174
  };
22174
22175
  return e === "row" ? /* @__PURE__ */ t.jsxs("div", { className: `${d} flexbox dc__gap-16`, children: [
22175
22176
  /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 flex-grow-1", children: [
22176
22177
  p(),
22177
- x()
22178
+ E()
22178
22179
  ] }),
22179
22180
  r && /* @__PURE__ */ t.jsx(re, { ...r, size: Dl[n] })
22180
22181
  ] }) : e === "column" ? /* @__PURE__ */ t.jsxs("div", { className: `${d} flexbox-col dc__gap-8`, children: [
22181
22182
  /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
22182
- x(),
22183
+ E(),
22183
22184
  p()
22184
22185
  ] }),
22185
22186
  r && /* @__PURE__ */ t.jsx(re, { ...r, size: Dl[n] })
22186
22187
  ] }) : null;
22187
22188
  }, NI = {
22188
- [_s.google]: "ic-google",
22189
- [_s.github]: "ic-github",
22190
- [_s.gitlab]: "ic-gitlab",
22191
- [_s.ldap]: "ic-ldap",
22192
- [_s.microsoft]: "ic-microsoft",
22193
- [_s.oidc]: "ic-oidc",
22194
- [_s.openshift]: "ic-openshift"
22189
+ [fs.google]: "ic-google",
22190
+ [fs.github]: "ic-github",
22191
+ [fs.gitlab]: "ic-gitlab",
22192
+ [fs.ldap]: "ic-ldap",
22193
+ [fs.microsoft]: "ic-microsoft",
22194
+ [fs.oidc]: "ic-oidc",
22195
+ [fs.openshift]: "ic-openshift"
22195
22196
  }, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(st, { name: NI[e], size: s, color: null });
22196
22197
  function Be(e, s = !0, n = !1) {
22197
22198
  e instanceof Pt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
@@ -22311,30 +22312,30 @@ function kl(e, s = 4, n = "json", a = !1) {
22311
22312
  };
22312
22313
  return P(() => {
22313
22314
  if (!a) return;
22314
- let _, E = null, x = null;
22315
+ let _, x = null, E = null;
22315
22316
  if (n === "json")
22316
22317
  try {
22317
- _ = JSON.parse(e), E = null, x = null;
22318
+ _ = JSON.parse(e), x = null, E = null;
22318
22319
  } catch (h) {
22319
- E = h;
22320
+ x = h;
22320
22321
  try {
22321
- _ = Dt.parse(e, p), E = null, x = null;
22322
+ _ = Dt.parse(e, p), x = null, E = null;
22322
22323
  } catch (g) {
22323
- x = g;
22324
+ E = g;
22324
22325
  }
22325
22326
  }
22326
22327
  else
22327
22328
  try {
22328
- _ = Dt.parse(e, p), E = null, x = null;
22329
+ _ = Dt.parse(e, p), x = null, E = null;
22329
22330
  } catch (h) {
22330
- x = h;
22331
+ E = h;
22331
22332
  try {
22332
- _ = JSON.parse(e), E = null, x = null;
22333
+ _ = JSON.parse(e), x = null, E = null;
22333
22334
  } catch (g) {
22334
- E = g;
22335
+ x = g;
22335
22336
  }
22336
22337
  }
22337
- (E || x) && m(n === "json" ? E.message : x.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), c(Dt.stringify(_, { indent: 2, lineWidth: 0 })), d(_), m("")) : (d(null), m(E || x ? n === "json" ? E.message : x.message : "cannot parse to valid object"));
22338
+ (x || E) && m(n === "json" ? x.message : E.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), c(Dt.stringify(_, { indent: 2, lineWidth: 0 })), d(_), m("")) : (d(null), m(x || E ? n === "json" ? x.message : E.message : "cannot parse to valid object"));
22338
22339
  }, [e, s, n, a]), [l, r, i, u];
22339
22340
  }
22340
22341
  const vI = ["name", "namespace", "labels", "annotations"];
@@ -22580,14 +22581,14 @@ function fP(e) {
22580
22581
  500,
22581
22582
  [r, l]
22582
22583
  );
22583
- function E(g) {
22584
+ function x(g) {
22584
22585
  s.current.scrollBy({
22585
22586
  top: -1 * i,
22586
22587
  left: 0,
22587
22588
  behavior: "smooth"
22588
22589
  }), e.autoBottomScroll && d(!1);
22589
22590
  }
22590
- function x(g) {
22591
+ function E(g) {
22591
22592
  d(!0), s.current.scrollBy({
22592
22593
  top: r,
22593
22594
  left: 0,
@@ -22597,7 +22598,7 @@ function fP(e) {
22597
22598
  function h() {
22598
22599
  s.current && (o(s.current.scrollHeight), c(s.current.scrollTop), n.current = requestAnimationFrame(h));
22599
22600
  }
22600
- return [u, p ? E : null, _ ? x : null];
22601
+ return [u, p ? x : null, _ ? E : null];
22601
22602
  }
22602
22603
  function RI(e, s, n = []) {
22603
22604
  const a = Y(null);
@@ -22618,7 +22619,7 @@ function hP() {
22618
22619
  };
22619
22620
  return e;
22620
22621
  }
22621
- const jI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Ts, { className: "icon-dim-20 icon-n6" }) });
22622
+ const jI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Ss, { className: "icon-dim-20 icon-n6" }) });
22622
22623
  function Bm(e, s) {
22623
22624
  return Array.isArray(e) ? e.reduce((n, a) => n.set(a[s], a), /* @__PURE__ */ new Map()) : (console.error(e, "is not array"), /* @__PURE__ */ new Map());
22624
22625
  }
@@ -22659,12 +22660,11 @@ const xP = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, OI = (e, s = 300) => {
22659
22660
  return Ua(s), null;
22660
22661
  }
22661
22662
  };
22662
- function Zn({ reload: e, className: s = "", heightToDeduct: n = 0 }) {
22663
+ function Zn({ reload: e, className: s = "" }) {
22663
22664
  return /* @__PURE__ */ t.jsx(
22664
22665
  "article",
22665
22666
  {
22666
22667
  className: `flex w-100 h-100 ${s}`,
22667
- ...n > 0 && { style: { height: `calc(100vh - ${n}px)` } },
22668
22668
  children: /* @__PURE__ */ t.jsxs("div", { className: "flex column w-250 dc__align-center", "data-testid": "reload", children: [
22669
22669
  /* @__PURE__ */ t.jsx("img", { src: If, style: { height: "auto" }, className: "w-100 mb-12", alt: "load-error" }),
22670
22670
  /* @__PURE__ */ t.jsx("h3", { className: "title dc__bold", children: "Failed to load" }),
@@ -22795,24 +22795,24 @@ function vP(e, s) {
22795
22795
  c((_) => ({ ..._, alias: { ..._.alias, ...p } }));
22796
22796
  }
22797
22797
  function d(p) {
22798
- const _ = p.reduce((E, x, h) => (delete E[x], E), i.alias);
22799
- c((E) => ({ ...E, alias: _ }));
22798
+ const _ = p.reduce((x, E, h) => (delete x[E], x), i.alias);
22799
+ c((x) => ({ ...x, alias: _ }));
22800
22800
  }
22801
22801
  const u = Q(() => {
22802
22802
  const p = r.split("/").filter(Boolean), _ = a.split("/").filter(Boolean);
22803
- return p.map((E, x) => {
22804
- const h = { to: _[x], name: E };
22805
- return E.startsWith(":") && o[E.replace(":", "")] && (h.className = "param"), h;
22803
+ return p.map((x, E) => {
22804
+ const h = { to: _[E], name: x };
22805
+ return x.startsWith(":") && o[x.replace(":", "")] && (h.className = "param"), h;
22806
22806
  });
22807
22807
  }, [r, a]), { res: m } = Q(
22808
22808
  () => u.reduce(
22809
- (p, _, E) => {
22810
- const { res: x, prefix: h } = p, { to: g, name: f } = _;
22811
- return x.push({
22809
+ (p, _, x) => {
22810
+ const { res: E, prefix: h } = p, { to: g, name: f } = _;
22811
+ return E.push({
22812
22812
  to: !i.alias[f]?.component || i.alias[f]?.component && i.alias[f]?.linked ? `${h}${g}` : null,
22813
22813
  name: typeof i.alias[f] == "object" ? i.alias[f]?.component ? i.alias[f].component : null : i.alias[f] || f,
22814
22814
  className: _.className || ""
22815
- }), { res: x, prefix: `${h}${_.to}${n}` };
22815
+ }), { res: E, prefix: `${h}${_.to}${n}` };
22816
22816
  },
22817
22817
  { res: [], prefix: "/" }
22818
22818
  ),
@@ -22953,7 +22953,7 @@ const Ui = ({
22953
22953
  hideIcon: p = !1,
22954
22954
  textConfig: _
22955
22955
  }) => {
22956
- const E = () => i ? c ? u ? /* @__PURE__ */ t.jsx(
22956
+ const x = () => i ? c ? u ? /* @__PURE__ */ t.jsx(
22957
22957
  Os,
22958
22958
  {
22959
22959
  to: c,
@@ -22981,7 +22981,7 @@ const Ui = ({
22981
22981
  "data-testid": "info-bar-linkText",
22982
22982
  children: i
22983
22983
  }
22984
- ) : null, x = () => {
22984
+ ) : null, E = () => {
22985
22985
  if (_) {
22986
22986
  const { heading: h, description: g, actionButtonConfig: f } = _;
22987
22987
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox flex-grow-1 dc__content-space dc__align-start", children: [
@@ -22999,7 +22999,7 @@ const Ui = ({
22999
22999
  }
23000
23000
  return /* @__PURE__ */ t.jsxs("div", { className: `info-bar-message-wrapper ${d || ""}`, children: [
23001
23001
  /* @__PURE__ */ t.jsx("span", { className: i && c ? "mr-5" : "", children: e }),
23002
- E()
23002
+ x()
23003
23003
  ] });
23004
23004
  };
23005
23005
  return /* @__PURE__ */ t.jsx("div", { className: "info-bar-container", children: /* @__PURE__ */ t.jsxs(
@@ -23010,7 +23010,7 @@ const Ui = ({
23010
23010
  children: [
23011
23011
  /* @__PURE__ */ t.jsxs("div", { className: `flex top ${typeof o == "function" ? "mr-5" : ""} ${_ ? "flex-grow-1" : ""}`, children: [
23012
23012
  !p && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${r ?? "20"} mr-10`, children: /* @__PURE__ */ t.jsx(n, { className: `icon-dim-${r ?? "20"} ${a || ""} mr-8` }) }),
23013
- x()
23013
+ E()
23014
23014
  ] }),
23015
23015
  typeof o == "function" && o()
23016
23016
  ]
@@ -23071,10 +23071,10 @@ const Ui = ({
23071
23071
  P(() => {
23072
23072
  p.current.value = e, m(!!e);
23073
23073
  }, [e]);
23074
- const E = (N) => {
23074
+ const x = (N) => {
23075
23075
  s(N), n(N);
23076
- }, x = () => {
23077
- p.current.value = "", E(""), m(!1);
23076
+ }, E = () => {
23077
+ p.current.value = "", x(""), m(!1);
23078
23078
  }, h = (N) => {
23079
23079
  const { value: b } = N.target;
23080
23080
  m(!!b), o ? _(b) : s(b);
@@ -23083,7 +23083,7 @@ const Ui = ({
23083
23083
  if (b === "Enter") {
23084
23084
  N.preventDefault();
23085
23085
  const v = N.target.value.trim();
23086
- E(v);
23086
+ x(v);
23087
23087
  }
23088
23088
  }, f = (N = null) => {
23089
23089
  a.ref && (a.ref.current = N), p.current = N;
@@ -23111,13 +23111,13 @@ const Ui = ({
23111
23111
  u && /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
23112
23112
  re,
23113
23113
  {
23114
- icon: /* @__PURE__ */ t.jsx(ds, {}),
23114
+ icon: /* @__PURE__ */ t.jsx(us, {}),
23115
23115
  size: D.xs,
23116
23116
  variant: fe.borderLess,
23117
23117
  style: Te.negativeGrey,
23118
23118
  dataTestId: "clear-search",
23119
23119
  ariaLabel: "Clear search",
23120
- onClick: x,
23120
+ onClick: E,
23121
23121
  showAriaLabelInTippy: !1
23122
23122
  }
23123
23123
  ) })
@@ -23146,14 +23146,14 @@ const Ui = ({
23146
23146
  function _() {
23147
23147
  r || p((g) => !g);
23148
23148
  }
23149
- const E = ze(OI(_, 500), [r]), x = () => {
23149
+ const x = ze(OI(_, 500), [r]), E = () => {
23150
23150
  if (l) {
23151
- E();
23151
+ x();
23152
23152
  return;
23153
23153
  }
23154
23154
  _();
23155
23155
  }, h = (g) => {
23156
- d && (g.preventDefault(), x());
23156
+ d && (g.preventDefault(), E());
23157
23157
  };
23158
23158
  return /* @__PURE__ */ t.jsxs(
23159
23159
  "label",
@@ -23163,7 +23163,7 @@ const Ui = ({
23163
23163
  style: { "--color": n },
23164
23164
  ...d ? { onClick: h } : {},
23165
23165
  children: [
23166
- /* @__PURE__ */ t.jsx("input", { type: "checkbox", checked: !!m, onChange: x, className: "toggle__input" }),
23166
+ /* @__PURE__ */ t.jsx("input", { type: "checkbox", checked: !!m, onChange: E, className: "toggle__input" }),
23167
23167
  /* @__PURE__ */ t.jsx("span", { className: `toggle__slider ${i ? "with-icon br-4 dc__border" : "round"}`, "data-testid": o, children: i && /* @__PURE__ */ t.jsx(i, { className: `icon-dim-20 br-4 p-2 ${c}` }) })
23168
23168
  ]
23169
23169
  }
@@ -23186,21 +23186,21 @@ const zm = ({
23186
23186
  forceReInit: m,
23187
23187
  isSuperAdmin: p
23188
23188
  }) => {
23189
- const [_, E] = R(a || []), [x, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, b] = R(n ? n.comment : ""), [A, v] = R(!1), [I, y] = R(!1), [T, S] = R(a || []), [j, C] = R(""), [O, w] = R([]), [L, B] = R([]), [H, J] = R([]), [q, ee] = R(""), [ne, be] = R(""), [F, $] = R(!1);
23189
+ const [_, x] = R(a || []), [E, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, b] = R(n ? n.comment : ""), [A, v] = R(!1), [I, y] = R(!1), [T, S] = R(a || []), [j, C] = R(""), [O, w] = R([]), [L, B] = R([]), [H, J] = R([]), [q, ee] = R(""), [ne, be] = R(""), [F, $] = R(!1);
23190
23190
  P(() => {
23191
23191
  de();
23192
23192
  }, [a, n, c]), P(() => {
23193
23193
  f(o || []);
23194
23194
  }, [o]);
23195
23195
  const de = () => {
23196
- (m || !A) && (E(a || []), h(n ? n.comment : ""), b(n ? n.comment : ""), S(a || []), v(!1));
23196
+ (m || !A) && (x(a || []), h(n ? n.comment : ""), b(n ? n.comment : ""), S(a || []), v(!1));
23197
23197
  }, ue = () => {
23198
23198
  v(!A), typeof d == "function" && d(s);
23199
23199
  }, xe = (W) => {
23200
23200
  const Ie = W.target.value;
23201
23201
  Ie?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""), b(Ie);
23202
23202
  }, k = () => {
23203
- S(_), b(x), w([]), B([]), J([]), ue(), y(!1), C("");
23203
+ S(_), b(E), w([]), B([]), J([]), ue(), y(!1), C("");
23204
23204
  }, M = (W) => {
23205
23205
  if (W.length == 0 || W.length >= 128 || W[0] == "." || W[0] == "-")
23206
23206
  return C("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
@@ -23275,7 +23275,7 @@ const zm = ({
23275
23275
  appId: 0,
23276
23276
  artifactId: 0
23277
23277
  }));
23278
- i && i(pe.result?.appReleaseTags), l && l(pe.result?.tagsEditable), E(Ge), h(pe.result?.imageComment?.comment), S(Ge), b(pe.result?.imageComment?.comment), w([]), B([]), J([]), ue(), y(!1), C(""), r && r(s, Ge, pe.result?.imageComment);
23278
+ i && i(pe.result?.appReleaseTags), l && l(pe.result?.tagsEditable), x(Ge), h(pe.result?.imageComment?.comment), S(Ge), b(pe.result?.imageComment?.comment), w([]), B([]), J([]), ue(), y(!1), C(""), r && r(s, Ge, pe.result?.imageComment);
23279
23279
  }).catch((pe) => {
23280
23280
  pe.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Ue.showToast({
23281
23281
  variant: ve.error,
@@ -23421,7 +23421,7 @@ const zm = ({
23421
23421
  className: "flex left image-tag-left-border w-100 mt-8 mb-8 pr-10 pl-10",
23422
23422
  "data-testid": "image-tags-container-hover",
23423
23423
  children: /* @__PURE__ */ t.jsxs("div", { className: "w-100", children: [
23424
- x && /* @__PURE__ */ t.jsx("div", { className: "mb-6 fs-13 lh-20 dc__word-break-all", children: x }),
23424
+ E && /* @__PURE__ */ t.jsx("div", { className: "mb-6 fs-13 lh-20 dc__word-break-all", children: E }),
23425
23425
  /* @__PURE__ */ t.jsx("div", { className: "flex-wrap flex left", children: _?.map((W, Ie) => /* @__PURE__ */ t.jsx(
23426
23426
  _r,
23427
23427
  {
@@ -23469,14 +23469,14 @@ const zm = ({
23469
23469
  hideHardDelete: d,
23470
23470
  startIcon: u
23471
23471
  }) => {
23472
- const m = s ? xd : of, p = s && i.some((x) => x.tagName === e), _ = o === 0 || c && !d, E = () => l ? "cr-5 bcr-1 er-2" : s ? "cy-7 bcy-1 dc__strike-through ey-2" : "cn-9";
23472
+ const m = s ? xd : of, p = s && i.some((E) => E.tagName === e), _ = o === 0 || c && !d, x = () => l ? "cr-5 bcr-1 er-2" : s ? "cy-7 bcy-1 dc__strike-through ey-2" : "cn-9";
23473
23473
  return /* @__PURE__ */ t.jsxs(
23474
23474
  "div",
23475
23475
  {
23476
- className: `br-4 en-2 bw-1 mr-8 bg__primary pt-2 pr-8 pb-2 pl-8 tag-class dc__word-break-all flex ${n ? "icon-hover" : ""} ${E()}`,
23476
+ className: `br-4 en-2 bw-1 mr-8 bg__primary pt-2 pr-8 pb-2 pl-8 tag-class dc__word-break-all flex ${n ? "icon-hover" : ""} ${x()}`,
23477
23477
  children: [
23478
23478
  u,
23479
- l ? /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
23479
+ l ? /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
23480
23480
  _e,
23481
23481
  {
23482
23482
  className: "default-tt",
@@ -23501,7 +23501,7 @@ const zm = ({
23501
23501
  ),
23502
23502
  e,
23503
23503
  /* @__PURE__ */ t.jsx(_e, { className: "default-tt", arrow: !0, placement: "top", content: "Remove tag", children: /* @__PURE__ */ t.jsx("div", { className: `action-icon ml-4 lh-16 pt-3 ${_ ? "show-icon" : ""}`, children: /* @__PURE__ */ t.jsx(
23504
- ds,
23504
+ us,
23505
23505
  {
23506
23506
  className: "icon-dim-12 fcn-6 cursor",
23507
23507
  "data-testid": `${e}-tag-hard-delete`,
@@ -23537,9 +23537,9 @@ function YI({
23537
23537
  P(() => {
23538
23538
  p("");
23539
23539
  }, [l]);
23540
- const _ = (x) => {
23541
- p(x.target.value);
23542
- }, E = () => {
23540
+ const _ = (E) => {
23541
+ p(E.target.value);
23542
+ }, x = () => {
23543
23543
  p("");
23544
23544
  };
23545
23545
  return Em(() => e(m), c, [m]), /* @__PURE__ */ t.jsxs("div", { className: r, children: [
@@ -23561,7 +23561,7 @@ function YI({
23561
23561
  {
23562
23562
  type: "button",
23563
23563
  className: "dc__outline-none-imp dc__no-border p-0 bg__secondary flex",
23564
- onClick: E,
23564
+ onClick: x,
23565
23565
  "data-testid": "clear-search",
23566
23566
  children: /* @__PURE__ */ t.jsx(ei, { className: "icon-dim-20 icon-n6" })
23567
23567
  }
@@ -23599,28 +23599,28 @@ function jP({
23599
23599
  const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", { className: s || "", children: /* @__PURE__ */ t.jsx($f, { className: e || "" }) }), LP = ({ setSelectedChartRefId: e }) => {
23600
23600
  const [s, n] = R([]), [a, r] = R(null), [o, i] = R([]), [c, l] = R([]), [d, u] = R(null);
23601
23601
  P(() => {
23602
- _E().then((E) => {
23603
- const x = E?.result || [];
23604
- n(x);
23605
- const h = [...new Set(x.map((f) => f.chartType))].map((f) => ({
23602
+ _E().then((x) => {
23603
+ const E = x?.result || [];
23604
+ n(E);
23605
+ const h = [...new Set(E.map((f) => f.chartType))].map((f) => ({
23606
23606
  value: f,
23607
23607
  label: f
23608
23608
  }));
23609
23609
  l(h);
23610
- const g = Ml(x, h[0]);
23610
+ const g = Ml(E, h[0]);
23611
23611
  m(g);
23612
- }).catch((E) => {
23613
- Be(E);
23612
+ }).catch((x) => {
23613
+ Be(x);
23614
23614
  });
23615
23615
  }, []);
23616
- const m = (E) => {
23617
- i(E), u(E[0]), e(E[0]?.chartRefId);
23618
- }, p = (E) => {
23619
- r(E);
23620
- const x = Ml(s, E);
23621
- m(x);
23622
- }, _ = (E) => {
23623
- u(E), e(E.chartRefId);
23616
+ const m = (x) => {
23617
+ i(x), u(x[0]), e(x[0]?.chartRefId);
23618
+ }, p = (x) => {
23619
+ r(x);
23620
+ const E = Ml(s, x);
23621
+ m(E);
23622
+ }, _ = (x) => {
23623
+ u(x), e(x.chartRefId);
23624
23624
  };
23625
23625
  return /* @__PURE__ */ t.jsxs("div", { className: "flex left", children: [
23626
23626
  /* @__PURE__ */ t.jsxs("div", { className: "chart-type-options flex", "data-testid": "chart-type-options", children: [
@@ -23703,7 +23703,7 @@ function wP({
23703
23703
  }
23704
23704
  ) : null;
23705
23705
  }
23706
- const WI = ({ startNode: e }) => e.type === xs.WEBHOOK ? Gs.WEBHOOK : e.type === xs.CI ? Gs.CI_PIPELINE : Gs.CD_PIPELINE, DP = ({
23706
+ const WI = ({ startNode: e }) => e.type === Es.WEBHOOK ? Gs.WEBHOOK : e.type === Es.CI ? Gs.CI_PIPELINE : Gs.CD_PIPELINE, DP = ({
23707
23707
  position: e,
23708
23708
  handleCDSelect: s,
23709
23709
  startNode: n,
@@ -23732,38 +23732,38 @@ function PP({
23732
23732
  const l = ui(), d = Y(null), [u, m] = R({
23733
23733
  x: 0,
23734
23734
  y: 0
23735
- }), p = (E) => {
23736
- const x = r?.current?.getBoundingClientRect() ?? {
23735
+ }), p = (x) => {
23736
+ const E = r?.current?.getBoundingClientRect() ?? {
23737
23737
  width: 0,
23738
23738
  height: 0,
23739
23739
  top: 0,
23740
23740
  left: 0,
23741
23741
  bottom: 0
23742
23742
  }, h = d.current?.getBoundingClientRect().height ?? 0, g = d.current?.getBoundingClientRect().width ?? 0;
23743
- switch (E) {
23743
+ switch (x) {
23744
23744
  case Go.PARENT_BOTTOM_CENTER: {
23745
- const f = (x.width - g) / 2, N = x.top > 0 ? x.top : c, A = (x.height > l.height ? l.height - N : x.height) - h - o;
23745
+ const f = (E.width - g) / 2, N = E.top > 0 ? E.top : c, A = (E.height > l.height ? l.height - N : E.height) - h - o;
23746
23746
  return { x: f, y: A };
23747
23747
  }
23748
23748
  case Go.SCREEN_BOTTOM_RIGHT: {
23749
- const f = l.width - x.left - g - o, N = l.height - x.top - h - o;
23749
+ const f = l.width - E.left - g - o, N = l.height - E.top - h - o;
23750
23750
  return { x: f, y: N };
23751
23751
  }
23752
23752
  default: {
23753
- const f = l.width / 2 - x.left - g / 2, N = l.height - x.top - h - o;
23753
+ const f = l.width / 2 - E.left - g / 2, N = l.height - E.top - h - o;
23754
23754
  return { x: f, y: N };
23755
23755
  }
23756
23756
  }
23757
23757
  };
23758
23758
  P(() => {
23759
- const E = p(n);
23760
- m(E);
23759
+ const x = p(n);
23760
+ m(x);
23761
23761
  }, [d, n, l]);
23762
- function _(E, x) {
23762
+ function _(x, E) {
23763
23763
  const h = r?.current?.getBoundingClientRect().left ?? 0, g = r?.current?.getBoundingClientRect().top ?? 0, f = d.current?.getBoundingClientRect().height ?? 0, N = d.current?.getBoundingClientRect().width ?? 0;
23764
- h + x.x + N + o > l.width || g + x.y + f + o > l.height || h + x.x < 0 || g + x.y < 0 || m({
23765
- x: x.x,
23766
- y: x.y
23764
+ h + E.x + N + o > l.width || g + E.y + f + o > l.height || h + E.x < 0 || g + E.y < 0 || m({
23765
+ x: E.x,
23766
+ y: E.y
23767
23767
  });
23768
23768
  }
23769
23769
  return (
@@ -23888,7 +23888,7 @@ const Bl = 5, zI = [
23888
23888
  }, p = () => {
23889
23889
  const g = l.find((f) => f.selected).value + 1;
23890
23890
  u(g);
23891
- }, _ = n + s < e ? n + s : e, E = l.findIndex((h) => h.selected), x = l.filter((h) => h.isVisible);
23891
+ }, _ = n + s < e ? n + s : e, x = l.findIndex((h) => h.selected), E = l.filter((h) => h.isVisible);
23892
23892
  return /* @__PURE__ */ t.jsxs("div", { className: c || "", children: [
23893
23893
  /* @__PURE__ */ t.jsxs("div", { className: "page-number", children: [
23894
23894
  n + 1,
@@ -23902,14 +23902,14 @@ const Bl = 5, zI = [
23902
23902
  "button",
23903
23903
  {
23904
23904
  className: "page__button page__button--icon",
23905
- disabled: !E,
23905
+ disabled: !x,
23906
23906
  onClick: m,
23907
23907
  type: "button",
23908
23908
  "aria-label": "Previous page",
23909
23909
  children: /* @__PURE__ */ t.jsx("span", { className: "left-icon", children: /* @__PURE__ */ t.jsx("i", { className: "fa fa-chevron-left" }) })
23910
23910
  }
23911
23911
  ) }),
23912
- x.map((h) => /* @__PURE__ */ t.jsx(
23912
+ E.map((h) => /* @__PURE__ */ t.jsx(
23913
23913
  ZI,
23914
23914
  {
23915
23915
  value: h.value,
@@ -23922,7 +23922,7 @@ const Bl = 5, zI = [
23922
23922
  "button",
23923
23923
  {
23924
23924
  className: "page__button page__button--icon",
23925
- disabled: E === l.length - 1,
23925
+ disabled: x === l.length - 1,
23926
23926
  onClick: p,
23927
23927
  type: "button",
23928
23928
  "aria-label": "Next page",
@@ -24046,7 +24046,7 @@ const Mt = {
24046
24046
  title: i,
24047
24047
  minEditorHeight: c = 300
24048
24048
  }) => {
24049
- const [l, d] = R(!1), [u, m] = R(a), [p, _] = R(e), [E, x] = R(sn.WRITE), h = !Fn(e, p), g = Y(null);
24049
+ const [l, d] = R(!1), [u, m] = R(a), [p, _] = R(e), [x, E] = R(sn.WRITE), h = !Fn(e, p), g = Y(null);
24050
24050
  P(() => {
24051
24051
  _(e);
24052
24052
  }, [e]);
@@ -24058,7 +24058,7 @@ const Mt = {
24058
24058
  }), T = !1), T;
24059
24059
  }, A = () => {
24060
24060
  let y = !0;
24061
- h && !u && (y = window.confirm(sy)), y && (_(e), m(!u), x(sn.WRITE));
24061
+ h && !u && (y = window.confirm(sy)), y && (_(e), m(!u), E(sn.WRITE));
24062
24062
  }, v = async () => {
24063
24063
  const y = p.trim();
24064
24064
  if (b(y))
@@ -24252,17 +24252,17 @@ const Mt = {
24252
24252
  onChange: _,
24253
24253
  minEditorHeight: c,
24254
24254
  minPreviewHeight: 150,
24255
- selectedTab: E,
24256
- onTabChange: x,
24255
+ selectedTab: x,
24256
+ onTabChange: E,
24257
24257
  generateMarkdownPreview: (y) => Promise.resolve(
24258
24258
  /* @__PURE__ */ t.jsx($l, { markdown: y || QI, breaks: !0 })
24259
24259
  ),
24260
24260
  childProps: {
24261
24261
  writeButton: {
24262
- className: `tab-list__tab pointer fs-13 ${E === sn.WRITE && "cb-5 fw-6 active active-tab"}`
24262
+ className: `tab-list__tab pointer fs-13 ${x === sn.WRITE && "cb-5 fw-6 active active-tab"}`
24263
24263
  },
24264
24264
  previewButton: {
24265
- className: `tab-list__tab pointer fs-13 ${E === sn.PREVIEW && "cb-5 fw-6 active active-tab"}`
24265
+ className: `tab-list__tab pointer fs-13 ${x === sn.PREVIEW && "cb-5 fw-6 active active-tab"}`
24266
24266
  },
24267
24267
  textArea: {
24268
24268
  tabIndex: r
@@ -24270,7 +24270,7 @@ const Mt = {
24270
24270
  }
24271
24271
  }
24272
24272
  ),
24273
- E === sn.WRITE && /* @__PURE__ */ t.jsx("div", { className: "form cluster__description-footer pt-12 pb-12", children: /* @__PURE__ */ t.jsxs("div", { className: "form__buttons pl-16 pr-16", children: [
24273
+ x === sn.WRITE && /* @__PURE__ */ t.jsx("div", { className: "form cluster__description-footer pt-12 pb-12", children: /* @__PURE__ */ t.jsxs("div", { className: "form__buttons pl-16 pr-16", children: [
24274
24274
  /* @__PURE__ */ t.jsx(
24275
24275
  "button",
24276
24276
  {
@@ -24385,7 +24385,7 @@ export {
24385
24385
  rn as aG,
24386
24386
  yg as aH,
24387
24387
  Gs as aI,
24388
- xs as aJ,
24388
+ Es as aJ,
24389
24389
  Hn as aK,
24390
24390
  xo as aL,
24391
24391
  Rg as aM,
@@ -24417,7 +24417,7 @@ export {
24417
24417
  pt as al,
24418
24418
  FO as am,
24419
24419
  Pd as an,
24420
- _s as ao,
24420
+ fs as ao,
24421
24421
  Cg as ap,
24422
24422
  Pt as aq,
24423
24423
  ta as ar,
@@ -24617,7 +24617,7 @@ export {
24617
24617
  $t as dr,
24618
24618
  Se as ds,
24619
24619
  Wd as dt,
24620
- Cs as du,
24620
+ bs as du,
24621
24621
  zd as dv,
24622
24622
  Wa as dw,
24623
24623
  Wn as dx,
@@ -24712,7 +24712,7 @@ export {
24712
24712
  ET as fJ,
24713
24713
  ko as fK,
24714
24714
  De as fL,
24715
- Ns as fM,
24715
+ Cs as fM,
24716
24716
  yi as fN,
24717
24717
  Re as fO,
24718
24718
  Po as fP,
@@ -25005,7 +25005,7 @@ export {
25005
25005
  Pc as jr,
25006
25006
  vN as js,
25007
25007
  yo as jt,
25008
- bs as ju,
25008
+ Ts as ju,
25009
25009
  IN as jv,
25010
25010
  yN as jw,
25011
25011
  La as jx,
@@ -25037,7 +25037,7 @@ export {
25037
25037
  Xg as kL,
25038
25038
  rc as kM,
25039
25039
  D as kN,
25040
- hs as kO,
25040
+ gs as kO,
25041
25041
  Fd as kP,
25042
25042
  Vd as kQ,
25043
25043
  Gd as kR,