@devtron-labs/devtron-fe-common-lib 1.9.0-beta-4 → 1.9.0-patch-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-CJ_O89ox.js → @code-editor-DD5AVIrc.js} +742 -739
- package/dist/{@common-rjsf-CbzJWaVb.js → @common-rjsf-n8SZVi3T.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/Shared/Services/common.service.d.ts +2 -2
- package/dist/Shared/Services/types.d.ts +14 -6
- 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
@@ -6,21 +6,21 @@ var ap = (e, s, n) => s in e ? np(e, s, { enumerable: !0, configurable: !0, writ
|
|
6
6
|
var me = (e, s, n) => ap(e, typeof s != "symbol" ? s + "" : s, n), Vi = (e, s, n) => s.has(e) || Fi("Cannot " + n);
|
7
7
|
var Ds = (e, s, n) => (Vi(e, s, "read from private field"), n ? n.call(e) : s.get(e)), fa = (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), ha = (e, s, n, a) => (Vi(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
8
|
import { j as t, i as fe, n as rp, Q as Fr, k as op, D as ka, d as Gl, h as ip, A as cp, R as lp, s as dp, c as up, S as Gi, a as mp, b as pp, y as _p, l as Ua, e as fp, f as hp, g as gp, m as xp, o as Hi, p as Ep, q as Yi, r as Np, t as Cp, u as bp, v as Tp, T as Ki, w as Ko, x as Sp, z as Wi, B as Hl, C as Yl, E as Wo, F as vp, V as Ap, G as Ip, H as yp, I as Kl, J as Rp, K as jp, L as Wl, M as zi, N as Op, O as Lp, P as qi, U as wp, W as Dp, X as Fn, Y as Pp, Z as Xi, _ as $e, $ as Mp, a0 as kp, a1 as Ji, a2 as Up, a3 as Bp, a4 as Vr, a5 as Zi, a6 as $p, a7 as Fp, a8 as Vp, a9 as Gp, aa as Hp, ab as Yp, ac as Kp, ad as Wp, ae as zl, af as ql, ag as Xl, ah as zp, ai as qp, aj as Xp, ak as Jp, al as ks } from "./@vendor-CSolG4o7.js";
|
9
|
-
import Ce, { useState as R, cloneElement as Ba, useRef as Y, useEffect as k, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as ze, createContext as Mt, useContext as
|
9
|
+
import Ce, { useState as R, cloneElement as Ba, useRef as Y, useEffect as k, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as ze, createContext as Mt, useContext as ls, Fragment as Hs, memo as ht, useReducer as Zp, createRef as hs } from "react";
|
10
10
|
import { ReactComponent as Zn } from "./assets/ic-warning.ecf7ff97.svg";
|
11
11
|
import { ReactComponent as Qp } from "./assets/ic-cpu.8be677ee.svg";
|
12
12
|
import { ReactComponent as e_ } from "./assets/ic-memory.c4159f96.svg";
|
13
13
|
import { ReactComponent as qo } from "./assets/ic-timer.b62145ec.svg";
|
14
14
|
import { ReactComponent as t_ } from "./assets/ic-spray-can.955302fc.svg";
|
15
15
|
import { ReactComponent as hr } from "./assets/ic-tag.1613fc59.svg";
|
16
|
-
import { Link 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 Jl, Route as Bs, Redirect as s_, Prompt as n_ } from "react-router-dom";
|
17
17
|
import { ReactComponent as a_ } from "./assets/ic-delete-interactive.304dd293.svg";
|
18
18
|
import * as r_ from "yaml";
|
19
19
|
import Dt, { parse as o_, YAMLParseError as i_ } from "yaml";
|
20
20
|
import { ReactComponent as c_ } from "./assets/ic-info-filled-override.99e8094a.svg";
|
21
21
|
import { ReactComponent as l_ } from "./assets/ic-var-initial.afdaa854.svg";
|
22
22
|
import { ReactComponent as Xo } from "./assets/ic-info-outline.29f1089c.svg";
|
23
|
-
import d_, { ReactComponent as
|
23
|
+
import d_, { ReactComponent as Ss } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
24
24
|
import { ReactComponent as u_ } from "./assets/ic-check-square.2a3d3fb9.svg";
|
25
25
|
import { ReactComponent as m_ } from "./assets/ic-check-all.0376437d.svg";
|
26
26
|
import { ReactComponent as nt } from "./assets/ic-close.43adc42a.svg";
|
@@ -32,7 +32,7 @@ import { ReactComponent as __ } from "./assets/ic-bot.f1d4abcc.svg";
|
|
32
32
|
import { ReactComponent as ed } from "./assets/ic-vulnerability-not-found.7d75cc30.svg";
|
33
33
|
import { ReactComponent as f_ } from "./assets/ic-shield-warning-outline.e6832dbc.svg";
|
34
34
|
import { ReactComponent as h_ } from "./assets/ic-shield-check.ecde083d.svg";
|
35
|
-
import { ReactComponent as
|
35
|
+
import { ReactComponent as ds } from "./assets/ic-error-exclamation.c224de09.svg";
|
36
36
|
import { ReactComponent as $a } from "./assets/ic-caret-down-small.66339dda.svg";
|
37
37
|
import { ReactComponent as td } from "./assets/ic-caret-left-small.fe00c98d.svg";
|
38
38
|
import { ReactComponent as Zo } from "./assets/ic-clock.c21a2d14.svg";
|
@@ -42,7 +42,7 @@ import { ReactComponent as gr } from "./assets/ic-pencil.c75a6acc.svg";
|
|
42
42
|
import { ReactComponent as g_ } from "./assets/ic-charts.f41e185f.svg";
|
43
43
|
import { ReactComponent as xr } from "./assets/ic-add.cfaa779b.svg";
|
44
44
|
import { ReactComponent as x_ } from "./assets/ic-k8s-job.f4414c10.svg";
|
45
|
-
import
|
45
|
+
import vs from "react-ga4";
|
46
46
|
import { ReactComponent as nd } from "./assets/ic-medium-paintbucket.38ef52c1.svg";
|
47
47
|
import { ReactComponent as hn } from "./assets/ic-help-outline.9c012a0c.svg";
|
48
48
|
import E_ from "./assets/lifebuoy.7d8fdf27.png";
|
@@ -54,7 +54,7 @@ import { ReactComponent as b_ } from "./assets/ic-onboarding.c98f9ef9.svg";
|
|
54
54
|
import { ReactComponent as T_ } from "./assets/ic-feedback.d32fa6b0.svg";
|
55
55
|
import { ReactComponent as S_ } from "./assets/ic-discord-fill.1a1b291d.svg";
|
56
56
|
import { ReactComponent as rd } from "./assets/ic-file-text.f9563710.svg";
|
57
|
-
import
|
57
|
+
import As from "dompurify";
|
58
58
|
import { ReactComponent as v_ } from "./assets/ic-megaphone.b9f9a901.svg";
|
59
59
|
import ei, { components as Ve } from "react-select";
|
60
60
|
import { ReactComponent as od } from "./assets/ic-arrow-square-out.3d1a0d41.svg";
|
@@ -71,8 +71,8 @@ import { ReactComponent as y_ } from "./assets/ic-visibility-on.7505dd12.svg";
|
|
71
71
|
import { ReactComponent as R_ } from "./assets/ic-visibility-off.d91d3844.svg";
|
72
72
|
import { ReactComponent as j_ } from "./assets/ic-expand-all.d1d223f2.svg";
|
73
73
|
import { ReactComponent as O_ } from "./assets/ic-collapse-all.56740920.svg";
|
74
|
-
import { ReactComponent as
|
75
|
-
import { ReactComponent as
|
74
|
+
import { ReactComponent as is } from "./assets/ic-caret-down.1666c029.svg";
|
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 ud } from "./assets/ic-arrow-out.6aea09d0.svg";
|
78
78
|
import { ReactComponent as md } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
@@ -118,7 +118,7 @@ import { ReactComponent as sf } from "./assets/ic-in-progress.53ef18ae.svg";
|
|
118
118
|
import { ReactComponent as nf } from "./assets/ic-download.c30437cd.svg";
|
119
119
|
import af from "./assets/ic-folder.051cd30d.svg";
|
120
120
|
import xd from "./assets/no-artifact.fd2d84d9.webp";
|
121
|
-
import rf, { ReactComponent as
|
121
|
+
import rf, { ReactComponent as us } from "./assets/ic-cross.01e03666.svg";
|
122
122
|
import { ReactComponent as Ed } from "./assets/ic-arrow-counter-clockwise.01cbb0e1.svg";
|
123
123
|
import { ReactComponent as of } from "./assets/ic-minus.df865aaf.svg";
|
124
124
|
import { ReactComponent as cf } from "./assets/ic-enter.cab07082.svg";
|
@@ -202,7 +202,7 @@ import { ReactComponent as Nh } from "./assets/ic-helm.49cb43a3.svg";
|
|
202
202
|
import { ReactComponent as Ch } from "./assets/ic-help-outline.4b30e33c.svg";
|
203
203
|
import { ReactComponent as bh } from "./assets/ic-hibernate.988d2323.svg";
|
204
204
|
import { ReactComponent as Th } from "./assets/ic-in-progress.73f9ca1e.svg";
|
205
|
-
import { ReactComponent as Sh } from "./assets/ic-info-filled.
|
205
|
+
import { ReactComponent as Sh } from "./assets/ic-info-filled.9277eb13.svg";
|
206
206
|
import { ReactComponent as vh } from "./assets/ic-info-outline.d29630b4.svg";
|
207
207
|
import { ReactComponent as Ah } from "./assets/ic-job-color.bb826301.svg";
|
208
208
|
import { ReactComponent as Ih } from "./assets/ic-k8s-job.d3310821.svg";
|
@@ -489,7 +489,7 @@ const GO = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2), Md = Symbol(
|
|
489
489
|
`The element at this index remains unchanged from the original object.
|
490
490
|
This symbol is used by @buildObjectFromPath & later consumed by @recursivelyRemoveSymbolFromArraysInObject`
|
491
491
|
);
|
492
|
-
var
|
492
|
+
var fs = /* @__PURE__ */ ((e) => (e.google = "google", e.github = "github", e.gitlab = "gitlab", e.microsoft = "microsoft", e.ldap = "ldap", e.oidc = "oidc", e.openshift = "openshift", e))(fs || {});
|
493
493
|
class Cg {
|
494
494
|
constructor(s) {
|
495
495
|
me(this, "code");
|
@@ -514,7 +514,7 @@ const 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 || {}), kd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(kd || {}), bg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(bg || {}), Tg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Tg || {}), Un = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Un || {}), Sg = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(vg || {}), Eo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Eo || {}), Ag = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(Ag || {}), Ud = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Ud || {}), Ig = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Ig || {}), 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 || {}), yg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(yg || {}), Vs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Vs || {}),
|
517
|
+
var Bt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Bt || {}), kd = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(kd || {}), bg = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(bg || {}), Tg = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Tg || {}), Un = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Un || {}), Sg = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Sg || {}), vg = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(vg || {}), Eo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Eo || {}), Ag = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(Ag || {}), Ud = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Ud || {}), Ig = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Ig || {}), 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 || {}), yg = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(yg || {}), Vs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Vs || {}), Es = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Es || {}), Hn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Hn || {}), No = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(No || {}), Rg = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(Rg || {});
|
518
518
|
const ic = {
|
519
519
|
100: "Continue",
|
520
520
|
101: "Switching Protocols",
|
@@ -703,7 +703,7 @@ const YO = [
|
|
703
703
|
/* YAML */
|
704
704
|
}
|
705
705
|
];
|
706
|
-
var $g = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))($g || {}), Fg = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(Fg || {}), Vg = /* @__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))(Vg || {}),
|
706
|
+
var $g = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))($g || {}), Fg = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(Fg || {}), Vg = /* @__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))(Vg || {}), 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 Gg = {
|
708
708
|
Auto: "AUTOMATIC",
|
709
709
|
Manual: "MANUAL"
|
@@ -1003,7 +1003,7 @@ const Ye = {
|
|
1003
1003
|
var Xg = /* @__PURE__ */ ((e) => (e[e.DEVTRON_APP = 0] = "DEVTRON_APP", e[e.HELM_APP = 1] = "HELM_APP", e[e.EXTERNAL_ARGO_APP = 2] = "EXTERNAL_ARGO_APP", e[e.EXTERNAL_FLUX_APP = 3] = "EXTERNAL_FLUX_APP", e))(Xg || {});
|
1004
1004
|
const lc = /\x1B\[.*?m/g;
|
1005
1005
|
var P = /* @__PURE__ */ ((e) => (e.xxs = "xxs", e.xs = "xs", e.small = "small", e.medium = "medium", e.large = "large", e.xl = "xl", e))(P || {});
|
1006
|
-
const
|
1006
|
+
const gs = {
|
1007
1007
|
xxs: "py-1 fs-12 lh-20",
|
1008
1008
|
xs: "py-1 fs-12 lh-20",
|
1009
1009
|
small: "py-3 fs-12 lh-20",
|
@@ -1039,7 +1039,126 @@ const zO = Object.values(
|
|
1039
1039
|
}, QO = -1, dc = "devtron-base-main-identifier", tx = "devtron.ai/", sx = "You have unsaved changes. Are you sure you want to leave?", eL = "Please don't wander off! Reloading or going back might disrupt the ongoing operation.", tL = {
|
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
|
+
}, nx = {
|
1043
|
+
Control: "Ctrl",
|
1044
|
+
Shift: "⇧",
|
1045
|
+
Meta: Ha ? "⌘" : "Win",
|
1046
|
+
Alt: Ha ? "⌥" : "Alt",
|
1047
|
+
F: "F",
|
1048
|
+
E: "E",
|
1049
|
+
R: "R",
|
1050
|
+
K: "K",
|
1051
|
+
Escape: "Esc",
|
1052
|
+
Enter: "↩"
|
1053
|
+
}, ax = ({ 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: nx[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(ax, { ...e }) } : {},
|
1077
|
+
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
1078
|
+
children: Ba(r, { ...r.props, onMouseEnter: l })
|
1079
|
+
}
|
1080
|
+
) : Ba(r, { ...r.props, onMouseEnter: l });
|
1081
|
+
}, sL = {
|
1082
|
+
INVALID_INPUT: "Valid input is required for all mandatory fields."
|
1083
|
+
}, rx = (e) => (s) => /* @__PURE__ */ t.jsx(ie, { ...e, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: s }) }), ox = ({ 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: rx(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
|
+
}, ix = {
|
1096
|
+
"ic-aborted": Vf,
|
1097
|
+
"ic-app-group": Gf,
|
1098
|
+
"ic-arrow-right": Hf,
|
1099
|
+
"ic-azure": Yf,
|
1100
|
+
"ic-bitbucket": yd,
|
1101
|
+
"ic-browser": Kf,
|
1102
|
+
"ic-build-color": Wf,
|
1103
|
+
"ic-cancelled": zf,
|
1104
|
+
"ic-cd": qf,
|
1105
|
+
"ic-ci-linked": Xf,
|
1106
|
+
"ic-ci-webhook": Jf,
|
1107
|
+
"ic-circle-loader": Zf,
|
1108
|
+
"ic-clock": Qf,
|
1109
|
+
"ic-close-small": eh,
|
1110
|
+
"ic-code": th,
|
1111
|
+
"ic-container": sh,
|
1112
|
+
"ic-crown": nh,
|
1113
|
+
"ic-cube": ah,
|
1114
|
+
"ic-dockerhub": rh,
|
1115
|
+
"ic-ecr": oh,
|
1116
|
+
"ic-env": ih,
|
1117
|
+
"ic-error": ch,
|
1118
|
+
"ic-failure": lh,
|
1119
|
+
"ic-gear": dh,
|
1120
|
+
"ic-git": uh,
|
1121
|
+
"ic-github": mh,
|
1122
|
+
"ic-gitlab": Rd,
|
1123
|
+
"ic-google-artifact-registry": ph,
|
1124
|
+
"ic-google-container-registry": _h,
|
1125
|
+
"ic-google": fh,
|
1126
|
+
"ic-grid-view": hh,
|
1127
|
+
"ic-heart-green": gh,
|
1128
|
+
"ic-heart-red-animated": xh,
|
1129
|
+
"ic-heart-red": Eh,
|
1130
|
+
"ic-helm": Nh,
|
1131
|
+
"ic-help-outline": Ch,
|
1132
|
+
"ic-hibernate": bh,
|
1133
|
+
"ic-in-progress": Th,
|
1134
|
+
"ic-info-filled": Sh,
|
1135
|
+
"ic-info-outline": vh,
|
1136
|
+
"ic-job-color": Ah,
|
1137
|
+
"ic-k8s-job": Ih,
|
1138
|
+
"ic-ldap": yh,
|
1139
|
+
"ic-login-devtron-logo": Rh,
|
1140
|
+
"ic-logout": jh,
|
1141
|
+
"ic-medium-paintbucket": nd,
|
1142
|
+
"ic-microsoft": Oh,
|
1143
|
+
"ic-missing": Lh,
|
1144
|
+
"ic-monitoring": wh,
|
1145
|
+
"ic-node-script": Dh,
|
1146
|
+
"ic-oidc": Ph,
|
1147
|
+
"ic-open-box": Mh,
|
1148
|
+
"ic-open-in-new": Id,
|
1149
|
+
"ic-openshift": kh,
|
1150
|
+
"ic-out-of-sync": Uh,
|
1151
|
+
"ic-paper-plane-color": Bh,
|
1152
|
+
"ic-quay": $h,
|
1153
|
+
"ic-shield-check": Fh,
|
1154
|
+
"ic-stack": Vh,
|
1155
|
+
"ic-success": Gh,
|
1156
|
+
"ic-suspended": Hh,
|
1157
|
+
"ic-timeout-two-dash": Yh,
|
1158
|
+
"ic-unknown": Kh,
|
1159
|
+
"ic-user-key": Wh,
|
1160
|
+
"ic-warning": zh
|
1161
|
+
}, qe = (e) => /* @__PURE__ */ t.jsx(ox, { ...e, iconMap: ix }), 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
|
+
}, nL = ({
|
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: Ha ? "⌘" : "Win",
|
1089
|
-
Alt: Ha ? "⌥" : "Alt",
|
1090
|
-
F: "F",
|
1091
|
-
E: "E",
|
1092
|
-
R: "R",
|
1093
|
-
K: "K",
|
1094
|
-
Escape: "Esc",
|
1095
|
-
Enter: "↩"
|
1096
|
-
}, ax = ({ 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: nx[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(ax, { ...e }) } : {},
|
1120
|
-
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
1121
|
-
children: Ba(r, { ...r.props, onMouseEnter: l })
|
1122
|
-
}
|
1123
|
-
) : Ba(r, { ...r.props, onMouseEnter: l });
|
1124
|
-
}, nL = {
|
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
|
1129
|
-
[P.xxs]: `${
|
1130
|
-
[P.xs]: `${
|
1131
|
-
[P.small]: `${
|
1132
|
-
[P.medium]: `${
|
1133
|
-
[P.large]: `${
|
1134
|
-
[P.xl]: `${
|
1135
|
-
},
|
1206
|
+
const cx = {
|
1207
|
+
[P.xxs]: `${gs[P.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1208
|
+
[P.xs]: `${gs[P.xs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1209
|
+
[P.small]: `${gs[P.small]} px-9 fw-6 dc__gap-8 mw-48`,
|
1210
|
+
[P.medium]: `${gs[P.medium]} px-11 fw-6 dc__gap-8 mw-48`,
|
1211
|
+
[P.large]: `${gs[P.large]} px-13 fw-6 dc__gap-8 mw-64`,
|
1212
|
+
[P.xl]: `${gs[P.xl]} px-15 fw-6 dc__gap-12 mw-64`
|
1213
|
+
}, lx = {
|
1136
1214
|
[P.xxs]: "p-1",
|
1137
1215
|
[P.xs]: "p-3",
|
1138
1216
|
[P.small]: "p-5",
|
@@ -1148,14 +1226,14 @@ const Yd = {
|
|
1148
1226
|
[P.medium]: 16,
|
1149
1227
|
[P.large]: 20,
|
1150
1228
|
[P.xl]: 24
|
1151
|
-
},
|
1229
|
+
}, dx = ({ size: e, icon: s }) => `icon-dim-${s ? Yd[e] : Gd[e]}`, ux = ({ size: e, icon: s }) => s ? Yd[e] : Gd[e], mx = ({
|
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 ? lx[e] : cx[e]} ${o ? "button--auto-click" : ""} ${a ? "button--loading" : ""}`, px = ({
|
1159
1237
|
component: e = Kn.button,
|
1160
1238
|
linkProps: s,
|
1161
1239
|
buttonProps: n,
|
@@ -1163,7 +1241,7 @@ const Yd = {
|
|
1163
1241
|
elementRef: r,
|
1164
1242
|
...o
|
1165
1243
|
}) => e === Kn.link ? /* @__PURE__ */ t.jsx(
|
1166
|
-
|
1244
|
+
Os,
|
1167
1245
|
{
|
1168
1246
|
...s,
|
1169
1247
|
...o,
|
@@ -1200,7 +1278,7 @@ const Yd = {
|
|
1200
1278
|
triggerAutoClickTimestamp: h,
|
1201
1279
|
...g
|
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 ${dx({
|
1204
1282
|
size: a,
|
1205
1283
|
icon: m
|
1206
1284
|
})}`;
|
@@ -1222,11 +1300,11 @@ const Yd = {
|
|
1222
1300
|
...u
|
1223
1301
|
};
|
1224
1302
|
return /* @__PURE__ */ t.jsx(ie, { ...v(), children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs(
|
1225
|
-
|
1303
|
+
px,
|
1226
1304
|
{
|
1227
1305
|
...g,
|
1228
1306
|
disabled: S,
|
1229
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${
|
1307
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${mx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${S ? "dc__disabled" : ""} ${E ? "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 Yd = {
|
|
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: ux({
|
1244
1322
|
size: a,
|
1245
1323
|
icon: m
|
1246
1324
|
})
|
@@ -1260,7 +1338,7 @@ const Yd = {
|
|
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(ds, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
|
1264
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 Yd = {
|
|
1295
1373
|
genericSectionErrorProps: c,
|
1296
1374
|
errorScreenManagerProps: l,
|
1297
1375
|
children: d
|
1298
|
-
}) => r ? /* @__PURE__ */ t.jsx(DI, {}) : e ? n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: n }) : /* @__PURE__ */ t.jsx(
|
1299
|
-
|
1376
|
+
}) => r ? /* @__PURE__ */ t.jsx(DI, {}) : 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(Jn, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }),
|
1382
|
+
) : /* @__PURE__ */ t.jsx(Jn, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }), _x = (e = {}) => ({
|
1305
1383
|
container: (s, n) => ({
|
1306
1384
|
...s,
|
1307
1385
|
...n.isDisabled && {
|
@@ -1430,9 +1508,9 @@ const Yd = {
|
|
1430
1508
|
paddingLeft: 0
|
1431
1509
|
}),
|
1432
1510
|
...e
|
1433
|
-
}),
|
1511
|
+
}), fx = (e, s) => e ? "var(--B100)" : s ? "var(--bg-secondary)" : "var(--bg-primary)", hx = (e = {}) => (s, n) => ({
|
1434
1512
|
...s,
|
1435
|
-
backgroundColor:
|
1513
|
+
backgroundColor: fx(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 Yd = {
|
|
1442
1520
|
cursor: "pointer",
|
1443
1521
|
fontSize: "13px",
|
1444
1522
|
...e
|
1445
|
-
}),
|
1523
|
+
}), gx = () => /* @__PURE__ */ t.jsx(Ue, {}), xx = (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
|
+
}, Ex = _x(), aL = ({
|
1449
1527
|
handleApplyFilter: e,
|
1450
1528
|
...s
|
1451
1529
|
}) => {
|
@@ -1580,7 +1658,7 @@ const Yd = {
|
|
1580
1658
|
...e,
|
1581
1659
|
backgroundColor: "var(--bg-primary)"
|
1582
1660
|
})
|
1583
|
-
},
|
1661
|
+
}, Nx = ({
|
1584
1662
|
locator: e,
|
1585
1663
|
label: s,
|
1586
1664
|
isSelected: n,
|
@@ -1607,7 +1685,7 @@ const Yd = {
|
|
1607
1685
|
}
|
1608
1686
|
);
|
1609
1687
|
};
|
1610
|
-
var
|
1688
|
+
var Cx = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(Cx || {}), 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 || {}), bx = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(bx || {}), 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 || {}), rt = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(rt || {}), 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 || {}), Wd = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(Wd || {});
|
1611
1689
|
const di = (e) => {
|
1612
1690
|
const s = Y(null), [n, a] = R(!1), r = e.theme === ea.white, o = (N) => {
|
1613
1691
|
N.keyCode === 27 && c(N);
|
@@ -1652,7 +1730,7 @@ const di = (e) => {
|
|
1652
1730
|
I && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: I }),
|
1653
1731
|
v && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" }) }),
|
1654
1732
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1655
|
-
|
1733
|
+
us,
|
1656
1734
|
{
|
1657
1735
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "icon-fill__white"}`,
|
1658
1736
|
onClick: c
|
@@ -1764,14 +1842,14 @@ const di = (e) => {
|
|
1764
1842
|
)
|
1765
1843
|
}
|
1766
1844
|
);
|
1767
|
-
var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), Te = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Te || {}), zd = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(zd || {}),
|
1768
|
-
const
|
1845
|
+
var U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), $t = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))($t || {}), Te = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Te || {}), zd = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(zd || {}), bs = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(bs || {}), qd = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(qd || {}), Ka = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Ka || {}), Wn = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(Wn || {}), Ao = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(Ao || {}), Io = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(Io || {}), Et = /* @__PURE__ */ ((e) => (e.ADD_TARGET_PLATFORM = "add_target_platform", e.REMOVE_TARGET_PLATFORM = "remove_target_platform", e.RENAME_TARGET_PLATFORM = "rename_target_platform", e.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", e.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", e.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", e.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", e.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", e.ADD_TOLERANCE_ITEM = "add_tolerance_item", e.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", e.ADD_CM_CS_ITEM = "add_cm_cs_item", e.SYNC_CM_CS_ITEM = "sync_cm_cs_item", e.DELETE_CM_CS_ITEM = "delete_cm_cs_item", e))(Et || {}), Xd = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(Xd || {});
|
1846
|
+
const ys = {
|
1769
1847
|
// Will not enforce any decimal specification on input field
|
1770
1848
|
STEP: "any",
|
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",
|
@@ -1789,8 +1867,8 @@ const Is = {
|
|
1789
1867
|
VALIDATE_REQUEST_LIMIT: {
|
1790
1868
|
REQUEST_LESS_THAN_LIMIT: "Request should be less than or equal to limit.",
|
1791
1869
|
CAN_NOT_COMPUTE: "Request and limit value diff are too high to validate.",
|
1792
|
-
REQUEST_DECIMAL_PLACES: `Request should be upto ${
|
1793
|
-
LIMIT_DECIMAL_PLACES: `Limit should be upto ${
|
1870
|
+
REQUEST_DECIMAL_PLACES: `Request should be upto ${ys.DECIMAL_PLACES} decimal places.`,
|
1871
|
+
LIMIT_DECIMAL_PLACES: `Limit should be upto ${ys.DECIMAL_PLACES} decimal places.`
|
1794
1872
|
},
|
1795
1873
|
getInvalidActionMessage: (e) => `Invalid action type: ${e}`,
|
1796
1874
|
getSubmitSuccessMessage: (e, s) => `${e} profile is ${s ? "updated" : "created"}`,
|
@@ -1803,7 +1881,7 @@ const Is = {
|
|
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 Is = {
|
|
1879
1957
|
...$t,
|
1880
1958
|
...Wn
|
1881
1959
|
}).map((e) => [e, null])
|
1882
|
-
),
|
1960
|
+
), Tx = [$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", Sx = Xd.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 Is = {
|
|
1904
1982
|
[Te.TOLERANCE]: [U.TOLERANCE],
|
1905
1983
|
[Te.CONFIG_MAP]: [U.CONFIG_MAP],
|
1906
1984
|
[Te.SECRET]: [U.SECRET]
|
1907
|
-
},
|
1985
|
+
}, vx = {
|
1908
1986
|
[U.CPU_LIMIT]: {
|
1909
1987
|
keyToPersist: "request",
|
1910
1988
|
keyToPersistConfigType: U.CPU_REQUEST
|
@@ -1921,7 +1999,7 @@ const Is = {
|
|
1921
1999
|
keyToPersist: "limit",
|
1922
2000
|
keyToPersistConfigType: U.MEMORY_LIMIT
|
1923
2001
|
}
|
1924
|
-
},
|
2002
|
+
}, Ax = qd.NO_SCHEDULE, Ix = bs.EQUALS, yx = {
|
1925
2003
|
[U.BUILD_TIMEOUT]: !0,
|
1926
2004
|
[U.CONFIG_MAP]: !0,
|
1927
2005
|
[U.SECRET]: !0
|
@@ -1929,15 +2007,15 @@ const Is = {
|
|
1929
2007
|
[U.CONFIG_MAP]: !0,
|
1930
2008
|
[U.SECRET]: !0
|
1931
2009
|
}, Zd = {
|
1932
|
-
[U.CONFIG_MAP]:
|
1933
|
-
[U.SECRET]:
|
1934
|
-
},
|
1935
|
-
[
|
1936
|
-
[
|
2010
|
+
[U.CONFIG_MAP]: Is.ConfigMap,
|
2011
|
+
[U.SECRET]: Is.Secret
|
2012
|
+
}, Xe = {
|
2013
|
+
[Is.ConfigMap]: U.CONFIG_MAP,
|
2014
|
+
[Is.Secret]: U.SECRET
|
1937
2015
|
}, dL = {
|
1938
|
-
[
|
1939
|
-
[
|
1940
|
-
},
|
2016
|
+
[Is.ConfigMap]: Te.CONFIG_MAP,
|
2017
|
+
[Is.Secret]: Te.SECRET
|
2018
|
+
}, Rx = !0, uL = {
|
1941
2019
|
activate_cm: !0,
|
1942
2020
|
activate_cs: !0,
|
1943
2021
|
de_activate_cm: !0,
|
@@ -1956,9 +2034,9 @@ const Is = {
|
|
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 Is = {
|
|
1967
2045
|
] }) }),
|
1968
2046
|
n
|
1969
2047
|
] }), pL = ({ 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 Is = {
|
|
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,12 +2065,12 @@ const Is = {
|
|
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
|
] });
|
1994
2072
|
};
|
1995
|
-
var
|
2073
|
+
var Rs = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER_LESS = "border-less", e))(Rs || {});
|
1996
2074
|
const hc = {
|
1997
2075
|
[P.small]: "12px",
|
1998
2076
|
[P.medium]: "13px",
|
@@ -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
|
+
}, jx = {
|
2005
2083
|
[P.small]: "auto",
|
2006
2084
|
[P.medium]: "auto",
|
2007
2085
|
[P.large]: "36px"
|
@@ -2031,7 +2109,7 @@ const hc = {
|
|
2031
2109
|
}
|
2032
2110
|
}, Ec = (e) => {
|
2033
2111
|
switch (e) {
|
2034
|
-
case
|
2112
|
+
case Rs.BORDER_LESS:
|
2035
2113
|
return {
|
2036
2114
|
control: () => ({
|
2037
2115
|
backgroundColor: "transparent",
|
@@ -2046,7 +2124,7 @@ const hc = {
|
|
2046
2124
|
default:
|
2047
2125
|
return null;
|
2048
2126
|
}
|
2049
|
-
},
|
2127
|
+
}, Ox = (e) => e.isSelected && !e.selectProps.isMulti ? "var(--B100)" : e.isFocused ? "var(--bg-hover)" : "var(--transparent)", Lx = ({
|
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: jx[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: Ox(l),
|
2111
2189
|
padding: "6px 8px",
|
2112
2190
|
cursor: "pointer",
|
2113
2191
|
fontSize: "13px",
|
@@ -2268,7 +2346,7 @@ const hc = {
|
|
2268
2346
|
lineHeight: "20px",
|
2269
2347
|
...Ec(a)?.singleValue(c, l) || {}
|
2270
2348
|
})
|
2271
|
-
}),
|
2349
|
+
}), wx = (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]) ? dt.CHECKED : r.some((c) => a[c]) ? dt.INTERMEDIATE : null;
|
2274
2352
|
}, _n = (e, s, n = { label: "", value: "" }, a = null) => Array.isArray(e) ? e.flatMap(
|
@@ -2298,17 +2376,17 @@ class ws extends fr {
|
|
2298
2376
|
] });
|
2299
2377
|
}
|
2300
2378
|
}
|
2301
|
-
const
|
2379
|
+
const Dx = (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
|
+
}, Px = (e) => {
|
2309
2387
|
const { isDisabled: s } = e;
|
2310
|
-
return /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
2311
|
-
},
|
2388
|
+
return /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(is, { className: s ? "scn-3" : "scn-6" }) });
|
2389
|
+
}, Mx = (e) => /* @__PURE__ */ t.jsx(Ve.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(nt, { className: "icon-use-fill-n6" }) }), kx = (e) => {
|
2312
2390
|
const {
|
2313
2391
|
children: s,
|
2314
2392
|
getValue: n,
|
@@ -2319,13 +2397,13 @@ const Ox = (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
|
+
}, Ux = (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
|
+
}, Bx = ({
|
2329
2407
|
showSelectedOptionsCount: e,
|
2330
2408
|
customSelectedOptionsCount: s,
|
2331
2409
|
...n
|
@@ -2345,7 +2423,7 @@ const Ox = (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
|
+
}, $x = () => /* @__PURE__ */ t.jsx(Ue, {}), Fx = ({
|
2349
2427
|
disableDescriptionEllipsis: e,
|
2350
2428
|
...s
|
2351
2429
|
}) => {
|
@@ -2356,10 +2434,10 @@ const Ox = (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__, E = (
|
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__, E = (h) => {
|
2438
|
+
h.preventDefault(), h.stopPropagation(), o(a);
|
2439
|
+
}, x = "dc__no-shrink icon-dim-16 flex dc__fill-available-space";
|
2440
|
+
return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ie, { ...Dx(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
|
{
|
@@ -2372,7 +2450,7 @@ const Ox = (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: `${x} 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 Ox = (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: x, children: u })
|
2393
2471
|
] })
|
2394
2472
|
] }) }) });
|
2395
|
-
},
|
2473
|
+
}, Vx = (e) => {
|
2396
2474
|
const {
|
2397
2475
|
children: s,
|
2398
2476
|
selectProps: {
|
@@ -2410,11 +2488,11 @@ const Ox = (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
|
+
}, Gx = ({
|
2414
2492
|
getIsOptionValid: e,
|
2415
2493
|
...s
|
2416
2494
|
}) => {
|
2417
|
-
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(
|
2495
|
+
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(ds, {});
|
2418
2496
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4 mw-0 dc__truncate", children: [
|
2419
2497
|
o && /* @__PURE__ */ t.jsx(
|
2420
2498
|
"div",
|
@@ -2425,7 +2503,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2425
2503
|
),
|
2426
2504
|
/* @__PURE__ */ t.jsx(Ve.MultiValueLabel, { ...s })
|
2427
2505
|
] });
|
2428
|
-
},
|
2506
|
+
}, Hx = (e) => /* @__PURE__ */ t.jsx(Ve.MultiValueRemove, { ...e, children: /* @__PURE__ */ t.jsx("span", { className: "flex dc__no-shrink", children: /* @__PURE__ */ t.jsx(nt, { className: "icon-dim-12 icon-use-fill-n6" }) }) }), Yx = ({
|
2429
2507
|
isGroupHeadingSelectable: e,
|
2430
2508
|
...s
|
2431
2509
|
}) => {
|
@@ -2434,7 +2512,7 @@ const Ox = (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 = wx(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
|
);
|
@@ -2465,7 +2543,7 @@ const Ox = (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
|
-
}, Qd = (e) => `${e}-error-msg`, eu = (e) => `${e}-label`,
|
2546
|
+
}, Qd = (e) => `${e}-error-msg`, eu = (e) => `${e}-label`, Kx = (e) => `${e}-helper-text`, ui = ({
|
2469
2547
|
inputId: e,
|
2470
2548
|
label: s,
|
2471
2549
|
ariaLabel: n,
|
@@ -2475,7 +2553,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2475
2553
|
}) => ({
|
2476
2554
|
"aria-required": a,
|
2477
2555
|
...o ? {
|
2478
|
-
"aria-describedby":
|
2556
|
+
"aria-describedby": Kx(e)
|
2479
2557
|
} : {},
|
2480
2558
|
...r ? {
|
2481
2559
|
"aria-errormessage": Qd(e),
|
@@ -2486,7 +2564,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2486
2564
|
} : {
|
2487
2565
|
"aria-label": n
|
2488
2566
|
}
|
2489
|
-
}),
|
2567
|
+
}), Wx = ({
|
2490
2568
|
label: e,
|
2491
2569
|
inputId: s,
|
2492
2570
|
required: n,
|
@@ -2521,86 +2599,8 @@ const Ox = (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: Yx(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
|
-
}, Wx = {
|
2537
|
-
"ic-aborted": Vf,
|
2538
|
-
"ic-app-group": Gf,
|
2539
|
-
"ic-arrow-right": Hf,
|
2540
|
-
"ic-azure": Yf,
|
2541
|
-
"ic-bitbucket": yd,
|
2542
|
-
"ic-browser": Kf,
|
2543
|
-
"ic-build-color": Wf,
|
2544
|
-
"ic-cancelled": zf,
|
2545
|
-
"ic-cd": qf,
|
2546
|
-
"ic-ci-linked": Xf,
|
2547
|
-
"ic-ci-webhook": Jf,
|
2548
|
-
"ic-circle-loader": Zf,
|
2549
|
-
"ic-clock": Qf,
|
2550
|
-
"ic-close-small": eh,
|
2551
|
-
"ic-code": th,
|
2552
|
-
"ic-container": sh,
|
2553
|
-
"ic-crown": nh,
|
2554
|
-
"ic-cube": ah,
|
2555
|
-
"ic-dockerhub": rh,
|
2556
|
-
"ic-ecr": oh,
|
2557
|
-
"ic-env": ih,
|
2558
|
-
"ic-error": ch,
|
2559
|
-
"ic-failure": lh,
|
2560
|
-
"ic-gear": dh,
|
2561
|
-
"ic-git": uh,
|
2562
|
-
"ic-github": mh,
|
2563
|
-
"ic-gitlab": Rd,
|
2564
|
-
"ic-google-artifact-registry": ph,
|
2565
|
-
"ic-google-container-registry": _h,
|
2566
|
-
"ic-google": fh,
|
2567
|
-
"ic-grid-view": hh,
|
2568
|
-
"ic-heart-green": gh,
|
2569
|
-
"ic-heart-red-animated": xh,
|
2570
|
-
"ic-heart-red": Eh,
|
2571
|
-
"ic-helm": Nh,
|
2572
|
-
"ic-help-outline": Ch,
|
2573
|
-
"ic-hibernate": bh,
|
2574
|
-
"ic-in-progress": Th,
|
2575
|
-
"ic-info-filled": Sh,
|
2576
|
-
"ic-info-outline": vh,
|
2577
|
-
"ic-job-color": Ah,
|
2578
|
-
"ic-k8s-job": Ih,
|
2579
|
-
"ic-ldap": yh,
|
2580
|
-
"ic-login-devtron-logo": Rh,
|
2581
|
-
"ic-logout": jh,
|
2582
|
-
"ic-medium-paintbucket": nd,
|
2583
|
-
"ic-microsoft": Oh,
|
2584
|
-
"ic-missing": Lh,
|
2585
|
-
"ic-monitoring": wh,
|
2586
|
-
"ic-node-script": Dh,
|
2587
|
-
"ic-oidc": Ph,
|
2588
|
-
"ic-open-box": Mh,
|
2589
|
-
"ic-open-in-new": Id,
|
2590
|
-
"ic-openshift": kh,
|
2591
|
-
"ic-out-of-sync": Uh,
|
2592
|
-
"ic-paper-plane-color": Bh,
|
2593
|
-
"ic-quay": $h,
|
2594
|
-
"ic-shield-check": Fh,
|
2595
|
-
"ic-stack": Vh,
|
2596
|
-
"ic-success": Gh,
|
2597
|
-
"ic-suspended": Hh,
|
2598
|
-
"ic-timeout-two-dash": Yh,
|
2599
|
-
"ic-unknown": Kh,
|
2600
|
-
"ic-user-key": Wh,
|
2601
|
-
"ic-warning": zh
|
2602
|
-
}, st = (e) => /* @__PURE__ */ t.jsx(Kx, { ...e, iconMap: Wx }), 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
|
] }), zx = ({ 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: Qd(a) }),
|
@@ -2623,7 +2623,7 @@ const Ox = (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
|
+
Wx,
|
2627
2627
|
{
|
2628
2628
|
inputId: a,
|
2629
2629
|
label: n,
|
@@ -2665,7 +2665,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2665
2665
|
optionListError: u,
|
2666
2666
|
reloadOptionList: m,
|
2667
2667
|
menuPosition: p = "fixed",
|
2668
|
-
variant: _ =
|
2668
|
+
variant: _ = Rs.DEFAULT,
|
2669
2669
|
disableDescriptionEllipsis: E = !1,
|
2670
2670
|
multiSelectProps: x = {},
|
2671
2671
|
isMulti: h,
|
@@ -2707,7 +2707,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2707
2707
|
getIsOptionValid: je = () => !0,
|
2708
2708
|
customDisplayText: xt = null
|
2709
2709
|
} = x, jt = oe && !xt, _a = h && jt ? P.large : i, Br = !h && o, W = !N && C, Ae = te(
|
2710
|
-
() =>
|
2710
|
+
() => Lx({
|
2711
2711
|
error: e,
|
2712
2712
|
size: _a,
|
2713
2713
|
menuSize: d,
|
@@ -2718,16 +2718,16 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2718
2718
|
}),
|
2719
2719
|
[e, _a, d, _, se, S]
|
2720
2720
|
), _e = (we) => {
|
2721
|
-
const
|
2722
|
-
return b && !!
|
2721
|
+
const ms = we?.trim();
|
2722
|
+
return b && !!ms && !_n(
|
2723
2723
|
ve,
|
2724
|
-
|
2724
|
+
ms,
|
2725
2725
|
null,
|
2726
2726
|
K
|
2727
|
-
) && !_n(Ee,
|
2727
|
+
) && !_n(Ee, ms, null, K);
|
2728
2728
|
}, Ge = ze(
|
2729
2729
|
(we) => /* @__PURE__ */ t.jsx(
|
2730
|
-
|
2730
|
+
Bx,
|
2731
2731
|
{
|
2732
2732
|
...we,
|
2733
2733
|
showSelectedOptionsCount: l,
|
@@ -2735,18 +2735,18 @@ const Ox = (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(Fx, { ...we, disableDescriptionEllipsis: E }),
|
2740
2740
|
[E]
|
2741
|
-
), Ot = (we) => /* @__PURE__ */ t.jsx(
|
2742
|
-
(we) => /* @__PURE__ */ t.jsx(
|
2741
|
+
), Ot = (we) => /* @__PURE__ */ t.jsx(Gx, { ...we, getIsOptionValid: je }), $r = ze(
|
2742
|
+
(we) => /* @__PURE__ */ t.jsx(Yx, { ...we, isGroupHeadingSelectable: se }),
|
2743
2743
|
[se]
|
2744
2744
|
), qm = () => 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, Xm = (we) => /* @__PURE__ */ t.jsx(fe, { content: c, placement: "top", className: "default-tt", arrow: !1, children: we }), Jm = (we) => {
|
2745
|
-
const
|
2746
|
-
|
2747
|
-
}, Zm = (we,
|
2745
|
+
const ms = we?.trim();
|
2746
|
+
ms && O?.(ms);
|
2747
|
+
}, Zm = (we, ms) => {
|
2748
2748
|
if (F.onInputChange) {
|
2749
|
-
F.onInputChange(we,
|
2749
|
+
F.onInputChange(we, ms);
|
2750
2750
|
return;
|
2751
2751
|
}
|
2752
2752
|
D(we);
|
@@ -2805,18 +2805,18 @@ const Ox = (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: $x,
|
2809
|
+
DropdownIndicator: Px,
|
2810
|
+
Control: kx,
|
2811
|
+
Option: tt,
|
2812
|
+
MenuList: Vx,
|
2813
|
+
ClearIndicator: Mx,
|
2814
2814
|
ValueContainer: Ge,
|
2815
2815
|
MultiValueLabel: Ot,
|
2816
|
-
MultiValueRemove:
|
2816
|
+
MultiValueRemove: Hx,
|
2817
2817
|
GroupHeading: $r,
|
2818
2818
|
NoOptionsMessage: qm,
|
2819
|
-
Input:
|
2819
|
+
Input: Ux,
|
2820
2820
|
...B && {
|
2821
2821
|
Menu: () => null,
|
2822
2822
|
DropdownIndicator: () => null
|
@@ -3131,16 +3131,16 @@ const su = (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: mu[n]
|
3146
3146
|
});
|
@@ -3205,7 +3205,7 @@ const fE = (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 =
|
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);
|
@@ -3351,7 +3351,7 @@ const Sc = () => ({
|
|
3351
3351
|
}), vc(n, JSON.stringify(d(l))), N(O);
|
3352
3352
|
}
|
3353
3353
|
};
|
3354
|
-
}, ru = Mt(null), aa = () =>
|
3354
|
+
}, ru = Mt(null), aa = () => ls(ru), Ca = (e) => {
|
3355
3355
|
if (!e)
|
3356
3356
|
throw new Error("keys undefined");
|
3357
3357
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -3598,8 +3598,8 @@ const Sc = () => ({
|
|
3598
3598
|
"data-testid": `${e}-input-field`,
|
3599
3599
|
name: e,
|
3600
3600
|
type: "number",
|
3601
|
-
step:
|
3602
|
-
min:
|
3601
|
+
step: ys.STEP,
|
3602
|
+
min: ys.MIN,
|
3603
3603
|
className: `form__input dc__no-right-border dc__no-right-radius ${u ? "dc__disabled" : ""}`,
|
3604
3604
|
placeholder: n,
|
3605
3605
|
value: qa(l) ? "" : l,
|
@@ -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
|
}, CL = ({
|
@@ -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
|
}, RE = (e) => e?.length > jc ? {
|
3833
3833
|
isValid: !1,
|
3834
|
-
message:
|
3834
|
+
message: st.getMaxCharMessage(jc)
|
3835
3835
|
} : {
|
3836
3836
|
isValid: !0
|
3837
3837
|
}, cu = (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
|
}, SL = (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 AL = (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
|
@@ -4038,7 +4038,7 @@ const AL = (e, s = !1) => {
|
|
4038
4038
|
messages: ["Value is required"]
|
4039
4039
|
};
|
4040
4040
|
const s = [];
|
4041
|
-
return e.length >=
|
4041
|
+
return e.length >= ys.MAX_LABEL_VALUE_LENGTH && s.push(`Value should be less than ${ys.MAX_LABEL_VALUE_LENGTH} characters`), Ft.START_END_ALPHANUMERIC.test(e) || s.push("Value should start and end with alphanumeric characters"), Ft.ALPHANUMERIC_WITH_SPECIAL_CHAR.test(e) || s.push("Value should contain only alphanumeric characters and special characters"), s.length > 0 ? {
|
4042
4042
|
isValid: !1,
|
4043
4043
|
messages: s
|
4044
4044
|
} : {
|
@@ -4076,22 +4076,22 @@ const AL = (e, s = !1) => {
|
|
4076
4076
|
}), d || l)
|
4077
4077
|
return c;
|
4078
4078
|
const u = String(e.value).split(".")[1]?.length ?? 0, m = String(s.value).split(".")[1]?.length ?? 0;
|
4079
|
-
if (u >
|
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
|
-
if (m >
|
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 AL = (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
|
}, PE = (e) => {
|
4108
4108
|
const s = structuredClone(Jd);
|
4109
|
-
return e &&
|
4109
|
+
return e && Tx.forEach((n) => {
|
4110
4110
|
s[n] = "";
|
4111
4111
|
}), s;
|
4112
4112
|
}, jL = ({
|
@@ -4167,7 +4167,7 @@ const AL = (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 } = vx[f], { request: j, limit: w } = DE({
|
4171
4171
|
request: {
|
4172
4172
|
value: v,
|
4173
4173
|
unit: b
|
@@ -4232,10 +4232,10 @@ const AL = (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
|
+
ke.showToast({
|
4239
4239
|
variant: Se.error,
|
4240
4240
|
description: L
|
4241
4241
|
}), Ma(new Error(L));
|
@@ -4247,7 +4247,7 @@ const AL = (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 AL = (e, s = !1) => {
|
|
4266
4266
|
}
|
4267
4267
|
case Et.REMOVE_TARGET_PLATFORM: {
|
4268
4268
|
if (!C.configurations[S]) {
|
4269
|
-
|
4269
|
+
ke.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 AL = (e, s = !1) => {
|
|
4282
4282
|
if (v === b)
|
4283
4283
|
return;
|
4284
4284
|
if (!T) {
|
4285
|
-
|
4285
|
+
ke.showToast({
|
4286
4286
|
variant: Se.error,
|
4287
4287
|
description: "Original platform does not exist"
|
4288
4288
|
});
|
@@ -4325,7 +4325,7 @@ const AL = (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 AL = (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: Ax,
|
4382
|
+
operator: Ix,
|
4383
4383
|
value: ""
|
4384
4384
|
};
|
4385
4385
|
y[U.TOLERANCE].value.unshift(b);
|
@@ -4398,14 +4398,14 @@ const AL = (e, s = !1) => {
|
|
4398
4398
|
const { id: v, key: b, effect: O, operator: T, value: j } = N, w = y[U.TOLERANCE].value.find(
|
4399
4399
|
(q) => q.id === v
|
4400
4400
|
);
|
4401
|
-
w ? (w.key = b, w.effect = O, w.operator = T, w.value = j, T ===
|
4401
|
+
w ? (w.key = b, w.effect = O, w.operator = T, w.value = j, T === bs.EXISTS && delete w.value) : y[U.TOLERANCE].value.unshift({
|
4402
4402
|
id: v,
|
4403
4403
|
key: b,
|
4404
4404
|
effect: O,
|
4405
4405
|
operator: T,
|
4406
4406
|
value: j
|
4407
4407
|
});
|
4408
|
-
const L = _i(b).messages, B = T !==
|
4408
|
+
const L = _i(b).messages, B = T !== bs.EXISTS ? du(j).messages : [], X = !(T === bs.EXISTS ? !b : !b && !j) && (L.length > 0 || B.length > 0);
|
4409
4409
|
A[U.TOLERANCE]?.[v] || (A[U.TOLERANCE] || (A[U.TOLERANCE] = {}), A[U.TOLERANCE][v] = {}), A[U.TOLERANCE][v] = {
|
4410
4410
|
...L.length > 0 && { [Io.KEY]: L },
|
4411
4411
|
...B.length > 0 && { [Io.VALUE]: B }
|
@@ -4432,22 +4432,22 @@ const AL = (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
|
+
ke.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 AL = (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
|
+
ke.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 AL = (e, s = !1) => {
|
|
4470
4470
|
name: e,
|
4471
4471
|
profileInput: d,
|
4472
4472
|
canConfigureUseK8sDriver: a
|
4473
|
-
}), E(!1),
|
4473
|
+
}), E(!1), ke.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), E(!1);
|
@@ -4480,7 +4480,7 @@ const AL = (e, s = !1) => {
|
|
4480
4480
|
}
|
4481
4481
|
};
|
4482
4482
|
}, ME = Mt(null), OL = () => {
|
4483
|
-
const e =
|
4483
|
+
const e = ls(ME);
|
4484
4484
|
if (!e)
|
4485
4485
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
4486
4486
|
return e;
|
@@ -4492,7 +4492,7 @@ const AL = (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 YE({
|
4497
4497
|
configurationUnits: r,
|
4498
4498
|
defaultConfigurations: o,
|
@@ -4512,7 +4512,7 @@ const AL = (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 AL = (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,15 +4535,15 @@ const AL = (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
|
-
return o ===
|
4540
|
+
return o === bs.EQUALS ? {
|
4541
4541
|
...c,
|
4542
|
-
operator:
|
4542
|
+
operator: bs.EQUALS,
|
4543
4543
|
value: i
|
4544
4544
|
} : {
|
4545
4545
|
...c,
|
4546
|
-
operator:
|
4546
|
+
operator: bs.EXISTS
|
4547
4547
|
};
|
4548
4548
|
}).filter((n) => n.key)
|
4549
4549
|
};
|
@@ -4566,7 +4566,7 @@ const AL = (e, s = !1) => {
|
|
4566
4566
|
default:
|
4567
4567
|
return null;
|
4568
4568
|
}
|
4569
|
-
}, $E = (e) => e ? e === Ka.KUBERNETES :
|
4569
|
+
}, $E = (e) => e ? e === Ka.KUBERNETES : Rx, FE = ({
|
4570
4570
|
fromCreateView: e,
|
4571
4571
|
profile: s,
|
4572
4572
|
canConfigureUseK8sDriver: n
|
@@ -4603,7 +4603,7 @@ const AL = (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 AL = (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) => !yx[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 AL = (e, s = !1) => {
|
|
4791
4791
|
buildxDriverType: KE(e.useK8sDriver)
|
4792
4792
|
}
|
4793
4793
|
};
|
4794
|
-
}, fi = () => `${G.INFRA_CONFIG_PROFILE}/${
|
4794
|
+
}, fi = () => `${G.INFRA_CONFIG_PROFILE}/${Sx}`, wL = (e, s) => s ? `activate_${e}` : `de_activate_${e}`;
|
4795
4795
|
var zE = /* @__PURE__ */ ((e) => (e.email = "email_id", e.lastLogin = "last_login", e))(zE || {}), qE = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e))(qE || {}), XE = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e.temporary = "temporaryAccess", e))(XE || {}), JE = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(JE || {});
|
4796
4796
|
const ZE = ({
|
4797
4797
|
id: e,
|
@@ -4825,7 +4825,7 @@ const ZE = ({
|
|
4825
4825
|
children: s[0]
|
4826
4826
|
}
|
4827
4827
|
),
|
4828
|
-
/* @__PURE__ */ t.jsx(
|
4828
|
+
/* @__PURE__ */ t.jsx(Os, { to: `${Oe.PERMISSION_GROUPS}/${e}`, className: "dc__ellipsis-right anchor cursor", children: s }),
|
4829
4829
|
/* @__PURE__ */ t.jsx("div", { className: "dc__ellipsis-right", children: n || "-" }),
|
4830
4830
|
u && /* @__PURE__ */ t.jsx(
|
4831
4831
|
d,
|
@@ -5315,7 +5315,7 @@ const mN = {
|
|
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(SA, { parsingError: c, restoreLastSavedYAML: l, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
@@ -5405,7 +5405,7 @@ const xN = (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 xN = (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
|
@@ -5533,7 +5533,7 @@ const xN = (e) => {
|
|
5533
5533
|
} catch {
|
5534
5534
|
return s;
|
5535
5535
|
}
|
5536
|
-
},
|
5536
|
+
}, js = (e) => {
|
5537
5537
|
e ? (document.body.style.overflowY = "hidden", document.body.style.height = "100vh", document.documentElement.style.overflow = "initial") : (document.body.style.overflowY = null, document.body.style.height = null, document.documentElement.style.overflow = null);
|
5538
5538
|
}, Uc = ({ identifier: e, preventFocus: s }) => {
|
5539
5539
|
const n = document.getElementById(e);
|
@@ -5718,8 +5718,8 @@ function vN(e, s) {
|
|
5718
5718
|
{ nodes: {}, aggregation: {}, statusCount: {}, nodeStatusCount: {}, aggregatorStatusCount: {} }
|
5719
5719
|
);
|
5720
5720
|
}
|
5721
|
-
const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? AN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}),
|
5722
|
-
if (!
|
5721
|
+
const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? AN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), Ts = (e) => !!e && e !== Qn, IN = (e, s) => {
|
5722
|
+
if (!Ts(e) || !Ts(s))
|
5723
5723
|
return "-";
|
5724
5724
|
const n = Pe(s).diff(Pe(e), "seconds"), a = Pe(s).diff(Pe(e), "minutes"), r = Pe(s).diff(Pe(e), "hours");
|
5725
5725
|
if (n < 60)
|
@@ -5801,7 +5801,7 @@ const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5801
5801
|
}, {}), gu = (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) => rp(e), Nw = (e, s = "") => ({ pathname: n }) => e === n || s || sx, Ar = (e) => {
|
5805
5805
|
if (!e?.length)
|
5806
5806
|
return [];
|
5807
5807
|
const s = e.filter(({ name: r }) => !!r).sort(({ name: r }, { name: o }) => at(r, o)), n = [], a = {};
|
@@ -5886,42 +5886,47 @@ const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5886
5886
|
}, kN = ({
|
5887
5887
|
params: e,
|
5888
5888
|
signal: s
|
5889
|
-
}) => ue(
|
5889
|
+
}) => ue(Je(G.CONFIG_DATA, e), { signal: s }), UN = 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
|
);
|
5899
5899
|
return a.forEach((r) => {
|
5900
5900
|
n[r.index] = r;
|
5901
5901
|
}), n;
|
5902
|
-
}
|
5902
|
+
};
|
5903
|
+
var At = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(At || {});
|
5904
|
+
const os = {
|
5905
|
+
...At,
|
5906
|
+
auto: "auto"
|
5907
|
+
}, Eu = "userPreferences", Cw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => Je(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), bw = ({ kind: e, version: s, queryParams: n, suffix: a }) => Je(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), BN = (e) => gt(G.CD_CONFIG, e), Tw = () => ue(G.ENVIRONMENT_DATA), Sw = async () => {
|
5903
5908
|
const e = {
|
5904
5909
|
key: Eu
|
5905
5910
|
}, { result: s } = await ue(
|
5906
|
-
|
5911
|
+
Je(`${G.ATTRIBUTES_USER}/${G.GET}`, e)
|
5907
5912
|
);
|
5908
5913
|
if (!s?.value)
|
5909
5914
|
return null;
|
5910
5915
|
const n = JSON.parse(s.value);
|
5911
5916
|
return {
|
5912
5917
|
pipelineRBACViewSelectedTab: n.viewPermittedEnvOnly ? Ya.ACCESS_ONLY : Ya.ALL_ENVIRONMENTS,
|
5913
|
-
themePreference: n.
|
5918
|
+
themePreference: n.computedAppTheme === "system-dark" || n.computedAppTheme === "system-light" ? os.auto : n.computedAppTheme
|
5914
5919
|
};
|
5915
5920
|
}, vw = async (e, s = !1) => {
|
5916
5921
|
try {
|
5917
|
-
const n = {
|
5922
|
+
const { themePreference: n, appTheme: a } = e, r = {
|
5918
5923
|
viewPermittedEnvOnly: e.pipelineRBACViewSelectedTab === Ya.ACCESS_ONLY,
|
5919
|
-
|
5920
|
-
},
|
5924
|
+
computedAppTheme: n === os.auto ? `system-${a}` : a
|
5925
|
+
}, o = {
|
5921
5926
|
key: Eu,
|
5922
|
-
value: JSON.stringify(
|
5927
|
+
value: JSON.stringify(r)
|
5923
5928
|
};
|
5924
|
-
return await gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`,
|
5929
|
+
return await gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, o), !0;
|
5925
5930
|
} catch (n) {
|
5926
5931
|
if (s)
|
5927
5932
|
throw n;
|
@@ -5941,7 +5946,7 @@ const $N = {
|
|
5941
5946
|
closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
|
5942
5947
|
re,
|
5943
5948
|
{
|
5944
|
-
icon: /* @__PURE__ */ t.jsx(
|
5949
|
+
icon: /* @__PURE__ */ t.jsx(us, { className: "fcn-0" }),
|
5945
5950
|
onClick: e,
|
5946
5951
|
dataTestId: "close-toast",
|
5947
5952
|
ariaLabel: "Close toast",
|
@@ -5953,7 +5958,7 @@ const $N = {
|
|
5953
5958
|
) })
|
5954
5959
|
}, FN = {
|
5955
5960
|
[Se.info]: {
|
5956
|
-
icon: /* @__PURE__ */ t.jsx(
|
5961
|
+
icon: /* @__PURE__ */ t.jsx(qs, {}),
|
5957
5962
|
type: "info",
|
5958
5963
|
title: "Information",
|
5959
5964
|
progressBarBg: "var(--B500)"
|
@@ -6049,7 +6054,7 @@ const $s = class $s {
|
|
6049
6054
|
ln = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
6050
6055
|
fa($s, ln);
|
6051
6056
|
let Oo = $s;
|
6052
|
-
const Aw = () => /* @__PURE__ */ t.jsx(op, { ...$N }),
|
6057
|
+
const Aw = () => /* @__PURE__ */ t.jsx(op, { ...$N }), ke = Oo.instance;
|
6053
6058
|
var it = /* @__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))(it || {}), Nu = /* @__PURE__ */ ((e) => (e.OPEN = "OPEN", e.CLOSED = "CLOSED", e))(Nu || {});
|
6054
6059
|
const GN = "bulk-selection-pop-up-menu", Jr = {
|
6055
6060
|
[it.SELECT_ALL_ON_PAGE]: "All on this page",
|
@@ -6064,7 +6069,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6064
6069
|
setIdentifiers: ut,
|
6065
6070
|
getSelectedIdentifiersCount: ut
|
6066
6071
|
}), KN = () => {
|
6067
|
-
const e =
|
6072
|
+
const e = ls(Cu);
|
6068
6073
|
if (!e)
|
6069
6074
|
throw new Error(YN);
|
6070
6075
|
return e;
|
@@ -6095,7 +6100,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6095
6100
|
r({});
|
6096
6101
|
break;
|
6097
6102
|
case it.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION: {
|
6098
|
-
|
6103
|
+
ke.showToast({
|
6099
6104
|
variant: Se.info,
|
6100
6105
|
description: $c
|
6101
6106
|
}), d(o, f);
|
@@ -6119,7 +6124,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6119
6124
|
});
|
6120
6125
|
break;
|
6121
6126
|
case it.SELECT_ALL_ON_PAGE: {
|
6122
|
-
a[Tn] &&
|
6127
|
+
a[Tn] && ke.showToast({
|
6123
6128
|
variant: Se.info,
|
6124
6129
|
description: $c
|
6125
6130
|
}), u(o);
|
@@ -6212,12 +6217,12 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6212
6217
|
disabled: s
|
6213
6218
|
}
|
6214
6219
|
),
|
6215
|
-
n && /* @__PURE__ */ t.jsx(
|
6220
|
+
n && /* @__PURE__ */ t.jsx(Ss, { className: "icon-dim-20 fcn-6 dc__no-shrink" })
|
6216
6221
|
]
|
6217
6222
|
}
|
6218
6223
|
),
|
6219
6224
|
/* @__PURE__ */ t.jsx(ct.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(
|
6220
|
-
|
6225
|
+
Nx,
|
6221
6226
|
{
|
6222
6227
|
locator: d.locator,
|
6223
6228
|
label: d.label,
|
@@ -6242,7 +6247,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6242
6247
|
[We.ARTIFACT_REGISTRY]: "ic-google-artifact-registry",
|
6243
6248
|
[We.GCR]: "ic-google-container-registry",
|
6244
6249
|
[We.OTHER]: "ic-container"
|
6245
|
-
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
6250
|
+
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: WN[e] || "ic-container", size: s, color: null }), Rw = {
|
6246
6251
|
ecr: {
|
6247
6252
|
value: "ecr",
|
6248
6253
|
label: "ECR",
|
@@ -6479,21 +6484,21 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6479
6484
|
interactive: !0,
|
6480
6485
|
children: s
|
6481
6486
|
}
|
6482
|
-
),
|
6487
|
+
), Ns = {
|
6483
6488
|
ACTIVE: "Active on",
|
6484
6489
|
VIRTUAL_ENV: "Last deployed on",
|
6485
6490
|
FAILED: "Last deployment failed on",
|
6486
6491
|
DEPLOYING: "Deploying on"
|
6487
6492
|
}, QN = (e) => {
|
6488
6493
|
switch (e) {
|
6489
|
-
case
|
6490
|
-
case
|
6494
|
+
case Ns.VIRTUAL_ENV:
|
6495
|
+
case Ns.ACTIVE:
|
6491
6496
|
return { Icon: /* @__PURE__ */ t.jsx(Zl, { className: "icon-dim-16 scg-5" }), stateClassName: "bcg-1 eg-2" };
|
6492
|
-
case
|
6497
|
+
case Ns.FAILED:
|
6493
6498
|
return { Icon: /* @__PURE__ */ t.jsx(p_, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
|
6494
|
-
case
|
6499
|
+
case Ns.DEPLOYING:
|
6495
6500
|
return {
|
6496
|
-
Icon: /* @__PURE__ */ t.jsx(
|
6501
|
+
Icon: /* @__PURE__ */ t.jsx(qe, { name: "ic-circle-loader", color: "O500" }),
|
6497
6502
|
stateClassName: "bcy-1 ey-2"
|
6498
6503
|
};
|
6499
6504
|
default:
|
@@ -6532,7 +6537,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6532
6537
|
additionalInfo: d,
|
6533
6538
|
targetPlatforms: u
|
6534
6539
|
}) => {
|
6535
|
-
const m = () => c ?
|
6540
|
+
const m = () => c ? Ns.VIRTUAL_ENV : Ns.ACTIVE, p = () => {
|
6536
6541
|
if (l?.length) {
|
6537
6542
|
const g = l.length === 1 ? l[0] : `${l.length} environments`;
|
6538
6543
|
return /* @__PURE__ */ t.jsx(
|
@@ -6556,8 +6561,8 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6556
6561
|
d
|
6557
6562
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6558
6563
|
p(),
|
6559
|
-
n === Ea.PROGRESSING && /* @__PURE__ */ t.jsx(Sn, { envStateText:
|
6560
|
-
(n === Ea.DEGRADED || n === Ea.FAILED) && /* @__PURE__ */ t.jsx(Sn, { envStateText:
|
6564
|
+
n === Ea.PROGRESSING && /* @__PURE__ */ t.jsx(Sn, { envStateText: Ns.DEPLOYING, title: a }),
|
6565
|
+
(n === Ea.DEGRADED || n === Ea.FAILED) && /* @__PURE__ */ t.jsx(Sn, { envStateText: Ns.FAILED, title: a }),
|
6561
6566
|
i && /* @__PURE__ */ t.jsx(
|
6562
6567
|
_r,
|
6563
6568
|
{
|
@@ -6627,7 +6632,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6627
6632
|
installedAppId: n,
|
6628
6633
|
artifactId: a,
|
6629
6634
|
installedAppVersionHistoryId: r
|
6630
|
-
}, i =
|
6635
|
+
}, i = Je(G.SCAN_RESULT, o);
|
6631
6636
|
return await ue(i);
|
6632
6637
|
}, sC = {
|
6633
6638
|
color: "var(--N300)",
|
@@ -6718,7 +6723,7 @@ const nC = {
|
|
6718
6723
|
IMAGE_SCAN: "Image Scan",
|
6719
6724
|
CODE_SCAN: "Code Scan",
|
6720
6725
|
KUBERNETES_MANIFEST: "Kubernetes Manifest"
|
6721
|
-
},
|
6726
|
+
}, ps = {
|
6722
6727
|
VULNERABILITIES: "Vulnerability",
|
6723
6728
|
LICENSE: "License Risks",
|
6724
6729
|
MISCONFIGURATIONS: "Misconfigurations",
|
@@ -6861,7 +6866,16 @@ const nC = {
|
|
6861
6866
|
return (
|
6862
6867
|
// Added for type consistency
|
6863
6868
|
// eslint-disable-next-line react/jsx-no-useless-fragment
|
6864
|
-
/* @__PURE__ */ t.jsx(t.Fragment, { children: n || !n && typeof s == "string" ? /* @__PURE__ */ t.jsx(
|
6869
|
+
/* @__PURE__ */ t.jsx(t.Fragment, { children: n || !n && typeof s == "string" ? /* @__PURE__ */ t.jsx(
|
6870
|
+
"img",
|
6871
|
+
{
|
6872
|
+
loading: "lazy",
|
6873
|
+
alt: "",
|
6874
|
+
...e,
|
6875
|
+
src: n || s,
|
6876
|
+
onError: r
|
6877
|
+
}
|
6878
|
+
) : s })
|
6865
6879
|
);
|
6866
6880
|
}, Ti = ({
|
6867
6881
|
scanToolName: e,
|
@@ -6879,12 +6893,14 @@ const nC = {
|
|
6879
6893
|
imageProps: {
|
6880
6894
|
src: s,
|
6881
6895
|
className: "icon-dim-20-imp",
|
6882
|
-
alt: "scan-tool"
|
6896
|
+
alt: "scan-tool",
|
6897
|
+
height: 20,
|
6898
|
+
width: 20
|
6883
6899
|
},
|
6884
6900
|
fallbackImage: /* @__PURE__ */ t.jsx(Rf, { className: "icon-dim-20-imp dc__no-shrink" })
|
6885
6901
|
}
|
6886
6902
|
)
|
6887
|
-
] }),
|
6903
|
+
] }), cs = (e) => (
|
6888
6904
|
/* for all the SEVERITY keys in @severities create @Entity */
|
6889
6905
|
e && Za.map(
|
6890
6906
|
(s) => e[s] && {
|
@@ -7317,7 +7333,7 @@ const nC = {
|
|
7317
7333
|
]
|
7318
7334
|
})) : null,
|
7319
7335
|
defaultSortIndex: 1,
|
7320
|
-
entities:
|
7336
|
+
entities: cs(e.misConfSummary.status),
|
7321
7337
|
lastScanTimeString: s,
|
7322
7338
|
scanToolName: a,
|
7323
7339
|
scanToolUrl: r,
|
@@ -7399,7 +7415,7 @@ const nC = {
|
|
7399
7415
|
]
|
7400
7416
|
})) : null,
|
7401
7417
|
defaultSortIndex: 1,
|
7402
|
-
entities:
|
7418
|
+
entities: cs(e.summary.severities),
|
7403
7419
|
lastScanTimeString: s,
|
7404
7420
|
scanToolName: a,
|
7405
7421
|
scanToolUrl: r,
|
@@ -7475,12 +7491,12 @@ const nC = {
|
|
7475
7491
|
case J.LICENSE:
|
7476
7492
|
case J.EXPOSED_SECRETS:
|
7477
7493
|
return {
|
7478
|
-
entities:
|
7494
|
+
entities: cs(e[s]?.summary.severities),
|
7479
7495
|
...o
|
7480
7496
|
};
|
7481
7497
|
case J.MISCONFIGURATIONS:
|
7482
7498
|
return {
|
7483
|
-
entities:
|
7499
|
+
entities: cs(e[s]?.misConfSummary.status),
|
7484
7500
|
...o
|
7485
7501
|
};
|
7486
7502
|
default:
|
@@ -7528,7 +7544,7 @@ const nC = {
|
|
7528
7544
|
}, wo = (e) => ({
|
7529
7545
|
titlePrefix: "Image",
|
7530
7546
|
title: e.image,
|
7531
|
-
entities:
|
7547
|
+
entities: cs(e.summary.severities),
|
7532
7548
|
lastScanTimeString: e.StartedOn,
|
7533
7549
|
scanToolName: e.scanToolName,
|
7534
7550
|
scanToolUrl: e.scanToolUrl,
|
@@ -7587,7 +7603,7 @@ const nC = {
|
|
7587
7603
|
return /* @__PURE__ */ t.jsx(si, { className: "icon-dim-16 ic-error-cross-red dc__no-shrink" });
|
7588
7604
|
case "Progressing":
|
7589
7605
|
return /* @__PURE__ */ t.jsx(
|
7590
|
-
|
7606
|
+
Ue,
|
7591
7607
|
{
|
7592
7608
|
fillColor: "var(--Y500)",
|
7593
7609
|
styles: {
|
@@ -7671,7 +7687,7 @@ const nC = {
|
|
7671
7687
|
]
|
7672
7688
|
})) : null,
|
7673
7689
|
defaultSortIndex: 1,
|
7674
|
-
entities:
|
7690
|
+
entities: cs(e.summary.severities),
|
7675
7691
|
lastScanTimeString: e.StartedOn,
|
7676
7692
|
scanToolName: e.scanToolName,
|
7677
7693
|
scanToolUrl: e.scanToolUrl,
|
@@ -7722,7 +7738,7 @@ const nC = {
|
|
7722
7738
|
}, jC = (e, s) => {
|
7723
7739
|
const n = e[s]?.list?.[0];
|
7724
7740
|
return {
|
7725
|
-
entities:
|
7741
|
+
entities: cs(e[s]?.summary.severities),
|
7726
7742
|
scanToolName: n?.scanToolName,
|
7727
7743
|
scanToolUrl: n?.scanToolUrl,
|
7728
7744
|
lastScanTimeString: n?.StartedOn
|
@@ -7792,12 +7808,12 @@ const nC = {
|
|
7792
7808
|
switch (s) {
|
7793
7809
|
case J.MISCONFIGURATIONS:
|
7794
7810
|
return {
|
7795
|
-
entities:
|
7811
|
+
entities: cs(e[s]?.misConfSummary.status),
|
7796
7812
|
...n
|
7797
7813
|
};
|
7798
7814
|
case J.EXPOSED_SECRETS:
|
7799
7815
|
return {
|
7800
|
-
entities:
|
7816
|
+
entities: cs(e[s]?.summary.severities),
|
7801
7817
|
...n
|
7802
7818
|
};
|
7803
7819
|
default:
|
@@ -7863,7 +7879,7 @@ const nC = {
|
|
7863
7879
|
isExpanded: !0,
|
7864
7880
|
children: [
|
7865
7881
|
{
|
7866
|
-
label:
|
7882
|
+
label: ps.VULNERABILITIES,
|
7867
7883
|
value: {
|
7868
7884
|
category: ne.IMAGE_SCAN,
|
7869
7885
|
subCategory: J.VULNERABILITIES
|
@@ -7871,7 +7887,7 @@ const nC = {
|
|
7871
7887
|
},
|
7872
7888
|
...r ? [
|
7873
7889
|
{
|
7874
|
-
label:
|
7890
|
+
label: ps.LICENSE,
|
7875
7891
|
value: {
|
7876
7892
|
category: ne.IMAGE_SCAN,
|
7877
7893
|
subCategory: J.LICENSE
|
@@ -7887,28 +7903,28 @@ const nC = {
|
|
7887
7903
|
isExpanded: !0,
|
7888
7904
|
children: [
|
7889
7905
|
{
|
7890
|
-
label:
|
7906
|
+
label: ps.VULNERABILITIES,
|
7891
7907
|
value: {
|
7892
7908
|
category: ne.CODE_SCAN,
|
7893
7909
|
subCategory: J.VULNERABILITIES
|
7894
7910
|
}
|
7895
7911
|
},
|
7896
7912
|
{
|
7897
|
-
label:
|
7913
|
+
label: ps.LICENSE,
|
7898
7914
|
value: {
|
7899
7915
|
category: ne.CODE_SCAN,
|
7900
7916
|
subCategory: J.LICENSE
|
7901
7917
|
}
|
7902
7918
|
},
|
7903
7919
|
{
|
7904
|
-
label:
|
7920
|
+
label: ps.MISCONFIGURATIONS,
|
7905
7921
|
value: {
|
7906
7922
|
category: ne.CODE_SCAN,
|
7907
7923
|
subCategory: J.MISCONFIGURATIONS
|
7908
7924
|
}
|
7909
7925
|
},
|
7910
7926
|
{
|
7911
|
-
label:
|
7927
|
+
label: ps.EXPOSED_SECRETS,
|
7912
7928
|
value: {
|
7913
7929
|
category: ne.CODE_SCAN,
|
7914
7930
|
subCategory: J.EXPOSED_SECRETS
|
@@ -7923,14 +7939,14 @@ const nC = {
|
|
7923
7939
|
isExpanded: !0,
|
7924
7940
|
children: [
|
7925
7941
|
{
|
7926
|
-
label:
|
7942
|
+
label: ps.MISCONFIGURATIONS,
|
7927
7943
|
value: {
|
7928
7944
|
category: ne.KUBERNETES_MANIFEST,
|
7929
7945
|
subCategory: J.MISCONFIGURATIONS
|
7930
7946
|
}
|
7931
7947
|
},
|
7932
7948
|
{
|
7933
|
-
label:
|
7949
|
+
label: ps.EXPOSED_SECRETS,
|
7934
7950
|
value: {
|
7935
7951
|
category: ne.KUBERNETES_MANIFEST,
|
7936
7952
|
subCategory: J.EXPOSED_SECRETS
|
@@ -8011,7 +8027,7 @@ const nC = {
|
|
8011
8027
|
] }), h = () => {
|
8012
8028
|
const f = BC(c, l.category, l.subCategory, _);
|
8013
8029
|
if (f)
|
8014
|
-
return /* @__PURE__ */ t.jsx(
|
8030
|
+
return /* @__PURE__ */ t.jsx(Qe, { ...f, imageType: Xs.Large });
|
8015
8031
|
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: S } = _ || kC(c, l.category, l.subCategory, u, o), { entities: y, lastScanTimeString: I, scanToolName: v, scanToolUrl: b } = _ || UC(c, l.category, l.subCategory);
|
8016
8032
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
8017
8033
|
y?.length ? /* @__PURE__ */ t.jsx(
|
@@ -8036,7 +8052,7 @@ const nC = {
|
|
8036
8052
|
`${l.category}${l.subCategory}${p}`
|
8037
8053
|
)
|
8038
8054
|
] });
|
8039
|
-
}, g = () => n ? /* @__PURE__ */ t.jsx("div", { className: "h-100 w-100 flex", children: /* @__PURE__ */ t.jsx(
|
8055
|
+
}, g = () => 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 }) }) : (
|
8040
8056
|
/* NOTE: the height is restricted to (viewport - header) height since we need overflow-scroll */
|
8041
8057
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox", style: { height: "calc(100vh - 49px)" }, children: [
|
8042
8058
|
e && /* @__PURE__ */ t.jsx(e, { modalState: l, setModalState: d, scanResult: r }),
|
@@ -8117,7 +8133,7 @@ const nC = {
|
|
8117
8133
|
const o = Ru(n), i = !!o, c = Object.entries(Ja).map(([_, E]) => ({
|
8118
8134
|
...E,
|
8119
8135
|
value: n[_]
|
8120
|
-
})).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(
|
8136
|
+
})).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-24 dc__no-shrink" }) : i ? /* @__PURE__ */ t.jsx(f_, { className: "icon-dim-24 scr-5 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(h_, { className: "icon-dim-24 scg-5 dc__no-shrink" }), d = () => {
|
8121
8137
|
if (r)
|
8122
8138
|
return s === J.VULNERABILITIES ? { title: "Vulnerability scan failed", subtitle: "Failed" } : { title: "License scan failed", subtitle: "Failed" };
|
8123
8139
|
switch (s) {
|
@@ -8175,7 +8191,7 @@ const nC = {
|
|
8175
8191
|
const [n, a] = R(!1), [r, o] = R(Lo), { imageScan: i, codeScan: c, kubernetesManifest: l } = e, d = FC(e);
|
8176
8192
|
if (!Ru(d))
|
8177
8193
|
return /* @__PURE__ */ t.jsx(
|
8178
|
-
|
8194
|
+
Qe,
|
8179
8195
|
{
|
8180
8196
|
SvgImage: ed,
|
8181
8197
|
title: Ye.CI_DEATILS_NO_VULNERABILITY_FOUND.TITLE,
|
@@ -8272,7 +8288,7 @@ const nC = {
|
|
8272
8288
|
if (k(() => {
|
8273
8289
|
u && o(u.result.imageScan?.vulnerability?.list?.[0].list?.length);
|
8274
8290
|
}, [u]), d)
|
8275
|
-
return /* @__PURE__ */ t.jsx("div", { className: "security-tab-empty bcn-1", children: /* @__PURE__ */ t.jsx(
|
8291
|
+
return /* @__PURE__ */ t.jsx("div", { className: "security-tab-empty bcn-1", children: /* @__PURE__ */ t.jsx(Ue, {}) });
|
8276
8292
|
if (m)
|
8277
8293
|
return /* @__PURE__ */ t.jsxs("div", { className: "security-tab-empty", children: [
|
8278
8294
|
/* @__PURE__ */ t.jsx("p", { className: "security-tab-empty__title", children: "Failed to fetch vulnerabilities" }),
|
@@ -8384,7 +8400,7 @@ const nC = {
|
|
8384
8400
|
children: [
|
8385
8401
|
l ? "Hide info" : "Show more info",
|
8386
8402
|
/* @__PURE__ */ t.jsx(
|
8387
|
-
|
8403
|
+
Ss,
|
8388
8404
|
{
|
8389
8405
|
className: "icon-dim-24 rotate fcn-6",
|
8390
8406
|
style: { "--rotateBy": l ? "-180deg" : "0deg" }
|
@@ -8575,7 +8591,7 @@ const nC = {
|
|
8575
8591
|
onChange: y,
|
8576
8592
|
onBlur: I,
|
8577
8593
|
onKeyDown: v,
|
8578
|
-
className: `${
|
8594
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8579
8595
|
ref: f,
|
8580
8596
|
style: {
|
8581
8597
|
// No max height when user is expanding
|
@@ -8656,28 +8672,23 @@ const nC = {
|
|
8656
8672
|
/* @__PURE__ */ t.jsx(gr, { className: "icon-dim-16 cursor mw-16", onClick: () => o(!r) })
|
8657
8673
|
] });
|
8658
8674
|
}, Lu = Mt(null), ua = () => {
|
8659
|
-
const e =
|
8675
|
+
const e = ls(Lu);
|
8660
8676
|
if (!e)
|
8661
8677
|
throw new Error("Please wrap with MainContextProvider");
|
8662
8678
|
return e;
|
8663
8679
|
}, Gw = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(Lu.Provider, { value: s, children: e }), wu = Mt(null), Hw = () => {
|
8664
|
-
const e =
|
8680
|
+
const e = ls(wu);
|
8665
8681
|
if (!e)
|
8666
8682
|
throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
|
8667
8683
|
return e;
|
8668
8684
|
}, Yw = ({ children: e, value: s }) => {
|
8669
8685
|
const n = te(() => s, [s]);
|
8670
8686
|
return /* @__PURE__ */ t.jsx(wu.Provider, { value: n, children: e });
|
8671
|
-
}, Du = "themePreference__v1", Pu = "(prefers-color-scheme: dark)"
|
8672
|
-
var At = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(At || {});
|
8673
|
-
const Gs = {
|
8674
|
-
...At,
|
8675
|
-
auto: "auto"
|
8676
|
-
}, yi = () => window.matchMedia && window.matchMedia(Pu).matches ? At.dark : At.light, KC = (e) => {
|
8687
|
+
}, Du = "themePreference__v1", Pu = "(prefers-color-scheme: dark)", yi = () => window.matchMedia && window.matchMedia(Pu).matches ? At.dark : At.light, KC = (e) => {
|
8677
8688
|
localStorage.setItem(Du, e);
|
8678
8689
|
}, WC = ({ appTheme: e, themePreference: s }) => {
|
8679
|
-
const n = s ===
|
8680
|
-
|
8690
|
+
const n = s === os.auto ? `system-${e}` : e;
|
8691
|
+
vs.event({
|
8681
8692
|
category: "application-theme",
|
8682
8693
|
action: `theme-changed-to-${n}`
|
8683
8694
|
});
|
@@ -8685,12 +8696,12 @@ const Gs = {
|
|
8685
8696
|
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE)
|
8686
8697
|
return {
|
8687
8698
|
appTheme: At.light,
|
8688
|
-
themePreference:
|
8699
|
+
themePreference: os.light
|
8689
8700
|
};
|
8690
8701
|
const e = localStorage.getItem(Du);
|
8691
|
-
return !e || e ===
|
8702
|
+
return !e || e === os.auto ? {
|
8692
8703
|
appTheme: yi(),
|
8693
|
-
themePreference:
|
8704
|
+
themePreference: os.auto
|
8694
8705
|
} : {
|
8695
8706
|
appTheme: e,
|
8696
8707
|
themePreference: e
|
@@ -8709,22 +8720,22 @@ const Gs = {
|
|
8709
8720
|
}, Mu = Mt(null), Kw = ({ children: e }) => {
|
8710
8721
|
const [s, n] = R(!1), [a, r] = R(!1), [o, i] = R(zC), c = (p, _ = !1) => {
|
8711
8722
|
const E = {
|
8712
|
-
appTheme: p ===
|
8723
|
+
appTheme: p === os.auto ? yi() : p,
|
8713
8724
|
themePreference: p
|
8714
8725
|
};
|
8715
8726
|
i(E), _ || (KC(p), WC(E));
|
8716
8727
|
}, l = () => {
|
8717
|
-
c(
|
8728
|
+
c(os.auto, s);
|
8718
8729
|
};
|
8719
8730
|
k(() => {
|
8720
8731
|
const p = document.querySelector("html");
|
8721
8732
|
p && p.setAttribute("class", `theme__${o.appTheme}`);
|
8722
8733
|
}, [o.appTheme]), k(() => {
|
8723
8734
|
const p = window.matchMedia(Pu);
|
8724
|
-
return o.themePreference ===
|
8735
|
+
return o.themePreference === os.auto && p.addEventListener("change", l), () => {
|
8725
8736
|
p.removeEventListener("change", l);
|
8726
8737
|
};
|
8727
|
-
}, [o.themePreference]);
|
8738
|
+
}, [o.themePreference, s]);
|
8728
8739
|
const d = (p) => {
|
8729
8740
|
n(p);
|
8730
8741
|
}, u = (p) => {
|
@@ -8742,11 +8753,11 @@ const Gs = {
|
|
8742
8753
|
);
|
8743
8754
|
return /* @__PURE__ */ t.jsx(Mu.Provider, { value: m, children: e });
|
8744
8755
|
}, yr = () => {
|
8745
|
-
const e =
|
8756
|
+
const e = ls(Mu);
|
8746
8757
|
if (!e)
|
8747
8758
|
throw new Error("useTheme must be used within ThemeProvider");
|
8748
8759
|
return e;
|
8749
|
-
}, ku = Mt(null), Uu = () =>
|
8760
|
+
}, ku = Mt(null), Uu = () => ls(ku), Ww = ({ children: e }) => {
|
8750
8761
|
const [s, n] = R(""), a = te(
|
8751
8762
|
() => ({
|
8752
8763
|
email: s,
|
@@ -8782,7 +8793,7 @@ const Gs = {
|
|
8782
8793
|
}
|
8783
8794
|
);
|
8784
8795
|
}, Bu = "dc__unset-button-styles dc__content-space px-12 py-8 fs-13 fw-4 lh-20 cursor w-100 flex left br-4", JC = ({ className: e, userFirstLetter: s, setShowLogOutCard: n, showLogOutCard: a }) => {
|
8785
|
-
const r =
|
8796
|
+
const r = zs(), { viewIsPipelineRBACConfiguredNode: o } = ua(), i = () => {
|
8786
8797
|
document.cookie = "argocd.token=; expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/", r.push("/login");
|
8787
8798
|
}, c = () => {
|
8788
8799
|
n(!a);
|
@@ -8814,7 +8825,7 @@ const Gs = {
|
|
8814
8825
|
type: "button",
|
8815
8826
|
children: [
|
8816
8827
|
"Logout",
|
8817
|
-
/* @__PURE__ */ t.jsx(
|
8828
|
+
/* @__PURE__ */ t.jsx(qe, { name: "ic-logout", color: "R500" })
|
8818
8829
|
]
|
8819
8830
|
}
|
8820
8831
|
)
|
@@ -8924,7 +8935,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8924
8935
|
], u = () => {
|
8925
8936
|
r(!0);
|
8926
8937
|
}, m = (h) => {
|
8927
|
-
|
8938
|
+
vs.event({
|
8928
8939
|
category: "Help Nav",
|
8929
8940
|
action: `${h.name} Clicked`
|
8930
8941
|
});
|
@@ -8947,7 +8958,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8947
8958
|
m(g);
|
8948
8959
|
}, x = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
8949
8960
|
" ",
|
8950
|
-
d.map((h, g) => /* @__PURE__ */ t.jsxs(
|
8961
|
+
d.map((h, g) => /* @__PURE__ */ t.jsxs(Hs, { children: [
|
8951
8962
|
/* @__PURE__ */ t.jsxs(
|
8952
8963
|
"a",
|
8953
8964
|
{
|
@@ -8993,7 +9004,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8993
9004
|
] })
|
8994
9005
|
] }) });
|
8995
9006
|
}, ob = ({ parentClassName: e = "", isCDMaterial: s = !1 }) => {
|
8996
|
-
const n = window?._env_?.ANNOUNCEMENT_BANNER_MSG, a = n ?
|
9007
|
+
const n = window?._env_?.ANNOUNCEMENT_BANNER_MSG, a = n ? As.sanitize(n) : null, r = () => {
|
8997
9008
|
const d = typeof Storage < "u" && localStorage.getItem(
|
8998
9009
|
// it will store date and time of next day i.e, it will hide banner until this date
|
8999
9010
|
"expiryDateOfHidingAnnouncementBanner"
|
@@ -9036,7 +9047,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9036
9047
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
9037
9048
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
9038
9049
|
} = window._env_, o = ze(() => {
|
9039
|
-
s(!0),
|
9050
|
+
s(!0), vs.event({
|
9040
9051
|
category: "PRIMARY_HEADER",
|
9041
9052
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
9042
9053
|
});
|
@@ -9074,7 +9085,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9074
9085
|
referrerPolicy: "no-referrer"
|
9075
9086
|
}
|
9076
9087
|
) : /* @__PURE__ */ t.jsx("div", { className: "flex h-100", children: /* @__PURE__ */ t.jsx(
|
9077
|
-
|
9088
|
+
Qe,
|
9078
9089
|
{
|
9079
9090
|
title: "Nothing to show",
|
9080
9091
|
subTitle: "An iframe appears here in a parallel universe"
|
@@ -9139,7 +9150,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9139
9150
|
}, de = () => {
|
9140
9151
|
Q(), T(!O), v && b(!1), sr("clickedOkay", 1), q();
|
9141
9152
|
}, Ie = async () => {
|
9142
|
-
!window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await X(), b(!v), O && T(!1), sr("clickedOkay", 1), q(), await Po(xo.HELP),
|
9153
|
+
!window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await X(), b(!v), O && T(!1), sr("clickedOkay", 1), q(), await Po(xo.HELP), vs.event({
|
9143
9154
|
category: "Main Navigation",
|
9144
9155
|
action: "Help Clicked"
|
9145
9156
|
});
|
@@ -9300,7 +9311,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9300
9311
|
}
|
9301
9312
|
);
|
9302
9313
|
}, qw = ({ headerName: e }) => {
|
9303
|
-
const s = Tt(), n =
|
9314
|
+
const s = Tt(), n = zs(), a = Ls(), { serverMode: r } = ua(), [o, i] = R(!1), c = () => {
|
9304
9315
|
i((_) => !_);
|
9305
9316
|
}, l = () => {
|
9306
9317
|
n.push(Oe.CHARTS_DISCOVER);
|
@@ -9414,7 +9425,7 @@ class Ri extends fr {
|
|
9414
9425
|
disabled: !!this.props.disabled,
|
9415
9426
|
className: `${this.props.rootClassName}`,
|
9416
9427
|
onClick: this.clickHandler,
|
9417
|
-
children: this.props.isLoading ? /* @__PURE__ */ t.jsx(
|
9428
|
+
children: this.props.isLoading ? /* @__PURE__ */ t.jsx(Ue, {}) : this.props.children
|
9418
9429
|
}
|
9419
9430
|
);
|
9420
9431
|
}
|
@@ -9449,7 +9460,7 @@ const Xw = ({
|
|
9449
9460
|
disabled: i,
|
9450
9461
|
rootClassName: "flex dc__transparent p-0 w-28 bcb-5 dc__right-radius-4 dc__no-left-radius dc__no-top-border dc__no-bottom-border dc__no-right-border button-with-selector",
|
9451
9462
|
children: /* @__PURE__ */ t.jsx(
|
9452
|
-
|
9463
|
+
Ss,
|
9453
9464
|
{
|
9454
9465
|
className: "icon-dim-16 fcn-0 dc__no-shrink rotate",
|
9455
9466
|
style: { "--rotateBy": l ? "180deg" : "0deg" }
|
@@ -9515,12 +9526,12 @@ const Xw = ({
|
|
9515
9526
|
placeholder: a,
|
9516
9527
|
components: {
|
9517
9528
|
IndicatorSeparator: null,
|
9518
|
-
LoadingIndicator:
|
9529
|
+
LoadingIndicator: gx,
|
9519
9530
|
NoOptionsMessage: E,
|
9520
|
-
GroupHeading:
|
9531
|
+
GroupHeading: xx,
|
9521
9532
|
ClearIndicator: hb
|
9522
9533
|
},
|
9523
|
-
styles: o ??
|
9534
|
+
styles: o ?? Ex,
|
9524
9535
|
backspaceRemovesValue: !1,
|
9525
9536
|
autoFocus: c
|
9526
9537
|
}
|
@@ -9746,7 +9757,7 @@ const Yc = (e) => {
|
|
9746
9757
|
)
|
9747
9758
|
] });
|
9748
9759
|
};
|
9749
|
-
var De = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(De || {}),
|
9760
|
+
var De = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(De || {}), Cs = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Cs || {}), ji = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(ji || {}), Re = /* @__PURE__ */ ((e) => (e.NOT_STARTED = "NOT_STARTED", e.RUNNING = "RUNNING", e.SUCCEEDED = "SUCCEEDED", e.FAILED = "FAILED", e.ABORTED = "ABORTED", e.TIMEOUT = "TIMEOUT", e.UNKNOWN = "UNKNOWN", e))(Re || {}), ko = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(ko || {}), pb = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(pb || {}), ns = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(ns || {}), Rr = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(Rr || {});
|
9750
9761
|
const Wc = {
|
9751
9762
|
missing: 1,
|
9752
9763
|
degraded: 2,
|
@@ -9906,8 +9917,8 @@ const _b = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9906
9917
|
ERROR: "error",
|
9907
9918
|
CANCELLED: "cancelled",
|
9908
9919
|
UNABLE_TO_FETCH: "unabletofetch",
|
9909
|
-
TIMED_OUT:
|
9910
|
-
WAITING_TO_START:
|
9920
|
+
TIMED_OUT: Ys.TIMED_OUT.toLowerCase(),
|
9921
|
+
WAITING_TO_START: Ys.WAITING_TO_START.toLowerCase()
|
9911
9922
|
}, Ta = {
|
9912
9923
|
MESSAGE: "message",
|
9913
9924
|
START_OF_STREAM: "START_OF_STREAM",
|
@@ -9927,8 +9938,8 @@ const _b = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9927
9938
|
progressing: "var(--O500)",
|
9928
9939
|
initiating: "var(--O500)",
|
9929
9940
|
starting: "var(--O500)",
|
9930
|
-
[
|
9931
|
-
[
|
9941
|
+
[Ys.WAITING_TO_START.toLowerCase()]: "var(--O500)",
|
9942
|
+
[Ys.TIMED_OUT.toLowerCase()]: "var(--R500)",
|
9932
9943
|
succeeded: "var(--G500)",
|
9933
9944
|
running: "var(--O500)",
|
9934
9945
|
failed: "var(--R500)",
|
@@ -10066,7 +10077,7 @@ const Ob = (e, s) => {
|
|
10066
10077
|
default:
|
10067
10078
|
return e;
|
10068
10079
|
}
|
10069
|
-
}, Db = (e) => e ===
|
10080
|
+
}, Db = (e) => e === Ys.WAITING_TO_START ? "Waiting to start" : e, Pb = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__align-items-center dc__gap-6", children: e }), Mb = ({
|
10070
10081
|
status: e,
|
10071
10082
|
hideIcon: s = !1,
|
10072
10083
|
hideMessage: n = !1,
|
@@ -10078,7 +10089,7 @@ const Ob = (e, s) => {
|
|
10078
10089
|
const c = (e || "").toLowerCase().replace(/ /g, "-"), l = i || e || "", d = () => {
|
10079
10090
|
const m = Ob(c, r), p = Lb(c);
|
10080
10091
|
return m ? /* @__PURE__ */ t.jsx(
|
10081
|
-
|
10092
|
+
qe,
|
10082
10093
|
{
|
10083
10094
|
name: m,
|
10084
10095
|
size: a,
|
@@ -10112,7 +10123,7 @@ const Ob = (e, s) => {
|
|
10112
10123
|
const r = s ? Db(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;
|
10113
10124
|
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: [
|
10114
10125
|
/* @__PURE__ */ t.jsx(
|
10115
|
-
|
10126
|
+
qe,
|
10116
10127
|
{
|
10117
10128
|
name: "ic-info-outline",
|
10118
10129
|
size: a.iconSize,
|
@@ -10185,7 +10196,7 @@ const Ob = (e, s) => {
|
|
10185
10196
|
case "success":
|
10186
10197
|
return /* @__PURE__ */ t.jsx(Q_, { className: "icon-dim-20 green-tick", "data-testid": "success-green-tick" });
|
10187
10198
|
case "failed":
|
10188
|
-
return /* @__PURE__ */ t.jsx(
|
10199
|
+
return /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20" });
|
10189
10200
|
case "unknown":
|
10190
10201
|
return /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" });
|
10191
10202
|
case "inprogress":
|
@@ -10193,7 +10204,7 @@ const Ob = (e, s) => {
|
|
10193
10204
|
case "unreachable":
|
10194
10205
|
return /* @__PURE__ */ t.jsx(nt, { className: "icon-dim-20" });
|
10195
10206
|
case "loading":
|
10196
|
-
return /* @__PURE__ */ t.jsx(
|
10207
|
+
return /* @__PURE__ */ t.jsx(qe, { name: "ic-circle-loader", color: "O500", size: 20 });
|
10197
10208
|
case "disconnect":
|
10198
10209
|
return /* @__PURE__ */ t.jsx(ef, { className: "icon-dim-20" });
|
10199
10210
|
case "time_out":
|
@@ -10219,7 +10230,7 @@ const Ob = (e, s) => {
|
|
10219
10230
|
status: n || Re.UNKNOWN,
|
10220
10231
|
message: a || "",
|
10221
10232
|
clusterId: o?.clusterId || jr,
|
10222
|
-
endTime:
|
10233
|
+
endTime: Ts(r) ? r : ""
|
10223
10234
|
};
|
10224
10235
|
}, Li = (e) => {
|
10225
10236
|
if (!Object.keys(e || {}).length)
|
@@ -10237,9 +10248,9 @@ const Ob = (e, s) => {
|
|
10237
10248
|
return s.forEach(({ status: c, endTime: l }, d) => {
|
10238
10249
|
(rr[c] || d === s.length - 1 && c === Re.SUCCEEDED) && (i = l);
|
10239
10250
|
}), {
|
10240
|
-
triggeredOn:
|
10241
|
-
executionStartedOn:
|
10242
|
-
finishedOn:
|
10251
|
+
triggeredOn: Ts(r) ? r : "",
|
10252
|
+
executionStartedOn: Ts(a?.startTime) ? a?.startTime : "",
|
10253
|
+
finishedOn: Ts(i) ? i : "",
|
10243
10254
|
currentStatus: o,
|
10244
10255
|
workerDetails: $b(e)
|
10245
10256
|
};
|
@@ -10252,11 +10263,11 @@ const Ob = (e, s) => {
|
|
10252
10263
|
[Re.NOT_STARTED]: St.INPROGRESS,
|
10253
10264
|
[Re.RUNNING]: St.INPROGRESS
|
10254
10265
|
};
|
10255
|
-
return s[e] ? /* @__PURE__ */ t.jsx(Oi, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(
|
10266
|
+
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" });
|
10256
10267
|
}, Fb = (e) => {
|
10257
10268
|
const s = Li(e);
|
10258
|
-
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(
|
10259
|
-
}, Vb = (e = jr, s = bb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e ===
|
10269
|
+
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(qe, { name: "ic-warning", size: 20, color: null }) : Vu(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" });
|
10270
|
+
}, Vb = (e = jr, s = bb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ys.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) => Ts(e) ? Pe(e, "YYYY-MM-DDTHH:mm:ssZ").format(yt.TWELVE_HOURS_FORMAT) : "", Gb = (e) => (e || []).reduce(
|
10260
10271
|
(s, n) => {
|
10261
10272
|
const a = n.health?.status?.toLowerCase() ?? "";
|
10262
10273
|
switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
|
@@ -10492,7 +10503,7 @@ const Ob = (e, s) => {
|
|
10492
10503
|
children: [
|
10493
10504
|
/* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-12 fw-6 lh-20", children: c ? "Show less" : "Show more" }),
|
10494
10505
|
/* @__PURE__ */ t.jsx(
|
10495
|
-
|
10506
|
+
is,
|
10496
10507
|
{
|
10497
10508
|
className: `dc__no-shrink icon-dim-16 flex scb-5 dc__transition--transform ${c ? "dc__flip-180" : ""}`
|
10498
10509
|
}
|
@@ -10517,7 +10528,7 @@ const Ob = (e, s) => {
|
|
10517
10528
|
}) => {
|
10518
10529
|
if (!e && !s)
|
10519
10530
|
return null;
|
10520
|
-
const m = a && (!
|
10531
|
+
const m = a && (!Ts(r) || !Pe(r).isBefore(Pe().subtract(Cb, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
|
10521
10532
|
_t,
|
10522
10533
|
{
|
10523
10534
|
to: `${Vb(o, i)}/${a}/logs`,
|
@@ -10527,7 +10538,7 @@ const Ob = (e, s) => {
|
|
10527
10538
|
}
|
10528
10539
|
) : null;
|
10529
10540
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10530
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: rr[s] ? /* @__PURE__ */ t.jsx(
|
10541
|
+
/* @__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(B_, { className: "icon-dim-20 dc__no-shrink scn-7" }) }),
|
10531
10542
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
10532
10543
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
10533
10544
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox cn-9 ${l}`, children: [
|
@@ -10655,7 +10666,7 @@ const Ob = (e, s) => {
|
|
10655
10666
|
namespace: x,
|
10656
10667
|
workflowExecutionStages: h
|
10657
10668
|
}) => {
|
10658
|
-
const { path: g, params: f } = Jt(), { pathname: N } =
|
10669
|
+
const { path: g, params: f } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...S } = Tt(), y = l === De.CD || l === De.GROUP_CD, I = y ? "triggerId" : "buildId", v = _ === p?.id, b = Y(null), O = () => {
|
10659
10670
|
const B = {
|
10660
10671
|
...S,
|
10661
10672
|
envId: A,
|
@@ -10763,10 +10774,10 @@ const Ob = (e, s) => {
|
|
10763
10774
|
renderRunSource: l,
|
10764
10775
|
resourceId: d
|
10765
10776
|
}) => {
|
10766
|
-
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } =
|
10777
|
+
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = zs(), { path: E } = Jt(), x = (S) => {
|
10767
10778
|
e === De.CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, pipelineId: S.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, pipelineId: S.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, appId: S.value, pipelineId: S.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, envId: S.value, pipelineId: S.pipelineId })));
|
10768
10779
|
}, h = () => {
|
10769
|
-
|
10780
|
+
vs.event({
|
10770
10781
|
category: "pagination",
|
10771
10782
|
action: "auto",
|
10772
10783
|
label: `${e.toLowerCase()}-history`,
|
@@ -10774,9 +10785,9 @@ const Ob = (e, s) => {
|
|
10774
10785
|
}), r({ offset: n.size, size: 20 });
|
10775
10786
|
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, f = s?.find((S) => S.value === g()) ?? null;
|
10776
10787
|
s?.sort((S, y) => S.label > y.label ? 1 : -1);
|
10777
|
-
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 =
|
10788
|
+
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 = hx(), /* @__PURE__ */ t.jsx(Ve.Option, { ...S, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10778
10789
|
(e === De.CI || e === De.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
10779
|
-
|
10790
|
+
qe,
|
10780
10791
|
{
|
10781
10792
|
name: S.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
|
10782
10793
|
size: 20,
|
@@ -10818,7 +10829,7 @@ const Ob = (e, s) => {
|
|
10818
10829
|
)
|
10819
10830
|
] }),
|
10820
10831
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
10821
|
-
o ===
|
10832
|
+
o === Cs.SUCCESS && /* @__PURE__ */ t.jsx(zb, { handleViewAllHistory: i }),
|
10822
10833
|
Array.from(n).sort(([S], [y]) => y - S).map(([S, y], I) => /* @__PURE__ */ t.jsx(
|
10823
10834
|
qb,
|
10824
10835
|
{
|
@@ -10842,7 +10853,7 @@ const Ob = (e, s) => {
|
|
10842
10853
|
},
|
10843
10854
|
S
|
10844
10855
|
)),
|
10845
|
-
a && (o ===
|
10856
|
+
a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(zu, { callback: h })
|
10846
10857
|
] })
|
10847
10858
|
] });
|
10848
10859
|
}
|
@@ -10948,7 +10959,7 @@ const Ob = (e, s) => {
|
|
10948
10959
|
try {
|
10949
10960
|
const l = await sT(a);
|
10950
10961
|
if (l.status === rc.OK) {
|
10951
|
-
r &&
|
10962
|
+
r && ke.showToast({
|
10952
10963
|
variant: Se.info,
|
10953
10964
|
title: "Preparing file for download",
|
10954
10965
|
description: "File will be downloaded when it is available."
|
@@ -10956,7 +10967,7 @@ const Ob = (e, s) => {
|
|
10956
10967
|
const d = await l.blob(), u = URL.createObjectURL(d), m = document.createElement("a");
|
10957
10968
|
m.href = u, m.download = o || yN(l.headers) || "file.tgz", document.body.appendChild(m), m.click(), setTimeout(() => {
|
10958
10969
|
URL.revokeObjectURL(u), document.body.removeChild(m);
|
10959
|
-
}, 0), i &&
|
10970
|
+
}, 0), i && ke.showToast({
|
10960
10971
|
variant: Se.success,
|
10961
10972
|
description: c
|
10962
10973
|
});
|
@@ -11095,7 +11106,7 @@ const Ob = (e, s) => {
|
|
11095
11106
|
getErrorsFromFormData: _
|
11096
11107
|
};
|
11097
11108
|
}, aT = () => /* @__PURE__ */ t.jsx(
|
11098
|
-
|
11109
|
+
Qe,
|
11099
11110
|
{
|
11100
11111
|
SvgImage: pd,
|
11101
11112
|
title: Ye.CI_PROGRESS_VIEW.TITLE,
|
@@ -11196,7 +11207,7 @@ const Ob = (e, s) => {
|
|
11196
11207
|
if (!a && !i) {
|
11197
11208
|
if (C === ye.FAILED || C === ye.CANCELLED || C === ye.ERROR || C === ye.TIMED_OUT)
|
11198
11209
|
return /* @__PURE__ */ t.jsx(
|
11199
|
-
|
11210
|
+
Qe,
|
11200
11211
|
{
|
11201
11212
|
title: c ? Ye.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifacts : Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsGenerated,
|
11202
11213
|
subTitle: c ? Ye.ARTIFACTS_EMPTY_STATE_TEXTS.FailedToFetchArtifactsError : Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsError
|
@@ -11204,7 +11215,7 @@ const Ob = (e, s) => {
|
|
11204
11215
|
);
|
11205
11216
|
if (C === ye.SUCCEEDED)
|
11206
11217
|
return /* @__PURE__ */ t.jsx(
|
11207
|
-
|
11218
|
+
Qe,
|
11208
11219
|
{
|
11209
11220
|
title: Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsFound,
|
11210
11221
|
subTitle: Ye.ARTIFACTS_EMPTY_STATE_TEXTS.NoArtifactsFoundError,
|
@@ -11272,7 +11283,7 @@ const Ob = (e, s) => {
|
|
11272
11283
|
/* @__PURE__ */ t.jsx(ud, { className: "icon-dim-20 ml-8" })
|
11273
11284
|
] }) })
|
11274
11285
|
] });
|
11275
|
-
}, el = (e) => e && e ===
|
11286
|
+
}, el = (e) => e && e === Cs.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
|
11276
11287
|
async function rT({
|
11277
11288
|
appId: e,
|
11278
11289
|
envId: s,
|
@@ -11384,7 +11395,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11384
11395
|
n
|
11385
11396
|
), r.values = a, r;
|
11386
11397
|
}, mD = (e, s, n, a) => {
|
11387
|
-
const r =
|
11398
|
+
const r = Je(
|
11388
11399
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${G.CONFIG_CD_PIPELINE}/${li.v1}`,
|
11389
11400
|
{
|
11390
11401
|
baseConfigurationId: n,
|
@@ -11401,7 +11412,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11401
11412
|
releaseId: a,
|
11402
11413
|
showCurrentReleaseDeployments: r = !1
|
11403
11414
|
}) => {
|
11404
|
-
const o =
|
11415
|
+
const o = Je(
|
11405
11416
|
`${G.RESOURCE_HISTORY_DEPLOYMENT}/${lt.cdPipeline}/${li.v1}`,
|
11406
11417
|
{
|
11407
11418
|
filterCriteria: kb({ appId: e, envId: s, releaseId: a, showCurrentReleaseDeployments: r }),
|
@@ -11444,7 +11455,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11444
11455
|
children: [
|
11445
11456
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__transparent dc__align-items-center", children: [
|
11446
11457
|
/* @__PURE__ */ t.jsx(
|
11447
|
-
|
11458
|
+
is,
|
11448
11459
|
{
|
11449
11460
|
className: `icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white ${s ? "" : "dc__flip-n90 dc__opacity-0_5"}`
|
11450
11461
|
}
|
@@ -11492,7 +11503,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11492
11503
|
{
|
11493
11504
|
className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
|
11494
11505
|
dangerouslySetInnerHTML: {
|
11495
|
-
__html:
|
11506
|
+
__html: As.sanitize(h)
|
11496
11507
|
}
|
11497
11508
|
}
|
11498
11509
|
)
|
@@ -11508,7 +11519,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11508
11519
|
] })
|
11509
11520
|
] });
|
11510
11521
|
}, Xu = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
11511
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
11522
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(qs, { className: "icon-dim-20" }) }),
|
11512
11523
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
11513
11524
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
11514
11525
|
] }) }), hT = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -11740,7 +11751,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11740
11751
|
"data-testid": "logs-previous-search-match",
|
11741
11752
|
"aria-label": "Focus the previous search result match",
|
11742
11753
|
disabled: !A,
|
11743
|
-
children: /* @__PURE__ */ t.jsx(
|
11754
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-stroke__white dc__flip-180 icon-dim-14 dc__no-shrink" })
|
11744
11755
|
}
|
11745
11756
|
),
|
11746
11757
|
/* @__PURE__ */ t.jsx(
|
@@ -11752,7 +11763,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11752
11763
|
"data-testid": "logs-next-search-match",
|
11753
11764
|
"aria-label": "Focus the next search result match",
|
11754
11765
|
disabled: !A,
|
11755
|
-
children: /* @__PURE__ */ t.jsx(
|
11766
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-stroke__white icon-dim-14 dc__no-shrink" })
|
11756
11767
|
}
|
11757
11768
|
)
|
11758
11769
|
] })
|
@@ -11814,13 +11825,13 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11814
11825
|
{
|
11815
11826
|
className: "mono fs-14 mb-0-imp",
|
11816
11827
|
dangerouslySetInnerHTML: {
|
11817
|
-
__html:
|
11828
|
+
__html: As.sanitize(H)
|
11818
11829
|
}
|
11819
11830
|
}
|
11820
11831
|
)
|
11821
11832
|
] }, `logs-${F}`)
|
11822
11833
|
)),
|
11823
|
-
j && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(
|
11834
|
+
j && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(Ue, {}) })
|
11824
11835
|
] });
|
11825
11836
|
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${Nn(At.dark)}`, children: e.podStatus !== to.PENDING && u && (!s || !e.blobStorageEnabled) ? gT(s) : Ie() });
|
11826
11837
|
}, NT = ({
|
@@ -11849,7 +11860,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11849
11860
|
}
|
11850
11861
|
) : null;
|
11851
11862
|
return /* @__PURE__ */ t.jsx("div", { className: "dc__position-rel", style: { backgroundColor: "var(--bg-tertiary)" }, children: /* @__PURE__ */ t.jsx(
|
11852
|
-
|
11863
|
+
Qe,
|
11853
11864
|
{
|
11854
11865
|
image: e || _d,
|
11855
11866
|
classname: "fs-16",
|
@@ -11872,7 +11883,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11872
11883
|
{
|
11873
11884
|
className: `bcr-1 ${s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO ? "fs-13" : "flex left"} ${r ? "" : "er-2 br-4 bw-1"} p-8`,
|
11874
11885
|
children: [
|
11875
|
-
!r && /* @__PURE__ */ t.jsx(
|
11886
|
+
!r && /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20 mr-8" }),
|
11876
11887
|
n,
|
11877
11888
|
s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO && /* @__PURE__ */ t.jsxs("ol", { className: "m-0 pl-20", children: [
|
11878
11889
|
/* @__PURE__ */ t.jsx("li", { children: "Ensure provided repository path is valid" }),
|
@@ -11915,17 +11926,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11915
11926
|
disabled: !1,
|
11916
11927
|
onChange: u,
|
11917
11928
|
children: [
|
11918
|
-
/* @__PURE__ */ t.jsx(
|
11919
|
-
It.Radio,
|
11920
|
-
{
|
11921
|
-
value: i.status,
|
11922
|
-
tippyPlacement: "top",
|
11923
|
-
tippyContent: i.status,
|
11924
|
-
tippyClass: "w-100 dc__first-letter-capitalize",
|
11925
|
-
children: /* @__PURE__ */ t.jsx("span", { className: "dc__first-letter-capitalize", children: `${i.status} (${i.count})` })
|
11926
|
-
},
|
11927
|
-
i.status
|
11928
|
-
),
|
11929
|
+
/* @__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),
|
11929
11930
|
d.map(({ status: p, count: _ }) => /* @__PURE__ */ t.jsxs(
|
11930
11931
|
It.Radio,
|
11931
11932
|
{
|
@@ -11950,7 +11951,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11950
11951
|
{
|
11951
11952
|
isKebab: !0,
|
11952
11953
|
rootClassName: "flex p-4 dc__border dc__no-left-radius dc__right-radius-4 bg__primary dc__hover-n50",
|
11953
|
-
children: /* @__PURE__ */ t.jsx(
|
11954
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-dim-14 scn-6" })
|
11954
11955
|
}
|
11955
11956
|
),
|
11956
11957
|
/* @__PURE__ */ t.jsx(ct.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: c.map(({ status: p, count: _ }, E) => /* @__PURE__ */ t.jsxs(
|
@@ -12136,7 +12137,7 @@ const vT = (e, s) => {
|
|
12136
12137
|
showConfigDriftInfo: n = !1,
|
12137
12138
|
onClose: a
|
12138
12139
|
}) => {
|
12139
|
-
const r =
|
12140
|
+
const r = zs(), o = Ju.getAppDetails(), [i, c] = R(So), [l, d] = R([]), { appId: u, environmentId: m } = o, p = () => {
|
12140
12141
|
a(), r.push(`${Oe.APP}/${u}${Oe.DETAILS}/${m}/${Oe.APP_DETAILS_K8}/${Oe.CONFIG_DRIFT}`);
|
12141
12142
|
}, _ = te(
|
12142
12143
|
() => vN(o.resourceTree?.nodes || [], o.resourceTree?.podMetadata || []),
|
@@ -12224,7 +12225,7 @@ const vT = (e, s) => {
|
|
12224
12225
|
},
|
12225
12226
|
`${h.kind}/${h.name}`
|
12226
12227
|
)) : /* @__PURE__ */ t.jsx("div", { className: "flex dc__height-inherit mh-300", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__align-center", children: [
|
12227
|
-
/* @__PURE__ */ t.jsx(
|
12228
|
+
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-20" }),
|
12228
12229
|
/* @__PURE__ */ t.jsx("div", { children: "Checking resources status" })
|
12229
12230
|
] }) }) }),
|
12230
12231
|
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: [
|
@@ -12353,7 +12354,7 @@ const vT = (e, s) => {
|
|
12353
12354
|
}
|
12354
12355
|
),
|
12355
12356
|
(e === z.KUBECTL_APPLY && o.kubeList?.length || e === z.APP_HEALTH && l.includes(o.icon) || (e === z.GIT_COMMIT || e === z.ARGOCD_SYNC) && o.icon === "failed") && /* @__PURE__ */ t.jsx(
|
12356
|
-
|
12357
|
+
Ss,
|
12357
12358
|
{
|
12358
12359
|
style: { marginLeft: "auto", "--rotateBy": `${180 * +!i}deg` },
|
12359
12360
|
className: "icon-dim-24 rotate pointer",
|
@@ -12578,7 +12579,7 @@ const jT = ({
|
|
12578
12579
|
processVirtualEnvironmentDeploymentData: c,
|
12579
12580
|
renderDeploymentApprovalInfo: l
|
12580
12581
|
}) => {
|
12581
|
-
const d =
|
12582
|
+
const d = zs(), { url: u } = Jt(), { appId: m, envId: p, triggerId: _ } = Tt(), [E, x] = R(
|
12582
12583
|
e?.toUpperCase() !== z.ABORTED
|
12583
12584
|
), h = Y(i), g = h.current && c ? c() : Bc(), [f, N] = R(g), C = () => {
|
12584
12585
|
va && clearTimeout(va);
|
@@ -12639,12 +12640,12 @@ const jT = ({
|
|
12639
12640
|
)
|
12640
12641
|
] });
|
12641
12642
|
return e?.toUpperCase() === z.ABORTED || f.deploymentStatus === ge.SUPERSEDED ? /* @__PURE__ */ t.jsx("div", { className: "flexbox deployment-aborted", "data-testid": "deployment-history-steps-failed-message", children: /* @__PURE__ */ t.jsx(
|
12642
|
-
|
12643
|
+
Qe,
|
12643
12644
|
{
|
12644
12645
|
title: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
|
12645
12646
|
subTitle: Ye.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
|
12646
12647
|
}
|
12647
|
-
) }) : E ? /* @__PURE__ */ t.jsx(
|
12648
|
+
) }) : E ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : I();
|
12648
12649
|
}, Di = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t.jsx(Nd, { children: e && /* @__PURE__ */ t.jsx(
|
12649
12650
|
mn.div,
|
12650
12651
|
{
|
@@ -12661,7 +12662,7 @@ const jT = ({
|
|
12661
12662
|
tabType: s,
|
12662
12663
|
onCollapseBtnClick: n
|
12663
12664
|
}) => {
|
12664
|
-
const { pathname: a } =
|
12665
|
+
const { pathname: a } = Ls(), r = (c) => {
|
12665
12666
|
const { title: l, subtitle: d, strikeThrough: u, iconConfig: m } = c;
|
12666
12667
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12667
12668
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 mw-none", children: [
|
@@ -12719,7 +12720,7 @@ const jT = ({
|
|
12719
12720
|
l
|
12720
12721
|
);
|
12721
12722
|
};
|
12722
|
-
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(
|
12723
|
+
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: [
|
12723
12724
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4 py-6 px-8 br-4 dc__hover-n50", children: [
|
12724
12725
|
/* @__PURE__ */ t.jsxs(
|
12725
12726
|
"button",
|
@@ -12830,7 +12831,7 @@ const Zu = {
|
|
12830
12831
|
const { value: A } = C.target;
|
12831
12832
|
c?.activeTab !== A && c?.onClick?.(A);
|
12832
12833
|
}, h = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12833
|
-
a && /* @__PURE__ */ t.jsx(
|
12834
|
+
a && /* @__PURE__ */ t.jsx(Os, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(nt, { className: "icon-dim-16 fcn-6" }) }) }),
|
12834
12835
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12835
12836
|
] }), g = () => {
|
12836
12837
|
const { tabs: C, activeTab: A } = c;
|
@@ -12887,7 +12888,7 @@ const Zu = {
|
|
12887
12888
|
!!c?.tabs.length && g(),
|
12888
12889
|
/* @__PURE__ */ t.jsx("div", { className: "mw-none p-8 flex-grow-1 dc__overflow-auto", children: N() })
|
12889
12890
|
] });
|
12890
|
-
},
|
12891
|
+
}, Qe = ({
|
12891
12892
|
title: e,
|
12892
12893
|
image: s,
|
12893
12894
|
subTitle: n,
|
@@ -12961,7 +12962,7 @@ const Zu = {
|
|
12961
12962
|
}
|
12962
12963
|
);
|
12963
12964
|
}, Ms = ({ code: e, image: s, title: n, subTitle: a, imageType: r, heightToDeduct: o, redirectURL: i, reload: c }) => {
|
12964
|
-
const { push: l } =
|
12965
|
+
const { push: l } = zs(), d = () => {
|
12965
12966
|
l(i || `/${G.APP_LIST}`);
|
12966
12967
|
}, u = (x) => {
|
12967
12968
|
switch (x) {
|
@@ -12994,7 +12995,7 @@ const Zu = {
|
|
12994
12995
|
isButtonAvailable: _
|
12995
12996
|
} = u(e), E = () => /* @__PURE__ */ t.jsx("button", { type: "button", className: "flex cta h-36", onClick: m, "data-testid": "empty-screen-take-me-home", children: p });
|
12996
12997
|
return /* @__PURE__ */ t.jsx(
|
12997
|
-
|
12998
|
+
Qe,
|
12998
12999
|
{
|
12999
13000
|
image: s,
|
13000
13001
|
title: n,
|
@@ -13235,7 +13236,7 @@ const Zu = {
|
|
13235
13236
|
onClick: c,
|
13236
13237
|
children: [
|
13237
13238
|
/* @__PURE__ */ t.jsx(
|
13238
|
-
|
13239
|
+
is,
|
13239
13240
|
{
|
13240
13241
|
className: "icon-dim-16 fsn-6 rotate",
|
13241
13242
|
style: { "--rotateBy": i ? "360deg" : "270deg" }
|
@@ -13297,7 +13298,7 @@ const Zu = {
|
|
13297
13298
|
compareToObfuscatedData: Object.keys(i).length ? i : void 0,
|
13298
13299
|
compareWithObfuscatedData: Object.keys(c).length ? c : void 0
|
13299
13300
|
};
|
13300
|
-
},
|
13301
|
+
}, xs = (e, s) => {
|
13301
13302
|
const { sortBy: n, sortOrder: a } = s ?? { sortBy: "", sortOrder: null };
|
13302
13303
|
try {
|
13303
13304
|
return JSON.stringify(
|
@@ -13324,26 +13325,26 @@ const Zu = {
|
|
13324
13325
|
displayName: "data",
|
13325
13326
|
...ol(e) ? {
|
13326
13327
|
value: null,
|
13327
|
-
resolvedValue:
|
13328
|
+
resolvedValue: xs(u, o)
|
13328
13329
|
} : {
|
13329
|
-
value:
|
13330
|
+
value: xs(u, o)
|
13330
13331
|
}
|
13331
13332
|
}, d = {
|
13332
13333
|
displayName: "data",
|
13333
13334
|
...ol(s) ? {
|
13334
13335
|
value: null,
|
13335
|
-
resolvedValue:
|
13336
|
+
resolvedValue: xs(m, o)
|
13336
13337
|
} : {
|
13337
|
-
value:
|
13338
|
+
value: xs(m, o)
|
13338
13339
|
}
|
13339
13340
|
};
|
13340
13341
|
} else
|
13341
13342
|
l = {
|
13342
13343
|
displayName: "data",
|
13343
|
-
value:
|
13344
|
+
value: xs(i, o)
|
13344
13345
|
}, d = {
|
13345
13346
|
displayName: "data",
|
13346
|
-
value:
|
13347
|
+
value: xs(c, o)
|
13347
13348
|
};
|
13348
13349
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
13349
13350
|
}, Da = (e, s) => {
|
@@ -13383,7 +13384,7 @@ const Zu = {
|
|
13383
13384
|
}, ll = (e, s, n) => {
|
13384
13385
|
const a = MT(e), r = {
|
13385
13386
|
displayName: "data",
|
13386
|
-
value: a ?
|
13387
|
+
value: a ? xs(a, n) : ""
|
13387
13388
|
};
|
13388
13389
|
return zn(
|
13389
13390
|
{
|
@@ -13404,7 +13405,7 @@ const Zu = {
|
|
13404
13405
|
}, ul = (e, s) => {
|
13405
13406
|
const n = {
|
13406
13407
|
displayName: "data",
|
13407
|
-
value: e?.data ?
|
13408
|
+
value: e?.data ? xs(e.data, s) : ""
|
13408
13409
|
};
|
13409
13410
|
return zn(
|
13410
13411
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
@@ -13765,12 +13766,12 @@ const Zu = {
|
|
13765
13766
|
}, [i]);
|
13766
13767
|
const E = (N) => N.map((C, A) => {
|
13767
13768
|
if (C.type === "string")
|
13768
|
-
return /* @__PURE__ */ t.jsxs(
|
13769
|
+
return /* @__PURE__ */ t.jsxs(Hs, { children: [
|
13769
13770
|
typeof C.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
|
13770
13771
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
13771
13772
|
] }, C.id);
|
13772
13773
|
const { selectPickerProps: S } = C;
|
13773
|
-
return /* @__PURE__ */ t.jsxs(
|
13774
|
+
return /* @__PURE__ */ t.jsxs(Hs, { children: [
|
13774
13775
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
13775
13776
|
Xt,
|
13776
13777
|
{
|
@@ -13865,7 +13866,7 @@ const Zu = {
|
|
13865
13866
|
},
|
13866
13867
|
`${N}-${S}`
|
13867
13868
|
);
|
13868
|
-
}), f = () => e ? /* @__PURE__ */ t.jsx(
|
13869
|
+
}), f = () => e ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
13869
13870
|
Lr,
|
13870
13871
|
{
|
13871
13872
|
code: s.code,
|
@@ -14094,7 +14095,7 @@ const Zu = {
|
|
14094
14095
|
name: "deployment-config-diff-deployment-selector",
|
14095
14096
|
inputId: "deployment-config-diff-deployment-selector",
|
14096
14097
|
classNamePrefix: "deployment-config-diff-deployment-selector",
|
14097
|
-
variant:
|
14098
|
+
variant: Rs.BORDER_LESS,
|
14098
14099
|
options: L,
|
14099
14100
|
placeholder: "Select Deployment",
|
14100
14101
|
value: _n(L, f, null),
|
@@ -14152,7 +14153,7 @@ const Zu = {
|
|
14152
14153
|
resourceId: i,
|
14153
14154
|
renderRunSource: c
|
14154
14155
|
}) => {
|
14155
|
-
const { path: l, params: d } = Jt(), { pathname: u, search: m } =
|
14156
|
+
const { path: l, params: d } = Jt(), { pathname: u, search: m } = Ls(), { isSuperAdmin: p } = ua(), _ = te(() => sm(r), [r]), { currentWfrId: E, previousWfrId: x } = te(
|
14156
14157
|
() => XT({ pipelineDeployments: _, wfrId: a }),
|
14157
14158
|
[_, a]
|
14158
14159
|
), h = !!x, g = au({
|
@@ -14216,7 +14217,7 @@ const Zu = {
|
|
14216
14217
|
reload: v
|
14217
14218
|
};
|
14218
14219
|
return I && fl(I[0]) ? /* @__PURE__ */ t.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ t.jsx(
|
14219
|
-
|
14220
|
+
Qe,
|
14220
14221
|
{
|
14221
14222
|
title: "Data not available",
|
14222
14223
|
subTitle: "Configurations used for this deployment execution is not available"
|
@@ -14242,7 +14243,7 @@ const Zu = {
|
|
14242
14243
|
isCompareDeploymentConfigNotAvailable: w
|
14243
14244
|
}
|
14244
14245
|
) }),
|
14245
|
-
/* @__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(
|
14246
|
+
/* @__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: [
|
14246
14247
|
/* @__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" }),
|
14247
14248
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
14248
14249
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(j).map(
|
@@ -14795,7 +14796,7 @@ function Zs() {
|
|
14795
14796
|
throw new Error("cannot be rendered outside the component");
|
14796
14797
|
return e;
|
14797
14798
|
}
|
14798
|
-
const uS = 100,
|
14799
|
+
const uS = 100, et = Ce.memo(
|
14799
14800
|
({
|
14800
14801
|
value: e,
|
14801
14802
|
mode: s = Fe.JSON,
|
@@ -15051,7 +15052,7 @@ const uS = 100, Qe = Ce.memo(
|
|
15051
15052
|
initialTab: n.mode,
|
15052
15053
|
className: "flex left",
|
15053
15054
|
onChange: (a) => {
|
15054
|
-
|
15055
|
+
vs.event({
|
15055
15056
|
category: "JSON-YAML Switch",
|
15056
15057
|
action: `${a.target.value} view`
|
15057
15058
|
}), s(a.target.value);
|
@@ -15070,11 +15071,11 @@ const uS = 100, Qe = Ce.memo(
|
|
15070
15071
|
e.text,
|
15071
15072
|
e.children
|
15072
15073
|
] }), gS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
|
15073
|
-
/* @__PURE__ */ t.jsx(
|
15074
|
+
/* @__PURE__ */ t.jsx(ds, { className: "code-editor__information-info-icon" }),
|
15074
15075
|
e.text,
|
15075
15076
|
e.children
|
15076
15077
|
] }), xS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
|
15077
|
-
/* @__PURE__ */ t.jsx(
|
15078
|
+
/* @__PURE__ */ t.jsx(qs, { className: "code-editor__information-info-icon" }),
|
15078
15079
|
e.text,
|
15079
15080
|
e.children
|
15080
15081
|
] }), ES = () => {
|
@@ -15091,7 +15092,7 @@ const uS = 100, Qe = Ce.memo(
|
|
15091
15092
|
] });
|
15092
15093
|
}, CS = ({ className: e = "", style: s = {}, customLoader: n }) => {
|
15093
15094
|
const { height: a } = Zs();
|
15094
|
-
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(
|
15095
|
+
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 }) }) }) });
|
15095
15096
|
}, bS = ({
|
15096
15097
|
children: e,
|
15097
15098
|
flexExpand: s,
|
@@ -15105,15 +15106,15 @@ const uS = 100, Qe = Ce.memo(
|
|
15105
15106
|
children: e
|
15106
15107
|
}
|
15107
15108
|
);
|
15108
|
-
|
15109
|
-
|
15110
|
-
|
15111
|
-
|
15112
|
-
|
15113
|
-
|
15114
|
-
|
15115
|
-
|
15116
|
-
|
15109
|
+
et.LanguageChanger = _S;
|
15110
|
+
et.ThemeChanger = pS;
|
15111
|
+
et.ValidationError = fS;
|
15112
|
+
et.Clipboard = ES;
|
15113
|
+
et.Header = mS;
|
15114
|
+
et.Warning = hS;
|
15115
|
+
et.ErrorBar = gS;
|
15116
|
+
et.Information = xS;
|
15117
|
+
et.Container = bS;
|
15117
15118
|
const TS = () => (e) => {
|
15118
15119
|
const s = [], n = e.state.doc.toString();
|
15119
15120
|
try {
|
@@ -15226,7 +15227,7 @@ const TS = () => (e) => {
|
|
15226
15227
|
const s = document.createElement("span");
|
15227
15228
|
s.className = `flex h-100 ${e ? "" : "is-closed"}`;
|
15228
15229
|
const n = /* @__PURE__ */ t.jsx(
|
15229
|
-
|
15230
|
+
is,
|
15230
15231
|
{
|
15231
15232
|
className: "icon-dim-12 scn-6 rotate",
|
15232
15233
|
style: { "--rotateBy": e ? "0deg" : "-90deg" }
|
@@ -15241,7 +15242,7 @@ const TS = () => (e) => {
|
|
15241
15242
|
{
|
15242
15243
|
className: "m-0",
|
15243
15244
|
dangerouslySetInnerHTML: {
|
15244
|
-
__html:
|
15245
|
+
__html: As.sanitize(s.typeInfo.replace(/`([^`]+)`/g, "<code>$1</code>"))
|
15245
15246
|
}
|
15246
15247
|
}
|
15247
15248
|
),
|
@@ -15263,7 +15264,7 @@ const TS = () => (e) => {
|
|
15263
15264
|
}, jS = () => {
|
15264
15265
|
const e = document.createElement("button");
|
15265
15266
|
return bd(
|
15266
|
-
/* @__PURE__ */ t.jsx(ie, { content: "Revert this chunk", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
15267
|
+
/* @__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 }) }) }),
|
15267
15268
|
e
|
15268
15269
|
), e;
|
15269
15270
|
}, Nl = (e, s = !1) => {
|
@@ -15468,7 +15469,7 @@ const TS = () => (e) => {
|
|
15468
15469
|
ariaLabel: "find-replace-expand-button",
|
15469
15470
|
showAriaLabelInTippy: !1,
|
15470
15471
|
icon: /* @__PURE__ */ t.jsx(
|
15471
|
-
|
15472
|
+
is,
|
15472
15473
|
{
|
15473
15474
|
className: "rotate",
|
15474
15475
|
style: {
|
@@ -15818,7 +15819,7 @@ const TS = () => (e) => {
|
|
15818
15819
|
}
|
15819
15820
|
);
|
15820
15821
|
}, xm = Mt(null), wr = () => {
|
15821
|
-
const e =
|
15822
|
+
const e = ls(xm);
|
15822
15823
|
if (!e)
|
15823
15824
|
throw new Error("cannot be rendered outside the component");
|
15824
15825
|
return e;
|
@@ -15857,7 +15858,7 @@ const TS = () => (e) => {
|
|
15857
15858
|
]
|
15858
15859
|
}
|
15859
15860
|
), tv = ({ className: e, text: s, children: n }) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error fs-12 fw-4 lh-16 py-8 px-16 bco-1 co-5 dc__border-bottom ${e || ""}`, children: [
|
15860
|
-
/* @__PURE__ */ t.jsx(
|
15861
|
+
/* @__PURE__ */ t.jsx(ds, { className: "code-editor__status-info-icon" }),
|
15861
15862
|
s,
|
15862
15863
|
n
|
15863
15864
|
] }), sv = ({ className: e, children: s, text: n }) => /* @__PURE__ */ t.jsxs(
|
@@ -15865,7 +15866,7 @@ const TS = () => (e) => {
|
|
15865
15866
|
{
|
15866
15867
|
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 || ""}`,
|
15867
15868
|
children: [
|
15868
|
-
/* @__PURE__ */ t.jsx(
|
15869
|
+
/* @__PURE__ */ t.jsx(qs, { className: "code-editor__status-info-icon" }),
|
15869
15870
|
n,
|
15870
15871
|
s
|
15871
15872
|
]
|
@@ -16075,7 +16076,7 @@ const TS = () => (e) => {
|
|
16075
16076
|
}, 100);
|
16076
16077
|
}, [C, N, I]);
|
16077
16078
|
const { codeEditorClassName: ce, codeEditorHeight: le, codeEditorParentClassName: pe } = AS(r);
|
16078
|
-
return n ? a || /* @__PURE__ */ t.jsx("div", { className: "flex mh-250", style: { height: le }, children: /* @__PURE__ */ t.jsx(
|
16079
|
+
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: [
|
16079
16080
|
/* @__PURE__ */ t.jsx(
|
16080
16081
|
"div",
|
16081
16082
|
{
|
@@ -16178,7 +16179,7 @@ const TS = () => (e) => {
|
|
16178
16179
|
F(h);
|
16179
16180
|
}, [h]), k(
|
16180
16181
|
() => {
|
16181
|
-
Q(
|
16182
|
+
Q(Ks());
|
16182
16183
|
},
|
16183
16184
|
// Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
|
16184
16185
|
[E, l, v, b, o, r]
|
@@ -16284,10 +16285,10 @@ const Zt = () => window._env_.FEATURE_CODE_MIRROR_ENABLE, bt = ({
|
|
16284
16285
|
codeMirrorProps: s,
|
16285
16286
|
children: n,
|
16286
16287
|
...a
|
16287
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt, { ...s, ...a, children: n }) : /* @__PURE__ */ t.jsx(
|
16288
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt, { ...s, ...a, children: n }) : /* @__PURE__ */ t.jsx(et, { ...e, ...a, children: n }), lv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.LanguageChanger, {}), dv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ThemeChanger, {}), uv = () => Zt() ? null : /* @__PURE__ */ t.jsx(et.ValidationError, {}), mv = () => Zt() ? /* @__PURE__ */ t.jsx(Rt.Clipboard, {}) : /* @__PURE__ */ t.jsx(et.Clipboard, {}), pv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Header, { ...e }) : /* @__PURE__ */ t.jsx(et.Header, { ...e }), _v = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Warning, { ...e }) : /* @__PURE__ */ t.jsx(et.Warning, { ...e }), fv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.ErrorBar, { ...e }) : /* @__PURE__ */ t.jsx(et.ErrorBar, { ...e }), hv = (e) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Information, { ...e }) : /* @__PURE__ */ t.jsx(et.Information, { ...e }), gv = ({
|
16288
16289
|
overflowHidden: e,
|
16289
16290
|
...s
|
16290
|
-
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Container, { ...s }) : /* @__PURE__ */ t.jsx(
|
16291
|
+
}) => Zt() ? /* @__PURE__ */ t.jsx(Rt.Container, { ...s }) : /* @__PURE__ */ t.jsx(et.Container, { overflowHidden: e, ...s });
|
16291
16292
|
bt.LanguageChanger = lv;
|
16292
16293
|
bt.ThemeChanger = dv;
|
16293
16294
|
bt.ValidationError = uv;
|
@@ -16347,7 +16348,7 @@ const xv = ({
|
|
16347
16348
|
] });
|
16348
16349
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
16349
16350
|
!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: [
|
16350
|
-
/* @__PURE__ */ t.jsx(
|
16351
|
+
/* @__PURE__ */ t.jsx(qs, { className: "mr-8 ml-14 icon-dim-20" }),
|
16351
16352
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
16352
16353
|
vt[o.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
16353
16354
|
i ? ` “${i}”` : "",
|
@@ -16421,7 +16422,7 @@ const xv = ({
|
|
16421
16422
|
className: "git-commit-info-generic__header px-16 py-12 dc__box-shadow fs-12 fw-6 dc__gap-4",
|
16422
16423
|
style: r,
|
16423
16424
|
children: [
|
16424
|
-
/* @__PURE__ */ t.jsx(
|
16425
|
+
/* @__PURE__ */ t.jsx(qe, { name: Ev(s), size: 20, color: null }),
|
16425
16426
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left left dc__gap-4 fs-13", children: [
|
16426
16427
|
/* @__PURE__ */ t.jsx(
|
16427
16428
|
"div",
|
@@ -16629,7 +16630,7 @@ const xv = ({
|
|
16629
16630
|
fullScreenView: n,
|
16630
16631
|
setFullScreenView: a
|
16631
16632
|
}) => {
|
16632
|
-
const { pathname: r } =
|
16633
|
+
const { pathname: r } = Ls(), { registerShortcut: o, unregisterShortcut: i } = aa(), c = ze(() => {
|
16633
16634
|
a(!n);
|
16634
16635
|
}, [n]), l = !s || r.includes("/logs");
|
16635
16636
|
return k(() => (l && e.length && o({ callback: c, keys: e }), () => {
|
@@ -16663,7 +16664,7 @@ const xv = ({
|
|
16663
16664
|
type: "button",
|
16664
16665
|
onClick: e,
|
16665
16666
|
"aria-label": "scroll-to-top",
|
16666
|
-
children: /* @__PURE__ */ t.jsx(
|
16667
|
+
children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate", style: { "--rotateBy": "180deg" } })
|
16667
16668
|
}
|
16668
16669
|
) }),
|
16669
16670
|
/* @__PURE__ */ t.jsx(ie, { alwaysShowTippyOnHover: !0, content: "Scroll to Bottom", placement: "left", children: /* @__PURE__ */ t.jsx(
|
@@ -16674,7 +16675,7 @@ const xv = ({
|
|
16674
16675
|
type: "button",
|
16675
16676
|
onClick: s,
|
16676
16677
|
"aria-label": "scroll-to-button",
|
16677
|
-
children: /* @__PURE__ */ t.jsx(
|
16678
|
+
children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate" })
|
16678
16679
|
}
|
16679
16680
|
) })
|
16680
16681
|
] }) }), Tv = ({
|
@@ -16700,7 +16701,7 @@ const xv = ({
|
|
16700
16701
|
const { isSuperAdmin: f } = nu();
|
16701
16702
|
if (!s?.length || !Object.keys(e ?? {}).length)
|
16702
16703
|
return /* @__PURE__ */ t.jsx(
|
16703
|
-
|
16704
|
+
Qe,
|
16704
16705
|
{
|
16705
16706
|
title: Ye.DATA_NOT_AVAILABLE,
|
16706
16707
|
subTitle: Ye.DEVTRON_APP_DEPLOYMENT_HISTORY_SOURCE_CODE.SUBTITLE
|
@@ -16813,8 +16814,8 @@ const Sv = (e) => {
|
|
16813
16814
|
const { registerShortcut: n, unregisterShortcut: a } = aa();
|
16814
16815
|
return k(() => (n({ keys: ["Escape"], callback: s }), () => {
|
16815
16816
|
a(["Escape"]);
|
16816
|
-
}), [s]), k(() => (
|
16817
|
-
|
16817
|
+
}), [s]), k(() => (js(!0), Uc({ identifier: dc, preventFocus: !0 }), () => {
|
16818
|
+
js(!1), Uc({ identifier: dc, preventFocus: !1 });
|
16818
16819
|
}), []), bf(
|
16819
16820
|
/* @__PURE__ */ t.jsx(
|
16820
16821
|
mn.div,
|
@@ -16831,7 +16832,7 @@ const Sv = (e) => {
|
|
16831
16832
|
}, Nm = Mt(null), hD = ({ children: e }) => {
|
16832
16833
|
const s = Y(null), [n, a] = R(""), r = te(() => ({ modalKey: n, setModalKey: a, settersRef: s }), [n]);
|
16833
16834
|
return /* @__PURE__ */ t.jsx(Nm.Provider, { value: r, children: e });
|
16834
|
-
}, Cm = () =>
|
16835
|
+
}, Cm = () => ls(Nm), yv = {
|
16835
16836
|
[P.medium]: P.xxs,
|
16836
16837
|
[P.large]: P.xs
|
16837
16838
|
}, Dr = ({
|
@@ -16909,7 +16910,7 @@ const Sv = (e) => {
|
|
16909
16910
|
onBlur: A,
|
16910
16911
|
type: E,
|
16911
16912
|
ref: C,
|
16912
|
-
className: `${
|
16913
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${h ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
16913
16914
|
}
|
16914
16915
|
),
|
16915
16916
|
h && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink dc__position-abs custom-input__icon-button--${u}`, children: /* @__PURE__ */ t.jsx(
|
@@ -17055,10 +17056,10 @@ const Sv = (e) => {
|
|
17055
17056
|
setProps: a
|
17056
17057
|
};
|
17057
17058
|
}, []), /* @__PURE__ */ t.jsx(ou, { ignoreTags: ["button"], children: /* @__PURE__ */ t.jsx(Nd, { children: !!e && /* @__PURE__ */ t.jsx(jv, { ...n }) }) });
|
17058
|
-
},
|
17059
|
+
}, Ws = (e) => {
|
17059
17060
|
const { setModalKey: s, settersRef: n } = Cm();
|
17060
17061
|
return k(() => {
|
17061
|
-
const a =
|
17062
|
+
const a = Ks();
|
17062
17063
|
return s(a), () => {
|
17063
17064
|
s((r) => r === a ? "" : r);
|
17064
17065
|
};
|
@@ -17066,7 +17067,7 @@ const Sv = (e) => {
|
|
17066
17067
|
n.current.setProps(e);
|
17067
17068
|
}, [e]), null;
|
17068
17069
|
}, Ov = ({ title: e, component: s, subtitle: n, closeConfirmationModal: a }) => /* @__PURE__ */ t.jsx(
|
17069
|
-
|
17070
|
+
Ws,
|
17070
17071
|
{
|
17071
17072
|
variant: Yt.info,
|
17072
17073
|
title: `Cannot delete ${s} '${e}'`,
|
@@ -17093,7 +17094,7 @@ const Sv = (e) => {
|
|
17093
17094
|
/* @__PURE__ */ t.jsx("p", { className: "m-0", children: "Do you want to force delete?" })
|
17094
17095
|
] });
|
17095
17096
|
return /* @__PURE__ */ t.jsx(
|
17096
|
-
|
17097
|
+
Ws,
|
17097
17098
|
{
|
17098
17099
|
variant: Yt.delete,
|
17099
17100
|
title: e,
|
@@ -17131,7 +17132,7 @@ const Sv = (e) => {
|
|
17131
17132
|
const [E, x] = R(!1), [h, g] = R(!1), [f, N] = R(u), [C, A] = R(o), S = async (T) => {
|
17132
17133
|
T && Ne(T), A(!0);
|
17133
17134
|
try {
|
17134
|
-
await i(),
|
17135
|
+
await i(), ke.showToast({
|
17135
17136
|
variant: Se.success,
|
17136
17137
|
description: p || "Successfully deleted"
|
17137
17138
|
}), A(!1), l();
|
@@ -17157,7 +17158,7 @@ const Sv = (e) => {
|
|
17157
17158
|
closeConfirmationModal: I
|
17158
17159
|
}
|
17159
17160
|
), O = () => /* @__PURE__ */ t.jsx(
|
17160
|
-
|
17161
|
+
Ws,
|
17161
17162
|
{
|
17162
17163
|
variant: Yt.delete,
|
17163
17164
|
title: `Delete ${n} '${e}'`,
|
@@ -17215,7 +17216,7 @@ const Sv = (e) => {
|
|
17215
17216
|
async function _() {
|
17216
17217
|
r(!0);
|
17217
17218
|
try {
|
17218
|
-
await p(c.status),
|
17219
|
+
await p(c.status), ke.showToast({
|
17219
17220
|
variant: Se.success,
|
17220
17221
|
description: "Build Aborted"
|
17221
17222
|
}), l({
|
@@ -17262,7 +17263,7 @@ const Sv = (e) => {
|
|
17262
17263
|
] })
|
17263
17264
|
] }),
|
17264
17265
|
o && /* @__PURE__ */ t.jsx(
|
17265
|
-
|
17266
|
+
Ws,
|
17266
17267
|
{
|
17267
17268
|
variant: Yt.warning,
|
17268
17269
|
title: s === De.CD ? `Abort ${e.toLowerCase()}-deployment?` : "Abort build?",
|
@@ -17283,7 +17284,7 @@ const Sv = (e) => {
|
|
17283
17284
|
}
|
17284
17285
|
),
|
17285
17286
|
c.status && /* @__PURE__ */ t.jsxs(
|
17286
|
-
|
17287
|
+
Ws,
|
17287
17288
|
{
|
17288
17289
|
variant: Yt.warning,
|
17289
17290
|
title: "Could not abort build!",
|
@@ -17337,7 +17338,7 @@ const Sv = (e) => {
|
|
17337
17338
|
renderTargetConfigInfo: l,
|
17338
17339
|
stage: d
|
17339
17340
|
}) => {
|
17340
|
-
const { url: u } = Jt(), { pathname: m } =
|
17341
|
+
const { url: u } = Jt(), { pathname: m } = Ls();
|
17341
17342
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 pr-20 flex column left", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__align-items-center py-8 flex-wrap", children: [
|
17342
17343
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4 cn-9 fs-13 fw-6 lh-20", children: [
|
17343
17344
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__no-shrink dc__gap-4", "data-testid": "deployment-history-start-heading", children: [
|
@@ -17362,7 +17363,7 @@ const Sv = (e) => {
|
|
17362
17363
|
/* @__PURE__ */ t.jsx(t.Fragment, { children: o && /* @__PURE__ */ t.jsx(Mi, { imagePath: o, placement: "top" }) })
|
17363
17364
|
) : Object.keys(r ?? {}).length > 0 && a?.map((p) => {
|
17364
17365
|
const _ = r[p.id];
|
17365
|
-
return _ ? /* @__PURE__ */ t.jsxs(
|
17366
|
+
return _ ? /* @__PURE__ */ t.jsxs(Hs, { children: [
|
17366
17367
|
p.type !== "WEBHOOK" && _.Commit && /* @__PURE__ */ t.jsx(
|
17367
17368
|
Bo,
|
17368
17369
|
{
|
@@ -17380,10 +17381,10 @@ const Sv = (e) => {
|
|
17380
17381
|
)
|
17381
17382
|
] }, p.id) : null;
|
17382
17383
|
}),
|
17383
|
-
!m.includes("source-code") && /* @__PURE__ */ t.jsx(
|
17384
|
+
!m.includes("source-code") && /* @__PURE__ */ t.jsx(Os, { to: `${u}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
17384
17385
|
] }) });
|
17385
17386
|
}, Us = () => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsx("div", { className: "dc__border-left--n3 h-100" }) }), Sl = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17386
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
17387
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(qe, { size: 20, name: "ic-success", color: null }) }),
|
17387
17388
|
Us()
|
17388
17389
|
] }), Pv = ht(
|
17389
17390
|
({ 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(
|
@@ -17548,7 +17549,7 @@ const Sv = (e) => {
|
|
17548
17549
|
appName: `${e.helmPackageName}.tgz`,
|
17549
17550
|
workflowId: e.id
|
17550
17551
|
}, L = `app/cd-pipeline/workflow/download/${b}/${j}/${O}/${T}`;
|
17551
|
-
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(
|
17552
|
+
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(Jl, { children: [
|
17552
17553
|
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Bs, { path: `${v}/logs`, children: [
|
17553
17554
|
/* @__PURE__ */ t.jsx(
|
17554
17555
|
ET,
|
@@ -17681,7 +17682,7 @@ const Sv = (e) => {
|
|
17681
17682
|
!!v && !!O
|
17682
17683
|
), V = Ar(T?.targetPlatforms), X = (F, ce, le) => {
|
17683
17684
|
if (le) {
|
17684
|
-
p?.result?.cdWorkflows?.length && n(Um(p.result.cdWorkflows, "id")), u(
|
17685
|
+
p?.result?.cdWorkflows?.length && n(Um(p.result.cdWorkflows, "id")), u(Cs.SUSPEND);
|
17685
17686
|
return;
|
17686
17687
|
}
|
17687
17688
|
if (F === ce?.id) {
|
@@ -17693,10 +17694,10 @@ const Sv = (e) => {
|
|
17693
17694
|
...ee ? { targetConfig: ee } : {},
|
17694
17695
|
...oe ? { userApprovalMetadata: oe } : {}
|
17695
17696
|
};
|
17696
|
-
n((Ee) => (Ee.set(F, { ...ce, ...ve }), new Map(Ee))), d ===
|
17697
|
+
n((Ee) => (Ee.set(F, { ...ce, ...ve }), new Map(Ee))), d === Cs.FETCHING && u(Cs.SUCCESS);
|
17697
17698
|
}
|
17698
17699
|
};
|
17699
|
-
let q = !!d && d !==
|
17700
|
+
let q = !!d && d !== Cs.SUSPEND;
|
17700
17701
|
(w?.result?.artifactId === 0 || T?.artifactId === 0) && (q = !1);
|
17701
17702
|
const [Q, de, Ie] = Kt(
|
17702
17703
|
() => oT({
|
@@ -17726,8 +17727,8 @@ const Sv = (e) => {
|
|
17726
17727
|
X(+v, F, Ie);
|
17727
17728
|
}, [Q, de, Ie]);
|
17728
17729
|
const H = te(() => !T || _b.has(T.podStatus?.toLowerCase() || T.status?.toLowerCase()) ? null : fb.has(T.status?.toLowerCase() || T.podStatus?.toLowerCase()) ? 1e4 : 3e4, [T]);
|
17729
|
-
return km(B, H), !q && j && !T || !v || q && (Q || j) && !T ? /* @__PURE__ */ t.jsx(
|
17730
|
-
|
17730
|
+
return km(B, H), !q && j && !T || !v || q && (Q || j) && !T ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : L?.code === 404 ? /* @__PURE__ */ t.jsx(
|
17731
|
+
Qe,
|
17731
17732
|
{
|
17732
17733
|
title: Ye.TRIGGER_NOT_FOUND.TITLE,
|
17733
17734
|
subTitle: Ye.TRIGGER_NOT_FOUND.SUBTITLE
|
@@ -17953,7 +17954,7 @@ const Sv = (e) => {
|
|
17953
17954
|
MONTH: "Select month",
|
17954
17955
|
DEFAULT_TIME: "12:00 AM",
|
17955
17956
|
DEFAULT_MONTHLY_DATE: "Day 1"
|
17956
|
-
},
|
17957
|
+
}, Gs = {
|
17957
17958
|
DATE: "date_picker",
|
17958
17959
|
MONTH: "month_picker",
|
17959
17960
|
TIME: "time_picker"
|
@@ -18079,11 +18080,11 @@ const Sv = (e) => {
|
|
18079
18080
|
}, SD = ({
|
18080
18081
|
selectedMonthlyDate: e,
|
18081
18082
|
onChange: s,
|
18082
|
-
dataTestId: n =
|
18083
|
+
dataTestId: n = Gs.MONTH
|
18083
18084
|
}) => /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
18084
18085
|
Xt,
|
18085
18086
|
{
|
18086
|
-
inputId:
|
18087
|
+
inputId: Gs.MONTH,
|
18087
18088
|
placeholder: "Day 1",
|
18088
18089
|
options: Yv,
|
18089
18090
|
isSearchable: !1,
|
@@ -18100,7 +18101,7 @@ const Sv = (e) => {
|
|
18100
18101
|
}) => /* @__PURE__ */ t.jsx(
|
18101
18102
|
Xt,
|
18102
18103
|
{
|
18103
|
-
inputId:
|
18104
|
+
inputId: Gs.TIME,
|
18104
18105
|
placeholder: "12:00 AM",
|
18105
18106
|
options: Pa,
|
18106
18107
|
isSearchable: !1,
|
@@ -18109,7 +18110,7 @@ const Sv = (e) => {
|
|
18109
18110
|
value: r,
|
18110
18111
|
icon: /* @__PURE__ */ t.jsx(Zo, { className: "icon-dim-20 fcn-6" }),
|
18111
18112
|
onChange: s,
|
18112
|
-
"data-testid":
|
18113
|
+
"data-testid": Gs.TIME,
|
18113
18114
|
size: P.large,
|
18114
18115
|
error: a
|
18115
18116
|
}
|
@@ -18124,8 +18125,8 @@ const Sv = (e) => {
|
|
18124
18125
|
hideTimeSelect: c = !1,
|
18125
18126
|
readOnly: l = !1,
|
18126
18127
|
isTodayBlocked: d = !1,
|
18127
|
-
dataTestIdForTime: u =
|
18128
|
-
dataTestidForDate: m =
|
18128
|
+
dataTestIdForTime: u = Gs.TIME,
|
18129
|
+
dataTestidForDate: m = Gs.DATE,
|
18129
18130
|
openDirection: p = "down",
|
18130
18131
|
error: _ = ""
|
18131
18132
|
}) => {
|
@@ -18167,7 +18168,7 @@ const Sv = (e) => {
|
|
18167
18168
|
!c && /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
18168
18169
|
Xt,
|
18169
18170
|
{
|
18170
|
-
inputId:
|
18171
|
+
inputId: Gs.TIME,
|
18171
18172
|
placeholder: Gv.DEFAULT_TIME,
|
18172
18173
|
options: Pa,
|
18173
18174
|
icon: /* @__PURE__ */ t.jsx(Zo, { className: "icon-dim-20 fcn-6" }),
|
@@ -18334,7 +18335,7 @@ const Sv = (e) => {
|
|
18334
18335
|
}
|
18335
18336
|
)
|
18336
18337
|
] }) : /* @__PURE__ */ t.jsx(
|
18337
|
-
|
18338
|
+
Qe,
|
18338
18339
|
{
|
18339
18340
|
title: "Data not available",
|
18340
18341
|
subTitle: "The data you are looking for is not available",
|
@@ -18531,7 +18532,7 @@ const RD = {
|
|
18531
18532
|
appId: n,
|
18532
18533
|
size: 20,
|
18533
18534
|
tag: s
|
18534
|
-
}, { result: i } = await ue(
|
18535
|
+
}, { result: i } = await ue(Je(G.PLUGIN_GLOBAL_LIST_V2, o), {
|
18535
18536
|
signal: r
|
18536
18537
|
}), c = Sm(i?.parentPlugins);
|
18537
18538
|
return {
|
@@ -18546,7 +18547,7 @@ const RD = {
|
|
18546
18547
|
try {
|
18547
18548
|
const s = {
|
18548
18549
|
appId: e
|
18549
|
-
}, { result: n } = await ue(
|
18550
|
+
}, { result: n } = await ue(Je(G.PLUGIN_GLOBAL_LIST_TAGS, s));
|
18550
18551
|
if (!n?.tagNames)
|
18551
18552
|
return [];
|
18552
18553
|
const a = new Set(n.tagNames);
|
@@ -18555,7 +18556,7 @@ const RD = {
|
|
18555
18556
|
throw Be(s), s;
|
18556
18557
|
}
|
18557
18558
|
}, OD = async (e) => {
|
18558
|
-
const s = await ue(
|
18559
|
+
const s = await ue(Je(G.PLUGIN_LIST_MIN, e));
|
18559
18560
|
return {
|
18560
18561
|
...s,
|
18561
18562
|
result: (s?.result ?? []).sort((n, a) => at(n.name, a.name))
|
@@ -18751,7 +18752,7 @@ const RD = {
|
|
18751
18752
|
)),
|
18752
18753
|
_ && /* @__PURE__ */ t.jsx(Am, {}),
|
18753
18754
|
n > s.length && !_ && /* @__PURE__ */ t.jsx(zu, { callback: g, hasError: x })
|
18754
|
-
] }) : o || r.length ? /* @__PURE__ */ t.jsx($I, { handleClearFilters: d, imageType: Xs.Large }) : /* @__PURE__ */ t.jsx(
|
18755
|
+
] }) : o || r.length ? /* @__PURE__ */ t.jsx($I, { handleClearFilters: d, imageType: Xs.Large }) : /* @__PURE__ */ t.jsx(Qe, { title: "No plugins found", subTitle: "We are unable to locate any plugin in our system" });
|
18755
18756
|
}, LD = ({
|
18756
18757
|
availableTags: e,
|
18757
18758
|
handleUpdateAvailableTags: s,
|
@@ -18946,7 +18947,7 @@ const RD = {
|
|
18946
18947
|
const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, C] = R(h), [A, S] = R(!1), y = l || c, I = !l && !c || !!N.length, v = !N[0]?.data[g].value && !N[0]?.data[f].value, b = N.length === 1 && v, { sortBy: O, sortOrder: T, handleSorting: j } = iu({
|
18947
18948
|
initialSortKey: n ? g : null
|
18948
18949
|
}), w = Y(), L = Y();
|
18949
|
-
w.current || (w.current = N.reduce((D, M) => ({ ...D, [M.id]:
|
18950
|
+
w.current || (w.current = N.reduce((D, M) => ({ ...D, [M.id]: hs() }), {})), L.current || (L.current = N.reduce((D, M) => ({ ...D, [M.id]: hs() }), {}));
|
18950
18951
|
const B = te(
|
18951
18952
|
() => N.reduce(
|
18952
18953
|
(D, M) => {
|
@@ -19002,10 +19003,10 @@ const RD = {
|
|
19002
19003
|
const D = q(), M = [D, ...N], { id: $ } = D;
|
19003
19004
|
p?.(!X(M)), S(!0), C(M), w.current = {
|
19004
19005
|
...w.current || {},
|
19005
|
-
[$]:
|
19006
|
+
[$]: hs()
|
19006
19007
|
}, L.current = {
|
19007
19008
|
...L.current || {},
|
19008
|
-
[$]:
|
19009
|
+
[$]: hs()
|
19009
19010
|
};
|
19010
19011
|
};
|
19011
19012
|
k(() => {
|
@@ -19030,9 +19031,9 @@ const RD = {
|
|
19030
19031
|
if (M.length === 0 && !c) {
|
19031
19032
|
const $ = q(), { id: ee } = $;
|
19032
19033
|
S(!0), p?.(!X([$])), C([$]), w.current = {
|
19033
|
-
[ee]:
|
19034
|
+
[ee]: hs()
|
19034
19035
|
}, L.current = {
|
19035
|
-
[ee]:
|
19036
|
+
[ee]: hs()
|
19036
19037
|
}, o?.(D.id);
|
19037
19038
|
return;
|
19038
19039
|
}
|
@@ -19129,7 +19130,7 @@ const RD = {
|
|
19129
19130
|
{
|
19130
19131
|
className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${l ? "two-columns" : "three-columns"}`,
|
19131
19132
|
children: N.map((D) => /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__row", children: [
|
19132
|
-
x.map(({ key: M }) => /* @__PURE__ */ t.jsx(
|
19133
|
+
x.map(({ key: M }) => /* @__PURE__ */ t.jsx(Hs, { children: /* @__PURE__ */ t.jsx(mt, { wrap: mA, condition: l, children: /* @__PURE__ */ t.jsx(
|
19133
19134
|
"div",
|
19134
19135
|
{
|
19135
19136
|
className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || D.data[M].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !V(D.data[M].value, M, D.id) ? "key-value-table__cell--error no-hover" : ""}`,
|
@@ -19164,7 +19165,7 @@ const RD = {
|
|
19164
19165
|
onClick: Ie(D),
|
19165
19166
|
disabled: b,
|
19166
19167
|
children: /* @__PURE__ */ t.jsx(
|
19167
|
-
|
19168
|
+
us,
|
19168
19169
|
{
|
19169
19170
|
"aria-label": "delete-row",
|
19170
19171
|
className: "icon-dim-16 fcn-4 dc__align-self-start"
|
@@ -19204,7 +19205,7 @@ const RD = {
|
|
19204
19205
|
showError: s,
|
19205
19206
|
showWarning: n,
|
19206
19207
|
className: a
|
19207
|
-
}) => s ? /* @__PURE__ */ t.jsx(
|
19208
|
+
}) => s ? /* @__PURE__ */ t.jsx(ds, { className: a }) : n ? /* @__PURE__ */ t.jsx(Zn, { className: `${a} warning-icon-y7` }) : e ? /* @__PURE__ */ t.jsx(e, { className: `${a} tab-group__tab__icon` }) : null, hA = (e, s) => e !== null && /* @__PURE__ */ t.jsx("div", { className: `tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${s}`, children: e }), gA = (e) => e && /* @__PURE__ */ t.jsx("span", { className: "tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" }), xA = (e) => e && /* @__PURE__ */ t.jsx("ul", { className: "tab-group__tab__description m-0 p-0 fs-12 lh-16 fw-4 cn-7 flexbox dc__align-items-center dc__gap-4", children: Array.isArray(e) ? e.map((s, n) => /* @__PURE__ */ t.jsxs("li", { className: "flex dc__gap-4", children: [
|
19208
19209
|
!!n && /* @__PURE__ */ t.jsx("span", { className: "dc__bullet" }),
|
19209
19210
|
s
|
19210
19211
|
] }, s)) : e }), EA = ({
|
@@ -19243,7 +19244,7 @@ const RD = {
|
|
19243
19244
|
switch (n) {
|
19244
19245
|
case "link":
|
19245
19246
|
return /* @__PURE__ */ t.jsx(
|
19246
|
-
|
19247
|
+
Os,
|
19247
19248
|
{
|
19248
19249
|
className: `${h} dc__no-decor flexbox-col ${p ? "cursor-not-allowed" : ""}`,
|
19249
19250
|
"aria-disabled": p,
|
@@ -19355,14 +19356,14 @@ const RD = {
|
|
19355
19356
|
x(""), n(lu(b, !1).message);
|
19356
19357
|
}, S = async () => {
|
19357
19358
|
if (!a) {
|
19358
|
-
x(Al),
|
19359
|
+
x(Al), ke.showToast({
|
19359
19360
|
variant: Se.error,
|
19360
19361
|
description: Al
|
19361
19362
|
});
|
19362
19363
|
return;
|
19363
19364
|
}
|
19364
19365
|
if (s) {
|
19365
|
-
|
19366
|
+
ke.showToast({
|
19366
19367
|
variant: Se.error,
|
19367
19368
|
description: s
|
19368
19369
|
});
|
@@ -19753,7 +19754,7 @@ const Il = ({
|
|
19753
19754
|
let v = { isValid: !0, messages: [] };
|
19754
19755
|
return o === ss.KEY ? (m || s.value) && (v = x.propagateTagKey(m)) : (r || m || s.propagate) && (v = x.propagateTagValue(m, s.key)), v.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Ne, "data-testid": "tag-label-cross-stop-propagation", children: [
|
19755
19756
|
v.messages.map((b) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
19756
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
19757
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
19757
19758
|
/* @__PURE__ */ t.jsx("span", { children: b })
|
19758
19759
|
] }, b)),
|
19759
19760
|
o === ss.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -19881,7 +19882,7 @@ const Il = ({
|
|
19881
19882
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
19882
19883
|
onClick: u,
|
19883
19884
|
"data-testid": `delete-tag-${e}`,
|
19884
|
-
children: /* @__PURE__ */ t.jsx(
|
19885
|
+
children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-20 mt-4" })
|
19885
19886
|
}
|
19886
19887
|
)
|
19887
19888
|
] });
|
@@ -19925,7 +19926,7 @@ const wA = (e) => {
|
|
19925
19926
|
dataTestId: "file-upload-remove-file-button",
|
19926
19927
|
ariaLabel: "Remove File",
|
19927
19928
|
showAriaLabelInTippy: !1,
|
19928
|
-
icon: /* @__PURE__ */ t.jsx(
|
19929
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
19929
19930
|
onClick: c,
|
19930
19931
|
variant: he.borderLess,
|
19931
19932
|
style: be.negativeGrey,
|
@@ -19974,14 +19975,14 @@ const wA = (e) => {
|
|
19974
19975
|
f.current || (f.current = e.reduce(
|
19975
19976
|
(T, j) => ({
|
19976
19977
|
...T,
|
19977
|
-
[j.id]: s.reduce((w, { key: L }) => ({ ...w, [L]:
|
19978
|
+
[j.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: hs() }), {})
|
19978
19979
|
}),
|
19979
19980
|
{}
|
19980
19981
|
));
|
19981
19982
|
const N = te(() => e.map(({ id: T }) => T), [e]);
|
19982
19983
|
k(() => {
|
19983
19984
|
g(e.length > 0 && Object.keys(f.current).length < e.length);
|
19984
|
-
const T = N.reduce((j, w) => (f.current[w] ? j[w] = f.current[w] : j[w] = s.reduce((L, { key: B }) => ({ ...L, [B]:
|
19985
|
+
const T = N.reduce((j, w) => (f.current[w] ? j[w] = f.current[w] : j[w] = s.reduce((L, { key: B }) => ({ ...L, [B]: hs() }), {}), j), {});
|
19985
19986
|
f.current = T;
|
19986
19987
|
}, [JSON.stringify(N)]), k(() => {
|
19987
19988
|
if (h) {
|
@@ -20018,7 +20019,7 @@ const wA = (e) => {
|
|
20018
20019
|
...T.data[j].props,
|
20019
20020
|
inputId: `data-table-${T.id}-${j}-cell`,
|
20020
20021
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
20021
|
-
variant:
|
20022
|
+
variant: Rs.BORDER_LESS,
|
20022
20023
|
value: _n(
|
20023
20024
|
T.data[j].props?.options,
|
20024
20025
|
T.data[j].value,
|
@@ -20037,7 +20038,7 @@ const wA = (e) => {
|
|
20037
20038
|
isCreatable: V,
|
20038
20039
|
isClearable: !0,
|
20039
20040
|
...B,
|
20040
|
-
variant:
|
20041
|
+
variant: Rs.BORDER_LESS,
|
20041
20042
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
20042
20043
|
inputId: `data-table-${T.id}-${j}-cell`,
|
20043
20044
|
minHeight: 20,
|
@@ -20179,7 +20180,7 @@ const wA = (e) => {
|
|
20179
20180
|
gridTemplateColumns: x
|
20180
20181
|
},
|
20181
20182
|
children: e.map((T) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
20182
|
-
s.map(({ key: j }, w) => /* @__PURE__ */ t.jsx(
|
20183
|
+
s.map(({ key: j }, w) => /* @__PURE__ */ t.jsx(Hs, { children: O(T, j, w) }, j)),
|
20183
20184
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
20184
20185
|
re,
|
20185
20186
|
{
|
@@ -20249,7 +20250,7 @@ const wA = (e) => {
|
|
20249
20250
|
setTagErrors: c
|
20250
20251
|
}) => {
|
20251
20252
|
const l = (_) => {
|
20252
|
-
|
20253
|
+
vs.event({
|
20253
20254
|
category: "Tags",
|
20254
20255
|
action: `${e.toUpperCase()}_PROPAGATE_TAG_BUTTON_CLICKED`
|
20255
20256
|
});
|
@@ -20274,7 +20275,7 @@ const wA = (e) => {
|
|
20274
20275
|
}
|
20275
20276
|
) });
|
20276
20277
|
}, u = () => {
|
20277
|
-
|
20278
|
+
vs.event({
|
20278
20279
|
category: "Tags",
|
20279
20280
|
action: `${e.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`
|
20280
20281
|
});
|
@@ -20475,7 +20476,7 @@ const wA = (e) => {
|
|
20475
20476
|
skipValidation: r = !1,
|
20476
20477
|
fallbackMergeStrategy: o
|
20477
20478
|
}) => {
|
20478
|
-
const i = a ===
|
20479
|
+
const i = a === Is.Secret, {
|
20479
20480
|
name: c,
|
20480
20481
|
external: l,
|
20481
20482
|
externalType: d,
|
@@ -20756,7 +20757,7 @@ const wA = (e) => {
|
|
20756
20757
|
fallbackMergeStrategy: o,
|
20757
20758
|
displayKeys: l
|
20758
20759
|
});
|
20759
|
-
return r ? /* @__PURE__ */ t.jsx(
|
20760
|
+
return r ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(
|
20760
20761
|
"div",
|
20761
20762
|
{
|
20762
20763
|
className: c || `bg__primary flexbox-col dc__gap-12 dc__overflow-auto ${i ? "" : "p-16"}`,
|
@@ -20957,7 +20958,7 @@ const wA = (e) => {
|
|
20957
20958
|
esoSecretYaml: QA(d)
|
20958
20959
|
} : {}
|
20959
20960
|
};
|
20960
|
-
},
|
20961
|
+
}, _s = {
|
20961
20962
|
width: 356,
|
20962
20963
|
height: 504
|
20963
20964
|
}, jm = "No Defined Description", eI = "No Defined Value", tI = "What is scoped variable?", sI = ({
|
@@ -20988,13 +20989,13 @@ const wA = (e) => {
|
|
20988
20989
|
"p",
|
20989
20990
|
{
|
20990
20991
|
className: "m-0 fs-12 fw-4 lh-18 dc__word-break-all",
|
20991
|
-
dangerouslySetInnerHTML: { __html:
|
20992
|
+
dangerouslySetInnerHTML: { __html: As.sanitize(m(s)) }
|
20992
20993
|
}
|
20993
20994
|
), _ = () => /* @__PURE__ */ t.jsx(
|
20994
20995
|
"p",
|
20995
20996
|
{
|
20996
20997
|
className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
|
20997
|
-
dangerouslySetInnerHTML: { __html:
|
20998
|
+
dangerouslySetInnerHTML: { __html: As.sanitize(m(e)) }
|
20998
20999
|
}
|
20999
21000
|
), E = (x) => /* @__PURE__ */ t.jsx(
|
21000
21001
|
ie,
|
@@ -21052,14 +21053,14 @@ const wA = (e) => {
|
|
21052
21053
|
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-16 fcv-5" }) }),
|
21053
21054
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: tI })
|
21054
21055
|
] }),
|
21055
|
-
/* @__PURE__ */ t.jsx(
|
21056
|
+
/* @__PURE__ */ t.jsx(Ss, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
21056
21057
|
]
|
21057
21058
|
}
|
21058
21059
|
),
|
21059
21060
|
e && /* @__PURE__ */ t.jsx("div", { className: "flex pl-24 dc__gap-4 flex-wrap dc__content-center", children: /* @__PURE__ */ t.jsxs("p", { className: "m-0 fs-13 fw-4 lh-20 cn-9", children: [
|
21060
21061
|
"Use a scoped variable for dynamic values, which are defined in the ",
|
21061
21062
|
/* @__PURE__ */ t.jsx(
|
21062
|
-
|
21063
|
+
Os,
|
21063
21064
|
{
|
21064
21065
|
className: "cb-5 m-0",
|
21065
21066
|
to: Oe.GLOBAL_CONFIG_SCOPED_VARIABLES,
|
@@ -21112,7 +21113,7 @@ const wA = (e) => {
|
|
21112
21113
|
/* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
|
21113
21114
|
re,
|
21114
21115
|
{
|
21115
|
-
icon: /* @__PURE__ */ t.jsx(
|
21116
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
21116
21117
|
ariaLabel: "Close suggestions",
|
21117
21118
|
showAriaLabelInTippy: !1,
|
21118
21119
|
dataTestId: "deactivate-suggestions",
|
@@ -21157,7 +21158,7 @@ const wA = (e) => {
|
|
21157
21158
|
},
|
21158
21159
|
N.variableName
|
21159
21160
|
)) : /* @__PURE__ */ t.jsx(
|
21160
|
-
|
21161
|
+
Qe,
|
21161
21162
|
{
|
21162
21163
|
title: "No matching variable found",
|
21163
21164
|
isButtonAvailable: !0,
|
@@ -21167,8 +21168,8 @@ const wA = (e) => {
|
|
21167
21168
|
}
|
21168
21169
|
) }),
|
21169
21170
|
/* @__PURE__ */ t.jsx(Rl, {})
|
21170
|
-
] }), 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(
|
21171
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(
|
21171
|
+
] }), 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: [
|
21172
|
+
/* @__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: xd }) }),
|
21172
21173
|
/* @__PURE__ */ t.jsx(Rl, {})
|
21173
21174
|
] }) : p ? g() : /* @__PURE__ */ t.jsx(Jn, { reload: a, className: "bg__primary pb-16" });
|
21174
21175
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -21234,15 +21235,15 @@ const wA = (e) => {
|
|
21234
21235
|
p({
|
21235
21236
|
x: d.x,
|
21236
21237
|
y: d.y
|
21237
|
-
}), I.y > g.height -
|
21238
|
+
}), I.y > g.height - _s.height && p({
|
21238
21239
|
x: d.x,
|
21239
|
-
y: g.height -
|
21240
|
-
}), I.x > g.width -
|
21241
|
-
x: g.width -
|
21240
|
+
y: g.height - _s.height - N.y
|
21241
|
+
}), I.x > g.width - _s.width && p({
|
21242
|
+
x: g.width - _s.width - N.x,
|
21242
21243
|
y: d.y
|
21243
|
-
}), I.x > g.width -
|
21244
|
-
x: g.width -
|
21245
|
-
y: g.height -
|
21244
|
+
}), I.x > g.width - _s.width && I.y > g.height - _s.height && p({
|
21245
|
+
x: g.width - _s.width - N.x,
|
21246
|
+
y: g.height - _s.height - N.y
|
21246
21247
|
}), l(!0);
|
21247
21248
|
}, A = ze((I) => {
|
21248
21249
|
I.stopPropagation(), l(!1);
|
@@ -21666,7 +21667,7 @@ const mI = ({
|
|
21666
21667
|
}), v();
|
21667
21668
|
}
|
21668
21669
|
});
|
21669
|
-
await lI(b, !0),
|
21670
|
+
await lI(b, !0), ke.showToast({
|
21670
21671
|
variant: Se.info,
|
21671
21672
|
description: "Action completed"
|
21672
21673
|
}), r && g();
|
@@ -21684,7 +21685,7 @@ const mI = ({
|
|
21684
21685
|
}, A = () => {
|
21685
21686
|
x.current.abort();
|
21686
21687
|
}, S = () => /* @__PURE__ */ t.jsx(
|
21687
|
-
|
21688
|
+
Ws,
|
21688
21689
|
{
|
21689
21690
|
...c,
|
21690
21691
|
handleClose: g,
|
@@ -21761,7 +21762,7 @@ const mI = ({
|
|
21761
21762
|
DEFAULT: "Build Container Image",
|
21762
21763
|
RECIEVE: "Receive Container Image",
|
21763
21764
|
JOB: "Create job pipeline"
|
21764
|
-
},
|
21765
|
+
}, Me = {
|
21765
21766
|
SOURCE_CODE: {
|
21766
21767
|
title: "Build and Deploy from Source Code",
|
21767
21768
|
subtitle: "Build container image from a Git repo and deploy to an environment.",
|
@@ -21833,15 +21834,15 @@ const mI = ({
|
|
21833
21834
|
if (o && i) {
|
21834
21835
|
const N = i.find((S) => +S.id === o?.appWorkflowId);
|
21835
21836
|
if (!N) {
|
21836
|
-
x(),
|
21837
|
+
x(), ke.showToast({
|
21837
21838
|
variant: Se.error,
|
21838
21839
|
description: wl.WORKFLOW_NOT_AVAILABLE
|
21839
21840
|
});
|
21840
21841
|
return;
|
21841
21842
|
}
|
21842
|
-
const C = N.nodes.find((S) => S.type ===
|
21843
|
-
if (N.nodes.some((S) => S.type ===
|
21844
|
-
p(
|
21843
|
+
const C = N.nodes.find((S) => S.type === Es.CI);
|
21844
|
+
if (N.nodes.some((S) => S.type === Es.WEBHOOK)) {
|
21845
|
+
p(Es.WEBHOOK);
|
21845
21846
|
return;
|
21846
21847
|
}
|
21847
21848
|
if (C?.isJobCI) {
|
@@ -21864,9 +21865,9 @@ const mI = ({
|
|
21864
21865
|
}
|
21865
21866
|
}, [i, o]);
|
21866
21867
|
const h = () => {
|
21867
|
-
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type ===
|
21868
|
+
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === Es.CD)) {
|
21868
21869
|
E(!0), BN(hI(o)).then((A) => {
|
21869
|
-
A.result && (
|
21870
|
+
A.result && (ke.showToast({
|
21870
21871
|
variant: Se.success,
|
21871
21872
|
description: wl.SUCCESS_CHANGE_TO_WEBHOOK
|
21872
21873
|
}), c(), x());
|
@@ -21923,12 +21924,12 @@ const mI = ({
|
|
21923
21924
|
/* @__PURE__ */ t.jsx(
|
21924
21925
|
Rn,
|
21925
21926
|
{
|
21926
|
-
title:
|
21927
|
-
subtitle:
|
21928
|
-
image:
|
21929
|
-
alt:
|
21930
|
-
dataTestId:
|
21931
|
-
type:
|
21927
|
+
title: Me.SOURCE_CODE.title,
|
21928
|
+
subtitle: Me.SOURCE_CODE.subtitle,
|
21929
|
+
image: Me.SOURCE_CODE.image,
|
21930
|
+
alt: Me.SOURCE_CODE.alt,
|
21931
|
+
dataTestId: Me.SOURCE_CODE.dataTestId,
|
21932
|
+
type: Me.SOURCE_CODE.type,
|
21932
21933
|
handleCardAction: g,
|
21933
21934
|
disableInfo: f(Ct.CI)
|
21934
21935
|
}
|
@@ -21936,12 +21937,12 @@ const mI = ({
|
|
21936
21937
|
/* @__PURE__ */ t.jsx(
|
21937
21938
|
Rn,
|
21938
21939
|
{
|
21939
|
-
title:
|
21940
|
-
subtitle:
|
21941
|
-
image:
|
21942
|
-
alt:
|
21943
|
-
dataTestId:
|
21944
|
-
type:
|
21940
|
+
title: Me.LINKED_PIPELINE.title,
|
21941
|
+
subtitle: Me.LINKED_PIPELINE.subtitle,
|
21942
|
+
image: Me.LINKED_PIPELINE.image,
|
21943
|
+
alt: Me.LINKED_PIPELINE.alt,
|
21944
|
+
dataTestId: Me.LINKED_PIPELINE.dataTestId,
|
21945
|
+
type: Me.LINKED_PIPELINE.type,
|
21945
21946
|
handleCardAction: g,
|
21946
21947
|
disableInfo: f(Ct.LINKED_CI),
|
21947
21948
|
isDisabled: u
|
@@ -21953,14 +21954,14 @@ const mI = ({
|
|
21953
21954
|
/* @__PURE__ */ t.jsx(
|
21954
21955
|
Rn,
|
21955
21956
|
{
|
21956
|
-
title:
|
21957
|
-
subtitle:
|
21958
|
-
image:
|
21959
|
-
alt:
|
21960
|
-
dataTestId:
|
21961
|
-
type:
|
21957
|
+
title: Me.EXTERNAL_SERVICE.title,
|
21958
|
+
subtitle: Me.EXTERNAL_SERVICE.subtitle,
|
21959
|
+
image: Me.EXTERNAL_SERVICE.image,
|
21960
|
+
alt: Me.EXTERNAL_SERVICE.alt,
|
21961
|
+
dataTestId: Me.EXTERNAL_SERVICE.dataTestId,
|
21962
|
+
type: Me.EXTERNAL_SERVICE.type,
|
21962
21963
|
handleCardAction: g,
|
21963
|
-
disableInfo: f(
|
21964
|
+
disableInfo: f(Es.WEBHOOK),
|
21964
21965
|
isDisabled: u
|
21965
21966
|
}
|
21966
21967
|
),
|
@@ -21983,12 +21984,12 @@ const mI = ({
|
|
21983
21984
|
/* @__PURE__ */ t.jsx(
|
21984
21985
|
Rn,
|
21985
21986
|
{
|
21986
|
-
title:
|
21987
|
-
subtitle:
|
21988
|
-
image:
|
21989
|
-
alt:
|
21990
|
-
dataTestId:
|
21991
|
-
type:
|
21987
|
+
title: Me.JOB.title,
|
21988
|
+
subtitle: Me.JOB.subtitle,
|
21989
|
+
image: Me.JOB.image,
|
21990
|
+
alt: Me.JOB.alt,
|
21991
|
+
dataTestId: Me.JOB.dataTestId,
|
21992
|
+
type: Me.JOB.type,
|
21992
21993
|
handleCardAction: g,
|
21993
21994
|
disableInfo: f(Ct.JOB_CI),
|
21994
21995
|
isDisabled: u
|
@@ -22047,7 +22048,7 @@ const mI = ({
|
|
22047
22048
|
/* @__PURE__ */ t.jsx(xn, { className: "icon-dim-20 dc__no-shrink" }),
|
22048
22049
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-4 lh-20", children: "Unsaved changes" })
|
22049
22050
|
] }), zD = ({ handleClose: e, handleProceed: s }) => /* @__PURE__ */ t.jsx(
|
22050
|
-
|
22051
|
+
Ws,
|
22051
22052
|
{
|
22052
22053
|
handleClose: e,
|
22053
22054
|
variant: Yt.warning,
|
@@ -22072,18 +22073,20 @@ const mI = ({
|
|
22072
22073
|
[pt.BITBUCKET]: "ic-bitbucket",
|
22073
22074
|
[pt.GITEA]: "ic-git",
|
22074
22075
|
[pt.AZURE]: "ic-azure"
|
22075
|
-
}, qD = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22076
|
+
}, qD = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: gI[e] || "ic-git", size: s, color: null }), xI = {
|
22076
22077
|
error: "bcr-1 er-2",
|
22077
22078
|
help: "bcv-1 ev-2",
|
22078
22079
|
information: "bcb-1 eb-2",
|
22079
22080
|
success: "bcg-1 eg-2",
|
22080
|
-
warning: "bcy-1 ey-2"
|
22081
|
+
warning: "bcy-1 ey-2",
|
22082
|
+
neutral: "bcn-1 en-2"
|
22081
22083
|
}, EI = {
|
22082
22084
|
error: /* @__PURE__ */ t.jsx(Nr, {}),
|
22083
22085
|
help: /* @__PURE__ */ t.jsx(gn, { className: "fcv-5" }),
|
22084
|
-
information: /* @__PURE__ */ t.jsx(
|
22086
|
+
information: /* @__PURE__ */ t.jsx(qe, { name: "ic-info-filled", color: "B500" }),
|
22085
22087
|
success: /* @__PURE__ */ t.jsx(ai, {}),
|
22086
|
-
warning: /* @__PURE__ */ t.jsx(xn, {})
|
22088
|
+
warning: /* @__PURE__ */ t.jsx(xn, {}),
|
22089
|
+
neutral: /* @__PURE__ */ t.jsx(qe, { name: "ic-info-filled", color: null })
|
22087
22090
|
}, NI = {
|
22088
22091
|
[P.large]: "px-12",
|
22089
22092
|
[P.medium]: "px-8"
|
@@ -22137,28 +22140,28 @@ const mI = ({
|
|
22137
22140
|
r && /* @__PURE__ */ t.jsx(re, { ...r, size: Ml[n] })
|
22138
22141
|
] }) : null;
|
22139
22142
|
}, bI = {
|
22140
|
-
[
|
22141
|
-
[
|
22142
|
-
[
|
22143
|
-
[
|
22144
|
-
[
|
22145
|
-
[
|
22146
|
-
[
|
22147
|
-
}, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22143
|
+
[fs.google]: "ic-google",
|
22144
|
+
[fs.github]: "ic-github",
|
22145
|
+
[fs.gitlab]: "ic-gitlab",
|
22146
|
+
[fs.ldap]: "ic-ldap",
|
22147
|
+
[fs.microsoft]: "ic-microsoft",
|
22148
|
+
[fs.oidc]: "ic-oidc",
|
22149
|
+
[fs.openshift]: "ic-openshift"
|
22150
|
+
}, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(qe, { name: bI[e], size: s, color: null });
|
22148
22151
|
function Be(e, s = !0, n = !1) {
|
22149
22152
|
e instanceof Pt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
|
22150
22153
|
const o = a?.toLowerCase();
|
22151
|
-
e.code === 403 && (o === Ke.UNAUTHORIZED.toLowerCase() || o === Ke.FORBIDDEN.toLowerCase()) ? n ||
|
22154
|
+
e.code === 403 && (o === Ke.UNAUTHORIZED.toLowerCase() || o === Ke.FORBIDDEN.toLowerCase()) ? n || ke.showToast({
|
22152
22155
|
variant: Se.notAuthorized,
|
22153
22156
|
description: pg.SUBTITLE
|
22154
|
-
}) :
|
22157
|
+
}) : ke.showToast({
|
22155
22158
|
variant: Se.error,
|
22156
22159
|
description: a || r
|
22157
22160
|
});
|
22158
|
-
}) : (e.code !== 403 && e.code !== 408 && !qt(e) && ql(e), s && (e.message ?
|
22161
|
+
}) : (e.code !== 403 && e.code !== 408 && !qt(e) && ql(e), s && (e.message ? ke.showToast({
|
22159
22162
|
variant: Se.error,
|
22160
22163
|
description: e.message
|
22161
|
-
}) :
|
22164
|
+
}) : ke.showToast({
|
22162
22165
|
variant: Se.error,
|
22163
22166
|
description: "Some Error Occurred"
|
22164
22167
|
})));
|
@@ -22251,7 +22254,7 @@ function mr(e, s = !1) {
|
|
22251
22254
|
}
|
22252
22255
|
const tP = (e, s = "-") => e ? `${Pe(e).utc().format(yt.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
|
22253
22256
|
function sP() {
|
22254
|
-
const e =
|
22257
|
+
const e = Ls(), s = te(() => new URLSearchParams(e.search), [e]), n = Array.from(s.entries()).reduce((a, r, o) => (a[r[0]] = r[1], a), {});
|
22255
22258
|
return { queryParams: s, searchParams: n };
|
22256
22259
|
}
|
22257
22260
|
const nP = (e, s) => {
|
@@ -22320,7 +22323,7 @@ function wm(e) {
|
|
22320
22323
|
window.isSecureContext && navigator.clipboard ? navigator.clipboard.writeText(e).then(() => {
|
22321
22324
|
s();
|
22322
22325
|
}).catch(() => {
|
22323
|
-
|
22326
|
+
ke.showToast({
|
22324
22327
|
variant: Se.error,
|
22325
22328
|
description: "Failed to copy to clipboard"
|
22326
22329
|
}), n();
|
@@ -22376,7 +22379,7 @@ function Kt(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
22376
22379
|
};
|
22377
22380
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
22378
22381
|
}
|
22379
|
-
const aP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed",
|
22382
|
+
const aP = (e, s) => e ? mr(e, !0) : s ? "" : "Not deployed", Je = (e, s = {}) => {
|
22380
22383
|
const n = new URLSearchParams();
|
22381
22384
|
Object.keys(s).forEach((r) => {
|
22382
22385
|
Ld.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -22570,7 +22573,7 @@ function hP() {
|
|
22570
22573
|
};
|
22571
22574
|
return e;
|
22572
22575
|
}
|
22573
|
-
const OI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
22576
|
+
const OI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Ss, { className: "icon-dim-20 icon-n6" }) });
|
22574
22577
|
function Um(e, s) {
|
22575
22578
|
return Array.isArray(e) ? e.reduce((n, a) => n.set(a[s], a), /* @__PURE__ */ new Map()) : (console.error(e, "is not array"), /* @__PURE__ */ new Map());
|
22576
22579
|
}
|
@@ -22583,7 +22586,7 @@ const xP = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, LI = (e, s = 300) => {
|
|
22583
22586
|
const r = Date.now();
|
22584
22587
|
r - n >= s && (n = r, e(...a));
|
22585
22588
|
};
|
22586
|
-
}, wI = (e, s, n) => e === Gt.WEBHOOK ? n === Yn.PULL_REQUEST ? /* @__PURE__ */ t.jsx(ti, { className: "scn-6" }) : n === Yn.TAG_CREATION ? /* @__PURE__ */ t.jsx(hr, { className: "scn-6" }) : /* @__PURE__ */ t.jsx(jd, {}) : e === Gt.BranchRegex || s ? /* @__PURE__ */ t.jsx(Td, { className: "fcn-6" }) : /* @__PURE__ */ t.jsx(cd, { className: "fcn-6" }), Bm = (e) =>
|
22589
|
+
}, wI = (e, s, n) => e === Gt.WEBHOOK ? n === Yn.PULL_REQUEST ? /* @__PURE__ */ t.jsx(ti, { className: "scn-6" }) : n === Yn.TAG_CREATION ? /* @__PURE__ */ t.jsx(hr, { className: "scn-6" }) : /* @__PURE__ */ t.jsx(jd, {}) : e === Gt.BranchRegex || s ? /* @__PURE__ */ t.jsx(Td, { className: "fcn-6" }) : /* @__PURE__ */ t.jsx(cd, { className: "fcn-6" }), Bm = (e) => As.sanitize(e, {
|
22587
22590
|
ADD_TAGS: ["iframe"],
|
22588
22591
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
22589
22592
|
}), EP = (e, s) => {
|
@@ -22627,7 +22630,7 @@ function Jn({ reload: e, className: s = "", heightToDeduct: n = 0 }) {
|
|
22627
22630
|
);
|
22628
22631
|
}
|
22629
22632
|
const DI = ({ subtitle: e, title: s }) => /* @__PURE__ */ t.jsx(
|
22630
|
-
|
22633
|
+
Qe,
|
22631
22634
|
{
|
22632
22635
|
image: go,
|
22633
22636
|
title: s ?? Ke.NOT_AUTHORIZED,
|
@@ -22647,10 +22650,10 @@ class Cn extends Ce.Component {
|
|
22647
22650
|
(n.keyCode === 27 || n.key === "Escape") && (Ne(n), this.props.onEscape ? this.props.onEscape(n) : this.props.close && this.props.close(n));
|
22648
22651
|
}
|
22649
22652
|
componentDidMount() {
|
22650
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"),
|
22653
|
+
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"), js(!0), this.props.parentClassName && this.modalRef.classList.add(this.props.parentClassName);
|
22651
22654
|
}
|
22652
22655
|
componentWillUnmount() {
|
22653
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"),
|
22656
|
+
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"), js(!1), this.props.parentClassName && this.modalRef.classList.remove(this.props.parentClassName);
|
22654
22657
|
}
|
22655
22658
|
render() {
|
22656
22659
|
return ni.createPortal(
|
@@ -22680,8 +22683,8 @@ const $m = ({
|
|
22680
22683
|
disableTransition: d
|
22681
22684
|
}) => {
|
22682
22685
|
const u = Y(null);
|
22683
|
-
k(() => (setTimeout(() => u.current?.classList?.add("show"), 1),
|
22684
|
-
u.current?.classList?.remove("show"),
|
22686
|
+
k(() => (setTimeout(() => u.current?.classList?.add("show"), 1), js(!0), () => {
|
22687
|
+
u.current?.classList?.remove("show"), js(!1);
|
22685
22688
|
}), []);
|
22686
22689
|
const m = {};
|
22687
22690
|
return (s === "left" || s === "right") && (m["--width"] = a, m["--minWidth"] = r, m["--maxWidth"] = o), (s === "top" || s === "bottom") && (m["--height"] = n), /* @__PURE__ */ t.jsx(Cn, { className: "drawer--container", parentClassName: i || "", onEscape: c, close: l, children: /* @__PURE__ */ t.jsx("aside", { style: m, ref: u, className: `drawer ${d ? "disable-transition" : ""} ${s}`, children: e }) });
|
@@ -22699,10 +22702,10 @@ class Fm extends Ce.Component {
|
|
22699
22702
|
Ne(n), n.keyCode === 27 && this.props.close && this.props.close(n);
|
22700
22703
|
}
|
22701
22704
|
componentDidMount() {
|
22702
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"),
|
22705
|
+
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"), js(!0);
|
22703
22706
|
}
|
22704
22707
|
componentWillUnmount() {
|
22705
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"),
|
22708
|
+
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"), js(!1);
|
22706
22709
|
}
|
22707
22710
|
render() {
|
22708
22711
|
return ni.createPortal(
|
@@ -22784,7 +22787,7 @@ const Gm = ({
|
|
22784
22787
|
{
|
22785
22788
|
condition: !!o.to,
|
22786
22789
|
wrap: (c) => /* @__PURE__ */ t.jsx(
|
22787
|
-
|
22790
|
+
Os,
|
22788
22791
|
{
|
22789
22792
|
className: `${a === o.to ? "active" : ""} ${n} ${o.className || ""}`,
|
22790
22793
|
to: o.to,
|
@@ -22886,7 +22889,7 @@ class yP extends fr {
|
|
22886
22889
|
}
|
22887
22890
|
class RP extends fr {
|
22888
22891
|
render() {
|
22889
|
-
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(
|
22892
|
+
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 }) });
|
22890
22893
|
}
|
22891
22894
|
}
|
22892
22895
|
const $i = ({
|
@@ -22906,7 +22909,7 @@ const $i = ({
|
|
22906
22909
|
textConfig: _
|
22907
22910
|
}) => {
|
22908
22911
|
const E = () => i ? c ? u ? /* @__PURE__ */ t.jsx(
|
22909
|
-
|
22912
|
+
Os,
|
22910
22913
|
{
|
22911
22914
|
to: c,
|
22912
22915
|
onClick: l,
|
@@ -22985,7 +22988,7 @@ const $i = ({
|
|
22985
22988
|
}
|
22986
22989
|
);
|
22987
22990
|
return /* @__PURE__ */ t.jsx(
|
22988
|
-
|
22991
|
+
Qe,
|
22989
22992
|
{
|
22990
22993
|
image: mf,
|
22991
22994
|
title: "No results",
|
@@ -23063,7 +23066,7 @@ const $i = ({
|
|
23063
23066
|
u && /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
23064
23067
|
re,
|
23065
23068
|
{
|
23066
|
-
icon: /* @__PURE__ */ t.jsx(
|
23069
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
23067
23070
|
size: P.xs,
|
23068
23071
|
variant: he.borderLess,
|
23069
23072
|
style: be.negativeGrey,
|
@@ -23182,28 +23185,28 @@ const Wm = ({
|
|
23182
23185
|
...Ae[W],
|
23183
23186
|
deleted: !Ae[W].deleted
|
23184
23187
|
};
|
23185
|
-
const _e = Ae[W], Ge = [...L],
|
23186
|
-
|
23188
|
+
const _e = Ae[W], Ge = [...L], tt = Ge.findIndex((Ot) => Ot.tagName === _e.tagName);
|
23189
|
+
tt !== -1 ? Ge.splice(tt, 1) : Ge.push(_e), b(Ae), B(Ge);
|
23187
23190
|
}, oe = (W) => {
|
23188
23191
|
const Ae = v[W], _e = j.filter((Ot) => Ot.tagName !== Ae.tagName);
|
23189
23192
|
w(_e);
|
23190
23193
|
const Ge = [...v];
|
23191
23194
|
Ge.splice(W, 1), b(Ge);
|
23192
|
-
const
|
23193
|
-
if (f(
|
23195
|
+
const tt = g.filter((Ot) => Ot.toLowerCase() !== Ae.tagName.toLowerCase());
|
23196
|
+
if (f(tt), Ae.id !== 0) {
|
23194
23197
|
const Ot = [...V, Ae];
|
23195
23198
|
X(Ot);
|
23196
23199
|
}
|
23197
23200
|
}, ve = (W) => {
|
23198
23201
|
W.forEach(({ userMessage: Ae }) => {
|
23199
|
-
const _e = j.map((
|
23200
|
-
...
|
23202
|
+
const _e = j.map((tt) => Ae?.appReleaseTags?.includes(tt.tagName) ? {
|
23203
|
+
...tt,
|
23201
23204
|
duplicateTag: !0
|
23202
|
-
} :
|
23205
|
+
} : tt);
|
23203
23206
|
w(_e);
|
23204
|
-
const Ge = v.map((
|
23205
|
-
const Ot = _e.find(($r) => $r.tagName ===
|
23206
|
-
return Ot ? { ...
|
23207
|
+
const Ge = v.map((tt) => {
|
23208
|
+
const Ot = _e.find(($r) => $r.tagName === tt.tagName);
|
23209
|
+
return Ot ? { ...tt, duplicateTag: Ot.duplicateTag } : tt;
|
23207
23210
|
});
|
23208
23211
|
b(Ge);
|
23209
23212
|
});
|
@@ -23220,16 +23223,16 @@ const Wm = ({
|
|
23220
23223
|
hardDeleteTags: V
|
23221
23224
|
};
|
23222
23225
|
F(!0), iE(Ae, e ?? 0, s).then((_e) => {
|
23223
|
-
const Ge = _e.result?.imageReleaseTags?.map((
|
23224
|
-
id:
|
23225
|
-
tagName:
|
23226
|
-
deleted:
|
23226
|
+
const Ge = _e.result?.imageReleaseTags?.map((tt) => ({
|
23227
|
+
id: tt.id,
|
23228
|
+
tagName: tt.tagName,
|
23229
|
+
deleted: tt.deleted,
|
23227
23230
|
appId: 0,
|
23228
23231
|
artifactId: 0
|
23229
23232
|
}));
|
23230
23233
|
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), h(_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);
|
23231
23234
|
}).catch((_e) => {
|
23232
|
-
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (
|
23235
|
+
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ke.showToast({
|
23233
23236
|
variant: Se.error,
|
23234
23237
|
description: _e.errors?.[0]?.internalMessage
|
23235
23238
|
}), ve(_e.errors)) : Be(_e);
|
@@ -23325,7 +23328,7 @@ const Wm = ({
|
|
23325
23328
|
W.id
|
23326
23329
|
)) }),
|
23327
23330
|
y && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
23328
|
-
/* @__PURE__ */ t.jsx(
|
23331
|
+
/* @__PURE__ */ t.jsx(qs, { className: "icon-dim-16 mr-2" }),
|
23329
23332
|
"Tags cannot be edited/removed later"
|
23330
23333
|
] }),
|
23331
23334
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -23362,7 +23365,7 @@ const Wm = ({
|
|
23362
23365
|
Ne(W), Br();
|
23363
23366
|
},
|
23364
23367
|
disabled: H,
|
23365
|
-
children: H ? /* @__PURE__ */ t.jsx(
|
23368
|
+
children: H ? /* @__PURE__ */ t.jsx(Ue, {}) : "Save"
|
23366
23369
|
}
|
23367
23370
|
)
|
23368
23371
|
] })
|
@@ -23428,7 +23431,7 @@ const Wm = ({
|
|
23428
23431
|
className: `br-4 en-2 bw-1 mr-8 bg__primary pt-2 pr-8 pb-2 pl-8 tag-class dc__word-break-all flex ${n ? "icon-hover" : ""} ${E()}`,
|
23429
23432
|
children: [
|
23430
23433
|
u,
|
23431
|
-
l ? /* @__PURE__ */ t.jsx(
|
23434
|
+
l ? /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
|
23432
23435
|
fe,
|
23433
23436
|
{
|
23434
23437
|
className: "default-tt",
|
@@ -23453,7 +23456,7 @@ const Wm = ({
|
|
23453
23456
|
),
|
23454
23457
|
e,
|
23455
23458
|
/* @__PURE__ */ t.jsx(fe, { className: "default-tt", arrow: !0, placement: "top", content: "Remove tag", children: /* @__PURE__ */ t.jsx("div", { className: `action-icon ml-4 lh-16 pt-3 ${_ ? "show-icon" : ""}`, children: /* @__PURE__ */ t.jsx(
|
23456
|
-
|
23459
|
+
us,
|
23457
23460
|
{
|
23458
23461
|
className: "icon-dim-12 fcn-6 cursor",
|
23459
23462
|
"data-testid": `${e}-tag-hard-delete`,
|
@@ -23599,7 +23602,7 @@ const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
23599
23602
|
value: a ?? c[0],
|
23600
23603
|
options: c,
|
23601
23604
|
onChange: p,
|
23602
|
-
variant:
|
23605
|
+
variant: Rs.BORDER_LESS
|
23603
23606
|
}
|
23604
23607
|
)
|
23605
23608
|
] }),
|
@@ -23612,7 +23615,7 @@ const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
23612
23615
|
value: d ?? o[0],
|
23613
23616
|
options: o,
|
23614
23617
|
onChange: _,
|
23615
|
-
variant:
|
23618
|
+
variant: Rs.BORDER_LESS
|
23616
23619
|
}
|
23617
23620
|
)
|
23618
23621
|
] })
|
@@ -23670,7 +23673,7 @@ function wP({
|
|
23670
23673
|
}
|
23671
23674
|
) : null;
|
23672
23675
|
}
|
23673
|
-
const qI = ({ startNode: e }) => e.type ===
|
23676
|
+
const qI = ({ startNode: e }) => e.type === Es.WEBHOOK ? Vs.WEBHOOK : e.type === Es.CI ? Vs.CI_PIPELINE : Vs.CD_PIPELINE, DP = ({
|
23674
23677
|
position: e,
|
23675
23678
|
handleCDSelect: s,
|
23676
23679
|
startNode: n,
|
@@ -23958,7 +23961,7 @@ const Fl = 5, XI = [
|
|
23958
23961
|
...a && { breaks: !0 }
|
23959
23962
|
});
|
23960
23963
|
const u = () => ({
|
23961
|
-
__html:
|
23964
|
+
__html: As.sanitize(ks(i), { USE_PROFILES: { html: !0 } })
|
23962
23965
|
});
|
23963
23966
|
return /* @__PURE__ */ t.jsx(
|
23964
23967
|
"article",
|
@@ -24019,7 +24022,7 @@ const kt = {
|
|
24019
24022
|
}, [e]);
|
24020
24023
|
const f = Pe(n), N = f.isValid() ? f.format(yt.TWELVE_HOURS_FORMAT) : n, C = (I) => {
|
24021
24024
|
let v = !0;
|
24022
|
-
return I.length === 0 && (
|
24025
|
+
return I.length === 0 && (ke.showToast({
|
24023
24026
|
variant: Se.error,
|
24024
24027
|
description: ny
|
24025
24028
|
}), v = !1), v;
|
@@ -24310,7 +24313,7 @@ export {
|
|
24310
24313
|
WI as D,
|
24311
24314
|
Lr as E,
|
24312
24315
|
mg as F,
|
24313
|
-
|
24316
|
+
Qe as G,
|
24314
24317
|
Ga as H,
|
24315
24318
|
$i as I,
|
24316
24319
|
pg as J,
|
@@ -24352,7 +24355,7 @@ export {
|
|
24352
24355
|
an as aG,
|
24353
24356
|
yg as aH,
|
24354
24357
|
Vs as aI,
|
24355
|
-
|
24358
|
+
Es as aJ,
|
24356
24359
|
Hn as aK,
|
24357
24360
|
No as aL,
|
24358
24361
|
Rg as aM,
|
@@ -24384,7 +24387,7 @@ export {
|
|
24384
24387
|
pt as al,
|
24385
24388
|
GO as am,
|
24386
24389
|
Md as an,
|
24387
|
-
|
24390
|
+
fs as ao,
|
24388
24391
|
Cg as ap,
|
24389
24392
|
Pt as aq,
|
24390
24393
|
ea as ar,
|
@@ -24417,8 +24420,8 @@ export {
|
|
24417
24420
|
NP as bG,
|
24418
24421
|
CP as bH,
|
24419
24422
|
bP as bI,
|
24420
|
-
|
24421
|
-
|
24423
|
+
Ue as bJ,
|
24424
|
+
nL as bK,
|
24422
24425
|
$m as bL,
|
24423
24426
|
nm as bM,
|
24424
24427
|
Cn as bN,
|
@@ -24441,7 +24444,7 @@ export {
|
|
24441
24444
|
wm as bd,
|
24442
24445
|
Kt as be,
|
24443
24446
|
aP as bf,
|
24444
|
-
|
24447
|
+
Je as bg,
|
24445
24448
|
Ma as bh,
|
24446
24449
|
rP as bi,
|
24447
24450
|
Bl as bj,
|
@@ -24526,11 +24529,11 @@ export {
|
|
24526
24529
|
Zx as cx,
|
24527
24530
|
Qx as cy,
|
24528
24531
|
eE as cz,
|
24529
|
-
|
24532
|
+
Ex as d,
|
24530
24533
|
uL as d$,
|
24531
24534
|
qn as d0,
|
24532
24535
|
cS as d1,
|
24533
|
-
|
24536
|
+
sL as d2,
|
24534
24537
|
zm as d3,
|
24535
24538
|
BP as d4,
|
24536
24539
|
mL as d5,
|
@@ -24540,31 +24543,31 @@ export {
|
|
24540
24543
|
SE as d9,
|
24541
24544
|
Et as dA,
|
24542
24545
|
Xd as dB,
|
24543
|
-
|
24546
|
+
ys as dC,
|
24544
24547
|
vr as dD,
|
24545
|
-
|
24548
|
+
Ze as dE,
|
24546
24549
|
iL as dF,
|
24547
24550
|
Yr as dG,
|
24548
24551
|
cL as dH,
|
24549
24552
|
yo as dI,
|
24550
24553
|
lL as dJ,
|
24551
24554
|
Jd as dK,
|
24552
|
-
|
24555
|
+
Tx as dL,
|
24553
24556
|
mc as dM,
|
24554
24557
|
rs as dN,
|
24555
|
-
|
24558
|
+
Sx as dO,
|
24556
24559
|
pc as dP,
|
24557
24560
|
_c as dQ,
|
24558
24561
|
fc as dR,
|
24559
|
-
|
24560
|
-
|
24561
|
-
|
24562
|
-
|
24562
|
+
vx as dS,
|
24563
|
+
Ax as dT,
|
24564
|
+
Ix as dU,
|
24565
|
+
yx as dV,
|
24563
24566
|
sa as dW,
|
24564
24567
|
Zd as dX,
|
24565
|
-
|
24568
|
+
Xe as dY,
|
24566
24569
|
dL as dZ,
|
24567
|
-
|
24570
|
+
Rx as d_,
|
24568
24571
|
bE as da,
|
24569
24572
|
jL as db,
|
24570
24573
|
ME as dc,
|
@@ -24584,14 +24587,14 @@ export {
|
|
24584
24587
|
$t as dr,
|
24585
24588
|
Te as ds,
|
24586
24589
|
zd as dt,
|
24587
|
-
|
24590
|
+
bs as du,
|
24588
24591
|
qd as dv,
|
24589
24592
|
Ka as dw,
|
24590
24593
|
Wn as dx,
|
24591
24594
|
Ao as dy,
|
24592
24595
|
Io as dz,
|
24593
24596
|
$n as e,
|
24594
|
-
|
24597
|
+
xx as e$,
|
24595
24598
|
JE as e0,
|
24596
24599
|
kc as e1,
|
24597
24600
|
zE as e2,
|
@@ -24626,9 +24629,9 @@ export {
|
|
24626
24629
|
lw as eV,
|
24627
24630
|
dw as eW,
|
24628
24631
|
Kd as eX,
|
24629
|
-
|
24630
|
-
|
24631
|
-
|
24632
|
+
_x as eY,
|
24633
|
+
hx as eZ,
|
24634
|
+
gx as e_,
|
24632
24635
|
Dn as ea,
|
24633
24636
|
qL as eb,
|
24634
24637
|
XL as ec,
|
@@ -24679,7 +24682,7 @@ export {
|
|
24679
24682
|
ET as fJ,
|
24680
24683
|
Uo as fK,
|
24681
24684
|
De as fL,
|
24682
|
-
|
24685
|
+
Cs as fM,
|
24683
24686
|
ji as fN,
|
24684
24687
|
Re as fO,
|
24685
24688
|
ko as fP,
|
@@ -24746,7 +24749,7 @@ export {
|
|
24746
24749
|
Fv as gL,
|
24747
24750
|
Vv as gM,
|
24748
24751
|
Gv as gN,
|
24749
|
-
|
24752
|
+
Gs as gO,
|
24750
24753
|
CD as gP,
|
24751
24754
|
Bo as gQ,
|
24752
24755
|
Mi as gR,
|
@@ -24821,12 +24824,12 @@ export {
|
|
24821
24824
|
ym as hV,
|
24822
24825
|
MD as hW,
|
24823
24826
|
kD as hX,
|
24824
|
-
|
24827
|
+
Ws as hY,
|
24825
24828
|
xD as hZ,
|
24826
24829
|
ED as h_,
|
24827
24830
|
_n as ha,
|
24828
24831
|
qx as hb,
|
24829
|
-
|
24832
|
+
Rs as hc,
|
24830
24833
|
Ku as hd,
|
24831
24834
|
OT as he,
|
24832
24835
|
KT as hf,
|
@@ -24865,8 +24868,8 @@ export {
|
|
24865
24868
|
bu as iA,
|
24866
24869
|
WD as iB,
|
24867
24870
|
zD as iC,
|
24868
|
-
|
24869
|
-
|
24871
|
+
ix as iD,
|
24872
|
+
qe as iE,
|
24870
24873
|
wb as iF,
|
24871
24874
|
Mb as iG,
|
24872
24875
|
$u as iH,
|
@@ -24882,7 +24885,7 @@ export {
|
|
24882
24885
|
Zt as iR,
|
24883
24886
|
JD as iS,
|
24884
24887
|
Rv as iT,
|
24885
|
-
|
24888
|
+
st as iU,
|
24886
24889
|
Ro as iV,
|
24887
24890
|
_i as iW,
|
24888
24891
|
IE as iX,
|
@@ -24933,7 +24936,7 @@ export {
|
|
24933
24936
|
jN as jF,
|
24934
24937
|
xi as jG,
|
24935
24938
|
gu as jH,
|
24936
|
-
|
24939
|
+
Ks as jI,
|
24937
24940
|
Nw as jJ,
|
24938
24941
|
Ar as jK,
|
24939
24942
|
ON as jL,
|
@@ -24957,7 +24960,7 @@ export {
|
|
24957
24960
|
RL as jc,
|
24958
24961
|
NN as jd,
|
24959
24962
|
uw as je,
|
24960
|
-
|
24963
|
+
js as jf,
|
24961
24964
|
Uc as jg,
|
24962
24965
|
mw as jh,
|
24963
24966
|
pw as ji,
|
@@ -24973,7 +24976,7 @@ export {
|
|
24973
24976
|
Bc as js,
|
24974
24977
|
vN as jt,
|
24975
24978
|
jo as ju,
|
24976
|
-
|
24979
|
+
Ts as jv,
|
24977
24980
|
IN as jw,
|
24978
24981
|
yN as jx,
|
24979
24982
|
ja as jy,
|
@@ -24989,7 +24992,7 @@ export {
|
|
24989
24992
|
$g as k6,
|
24990
24993
|
Fg as k7,
|
24991
24994
|
Vg as k8,
|
24992
|
-
|
24995
|
+
Ys as k9,
|
24993
24996
|
as as kA,
|
24994
24997
|
Ra as kB,
|
24995
24998
|
To as kC,
|
@@ -25005,7 +25008,7 @@ export {
|
|
25005
25008
|
Xg as kM,
|
25006
25009
|
lc as kN,
|
25007
25010
|
P as kO,
|
25008
|
-
|
25011
|
+
gs as kP,
|
25009
25012
|
Vd as kQ,
|
25010
25013
|
Gd as kR,
|
25011
25014
|
Hd as kS,
|
@@ -25051,9 +25054,9 @@ export {
|
|
25051
25054
|
sx as l4,
|
25052
25055
|
eL as l5,
|
25053
25056
|
tL as l6,
|
25054
|
-
|
25057
|
+
Cx as l7,
|
25055
25058
|
wn as l8,
|
25056
|
-
|
25059
|
+
bx as l9,
|
25057
25060
|
Ju as lA,
|
25058
25061
|
Xb as lB,
|
25059
25062
|
cD as lC,
|
@@ -25064,7 +25067,7 @@ export {
|
|
25064
25067
|
Vt as lb,
|
25065
25068
|
vo as lc,
|
25066
25069
|
rt as ld,
|
25067
|
-
|
25070
|
+
Is as le,
|
25068
25071
|
Sr as lf,
|
25069
25072
|
Wd as lg,
|
25070
25073
|
PN as lh,
|
@@ -25077,7 +25080,7 @@ export {
|
|
25077
25080
|
Tw as lo,
|
25078
25081
|
Sw as lp,
|
25079
25082
|
vw as lq,
|
25080
|
-
|
25083
|
+
ke as lr,
|
25081
25084
|
Aw as ls,
|
25082
25085
|
Se as lt,
|
25083
25086
|
xu as lu,
|