@devtron-labs/devtron-fe-common-lib 1.15.2-beta-1 → 1.15.2-beta-2

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,13 +6,13 @@ var T_ = (e, s, n) => s in e ? b_(e, s, { enumerable: !0, configurable: !0, writ
6
6
  var ie = (e, s, n) => T_(e, typeof s != "symbol" ? s + "" : s, n), Ic = (e, s, n) => s.has(e) || vc("Cannot " + n);
7
7
  var Gs = (e, s, n) => (Ic(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Oa = (e, s, n) => s.has(e) ? vc("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), La = (e, s, n, a) => (Ic(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
8
8
  import { j as t, i as Te, Q as io, k as S_, n as v_, D as ar, t as We, E as Jn, g as I_, a as A_, S as Xd, b as vi, r as Jd, s as R_, o as y_, c as Ac, d as j_, e as O_, y as L_, l as rr, f as w_, h as D_, m as P_, p as M_, q as Rc, u as k_, v as yc, w as U_, x as $_, z as F_, A as B_, T as jc, B as Ii, C as V_, F as Oc, G as Zd, H as G_, I as H_, J as Qd, K as Lc, L as Y_, M as K_, N as wc, O as W_, P as z_, R as q_, V as X_, U as J_, W as Dc, X as Z_, Y as Pc, Z as Q_, _ as co, $ as Mc, a0 as ef, a1 as tf, a2 as sf, a3 as nf, a4 as af, a5 as rf, a6 as of, a7 as cf, a8 as lf, a9 as df, aa as eu, ab as uf, ac as mf, ad as pf, ae as _f, af as ff, ag as kc, ah as Uc, ai as hf, aj as gf, ak as Ef, al as xf, am as Nf, an as Cf, ao as bf, ap as Tf, aq as tu, ar as su, as as Sf, at as vf, au as If, av as Af, aw as Ys } from "./@vendor-STJ9h0oI.js";
9
- import Le, { createContext as Kt, useContext as Es, useMemo as X, useState as O, useEffect as P, cloneElement as Zn, useRef as U, createElement as Ai, Children as $c, useCallback as Be, useLayoutEffect as Rf, createRef as or, Fragment as Ms, memo as St, Component as Ri } from "react";
9
+ import Le, { createContext as Kt, useContext as Es, useMemo as X, useState as O, useEffect as P, cloneElement as Zn, useRef as U, createElement as Ai, Children as $c, useCallback as Be, useLayoutEffect as Rf, createRef as or, Fragment as Ms, memo as vt, Component as Ri } from "react";
10
10
  import { ReactComponent as yf } from "./assets/ic-info-filled-override.99e8094a.svg";
11
11
  import * as jf from "yaml";
12
12
  import Jt, { parse as Of, YAMLParseError as Lf } from "yaml";
13
13
  import { ReactComponent as yi } from "./assets/ic-info-outline.29f1089c.svg";
14
14
  import { ReactComponent as wf } from "./assets/ic-var-initial.afdaa854.svg";
15
- import { Link as ss, useLocation as xs, useHistory as Lr, useParams as Lt, useRouteMatch as Ns, NavLink as ks, generatePath as Xs, Switch as nu, Route as zs, Redirect as Df, Prompt as Pf } from "react-router-dom";
15
+ import { Link as ss, useLocation as xs, useHistory as Lr, useParams as wt, useRouteMatch as Ns, NavLink as ks, generatePath as Xs, Switch as nu, Route as zs, Redirect as Df, Prompt as Pf } from "react-router-dom";
16
16
  import { ReactComponent as Mf } from "./assets/ic-delete-interactive.304dd293.svg";
17
17
  import { ReactComponent as ua } from "./assets/ic-warning.ecf7ff97.svg";
18
18
  import { ReactComponent as kf } from "./assets/ic-spray-can.955302fc.svg";
@@ -61,7 +61,7 @@ import { ReactComponent as sh } from "./assets/ic-diff-file-updated.a8293158.svg
61
61
  import { ReactComponent as _u } from "./assets/ic-arrow-up-down.945ee496.svg";
62
62
  import { ReactComponent as wi } from "./assets/ic-sort-arrow-down.5cf54d08.svg";
63
63
  import { ReactComponent as Mr } from "./assets/ic-view-variable-toggle.93c3599f.svg";
64
- import { ReactComponent as wt } from "./assets/ic-close.43adc42a.svg";
64
+ import { ReactComponent as Dt } from "./assets/ic-close.43adc42a.svg";
65
65
  import { ReactComponent as ea } from "./assets/ic-info-outlined.f4fa3224.svg";
66
66
  import { ReactComponent as Fo } from "./assets/ic-expand.ab992205.svg";
67
67
  import { ReactComponent as _a } from "./assets/ic-check.27c51fa1.svg";
@@ -355,7 +355,7 @@ const Gn = {
355
355
  Security: "SECURITY",
356
356
  Changes: "CHANGES"
357
357
  };
358
- var Rt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Rt || {}), Pu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Pu || {}), UN = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(UN || {}), $N = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))($N || {}), zn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(zn || {}), FN = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(FN || {}), BN = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(BN || {}), Go = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Go || {}), VN = /* @__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))(VN || {}), Mu = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Mu || {}), GN = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(GN || {}), Mt = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(Mt || {}), HN = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(HN || {}), Js = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Js || {}), ys = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(ys || {}), ta = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(ta || {}), Ho = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(Ho || {}), YN = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(YN || {});
358
+ var yt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(yt || {}), Pu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Pu || {}), UN = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(UN || {}), $N = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))($N || {}), zn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(zn || {}), FN = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(FN || {}), BN = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(BN || {}), Go = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Go || {}), VN = /* @__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))(VN || {}), Mu = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Mu || {}), GN = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(GN || {}), Tt = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(Tt || {}), HN = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(HN || {}), Js = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Js || {}), ys = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(ys || {}), ta = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(ta || {}), Ho = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(Ho || {}), YN = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(YN || {});
359
359
  const KN = ({ tooltipContent: e }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "dc__white-space-pre-wrap", children: [
360
360
  /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 fw-6 lh-18", children: "Click to add" }),
361
361
  e
@@ -656,7 +656,7 @@ const Yo = {
656
656
  TOOLTIP_DONT_SHOW_AGAIN: "Tooltip Dont show again",
657
657
  HELP: "Clicked Help",
658
658
  SKIP_AND_EXPLORE_DEVTRON: "SkippedOnboarding"
659
- }, $u = 5, Fu = "login-count", jU = "devtron-ci", jt = {
659
+ }, $u = 5, Fu = "login-count", jU = "devtron-ci", Ot = {
660
660
  TWELVE_HOURS_FORMAT: "ddd, DD MMM YYYY, hh:mm A",
661
661
  TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: "DD MMM YYYY, hh:mm A",
662
662
  TWELVE_HOURS_EXPORT_FORMAT: "DD-MMM-YYYY hh.mm A",
@@ -714,7 +714,7 @@ const wU = [
714
714
  /* YAML */
715
715
  }
716
716
  ];
717
- var fC = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(fC || {}), hC = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(hC || {}), gC = /* @__PURE__ */ ((e) => (e.CHART_GROUP = "chart-group", e.DIRECT = "apps", e.JOB = "jobs", e.DOCKER = "docker", e.GIT = "git", e.CLUSTER = "cluster", e.NOTIFICATION = "notification", e))(gC || {}), tn = /* @__PURE__ */ ((e) => (e.STARTING = "Starting", e.RUNNING = "Running", e.PROGRESSING = "Progressing", e.WAITING_TO_START = "WaitingToStart", e.TIMED_OUT = "TimedOut", e.CANCELLED = "CANCELLED", e))(tn || {}), At = /* @__PURE__ */ ((e) => (e.EXTERNAL_CI = "EXTERNAL-CI", e.CI = "CI", e.LINKED_CI = "LINKED-CI", e.JOB_CI = "JOB-CI", e.LINKED_CD = "LINKED_CD", e))(At || {});
717
+ var fC = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(fC || {}), hC = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(hC || {}), gC = /* @__PURE__ */ ((e) => (e.CHART_GROUP = "chart-group", e.DIRECT = "apps", e.JOB = "jobs", e.DOCKER = "docker", e.GIT = "git", e.CLUSTER = "cluster", e.NOTIFICATION = "notification", e))(gC || {}), tn = /* @__PURE__ */ ((e) => (e.STARTING = "Starting", e.RUNNING = "Running", e.PROGRESSING = "Progressing", e.WAITING_TO_START = "WaitingToStart", e.TIMED_OUT = "TimedOut", e.CANCELLED = "CANCELLED", e))(tn || {}), Rt = /* @__PURE__ */ ((e) => (e.EXTERNAL_CI = "EXTERNAL-CI", e.CI = "CI", e.LINKED_CI = "LINKED-CI", e.JOB_CI = "JOB-CI", e.LINKED_CD = "LINKED_CD", e))(Rt || {});
718
718
  const EC = {
719
719
  Auto: "AUTOMATIC",
720
720
  Manual: "MANUAL"
@@ -959,7 +959,7 @@ const Wo = "No matching results", RC = "Type 3 chars to see matching results", M
959
959
  APP_DESCRIPTION: "Write a short description for this application",
960
960
  JOB_DESCRIPTION: "Write a short description for this job"
961
961
  }
