@devtron-labs/devtron-fe-common-lib 1.10.3 → 1.10.4
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,19 +6,19 @@ var Ap = (e, s, n) => s in e ? Ip(e, s, { enumerable: !0, configurable: !0, writ
|
|
6
6
|
var pe = (e, s, n) => Ap(e, typeof s != "symbol" ? s + "" : s, n), Zi = (e, s, n) => s.has(e) || Ji("Cannot " + n);
|
7
7
|
var Ds = (e, s, n) => (Zi(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Ea = (e, s, n) => s.has(e) ? Ji("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Na = (e, s, n, a) => (Zi(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
8
|
import { j as t, i as fe, n as yp, Q as Kr, k as Rp, D as Va, d as id, h as jp, A as Op, R as Lp, s as wp, c as Dp, S as Qi, a as Pp, b as kp, y as Mp, l as Ga, e as Up, f as $p, g as Bp, m as Fp, o as ec, p as Vp, q as tc, r as Gp, t as Hp, u as Yp, v as Kp, T as sc, w as si, x as Wp, z as nc, B as cd, C as ld, E as ni, F as zp, V as qp, G as Xp, H as Jp, I as dd, J as Zp, K as Qp, L as ud, M as ac, N as e_, O as t_, P as rc, U as s_, W as n_, X as Vn, Y as a_, Z as oc, _ as Ve, $ as r_, a0 as o_, a1 as ic, a2 as i_, a3 as c_, a4 as Wr, a5 as cc, a6 as l_, a7 as d_, a8 as u_, a9 as m_, aa as p_, ab as __, ac as f_, ad as h_, ae as md, af as g_, ag as lc, ah as dc, ai as x_, aj as E_, ak as N_, al as C_, am as b_, an as T_, ao as pd, ap as _d, aq as S_, ar as v_, as as I_, at as A_, au as Ms } from "./@vendor-DXbFZ041.js";
|
9
|
-
import Te, { useState as R, cloneElement as Gn, useRef as H, useEffect as M, Component as xr, Children as uc, createElement as ai, useMemo as X, useCallback as qe, createContext as Pt, useContext as
|
9
|
+
import Te, { useState as R, cloneElement as Gn, useRef as H, useEffect as M, Component as xr, Children as uc, createElement as ai, useMemo as X, useCallback as qe, createContext as Pt, useContext as ms, Fragment as Hs, memo as gt, useReducer as y_, createRef as Ns } from "react";
|
10
10
|
import ri, { components as Be } from "react-select";
|
11
|
-
import R_, { ReactComponent as
|
11
|
+
import R_, { ReactComponent as is } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
12
12
|
import { ReactComponent as ta } from "./assets/ic-warning.ecf7ff97.svg";
|
13
13
|
import { ReactComponent as j_ } from "./assets/ic-cpu.8be677ee.svg";
|
14
14
|
import { ReactComponent as O_ } from "./assets/ic-memory.c4159f96.svg";
|
15
15
|
import { ReactComponent as oi } from "./assets/ic-timer.b62145ec.svg";
|
16
16
|
import { ReactComponent as L_ } from "./assets/ic-spray-can.955302fc.svg";
|
17
17
|
import { ReactComponent as Er } from "./assets/ic-tag.1613fc59.svg";
|
18
|
-
import { Link as
|
18
|
+
import { Link as ps, useLocation as Ls, useHistory as zs, NavLink as ft, useParams as bt, useRouteMatch as Jt, generatePath as Fs, Switch as fd, Route as $s, Redirect as w_, Prompt as D_ } from "react-router-dom";
|
19
19
|
import { ReactComponent as P_ } from "./assets/ic-delete-interactive.304dd293.svg";
|
20
20
|
import * as k_ from "yaml";
|
21
|
-
import
|
21
|
+
import Lt, { parse as M_, YAMLParseError as U_ } from "yaml";
|
22
22
|
import { ReactComponent as $_ } from "./assets/ic-info-filled-override.99e8094a.svg";
|
23
23
|
import { ReactComponent as B_ } from "./assets/ic-var-initial.afdaa854.svg";
|
24
24
|
import { ReactComponent as ii } from "./assets/ic-info-outline.29f1089c.svg";
|
@@ -33,7 +33,7 @@ import { ReactComponent as H_ } from "./assets/ic-bot.f1d4abcc.svg";
|
|
33
33
|
import { ReactComponent as xd } from "./assets/ic-vulnerability-not-found.7d75cc30.svg";
|
34
34
|
import { ReactComponent as Y_ } from "./assets/ic-shield-warning-outline.e6832dbc.svg";
|
35
35
|
import { ReactComponent as K_ } from "./assets/ic-shield-check.ecde083d.svg";
|
36
|
-
import { ReactComponent as
|
36
|
+
import { ReactComponent as _s } from "./assets/ic-error-exclamation.c224de09.svg";
|
37
37
|
import { ReactComponent as Ha } from "./assets/ic-caret-down-small.66339dda.svg";
|
38
38
|
import { ReactComponent as li } from "./assets/ic-caret-left-small.fe00c98d.svg";
|
39
39
|
import { ReactComponent as di } from "./assets/ic-clock.c21a2d14.svg";
|
@@ -43,7 +43,7 @@ import { ReactComponent as Nr } from "./assets/ic-pencil.c75a6acc.svg";
|
|
43
43
|
import { ReactComponent as W_ } from "./assets/ic-charts.f41e185f.svg";
|
44
44
|
import { ReactComponent as Cr } from "./assets/ic-add.cfaa779b.svg";
|
45
45
|
import { ReactComponent as z_ } from "./assets/ic-k8s-job.f4414c10.svg";
|
46
|
-
import
|
46
|
+
import cs from "react-ga4";
|
47
47
|
import { ReactComponent as Nd } from "./assets/ic-medium-paintbucket.45544bb9.svg";
|
48
48
|
import { ReactComponent as hn } from "./assets/ic-help-outline.9c012a0c.svg";
|
49
49
|
import q_ from "./assets/lifebuoy.7d8fdf27.png";
|
@@ -71,7 +71,7 @@ import { ReactComponent as af } from "./assets/ic-visibility-on.7505dd12.svg";
|
|
71
71
|
import { ReactComponent as rf } from "./assets/ic-visibility-off.d91d3844.svg";
|
72
72
|
import { ReactComponent as of } from "./assets/ic-expand-all.d1d223f2.svg";
|
73
73
|
import { ReactComponent as cf } from "./assets/ic-collapse-all.56740920.svg";
|
74
|
-
import { ReactComponent as
|
74
|
+
import { ReactComponent as ls } from "./assets/ic-caret-down.1666c029.svg";
|
75
75
|
import { ReactComponent as qs } from "./assets/ic-info-filled.f870ac11.svg";
|
76
76
|
import { ReactComponent as gn } from "./assets/ic-help.39c58c34.svg";
|
77
77
|
import { ReactComponent as yd } from "./assets/ic-arrow-out.6aea09d0.svg";
|
@@ -118,7 +118,7 @@ import { ReactComponent as wf } from "./assets/ic-in-progress.53ef18ae.svg";
|
|
118
118
|
import { ReactComponent as Df } from "./assets/ic-download.c30437cd.svg";
|
119
119
|
import Pf from "./assets/ic-folder.051cd30d.svg";
|
120
120
|
import Pd from "./assets/no-artifact.fd2d84d9.webp";
|
121
|
-
import kf, { ReactComponent as
|
121
|
+
import kf, { ReactComponent as fs } from "./assets/ic-cross.01e03666.svg";
|
122
122
|
import { ReactComponent as kd } from "./assets/ic-arrow-counter-clockwise.01cbb0e1.svg";
|
123
123
|
import { ReactComponent as Mf } from "./assets/ic-minus.df865aaf.svg";
|
124
124
|
import { ReactComponent as Uf } from "./assets/ic-enter.cab07082.svg";
|
@@ -483,7 +483,7 @@ const Io = {
|
|
483
483
|
TOOLTIP_DONT_SHOW_AGAIN: "Tooltip Dont show again",
|
484
484
|
HELP: "Clicked Help",
|
485
485
|
SKIP_AND_EXPLORE_DEVTRON: "SkippedOnboarding"
|
486
|
-
}, Jd = 5, Zd = "login-count", JL = "devtron-ci",
|
486
|
+
}, Jd = 5, Zd = "login-count", JL = "devtron-ci", At = {
|
487
487
|
TWELVE_HOURS_FORMAT: "ddd, DD MMM YYYY, hh:mm A",
|
488
488
|
TWELVE_HOURS_FORMAT_WITHOUT_WEEKDAY: "DD MMM YYYY, hh:mm A",
|
489
489
|
TWELVE_HOURS_EXPORT_FORMAT: "DD-MMM-YYYY hh.mm A",
|
@@ -501,7 +501,7 @@ const QL = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2), Qd = Symbol(
|
|
501
501
|
`The element at this index remains unchanged from the original object.
|
502
502
|
This symbol is used by @buildObjectFromPath & later consumed by @recursivelyRemoveSymbolFromArraysInObject`
|
503
503
|
);
|
504
|
-
var
|
504
|
+
var Es = /* @__PURE__ */ ((e) => (e.google = "google", e.github = "github", e.gitlab = "gitlab", e.microsoft = "microsoft", e.ldap = "ldap", e.oidc = "oidc", e.openshift = "openshift", e))(Es || {});
|
505
505
|
class sx {
|
506
506
|
constructor(s) {
|
507
507
|
pe(this, "code");
|
@@ -511,14 +511,14 @@ class sx {
|
|
511
511
|
this.code = s.code || 0, this.userMessage = s.userMessage || "", this.internalMessage = s.internalMessage || "", this.moreInfo = s.moreInfo || "";
|
512
512
|
}
|
513
513
|
}
|
514
|
-
class
|
514
|
+
class wt extends Error {
|
515
515
|
constructor(n) {
|
516
516
|
super();
|
517
517
|
pe(this, "code");
|
518
518
|
pe(this, "errors");
|
519
519
|
this.code = n.code;
|
520
520
|
const a = n.errors.reduce((r, o) => (r += `${o.internalMessage || o.userMessage}`, r), "");
|
521
|
-
this.name = `[${n.code.toString()}]`, this.message = a, this.errors = n.errors.map((r) => new sx(r)), Object.setPrototypeOf(this,
|
521
|
+
this.name = `[${n.code.toString()}]`, this.message = a, this.errors = n.errors.map((r) => new sx(r)), Object.setPrototypeOf(this, wt.prototype);
|
522
522
|
}
|
523
523
|
}
|
524
524
|
var sa = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(sa || {}), mt = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(mt || {}), Xs = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(Xs || {});
|
@@ -526,7 +526,7 @@ const wn = {
|
|
526
526
|
Security: "SECURITY",
|
527
527
|
Changes: "CHANGES"
|
528
528
|
};
|
529
|
-
var Ut = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ut || {}), eu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(eu || {}), nx = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(nx || {}), ax = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(ax || {}), $n = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))($n || {}), rx = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(rx || {}), ox = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(ox || {}), Ao = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Ao || {}), ix = /* @__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))(ix || {}), tu = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(tu || {}), cx = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(cx || {}), an = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(an || {}), lx = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(lx || {}), Vs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Vs || {}),
|
529
|
+
var Ut = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ut || {}), eu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(eu || {}), nx = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(nx || {}), ax = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(ax || {}), $n = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))($n || {}), rx = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(rx || {}), ox = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(ox || {}), Ao = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Ao || {}), ix = /* @__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))(ix || {}), tu = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(tu || {}), cx = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(cx || {}), an = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(an || {}), lx = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(lx || {}), Vs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Vs || {}), bs = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(bs || {}), Kn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Kn || {}), yo = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(yo || {}), dx = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(dx || {});
|
530
530
|
const Ec = {
|
531
531
|
100: "Continue",
|
532
532
|
101: "Switching Protocols",
|
@@ -604,7 +604,7 @@ function ux() {
|
|
604
604
|
async function mx(e, s) {
|
605
605
|
const n = s.status;
|
606
606
|
let a = s.statusText || Ec[n];
|
607
|
-
const r = new
|
607
|
+
const r = new wt({ code: n, errors: [] });
|
608
608
|
if (e !== "application/json")
|
609
609
|
a = `${Ec[n]}. Please try again.`;
|
610
610
|
else {
|
@@ -630,7 +630,7 @@ async function px(e, s, n, a, r = !1, o) {
|
|
630
630
|
const l = c.headers.get("Content-Type");
|
631
631
|
if (c.status === 401) {
|
632
632
|
if (r)
|
633
|
-
throw new
|
633
|
+
throw new wt({
|
634
634
|
code: 401,
|
635
635
|
errors: [
|
636
636
|
{ code: 401, internalMessage: "Please login again", userMessage: "Please login again" }
|
@@ -647,7 +647,7 @@ async function px(e, s, n, a, r = !1, o) {
|
|
647
647
|
if (l === "application/json")
|
648
648
|
return c.json().then((d) => {
|
649
649
|
if (d.code >= 300 && d.code <= 599)
|
650
|
-
throw new
|
650
|
+
throw new wt({ code: d.code, errors: d.errors });
|
651
651
|
return d;
|
652
652
|
});
|
653
653
|
if (l === "octet-stream" || l === "application/octet-stream")
|
@@ -661,7 +661,7 @@ async function px(e, s, n, a, r = !1, o) {
|
|
661
661
|
internalMessage: c.message,
|
662
662
|
moreInfo: c.message
|
663
663
|
};
|
664
|
-
throw new
|
664
|
+
throw new wt({ code: 0, errors: [l] });
|
665
665
|
}
|
666
666
|
);
|
667
667
|
}
|
@@ -686,7 +686,7 @@ function na(e, s, n, a, r) {
|
|
686
686
|
),
|
687
687
|
c
|
688
688
|
]).catch((l) => {
|
689
|
-
throw l instanceof
|
689
|
+
throw l instanceof wt ? l : new wt({
|
690
690
|
code: 408,
|
691
691
|
errors: [
|
692
692
|
{
|
@@ -1274,7 +1274,7 @@ const cu = {
|
|
1274
1274
|
elementRef: r,
|
1275
1275
|
...o
|
1276
1276
|
}) => e === zn.link ? /* @__PURE__ */ t.jsx(
|
1277
|
-
|
1277
|
+
ps,
|
1278
1278
|
{
|
1279
1279
|
...s,
|
1280
1280
|
...o,
|
@@ -1382,7 +1382,7 @@ const cu = {
|
|
1382
1382
|
useInfoIcon: c = !1,
|
1383
1383
|
progressingProps: l
|
1384
1384
|
}) => {
|
1385
|
-
const d = () => l ? /* @__PURE__ */ t.jsx($e, { name: "ic-circle-loader", ...l }) : c ? /* @__PURE__ */ t.jsx(ii, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(
|
1385
|
+
const d = () => l ? /* @__PURE__ */ t.jsx($e, { name: "ic-circle-loader", ...l }) : c ? /* @__PURE__ */ t.jsx(ii, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(_s, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
|
1386
1386
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${i || ""}`, children: [
|
1387
1387
|
d(),
|
1388
1388
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
|
@@ -1762,7 +1762,7 @@ const cu = {
|
|
1762
1762
|
}, xw = (e) => {
|
1763
1763
|
const { selectProps: s } = e;
|
1764
1764
|
return /* @__PURE__ */ t.jsx(Be.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
1765
|
-
|
1765
|
+
is,
|
1766
1766
|
{
|
1767
1767
|
className: "rotate",
|
1768
1768
|
style: {
|
@@ -1844,7 +1844,7 @@ const Ei = (e) => {
|
|
1844
1844
|
y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${O ? "mr-12" : ""}`, children: y }),
|
1845
1845
|
b && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" }) }),
|
1846
1846
|
O && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1847
|
-
|
1847
|
+
fs,
|
1848
1848
|
{
|
1849
1849
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "icon-fill__white"}`,
|
1850
1850
|
onClick: c
|
@@ -1956,7 +1956,7 @@ const Ei = (e) => {
|
|
1956
1956
|
)
|
1957
1957
|
}
|
1958
1958
|
);
|
1959
|
-
var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), ve = /* @__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))(ve || {}), uu = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(uu || {}),
|
1959
|
+
var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), ve = /* @__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))(ve || {}), uu = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(uu || {}), vs = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(vs || {}), mu = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(mu || {}), Xa = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Xa || {}), qn = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(qn || {}), ko = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(ko || {}), Mo = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(Mo || {}), xt = /* @__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))(xt || {}), pu = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(pu || {});
|
1960
1960
|
const js = {
|
1961
1961
|
// Will not enforce any decimal specification on input field
|
1962
1962
|
STEP: "any",
|
@@ -2113,7 +2113,7 @@ const js = {
|
|
2113
2113
|
keyToPersist: "limit",
|
2114
2114
|
keyToPersistConfigType: U.MEMORY_LIMIT
|
2115
2115
|
}
|
2116
|
-
}, cE = mu.NO_SCHEDULE, lE =
|
2116
|
+
}, cE = mu.NO_SCHEDULE, lE = vs.EQUALS, dE = {
|
2117
2117
|
[U.BUILD_TIMEOUT]: !0,
|
2118
2118
|
[U.CONFIG_MAP]: !0,
|
2119
2119
|
[U.SECRET]: !0
|
@@ -2377,8 +2377,8 @@ function gE(e, s) {
|
|
2377
2377
|
{ nodes: {}, aggregation: {}, statusCount: {}, nodeStatusCount: {}, aggregatorStatusCount: {} }
|
2378
2378
|
);
|
2379
2379
|
}
|
2380
|
-
const xE = (e, s = !1) => s ? btoa(e) : atob(e), $o = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? xE(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}),
|
2381
|
-
if (!
|
2380
|
+
const xE = (e, s = !1) => s ? btoa(e) : atob(e), $o = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? xE(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), Is = (e) => !!e && e !== En, EE = (e, s) => {
|
2381
|
+
if (!Is(e) || !Is(s))
|
2382
2382
|
return "-";
|
2383
2383
|
const n = ke(s).diff(ke(e), "seconds"), a = ke(s).diff(ke(e), "minutes"), r = ke(s).diff(ke(e), "hours");
|
2384
2384
|
if (n < 60)
|
@@ -2459,7 +2459,7 @@ const xE = (e, s = !1) => s ? btoa(e) : atob(e), $o = (e, s = !1) => Object.keys
|
|
2459
2459
|
return r && typeof r == "object" ? s[a] = Ni(r) : s[a] = r, s;
|
2460
2460
|
}, {}), Nu = (e, s) => {
|
2461
2461
|
const n = Ni(s), r = e === Ht.WEBHOOK || n?.webhookdata?.id !== 0 ? n.webhookdata : {}, o = ke(r.data.date, "YYYY-MM-DDTHH:mm:ssZ");
|
2462
|
-
return o.isValid() ? o.format(
|
2462
|
+
return o.isValid() ? o.format(At.TWELVE_HOURS_FORMAT) : r.data.date;
|
2463
2463
|
}, Ks = (e) => yp(e), kw = (e, s = "") => ({ pathname: n }) => e === n || s || Mx, Or = (e) => {
|
2464
2464
|
if (!e?.length)
|
2465
2465
|
return [];
|
@@ -2486,7 +2486,7 @@ const xE = (e, s = !1) => s ? btoa(e) : atob(e), $o = (e, s = !1) => Object.keys
|
|
2486
2486
|
const { top: n, right: a, bottom: r, left: o } = Ci(s);
|
2487
2487
|
return `${IE(e)} ${vE({ top: n, right: a, bottom: r, left: o })}`;
|
2488
2488
|
}, Mw = (e, s = "dc__top-0") => `dc__position-sticky ${s} dc__transition--box-shadow ${e ? "dc__box-shadow--header" : ""}`;
|
2489
|
-
var
|
2489
|
+
var ds = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER_LESS = "border-less", e))(ds || {});
|
2490
2490
|
const Oc = {
|
2491
2491
|
[w.small]: "12px",
|
2492
2492
|
[w.medium]: "13px",
|
@@ -2525,7 +2525,7 @@ const Oc = {
|
|
2525
2525
|
}
|
2526
2526
|
}, Dc = (e) => {
|
2527
2527
|
switch (e) {
|
2528
|
-
case
|
2528
|
+
case ds.BORDER_LESS:
|
2529
2529
|
return {
|
2530
2530
|
control: () => ({
|
2531
2531
|
backgroundColor: "transparent",
|
@@ -2805,7 +2805,7 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2805
2805
|
isDisabled: s,
|
2806
2806
|
selectProps: { isLoading: n }
|
2807
2807
|
} = e;
|
2808
|
-
return /* @__PURE__ */ t.jsx(Be.DropdownIndicator, { ...e, children: n ? /* @__PURE__ */ t.jsx(Fe, {}) : /* @__PURE__ */ t.jsx(
|
2808
|
+
return /* @__PURE__ */ t.jsx(Be.DropdownIndicator, { ...e, children: n ? /* @__PURE__ */ t.jsx(Fe, {}) : /* @__PURE__ */ t.jsx(ls, { className: s ? "scn-3" : "scn-6" }) });
|
2809
2809
|
}, wE = (e) => /* @__PURE__ */ t.jsx(Be.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(at, { className: "icon-use-fill-n6" }) }), DE = (e) => {
|
2810
2810
|
const {
|
2811
2811
|
children: s,
|
@@ -2939,7 +2939,7 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2939
2939
|
getIsOptionValid: e,
|
2940
2940
|
...s
|
2941
2941
|
}) => {
|
2942
|
-
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(
|
2942
|
+
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(_s, {});
|
2943
2943
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4 mw-0 dc__truncate", children: [
|
2944
2944
|
o && /* @__PURE__ */ t.jsx(
|
2945
2945
|
"div",
|
@@ -3112,7 +3112,7 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3112
3112
|
optionListError: u,
|
3113
3113
|
reloadOptionList: m,
|
3114
3114
|
menuPosition: p = "fixed",
|
3115
|
-
variant: _ =
|
3115
|
+
variant: _ = ds.DEFAULT,
|
3116
3116
|
disableDescriptionEllipsis: x = !1,
|
3117
3117
|
multiSelectProps: E = {},
|
3118
3118
|
isMulti: h,
|
@@ -3165,14 +3165,14 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3165
3165
|
shouldMenuAlignRight: v
|
3166
3166
|
}),
|
3167
3167
|
[e, Se, d, _, St, v]
|
3168
|
-
),
|
3169
|
-
const
|
3170
|
-
return T && !!
|
3168
|
+
), Rt = (Oe) => {
|
3169
|
+
const hs = Oe?.trim();
|
3170
|
+
return T && !!hs && !_n(
|
3171
3171
|
W,
|
3172
|
-
|
3172
|
+
hs,
|
3173
3173
|
null,
|
3174
3174
|
je
|
3175
|
-
) && !_n(ie,
|
3175
|
+
) && !_n(ie, hs, null, je);
|
3176
3176
|
}, Yr = qe(
|
3177
3177
|
(Oe) => /* @__PURE__ */ t.jsx(
|
3178
3178
|
kE,
|
@@ -3192,11 +3192,11 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3192
3192
|
), xp = () => u ? /* @__PURE__ */ t.jsx(Js, { reload: m }) : O ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: Tt?.({
|
3193
3193
|
inputValue: k
|
3194
3194
|
}) || "No options" }) : null, Ep = (Oe) => /* @__PURE__ */ t.jsx(fe, { content: c, placement: "top", className: "default-tt", arrow: !1, children: Oe }), Np = (Oe) => {
|
3195
|
-
const
|
3196
|
-
|
3197
|
-
}, Cp = (Oe,
|
3195
|
+
const hs = Oe?.trim();
|
3196
|
+
hs && j?.(hs);
|
3197
|
+
}, Cp = (Oe, hs) => {
|
3198
3198
|
if (F.onInputChange) {
|
3199
|
-
F.onInputChange(Oe,
|
3199
|
+
F.onInputChange(Oe, hs);
|
3200
3200
|
return;
|
3201
3201
|
}
|
3202
3202
|
B(Oe);
|
@@ -3277,7 +3277,7 @@ const OE = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3277
3277
|
},
|
3278
3278
|
closeMenuOnSelect: !h || I,
|
3279
3279
|
allowCreateWhileLoading: !1,
|
3280
|
-
isValidNewOption:
|
3280
|
+
isValidNewOption: Rt,
|
3281
3281
|
createOptionPosition: "first",
|
3282
3282
|
onCreateOption: Np,
|
3283
3283
|
menuListFooterConfig: u ? null : b,
|
@@ -3805,7 +3805,7 @@ const $c = () => ({
|
|
3805
3805
|
}), Bc(n, JSON.stringify(d(l))), N(j);
|
3806
3806
|
}
|
3807
3807
|
};
|
3808
|
-
}, Au = Pt(null), oa = () =>
|
3808
|
+
}, Au = Pt(null), oa = () => ms(Au), va = (e) => {
|
3809
3809
|
if (!e)
|
3810
3810
|
throw new Error("keys undefined");
|
3811
3811
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -4855,14 +4855,14 @@ const Xw = (e, s = !1) => {
|
|
4855
4855
|
const { id: b, key: T, effect: j, operator: I, value: O } = N, D = A[U.TOLERANCE].value.find(
|
4856
4856
|
(q) => q.id === b
|
4857
4857
|
);
|
4858
|
-
D ? (D.key = T, D.effect = j, D.operator = I, D.value = O, I ===
|
4858
|
+
D ? (D.key = T, D.effect = j, D.operator = I, D.value = O, I === vs.EXISTS && delete D.value) : A[U.TOLERANCE].value.unshift({
|
4859
4859
|
id: b,
|
4860
4860
|
key: T,
|
4861
4861
|
effect: j,
|
4862
4862
|
operator: I,
|
4863
4863
|
value: O
|
4864
4864
|
});
|
4865
|
-
const L = vi(T).messages, $ = I !==
|
4865
|
+
const L = vi(T).messages, $ = I !== vs.EXISTS ? Lu(O).messages : [], J = !(I === vs.EXISTS ? !T : !T && !O) && (L.length > 0 || $.length > 0);
|
4866
4866
|
S[U.TOLERANCE]?.[b] || (S[U.TOLERANCE] || (S[U.TOLERANCE] = {}), S[U.TOLERANCE][b] = {}), S[U.TOLERANCE][b] = {
|
4867
4867
|
...L.length > 0 && { [Mo.KEY]: L },
|
4868
4868
|
...$.length > 0 && { [Mo.VALUE]: $ }
|
@@ -4937,7 +4937,7 @@ const Xw = (e, s = !1) => {
|
|
4937
4937
|
}
|
4938
4938
|
};
|
4939
4939
|
}, wN = Pt(null), tD = () => {
|
4940
|
-
const e =
|
4940
|
+
const e = ms(wN);
|
4941
4941
|
if (!e)
|
4942
4942
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
4943
4943
|
return e;
|
@@ -4994,13 +4994,13 @@ const Xw = (e, s = !1) => {
|
|
4994
4994
|
effect: r,
|
4995
4995
|
id: s ? Ks() : null
|
4996
4996
|
};
|
4997
|
-
return o ===
|
4997
|
+
return o === vs.EQUALS ? {
|
4998
4998
|
...c,
|
4999
|
-
operator:
|
4999
|
+
operator: vs.EQUALS,
|
5000
5000
|
value: i
|
5001
5001
|
} : {
|
5002
5002
|
...c,
|
5003
|
-
operator:
|
5003
|
+
operator: vs.EXISTS
|
5004
5004
|
};
|
5005
5005
|
}).filter((n) => n.key)
|
5006
5006
|
};
|
@@ -5282,7 +5282,7 @@ const qN = ({
|
|
5282
5282
|
children: s[0]
|
5283
5283
|
}
|
5284
5284
|
),
|
5285
|
-
/* @__PURE__ */ t.jsx(
|
5285
|
+
/* @__PURE__ */ t.jsx(ps, { to: `${Le.PERMISSION_GROUPS}/${e}`, className: "dc__ellipsis-right anchor cursor", children: s }),
|
5286
5286
|
/* @__PURE__ */ t.jsx("div", { className: "dc__ellipsis-right", children: n || "-" }),
|
5287
5287
|
u && /* @__PURE__ */ t.jsx(
|
5288
5288
|
d,
|
@@ -5744,7 +5744,7 @@ const lC = {
|
|
5744
5744
|
valuesAndManifestFlag: Ai.DEPLOYMENT_TEMPLATE
|
5745
5745
|
}, { result: a } = await pt(G.APP_TEMPLATE_DATA, n, {
|
5746
5746
|
signal: s
|
5747
|
-
}), r = Object.keys(a.variableSnapshot || {}).length > 0, o =
|
5747
|
+
}), r = Object.keys(a.variableSnapshot || {}).length > 0, o = Lt.parse(a.data), i = Lt.parse(a.resolvedData);
|
5748
5748
|
return {
|
5749
5749
|
data: ht(o),
|
5750
5750
|
resolvedData: ht(i),
|
@@ -6066,9 +6066,9 @@ const fC = (e) => {
|
|
6066
6066
|
n[r.index] = r;
|
6067
6067
|
}), n;
|
6068
6068
|
};
|
6069
|
-
var
|
6070
|
-
const
|
6071
|
-
...
|
6069
|
+
var Dt = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(Dt || {});
|
6070
|
+
const As = {
|
6071
|
+
...Dt,
|
6072
6072
|
auto: "auto"
|
6073
6073
|
}, ku = "userPreferences", CC = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => Xe(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), PD = ({ kind: e, version: s, queryParams: n, suffix: a }) => Xe(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), bC = (e, { isTemplateView: s }) => {
|
6074
6074
|
const n = s ? wr({
|
@@ -6089,13 +6089,13 @@ const is = {
|
|
6089
6089
|
const n = JSON.parse(s.value);
|
6090
6090
|
return {
|
6091
6091
|
pipelineRBACViewSelectedTab: n.viewPermittedEnvOnly ? qa.ACCESS_ONLY : qa.ALL_ENVIRONMENTS,
|
6092
|
-
themePreference: n.computedAppTheme === "system-dark" || n.computedAppTheme === "system-light" ?
|
6092
|
+
themePreference: n.computedAppTheme === "system-dark" || n.computedAppTheme === "system-light" ? As.auto : n.computedAppTheme
|
6093
6093
|
};
|
6094
6094
|
}, UD = async (e, s = !1) => {
|
6095
6095
|
try {
|
6096
6096
|
const { themePreference: n, appTheme: a } = e, r = {
|
6097
6097
|
viewPermittedEnvOnly: e.pipelineRBACViewSelectedTab === qa.ACCESS_ONLY,
|
6098
|
-
computedAppTheme: n ===
|
6098
|
+
computedAppTheme: n === As.auto ? `system-${a}` : a
|
6099
6099
|
}, o = {
|
6100
6100
|
key: ku,
|
6101
6101
|
value: JSON.stringify(r)
|
@@ -6120,7 +6120,7 @@ const TC = {
|
|
6120
6120
|
closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
|
6121
6121
|
ne,
|
6122
6122
|
{
|
6123
|
-
icon: /* @__PURE__ */ t.jsx(
|
6123
|
+
icon: /* @__PURE__ */ t.jsx(fs, { className: "fcn-0" }),
|
6124
6124
|
onClick: e,
|
6125
6125
|
dataTestId: "close-toast",
|
6126
6126
|
ariaLabel: "Close toast",
|
@@ -6250,7 +6250,7 @@ const IC = "bulk-selection-pop-up-menu", ao = {
|
|
6250
6250
|
setIdentifiers: nt,
|
6251
6251
|
getSelectedIdentifiersCount: nt
|
6252
6252
|
}), RC = () => {
|
6253
|
-
const e =
|
6253
|
+
const e = ms(Uu);
|
6254
6254
|
if (!e)
|
6255
6255
|
throw new Error(yC);
|
6256
6256
|
return e;
|
@@ -6398,7 +6398,7 @@ const IC = "bulk-selection-pop-up-menu", ao = {
|
|
6398
6398
|
disabled: s
|
6399
6399
|
}
|
6400
6400
|
),
|
6401
|
-
n && /* @__PURE__ */ t.jsx(
|
6401
|
+
n && /* @__PURE__ */ t.jsx(is, { className: "icon-dim-20 fcn-6 dc__no-shrink" })
|
6402
6402
|
]
|
6403
6403
|
}
|
6404
6404
|
),
|
@@ -6665,19 +6665,19 @@ const IC = "bulk-selection-pop-up-menu", ao = {
|
|
6665
6665
|
interactive: !0,
|
6666
6666
|
children: s
|
6667
6667
|
}
|
6668
|
-
),
|
6668
|
+
), Ts = {
|
6669
6669
|
ACTIVE: "Active on",
|
6670
6670
|
VIRTUAL_ENV: "Last deployed on",
|
6671
6671
|
FAILED: "Last deployment failed on",
|
6672
6672
|
DEPLOYING: "Deploying on"
|
6673
6673
|
}, kC = (e) => {
|
6674
6674
|
switch (e) {
|
6675
|
-
case
|
6676
|
-
case
|
6675
|
+
case Ts.VIRTUAL_ENV:
|
6676
|
+
case Ts.ACTIVE:
|
6677
6677
|
return { Icon: /* @__PURE__ */ t.jsx(hd, { className: "icon-dim-16 scg-5" }), stateClassName: "bcg-1 eg-2" };
|
6678
|
-
case
|
6678
|
+
case Ts.FAILED:
|
6679
6679
|
return { Icon: /* @__PURE__ */ t.jsx(G_, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
|
6680
|
-
case
|
6680
|
+
case Ts.DEPLOYING:
|
6681
6681
|
return {
|
6682
6682
|
Icon: /* @__PURE__ */ t.jsx($e, { name: "ic-circle-loader", color: "O500" }),
|
6683
6683
|
stateClassName: "bcy-1 ey-2"
|
@@ -6718,7 +6718,7 @@ const IC = "bulk-selection-pop-up-menu", ao = {
|
|
6718
6718
|
additionalInfo: d,
|
6719
6719
|
targetPlatforms: u
|
6720
6720
|
}) => {
|
6721
|
-
const m = () => c ?
|
6721
|
+
const m = () => c ? Ts.VIRTUAL_ENV : Ts.ACTIVE, p = () => {
|
6722
6722
|
if (l?.length) {
|
6723
6723
|
const g = l.length === 1 ? l[0] : `${l.length} environments`;
|
6724
6724
|
return /* @__PURE__ */ t.jsx(
|
@@ -6742,8 +6742,8 @@ const IC = "bulk-selection-pop-up-menu", ao = {
|
|
6742
6742
|
d
|
6743
6743
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6744
6744
|
p(),
|
6745
|
-
n === Ta.PROGRESSING && /* @__PURE__ */ t.jsx(vn, { envStateText:
|
6746
|
-
(n === Ta.DEGRADED || n === Ta.FAILED) && /* @__PURE__ */ t.jsx(vn, { envStateText:
|
6745
|
+
n === Ta.PROGRESSING && /* @__PURE__ */ t.jsx(vn, { envStateText: Ts.DEPLOYING, title: a }),
|
6746
|
+
(n === Ta.DEGRADED || n === Ta.FAILED) && /* @__PURE__ */ t.jsx(vn, { envStateText: Ts.FAILED, title: a }),
|
6747
6747
|
i && /* @__PURE__ */ t.jsx(
|
6748
6748
|
gr,
|
6749
6749
|
{
|
@@ -6902,7 +6902,7 @@ const $C = {
|
|
6902
6902
|
IMAGE_SCAN: "Image Scan",
|
6903
6903
|
CODE_SCAN: "Code Scan",
|
6904
6904
|
KUBERNETES_MANIFEST: "Kubernetes Manifest"
|
6905
|
-
},
|
6905
|
+
}, gs = {
|
6906
6906
|
VULNERABILITIES: "Vulnerability",
|
6907
6907
|
LICENSE: "License Risks",
|
6908
6908
|
MISCONFIGURATIONS: "Misconfigurations",
|
@@ -7079,7 +7079,7 @@ const $C = {
|
|
7079
7079
|
fallbackImage: /* @__PURE__ */ t.jsx(rh, { className: "icon-dim-20-imp dc__no-shrink" })
|
7080
7080
|
}
|
7081
7081
|
)
|
7082
|
-
] }),
|
7082
|
+
] }), us = (e) => (
|
7083
7083
|
/* for all the SEVERITY keys in @severities create @Entity */
|
7084
7084
|
e && tr.map(
|
7085
7085
|
(s) => e[s] && {
|
@@ -7316,7 +7316,7 @@ const $C = {
|
|
7316
7316
|
{
|
7317
7317
|
className: "fs-12 lh-20 fw-4 fcn-8",
|
7318
7318
|
"data-testid": "security-info-card-last-scan-time",
|
7319
|
-
children: `Scanned on ${id(s).format(
|
7319
|
+
children: `Scanned on ${id(s).format(At.TWELVE_HOURS_FORMAT)}`
|
7320
7320
|
}
|
7321
7321
|
)
|
7322
7322
|
] }),
|
@@ -7512,7 +7512,7 @@ const $C = {
|
|
7512
7512
|
]
|
7513
7513
|
})) : null,
|
7514
7514
|
defaultSortIndex: 1,
|
7515
|
-
entities:
|
7515
|
+
entities: us(e.misConfSummary.status),
|
7516
7516
|
lastScanTimeString: s,
|
7517
7517
|
scanToolName: a,
|
7518
7518
|
scanToolUrl: r,
|
@@ -7594,7 +7594,7 @@ const $C = {
|
|
7594
7594
|
]
|
7595
7595
|
})) : null,
|
7596
7596
|
defaultSortIndex: 1,
|
7597
|
-
entities:
|
7597
|
+
entities: us(e.summary.severities),
|
7598
7598
|
lastScanTimeString: s,
|
7599
7599
|
scanToolName: a,
|
7600
7600
|
scanToolUrl: r,
|
@@ -7670,12 +7670,12 @@ const $C = {
|
|
7670
7670
|
case Z.LICENSE:
|
7671
7671
|
case Z.EXPOSED_SECRETS:
|
7672
7672
|
return {
|
7673
|
-
entities:
|
7673
|
+
entities: us(e[s]?.summary.severities),
|
7674
7674
|
...o
|
7675
7675
|
};
|
7676
7676
|
case Z.MISCONFIGURATIONS:
|
7677
7677
|
return {
|
7678
|
-
entities:
|
7678
|
+
entities: us(e[s]?.misConfSummary.status),
|
7679
7679
|
...o
|
7680
7680
|
};
|
7681
7681
|
default:
|
@@ -7723,7 +7723,7 @@ const $C = {
|
|
7723
7723
|
}, Go = (e) => ({
|
7724
7724
|
titlePrefix: "Image",
|
7725
7725
|
title: e.image,
|
7726
|
-
entities:
|
7726
|
+
entities: us(e.summary.severities),
|
7727
7727
|
lastScanTimeString: e.StartedOn,
|
7728
7728
|
scanToolName: e.scanToolName,
|
7729
7729
|
scanToolUrl: e.scanToolUrl,
|
@@ -7794,7 +7794,7 @@ const $C = {
|
|
7794
7794
|
default:
|
7795
7795
|
return null;
|
7796
7796
|
}
|
7797
|
-
}, Hu = (e, s) => e && e !== En && s === "Completed" ? id(e).format(
|
7797
|
+
}, Hu = (e, s) => e && e !== En && s === "Completed" ? id(e).format(At.TWELVE_HOURS_FORMAT) : s === "Progressing" ? "Scan in progress" : null, cb = (e, s, n) => ({
|
7798
7798
|
headers: [
|
7799
7799
|
{ headerText: "image", isSortable: !1, width: 256 },
|
7800
7800
|
{ headerText: "vulnerability", isSortable: !1, width: 256 },
|
@@ -7866,7 +7866,7 @@ const $C = {
|
|
7866
7866
|
]
|
7867
7867
|
})) : null,
|
7868
7868
|
defaultSortIndex: 1,
|
7869
|
-
entities:
|
7869
|
+
entities: us(e.summary.severities),
|
7870
7870
|
lastScanTimeString: e.StartedOn,
|
7871
7871
|
scanToolName: e.scanToolName,
|
7872
7872
|
scanToolUrl: e.scanToolUrl,
|
@@ -7917,7 +7917,7 @@ const $C = {
|
|
7917
7917
|
}, mb = (e, s) => {
|
7918
7918
|
const n = e[s]?.list?.[0];
|
7919
7919
|
return {
|
7920
|
-
entities:
|
7920
|
+
entities: us(e[s]?.summary.severities),
|
7921
7921
|
scanToolName: n?.scanToolName,
|
7922
7922
|
scanToolUrl: n?.scanToolUrl,
|
7923
7923
|
lastScanTimeString: n?.StartedOn
|
@@ -7987,12 +7987,12 @@ const $C = {
|
|
7987
7987
|
switch (s) {
|
7988
7988
|
case Z.MISCONFIGURATIONS:
|
7989
7989
|
return {
|
7990
|
-
entities:
|
7990
|
+
entities: us(e[s]?.misConfSummary.status),
|
7991
7991
|
...n
|
7992
7992
|
};
|
7993
7993
|
case Z.EXPOSED_SECRETS:
|
7994
7994
|
return {
|
7995
|
-
entities:
|
7995
|
+
entities: us(e[s]?.summary.severities),
|
7996
7996
|
...n
|
7997
7997
|
};
|
7998
7998
|
default:
|
@@ -8058,7 +8058,7 @@ const $C = {
|
|
8058
8058
|
isExpanded: !0,
|
8059
8059
|
children: [
|
8060
8060
|
{
|
8061
|
-
label:
|
8061
|
+
label: gs.VULNERABILITIES,
|
8062
8062
|
value: {
|
8063
8063
|
category: se.IMAGE_SCAN,
|
8064
8064
|
subCategory: Z.VULNERABILITIES
|
@@ -8066,7 +8066,7 @@ const $C = {
|
|
8066
8066
|
},
|
8067
8067
|
...r ? [
|
8068
8068
|
{
|
8069
|
-
label:
|
8069
|
+
label: gs.LICENSE,
|
8070
8070
|
value: {
|
8071
8071
|
category: se.IMAGE_SCAN,
|
8072
8072
|
subCategory: Z.LICENSE
|
@@ -8082,28 +8082,28 @@ const $C = {
|
|
8082
8082
|
isExpanded: !0,
|
8083
8083
|
children: [
|
8084
8084
|
{
|
8085
|
-
label:
|
8085
|
+
label: gs.VULNERABILITIES,
|
8086
8086
|
value: {
|
8087
8087
|
category: se.CODE_SCAN,
|
8088
8088
|
subCategory: Z.VULNERABILITIES
|
8089
8089
|
}
|
8090
8090
|
},
|
8091
8091
|
{
|
8092
|
-
label:
|
8092
|
+
label: gs.LICENSE,
|
8093
8093
|
value: {
|
8094
8094
|
category: se.CODE_SCAN,
|
8095
8095
|
subCategory: Z.LICENSE
|
8096
8096
|
}
|
8097
8097
|
},
|
8098
8098
|
{
|
8099
|
-
label:
|
8099
|
+
label: gs.MISCONFIGURATIONS,
|
8100
8100
|
value: {
|
8101
8101
|
category: se.CODE_SCAN,
|
8102
8102
|
subCategory: Z.MISCONFIGURATIONS
|
8103
8103
|
}
|
8104
8104
|
},
|
8105
8105
|
{
|
8106
|
-
label:
|
8106
|
+
label: gs.EXPOSED_SECRETS,
|
8107
8107
|
value: {
|
8108
8108
|
category: se.CODE_SCAN,
|
8109
8109
|
subCategory: Z.EXPOSED_SECRETS
|
@@ -8118,14 +8118,14 @@ const $C = {
|
|
8118
8118
|
isExpanded: !0,
|
8119
8119
|
children: [
|
8120
8120
|
{
|
8121
|
-
label:
|
8121
|
+
label: gs.MISCONFIGURATIONS,
|
8122
8122
|
value: {
|
8123
8123
|
category: se.KUBERNETES_MANIFEST,
|
8124
8124
|
subCategory: Z.MISCONFIGURATIONS
|
8125
8125
|
}
|
8126
8126
|
},
|
8127
8127
|
{
|
8128
|
-
label:
|
8128
|
+
label: gs.EXPOSED_SECRETS,
|
8129
8129
|
value: {
|
8130
8130
|
category: se.KUBERNETES_MANIFEST,
|
8131
8131
|
subCategory: Z.EXPOSED_SECRETS
|
@@ -8309,7 +8309,7 @@ const $C = {
|
|
8309
8309
|
const o = Ku(n), i = !!o, c = Object.entries(er).map(([_, x]) => ({
|
8310
8310
|
...x,
|
8311
8311
|
value: n[_]
|
8312
|
-
})).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(
|
8312
|
+
})).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(_s, { className: "icon-dim-24 dc__no-shrink" }) : i ? /* @__PURE__ */ t.jsx(Y_, { className: "icon-dim-24 scr-5 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(K_, { className: "icon-dim-24 scg-5 dc__no-shrink" }), d = () => {
|
8313
8313
|
if (r)
|
8314
8314
|
return s === Z.VULNERABILITIES ? { title: "Vulnerability scan failed", subtitle: "Failed" } : { title: "License scan failed", subtitle: "Failed" };
|
8315
8315
|
switch (s) {
|
@@ -8576,7 +8576,7 @@ const $C = {
|
|
8576
8576
|
children: [
|
8577
8577
|
l ? "Hide info" : "Show more info",
|
8578
8578
|
/* @__PURE__ */ t.jsx(
|
8579
|
-
|
8579
|
+
is,
|
8580
8580
|
{
|
8581
8581
|
className: "icon-dim-24 rotate fcn-6",
|
8582
8582
|
style: { "--rotateBy": l ? "-180deg" : "0deg" }
|
@@ -8848,39 +8848,34 @@ const $C = {
|
|
8848
8848
|
/* @__PURE__ */ t.jsx(Nr, { className: "icon-dim-16 cursor mw-16", onClick: () => o(!r) })
|
8849
8849
|
] });
|
8850
8850
|
}, qu = Pt(null), _a = () => {
|
8851
|
-
const e =
|
8851
|
+
const e = ms(qu);
|
8852
8852
|
if (!e)
|
8853
8853
|
throw new Error("Please wrap with MainContextProvider");
|
8854
8854
|
return e;
|
8855
8855
|
}, sP = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(qu.Provider, { value: s, children: e }), Xu = Pt(null), nP = () => {
|
8856
|
-
const e =
|
8856
|
+
const e = ms(Xu);
|
8857
8857
|
if (!e)
|
8858
8858
|
throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
|
8859
8859
|
return e;
|
8860
8860
|
}, aP = ({ children: e, value: s }) => {
|
8861
8861
|
const n = X(() => s, [s]);
|
8862
8862
|
return /* @__PURE__ */ t.jsx(Xu.Provider, { value: n, children: e });
|
8863
|
-
}, Ju = "themePreference__v1", Zu = "(prefers-color-scheme: dark)", Mi = () => window.matchMedia && window.matchMedia(Zu).matches ?
|
8863
|
+
}, Ju = "themePreference__v1", Zu = "(prefers-color-scheme: dark)", Mi = () => window.matchMedia && window.matchMedia(Zu).matches ? Dt.dark : Dt.light, yb = (e) => {
|
8864
8864
|
localStorage.setItem(Ju, e);
|
8865
8865
|
}, Rb = ({ appTheme: e, themePreference: s }) => {
|
8866
|
-
const n = s ===
|
8866
|
+
const n = s === As.auto ? `system-${e}` : e;
|
8867
8867
|
"gtag" in window && window.gtag && typeof window.gtag == "function" && (window.gtag("set", "user_properties", {
|
8868
8868
|
appTheme: e,
|
8869
8869
|
themePreference: s
|
8870
|
-
}),
|
8870
|
+
}), cs.send("pageview")), cs.event({
|
8871
8871
|
category: "application-theme",
|
8872
8872
|
action: `theme-changed-to-${n}`
|
8873
8873
|
});
|
8874
8874
|
}, jb = () => {
|
8875
|
-
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE)
|
8876
|
-
return {
|
8877
|
-
appTheme: At.light,
|
8878
|
-
themePreference: is.light
|
8879
|
-
};
|
8880
8875
|
const e = localStorage.getItem(Ju);
|
8881
|
-
return !e || e ===
|
8876
|
+
return !e || e === As.auto ? {
|
8882
8877
|
appTheme: Mi(),
|
8883
|
-
themePreference:
|
8878
|
+
themePreference: As.auto
|
8884
8879
|
} : {
|
8885
8880
|
appTheme: e,
|
8886
8881
|
themePreference: e
|
@@ -8888,10 +8883,10 @@ const $C = {
|
|
8888
8883
|
}, Cn = (e) => `component-specific-theme__${e}`, Ob = (e) => {
|
8889
8884
|
switch (e) {
|
8890
8885
|
case "auto":
|
8891
|
-
return `System (${Mi() ===
|
8892
|
-
case
|
8886
|
+
return `System (${Mi() === Dt.dark ? "Dark" : "Light"})`;
|
8887
|
+
case Dt.dark:
|
8893
8888
|
return "Dark";
|
8894
|
-
case
|
8889
|
+
case Dt.light:
|
8895
8890
|
return "Light";
|
8896
8891
|
default:
|
8897
8892
|
return null;
|
@@ -8899,19 +8894,19 @@ const $C = {
|
|
8899
8894
|
}, Qu = Pt(null), rP = ({ children: e }) => {
|
8900
8895
|
const [s, n] = R(!1), [a, r] = R(!1), [o, i] = R(jb), c = (p, _ = !1) => {
|
8901
8896
|
const x = {
|
8902
|
-
appTheme: p ===
|
8897
|
+
appTheme: p === As.auto ? Mi() : p,
|
8903
8898
|
themePreference: p
|
8904
8899
|
};
|
8905
8900
|
i(x), _ || (yb(p), Rb(x));
|
8906
8901
|
}, l = () => {
|
8907
|
-
c(
|
8902
|
+
c(As.auto, s);
|
8908
8903
|
};
|
8909
8904
|
M(() => {
|
8910
8905
|
const p = document.querySelector("html");
|
8911
8906
|
p && p.setAttribute("class", `theme__${o.appTheme}`);
|
8912
8907
|
}, [o.appTheme]), M(() => {
|
8913
8908
|
const p = window.matchMedia(Zu);
|
8914
|
-
return o.themePreference ===
|
8909
|
+
return o.themePreference === As.auto && p.addEventListener("change", l), () => {
|
8915
8910
|
p.removeEventListener("change", l);
|
8916
8911
|
};
|
8917
8912
|
}, [o.themePreference, s]);
|
@@ -8932,11 +8927,11 @@ const $C = {
|
|
8932
8927
|
);
|
8933
8928
|
return /* @__PURE__ */ t.jsx(Qu.Provider, { value: m, children: e });
|
8934
8929
|
}, Dr = () => {
|
8935
|
-
const e =
|
8930
|
+
const e = ms(Qu);
|
8936
8931
|
if (!e)
|
8937
8932
|
throw new Error("useTheme must be used within ThemeProvider");
|
8938
8933
|
return e;
|
8939
|
-
}, em = Pt(null), tm = () =>
|
8934
|
+
}, em = Pt(null), tm = () => ms(em), oP = ({ children: e }) => {
|
8940
8935
|
const [s, n] = R(""), a = X(
|
8941
8936
|
() => ({
|
8942
8937
|
email: s,
|
@@ -8949,10 +8944,7 @@ const $C = {
|
|
8949
8944
|
const { email: n, setEmail: a } = tm();
|
8950
8945
|
return /* @__PURE__ */ t.jsx(e, { ...s, email: n, setEmail: a });
|
8951
8946
|
}, Lb = ({ onChange: e }) => {
|
8952
|
-
const { handleThemeSwitcherDialogVisibilityChange: s, themePreference: n } = Dr()
|
8953
|
-
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE)
|
8954
|
-
return null;
|
8955
|
-
const a = () => {
|
8947
|
+
const { handleThemeSwitcherDialogVisibilityChange: s, themePreference: n } = Dr(), a = () => {
|
8956
8948
|
s(!0), e();
|
8957
8949
|
};
|
8958
8950
|
return /* @__PURE__ */ t.jsxs(
|
@@ -9114,7 +9106,7 @@ const Mb = (e) => pt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), Ub = ({ className:
|
|
9114
9106
|
], u = () => {
|
9115
9107
|
r(!0);
|
9116
9108
|
}, m = (h) => {
|
9117
|
-
|
9109
|
+
cs.event({
|
9118
9110
|
category: "Help Nav",
|
9119
9111
|
action: `${h.name} Clicked`
|
9120
9112
|
});
|
@@ -9226,7 +9218,7 @@ const Mb = (e) => pt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), Ub = ({ className:
|
|
9226
9218
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
9227
9219
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
9228
9220
|
} = window._env_, o = qe(() => {
|
9229
|
-
s(!0),
|
9221
|
+
s(!0), cs.event({
|
9230
9222
|
category: "PRIMARY_HEADER",
|
9231
9223
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
9232
9224
|
});
|
@@ -9329,7 +9321,7 @@ const Mb = (e) => pt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), Ub = ({ className:
|
|
9329
9321
|
}, de = () => {
|
9330
9322
|
te(), I(!j), b && T(!1), rr("clickedOkay", 1), q();
|
9331
9323
|
}, Ae = async () => {
|
9332
|
-
!window._env_.K8S_CLIENT && D.serverInfo?.installationType !== or.ENTERPRISE && await J(), T(!b), j && I(!1), rr("clickedOkay", 1), q(), await Yo(Io.HELP),
|
9324
|
+
!window._env_.K8S_CLIENT && D.serverInfo?.installationType !== or.ENTERPRISE && await J(), T(!b), j && I(!1), rr("clickedOkay", 1), q(), await Yo(Io.HELP), cs.event({
|
9333
9325
|
category: "Main Navigation",
|
9334
9326
|
action: "Help Clicked"
|
9335
9327
|
});
|
@@ -9639,7 +9631,7 @@ const lP = ({
|
|
9639
9631
|
disabled: i,
|
9640
9632
|
rootClassName: "flex dc__transparent p-0 w-28 bcb-5 dc__right-radius-4 dc__no-left-radius dc__no-top-border dc__no-bottom-border dc__no-right-border button-with-selector",
|
9641
9633
|
children: /* @__PURE__ */ t.jsx(
|
9642
|
-
|
9634
|
+
is,
|
9643
9635
|
{
|
9644
9636
|
className: "icon-dim-16 fcn-0 dc__no-shrink rotate",
|
9645
9637
|
style: { "--rotateBy": l ? "180deg" : "0deg" }
|
@@ -9936,7 +9928,7 @@ const rl = (e) => {
|
|
9936
9928
|
)
|
9937
9929
|
] });
|
9938
9930
|
};
|
9939
|
-
var Pe = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Pe || {}),
|
9931
|
+
var Pe = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Pe || {}), Ss = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Ss || {}), $i = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))($i || {}), Re = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(Re || {}), Wo = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(Wo || {}), qb = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(qb || {}), as = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(as || {}), Pr = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(Pr || {});
|
9940
9932
|
const il = {
|
9941
9933
|
missing: 1,
|
9942
9934
|
degraded: 2,
|
@@ -10375,7 +10367,7 @@ const pT = (e, s) => {
|
|
10375
10367
|
case "success":
|
10376
10368
|
return /* @__PURE__ */ t.jsx(jf, { className: "icon-dim-20 green-tick", "data-testid": "success-green-tick" });
|
10377
10369
|
case "failed":
|
10378
|
-
return /* @__PURE__ */ t.jsx(
|
10370
|
+
return /* @__PURE__ */ t.jsx(_s, { className: "icon-dim-20" });
|
10379
10371
|
case "unknown":
|
10380
10372
|
return /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" });
|
10381
10373
|
case "inprogress":
|
@@ -10409,7 +10401,7 @@ const pT = (e, s) => {
|
|
10409
10401
|
status: n || Re.UNKNOWN,
|
10410
10402
|
message: a || "",
|
10411
10403
|
clusterId: o?.clusterId || kr,
|
10412
|
-
endTime:
|
10404
|
+
endTime: Is(r) ? r : ""
|
10413
10405
|
};
|
10414
10406
|
}, Fi = (e) => {
|
10415
10407
|
if (!Object.keys(e || {}).length)
|
@@ -10427,9 +10419,9 @@ const pT = (e, s) => {
|
|
10427
10419
|
return s.forEach(({ status: c, endTime: l }, d) => {
|
10428
10420
|
(cr[c] || d === s.length - 1 && c === Re.SUCCEEDED) && (i = l);
|
10429
10421
|
}), {
|
10430
|
-
triggeredOn:
|
10431
|
-
executionStartedOn:
|
10432
|
-
finishedOn:
|
10422
|
+
triggeredOn: Is(r) ? r : "",
|
10423
|
+
executionStartedOn: Is(a?.startTime) ? a?.startTime : "",
|
10424
|
+
finishedOn: Is(i) ? i : "",
|
10433
10425
|
currentStatus: o,
|
10434
10426
|
workerDetails: bT(e)
|
10435
10427
|
};
|
@@ -10446,7 +10438,7 @@ const pT = (e, s) => {
|
|
10446
10438
|
}, TT = (e) => {
|
10447
10439
|
const s = Fi(e);
|
10448
10440
|
return s ? s.finishedOn ? !cr[s.currentStatus] && cr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx($e, { name: "ic-warning", size: 20, color: null }) : rm(s.workerDetails.status) : /* @__PURE__ */ t.jsx($e, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx($e, { name: "ic-help-outline", size: 20, color: "N500" });
|
10449
|
-
}, ST = (e = kr, s = aT) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, om = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ys.WAITING_TO_START ? "Waiting to start" : e : null, Mr = (e) =>
|
10441
|
+
}, ST = (e = kr, s = aT) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, om = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ys.WAITING_TO_START ? "Waiting to start" : e : null, Mr = (e) => Is(e) ? ke(e, "YYYY-MM-DDTHH:mm:ssZ").format(At.TWELVE_HOURS_FORMAT) : "", vT = (e) => (e || []).reduce(
|
10450
10442
|
(s, n) => {
|
10451
10443
|
const a = n.health?.status?.toLowerCase() ?? "";
|
10452
10444
|
switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
|
@@ -10687,7 +10679,7 @@ const pT = (e, s) => {
|
|
10687
10679
|
children: [
|
10688
10680
|
/* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-12 fw-6 lh-20", children: c ? "Show less" : "Show more" }),
|
10689
10681
|
/* @__PURE__ */ t.jsx(
|
10690
|
-
|
10682
|
+
ls,
|
10691
10683
|
{
|
10692
10684
|
className: `dc__no-shrink icon-dim-16 flex scb-5 dc__transition--transform ${c ? "dc__flip-180" : ""}`
|
10693
10685
|
}
|
@@ -10712,7 +10704,7 @@ const pT = (e, s) => {
|
|
10712
10704
|
}) => {
|
10713
10705
|
if (!e && !s)
|
10714
10706
|
return null;
|
10715
|
-
const m = a && (!
|
10707
|
+
const m = a && (!Is(r) || !ke(r).isBefore(ke().subtract(nT, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
|
10716
10708
|
ft,
|
10717
10709
|
{
|
10718
10710
|
to: `${ST(o, i)}/${a}/logs`,
|
@@ -10808,7 +10800,7 @@ const pT = (e, s) => {
|
|
10808
10800
|
/* @__PURE__ */ t.jsx("span", { className: "fw-6 fs-16 mb-4", style: { color: zo[e.toLowerCase()] }, children: om(e) }),
|
10809
10801
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
|
10810
10802
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left fs-12 cn-7", children: [
|
10811
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: ke(s).format(
|
10803
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: ke(s).format(At.TWELVE_HOURS_FORMAT) }),
|
10812
10804
|
/* @__PURE__ */ t.jsx("div", { className: "dc__bullet ml-6 mr-6 dc__no-shrink" }),
|
10813
10805
|
/* @__PURE__ */ t.jsx(ae, { content: i, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: i }) })
|
10814
10806
|
] }),
|
@@ -10923,7 +10915,7 @@ const pT = (e, s) => {
|
|
10923
10915
|
),
|
10924
10916
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8", children: [
|
10925
10917
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column left", children: [
|
10926
|
-
/* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20", children: ke(n).format(
|
10918
|
+
/* @__PURE__ */ t.jsx("div", { className: "cn-9 fs-13 lh-20", children: ke(n).format(At.TWELVE_HOURS_FORMAT) }),
|
10927
10919
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left cn-7 fs-12", children: [
|
10928
10920
|
A && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10929
10921
|
/* @__PURE__ */ t.jsx("div", { className: "dc__first-letter-capitalize dc__no-shrink", children: ["pre", "post"].includes(d?.toLowerCase()) ? `${d}-deploy` : d }),
|
@@ -10961,7 +10953,7 @@ const pT = (e, s) => {
|
|
10961
10953
|
const { pipelineId: u, appId: m, envId: p } = bt(), { push: _ } = zs(), { path: x } = Jt(), E = (v) => {
|
10962
10954
|
e === Pe.CI ? (r({ offset: 0, size: 20 }), _(Fs(x, { appId: m, pipelineId: v.value }))) : e === Pe.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Fs(x, { envId: p, pipelineId: v.pipelineId }))) : e === Pe.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Fs(x, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Fs(x, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
|
10963
10955
|
}, h = () => {
|
10964
|
-
|
10956
|
+
cs.event({
|
10965
10957
|
category: "pagination",
|
10966
10958
|
action: "auto",
|
10967
10959
|
label: `${e.toLowerCase()}-history`,
|
@@ -11013,7 +11005,7 @@ const pT = (e, s) => {
|
|
11013
11005
|
)
|
11014
11006
|
] }),
|
11015
11007
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
11016
|
-
o ===
|
11008
|
+
o === Ss.SUCCESS && /* @__PURE__ */ t.jsx(jT, { handleViewAllHistory: i }),
|
11017
11009
|
Array.from(n).sort(([v], [A]) => A - v).map(([v, A], y) => /* @__PURE__ */ t.jsx(
|
11018
11010
|
OT,
|
11019
11011
|
{
|
@@ -11037,7 +11029,7 @@ const pT = (e, s) => {
|
|
11037
11029
|
},
|
11038
11030
|
v
|
11039
11031
|
)),
|
11040
|
-
a && (o ===
|
11032
|
+
a && (o === Ss.SUSPEND || !o) && /* @__PURE__ */ t.jsx(um, { callback: h })
|
11041
11033
|
] })
|
11042
11034
|
] });
|
11043
11035
|
}
|
@@ -11164,7 +11156,7 @@ const pT = (e, s) => {
|
|
11164
11156
|
throw new Error("No content to download");
|
11165
11157
|
{
|
11166
11158
|
const m = await u?.json();
|
11167
|
-
throw new
|
11159
|
+
throw new wt(m);
|
11168
11160
|
}
|
11169
11161
|
}
|
11170
11162
|
} catch (u) {
|
@@ -11528,7 +11520,7 @@ const pT = (e, s) => {
|
|
11528
11520
|
/* @__PURE__ */ t.jsx(yd, { className: "icon-dim-20 ml-8" })
|
11529
11521
|
] }) })
|
11530
11522
|
] });
|
11531
|
-
}, fl = (e) => e && e ===
|
11523
|
+
}, fl = (e) => e && e === Ss.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
|
11532
11524
|
async function HT({
|
11533
11525
|
appId: e,
|
11534
11526
|
envId: s,
|
@@ -11700,7 +11692,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11700
11692
|
children: [
|
11701
11693
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__transparent dc__align-items-center", children: [
|
11702
11694
|
/* @__PURE__ */ t.jsx(
|
11703
|
-
|
11695
|
+
ls,
|
11704
11696
|
{
|
11705
11697
|
className: `icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white ${s ? "" : "dc__flip-n90 dc__opacity-0_5"}`
|
11706
11698
|
}
|
@@ -11996,7 +11988,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11996
11988
|
"data-testid": "logs-previous-search-match",
|
11997
11989
|
"aria-label": "Focus the previous search result match",
|
11998
11990
|
disabled: !S,
|
11999
|
-
children: /* @__PURE__ */ t.jsx(
|
11991
|
+
children: /* @__PURE__ */ t.jsx(ls, { className: "icon-stroke__white dc__flip-180 icon-dim-14 dc__no-shrink" })
|
12000
11992
|
}
|
12001
11993
|
),
|
12002
11994
|
/* @__PURE__ */ t.jsx(
|
@@ -12008,7 +12000,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12008
12000
|
"data-testid": "logs-next-search-match",
|
12009
12001
|
"aria-label": "Focus the next search result match",
|
12010
12002
|
disabled: !S,
|
12011
|
-
children: /* @__PURE__ */ t.jsx(
|
12003
|
+
children: /* @__PURE__ */ t.jsx(ls, { className: "icon-stroke__white icon-dim-14 dc__no-shrink" })
|
12012
12004
|
}
|
12013
12005
|
)
|
12014
12006
|
] })
|
@@ -12078,7 +12070,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12078
12070
|
)),
|
12079
12071
|
O && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(Fe, {}) })
|
12080
12072
|
] });
|
12081
|
-
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${Cn(
|
12073
|
+
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${Cn(Dt.dark)}`, children: e.podStatus !== co.PENDING && u && (!s || !e.blobStorageEnabled) ? sS(s) : Ae() });
|
12082
12074
|
}, rS = ({
|
12083
12075
|
imgSource: e,
|
12084
12076
|
title: s,
|
@@ -12128,7 +12120,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12128
12120
|
{
|
12129
12121
|
className: `bcr-1 ${s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO ? "fs-13" : "flex left"} ${r ? "" : "er-2 br-4 bw-1"} p-8`,
|
12130
12122
|
children: [
|
12131
|
-
!r && /* @__PURE__ */ t.jsx(
|
12123
|
+
!r && /* @__PURE__ */ t.jsx(_s, { className: "icon-dim-20 mr-8" }),
|
12132
12124
|
n,
|
12133
12125
|
s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO && /* @__PURE__ */ t.jsxs("ol", { className: "m-0 pl-20", children: [
|
12134
12126
|
/* @__PURE__ */ t.jsx("li", { children: "Ensure provided repository path is valid" }),
|
@@ -12196,7 +12188,7 @@ const SP = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12196
12188
|
{
|
12197
12189
|
isKebab: !0,
|
12198
12190
|
rootClassName: "flex p-4 dc__border dc__no-left-radius dc__right-radius-4 bg__primary dc__hover-n50",
|
12199
|
-
children: /* @__PURE__ */ t.jsx(
|
12191
|
+
children: /* @__PURE__ */ t.jsx(ls, { className: "icon-dim-14 scn-6" })
|
12200
12192
|
}
|
12201
12193
|
),
|
12202
12194
|
/* @__PURE__ */ t.jsx(dt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: c.map(({ status: p, count: _ }, x) => /* @__PURE__ */ t.jsxs(
|
@@ -12594,12 +12586,12 @@ const dS = (e, s) => {
|
|
12594
12586
|
"data-testid": "deployment-status-kubernetes-dropdown",
|
12595
12587
|
className: `pl-8 pr-8 pt-4 pb-4 br-12 ${o.icon === "failed" ? "bcr-1 cr-5" : "bcg-1 cg-7"}`,
|
12596
12588
|
children: ke(o.time, "YYYY-MM-DDTHH:mm:ssZ").format(
|
12597
|
-
|
12589
|
+
At.TWELVE_HOURS_FORMAT
|
12598
12590
|
)
|
12599
12591
|
}
|
12600
12592
|
),
|
12601
12593
|
(e === z.KUBECTL_APPLY && o.kubeList?.length || e === z.APP_HEALTH && l.includes(o.icon) || (e === z.GIT_COMMIT || e === z.ARGOCD_SYNC) && o.icon === "failed") && /* @__PURE__ */ t.jsx(
|
12602
|
-
|
12594
|
+
is,
|
12603
12595
|
{
|
12604
12596
|
style: { marginLeft: "auto", "--rotateBy": `${180 * +!i}deg` },
|
12605
12597
|
className: "icon-dim-24 rotate pointer",
|
@@ -13020,7 +13012,7 @@ const fS = ({
|
|
13020
13012
|
) : /* @__PURE__ */ t.jsx("div", { className: "collapsible__item flexbox dc__gap-8 dc__no-decor no-hover br-4 py-6 px-8", children: /* @__PURE__ */ t.jsx("span", { className: "collapsible__item__title dc__truncate fs-13 lh-20 cn-5", children: m || "No items found." }) }) }) })
|
13021
13013
|
] }, c)) });
|
13022
13014
|
};
|
13023
|
-
var
|
13015
|
+
var Ot = /* @__PURE__ */ ((e) => (e.NO_DIFF = "noDiff", e.HAS_DIFF = "hasDiff", e.ADDED = "added", e.DELETED = "deleted", e))(Ot || {});
|
13024
13016
|
const fm = {
|
13025
13017
|
hasDiff: "Has difference",
|
13026
13018
|
added: "Added",
|
@@ -13064,8 +13056,8 @@ const fm = {
|
|
13064
13056
|
isExpanded: m[S.id],
|
13065
13057
|
items: C.map(({ diffState: v, ...A }) => ({
|
13066
13058
|
...A,
|
13067
|
-
strikeThrough: d && v ===
|
13068
|
-
...!u && v !==
|
13059
|
+
strikeThrough: d && v === Ot.DELETED,
|
13060
|
+
...!u && v !== Ot.NO_DIFF ? {
|
13069
13061
|
iconConfig: {
|
13070
13062
|
Icon: d ? Mn[v] : Mn.hasDiff,
|
13071
13063
|
tooltipProps: {
|
@@ -13083,7 +13075,7 @@ const fm = {
|
|
13083
13075
|
const { value: S } = C.target;
|
13084
13076
|
c?.activeTab !== S && c?.onClick?.(S);
|
13085
13077
|
}, h = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
13086
|
-
a && /* @__PURE__ */ t.jsx(
|
13078
|
+
a && /* @__PURE__ */ t.jsx(ps, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(at, { className: "icon-dim-16 fcn-6" }) }) }),
|
13087
13079
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
13088
13080
|
] }), g = () => {
|
13089
13081
|
const { tabs: C, activeTab: S } = c;
|
@@ -13111,7 +13103,7 @@ const fm = {
|
|
13111
13103
|
children: [
|
13112
13104
|
y && /* @__PURE__ */ t.jsx(y, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
13113
13105
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children: C }),
|
13114
|
-
!u && A !==
|
13106
|
+
!u && A !== Ot.NO_DIFF && /* @__PURE__ */ t.jsx(
|
13115
13107
|
fe,
|
13116
13108
|
{
|
13117
13109
|
className: "default-tt",
|
@@ -13477,7 +13469,7 @@ const fm = {
|
|
13477
13469
|
onClick: c,
|
13478
13470
|
children: [
|
13479
13471
|
/* @__PURE__ */ t.jsx(
|
13480
|
-
|
13472
|
+
ls,
|
13481
13473
|
{
|
13482
13474
|
className: "icon-dim-16 fsn-6 rotate",
|
13483
13475
|
style: { "--rotateBy": i ? "360deg" : "270deg" }
|
@@ -13487,8 +13479,8 @@ const fm = {
|
|
13487
13479
|
!n && /* @__PURE__ */ t.jsx(
|
13488
13480
|
"p",
|
13489
13481
|
{
|
13490
|
-
className: `m-0 fs-13 lh-20 fw-6 ${s ? hm[e] : e !==
|
13491
|
-
children: s ? fm[e] : `${e !==
|
13482
|
+
className: `m-0 fs-13 lh-20 fw-6 ${s ? hm[e] : e !== Ot.NO_DIFF && "cy-7" || "cg-7"}`,
|
13483
|
+
children: s ? fm[e] : `${e !== Ot.NO_DIFF ? "Has" : "No"} difference`
|
13492
13484
|
}
|
13493
13485
|
)
|
13494
13486
|
]
|
@@ -13539,11 +13531,11 @@ const fm = {
|
|
13539
13531
|
compareToObfuscatedData: Object.keys(i).length ? i : void 0,
|
13540
13532
|
compareWithObfuscatedData: Object.keys(c).length ? c : void 0
|
13541
13533
|
};
|
13542
|
-
},
|
13534
|
+
}, Cs = (e, s) => {
|
13543
13535
|
const { sortBy: n, sortOrder: a } = s ?? { sortBy: "", sortOrder: null };
|
13544
13536
|
try {
|
13545
13537
|
return JSON.stringify(
|
13546
|
-
|
13538
|
+
Lt.parse(
|
13547
13539
|
ht(e, {
|
13548
13540
|
sortMapEntries: n ? (r, o) => fE(r, o, a) : null
|
13549
13541
|
})
|
@@ -13566,31 +13558,31 @@ const fm = {
|
|
13566
13558
|
displayName: "data",
|
13567
13559
|
...Cl(e) ? {
|
13568
13560
|
value: null,
|
13569
|
-
resolvedValue:
|
13561
|
+
resolvedValue: Cs(u, o)
|
13570
13562
|
} : {
|
13571
|
-
value:
|
13563
|
+
value: Cs(u, o)
|
13572
13564
|
}
|
13573
13565
|
}, d = {
|
13574
13566
|
displayName: "data",
|
13575
13567
|
...Cl(s) ? {
|
13576
13568
|
value: null,
|
13577
|
-
resolvedValue:
|
13569
|
+
resolvedValue: Cs(m, o)
|
13578
13570
|
} : {
|
13579
|
-
value:
|
13571
|
+
value: Cs(m, o)
|
13580
13572
|
}
|
13581
13573
|
};
|
13582
13574
|
} else
|
13583
13575
|
l = {
|
13584
13576
|
displayName: "data",
|
13585
|
-
value:
|
13577
|
+
value: Cs(i, o)
|
13586
13578
|
}, d = {
|
13587
13579
|
displayName: "data",
|
13588
|
-
value:
|
13580
|
+
value: Cs(c, o)
|
13589
13581
|
};
|
13590
13582
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
13591
13583
|
}, $a = (e, s) => {
|
13592
13584
|
const n = !!e.codeEditorValue.value, a = !!s.codeEditorValue.value;
|
13593
|
-
return !n && a ?
|
13585
|
+
return !n && a ? Ot.DELETED : n && !a ? Ot.ADDED : Fn(e, s) ? Ot.NO_DIFF : Ot.HAS_DIFF;
|
13594
13586
|
}, Tl = (e, s) => {
|
13595
13587
|
if (e && e.external && (e.externalType === "" || e.externalType === we.KubernetesSecret)) {
|
13596
13588
|
const n = structuredClone(s);
|
@@ -13625,7 +13617,7 @@ const fm = {
|
|
13625
13617
|
}, Sl = (e, s, n) => {
|
13626
13618
|
const a = CS(e), r = {
|
13627
13619
|
displayName: "data",
|
13628
|
-
value: a ?
|
13620
|
+
value: a ? Cs(a, n) : ""
|
13629
13621
|
};
|
13630
13622
|
return Jn(
|
13631
13623
|
{
|
@@ -13646,7 +13638,7 @@ const fm = {
|
|
13646
13638
|
}, Il = (e, s) => {
|
13647
13639
|
const n = {
|
13648
13640
|
displayName: "data",
|
13649
|
-
value: e?.data ?
|
13641
|
+
value: e?.data ? Cs(e.data, s) : ""
|
13650
13642
|
};
|
13651
13643
|
return Jn(
|
13652
13644
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
@@ -13997,7 +13989,7 @@ const fm = {
|
|
13997
13989
|
a.reduce(
|
13998
13990
|
(N, C) => ({
|
13999
13991
|
...N,
|
14000
|
-
[C.id]: i === C.id || C.diffState !==
|
13992
|
+
[C.id]: i === C.id || C.diffState !== Ot.NO_DIFF
|
14001
13993
|
}),
|
14002
13994
|
{}
|
14003
13995
|
)
|
@@ -14202,7 +14194,7 @@ const fm = {
|
|
14202
14194
|
/* @__PURE__ */ t.jsx(
|
14203
14195
|
"span",
|
14204
14196
|
{
|
14205
|
-
className: `cb-5 fs-13 lh-20 ${c ===
|
14197
|
+
className: `cb-5 fs-13 lh-20 ${c === Ot.DELETED ? "dc__strike-through" : ""}`,
|
14206
14198
|
children: i || o
|
14207
14199
|
}
|
14208
14200
|
)
|
@@ -14252,7 +14244,7 @@ const fm = {
|
|
14252
14244
|
const o = e.findIndex(({ id: d }) => d === s), c = e.slice(o + 1).map(
|
14253
14245
|
({ id: d, startedOn: u, stage: m, triggeredBy: p, triggeredByEmail: _, status: x, artifact: E }) => ({
|
14254
14246
|
value: d,
|
14255
|
-
label: ke(u).format(
|
14247
|
+
label: ke(u).format(At.TWELVE_HOURS_FORMAT),
|
14256
14248
|
description: DS({
|
14257
14249
|
stage: m,
|
14258
14250
|
triggeredByEmail: _,
|
@@ -14266,7 +14258,7 @@ const fm = {
|
|
14266
14258
|
})
|
14267
14259
|
);
|
14268
14260
|
return { currentDeployment: ke(e[o].startedOn).format(
|
14269
|
-
|
14261
|
+
At.TWELVE_HOURS_FORMAT
|
14270
14262
|
), pipelineDeploymentsOptions: c };
|
14271
14263
|
}, MS = (e) => (s) => ({
|
14272
14264
|
compareWfrId: +(s.get("compareWfrId") || e)
|
@@ -14336,7 +14328,7 @@ const fm = {
|
|
14336
14328
|
name: "deployment-config-diff-deployment-selector",
|
14337
14329
|
inputId: "deployment-config-diff-deployment-selector",
|
14338
14330
|
classNamePrefix: "deployment-config-diff-deployment-selector",
|
14339
|
-
variant:
|
14331
|
+
variant: ds.BORDER_LESS,
|
14340
14332
|
options: L,
|
14341
14333
|
placeholder: "Select Deployment",
|
14342
14334
|
value: _n(L, f, null),
|
@@ -14978,7 +14970,7 @@ const Yt = ({
|
|
14978
14970
|
) });
|
14979
14971
|
};
|
14980
14972
|
var Zn = /* @__PURE__ */ ((e) => (e.vsDarkDT = "vs-dark--dt", e.vs = "vs", e.networkStatusInterface = "network-status-interface", e))(Zn || {}), WS = /* @__PURE__ */ ((e) => (e.reInit = "reInit", e.submitLoading = "submitLoading", e.overrideLoading = "overrideLoading", e.success = "success", e))(WS || {});
|
14981
|
-
const Rm = (e, s) => e || (s ===
|
14973
|
+
const Rm = (e, s) => e || (s === Dt.dark ? Zn.vsDarkDT : Zn.vs), zS = (e, s) => {
|
14982
14974
|
switch (s.type) {
|
14983
14975
|
case "changeLanguage":
|
14984
14976
|
return { ...e, mode: s.value };
|
@@ -15001,7 +14993,7 @@ const Rm = (e, s) => e || (s === At.dark ? Zn.vsDarkDT : Zn.vs), zS = (e, s) =>
|
|
15001
14993
|
a = JSON.parse(e);
|
15002
14994
|
} catch {
|
15003
14995
|
try {
|
15004
|
-
a =
|
14996
|
+
a = Lt.parse(e);
|
15005
14997
|
} catch {
|
15006
14998
|
}
|
15007
14999
|
}
|
@@ -15295,7 +15287,7 @@ const XS = 100, et = Te.memo(
|
|
15295
15287
|
initialTab: n.mode,
|
15296
15288
|
className: "flex left",
|
15297
15289
|
onChange: (a) => {
|
15298
|
-
|
15290
|
+
cs.event({
|
15299
15291
|
category: "JSON-YAML Switch",
|
15300
15292
|
action: `${a.target.value} view`
|
15301
15293
|
}), s(a.target.value);
|
@@ -15314,7 +15306,7 @@ const XS = 100, et = Te.memo(
|
|
15314
15306
|
e.text,
|
15315
15307
|
e.children
|
15316
15308
|
] }), sv = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
|
15317
|
-
/* @__PURE__ */ t.jsx(
|
15309
|
+
/* @__PURE__ */ t.jsx(_s, { className: "code-editor__information-info-icon" }),
|
15318
15310
|
e.text,
|
15319
15311
|
e.children
|
15320
15312
|
] }), nv = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
|
@@ -15361,7 +15353,7 @@ et.Container = iv;
|
|
15361
15353
|
const cv = () => (e) => {
|
15362
15354
|
const s = [], n = e.state.doc.toString();
|
15363
15355
|
try {
|
15364
|
-
|
15356
|
+
Lt.parseAllDocuments(n).forEach(({ errors: r }) => {
|
15365
15357
|
r.forEach((o) => {
|
15366
15358
|
if (o instanceof U_) {
|
15367
15359
|
const { linePos: i = [], message: c } = o, { from: l } = e.state.doc.line(i[0]?.line || 0);
|
@@ -15470,7 +15462,7 @@ const cv = () => (e) => {
|
|
15470
15462
|
const s = document.createElement("span");
|
15471
15463
|
s.className = `flex h-100 ${e ? "" : "is-closed"}`;
|
15472
15464
|
const n = /* @__PURE__ */ t.jsx(
|
15473
|
-
|
15465
|
+
ls,
|
15474
15466
|
{
|
15475
15467
|
className: "icon-dim-12 scn-6 rotate",
|
15476
15468
|
style: { "--rotateBy": e ? "0deg" : "-90deg" }
|
@@ -15712,7 +15704,7 @@ const cv = () => (e) => {
|
|
15712
15704
|
ariaLabel: "find-replace-expand-button",
|
15713
15705
|
showAriaLabelInTippy: !1,
|
15714
15706
|
icon: /* @__PURE__ */ t.jsx(
|
15715
|
-
|
15707
|
+
ls,
|
15716
15708
|
{
|
15717
15709
|
className: "rotate",
|
15718
15710
|
style: {
|
@@ -16062,7 +16054,7 @@ const cv = () => (e) => {
|
|
16062
16054
|
}
|
16063
16055
|
);
|
16064
16056
|
}, Pm = Pt(null), $r = () => {
|
16065
|
-
const e =
|
16057
|
+
const e = ms(Pm);
|
16066
16058
|
if (!e)
|
16067
16059
|
throw new Error("cannot be rendered outside the component");
|
16068
16060
|
return e;
|
@@ -16101,7 +16093,7 @@ const cv = () => (e) => {
|
|
16101
16093
|
]
|
16102
16094
|
}
|
16103
16095
|
), Bv = ({ className: e, text: s, children: n }) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error fs-12 fw-4 lh-16 py-8 px-16 bco-1 co-5 dc__border-bottom ${e || ""}`, children: [
|
16104
|
-
/* @__PURE__ */ t.jsx(
|
16096
|
+
/* @__PURE__ */ t.jsx(_s, { className: "code-editor__status-info-icon" }),
|
16105
16097
|
s,
|
16106
16098
|
n
|
16107
16099
|
] }), Fv = ({ className: e, children: s, text: n }) => /* @__PURE__ */ t.jsxs(
|
@@ -16379,7 +16371,7 @@ const cv = () => (e) => {
|
|
16379
16371
|
);
|
16380
16372
|
}, Kv = new f_(), Wv = c_({
|
16381
16373
|
markerDOM: pv
|
16382
|
-
}),
|
16374
|
+
}), yt = ({
|
16383
16375
|
theme: e,
|
16384
16376
|
value: s,
|
16385
16377
|
originalValue: n,
|
@@ -16413,7 +16405,7 @@ const cv = () => (e) => {
|
|
16413
16405
|
}, [s, a, h, i]), D = X(() => {
|
16414
16406
|
const ie = S ? hr(n) : n;
|
16415
16407
|
return ie !== I.current.lhsCode ? ![He.JSON, He.YAML].includes(o) || i ? ie : Ll(ie, o, l) : I.current.lhsCode;
|
16416
|
-
}, [n, i]), L = e ?? T, $ = L ===
|
16408
|
+
}, [n, i]), L = e ?? T, $ = L === Dt.dark, { codeEditorTheme: V, themeExtension: J } = Hv($), [q, te] = R(), [de, Ae] = R(!1), [Y, F] = R(h), le = X(
|
16417
16409
|
() => ({ setDiffMode: F, diffMode: Y, hasCodeEditorContainer: de, lhsValue: D, value: O, readOnly: x, theme: L }),
|
16418
16410
|
[Y, de, D, O, x, L]
|
16419
16411
|
);
|
@@ -16520,21 +16512,21 @@ const cv = () => (e) => {
|
|
16520
16512
|
)
|
16521
16513
|
] });
|
16522
16514
|
};
|
16523
|
-
|
16524
|
-
|
16525
|
-
|
16526
|
-
|
16527
|
-
|
16528
|
-
|
16515
|
+
yt.Clipboard = Vv;
|
16516
|
+
yt.Header = Uv;
|
16517
|
+
yt.Warning = $v;
|
16518
|
+
yt.ErrorBar = Bv;
|
16519
|
+
yt.Information = Fv;
|
16520
|
+
yt.Container = Gv;
|
16529
16521
|
const Zt = () => window._env_.FEATURE_CODE_MIRROR_ENABLE, Ct = ({
|
16530
16522
|
codeEditorProps: e,
|
16531
16523
|
codeMirrorProps: s,
|
16532
16524
|
children: n,
|
16533
16525
|
...a
|
16534
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(
|
16526
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(yt, { ...s, ...a, children: n }) : /* @__PURE__ */ t.jsx(et, { ...e, ...a, children: n }), zv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.LanguageChanger, {}), qv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ThemeChanger, {}), Xv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ValidationError, {}), Jv = () => Zt() ? /* @__PURE__ */ t.jsx(yt.Clipboard, {}) : /* @__PURE__ */ t.jsx(et.Clipboard, {}), Zv = (e) => Zt() ? /* @__PURE__ */ t.jsx(yt.Header, { ...e }) : /* @__PURE__ */ t.jsx(et.Header, { ...e }), Qv = (e) => Zt() ? /* @__PURE__ */ t.jsx(yt.Warning, { ...e }) : /* @__PURE__ */ t.jsx(et.Warning, { ...e }), eI = (e) => Zt() ? /* @__PURE__ */ t.jsx(yt.ErrorBar, { ...e }) : /* @__PURE__ */ t.jsx(et.ErrorBar, { ...e }), tI = (e) => Zt() ? /* @__PURE__ */ t.jsx(yt.Information, { ...e }) : /* @__PURE__ */ t.jsx(et.Information, { ...e }), sI = ({
|
16535
16527
|
overflowHidden: e,
|
16536
16528
|
...s
|
16537
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(
|
16529
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(yt.Container, { ...s }) : /* @__PURE__ */ t.jsx(et.Container, { overflowHidden: e, ...s });
|
16538
16530
|
Ct.LanguageChanger = zv;
|
16539
16531
|
Ct.ThemeChanger = qv;
|
16540
16532
|
Ct.ValidationError = Xv;
|
@@ -16877,7 +16869,7 @@ const nI = ({
|
|
16877
16869
|
] }) : null,
|
16878
16870
|
l.date ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8", children: [
|
16879
16871
|
/* @__PURE__ */ t.jsx(Ya, { className: "icon-dim-16 scn-7" }),
|
16880
|
-
/* @__PURE__ */ t.jsx("span", { className: "lh-20", children: ke(l.date).format(
|
16872
|
+
/* @__PURE__ */ t.jsx("span", { className: "lh-20", children: ke(l.date).format(At.TWELVE_HOURS_FORMAT) })
|
16881
16873
|
] }) : null
|
16882
16874
|
] })
|
16883
16875
|
] }),
|
@@ -16895,7 +16887,7 @@ const nI = ({
|
|
16895
16887
|
}, [n]), l = !s || r.includes("/logs");
|
16896
16888
|
return M(() => (l && e.length && o({ callback: c, keys: e }), () => {
|
16897
16889
|
i(e);
|
16898
|
-
}), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className: Cn(
|
16890
|
+
}), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className: Cn(Dt.dark), children: /* @__PURE__ */ t.jsx(
|
16899
16891
|
ae,
|
16900
16892
|
{
|
16901
16893
|
placement: "left",
|
@@ -16915,7 +16907,7 @@ const nI = ({
|
|
16915
16907
|
)
|
16916
16908
|
}
|
16917
16909
|
) });
|
16918
|
-
}, lI = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className: Cn(
|
16910
|
+
}, lI = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className: Cn(Dt.dark), children: /* @__PURE__ */ t.jsxs("div", { style: n, className: "dc__element-scroller flex column top br-4", children: [
|
16919
16911
|
/* @__PURE__ */ t.jsx(ae, { alwaysShowTippyOnHover: !0, content: "Scroll to Top", placement: "left", children: /* @__PURE__ */ t.jsx(
|
16920
16912
|
"button",
|
16921
16913
|
{
|
@@ -16924,7 +16916,7 @@ const nI = ({
|
|
16924
16916
|
type: "button",
|
16925
16917
|
onClick: e,
|
16926
16918
|
"aria-label": "scroll-to-top",
|
16927
|
-
children: /* @__PURE__ */ t.jsx(
|
16919
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "rotate", style: { "--rotateBy": "180deg" } })
|
16928
16920
|
}
|
16929
16921
|
) }),
|
16930
16922
|
/* @__PURE__ */ t.jsx(ae, { alwaysShowTippyOnHover: !0, content: "Scroll to Bottom", placement: "left", children: /* @__PURE__ */ t.jsx(
|
@@ -16935,7 +16927,7 @@ const nI = ({
|
|
16935
16927
|
type: "button",
|
16936
16928
|
onClick: s,
|
16937
16929
|
"aria-label": "scroll-to-button",
|
16938
|
-
children: /* @__PURE__ */ t.jsx(
|
16930
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "rotate" })
|
16939
16931
|
}
|
16940
16932
|
) })
|
16941
16933
|
] }) }), dI = ({
|
@@ -17092,7 +17084,7 @@ const uI = (e) => {
|
|
17092
17084
|
}, Mm = Pt(null), jP = ({ children: e }) => {
|
17093
17085
|
const s = H(null), [n, a] = R(""), r = X(() => ({ modalKey: n, setModalKey: a, settersRef: s }), [n]);
|
17094
17086
|
return /* @__PURE__ */ t.jsx(Mm.Provider, { value: r, children: e });
|
17095
|
-
}, Um = () =>
|
17087
|
+
}, Um = () => ms(Mm), fI = {
|
17096
17088
|
[w.medium]: w.xxs,
|
17097
17089
|
[w.large]: w.xs
|
17098
17090
|
}, Br = ({
|
@@ -17400,7 +17392,7 @@ const uI = (e) => {
|
|
17400
17392
|
description: p || "Successfully deleted"
|
17401
17393
|
}), S(!1), l();
|
17402
17394
|
} catch (O) {
|
17403
|
-
O instanceof
|
17395
|
+
O instanceof wt && O.code === m ? (E(!0), Array.isArray(O.errors) && O.errors.length > 0 && !u && N(O.errors[0].userMessage)) : typeof c == "function" ? c(O) : Me(O), S(!1);
|
17404
17396
|
}
|
17405
17397
|
}, A = () => {
|
17406
17398
|
E(!1), l();
|
@@ -17644,7 +17636,7 @@ const uI = (e) => {
|
|
17644
17636
|
)
|
17645
17637
|
] }, p.id) : null;
|
17646
17638
|
}),
|
17647
|
-
!m.includes("source-code") && /* @__PURE__ */ t.jsx(
|
17639
|
+
!m.includes("source-code") && /* @__PURE__ */ t.jsx(ps, { to: `${u}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
17648
17640
|
] }) });
|
17649
17641
|
}, Us = () => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsx("div", { className: "dc__border-left--n3 h-100" }) }), $l = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17650
17642
|
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx($e, { size: 20, name: "ic-success", color: null }) }),
|
@@ -17945,7 +17937,7 @@ const uI = (e) => {
|
|
17945
17937
|
!!b && !!j
|
17946
17938
|
), V = Or(I?.targetPlatforms), J = (F, le, ce) => {
|
17947
17939
|
if (ce) {
|
17948
|
-
p?.result?.cdWorkflows?.length && n(rp(p.result.cdWorkflows, "id")), u(
|
17940
|
+
p?.result?.cdWorkflows?.length && n(rp(p.result.cdWorkflows, "id")), u(Ss.SUSPEND);
|
17949
17941
|
return;
|
17950
17942
|
}
|
17951
17943
|
if (F === le?.id) {
|
@@ -17957,10 +17949,10 @@ const uI = (e) => {
|
|
17957
17949
|
...Q ? { targetConfig: Q } : {},
|
17958
17950
|
...re ? { userApprovalMetadata: re } : {}
|
17959
17951
|
};
|
17960
|
-
n((be) => (be.set(F, { ...le, ...Ie }), new Map(be))), d ===
|
17952
|
+
n((be) => (be.set(F, { ...le, ...Ie }), new Map(be))), d === Ss.FETCHING && u(Ss.SUCCESS);
|
17961
17953
|
}
|
17962
17954
|
};
|
17963
|
-
let q = !!d && d !==
|
17955
|
+
let q = !!d && d !== Ss.SUSPEND;
|
17964
17956
|
(D?.result?.artifactId === 0 || I?.artifactId === 0) && (q = !1);
|
17965
17957
|
const [te, de, Ae] = Wt(
|
17966
17958
|
() => YT({
|
@@ -18421,7 +18413,7 @@ const uI = (e) => {
|
|
18421
18413
|
readOnly: l || !1,
|
18422
18414
|
customInputIcon: /* @__PURE__ */ t.jsx(Ya, { className: "icon-dim-20 scn-6" }),
|
18423
18415
|
inputIconPosition: "after",
|
18424
|
-
displayFormat:
|
18416
|
+
displayFormat: At.DD_MMM_YYYY,
|
18425
18417
|
"data-testid": m,
|
18426
18418
|
isDayBlocked: v,
|
18427
18419
|
disabled: a,
|
@@ -19210,7 +19202,7 @@ const VP = {
|
|
19210
19202
|
const { headers: E, rows: h } = e, g = E[0].key, f = E[1].key, [N, C] = R(h), [S, v] = R(!1), A = l || c, y = !l && !c || !!N.length, b = !N[0]?.data[g].value && !N[0]?.data[f].value, T = N.length === 1 && b, { sortBy: j, sortOrder: I, handleSorting: O } = Ru({
|
19211
19203
|
initialSortKey: n ? g : null
|
19212
19204
|
}), D = H(), L = H();
|
19213
|
-
D.current || (D.current = N.reduce((P, k) => ({ ...P, [k.id]:
|
19205
|
+
D.current || (D.current = N.reduce((P, k) => ({ ...P, [k.id]: Ns() }), {})), L.current || (L.current = N.reduce((P, k) => ({ ...P, [k.id]: Ns() }), {}));
|
19214
19206
|
const $ = X(
|
19215
19207
|
() => N.reduce(
|
19216
19208
|
(P, k) => {
|
@@ -19266,10 +19258,10 @@ const VP = {
|
|
19266
19258
|
const P = q(), k = [P, ...N], { id: B } = P;
|
19267
19259
|
p?.(!J(k)), v(!0), C(k), D.current = {
|
19268
19260
|
...D.current || {},
|
19269
|
-
[B]:
|
19261
|
+
[B]: Ns()
|
19270
19262
|
}, L.current = {
|
19271
19263
|
...L.current || {},
|
19272
|
-
[B]:
|
19264
|
+
[B]: Ns()
|
19273
19265
|
};
|
19274
19266
|
};
|
19275
19267
|
M(() => {
|
@@ -19294,9 +19286,9 @@ const VP = {
|
|
19294
19286
|
if (k.length === 0 && !c) {
|
19295
19287
|
const B = q(), { id: Q } = B;
|
19296
19288
|
v(!0), p?.(!J([B])), C([B]), D.current = {
|
19297
|
-
[Q]:
|
19289
|
+
[Q]: Ns()
|
19298
19290
|
}, L.current = {
|
19299
|
-
[Q]:
|
19291
|
+
[Q]: Ns()
|
19300
19292
|
}, o?.(P.id);
|
19301
19293
|
return;
|
19302
19294
|
}
|
@@ -19428,7 +19420,7 @@ const VP = {
|
|
19428
19420
|
onClick: Ae(P),
|
19429
19421
|
disabled: T,
|
19430
19422
|
children: /* @__PURE__ */ t.jsx(
|
19431
|
-
|
19423
|
+
fs,
|
19432
19424
|
{
|
19433
19425
|
"aria-label": "delete-row",
|
19434
19426
|
className: "icon-dim-16 fcn-4 dc__align-self-start"
|
@@ -19468,7 +19460,7 @@ const VP = {
|
|
19468
19460
|
showError: s,
|
19469
19461
|
showWarning: n,
|
19470
19462
|
className: a
|
19471
|
-
}) => s ? /* @__PURE__ */ t.jsx(
|
19463
|
+
}) => s ? /* @__PURE__ */ t.jsx(_s, { className: a }) : n ? /* @__PURE__ */ t.jsx(ta, { className: `${a} warning-icon-y7` }) : e ? /* @__PURE__ */ t.jsx(e, { className: `${a} tab-group__tab__icon` }) : null, aA = (e, s) => e !== null && /* @__PURE__ */ t.jsx("div", { className: `tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${s}`, children: e }), rA = (e) => e && /* @__PURE__ */ t.jsx("span", { className: "tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" }), oA = (e) => e && /* @__PURE__ */ t.jsx("ul", { className: "tab-group__tab__description m-0 p-0 fs-12 lh-16 fw-4 cn-7 flexbox dc__align-items-center dc__gap-4", children: Array.isArray(e) ? e.map((s, n) => /* @__PURE__ */ t.jsxs("li", { className: "flex dc__gap-4", children: [
|
19472
19464
|
!!n && /* @__PURE__ */ t.jsx("span", { className: "dc__bullet" }),
|
19473
19465
|
s
|
19474
19466
|
] }, s)) : e }), iA = ({
|
@@ -19507,7 +19499,7 @@ const VP = {
|
|
19507
19499
|
switch (n) {
|
19508
19500
|
case "link":
|
19509
19501
|
return /* @__PURE__ */ t.jsx(
|
19510
|
-
|
19502
|
+
ps,
|
19511
19503
|
{
|
19512
19504
|
className: `${h} dc__no-decor flexbox-col ${p ? "cursor-not-allowed" : ""}`,
|
19513
19505
|
"aria-disabled": p,
|
@@ -20017,7 +20009,7 @@ const Vl = ({
|
|
20017
20009
|
let b = { isValid: !0, messages: [] };
|
20018
20010
|
return o === ns.KEY ? (m || s.value) && (b = E.propagateTagKey(m)) : (r || m || s.propagate) && (b = E.propagateTagValue(m, s.key)), b.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: xe, "data-testid": "tag-label-cross-stop-propagation", children: [
|
20019
20011
|
b.messages.map((T) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
20020
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
20012
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(fs, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
20021
20013
|
/* @__PURE__ */ t.jsx("span", { children: T })
|
20022
20014
|
] }, T)),
|
20023
20015
|
o === ns.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -20145,7 +20137,7 @@ const Vl = ({
|
|
20145
20137
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
20146
20138
|
onClick: u,
|
20147
20139
|
"data-testid": `delete-tag-${e}`,
|
20148
|
-
children: /* @__PURE__ */ t.jsx(
|
20140
|
+
children: /* @__PURE__ */ t.jsx(fs, { className: "icon-dim-20 mt-4" })
|
20149
20141
|
}
|
20150
20142
|
)
|
20151
20143
|
] });
|
@@ -20189,7 +20181,7 @@ const CA = (e) => {
|
|
20189
20181
|
dataTestId: "file-upload-remove-file-button",
|
20190
20182
|
ariaLabel: "Remove File",
|
20191
20183
|
showAriaLabelInTippy: !1,
|
20192
|
-
icon: /* @__PURE__ */ t.jsx(
|
20184
|
+
icon: /* @__PURE__ */ t.jsx(fs, {}),
|
20193
20185
|
onClick: c,
|
20194
20186
|
variant: ue.borderLess,
|
20195
20187
|
style: Ee.negativeGrey,
|
@@ -20238,14 +20230,14 @@ const CA = (e) => {
|
|
20238
20230
|
f.current || (f.current = e.reduce(
|
20239
20231
|
(I, O) => ({
|
20240
20232
|
...I,
|
20241
|
-
[O.id]: s.reduce((D, { key: L }) => ({ ...D, [L]:
|
20233
|
+
[O.id]: s.reduce((D, { key: L }) => ({ ...D, [L]: Ns() }), {})
|
20242
20234
|
}),
|
20243
20235
|
{}
|
20244
20236
|
));
|
20245
20237
|
const N = X(() => e.map(({ id: I }) => I), [e]);
|
20246
20238
|
M(() => {
|
20247
20239
|
g(e.length > 0 && Object.keys(f.current).length < e.length);
|
20248
|
-
const I = N.reduce((O, D) => (f.current[D] ? O[D] = f.current[D] : O[D] = s.reduce((L, { key: $ }) => ({ ...L, [$]:
|
20240
|
+
const I = N.reduce((O, D) => (f.current[D] ? O[D] = f.current[D] : O[D] = s.reduce((L, { key: $ }) => ({ ...L, [$]: Ns() }), {}), O), {});
|
20249
20241
|
f.current = I;
|
20250
20242
|
}, [JSON.stringify(N)]), M(() => {
|
20251
20243
|
if (h) {
|
@@ -20282,7 +20274,7 @@ const CA = (e) => {
|
|
20282
20274
|
...I.data[O].props,
|
20283
20275
|
inputId: `data-table-${I.id}-${O}-cell`,
|
20284
20276
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
20285
|
-
variant:
|
20277
|
+
variant: ds.BORDER_LESS,
|
20286
20278
|
value: _n(
|
20287
20279
|
I.data[O].props?.options,
|
20288
20280
|
I.data[O].value,
|
@@ -20301,7 +20293,7 @@ const CA = (e) => {
|
|
20301
20293
|
isCreatable: V,
|
20302
20294
|
isClearable: !0,
|
20303
20295
|
...$,
|
20304
|
-
variant:
|
20296
|
+
variant: ds.BORDER_LESS,
|
20305
20297
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
20306
20298
|
inputId: `data-table-${I.id}-${O}-cell`,
|
20307
20299
|
minHeight: 20,
|
@@ -20513,7 +20505,7 @@ const CA = (e) => {
|
|
20513
20505
|
setTagErrors: c
|
20514
20506
|
}) => {
|
20515
20507
|
const l = (_) => {
|
20516
|
-
|
20508
|
+
cs.event({
|
20517
20509
|
category: "Tags",
|
20518
20510
|
action: `${e.toUpperCase()}_PROPAGATE_TAG_BUTTON_CLICKED`
|
20519
20511
|
});
|
@@ -20538,7 +20530,7 @@ const CA = (e) => {
|
|
20538
20530
|
}
|
20539
20531
|
) });
|
20540
20532
|
}, u = () => {
|
20541
|
-
|
20533
|
+
cs.event({
|
20542
20534
|
category: "Tags",
|
20543
20535
|
action: `${e.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`
|
20544
20536
|
});
|
@@ -20890,7 +20882,7 @@ const CA = (e) => {
|
|
20890
20882
|
};
|
20891
20883
|
}, MA = (e) => {
|
20892
20884
|
try {
|
20893
|
-
const s = e &&
|
20885
|
+
const s = e && Lt.parse(e);
|
20894
20886
|
if (typeof s != "object")
|
20895
20887
|
throw new Error();
|
20896
20888
|
return Object.keys(s).reduce((a, r, o) => {
|
@@ -20904,7 +20896,7 @@ const CA = (e) => {
|
|
20904
20896
|
}
|
20905
20897
|
}, Km = (e) => {
|
20906
20898
|
try {
|
20907
|
-
const s =
|
20899
|
+
const s = Lt.parse(e);
|
20908
20900
|
if (typeof s == "object") {
|
20909
20901
|
const n = {
|
20910
20902
|
secretStore: s.secretStore,
|
@@ -21065,7 +21057,7 @@ const CA = (e) => {
|
|
21065
21057
|
try {
|
21066
21058
|
if (!e)
|
21067
21059
|
throw new Error("This is a required field");
|
21068
|
-
const s =
|
21060
|
+
const s = Lt.parse(e);
|
21069
21061
|
if (typeof s == "object") {
|
21070
21062
|
const n = new RegExp(Bt.CONFIG_MAP_AND_SECRET_KEY), a = [], r = [];
|
21071
21063
|
Object.keys(s).forEach((i) => {
|
@@ -21221,7 +21213,7 @@ const CA = (e) => {
|
|
21221
21213
|
esoSecretYaml: FA(d)
|
21222
21214
|
} : {}
|
21223
21215
|
};
|
21224
|
-
},
|
21216
|
+
}, xs = {
|
21225
21217
|
width: 356,
|
21226
21218
|
height: 504
|
21227
21219
|
}, Wm = "No Defined Description", VA = "No Defined Value", GA = "What is scoped variable?", HA = ({
|
@@ -21316,14 +21308,14 @@ const CA = (e) => {
|
|
21316
21308
|
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-16 fcv-5" }) }),
|
21317
21309
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: GA })
|
21318
21310
|
] }),
|
21319
|
-
/* @__PURE__ */ t.jsx(
|
21311
|
+
/* @__PURE__ */ t.jsx(is, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
21320
21312
|
]
|
21321
21313
|
}
|
21322
21314
|
),
|
21323
21315
|
e && /* @__PURE__ */ t.jsx("div", { className: "flex pl-24 dc__gap-4 flex-wrap dc__content-center", children: /* @__PURE__ */ t.jsxs("p", { className: "m-0 fs-13 fw-4 lh-20 cn-9", children: [
|
21324
21316
|
"Use a scoped variable for dynamic values, which are defined in the ",
|
21325
21317
|
/* @__PURE__ */ t.jsx(
|
21326
|
-
|
21318
|
+
ps,
|
21327
21319
|
{
|
21328
21320
|
className: "cb-5 m-0",
|
21329
21321
|
to: Le.GLOBAL_CONFIG_SCOPED_VARIABLES,
|
@@ -21376,7 +21368,7 @@ const CA = (e) => {
|
|
21376
21368
|
/* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
|
21377
21369
|
ne,
|
21378
21370
|
{
|
21379
|
-
icon: /* @__PURE__ */ t.jsx(
|
21371
|
+
icon: /* @__PURE__ */ t.jsx(fs, {}),
|
21380
21372
|
ariaLabel: "Close suggestions",
|
21381
21373
|
showAriaLabelInTippy: !1,
|
21382
21374
|
dataTestId: "deactivate-suggestions",
|
@@ -21504,15 +21496,15 @@ const CA = (e) => {
|
|
21504
21496
|
_({
|
21505
21497
|
x: u.x,
|
21506
21498
|
y: u.y
|
21507
|
-
}), b.y > f.height -
|
21499
|
+
}), b.y > f.height - xs.height && _({
|
21508
21500
|
x: u.x,
|
21509
|
-
y: f.height -
|
21510
|
-
}), b.x > f.width -
|
21511
|
-
x: f.width -
|
21501
|
+
y: f.height - xs.height - C.y
|
21502
|
+
}), b.x > f.width - xs.width && _({
|
21503
|
+
x: f.width - xs.width - C.x,
|
21512
21504
|
y: u.y
|
21513
|
-
}), b.x > f.width -
|
21514
|
-
x: f.width -
|
21515
|
-
y: f.height -
|
21505
|
+
}), b.x > f.width - xs.width && b.y > f.height - xs.height && _({
|
21506
|
+
x: f.width - xs.width - C.x,
|
21507
|
+
y: f.height - xs.height - C.y
|
21516
21508
|
}), d(!0);
|
21517
21509
|
}, v = qe((b) => {
|
21518
21510
|
b.stopPropagation(), d(!1);
|
@@ -21931,7 +21923,7 @@ const ey = ({
|
|
21931
21923
|
}
|
21932
21924
|
x.current.updateResultStatus($, {
|
21933
21925
|
status: "Failed",
|
21934
|
-
message: (V && (V.message || V instanceof
|
21926
|
+
message: (V && (V.message || V instanceof wt && Array.isArray(V.errors) && V.errors[0].userMessage)) ?? "",
|
21935
21927
|
retryOperation: j
|
21936
21928
|
}), b();
|
21937
21929
|
}
|
@@ -22110,9 +22102,9 @@ const ey = ({
|
|
22110
22102
|
});
|
22111
22103
|
return;
|
22112
22104
|
}
|
22113
|
-
const S = C.nodes.find((A) => A.type ===
|
22114
|
-
if (C.nodes.some((A) => A.type ===
|
22115
|
-
_(
|
22105
|
+
const S = C.nodes.find((A) => A.type === bs.CI);
|
22106
|
+
if (C.nodes.some((A) => A.type === bs.WEBHOOK)) {
|
22107
|
+
_(bs.WEBHOOK);
|
22116
22108
|
return;
|
22117
22109
|
}
|
22118
22110
|
if (S?.isJobCI) {
|
@@ -22135,7 +22127,7 @@ const ey = ({
|
|
22135
22127
|
}
|
22136
22128
|
}, [i, o]);
|
22137
22129
|
const g = () => {
|
22138
|
-
if (o && i.find((v) => +v.id === o.appWorkflowId).nodes.some((v) => v.type ===
|
22130
|
+
if (o && i.find((v) => +v.id === o.appWorkflowId).nodes.some((v) => v.type === bs.CD)) {
|
22139
22131
|
E(!0), bC(ay(o), {
|
22140
22132
|
isTemplateView: m
|
22141
22133
|
}).then((v) => {
|
@@ -22233,7 +22225,7 @@ const ey = ({
|
|
22233
22225
|
dataTestId: Ue.EXTERNAL_SERVICE.dataTestId,
|
22234
22226
|
type: Ue.EXTERNAL_SERVICE.type,
|
22235
22227
|
handleCardAction: f,
|
22236
|
-
disableInfo: N(
|
22228
|
+
disableInfo: N(bs.WEBHOOK),
|
22237
22229
|
isDisabled: u
|
22238
22230
|
}
|
22239
22231
|
),
|
@@ -22389,7 +22381,7 @@ const ey = ({
|
|
22389
22381
|
{
|
22390
22382
|
...r,
|
22391
22383
|
classNamePrefix: "graph-visualizer-dropdown-node",
|
22392
|
-
variant:
|
22384
|
+
variant: ds.BORDER_LESS,
|
22393
22385
|
menuPortalTarget: document.querySelector(".graph-visualizer"),
|
22394
22386
|
menuSize: w.xs,
|
22395
22387
|
fullWidth: !0
|
@@ -22588,7 +22580,7 @@ const fy = (e) => e === Zm.NONE ? "" : "dc__border-n1", l1 = ({
|
|
22588
22580
|
] })
|
22589
22581
|
}
|
22590
22582
|
);
|
22591
|
-
return !c && !i ? u() : c ? /* @__PURE__ */ t.jsx(
|
22583
|
+
return !c && !i ? u() : c ? /* @__PURE__ */ t.jsx(ps, { ...c, children: u() }) : /* @__PURE__ */ t.jsx("div", { role: "button", tabIndex: 0, onClick: i, className: "dc__unset-button-styles dc__align-unset", children: u() });
|
22592
22584
|
}, hy = {
|
22593
22585
|
error: "bcr-1 er-2",
|
22594
22586
|
help: "bcv-1 ev-2",
|
@@ -22656,16 +22648,16 @@ const fy = (e) => e === Zm.NONE ? "" : "dc__border-n1", l1 = ({
|
|
22656
22648
|
r && /* @__PURE__ */ t.jsx(ne, { ...r, size: ed[n] })
|
22657
22649
|
] }) : null;
|
22658
22650
|
}, Ny = {
|
22659
|
-
[
|
22660
|
-
[
|
22661
|
-
[
|
22662
|
-
[
|
22663
|
-
[
|
22664
|
-
[
|
22665
|
-
[
|
22651
|
+
[Es.google]: "ic-google",
|
22652
|
+
[Es.github]: "ic-github",
|
22653
|
+
[Es.gitlab]: "ic-gitlab",
|
22654
|
+
[Es.ldap]: "ic-ldap",
|
22655
|
+
[Es.microsoft]: "ic-microsoft",
|
22656
|
+
[Es.oidc]: "ic-oidc",
|
22657
|
+
[Es.openshift]: "ic-openshift"
|
22666
22658
|
}, u1 = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx($e, { name: Ny[e], size: s, color: null });
|
22667
22659
|
function Me(e, s = !0, n = !1) {
|
22668
|
-
e instanceof
|
22660
|
+
e instanceof wt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
|
22669
22661
|
const o = a?.toLowerCase();
|
22670
22662
|
e.code === 403 && (o === We.UNAUTHORIZED.toLowerCase() || o === We.FORBIDDEN.toLowerCase()) ? n || De.showToast({
|
22671
22663
|
variant: Ne.notAuthorized,
|
@@ -22768,7 +22760,7 @@ function fr(e, s = !1) {
|
|
22768
22760
|
}
|
22769
22761
|
return n;
|
22770
22762
|
}
|
22771
|
-
const _1 = (e, s = "-") => e ? `${ke(e).utc().format(
|
22763
|
+
const _1 = (e, s = "-") => e ? `${ke(e).utc().format(At.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
|
22772
22764
|
function f1() {
|
22773
22765
|
const e = Ls(), s = X(() => new URLSearchParams(e.search), [e]), n = Array.from(s.entries()).reduce((a, r, o) => (a[r[0]] = r[1], a), {});
|
22774
22766
|
return { queryParams: s, searchParams: n };
|
@@ -22789,14 +22781,14 @@ function sd(e, s = 4, n = "json", a = !1) {
|
|
22789
22781
|
} catch (h) {
|
22790
22782
|
x = h;
|
22791
22783
|
try {
|
22792
|
-
_ =
|
22784
|
+
_ = Lt.parse(e, p), x = null, E = null;
|
22793
22785
|
} catch (g) {
|
22794
22786
|
E = g;
|
22795
22787
|
}
|
22796
22788
|
}
|
22797
22789
|
else
|
22798
22790
|
try {
|
22799
|
-
_ =
|
22791
|
+
_ = Lt.parse(e, p), x = null, E = null;
|
22800
22792
|
} catch (h) {
|
22801
22793
|
E = h;
|
22802
22794
|
try {
|
@@ -22805,7 +22797,7 @@ function sd(e, s = 4, n = "json", a = !1) {
|
|
22805
22797
|
x = g;
|
22806
22798
|
}
|
22807
22799
|
}
|
22808
|
-
(x || E) && m(n === "json" ? x.message : E.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), c(
|
22800
|
+
(x || E) && m(n === "json" ? x.message : E.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), c(Lt.stringify(_, { indent: 2, lineWidth: 0 })), d(_), m("")) : (d(null), m(x || E ? n === "json" ? x.message : E.message : "cannot parse to valid object"));
|
22809
22801
|
}, [e, s, n, a]), [l, r, i, u];
|
22810
22802
|
}
|
22811
22803
|
const Iy = ["name", "namespace", "labels", "annotations"];
|
@@ -22985,7 +22977,7 @@ const g1 = (e, s) => e ? fr(e, !0) : s ? "" : "Not deployed", Xe = (e, s = {}) =
|
|
22985
22977
|
}, v1 = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), I1 = (e, s, n) => {
|
22986
22978
|
const a = new Date(e).getTime(), r = new Date(s).getTime();
|
22987
22979
|
return isNaN(a) && isNaN(r) ? 0 : isNaN(a) ? n === Ce.ASC ? 1 : -1 : isNaN(r) ? n === Ce.ASC ? -1 : 1 : n === Ce.ASC ? r - a : a - r;
|
22988
|
-
}, ht = (e, s) =>
|
22980
|
+
}, ht = (e, s) => Lt.stringify(e, { indent: 2, lineWidth: 0, ...s }), A1 = (e, s) => {
|
22989
22981
|
if (e === s)
|
22990
22982
|
return !0;
|
22991
22983
|
const n = Array.isArray(e), a = Array.isArray(s);
|
@@ -23089,7 +23081,7 @@ function R1() {
|
|
23089
23081
|
};
|
23090
23082
|
return e;
|
23091
23083
|
}
|
23092
|
-
const jy = (e) => /* @__PURE__ */ t.jsx(Be.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
23084
|
+
const jy = (e) => /* @__PURE__ */ t.jsx(Be.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(is, { className: "icon-dim-20 icon-n6" }) });
|
23093
23085
|
function rp(e, s) {
|
23094
23086
|
return Array.isArray(e) ? e.reduce((n, a) => n.set(a[s], a), /* @__PURE__ */ new Map()) : (console.error(e, "is not array"), /* @__PURE__ */ new Map());
|
23095
23087
|
}
|
@@ -23302,7 +23294,7 @@ const dp = ({
|
|
23302
23294
|
{
|
23303
23295
|
condition: !!o.to,
|
23304
23296
|
wrap: (c) => /* @__PURE__ */ t.jsx(
|
23305
|
-
|
23297
|
+
ps,
|
23306
23298
|
{
|
23307
23299
|
className: `${a === o.to ? "active" : ""} ${n} ${o.className || ""}`,
|
23308
23300
|
to: o.to,
|
@@ -23424,7 +23416,7 @@ const Xi = ({
|
|
23424
23416
|
textConfig: _
|
23425
23417
|
}) => {
|
23426
23418
|
const x = () => i ? c ? u ? /* @__PURE__ */ t.jsx(
|
23427
|
-
|
23419
|
+
ps,
|
23428
23420
|
{
|
23429
23421
|
to: c,
|
23430
23422
|
onClick: l,
|
@@ -23581,7 +23573,7 @@ const Xi = ({
|
|
23581
23573
|
u && /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
23582
23574
|
ne,
|
23583
23575
|
{
|
23584
|
-
icon: /* @__PURE__ */ t.jsx(
|
23576
|
+
icon: /* @__PURE__ */ t.jsx(fs, {}),
|
23585
23577
|
size: w.xs,
|
23586
23578
|
variant: ue.borderLess,
|
23587
23579
|
style: Ee.negativeGrey,
|
@@ -23700,17 +23692,17 @@ const _p = ({
|
|
23700
23692
|
...Se[K],
|
23701
23693
|
deleted: !Se[K].deleted
|
23702
23694
|
};
|
23703
|
-
const _e = Se[K], Ye = [...L], tt = Ye.findIndex((
|
23695
|
+
const _e = Se[K], Ye = [...L], tt = Ye.findIndex((Rt) => Rt.tagName === _e.tagName);
|
23704
23696
|
tt !== -1 ? Ye.splice(tt, 1) : Ye.push(_e), T(Se), $(Ye);
|
23705
23697
|
}, re = (K) => {
|
23706
|
-
const Se = b[K], _e = O.filter((
|
23698
|
+
const Se = b[K], _e = O.filter((Rt) => Rt.tagName !== Se.tagName);
|
23707
23699
|
D(_e);
|
23708
23700
|
const Ye = [...b];
|
23709
23701
|
Ye.splice(K, 1), T(Ye);
|
23710
|
-
const tt = g.filter((
|
23702
|
+
const tt = g.filter((Rt) => Rt.toLowerCase() !== Se.tagName.toLowerCase());
|
23711
23703
|
if (f(tt), Se.id !== 0) {
|
23712
|
-
const
|
23713
|
-
J(
|
23704
|
+
const Rt = [...V, Se];
|
23705
|
+
J(Rt);
|
23714
23706
|
}
|
23715
23707
|
}, Ie = (K) => {
|
23716
23708
|
K.forEach(({ userMessage: Se }) => {
|
@@ -23720,8 +23712,8 @@ const _p = ({
|
|
23720
23712
|
} : tt);
|
23721
23713
|
D(_e);
|
23722
23714
|
const Ye = b.map((tt) => {
|
23723
|
-
const
|
23724
|
-
return
|
23715
|
+
const Rt = _e.find((Yr) => Yr.tagName === tt.tagName);
|
23716
|
+
return Rt ? { ...tt, duplicateTag: Rt.duplicateTag } : tt;
|
23725
23717
|
});
|
23726
23718
|
T(Ye);
|
23727
23719
|
});
|
@@ -23946,7 +23938,7 @@ const _p = ({
|
|
23946
23938
|
className: `br-4 en-2 bw-1 mr-8 bg__primary pt-2 pr-8 pb-2 pl-8 tag-class dc__word-break-all flex ${n ? "icon-hover" : ""} ${x()}`,
|
23947
23939
|
children: [
|
23948
23940
|
u,
|
23949
|
-
l ? /* @__PURE__ */ t.jsx(
|
23941
|
+
l ? /* @__PURE__ */ t.jsx(_s, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
|
23950
23942
|
fe,
|
23951
23943
|
{
|
23952
23944
|
className: "default-tt",
|
@@ -23971,7 +23963,7 @@ const _p = ({
|
|
23971
23963
|
),
|
23972
23964
|
e,
|
23973
23965
|
/* @__PURE__ */ t.jsx(fe, { className: "default-tt", arrow: !0, placement: "top", content: "Remove tag", children: /* @__PURE__ */ t.jsx("div", { className: `action-icon ml-4 lh-16 pt-3 ${_ ? "show-icon" : ""}`, children: /* @__PURE__ */ t.jsx(
|
23974
|
-
|
23966
|
+
fs,
|
23975
23967
|
{
|
23976
23968
|
className: "icon-dim-12 fcn-6 cursor",
|
23977
23969
|
"data-testid": `${e}-tag-hard-delete`,
|
@@ -24117,7 +24109,7 @@ const H1 = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
24117
24109
|
value: a ?? c[0],
|
24118
24110
|
options: c,
|
24119
24111
|
onChange: p,
|
24120
|
-
variant:
|
24112
|
+
variant: ds.BORDER_LESS
|
24121
24113
|
}
|
24122
24114
|
)
|
24123
24115
|
] }),
|
@@ -24130,7 +24122,7 @@ const H1 = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
24130
24122
|
value: d ?? o[0],
|
24131
24123
|
options: o,
|
24132
24124
|
onChange: _,
|
24133
|
-
variant:
|
24125
|
+
variant: ds.BORDER_LESS
|
24134
24126
|
}
|
24135
24127
|
)
|
24136
24128
|
] })
|
@@ -24188,7 +24180,7 @@ function K1({
|
|
24188
24180
|
}
|
24189
24181
|
) : null;
|
24190
24182
|
}
|
24191
|
-
const zy = ({ startNode: e }) => e.type ===
|
24183
|
+
const zy = ({ startNode: e }) => e.type === bs.WEBHOOK ? Vs.WEBHOOK : e.type === bs.CI ? Vs.CI_PIPELINE : Vs.CD_PIPELINE, W1 = ({
|
24192
24184
|
position: e,
|
24193
24185
|
handleCDSelect: s,
|
24194
24186
|
startNode: n,
|
@@ -24508,7 +24500,7 @@ Nothing to preview
|
|
24508
24500
|
"checked-list"
|
24509
24501
|
]
|
24510
24502
|
];
|
24511
|
-
var
|
24503
|
+
var jt = /* @__PURE__ */ ((e) => (e.HEADER = "header", e.BOLD = "bold", e.ITALIC = "italic", e.STRIKETHROUGH = "strikethrough", e.LINK = "link", e.QUOTE = "quote", e.CODE = "code", e.IMAGE = "image", e.UNORDERED_LIST = "unordered-list", e.ORDERED_LIST = "ordered-list", e.CHECKED_LIST = "checked-list", e))(jt || {});
|
24512
24504
|
const kt = {
|
24513
24505
|
header: "Add heading text",
|
24514
24506
|
bold: "Add bold text",
|
@@ -24525,7 +24517,7 @@ const kt = {
|
|
24525
24517
|
if (!e || e === En)
|
24526
24518
|
return "";
|
24527
24519
|
const s = ke(e);
|
24528
|
-
return s.isValid() ? s.format(
|
24520
|
+
return s.isValid() ? s.format(At.TWELVE_HOURS_FORMAT) : e;
|
24529
24521
|
}, J1 = ({
|
24530
24522
|
text: e,
|
24531
24523
|
updatedBy: s,
|
@@ -24561,7 +24553,7 @@ const kt = {
|
|
24561
24553
|
}
|
24562
24554
|
}, v = (A) => {
|
24563
24555
|
switch (A) {
|
24564
|
-
case
|
24556
|
+
case jt.HEADER:
|
24565
24557
|
return /* @__PURE__ */ t.jsx(
|
24566
24558
|
fe,
|
24567
24559
|
{
|
@@ -24572,7 +24564,7 @@ const kt = {
|
|
24572
24564
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(hh, { className: "icon-dim-16 flex" }) })
|
24573
24565
|
}
|
24574
24566
|
);
|
24575
|
-
case
|
24567
|
+
case jt.BOLD:
|
24576
24568
|
return /* @__PURE__ */ t.jsx(
|
24577
24569
|
fe,
|
24578
24570
|
{
|
@@ -24583,7 +24575,7 @@ const kt = {
|
|
24583
24575
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(gh, { className: "icon-dim-16 flex" }) })
|
24584
24576
|
}
|
24585
24577
|
);
|
24586
|
-
case
|
24578
|
+
case jt.ITALIC:
|
24587
24579
|
return /* @__PURE__ */ t.jsx(
|
24588
24580
|
fe,
|
24589
24581
|
{
|
@@ -24594,7 +24586,7 @@ const kt = {
|
|
24594
24586
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(xh, { className: "icon-dim-16 flex" }) })
|
24595
24587
|
}
|
24596
24588
|
);
|
24597
|
-
case
|
24589
|
+
case jt.STRIKETHROUGH:
|
24598
24590
|
return /* @__PURE__ */ t.jsx(
|
24599
24591
|
fe,
|
24600
24592
|
{
|
@@ -24605,7 +24597,7 @@ const kt = {
|
|
24605
24597
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Nh, { className: "icon-dim-16 flex" }) })
|
24606
24598
|
}
|
24607
24599
|
);
|
24608
|
-
case
|
24600
|
+
case jt.LINK:
|
24609
24601
|
return /* @__PURE__ */ t.jsx(
|
24610
24602
|
fe,
|
24611
24603
|
{
|
@@ -24616,7 +24608,7 @@ const kt = {
|
|
24616
24608
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Eh, { className: "icon-dim-16 flex" }) })
|
24617
24609
|
}
|
24618
24610
|
);
|
24619
|
-
case
|
24611
|
+
case jt.QUOTE:
|
24620
24612
|
return /* @__PURE__ */ t.jsx(
|
24621
24613
|
fe,
|
24622
24614
|
{
|
@@ -24627,7 +24619,7 @@ const kt = {
|
|
24627
24619
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(bh, { className: "icon-dim-16 flex" }) })
|
24628
24620
|
}
|
24629
24621
|
);
|
24630
|
-
case
|
24622
|
+
case jt.CODE:
|
24631
24623
|
return /* @__PURE__ */ t.jsx(
|
24632
24624
|
fe,
|
24633
24625
|
{
|
@@ -24638,7 +24630,7 @@ const kt = {
|
|
24638
24630
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ch, { className: "icon-dim-16 flex" }) })
|
24639
24631
|
}
|
24640
24632
|
);
|
24641
|
-
case
|
24633
|
+
case jt.IMAGE:
|
24642
24634
|
return /* @__PURE__ */ t.jsx(
|
24643
24635
|
fe,
|
24644
24636
|
{
|
@@ -24649,7 +24641,7 @@ const kt = {
|
|
24649
24641
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Th, { className: "icon-dim-16 flex" }) })
|
24650
24642
|
}
|
24651
24643
|
);
|
24652
|
-
case
|
24644
|
+
case jt.UNORDERED_LIST:
|
24653
24645
|
return /* @__PURE__ */ t.jsx(
|
24654
24646
|
fe,
|
24655
24647
|
{
|
@@ -24660,7 +24652,7 @@ const kt = {
|
|
24660
24652
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(hc, { className: "icon-dim-16 flex" }) })
|
24661
24653
|
}
|
24662
24654
|
);
|
24663
|
-
case
|
24655
|
+
case jt.ORDERED_LIST:
|
24664
24656
|
return /* @__PURE__ */ t.jsx(
|
24665
24657
|
fe,
|
24666
24658
|
{
|
@@ -24671,7 +24663,7 @@ const kt = {
|
|
24671
24663
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Sh, { className: "icon-dim-16 flex" }) })
|
24672
24664
|
}
|
24673
24665
|
);
|
24674
|
-
case
|
24666
|
+
case jt.CHECKED_LIST:
|
24675
24667
|
return /* @__PURE__ */ t.jsx(
|
24676
24668
|
fe,
|
24677
24669
|
{
|
@@ -25068,7 +25060,7 @@ export {
|
|
25068
25060
|
an as aG,
|
25069
25061
|
lx as aH,
|
25070
25062
|
Vs as aI,
|
25071
|
-
|
25063
|
+
bs as aJ,
|
25072
25064
|
Kn as aK,
|
25073
25065
|
yo as aL,
|
25074
25066
|
dx as aM,
|
@@ -25093,16 +25085,16 @@ export {
|
|
25093
25085
|
Jd as ae,
|
25094
25086
|
Zd as af,
|
25095
25087
|
JL as ag,
|
25096
|
-
|
25088
|
+
At as ah,
|
25097
25089
|
ZL as ai,
|
25098
25090
|
xc as aj,
|
25099
25091
|
za as ak,
|
25100
25092
|
_t as al,
|
25101
25093
|
QL as am,
|
25102
25094
|
Qd as an,
|
25103
|
-
|
25095
|
+
Es as ao,
|
25104
25096
|
sx as ap,
|
25105
|
-
|
25097
|
+
wt as aq,
|
25106
25098
|
sa as ar,
|
25107
25099
|
mt as as,
|
25108
25100
|
Xs as at,
|
@@ -25302,7 +25294,7 @@ export {
|
|
25302
25294
|
$t as dt,
|
25303
25295
|
ve as du,
|
25304
25296
|
uu as dv,
|
25305
|
-
|
25297
|
+
vs as dw,
|
25306
25298
|
mu as dx,
|
25307
25299
|
Xa as dy,
|
25308
25300
|
qn as dz,
|
@@ -25401,7 +25393,7 @@ export {
|
|
25401
25393
|
aS as fP,
|
25402
25394
|
zo as fQ,
|
25403
25395
|
Pe as fR,
|
25404
|
-
|
25396
|
+
Ss as fS,
|
25405
25397
|
$i as fT,
|
25406
25398
|
Re as fU,
|
25407
25399
|
Wo as fV,
|
@@ -25548,11 +25540,11 @@ export {
|
|
25548
25540
|
xN as hf,
|
25549
25541
|
_n as hg,
|
25550
25542
|
KE as hh,
|
25551
|
-
|
25543
|
+
ds as hi,
|
25552
25544
|
lm as hj,
|
25553
25545
|
hS as hk,
|
25554
25546
|
OS as hl,
|
25555
|
-
|
25547
|
+
Ot as hm,
|
25556
25548
|
CS as hn,
|
25557
25549
|
Nl as ho,
|
25558
25550
|
TS as hp,
|
@@ -25647,7 +25639,7 @@ export {
|
|
25647
25639
|
jc as jD,
|
25648
25640
|
gE as jE,
|
25649
25641
|
$o as jF,
|
25650
|
-
|
25642
|
+
Is as jG,
|
25651
25643
|
EE as jH,
|
25652
25644
|
NE as jI,
|
25653
25645
|
Pa as jJ,
|
@@ -25753,7 +25745,7 @@ export {
|
|
25753
25745
|
Xu as kr,
|
25754
25746
|
nP as ks,
|
25755
25747
|
aP as kt,
|
25756
|
-
|
25748
|
+
Dt as ku,
|
25757
25749
|
Cn as kv,
|
25758
25750
|
Ob as kw,
|
25759
25751
|
Ju as kx,
|