@devtron-labs/devtron-fe-common-lib 1.9.0-beta-4 → 1.9.0-patch-1
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-Bpg49zTw.js} +325 -325
- package/dist/{@common-rjsf-CbzJWaVb.js → @common-rjsf-DtXupEof.js} +1 -1
- package/dist/Shared/Services/common.service.d.ts +2 -2
- package/dist/Shared/Services/types.d.ts +14 -6
- package/dist/index.js +2 -2
- package/package.json +1 -1
@@ -4,23 +4,23 @@ var Fi = (e) => {
|
|
4
4
|
};
|
5
5
|
var ap = (e, s, n) => s in e ? np(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
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
|
-
var
|
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
|
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
|
7
|
+
var Ps = (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
|
+
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 Us } 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 ls, Fragment as Ys, 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 qs, NavLink as _t, useParams as Tt, useRouteMatch as Jt, generatePath as Vs, Switch as Jl, Route as $s, 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 ws } 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";
|
@@ -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 || {}),
|
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 || {}), Gs = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Gs || {}), 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",
|
@@ -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",
|
@@ -1126,12 +1126,12 @@ const zO = Object.values(
|
|
1126
1126
|
};
|
1127
1127
|
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
1128
|
const rx = {
|
1129
|
-
[P.xxs]: `${
|
1130
|
-
[P.xs]: `${
|
1131
|
-
[P.small]: `${
|
1132
|
-
[P.medium]: `${
|
1133
|
-
[P.large]: `${
|
1134
|
-
[P.xl]: `${
|
1129
|
+
[P.xxs]: `${gs[P.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1130
|
+
[P.xs]: `${gs[P.xs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1131
|
+
[P.small]: `${gs[P.small]} px-9 fw-6 dc__gap-8 mw-48`,
|
1132
|
+
[P.medium]: `${gs[P.medium]} px-11 fw-6 dc__gap-8 mw-48`,
|
1133
|
+
[P.large]: `${gs[P.large]} px-13 fw-6 dc__gap-8 mw-64`,
|
1134
|
+
[P.xl]: `${gs[P.xl]} px-15 fw-6 dc__gap-12 mw-64`
|
1135
1135
|
}, ox = {
|
1136
1136
|
[P.xxs]: "p-1",
|
1137
1137
|
[P.xs]: "p-3",
|
@@ -1163,7 +1163,7 @@ const Yd = {
|
|
1163
1163
|
elementRef: r,
|
1164
1164
|
...o
|
1165
1165
|
}) => e === Kn.link ? /* @__PURE__ */ t.jsx(
|
1166
|
-
|
1166
|
+
Os,
|
1167
1167
|
{
|
1168
1168
|
...s,
|
1169
1169
|
...o,
|
@@ -1260,7 +1260,7 @@ const Yd = {
|
|
1260
1260
|
useInfoIcon: c = !1,
|
1261
1261
|
progressingProps: l
|
1262
1262
|
}) => {
|
1263
|
-
const d = () => l ? /* @__PURE__ */ t.jsx(Me, { ...l }) : c ? /* @__PURE__ */ t.jsx(Xo, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(
|
1263
|
+
const d = () => l ? /* @__PURE__ */ t.jsx(Me, { ...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
1264
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${i || ""}`, children: [
|
1265
1265
|
d(),
|
1266
1266
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
|
@@ -1607,7 +1607,7 @@ const Yd = {
|
|
1607
1607
|
}
|
1608
1608
|
);
|
1609
1609
|
};
|
1610
|
-
var xx = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(xx || {}), 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 || {}), Ex = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(Ex || {}), 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 || {}),
|
1610
|
+
var xx = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(xx || {}), 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 || {}), Ex = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(Ex || {}), 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
1611
|
const di = (e) => {
|
1612
1612
|
const s = Y(null), [n, a] = R(!1), r = e.theme === ea.white, o = (N) => {
|
1613
1613
|
N.keyCode === 27 && c(N);
|
@@ -1652,7 +1652,7 @@ const di = (e) => {
|
|
1652
1652
|
I && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: I }),
|
1653
1653
|
v && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" }) }),
|
1654
1654
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1655
|
-
|
1655
|
+
us,
|
1656
1656
|
{
|
1657
1657
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "icon-fill__white"}`,
|
1658
1658
|
onClick: c
|
@@ -1764,8 +1764,8 @@ const di = (e) => {
|
|
1764
1764
|
)
|
1765
1765
|
}
|
1766
1766
|
);
|
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
|
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 || {}), 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 || {});
|
1768
|
+
const ys = {
|
1769
1769
|
// Will not enforce any decimal specification on input field
|
1770
1770
|
STEP: "any",
|
1771
1771
|
MIN: 0,
|
@@ -1789,8 +1789,8 @@ const Is = {
|
|
1789
1789
|
VALIDATE_REQUEST_LIMIT: {
|
1790
1790
|
REQUEST_LESS_THAN_LIMIT: "Request should be less than or equal to limit.",
|
1791
1791
|
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 ${
|
1792
|
+
REQUEST_DECIMAL_PLACES: `Request should be upto ${ys.DECIMAL_PLACES} decimal places.`,
|
1793
|
+
LIMIT_DECIMAL_PLACES: `Limit should be upto ${ys.DECIMAL_PLACES} decimal places.`
|
1794
1794
|
},
|
1795
1795
|
getInvalidActionMessage: (e) => `Invalid action type: ${e}`,
|
1796
1796
|
getSubmitSuccessMessage: (e, s) => `${e} profile is ${s ? "updated" : "created"}`,
|
@@ -1921,7 +1921,7 @@ const Is = {
|
|
1921
1921
|
keyToPersist: "limit",
|
1922
1922
|
keyToPersistConfigType: U.MEMORY_LIMIT
|
1923
1923
|
}
|
1924
|
-
}, Tx = qd.NO_SCHEDULE, Sx =
|
1924
|
+
}, Tx = qd.NO_SCHEDULE, Sx = bs.EQUALS, vx = {
|
1925
1925
|
[U.BUILD_TIMEOUT]: !0,
|
1926
1926
|
[U.CONFIG_MAP]: !0,
|
1927
1927
|
[U.SECRET]: !0
|
@@ -1929,14 +1929,14 @@ const Is = {
|
|
1929
1929
|
[U.CONFIG_MAP]: !0,
|
1930
1930
|
[U.SECRET]: !0
|
1931
1931
|
}, Zd = {
|
1932
|
-
[U.CONFIG_MAP]:
|
1933
|
-
[U.SECRET]:
|
1932
|
+
[U.CONFIG_MAP]: Is.ConfigMap,
|
1933
|
+
[U.SECRET]: Is.Secret
|
1934
1934
|
}, qe = {
|
1935
|
-
[
|
1936
|
-
[
|
1935
|
+
[Is.ConfigMap]: U.CONFIG_MAP,
|
1936
|
+
[Is.Secret]: U.SECRET
|
1937
1937
|
}, dL = {
|
1938
|
-
[
|
1939
|
-
[
|
1938
|
+
[Is.ConfigMap]: Te.CONFIG_MAP,
|
1939
|
+
[Is.Secret]: Te.SECRET
|
1940
1940
|
}, Ax = !0, uL = {
|
1941
1941
|
activate_cm: !0,
|
1942
1942
|
activate_cs: !0,
|
@@ -1992,7 +1992,7 @@ const Is = {
|
|
1992
1992
|
)
|
1993
1993
|
] });
|
1994
1994
|
};
|
1995
|
-
var
|
1995
|
+
var Rs = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER_LESS = "border-less", e))(Rs || {});
|
1996
1996
|
const hc = {
|
1997
1997
|
[P.small]: "12px",
|
1998
1998
|
[P.medium]: "13px",
|
@@ -2031,7 +2031,7 @@ const hc = {
|
|
2031
2031
|
}
|
2032
2032
|
}, Ec = (e) => {
|
2033
2033
|
switch (e) {
|
2034
|
-
case
|
2034
|
+
case Rs.BORDER_LESS:
|
2035
2035
|
return {
|
2036
2036
|
control: () => ({
|
2037
2037
|
backgroundColor: "transparent",
|
@@ -2274,7 +2274,7 @@ const hc = {
|
|
2274
2274
|
}, _n = (e, s, n = { label: "", value: "" }, a = null) => Array.isArray(e) ? e.flatMap(
|
2275
2275
|
(o) => "options" in o ? o.options : [o]
|
2276
2276
|
).find((o) => (a ? a(o) : o.value) === s) ?? n : n;
|
2277
|
-
class
|
2277
|
+
class Ds extends fr {
|
2278
2278
|
render() {
|
2279
2279
|
const s = `${this.props.rootClassName ? this.props.rootClassName : ""}`;
|
2280
2280
|
return /* @__PURE__ */ t.jsxs("label", { className: `dc__position-rel flex left cursor ${s}`, onClick: this.props?.onClick, children: [
|
@@ -2307,7 +2307,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2307
2307
|
content: null
|
2308
2308
|
}, Lx = (e) => {
|
2309
2309
|
const { isDisabled: s } = e;
|
2310
|
-
return /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
2310
|
+
return /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(is, { className: s ? "scn-3" : "scn-6" }) });
|
2311
2311
|
}, wx = (e) => /* @__PURE__ */ t.jsx(Ve.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(nt, { className: "icon-use-fill-n6" }) }), Dx = (e) => {
|
2312
2312
|
const {
|
2313
2313
|
children: s,
|
@@ -2361,7 +2361,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2361
2361
|
};
|
2362
2362
|
return /* @__PURE__ */ t.jsx(Ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(ie, { ...Ox(m), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2363
2363
|
r && !_ && /* @__PURE__ */ t.jsx(
|
2364
|
-
|
2364
|
+
Ds,
|
2365
2365
|
{
|
2366
2366
|
onChange: ut,
|
2367
2367
|
onClick: E,
|
@@ -2414,7 +2414,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2414
2414
|
getIsOptionValid: e,
|
2415
2415
|
...s
|
2416
2416
|
}) => {
|
2417
|
-
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(
|
2417
|
+
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(ds, {});
|
2418
2418
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4 mw-0 dc__truncate", children: [
|
2419
2419
|
o && /* @__PURE__ */ t.jsx(
|
2420
2420
|
"div",
|
@@ -2454,7 +2454,7 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2454
2454
|
};
|
2455
2455
|
return /* @__PURE__ */ t.jsx(Ve.GroupHeading, { ...s, onClick: c, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2456
2456
|
e && /* @__PURE__ */ t.jsx(
|
2457
|
-
|
2457
|
+
Ds,
|
2458
2458
|
{
|
2459
2459
|
onChange: ut,
|
2460
2460
|
onClick: l,
|
@@ -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,
|
@@ -2718,13 +2718,13 @@ 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
|
Mx,
|
@@ -2742,11 +2742,11 @@ const Ox = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2742
2742
|
(we) => /* @__PURE__ */ t.jsx(Vx, { ...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);
|
@@ -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 = qs(), i = Y(!1), l = (() => {
|
3281
3281
|
const b = new URLSearchParams(r.search);
|
3282
3282
|
if (!i.current && n)
|
3283
3283
|
if (r.search)
|
@@ -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,
|
@@ -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,12 +4076,12 @@ 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
4081
|
message: Je.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
4086
|
message: Je.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
|
4087
4087
|
isValid: !1
|
@@ -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 }
|
@@ -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;
|
@@ -4537,13 +4537,13 @@ const AL = (e, s = !1) => {
|
|
4537
4537
|
effect: r,
|
4538
4538
|
id: s ? Ws() : 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
|
};
|
@@ -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,
|
@@ -5226,7 +5226,7 @@ const VL = (e, s) => gt(G.K8S_RESOURCE_LIST, e, {
|
|
5226
5226
|
] })
|
5227
5227
|
] }),
|
5228
5228
|
rN.map(({ key: c, infoText: l, label: d }) => /* @__PURE__ */ t.jsx(
|
5229
|
-
|
5229
|
+
Ds,
|
5230
5230
|
{
|
5231
5231
|
value: dt.CHECKED,
|
5232
5232
|
isChecked: a[c],
|
@@ -5250,7 +5250,7 @@ const VL = (e, s) => gt(G.K8S_RESOURCE_LIST, e, {
|
|
5250
5250
|
};
|
5251
5251
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12 w-100", children: [
|
5252
5252
|
/* @__PURE__ */ t.jsx(
|
5253
|
-
|
5253
|
+
Ds,
|
5254
5254
|
{
|
5255
5255
|
value: dt.CHECKED,
|
5256
5256
|
isChecked: a,
|
@@ -5319,7 +5319,7 @@ const mN = {
|
|
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(
|
5322
|
-
|
5322
|
+
Ds,
|
5323
5323
|
{
|
5324
5324
|
rootClassName: `mb-0 dc__align-items-center ${n.isAppMetricsSupported ? "" : "dc__disabled"}`,
|
5325
5325
|
isChecked: 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)
|
@@ -5899,6 +5899,11 @@ const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
5899
5899
|
return a.forEach((r) => {
|
5900
5900
|
n[r.index] = r;
|
5901
5901
|
}), n;
|
5902
|
+
};
|
5903
|
+
var At = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(At || {});
|
5904
|
+
const os = {
|
5905
|
+
...At,
|
5906
|
+
auto: "auto"
|
5902
5907
|
}, Eu = "userPreferences", Cw = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => Xe(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), bw = ({ kind: e, version: s, queryParams: n, suffix: a }) => Xe(`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
|
@@ -5910,18 +5915,18 @@ const AN = (e, s = !1) => s ? btoa(e) : atob(e), jo = (e, s = !1) => Object.keys
|
|
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(ws, {}),
|
5957
5962
|
type: "info",
|
5958
5963
|
title: "Information",
|
5959
5964
|
progressBarBg: "var(--B500)"
|
@@ -6002,7 +6007,7 @@ const $N = {
|
|
6002
6007
|
)
|
6003
6008
|
] });
|
6004
6009
|
var ln;
|
6005
|
-
const
|
6010
|
+
const Fs = class Fs {
|
6006
6011
|
constructor() {
|
6007
6012
|
/**
|
6008
6013
|
* Handler for showing the toast
|
@@ -6043,12 +6048,12 @@ const $s = class $s {
|
|
6043
6048
|
me(this, "isToastActive", Fr.isActive);
|
6044
6049
|
}
|
6045
6050
|
static get instance() {
|
6046
|
-
return
|
6051
|
+
return Ps(Fs, ln) || ha(Fs, ln, new Fs()), Ps(Fs, ln);
|
6047
6052
|
}
|
6048
6053
|
};
|
6049
6054
|
ln = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
6050
|
-
fa(
|
6051
|
-
let Oo =
|
6055
|
+
fa(Fs, ln);
|
6056
|
+
let Oo = Fs;
|
6052
6057
|
const Aw = () => /* @__PURE__ */ t.jsx(op, { ...$N }), Ue = 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 = {
|
@@ -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;
|
@@ -6203,7 +6208,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6203
6208
|
disabled: s,
|
6204
6209
|
children: [
|
6205
6210
|
/* @__PURE__ */ t.jsx(
|
6206
|
-
|
6211
|
+
Ds,
|
6207
6212
|
{
|
6208
6213
|
isChecked: r,
|
6209
6214
|
onChange: ut,
|
@@ -6212,7 +6217,7 @@ 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
|
),
|
@@ -6479,19 +6484,19 @@ 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
6501
|
Icon: /* @__PURE__ */ t.jsx(st, { name: "ic-circle-loader", color: "O500" }),
|
6497
6502
|
stateClassName: "bcy-1 ey-2"
|
@@ -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
|
{
|
@@ -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",
|
@@ -6884,7 +6889,7 @@ const nC = {
|
|
6884
6889
|
fallbackImage: /* @__PURE__ */ t.jsx(Rf, { className: "icon-dim-20-imp dc__no-shrink" })
|
6885
6890
|
}
|
6886
6891
|
)
|
6887
|
-
] }),
|
6892
|
+
] }), cs = (e) => (
|
6888
6893
|
/* for all the SEVERITY keys in @severities create @Entity */
|
6889
6894
|
e && Za.map(
|
6890
6895
|
(s) => e[s] && {
|
@@ -7317,7 +7322,7 @@ const nC = {
|
|
7317
7322
|
]
|
7318
7323
|
})) : null,
|
7319
7324
|
defaultSortIndex: 1,
|
7320
|
-
entities:
|
7325
|
+
entities: cs(e.misConfSummary.status),
|
7321
7326
|
lastScanTimeString: s,
|
7322
7327
|
scanToolName: a,
|
7323
7328
|
scanToolUrl: r,
|
@@ -7399,7 +7404,7 @@ const nC = {
|
|
7399
7404
|
]
|
7400
7405
|
})) : null,
|
7401
7406
|
defaultSortIndex: 1,
|
7402
|
-
entities:
|
7407
|
+
entities: cs(e.summary.severities),
|
7403
7408
|
lastScanTimeString: s,
|
7404
7409
|
scanToolName: a,
|
7405
7410
|
scanToolUrl: r,
|
@@ -7475,12 +7480,12 @@ const nC = {
|
|
7475
7480
|
case J.LICENSE:
|
7476
7481
|
case J.EXPOSED_SECRETS:
|
7477
7482
|
return {
|
7478
|
-
entities:
|
7483
|
+
entities: cs(e[s]?.summary.severities),
|
7479
7484
|
...o
|
7480
7485
|
};
|
7481
7486
|
case J.MISCONFIGURATIONS:
|
7482
7487
|
return {
|
7483
|
-
entities:
|
7488
|
+
entities: cs(e[s]?.misConfSummary.status),
|
7484
7489
|
...o
|
7485
7490
|
};
|
7486
7491
|
default:
|
@@ -7528,7 +7533,7 @@ const nC = {
|
|
7528
7533
|
}, wo = (e) => ({
|
7529
7534
|
titlePrefix: "Image",
|
7530
7535
|
title: e.image,
|
7531
|
-
entities:
|
7536
|
+
entities: cs(e.summary.severities),
|
7532
7537
|
lastScanTimeString: e.StartedOn,
|
7533
7538
|
scanToolName: e.scanToolName,
|
7534
7539
|
scanToolUrl: e.scanToolUrl,
|
@@ -7671,7 +7676,7 @@ const nC = {
|
|
7671
7676
|
]
|
7672
7677
|
})) : null,
|
7673
7678
|
defaultSortIndex: 1,
|
7674
|
-
entities:
|
7679
|
+
entities: cs(e.summary.severities),
|
7675
7680
|
lastScanTimeString: e.StartedOn,
|
7676
7681
|
scanToolName: e.scanToolName,
|
7677
7682
|
scanToolUrl: e.scanToolUrl,
|
@@ -7722,7 +7727,7 @@ const nC = {
|
|
7722
7727
|
}, jC = (e, s) => {
|
7723
7728
|
const n = e[s]?.list?.[0];
|
7724
7729
|
return {
|
7725
|
-
entities:
|
7730
|
+
entities: cs(e[s]?.summary.severities),
|
7726
7731
|
scanToolName: n?.scanToolName,
|
7727
7732
|
scanToolUrl: n?.scanToolUrl,
|
7728
7733
|
lastScanTimeString: n?.StartedOn
|
@@ -7792,12 +7797,12 @@ const nC = {
|
|
7792
7797
|
switch (s) {
|
7793
7798
|
case J.MISCONFIGURATIONS:
|
7794
7799
|
return {
|
7795
|
-
entities:
|
7800
|
+
entities: cs(e[s]?.misConfSummary.status),
|
7796
7801
|
...n
|
7797
7802
|
};
|
7798
7803
|
case J.EXPOSED_SECRETS:
|
7799
7804
|
return {
|
7800
|
-
entities:
|
7805
|
+
entities: cs(e[s]?.summary.severities),
|
7801
7806
|
...n
|
7802
7807
|
};
|
7803
7808
|
default:
|
@@ -7863,7 +7868,7 @@ const nC = {
|
|
7863
7868
|
isExpanded: !0,
|
7864
7869
|
children: [
|
7865
7870
|
{
|
7866
|
-
label:
|
7871
|
+
label: ps.VULNERABILITIES,
|
7867
7872
|
value: {
|
7868
7873
|
category: ne.IMAGE_SCAN,
|
7869
7874
|
subCategory: J.VULNERABILITIES
|
@@ -7871,7 +7876,7 @@ const nC = {
|
|
7871
7876
|
},
|
7872
7877
|
...r ? [
|
7873
7878
|
{
|
7874
|
-
label:
|
7879
|
+
label: ps.LICENSE,
|
7875
7880
|
value: {
|
7876
7881
|
category: ne.IMAGE_SCAN,
|
7877
7882
|
subCategory: J.LICENSE
|
@@ -7887,28 +7892,28 @@ const nC = {
|
|
7887
7892
|
isExpanded: !0,
|
7888
7893
|
children: [
|
7889
7894
|
{
|
7890
|
-
label:
|
7895
|
+
label: ps.VULNERABILITIES,
|
7891
7896
|
value: {
|
7892
7897
|
category: ne.CODE_SCAN,
|
7893
7898
|
subCategory: J.VULNERABILITIES
|
7894
7899
|
}
|
7895
7900
|
},
|
7896
7901
|
{
|
7897
|
-
label:
|
7902
|
+
label: ps.LICENSE,
|
7898
7903
|
value: {
|
7899
7904
|
category: ne.CODE_SCAN,
|
7900
7905
|
subCategory: J.LICENSE
|
7901
7906
|
}
|
7902
7907
|
},
|
7903
7908
|
{
|
7904
|
-
label:
|
7909
|
+
label: ps.MISCONFIGURATIONS,
|
7905
7910
|
value: {
|
7906
7911
|
category: ne.CODE_SCAN,
|
7907
7912
|
subCategory: J.MISCONFIGURATIONS
|
7908
7913
|
}
|
7909
7914
|
},
|
7910
7915
|
{
|
7911
|
-
label:
|
7916
|
+
label: ps.EXPOSED_SECRETS,
|
7912
7917
|
value: {
|
7913
7918
|
category: ne.CODE_SCAN,
|
7914
7919
|
subCategory: J.EXPOSED_SECRETS
|
@@ -7923,14 +7928,14 @@ const nC = {
|
|
7923
7928
|
isExpanded: !0,
|
7924
7929
|
children: [
|
7925
7930
|
{
|
7926
|
-
label:
|
7931
|
+
label: ps.MISCONFIGURATIONS,
|
7927
7932
|
value: {
|
7928
7933
|
category: ne.KUBERNETES_MANIFEST,
|
7929
7934
|
subCategory: J.MISCONFIGURATIONS
|
7930
7935
|
}
|
7931
7936
|
},
|
7932
7937
|
{
|
7933
|
-
label:
|
7938
|
+
label: ps.EXPOSED_SECRETS,
|
7934
7939
|
value: {
|
7935
7940
|
category: ne.KUBERNETES_MANIFEST,
|
7936
7941
|
subCategory: J.EXPOSED_SECRETS
|
@@ -8117,7 +8122,7 @@ const nC = {
|
|
8117
8122
|
const o = Ru(n), i = !!o, c = Object.entries(Ja).map(([_, E]) => ({
|
8118
8123
|
...E,
|
8119
8124
|
value: n[_]
|
8120
|
-
})).filter((_) => !!_.value), l = () => r ? /* @__PURE__ */ t.jsx(
|
8125
|
+
})).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
8126
|
if (r)
|
8122
8127
|
return s === J.VULNERABILITIES ? { title: "Vulnerability scan failed", subtitle: "Failed" } : { title: "License scan failed", subtitle: "Failed" };
|
8123
8128
|
switch (s) {
|
@@ -8384,7 +8389,7 @@ const nC = {
|
|
8384
8389
|
children: [
|
8385
8390
|
l ? "Hide info" : "Show more info",
|
8386
8391
|
/* @__PURE__ */ t.jsx(
|
8387
|
-
|
8392
|
+
Ss,
|
8388
8393
|
{
|
8389
8394
|
className: "icon-dim-24 rotate fcn-6",
|
8390
8395
|
style: { "--rotateBy": l ? "-180deg" : "0deg" }
|
@@ -8575,7 +8580,7 @@ const nC = {
|
|
8575
8580
|
onChange: y,
|
8576
8581
|
onBlur: I,
|
8577
8582
|
onKeyDown: v,
|
8578
|
-
className: `${
|
8583
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8579
8584
|
ref: f,
|
8580
8585
|
style: {
|
8581
8586
|
// No max height when user is expanding
|
@@ -8656,28 +8661,23 @@ const nC = {
|
|
8656
8661
|
/* @__PURE__ */ t.jsx(gr, { className: "icon-dim-16 cursor mw-16", onClick: () => o(!r) })
|
8657
8662
|
] });
|
8658
8663
|
}, Lu = Mt(null), ua = () => {
|
8659
|
-
const e =
|
8664
|
+
const e = ls(Lu);
|
8660
8665
|
if (!e)
|
8661
8666
|
throw new Error("Please wrap with MainContextProvider");
|
8662
8667
|
return e;
|
8663
8668
|
}, Gw = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(Lu.Provider, { value: s, children: e }), wu = Mt(null), Hw = () => {
|
8664
|
-
const e =
|
8669
|
+
const e = ls(wu);
|
8665
8670
|
if (!e)
|
8666
8671
|
throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
|
8667
8672
|
return e;
|
8668
8673
|
}, Yw = ({ children: e, value: s }) => {
|
8669
8674
|
const n = te(() => s, [s]);
|
8670
8675
|
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) => {
|
8676
|
+
}, Du = "themePreference__v1", Pu = "(prefers-color-scheme: dark)", yi = () => window.matchMedia && window.matchMedia(Pu).matches ? At.dark : At.light, KC = (e) => {
|
8677
8677
|
localStorage.setItem(Du, e);
|
8678
8678
|
}, WC = ({ appTheme: e, themePreference: s }) => {
|
8679
|
-
const n = s ===
|
8680
|
-
|
8679
|
+
const n = s === os.auto ? `system-${e}` : e;
|
8680
|
+
vs.event({
|
8681
8681
|
category: "application-theme",
|
8682
8682
|
action: `theme-changed-to-${n}`
|
8683
8683
|
});
|
@@ -8685,12 +8685,12 @@ const Gs = {
|
|
8685
8685
|
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE)
|
8686
8686
|
return {
|
8687
8687
|
appTheme: At.light,
|
8688
|
-
themePreference:
|
8688
|
+
themePreference: os.light
|
8689
8689
|
};
|
8690
8690
|
const e = localStorage.getItem(Du);
|
8691
|
-
return !e || e ===
|
8691
|
+
return !e || e === os.auto ? {
|
8692
8692
|
appTheme: yi(),
|
8693
|
-
themePreference:
|
8693
|
+
themePreference: os.auto
|
8694
8694
|
} : {
|
8695
8695
|
appTheme: e,
|
8696
8696
|
themePreference: e
|
@@ -8709,22 +8709,22 @@ const Gs = {
|
|
8709
8709
|
}, Mu = Mt(null), Kw = ({ children: e }) => {
|
8710
8710
|
const [s, n] = R(!1), [a, r] = R(!1), [o, i] = R(zC), c = (p, _ = !1) => {
|
8711
8711
|
const E = {
|
8712
|
-
appTheme: p ===
|
8712
|
+
appTheme: p === os.auto ? yi() : p,
|
8713
8713
|
themePreference: p
|
8714
8714
|
};
|
8715
8715
|
i(E), _ || (KC(p), WC(E));
|
8716
8716
|
}, l = () => {
|
8717
|
-
c(
|
8717
|
+
c(os.auto, s);
|
8718
8718
|
};
|
8719
8719
|
k(() => {
|
8720
8720
|
const p = document.querySelector("html");
|
8721
8721
|
p && p.setAttribute("class", `theme__${o.appTheme}`);
|
8722
8722
|
}, [o.appTheme]), k(() => {
|
8723
8723
|
const p = window.matchMedia(Pu);
|
8724
|
-
return o.themePreference ===
|
8724
|
+
return o.themePreference === os.auto && p.addEventListener("change", l), () => {
|
8725
8725
|
p.removeEventListener("change", l);
|
8726
8726
|
};
|
8727
|
-
}, [o.themePreference]);
|
8727
|
+
}, [o.themePreference, s]);
|
8728
8728
|
const d = (p) => {
|
8729
8729
|
n(p);
|
8730
8730
|
}, u = (p) => {
|
@@ -8742,11 +8742,11 @@ const Gs = {
|
|
8742
8742
|
);
|
8743
8743
|
return /* @__PURE__ */ t.jsx(Mu.Provider, { value: m, children: e });
|
8744
8744
|
}, yr = () => {
|
8745
|
-
const e =
|
8745
|
+
const e = ls(Mu);
|
8746
8746
|
if (!e)
|
8747
8747
|
throw new Error("useTheme must be used within ThemeProvider");
|
8748
8748
|
return e;
|
8749
|
-
}, ku = Mt(null), Uu = () =>
|
8749
|
+
}, ku = Mt(null), Uu = () => ls(ku), Ww = ({ children: e }) => {
|
8750
8750
|
const [s, n] = R(""), a = te(
|
8751
8751
|
() => ({
|
8752
8752
|
email: s,
|
@@ -8924,7 +8924,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8924
8924
|
], u = () => {
|
8925
8925
|
r(!0);
|
8926
8926
|
}, m = (h) => {
|
8927
|
-
|
8927
|
+
vs.event({
|
8928
8928
|
category: "Help Nav",
|
8929
8929
|
action: `${h.name} Clicked`
|
8930
8930
|
});
|
@@ -8993,7 +8993,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
8993
8993
|
] })
|
8994
8994
|
] }) });
|
8995
8995
|
}, ob = ({ parentClassName: e = "", isCDMaterial: s = !1 }) => {
|
8996
|
-
const n = window?._env_?.ANNOUNCEMENT_BANNER_MSG, a = n ?
|
8996
|
+
const n = window?._env_?.ANNOUNCEMENT_BANNER_MSG, a = n ? As.sanitize(n) : null, r = () => {
|
8997
8997
|
const d = typeof Storage < "u" && localStorage.getItem(
|
8998
8998
|
// it will store date and time of next day i.e, it will hide banner until this date
|
8999
8999
|
"expiryDateOfHidingAnnouncementBanner"
|
@@ -9036,7 +9036,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9036
9036
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
9037
9037
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
9038
9038
|
} = window._env_, o = ze(() => {
|
9039
|
-
s(!0),
|
9039
|
+
s(!0), vs.event({
|
9040
9040
|
category: "PRIMARY_HEADER",
|
9041
9041
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
9042
9042
|
});
|
@@ -9139,7 +9139,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9139
9139
|
}, de = () => {
|
9140
9140
|
Q(), T(!O), v && b(!1), sr("clickedOkay", 1), q();
|
9141
9141
|
}, 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),
|
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), vs.event({
|
9143
9143
|
category: "Main Navigation",
|
9144
9144
|
action: "Help Clicked"
|
9145
9145
|
});
|
@@ -9300,7 +9300,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9300
9300
|
}
|
9301
9301
|
);
|
9302
9302
|
}, qw = ({ headerName: e }) => {
|
9303
|
-
const s = Tt(), n = qs(), a =
|
9303
|
+
const s = Tt(), n = qs(), a = Ls(), { serverMode: r } = ua(), [o, i] = R(!1), c = () => {
|
9304
9304
|
i((_) => !_);
|
9305
9305
|
}, l = () => {
|
9306
9306
|
n.push(Oe.CHARTS_DISCOVER);
|
@@ -9449,7 +9449,7 @@ const Xw = ({
|
|
9449
9449
|
disabled: i,
|
9450
9450
|
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
9451
|
children: /* @__PURE__ */ t.jsx(
|
9452
|
-
|
9452
|
+
Ss,
|
9453
9453
|
{
|
9454
9454
|
className: "icon-dim-16 fcn-0 dc__no-shrink rotate",
|
9455
9455
|
style: { "--rotateBy": l ? "180deg" : "0deg" }
|
@@ -9746,7 +9746,7 @@ const Yc = (e) => {
|
|
9746
9746
|
)
|
9747
9747
|
] });
|
9748
9748
|
};
|
9749
|
-
var De = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(De || {}),
|
9749
|
+
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
9750
|
const Wc = {
|
9751
9751
|
missing: 1,
|
9752
9752
|
degraded: 2,
|
@@ -9764,7 +9764,7 @@ const _b = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9764
9764
|
style: { background: e.isFocused ? "var(--N100)" : "transparent" },
|
9765
9765
|
children: [
|
9766
9766
|
/* @__PURE__ */ t.jsx(
|
9767
|
-
|
9767
|
+
Ds,
|
9768
9768
|
{
|
9769
9769
|
isChecked: e.isSelected || !1,
|
9770
9770
|
onChange: i,
|
@@ -10185,7 +10185,7 @@ const Ob = (e, s) => {
|
|
10185
10185
|
case "success":
|
10186
10186
|
return /* @__PURE__ */ t.jsx(Q_, { className: "icon-dim-20 green-tick", "data-testid": "success-green-tick" });
|
10187
10187
|
case "failed":
|
10188
|
-
return /* @__PURE__ */ t.jsx(
|
10188
|
+
return /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20" });
|
10189
10189
|
case "unknown":
|
10190
10190
|
return /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" });
|
10191
10191
|
case "inprogress":
|
@@ -10219,7 +10219,7 @@ const Ob = (e, s) => {
|
|
10219
10219
|
status: n || Re.UNKNOWN,
|
10220
10220
|
message: a || "",
|
10221
10221
|
clusterId: o?.clusterId || jr,
|
10222
|
-
endTime:
|
10222
|
+
endTime: Ts(r) ? r : ""
|
10223
10223
|
};
|
10224
10224
|
}, Li = (e) => {
|
10225
10225
|
if (!Object.keys(e || {}).length)
|
@@ -10237,9 +10237,9 @@ const Ob = (e, s) => {
|
|
10237
10237
|
return s.forEach(({ status: c, endTime: l }, d) => {
|
10238
10238
|
(rr[c] || d === s.length - 1 && c === Re.SUCCEEDED) && (i = l);
|
10239
10239
|
}), {
|
10240
|
-
triggeredOn:
|
10241
|
-
executionStartedOn:
|
10242
|
-
finishedOn:
|
10240
|
+
triggeredOn: Ts(r) ? r : "",
|
10241
|
+
executionStartedOn: Ts(a?.startTime) ? a?.startTime : "",
|
10242
|
+
finishedOn: Ts(i) ? i : "",
|
10243
10243
|
currentStatus: o,
|
10244
10244
|
workerDetails: $b(e)
|
10245
10245
|
};
|
@@ -10256,7 +10256,7 @@ const Ob = (e, s) => {
|
|
10256
10256
|
}, Fb = (e) => {
|
10257
10257
|
const s = Li(e);
|
10258
10258
|
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(st, { name: "ic-warning", size: 20, color: null }) : Vu(s.workerDetails.status) : /* @__PURE__ */ t.jsx(st, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx(st, { name: "ic-help-outline", size: 20, color: "N500" });
|
10259
|
-
}, Vb = (e = jr, s = bb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ks.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) =>
|
10259
|
+
}, Vb = (e = jr, s = bb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ks.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
10260
|
(s, n) => {
|
10261
10261
|
const a = n.health?.status?.toLowerCase() ?? "";
|
10262
10262
|
switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
|
@@ -10492,7 +10492,7 @@ const Ob = (e, s) => {
|
|
10492
10492
|
children: [
|
10493
10493
|
/* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-12 fw-6 lh-20", children: c ? "Show less" : "Show more" }),
|
10494
10494
|
/* @__PURE__ */ t.jsx(
|
10495
|
-
|
10495
|
+
is,
|
10496
10496
|
{
|
10497
10497
|
className: `dc__no-shrink icon-dim-16 flex scb-5 dc__transition--transform ${c ? "dc__flip-180" : ""}`
|
10498
10498
|
}
|
@@ -10517,7 +10517,7 @@ const Ob = (e, s) => {
|
|
10517
10517
|
}) => {
|
10518
10518
|
if (!e && !s)
|
10519
10519
|
return null;
|
10520
|
-
const m = a && (!
|
10520
|
+
const m = a && (!Ts(r) || !Pe(r).isBefore(Pe().subtract(Cb, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
|
10521
10521
|
_t,
|
10522
10522
|
{
|
10523
10523
|
to: `${Vb(o, i)}/${a}/logs`,
|
@@ -10655,13 +10655,13 @@ const Ob = (e, s) => {
|
|
10655
10655
|
namespace: x,
|
10656
10656
|
workflowExecutionStages: h
|
10657
10657
|
}) => {
|
10658
|
-
const { path: g, params: f } = Jt(), { pathname: N } =
|
10658
|
+
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
10659
|
const B = {
|
10660
10660
|
...S,
|
10661
10661
|
envId: A,
|
10662
10662
|
[I]: e
|
10663
10663
|
};
|
10664
|
-
return `${
|
10664
|
+
return `${Vs(g, B)}/${C}`;
|
10665
10665
|
}, T = () => {
|
10666
10666
|
b?.current && b.current.scrollIntoView({ behavior: "smooth" });
|
10667
10667
|
};
|
@@ -10764,9 +10764,9 @@ const Ob = (e, s) => {
|
|
10764
10764
|
resourceId: d
|
10765
10765
|
}) => {
|
10766
10766
|
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = qs(), { path: E } = Jt(), x = (S) => {
|
10767
|
-
e === De.CI ? (r({ offset: 0, size: 20 }), _(
|
10767
|
+
e === De.CI ? (r({ offset: 0, size: 20 }), _(Vs(E, { appId: m, pipelineId: S.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Vs(E, { envId: p, pipelineId: S.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Vs(E, { envId: p, appId: S.value, pipelineId: S.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Vs(E, { appId: m, envId: S.value, pipelineId: S.pipelineId })));
|
10768
10768
|
}, h = () => {
|
10769
|
-
|
10769
|
+
vs.event({
|
10770
10770
|
category: "pagination",
|
10771
10771
|
action: "auto",
|
10772
10772
|
label: `${e.toLowerCase()}-history`,
|
@@ -10818,7 +10818,7 @@ const Ob = (e, s) => {
|
|
10818
10818
|
)
|
10819
10819
|
] }),
|
10820
10820
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
10821
|
-
o ===
|
10821
|
+
o === Cs.SUCCESS && /* @__PURE__ */ t.jsx(zb, { handleViewAllHistory: i }),
|
10822
10822
|
Array.from(n).sort(([S], [y]) => y - S).map(([S, y], I) => /* @__PURE__ */ t.jsx(
|
10823
10823
|
qb,
|
10824
10824
|
{
|
@@ -10842,7 +10842,7 @@ const Ob = (e, s) => {
|
|
10842
10842
|
},
|
10843
10843
|
S
|
10844
10844
|
)),
|
10845
|
-
a && (o ===
|
10845
|
+
a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(zu, { callback: h })
|
10846
10846
|
] })
|
10847
10847
|
] });
|
10848
10848
|
}
|
@@ -11272,7 +11272,7 @@ const Ob = (e, s) => {
|
|
11272
11272
|
/* @__PURE__ */ t.jsx(ud, { className: "icon-dim-20 ml-8" })
|
11273
11273
|
] }) })
|
11274
11274
|
] });
|
11275
|
-
}, el = (e) => e && e ===
|
11275
|
+
}, el = (e) => e && e === Cs.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
|
11276
11276
|
async function rT({
|
11277
11277
|
appId: e,
|
11278
11278
|
envId: s,
|
@@ -11444,7 +11444,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11444
11444
|
children: [
|
11445
11445
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__transparent dc__align-items-center", children: [
|
11446
11446
|
/* @__PURE__ */ t.jsx(
|
11447
|
-
|
11447
|
+
is,
|
11448
11448
|
{
|
11449
11449
|
className: `icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white ${s ? "" : "dc__flip-n90 dc__opacity-0_5"}`
|
11450
11450
|
}
|
@@ -11492,7 +11492,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11492
11492
|
{
|
11493
11493
|
className: "mono fs-14 mb-0-imp text__white dc__word-break lh-20 dc__unset-pre dc__transparent--imp",
|
11494
11494
|
dangerouslySetInnerHTML: {
|
11495
|
-
__html:
|
11495
|
+
__html: As.sanitize(h)
|
11496
11496
|
}
|
11497
11497
|
}
|
11498
11498
|
)
|
@@ -11508,7 +11508,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11508
11508
|
] })
|
11509
11509
|
] });
|
11510
11510
|
}, 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(
|
11511
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(ws, { className: "icon-dim-20" }) }),
|
11512
11512
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
11513
11513
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
11514
11514
|
] }) }), hT = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -11740,7 +11740,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11740
11740
|
"data-testid": "logs-previous-search-match",
|
11741
11741
|
"aria-label": "Focus the previous search result match",
|
11742
11742
|
disabled: !A,
|
11743
|
-
children: /* @__PURE__ */ t.jsx(
|
11743
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-stroke__white dc__flip-180 icon-dim-14 dc__no-shrink" })
|
11744
11744
|
}
|
11745
11745
|
),
|
11746
11746
|
/* @__PURE__ */ t.jsx(
|
@@ -11752,7 +11752,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11752
11752
|
"data-testid": "logs-next-search-match",
|
11753
11753
|
"aria-label": "Focus the next search result match",
|
11754
11754
|
disabled: !A,
|
11755
|
-
children: /* @__PURE__ */ t.jsx(
|
11755
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-stroke__white icon-dim-14 dc__no-shrink" })
|
11756
11756
|
}
|
11757
11757
|
)
|
11758
11758
|
] })
|
@@ -11814,7 +11814,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11814
11814
|
{
|
11815
11815
|
className: "mono fs-14 mb-0-imp",
|
11816
11816
|
dangerouslySetInnerHTML: {
|
11817
|
-
__html:
|
11817
|
+
__html: As.sanitize(H)
|
11818
11818
|
}
|
11819
11819
|
}
|
11820
11820
|
)
|
@@ -11872,7 +11872,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11872
11872
|
{
|
11873
11873
|
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
11874
|
children: [
|
11875
|
-
!r && /* @__PURE__ */ t.jsx(
|
11875
|
+
!r && /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-20 mr-8" }),
|
11876
11876
|
n,
|
11877
11877
|
s === z.HELM_MANIFEST_PUSHED_TO_HELM_REPO && /* @__PURE__ */ t.jsxs("ol", { className: "m-0 pl-20", children: [
|
11878
11878
|
/* @__PURE__ */ t.jsx("li", { children: "Ensure provided repository path is valid" }),
|
@@ -11950,7 +11950,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11950
11950
|
{
|
11951
11951
|
isKebab: !0,
|
11952
11952
|
rootClassName: "flex p-4 dc__border dc__no-left-radius dc__right-radius-4 bg__primary dc__hover-n50",
|
11953
|
-
children: /* @__PURE__ */ t.jsx(
|
11953
|
+
children: /* @__PURE__ */ t.jsx(is, { className: "icon-dim-14 scn-6" })
|
11954
11954
|
}
|
11955
11955
|
),
|
11956
11956
|
/* @__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(
|
@@ -12224,7 +12224,7 @@ const vT = (e, s) => {
|
|
12224
12224
|
},
|
12225
12225
|
`${h.kind}/${h.name}`
|
12226
12226
|
)) : /* @__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(
|
12227
|
+
/* @__PURE__ */ t.jsx(ws, { className: "icon-dim-20" }),
|
12228
12228
|
/* @__PURE__ */ t.jsx("div", { children: "Checking resources status" })
|
12229
12229
|
] }) }) }),
|
12230
12230
|
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: [
|
@@ -12245,7 +12245,7 @@ const vT = (e, s) => {
|
|
12245
12245
|
] })
|
12246
12246
|
] })
|
12247
12247
|
] });
|
12248
|
-
},
|
12248
|
+
}, Ms = ({
|
12249
12249
|
type: e,
|
12250
12250
|
hideVerticalConnector: s,
|
12251
12251
|
deploymentDetailedData: n
|
@@ -12353,7 +12353,7 @@ const vT = (e, s) => {
|
|
12353
12353
|
}
|
12354
12354
|
),
|
12355
12355
|
(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
|
-
|
12356
|
+
Ss,
|
12357
12357
|
{
|
12358
12358
|
style: { marginLeft: "auto", "--rotateBy": `${180 * +!i}deg` },
|
12359
12359
|
className: "icon-dim-24 rotate pointer",
|
@@ -12483,7 +12483,7 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12483
12483
|
"data-testid": "deployment-history-steps-status",
|
12484
12484
|
children: [
|
12485
12485
|
/* @__PURE__ */ t.jsx(
|
12486
|
-
|
12486
|
+
Ms,
|
12487
12487
|
{
|
12488
12488
|
type: z.DEPLOYMENT_INITIATED,
|
12489
12489
|
deploymentDetailedData: e
|
@@ -12491,7 +12491,7 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12491
12491
|
),
|
12492
12492
|
s && e.deploymentStatusBreakdown[z.HELM_PACKAGE_GENERATED] ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12493
12493
|
/* @__PURE__ */ t.jsx(
|
12494
|
-
|
12494
|
+
Ms,
|
12495
12495
|
{
|
12496
12496
|
type: z.HELM_PACKAGE_GENERATED,
|
12497
12497
|
hideVerticalConnector: !r,
|
@@ -12499,7 +12499,7 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12499
12499
|
}
|
12500
12500
|
),
|
12501
12501
|
r && /* @__PURE__ */ t.jsx(
|
12502
|
-
|
12502
|
+
Ms,
|
12503
12503
|
{
|
12504
12504
|
type: z.HELM_MANIFEST_PUSHED_TO_HELM_REPO,
|
12505
12505
|
hideVerticalConnector: !0,
|
@@ -12516,7 +12516,7 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12516
12516
|
}
|
12517
12517
|
),
|
12518
12518
|
/* @__PURE__ */ t.jsx(
|
12519
|
-
|
12519
|
+
Ms,
|
12520
12520
|
{
|
12521
12521
|
type: z.GIT_COMMIT,
|
12522
12522
|
deploymentDetailedData: e
|
@@ -12531,7 +12531,7 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12531
12531
|
}
|
12532
12532
|
),
|
12533
12533
|
/* @__PURE__ */ t.jsx(
|
12534
|
-
|
12534
|
+
Ms,
|
12535
12535
|
{
|
12536
12536
|
type: z.ARGOCD_SYNC,
|
12537
12537
|
deploymentDetailedData: e
|
@@ -12546,14 +12546,14 @@ const IT = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
12546
12546
|
}
|
12547
12547
|
),
|
12548
12548
|
/* @__PURE__ */ t.jsx(
|
12549
|
-
|
12549
|
+
Ms,
|
12550
12550
|
{
|
12551
12551
|
type: z.KUBECTL_APPLY,
|
12552
12552
|
deploymentDetailedData: e
|
12553
12553
|
}
|
12554
12554
|
),
|
12555
12555
|
/* @__PURE__ */ t.jsx(
|
12556
|
-
|
12556
|
+
Ms,
|
12557
12557
|
{
|
12558
12558
|
type: z.APP_HEALTH,
|
12559
12559
|
hideVerticalConnector: !0,
|
@@ -12661,7 +12661,7 @@ const jT = ({
|
|
12661
12661
|
tabType: s,
|
12662
12662
|
onCollapseBtnClick: n
|
12663
12663
|
}) => {
|
12664
|
-
const { pathname: a } =
|
12664
|
+
const { pathname: a } = Ls(), r = (c) => {
|
12665
12665
|
const { title: l, subtitle: d, strikeThrough: u, iconConfig: m } = c;
|
12666
12666
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12667
12667
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col flex-grow-1 mw-none", children: [
|
@@ -12830,7 +12830,7 @@ const Zu = {
|
|
12830
12830
|
const { value: A } = C.target;
|
12831
12831
|
c?.activeTab !== A && c?.onClick?.(A);
|
12832
12832
|
}, 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(
|
12833
|
+
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
12834
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12835
12835
|
] }), g = () => {
|
12836
12836
|
const { tabs: C, activeTab: A } = c;
|
@@ -12960,7 +12960,7 @@ const Zu = {
|
|
12960
12960
|
]
|
12961
12961
|
}
|
12962
12962
|
);
|
12963
|
-
},
|
12963
|
+
}, ks = ({ code: e, image: s, title: n, subTitle: a, imageType: r, heightToDeduct: o, redirectURL: i, reload: c }) => {
|
12964
12964
|
const { push: l } = qs(), d = () => {
|
12965
12965
|
l(i || `/${G.APP_LIST}`);
|
12966
12966
|
}, u = (x) => {
|
@@ -13017,7 +13017,7 @@ const Zu = {
|
|
13017
13017
|
switch (e) {
|
13018
13018
|
case He.BAD_REQUEST:
|
13019
13019
|
return /* @__PURE__ */ t.jsx(
|
13020
|
-
|
13020
|
+
ks,
|
13021
13021
|
{
|
13022
13022
|
code: He.BAD_REQUEST,
|
13023
13023
|
title: Ke.BAD_REQUEST,
|
@@ -13030,7 +13030,7 @@ const Zu = {
|
|
13030
13030
|
);
|
13031
13031
|
case He.UNAUTHORIZED:
|
13032
13032
|
return /* @__PURE__ */ t.jsx(
|
13033
|
-
|
13033
|
+
ks,
|
13034
13034
|
{
|
13035
13035
|
code: He.UNAUTHORIZED,
|
13036
13036
|
title: Ke.UNAUTHORIZED,
|
@@ -13042,7 +13042,7 @@ const Zu = {
|
|
13042
13042
|
);
|
13043
13043
|
case He.PERMISSION_DENIED:
|
13044
13044
|
return /* @__PURE__ */ t.jsx(
|
13045
|
-
|
13045
|
+
ks,
|
13046
13046
|
{
|
13047
13047
|
code: He.PERMISSION_DENIED,
|
13048
13048
|
title: Ke.FORBIDDEN,
|
@@ -13054,7 +13054,7 @@ const Zu = {
|
|
13054
13054
|
);
|
13055
13055
|
case He.NOT_FOUND:
|
13056
13056
|
return /* @__PURE__ */ t.jsx(
|
13057
|
-
|
13057
|
+
ks,
|
13058
13058
|
{
|
13059
13059
|
code: He.NOT_FOUND,
|
13060
13060
|
title: Ke.PAGE_NOT_FOUND,
|
@@ -13067,7 +13067,7 @@ const Zu = {
|
|
13067
13067
|
);
|
13068
13068
|
case He.INTERNAL_SERVER_ERROR:
|
13069
13069
|
return /* @__PURE__ */ t.jsx(
|
13070
|
-
|
13070
|
+
ks,
|
13071
13071
|
{
|
13072
13072
|
code: He.INTERNAL_SERVER_ERROR,
|
13073
13073
|
title: Ke.INTERNAL_SERVER_ERROR,
|
@@ -13080,7 +13080,7 @@ const Zu = {
|
|
13080
13080
|
);
|
13081
13081
|
case He.BAD_GATEWAY:
|
13082
13082
|
return /* @__PURE__ */ t.jsx(
|
13083
|
-
|
13083
|
+
ks,
|
13084
13084
|
{
|
13085
13085
|
code: He.BAD_GATEWAY,
|
13086
13086
|
title: Ke.BAD_GATEWAY,
|
@@ -13093,7 +13093,7 @@ const Zu = {
|
|
13093
13093
|
);
|
13094
13094
|
case He.SERVICE_TEMPORARY_UNAVAILABLE:
|
13095
13095
|
return /* @__PURE__ */ t.jsx(
|
13096
|
-
|
13096
|
+
ks,
|
13097
13097
|
{
|
13098
13098
|
code: He.SERVICE_TEMPORARY_UNAVAILABLE,
|
13099
13099
|
title: Ke.SERVICE_TEMPORARY_UNAVAILABLE,
|
@@ -13235,7 +13235,7 @@ const Zu = {
|
|
13235
13235
|
onClick: c,
|
13236
13236
|
children: [
|
13237
13237
|
/* @__PURE__ */ t.jsx(
|
13238
|
-
|
13238
|
+
is,
|
13239
13239
|
{
|
13240
13240
|
className: "icon-dim-16 fsn-6 rotate",
|
13241
13241
|
style: { "--rotateBy": i ? "360deg" : "270deg" }
|
@@ -13297,7 +13297,7 @@ const Zu = {
|
|
13297
13297
|
compareToObfuscatedData: Object.keys(i).length ? i : void 0,
|
13298
13298
|
compareWithObfuscatedData: Object.keys(c).length ? c : void 0
|
13299
13299
|
};
|
13300
|
-
},
|
13300
|
+
}, xs = (e, s) => {
|
13301
13301
|
const { sortBy: n, sortOrder: a } = s ?? { sortBy: "", sortOrder: null };
|
13302
13302
|
try {
|
13303
13303
|
return JSON.stringify(
|
@@ -13324,26 +13324,26 @@ const Zu = {
|
|
13324
13324
|
displayName: "data",
|
13325
13325
|
...ol(e) ? {
|
13326
13326
|
value: null,
|
13327
|
-
resolvedValue:
|
13327
|
+
resolvedValue: xs(u, o)
|
13328
13328
|
} : {
|
13329
|
-
value:
|
13329
|
+
value: xs(u, o)
|
13330
13330
|
}
|
13331
13331
|
}, d = {
|
13332
13332
|
displayName: "data",
|
13333
13333
|
...ol(s) ? {
|
13334
13334
|
value: null,
|
13335
|
-
resolvedValue:
|
13335
|
+
resolvedValue: xs(m, o)
|
13336
13336
|
} : {
|
13337
|
-
value:
|
13337
|
+
value: xs(m, o)
|
13338
13338
|
}
|
13339
13339
|
};
|
13340
13340
|
} else
|
13341
13341
|
l = {
|
13342
13342
|
displayName: "data",
|
13343
|
-
value:
|
13343
|
+
value: xs(i, o)
|
13344
13344
|
}, d = {
|
13345
13345
|
displayName: "data",
|
13346
|
-
value:
|
13346
|
+
value: xs(c, o)
|
13347
13347
|
};
|
13348
13348
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
13349
13349
|
}, Da = (e, s) => {
|
@@ -13383,7 +13383,7 @@ const Zu = {
|
|
13383
13383
|
}, ll = (e, s, n) => {
|
13384
13384
|
const a = MT(e), r = {
|
13385
13385
|
displayName: "data",
|
13386
|
-
value: a ?
|
13386
|
+
value: a ? xs(a, n) : ""
|
13387
13387
|
};
|
13388
13388
|
return zn(
|
13389
13389
|
{
|
@@ -13404,7 +13404,7 @@ const Zu = {
|
|
13404
13404
|
}, ul = (e, s) => {
|
13405
13405
|
const n = {
|
13406
13406
|
displayName: "data",
|
13407
|
-
value: e?.data ?
|
13407
|
+
value: e?.data ? xs(e.data, s) : ""
|
13408
13408
|
};
|
13409
13409
|
return zn(
|
13410
13410
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
@@ -14094,7 +14094,7 @@ const Zu = {
|
|
14094
14094
|
name: "deployment-config-diff-deployment-selector",
|
14095
14095
|
inputId: "deployment-config-diff-deployment-selector",
|
14096
14096
|
classNamePrefix: "deployment-config-diff-deployment-selector",
|
14097
|
-
variant:
|
14097
|
+
variant: Rs.BORDER_LESS,
|
14098
14098
|
options: L,
|
14099
14099
|
placeholder: "Select Deployment",
|
14100
14100
|
value: _n(L, f, null),
|
@@ -14136,7 +14136,7 @@ const Zu = {
|
|
14136
14136
|
scrollIntoViewId: `${E}${x ? `-${x}` : ""}`,
|
14137
14137
|
navHelpText: Q(),
|
14138
14138
|
isNavHelpTextShowingError: u,
|
14139
|
-
goBackURL:
|
14139
|
+
goBackURL: Vs(p.split("/:resourceType")[0], { ..._ }),
|
14140
14140
|
selectorsConfig: q,
|
14141
14141
|
sortingConfig: Ie,
|
14142
14142
|
scopeVariablesConfig: H
|
@@ -14152,7 +14152,7 @@ const Zu = {
|
|
14152
14152
|
resourceId: i,
|
14153
14153
|
renderRunSource: c
|
14154
14154
|
}) => {
|
14155
|
-
const { path: l, params: d } = Jt(), { pathname: u, search: m } =
|
14155
|
+
const { path: l, params: d } = Jt(), { pathname: u, search: m } = Ls(), { isSuperAdmin: p } = ua(), _ = te(() => sm(r), [r]), { currentWfrId: E, previousWfrId: x } = te(
|
14156
14156
|
() => XT({ pipelineDeployments: _, wfrId: a }),
|
14157
14157
|
[_, a]
|
14158
14158
|
), h = !!x, g = au({
|
@@ -14180,7 +14180,7 @@ const Zu = {
|
|
14180
14180
|
return q.status !== "fulfilled" || !q.value || q.value.forEach((de, Ie) => {
|
14181
14181
|
Q[Ie].status !== "fulfilled" || !Q[Ie].value || Q[Ie].value.result.isAppAdmin || (Q[Ie].value.result.secretsData = de.secretsData);
|
14182
14182
|
}), Q;
|
14183
|
-
}, [E, f]), b = (X, q) => `${
|
14183
|
+
}, [E, f]), b = (X, q) => `${Vs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`, O = te(() => {
|
14184
14184
|
if (!y && I) {
|
14185
14185
|
const X = h && I[1].status === "fulfilled" ? I[1].value.result : {
|
14186
14186
|
configMapData: null,
|
@@ -14222,7 +14222,7 @@ const Zu = {
|
|
14222
14222
|
subTitle: "Configurations used for this deployment execution is not available"
|
14223
14223
|
}
|
14224
14224
|
) }) : /* @__PURE__ */ t.jsxs(Jl, { children: [
|
14225
|
-
/* @__PURE__ */ t.jsx(
|
14225
|
+
/* @__PURE__ */ t.jsx($s, { path: `${l}/:resourceType(${Object.values(rt).join("|")})/:resourceName?`, children: /* @__PURE__ */ t.jsx(
|
14226
14226
|
QT,
|
14227
14227
|
{
|
14228
14228
|
...O,
|
@@ -14242,7 +14242,7 @@ const Zu = {
|
|
14242
14242
|
isCompareDeploymentConfigNotAvailable: w
|
14243
14243
|
}
|
14244
14244
|
) }),
|
14245
|
-
/* @__PURE__ */ t.jsx(
|
14245
|
+
/* @__PURE__ */ t.jsx($s, { 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(Me, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14246
14246
|
/* @__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
14247
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
14248
14248
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(j).map(
|
@@ -15051,7 +15051,7 @@ const uS = 100, Qe = Ce.memo(
|
|
15051
15051
|
initialTab: n.mode,
|
15052
15052
|
className: "flex left",
|
15053
15053
|
onChange: (a) => {
|
15054
|
-
|
15054
|
+
vs.event({
|
15055
15055
|
category: "JSON-YAML Switch",
|
15056
15056
|
action: `${a.target.value} view`
|
15057
15057
|
}), s(a.target.value);
|
@@ -15070,11 +15070,11 @@ const uS = 100, Qe = Ce.memo(
|
|
15070
15070
|
e.text,
|
15071
15071
|
e.children
|
15072
15072
|
] }), gS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
|
15073
|
-
/* @__PURE__ */ t.jsx(
|
15073
|
+
/* @__PURE__ */ t.jsx(ds, { className: "code-editor__information-info-icon" }),
|
15074
15074
|
e.text,
|
15075
15075
|
e.children
|
15076
15076
|
] }), xS = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
|
15077
|
-
/* @__PURE__ */ t.jsx(
|
15077
|
+
/* @__PURE__ */ t.jsx(ws, { className: "code-editor__information-info-icon" }),
|
15078
15078
|
e.text,
|
15079
15079
|
e.children
|
15080
15080
|
] }), ES = () => {
|
@@ -15226,7 +15226,7 @@ const TS = () => (e) => {
|
|
15226
15226
|
const s = document.createElement("span");
|
15227
15227
|
s.className = `flex h-100 ${e ? "" : "is-closed"}`;
|
15228
15228
|
const n = /* @__PURE__ */ t.jsx(
|
15229
|
-
|
15229
|
+
is,
|
15230
15230
|
{
|
15231
15231
|
className: "icon-dim-12 scn-6 rotate",
|
15232
15232
|
style: { "--rotateBy": e ? "0deg" : "-90deg" }
|
@@ -15241,7 +15241,7 @@ const TS = () => (e) => {
|
|
15241
15241
|
{
|
15242
15242
|
className: "m-0",
|
15243
15243
|
dangerouslySetInnerHTML: {
|
15244
|
-
__html:
|
15244
|
+
__html: As.sanitize(s.typeInfo.replace(/`([^`]+)`/g, "<code>$1</code>"))
|
15245
15245
|
}
|
15246
15246
|
}
|
15247
15247
|
),
|
@@ -15468,7 +15468,7 @@ const TS = () => (e) => {
|
|
15468
15468
|
ariaLabel: "find-replace-expand-button",
|
15469
15469
|
showAriaLabelInTippy: !1,
|
15470
15470
|
icon: /* @__PURE__ */ t.jsx(
|
15471
|
-
|
15471
|
+
is,
|
15472
15472
|
{
|
15473
15473
|
className: "rotate",
|
15474
15474
|
style: {
|
@@ -15818,7 +15818,7 @@ const TS = () => (e) => {
|
|
15818
15818
|
}
|
15819
15819
|
);
|
15820
15820
|
}, xm = Mt(null), wr = () => {
|
15821
|
-
const e =
|
15821
|
+
const e = ls(xm);
|
15822
15822
|
if (!e)
|
15823
15823
|
throw new Error("cannot be rendered outside the component");
|
15824
15824
|
return e;
|
@@ -15857,7 +15857,7 @@ const TS = () => (e) => {
|
|
15857
15857
|
]
|
15858
15858
|
}
|
15859
15859
|
), 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(
|
15860
|
+
/* @__PURE__ */ t.jsx(ds, { className: "code-editor__status-info-icon" }),
|
15861
15861
|
s,
|
15862
15862
|
n
|
15863
15863
|
] }), sv = ({ className: e, children: s, text: n }) => /* @__PURE__ */ t.jsxs(
|
@@ -15865,7 +15865,7 @@ const TS = () => (e) => {
|
|
15865
15865
|
{
|
15866
15866
|
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
15867
|
children: [
|
15868
|
-
/* @__PURE__ */ t.jsx(
|
15868
|
+
/* @__PURE__ */ t.jsx(ws, { className: "code-editor__status-info-icon" }),
|
15869
15869
|
n,
|
15870
15870
|
s
|
15871
15871
|
]
|
@@ -16347,7 +16347,7 @@ const xv = ({
|
|
16347
16347
|
] });
|
16348
16348
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
16349
16349
|
!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(
|
16350
|
+
/* @__PURE__ */ t.jsx(ws, { className: "mr-8 ml-14 icon-dim-20" }),
|
16351
16351
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
16352
16352
|
vt[o.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
16353
16353
|
i ? ` “${i}”` : "",
|
@@ -16629,7 +16629,7 @@ const xv = ({
|
|
16629
16629
|
fullScreenView: n,
|
16630
16630
|
setFullScreenView: a
|
16631
16631
|
}) => {
|
16632
|
-
const { pathname: r } =
|
16632
|
+
const { pathname: r } = Ls(), { registerShortcut: o, unregisterShortcut: i } = aa(), c = ze(() => {
|
16633
16633
|
a(!n);
|
16634
16634
|
}, [n]), l = !s || r.includes("/logs");
|
16635
16635
|
return k(() => (l && e.length && o({ callback: c, keys: e }), () => {
|
@@ -16663,7 +16663,7 @@ const xv = ({
|
|
16663
16663
|
type: "button",
|
16664
16664
|
onClick: e,
|
16665
16665
|
"aria-label": "scroll-to-top",
|
16666
|
-
children: /* @__PURE__ */ t.jsx(
|
16666
|
+
children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate", style: { "--rotateBy": "180deg" } })
|
16667
16667
|
}
|
16668
16668
|
) }),
|
16669
16669
|
/* @__PURE__ */ t.jsx(ie, { alwaysShowTippyOnHover: !0, content: "Scroll to Bottom", placement: "left", children: /* @__PURE__ */ t.jsx(
|
@@ -16674,7 +16674,7 @@ const xv = ({
|
|
16674
16674
|
type: "button",
|
16675
16675
|
onClick: s,
|
16676
16676
|
"aria-label": "scroll-to-button",
|
16677
|
-
children: /* @__PURE__ */ t.jsx(
|
16677
|
+
children: /* @__PURE__ */ t.jsx(Ss, { className: "rotate" })
|
16678
16678
|
}
|
16679
16679
|
) })
|
16680
16680
|
] }) }), Tv = ({
|
@@ -16813,8 +16813,8 @@ const Sv = (e) => {
|
|
16813
16813
|
const { registerShortcut: n, unregisterShortcut: a } = aa();
|
16814
16814
|
return k(() => (n({ keys: ["Escape"], callback: s }), () => {
|
16815
16815
|
a(["Escape"]);
|
16816
|
-
}), [s]), k(() => (
|
16817
|
-
|
16816
|
+
}), [s]), k(() => (js(!0), Uc({ identifier: dc, preventFocus: !0 }), () => {
|
16817
|
+
js(!1), Uc({ identifier: dc, preventFocus: !1 });
|
16818
16818
|
}), []), bf(
|
16819
16819
|
/* @__PURE__ */ t.jsx(
|
16820
16820
|
mn.div,
|
@@ -16831,7 +16831,7 @@ const Sv = (e) => {
|
|
16831
16831
|
}, Nm = Mt(null), hD = ({ children: e }) => {
|
16832
16832
|
const s = Y(null), [n, a] = R(""), r = te(() => ({ modalKey: n, setModalKey: a, settersRef: s }), [n]);
|
16833
16833
|
return /* @__PURE__ */ t.jsx(Nm.Provider, { value: r, children: e });
|
16834
|
-
}, Cm = () =>
|
16834
|
+
}, Cm = () => ls(Nm), yv = {
|
16835
16835
|
[P.medium]: P.xxs,
|
16836
16836
|
[P.large]: P.xs
|
16837
16837
|
}, Dr = ({
|
@@ -16909,7 +16909,7 @@ const Sv = (e) => {
|
|
16909
16909
|
onBlur: A,
|
16910
16910
|
type: E,
|
16911
16911
|
ref: C,
|
16912
|
-
className: `${
|
16912
|
+
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: p, borderRadiusConfig: _ })} ${h ? `custom-input__with-icon-button--${u}` : ""} w-100 dc__overflow-auto`
|
16913
16913
|
}
|
16914
16914
|
),
|
16915
16915
|
h && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink dc__position-abs custom-input__icon-button--${u}`, children: /* @__PURE__ */ t.jsx(
|
@@ -17337,7 +17337,7 @@ const Sv = (e) => {
|
|
17337
17337
|
renderTargetConfigInfo: l,
|
17338
17338
|
stage: d
|
17339
17339
|
}) => {
|
17340
|
-
const { url: u } = Jt(), { pathname: m } =
|
17340
|
+
const { url: u } = Jt(), { pathname: m } = Ls();
|
17341
17341
|
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
17342
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4 cn-9 fs-13 fw-6 lh-20", children: [
|
17343
17343
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__no-shrink dc__gap-4", "data-testid": "deployment-history-start-heading", children: [
|
@@ -17380,11 +17380,11 @@ const Sv = (e) => {
|
|
17380
17380
|
)
|
17381
17381
|
] }, p.id) : null;
|
17382
17382
|
}),
|
17383
|
-
!m.includes("source-code") && /* @__PURE__ */ t.jsx(
|
17383
|
+
!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
17384
|
] }) });
|
17385
|
-
},
|
17385
|
+
}, Bs = () => /* @__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
17386
|
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(st, { size: 20, name: "ic-success", color: null }) }),
|
17387
|
-
|
17387
|
+
Bs()
|
17388
17388
|
] }), Pv = ht(
|
17389
17389
|
({ 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(
|
17390
17390
|
"circle",
|
@@ -17449,17 +17449,17 @@ const Sv = (e) => {
|
|
17449
17449
|
] }),
|
17450
17450
|
!!x && !!h && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17451
17451
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17452
|
-
|
17452
|
+
Bs(),
|
17453
17453
|
h(x, !0),
|
17454
|
-
|
17454
|
+
Bs()
|
17455
17455
|
] }) }),
|
17456
17456
|
h(x)
|
17457
17457
|
] }),
|
17458
17458
|
_ && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17459
17459
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17460
|
-
|
17460
|
+
Bs(),
|
17461
17461
|
/* @__PURE__ */ t.jsx(U_, { className: "icon-dim-20 dc__no-shrink scn-9" }),
|
17462
|
-
|
17462
|
+
Bs()
|
17463
17463
|
] }) }),
|
17464
17464
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 py-8", children: [
|
17465
17465
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-6 lh-20", children: "Env" }),
|
@@ -17469,7 +17469,7 @@ const Sv = (e) => {
|
|
17469
17469
|
] }),
|
17470
17470
|
!!C?.executionStartedOn && /* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17471
17471
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17472
|
-
|
17472
|
+
Bs(),
|
17473
17473
|
Sl()
|
17474
17474
|
] }) }),
|
17475
17475
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 pr-20 flexbox dc__gap-8 py-8", children: [
|
@@ -17479,7 +17479,7 @@ const Sv = (e) => {
|
|
17479
17479
|
] }),
|
17480
17480
|
/* @__PURE__ */ t.jsxs("div", { className: "display-grid trigger-details__grid", children: [
|
17481
17481
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
17482
|
-
|
17482
|
+
Bs(),
|
17483
17483
|
/* @__PURE__ */ t.jsx(
|
17484
17484
|
Mv,
|
17485
17485
|
{
|
@@ -17549,7 +17549,7 @@ const Sv = (e) => {
|
|
17549
17549
|
workflowId: e.id
|
17550
17550
|
}, L = `app/cd-pipeline/workflow/download/${b}/${j}/${O}/${T}`;
|
17551
17551
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Me, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(Jl, { children: [
|
17552
|
-
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(
|
17552
|
+
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs($s, { path: `${v}/logs`, children: [
|
17553
17553
|
/* @__PURE__ */ t.jsx(
|
17554
17554
|
ET,
|
17555
17555
|
{
|
@@ -17567,7 +17567,7 @@ const Sv = (e) => {
|
|
17567
17567
|
scrollToBottom: C
|
17568
17568
|
}
|
17569
17569
|
)
|
17570
|
-
] }) : /* @__PURE__ */ t.jsx(
|
17570
|
+
] }) : /* @__PURE__ */ t.jsx($s, { path: `${v}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
17571
17571
|
jT,
|
17572
17572
|
{
|
17573
17573
|
deploymentStatus: e.status,
|
@@ -17580,7 +17580,7 @@ const Sv = (e) => {
|
|
17580
17580
|
renderDeploymentApprovalInfo: h
|
17581
17581
|
}
|
17582
17582
|
) }),
|
17583
|
-
/* @__PURE__ */ t.jsx(
|
17583
|
+
/* @__PURE__ */ t.jsx($s, { path: `${v}/source-code`, children: /* @__PURE__ */ t.jsx(
|
17584
17584
|
Tv,
|
17585
17585
|
{
|
17586
17586
|
gitTriggers: e.gitTriggers,
|
@@ -17603,7 +17603,7 @@ const Sv = (e) => {
|
|
17603
17603
|
targetPlatforms: I
|
17604
17604
|
}
|
17605
17605
|
) }),
|
17606
|
-
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(
|
17606
|
+
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx($s, { path: `${v}${Oe.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
17607
17607
|
eS,
|
17608
17608
|
{
|
17609
17609
|
appName: S,
|
@@ -17616,7 +17616,7 @@ const Sv = (e) => {
|
|
17616
17616
|
renderRunSource: E
|
17617
17617
|
}
|
17618
17618
|
) }),
|
17619
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(
|
17619
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx($s, { path: `${v}/artifacts`, children: e.IsVirtualEnvironment && f ? f({
|
17620
17620
|
status: e.status,
|
17621
17621
|
title: e.helmPackageName,
|
17622
17622
|
params: { ...w, appId: Number(b), envId: Number(j) }
|
@@ -17681,7 +17681,7 @@ const Sv = (e) => {
|
|
17681
17681
|
!!v && !!O
|
17682
17682
|
), V = Ar(T?.targetPlatforms), X = (F, ce, le) => {
|
17683
17683
|
if (le) {
|
17684
|
-
p?.result?.cdWorkflows?.length && n(Um(p.result.cdWorkflows, "id")), u(
|
17684
|
+
p?.result?.cdWorkflows?.length && n(Um(p.result.cdWorkflows, "id")), u(Cs.SUSPEND);
|
17685
17685
|
return;
|
17686
17686
|
}
|
17687
17687
|
if (F === ce?.id) {
|
@@ -17693,10 +17693,10 @@ const Sv = (e) => {
|
|
17693
17693
|
...ee ? { targetConfig: ee } : {},
|
17694
17694
|
...oe ? { userApprovalMetadata: oe } : {}
|
17695
17695
|
};
|
17696
|
-
n((Ee) => (Ee.set(F, { ...ce, ...ve }), new Map(Ee))), d ===
|
17696
|
+
n((Ee) => (Ee.set(F, { ...ce, ...ve }), new Map(Ee))), d === Cs.FETCHING && u(Cs.SUCCESS);
|
17697
17697
|
}
|
17698
17698
|
};
|
17699
|
-
let q = !!d && d !==
|
17699
|
+
let q = !!d && d !== Cs.SUSPEND;
|
17700
17700
|
(w?.result?.artifactId === 0 || T?.artifactId === 0) && (q = !1);
|
17701
17701
|
const [Q, de, Ie] = Kt(
|
17702
17702
|
() => oT({
|
@@ -18628,7 +18628,7 @@ const RD = {
|
|
18628
18628
|
onKeyDown: E,
|
18629
18629
|
children: [
|
18630
18630
|
e && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink icon-dim-40 p-8 ${r ? "" : "dc__visible-hover--child"}`, children: /* @__PURE__ */ t.jsx(
|
18631
|
-
|
18631
|
+
Ds,
|
18632
18632
|
{
|
18633
18633
|
isChecked: r,
|
18634
18634
|
onChange: E,
|
@@ -18946,7 +18946,7 @@ const RD = {
|
|
18946
18946
|
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
18947
|
initialSortKey: n ? g : null
|
18948
18948
|
}), w = Y(), L = Y();
|
18949
|
-
w.current || (w.current = N.reduce((D, M) => ({ ...D, [M.id]:
|
18949
|
+
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
18950
|
const B = te(
|
18951
18951
|
() => N.reduce(
|
18952
18952
|
(D, M) => {
|
@@ -19002,10 +19002,10 @@ const RD = {
|
|
19002
19002
|
const D = q(), M = [D, ...N], { id: $ } = D;
|
19003
19003
|
p?.(!X(M)), S(!0), C(M), w.current = {
|
19004
19004
|
...w.current || {},
|
19005
|
-
[$]:
|
19005
|
+
[$]: hs()
|
19006
19006
|
}, L.current = {
|
19007
19007
|
...L.current || {},
|
19008
|
-
[$]:
|
19008
|
+
[$]: hs()
|
19009
19009
|
};
|
19010
19010
|
};
|
19011
19011
|
k(() => {
|
@@ -19030,9 +19030,9 @@ const RD = {
|
|
19030
19030
|
if (M.length === 0 && !c) {
|
19031
19031
|
const $ = q(), { id: ee } = $;
|
19032
19032
|
S(!0), p?.(!X([$])), C([$]), w.current = {
|
19033
|
-
[ee]:
|
19033
|
+
[ee]: hs()
|
19034
19034
|
}, L.current = {
|
19035
|
-
[ee]:
|
19035
|
+
[ee]: hs()
|
19036
19036
|
}, o?.(D.id);
|
19037
19037
|
return;
|
19038
19038
|
}
|
@@ -19164,7 +19164,7 @@ const RD = {
|
|
19164
19164
|
onClick: Ie(D),
|
19165
19165
|
disabled: b,
|
19166
19166
|
children: /* @__PURE__ */ t.jsx(
|
19167
|
-
|
19167
|
+
us,
|
19168
19168
|
{
|
19169
19169
|
"aria-label": "delete-row",
|
19170
19170
|
className: "icon-dim-16 fcn-4 dc__align-self-start"
|
@@ -19204,7 +19204,7 @@ const RD = {
|
|
19204
19204
|
showError: s,
|
19205
19205
|
showWarning: n,
|
19206
19206
|
className: a
|
19207
|
-
}) => s ? /* @__PURE__ */ t.jsx(
|
19207
|
+
}) => 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
19208
|
!!n && /* @__PURE__ */ t.jsx("span", { className: "dc__bullet" }),
|
19209
19209
|
s
|
19210
19210
|
] }, s)) : e }), EA = ({
|
@@ -19243,7 +19243,7 @@ const RD = {
|
|
19243
19243
|
switch (n) {
|
19244
19244
|
case "link":
|
19245
19245
|
return /* @__PURE__ */ t.jsx(
|
19246
|
-
|
19246
|
+
Os,
|
19247
19247
|
{
|
19248
19248
|
className: `${h} dc__no-decor flexbox-col ${p ? "cursor-not-allowed" : ""}`,
|
19249
19249
|
"aria-disabled": p,
|
@@ -19753,7 +19753,7 @@ const Il = ({
|
|
19753
19753
|
let v = { isValid: !0, messages: [] };
|
19754
19754
|
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
19755
|
v.messages.map((b) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
19756
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
19756
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
19757
19757
|
/* @__PURE__ */ t.jsx("span", { children: b })
|
19758
19758
|
] }, b)),
|
19759
19759
|
o === ss.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -19881,7 +19881,7 @@ const Il = ({
|
|
19881
19881
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
19882
19882
|
onClick: u,
|
19883
19883
|
"data-testid": `delete-tag-${e}`,
|
19884
|
-
children: /* @__PURE__ */ t.jsx(
|
19884
|
+
children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-20 mt-4" })
|
19885
19885
|
}
|
19886
19886
|
)
|
19887
19887
|
] });
|
@@ -19925,7 +19925,7 @@ const wA = (e) => {
|
|
19925
19925
|
dataTestId: "file-upload-remove-file-button",
|
19926
19926
|
ariaLabel: "Remove File",
|
19927
19927
|
showAriaLabelInTippy: !1,
|
19928
|
-
icon: /* @__PURE__ */ t.jsx(
|
19928
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
19929
19929
|
onClick: c,
|
19930
19930
|
variant: he.borderLess,
|
19931
19931
|
style: be.negativeGrey,
|
@@ -19974,14 +19974,14 @@ const wA = (e) => {
|
|
19974
19974
|
f.current || (f.current = e.reduce(
|
19975
19975
|
(T, j) => ({
|
19976
19976
|
...T,
|
19977
|
-
[j.id]: s.reduce((w, { key: L }) => ({ ...w, [L]:
|
19977
|
+
[j.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: hs() }), {})
|
19978
19978
|
}),
|
19979
19979
|
{}
|
19980
19980
|
));
|
19981
19981
|
const N = te(() => e.map(({ id: T }) => T), [e]);
|
19982
19982
|
k(() => {
|
19983
19983
|
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]:
|
19984
|
+
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
19985
|
f.current = T;
|
19986
19986
|
}, [JSON.stringify(N)]), k(() => {
|
19987
19987
|
if (h) {
|
@@ -20018,7 +20018,7 @@ const wA = (e) => {
|
|
20018
20018
|
...T.data[j].props,
|
20019
20019
|
inputId: `data-table-${T.id}-${j}-cell`,
|
20020
20020
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
20021
|
-
variant:
|
20021
|
+
variant: Rs.BORDER_LESS,
|
20022
20022
|
value: _n(
|
20023
20023
|
T.data[j].props?.options,
|
20024
20024
|
T.data[j].value,
|
@@ -20037,7 +20037,7 @@ const wA = (e) => {
|
|
20037
20037
|
isCreatable: V,
|
20038
20038
|
isClearable: !0,
|
20039
20039
|
...B,
|
20040
|
-
variant:
|
20040
|
+
variant: Rs.BORDER_LESS,
|
20041
20041
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
20042
20042
|
inputId: `data-table-${T.id}-${j}-cell`,
|
20043
20043
|
minHeight: 20,
|
@@ -20249,7 +20249,7 @@ const wA = (e) => {
|
|
20249
20249
|
setTagErrors: c
|
20250
20250
|
}) => {
|
20251
20251
|
const l = (_) => {
|
20252
|
-
|
20252
|
+
vs.event({
|
20253
20253
|
category: "Tags",
|
20254
20254
|
action: `${e.toUpperCase()}_PROPAGATE_TAG_BUTTON_CLICKED`
|
20255
20255
|
});
|
@@ -20274,7 +20274,7 @@ const wA = (e) => {
|
|
20274
20274
|
}
|
20275
20275
|
) });
|
20276
20276
|
}, u = () => {
|
20277
|
-
|
20277
|
+
vs.event({
|
20278
20278
|
category: "Tags",
|
20279
20279
|
action: `${e.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`
|
20280
20280
|
});
|
@@ -20475,7 +20475,7 @@ const wA = (e) => {
|
|
20475
20475
|
skipValidation: r = !1,
|
20476
20476
|
fallbackMergeStrategy: o
|
20477
20477
|
}) => {
|
20478
|
-
const i = a ===
|
20478
|
+
const i = a === Is.Secret, {
|
20479
20479
|
name: c,
|
20480
20480
|
external: l,
|
20481
20481
|
externalType: d,
|
@@ -20957,7 +20957,7 @@ const wA = (e) => {
|
|
20957
20957
|
esoSecretYaml: QA(d)
|
20958
20958
|
} : {}
|
20959
20959
|
};
|
20960
|
-
},
|
20960
|
+
}, _s = {
|
20961
20961
|
width: 356,
|
20962
20962
|
height: 504
|
20963
20963
|
}, jm = "No Defined Description", eI = "No Defined Value", tI = "What is scoped variable?", sI = ({
|
@@ -20988,13 +20988,13 @@ const wA = (e) => {
|
|
20988
20988
|
"p",
|
20989
20989
|
{
|
20990
20990
|
className: "m-0 fs-12 fw-4 lh-18 dc__word-break-all",
|
20991
|
-
dangerouslySetInnerHTML: { __html:
|
20991
|
+
dangerouslySetInnerHTML: { __html: As.sanitize(m(s)) }
|
20992
20992
|
}
|
20993
20993
|
), _ = () => /* @__PURE__ */ t.jsx(
|
20994
20994
|
"p",
|
20995
20995
|
{
|
20996
20996
|
className: "m-0 fs-13 fw-6 lh-20 cn-9 dc__ellipsis-right",
|
20997
|
-
dangerouslySetInnerHTML: { __html:
|
20997
|
+
dangerouslySetInnerHTML: { __html: As.sanitize(m(e)) }
|
20998
20998
|
}
|
20999
20999
|
), E = (x) => /* @__PURE__ */ t.jsx(
|
21000
21000
|
ie,
|
@@ -21052,14 +21052,14 @@ const wA = (e) => {
|
|
21052
21052
|
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-16 fcv-5" }) }),
|
21053
21053
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: tI })
|
21054
21054
|
] }),
|
21055
|
-
/* @__PURE__ */ t.jsx(
|
21055
|
+
/* @__PURE__ */ t.jsx(Ss, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
21056
21056
|
]
|
21057
21057
|
}
|
21058
21058
|
),
|
21059
21059
|
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
21060
|
"Use a scoped variable for dynamic values, which are defined in the ",
|
21061
21061
|
/* @__PURE__ */ t.jsx(
|
21062
|
-
|
21062
|
+
Os,
|
21063
21063
|
{
|
21064
21064
|
className: "cb-5 m-0",
|
21065
21065
|
to: Oe.GLOBAL_CONFIG_SCOPED_VARIABLES,
|
@@ -21112,7 +21112,7 @@ const wA = (e) => {
|
|
21112
21112
|
/* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
|
21113
21113
|
re,
|
21114
21114
|
{
|
21115
|
-
icon: /* @__PURE__ */ t.jsx(
|
21115
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
21116
21116
|
ariaLabel: "Close suggestions",
|
21117
21117
|
showAriaLabelInTippy: !1,
|
21118
21118
|
dataTestId: "deactivate-suggestions",
|
@@ -21234,15 +21234,15 @@ const wA = (e) => {
|
|
21234
21234
|
p({
|
21235
21235
|
x: d.x,
|
21236
21236
|
y: d.y
|
21237
|
-
}), I.y > g.height -
|
21237
|
+
}), I.y > g.height - _s.height && p({
|
21238
21238
|
x: d.x,
|
21239
|
-
y: g.height -
|
21240
|
-
}), I.x > g.width -
|
21241
|
-
x: g.width -
|
21239
|
+
y: g.height - _s.height - N.y
|
21240
|
+
}), I.x > g.width - _s.width && p({
|
21241
|
+
x: g.width - _s.width - N.x,
|
21242
21242
|
y: d.y
|
21243
|
-
}), I.x > g.width -
|
21244
|
-
x: g.width -
|
21245
|
-
y: g.height -
|
21243
|
+
}), I.x > g.width - _s.width && I.y > g.height - _s.height && p({
|
21244
|
+
x: g.width - _s.width - N.x,
|
21245
|
+
y: g.height - _s.height - N.y
|
21246
21246
|
}), l(!0);
|
21247
21247
|
}, A = ze((I) => {
|
21248
21248
|
I.stopPropagation(), l(!1);
|
@@ -21387,7 +21387,7 @@ class Ll {
|
|
21387
21387
|
fa(this, dn, !1);
|
21388
21388
|
fa(this, un, !1);
|
21389
21389
|
me(this, "updateStatus", (s, n) => {
|
21390
|
-
n.status === "Completed" && !
|
21390
|
+
n.status === "Completed" && !Ps(this, un) && ha(this, un, !0), n.status === "Failed" && !Ps(this, dn) && ha(this, dn, !0), n.status === "Failed" && n.retryOperation && this.retryOperationsSet.has(s) && (this.retryOperations.push(n.retryOperation), this.retryOperationsSet.add(s)), n.status !== "Progressing" && (this.barChartEntities[n.status] ? this.barChartEntities[n.status] += 1 : this.barChartEntities[n.status] = 1), this.barChartEntities.Pending = this.size - (this.barChartEntities.Failed ?? 0) - (this.barChartEntities.Completed ?? 0), this.barChartEntities.Pending <= 0 && delete this.barChartEntities.Pending;
|
21391
21391
|
});
|
21392
21392
|
me(this, "addResult", (s) => {
|
21393
21393
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -21408,8 +21408,8 @@ class Ll {
|
|
21408
21408
|
this.map.set(s, r), this.results[s] = r, n.status === "Failed" && n.retryOperation && this.retryOperations.push(n.retryOperation), this.updateStatus(s, r);
|
21409
21409
|
});
|
21410
21410
|
me(this, "getRetryOperations", () => this.retryOperations);
|
21411
|
-
me(this, "hasAnyOperationFailed", () =>
|
21412
|
-
me(this, "getHasAnyOperationSucceeded", () =>
|
21411
|
+
me(this, "hasAnyOperationFailed", () => Ps(this, dn));
|
21412
|
+
me(this, "getHasAnyOperationSucceeded", () => Ps(this, un));
|
21413
21413
|
this.size = s, this.barChartEntities.Pending = s;
|
21414
21414
|
}
|
21415
21415
|
}
|
@@ -21784,7 +21784,7 @@ const mI = ({
|
|
21784
21784
|
image: Pf,
|
21785
21785
|
alt: "External-CI",
|
21786
21786
|
dataTestId: "deploy-image-external-service-link",
|
21787
|
-
type:
|
21787
|
+
type: Gs.WEBHOOK
|
21788
21788
|
},
|
21789
21789
|
JOB: {
|
21790
21790
|
title: "Create a Job",
|
@@ -21807,7 +21807,7 @@ const mI = ({
|
|
21807
21807
|
appWorkflowId: e.appWorkflowId,
|
21808
21808
|
environmentId: -1,
|
21809
21809
|
id: 0,
|
21810
|
-
parentPipelineType:
|
21810
|
+
parentPipelineType: Gs.WEBHOOK,
|
21811
21811
|
switchFromCiPipelineId: e.switchFromCiPipelineId
|
21812
21812
|
}
|
21813
21813
|
]
|
@@ -21839,9 +21839,9 @@ const mI = ({
|
|
21839
21839
|
});
|
21840
21840
|
return;
|
21841
21841
|
}
|
21842
|
-
const C = N.nodes.find((S) => S.type ===
|
21843
|
-
if (N.nodes.some((S) => S.type ===
|
21844
|
-
p(
|
21842
|
+
const C = N.nodes.find((S) => S.type === Es.CI);
|
21843
|
+
if (N.nodes.some((S) => S.type === Es.WEBHOOK)) {
|
21844
|
+
p(Es.WEBHOOK);
|
21845
21845
|
return;
|
21846
21846
|
}
|
21847
21847
|
if (C?.isJobCI) {
|
@@ -21864,7 +21864,7 @@ const mI = ({
|
|
21864
21864
|
}
|
21865
21865
|
}, [i, o]);
|
21866
21866
|
const h = () => {
|
21867
|
-
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type ===
|
21867
|
+
if (o && i.find((A) => +A.id === o.appWorkflowId).nodes.some((A) => A.type === Es.CD)) {
|
21868
21868
|
E(!0), BN(hI(o)).then((A) => {
|
21869
21869
|
A.result && (Ue.showToast({
|
21870
21870
|
variant: Se.success,
|
@@ -21881,7 +21881,7 @@ const mI = ({
|
|
21881
21881
|
return;
|
21882
21882
|
N.stopPropagation();
|
21883
21883
|
const { pipelineType: C } = N.currentTarget.dataset;
|
21884
|
-
if (C ===
|
21884
|
+
if (C === Gs.WEBHOOK) {
|
21885
21885
|
h();
|
21886
21886
|
return;
|
21887
21887
|
}
|
@@ -21960,7 +21960,7 @@ const mI = ({
|
|
21960
21960
|
dataTestId: ke.EXTERNAL_SERVICE.dataTestId,
|
21961
21961
|
type: ke.EXTERNAL_SERVICE.type,
|
21962
21962
|
handleCardAction: g,
|
21963
|
-
disableInfo: f(
|
21963
|
+
disableInfo: f(Es.WEBHOOK),
|
21964
21964
|
isDisabled: u
|
21965
21965
|
}
|
21966
21966
|
),
|
@@ -22081,7 +22081,7 @@ const mI = ({
|
|
22081
22081
|
}, EI = {
|
22082
22082
|
error: /* @__PURE__ */ t.jsx(Nr, {}),
|
22083
22083
|
help: /* @__PURE__ */ t.jsx(gn, { className: "fcv-5" }),
|
22084
|
-
information: /* @__PURE__ */ t.jsx(
|
22084
|
+
information: /* @__PURE__ */ t.jsx(ws, {}),
|
22085
22085
|
success: /* @__PURE__ */ t.jsx(ai, {}),
|
22086
22086
|
warning: /* @__PURE__ */ t.jsx(xn, {})
|
22087
22087
|
}, NI = {
|
@@ -22137,13 +22137,13 @@ const mI = ({
|
|
22137
22137
|
r && /* @__PURE__ */ t.jsx(re, { ...r, size: Ml[n] })
|
22138
22138
|
] }) : null;
|
22139
22139
|
}, bI = {
|
22140
|
-
[
|
22141
|
-
[
|
22142
|
-
[
|
22143
|
-
[
|
22144
|
-
[
|
22145
|
-
[
|
22146
|
-
[
|
22140
|
+
[fs.google]: "ic-google",
|
22141
|
+
[fs.github]: "ic-github",
|
22142
|
+
[fs.gitlab]: "ic-gitlab",
|
22143
|
+
[fs.ldap]: "ic-ldap",
|
22144
|
+
[fs.microsoft]: "ic-microsoft",
|
22145
|
+
[fs.oidc]: "ic-oidc",
|
22146
|
+
[fs.openshift]: "ic-openshift"
|
22147
22147
|
}, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(st, { name: bI[e], size: s, color: null });
|
22148
22148
|
function Be(e, s = !0, n = !1) {
|
22149
22149
|
e instanceof Pt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
|
@@ -22251,7 +22251,7 @@ function mr(e, s = !1) {
|
|
22251
22251
|
}
|
22252
22252
|
const tP = (e, s = "-") => e ? `${Pe(e).utc().format(yt.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
|
22253
22253
|
function sP() {
|
22254
|
-
const e =
|
22254
|
+
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
22255
|
return { queryParams: s, searchParams: n };
|
22256
22256
|
}
|
22257
22257
|
const nP = (e, s) => {
|
@@ -22570,7 +22570,7 @@ function hP() {
|
|
22570
22570
|
};
|
22571
22571
|
return e;
|
22572
22572
|
}
|
22573
|
-
const OI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
22573
|
+
const OI = (e) => /* @__PURE__ */ t.jsx(Ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Ss, { className: "icon-dim-20 icon-n6" }) });
|
22574
22574
|
function Um(e, s) {
|
22575
22575
|
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
22576
|
}
|
@@ -22583,7 +22583,7 @@ const xP = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, LI = (e, s = 300) => {
|
|
22583
22583
|
const r = Date.now();
|
22584
22584
|
r - n >= s && (n = r, e(...a));
|
22585
22585
|
};
|
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) =>
|
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) => As.sanitize(e, {
|
22587
22587
|
ADD_TAGS: ["iframe"],
|
22588
22588
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
22589
22589
|
}), EP = (e, s) => {
|
@@ -22647,10 +22647,10 @@ class Cn extends Ce.Component {
|
|
22647
22647
|
(n.keyCode === 27 || n.key === "Escape") && (Ne(n), this.props.onEscape ? this.props.onEscape(n) : this.props.close && this.props.close(n));
|
22648
22648
|
}
|
22649
22649
|
componentDidMount() {
|
22650
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"),
|
22650
|
+
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
22651
|
}
|
22652
22652
|
componentWillUnmount() {
|
22653
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"),
|
22653
|
+
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
22654
|
}
|
22655
22655
|
render() {
|
22656
22656
|
return ni.createPortal(
|
@@ -22680,8 +22680,8 @@ const $m = ({
|
|
22680
22680
|
disableTransition: d
|
22681
22681
|
}) => {
|
22682
22682
|
const u = Y(null);
|
22683
|
-
k(() => (setTimeout(() => u.current?.classList?.add("show"), 1),
|
22684
|
-
u.current?.classList?.remove("show"),
|
22683
|
+
k(() => (setTimeout(() => u.current?.classList?.add("show"), 1), js(!0), () => {
|
22684
|
+
u.current?.classList?.remove("show"), js(!1);
|
22685
22685
|
}), []);
|
22686
22686
|
const m = {};
|
22687
22687
|
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 +22699,10 @@ class Fm extends Ce.Component {
|
|
22699
22699
|
Ne(n), n.keyCode === 27 && this.props.close && this.props.close(n);
|
22700
22700
|
}
|
22701
22701
|
componentDidMount() {
|
22702
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"),
|
22702
|
+
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"), js(!0);
|
22703
22703
|
}
|
22704
22704
|
componentWillUnmount() {
|
22705
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"),
|
22705
|
+
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"), js(!1);
|
22706
22706
|
}
|
22707
22707
|
render() {
|
22708
22708
|
return ni.createPortal(
|
@@ -22784,7 +22784,7 @@ const Gm = ({
|
|
22784
22784
|
{
|
22785
22785
|
condition: !!o.to,
|
22786
22786
|
wrap: (c) => /* @__PURE__ */ t.jsx(
|
22787
|
-
|
22787
|
+
Os,
|
22788
22788
|
{
|
22789
22789
|
className: `${a === o.to ? "active" : ""} ${n} ${o.className || ""}`,
|
22790
22790
|
to: o.to,
|
@@ -22906,7 +22906,7 @@ const $i = ({
|
|
22906
22906
|
textConfig: _
|
22907
22907
|
}) => {
|
22908
22908
|
const E = () => i ? c ? u ? /* @__PURE__ */ t.jsx(
|
22909
|
-
|
22909
|
+
Os,
|
22910
22910
|
{
|
22911
22911
|
to: c,
|
22912
22912
|
onClick: l,
|
@@ -23063,7 +23063,7 @@ const $i = ({
|
|
23063
23063
|
u && /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
23064
23064
|
re,
|
23065
23065
|
{
|
23066
|
-
icon: /* @__PURE__ */ t.jsx(
|
23066
|
+
icon: /* @__PURE__ */ t.jsx(us, {}),
|
23067
23067
|
size: P.xs,
|
23068
23068
|
variant: he.borderLess,
|
23069
23069
|
style: be.negativeGrey,
|
@@ -23325,7 +23325,7 @@ const Wm = ({
|
|
23325
23325
|
W.id
|
23326
23326
|
)) }),
|
23327
23327
|
y && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
23328
|
-
/* @__PURE__ */ t.jsx(
|
23328
|
+
/* @__PURE__ */ t.jsx(ws, { className: "icon-dim-16 mr-2" }),
|
23329
23329
|
"Tags cannot be edited/removed later"
|
23330
23330
|
] }),
|
23331
23331
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -23428,7 +23428,7 @@ const Wm = ({
|
|
23428
23428
|
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
23429
|
children: [
|
23430
23430
|
u,
|
23431
|
-
l ? /* @__PURE__ */ t.jsx(
|
23431
|
+
l ? /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
|
23432
23432
|
fe,
|
23433
23433
|
{
|
23434
23434
|
className: "default-tt",
|
@@ -23453,7 +23453,7 @@ const Wm = ({
|
|
23453
23453
|
),
|
23454
23454
|
e,
|
23455
23455
|
/* @__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
|
-
|
23456
|
+
us,
|
23457
23457
|
{
|
23458
23458
|
className: "icon-dim-12 fcn-6 cursor",
|
23459
23459
|
"data-testid": `${e}-tag-hard-delete`,
|
@@ -23599,7 +23599,7 @@ const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
23599
23599
|
value: a ?? c[0],
|
23600
23600
|
options: c,
|
23601
23601
|
onChange: p,
|
23602
|
-
variant:
|
23602
|
+
variant: Rs.BORDER_LESS
|
23603
23603
|
}
|
23604
23604
|
)
|
23605
23605
|
] }),
|
@@ -23612,7 +23612,7 @@ const OP = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
23612
23612
|
value: d ?? o[0],
|
23613
23613
|
options: o,
|
23614
23614
|
onChange: _,
|
23615
|
-
variant:
|
23615
|
+
variant: Rs.BORDER_LESS
|
23616
23616
|
}
|
23617
23617
|
)
|
23618
23618
|
] })
|
@@ -23670,7 +23670,7 @@ function wP({
|
|
23670
23670
|
}
|
23671
23671
|
) : null;
|
23672
23672
|
}
|
23673
|
-
const qI = ({ startNode: e }) => e.type ===
|
23673
|
+
const qI = ({ startNode: e }) => e.type === Es.WEBHOOK ? Gs.WEBHOOK : e.type === Es.CI ? Gs.CI_PIPELINE : Gs.CD_PIPELINE, DP = ({
|
23674
23674
|
position: e,
|
23675
23675
|
handleCDSelect: s,
|
23676
23676
|
startNode: n,
|
@@ -23909,7 +23909,7 @@ const Fl = 5, XI = [
|
|
23909
23909
|
)
|
23910
23910
|
] })
|
23911
23911
|
] });
|
23912
|
-
}, jn = new
|
23912
|
+
}, jn = new Us.Renderer(), Vl = ({
|
23913
23913
|
setExpandableIcon: e,
|
23914
23914
|
markdown: s,
|
23915
23915
|
className: n,
|
@@ -23926,17 +23926,17 @@ const Fl = 5, XI = [
|
|
23926
23926
|
}, [i]);
|
23927
23927
|
const d = (m) => `
|
23928
23928
|
<tr>
|
23929
|
-
${m.map((p) => `<td align="${p.align}">${
|
23929
|
+
${m.map((p) => `<td align="${p.align}">${Us(p.text)}</td>`).join("")}
|
23930
23930
|
</tr>
|
23931
23931
|
`;
|
23932
23932
|
jn.listitem = ({ text: m, task: p, checked: _ }) => p ? `<li style="list-style: none">
|
23933
23933
|
<input disabled type="checkbox" ${_ ? "checked" : ""} class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
|
23934
|
-
${
|
23935
|
-
</li>` : `<li>${
|
23934
|
+
${Us(m)}
|
23935
|
+
</li>` : `<li>${Us(m)}</li>`, jn.image = ({ href: m, title: p, text: _ }) => `<img src="${m}" alt="${_}" title="${p}" class="max-w-100">`, jn.table = ({ header: m, rows: p }) => `
|
23936
23936
|
<div class="table-container">
|
23937
23937
|
<table>
|
23938
23938
|
<thead>
|
23939
|
-
<tr>${m.map((_) => `<th align="${_.align}">${
|
23939
|
+
<tr>${m.map((_) => `<th align="${_.align}">${Us(_.text)}</th>`).join("")}</tr>
|
23940
23940
|
</thead>
|
23941
23941
|
<tbody>
|
23942
23942
|
${p.map((_) => d(_)).join("")}
|
@@ -23952,13 +23952,13 @@ const Fl = 5, XI = [
|
|
23952
23952
|
${m}
|
23953
23953
|
</h${p}>
|
23954
23954
|
</a>`;
|
23955
|
-
},
|
23955
|
+
}, Us.setOptions({
|
23956
23956
|
renderer: jn,
|
23957
23957
|
gfm: !0,
|
23958
23958
|
...a && { breaks: !0 }
|
23959
23959
|
});
|
23960
23960
|
const u = () => ({
|
23961
|
-
__html:
|
23961
|
+
__html: As.sanitize(Us(i), { USE_PROFILES: { html: !0 } })
|
23962
23962
|
});
|
23963
23963
|
return /* @__PURE__ */ t.jsx(
|
23964
23964
|
"article",
|
@@ -24351,8 +24351,8 @@ export {
|
|
24351
24351
|
Ig as aF,
|
24352
24352
|
an as aG,
|
24353
24353
|
yg as aH,
|
24354
|
-
|
24355
|
-
|
24354
|
+
Gs as aI,
|
24355
|
+
Es as aJ,
|
24356
24356
|
Hn as aK,
|
24357
24357
|
No as aL,
|
24358
24358
|
Rg as aM,
|
@@ -24384,7 +24384,7 @@ export {
|
|
24384
24384
|
pt as al,
|
24385
24385
|
GO as am,
|
24386
24386
|
Md as an,
|
24387
|
-
|
24387
|
+
fs as ao,
|
24388
24388
|
Cg as ap,
|
24389
24389
|
Pt as aq,
|
24390
24390
|
ea as ar,
|
@@ -24516,7 +24516,7 @@ export {
|
|
24516
24516
|
Tc as cn,
|
24517
24517
|
fE as co,
|
24518
24518
|
NL as cp,
|
24519
|
-
|
24519
|
+
Ds as cq,
|
24520
24520
|
Ym as cr,
|
24521
24521
|
Tu as cs,
|
24522
24522
|
Ow as ct,
|
@@ -24540,7 +24540,7 @@ export {
|
|
24540
24540
|
SE as d9,
|
24541
24541
|
Et as dA,
|
24542
24542
|
Xd as dB,
|
24543
|
-
|
24543
|
+
ys as dC,
|
24544
24544
|
vr as dD,
|
24545
24545
|
Je as dE,
|
24546
24546
|
iL as dF,
|
@@ -24584,7 +24584,7 @@ export {
|
|
24584
24584
|
$t as dr,
|
24585
24585
|
Te as ds,
|
24586
24586
|
zd as dt,
|
24587
|
-
|
24587
|
+
bs as du,
|
24588
24588
|
qd as dv,
|
24589
24589
|
Ka as dw,
|
24590
24590
|
Wn as dx,
|
@@ -24679,7 +24679,7 @@ export {
|
|
24679
24679
|
ET as fJ,
|
24680
24680
|
Uo as fK,
|
24681
24681
|
De as fL,
|
24682
|
-
|
24682
|
+
Cs as fM,
|
24683
24683
|
ji as fN,
|
24684
24684
|
Re as fO,
|
24685
24685
|
ko as fP,
|
@@ -24826,7 +24826,7 @@ export {
|
|
24826
24826
|
ED as h_,
|
24827
24827
|
_n as ha,
|
24828
24828
|
qx as hb,
|
24829
|
-
|
24829
|
+
Rs as hc,
|
24830
24830
|
Ku as hd,
|
24831
24831
|
OT as he,
|
24832
24832
|
KT as hf,
|
@@ -24957,7 +24957,7 @@ export {
|
|
24957
24957
|
RL as jc,
|
24958
24958
|
NN as jd,
|
24959
24959
|
uw as je,
|
24960
|
-
|
24960
|
+
js as jf,
|
24961
24961
|
Uc as jg,
|
24962
24962
|
mw as jh,
|
24963
24963
|
pw as ji,
|
@@ -24973,7 +24973,7 @@ export {
|
|
24973
24973
|
Bc as js,
|
24974
24974
|
vN as jt,
|
24975
24975
|
jo as ju,
|
24976
|
-
|
24976
|
+
Ts as jv,
|
24977
24977
|
IN as jw,
|
24978
24978
|
yN as jx,
|
24979
24979
|
ja as jy,
|
@@ -25005,7 +25005,7 @@ export {
|
|
25005
25005
|
Xg as kM,
|
25006
25006
|
lc as kN,
|
25007
25007
|
P as kO,
|
25008
|
-
|
25008
|
+
gs as kP,
|
25009
25009
|
Vd as kQ,
|
25010
25010
|
Gd as kR,
|
25011
25011
|
Hd as kS,
|
@@ -25064,7 +25064,7 @@ export {
|
|
25064
25064
|
Vt as lb,
|
25065
25065
|
vo as lc,
|
25066
25066
|
rt as ld,
|
25067
|
-
|
25067
|
+
Is as le,
|
25068
25068
|
Sr as lf,
|
25069
25069
|
Wd as lg,
|
25070
25070
|
PN as lh,
|