@devtron-labs/devtron-fe-common-lib 1.20.0-pre-1 → 1.20.0-pre-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,9 @@ var sl = (e) => {
|
|
4
4
|
};
|
5
5
|
var If = (e, s, n) => s in e ? Af(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var me = (e, s, n) => If(e, typeof s != "symbol" ? s + "" : s, n), nl = (e, s, n) => s.has(e) || sl("Cannot " + n);
|
7
|
-
var Js = (e, s, n) => (nl(e, s, "read from private field"), n ? n.call(e) : s.get(e)),
|
8
|
-
import { j as t, i as Re, Q as
|
9
|
-
import He, { createContext as Mt, useContext as ss, useMemo as J, useState as j, useEffect as M, forwardRef as so, createElement as tc, Children as oi, useRef as V, useCallback as Ve, useLayoutEffect as sc, createRef as jr, cloneElement as
|
7
|
+
var Js = (e, s, n) => (nl(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Wa = (e, s, n) => s.has(e) ? sl("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Ka = (e, s, n, a) => (nl(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
+
import { j as t, i as Re, Q as za, k as Rf, F as yf, n as Of, D as Rr, t as qe, g as jf, a as wf, E as ia, S as Qi, b as Pu, r as Mu, s as Lf, o as Df, c as al, d as Pf, e as Mf, y as kf, l as yr, f as Uf, h as $f, m as rl, p as ol, q as Ff, u as Bf, v as Gf, w as Vf, x as Hf, z as Yf, A as Wf, B as ku, T as il, C as ec, G as Kf, H as cl, I as zf, J as qf, K as Uu, L as ll, M as Xf, N as Jf, O as Zf, P as Qf, R as dl, V as eh, U as th, W as sh, X as ul, Y as nh, Z as ml, _ as pl, $ as ah, a0 as rh, a1 as oh, a2 as ih, a3 as ch, a4 as lh, a5 as dh, a6 as Lo, a7 as uh, a8 as mh, a9 as ph, aa as _h, ab as fh, ac as $u, ad as Or, ae as hh, af as gh, ag as xh, ah as Eh, ai as Ch, aj as Nh, ak as bh, al as Th, am as Sh, an as vh, ao as Ah, ap as Ih, aq as Rh, ar as yh, as as Oh, at as jh, au as wh, av as Lh, aw as _l, ax as fl, ay as Dh, az as Ph, aA as Mh, aB as kh, aC as Uh, aD as $h, aE as Fh, aF as Bh, aG as Fu, aH as Bu, aI as Gh, aJ as Vh, aK as Hh, aL as Yh, aM as Wh, aN as Kh, aO as zh, aP as qh, aQ as Xh, aR as Jh, aS as Zh, aT as Qs } from "./@vendor-DMIFbFhR.js";
|
9
|
+
import He, { createContext as Mt, useContext as ss, useMemo as J, useState as j, useEffect as M, forwardRef as so, createElement as tc, Children as oi, useRef as V, useCallback as Ve, useLayoutEffect as sc, createRef as jr, cloneElement as ca, Fragment as gs, memo as It, Component as nc } from "react";
|
10
10
|
import { ReactComponent as Qh } from "./assets/ic-info-filled-override.99e8094a.svg";
|
11
11
|
import * as eg from "yaml";
|
12
12
|
import Qt, { parse as Gu, YAMLParseError as tg } from "yaml";
|
@@ -23,17 +23,17 @@ import { ReactComponent as Wu } from "./assets/ic-memory.c3264de1.svg";
|
|
23
23
|
import xs from "react-ga4";
|
24
24
|
import { h as we } from "./@moment-CGWt8tF2.js";
|
25
25
|
import ig from "./assets/DeployAudio.566e45df.mp3";
|
26
|
-
import { m as Fe, A as dn, a as
|
26
|
+
import { m as Fe, A as dn, a as la, u as da, b as Ls, c as hl, d as cg } from "./@framer-motion-D-YaCAW-.js";
|
27
27
|
import rc, { components as Je } from "react-select";
|
28
28
|
import { ReactComponent as lg } from "./assets/ic-arrow-backward.d951202a.svg";
|
29
29
|
import { ReactComponent as Ku } from "./assets/ic-docker.48906f4d.svg";
|
30
|
-
import { ReactComponent as
|
30
|
+
import { ReactComponent as ua } from "./assets/ic-calendar.1d9c66d2.svg";
|
31
31
|
import { ReactComponent as ii } from "./assets/ic-person.d066bc6d.svg";
|
32
32
|
import { ReactComponent as zu } from "./assets/ic-branch.8db43d66.svg";
|
33
33
|
import { ReactComponent as qu } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
34
34
|
import dg, { ReactComponent as Xu } from "./assets/ic-mechanical-operation.04a318d6.svg";
|
35
35
|
import Ju from "./assets/app-not-deployed.622dc6ba.svg";
|
36
|
-
import { BehaviorSubject as oo, noop as
|
36
|
+
import { BehaviorSubject as oo, noop as qa } from "rxjs";
|
37
37
|
import ug, { ReactComponent as Es } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
38
38
|
import { ReactComponent as mg } from "./assets/ic-exit-fullscreen.1ae582d1.svg";
|
39
39
|
import { ReactComponent as pg } from "./assets/ic-fullscreen.b05e5087.svg";
|
@@ -42,8 +42,8 @@ import { ReactComponent as Cs } from "./assets/ic-caret-down.1666c029.svg";
|
|
42
42
|
import { ReactComponent as _g } from "./assets/ic-collapse-all.56740920.svg";
|
43
43
|
import { ReactComponent as fg } from "./assets/ic-expand-all.d1d223f2.svg";
|
44
44
|
import { ReactComponent as Zu } from "./assets/ic-arrow-out.6aea09d0.svg";
|
45
|
-
import { ReactComponent as
|
46
|
-
import { ReactComponent as
|
45
|
+
import { ReactComponent as Aa } from "./assets/ic-help.39c58c34.svg";
|
46
|
+
import { ReactComponent as Ia } from "./assets/ic-info-filled.f870ac11.svg";
|
47
47
|
import { ReactComponent as oc } from "./assets/ic-stack.a6a11fe3.svg";
|
48
48
|
import { ReactComponent as Qu } from "./assets/ic-aborted.d400d0e8.svg";
|
49
49
|
import { ReactComponent as hg } from "./assets/ic-arrow-right.eda141d3.svg";
|
@@ -59,9 +59,9 @@ import { ReactComponent as tm } from "./assets/ic-arrow-up-down.945ee496.svg";
|
|
59
59
|
import { ReactComponent as ic } from "./assets/ic-sort-arrow-down.5cf54d08.svg";
|
60
60
|
import { ReactComponent as cs } from "./assets/ic-close.43adc42a.svg";
|
61
61
|
import { ReactComponent as sm } from "./assets/ic-error.9d61b25b.svg";
|
62
|
-
import { ReactComponent as
|
62
|
+
import { ReactComponent as ma } from "./assets/ic-info-outlined.f4fa3224.svg";
|
63
63
|
import { ReactComponent as li } from "./assets/ic-expand.ab992205.svg";
|
64
|
-
import { ReactComponent as
|
64
|
+
import { ReactComponent as Ra } from "./assets/ic-check.27c51fa1.svg";
|
65
65
|
import { ReactComponent as Tg } from "./assets/ic-check-circle-dots.296c8a3b.svg";
|
66
66
|
import { ReactComponent as Sg } from "./assets/ic-edit-file.aea811d8.svg";
|
67
67
|
import io from "./assets/no-artifact.fd2d84d9.webp";
|
@@ -94,7 +94,7 @@ import { r as lm, C as Ug, a as $g } from "./@react-dates-Bo3yT8LF.js";
|
|
94
94
|
import { ReactComponent as dc } from "./assets/ic-clock.c21a2d14.svg";
|
95
95
|
import Fg from "./assets/ic-calender-blank.963e3423.svg";
|
96
96
|
import Bg, { ReactComponent as Ws } from "./assets/ic-cross.01e03666.svg";
|
97
|
-
import { ReactComponent as
|
97
|
+
import { ReactComponent as na } from "./assets/inject-tag.28e72db6.svg";
|
98
98
|
import { ReactComponent as lo } from "./assets/ic-pencil.c75a6acc.svg";
|
99
99
|
import { ReactComponent as dm } from "./assets/ic-filter.8f403d6f.svg";
|
100
100
|
import { ReactComponent as um } from "./assets/ic-filter-applied.9fc48d0f.svg";
|
@@ -406,12 +406,12 @@ import { ReactComponent as nT } from "./assets/ic-medium-clean-brush.f683d4d6.sv
|
|
406
406
|
import { ReactComponent as aT } from "./assets/ic-medium-pause.7449078a.svg";
|
407
407
|
import { ReactComponent as rT } from "./assets/ic-medium-play.f7a8ddb7.svg";
|
408
408
|
import { ReactComponent as oT } from "./assets/ic-locked.dab69058.svg";
|
409
|
-
var
|
409
|
+
var ya = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(ya || {}), St = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(St || {}), Ks = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(Ks || {});
|
410
410
|
const Zn = {
|
411
411
|
Security: "SECURITY",
|
412
412
|
Changes: "CHANGES"
|
413
413
|
};
|
414
|
-
var Ot = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ot || {}), Am = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Am || {}), iT = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(iT || {}), Im = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Im || {}),
|
414
|
+
var Ot = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ot || {}), Am = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Am || {}), iT = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(iT || {}), Im = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Im || {}), aa = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(aa || {}), cT = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(cT || {}), lT = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(lT || {}), pi = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(pi || {}), dT = /* @__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))(dT || {}), Rm = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Rm || {}), uT = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(uT || {}), vt = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.ARGO = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(vt || {}), mT = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(mT || {}), Tn = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Tn || {}), Ms = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Ms || {}), pa = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(pa || {}), _i = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(_i || {}), pT = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(pT || {});
|
415
415
|
const _T = ({ tooltipContent: e }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "dc__white-space-pre-wrap", children: [
|
416
416
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 fw-6 lh-18", children: "Click to add" }),
|
417
417
|
e
|
@@ -424,7 +424,7 @@ function zG({
|
|
424
424
|
handleAddCD: r,
|
425
425
|
tooltipContent: o
|
426
426
|
}) {
|
427
|
-
const i = e ===
|
427
|
+
const i = e === pa.RIGHT ? n : a, c = () => {
|
428
428
|
r(e);
|
429
429
|
};
|
430
430
|
return s?.includes(e) ? /* @__PURE__ */ t.jsx(
|
@@ -437,7 +437,7 @@ function zG({
|
|
437
437
|
children: /* @__PURE__ */ t.jsxs(
|
438
438
|
"svg",
|
439
439
|
{
|
440
|
-
x: i.x + (e ===
|
440
|
+
x: i.x + (e === pa.RIGHT ? -25 : i.width + 5),
|
441
441
|
y: i.y + i.height / 2 - 10,
|
442
442
|
width: "20",
|
443
443
|
height: "20",
|
@@ -477,11 +477,11 @@ const fT = ({ startNode: e }) => e.type === Ms.WEBHOOK ? Tn.WEBHOOK : e.type ===
|
|
477
477
|
}) => {
|
478
478
|
if (!s)
|
479
479
|
return;
|
480
|
-
const l = fT({ startNode: n }), d = c && e ===
|
480
|
+
const l = fT({ startNode: n }), d = c && e === pa.RIGHT ? _i.PARALLEL : _i.SEQUENTIAL, u = !c && e === pa.RIGHT ? a.id : null;
|
481
481
|
s(r, o, l, n.id, i, u, d);
|
482
482
|
};
|
483
|
-
var Qn = /* @__PURE__ */ ((e) => (e.CLUSTERS = "clusters", e.ENVIRONMENTS = "environments", e.PROJECTS = "projects", e.APPLICATIONS = "applications", e))(Qn || {}),
|
484
|
-
const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator",
|
483
|
+
var Qn = /* @__PURE__ */ ((e) => (e.CLUSTERS = "clusters", e.ENVIRONMENTS = "environments", e.PROJECTS = "projects", e.APPLICATIONS = "applications", e))(Qn || {}), ur = /* @__PURE__ */ ((e) => (e.ITEM_NAME = "itemName", e.VIEW = "view", e.DETAIL = "detail", e))(ur || {});
|
484
|
+
const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", Oa = "https://docs.devtron.ai", XG = "https://devtron.ai/", gT = "/devtron/v1.7", mo = "https://discord.devtron.ai/", xT = "https://json-schema.org/draft/2020-12/schema", JG = "https://license.devtron.ai/dashboard", ET = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert", Yt = {
|
485
485
|
STRING: /^[a-zA-Z0-9_]+$/,
|
486
486
|
DECIMAL_NUMBERS: /^-?\d*\.?\d*$/,
|
487
487
|
POSITIVE_DECIMAL_NUMBERS: /^\d*\.?\d*$/,
|
@@ -502,7 +502,7 @@ const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
502
502
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: /^[A-Za-z0-9._/-]+$/,
|
503
503
|
// allow alphanumeric,(.) ,(-),(_),(/)
|
504
504
|
EMAIL: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
505
|
-
}, us = "/application-management", Do = `${us}/templates/devtron-app`, fn = `${us}/configurations`,
|
505
|
+
}, us = "/application-management", Do = `${us}/templates/devtron-app`, fn = `${us}/configurations`, Xa = "/infrastructure-management", CT = "/software-release-management", Is = "/cost-visibility", NT = "/security-center", Cl = "/automation-and-enablement", Ja = "/global-configuration", Nl = "/ai-recommendations", Ae = {
|
506
506
|
LOGIN: "/login",
|
507
507
|
LOGIN_SSO: "/login/sso",
|
508
508
|
APP_LIST: "list",
|
@@ -545,10 +545,10 @@ const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
545
545
|
APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA: `${fn}/build-infra`,
|
546
546
|
APPLICATION_MANAGEMENT_CONFIGURATIONS_NOTIFICATIONS: `${fn}/notifications`,
|
547
547
|
// INFRASTRUCTURE MANAGEMENT
|
548
|
-
INFRASTRUCTURE_MANAGEMENT:
|
549
|
-
INFRASTRUCTURE_MANAGEMENT_OVERVIEW: `${
|
550
|
-
INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: `${
|
551
|
-
INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: `${
|
548
|
+
INFRASTRUCTURE_MANAGEMENT: Xa,
|
549
|
+
INFRASTRUCTURE_MANAGEMENT_OVERVIEW: `${Xa}/overview`,
|
550
|
+
INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: `${Xa}/resource-browser`,
|
551
|
+
INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: `${Xa}/resource-watcher`,
|
552
552
|
// SOFTWARE RELEASE MANAGEMENT
|
553
553
|
SOFTWARE_RELEASE_MANAGEMENT: CT,
|
554
554
|
// COST VISIBILITY
|
@@ -559,8 +559,7 @@ const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
559
559
|
COST_BREAKDOWN_ENVIRONMENTS: `${Is}/breakdown/${Qn.ENVIRONMENTS}`,
|
560
560
|
COST_BREAKDOWN_PROJECTS: `${Is}/breakdown/${Qn.PROJECTS}`,
|
561
561
|
COST_BREAKDOWN_APPLICATIONS: `${Is}/breakdown/${Qn.APPLICATIONS}`,
|
562
|
-
|
563
|
-
COST_BREAKDOWN_DETAIL: `:${ea.ITEM_NAME}/:${ea.VIEW}/:${ea.DETAIL}?`,
|
562
|
+
COST_BREAKDOWN_DETAIL: `:${ur.ITEM_NAME}/:${ur.VIEW}/:${ur.DETAIL}?`,
|
564
563
|
COST_CONFIGURATIONS: `${Is}/configurations`,
|
565
564
|
// SECURITY CENTER
|
566
565
|
SECURITY_CENTER: NT,
|
@@ -568,10 +567,10 @@ const hT = 6e4, wr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
568
567
|
AUTOMATION_AND_ENABLEMENT: Cl,
|
569
568
|
AUTOMATION_AND_ENABLEMENT_JOB: `${Cl}/job`,
|
570
569
|
// GLOBAL CONFIGURATION
|
571
|
-
GLOBAL_CONFIG:
|
572
|
-
GLOBAL_CONFIG_DOCKER: `${
|
573
|
-
GLOBAL_CONFIG_EDIT_CLUSTER: `${
|
574
|
-
PERMISSION_GROUPS: `${
|
570
|
+
GLOBAL_CONFIG: Ja,
|
571
|
+
GLOBAL_CONFIG_DOCKER: `${Ja}/docker`,
|
572
|
+
GLOBAL_CONFIG_EDIT_CLUSTER: `${Ja}/cluster-env/edit/:clusterId`,
|
573
|
+
PERMISSION_GROUPS: `${Ja}/auth/groups`,
|
575
574
|
// AI RECOMMENDATIONS
|
576
575
|
AI_RECOMMENDATIONS: Nl,
|
577
576
|
AI_RECOMMENDATIONS_OVERVIEW: `${Nl}/overview`
|
@@ -713,16 +712,16 @@ function aV(e) {
|
|
713
712
|
return `${e}th`;
|
714
713
|
}
|
715
714
|
}
|
716
|
-
const
|
715
|
+
const Za = {
|
717
716
|
AM: "AM",
|
718
717
|
PM: "PM",
|
719
718
|
MIDNIGHT: "midnight",
|
720
719
|
NOON: "noon"
|
721
720
|
}, rV = (e) => {
|
722
721
|
const [s, n] = e.split(":"), a = parseInt(s, 10), r = parseInt(n, 10);
|
723
|
-
return a === 12 && r === 0 ?
|
722
|
+
return a === 12 && r === 0 ? Za.NOON : a === 0 && r === 0 ? Za.MIDNIGHT : a >= 12 ? Za.PM : Za.AM;
|
724
723
|
};
|
725
|
-
var
|
724
|
+
var _a = /* @__PURE__ */ ((e) => (e.inputChange = "input-change", e.selectOption = "select-option", e.deselectOption = "deselect-option", e.removeValue = "remove-value", e.inputBlur = "input-blur", e))(_a || {});
|
726
725
|
const Mn = "0001-01-01T00:00:00Z", ym = [void 0, null, "", NaN], Gt = {
|
727
726
|
OK: 200,
|
728
727
|
NO_CONTENT: 204,
|
@@ -808,7 +807,7 @@ const wT = async (e, s) => {
|
|
808
807
|
action: s
|
809
808
|
});
|
810
809
|
};
|
811
|
-
var Dm = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(Dm || {}), mc = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(mc || {}), LT = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(LT || {}), fe = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e.ResourceRecommender = "ResourceRecommender", e))(fe || {}), Et = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(Et || {}), Ye = /* @__PURE__ */ ((e) => (e.GIT = "git", e.GITHUB = "github", e.GITLAB = "gitlab", e.BITBUCKET = "bitbucket", e.DOCKER = "docker", e.DOCKER_HUB = "docker-hub", e.ACR = "acr", e.QUAY = "quay", e.ECR = "ecr", e.ARTIFACT_REGISTRY = "artifact-registry", e.GCR = "gcr", e.OTHER = "other", e))(Ye || {}), pc = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(pc || {}), xn = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(xn || {}), DT = /* @__PURE__ */ ((e) => (e.HEALTHY = "healthy", e.NONE = "none", e.UNKNOWN = "unknown", e.UPGRADING = "upgrading", e.UPGRADE_FAILED = "upgradeFailed", e.INSTALLED = "installed", e.INSTALLING = "installing", e.INSTALL_FAILED = "installFailed", e.NOT_INSTALLED = "notInstalled", e.TIMEOUT = "timeout", e))(DT || {}), PT = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(PT || {}), Pm = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(Pm || {}), rt = /* @__PURE__ */ ((e) => (e.devtronApplication = "application/devtron-application", e.helmChart = "application/helm-application", e.job = "job", e.cluster = "cluster", e.release = "release", e.releaseTrack = "release-track", e.releaseChannel = "release-channel", e.tenant = "tenant", e.installation = "installation", e.infrastructureInstallation = "installations", e.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(rt || {}), _c = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(_c || {}), MT = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(MT || {}),
|
810
|
+
var Dm = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(Dm || {}), mc = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(mc || {}), LT = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(LT || {}), fe = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e.ResourceRecommender = "ResourceRecommender", e))(fe || {}), Et = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(Et || {}), Ye = /* @__PURE__ */ ((e) => (e.GIT = "git", e.GITHUB = "github", e.GITLAB = "gitlab", e.BITBUCKET = "bitbucket", e.DOCKER = "docker", e.DOCKER_HUB = "docker-hub", e.ACR = "acr", e.QUAY = "quay", e.ECR = "ecr", e.ARTIFACT_REGISTRY = "artifact-registry", e.GCR = "gcr", e.OTHER = "other", e))(Ye || {}), pc = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(pc || {}), xn = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(xn || {}), DT = /* @__PURE__ */ ((e) => (e.HEALTHY = "healthy", e.NONE = "none", e.UNKNOWN = "unknown", e.UPGRADING = "upgrading", e.UPGRADE_FAILED = "upgradeFailed", e.INSTALLED = "installed", e.INSTALLING = "installing", e.INSTALL_FAILED = "installFailed", e.NOT_INSTALLED = "notInstalled", e.TIMEOUT = "timeout", e))(DT || {}), PT = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(PT || {}), Pm = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(Pm || {}), rt = /* @__PURE__ */ ((e) => (e.devtronApplication = "application/devtron-application", e.helmChart = "application/helm-application", e.job = "job", e.cluster = "cluster", e.release = "release", e.releaseTrack = "release-track", e.releaseChannel = "release-channel", e.tenant = "tenant", e.installation = "installation", e.infrastructureInstallation = "installations", e.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(rt || {}), _c = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(_c || {}), MT = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(MT || {}), fa = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(fa || {}), Xt = /* @__PURE__ */ ((e) => (e.Workloads = "Workloads", e.Networking = "Networking", e["Config & Storage"] = "Config & Storage", e.RBAC = "RBAC", e.Administration = "Administration", e["Custom Resource"] = "Custom Resource", e["Other Resources"] = "Other Resources", e.Events = "Events", e.Namespaces = "Namespaces", e.Nodes = "Nodes", e))(Xt || {}), kT = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(kT || {}), UT = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(UT || {}), mr = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(mr || {}), $T = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))($T || {}), Mm = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(Mm || {});
|
812
811
|
const dV = [
|
813
812
|
{
|
814
813
|
label: "GUI",
|
@@ -863,7 +862,7 @@ const Um = (e, s, n, a, r) => {
|
|
863
862
|
e,
|
864
863
|
" Devtron Inc. All rights reserved."
|
865
864
|
] });
|
866
|
-
},
|
865
|
+
}, Qa = {
|
867
866
|
PROGRESSING: "Progressing",
|
868
867
|
DEGRADED: "Degraded",
|
869
868
|
FAILED: "Failed"
|
@@ -1083,7 +1082,7 @@ const xi = "No matching results", JT = "Type 3 chars to see matching results", p
|
|
1083
1082
|
DISPLAY_NAME: "Secret",
|
1084
1083
|
VALUE: "secret"
|
1085
1084
|
}
|
1086
|
-
},
|
1085
|
+
}, er = {
|
1087
1086
|
[Ut.SECRET.DISPLAY_NAME]: {
|
1088
1087
|
"": "Kubernetes Secret",
|
1089
1088
|
KubernetesSecret: "Kubernetes External Secret",
|
@@ -1204,7 +1203,7 @@ var Ci = /* @__PURE__ */ ((e) => (e.Cluster = "cluster", e.Job = "job pipeline",
|
|
1204
1203
|
const Ni = {
|
1205
1204
|
CI_PIPELINE_PATCH: "app/ci-pipeline/patch",
|
1206
1205
|
WORKFLOW: "app/app-wf"
|
1207
|
-
},
|
1206
|
+
}, tr = "enterprise@devtron.ai", uS = "inValid";
|
1208
1207
|
var en = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.HELP = "help", e.INFORMATION = "information", e.SUCCESS = "success", e.WARNING = "warning", e.NEUTRAL = "neutral", e))(en || {});
|
1209
1208
|
const mS = {
|
1210
1209
|
error: "bcr-1",
|
@@ -1407,7 +1406,7 @@ const ks = {
|
|
1407
1406
|
appId: a
|
1408
1407
|
}) => {
|
1409
1408
|
const r = n ? fo({
|
1410
|
-
type:
|
1409
|
+
type: ja.CONFIG_DATA,
|
1411
1410
|
queryParams: {
|
1412
1411
|
id: a,
|
1413
1412
|
...e
|
@@ -1428,10 +1427,10 @@ const ks = {
|
|
1428
1427
|
n[r.index] = r;
|
1429
1428
|
}), n;
|
1430
1429
|
};
|
1431
|
-
var AS = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(AS || {}),
|
1430
|
+
var AS = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(AS || {}), ea = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))(ea || {}), IS = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(IS || {}), Be = /* @__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))(Be || {}), es = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(es || {}), bi = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))(bi || {}), _t = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(_t || {}), Bs = /* @__PURE__ */ ((e) => (e[e.ConfigMap = 1] = "ConfigMap", e[e.Secret = 2] = "Secret", e))(Bs || {}), _o = /* @__PURE__ */ ((e) => (e.BASE = "", e.INHERITED = "INHERITING", e.OVERRIDDEN = "OVERRIDDEN", e.ENV = "ENV", e.UNPUBLISHED = "UNPUBLISHED", e))(_o || {}), Xm = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(Xm || {});
|
1432
1431
|
const RS = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => We(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), PV = ({ kind: e, version: s, queryParams: n, suffix: a }) => We(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), yS = (e, { isTemplateView: s }) => {
|
1433
1432
|
const n = s ? fo({
|
1434
|
-
type:
|
1433
|
+
type: ja.CD_PIPELINE,
|
1435
1434
|
queryParams: {
|
1436
1435
|
id: e.appId
|
1437
1436
|
}
|
@@ -1470,7 +1469,7 @@ const OS = {
|
|
1470
1469
|
) })
|
1471
1470
|
}, jS = {
|
1472
1471
|
[Se.info]: {
|
1473
|
-
icon: /* @__PURE__ */ t.jsx(
|
1472
|
+
icon: /* @__PURE__ */ t.jsx(Ia, {}),
|
1474
1473
|
type: "info",
|
1475
1474
|
title: "Information",
|
1476
1475
|
progressBarBg: "var(--B500)"
|
@@ -1546,7 +1545,7 @@ const nn = class nn {
|
|
1546
1545
|
shortcuts: l
|
1547
1546
|
}, d = {}) => {
|
1548
1547
|
if (s === Se.shortcut)
|
1549
|
-
return
|
1548
|
+
return za(/* @__PURE__ */ t.jsx(LS, { text: c, shortcuts: l }), {
|
1550
1549
|
position: "top-center",
|
1551
1550
|
containerId: "devtron-shortcut-toast",
|
1552
1551
|
className: "shortcut-toast",
|
@@ -1556,7 +1555,7 @@ const nn = class nn {
|
|
1556
1555
|
closeOnClick: !0
|
1557
1556
|
});
|
1558
1557
|
const { icon: u, type: m, title: p, progressBarBg: _ } = jS[s];
|
1559
|
-
return
|
1558
|
+
return za(
|
1560
1559
|
/* @__PURE__ */ t.jsx(wS, { title: a || p, description: r, buttonProps: o }),
|
1561
1560
|
{
|
1562
1561
|
...d,
|
@@ -1575,18 +1574,18 @@ const nn = class nn {
|
|
1575
1574
|
/**
|
1576
1575
|
* Handler for dismissing an existing toast
|
1577
1576
|
*/
|
1578
|
-
me(this, "dismissToast",
|
1577
|
+
me(this, "dismissToast", za.dismiss);
|
1579
1578
|
/**
|
1580
1579
|
* Handler for checking if the toast is active
|
1581
1580
|
*/
|
1582
|
-
me(this, "isToastActive",
|
1581
|
+
me(this, "isToastActive", za.isActive);
|
1583
1582
|
}
|
1584
1583
|
static get instance() {
|
1585
|
-
return Js(nn, Rn) ||
|
1584
|
+
return Js(nn, Rn) || Ka(nn, Rn, new nn()), Js(nn, Rn);
|
1586
1585
|
}
|
1587
1586
|
};
|
1588
1587
|
Rn = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
1589
|
-
|
1588
|
+
Wa(nn, Rn);
|
1590
1589
|
let Ti = nn;
|
1591
1590
|
const kV = () => /* @__PURE__ */ t.jsx(Rf, { ...OS }), ke = Ti.instance, DS = (e) => {
|
1592
1591
|
const s = (e?.ciMaterials ?? []).map((n, a) => ({
|
@@ -1598,10 +1597,10 @@ const kV = () => /* @__PURE__ */ t.jsx(Rf, { ...OS }), ke = Ti.instance, DS = (e
|
|
1598
1597
|
value: n.value || "",
|
1599
1598
|
active: n.active || !1,
|
1600
1599
|
history: n.history.map((r, o) => ({
|
1601
|
-
commitURL: n.url ?
|
1600
|
+
commitURL: n.url ? La(n.url, r.Commit) : "",
|
1602
1601
|
commit: r.Commit || "",
|
1603
1602
|
author: r.Author || "",
|
1604
|
-
date:
|
1603
|
+
date: Sa(r.Date, !1),
|
1605
1604
|
message: r.Message || "",
|
1606
1605
|
changes: r.Changes || [],
|
1607
1606
|
showChanges: o === 0,
|
@@ -1615,7 +1614,7 @@ const kV = () => /* @__PURE__ */ t.jsx(Rf, { ...OS }), ke = Ti.instance, DS = (e
|
|
1615
1614
|
ciPipelineId: e?.ciPipelineId,
|
1616
1615
|
materials: s,
|
1617
1616
|
triggeredByEmail: e?.triggeredByEmail || "",
|
1618
|
-
lastDeployedTime:
|
1617
|
+
lastDeployedTime: Sa(e.lastDeployedTime, !1),
|
1619
1618
|
environmentName: e?.environmentName || "",
|
1620
1619
|
environmentId: e?.environmentId || 0,
|
1621
1620
|
appId: e?.appId,
|
@@ -1628,7 +1627,7 @@ const kV = () => /* @__PURE__ */ t.jsx(Rf, { ...OS }), ke = Ti.instance, DS = (e
|
|
1628
1627
|
targetPlatforms: xo(e?.targetPlatforms)
|
1629
1628
|
};
|
1630
1629
|
}, PS = (e) => e === Be.AWSSecretsManager || e === Be.AWSSystemManager || e === Be.HashiCorpVault, Jm = (e) => e === Be.ESO_GoogleSecretsManager || e === Be.ESO_AzureSecretsManager || e === Be.ESO_AWSSecretsManager || e === Be.ESO_HashiCorpVault;
|
1631
|
-
var Cn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(Cn || {}), MS = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(MS || {}), Ec = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Ec || {}), kS = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(kS || {}),
|
1630
|
+
var Cn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(Cn || {}), MS = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(MS || {}), Ec = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Ec || {}), kS = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(kS || {}), ja = /* @__PURE__ */ ((e) => (e.GIT_MATERIAL = "git-material", e.CI_BUILD_CONFIG = "ci-build-config", e.STAGE_STATUS = "stage-status", e.CD_DEPLOY_CONFIG = "cd-deploy-config", e.CD_ENV_LIST = "cd-env-list", e.CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template", e.CONFIG_DEPLOYMENT_TEMPLATE_ENV = "config/deployment-template/env", e.CONFIG_DATA = "config-data", e.CONFIG_CM = "config/config-map", e.CONFIG_CS = "config/secret", e.WORKFLOW = "workflow", e.WORKFLOW_LIST = "workflow/list", e.OVERVIEW = "overview", e.README = "readme", e.CD_PIPELINE_LIST = "cd-pipeline/list", e.EXTERNAL_CI_LIST = "external-ci/list", e.EXTERNAL_CI = "external-ci", e.CI_PIPELINE = "ci-pipeline", e.CD_PIPELINE = "cd-pipeline", e.CONFIG_STRATEGY = "config/strategy", e.CHART_REF = "chartRef", e.PIPELINE_SUGGEST_CI = "pipeline/suggest/ci", e.PIPELINE_SUGGEST_CD = "pipeline/suggest/cd", e))(ja || {});
|
1632
1631
|
const UV = {
|
1633
1632
|
BASE_DEPLOYMENT_TEMPLATE: [Cn.VALUES, Cn.DRY_RUN],
|
1634
1633
|
OVERRIDE: [Cn.INHERITED, Cn.VALUES, Cn.DRY_RUN]
|
@@ -2051,7 +2050,7 @@ const Il = (e) => ({
|
|
2051
2050
|
)) })
|
2052
2051
|
] });
|
2053
2052
|
};
|
2054
|
-
var JS = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(JS || {}), $ = /* @__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))($ || {}), Zt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Zt || {}), Oe = /* @__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))(Oe || {}), ep = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(ep || {}), Us = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(Us || {}), tp = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(tp || {}), Pr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Pr || {}),
|
2053
|
+
var JS = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(JS || {}), $ = /* @__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))($ || {}), Zt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Zt || {}), Oe = /* @__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))(Oe || {}), ep = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(ep || {}), Us = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(Us || {}), tp = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(tp || {}), Pr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Pr || {}), ha = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(ha || {}), Si = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(Si || {}), vi = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(vi || {}), Rt = /* @__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))(Rt || {}), sp = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(sp || {});
|
2055
2054
|
const Gs = {
|
2056
2055
|
// Will not enforce any decimal specification on input field
|
2057
2056
|
STEP: "any",
|
@@ -2165,7 +2164,7 @@ const Gs = {
|
|
2165
2164
|
Object.values({
|
2166
2165
|
...$,
|
2167
2166
|
...Zt,
|
2168
|
-
...
|
2167
|
+
...ha
|
2169
2168
|
}).map((e) => [e, null])
|
2170
2169
|
), ZS = [Zt.NAME], Rl = {
|
2171
2170
|
SUBMIT_BUTTON: "build-infra-submit-button",
|
@@ -2180,7 +2179,7 @@ const Gs = {
|
|
2180
2179
|
[$.TOLERANCE]: !0,
|
2181
2180
|
[$.CONFIG_MAP]: !0,
|
2182
2181
|
[$.SECRET]: !0,
|
2183
|
-
[
|
2182
|
+
[ha.TARGET_PLATFORM]: !0
|
2184
2183
|
}, Ol = Object.values(Oe).reduce(
|
2185
2184
|
(e, s) => (e[`activate_${s}`] = s, e[`de_activate_${s}`] = s, e),
|
2186
2185
|
{}
|
@@ -2213,7 +2212,7 @@ const Gs = {
|
|
2213
2212
|
[$.BUILD_TIMEOUT]: !0,
|
2214
2213
|
[$.CONFIG_MAP]: !0,
|
2215
2214
|
[$.SECRET]: !0
|
2216
|
-
},
|
2215
|
+
}, wa = {
|
2217
2216
|
[$.CONFIG_MAP]: !0,
|
2218
2217
|
[$.SECRET]: !0
|
2219
2218
|
}, ap = {
|
@@ -2320,7 +2319,7 @@ const Gs = {
|
|
2320
2319
|
"ic-bug": nE,
|
2321
2320
|
"ic-build-color": aE,
|
2322
2321
|
"ic-building": rE,
|
2323
|
-
"ic-calendar":
|
2322
|
+
"ic-calendar": ua,
|
2324
2323
|
"ic-cancelled": oE,
|
2325
2324
|
"ic-card-stack": iE,
|
2326
2325
|
"ic-caret-down-small": cE,
|
@@ -3163,13 +3162,13 @@ const Dl = (e) => {
|
|
3163
3162
|
);
|
3164
3163
|
if (i) {
|
3165
3164
|
a?.onChange?.(u, {
|
3166
|
-
action:
|
3165
|
+
action: _a.deselectOption,
|
3167
3166
|
option: null
|
3168
3167
|
});
|
3169
3168
|
return;
|
3170
3169
|
}
|
3171
3170
|
a?.onChange?.([...u, ...o], {
|
3172
|
-
action:
|
3171
|
+
action: _a.selectOption,
|
3173
3172
|
option: null
|
3174
3173
|
});
|
3175
3174
|
}, l = (d) => {
|
@@ -3426,10 +3425,10 @@ const Dl = (e) => {
|
|
3426
3425
|
}
|
3427
3426
|
),
|
3428
3427
|
[d, b]
|
3429
|
-
),
|
3428
|
+
), Ha = Ve(
|
3430
3429
|
(je) => /* @__PURE__ */ t.jsx(v0, { ...je, disableDescriptionEllipsis: x }),
|
3431
3430
|
[x]
|
3432
|
-
),
|
3431
|
+
), Ya = (je) => /* @__PURE__ */ t.jsx(I0, { ...je, getIsOptionValid: ae }), gf = Ve(
|
3433
3432
|
(je) => /* @__PURE__ */ t.jsx(R0, { ...je, isGroupHeadingSelectable: Z }),
|
3434
3433
|
[Z]
|
3435
3434
|
), xf = () => m ? /* @__PURE__ */ t.jsx(kn, { reload: p }) : D ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: F?.({
|
@@ -3511,11 +3510,11 @@ const Dl = (e) => {
|
|
3511
3510
|
LoadingIndicator: null,
|
3512
3511
|
DropdownIndicator: C0,
|
3513
3512
|
Control: b0,
|
3514
|
-
Option:
|
3513
|
+
Option: Ha,
|
3515
3514
|
MenuList: A0,
|
3516
3515
|
ClearIndicator: N0,
|
3517
3516
|
ValueContainer: _n,
|
3518
|
-
MultiValue:
|
3517
|
+
MultiValue: Ya,
|
3519
3518
|
GroupHeading: gf,
|
3520
3519
|
NoOptionsMessage: xf,
|
3521
3520
|
LoadingMessage: y0,
|
@@ -4042,7 +4041,7 @@ const Dl = (e) => {
|
|
4042
4041
|
EXTERNAL_LINKS: "getting-started/global-configurations/external-links",
|
4043
4042
|
EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets",
|
4044
4043
|
HOME_PAGE: "https://devtron.ai",
|
4045
|
-
DOC_HOME_PAGE:
|
4044
|
+
DOC_HOME_PAGE: Oa,
|
4046
4045
|
KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally",
|
4047
4046
|
JOBS: "usage/jobs",
|
4048
4047
|
TAINT: "usage/resource-browser#taint-a-node",
|
@@ -4120,7 +4119,7 @@ const Dl = (e) => {
|
|
4120
4119
|
if (r?.startsWith("http"))
|
4121
4120
|
return r;
|
4122
4121
|
const o = a ? "" : pp({ isEnterprise: s });
|
4123
|
-
return `${
|
4122
|
+
return `${Oa}${gT}/${r || ""}${o}`;
|
4124
4123
|
}, H0 = ({ count: e, isApprox: s, isSelected: n }) => /* @__PURE__ */ t.jsxs(
|
4125
4124
|
"div",
|
4126
4125
|
{
|
@@ -4698,10 +4697,10 @@ const Dl = (e) => {
|
|
4698
4697
|
}), r && f < r && (f = r), o && f > o && (f = o), _(f);
|
4699
4698
|
}, 500, [d]);
|
4700
4699
|
const x = (f, { action: N }) => {
|
4701
|
-
N ===
|
4700
|
+
N === _a.inputChange ? (u(f), f || a?.(null, {
|
4702
4701
|
action: "remove-value",
|
4703
4702
|
removedValue: e
|
4704
|
-
})) : N ===
|
4703
|
+
})) : N === _a.inputBlur && u(e?.value || "");
|
4705
4704
|
}, E = (f) => {
|
4706
4705
|
a?.(
|
4707
4706
|
{ label: f, value: f },
|
@@ -4961,7 +4960,7 @@ ${d.slice(C)}`;
|
|
4961
4960
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
4962
4961
|
return e;
|
4963
4962
|
}, vc = (e) => {
|
4964
|
-
const s = V(null), [n, a] = j(!1), r = e.theme ===
|
4963
|
+
const s = V(null), [n, a] = j(!1), r = e.theme === ya.white, o = (N) => {
|
4965
4964
|
N.keyCode === 27 && c(N);
|
4966
4965
|
}, i = (N) => {
|
4967
4966
|
s.current = N, document.addEventListener("keydown", o);
|
@@ -5020,7 +5019,7 @@ ${d.slice(C)}`;
|
|
5020
5019
|
{
|
5021
5020
|
className: `flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
5022
5021
|
children: [
|
5023
|
-
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(
|
5022
|
+
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(Aa, { className: "icon-dim-20 fcv-5" }) }),
|
5024
5023
|
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: b })
|
5025
5024
|
]
|
5026
5025
|
}
|
@@ -5041,7 +5040,7 @@ ${d.slice(C)}`;
|
|
5041
5040
|
),
|
5042
5041
|
D,
|
5043
5042
|
k && /* @__PURE__ */ t.jsx("div", { className: "px-12 pb-12 flexbox", children: /* @__PURE__ */ t.jsx(
|
5044
|
-
|
5043
|
+
Pa,
|
5045
5044
|
{
|
5046
5045
|
text: P,
|
5047
5046
|
dataTestId: "learn-more-about-tippy-link",
|
@@ -5091,11 +5090,11 @@ ${d.slice(C)}`;
|
|
5091
5090
|
}) => /* @__PURE__ */ t.jsx(
|
5092
5091
|
vc,
|
5093
5092
|
{
|
5094
|
-
theme:
|
5093
|
+
theme: ya.white,
|
5095
5094
|
headingInfo: u,
|
5096
5095
|
className: "w-300 h-100 dc__no-text-transform",
|
5097
5096
|
placement: c,
|
5098
|
-
Icon:
|
5097
|
+
Icon: Aa,
|
5099
5098
|
heading: e,
|
5100
5099
|
infoText: s,
|
5101
5100
|
iconClass: n,
|
@@ -5692,7 +5691,7 @@ const h4 = (e, s = !1) => {
|
|
5692
5691
|
}
|
5693
5692
|
case Rt.ADD_TARGET_PLATFORM: {
|
5694
5693
|
const { handleCaptureSnapshot: b } = N;
|
5695
|
-
S[
|
5694
|
+
S[ha.TARGET_PLATFORM] = T ? Fl(
|
5696
5695
|
T,
|
5697
5696
|
x(C.configurations)
|
5698
5697
|
).message : "", C.configurations[T] = i.fallbackPlatformConfigurationMap[T] || // Here need to update target platform name for each configuration
|
@@ -5728,7 +5727,7 @@ const h4 = (e, s = !1) => {
|
|
5728
5727
|
});
|
5729
5728
|
return;
|
5730
5729
|
}
|
5731
|
-
S[
|
5730
|
+
S[ha.TARGET_PLATFORM] = Fl(
|
5732
5731
|
A,
|
5733
5732
|
x(C.configurations)
|
5734
5733
|
).message;
|
@@ -5988,8 +5987,8 @@ const h4 = (e, s = !1) => {
|
|
5988
5987
|
appCount: s.appCount,
|
5989
5988
|
useK8sDriver: r
|
5990
5989
|
};
|
5991
|
-
}, b4 = (e) => !!
|
5992
|
-
if (!
|
5990
|
+
}, b4 = (e) => !!wa[e], Dv = (e, s) => {
|
5991
|
+
if (!wa[e.key])
|
5993
5992
|
return Ln(e);
|
5994
5993
|
const n = e.value?.map(
|
5995
5994
|
(a) => {
|
@@ -6017,7 +6016,7 @@ const h4 = (e, s = !1) => {
|
|
6017
6016
|
};
|
6018
6017
|
}, Pv = (e) => {
|
6019
6018
|
const s = Ln(e, !1);
|
6020
|
-
if (!
|
6019
|
+
if (!wa[s.key])
|
6021
6020
|
return s;
|
6022
6021
|
const a = s.value?.filter(
|
6023
6022
|
(r) => r.isOverridden
|
@@ -6057,7 +6056,7 @@ const h4 = (e, s = !1) => {
|
|
6057
6056
|
const l = o[c], d = r[c]?.active ? r[c] : null;
|
6058
6057
|
if (!l)
|
6059
6058
|
return i;
|
6060
|
-
const u = Ln(l), m =
|
6059
|
+
const u = Ln(l), m = wa[c] && !a;
|
6061
6060
|
let p = d ? {
|
6062
6061
|
...d,
|
6063
6062
|
defaultValue: m ? null : u
|
@@ -6160,7 +6159,7 @@ const h4 = (e, s = !1) => {
|
|
6160
6159
|
}, Uv = (e) => e ? Pr.KUBERNETES : Pr.DOCKER_CONTAINER, $v = (e, s) => {
|
6161
6160
|
const n = e.configurations || {}, a = Object.entries(n).reduce((o, [i, c]) => {
|
6162
6161
|
const l = Object.values(c).reduce((d, u) => {
|
6163
|
-
const m = !!
|
6162
|
+
const m = !!wa[u.key], p = m && u.value?.some(
|
6164
6163
|
(_) => _.isOverridden
|
6165
6164
|
);
|
6166
6165
|
if (u.id || u.active || p) {
|
@@ -6206,7 +6205,7 @@ const h4 = (e, s = !1) => {
|
|
6206
6205
|
]
|
6207
6206
|
}
|
6208
6207
|
);
|
6209
|
-
var
|
6208
|
+
var ta = /* @__PURE__ */ ((e) => (e.JOB_AND_CRONJOB_CHART_NAME = "Job & CronJob", e.ROLLOUT_DEPLOYMENT = "Rollout Deployment", e.DEPLOYMENT = "Deployment", e.STATEFUL_SET = "StatefulSet", e))(ta || {});
|
6210
6209
|
const Fv = "object", Bv = { ContainerPort: { type: "array", description: "Defines ports on which application services will be exposed to other services", items: { type: "object", properties: { port: { type: "integer", description: "Port at which your application will run" } } }, title: "Container Port" }, Limits: { type: "object", description: "Maximum RAM and CPU available to the application", required: ["CPU", "Memory"], properties: { CPU: { type: "string", description: "Maximum allowed CPU limit", updatePath: "/resources/limits/cpu" }, Memory: { type: "string", description: "Maximum allowed memory limit", updatePath: "/resources/limits/memory" } } }, Requests: { type: "object", description: "Minimum RAM and CPU available to the application", properties: { CPU: { type: "string", description: "Minimum CPU value", updatePath: "/resources/requests/cpu" }, Memory: { type: "string", description: "Minimum memory value", updatePath: "/resources/requests/memory" } } }, EnvVariables: { type: "array", description: "Contains environment variables needed by the containers", items: { type: "object", properties: { name: { type: "string", description: "Name of the environment variables" }, value: { type: "string", description: "Value of the environment variables" } } }, title: "Environment Variables" } }, Gv = {
|
6211
6210
|
type: Fv,
|
6212
6211
|
properties: Bv
|
@@ -6234,10 +6233,10 @@ const Fv = "object", Bv = { ContainerPort: { type: "array", description: "Define
|
|
6234
6233
|
return Object.values(s).map((a) => (a.versions.sort((r, o) => Cp(r.version, o.version)), a));
|
6235
6234
|
}, A4 = (e) => {
|
6236
6235
|
switch (e) {
|
6237
|
-
case
|
6238
|
-
case
|
6239
|
-
case
|
6240
|
-
case
|
6236
|
+
case ta.JOB_AND_CRONJOB_CHART_NAME:
|
6237
|
+
case ta.DEPLOYMENT:
|
6238
|
+
case ta.ROLLOUT_DEPLOYMENT:
|
6239
|
+
case ta.STATEFUL_SET:
|
6241
6240
|
return Gv;
|
6242
6241
|
default:
|
6243
6242
|
return {};
|
@@ -6255,7 +6254,7 @@ const Vl = {
|
|
6255
6254
|
default:
|
6256
6255
|
return "h-8";
|
6257
6256
|
}
|
6258
|
-
},
|
6257
|
+
}, ga = ({
|
6259
6258
|
hideLegend: e,
|
6260
6259
|
entities: s = [Vl],
|
6261
6260
|
rootClassName: n,
|
@@ -6374,7 +6373,7 @@ const Vl = {
|
|
6374
6373
|
const { statusEntities: n, deploymentEntities: a } = Wv(e);
|
6375
6374
|
return /* @__PURE__ */ t.jsx("div", { className: "pb-16 px-20", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__grid-half shadow__card--20 w-100 dc__border br-8 dc__grid dc__align-items-center", children: [
|
6376
6375
|
/* @__PURE__ */ t.jsx(
|
6377
|
-
|
6376
|
+
ga,
|
6378
6377
|
{
|
6379
6378
|
entities: n,
|
6380
6379
|
rootClassName: "p-16 fs-13 dc__border-right-n1 cn-9",
|
@@ -6386,7 +6385,7 @@ const Vl = {
|
|
6386
6385
|
}
|
6387
6386
|
),
|
6388
6387
|
/* @__PURE__ */ t.jsx(
|
6389
|
-
|
6388
|
+
ga,
|
6390
6389
|
{
|
6391
6390
|
entities: a,
|
6392
6391
|
rootClassName: "p-16 fs-13 cn-9",
|
@@ -6683,9 +6682,9 @@ function Cp(e, s, n = ve.ASC) {
|
|
6683
6682
|
}
|
6684
6683
|
const K4 = (e, s, n = ve.ASC) => n === ve.ASC ? we(s).diff(we(e)) : we(e).diff(we(s)), z4 = (e) => {
|
6685
6684
|
switch (e) {
|
6686
|
-
case
|
6685
|
+
case fa.PULL_REQUEST:
|
6687
6686
|
return /* @__PURE__ */ t.jsx(cc, { className: "icon-dim-12" });
|
6688
|
-
case
|
6687
|
+
case fa.TAG_CREATION:
|
6689
6688
|
return /* @__PURE__ */ t.jsx(ro, { className: "icon-dim-12" });
|
6690
6689
|
default:
|
6691
6690
|
return /* @__PURE__ */ t.jsx(vm, { className: "icon-dim-12" });
|
@@ -6802,7 +6801,7 @@ const cA = (e, s = !1) => s ? btoa(e) : atob(e), yi = (e, s = !1) => Object.keys
|
|
6802
6801
|
}), Z4 = (e) => (
|
6803
6802
|
// Added null check for backward compatibility
|
6804
6803
|
!!e?.type && e.type !== Am.notConfigured
|
6805
|
-
), Rc = (e) => e?.requiredCount > 0,
|
6804
|
+
), Rc = (e) => e?.requiredCount > 0, xa = (e) => () => {
|
6806
6805
|
window.open(e, "_blank", "noreferrer");
|
6807
6806
|
}, Q4 = (e) => {
|
6808
6807
|
switch (typeof e) {
|
@@ -6879,7 +6878,7 @@ const cA = (e, s = !1) => s ? btoa(e) : atob(e), yi = (e, s = !1) => Object.keys
|
|
6879
6878
|
return s ? `${n}/${s}` : n;
|
6880
6879
|
}, sH = (e, s) => {
|
6881
6880
|
const n = e.scrollTop;
|
6882
|
-
return
|
6881
|
+
return la(n, s, {
|
6883
6882
|
ease: hS,
|
6884
6883
|
onUpdate: (r) => {
|
6885
6884
|
e.scrollTop = r;
|
@@ -6947,9 +6946,9 @@ const vp = (e) => ({
|
|
6947
6946
|
let d = r;
|
6948
6947
|
return e.map((m, p) => {
|
6949
6948
|
let _ = "";
|
6950
|
-
const h = m.filterState ??
|
6949
|
+
const h = m.filterState ?? aa.ALLOWED;
|
6951
6950
|
n && a && m.id === n && (_ = a);
|
6952
|
-
const x = !o && i && (!m.userApprovalMetadata || m.userApprovalMetadata.approvalRuntimeState !== Im.approved), E = !d && c && h ===
|
6951
|
+
const x = !o && i && (!m.userApprovalMetadata || m.userApprovalMetadata.approvalRuntimeState !== Im.approved), E = !d && c && h === aa.ALLOWED && !x ? !m.vulnerable : !1;
|
6953
6952
|
return E && (d = !0), {
|
6954
6953
|
index: l + p,
|
6955
6954
|
id: m.id,
|
@@ -6980,7 +6979,7 @@ const vp = (e) => ({
|
|
6980
6979
|
lastExecution: m.lastExecution,
|
6981
6980
|
materialInfo: m.material_info ? m.material_info.map((g) => ({
|
6982
6981
|
modifiedTime: g.modifiedTime ? we(g.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
|
6983
|
-
commitLink:
|
6982
|
+
commitLink: La(g.url, g.revision),
|
6984
6983
|
author: g.author || "",
|
6985
6984
|
message: g.message || "",
|
6986
6985
|
revision: g.revision || "",
|
@@ -6993,7 +6992,7 @@ const vp = (e) => ({
|
|
6993
6992
|
filterState: h,
|
6994
6993
|
appliedFiltersTimestamp: m.appliedFiltersTimestamp ?? "",
|
6995
6994
|
appliedFilters: m.appliedFilters ?? [],
|
6996
|
-
appliedFiltersState: m.appliedFiltersState ??
|
6995
|
+
appliedFiltersState: m.appliedFiltersState ?? aa.ALLOWED,
|
6997
6996
|
createdTime: m.createdTime ?? "",
|
6998
6997
|
dataSource: m.data_source ?? "",
|
6999
6998
|
registryType: m.registryType ?? "",
|
@@ -7100,7 +7099,7 @@ const vp = (e) => ({
|
|
7100
7099
|
isExceptionUser: c
|
7101
7100
|
}), d = Wl(e), u = Kl(e);
|
7102
7101
|
return {
|
7103
|
-
materials: a && a === Rm.RESOURCE ? l.filter((p) => p.filterState ===
|
7102
|
+
materials: a && a === Rm.RESOURCE ? l.filter((p) => p.filterState === aa.ALLOWED) : l,
|
7104
7103
|
...o,
|
7105
7104
|
...d,
|
7106
7105
|
...u
|
@@ -7136,7 +7135,7 @@ const vp = (e) => ({
|
|
7136
7135
|
function kr(e) {
|
7137
7136
|
return e ? e.split(":").pop() : "";
|
7138
7137
|
}
|
7139
|
-
function
|
7138
|
+
function La(e, s) {
|
7140
7139
|
if (!e || !s)
|
7141
7140
|
return "NA";
|
7142
7141
|
if (e.indexOf("gitlab") > 0 || e.indexOf("github") > 0 || e.indexOf("azure") > 0) {
|
@@ -7247,7 +7246,7 @@ const $A = (e, s) => {
|
|
7247
7246
|
o && !e ? s(!0) : !o && e && s(!1);
|
7248
7247
|
}
|
7249
7248
|
};
|
7250
|
-
}, Ip = Mt(null), qs = () => ss(Ip),
|
7249
|
+
}, Ip = Mt(null), qs = () => ss(Ip), sr = (e) => {
|
7251
7250
|
if (!e)
|
7252
7251
|
throw new Error("keys undefined");
|
7253
7252
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -7255,7 +7254,7 @@ const $A = (e, s) => {
|
|
7255
7254
|
keys: s,
|
7256
7255
|
id: s.join()
|
7257
7256
|
};
|
7258
|
-
},
|
7257
|
+
}, nr = (e) => {
|
7259
7258
|
if (!e || !Array.isArray(e) || !e.every((s) => typeof s == "function"))
|
7260
7259
|
throw new Error("callback stack is undefined");
|
7261
7260
|
}, FA = ["input", "textarea", "select"], BA = 300, jc = ({
|
@@ -7267,38 +7266,38 @@ const $A = (e, s) => {
|
|
7267
7266
|
}) => {
|
7268
7267
|
const o = V(!1), i = V({}), c = V(/* @__PURE__ */ new Set()), l = V(-1), d = s ?? FA, u = Ve(
|
7269
7268
|
({ keys: f, callback: N, description: C = "" }) => {
|
7270
|
-
const { keys: S, id: T } =
|
7269
|
+
const { keys: S, id: T } = sr(f);
|
7271
7270
|
if (typeof N != "function")
|
7272
7271
|
throw new Error("callback provided is not a function");
|
7273
7272
|
const I = i.current[T] && bm(i.current[T].keys, f) ? i.current[T] : null;
|
7274
7273
|
if (I) {
|
7275
|
-
|
7274
|
+
nr(I.callbackStack), I.callbackStack.push(N);
|
7276
7275
|
return;
|
7277
7276
|
}
|
7278
7277
|
i.current[T] = { keys: S, callbackStack: [N], description: C };
|
7279
7278
|
},
|
7280
7279
|
[]
|
7281
7280
|
), m = Ve((f) => {
|
7282
|
-
const { id: N } =
|
7281
|
+
const { id: N } = sr(f);
|
7283
7282
|
if (!i.current[N])
|
7284
7283
|
return;
|
7285
7284
|
const { callbackStack: C } = i.current[N];
|
7286
|
-
|
7285
|
+
nr(C), C.pop(), C.length || delete i.current[N];
|
7287
7286
|
}, []), p = Ve((f) => {
|
7288
7287
|
o.current = f;
|
7289
7288
|
}, []), _ = Ve((f) => {
|
7290
|
-
const { id: N } =
|
7289
|
+
const { id: N } = sr(f);
|
7291
7290
|
if (!i.current[N])
|
7292
7291
|
return;
|
7293
7292
|
const { callbackStack: C } = i.current[N];
|
7294
|
-
|
7293
|
+
nr(C), C[C.length - 1]();
|
7295
7294
|
}, []), h = Ve(() => {
|
7296
7295
|
if (!c.current.size)
|
7297
7296
|
return;
|
7298
|
-
const { id: f } =
|
7297
|
+
const { id: f } = sr(Array.from(c.current.values()));
|
7299
7298
|
if (i.current[f]) {
|
7300
7299
|
const { callbackStack: N } = i.current[f];
|
7301
|
-
|
7300
|
+
nr(N), N[N.length - 1]();
|
7302
7301
|
}
|
7303
7302
|
c.current.clear(), l.current > -1 && (clearTimeout(l.current), l.current = -1);
|
7304
7303
|
}, []), x = Ve((f) => {
|
@@ -7544,9 +7543,9 @@ const td = () => ({
|
|
7544
7543
|
...o,
|
7545
7544
|
...e ? { content: /* @__PURE__ */ t.jsx(HA, { ...e }) } : {},
|
7546
7545
|
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
7547
|
-
children:
|
7546
|
+
children: ca(r, { ...r.props, onMouseEnter: c })
|
7548
7547
|
}
|
7549
|
-
) :
|
7548
|
+
) : ca(r, { ...r.props, onMouseEnter: c });
|
7550
7549
|
};
|
7551
7550
|
var z = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(z || {}), oe = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e.neutralN0 = "neutral-n0", e.neutralWhite = "neutral-white", e))(oe || {}), ct = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e.anchor = "anchor", e))(ct || {});
|
7552
7551
|
const YA = {
|
@@ -7873,8 +7872,8 @@ const Op = {
|
|
7873
7872
|
Z
|
7874
7873
|
`;
|
7875
7874
|
}, hH = ({ duration: e, onComplete: s, size: n = 24, tooltipContent: a }) => {
|
7876
|
-
const r =
|
7877
|
-
return M(() =>
|
7875
|
+
const r = da(tI), o = Ls(r, (i) => nI(Vo, Ho, eI, i));
|
7876
|
+
return M(() => la(r, sI, {
|
7878
7877
|
duration: e,
|
7879
7878
|
ease: "easeInOut",
|
7880
7879
|
onComplete: s
|
@@ -7921,7 +7920,7 @@ const Op = {
|
|
7921
7920
|
title: o?.title ?? nd.title,
|
7922
7921
|
subTitle: o?.subTitle ?? nd.subTitle
|
7923
7922
|
}
|
7924
|
-
) : /* @__PURE__ */ t.jsx(
|
7923
|
+
) : /* @__PURE__ */ t.jsx(Ca, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }), Co = ({
|
7925
7924
|
isSorted: e,
|
7926
7925
|
triggerSorting: s,
|
7927
7926
|
sortOrder: n,
|
@@ -8089,7 +8088,7 @@ const Op = {
|
|
8089
8088
|
return D;
|
8090
8089
|
});
|
8091
8090
|
const v = s.current;
|
8092
|
-
o((O) => ({ ...O, [T]: !
|
8091
|
+
o((O) => ({ ...O, [T]: !oa(v[T], y) }));
|
8093
8092
|
}, E = (T, I) => () => {
|
8094
8093
|
if (I || a({ ...n, [T]: n[T]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
8095
8094
|
const b = p(), A = hn(n[T], b[T]);
|
@@ -8135,7 +8134,7 @@ const Op = {
|
|
8135
8134
|
}
|
8136
8135
|
if (R?.shouldDirty) {
|
8137
8136
|
const b = s.current;
|
8138
|
-
o((A) => ({ ...A, [T]: !
|
8137
|
+
o((A) => ({ ...A, [T]: !oa(b[T], I) }));
|
8139
8138
|
}
|
8140
8139
|
R?.shouldTouch && c((b) => ({ ...b, [T]: !0 }));
|
8141
8140
|
},
|
@@ -8157,7 +8156,7 @@ const Op = {
|
|
8157
8156
|
const k = s.current, P = Object.keys(T).reduce(
|
8158
8157
|
(U, L) => ({
|
8159
8158
|
...U,
|
8160
|
-
[L]: !
|
8159
|
+
[L]: !oa(T[L], k[L])
|
8161
8160
|
}),
|
8162
8161
|
{}
|
8163
8162
|
);
|
@@ -8359,14 +8358,14 @@ const Op = {
|
|
8359
8358
|
"app-group": null,
|
8360
8359
|
[rt.cluster]: null
|
8361
8360
|
};
|
8362
|
-
var Ur = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(Ur || {}),
|
8361
|
+
var Ur = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(Ur || {}), Da = /* @__PURE__ */ ((e) => (e.RECENTLY_VISITED = "recently-visited", e))(Da || {});
|
8363
8362
|
const EI = ({
|
8364
8363
|
userPreferencesResponse: e,
|
8365
8364
|
id: s,
|
8366
8365
|
name: n,
|
8367
8366
|
resourceKind: a
|
8368
8367
|
}) => {
|
8369
|
-
const r = e?.resources?.[a]?.[
|
8368
|
+
const r = e?.resources?.[a]?.[Da.RECENTLY_VISITED] || [], o = s && !n, i = r.filter((l) => !l?.id || !l.name ? !1 : o ? l.id !== s : !0);
|
8370
8369
|
return (s && n ? [{ id: s, name: n }, ...i.filter((l) => l.id !== s)] : i).slice(0, 6);
|
8371
8370
|
}, CI = (e) => {
|
8372
8371
|
const s = {};
|
@@ -8397,7 +8396,7 @@ const EI = ({
|
|
8397
8396
|
...a,
|
8398
8397
|
[s]: {
|
8399
8398
|
...a[s],
|
8400
|
-
[
|
8399
|
+
[Da.RECENTLY_VISITED]: Array.isArray(n) ? n.map(({ id: r, name: o }) => ({ id: r, name: o })) : []
|
8401
8400
|
}
|
8402
8401
|
};
|
8403
8402
|
}, NI = async ({
|
@@ -8496,7 +8495,7 @@ const EI = ({
|
|
8496
8495
|
});
|
8497
8496
|
return r && localStorage.setItem("userPreferences", JSON.stringify(o)), n && o.resources?.[n] && await Pp({
|
8498
8497
|
path: "resources",
|
8499
|
-
value: o.resources[n][
|
8498
|
+
value: o.resources[n][Da.RECENTLY_VISITED],
|
8500
8499
|
resourceKind: n,
|
8501
8500
|
shouldThrowError: a,
|
8502
8501
|
userPreferencesResponse: o
|
@@ -8515,7 +8514,7 @@ const EI = ({
|
|
8515
8514
|
() => p(),
|
8516
8515
|
[i, c],
|
8517
8516
|
d && !!l
|
8518
|
-
), x = h?.resources?.[l]?.[
|
8517
|
+
), x = h?.resources?.[l]?.[Da.RECENTLY_VISITED] || [], E = (C) => {
|
8519
8518
|
C?.themePreference ? C?.themePreference && m(C.themePreference) : u(!0), a(C);
|
8520
8519
|
};
|
8521
8520
|
return {
|
@@ -8550,7 +8549,7 @@ const EI = ({
|
|
8550
8549
|
recentlyVisitedResources: x,
|
8551
8550
|
recentResourcesLoading: _
|
8552
8551
|
};
|
8553
|
-
},
|
8552
|
+
}, Pa = ({
|
8554
8553
|
docLinkKey: e,
|
8555
8554
|
text: s = "Learn more",
|
8556
8555
|
dataTestId: n,
|
@@ -8570,7 +8569,7 @@ const EI = ({
|
|
8570
8569
|
isExternalLink: d,
|
8571
8570
|
isLicenseDashboard: h
|
8572
8571
|
}), g = (f) => {
|
8573
|
-
x && !d && !u && !f.metaKey && !h && E.startsWith(
|
8572
|
+
x && !d && !u && !f.metaKey && !h && E.startsWith(Oa) && (f.preventDefault(), _((N) => ({
|
8574
8573
|
...N,
|
8575
8574
|
state: po.DOCUMENTATION,
|
8576
8575
|
docLink: E,
|
@@ -8869,7 +8868,7 @@ const EI = ({
|
|
8869
8868
|
}, SH = (e) => {
|
8870
8869
|
const { selectOption: s, data: n } = e, a = { height: "16px", width: "16px", flex: "0 0 16px" }, r = (o) => s(n);
|
8871
8870
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex left pl-12", style: { background: e.isFocused ? "var(--N100)" : "transparent" }, children: [
|
8872
|
-
e.isSelected ? /* @__PURE__ */ t.jsx(
|
8871
|
+
e.isSelected ? /* @__PURE__ */ t.jsx(Ra, { onClick: r, className: "mr-8 icon-dim-16", style: a }) : /* @__PURE__ */ t.jsx("span", { onClick: r, className: "mr-8", style: a }),
|
8873
8872
|
/* @__PURE__ */ t.jsx(Je.Option, { ...e })
|
8874
8873
|
] });
|
8875
8874
|
}, vH = (e) => {
|
@@ -8992,14 +8991,14 @@ const jI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8992
8991
|
CANCELLED: "cancelled",
|
8993
8992
|
TIMED_OUT: ln.TIMED_OUT.toLowerCase(),
|
8994
8993
|
WAITING_TO_START: ln.WAITING_TO_START.toLowerCase()
|
8995
|
-
},
|
8994
|
+
}, ar = {
|
8996
8995
|
MESSAGE: "message",
|
8997
8996
|
START_OF_STREAM: "START_OF_STREAM",
|
8998
8997
|
END_OF_STREAM: "END_OF_STREAM",
|
8999
8998
|
ERROR: "error"
|
9000
8999
|
}, Wo = {
|
9001
9000
|
PENDING: "Pending"
|
9002
|
-
}, MI = "1", bo = 1, kI = "devtron-ci", UI = "devtron-ci",
|
9001
|
+
}, MI = "1", bo = 1, kI = "devtron-ci", UI = "devtron-ci", rr = 3, id = "deployment-status", $I = ["KIND", "NAME", "SYNC STATUS", "MESSAGE"], cd = "STAGE_INFO", FI = "|", Li = {
|
9003
9002
|
suspended: "var(--Y500)",
|
9004
9003
|
unknown: "var(--N700)",
|
9005
9004
|
queued: "var(--N700)",
|
@@ -9229,10 +9228,10 @@ const jI = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9229
9228
|
] }) })
|
9230
9229
|
] }),
|
9231
9230
|
!n && /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__position-abs-b-20 dc__content-center w-100", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox pt-8 pr-12 pb-8 pl-12 bcv-1 ev-2 bw-1 br-4", children: [
|
9232
|
-
/* @__PURE__ */ t.jsx(
|
9231
|
+
/* @__PURE__ */ t.jsx(Aa, { className: "icon-dim-20 fcv-5" }),
|
9233
9232
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8", children: st.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles }),
|
9234
9233
|
/* @__PURE__ */ t.jsx(
|
9235
|
-
|
9234
|
+
Pa,
|
9236
9235
|
{
|
9237
9236
|
docLinkKey: "BLOB_STORAGE",
|
9238
9237
|
text: st.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage,
|
@@ -9501,7 +9500,7 @@ const qI = (e, s) => {
|
|
9501
9500
|
}, nR = (e) => {
|
9502
9501
|
switch (e) {
|
9503
9502
|
case An.SUCCESS:
|
9504
|
-
return /* @__PURE__ */ t.jsx(
|
9503
|
+
return /* @__PURE__ */ t.jsx(Ra, { className: "dc__no-shrink icon-dim-16 scg-5" });
|
9505
9504
|
case An.FAILURE:
|
9506
9505
|
return /* @__PURE__ */ t.jsx(cs, { className: "dc__no-shrink icon-dim-16 fcr-5" });
|
9507
9506
|
default:
|
@@ -9799,7 +9798,7 @@ const qI = (e, s) => {
|
|
9799
9798
|
children: m
|
9800
9799
|
}
|
9801
9800
|
),
|
9802
|
-
s !== PI && /* @__PURE__ */ t.jsx(
|
9801
|
+
s !== PI && /* @__PURE__ */ t.jsx(ma, { className: "icon-dim-12 fcn-5" })
|
9803
9802
|
] }),
|
9804
9803
|
r && /* @__PURE__ */ t.jsx("span", { className: "dc__border-dashed--n3-bottom fw-6 fs-13 lh-19-imp", children: r })
|
9805
9804
|
]
|
@@ -10101,7 +10100,7 @@ const gR = {
|
|
10101
10100
|
statusFetchCount: r
|
10102
10101
|
}) => {
|
10103
10102
|
e.icon = n === re.UNABLE_TO_FETCH ? "disconnect" : "timed_out", e.displaySubText = "Unknown", e.isCollapsed = !1;
|
10104
|
-
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ?
|
10103
|
+
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ? Sa(a, !0) : "--"}. ${r || "--"} retries failed.`;
|
10105
10104
|
e.timelineStatus = [X.KUBECTL_APPLY, X.APP_HEALTH].includes(
|
10106
10105
|
s
|
10107
10106
|
) ? i : "";
|
@@ -10377,12 +10376,12 @@ const PR = (e) => {
|
|
10377
10376
|
if (e.external)
|
10378
10377
|
e.externalType ? r.external = {
|
10379
10378
|
displayName: "Data type",
|
10380
|
-
value:
|
10379
|
+
value: er[s][e.externalType]
|
10381
10380
|
} : r.external = {
|
10382
10381
|
displayName: "Data type",
|
10383
|
-
value: s === "Secret" ?
|
10382
|
+
value: s === "Secret" ? er[s].KubernetesSecret : er[s].KubernetesConfigMap
|
10384
10383
|
};
|
10385
|
-
else if (r.external = { displayName: "Data type", value:
|
10384
|
+
else if (r.external = { displayName: "Data type", value: er[s][""] }, s === "Secret" && n.codeEditorValue.value) {
|
10386
10385
|
const o = JSON.parse(n.codeEditorValue.value);
|
10387
10386
|
let i = {};
|
10388
10387
|
n.codeEditorValue?.resolvedValue && (i = JSON.parse(n.codeEditorValue.resolvedValue));
|
@@ -10418,7 +10417,7 @@ const PR = (e) => {
|
|
10418
10417
|
};
|
10419
10418
|
}
|
10420
10419
|
return s === "Secret" && e.roleARN && (r.roleARN = { displayName: "Role ARN", value: e.roleARN }), r;
|
10421
|
-
},
|
10420
|
+
}, Ea = (e, s, n) => {
|
10422
10421
|
let a;
|
10423
10422
|
const r = { codeEditorValue: e.codeEditorValue, values: {} };
|
10424
10423
|
return delete e.codeEditorValue, s === Ut.DEPLOYMENT_TEMPLATE.VALUE ? a = PR(e) : s === Ut.PIPELINE_STRATEGY.VALUE ? a = MR(e) : a = kR(
|
@@ -10651,7 +10650,7 @@ const PR = (e) => {
|
|
10651
10650
|
}
|
10652
10651
|
);
|
10653
10652
|
};
|
10654
|
-
let
|
10653
|
+
let or = null;
|
10655
10654
|
const $R = ({
|
10656
10655
|
deploymentStatus: e,
|
10657
10656
|
deploymentAppType: s,
|
@@ -10667,7 +10666,7 @@ const $R = ({
|
|
10667
10666
|
const u = no(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = kt(), [x, E] = j(
|
10668
10667
|
e?.toUpperCase() !== X.ABORTED
|
10669
10668
|
), g = hR.getAppDetails(), f = V(i), N = V(d), C = f.current && c ? c() : Pi(s ?? g?.deploymentAppType), [S, T] = j(C), I = () => {
|
10670
|
-
|
10669
|
+
or && clearTimeout(or);
|
10671
10670
|
}, R = () => {
|
10672
10671
|
LR(p, _, !0, h, n, a).then((v) => {
|
10673
10672
|
e !== "Aborted" && b({
|
@@ -10692,19 +10691,19 @@ const $R = ({
|
|
10692
10691
|
v.deploymentAppType,
|
10693
10692
|
v
|
10694
10693
|
);
|
10695
|
-
I(), O.deploymentStatus === re.INPROGRESS ?
|
10694
|
+
I(), O.deploymentStatus === re.INPROGRESS ? or = setTimeout(() => {
|
10696
10695
|
R();
|
10697
|
-
}, 1e4) :
|
10696
|
+
}, 1e4) : or = setTimeout(() => {
|
10698
10697
|
R();
|
10699
10698
|
}, 3e4), T(O);
|
10700
10699
|
}, A = () => {
|
10701
10700
|
if (n) {
|
10702
|
-
|
10701
|
+
xa(
|
10703
10702
|
`${window.__BASE_URL__}${Ae.APPLICATION_MANAGEMENT_APP}/${Ae.DEVTRON_CHARTS}/${Ae.APP_DEPLOYMNENT_HISTORY}/${p}/env/${_}/${Ae.DETAILS}/${Ae.APP_DETAILS_K8}?${id}`
|
10704
10703
|
)();
|
10705
10704
|
return;
|
10706
10705
|
}
|
10707
|
-
|
10706
|
+
xa(
|
10708
10707
|
`${window.__BASE_URL__}${Ae.APPLICATION_MANAGEMENT_APP}/${p}/${Ae.APP_DETAILS}/${_}/${Ae.APP_DETAILS_K8}?${id}`
|
10709
10708
|
)();
|
10710
10709
|
}, y = () => !f.current && !S?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
@@ -10881,7 +10880,7 @@ const $R = ({
|
|
10881
10880
|
}
|
10882
10881
|
);
|
10883
10882
|
};
|
10884
|
-
function
|
10883
|
+
function Ca({ reload: e, className: s = "" }) {
|
10885
10884
|
return /* @__PURE__ */ t.jsx(
|
10886
10885
|
"article",
|
10887
10886
|
{
|
@@ -10989,7 +10988,7 @@ const Bn = ({
|
|
10989
10988
|
}
|
10990
10989
|
);
|
10991
10990
|
default:
|
10992
|
-
return /* @__PURE__ */ t.jsx(
|
10991
|
+
return /* @__PURE__ */ t.jsx(Ca, { reload: s, className: a });
|
10993
10992
|
}
|
10994
10993
|
})(), Kt = ({
|
10995
10994
|
content: e,
|
@@ -11030,7 +11029,7 @@ const Bn = ({
|
|
11030
11029
|
className: `dc__outline-none-imp p-0 flex dc__transparent--unstyled dc__no-border ${o}`,
|
11031
11030
|
"aria-label": `Copy ${e}`,
|
11032
11031
|
onClick: _,
|
11033
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(
|
11032
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(Ra, { className: h }) : /* @__PURE__ */ t.jsx(hm, { className: h }) })
|
11034
11033
|
}
|
11035
11034
|
) });
|
11036
11035
|
}, Kp = Mt(null), Io = () => {
|
@@ -11086,7 +11085,7 @@ const Bn = ({
|
|
11086
11085
|
{
|
11087
11086
|
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 || ""}`,
|
11088
11087
|
children: [
|
11089
|
-
/* @__PURE__ */ t.jsx(
|
11088
|
+
/* @__PURE__ */ t.jsx(Ia, { className: "code-editor__status-info-icon" }),
|
11090
11089
|
n,
|
11091
11090
|
s
|
11092
11091
|
]
|
@@ -11145,7 +11144,7 @@ const Bn = ({
|
|
11145
11144
|
}
|
11146
11145
|
];
|
11147
11146
|
return {
|
11148
|
-
themeExtension:
|
11147
|
+
themeExtension: ia.theme({
|
11149
11148
|
".cm-highlight-number": {
|
11150
11149
|
color: "var(--code-editor-number)"
|
11151
11150
|
},
|
@@ -11246,17 +11245,17 @@ const Bn = ({
|
|
11246
11245
|
]
|
11247
11246
|
}
|
11248
11247
|
);
|
11249
|
-
},
|
11248
|
+
}, Ma = Pu.define(), qp = Qi.define({
|
11250
11249
|
create() {
|
11251
11250
|
return !1;
|
11252
11251
|
},
|
11253
11252
|
update(e, s) {
|
11254
|
-
const n = s.effects.find((a) => a.is(
|
11253
|
+
const n = s.effects.find((a) => a.is(Ma));
|
11255
11254
|
return n ? n.value : e;
|
11256
11255
|
}
|
11257
11256
|
}), Uc = (e) => e.field(qp, !1) || !1, Xp = (e) => (e.dispatch({
|
11258
|
-
effects: [
|
11259
|
-
}), Df(e), !0), sy = (e) => (Xp(e), e.dispatch({ effects: [
|
11257
|
+
effects: [Ma.of(Lf(e.state) ? Uc(e.state) : !1)]
|
11258
|
+
}), Df(e), !0), sy = (e) => (Xp(e), e.dispatch({ effects: [Ma.of(!e.state.readOnly && !0)] }), !0), ny = (e) => (Uc(e.state) && Mu(e), !0), ay = (e) => (e.contentDOM.blur(), !0), ry = ku.define(), oy = ku.define(), _d = (e, s, n) => {
|
11260
11259
|
let a = null;
|
11261
11260
|
try {
|
11262
11261
|
a = JSON.parse(e);
|
@@ -11516,7 +11515,7 @@ const Bn = ({
|
|
11516
11515
|
}, R = (P) => {
|
11517
11516
|
p({ regexp: P });
|
11518
11517
|
}, b = () => {
|
11519
|
-
d(!l), e.dispatch({ effects: [
|
11518
|
+
d(!l), e.dispatch({ effects: [Ma.of(!l)] });
|
11520
11519
|
}, A = (P) => {
|
11521
11520
|
P.preventDefault(), P.stopPropagation(), Qf(e);
|
11522
11521
|
}, y = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
|
@@ -11765,7 +11764,7 @@ const Bn = ({
|
|
11765
11764
|
}, i = ({ transactions: c, docChanged: l, state: d, startState: u }) => {
|
11766
11765
|
c.forEach((m) => {
|
11767
11766
|
m.effects.forEach((p) => {
|
11768
|
-
p.is(Uu) && r(), p.is(
|
11767
|
+
p.is(Uu) && r(), p.is(Ma) && r();
|
11769
11768
|
});
|
11770
11769
|
}), (l || d.readOnly !== u.readOnly) && r();
|
11771
11770
|
};
|
@@ -11844,7 +11843,7 @@ const Bn = ({
|
|
11844
11843
|
let n = e.map(s.changes);
|
11845
11844
|
return s.docChanged && (n = Ed(s.state)), n;
|
11846
11845
|
},
|
11847
|
-
provide: (e) =>
|
11846
|
+
provide: (e) => ia.decorations.from(e)
|
11848
11847
|
}), Ny = Cy, by = () => (e) => {
|
11849
11848
|
const s = [], n = e.state.doc.toString();
|
11850
11849
|
try {
|
@@ -11945,13 +11944,13 @@ const Bn = ({
|
|
11945
11944
|
}), [A]);
|
11946
11945
|
const ce = () => {
|
11947
11946
|
le();
|
11948
|
-
}, xe =
|
11947
|
+
}, xe = ia.updateListener.of((ie) => {
|
11949
11948
|
if (ie.docChanged) {
|
11950
11949
|
const { doc: q } = ie.state, Ne = q.toString();
|
11951
11950
|
c(Ne, ie);
|
11952
11951
|
}
|
11953
11952
|
C || fd(B.current, ie.transactions, "a");
|
11954
|
-
}), be =
|
11953
|
+
}), be = ia.updateListener.of((ie) => {
|
11955
11954
|
if (ie.docChanged) {
|
11956
11955
|
const { doc: q } = ie.state, Ne = q.toString();
|
11957
11956
|
d(Ne, ie);
|
@@ -12189,7 +12188,7 @@ const Bn = ({
|
|
12189
12188
|
syntaxHighlighting: !1
|
12190
12189
|
}),
|
12191
12190
|
xd(o, !0),
|
12192
|
-
|
12191
|
+
ia.editable.of(!1),
|
12193
12192
|
Lo.readOnly.of(!0)
|
12194
12193
|
];
|
12195
12194
|
return /* @__PURE__ */ t.jsxs(Kp.Provider, { value: se, children: [
|
@@ -12268,12 +12267,12 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12268
12267
|
added: "Added",
|
12269
12268
|
deleted: "Deleted",
|
12270
12269
|
noDiff: "No change"
|
12271
|
-
},
|
12270
|
+
}, sa = {
|
12272
12271
|
hasDiff: bg,
|
12273
12272
|
added: Cg,
|
12274
12273
|
deleted: Ng,
|
12275
12274
|
noDiff: null
|
12276
|
-
},
|
12275
|
+
}, ir = {
|
12277
12276
|
hasDiff: "File has difference",
|
12278
12277
|
added: "File has been added",
|
12279
12278
|
deleted: "File has been deleted",
|
@@ -12718,9 +12717,9 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12718
12717
|
strikeThrough: d && T === Ht.DELETED,
|
12719
12718
|
...!u && T !== Ht.NO_DIFF ? {
|
12720
12719
|
iconConfig: {
|
12721
|
-
Icon: d ?
|
12720
|
+
Icon: d ? sa[T] : sa.hasDiff,
|
12722
12721
|
tooltipProps: {
|
12723
|
-
content: d ?
|
12722
|
+
content: d ? ir[T] : ir.hasDiff,
|
12724
12723
|
arrow: !1,
|
12725
12724
|
placement: "right"
|
12726
12725
|
}
|
@@ -12739,19 +12738,19 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12739
12738
|
] }), g = () => {
|
12740
12739
|
const { tabs: C, activeTab: S } = c;
|
12741
12740
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12742
|
-
|
12741
|
+
va,
|
12743
12742
|
{
|
12744
12743
|
name: "deployment-config-diff-tab-list",
|
12745
12744
|
initialTab: S,
|
12746
12745
|
onChange: x,
|
12747
12746
|
disabled: e,
|
12748
12747
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
12749
|
-
children: C.map((T) => /* @__PURE__ */ t.jsx(
|
12748
|
+
children: C.map((T) => /* @__PURE__ */ t.jsx(va.Radio, { value: T, className: "fs-12 lh-20 cn-7 fw-6", children: T }, T))
|
12750
12749
|
}
|
12751
12750
|
) });
|
12752
12751
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12753
12752
|
n.map(({ title: C, href: S, onClick: T, diffState: I, Icon: R }) => {
|
12754
|
-
const b = d ?
|
12753
|
+
const b = d ? sa[I] : sa.hasDiff;
|
12755
12754
|
return /* @__PURE__ */ t.jsxs(
|
12756
12755
|
Ys,
|
12757
12756
|
{
|
@@ -12766,7 +12765,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12766
12765
|
Re,
|
12767
12766
|
{
|
12768
12767
|
className: "default-tt",
|
12769
|
-
content: d ?
|
12768
|
+
content: d ? ir[I] : ir.hasDiff,
|
12770
12769
|
arrow: !1,
|
12771
12770
|
placement: "right",
|
12772
12771
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(b, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
@@ -12779,11 +12778,11 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12779
12778
|
}),
|
12780
12779
|
/* @__PURE__ */ t.jsx(yy, { config: _, tabType: "navLink", onCollapseBtnClick: h }),
|
12781
12780
|
o && /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12782
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(sm, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(
|
12781
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(sm, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(ma, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
|
12783
12782
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${i ? "cr-5" : "cn-9"}`, children: o })
|
12784
12783
|
] })
|
12785
12784
|
] }), N = () => e ? ["90", "70", "50"].map((C) => /* @__PURE__ */ t.jsx(Oy, { width: C }, C)) : l?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12786
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
12785
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(ma, { className: "icon-dim-16 fcn-7" }) }),
|
12787
12786
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
|
12788
12787
|
] }) : f();
|
12789
12788
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
@@ -12935,7 +12934,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12935
12934
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
12936
12935
|
}, Cr = (e, s) => {
|
12937
12936
|
const n = !!e.codeEditorValue.value, a = !!s.codeEditorValue.value;
|
12938
|
-
return !n && a ? Ht.DELETED : n && !a ? Ht.ADDED :
|
12937
|
+
return !n && a ? Ht.DELETED : n && !a ? Ht.ADDED : oa(e, s) ? Ht.NO_DIFF : Ht.HAS_DIFF;
|
12939
12938
|
}, Sd = (e, s) => {
|
12940
12939
|
if (e && e.external && (e.externalType === "" || e.externalType === Be.KubernetesSecret)) {
|
12941
12940
|
const n = structuredClone(s);
|
@@ -12950,11 +12949,11 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12950
12949
|
a,
|
12951
12950
|
r,
|
12952
12951
|
o
|
12953
|
-
), l = n === es.Secret ? Ut.SECRET.VALUE : Ut.CONFIGMAP.VALUE, d =
|
12952
|
+
), l = n === es.Secret ? Ut.SECRET.VALUE : Ut.CONFIGMAP.VALUE, d = Ea(
|
12954
12953
|
{ ...e || {}, codeEditorValue: i },
|
12955
12954
|
l,
|
12956
12955
|
n === es.Secret && !a
|
12957
|
-
), u =
|
12956
|
+
), u = Ea(
|
12958
12957
|
{ ...s || {}, codeEditorValue: c },
|
12959
12958
|
l,
|
12960
12959
|
n === es.Secret && !r
|
@@ -12972,7 +12971,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12972
12971
|
displayName: "data",
|
12973
12972
|
value: a ? ws(a, n) : ""
|
12974
12973
|
};
|
12975
|
-
return
|
12974
|
+
return Ea(
|
12976
12975
|
{
|
12977
12976
|
...Dy(e, s),
|
12978
12977
|
codeEditorValue: r
|
@@ -12984,7 +12983,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12984
12983
|
displayName: "data",
|
12985
12984
|
value: e.data
|
12986
12985
|
};
|
12987
|
-
return
|
12986
|
+
return Ea(
|
12988
12987
|
{ codeEditorValue: s },
|
12989
12988
|
Ut.DEPLOYMENT_TEMPLATE.VALUE
|
12990
12989
|
);
|
@@ -12993,7 +12992,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12993
12992
|
displayName: "data",
|
12994
12993
|
value: e?.data ? ws(e.data, s) : ""
|
12995
12994
|
};
|
12996
|
-
return
|
12995
|
+
return Ea(
|
12997
12996
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
12998
12997
|
Ut.PIPELINE_STRATEGY.VALUE
|
12999
12998
|
);
|
@@ -13003,10 +13002,10 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13003
13002
|
n = !0;
|
13004
13003
|
else if (s) {
|
13005
13004
|
const o = e;
|
13006
|
-
o.deploymentDraftData?.configData[0].draftMetadata.draftState ===
|
13005
|
+
o.deploymentDraftData?.configData[0].draftMetadata.draftState === ea.Init ? a = !0 : o.deploymentDraftData?.configData[0].draftMetadata.draftState === ea.AwaitApproval && (r = !0);
|
13007
13006
|
} else {
|
13008
13007
|
const o = e;
|
13009
|
-
o.draftMetadata?.draftState ===
|
13008
|
+
o.draftMetadata?.draftState === ea.Init ? a = !0 : o.draftMetadata?.draftState === ea.AwaitApproval && (r = !0);
|
13010
13009
|
}
|
13011
13010
|
return n ? /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Does not exist" }) : a ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
13012
13011
|
/* @__PURE__ */ t.jsx(Sg, { className: "icon-dim-16 scr-5" }),
|
@@ -13015,7 +13014,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13015
13014
|
/* @__PURE__ */ t.jsx(Tg, { className: "icon-dim-16 dc__no-shrink" }),
|
13016
13015
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cv-5", children: "Approval pending" })
|
13017
13016
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
13018
|
-
/* @__PURE__ */ t.jsx(
|
13017
|
+
/* @__PURE__ */ t.jsx(Ra, { className: "scn-9 icon-dim-16" }),
|
13019
13018
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Published" })
|
13020
13019
|
] });
|
13021
13020
|
}, Rd = (e, s) => {
|
@@ -13299,7 +13298,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13299
13298
|
previousDeployments: []
|
13300
13299
|
}
|
13301
13300
|
), Fy = (e) => {
|
13302
|
-
const s =
|
13301
|
+
const s = sa[e];
|
13303
13302
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-6", children: [
|
13304
13303
|
s && /* @__PURE__ */ t.jsx(s, { className: "icon-dim-16" }),
|
13305
13304
|
/* @__PURE__ */ t.jsx("span", { className: `fs-12 lh-20 ${e_[e]}`, children: Qp[e] })
|
@@ -13678,7 +13677,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13678
13677
|
};
|
13679
13678
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
13680
13679
|
!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: [
|
13681
|
-
/* @__PURE__ */ t.jsx(
|
13680
|
+
/* @__PURE__ */ t.jsx(Ia, { className: "mr-8 ml-14 icon-dim-20" }),
|
13682
13681
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
13683
13682
|
Ut[r.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
13684
13683
|
o ? ` “${o}”` : "",
|
@@ -13795,7 +13794,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13795
13794
|
index: i,
|
13796
13795
|
isExcluded: c = !1
|
13797
13796
|
}) => {
|
13798
|
-
const l = yc(n), d = e === ts.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl :
|
13797
|
+
const l = yc(n), d = e === ts.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl : La(r, l.commit), p = (I) => I ? /* @__PURE__ */ t.jsx(
|
13799
13798
|
"a",
|
13800
13799
|
{
|
13801
13800
|
href: $A(r, I),
|
@@ -13824,7 +13823,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13824
13823
|
u.data.author
|
13825
13824
|
] }) : null,
|
13826
13825
|
R ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
|
13827
|
-
/* @__PURE__ */ t.jsx(
|
13826
|
+
/* @__PURE__ */ t.jsx(ua, { className: "icon-dim-16 scn-7" }),
|
13828
13827
|
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-12", children: R })
|
13829
13828
|
] }) : null,
|
13830
13829
|
u.data.message ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 top material-history-text--padded w-100", children: [
|
@@ -13958,7 +13957,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13958
13957
|
] })
|
13959
13958
|
] }) : null,
|
13960
13959
|
l.date ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8", children: [
|
13961
|
-
/* @__PURE__ */ t.jsx(
|
13960
|
+
/* @__PURE__ */ t.jsx(ua, { className: "icon-dim-16 scn-7" }),
|
13962
13961
|
/* @__PURE__ */ t.jsx("span", { className: "lh-20", children: we(l.date).format(Lt.TWELVE_HOURS_FORMAT) })
|
13963
13962
|
] }) : null
|
13964
13963
|
] })
|
@@ -14217,20 +14216,20 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14217
14216
|
] })
|
14218
14217
|
] });
|
14219
14218
|
}, r_ = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
14220
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
14219
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(Ia, { className: "icon-dim-20" }) }),
|
14221
14220
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
14222
14221
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
14223
14222
|
] }) }), aO = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14224
14223
|
r_("Logs are available only at runtime."),
|
14225
14224
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox configure-blob-container pt-8 pr-12 pb-8 pl-12 bcv-1 br-4", children: [
|
14226
|
-
/* @__PURE__ */ t.jsx(
|
14225
|
+
/* @__PURE__ */ t.jsx(Aa, { className: "icon-dim-20 fcv-5" }),
|
14227
14226
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8 text__white", children: "Want to store logs to view later?" }),
|
14228
|
-
/* @__PURE__ */ t.jsx(
|
14227
|
+
/* @__PURE__ */ t.jsx(Pa, { docLinkKey: "BLOB_STORAGE", text: "Configure blob storage", dataTestId: "configure-blob-storage" }),
|
14229
14228
|
/* @__PURE__ */ t.jsx(Zu, { className: "icon-dim-20 ml-8" })
|
14230
14229
|
] })
|
14231
14230
|
] }), rO = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-grow-1 flex-align-center dc__height-inherit dark-background", children: e ? r_() : aO() }), oO = (e, s) => {
|
14232
14231
|
const [n, a] = j([]);
|
14233
|
-
let r =
|
14232
|
+
let r = rr;
|
14234
14233
|
const [o, i] = j(!1), [c, l] = j(1e3), d = V([]), u = V(null);
|
14235
14234
|
function m() {
|
14236
14235
|
a((f) => [...f, ...d.current]), d.current = [];
|
@@ -14240,16 +14239,16 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14240
14239
|
u.current && u.current.close && u.current.close();
|
14241
14240
|
}
|
14242
14241
|
function _(f) {
|
14243
|
-
f.type === "message" && (r =
|
14242
|
+
f.type === "message" && (r = rr, d.current.push(f.data));
|
14244
14243
|
}
|
14245
14244
|
function h() {
|
14246
|
-
r =
|
14245
|
+
r = rr, d.current = [], a([]);
|
14247
14246
|
}
|
14248
14247
|
function x() {
|
14249
|
-
r =
|
14248
|
+
r = rr, a((f) => [...f, ...d.current]), d.current = [], u.current.close(), l(null);
|
14250
14249
|
}
|
14251
14250
|
function E() {
|
14252
|
-
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(
|
14251
|
+
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(ar.MESSAGE, _), u.current.addEventListener(ar.START_OF_STREAM, h), u.current.addEventListener(ar.END_OF_STREAM, x), u.current.addEventListener(ar.ERROR, g);
|
14253
14252
|
}
|
14254
14253
|
function g(f) {
|
14255
14254
|
r -= 1, u.current && u.current.close(), r > 0 ? E() : (i(!0), l(null));
|
@@ -14886,7 +14885,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14886
14885
|
] });
|
14887
14886
|
return /* @__PURE__ */ t.jsx(Je.ValueContainer, { ...s, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
14888
14887
|
i(),
|
14889
|
-
|
14888
|
+
ca(n[1])
|
14890
14889
|
] }) });
|
14891
14890
|
}, Ui = ({ handleClick: e = he, commits: s }) => s?.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "flexbox", children: /* @__PURE__ */ t.jsxs(
|
14892
14891
|
"button",
|
@@ -14931,8 +14930,8 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14931
14930
|
Ui,
|
14932
14931
|
{
|
14933
14932
|
commits: [r.Commit],
|
14934
|
-
handleClick:
|
14935
|
-
|
14933
|
+
handleClick: xa(
|
14934
|
+
La(a.url, r.Commit)
|
14936
14935
|
)
|
14937
14936
|
}
|
14938
14937
|
),
|
@@ -15005,7 +15004,7 @@ const $c = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15005
15004
|
const c = Mc(e);
|
15006
15005
|
return /* @__PURE__ */ t.jsxs("div", { className: "shadow__overlay p-16 br-4 w-350 bg__overlay--primary border__primary mxh-300 dc__overflow-auto flexbox-col dc__gap-16", children: [
|
15007
15006
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__icon-text-layout", children: [
|
15008
|
-
/* @__PURE__ */ t.jsx(
|
15007
|
+
/* @__PURE__ */ t.jsx(ua, { className: `scn-7 ${kd}` }),
|
15009
15008
|
/* @__PURE__ */ t.jsx("time", { className: "cn-9 fs-12 cn-9 fw-4 lh-20", children: c?.triggeredOn ? So(c.triggeredOn) : "--" }),
|
15010
15009
|
/* @__PURE__ */ t.jsx(ii, { className: `fcn-7 ${kd}` }),
|
15011
15010
|
/* @__PURE__ */ t.jsx(ee, { content: s, children: /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-12 fw-4 lh-20 dc__truncate", children: s }) }),
|
@@ -15445,7 +15444,7 @@ const CO = (e) => {
|
|
15445
15444
|
onClick: ye,
|
15446
15445
|
children: [
|
15447
15446
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 p-20", children: [
|
15448
|
-
C ? null :
|
15447
|
+
C ? null : ca(N, {
|
15449
15448
|
className: `${N.props?.className ?? ""} icon-dim-48 dc__no-shrink`
|
15450
15449
|
}),
|
15451
15450
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${d ? "" : "dc__gap-8"}`, children: [
|
@@ -15825,8 +15824,8 @@ const CO = (e) => {
|
|
15825
15824
|
Ui,
|
15826
15825
|
{
|
15827
15826
|
commits: [_.Commit],
|
15828
|
-
handleClick:
|
15829
|
-
|
15827
|
+
handleClick: xa(
|
15828
|
+
La(p.url, _.Commit)
|
15830
15829
|
)
|
15831
15830
|
}
|
15832
15831
|
),
|
@@ -16372,7 +16371,7 @@ const CO = (e) => {
|
|
16372
16371
|
title: st.TRIGGER_NOT_FOUND.TITLE,
|
16373
16372
|
subTitle: st.TRIGGER_NOT_FOUND.SUBTITLE
|
16374
16373
|
}
|
16375
|
-
) : !B && !O && !v ? /* @__PURE__ */ t.jsx(
|
16374
|
+
) : !B && !O && !v ? /* @__PURE__ */ t.jsx(Ca, {}) : B && !(K || O) && !v ? /* @__PURE__ */ t.jsx(Ca, {}) : v?.id !== +b ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16376
16375
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16377
16376
|
/* @__PURE__ */ t.jsx(
|
16378
16377
|
jO,
|
@@ -16542,7 +16541,7 @@ const CO = (e) => {
|
|
16542
16541
|
_()
|
16543
16542
|
] });
|
16544
16543
|
};
|
16545
|
-
class
|
16544
|
+
class ka extends He.Component {
|
16546
16545
|
constructor(n) {
|
16547
16546
|
super(n);
|
16548
16547
|
me(this, "handleBodyClick", (n) => {
|
@@ -16584,7 +16583,7 @@ const Bc = ({
|
|
16584
16583
|
}), []);
|
16585
16584
|
const p = {};
|
16586
16585
|
return (s === "left" || s === "right") && (p["--width"] = a, p["--minWidth"] = r, p["--maxWidth"] = o), (s === "top" || s === "bottom") && (p["--height"] = n), /* @__PURE__ */ t.jsx(
|
16587
|
-
|
16586
|
+
ka,
|
16588
16587
|
{
|
16589
16588
|
className: "drawer--container",
|
16590
16589
|
parentClassName: i || "",
|
@@ -16934,7 +16933,7 @@ const KO = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16934
16933
|
initialTab: u,
|
16935
16934
|
debugWithAIButton: m
|
16936
16935
|
}) => {
|
16937
|
-
const [p, _] = j(!1), [h, x] = j(u || null), E = V(new AbortController()), g = V(null), f = async () => await
|
16936
|
+
const [p, _] = j(!1), [h, x] = j(u || null), E = V(new AbortController()), g = V(null), f = async () => await Ta(
|
16938
16937
|
() => XO({
|
16939
16938
|
appId: l,
|
16940
16939
|
envId: d,
|
@@ -16948,7 +16947,7 @@ const KO = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16948
16947
|
T,
|
16949
16948
|
I
|
16950
16949
|
] = At(f, [], n === "release"), R = n === "release" ? C : a, b = $i({ type: n, appDetails: R }), A = V(new AbortController()), y = V(null), v = async () => {
|
16951
|
-
const q = await
|
16950
|
+
const q = await Ta(
|
16952
16951
|
() => JO({
|
16953
16952
|
abortControllerRef: A,
|
16954
16953
|
appId: R.appType === Et.DEVTRON_HELM_CHART ? R.installedAppId : R.appId,
|
@@ -17044,7 +17043,7 @@ const KO = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
17044
17043
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20", children: "Deployment status:" }),
|
17045
17044
|
/* @__PURE__ */ t.jsx(Fn, { status: D.deploymentStatus, hideIcon: !0 })
|
17046
17045
|
] }),
|
17047
|
-
subTitle: `Triggered at ${
|
17046
|
+
subTitle: `Triggered at ${Sa(D.deploymentTriggerTime)} by ${D.triggeredBy}`,
|
17048
17047
|
imageType: Ks.Large
|
17049
17048
|
}
|
17050
17049
|
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -17357,7 +17356,7 @@ const tj = {
|
|
17357
17356
|
[-1]: "Failed",
|
17358
17357
|
0: "Progressing",
|
17359
17358
|
1: "Completed"
|
17360
|
-
},
|
17359
|
+
}, Ua = ({ severity: e, count: s }) => {
|
17361
17360
|
const n = s ? `${s} ${Lu(e)}` : Lu(e), a = {
|
17362
17361
|
size: w.xxs,
|
17363
17362
|
label: n
|
@@ -17422,7 +17421,7 @@ const tj = {
|
|
17422
17421
|
}
|
17423
17422
|
)
|
17424
17423
|
] }), sj = ({ entities: e, lastScanTimeString: s, scanToolName: n, scanToolUrl: a }) => /* @__PURE__ */ t.jsxs("div", { className: "info-card", children: [
|
17425
|
-
/* @__PURE__ */ t.jsx(
|
17424
|
+
/* @__PURE__ */ t.jsx(ga, { entities: e, rootClassName: "p-16 fs-13", countClassName: "fw-6", showAnimationOnBar: !0 }),
|
17426
17425
|
(s || n) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17427
17426
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-bottom-n1 w-100 h-1" }),
|
17428
17427
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__content-space pl-16 pr-16 pb-8 pt-8", children: [
|
@@ -17448,7 +17447,7 @@ const tj = {
|
|
17448
17447
|
)
|
17449
17448
|
] })
|
17450
17449
|
] })
|
17451
|
-
] }),
|
17450
|
+
] }), $a = ({
|
17452
17451
|
children: e,
|
17453
17452
|
detailViewData: s,
|
17454
17453
|
setDetailViewData: n
|
@@ -17520,7 +17519,7 @@ const tj = {
|
|
17520
17519
|
te.FAILURES,
|
17521
17520
|
te.EXCEPTIONS,
|
17522
17521
|
te.SUCCESSES
|
17523
|
-
],
|
17522
|
+
], Fa = Gr.DESC, Hc = {
|
17524
17523
|
image: bn,
|
17525
17524
|
title: "Scan failed",
|
17526
17525
|
subTitle: "Error: Security scan failed"
|
@@ -17537,7 +17536,7 @@ const tj = {
|
|
17537
17536
|
value: e[s]
|
17538
17537
|
}
|
17539
17538
|
).filter((s) => !!s)
|
17540
|
-
),
|
17539
|
+
), Ba = (e) => e && Object.keys(e).sort(
|
17541
17540
|
(s, n) => Hr.indexOf(s) - Hr.indexOf(n)
|
17542
17541
|
).map((s) => `${e[s]} ${Vr[s].label}`).join(", "), Yd = (e) => ({
|
17543
17542
|
[te.UNKNOWN]: 1,
|
@@ -17548,7 +17547,7 @@ const tj = {
|
|
17548
17547
|
[te.FAILURES]: 6,
|
17549
17548
|
[te.EXCEPTIONS]: 7,
|
17550
17549
|
[te.SUCCESSES]: 8
|
17551
|
-
})[e] || 1e4,
|
17550
|
+
})[e] || 1e4, Ga = (e, s) => Yd(e) - Yd(s), WH = (e) => {
|
17552
17551
|
const s = e[pe.IMAGE_SCAN].vulnerability?.summary?.severities, n = e[pe.CODE_SCAN].vulnerability?.summary?.severities;
|
17553
17552
|
return {
|
17554
17553
|
critical: (s?.[te.CRITICAL] || 0) + (n?.[te.CRITICAL] || 0),
|
@@ -17785,7 +17784,7 @@ const tj = {
|
|
17785
17784
|
const s = e.imageScan?.vulnerability?.list ?? [], n = e.imageScan?.license?.list ?? [], a = e.codeScan?.status, r = e.kubernetesManifest?.status, o = Wr(s), i = Wr(n);
|
17786
17785
|
return o === "Progressing" || i === "Progressing" || Gi(a) || Gi(r) ? "Progressing" : o === "Failed" || i === "Failed" || a === "Failed" || r === "Failed" ? "Failed" : "Completed";
|
17787
17786
|
}, _j = ({ href: e }) => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 dc__align-items-center fs-13 fw-6", children: [
|
17788
|
-
/* @__PURE__ */ t.jsx(
|
17787
|
+
/* @__PURE__ */ t.jsx(ma, { className: "icon-dim-24 fcn-3" }),
|
17789
17788
|
/* @__PURE__ */ t.jsx("span", { children: "Code snippet is not available" }),
|
17790
17789
|
e && /* @__PURE__ */ t.jsx("a", { href: e, rel: "noopener noreferrer", target: "_blank", children: "Go to file" })
|
17791
17790
|
] }) }), h_ = ({ title: e, lines: s, link: n }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch bg__primary dc__outline dc__border-radius-4-imp", children: [
|
@@ -17804,8 +17803,8 @@ const tj = {
|
|
17804
17803
|
headerText: "severity",
|
17805
17804
|
isSortable: !0,
|
17806
17805
|
width: 100,
|
17807
|
-
compareFunc:
|
17808
|
-
defaultSortOrder:
|
17806
|
+
compareFunc: Ga,
|
17807
|
+
defaultSortOrder: Fa
|
17809
17808
|
},
|
17810
17809
|
{ headerText: "package", isSortable: !0, width: 143.33 },
|
17811
17810
|
{ headerText: "current version", isSortable: !1, width: 143.33 },
|
@@ -17831,7 +17830,7 @@ const tj = {
|
|
17831
17830
|
cellContent: n.cveId
|
17832
17831
|
},
|
17833
17832
|
{
|
17834
|
-
component: /* @__PURE__ */ t.jsx(
|
17833
|
+
component: /* @__PURE__ */ t.jsx(Ua, { severity: n.severity }),
|
17835
17834
|
cellContent: n.severity
|
17836
17835
|
},
|
17837
17836
|
{
|
@@ -17860,8 +17859,8 @@ const tj = {
|
|
17860
17859
|
headerText: "severity",
|
17861
17860
|
isSortable: !0,
|
17862
17861
|
width: 100,
|
17863
|
-
compareFunc:
|
17864
|
-
defaultSortOrder:
|
17862
|
+
compareFunc: Ga,
|
17863
|
+
defaultSortOrder: Fa
|
17865
17864
|
},
|
17866
17865
|
{ headerText: "license", isSortable: !1, width: 150 },
|
17867
17866
|
{ headerText: "source", isSortable: !0, width: 296 }
|
@@ -17875,7 +17874,7 @@ const tj = {
|
|
17875
17874
|
cellContent: s.classification
|
17876
17875
|
},
|
17877
17876
|
{
|
17878
|
-
component: /* @__PURE__ */ t.jsx(
|
17877
|
+
component: /* @__PURE__ */ t.jsx(Ua, { severity: s.severity }),
|
17879
17878
|
cellContent: s.severity
|
17880
17879
|
},
|
17881
17880
|
{
|
@@ -17907,8 +17906,8 @@ const tj = {
|
|
17907
17906
|
headerText: "severity",
|
17908
17907
|
isSortable: !0,
|
17909
17908
|
width: 100,
|
17910
|
-
compareFunc:
|
17911
|
-
defaultSortOrder:
|
17909
|
+
compareFunc: Ga,
|
17910
|
+
defaultSortOrder: Fa
|
17912
17911
|
},
|
17913
17912
|
{ headerText: "id", isSortable: !1, width: 100 }
|
17914
17913
|
],
|
@@ -17937,7 +17936,7 @@ const tj = {
|
|
17937
17936
|
cellContent: ""
|
17938
17937
|
},
|
17939
17938
|
{
|
17940
|
-
component: /* @__PURE__ */ t.jsx(
|
17939
|
+
component: /* @__PURE__ */ t.jsx(Ua, { severity: o.severity }),
|
17941
17940
|
cellContent: o.severity
|
17942
17941
|
},
|
17943
17942
|
{
|
@@ -17974,7 +17973,7 @@ const tj = {
|
|
17974
17973
|
cells: [
|
17975
17974
|
{
|
17976
17975
|
component: /* @__PURE__ */ t.jsx(
|
17977
|
-
|
17976
|
+
$a,
|
17978
17977
|
{
|
17979
17978
|
detailViewData: hj(
|
17980
17979
|
i,
|
@@ -17990,7 +17989,7 @@ const tj = {
|
|
17990
17989
|
cellContent: i.filePath
|
17991
17990
|
},
|
17992
17991
|
{
|
17993
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
17992
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ba(i.misConfSummary.status) }),
|
17994
17993
|
cellContent: i.misConfSummary.status
|
17995
17994
|
},
|
17996
17995
|
{
|
@@ -18008,8 +18007,8 @@ const tj = {
|
|
18008
18007
|
headerText: "severity",
|
18009
18008
|
isSortable: !0,
|
18010
18009
|
width: 100,
|
18011
|
-
compareFunc:
|
18012
|
-
defaultSortOrder:
|
18010
|
+
compareFunc: Ga,
|
18011
|
+
defaultSortOrder: Fa
|
18013
18012
|
},
|
18014
18013
|
{ headerText: "category", isSortable: !0, width: 150 }
|
18015
18014
|
],
|
@@ -18028,7 +18027,7 @@ const tj = {
|
|
18028
18027
|
cellContent: ""
|
18029
18028
|
},
|
18030
18029
|
{
|
18031
|
-
component: /* @__PURE__ */ t.jsx(
|
18030
|
+
component: /* @__PURE__ */ t.jsx(Ua, { severity: o.severity }),
|
18032
18031
|
cellContent: o.severity
|
18033
18032
|
},
|
18034
18033
|
{
|
@@ -18055,7 +18054,7 @@ const tj = {
|
|
18055
18054
|
cells: [
|
18056
18055
|
{
|
18057
18056
|
component: /* @__PURE__ */ t.jsx(
|
18058
|
-
|
18057
|
+
$a,
|
18059
18058
|
{
|
18060
18059
|
detailViewData: gj(
|
18061
18060
|
i,
|
@@ -18071,7 +18070,7 @@ const tj = {
|
|
18071
18070
|
cellContent: i.filePath
|
18072
18071
|
},
|
18073
18072
|
{
|
18074
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18073
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ba(i.summary.severities) }),
|
18075
18074
|
cellContent: i.summary.severities
|
18076
18075
|
}
|
18077
18076
|
]
|
@@ -18191,7 +18190,7 @@ const tj = {
|
|
18191
18190
|
cells: [
|
18192
18191
|
{
|
18193
18192
|
component: /* @__PURE__ */ t.jsx(
|
18194
|
-
|
18193
|
+
$a,
|
18195
18194
|
{
|
18196
18195
|
detailViewData: {
|
18197
18196
|
...Vi({
|
@@ -18209,7 +18208,7 @@ const tj = {
|
|
18209
18208
|
cellContent: r.source
|
18210
18209
|
},
|
18211
18210
|
{
|
18212
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18211
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ba(r.summary.severities) }),
|
18213
18212
|
cellContent: r.summary.severities
|
18214
18213
|
}
|
18215
18214
|
]
|
@@ -18250,7 +18249,7 @@ const tj = {
|
|
18250
18249
|
cells: [
|
18251
18250
|
{
|
18252
18251
|
component: /* @__PURE__ */ t.jsx(
|
18253
|
-
|
18252
|
+
$a,
|
18254
18253
|
{
|
18255
18254
|
detailViewData: Tj(a, s, n),
|
18256
18255
|
setDetailViewData: s,
|
@@ -18261,7 +18260,7 @@ const tj = {
|
|
18261
18260
|
},
|
18262
18261
|
{
|
18263
18262
|
component: null,
|
18264
|
-
cellContent:
|
18263
|
+
cellContent: Ba(a.summary.severities) || (a.status === "Completed" ? "No vulnerability found" : "-")
|
18265
18264
|
},
|
18266
18265
|
{
|
18267
18266
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18281,8 +18280,8 @@ const tj = {
|
|
18281
18280
|
headerText: "severity",
|
18282
18281
|
isSortable: !0,
|
18283
18282
|
width: 100,
|
18284
|
-
compareFunc:
|
18285
|
-
defaultSortOrder:
|
18283
|
+
compareFunc: Ga,
|
18284
|
+
defaultSortOrder: Fa
|
18286
18285
|
},
|
18287
18286
|
{ headerText: "license", isSortable: !1, width: 150 },
|
18288
18287
|
{ headerText: "package", isSortable: !0, width: 296 }
|
@@ -18296,7 +18295,7 @@ const tj = {
|
|
18296
18295
|
cellContent: s.classification
|
18297
18296
|
},
|
18298
18297
|
{
|
18299
|
-
component: /* @__PURE__ */ t.jsx(
|
18298
|
+
component: /* @__PURE__ */ t.jsx(Ua, { severity: s.severity }),
|
18300
18299
|
cellContent: s.severity
|
18301
18300
|
},
|
18302
18301
|
{
|
@@ -18327,7 +18326,7 @@ const tj = {
|
|
18327
18326
|
cells: [
|
18328
18327
|
{
|
18329
18328
|
component: /* @__PURE__ */ t.jsx(
|
18330
|
-
|
18329
|
+
$a,
|
18331
18330
|
{
|
18332
18331
|
detailViewData: vj(n),
|
18333
18332
|
setDetailViewData: s,
|
@@ -18338,7 +18337,7 @@ const tj = {
|
|
18338
18337
|
},
|
18339
18338
|
{
|
18340
18339
|
component: null,
|
18341
|
-
cellContent:
|
18340
|
+
cellContent: Ba(n.summary.severities) || (n.status === "Completed" ? "No license risk found" : "-")
|
18342
18341
|
},
|
18343
18342
|
{
|
18344
18343
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18824,7 +18823,7 @@ const tj = {
|
|
18824
18823
|
] }),
|
18825
18824
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
18826
18825
|
r || !(i || n.success) ? /* @__PURE__ */ t.jsx("div", { className: "bcn-1 br-4 h-8" }) : /* @__PURE__ */ t.jsx(
|
18827
|
-
|
18826
|
+
ga,
|
18828
18827
|
{
|
18829
18828
|
entities: c,
|
18830
18829
|
labelClassName: "fs-13 fw-4 lh-20 cn-9",
|
@@ -19088,7 +19087,7 @@ const tj = {
|
|
19088
19087
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__overflow-hidden pt-20 flex-grow-1 bulk-operations__results-modal__content", children: [
|
19089
19088
|
/* @__PURE__ */ t.jsxs("div", { className: "bulk-operations__results-modal__bar-chart br-8 flexbox-col dc__align-start dc__align-self-stretch dc__border bg__primary ml-20 mr-20", children: [
|
19090
19089
|
/* @__PURE__ */ t.jsx(
|
19091
|
-
|
19090
|
+
ga,
|
19092
19091
|
{
|
19093
19092
|
entities: a.getBarChartEntities(),
|
19094
19093
|
rootClassName: "p-16 fs-13 dc__border-bottom-n1",
|
@@ -19206,10 +19205,10 @@ class zd {
|
|
19206
19205
|
Progressing: 0,
|
19207
19206
|
Pending: 0
|
19208
19207
|
});
|
19209
|
-
|
19210
|
-
|
19208
|
+
Wa(this, yn, !1);
|
19209
|
+
Wa(this, On, !1);
|
19211
19210
|
me(this, "updateStatus", (s, n) => {
|
19212
|
-
n.status === "Completed" && !Js(this, On) &&
|
19211
|
+
n.status === "Completed" && !Js(this, On) && Ka(this, On, !0), n.status === "Failed" && !Js(this, yn) && Ka(this, yn, !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;
|
19213
19212
|
});
|
19214
19213
|
me(this, "addResult", (s) => {
|
19215
19214
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -19240,7 +19239,7 @@ const QH = ({
|
|
19240
19239
|
handleModalClose: e,
|
19241
19240
|
operations: s = [],
|
19242
19241
|
getResultsChartSummaryText: n,
|
19243
|
-
handleReloadDataAfterBulkOperation: a =
|
19242
|
+
handleReloadDataAfterBulkOperation: a = qa,
|
19244
19243
|
hideResultsDrawer: r = !1,
|
19245
19244
|
textConfig: o,
|
19246
19245
|
shouldSkipConfirmation: i,
|
@@ -19307,10 +19306,10 @@ const QH = ({
|
|
19307
19306
|
m(!1);
|
19308
19307
|
}
|
19309
19308
|
};
|
19310
|
-
M(() => (i && f().then(
|
19309
|
+
M(() => (i && f().then(qa).catch(qa), () => {
|
19311
19310
|
x.current?.abort();
|
19312
19311
|
}), []);
|
19313
|
-
const N = u ?
|
19312
|
+
const N = u ? qa : g, C = async () => {
|
19314
19313
|
_.current = h.current.getRetryOperations(), h.current = new zd(_.current.length), x.current = new AbortController(), await f();
|
19315
19314
|
}, S = () => {
|
19316
19315
|
x.current.abort();
|
@@ -19995,24 +19994,24 @@ const e6 = ({
|
|
19995
19994
|
default:
|
19996
19995
|
return a;
|
19997
19996
|
}
|
19998
|
-
},
|
19997
|
+
}, cr = (e, s) => Hi[s][e], Qj = (e) => {
|
19999
19998
|
const s = e.replace(/\d+$/, ""), n = e.match(/\d+$/), a = n ? parseInt(n[0], 10) : 500, r = Math.min(a + 200, 900), o = `${s}${r}`;
|
20000
19999
|
return Hi[o] || Hi[e];
|
20001
20000
|
}, ew = ({ type: e, dataset: s, appTheme: n }) => {
|
20002
20001
|
if (e === "pie")
|
20003
20002
|
return {
|
20004
|
-
backgroundColor: s.backgroundColor.map((a) =>
|
20003
|
+
backgroundColor: s.backgroundColor.map((a) => cr(a, n)),
|
20005
20004
|
borderColor: "transparent"
|
20006
20005
|
};
|
20007
20006
|
if (e === "line") {
|
20008
|
-
const a =
|
20007
|
+
const a = cr(s.borderColor, n);
|
20009
20008
|
return {
|
20010
20009
|
backgroundColor: a,
|
20011
20010
|
borderColor: a
|
20012
20011
|
};
|
20013
20012
|
}
|
20014
20013
|
if (e === "area") {
|
20015
|
-
const a =
|
20014
|
+
const a = cr(s.backgroundColor, n);
|
20016
20015
|
return {
|
20017
20016
|
backgroundColor(r) {
|
20018
20017
|
const { ctx: o, chartArea: i } = r.chart;
|
@@ -20025,7 +20024,7 @@ const e6 = ({
|
|
20025
20024
|
};
|
20026
20025
|
}
|
20027
20026
|
return {
|
20028
|
-
backgroundColor:
|
20027
|
+
backgroundColor: cr(s.backgroundColor, n),
|
20029
20028
|
borderColor: "transparent"
|
20030
20029
|
};
|
20031
20030
|
}, Qo = (e) => {
|
@@ -20133,7 +20132,7 @@ const t6 = (e) => {
|
|
20133
20132
|
}, nw = [
|
20134
20133
|
{ value: "", label: "Kubernetes ConfigMap" },
|
20135
20134
|
{ value: Be.KubernetesConfigMap, label: "Kubernetes External ConfigMap" }
|
20136
|
-
],
|
20135
|
+
], Na = [{ key: "", value: "", id: 0 }], qr = {
|
20137
20136
|
environment: { title: "Environment Variable", value: "environment" },
|
20138
20137
|
volume: { title: "Data Volume", value: "volume" }
|
20139
20138
|
}, aw = (e, s) => {
|
@@ -20190,7 +20189,7 @@ const t6 = (e) => {
|
|
20190
20189
|
configMapSecretData: e,
|
20191
20190
|
cmSecretStateLabel: s,
|
20192
20191
|
isSecret: n
|
20193
|
-
}) => e.mergeStrategy === Ec.PATCH ? e.patchData ? ei(e.patchData, n && e.externalType === "") :
|
20192
|
+
}) => e.mergeStrategy === Ec.PATCH ? e.patchData ? ei(e.patchData, n && e.externalType === "") : Na : e.data ? ei(e.data, n && e.externalType === "") : s === _o.INHERITED && e.defaultData ? ei(e.defaultData, n && e.externalType === "") : Na, ow = ({
|
20194
20193
|
data: e,
|
20195
20194
|
esoSubPath: s,
|
20196
20195
|
external: n,
|
@@ -20276,7 +20275,7 @@ const t6 = (e) => {
|
|
20276
20275
|
externalSubpathValues: "",
|
20277
20276
|
yaml: `"": ""
|
20278
20277
|
`,
|
20279
|
-
currentData:
|
20278
|
+
currentData: Na,
|
20280
20279
|
esoSecretYaml: "{}",
|
20281
20280
|
secretDataYaml: "[]",
|
20282
20281
|
mergeStrategy: null
|
@@ -20372,12 +20371,12 @@ const t6 = (e) => {
|
|
20372
20371
|
throw new Error();
|
20373
20372
|
return Object.keys(s).reduce((a, r, o) => {
|
20374
20373
|
if (!r && !s[r])
|
20375
|
-
return
|
20374
|
+
return Na;
|
20376
20375
|
const i = s[r] && typeof s[r] == "object" ? wt(s[r]) : s[r].toString();
|
20377
20376
|
return [...a, { key: r, value: i ?? "", id: o }];
|
20378
20377
|
}, []);
|
20379
20378
|
} catch {
|
20380
|
-
return
|
20379
|
+
return Na;
|
20381
20380
|
}
|
20382
20381
|
}, I_ = (e) => {
|
20383
20382
|
try {
|
@@ -20994,7 +20993,7 @@ const t6 = (e) => {
|
|
20994
20993
|
withFullScreenPortal: !1,
|
20995
20994
|
orientation: "horizontal",
|
20996
20995
|
readOnly: l || !1,
|
20997
|
-
customInputIcon: /* @__PURE__ */ t.jsx(
|
20996
|
+
customInputIcon: /* @__PURE__ */ t.jsx(ua, { className: "icon-dim-20 scn-6" }),
|
20998
20997
|
inputIconPosition: "after",
|
20999
20998
|
displayFormat: Lt.DD_MMM_YYYY,
|
21000
20999
|
"data-testid": m,
|
@@ -21206,7 +21205,7 @@ function Pw({ isCreateApp: e }) {
|
|
21206
21205
|
/* @__PURE__ */ t.jsxs("div", { className: "mb-20", children: [
|
21207
21206
|
/* @__PURE__ */ t.jsxs("span", { className: "flex left", children: [
|
21208
21207
|
"Add a tag and click on the",
|
21209
|
-
/* @__PURE__ */ t.jsx(
|
21208
|
+
/* @__PURE__ */ t.jsx(na, { className: "icon-dim-16 ml-4 mr-4" }),
|
21210
21209
|
"icon to"
|
21211
21210
|
] }),
|
21212
21211
|
"propagate tags as labels to Kubernetes resources"
|
@@ -21216,10 +21215,10 @@ function Pw({ isCreateApp: e }) {
|
|
21216
21215
|
return /* @__PURE__ */ t.jsx(
|
21217
21216
|
vc,
|
21218
21217
|
{
|
21219
|
-
theme:
|
21218
|
+
theme: ya.white,
|
21220
21219
|
className: "w-300",
|
21221
21220
|
placement: "left",
|
21222
|
-
Icon:
|
21221
|
+
Icon: na,
|
21223
21222
|
heading: "Propagate tags to K8s resources",
|
21224
21223
|
infoText: "",
|
21225
21224
|
additionalContent: s(),
|
@@ -21230,7 +21229,7 @@ function Pw({ isCreateApp: e }) {
|
|
21230
21229
|
documentationLinkText: "View Documentation",
|
21231
21230
|
openInNewTab: !0,
|
21232
21231
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox cursor", children: [
|
21233
|
-
/* @__PURE__ */ t.jsx(
|
21232
|
+
/* @__PURE__ */ t.jsx(na, { className: "icon-dim-16 mt-2 mr-4" }),
|
21234
21233
|
/* @__PURE__ */ t.jsx("span", { children: "Propagate tags" }),
|
21235
21234
|
/* @__PURE__ */ t.jsx(uo, { className: "icon-dim-16 mt-2 ml-4" })
|
21236
21235
|
] })
|
@@ -21519,7 +21518,7 @@ const Xd = ({
|
|
21519
21518
|
/* @__PURE__ */ t.jsx("span", { children: A })
|
21520
21519
|
] }, A)),
|
21521
21520
|
o === ms.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
21522
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
21521
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(ma, { className: "icon-dim-14 mt-3 mr-4" }) }),
|
21523
21522
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
21524
21523
|
] })
|
21525
21524
|
] });
|
@@ -21607,7 +21606,7 @@ const Xd = ({
|
|
21607
21606
|
className: `dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ${s.propagate ? "bcn-7" : ""} ${s.key.startsWith("devtron.ai/") ? "cursor-not-allowed bcn-1" : ""}`,
|
21608
21607
|
onClick: s?.isPropagateDisabled ? null : m,
|
21609
21608
|
"data-testid": `propagate-tag-${e}`,
|
21610
|
-
children: /* @__PURE__ */ t.jsx(
|
21609
|
+
children: /* @__PURE__ */ t.jsx(na, { className: `icon-dim-20 mt-4 ${s.propagate ? "scn-0" : ""}` })
|
21611
21610
|
}
|
21612
21611
|
),
|
21613
21612
|
/* @__PURE__ */ t.jsx(
|
@@ -22384,7 +22383,7 @@ const Qd = (e) => {
|
|
22384
22383
|
className: `flex right w-100 dc__align-right dc__border-top-n1 px-20 py-16 ${n ? "dc__content-space" : "right"}`,
|
22385
22384
|
children: [
|
22386
22385
|
n.length > 0 && /* @__PURE__ */ t.jsx(
|
22387
|
-
|
22386
|
+
Pa,
|
22388
22387
|
{
|
22389
22388
|
docLinkKey: n,
|
22390
22389
|
text: Jr.VIEW_DOCUMENTATION,
|
@@ -22424,7 +22423,7 @@ const Qd = (e) => {
|
|
22424
22423
|
const [d, u] = j(l?.[0]?.id ?? null), m = l?.find((_) => _.id === d) ?? null, p = (_) => {
|
22425
22424
|
u(_.target.value);
|
22426
22425
|
};
|
22427
|
-
return /* @__PURE__ */ t.jsx(
|
22426
|
+
return /* @__PURE__ */ t.jsx(ka, { className: "", close: r, children: /* @__PURE__ */ t.jsxs(
|
22428
22427
|
"div",
|
22429
22428
|
{
|
22430
22429
|
className: "feature-description modal__body w-600 mt-40 flex column p-0 fs-13 dc__overflow-hidden",
|
@@ -22433,14 +22432,14 @@ const Qd = (e) => {
|
|
22433
22432
|
/* @__PURE__ */ t.jsx("div", { className: "flex left w-100 fs-16 fw-6 px-20 py-16", children: e }),
|
22434
22433
|
Array.isArray(l) ? m && l.length > 0 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22435
22434
|
/* @__PURE__ */ t.jsx("div", { className: "px-20 pb-8 flex left w-100", children: /* @__PURE__ */ t.jsx(
|
22436
|
-
|
22435
|
+
va,
|
22437
22436
|
{
|
22438
22437
|
className: "gui-yaml-switch",
|
22439
22438
|
name: "feature-description-modal-tabs",
|
22440
22439
|
initialTab: m.id,
|
22441
22440
|
disabled: !1,
|
22442
22441
|
onChange: p,
|
22443
|
-
children: l.map((_) => /* @__PURE__ */ t.jsx(
|
22442
|
+
children: l.map((_) => /* @__PURE__ */ t.jsx(va.Radio, { value: _.id, children: _.title }, _.id))
|
22444
22443
|
}
|
22445
22444
|
) }),
|
22446
22445
|
/* @__PURE__ */ t.jsx(
|
@@ -22732,7 +22731,7 @@ const Qd = (e) => {
|
|
22732
22731
|
type: "button",
|
22733
22732
|
children: [
|
22734
22733
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
22735
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(
|
22734
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(Aa, { className: "icon-dim-16 fcv-5" }) }),
|
22736
22735
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: tL })
|
22737
22736
|
] }),
|
22738
22737
|
/* @__PURE__ */ t.jsx(Es, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
@@ -22853,7 +22852,7 @@ const Qd = (e) => {
|
|
22853
22852
|
] }), f = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Qe, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22854
22853
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Ze, { title: "No variables found", image: io }) }),
|
22855
22854
|
/* @__PURE__ */ t.jsx(su, {})
|
22856
|
-
] }) : p ? g() : /* @__PURE__ */ t.jsx(
|
22855
|
+
] }) : p ? g() : /* @__PURE__ */ t.jsx(Ca, { reload: a, className: "bg__primary pb-16" });
|
22857
22856
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22858
22857
|
E(),
|
22859
22858
|
f()
|
@@ -23015,7 +23014,7 @@ const lL = (e) => e === P_.NONE ? "" : "dc__border-n1", Tr = ({
|
|
23015
23014
|
{
|
23016
23015
|
className: `flexbox dc__gap-16 p-12 bg__primary generic-info-card br-8 ${lL(r)}`,
|
23017
23016
|
children: a ? d() : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23018
|
-
|
23017
|
+
ca(l, {
|
23019
23018
|
className: `${l.props?.className ?? ""} icon-dim-40 dc__no-shrink br-6 dc__fill-available-space`
|
23020
23019
|
}),
|
23021
23020
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 flex-grow-1", children: [
|
@@ -23133,7 +23132,7 @@ const lL = (e) => e === P_.NONE ? "" : "dc__border-n1", Tr = ({
|
|
23133
23132
|
] })
|
23134
23133
|
] })
|
23135
23134
|
}
|
23136
|
-
), hL = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }),
|
23135
|
+
), hL = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), ba = ({
|
23137
23136
|
name: e,
|
23138
23137
|
open: s,
|
23139
23138
|
width: n = 600,
|
@@ -23153,9 +23152,9 @@ const lL = (e) => e === P_.NONE ? "" : "dc__border-n1", Tr = ({
|
|
23153
23152
|
children: c
|
23154
23153
|
}
|
23155
23154
|
) }) }) });
|
23156
|
-
|
23157
|
-
|
23158
|
-
|
23155
|
+
ba.Header = _L;
|
23156
|
+
ba.Body = hL;
|
23157
|
+
ba.Footer = fL;
|
23159
23158
|
const qc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
23160
23159
|
const r = Lh(), { hasSource: o, hasTarget: i } = J(
|
23161
23160
|
() => ({
|
@@ -23227,7 +23226,7 @@ const qc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23227
23226
|
iconNode: 36,
|
23228
23227
|
textNode: 36,
|
23229
23228
|
dropdownNode: 36
|
23230
|
-
}, ni = 16,
|
23229
|
+
}, ni = 16, lr = 20, TL = 50, U_ = 12, nu = { x: 16, y: 20, zoom: 1 }, au = (e) => e.map((s) => ({
|
23231
23230
|
...s,
|
23232
23231
|
type: "step",
|
23233
23232
|
markerEnd: {
|
@@ -23287,9 +23286,9 @@ const qc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23287
23286
|
if (r.current && u.length) {
|
23288
23287
|
const f = r.current.getNodesBounds(u);
|
23289
23288
|
return [
|
23290
|
-
[f.x - ni, f.y -
|
23289
|
+
[f.x - ni, f.y - lr],
|
23291
23290
|
// minX, minY
|
23292
|
-
[f.x + f.width + ni, f.y + f.height +
|
23291
|
+
[f.x + f.width + ni, f.y + f.height + lr]
|
23293
23292
|
// maxX, maxY
|
23294
23293
|
];
|
23295
23294
|
}
|
@@ -23297,7 +23296,7 @@ const qc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23297
23296
|
[-1 / 0, -1 / 0],
|
23298
23297
|
[1 / 0, 1 / 0]
|
23299
23298
|
];
|
23300
|
-
}, [r.current, u]), _ = J(() => r.current && u.length ? r.current.getNodesBounds(u).height +
|
23299
|
+
}, [r.current, u]), _ = J(() => r.current && u.length ? r.current.getNodesBounds(u).height + lr * 2 : 0, [r.current, u]);
|
23301
23300
|
M(() => {
|
23302
23301
|
if (!o.current || !r.current) return () => {
|
23303
23302
|
};
|
@@ -23323,7 +23322,7 @@ const qc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23323
23322
|
a((N) => Uh(f, au(N)).map(({ type: C, ...S }) => S));
|
23324
23323
|
}, E = (f) => {
|
23325
23324
|
const N = r.current.getNodesBounds(u), C = f;
|
23326
|
-
C.x = Math.min(f.x, nu.x), C.y = Math.abs(N.y -
|
23325
|
+
C.x = Math.min(f.x, nu.x), C.y = Math.abs(N.y - lr), c(C);
|
23327
23326
|
}, g = async (f) => {
|
23328
23327
|
r.current = f, await f.setViewport(nu);
|
23329
23328
|
};
|
@@ -23378,7 +23377,7 @@ const IL = [
|
|
23378
23377
|
label: "View documentation",
|
23379
23378
|
startIcon: { name: "ic-book-open" },
|
23380
23379
|
componentType: "anchor",
|
23381
|
-
href:
|
23380
|
+
href: Oa
|
23382
23381
|
},
|
23383
23382
|
{
|
23384
23383
|
id: Ct.DEVTRON_GPT,
|
@@ -23551,7 +23550,7 @@ const wL = async (e, s) => {
|
|
23551
23550
|
E && !y.metaKey && (y.preventDefault(), p((v) => ({
|
23552
23551
|
...v,
|
23553
23552
|
state: po.DOCUMENTATION,
|
23554
|
-
docLink:
|
23553
|
+
docLink: Oa,
|
23555
23554
|
reinitialize: !0
|
23556
23555
|
})));
|
23557
23556
|
}, T = (A, y) => {
|
@@ -23643,7 +23642,7 @@ const wL = async (e, s) => {
|
|
23643
23642
|
category: "PRIMARY_HEADER",
|
23644
23643
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
23645
23644
|
});
|
23646
|
-
}, []), i = Ve(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(
|
23645
|
+
}, []), i = Ve(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(ka, { close: i, children: /* @__PURE__ */ t.jsxs(
|
23647
23646
|
"div",
|
23648
23647
|
{
|
23649
23648
|
className: "modal-body--ci-material h-100 dc__overflow-hidden dc__border-left flex column dc__content-space w-100",
|
@@ -23840,7 +23839,7 @@ const wL = async (e, s) => {
|
|
23840
23839
|
!window._env_.K8S_CLIENT && /* @__PURE__ */ t.jsx(
|
23841
23840
|
vc,
|
23842
23841
|
{
|
23843
|
-
theme:
|
23842
|
+
theme: ya.black,
|
23844
23843
|
className: "w-250",
|
23845
23844
|
placement: "bottom",
|
23846
23845
|
visible: E,
|
@@ -24051,7 +24050,7 @@ const VL = (e) => [
|
|
24051
24050
|
}
|
24052
24051
|
)
|
24053
24052
|
] }),
|
24054
|
-
i && /* @__PURE__ */ t.jsx(
|
24053
|
+
i && /* @__PURE__ */ t.jsx(ka, { className: "", close: m, children: /* @__PURE__ */ t.jsxs(
|
24055
24054
|
"div",
|
24056
24055
|
{
|
24057
24056
|
className: "dc__overflow-auto br-8 dc__position-rel bg__primary custom-panel--iframe-element flexbox-col dc__content-space",
|
@@ -24239,15 +24238,15 @@ const VL = (e) => [
|
|
24239
24238
|
s && r && /* @__PURE__ */ t.jsx(Xn, { envStateText: m(), title: r })
|
24240
24239
|
] });
|
24241
24240
|
}, _ = o !== Po.CD;
|
24242
|
-
if (!e && !d && (o !== Po.CD || !s && !Object.values(
|
24241
|
+
if (!e && !d && (o !== Po.CD || !s && !Object.values(Qa).includes(n) && !i && !l?.length))
|
24243
24242
|
return null;
|
24244
24243
|
const E = () => o !== Po.CD ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
24245
24244
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
24246
24245
|
d
|
24247
24246
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
24248
24247
|
p(),
|
24249
|
-
n ===
|
24250
|
-
(n ===
|
24248
|
+
n === Qa.PROGRESSING && /* @__PURE__ */ t.jsx(Xn, { envStateText: Ps.DEPLOYING, title: a }),
|
24249
|
+
(n === Qa.DEGRADED || n === Qa.FAILED) && /* @__PURE__ */ t.jsx(Xn, { envStateText: Ps.FAILED, title: a }),
|
24251
24250
|
i && /* @__PURE__ */ t.jsx(
|
24252
24251
|
to,
|
24253
24252
|
{
|
@@ -24704,7 +24703,7 @@ const dD = ({
|
|
24704
24703
|
{
|
24705
24704
|
dataTestId: "copy-button",
|
24706
24705
|
text: "Copy link",
|
24707
|
-
startIcon: s ? /* @__PURE__ */ t.jsx(
|
24706
|
+
startIcon: s ? /* @__PURE__ */ t.jsx(Ra, {}) : /* @__PURE__ */ t.jsx(hm, {}),
|
24708
24707
|
style: oe.neutral,
|
24709
24708
|
variant: z.borderLess,
|
24710
24709
|
onClick: r
|
@@ -24756,7 +24755,7 @@ const dD = ({
|
|
24756
24755
|
const [r, o] = j(!1), [i, c] = j(""), [l, d] = j(!1), [u, m] = j(""), p = () => {
|
24757
24756
|
wT(Dm.GET_LICENSE_CLICKED, !0);
|
24758
24757
|
const g = G_(e);
|
24759
|
-
|
24758
|
+
xa(g)(), o(!0);
|
24760
24759
|
}, _ = () => {
|
24761
24760
|
o(!1);
|
24762
24761
|
}, h = (g) => {
|
@@ -24881,10 +24880,10 @@ const dD = ({
|
|
24881
24880
|
{
|
24882
24881
|
dataTestId: "mail-support",
|
24883
24882
|
startIcon: /* @__PURE__ */ t.jsx(G, { name: "ic-email", color: null }),
|
24884
|
-
text:
|
24883
|
+
text: tr,
|
24885
24884
|
variant: z.text,
|
24886
24885
|
component: ct.anchor,
|
24887
|
-
anchorProps: { href: `mailto:${
|
24886
|
+
anchorProps: { href: `mailto:${tr}` }
|
24888
24887
|
}
|
24889
24888
|
) }),
|
24890
24889
|
/* @__PURE__ */ t.jsx(uu, {})
|
@@ -24898,7 +24897,7 @@ const dD = ({
|
|
24898
24897
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__content-space", children: [
|
24899
24898
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
24900
24899
|
"To renew your license mail us at ",
|
24901
|
-
/* @__PURE__ */ t.jsx("a", { href: `mailto:${
|
24900
|
+
/* @__PURE__ */ t.jsx("a", { href: `mailto:${tr}`, children: tr }),
|
24902
24901
|
" or contact your Devtron representative."
|
24903
24902
|
] }),
|
24904
24903
|
/* @__PURE__ */ t.jsx(
|
@@ -24925,7 +24924,7 @@ const dD = ({
|
|
24925
24924
|
handleCopySuccess: d,
|
24926
24925
|
licenseStatusError: u
|
24927
24926
|
}) => {
|
24928
|
-
const { bgColor: m, textColor: p } = dD({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = G1(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, x = l === Ue.dark, E = V(null), g =
|
24927
|
+
const { bgColor: m, textColor: p } = dD({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = G1(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, x = l === Ue.dark, E = V(null), g = da(window.innerWidth), f = da(window.innerHeight), N = Ls(f, (b) => {
|
24929
24928
|
if (!E.current) return 0;
|
24930
24929
|
const A = E.current.getBoundingClientRect();
|
24931
24930
|
return -(b - A.top - A.height / 2) / du;
|
@@ -24936,7 +24935,7 @@ const dD = ({
|
|
24936
24935
|
});
|
24937
24936
|
M(() => {
|
24938
24937
|
const b = (A) => {
|
24939
|
-
|
24938
|
+
la(g, A.clientX), la(f, A.clientY);
|
24940
24939
|
};
|
24941
24940
|
return window.addEventListener("mousemove", b), () => {
|
24942
24941
|
window.removeEventListener("mousemove", b);
|
@@ -25282,7 +25281,7 @@ const dD = ({
|
|
25282
25281
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 dc__align-start", children: [
|
25283
25282
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-20 cn-9", children: "📙 Need help?" }),
|
25284
25283
|
/* @__PURE__ */ t.jsx(
|
25285
|
-
|
25284
|
+
Pa,
|
25286
25285
|
{
|
25287
25286
|
docLinkKey: r,
|
25288
25287
|
text: "View documentation",
|
@@ -25607,7 +25606,7 @@ const yD = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25607
25606
|
const { appId: p } = kt(), [_, h] = j(!1), [x, E] = j(!1), g = async () => {
|
25608
25607
|
h(!0), E(!1);
|
25609
25608
|
try {
|
25610
|
-
const f = await
|
25609
|
+
const f = await Ta(
|
25611
25610
|
() => W_({
|
25612
25611
|
searchKey: o,
|
25613
25612
|
offset: s.length,
|
@@ -25706,7 +25705,7 @@ const yD = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25706
25705
|
C(se), m?.(se);
|
25707
25706
|
}, A = (se) => {
|
25708
25707
|
T(se), _?.(se);
|
25709
|
-
}, { searchKey: y, selectedTags: v } = S || {}, O = () =>
|
25708
|
+
}, { searchKey: y, selectedTags: v } = S || {}, O = () => Ta(
|
25710
25709
|
() => W_({
|
25711
25710
|
searchKey: y,
|
25712
25711
|
selectedTags: v,
|
@@ -25863,7 +25862,7 @@ const yD = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25863
25862
|
};
|
25864
25863
|
}, [e, s]), a ? rm(n, a) : null;
|
25865
25864
|
}, U6 = ({ isLoading: e, intervalTime: s = 50 }) => {
|
25866
|
-
const n =
|
25865
|
+
const n = da(0), a = cg(n, { stiffness: 50, damping: 20 }), r = Ls(a, (o) => `${o}%`);
|
25867
25866
|
return M(() => {
|
25868
25867
|
let o = null;
|
25869
25868
|
return e && (o = setInterval(() => {
|
@@ -26125,7 +26124,7 @@ const yD = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26125
26124
|
)) })
|
26126
26125
|
}
|
26127
26126
|
);
|
26128
|
-
}, FD = 350, K_ = !!(Storage && localStorage), vr = "generic-table-configurable-columns", Ar = "bulk-action-gutter", z_ = new EventTarget(), _u = "table-drag-selector",
|
26127
|
+
}, FD = 350, K_ = !!(Storage && localStorage), vr = "generic-table-configurable-columns", Ar = "bulk-action-gutter", z_ = new EventTarget(), _u = "table-drag-selector", dr = [1, 2, 3], BD = new Error("Neither rows nor getRows function provided"), fu = {
|
26129
26128
|
100: "Continue",
|
26130
26129
|
101: "Switching Protocols",
|
26131
26130
|
102: "Processing(WebDAV)",
|
@@ -26205,7 +26204,7 @@ const yD = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26205
26204
|
o.errors && (r.errors = o.errors);
|
26206
26205
|
}
|
26207
26206
|
throw r.errors = r.errors.length > 0 ? r.errors : [{ code: n, internalMessage: a, userMessage: a }], r;
|
26208
|
-
},
|
26207
|
+
}, Ta = (e, s) => (s.current.abort(), s.current = new AbortController(), e()), Pt = (e) => (
|
26209
26208
|
// The 0 code is common for aborted and blocked requests
|
26210
26209
|
e && e.code === 0 && e.message.search("abort|aborted") > -1
|
26211
26210
|
), GD = () => {
|
@@ -26494,7 +26493,7 @@ const ZD = ({
|
|
26494
26493
|
}
|
26495
26494
|
);
|
26496
26495
|
};
|
26497
|
-
var Ir = /* @__PURE__ */ ((e) => (e.ENTER_PRESSED = "enter-pressed", e.DELETE_PRESSED = "delete-pressed", e.ESCAPE_PRESSED = "escape-pressed", e.OPEN_CONTEXT_MENU = "open-context-menu", e.ROW_CLICKED = "row-clicked", e))(Ir || {}), Qr = /* @__PURE__ */ ((e) => (e.STATE = "state", e.URL = "url", e.NONE = "none", e))(Qr || {}),
|
26496
|
+
var Ir = /* @__PURE__ */ ((e) => (e.ENTER_PRESSED = "enter-pressed", e.DELETE_PRESSED = "delete-pressed", e.ESCAPE_PRESSED = "escape-pressed", e.OPEN_CONTEXT_MENU = "open-context-menu", e.ROW_CLICKED = "row-clicked", e))(Ir || {}), Qr = /* @__PURE__ */ ((e) => (e.STATE = "state", e.URL = "url", e.NONE = "none", e))(Qr || {}), ra = /* @__PURE__ */ ((e) => (e.PAGINATED = "paginated", e.INFINITE = "infinite", e.NOT_PAGINATED = "not-paginated", e))(ra || {});
|
26498
26497
|
const QD = ({
|
26499
26498
|
bulkSelectionConfig: e,
|
26500
26499
|
handleToggleBulkSelectionOnRow: s,
|
@@ -26738,8 +26737,8 @@ const QD = ({
|
|
26738
26737
|
}, []);
|
26739
26738
|
const se = H && s ? s.length : xe?.() ?? 0, ue = J(() => {
|
26740
26739
|
const _e = h ?? [];
|
26741
|
-
return m !==
|
26742
|
-
}, [m, B, L, h]), Ce = !!E, ie = m ===
|
26740
|
+
return m !== ra.PAGINATED || m === ra.PAGINATED && E ? _e : _e.slice(B, B + L);
|
26741
|
+
}, [m, B, L, h]), Ce = !!E, ie = m === ra.PAGINATED && (Ce || h?.length > (_?.[0]?.value ?? rn)), { activeRowIndex: q, setActiveRowIndex: Ne, shortcutContainerProps: Te } = QD(
|
26743
26742
|
{ bulkSelectionConfig: c, bulkSelectionReturnValue: l, handleToggleBulkSelectionOnRow: u },
|
26744
26743
|
ue,
|
26745
26744
|
ie,
|
@@ -26758,17 +26757,17 @@ const QD = ({
|
|
26758
26757
|
_e && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && _e.dataset.active === "true" && (_e.focus({ preventScroll: !0 }), a1(_e, f.current, S.current?.offsetHeight), _e.dataset.active = "false");
|
26759
26758
|
}, lt = () => {
|
26760
26759
|
I(null);
|
26761
|
-
}, ft = () => H && s ? h : Object.values(ge), ht = () => i ?
|
26760
|
+
}, ft = () => H && s ? h : Object.values(ge), ht = () => i ? dr.map((_e) => /* @__PURE__ */ t.jsxs(
|
26762
26761
|
"div",
|
26763
26762
|
{
|
26764
26763
|
className: `px-20 flexbox py-12 dc__gap-16 ${D ? "border__secondary--bottom" : ""}`,
|
26765
26764
|
children: [
|
26766
26765
|
le ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
26767
|
-
|
26766
|
+
dr.map((F) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, F))
|
26768
26767
|
]
|
26769
26768
|
},
|
26770
26769
|
_e
|
26771
|
-
)) : x ?
|
26770
|
+
)) : x ? dr.map((_e) => /* @__PURE__ */ t.jsx(
|
26772
26771
|
"div",
|
26773
26772
|
{
|
26774
26773
|
className: "dc__grid px-20 border__secondary--bottom dc__gap-16",
|
@@ -26797,12 +26796,12 @@ const QD = ({
|
|
26797
26796
|
tabIndex: -1,
|
26798
26797
|
children: [
|
26799
26798
|
r.map(({ field: Ke, horizontallySticky: vs, CellComponent: Vn }, Hn) => {
|
26800
|
-
const Xs = Ke === Ar, _n = vs || Xs, { className:
|
26799
|
+
const Xs = Ke === Ar, _n = vs || Xs, { className: Ha = "", left: Ya = "" } = _n ? Eu(de, Hn) : {};
|
26801
26800
|
return Xs ? /* @__PURE__ */ t.jsx(
|
26802
26801
|
"div",
|
26803
26802
|
{
|
26804
|
-
className: `flexbox dc__align-items-center ${
|
26805
|
-
style: { left:
|
26803
|
+
className: `flexbox dc__align-items-center ${Ha}`,
|
26804
|
+
style: { left: Ya },
|
26806
26805
|
children: /* @__PURE__ */ t.jsx(
|
26807
26806
|
Ss,
|
26808
26807
|
{
|
@@ -26817,8 +26816,8 @@ const QD = ({
|
|
26817
26816
|
) : /* @__PURE__ */ t.jsx(
|
26818
26817
|
"div",
|
26819
26818
|
{
|
26820
|
-
className: `${
|
26821
|
-
style: { left:
|
26819
|
+
className: `${Ha} generic-table__cell`,
|
26820
|
+
style: { left: Ya },
|
26822
26821
|
children: Vn ? /* @__PURE__ */ t.jsx(
|
26823
26822
|
Vn,
|
26824
26823
|
{
|
@@ -26863,7 +26862,7 @@ const QD = ({
|
|
26863
26862
|
className: "bg__primary dc__min-width-fit-content px-20 border__secondary--bottom dc__position-sticky dc__zi-2 dc__top-0 generic-table__header",
|
26864
26863
|
children: i ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-12 dc__gap-16", children: [
|
26865
26864
|
le ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
26866
|
-
|
26865
|
+
dr.map((_e) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, _e))
|
26867
26866
|
] }) : /* @__PURE__ */ t.jsx(
|
26868
26867
|
"div",
|
26869
26868
|
{
|
@@ -27045,7 +27044,7 @@ const QD = ({
|
|
27045
27044
|
[b, I, R, n, JSON.stringify(L), p],
|
27046
27045
|
!!n
|
27047
27046
|
), [be, de, se, ue] = At(
|
27048
|
-
() =>
|
27047
|
+
() => Ta(async () => {
|
27049
27048
|
let Z = 0;
|
27050
27049
|
const { rows: ae, totalRows: Ie } = await a(s, B);
|
27051
27050
|
return Z = Ie, { filteredRows: ae, totalRows: Z };
|
@@ -27055,7 +27054,7 @@ const QD = ({
|
|
27055
27054
|
{ resetOnChange: !1 }
|
27056
27055
|
), Ce = be || !!Pt(se), ie = !Pt(se) && !Ce ? se : null, q = a ? Ce : ge, Ne = a ? de : H, Te = a ? ie : ce, et = a ? ue : xe, { filteredRows: Le, totalRows: lt } = Ne ?? { filteredRows: [], totalRows: 0 }, ft = q || Te === BD, ht = J(() => {
|
27057
27056
|
const Z = Le ?? [];
|
27058
|
-
return N !==
|
27057
|
+
return N !== ra.PAGINATED ? Z : Z.slice(v, v + y);
|
27059
27058
|
}, [N, v, y, Le]);
|
27060
27059
|
M(() => {
|
27061
27060
|
Q?.(
|
@@ -27287,7 +27286,7 @@ const QD = ({
|
|
27287
27286
|
"data-index": _.id,
|
27288
27287
|
type: "button",
|
27289
27288
|
disabled: x,
|
27290
|
-
children: /* @__PURE__ */ t.jsx(
|
27289
|
+
children: /* @__PURE__ */ t.jsx(na, { className: `icon-dim-20 ${h ? "scn-0" : ""}` })
|
27291
27290
|
}
|
27292
27291
|
) });
|
27293
27292
|
}, u = () => {
|
@@ -27840,8 +27839,8 @@ const QD = ({
|
|
27840
27839
|
className: "w-8 h-20 bcn-9 ml-2 dc__inline-block br-2"
|
27841
27840
|
}
|
27842
27841
|
), K6 = (e) => {
|
27843
|
-
const s =
|
27844
|
-
return M(() =>
|
27842
|
+
const s = da(0), n = Ls(s, (a) => e.slice(0, Math.floor(a)));
|
27843
|
+
return M(() => la(s, e.length, {
|
27845
27844
|
type: "tween",
|
27846
27845
|
duration: 4,
|
27847
27846
|
ease: "linear"
|
@@ -28184,7 +28183,7 @@ const QD = ({
|
|
28184
28183
|
)) })
|
28185
28184
|
] });
|
28186
28185
|
return /* @__PURE__ */ t.jsx(
|
28187
|
-
|
28186
|
+
ba,
|
28188
28187
|
{
|
28189
28188
|
name: "workflow-options-modal",
|
28190
28189
|
open: e,
|
@@ -28192,7 +28191,7 @@ const QD = ({
|
|
28192
28191
|
onEscape: _ ? he : N,
|
28193
28192
|
width: 800,
|
28194
28193
|
closeOnBackdropClick: !0,
|
28195
|
-
children: /* @__PURE__ */ t.jsx(
|
28194
|
+
children: /* @__PURE__ */ t.jsx(ba.Body, { children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col h-500", children: [
|
28196
28195
|
/* @__PURE__ */ t.jsxs("div", { className: "workflow-options-modal__header flex top dc__content-space dc__no-shrink p-24 dc__position-rel dc__overflow-hidden", children: [
|
28197
28196
|
/* @__PURE__ */ t.jsx(px, { className: "workflow-options-modal__img dc__position-abs dc__right-0" }),
|
28198
28197
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
@@ -28314,7 +28313,7 @@ function e5(e) {
|
|
28314
28313
|
"$1"
|
28315
28314
|
) || null;
|
28316
28315
|
}
|
28317
|
-
function
|
28316
|
+
function Sa(e, s = !1) {
|
28318
28317
|
let n = "";
|
28319
28318
|
try {
|
28320
28319
|
if (e && e.length && e !== Mn) {
|
@@ -28453,7 +28452,7 @@ function At(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
28453
28452
|
};
|
28454
28453
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
28455
28454
|
}
|
28456
|
-
const r5 = (e, s) => e ?
|
28455
|
+
const r5 = (e, s) => e ? Sa(e, !0) : s ? "" : "Not deployed", We = (e, s = {}) => {
|
28457
28456
|
const n = new URLSearchParams();
|
28458
28457
|
Object.keys(s).forEach((r) => {
|
28459
28458
|
ym.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -28559,7 +28558,7 @@ const r5 = (e, s) => e ? va(e, !0) : s ? "" : "Not deployed", We = (e, s = {}) =
|
|
28559
28558
|
const n = Array.isArray(e), a = Array.isArray(s);
|
28560
28559
|
return n && !a || !n && a ? !1 : !n && !a ? Object.keys(e).length === Object.keys(s).length : e.length === s.length;
|
28561
28560
|
};
|
28562
|
-
function
|
28561
|
+
function oa(e, s) {
|
28563
28562
|
return bm(e, s);
|
28564
28563
|
}
|
28565
28564
|
function U1(e, s) {
|
@@ -28670,7 +28669,7 @@ const E5 = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, C5 = (e, s = 300) => {
|
|
28670
28669
|
const r = Date.now();
|
28671
28670
|
r - n >= s && (n = r, e(...a));
|
28672
28671
|
};
|
28673
|
-
}, B1 = (e, s, n) => e === ts.WEBHOOK ? n ===
|
28672
|
+
}, B1 = (e, s, n) => e === ts.WEBHOOK ? n === fa.PULL_REQUEST ? /* @__PURE__ */ t.jsx(cc, { className: "scn-6" }) : n === fa.TAG_CREATION ? /* @__PURE__ */ t.jsx(ro, { className: "scn-6" }) : /* @__PURE__ */ t.jsx(vm, {}) : e === ts.BranchRegex || s ? /* @__PURE__ */ t.jsx(im, { className: "fcn-6" }) : /* @__PURE__ */ t.jsx(zu, { className: "fcn-6" }), rf = (e) => cn.sanitize(e, {
|
28674
28673
|
ADD_TAGS: ["iframe"],
|
28675
28674
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
28676
28675
|
}), N5 = (e, s) => {
|
@@ -29115,7 +29114,7 @@ function eP(e, {
|
|
29115
29114
|
}) {
|
29116
29115
|
let a;
|
29117
29116
|
return s ? a = `${Ni.CI_PIPELINE_PATCH}/regex` : a = n ? fo({
|
29118
|
-
type:
|
29117
|
+
type: ja.CI_PIPELINE,
|
29119
29118
|
queryParams: {
|
29120
29119
|
id: e.appId
|
29121
29120
|
}
|
@@ -29123,7 +29122,7 @@ function eP(e, {
|
|
29123
29122
|
}
|
29124
29123
|
function tP(e, s, n) {
|
29125
29124
|
const a = n ? fo({
|
29126
|
-
type:
|
29125
|
+
type: ja.WORKFLOW,
|
29127
29126
|
queryParams: { id: e, appWorkflowId: s }
|
29128
29127
|
}) : `${Ni.WORKFLOW}/${e}/${s}`;
|
29129
29128
|
return wo(a);
|
@@ -29249,7 +29248,7 @@ class L5 extends nc {
|
|
29249
29248
|
close: this.props.close,
|
29250
29249
|
onSave: this.props.onSave
|
29251
29250
|
},
|
29252
|
-
children: /* @__PURE__ */ t.jsx(
|
29251
|
+
children: /* @__PURE__ */ t.jsx(ka, { className: "", children: /* @__PURE__ */ t.jsxs("div", { className: `modal__body ${this.props.className || ""}`, children: [
|
29253
29252
|
/* @__PURE__ */ t.jsxs("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
|
29254
29253
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title", children: this.props.title }),
|
29255
29254
|
/* @__PURE__ */ t.jsxs("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
|
@@ -29519,7 +29518,7 @@ const iP = (e) => {
|
|
29519
29518
|
minEditorHeight: i = 300,
|
29520
29519
|
emptyStateConfig: c
|
29521
29520
|
}) => {
|
29522
|
-
const [l, d] = j(!1), [u, m] = j(e ? "previewSaved" : "empty"), [p, _] = j(e), h = !
|
29521
|
+
const [l, d] = j(!1), [u, m] = j(e ? "previewSaved" : "empty"), [p, _] = j(e), h = !oa(e, p), x = V(null);
|
29523
29522
|
M(() => {
|
29524
29523
|
_(e);
|
29525
29524
|
}, [e]);
|
@@ -29902,7 +29901,7 @@ const lf = ({
|
|
29902
29901
|
F.id
|
29903
29902
|
)) }),
|
29904
29903
|
I && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
29905
|
-
/* @__PURE__ */ t.jsx(
|
29904
|
+
/* @__PURE__ */ t.jsx(Ia, { className: "icon-dim-16 mr-2" }),
|
29906
29905
|
"Tags cannot be edited/removed later"
|
29907
29906
|
] }),
|
29908
29907
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -30117,7 +30116,7 @@ function _P() {
|
|
30117
30116
|
throw new Error("Radio compound components cannot be rendered outside the Toggle component");
|
30118
30117
|
return e;
|
30119
30118
|
}
|
30120
|
-
const
|
30119
|
+
const va = He.memo(
|
30121
30120
|
({ name: e, onChange: s, children: n, className: a = "", initialTab: r, disabled: o = !1 }) => {
|
30122
30121
|
const [i, c] = j(null);
|
30123
30122
|
M(() => {
|
@@ -30176,7 +30175,7 @@ const Aa = He.memo(
|
|
30176
30175
|
}
|
30177
30176
|
);
|
30178
30177
|
};
|
30179
|
-
|
30178
|
+
va.Radio = hP;
|
30180
30179
|
const gP = (e) => {
|
30181
30180
|
switch (e) {
|
30182
30181
|
case w.large:
|
@@ -30379,7 +30378,7 @@ const gP = (e) => {
|
|
30379
30378
|
}
|
30380
30379
|
);
|
30381
30380
|
}, mf = He.createContext(null);
|
30382
|
-
function
|
30381
|
+
function Va() {
|
30383
30382
|
const e = He.useContext(mf);
|
30384
30383
|
if (!e)
|
30385
30384
|
throw new Error("Select compound components cannot be rendered outside the Toggle component");
|
@@ -30457,7 +30456,7 @@ const Gn = ({
|
|
30457
30456
|
name: i = "",
|
30458
30457
|
rootClassName: c = ""
|
30459
30458
|
}) => {
|
30460
|
-
const { selected: l, searchString: d, valueComparator: u, handleClick: m } =
|
30459
|
+
const { selected: l, searchString: d, valueComparator: u, handleClick: m } = Va();
|
30461
30460
|
return o = o || l === n, typeof n == "object" && (o = o || u(n)), i.includes(d) ? /* @__PURE__ */ t.jsx(
|
30462
30461
|
"div",
|
30463
30462
|
{
|
@@ -30481,7 +30480,7 @@ const Gn = ({
|
|
30481
30480
|
arrowAsset: r = "",
|
30482
30481
|
hideArrow: o = !1
|
30483
30482
|
}) => {
|
30484
|
-
const { popupOpen: i, loading: c } =
|
30483
|
+
const { popupOpen: i, loading: c } = Va();
|
30485
30484
|
return /* @__PURE__ */ t.jsxs(
|
30486
30485
|
"div",
|
30487
30486
|
{
|
@@ -30502,7 +30501,7 @@ const Gn = ({
|
|
30502
30501
|
}
|
30503
30502
|
);
|
30504
30503
|
}, TP = ({ placeholder: e = "search", style: s = {}, inputStyle: n = {}, rootClassName: a = "" }) => {
|
30505
|
-
const { searchString: r, search: o } =
|
30504
|
+
const { searchString: r, search: o } = Va();
|
30506
30505
|
return /* @__PURE__ */ t.jsxs(
|
30507
30506
|
"div",
|
30508
30507
|
{
|
@@ -30527,7 +30526,7 @@ const Gn = ({
|
|
30527
30526
|
}
|
30528
30527
|
);
|
30529
30528
|
}, hf = ({ api: e }) => {
|
30530
|
-
const { loading: s, setLoading: n } =
|
30529
|
+
const { loading: s, setLoading: n } = Va();
|
30531
30530
|
return M(() => {
|
30532
30531
|
async function a() {
|
30533
30532
|
n(!0);
|
@@ -30542,7 +30541,7 @@ const Gn = ({
|
|
30542
30541
|
a();
|
30543
30542
|
}, []), null;
|
30544
30543
|
}, SP = ({ rootClassName: e = "", style: s = {} }) => {
|
30545
|
-
const { handleClick: n } =
|
30544
|
+
const { handleClick: n } = Va();
|
30546
30545
|
return /* @__PURE__ */ t.jsx(
|
30547
30546
|
"div",
|
30548
30547
|
{
|
@@ -30601,7 +30600,7 @@ export {
|
|
30601
30600
|
MA as a6,
|
30602
30601
|
rH as a7,
|
30603
30602
|
kr as a8,
|
30604
|
-
|
30603
|
+
La as a9,
|
30605
30604
|
nt as aA,
|
30606
30605
|
TT as aB,
|
30607
30606
|
QG as aC,
|
@@ -30620,9 +30619,9 @@ export {
|
|
30620
30619
|
yT as aP,
|
30621
30620
|
OT as aQ,
|
30622
30621
|
aV as aR,
|
30623
|
-
|
30622
|
+
Za as aS,
|
30624
30623
|
rV as aT,
|
30625
|
-
|
30624
|
+
_a as aU,
|
30626
30625
|
Mn as aV,
|
30627
30626
|
ym as aW,
|
30628
30627
|
Gt as aX,
|
@@ -30641,7 +30640,7 @@ export {
|
|
30641
30640
|
mH as aj,
|
30642
30641
|
hT as ak,
|
30643
30642
|
wr as al,
|
30644
|
-
|
30643
|
+
Oa as am,
|
30645
30644
|
XG as an,
|
30646
30645
|
gT as ao,
|
30647
30646
|
mo as ap,
|
@@ -30678,7 +30677,7 @@ export {
|
|
30678
30677
|
P1 as bI,
|
30679
30678
|
eo as bJ,
|
30680
30679
|
e5 as bK,
|
30681
|
-
|
30680
|
+
Sa as bL,
|
30682
30681
|
t5 as bM,
|
30683
30682
|
s5 as bN,
|
30684
30683
|
n5 as bO,
|
@@ -30735,7 +30734,7 @@ export {
|
|
30735
30734
|
k5 as cA,
|
30736
30735
|
Du as cB,
|
30737
30736
|
Mw as cC,
|
30738
|
-
|
30737
|
+
ka as cD,
|
30739
30738
|
dP as cE,
|
30740
30739
|
TH as cF,
|
30741
30740
|
SH as cG,
|
@@ -30754,7 +30753,7 @@ export {
|
|
30754
30753
|
Qe as cT,
|
30755
30754
|
LV as cU,
|
30756
30755
|
uf as cV,
|
30757
|
-
|
30756
|
+
ga as cW,
|
30758
30757
|
bP as cX,
|
30759
30758
|
jT as cY,
|
30760
30759
|
Vt as cZ,
|
@@ -30785,11 +30784,11 @@ export {
|
|
30785
30784
|
Lc as cx,
|
30786
30785
|
lf as cy,
|
30787
30786
|
to as cz,
|
30788
|
-
|
30787
|
+
oa as d,
|
30789
30788
|
e4 as d$,
|
30790
30789
|
vc as d0,
|
30791
30790
|
DV as d1,
|
30792
|
-
|
30791
|
+
ya as d2,
|
30793
30792
|
St as d3,
|
30794
30793
|
Ks as d4,
|
30795
30794
|
Zn as d5,
|
@@ -30804,7 +30803,7 @@ export {
|
|
30804
30803
|
MS as dE,
|
30805
30804
|
Ec as dF,
|
30806
30805
|
kS as dG,
|
30807
|
-
|
30806
|
+
ja as dH,
|
30808
30807
|
Zm as dI,
|
30809
30808
|
VS as dJ,
|
30810
30809
|
HV as dK,
|
@@ -30824,7 +30823,7 @@ export {
|
|
30824
30823
|
KS as dY,
|
30825
30824
|
zS as dZ,
|
30826
30825
|
QV as d_,
|
30827
|
-
|
30826
|
+
aa as da,
|
30828
30827
|
cT as db,
|
30829
30828
|
lT as dc,
|
30830
30829
|
pi as dd,
|
@@ -30835,7 +30834,7 @@ export {
|
|
30835
30834
|
mT as di,
|
30836
30835
|
Tn as dj,
|
30837
30836
|
Ms as dk,
|
30838
|
-
|
30837
|
+
pa as dl,
|
30839
30838
|
_i as dm,
|
30840
30839
|
pT as dn,
|
30841
30840
|
VV as dp,
|
@@ -30870,7 +30869,7 @@ export {
|
|
30870
30869
|
Us as eG,
|
30871
30870
|
tp as eH,
|
30872
30871
|
Pr as eI,
|
30873
|
-
|
30872
|
+
ha as eJ,
|
30874
30873
|
Si as eK,
|
30875
30874
|
vi as eL,
|
30876
30875
|
Rt as eM,
|
@@ -30886,7 +30885,7 @@ export {
|
|
30886
30885
|
S4 as eW,
|
30887
30886
|
v4 as eX,
|
30888
30887
|
A4 as eY,
|
30889
|
-
|
30888
|
+
ta as eZ,
|
30890
30889
|
Vv as e_,
|
30891
30890
|
ho as ea,
|
30892
30891
|
it as eb,
|
@@ -30907,7 +30906,7 @@ export {
|
|
30907
30906
|
t0 as eq,
|
30908
30907
|
s0 as er,
|
30909
30908
|
n0 as es,
|
30910
|
-
|
30909
|
+
wa as et,
|
30911
30910
|
ap as eu,
|
30912
30911
|
at as ev,
|
30913
30912
|
a4 as ew,
|
@@ -30971,7 +30970,7 @@ export {
|
|
30971
30970
|
tA as fp,
|
30972
30971
|
sA as fq,
|
30973
30972
|
Qn as fr,
|
30974
|
-
|
30973
|
+
ur as fs,
|
30975
30974
|
wT as ft,
|
30976
30975
|
hi as fu,
|
30977
30976
|
Dm as fv,
|
@@ -31034,7 +31033,7 @@ export {
|
|
31034
31033
|
wR as gn,
|
31035
31034
|
LR as go,
|
31036
31035
|
DR as gp,
|
31037
|
-
|
31036
|
+
Ea as gq,
|
31038
31037
|
UR as gr,
|
31039
31038
|
OH as gs,
|
31040
31039
|
xO as gt,
|
@@ -31046,7 +31045,7 @@ export {
|
|
31046
31045
|
OI as gz,
|
31047
31046
|
I5 as h,
|
31048
31047
|
ER as h$,
|
31049
|
-
|
31048
|
+
Na as h0,
|
31050
31049
|
qr as h1,
|
31051
31050
|
sw as h2,
|
31052
31051
|
aw as h3,
|
@@ -31067,8 +31066,8 @@ export {
|
|
31067
31066
|
Iy as hI,
|
31068
31067
|
wy as hJ,
|
31069
31068
|
Qp as hK,
|
31070
|
-
|
31071
|
-
|
31069
|
+
sa as hL,
|
31070
|
+
ir as hM,
|
31072
31071
|
e_ as hN,
|
31073
31072
|
Er as hO,
|
31074
31073
|
Ht as hP,
|
@@ -31116,7 +31115,7 @@ export {
|
|
31116
31115
|
Pi as i2,
|
31117
31116
|
o_ as i3,
|
31118
31117
|
G0 as i4,
|
31119
|
-
|
31118
|
+
Pa as i5,
|
31120
31119
|
V0 as i6,
|
31121
31120
|
w_ as i7,
|
31122
31121
|
tt as i8,
|
@@ -31164,7 +31163,7 @@ export {
|
|
31164
31163
|
dL as ip,
|
31165
31164
|
P_ as iq,
|
31166
31165
|
x6 as ir,
|
31167
|
-
|
31166
|
+
ba as is,
|
31168
31167
|
kn as it,
|
31169
31168
|
a_ as iu,
|
31170
31169
|
Qy as iv,
|
@@ -31263,7 +31262,7 @@ export {
|
|
31263
31262
|
pV as kL,
|
31264
31263
|
st as kM,
|
31265
31264
|
Ut as kN,
|
31266
|
-
|
31265
|
+
er as kO,
|
31267
31266
|
re as kP,
|
31268
31267
|
_V as kQ,
|
31269
31268
|
ZT as kR,
|
@@ -31280,7 +31279,7 @@ export {
|
|
31280
31279
|
m_ as kb,
|
31281
31280
|
V6 as kc,
|
31282
31281
|
Qr as kd,
|
31283
|
-
|
31282
|
+
ra as ke,
|
31284
31283
|
Ir as kf,
|
31285
31284
|
Cu as kg,
|
31286
31285
|
H6 as kh,
|
@@ -31299,7 +31298,7 @@ export {
|
|
31299
31298
|
X6 as ku,
|
31300
31299
|
J6 as kv,
|
31301
31300
|
Z6 as kw,
|
31302
|
-
|
31301
|
+
Qa as kx,
|
31303
31302
|
Po as ky,
|
31304
31303
|
uV as kz,
|
31305
31304
|
zT as l,
|
@@ -31337,7 +31336,7 @@ export {
|
|
31337
31336
|
bp as lU,
|
31338
31337
|
Z4 as lV,
|
31339
31338
|
Rc as lW,
|
31340
|
-
|
31339
|
+
xa as lX,
|
31341
31340
|
Q4 as lY,
|
31342
31341
|
uA as lZ,
|
31343
31342
|
mA as l_,
|
@@ -31353,7 +31352,7 @@ export {
|
|
31353
31352
|
TV as lj,
|
31354
31353
|
Ci as lk,
|
31355
31354
|
Ni as ll,
|
31356
|
-
|
31355
|
+
tr as lm,
|
31357
31356
|
uS as ln,
|
31358
31357
|
en as lo,
|
31359
31358
|
mS as lp,
|
@@ -31390,7 +31389,7 @@ export {
|
|
31390
31389
|
SS as mI,
|
31391
31390
|
vS as mJ,
|
31392
31391
|
AS as mK,
|
31393
|
-
|
31392
|
+
ea as mL,
|
31394
31393
|
IS as mM,
|
31395
31394
|
Be as mN,
|
31396
31395
|
es as mO,
|
@@ -31422,7 +31421,7 @@ export {
|
|
31422
31421
|
Lp as mn,
|
31423
31422
|
xI as mo,
|
31424
31423
|
Ur as mp,
|
31425
|
-
|
31424
|
+
Da as mq,
|
31426
31425
|
Hm as mr,
|
31427
31426
|
IV as ms,
|
31428
31427
|
RV as mt,
|
@@ -31432,7 +31431,7 @@ export {
|
|
31432
31431
|
hc as mx,
|
31433
31432
|
Ue as my,
|
31434
31433
|
un as mz,
|
31435
|
-
|
31434
|
+
va as n,
|
31436
31435
|
$l as n$,
|
31437
31436
|
DS as n0,
|
31438
31437
|
kc as n1,
|
@@ -31481,7 +31480,7 @@ export {
|
|
31481
31480
|
rt as nh,
|
31482
31481
|
_c as ni,
|
31483
31482
|
MT as nj,
|
31484
|
-
|
31483
|
+
fa as nk,
|
31485
31484
|
Xt as nl,
|
31486
31485
|
kT as nm,
|
31487
31486
|
UT as nn,
|
@@ -31500,7 +31499,7 @@ export {
|
|
31500
31499
|
ki as o,
|
31501
31500
|
E4 as o0,
|
31502
31501
|
C4 as o1,
|
31503
|
-
|
31502
|
+
Ca as p,
|
31504
31503
|
Gn as q,
|
31505
31504
|
qG as r,
|
31506
31505
|
Nt as s,
|
@@ -31510,5 +31509,5 @@ export {
|
|
31510
31509
|
Ee as w,
|
31511
31510
|
wo as x,
|
31512
31511
|
el as y,
|
31513
|
-
|
31512
|
+
Ta as z
|
31514
31513
|
};
|