@devtron-labs/devtron-fe-common-lib 1.9.2 → 1.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-Vc2RufTo.js → @code-editor-CW-wpduc.js} +564 -561
- package/dist/{@common-rjsf-Ds6mom5d.js → @common-rjsf-Bmfx5Fdj.js} +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -5
- package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
- package/dist/Shared/Components/InfoBlock/types.d.ts +3 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/{ic-info-filled.96f15070.svg → ic-info-filled.9277eb13.svg} +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
@@ -4,16 +4,16 @@ var Fi = (e) => {
|
|
4
4
|
};
|
5
5
|
var op = (e, s, n) => s in e ? rp(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var me = (e, s, n) => op(e, typeof s != "symbol" ? s + "" : s, n), Vi = (e, s, n) => s.has(e) || Fi("Cannot " + n);
|
7
|
-
var
|
8
|
-
import { j as t, i as fe, n as ip, Q as Fr, k as cp, D as Ua, d as Yl, h as lp, A as dp, R as up, s as mp, c as pp, S as Gi, a as _p, b as fp, y as hp, l as Ba, e as gp, f as xp, g as Ep, m as Np, o as Hi, p as Cp, q as Yi, r as bp, t as Tp, u as Sp, v as vp, T as Ki, w as Ko, x as Ap, z as Wi, B as Kl, C as Wl, E as Wo, F as Ip, V as yp, G as Rp, H as jp, I as zl, J as Op, K as Lp, L as ql, M as zi, N as wp, O as Dp, P as qi, U as Pp, W as kp, X as Fn, Y as Mp, Z as Xi, _ as $e, $ as Up, a0 as Bp, a1 as Ji, a2 as $p, a3 as Fp, a4 as Vr, a5 as Zi, a6 as Vp, a7 as Gp, a8 as Hp, a9 as Yp, aa as Kp, ab as Wp, ac as zp, ad as qp, ae as Xl, af as Jl, ag as Zl, ah as Xp, ai as Jp, aj as Zp, ak as Qp, al as
|
9
|
-
import Ce, { useState as R, cloneElement as $a, useRef as Y, useEffect as M, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as ze, createContext as kt, useContext as ds, Fragment as
|
7
|
+
var Ds = (e, s, n) => (Vi(e, s, "read from private field"), n ? n.call(e) : s.get(e)), ha = (e, s, n) => s.has(e) ? Fi("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), ga = (e, s, n, a) => (Vi(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
+
import { j as t, i as fe, n as ip, Q as Fr, k as cp, D as Ua, d as Yl, h as lp, A as dp, R as up, s as mp, c as pp, S as Gi, a as _p, b as fp, y as hp, l as Ba, e as gp, f as xp, g as Ep, m as Np, o as Hi, p as Cp, q as Yi, r as bp, t as Tp, u as Sp, v as vp, T as Ki, w as Ko, x as Ap, z as Wi, B as Kl, C as Wl, E as Wo, F as Ip, V as yp, G as Rp, H as jp, I as zl, J as Op, K as Lp, L as ql, M as zi, N as wp, O as Dp, P as qi, U as Pp, W as kp, X as Fn, Y as Mp, Z as Xi, _ as $e, $ as Up, a0 as Bp, a1 as Ji, a2 as $p, a3 as Fp, a4 as Vr, a5 as Zi, a6 as Vp, a7 as Gp, a8 as Hp, a9 as Yp, aa as Kp, ab as Wp, ac as zp, ad as qp, ae as Xl, af as Jl, ag as Zl, ah as Xp, ai as Jp, aj as Zp, ak as Qp, al as Ms } from "./@vendor-CSolG4o7.js";
|
9
|
+
import Ce, { useState as R, cloneElement as $a, useRef as Y, useEffect as M, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as ze, createContext as kt, useContext as ds, Fragment as Hs, memo as ht, useReducer as e_, createRef as gs } from "react";
|
10
10
|
import { ReactComponent as Qn } from "./assets/ic-warning.ecf7ff97.svg";
|
11
11
|
import { ReactComponent as t_ } from "./assets/ic-cpu.8be677ee.svg";
|
12
12
|
import { ReactComponent as s_ } from "./assets/ic-memory.c4159f96.svg";
|
13
13
|
import { ReactComponent as qo } from "./assets/ic-timer.b62145ec.svg";
|
14
14
|
import { ReactComponent as n_ } from "./assets/ic-spray-can.955302fc.svg";
|
15
15
|
import { ReactComponent as hr } from "./assets/ic-tag.1613fc59.svg";
|
16
|
-
import { Link as Os, useLocation as Ls, useHistory as
|
16
|
+
import { Link as Os, useLocation as Ls, useHistory as zs, NavLink as _t, useParams as Tt, useRouteMatch as Jt, generatePath as Fs, Switch as Ql, Route as Bs, Redirect as a_, Prompt as r_ } from "react-router-dom";
|
17
17
|
import { ReactComponent as o_ } from "./assets/ic-delete-interactive.304dd293.svg";
|
18
18
|
import * as i_ from "yaml";
|
19
19
|
import Dt, { parse as c_, YAMLParseError as l_ } from "yaml";
|
@@ -72,7 +72,7 @@ import { ReactComponent as O_ } from "./assets/ic-visibility-off.d91d3844.svg";
|
|
72
72
|
import { ReactComponent as L_ } from "./assets/ic-expand-all.d1d223f2.svg";
|
73
73
|
import { ReactComponent as w_ } from "./assets/ic-collapse-all.56740920.svg";
|
74
74
|
import { ReactComponent as cs } from "./assets/ic-caret-down.1666c029.svg";
|
75
|
-
import { ReactComponent as
|
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 pd } from "./assets/ic-arrow-out.6aea09d0.svg";
|
78
78
|
import { ReactComponent as _d } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
@@ -202,7 +202,7 @@ import { ReactComponent as bh } from "./assets/ic-helm.49cb43a3.svg";
|
|
202
202
|
import { ReactComponent as Th } from "./assets/ic-help-outline.4b30e33c.svg";
|
203
203
|
import { ReactComponent as Sh } from "./assets/ic-hibernate.988d2323.svg";
|
204
204
|
import { ReactComponent as vh } from "./assets/ic-in-progress.73f9ca1e.svg";
|
205
|
-
import { ReactComponent as Ah } from "./assets/ic-info-filled.
|
205
|
+
import { ReactComponent as Ah } from "./assets/ic-info-filled.9277eb13.svg";
|
206
206
|
import { ReactComponent as Ih } from "./assets/ic-info-outline.d29630b4.svg";
|
207
207
|
import { ReactComponent as yh } from "./assets/ic-job-color.bb826301.svg";
|
208
208
|
import { ReactComponent as Rh } from "./assets/ic-k8s-job.d3310821.svg";
|
@@ -514,7 +514,7 @@ const Ln = {
|
|
514
514
|
Security: "SECURITY",
|
515
515
|
Changes: "CHANGES"
|
516
516
|
};
|
517
|
-
var Bt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Bt || {}), Bd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Bd || {}), Sg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(vg || {}), Un = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Un || {}), Ag = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Ag || {}), Ig = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(Ig || {}), Eo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Eo || {}), yg = /* @__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))(yg || {}), $d = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))($d || {}), Rg = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Rg || {}), 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 || {}), jg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(jg || {}),
|
517
|
+
var Bt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Bt || {}), Bd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Bd || {}), Sg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(vg || {}), Un = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Un || {}), Ag = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Ag || {}), Ig = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(Ig || {}), Eo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Eo || {}), yg = /* @__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))(yg || {}), $d = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))($d || {}), Rg = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Rg || {}), 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 || {}), jg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(jg || {}), Vs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Vs || {}), Ns = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Ns || {}), Hn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Hn || {}), No = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(No || {}), Og = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(Og || {});
|
518
518
|
const ic = {
|
519
519
|
100: "Continue",
|
520
520
|
101: "Switching Protocols",
|
@@ -703,7 +703,7 @@ const qO = [
|
|
703
703
|
/* YAML */
|
704
704
|
}
|
705
705
|
];
|
706
|
-
var Vg = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(Vg || {}), Gg = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(Gg || {}), Hg = /* @__PURE__ */ ((e) => (e.CHART_GROUP = "chart-group", e.DIRECT = "apps", e.JOB = "jobs", e.DOCKER = "docker", e.GIT = "git", e.CLUSTER = "cluster", e.NOTIFICATION = "notification", e))(Hg || {}),
|
706
|
+
var Vg = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(Vg || {}), Gg = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(Gg || {}), Hg = /* @__PURE__ */ ((e) => (e.CHART_GROUP = "chart-group", e.DIRECT = "apps", e.JOB = "jobs", e.DOCKER = "docker", e.GIT = "git", e.CLUSTER = "cluster", e.NOTIFICATION = "notification", e))(Hg || {}), Ys = /* @__PURE__ */ ((e) => (e.STARTING = "Starting", e.RUNNING = "Running", e.PROGRESSING = "Progressing", e.WAITING_TO_START = "WaitingToStart", e.TIMED_OUT = "TimedOut", e.CANCELLED = "CANCELLED", e))(Ys || {}), Ct = /* @__PURE__ */ ((e) => (e.EXTERNAL_CI = "EXTERNAL-CI", e.CI = "CI", e.LINKED_CI = "LINKED-CI", e.JOB_CI = "JOB-CI", e.LINKED_CD = "LINKED_CD", e))(Ct || {});
|
707
707
|
const Yg = {
|
708
708
|
Auto: "AUTOMATIC",
|
709
709
|
Manual: "MANUAL"
|
@@ -1039,7 +1039,126 @@ const ZO = Object.values(
|
|
1039
1039
|
}, nL = -1, dc = "devtron-base-main-identifier", nx = "devtron.ai/", ax = "You have unsaved changes. Are you sure you want to leave?", aL = "Please don't wander off! Reloading or going back might disrupt the ongoing operation.", rL = {
|
1040
1040
|
DELETE_ENVIRONMENT_SUBTITLE: "Are you sure you want to delete this environment?",
|
1041
1041
|
DELETE_CLUSTER_SUBTITLES: "Are you sure you want to delete this cluster?"
|
1042
|
-
},
|
1042
|
+
}, rx = {
|
1043
|
+
Control: "Ctrl",
|
1044
|
+
Shift: "⇧",
|
1045
|
+
Meta: Ya ? "⌘" : "Win",
|
1046
|
+
Alt: Ya ? "⌥" : "Alt",
|
1047
|
+
F: "F",
|
1048
|
+
E: "E",
|
1049
|
+
R: "R",
|
1050
|
+
K: "K",
|
1051
|
+
Escape: "Esc",
|
1052
|
+
Enter: "↩"
|
1053
|
+
}, ox = ({ text: e, combo: s }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 px-8 py-4 flex-wrap", children: [
|
1054
|
+
/* @__PURE__ */ t.jsx("span", { className: "lh-18 fs-12 fw-4 text__white", children: e }),
|
1055
|
+
!!s?.length && /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__gap-4 dc__align-items-center flex-wrap", children: s.map((n) => /* @__PURE__ */ t.jsx("span", { className: "shortcut-keys__chip dc__capitalize lh-16 fs-11 fw-5 flex", children: rx[n] }, n)) })
|
1056
|
+
] }), ie = ({
|
1057
|
+
shortcutKeyCombo: e,
|
1058
|
+
alwaysShowTippyOnHover: s,
|
1059
|
+
// NOTE: if alwaysShowTippyOnHover or shortcutKeyCombo are being passed by user don't apply truncation logic at all
|
1060
|
+
showOnTruncate: n = s === void 0 && e === void 0,
|
1061
|
+
wordBreak: a = !0,
|
1062
|
+
children: r,
|
1063
|
+
...o
|
1064
|
+
}) => {
|
1065
|
+
const [i, c] = R(!1), l = (m) => {
|
1066
|
+
const { currentTarget: p } = m, _ = p.scrollWidth > p.clientWidth || p.scrollHeight > p.clientHeight;
|
1067
|
+
_ && !i ? c(!0) : !_ && i && c(!1);
|
1068
|
+
};
|
1069
|
+
return n && i || !!e && (s === void 0 || s) || s ? /* @__PURE__ */ t.jsx(
|
1070
|
+
fe,
|
1071
|
+
{
|
1072
|
+
arrow: !1,
|
1073
|
+
placement: "top",
|
1074
|
+
maxWidth: "",
|
1075
|
+
...o,
|
1076
|
+
...e ? { content: /* @__PURE__ */ t.jsx(ox, { ...e }) } : {},
|
1077
|
+
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
1078
|
+
children: $a(r, { ...r.props, onMouseEnter: l })
|
1079
|
+
}
|
1080
|
+
) : $a(r, { ...r.props, onMouseEnter: l });
|
1081
|
+
}, oL = {
|
1082
|
+
INVALID_INPUT: "Valid input is required for all mandatory fields."
|
1083
|
+
}, ix = (e) => (s) => /* @__PURE__ */ t.jsx(ie, { ...e, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: s }) }), cx = ({ name: e, iconMap: s, size: n = 16, tooltipProps: a, color: r, strokeWidth: o }) => {
|
1084
|
+
const i = s[e];
|
1085
|
+
if (!i)
|
1086
|
+
throw new Error(`Icon with name "${e}" does not exist.`);
|
1087
|
+
return /* @__PURE__ */ t.jsx(mt, { condition: !!a?.content, wrap: ix(a), children: /* @__PURE__ */ t.jsx(
|
1088
|
+
i,
|
1089
|
+
{
|
1090
|
+
className: `icon-dim-${n} ${r ? "icon-component" : ""} dc__no-shrink`,
|
1091
|
+
style: r ? { "--iconColor": `var(--${r})` } : {},
|
1092
|
+
strokeWidth: o
|
1093
|
+
}
|
1094
|
+
) });
|
1095
|
+
}, lx = {
|
1096
|
+
"ic-aborted": Hf,
|
1097
|
+
"ic-app-group": Yf,
|
1098
|
+
"ic-arrow-right": Kf,
|
1099
|
+
"ic-azure": Wf,
|
1100
|
+
"ic-bitbucket": jd,
|
1101
|
+
"ic-browser": zf,
|
1102
|
+
"ic-build-color": qf,
|
1103
|
+
"ic-cancelled": Xf,
|
1104
|
+
"ic-cd": Jf,
|
1105
|
+
"ic-ci-linked": Zf,
|
1106
|
+
"ic-ci-webhook": Qf,
|
1107
|
+
"ic-circle-loader": eh,
|
1108
|
+
"ic-clock": th,
|
1109
|
+
"ic-close-small": sh,
|
1110
|
+
"ic-code": nh,
|
1111
|
+
"ic-container": ah,
|
1112
|
+
"ic-crown": rh,
|
1113
|
+
"ic-cube": oh,
|
1114
|
+
"ic-dockerhub": ih,
|
1115
|
+
"ic-ecr": ch,
|
1116
|
+
"ic-env": lh,
|
1117
|
+
"ic-error": dh,
|
1118
|
+
"ic-failure": uh,
|
1119
|
+
"ic-gear": mh,
|
1120
|
+
"ic-git": ph,
|
1121
|
+
"ic-github": _h,
|
1122
|
+
"ic-gitlab": Od,
|
1123
|
+
"ic-google-artifact-registry": fh,
|
1124
|
+
"ic-google-container-registry": hh,
|
1125
|
+
"ic-google": gh,
|
1126
|
+
"ic-grid-view": xh,
|
1127
|
+
"ic-heart-green": Eh,
|
1128
|
+
"ic-heart-red-animated": Nh,
|
1129
|
+
"ic-heart-red": Ch,
|
1130
|
+
"ic-helm": bh,
|
1131
|
+
"ic-help-outline": Th,
|
1132
|
+
"ic-hibernate": Sh,
|
1133
|
+
"ic-in-progress": vh,
|
1134
|
+
"ic-info-filled": Ah,
|
1135
|
+
"ic-info-outline": Ih,
|
1136
|
+
"ic-job-color": yh,
|
1137
|
+
"ic-k8s-job": Rh,
|
1138
|
+
"ic-ldap": jh,
|
1139
|
+
"ic-login-devtron-logo": Oh,
|
1140
|
+
"ic-logout": Lh,
|
1141
|
+
"ic-medium-paintbucket": rd,
|
1142
|
+
"ic-microsoft": wh,
|
1143
|
+
"ic-missing": Dh,
|
1144
|
+
"ic-monitoring": Ph,
|
1145
|
+
"ic-node-script": kh,
|
1146
|
+
"ic-oidc": Mh,
|
1147
|
+
"ic-open-box": Uh,
|
1148
|
+
"ic-open-in-new": Rd,
|
1149
|
+
"ic-openshift": Bh,
|
1150
|
+
"ic-out-of-sync": $h,
|
1151
|
+
"ic-paper-plane-color": Fh,
|
1152
|
+
"ic-quay": Vh,
|
1153
|
+
"ic-shield-check": Gh,
|
1154
|
+
"ic-stack": Hh,
|
1155
|
+
"ic-success": Yh,
|
1156
|
+
"ic-suspended": Kh,
|
1157
|
+
"ic-timeout-two-dash": Wh,
|
1158
|
+
"ic-unknown": zh,
|
1159
|
+
"ic-user-key": qh,
|
1160
|
+
"ic-warning": Xh
|
1161
|
+
}, qe = (e) => /* @__PURE__ */ t.jsx(cx, { ...e, iconMap: lx }), Ue = ({ pageLoader: e, size: s, theme: n, styles: a, fillColor: r }) => {
|
1043
1162
|
const o = s ? `${s}px` : e ? "48px" : "20px";
|
1044
1163
|
return /* @__PURE__ */ t.jsx("div", { className: `loader ${n || "default"}-background`, style: a, "data-testid": "progressing", children: /* @__PURE__ */ t.jsx("div", { style: { width: o, height: o }, children: /* @__PURE__ */ t.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: "loader__svg", children: /* @__PURE__ */ t.jsxs("g", { fill: "none", fillRule: "evenodd", strokeLinecap: "round", children: [
|
1045
1164
|
/* @__PURE__ */ t.jsx(
|
@@ -1063,7 +1182,7 @@ const ZO = Object.values(
|
|
1063
1182
|
}
|
1064
1183
|
)
|
1065
1184
|
] }) }) }) });
|
1066
|
-
},
|
1185
|
+
}, iL = ({
|
1067
1186
|
loadingText: e,
|
1068
1187
|
size: s = 24,
|
1069
1188
|
fullHeight: n = !1,
|
@@ -1077,62 +1196,21 @@ const ZO = Object.values(
|
|
1077
1196
|
style: a,
|
1078
1197
|
"data-testid": "details-progressing",
|
1079
1198
|
children: [
|
1080
|
-
/* @__PURE__ */ t.jsx("span", { style: { width: `${s}px`, height: `${s}px` }, children: /* @__PURE__ */ t.jsx(
|
1199
|
+
/* @__PURE__ */ t.jsx("span", { style: { width: `${s}px`, height: `${s}px` }, children: /* @__PURE__ */ t.jsx(Ue, { size: s, fillColor: r }) }),
|
1081
1200
|
e && /* @__PURE__ */ t.jsx("span", { className: "mt-10", children: e }),
|
1082
1201
|
o
|
1083
1202
|
]
|
1084
1203
|
}
|
1085
|
-
)
|
1086
|
-
Control: "Ctrl",
|
1087
|
-
Shift: "⇧",
|
1088
|
-
Meta: Ya ? "⌘" : "Win",
|
1089
|
-
Alt: Ya ? "⌥" : "Alt",
|
1090
|
-
F: "F",
|
1091
|
-
E: "E",
|
1092
|
-
R: "R",
|
1093
|
-
K: "K",
|
1094
|
-
Escape: "Esc",
|
1095
|
-
Enter: "↩"
|
1096
|
-
}, ox = ({ text: e, combo: s }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 px-8 py-4 flex-wrap", children: [
|
1097
|
-
/* @__PURE__ */ t.jsx("span", { className: "lh-18 fs-12 fw-4 text__white", children: e }),
|
1098
|
-
!!s?.length && /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__gap-4 dc__align-items-center flex-wrap", children: s.map((n) => /* @__PURE__ */ t.jsx("span", { className: "shortcut-keys__chip dc__capitalize lh-16 fs-11 fw-5 flex", children: rx[n] }, n)) })
|
1099
|
-
] }), ie = ({
|
1100
|
-
shortcutKeyCombo: e,
|
1101
|
-
alwaysShowTippyOnHover: s,
|
1102
|
-
// NOTE: if alwaysShowTippyOnHover or shortcutKeyCombo are being passed by user don't apply truncation logic at all
|
1103
|
-
showOnTruncate: n = s === void 0 && e === void 0,
|
1104
|
-
wordBreak: a = !0,
|
1105
|
-
children: r,
|
1106
|
-
...o
|
1107
|
-
}) => {
|
1108
|
-
const [i, c] = R(!1), l = (m) => {
|
1109
|
-
const { currentTarget: p } = m, _ = p.scrollWidth > p.clientWidth || p.scrollHeight > p.clientHeight;
|
1110
|
-
_ && !i ? c(!0) : !_ && i && c(!1);
|
1111
|
-
};
|
1112
|
-
return n && i || !!e && (s === void 0 || s) || s ? /* @__PURE__ */ t.jsx(
|
1113
|
-
fe,
|
1114
|
-
{
|
1115
|
-
arrow: !1,
|
1116
|
-
placement: "top",
|
1117
|
-
maxWidth: "",
|
1118
|
-
...o,
|
1119
|
-
...e ? { content: /* @__PURE__ */ t.jsx(ox, { ...e }) } : {},
|
1120
|
-
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
1121
|
-
children: $a(r, { ...r.props, onMouseEnter: l })
|
1122
|
-
}
|
1123
|
-
) : $a(r, { ...r.props, onMouseEnter: l });
|
1124
|
-
}, iL = {
|
1125
|
-
INVALID_INPUT: "Valid input is required for all mandatory fields."
|
1126
|
-
};
|
1204
|
+
);
|
1127
1205
|
var he = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(he || {}), be = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e))(be || {}), Kn = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e))(Kn || {});
|
1128
|
-
const
|
1206
|
+
const dx = {
|
1129
1207
|
[P.xxs]: `${xs[P.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1130
1208
|
[P.xs]: `${xs[P.xs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1131
1209
|
[P.small]: `${xs[P.small]} px-9 fw-6 dc__gap-8 mw-48`,
|
1132
1210
|
[P.medium]: `${xs[P.medium]} px-11 fw-6 dc__gap-8 mw-48`,
|
1133
1211
|
[P.large]: `${xs[P.large]} px-13 fw-6 dc__gap-8 mw-64`,
|
1134
1212
|
[P.xl]: `${xs[P.xl]} px-15 fw-6 dc__gap-12 mw-64`
|
1135
|
-
},
|
1213
|
+
}, ux = {
|
1136
1214
|
[P.xxs]: "p-1",
|
1137
1215
|
[P.xs]: "p-3",
|
1138
1216
|
[P.small]: "p-5",
|
@@ -1148,14 +1226,14 @@ const Wd = {
|
|
1148
1226
|
[P.medium]: 16,
|
1149
1227
|
[P.large]: 20,
|
1150
1228
|
[P.xl]: 24
|
1151
|
-
},
|
1229
|
+
}, mx = ({ size: e, icon: s }) => `icon-dim-${s ? Wd[e] : Yd[e]}`, px = ({ size: e, icon: s }) => s ? Wd[e] : Yd[e], _x = ({
|
1152
1230
|
size: e,
|
1153
1231
|
variant: s,
|
1154
1232
|
style: n,
|
1155
1233
|
isLoading: a,
|
1156
1234
|
icon: r,
|
1157
1235
|
isAutoTriggerActive: o
|
1158
|
-
}) => `button button__${s}--${n} ${r ?
|
1236
|
+
}) => `button button__${s}--${n} ${r ? ux[e] : dx[e]} ${o ? "button--auto-click" : ""} ${a ? "button--loading" : ""}`, fx = ({
|
1159
1237
|
component: e = Kn.button,
|
1160
1238
|
linkProps: s,
|
1161
1239
|
buttonProps: n,
|
@@ -1200,7 +1278,7 @@ const Wd = {
|
|
1200
1278
|
triggerAutoClickTimestamp: g,
|
1201
1279
|
...h
|
1202
1280
|
}) => {
|
1203
|
-
const [f, N] = R(!1), C = Y(), A = Y(null), S = c || l, y = `dc__no-shrink flex dc__fill-available-space ${
|
1281
|
+
const [f, N] = R(!1), C = Y(), A = Y(null), S = c || l, y = `dc__no-shrink flex dc__fill-available-space ${mx({
|
1204
1282
|
size: a,
|
1205
1283
|
icon: m
|
1206
1284
|
})}`;
|
@@ -1222,11 +1300,11 @@ const Wd = {
|
|
1222
1300
|
...u
|
1223
1301
|
};
|
1224
1302
|
return /* @__PURE__ */ t.jsx(ie, { ...v(), children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs(
|
1225
|
-
|
1303
|
+
fx,
|
1226
1304
|
{
|
1227
1305
|
...h,
|
1228
1306
|
disabled: S,
|
1229
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${E ? "dc__opacity-hover--child" : ""} ${
|
1307
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${E ? "dc__opacity-hover--child" : ""} ${_x({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${S ? "dc__disabled" : ""} ${x ? "w-100" : ""}`,
|
1230
1308
|
"data-testid": e,
|
1231
1309
|
"aria-label": p || (l ? s : void 0),
|
1232
1310
|
elementRef: A,
|
@@ -1238,9 +1316,9 @@ const Wd = {
|
|
1238
1316
|
i && /* @__PURE__ */ t.jsx("span", { className: y, children: i })
|
1239
1317
|
] }),
|
1240
1318
|
l && /* @__PURE__ */ t.jsx(
|
1241
|
-
|
1319
|
+
Ue,
|
1242
1320
|
{
|
1243
|
-
size:
|
1321
|
+
size: px({
|
1244
1322
|
size: a,
|
1245
1323
|
icon: m
|
1246
1324
|
})
|
@@ -1260,7 +1338,7 @@ const Wd = {
|
|
1260
1338
|
useInfoIcon: c = !1,
|
1261
1339
|
progressingProps: l
|
1262
1340
|
}) => {
|
1263
|
-
const d = () => l ? /* @__PURE__ */ t.jsx(
|
1341
|
+
const d = () => l ? /* @__PURE__ */ t.jsx(qe, { name: "ic-circle-loader", ...l }) : c ? /* @__PURE__ */ t.jsx(Xo, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(us, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
|
1264
1342
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${i || ""}`, children: [
|
1265
1343
|
d(),
|
1266
1344
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
|
@@ -1295,13 +1373,13 @@ const Wd = {
|
|
1295
1373
|
genericSectionErrorProps: c,
|
1296
1374
|
errorScreenManagerProps: l,
|
1297
1375
|
children: d
|
1298
|
-
}) => r ? /* @__PURE__ */ t.jsx(UI, {}) : e ? n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: n }) : /* @__PURE__ */ t.jsx(
|
1299
|
-
|
1376
|
+
}) => r ? /* @__PURE__ */ t.jsx(UI, {}) : e ? n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: n }) : /* @__PURE__ */ t.jsx(Ue, { ...s }) : a ? c ? /* @__PURE__ */ t.jsx(Js, { ...c }) : l ? /* @__PURE__ */ t.jsx(Lr, { ...l }) : a?.code === 404 ? /* @__PURE__ */ t.jsx(
|
1377
|
+
Qe,
|
1300
1378
|
{
|
1301
1379
|
title: o?.title ?? uc.title,
|
1302
1380
|
subTitle: o?.subTitle ?? uc.subTitle
|
1303
1381
|
}
|
1304
|
-
) : /* @__PURE__ */ t.jsx(Zn, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }),
|
1382
|
+
) : /* @__PURE__ */ t.jsx(Zn, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }), hx = (e = {}) => ({
|
1305
1383
|
container: (s, n) => ({
|
1306
1384
|
...s,
|
1307
1385
|
...n.isDisabled && {
|
@@ -1430,9 +1508,9 @@ const Wd = {
|
|
1430
1508
|
paddingLeft: 0
|
1431
1509
|
}),
|
1432
1510
|
...e
|
1433
|
-
}),
|
1511
|
+
}), gx = (e, s) => e ? "var(--B100)" : s ? "var(--bg-secondary)" : "var(--bg-primary)", xx = (e = {}) => (s, n) => ({
|
1434
1512
|
...s,
|
1435
|
-
backgroundColor:
|
1513
|
+
backgroundColor: gx(n.isSelected, n.isFocused),
|
1436
1514
|
color: n.isSelected ? "var(--B500)" : "var(--N900)",
|
1437
1515
|
textOverflow: "ellipsis",
|
1438
1516
|
fontWeight: "500",
|
@@ -1442,10 +1520,10 @@ const Wd = {
|
|
1442
1520
|
cursor: "pointer",
|
1443
1521
|
fontSize: "13px",
|
1444
1522
|
...e
|
1445
|
-
}),
|
1523
|
+
}), Ex = () => /* @__PURE__ */ t.jsx(Ue, {}), Nx = (e) => {
|
1446
1524
|
const { data: s } = e;
|
1447
1525
|
return s.label ? /* @__PURE__ */ t.jsx(Ve.GroupHeading, { ...e, children: /* @__PURE__ */ t.jsx("div", { className: "flex dc__no-text-transform flex-justify dc__truncate-text h-100", children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate-text", children: s.label }) }) }) : null;
|
1448
|
-
},
|
1526
|
+
}, Cx = hx(), cL = ({
|
1449
1527
|
handleApplyFilter: e,
|
1450
1528
|
...s
|
1451
1529
|
}) => {
|
@@ -1580,7 +1658,7 @@ const Wd = {
|
|
1580
1658
|
...e,
|
1581
1659
|
backgroundColor: "var(--bg-primary)"
|
1582
1660
|
})
|
1583
|
-
},
|
1661
|
+
}, bx = ({
|
1584
1662
|
locator: e,
|
1585
1663
|
label: s,
|
1586
1664
|
isSelected: n,
|
@@ -1607,7 +1685,7 @@ const Wd = {
|
|
1607
1685
|
}
|
1608
1686
|
);
|
1609
1687
|
};
|
1610
|
-
var
|
1688
|
+
var Tx = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(Tx || {}), wn = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))(wn || {}), Sx = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(Sx || {}), Le = /* @__PURE__ */ ((e) => (e.Internal = "", e.KubernetesConfigMap = "KubernetesConfigMap", e.KubernetesSecret = "KubernetesSecret", e.AWSSecretsManager = "AWSSecretsManager", e.AWSSystemManager = "AWSSystemManager", e.HashiCorpVault = "HashiCorpVault", e.ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager", e.ESO_AWSSecretsManager = "ESO_AWSSecretsManager", e.ESO_AzureSecretsManager = "ESO_AzureSecretsManager", e.ESO_HashiCorpVault = "ESO_HashiCorpVault", e))(Le || {}), Vt = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(Vt || {}), vo = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))(vo || {}), ot = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(ot || {}), Is = /* @__PURE__ */ ((e) => (e[e.ConfigMap = 1] = "ConfigMap", e[e.Secret = 2] = "Secret", e))(Is || {}), Sr = /* @__PURE__ */ ((e) => (e.BASE = "", e.INHERITED = "INHERITING", e.OVERRIDDEN = "OVERRIDDEN", e.ENV = "ENV", e.UNPUBLISHED = "UNPUBLISHED", e))(Sr || {}), qd = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(qd || {});
|
1611
1689
|
const di = (e) => {
|
1612
1690
|
const s = Y(null), [n, a] = R(!1), r = e.theme === ta.white, o = (N) => {
|
1613
1691
|
N.keyCode === 27 && c(N);
|
@@ -1771,7 +1849,7 @@ const ys = {
|
|
1771
1849
|
MIN: 0,
|
1772
1850
|
DECIMAL_PLACES: 2,
|
1773
1851
|
MAX_LABEL_VALUE_LENGTH: 63
|
1774
|
-
}, vr = "global",
|
1852
|
+
}, vr = "global", Ze = {
|
1775
1853
|
HEADING: "Build Infra Configuration",
|
1776
1854
|
EDIT_SUBMIT: "Save changes",
|
1777
1855
|
SAVE_SUBMIT: "Save",
|
@@ -1803,7 +1881,7 @@ const ys = {
|
|
1803
1881
|
alias: {
|
1804
1882
|
"global-config": null,
|
1805
1883
|
"build-infra": {
|
1806
|
-
component: /* @__PURE__ */ t.jsx("h2", { className: "m-0 cn-9 fs-16 fw-6 lh-32", children:
|
1884
|
+
component: /* @__PURE__ */ t.jsx("h2", { className: "m-0 cn-9 fs-16 fw-6 lh-32", children: Ze.HEADING }),
|
1807
1885
|
linked: !1
|
1808
1886
|
}
|
1809
1887
|
}
|
@@ -1879,10 +1957,10 @@ const ys = {
|
|
1879
1957
|
...$t,
|
1880
1958
|
...Wn
|
1881
1959
|
}).map((e) => [e, null])
|
1882
|
-
),
|
1960
|
+
), vx = [$t.NAME], mc = {
|
1883
1961
|
SUBMIT_BUTTON: "build-infra-submit-button",
|
1884
1962
|
CANCEL_BUTTON: "build-infra-cancel-button"
|
1885
|
-
}, rs = "runner",
|
1963
|
+
}, rs = "runner", Ax = Zd.ALPHA1, pc = {
|
1886
1964
|
[U.BUILD_TIMEOUT]: !0,
|
1887
1965
|
[U.CPU_LIMIT]: !0,
|
1888
1966
|
[U.CPU_REQUEST]: !0,
|
@@ -1904,7 +1982,7 @@ const ys = {
|
|
1904
1982
|
[Te.TOLERANCE]: [U.TOLERANCE],
|
1905
1983
|
[Te.CONFIG_MAP]: [U.CONFIG_MAP],
|
1906
1984
|
[Te.SECRET]: [U.SECRET]
|
1907
|
-
},
|
1985
|
+
}, Ix = {
|
1908
1986
|
[U.CPU_LIMIT]: {
|
1909
1987
|
keyToPersist: "request",
|
1910
1988
|
keyToPersistConfigType: U.CPU_REQUEST
|
@@ -1921,7 +1999,7 @@ const ys = {
|
|
1921
1999
|
keyToPersist: "limit",
|
1922
2000
|
keyToPersistConfigType: U.MEMORY_LIMIT
|
1923
2001
|
}
|
1924
|
-
},
|
2002
|
+
}, yx = Jd.NO_SCHEDULE, Rx = Ts.EQUALS, jx = {
|
1925
2003
|
[U.BUILD_TIMEOUT]: !0,
|
1926
2004
|
[U.CONFIG_MAP]: !0,
|
1927
2005
|
[U.SECRET]: !0
|
@@ -1931,13 +2009,13 @@ const ys = {
|
|
1931
2009
|
}, eu = {
|
1932
2010
|
[U.CONFIG_MAP]: Is.ConfigMap,
|
1933
2011
|
[U.SECRET]: Is.Secret
|
1934
|
-
},
|
2012
|
+
}, Xe = {
|
1935
2013
|
[Is.ConfigMap]: U.CONFIG_MAP,
|
1936
2014
|
[Is.Secret]: U.SECRET
|
1937
2015
|
}, _L = {
|
1938
2016
|
[Is.ConfigMap]: Te.CONFIG_MAP,
|
1939
2017
|
[Is.Secret]: Te.SECRET
|
1940
|
-
},
|
2018
|
+
}, Ox = !0, fL = {
|
1941
2019
|
activate_cm: !0,
|
1942
2020
|
activate_cs: !0,
|
1943
2021
|
de_activate_cm: !0,
|
@@ -1956,9 +2034,9 @@ const ys = {
|
|
1956
2034
|
/* @__PURE__ */ t.jsx(
|
1957
2035
|
En,
|
1958
2036
|
{
|
1959
|
-
infoText: a ??
|
2037
|
+
infoText: a ?? Ze.EDIT_DEFAULT_TOOLTIP,
|
1960
2038
|
additionalContent: r,
|
1961
|
-
heading: i ||
|
2039
|
+
heading: i || Ze.HEADING,
|
1962
2040
|
documentationLink: pn.GLOBAL_CONFIG_BUILD_INFRA,
|
1963
2041
|
documentationLinkText: "View Documentation",
|
1964
2042
|
iconClassName: "icon-dim-20 fcn-6"
|
@@ -1967,7 +2045,7 @@ const ys = {
|
|
1967
2045
|
] }) }),
|
1968
2046
|
n
|
1969
2047
|
] }), gL = ({ disabled: e, handleCancel: s, editProfile: n, loading: a }) => {
|
1970
|
-
const r = e ?
|
2048
|
+
const r = e ? Ze.SUBMIT_BUTTON_TIPPY.INVALID_INPUT : Ze.SUBMIT_BUTTON_TIPPY.REQUEST_IN_PROGRESS, o = () => n ? Ze.EDIT_SUBMIT : Ze.SAVE_SUBMIT, i = (c) => /* @__PURE__ */ t.jsx(fe, { content: r, placement: "top", className: "default-tt", arrow: !1, children: c });
|
1971
2049
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex pl pr pb pt h-64 dc__gap-12 dc__border-top dc__content-start", children: [
|
1972
2050
|
/* @__PURE__ */ t.jsx(mt, { condition: e || a, wrap: i, children: /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__align-items-center", children: /* @__PURE__ */ t.jsx(
|
1973
2051
|
"button",
|
@@ -1976,7 +2054,7 @@ const ys = {
|
|
1976
2054
|
className: "cta submit h-32 flex",
|
1977
2055
|
disabled: e || a,
|
1978
2056
|
"data-testid": mc.SUBMIT_BUTTON,
|
1979
|
-
children: a ? /* @__PURE__ */ t.jsx(
|
2057
|
+
children: a ? /* @__PURE__ */ t.jsx(Ue, { size: 16 }) : o()
|
1980
2058
|
}
|
1981
2059
|
) }) }),
|
1982
2060
|
s && /* @__PURE__ */ t.jsx(
|
@@ -1987,7 +2065,7 @@ const ys = {
|
|
1987
2065
|
disabled: a,
|
1988
2066
|
"data-testid": mc.CANCEL_BUTTON,
|
1989
2067
|
onClick: s,
|
1990
|
-
children:
|
2068
|
+
children: Ze.EDIT_CANCEL
|
1991
2069
|
}
|
1992
2070
|
)
|
1993
2071
|
] });
|
@@ -2001,7 +2079,7 @@ const hc = {
|
|
2001
2079
|
[P.small]: { width: "12px", height: "12px" },
|
2002
2080
|
[P.medium]: { width: "16px", height: "16px" },
|
2003
2081
|
[P.large]: { width: "16px", height: "16px" }
|
2004
|
-
},
|
2082
|
+
}, Lx = {
|
2005
2083
|
[P.small]: "auto",
|
2006
2084
|
[P.medium]: "auto",
|
2007
2085
|
[P.large]: "36px"
|
@@ -2046,7 +2124,7 @@ const hc = {
|
|
2046
2124
|
default:
|
2047
2125
|
return null;
|
2048
2126
|
}
|
2049
|
-
},
|
2127
|
+
}, wx = (e) => e.isSelected && !e.selectProps.isMulti ? "var(--B100)" : e.isFocused ? "var(--bg-hover)" : "var(--transparent)", Dx = ({
|
2050
2128
|
error: e,
|
2051
2129
|
size: s,
|
2052
2130
|
menuSize: n,
|
@@ -2082,7 +2160,7 @@ const hc = {
|
|
2082
2160
|
}),
|
2083
2161
|
control: (c, l) => ({
|
2084
2162
|
...c,
|
2085
|
-
minHeight:
|
2163
|
+
minHeight: Lx[s],
|
2086
2164
|
minWidth: "56px",
|
2087
2165
|
boxShadow: "none",
|
2088
2166
|
backgroundColor: "var(--bg-secondary)",
|
@@ -2107,7 +2185,7 @@ const hc = {
|
|
2107
2185
|
option: (c, l) => ({
|
2108
2186
|
...c,
|
2109
2187
|
color: "var(--N900)",
|
2110
|
-
backgroundColor:
|
2188
|
+
backgroundColor: wx(l),
|
2111
2189
|
padding: "6px 8px",
|
2112
2190
|
cursor: "pointer",
|
2113
2191
|
fontSize: "13px",
|
@@ -2268,13 +2346,13 @@ const hc = {
|
|
2268
2346
|
lineHeight: "20px",
|
2269
2347
|
...Ec(a)?.singleValue(c, l) || {}
|
2270
2348
|
})
|
2271
|
-
}),
|
2349
|
+
}), Px = (e, s, n) => {
|
2272
2350
|
const a = s.reduce((c, l) => (c[n(l)] = !0, c), {}), r = e.map((c) => n(c));
|
2273
2351
|
return r.every((c) => a[c]) ? ut.CHECKED : r.some((c) => a[c]) ? ut.INTERMEDIATE : null;
|
2274
2352
|
}, _n = (e, s, n = { label: "", value: "" }, a = null) => Array.isArray(e) ? e.flatMap(
|
2275
2353
|
(o) => "options" in o ? o.options : [o]
|
2276
2354
|
).find((o) => (a ? a(o) : o.value) === s) ?? n : n;
|
2277
|
-
class
|
2355
|
+
class ws extends fr {
|
2278
2356
|
render() {
|
2279
2357
|
const s = `${this.props.rootClassName ? this.props.rootClassName : ""}`;
|
2280
2358
|
return /* @__PURE__ */ t.jsxs("label", { className: `dc__position-rel flex left cursor ${s}`, onClick: this.props?.onClick, children: [
|
@@ -2298,17 +2376,17 @@ class Ds extends fr {
|
|
2298
2376
|
] });
|
2299
2377
|
}
|
2300
2378
|
}
|
2301
|
-
const
|
2379
|
+
const kx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyCombo" in e ? e : {
|
2302
2380
|
// TODO: using some typing somersaults here, clean it up later
|
2303
2381
|
alwaysShowTippyOnHover: !!e?.content,
|
2304
2382
|
...e
|
2305
2383
|
} : {
|
2306
2384
|
alwaysShowTippyOnHover: !1,
|
2307
2385
|
content: null
|
2308
|
-
},
|
2386
|
+
}, Mx = (e) => {
|
2309
2387
|
const { isDisabled: s } = e;
|
2310
2388
|
return /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(cs, { className: s ? "scn-3" : "scn-6" }) });
|
2311
|
-
},
|
2389
|
+
}, Ux = (e) => /* @__PURE__ */ t.jsx(Ve.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(at, { className: "icon-use-fill-n6" }) }), Bx = (e) => {
|
2312
2390
|
const {
|
2313
2391
|
children: s,
|
2314
2392
|
getValue: n,
|
@@ -2319,13 +2397,13 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2319
2397
|
c && /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink icon-dim-20 flex dc__fill-available-space", children: c }),
|
2320
2398
|
s
|
2321
2399
|
] });
|
2322
|
-
},
|
2400
|
+
}, $x = (e) => {
|
2323
2401
|
const {
|
2324
2402
|
isHidden: s,
|
2325
2403
|
selectProps: { shouldRenderTextArea: n }
|
2326
2404
|
} = e;
|
2327
2405
|
return /* @__PURE__ */ t.jsx(Ve.Input, { ...e, isTextArea: n, isHidden: !n && s });
|
2328
|
-
},
|
2406
|
+
}, Fx = ({
|
2329
2407
|
showSelectedOptionsCount: e,
|
2330
2408
|
customSelectedOptionsCount: s,
|
2331
2409
|
...n
|
@@ -2345,7 +2423,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2345
2423
|
] }) : c }) }),
|
2346
2424
|
e && l > 0 && /* @__PURE__ */ t.jsx("div", { className: "bcb-50 dc__border eb-2 dc__border-radius-4-imp pl-5 pr-5 cb-5 fs-12 fw-6 lh-18 dc__truncate dc__no-shrink", children: l })
|
2347
2425
|
] });
|
2348
|
-
},
|
2426
|
+
}, Vx = () => /* @__PURE__ */ t.jsx(Ue, {}), Gx = ({
|
2349
2427
|
disableDescriptionEllipsis: e,
|
2350
2428
|
...s
|
2351
2429
|
}) => {
|
@@ -2356,12 +2434,12 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2356
2434
|
selectOption: o,
|
2357
2435
|
isDisabled: i,
|
2358
2436
|
isSelected: c
|
2359
|
-
} = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, x = (
|
2360
|
-
|
2361
|
-
};
|
2362
|
-
return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ie, { ...
|
2437
|
+
} = s, { description: l, startIcon: d, endIcon: u, tooltipProps: m } = a ?? {}, p = !!l, _ = "__isNew__" in a && a.__isNew__, x = (g) => {
|
2438
|
+
g.preventDefault(), g.stopPropagation(), o(a);
|
2439
|
+
}, E = "dc__no-shrink icon-dim-16 flex dc__fill-available-space";
|
2440
|
+
return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ie, { ...kx(m), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2363
2441
|
r && !_ && /* @__PURE__ */ t.jsx(
|
2364
|
-
|
2442
|
+
ws,
|
2365
2443
|
{
|
2366
2444
|
onChange: nt,
|
2367
2445
|
onClick: x,
|
@@ -2372,7 +2450,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2372
2450
|
}
|
2373
2451
|
),
|
2374
2452
|
/* @__PURE__ */ t.jsxs("div", { className: `flex left w-100 ${p ? "top" : ""} dc__gap-8`, children: [
|
2375
|
-
d && /* @__PURE__ */ t.jsx("div", { className:
|
2453
|
+
d && /* @__PURE__ */ t.jsx("div", { className: `${E} mt-2`, children: d }),
|
2376
2454
|
/* @__PURE__ */ t.jsxs("div", { className: "flex-grow-1", children: [
|
2377
2455
|
/* @__PURE__ */ t.jsx(ie, { content: n, placement: "right", children: /* @__PURE__ */ t.jsx(
|
2378
2456
|
"h4",
|
@@ -2389,10 +2467,10 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2389
2467
|
}
|
2390
2468
|
) : /* @__PURE__ */ t.jsx("div", { className: "fs-12 lh-18", children: l }))
|
2391
2469
|
] }),
|
2392
|
-
u && /* @__PURE__ */ t.jsx("div", { className:
|
2470
|
+
u && /* @__PURE__ */ t.jsx("div", { className: E, children: u })
|
2393
2471
|
] })
|
2394
2472
|
] }) }) });
|
2395
|
-
},
|
2473
|
+
}, Hx = (e) => {
|
2396
2474
|
const {
|
2397
2475
|
children: s,
|
2398
2476
|
selectProps: {
|
@@ -2410,7 +2488,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2410
2488
|
] }) })),
|
2411
2489
|
!r && a && /* @__PURE__ */ t.jsx("div", { className: "dc__position-sticky dc__bottom-0 dc__bottom-radius-4 bg__menu--primary dc__zi-2", children: a() })
|
2412
2490
|
] });
|
2413
|
-
},
|
2491
|
+
}, Yx = ({
|
2414
2492
|
getIsOptionValid: e,
|
2415
2493
|
...s
|
2416
2494
|
}) => {
|
@@ -2425,7 +2503,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2425
2503
|
),
|
2426
2504
|
/* @__PURE__ */ t.jsx(Ve.MultiValueLabel, { ...s })
|
2427
2505
|
] });
|
2428
|
-
},
|
2506
|
+
}, Kx = (e) => /* @__PURE__ */ t.jsx(Ve.MultiValueRemove, { ...e, children: /* @__PURE__ */ t.jsx("span", { className: "flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(at, { className: "icon-dim-12 icon-use-fill-n6" }) }) }), Wx = ({
|
2429
2507
|
isGroupHeadingSelectable: e,
|
2430
2508
|
...s
|
2431
2509
|
}) => {
|
@@ -2434,7 +2512,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2434
2512
|
return null;
|
2435
2513
|
if (!e || !a.isMulti)
|
2436
2514
|
return /* @__PURE__ */ t.jsx(Ve.GroupHeading, { ...s });
|
2437
|
-
const r = a.value ?? [], o = n.options ?? [], i =
|
2515
|
+
const r = a.value ?? [], o = n.options ?? [], i = Px(o, r, a.getOptionValue), c = () => {
|
2438
2516
|
const d = o.reduce((m, p) => (m[a.getOptionValue(p)] = !0, m), {}), u = r.filter(
|
2439
2517
|
(m) => !d[a.getOptionValue(m)]
|
2440
2518
|
);
|
@@ -2454,7 +2532,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2454
2532
|
};
|
2455
2533
|
return /* @__PURE__ */ t.jsx(Ve.GroupHeading, { ...s, onClick: c, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2456
2534
|
e && /* @__PURE__ */ t.jsx(
|
2457
|
-
|
2535
|
+
ws,
|
2458
2536
|
{
|
2459
2537
|
onChange: nt,
|
2460
2538
|
onClick: l,
|
@@ -2465,7 +2543,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2465
2543
|
),
|
2466
2544
|
/* @__PURE__ */ t.jsx("div", { className: "dc__truncate", children: s.data.label })
|
2467
2545
|
] }) });
|
2468
|
-
}, tu = (e) => `${e}-error-msg`, su = (e) => `${e}-label`,
|
2546
|
+
}, tu = (e) => `${e}-error-msg`, su = (e) => `${e}-label`, zx = (e) => `${e}-helper-text`, ui = ({
|
2469
2547
|
inputId: e,
|
2470
2548
|
label: s,
|
2471
2549
|
ariaLabel: n,
|
@@ -2475,7 +2553,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2475
2553
|
}) => ({
|
2476
2554
|
"aria-required": a,
|
2477
2555
|
...o ? {
|
2478
|
-
"aria-describedby":
|
2556
|
+
"aria-describedby": zx(e)
|
2479
2557
|
} : {},
|
2480
2558
|
...r ? {
|
2481
2559
|
"aria-errormessage": tu(e),
|
@@ -2486,7 +2564,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2486
2564
|
} : {
|
2487
2565
|
"aria-label": n
|
2488
2566
|
}
|
2489
|
-
}),
|
2567
|
+
}), qx = ({
|
2490
2568
|
label: e,
|
2491
2569
|
inputId: s,
|
2492
2570
|
required: n,
|
@@ -2521,86 +2599,8 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2521
2599
|
] }),
|
2522
2600
|
!c && o && /* @__PURE__ */ t.jsx(En, { placement: "bottom-start", iconClass: "fcv-5", ...o })
|
2523
2601
|
] });
|
2524
|
-
},
|
2525
|
-
|
2526
|
-
if (!i)
|
2527
|
-
throw new Error(`Icon with name "${e}" does not exist.`);
|
2528
|
-
return /* @__PURE__ */ t.jsx(mt, { condition: !!a?.content, wrap: Wx(a), children: /* @__PURE__ */ t.jsx(
|
2529
|
-
i,
|
2530
|
-
{
|
2531
|
-
className: `icon-dim-${n} ${r ? "icon-component" : ""} dc__no-shrink`,
|
2532
|
-
style: r ? { "--iconColor": `var(--${r})` } : {},
|
2533
|
-
strokeWidth: o
|
2534
|
-
}
|
2535
|
-
) });
|
2536
|
-
}, qx = {
|
2537
|
-
"ic-aborted": Hf,
|
2538
|
-
"ic-app-group": Yf,
|
2539
|
-
"ic-arrow-right": Kf,
|
2540
|
-
"ic-azure": Wf,
|
2541
|
-
"ic-bitbucket": jd,
|
2542
|
-
"ic-browser": zf,
|
2543
|
-
"ic-build-color": qf,
|
2544
|
-
"ic-cancelled": Xf,
|
2545
|
-
"ic-cd": Jf,
|
2546
|
-
"ic-ci-linked": Zf,
|
2547
|
-
"ic-ci-webhook": Qf,
|
2548
|
-
"ic-circle-loader": eh,
|
2549
|
-
"ic-clock": th,
|
2550
|
-
"ic-close-small": sh,
|
2551
|
-
"ic-code": nh,
|
2552
|
-
"ic-container": ah,
|
2553
|
-
"ic-crown": rh,
|
2554
|
-
"ic-cube": oh,
|
2555
|
-
"ic-dockerhub": ih,
|
2556
|
-
"ic-ecr": ch,
|
2557
|
-
"ic-env": lh,
|
2558
|
-
"ic-error": dh,
|
2559
|
-
"ic-failure": uh,
|
2560
|
-
"ic-gear": mh,
|
2561
|
-
"ic-git": ph,
|
2562
|
-
"ic-github": _h,
|
2563
|
-
"ic-gitlab": Od,
|
2564
|
-
"ic-google-artifact-registry": fh,
|
2565
|
-
"ic-google-container-registry": hh,
|
2566
|
-
"ic-google": gh,
|
2567
|
-
"ic-grid-view": xh,
|
2568
|
-
"ic-heart-green": Eh,
|
2569
|
-
"ic-heart-red-animated": Nh,
|
2570
|
-
"ic-heart-red": Ch,
|
2571
|
-
"ic-helm": bh,
|
2572
|
-
"ic-help-outline": Th,
|
2573
|
-
"ic-hibernate": Sh,
|
2574
|
-
"ic-in-progress": vh,
|
2575
|
-
"ic-info-filled": Ah,
|
2576
|
-
"ic-info-outline": Ih,
|
2577
|
-
"ic-job-color": yh,
|
2578
|
-
"ic-k8s-job": Rh,
|
2579
|
-
"ic-ldap": jh,
|
2580
|
-
"ic-login-devtron-logo": Oh,
|
2581
|
-
"ic-logout": Lh,
|
2582
|
-
"ic-medium-paintbucket": rd,
|
2583
|
-
"ic-microsoft": wh,
|
2584
|
-
"ic-missing": Dh,
|
2585
|
-
"ic-monitoring": Ph,
|
2586
|
-
"ic-node-script": kh,
|
2587
|
-
"ic-oidc": Mh,
|
2588
|
-
"ic-open-box": Uh,
|
2589
|
-
"ic-open-in-new": Rd,
|
2590
|
-
"ic-openshift": Bh,
|
2591
|
-
"ic-out-of-sync": $h,
|
2592
|
-
"ic-paper-plane-color": Fh,
|
2593
|
-
"ic-quay": Vh,
|
2594
|
-
"ic-shield-check": Gh,
|
2595
|
-
"ic-stack": Hh,
|
2596
|
-
"ic-success": Yh,
|
2597
|
-
"ic-suspended": Kh,
|
2598
|
-
"ic-timeout-two-dash": Wh,
|
2599
|
-
"ic-unknown": zh,
|
2600
|
-
"ic-user-key": qh,
|
2601
|
-
"ic-warning": Xh
|
2602
|
-
}, st = (e) => /* @__PURE__ */ t.jsx(zx, { ...e, iconMap: qx }), Kr = ({ id: e, text: s, icon: n, textClass: a }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 fs-11 lh-16 fw-4", id: e, children: [
|
2603
|
-
/* @__PURE__ */ t.jsx(st, { name: n, size: 16, color: null }),
|
2602
|
+
}, Kr = ({ id: e, text: s, icon: n, textClass: a }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 fs-11 lh-16 fw-4", id: e, children: [
|
2603
|
+
/* @__PURE__ */ t.jsx(qe, { name: n, size: 16, color: null }),
|
2604
2604
|
/* @__PURE__ */ t.jsx("span", { className: `dc__ellipsis-right__2nd-line ${a}`, children: s })
|
2605
2605
|
] }), Xx = ({ error: e, helperText: s, warningText: n, inputId: a }) => /* @__PURE__ */ t.jsxs("div", { className: "flex left column dc__gap-4", children: [
|
2606
2606
|
!!e && /* @__PURE__ */ t.jsx(Kr, { text: e, icon: "ic-error", textClass: "cr-5", id: tu(a) }),
|
@@ -2623,7 +2623,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2623
2623
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex left column top dc__gap-4 ${s ? "w-100" : ""}`, children: [
|
2624
2624
|
/* @__PURE__ */ t.jsxs("div", { className: `flex left top dc__gap-6 ${m ? "" : "column"} w-100`, children: [
|
2625
2625
|
n && /* @__PURE__ */ t.jsx("div", { className: `${p} flex left`, children: /* @__PURE__ */ t.jsx(
|
2626
|
-
|
2626
|
+
qx,
|
2627
2627
|
{
|
2628
2628
|
inputId: a,
|
2629
2629
|
label: n,
|
@@ -2707,7 +2707,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2707
2707
|
getIsOptionValid: je = () => !0,
|
2708
2708
|
customDisplayText: xt = null
|
2709
2709
|
} = E, jt = oe && !xt, fa = g && jt ? P.large : i, Br = !g && o, W = !N && C, Ae = te(
|
2710
|
-
() =>
|
2710
|
+
() => Dx({
|
2711
2711
|
error: e,
|
2712
2712
|
size: fa,
|
2713
2713
|
menuSize: d,
|
@@ -2727,7 +2727,7 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2727
2727
|
) && !_n(Ee, ps, null, K);
|
2728
2728
|
}, Ge = ze(
|
2729
2729
|
(we) => /* @__PURE__ */ t.jsx(
|
2730
|
-
|
2730
|
+
Fx,
|
2731
2731
|
{
|
2732
2732
|
...we,
|
2733
2733
|
showSelectedOptionsCount: l,
|
@@ -2735,11 +2735,11 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2735
2735
|
}
|
2736
2736
|
),
|
2737
2737
|
[l, I]
|
2738
|
-
),
|
2739
|
-
(we) => /* @__PURE__ */ t.jsx(
|
2738
|
+
), tt = ze(
|
2739
|
+
(we) => /* @__PURE__ */ t.jsx(Gx, { ...we, disableDescriptionEllipsis: x }),
|
2740
2740
|
[x]
|
2741
|
-
), Ot = (we) => /* @__PURE__ */ t.jsx(
|
2742
|
-
(we) => /* @__PURE__ */ t.jsx(
|
2741
|
+
), Ot = (we) => /* @__PURE__ */ t.jsx(Yx, { ...we, getIsOptionValid: je }), $r = ze(
|
2742
|
+
(we) => /* @__PURE__ */ t.jsx(Wx, { ...we, isGroupHeadingSelectable: se }),
|
2743
2743
|
[se]
|
2744
2744
|
), Jm = () => u ? /* @__PURE__ */ t.jsx(Js, { reload: m }) : j ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No options" }) : null, Zm = (we) => /* @__PURE__ */ t.jsx(fe, { content: c, placement: "top", className: "default-tt", arrow: !1, children: we }), Qm = (we) => {
|
2745
2745
|
const ps = we?.trim();
|
@@ -2805,18 +2805,18 @@ const wx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2805
2805
|
ref: A,
|
2806
2806
|
components: {
|
2807
2807
|
IndicatorSeparator: null,
|
2808
|
-
LoadingIndicator:
|
2809
|
-
DropdownIndicator:
|
2810
|
-
Control:
|
2811
|
-
Option:
|
2812
|
-
MenuList:
|
2813
|
-
ClearIndicator:
|
2808
|
+
LoadingIndicator: Vx,
|
2809
|
+
DropdownIndicator: Mx,
|
2810
|
+
Control: Bx,
|
2811
|
+
Option: tt,
|
2812
|
+
MenuList: Hx,
|
2813
|
+
ClearIndicator: Ux,
|
2814
2814
|
ValueContainer: Ge,
|
2815
2815
|
MultiValueLabel: Ot,
|
2816
|
-
MultiValueRemove:
|
2816
|
+
MultiValueRemove: Kx,
|
2817
2817
|
GroupHeading: $r,
|
2818
2818
|
NoOptionsMessage: Jm,
|
2819
|
-
Input:
|
2819
|
+
Input: $x,
|
2820
2820
|
...B && {
|
2821
2821
|
Menu: () => null,
|
2822
2822
|
DropdownIndicator: () => null
|
@@ -3131,16 +3131,16 @@ const au = (e) => ({
|
|
3131
3131
|
let i;
|
3132
3132
|
switch (e) {
|
3133
3133
|
case Eo.ROLLBACK:
|
3134
|
-
i =
|
3134
|
+
i = Je(
|
3135
3135
|
`${G.CD_MATERIAL_GET}/${s}/material/rollback`,
|
3136
3136
|
o
|
3137
3137
|
);
|
3138
3138
|
break;
|
3139
3139
|
case Eo.IMAGE_PROMOTION:
|
3140
|
-
i =
|
3140
|
+
i = Je(G.APP_ARTIFACT_PROMOTE_MATERIAL, r);
|
3141
3141
|
break;
|
3142
3142
|
default:
|
3143
|
-
i =
|
3143
|
+
i = Je(`${G.CD_MATERIAL_GET}/${s}/material`, {
|
3144
3144
|
...o,
|
3145
3145
|
stage: _u[n]
|
3146
3146
|
});
|
@@ -3205,7 +3205,7 @@ const gE = (e, s) => {
|
|
3205
3205
|
}) => {
|
3206
3206
|
try {
|
3207
3207
|
const { result: a } = await ue(
|
3208
|
-
|
3208
|
+
Je(G.PLUGIN_GLOBAL_VARIABLES, { appId: e }),
|
3209
3209
|
{
|
3210
3210
|
abortControllerRef: n
|
3211
3211
|
}
|
@@ -3277,7 +3277,7 @@ const Sc = () => ({
|
|
3277
3277
|
localStorageKey: n,
|
3278
3278
|
redirectionMethod: a = "replace"
|
3279
3279
|
} = {}) => {
|
3280
|
-
const r = Ls(), o =
|
3280
|
+
const r = Ls(), o = zs(), i = Y(!1), l = (() => {
|
3281
3281
|
const b = new URLSearchParams(r.search);
|
3282
3282
|
if (!i.current && n)
|
3283
3283
|
if (r.search)
|
@@ -3290,7 +3290,7 @@ const Sc = () => ({
|
|
3290
3290
|
const O = localStorage.getItem(n);
|
3291
3291
|
if (O)
|
3292
3292
|
try {
|
3293
|
-
const T =
|
3293
|
+
const T = Je("", JSON.parse(O)), j = new URLSearchParams(T.split("?")[1] ?? "");
|
3294
3294
|
return o.replace({ search: j.toString() }), j;
|
3295
3295
|
} catch {
|
3296
3296
|
localStorage.removeItem(n);
|
@@ -3670,9 +3670,9 @@ const Sc = () => ({
|
|
3670
3670
|
return /* @__PURE__ */ t.jsx(
|
3671
3671
|
Ii,
|
3672
3672
|
{
|
3673
|
-
label:
|
3673
|
+
label: Ze.DESCRIPTION_LABEL,
|
3674
3674
|
name: "build-infra-profile-description",
|
3675
|
-
placeholder:
|
3675
|
+
placeholder: Ze.DESCRIPTION_PLACEHOLDER,
|
3676
3676
|
value: n,
|
3677
3677
|
onChange: r,
|
3678
3678
|
error: a
|
@@ -3698,8 +3698,8 @@ const Sc = () => ({
|
|
3698
3698
|
Dr,
|
3699
3699
|
{
|
3700
3700
|
name: "profile-name",
|
3701
|
-
label:
|
3702
|
-
placeholder:
|
3701
|
+
label: Ze.PROFILE_LABEL,
|
3702
|
+
placeholder: Ze.PROFILE_PLACEHOLDER,
|
3703
3703
|
value: n,
|
3704
3704
|
onChange: r,
|
3705
3705
|
error: a,
|
@@ -3714,7 +3714,7 @@ const Sc = () => ({
|
|
3714
3714
|
e,
|
3715
3715
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space w-100", children: [
|
3716
3716
|
/* @__PURE__ */ t.jsx("span", { className: "m-0 pt-0 pb-0 pl-4 pr-4 fs-13 lh-20 fw-4 cn-9 dc__ellipsis-right dc__word-break-all flex-grow-1", children: r }),
|
3717
|
-
/* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 dc__no-shrink", children:
|
3717
|
+
/* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 dc__no-shrink", children: Ze.INHERITING_HEADING_DESCRIPTION })
|
3718
3718
|
] })
|
3719
3719
|
] });
|
3720
3720
|
}, vL = ({
|
@@ -3783,8 +3783,8 @@ const Sc = () => ({
|
|
3783
3783
|
l.locator
|
3784
3784
|
)) })
|
3785
3785
|
] })
|
3786
|
-
] }) : /* @__PURE__ */ t.jsx(
|
3787
|
-
},
|
3786
|
+
] }) : /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 });
|
3787
|
+
}, st = {
|
3788
3788
|
PROVIDE_A_NUMBER: "Please provide a number",
|
3789
3789
|
LOWERCASE_ALPHANUMERIC: "Only lowercase alphanumeric characters, -, _ or . allowed",
|
3790
3790
|
CAN_NOT_START_END_WITH_SEPARATORS: "Cannot start/end with -, _ or .",
|
@@ -3822,44 +3822,44 @@ const Sc = () => ({
|
|
3822
3822
|
isValid: !0
|
3823
3823
|
} : {
|
3824
3824
|
isValid: !1,
|
3825
|
-
message:
|
3825
|
+
message: st.CAN_NOT_START_END_WITH_SEPARATORS
|
3826
3826
|
} : {
|
3827
3827
|
isValid: !1,
|
3828
|
-
message:
|
3828
|
+
message: st.LOWERCASE_ALPHANUMERIC
|
3829
3829
|
} : {
|
3830
3830
|
isValid: !1,
|
3831
|
-
message:
|
3831
|
+
message: st.getMinMaxCharMessage(3, 50)
|
3832
3832
|
}, OE = (e) => e?.length > jc ? {
|
3833
3833
|
isValid: !1,
|
3834
|
-
message:
|
3834
|
+
message: st.getMaxCharMessage(jc)
|
3835
3835
|
} : {
|
3836
3836
|
isValid: !0
|
3837
3837
|
}, du = (e, s, n) => e?.length < n ? {
|
3838
3838
|
isValid: !1,
|
3839
|
-
message:
|
3839
|
+
message: st.getMinCharMessage(n)
|
3840
3840
|
} : e?.length > s ? {
|
3841
3841
|
isValid: !1,
|
3842
|
-
message:
|
3842
|
+
message: st.getMaxCharMessage(s)
|
3843
3843
|
} : {
|
3844
3844
|
isValid: !0
|
3845
3845
|
}, Lc = (e) => {
|
3846
3846
|
if (!e)
|
3847
3847
|
return {
|
3848
3848
|
isValid: !1,
|
3849
|
-
message:
|
3849
|
+
message: st.PROVIDE_A_NUMBER
|
3850
3850
|
};
|
3851
3851
|
if (!/^\d+(\.\d+)?$/.test(e.toString()))
|
3852
3852
|
return {
|
3853
3853
|
isValid: !1,
|
3854
|
-
message:
|
3854
|
+
message: st.VALID_POSITIVE_NUMBER
|
3855
3855
|
};
|
3856
3856
|
const s = Number(e);
|
3857
3857
|
return s > Number.MAX_SAFE_INTEGER ? {
|
3858
3858
|
isValid: !1,
|
3859
|
-
message:
|
3859
|
+
message: st.MAX_SAFE_INTEGER
|
3860
3860
|
} : s <= 0 ? {
|
3861
3861
|
isValid: !1,
|
3862
|
-
message:
|
3862
|
+
message: st.VALID_POSITIVE_NUMBER
|
3863
3863
|
} : {
|
3864
3864
|
isValid: !0
|
3865
3865
|
};
|
@@ -3867,20 +3867,20 @@ const Sc = () => ({
|
|
3867
3867
|
if (!e)
|
3868
3868
|
return {
|
3869
3869
|
isValid: !1,
|
3870
|
-
message:
|
3870
|
+
message: st.PROVIDE_A_NUMBER
|
3871
3871
|
};
|
3872
3872
|
if (!/^\d+$/.test(e.toString()))
|
3873
3873
|
return {
|
3874
3874
|
isValid: !1,
|
3875
|
-
message:
|
3875
|
+
message: st.VALID_POSITIVE_INTEGER
|
3876
3876
|
};
|
3877
3877
|
const s = Number(e);
|
3878
3878
|
return s > Number.MAX_SAFE_INTEGER ? {
|
3879
3879
|
isValid: !1,
|
3880
|
-
message:
|
3880
|
+
message: st.MAX_SAFE_INTEGER
|
3881
3881
|
} : s <= 0 ? {
|
3882
3882
|
isValid: !1,
|
3883
|
-
message:
|
3883
|
+
message: st.VALID_POSITIVE_INTEGER
|
3884
3884
|
} : {
|
3885
3885
|
isValid: !0
|
3886
3886
|
};
|
@@ -3937,14 +3937,14 @@ const Sc = () => ({
|
|
3937
3937
|
};
|
3938
3938
|
}, yL = (e) => e ? e.length > 128 ? {
|
3939
3939
|
isValid: !1,
|
3940
|
-
message:
|
3940
|
+
message: st.getMaxCharMessage(128)
|
3941
3941
|
} : /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(
|
3942
3942
|
e
|
3943
3943
|
) ? {
|
3944
3944
|
isValid: !0
|
3945
3945
|
} : {
|
3946
3946
|
isValid: !1,
|
3947
|
-
message:
|
3947
|
+
message: st.INVALID_SEMANTIC_VERSION
|
3948
3948
|
} : {
|
3949
3949
|
isValid: !1,
|
3950
3950
|
message: "Please provide a version"
|
@@ -3979,12 +3979,12 @@ const jL = (e, s = !1) => {
|
|
3979
3979
|
if ((/* @__PURE__ */ new Date()).getTime() > e.getTime())
|
3980
3980
|
return {
|
3981
3981
|
isValid: !1,
|
3982
|
-
message:
|
3982
|
+
message: st.DATE_BEFORE_CURRENT_TIME
|
3983
3983
|
};
|
3984
3984
|
} else
|
3985
3985
|
return {
|
3986
3986
|
isValid: !1,
|
3987
|
-
message:
|
3987
|
+
message: st.INVALID_DATE
|
3988
3988
|
};
|
3989
3989
|
return {
|
3990
3990
|
isValid: !0
|
@@ -4078,20 +4078,20 @@ const jL = (e, s = !1) => {
|
|
4078
4078
|
const u = String(e.value).split(".")[1]?.length ?? 0, m = String(s.value).split(".")[1]?.length ?? 0;
|
4079
4079
|
if (u > ys.DECIMAL_PLACES)
|
4080
4080
|
return c.request = {
|
4081
|
-
message:
|
4081
|
+
message: Ze.VALIDATE_REQUEST_LIMIT.REQUEST_DECIMAL_PLACES,
|
4082
4082
|
isValid: !1
|
4083
4083
|
}, c;
|
4084
4084
|
if (m > ys.DECIMAL_PLACES)
|
4085
4085
|
return c.limit = {
|
4086
|
-
message:
|
4086
|
+
message: Ze.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
|
4087
4087
|
isValid: !1
|
4088
4088
|
}, c;
|
4089
4089
|
const p = i / o, _ = r / a;
|
4090
4090
|
return p * _ <= Number.MAX_SAFE_INTEGER ? (p * _ < 1 && (c.request = {
|
4091
|
-
message:
|
4091
|
+
message: Ze.VALIDATE_REQUEST_LIMIT.REQUEST_LESS_THAN_LIMIT,
|
4092
4092
|
isValid: !1
|
4093
4093
|
}), c) : (c.request = {
|
4094
|
-
message:
|
4094
|
+
message: Ze.VALIDATE_REQUEST_LIMIT.CAN_NOT_COMPUTE,
|
4095
4095
|
isValid: !1
|
4096
4096
|
}, c);
|
4097
4097
|
}, Pc = ({
|
@@ -4106,7 +4106,7 @@ const jL = (e, s = !1) => {
|
|
4106
4106
|
}, l || (delete r[U.NODE_SELECTOR][n], Object.keys(r[U.NODE_SELECTOR]).length === 0 && (r[U.NODE_SELECTOR] = null));
|
4107
4107
|
}, ME = (e) => {
|
4108
4108
|
const s = structuredClone(Qd);
|
4109
|
-
return e &&
|
4109
|
+
return e && vx.forEach((n) => {
|
4110
4110
|
s[n] = "";
|
4111
4111
|
}), s;
|
4112
4112
|
}, DL = ({
|
@@ -4167,7 +4167,7 @@ const jL = (e, s = !1) => {
|
|
4167
4167
|
value: v,
|
4168
4168
|
unit: b
|
4169
4169
|
};
|
4170
|
-
const { keyToPersist: O, keyToPersistConfigType: T } =
|
4170
|
+
const { keyToPersist: O, keyToPersistConfigType: T } = Ix[f], { request: j, limit: w } = kE({
|
4171
4171
|
request: {
|
4172
4172
|
value: v,
|
4173
4173
|
unit: b
|
@@ -4232,10 +4232,10 @@ const jL = (e, s = !1) => {
|
|
4232
4232
|
case "activate_cs":
|
4233
4233
|
case "de_activate_cm":
|
4234
4234
|
case "de_activate_cs": {
|
4235
|
-
const { id: v, componentType: b } = N, O =
|
4235
|
+
const { id: v, componentType: b } = N, O = Xe[b], T = y[O].value, j = T.findIndex((L) => L.id === v);
|
4236
4236
|
if (j === -1 || !T[j].canOverride) {
|
4237
4237
|
const L = "Unable to customize this CM/CS";
|
4238
|
-
|
4238
|
+
Me.showToast({
|
4239
4239
|
variant: Se.error,
|
4240
4240
|
description: L
|
4241
4241
|
}), Ma(new Error(L));
|
@@ -4247,7 +4247,7 @@ const jL = (e, s = !1) => {
|
|
4247
4247
|
T[j].useFormProps = B?.useFormProps, T[j].initialResponse = B?.initialResponse;
|
4248
4248
|
} else
|
4249
4249
|
T[j].useFormProps = T[j].defaultValue, T[j].initialResponse = T[j].defaultValueInitialResponse;
|
4250
|
-
A[
|
4250
|
+
A[Xe[b]] && (delete A[Xe[b]][v], Object.keys(A[Xe[b]]).length === 0 && (A[Xe[b]] = null));
|
4251
4251
|
break;
|
4252
4252
|
}
|
4253
4253
|
case Et.ADD_TARGET_PLATFORM: {
|
@@ -4266,7 +4266,7 @@ const jL = (e, s = !1) => {
|
|
4266
4266
|
}
|
4267
4267
|
case Et.REMOVE_TARGET_PLATFORM: {
|
4268
4268
|
if (!C.configurations[S]) {
|
4269
|
-
|
4269
|
+
Me.showToast({
|
4270
4270
|
variant: Se.error,
|
4271
4271
|
description: "Platform does not exist"
|
4272
4272
|
}), Ma(new Error("Platform does not exist"));
|
@@ -4282,7 +4282,7 @@ const jL = (e, s = !1) => {
|
|
4282
4282
|
if (v === b)
|
4283
4283
|
return;
|
4284
4284
|
if (!T) {
|
4285
|
-
|
4285
|
+
Me.showToast({
|
4286
4286
|
variant: Se.error,
|
4287
4287
|
description: "Original platform does not exist"
|
4288
4288
|
});
|
@@ -4325,7 +4325,7 @@ const jL = (e, s = !1) => {
|
|
4325
4325
|
if (y[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4326
4326
|
break;
|
4327
4327
|
const b = {
|
4328
|
-
id:
|
4328
|
+
id: Ks(),
|
4329
4329
|
key: "",
|
4330
4330
|
value: ""
|
4331
4331
|
};
|
@@ -4376,10 +4376,10 @@ const jL = (e, s = !1) => {
|
|
4376
4376
|
if (y[U.TOLERANCE].key !== U.TOLERANCE)
|
4377
4377
|
break;
|
4378
4378
|
const b = {
|
4379
|
-
id:
|
4379
|
+
id: Ks(),
|
4380
4380
|
key: "",
|
4381
|
-
effect:
|
4382
|
-
operator:
|
4381
|
+
effect: yx,
|
4382
|
+
operator: Rx,
|
4383
4383
|
value: ""
|
4384
4384
|
};
|
4385
4385
|
y[U.TOLERANCE].value.unshift(b);
|
@@ -4432,22 +4432,22 @@ const jL = (e, s = !1) => {
|
|
4432
4432
|
break;
|
4433
4433
|
}
|
4434
4434
|
case Et.SYNC_CM_CS_ITEM: {
|
4435
|
-
const { id: v, value: b, hasError: O, componentType: T } = N, j = y[
|
4435
|
+
const { id: v, value: b, hasError: O, componentType: T } = N, j = y[Xe[T]].value.findIndex((L) => L.id === v);
|
4436
4436
|
if (j === -1) {
|
4437
|
-
|
4437
|
+
Me.showToast({
|
4438
4438
|
variant: Se.error,
|
4439
4439
|
description: "ConfigMap does not exist"
|
4440
4440
|
}), Ma(new Error("ConfigMap does not exist"));
|
4441
4441
|
return;
|
4442
4442
|
}
|
4443
|
-
y[
|
4444
|
-
A[
|
4445
|
-
).length === 0 && (A[
|
4443
|
+
y[Xe[T]].value[j].useFormProps = b, A[Xe[T]] || (A[Xe[T]] = {}), O ? A[Xe[T]][v] = !0 : A[Xe[T]][v] && delete A[Xe[T]][v], Object.keys(
|
4444
|
+
A[Xe[T]]
|
4445
|
+
).length === 0 && (A[Xe[T]] = null);
|
4446
4446
|
break;
|
4447
4447
|
}
|
4448
4448
|
case Et.DELETE_CM_CS_ITEM: {
|
4449
|
-
const { id: v, componentType: b } = N, O = y[
|
4450
|
-
y[
|
4449
|
+
const { id: v, componentType: b } = N, O = y[Xe[b]].value.filter((T) => T.id !== v);
|
4450
|
+
y[Xe[b]].value = O, A[Xe[b]] && (delete A[Xe[b]][v], Object.keys(A[Xe[b]]).length === 0 && (A[Xe[b]] = null));
|
4451
4451
|
break;
|
4452
4452
|
}
|
4453
4453
|
}
|
@@ -4458,9 +4458,9 @@ const jL = (e, s = !1) => {
|
|
4458
4458
|
if (f?.preventDefault(), Object.keys(m).filter(
|
4459
4459
|
(C) => m[C] !== null && m[C] !== void 0
|
4460
4460
|
).length > 0) {
|
4461
|
-
|
4461
|
+
Me.showToast({
|
4462
4462
|
variant: Se.error,
|
4463
|
-
description:
|
4463
|
+
description: Ze.INVALID_FORM_MESSAGE
|
4464
4464
|
});
|
4465
4465
|
return;
|
4466
4466
|
}
|
@@ -4470,9 +4470,9 @@ const jL = (e, s = !1) => {
|
|
4470
4470
|
name: e,
|
4471
4471
|
profileInput: d,
|
4472
4472
|
canConfigureUseK8sDriver: a
|
4473
|
-
}), x(!1),
|
4473
|
+
}), x(!1), Me.showToast({
|
4474
4474
|
variant: Se.success,
|
4475
|
-
description:
|
4475
|
+
description: Ze.getSubmitSuccessMessage(d.name, s)
|
4476
4476
|
}), n ? n() : l();
|
4477
4477
|
} catch (C) {
|
4478
4478
|
Be(C), x(!1);
|
@@ -4492,7 +4492,7 @@ const jL = (e, s = !1) => {
|
|
4492
4492
|
try {
|
4493
4493
|
const a = { name: e }, {
|
4494
4494
|
result: { configurationUnits: r, defaultConfigurations: o, profile: i }
|
4495
|
-
} = await ue(
|
4495
|
+
} = await ue(Je(fi(), a));
|
4496
4496
|
return WE({
|
4497
4497
|
configurationUnits: r,
|
4498
4498
|
defaultConfigurations: o,
|
@@ -4512,7 +4512,7 @@ const jL = (e, s = !1) => {
|
|
4512
4512
|
if (a) {
|
4513
4513
|
const i = { name: e };
|
4514
4514
|
return await oi(
|
4515
|
-
|
4515
|
+
Je(fi(), i),
|
4516
4516
|
r
|
4517
4517
|
);
|
4518
4518
|
}
|
@@ -4525,7 +4525,7 @@ const jL = (e, s = !1) => {
|
|
4525
4525
|
value: (e.value || []).map((n) => ({
|
4526
4526
|
key: n?.key,
|
4527
4527
|
value: n?.value || "",
|
4528
|
-
id: s ?
|
4528
|
+
id: s ? Ks() : null
|
4529
4529
|
})).filter((n) => n.key)
|
4530
4530
|
};
|
4531
4531
|
case U.TOLERANCE:
|
@@ -4535,7 +4535,7 @@ const jL = (e, s = !1) => {
|
|
4535
4535
|
const { key: a, effect: r, operator: o, value: i } = n || {}, c = {
|
4536
4536
|
key: a,
|
4537
4537
|
effect: r,
|
4538
|
-
id: s ?
|
4538
|
+
id: s ? Ks() : null
|
4539
4539
|
};
|
4540
4540
|
return o === Ts.EQUALS ? {
|
4541
4541
|
...c,
|
@@ -4566,7 +4566,7 @@ const jL = (e, s = !1) => {
|
|
4566
4566
|
default:
|
4567
4567
|
return null;
|
4568
4568
|
}
|
4569
|
-
}, VE = (e) => e ? e === Wa.KUBERNETES :
|
4569
|
+
}, VE = (e) => e ? e === Wa.KUBERNETES : Ox, GE = ({
|
4570
4570
|
fromCreateView: e,
|
4571
4571
|
profile: s,
|
4572
4572
|
canConfigureUseK8sDriver: n
|
@@ -4603,7 +4603,7 @@ const jL = (e, s = !1) => {
|
|
4603
4603
|
defaultValue: structuredClone(r),
|
4604
4604
|
initialResponse: structuredClone(a),
|
4605
4605
|
defaultValueInitialResponse: structuredClone(a),
|
4606
|
-
id:
|
4606
|
+
id: Ks(),
|
4607
4607
|
isOverridden: !0,
|
4608
4608
|
canOverride: !s
|
4609
4609
|
};
|
@@ -4778,7 +4778,7 @@ const jL = (e, s = !1) => {
|
|
4778
4778
|
}, {});
|
4779
4779
|
return Object.entries(a).forEach(([o, i]) => {
|
4780
4780
|
o !== rs && (a[o] = i.filter(
|
4781
|
-
(c) => !
|
4781
|
+
(c) => !jx[c.key]
|
4782
4782
|
));
|
4783
4783
|
}), s && !e.useK8sDriver && Object.keys(a).forEach((o) => {
|
4784
4784
|
o !== rs && delete a[o];
|
@@ -4791,7 +4791,7 @@ const jL = (e, s = !1) => {
|
|
4791
4791
|
buildxDriverType: zE(e.useK8sDriver)
|
4792
4792
|
}
|
4793
4793
|
};
|
4794
|
-
}, fi = () => `${G.INFRA_CONFIG_PROFILE}/${
|
4794
|
+
}, fi = () => `${G.INFRA_CONFIG_PROFILE}/${Ax}`, ML = (e, s) => s ? `activate_${e}` : `de_activate_${e}`;
|
4795
4795
|
var XE = /* @__PURE__ */ ((e) => (e.email = "email_id", e.lastLogin = "last_login", e))(XE || {}), JE = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e))(JE || {}), ZE = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e.temporary = "temporaryAccess", e))(ZE || {}), QE = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(QE || {});
|
4796
4796
|
const eN = ({
|
4797
4797
|
id: e,
|
@@ -5226,7 +5226,7 @@ const KL = (e, s) => gt(G.K8S_RESOURCE_LIST, e, {
|
|
5226
5226
|
] })
|
5227
5227
|
] }),
|
5228
5228
|
iN.map(({ key: c, infoText: l, label: d }) => /* @__PURE__ */ t.jsx(
|
5229
|
-
|
5229
|
+
ws,
|
5230
5230
|
{
|
5231
5231
|
value: ut.CHECKED,
|
5232
5232
|
isChecked: a[c],
|
@@ -5250,7 +5250,7 @@ const KL = (e, s) => gt(G.K8S_RESOURCE_LIST, e, {
|
|
5250
5250
|
};
|
5251
5251
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12 w-100", children: [
|
5252
5252
|
/* @__PURE__ */ t.jsx(
|
5253
|
-
|
5253
|
+
ws,
|
5254
5254
|
{
|
5255
5255
|
value: ut.CHECKED,
|
5256
5256
|
isChecked: a,
|
@@ -5315,11 +5315,11 @@ const _N = {
|
|
5315
5315
|
/* @__PURE__ */ t.jsx("span", { className: "fw-6", children: o ? "Enabled" : "Not enabled" })
|
5316
5316
|
] })
|
5317
5317
|
] }) : s ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-16 dc_max-width__max-content", children: [
|
5318
|
-
/* @__PURE__ */ t.jsx(
|
5318
|
+
/* @__PURE__ */ t.jsx(Ue, { "data-testid": "app-metrics-checkbox-loading" }),
|
5319
5319
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 dc__no-shrink", children: "Application metrics" })
|
5320
5320
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
5321
5321
|
/* @__PURE__ */ t.jsx(yA, { parsingError: c, restoreLastSavedYAML: l, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
5322
|
-
|
5322
|
+
ws,
|
5323
5323
|
{
|
5324
5324
|
rootClassName: `mb-0 dc__align-items-center ${n.isAppMetricsSupported ? "" : "dc__disabled"}`,
|
5325
5325
|
isChecked: o,
|
@@ -5405,7 +5405,7 @@ const NN = (e) => {
|
|
5405
5405
|
i.append("file", e[0]);
|
5406
5406
|
try {
|
5407
5407
|
const { result: c } = await gt(
|
5408
|
-
|
5408
|
+
Je(`${G.CD_CONFIG}/${s}/${n}/${G.FILE_UPLOAD}`, {
|
5409
5409
|
allowedExtensions: a,
|
5410
5410
|
maxUploadSize: r
|
5411
5411
|
}),
|
@@ -5450,7 +5450,7 @@ const NN = (e) => {
|
|
5450
5450
|
c.append("file", e[0]);
|
5451
5451
|
try {
|
5452
5452
|
const { result: l } = await gt(
|
5453
|
-
|
5453
|
+
Je(`${G.CI_CONFIG_GET}/${s}/${n}/${G.FILE_UPLOAD}`, {
|
5454
5454
|
envId: a,
|
5455
5455
|
allowedExtensions: r,
|
5456
5456
|
maxUploadSize: o
|
@@ -5801,7 +5801,7 @@ const yN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5801
5801
|
}, {}), Eu = (e, s) => {
|
5802
5802
|
const n = xi(s), r = e === Gt.WEBHOOK || n?.webhookdata?.id !== 0 ? n.webhookdata : {}, o = Pe(r.data.date, "YYYY-MM-DDTHH:mm:ssZ");
|
5803
5803
|
return o.isValid() ? o.format(yt.TWELVE_HOURS_FORMAT) : r.data.date;
|
5804
|
-
},
|
5804
|
+
}, Ks = (e) => ip(e), Sw = (e, s = "") => ({ pathname: n }) => e === n || s || ax, Ar = (e) => {
|
5805
5805
|
if (!e?.length)
|
5806
5806
|
return [];
|
5807
5807
|
const s = e.filter(({ name: r }) => !!r).sort(({ name: r }, { name: o }) => rt(r, o)), n = [], a = {};
|
@@ -5886,13 +5886,13 @@ const yN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5886
5886
|
}, BN = ({
|
5887
5887
|
params: e,
|
5888
5888
|
signal: s
|
5889
|
-
}) => ue(
|
5889
|
+
}) => ue(Je(G.CONFIG_DATA, e), { signal: s }), $N = async (e) => {
|
5890
5890
|
const s = {
|
5891
5891
|
comparisonItems: e.filter((r) => !!r).map((r, o) => ({ index: o, ...r }))
|
5892
5892
|
}, n = Array(e.length).fill(null), {
|
5893
5893
|
result: { comparisonItemResponse: a }
|
5894
5894
|
} = await ue(
|
5895
|
-
|
5895
|
+
Je(G.CONFIG_COMPARE_SECRET, {
|
5896
5896
|
compareConfig: JSON.stringify(s)
|
5897
5897
|
})
|
5898
5898
|
);
|
@@ -5904,11 +5904,11 @@ var At = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(At ||
|
|
5904
5904
|
const os = {
|
5905
5905
|
...At,
|
5906
5906
|
auto: "auto"
|
5907
|
-
}, Cu = "userPreferences", Aw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) =>
|
5907
|
+
}, Cu = "userPreferences", Aw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => Je(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), Iw = ({ kind: e, version: s, queryParams: n, suffix: a }) => Je(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), FN = (e) => gt(G.CD_CONFIG, e), yw = () => ue(G.ENVIRONMENT_DATA), Rw = async () => {
|
5908
5908
|
const e = {
|
5909
5909
|
key: Cu
|
5910
5910
|
}, { result: s } = await ue(
|
5911
|
-
|
5911
|
+
Je(`${G.ATTRIBUTES_USER}/${G.GET}`, e)
|
5912
5912
|
);
|
5913
5913
|
if (!s?.value)
|
5914
5914
|
return null;
|
@@ -5958,7 +5958,7 @@ const VN = {
|
|
5958
5958
|
) })
|
5959
5959
|
}, GN = {
|
5960
5960
|
[Se.info]: {
|
5961
|
-
icon: /* @__PURE__ */ t.jsx(
|
5961
|
+
icon: /* @__PURE__ */ t.jsx(qs, {}),
|
5962
5962
|
type: "info",
|
5963
5963
|
title: "Information",
|
5964
5964
|
progressBarBg: "var(--B500)"
|
@@ -6007,7 +6007,7 @@ const VN = {
|
|
6007
6007
|
)
|
6008
6008
|
] });
|
6009
6009
|
var ln;
|
6010
|
-
const
|
6010
|
+
const $s = class $s {
|
6011
6011
|
constructor() {
|
6012
6012
|
/**
|
6013
6013
|
* Handler for showing the toast
|
@@ -6048,13 +6048,13 @@ const Fs = class Fs {
|
|
6048
6048
|
me(this, "isToastActive", Fr.isActive);
|
6049
6049
|
}
|
6050
6050
|
static get instance() {
|
6051
|
-
return
|
6051
|
+
return Ds($s, ln) || ga($s, ln, new $s()), Ds($s, ln);
|
6052
6052
|
}
|
6053
6053
|
};
|
6054
6054
|
ln = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
6055
|
-
ha(
|
6056
|
-
let Oo =
|
6057
|
-
const Ow = () => /* @__PURE__ */ t.jsx(cp, { ...VN }),
|
6055
|
+
ha($s, ln);
|
6056
|
+
let Oo = $s;
|
6057
|
+
const Ow = () => /* @__PURE__ */ t.jsx(cp, { ...VN }), Me = Oo.instance;
|
6058
6058
|
var ct = /* @__PURE__ */ ((e) => (e.CLEAR_ALL_SELECTIONS = "CLEAR_ALL_SELECTIONS", e.CLEAR_IDENTIFIERS = "CLEAR_IDENTIFIERS", e.SELECT_ALL_ACROSS_PAGES = "SELECT_ALL_ACROSS_PAGES", e.SELECT_ALL_ON_PAGE = "SELECT_ALL_ON_PAGE", e.SELECT_IDENTIFIER = "SELECT_IDENTIFIER", e.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION", e.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES", e))(ct || {}), bu = /* @__PURE__ */ ((e) => (e.OPEN = "OPEN", e.CLOSED = "CLOSED", e))(bu || {});
|
6059
6059
|
const YN = "bulk-selection-pop-up-menu", Jr = {
|
6060
6060
|
[ct.SELECT_ALL_ON_PAGE]: "All on this page",
|
@@ -6100,7 +6100,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6100
6100
|
r({});
|
6101
6101
|
break;
|
6102
6102
|
case ct.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
|
6103
|
-
|
6103
|
+
Me.showToast({
|
6104
6104
|
variant: Se.info,
|
6105
6105
|
description: $c
|
6106
6106
|
}), d(o, f);
|
@@ -6124,7 +6124,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6124
6124
|
});
|
6125
6125
|
break;
|
6126
6126
|
case ct.SELECT_ALL_ON_PAGE: {
|
6127
|
-
a[Tn] &&
|
6127
|
+
a[Tn] && Me.showToast({
|
6128
6128
|
variant: Se.info,
|
6129
6129
|
description: $c
|
6130
6130
|
}), u(o);
|
@@ -6208,7 +6208,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6208
6208
|
disabled: s,
|
6209
6209
|
children: [
|
6210
6210
|
/* @__PURE__ */ t.jsx(
|
6211
|
-
|
6211
|
+
ws,
|
6212
6212
|
{
|
6213
6213
|
isChecked: r,
|
6214
6214
|
onChange: nt,
|
@@ -6222,7 +6222,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6222
6222
|
}
|
6223
6223
|
),
|
6224
6224
|
/* @__PURE__ */ t.jsx(lt.Body, { rootClassName: "dc__top-22 w-150 dc__right-0 pt-4 pb-4 pl-0 pr-0 bg__primary flex column dc__content-start dc__align-start dc__position-abs bg__primary dc__border dc__border-radius-4-imp", children: l.map((d) => /* @__PURE__ */ t.jsx(
|
6225
|
-
|
6225
|
+
bx,
|
6226
6226
|
{
|
6227
6227
|
locator: d.locator,
|
6228
6228
|
label: d.label,
|
@@ -6247,7 +6247,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6247
6247
|
[We.ARTIFACT_REGISTRY]: "ic-google-artifact-registry",
|
6248
6248
|
[We.GCR]: "ic-google-container-registry",
|
6249
6249
|
[We.OTHER]: "ic-container"
|
6250
|
-
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
6250
|
+
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: qN[e] || "ic-container", size: s, color: null }), Dw = {
|
6251
6251
|
ecr: {
|
6252
6252
|
value: "ecr",
|
6253
6253
|
label: "ECR",
|
@@ -6498,7 +6498,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6498
6498
|
return { Icon: /* @__PURE__ */ t.jsx(f_, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
|
6499
6499
|
case Cs.DEPLOYING:
|
6500
6500
|
return {
|
6501
|
-
Icon: /* @__PURE__ */ t.jsx(
|
6501
|
+
Icon: /* @__PURE__ */ t.jsx(qe, { name: "ic-circle-loader", color: "O500" }),
|
6502
6502
|
stateClassName: "bcy-1 ey-2"
|
6503
6503
|
};
|
6504
6504
|
default:
|
@@ -6632,7 +6632,7 @@ const YN = "bulk-selection-pop-up-menu", Jr = {
|
|
6632
6632
|
installedAppId: n,
|
6633
6633
|
artifactId: a,
|
6634
6634
|
installedAppVersionHistoryId: r
|
6635
|
-
}, i =
|
6635
|
+
}, i = Je(G.SCAN_RESULT, o);
|
6636
6636
|
return await ue(i);
|
6637
6637
|
}, Fc = {
|
6638
6638
|
color: "var(--N300)",
|
@@ -6864,7 +6864,16 @@ const aC = {
|
|
6864
6864
|
return (
|
6865
6865
|
// Added for type consistency
|
6866
6866
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
6867
|
-
/* @__PURE__ */ t.jsx(t.Fragment, { children: n || !n && typeof s == "string" ? /* @__PURE__ */ t.jsx(
|
6867
|
+
/* @__PURE__ */ t.jsx(t.Fragment, { children: n || !n && typeof s == "string" ? /* @__PURE__ */ t.jsx(
|
6868
|
+
"img",
|
6869
|
+
{
|
6870
|
+
loading: "lazy",
|
6871
|
+
alt: "",
|
6872
|
+
...e,
|
6873
|
+
src: n || s,
|
6874
|
+
onError: r
|
6875
|
+
}
|
6876
|
+
) : s })
|
6868
6877
|
);
|
6869
6878
|
}, Ti = ({
|
6870
6879
|
scanToolName: e,
|
@@ -6882,7 +6891,9 @@ const aC = {
|
|
6882
6891
|
imageProps: {
|
6883
6892
|
src: s,
|
6884
6893
|
className: "icon-dim-20-imp",
|
6885
|
-
alt: "scan-tool"
|
6894
|
+
alt: "scan-tool",
|
6895
|
+
height: 20,
|
6896
|
+
width: 20
|
6886
6897
|
},
|
6887
6898
|
fallbackImage: /* @__PURE__ */ t.jsx(Of, { className: "icon-dim-20-imp dc__no-shrink" })
|
6888
6899
|
}
|
@@ -7590,7 +7601,7 @@ const aC = {
|
|
7590
7601
|
return /* @__PURE__ */ t.jsx(si, { className: "icon-dim-16 ic-error-cross-red dc__no-shrink" });
|
7591
7602
|
case "Progressing":
|
7592
7603
|
return /* @__PURE__ */ t.jsx(
|
7593
|
-
|
7604
|
+
Ue,
|
7594
7605
|
{
|
7595
7606
|
fillColor: "var(--Y500)",
|
7596
7607
|
styles: {
|
@@ -8014,7 +8025,7 @@ const aC = {
|
|
8014
8025
|
] }), g = () => {
|
8015
8026
|
const f = $C(c, l.category, l.subCategory, _);
|
8016
8027
|
if (f)
|
8017
|
-
return /* @__PURE__ */ t.jsx(
|
8028
|
+
return /* @__PURE__ */ t.jsx(Qe, { ...f, imageType: Xs.Large });
|
8018
8029
|
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: S } = _ || UC(c, l.category, l.subCategory, u, o), { entities: y, lastScanTimeString: I, scanToolName: v, scanToolUrl: b } = _ || BC(c, l.category, l.subCategory);
|
8019
8030
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
8020
8031
|
y?.length ? /* @__PURE__ */ t.jsx(
|
@@ -8039,7 +8050,7 @@ const aC = {
|
|
8039
8050
|
`${l.category}${l.subCategory}${p}`
|
8040
8051
|
)
|
8041
8052
|
] });
|
8042
|
-
}, h = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(
|
8053
|
+
}, h = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Ue, { size: 24, pageLoader: !0 }) }) : a ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(Lr, { code: a.code }) }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox flex-grow-1 dc__overflow-auto", children: [
|
8043
8054
|
e && /* @__PURE__ */ t.jsx(e, { modalState: l, setModalState: d, scanResult: r }),
|
8044
8055
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-right-n1 h-100" }),
|
8045
8056
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__overflow-auto flex-grow-1", style: { width: "744px" }, children: [
|
@@ -8175,7 +8186,7 @@ const aC = {
|
|
8175
8186
|
const [n, a] = R(!1), [r, o] = R(Lo), { imageScan: i, codeScan: c, kubernetesManifest: l } = e, d = VC(e);
|
8176
8187
|
if (!Ou(d))
|
8177
8188
|
return /* @__PURE__ */ t.jsx(
|
8178
|
-
|
8189
|
+
Qe,
|
8179
8190
|
{
|
8180
8191
|
SvgImage: sd,
|
8181
8192
|
title: Ye.CI_DEATILS_NO_VULNERABILITY_FOUND.TITLE,
|
@@ -8272,7 +8283,7 @@ const aC = {
|
|
8272
8283
|
if (M(() => {
|
8273
8284
|
u && o(u.result.imageScan?.vulnerability?.list?.[0].list?.length);
|
8274
8285
|
}, [u]), d)
|
8275
|
-
return /* @__PURE__ */ t.jsx("div", { className: "security-tab-empty bcn-1", children: /* @__PURE__ */ t.jsx(
|
8286
|
+
return /* @__PURE__ */ t.jsx("div", { className: "security-tab-empty bcn-1", children: /* @__PURE__ */ t.jsx(Ue, {}) });
|
8276
8287
|
if (m)
|
8277
8288
|
return /* @__PURE__ */ t.jsxs("div", { className: "security-tab-empty", children: [
|
8278
8289
|
/* @__PURE__ */ t.jsx("p", { className: "security-tab-empty__title", children: "Failed to fetch vulnerabilities" }),
|
@@ -8780,7 +8791,7 @@ const aC = {
|
|
8780
8791
|
}
|
8781
8792
|
);
|
8782
8793
|
}, Fu = "dc__unset-button-styles dc__content-space px-12 py-8 fs-13 fw-4 lh-20 cursor w-100 flex left br-4", ZC = ({ className: e, userFirstLetter: s, setShowLogOutCard: n, showLogOutCard: a }) => {
|
8783
|
-
const r =
|
8794
|
+
const r = zs(), { viewIsPipelineRBACConfiguredNode: o } = ma(), i = () => {
|
8784
8795
|
document.cookie = "argocd.token=; expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/", r.push("/login");
|
8785
8796
|
}, c = () => {
|
8786
8797
|
n(!a);
|
@@ -8812,7 +8823,7 @@ const aC = {
|
|
8812
8823
|
type: "button",
|
8813
8824
|
children: [
|
8814
8825
|
"Logout",
|
8815
|
-
/* @__PURE__ */ t.jsx(
|
8826
|
+
/* @__PURE__ */ t.jsx(qe, { name: "ic-logout", color: "R500" })
|
8816
8827
|
]
|
8817
8828
|
}
|
8818
8829
|
)
|
@@ -8945,7 +8956,7 @@ const sb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), nb = ({ className:
|
|
8945
8956
|
m(h);
|
8946
8957
|
}, E = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8947
8958
|
" ",
|
8948
|
-
d.map((g, h) => /* @__PURE__ */ t.jsxs(
|
8959
|
+
d.map((g, h) => /* @__PURE__ */ t.jsxs(Hs, { children: [
|
8949
8960
|
/* @__PURE__ */ t.jsxs(
|
8950
8961
|
"a",
|
8951
8962
|
{
|
@@ -9072,7 +9083,7 @@ const sb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), nb = ({ className:
|
|
9072
9083
|
referrerPolicy: "no-referrer"
|
9073
9084
|
}
|
9074
9085
|
) : /* @__PURE__ */ t.jsx("div", { className: "flex h-100", children: /* @__PURE__ */ t.jsx(
|
9075
|
-
|
9086
|
+
Qe,
|
9076
9087
|
{
|
9077
9088
|
title: "Nothing to show",
|
9078
9089
|
subTitle: "An iframe appears here in a parallel universe"
|
@@ -9298,7 +9309,7 @@ const sb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), nb = ({ className:
|
|
9298
9309
|
}
|
9299
9310
|
);
|
9300
9311
|
}, eD = ({ headerName: e }) => {
|
9301
|
-
const s = Tt(), n =
|
9312
|
+
const s = Tt(), n = zs(), a = Ls(), { serverMode: r } = ma(), [o, i] = R(!1), c = () => {
|
9302
9313
|
i((_) => !_);
|
9303
9314
|
}, l = () => {
|
9304
9315
|
n.push(Oe.CHARTS_DISCOVER);
|
@@ -9412,7 +9423,7 @@ class Ri extends fr {
|
|
9412
9423
|
disabled: !!this.props.disabled,
|
9413
9424
|
className: `${this.props.rootClassName}`,
|
9414
9425
|
onClick: this.clickHandler,
|
9415
|
-
children: this.props.isLoading ? /* @__PURE__ */ t.jsx(
|
9426
|
+
children: this.props.isLoading ? /* @__PURE__ */ t.jsx(Ue, {}) : this.props.children
|
9416
9427
|
}
|
9417
9428
|
);
|
9418
9429
|
}
|
@@ -9513,12 +9524,12 @@ const tD = ({
|
|
9513
9524
|
placeholder: a,
|
9514
9525
|
components: {
|
9515
9526
|
IndicatorSeparator: null,
|
9516
|
-
LoadingIndicator:
|
9527
|
+
LoadingIndicator: Ex,
|
9517
9528
|
NoOptionsMessage: x,
|
9518
|
-
GroupHeading:
|
9529
|
+
GroupHeading: Nx,
|
9519
9530
|
ClearIndicator: gb
|
9520
9531
|
},
|
9521
|
-
styles: o ??
|
9532
|
+
styles: o ?? Cx,
|
9522
9533
|
backspaceRemovesValue: !1,
|
9523
9534
|
autoFocus: c
|
9524
9535
|
}
|
@@ -9762,7 +9773,7 @@ const fb = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9762
9773
|
style: { background: e.isFocused ? "var(--N100)" : "transparent" },
|
9763
9774
|
children: [
|
9764
9775
|
/* @__PURE__ */ t.jsx(
|
9765
|
-
|
9776
|
+
ws,
|
9766
9777
|
{
|
9767
9778
|
isChecked: e.isSelected || !1,
|
9768
9779
|
onChange: i,
|
@@ -9904,8 +9915,8 @@ const fb = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9904
9915
|
ERROR: "error",
|
9905
9916
|
CANCELLED: "cancelled",
|
9906
9917
|
UNABLE_TO_FETCH: "unabletofetch",
|
9907
|
-
TIMED_OUT:
|
9908
|
-
WAITING_TO_START:
|
9918
|
+
TIMED_OUT: Ys.TIMED_OUT.toLowerCase(),
|
9919
|
+
WAITING_TO_START: Ys.WAITING_TO_START.toLowerCase()
|
9909
9920
|
}, Sa = {
|
9910
9921
|
MESSAGE: "message",
|
9911
9922
|
START_OF_STREAM: "START_OF_STREAM",
|
@@ -9925,8 +9936,8 @@ const fb = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9925
9936
|
progressing: "var(--O500)",
|
9926
9937
|
initiating: "var(--O500)",
|
9927
9938
|
starting: "var(--O500)",
|
9928
|
-
[
|
9929
|
-
[
|
9939
|
+
[Ys.WAITING_TO_START.toLowerCase()]: "var(--O500)",
|
9940
|
+
[Ys.TIMED_OUT.toLowerCase()]: "var(--R500)",
|
9930
9941
|
succeeded: "var(--G500)",
|
9931
9942
|
running: "var(--O500)",
|
9932
9943
|
failed: "var(--R500)",
|
@@ -10064,7 +10075,7 @@ const Lb = (e, s) => {
|
|
10064
10075
|
default:
|
10065
10076
|
return e;
|
10066
10077
|
}
|
10067
|
-
}, Pb = (e) => e ===
|
10078
|
+
}, Pb = (e) => e === Ys.WAITING_TO_START ? "Waiting to start" : e, kb = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__align-items-center dc__gap-6", children: e }), Mb = ({
|
10068
10079
|
status: e,
|
10069
10080
|
hideIcon: s = !1,
|
10070
10081
|
hideMessage: n = !1,
|
@@ -10076,7 +10087,7 @@ const Lb = (e, s) => {
|
|
10076
10087
|
const c = (e || "").toLowerCase().replace(/ /g, "-"), l = i || e || "", d = () => {
|
10077
10088
|
const m = Lb(c, r), p = wb(c);
|
10078
10089
|
return m ? /* @__PURE__ */ t.jsx(
|
10079
|
-
|
10090
|
+
qe,
|
10080
10091
|
{
|
10081
10092
|
name: m,
|
10082
10093
|
size: a,
|
@@ -10110,7 +10121,7 @@ const Lb = (e, s) => {
|
|
10110
10121
|
const r = s ? Pb(e) : e, o = n ? vn.NOT_AVAILABLE : r ?? "", i = o.toLowerCase().replace(/ /g, "-") === vn.NOT_DEPLOYED || o.toLowerCase() === vn.NOT_DEPLOYED_NO_SPACE, c = s ? vn.JOB_VIEW_NOT_DEPLOYED_MESSAGE : vn.NOT_DEPLOYED_MESSAGE, l = i ? c : o;
|
10111
10122
|
return o ? /* @__PURE__ */ t.jsx(Mb, { status: o, message: l, ...a }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-6", children: [
|
10112
10123
|
/* @__PURE__ */ t.jsx(
|
10113
|
-
|
10124
|
+
qe,
|
10114
10125
|
{
|
10115
10126
|
name: "ic-info-outline",
|
10116
10127
|
size: a.iconSize,
|
@@ -10191,7 +10202,7 @@ const Lb = (e, s) => {
|
|
10191
10202
|
case "unreachable":
|
10192
10203
|
return /* @__PURE__ */ t.jsx(at, { className: "icon-dim-20" });
|
10193
10204
|
case "loading":
|
10194
|
-
return /* @__PURE__ */ t.jsx(
|
10205
|
+
return /* @__PURE__ */ t.jsx(qe, { name: "ic-circle-loader", color: "O500", size: 20 });
|
10195
10206
|
case "disconnect":
|
10196
10207
|
return /* @__PURE__ */ t.jsx(sf, { className: "icon-dim-20" });
|
10197
10208
|
case "time_out":
|
@@ -10250,11 +10261,11 @@ const Lb = (e, s) => {
|
|
10250
10261
|
[Re.NOT_STARTED]: St.INPROGRESS,
|
10251
10262
|
[Re.RUNNING]: St.INPROGRESS
|
10252
10263
|
};
|
10253
|
-
return s[e] ? /* @__PURE__ */ t.jsx(Oi, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(
|
10264
|
+
return s[e] ? /* @__PURE__ */ t.jsx(Oi, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(qe, { name: "ic-help-outline", size: 20, color: "N500" });
|
10254
10265
|
}, Vb = (e) => {
|
10255
10266
|
const s = Li(e);
|
10256
|
-
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(
|
10257
|
-
}, Gb = (e = jr, s = Tb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Yu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e ===
|
10267
|
+
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(qe, { name: "ic-warning", size: 20, color: null }) : Hu(s.workerDetails.status) : /* @__PURE__ */ t.jsx(qe, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx(qe, { name: "ic-help-outline", size: 20, color: "N500" });
|
10268
|
+
}, Gb = (e = jr, s = Tb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Yu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ys.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) => Ss(e) ? Pe(e, "YYYY-MM-DDTHH:mm:ssZ").format(yt.TWELVE_HOURS_FORMAT) : "", Hb = (e) => (e || []).reduce(
|
10258
10269
|
(s, n) => {
|
10259
10270
|
const a = n.health?.status?.toLowerCase() ?? "";
|
10260
10271
|
switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
|
@@ -10525,7 +10536,7 @@ const Lb = (e, s) => {
|
|
10525
10536
|
}
|
10526
10537
|
) : null;
|
10527
10538
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10528
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: rr[s] ? /* @__PURE__ */ t.jsx(
|
10539
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: rr[s] ? /* @__PURE__ */ t.jsx(qe, { size: 20, name: "ic-warning", color: null }) : /* @__PURE__ */ t.jsx(F_, { className: "icon-dim-20 dc__no-shrink scn-7" }) }),
|
10529
10540
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
10530
10541
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
10531
10542
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox cn-9 ${l}`, children: [
|
@@ -10659,7 +10670,7 @@ const Lb = (e, s) => {
|
|
10659
10670
|
envId: A,
|
10660
10671
|
[I]: e
|
10661
10672
|
};
|
10662
|
-
return `${
|
10673
|
+
return `${Fs(h, B)}/${C}`;
|
10663
10674
|
}, T = () => {
|
10664
10675
|
b?.current && b.current.scrollIntoView({ behavior: "smooth" });
|
10665
10676
|
};
|
@@ -10761,8 +10772,8 @@ const Lb = (e, s) => {
|
|
10761
10772
|
renderRunSource: l,
|
10762
10773
|
resourceId: d
|
10763
10774
|
}) => {
|
10764
|
-
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } =
|
10765
|
-
e === De.CI ? (r({ offset: 0, size: 20 }), _(
|
10775
|
+
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = zs(), { path: x } = Jt(), E = (S) => {
|
10776
|
+
e === De.CI ? (r({ offset: 0, size: 20 }), _(Fs(x, { appId: m, pipelineId: S.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Fs(x, { envId: p, pipelineId: S.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Fs(x, { envId: p, appId: S.value, pipelineId: S.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Fs(x, { appId: m, envId: S.value, pipelineId: S.pipelineId })));
|
10766
10777
|
}, g = () => {
|
10767
10778
|
is.event({
|
10768
10779
|
category: "pagination",
|
@@ -10772,9 +10783,9 @@ const Lb = (e, s) => {
|
|
10772
10783
|
}), r({ offset: n.size, size: 20 });
|
10773
10784
|
}, h = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, f = s?.find((S) => S.value === h()) ?? null;
|
10774
10785
|
s?.sort((S, y) => S.label > y.label ? 1 : -1);
|
10775
|
-
const N = s?.filter((S) => !S.deploymentAppDeleteRequest), C = () => e === De.GROUP_CI || e === De.GROUP_CD ? eo.APPLICATION : e === De.CI ? eo.PIPELINE : eo.ENVIRONMENT, A = (S) => (S.selectProps.styles.option =
|
10786
|
+
const N = s?.filter((S) => !S.deploymentAppDeleteRequest), C = () => e === De.GROUP_CI || e === De.GROUP_CD ? eo.APPLICATION : e === De.CI ? eo.PIPELINE : eo.ENVIRONMENT, A = (S) => (S.selectProps.styles.option = xx(), /* @__PURE__ */ t.jsx(Ve.Option, { ...S, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10776
10787
|
(e === De.CI || e === De.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
10777
|
-
|
10788
|
+
qe,
|
10778
10789
|
{
|
10779
10790
|
name: S.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
|
10780
10791
|
size: 20,
|
@@ -10949,7 +10960,7 @@ const Lb = (e, s) => {
|
|
10949
10960
|
try {
|
10950
10961
|
const u = await nT(d);
|
10951
10962
|
if (u.status === rc.OK) {
|
10952
|
-
o &&
|
10963
|
+
o && Me.showToast({
|
10953
10964
|
variant: Se.info,
|
10954
10965
|
title: "Preparing file for download",
|
10955
10966
|
description: "File will be downloaded when it is available."
|
@@ -10957,7 +10968,7 @@ const Lb = (e, s) => {
|
|
10957
10968
|
const m = await u.blob(), p = URL.createObjectURL(m), _ = document.createElement("a");
|
10958
10969
|
_.href = p, _.download = i || jN(u.headers) || "file.tgz", document.body.appendChild(_), _.click(), setTimeout(() => {
|
10959
10970
|
URL.revokeObjectURL(p), document.body.removeChild(_);
|
10960
|
-
}, 0), c &&
|
10971
|
+
}, 0), c && Me.showToast({
|
10961
10972
|
variant: Se.success,
|
10962
10973
|
description: l
|
10963
10974
|
});
|
@@ -11151,7 +11162,7 @@ const Lb = (e, s) => {
|
|
11151
11162
|
zn(a) ? [] : [a]
|
11152
11163
|
), { stickyElementRef: r, isStuck: o };
|
11153
11164
|
}, cT = () => /* @__PURE__ */ t.jsx(
|
11154
|
-
|
11165
|
+
Qe,
|
11155
11166
|
{
|
11156
11167
|
SvgImage: fd,
|
11157
11168
|
title: Ye.CI_PROGRESS_VIEW.TITLE,
|
@@ -11254,7 +11265,7 @@ const Lb = (e, s) => {
|
|
11254
11265
|
if (!a && !i) {
|
11255
11266
|
if (C === ye.FAILED || C === ye.CANCELLED || C === ye.ERROR || C === ye.TIMED_OUT)
|
11256
11267
|
return /* @__PURE__ */ t.jsx(
|
11257
|
-
|
11268
|
+
Qe,
|
11258
11269
|
{
|
11259
11270
|
title: c ? Ye.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifacts : Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsGenerated,
|
11260
11271
|
subTitle: c ? Ye.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifactsError : Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError
|
@@ -11262,7 +11273,7 @@ const Lb = (e, s) => {
|
|
11262
11273
|
);
|
11263
11274
|
if (C === ye.SUCCEEDED)
|
11264
11275
|
return /* @__PURE__ */ t.jsx(
|
11265
|
-
|
11276
|
+
Qe,
|
11266
11277
|
{
|
11267
11278
|
title: Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsFound,
|
11268
11279
|
subTitle: Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsFoundError,
|
@@ -11442,7 +11453,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11442
11453
|
n
|
11443
11454
|
), r.values = a, r;
|
11444
11455
|
}, xD = (e, s, n, a) => {
|
11445
|
-
const r =
|
11456
|
+
const r = Je(
|
11446
11457
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${G.CONFIG_CD_PIPELINE}/${li.v1}`,
|
11447
11458
|
{
|
11448
11459
|
baseConfigurationId: n,
|
@@ -11459,7 +11470,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11459
11470
|
releaseId: a,
|
11460
11471
|
showCurrentReleaseDeployments: r = !1
|
11461
11472
|
}) => {
|
11462
|
-
const o =
|
11473
|
+
const o = Je(
|
11463
11474
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${dt.cdPipeline}/${li.v1}`,
|
11464
11475
|
{
|
11465
11476
|
filterCriteria: Ub({ appId: e, envId: s, releaseId: a, showCurrentReleaseDeployments: r }),
|
@@ -11566,7 +11577,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11566
11577
|
] })
|
11567
11578
|
] });
|
11568
11579
|
}, Zu = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
11569
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
11580
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(qs, { className: "icon-dim-20" }) }),
|
11570
11581
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
11571
11582
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
11572
11583
|
] }) }), NT = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -11878,7 +11889,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11878
11889
|
)
|
11879
11890
|
] }, `logs-${F}`)
|
11880
11891
|
)),
|
11881
|
-
j && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(
|
11892
|
+
j && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(Ue, {}) })
|
11882
11893
|
] });
|
11883
11894
|
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${Nn(At.dark)}`, children: e.podStatus !== to.PENDING && u && (!s || !e.blobStorageEnabled) ? CT(s) : Ie() });
|
11884
11895
|
}, ST = ({
|
@@ -11907,7 +11918,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11907
11918
|
}
|
11908
11919
|
) : null;
|
11909
11920
|
return /* @__PURE__ */ t.jsx("div", { className: "dc__position-rel", style: { backgroundColor: "var(--bg-tertiary)" }, children: /* @__PURE__ */ t.jsx(
|
11910
|
-
|
11921
|
+
Qe,
|
11911
11922
|
{
|
11912
11923
|
image: e || hd,
|
11913
11924
|
classname: "fs-16",
|
@@ -11973,17 +11984,7 @@ const hD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11973
11984
|
disabled: !1,
|
11974
11985
|
onChange: u,
|
11975
11986
|
children: [
|
11976
|
-
/* @__PURE__ */ t.jsx(
|
11977
|
-
It.Radio,
|
11978
|
-
{
|
11979
|
-
value: i.status,
|
11980
|
-
tippyPlacement: "top",
|
11981
|
-
tippyContent: i.status,
|
11982
|
-
tippyClass: "w-100 dc__first-letter-capitalize",
|
11983
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "dc__first-letter-capitalize", children: `${i.status} (${i.count})` })
|
11984
|
-
},
|
11985
|
-
i.status
|
11986
|
-
),
|
11987
|
+
/* @__PURE__ */ t.jsx(It.Radio, { value: i.status, children: /* @__PURE__ */ t.jsx("span", { className: "dc__first-letter-capitalize", children: `${i.status} (${i.count})` }) }, i.status),
|
11987
11988
|
d.map(({ status: p, count: _ }) => /* @__PURE__ */ t.jsxs(
|
11988
11989
|
It.Radio,
|
11989
11990
|
{
|
@@ -12194,7 +12195,7 @@ const RT = (e, s) => {
|
|
12194
12195
|
showConfigDriftInfo: n = !1,
|
12195
12196
|
onClose: a
|
12196
12197
|
}) => {
|
12197
|
-
const r =
|
12198
|
+
const r = zs(), o = Qu.getAppDetails(), [i, c] = R(So), [l, d] = R([]), { appId: u, environmentId: m } = o, p = () => {
|
12198
12199
|
a(), r.push(`${Oe.APP}/${u}${Oe.DETAILS}/${m}/${Oe.APP_DETAILS_K8}/${Oe.CONFIG_DRIFT}`);
|
12199
12200
|
}, _ = te(
|
12200
12201
|
() => IN(o.resourceTree?.nodes || [], o.resourceTree?.podMetadata || []),
|
@@ -12282,7 +12283,7 @@ const RT = (e, s) => {
|
|
12282
12283
|
},
|
12283
12284
|
`${g.kind}/${g.name}`
|
12284
12285
|
)) : /* @__PURE__ */ t.jsx("div", { className: "flex dc__height-inherit mh-300", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__align-center", children: [
|
12285
|
-
/* @__PURE__ */ t.jsx(
|
12286
|
+
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-20" }),
|
12286
12287
|
/* @__PURE__ */ t.jsx("div", { children: "Checking resources status" })
|
12287
12288
|
] }) }) }),
|
12288
12289
|
s && /* @__PURE__ */ t.jsxs("div", { className: "dc__position-fixed bg__primary flexbox dc__content-space dc__border-top p-16 fs-13 fw-6 footer", children: [
|
@@ -12303,7 +12304,7 @@ const RT = (e, s) => {
|
|
12303
12304
|
] })
|
12304
12305
|
] })
|
12305
12306
|
] });
|
12306
|
-
},
|
12307
|
+
}, Ps = ({
|
12307
12308
|
type: e,
|
12308
12309
|
hideVerticalConnector: s,
|
12309
12310
|
deploymentDetailedData: n
|
@@ -12541,7 +12542,7 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12541
12542
|
"data-testid": "deployment-history-steps-status",
|
12542
12543
|
children: [
|
12543
12544
|
/* @__PURE__ */ t.jsx(
|
12544
|
-
|
12545
|
+
Ps,
|
12545
12546
|
{
|
12546
12547
|
type: z.DEPLOYMENT_INITIATED,
|
12547
12548
|
deploymentDetailedData: e
|
@@ -12549,7 +12550,7 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12549
12550
|
),
|
12550
12551
|
s && e.deploymentStatusBreakdown[z.HELM_PACKAGE_GENERATED] ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12551
12552
|
/* @__PURE__ */ t.jsx(
|
12552
|
-
|
12553
|
+
Ps,
|
12553
12554
|
{
|
12554
12555
|
type: z.HELM_PACKAGE_GENERATED,
|
12555
12556
|
hideVerticalConnector: !r,
|
@@ -12557,7 +12558,7 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12557
12558
|
}
|
12558
12559
|
),
|
12559
12560
|
r && /* @__PURE__ */ t.jsx(
|
12560
|
-
|
12561
|
+
Ps,
|
12561
12562
|
{
|
12562
12563
|
type: z.HELM_MANIFEST_PUSHED_TO_HELM_REPO,
|
12563
12564
|
hideVerticalConnector: !0,
|
@@ -12574,7 +12575,7 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12574
12575
|
}
|
12575
12576
|
),
|
12576
12577
|
/* @__PURE__ */ t.jsx(
|
12577
|
-
|
12578
|
+
Ps,
|
12578
12579
|
{
|
12579
12580
|
type: z.GIT_COMMIT,
|
12580
12581
|
deploymentDetailedData: e
|
@@ -12589,7 +12590,7 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12589
12590
|
}
|
12590
12591
|
),
|
12591
12592
|
/* @__PURE__ */ t.jsx(
|
12592
|
-
|
12593
|
+
Ps,
|
12593
12594
|
{
|
12594
12595
|
type: z.ARGOCD_SYNC,
|
12595
12596
|
deploymentDetailedData: e
|
@@ -12604,14 +12605,14 @@ const OT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12604
12605
|
}
|
12605
12606
|
),
|
12606
12607
|
/* @__PURE__ */ t.jsx(
|
12607
|
-
|
12608
|
+
Ps,
|
12608
12609
|
{
|
12609
12610
|
type: z.KUBECTL_APPLY,
|
12610
12611
|
deploymentDetailedData: e
|
12611
12612
|
}
|
12612
12613
|
),
|
12613
12614
|
/* @__PURE__ */ t.jsx(
|
12614
|
-
|
12615
|
+
Ps,
|
12615
12616
|
{
|
12616
12617
|
type: z.APP_HEALTH,
|
12617
12618
|
hideVerticalConnector: !0,
|
@@ -12636,7 +12637,7 @@ const DT = ({
|
|
12636
12637
|
processVirtualEnvironmentDeploymentData: c,
|
12637
12638
|
renderDeploymentApprovalInfo: l
|
12638
12639
|
}) => {
|
12639
|
-
const d =
|
12640
|
+
const d = zs(), { url: u } = Jt(), { appId: m, envId: p, triggerId: _ } = Tt(), [x, E] = R(
|
12640
12641
|
e?.toUpperCase() !== z.ABORTED
|
12641
12642
|
), g = Y(i), h = g.current && c ? c() : Bc(), [f, N] = R(h), C = () => {
|
12642
12643
|
Aa && clearTimeout(Aa);
|
@@ -12702,14 +12703,14 @@ const DT = ({
|
|
12702
12703
|
className: "flexbox flex-grow-1 dc__content-center",
|
12703
12704
|
"data-testid": "deployment-history-steps-failed-message",
|
12704
12705
|
children: /* @__PURE__ */ t.jsx(
|
12705
|
-
|
12706
|
+
Qe,
|
12706
12707
|
{
|
12707
12708
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
|
12708
12709
|
subTitle: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
|
12709
12710
|
}
|
12710
12711
|
)
|
12711
12712
|
}
|
12712
|
-
) : x ? /* @__PURE__ */ t.jsx(
|
12713
|
+
) : x ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : I();
|
12713
12714
|
}, Di = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t.jsx(bd, { children: e && /* @__PURE__ */ t.jsx(
|
12714
12715
|
mn.div,
|
12715
12716
|
{
|
@@ -12784,7 +12785,7 @@ const DT = ({
|
|
12784
12785
|
l
|
12785
12786
|
);
|
12786
12787
|
};
|
12787
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bg__primary", children: e.map(({ id: c, header: l, headerIconConfig: d, items: u, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(
|
12788
|
+
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bg__primary", children: e.map(({ id: c, header: l, headerIconConfig: d, items: u, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(Hs, { children: [
|
12788
12789
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4 py-6 px-8 br-4 dc__hover-n50", children: [
|
12789
12790
|
/* @__PURE__ */ t.jsxs(
|
12790
12791
|
"button",
|
@@ -12952,7 +12953,7 @@ const em = {
|
|
12952
12953
|
!!c?.tabs.length && h(),
|
12953
12954
|
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children: N() })
|
12954
12955
|
] });
|
12955
|
-
},
|
12956
|
+
}, Qe = ({
|
12956
12957
|
title: e,
|
12957
12958
|
image: s,
|
12958
12959
|
subTitle: n,
|
@@ -13023,8 +13024,8 @@ const em = {
|
|
13023
13024
|
]
|
13024
13025
|
}
|
13025
13026
|
);
|
13026
|
-
},
|
13027
|
-
const { push: c } =
|
13027
|
+
}, ks = ({ code: e, image: s, title: n, subTitle: a, imageType: r, redirectURL: o, reload: i }) => {
|
13028
|
+
const { push: c } = zs(), l = () => {
|
13028
13029
|
c(o || `/${G.APP_LIST}`);
|
13029
13030
|
}, d = (x) => {
|
13030
13031
|
switch (x) {
|
@@ -13057,7 +13058,7 @@ const em = {
|
|
13057
13058
|
isButtonAvailable: p
|
13058
13059
|
} = d(e), _ = () => /* @__PURE__ */ t.jsx("button", { type: "button", className: "flex cta h-36", onClick: u, "data-testid": "empty-screen-take-me-home", children: m });
|
13059
13060
|
return /* @__PURE__ */ t.jsx(
|
13060
|
-
|
13061
|
+
Qe,
|
13061
13062
|
{
|
13062
13063
|
image: s,
|
13063
13064
|
title: n,
|
@@ -13078,7 +13079,7 @@ const em = {
|
|
13078
13079
|
switch (e) {
|
13079
13080
|
case He.BAD_REQUEST:
|
13080
13081
|
return /* @__PURE__ */ t.jsx(
|
13081
|
-
|
13082
|
+
ks,
|
13082
13083
|
{
|
13083
13084
|
code: He.BAD_REQUEST,
|
13084
13085
|
title: Ke.BAD_REQUEST,
|
@@ -13090,7 +13091,7 @@ const em = {
|
|
13090
13091
|
);
|
13091
13092
|
case He.UNAUTHORIZED:
|
13092
13093
|
return /* @__PURE__ */ t.jsx(
|
13093
|
-
|
13094
|
+
ks,
|
13094
13095
|
{
|
13095
13096
|
code: He.UNAUTHORIZED,
|
13096
13097
|
title: Ke.UNAUTHORIZED,
|
@@ -13101,7 +13102,7 @@ const em = {
|
|
13101
13102
|
);
|
13102
13103
|
case He.PERMISSION_DENIED:
|
13103
13104
|
return /* @__PURE__ */ t.jsx(
|
13104
|
-
|
13105
|
+
ks,
|
13105
13106
|
{
|
13106
13107
|
code: He.PERMISSION_DENIED,
|
13107
13108
|
title: Ke.FORBIDDEN,
|
@@ -13112,7 +13113,7 @@ const em = {
|
|
13112
13113
|
);
|
13113
13114
|
case He.NOT_FOUND:
|
13114
13115
|
return /* @__PURE__ */ t.jsx(
|
13115
|
-
|
13116
|
+
ks,
|
13116
13117
|
{
|
13117
13118
|
code: He.NOT_FOUND,
|
13118
13119
|
title: Ke.PAGE_NOT_FOUND,
|
@@ -13124,7 +13125,7 @@ const em = {
|
|
13124
13125
|
);
|
13125
13126
|
case He.INTERNAL_SERVER_ERROR:
|
13126
13127
|
return /* @__PURE__ */ t.jsx(
|
13127
|
-
|
13128
|
+
ks,
|
13128
13129
|
{
|
13129
13130
|
code: He.INTERNAL_SERVER_ERROR,
|
13130
13131
|
title: Ke.INTERNAL_SERVER_ERROR,
|
@@ -13136,7 +13137,7 @@ const em = {
|
|
13136
13137
|
);
|
13137
13138
|
case He.BAD_GATEWAY:
|
13138
13139
|
return /* @__PURE__ */ t.jsx(
|
13139
|
-
|
13140
|
+
ks,
|
13140
13141
|
{
|
13141
13142
|
code: He.BAD_GATEWAY,
|
13142
13143
|
title: Ke.BAD_GATEWAY,
|
@@ -13148,7 +13149,7 @@ const em = {
|
|
13148
13149
|
);
|
13149
13150
|
case He.SERVICE_TEMPORARY_UNAVAILABLE:
|
13150
13151
|
return /* @__PURE__ */ t.jsx(
|
13151
|
-
|
13152
|
+
ks,
|
13152
13153
|
{
|
13153
13154
|
code: He.SERVICE_TEMPORARY_UNAVAILABLE,
|
13154
13155
|
title: Ke.SERVICE_TEMPORARY_UNAVAILABLE,
|
@@ -13819,12 +13820,12 @@ const em = {
|
|
13819
13820
|
}, [i]);
|
13820
13821
|
const x = (N) => N.map((C, A) => {
|
13821
13822
|
if (C.type === "string")
|
13822
|
-
return /* @__PURE__ */ t.jsxs(
|
13823
|
+
return /* @__PURE__ */ t.jsxs(Hs, { children: [
|
13823
13824
|
typeof C.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
|
13824
13825
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
13825
13826
|
] }, C.id);
|
13826
13827
|
const { selectPickerProps: S } = C;
|
13827
|
-
return /* @__PURE__ */ t.jsxs(
|
13828
|
+
return /* @__PURE__ */ t.jsxs(Hs, { children: [
|
13828
13829
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
13829
13830
|
Xt,
|
13830
13831
|
{
|
@@ -13919,7 +13920,7 @@ const em = {
|
|
13919
13920
|
},
|
13920
13921
|
`${N}-${S}`
|
13921
13922
|
);
|
13922
|
-
}), f = () => e ? /* @__PURE__ */ t.jsx(
|
13923
|
+
}), f = () => e ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
13923
13924
|
Lr,
|
13924
13925
|
{
|
13925
13926
|
code: s.code,
|
@@ -14190,7 +14191,7 @@ const em = {
|
|
14190
14191
|
scrollIntoViewId: `${x}${E ? `-${E}` : ""}`,
|
14191
14192
|
navHelpText: Q(),
|
14192
14193
|
isNavHelpTextShowingError: u,
|
14193
|
-
goBackURL:
|
14194
|
+
goBackURL: Fs(p.split("/:resourceType")[0], { ..._ }),
|
14194
14195
|
selectorsConfig: q,
|
14195
14196
|
sortingConfig: Ie,
|
14196
14197
|
scopeVariablesConfig: H
|
@@ -14234,7 +14235,7 @@ const em = {
|
|
14234
14235
|
return q.status !== "fulfilled" || !q.value || q.value.forEach((de, Ie) => {
|
14235
14236
|
Q[Ie].status !== "fulfilled" || !Q[Ie].value || Q[Ie].value.result.isAppAdmin || (Q[Ie].value.result.secretsData = de.secretsData);
|
14236
14237
|
}), Q;
|
14237
|
-
}, [x, f]), b = (X, q) => `${
|
14238
|
+
}, [x, f]), b = (X, q) => `${Fs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`, O = te(() => {
|
14238
14239
|
if (!y && I) {
|
14239
14240
|
const X = g && I[1].status === "fulfilled" ? I[1].value.result : {
|
14240
14241
|
configMapData: null,
|
@@ -14270,13 +14271,13 @@ const em = {
|
|
14270
14271
|
reload: v
|
14271
14272
|
};
|
14272
14273
|
return I && gl(I[0]) ? /* @__PURE__ */ t.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ t.jsx(
|
14273
|
-
|
14274
|
+
Qe,
|
14274
14275
|
{
|
14275
14276
|
title: "Data not available",
|
14276
14277
|
subTitle: "Configurations used for this deployment execution is not available"
|
14277
14278
|
}
|
14278
14279
|
) }) : /* @__PURE__ */ t.jsxs(Ql, { children: [
|
14279
|
-
/* @__PURE__ */ t.jsx(
|
14280
|
+
/* @__PURE__ */ t.jsx(Bs, { path: `${l}/:resourceType(${Object.values(ot).join("|")})/:resourceName?`, children: /* @__PURE__ */ t.jsx(
|
14280
14281
|
nS,
|
14281
14282
|
{
|
14282
14283
|
...O,
|
@@ -14296,7 +14297,7 @@ const em = {
|
|
14296
14297
|
isCompareDeploymentConfigNotAvailable: w
|
14297
14298
|
}
|
14298
14299
|
) }),
|
14299
|
-
/* @__PURE__ */ t.jsx(
|
14300
|
+
/* @__PURE__ */ t.jsx(Bs, { children: T && !y ? /* @__PURE__ */ t.jsx(Lr, { code: V.code, reload: V.reload }) : /* @__PURE__ */ t.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: B ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14300
14301
|
/* @__PURE__ */ t.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: L ? "Configurations used for this deployment trigger" : "Showing configuration change with respect to previous deployment" }),
|
14301
14302
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
14302
14303
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(j).map(
|
@@ -14849,7 +14850,7 @@ function Zs() {
|
|
14849
14850
|
throw new Error("cannot be rendered outside the component");
|
14850
14851
|
return e;
|
14851
14852
|
}
|
14852
|
-
const fS = 100,
|
14853
|
+
const fS = 100, et = Ce.memo(
|
14853
14854
|
({
|
14854
14855
|
value: e,
|
14855
14856
|
mode: s = Fe.JSON,
|
@@ -15128,7 +15129,7 @@ const fS = 100, Qe = Ce.memo(
|
|
15128
15129
|
e.text,
|
15129
15130
|
e.children
|
15130
15131
|
] }), bS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
|
15131
|
-
/* @__PURE__ */ t.jsx(
|
15132
|
+
/* @__PURE__ */ t.jsx(qs, { className: "code-editor__information-info-icon" }),
|
15132
15133
|
e.text,
|
15133
15134
|
e.children
|
15134
15135
|
] }), TS = () => {
|
@@ -15145,7 +15146,7 @@ const fS = 100, Qe = Ce.memo(
|
|
15145
15146
|
] });
|
15146
15147
|
}, vS = ({ className: e = "", style: s = {}, customLoader: n }) => {
|
15147
15148
|
const { height: a } = Zs();
|
15148
|
-
return n || /* @__PURE__ */ t.jsx("div", { className: `code-editor code-editor--placeholder disabled ${e}`, style: { ...s }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", style: { height: a || "100%" }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
15149
|
+
return n || /* @__PURE__ */ t.jsx("div", { className: `code-editor code-editor--placeholder disabled ${e}`, style: { ...s }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", style: { height: a || "100%" }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) }) }) });
|
15149
15150
|
}, AS = ({
|
15150
15151
|
children: e,
|
15151
15152
|
flexExpand: s,
|
@@ -15159,15 +15160,15 @@ const fS = 100, Qe = Ce.memo(
|
|
15159
15160
|
children: e
|
15160
15161
|
}
|
15161
15162
|
);
|
15162
|
-
|
15163
|
-
|
15164
|
-
|
15165
|
-
|
15166
|
-
|
15167
|
-
|
15168
|
-
|
15169
|
-
|
15170
|
-
|
15163
|
+
et.LanguageChanger = xS;
|
15164
|
+
et.ThemeChanger = gS;
|
15165
|
+
et.ValidationError = ES;
|
15166
|
+
et.Clipboard = TS;
|
15167
|
+
et.Header = hS;
|
15168
|
+
et.Warning = NS;
|
15169
|
+
et.ErrorBar = CS;
|
15170
|
+
et.Information = bS;
|
15171
|
+
et.Container = AS;
|
15171
15172
|
const IS = () => (e) => {
|
15172
15173
|
const s = [], n = e.state.doc.toString();
|
15173
15174
|
try {
|
@@ -15317,7 +15318,7 @@ const IS = () => (e) => {
|
|
15317
15318
|
}, DS = () => {
|
15318
15319
|
const e = document.createElement("button");
|
15319
15320
|
return Sd(
|
15320
|
-
/* @__PURE__ */ t.jsx(ie, { content: "Revert this chunk", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
15321
|
+
/* @__PURE__ */ t.jsx(ie, { content: "Revert this chunk", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(qe, { name: "ic-arrow-right", color: "N600", size: 20 }) }) }),
|
15321
15322
|
e
|
15322
15323
|
), e;
|
15323
15324
|
}, bl = (e, s = !1) => {
|
@@ -15919,7 +15920,7 @@ const IS = () => (e) => {
|
|
15919
15920
|
{
|
15920
15921
|
className: `code-editor__information fs-12 fw-4 lh-16 cn-9 py-8 px-16 bcb-1 dc__border-bottom dc__height-auto ${e || ""}`,
|
15921
15922
|
children: [
|
15922
|
-
/* @__PURE__ */ t.jsx(
|
15923
|
+
/* @__PURE__ */ t.jsx(qs, { className: "code-editor__status-info-icon" }),
|
15923
15924
|
n,
|
15924
15925
|
s
|
15925
15926
|
]
|
@@ -16129,7 +16130,7 @@ const IS = () => (e) => {
|
|
16129
16130
|
}, 100);
|
16130
16131
|
}, [C, N, I]);
|
16131
16132
|
const { codeEditorClassName: ce, codeEditorHeight: le, codeEditorParentClassName: pe } = jS(r);
|
16132
|
-
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: le }, children: /* @__PURE__ */ t.jsx(
|
16133
|
+
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: le }, children: /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) }) : A ? /* @__PURE__ */ t.jsxs("div", { className: `flexbox w-100 ${X} ${pe}`, children: [
|
16133
16134
|
/* @__PURE__ */ t.jsx(
|
16134
16135
|
"div",
|
16135
16136
|
{
|
@@ -16232,7 +16233,7 @@ const IS = () => (e) => {
|
|
16232
16233
|
F(g);
|
16233
16234
|
}, [g]), M(
|
16234
16235
|
() => {
|
16235
|
-
Q(
|
16236
|
+
Q(Ks());
|
16236
16237
|
},
|
16237
16238
|
// Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
|
16238
16239
|
[x, l, v, b, o, r]
|
@@ -16338,10 +16339,10 @@ const Zt = () => window._env_.FEATURE_CODE_MIRROR_ENABLE, bt = ({
|
|
16338
16339
|
codeMirrorProps: s,
|
16339
16340
|
children: n,
|
16340
16341
|
...a
|
16341
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt, { ...s, ...a, children: n }) : /* @__PURE__ */ t.jsx(
|
16342
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt, { ...s, ...a, children: n }) : /* @__PURE__ */ t.jsx(et, { ...e, ...a, children: n }), pv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.LanguageChanger, {}), _v = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ThemeChanger, {}), fv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ValidationError, {}), hv = () => Zt() ? /* @__PURE__ */ t.jsx(Rt.Clipboard, {}) : /* @__PURE__ */ t.jsx(et.Clipboard, {}), gv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Header, { ...e }) : /* @__PURE__ */ t.jsx(et.Header, { ...e }), xv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Warning, { ...e }) : /* @__PURE__ */ t.jsx(et.Warning, { ...e }), Ev = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.ErrorBar, { ...e }) : /* @__PURE__ */ t.jsx(et.ErrorBar, { ...e }), Nv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Information, { ...e }) : /* @__PURE__ */ t.jsx(et.Information, { ...e }), Cv = ({
|
16342
16343
|
overflowHidden: e,
|
16343
16344
|
...s
|
16344
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Container, { ...s }) : /* @__PURE__ */ t.jsx(
|
16345
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Container, { ...s }) : /* @__PURE__ */ t.jsx(et.Container, { overflowHidden: e, ...s });
|
16345
16346
|
bt.LanguageChanger = pv;
|
16346
16347
|
bt.ThemeChanger = _v;
|
16347
16348
|
bt.ValidationError = fv;
|
@@ -16401,7 +16402,7 @@ const bv = ({
|
|
16401
16402
|
] });
|
16402
16403
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
16403
16404
|
!n && /* @__PURE__ */ t.jsxs("div", { className: "bcb-1 eb-2 pt-8 pb-8 br-4 flexbox pl-4 cn-9 fs-13 mt-16 mb-16 mr-20 ml-20", children: [
|
16404
|
-
/* @__PURE__ */ t.jsx(
|
16405
|
+
/* @__PURE__ */ t.jsx(qs, { className: "mr-8 ml-14 icon-dim-20" }),
|
16405
16406
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
16406
16407
|
vt[o.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
16407
16408
|
i ? ` “${i}”` : "",
|
@@ -16475,7 +16476,7 @@ const bv = ({
|
|
16475
16476
|
className: "git-commit-info-generic__header px-16 py-12 dc__box-shadow fs-12 fw-6 dc__gap-4",
|
16476
16477
|
style: r,
|
16477
16478
|
children: [
|
16478
|
-
/* @__PURE__ */ t.jsx(
|
16479
|
+
/* @__PURE__ */ t.jsx(qe, { name: Tv(s), size: 20, color: null }),
|
16479
16480
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left left dc__gap-4 fs-13", children: [
|
16480
16481
|
/* @__PURE__ */ t.jsx(
|
16481
16482
|
"div",
|
@@ -16754,7 +16755,7 @@ const bv = ({
|
|
16754
16755
|
const { isSuperAdmin: f } = ru();
|
16755
16756
|
if (!s?.length || !Object.keys(e ?? {}).length)
|
16756
16757
|
return /* @__PURE__ */ t.jsx(
|
16757
|
-
|
16758
|
+
Qe,
|
16758
16759
|
{
|
16759
16760
|
title: Ye.DATA_NOT_AVAILABLE,
|
16760
16761
|
subTitle: Ye.DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE.SUBTITLE
|
@@ -17109,10 +17110,10 @@ const yv = (e) => {
|
|
17109
17110
|
setProps: a
|
17110
17111
|
};
|
17111
17112
|
}, []), /* @__PURE__ */ t.jsx(cu, { ignoreTags: ["button"], children: /* @__PURE__ */ t.jsx(bd, { children: !!e && /* @__PURE__ */ t.jsx(Dv, { ...n }) }) });
|
17112
|
-
},
|
17113
|
+
}, Ws = (e) => {
|
17113
17114
|
const { setModalKey: s, settersRef: n } = Tm();
|
17114
17115
|
return M(() => {
|
17115
|
-
const a =
|
17116
|
+
const a = Ks();
|
17116
17117
|
return s(a), () => {
|
17117
17118
|
s((r) => r === a ? "" : r);
|
17118
17119
|
};
|
@@ -17120,7 +17121,7 @@ const yv = (e) => {
|
|
17120
17121
|
n.current.setProps(e);
|
17121
17122
|
}, [e]), null;
|
17122
17123
|
}, Pv = ({ title: e, component: s, subtitle: n, closeConfirmationModal: a }) => /* @__PURE__ */ t.jsx(
|
17123
|
-
|
17124
|
+
Ws,
|
17124
17125
|
{
|
17125
17126
|
variant: Yt.info,
|
17126
17127
|
title: `Cannot delete ${s} '${e}'`,
|
@@ -17147,7 +17148,7 @@ const yv = (e) => {
|
|
17147
17148
|
/* @__PURE__ */ t.jsx("p", { className: "m-0", children: "Do you want to force delete?" })
|
17148
17149
|
] });
|
17149
17150
|
return /* @__PURE__ */ t.jsx(
|
17150
|
-
|
17151
|
+
Ws,
|
17151
17152
|
{
|
17152
17153
|
variant: Yt.delete,
|
17153
17154
|
title: e,
|
@@ -17185,7 +17186,7 @@ const yv = (e) => {
|
|
17185
17186
|
const [x, E] = R(!1), [g, h] = R(!1), [f, N] = R(u), [C, A] = R(o), S = async (T) => {
|
17186
17187
|
T && Ne(T), A(!0);
|
17187
17188
|
try {
|
17188
|
-
await i(),
|
17189
|
+
await i(), Me.showToast({
|
17189
17190
|
variant: Se.success,
|
17190
17191
|
description: p || "Successfully deleted"
|
17191
17192
|
}), A(!1), l();
|
@@ -17211,7 +17212,7 @@ const yv = (e) => {
|
|
17211
17212
|
closeConfirmationModal: I
|
17212
17213
|
}
|
17213
17214
|
), O = () => /* @__PURE__ */ t.jsx(
|
17214
|
-
|
17215
|
+
Ws,
|
17215
17216
|
{
|
17216
17217
|
variant: Yt.delete,
|
17217
17218
|
title: `Delete ${n} '${e}'`,
|
@@ -17269,7 +17270,7 @@ const yv = (e) => {
|
|
17269
17270
|
async function _() {
|
17270
17271
|
r(!0);
|
17271
17272
|
try {
|
17272
|
-
await p(c.status),
|
17273
|
+
await p(c.status), Me.showToast({
|
17273
17274
|
variant: Se.success,
|
17274
17275
|
description: "Build Aborted"
|
17275
17276
|
}), l({
|
@@ -17316,7 +17317,7 @@ const yv = (e) => {
|
|
17316
17317
|
] })
|
17317
17318
|
] }),
|
17318
17319
|
o && /* @__PURE__ */ t.jsx(
|
17319
|
-
|
17320
|
+
Ws,
|
17320
17321
|
{
|
17321
17322
|
variant: Yt.warning,
|
17322
17323
|
title: s === De.CD ? `Abort ${e.toLowerCase()}-deployment?` : "Abort build?",
|
@@ -17337,7 +17338,7 @@ const yv = (e) => {
|
|
17337
17338
|
}
|
17338
17339
|
),
|
17339
17340
|
c.status && /* @__PURE__ */ t.jsxs(
|
17340
|
-
|
17341
|
+
Ws,
|
17341
17342
|
{
|
17342
17343
|
variant: Yt.warning,
|
17343
17344
|
title: "Could not abort build!",
|
@@ -17416,7 +17417,7 @@ const yv = (e) => {
|
|
17416
17417
|
/* @__PURE__ */ t.jsx(t.Fragment, { children: o && /* @__PURE__ */ t.jsx(ki, { imagePath: o, placement: "top" }) })
|
17417
17418
|
) : Object.keys(r ?? {}).length > 0 && a?.map((p) => {
|
17418
17419
|
const _ = r[p.id];
|
17419
|
-
return _ ? /* @__PURE__ */ t.jsxs(
|
17420
|
+
return _ ? /* @__PURE__ */ t.jsxs(Hs, { children: [
|
17420
17421
|
p.type !== "WEBHOOK" && _.Commit && /* @__PURE__ */ t.jsx(
|
17421
17422
|
Bo,
|
17422
17423
|
{
|
@@ -17436,9 +17437,9 @@ const yv = (e) => {
|
|
17436
17437
|
}),
|
17437
17438
|
!m.includes("source-code") && /* @__PURE__ */ t.jsx(Os, { to: `${u}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
17438
17439
|
] }) });
|
17439
|
-
},
|
17440
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
17441
|
-
|
17440
|
+
}, Us = () => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsx("div", { className: "dc__border-left--n3 h-100" }) }), Al = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17441
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(qe, { size: 20, name: "ic-success", color: null }) }),
|
17442
|
+
Us()
|
17442
17443
|
] }), Bv = ht(
|
17443
17444
|
({ status: e }) => /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx(
|
17444
17445
|
"circle",
|
@@ -17503,17 +17504,17 @@ const yv = (e) => {
|
|
17503
17504
|
] }),
|
17504
17505
|
!!E && !!g && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17505
17506
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17506
|
-
|
17507
|
+
Us(),
|
17507
17508
|
g(E, !0),
|
17508
|
-
|
17509
|
+
Us()
|
17509
17510
|
] }) }),
|
17510
17511
|
g(E)
|
17511
17512
|
] }),
|
17512
17513
|
_ && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17513
17514
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17514
|
-
|
17515
|
+
Us(),
|
17515
17516
|
/* @__PURE__ */ t.jsx($_, { className: "icon-dim-20 dc__no-shrink scn-9" }),
|
17516
|
-
|
17517
|
+
Us()
|
17517
17518
|
] }) }),
|
17518
17519
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 py-8", children: [
|
17519
17520
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-6 lh-20", children: "Env" }),
|
@@ -17523,7 +17524,7 @@ const yv = (e) => {
|
|
17523
17524
|
] }),
|
17524
17525
|
!!C?.executionStartedOn && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17525
17526
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17526
|
-
|
17527
|
+
Us(),
|
17527
17528
|
Al()
|
17528
17529
|
] }) }),
|
17529
17530
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 pr-20 flexbox dc__gap-8 py-8", children: [
|
@@ -17533,7 +17534,7 @@ const yv = (e) => {
|
|
17533
17534
|
] }),
|
17534
17535
|
/* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17535
17536
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17536
|
-
|
17537
|
+
Us(),
|
17537
17538
|
/* @__PURE__ */ t.jsx(
|
17538
17539
|
$v,
|
17539
17540
|
{
|
@@ -17602,8 +17603,8 @@ const yv = (e) => {
|
|
17602
17603
|
appName: `${e.helmPackageName}.tgz`,
|
17603
17604
|
workflowId: e.id
|
17604
17605
|
}, L = `app/cd-pipeline/workflow/download/${b}/${j}/${O}/${T}`;
|
17605
|
-
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(
|
17606
|
-
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(
|
17606
|
+
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(Ql, { children: [
|
17607
|
+
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Bs, { path: `${v}/logs`, children: [
|
17607
17608
|
/* @__PURE__ */ t.jsx(
|
17608
17609
|
TT,
|
17609
17610
|
{
|
@@ -17621,7 +17622,7 @@ const yv = (e) => {
|
|
17621
17622
|
scrollToBottom: C
|
17622
17623
|
}
|
17623
17624
|
)
|
17624
|
-
] }) : /* @__PURE__ */ t.jsx(
|
17625
|
+
] }) : /* @__PURE__ */ t.jsx(Bs, { path: `${v}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
17625
17626
|
DT,
|
17626
17627
|
{
|
17627
17628
|
deploymentStatus: e.status,
|
@@ -17634,7 +17635,7 @@ const yv = (e) => {
|
|
17634
17635
|
renderDeploymentApprovalInfo: g
|
17635
17636
|
}
|
17636
17637
|
) }),
|
17637
|
-
/* @__PURE__ */ t.jsx(
|
17638
|
+
/* @__PURE__ */ t.jsx(Bs, { path: `${v}/source-code`, children: /* @__PURE__ */ t.jsx(
|
17638
17639
|
Iv,
|
17639
17640
|
{
|
17640
17641
|
gitTriggers: e.gitTriggers,
|
@@ -17657,7 +17658,7 @@ const yv = (e) => {
|
|
17657
17658
|
targetPlatforms: I
|
17658
17659
|
}
|
17659
17660
|
) }),
|
17660
|
-
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(
|
17661
|
+
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Bs, { path: `${v}${Oe.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
17661
17662
|
aS,
|
17662
17663
|
{
|
17663
17664
|
appName: S,
|
@@ -17670,7 +17671,7 @@ const yv = (e) => {
|
|
17670
17671
|
renderRunSource: x
|
17671
17672
|
}
|
17672
17673
|
) }),
|
17673
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(
|
17674
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Bs, { path: `${v}/artifacts`, children: e.IsVirtualEnvironment && f ? f({
|
17674
17675
|
status: e.status,
|
17675
17676
|
title: e.helmPackageName,
|
17676
17677
|
params: { ...w, appId: Number(b), envId: Number(j) }
|
@@ -17780,8 +17781,8 @@ const yv = (e) => {
|
|
17780
17781
|
X(+v, F, Ie);
|
17781
17782
|
}, [Q, de, Ie]);
|
17782
17783
|
const H = te(() => !T || fb.has(T.podStatus?.toLowerCase() || T.status?.toLowerCase()) ? null : hb.has(T.status?.toLowerCase() || T.podStatus?.toLowerCase()) ? 1e4 : 3e4, [T]);
|
17783
|
-
return Bm(B, H), !q && j && !T || !v || q && (Q || j) && !T ? /* @__PURE__ */ t.jsx(
|
17784
|
-
|
17784
|
+
return Bm(B, H), !q && j && !T || !v || q && (Q || j) && !T ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : L?.code === 404 ? /* @__PURE__ */ t.jsx(
|
17785
|
+
Qe,
|
17785
17786
|
{
|
17786
17787
|
title: Ye.TRIGGER_NOT_FOUND.TITLE,
|
17787
17788
|
subTitle: Ye.TRIGGER_NOT_FOUND.SUBTITLE
|
@@ -18007,7 +18008,7 @@ const yv = (e) => {
|
|
18007
18008
|
MONTH: "Select month",
|
18008
18009
|
DEFAULT_TIME: "12:00 AM",
|
18009
18010
|
DEFAULT_MONTHLY_DATE: "Day 1"
|
18010
|
-
},
|
18011
|
+
}, Gs = {
|
18011
18012
|
DATE: "date_picker",
|
18012
18013
|
MONTH: "month_picker",
|
18013
18014
|
TIME: "time_picker"
|
@@ -18133,11 +18134,11 @@ const yv = (e) => {
|
|
18133
18134
|
}, jD = ({
|
18134
18135
|
selectedMonthlyDate: e,
|
18135
18136
|
onChange: s,
|
18136
|
-
dataTestId: n =
|
18137
|
+
dataTestId: n = Gs.MONTH
|
18137
18138
|
}) => /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
18138
18139
|
Xt,
|
18139
18140
|
{
|
18140
|
-
inputId:
|
18141
|
+
inputId: Gs.MONTH,
|
18141
18142
|
placeholder: "Day 1",
|
18142
18143
|
options: qv,
|
18143
18144
|
isSearchable: !1,
|
@@ -18154,7 +18155,7 @@ const yv = (e) => {
|
|
18154
18155
|
}) => /* @__PURE__ */ t.jsx(
|
18155
18156
|
Xt,
|
18156
18157
|
{
|
18157
|
-
inputId:
|
18158
|
+
inputId: Gs.TIME,
|
18158
18159
|
placeholder: "12:00 AM",
|
18159
18160
|
options: ka,
|
18160
18161
|
isSearchable: !1,
|
@@ -18163,7 +18164,7 @@ const yv = (e) => {
|
|
18163
18164
|
value: r,
|
18164
18165
|
icon: /* @__PURE__ */ t.jsx(Zo, { className: "icon-dim-20 fcn-6" }),
|
18165
18166
|
onChange: s,
|
18166
|
-
"data-testid":
|
18167
|
+
"data-testid": Gs.TIME,
|
18167
18168
|
size: P.large,
|
18168
18169
|
error: a
|
18169
18170
|
}
|
@@ -18178,8 +18179,8 @@ const yv = (e) => {
|
|
18178
18179
|
hideTimeSelect: c = !1,
|
18179
18180
|
readOnly: l = !1,
|
18180
18181
|
isTodayBlocked: d = !1,
|
18181
|
-
dataTestIdForTime: u =
|
18182
|
-
dataTestidForDate: m =
|
18182
|
+
dataTestIdForTime: u = Gs.TIME,
|
18183
|
+
dataTestidForDate: m = Gs.DATE,
|
18183
18184
|
openDirection: p = "down",
|
18184
18185
|
error: _ = ""
|
18185
18186
|
}) => {
|
@@ -18221,7 +18222,7 @@ const yv = (e) => {
|
|
18221
18222
|
!c && /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
18222
18223
|
Xt,
|
18223
18224
|
{
|
18224
|
-
inputId:
|
18225
|
+
inputId: Gs.TIME,
|
18225
18226
|
placeholder: Wv.DEFAULT_TIME,
|
18226
18227
|
options: ka,
|
18227
18228
|
icon: /* @__PURE__ */ t.jsx(Zo, { className: "icon-dim-20 fcn-6" }),
|
@@ -18388,7 +18389,7 @@ const yv = (e) => {
|
|
18388
18389
|
}
|
18389
18390
|
)
|
18390
18391
|
] }) : /* @__PURE__ */ t.jsx(
|
18391
|
-
|
18392
|
+
Qe,
|
18392
18393
|
{
|
18393
18394
|
title: "Data not available",
|
18394
18395
|
subTitle: "The data you are looking for is not available",
|
@@ -18585,7 +18586,7 @@ const PD = {
|
|
18585
18586
|
appId: n,
|
18586
18587
|
size: 20,
|
18587
18588
|
tag: s
|
18588
|
-
}, { result: i } = await ue(
|
18589
|
+
}, { result: i } = await ue(Je(G.PLUGIN_GLOBAL_LIST_V2, o), {
|
18589
18590
|
signal: r
|
18590
18591
|
}), c = Am(i?.parentPlugins);
|
18591
18592
|
return {
|
@@ -18600,7 +18601,7 @@ const PD = {
|
|
18600
18601
|
try {
|
18601
18602
|
const s = {
|
18602
18603
|
appId: e
|
18603
|
-
}, { result: n } = await ue(
|
18604
|
+
}, { result: n } = await ue(Je(G.PLUGIN_GLOBAL_LIST_TAGS, s));
|
18604
18605
|
if (!n?.tagNames)
|
18605
18606
|
return [];
|
18606
18607
|
const a = new Set(n.tagNames);
|
@@ -18609,7 +18610,7 @@ const PD = {
|
|
18609
18610
|
throw Be(s), s;
|
18610
18611
|
}
|
18611
18612
|
}, MD = async (e) => {
|
18612
|
-
const s = await ue(
|
18613
|
+
const s = await ue(Je(G.PLUGIN_LIST_MIN, e));
|
18613
18614
|
return {
|
18614
18615
|
...s,
|
18615
18616
|
result: (s?.result ?? []).sort((n, a) => rt(n.name, a.name))
|
@@ -18682,7 +18683,7 @@ const PD = {
|
|
18682
18683
|
onKeyDown: x,
|
18683
18684
|
children: [
|
18684
18685
|
e && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink icon-dim-40 p-8 ${r ? "" : "dc__visible-hover--child"}`, children: /* @__PURE__ */ t.jsx(
|
18685
|
-
|
18686
|
+
ws,
|
18686
18687
|
{
|
18687
18688
|
isChecked: r,
|
18688
18689
|
onChange: x,
|
@@ -18805,7 +18806,7 @@ const PD = {
|
|
18805
18806
|
)),
|
18806
18807
|
_ && /* @__PURE__ */ t.jsx(ym, {}),
|
18807
18808
|
n > s.length && !_ && /* @__PURE__ */ t.jsx(Xu, { callback: h, hasError: E })
|
18808
|
-
] }) : o || r.length ? /* @__PURE__ */ t.jsx(HI, { handleClearFilters: d, imageType: Xs.Large }) : /* @__PURE__ */ t.jsx(
|
18809
|
+
] }) : o || r.length ? /* @__PURE__ */ t.jsx(HI, { handleClearFilters: d, imageType: Xs.Large }) : /* @__PURE__ */ t.jsx(Qe, { title: "No plugins found", subTitle: "We are unable to locate any plugin in our system" });
|
18809
18810
|
}, UD = ({
|
18810
18811
|
availableTags: e,
|
18811
18812
|
handleUpdateAvailableTags: s,
|
@@ -19183,7 +19184,7 @@ const PD = {
|
|
19183
19184
|
{
|
19184
19185
|
className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${l ? "two-columns" : "three-columns"}`,
|
19185
19186
|
children: N.map((D) => /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__row", children: [
|
19186
|
-
E.map(({ key: k }) => /* @__PURE__ */ t.jsx(
|
19187
|
+
E.map(({ key: k }) => /* @__PURE__ */ t.jsx(Hs, { children: /* @__PURE__ */ t.jsx(mt, { wrap: hA, condition: l, children: /* @__PURE__ */ t.jsx(
|
19187
19188
|
"div",
|
19188
19189
|
{
|
19189
19190
|
className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || D.data[k].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !V(D.data[k].value, k, D.id) ? "key-value-table__cell--error no-hover" : ""}`,
|
@@ -19409,14 +19410,14 @@ const PD = {
|
|
19409
19410
|
E(""), n(uu(b, !1).message);
|
19410
19411
|
}, S = async () => {
|
19411
19412
|
if (!a) {
|
19412
|
-
E(yl),
|
19413
|
+
E(yl), Me.showToast({
|
19413
19414
|
variant: Se.error,
|
19414
19415
|
description: yl
|
19415
19416
|
});
|
19416
19417
|
return;
|
19417
19418
|
}
|
19418
19419
|
if (s) {
|
19419
|
-
|
19420
|
+
Me.showToast({
|
19420
19421
|
variant: Se.error,
|
19421
19422
|
description: s
|
19422
19423
|
});
|
@@ -20233,7 +20234,7 @@ const MA = (e) => {
|
|
20233
20234
|
gridTemplateColumns: E
|
20234
20235
|
},
|
20235
20236
|
children: e.map((T) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
20236
|
-
s.map(({ key: j }, w) => /* @__PURE__ */ t.jsx(
|
20237
|
+
s.map(({ key: j }, w) => /* @__PURE__ */ t.jsx(Hs, { children: O(T, j, w) }, j)),
|
20237
20238
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
20238
20239
|
re,
|
20239
20240
|
{
|
@@ -20810,7 +20811,7 @@ const MA = (e) => {
|
|
20810
20811
|
fallbackMergeStrategy: o,
|
20811
20812
|
displayKeys: l
|
20812
20813
|
});
|
20813
|
-
return r ? /* @__PURE__ */ t.jsx(
|
20814
|
+
return r ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(
|
20814
20815
|
"div",
|
20815
20816
|
{
|
20816
20817
|
className: c || `bg__primary flexbox-col dc__gap-12 dc__overflow-auto ${i ? "" : "p-16"}`,
|
@@ -21211,7 +21212,7 @@ const MA = (e) => {
|
|
21211
21212
|
},
|
21212
21213
|
N.variableName
|
21213
21214
|
)) : /* @__PURE__ */ t.jsx(
|
21214
|
-
|
21215
|
+
Qe,
|
21215
21216
|
{
|
21216
21217
|
title: "No matching variable found",
|
21217
21218
|
isButtonAvailable: !0,
|
@@ -21221,8 +21222,8 @@ const MA = (e) => {
|
|
21221
21222
|
}
|
21222
21223
|
) }),
|
21223
21224
|
/* @__PURE__ */ t.jsx(Ol, {})
|
21224
|
-
] }), f = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(
|
21225
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(
|
21225
|
+
] }), f = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
21226
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Qe, { title: "No variables found", image: Nd }) }),
|
21226
21227
|
/* @__PURE__ */ t.jsx(Ol, {})
|
21227
21228
|
] }) : p ? h() : /* @__PURE__ */ t.jsx(Zn, { reload: a, className: "bg__primary pb-16" });
|
21228
21229
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -21441,7 +21442,7 @@ class Dl {
|
|
21441
21442
|
ha(this, dn, !1);
|
21442
21443
|
ha(this, un, !1);
|
21443
21444
|
me(this, "updateStatus", (s, n) => {
|
21444
|
-
n.status === "Completed" && !
|
21445
|
+
n.status === "Completed" && !Ds(this, un) && ga(this, un, !0), n.status === "Failed" && !Ds(this, dn) && ga(this, dn, !0), n.status === "Failed" && n.retryOperation && this.retryOperationsSet.has(s) && (this.retryOperations.push(n.retryOperation), this.retryOperationsSet.add(s)), n.status !== "Progressing" && (this.barChartEntities[n.status] ? this.barChartEntities[n.status] += 1 : this.barChartEntities[n.status] = 1), this.barChartEntities.Pending = this.size - (this.barChartEntities.Failed ?? 0) - (this.barChartEntities.Completed ?? 0), this.barChartEntities.Pending <= 0 && delete this.barChartEntities.Pending;
|
21445
21446
|
});
|
21446
21447
|
me(this, "addResult", (s) => {
|
21447
21448
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -21462,8 +21463,8 @@ class Dl {
|
|
21462
21463
|
this.map.set(s, r), this.results[s] = r, n.status === "Failed" && n.retryOperation && this.retryOperations.push(n.retryOperation), this.updateStatus(s, r);
|
21463
21464
|
});
|
21464
21465
|
me(this, "getRetryOperations", () => this.retryOperations);
|
21465
|
-
me(this, "hasAnyOperationFailed", () =>
|
21466
|
-
me(this, "getHasAnyOperationSucceeded", () =>
|
21466
|
+
me(this, "hasAnyOperationFailed", () => Ds(this, dn));
|
21467
|
+
me(this, "getHasAnyOperationSucceeded", () => Ds(this, un));
|
21467
21468
|
this.size = s, this.barChartEntities.Pending = s;
|
21468
21469
|
}
|
21469
21470
|
}
|
@@ -21720,7 +21721,7 @@ const hI = ({
|
|
21720
21721
|
}), v();
|
21721
21722
|
}
|
21722
21723
|
});
|
21723
|
-
await pI(b, !0),
|
21724
|
+
await pI(b, !0), Me.showToast({
|
21724
21725
|
variant: Se.info,
|
21725
21726
|
description: "Action completed"
|
21726
21727
|
}), r && h();
|
@@ -21738,7 +21739,7 @@ const hI = ({
|
|
21738
21739
|
}, A = () => {
|
21739
21740
|
E.current.abort();
|
21740
21741
|
}, S = () => /* @__PURE__ */ t.jsx(
|
21741
|
-
|
21742
|
+
Ws,
|
21742
21743
|
{
|
21743
21744
|
...c,
|
21744
21745
|
handleClose: h,
|
@@ -21815,7 +21816,7 @@ const hI = ({
|
|
21815
21816
|
DEFAULT: "Build Container Image",
|
21816
21817
|
RECIEVE: "Receive Container Image",
|
21817
21818
|
JOB: "Create job pipeline"
|
21818
|
-
},
|
21819
|
+
}, ke = {
|
21819
21820
|
SOURCE_CODE: {
|
21820
21821
|
title: "Build and Deploy from Source Code",
|
21821
21822
|
subtitle: "Build container image from a Git repo and deploy to an environment.",
|
@@ -21838,7 +21839,7 @@ const hI = ({
|
|
21838
21839
|
image: Mf,
|
21839
21840
|
alt: "External-CI",
|
21840
21841
|
dataTestId: "deploy-image-external-service-link",
|
21841
|
-
type:
|
21842
|
+
type: Vs.WEBHOOK
|
21842
21843
|
},
|
21843
21844
|
JOB: {
|
21844
21845
|
title: "Create a Job",
|
@@ -21861,7 +21862,7 @@ const hI = ({
|
|
21861
21862
|
appWorkflowId: e.appWorkflowId,
|
21862
21863
|
environmentId: -1,
|
21863
21864
|
id: 0,
|
21864
|
-
parentPipelineType:
|
21865
|
+
parentPipelineType: Vs.WEBHOOK,
|
21865
21866
|
switchFromCiPipelineId: e.switchFromCiPipelineId
|
21866
21867
|
}
|
21867
21868
|
]
|
@@ -21887,7 +21888,7 @@ const hI = ({
|
|
21887
21888
|
if (o && i) {
|
21888
21889
|
const N = i.find((S) => +S.id === o?.appWorkflowId);
|
21889
21890
|
if (!N) {
|
21890
|
-
E(),
|
21891
|
+
E(), Me.showToast({
|
21891
21892
|
variant: Se.error,
|
21892
21893
|
description: Pl.WORKFLOW_NOT_AVAILABLE
|
21893
21894
|
});
|
@@ -21920,7 +21921,7 @@ const hI = ({
|
|
21920
21921
|
const g = () => {
|
21921
21922
|
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === Ns.CD)) {
|
21922
21923
|
x(!0), FN(NI(o)).then((A) => {
|
21923
|
-
A.result && (
|
21924
|
+
A.result && (Me.showToast({
|
21924
21925
|
variant: Se.success,
|
21925
21926
|
description: Pl.SUCCESS_CHANGE_TO_WEBHOOK
|
21926
21927
|
}), c(), E());
|
@@ -21935,7 +21936,7 @@ const hI = ({
|
|
21935
21936
|
return;
|
21936
21937
|
N.stopPropagation();
|
21937
21938
|
const { pipelineType: C } = N.currentTarget.dataset;
|
21938
|
-
if (C ===
|
21939
|
+
if (C === Vs.WEBHOOK) {
|
21939
21940
|
g();
|
21940
21941
|
return;
|
21941
21942
|
}
|
@@ -21977,12 +21978,12 @@ const hI = ({
|
|
21977
21978
|
/* @__PURE__ */ t.jsx(
|
21978
21979
|
Rn,
|
21979
21980
|
{
|
21980
|
-
title:
|
21981
|
-
subtitle:
|
21982
|
-
image:
|
21983
|
-
alt:
|
21984
|
-
dataTestId:
|
21985
|
-
type:
|
21981
|
+
title: ke.SOURCE_CODE.title,
|
21982
|
+
subtitle: ke.SOURCE_CODE.subtitle,
|
21983
|
+
image: ke.SOURCE_CODE.image,
|
21984
|
+
alt: ke.SOURCE_CODE.alt,
|
21985
|
+
dataTestId: ke.SOURCE_CODE.dataTestId,
|
21986
|
+
type: ke.SOURCE_CODE.type,
|
21986
21987
|
handleCardAction: h,
|
21987
21988
|
disableInfo: f(Ct.CI)
|
21988
21989
|
}
|
@@ -21990,12 +21991,12 @@ const hI = ({
|
|
21990
21991
|
/* @__PURE__ */ t.jsx(
|
21991
21992
|
Rn,
|
21992
21993
|
{
|
21993
|
-
title:
|
21994
|
-
subtitle:
|
21995
|
-
image:
|
21996
|
-
alt:
|
21997
|
-
dataTestId:
|
21998
|
-
type:
|
21994
|
+
title: ke.LINKED_PIPELINE.title,
|
21995
|
+
subtitle: ke.LINKED_PIPELINE.subtitle,
|
21996
|
+
image: ke.LINKED_PIPELINE.image,
|
21997
|
+
alt: ke.LINKED_PIPELINE.alt,
|
21998
|
+
dataTestId: ke.LINKED_PIPELINE.dataTestId,
|
21999
|
+
type: ke.LINKED_PIPELINE.type,
|
21999
22000
|
handleCardAction: h,
|
22000
22001
|
disableInfo: f(Ct.LINKED_CI),
|
22001
22002
|
isDisabled: u
|
@@ -22007,12 +22008,12 @@ const hI = ({
|
|
22007
22008
|
/* @__PURE__ */ t.jsx(
|
22008
22009
|
Rn,
|
22009
22010
|
{
|
22010
|
-
title:
|
22011
|
-
subtitle:
|
22012
|
-
image:
|
22013
|
-
alt:
|
22014
|
-
dataTestId:
|
22015
|
-
type:
|
22011
|
+
title: ke.EXTERNAL_SERVICE.title,
|
22012
|
+
subtitle: ke.EXTERNAL_SERVICE.subtitle,
|
22013
|
+
image: ke.EXTERNAL_SERVICE.image,
|
22014
|
+
alt: ke.EXTERNAL_SERVICE.alt,
|
22015
|
+
dataTestId: ke.EXTERNAL_SERVICE.dataTestId,
|
22016
|
+
type: ke.EXTERNAL_SERVICE.type,
|
22016
22017
|
handleCardAction: h,
|
22017
22018
|
disableInfo: f(Ns.WEBHOOK),
|
22018
22019
|
isDisabled: u
|
@@ -22037,12 +22038,12 @@ const hI = ({
|
|
22037
22038
|
/* @__PURE__ */ t.jsx(
|
22038
22039
|
Rn,
|
22039
22040
|
{
|
22040
|
-
title:
|
22041
|
-
subtitle:
|
22042
|
-
image:
|
22043
|
-
alt:
|
22044
|
-
dataTestId:
|
22045
|
-
type:
|
22041
|
+
title: ke.JOB.title,
|
22042
|
+
subtitle: ke.JOB.subtitle,
|
22043
|
+
image: ke.JOB.image,
|
22044
|
+
alt: ke.JOB.alt,
|
22045
|
+
dataTestId: ke.JOB.dataTestId,
|
22046
|
+
type: ke.JOB.type,
|
22046
22047
|
handleCardAction: h,
|
22047
22048
|
disableInfo: f(Ct.JOB_CI),
|
22048
22049
|
isDisabled: u
|
@@ -22101,7 +22102,7 @@ const hI = ({
|
|
22101
22102
|
/* @__PURE__ */ t.jsx(xn, { className: "icon-dim-20 dc__no-shrink" }),
|
22102
22103
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-4 lh-20", children: "Unsaved changes" })
|
22103
22104
|
] }), eP = ({ handleClose: e, handleProceed: s }) => /* @__PURE__ */ t.jsx(
|
22104
|
-
|
22105
|
+
Ws,
|
22105
22106
|
{
|
22106
22107
|
handleClose: e,
|
22107
22108
|
variant: Yt.warning,
|
@@ -22126,18 +22127,20 @@ const hI = ({
|
|
22126
22127
|
[pt.BITBUCKET]: "ic-bitbucket",
|
22127
22128
|
[pt.GITEA]: "ic-git",
|
22128
22129
|
[pt.AZURE]: "ic-azure"
|
22129
|
-
}, tP = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22130
|
+
}, tP = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: CI[e] || "ic-git", size: s, color: null }), bI = {
|
22130
22131
|
error: "bcr-1 er-2",
|
22131
22132
|
help: "bcv-1 ev-2",
|
22132
22133
|
information: "bcb-1 eb-2",
|
22133
22134
|
success: "bcg-1 eg-2",
|
22134
|
-
warning: "bcy-1 ey-2"
|
22135
|
+
warning: "bcy-1 ey-2",
|
22136
|
+
neutral: "bcn-1 en-2"
|
22135
22137
|
}, TI = {
|
22136
22138
|
error: /* @__PURE__ */ t.jsx(Nr, {}),
|
22137
22139
|
help: /* @__PURE__ */ t.jsx(gn, { className: "fcv-5" }),
|
22138
|
-
information: /* @__PURE__ */ t.jsx(
|
22140
|
+
information: /* @__PURE__ */ t.jsx(qe, { name: "ic-info-filled", color: "B500" }),
|
22139
22141
|
success: /* @__PURE__ */ t.jsx(ai, {}),
|
22140
|
-
warning: /* @__PURE__ */ t.jsx(xn, {})
|
22142
|
+
warning: /* @__PURE__ */ t.jsx(xn, {}),
|
22143
|
+
neutral: /* @__PURE__ */ t.jsx(qe, { name: "ic-info-filled", color: null })
|
22141
22144
|
}, SI = {
|
22142
22145
|
[P.large]: "px-12",
|
22143
22146
|
[P.medium]: "px-8"
|
@@ -22198,21 +22201,21 @@ const hI = ({
|
|
22198
22201
|
[hs.microsoft]: "ic-microsoft",
|
22199
22202
|
[hs.oidc]: "ic-oidc",
|
22200
22203
|
[hs.openshift]: "ic-openshift"
|
22201
|
-
}, nP = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22204
|
+
}, nP = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: AI[e], size: s, color: null });
|
22202
22205
|
function Be(e, s = !0, n = !1) {
|
22203
22206
|
e instanceof Pt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
|
22204
22207
|
const o = a?.toLowerCase();
|
22205
|
-
e.code === 403 && (o === Ke.UNAUTHORIZED.toLowerCase() || o === Ke.FORBIDDEN.toLowerCase()) ? n ||
|
22208
|
+
e.code === 403 && (o === Ke.UNAUTHORIZED.toLowerCase() || o === Ke.FORBIDDEN.toLowerCase()) ? n || Me.showToast({
|
22206
22209
|
variant: Se.notAuthorized,
|
22207
22210
|
description: fg.SUBTITLE
|
22208
|
-
}) :
|
22211
|
+
}) : Me.showToast({
|
22209
22212
|
variant: Se.error,
|
22210
22213
|
description: a || r
|
22211
22214
|
});
|
22212
|
-
}) : (e.code !== 403 && e.code !== 408 && !qt(e) && Jl(e), s && (e.message ?
|
22215
|
+
}) : (e.code !== 403 && e.code !== 408 && !qt(e) && Jl(e), s && (e.message ? Me.showToast({
|
22213
22216
|
variant: Se.error,
|
22214
22217
|
description: e.message
|
22215
|
-
}) :
|
22218
|
+
}) : Me.showToast({
|
22216
22219
|
variant: Se.error,
|
22217
22220
|
description: "Some Error Occurred"
|
22218
22221
|
})));
|
@@ -22374,7 +22377,7 @@ function Pm(e) {
|
|
22374
22377
|
window.isSecureContext && navigator.clipboard ? navigator.clipboard.writeText(e).then(() => {
|
22375
22378
|
s();
|
22376
22379
|
}).catch(() => {
|
22377
|
-
|
22380
|
+
Me.showToast({
|
22378
22381
|
variant: Se.error,
|
22379
22382
|
description: "Failed to copy to clipboard"
|
22380
22383
|
}), n();
|
@@ -22430,7 +22433,7 @@ function Kt(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
22430
22433
|
};
|
22431
22434
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
22432
22435
|
}
|
22433
|
-
const dP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed",
|
22436
|
+
const dP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed", Je = (e, s = {}) => {
|
22434
22437
|
const n = new URLSearchParams();
|
22435
22438
|
Object.keys(s).forEach((r) => {
|
22436
22439
|
Dd.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -22680,7 +22683,7 @@ function Zn({ reload: e, className: s = "" }) {
|
|
22680
22683
|
);
|
22681
22684
|
}
|
22682
22685
|
const UI = ({ subtitle: e, title: s }) => /* @__PURE__ */ t.jsx(
|
22683
|
-
|
22686
|
+
Qe,
|
22684
22687
|
{
|
22685
22688
|
image: go,
|
22686
22689
|
title: s ?? Ke.NOT_AUTHORIZED,
|
@@ -22939,7 +22942,7 @@ class DP extends fr {
|
|
22939
22942
|
}
|
22940
22943
|
class PP extends fr {
|
22941
22944
|
render() {
|
22942
|
-
return /* @__PURE__ */ t.jsx(Ho.Consumer, { children: (s) => /* @__PURE__ */ t.jsx("button", { type: "submit", className: "cta dc__align-right", tabIndex: this.props.tabIndex, children: s.isLoading ? /* @__PURE__ */ t.jsx(
|
22945
|
+
return /* @__PURE__ */ t.jsx(Ho.Consumer, { children: (s) => /* @__PURE__ */ t.jsx("button", { type: "submit", className: "cta dc__align-right", tabIndex: this.props.tabIndex, children: s.isLoading ? /* @__PURE__ */ t.jsx(Ue, {}) : this.props.children }) });
|
22943
22946
|
}
|
22944
22947
|
}
|
22945
22948
|
const $i = ({
|
@@ -23038,7 +23041,7 @@ const $i = ({
|
|
23038
23041
|
}
|
23039
23042
|
);
|
23040
23043
|
return /* @__PURE__ */ t.jsx(
|
23041
|
-
|
23044
|
+
Qe,
|
23042
23045
|
{
|
23043
23046
|
image: _f,
|
23044
23047
|
title: "No results",
|
@@ -23235,28 +23238,28 @@ const qm = ({
|
|
23235
23238
|
...Ae[W],
|
23236
23239
|
deleted: !Ae[W].deleted
|
23237
23240
|
};
|
23238
|
-
const _e = Ae[W], Ge = [...L],
|
23239
|
-
|
23241
|
+
const _e = Ae[W], Ge = [...L], tt = Ge.findIndex((Ot) => Ot.tagName === _e.tagName);
|
23242
|
+
tt !== -1 ? Ge.splice(tt, 1) : Ge.push(_e), b(Ae), B(Ge);
|
23240
23243
|
}, oe = (W) => {
|
23241
23244
|
const Ae = v[W], _e = j.filter((Ot) => Ot.tagName !== Ae.tagName);
|
23242
23245
|
w(_e);
|
23243
23246
|
const Ge = [...v];
|
23244
23247
|
Ge.splice(W, 1), b(Ge);
|
23245
|
-
const
|
23246
|
-
if (f(
|
23248
|
+
const tt = h.filter((Ot) => Ot.toLowerCase() !== Ae.tagName.toLowerCase());
|
23249
|
+
if (f(tt), Ae.id !== 0) {
|
23247
23250
|
const Ot = [...V, Ae];
|
23248
23251
|
X(Ot);
|
23249
23252
|
}
|
23250
23253
|
}, ve = (W) => {
|
23251
23254
|
W.forEach(({ userMessage: Ae }) => {
|
23252
|
-
const _e = j.map((
|
23253
|
-
...
|
23255
|
+
const _e = j.map((tt) => Ae?.appReleaseTags?.includes(tt.tagName) ? {
|
23256
|
+
...tt,
|
23254
23257
|
duplicateTag: !0
|
23255
|
-
} :
|
23258
|
+
} : tt);
|
23256
23259
|
w(_e);
|
23257
|
-
const Ge = v.map((
|
23258
|
-
const Ot = _e.find(($r) => $r.tagName ===
|
23259
|
-
return Ot ? { ...
|
23260
|
+
const Ge = v.map((tt) => {
|
23261
|
+
const Ot = _e.find(($r) => $r.tagName === tt.tagName);
|
23262
|
+
return Ot ? { ...tt, duplicateTag: Ot.duplicateTag } : tt;
|
23260
23263
|
});
|
23261
23264
|
b(Ge);
|
23262
23265
|
});
|
@@ -23273,16 +23276,16 @@ const qm = ({
|
|
23273
23276
|
hardDeleteTags: V
|
23274
23277
|
};
|
23275
23278
|
F(!0), lE(Ae, e ?? 0, s).then((_e) => {
|
23276
|
-
const Ge = _e.result?.imageReleaseTags?.map((
|
23277
|
-
id:
|
23278
|
-
tagName:
|
23279
|
-
deleted:
|
23279
|
+
const Ge = _e.result?.imageReleaseTags?.map((tt) => ({
|
23280
|
+
id: tt.id,
|
23281
|
+
tagName: tt.tagName,
|
23282
|
+
deleted: tt.deleted,
|
23280
23283
|
appId: 0,
|
23281
23284
|
artifactId: 0
|
23282
23285
|
}));
|
23283
23286
|
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), x(Ge), g(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(), I(!1), T(""), r && r(s, Ge, _e.result?.imageComment);
|
23284
23287
|
}).catch((_e) => {
|
23285
|
-
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (
|
23288
|
+
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Me.showToast({
|
23286
23289
|
variant: Se.error,
|
23287
23290
|
description: _e.errors?.[0]?.internalMessage
|
23288
23291
|
}), ve(_e.errors)) : Be(_e);
|
@@ -23378,7 +23381,7 @@ const qm = ({
|
|
23378
23381
|
W.id
|
23379
23382
|
)) }),
|
23380
23383
|
y && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
23381
|
-
/* @__PURE__ */ t.jsx(
|
23384
|
+
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-16 mr-2" }),
|
23382
23385
|
"Tags cannot be edited/removed later"
|
23383
23386
|
] }),
|
23384
23387
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -23415,7 +23418,7 @@ const qm = ({
|
|
23415
23418
|
Ne(W), Br();
|
23416
23419
|
},
|
23417
23420
|
disabled: H,
|
23418
|
-
children: H ? /* @__PURE__ */ t.jsx(
|
23421
|
+
children: H ? /* @__PURE__ */ t.jsx(Ue, {}) : "Save"
|
23419
23422
|
}
|
23420
23423
|
)
|
23421
23424
|
] })
|
@@ -23723,7 +23726,7 @@ function BP({
|
|
23723
23726
|
}
|
23724
23727
|
) : null;
|
23725
23728
|
}
|
23726
|
-
const QI = ({ startNode: e }) => e.type === Ns.WEBHOOK ?
|
23729
|
+
const QI = ({ startNode: e }) => e.type === Ns.WEBHOOK ? Vs.WEBHOOK : e.type === Ns.CI ? Vs.CI_PIPELINE : Vs.CD_PIPELINE, $P = ({
|
23727
23730
|
position: e,
|
23728
23731
|
handleCDSelect: s,
|
23729
23732
|
startNode: n,
|
@@ -23962,7 +23965,7 @@ const Gl = 5, ey = [
|
|
23962
23965
|
)
|
23963
23966
|
] })
|
23964
23967
|
] });
|
23965
|
-
}, jn = new
|
23968
|
+
}, jn = new Ms.Renderer(), Hl = ({
|
23966
23969
|
setExpandableIcon: e,
|
23967
23970
|
markdown: s,
|
23968
23971
|
className: n,
|
@@ -23979,17 +23982,17 @@ const Gl = 5, ey = [
|
|
23979
23982
|
}, [i]);
|
23980
23983
|
const d = (m) => `
|
23981
23984
|
<tr>
|
23982
|
-
${m.map((p) => `<td align="${p.align}">${
|
23985
|
+
${m.map((p) => `<td align="${p.align}">${Ms(p.text)}</td>`).join("")}
|
23983
23986
|
</tr>
|
23984
23987
|
`;
|
23985
23988
|
jn.listitem = ({ text: m, task: p, checked: _ }) => p ? `<li style="list-style: none">
|
23986
23989
|
<input disabled type="checkbox" ${_ ? "checked" : ""} class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
|
23987
|
-
${
|
23988
|
-
</li>` : `<li>${
|
23990
|
+
${Ms(m)}
|
23991
|
+
</li>` : `<li>${Ms(m)}</li>`, jn.image = ({ href: m, title: p, text: _ }) => `<img src="${m}" alt="${_}" title="${p}" class="max-w-100">`, jn.table = ({ header: m, rows: p }) => `
|
23989
23992
|
<div class="table-container">
|
23990
23993
|
<table>
|
23991
23994
|
<thead>
|
23992
|
-
<tr>${m.map((_) => `<th align="${_.align}">${
|
23995
|
+
<tr>${m.map((_) => `<th align="${_.align}">${Ms(_.text)}</th>`).join("")}</tr>
|
23993
23996
|
</thead>
|
23994
23997
|
<tbody>
|
23995
23998
|
${p.map((_) => d(_)).join("")}
|
@@ -24005,13 +24008,13 @@ const Gl = 5, ey = [
|
|
24005
24008
|
${m}
|
24006
24009
|
</h${p}>
|
24007
24010
|
</a>`;
|
24008
|
-
},
|
24011
|
+
}, Ms.setOptions({
|
24009
24012
|
renderer: jn,
|
24010
24013
|
gfm: !0,
|
24011
24014
|
...a && { breaks: !0 }
|
24012
24015
|
});
|
24013
24016
|
const u = () => ({
|
24014
|
-
__html: As.sanitize(
|
24017
|
+
__html: As.sanitize(Ms(i), { USE_PROFILES: { html: !0 } })
|
24015
24018
|
});
|
24016
24019
|
return /* @__PURE__ */ t.jsx(
|
24017
24020
|
"article",
|
@@ -24072,7 +24075,7 @@ const Mt = {
|
|
24072
24075
|
}, [e]);
|
24073
24076
|
const f = Pe(n), N = f.isValid() ? f.format(yt.TWELVE_HOURS_FORMAT) : n, C = (I) => {
|
24074
24077
|
let v = !0;
|
24075
|
-
return I.length === 0 && (
|
24078
|
+
return I.length === 0 && (Me.showToast({
|
24076
24079
|
variant: Se.error,
|
24077
24080
|
description: iy
|
24078
24081
|
}), v = !1), v;
|
@@ -24363,7 +24366,7 @@ export {
|
|
24363
24366
|
JI as D,
|
24364
24367
|
Lr as E,
|
24365
24368
|
_g as F,
|
24366
|
-
|
24369
|
+
Qe as G,
|
24367
24370
|
Ha as H,
|
24368
24371
|
$i as I,
|
24369
24372
|
fg as J,
|
@@ -24404,7 +24407,7 @@ export {
|
|
24404
24407
|
Rg as aF,
|
24405
24408
|
an as aG,
|
24406
24409
|
jg as aH,
|
24407
|
-
|
24410
|
+
Vs as aI,
|
24408
24411
|
Ns as aJ,
|
24409
24412
|
Hn as aK,
|
24410
24413
|
No as aL,
|
@@ -24470,8 +24473,8 @@ export {
|
|
24470
24473
|
AP as bG,
|
24471
24474
|
IP as bH,
|
24472
24475
|
yP as bI,
|
24473
|
-
|
24474
|
-
|
24476
|
+
Ue as bJ,
|
24477
|
+
iL as bK,
|
24475
24478
|
Vm as bL,
|
24476
24479
|
rm as bM,
|
24477
24480
|
Cn as bN,
|
@@ -24494,7 +24497,7 @@ export {
|
|
24494
24497
|
Pm as bd,
|
24495
24498
|
Kt as be,
|
24496
24499
|
dP as bf,
|
24497
|
-
|
24500
|
+
Je as bg,
|
24498
24501
|
Ma as bh,
|
24499
24502
|
uP as bi,
|
24500
24503
|
Fl as bj,
|
@@ -24569,7 +24572,7 @@ export {
|
|
24569
24572
|
Tc as cn,
|
24570
24573
|
gE as co,
|
24571
24574
|
SL as cp,
|
24572
|
-
|
24575
|
+
ws as cq,
|
24573
24576
|
Wm as cr,
|
24574
24577
|
vu as cs,
|
24575
24578
|
kw as ct,
|
@@ -24579,11 +24582,11 @@ export {
|
|
24579
24582
|
eE as cx,
|
24580
24583
|
tE as cy,
|
24581
24584
|
sE as cz,
|
24582
|
-
|
24585
|
+
Cx as d,
|
24583
24586
|
fL as d$,
|
24584
24587
|
Xn as d0,
|
24585
24588
|
mS as d1,
|
24586
|
-
|
24589
|
+
oL as d2,
|
24587
24590
|
Xm as d3,
|
24588
24591
|
YP as d4,
|
24589
24592
|
hL as d5,
|
@@ -24595,29 +24598,29 @@ export {
|
|
24595
24598
|
Zd as dB,
|
24596
24599
|
ys as dC,
|
24597
24600
|
vr as dD,
|
24598
|
-
|
24601
|
+
Ze as dE,
|
24599
24602
|
uL as dF,
|
24600
24603
|
Yr as dG,
|
24601
24604
|
mL as dH,
|
24602
24605
|
yo as dI,
|
24603
24606
|
pL as dJ,
|
24604
24607
|
Qd as dK,
|
24605
|
-
|
24608
|
+
vx as dL,
|
24606
24609
|
mc as dM,
|
24607
24610
|
rs as dN,
|
24608
|
-
|
24611
|
+
Ax as dO,
|
24609
24612
|
pc as dP,
|
24610
24613
|
_c as dQ,
|
24611
24614
|
fc as dR,
|
24612
|
-
|
24613
|
-
|
24614
|
-
|
24615
|
-
|
24615
|
+
Ix as dS,
|
24616
|
+
yx as dT,
|
24617
|
+
Rx as dU,
|
24618
|
+
jx as dV,
|
24616
24619
|
na as dW,
|
24617
24620
|
eu as dX,
|
24618
|
-
|
24621
|
+
Xe as dY,
|
24619
24622
|
_L as dZ,
|
24620
|
-
|
24623
|
+
Ox as d_,
|
24621
24624
|
SE as da,
|
24622
24625
|
DL as db,
|
24623
24626
|
UE as dc,
|
@@ -24644,7 +24647,7 @@ export {
|
|
24644
24647
|
Ao as dy,
|
24645
24648
|
Io as dz,
|
24646
24649
|
$n as e,
|
24647
|
-
|
24650
|
+
Nx as e$,
|
24648
24651
|
QE as e0,
|
24649
24652
|
Mc as e1,
|
24650
24653
|
XE as e2,
|
@@ -24679,9 +24682,9 @@ export {
|
|
24679
24682
|
pw as eV,
|
24680
24683
|
_w as eW,
|
24681
24684
|
zd as eX,
|
24682
|
-
|
24683
|
-
|
24684
|
-
|
24685
|
+
hx as eY,
|
24686
|
+
xx as eZ,
|
24687
|
+
Ex as e_,
|
24685
24688
|
Dn as ea,
|
24686
24689
|
QL as eb,
|
24687
24690
|
ew as ec,
|
@@ -24799,7 +24802,7 @@ export {
|
|
24799
24802
|
Yv as gL,
|
24800
24803
|
Kv as gM,
|
24801
24804
|
Wv as gN,
|
24802
|
-
|
24805
|
+
Gs as gO,
|
24803
24806
|
ID as gP,
|
24804
24807
|
Bo as gQ,
|
24805
24808
|
ki as gR,
|
@@ -24874,7 +24877,7 @@ export {
|
|
24874
24877
|
jm as hV,
|
24875
24878
|
VD as hW,
|
24876
24879
|
GD as hX,
|
24877
|
-
|
24880
|
+
Ws as hY,
|
24878
24881
|
SD as hZ,
|
24879
24882
|
vD as h_,
|
24880
24883
|
_n as ha,
|
@@ -24918,8 +24921,8 @@ export {
|
|
24918
24921
|
Su as iA,
|
24919
24922
|
QD as iB,
|
24920
24923
|
eP as iC,
|
24921
|
-
|
24922
|
-
|
24924
|
+
lx as iD,
|
24925
|
+
qe as iE,
|
24923
24926
|
Db as iF,
|
24924
24927
|
Mb as iG,
|
24925
24928
|
Vu as iH,
|
@@ -24935,7 +24938,7 @@ export {
|
|
24935
24938
|
Zt as iR,
|
24936
24939
|
nP as iS,
|
24937
24940
|
wv as iT,
|
24938
|
-
|
24941
|
+
st as iU,
|
24939
24942
|
Ro as iV,
|
24940
24943
|
_i as iW,
|
24941
24944
|
RE as iX,
|
@@ -24986,7 +24989,7 @@ export {
|
|
24986
24989
|
LN as jF,
|
24987
24990
|
xi as jG,
|
24988
24991
|
Eu as jH,
|
24989
|
-
|
24992
|
+
Ks as jI,
|
24990
24993
|
Sw as jJ,
|
24991
24994
|
Ar as jK,
|
24992
24995
|
wN as jL,
|
@@ -25070,7 +25073,7 @@ export {
|
|
25070
25073
|
tL as kY,
|
25071
25074
|
So as kZ,
|
25072
25075
|
ex as k_,
|
25073
|
-
|
25076
|
+
Ys as ka,
|
25074
25077
|
Ct as kb,
|
25075
25078
|
Yg as kc,
|
25076
25079
|
Ka as kd,
|
@@ -25105,7 +25108,7 @@ export {
|
|
25105
25108
|
ax as l5,
|
25106
25109
|
aL as l6,
|
25107
25110
|
rL as l7,
|
25108
|
-
|
25111
|
+
Tx as l8,
|
25109
25112
|
wn as l9,
|
25110
25113
|
RT as lA,
|
25111
25114
|
Qu as lB,
|
@@ -25115,7 +25118,7 @@ export {
|
|
25115
25118
|
_D as lF,
|
25116
25119
|
fD as lG,
|
25117
25120
|
pI as lH,
|
25118
|
-
|
25121
|
+
Sx as la,
|
25119
25122
|
Le as lb,
|
25120
25123
|
Vt as lc,
|
25121
25124
|
vo as ld,
|
@@ -25133,7 +25136,7 @@ export {
|
|
25133
25136
|
yw as lp,
|
25134
25137
|
Rw as lq,
|
25135
25138
|
jw as lr,
|
25136
|
-
|
25139
|
+
Me as ls,
|
25137
25140
|
Ow as lt,
|
25138
25141
|
Se as lu,
|
25139
25142
|
Nu as lv,
|