962
- }, Dt = {
962
+ }, Pt = {
963
963
  DEPLOYMENT_TEMPLATE: {
964
964
  DISPLAY_NAME: "Deployment template",
965
965
  VALUE: "deployment-template"
@@ -977,7 +977,7 @@ const Wo = "No matching results", RC = "Type 3 chars to see matching results", M
977
977
  VALUE: "secret"
978
978
  }
979
979
  }, Ma = {
980
- [Dt.SECRET.DISPLAY_NAME]: {
980
+ [Pt.SECRET.DISPLAY_NAME]: {
981
981
  "": "Kubernetes Secret",
982
982
  KubernetesSecret: "Kubernetes External Secret",
983
983
  AWSSecretsManager: "AWS Secrets Manager",
@@ -988,7 +988,7 @@ const Wo = "No matching results", RC = "Type 3 chars to see matching results", M
988
988
  ESO_GoogleSecretsManager: "Google Secrets Manager",
989
989
  ESO_AzureSecretsManager: "Azure Secrets Manager"
990
990
  },
991
- [Dt.CONFIGMAP.DISPLAY_NAME]: {
991
+ [Pt.CONFIGMAP.DISPLAY_NAME]: {
992
992
  "": "Kubernetes ConfigMap",
993
993
  KubernetesConfigMap: "Kubernetes External ConfigMap"
994
994
  }
@@ -1118,9 +1118,9 @@ const VC = {
1118
1118
  warning: "ey-2",
1119
1119
  neutral: "en-2"
1120
1120
  }, HC = {
1121
- DEPLOY: Rt.CD,
1122
- POST: Rt.POSTCD,
1123
- PRE: Rt.PRECD
1121
+ DEPLOY: yt.CD,
1122
+ POST: yt.POSTCD,
1123
+ PRE: yt.PRECD
1124
1124
  }, Xc = 3e4, YC = 1e4, KC = [0.33, 1, 0.68, 1], Ju = Kt(null), WU = () => {
1125
1125
  const e = Es(Ju);
1126
1126
  if (!e)
@@ -1135,11 +1135,11 @@ const VC = {
1135
1135
  throw new Error("Please wrap with MainContextProvider");
1136
1136
  return e;
1137
1137
  }, qU = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(Zu.Provider, { value: s, children: e }), Qu = "themePreference__v1", em = "(prefers-color-scheme: dark)";
1138
- var Tt = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(Tt || {});
1138
+ var St = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(St || {});
1139
1139
  const Ls = {
1140
- ...Tt,
1140
+ ...St,
1141
1141
  auto: "auto"
1142
- }, Fi = () => window.matchMedia && window.matchMedia(em).matches ? Tt.dark : Tt.light, WC = (e) => {
1142
+ }, Fi = () => window.matchMedia && window.matchMedia(em).matches ? St.dark : St.light, WC = (e) => {
1143
1143
  localStorage.setItem(Qu, e);
1144
1144
  }, zC = ({ appTheme: e, themePreference: s }) => {
1145
1145
  const n = s === Ls.auto ? `system-${e}` : e;
@@ -1159,13 +1159,13 @@ const Ls = {
1159
1159
  appTheme: e,
1160
1160
  themePreference: e
1161
1161
  };
1162
- }, Rn = (e) => `component-specific-theme__${e}`, XC = (e) => e === Tt.dark ? `component-specific-theme__${Tt.light}` : `component-specific-theme__${Tt.dark}`, JC = (e) => {
1162
+ }, Rn = (e) => `component-specific-theme__${e}`, XC = (e) => e === St.dark ? `component-specific-theme__${St.light}` : `component-specific-theme__${St.dark}`, JC = (e) => {
1163
1163
  switch (e) {
1164
1164
  case "auto":
1165
- return `System (${Fi() === Tt.dark ? "Dark" : "Light"})`;
1166
- case Tt.dark:
1165
+ return `System (${Fi() === St.dark ? "Dark" : "Light"})`;
1166
+ case St.dark:
1167
1167
  return "Dark";
1168
- case Tt.light:
1168
+ case St.light:
1169
1169
  return "Light";
1170
1170
  default:
1171
1171
  return null;
@@ -1421,27 +1421,27 @@ const nm = {
1421
1421
  triggerAutoClickTimestamp: E,
1422
1422
  ..._
1423
1423
  }) => {
1424
- const [N, C] = O(!1), v = U(), I = U(null), A = l || d, R = `dc__no-shrink flex dc__fill-available-space ${nb({
1424
+ const [N, C] = O(!1), S = U(), I = U(null), A = l || d, R = `dc__no-shrink flex dc__fill-available-space ${nb({
1425
1425
  size: a,
1426
1426
  icon: p
1427
1427
  })}`;
1428
1428
  P(() => (E && setTimeout(() => {
1429
- C(!0), v.current = setTimeout(() => {
1429
+ C(!0), S.current = setTimeout(() => {
1430
1430
  I.current.click();
1431
1431
  }, 1495);
1432
1432
  }, 100), () => {
1433
- C(!1), clearTimeout(v.current);
1433
+ C(!1), clearTimeout(S.current);
1434
1434
  }), [E]);
1435
1435
  const b = (y) => {
1436
- C(!1), clearTimeout(v.current), _.onClick?.(y);
1437
- }, S = () => !u && h && p && f ? {
1436
+ C(!1), clearTimeout(S.current), _.onClick?.(y);
1437
+ }, v = () => !u && h && p && f ? {
1438
1438
  alwaysShowTippyOnHover: !0,
1439
1439
  content: f
1440
1440
  } : Object.hasOwn(m, "shortcutKeyCombo") && "shortcutKeyCombo" in m ? m : {
1441
1441
  alwaysShowTippyOnHover: u && !!m?.content,
1442
1442
  ...m
1443
1443
  };
1444
- return /* @__PURE__ */ t.jsx(Z, { ...S(), children: /* @__PURE__ */ t.jsx("div", { className: `dc__inline-block ${x ? "w-100" : ""}`, children: /* @__PURE__ */ t.jsxs(
1444
+ return /* @__PURE__ */ t.jsx(Z, { ...v(), children: /* @__PURE__ */ t.jsx("div", { className: `dc__inline-block ${x ? "w-100" : ""}`, children: /* @__PURE__ */ t.jsxs(
1445
1445
  ob,
1446
1446
  {
1447
1447
  ..._,
@@ -1831,8 +1831,8 @@ const i$ = async (e, s) => {
1831
1831
  signal: s
1832
1832
  }), r = Object.keys(a.variableSnapshot || {}).length > 0, o = Jt.parse(a.data), i = Jt.parse(a.resolvedData);
1833
1833
  return {
1834
- data: yt(o),
1835
- resolvedData: yt(i),
1834
+ data: jt(o),
1835
+ resolvedData: jt(i),
1836
1836
  areVariablesPresent: r
1837
1837
  };
1838
1838
  } catch (n) {
@@ -1861,10 +1861,10 @@ const i$ = async (e, s) => {
1861
1861
  return "-";
1862
1862
  }
1863
1863
  }, im = {
1864
- [Rt.PRECD]: "PRE",
1865
- [Rt.CD]: "DEPLOY",
1866
- [Rt.POSTCD]: "POST",
1867
- [Rt.APPROVAL]: "APPROVAL"
1864
+ [yt.PRECD]: "PRE",
1865
+ [yt.CD]: "DEPLOY",
1866
+ [yt.POSTCD]: "POST",
1867
+ [yt.APPROVAL]: "APPROVAL"
1868
1868
  }, Ab = (e) => {
1869
1869
  const s = e ? structuredClone(e) : {};
1870
1870
  return window._env_.TRIGGER_API_TIMEOUT && (s.timeout = window._env_.TRIGGER_API_TIMEOUT), s;
@@ -1905,7 +1905,7 @@ const i$ = async (e, s) => {
1905
1905
  isRollbackTrigger: d = !1,
1906
1906
  strategy: u
1907
1907
  }) => {
1908
- const m = i && (a === Rt.POSTCD || a === Rt.PRECD), p = {
1908
+ const m = i && (a === yt.POSTCD || a === yt.PRECD), p = {
1909
1909
  pipelineId: e,
1910
1910
  appId: n,
1911
1911
  ciArtifactId: s,
@@ -2129,7 +2129,7 @@ const Zc = (e) => ({
2129
2129
  )) })
2130
2130
  ] });
2131
2131
  };
2132
- var Db = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(Db || {}), k = /* @__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))(k || {}), Xt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Xt || {}), Ie = /* @__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))(Ie || {}), lm = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(lm || {}), ws = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(ws || {}), dm = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(dm || {}), mr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(mr || {}), aa = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(aa || {}), Qo = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(Qo || {}), ei = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(ei || {}), vt = /* @__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))(vt || {}), um = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(um || {});
2132
+ var Db = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(Db || {}), k = /* @__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))(k || {}), Xt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Xt || {}), Ie = /* @__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))(Ie || {}), lm = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(lm || {}), ws = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(ws || {}), dm = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(dm || {}), mr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(mr || {}), aa = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(aa || {}), Qo = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(Qo || {}), ei = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(ei || {}), It = /* @__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))(It || {}), um = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(um || {});
2133
2133
  const $s = {
2134
2134
  // Will not enforce any decimal specification on input field
2135
2135
  STEP: "any",
@@ -2672,7 +2672,7 @@ const rl = (e) => {
2672
2672
  selectProps: { isLoading: n }
2673
2673
  } = e;
2674
2674
  return /* @__PURE__ */ t.jsx(Ge.DropdownIndicator, { ...e, children: n ? /* @__PURE__ */ t.jsx(Ze, { fillColor: "var(--N500)" }) : /* @__PURE__ */ t.jsx(fs, { className: s ? "scn-3" : "scn-6" }) });
2675
- }, qb = (e) => /* @__PURE__ */ t.jsx(Ge.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(wt, { className: "icon-use-fill-n6" }) }), Xb = (e) => {
2675
+ }, qb = (e) => /* @__PURE__ */ t.jsx(Ge.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Dt, { className: "icon-use-fill-n6" }) }), Xb = (e) => {
2676
2676
  const {
2677
2677
  children: s,
2678
2678
  getValue: n,
@@ -2829,7 +2829,7 @@ const rl = (e) => {
2829
2829
  ),
2830
2830
  /* @__PURE__ */ t.jsx(Ge.MultiValueLabel, { ...s })
2831
2831
  ] });
2832
- }, sT = (e) => /* @__PURE__ */ t.jsx(Ge.MultiValueRemove, { ...e, children: /* @__PURE__ */ t.jsx("span", { className: "flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(wt, { className: "icon-dim-12 icon-use-fill-n6" }) }) }), nT = ({
2832
+ }, sT = (e) => /* @__PURE__ */ t.jsx(Ge.MultiValueRemove, { ...e, children: /* @__PURE__ */ t.jsx("span", { className: "flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(Dt, { className: "icon-dim-12 icon-use-fill-n6" }) }) }), nT = ({
2833
2833
  isGroupHeadingSelectable: e,
2834
2834
  ...s
2835
2835
  }) => {
@@ -3076,7 +3076,7 @@ const gm = (e) => ({
3076
3076
  artifactStatus: e.latest_wf_artifact_status,
3077
3077
  disableDefaultSelection: r
3078
3078
  }), i = ol(
3079
- s === Rt.CD || s === Rt.APPROVAL,
3079
+ s === yt.CD || s === yt.APPROVAL,
3080
3080
  e
3081
3081
  ), c = il(e), l = cl(e);
3082
3082
  return {
@@ -3234,15 +3234,15 @@ const IT = (e, s) => {
3234
3234
  }) => {
3235
3235
  const r = U(!1), o = U({}), i = U(/* @__PURE__ */ new Set()), c = U(-1), l = e ?? AT, d = Be(
3236
3236
  ({ keys: E, callback: _, description: N = "" }) => {
3237
- const { keys: C, id: v } = ka(E);
3237
+ const { keys: C, id: S } = ka(E);
3238
3238
  if (typeof _ != "function")
3239
3239
  throw new Error("callback provided is not a function");
3240
- const I = o.current[v] && Lu(o.current[v].keys, E) ? o.current[v] : null;
3240
+ const I = o.current[S] && Lu(o.current[S].keys, E) ? o.current[S] : null;
3241
3241
  if (I) {
3242
3242
  Ua(I.callbackStack), I.callbackStack.push(_);
3243
3243
  return;
3244
3244
  }
3245
- o.current[v] = { keys: C, callbackStack: [_], description: N };
3245
+ o.current[S] = { keys: C, callbackStack: [_], description: N };
3246
3246
  },
3247
3247
  []
3248
3248
  ), u = Be((E) => {
@@ -3358,12 +3358,12 @@ const IT = (e, s) => {
3358
3358
  redirectionMethod: a = "replace"
3359
3359
  } = {}) => {
3360
3360
  const r = xs(), o = Lr(), i = U(!1), l = (() => {
3361
- const S = new URLSearchParams(r.search);
3361
+ const v = new URLSearchParams(r.search);
3362
3362
  if (!i.current && n)
3363
3363
  if (r.search)
3364
3364
  dl(
3365
3365
  n,
3366
- JSON.stringify(s(S))
3366
+ JSON.stringify(s(v))
3367
3367
  );
3368
3368
  else {
3369
3369
  i.current = !0;
@@ -3376,11 +3376,11 @@ const IT = (e, s) => {
3376
3376
  localStorage.removeItem(n);
3377
3377
  }
3378
3378
  }
3379
- return S;
3380
- })(), d = (S) => s ? s(S) : {}, { pageSize: u, pageNumber: m, searchKey: p, sortBy: f, sortOrder: h, parsedParams: x } = X(() => {
3381
- const S = l.get(ul), y = l.get(po), T = l.get(ml), j = l.get(_l), M = l.get(pl) || e || "", D = Object.values(be).includes(j) ? j : be.ASC, B = d(l);
3379
+ return v;
3380
+ })(), d = (v) => s ? s(v) : {}, { pageSize: u, pageNumber: m, searchKey: p, sortBy: f, sortOrder: h, parsedParams: x } = X(() => {
3381
+ const v = l.get(ul), y = l.get(po), T = l.get(ml), j = l.get(_l), M = l.get(pl) || e || "", D = Object.values(be).includes(j) ? j : be.ASC, B = d(l);
3382
3382
  return {
3383
- pageSize: Number(S) || Zs,
3383
+ pageSize: Number(v) || Zs,
3384
3384
  pageNumber: Number(y) || hn,
3385
3385
  searchKey: T || "",
3386
3386
  sortBy: M,
@@ -3388,46 +3388,46 @@ const IT = (e, s) => {
3388
3388
  sortOrder: M ? D : "",
3389
3389
  parsedParams: B
3390
3390
  };
3391
- }, [l]), g = u * (m - 1), E = (S, y) => {
3392
- const T = { search: S };
3391
+ }, [l]), g = u * (m - 1), E = (v, y) => {
3392
+ const T = { search: v };
3393
3393
  (y.redirectionMethod ?? a) === "push" ? o.push(T) : o.replace(T);
3394
- }, _ = (S, y, T = {}) => {
3395
- l.set(S, String(y)), E(l.toString(), T);
3396
- }, N = (S = {}) => {
3394
+ }, _ = (v, y, T = {}) => {
3395
+ l.set(v, String(y)), E(l.toString(), T);
3396
+ }, N = (v = {}) => {
3397
3397
  if (m !== hn) {
3398
- _(po, hn, S);
3398
+ _(po, hn, v);
3399
3399
  return;
3400
3400
  }
3401
- E(l.toString(), S);
3401
+ E(l.toString(), v);
3402
3402
  };
3403
3403
  return {
3404
3404
  pageSize: u,
3405
- changePage: (S) => {
3406
- _(po, S);
3405
+ changePage: (v) => {
3406
+ _(po, v);
3407
3407
  },
3408
- changePageSize: (S) => {
3409
- _(ul, S), N();
3408
+ changePageSize: (v) => {
3409
+ _(ul, v), N();
3410
3410
  },
3411
3411
  searchKey: p,
3412
- handleSearch: (S) => {
3413
- _(ml, S), N();
3412
+ handleSearch: (v) => {
3413
+ _(ml, v), N();
3414
3414
  },
3415
3415
  offset: g,
3416
3416
  sortBy: f,
3417
3417
  sortOrder: h,
3418
- handleSorting: (S) => {
3418
+ handleSorting: (v) => {
3419
3419
  let y;
3420
- S === f && h === be.ASC ? y = be.DESC : y = be.ASC, _(pl, S), _(_l, y), N();
3420
+ v === f && h === be.ASC ? y = be.DESC : y = be.ASC, _(pl, v), _(_l, y), N();
3421
3421
  },
3422
3422
  clearFilters: () => {
3423
3423
  E("", {}), n && localStorage.removeItem(n);
3424
3424
  },
3425
3425
  ...x,
3426
- updateSearchParams: (S, y = {}) => {
3427
- Object.keys(S).forEach((T) => {
3428
- ku.includes(S[T]) ? l.delete(T) : Array.isArray(S[T]) ? (l.delete(T), S[T].forEach((j) => {
3426
+ updateSearchParams: (v, y = {}) => {
3427
+ Object.keys(v).forEach((T) => {
3428
+ ku.includes(v[T]) ? l.delete(T) : Array.isArray(v[T]) ? (l.delete(T), v[T].forEach((j) => {
3429
3429
  l.append(T, j);
3430
- })) : l.set(T, S[T]);
3430
+ })) : l.set(T, v[T]);
3431
3431
  }), dl(n, JSON.stringify(d(l))), N(y);
3432
3432
  },
3433
3433
  isFilterApplied: !!p || jT(x)
@@ -3608,12 +3608,12 @@ const fl = () => ({
3608
3608
  classNamePrefix: _,
3609
3609
  shouldRenderCustomOptions: N = !1,
3610
3610
  isSearchable: C,
3611
- selectRef: v,
3611
+ selectRef: S,
3612
3612
  shouldMenuAlignRight: I = !1,
3613
3613
  fullWidth: A = !1,
3614
3614
  customSelectedOptionsCount: R = null,
3615
3615
  menuListFooterConfig: b,
3616
- isCreatable: S = !1,
3616
+ isCreatable: v = !1,
3617
3617
  onCreateOption: y,
3618
3618
  closeMenuOnSelect: T = !1,
3619
3619
  shouldShowNoOptionsMessage: j = !0,
@@ -3630,7 +3630,7 @@ const fl = () => ({
3630
3630
  hideFormFieldInfo: V,
3631
3631
  ...Q
3632
3632
  }) => {
3633
- const fe = U(null), he = v ?? fe, [Ne, re] = O(!1), [_e, me] = O(""), {
3633
+ const fe = U(null), he = S ?? fe, [Ne, re] = O(!1), [_e, me] = O(""), {
3634
3634
  inputId: se,
3635
3635
  required: Y,
3636
3636
  isDisabled: xe,
@@ -3656,7 +3656,7 @@ const fl = () => ({
3656
3656
  [e, G, d, f, ut, I]
3657
3657
  ), Vs = (Oe) => {
3658
3658
  const Ss = Oe?.trim();
3659
- return S && !!Ss && !bn(
3659
+ return v && !!Ss && !bn(
3660
3660
  Ke,
3661
3661
  Ss,
3662
3662
  null,
@@ -3810,12 +3810,12 @@ const fl = () => ({
3810
3810
  i(!0);
3811
3811
  }, E = () => {
3812
3812
  d(), i(!1);
3813
- }, _ = (v) => {
3814
- l(), m(structuredClone(v));
3813
+ }, _ = (S) => {
3814
+ l(), m(structuredClone(S));
3815
3815
  }, N = () => {
3816
3816
  E(), m(structuredClone(e ?? []));
3817
- }, C = (v) => {
3818
- s(u), d(), !v || v.isTrusted ? E() : setTimeout(() => {
3817
+ }, C = (S) => {
3818
+ s(u), d(), !S || S.isTrusted ? E() : setTimeout(() => {
3819
3819
  r.current.focus();
3820
3820
  }, 100);
3821
3821
  };
@@ -3906,12 +3906,12 @@ const fl = () => ({
3906
3906
  }, E = (_) => {
3907
3907
  if (_.key === "Enter" && _.shiftKey) {
3908
3908
  _.preventDefault();
3909
- const { selectionStart: N, selectionEnd: C } = m.current.inputRef, v = `${d.slice(0, N)}
3909
+ const { selectionStart: N, selectionEnd: C } = m.current.inputRef, S = `${d.slice(0, N)}
3910
3910
  ${d.slice(C)}`;
3911
- u(v);
3911
+ u(S);
3912
3912
  const I = m.current.inputRef, A = I.selectionStart, b = I.value.substring(0, A).split(`
3913
- `), S = parseInt(getComputedStyle(I).lineHeight, 10), T = b.length * S - I.scrollTop;
3914
- T < 0 ? I.scrollTop += T : T > I.offsetHeight - S && (I.scrollTop += T - I.offsetHeight + S), setTimeout(() => {
3913
+ `), v = parseInt(getComputedStyle(I).lineHeight, 10), T = b.length * v - I.scrollTop;
3914
+ T < 0 ? I.scrollTop += T : T > I.offsetHeight - v && (I.scrollTop += T - I.offsetHeight + v), setTimeout(() => {
3915
3915
  m.current.inputRef.selectionStart = N + 1, m.current.inputRef.selectionEnd = N + 1;
3916
3916
  });
3917
3917
  return;
@@ -4169,12 +4169,12 @@ ${d.slice(C)}`;
4169
4169
  const {
4170
4170
  Icon: N,
4171
4171
  iconPath: C,
4172
- iconClass: v,
4172
+ iconClass: S,
4173
4173
  iconSize: I,
4174
4174
  onImageLoadError: A,
4175
4175
  heading: R,
4176
4176
  headingInfo: b,
4177
- infoTextHeading: S,
4177
+ infoTextHeading: v,
4178
4178
  hideHeading: y,
4179
4179
  infoText: T,
4180
4180
  showCloseButton: j,
@@ -4193,12 +4193,12 @@ ${d.slice(C)}`;
4193
4193
  C ? /* @__PURE__ */ t.jsx(
4194
4194
  "img",
4195
4195
  {
4196
- className: `icon-dim-${I || 20} mr-6 ${v || ""}`,
4196
+ className: `icon-dim-${I || 20} mr-6 ${S || ""}`,
4197
4197
  src: C,
4198
4198
  alt: "Heading",
4199
4199
  onError: A
4200
4200
  }
4201
- ) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${I || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${I || 20} ${v || ""}` }) }),
4201
+ ) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${I || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${I || 20} ${S || ""}` }) }),
4202
4202
  R && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: R }),
4203
4203
  b && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(Fr, { className: "icon-dim-20" }) }),
4204
4204
  j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
@@ -4221,11 +4221,11 @@ ${d.slice(C)}`;
4221
4221
  ]
4222
4222
  }
4223
4223
  ),
4224
- S && /* @__PURE__ */ t.jsx(
4224
+ v && /* @__PURE__ */ t.jsx(
4225
4225
  "div",
4226
4226
  {
4227
4227
  className: `dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
4228
- children: S
4228
+ children: v
4229
4229
  }
4230
4230
  ),
4231
4231
  T && /* @__PURE__ */ t.jsx(
@@ -4737,7 +4737,7 @@ const V$ = (e, s = !1) => {
4737
4737
  handleSuccessRedirection: n,
4738
4738
  canConfigureUseK8sDriver: a = !1
4739
4739
  }) => {
4740
- const r = !e, [o, i, c, l] = Ot(
4740
+ const r = !e, [o, i, c, l] = Lt(
4741
4741
  () => BT({
4742
4742
  name: e ?? Yr,
4743
4743
  fromCreateView: r,
@@ -4754,7 +4754,7 @@ const V$ = (e, s = !1) => {
4754
4754
  }, [i, o]);
4755
4755
  const x = (_) => {
4756
4756
  const N = Object.keys(_ || {}), C = Object.keys(i?.profile?.configurations || {});
4757
- return N.concat(C).reduce((v, I) => (v[I] = !0, v), {});
4757
+ return N.concat(C).reduce((S, I) => (S[I] = !0, S), {});
4758
4758
  };
4759
4759
  return {
4760
4760
  isLoading: o,
@@ -4764,39 +4764,39 @@ const V$ = (e, s = !1) => {
4764
4764
  profileInput: d,
4765
4765
  profileInputErrors: m,
4766
4766
  handleProfileInputChange: ({ action: _, data: N }) => {
4767
- const C = structuredClone(d), v = structuredClone(m), I = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", A = C.configurations[I], R = structuredClone(
4767
+ const C = structuredClone(d), S = structuredClone(m), I = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", A = C.configurations[I], R = structuredClone(
4768
4768
  i.profile.configurations[I] || A
4769
4769
  );
4770
4770
  switch (_) {
4771
4771
  case Xt.DESCRIPTION: {
4772
4772
  const { value: b } = N;
4773
- C.description = b, v[Xt.DESCRIPTION] = YT(b).message;
4773
+ C.description = b, S[Xt.DESCRIPTION] = YT(b).message;
4774
4774
  break;
4775
4775
  }
4776
4776
  case Xt.NAME: {
4777
4777
  const { value: b } = N;
4778
- C.name = b, v[Xt.NAME] = HT(b).message;
4778
+ C.name = b, S[Xt.NAME] = HT(b).message;
4779
4779
  break;
4780
4780
  }
4781
4781
  case k.CPU_LIMIT:
4782
4782
  case k.CPU_REQUEST:
4783
4783
  case k.MEMORY_LIMIT:
4784
4784
  case k.MEMORY_REQUEST: {
4785
- const { value: b, unit: S } = N;
4785
+ const { value: b, unit: v } = N;
4786
4786
  A[_] = {
4787
4787
  ...A[_],
4788
4788
  key: _,
4789
4789
  value: b,
4790
- unit: S
4790
+ unit: v
4791
4791
  };
4792
4792
  const { keyToPersist: y, keyToPersistConfigType: T } = kb[_], { request: j, limit: w } = XT({
4793
4793
  request: {
4794
4794
  value: b,
4795
- unit: S
4795
+ unit: v
4796
4796
  },
4797
4797
  limit: {
4798
4798
  value: b,
4799
- unit: S
4799
+ unit: v
4800
4800
  },
4801
4801
  [y]: {
4802
4802
  value: A[T].value,
@@ -4805,20 +4805,20 @@ const V$ = (e, s = !1) => {
4805
4805
  unitsMap: i.configurationUnits[_]
4806
4806
  });
4807
4807
  if (y === "limit") {
4808
- v[T] = w.message, v[_] = j.message;
4808
+ S[T] = w.message, S[_] = j.message;
4809
4809
  break;
4810
4810
  }
4811
- v[_] = w.message, v[T] = j.message;
4811
+ S[_] = w.message, S[T] = j.message;
4812
4812
  break;
4813
4813
  }
4814
4814
  case k.BUILD_TIMEOUT: {
4815
- const { value: b, unit: S } = N;
4815
+ const { value: b, unit: v } = N;
4816
4816
  A[_] = {
4817
4817
  ...A[_],
4818
4818
  key: _,
4819
4819
  value: b,
4820
- unit: S
4821
- }, v[_] = KT(b).message;
4820
+ unit: v
4821
+ }, S[_] = KT(b).message;
4822
4822
  break;
4823
4823
  }
4824
4824
  case "activate_tolerance":
@@ -4831,7 +4831,7 @@ const V$ = (e, s = !1) => {
4831
4831
  A[y] = {
4832
4832
  ...R[y],
4833
4833
  active: !0
4834
- }, v[y] = null;
4834
+ }, S[y] = null;
4835
4835
  });
4836
4836
  break;
4837
4837
  }
@@ -4846,7 +4846,7 @@ const V$ = (e, s = !1) => {
4846
4846
  ...A[y],
4847
4847
  ...R[y]?.defaultValue,
4848
4848
  active: !1
4849
- }, v[y] = null;
4849
+ }, S[y] = null;
4850
4850
  });
4851
4851
  break;
4852
4852
  }
@@ -4854,7 +4854,7 @@ const V$ = (e, s = !1) => {
4854
4854
  case "activate_cs":
4855
4855
  case "de_activate_cm":
4856
4856
  case "de_activate_cs": {
4857
- const { id: b, componentType: S } = N, y = nt[S], T = A[y].value, j = T.findIndex((M) => M.id === b);
4857
+ const { id: b, componentType: v } = N, y = nt[v], T = A[y].value, j = T.findIndex((M) => M.id === b);
4858
4858
  if (j === -1 || !T[j].canOverride) {
4859
4859
  const M = "Unable to customize this CM/CS";
4860
4860
  Me.showToast({
@@ -4869,24 +4869,24 @@ const V$ = (e, s = !1) => {
4869
4869
  T[j].useFormProps = D?.useFormProps, T[j].initialResponse = D?.initialResponse;
4870
4870
  } else
4871
4871
  T[j].useFormProps = T[j].defaultValue, T[j].initialResponse = T[j].defaultValueInitialResponse;
4872
- v[nt[S]] && (delete v[nt[S]][b], Object.keys(v[nt[S]]).length === 0 && (v[nt[S]] = null));
4872
+ S[nt[v]] && (delete S[nt[v]][b], Object.keys(S[nt[v]]).length === 0 && (S[nt[v]] = null));
4873
4873
  break;
4874
4874
  }
4875
- case vt.ADD_TARGET_PLATFORM: {
4875
+ case It.ADD_TARGET_PLATFORM: {
4876
4876
  const { handleCaptureSnapshot: b } = N;
4877
- v[aa.TARGET_PLATFORM] = I ? Nl(
4877
+ S[aa.TARGET_PLATFORM] = I ? Nl(
4878
4878
  I,
4879
4879
  x(C.configurations)
4880
4880
  ).message : "", C.configurations[I] = i.fallbackPlatformConfigurationMap[I] || // Here need to update target platform name for each configuration
4881
4881
  Object.entries(
4882
4882
  i.fallbackPlatformConfigurationMap[ps]
4883
- ).reduce((S, [y, T]) => (S[y] = {
4883
+ ).reduce((v, [y, T]) => (v[y] = {
4884
4884
  ...T,
4885
4885
  targetPlatform: I
4886
- }, S), {}), b(C);
4886
+ }, v), {}), b(C);
4887
4887
  break;
4888
4888
  }
4889
- case vt.REMOVE_TARGET_PLATFORM: {
4889
+ case It.REMOVE_TARGET_PLATFORM: {
4890
4890
  if (!C.configurations[I]) {
4891
4891
  Me.showToast({
4892
4892
  variant: Ce.error,
@@ -4894,14 +4894,14 @@ const V$ = (e, s = !1) => {
4894
4894
  }), qn(new Error("Platform does not exist"));
4895
4895
  return;
4896
4896
  }
4897
- delete C.configurations[I], Object.keys(v).forEach((b) => {
4898
- el[b] && (v[b] = null);
4897
+ delete C.configurations[I], Object.keys(S).forEach((b) => {
4898
+ el[b] && (S[b] = null);
4899
4899
  });
4900
4900
  break;
4901
4901
  }
4902
- case vt.RENAME_TARGET_PLATFORM: {
4903
- const { originalPlatformName: b, newPlatformName: S, configSnapshot: y } = N, T = C.configurations[b];
4904
- if (b === S)
4902
+ case It.RENAME_TARGET_PLATFORM: {
4903
+ const { originalPlatformName: b, newPlatformName: v, configSnapshot: y } = N, T = C.configurations[b];
4904
+ if (b === v)
4905
4905
  return;
4906
4906
  if (!T) {
4907
4907
  Me.showToast({
@@ -4910,13 +4910,13 @@ const V$ = (e, s = !1) => {
4910
4910
  });
4911
4911
  return;
4912
4912
  }
4913
- v[aa.TARGET_PLATFORM] = Nl(
4914
- S,
4913
+ S[aa.TARGET_PLATFORM] = Nl(
4914
+ v,
4915
4915
  x(C.configurations)
4916
4916
  ).message;
4917
- const j = i.fallbackPlatformConfigurationMap[S] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
4917
+ const j = i.fallbackPlatformConfigurationMap[v] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
4918
4918
  i.fallbackPlatformConfigurationMap[ps];
4919
- if (C.configurations[S] = Object.entries(
4919
+ if (C.configurations[v] = Object.entries(
4920
4920
  T
4921
4921
  ).reduce(
4922
4922
  (w, [M, D]) => {
@@ -4924,7 +4924,7 @@ const V$ = (e, s = !1) => {
4924
4924
  return w[M] = {
4925
4925
  ...D,
4926
4926
  ...q,
4927
- targetPlatform: S,
4927
+ targetPlatform: v,
4928
4928
  defaultValue: B
4929
4929
  }, w;
4930
4930
  },
@@ -4936,50 +4936,50 @@ const V$ = (e, s = !1) => {
4936
4936
  delete C.configurations[b];
4937
4937
  break;
4938
4938
  }
4939
- case vt.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
4939
+ case It.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
4940
4940
  const { configSnapshot: b } = N;
4941
- C.configurations = b, Object.keys(v).forEach((S) => {
4942
- el[S] && (v[S] = null);
4941
+ C.configurations = b, Object.keys(S).forEach((v) => {
4942
+ el[v] && (S[v] = null);
4943
4943
  });
4944
4944
  break;
4945
4945
  }
4946
- case vt.ADD_NODE_SELECTOR_ITEM: {
4946
+ case It.ADD_NODE_SELECTOR_ITEM: {
4947
4947
  if (A[k.NODE_SELECTOR].key !== k.NODE_SELECTOR)
4948
4948
  break;
4949
- const S = {
4949
+ const v = {
4950
4950
  id: Gt(),
4951
4951
  key: "",
4952
4952
  value: ""
4953
4953
  };
4954
- A[k.NODE_SELECTOR].value.unshift(S);
4954
+ A[k.NODE_SELECTOR].value.unshift(v);
4955
4955
  break;
4956
4956
  }
4957
- case vt.DELETE_NODE_SELECTOR_ITEM: {
4957
+ case It.DELETE_NODE_SELECTOR_ITEM: {
4958
4958
  if (A[k.NODE_SELECTOR].key !== k.NODE_SELECTOR)
4959
4959
  break;
4960
4960
  const { id: b } = N;
4961
- A[k.NODE_SELECTOR].value = A[k.NODE_SELECTOR].value.filter((y) => y.id !== b), delete v[k.NODE_SELECTOR]?.[b], Object.keys(v[k.NODE_SELECTOR] || {}).length === 0 && (v[k.NODE_SELECTOR] = null);
4962
- const S = A[k.NODE_SELECTOR].value.map(
4961
+ A[k.NODE_SELECTOR].value = A[k.NODE_SELECTOR].value.filter((y) => y.id !== b), delete S[k.NODE_SELECTOR]?.[b], Object.keys(S[k.NODE_SELECTOR] || {}).length === 0 && (S[k.NODE_SELECTOR] = null);
4962
+ const v = A[k.NODE_SELECTOR].value.map(
4963
4963
  (y) => y.key
4964
4964
  );
4965
4965
  A[k.NODE_SELECTOR].value.forEach((y) => {
4966
4966
  Cl({
4967
4967
  selector: y,
4968
- existingKeys: S,
4969
- profileInputErrors: v
4968
+ existingKeys: v,
4969
+ profileInputErrors: S
4970
4970
  });
4971
4971
  });
4972
4972
  break;
4973
4973
  }
4974
- case vt.EDIT_NODE_SELECTOR_ITEM: {
4974
+ case It.EDIT_NODE_SELECTOR_ITEM: {
4975
4975
  if (A[k.NODE_SELECTOR].key !== k.NODE_SELECTOR)
4976
4976
  break;
4977
- const { id: b, key: S, value: y } = N, T = A[k.NODE_SELECTOR].value.find(
4977
+ const { id: b, key: v, value: y } = N, T = A[k.NODE_SELECTOR].value.find(
4978
4978
  (w) => w.id === b
4979
4979
  );
4980
- T ? (T.key = S, T.value = y) : A[k.NODE_SELECTOR].value.unshift({
4980
+ T ? (T.key = v, T.value = y) : A[k.NODE_SELECTOR].value.unshift({
4981
4981
  id: b,
4982
- key: S,
4982
+ key: v,
4983
4983
  value: y
4984
4984
  });
4985
4985
  const j = A[k.NODE_SELECTOR].value.map(
@@ -4989,56 +4989,56 @@ const V$ = (e, s = !1) => {
4989
4989
  Cl({
4990
4990
  selector: w,
4991
4991
  existingKeys: j,
4992
- profileInputErrors: v
4992
+ profileInputErrors: S
4993
4993
  });
4994
4994
  });
4995
4995
  break;
4996
4996
  }
4997
- case vt.ADD_TOLERANCE_ITEM: {
4997
+ case It.ADD_TOLERANCE_ITEM: {
4998
4998
  if (A[k.TOLERANCE].key !== k.TOLERANCE)
4999
4999
  break;
5000
- const S = {
5000
+ const v = {
5001
5001
  id: Gt(),
5002
5002
  key: "",
5003
5003
  effect: Ub,
5004
5004
  operator: $b,
5005
5005
  value: ""
5006
5006
  };
5007
- A[k.TOLERANCE].value.unshift(S);
5007
+ A[k.TOLERANCE].value.unshift(v);
5008
5008
  break;
5009
5009
  }
5010
- case vt.DELETE_TOLERANCE_ITEM: {
5010
+ case It.DELETE_TOLERANCE_ITEM: {
5011
5011
  if (A[k.TOLERANCE].key !== k.TOLERANCE)
5012
5012
  break;
5013
5013
  const { id: b } = N;
5014
- A[k.TOLERANCE].value = A[k.TOLERANCE].value.filter((S) => S.id !== b), delete v[k.TOLERANCE]?.[b], Object.keys(v[k.TOLERANCE] || {}).length === 0 && (v[k.TOLERANCE] = null);
5014
+ A[k.TOLERANCE].value = A[k.TOLERANCE].value.filter((v) => v.id !== b), delete S[k.TOLERANCE]?.[b], Object.keys(S[k.TOLERANCE] || {}).length === 0 && (S[k.TOLERANCE] = null);
5015
5015
  break;
5016
5016
  }
5017
- case vt.EDIT_TOLERANCE_ITEM: {
5017
+ case It.EDIT_TOLERANCE_ITEM: {
5018
5018
  if (A[k.TOLERANCE].key !== k.TOLERANCE)
5019
5019
  break;
5020
- const { id: b, key: S, effect: y, operator: T, value: j } = N, w = A[k.TOLERANCE].value.find(
5020
+ const { id: b, key: v, effect: y, operator: T, value: j } = N, w = A[k.TOLERANCE].value.find(
5021
5021
  (W) => W.id === b
5022
5022
  );
5023
- w ? (w.key = S, w.effect = y, w.operator = T, w.value = j, T === ws.EXISTS && delete w.value) : A[k.TOLERANCE].value.unshift({
5023
+ w ? (w.key = v, w.effect = y, w.operator = T, w.value = j, T === ws.EXISTS && delete w.value) : A[k.TOLERANCE].value.unshift({
5024
5024
  id: b,
5025
- key: S,
5025
+ key: v,
5026
5026
  effect: y,
5027
5027
  operator: T,
5028
5028
  value: j
5029
5029
  });
5030
- const M = Xi(S).messages, D = T !== ws.EXISTS ? Am(j).messages : [], q = !(T === ws.EXISTS ? !S : !S && !j) && (M.length > 0 || D.length > 0);
5031
- v[k.TOLERANCE]?.[b] || (v[k.TOLERANCE] || (v[k.TOLERANCE] = {}), v[k.TOLERANCE][b] = {}), v[k.TOLERANCE][b] = {
5030
+ const M = Xi(v).messages, D = T !== ws.EXISTS ? Am(j).messages : [], q = !(T === ws.EXISTS ? !v : !v && !j) && (M.length > 0 || D.length > 0);
5031
+ S[k.TOLERANCE]?.[b] || (S[k.TOLERANCE] || (S[k.TOLERANCE] = {}), S[k.TOLERANCE][b] = {}), S[k.TOLERANCE][b] = {
5032
5032
  ...M.length > 0 && { [ei.KEY]: M },
5033
5033
  ...D.length > 0 && { [ei.VALUE]: D }
5034
- }, q || (delete v[k.TOLERANCE][b], Object.keys(v[k.TOLERANCE]).length === 0 && (v[k.TOLERANCE] = null));
5034
+ }, q || (delete S[k.TOLERANCE][b], Object.keys(S[k.TOLERANCE]).length === 0 && (S[k.TOLERANCE] = null));
5035
5035
  break;
5036
5036
  }
5037
- case vt.ADD_CM_CS_ITEM: {
5038
- const { id: b, infraConfigType: S } = N, T = {
5037
+ case It.ADD_CM_CS_ITEM: {
5038
+ const { id: b, infraConfigType: v } = N, T = {
5039
5039
  useFormProps: Ec({
5040
5040
  configMapSecretData: null,
5041
- componentType: pm[S],
5041
+ componentType: pm[v],
5042
5042
  cmSecretStateLabel: Gr.BASE,
5043
5043
  isJob: !0,
5044
5044
  fallbackMergeStrategy: null
@@ -5050,11 +5050,11 @@ const V$ = (e, s = !1) => {
5050
5050
  defaultValue: null,
5051
5051
  defaultValueInitialResponse: null
5052
5052
  };
5053
- A[S].value.push(T);
5053
+ A[v].value.push(T);
5054
5054
  break;
5055
5055
  }
5056
- case vt.SYNC_CM_CS_ITEM: {
5057
- const { id: b, value: S, hasError: y, componentType: T } = N, j = A[nt[T]].value.findIndex((M) => M.id === b);
5056
+ case It.SYNC_CM_CS_ITEM: {
5057
+ const { id: b, value: v, hasError: y, componentType: T } = N, j = A[nt[T]].value.findIndex((M) => M.id === b);
5058
5058
  if (j === -1) {
5059
5059
  Me.showToast({
5060
5060
  variant: Ce.error,
@@ -5062,18 +5062,18 @@ const V$ = (e, s = !1) => {
5062
5062
  }), qn(new Error("ConfigMap does not exist"));
5063
5063
  return;
5064
5064
  }
5065
- A[nt[T]].value[j].useFormProps = S, v[nt[T]] || (v[nt[T]] = {}), y ? v[nt[T]][b] = !0 : v[nt[T]][b] && delete v[nt[T]][b], Object.keys(
5066
- v[nt[T]]
5067
- ).length === 0 && (v[nt[T]] = null);
5065
+ A[nt[T]].value[j].useFormProps = v, S[nt[T]] || (S[nt[T]] = {}), y ? S[nt[T]][b] = !0 : S[nt[T]][b] && delete S[nt[T]][b], Object.keys(
5066
+ S[nt[T]]
5067
+ ).length === 0 && (S[nt[T]] = null);
5068
5068
  break;
5069
5069
  }
5070
- case vt.DELETE_CM_CS_ITEM: {
5071
- const { id: b, componentType: S } = N, y = A[nt[S]].value.filter((T) => T.id !== b);
5072
- A[nt[S]].value = y, v[nt[S]] && (delete v[nt[S]][b], Object.keys(v[nt[S]]).length === 0 && (v[nt[S]] = null));
5070
+ case It.DELETE_CM_CS_ITEM: {
5071
+ const { id: b, componentType: v } = N, y = A[nt[v]].value.filter((T) => T.id !== b);
5072
+ A[nt[v]].value = y, S[nt[v]] && (delete S[nt[v]][b], Object.keys(S[nt[v]]).length === 0 && (S[nt[v]] = null));
5073
5073
  break;
5074
5074
  }
5075
5075
  }
5076
- u(C), p(v);
5076
+ u(C), p(S);
5077
5077
  },
5078
5078
  loadingActionRequest: f,
5079
5079
  handleSubmit: async (_) => {
@@ -5923,7 +5923,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
5923
5923
  return r && typeof r == "object" ? s[a] = Zi(r) : s[a] = r, s;
5924
5924
  }, {}), Lm = (e, s) => {
5925
5925
  const n = Zi(s), r = e === es.WEBHOOK || n?.webhookdata?.id !== 0 ? n.webhookdata : {}, o = Ve(r.data.date, "YYYY-MM-DDTHH:mm:ssZ");
5926
- return o.isValid() ? o.format(jt.TWELVE_HOURS_FORMAT) : r.data.date;
5926
+ return o.isValid() ? o.format(Ot.TWELVE_HOURS_FORMAT) : r.data.date;
5927
5927
  }, Gt = (e) => v_(e), NF = (e, s = "") => ({ pathname: n }) => e === n || s || kC, Kr = (e) => {
5928
5928
  if (!e?.length)
5929
5929
  return [];
@@ -6290,7 +6290,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6290
6290
  labelTooltipConfig: _,
6291
6291
  inputRef: N,
6292
6292
  hideFormFieldInfo: C,
6293
- ...v
6293
+ ...S
6294
6294
  }) => {
6295
6295
  const I = U(null), A = N || I;
6296
6296
  P(() => {
@@ -6301,13 +6301,13 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6301
6301
  const R = (y) => {
6302
6302
  if (d) {
6303
6303
  const T = y.target.value?.trim();
6304
- y.target.value !== T && (y.stopPropagation(), y.target.value = T, v.onChange(y));
6304
+ y.target.value !== T && (y.stopPropagation(), y.target.value = T, S.onChange(y));
6305
6305
  }
6306
6306
  l?.(y);
6307
6307
  }, b = (y) => {
6308
6308
  y.stopPropagation(), A.current.focus(), g?.onClick(y);
6309
- }, S = (y) => {
6310
- y.key === "Escape" && A.current.blur(), v.onKeyDown?.(y);
6309
+ }, v = (y) => {
6310
+ y.key === "Escape" && A.current.blur(), S.onKeyDown?.(y);
6311
6311
  };
6312
6312
  return /* @__PURE__ */ t.jsx(
6313
6313
  zi,
@@ -6330,7 +6330,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6330
6330
  /* @__PURE__ */ t.jsx(
6331
6331
  "input",
6332
6332
  {
6333
- ...v,
6333
+ ...S,
6334
6334
  ...Wi({
6335
6335
  inputId: e,
6336
6336
  required: c,
@@ -6346,7 +6346,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6346
6346
  "data-testid": e,
6347
6347
  required: c,
6348
6348
  onBlur: R,
6349
- onKeyDown: S,
6349
+ onKeyDown: v,
6350
6350
  type: h,
6351
6351
  ref: A,
6352
6352
  className: `${cs[u]} ${Wu[u]} ${Wr({ borderConfig: p, borderRadiusConfig: f })} ${g ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
@@ -6480,10 +6480,10 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6480
6480
  }) => {
6481
6481
  const [c, l] = O(!1), [d, u] = O(s), [m, p] = O(n), [f, h] = O(null), x = a === "auto", g = U(null), E = U(null), _ = U(null), N = (b) => {
6482
6482
  l(b), r?.(b);
6483
- }, C = () => N(!c), v = () => N(!1), I = (b) => {
6484
- !c && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), N(!0)), i?.(b, c, v);
6485
- }, A = (b) => o?.(b, c, v), R = (b) => {
6486
- E.current?.contains(b.target) || v();
6483
+ }, C = () => N(!c), S = () => N(!1), I = (b) => {
6484
+ !c && (b.key === "Enter" || b.key === " ") && (b.preventDefault(), N(!0)), i?.(b, c, S);
6485
+ }, A = (b) => o?.(b, c, S), R = (b) => {
6486
+ E.current?.contains(b.target) || S();
6487
6487
  };
6488
6488
  return Rf(() => {
6489
6489
  if (!c || !g.current || !E.current || !_.current)
@@ -6503,13 +6503,13 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6503
6503
  });
6504
6504
  };
6505
6505
  b();
6506
- const S = (y) => {
6506
+ const v = (y) => {
6507
6507
  y.stopPropagation();
6508
6508
  const T = _.current.scrollTop === 0 && y.deltaY < 0, j = _.current.scrollHeight - _.current.clientHeight === _.current.scrollTop && y.deltaY > 0;
6509
6509
  (T || j) && y.preventDefault();
6510
6510
  };
6511
- return _.current.addEventListener("wheel", S, { passive: !1 }), window.addEventListener("resize", b), () => {
6512
- _.current.removeEventListener("wheel", S), window.removeEventListener("resize", b);
6511
+ return _.current.addEventListener("wheel", v, { passive: !1 }), window.addEventListener("resize", b), () => {
6512
+ _.current.removeEventListener("wheel", v), window.removeEventListener("resize", b);
6513
6513
  };
6514
6514
  }, [c, s, n]), {
6515
6515
  open: c,
@@ -6543,7 +6543,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6543
6543
  transition: { duration: 0.2 }
6544
6544
  },
6545
6545
  scrollableRef: _,
6546
- closePopover: v
6546
+ closePopover: S
6547
6547
  };
6548
6548
  }, BS = ({ count: e, isApprox: s, isSelected: n }) => /* @__PURE__ */ t.jsxs(
6549
6549
  "div",
@@ -6746,11 +6746,11 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6746
6746
  n && R && R.scrollIntoView({ block: "nearest", behavior: "smooth" });
6747
6747
  }, g = p === "negative", E = (R) => {
6748
6748
  a(e, R);
6749
- }, _ = ({ type: R, config: b }) => (S) => {
6750
- R === "switch" && (S.stopPropagation(), b.onChange(S));
6751
- }, N = ({ type: R, config: b }) => (S) => {
6752
- S.stopPropagation(), R === "button" && b.onClick && b.onClick(S);
6753
- }, C = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(H, { ...R, color: R.color || (g ? "R500" : "N800") }) }), v = () => {
6749
+ }, _ = ({ type: R, config: b }) => (v) => {
6750
+ R === "switch" && (v.stopPropagation(), b.onChange(v));
6751
+ }, N = ({ type: R, config: b }) => (v) => {
6752
+ v.stopPropagation(), R === "button" && b.onClick && b.onClick(v);
6753
+ }, C = (R) => R && /* @__PURE__ */ t.jsx("span", { className: "mt-2 flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(H, { ...R, color: R.color || (g ? "R500" : "N800") }) }), S = () => {
6754
6754
  if (!u)
6755
6755
  return null;
6756
6756
  const { type: R, config: b } = u;
@@ -6758,9 +6758,9 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6758
6758
  case "icon":
6759
6759
  return C(b);
6760
6760
  case "text": {
6761
- const { value: S, icon: y } = b;
6761
+ const { value: v, icon: y } = b;
6762
6762
  return /* @__PURE__ */ t.jsxs("span", { className: "flex dc__gap-2 mt-2", children: [
6763
- /* @__PURE__ */ t.jsx("span", { className: "fs-12 lh-1-5 fw-4 cn-7", children: S }),
6763
+ /* @__PURE__ */ t.jsx("span", { className: "fs-12 lh-1-5 fw-4 cn-7", children: v }),
6764
6764
  y && /* @__PURE__ */ t.jsx(H, { name: y.name, color: y.color || (g ? "R500" : "N700") })
6765
6765
  ] });
6766
6766
  }
@@ -6800,7 +6800,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6800
6800
  }
6801
6801
  ) : c)
6802
6802
  ] }),
6803
- v()
6803
+ S()
6804
6804
  ] }), A = () => {
6805
6805
  switch (h) {
6806
6806
  case "anchor":
@@ -6887,17 +6887,17 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6887
6887
  const h = (R) => {
6888
6888
  u(R.target.value);
6889
6889
  }, x = (R, b) => {
6890
- let S = R;
6890
+ let v = R;
6891
6891
  const y = p.length;
6892
6892
  for (let T = 0; T < y; T++)
6893
- if (S = (S + b + y) % y, !p[S]?.option?.isDisabled)
6894
- return S;
6893
+ if (v = (v + b + y) % y, !p[v]?.option?.isDisabled)
6894
+ return v;
6895
6895
  return R;
6896
- }, g = (R, b, S) => {
6896
+ }, g = (R, b, v) => {
6897
6897
  if (R.stopPropagation(), b)
6898
6898
  switch (R.key) {
6899
6899
  case "Escape":
6900
- R.preventDefault(), S();
6900
+ R.preventDefault(), v();
6901
6901
  break;
6902
6902
  case "ArrowDown":
6903
6903
  R.preventDefault(), l((y) => x(y, 1));
@@ -6913,9 +6913,9 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6913
6913
  break;
6914
6914
  }
6915
6915
  }
6916
- }, E = (R, b, S) => {
6917
- !b && (R.key === "Enter" || R.key === " ") && l(0), g(R, b, S);
6918
- }, { open: _, closePopover: N, overlayProps: C, popoverProps: v, triggerProps: I, scrollableRef: A } = Dm({
6916
+ }, E = (R, b, v) => {
6917
+ !b && (R.key === "Enter" || R.key === " ") && l(0), g(R, b, v);
6918
+ }, { open: _, closePopover: N, overlayProps: C, popoverProps: S, triggerProps: I, scrollableRef: A } = Dm({
6919
6919
  id: e,
6920
6920
  position: s,
6921
6921
  alignment: n,
@@ -6934,7 +6934,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6934
6934
  itemsRef: f,
6935
6935
  triggerProps: I,
6936
6936
  overlayProps: C,
6937
- popoverProps: v,
6937
+ popoverProps: S,
6938
6938
  setFocusedIndex: l,
6939
6939
  closePopover: N,
6940
6940
  searchTerm: d,
@@ -6965,7 +6965,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6965
6965
  focusedIndex: _,
6966
6966
  searchTerm: N,
6967
6967
  handleSearch: C,
6968
- itemsRef: v,
6968
+ itemsRef: S,
6969
6969
  setFocusedIndex: I,
6970
6970
  closePopover: A,
6971
6971
  scrollableRef: R
@@ -6977,7 +6977,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
6977
6977
  width: o,
6978
6978
  isSearchable: i,
6979
6979
  onOpen: u
6980
- }), b = (y) => () => I(y), S = (y, T) => {
6980
+ }), b = (y) => () => I(y), v = (y, T) => {
6981
6981
  n(y, T), A();
6982
6982
  };
6983
6983
  return /* @__PURE__ */ t.jsx(
@@ -7029,10 +7029,10 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7029
7029
  cv,
7030
7030
  {
7031
7031
  item: j,
7032
- itemRef: v.current[M],
7032
+ itemRef: S.current[M],
7033
7033
  isFocused: M === _,
7034
7034
  onMouseEnter: b(M),
7035
- onClick: S,
7035
+ onClick: v,
7036
7036
  disableDescriptionEllipsis: c
7037
7037
  },
7038
7038
  `${j.label}-${j.id}`
@@ -7312,11 +7312,11 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7312
7312
  const s = U(e?.initialValues || {}), [n, a] = O(s.current), [r, o] = O({}), [i, c] = O({}), [l, d] = O({}), [u, m] = O({}), p = (I = n) => e?.validations ? typeof e.validations == "function" ? e.validations(I) : e.validations : {}, f = (I) => {
7313
7313
  const A = p(I), R = {};
7314
7314
  return Object.keys(A || {}).forEach((b) => {
7315
- const S = A[b], y = cn(I[b], S);
7315
+ const v = A[b], y = cn(I[b], v);
7316
7316
  y && (R[b] = y);
7317
7317
  }), R;
7318
7318
  }, h = (I, A) => (R) => {
7319
- R?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((S, y) => ({ ...S, [y]: !0 }), {}));
7319
+ R?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((v, y) => ({ ...v, [y]: !0 }), {}));
7320
7320
  const b = f(n);
7321
7321
  if (Object.keys(b).length) {
7322
7322
  d(b), A?.(b, R);
@@ -7328,7 +7328,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7328
7328
  e?.shouldValidateOnMount && h(Ue)();
7329
7329
  }, []);
