@devtron-labs/devtron-fe-common-lib 1.17.0-pre-1 → 1.17.0-pre-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.
@@ -3703,7 +3703,7 @@ const Cl = () => ({
3703
3703
  const ge = $(null), fe = v ?? ge, [se, ie] = O(!1), [le, de] = O(""), {
3704
3704
  inputId: W,
3705
3705
  required: Ce,
3706
- isDisabled: je,
3706
+ isDisabled: Oe,
3707
3707
  controlShouldRenderValue: ot = !0,
3708
3708
  value: We,
3709
3709
  options: oe,
@@ -3713,19 +3713,19 @@ const Cl = () => ({
3713
3713
  isGroupHeadingSelectable: It = !1,
3714
3714
  getIsOptionValid: F = () => !0,
3715
3715
  customDisplayText: xe = null
3716
- } = x, ue = ot && !xe, we = g && ue ? L.large : i, Ze = !g && o, _t = !C && N, cs = X(
3716
+ } = x, ue = ot && !xe, De = g && ue ? L.large : i, Ze = !g && o, _t = !C && N, cs = X(
3717
3717
  () => wT({
3718
3718
  error: e,
3719
- size: we,
3719
+ size: De,
3720
3720
  menuSize: d,
3721
3721
  variant: _,
3722
3722
  getIsOptionValid: F,
3723
3723
  isGroupHeadingSelectable: It,
3724
3724
  shouldMenuAlignRight: T
3725
3725
  }),
3726
- [e, we, d, _, It, T]
3727
- ), rn = (De) => {
3728
- const Ss = De?.trim();
3726
+ [e, De, d, _, It, T]
3727
+ ), rn = (je) => {
3728
+ const Ss = je?.trim();
3729
3729
  return I && !!Ss && !Sn(
3730
3730
  We,
3731
3731
  Ss,
@@ -3733,40 +3733,40 @@ const Cl = () => ({
3733
3733
  Re
3734
3734
  ) && !Sn(oe, Ss, null, Re);
3735
3735
  }, Da = Be(
3736
- (De) => /* @__PURE__ */ t.jsx(
3736
+ (je) => /* @__PURE__ */ t.jsx(
3737
3737
  $T,
3738
3738
  {
3739
- ...De,
3739
+ ...je,
3740
3740
  showSelectedOptionsCount: l,
3741
3741
  customSelectedOptionsCount: R
3742
3742
  }
3743
3743
  ),
3744
3744
  [l, R]
3745
3745
  ), Pa = Be(
3746
- (De) => /* @__PURE__ */ t.jsx(FT, { ...De, disableDescriptionEllipsis: h }),
3746
+ (je) => /* @__PURE__ */ t.jsx(FT, { ...je, disableDescriptionEllipsis: h }),
3747
3747
  [h]
3748
- ), S_ = (De) => /* @__PURE__ */ t.jsx(VT, { ...De, getIsOptionValid: F }), v_ = Be(
3749
- (De) => /* @__PURE__ */ t.jsx(HT, { ...De, isGroupHeadingSelectable: It }),
3748
+ ), S_ = (je) => /* @__PURE__ */ t.jsx(VT, { ...je, getIsOptionValid: F }), v_ = Be(
3749
+ (je) => /* @__PURE__ */ t.jsx(HT, { ...je, isGroupHeadingSelectable: It }),
3750
3750
  [It]
3751
3751
  ), I_ = () => u ? /* @__PURE__ */ t.jsx(jn, { reload: m }) : j ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: nt?.({
3752
3752
  inputValue: le
3753
- }) || "No options" }) : null, A_ = (De) => /* @__PURE__ */ t.jsx(Ie, { content: c, placement: "top", className: "default-tt", arrow: !1, children: De }), R_ = (De) => {
3754
- const Ss = De?.trim();
3753
+ }) || "No options" }) : null, A_ = (je) => /* @__PURE__ */ t.jsx(Ie, { content: c, placement: "top", className: "default-tt", arrow: !1, children: je }), R_ = (je) => {
3754
+ const Ss = je?.trim();
3755
3755
  Ss && y?.(Ss);
3756
- }, y_ = (De, Ss) => {
3756
+ }, y_ = (je, Ss) => {
3757
3757
  if (Z.onInputChange) {
3758
- Z.onInputChange(De, Ss);
3758
+ Z.onInputChange(je, Ss);
3759
3759
  return;
3760
3760
  }
3761
- de(De);
3762
- }, j_ = (De) => {
3763
- (De.metaKey || De.ctrlKey) && De.key === "Enter" && De.preventDefault(), De.key === "Escape" && (De.stopPropagation(), fe.current.props.menuIsOpen || fe.current.blur()), M?.(De);
3764
- }, O_ = () => {
3765
- ie(!0);
3766
- }, L_ = (De) => {
3767
- ie(!1), Z.onBlur?.(De);
3768
- }, w_ = (...De) => {
3769
- g && rs(Z.inputValue) && de(le), Z.onChange?.(...De);
3761
+ de(je);
3762
+ }, j_ = (je) => {
3763
+ (je.metaKey || je.ctrlKey) && je.key === "Enter" && je.preventDefault(), je.key === "Escape" && (je.stopPropagation(), fe.current.props.menuIsOpen || fe.current.blur()), M?.(je);
3764
+ }, O_ = (je) => {
3765
+ w || ie(!0), Z.onFocus?.(je);
3766
+ }, L_ = (je) => {
3767
+ ie(!1), Z.onBlur?.(je);
3768
+ }, w_ = (...je) => {
3769
+ g && rs(Z.inputValue) && de(le), Z.onChange?.(...je);
3770
3770
  };
3771
3771
  return P(() => {
3772
3772
  re && setTimeout(() => {
@@ -3789,7 +3789,7 @@ const Cl = () => ({
3789
3789
  labelTippyCustomizedConfig: be,
3790
3790
  labelTooltipConfig: Ee,
3791
3791
  hideFormFieldInfo: G,
3792
- children: /* @__PURE__ */ t.jsx(pt, { condition: je && !!c, wrap: A_, children: /* @__PURE__ */ t.jsx("div", { className: "w-100", children: /* @__PURE__ */ t.jsx(
3792
+ children: /* @__PURE__ */ t.jsx(pt, { condition: Oe && !!c, wrap: A_, children: /* @__PURE__ */ t.jsx("div", { className: "w-100", children: /* @__PURE__ */ t.jsx(
3793
3793
  ug,
3794
3794
  {
3795
3795
  ...Z,
@@ -3856,7 +3856,7 @@ const Cl = () => ({
3856
3856
  onKeyDown: j_,
3857
3857
  shouldRenderTextArea: w,
3858
3858
  customDisplayText: xe,
3859
- ...w ? {} : { onFocus: O_ },
3859
+ onFocus: O_,
3860
3860
  onBlur: L_,
3861
3861
  onChange: w_,
3862
3862
  controlShouldRenderValue: ue,
@@ -8145,7 +8145,7 @@ const NI = (e) => ({
8145
8145
  color: "var(--N900)"
8146
8146
  })
8147
8147
  }, AV = (e) => /* @__PURE__ */ t.jsx(Di, { ...e });
8148
- var Ge = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Ge || {}), js = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(js || {}), lc = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(lc || {}), Le = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(Le || {}), di = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(di || {}), OI = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(OI || {}), ms = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(ms || {}), eo = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(eo || {});
8148
+ var Ge = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Ge || {}), js = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(js || {}), lc = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(lc || {}), we = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(we || {}), di = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(di || {}), OI = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(OI || {}), ms = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(ms || {}), eo = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(eo || {});
8149
8149
  const Dl = {
8150
8150
  missing: 1,
8151
8151
  degraded: 2,
@@ -8171,7 +8171,7 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8171
8171
  padding: "0 8px"
8172
8172
  }),
8173
8173
  menuPortal: (e) => ({ ...e, zIndex: 9999 })
8174
- }, PI = "Not Configured", MI = "--", Oe = {
8174
+ }, PI = "Not Configured", MI = "--", Le = {
8175
8175
  SUCCEEDED: "succeeded",
8176
8176
  HEALTHY: "healthy",
8177
8177
  RUNNING: "running",
@@ -8198,7 +8198,7 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8198
8198
  degraded: "var(--R500)",
8199
8199
  healthy: "var(--G500)",
8200
8200
  notdeployed: "var(--N500)",
8201
- [Le.NOT_STARTED.toLowerCase()]: "var(--N500)",
8201
+ [we.NOT_STARTED.toLowerCase()]: "var(--N500)",
8202
8202
  missing: "var(--N700)",
8203
8203
  progressing: "var(--O500)",
8204
8204
  initiating: "var(--O500)",
@@ -8212,7 +8212,7 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8212
8212
  cancelled: "var(--R500)",
8213
8213
  aborted: "var(--R500)",
8214
8214
  timedout: "var(--R500)",
8215
- [Le.TIMEOUT.toLowerCase()]: "var(--R500)",
8215
+ [we.TIMEOUT.toLowerCase()]: "var(--R500)",
8216
8216
  unabletofetch: "var(--R500)",
8217
8217
  hibernating: "var(--N700)"
8218
8218
  }, VI = {
@@ -8221,37 +8221,37 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8221
8221
  starting: !0,
8222
8222
  running: !0
8223
8223
  }, GI = {
8224
- [Le.NOT_STARTED]: "Waiting to start",
8225
- [Le.RUNNING]: "Running",
8226
- [Le.SUCCEEDED]: "Succeeded",
8227
- [Le.FAILED]: "Failed",
8228
- [Le.ABORTED]: "Aborted",
8229
- [Le.TIMEOUT]: "Timed out",
8230
- [Le.UNKNOWN]: "Unknown"
8224
+ [we.NOT_STARTED]: "Waiting to start",
8225
+ [we.RUNNING]: "Running",
8226
+ [we.SUCCEEDED]: "Succeeded",
8227
+ [we.FAILED]: "Failed",
8228
+ [we.ABORTED]: "Aborted",
8229
+ [we.TIMEOUT]: "Timed out",
8230
+ [we.UNKNOWN]: "Unknown"
8231
8231
  }, HI = {
8232
- [Le.SUCCEEDED]: "succeeded",
8233
- [Le.FAILED]: "failed",
8234
- [Le.ABORTED]: "aborted",
8235
- [Le.TIMEOUT]: "timed out"
8232
+ [we.SUCCEEDED]: "succeeded",
8233
+ [we.FAILED]: "failed",
8234
+ [we.ABORTED]: "aborted",
8235
+ [we.TIMEOUT]: "timed out"
8236
8236
  }, YI = {
8237
- [Oe.SUCCEEDED]: "cg-5",
8238
- [Oe.HEALTHY]: "cg-5",
8239
- [Oe.FAILED]: "cr-5",
8240
- [Oe.CANCELLED]: "cr-5",
8241
- [Oe.ERROR]: "cr-5",
8242
- [Oe.TIMED_OUT]: "cr-5",
8243
- [Oe.WAITING_TO_START]: "co-5"
8237
+ [Le.SUCCEEDED]: "cg-5",
8238
+ [Le.HEALTHY]: "cg-5",
8239
+ [Le.FAILED]: "cr-5",
8240
+ [Le.CANCELLED]: "cr-5",
8241
+ [Le.ERROR]: "cr-5",
8242
+ [Le.TIMED_OUT]: "cr-5",
8243
+ [Le.WAITING_TO_START]: "co-5"
8244
8244
  }, WI = {
8245
- [Oe.WAITING_TO_START]: "running",
8246
- [Oe.RUNNING]: "running",
8247
- [Oe.PROGRESSING]: "progressing",
8248
- [Oe.STARTING]: "starting",
8249
- [Oe.INITIATING]: "initiating",
8250
- [Oe.QUEUED]: "queued"
8245
+ [Le.WAITING_TO_START]: "running",
8246
+ [Le.RUNNING]: "running",
8247
+ [Le.PROGRESSING]: "progressing",
8248
+ [Le.STARTING]: "starting",
8249
+ [Le.INITIATING]: "initiating",
8250
+ [Le.QUEUED]: "queued"
8251
8251
  }, Cr = {
8252
- [Le.ABORTED]: !0,
8253
- [Le.FAILED]: !0,
8254
- [Le.TIMEOUT]: !0
8252
+ [we.ABORTED]: !0,
8253
+ [we.FAILED]: !0,
8254
+ [we.TIMEOUT]: !0
8255
8255
  }, KI = ["inprogress", "failed", "disconnect", "timed_out"], zI = () => /* @__PURE__ */ t.jsx(
8256
8256
  Xe,
8257
8257
  {
@@ -8353,10 +8353,10 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8353
8353
  fileName: `${C || f}.zip`
8354
8354
  });
8355
8355
  }
8356
- if (N === Oe.RUNNING || N === Oe.STARTING || N === Oe.WAITING_TO_START)
8356
+ if (N === Le.RUNNING || N === Le.STARTING || N === Le.WAITING_TO_START)
8357
8357
  return /* @__PURE__ */ t.jsx(zI, {});
8358
8358
  if (!a && !i) {
8359
- if (N === Oe.FAILED || N === Oe.CANCELLED || N === Oe.ERROR || N === Oe.TIMED_OUT)
8359
+ if (N === Le.FAILED || N === Le.CANCELLED || N === Le.ERROR || N === Le.TIMED_OUT)
8360
8360
  return /* @__PURE__ */ t.jsx(
8361
8361
  Xe,
8362
8362
  {
@@ -8364,7 +8364,7 @@ const LI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
8364
8364
  subTitle: c ? tt.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifactsError : tt.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError
8365
8365
  }
8366
8366
  );
8367
- if (N === Oe.SUCCEEDED)
8367
+ if (N === Le.SUCCEEDED)
8368
8368
  return /* @__PURE__ */ t.jsx(
8369
8369
  Xe,
8370
8370
  {
@@ -8703,7 +8703,7 @@ const XI = (e, s) => {
8703
8703
  }) => `${e}-${s}`, rA = (e) => {
8704
8704
  const s = e?.[lc.POD]?.[0], { status: n, message: a, endTime: r, metadata: o } = s || {};
8705
8705
  return {
8706
- status: n || Le.UNKNOWN,
8706
+ status: n || we.UNKNOWN,
8707
8707
  message: a || "",
8708
8708
  clusterId: o?.clusterId || to,
8709
8709
  endTime: Ps(r) ? r : ""
@@ -8716,13 +8716,13 @@ const XI = (e, s) => {
8716
8716
  ), a = s.find(
8717
8717
  (c) => c?.stageName === di.EXECUTION
8718
8718
  ), r = n?.startTime;
8719
- let o = Le.UNKNOWN;
8719
+ let o = we.UNKNOWN;
8720
8720
  s.forEach(({ status: c }) => {
8721
- c !== Le.NOT_STARTED && (o = c);
8721
+ c !== we.NOT_STARTED && (o = c);
8722
8722
  });
8723
8723
  let i = "";
8724
8724
  return s.forEach(({ status: c, endTime: l }, d) => {
8725
- (Cr[c] || d === s.length - 1 && c === Le.SUCCEEDED) && (i = l);
8725
+ (Cr[c] || d === s.length - 1 && c === we.SUCCEEDED) && (i = l);
8726
8726
  }), {
8727
8727
  triggeredOn: Ps(r) ? r : "",
8728
8728
  executionStartedOn: Ps(a?.startTime) ? a?.startTime : "",
@@ -8732,12 +8732,12 @@ const XI = (e, s) => {
8732
8732
  };
8733
8733
  }, Qm = (e) => {
8734
8734
  const s = {
8735
- [Le.TIMEOUT]: bt.TIMED_OUT,
8736
- [Le.ABORTED]: bt.ABORTED,
8737
- [Le.FAILED]: bt.FAILED,
8738
- [Le.SUCCEEDED]: bt.SUCCEEDED,
8739
- [Le.NOT_STARTED]: bt.INPROGRESS,
8740
- [Le.RUNNING]: bt.INPROGRESS
8735
+ [we.TIMEOUT]: bt.TIMED_OUT,
8736
+ [we.ABORTED]: bt.ABORTED,
8737
+ [we.FAILED]: bt.FAILED,
8738
+ [we.SUCCEEDED]: bt.SUCCEEDED,
8739
+ [we.NOT_STARTED]: bt.INPROGRESS,
8740
+ [we.RUNNING]: bt.INPROGRESS
8741
8741
  };
8742
8742
  return s[e] ? /* @__PURE__ */ t.jsx(Ln, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(B, { name: "ic-help-outline", size: 20, color: "N500" });
8743
8743
  }, oA = (e) => {
@@ -8796,13 +8796,13 @@ const XI = (e, s) => {
8796
8796
  return { allResourceKindFilter: i, statusFilters: c.filter(({ count: l }) => l > 0) };
8797
8797
  }, Ul = (e, s = !1) => /* @__PURE__ */ t.jsx(so, { status: e, hideMessage: s, hideIconTooltip: !0 }), dA = (e) => {
8798
8798
  switch (e?.toLowerCase()) {
8799
- case Oe.RUNNING:
8800
- case Oe.PROGRESSING:
8801
- case Oe.STARTING:
8802
- case Oe.INITIATING:
8803
- case Oe.WAITING_TO_START:
8799
+ case Le.RUNNING:
8800
+ case Le.PROGRESSING:
8801
+ case Le.STARTING:
8802
+ case Le.INITIATING:
8803
+ case Le.WAITING_TO_START:
8804
8804
  return bt.INPROGRESS;
8805
- case Oe.CANCELLED:
8805
+ case Le.CANCELLED:
8806
8806
  return bt.ABORTED;
8807
8807
  default:
8808
8808
  return e;
@@ -9678,7 +9678,7 @@ const MA = (e) => {
9678
9678
  /* @__PURE__ */ t.jsx(
9679
9679
  "div",
9680
9680
  {
9681
- className: `app-summary__status-name f-${g.resourceStatus ? g.resourceStatus.toLowerCase() === Oe.RUNNING ? Oe.PROGRESSING : g.resourceStatus.toLowerCase() : ""}`,
9681
+ className: `app-summary__status-name f-${g.resourceStatus ? g.resourceStatus.toLowerCase() === Le.RUNNING ? Le.PROGRESSING : g.resourceStatus.toLowerCase() : ""}`,
9682
9682
  children: g.resourceStatus
9683
9683
  }
9684
9684
  ),
@@ -11088,11 +11088,11 @@ const wn = ({
11088
11088
  const W = document.querySelector("body");
11089
11089
  if (W) {
11090
11090
  if (I) {
11091
- const Ce = I.a, je = I.b;
11092
- de = (Ce.hasFocus || je.hasFocus) && (Ce.scrollDOM.scrollWidth > Ce.scrollDOM.clientWidth || je.scrollDOM.scrollWidth > je.scrollDOM.clientWidth);
11091
+ const Ce = I.a, Oe = I.b;
11092
+ de = (Ce.hasFocus || Oe.hasFocus) && (Ce.scrollDOM.scrollWidth > Ce.scrollDOM.clientWidth || Oe.scrollDOM.scrollWidth > Oe.scrollDOM.clientWidth);
11093
11093
  } else if (D.current?.view) {
11094
- const { scrollWidth: Ce, clientWidth: je } = D.current.view.scrollDOM;
11095
- de = D.current.view.hasFocus && Ce > je;
11094
+ const { scrollWidth: Ce, clientWidth: Oe } = D.current.view.scrollDOM;
11095
+ de = D.current.view.hasFocus && Ce > Oe;
11096
11096
  }
11097
11097
  de ? W.classList.add("dc__overscroll-none") : W.classList.remove("dc__overscroll-none");
11098
11098
  }
@@ -11313,13 +11313,13 @@ const wn = ({
11313
11313
  ie(F);
11314
11314
  }, Ce = (F) => {
11315
11315
  le(F);
11316
- }, je = (F) => (R(), dp(F)), ot = (F) => (R(), nR(F)), We = () => [
11316
+ }, Oe = (F) => (R(), dp(F)), ot = (F) => (R(), nR(F)), We = () => [
11317
11317
  Gc(de),
11318
11318
  mf({ closeOnBlur: !1 }),
11319
11319
  be,
11320
11320
  pf.of([
11321
11321
  ...Ef.filter(({ key: F }) => F !== "Mod-Alt-Enter" && F !== "Mod-Enter" && F !== "Mod-f"),
11322
- ...S ? [] : [{ key: "Mod-f", run: je, scope: "editor search-panel" }],
11322
+ ...S ? [] : [{ key: "Mod-f", run: Oe, scope: "editor search-panel" }],
11323
11323
  { key: "Mod-Enter", run: aR, scope: "editor search-panel" },
11324
11324
  { key: "Mod-Alt-f", run: ot, scope: "editor search-panel" },
11325
11325
  { key: "Escape", run: rR, stopPropagation: !0 }
@@ -13439,15 +13439,15 @@ const _c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13439
13439
  try {
13440
13440
  if (G = G.replace(/\[[.]*m/, (le) => `\x1B[${le}m`), Z && y) {
13441
13441
  const le = G.split(Qc), de = G.match(Qc) || [], W = new RegExp(`(${kv(Z)})`, "ig");
13442
- G = le.reduce((je, ot, We) => {
13442
+ G = le.reduce((Oe, ot, We) => {
13443
13443
  try {
13444
- se = se || W.test(ot), je.push(
13444
+ se = se || W.test(ot), Oe.push(
13445
13445
  ot.replace(W, (oe) => (fe && ge?.push(fe), `\x1B[0m\x1B[48;2;${ge && re === ge.length - 1 ? "0;102;204" : "197;141;54"}m${oe}\x1B[0m${We > 0 ? de[We - 1] : ""}`))
13446
13446
  );
13447
13447
  } catch {
13448
- je.push(ot);
13448
+ Oe.push(ot);
13449
13449
  }
13450
- return We < le.length - 1 && je.push(de[We]), je;
13450
+ return We < le.length - 1 && Oe.push(de[We]), Oe;
13451
13451
  }, []).join("");
13452
13452
  }
13453
13453
  return {
@@ -13468,11 +13468,11 @@ const _c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13468
13468
  ), ge = {}, fe = [], se = d.reduce((ie, le, de) => {
13469
13469
  if (le.startsWith(Ml))
13470
13470
  try {
13471
- const { stage: W, startTime: Ce, endTime: je, status: ot, metadata: We } = JSON.parse(
13471
+ const { stage: W, startTime: Ce, endTime: Oe, status: ot, metadata: We } = JSON.parse(
13472
13472
  le.split(BI)[1]
13473
13473
  ), oe = ie.find((nt) => nt.stage === W && nt.startTime === Ce), Re = Z[W]?.[Ce] ?? {};
13474
13474
  if (oe)
13475
- oe.endTime = je, oe.status = ot, oe.isOpen = j(
13475
+ oe.endTime = Oe, oe.status = ot, oe.isOpen = j(
13476
13476
  ot,
13477
13477
  Re.isOpen,
13478
13478
  !!ge[W]?.[Ce],
@@ -13483,7 +13483,7 @@ const _c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13483
13483
  ie.push({
13484
13484
  stage: W || `Untitled stage ${de + 1}`,
13485
13485
  startTime: Ce || "",
13486
- endTime: je || "",
13486
+ endTime: Oe || "",
13487
13487
  // Would be defining the state when we receive the end status, otherwise it is loading and would be open
13488
13488
  isOpen: j(
13489
13489
  nt,
@@ -13505,14 +13505,14 @@ const _c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
13505
13505
  const W = ie[ie.length - 1], Ce = Zm({
13506
13506
  stageIndex: ie.length - 1,
13507
13507
  lineNumberInsideStage: W.logs.length
13508
- }), { __html: je, isSearchKeyPresent: ot } = S({
13508
+ }), { __html: Oe, isSearchKeyPresent: ot } = S({
13509
13509
  log: le,
13510
13510
  currentIndex: G,
13511
13511
  searchMatchResults: fe,
13512
13512
  targetSearchKey: re,
13513
13513
  searchIndex: Ce
13514
13514
  });
13515
- W.logs.push(je), ot && (W.isOpen = j(
13515
+ W.logs.push(Oe), ot && (W.isOpen = j(
13516
13516
  W.status,
13517
13517
  Z[W.stage]?.[W.startTime]?.isOpen,
13518
13518
  !0,
@@ -15133,7 +15133,7 @@ const S0 = (e) => {
15133
15133
  )
15134
15134
  ] });
15135
15135
  }), O0 = vt(
15136
- ({ status: e, finishedOn: s, artifact: n, stage: a, type: r, executionInfo: o }) => o ? o.finishedOn ? /* @__PURE__ */ t.jsx(md, { executionInfo: o, artifact: n, type: r }) : o.currentStatus === Le.RUNNING ? /* @__PURE__ */ t.jsx(
15136
+ ({ status: e, finishedOn: s, artifact: n, stage: a, type: r, executionInfo: o }) => o ? o.finishedOn ? /* @__PURE__ */ t.jsx(md, { executionInfo: o, artifact: n, type: r }) : o.currentStatus === we.RUNNING ? /* @__PURE__ */ t.jsx(
15137
15137
  pd,
15138
15138
  {
15139
15139
  stage: a,
@@ -15142,7 +15142,7 @@ const S0 = (e) => {
15142
15142
  label: "Waiting to start"
15143
15143
  }
15144
15144
  }
15145
- ) : o.currentStatus === Le.UNKNOWN ? /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-8 left py-8", children: [
15145
+ ) : o.currentStatus === we.UNKNOWN ? /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-8 left py-8", children: [
15146
15146
  /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-6 lh-20", children: "Unknown status" }),
15147
15147
  r === Ge.CI && n && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
15148
15148
  /* @__PURE__ */ t.jsx("div", { className: "dc__bullet" }),
@@ -16385,8 +16385,8 @@ const Z0 = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
16385
16385
  y.current = setTimeout(
16386
16386
  async () => {
16387
16387
  try {
16388
- const je = await S();
16389
- U(je);
16388
+ const Oe = await S();
16389
+ U(Oe);
16390
16390
  } catch {
16391
16391
  }
16392
16392
  K();
@@ -24448,15 +24448,15 @@ const EL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
24448
24448
  parentPluginIdList: Ce
24449
24449
  } = se;
24450
24450
  a(CL(n, le, de)), b(W);
24451
- const je = ie ? structuredClone(E) : [], ot = je.reduce(
24451
+ const Oe = ie ? structuredClone(E) : [], ot = Oe.reduce(
24452
24452
  (We, oe) => (We[oe.parentPluginId] = !0, We),
24453
24453
  {}
24454
24454
  );
24455
24455
  Ce.forEach((We) => {
24456
- ot[We] || (je.push({
24456
+ ot[We] || (Oe.push({
24457
24457
  parentPluginId: We
24458
24458
  }), ot[We] = !0);
24459
- }), R(je);
24459
+ }), R(Oe);
24460
24460
  };
24461
24461
  P(() => {
24462
24462
  !(w || Kt(D)) && !D && M && be(M);
@@ -25244,7 +25244,7 @@ const FL = ({
25244
25244
  M(oe);
25245
25245
  }, Ce = (oe) => {
25246
25246
  oe && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && oe.dataset.active === "true" && (oe.focus({ preventScroll: !0 }), YL(oe, g.current, C.current?.offsetHeight), oe.dataset.active = "false");
25247
- }, je = () => {
25247
+ }, Oe = () => {
25248
25248
  v(null);
25249
25249
  }, ot = () => be && s ? h : Object.values(ee), We = () => i ? qa.map((oe) => /* @__PURE__ */ t.jsxs(
25250
25250
  "div",
@@ -25284,8 +25284,8 @@ const FL = ({
25284
25284
  "data-active": nt,
25285
25285
  tabIndex: -1,
25286
25286
  children: [
25287
- r.map(({ field: ue, horizontallySticky: we, CellComponent: Ze }, _t) => {
25288
- const cs = ue === ir, rn = we || cs, { className: Da = "", left: Pa = "" } = rn ? Yd(Z, _t) : {};
25287
+ r.map(({ field: ue, horizontallySticky: De, CellComponent: Ze }, _t) => {
25288
+ const cs = ue === ir, rn = De || cs, { className: Da = "", left: Pa = "" } = rn ? Yd(Z, _t) : {};
25289
25289
  return cs ? /* @__PURE__ */ t.jsx(
25290
25290
  "div",
25291
25291
  {
@@ -25368,7 +25368,7 @@ const FL = ({
25368
25368
  showTippyOnTruncate: F,
25369
25369
  horizontallySticky: xe
25370
25370
  }, ue) => {
25371
- const we = !!It?.range, _t = xe || Re === ir, { className: cs = "", left: rn = "" } = _t ? Yd(Z, ue) : {};
25371
+ const De = !!It?.range, _t = xe || Re === ir, { className: cs = "", left: rn = "" } = _t ? Yd(Z, ue) : {};
25372
25372
  return Re === ir ? /* @__PURE__ */ t.jsx(
25373
25373
  "div",
25374
25374
  {
@@ -25401,7 +25401,7 @@ const FL = ({
25401
25401
  triggerSorting: W(Re),
25402
25402
  showTippyOnTruncate: F,
25403
25403
  disabled: x,
25404
- ...we ? { isResizable: we, handleResize: re, id: oe } : { isResizable: !1 }
25404
+ ...De ? { isResizable: De, handleResize: re, id: oe } : { isResizable: !1 }
25405
25405
  },
25406
25406
  Re
25407
25407
  )
@@ -25446,7 +25446,7 @@ const FL = ({
25446
25446
  I,
25447
25447
  {
25448
25448
  action: N,
25449
- onClose: je,
25449
+ onClose: Oe,
25450
25450
  bulkOperationModalData: y,
25451
25451
  isBulkSelectionApplied: be,
25452
25452
  selections: ot()
@@ -27746,8 +27746,8 @@ const h_ = ({
27746
27746
  S("");
27747
27747
  const xe = E.includes(F);
27748
27748
  let ue = !1;
27749
- for (let we = 0; we < b?.length; we++)
27750
- b[we].tagName.toLowerCase() === F && (ue = !0);
27749
+ for (let De = 0; De < b?.length; De++)
27750
+ b[De].tagName.toLowerCase() === F && (ue = !0);
27751
27751
  return xe || ue || F === "latest" ? (S("This label is already being used in this application"), !1) : !0;
27752
27752
  }, ie = (F) => {
27753
27753
  const xe = F.toLowerCase().trim();
@@ -27759,8 +27759,8 @@ const h_ = ({
27759
27759
  deleted: !1,
27760
27760
  artifactId: 0,
27761
27761
  duplicateTag: !1
27762
- }, we = [...j, ue];
27763
- return w(we), I([...b, ue]), R(!0), be(""), we;
27762
+ }, De = [...j, ue];
27763
+ return w(De), I([...b, ue]), R(!0), be(""), De;
27764
27764
  }
27765
27765
  return j;
27766
27766
  }, le = (F) => {
@@ -27769,13 +27769,13 @@ const h_ = ({
27769
27769
  ...xe[F],
27770
27770
  deleted: !xe[F].deleted
27771
27771
  };
27772
- const ue = xe[F], we = [...M], Ze = we.findIndex((_t) => _t.tagName === ue.tagName);
27773
- Ze !== -1 ? we.splice(Ze, 1) : we.push(ue), I(xe), D(we);
27772
+ const ue = xe[F], De = [...M], Ze = De.findIndex((_t) => _t.tagName === ue.tagName);
27773
+ Ze !== -1 ? De.splice(Ze, 1) : De.push(ue), I(xe), D(De);
27774
27774
  }, de = (F) => {
27775
27775
  const xe = b[F], ue = j.filter((_t) => _t.tagName !== xe.tagName);
27776
27776
  w(ue);
27777
- const we = [...b];
27778
- we.splice(F, 1), I(we);
27777
+ const De = [...b];
27778
+ De.splice(F, 1), I(De);
27779
27779
  const Ze = E.filter((_t) => _t.toLowerCase() !== xe.tagName.toLowerCase());
27780
27780
  if (f(Ze), xe.id !== 0) {
27781
27781
  const _t = [...U, xe];
@@ -27788,11 +27788,11 @@ const h_ = ({
27788
27788
  duplicateTag: !0
27789
27789
  } : Ze);
27790
27790
  w(ue);
27791
- const we = b.map((Ze) => {
27791
+ const De = b.map((Ze) => {
27792
27792
  const _t = ue.find((cs) => cs.tagName === Ze.tagName);
27793
27793
  return _t ? { ...Ze, duplicateTag: _t.duplicateTag } : Ze;
27794
27794
  });
27795
- I(we);
27795
+ I(De);
27796
27796
  });
27797
27797
  }, Ce = async (F) => {
27798
27798
  if (y) return;
@@ -27807,14 +27807,14 @@ const h_ = ({
27807
27807
  hardDeleteTags: U
27808
27808
  };
27809
27809
  G(!0), rS(xe, e ?? 0, s).then((ue) => {
27810
- const we = ue.result?.imageReleaseTags?.map((Ze) => ({
27810
+ const De = ue.result?.imageReleaseTags?.map((Ze) => ({
27811
27811
  id: Ze.id,
27812
27812
  tagName: Ze.tagName,
27813
27813
  deleted: Ze.deleted,
27814
27814
  appId: 0,
27815
27815
  artifactId: 0
27816
27816
  }));
27817
- i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(we), g(ue.result?.imageComment?.comment), I(we), N(ue.result?.imageComment?.comment), w([]), D([]), H([]), Z(), R(!1), S(""), r && r(s, we, ue.result?.imageComment);
27817
+ i && i(ue.result?.appReleaseTags), l && l(ue.result?.tagsEditable), h(De), g(ue.result?.imageComment?.comment), I(De), N(ue.result?.imageComment?.comment), w([]), D([]), H([]), Z(), R(!1), S(""), r && r(s, De, ue.result?.imageComment);
27818
27818
  }).catch((ue) => {
27819
27819
  ue.errors?.[0]?.userMessage?.appReleaseTags?.length ? ($e.showToast({
27820
27820
  variant: Te.error,
@@ -27823,7 +27823,7 @@ const h_ = ({
27823
27823
  }).finally(() => {
27824
27824
  G(!1);
27825
27825
  });
27826
- }, je = () => /* @__PURE__ */ t.jsx(
27826
+ }, Oe = () => /* @__PURE__ */ t.jsx(
27827
27827
  an,
27828
27828
  {
27829
27829
  heading: "Image labels",
@@ -27854,7 +27854,7 @@ const h_ = ({
27854
27854
  return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: v && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
27855
27855
  /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
27856
27856
  /* @__PURE__ */ t.jsx("div", { children: "Image labels (eg. v1.0)" }),
27857
- je()
27857
+ Oe()
27858
27858
  ] }),
27859
27859
  /* @__PURE__ */ t.jsxs("div", { className: "mt-6 dc__position-rel-imp", "data-testid": "add-tag-text-area", children: [
27860
27860
  /* @__PURE__ */ t.jsx(
@@ -28556,7 +28556,7 @@ export {
28556
28556
  nS as Y,
28557
28557
  ts as Z,
28558
28558
  aS as _,
28559
- h0 as a,
28559
+ Ht as a,
28560
28560
  Jc as a$,
28561
28561
  Rm as a0,
28562
28562
  lS as a1,
@@ -28992,7 +28992,7 @@ export {
28992
28992
  Ge as gf,
28993
28993
  js as gg,
28994
28994
  lc as gh,
28995
- Le as gi,
28995
+ we as gi,
28996
28996
  di as gj,
28997
28997
  OI as gk,
28998
28998
  ms as gl,
@@ -29150,9 +29150,9 @@ export {
29150
29150
  DV as j7,
29151
29151
  u0 as j8,
29152
29152
  p0 as j9,
29153
- cB as jA,
29154
- Pm as jB,
29155
- Ht as jC,
29153
+ XV as jA,
29154
+ cB as jB,
29155
+ Pm as jC,
29156
29156
  Sn as jD,
29157
29157
  xB as jE,
29158
29158
  ZS as jF,
@@ -29179,30 +29179,30 @@ export {
29179
29179
  MO as j_,
29180
29180
  _0 as ja,
29181
29181
  f0 as jb,
29182
- PV as jc,
29183
- MV as jd,
29184
- UV as je,
29185
- ns as jf,
29186
- Cc as jg,
29187
- wp as jh,
29188
- qV as ji,
29189
- Ar as jj,
29190
- zV as jk,
29191
- En as jl,
29192
- Lp as jm,
29193
- Gy as jn,
29194
- J as jo,
29195
- HV as jp,
29196
- WV as jq,
29197
- YV as jr,
29198
- gy as js,
29199
- Ip as jt,
29200
- Ap as ju,
29201
- xy as jv,
29202
- Ir as jw,
29203
- KV as jx,
29204
- Hy as jy,
29205
- XV as jz,
29182
+ h0 as jc,
29183
+ PV as jd,
29184
+ MV as je,
29185
+ UV as jf,
29186
+ ns as jg,
29187
+ Cc as jh,
29188
+ wp as ji,
29189
+ qV as jj,
29190
+ Ar as jk,
29191
+ zV as jl,
29192
+ En as jm,
29193
+ Lp as jn,
29194
+ Gy as jo,
29195
+ J as jp,
29196
+ HV as jq,
29197
+ WV as jr,
29198
+ YV as js,
29199
+ gy as jt,
29200
+ Ip as ju,
29201
+ Ap as jv,
29202
+ xy as jw,
29203
+ Ir as jx,
29204
+ KV as jy,
29205
+ Hy as jz,
29206
29206
  pb as k,
29207
29207
  AF as k$,
29208
29208
  UG as k0,