@devtron-labs/devtron-fe-common-lib 1.18.1-pre-2 → 1.18.1-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 Pc = (e) => {
|
|
4
4
|
};
|
5
5
|
var Q_ = (e, s, n) => s in e ? Z_(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var pe = (e, s, n) => Q_(e, typeof s != "symbol" ? s + "" : s, n), Mc = (e, s, n) => s.has(e) || Pc("Cannot " + n);
|
7
|
-
var Ws = (e, s, n) => (Mc(e, s, "read from private field"), n ? n.call(e) : s.get(e)),
|
8
|
-
import { j as t, i as Ie, Q as go, k as ef, F as tf, n as sf, D as
|
9
|
-
import Be, { createContext as Ut, useContext as is, useMemo as X, useState as w, useEffect as M, forwardRef as Ur, createElement as Mi, Children as Ho, useRef as $, useCallback as Fe, useLayoutEffect as ki, createRef as
|
7
|
+
var Ws = (e, s, n) => (Mc(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Pa = (e, s, n) => s.has(e) ? Pc("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Ma = (e, s, n, a) => (Mc(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
+
import { j as t, i as Ie, Q as go, k as ef, F as tf, n as sf, D as cr, t as Ke, g as nf, a as af, E as Xn, S as Di, b as mu, r as pu, s as rf, o as of, c as kc, d as cf, e as lf, y as df, l as lr, f as uf, h as mf, m as Uc, p as $c, q as pf, u as _f, v as ff, w as hf, x as gf, z as xf, A as Ef, B as _u, T as Fc, C as Pi, G as Cf, H as Bc, I as Nf, J as bf, K as fu, L as Vc, M as Tf, N as Sf, O as vf, P as If, R as Gc, V as Af, U as Rf, W as yf, X as Hc, Y as jf, Z as Yc, _ as Wc, $ as Of, a0 as wf, a1 as Lf, a2 as Df, a3 as Pf, a4 as Mf, a5 as kf, a6 as xo, a7 as Uf, a8 as $f, a9 as Ff, aa as Bf, ab as Vf, ac as hu, ad as Gf, ae as Hf, af as Yf, ag as Wf, ah as Kf, ai as Kc, aj as zc, ak as zf, al as qf, am as Xf, an as Jf, ao as Zf, ap as Qf, aq as eh, ar as th, as as gu, at as xu, au as sh, av as nh, aw as ah, ax as rh, ay as oh, az as ih, aA as ch, aB as lh, aC as dh, aD as uh, aE as mh, aF as zs } from "./@vendor-3ORIJA0h.js";
|
9
|
+
import Be, { createContext as Ut, useContext as is, useMemo as X, useState as w, useEffect as M, forwardRef as Ur, createElement as Mi, Children as Ho, useRef as $, useCallback as Fe, useLayoutEffect as ki, createRef as dr, cloneElement as Jn, Fragment as gs, memo as It, Component as Ui } from "react";
|
10
10
|
import { ReactComponent as ph } from "./assets/ic-info-filled-override.99e8094a.svg";
|
11
11
|
import * as _h from "yaml";
|
12
12
|
import Zt, { parse as fh, YAMLParseError as hh } from "yaml";
|
@@ -35,7 +35,7 @@ import { ReactComponent as Su } from "./assets/ic-branch.8db43d66.svg";
|
|
35
35
|
import { ReactComponent as vu } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
36
36
|
import Rh, { ReactComponent as Iu } from "./assets/ic-mechanical-operation.04a318d6.svg";
|
37
37
|
import Au from "./assets/app-not-deployed.622dc6ba.svg";
|
38
|
-
import { BehaviorSubject as Vr, noop as
|
38
|
+
import { BehaviorSubject as Vr, noop as ka } from "rxjs";
|
39
39
|
import yh, { ReactComponent as Es } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
40
40
|
import { ReactComponent as jh } from "./assets/ic-exit-fullscreen.1ae582d1.svg";
|
41
41
|
import { ReactComponent as Oh } from "./assets/ic-fullscreen.b05e5087.svg";
|
@@ -44,8 +44,8 @@ import { ReactComponent as Cs } from "./assets/ic-caret-down.1666c029.svg";
|
|
44
44
|
import { ReactComponent as wh } from "./assets/ic-collapse-all.56740920.svg";
|
45
45
|
import { ReactComponent as Lh } from "./assets/ic-expand-all.d1d223f2.svg";
|
46
46
|
import { ReactComponent as Ru } from "./assets/ic-arrow-out.6aea09d0.svg";
|
47
|
-
import { ReactComponent as
|
48
|
-
import { ReactComponent as
|
47
|
+
import { ReactComponent as fa } from "./assets/ic-help.39c58c34.svg";
|
48
|
+
import { ReactComponent as ha } from "./assets/ic-info-filled.f870ac11.svg";
|
49
49
|
import { ReactComponent as Bi } from "./assets/ic-stack.a6a11fe3.svg";
|
50
50
|
import { ReactComponent as yu } from "./assets/ic-aborted.d400d0e8.svg";
|
51
51
|
import { ReactComponent as Dh } from "./assets/ic-arrow-right.eda141d3.svg";
|
@@ -63,7 +63,7 @@ import { ReactComponent as cs } from "./assets/ic-close.43adc42a.svg";
|
|
63
63
|
import { ReactComponent as Ou } from "./assets/ic-error.9d61b25b.svg";
|
64
64
|
import { ReactComponent as ta } from "./assets/ic-info-outlined.f4fa3224.svg";
|
65
65
|
import { ReactComponent as Ko } from "./assets/ic-expand.ab992205.svg";
|
66
|
-
import { ReactComponent as
|
66
|
+
import { ReactComponent as ga } from "./assets/ic-check.27c51fa1.svg";
|
67
67
|
import { ReactComponent as Vh } from "./assets/ic-check-circle-dots.296c8a3b.svg";
|
68
68
|
import { ReactComponent as Gh } from "./assets/ic-edit-file.aea811d8.svg";
|
69
69
|
import Gr from "./assets/no-artifact.fd2d84d9.webp";
|
@@ -101,7 +101,7 @@ import { ReactComponent as Kn } from "./assets/inject-tag.28e72db6.svg";
|
|
101
101
|
import { ReactComponent as Yr } from "./assets/ic-pencil.c75a6acc.svg";
|
102
102
|
import { ReactComponent as $u } from "./assets/ic-filter.8f403d6f.svg";
|
103
103
|
import { ReactComponent as Fu } from "./assets/ic-filter-applied.9fc48d0f.svg";
|
104
|
-
import { ReactComponent as
|
104
|
+
import { ReactComponent as ur } from "./assets/ic-search.976327f1.svg";
|
105
105
|
import { ReactComponent as Wi } from "./assets/ic-error-cross.bf21e563.svg";
|
106
106
|
import { ReactComponent as cg } from "./assets/ic-appstatus-cancelled.05bb3352.svg";
|
107
107
|
import { ReactComponent as lg } from "./assets/ic-error-medium.ea542259.svg";
|
@@ -382,7 +382,7 @@ import { ReactComponent as ZN } from "./assets/ic-medium-clean-brush.f683d4d6.sv
|
|
382
382
|
import { ReactComponent as QN } from "./assets/ic-medium-pause.7449078a.svg";
|
383
383
|
import { ReactComponent as eb } from "./assets/ic-medium-play.f7a8ddb7.svg";
|
384
384
|
import { ReactComponent as tb } from "./assets/ic-locked.dab69058.svg";
|
385
|
-
var
|
385
|
+
var xa = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(xa || {}), Tt = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(Tt || {}), Hs = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(Hs || {});
|
386
386
|
const Gn = {
|
387
387
|
Security: "SECURITY",
|
388
388
|
Changes: "CHANGES"
|
@@ -455,7 +455,7 @@ const ub = ({ startNode: e }) => e.type === Ps.WEBHOOK ? hn.WEBHOOK : e.type ===
|
|
455
455
|
return;
|
456
456
|
const l = ub({ startNode: n }), d = c && e === sa.RIGHT ? Jo.PARALLEL : Jo.SEQUENTIAL, u = !c && e === sa.RIGHT ? a.id : null;
|
457
457
|
s(r, o, l, n.id, i, u, d);
|
458
|
-
}, mb = 6e4,
|
458
|
+
}, mb = 6e4, mr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", Ea = "https://docs.devtron.ai", sB = "https://devtron.ai/", pb = "/devtron/v1.7", Kr = "https://discord.devtron.ai/", _b = "https://json-schema.org/draft/2020-12/schema", nB = "https://license.devtron.ai/dashboard", fb = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert", Gt = {
|
459
459
|
STRING: /^[a-zA-Z0-9_]+$/,
|
460
460
|
DECIMAL_NUMBERS: /^-?\d*\.?\d*$/,
|
461
461
|
POSITIVE_DECIMAL_NUMBERS: /^\d*\.?\d*$/,
|
@@ -653,14 +653,14 @@ function dB(e) {
|
|
653
653
|
return `${e}th`;
|
654
654
|
}
|
655
655
|
}
|
656
|
-
const
|
656
|
+
const Ua = {
|
657
657
|
AM: "AM",
|
658
658
|
PM: "PM",
|
659
659
|
MIDNIGHT: "midnight",
|
660
660
|
NOON: "noon"
|
661
661
|
}, uB = (e) => {
|
662
662
|
const [s, n] = e.split(":"), a = parseInt(s, 10), r = parseInt(n, 10);
|
663
|
-
return a === 12 && r === 0 ?
|
663
|
+
return a === 12 && r === 0 ? Ua.NOON : a === 0 && r === 0 ? Ua.MIDNIGHT : a >= 12 ? Ua.PM : Ua.AM;
|
664
664
|
};
|
665
665
|
var na = /* @__PURE__ */ ((e) => (e.inputChange = "input-change", e.selectOption = "select-option", e.deselectOption = "deselect-option", e.removeValue = "remove-value", e.inputBlur = "input-blur", e))(na || {});
|
666
666
|
const In = "0001-01-01T00:00:00Z", tm = [void 0, null, "", NaN], Ft = {
|
@@ -704,7 +704,7 @@ const Zo = {
|
|
704
704
|
medium: 3,
|
705
705
|
low: 4,
|
706
706
|
unknown: 5
|
707
|
-
},
|
707
|
+
}, pr = window.navigator.userAgent.toUpperCase().includes("MAC");
|
708
708
|
var Nt = /* @__PURE__ */ ((e) => (e.GITHUB = "github", e.GITLAB = "gitlab", e.BITBUCKET = "bitbucket", e.AZURE = "azure", e.GITEA = "gitea", e.GIT = "git", e))(Nt || {});
|
709
709
|
const _B = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2), rm = Symbol(
|
710
710
|
`The element at this index remains unchanged from the original object.
|
@@ -741,7 +741,7 @@ const Ib = async (e, s) => {
|
|
741
741
|
action: s
|
742
742
|
});
|
743
743
|
};
|
744
|
-
var om = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(om || {}), Ki = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(Ki || {}), Ab = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(Ab || {}), 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 || {}), gt = /* @__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))(gt || {}), Ze = /* @__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))(Ze || {}), zi = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(zi || {}), un = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(un || {}), Rb = /* @__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))(Rb || {}), yb = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(yb || {}), im = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(im || {}), ot = /* @__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))(ot || {}), qi = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(qi || {}), jb = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(jb || {}), aa = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(aa || {}), 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 || {}), Ob = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(Ob || {}), wb = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(wb || {}),
|
744
|
+
var om = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(om || {}), Ki = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(Ki || {}), Ab = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(Ab || {}), 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 || {}), gt = /* @__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))(gt || {}), Ze = /* @__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))(Ze || {}), zi = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(zi || {}), un = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(un || {}), Rb = /* @__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))(Rb || {}), yb = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(yb || {}), im = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(im || {}), ot = /* @__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))(ot || {}), qi = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(qi || {}), jb = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(jb || {}), aa = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(aa || {}), 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 || {}), Ob = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(Ob || {}), wb = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(wb || {}), qa = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(qa || {}), Lb = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))(Lb || {}), cm = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(cm || {});
|
745
745
|
const fB = [
|
746
746
|
{
|
747
747
|
label: "GUI",
|
@@ -763,11 +763,11 @@ var Ub = /* @__PURE__ */ ((e) => (e.ABOUT = "about", e.LICENSE = "license", e.UP
|
|
763
763
|
const dm = (e, s, n, a, r) => {
|
764
764
|
const o = e.lastIndex;
|
765
765
|
Promise.resolve(s[o]()).then((i) => {
|
766
|
-
e.results[o] = { status:
|
766
|
+
e.results[o] = { status: qa.FULFILLED, value: i };
|
767
767
|
}).catch((i) => {
|
768
|
-
e.results[o] = { status:
|
768
|
+
e.results[o] = { status: qa.REJECTED, reason: i };
|
769
769
|
}).finally(() => {
|
770
|
-
if (r && e.results[o].status ===
|
770
|
+
if (r && e.results[o].status === qa.REJECTED) {
|
771
771
|
a(e.results[o].reason);
|
772
772
|
return;
|
773
773
|
}
|
@@ -796,7 +796,7 @@ const dm = (e, s, n, a, r) => {
|
|
796
796
|
e,
|
797
797
|
" Devtron Inc. All rights reserved."
|
798
798
|
] });
|
799
|
-
},
|
799
|
+
}, $a = {
|
800
800
|
PROGRESSING: "Progressing",
|
801
801
|
DEGRADED: "Degraded",
|
802
802
|
FAILED: "Failed"
|
@@ -819,8 +819,8 @@ const dm = (e, s, n, a, r) => {
|
|
819
819
|
NOTIFICATION: "notifier",
|
820
820
|
SECURITY_TRIVY: "security.trivy",
|
821
821
|
SECURITY_CLAIR: "security.clair"
|
822
|
-
}, um = "ddd DD MMM YYYY HH:mm:ss",
|
823
|
-
var Yb = /* @__PURE__ */ ((e) => (e.add = "add", e.replace = "replace", e.remove = "remove", e))(Yb || {}), fs = /* @__PURE__ */ ((e) => (e.PRE = "PRE", e.DEPLOY = "DEPLOY", e.POST = "POST", e))(fs || {}),
|
822
|
+
}, um = "ddd DD MMM YYYY HH:mm:ss", _r = "API-TOKEN:", gn = "••••••••";
|
823
|
+
var Yb = /* @__PURE__ */ ((e) => (e.add = "add", e.replace = "replace", e.remove = "remove", e))(Yb || {}), fs = /* @__PURE__ */ ((e) => (e.PRE = "PRE", e.DEPLOY = "DEPLOY", e.POST = "POST", e))(fs || {}), Xa = /* @__PURE__ */ ((e) => (e.LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG", e.LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG", e.SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG", e))(Xa || {}), ei = /* @__PURE__ */ ((e) => (e.production = "Production", e.nonProduction = "Non-Production", e))(ei || {});
|
824
824
|
const ti = "No matching results", Wb = "Type 3 chars to see matching results", xB = "Type to see matching results", et = {
|
825
825
|
DATA_NOT_AVAILABLE: "Data not available",
|
826
826
|
API_TOKEN: {
|
@@ -1016,7 +1016,7 @@ const ti = "No matching results", Wb = "Type 3 chars to see matching results", x
|
|
1016
1016
|
DISPLAY_NAME: "Secret",
|
1017
1017
|
VALUE: "secret"
|
1018
1018
|
}
|
1019
|
-
},
|
1019
|
+
}, Fa = {
|
1020
1020
|
[Pt.SECRET.DISPLAY_NAME]: {
|
1021
1021
|
"": "Kubernetes Secret",
|
1022
1022
|
KubernetesSecret: "Kubernetes External Secret",
|
@@ -1172,7 +1172,7 @@ const iT = {
|
|
1172
1172
|
ROLLING: "Rolling",
|
1173
1173
|
ROLLINGUPDATE: "Rolling Update",
|
1174
1174
|
ONDELETE: "On Delete"
|
1175
|
-
}, uT = [0.33, 1, 0.68, 1],
|
1175
|
+
}, uT = [0.33, 1, 0.68, 1], ra = "allow-action-outside-focus-trap", hm = Ut(null), jB = () => {
|
1176
1176
|
const e = is(hm);
|
1177
1177
|
if (!e)
|
1178
1178
|
throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
|
@@ -1339,10 +1339,10 @@ const Ms = {
|
|
1339
1339
|
value: n.value || "",
|
1340
1340
|
active: n.active || !1,
|
1341
1341
|
history: n.history.map((r, o) => ({
|
1342
|
-
commitURL: n.url ?
|
1342
|
+
commitURL: n.url ? ba(n.url, r.Commit) : "",
|
1343
1343
|
commit: r.Commit || "",
|
1344
1344
|
author: r.Author || "",
|
1345
|
-
date:
|
1345
|
+
date: pa(r.Date, !1),
|
1346
1346
|
message: r.Message || "",
|
1347
1347
|
changes: r.Changes || [],
|
1348
1348
|
showChanges: o === 0,
|
@@ -1356,7 +1356,7 @@ const Ms = {
|
|
1356
1356
|
ciPipelineId: e?.ciPipelineId,
|
1357
1357
|
materials: s,
|
1358
1358
|
triggeredByEmail: e?.triggeredByEmail || "",
|
1359
|
-
lastDeployedTime:
|
1359
|
+
lastDeployedTime: pa(e.lastDeployedTime, !1),
|
1360
1360
|
environmentName: e?.environmentName || "",
|
1361
1361
|
environmentId: e?.environmentId || 0,
|
1362
1362
|
appId: e?.appId,
|
@@ -1393,7 +1393,7 @@ const Ms = {
|
|
1393
1393
|
appId: a
|
1394
1394
|
}) => {
|
1395
1395
|
const r = n ? Xr({
|
1396
|
-
type:
|
1396
|
+
type: Ca.CONFIG_DATA,
|
1397
1397
|
queryParams: {
|
1398
1398
|
id: a,
|
1399
1399
|
...e
|
@@ -1417,7 +1417,7 @@ const Ms = {
|
|
1417
1417
|
var NT = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(NT || {}), Hn = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))(Hn || {}), bT = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(bT || {}), Ue = /* @__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))(Ue || {}), Qt = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(Qt || {}), ri = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))(ri || {}), _t = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(_t || {}), Fs = /* @__PURE__ */ ((e) => (e[e.ConfigMap = 1] = "ConfigMap", e[e.Secret = 2] = "Secret", e))(Fs || {}), qr = /* @__PURE__ */ ((e) => (e.BASE = "", e.INHERITED = "INHERITING", e.OVERRIDDEN = "OVERRIDDEN", e.ENV = "ENV", e.UNPUBLISHED = "UNPUBLISHED", e))(qr || {}), Tm = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(Tm || {});
|
1418
1418
|
const TT = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => He(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), UB = ({ kind: e, version: s, queryParams: n, suffix: a }) => He(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), ST = (e, { isTemplateView: s }) => {
|
1419
1419
|
const n = s ? Xr({
|
1420
|
-
type:
|
1420
|
+
type: Ca.CD_PIPELINE,
|
1421
1421
|
queryParams: {
|
1422
1422
|
id: e.appId
|
1423
1423
|
}
|
@@ -1444,7 +1444,7 @@ const vT = {
|
|
1444
1444
|
closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
|
1445
1445
|
H,
|
1446
1446
|
{
|
1447
|
-
icon: /* @__PURE__ */ t.jsx(Ts, { className: `fcn-0 ${
|
1447
|
+
icon: /* @__PURE__ */ t.jsx(Ts, { className: `fcn-0 ${ra}` }),
|
1448
1448
|
onClick: e,
|
1449
1449
|
dataTestId: "close-toast",
|
1450
1450
|
ariaLabel: "Close toast",
|
@@ -1456,7 +1456,7 @@ const vT = {
|
|
1456
1456
|
) })
|
1457
1457
|
}, IT = {
|
1458
1458
|
[ve.info]: {
|
1459
|
-
icon: /* @__PURE__ */ t.jsx(
|
1459
|
+
icon: /* @__PURE__ */ t.jsx(ha, {}),
|
1460
1460
|
type: "info",
|
1461
1461
|
title: "Information",
|
1462
1462
|
progressBarBg: "var(--B500)"
|
@@ -1546,14 +1546,14 @@ const Zs = class Zs {
|
|
1546
1546
|
pe(this, "isToastActive", go.isActive);
|
1547
1547
|
}
|
1548
1548
|
static get instance() {
|
1549
|
-
return Ws(Zs, Nn) ||
|
1549
|
+
return Ws(Zs, Nn) || Ma(Zs, Nn, new Zs()), Ws(Zs, Nn);
|
1550
1550
|
}
|
1551
1551
|
};
|
1552
1552
|
Nn = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
1553
|
-
|
1553
|
+
Pa(Zs, Nn);
|
1554
1554
|
let oi = Zs;
|
1555
1555
|
const FB = () => /* @__PURE__ */ t.jsx(ef, { ...vT }), Ve = oi.instance, RT = (e) => e === Ue.AWSSecretsManager || e === Ue.AWSSystemManager || e === Ue.HashiCorpVault, Sm = (e) => e === Ue.ESO_GoogleSecretsManager || e === Ue.ESO_AzureSecretsManager || e === Ue.ESO_AWSSecretsManager || e === Ue.ESO_HashiCorpVault;
|
1556
|
-
var pn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(pn || {}), yT = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(yT || {}), Qi = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Qi || {}), jT = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(jT || {}),
|
1556
|
+
var pn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(pn || {}), yT = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(yT || {}), Qi = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Qi || {}), jT = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(jT || {}), Ca = /* @__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))(Ca || {});
|
1557
1557
|
const BB = {
|
1558
1558
|
BASE_DEPLOYMENT_TEMPLATE: [pn.VALUES, pn.DRY_RUN],
|
1559
1559
|
OVERRIDE: [pn.INHERITED, pn.VALUES, pn.DRY_RUN]
|
@@ -1580,7 +1580,7 @@ const BB = {
|
|
1580
1580
|
checked: c,
|
1581
1581
|
id: l,
|
1582
1582
|
"data-testid": d,
|
1583
|
-
onClick:
|
1583
|
+
onClick: ye
|
1584
1584
|
}
|
1585
1585
|
),
|
1586
1586
|
/* @__PURE__ */ t.jsx("span", { className: "form__checkbox-container", "data-testid": `${d}-chk-span` }),
|
@@ -1755,7 +1755,7 @@ const HB = async (e, s) => {
|
|
1755
1755
|
...l ? { skipIfHibernated: !0 } : {},
|
1756
1756
|
...u ? { strategy: u } : {}
|
1757
1757
|
};
|
1758
|
-
return r && (p.deploymentWithConfig = r ===
|
1758
|
+
return r && (p.deploymentWithConfig = r === Xa.LAST_SAVED_CONFIG ? r : Xa.SPECIFIC_TRIGGER_CONFIG, r !== Xa.LAST_SAVED_CONFIG && (p.wfrIdForDeploymentWithSpecificTrigger = o)), Et(Y.CD_TRIGGER_POST, p, { ...MT(), abortControllerRef: c });
|
1759
1759
|
};
|
1760
1760
|
var Im = /* @__PURE__ */ ((e) => (e.NEW_DEPLOYMENT = "create", e.MIGRATE_EXTERNAL_APPS = "link", e))(Im || {});
|
1761
1761
|
const XB = ({ fileMountDir: e }) => /* @__PURE__ */ t.jsx(
|
@@ -1855,7 +1855,7 @@ const XB = ({ fileMountDir: e }) => /* @__PURE__ */ t.jsx(
|
|
1855
1855
|
};
|
1856
1856
|
var UT = /* @__PURE__ */ ((e) => (e.email = "email_id", e.lastLogin = "last_login", e))(UT || {}), $T = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e))($T || {}), FT = /* @__PURE__ */ ((e) => (e.active = "active", e.inactive = "inactive", e.temporary = "temporaryAccess", e))(FT || {});
|
1857
1857
|
const al = (e) => ({
|
1858
|
-
label: e.startsWith(
|
1858
|
+
label: e.startsWith(_r) ? e.split(":")[1] : e,
|
1859
1859
|
value: e
|
1860
1860
|
}), sV = async () => {
|
1861
1861
|
const { result: e } = await ge(Y.USER_LIST_MIN);
|
@@ -1865,11 +1865,11 @@ const al = (e) => ({
|
|
1865
1865
|
return [
|
1866
1866
|
{
|
1867
1867
|
label: "Users",
|
1868
|
-
options: s.filter((n) => n !== zi.system && !n.startsWith(
|
1868
|
+
options: s.filter((n) => n !== zi.system && !n.startsWith(_r)).map((n) => al(n))
|
1869
1869
|
},
|
1870
1870
|
{
|
1871
1871
|
label: "API Tokens",
|
1872
|
-
options: s.filter((n) => n.startsWith(
|
1872
|
+
options: s.filter((n) => n.startsWith(_r)).map((n) => al(n))
|
1873
1873
|
}
|
1874
1874
|
];
|
1875
1875
|
}, BT = ({
|
@@ -1976,7 +1976,7 @@ const al = (e) => ({
|
|
1976
1976
|
)) })
|
1977
1977
|
] });
|
1978
1978
|
};
|
1979
|
-
var GT = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(GT || {}), U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), Jt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Jt || {}), je = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(je || {}), Am = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(Am || {}), ks = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(ks || {}), Rm = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(Rm || {}), fr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(fr || {}),
|
1979
|
+
var GT = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(GT || {}), U = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(U || {}), Jt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Jt || {}), je = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(je || {}), Am = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(Am || {}), ks = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))(ks || {}), Rm = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(Rm || {}), fr = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(fr || {}), oa = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(oa || {}), ii = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(ii || {}), ci = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(ci || {}), At = /* @__PURE__ */ ((e) => (e.ADD_TARGET_PLATFORM = "add_target_platform", e.REMOVE_TARGET_PLATFORM = "remove_target_platform", e.RENAME_TARGET_PLATFORM = "rename_target_platform", e.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", e.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", e.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", e.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", e.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", e.ADD_TOLERANCE_ITEM = "add_tolerance_item", e.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", e.ADD_CM_CS_ITEM = "add_cm_cs_item", e.SYNC_CM_CS_ITEM = "sync_cm_cs_item", e.DELETE_CM_CS_ITEM = "delete_cm_cs_item", e))(At || {}), ym = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(ym || {});
|
1980
1980
|
const Bs = {
|
1981
1981
|
// Will not enforce any decimal specification on input field
|
1982
1982
|
STEP: "any",
|
@@ -2089,7 +2089,7 @@ const Bs = {
|
|
2089
2089
|
Object.values({
|
2090
2090
|
...U,
|
2091
2091
|
...Jt,
|
2092
|
-
...
|
2092
|
+
...oa
|
2093
2093
|
}).map((e) => [e, null])
|
2094
2094
|
), HT = [Jt.NAME], rl = {
|
2095
2095
|
SUBMIT_BUTTON: "build-infra-submit-button",
|
@@ -2104,7 +2104,7 @@ const Bs = {
|
|
2104
2104
|
[U.TOLERANCE]: !0,
|
2105
2105
|
[U.CONFIG_MAP]: !0,
|
2106
2106
|
[U.SECRET]: !0,
|
2107
|
-
[
|
2107
|
+
[oa.TARGET_PLATFORM]: !0
|
2108
2108
|
}, il = Object.values(je).reduce(
|
2109
2109
|
(e, s) => (e[`activate_${s}`] = s, e[`de_activate_${s}`] = s, e),
|
2110
2110
|
{}
|
@@ -2137,7 +2137,7 @@ const Bs = {
|
|
2137
2137
|
[U.BUILD_TIMEOUT]: !0,
|
2138
2138
|
[U.CONFIG_MAP]: !0,
|
2139
2139
|
[U.SECRET]: !0
|
2140
|
-
},
|
2140
|
+
}, Na = {
|
2141
2141
|
[U.CONFIG_MAP]: !0,
|
2142
2142
|
[U.SECRET]: !0
|
2143
2143
|
}, Om = {
|
@@ -3268,11 +3268,11 @@ const ul = (e) => {
|
|
3268
3268
|
...de
|
3269
3269
|
}) => {
|
3270
3270
|
const se = $(null), ne = b ?? se, [me, le] = w(!1), [K, Ce] = w(""), {
|
3271
|
-
inputId:
|
3271
|
+
inputId: Ae,
|
3272
3272
|
required: at,
|
3273
3273
|
isDisabled: Ye,
|
3274
3274
|
controlShouldRenderValue: re = !0,
|
3275
|
-
value:
|
3275
|
+
value: Re,
|
3276
3276
|
options: st,
|
3277
3277
|
getOptionValue: zt,
|
3278
3278
|
noOptionsMessage: V
|
@@ -3280,7 +3280,7 @@ const ul = (e) => {
|
|
3280
3280
|
isGroupHeadingSelectable: he = !1,
|
3281
3281
|
getIsOptionValid: ue = () => !0,
|
3282
3282
|
customDisplayText: Me = null
|
3283
|
-
} = x, We = re && !Me, ft = !g && i, ls = !C && S, cn = j ?? !g,
|
3283
|
+
} = x, We = re && !Me, ft = !g && i, ls = !C && S, cn = j ?? !g, La = X(
|
3284
3284
|
() => dS({
|
3285
3285
|
error: e,
|
3286
3286
|
size: c,
|
@@ -3291,10 +3291,10 @@ const ul = (e) => {
|
|
3291
3291
|
shouldMenuAlignRight: A
|
3292
3292
|
}),
|
3293
3293
|
[e, c, u, h, he, A]
|
3294
|
-
),
|
3294
|
+
), Da = (Oe) => {
|
3295
3295
|
const Is = Oe?.trim();
|
3296
3296
|
return y && !!Is && !Sn(
|
3297
|
-
|
3297
|
+
Re,
|
3298
3298
|
Is,
|
3299
3299
|
null,
|
3300
3300
|
zt
|
@@ -3342,7 +3342,7 @@ const ul = (e) => {
|
|
3342
3342
|
}, [ce]), /* @__PURE__ */ t.jsx(
|
3343
3343
|
sc,
|
3344
3344
|
{
|
3345
|
-
inputId:
|
3345
|
+
inputId: Ae,
|
3346
3346
|
layout: G,
|
3347
3347
|
label: o,
|
3348
3348
|
error: e,
|
@@ -3361,7 +3361,7 @@ const ul = (e) => {
|
|
3361
3361
|
{
|
3362
3362
|
...de,
|
3363
3363
|
...tc({
|
3364
|
-
inputId:
|
3364
|
+
inputId: Ae,
|
3365
3365
|
required: at,
|
3366
3366
|
label: o,
|
3367
3367
|
ariaLabel: ee,
|
@@ -3376,11 +3376,11 @@ const ul = (e) => {
|
|
3376
3376
|
} : {},
|
3377
3377
|
group: () => "select-picker__group"
|
3378
3378
|
},
|
3379
|
-
name: f ||
|
3380
|
-
classNamePrefix: N ||
|
3379
|
+
name: f || Ae,
|
3380
|
+
classNamePrefix: N || Ae,
|
3381
3381
|
isSearchable: ls,
|
3382
3382
|
placeholder: r,
|
3383
|
-
styles:
|
3383
|
+
styles: La,
|
3384
3384
|
menuPlacement: "auto",
|
3385
3385
|
menuPosition: _,
|
3386
3386
|
menuShouldScrollIntoView: !0,
|
@@ -3410,7 +3410,7 @@ const ul = (e) => {
|
|
3410
3410
|
},
|
3411
3411
|
closeMenuOnSelect: cn,
|
3412
3412
|
allowCreateWhileLoading: !1,
|
3413
|
-
isValidNewOption:
|
3413
|
+
isValidNewOption: Da,
|
3414
3414
|
createOptionPosition: "first",
|
3415
3415
|
onCreateOption: W_,
|
3416
3416
|
menuListFooterConfig: m ? null : I,
|
@@ -3433,7 +3433,7 @@ const ul = (e) => {
|
|
3433
3433
|
) }) })
|
3434
3434
|
}
|
3435
3435
|
);
|
3436
|
-
}, So = [
|
3436
|
+
}, So = [pr ? "Meta" : "Control", "Enter"], SS = ({
|
3437
3437
|
appliedFilterOptions: e,
|
3438
3438
|
handleApplyFilter: s,
|
3439
3439
|
options: n,
|
@@ -3647,7 +3647,7 @@ const ul = (e) => {
|
|
3647
3647
|
allowOutsideClick: (o) => {
|
3648
3648
|
let i = o.target, c = 0;
|
3649
3649
|
for (; i && c < 4; ) {
|
3650
|
-
if (i.classList && i.classList.contains(
|
3650
|
+
if (i.classList && i.classList.contains(ra))
|
3651
3651
|
return !0;
|
3652
3652
|
i = i.parentElement, c += 1;
|
3653
3653
|
}
|
@@ -3920,7 +3920,7 @@ const ul = (e) => {
|
|
3920
3920
|
EXTERNAL_LINKS: "getting-started/global-configurations/external-links",
|
3921
3921
|
EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets",
|
3922
3922
|
HOME_PAGE: "https://devtron.ai",
|
3923
|
-
DOC_HOME_PAGE:
|
3923
|
+
DOC_HOME_PAGE: Ea,
|
3924
3924
|
KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally",
|
3925
3925
|
JOBS: "usage/jobs",
|
3926
3926
|
TAINT: "usage/resource-browser#taint-a-node",
|
@@ -3998,7 +3998,7 @@ const ul = (e) => {
|
|
3998
3998
|
if (r?.startsWith("http"))
|
3999
3999
|
return r;
|
4000
4000
|
const o = a ? "" : $m({ isEnterprise: s });
|
4001
|
-
return `${
|
4001
|
+
return `${Ea}${pb}/${r || ""}${o}`;
|
4002
4002
|
}, DS = ({ count: e, isApprox: s, isSelected: n }) => /* @__PURE__ */ t.jsxs(
|
4003
4003
|
"div",
|
4004
4004
|
{
|
@@ -4322,10 +4322,10 @@ const ul = (e) => {
|
|
4322
4322
|
onOpen: i
|
4323
4323
|
}) => {
|
4324
4324
|
const [c, l] = w(-1), [d, u] = w(""), m = o ? nv(r, d) : r, p = tv(m), _ = $(
|
4325
|
-
p.map(() =>
|
4325
|
+
p.map(() => dr())
|
4326
4326
|
);
|
4327
4327
|
M(() => {
|
4328
|
-
_.current = p.map(() =>
|
4328
|
+
_.current = p.map(() => dr());
|
4329
4329
|
}, [p.length]);
|
4330
4330
|
const h = (R) => {
|
4331
4331
|
u(R.target.value);
|
@@ -4839,12 +4839,12 @@ ${d.slice(C)}`;
|
|
4839
4839
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
4840
4840
|
return e;
|
4841
4841
|
}, rc = (e) => {
|
4842
|
-
const s = $(null), [n, a] = w(!1), r = e.theme ===
|
4842
|
+
const s = $(null), [n, a] = w(!1), r = e.theme === xa.white, o = (N) => {
|
4843
4843
|
N.keyCode === 27 && c(N);
|
4844
4844
|
}, i = (N) => {
|
4845
4845
|
s.current = N, document.addEventListener("keydown", o);
|
4846
4846
|
}, c = (N) => {
|
4847
|
-
e.disableClose || (
|
4847
|
+
e.disableClose || (ye(N), s.current?.hide && (s.current.hide(), s.current = null, e.onClose && e.onClose()), a(!1), document.removeEventListener("keydown", o));
|
4848
4848
|
}, l = (N) => {
|
4849
4849
|
a(lD);
|
4850
4850
|
}, d = () => {
|
@@ -4898,7 +4898,7 @@ ${d.slice(C)}`;
|
|
4898
4898
|
{
|
4899
4899
|
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"}`,
|
4900
4900
|
children: [
|
4901
|
-
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(
|
4901
|
+
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-20 fcv-5" }) }),
|
4902
4902
|
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: T })
|
4903
4903
|
]
|
4904
4904
|
}
|
@@ -4919,7 +4919,7 @@ ${d.slice(C)}`;
|
|
4919
4919
|
),
|
4920
4920
|
P,
|
4921
4921
|
O && /* @__PURE__ */ t.jsx("div", { className: "px-12 pb-12 flexbox", children: /* @__PURE__ */ t.jsx(
|
4922
|
-
|
4922
|
+
Sa,
|
4923
4923
|
{
|
4924
4924
|
text: D,
|
4925
4925
|
dataTestId: "learn-more-about-tippy-link",
|
@@ -4969,11 +4969,11 @@ ${d.slice(C)}`;
|
|
4969
4969
|
}) => /* @__PURE__ */ t.jsx(
|
4970
4970
|
rc,
|
4971
4971
|
{
|
4972
|
-
theme:
|
4972
|
+
theme: xa.white,
|
4973
4973
|
headingInfo: u,
|
4974
4974
|
className: "w-300 h-100 dc__no-text-transform",
|
4975
4975
|
placement: c,
|
4976
|
-
Icon:
|
4976
|
+
Icon: fa,
|
4977
4977
|
heading: e,
|
4978
4978
|
infoText: s,
|
4979
4979
|
iconClass: n,
|
@@ -5570,7 +5570,7 @@ const CV = (e, s = !1) => {
|
|
5570
5570
|
}
|
5571
5571
|
case At.ADD_TARGET_PLATFORM: {
|
5572
5572
|
const { handleCaptureSnapshot: T } = N;
|
5573
|
-
S[
|
5573
|
+
S[oa.TARGET_PLATFORM] = b ? gl(
|
5574
5574
|
b,
|
5575
5575
|
E(C.configurations)
|
5576
5576
|
).message : "", C.configurations[b] = i.fallbackPlatformConfigurationMap[b] || // Here need to update target platform name for each configuration
|
@@ -5606,7 +5606,7 @@ const CV = (e, s = !1) => {
|
|
5606
5606
|
});
|
5607
5607
|
return;
|
5608
5608
|
}
|
5609
|
-
S[
|
5609
|
+
S[oa.TARGET_PLATFORM] = gl(
|
5610
5610
|
I,
|
5611
5611
|
E(C.configurations)
|
5612
5612
|
).message;
|
@@ -5866,8 +5866,8 @@ const CV = (e, s = !1) => {
|
|
5866
5866
|
appCount: s.appCount,
|
5867
5867
|
useK8sDriver: r
|
5868
5868
|
};
|
5869
|
-
}, IV = (e) => !!
|
5870
|
-
if (!
|
5869
|
+
}, IV = (e) => !!Na[e], Sv = (e, s) => {
|
5870
|
+
if (!Na[e.key])
|
5871
5871
|
return vn(e);
|
5872
5872
|
const n = e.value?.map(
|
5873
5873
|
(a) => {
|
@@ -5895,7 +5895,7 @@ const CV = (e, s = !1) => {
|
|
5895
5895
|
};
|
5896
5896
|
}, vv = (e) => {
|
5897
5897
|
const s = vn(e, !1);
|
5898
|
-
if (!
|
5898
|
+
if (!Na[s.key])
|
5899
5899
|
return s;
|
5900
5900
|
const a = s.value?.filter(
|
5901
5901
|
(r) => r.isOverridden
|
@@ -5935,7 +5935,7 @@ const CV = (e, s = !1) => {
|
|
5935
5935
|
const l = o[c], d = r[c]?.active ? r[c] : null;
|
5936
5936
|
if (!l)
|
5937
5937
|
return i;
|
5938
|
-
const u = vn(l), m =
|
5938
|
+
const u = vn(l), m = Na[c] && !a;
|
5939
5939
|
let p = d ? {
|
5940
5940
|
...d,
|
5941
5941
|
defaultValue: m ? null : u
|
@@ -6038,7 +6038,7 @@ const CV = (e, s = !1) => {
|
|
6038
6038
|
}, Rv = (e) => e ? fr.KUBERNETES : fr.DOCKER_CONTAINER, yv = (e, s) => {
|
6039
6039
|
const n = e.configurations || {}, a = Object.entries(n).reduce((o, [i, c]) => {
|
6040
6040
|
const l = Object.values(c).reduce((d, u) => {
|
6041
|
-
const m = !!
|
6041
|
+
const m = !!Na[u.key], p = m && u.value?.some(
|
6042
6042
|
(_) => _.isOverridden
|
6043
6043
|
);
|
6044
6044
|
if (u.id || u.active || p) {
|
@@ -6114,7 +6114,7 @@ const Cl = {
|
|
6114
6114
|
color: "var(--N300)",
|
6115
6115
|
label: "-",
|
6116
6116
|
value: 1
|
6117
|
-
},
|
6117
|
+
}, ia = ({
|
6118
6118
|
hideLegend: e,
|
6119
6119
|
entities: s = [Cl],
|
6120
6120
|
rootClassName: n,
|
@@ -6232,7 +6232,7 @@ const Cl = {
|
|
6232
6232
|
const { statusEntities: n, deploymentEntities: a } = Pv(e);
|
6233
6233
|
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: [
|
6234
6234
|
/* @__PURE__ */ t.jsx(
|
6235
|
-
|
6235
|
+
ia,
|
6236
6236
|
{
|
6237
6237
|
entities: n,
|
6238
6238
|
rootClassName: "p-16 fs-13 dc__border-right-n1 cn-9",
|
@@ -6244,7 +6244,7 @@ const Cl = {
|
|
6244
6244
|
}
|
6245
6245
|
),
|
6246
6246
|
/* @__PURE__ */ t.jsx(
|
6247
|
-
|
6247
|
+
ia,
|
6248
6248
|
{
|
6249
6249
|
entities: a,
|
6250
6250
|
rootClassName: "p-16 fs-13 cn-9",
|
@@ -6631,14 +6631,14 @@ const Jv = (e, s = !1) => s ? btoa(e) : atob(e), mi = (e, s = !1) => Object.keys
|
|
6631
6631
|
{ label: "s", value: i.seconds() }
|
6632
6632
|
].filter((d) => d.value > 0).slice(0, 2);
|
6633
6633
|
return l.length === 0 ? "0s" : l.map((d) => `${d.value}${d.label}`).join(" ");
|
6634
|
-
}, Qv = (e) => e?.get("content-disposition")?.split(";")?.find((s) => s.includes("filename="))?.replace("filename=", "").trim(),
|
6634
|
+
}, Qv = (e) => e?.get("content-disposition")?.split(";")?.find((s) => s.includes("filename="))?.replace("filename=", "").trim(), Ja = (e) => (e ?? []).map(({ hasApproved: s, identifier: n, canApprove: a }) => ({
|
6635
6635
|
canApprove: a ?? !1,
|
6636
6636
|
hasApproved: s ?? !1,
|
6637
6637
|
identifier: n
|
6638
6638
|
})), vo = (e) => ({
|
6639
6639
|
currentCount: e?.currentCount ?? 0,
|
6640
6640
|
requiredCount: e?.requiredCount ?? 0,
|
6641
|
-
approverList:
|
6641
|
+
approverList: Ja(e?.approverList)
|
6642
6642
|
}), zm = (e) => ({
|
6643
6643
|
kind: e?.kind ?? null,
|
6644
6644
|
requiredCount: e?.requiredCount ?? 0,
|
@@ -6660,7 +6660,7 @@ const Jv = (e, s = !1) => s ? btoa(e) : atob(e), mi = (e, s = !1) => Object.keys
|
|
6660
6660
|
}), tG = (e) => (
|
6661
6661
|
// Added null check for backward compatibility
|
6662
6662
|
!!e?.type && e.type !== Qu.notConfigured
|
6663
|
-
), qm = (e) => e?.requiredCount > 0,
|
6663
|
+
), qm = (e) => e?.requiredCount > 0, ca = (e) => () => {
|
6664
6664
|
window.open(e, "_blank", "noreferrer");
|
6665
6665
|
}, sG = (e) => {
|
6666
6666
|
switch (typeof e) {
|
@@ -6829,7 +6829,7 @@ const Zm = (e) => ({
|
|
6829
6829
|
lastExecution: d.lastExecution,
|
6830
6830
|
materialInfo: d.material_info ? d.material_info.map((h) => ({
|
6831
6831
|
modifiedTime: h.modifiedTime ? we(h.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
|
6832
|
-
commitLink:
|
6832
|
+
commitLink: ba(h.url, h.revision),
|
6833
6833
|
author: h.author || "",
|
6834
6834
|
message: h.message || "",
|
6835
6835
|
revision: h.revision || "",
|
@@ -6860,10 +6860,10 @@ const Zm = (e) => ({
|
|
6860
6860
|
}, TI = (e) => ({
|
6861
6861
|
eligibleApprovers: {
|
6862
6862
|
anyUsers: {
|
6863
|
-
approverList:
|
6863
|
+
approverList: Ja(e?.eligibleApprovers?.anyUsers?.approverList)
|
6864
6864
|
},
|
6865
6865
|
specificUsers: {
|
6866
|
-
approverList:
|
6866
|
+
approverList: Ja(
|
6867
6867
|
e?.eligibleApprovers?.specificUsers?.approverList
|
6868
6868
|
)
|
6869
6869
|
},
|
@@ -6871,7 +6871,7 @@ const Zm = (e) => ({
|
|
6871
6871
|
({ groupName: s, groupIdentifier: n, approverList: a }) => ({
|
6872
6872
|
groupIdentifier: n,
|
6873
6873
|
groupName: s,
|
6874
|
-
approverList:
|
6874
|
+
approverList: Ja(a)
|
6875
6875
|
})
|
6876
6876
|
)
|
6877
6877
|
},
|
@@ -6981,7 +6981,7 @@ const Zm = (e) => ({
|
|
6981
6981
|
function gr(e) {
|
6982
6982
|
return e ? e.split(":").pop() : "";
|
6983
6983
|
}
|
6984
|
-
function
|
6984
|
+
function ba(e, s) {
|
6985
6985
|
if (!e || !s)
|
6986
6986
|
return "NA";
|
6987
6987
|
if (e.indexOf("gitlab") > 0 || e.indexOf("github") > 0 || e.indexOf("azure") > 0) {
|
@@ -7090,7 +7090,7 @@ const RI = (e, s) => {
|
|
7090
7090
|
o && !e ? s(!0) : !o && e && s(!1);
|
7091
7091
|
}
|
7092
7092
|
};
|
7093
|
-
}, ep = Ut(null), wn = () => is(ep),
|
7093
|
+
}, ep = Ut(null), wn = () => is(ep), Ba = (e) => {
|
7094
7094
|
if (!e)
|
7095
7095
|
throw new Error("keys undefined");
|
7096
7096
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -7098,7 +7098,7 @@ const RI = (e, s) => {
|
|
7098
7098
|
keys: s,
|
7099
7099
|
id: s.join()
|
7100
7100
|
};
|
7101
|
-
},
|
7101
|
+
}, Va = (e) => {
|
7102
7102
|
if (!e || !Array.isArray(e) || !e.every((s) => typeof s == "function"))
|
7103
7103
|
throw new Error("callback stack is undefined");
|
7104
7104
|
}, yI = ["input", "textarea", "select"], jI = 300, dc = ({
|
@@ -7110,38 +7110,38 @@ const RI = (e, s) => {
|
|
7110
7110
|
}) => {
|
7111
7111
|
const o = $(!1), i = $({}), c = $(/* @__PURE__ */ new Set()), l = $(-1), d = s ?? yI, u = Fe(
|
7112
7112
|
({ keys: f, callback: N, description: C = "" }) => {
|
7113
|
-
const { keys: S, id: b } =
|
7113
|
+
const { keys: S, id: b } = Ba(f);
|
7114
7114
|
if (typeof N != "function")
|
7115
7115
|
throw new Error("callback provided is not a function");
|
7116
7116
|
const A = i.current[b] && qu(i.current[b].keys, f) ? i.current[b] : null;
|
7117
7117
|
if (A) {
|
7118
|
-
|
7118
|
+
Va(A.callbackStack), A.callbackStack.push(N);
|
7119
7119
|
return;
|
7120
7120
|
}
|
7121
7121
|
i.current[b] = { keys: S, callbackStack: [N], description: C };
|
7122
7122
|
},
|
7123
7123
|
[]
|
7124
7124
|
), m = Fe((f) => {
|
7125
|
-
const { id: N } =
|
7125
|
+
const { id: N } = Ba(f);
|
7126
7126
|
if (!i.current[N])
|
7127
7127
|
return;
|
7128
7128
|
const { callbackStack: C } = i.current[N];
|
7129
|
-
|
7129
|
+
Va(C), C.pop(), C.length || delete i.current[N];
|
7130
7130
|
}, []), p = Fe((f) => {
|
7131
7131
|
o.current = f;
|
7132
7132
|
}, []), _ = Fe((f) => {
|
7133
|
-
const { id: N } =
|
7133
|
+
const { id: N } = Ba(f);
|
7134
7134
|
if (!i.current[N])
|
7135
7135
|
return;
|
7136
7136
|
const { callbackStack: C } = i.current[N];
|
7137
|
-
|
7137
|
+
Va(C), C[C.length - 1]();
|
7138
7138
|
}, []), h = Fe(() => {
|
7139
7139
|
if (!c.current.size)
|
7140
7140
|
return;
|
7141
|
-
const { id: f } =
|
7141
|
+
const { id: f } = Ba(Array.from(c.current.values()));
|
7142
7142
|
if (i.current[f]) {
|
7143
7143
|
const { callbackStack: N } = i.current[f];
|
7144
|
-
|
7144
|
+
Va(N), N[N.length - 1]();
|
7145
7145
|
}
|
7146
7146
|
c.current.clear(), l.current > -1 && (clearTimeout(l.current), l.current = -1);
|
7147
7147
|
}, []), E = Fe((f) => {
|
@@ -7339,8 +7339,8 @@ const wl = () => ({
|
|
7339
7339
|
}, LI = {
|
7340
7340
|
Control: "Ctrl",
|
7341
7341
|
Shift: "⇧",
|
7342
|
-
Meta:
|
7343
|
-
Alt:
|
7342
|
+
Meta: pr ? "⌘" : "Win",
|
7343
|
+
Alt: pr ? "⌥" : "Alt",
|
7344
7344
|
F: "F",
|
7345
7345
|
E: "E",
|
7346
7346
|
R: "R",
|
@@ -7763,7 +7763,7 @@ const sp = {
|
|
7763
7763
|
title: o?.title ?? Dl.title,
|
7764
7764
|
subTitle: o?.subTitle ?? Dl.subTitle
|
7765
7765
|
}
|
7766
|
-
) : /* @__PURE__ */ t.jsx(
|
7766
|
+
) : /* @__PURE__ */ t.jsx(da, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }), to = ({
|
7767
7767
|
isSorted: e,
|
7768
7768
|
triggerSorting: s,
|
7769
7769
|
sortOrder: n,
|
@@ -7806,7 +7806,7 @@ const sp = {
|
|
7806
7806
|
}
|
7807
7807
|
),
|
7808
7808
|
u && /* @__PURE__ */ t.jsx(
|
7809
|
-
|
7809
|
+
cr,
|
7810
7810
|
{
|
7811
7811
|
handle: ".sortable-table-header__resize-btn",
|
7812
7812
|
defaultClassNameDragging: "sortable-table-header__resize-btn--dragging",
|
@@ -7855,7 +7855,7 @@ const sp = {
|
|
7855
7855
|
showSuccessfulToast: c = !0,
|
7856
7856
|
downloadSuccessToastContent: l = "Downloaded Successfully"
|
7857
7857
|
}) => {
|
7858
|
-
const d = `${
|
7858
|
+
const d = `${mr}/${r}`;
|
7859
7859
|
if (e)
|
7860
7860
|
return window.open(d, "_blank"), null;
|
7861
7861
|
n(!0);
|
@@ -8201,14 +8201,14 @@ const sp = {
|
|
8201
8201
|
"app-group": null,
|
8202
8202
|
[ot.cluster]: null
|
8203
8203
|
};
|
8204
|
-
var xr = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(xr || {}),
|
8204
|
+
var xr = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(xr || {}), Ta = /* @__PURE__ */ ((e) => (e.RECENTLY_VISITED = "recently-visited", e))(Ta || {});
|
8205
8205
|
const lA = ({
|
8206
8206
|
userPreferencesResponse: e,
|
8207
8207
|
id: s,
|
8208
8208
|
name: n,
|
8209
8209
|
resourceKind: a
|
8210
8210
|
}) => {
|
8211
|
-
const r = e?.resources?.[a]?.[
|
8211
|
+
const r = e?.resources?.[a]?.[Ta.RECENTLY_VISITED] || [], o = s && !n, i = r.filter((l) => !l?.id || !l.name ? !1 : o ? l.id !== s : !0);
|
8212
8212
|
return (s && n ? [{ id: s, name: n }, ...i.filter((l) => l.id !== s)] : i).slice(0, 6);
|
8213
8213
|
}, dA = (e) => {
|
8214
8214
|
const s = {};
|
@@ -8235,7 +8235,7 @@ const lA = ({
|
|
8235
8235
|
...a,
|
8236
8236
|
[s]: {
|
8237
8237
|
...a[s],
|
8238
|
-
[
|
8238
|
+
[Ta.RECENTLY_VISITED]: Array.isArray(n) ? n.map(({ id: r, name: o }) => ({ id: r, name: o })) : []
|
8239
8239
|
}
|
8240
8240
|
};
|
8241
8241
|
}, uA = async ({
|
@@ -8327,7 +8327,7 @@ const lA = ({
|
|
8327
8327
|
});
|
8328
8328
|
return r && localStorage.setItem("userPreferences", JSON.stringify(o)), n && o.resources?.[n] && await ip({
|
8329
8329
|
path: "resources",
|
8330
|
-
value: o.resources[n][
|
8330
|
+
value: o.resources[n][Ta.RECENTLY_VISITED],
|
8331
8331
|
resourceKind: n,
|
8332
8332
|
shouldThrowError: a,
|
8333
8333
|
userPreferencesResponse: o
|
@@ -8346,7 +8346,7 @@ const lA = ({
|
|
8346
8346
|
() => p(),
|
8347
8347
|
[i, c],
|
8348
8348
|
d && !!l
|
8349
|
-
), E = h?.resources?.[l]?.[
|
8349
|
+
), E = h?.resources?.[l]?.[Ta.RECENTLY_VISITED] || [], x = (C) => {
|
8350
8350
|
C?.themePreference ? C?.themePreference && m(C.themePreference) : u(!0), a(C);
|
8351
8351
|
};
|
8352
8352
|
return {
|
@@ -8381,7 +8381,7 @@ const lA = ({
|
|
8381
8381
|
recentlyVisitedResources: E,
|
8382
8382
|
recentResourcesLoading: _
|
8383
8383
|
};
|
8384
|
-
},
|
8384
|
+
}, Sa = ({
|
8385
8385
|
docLinkKey: e,
|
8386
8386
|
text: s = "Learn more",
|
8387
8387
|
dataTestId: n,
|
@@ -8401,7 +8401,7 @@ const lA = ({
|
|
8401
8401
|
isExternalLink: d,
|
8402
8402
|
isLicenseDashboard: h
|
8403
8403
|
}), g = (f) => {
|
8404
|
-
E && !d && !u && !f.metaKey && !h && x.startsWith(
|
8404
|
+
E && !d && !u && !f.metaKey && !h && x.startsWith(Ea) && (f.preventDefault(), _((N) => ({
|
8405
8405
|
...N,
|
8406
8406
|
state: zr.DOCUMENTATION,
|
8407
8407
|
docLink: x,
|
@@ -8429,7 +8429,7 @@ const lA = ({
|
|
8429
8429
|
}, _A = ({ name: e }) => /* @__PURE__ */ t.jsx("div", { className: "bg__secondary py-2 px-6 dc__mxw-200 br-4", children: /* @__PURE__ */ t.jsx(J, { content: e, children: /* @__PURE__ */ t.jsx("span", { className: "dc__truncate cn-7 fs-12 fw-5 lh-16", children: e }) }) }), fA = ({ targetPlatforms: e }) => e?.length ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__align-start", children: [
|
8430
8430
|
/* @__PURE__ */ t.jsx(Bi, { className: "icon-dim-20 dc__no-shrink scn-7 p-2" }),
|
8431
8431
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__gap-6 flex-wrap", children: e.map(({ name: s }) => /* @__PURE__ */ t.jsx(_A, { name: s }, s)) })
|
8432
|
-
] }) : null, hA = ({ targetPlatforms: e }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 cursor-text", onClick:
|
8432
|
+
] }) : null, hA = ({ targetPlatforms: e }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 cursor-text", onClick: ye, children: [
|
8433
8433
|
/* @__PURE__ */ t.jsx("h6", { className: "m-0 fw-6 lh-18 fs-12", children: "Target platforms" }),
|
8434
8434
|
/* @__PURE__ */ t.jsx("ul", { className: "pl-12 m-0 dc__overflow-auto mxh-140", children: e.map(({ name: s }) => /* @__PURE__ */ t.jsx("li", { className: "dc__word-break lh-18", children: s }, s)) })
|
8435
8435
|
] }), cp = ({ targetPlatforms: e, children: s, appendTo: n }) => /* @__PURE__ */ t.jsx(
|
@@ -8481,7 +8481,7 @@ const lA = ({
|
|
8481
8481
|
}, vG = (e) => {
|
8482
8482
|
const { selectOption: s, data: n } = e, a = { height: "16px", width: "16px", flex: "0 0 16px" }, r = (o) => s(n);
|
8483
8483
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex left pl-12", style: { background: e.isFocused ? "var(--N100)" : "transparent" }, children: [
|
8484
|
-
e.isSelected ? /* @__PURE__ */ t.jsx(
|
8484
|
+
e.isSelected ? /* @__PURE__ */ t.jsx(ga, { onClick: r, className: "mr-8 icon-dim-16", style: a }) : /* @__PURE__ */ t.jsx("span", { onClick: r, className: "mr-8", style: a }),
|
8485
8485
|
/* @__PURE__ */ t.jsx(qe.Option, { ...e })
|
8486
8486
|
] });
|
8487
8487
|
}, IG = (e) => {
|
@@ -8604,14 +8604,14 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8604
8604
|
CANCELLED: "cancelled",
|
8605
8605
|
TIMED_OUT: nn.TIMED_OUT.toLowerCase(),
|
8606
8606
|
WAITING_TO_START: nn.WAITING_TO_START.toLowerCase()
|
8607
|
-
},
|
8607
|
+
}, Ga = {
|
8608
8608
|
MESSAGE: "message",
|
8609
8609
|
START_OF_STREAM: "START_OF_STREAM",
|
8610
8610
|
END_OF_STREAM: "END_OF_STREAM",
|
8611
8611
|
ERROR: "error"
|
8612
8612
|
}, Oo = {
|
8613
8613
|
PENDING: "Pending"
|
8614
|
-
}, vA = "1", no = 1, IA = "devtron-ci", AA = "devtron-ci",
|
8614
|
+
}, vA = "1", no = 1, IA = "devtron-ci", AA = "devtron-ci", Ha = 3, Ul = "deployment-status", RA = ["KIND", "NAME", "SYNC STATUS", "MESSAGE"], $l = "STAGE_INFO", yA = "|", hi = {
|
8615
8615
|
suspended: "var(--Y500)",
|
8616
8616
|
unknown: "var(--N700)",
|
8617
8617
|
queued: "var(--N700)",
|
@@ -8839,10 +8839,10 @@ const CA = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
8839
8839
|
] }) })
|
8840
8840
|
] }),
|
8841
8841
|
!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: [
|
8842
|
-
/* @__PURE__ */ t.jsx(
|
8842
|
+
/* @__PURE__ */ t.jsx(fa, { className: "icon-dim-20 fcv-5" }),
|
8843
8843
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8", children: et.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles }),
|
8844
8844
|
/* @__PURE__ */ t.jsx(
|
8845
|
-
|
8845
|
+
Sa,
|
8846
8846
|
{
|
8847
8847
|
docLinkKey: "BLOB_STORAGE",
|
8848
8848
|
text: et.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage,
|
@@ -9111,7 +9111,7 @@ const UA = (e, s) => {
|
|
9111
9111
|
}, WA = (e) => {
|
9112
9112
|
switch (e) {
|
9113
9113
|
case En.SUCCESS:
|
9114
|
-
return /* @__PURE__ */ t.jsx(
|
9114
|
+
return /* @__PURE__ */ t.jsx(ga, { className: "dc__no-shrink icon-dim-16 scg-5" });
|
9115
9115
|
case En.FAILURE:
|
9116
9116
|
return /* @__PURE__ */ t.jsx(cs, { className: "dc__no-shrink icon-dim-16 fcr-5" });
|
9117
9117
|
default:
|
@@ -9419,14 +9419,14 @@ const UA = (e, s) => {
|
|
9419
9419
|
) : /* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: _ })
|
9420
9420
|
] })
|
9421
9421
|
] });
|
9422
|
-
}, Rt = new Vr({}), us = new Vr([]),
|
9422
|
+
}, Rt = new Vr({}), us = new Vr([]), Za = new Vr([]), wo = new Vr({});
|
9423
9423
|
let rs = {
|
9424
9424
|
filterType: "",
|
9425
9425
|
searchString: ""
|
9426
9426
|
};
|
9427
9427
|
const Gl = () => {
|
9428
9428
|
const e = us.getValue().filter((s) => !!(!rs.filterType && !rs.searchString || rs.filterType === "ALL" || rs.filterType.toLowerCase() === s.health?.status?.toLowerCase() || rs.filterType.toLowerCase() === so.drifted && s.hasDrift));
|
9429
|
-
|
9429
|
+
Za.next([...e]);
|
9430
9430
|
};
|
9431
9431
|
function hc(e, s, n) {
|
9432
9432
|
if (s.some((i) => i.childNodes))
|
@@ -9512,7 +9512,7 @@ const aR = (e, s) => {
|
|
9512
9512
|
n,
|
9513
9513
|
n.filter((r) => (r.parentRefs ?? []).length == 0).map((r) => r),
|
9514
9514
|
a
|
9515
|
-
), Rt.next({ ...e, appType: s }), us.next([...n]),
|
9515
|
+
), Rt.next({ ...e, appType: s }), us.next([...n]), Za.next([...n]);
|
9516
9516
|
},
|
9517
9517
|
clearAppDetails() {
|
9518
9518
|
this.publishAppDetails({}, null);
|
@@ -9521,8 +9521,8 @@ const aR = (e, s) => {
|
|
9521
9521
|
getAppDetailsObservable: () => Rt.asObservable(),
|
9522
9522
|
getAppDetailsNodes: () => us.getValue(),
|
9523
9523
|
getAppDetailsNodesObservable: () => us.asObservable(),
|
9524
|
-
getAppDetailsFilteredNodes: () =>
|
9525
|
-
getAppDetailsNodesFilteredObservable: () =>
|
9524
|
+
getAppDetailsFilteredNodes: () => Za.getValue(),
|
9525
|
+
getAppDetailsNodesFilteredObservable: () => Za.asObservable(),
|
9526
9526
|
getiNodesByKind: (e) => {
|
9527
9527
|
const s = us.getValue();
|
9528
9528
|
return sR(s, e);
|
@@ -9711,7 +9711,7 @@ const oR = {
|
|
9711
9711
|
statusFetchCount: r
|
9712
9712
|
}) => {
|
9713
9713
|
e.icon = n === ae.UNABLE_TO_FETCH ? "disconnect" : "timed_out", e.displaySubText = "Unknown", e.isCollapsed = !1;
|
9714
|
-
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ?
|
9714
|
+
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ? pa(a, !0) : "--"}. ${r || "--"} retries failed.`;
|
9715
9715
|
e.timelineStatus = [q.KUBECTL_APPLY, q.APP_HEALTH].includes(
|
9716
9716
|
s
|
9717
9717
|
) ? i : "";
|
@@ -9987,12 +9987,12 @@ const SR = (e) => {
|
|
9987
9987
|
if (e.external)
|
9988
9988
|
e.externalType ? r.external = {
|
9989
9989
|
displayName: "Data type",
|
9990
|
-
value:
|
9990
|
+
value: Fa[s][e.externalType]
|
9991
9991
|
} : r.external = {
|
9992
9992
|
displayName: "Data type",
|
9993
|
-
value: s === "Secret" ?
|
9993
|
+
value: s === "Secret" ? Fa[s].KubernetesSecret : Fa[s].KubernetesConfigMap
|
9994
9994
|
};
|
9995
|
-
else if (r.external = { displayName: "Data type", value:
|
9995
|
+
else if (r.external = { displayName: "Data type", value: Fa[s][""] }, s === "Secret" && n.codeEditorValue.value) {
|
9996
9996
|
const o = JSON.parse(n.codeEditorValue.value);
|
9997
9997
|
let i = {};
|
9998
9998
|
n.codeEditorValue?.resolvedValue && (i = JSON.parse(n.codeEditorValue.resolvedValue));
|
@@ -10028,7 +10028,7 @@ const SR = (e) => {
|
|
10028
10028
|
};
|
10029
10029
|
}
|
10030
10030
|
return s === "Secret" && e.roleARN && (r.roleARN = { displayName: "Role ARN", value: e.roleARN }), r;
|
10031
|
-
},
|
10031
|
+
}, la = (e, s, n) => {
|
10032
10032
|
let a;
|
10033
10033
|
const r = { codeEditorValue: e.codeEditorValue, values: {} };
|
10034
10034
|
return delete e.codeEditorValue, s === Pt.DEPLOYMENT_TEMPLATE.VALUE ? a = SR(e) : s === Pt.PIPELINE_STRATEGY.VALUE ? a = vR(e) : a = IR(
|
@@ -10261,7 +10261,7 @@ const SR = (e) => {
|
|
10261
10261
|
}
|
10262
10262
|
);
|
10263
10263
|
};
|
10264
|
-
let
|
10264
|
+
let Ya = null;
|
10265
10265
|
const RR = ({
|
10266
10266
|
deploymentStatus: e,
|
10267
10267
|
deploymentAppType: s,
|
@@ -10277,7 +10277,7 @@ const RR = ({
|
|
10277
10277
|
const u = $r(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Dt(), [E, x] = w(
|
10278
10278
|
e?.toUpperCase() !== q.ABORTED
|
10279
10279
|
), g = rR.getAppDetails(), f = $(i), N = $(d), C = f.current && c ? c() : xi(s ?? g?.deploymentAppType), [S, b] = w(C), A = () => {
|
10280
|
-
|
10280
|
+
Ya && clearTimeout(Ya);
|
10281
10281
|
}, R = () => {
|
10282
10282
|
bR(p, _, !0, h, n, a).then((v) => {
|
10283
10283
|
e !== "Aborted" && T({
|
@@ -10302,19 +10302,19 @@ const RR = ({
|
|
10302
10302
|
v.deploymentAppType,
|
10303
10303
|
v
|
10304
10304
|
);
|
10305
|
-
A(), j.deploymentStatus === ae.INPROGRESS ?
|
10305
|
+
A(), j.deploymentStatus === ae.INPROGRESS ? Ya = setTimeout(() => {
|
10306
10306
|
R();
|
10307
|
-
}, 1e4) :
|
10307
|
+
}, 1e4) : Ya = setTimeout(() => {
|
10308
10308
|
R();
|
10309
10309
|
}, 3e4), b(j);
|
10310
10310
|
}, I = () => {
|
10311
10311
|
if (n) {
|
10312
|
-
|
10312
|
+
ca(
|
10313
10313
|
`${window.__BASE_URL__}${Se.APP}/${Se.DEVTRON_CHARTS}/${Se.APP_DEPLOYMNENT_HISTORY}/${p}/env/${_}/${Se.DETAILS}/${Se.APP_DETAILS_K8}?${Ul}`
|
10314
10314
|
)();
|
10315
10315
|
return;
|
10316
10316
|
}
|
10317
|
-
|
10317
|
+
ca(
|
10318
10318
|
`${window.__BASE_URL__}${Se.APP}/${p}/${Se.APP_DETAILS}/${_}/${Se.APP_DETAILS_K8}?${Ul}`
|
10319
10319
|
)();
|
10320
10320
|
}, y = () => !f.current && !S?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
@@ -10487,7 +10487,7 @@ const RR = ({
|
|
10487
10487
|
}
|
10488
10488
|
);
|
10489
10489
|
};
|
10490
|
-
function
|
10490
|
+
function da({ reload: e, className: s = "" }) {
|
10491
10491
|
return /* @__PURE__ */ t.jsx(
|
10492
10492
|
"article",
|
10493
10493
|
{
|
@@ -10593,7 +10593,7 @@ const Dn = ({
|
|
10593
10593
|
}
|
10594
10594
|
);
|
10595
10595
|
default:
|
10596
|
-
return /* @__PURE__ */ t.jsx(
|
10596
|
+
return /* @__PURE__ */ t.jsx(da, { reload: s, className: a });
|
10597
10597
|
}
|
10598
10598
|
})(), Yt = ({
|
10599
10599
|
content: e,
|
@@ -10616,7 +10616,7 @@ const Dn = ({
|
|
10616
10616
|
Ne();
|
10617
10617
|
}
|
10618
10618
|
}, _ = async (E) => {
|
10619
|
-
E &&
|
10619
|
+
E && ye(E), await p(!0);
|
10620
10620
|
};
|
10621
10621
|
M(() => {
|
10622
10622
|
r && p().catch(Ne);
|
@@ -10634,7 +10634,7 @@ const Dn = ({
|
|
10634
10634
|
className: `dc__outline-none-imp p-0 flex dc__transparent--unstyled dc__no-border ${o}`,
|
10635
10635
|
"aria-label": `Copy ${e}`,
|
10636
10636
|
onClick: _,
|
10637
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(
|
10637
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(ga, { className: h }) : /* @__PURE__ */ t.jsx(Yu, { className: h }) })
|
10638
10638
|
}
|
10639
10639
|
) });
|
10640
10640
|
}, Ep = Ut(null), lo = () => {
|
@@ -10690,7 +10690,7 @@ const Dn = ({
|
|
10690
10690
|
{
|
10691
10691
|
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 || ""}`,
|
10692
10692
|
children: [
|
10693
|
-
/* @__PURE__ */ t.jsx(
|
10693
|
+
/* @__PURE__ */ t.jsx(ha, { className: "code-editor__status-info-icon" }),
|
10694
10694
|
n,
|
10695
10695
|
s
|
10696
10696
|
]
|
@@ -10707,7 +10707,7 @@ const Dn = ({
|
|
10707
10707
|
children: e
|
10708
10708
|
}
|
10709
10709
|
), MR = ["Shift", "Enter"], kR = ["Enter"], UR = ["Enter"], $R = [
|
10710
|
-
|
10710
|
+
pr ? "Meta" : "Control",
|
10711
10711
|
"Alt",
|
10712
10712
|
"Enter"
|
10713
10713
|
], FR = ["Escape"], BR = 2e3, Cp = 14, VR = 20, GR = (e) => {
|
@@ -10850,17 +10850,17 @@ const Dn = ({
|
|
10850
10850
|
]
|
10851
10851
|
}
|
10852
10852
|
);
|
10853
|
-
},
|
10853
|
+
}, va = mu.define(), Np = Di.define({
|
10854
10854
|
create() {
|
10855
10855
|
return !1;
|
10856
10856
|
},
|
10857
10857
|
update(e, s) {
|
10858
|
-
const n = s.effects.find((a) => a.is(
|
10858
|
+
const n = s.effects.find((a) => a.is(va));
|
10859
10859
|
return n ? n.value : e;
|
10860
10860
|
}
|
10861
10861
|
}), gc = (e) => e.field(Np, !1) || !1, bp = (e) => (e.dispatch({
|
10862
|
-
effects: [
|
10863
|
-
}), of(e), !0), YR = (e) => (bp(e), e.dispatch({ effects: [
|
10862
|
+
effects: [va.of(rf(e.state) ? gc(e.state) : !1)]
|
10863
|
+
}), of(e), !0), YR = (e) => (bp(e), e.dispatch({ effects: [va.of(!e.state.readOnly && !0)] }), !0), WR = (e) => (gc(e.state) && pu(e), !0), KR = (e) => (e.contentDOM.blur(), !0), zR = _u.define(), qR = _u.define(), Yl = (e, s, n) => {
|
10864
10864
|
let a = null;
|
10865
10865
|
try {
|
10866
10866
|
a = JSON.parse(e);
|
@@ -10986,9 +10986,9 @@ const Dn = ({
|
|
10986
10986
|
}, ql = (e, s = !1) => {
|
10987
10987
|
switch (e) {
|
10988
10988
|
case it.JSON:
|
10989
|
-
return [uf(), ...s ? [] : [
|
10989
|
+
return [uf(), ...s ? [] : [lr(Cf())]];
|
10990
10990
|
case it.YAML:
|
10991
|
-
return [df(), ...s ? [] : [
|
10991
|
+
return [df(), ...s ? [] : [lr(u0())]];
|
10992
10992
|
case it.SHELL:
|
10993
10993
|
return kc.define(lf);
|
10994
10994
|
case it.DOCKERFILE:
|
@@ -11006,7 +11006,7 @@ const Dn = ({
|
|
11006
11006
|
switch (e) {
|
11007
11007
|
case it.JSON:
|
11008
11008
|
return [
|
11009
|
-
|
11009
|
+
lr(gf(), {
|
11010
11010
|
needsRefresh: Bc
|
11011
11011
|
}),
|
11012
11012
|
hf.data.of({
|
@@ -11021,7 +11021,7 @@ const Dn = ({
|
|
11021
11021
|
];
|
11022
11022
|
case it.YAML:
|
11023
11023
|
return [
|
11024
|
-
|
11024
|
+
lr(pf(), {
|
11025
11025
|
needsRefresh: Bc
|
11026
11026
|
}),
|
11027
11027
|
mf.data.of({
|
@@ -11120,7 +11120,7 @@ const Dn = ({
|
|
11120
11120
|
}, R = (D) => {
|
11121
11121
|
p({ regexp: D });
|
11122
11122
|
}, T = () => {
|
11123
|
-
d(!l), e.dispatch({ effects: [
|
11123
|
+
d(!l), e.dispatch({ effects: [va.of(!l)] });
|
11124
11124
|
}, I = (D) => {
|
11125
11125
|
D.preventDefault(), D.stopPropagation(), If(e);
|
11126
11126
|
}, y = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
|
@@ -11369,7 +11369,7 @@ const Dn = ({
|
|
11369
11369
|
}, i = ({ transactions: c, docChanged: l, state: d, startState: u }) => {
|
11370
11370
|
c.forEach((m) => {
|
11371
11371
|
m.effects.forEach((p) => {
|
11372
|
-
p.is(fu) && r(), p.is(
|
11372
|
+
p.is(fu) && r(), p.is(va) && r();
|
11373
11373
|
});
|
11374
11374
|
}), (l || d.readOnly !== u.readOnly) && r();
|
11375
11375
|
};
|
@@ -11522,11 +11522,11 @@ const Dn = ({
|
|
11522
11522
|
const K = document.querySelector("body");
|
11523
11523
|
if (K) {
|
11524
11524
|
if (I) {
|
11525
|
-
const Ce = I.a,
|
11526
|
-
le = (Ce.hasFocus ||
|
11525
|
+
const Ce = I.a, Ae = I.b;
|
11526
|
+
le = (Ce.hasFocus || Ae.hasFocus) && (Ce.scrollDOM.scrollWidth > Ce.scrollDOM.clientWidth || Ae.scrollDOM.scrollWidth > Ae.scrollDOM.clientWidth);
|
11527
11527
|
} else if (D.current?.view) {
|
11528
|
-
const { scrollWidth: Ce, clientWidth:
|
11529
|
-
le = D.current.view.hasFocus && Ce >
|
11528
|
+
const { scrollWidth: Ce, clientWidth: Ae } = D.current.view.scrollDOM;
|
11529
|
+
le = D.current.view.hasFocus && Ce > Ae;
|
11530
11530
|
}
|
11531
11531
|
le ? K.classList.add("dc__overscroll-none") : K.classList.remove("dc__overscroll-none");
|
11532
11532
|
}
|
@@ -11747,13 +11747,13 @@ const Dn = ({
|
|
11747
11747
|
ne(V);
|
11748
11748
|
}, Ce = (V) => {
|
11749
11749
|
me(V);
|
11750
|
-
},
|
11750
|
+
}, Ae = (V) => (R(), bp(V)), at = (V) => (R(), YR(V)), Ye = () => [
|
11751
11751
|
Wc(le),
|
11752
11752
|
Of({ closeOnBlur: !1 }),
|
11753
11753
|
be,
|
11754
11754
|
wf.of([
|
11755
11755
|
...Uf.filter(({ key: V }) => V !== "Mod-Alt-Enter" && V !== "Mod-Enter" && V !== "Mod-f"),
|
11756
|
-
...v ? [] : [{ key: "Mod-f", run:
|
11756
|
+
...v ? [] : [{ key: "Mod-f", run: Ae, scope: "editor search-panel" }],
|
11757
11757
|
{ key: "Mod-Enter", run: WR, scope: "editor search-panel" },
|
11758
11758
|
{ key: "Mod-Alt-f", run: at, scope: "editor search-panel" },
|
11759
11759
|
{ key: "Escape", run: KR, stopPropagation: !0 }
|
@@ -11772,7 +11772,7 @@ const Dn = ({
|
|
11772
11772
|
...Ye(),
|
11773
11773
|
...xe ? [] : t0({ mode: o, schemaURI: N, validatorSchema: f }),
|
11774
11774
|
Do
|
11775
|
-
],
|
11775
|
+
], Re = [
|
11776
11776
|
Z,
|
11777
11777
|
...Ye(),
|
11778
11778
|
Do,
|
@@ -11816,7 +11816,7 @@ const Dn = ({
|
|
11816
11816
|
onBlur: S,
|
11817
11817
|
onFocus: b,
|
11818
11818
|
autoFocus: A,
|
11819
|
-
originalViewExtensions:
|
11819
|
+
originalViewExtensions: Re,
|
11820
11820
|
modifiedViewExtensions: st,
|
11821
11821
|
extensions: re,
|
11822
11822
|
diffMinimapExtensions: zt,
|
@@ -11877,7 +11877,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
11877
11877
|
added: $h,
|
11878
11878
|
deleted: Fh,
|
11879
11879
|
noDiff: null
|
11880
|
-
},
|
11880
|
+
}, Wa = {
|
11881
11881
|
hasDiff: "File has difference",
|
11882
11882
|
added: "File has been added",
|
11883
11883
|
deleted: "File has been deleted",
|
@@ -11887,7 +11887,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
11887
11887
|
added: "cg-5",
|
11888
11888
|
deleted: "cr-5",
|
11889
11889
|
noDiff: "cn-7"
|
11890
|
-
},
|
11890
|
+
}, Qa = "sort-config", f0 = ({
|
11891
11891
|
diffState: e,
|
11892
11892
|
showDetailedDiffState: s,
|
11893
11893
|
hideDiffState: n,
|
@@ -12324,7 +12324,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12324
12324
|
iconConfig: {
|
12325
12325
|
Icon: d ? Wn[b] : Wn.hasDiff,
|
12326
12326
|
tooltipProps: {
|
12327
|
-
content: d ?
|
12327
|
+
content: d ? Wa[b] : Wa.hasDiff,
|
12328
12328
|
arrow: !1,
|
12329
12329
|
placement: "right"
|
12330
12330
|
}
|
@@ -12343,14 +12343,14 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12343
12343
|
] }), g = () => {
|
12344
12344
|
const { tabs: C, activeTab: S } = c;
|
12345
12345
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12346
|
-
|
12346
|
+
_a,
|
12347
12347
|
{
|
12348
12348
|
name: "deployment-config-diff-tab-list",
|
12349
12349
|
initialTab: S,
|
12350
12350
|
onChange: E,
|
12351
12351
|
disabled: e,
|
12352
12352
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
12353
|
-
children: C.map((b) => /* @__PURE__ */ t.jsx(
|
12353
|
+
children: C.map((b) => /* @__PURE__ */ t.jsx(_a.Radio, { value: b, className: "fs-12 lh-20 cn-7 fw-6", children: b }, b))
|
12354
12354
|
}
|
12355
12355
|
) });
|
12356
12356
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -12370,7 +12370,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12370
12370
|
Ie,
|
12371
12371
|
{
|
12372
12372
|
className: "default-tt",
|
12373
|
-
content: d ?
|
12373
|
+
content: d ? Wa[A] : Wa.hasDiff,
|
12374
12374
|
arrow: !1,
|
12375
12375
|
placement: "right",
|
12376
12376
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(T, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
@@ -12537,7 +12537,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12537
12537
|
value: Os(c, o)
|
12538
12538
|
};
|
12539
12539
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
12540
|
-
},
|
12540
|
+
}, er = (e, s) => {
|
12541
12541
|
const n = !!e.codeEditorValue.value, a = !!s.codeEditorValue.value;
|
12542
12542
|
return !n && a ? Vt.DELETED : n && !a ? Vt.ADDED : qn(e, s) ? Vt.NO_DIFF : Vt.HAS_DIFF;
|
12543
12543
|
}, td = (e, s) => {
|
@@ -12554,11 +12554,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12554
12554
|
a,
|
12555
12555
|
r,
|
12556
12556
|
o
|
12557
|
-
), l = n === Qt.Secret ? Pt.SECRET.VALUE : Pt.CONFIGMAP.VALUE, d =
|
12557
|
+
), l = n === Qt.Secret ? Pt.SECRET.VALUE : Pt.CONFIGMAP.VALUE, d = la(
|
12558
12558
|
{ ...e || {}, codeEditorValue: i },
|
12559
12559
|
l,
|
12560
12560
|
n === Qt.Secret && !a
|
12561
|
-
), u =
|
12561
|
+
), u = la(
|
12562
12562
|
{ ...s || {}, codeEditorValue: c },
|
12563
12563
|
l,
|
12564
12564
|
n === Qt.Secret && !r
|
@@ -12566,7 +12566,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12566
12566
|
return {
|
12567
12567
|
compareToDiff: d,
|
12568
12568
|
compareWithDiff: u,
|
12569
|
-
diffState:
|
12569
|
+
diffState: er(
|
12570
12570
|
td(e, d),
|
12571
12571
|
td(s, u)
|
12572
12572
|
)
|
@@ -12576,7 +12576,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12576
12576
|
displayName: "data",
|
12577
12577
|
value: a ? Os(a, n) : ""
|
12578
12578
|
};
|
12579
|
-
return
|
12579
|
+
return la(
|
12580
12580
|
{
|
12581
12581
|
...v0(e, s),
|
12582
12582
|
codeEditorValue: r
|
@@ -12588,7 +12588,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12588
12588
|
displayName: "data",
|
12589
12589
|
value: e.data
|
12590
12590
|
};
|
12591
|
-
return
|
12591
|
+
return la(
|
12592
12592
|
{ codeEditorValue: s },
|
12593
12593
|
Pt.DEPLOYMENT_TEMPLATE.VALUE
|
12594
12594
|
);
|
@@ -12597,7 +12597,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12597
12597
|
displayName: "data",
|
12598
12598
|
value: e?.data ? Os(e.data, s) : ""
|
12599
12599
|
};
|
12600
|
-
return
|
12600
|
+
return la(
|
12601
12601
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
12602
12602
|
Pt.PIPELINE_STRATEGY.VALUE
|
12603
12603
|
);
|
@@ -12619,7 +12619,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12619
12619
|
/* @__PURE__ */ t.jsx(Vh, { className: "icon-dim-16 dc__no-shrink" }),
|
12620
12620
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cv-5", children: "Approval pending" })
|
12621
12621
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
12622
|
-
/* @__PURE__ */ t.jsx(
|
12622
|
+
/* @__PURE__ */ t.jsx(ga, { className: "scn-9 icon-dim-16" }),
|
12623
12623
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Published" })
|
12624
12624
|
] });
|
12625
12625
|
}, rd = (e, s) => {
|
@@ -12753,7 +12753,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12753
12753
|
heading: Nr(E.deploymentTemplate, !0),
|
12754
12754
|
list: g
|
12755
12755
|
},
|
12756
|
-
diffState:
|
12756
|
+
diffState: er(g, f)
|
12757
12757
|
};
|
12758
12758
|
let C, S, b;
|
12759
12759
|
if (E.pipelineConfigData || x.pipelineConfigData) {
|
@@ -12780,7 +12780,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12780
12780
|
heading: null,
|
12781
12781
|
list: C
|
12782
12782
|
},
|
12783
|
-
diffState:
|
12783
|
+
diffState: er(v, j)
|
12784
12784
|
};
|
12785
12785
|
}
|
12786
12786
|
const A = od(
|
@@ -12871,7 +12871,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12871
12871
|
heading: /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Generated Manifest" }),
|
12872
12872
|
list: u
|
12873
12873
|
},
|
12874
|
-
diffState:
|
12874
|
+
diffState: er(u, m),
|
12875
12875
|
singleView: !0
|
12876
12876
|
}, _ = [p], h = [
|
12877
12877
|
{
|
@@ -13026,7 +13026,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13026
13026
|
data: c,
|
13027
13027
|
hasMore: c.size >= en
|
13028
13028
|
}), [T, I] = w(n);
|
13029
|
-
M(() => (N({ compareWfrId: f }), s(!0), C !==
|
13029
|
+
M(() => (N({ compareWfrId: f }), s(!0), C !== Qa && b(Qa), () => {
|
13030
13030
|
i(!1), s(!1);
|
13031
13031
|
}), []);
|
13032
13032
|
const y = async (W) => {
|
@@ -13098,7 +13098,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13098
13098
|
}
|
13099
13099
|
]
|
13100
13100
|
}, ee = () => k ? u ? `Diff unavailable: Configurations for deployment execution ‘${D?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${D?.label || "N/A"} & ${P}` : null, be = {
|
13101
|
-
handleSorting: () => b(S !== Te.DESC ?
|
13101
|
+
handleSorting: () => b(S !== Te.DESC ? Qa : ""),
|
13102
13102
|
sortBy: C,
|
13103
13103
|
sortOrder: S
|
13104
13104
|
}, Ee = {
|
@@ -13179,7 +13179,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13179
13179
|
compareList: G,
|
13180
13180
|
getNavItemHref: I,
|
13181
13181
|
convertVariables: S,
|
13182
|
-
sortingConfig: { sortBy:
|
13182
|
+
sortingConfig: { sortBy: Qa, sortOrder: Te.ASC }
|
13183
13183
|
});
|
13184
13184
|
return { deploymentConfigList: Z, sortedDeploymentConfigList: be };
|
13185
13185
|
}
|
@@ -13282,7 +13282,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13282
13282
|
};
|
13283
13283
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
13284
13284
|
!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: [
|
13285
|
-
/* @__PURE__ */ t.jsx(
|
13285
|
+
/* @__PURE__ */ t.jsx(ha, { className: "mr-8 ml-14 icon-dim-20" }),
|
13286
13286
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
13287
13287
|
Pt[r.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
13288
13288
|
o ? ` “${o}”` : "",
|
@@ -13399,14 +13399,14 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13399
13399
|
index: i,
|
13400
13400
|
isExcluded: c = !1
|
13401
13401
|
}) => {
|
13402
|
-
const l = cc(n), d = e === es.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl :
|
13402
|
+
const l = cc(n), d = e === es.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl : ba(r, l.commit), p = (A) => A ? /* @__PURE__ */ t.jsx(
|
13403
13403
|
"a",
|
13404
13404
|
{
|
13405
13405
|
href: RI(r, A),
|
13406
13406
|
target: "_blank",
|
13407
13407
|
rel: "noopener noreferrer",
|
13408
13408
|
className: "commit-hash fs-14 px-6 mono",
|
13409
|
-
onClick:
|
13409
|
+
onClick: ye,
|
13410
13410
|
children: A
|
13411
13411
|
}
|
13412
13412
|
) : null;
|
@@ -13467,7 +13467,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13467
13467
|
target: "_blank",
|
13468
13468
|
rel: "noopener noreferrer",
|
13469
13469
|
className: "commit-hash fs-13 px-6 dc__w-fit-content cursor flex left dc__gap-4",
|
13470
|
-
onClick:
|
13470
|
+
onClick: ye,
|
13471
13471
|
children: [
|
13472
13472
|
/* @__PURE__ */ t.jsx(Kh, {}),
|
13473
13473
|
" ",
|
@@ -13519,7 +13519,7 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13519
13519
|
target: "_blank",
|
13520
13520
|
rel: "noopener noreferrer",
|
13521
13521
|
className: "commit-hash",
|
13522
|
-
onClick:
|
13522
|
+
onClick: ye,
|
13523
13523
|
"data-testid": `deployment-history-source-code-material-history${i}`,
|
13524
13524
|
children: /* @__PURE__ */ t.jsxs(
|
13525
13525
|
"div",
|
@@ -13820,20 +13820,20 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13820
13820
|
] })
|
13821
13821
|
] });
|
13822
13822
|
}, jp = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
13823
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
13823
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(ha, { className: "icon-dim-20" }) }),
|
13824
13824
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
13825
13825
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
13826
13826
|
] }) }), z0 = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13827
13827
|
jp("Logs are available only at runtime."),
|
13828
13828
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox configure-blob-container pt-8 pr-12 pb-8 pl-12 bcv-1 br-4", children: [
|
13829
|
-
/* @__PURE__ */ t.jsx(
|
13829
|
+
/* @__PURE__ */ t.jsx(fa, { className: "icon-dim-20 fcv-5" }),
|
13830
13830
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8 text__white", children: "Want to store logs to view later?" }),
|
13831
|
-
/* @__PURE__ */ t.jsx(
|
13831
|
+
/* @__PURE__ */ t.jsx(Sa, { docLinkKey: "BLOB_STORAGE", text: "Configure blob storage", dataTestId: "configure-blob-storage" }),
|
13832
13832
|
/* @__PURE__ */ t.jsx(Ru, { className: "icon-dim-20 ml-8" })
|
13833
13833
|
] })
|
13834
13834
|
] }), q0 = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-grow-1 flex-align-center dc__height-inherit dark-background", children: e ? jp() : z0() }), X0 = (e, s) => {
|
13835
13835
|
const [n, a] = w([]);
|
13836
|
-
let r =
|
13836
|
+
let r = Ha;
|
13837
13837
|
const [o, i] = w(!1), [c, l] = w(1e3), d = $([]), u = $(null);
|
13838
13838
|
function m() {
|
13839
13839
|
a((f) => [...f, ...d.current]), d.current = [];
|
@@ -13843,23 +13843,23 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13843
13843
|
u.current && u.current.close && u.current.close();
|
13844
13844
|
}
|
13845
13845
|
function _(f) {
|
13846
|
-
f.type === "message" && (r =
|
13846
|
+
f.type === "message" && (r = Ha, d.current.push(f.data));
|
13847
13847
|
}
|
13848
13848
|
function h() {
|
13849
|
-
r =
|
13849
|
+
r = Ha, d.current = [], a([]);
|
13850
13850
|
}
|
13851
13851
|
function E() {
|
13852
|
-
r =
|
13852
|
+
r = Ha, a((f) => [...f, ...d.current]), d.current = [], u.current.close(), l(null);
|
13853
13853
|
}
|
13854
13854
|
function x() {
|
13855
|
-
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(
|
13855
|
+
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(Ga.MESSAGE, _), u.current.addEventListener(Ga.START_OF_STREAM, h), u.current.addEventListener(Ga.END_OF_STREAM, E), u.current.addEventListener(Ga.ERROR, g);
|
13856
13856
|
}
|
13857
13857
|
function g(f) {
|
13858
13858
|
r -= 1, u.current && u.current.close(), r > 0 ? x() : (i(!0), l(null));
|
13859
13859
|
}
|
13860
13860
|
return M(() => (e && x(), p), [e, s]), [n, u.current, o];
|
13861
13861
|
}, J0 = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
13862
|
-
const { pipelineId: r, envId: o, appId: i } = Dt(), c = $(null), l = n === Ge.CI ? `${
|
13862
|
+
const { pipelineId: r, envId: o, appId: i } = Dt(), c = $(null), l = n === Ge.CI ? `${mr}/${Y.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${mr}/${Y.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [d, u, m] = X0(
|
13863
13863
|
e.podStatus && e.podStatus !== Oo.PENDING && l
|
13864
13864
|
), [p, _] = w([]), [h, E] = w([]), [x, g] = w(0), [f, N] = w([]), { searchKey: C, handleSearch: S } = mc(), b = h.length > 0, A = X(() => p.every((W) => W.isOpen), [p]), R = A ? "Collapse all stages" : "Expand all stages", { registerShortcut: T, unregisterShortcut: I } = wn(), y = d[0]?.startsWith($l) || !1;
|
13865
13865
|
function v({
|
@@ -13873,15 +13873,15 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13873
13873
|
try {
|
13874
13874
|
if (W = W.replace(/\[[.]*m/, (me) => `\x1B[${me}m`), ce && y) {
|
13875
13875
|
const me = W.split(tl), le = W.match(tl) || [], K = new RegExp(`(${Wv(ce)})`, "ig");
|
13876
|
-
W = me.reduce((
|
13876
|
+
W = me.reduce((Ae, at, Ye) => {
|
13877
13877
|
try {
|
13878
|
-
se = se || K.test(at),
|
13878
|
+
se = se || K.test(at), Ae.push(
|
13879
13879
|
at.replace(K, (re) => (de && xe?.push(de), `\x1B[0m\x1B[48;2;${xe && ie === xe.length - 1 ? "0;102;204" : "197;141;54"}m${re}\x1B[0m${Ye > 0 ? le[Ye - 1] : ""}`))
|
13880
13880
|
);
|
13881
13881
|
} catch {
|
13882
|
-
|
13882
|
+
Ae.push(at);
|
13883
13883
|
}
|
13884
|
-
return Ye < me.length - 1 &&
|
13884
|
+
return Ye < me.length - 1 && Ae.push(le[Ye]), Ae;
|
13885
13885
|
}, []).join("");
|
13886
13886
|
}
|
13887
13887
|
return {
|
@@ -13902,13 +13902,13 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13902
13902
|
), xe = {}, de = [], se = d.reduce((ne, me, le) => {
|
13903
13903
|
if (me.startsWith($l))
|
13904
13904
|
try {
|
13905
|
-
const { stage: K, startTime: Ce, endTime:
|
13905
|
+
const { stage: K, startTime: Ce, endTime: Ae, status: at, metadata: Ye } = JSON.parse(
|
13906
13906
|
me.split(yA)[1]
|
13907
|
-
), re = ne.find((st) => st.stage === K && st.startTime === Ce),
|
13907
|
+
), re = ne.find((st) => st.stage === K && st.startTime === Ce), Re = ce[K]?.[Ce] ?? {};
|
13908
13908
|
if (re)
|
13909
|
-
re.endTime =
|
13909
|
+
re.endTime = Ae, re.status = at, re.isOpen = j(
|
13910
13910
|
at,
|
13911
|
-
|
13911
|
+
Re.isOpen,
|
13912
13912
|
!!xe[K]?.[Ce],
|
13913
13913
|
!!ie
|
13914
13914
|
);
|
@@ -13917,11 +13917,11 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13917
13917
|
ne.push({
|
13918
13918
|
stage: K || `Untitled stage ${le + 1}`,
|
13919
13919
|
startTime: Ce || "",
|
13920
|
-
endTime:
|
13920
|
+
endTime: Ae || "",
|
13921
13921
|
// Would be defining the state when we receive the end status, otherwise it is loading and would be open
|
13922
13922
|
isOpen: j(
|
13923
13923
|
st,
|
13924
|
-
|
13924
|
+
Re.isOpen,
|
13925
13925
|
// Wont be present in case of start stage since no logs are present yet
|
13926
13926
|
!!xe[K]?.[Ce],
|
13927
13927
|
!!ie
|
@@ -13939,14 +13939,14 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13939
13939
|
const K = ne[ne.length - 1], Ce = dp({
|
13940
13940
|
stageIndex: ne.length - 1,
|
13941
13941
|
lineNumberInsideStage: K.logs.length
|
13942
|
-
}), { __html:
|
13942
|
+
}), { __html: Ae, isSearchKeyPresent: at } = v({
|
13943
13943
|
log: me,
|
13944
13944
|
currentIndex: W,
|
13945
13945
|
searchMatchResults: de,
|
13946
13946
|
targetSearchKey: ie,
|
13947
13947
|
searchIndex: Ce
|
13948
13948
|
});
|
13949
|
-
K.logs.push(
|
13949
|
+
K.logs.push(Ae), at && (K.isOpen = j(
|
13950
13950
|
K.status,
|
13951
13951
|
ce[K.stage]?.[K.startTime]?.isOpen,
|
13952
13952
|
!0,
|
@@ -14477,8 +14477,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14477
14477
|
title: e,
|
14478
14478
|
...s
|
14479
14479
|
}) => {
|
14480
|
-
const { children: n, selectProps: a, getValue: r } = s, o = r() || [], i = () => a.menuIsOpen ? a.inputValue ? /* @__PURE__ */ t.jsx(
|
14481
|
-
/* @__PURE__ */ t.jsx(
|
14480
|
+
const { children: n, selectProps: a, getValue: r } = s, o = r() || [], i = () => a.menuIsOpen ? a.inputValue ? /* @__PURE__ */ t.jsx(ur, { className: "icon-dim-16 dc__no-shrink mr-4 mw-18" }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14481
|
+
/* @__PURE__ */ t.jsx(ur, { className: "icon-dim-16 dc__no-shrink mr-4 mw-18" }),
|
14482
14482
|
/* @__PURE__ */ t.jsx("span", { className: "dc__position-abs dc__left-35 cn-5 ml-2", children: a.placeholder })
|
14483
14483
|
] }) : o.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14484
14484
|
/* @__PURE__ */ t.jsx(Fu, { className: "icon-dim-16 dc__no-shrink mr-4 mw-18" }),
|
@@ -14534,8 +14534,8 @@ const xc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14534
14534
|
Ci,
|
14535
14535
|
{
|
14536
14536
|
commits: [r.Commit],
|
14537
|
-
handleClick:
|
14538
|
-
|
14537
|
+
handleClick: ca(
|
14538
|
+
ba(a.url, r.Commit)
|
14539
14539
|
)
|
14540
14540
|
}
|
14541
14541
|
),
|
@@ -15251,7 +15251,7 @@ const uy = (e) => {
|
|
15251
15251
|
exit: { y: 100, opacity: 0, scale: 0.75, transition: { duration: 0.35 } },
|
15252
15252
|
initial: { y: 100, opacity: 0, scale: 0.75 },
|
15253
15253
|
animate: { y: 0, opacity: 1, scale: 1 },
|
15254
|
-
onClick:
|
15254
|
+
onClick: ye,
|
15255
15255
|
children: [
|
15256
15256
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 p-20", children: [
|
15257
15257
|
C ? null : Jn(N, {
|
@@ -15396,7 +15396,7 @@ const uy = (e) => {
|
|
15396
15396
|
children: _
|
15397
15397
|
}) => {
|
15398
15398
|
const [h, E] = w(!1), [x, g] = w(!1), [f, N] = w(u), [C, S] = w(o), b = async (v) => {
|
15399
|
-
v &&
|
15399
|
+
v && ye(v), S(!0);
|
15400
15400
|
try {
|
15401
15401
|
await i(), Ve.showToast({
|
15402
15402
|
variant: ve.success,
|
@@ -15634,8 +15634,8 @@ const uy = (e) => {
|
|
15634
15634
|
Ci,
|
15635
15635
|
{
|
15636
15636
|
commits: [_.Commit],
|
15637
|
-
handleClick:
|
15638
|
-
|
15637
|
+
handleClick: ca(
|
15638
|
+
ba(p.url, _.Commit)
|
15639
15639
|
)
|
15640
15640
|
}
|
15641
15641
|
),
|
@@ -16181,7 +16181,7 @@ const uy = (e) => {
|
|
16181
16181
|
title: et.TRIGGER_NOT_FOUND.TITLE,
|
16182
16182
|
subTitle: et.TRIGGER_NOT_FOUND.SUBTITLE
|
16183
16183
|
}
|
16184
|
-
) : !G && !j && !v ? /* @__PURE__ */ t.jsx(
|
16184
|
+
) : !G && !j && !v ? /* @__PURE__ */ t.jsx(da, {}) : G && !(ee || j) && !v ? /* @__PURE__ */ t.jsx(da, {}) : v?.id !== +T ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16185
16185
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16186
16186
|
/* @__PURE__ */ t.jsx(
|
16187
16187
|
by,
|
@@ -16351,7 +16351,7 @@ const uy = (e) => {
|
|
16351
16351
|
_()
|
16352
16352
|
] });
|
16353
16353
|
};
|
16354
|
-
class
|
16354
|
+
class Ia extends Be.Component {
|
16355
16355
|
constructor(n) {
|
16356
16356
|
super(n);
|
16357
16357
|
pe(this, "handleBodyClick", (n) => {
|
@@ -16369,7 +16369,7 @@ class va extends Be.Component {
|
|
16369
16369
|
onEscape: this.escFunction,
|
16370
16370
|
onClick: this.handleBodyClick,
|
16371
16371
|
initialFocus: this.props.initialFocus ?? void 0,
|
16372
|
-
children: /* @__PURE__ */ t.jsx("div", { className: this.props.parentClassName,
|
16372
|
+
children: /* @__PURE__ */ t.jsx("div", { className: this.props.parentClassName, children: /* @__PURE__ */ t.jsx("div", { className: `visible-modal__body ${this.props.className || ""}`, children: this.props.children }) })
|
16373
16373
|
}
|
16374
16374
|
);
|
16375
16375
|
}
|
@@ -16393,7 +16393,7 @@ const Cc = ({
|
|
16393
16393
|
}), []);
|
16394
16394
|
const p = {};
|
16395
16395
|
return (s === "left" || s === "right") && (p["--width"] = a, p["--minWidth"] = r, p["--maxWidth"] = o), (s === "top" || s === "bottom") && (p["--height"] = n), /* @__PURE__ */ t.jsx(
|
16396
|
-
|
16396
|
+
Ia,
|
16397
16397
|
{
|
16398
16398
|
className: "drawer--container",
|
16399
16399
|
parentClassName: i || "",
|
@@ -16802,8 +16802,8 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16802
16802
|
y.current = setTimeout(
|
16803
16803
|
async () => {
|
16804
16804
|
try {
|
16805
|
-
const
|
16806
|
-
k(
|
16805
|
+
const Ae = await v();
|
16806
|
+
k(Ae);
|
16807
16807
|
} catch {
|
16808
16808
|
}
|
16809
16809
|
G();
|
@@ -16853,7 +16853,7 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16853
16853
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20", children: "Deployment status:" }),
|
16854
16854
|
/* @__PURE__ */ t.jsx(Ln, { status: P.deploymentStatus, hideIcon: !0 })
|
16855
16855
|
] }),
|
16856
|
-
subTitle: `Triggered at ${
|
16856
|
+
subTitle: `Triggered at ${pa(P.deploymentTriggerTime)} by ${P.triggeredBy}`,
|
16857
16857
|
imageType: Hs.Large
|
16858
16858
|
}
|
16859
16859
|
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -16891,7 +16891,7 @@ const Uy = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
16891
16891
|
"div",
|
16892
16892
|
{
|
16893
16893
|
className: "flexbox-col dc__content-space h-100 bg__modal--primary shadow__modal app-status-modal",
|
16894
|
-
onClick:
|
16894
|
+
onClick: ye,
|
16895
16895
|
children: [
|
16896
16896
|
/* @__PURE__ */ t.jsxs("div", { className: "app-status-modal__header pt-12 flexbox-col px-20 dc__gap-12 border__primary--bottom dc__no-shrink", children: [
|
16897
16897
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__gap-4", children: [
|
@@ -17165,7 +17165,7 @@ const Wy = {
|
|
17165
17165
|
[-1]: "Failed",
|
17166
17166
|
0: "Progressing",
|
17167
17167
|
1: "Completed"
|
17168
|
-
},
|
17168
|
+
}, Aa = ({ severity: e, count: s }) => {
|
17169
17169
|
const n = s ? `${s} ${cu(e)}` : cu(e), a = {
|
17170
17170
|
size: L.xxs,
|
17171
17171
|
label: n
|
@@ -17230,7 +17230,7 @@ const Wy = {
|
|
17230
17230
|
}
|
17231
17231
|
)
|
17232
17232
|
] }), Ky = ({ entities: e, lastScanTimeString: s, scanToolName: n, scanToolUrl: a }) => /* @__PURE__ */ t.jsxs("div", { className: "info-card", children: [
|
17233
|
-
/* @__PURE__ */ t.jsx(
|
17233
|
+
/* @__PURE__ */ t.jsx(ia, { entities: e, rootClassName: "p-16 fs-13", countClassName: "fw-6", showAnimationOnBar: !0 }),
|
17234
17234
|
(s || n) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17235
17235
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-bottom-n1 w-100 h-1" }),
|
17236
17236
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__content-space pl-16 pr-16 pb-8 pt-8", children: [
|
@@ -17256,7 +17256,7 @@ const Wy = {
|
|
17256
17256
|
)
|
17257
17257
|
] })
|
17258
17258
|
] })
|
17259
|
-
] }),
|
17259
|
+
] }), Ra = ({
|
17260
17260
|
children: e,
|
17261
17261
|
detailViewData: s,
|
17262
17262
|
setDetailViewData: n
|
@@ -17328,7 +17328,7 @@ const Wy = {
|
|
17328
17328
|
Q.FAILURES,
|
17329
17329
|
Q.EXCEPTIONS,
|
17330
17330
|
Q.SUCCESSES
|
17331
|
-
],
|
17331
|
+
], ya = br.DESC, Tc = {
|
17332
17332
|
image: fn,
|
17333
17333
|
title: "Scan failed",
|
17334
17334
|
subTitle: "Error: Security scan failed"
|
@@ -17345,7 +17345,7 @@ const Wy = {
|
|
17345
17345
|
value: e[s]
|
17346
17346
|
}
|
17347
17347
|
).filter((s) => !!s)
|
17348
|
-
),
|
17348
|
+
), ja = (e) => e && Object.keys(e).sort(
|
17349
17349
|
(s, n) => Sr.indexOf(s) - Sr.indexOf(n)
|
17350
17350
|
).map((s) => `${e[s]} ${Tr[s].label}`).join(", "), bd = (e) => ({
|
17351
17351
|
[Q.UNKNOWN]: 1,
|
@@ -17356,7 +17356,7 @@ const Wy = {
|
|
17356
17356
|
[Q.FAILURES]: 6,
|
17357
17357
|
[Q.EXCEPTIONS]: 7,
|
17358
17358
|
[Q.SUCCESSES]: 8
|
17359
|
-
})[e] || 1e4,
|
17359
|
+
})[e] || 1e4, Oa = (e, s) => bd(e) - bd(s), zG = (e) => {
|
17360
17360
|
const s = e[_e.IMAGE_SCAN].vulnerability?.summary?.severities, n = e[_e.CODE_SCAN].vulnerability?.summary?.severities;
|
17361
17361
|
return {
|
17362
17362
|
critical: (s?.[Q.CRITICAL] || 0) + (n?.[Q.CRITICAL] || 0),
|
@@ -17567,13 +17567,13 @@ const Wy = {
|
|
17567
17567
|
kubernetesManifest: n
|
17568
17568
|
}) => ({
|
17569
17569
|
...e && {
|
17570
|
-
[_e.IMAGE_SCAN]:
|
17570
|
+
[_e.IMAGE_SCAN]: tr[_e.IMAGE_SCAN]
|
17571
17571
|
},
|
17572
17572
|
...s && {
|
17573
|
-
[_e.CODE_SCAN]:
|
17573
|
+
[_e.CODE_SCAN]: tr[_e.CODE_SCAN]
|
17574
17574
|
},
|
17575
17575
|
...n && {
|
17576
|
-
[_e.KUBERNETES_MANIFEST]:
|
17576
|
+
[_e.KUBERNETES_MANIFEST]: tr[_e.KUBERNETES_MANIFEST]
|
17577
17577
|
}
|
17578
17578
|
}), aj = (e) => {
|
17579
17579
|
const { imageScan: s, codeScan: n, kubernetesManifest: a } = e, r = Fp({
|
@@ -17612,8 +17612,8 @@ const Wy = {
|
|
17612
17612
|
headerText: "severity",
|
17613
17613
|
isSortable: !0,
|
17614
17614
|
width: 100,
|
17615
|
-
compareFunc:
|
17616
|
-
defaultSortOrder:
|
17615
|
+
compareFunc: Oa,
|
17616
|
+
defaultSortOrder: ya
|
17617
17617
|
},
|
17618
17618
|
{ headerText: "package", isSortable: !0, width: 143.33 },
|
17619
17619
|
{ headerText: "current version", isSortable: !1, width: 143.33 },
|
@@ -17639,7 +17639,7 @@ const Wy = {
|
|
17639
17639
|
cellContent: n.cveId
|
17640
17640
|
},
|
17641
17641
|
{
|
17642
|
-
component: /* @__PURE__ */ t.jsx(
|
17642
|
+
component: /* @__PURE__ */ t.jsx(Aa, { severity: n.severity }),
|
17643
17643
|
cellContent: n.severity
|
17644
17644
|
},
|
17645
17645
|
{
|
@@ -17668,8 +17668,8 @@ const Wy = {
|
|
17668
17668
|
headerText: "severity",
|
17669
17669
|
isSortable: !0,
|
17670
17670
|
width: 100,
|
17671
|
-
compareFunc:
|
17672
|
-
defaultSortOrder:
|
17671
|
+
compareFunc: Oa,
|
17672
|
+
defaultSortOrder: ya
|
17673
17673
|
},
|
17674
17674
|
{ headerText: "license", isSortable: !1, width: 150 },
|
17675
17675
|
{ headerText: "source", isSortable: !0, width: 296 }
|
@@ -17683,7 +17683,7 @@ const Wy = {
|
|
17683
17683
|
cellContent: s.classification
|
17684
17684
|
},
|
17685
17685
|
{
|
17686
|
-
component: /* @__PURE__ */ t.jsx(
|
17686
|
+
component: /* @__PURE__ */ t.jsx(Aa, { severity: s.severity }),
|
17687
17687
|
cellContent: s.severity
|
17688
17688
|
},
|
17689
17689
|
{
|
@@ -17715,8 +17715,8 @@ const Wy = {
|
|
17715
17715
|
headerText: "severity",
|
17716
17716
|
isSortable: !0,
|
17717
17717
|
width: 100,
|
17718
|
-
compareFunc:
|
17719
|
-
defaultSortOrder:
|
17718
|
+
compareFunc: Oa,
|
17719
|
+
defaultSortOrder: ya
|
17720
17720
|
},
|
17721
17721
|
{ headerText: "id", isSortable: !1, width: 100 }
|
17722
17722
|
],
|
@@ -17745,7 +17745,7 @@ const Wy = {
|
|
17745
17745
|
cellContent: ""
|
17746
17746
|
},
|
17747
17747
|
{
|
17748
|
-
component: /* @__PURE__ */ t.jsx(
|
17748
|
+
component: /* @__PURE__ */ t.jsx(Aa, { severity: o.severity }),
|
17749
17749
|
cellContent: o.severity
|
17750
17750
|
},
|
17751
17751
|
{
|
@@ -17782,7 +17782,7 @@ const Wy = {
|
|
17782
17782
|
cells: [
|
17783
17783
|
{
|
17784
17784
|
component: /* @__PURE__ */ t.jsx(
|
17785
|
-
|
17785
|
+
Ra,
|
17786
17786
|
{
|
17787
17787
|
detailViewData: ij(
|
17788
17788
|
i,
|
@@ -17798,7 +17798,7 @@ const Wy = {
|
|
17798
17798
|
cellContent: i.filePath
|
17799
17799
|
},
|
17800
17800
|
{
|
17801
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
17801
|
+
component: /* @__PURE__ */ t.jsx("span", { children: ja(i.misConfSummary.status) }),
|
17802
17802
|
cellContent: i.misConfSummary.status
|
17803
17803
|
},
|
17804
17804
|
{
|
@@ -17816,8 +17816,8 @@ const Wy = {
|
|
17816
17816
|
headerText: "severity",
|
17817
17817
|
isSortable: !0,
|
17818
17818
|
width: 100,
|
17819
|
-
compareFunc:
|
17820
|
-
defaultSortOrder:
|
17819
|
+
compareFunc: Oa,
|
17820
|
+
defaultSortOrder: ya
|
17821
17821
|
},
|
17822
17822
|
{ headerText: "category", isSortable: !0, width: 150 }
|
17823
17823
|
],
|
@@ -17836,7 +17836,7 @@ const Wy = {
|
|
17836
17836
|
cellContent: ""
|
17837
17837
|
},
|
17838
17838
|
{
|
17839
|
-
component: /* @__PURE__ */ t.jsx(
|
17839
|
+
component: /* @__PURE__ */ t.jsx(Aa, { severity: o.severity }),
|
17840
17840
|
cellContent: o.severity
|
17841
17841
|
},
|
17842
17842
|
{
|
@@ -17863,7 +17863,7 @@ const Wy = {
|
|
17863
17863
|
cells: [
|
17864
17864
|
{
|
17865
17865
|
component: /* @__PURE__ */ t.jsx(
|
17866
|
-
|
17866
|
+
Ra,
|
17867
17867
|
{
|
17868
17868
|
detailViewData: cj(
|
17869
17869
|
i,
|
@@ -17879,7 +17879,7 @@ const Wy = {
|
|
17879
17879
|
cellContent: i.filePath
|
17880
17880
|
},
|
17881
17881
|
{
|
17882
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
17882
|
+
component: /* @__PURE__ */ t.jsx("span", { children: ja(i.summary.severities) }),
|
17883
17883
|
cellContent: i.summary.severities
|
17884
17884
|
}
|
17885
17885
|
]
|
@@ -17999,7 +17999,7 @@ const Wy = {
|
|
17999
17999
|
cells: [
|
18000
18000
|
{
|
18001
18001
|
component: /* @__PURE__ */ t.jsx(
|
18002
|
-
|
18002
|
+
Ra,
|
18003
18003
|
{
|
18004
18004
|
detailViewData: {
|
18005
18005
|
...vi({
|
@@ -18017,7 +18017,7 @@ const Wy = {
|
|
18017
18017
|
cellContent: r.source
|
18018
18018
|
},
|
18019
18019
|
{
|
18020
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18020
|
+
component: /* @__PURE__ */ t.jsx("span", { children: ja(r.summary.severities) }),
|
18021
18021
|
cellContent: r.summary.severities
|
18022
18022
|
}
|
18023
18023
|
]
|
@@ -18058,7 +18058,7 @@ const Wy = {
|
|
18058
18058
|
cells: [
|
18059
18059
|
{
|
18060
18060
|
component: /* @__PURE__ */ t.jsx(
|
18061
|
-
|
18061
|
+
Ra,
|
18062
18062
|
{
|
18063
18063
|
detailViewData: _j(a, s, n),
|
18064
18064
|
setDetailViewData: s,
|
@@ -18069,7 +18069,7 @@ const Wy = {
|
|
18069
18069
|
},
|
18070
18070
|
{
|
18071
18071
|
component: null,
|
18072
|
-
cellContent:
|
18072
|
+
cellContent: ja(a.summary.severities) || (a.status === "Completed" ? "No vulnerability found" : "-")
|
18073
18073
|
},
|
18074
18074
|
{
|
18075
18075
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18089,8 +18089,8 @@ const Wy = {
|
|
18089
18089
|
headerText: "severity",
|
18090
18090
|
isSortable: !0,
|
18091
18091
|
width: 100,
|
18092
|
-
compareFunc:
|
18093
|
-
defaultSortOrder:
|
18092
|
+
compareFunc: Oa,
|
18093
|
+
defaultSortOrder: ya
|
18094
18094
|
},
|
18095
18095
|
{ headerText: "license", isSortable: !1, width: 150 },
|
18096
18096
|
{ headerText: "package", isSortable: !0, width: 296 }
|
@@ -18104,7 +18104,7 @@ const Wy = {
|
|
18104
18104
|
cellContent: s.classification
|
18105
18105
|
},
|
18106
18106
|
{
|
18107
|
-
component: /* @__PURE__ */ t.jsx(
|
18107
|
+
component: /* @__PURE__ */ t.jsx(Aa, { severity: s.severity }),
|
18108
18108
|
cellContent: s.severity
|
18109
18109
|
},
|
18110
18110
|
{
|
@@ -18135,7 +18135,7 @@ const Wy = {
|
|
18135
18135
|
cells: [
|
18136
18136
|
{
|
18137
18137
|
component: /* @__PURE__ */ t.jsx(
|
18138
|
-
|
18138
|
+
Ra,
|
18139
18139
|
{
|
18140
18140
|
detailViewData: hj(n),
|
18141
18141
|
setDetailViewData: s,
|
@@ -18146,7 +18146,7 @@ const Wy = {
|
|
18146
18146
|
},
|
18147
18147
|
{
|
18148
18148
|
component: null,
|
18149
|
-
cellContent:
|
18149
|
+
cellContent: ja(n.summary.severities) || (n.status === "Completed" ? "No license risk found" : "-")
|
18150
18150
|
},
|
18151
18151
|
{
|
18152
18152
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18542,7 +18542,7 @@ const Wy = {
|
|
18542
18542
|
"div",
|
18543
18543
|
{
|
18544
18544
|
className: `${e ? "w-1024" : "w-800"} h-100 bg__modal--primary flexbox-col dc__right-0 dc__top-0 dc__position-abs dc__overflow-hidden`,
|
18545
|
-
onClick:
|
18545
|
+
onClick: ye,
|
18546
18546
|
children: [
|
18547
18547
|
h(),
|
18548
18548
|
g()
|
@@ -18564,7 +18564,7 @@ const Wy = {
|
|
18564
18564
|
installedAppVersionHistoryId: r
|
18565
18565
|
}, i = He(Y.SCAN_RESULT, o);
|
18566
18566
|
return await ge(i);
|
18567
|
-
},
|
18567
|
+
}, tr = {
|
18568
18568
|
[_e.IMAGE_SCAN]: {
|
18569
18569
|
label: ps.IMAGE_SCAN,
|
18570
18570
|
subCategories: [te.VULNERABILITIES, te.LICENSE]
|
@@ -18622,7 +18622,7 @@ const Wy = {
|
|
18622
18622
|
children: [
|
18623
18623
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space", children: [
|
18624
18624
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
18625
|
-
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-4 lh-1-5 cn-7", children:
|
18625
|
+
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-4 lh-1-5 cn-7", children: tr[e].label }),
|
18626
18626
|
/* @__PURE__ */ t.jsxs("div", { className: "fs-15 fw-6 lh-1-5 cn-9 flex", children: [
|
18627
18627
|
/* @__PURE__ */ t.jsx("span", { className: "security-card-title", children: u }),
|
18628
18628
|
/* @__PURE__ */ t.jsx(hg, { className: "icon-dim-20 dc__flip-270 scb-5 arrow-right" })
|
@@ -18632,7 +18632,7 @@ const Wy = {
|
|
18632
18632
|
] }),
|
18633
18633
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
18634
18634
|
r || !(i || n.success) ? /* @__PURE__ */ t.jsx("div", { className: "bcn-1 br-4 h-8" }) : /* @__PURE__ */ t.jsx(
|
18635
|
-
|
18635
|
+
ia,
|
18636
18636
|
{
|
18637
18637
|
entities: c,
|
18638
18638
|
labelClassName: "fs-13 fw-4 lh-20 cn-9",
|
@@ -18869,7 +18869,7 @@ const Wy = {
|
|
18869
18869
|
"dialog",
|
18870
18870
|
{
|
18871
18871
|
className: "bg__primary h-100 cn-9 w-100 flexbox-col dc__overflow-hidden p-0 bulk-operation__results-modal",
|
18872
|
-
onClick:
|
18872
|
+
onClick: ye,
|
18873
18873
|
children: [
|
18874
18874
|
/* @__PURE__ */ t.jsxs("header", { className: "px-20 py-12 lh-24 flexbox dc__content-space dc__align-items-center dc__border-bottom", children: [
|
18875
18875
|
/* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 dc__first-letter-capitalize", children: i.toLowerCase() }),
|
@@ -18896,7 +18896,7 @@ const Wy = {
|
|
18896
18896
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__overflow-hidden pt-20 flex-grow-1 bulk-operations__results-modal__content", children: [
|
18897
18897
|
/* @__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: [
|
18898
18898
|
/* @__PURE__ */ t.jsx(
|
18899
|
-
|
18899
|
+
ia,
|
18900
18900
|
{
|
18901
18901
|
entities: a.getBarChartEntities(),
|
18902
18902
|
rootClassName: "p-16 fs-13 dc__border-bottom-n1",
|
@@ -19014,10 +19014,10 @@ class vd {
|
|
19014
19014
|
Progressing: 0,
|
19015
19015
|
Pending: 0
|
19016
19016
|
});
|
19017
|
-
|
19018
|
-
|
19017
|
+
Pa(this, bn, !1);
|
19018
|
+
Pa(this, Tn, !1);
|
19019
19019
|
pe(this, "updateStatus", (s, n) => {
|
19020
|
-
n.status === "Completed" && !Ws(this, Tn) &&
|
19020
|
+
n.status === "Completed" && !Ws(this, Tn) && Ma(this, Tn, !0), n.status === "Failed" && !Ws(this, bn) && Ma(this, bn, !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;
|
19021
19021
|
});
|
19022
19022
|
pe(this, "addResult", (s) => {
|
19023
19023
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -19048,7 +19048,7 @@ const tH = ({
|
|
19048
19048
|
handleModalClose: e,
|
19049
19049
|
operations: s = [],
|
19050
19050
|
getResultsChartSummaryText: n,
|
19051
|
-
handleReloadDataAfterBulkOperation: a =
|
19051
|
+
handleReloadDataAfterBulkOperation: a = ka,
|
19052
19052
|
hideResultsDrawer: r = !1,
|
19053
19053
|
textConfig: o,
|
19054
19054
|
shouldSkipConfirmation: i,
|
@@ -19115,10 +19115,10 @@ const tH = ({
|
|
19115
19115
|
m(!1);
|
19116
19116
|
}
|
19117
19117
|
};
|
19118
|
-
M(() => (i && f().then(
|
19118
|
+
M(() => (i && f().then(ka).catch(ka), () => {
|
19119
19119
|
E.current?.abort();
|
19120
19120
|
}), []);
|
19121
|
-
const N = u ?
|
19121
|
+
const N = u ? ka : g, C = async () => {
|
19122
19122
|
_.current = h.current.getRetryOperations(), h.current = new vd(_.current.length), E.current = new AbortController(), await f();
|
19123
19123
|
}, S = () => {
|
19124
19124
|
E.current.abort();
|
@@ -19430,7 +19430,7 @@ const sH = ({
|
|
19430
19430
|
}, Bj = [
|
19431
19431
|
{ value: "", label: "Kubernetes ConfigMap" },
|
19432
19432
|
{ value: Ue.KubernetesConfigMap, label: "Kubernetes External ConfigMap" }
|
19433
|
-
],
|
19433
|
+
], ua = [{ key: "", value: "", id: 0 }], yr = {
|
19434
19434
|
environment: { title: "Environment Variable", value: "environment" },
|
19435
19435
|
volume: { title: "Data Volume", value: "volume" }
|
19436
19436
|
}, Vj = (e, s) => {
|
@@ -19487,7 +19487,7 @@ const sH = ({
|
|
19487
19487
|
configMapSecretData: e,
|
19488
19488
|
cmSecretStateLabel: s,
|
19489
19489
|
isSecret: n
|
19490
|
-
}) => e.mergeStrategy === Qi.PATCH ? e.patchData ? Uo(e.patchData, n && e.externalType === "") :
|
19490
|
+
}) => e.mergeStrategy === Qi.PATCH ? e.patchData ? Uo(e.patchData, n && e.externalType === "") : ua : e.data ? Uo(e.data, n && e.externalType === "") : s === qr.INHERITED && e.defaultData ? Uo(e.defaultData, n && e.externalType === "") : ua, Hj = ({
|
19491
19491
|
data: e,
|
19492
19492
|
esoSubPath: s,
|
19493
19493
|
external: n,
|
@@ -19573,7 +19573,7 @@ const sH = ({
|
|
19573
19573
|
externalSubpathValues: "",
|
19574
19574
|
yaml: `"": ""
|
19575
19575
|
`,
|
19576
|
-
currentData:
|
19576
|
+
currentData: ua,
|
19577
19577
|
esoSecretYaml: "{}",
|
19578
19578
|
secretDataYaml: "[]",
|
19579
19579
|
mergeStrategy: null
|
@@ -19669,12 +19669,12 @@ const sH = ({
|
|
19669
19669
|
throw new Error();
|
19670
19670
|
return Object.keys(s).reduce((a, r, o) => {
|
19671
19671
|
if (!r && !s[r])
|
19672
|
-
return
|
19672
|
+
return ua;
|
19673
19673
|
const i = s[r] && typeof s[r] == "object" ? Ot(s[r]) : s[r].toString();
|
19674
19674
|
return [...a, { key: r, value: i ?? "", id: o }];
|
19675
19675
|
}, []);
|
19676
19676
|
} catch {
|
19677
|
-
return
|
19677
|
+
return ua;
|
19678
19678
|
}
|
19679
19679
|
}, Jp = (e) => {
|
19680
19680
|
try {
|
@@ -20194,7 +20194,7 @@ const sH = ({
|
|
20194
20194
|
}, iO = Object.entries(aO).map(([e, s]) => ({
|
20195
20195
|
label: e,
|
20196
20196
|
value: s
|
20197
|
-
})),
|
20197
|
+
})), sr = Object.entries(rO).map(
|
20198
20198
|
([e, s]) => ({
|
20199
20199
|
label: e,
|
20200
20200
|
value: s
|
@@ -20239,7 +20239,7 @@ const sH = ({
|
|
20239
20239
|
openDirection: p = "down",
|
20240
20240
|
error: _ = ""
|
20241
20241
|
}) => {
|
20242
|
-
const h = lO(e), E =
|
20242
|
+
const h = lO(e), E = sr.find((A) => A.value === h) ?? sr[0], [x, g] = w(!1), f = ({ focused: A }) => {
|
20243
20243
|
g(A);
|
20244
20244
|
}, N = (A) => {
|
20245
20245
|
s(uO(e, A?.toDate()));
|
@@ -20279,7 +20279,7 @@ const sH = ({
|
|
20279
20279
|
{
|
20280
20280
|
inputId: tn.TIME,
|
20281
20281
|
placeholder: oO.DEFAULT_TIME,
|
20282
|
-
options:
|
20282
|
+
options: sr,
|
20283
20283
|
icon: /* @__PURE__ */ t.jsx(Yi, { className: "icon-dim-20 fcn-6" }),
|
20284
20284
|
isSearchable: !1,
|
20285
20285
|
hideSelectedOptions: !0,
|
@@ -20359,7 +20359,7 @@ const sH = ({
|
|
20359
20359
|
{
|
20360
20360
|
inputId: tn.TIME,
|
20361
20361
|
placeholder: "12:00 AM",
|
20362
|
-
options:
|
20362
|
+
options: sr,
|
20363
20363
|
isSearchable: !1,
|
20364
20364
|
isDisabled: e,
|
20365
20365
|
...n,
|
@@ -20487,7 +20487,7 @@ function EO({ isCreateApp: e }) {
|
|
20487
20487
|
return /* @__PURE__ */ t.jsx(
|
20488
20488
|
rc,
|
20489
20489
|
{
|
20490
|
-
theme:
|
20490
|
+
theme: xa.white,
|
20491
20491
|
className: "w-300",
|
20492
20492
|
placement: "left",
|
20493
20493
|
Icon: Kn,
|
@@ -20779,12 +20779,12 @@ const Ad = ({
|
|
20779
20779
|
}, f = (T) => {
|
20780
20780
|
p(T.target.value);
|
20781
20781
|
}, N = (T) => {
|
20782
|
-
|
20782
|
+
ye(T);
|
20783
20783
|
const I = { ...s };
|
20784
20784
|
I[o] = T.currentTarget.dataset.key, I.propagate = T.currentTarget.dataset.propagate === "true", n(e, I), h("");
|
20785
20785
|
}, C = () => {
|
20786
20786
|
let T = { isValid: !0, messages: [] };
|
20787
|
-
return o === ms.KEY ? (m || s.value) && (T = E.propagateTagKey(m)) : (r || m || s.propagate) && (T = E.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick:
|
20787
|
+
return o === ms.KEY ? (m || s.value) && (T = E.propagateTagKey(m)) : (r || m || s.propagate) && (T = E.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: ye, "data-testid": "tag-label-cross-stop-propagation", children: [
|
20788
20788
|
T.messages.map((I) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
20789
20789
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Ts, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
20790
20790
|
/* @__PURE__ */ t.jsx("span", { children: I })
|
@@ -20866,7 +20866,7 @@ const Ad = ({
|
|
20866
20866
|
hidePropagateTag: i
|
20867
20867
|
}) => {
|
20868
20868
|
const c = $(null), l = $(null), d = new po(), u = (p) => {
|
20869
|
-
|
20869
|
+
ye(p), a(e);
|
20870
20870
|
}, m = () => {
|
20871
20871
|
const p = { ...s };
|
20872
20872
|
p.propagate = !p.propagate, p.propagate ? (p.isInvalidKey = p.isInvalidKey || !p.key, p.isInvalidValue = p.isInvalidValue || !p.value) : (p.isInvalidKey = p.key || p.value ? !d.propagateTagKey(p.key).isValid : !1, p.isInvalidValue = p.value ? !d.propagateTagValue(p.value, p.key).isValid : !1), n(e, p);
|
@@ -21005,10 +21005,10 @@ const IO = ({
|
|
21005
21005
|
o,
|
21006
21006
|
a || n
|
21007
21007
|
), g = $(p), f = $(null);
|
21008
|
-
f.current || (f.current = e.reduce((v, j) => (v[j.id] = s.reduce((P, { key: O }) => ({ ...P, [O]:
|
21008
|
+
f.current || (f.current = e.reduce((v, j) => (v[j.id] = s.reduce((P, { key: O }) => ({ ...P, [O]: dr() }), {}), v), {}));
|
21009
21009
|
const N = X(() => e.map(({ id: v }) => v), [e]);
|
21010
21010
|
M(() => {
|
21011
|
-
const v = N.reduce((j, P) => (f.current[P] ? j[P] = f.current[P] : j[P] = s.reduce((O, { key: D }) => ({ ...O, [D]:
|
21011
|
+
const v = N.reduce((j, P) => (f.current[P] ? j[P] = f.current[P] : j[P] = s.reduce((O, { key: D }) => ({ ...O, [D]: dr() }), {}), j), {});
|
21012
21012
|
f.current = v;
|
21013
21013
|
}, [JSON.stringify(N)]);
|
21014
21014
|
const C = (v, j) => (P) => {
|
@@ -21654,7 +21654,7 @@ const jd = (e) => {
|
|
21654
21654
|
className: `flex right w-100 dc__align-right dc__border-top-n1 px-20 py-16 ${n ? "dc__content-space" : "right"}`,
|
21655
21655
|
children: [
|
21656
21656
|
n.length > 0 && /* @__PURE__ */ t.jsx(
|
21657
|
-
|
21657
|
+
Sa,
|
21658
21658
|
{
|
21659
21659
|
docLinkKey: n,
|
21660
21660
|
text: Or.VIEW_DOCUMENTATION,
|
@@ -21694,23 +21694,23 @@ const jd = (e) => {
|
|
21694
21694
|
const [d, u] = w(l?.[0]?.id ?? null), m = l?.find((_) => _.id === d) ?? null, p = (_) => {
|
21695
21695
|
u(_.target.value);
|
21696
21696
|
};
|
21697
|
-
return /* @__PURE__ */ t.jsx(
|
21697
|
+
return /* @__PURE__ */ t.jsx(Ia, { className: "", close: r, children: /* @__PURE__ */ t.jsxs(
|
21698
21698
|
"div",
|
21699
21699
|
{
|
21700
21700
|
className: "feature-description modal__body w-600 mt-40 flex column p-0 fs-13 dc__overflow-hidden",
|
21701
|
-
onClick:
|
21701
|
+
onClick: ye,
|
21702
21702
|
children: [
|
21703
21703
|
/* @__PURE__ */ t.jsx("div", { className: "flex left w-100 fs-16 fw-6 px-20 py-16", children: e }),
|
21704
21704
|
Array.isArray(l) ? m && l.length > 0 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
21705
21705
|
/* @__PURE__ */ t.jsx("div", { className: "px-20 pb-8 flex left w-100", children: /* @__PURE__ */ t.jsx(
|
21706
|
-
|
21706
|
+
_a,
|
21707
21707
|
{
|
21708
21708
|
className: "gui-yaml-switch",
|
21709
21709
|
name: "feature-description-modal-tabs",
|
21710
21710
|
initialTab: m.id,
|
21711
21711
|
disabled: !1,
|
21712
21712
|
onChange: p,
|
21713
|
-
children: l.map((_) => /* @__PURE__ */ t.jsx(
|
21713
|
+
children: l.map((_) => /* @__PURE__ */ t.jsx(_a.Radio, { value: _.id, children: _.title }, _.id))
|
21714
21714
|
}
|
21715
21715
|
) }),
|
21716
21716
|
/* @__PURE__ */ t.jsx(
|
@@ -22002,7 +22002,7 @@ const jd = (e) => {
|
|
22002
22002
|
type: "button",
|
22003
22003
|
children: [
|
22004
22004
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
22005
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(
|
22005
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-16 fcv-5" }) }),
|
22006
22006
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: $O })
|
22007
22007
|
] }),
|
22008
22008
|
/* @__PURE__ */ t.jsx(Es, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
@@ -22065,7 +22065,7 @@ const jd = (e) => {
|
|
22065
22065
|
/* @__PURE__ */ t.jsx("div", { className: "h-100", children: /* @__PURE__ */ t.jsx(
|
22066
22066
|
H,
|
22067
22067
|
{
|
22068
|
-
icon: /* @__PURE__ */ t.jsx(Ts, {}),
|
22068
|
+
icon: /* @__PURE__ */ t.jsx(Ts, { className: ra }),
|
22069
22069
|
ariaLabel: "Close suggestions",
|
22070
22070
|
showAriaLabelInTippy: !1,
|
22071
22071
|
dataTestId: "deactivate-suggestions",
|
@@ -22090,7 +22090,7 @@ const jd = (e) => {
|
|
22090
22090
|
placeholder: "Search variables",
|
22091
22091
|
containerClass: "flexbox flex-grow-1 pt-8 pb-8 pl-10 pr-10 dc__gap-8 dc__align-self-stretch dc__align-items-center bg__secondary dc__border dc__border-radius-4-imp focus-within-border-b5 dc__hover-border-n300",
|
22092
22092
|
inputClass: "flex-grow-1 dc__no-border dc__outline-none-imp bg__secondary lh-20 fs-13 cn-9 fw-4 p-0 placeholder-cn5",
|
22093
|
-
Icon:
|
22093
|
+
Icon: ur,
|
22094
22094
|
iconClass: "icon-dim-16",
|
22095
22095
|
clearSearch: l
|
22096
22096
|
}
|
@@ -22123,7 +22123,7 @@ const jd = (e) => {
|
|
22123
22123
|
] }), 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(Je, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22124
22124
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Xe, { title: "No variables found", image: Gr }) }),
|
22125
22125
|
/* @__PURE__ */ t.jsx(Ld, {})
|
22126
|
-
] }) : p ? g() : /* @__PURE__ */ t.jsx(
|
22126
|
+
] }) : p ? g() : /* @__PURE__ */ t.jsx(da, { reload: a, className: "bg__primary pb-16" });
|
22127
22127
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22128
22128
|
x(),
|
22129
22129
|
f()
|
@@ -22196,7 +22196,7 @@ const jd = (e) => {
|
|
22196
22196
|
y.y < 0 || y.x < 0 || y.x + (N.current?.getBoundingClientRect().width || 0) > f.width || y.y + (N.current?.getBoundingClientRect().height || 0) > f.height || (_(I), m(I));
|
22197
22197
|
};
|
22198
22198
|
return l ? /* @__PURE__ */ t.jsx(
|
22199
|
-
|
22199
|
+
cr,
|
22200
22200
|
{
|
22201
22201
|
bounds: r,
|
22202
22202
|
handle: ".handle-drag",
|
@@ -22206,7 +22206,7 @@ const jd = (e) => {
|
|
22206
22206
|
children: /* @__PURE__ */ t.jsx(
|
22207
22207
|
"div",
|
22208
22208
|
{
|
22209
|
-
className: `flex column dc__no-shrink w-356 dc__content-space dc__border-radius-8-imp dc__border dc__overflow-hidden dc__position-abs mxh-504 bg__overlay--primary ${
|
22209
|
+
className: `flex column dc__no-shrink w-356 dc__content-space dc__border-radius-8-imp dc__border dc__overflow-hidden dc__position-abs mxh-504 bg__overlay--primary ${ra}`,
|
22210
22210
|
style: {
|
22211
22211
|
zIndex: e,
|
22212
22212
|
boxShadow: "0px 4px 8px 0px rgba(0, 0, 0, 0.25)"
|
@@ -22227,7 +22227,7 @@ const jd = (e) => {
|
|
22227
22227
|
)
|
22228
22228
|
}
|
22229
22229
|
) : /* @__PURE__ */ t.jsx(
|
22230
|
-
|
22230
|
+
cr,
|
22231
22231
|
{
|
22232
22232
|
bounds: r,
|
22233
22233
|
handle: ".handle-drag",
|
@@ -22246,7 +22246,7 @@ const jd = (e) => {
|
|
22246
22246
|
/* @__PURE__ */ t.jsx(Ie, { content: "Scoped variables", placement: "top", className: "default-tt", arrow: !1, children: /* @__PURE__ */ t.jsx(
|
22247
22247
|
"button",
|
22248
22248
|
{
|
22249
|
-
className: `dc__outline-none-imp dc__no-border p-0 bcn-7 h-20 ${
|
22249
|
+
className: `dc__outline-none-imp dc__no-border p-0 bcn-7 h-20 ${ra}`,
|
22250
22250
|
type: "button",
|
22251
22251
|
onClick: S,
|
22252
22252
|
"data-testid": "activate-suggestions",
|
@@ -22261,7 +22261,7 @@ const jd = (e) => {
|
|
22261
22261
|
);
|
22262
22262
|
}, xH = It(WO);
|
22263
22263
|
var r_ = /* @__PURE__ */ ((e) => (e.ROUNDED = "rounded", e.NONE = "none", e))(r_ || {});
|
22264
|
-
const KO = (e) => e === r_.NONE ? "" : "dc__border-n1",
|
22264
|
+
const KO = (e) => e === r_.NONE ? "" : "dc__border-n1", nr = ({
|
22265
22265
|
title: e,
|
22266
22266
|
description: s,
|
22267
22267
|
author: n,
|
@@ -22306,9 +22306,9 @@ const KO = (e) => e === r_.NONE ? "" : "dc__border-n1", sr = ({
|
|
22306
22306
|
);
|
22307
22307
|
return !c && !i ? u() : c ? /* @__PURE__ */ t.jsx(ts, { ...c, children: u() }) : /* @__PURE__ */ t.jsx("div", { role: "button", tabIndex: 0, onClick: i, className: "dc__unset-button-styles dc__align-unset", children: u() });
|
22308
22308
|
}, zO = ({ borderVariant: e }) => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22309
|
-
/* @__PURE__ */ t.jsx(
|
22310
|
-
/* @__PURE__ */ t.jsx(
|
22311
|
-
/* @__PURE__ */ t.jsx(
|
22309
|
+
/* @__PURE__ */ t.jsx(nr, { isLoading: !0, borderVariant: e }),
|
22310
|
+
/* @__PURE__ */ t.jsx(nr, { isLoading: !0, borderVariant: e }),
|
22311
|
+
/* @__PURE__ */ t.jsx(nr, { isLoading: !0, borderVariant: e })
|
22312
22312
|
] }), EH = ({
|
22313
22313
|
isLoading: e,
|
22314
22314
|
error: s,
|
@@ -22335,7 +22335,7 @@ const KO = (e) => e === r_.NONE ? "" : "dc__border-n1", sr = ({
|
|
22335
22335
|
...c
|
22336
22336
|
}
|
22337
22337
|
) : /* @__PURE__ */ t.jsx(t.Fragment, { children: l.map(({ id: d, title: u, description: m, author: p, Icon: _, onClick: h, linkProps: E }) => /* @__PURE__ */ t.jsx(
|
22338
|
-
|
22338
|
+
nr,
|
22339
22339
|
{
|
22340
22340
|
title: u,
|
22341
22341
|
description: m,
|
@@ -22402,7 +22402,7 @@ const KO = (e) => e === r_.NONE ? "" : "dc__border-n1", sr = ({
|
|
22402
22402
|
] })
|
22403
22403
|
] })
|
22404
22404
|
}
|
22405
|
-
), ew = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }),
|
22405
|
+
), ew = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), ma = ({
|
22406
22406
|
name: e,
|
22407
22407
|
open: s,
|
22408
22408
|
width: n = 600,
|
@@ -22417,13 +22417,13 @@ const KO = (e) => e === r_.NONE ? "" : "dc__border-n1", sr = ({
|
|
22417
22417
|
exit: { y: 100, opacity: 0, scale: 0.75, transition: { duration: 0.35 } },
|
22418
22418
|
initial: { y: 100, opacity: 0, scale: 0.75 },
|
22419
22419
|
animate: { y: 0, opacity: 1, scale: 1 },
|
22420
|
-
onClick:
|
22420
|
+
onClick: ye,
|
22421
22421
|
children: i
|
22422
22422
|
}
|
22423
22423
|
) }) }) });
|
22424
|
-
|
22425
|
-
|
22426
|
-
|
22424
|
+
ma.Header = ZO;
|
22425
|
+
ma.Body = ew;
|
22426
|
+
ma.Footer = QO;
|
22427
22427
|
const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
22428
22428
|
const r = Kf(), { hasSource: o, hasTarget: i } = X(
|
22429
22429
|
() => ({
|
@@ -22495,7 +22495,7 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22495
22495
|
iconNode: 36,
|
22496
22496
|
textNode: 36,
|
22497
22497
|
dropdownNode: 36
|
22498
|
-
}, Bo = 16,
|
22498
|
+
}, Bo = 16, Ka = 20, iw = 50, c_ = 12, Dd = { x: 16, y: 20, zoom: 1 }, Pd = (e) => e.map((s) => ({
|
22499
22499
|
...s,
|
22500
22500
|
type: "step",
|
22501
22501
|
markerEnd: {
|
@@ -22555,9 +22555,9 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22555
22555
|
if (r.current && u.length) {
|
22556
22556
|
const f = r.current.getNodesBounds(u);
|
22557
22557
|
return [
|
22558
|
-
[f.x - Bo, f.y -
|
22558
|
+
[f.x - Bo, f.y - Ka],
|
22559
22559
|
// minX, minY
|
22560
|
-
[f.x + f.width + Bo, f.y + f.height +
|
22560
|
+
[f.x + f.width + Bo, f.y + f.height + Ka]
|
22561
22561
|
// maxX, maxY
|
22562
22562
|
];
|
22563
22563
|
}
|
@@ -22565,7 +22565,7 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22565
22565
|
[-1 / 0, -1 / 0],
|
22566
22566
|
[1 / 0, 1 / 0]
|
22567
22567
|
];
|
22568
|
-
}, [r.current, u]), _ = X(() => r.current && u.length ? r.current.getNodesBounds(u).height +
|
22568
|
+
}, [r.current, u]), _ = X(() => r.current && u.length ? r.current.getNodesBounds(u).height + Ka * 2 : 0, [r.current, u]);
|
22569
22569
|
M(() => {
|
22570
22570
|
if (!o.current || !r.current) return () => {
|
22571
22571
|
};
|
@@ -22591,7 +22591,7 @@ const Rc = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
22591
22591
|
a((N) => Zf(f, Pd(N)).map(({ type: C, ...S }) => S));
|
22592
22592
|
}, x = (f) => {
|
22593
22593
|
const N = r.current.getNodesBounds(u), C = f;
|
22594
|
-
C.x = Math.min(f.x, Dd.x), C.y = Math.abs(N.y -
|
22594
|
+
C.x = Math.min(f.x, Dd.x), C.y = Math.abs(N.y - Ka), c(C);
|
22595
22595
|
}, g = async (f) => {
|
22596
22596
|
r.current = f, await f.setViewport(Dd);
|
22597
22597
|
};
|
@@ -22646,7 +22646,7 @@ const uw = [
|
|
22646
22646
|
label: "View documentation",
|
22647
22647
|
startIcon: { name: "ic-book-open" },
|
22648
22648
|
componentType: "anchor",
|
22649
|
-
href:
|
22649
|
+
href: Ea
|
22650
22650
|
},
|
22651
22651
|
{
|
22652
22652
|
id: xt.DEVTRON_GPT,
|
@@ -22752,7 +22752,7 @@ const hw = async (e, s) => {
|
|
22752
22752
|
};
|
22753
22753
|
await Cw(a), e(a.value), await Ri(Zo.TOOLTIP_DONT_SHOW_AGAIN);
|
22754
22754
|
};
|
22755
|
-
return /* @__PURE__ */ t.jsxs("div", { className: "cn-0 p-20 br-8 fs-13 bg__overlay--primary dc__border w-300", onClick:
|
22755
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "cn-0 p-20 br-8 fs-13 bg__overlay--primary dc__border w-300", onClick: ye, children: [
|
22756
22756
|
/* @__PURE__ */ t.jsx("img", { className: "mb-12 icon-dim-32", src: jg, alt: "getting started icon" }),
|
22757
22757
|
/* @__PURE__ */ t.jsx("div", { className: "flex column left fw-6 cn-7", children: "Getting started" }),
|
22758
22758
|
/* @__PURE__ */ t.jsx("div", { className: "cn-7", children: "You can always access the Getting Started guide from here." }),
|
@@ -22819,7 +22819,7 @@ const hw = async (e, s) => {
|
|
22819
22819
|
x && !y.metaKey && (y.preventDefault(), p((v) => ({
|
22820
22820
|
...v,
|
22821
22821
|
state: zr.DOCUMENTATION,
|
22822
|
-
docLink:
|
22822
|
+
docLink: Ea,
|
22823
22823
|
reinitialize: !0
|
22824
22824
|
})));
|
22825
22825
|
}, b = (I, y) => {
|
@@ -22911,11 +22911,11 @@ const hw = async (e, s) => {
|
|
22911
22911
|
category: "PRIMARY_HEADER",
|
22912
22912
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
22913
22913
|
});
|
22914
|
-
}, []), i = Fe(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(
|
22914
|
+
}, []), i = Fe(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(Ia, { close: i, children: /* @__PURE__ */ t.jsxs(
|
22915
22915
|
"div",
|
22916
22916
|
{
|
22917
22917
|
className: "modal-body--ci-material h-100 dc__overflow-hidden dc__border-left flex column dc__content-space w-100",
|
22918
|
-
onClick:
|
22918
|
+
onClick: ye,
|
22919
22919
|
children: [
|
22920
22920
|
/* @__PURE__ */ t.jsxs("div", { className: "trigger-modal__header w-100", children: [
|
22921
22921
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title flex left fs-16 fw-6-imp", "data-testid": "app-details-url-heading", children: a || n }),
|
@@ -23107,7 +23107,7 @@ const hw = async (e, s) => {
|
|
23107
23107
|
!window._env_.K8S_CLIENT && /* @__PURE__ */ t.jsx(
|
23108
23108
|
rc,
|
23109
23109
|
{
|
23110
|
-
theme:
|
23110
|
+
theme: xa.black,
|
23111
23111
|
className: "w-250",
|
23112
23112
|
placement: "bottom",
|
23113
23113
|
visible: h,
|
@@ -23219,12 +23219,12 @@ const hw = async (e, s) => {
|
|
23219
23219
|
}
|
23220
23220
|
);
|
23221
23221
|
};
|
23222
|
-
var
|
23222
|
+
var ar = /* @__PURE__ */ ((e) => (e.CUSTOM_APP = "create-custom-app", e.CHART_STORE = "create-from-chart-store", e.JOB = "create-job", e))(ar || {});
|
23223
23223
|
const Aw = (e) => [
|
23224
23224
|
{
|
23225
23225
|
items: [
|
23226
23226
|
{
|
23227
|
-
id:
|
23227
|
+
id: ar.CUSTOM_APP,
|
23228
23228
|
label: "Custom app",
|
23229
23229
|
description: "Connect a git repository to deploy a custom application",
|
23230
23230
|
startIcon: { name: "ic-add" },
|
@@ -23232,7 +23232,7 @@ const Aw = (e) => [
|
|
23232
23232
|
to: e
|
23233
23233
|
},
|
23234
23234
|
{
|
23235
|
-
id:
|
23235
|
+
id: ar.CHART_STORE,
|
23236
23236
|
label: "From Chart store",
|
23237
23237
|
description: "Deploy apps using third party helm charts (eg. prometheus, redis etc.)",
|
23238
23238
|
startIcon: { name: "ic-helm" },
|
@@ -23240,7 +23240,7 @@ const Aw = (e) => [
|
|
23240
23240
|
to: Se.CHARTS_DISCOVER
|
23241
23241
|
},
|
23242
23242
|
{
|
23243
|
-
id:
|
23243
|
+
id: ar.JOB,
|
23244
23244
|
label: "Job",
|
23245
23245
|
description: "Jobs allow manual and automated execution of developer actions.",
|
23246
23246
|
startIcon: { name: "ic-k8s-job" },
|
@@ -23318,11 +23318,11 @@ const Aw = (e) => [
|
|
23318
23318
|
}
|
23319
23319
|
)
|
23320
23320
|
] }),
|
23321
|
-
i && /* @__PURE__ */ t.jsx(
|
23321
|
+
i && /* @__PURE__ */ t.jsx(Ia, { className: "", close: m, children: /* @__PURE__ */ t.jsxs(
|
23322
23322
|
"div",
|
23323
23323
|
{
|
23324
23324
|
className: "dc__overflow-auto br-8 dc__position-rel bg__primary custom-panel--iframe-element flexbox-col dc__content-space",
|
23325
|
-
onClick:
|
23325
|
+
onClick: ye,
|
23326
23326
|
children: [
|
23327
23327
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__content-space dc__border-bottom py-20 px-16", children: [
|
23328
23328
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 cn-9 fs-16 fw-6 lh-24 dc__truncate", children: a }),
|
@@ -23504,15 +23504,15 @@ const Aw = (e) => [
|
|
23504
23504
|
s && r && /* @__PURE__ */ t.jsx(Bn, { envStateText: m(), title: r })
|
23505
23505
|
] });
|
23506
23506
|
}, _ = o !== Co.CD;
|
23507
|
-
if (!e && !d && (o !== Co.CD || !s && !Object.values(
|
23507
|
+
if (!e && !d && (o !== Co.CD || !s && !Object.values($a).includes(n) && !i && !l?.length))
|
23508
23508
|
return null;
|
23509
23509
|
const x = () => o !== Co.CD ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23510
23510
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
23511
23511
|
d
|
23512
23512
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23513
23513
|
p(),
|
23514
|
-
n ===
|
23515
|
-
(n ===
|
23514
|
+
n === $a.PROGRESSING && /* @__PURE__ */ t.jsx(Bn, { envStateText: Ds.DEPLOYING, title: a }),
|
23515
|
+
(n === $a.DEGRADED || n === $a.FAILED) && /* @__PURE__ */ t.jsx(Bn, { envStateText: Ds.FAILED, title: a }),
|
23516
23516
|
i && /* @__PURE__ */ t.jsx(
|
23517
23517
|
kr,
|
23518
23518
|
{
|
@@ -23947,7 +23947,7 @@ const Kw = (e) => {
|
|
23947
23947
|
{
|
23948
23948
|
dataTestId: "copy-button",
|
23949
23949
|
text: "Copy link",
|
23950
|
-
startIcon: s ? /* @__PURE__ */ t.jsx(
|
23950
|
+
startIcon: s ? /* @__PURE__ */ t.jsx(ga, {}) : /* @__PURE__ */ t.jsx(Yu, {}),
|
23951
23951
|
style: oe.neutral,
|
23952
23952
|
variant: z.borderLess,
|
23953
23953
|
onClick: r
|
@@ -23999,7 +23999,7 @@ const Kw = (e) => {
|
|
23999
23999
|
const [r, o] = w(!1), [i, c] = w(""), [l, d] = w(!1), [u, m] = w(""), p = () => {
|
24000
24000
|
Ib(om.GET_LICENSE_CLICKED, !0);
|
24001
24001
|
const g = m_(e);
|
24002
|
-
|
24002
|
+
ca(g)(), o(!0);
|
24003
24003
|
}, _ = () => {
|
24004
24004
|
o(!1);
|
24005
24005
|
}, h = (g) => {
|
@@ -24476,7 +24476,7 @@ const Kw = (e) => {
|
|
24476
24476
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 dc__align-start", children: [
|
24477
24477
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-20 cn-9", children: "📙 Need help?" }),
|
24478
24478
|
/* @__PURE__ */ t.jsx(
|
24479
|
-
|
24479
|
+
Sa,
|
24480
24480
|
{
|
24481
24481
|
docLinkKey: r,
|
24482
24482
|
text: "View documentation",
|
@@ -24640,7 +24640,7 @@ const Kw = (e) => {
|
|
24640
24640
|
className: "anchor fs-12 fw-6 lh-20",
|
24641
24641
|
target: "_blank",
|
24642
24642
|
rel: "noopener noreferrer",
|
24643
|
-
onClick:
|
24643
|
+
onClick: ye,
|
24644
24644
|
children: "Learn more"
|
24645
24645
|
}
|
24646
24646
|
),
|
@@ -24929,15 +24929,15 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
24929
24929
|
parentPluginIdList: Ce
|
24930
24930
|
} = se;
|
24931
24931
|
a(uL(n, me, le)), T(K);
|
24932
|
-
const
|
24932
|
+
const Ae = ne ? structuredClone(g) : [], at = Ae.reduce(
|
24933
24933
|
(Ye, re) => (Ye[re.parentPluginId] = !0, Ye),
|
24934
24934
|
{}
|
24935
24935
|
);
|
24936
24936
|
Ce.forEach((Ye) => {
|
24937
|
-
at[Ye] || (
|
24937
|
+
at[Ye] || (Ae.push({
|
24938
24938
|
parentPluginId: Ye
|
24939
24939
|
}), at[Ye] = !0);
|
24940
|
-
}), R(
|
24940
|
+
}), R(Ae);
|
24941
24941
|
};
|
24942
24942
|
M(() => {
|
24943
24943
|
!(P || Kt(D)) && !D && O && be(O);
|
@@ -25209,7 +25209,7 @@ const dL = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
25209
25209
|
)) })
|
25210
25210
|
}
|
25211
25211
|
);
|
25212
|
-
}, NL = 350, g_ = !!(Storage && localStorage),
|
25212
|
+
}, NL = 350, g_ = !!(Storage && localStorage), rr = "generic-table-configurable-columns", or = "bulk-action-gutter", x_ = new EventTarget(), Hd = "table-drag-selector", za = [1, 2, 3], Yd = new Error("Neither rows nor getRows function provided"), Wd = 5, bL = [
|
25213
25213
|
{ value: 20, selected: !0 },
|
25214
25214
|
{ value: 40, selected: !1 },
|
25215
25215
|
{ value: 50, selected: !1 }
|
@@ -25426,7 +25426,7 @@ function yL({
|
|
25426
25426
|
style: {
|
25427
25427
|
zIndex: s
|
25428
25428
|
},
|
25429
|
-
children: /* @__PURE__ */ t.jsx(
|
25429
|
+
children: /* @__PURE__ */ t.jsx(cr, { handle: a, nodeRef: d, position: u, onDrag: _, children: /* @__PURE__ */ t.jsx(
|
25430
25430
|
"div",
|
25431
25431
|
{
|
25432
25432
|
ref: d,
|
@@ -25490,7 +25490,7 @@ const jL = ({
|
|
25490
25490
|
}
|
25491
25491
|
);
|
25492
25492
|
};
|
25493
|
-
var
|
25493
|
+
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 || {}), Lr = /* @__PURE__ */ ((e) => (e.STATE = "state", e.URL = "url", e.NONE = "none", e))(Lr || {}), Dr = /* @__PURE__ */ ((e) => (e.PAGINATED = "paginated", e.INFINITE = "infinite", e.NOT_PAGINATED = "not-paginated", e))(Dr || {});
|
25494
25494
|
const OL = ({
|
25495
25495
|
bulkSelectionConfig: e,
|
25496
25496
|
handleToggleBulkSelectionOnRow: s,
|
@@ -25537,17 +25537,17 @@ const OL = ({
|
|
25537
25537
|
}), c({
|
25538
25538
|
keys: ["Enter"],
|
25539
25539
|
callback: () => {
|
25540
|
-
h(
|
25540
|
+
h(ir.ENTER_PRESSED);
|
25541
25541
|
}
|
25542
25542
|
}), c({
|
25543
25543
|
keys: ["Backspace"],
|
25544
25544
|
callback: () => {
|
25545
|
-
h(
|
25545
|
+
h(ir.DELETE_PRESSED);
|
25546
25546
|
}
|
25547
25547
|
}), c({
|
25548
25548
|
keys: ["."],
|
25549
25549
|
callback: () => {
|
25550
|
-
h(
|
25550
|
+
h(ir.OPEN_CONTEXT_MENU);
|
25551
25551
|
}
|
25552
25552
|
}), () => {
|
25553
25553
|
l(["ArrowDown"]), l(["ArrowUp"]), l(["Enter"]), l(["Backspace"]), l(["."]);
|
@@ -25633,7 +25633,7 @@ const OL = ({
|
|
25633
25633
|
if (!g_)
|
25634
25634
|
return e;
|
25635
25635
|
try {
|
25636
|
-
const n = JSON.parse(localStorage.getItem(
|
25636
|
+
const n = JSON.parse(localStorage.getItem(rr));
|
25637
25637
|
if (!n?.[s])
|
25638
25638
|
throw new Error();
|
25639
25639
|
const a = n[s];
|
@@ -25650,13 +25650,13 @@ const OL = ({
|
|
25650
25650
|
}) => {
|
25651
25651
|
if (!(!g_ || !Array.isArray(s)))
|
25652
25652
|
try {
|
25653
|
-
const n = JSON.parse(localStorage.getItem(
|
25653
|
+
const n = JSON.parse(localStorage.getItem(rr)) ?? {};
|
25654
25654
|
localStorage.setItem(
|
25655
|
-
|
25655
|
+
rr,
|
25656
25656
|
JSON.stringify({ ...n, [e]: s })
|
25657
25657
|
);
|
25658
25658
|
} catch {
|
25659
|
-
localStorage.removeItem(
|
25659
|
+
localStorage.removeItem(rr);
|
25660
25660
|
}
|
25661
25661
|
}, Kd = ({
|
25662
25662
|
areColumnsConfigurable: e,
|
@@ -25722,10 +25722,10 @@ const OL = ({
|
|
25722
25722
|
M(() => {
|
25723
25723
|
const re = () => {
|
25724
25724
|
A(x.current?.scrollLeft > 0);
|
25725
|
-
},
|
25725
|
+
}, Re = (st) => {
|
25726
25726
|
["ArrowUp", "ArrowDown"].includes(st.key) && st.preventDefault();
|
25727
25727
|
};
|
25728
|
-
x.current.addEventListener("scroll", re), x.current.addEventListener("keydown",
|
25728
|
+
x.current.addEventListener("scroll", re), x.current.addEventListener("keydown", Re);
|
25729
25729
|
}, []);
|
25730
25730
|
const xe = be && s ? s.length : W?.() ?? 0, de = X(() => {
|
25731
25731
|
const re = h ?? [];
|
@@ -25740,38 +25740,38 @@ const OL = ({
|
|
25740
25740
|
me(0);
|
25741
25741
|
}, [k, de]), M(() => {
|
25742
25742
|
Ee?.(
|
25743
|
-
de.reduce((re,
|
25743
|
+
de.reduce((re, Re) => (re[Re.id] = Re, re), {})
|
25744
25744
|
);
|
25745
25745
|
}, [de]);
|
25746
25746
|
const K = (re) => () => {
|
25747
25747
|
O(re);
|
25748
25748
|
}, Ce = (re) => {
|
25749
25749
|
re && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && re.dataset.active === "true" && (re.focus({ preventScroll: !0 }), ML(re, x.current, N.current?.offsetHeight), re.dataset.active = "false");
|
25750
|
-
},
|
25750
|
+
}, Ae = () => {
|
25751
25751
|
S(null);
|
25752
|
-
}, at = () => be && s ? h : Object.values(Z), Ye = () => i ?
|
25752
|
+
}, at = () => be && s ? h : Object.values(Z), Ye = () => i ? za.map((re) => /* @__PURE__ */ t.jsxs(
|
25753
25753
|
"div",
|
25754
25754
|
{
|
25755
25755
|
className: `px-20 flexbox py-12 dc__gap-16 ${v ? "border__secondary--bottom" : ""}`,
|
25756
25756
|
children: [
|
25757
25757
|
ee ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
25758
|
-
|
25758
|
+
za.map((Re) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, Re))
|
25759
25759
|
]
|
25760
25760
|
},
|
25761
25761
|
re
|
25762
|
-
)) : E ?
|
25762
|
+
)) : E ? za.map((re) => /* @__PURE__ */ t.jsx(
|
25763
25763
|
"div",
|
25764
25764
|
{
|
25765
25765
|
className: "dc__grid px-20 border__secondary--bottom dc__gap-16",
|
25766
25766
|
style: {
|
25767
25767
|
gridTemplateColumns: ce
|
25768
25768
|
},
|
25769
|
-
children: r.map(({ label:
|
25769
|
+
children: r.map(({ label: Re }) => /* @__PURE__ */ t.jsx("div", { className: "py-12 flex", "aria-label": "Loading...", children: /* @__PURE__ */ t.jsx("div", { className: "shimmer h-16 w-100" }) }, Re))
|
25770
25770
|
},
|
25771
25771
|
re
|
25772
|
-
)) : de.map((re,
|
25773
|
-
const st = ne ===
|
25774
|
-
me(
|
25772
|
+
)) : de.map((re, Re) => {
|
25773
|
+
const st = ne === Re, zt = !!Z[re.id] || be, V = () => {
|
25774
|
+
me(Re);
|
25775
25775
|
}, he = () => {
|
25776
25776
|
u(re);
|
25777
25777
|
};
|
@@ -25788,12 +25788,12 @@ const OL = ({
|
|
25788
25788
|
tabIndex: -1,
|
25789
25789
|
children: [
|
25790
25790
|
r.map(({ field: ue, horizontallySticky: Me, CellComponent: We }, ft) => {
|
25791
|
-
const ls = ue ===
|
25791
|
+
const ls = ue === or, cn = Me || ls, { className: La = "", left: Da = "" } = cn ? zd(ce, ft) : {};
|
25792
25792
|
return ls ? /* @__PURE__ */ t.jsx(
|
25793
25793
|
"div",
|
25794
25794
|
{
|
25795
|
-
className: `flexbox dc__align-items-center ${
|
25796
|
-
style: { left:
|
25795
|
+
className: `flexbox dc__align-items-center ${La}`,
|
25796
|
+
style: { left: Da },
|
25797
25797
|
children: /* @__PURE__ */ t.jsx(
|
25798
25798
|
vs,
|
25799
25799
|
{
|
@@ -25808,8 +25808,8 @@ const OL = ({
|
|
25808
25808
|
) : /* @__PURE__ */ t.jsx(
|
25809
25809
|
"div",
|
25810
25810
|
{
|
25811
|
-
className: `${
|
25812
|
-
style: { left:
|
25811
|
+
className: `${La} generic-table__cell`,
|
25812
|
+
style: { left: Da },
|
25813
25813
|
children: We ? /* @__PURE__ */ t.jsx(
|
25814
25814
|
We,
|
25815
25815
|
{
|
@@ -25854,7 +25854,7 @@ const OL = ({
|
|
25854
25854
|
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",
|
25855
25855
|
children: i ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-12 dc__gap-16", children: [
|
25856
25856
|
ee ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
25857
|
-
|
25857
|
+
za.map((re) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, re))
|
25858
25858
|
] }) : /* @__PURE__ */ t.jsx(
|
25859
25859
|
"div",
|
25860
25860
|
{
|
@@ -25865,14 +25865,14 @@ const OL = ({
|
|
25865
25865
|
children: r.map(
|
25866
25866
|
({
|
25867
25867
|
label: re,
|
25868
|
-
field:
|
25868
|
+
field: Re,
|
25869
25869
|
isSortable: st,
|
25870
25870
|
size: zt,
|
25871
25871
|
showTippyOnTruncate: V,
|
25872
25872
|
horizontallySticky: he
|
25873
25873
|
}, ue) => {
|
25874
|
-
const Me = !!zt?.range, ft = he ||
|
25875
|
-
return
|
25874
|
+
const Me = !!zt?.range, ft = he || Re === or, { className: ls = "", left: cn = "" } = ft ? zd(ce, ue) : {};
|
25875
|
+
return Re === or ? /* @__PURE__ */ t.jsx(
|
25876
25876
|
"div",
|
25877
25877
|
{
|
25878
25878
|
className: `flex ${ls}`,
|
@@ -25885,10 +25885,10 @@ const OL = ({
|
|
25885
25885
|
showChevronDownIcon: !1,
|
25886
25886
|
selectAllIfNotPaginated: !0
|
25887
25887
|
},
|
25888
|
-
|
25888
|
+
Re
|
25889
25889
|
)
|
25890
25890
|
},
|
25891
|
-
|
25891
|
+
Re
|
25892
25892
|
) : /* @__PURE__ */ t.jsx(
|
25893
25893
|
"div",
|
25894
25894
|
{
|
@@ -25900,16 +25900,16 @@ const OL = ({
|
|
25900
25900
|
title: re,
|
25901
25901
|
isSortable: !!st,
|
25902
25902
|
sortOrder: P,
|
25903
|
-
isSorted: j ===
|
25904
|
-
triggerSorting: K(
|
25903
|
+
isSorted: j === Re,
|
25904
|
+
triggerSorting: K(Re),
|
25905
25905
|
showTippyOnTruncate: V,
|
25906
25906
|
disabled: E,
|
25907
25907
|
...Me ? { isResizable: Me, handleResize: ie, id: re } : { isResizable: !1 }
|
25908
25908
|
},
|
25909
|
-
|
25909
|
+
Re
|
25910
25910
|
)
|
25911
25911
|
},
|
25912
|
-
|
25912
|
+
Re
|
25913
25913
|
);
|
25914
25914
|
}
|
25915
25915
|
)
|
@@ -25949,7 +25949,7 @@ const OL = ({
|
|
25949
25949
|
I,
|
25950
25950
|
{
|
25951
25951
|
action: C,
|
25952
|
-
onClose:
|
25952
|
+
onClose: Ae,
|
25953
25953
|
bulkOperationModalData: y,
|
25954
25954
|
isBulkSelectionApplied: be,
|
25955
25955
|
selections: at()
|
@@ -26113,7 +26113,7 @@ const OL = ({
|
|
26113
26113
|
return /* @__PURE__ */ t.jsx(E_, { ...e, resizableConfig: n });
|
26114
26114
|
}, C_ = (e) => {
|
26115
26115
|
const { visibleColumns: s, bulkSelectionConfig: n } = e, a = X(
|
26116
|
-
() => n ? [{ size: { fixed: 20 }, field:
|
26116
|
+
() => n ? [{ size: { fixed: 20 }, field: or }, ...s] : s,
|
26117
26117
|
[!!n, s]
|
26118
26118
|
), r = a.some(({ size: i }) => i && "range" in i && i.range);
|
26119
26119
|
if (r && a.some(({ size: i }) => i === null))
|
@@ -26817,7 +26817,7 @@ const OL = ({
|
|
26817
26817
|
const { email: i } = Zi();
|
26818
26818
|
if (!e)
|
26819
26819
|
return null;
|
26820
|
-
const c = e === i, l = e.startsWith(
|
26820
|
+
const c = e === i, l = e.startsWith(_r), d = () => l ? /* @__PURE__ */ t.jsx(F, { name: "ic-key", color: "N700", size: 20 }) : r ? /* @__PURE__ */ t.jsx(F, { name: "ic-users", color: "N700", size: 20 }) : Oi(e, "dc__no-shrink m-0-imp"), u = () => c && o ? "You" : l ? e.split(":")?.[1] || "-" : e;
|
26821
26821
|
return /* @__PURE__ */ t.jsx("div", { className: `flexbox dc__gap-8 ${n || ""}`, children: /* @__PURE__ */ t.jsxs(JL, { tooltipContent: a, children: [
|
26822
26822
|
d(),
|
26823
26823
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-2", children: [
|
@@ -27119,7 +27119,7 @@ const OL = ({
|
|
27119
27119
|
)) })
|
27120
27120
|
] });
|
27121
27121
|
return /* @__PURE__ */ t.jsx(
|
27122
|
-
|
27122
|
+
ma,
|
27123
27123
|
{
|
27124
27124
|
name: "workflow-options-modal",
|
27125
27125
|
open: e,
|
@@ -27127,7 +27127,7 @@ const OL = ({
|
|
27127
27127
|
onEscape: _ ? Ne : N,
|
27128
27128
|
width: 800,
|
27129
27129
|
closeOnBackdropClick: !0,
|
27130
|
-
children: /* @__PURE__ */ t.jsx(
|
27130
|
+
children: /* @__PURE__ */ t.jsx(ma.Body, { children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col h-500", children: [
|
27131
27131
|
/* @__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: [
|
27132
27132
|
/* @__PURE__ */ t.jsx(Lg, { className: "workflow-options-modal__img dc__position-abs dc__right-0" }),
|
27133
27133
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
@@ -27180,7 +27180,7 @@ function iD(e, s, n, a) {
|
|
27180
27180
|
let r = s[e], o = n[e];
|
27181
27181
|
return a && (r = r.toLowerCase(), o = o.toLowerCase()), r < o ? -1 : r > o ? 1 : 0;
|
27182
27182
|
}
|
27183
|
-
const
|
27183
|
+
const ye = (e) => {
|
27184
27184
|
e.stopPropagation();
|
27185
27185
|
}, cD = (e) => {
|
27186
27186
|
e.preventDefault();
|
@@ -27249,7 +27249,7 @@ function e4(e) {
|
|
27249
27249
|
"$1"
|
27250
27250
|
) || null;
|
27251
27251
|
}
|
27252
|
-
function
|
27252
|
+
function pa(e, s = !1) {
|
27253
27253
|
let n = "";
|
27254
27254
|
try {
|
27255
27255
|
if (e && e.length && e !== In) {
|
@@ -27388,7 +27388,7 @@ function vt(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
27388
27388
|
};
|
27389
27389
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
27390
27390
|
}
|
27391
|
-
const r4 = (e, s) => e ?
|
27391
|
+
const r4 = (e, s) => e ? pa(e, !0) : s ? "" : "Not deployed", He = (e, s = {}) => {
|
27392
27392
|
const n = new URLSearchParams();
|
27393
27393
|
Object.keys(s).forEach((r) => {
|
27394
27394
|
tm.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -27875,7 +27875,7 @@ class Lc {
|
|
27875
27875
|
pe(this, "patch", (s, n, a) => this.fetchInTime({ url: s, type: "PATCH", data: n, options: a }));
|
27876
27876
|
pe(this, "get", (s, n) => this.fetchInTime({ url: s, type: "GET", data: null, options: n }));
|
27877
27877
|
pe(this, "trash", (s, n, a) => this.fetchInTime({ url: s, type: "DELETE", data: n, options: a }));
|
27878
|
-
this.handleLogout = s, this.host = n ||
|
27878
|
+
this.handleLogout = s, this.host = n || mr, this.timeout = a || mb, this.handleRedirectToLicenseActivation = r || Ne;
|
27879
27879
|
}
|
27880
27880
|
/**
|
27881
27881
|
* Merges multiple AbortSignals into a single AbortSignal that aborts
|
@@ -28138,7 +28138,7 @@ function jD(e, {
|
|
28138
28138
|
}) {
|
28139
28139
|
let a;
|
28140
28140
|
return s ? a = `${ai.CI_PIPELINE_PATCH}/regex` : a = n ? Xr({
|
28141
|
-
type:
|
28141
|
+
type: Ca.CI_PIPELINE,
|
28142
28142
|
queryParams: {
|
28143
28143
|
id: e.appId
|
28144
28144
|
}
|
@@ -28146,7 +28146,7 @@ function jD(e, {
|
|
28146
28146
|
}
|
28147
28147
|
function OD(e, s, n) {
|
28148
28148
|
const a = n ? Xr({
|
28149
|
-
type:
|
28149
|
+
type: Ca.WORKFLOW,
|
28150
28150
|
queryParams: { id: e, appWorkflowId: s }
|
28151
28151
|
}) : `${ai.WORKFLOW}/${e}/${s}`;
|
28152
28152
|
return ho(a);
|
@@ -28165,7 +28165,7 @@ const w4 = ({
|
|
28165
28165
|
const [d, u] = w(!1), m = () => {
|
28166
28166
|
u(!1);
|
28167
28167
|
}, p = (g) => {
|
28168
|
-
|
28168
|
+
ye(g), cD(g), u(!0);
|
28169
28169
|
}, _ = async () => {
|
28170
28170
|
try {
|
28171
28171
|
const g = await OD(
|
@@ -28272,7 +28272,7 @@ class D4 extends Ui {
|
|
28272
28272
|
close: this.props.close,
|
28273
28273
|
onSave: this.props.onSave
|
28274
28274
|
},
|
28275
|
-
children: /* @__PURE__ */ t.jsx(
|
28275
|
+
children: /* @__PURE__ */ t.jsx(Ia, { className: "", children: /* @__PURE__ */ t.jsxs("div", { className: `modal__body ${this.props.className || ""}`, children: [
|
28276
28276
|
/* @__PURE__ */ t.jsxs("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
|
28277
28277
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title", children: this.props.title }),
|
28278
28278
|
/* @__PURE__ */ t.jsxs("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
|
@@ -28836,7 +28836,7 @@ const w_ = ({
|
|
28836
28836
|
}).finally(() => {
|
28837
28837
|
W(!1);
|
28838
28838
|
});
|
28839
|
-
},
|
28839
|
+
}, Ae = () => /* @__PURE__ */ t.jsx(
|
28840
28840
|
on,
|
28841
28841
|
{
|
28842
28842
|
heading: "Image labels",
|
@@ -28856,10 +28856,10 @@ const w_ = ({
|
|
28856
28856
|
return c ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 flexbox", children: /* @__PURE__ */ t.jsx($D, { handleEditClick: ce }) }) : /* @__PURE__ */ t.jsx("div", {});
|
28857
28857
|
const re = (V) => {
|
28858
28858
|
V.key === "Enter" && V.target.value.trim() && ne(V.target.value.trim());
|
28859
|
-
},
|
28859
|
+
}, Re = (V) => {
|
28860
28860
|
V.target.value && se(V.target.value), be(V.target.value);
|
28861
28861
|
}, st = (V) => {
|
28862
|
-
|
28862
|
+
ye(V), Z.trim() && ne(Z.trim());
|
28863
28863
|
}, zt = () => {
|
28864
28864
|
let V = j;
|
28865
28865
|
Z.trim() && (V = ne(Z)), Ce(V);
|
@@ -28867,7 +28867,7 @@ const w_ = ({
|
|
28867
28867
|
return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: S && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
|
28868
28868
|
/* @__PURE__ */ t.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
|
28869
28869
|
/* @__PURE__ */ t.jsx("div", { children: "Image labels (eg. v1.0)" }),
|
28870
|
-
|
28870
|
+
Ae()
|
28871
28871
|
] }),
|
28872
28872
|
/* @__PURE__ */ t.jsxs("div", { className: "mt-6 dc__position-rel-imp", "data-testid": "add-tag-text-area", children: [
|
28873
28873
|
/* @__PURE__ */ t.jsx(
|
@@ -28875,10 +28875,10 @@ const w_ = ({
|
|
28875
28875
|
{
|
28876
28876
|
className: "form__input fs-13",
|
28877
28877
|
value: Z,
|
28878
|
-
onChange:
|
28878
|
+
onChange: Re,
|
28879
28879
|
placeholder: "Type a tag and press enter",
|
28880
28880
|
onKeyDown: re,
|
28881
|
-
onBlur:
|
28881
|
+
onBlur: Re,
|
28882
28882
|
ref: Ye
|
28883
28883
|
}
|
28884
28884
|
),
|
@@ -28911,10 +28911,10 @@ const w_ = ({
|
|
28911
28911
|
isSoftDeleted: V?.deleted,
|
28912
28912
|
isEditing: S,
|
28913
28913
|
onSoftDeleteClick: (ue) => {
|
28914
|
-
|
28914
|
+
ye(ue), me(he);
|
28915
28915
|
},
|
28916
28916
|
onHardDeleteClick: (ue) => {
|
28917
|
-
|
28917
|
+
ye(ue), le(he);
|
28918
28918
|
},
|
28919
28919
|
tagId: V.id,
|
28920
28920
|
softDeleteTags: O,
|
@@ -28925,7 +28925,7 @@ const w_ = ({
|
|
28925
28925
|
V.id
|
28926
28926
|
)) }),
|
28927
28927
|
A && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
28928
|
-
/* @__PURE__ */ t.jsx(
|
28928
|
+
/* @__PURE__ */ t.jsx(ha, { className: "icon-dim-16 mr-2" }),
|
28929
28929
|
"Tags cannot be edited/removed later"
|
28930
28930
|
] }),
|
28931
28931
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -28946,7 +28946,7 @@ const w_ = ({
|
|
28946
28946
|
className: "cta flex cancel h-32 lh-32-imp",
|
28947
28947
|
type: "button",
|
28948
28948
|
onClick: (V) => {
|
28949
|
-
|
28949
|
+
ye(V), de();
|
28950
28950
|
},
|
28951
28951
|
disabled: Ee,
|
28952
28952
|
children: "Cancel"
|
@@ -28959,7 +28959,7 @@ const w_ = ({
|
|
28959
28959
|
"data-testid": "save-tags-button",
|
28960
28960
|
type: "button",
|
28961
28961
|
onClick: (V) => {
|
28962
|
-
|
28962
|
+
ye(V), zt();
|
28963
28963
|
},
|
28964
28964
|
disabled: Ee,
|
28965
28965
|
children: Ee ? /* @__PURE__ */ t.jsx(Je, {}) : "Save"
|
@@ -28981,10 +28981,10 @@ const w_ = ({
|
|
28981
28981
|
isSoftDeleted: V?.deleted,
|
28982
28982
|
isEditing: S,
|
28983
28983
|
onSoftDeleteClick: (ue) => {
|
28984
|
-
|
28984
|
+
ye(ue), me(he);
|
28985
28985
|
},
|
28986
28986
|
onHardDeleteClick: (ue) => {
|
28987
|
-
|
28987
|
+
ye(ue), le(he);
|
28988
28988
|
},
|
28989
28989
|
tagId: V.id,
|
28990
28990
|
softDeleteTags: O,
|
@@ -29003,7 +29003,7 @@ const w_ = ({
|
|
29003
29003
|
className: "icon-dim-16 image-tags-container-edit__icon cursor",
|
29004
29004
|
"data-testid": "edit-tags-icon",
|
29005
29005
|
onClick: (V) => {
|
29006
|
-
|
29006
|
+
ye(V), ce();
|
29007
29007
|
}
|
29008
29008
|
}
|
29009
29009
|
) })
|
@@ -29065,7 +29065,7 @@ const w_ = ({
|
|
29065
29065
|
);
|
29066
29066
|
}, $D = ({ handleEditClick: e }) => {
|
29067
29067
|
const s = (n) => {
|
29068
|
-
|
29068
|
+
ye(n), e();
|
29069
29069
|
};
|
29070
29070
|
return /* @__PURE__ */ t.jsxs(
|
29071
29071
|
"button",
|
@@ -29094,7 +29094,7 @@ class FD extends Be.Component {
|
|
29094
29094
|
onEscape: this.props.close,
|
29095
29095
|
onClick: this.handleBodyClick,
|
29096
29096
|
initialFocus: this.props.initialFocus ?? void 0,
|
29097
|
-
children: /* @__PURE__ */ t.jsx("div", { className: `visible-modal__body ${this.props.className || ""}`,
|
29097
|
+
children: /* @__PURE__ */ t.jsx("div", { className: `visible-modal__body ${this.props.className || ""}`, children: this.props.children })
|
29098
29098
|
}
|
29099
29099
|
);
|
29100
29100
|
}
|
@@ -29107,7 +29107,7 @@ function HD() {
|
|
29107
29107
|
throw new Error("Radio compound components cannot be rendered outside the Toggle component");
|
29108
29108
|
return e;
|
29109
29109
|
}
|
29110
|
-
const
|
29110
|
+
const _a = Be.memo(
|
29111
29111
|
({ name: e, onChange: s, children: n, className: a = "", initialTab: r, disabled: o = !1 }) => {
|
29112
29112
|
const [i, c] = w(null);
|
29113
29113
|
M(() => {
|
@@ -29166,7 +29166,7 @@ const pa = Be.memo(
|
|
29166
29166
|
}
|
29167
29167
|
);
|
29168
29168
|
};
|
29169
|
-
|
29169
|
+
_a.Radio = WD;
|
29170
29170
|
const KD = (e) => {
|
29171
29171
|
switch (e) {
|
29172
29172
|
case L.large:
|
@@ -29218,7 +29218,7 @@ const KD = (e) => {
|
|
29218
29218
|
{
|
29219
29219
|
className: `search-bar ${l ? "dc__no-border dc__no-background dc__hover-n50" : "bg__secondary en-2 dc__hover-border-n300"} focus-within-border-b5 dc__block w-100 min-w-200 dc__position-rel br-4 bw-1 ${KD(d)}`,
|
29220
29220
|
children: [
|
29221
|
-
/* @__PURE__ */ t.jsx(
|
29221
|
+
/* @__PURE__ */ t.jsx(ur, { className: "search-bar__icon dc__position-abs icon-color-n6 icon-dim-16" }),
|
29222
29222
|
/* @__PURE__ */ t.jsx(
|
29223
29223
|
"input",
|
29224
29224
|
{
|
@@ -29344,7 +29344,7 @@ const KD = (e) => {
|
|
29344
29344
|
}
|
29345
29345
|
);
|
29346
29346
|
}, P_ = Be.createContext(null);
|
29347
|
-
function
|
29347
|
+
function wa() {
|
29348
29348
|
const e = Be.useContext(P_);
|
29349
29349
|
if (!e)
|
29350
29350
|
throw new Error("Select compound components cannot be rendered outside the Toggle component");
|
@@ -29422,7 +29422,7 @@ const Pn = ({
|
|
29422
29422
|
name: i = "",
|
29423
29423
|
rootClassName: c = ""
|
29424
29424
|
}) => {
|
29425
|
-
const { selected: l, searchString: d, valueComparator: u, handleClick: m } =
|
29425
|
+
const { selected: l, searchString: d, valueComparator: u, handleClick: m } = wa();
|
29426
29426
|
return o = o || l === n, typeof n == "object" && (o = o || u(n)), i.includes(d) ? /* @__PURE__ */ t.jsx(
|
29427
29427
|
"div",
|
29428
29428
|
{
|
@@ -29446,7 +29446,7 @@ const Pn = ({
|
|
29446
29446
|
arrowAsset: r = "",
|
29447
29447
|
hideArrow: o = !1
|
29448
29448
|
}) => {
|
29449
|
-
const { popupOpen: i, loading: c } =
|
29449
|
+
const { popupOpen: i, loading: c } = wa();
|
29450
29450
|
return /* @__PURE__ */ t.jsxs(
|
29451
29451
|
"div",
|
29452
29452
|
{
|
@@ -29467,7 +29467,7 @@ const Pn = ({
|
|
29467
29467
|
}
|
29468
29468
|
);
|
29469
29469
|
}, QD = ({ placeholder: e = "search", style: s = {}, inputStyle: n = {}, rootClassName: a = "" }) => {
|
29470
|
-
const { searchString: r, search: o } =
|
29470
|
+
const { searchString: r, search: o } = wa();
|
29471
29471
|
return /* @__PURE__ */ t.jsxs(
|
29472
29472
|
"div",
|
29473
29473
|
{
|
@@ -29492,7 +29492,7 @@ const Pn = ({
|
|
29492
29492
|
}
|
29493
29493
|
);
|
29494
29494
|
}, $_ = ({ api: e }) => {
|
29495
|
-
const { loading: s, setLoading: n } =
|
29495
|
+
const { loading: s, setLoading: n } = wa();
|
29496
29496
|
return M(() => {
|
29497
29497
|
async function a() {
|
29498
29498
|
n(!0);
|
@@ -29507,7 +29507,7 @@ const Pn = ({
|
|
29507
29507
|
a();
|
29508
29508
|
}, []), null;
|
29509
29509
|
}, eP = ({ rootClassName: e = "", style: s = {} }) => {
|
29510
|
-
const { handleClick: n } =
|
29510
|
+
const { handleClick: n } = wa();
|
29511
29511
|
return /* @__PURE__ */ t.jsx(
|
29512
29512
|
"div",
|
29513
29513
|
{
|
@@ -29565,7 +29565,7 @@ export {
|
|
29565
29565
|
vI as a5,
|
29566
29566
|
iG as a6,
|
29567
29567
|
gr as a7,
|
29568
|
-
|
29568
|
+
ba as a8,
|
29569
29569
|
AI as a9,
|
29570
29570
|
gb as aA,
|
29571
29571
|
rB as aB,
|
@@ -29584,7 +29584,7 @@ export {
|
|
29584
29584
|
Tb as aO,
|
29585
29585
|
Sb as aP,
|
29586
29586
|
dB as aQ,
|
29587
|
-
|
29587
|
+
Ua as aR,
|
29588
29588
|
uB as aS,
|
29589
29589
|
na as aT,
|
29590
29590
|
In as aU,
|
@@ -29604,8 +29604,8 @@ export {
|
|
29604
29604
|
pG as ah,
|
29605
29605
|
_G as ai,
|
29606
29606
|
mb as aj,
|
29607
|
-
|
29608
|
-
|
29607
|
+
mr as ak,
|
29608
|
+
Ea as al,
|
29609
29609
|
sB as am,
|
29610
29610
|
pb as an,
|
29611
29611
|
Kr as ao,
|
@@ -29625,7 +29625,7 @@ export {
|
|
29625
29625
|
wt as b0,
|
29626
29626
|
pB as b1,
|
29627
29627
|
Qc as b2,
|
29628
|
-
|
29628
|
+
pr as b3,
|
29629
29629
|
Nt as b4,
|
29630
29630
|
_B as b5,
|
29631
29631
|
rm as b6,
|
@@ -29640,7 +29640,7 @@ export {
|
|
29640
29640
|
dD as bF,
|
29641
29641
|
Pr as bG,
|
29642
29642
|
e4 as bH,
|
29643
|
-
|
29643
|
+
pa as bI,
|
29644
29644
|
t4 as bJ,
|
29645
29645
|
s4 as bK,
|
29646
29646
|
n4 as bL,
|
@@ -29681,7 +29681,7 @@ export {
|
|
29681
29681
|
Le as bt,
|
29682
29682
|
pt as bu,
|
29683
29683
|
iD as bv,
|
29684
|
-
|
29684
|
+
ye as bw,
|
29685
29685
|
cD as bx,
|
29686
29686
|
fo as by,
|
29687
29687
|
Oc as bz,
|
@@ -29715,7 +29715,7 @@ export {
|
|
29715
29715
|
Je as cP,
|
29716
29716
|
MB as cQ,
|
29717
29717
|
D_ as cR,
|
29718
|
-
|
29718
|
+
ia as cS,
|
29719
29719
|
ZD as cT,
|
29720
29720
|
vb as cU,
|
29721
29721
|
Bt as cV,
|
@@ -29723,7 +29723,7 @@ export {
|
|
29723
29723
|
XI as cX,
|
29724
29724
|
rc as cY,
|
29725
29725
|
kB as cZ,
|
29726
|
-
|
29726
|
+
xa as c_,
|
29727
29727
|
x4 as ca,
|
29728
29728
|
E4 as cb,
|
29729
29729
|
C4 as cc,
|
@@ -29749,7 +29749,7 @@ export {
|
|
29749
29749
|
kr as cw,
|
29750
29750
|
uu as cx,
|
29751
29751
|
CO as cy,
|
29752
|
-
|
29752
|
+
Ia as cz,
|
29753
29753
|
qn as d,
|
29754
29754
|
_V as d$,
|
29755
29755
|
Hs as d0,
|
@@ -29765,7 +29765,7 @@ export {
|
|
29765
29765
|
yT as dA,
|
29766
29766
|
Qi as dB,
|
29767
29767
|
jT as dC,
|
29768
|
-
|
29768
|
+
Ca as dD,
|
29769
29769
|
vm as dE,
|
29770
29770
|
MT as dF,
|
29771
29771
|
KB as dG,
|
@@ -29830,7 +29830,7 @@ export {
|
|
29830
29830
|
ks as eB,
|
29831
29831
|
Rm as eC,
|
29832
29832
|
fr as eD,
|
29833
|
-
|
29833
|
+
oa as eE,
|
29834
29834
|
ii as eF,
|
29835
29835
|
ci as eG,
|
29836
29836
|
At as eH,
|
@@ -29867,7 +29867,7 @@ export {
|
|
29867
29867
|
KT as el,
|
29868
29868
|
zT as em,
|
29869
29869
|
qT as en,
|
29870
|
-
|
29870
|
+
Na as eo,
|
29871
29871
|
Om as ep,
|
29872
29872
|
rt as eq,
|
29873
29873
|
iV as er,
|
@@ -29975,7 +29975,7 @@ export {
|
|
29975
29975
|
Rr as gQ,
|
29976
29976
|
Fn as gR,
|
29977
29977
|
Bj as gS,
|
29978
|
-
|
29978
|
+
ua as gT,
|
29979
29979
|
yr as gU,
|
29980
29980
|
Fj as gV,
|
29981
29981
|
Vj as gW,
|
@@ -29990,7 +29990,7 @@ export {
|
|
29990
29990
|
NR as ge,
|
29991
29991
|
bR as gf,
|
29992
29992
|
TR as gg,
|
29993
|
-
|
29993
|
+
la as gh,
|
29994
29994
|
AR as gi,
|
29995
29995
|
OG as gj,
|
29996
29996
|
cy as gk,
|
@@ -30024,9 +30024,9 @@ export {
|
|
30024
30024
|
T0 as hA,
|
30025
30025
|
vp as hB,
|
30026
30026
|
Wn as hC,
|
30027
|
-
|
30027
|
+
Wa as hD,
|
30028
30028
|
Ip as hE,
|
30029
|
-
|
30029
|
+
Qa as hF,
|
30030
30030
|
Vt as hG,
|
30031
30031
|
S0 as hH,
|
30032
30032
|
Zl as hI,
|
@@ -30045,7 +30045,7 @@ export {
|
|
30045
30045
|
xi as hV,
|
30046
30046
|
Op as hW,
|
30047
30047
|
wS as hX,
|
30048
|
-
|
30048
|
+
Sa as hY,
|
30049
30049
|
LS as hZ,
|
30050
30050
|
s_ as h_,
|
30051
30051
|
VG as ha,
|
@@ -30068,7 +30068,7 @@ export {
|
|
30068
30068
|
lH as hr,
|
30069
30069
|
uH as hs,
|
30070
30070
|
iO as ht,
|
30071
|
-
|
30071
|
+
sr as hu,
|
30072
30072
|
lO as hv,
|
30073
30073
|
dO as hw,
|
30074
30074
|
uO as hx,
|
@@ -30116,11 +30116,11 @@ export {
|
|
30116
30116
|
kO as ia,
|
30117
30117
|
Ii as ib,
|
30118
30118
|
xH as ic,
|
30119
|
-
|
30119
|
+
nr as id,
|
30120
30120
|
zO as ie,
|
30121
30121
|
r_ as ig,
|
30122
30122
|
EH as ih,
|
30123
|
-
|
30123
|
+
ma as ii,
|
30124
30124
|
Rn as ij,
|
30125
30125
|
yp as ik,
|
30126
30126
|
G0 as il,
|
@@ -30208,7 +30208,7 @@ export {
|
|
30208
30208
|
GH as k1,
|
30209
30209
|
Lr as k2,
|
30210
30210
|
Dr as k3,
|
30211
|
-
|
30211
|
+
ir as k4,
|
30212
30212
|
qd as k5,
|
30213
30213
|
HH as k6,
|
30214
30214
|
HL as k7,
|
@@ -30217,7 +30217,7 @@ export {
|
|
30217
30217
|
xB as kA,
|
30218
30218
|
et as kB,
|
30219
30219
|
Pt as kC,
|
30220
|
-
|
30220
|
+
Fa as kD,
|
30221
30221
|
ae as kE,
|
30222
30222
|
EB as kF,
|
30223
30223
|
Kb as kG,
|
@@ -30253,17 +30253,17 @@ export {
|
|
30253
30253
|
XH as kj,
|
30254
30254
|
JH as kk,
|
30255
30255
|
ZH as kl,
|
30256
|
-
|
30256
|
+
$a as km,
|
30257
30257
|
Co as kn,
|
30258
30258
|
hB as ko,
|
30259
30259
|
Hb as kp,
|
30260
30260
|
gB as kq,
|
30261
30261
|
um as kr,
|
30262
|
-
|
30262
|
+
_r as ks,
|
30263
30263
|
gn as kt,
|
30264
30264
|
Yb as ku,
|
30265
30265
|
fs as kv,
|
30266
|
-
|
30266
|
+
Xa as kw,
|
30267
30267
|
ei as kx,
|
30268
30268
|
ti as ky,
|
30269
30269
|
Wb as kz,
|
@@ -30285,11 +30285,11 @@ export {
|
|
30285
30285
|
Us as lD,
|
30286
30286
|
Zv as lE,
|
30287
30287
|
Qv as lF,
|
30288
|
-
|
30288
|
+
Ja as lG,
|
30289
30289
|
zm as lH,
|
30290
30290
|
tG as lI,
|
30291
30291
|
qm as lJ,
|
30292
|
-
|
30292
|
+
ca as lK,
|
30293
30293
|
sG as lL,
|
30294
30294
|
eI as lM,
|
30295
30295
|
tI as lN,
|
@@ -30317,7 +30317,7 @@ export {
|
|
30317
30317
|
dT as li,
|
30318
30318
|
yB as lj,
|
30319
30319
|
uT as lk,
|
30320
|
-
|
30320
|
+
ra as ll,
|
30321
30321
|
Wv as lm,
|
30322
30322
|
KV as ln,
|
30323
30323
|
Nl as lo,
|
@@ -30332,7 +30332,7 @@ export {
|
|
30332
30332
|
Xv as lx,
|
30333
30333
|
ZV as ly,
|
30334
30334
|
QV as lz,
|
30335
|
-
|
30335
|
+
_a as m,
|
30336
30336
|
zi as m$,
|
30337
30337
|
EG as m0,
|
30338
30338
|
CG as m1,
|
@@ -30374,7 +30374,7 @@ export {
|
|
30374
30374
|
rp as ma,
|
30375
30375
|
cA as mb,
|
30376
30376
|
xr as mc,
|
30377
|
-
|
30377
|
+
Ta as md,
|
30378
30378
|
hm as me,
|
30379
30379
|
jB as mf,
|
30380
30380
|
OB as mg,
|
@@ -30424,7 +30424,7 @@ export {
|
|
30424
30424
|
TV as nN,
|
30425
30425
|
SV as nO,
|
30426
30426
|
wb as na,
|
30427
|
-
|
30427
|
+
qa as nb,
|
30428
30428
|
Lb as nc,
|
30429
30429
|
cm as nd,
|
30430
30430
|
fB as ne,
|
@@ -30449,7 +30449,7 @@ export {
|
|
30449
30449
|
_v as nx,
|
30450
30450
|
fv as ny,
|
30451
30451
|
Gm as nz,
|
30452
|
-
|
30452
|
+
da as o,
|
30453
30453
|
Pn as p,
|
30454
30454
|
tB as q,
|
30455
30455
|
Et as r,
|