7330
7330
  const x = (I, A, R) => (b) => {
7331
- const S = R ? b : b.target.value, y = A ? A(S) : S;
7331
+ const v = R ? b : b.target.value, y = A ? A(v) : v;
7332
7332
  a((j) => {
7333
7333
  const w = { ...j, [I]: y }, M = e?.validationMode ?? "onChange";
7334
7334
  if (M === "onChange" || M === "all" || u[I] || l[I]) {
@@ -7341,8 +7341,8 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7341
7341
  o((j) => ({ ...j, [I]: !Xn(T[I], y) }));
7342
7342
  }, g = (I, A) => () => {
7343
7343
  if (A || a({ ...n, [I]: n[I]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
7344
- const b = p(), S = cn(n[I], b[I]);
7345
- S && !u[I] && m({ ...u, [I]: !0 }), d({ ...l, [I]: S });
7344
+ const b = p(), v = cn(n[I], b[I]);
7345
+ v && !u[I] && m({ ...u, [I]: !0 }), d({ ...l, [I]: v });
7346
7346
  }
7347
7347
  }, E = (I) => () => {
7348
7348
  c((A) => ({ ...A, [I]: !0 }));
@@ -7362,10 +7362,10 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7362
7362
  trigger: (I) => {
7363
7363
  const A = p();
7364
7364
  if (Array.isArray(I)) {
7365
- const R = {}, b = I.map((S) => {
7365
+ const R = {}, b = I.map((v) => {
7366
7366
  if (A) {
7367
- const y = A[S], T = cn(n[S], y);
7368
- return R[S] = T, T;
7367
+ const y = A[v], T = cn(n[v], y);
7368
+ return R[v] = T, T;
7369
7369
  }
7370
7370
  return null;
7371
7371
  });
@@ -7379,12 +7379,12 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7379
7379
  },
7380
7380
  setValue: (I, A, R) => {
7381
7381
  if (a((b) => ({ ...b, [I]: A })), R?.triggerError) {
7382
- const S = p({ ...n, [I]: A })[I], y = cn(A, S);
7382
+ const v = p({ ...n, [I]: A })[I], y = cn(A, v);
7383
7383
  d((T) => ({ ...T, [I]: y }));
7384
7384
  }
7385
7385
  if (R?.shouldDirty) {
7386
7386
  const b = s.current;
7387
- o((S) => ({ ...S, [I]: !Xn(b[I], A) }));
7387
+ o((v) => ({ ...v, [I]: !Xn(b[I], A) }));
7388
7388
  }
7389
7389
  R?.shouldTouch && c((b) => ({ ...b, [I]: !0 }));
7390
7390
  },
@@ -7392,7 +7392,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7392
7392
  const {
7393
7393
  keepDirty: R = !1,
7394
7394
  keepTouched: b = !1,
7395
- keepErrors: S = !1,
7395
+ keepErrors: v = !1,
7396
7396
  triggerDirty: y = !1,
7397
7397
  triggerError: T = !1,
7398
7398
  keepInitialValues: j = !1,
@@ -7401,7 +7401,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7401
7401
  if (a(I), Object.keys(w).length ? s.current = w : j || (s.current = I), T) {
7402
7402
  const M = f(I);
7403
7403
  d(M);
7404
- } else S || d({});
7404
+ } else v || d({});
7405
7405
  if (y) {
7406
7406
  const M = s.current, D = Object.keys(I).reduce(
7407
7407
  (B, q) => ({
@@ -7483,7 +7483,7 @@ const CS = (e, s = !1) => s ? btoa(e) : atob(e), ni = (e, s = !1) => Object.keys
7483
7483
  ), yF = ({
7484
7484
  resourcesToFetch: e
7485
7485
  }) => {
7486
- const s = X(() => Iv(e), [e]), [n, a, r, o] = Ot(
7486
+ const s = X(() => Iv(e), [e]), [n, a, r, o] = Lt(
7487
7487
  () => Promise.all([
7488
7488
  s[qe.devtronApplication] ? bv() : null,
7489
7489
  s[qe.project] ? Tv() : null,
@@ -8203,8 +8203,8 @@ const Gv = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8203
8203
  }) => {
8204
8204
  const { isSuperAdmin: g } = Em(), { handleDownload: E } = Cv({
8205
8205
  shouldOpenInNewTab: !0
8206
- }), { triggerId: _, buildId: N } = Lt(), C = e.toLowerCase();
8207
- async function v() {
8206
+ }), { triggerId: _, buildId: N } = wt(), C = e.toLowerCase();
8207
+ async function S() {
8208
8208
  await E({
8209
8209
  downloadUrl: r,
8210
8210
  fileName: `${N || _}.zip`
@@ -8265,7 +8265,7 @@ const Gv = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8265
8265
  "button",
8266
8266
  {
8267
8267
  type: "button",
8268
- onClick: v,
8268
+ onClick: S,
8269
8269
  className: "anchor p-0 cb-5 fs-12 flex left pointer",
8270
8270
  children: [
8271
8271
  "Download",
@@ -8550,7 +8550,7 @@ const iI = (e, s) => {
8550
8550
  case gn.SUCCESS:
8551
8551
  return /* @__PURE__ */ t.jsx(_a, { className: "dc__no-shrink icon-dim-16 scg-5" });
8552
8552
  case gn.FAILURE:
8553
- return /* @__PURE__ */ t.jsx(wt, { className: "dc__no-shrink icon-dim-16 fcr-5" });
8553
+ return /* @__PURE__ */ t.jsx(Dt, { className: "dc__no-shrink icon-dim-16 fcr-5" });
8554
8554
  default:
8555
8555
  return /* @__PURE__ */ t.jsx(uh, { className: "dc__no-shrink icon-dim-16 ic-in-progress-orange" });
8556
8556
  }
@@ -8600,7 +8600,7 @@ const iI = (e, s) => {
8600
8600
  }, gI = (e) => {
8601
8601
  const s = nc(e);
8602
8602
  return s ? s.finishedOn ? !hr[s.currentStatus] && hr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(H, { name: "ic-warning", size: 20, color: null }) : Vm(s.workerDetails.status) : /* @__PURE__ */ t.jsx(H, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx(H, { name: "ic-help-outline", size: 20, color: "N500" });
8603
- }, EI = (e = Xr, s = qv) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gm = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === tn.WAITING_TO_START ? "Waiting to start" : e : null, Zr = (e) => Ds(e) ? Ve(e, "YYYY-MM-DDTHH:mm:ssZ").format(jt.TWELVE_HOURS_FORMAT) : "", xI = (e) => (e || []).reduce(
8603
+ }, EI = (e = Xr, s = qv) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gm = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === tn.WAITING_TO_START ? "Waiting to start" : e : null, Zr = (e) => Ds(e) ? Ve(e, "YYYY-MM-DDTHH:mm:ssZ").format(Ot.TWELVE_HOURS_FORMAT) : "", xI = (e) => (e || []).reduce(
8604
8604
  (s, n) => {
8605
8605
  const a = n.health?.status?.toLowerCase() ?? "";
8606
8606
  switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
@@ -8704,7 +8704,7 @@ const iI = (e, s) => {
8704
8704
  return "bcn-1 cn-9";
8705
8705
  }
8706
8706
  }, TI = (e, s) => [
8707
- ...e.stage === "DEPLOY" && s !== Mt.HELM ? [
8707
+ ...e.stage === "DEPLOY" && s !== Tt.HELM ? [
8708
8708
  {
8709
8709
  id: "deployment-history-steps-link",
8710
8710
  label: "Steps",
@@ -8800,13 +8800,13 @@ const iI = (e, s) => {
8800
8800
  /* @__PURE__ */ t.jsx("p", { children: c || "Not set" })
8801
8801
  ] })
8802
8802
  ] });
8803
- function v() {
8803
+ function S() {
8804
8804
  if (!d)
8805
8805
  return;
8806
8806
  g(!0), _(!1);
8807
8807
  const A = JSON.parse(s), R = A.eventId, b = A.condition;
8808
- ll(R).then((S) => {
8809
- const y = S.result;
8808
+ ll(R).then((v) => {
8809
+ const y = v.result;
8810
8810
  p(y.name), h(wl(y.name, b, y.selectors)), g(!1);
8811
8811
  }).catch(() => {
8812
8812
  g(!1), _(!0);
@@ -8816,7 +8816,7 @@ const iI = (e, s) => {
8816
8816
  u && h(C());
8817
8817
  }
8818
8818
  return P(() => {
8819
- v(), I();
8819
+ S(), I();
8820
8820
  }, []), !x && E ? /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4", children: [
8821
8821
  /* @__PURE__ */ t.jsx(H, { name: "ic-error", size: 16, color: null }),
8822
8822
  /* @__PURE__ */ t.jsx("span", { className: "dc__truncate fw-5 cr-5", children: "Failed to fetch" })
@@ -8856,7 +8856,7 @@ const iI = (e, s) => {
8856
8856
  ) : /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: f })
8857
8857
  ] })
8858
8858
  ] });
8859
- }, It = new Pr({}), is = new Pr([]), qa = new Pr([]), So = new Pr({});
8859
+ }, At = new Pr({}), is = new Pr([]), qa = new Pr([]), So = new Pr({});
8860
8860
  let ns = {
8861
8861
  filterType: "",
8862
8862
  searchString: ""
@@ -8887,7 +8887,7 @@ function ac(e, s, n) {
8887
8887
  o.forEach((i) => {
8888
8888
  (i.childNodes ?? []).sort((c, l) => c.name < l.name ? -1 : c.name > l.name ? 1 : 0);
8889
8889
  }), o.filter((i) => i.kind.toLowerCase() == de.Pod.toLowerCase()).map((i) => {
8890
- i.childNodes = (n || It.getValue().resourceTree?.podMetadata)?.filter((c) => c.uid === i.uid)[0]?.containers?.map((c) => {
8890
+ i.childNodes = (n || At.getValue().resourceTree?.podMetadata)?.filter((c) => c.uid === i.uid)[0]?.containers?.map((c) => {
8891
8891
  const l = {};
8892
8892
  return l.kind = de.Containers, l.pNode = i, l.name = c, l;
8893
8893
  });
@@ -8949,13 +8949,13 @@ const AI = (e, s) => {
8949
8949
  n,
8950
8950
  n.filter((r) => (r.parentRefs ?? []).length == 0).map((r) => r),
8951
8951
  a
8952
- ), It.next({ ...e, appType: s }), is.next([...n]), qa.next([...n]);
8952
+ ), At.next({ ...e, appType: s }), is.next([...n]), qa.next([...n]);
8953
8953
  },
8954
8954
  clearAppDetails() {
8955
8955
  this.publishAppDetails({}, null);
8956
8956
  },
8957
- getAppDetails: () => It.getValue(),
8958
- getAppDetailsObservable: () => It.asObservable(),
8957
+ getAppDetails: () => At.getValue(),
8958
+ getAppDetailsObservable: () => At.asObservable(),
8959
8959
  getAppDetailsNodes: () => is.getValue(),
8960
8960
  getAppDetailsNodesObservable: () => is.asObservable(),
8961
8961
  getAppDetailsFilteredNodes: () => qa.getValue(),
@@ -8965,8 +8965,8 @@ const AI = (e, s) => {
8965
8965
  return vI(s, e);
8966
8966
  },
8967
8967
  getNodesByKind: (e) => is.getValue().filter((n) => n.kind.toLowerCase() === e.toLowerCase()),
8968
- getMetaDataForPod: (e) => It.getValue().resourceTree?.podMetadata?.filter((s) => s.name === e)[0] || {},
8969
- getPodMetaData: () => It.getValue().resourceTree.podMetadata,
8968
+ getMetaDataForPod: (e) => At.getValue().resourceTree?.podMetadata?.filter((s) => s.name === e)[0] || {},
8969
+ getPodMetaData: () => At.getValue().resourceTree.podMetadata,
8970
8970
  getPodsForRootNode: (e) => {
8971
8971
  const s = is.getValue();
8972
8972
  return AI(e, s);
@@ -8976,9 +8976,9 @@ const AI = (e, s) => {
8976
8976
  const e = is.getValue();
8977
8977
  return II(e);
8978
8978
  },
8979
- getAllContainersForPod: (e) => It.getValue().resourceTree?.podMetadata?.find((s) => s.name === e)?.containers,
8979
+ getAllContainersForPod: (e) => At.getValue().resourceTree?.podMetadata?.find((s) => s.name === e)?.containers,
8980
8980
  getAllContainers: () => {
8981
- const e = [], s = It.getValue().resourceTree.podMetadata;
8981
+ const e = [], s = At.getValue().resourceTree.podMetadata;
8982
8982
  return s.forEach((n) => {
8983
8983
  n.containers.forEach((a) => {
8984
8984
  e.push(a);
@@ -8986,7 +8986,7 @@ const AI = (e, s) => {
8986
8986
  }), { containers: e, pods: s };
8987
8987
  },
8988
8988
  getAllNewContainers: () => {
8989
- const e = [], s = It.getValue().resourceTree.podMetadata.filter((n) => n.isNew);
8989
+ const e = [], s = At.getValue().resourceTree.podMetadata.filter((n) => n.isNew);
8990
8990
  return s.forEach((n) => {
8991
8991
  n.containers.forEach((a) => {
8992
8992
  e.push(a);
@@ -8994,19 +8994,19 @@ const AI = (e, s) => {
8994
8994
  }), { containers: e, pods: s };
8995
8995
  },
8996
8996
  getAllOldContainers: () => {
8997
- const e = [], s = It.getValue().resourceTree.podMetadata.filter((n) => !n.isNew);
8997
+ const e = [], s = At.getValue().resourceTree.podMetadata.filter((n) => !n.isNew);
8998
8998
  return s.forEach((n) => {
8999
8999
  n.containers.forEach((a) => {
9000
9000
  e.push(a);
9001
9001
  });
9002
9002
  }), { containers: e, pods: s };
9003
9003
  },
9004
- getAllPods: () => It.getValue().resourceTree?.podMetadata || [],
9005
- getAllNewPods: () => It.getValue().resourceTree.podMetadata.filter((s) => s.isNew),
9006
- getAllOldPods: () => It.getValue().resourceTree.podMetadata.filter((s) => !s.isNew),
9004
+ getAllPods: () => At.getValue().resourceTree?.podMetadata || [],
9005
+ getAllNewPods: () => At.getValue().resourceTree.podMetadata.filter((s) => s.isNew),
9006
+ getAllOldPods: () => At.getValue().resourceTree.podMetadata.filter((s) => !s.isNew),
9007
9007
  getPodForAContainer: (e) => {
9008
9008
  let s;
9009
- return It.getValue().resourceTree.podMetadata.forEach((n) => {
9009
+ return At.getValue().resourceTree.podMetadata.forEach((n) => {
9010
9010
  n.containers.find((a) => {
9011
9011
  a === e && (s = n.name);
9012
9012
  });
@@ -9089,6 +9089,7 @@ const yI = {
9089
9089
  }, a = Ym[s?.wfrStatus] || ne.INPROGRESS, r = a === ne.FAILED && s?.timelines?.find((o) => o.status === z.DEPLOYMENT_FAILED)?.statusDetail || "";
9090
9090
  return {
9091
9091
  deploymentStatus: a,
9092
+ deploymentAppType: e,
9092
9093
  deploymentTriggerTime: s?.deploymentStartedOn || "",
9093
9094
  deploymentEndTime: s?.deploymentFinishedOn || "",
9094
9095
  triggeredBy: s?.triggeredBy || "",
@@ -9102,7 +9103,7 @@ const yI = {
9102
9103
  ...n,
9103
9104
  displayText: "Push manifest to Git"
9104
9105
  },
9105
- ...e === Mt.GITOPS ? {
9106
+ ...e === Tt.GITOPS ? {
9106
9107
  [z.ARGOCD_SYNC]: {
9107
9108
  ...n,
9108
9109
  displayText: "Synced with Argo CD"
@@ -9116,7 +9117,7 @@ const yI = {
9116
9117
  } : {},
9117
9118
  [z.APP_HEALTH]: {
9118
9119
  ...n,
9119
- displayText: e === Mt.FLUX ? "Synced with Flux CD" : "Propagate manifest to Kubernetes resources"
9120
+ displayText: e === Tt.FLUX ? "Synced with Flux CD" : "Propagate manifest to Kubernetes resources"
9120
9121
  }
9121
9122
  },
9122
9123
  errorBarConfig: r ? {
@@ -9205,7 +9206,7 @@ const yI = {
9205
9206
  return n;
9206
9207
  const r = Qr.includes(a), o = a === ne.FAILED, i = s.timelines.some(
9207
9208
  (l) => l.status.includes(z.ARGOCD_SYNC)
9208
- ), c = e === Mt.FLUX ? OI : jI;
9209
+ ), c = e === Tt.FLUX ? OI : jI;
9209
9210
  c.forEach((l, d) => {
9210
9211
  const u = fL(s.timelines, DI(l)), m = n.deploymentStatusBreakdown[l];
9211
9212
  if (!u) {
@@ -9456,9 +9457,9 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9456
9457
  }, oa = (e, s, n) => {
9457
9458
  let a;
9458
9459
  const r = { codeEditorValue: e.codeEditorValue, values: {} };
9459
- return delete e.codeEditorValue, s === Dt.DEPLOYMENT_TEMPLATE.VALUE ? a = KI(e) : s === Dt.PIPELINE_STRATEGY.VALUE ? a = WI(e) : a = zI(
9460
+ return delete e.codeEditorValue, s === Pt.DEPLOYMENT_TEMPLATE.VALUE ? a = KI(e) : s === Pt.PIPELINE_STRATEGY.VALUE ? a = WI(e) : a = zI(
9460
9461
  e,
9461
- s === Dt.CONFIGMAP.VALUE ? Dt.CONFIGMAP.DISPLAY_NAME : Dt.SECRET.DISPLAY_NAME,
9462
+ s === Pt.CONFIGMAP.VALUE ? Pt.CONFIGMAP.DISPLAY_NAME : Pt.SECRET.DISPLAY_NAME,
9462
9463
  r,
9463
9464
  n
9464
9465
  ), r.values = a, r;
@@ -9495,15 +9496,15 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9495
9496
  deploymentDetailedData: n,
9496
9497
  appDetails: a
9497
9498
  }) => {
9498
- const { appId: r, envId: o } = Lt(), [i, c] = O(!1), l = n.deploymentStatusBreakdown[e], [d, u] = O(l.isCollapsed);
9499
+ const { appId: r, envId: o } = wt(), [i, c] = O(!1), l = n.deploymentStatusBreakdown[e], [d, u] = O(l.isCollapsed);
9499
9500
  P(() => {
9500
9501
  u(l.isCollapsed);
9501
9502
  }, [l.isCollapsed]);
9502
9503
  const m = async () => {
9503
9504
  try {
9504
9505
  c(!0);
9505
- const { appId: g, appType: E, environmentId: _, installedAppId: N } = a || {}, C = E === ht.DEVTRON_HELM_CHART ? N : g, v = r || String(C), I = o || String(_);
9506
- await YI({ appId: v, envId: I });
9506
+ const { appId: g, appType: E, environmentId: _, installedAppId: N } = a || {}, C = E === ht.DEVTRON_HELM_CHART ? N : g, S = r || String(C), I = o || String(_);
9507
+ await YI({ appId: S, envId: I });
9507
9508
  } catch (g) {
9508
9509
  we(g);
9509
9510
  } finally {
@@ -9593,7 +9594,7 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9593
9594
  l.icon
9594
9595
  )}`,
9595
9596
  children: Ve(l.time, "YYYY-MM-DDTHH:mm:ssZ").format(
9596
- jt.TWELVE_HOURS_FORMAT
9597
+ Ot.TWELVE_HOURS_FORMAT
9597
9598
  )
9598
9599
  }
9599
9600
  )
@@ -9630,9 +9631,10 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9630
9631
  deploymentStatusDetailsBreakdownData: e,
9631
9632
  isVirtualEnvironment: s,
9632
9633
  appDetails: n,
9633
- rootClassName: a = ""
9634
+ rootClassName: a = "",
9635
+ deploymentAppType: r
9634
9636
  }) => {
9635
- const r = e.deploymentStatusBreakdown[z.HELM_MANIFEST_PUSHED_TO_HELM_REPO]?.showHelmManifest, o = {
9637
+ const o = e.deploymentStatusBreakdown[z.HELM_MANIFEST_PUSHED_TO_HELM_REPO]?.showHelmManifest, i = {
9636
9638
  appDetails: n,
9637
9639
  deploymentDetailedData: e
9638
9640
  };
@@ -9646,7 +9648,7 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9646
9648
  Mn,
9647
9649
  {
9648
9650
  type: z.DEPLOYMENT_INITIATED,
9649
- ...o
9651
+ ...i
9650
9652
  }
9651
9653
  ),
9652
9654
  s && e.deploymentStatusBreakdown[z.HELM_PACKAGE_GENERATED] ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
@@ -9654,24 +9656,24 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9654
9656
  Mn,
9655
9657
  {
9656
9658
  type: z.HELM_PACKAGE_GENERATED,
9657
- hideVerticalConnector: !r,
9658
- ...o
9659
+ hideVerticalConnector: !o,
9660
+ ...i
9659
9661
  }
9660
9662
  ),
9661
- r && /* @__PURE__ */ t.jsx(
9663
+ o && /* @__PURE__ */ t.jsx(
9662
9664
  Mn,
9663
9665
  {
9664
9666
  type: z.HELM_MANIFEST_PUSHED_TO_HELM_REPO,
9665
9667
  hideVerticalConnector: !0,
9666
- ...o
9668
+ ...i
9667
9669
  }
9668
9670
  )
9669
9671
  ] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
9670
9672
  [
9671
9673
  z.GIT_COMMIT,
9672
- ...o.appDetails.deploymentAppType === Mt.FLUX ? [] : [z.ARGOCD_SYNC, z.KUBECTL_APPLY]
9673
- ].map((i) => /* @__PURE__ */ t.jsxs(Ms, { children: [
9674
- e.errorBarConfig?.nextTimelineToProcess === i && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
9674
+ ...n.deploymentAppType === Tt.FLUX || r === Tt.FLUX ? [] : [z.ARGOCD_SYNC, z.KUBECTL_APPLY]
9675
+ ].map((c) => /* @__PURE__ */ t.jsxs(Ms, { children: [
9676
+ e.errorBarConfig?.nextTimelineToProcess === c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
9675
9677
  /* @__PURE__ */ t.jsx(
9676
9678
  $I,
9677
9679
  {
@@ -9681,14 +9683,14 @@ const FF = (e, s, n) => le(`app/history/deployed-configuration/${e}/${s}/${n}`),
9681
9683
  ),
9682
9684
  /* @__PURE__ */ t.jsx("div", { className: "vertical-connector" })
9683
9685
  ] }),
9684
- /* @__PURE__ */ t.jsx(Mn, { type: i, ...o })
9685
- ] }, i)),
9686
+ /* @__PURE__ */ t.jsx(Mn, { type: c, ...i })
9687
+ ] }, c)),
9686
9688
  /* @__PURE__ */ t.jsx(
9687
9689
  Mn,
9688
9690
  {
9689
9691
  type: z.APP_HEALTH,
9690
9692
  hideVerticalConnector: !0,
9691
- ...o
9693
+ ...i
9692
9694
  }
9693
9695
  )
9694
9696
  ] })
@@ -9709,9 +9711,9 @@ const XI = ({
9709
9711
  renderDeploymentApprovalInfo: l,
9710
9712
  isDeploymentWithoutApproval: d
9711
9713
  }) => {
9712
- const u = Lr(), { url: m } = Ns(), { appId: p, envId: f, triggerId: h } = Lt(), [x, g] = O(
9714
+ const u = Lr(), { url: m } = Ns(), { appId: p, envId: f, triggerId: h } = wt(), [x, g] = O(
9713
9715
  e?.toUpperCase() !== z.ABORTED
9714
- ), E = RI.getAppDetails(), _ = U(i), N = U(d), C = _.current && c ? c() : ii(E?.deploymentAppType), [v, I] = O(C), A = () => {
9716
+ ), E = RI.getAppDetails(), _ = U(i), N = U(d), C = _.current && c ? c() : ii(E?.deploymentAppType), [S, I] = O(C), A = () => {
9715
9717
  Ba && clearTimeout(Ba);
9716
9718
  }, R = () => {
9717
9719
  HI(p, f, !0, h, n, a).then((T) => {
@@ -9725,7 +9727,7 @@ const XI = ({
9725
9727
  g(!1);
9726
9728
  });
9727
9729
  };
9728
- P(() => (s === Mt.HELM && u.replace(`${m.replace("deployment-steps", "source-code")}`), r && R(), () => {
9730
+ P(() => (s === Tt.HELM && u.replace(`${m.replace("deployment-steps", "source-code")}`), r && R(), () => {
9729
9731
  A();
9730
9732
  }), [a]), P(() => {
9731
9733
  _.current = i;
@@ -9742,7 +9744,7 @@ const XI = ({
9742
9744
  }, 1e4) : Ba = setTimeout(() => {
9743
9745
  R();
9744
9746
  }, 3e4), I(j);
9745
- }, S = () => {
9747
+ }, v = () => {
9746
9748
  if (n) {
9747
9749
  ra(
9748
9750
  `${window.__BASE_URL__}${De.APP}/${De.DEVTRON_CHARTS}/${De.APP_DEPLOYMNENT_HISTORY}/${p}/env/${f}/${De.DETAILS}/${De.APP_DETAILS_K8}?${Ol}`
@@ -9752,14 +9754,14 @@ const XI = ({
9752
9754
  ra(
9753
9755
  `${window.__BASE_URL__}${De.APP}/${p}/${De.APP_DETAILS}/${f}/${De.APP_DETAILS_K8}?${Ol}`
9754
9756
  )();
9755
- }, y = () => !_.current && !v?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
9757
+ }, y = () => !_.current && !S?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
9756
9758
  oI,
9757
9759
  {
9758
9760
  title: et.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.TITLE,
9759
9761
  imgSource: Hf,
9760
9762
  actionButtonClass: "bcb-5 cn-0",
9761
9763
  ActionButtonIcon: lu,
9762
- actionHandler: S,
9764
+ actionHandler: v,
9763
9765
  subtitle: et.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.SUBTITLE,
9764
9766
  actionButtonText: "Check live status",
9765
9767
  actionButtonIconRight: !0,
@@ -9770,14 +9772,15 @@ const XI = ({
9770
9772
  /* @__PURE__ */ t.jsx(
9771
9773
  qm,
9772
9774
  {
9773
- deploymentStatusDetailsBreakdownData: v,
9775
+ deploymentStatusDetailsBreakdownData: S,
9774
9776
  isVirtualEnvironment: _.current,
9775
9777
  appDetails: E,
9776
- rootClassName: "p-20"
9778
+ rootClassName: "p-20",
9779
+ deploymentAppType: S.deploymentAppType
9777
9780
  }
9778
9781
  )
9779
9782
  ] });
9780
- return e?.toUpperCase() === z.ABORTED || v.deploymentStatus === ne.SUPERSEDED ? /* @__PURE__ */ t.jsx(
9783
+ return e?.toUpperCase() === z.ABORTED || S.deploymentStatus === ne.SUPERSEDED ? /* @__PURE__ */ t.jsx(
9781
9784
  "div",
9782
9785
  {
9783
9786
  className: "flexbox flex-grow-1 dc__content-center",
@@ -10198,9 +10201,9 @@ const Ln = ({
10198
10201
  const [r, o] = O(0), [i, c] = O(50), [l, d] = O(!1), u = U(null), m = U(null), p = U(0), f = U(0), h = Rn(s), x = () => {
10199
10202
  if (!e?.dom || !u.current || !m.current)
10200
10203
  return;
10201
- const { clientHeight: v, scrollHeight: I, scrollTop: A } = e.dom, R = u.current.clientHeight, b = v / I * R, S = Math.max(b, dA), y = A / I * R;
10202
- c(S), o(
10203
- y + S > v ? v - S : y
10204
+ const { clientHeight: S, scrollHeight: I, scrollTop: A } = e.dom, R = u.current.clientHeight, b = S / I * R, v = Math.max(b, dA), y = A / I * R;
10205
+ c(v), o(
10206
+ y + v > S ? S - v : y
10204
10207
  );
10205
10208
  };
10206
10209
  P(() => {
@@ -10208,34 +10211,34 @@ const Ln = ({
10208
10211
  }, [e, a]);
10209
10212
  const g = () => {
10210
10213
  x();
10211
- }, E = (v) => {
10212
- v.preventDefault(), d(!0), p.current = v.clientY, f.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
10213
- }, _ = (v) => {
10214
+ }, E = (S) => {
10215
+ S.preventDefault(), d(!0), p.current = S.clientY, f.current = e.dom?.scrollTop || 0, document.body.style.userSelect = "none", document.body.style.pointerEvents = "none";
10216
+ }, _ = (S) => {
10214
10217
  if (!l || !e?.dom || !u.current)
10215
10218
  return;
10216
- const { scrollHeight: I, clientHeight: A } = e.dom, R = u.current.clientHeight, S = (v.clientY - p.current) / R;
10217
- e.dom.scrollTo({ top: f.current + S * (I - A) });
10219
+ const { scrollHeight: I, clientHeight: A } = e.dom, R = u.current.clientHeight, v = (S.clientY - p.current) / R;
10220
+ e.dom.scrollTo({ top: f.current + v * (I - A) });
10218
10221
  }, N = () => {
10219
10222
  d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
10220
10223
  };
10221
10224
  P(() => {
10222
10225
  if (e) {
10223
- const { dom: v } = e;
10224
- v.addEventListener("scroll", g);
10226
+ const { dom: S } = e;
10227
+ S.addEventListener("scroll", g);
10225
10228
  }
10226
10229
  return () => {
10227
10230
  if (e) {
10228
- const { dom: v } = e;
10229
- v.removeEventListener("scroll", g);
10231
+ const { dom: S } = e;
10232
+ S.removeEventListener("scroll", g);
10230
10233
  }
10231
10234
  };
10232
10235
  }, [e]), P(() => (l ? (document.addEventListener("mousemove", _), document.addEventListener("mouseup", N)) : (document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", N)), () => {
10233
10236
  document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", N);
10234
10237
  }), [e, l]);
10235
- const C = (v) => {
10238
+ const C = (S) => {
10236
10239
  if (!e.dom || !u.current) return;
10237
- const { clientHeight: I, scrollHeight: A } = e.dom, R = u.current.clientHeight, S = (v.clientY - u.current.getBoundingClientRect().top) / R;
10238
- e.dom.scrollTo({ top: S * (A - I) });
10240
+ const { clientHeight: I, scrollHeight: A } = e.dom, R = u.current.clientHeight, v = (S.clientY - u.current.getBoundingClientRect().top) / R;
10241
+ e.dom.scrollTo({ top: v * (A - I) });
10239
10242
  };
10240
10243
  return /* @__PURE__ */ t.jsxs(
10241
10244
  "div",
@@ -10296,7 +10299,7 @@ const Ln = ({
10296
10299
  r = JSON.stringify(a, null, n);
10297
10300
  break;
10298
10301
  case rt.YAML:
10299
- r = yt(a);
10302
+ r = jt(a);
10300
10303
  break;
10301
10304
  }
10302
10305
  return r;
@@ -10529,7 +10532,7 @@ const Ln = ({
10529
10532
  W_(e);
10530
10533
  }, C = () => {
10531
10534
  a(), wc(e);
10532
- }, v = () => {
10535
+ }, S = () => {
10533
10536
  a(), Jd(e);
10534
10537
  }, I = (D) => {
10535
10538
  p({ caseSensitive: D });
@@ -10539,7 +10542,7 @@ const Ln = ({
10539
10542
  p({ regexp: D });
10540
10543
  }, b = () => {
10541
10544
  d(!l), e.dispatch({ effects: [Sa.of(!l)] });
10542
- }, S = (D) => {
10545
+ }, v = (D) => {
10543
10546
  D.preventDefault(), D.stopPropagation(), z_(e);
10544
10547
  }, y = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
10545
10548
  K,
@@ -10677,11 +10680,11 @@ const Ln = ({
10677
10680
  dataTestId: "find-replace-close-button",
10678
10681
  ariaLabel: "find-replace-close-button",
10679
10682
  showAriaLabelInTippy: !1,
10680
- icon: /* @__PURE__ */ t.jsx(wt, {}),
10683
+ icon: /* @__PURE__ */ t.jsx(Dt, {}),
10681
10684
  variant: J.borderLess,
10682
10685
  style: ue.neutral,
10683
10686
  size: L.xxs,
10684
- onClick: S,
10687
+ onClick: v,
10685
10688
  showTooltip: !0,
10686
10689
  tooltipProps: {
10687
10690
  shortcutKeyCombo: {
@@ -10736,7 +10739,7 @@ const Ln = ({
10736
10739
  variant: J.borderLess,
10737
10740
  style: ue.neutral,
10738
10741
  size: L.xxs,
10739
- onClick: v,
10742
+ onClick: S,
10740
10743
  showTooltip: !0,
10741
10744
  tooltipProps: {
10742
10745
  shortcutKeyCombo: {
@@ -10925,13 +10928,13 @@ const Ln = ({
10925
10928
  collapseUnchanged: N = !1,
10926
10929
  disableMinimap: C = !1
10927
10930
  }) => {
10928
- const { value: v, lhsValue: I, diffMode: A } = to(), [R, b] = O(0), [S, y] = O(null), [T, j] = O(null), [w, M] = O(1), D = U(), B = U(), q = U(), W = U(), oe = U(), te = Rn(s), Ee = () => {
10931
+ const { value: S, lhsValue: I, diffMode: A } = to(), [R, b] = O(0), [v, y] = O(null), [T, j] = O(null), [w, M] = O(1), D = U(), B = U(), q = U(), W = U(), oe = U(), te = Rn(s), Ee = () => {
10929
10932
  const se = document.querySelector(".cm-gutters");
10930
10933
  se && b(se.getBoundingClientRect().width);
10931
10934
  };
10932
10935
  P(() => {
10933
10936
  Ee();
10934
- }, [I, v]), P(() => {
10937
+ }, [I, S]), P(() => {
10935
10938
  setTimeout(() => {
10936
10939
  E && D.current?.view && D.current.view.focus();
10937
10940
  }, 100);
@@ -10939,8 +10942,8 @@ const Ln = ({
10939
10942
  let se = !1;
10940
10943
  const Y = document.querySelector("body");
10941
10944
  if (Y) {
10942
- if (S) {
10943
- const xe = S.a, Ae = S.b;
10945
+ if (v) {
10946
+ const xe = v.a, Ae = v.b;
10944
10947
  se = (xe.hasFocus || Ae.hasFocus) && (xe.scrollDOM.scrollWidth > xe.scrollDOM.clientWidth || Ae.scrollDOM.scrollWidth > Ae.scrollDOM.clientWidth);
10945
10948
  } else if (D.current?.view) {
10946
10949
  const { scrollWidth: xe, clientWidth: Ae } = D.current.view.scrollDOM;
@@ -10949,22 +10952,22 @@ const Ln = ({
10949
10952
  se ? Y.classList.add("dc__overscroll-none") : Y.classList.remove("dc__overscroll-none");
10950
10953
  }
10951
10954
  }, [
10952
- S?.a?.hasFocus,
10953
- S?.b?.hasFocus,
10955
+ v?.a?.hasFocus,
10956
+ v?.b?.hasFocus,
10954
10957
  D.current?.view?.hasFocus
10955
10958
  ]);
10956
10959
  const ve = () => {
10957
- S.a.scrollDOM.scrollTo({
10958
- left: S.b.scrollDOM.scrollLeft
10960
+ v.a.scrollDOM.scrollTo({
10961
+ left: v.b.scrollDOM.scrollLeft
10959
10962
  });
10960
10963
  }, V = () => {
10961
- S.b.scrollDOM.scrollTo({
10962
- left: S.a.scrollDOM.scrollLeft
10964
+ v.b.scrollDOM.scrollTo({
10965
+ left: v.a.scrollDOM.scrollLeft
10963
10966
  });
10964
10967
  };
10965
- P(() => (n || S && (S.a.scrollDOM.addEventListener("scroll", V), S.b.scrollDOM.addEventListener("scroll", ve)), () => {
10966
- S && (S.b.scrollDOM.removeEventListener("scroll", ve), S.a.scrollDOM.removeEventListener("scroll", V));
10967
- }), [S]);
10968
+ P(() => (n || v && (v.a.scrollDOM.addEventListener("scroll", V), v.b.scrollDOM.addEventListener("scroll", ve)), () => {
10969
+ v && (v.b.scrollDOM.removeEventListener("scroll", ve), v.a.scrollDOM.removeEventListener("scroll", V));
10970
+ }), [v]);
10968
10971
  const Q = () => {
10969
10972
  Ee();
10970
10973
  }, fe = Jn.updateListener.of((se) => {
@@ -10980,18 +10983,18 @@ const Ln = ({
10980
10983
  }
10981
10984
  C || Fl(W.current, se.transactions, "b");
10982
10985
  }), Ne = () => {
10983
- S?.destroy(), q.current?.destroy();
10986
+ v?.destroy(), q.current?.destroy();
10984
10987
  const se = new Pc({
10985
10988
  a: {
10986
10989
  doc: I,
10987
10990
  extensions: [...l, fe]
10988
10991
  },
10989
10992
  b: {
10990
- doc: v,
10993
+ doc: S,
10991
10994
  extensions: [...u, he]
10992
10995
  },
10993
10996
  ...i ? {} : { revertControls: "a-to-b", renderRevertControl: bA },
10994
- diffConfig: { scanLimit: Bl(I, v), timeout: 5e3 },
10997
+ diffConfig: { scanLimit: Bl(I, S), timeout: 5e3 },
10995
10998
  parent: B.current,
10996
10999
  collapseUnchanged: N ? {} : void 0
10997
11000
  });
@@ -11003,11 +11006,11 @@ const Ln = ({
11003
11006
  extensions: _
11004
11007
  },
11005
11008
  b: {
11006
- doc: v,
11009
+ doc: S,
11007
11010
  extensions: _
11008
11011
  },
11009
11012
  gutter: !1,
11010
- diffConfig: { scanLimit: Bl(I, v), timeout: 5e3 },
11013
+ diffConfig: { scanLimit: Bl(I, S), timeout: 5e3 },
11011
11014
  parent: oe.current
11012
11015
  });
11013
11016
  W.current = Y, j(Y);
@@ -11018,18 +11021,18 @@ const Ln = ({
11018
11021
  }), [n, e, A, N, C]), P(() => {
11019
11022
  if (q.current) {
11020
11023
  const se = q.current.a.state.doc.toString(), Y = q.current.b.state.doc.toString();
11021
- (se !== I || Y !== v) && Ne();
11024
+ (se !== I || Y !== S) && Ne();
11022
11025
  }
11023
- }, [I, v]), P(() => {
11026
+ }, [I, S]), P(() => {
11024
11027
  C || setTimeout(() => {
11025
11028
  M(
11026
- S ? Math.min(
11027
- S.dom.clientHeight / S.dom.scrollHeight,
11029
+ v ? Math.min(
11030
+ v.dom.clientHeight / v.dom.scrollHeight,
11028
11031
  1
11029
11032
  ) : 1
11030
11033
  );
11031
11034
  }, 100);
11032
- }, [I, v, S, C]);
11035
+ }, [I, S, v, C]);
11033
11036
  const { codeEditorClassName: re, codeEditorHeight: _e, codeEditorParentClassName: me } = EA(r);
11034
11037
  return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: _e }, children: /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0 }) }) : A ? /* @__PURE__ */ t.jsxs(
11035
11038
  "div",
@@ -11037,7 +11040,7 @@ const Ln = ({
11037
11040
  ref: m,
11038
11041
  className: `flexbox w-100 ${te} ${me}`,
11039
11042
  children: [
11040
- !S && /* @__PURE__ */ t.jsx("div", { className: "flex h-100 w-100", children: /* @__PURE__ */ t.jsx("p", { children: "Calculating diff for large file. Please wait..." }) }),
11043
+ !v && /* @__PURE__ */ t.jsx("div", { className: "flex h-100 w-100", children: /* @__PURE__ */ t.jsx("p", { children: "Calculating diff for large file. Please wait..." }) }),
11041
11044
  /* @__PURE__ */ t.jsx(
11042
11045
  "div",
11043
11046
  {
@@ -11049,7 +11052,7 @@ const Ln = ({
11049
11052
  mA,
11050
11053
  {
11051
11054
  theme: s,
11052
- view: S,
11055
+ view: v,
11053
11056
  diffMinimapParentRef: oe,
11054
11057
  scalingFactor: w
11055
11058
  }
@@ -11079,7 +11082,7 @@ const Ln = ({
11079
11082
  theme: o,
11080
11083
  className: re,
11081
11084
  basicSetup: !1,
11082
- value: v,
11085
+ value: S,
11083
11086
  placeholder: f,
11084
11087
  readOnly: i,
11085
11088
  height: _e,
@@ -11096,7 +11099,7 @@ const Ln = ({
11096
11099
  );
11097
11100
  }, PA = new of(), MA = Q_({
11098
11101
  markerDOM: NA
11099
- }), Pt = ({
11102
+ }), Mt = ({
11100
11103
  theme: e,
11101
11104
  value: s,
11102
11105
  originalValue: n,
@@ -11118,21 +11121,21 @@ const Ln = ({
11118
11121
  validatorSchema: _ = {},
11119
11122
  schemaURI: N = XN,
11120
11123
  cleanData: C = !1,
11121
- onBlur: v,
11124
+ onBlur: S,
11122
11125
  onFocus: I,
11123
11126
  autoFocus: A,
11124
11127
  onSearchPanelOpen: R = Ue,
11125
11128
  onSearchBarAction: b = Ue,
11126
- collapseUnchangedDiffView: S = !1,
11129
+ collapseUnchangedDiffView: v = !1,
11127
11130
  ...y
11128
11131
  }) => {
11129
- const T = (S || y.disableSearch) ?? !1, j = (S || y.readOnly) ?? !1, { appTheme: w } = Vr(), M = U(), D = U({ code: "", lhsCode: "" }), B = X(() => {
11132
+ const T = (v || y.disableSearch) ?? !1, j = (v || y.readOnly) ?? !1, { appTheme: w } = Vr(), M = U(), D = U({ code: "", lhsCode: "" }), B = X(() => {
11130
11133
  const $ = x ? a : s, ge = C ? Hd($) : $;
11131
11134
  return ge !== D.current.code ? ![rt.JSON, rt.YAML].includes(o) || i ? ge : $l(ge, o, l) : D.current.code;
11132
11135
  }, [s, a, x, i]), q = X(() => {
11133
11136
  const $ = C ? Hd(n) : n;
11134
11137
  return $ !== D.current.lhsCode ? ![rt.JSON, rt.YAML].includes(o) || i ? $ : $l($, o, l) : D.current.lhsCode;
11135
- }, [n, i]), W = e ?? w, oe = W === Tt.dark, { codeEditorTheme: te, themeExtension: Ee } = uA(oe), [ve, V] = O(), [Q, fe] = O(!1), [he, Ne] = O(x), re = X(
11138
+ }, [n, i]), W = e ?? w, oe = W === St.dark, { codeEditorTheme: te, themeExtension: Ee } = uA(oe), [ve, V] = O(), [Q, fe] = O(!1), [he, Ne] = O(x), re = X(
11136
11139
  () => ({ setDiffMode: Ne, diffMode: he, hasCodeEditorContainer: Q, lhsValue: q, value: B, readOnly: j, theme: W }),
11137
11140
  [he, Q, q, B, j, W]
11138
11141
  );
@@ -11175,7 +11178,7 @@ const Ln = ({
11175
11178
  { key: "Escape", run: fA, stopPropagation: !0 }
11176
11179
  ]),
11177
11180
  sf(),
11178
- Gl(o, S),
11181
+ Gl(o, v),
11179
11182
  PA.of(MA),
11180
11183
  nf(),
11181
11184
  af({
@@ -11229,25 +11232,25 @@ const Ln = ({
11229
11232
  placeholder: h,
11230
11233
  handleOnChange: Y,
11231
11234
  handleLhsOnChange: xe,
11232
- onBlur: v,
11235
+ onBlur: S,
11233
11236
  onFocus: I,
11234
11237
  autoFocus: A,
11235
11238
  originalViewExtensions: Wt,
11236
11239
  modifiedViewExtensions: ut,
11237
11240
  extensions: ct,
11238
11241
  diffMinimapExtensions: rs,
11239
- collapseUnchanged: S,
11240
- disableMinimap: S
11242
+ collapseUnchanged: v,
11243
+ disableMinimap: v
11241
11244
  }
11242
11245
  )
11243
11246
  ] });
11244
11247
  };
11245
- Pt.Clipboard = sA;
11246
- Pt.Header = ZI;
11247
- Pt.Warning = QI;
11248
- Pt.ErrorBar = eA;
11249
- Pt.Information = tA;
11250
- Pt.Container = nA;
11248
+ Mt.Clipboard = sA;
11249
+ Mt.Header = ZI;
11250
+ Mt.Warning = QI;
11251
+ Mt.ErrorBar = eA;
11252
+ Mt.Information = tA;
11253
+ Mt.Container = nA;
11251
11254
  const kA = ({
11252
11255
  resolveScopedVariables: e,
11253
11256
  handleToggleScopedVariablesView: s,
@@ -11379,11 +11382,11 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11379
11382
  }, [e]), P(() => {
11380
11383
  i && m((N) => ({ ...N, [i]: !0 }));
11381
11384
  }, [i]);
11382
- const h = (N) => N.map((C, v) => {
11385
+ const h = (N) => N.map((C, S) => {
11383
11386
  if (C.type === "string")
11384
11387
  return /* @__PURE__ */ t.jsxs(Ms, { children: [
11385
11388
  typeof C.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
11386
- !r?.hideDivider && v !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
11389
+ !r?.hideDivider && S !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
11387
11390
  ] }, C.id);
11388
11391
  const { selectPickerProps: I } = C;
11389
11392
  return /* @__PURE__ */ t.jsxs(Ms, { children: [
@@ -11394,11 +11397,11 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11394
11397
  isDisabled: e || I?.isDisabled
11395
11398
  }
11396
11399
  ) }),
11397
- !r?.hideDivider && v !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
11400
+ !r?.hideDivider && S !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
11398
11401
  ] }, C.id);
11399
11402
  }), x = () => {
11400
11403
  if (o) {
11401
- const { handleSorting: N, sortBy: C, sortOrder: v } = o;
11404
+ const { handleSorting: N, sortBy: C, sortOrder: S } = o;
11402
11405
  return /* @__PURE__ */ t.jsx(
11403
11406
  K,
11404
11407
  {
@@ -11412,7 +11415,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11412
11415
  {
11413
11416
  className: "rotate",
11414
11417
  style: {
11415
- "--rotateBy": v === be.DESC ? "0deg" : "180deg"
11418
+ "--rotateBy": S === be.DESC ? "0deg" : "180deg"
11416
11419
  }
11417
11420
  }
11418
11421
  ) : /* @__PURE__ */ t.jsx(_u, {}),
@@ -11435,8 +11438,8 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11435
11438
  );
11436
11439
  }
11437
11440
  return null;
11438
- }, E = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: v, title: I, diffState: A, singleView: R }) => {
11439
- const { heading: b, list: S } = C, { heading: y, list: T } = v;
11441
+ }, E = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: S, title: I, diffState: A, singleView: R }) => {
11442
+ const { heading: b, list: v } = C, { heading: y, list: T } = S;
11440
11443
  return /* @__PURE__ */ t.jsx(
11441
11444
  UA,
11442
11445
  {
@@ -11454,9 +11457,9 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11454
11457
  /* @__PURE__ */ t.jsx("div", { className: "bcn-1 py-8 px-12", children: /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-20 fw-6", children: y }) })
11455
11458
  ] }),
11456
11459
  /* @__PURE__ */ t.jsx(
11457
- Pt,
11460
+ Mt,
11458
11461
  {
11459
- originalValue: S.codeEditorValue.value,
11462
+ originalValue: v.codeEditorValue.value,
11460
11463
  modifiedValue: T.codeEditorValue.value,
11461
11464
  height: "100%",
11462
11465
  mode: rt.YAML,
@@ -11474,7 +11477,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11474
11477
  rR,
11475
11478
  {
11476
11479
  baseTemplateConfiguration: T,
11477
- currentConfiguration: S,
11480
+ currentConfiguration: v,
11478
11481
  previousConfigAvailable: !0,
11479
11482
  rootClassName: `${b && y ? "dc__no-top-radius dc__no-top-border" : ""}`
11480
11483
  }
@@ -11633,12 +11636,12 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11633
11636
  }) => {
11634
11637
  const [m, p] = O({});
11635
11638
  P(() => {
11636
- p(s.reduce((C, v) => ({ ...C, [v.id]: !!v.items.length }), {}));
11639
+ p(s.reduce((C, S) => ({ ...C, [S.id]: !!S.items.length }), {}));
11637
11640
  }, [s]);
11638
11641
  const f = s.map(
11639
- ({ items: C, ...v }) => ({
11640
- ...v,
11641
- isExpanded: m[v.id],
11642
+ ({ items: C, ...S }) => ({
11643
+ ...S,
11644
+ isExpanded: m[S.id],
11642
11645
  items: C.map(({ diffState: I, ...A }) => ({
11643
11646
  ...A,
11644
11647
  strikeThrough: d && I === Ft.DELETED,
@@ -11655,20 +11658,20 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11655
11658
  }))
11656
11659
  })
11657
11660
  ), h = (C) => {
11658
- p((v) => ({ ...v, [C]: !v[C] }));
11661
+ p((S) => ({ ...S, [C]: !S[C] }));
11659
11662
  }, x = (C) => {
11660
- const { value: v } = C.target;
11661
- c?.activeTab !== v && c?.onClick?.(v);
11663
+ const { value: S } = C.target;
11664
+ c?.activeTab !== S && c?.onClick?.(S);
11662
11665
  }, g = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
11663
- a && /* @__PURE__ */ t.jsx(ss, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(wt, { className: "icon-dim-16 fcn-6" }) }) }),
11666
+ a && /* @__PURE__ */ t.jsx(ss, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(Dt, { className: "icon-dim-16 fcn-6" }) }) }),
11664
11667
  /* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
11665
11668
  ] }), E = () => {
11666
- const { tabs: C, activeTab: v } = c;
11669
+ const { tabs: C, activeTab: S } = c;
11667
11670
  return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
11668
11671
  da,
11669
11672
  {
11670
11673
  name: "deployment-config-diff-tab-list",
11671
- initialTab: v,
11674
+ initialTab: S,
11672
11675
  onChange: x,
11673
11676
  disabled: e,
11674
11677
  className: "gui-yaml-switch deployment-config-diff__tab-list",
@@ -11676,14 +11679,14 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11676
11679
  }
11677
11680
  ) });
11678
11681
  }, _ = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
11679
- n.map(({ title: C, href: v, onClick: I, diffState: A, Icon: R }) => {
11682
+ n.map(({ title: C, href: S, onClick: I, diffState: A, Icon: R }) => {
11680
11683
  const b = d ? Kn[A] : Kn.hasDiff;
11681
11684
  return /* @__PURE__ */ t.jsxs(
11682
11685
  ks,
11683
11686
  {
11684
11687
  "data-testid": "env-deployment-template",
11685
11688
  className: "dc__nav-item cursor dc__gap-8 fs-13 lh-32 cn-7 w-100 br-4 px-8 flexbox dc__align-items-center dc__no-decor",
11686
- to: v,
11689
+ to: S,
11687
11690
  onClick: I,
11688
11691
  children: [
11689
11692
  R && /* @__PURE__ */ t.jsx(R, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
@@ -11815,7 +11818,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11815
11818
  try {
11816
11819
  return JSON.stringify(
11817
11820
  Jt.parse(
11818
- yt(e, {
11821
+ jt(e, {
11819
11822
  sortMapEntries: n ? (r, o) => xS(r, o, a) : null
11820
11823
  })
11821
11824
  )
@@ -11876,7 +11879,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11876
11879
  a,
11877
11880
  r,
11878
11881
  o
11879
- ), l = n === Zt.Secret ? Dt.SECRET.VALUE : Dt.CONFIGMAP.VALUE, d = oa(
11882
+ ), l = n === Zt.Secret ? Pt.SECRET.VALUE : Pt.CONFIGMAP.VALUE, d = oa(
11880
11883
  { ...e || {}, codeEditorValue: i },
11881
11884
  l,
11882
11885
  n === Zt.Secret && !a
@@ -11903,7 +11906,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11903
11906
  ...YA(e, s),
11904
11907
  codeEditorValue: r
11905
11908
  },
11906
- Dt.DEPLOYMENT_TEMPLATE.VALUE
11909
+ Pt.DEPLOYMENT_TEMPLATE.VALUE
11907
11910
  );
11908
11911
  }, Jl = (e) => {
11909
11912
  const s = {
@@ -11912,7 +11915,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11912
11915
  };
11913
11916
  return oa(
11914
11917
  { codeEditorValue: s },
11915
- Dt.DEPLOYMENT_TEMPLATE.VALUE
11918
+ Pt.DEPLOYMENT_TEMPLATE.VALUE
11916
11919
  );
11917
11920
  }, Zl = (e, s) => {
11918
11921
  const n = {
@@ -11921,7 +11924,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
11921
11924
  };
11922
11925
  return oa(
11923
11926
  { ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
11924
- Dt.PIPELINE_STRATEGY.VALUE
11927
+ Pt.PIPELINE_STRATEGY.VALUE
11925
11928
  );
11926
11929
  }, gr = (e, s) => {
11927
11930
  let n = !1, a = !1, r = !1;
@@ -12069,8 +12072,8 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12069
12072
  },
12070
12073
  diffState: Ja(E, _)
12071
12074
  };
12072
- let C, v, I;
12073
- (x.pipelineConfigData || g.pipelineConfigData) && (C = Zl(x.pipelineConfigData, c), v = Zl(
12075
+ let C, S, I;
12076
+ (x.pipelineConfigData || g.pipelineConfigData) && (C = Zl(x.pipelineConfigData, c), S = Zl(
12074
12077
  g.pipelineConfigData,
12075
12078
  c
12076
12079
  ), I = {
@@ -12079,13 +12082,13 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12079
12082
  title: "Pipeline Configuration",
12080
12083
  primaryConfig: {
12081
12084
  heading: null,
12082
- list: v
12085
+ list: S
12083
12086
  },
12084
12087
  secondaryConfig: {
12085
12088
  heading: null,
12086
12089
  list: C
12087
12090
  },
12088
- diffState: Ja(C, v)
12091
+ diffState: Ja(C, S)
12089
12092
  });
12090
12093
  const A = ed(
12091
12094
  x.configMapData,
@@ -12108,7 +12111,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12108
12111
  ...I ? [I] : [],
12109
12112
  ...A,
12110
12113
  ...R
12111
- ], S = [
12114
+ ], v = [
12112
12115
  {
12113
12116
  title: N.title,
12114
12117
  diffState: N.diffState,
@@ -12160,7 +12163,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12160
12163
  return {
12161
12164
  configList: b,
12162
12165
  collapsibleNavList: y,
12163
- navList: S
12166
+ navList: v
12164
12167
  };
12165
12168
  }
12166
12169
  const l = e, d = s, u = Jl(l), m = Jl(d), p = {
@@ -12277,7 +12280,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12277
12280
  const o = e.findIndex(({ id: d }) => d === s), c = e.slice(o + 1).map(
12278
12281
  ({ id: d, startedOn: u, stage: m, triggeredBy: p, triggeredByEmail: f, status: h, artifact: x }) => ({
12279
12282
  value: d,
12280
- label: Ve(u).format(jt.TWELVE_HOURS_FORMAT),
12283
+ label: Ve(u).format(Ot.TWELVE_HOURS_FORMAT),
12281
12284
  description: QA({
12282
12285
  stage: m,
12283
12286
  triggeredByEmail: f,
@@ -12291,7 +12294,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12291
12294
  })
12292
12295
  );
12293
12296
  return { currentDeployment: Ve(e[o].startedOn).format(
12294
- jt.TWELVE_HOURS_FORMAT
12297
+ Ot.TWELVE_HOURS_FORMAT
12295
12298
  ), pipelineDeploymentsOptions: c };
12296
12299
  }, sR = (e) => (s) => ({
12297
12300
  compareWfrId: +(s.get("compareWfrId") || e)
@@ -12309,11 +12312,11 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12309
12312
  isCompareDeploymentConfigNotAvailable: u,
12310
12313
  ...m
12311
12314
  }) => {
12312
- const { path: p, params: f } = Ns(), { resourceType: h, resourceName: x, appId: g, envId: E } = f, { compareWfrId: _, updateSearchParams: N, sortBy: C, sortOrder: v, handleSorting: I } = r, [A, R] = O({
12315
+ const { path: p, params: f } = Ns(), { resourceType: h, resourceName: x, appId: g, envId: E } = f, { compareWfrId: _, updateSearchParams: N, sortBy: C, sortOrder: S, handleSorting: I } = r, [A, R] = O({
12313
12316
  isLoading: !1,
12314
12317
  data: c,
12315
12318
  hasMore: c.size >= Zs
12316
- }), [b, S] = O(n);
12319
+ }), [b, v] = O(n);
12317
12320
  P(() => (N({ compareWfrId: _ }), s(!0), C !== Xa && I(Xa), () => {
12318
12321
  i(!1), s(!1);
12319
12322
  }), []);
@@ -12329,7 +12332,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12329
12332
  isLoading: !1,
12330
12333
  data: he,
12331
12334
  hasMore: Q.cdWorkflows?.length === Zs
12332
- }), S(np(he));
12335
+ }), v(np(he));
12333
12336
  } catch {
12334
12337
  R({ ...A, isLoading: !1 });
12335
12338
  }
@@ -12386,9 +12389,9 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12386
12389
  }
12387
12390
  ]
12388
12391
  }, oe = () => B ? u ? `Diff unavailable: Configurations for deployment execution ‘${D?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${D?.label || "N/A"} & ${w}` : null, Ee = {
12389
- handleSorting: () => I(v !== be.DESC ? Xa : ""),
12392
+ handleSorting: () => I(S !== be.DESC ? Xa : ""),
12390
12393
  sortBy: C,
12391
- sortOrder: v
12394
+ sortOrder: S
12392
12395
  }, ve = {
12393
12396
  convertVariables: o,
12394
12397
  onConvertVariablesClick: () => i(!o)
@@ -12424,7 +12427,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12424
12427
  [f, a]
12425
12428
  ), g = !!x, E = Ki({
12426
12429
  parseSearchParams: sR(x)
12427
- }), { compareWfrId: _, sortBy: N, sortOrder: C } = E, [v, I] = O(!1), [A, R, , b] = Ot(async () => {
12430
+ }), { compareWfrId: _, sortBy: N, sortOrder: C } = E, [S, I] = O(!1), [A, R, , b] = Lt(async () => {
12428
12431
  const W = [
12429
12432
  {
12430
12433
  appName: e,
@@ -12449,7 +12452,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12449
12452
  return oe.status !== "fulfilled" || !oe.value || oe.value.forEach((Ee, ve) => {
12450
12453
  te[ve].status !== "fulfilled" || !te[ve].value || te[ve].value.result.isAppAdmin || (te[ve].value.result.secretsData = Ee.secretsData);
12451
12454
  }), te;
12452
- }, [h, _]), S = (W, oe) => `${Xs(l, { ...d })}/${W}${oe ? `/${oe}` : ""}${m}`, { deploymentConfigList: y, sortedDeploymentConfigList: T } = X(() => {
12455
+ }, [h, _]), v = (W, oe) => `${Xs(l, { ...d })}/${W}${oe ? `/${oe}` : ""}${m}`, { deploymentConfigList: y, sortedDeploymentConfigList: T } = X(() => {
12453
12456
  if (!A && R) {
12454
12457
  const W = g && R[1].status === "fulfilled" ? R[1].value.result : {
12455
12458
  configMapData: null,
@@ -12459,14 +12462,14 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12459
12462
  }, oe = R[0].status === "fulfilled" ? R[0].value.result : null, te = sd({
12460
12463
  currentList: oe,
12461
12464
  compareList: W,
12462
- getNavItemHref: S,
12463
- convertVariables: v,
12465
+ getNavItemHref: v,
12466
+ convertVariables: S,
12464
12467
  sortingConfig: { sortBy: N, sortOrder: C }
12465
12468
  }), Ee = sd({
12466
12469
  currentList: oe,
12467
12470
  compareList: W,
12468
- getNavItemHref: S,
12469
- convertVariables: v,
12471
+ getNavItemHref: v,
12472
+ convertVariables: S,
12470
12473
  sortingConfig: { sortBy: Xa, sortOrder: be.ASC }
12471
12474
  });
12472
12475
  return { deploymentConfigList: te, sortedDeploymentConfigList: Ee };
@@ -12476,7 +12479,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12476
12479
  g,
12477
12480
  A,
12478
12481
  R,
12479
- v,
12482
+ S,
12480
12483
  N,
12481
12484
  C
12482
12485
  ]), j = X(
@@ -12508,7 +12511,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12508
12511
  urlFilters: E,
12509
12512
  pipelineDeployments: f,
12510
12513
  setFullScreenView: o,
12511
- convertVariables: v,
12514
+ convertVariables: S,
12512
12515
  setConvertVariables: I,
12513
12516
  triggerHistory: r,
12514
12517
  resourceId: i,
@@ -12545,18 +12548,18 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12545
12548
  previousConfigAvailable: n,
12546
12549
  rootClassName: a
12547
12550
  }) => {
12548
- const { historyComponent: r, historyComponentName: o } = Lt(), [i, c] = O(!1), l = Object.keys(s?.codeEditorValue?.variableSnapshot || {}).length !== 0 || Object.keys(e?.codeEditorValue?.variableSnapshot || {}).length !== 0, d = X(() => {
12551
+ const { historyComponent: r, historyComponentName: o } = wt(), [i, c] = O(!1), l = Object.keys(s?.codeEditorValue?.variableSnapshot || {}).length !== 0 || Object.keys(e?.codeEditorValue?.variableSnapshot || {}).length !== 0, d = X(() => {
12549
12552
  if (!s?.codeEditorValue?.value)
12550
12553
  return "";
12551
12554
  const x = i ? s?.codeEditorValue?.resolvedValue : s?.codeEditorValue?.value;
12552
- return yt(JSON.parse(x));
12555
+ return jt(JSON.parse(x));
12553
12556
  }, [i, s]), u = X(() => {
12554
12557
  if (!e?.codeEditorValue?.value)
12555
12558
  return "";
12556
12559
  const x = i ? e?.codeEditorValue?.resolvedValue : e?.codeEditorValue?.value;
12557
- return yt(JSON.parse(x));
12560
+ return jt(JSON.parse(x));
12558
12561
  }, [i, e]), m = () => n ? /* @__PURE__ */ t.jsx(
12559
- Pt,
12562
+ Mt,
12560
12563
  {
12561
12564
  height: "100%",
12562
12565
  originalValue: u,
@@ -12566,7 +12569,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12566
12569
  diffView: !0,
12567
12570
  collapseUnchangedDiffView: !0
12568
12571
  }
12569
- ) : /* @__PURE__ */ t.jsx(Pt, { value: d, height: "auto", disableSearch: !0, readOnly: !0, noParsing: !0, mode: rt.YAML }), p = () => {
12572
+ ) : /* @__PURE__ */ t.jsx(Mt, { value: d, height: "auto", disableSearch: !0, readOnly: !0, noParsing: !0, mode: rt.YAML }), p = () => {
12570
12573
  c(!i);
12571
12574
  }, f = i ? "Hide variables values" : "Show variables values", h = (x, g, E) => /* @__PURE__ */ t.jsxs("div", { className: `${x} px-16 py-8`, children: [
12572
12575
  /* @__PURE__ */ t.jsx("div", { className: "cn-6 lh-16", "data-testid": E, children: g.displayName }),
@@ -12576,7 +12579,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12576
12579
  !n && /* @__PURE__ */ t.jsxs("div", { className: "bcb-1 eb-2 pt-8 pb-8 br-4 flexbox pl-4 cn-9 fs-13 mt-16 mb-16 mr-20 ml-20", children: [
12577
12580
  /* @__PURE__ */ t.jsx(pa, { className: "mr-8 ml-14 icon-dim-20" }),
12578
12581
  /* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
12579
- Dt[r.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
12582
+ Pt[r.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
12580
12583
  o ? ` “${o}”` : "",
12581
12584
  " was added in this deployment. There is no previous instance to compare with."
12582
12585
  ] })
@@ -12781,7 +12784,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12781
12784
  ] }),
12782
12785
  g(),
12783
12786
  f(!0)
12784
- ] }), v = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
12787
+ ] }), S = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
12785
12788
  /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__content-space", children: [
12786
12789
  _(u.data["target checkout"]),
12787
12790
  N()
@@ -12790,7 +12793,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12790
12793
  ] }), I = () => {
12791
12794
  if (!d) return null;
12792
12795
  const A = u.eventactiontype === oR.MERGED;
12793
- return r.includes(Ct.GITLAB) ? A ? v() : C() : A ? C() : v();
12796
+ return r.includes(Ct.GITLAB) ? A ? S() : C() : A ? C() : S();
12794
12797
  };
12795
12798
  return /* @__PURE__ */ t.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
12796
12799
  o && (d || l.commit) && !!r && /* @__PURE__ */ t.jsx(
@@ -12857,7 +12860,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12857
12860
  ] }) : null,
12858
12861
  l.date ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8", children: [
12859
12862
  /* @__PURE__ */ t.jsx(Qn, { className: "icon-dim-16 scn-7" }),
12860
- /* @__PURE__ */ t.jsx("span", { className: "lh-20", children: Ve(l.date).format(jt.TWELVE_HOURS_FORMAT) })
12863
+ /* @__PURE__ */ t.jsx("span", { className: "lh-20", children: Ve(l.date).format(Ot.TWELVE_HOURS_FORMAT) })
12861
12864
  ] }) : null
12862
12865
  ] })
12863
12866
  ] }),
@@ -12875,7 +12878,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12875
12878
  }, [n]), l = !s || r.includes("/logs");
12876
12879
  return P(() => (l && e.length && o({ callback: c, keys: e }), () => {
12877
12880
  i(e);
12878
- }), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className: Rn(Tt.dark), children: /* @__PURE__ */ t.jsx(
12881
+ }), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className: Rn(St.dark), children: /* @__PURE__ */ t.jsx(
12879
12882
  Z,
12880
12883
  {
12881
12884
  placement: "left",
@@ -12895,7 +12898,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12895
12898
  )
12896
12899
  }
12897
12900
  ) });
12898
- }, uR = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className: Rn(Tt.dark), children: /* @__PURE__ */ t.jsxs("div", { style: n, className: "dc__element-scroller flex column top br-4", children: [
12901
+ }, uR = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className: Rn(St.dark), children: /* @__PURE__ */ t.jsxs("div", { style: n, className: "dc__element-scroller flex column top br-4", children: [
12899
12902
  /* @__PURE__ */ t.jsx(Z, { alwaysShowTippyOnHover: !0, content: "Scroll to Top", placement: "left", children: /* @__PURE__ */ t.jsx(
12900
12903
  "button",
12901
12904
  {
@@ -12950,8 +12953,8 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12950
12953
  );
12951
12954
  const C = _r(n);
12952
12955
  return /* @__PURE__ */ t.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
12953
- s?.map((v, I) => {
12954
- const A = e[v.id];
12956
+ s?.map((S, I) => {
12957
+ const A = e[S.id];
12955
12958
  return A && (A.Commit || A.WebhookData?.data) ? /* @__PURE__ */ t.jsx(
12956
12959
  "div",
12957
12960
  {
@@ -12962,12 +12965,12 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
12962
12965
  ap,
12963
12966
  {
12964
12967
  index: I,
12965
- materialUrl: A?.GitRepoUrl ? A.GitRepoUrl : v?.url,
12968
+ materialUrl: A?.GitRepoUrl ? A.GitRepoUrl : S?.url,
12966
12969
  showMaterialInfoHeader: !0,
12967
12970
  commitInfo: A,
12968
- materialSourceType: A?.CiConfigureSourceType ? A.CiConfigureSourceType : v?.type,
12971
+ materialSourceType: A?.CiConfigureSourceType ? A.CiConfigureSourceType : S?.type,
12969
12972
  selectedCommitInfo: "",
12970
- materialSourceValue: A?.CiConfigureSourceValue ? A.CiConfigureSourceValue : v?.value
12973
+ materialSourceValue: A?.CiConfigureSourceValue ? A.CiConfigureSourceValue : S?.value
12971
12974
  }
12972
12975
  )
12973
12976
  },
@@ -13153,9 +13156,9 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13153
13156
  }
13154
13157
  return P(() => (e && g(), p), [e, s]), [n, u.current, o];
13155
13158
  }, gR = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
13156
- const { pipelineId: r, envId: o, appId: i } = Lt(), c = U(null), l = n === Fe.CI ? `${lr}/${F.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${lr}/${F.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = hR(
13159
+ const { pipelineId: r, envId: o, appId: i } = wt(), c = U(null), l = n === Fe.CI ? `${lr}/${F.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${lr}/${F.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = hR(
13157
13160
  e.podStatus && e.podStatus !== To.PENDING && l
13158
- ), [p, f] = O([]), [h, x] = O([]), [g, E] = O(0), [_, N] = O([]), { searchKey: C, handleSearch: v } = Ki(), I = h.length > 0, A = X(() => p.every((V) => V.isOpen), [p]), R = A ? "Collapse all stages" : "Expand all stages", { registerShortcut: b, unregisterShortcut: S } = an(), y = d[0]?.startsWith(Ll) || !1;
13161
+ ), [p, f] = O([]), [h, x] = O([]), [g, E] = O(0), [_, N] = O([]), { searchKey: C, handleSearch: S } = Ki(), I = h.length > 0, A = X(() => p.every((V) => V.isOpen), [p]), R = A ? "Collapse all stages" : "Expand all stages", { registerShortcut: b, unregisterShortcut: v } = an(), y = d[0]?.startsWith(Ll) || !1;
13159
13162
  function T({
13160
13163
  log: V,
13161
13164
  currentIndex: Q = -1,
@@ -13271,7 +13274,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13271
13274
  );
13272
13275
  }, [A]);
13273
13276
  P(() => (b({ callback: D, keys: ["E"] }), () => {
13274
- S(["E"]);
13277
+ v(["E"]);
13275
13278
  }), [D]);
13276
13279
  const B = (V, Q = C) => {
13277
13280
  if (h.length > 0 || V === "reset") {
@@ -13283,7 +13286,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13283
13286
  }, W = () => {
13284
13287
  B("prev");
13285
13288
  }, oe = (V) => {
13286
- v(V), C === V ? q() : B("reset", V);
13289
+ S(V), C === V ? q() : B("reset", V);
13287
13290
  }, te = (V) => {
13288
13291
  const Q = structuredClone(p);
13289
13292
  Q[V].isOpen = !1, f(Q);
@@ -13423,7 +13426,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13423
13426
  return /* @__PURE__ */ t.jsx(
13424
13427
  "div",
13425
13428
  {
13426
- className: `flexbox-col flex-grow-1 ${Rn(Tt.dark)}`,
13429
+ className: `flexbox-col flex-grow-1 ${Rn(St.dark)}`,
13427
13430
  ref: c,
13428
13431
  children: e.podStatus !== To.PENDING && m && (!s || !e.blobStorageEnabled) ? fR(s) : ve()
13429
13432
  }
@@ -13799,7 +13802,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13799
13802
  s.length > 1 && /* @__PURE__ */ t.jsx("span", { className: "flex br-4 pl-6 pr-6 bcb-1", children: "…" })
13800
13803
  ]
13801
13804
  }
13802
- ) }) : /* @__PURE__ */ t.jsx("span", {}), ip = St(
13805
+ ) }) : /* @__PURE__ */ t.jsx("span", {}), ip = vt(
13803
13806
  ({
13804
13807
  ciMaterials: e,
13805
13808
  gitTriggers: s,
@@ -13837,7 +13840,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13837
13840
  ] }) }, a.id);
13838
13841
  }) })
13839
13842
  )
13840
- ), cp = St(
13843
+ ), cp = vt(
13841
13844
  ({
13842
13845
  message: e,
13843
13846
  podStatus: s,
@@ -13889,7 +13892,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13889
13892
  ] })
13890
13893
  ] });
13891
13894
  }
13892
- ), od = "icon-dim-20 dc__no-shrink", vR = St(
13895
+ ), od = "icon-dim-20 dc__no-shrink", vR = vt(
13893
13896
  ({
13894
13897
  workflowExecutionStages: e,
13895
13898
  triggeredByEmail: s,
@@ -13927,7 +13930,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13927
13930
  /* @__PURE__ */ t.jsx(ip, { gitTriggers: o, ciMaterials: i })
13928
13931
  ] });
13929
13932
  }
13930
- ), IR = St(
13933
+ ), IR = vt(
13931
13934
  ({
13932
13935
  status: e,
13933
13936
  startedOn: s,
@@ -13941,7 +13944,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13941
13944
  /* @__PURE__ */ t.jsx("span", { className: "fw-6 fs-16 mb-4", style: { color: ri[e.toLowerCase()] }, children: Gm(e) }),
13942
13945
  /* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
13943
13946
  /* @__PURE__ */ t.jsxs("div", { className: "flex left fs-12 cn-7", children: [
13944
- /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: Ve(s).format(jt.TWELVE_HOURS_FORMAT) }),
13947
+ /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: Ve(s).format(Ot.TWELVE_HOURS_FORMAT) }),
13945
13948
  /* @__PURE__ */ t.jsx("div", { className: "dc__bullet ml-6 mr-6 dc__no-shrink" }),
13946
13949
  /* @__PURE__ */ t.jsx(Z, { content: i, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: i }) })
13947
13950
  ] }),
@@ -13949,7 +13952,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13949
13952
  ] })
13950
13953
  ] });
13951
13954
  }
13952
- ), AR = St(
13955
+ ), AR = vt(
13953
13956
  ({ handleViewAllHistory: e }) => /* @__PURE__ */ t.jsxs("div", { className: "flex pt-12 pb-12 pl-16 pr-16 dc__gap-16 dc__align-self-stretch", children: [
13954
13957
  /* @__PURE__ */ t.jsx(
13955
13958
  "button",
@@ -13963,7 +13966,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13963
13966
  ),
13964
13967
  /* @__PURE__ */ t.jsx("div", { style: { flex: "1 0 0" }, children: /* @__PURE__ */ t.jsx("p", { className: "ci-cd-details__sidebar-typography", children: "View all items in history" }) })
13965
13968
  ] })
13966
- ), RR = St(
13969
+ ), RR = vt(
13967
13970
  ({
13968
13971
  id: e,
13969
13972
  status: s,
@@ -13983,21 +13986,21 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13983
13986
  namespace: x,
13984
13987
  workflowExecutionStages: g
13985
13988
  }) => {
13986
- const { path: E, params: _ } = Ns(), { pathname: N } = xs(), C = N.split("/").pop(), { envId: v, ...I } = Lt(), A = l === Fe.CD || l === Fe.GROUP_CD, R = A ? "triggerId" : "buildId", b = f === p?.id, S = U(null), y = () => {
13989
+ const { path: E, params: _ } = Ns(), { pathname: N } = xs(), C = N.split("/").pop(), { envId: S, ...I } = wt(), A = l === Fe.CD || l === Fe.GROUP_CD, R = A ? "triggerId" : "buildId", b = f === p?.id, v = U(null), y = () => {
13987
13990
  const D = {
13988
13991
  ...I,
13989
- envId: v,
13992
+ envId: S,
13990
13993
  [R]: e
13991
13994
  };
13992
13995
  return `${Xs(E, D)}/${C}`;
13993
13996
  }, T = () => {
13994
- S?.current && S.current.scrollIntoView({ behavior: "smooth" });
13997
+ v?.current && v.current.scrollIntoView({ behavior: "smooth" });
13995
13998
  };
13996
13999
  P(() => {
13997
14000
  T();
13998
- }, [S]);
14001
+ }, [v]);
13999
14002
  const j = _[R], w = (D) => {
14000
- +j == +e && (S.current = D);
14003
+ +j == +e && (v.current = D);
14001
14004
  }, M = d !== ms.DEPLOY && Object.keys(g || {}).length > 0;
14002
14005
  return /* @__PURE__ */ t.jsx(
14003
14006
  Et,
@@ -14056,7 +14059,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
14056
14059
  ),
14057
14060
  /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
14058
14061
  /* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
14059
- /* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20", children: Ve(n).format(jt.TWELVE_HOURS_FORMAT) }),
14062
+ /* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20", children: Ve(n).format(Ot.TWELVE_HOURS_FORMAT) }),
14060
14063
  /* @__PURE__ */ t.jsxs("div", { className: "flex left cn-7 fs-12", children: [
14061
14064
  A && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
14062
14065
  /* @__PURE__ */ t.jsx("div", { className: "dc__first-letter-capitalize dc__no-shrink", children: ["pre", "post"].includes(d?.toLowerCase()) ? `${d}-deploy` : d }),
@@ -14091,7 +14094,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
14091
14094
  renderRunSource: l,
14092
14095
  resourceId: d
14093
14096
  }) => {
14094
- const { pipelineId: u, appId: m, envId: p } = Lt(), { push: f } = Lr(), { path: h } = Ns(), x = (I) => {
14097
+ const { pipelineId: u, appId: m, envId: p } = wt(), { push: f } = Lr(), { path: h } = Ns(), x = (I) => {
14095
14098
  e === Fe.CI ? (r({ offset: 0, size: 20 }), f(Xs(h, { appId: m, pipelineId: I.value }))) : e === Fe.GROUP_CI ? (r({ offset: 0, size: 20 }), f(Xs(h, { envId: p, pipelineId: I.pipelineId }))) : e === Fe.GROUP_CD ? (r({ offset: 0, size: 20 }), f(Xs(h, { envId: p, appId: I.value, pipelineId: I.pipelineId }))) : (r({ offset: 0, size: 20 }), f(Xs(h, { appId: m, envId: I.value, pipelineId: I.pipelineId })));
14096
14099
  }, g = () => {
14097
14100
  as.event({
@@ -14102,7 +14105,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
14102
14105
  }), r({ offset: n.size, size: 20 });
14103
14106
  }, E = () => e === Fe.CI || e === Fe.GROUP_CI ? u : e === Fe.GROUP_CD ? m : p, _ = s?.find((I) => I.value === E()) ?? null;
14104
14107
  s?.sort((I, A) => I.label > A.label ? 1 : -1);
14105
- const N = s?.filter((I) => !I.deploymentAppDeleteRequest), C = () => e === Fe.GROUP_CI || e === Fe.GROUP_CD ? bo.APPLICATION : e === Fe.CI ? bo.PIPELINE : bo.ENVIRONMENT, v = (I) => (I.selectProps.styles.option = CR(), /* @__PURE__ */ t.jsx(Ge.Option, { ...I, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
14108
+ const N = s?.filter((I) => !I.deploymentAppDeleteRequest), C = () => e === Fe.GROUP_CI || e === Fe.GROUP_CD ? bo.APPLICATION : e === Fe.CI ? bo.PIPELINE : bo.ENVIRONMENT, S = (I) => (I.selectProps.styles.option = CR(), /* @__PURE__ */ t.jsx(Ge.Option, { ...I, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
14106
14109
  (e === Fe.CI || e === Fe.GROUP_CI) && /* @__PURE__ */ t.jsx(
14107
14110
  H,
14108
14111
  {
@@ -14136,7 +14139,7 @@ const oc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
14136
14139
  onChange: x,
14137
14140
  components: {
14138
14141
  IndicatorSeparator: null,
14139
- Option: v,
14142
+ Option: S,
14140
14143
  DropdownIndicator: lL
14141
14144
  },
14142
14145
  styles: Yv,
@@ -14496,14 +14499,14 @@ const LR = (e) => {
14496
14499
  isLandscapeView: d = !1,
14497
14500
  showConfetti: u = !1
14498
14501
  }) => {
14499
- const { registerShortcut: m, unregisterShortcut: p } = an(), [f, h] = O(""), x = o?.identifier, g = o?.confirmationKeyword, { primaryButtonConfig: E, secondaryButtonConfig: _ } = r, N = n ?? LR(a), C = a === ts.custom && !n, v = "disabled" in E && E.disabled || g && f.trim() !== g, I = () => {
14500
- E && !v && E.onClick();
14502
+ const { registerShortcut: m, unregisterShortcut: p } = an(), [f, h] = O(""), x = o?.identifier, g = o?.confirmationKeyword, { primaryButtonConfig: E, secondaryButtonConfig: _ } = r, N = n ?? LR(a), C = a === ts.custom && !n, S = "disabled" in E && E.disabled || g && f.trim() !== g, I = () => {
14503
+ E && !S && E.onClick();
14501
14504
  }, A = Be(() => {
14502
14505
  !E?.isLoading && !_?.disabled && c();
14503
14506
  }, [E, _]);
14504
14507
  P(() => (m({ keys: ["Enter"], callback: I }), () => {
14505
14508
  p(["Enter"]);
14506
- }), [E, v]);
14509
+ }), [E, S]);
14507
14510
  const R = (b) => {
14508
14511
  h(b.target.value);
14509
14512
  };
@@ -14562,7 +14565,7 @@ const LR = (e) => {
14562
14565
  size: L.large,
14563
14566
  variant: J.primary,
14564
14567
  style: "style" in E ? E.style : DR(a),
14565
- disabled: v,
14568
+ disabled: S,
14566
14569
  isLoading: E.isLoading,
14567
14570
  text: E.text,
14568
14571
  onClick: E.onClick,
@@ -14656,15 +14659,15 @@ const LR = (e) => {
14656
14659
  successToastMessage: p,
14657
14660
  children: f
14658
14661
  }) => {
14659
- const [h, x] = O(!1), [g, E] = O(!1), [_, N] = O(u), [C, v] = O(o), I = async (T) => {
14660
- T && Se(T), v(!0);
14662
+ const [h, x] = O(!1), [g, E] = O(!1), [_, N] = O(u), [C, S] = O(o), I = async (T) => {
14663
+ T && Se(T), S(!0);
14661
14664
  try {
14662
14665
  await i(), Me.showToast({
14663
14666
  variant: Ce.success,
14664
14667
  description: p || "Successfully deleted"
14665
- }), v(!1), l();
14668
+ }), S(!1), l();
14666
14669
  } catch (j) {
14667
- j instanceof $t && j.code === m ? (x(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && N(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : we(j), v(!1);
14670
+ j instanceof $t && j.code === m ? (x(!0), Array.isArray(j.errors) && j.errors.length > 0 && !u && N(j.errors[0].userMessage)) : typeof c == "function" ? c(j) : we(j), S(!1);
14668
14671
  }
14669
14672
  }, A = () => {
14670
14673
  x(!1), l();
@@ -14676,7 +14679,7 @@ const LR = (e) => {
14676
14679
  closeConfirmationModal: A,
14677
14680
  component: n
14678
14681
  }
14679
- ), S = () => /* @__PURE__ */ t.jsx(
14682
+ ), v = () => /* @__PURE__ */ t.jsx(
14680
14683
  kR,
14681
14684
  {
14682
14685
  title: e,
@@ -14711,9 +14714,9 @@ const LR = (e) => {
14711
14714
  return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
14712
14715
  !h && !g && y(),
14713
14716
  h && b(),
14714
- g && S()
14717
+ g && v()
14715
14718
  ] });
14716
- }, id = St(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
14719
+ }, id = vt(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
14717
14720
  const o = r?.finishedOn || s, i = () => r ? /* @__PURE__ */ t.jsxs("span", { className: "cn-9 fs-13 fw-6 lh-20", children: [
14718
14721
  "Execution ",
14719
14722
  tI[r.currentStatus] || "finished"
@@ -14733,11 +14736,11 @@ const LR = (e) => {
14733
14736
  /* @__PURE__ */ t.jsx(ic, { imagePath: n, placement: "top" })
14734
14737
  ] })
14735
14738
  ] });
14736
- }), cd = St(({ stage: e, type: s, label: n = "In progress" }) => {
14739
+ }), cd = vt(({ stage: e, type: s, label: n = "In progress" }) => {
14737
14740
  const [a, r] = O(!1), [o, i] = O(!1), [c, l] = O({
14738
14741
  status: !1,
14739
14742
  message: ""
14740
- }), { buildId: d, triggerId: u, pipelineId: m } = Lt();
14743
+ }), { buildId: d, triggerId: u, pipelineId: m } = wt();
14741
14744
  let p = null;
14742
14745
  s === Fe.CI ? p = (g) => VI({ pipelineId: m, workflowId: d }, g) : e !== ms.DEPLOY && (p = (g) => GI(m, u, g));
14743
14746
  async function f() {
@@ -14836,7 +14839,7 @@ const LR = (e) => {
14836
14839
  }
14837
14840
  )
14838
14841
  ] });
14839
- }), $R = St(
14842
+ }), $R = vt(
14840
14843
  ({ status: e, finishedOn: s, artifact: n, stage: a, type: r, executionInfo: o }) => o ? o.finishedOn ? /* @__PURE__ */ t.jsx(id, { executionInfo: o, artifact: n, type: r }) : o.currentStatus === je.RUNNING ? /* @__PURE__ */ t.jsx(
14841
14844
  cd,
14842
14845
  {
@@ -14913,7 +14916,7 @@ const LR = (e) => {
14913
14916
  }, Ws = () => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsx("div", { className: "dc__border-left--n3 h-100" }) }), ld = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
14914
14917
  /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(H, { size: 20, name: "ic-success", color: null }) }),
14915
14918
  Ws()
14916
- ] }), BR = St(
14919
+ ] }), BR = vt(
14917
14920
  ({ status: e }) => /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx(
14918
14921
  "circle",
14919
14922
  {
@@ -14926,7 +14929,7 @@ const LR = (e) => {
14926
14929
  strokeWidth: "10"
14927
14930
  }
14928
14931
  ) })
14929
- ), VR = St(({ status: e, executionInfoCurrentStatus: s }) => s ? Vm(s) : Qv[e] ? /* @__PURE__ */ t.jsx(Jf, {}) : /* @__PURE__ */ t.jsx(BR, { status: e.toLowerCase() })), GR = St(
14932
+ ), VR = vt(({ status: e, executionInfoCurrentStatus: s }) => s ? Vm(s) : Qv[e] ? /* @__PURE__ */ t.jsx(Jf, {}) : /* @__PURE__ */ t.jsx(BR, { status: e.toLowerCase() })), GR = vt(
14930
14933
  ({
14931
14934
  status: e,
14932
14935
  startedOn: s,
@@ -15122,19 +15125,19 @@ const LR = (e) => {
15122
15125
  uniqueGroupId: x,
15123
15126
  iconElement: g
15124
15127
  }) => {
15125
- const { pathname: E, search: _ } = xs(), N = U(null), [C, v] = O(n === "button" && a);
15128
+ const { pathname: E, search: _ } = xs(), N = U(null), [C, S] = O(n === "button" && a);
15126
15129
  P(() => {
15127
15130
  if (n === "navLink") {
15128
- v(N.current?.classList.contains("active") || !1);
15131
+ S(N.current?.classList.contains("active") || !1);
15129
15132
  return;
15130
15133
  }
15131
- v(a);
15134
+ S(a);
15132
15135
  }, [a, n, E, _]);
15133
15136
  const { tabClassName: I, iconClassName: A, badgeClassName: R } = HR({
15134
15137
  hideTopPadding: c
15135
15138
  })[o], b = (T) => {
15136
15139
  (a || T.currentTarget.classList.contains("active") || n === "navLink" && m) && T.preventDefault(), s?.onClick?.(T);
15137
- }, S = () => {
15140
+ }, v = () => {
15138
15141
  const T = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
15139
15142
  /* @__PURE__ */ t.jsxs("span", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
15140
15143
  WR({ className: A, icon: r, showError: d, showWarning: u, size: o, active: a, iconElement: g }),
@@ -15195,7 +15198,7 @@ const LR = (e) => {
15195
15198
  {
15196
15199
  className: `tab-group__tab lh-20 ${a ? "cb-5 fw-6" : "cn-9 fw-4"} ${n === "block" ? "tab-group__tab--block" : ""} ${m ? "dc__disabled" : "cursor"}`,
15197
15200
  children: [
15198
- S(),
15201
+ v(),
15199
15202
  C && /* @__PURE__ */ t.jsx(JR, { layoutId: x })
15200
15203
  ]
15201
15204
  }
@@ -15244,18 +15247,18 @@ const LR = (e) => {
15244
15247
  renderVirtualHistoryArtifacts: _,
15245
15248
  scrollToTop: N,
15246
15249
  scrollToBottom: C,
15247
- fullScreenView: v,
15250
+ fullScreenView: S,
15248
15251
  appName: I,
15249
15252
  triggerHistory: A,
15250
15253
  targetPlatforms: R
15251
15254
  }) => {
15252
- const { path: b } = Ns(), { appId: S, pipelineId: y, triggerId: T, envId: j } = Lt(), w = {
15253
- appId: S,
15255
+ const { path: b } = Ns(), { appId: v, pipelineId: y, triggerId: T, envId: j } = wt(), w = {
15256
+ appId: v,
15254
15257
  envId: j,
15255
15258
  appName: e.helmPackageName,
15256
15259
  workflowId: e.id,
15257
15260
  cdWorkflowType: HC[e.stage]
15258
- }, M = `app/cd-pipeline/workflow/download/${S}/${j}/${y}/${T}`;
15261
+ }, M = `app/cd-pipeline/workflow/download/${v}/${j}/${y}/${T}`;
15259
15262
  return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container bg__tertiary flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(nu, { children: [
15260
15263
  e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(zs, { path: `${b}/logs`, children: [
15261
15264
  /* @__PURE__ */ t.jsx(
@@ -15264,7 +15267,7 @@ const LR = (e) => {
15264
15267
  triggerDetails: e,
15265
15268
  isBlobStorageConfigured: r,
15266
15269
  parentType: Fe.CD,
15267
- fullScreenView: v
15270
+ fullScreenView: S
15268
15271
  }
15269
15272
  ),
15270
15273
  (N || C) && /* @__PURE__ */ t.jsx(
@@ -15281,7 +15284,7 @@ const LR = (e) => {
15281
15284
  deploymentStatus: e.status,
15282
15285
  deploymentAppType: a,
15283
15286
  userApprovalMetadata: o,
15284
- isGitops: a === Mt.GITOPS || a === Mt.MANIFEST_DOWNLOAD || a === Mt.MANIFEST_PUSH,
15287
+ isGitops: a === Tt.GITOPS || a === Tt.FLUX || a === Tt.MANIFEST_DOWNLOAD || a === Tt.MANIFEST_PUSH,
15285
15288
  isHelmApps: !1,
15286
15289
  isVirtualEnvironment: e.IsVirtualEnvironment,
15287
15290
  processVirtualEnvironmentDeploymentData: x,
@@ -15329,7 +15332,7 @@ const LR = (e) => {
15329
15332
  (e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(zs, { path: `${b}/artifacts`, children: e.IsVirtualEnvironment && _ ? _({
15330
15333
  status: e.status,
15331
15334
  title: e.helmPackageName,
15332
- params: { ...w, appId: Number(S), envId: Number(j) }
15335
+ params: { ...w, appId: Number(v), envId: Number(j) }
15333
15336
  }) : /* @__PURE__ */ t.jsx(
15334
15337
  Fm,
15335
15338
  {
@@ -15380,14 +15383,14 @@ const LR = (e) => {
15380
15383
  renderDeploymentHistoryTriggerMetaText: _,
15381
15384
  resourceId: N,
15382
15385
  scrollToTop: C,
15383
- scrollToBottom: v,
15386
+ scrollToBottom: S,
15384
15387
  renderTargetConfigInfo: I,
15385
15388
  appName: A
15386
15389
  }) => {
15387
- const { appId: R, triggerId: b, envId: S, pipelineId: y } = Lt(), T = s.get(+b), [j, w, M, D] = Ot(
15388
- () => FI({ appId: R, envId: S, pipelineId: y, triggerId: b, fetchIdData: d }),
15390
+ const { appId: R, triggerId: b, envId: v, pipelineId: y } = wt(), T = s.get(+b), [j, w, M, D] = Lt(
15391
+ () => FI({ appId: R, envId: v, pipelineId: y, triggerId: b, fetchIdData: d }),
15389
15392
  // TODO: Ask if fetchIdData is required here as dependency
15390
- [b, R, S],
15393
+ [b, R, v],
15391
15394
  !!b && !!y
15392
15395
  ), B = Kr(T?.targetPlatforms), q = (V, Q, fe) => {
15393
15396
  if (fe) {
@@ -15408,7 +15411,7 @@ const LR = (e) => {
15408
15411
  };
15409
15412
  let W = !!d && d !== js.SUSPEND;
15410
15413
  (w?.result?.artifactId === 0 || T?.artifactId === 0) && (W = !1);
15411
- const [oe, te, Ee] = Ot(
15414
+ const [oe, te, Ee] = Lt(
15412
15415
  () => BI({
15413
15416
  pipelineId: y,
15414
15417
  artifactId: w?.result?.artifactId || T?.artifactId
@@ -15492,7 +15495,7 @@ const LR = (e) => {
15492
15495
  renderCIListHeader: h,
15493
15496
  renderVirtualHistoryArtifacts: E,
15494
15497
  scrollToTop: C,
15495
- scrollToBottom: v,
15498
+ scrollToBottom: S,
15496
15499
  fullScreenView: e,
15497
15500
  appName: A,
15498
15501
  triggerHistory: s,
@@ -15530,7 +15533,7 @@ const LR = (e) => {
15530
15533
  }, dd = (e) => `${e.kind}/${e.name}`, di = ({
15531
15534
  type: e,
15532
15535
  appDetails: s
15533
- }) => !s || e === "stack-manager" || s.appType !== ht.DEVTRON_APP && s.appType !== ht.DEVTRON_HELM_CHART ? !1 : s.appType === ht.DEVTRON_HELM_CHART ? !!s.lastDeployedTime && s.deploymentAppType !== Mt.HELM : s.releaseMode !== cm.MIGRATE_EXTERNAL_APPS || s.isPipelineTriggered, s0 = (e) => Qr.includes(e) ? oh : Km.includes(e) ? rh : Wm.includes(e) ? _n : kr, ud = "px-16 py-8 dc__grid dc__column-gap-16 app-status-content__row", mp = ({
15536
+ }) => !s || e === "stack-manager" || s.appType !== ht.DEVTRON_APP && s.appType !== ht.DEVTRON_HELM_CHART ? !1 : s.appType === ht.DEVTRON_HELM_CHART ? !!s.lastDeployedTime && s.deploymentAppType !== Tt.HELM : s.releaseMode !== cm.MIGRATE_EXTERNAL_APPS || s.isPipelineTriggered, s0 = (e) => Qr.includes(e) ? oh : Km.includes(e) ? rh : Wm.includes(e) ? _n : kr, ud = "px-16 py-8 dc__grid dc__column-gap-16 app-status-content__row", mp = ({
15534
15537
  appDetails: e,
15535
15538
  handleShowConfigDriftModal: s,
15536
15539
  filterHealthyNodes: n = !1,
@@ -16038,16 +16041,16 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16038
16041
  ), [
16039
16042
  N,
16040
16043
  C,
16041
- v,
16044
+ S,
16042
16045
  I,
16043
16046
  A
16044
- ] = Ot(_, [], n === "release"), R = n === "release" ? C : a, b = di({ type: n, appDetails: R }), S = U(new AbortController()), y = U(null), T = async () => {
16047
+ ] = Lt(_, [], n === "release"), R = n === "release" ? C : a, b = di({ type: n, appDetails: R }), v = U(new AbortController()), y = U(null), T = async () => {
16045
16048
  const Y = await jr(
16046
16049
  () => u0({
16047
- abortControllerRef: S,
16050
+ abortControllerRef: v,
16048
16051
  appId: R.appType === ht.DEVTRON_HELM_CHART ? R.installedAppId : R.appId,
16049
16052
  envId: R.environmentId,
16050
- showTimeline: h === ft.DEPLOYMENT_STATUS && R.deploymentAppType !== Mt.HELM && !R.isVirtualEnvironment,
16053
+ showTimeline: h === ft.DEPLOYMENT_STATUS && R.deploymentAppType !== Tt.HELM && !R.isVirtualEnvironment,
16051
16054
  virtualEnvironmentConfig: R.isVirtualEnvironment ? {
16052
16055
  processVirtualEnvironmentDeploymentData: r,
16053
16056
  wfrId: R.resourceTree?.wfrId
@@ -16055,7 +16058,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16055
16058
  isHelmApp: R.appType === ht.DEVTRON_HELM_CHART,
16056
16059
  deploymentAppType: R.deploymentAppType
16057
16060
  }),
16058
- S
16061
+ v
16059
16062
  );
16060
16063
  return o?.(Y), Y;
16061
16064
  }, [
@@ -16064,7 +16067,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16064
16067
  M,
16065
16068
  D,
16066
16069
  B
16067
- ] = Ot(T, [b, h], !!b, {
16070
+ ] = Lt(T, [b, h], !!b, {
16068
16071
  resetOnChange: !1
16069
16072
  }), q = async () => {
16070
16073
  E.current = setTimeout(
@@ -16095,10 +16098,10 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16095
16098
  },
16096
16099
  Y ? YC : xe
16097
16100
  );
16098
- }, oe = N || Yt(v), te = j || Yt(M), Ee = h === ft.DEPLOYMENT_STATUS && te;
16101
+ }, oe = N || Yt(S), te = j || Yt(M), Ee = h === ft.DEPLOYMENT_STATUS && te;
16099
16102
  P(() => {
16100
- !N && !v && C && !E.current && q();
16101
- }, [N, C, v]), P(() => {
16103
+ !N && !S && C && !E.current && q();
16104
+ }, [N, C, S]), P(() => {
16102
16105
  !j && !M && w && !y.current && W();
16103
16106
  }, [j, w, M]);
16104
16107
  const ve = () => {
@@ -16106,7 +16109,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16106
16109
  };
16107
16110
  P(
16108
16111
  () => () => {
16109
- E.current && clearTimeout(E.current), ve(), g.current.abort(), S.current.abort();
16112
+ E.current && clearTimeout(E.current), ve(), g.current.abort(), v.current.abort();
16110
16113
  },
16111
16114
  []
16112
16115
  );
@@ -16128,7 +16131,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16128
16131
  );
16129
16132
  const he = (e || []).filter((Y) => !!Y), Ne = () => h ? h === ft.APP_STATUS ? R?.resourceTree ? "" : "Application status is not available" : !w || !di({ type: n, appDetails: R }) ? "Deployment status is not available" : "" : "Status is not available", re = () => {
16130
16133
  const Y = Ne();
16131
- return Y ? /* @__PURE__ */ t.jsx(Je, { image: kr, title: Y }) : h === ft.DEPLOYMENT_STATUS && R.deploymentAppType === Mt.HELM ? /* @__PURE__ */ t.jsx(
16134
+ return Y ? /* @__PURE__ */ t.jsx(Je, { image: kr, title: Y }) : h === ft.DEPLOYMENT_STATUS && R.deploymentAppType === Tt.HELM ? /* @__PURE__ */ t.jsx(
16132
16135
  Je,
16133
16136
  {
16134
16137
  image: s0(
@@ -16171,7 +16174,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16171
16174
  )
16172
16175
  ] })
16173
16176
  ] });
16174
- }, _e = h === ft.DEPLOYMENT_STATUS ? M : null, me = v || _e, se = v ? I : D;
16177
+ }, _e = h === ft.DEPLOYMENT_STATUS ? M : null, me = S || _e, se = S ? I : D;
16175
16178
  return /* @__PURE__ */ t.jsx(cc, { position: "right", width: "1024px", onClose: s, onEscape: s, children: /* @__PURE__ */ t.jsxs(
16176
16179
  "div",
16177
16180
  {
@@ -16198,7 +16201,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16198
16201
  }
16199
16202
  )
16200
16203
  ] }),
16201
- !oe && !v && !!R && /* @__PURE__ */ t.jsx(
16204
+ !oe && !S && !!R && /* @__PURE__ */ t.jsx(
16202
16205
  l0,
16203
16206
  {
16204
16207
  handleSelectTab: fe,
@@ -16288,7 +16291,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16288
16291
  renderCIListHeader: a,
16289
16292
  fetchOnlyArtifactInfo: r = !1
16290
16293
  }) => {
16291
- const [o, i, c, l] = Ot(
16294
+ const [o, i, c, l] = Lt(
16292
16295
  () => r ? lb({
16293
16296
  ciArtifactId: s
16294
16297
  }) : cb({
@@ -16322,7 +16325,7 @@ const i0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16322
16325
  className: "dc__transparent flex",
16323
16326
  onClick: n,
16324
16327
  "aria-label": "Close modal",
16325
- children: /* @__PURE__ */ t.jsx(wt, { className: "icon-dim-24 icon-use-fill-n6" })
16328
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "icon-dim-24 icon-use-fill-n6" })
16326
16329
  }
16327
16330
  )
16328
16331
  ] }),
@@ -16511,7 +16514,7 @@ const p0 = {
16511
16514
  {
16512
16515
  className: "fs-12 lh-20 fw-4 fcn-8",
16513
16516
  "data-testid": "security-info-card-last-scan-time",
16514
- children: `Scanned on ${eu(s).format(jt.TWELVE_HOURS_FORMAT)}`
16517
+ children: `Scanned on ${eu(s).format(Ot.TWELVE_HOURS_FORMAT)}`
16515
16518
  }
16516
16519
  )
16517
16520
  ] }),
@@ -17316,7 +17319,7 @@ const p0 = {
17316
17319
  default:
17317
17320
  return null;
17318
17321
  }
17319
- }, Ep = (e, s) => e && e !== An && s === "Completed" ? eu(e).format(jt.TWELVE_HOURS_FORMAT) : s === "Progressing" ? "Scan in progress" : null, M0 = (e, s, n) => ({
17322
+ }, Ep = (e, s) => e && e !== An && s === "Completed" ? eu(e).format(Ot.TWELVE_HOURS_FORMAT) : s === "Progressing" ? "Scan in progress" : null, M0 = (e, s, n) => ({
17320
17323
  headers: [
17321
17324
  { headerText: "image", isSortable: !1, width: 256 },
17322
17325
  { headerText: "vulnerability", isSortable: !1, width: 256 },
@@ -17698,7 +17701,7 @@ const p0 = {
17698
17701
  {
17699
17702
  dataTestId: "close-security-modal",
17700
17703
  ariaLabel: "close-security-modal",
17701
- icon: /* @__PURE__ */ t.jsx(wt, {}),
17704
+ icon: /* @__PURE__ */ t.jsx(Dt, {}),
17702
17705
  onClick: s,
17703
17706
  showAriaLabelInTippy: !1,
17704
17707
  size: L.xs,
@@ -17729,7 +17732,7 @@ const p0 = {
17729
17732
  const _ = q0(c, l.category, l.subCategory, f);
17730
17733
  if (_)
17731
17734
  return /* @__PURE__ */ t.jsx(Je, { ..._, imageType: Bs.Large });
17732
- const { headers: N, rows: C, defaultSortIndex: v, hasExpandableRows: I } = f || z0(c, l.category, l.subCategory, u, o), { entities: A, lastScanTimeString: R, scanToolName: b, scanToolUrl: S } = f || W0(c, l.category, l.subCategory);
17735
+ const { headers: N, rows: C, defaultSortIndex: S, hasExpandableRows: I } = f || z0(c, l.category, l.subCategory, u, o), { entities: A, lastScanTimeString: R, scanToolName: b, scanToolUrl: v } = f || W0(c, l.category, l.subCategory);
17733
17736
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
17734
17737
  A?.length ? /* @__PURE__ */ t.jsx(
17735
17738
  _0,
@@ -17737,7 +17740,7 @@ const p0 = {
17737
17740
  entities: A,
17738
17741
  lastScanTimeString: R,
17739
17742
  scanToolName: b,
17740
- scanToolUrl: S
17743
+ scanToolUrl: v
17741
17744
  },
17742
17745
  `${l.category}-${l.subCategory}`
17743
17746
  ) : null,
@@ -17746,7 +17749,7 @@ const p0 = {
17746
17749
  {
17747
17750
  headers: N,
17748
17751
  rows: C,
17749
- defaultSortIndex: v,
17752
+ defaultSortIndex: S,
17750
17753
  hasExpandableRows: I,
17751
17754
  headerTopPosition: f ? 40 : 0
17752
17755
  },
@@ -17924,7 +17927,7 @@ const p0 = {
17924
17927
  ) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[g].subCategories.map((C) => {
17925
17928
  if (!e[g][C])
17926
17929
  return null;
17927
- const v = g === ce.IMAGE_SCAN && br(e[g][C].list ?? []) === "Failed", I = C === ee.MISCONFIGURATIONS ? e[g][C]?.misConfSummary?.status : e[g][C]?.summary?.severities;
17930
+ const S = g === ce.IMAGE_SCAN && br(e[g][C].list ?? []) === "Failed", I = C === ee.MISCONFIGURATIONS ? e[g][C]?.misConfSummary?.status : e[g][C]?.summary?.severities;
17928
17931
  return /* @__PURE__ */ t.jsx(
17929
17932
  Np,
17930
17933
  {
@@ -17932,7 +17935,7 @@ const p0 = {
17932
17935
  subCategory: C,
17933
17936
  severities: I,
17934
17937
  handleCardClick: h(g, C),
17935
- scanFailed: v
17938
+ scanFailed: S
17936
17939
  }
17937
17940
  );
17938
17941
  }) })
@@ -17965,7 +17968,7 @@ const p0 = {
17965
17968
  setVulnerabilityCount: o,
17966
17969
  SecurityModalSidebar: i
17967
17970
  }) => {
17968
- const [c, l] = O(!1), [d, u, m, p] = Ot(
17971
+ const [c, l] = O(!1), [d, u, m, p] = Lt(
17969
17972
  () => X0({ artifactId: n, appId: a, envId: r }),
17970
17973
  [],
17971
17974
  e && s,
@@ -18055,19 +18058,19 @@ const p0 = {
18055
18058
  d(_);
18056
18059
  }, h = Be(
18057
18060
  (_, N) => {
18058
- const C = Ao.some((I) => I.label === u), v = Q0[u] ?? ((I) => I);
18061
+ const C = Ao.some((I) => I.label === u), S = Q0[u] ?? ((I) => I);
18059
18062
  if (!C) {
18060
18063
  const I = _.additionalKeys?.find((R) => R.label === u)?.value || "", A = N.additionalKeys?.find((R) => R.label === u)?.value || "";
18061
18064
  return dt(I, A, m);
18062
18065
  }
18063
- return (m === be.ASC ? 1 : -1) * (v(_[hd[u]]) < v(N[hd[u]]) ? -1 : 1);
18066
+ return (m === be.ASC ? 1 : -1) * (S(_[hd[u]]) < S(N[hd[u]]) ? -1 : 1);
18064
18067
  },
18065
18068
  [m, u]
18066
18069
  ), x = a.getResults(e ? null : h), g = Ao.reduce(
18067
18070
  (_, N, C) => {
18068
18071
  if (_.push(N), C === 0) {
18069
- const v = x?.[0]?.additionalKeys;
18070
- v?.length && v.forEach((I) => {
18072
+ const S = x?.[0]?.additionalKeys;
18073
+ S?.length && S.forEach((I) => {
18071
18074
  _.push({
18072
18075
  label: I.label,
18073
18076
  isSortable: I.isSortable,
@@ -18099,7 +18102,7 @@ const p0 = {
18099
18102
  /* @__PURE__ */ t.jsx(
18100
18103
  K,
18101
18104
  {
18102
- icon: /* @__PURE__ */ t.jsx(wt, {}),
18105
+ icon: /* @__PURE__ */ t.jsx(Dt, {}),
18103
18106
  dataTestId: "rb-bulk-action__cross",
18104
18107
  component: gt.button,
18105
18108
  style: ue.negativeGrey,
@@ -18161,7 +18164,7 @@ const p0 = {
18161
18164
  },
18162
18165
  children: [
18163
18166
  /* @__PURE__ */ t.jsx(Z, { content: _.name, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: _.name }) }),
18164
- _.additionalKeys?.map((v) => /* @__PURE__ */ t.jsx(Z, { content: v.value, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: v.value || "-" }) })),
18167
+ _.additionalKeys?.map((S) => /* @__PURE__ */ t.jsx(Z, { content: S.value, children: /* @__PURE__ */ t.jsx("span", { className: "dc__word-break", children: S.value || "-" }) })),
18165
18168
  /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-6 dc__align-items-center dc__align-self-start", children: [
18166
18169
  _.status !== "Pending" && Tr(_.status),
18167
18170
  /* @__PURE__ */ t.jsx("span", { children: _.status })
@@ -18293,7 +18296,7 @@ const mB = ({
18293
18296
  R >= 0 || (R = setTimeout(() => {
18294
18297
  p((/* @__PURE__ */ new Date()).toISOString()), R = -1;
18295
18298
  }, 10));
18296
- }, S = f.current.map((y) => async () => {
18299
+ }, v = f.current.map((y) => async () => {
18297
18300
  const { operation: T, name: j, additionalKeys: w, renderContentAtResultRowEnd: M = null } = y;
18298
18301
  if (x.current.signal.aborted)
18299
18302
  throw new Error("bulk operations aborted");
@@ -18328,7 +18331,7 @@ const mB = ({
18328
18331
  }), b();
18329
18332
  }
18330
18333
  });
18331
- await TC(S, !0), Me.showToast({
18334
+ await TC(v, !0), Me.showToast({
18332
18335
  variant: Ce.info,
18333
18336
  description: "Action completed"
18334
18337
  }), r && E();
@@ -18343,7 +18346,7 @@ const mB = ({
18343
18346
  }), []);
18344
18347
  const N = u ? wa : E, C = async () => {
18345
18348
  f.current = h.current.getRetryOperations(), h.current = new gd(f.current.length), x.current = new AbortController(), await _();
18346
- }, v = () => {
18349
+ }, S = () => {
18347
18350
  x.current.abort();
18348
18351
  }, I = () => /* @__PURE__ */ t.jsx(
18349
18352
  sn,
@@ -18368,7 +18371,7 @@ const mB = ({
18368
18371
  ey,
18369
18372
  {
18370
18373
  apiCallInProgress: u,
18371
- handleAbortBulkOperation: v,
18374
+ handleAbortBulkOperation: S,
18372
18375
  handleModalClose: N,
18373
18376
  isOperationAborted: x.current?.signal.aborted ?? !1,
18374
18377
  resultsStore: h.current,
@@ -18547,7 +18550,7 @@ const sy = "bulk-selection-pop-up-menu", Ro = {
18547
18550
  locator: Xe.CLEAR_ALL_SELECTIONS,
18548
18551
  label: Ro[Xe.CLEAR_ALL_SELECTIONS],
18549
18552
  isSelected: !1,
18550
- icon: wt,
18553
+ icon: Dt,
18551
18554
  iconClass: "icon-use-fill-n6"
18552
18555
  }
18553
18556
  ] : []
@@ -18731,7 +18734,7 @@ const pB = ({
18731
18734
  }
18732
18735
  return Object.keys(n).map((a, r) => ({
18733
18736
  key: a,
18734
- value: typeof n[a] == "object" ? yt(n[a]) : n[a],
18737
+ value: typeof n[a] == "object" ? jt(n[a]) : n[a],
18735
18738
  id: r
18736
18739
  }));
18737
18740
  }, dy = ({
@@ -18743,18 +18746,18 @@ const pB = ({
18743
18746
  esoSubPath: s,
18744
18747
  external: n,
18745
18748
  subPath: a
18746
- }) => a && n && e ? Object.keys(e).join(", ") : s ? s.join(", ") : "", my = (e) => e.length ? yt(e.reduce((s, { key: n, value: a }) => ({ ...s, [n]: a }), {})) : "", py = ({
18749
+ }) => a && n && e ? Object.keys(e).join(", ") : s ? s.join(", ") : "", my = (e) => e.length ? jt(e.reduce((s, { key: n, value: a }) => ({ ...s, [n]: a }), {})) : "", py = ({
18747
18750
  secretData: e,
18748
18751
  defaultSecretData: s,
18749
18752
  esoSecretData: n,
18750
18753
  defaultESOSecretData: a
18751
18754
  }) => {
18752
18755
  let r;
18753
- e?.length ? r = yt(e) : s?.length && (r = yt(s));
18756
+ e?.length ? r = jt(e) : s?.length && (r = jt(s));
18754
18757
  const o = !(n?.esoData || []).length && !n?.template && !n?.esoDataFrom && a ? a : n, i = (o?.secretStore || o?.secretStoreRef) && (o.esoData || o.template || o.esoDataFrom);
18755
18758
  return {
18756
18759
  secretDataYaml: r ?? "",
18757
- esoSecretYaml: i ? yt(o) : ""
18760
+ esoSecretYaml: i ? jt(o) : ""
18758
18761
  };
18759
18762
  }, Ec = ({
18760
18763
  isJob: e,
@@ -18800,8 +18803,8 @@ const pB = ({
18800
18803
  yaml: null
18801
18804
  };
18802
18805
  if (s) {
18803
- const C = e || l ? Vi.REPLACE : o, v = s.mergeStrategy || (n === Gr.INHERITED ? C : null), I = dy({
18804
- configMapSecretData: { ...s, mergeStrategy: v },
18806
+ const C = e || l ? Vi.REPLACE : o, S = s.mergeStrategy || (n === Gr.INHERITED ? C : null), I = dy({
18807
+ configMapSecretData: { ...s, mergeStrategy: S },
18805
18808
  cmSecretStateLabel: n,
18806
18809
  isSecret: i
18807
18810
  });
@@ -18815,7 +18818,7 @@ const pB = ({
18815
18818
  }),
18816
18819
  yaml: my(I),
18817
18820
  currentData: I,
18818
- mergeStrategy: v,
18821
+ mergeStrategy: S,
18819
18822
  ...py(s)
18820
18823
  };
18821
18824
  }
@@ -18865,7 +18868,7 @@ const pB = ({
18865
18868
  }), N = i && c === (_ ? Pe.KubernetesSecret : Pe.Internal);
18866
18869
  let C = "";
18867
18870
  return _ ? C = i && c === "" ? Pe.KubernetesSecret : bn(ly(a, !0), c).label : C = cy.find(
18868
- ({ value: v }) => i && c === "" ? v === Pe.KubernetesConfigMap : v === c
18871
+ ({ value: S }) => i && c === "" ? S === Pe.KubernetesConfigMap : S === c
18869
18872
  ).label, {
18870
18873
  configData: [
18871
18874
  {
@@ -18906,7 +18909,7 @@ const pB = ({
18906
18909
  ...o ? [
18907
18910
  {
18908
18911
  displayName: "Keys",
18909
- value: E?.length > 0 ? E.map((v) => v.key).join(", ") : "No keys available",
18912
+ value: E?.length > 0 ? E.map((S) => S.key).join(", ") : "No keys available",
18910
18913
  key: "keys"
18911
18914
  }
18912
18915
  ] : []
@@ -18921,7 +18924,7 @@ const pB = ({
18921
18924
  return Object.keys(s).reduce((a, r, o) => {
18922
18925
  if (!r && !s[r])
18923
18926
  return ca;
18924
- const i = s[r] && typeof s[r] == "object" ? yt(s[r]) : s[r].toString();
18927
+ const i = s[r] && typeof s[r] == "object" ? jt(s[r]) : s[r].toString();
18925
18928
  return [...a, { key: r, value: i ?? "", id: o }];
18926
18929
  }, []);
18927
18930
  } catch {
@@ -18964,13 +18967,13 @@ const pB = ({
18964
18967
  isSubPathChecked: h,
18965
18968
  mergeStrategy: x
18966
18969
  }) => {
18967
- const g = e && om(n), _ = (o ? fy(r) : i).reduce((C, v) => {
18968
- if (!v.key)
18970
+ const g = e && om(n), _ = (o ? fy(r) : i).reduce((C, S) => {
18971
+ if (!S.key)
18969
18972
  return C;
18970
- const I = v.value ?? "";
18973
+ const I = S.value ?? "";
18971
18974
  return {
18972
18975
  ...C,
18973
- [v.key]: e && n === "" ? btoa(I) : I
18976
+ [S.key]: e && n === "" ? btoa(I) : I
18974
18977
  };
18975
18978
  }, {}), N = {
18976
18979
  name: d,
@@ -18998,10 +19001,10 @@ const pB = ({
18998
19001
  }, N.roleARN = p, h && a && (N.esoSubPath = a.replace(/\s+/g, "").split(",")));
18999
19002
  }
19000
19003
  if (u === vr.volume.value && (N.mountPath = f, N.subPath = h, m && (N.filePermission = l.length === 3 ? `0${l}` : `${l}`), h && (e && n === Pe.KubernetesSecret || !e && s))) {
19001
- const C = a.replace(/\s+/g, "").split(","), v = {};
19004
+ const C = a.replace(/\s+/g, "").split(","), S = {};
19002
19005
  C.forEach((I) => {
19003
- v[I] = "";
19004
- }), N.data = v;
19006
+ S[I] = "";
19007
+ }), N.data = S;
19005
19008
  }
19006
19009
  return N;
19007
19010
  }, _B = ({
@@ -19042,9 +19045,9 @@ const pB = ({
19042
19045
  )
19043
19046
  }
19044
19047
  ),
19045
- !i && u.data && /* @__PURE__ */ t.jsx(Pt.Container, { children: /* @__PURE__ */ t.jsx(Pt, { mode: rt.YAML, readOnly: !0, value: u.data, height: "auto", children: /* @__PURE__ */ t.jsx(Pt.Header, { children: /* @__PURE__ */ t.jsxs("div", { className: "flex dc__content-space", children: [
19048
+ !i && u.data && /* @__PURE__ */ t.jsx(Mt.Container, { children: /* @__PURE__ */ t.jsx(Mt, { mode: rt.YAML, readOnly: !0, value: u.data, height: "auto", children: /* @__PURE__ */ t.jsx(Mt.Header, { children: /* @__PURE__ */ t.jsxs("div", { className: "flex dc__content-space", children: [
19046
19049
  /* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-20 fw-6 cn-9", children: "Data" }),
19047
- /* @__PURE__ */ t.jsx(Pt.Clipboard, {})
19050
+ /* @__PURE__ */ t.jsx(Mt.Clipboard, {})
19048
19051
  ] }) }) }) })
19049
19052
  ]
19050
19053
  }
@@ -19062,7 +19065,7 @@ const pB = ({
19062
19065
  let o = "";
19063
19066
  return Object.keys(s).forEach((i) => {
19064
19067
  !i && !s[i] && (o = "This is a required field");
19065
- const c = s[i] && typeof s[i] == "object" ? yt(s[i]) : s[i].toString();
19068
+ const c = s[i] && typeof s[i] == "object" ? jt(s[i]) : s[i].toString();
19066
19069
  i && n.test(i) || a.push(i), c && (typeof s[i] == "boolean" || typeof s[i] == "number") && r.push(c);
19067
19070
  }), o ? {
19068
19071
  isValid: () => !1,
@@ -19256,7 +19259,7 @@ const pB = ({
19256
19259
  E.data.value.name.toLowerCase(),
19257
19260
  `+${E.data.value.dialCode.toLowerCase()}`,
19258
19261
  E.data.value.iso2.toLowerCase()
19259
- ].some((v) => v.includes(N));
19262
+ ].some((S) => S.includes(N));
19260
19263
  }, x = (E) => E.value.iso2, g = (E, _) => _.context === "menu" || c === "default" ? E.label : `+${E.value.dialCode}`;
19261
19264
  return /* @__PURE__ */ t.jsx(
19262
19265
  Vt,
@@ -19449,7 +19452,7 @@ const pB = ({
19449
19452
  s(jy(e, A?.toDate()));
19450
19453
  }, C = (A) => {
19451
19454
  s(yy(e, A.value).value);
19452
- }, v = Ve(), I = (A) => d && !A.isAfter(v);
19455
+ }, S = Ve(), I = (A) => d && !A.isAfter(S);
19453
19456
  return /* @__PURE__ */ t.jsxs("div", { className: "date-time-picker", children: [
19454
19457
  o && /* @__PURE__ */ t.jsx("label", { className: `form__label ${i ? "dc__required-field" : ""}`, htmlFor: r, children: o }),
19455
19458
  /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
@@ -19471,7 +19474,7 @@ const pB = ({
19471
19474
  readOnly: l || !1,
19472
19475
  customInputIcon: /* @__PURE__ */ t.jsx(Qn, { className: "icon-dim-20 scn-6" }),
19473
19476
  inputIconPosition: "after",
19474
- displayFormat: jt.DD_MMM_YYYY,
19477
+ displayFormat: Ot.DD_MMM_YYYY,
19475
19478
  "data-testid": m,
19476
19479
  isDayBlocked: I,
19477
19480
  disabled: a,
@@ -19605,7 +19608,7 @@ const so = ({
19605
19608
  e,
19606
19609
  d,
19607
19610
  c || o
19608
- ), x = so({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", g = (_) => () => n?.handleSorting(_), E = ({ key: _, label: N, isSortable: C, renderAdditionalContent: v }) => {
19611
+ ), x = so({ headers: e, actionButtonConfig: d }) === 0 && d.position !== "end", g = (_) => () => n?.handleSorting(_), E = ({ key: _, label: N, isSortable: C, renderAdditionalContent: S }) => {
19609
19612
  const I = !p && _ === u;
19610
19613
  return /* @__PURE__ */ t.jsxs(
19611
19614
  "div",
@@ -19629,7 +19632,7 @@ const so = ({
19629
19632
  }
19630
19633
  }
19631
19634
  ),
19632
- typeof v == "function" && v()
19635
+ typeof S == "function" && S()
19633
19636
  ]
19634
19637
  }
19635
19638
  ) : /* @__PURE__ */ t.jsxs(
@@ -19638,7 +19641,7 @@ const so = ({
19638
19641
  className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-4 ${f ? "dc__top-left-radius" : "dc__left-radius-4"}`,
19639
19642
  children: [
19640
19643
  N,
19641
- typeof v == "function" && v()
19644
+ typeof S == "function" && S()
19642
19645
  ]
19643
19646
  }
19644
19647
  ),
@@ -19849,7 +19852,7 @@ const _t = ({
19849
19852
  if (C.isIntersecting && C.intersectionRatio >= 1)
19850
19853
  l(1);
19851
19854
  else {
19852
- const { boundingClientRect: v, rootBounds: I } = C, { x: A, y: R, height: b, width: S } = v, {
19855
+ const { boundingClientRect: S, rootBounds: I } = C, { x: A, y: R, height: b, width: v } = S, {
19853
19856
  x: y,
19854
19857
  y: T,
19855
19858
  height: j,
@@ -19859,14 +19862,14 @@ const _t = ({
19859
19862
  top: B,
19860
19863
  bottom: q
19861
19864
  } = u.current.getBoundingClientRect();
19862
- R + b > I.height && (i({ left: y, bottom: document.documentElement.clientHeight - T }), l(1)), A + S > I.width && (i((W) => ({ ...W, right: "20px", left: "unset" })), l(1));
19865
+ R + b > I.height && (i({ left: y, bottom: document.documentElement.clientHeight - T }), l(1)), A + v > I.width && (i((W) => ({ ...W, right: "20px", left: "unset" })), l(1));
19863
19866
  }
19864
19867
  });
19865
19868
  }
19866
19869
  const h = (_) => {
19867
19870
  _.stopPropagation(), r && _.preventDefault(), l(0);
19868
- const { height: N, x: C, y: v } = _.currentTarget.getBoundingClientRect();
19869
- i({ left: C, top: v + N });
19871
+ const { height: N, x: C, y: S } = _.currentTarget.getBoundingClientRect();
19872
+ i({ left: C, top: S + N });
19870
19873
  }, x = (_, N) => {
19871
19874
  n || N === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), l(0), i(null)) : _.stopPropagation();
19872
19875
  };
@@ -19876,7 +19879,7 @@ const _t = ({
19876
19879
  function E(_) {
19877
19880
  if (!_) return;
19878
19881
  u.current = _;
19879
- const { bottom: N, height: C, left: v, right: I, top: A, width: R, x: b, y: S } = _.getBoundingClientRect();
19882
+ const { bottom: N, height: C, left: S, right: I, top: A, width: R, x: b, y: v } = _.getBoundingClientRect();
19880
19883
  m.current = R;
19881
19884
  }
19882
19885
  return /* @__PURE__ */ t.jsx(
@@ -19985,39 +19988,39 @@ const xd = ({
19985
19988
  }, E = (b) => {
19986
19989
  if (!b.relatedTarget || !b.relatedTarget.classList.value || !b.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
19987
19990
  h("");
19988
- const S = { ...s };
19989
- S[o] = m, o === ds.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);
19991
+ const v = { ...s };
19992
+ v[o] = m, o === ds.KEY ? v.isInvalidKey = m || v.propagate ? !x.propagateTagKey(m).isValid : v.value !== "" : m || r || v.propagate ? (v.isInvalidValue = !x.propagateTagValue(m, v.key).isValid, v.isInvalidKey = !v.key || v.isInvalidKey) : (v.isInvalidValue = !1, v.isInvalidKey = v.key ? v.isInvalidKey : !1), n(e, v);
19990
19993
  }
19991
19994
  }, _ = (b) => {
19992
19995
  p(b.target.value);
19993
19996
  }, N = (b) => {
19994
19997
  Se(b);
19995
- const S = { ...s };
19996
- S[o] = b.currentTarget.dataset.key, S.propagate = b.currentTarget.dataset.propagate === "true", n(e, S), h("");
19998
+ const v = { ...s };
19999
+ v[o] = b.currentTarget.dataset.key, v.propagate = b.currentTarget.dataset.propagate === "true", n(e, v), h("");
19997
20000
  }, C = () => {
19998
20001
  let b = { isValid: !0, messages: [] };
19999
20002
  return o === ds.KEY ? (m || s.value) && (b = x.propagateTagKey(m)) : (r || m || s.propagate) && (b = x.propagateTagValue(m, s.key)), b.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Se, "data-testid": "tag-label-cross-stop-propagation", children: [
20000
- b.messages.map((S) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
20003
+ b.messages.map((v) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
20001
20004
  /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Cs, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
20002
- /* @__PURE__ */ t.jsx("span", { children: S })
20003
- ] }, S)),
20005
+ /* @__PURE__ */ t.jsx("span", { children: v })
20006
+ ] }, v)),
20004
20007
  o === ds.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
20005
20008
  /* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(ea, { className: "icon-dim-14 mt-3 mr-4" }) }),
20006
20009
  /* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
20007
20010
  ] })
20008
20011
  ] });
20009
- }, v = (b, S) => /* @__PURE__ */ t.jsx(
20012
+ }, S = (b, v) => /* @__PURE__ */ t.jsx(
20010
20013
  "div",
20011
20014
  {
20012
20015
  "data-key": b.label,
20013
20016
  "data-propagate": b.propagate,
20014
20017
  className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
20015
20018
  onClick: N,
20016
- "data-testid": `tag-label-value-${S}`,
20019
+ "data-testid": `tag-label-value-${v}`,
20017
20020
  children: b.label
20018
20021
  },
20019
- `${b.value}-${S}`
20020
- ), I = (b, S) => /* @__PURE__ */ t.jsx(
20022
+ `${b.value}-${v}`
20023
+ ), I = (b, v) => /* @__PURE__ */ t.jsx(
20021
20024
  Te,
20022
20025
  {
20023
20026
  className: "default-tt",
@@ -20027,14 +20030,14 @@ const xd = ({
20027
20030
  /* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: b.label }),
20028
20031
  /* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: b.description })
20029
20032
  ] }),
20030
- children: v(b, S)
20033
+ children: S(b, v)
20031
20034
  }
20032
20035
  ), A = () => {
20033
20036
  if (a?.length) {
20034
- const b = a.filter((S) => S.label.indexOf(m) >= 0);
20037
+ const b = a.filter((v) => v.label.indexOf(m) >= 0);
20035
20038
  if (b.length)
20036
20039
  return /* @__PURE__ */ t.jsx("div", { children: b.map(
20037
- (S, y) => S.description ? I(S, y) : v(S, y)
20040
+ (v, y) => v.description ? I(v, y) : S(v, y)
20038
20041
  ) });
20039
20042
  }
20040
20043
  return C();
@@ -20240,7 +20243,7 @@ const Yy = ({
20240
20243
  break;
20241
20244
  }
20242
20245
  i(T, j, M, D);
20243
- }, v = (T) => () => {
20246
+ }, S = (T) => () => {
20244
20247
  c(T);
20245
20248
  }, I = (T, j, w) => {
20246
20249
  const M = n || T.data[j].disabled, D = E.current && j === (m ?? s[0].key) && w === 0;
@@ -20357,7 +20360,7 @@ const Yy = ({
20357
20360
  }, b = (T) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4", children: [
20358
20361
  /* @__PURE__ */ t.jsx(H, { name: "ic-close-small", color: "R500" }),
20359
20362
  /* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: T })
20360
- ] }, T), S = (T, j) => {
20363
+ ] }, T), v = (T, j) => {
20361
20364
  const { isValid: w, errorMessages: M } = !T.data[j].disabled && r[T.id]?.[j] ? r[T.id][j] : { isValid: !0, errorMessages: [] }, D = T.data[j].type === Qe.SELECT_TEXT || T.data[j].type === Qe.DROPDOWN;
20362
20365
  return w ? null : /* @__PURE__ */ t.jsx(
20363
20366
  "div",
@@ -20384,7 +20387,7 @@ const Yy = ({
20384
20387
  I(T, j, w),
20385
20388
  A(T, j),
20386
20389
  R(T, j),
20387
- S(T, j)
20390
+ v(T, j)
20388
20391
  ]
20389
20392
  }
20390
20393
  )
@@ -20425,7 +20428,7 @@ const Yy = ({
20425
20428
  showAriaLabelInTippy: !1,
20426
20429
  icon: /* @__PURE__ */ t.jsx(H, { name: "ic-close-large", color: null }),
20427
20430
  disabled: x || T.disableDelete,
20428
- onClick: v(T),
20431
+ onClick: S(T),
20429
20432
  variant: J.borderLess,
20430
20433
  style: ue.negativeGrey,
20431
20434
  size: L.small
@@ -20467,7 +20470,7 @@ const Yy = ({
20467
20470
  borderConfig: E,
20468
20471
  ..._
20469
20472
  }) => {
20470
- const N = U(null), [C, v] = O(""), I = (y) => {
20473
+ const N = U(null), [C, S] = O(""), I = (y) => {
20471
20474
  const T = N.current;
20472
20475
  T && (T.style.height = `${y}px`);
20473
20476
  }, A = () => {
@@ -20476,17 +20479,17 @@ const Yy = ({
20476
20479
  T < y || y > Lo || (T < Oo && (T = Oo), T > Lo && (T = Lo), I(T));
20477
20480
  };
20478
20481
  P(() => {
20479
- v(g);
20482
+ S(g);
20480
20483
  }, [g]), ro(A, 300, [C]);
20481
20484
  const R = (y) => {
20482
- v(y.target.value), _.onChange?.(y);
20485
+ S(y.target.value), _.onChange?.(y);
20483
20486
  }, b = (y) => {
20484
20487
  if (d) {
20485
20488
  const T = y.target.value?.trim();
20486
20489
  y.target.value !== T && (y.stopPropagation(), y.target.value = T, _.onChange(y));
20487
20490
  }
20488
20491
  typeof l == "function" && l(y);
20489
- }, S = (y) => {
20492
+ }, v = (y) => {
20490
20493
  (y.key === "Enter" || y.key === "Escape") && (y.stopPropagation(), y.key === "Escape" && N.current.blur());
20491
20494
  };
20492
20495
  return /* @__PURE__ */ t.jsx(
@@ -20527,7 +20530,7 @@ const Yy = ({
20527
20530
  value: C,
20528
20531
  onChange: R,
20529
20532
  onBlur: b,
20530
- onKeyDown: S,
20533
+ onKeyDown: v,
20531
20534
  className: `${cs[u]} ${Wu[u]} ${Wr({ borderConfig: E, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
20532
20535
  ref: N,
20533
20536
  style: {
@@ -20636,19 +20639,19 @@ const Yy = ({
20636
20639
  }, E = (b) => {
20637
20640
  d(b);
20638
20641
  }, _ = (b) => {
20639
- const S = b ?? l;
20640
- E(S), r(S), n(""), m(!1), f(!1), x("");
20642
+ const v = b ?? l;
20643
+ E(v), r(v), n(""), m(!1), f(!1), x("");
20641
20644
  }, N = () => {
20642
20645
  _(a);
20643
20646
  }, C = () => {
20644
20647
  _();
20645
- }, v = (b) => {
20646
- const { value: S } = b.target;
20647
- if (r(S), !S.trim()) {
20648
+ }, S = (b) => {
20649
+ const { value: v } = b.target;
20650
+ if (r(v), !v.trim()) {
20648
20651
  n("");
20649
20652
  return;
20650
20653
  }
20651
- x(""), n(Im(S, !1).message);
20654
+ x(""), n(Im(v, !1).message);
20652
20655
  }, I = async () => {
20653
20656
  if (!a) {
20654
20657
  x(Cd), Me.showToast({
@@ -20669,10 +20672,10 @@ const Yy = ({
20669
20672
  const b = await fetch(a, { mode: "cors" });
20670
20673
  if (!b.ok)
20671
20674
  throw new Error("Invalid network response");
20672
- const S = await b.blob();
20673
- if (S.size > Nd)
20675
+ const v = await b.blob();
20676
+ if (v.size > Nd)
20674
20677
  throw new Error(`Please add an image smaller than ${Nd / (1024 * 1024)} MB`);
20675
- const y = URL.createObjectURL(S), T = await zT(y);
20678
+ const y = URL.createObjectURL(v), T = await zT(y);
20676
20679
  if (URL.revokeObjectURL(y), !T.isValid)
20677
20680
  throw new Error(T.message);
20678
20681
  N();
@@ -20683,7 +20686,7 @@ const Yy = ({
20683
20686
  }
20684
20687
  }, A = async (b) => {
20685
20688
  b.key === "Enter" && (b.preventDefault(), await I());
20686
- }, R = (b, S) => /* @__PURE__ */ t.jsx(
20689
+ }, R = (b, v) => /* @__PURE__ */ t.jsx(
20687
20690
  uc,
20688
20691
  {
20689
20692
  imageProps: {
@@ -20691,7 +20694,7 @@ const Yy = ({
20691
20694
  src: l,
20692
20695
  height: Ir.height,
20693
20696
  width: Ir.width,
20694
- className: `br-4 dc__no-shrink ${S || ""}`
20697
+ className: `br-4 dc__no-shrink ${v || ""}`
20695
20698
  },
20696
20699
  fallbackImage: /* @__PURE__ */ t.jsx(Xy, { defaultIcon: e, showEditIcon: b })
20697
20700
  }
@@ -20706,7 +20709,7 @@ const Yy = ({
20706
20709
  label: "Image URL",
20707
20710
  placeholder: "Enter image url",
20708
20711
  value: a,
20709
- onChange: v,
20712
+ onChange: S,
20710
20713
  error: s || h,
20711
20714
  fullWidth: !0,
20712
20715
  onKeyDown: A,
@@ -20789,7 +20792,7 @@ const Yy = ({
20789
20792
  isClearable: i,
20790
20793
  autoFocus: c
20791
20794
  }) => {
20792
- const [l, d, u, m] = Ot(
20795
+ const [l, d, u, m] = Lt(
20793
20796
  Qy
20794
20797
  ), p = X(() => d ? r?.(d) || d : [], [d, r]), f = X(() => {
20795
20798
  const x = Zy(s, p);
@@ -21034,7 +21037,7 @@ const bd = (e) => {
21034
21037
  className: "flex p-0 dc__transparent dc__hover-remove-btn",
21035
21038
  onClick: c,
21036
21039
  "aria-label": "Remove filter",
21037
- children: /* @__PURE__ */ t.jsx(wt, { className: "icon-dim-12 icon-use-fill-n6" })
21040
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "icon-dim-12 icon-use-fill-n6" })
21038
21041
  }
21039
21042
  )
21040
21043
  ] });
@@ -21138,7 +21141,7 @@ const bd = (e) => {
21138
21141
  if (a)
21139
21142
  return /* @__PURE__ */ t.jsx("i", { className: "text__white fs-12 fw-6 lh-18 m-0", children: "is sensitive & hidden" });
21140
21143
  const g = "text__white fs-12 fw-6 lh-18 m-0";
21141
- return x === "" ? /* @__PURE__ */ t.jsx("p", { className: g, children: `'""'` }) : typeof x == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: g, children: x ? "true" : "false" }) : typeof x == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${g} dc__transparent--unstyled border__primary`, children: yt(x) }) : /* @__PURE__ */ t.jsx("p", { className: g, children: x });
21144
+ return x === "" ? /* @__PURE__ */ t.jsx("p", { className: g, children: `'""'` }) : typeof x == "boolean" ? /* @__PURE__ */ t.jsx("p", { className: g, children: x ? "true" : "false" }) : typeof x == "object" ? /* @__PURE__ */ t.jsx("pre", { className: `${g} dc__transparent--unstyled border__primary`, children: jt(x) }) : /* @__PURE__ */ t.jsx("p", { className: g, children: x });
21142
21145
  }, m = (x) => {
21143
21146
  if (r === "")
21144
21147
  return x;
@@ -21237,7 +21240,7 @@ const bd = (e) => {
21237
21240
  "."
21238
21241
  ] }) })
21239
21242
  ] });
21240
- }, vd = St(ij), cj = ({
21243
+ }, vd = vt(ij), cj = ({
21241
21244
  handleDeActivation: e,
21242
21245
  loading: s,
21243
21246
  variables: n,
@@ -21250,10 +21253,10 @@ const bd = (e) => {
21250
21253
  c(n);
21251
21254
  }, [n]);
21252
21255
  const f = (N) => {
21253
- const C = N.trim().toLowerCase(), v = n.filter(
21256
+ const C = N.trim().toLowerCase(), S = n.filter(
21254
21257
  (I) => I.variableName.toLowerCase().includes(C) || I.shortDescription?.toLowerCase().includes(C)
21255
21258
  );
21256
- c(v), m(C);
21259
+ c(S), m(C);
21257
21260
  }, h = () => {
21258
21261
  d(!l);
21259
21262
  }, x = () => /* @__PURE__ */ t.jsx(
@@ -21339,7 +21342,7 @@ const bd = (e) => {
21339
21342
  g(),
21340
21343
  _()
21341
21344
  ] });
21342
- }, lj = St(cj), dj = ({
21345
+ }, lj = vt(cj), dj = ({
21343
21346
  zIndex: e,
21344
21347
  appId: s,
21345
21348
  envId: n,
@@ -21349,7 +21352,7 @@ const bd = (e) => {
21349
21352
  showValueOnHover: i = !0,
21350
21353
  isTemplateView: c
21351
21354
  }) => {
21352
- const [l, d] = O(!1), [u, m] = O({ x: 0, y: 0 }), [p, f] = O({ x: 0, y: 0 }), [h, x, g, E] = Ot(
21355
+ const [l, d] = O(!1), [u, m] = O({ x: 0, y: 0 }), [p, f] = O({ x: 0, y: 0 }), [h, x, g, E] = Lt(
21353
21356
  () => rj(s, n, a, { hideObjectVariables: o, isTemplateView: c }),
21354
21357
  [s, n, a]
21355
21358
  ), _ = Nm(), N = U(null), C = X(() => {
@@ -21360,9 +21363,9 @@ const bd = (e) => {
21360
21363
  return { x: b.x, y: b.y };
21361
21364
  }, [N.current]);
21362
21365
  P(() => {
21363
- const b = new ResizeObserver((S) => {
21364
- if (S?.length > 0 && l) {
21365
- const { height: y } = S[0].contentRect;
21366
+ const b = new ResizeObserver((v) => {
21367
+ if (v?.length > 0 && l) {
21368
+ const { height: y } = v[0].contentRect;
21366
21369
  C.y + p.y + y > _.height && f({
21367
21370
  x: p.x,
21368
21371
  y: _.height - y - C.y
@@ -21373,7 +21376,7 @@ const bd = (e) => {
21373
21376
  b.disconnect();
21374
21377
  };
21375
21378
  }, [l, p, _, C]);
21376
- const v = () => {
21379
+ const S = () => {
21377
21380
  const b = {
21378
21381
  x: C.x + u.x,
21379
21382
  y: C.y + u.y
@@ -21393,18 +21396,18 @@ const bd = (e) => {
21393
21396
  }), d(!0);
21394
21397
  }, I = Be((b) => {
21395
21398
  b.stopPropagation(), d(!1);
21396
- }, []), A = (b, S) => {
21399
+ }, []), A = (b, v) => {
21397
21400
  const y = {
21398
- x: C.x + S.x,
21399
- y: C.y + S.y
21401
+ x: C.x + v.x,
21402
+ y: C.y + v.y
21400
21403
  };
21401
- y.y < 0 || y.x < 0 || y.x + (N.current?.getBoundingClientRect().width || 0) > _.width || y.y + (N.current?.getBoundingClientRect().height || 0) > _.height || m(S);
21402
- }, R = (b, S) => {
21404
+ y.y < 0 || y.x < 0 || y.x + (N.current?.getBoundingClientRect().width || 0) > _.width || y.y + (N.current?.getBoundingClientRect().height || 0) > _.height || m(v);
21405
+ }, R = (b, v) => {
21403
21406
  const y = {
21404
- x: C.x + S.x,
21405
- y: C.y + S.y
21407
+ x: C.x + v.x,
21408
+ y: C.y + v.y
21406
21409
  };
21407
- y.y < 0 || y.x < 0 || y.x + (N.current?.getBoundingClientRect().width || 0) > _.width || y.y + (N.current?.getBoundingClientRect().height || 0) > _.height || (f(S), m(S));
21410
+ y.y < 0 || y.x < 0 || y.x + (N.current?.getBoundingClientRect().width || 0) > _.width || y.y + (N.current?.getBoundingClientRect().height || 0) > _.height || (f(v), m(v));
21408
21411
  };
21409
21412
  return l ? /* @__PURE__ */ t.jsx(
21410
21413
  ar,
@@ -21459,7 +21462,7 @@ const bd = (e) => {
21459
21462
  {
21460
21463
  className: "dc__outline-none-imp dc__no-border p-0 bcn-7 h-20",
21461
21464
  type: "button",
21462
- onClick: v,
21465
+ onClick: S,
21463
21466
  "data-testid": "activate-suggestions",
21464
21467
  children: /* @__PURE__ */ t.jsx(Mr, { className: "scn-0 icon-dim-20" })
21465
21468
  }
@@ -21469,7 +21472,7 @@ const bd = (e) => {
21469
21472
  )
21470
21473
  }
21471
21474
  );
21472
- }, AB = St(dj);
21475
+ }, AB = vt(dj);
21473
21476
  var Lp = /* @__PURE__ */ ((e) => (e.ROUNDED = "rounded", e.NONE = "none", e))(Lp || {});
21474
21477
  const uj = (e) => e === Lp.NONE ? "" : "dc__border-n1", er = ({
21475
21478
  title: e,
@@ -21703,8 +21706,8 @@ const uj = (e) => e === Lp.NONE ? "" : "dc__border-n1", er = ({
21703
21706
  };
21704
21707
  const _ = new ResizeObserver((N) => {
21705
21708
  let C = !1;
21706
- N.forEach((v) => {
21707
- const { width: I } = v.contentRect;
21709
+ N.forEach((S) => {
21710
+ const { width: I } = S.contentRect;
21708
21711
  C = r.current.getNodesBounds(u).width + Do * 2 > I;
21709
21712
  }), d(C);
21710
21713
  });
@@ -21716,11 +21719,11 @@ const uj = (e) => e === Lp.NONE ? "" : "dc__border-n1", er = ({
21716
21719
  n(
21717
21720
  (N) => Nf(_, Rd(N, m)).map(
21718
21721
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
21719
- ({ position: C, ...v }) => v
21722
+ ({ position: C, ...S }) => S
21720
21723
  )
21721
21724
  );
21722
21725
  }, x = (_) => {
21723
- a((N) => Cf(_, Ad(N)).map(({ type: C, ...v }) => v));
21726
+ a((N) => Cf(_, Ad(N)).map(({ type: C, ...S }) => S));
21724
21727
  }, g = (_) => {
21725
21728
  const N = r.current.getNodesBounds(u), C = _;
21726
21729
  C.x = Math.min(_.x, Id.x), C.y = Math.abs(N.y - Ga), c(C);
@@ -22045,7 +22048,7 @@ const Rj = async (e, s) => {
22045
22048
  onClick: i,
22046
22049
  style: ue.negativeGrey,
22047
22050
  variant: J.borderLess,
22048
- icon: /* @__PURE__ */ t.jsx(wt, {}),
22051
+ icon: /* @__PURE__ */ t.jsx(Dt, {}),
22049
22052
  showAriaLabelInTippy: !1
22050
22053
  }
22051
22054
  )
@@ -22168,12 +22171,12 @@ const Rj = async (e, s) => {
22168
22171
  markAsBeta: d,
22169
22172
  tippyProps: u
22170
22173
  }) => {
22171
- const { loginCount: m, setLoginCount: p, showGettingStartedCard: f, setShowGettingStartedCard: h } = nn(), { showSwitchThemeLocationTippy: x, handleShowSwitchThemeLocationTippyChange: g } = Vr(), { isTippyCustomized: E, tippyRedirectLink: _, TippyIcon: N, tippyMessage: C, onClickTippyButton: v, additionalContent: I } = u || {}, { email: A } = Bi(), [R, b] = O(
22174
+ const { loginCount: m, setLoginCount: p, showGettingStartedCard: f, setShowGettingStartedCard: h } = nn(), { showSwitchThemeLocationTippy: x, handleShowSwitchThemeLocationTippyChange: g } = Vr(), { isTippyCustomized: E, tippyRedirectLink: _, TippyIcon: N, tippyMessage: C, onClickTippyButton: S, additionalContent: I } = u || {}, { email: A } = Bi(), [R, b] = O(
22172
22175
  {
22173
22176
  serverInfo: void 0,
22174
22177
  fetchingServerInfo: !1
22175
22178
  }
22176
- ), [S, y] = O(0), T = async () => {
22179
+ ), [v, y] = O(0), T = async () => {
22177
22180
  try {
22178
22181
  const { result: Ee } = await Rj(!0, !0);
22179
22182
  b({
@@ -22233,7 +22236,7 @@ const Rj = async (e, s) => {
22233
22236
  children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Uj, { user: A, onClick: M }) })
22234
22237
  }
22235
22238
  )
22236
- ] }), W = () => (/* @__PURE__ */ new Date()).valueOf() > S, oe = () => /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-4 lh-18 pt-1 pb-1 pl-6 pr-6 ml-8 cn-9 bcy-5 br-4", children: "Beta" }), te = () => /* @__PURE__ */ t.jsx(Mj, {});
22239
+ ] }), W = () => (/* @__PURE__ */ new Date()).valueOf() > v, oe = () => /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-4 lh-18 pt-1 pb-1 pl-6 pr-6 ml-8 cn-9 bcy-5 br-4", children: "Beta" }), te = () => /* @__PURE__ */ t.jsx(Mj, {});
22237
22240
  return /* @__PURE__ */ t.jsxs(
22238
22241
  "div",
22239
22242
  {
@@ -22248,7 +22251,7 @@ const Rj = async (e, s) => {
22248
22251
  type: "button",
22249
22252
  "aria-label": "close-button",
22250
22253
  onClick: l,
22251
- children: /* @__PURE__ */ t.jsx(wt, { className: "dc__page-header__close-icon icon-dim-24 cursor" })
22254
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "dc__page-header__close-icon icon-dim-24 cursor" })
22252
22255
  }
22253
22256
  ),
22254
22257
  /* @__PURE__ */ t.jsx("span", { className: "fw-6", "data-testid": "main-header", children: e }),
@@ -22272,7 +22275,7 @@ const Rj = async (e, s) => {
22272
22275
  className: "dc__link flex",
22273
22276
  target: "_blank",
22274
22277
  href: _,
22275
- onClick: v,
22278
+ onClick: S,
22276
22279
  rel: "noreferrer",
22277
22280
  "aria-label": "tippy-icon",
22278
22281
  children: /* @__PURE__ */ t.jsx(
@@ -22349,7 +22352,7 @@ const Fj = (e) => [
22349
22352
  ]
22350
22353
  }
22351
22354
  ], jB = ({ headerName: e }) => {
22352
- const { serverMode: s } = nn(), n = Lt(), a = xs(), r = `${De.APP}/${De.APP_LIST}/${n.appType ?? Kc.AppType.DEVTRON_APPS}/${Kc.CREATE_DEVTRON_APP_URL}${a.search}`, o = () => s === Uu.FULL ? /* @__PURE__ */ t.jsx(
22355
+ const { serverMode: s } = nn(), n = wt(), a = xs(), r = `${De.APP}/${De.APP_LIST}/${n.appType ?? Kc.AppType.DEVTRON_APPS}/${Kc.CREATE_DEVTRON_APP_URL}${a.search}`, o = () => s === Uu.FULL ? /* @__PURE__ */ t.jsx(
22353
22356
  Mm,
22354
22357
  {
22355
22358
  id: "page-header-create-app-action-menu",
@@ -22425,7 +22428,7 @@ const Fj = (e) => [
22425
22428
  className: "p-0 flex dc__no-border dc__no-background dc__outline-none-imp dc__tab-focus icon-dim-18 dc__tab-focus",
22426
22429
  onClick: m,
22427
22430
  "aria-label": "Close",
22428
- children: /* @__PURE__ */ t.jsx(wt, { className: "dc__no-shrink icon-dim-18 fcn-6" })
22431
+ children: /* @__PURE__ */ t.jsx(Dt, { className: "dc__no-shrink icon-dim-18 fcn-6" })
22429
22432
  }
22430
22433
  )
22431
22434
  ] }),
@@ -22900,7 +22903,7 @@ const Wj = ({
22900
22903
  validateDuplicateKeys: f = !1,
22901
22904
  validateEmptyKeys: h = !1
22902
22905
  }) => {
22903
- const [x, g] = O({}), [E, _] = O([]), { sortBy: N, sortOrder: C, handleSorting: v } = Yi({
22906
+ const [x, g] = O({}), [E, _] = O([]), { sortBy: N, sortOrder: C, handleSorting: S } = Yi({
22904
22907
  initialSortKey: r ? "key" : null
22905
22908
  }), I = X(
22906
22909
  () => Qj({ rows: s, placeholder: n, maskValue: a }),
@@ -22943,7 +22946,7 @@ const Wj = ({
22943
22946
  }, b = () => {
22944
22947
  const j = [xi(n), ...I];
22945
22948
  R(j);
22946
- }, S = (T) => {
22949
+ }, v = (T) => {
22947
22950
  const j = I.filter(({ id: w }) => w !== T.id);
22948
22951
  if (j.length === 0 && !c) {
22949
22952
  const w = xi(n);
@@ -22962,7 +22965,7 @@ const Wj = ({
22962
22965
  rows: E,
22963
22966
  cellError: u ? x : {},
22964
22967
  onRowAdd: b,
22965
- onRowDelete: S,
22968
+ onRowDelete: v,
22966
22969
  onRowEdit: y,
22967
22970
  headerComponent: o,
22968
22971
  readOnly: d,
@@ -22971,7 +22974,7 @@ const Wj = ({
22971
22974
  sortingConfig: {
22972
22975
  sortBy: N,
22973
22976
  sortOrder: C,
22974
- handleSorting: v
22977
+ handleSorting: S
22975
22978
  }
22976
22979
  }
22977
22980
  );
@@ -22993,7 +22996,7 @@ const nO = (e) => {
22993
22996
  const { isTrial: n, expiry: a, ttl: r, reminderThreshold: o, organisationMetadata: i, license: c, claimedByUserDetails: l } = e || {};
22994
22997
  return {
22995
22998
  enterpriseName: i?.name || "Devtron Enterprise",
22996
- expiryDate: a ? Ve(a).format(jt["DD/MM/YYYY"]) : "",
22999
+ expiryDate: a ? Ve(a).format(Ot["DD/MM/YYYY"]) : "",
22997
23000
  ttl: r,
22998
23001
  licenseStatus: aO({ ttl: r, reminderThreshold: o }),
22999
23002
  isTrial: n,
@@ -23174,7 +23177,7 @@ const nO = (e) => {
23174
23177
  appTheme: c,
23175
23178
  handleCopySuccess: l
23176
23179
  }) => {
23177
- const { bgColor: d, textColor: u } = nO(r), m = mL(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, f = r !== Ps.EXPIRED, h = c === Tt.dark, x = U(null), g = ko(window.innerWidth), E = ko(window.innerHeight), _ = ln(E, (R) => {
23180
+ const { bgColor: d, textColor: u } = nO(r), m = mL(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, f = r !== Ps.EXPIRED, h = c === St.dark, x = U(null), g = ko(window.innerWidth), E = ko(window.innerHeight), _ = ln(E, (R) => {
23178
23181
  if (!x.current) return 0;
23179
23182
  const b = x.current.getBoundingClientRect();
23180
23183
  return -(R - b.top - b.height / 2) / wd;
@@ -23194,7 +23197,7 @@ const nO = (e) => {
23194
23197
  const C = ln(
23195
23198
  [_, N],
23196
23199
  ([R, b]) => R + b
23197
- ), v = ln(C, [-5, 5], [-100, 200]), I = ln(v, [-100, 50, 200], [0, h ? 0.25 : 0.1, 0]), A = h ? Fc`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${I}) ${v}%, transparent)` : Fc`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${I}) ${v}%, transparent)`;
23200
+ ), S = ln(C, [-5, 5], [-100, 200]), I = ln(S, [-100, 50, 200], [0, h ? 0.25 : 0.1, 0]), A = h ? Fc`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${I}) ${S}%, transparent)` : Fc`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${I}) ${S}%, transparent)`;
23198
23201
  return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-8 br-16", style: { backgroundColor: d }, children: [
23199
23202
  /* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
23200
23203
  ke.div,
@@ -23874,7 +23877,7 @@ const NO = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
23874
23877
  showCardBorder: u,
23875
23878
  getPluginStoreRef: m
23876
23879
  }) => {
23877
- const { appId: p } = Lt(), [f, h] = O(!1), [x, g] = O(!1), E = async () => {
23880
+ const { appId: p } = wt(), [f, h] = O(!1), [x, g] = O(!1), E = async () => {
23878
23881
  h(!0), g(!1);
23879
23882
  try {
23880
23883
  const _ = await jr(
@@ -23968,15 +23971,15 @@ const NO = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
23968
23971
  rootClassName: h = "",
23969
23972
  showCardBorder: x = !1
23970
23973
  }) => {
23971
- const { appId: g } = Lt(), [E, _] = O(l || []), [N, C] = O(u || 0), [v, I] = O(
23974
+ const { appId: g } = wt(), [E, _] = O(l || []), [N, C] = O(u || 0), [S, I] = O(
23972
23975
  p || structuredClone(pO)
23973
23976
  ), A = U(new AbortController()), R = (re) => {
23974
23977
  _(re), d?.(re);
23975
23978
  }, b = (re) => {
23976
23979
  C(re), m?.(re);
23977
- }, S = (re) => {
23980
+ }, v = (re) => {
23978
23981
  I(re), f?.(re);
23979
- }, { searchKey: y, selectedTags: T } = v || {}, j = () => jr(
23982
+ }, { searchKey: y, selectedTags: T } = S || {}, j = () => jr(
23980
23983
  () => Bp({
23981
23984
  searchKey: y,
23982
23985
  selectedTags: T,
@@ -23985,12 +23988,12 @@ const NO = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
23985
23988
  signal: A.current.signal
23986
23989
  }),
23987
23990
  A
23988
- ), [w, M, D, B] = Ot(
23991
+ ), [w, M, D, B] = Lt(
23989
23992
  j,
23990
23993
  // In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
23991
23994
  [y, g, T],
23992
23995
  c ? !E.length : !0
23993
- ), [q, W, oe, te] = Ot(
23996
+ ), [q, W, oe, te] = Lt(
23994
23997
  () => bO(g ? +g : null),
23995
23998
  [],
23996
23999
  !e?.length
@@ -24021,23 +24024,23 @@ const NO = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
24021
24024
  const ve = () => {
24022
24025
  c && R([]);
24023
24026
  }, V = () => {
24024
- S({
24027
+ v({
24025
24028
  searchKey: "",
24026
24029
  selectedTags: []
24027
24030
  }), ve();
24028
24031
  }, Q = (re) => {
24029
- S({
24030
- ...v,
24032
+ v({
24033
+ ...S,
24031
24034
  searchKey: re
24032
24035
  }), ve();
24033
24036
  }, fe = (re) => {
24034
- S({
24035
- ...v,
24037
+ v({
24038
+ ...S,
24036
24039
  selectedTags: re
24037
24040
  }), ve();
24038
24041
  }, he = (re) => {
24039
- S({
24040
- ...v,
24042
+ v({
24043
+ ...S,
24041
24044
  selectedTags: re.selectedTags
24042
24045
  }), ve();
24043
24046
  }, Ne = (re) => {
@@ -24099,7 +24102,7 @@ const NO = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
24099
24102
  pluginList: E,
24100
24103
  totalCount: N,
24101
24104
  handleDataUpdateForPluginResponse: Ee,
24102
- filters: v,
24105
+ filters: S,
24103
24106
  handlePluginSelection: Ne,
24104
24107
  selectedPluginsMap: i,
24105
24108
  isSelectable: o,
@@ -24295,8 +24298,8 @@ function PO({
24295
24298
  }, g = d.current?.getBoundingClientRect().height ?? 0, E = d.current?.getBoundingClientRect().width ?? 0;
24296
24299
  switch (h) {
24297
24300
  case Rr.PARENT_BOTTOM_CENTER: {
24298
- const _ = (x.width - E) / 2, N = x.top > 0 ? x.top : c, v = (x.height > l.height ? l.height - N : x.height) - g - o;
24299
- return { x: _, y: v };
24301
+ const _ = (x.width - E) / 2, N = x.top > 0 ? x.top : c, S = (x.height > l.height ? l.height - N : x.height) - g - o;
24302
+ return { x: _, y: S };
24300
24303
  }
24301
24304
  case Rr.SCREEN_BOTTOM_RIGHT: {
24302
24305
  const _ = l.width - x.left - E - o, N = l.height - x.top - g - o;
@@ -24372,7 +24375,7 @@ const MO = ({
24372
24375
  /* @__PURE__ */ t.jsx(
24373
24376
  K,
24374
24377
  {
24375
- icon: /* @__PURE__ */ t.jsx(wt, {}),
24378
+ icon: /* @__PURE__ */ t.jsx(Dt, {}),
24376
24379
  dataTestId: "table__action-widget--close",
24377
24380
  component: gt.button,
24378
24381
  style: ue.negativeGrey,
@@ -24573,8 +24576,8 @@ const kO = ({
24573
24576
  paginationVariant: N,
24574
24577
  RowActionsOnHoverComponent: C
24575
24578
  }) => {
24576
- const v = U(null), I = U(null), A = U(null), { BulkActionsComponent: R } = x ?? {}, { showSeparatorBetweenRows: b = !0 } = f ?? {}, {
24577
- sortBy: S,
24579
+ const S = U(null), I = U(null), A = U(null), { BulkActionsComponent: R } = x ?? {}, { showSeparatorBetweenRows: b = !0 } = f ?? {}, {
24580
+ sortBy: v,
24578
24581
  sortOrder: y,
24579
24582
  searchKey: T = "",
24580
24583
  handleSorting: j,
@@ -24606,17 +24609,17 @@ const kO = ({
24606
24609
  const _e = X(
24607
24610
  () => p.reduce((G, pe, Re) => (G[pe.field] = Re, G), {}),
24608
24611
  [p]
24609
- ), [me, se, Y, xe] = Ot(async () => {
24612
+ ), [me, se, Y, xe] = Lt(async () => {
24610
24613
  if (!n && !a)
24611
24614
  throw new Error("Neither rows nor getRows function provided");
24612
24615
  return BO({
24613
24616
  searchSortTimeoutRef: re,
24614
24617
  callback: n ? () => {
24615
- const G = _e[S];
24618
+ const G = _e[v];
24616
24619
  return UO(n, u, s, p[G]?.comparator);
24617
24620
  } : () => a(s)
24618
24621
  });
24619
- }, [T, S, y, n, _e, JSON.stringify(te)]), Ae = fe?.() ?? 0, Ke = X(() => {
24622
+ }, [T, v, y, n, _e, JSON.stringify(te)]), Ae = fe?.() ?? 0, Ke = X(() => {
24620
24623
  const G = se ?? [];
24621
24624
  return N !== Ci.PAGINATED ? G : G.slice(M, M + w);
24622
24625
  }, [N, M, w, se]), { activeRowIndex: He, setActiveRowIndex: ct } = kO(
@@ -24725,7 +24728,7 @@ const kO = ({
24725
24728
  title: G,
24726
24729
  isSortable: !!Re,
24727
24730
  sortOrder: y,
24728
- isSorted: S === pe,
24731
+ isSorted: v === pe,
24729
24732
  triggerSorting: ut(pe),
24730
24733
  showTippyOnTruncate: Vs,
24731
24734
  disabled: me,
@@ -24739,7 +24742,7 @@ const kO = ({
24739
24742
  /* @__PURE__ */ t.jsx(
24740
24743
  "div",
24741
24744
  {
24742
- ref: v,
24745
+ ref: S,
24743
24746
  className: "flex-grow-1 flexbox-col dc__min-width-fit-content dc__overflow-auto",
24744
24747
  children: $()
24745
24748
  }
@@ -25118,7 +25121,7 @@ const kO = ({
25118
25121
  image: eg,
25119
25122
  alt: "CI",
25120
25123
  dataTestId: "build-deploy-from-source-code-button",
25121
- type: At.CI
25124
+ type: Rt.CI
25122
25125
  },
25123
25126
  LINKED_PIPELINE: {
25124
25127
  title: "Linked Build Pipeline",
@@ -25126,7 +25129,7 @@ const kO = ({
25126
25129
  image: sg,
25127
25130
  alt: "Linked-CI",
25128
25131
  dataTestId: "linked-build-pipeline-button",
25129
- type: At.LINKED_CI
25132
+ type: Rt.LINKED_CI
25130
25133
  },
25131
25134
  EXTERNAL_SERVICE: {
25132
25135
  title: "Deploy Image from External Service",
@@ -25142,7 +25145,7 @@ const kO = ({
25142
25145
  image: tg,
25143
25146
  alt: "Job-CI",
25144
25147
  dataTestId: "job-ci-pipeline-button",
25145
- type: At.JOB_CI
25148
+ type: Rt.JOB_CI
25146
25149
  }
25147
25150
  }, JO = "No environment found. Please create a CD Pipeline first.", ZO = "Cannot change to same source type", QO = "Request in progress", Vd = {
25148
25151
  SUCCESS_CHANGE_TO_WEBHOOK: "Successfully changed CI to webhook",
@@ -25222,28 +25225,28 @@ const kO = ({
25222
25225
  });
25223
25226
  return;
25224
25227
  }
25225
- const v = C.nodes.find((A) => A.type === ys.CI);
25228
+ const S = C.nodes.find((A) => A.type === ys.CI);
25226
25229
  if (C.nodes.some((A) => A.type === ys.WEBHOOK)) {
25227
25230
  f(ys.WEBHOOK);
25228
25231
  return;
25229
25232
  }
25230
- if (v?.isJobCI) {
25231
- f(At.JOB_CI);
25233
+ if (S?.isJobCI) {
25234
+ f(Rt.JOB_CI);
25232
25235
  return;
25233
25236
  }
25234
- if (v?.isLinkedCI) {
25235
- f(At.LINKED_CI);
25237
+ if (S?.isLinkedCI) {
25238
+ f(Rt.LINKED_CI);
25236
25239
  return;
25237
25240
  }
25238
- if (v?.isExternalCI) {
25239
- f(At.EXTERNAL_CI);
25241
+ if (S?.isExternalCI) {
25242
+ f(Rt.EXTERNAL_CI);
25240
25243
  return;
25241
25244
  }
25242
- if (v?.isLinkedCD) {
25243
- f(At.LINKED_CD);
25245
+ if (S?.isLinkedCD) {
25246
+ f(Rt.LINKED_CD);
25244
25247
  return;
25245
25248
  }
25246
- f(At.CI);
25249
+ f(Rt.CI);
25247
25250
  }
25248
25251
  }, [i, o]);
25249
25252
  const E = () => {
@@ -25265,17 +25268,17 @@ const kO = ({
25265
25268
  if (!(C.currentTarget instanceof HTMLDivElement) || "key" in C && C.key !== "Enter")
25266
25269
  return;
25267
25270
  C.stopPropagation();
25268
- const { pipelineType: v } = C.currentTarget.dataset;
25269
- if (v === Js.WEBHOOK) {
25271
+ const { pipelineType: S } = C.currentTarget.dataset;
25272
+ if (S === Js.WEBHOOK) {
25270
25273
  E();
25271
25274
  return;
25272
25275
  }
25273
- if (d && v === d.type) {
25276
+ if (d && S === d.type) {
25274
25277
  a(o), e();
25275
25278
  return;
25276
25279
  }
25277
- s(v, o?.appWorkflowId ?? 0), e();
25278
- }, N = (C) => !r && C === At.LINKED_CD ? JO : p === C ? ZO : h ? QO : null;
25280
+ s(S, o?.appWorkflowId ?? 0), e();
25281
+ }, N = (C) => !r && C === Rt.LINKED_CD ? JO : p === C ? ZO : h ? QO : null;
25279
25282
  return /* @__PURE__ */ t.jsx(
25280
25283
  wn,
25281
25284
  {
@@ -25315,7 +25318,7 @@ const kO = ({
25315
25318
  dataTestId: Ye.SOURCE_CODE.dataTestId,
25316
25319
  type: Ye.SOURCE_CODE.type,
25317
25320
  handleCardAction: _,
25318
- disableInfo: N(At.CI)
25321
+ disableInfo: N(Rt.CI)
25319
25322
  }
25320
25323
  ),
25321
25324
  /* @__PURE__ */ t.jsx(
@@ -25328,7 +25331,7 @@ const kO = ({
25328
25331
  dataTestId: Ye.LINKED_PIPELINE.dataTestId,
25329
25332
  type: Ye.LINKED_PIPELINE.type,
25330
25333
  handleCardAction: _,
25331
- disableInfo: N(At.LINKED_CI),
25334
+ disableInfo: N(Rt.LINKED_CI),
25332
25335
  isDisabled: u
25333
25336
  }
25334
25337
  )
@@ -25359,7 +25362,7 @@ const kO = ({
25359
25362
  dataTestId: d.dataTestId,
25360
25363
  type: d.type,
25361
25364
  handleCardAction: _,
25362
- disableInfo: N(At.LINKED_CD)
25365
+ disableInfo: N(Rt.LINKED_CD)
25363
25366
  }
25364
25367
  )
25365
25368
  ] }),
@@ -25375,7 +25378,7 @@ const kO = ({
25375
25378
  dataTestId: Ye.JOB.dataTestId,
25376
25379
  type: Ye.JOB.type,
25377
25380
  handleCardAction: _,
25378
- disableInfo: N(At.JOB_CI),
25381
+ disableInfo: N(Rt.JOB_CI),
25379
25382
  isDisabled: u
25380
25383
  }
25381
25384
  )
@@ -25491,7 +25494,7 @@ function la(e, s = !1) {
25491
25494
  }
25492
25495
  return n;
25493
25496
  }
25494
- const nV = (e, s = "-") => e ? `${Ve(e).utc().format(jt.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
25497
+ const nV = (e, s = "-") => e ? `${Ve(e).utc().format(Ot.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
25495
25498
  function aV() {
25496
25499
  const e = xs(), s = X(() => new URLSearchParams(e.search), [e]), n = Array.from(s.entries()).reduce((a, r, o) => (a[r[0]] = r[1], a), {});
25497
25500
  return { queryParams: s, searchParams: n };
@@ -25569,7 +25572,7 @@ function bc(e) {
25569
25572
  }) : (oL(e), s());
25570
25573
  });
25571
25574
  }
25572
- function Ot(e, s = [], n = !0, a = { resetOnChange: !0 }) {
25575
+ function Lt(e, s = [], n = !0, a = { resetOnChange: !0 }) {
25573
25576
  const [r, o] = O({
25574
25577
  loading: !0,
25575
25578
  result: null,
@@ -25718,7 +25721,7 @@ const iV = (e, s) => e ? la(e, !0) : s ? "" : "Not deployed", $e = (e, s = {}) =
25718
25721
  }, hV = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), gV = (e, s, n) => {
25719
25722
  const a = new Date(e).getTime(), r = new Date(s).getTime();
25720
25723
  return isNaN(a) && isNaN(r) ? 0 : isNaN(a) ? n === be.ASC ? 1 : -1 : isNaN(r) ? n === be.ASC ? -1 : 1 : n === be.ASC ? r - a : a - r;
25721
- }, yt = (e, s) => Jt.stringify(e, { indent: 2, lineWidth: 0, ...s }), EV = (e, s) => {
25724
+ }, jt = (e, s) => Jt.stringify(e, { indent: 2, lineWidth: 0, ...s }), EV = (e, s) => {
25722
25725
  if (e === s)
25723
25726
  return !0;
25724
25727
  const n = Array.isArray(e), a = Array.isArray(s);
@@ -25845,9 +25848,9 @@ const bV = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, dL = (e, s = 300) => {
25845
25848
  return a ? (!a.hasAttribute("title") && s && a.setAttribute("title", s), a.hasAttribute("loading") || a.setAttribute("loading", "lazy"), a.hasAttribute("width") || a.setAttribute("width", "100%"), a.hasAttribute("height") || a.setAttribute("height", "100%"), n.innerHTML) : e;
25846
25849
  }, SV = (e) => {
25847
25850
  switch (e) {
25848
- case Rt.PRECD:
25851
+ case yt.PRECD:
25849
25852
  return "Pre-deployment";
25850
- case Rt.POSTCD:
25853
+ case yt.POSTCD:
25851
25854
  return "Post-deployment";
25852
25855
  default:
25853
25856
  return "Deployment";
@@ -26132,7 +26135,7 @@ Le.createContext(null);
26132
26135
  function yV(e, s) {
26133
26136
  const n = e?.sep || "/";
26134
26137
  s = s || [];
26135
- const { url: a, path: r } = Ns(), o = Lt(), { state: i, setState: c } = bL();
26138
+ const { url: a, path: r } = Ns(), o = wt(), { state: i, setState: c } = bL();
26136
26139
  P(() => {
26137
26140
  if (!(!e || !e.alias))
26138
26141
  return c((p) => ({ ...p, alias: { ...p.alias, ...e.alias } })), () => d(Object.keys(e.alias));
@@ -26624,7 +26627,7 @@ const PL = (e) => {
26624
26627
  if (!e || e === An)
26625
26628
  return "";
26626
26629
  const s = Ve(e);
26627
- return s.isValid() ? s.format(jt.TWELVE_HOURS_FORMAT) : e;
26630
+ return s.isValid() ? s.format(Ot.TWELVE_HOURS_FORMAT) : e;
26628
26631
  }, PV = ({
26629
26632
  text: e,
26630
26633
  updatedBy: s,
@@ -26648,7 +26651,7 @@ const PL = (e) => {
26648
26651
  }, C = () => {
26649
26652
  let A = !0;
26650
26653
  g && !u && (A = window.confirm(DL)), A && (f(e), m(!u), x(pn.WRITE));
26651
- }, v = async () => {
26654
+ }, S = async () => {
26652
26655
  const A = p.trim();
26653
26656
  if (N(A))
26654
26657
  try {
@@ -26879,7 +26882,7 @@ const PL = (e) => {
26879
26882
  "data-testid": "description-edit-save-button",
26880
26883
  rootClassName: "cta flex h-36",
26881
26884
  type: "submit",
26882
- onClick: v,
26885
+ onClick: S,
26883
26886
  children: "Save"
26884
26887
  }
26885
26888
  )
@@ -26929,21 +26932,21 @@ const s_ = ({
26929
26932
  forceReInit: m,
26930
26933
  isSuperAdmin: p
26931
26934
  }) => {
26932
- const [f, h] = O(a || []), [x, g] = O(n ? n.comment : ""), [E, _] = O(o || []), [N, C] = O(n ? n.comment : ""), [v, I] = O(!1), [A, R] = O(!1), [b, S] = O(a || []), [y, T] = O(""), [j, w] = O([]), [M, D] = O([]), [B, q] = O([]), [W, oe] = O(""), [te, Ee] = O(""), [ve, V] = O(!1);
26935
+ const [f, h] = O(a || []), [x, g] = O(n ? n.comment : ""), [E, _] = O(o || []), [N, C] = O(n ? n.comment : ""), [S, I] = O(!1), [A, R] = O(!1), [b, v] = O(a || []), [y, T] = O(""), [j, w] = O([]), [M, D] = O([]), [B, q] = O([]), [W, oe] = O(""), [te, Ee] = O(""), [ve, V] = O(!1);
26933
26936
  P(() => {
26934
26937
  Q();
26935
26938
  }, [a, n, c]), P(() => {
26936
26939
  _(o || []);
26937
26940
  }, [o]);
26938
26941
  const Q = () => {
26939
- (m || !v) && (h(a || []), g(n ? n.comment : ""), C(n ? n.comment : ""), S(a || []), I(!1));
26942
+ (m || !S) && (h(a || []), g(n ? n.comment : ""), C(n ? n.comment : ""), v(a || []), I(!1));
26940
26943
  }, fe = () => {
26941
- I(!v), typeof d == "function" && d(s);
26944
+ I(!S), typeof d == "function" && d(s);
26942
26945
  }, he = ($) => {
26943
26946
  const ge = $.target.value;
26944
26947
  ge?.length > 500 ? oe("comment length cannot exceed 500 characters") : oe(""), C(ge);
26945
26948
  }, Ne = () => {
26946
- S(f), C(x), w([]), D([]), q([]), fe(), R(!1), T("");
26949
+ v(f), C(x), w([]), D([]), q([]), fe(), R(!1), T("");
26947
26950
  }, re = ($) => {
26948
26951
  if ($.length == 0 || $.length >= 128 || $[0] == "." || $[0] == "-")
26949
26952
  return T("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
@@ -26964,7 +26967,7 @@ const s_ = ({
26964
26967
  artifactId: 0,
26965
26968
  duplicateTag: !1
26966
26969
  }, pe = [...j, G];
26967
- return w(pe), S([...b, G]), R(!0), Ee(""), pe;
26970
+ return w(pe), v([...b, G]), R(!0), Ee(""), pe;
26968
26971
  }
26969
26972
  return j;
26970
26973
  }, me = ($) => {
@@ -26974,12 +26977,12 @@ const s_ = ({
26974
26977
  deleted: !ge[$].deleted
26975
26978
  };
26976
26979
  const G = ge[$], pe = [...M], Re = pe.findIndex((mt) => mt.tagName === G.tagName);
26977
- Re !== -1 ? pe.splice(Re, 1) : pe.push(G), S(ge), D(pe);
26980
+ Re !== -1 ? pe.splice(Re, 1) : pe.push(G), v(ge), D(pe);
26978
26981
  }, se = ($) => {
26979
26982
  const ge = b[$], G = j.filter((mt) => mt.tagName !== ge.tagName);
26980
26983
  w(G);
26981
26984
  const pe = [...b];
26982
- pe.splice($, 1), S(pe);
26985
+ pe.splice($, 1), v(pe);
26983
26986
  const Re = E.filter((mt) => mt.toLowerCase() !== ge.tagName.toLowerCase());
26984
26987
  if (_(Re), ge.id !== 0) {
26985
26988
  const mt = [...B, ge];
@@ -26996,7 +26999,7 @@ const s_ = ({
26996
26999
  const mt = G.find((Vs) => Vs.tagName === Re.tagName);
26997
27000
  return mt ? { ...Re, duplicateTag: mt.duplicateTag } : Re;
26998
27001
  });
26999
- S(pe);
27002
+ v(pe);
27000
27003
  });
27001
27004
  }, xe = async ($) => {
27002
27005
  if (y) return;
@@ -27018,7 +27021,7 @@ const s_ = ({
27018
27021
  appId: 0,
27019
27022
  artifactId: 0
27020
27023
  }));
27021
- i && i(G.result?.appReleaseTags), l && l(G.result?.tagsEditable), h(pe), g(G.result?.imageComment?.comment), S(pe), C(G.result?.imageComment?.comment), w([]), D([]), q([]), fe(), R(!1), T(""), r && r(s, pe, G.result?.imageComment);
27024
+ i && i(G.result?.appReleaseTags), l && l(G.result?.tagsEditable), h(pe), g(G.result?.imageComment?.comment), v(pe), C(G.result?.imageComment?.comment), w([]), D([]), q([]), fe(), R(!1), T(""), r && r(s, pe, G.result?.imageComment);
27022
27025
  }).catch((G) => {
27023
27026
  G.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Me.showToast({
27024
27027
  variant: Ce.error,
@@ -27043,7 +27046,7 @@ const s_ = ({
27043
27046
  /* @__PURE__ */ t.jsx("li", { children: "Labels cannot be deleted once saved. Although, you can soft delete a label if an unwanted label has been added." })
27044
27047
  ] })
27045
27048
  ] }), He = U(null);
27046
- if (N === "" && b.length === 0 && !v)
27049
+ if (N === "" && b.length === 0 && !S)
27047
27050
  return c ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 flexbox", children: /* @__PURE__ */ t.jsx(ML, { handleEditClick: fe }) }) : /* @__PURE__ */ t.jsx("div", {});
27048
27051
  const ct = ($) => {
27049
27052
  $.key === "Enter" && $.target.value.trim() && _e($.target.value.trim());
@@ -27055,7 +27058,7 @@ const s_ = ({
27055
27058
  let $ = j;
27056
27059
  te.trim() && ($ = _e(te)), xe($);
27057
27060
  };
27058
- return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: v && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
27061
+ return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: S && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
27059
27062
  /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
27060
27063
  /* @__PURE__ */ t.jsx("div", { children: "Image labels (eg. v1.0)" }),
27061
27064
  Ae()
@@ -27100,7 +27103,7 @@ const s_ = ({
27100
27103
  {
27101
27104
  text: $?.tagName,
27102
27105
  isSoftDeleted: $?.deleted,
27103
- isEditing: v,
27106
+ isEditing: S,
27104
27107
  onSoftDeleteClick: (G) => {
27105
27108
  Se(G), me(ge);
27106
27109
  },
@@ -27170,7 +27173,7 @@ const s_ = ({
27170
27173
  {
27171
27174
  text: $?.tagName,
27172
27175
  isSoftDeleted: $?.deleted,
27173
- isEditing: v,
27176
+ isEditing: S,
27174
27177
  onSoftDeleteClick: (G) => {
27175
27178
  Se(G), me(ge);
27176
27179
  },
@@ -27482,7 +27485,7 @@ const UV = ({ value: e, disabled: s, children: n, dataTestId: a }) => /* @__PURE
27482
27485
  g();
27483
27486
  }, N = (I) => {
27484
27487
  d && (I.preventDefault(), _());
27485
- }, C = e && m === it.INTERMEDIATE, v = () => C ? /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 dc__position-abs flex", children: /* @__PURE__ */ t.jsx("div", { className: "w-8 h-2 br-4 dc__no-shrink bg__white" }) }) : i ? /* @__PURE__ */ t.jsx(i, { className: `icon-dim-20 br-4 p-2 ${c}` }) : null;
27488
+ }, C = e && m === it.INTERMEDIATE, S = () => C ? /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 dc__position-abs flex", children: /* @__PURE__ */ t.jsx("div", { className: "w-8 h-2 br-4 dc__no-shrink bg__white" }) }) : i ? /* @__PURE__ */ t.jsx(i, { className: `icon-dim-20 br-4 p-2 ${c}` }) : null;
27486
27489
  return u ? /* @__PURE__ */ t.jsx(H, { name: "ic-circle-loader", color: "B500", size: 20 }) : /* @__PURE__ */ t.jsxs(
27487
27490
  "label",
27488
27491
  {
@@ -27497,7 +27500,7 @@ const UV = ({ value: e, disabled: s, children: n, dataTestId: a }) => /* @__PURE
27497
27500
  {
27498
27501
  className: `toggle__slider ${C ? "intermediate" : ""} ${i ? "with-icon br-4 dc__border" : "round"}`,
27499
27502
  "data-testid": o,
27500
- children: v()
27503
+ children: S()
27501
27504
  }
27502
27505
  )
27503
27506
  ]
@@ -27708,7 +27711,7 @@ const Dn = ({
27708
27711
  p(b), R.target.name = c, R.target.value = b, s(R);
27709
27712
  }
27710
27713
  if (!e) return null;
27711
- const { button: C, body: v, optionLength: I, AsyncComponent: A } = Le.Children.toArray(e).reduce(
27714
+ const { button: C, body: S, optionLength: I, AsyncComponent: A } = Le.Children.toArray(e).reduce(
27712
27715
  (R, b) => (b.type === u_ ? R.button = b : b.type === m_ ? R.AsyncComponent = b : ((b.type === l_ || b.type === d_) && (R.optionLength += 1), R.body.push(b)), R),
27713
27716
  { button: null, body: [], optionLength: 0, AsyncComponent: null }
27714
27717
  );
@@ -27742,7 +27745,7 @@ const Dn = ({
27742
27745
  f && A,
27743
27746
  /* @__PURE__ */ t.jsx(_t.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children: E ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
27744
27747
  I === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
27745
- v
27748
+ S
27746
27749
  ] }) })
27747
27750
  ] })
27748
27751
  }
@@ -27927,7 +27930,7 @@ export {
27927
27930
  $u as aW,
27928
27931
  Fu as aX,
27929
27932
  jU as aY,
27930
- jt as aZ,
27933
+ Ot as aZ,
27931
27934
  OU as a_,
27932
27935
  y$ as aa,
27933
27936
  j$ as ab,
@@ -27980,7 +27983,7 @@ export {
27980
27983
  oV as bK,
27981
27984
  Hd as bL,
27982
27985
  bc as bM,
27983
- Ot as bN,
27986
+ Lt as bN,
27984
27987
  iV as bO,
27985
27988
  $e as bP,
27986
27989
  qn as bQ,
@@ -28022,7 +28025,7 @@ export {
28022
28025
  tV as bz,
28023
28026
  mV as c,
28024
28027
  UN as c$,
28025
- yt as c0,
28028
+ jt as c0,
28026
28029
  EV as c1,
28027
28030
  iL as c2,
28028
28031
  Xp as c3,
@@ -28057,7 +28060,7 @@ export {
28057
28060
  it as cW,
28058
28061
  Bs as cX,
28059
28062
  Gn as cY,
28060
- Rt as cZ,
28063
+ yt as cZ,
28061
28064
  Pu as c_,
28062
28065
  dL as ca,
28063
28066
  uL as cb,
@@ -28095,7 +28098,7 @@ export {
28095
28098
  VN as d5,
28096
28099
  Mu as d6,
28097
28100
  GN as d7,
28098
- Mt as d8,
28101
+ Tt as d8,
28099
28102
  HN as d9,
28100
28103
  Ab as dA,
28101
28104
  d$ as dB,
@@ -28162,7 +28165,7 @@ export {
28162
28165
  Qc as e8,
28163
28166
  ps as e9,
28164
28167
  ei as eA,
28165
- vt as eB,
28168
+ It as eB,
28166
28169
  um as eC,
28167
28170
  Tn as eD,
28168
28171
  ZT as eE,
@@ -28310,7 +28313,7 @@ export {
28310
28313
  Sp as gQ,
28311
28314
  hy as gR,
28312
28315
  fB as gS,
28313
- Pt as gT,
28316
+ Mt as gT,
28314
28317
  oc as gU,
28315
28318
  FA as gV,
28316
28319
  li as gW,
@@ -28576,7 +28579,7 @@ export {
28576
28579
  mF as kY,
28577
28580
  pF as kZ,
28578
28581
  dt as k_,
28579
- Dt as ka,
28582
+ Pt as ka,
28580
28583
  Ma as kb,
28581
28584
  ne as kc,
28582
28585
  kU as kd,
@@ -28628,7 +28631,7 @@ export {
28628
28631
  nn as lL,
28629
28632
  qU as lM,
28630
28633
  Qu as lN,
28631
- Tt as lO,
28634
+ St as lO,
28632
28635
  Rn as lP,
28633
28636
  JC as lQ,
28634
28637
  XU as lR,
@@ -28691,7 +28694,7 @@ export {
28691
28694
  hC as mJ,
28692
28695
  gC as mK,
28693
28696
  tn as mL,
28694
- At as mM,
28697
+ Rt as mM,
28695
28698
  EC as mN,
28696
28699
  xC as mO,
28697
28700
  NC as mP,