@devtron-labs/devtron-fe-common-lib 1.19.1 → 1.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,13 +6,13 @@ var nf = (e, s, n) => s in e ? sf(e, s, { enumerable: !0, configurable: !0, writ
|
|
6
6
|
var pe = (e, s, n) => nf(e, typeof s != "symbol" ? s + "" : s, n), Uc = (e, s, n) => s.has(e) || kc("Cannot " + n);
|
7
7
|
var Ws = (e, s, n) => (Uc(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Pa = (e, s, n) => s.has(e) ? kc("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Ma = (e, s, n, a) => (Uc(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
8
|
import { j as t, i as Ie, Q as xo, k as af, F as rf, n as of, D as lr, t as Ke, g as cf, a as lf, E as Jn, S as Pi, b as _u, r as fu, s as df, o as uf, c as $c, d as mf, e as pf, y as _f, l as dr, f as ff, h as hf, m as Fc, p as Bc, q as gf, u as xf, v as Ef, w as Cf, x as Nf, z as bf, A as Tf, B as hu, T as Vc, C as Mi, G as Sf, H as Gc, I as vf, J as If, K as gu, L as Hc, M as Af, N as Rf, O as yf, P as jf, R as Yc, V as Of, U as wf, W as Lf, X as Wc, Y as Df, Z as Kc, _ as zc, $ as Pf, a0 as Mf, a1 as kf, a2 as Uf, a3 as $f, a4 as Ff, a5 as Bf, a6 as Eo, a7 as Vf, a8 as Gf, a9 as Hf, aa as Yf, ab as Wf, ac as xu, ad as Kf, ae as zf, af as qf, ag as Xf, ah as Jf, ai as qc, aj as Xc, ak as Zf, al as Qf, am as eh, an as th, ao as sh, ap as nh, aq as ah, ar as rh, as as Eu, at as Cu, au as oh, av as ih, aw as ch, ax as lh, ay as dh, az as uh, aA as mh, aB as ph, aC as _h, aD as fh, aE as hh, aF as zs } from "./@vendor-3ORIJA0h.js";
|
9
|
-
import Be, { createContext as Dt, useContext as ts, useMemo as X, useState as w, useEffect as M, forwardRef as $r, createElement as ki, Children as Yo, useRef as F, useCallback as Fe, useLayoutEffect as Ui, createRef as ur, cloneElement as Zn, Fragment as
|
9
|
+
import Be, { createContext as Dt, useContext as ts, useMemo as X, useState as w, useEffect as M, forwardRef as $r, createElement as ki, Children as Yo, useRef as F, useCallback as Fe, useLayoutEffect as Ui, createRef as ur, cloneElement as Zn, Fragment as gs, memo as It, Component as $i } from "react";
|
10
10
|
import { ReactComponent as gh } from "./assets/ic-info-filled-override.99e8094a.svg";
|
11
11
|
import * as xh from "yaml";
|
12
12
|
import Zt, { parse as Eh, YAMLParseError as Ch } from "yaml";
|
13
13
|
import { ReactComponent as Fi } from "./assets/ic-info-outline.29f1089c.svg";
|
14
14
|
import { ReactComponent as Nh } from "./assets/ic-var-initial.afdaa854.svg";
|
15
|
-
import { Link as ss, useLocation as ns, useHistory as Fr, useParams as Pt, useRouteMatch as
|
15
|
+
import { Link as ss, useLocation as ns, useHistory as Fr, useParams as Pt, useRouteMatch as bs, NavLink as Gs, generatePath as Qs, Switch as Nu, Route as Js, Redirect as bh, Prompt as Th } from "react-router-dom";
|
16
16
|
import { ReactComponent as Sh } from "./assets/ic-delete-interactive.304dd293.svg";
|
17
17
|
import { ReactComponent as vh } from "./assets/ic-visibility-off.d91d3844.svg";
|
18
18
|
import { ReactComponent as Ih } from "./assets/ic-visibility-on.7505dd12.svg";
|
@@ -22,10 +22,10 @@ import { ReactComponent as Vr } from "./assets/ic-tag.1613fc59.svg";
|
|
22
22
|
import { ReactComponent as bu } from "./assets/ic-timer.b62145ec.svg";
|
23
23
|
import { ReactComponent as Tu } from "./assets/ic-cpu.3024be12.svg";
|
24
24
|
import { ReactComponent as Su } from "./assets/ic-memory.c3264de1.svg";
|
25
|
-
import
|
25
|
+
import xs from "react-ga4";
|
26
26
|
import { h as we } from "./@moment-CGWt8tF2.js";
|
27
27
|
import Rh from "./assets/DeployAudio.566e45df.mp3";
|
28
|
-
import { m as ke, A as an, a as Qn, u as ea, b as
|
28
|
+
import { m as ke, A as an, a as Qn, u as ea, b as ws, c as Jc, d as yh } from "./@framer-motion-DZveCoIL.js";
|
29
29
|
import Bi, { components as qe } from "react-select";
|
30
30
|
import { ReactComponent as jh } from "./assets/ic-arrow-backward.d951202a.svg";
|
31
31
|
import Oh, { ReactComponent as vu } from "./assets/ic-docker.48906f4d.svg";
|
@@ -36,11 +36,11 @@ import { ReactComponent as Au } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
|
36
36
|
import wh, { ReactComponent as Ru } from "./assets/ic-mechanical-operation.04a318d6.svg";
|
37
37
|
import yu from "./assets/app-not-deployed.622dc6ba.svg";
|
38
38
|
import { BehaviorSubject as Gr, noop as ka } from "rxjs";
|
39
|
-
import Lh, { ReactComponent as
|
39
|
+
import Lh, { ReactComponent as Es } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
40
40
|
import { ReactComponent as Dh } from "./assets/ic-exit-fullscreen.1ae582d1.svg";
|
41
41
|
import { ReactComponent as Ph } from "./assets/ic-fullscreen.b05e5087.svg";
|
42
42
|
import sn from "dompurify";
|
43
|
-
import { ReactComponent as
|
43
|
+
import { ReactComponent as Cs } from "./assets/ic-caret-down.1666c029.svg";
|
44
44
|
import { ReactComponent as Mh } from "./assets/ic-collapse-all.56740920.svg";
|
45
45
|
import { ReactComponent as kh } from "./assets/ic-expand-all.d1d223f2.svg";
|
46
46
|
import { ReactComponent as ju } from "./assets/ic-arrow-out.6aea09d0.svg";
|
@@ -96,7 +96,7 @@ import { ReactComponent as Fu } from "./assets/ic-world.1f6a5eaf.svg";
|
|
96
96
|
import { r as Bu, C as ig, a as cg } from "./@react-dates-CZ1bNWJM.js";
|
97
97
|
import { ReactComponent as Wi } from "./assets/ic-clock.c21a2d14.svg";
|
98
98
|
import lg from "./assets/ic-calender-blank.963e3423.svg";
|
99
|
-
import dg, { ReactComponent as
|
99
|
+
import dg, { ReactComponent as Ts } from "./assets/ic-cross.01e03666.svg";
|
100
100
|
import { ReactComponent as zn } from "./assets/inject-tag.28e72db6.svg";
|
101
101
|
import { ReactComponent as Wr } from "./assets/ic-pencil.c75a6acc.svg";
|
102
102
|
import { ReactComponent as Vu } from "./assets/ic-filter.8f403d6f.svg";
|
@@ -388,7 +388,7 @@ const Hn = {
|
|
388
388
|
Security: "SECURITY",
|
389
389
|
Changes: "CHANGES"
|
390
390
|
};
|
391
|
-
var yt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(yt || {}), sm = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(sm || {}), ob = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(ob || {}), ib = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(ib || {}), qn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(qn || {}), cb = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(cb || {}), lb = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(lb || {}), Jo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Jo || {}), db = /* @__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))(db || {}), nm = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(nm || {}), ub = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(ub || {}), St = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.ARGO = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(St || {}), mb = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(mb || {}), gn = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(gn || {}),
|
391
|
+
var yt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(yt || {}), sm = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(sm || {}), ob = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(ob || {}), ib = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(ib || {}), qn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(qn || {}), cb = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(cb || {}), lb = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(lb || {}), Jo = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Jo || {}), db = /* @__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))(db || {}), nm = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(nm || {}), ub = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(ub || {}), St = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.ARGO = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(St || {}), mb = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(mb || {}), gn = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(gn || {}), Ps = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Ps || {}), na = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(na || {}), Zo = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(Zo || {}), pb = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(pb || {});
|
392
392
|
const _b = ({ tooltipContent: e }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "dc__white-space-pre-wrap", children: [
|
393
393
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 fw-6 lh-18", children: "Click to add" }),
|
394
394
|
e
|
@@ -442,7 +442,7 @@ function cB({
|
|
442
442
|
}
|
443
443
|
) : null;
|
444
444
|
}
|
445
|
-
const fb = ({ startNode: e }) => e.type ===
|
445
|
+
const fb = ({ startNode: e }) => e.type === Ps.WEBHOOK ? gn.WEBHOOK : e.type === Ps.CI ? gn.CI_PIPELINE : gn.CD_PIPELINE, lB = ({
|
446
446
|
position: e,
|
447
447
|
handleCDSelect: s,
|
448
448
|
startNode: n,
|
@@ -711,7 +711,7 @@ const bB = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2), cm = Symbol(
|
|
711
711
|
`The element at this index remains unchanged from the original object.
|
712
712
|
This symbol is used by @buildObjectFromPath & later consumed by @recursivelyRemoveSymbolFromArraysInObject`
|
713
713
|
);
|
714
|
-
var
|
714
|
+
var js = /* @__PURE__ */ ((e) => (e.google = "google", e.github = "github", e.gitlab = "gitlab", e.microsoft = "microsoft", e.ldap = "ldap", e.oidc = "oidc", e.openshift = "openshift", e))(js || {});
|
715
715
|
class yb {
|
716
716
|
constructor(s) {
|
717
717
|
pe(this, "code");
|
@@ -737,7 +737,7 @@ const jb = async (e, s) => {
|
|
737
737
|
} catch {
|
738
738
|
}
|
739
739
|
}, ei = ({ category: e, action: s }) => {
|
740
|
-
window._env_.GA_ENABLED &&
|
740
|
+
window._env_.GA_ENABLED && xs?.event && xs.event({
|
741
741
|
category: e,
|
742
742
|
action: s
|
743
743
|
});
|
@@ -1181,7 +1181,7 @@ const dT = {
|
|
1181
1181
|
}, $B = ({ children: e, value: s }) => {
|
1182
1182
|
const n = X(() => s, [s]);
|
1183
1183
|
return /* @__PURE__ */ t.jsx(Em.Provider, { value: n, children: e });
|
1184
|
-
}, Cm = Dt(null),
|
1184
|
+
}, Cm = Dt(null), Ss = () => {
|
1185
1185
|
const e = ts(Cm);
|
1186
1186
|
if (!e)
|
1187
1187
|
throw new Error("Please wrap with MainContextProvider");
|
@@ -1190,25 +1190,25 @@ const dT = {
|
|
1190
1190
|
var qr = /* @__PURE__ */ ((e) => (e.DOCUMENTATION = "documentation", e.ASK_DEVTRON = "ask-devtron", e))(qr || {});
|
1191
1191
|
const Zi = "themePreference__v1", Nm = "(prefers-color-scheme: dark)";
|
1192
1192
|
var tt = /* @__PURE__ */ ((e) => (e.light = "light", e.dark = "dark", e))(tt || {});
|
1193
|
-
const
|
1193
|
+
const Ms = {
|
1194
1194
|
...tt,
|
1195
1195
|
auto: "auto"
|
1196
1196
|
}, Qi = () => window.matchMedia && window.matchMedia(Nm).matches ? tt.dark : tt.light, fT = (e) => {
|
1197
1197
|
localStorage.setItem(Zi, e);
|
1198
1198
|
}, hT = ({ appTheme: e, themePreference: s }) => {
|
1199
|
-
const n = s ===
|
1199
|
+
const n = s === Ms.auto ? `system-${e}` : e;
|
1200
1200
|
"gtag" in window && window.gtag && typeof window.gtag == "function" && (window.gtag("set", "user_properties", {
|
1201
1201
|
appTheme: e,
|
1202
1202
|
themePreference: s
|
1203
|
-
}),
|
1203
|
+
}), xs.send("pageview")), xs.event({
|
1204
1204
|
category: "application-theme",
|
1205
1205
|
action: `theme-changed-to-${n}`
|
1206
1206
|
});
|
1207
1207
|
}, gT = () => {
|
1208
1208
|
const e = localStorage.getItem(Zi);
|
1209
|
-
return !e || e ===
|
1209
|
+
return !e || e === Ms.auto ? {
|
1210
1210
|
appTheme: Qi(),
|
1211
|
-
themePreference:
|
1211
|
+
themePreference: Ms.auto
|
1212
1212
|
} : {
|
1213
1213
|
appTheme: e,
|
1214
1214
|
themePreference: e
|
@@ -1227,19 +1227,19 @@ const ks = {
|
|
1227
1227
|
}, Tm = Dt(null), BB = ({ children: e }) => {
|
1228
1228
|
const [s, n] = w(!1), [a, r] = w(!1), [o, i] = w(gT), c = (p, _ = !1) => {
|
1229
1229
|
const h = {
|
1230
|
-
appTheme: p ===
|
1230
|
+
appTheme: p === Ms.auto ? Qi() : p,
|
1231
1231
|
themePreference: p
|
1232
1232
|
};
|
1233
1233
|
i(h), _ || (fT(p), hT(h));
|
1234
1234
|
}, l = () => {
|
1235
|
-
c(
|
1235
|
+
c(Ms.auto, s);
|
1236
1236
|
};
|
1237
1237
|
M(() => {
|
1238
1238
|
const p = document.querySelector("html");
|
1239
1239
|
p && p.setAttribute("class", `theme__${o.appTheme}`);
|
1240
1240
|
}, [o.appTheme]), M(() => {
|
1241
1241
|
const p = window.matchMedia(Nm);
|
1242
|
-
return o.themePreference ===
|
1242
|
+
return o.themePreference === Ms.auto && p.addEventListener("change", l), () => {
|
1243
1243
|
p.removeEventListener("change", l);
|
1244
1244
|
};
|
1245
1245
|
}, [o.themePreference, s]);
|
@@ -1445,7 +1445,7 @@ const RT = {
|
|
1445
1445
|
closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
|
1446
1446
|
G,
|
1447
1447
|
{
|
1448
|
-
icon: /* @__PURE__ */ t.jsx(
|
1448
|
+
icon: /* @__PURE__ */ t.jsx(Ts, { className: `fcn-0 ${vn}` }),
|
1449
1449
|
onClick: e,
|
1450
1450
|
dataTestId: "close-toast",
|
1451
1451
|
ariaLabel: "Close toast",
|
@@ -1562,7 +1562,7 @@ const qB = {
|
|
1562
1562
|
data: "",
|
1563
1563
|
resolvedData: "",
|
1564
1564
|
areVariablesPresent: !1
|
1565
|
-
},
|
1565
|
+
}, vs = $r(
|
1566
1566
|
({ rootClassName: e, onClick: s, name: n, disabled: a, value: r, onChange: o, tabIndex: i, isChecked: c, id: l, dataTestId: d, children: u }, m) => {
|
1567
1567
|
const p = `${e || ""}`;
|
1568
1568
|
return (
|
@@ -1610,7 +1610,7 @@ const qB = {
|
|
1610
1610
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 dc__no-shrink", children: "Application metrics" })
|
1611
1611
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
1612
1612
|
/* @__PURE__ */ t.jsx(Hw, { parsingError: c, restoreLastSavedYAML: l, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
1613
|
-
|
1613
|
+
vs,
|
1614
1614
|
{
|
1615
1615
|
rootClassName: `mb-0 dc__align-items-center ${n.isAppMetricsSupported ? "" : "dc__disabled"}`,
|
1616
1616
|
isChecked: o,
|
@@ -1977,7 +1977,7 @@ const rl = (e) => ({
|
|
1977
1977
|
)) })
|
1978
1978
|
] });
|
1979
1979
|
};
|
1980
|
-
var KT = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(KT || {}), 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 || {}), Jt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Jt || {}), je = /* @__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))(je || {}), jm = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(jm || {}),
|
1980
|
+
var KT = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(KT || {}), 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 || {}), Jt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Jt || {}), je = /* @__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))(je || {}), jm = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(jm || {}), ks = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(ks || {}), Om = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(Om || {}), hr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(hr || {}), oa = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(oa || {}), ci = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(ci || {}), li = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(li || {}), At = /* @__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))(At || {}), wm = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(wm || {});
|
1981
1981
|
const Bs = {
|
1982
1982
|
// Will not enforce any decimal specification on input field
|
1983
1983
|
STEP: "any",
|
@@ -2134,7 +2134,7 @@ const Bs = {
|
|
2134
2134
|
keyToPersist: "limit",
|
2135
2135
|
keyToPersistConfigType: U.MEMORY_LIMIT
|
2136
2136
|
}
|
2137
|
-
}, JT = Om.NO_SCHEDULE, ZT =
|
2137
|
+
}, JT = Om.NO_SCHEDULE, ZT = ks.EQUALS, QT = {
|
2138
2138
|
[U.BUILD_TIMEOUT]: !0,
|
2139
2139
|
[U.CONFIG_MAP]: !0,
|
2140
2140
|
[U.SECRET]: !0
|
@@ -2880,7 +2880,7 @@ const ml = (e) => {
|
|
2880
2880
|
isDisabled: s,
|
2881
2881
|
selectProps: { isLoading: n, keyboardShortcut: a }
|
2882
2882
|
} = e;
|
2883
|
-
return a ? null : /* @__PURE__ */ t.jsx(qe.DropdownIndicator, { ...e, children: n ? /* @__PURE__ */ t.jsx(Je, { fillColor: "var(--N500)" }) : /* @__PURE__ */ t.jsx(
|
2883
|
+
return a ? null : /* @__PURE__ */ t.jsx(qe.DropdownIndicator, { ...e, children: n ? /* @__PURE__ */ t.jsx(Je, { fillColor: "var(--N500)" }) : /* @__PURE__ */ t.jsx(Cs, { className: s ? "scn-3" : "scn-6" }) });
|
2884
2884
|
}, gS = (e) => /* @__PURE__ */ t.jsx(qe.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(cs, { className: "icon-use-fill-n6" }) }), xS = (e) => {
|
2885
2885
|
const {
|
2886
2886
|
children: s,
|
@@ -2935,7 +2935,7 @@ const ml = (e) => {
|
|
2935
2935
|
}, g = "dc__no-shrink icon-dim-16 flex dc__fill-available-space";
|
2936
2936
|
return /* @__PURE__ */ t.jsx(qe.Option, { ...s, children: /* @__PURE__ */ t.jsx(J, { ...Mm(p), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
2937
2937
|
r && o && !h && /* @__PURE__ */ t.jsx(
|
2938
|
-
|
2938
|
+
vs,
|
2939
2939
|
{
|
2940
2940
|
onChange: Ee,
|
2941
2941
|
onClick: E,
|
@@ -3072,7 +3072,7 @@ const ml = (e) => {
|
|
3072
3072
|
};
|
3073
3073
|
return /* @__PURE__ */ t.jsx(qe.GroupHeading, { ...s, onClick: c, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
3074
3074
|
e && /* @__PURE__ */ t.jsx(
|
3075
|
-
|
3075
|
+
vs,
|
3076
3076
|
{
|
3077
3077
|
onChange: Ee,
|
3078
3078
|
onClick: l,
|
@@ -3301,13 +3301,13 @@ const ml = (e) => {
|
|
3301
3301
|
}),
|
3302
3302
|
[e, c, u, h, he, A]
|
3303
3303
|
), Da = (Oe) => {
|
3304
|
-
const
|
3305
|
-
return y && !!
|
3304
|
+
const Is = Oe?.trim();
|
3305
|
+
return y && !!Is && !In(
|
3306
3306
|
ye,
|
3307
|
-
|
3307
|
+
Is,
|
3308
3308
|
null,
|
3309
3309
|
zt
|
3310
|
-
) && !In(st,
|
3310
|
+
) && !In(st, Is, null, zt);
|
3311
3311
|
}, H_ = Fe(
|
3312
3312
|
(Oe) => /* @__PURE__ */ t.jsx(
|
3313
3313
|
CS,
|
@@ -3327,11 +3327,11 @@ const ml = (e) => {
|
|
3327
3327
|
), z_ = () => m ? /* @__PURE__ */ t.jsx(jn, { reload: p }) : P ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: V?.({
|
3328
3328
|
inputValue: z
|
3329
3329
|
}) || "No options" }) : null, q_ = (Oe) => /* @__PURE__ */ t.jsx(Ie, { content: l, placement: "top", className: "default-tt", arrow: !1, children: Oe }), X_ = (Oe) => {
|
3330
|
-
const
|
3331
|
-
|
3332
|
-
}, J_ = (Oe,
|
3330
|
+
const Is = Oe?.trim();
|
3331
|
+
Is && S?.(Is);
|
3332
|
+
}, J_ = (Oe, Is) => {
|
3333
3333
|
if (de.onInputChange) {
|
3334
|
-
de.onInputChange(Oe,
|
3334
|
+
de.onInputChange(Oe, Is);
|
3335
3335
|
return;
|
3336
3336
|
}
|
3337
3337
|
Ne(Oe);
|
@@ -4238,7 +4238,7 @@ const ml = (e) => {
|
|
4238
4238
|
type: p = "neutral",
|
4239
4239
|
isDisabled: _,
|
4240
4240
|
componentType: h = "button"
|
4241
|
-
} = e, { isEnterprise: E } =
|
4241
|
+
} = e, { isEnterprise: E } = Ss(), g = (R) => {
|
4242
4242
|
n && R && R.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
4243
4243
|
}, x = p === "negative", f = `w-100 flex left top dc__gap-8 py-6 px-8 ${_ ? "dc__disabled" : "cursor"}`, C = (R) => {
|
4244
4244
|
_ || a(e, R);
|
@@ -4898,7 +4898,7 @@ ${d.slice(N)}`;
|
|
4898
4898
|
R && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${j ? "mr-12" : ""}`, children: R }),
|
4899
4899
|
b && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(Kr, { className: "icon-dim-20" }) }),
|
4900
4900
|
j && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
4901
|
-
|
4901
|
+
Ts,
|
4902
4902
|
{
|
4903
4903
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "icon-fill__white"}`,
|
4904
4904
|
onClick: c
|
@@ -5730,14 +5730,14 @@ const RV = (e, s = !1) => {
|
|
5730
5730
|
const { id: b, key: I, effect: y, operator: S, value: j } = C, P = A[U.TOLERANCE].value.find(
|
5731
5731
|
(H) => H.id === b
|
5732
5732
|
);
|
5733
|
-
P ? (P.key = I, P.effect = y, P.operator = S, P.value = j, S ===
|
5733
|
+
P ? (P.key = I, P.effect = y, P.operator = S, P.value = j, S === ks.EXISTS && delete P.value) : A[U.TOLERANCE].value.unshift({
|
5734
5734
|
id: b,
|
5735
5735
|
key: I,
|
5736
5736
|
effect: y,
|
5737
5737
|
operator: S,
|
5738
5738
|
value: j
|
5739
5739
|
});
|
5740
|
-
const O = cc(I).messages, D = S !==
|
5740
|
+
const O = cc(I).messages, D = S !== ks.EXISTS ? qm(j).messages : [], B = !(S === ks.EXISTS ? !I : !I && !j) && (O.length > 0 || D.length > 0);
|
5741
5741
|
v[U.TOLERANCE]?.[b] || (v[U.TOLERANCE] || (v[U.TOLERANCE] = {}), v[U.TOLERANCE][b] = {}), v[U.TOLERANCE][b] = {
|
5742
5742
|
...O.length > 0 && { [li.KEY]: O },
|
5743
5743
|
...D.length > 0 && { [li.VALUE]: D }
|
@@ -5831,13 +5831,13 @@ const RV = (e, s = !1) => {
|
|
5831
5831
|
effect: r,
|
5832
5832
|
id: s ? Lt() : null
|
5833
5833
|
};
|
5834
|
-
return o ===
|
5834
|
+
return o === ks.EQUALS ? {
|
5835
5835
|
...c,
|
5836
|
-
operator:
|
5836
|
+
operator: ks.EQUALS,
|
5837
5837
|
value: i
|
5838
5838
|
} : {
|
5839
5839
|
...c,
|
5840
|
-
operator:
|
5840
|
+
operator: ks.EXISTS
|
5841
5841
|
};
|
5842
5842
|
}).filter((n) => n.key)
|
5843
5843
|
};
|
@@ -6360,7 +6360,7 @@ const Nl = {
|
|
6360
6360
|
};
|
6361
6361
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12 w-100", children: [
|
6362
6362
|
/* @__PURE__ */ t.jsx(
|
6363
|
-
|
6363
|
+
vs,
|
6364
6364
|
{
|
6365
6365
|
value: Tt.CHECKED,
|
6366
6366
|
isChecked: a,
|
@@ -6507,7 +6507,7 @@ const YV = (e, s, n, a) => ({
|
|
6507
6507
|
] })
|
6508
6508
|
] }),
|
6509
6509
|
Vv.map(({ key: c, infoText: l, label: d }) => /* @__PURE__ */ t.jsx(
|
6510
|
-
|
6510
|
+
vs,
|
6511
6511
|
{
|
6512
6512
|
value: Tt.CHECKED,
|
6513
6513
|
isChecked: a[c],
|
@@ -6628,12 +6628,12 @@ function Jm(e, s) {
|
|
6628
6628
|
{ nodes: {}, aggregation: {}, statusCount: {}, nodeStatusCount: {}, aggregatorStatusCount: {} }
|
6629
6629
|
);
|
6630
6630
|
}
|
6631
|
-
const sI = (e, s = !1) => s ? btoa(e) : atob(e), pi = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? sI(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}),
|
6631
|
+
const sI = (e, s = !1) => s ? btoa(e) : atob(e), pi = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? sI(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), Us = (e) => !!e && e !== Rn, nI = ({
|
6632
6632
|
startTime: e,
|
6633
6633
|
endTime: s,
|
6634
6634
|
fallbackString: n = "-"
|
6635
6635
|
}) => {
|
6636
|
-
if (
|
6636
|
+
if (!Us(e) || !Us(s))
|
6637
6637
|
return n;
|
6638
6638
|
const a = we(e), r = we(s);
|
6639
6639
|
if (!a.isValid() || !r.isValid())
|
@@ -7566,8 +7566,8 @@ const op = {
|
|
7566
7566
|
}
|
7567
7567
|
};
|
7568
7568
|
}, zI = () => {
|
7569
|
-
const { currentServerInfo: e, isEnterprise: s, isFELibAvailable: n } =
|
7570
|
-
|
7569
|
+
const { currentServerInfo: e, isEnterprise: s, isFELibAvailable: n } = Ss(), a = e?.serverInfo?.currentVersion, r = n === s, o = () => {
|
7570
|
+
xs.event({
|
7571
7571
|
category: "about-devtron",
|
7572
7572
|
action: "ABOUT_DEVTRON_LICENSE_AGREEMENT_CLICKED"
|
7573
7573
|
});
|
@@ -7729,7 +7729,7 @@ const op = {
|
|
7729
7729
|
Z
|
7730
7730
|
`;
|
7731
7731
|
}, IG = ({ duration: e, onComplete: s, size: n = 24, tooltipContent: a }) => {
|
7732
|
-
const r = ea(XI), o =
|
7732
|
+
const r = ea(XI), o = ws(r, (i) => ZI(yo, jo, qI, i));
|
7733
7733
|
return M(() => Qn(r, JI, {
|
7734
7734
|
duration: e,
|
7735
7735
|
ease: "easeInOut",
|
@@ -8240,7 +8240,7 @@ const _A = ({
|
|
8240
8240
|
const n = JSON.parse(s.value);
|
8241
8241
|
return {
|
8242
8242
|
pipelineRBACViewSelectedTab: n.viewPermittedEnvOnly ? Er.ACCESS_ONLY : Er.ALL_ENVIRONMENTS,
|
8243
|
-
themePreference: n.computedAppTheme === "system-dark" || n.computedAppTheme === "system-light" ?
|
8243
|
+
themePreference: n.computedAppTheme === "system-dark" || n.computedAppTheme === "system-light" ? Ms.auto : n.computedAppTheme,
|
8244
8244
|
resources: fA(n.resources)
|
8245
8245
|
};
|
8246
8246
|
}, dp = (e, s, n) => {
|
@@ -8261,7 +8261,7 @@ const _A = ({
|
|
8261
8261
|
switch (e) {
|
8262
8262
|
case "themePreference":
|
8263
8263
|
return {
|
8264
|
-
computedAppTheme: s.themePreference ===
|
8264
|
+
computedAppTheme: s.themePreference === Ms.auto ? `system-${s.appTheme}` : s.appTheme
|
8265
8265
|
};
|
8266
8266
|
case "pipelineRBACViewSelectedTab":
|
8267
8267
|
return {
|
@@ -8409,7 +8409,7 @@ const _A = ({
|
|
8409
8409
|
openInNewTab: u = !1,
|
8410
8410
|
fullWidth: m = !1
|
8411
8411
|
}) => {
|
8412
|
-
const { isEnterprise: p, setSidePanelConfig: _, isLicenseDashboard: h } =
|
8412
|
+
const { isEnterprise: p, setSidePanelConfig: _, isLicenseDashboard: h } = Ss(), E = ip(), g = US({
|
8413
8413
|
docLinkKey: e,
|
8414
8414
|
isEnterprise: p,
|
8415
8415
|
isExternalLink: d,
|
@@ -8466,7 +8466,7 @@ const _A = ({
|
|
8466
8466
|
style: { background: e.isFocused ? "var(--N100)" : "transparent" },
|
8467
8467
|
children: [
|
8468
8468
|
/* @__PURE__ */ t.jsx(
|
8469
|
-
|
8469
|
+
vs,
|
8470
8470
|
{
|
8471
8471
|
isChecked: e.isSelected || !1,
|
8472
8472
|
onChange: i,
|
@@ -8579,7 +8579,7 @@ const _A = ({
|
|
8579
8579
|
color: "var(--N900)"
|
8580
8580
|
})
|
8581
8581
|
}, UG = (e) => /* @__PURE__ */ t.jsx(Bi, { ...e });
|
8582
|
-
var Ge = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Ge || {}),
|
8582
|
+
var Ge = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Ge || {}), Ls = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Ls || {}), hc = /* @__PURE__ */ ((e) => (e.WORKFLOW = "workflow", e.POD = "pod", e))(hc || {}), Pe = /* @__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))(Pe || {}), hi = /* @__PURE__ */ ((e) => (e.PREPARATION = "Preparation", e.EXECUTION = "Execution", e))(hi || {}), SA = /* @__PURE__ */ ((e) => (e.Healthy = "Healthy", e.Progressing = "Progressing", e.Unknown = "Unknown", e.Suspended = "Suspended", e.Degraded = "Degraded", e.Missing = "Missing", e))(SA || {}), _s = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(_s || {}), no = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(no || {});
|
8583
8583
|
const Ul = {
|
8584
8584
|
missing: 1,
|
8585
8585
|
degraded: 2,
|
@@ -9140,7 +9140,7 @@ const GA = (e, s) => {
|
|
9140
9140
|
status: n || Pe.UNKNOWN,
|
9141
9141
|
message: a || "",
|
9142
9142
|
clusterId: o?.clusterId || ao,
|
9143
|
-
endTime:
|
9143
|
+
endTime: Us(r) ? r : ""
|
9144
9144
|
};
|
9145
9145
|
}, gc = (e) => {
|
9146
9146
|
if (!Object.keys(e || {}).length)
|
@@ -9158,9 +9158,9 @@ const GA = (e, s) => {
|
|
9158
9158
|
return s.forEach(({ status: c, endTime: l }, d) => {
|
9159
9159
|
(Nr[c] || d === s.length - 1 && c === Pe.SUCCEEDED) && (i = l);
|
9160
9160
|
}), {
|
9161
|
-
triggeredOn:
|
9162
|
-
executionStartedOn:
|
9163
|
-
finishedOn:
|
9161
|
+
triggeredOn: Us(r) ? r : "",
|
9162
|
+
executionStartedOn: Us(a?.startTime) ? a?.startTime : "",
|
9163
|
+
finishedOn: Us(i) ? i : "",
|
9164
9164
|
currentStatus: o,
|
9165
9165
|
workerDetails: ZA(e)
|
9166
9166
|
};
|
@@ -9177,7 +9177,7 @@ const GA = (e, s) => {
|
|
9177
9177
|
}, QA = (e) => {
|
9178
9178
|
const s = gc(e);
|
9179
9179
|
return s ? s.finishedOn ? !Nr[s.currentStatus] && Nr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx($, { name: "ic-warning", size: 20, color: null }) : fp(s.workerDetails.status) : /* @__PURE__ */ t.jsx($, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx($, { name: "ic-help-outline", size: 20, color: "N500" });
|
9180
|
-
}, eR = (e = ao, s = OA) => `${Se.RESOURCE_BROWSER}/${e}/${s}/pod/${Gv}`, hp = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === nn.WAITING_TO_START ? "Waiting to start" : e : null, oo = (e) =>
|
9180
|
+
}, eR = (e = ao, s = OA) => `${Se.RESOURCE_BROWSER}/${e}/${s}/pod/${Gv}`, hp = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === nn.WAITING_TO_START ? "Waiting to start" : e : null, oo = (e) => Us(e) ? we(e, "YYYY-MM-DDTHH:mm:ssZ").format(wt.TWELVE_HOURS_FORMAT) : "", tR = (e) => (e || []).reduce(
|
9181
9181
|
(s, n) => {
|
9182
9182
|
const a = n.health?.status?.toLowerCase() ?? "";
|
9183
9183
|
switch (n.hasDrift && (s.driftedNodeCount += 1), a) {
|
@@ -9921,7 +9921,7 @@ const uR = {
|
|
9921
9921
|
children: [
|
9922
9922
|
/* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-12 fw-6 lh-20", children: c ? "Show less" : "Show more" }),
|
9923
9923
|
/* @__PURE__ */ t.jsx(
|
9924
|
-
|
9924
|
+
Cs,
|
9925
9925
|
{
|
9926
9926
|
className: `dc__no-shrink icon-dim-16 flex scb-5 dc__transition--transform ${c ? "dc__flip-180" : ""}`
|
9927
9927
|
}
|
@@ -9930,7 +9930,7 @@ const uR = {
|
|
9930
9930
|
}
|
9931
9931
|
)
|
9932
9932
|
] });
|
9933
|
-
}, Yl = (e) => e && e ===
|
9933
|
+
}, Yl = (e) => e && e === Ls.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
|
9934
9934
|
async function TR({
|
9935
9935
|
appId: e,
|
9936
9936
|
envId: s,
|
@@ -10185,7 +10185,7 @@ const yR = (e) => {
|
|
10185
10185
|
style: oe.neutral,
|
10186
10186
|
size: L.small,
|
10187
10187
|
icon: /* @__PURE__ */ t.jsx(
|
10188
|
-
|
10188
|
+
Es,
|
10189
10189
|
{
|
10190
10190
|
style: {
|
10191
10191
|
marginLeft: "auto",
|
@@ -10249,7 +10249,7 @@ const yR = (e) => {
|
|
10249
10249
|
[
|
10250
10250
|
q.GIT_COMMIT,
|
10251
10251
|
...r === St.ARGO ? [q.ARGOCD_SYNC, q.KUBECTL_APPLY] : []
|
10252
|
-
].map((c) => /* @__PURE__ */ t.jsxs(
|
10252
|
+
].map((c) => /* @__PURE__ */ t.jsxs(gs, { children: [
|
10253
10253
|
e.errorBarConfig?.nextTimelineToProcess === c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10254
10254
|
/* @__PURE__ */ t.jsx(
|
10255
10255
|
co,
|
@@ -10288,7 +10288,7 @@ const LR = ({
|
|
10288
10288
|
renderDeploymentApprovalInfo: l,
|
10289
10289
|
isDeploymentWithoutApproval: d
|
10290
10290
|
}) => {
|
10291
|
-
const u = Fr(), { url: m } =
|
10291
|
+
const u = Fr(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Pt(), [E, g] = w(
|
10292
10292
|
e?.toUpperCase() !== q.ABORTED
|
10293
10293
|
), x = dR.getAppDetails(), f = F(i), C = F(d), N = f.current && c ? c() : Ei(s ?? x?.deploymentAppType), [v, T] = w(N), A = () => {
|
10294
10294
|
Wa && clearTimeout(Wa);
|
@@ -10957,7 +10957,7 @@ const Pn = ({
|
|
10957
10957
|
const s = document.createElement("span");
|
10958
10958
|
s.className = `flex h-100 ${e ? "" : "is-closed"}`;
|
10959
10959
|
const n = /* @__PURE__ */ t.jsx(
|
10960
|
-
|
10960
|
+
Cs,
|
10961
10961
|
{
|
10962
10962
|
className: "icon-dim-12 scn-6 rotate",
|
10963
10963
|
style: { "--rotateBy": e ? "0deg" : "-90deg" }
|
@@ -11144,7 +11144,7 @@ const Pn = ({
|
|
11144
11144
|
ariaLabel: "find-replace-expand-button",
|
11145
11145
|
showAriaLabelInTippy: !1,
|
11146
11146
|
icon: /* @__PURE__ */ t.jsx(
|
11147
|
-
|
11147
|
+
Cs,
|
11148
11148
|
{
|
11149
11149
|
className: "rotate",
|
11150
11150
|
style: {
|
@@ -11921,7 +11921,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
11921
11921
|
onClick: c,
|
11922
11922
|
children: [
|
11923
11923
|
/* @__PURE__ */ t.jsx(
|
11924
|
-
|
11924
|
+
Cs,
|
11925
11925
|
{
|
11926
11926
|
className: "icon-dim-16 fsn-6 rotate",
|
11927
11927
|
style: { "--rotateBy": i ? "360deg" : "270deg" }
|
@@ -12065,7 +12065,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12065
12065
|
}, [i]);
|
12066
12066
|
const h = (C) => C.map((N, v) => {
|
12067
12067
|
if (N.type === "string")
|
12068
|
-
return /* @__PURE__ */ t.jsxs(
|
12068
|
+
return /* @__PURE__ */ t.jsxs(gs, { children: [
|
12069
12069
|
typeof N.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: N.text }) : N.text,
|
12070
12070
|
!r?.hideDivider && v !== C.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
12071
12071
|
] }, N.id);
|
@@ -12078,7 +12078,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12078
12078
|
N.id
|
12079
12079
|
);
|
12080
12080
|
const { selectPickerProps: T } = N;
|
12081
|
-
return /* @__PURE__ */ t.jsxs(
|
12081
|
+
return /* @__PURE__ */ t.jsxs(gs, { children: [
|
12082
12082
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
12083
12083
|
Ut,
|
12084
12084
|
{
|
@@ -12263,7 +12263,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12263
12263
|
l
|
12264
12264
|
);
|
12265
12265
|
};
|
12266
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bg__primary", children: e.map(({ id: c, header: l, headerIconConfig: d, items: u, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(
|
12266
|
+
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bg__primary", children: e.map(({ id: c, header: l, headerIconConfig: d, items: u, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(gs, { children: [
|
12267
12267
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4 py-6 px-8 br-4 dc__hover-n50", children: [
|
12268
12268
|
/* @__PURE__ */ t.jsxs(
|
12269
12269
|
"button",
|
@@ -12502,7 +12502,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12502
12502
|
compareToObfuscatedData: Object.keys(i).length ? i : void 0,
|
12503
12503
|
compareWithObfuscatedData: Object.keys(c).length ? c : void 0
|
12504
12504
|
};
|
12505
|
-
},
|
12505
|
+
}, Os = (e, s) => {
|
12506
12506
|
const { sortBy: n, sortOrder: a } = s ?? { sortBy: "", sortOrder: null };
|
12507
12507
|
try {
|
12508
12508
|
return JSON.stringify(
|
@@ -12529,26 +12529,26 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12529
12529
|
displayName: "data",
|
12530
12530
|
...ed(e) ? {
|
12531
12531
|
value: null,
|
12532
|
-
resolvedValue:
|
12532
|
+
resolvedValue: Os(u, o)
|
12533
12533
|
} : {
|
12534
|
-
value:
|
12534
|
+
value: Os(u, o)
|
12535
12535
|
}
|
12536
12536
|
}, d = {
|
12537
12537
|
displayName: "data",
|
12538
12538
|
...ed(s) ? {
|
12539
12539
|
value: null,
|
12540
|
-
resolvedValue:
|
12540
|
+
resolvedValue: Os(m, o)
|
12541
12541
|
} : {
|
12542
|
-
value:
|
12542
|
+
value: Os(m, o)
|
12543
12543
|
}
|
12544
12544
|
};
|
12545
12545
|
} else
|
12546
12546
|
l = {
|
12547
12547
|
displayName: "data",
|
12548
|
-
value:
|
12548
|
+
value: Os(i, o)
|
12549
12549
|
}, d = {
|
12550
12550
|
displayName: "data",
|
12551
|
-
value:
|
12551
|
+
value: Os(c, o)
|
12552
12552
|
};
|
12553
12553
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
12554
12554
|
}, tr = (e, s) => {
|
@@ -12588,7 +12588,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12588
12588
|
}, nd = (e, s, n) => {
|
12589
12589
|
const a = y0(e), r = {
|
12590
12590
|
displayName: "data",
|
12591
|
-
value: a ?
|
12591
|
+
value: a ? Os(a, n) : ""
|
12592
12592
|
};
|
12593
12593
|
return la(
|
12594
12594
|
{
|
@@ -12609,7 +12609,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12609
12609
|
}, rd = (e, s) => {
|
12610
12610
|
const n = {
|
12611
12611
|
displayName: "data",
|
12612
|
-
value: e?.data ?
|
12612
|
+
value: e?.data ? Os(e.data, s) : ""
|
12613
12613
|
};
|
12614
12614
|
return la(
|
12615
12615
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
@@ -13035,7 +13035,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13035
13035
|
isCompareDeploymentConfigNotAvailable: u,
|
13036
13036
|
...m
|
13037
13037
|
}) => {
|
13038
|
-
const { path: p, params: _ } =
|
13038
|
+
const { path: p, params: _ } = bs(), { resourceType: h, resourceName: E, appId: g, envId: x } = _, { compareWfrId: f, updateSearchParams: C, sortBy: N, sortOrder: v, handleSorting: T } = r, [A, R] = w({
|
13039
13039
|
isLoading: !1,
|
13040
13040
|
data: c,
|
13041
13041
|
hasMore: c.size >= en
|
@@ -13145,7 +13145,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13145
13145
|
resourceId: i,
|
13146
13146
|
renderRunSource: c
|
13147
13147
|
}) => {
|
13148
|
-
const { path: l, params: d } =
|
13148
|
+
const { path: l, params: d } = bs(), { pathname: u, search: m } = ns(), { isSuperAdmin: p } = Ss(), _ = X(() => wp(r), [r]), { currentWfrId: h, previousWfrId: E } = X(
|
13149
13149
|
() => $0({ pipelineDeployments: _, wfrId: a }),
|
13150
13150
|
[_, a]
|
13151
13151
|
), g = !!E, x = _c({
|
@@ -13624,7 +13624,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13624
13624
|
type: "button",
|
13625
13625
|
onClick: e,
|
13626
13626
|
"aria-label": "scroll-to-top",
|
13627
|
-
children: /* @__PURE__ */ t.jsx(
|
13627
|
+
children: /* @__PURE__ */ t.jsx(Es, { className: "rotate", style: { "--rotateBy": "180deg" } })
|
13628
13628
|
}
|
13629
13629
|
) }),
|
13630
13630
|
/* @__PURE__ */ t.jsx(J, { alwaysShowTippyOnHover: !0, content: "Scroll to Bottom", placement: "left", children: /* @__PURE__ */ t.jsx(
|
@@ -13635,7 +13635,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13635
13635
|
type: "button",
|
13636
13636
|
onClick: s,
|
13637
13637
|
"aria-label": "scroll-to-button",
|
13638
|
-
children: /* @__PURE__ */ t.jsx(
|
13638
|
+
children: /* @__PURE__ */ t.jsx(Es, { className: "rotate" })
|
13639
13639
|
}
|
13640
13640
|
) })
|
13641
13641
|
] }) }), J0 = ({
|
@@ -13763,7 +13763,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13763
13763
|
children: [
|
13764
13764
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__transparent dc__align-items-center", children: [
|
13765
13765
|
/* @__PURE__ */ t.jsx(
|
13766
|
-
|
13766
|
+
Cs,
|
13767
13767
|
{
|
13768
13768
|
className: `icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white ${s ? "" : "dc__flip-n90 dc__opacity-0_5"}`
|
13769
13769
|
}
|
@@ -14057,7 +14057,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14057
14057
|
"data-testid": "logs-previous-search-match",
|
14058
14058
|
"aria-label": "Focus the previous search result match",
|
14059
14059
|
disabled: !T,
|
14060
|
-
children: /* @__PURE__ */ t.jsx(
|
14060
|
+
children: /* @__PURE__ */ t.jsx(Cs, { className: "icon-stroke__white dc__flip-180 icon-dim-14 dc__no-shrink" })
|
14061
14061
|
}
|
14062
14062
|
),
|
14063
14063
|
/* @__PURE__ */ t.jsx(
|
@@ -14069,7 +14069,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14069
14069
|
"data-testid": "logs-next-search-match",
|
14070
14070
|
"aria-label": "Focus the next search result match",
|
14071
14071
|
disabled: !T,
|
14072
|
-
children: /* @__PURE__ */ t.jsx(
|
14072
|
+
children: /* @__PURE__ */ t.jsx(Cs, { className: "icon-stroke__white icon-dim-14 dc__no-shrink" })
|
14073
14073
|
}
|
14074
14074
|
)
|
14075
14075
|
] })
|
@@ -14310,7 +14310,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14310
14310
|
}, HG = (e) => {
|
14311
14311
|
const { selectProps: s } = e;
|
14312
14312
|
return /* @__PURE__ */ t.jsx(qe.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
14313
|
-
|
14313
|
+
Es,
|
14314
14314
|
{
|
14315
14315
|
className: "rotate",
|
14316
14316
|
style: {
|
@@ -14573,7 +14573,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14573
14573
|
}) => {
|
14574
14574
|
if (!e && !s)
|
14575
14575
|
return null;
|
14576
|
-
const m = a && (
|
14576
|
+
const m = a && (!Us(r) || !we(r).isBefore(we().subtract(jA, "hours"))), p = () => m ? /* @__PURE__ */ t.jsx(
|
14577
14577
|
Gs,
|
14578
14578
|
{
|
14579
14579
|
to: `${eR(o, i)}/${a}/logs`,
|
@@ -14703,7 +14703,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14703
14703
|
namespace: E,
|
14704
14704
|
workflowExecutionStages: g
|
14705
14705
|
}) => {
|
14706
|
-
const { path: x, params: f } =
|
14706
|
+
const { path: x, params: f } = bs(), { pathname: C } = ns(), N = C.split("/").pop(), { envId: v, ...T } = Pt(), A = l === Ge.CD || l === Ge.GROUP_CD, R = A ? "triggerId" : "buildId", b = _ === p?.id, I = F(null), y = () => {
|
14707
14707
|
const D = {
|
14708
14708
|
...T,
|
14709
14709
|
envId: v,
|
@@ -14811,10 +14811,10 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14811
14811
|
renderRunSource: l,
|
14812
14812
|
resourceId: d
|
14813
14813
|
}) => {
|
14814
|
-
const { pipelineId: u, appId: m, envId: p } = Pt(), { push: _ } = Fr(), { path: h } =
|
14814
|
+
const { pipelineId: u, appId: m, envId: p } = Pt(), { push: _ } = Fr(), { path: h } = bs(), E = (T) => {
|
14815
14815
|
e === Ge.CI ? (r({ offset: 0, size: 20 }), _(Qs(h, { appId: m, pipelineId: T.value }))) : e === Ge.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Qs(h, { envId: p, pipelineId: T.pipelineId }))) : e === Ge.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Qs(h, { envId: p, appId: T.value, pipelineId: T.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Qs(h, { appId: m, envId: T.value, pipelineId: T.pipelineId })));
|
14816
14816
|
}, g = () => {
|
14817
|
-
|
14817
|
+
xs.event({
|
14818
14818
|
category: "pagination",
|
14819
14819
|
action: "auto",
|
14820
14820
|
label: `${e.toLowerCase()}-history`,
|
@@ -14866,7 +14866,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14866
14866
|
)
|
14867
14867
|
] }),
|
14868
14868
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
14869
|
-
o ===
|
14869
|
+
o === Ls.SUCCESS && /* @__PURE__ */ t.jsx(uy, { handleViewAllHistory: i }),
|
14870
14870
|
Array.from(n).sort(([T], [A]) => A - T).map(([T, A], R) => /* @__PURE__ */ t.jsx(
|
14871
14871
|
my,
|
14872
14872
|
{
|
@@ -14890,7 +14890,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14890
14890
|
},
|
14891
14891
|
T
|
14892
14892
|
)),
|
14893
|
-
a && (o ===
|
14893
|
+
a && (o === Ls.SUSPEND || !o) && /* @__PURE__ */ t.jsx(Pp, { callback: g })
|
14894
14894
|
] })
|
14895
14895
|
] });
|
14896
14896
|
}
|
@@ -14950,7 +14950,7 @@ const Cc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14950
14950
|
{
|
14951
14951
|
isKebab: !0,
|
14952
14952
|
rootClassName: "flex p-4 dc__no-left-radius dc__right-radius-4 bg__primary dc__hover-n50",
|
14953
|
-
children: /* @__PURE__ */ t.jsx(
|
14953
|
+
children: /* @__PURE__ */ t.jsx(Cs, { className: "icon-dim-14 scn-6" })
|
14954
14954
|
}
|
14955
14955
|
),
|
14956
14956
|
/* @__PURE__ */ t.jsx(jt.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: l.map(({ status: g, count: x }, f) => /* @__PURE__ */ t.jsxs(
|
@@ -15618,7 +15618,7 @@ const hy = (e) => {
|
|
15618
15618
|
renderTargetConfigInfo: l,
|
15619
15619
|
stage: d
|
15620
15620
|
}) => {
|
15621
|
-
const { url: u } =
|
15621
|
+
const { url: u } = bs(), { pathname: m } = ns();
|
15622
15622
|
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: [
|
15623
15623
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4 cn-9 fs-13 fw-6 lh-20", children: [
|
15624
15624
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__no-shrink dc__gap-4", "data-testid": "deployment-history-start-heading", children: [
|
@@ -15643,7 +15643,7 @@ const hy = (e) => {
|
|
15643
15643
|
/* @__PURE__ */ t.jsx(t.Fragment, { children: o && /* @__PURE__ */ t.jsx(Nc, { imagePath: o, placement: "top" }) })
|
15644
15644
|
) : Object.keys(r ?? {}).length > 0 && a?.map((p) => {
|
15645
15645
|
const _ = r[p.id];
|
15646
|
-
return _ ? /* @__PURE__ */ t.jsxs(
|
15646
|
+
return _ ? /* @__PURE__ */ t.jsxs(gs, { children: [
|
15647
15647
|
p.type !== "WEBHOOK" && _.Commit && /* @__PURE__ */ t.jsx(
|
15648
15648
|
Ni,
|
15649
15649
|
{
|
@@ -16002,7 +16002,7 @@ const hy = (e) => {
|
|
16002
16002
|
triggerHistory: A,
|
16003
16003
|
targetPlatforms: R
|
16004
16004
|
}) => {
|
16005
|
-
const { path: b } =
|
16005
|
+
const { path: b } = bs(), { appId: I, pipelineId: y, triggerId: S, envId: j } = Pt(), P = {
|
16006
16006
|
appId: I,
|
16007
16007
|
envId: j,
|
16008
16008
|
appName: e.helmPackageName,
|
@@ -16144,7 +16144,7 @@ const hy = (e) => {
|
|
16144
16144
|
!!b && !!y
|
16145
16145
|
), k = eo(S?.targetPlatforms), B = (W, ie, ce) => {
|
16146
16146
|
if (ce) {
|
16147
|
-
p?.result?.cdWorkflows?.length && n(w_(p.result.cdWorkflows, "id")), u(
|
16147
|
+
p?.result?.cdWorkflows?.length && n(w_(p.result.cdWorkflows, "id")), u(Ls.SUSPEND);
|
16148
16148
|
return;
|
16149
16149
|
}
|
16150
16150
|
if (W === ie?.id) {
|
@@ -16156,10 +16156,10 @@ const hy = (e) => {
|
|
16156
16156
|
...me ? { targetConfig: me } : {},
|
16157
16157
|
...le ? { userApprovalMetadata: le } : {}
|
16158
16158
|
};
|
16159
|
-
n((Ne) => (Ne.set(W, { ...ie, ...z }), new Map(Ne))), d ===
|
16159
|
+
n((Ne) => (Ne.set(W, { ...ie, ...z }), new Map(Ne))), d === Ls.FETCHING && u(Ls.SUCCESS);
|
16160
16160
|
}
|
16161
16161
|
};
|
16162
|
-
let H = !!d && d !==
|
16162
|
+
let H = !!d && d !== Ls.SUSPEND;
|
16163
16163
|
(P?.result?.artifactId === 0 || S?.artifactId === 0) && (H = !1);
|
16164
16164
|
const [ee, Z, be] = vt(
|
16165
16165
|
() => SR({
|
@@ -16909,7 +16909,7 @@ const Gy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16909
16909
|
children: [
|
16910
16910
|
/* @__PURE__ */ t.jsxs("div", { className: "app-status-modal__header pt-12 flexbox-col px-20 dc__gap-12 border__primary--bottom dc__no-shrink", children: [
|
16911
16911
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__gap-4", children: [
|
16912
|
-
/* @__PURE__ */ t.jsx("h2", { className: "m-0 dc__truncate fs-16 fw-6 lh-1-5 dc__gap-4 flexbox cn-9", children: xe.map((z, Ne) => /* @__PURE__ */ t.jsxs(
|
16912
|
+
/* @__PURE__ */ t.jsx("h2", { className: "m-0 dc__truncate fs-16 fw-6 lh-1-5 dc__gap-4 flexbox cn-9", children: xe.map((z, Ne) => /* @__PURE__ */ t.jsxs(gs, { children: [
|
16913
16913
|
z,
|
16914
16914
|
Ne !== e.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-6 fs-16 fw-4", children: "/" })
|
16915
16915
|
] }, z)) }),
|
@@ -17295,7 +17295,7 @@ const Jy = {
|
|
17295
17295
|
IMAGE_SCAN: "Image Scan",
|
17296
17296
|
CODE_SCAN: "Code Scan",
|
17297
17297
|
KUBERNETES_MANIFEST: "Kubernetes Manifest"
|
17298
|
-
},
|
17298
|
+
}, As = {
|
17299
17299
|
VULNERABILITIES: "Vulnerability",
|
17300
17300
|
LICENSE: "License Risks",
|
17301
17301
|
MISCONFIGURATIONS: "Misconfigurations",
|
@@ -17350,7 +17350,7 @@ const Jy = {
|
|
17350
17350
|
SvgImage: Ru,
|
17351
17351
|
title: "Scan in progress",
|
17352
17352
|
subTitle: "Scan result will be available once complete. Please check again later"
|
17353
|
-
}, sj = "https://cdn.devtron.ai/images/ic-trivy.webp",
|
17353
|
+
}, sj = "https://cdn.devtron.ai/images/ic-trivy.webp", Ns = (e) => (
|
17354
17354
|
/* for all the SEVERITY keys in @severities create @Entity */
|
17355
17355
|
e && vr.map(
|
17356
17356
|
(s) => e[s] && {
|
@@ -17778,7 +17778,7 @@ const Jy = {
|
|
17778
17778
|
]
|
17779
17779
|
})) : null,
|
17780
17780
|
defaultSortIndex: 1,
|
17781
|
-
entities:
|
17781
|
+
entities: Ns(e.misConfSummary.status),
|
17782
17782
|
lastScanTimeString: s,
|
17783
17783
|
scanToolName: a,
|
17784
17784
|
scanToolUrl: r,
|
@@ -17860,7 +17860,7 @@ const Jy = {
|
|
17860
17860
|
]
|
17861
17861
|
})) : null,
|
17862
17862
|
defaultSortIndex: 1,
|
17863
|
-
entities:
|
17863
|
+
entities: Ns(e.summary.severities),
|
17864
17864
|
lastScanTimeString: s,
|
17865
17865
|
scanToolName: a,
|
17866
17866
|
scanToolUrl: r,
|
@@ -17936,12 +17936,12 @@ const Jy = {
|
|
17936
17936
|
case te.LICENSE:
|
17937
17937
|
case te.EXPOSED_SECRETS:
|
17938
17938
|
return {
|
17939
|
-
entities:
|
17939
|
+
entities: Ns(e[s]?.summary.severities),
|
17940
17940
|
...o
|
17941
17941
|
};
|
17942
17942
|
case te.MISCONFIGURATIONS:
|
17943
17943
|
return {
|
17944
|
-
entities:
|
17944
|
+
entities: Ns(e[s]?.misConfSummary.status),
|
17945
17945
|
...o
|
17946
17946
|
};
|
17947
17947
|
default:
|
@@ -17989,7 +17989,7 @@ const Jy = {
|
|
17989
17989
|
}, Ii = (e) => ({
|
17990
17990
|
titlePrefix: "Image",
|
17991
17991
|
title: e.image,
|
17992
|
-
entities:
|
17992
|
+
entities: Ns(e.summary.severities),
|
17993
17993
|
lastScanTimeString: e.StartedOn,
|
17994
17994
|
scanToolName: e.scanToolName,
|
17995
17995
|
scanToolUrl: e.scanToolUrl,
|
@@ -18132,7 +18132,7 @@ const Jy = {
|
|
18132
18132
|
]
|
18133
18133
|
})) : null,
|
18134
18134
|
defaultSortIndex: 1,
|
18135
|
-
entities:
|
18135
|
+
entities: Ns(e.summary.severities),
|
18136
18136
|
lastScanTimeString: e.StartedOn,
|
18137
18137
|
scanToolName: e.scanToolName,
|
18138
18138
|
scanToolUrl: e.scanToolUrl,
|
@@ -18183,7 +18183,7 @@ const Jy = {
|
|
18183
18183
|
}, Sj = (e, s) => {
|
18184
18184
|
const n = e[s]?.list?.[0];
|
18185
18185
|
return {
|
18186
|
-
entities:
|
18186
|
+
entities: Ns(e[s]?.summary.severities),
|
18187
18187
|
scanToolName: n?.scanToolName,
|
18188
18188
|
scanToolUrl: n?.scanToolUrl,
|
18189
18189
|
lastScanTimeString: n?.StartedOn
|
@@ -18253,12 +18253,12 @@ const Jy = {
|
|
18253
18253
|
switch (s) {
|
18254
18254
|
case te.MISCONFIGURATIONS:
|
18255
18255
|
return {
|
18256
|
-
entities:
|
18256
|
+
entities: Ns(e[s]?.misConfSummary.status),
|
18257
18257
|
...n
|
18258
18258
|
};
|
18259
18259
|
case te.EXPOSED_SECRETS:
|
18260
18260
|
return {
|
18261
|
-
entities:
|
18261
|
+
entities: Ns(e[s]?.summary.severities),
|
18262
18262
|
...n
|
18263
18263
|
};
|
18264
18264
|
default:
|
@@ -18305,7 +18305,7 @@ const Jy = {
|
|
18305
18305
|
default:
|
18306
18306
|
return null;
|
18307
18307
|
}
|
18308
|
-
},
|
18308
|
+
}, Rs = ({ category: e, subCategory: s }) => JSON.stringify({ category: e, subCategory: s }), wj = (e) => {
|
18309
18309
|
const s = JSON.parse(e);
|
18310
18310
|
return {
|
18311
18311
|
category: s.category,
|
@@ -18327,8 +18327,8 @@ const Jy = {
|
|
18327
18327
|
items: [
|
18328
18328
|
{
|
18329
18329
|
type: "item",
|
18330
|
-
title:
|
18331
|
-
id:
|
18330
|
+
title: As.VULNERABILITIES,
|
18331
|
+
id: Rs({
|
18332
18332
|
category: _e.IMAGE_SCAN,
|
18333
18333
|
subCategory: te.VULNERABILITIES
|
18334
18334
|
})
|
@@ -18336,8 +18336,8 @@ const Jy = {
|
|
18336
18336
|
...a ? [
|
18337
18337
|
{
|
18338
18338
|
type: "item",
|
18339
|
-
title:
|
18340
|
-
id:
|
18339
|
+
title: As.LICENSE,
|
18340
|
+
id: Rs({
|
18341
18341
|
category: _e.IMAGE_SCAN,
|
18342
18342
|
subCategory: te.LICENSE
|
18343
18343
|
})
|
@@ -18354,32 +18354,32 @@ const Jy = {
|
|
18354
18354
|
items: [
|
18355
18355
|
{
|
18356
18356
|
type: "item",
|
18357
|
-
title:
|
18358
|
-
id:
|
18357
|
+
title: As.VULNERABILITIES,
|
18358
|
+
id: Rs({
|
18359
18359
|
category: _e.CODE_SCAN,
|
18360
18360
|
subCategory: te.VULNERABILITIES
|
18361
18361
|
})
|
18362
18362
|
},
|
18363
18363
|
{
|
18364
18364
|
type: "item",
|
18365
|
-
title:
|
18366
|
-
id:
|
18365
|
+
title: As.LICENSE,
|
18366
|
+
id: Rs({
|
18367
18367
|
category: _e.CODE_SCAN,
|
18368
18368
|
subCategory: te.LICENSE
|
18369
18369
|
})
|
18370
18370
|
},
|
18371
18371
|
{
|
18372
18372
|
type: "item",
|
18373
|
-
title:
|
18374
|
-
id:
|
18373
|
+
title: As.MISCONFIGURATIONS,
|
18374
|
+
id: Rs({
|
18375
18375
|
category: _e.CODE_SCAN,
|
18376
18376
|
subCategory: te.MISCONFIGURATIONS
|
18377
18377
|
})
|
18378
18378
|
},
|
18379
18379
|
{
|
18380
18380
|
type: "item",
|
18381
|
-
title:
|
18382
|
-
id:
|
18381
|
+
title: As.EXPOSED_SECRETS,
|
18382
|
+
id: Rs({
|
18383
18383
|
category: _e.CODE_SCAN,
|
18384
18384
|
subCategory: te.EXPOSED_SECRETS
|
18385
18385
|
})
|
@@ -18395,16 +18395,16 @@ const Jy = {
|
|
18395
18395
|
items: [
|
18396
18396
|
{
|
18397
18397
|
type: "item",
|
18398
|
-
title:
|
18399
|
-
id:
|
18398
|
+
title: As.MISCONFIGURATIONS,
|
18399
|
+
id: Rs({
|
18400
18400
|
category: _e.KUBERNETES_MANIFEST,
|
18401
18401
|
subCategory: te.MISCONFIGURATIONS
|
18402
18402
|
})
|
18403
18403
|
},
|
18404
18404
|
{
|
18405
18405
|
type: "item",
|
18406
|
-
title:
|
18407
|
-
id:
|
18406
|
+
title: As.EXPOSED_SECRETS,
|
18407
|
+
id: Rs({
|
18408
18408
|
category: _e.KUBERNETES_MANIFEST,
|
18409
18409
|
subCategory: te.EXPOSED_SECRETS
|
18410
18410
|
})
|
@@ -19338,7 +19338,7 @@ const Fj = "bulk-selection-pop-up-menu", Uo = {
|
|
19338
19338
|
);
|
19339
19339
|
return /* @__PURE__ */ t.jsx(pt, { wrap: h, condition: _, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-items-center", children: [
|
19340
19340
|
/* @__PURE__ */ t.jsx(
|
19341
|
-
|
19341
|
+
vs,
|
19342
19342
|
{
|
19343
19343
|
ref: r,
|
19344
19344
|
isChecked: i,
|
@@ -19349,7 +19349,7 @@ const Fj = "bulk-selection-pop-up-menu", Uo = {
|
|
19349
19349
|
onClick: _ ? null : p
|
19350
19350
|
}
|
19351
19351
|
),
|
19352
|
-
n && /* @__PURE__ */ t.jsx(
|
19352
|
+
n && /* @__PURE__ */ t.jsx(Es, { className: "icon-dim-20 fcn-6 dc__no-shrink" })
|
19353
19353
|
] }) });
|
19354
19354
|
}
|
19355
19355
|
);
|
@@ -19404,7 +19404,7 @@ const dH = ({
|
|
19404
19404
|
disabled: i,
|
19405
19405
|
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",
|
19406
19406
|
children: /* @__PURE__ */ t.jsx(
|
19407
|
-
|
19407
|
+
Es,
|
19408
19408
|
{
|
19409
19409
|
className: "icon-dim-16 fcn-0 dc__no-shrink rotate",
|
19410
19410
|
style: { "--rotateBy": l ? "180deg" : "0deg" }
|
@@ -20806,7 +20806,7 @@ const Rd = ({
|
|
20806
20806
|
let b = { isValid: !0, messages: [] };
|
20807
20807
|
return o === ms.KEY ? (m || s.value) && (b = E.propagateTagKey(m)) : (r || m || s.propagate) && (b = E.propagateTagValue(m, s.key)), b.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Re, "data-testid": "tag-label-cross-stop-propagation", children: [
|
20808
20808
|
b.messages.map((I) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
20809
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
20809
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Ts, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
20810
20810
|
/* @__PURE__ */ t.jsx("span", { children: I })
|
20811
20811
|
] }, I)),
|
20812
20812
|
o === ms.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -20934,7 +20934,7 @@ const Rd = ({
|
|
20934
20934
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
20935
20935
|
onClick: u,
|
20936
20936
|
"data-testid": `delete-tag-${e}`,
|
20937
|
-
children: /* @__PURE__ */ t.jsx(
|
20937
|
+
children: /* @__PURE__ */ t.jsx(Ts, { className: "icon-dim-20 mt-4" })
|
20938
20938
|
}
|
20939
20939
|
)
|
20940
20940
|
] });
|
@@ -20978,7 +20978,7 @@ const OO = ({
|
|
20978
20978
|
dataTestId: "file-upload-remove-file-button",
|
20979
20979
|
ariaLabel: "Remove File",
|
20980
20980
|
showAriaLabelInTippy: !1,
|
20981
|
-
icon: /* @__PURE__ */ t.jsx(
|
20981
|
+
icon: /* @__PURE__ */ t.jsx(Ts, {}),
|
20982
20982
|
onClick: l,
|
20983
20983
|
variant: K.borderLess,
|
20984
20984
|
style: oe.negativeGrey,
|
@@ -21224,7 +21224,7 @@ const OO = ({
|
|
21224
21224
|
gridTemplateColumns: g
|
21225
21225
|
},
|
21226
21226
|
children: e.map((S) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
21227
|
-
s.map(({ key: j }, P) => /* @__PURE__ */ t.jsx(
|
21227
|
+
s.map(({ key: j }, P) => /* @__PURE__ */ t.jsx(gs, { children: y(S, j, P) }, j)),
|
21228
21228
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
21229
21229
|
G,
|
21230
21230
|
{
|
@@ -21907,7 +21907,7 @@ const Od = (e) => {
|
|
21907
21907
|
}
|
21908
21908
|
) })
|
21909
21909
|
] });
|
21910
|
-
},
|
21910
|
+
}, ys = {
|
21911
21911
|
width: 356,
|
21912
21912
|
height: 504
|
21913
21913
|
}, c_ = "No Defined Description", GO = "No Defined Value", HO = "What is scoped variable?", Bo = (e, s) => e && s ? `"${e}":${s},` : "", YO = ({
|
@@ -22025,7 +22025,7 @@ const Od = (e) => {
|
|
22025
22025
|
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-16 fcv-5" }) }),
|
22026
22026
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: HO })
|
22027
22027
|
] }),
|
22028
|
-
/* @__PURE__ */ t.jsx(
|
22028
|
+
/* @__PURE__ */ t.jsx(Es, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
22029
22029
|
]
|
22030
22030
|
}
|
22031
22031
|
),
|
@@ -22085,7 +22085,7 @@ const Od = (e) => {
|
|
22085
22085
|
/* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
|
22086
22086
|
G,
|
22087
22087
|
{
|
22088
|
-
icon: /* @__PURE__ */ t.jsx(
|
22088
|
+
icon: /* @__PURE__ */ t.jsx(Ts, { className: vn }),
|
22089
22089
|
ariaLabel: "Close suggestions",
|
22090
22090
|
showAriaLabelInTippy: !1,
|
22091
22091
|
dataTestId: "deactivate-suggestions",
|
@@ -22190,15 +22190,15 @@ const Od = (e) => {
|
|
22190
22190
|
_({
|
22191
22191
|
x: u.x,
|
22192
22192
|
y: u.y
|
22193
|
-
}), b.y > f.height -
|
22193
|
+
}), b.y > f.height - ys.height && _({
|
22194
22194
|
x: u.x,
|
22195
|
-
y: f.height -
|
22196
|
-
}), b.x > f.width -
|
22197
|
-
x: f.width -
|
22195
|
+
y: f.height - ys.height - N.y
|
22196
|
+
}), b.x > f.width - ys.width && _({
|
22197
|
+
x: f.width - ys.width - N.x,
|
22198
22198
|
y: u.y
|
22199
|
-
}), b.x > f.width -
|
22200
|
-
x: f.width -
|
22201
|
-
y: f.height -
|
22199
|
+
}), b.x > f.width - ys.width && b.y > f.height - ys.height && _({
|
22200
|
+
x: f.width - ys.width - N.x,
|
22201
|
+
y: f.height - ys.height - N.y
|
22202
22202
|
}), d(!0);
|
22203
22203
|
}, T = Fe((b) => {
|
22204
22204
|
b.stopPropagation(), d(!1);
|
@@ -22830,7 +22830,7 @@ const Nw = async (e, s) => {
|
|
22830
22830
|
setSidePanelConfig: p,
|
22831
22831
|
loginCount: _,
|
22832
22832
|
showGettingStartedCard: h
|
22833
|
-
} =
|
22833
|
+
} = Ss(), { appTheme: E } = yn(), g = ip(), x = F(null), f = () => {
|
22834
22834
|
l();
|
22835
22835
|
}, C = () => {
|
22836
22836
|
x.current?.open();
|
@@ -22928,7 +22928,7 @@ const Nw = async (e, s) => {
|
|
22928
22928
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
22929
22929
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
22930
22930
|
} = window._env_, o = Fe(() => {
|
22931
|
-
s(!0),
|
22931
|
+
s(!0), xs.event({
|
22932
22932
|
category: "PRIMARY_HEADER",
|
22933
22933
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
22934
22934
|
});
|
@@ -23009,7 +23009,7 @@ const Nw = async (e, s) => {
|
|
23009
23009
|
}
|
23010
23010
|
);
|
23011
23011
|
}, Ow = ({ user: e, onClick: s }) => {
|
23012
|
-
const { viewIsPipelineRBACConfiguredNode: n } =
|
23012
|
+
const { viewIsPipelineRBACConfiguredNode: n } = Ss(), { open: a, overlayProps: r, popoverProps: o, triggerProps: i, scrollableRef: c, closePopover: l } = oc({
|
23013
23013
|
id: "profile-menu",
|
23014
23014
|
alignment: "end",
|
23015
23015
|
width: 250
|
@@ -23068,7 +23068,7 @@ const Nw = async (e, s) => {
|
|
23068
23068
|
onClose: l,
|
23069
23069
|
tippyProps: d
|
23070
23070
|
}) => {
|
23071
|
-
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } =
|
23071
|
+
const { setLoginCount: u, setShowGettingStartedCard: m, setSidePanelConfig: p, sidePanelConfig: _ } = Ss(), { showSwitchThemeLocationTippy: h, handleShowSwitchThemeLocationTippyChange: E } = yn(), { isTippyCustomized: g, tippyRedirectLink: x, TippyIcon: f, tippyMessage: C, onClickTippyButton: N, additionalContent: v } = d || {}, { email: T } = ec(), [A, R] = w(
|
23072
23072
|
{
|
23073
23073
|
serverInfo: void 0,
|
23074
23074
|
fetchingServerInfo: !1
|
@@ -23271,7 +23271,7 @@ const ww = (e) => [
|
|
23271
23271
|
]
|
23272
23272
|
}
|
23273
23273
|
], yH = ({ headerName: e, additionalHeaderInfo: s }) => {
|
23274
|
-
const { serverMode: n } =
|
23274
|
+
const { serverMode: n } = Ss(), a = Pt(), r = ns(), o = `${Se.APP}/${Se.APP_LIST}/${a.appType ?? sl.AppType.DEVTRON_APPS}/${sl.CREATE_DEVTRON_APP_URL}${r.search}`, i = () => n === rm.FULL ? /* @__PURE__ */ t.jsx(
|
23275
23275
|
Qr,
|
23276
23276
|
{
|
23277
23277
|
id: "page-header-create-app-action-menu",
|
@@ -23455,19 +23455,19 @@ const ww = (e) => [
|
|
23455
23455
|
p(),
|
23456
23456
|
l ?? m()
|
23457
23457
|
] });
|
23458
|
-
},
|
23458
|
+
}, Ds = {
|
23459
23459
|
ACTIVE: "Active on",
|
23460
23460
|
VIRTUAL_ENV: "Last deployed on",
|
23461
23461
|
FAILED: "Last deployment failed on",
|
23462
23462
|
DEPLOYING: "Deploying on"
|
23463
23463
|
}, $w = (e) => {
|
23464
23464
|
switch (e) {
|
23465
|
-
case
|
23466
|
-
case
|
23465
|
+
case Ds.VIRTUAL_ENV:
|
23466
|
+
case Ds.ACTIVE:
|
23467
23467
|
return { Icon: /* @__PURE__ */ t.jsx(Fu, { className: "icon-dim-16 scg-5" }), stateClassName: "bcg-1 eg-2" };
|
23468
|
-
case
|
23468
|
+
case Ds.FAILED:
|
23469
23469
|
return { Icon: /* @__PURE__ */ t.jsx(gg, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
|
23470
|
-
case
|
23470
|
+
case Ds.DEPLOYING:
|
23471
23471
|
return {
|
23472
23472
|
Icon: /* @__PURE__ */ t.jsx($, { name: "ic-circle-loader", color: "O500" }),
|
23473
23473
|
stateClassName: "bcy-1 ey-2"
|
@@ -23508,7 +23508,7 @@ const ww = (e) => [
|
|
23508
23508
|
additionalInfo: d,
|
23509
23509
|
targetPlatforms: u
|
23510
23510
|
}) => {
|
23511
|
-
const m = () => c ?
|
23511
|
+
const m = () => c ? Ds.VIRTUAL_ENV : Ds.ACTIVE, p = () => {
|
23512
23512
|
if (l?.length) {
|
23513
23513
|
const x = l.length === 1 ? l[0] : `${l.length} environments`;
|
23514
23514
|
return /* @__PURE__ */ t.jsx(
|
@@ -23532,8 +23532,8 @@ const ww = (e) => [
|
|
23532
23532
|
d
|
23533
23533
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23534
23534
|
p(),
|
23535
|
-
n === $a.PROGRESSING && /* @__PURE__ */ t.jsx(Vn, { envStateText:
|
23536
|
-
(n === $a.DEGRADED || n === $a.FAILED) && /* @__PURE__ */ t.jsx(Vn, { envStateText:
|
23535
|
+
n === $a.PROGRESSING && /* @__PURE__ */ t.jsx(Vn, { envStateText: Ds.DEPLOYING, title: a }),
|
23536
|
+
(n === $a.DEGRADED || n === $a.FAILED) && /* @__PURE__ */ t.jsx(Vn, { envStateText: Ds.FAILED, title: a }),
|
23537
23537
|
i && /* @__PURE__ */ t.jsx(
|
23538
23538
|
Ur,
|
23539
23539
|
{
|
@@ -23659,7 +23659,7 @@ const ww = (e) => [
|
|
23659
23659
|
children: [
|
23660
23660
|
l ? "Hide info" : "Show more info",
|
23661
23661
|
/* @__PURE__ */ t.jsx(
|
23662
|
-
|
23662
|
+
Es,
|
23663
23663
|
{
|
23664
23664
|
className: "icon-dim-24 rotate fcn-6",
|
23665
23665
|
style: { "--rotateBy": l ? "-180deg" : "0deg" }
|
@@ -23920,7 +23920,7 @@ const Vw = ({
|
|
23920
23920
|
}
|
23921
23921
|
);
|
23922
23922
|
}, Zw = 2;
|
23923
|
-
var
|
23923
|
+
var $s = /* @__PURE__ */ ((e) => (e.ACTIVE = "ACTIVE", e.EXPIRED = "EXPIRED", e.REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED", e))($s || {});
|
23924
23924
|
const Qw = ({
|
23925
23925
|
isFreemium: e,
|
23926
23926
|
licenseStatus: s,
|
@@ -23929,9 +23929,9 @@ const Qw = ({
|
|
23929
23929
|
if (e)
|
23930
23930
|
return n?.code === Ji.ClusterLimitExceeded ? { bgColor: "var(--R100)", textColor: "var(--R500)" } : { bgColor: "var(--G100)", textColor: "var(--G500)" };
|
23931
23931
|
switch (s) {
|
23932
|
-
case
|
23932
|
+
case $s.ACTIVE:
|
23933
23933
|
return { bgColor: "var(--G100)", textColor: "var(--G500)" };
|
23934
|
-
case
|
23934
|
+
case $s.REMINDER_THRESHOLD_REACHED:
|
23935
23935
|
return { bgColor: "var(--Y100)", textColor: "var(--Y700)" };
|
23936
23936
|
default:
|
23937
23937
|
return { bgColor: "var(--R100)", textColor: "var(--R500)" };
|
@@ -23939,7 +23939,7 @@ const Qw = ({
|
|
23939
23939
|
}, eL = ({
|
23940
23940
|
ttl: e,
|
23941
23941
|
reminderThreshold: s
|
23942
|
-
}) => e <= 0 ?
|
23942
|
+
}) => e <= 0 ? $s.EXPIRED : e < s * 24 * 60 * 60 ? $s.REMINDER_THRESHOLD_REACHED : $s.ACTIVE, tL = (e, s) => {
|
23943
23943
|
const {
|
23944
23944
|
isTrial: n,
|
23945
23945
|
expiry: a,
|
@@ -24078,7 +24078,7 @@ const Qw = ({
|
|
24078
24078
|
ariaLabel: "close activate license dialog",
|
24079
24079
|
onClick: n,
|
24080
24080
|
style: oe.negativeGrey,
|
24081
|
-
icon: /* @__PURE__ */ t.jsx(
|
24081
|
+
icon: /* @__PURE__ */ t.jsx(Ts, {}),
|
24082
24082
|
showAriaLabelInTippy: !1
|
24083
24083
|
}
|
24084
24084
|
)
|
@@ -24144,21 +24144,19 @@ const Qw = ({
|
|
24144
24144
|
licenseStatus: s,
|
24145
24145
|
licenseStatusError: n
|
24146
24146
|
}) => {
|
24147
|
-
if (
|
24148
|
-
|
24149
|
-
const a = n?.code === Ji.ClusterLimitExceeded;
|
24150
|
-
if (s === gs.ACTIVE && e)
|
24147
|
+
if (e) {
|
24148
|
+
const r = n?.code === Ji.ClusterLimitExceeded;
|
24151
24149
|
return /* @__PURE__ */ t.jsxs("div", { className: "p-16 fs-13 lh-1-5 flexbox-col dc__gap-8", children: [
|
24152
24150
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__content-space fs-13 fw-4 lh-20 cn-9", children: [
|
24153
|
-
|
24151
|
+
r ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
24154
24152
|
/* @__PURE__ */ t.jsx("span", { className: "fw-6", children: "Multiple Clusters Detected" }),
|
24155
24153
|
/* @__PURE__ */ t.jsx("span", { children: "Your account is connected to multiple clusters, which isn’t allowed on the freemium plan. Upgrade to an Enterprise license or contact us." })
|
24156
24154
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "fw-6", children: "Unlimited single cluster usage" }),
|
24157
24155
|
/* @__PURE__ */ t.jsx(
|
24158
24156
|
$,
|
24159
24157
|
{
|
24160
|
-
name:
|
24161
|
-
color:
|
24158
|
+
name: r ? "ic-error" : "ic-success",
|
24159
|
+
color: r ? "R500" : "G500",
|
24162
24160
|
size: 20
|
24163
24161
|
}
|
24164
24162
|
)
|
@@ -24176,7 +24174,10 @@ const Qw = ({
|
|
24176
24174
|
) }),
|
24177
24175
|
/* @__PURE__ */ t.jsx(Gd, {})
|
24178
24176
|
] });
|
24179
|
-
|
24177
|
+
}
|
24178
|
+
if (s === $s.ACTIVE)
|
24179
|
+
return null;
|
24180
|
+
const a = s === $s.EXPIRED;
|
24180
24181
|
return /* @__PURE__ */ t.jsxs("div", { className: "p-16 fs-13 lh-1-5 flexbox-col dc__gap-8", children: [
|
24181
24182
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__content-space", children: [
|
24182
24183
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
@@ -24187,8 +24188,8 @@ const Qw = ({
|
|
24187
24188
|
/* @__PURE__ */ t.jsx(
|
24188
24189
|
$,
|
24189
24190
|
{
|
24190
|
-
name:
|
24191
|
-
color:
|
24191
|
+
name: a ? "ic-error" : "ic-timer",
|
24192
|
+
color: a ? "R500" : "Y500",
|
24192
24193
|
size: 16
|
24193
24194
|
}
|
24194
24195
|
)
|
@@ -24208,11 +24209,11 @@ const Qw = ({
|
|
24208
24209
|
handleCopySuccess: d,
|
24209
24210
|
licenseStatusError: u
|
24210
24211
|
}) => {
|
24211
|
-
const { bgColor: m, textColor: p } = Qw({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = SD(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, E = l === tt.dark, g = F(null), x = ea(window.innerWidth), f = ea(window.innerHeight), C =
|
24212
|
+
const { bgColor: m, textColor: p } = Qw({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = SD(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, E = l === tt.dark, g = F(null), x = ea(window.innerWidth), f = ea(window.innerHeight), C = ws(f, (b) => {
|
24212
24213
|
if (!g.current) return 0;
|
24213
24214
|
const I = g.current.getBoundingClientRect();
|
24214
24215
|
return -(b - I.top - I.height / 2) / Vd;
|
24215
|
-
}), N =
|
24216
|
+
}), N = ws(x, (b) => {
|
24216
24217
|
if (!g.current) return 0;
|
24217
24218
|
const I = g.current.getBoundingClientRect();
|
24218
24219
|
return (b - I.left - I.width / 2) / Vd;
|
@@ -24225,10 +24226,10 @@ const Qw = ({
|
|
24225
24226
|
window.removeEventListener("mousemove", b);
|
24226
24227
|
};
|
24227
24228
|
}, []);
|
24228
|
-
const v =
|
24229
|
+
const v = ws(
|
24229
24230
|
[C, N],
|
24230
24231
|
([b, I]) => b + I
|
24231
|
-
), T =
|
24232
|
+
), T = ws(v, [-5, 5], [-100, 200]), A = ws(T, [-100, 50, 200], [0, E ? 0.25 : 0.1, 0]), R = E ? Jc`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${A}) ${T}%, transparent)` : Jc`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${A}) ${T}%, transparent)`;
|
24232
24233
|
return /* @__PURE__ */ t.jsxs("div", { className: "license-card-wrapper flexbox-col p-8 br-16", style: { backgroundColor: m }, children: [
|
24233
24234
|
/* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
|
24234
24235
|
ke.div,
|
@@ -24695,7 +24696,7 @@ const Qw = ({
|
|
24695
24696
|
onKeyDown: h,
|
24696
24697
|
children: [
|
24697
24698
|
e && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink icon-dim-40 p-8 ${r ? "" : "dc__visible-hover--child"}`, children: /* @__PURE__ */ t.jsx(
|
24698
|
-
|
24699
|
+
vs,
|
24699
24700
|
{
|
24700
24701
|
isChecked: r,
|
24701
24702
|
onChange: h,
|
@@ -25153,7 +25154,7 @@ const gL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25153
25154
|
};
|
25154
25155
|
}, [e, s]), a ? ku(n, a) : null;
|
25155
25156
|
}, KH = ({ isLoading: e, intervalTime: s = 50 }) => {
|
25156
|
-
const n = ea(0), a = yh(n, { stiffness: 50, damping: 20 }), r =
|
25157
|
+
const n = ea(0), a = yh(n, { stiffness: 50, damping: 20 }), r = ws(a, (o) => `${o}%`);
|
25157
25158
|
return M(() => {
|
25158
25159
|
let o = null;
|
25159
25160
|
return e && (o = setInterval(() => {
|
@@ -25179,13 +25180,13 @@ const gL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25179
25180
|
}
|
25180
25181
|
) });
|
25181
25182
|
}, bL = ({ title: e, value: s, size: n, bgColor: a, fgColor: r }) => /* @__PURE__ */ t.jsx(rh, { title: e, value: s, size: n, bgColor: `var(--${a})`, fgColor: `var(--${r})` }), TL = {
|
25182
|
-
[
|
25183
|
-
[
|
25184
|
-
[
|
25185
|
-
[
|
25186
|
-
[
|
25187
|
-
[
|
25188
|
-
[
|
25183
|
+
[js.google]: "ic-google",
|
25184
|
+
[js.github]: "ic-github",
|
25185
|
+
[js.gitlab]: "ic-gitlab",
|
25186
|
+
[js.ldap]: "ic-ldap",
|
25187
|
+
[js.microsoft]: "ic-microsoft",
|
25188
|
+
[js.oidc]: "ic-oidc",
|
25189
|
+
[js.openshift]: "ic-openshift"
|
25189
25190
|
}, zH = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx($, { name: TL[e], size: s, color: null }), SL = {
|
25190
25191
|
[tt.light]: null,
|
25191
25192
|
[tt.dark]: null,
|
@@ -25891,7 +25892,7 @@ const UL = ({
|
|
25891
25892
|
className: `flexbox dc__align-items-center ${La}`,
|
25892
25893
|
style: { left: Da },
|
25893
25894
|
children: /* @__PURE__ */ t.jsx(
|
25894
|
-
|
25895
|
+
vs,
|
25895
25896
|
{
|
25896
25897
|
isChecked: zt,
|
25897
25898
|
onChange: he,
|
@@ -26134,7 +26135,7 @@ const UL = ({
|
|
26134
26135
|
xe.reduce((ne, me) => (ne[me.id] = me, ne), {})
|
26135
26136
|
);
|
26136
26137
|
}, [xe]);
|
26137
|
-
const de = o ??
|
26138
|
+
const de = o ?? gs, se = () => W && !ce && !h ? /* @__PURE__ */ t.jsx(Pn, { code: W.code, reload: ie }) : !ce && !Ce?.length && !h ? e !== Dr.NONE && D ? /* @__PURE__ */ t.jsx(
|
26138
26139
|
Tc,
|
26139
26140
|
{
|
26140
26141
|
...c.noRowsForFilterConfig,
|
@@ -26336,7 +26337,7 @@ const UL = ({
|
|
26336
26337
|
setTagErrors: c
|
26337
26338
|
}) => {
|
26338
26339
|
const l = (_) => {
|
26339
|
-
|
26340
|
+
xs.event({
|
26340
26341
|
category: "Tags",
|
26341
26342
|
action: `${e.toUpperCase()}_PROPAGATE_TAG_BUTTON_CLICKED`
|
26342
26343
|
});
|
@@ -26361,7 +26362,7 @@ const UL = ({
|
|
26361
26362
|
}
|
26362
26363
|
) });
|
26363
26364
|
}, u = () => {
|
26364
|
-
|
26365
|
+
xs.event({
|
26365
26366
|
category: "Tags",
|
26366
26367
|
action: `${e.toUpperCase()}_ADD_TAG_BUTTON_CLICKED`
|
26367
26368
|
});
|
@@ -26436,7 +26437,7 @@ const UL = ({
|
|
26436
26437
|
}
|
26437
26438
|
}
|
26438
26439
|
) }), QH = () => {
|
26439
|
-
const { pathname: e, search: s } = ns(), { tempAppWindowConfig: n, setTempAppWindowConfig: a } =
|
26440
|
+
const { pathname: e, search: s } = ns(), { tempAppWindowConfig: n, setTempAppWindowConfig: a } = Ss(), r = F(Zd({ pathname: e, search: s })), o = () => {
|
26440
26441
|
a({ open: !1, title: null, url: null, component: null, image: null });
|
26441
26442
|
};
|
26442
26443
|
if (M(() => {
|
@@ -26871,7 +26872,7 @@ const UL = ({
|
|
26871
26872
|
className: "w-8 h-20 bcn-9 ml-2 dc__inline-block br-2"
|
26872
26873
|
}
|
26873
26874
|
), t4 = (e) => {
|
26874
|
-
const s = ea(0), n =
|
26875
|
+
const s = ea(0), n = ws(s, (a) => e.slice(0, Math.floor(a)));
|
26875
26876
|
return M(() => Qn(s, e.length, {
|
26876
26877
|
type: "tween",
|
26877
26878
|
duration: 4,
|
@@ -27005,7 +27006,7 @@ const UL = ({
|
|
27005
27006
|
title: "Deploy Image from External Service",
|
27006
27007
|
subtitle: "Receive images from an external service (eg. jenkins) & deploy to an environment.",
|
27007
27008
|
dataTestId: "deploy-image-external-service-link",
|
27008
|
-
type:
|
27009
|
+
type: Ps.WEBHOOK,
|
27009
27010
|
icons: [
|
27010
27011
|
{ name: "ic-webhook", color: null },
|
27011
27012
|
{ name: "ic-deploy-color", color: null }
|
@@ -27055,7 +27056,7 @@ const UL = ({
|
|
27055
27056
|
onClick: l ? void 0 : c,
|
27056
27057
|
onKeyDown: l ? void 0 : c,
|
27057
27058
|
children: [
|
27058
|
-
!!a.length && /* @__PURE__ */ t.jsx("div", { className: "source-type-card__icons flex bg__tertiary br-6 px-12 py-16 m-4", children: a.map(({ name: d, color: u }, m) => /* @__PURE__ */ t.jsxs(
|
27059
|
+
!!a.length && /* @__PURE__ */ t.jsx("div", { className: "source-type-card__icons flex bg__tertiary br-6 px-12 py-16 m-4", children: a.map(({ name: d, color: u }, m) => /* @__PURE__ */ t.jsxs(gs, { children: [
|
27059
27060
|
/* @__PURE__ */ t.jsx("div", { className: "flex p-8 br-8 bg__primary border__secondary-translucent", children: /* @__PURE__ */ t.jsx($, { name: d, color: u, size: 20 }) }),
|
27060
27061
|
m !== a.length - 1 && /* @__PURE__ */ t.jsx("div", { className: "divider__secondary-translucent--horizontal w-16" })
|
27061
27062
|
] }, d)) }),
|
@@ -27086,9 +27087,9 @@ const UL = ({
|
|
27086
27087
|
}) => {
|
27087
27088
|
if (!e || !s)
|
27088
27089
|
return null;
|
27089
|
-
const n = e.find((o) => +o.id === s.appWorkflowId), a = n.nodes.find((o) => o.type ===
|
27090
|
-
if (n.nodes.some((o) => o.type ===
|
27091
|
-
return
|
27090
|
+
const n = e.find((o) => +o.id === s.appWorkflowId), a = n.nodes.find((o) => o.type === Ps.CI);
|
27091
|
+
if (n.nodes.some((o) => o.type === Ps.WEBHOOK))
|
27092
|
+
return Ps.WEBHOOK;
|
27092
27093
|
if (a) {
|
27093
27094
|
if (a.isJobCI)
|
27094
27095
|
return dt.JOB_CI;
|
@@ -27162,7 +27163,7 @@ const UL = ({
|
|
27162
27163
|
), C = () => {
|
27163
27164
|
p(), l();
|
27164
27165
|
}, N = () => {
|
27165
|
-
if (o && i.find((y) => +y.id === o.appWorkflowId).nodes.some((y) => y.type ===
|
27166
|
+
if (o && i.find((y) => +y.id === o.appWorkflowId).nodes.some((y) => y.type === Ps.CD)) {
|
27166
27167
|
h(!0), AT(lD(o), {
|
27167
27168
|
isTemplateView: m
|
27168
27169
|
}).then((y) => {
|
@@ -27688,7 +27689,7 @@ function v4() {
|
|
27688
27689
|
};
|
27689
27690
|
return e;
|
27690
27691
|
}
|
27691
|
-
const bD = (e) => /* @__PURE__ */ t.jsx(qe.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
27692
|
+
const bD = (e) => /* @__PURE__ */ t.jsx(qe.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Es, { className: "icon-dim-20 icon-n6" }) });
|
27692
27693
|
function w_(e, s) {
|
27693
27694
|
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());
|
27694
27695
|
}
|
@@ -28051,7 +28052,7 @@ Be.createContext(null);
|
|
28051
28052
|
function U4(e, s) {
|
28052
28053
|
const n = e?.sep || "/";
|
28053
28054
|
s = s || [];
|
28054
|
-
const { url: a, path: r } =
|
28055
|
+
const { url: a, path: r } = bs(), o = Pt(), { state: i, setState: c } = DD();
|
28055
28056
|
M(() => {
|
28056
28057
|
if (!(!e || !e.alias))
|
28057
28058
|
return c((p) => ({ ...p, alias: { ...p.alias, ...e.alias } })), () => d(Object.keys(e.alias));
|
@@ -28090,7 +28091,7 @@ const P_ = ({
|
|
28090
28091
|
sep: s = "/",
|
28091
28092
|
className: n = "dc__devtron-breadcrumb__item"
|
28092
28093
|
}) => {
|
28093
|
-
const { url: a } =
|
28094
|
+
const { url: a } = bs(), r = e.filter((o) => !!o.name);
|
28094
28095
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: r.map((o, i) => /* @__PURE__ */ t.jsxs(Be.Fragment, { children: [
|
28095
28096
|
/* @__PURE__ */ t.jsx(
|
28096
28097
|
pt,
|
@@ -29149,7 +29150,7 @@ const M_ = ({
|
|
29149
29150
|
),
|
29150
29151
|
e,
|
29151
29152
|
/* @__PURE__ */ t.jsx(Ie, { 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(
|
29152
|
-
|
29153
|
+
Ts,
|
29153
29154
|
{
|
29154
29155
|
className: "icon-dim-12 fcn-6 cursor",
|
29155
29156
|
"data-testid": `${e}-tag-hard-delete`,
|
@@ -29342,7 +29343,7 @@ const eP = (e) => {
|
|
29342
29343
|
m ? /* @__PURE__ */ t.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ t.jsx(
|
29343
29344
|
G,
|
29344
29345
|
{
|
29345
|
-
icon: /* @__PURE__ */ t.jsx(
|
29346
|
+
icon: /* @__PURE__ */ t.jsx(Ts, {}),
|
29346
29347
|
size: L.xs,
|
29347
29348
|
variant: K.borderLess,
|
29348
29349
|
style: oe.negativeGrey,
|
@@ -29644,7 +29645,7 @@ export {
|
|
29644
29645
|
yD as H,
|
29645
29646
|
D4 as I,
|
29646
29647
|
P4 as J,
|
29647
|
-
|
29648
|
+
vs as K,
|
29648
29649
|
gr as L,
|
29649
29650
|
pI as M,
|
29650
29651
|
_I as N,
|
@@ -29736,7 +29737,7 @@ export {
|
|
29736
29737
|
Nt as b5,
|
29737
29738
|
bB as b6,
|
29738
29739
|
cm as b7,
|
29739
|
-
|
29740
|
+
js as b8,
|
29740
29741
|
SO as b9,
|
29741
29742
|
Lc as bA,
|
29742
29743
|
wi as bB,
|
@@ -29902,7 +29903,7 @@ export {
|
|
29902
29903
|
St as de,
|
29903
29904
|
mb as df,
|
29904
29905
|
gn as dg,
|
29905
|
-
|
29906
|
+
Ps as dh,
|
29906
29907
|
na as di,
|
29907
29908
|
Zo as dj,
|
29908
29909
|
pb as dk,
|
@@ -29935,7 +29936,7 @@ export {
|
|
29935
29936
|
Jt as eA,
|
29936
29937
|
je as eB,
|
29937
29938
|
jm as eC,
|
29938
|
-
|
29939
|
+
ks as eD,
|
29939
29940
|
Om as eE,
|
29940
29941
|
hr as eF,
|
29941
29942
|
oa as eG,
|
@@ -30103,7 +30104,7 @@ export {
|
|
30103
30104
|
$G as gl,
|
30104
30105
|
py as gm,
|
30105
30106
|
Ge as gn,
|
30106
|
-
|
30107
|
+
Ls as go,
|
30107
30108
|
hc as gp,
|
30108
30109
|
Pe as gq,
|
30109
30110
|
hi as gr,
|
@@ -30210,7 +30211,7 @@ export {
|
|
30210
30211
|
rL as iP,
|
30211
30212
|
DH as iQ,
|
30212
30213
|
tL as iR,
|
30213
|
-
|
30214
|
+
$s as iS,
|
30214
30215
|
Hd as iT,
|
30215
30216
|
UH as iU,
|
30216
30217
|
$H as iV,
|
@@ -30307,7 +30308,7 @@ export {
|
|
30307
30308
|
iH as jw,
|
30308
30309
|
Rr as jx,
|
30309
30310
|
wj as jy,
|
30310
|
-
|
30311
|
+
Rs as jz,
|
30311
30312
|
Yt as k,
|
30312
30313
|
wB as k$,
|
30313
30314
|
bt as k0,
|
@@ -30390,7 +30391,7 @@ export {
|
|
30390
30391
|
cG as lC,
|
30391
30392
|
Jm as lD,
|
30392
30393
|
pi as lE,
|
30393
|
-
|
30394
|
+
Us as lF,
|
30394
30395
|
nI as lG,
|
30395
30396
|
aI as lH,
|
30396
30397
|
Za as lI,
|
@@ -30486,7 +30487,7 @@ export {
|
|
30486
30487
|
UB as mg,
|
30487
30488
|
$B as mh,
|
30488
30489
|
qr as mi,
|
30489
|
-
|
30490
|
+
Ss as mj,
|
30490
30491
|
FB as mk,
|
30491
30492
|
Zi as ml,
|
30492
30493
|
tt as mm,
|