@devtron-labs/devtron-fe-common-lib 1.10.6 → 1.10.8
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.
@@ -5,8 +5,8 @@ var tc = (e) => {
|
|
5
5
|
var Vp = (e, s, n) => s in e ? Fp(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var ne = (e, s, n) => Vp(e, typeof s != "symbol" ? s + "" : s, n), sc = (e, s, n) => s.has(e) || tc("Cannot " + n);
|
7
7
|
var Us = (e, s, n) => (sc(e, s, "read from private field"), n ? n.call(e) : s.get(e)), Ta = (e, s, n) => s.has(e) ? tc("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Sa = (e, s, n, a) => (sc(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
-
import { j as t, i as he, n as Hp, Q as zr, k as Gp, D as Ka, d as xd, h as Yp, A as Kp, R as Wp, s as zp, c as qp, S as nc, a as Xp, b as Jp, y as Zp, l as Wa, e as Qp, f as ef, g as tf, m as sf, o as ac, p as nf, q as rc, r as af, t as rf, u as of, v as cf, T as oc, w as ri, x as lf, z as ic, B as Ed, C as Nd, E as oi, F as df, V as uf, G as mf, H as pf, I as Cd, J as ff, K as _f, L as bd, M as cc, N as hf, O as gf, P as lc, U as xf, W as Ef, X as
|
9
|
-
import Se, { useState as j, cloneElement as
|
8
|
+
import { j as t, i as he, n as Hp, Q as zr, k as Gp, D as Ka, d as xd, h as Yp, A as Kp, R as Wp, s as zp, c as qp, S as nc, a as Xp, b as Jp, y as Zp, l as Wa, e as Qp, f as ef, g as tf, m as sf, o as ac, p as nf, q as rc, r as af, t as rf, u as of, v as cf, T as oc, w as ri, x as lf, z as ic, B as Ed, C as Nd, E as oi, F as df, V as uf, G as mf, H as pf, I as Cd, J as ff, K as _f, L as bd, M as cc, N as hf, O as gf, P as lc, U as xf, W as Ef, X as Wn, Y as Nf, Z as dc, _ as Ve, $ as Cf, a0 as bf, a1 as uc, a2 as Tf, a3 as Sf, a4 as qr, a5 as mc, a6 as vf, a7 as If, a8 as Af, a9 as yf, aa as Rf, ab as jf, ac as Of, ad as wf, ae as Td, af as Lf, ag as pc, ah as fc, ai as Df, aj as Pf, ak as Mf, al as kf, am as Uf, an as $f, ao as Bf, ap as Ff, aq as Vf, ar as Hf, as as Sd, at as vd, au as Gf, av as Yf, aw as Kf, ax as Wf, ay as Fs } from "./@vendor-DZHtXPTX.js";
|
9
|
+
import Se, { useState as j, cloneElement as zn, useRef as H, useEffect as k, Component as Cr, Children as _c, createElement as ii, useMemo as q, useCallback as Xe, createContext as kt, useContext as _s, Fragment as zs, memo as Et, useReducer as zf, createRef as Ts } from "react";
|
10
10
|
import ci, { components as Be } from "react-select";
|
11
11
|
import qf, { ReactComponent as ms } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
12
12
|
import { ReactComponent as oa } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -43,13 +43,13 @@ import { ReactComponent as Tr } from "./assets/ic-pencil.c75a6acc.svg";
|
|
43
43
|
import { ReactComponent as Od } from "./assets/ic-chat-circle-dots.b5afd171.svg";
|
44
44
|
import { ReactComponent as p_ } from "./assets/licenseCardBG.9753c392.svg";
|
45
45
|
import { h as Le } from "./@moment-C_WeV3Af.js";
|
46
|
-
import { m as mt, u as hc, a as
|
46
|
+
import { m as mt, u as hc, a as An, b as gc, c as xc, A as wd } from "./@framer-motion-DMD7dX-G.js";
|
47
47
|
import { ReactComponent as f_ } from "./assets/ic-charts.f41e185f.svg";
|
48
48
|
import { ReactComponent as Sr } from "./assets/ic-add.cfaa779b.svg";
|
49
49
|
import { ReactComponent as __ } from "./assets/ic-k8s-job.f4414c10.svg";
|
50
50
|
import Qt from "react-ga4";
|
51
51
|
import { ReactComponent as Ld } from "./assets/ic-medium-paintbucket.45544bb9.svg";
|
52
|
-
import { ReactComponent as
|
52
|
+
import { ReactComponent as Cn } from "./assets/ic-help-outline.9c012a0c.svg";
|
53
53
|
import h_ from "./assets/lifebuoy.7d8fdf27.png";
|
54
54
|
import { SliderButton as g_ } from "@typeform/embed-react";
|
55
55
|
import { ReactComponent as Dd } from "./assets/ic-chat-circle-dots.e15514f8.svg";
|
@@ -64,7 +64,7 @@ import { ReactComponent as b_ } from "./assets/ic-megaphone.b9f9a901.svg";
|
|
64
64
|
import { ReactComponent as Md } from "./assets/ic-arrow-square-out.3d1a0d41.svg";
|
65
65
|
import { ReactComponent as T_ } from "./assets/ic-arrow-backward.d951202a.svg";
|
66
66
|
import S_, { ReactComponent as kd } from "./assets/ic-docker.48906f4d.svg";
|
67
|
-
import { ReactComponent as
|
67
|
+
import { ReactComponent as qn } from "./assets/ic-calendar.1d9c66d2.svg";
|
68
68
|
import { ReactComponent as So } from "./assets/ic-person.d066bc6d.svg";
|
69
69
|
import { ReactComponent as Ud } from "./assets/ic-branch.8db43d66.svg";
|
70
70
|
import { ReactComponent as qa } from "./assets/ic-search.976327f1.svg";
|
@@ -76,7 +76,7 @@ import { ReactComponent as A_ } from "./assets/ic-expand-all.d1d223f2.svg";
|
|
76
76
|
import { ReactComponent as y_ } from "./assets/ic-collapse-all.56740920.svg";
|
77
77
|
import { ReactComponent as ps } from "./assets/ic-caret-down.1666c029.svg";
|
78
78
|
import { ReactComponent as Qs } from "./assets/ic-info-filled.f870ac11.svg";
|
79
|
-
import { ReactComponent as
|
79
|
+
import { ReactComponent as bn } from "./assets/ic-help.39c58c34.svg";
|
80
80
|
import { ReactComponent as Fd } from "./assets/ic-arrow-out.6aea09d0.svg";
|
81
81
|
import { ReactComponent as Vd } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
82
82
|
import R_, { ReactComponent as Hd } from "./assets/ic-mechanical-operation.3c3f4672.svg";
|
@@ -96,7 +96,7 @@ import { ReactComponent as vo } from "./assets/ic-file-code.ed2812f3.svg";
|
|
96
96
|
import { ReactComponent as U_ } from "./assets/ic-diff-file-updated.a8293158.svg";
|
97
97
|
import { ReactComponent as $_ } from "./assets/ic-diff-file-added.e111ba14.svg";
|
98
98
|
import { ReactComponent as B_ } from "./assets/ic-diff-file-removed.7863a55f.svg";
|
99
|
-
import { ReactComponent as
|
99
|
+
import { ReactComponent as Xn } from "./assets/ic-info-outlined.f4fa3224.svg";
|
100
100
|
import { ReactComponent as Ar } from "./assets/ic-sort-arrow-down.5cf54d08.svg";
|
101
101
|
import { ReactComponent as Kd } from "./assets/ic-arrow-up-down.945ee496.svg";
|
102
102
|
import { ReactComponent as yr } from "./assets/ic-check.27c51fa1.svg";
|
@@ -131,13 +131,13 @@ import { ReactComponent as ih } from "./assets/ic-book-open.7cb94ee8.svg";
|
|
131
131
|
import ch from "./assets/empty-noresult@2x.022ec87c.png";
|
132
132
|
import Ao from "./assets/ic-not-authorized.cb3b5ff2.svg";
|
133
133
|
import lh from "./assets/ic-not-found.f5857c12.svg";
|
134
|
-
import
|
134
|
+
import kn from "./assets/ic-page-not-found.3c4f114b.svg";
|
135
135
|
import { ReactComponent as dh } from "./assets/ic-tilde.ec1a1ea4.svg";
|
136
136
|
import { ReactComponent as uh } from "./assets/ic-medal.a2e911f5.svg";
|
137
|
-
import { ReactComponent as
|
137
|
+
import { ReactComponent as Hn } from "./assets/inject-tag.28e72db6.svg";
|
138
138
|
import { ReactComponent as mh } from "./assets/ic-upload-arrow-animated.3db85855.svg";
|
139
139
|
import ph from "./assets/DeployAudio.566e45df.mp3";
|
140
|
-
import { ReactComponent as
|
140
|
+
import { ReactComponent as Tn } from "./assets/ic-warning-y5.d1fb03fe.svg";
|
141
141
|
import { e as Xr, K as fh, a as _h, M as hh, b as gh, m as Cc } from "./@monaco-editor-CVagbUeH.js";
|
142
142
|
import { ReactComponent as Xd } from "./assets/ic-compare.0ee3e4cf.svg";
|
143
143
|
import gi, { render as Jd, createPortal as xh } from "react-dom";
|
@@ -271,12 +271,12 @@ import { ReactComponent as Ix } from "./assets/ic-travclan.29b9f4c3.svg";
|
|
271
271
|
import { ReactComponent as Ax } from "./assets/ic-unknown.89dc351a.svg";
|
272
272
|
import { ReactComponent as yx } from "./assets/ic-user-key.5dc44524.svg";
|
273
273
|
import { ReactComponent as Rx } from "./assets/ic-warning.414e37e3.svg";
|
274
|
-
const jx = 6e4, Xa = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", Ss = "https://docs.devtron.ai", iD = "https://devtron.ai/",
|
275
|
-
APP_METRICS: `${Ss}${
|
276
|
-
APP_TAGS: `${Ss}${
|
277
|
-
APP_OVERVIEW_TAGS: `${Ss}${
|
278
|
-
BLOB_STORAGE: `${Ss}${
|
279
|
-
GLOBAL_CONFIG_BUILD_INFRA: `${Ss}${
|
274
|
+
const jx = 6e4, Xa = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", Ss = "https://docs.devtron.ai", iD = "https://devtron.ai/", yn = "/v/v0.7", Ei = "https://discord.devtron.ai/", ou = "https://json-schema.org/draft/2020-12/schema", xn = {
|
275
|
+
APP_METRICS: `${Ss}${yn}/usage/applications/app-details/app-metrics`,
|
276
|
+
APP_TAGS: `${Ss}${yn}/usage/applications/create-application#tags`,
|
277
|
+
APP_OVERVIEW_TAGS: `${Ss}${yn}/usage/applications/overview#manage-tags`,
|
278
|
+
BLOB_STORAGE: `${Ss}${yn}/getting-started/install/installation-configuration#configuration-of-blob-storage`,
|
279
|
+
GLOBAL_CONFIG_BUILD_INFRA: `${Ss}${yn}/global-configurations/build-infra`,
|
280
280
|
ENTERPRISE_LICENSE: `${Ss}/enterprise-license`
|
281
281
|
}, Ht = {
|
282
282
|
STRING: /^[a-zA-Z0-9_]+$/,
|
@@ -478,8 +478,8 @@ const Ia = {
|
|
478
478
|
const [s, n] = e.split(":"), a = parseInt(s, 10), r = parseInt(n, 10);
|
479
479
|
return a === 12 && r === 0 ? Ia.NOON : a === 0 && r === 0 ? Ia.MIDNIGHT : a >= 12 ? Ia.PM : Ia.AM;
|
480
480
|
};
|
481
|
-
var
|
482
|
-
const
|
481
|
+
var Jn = /* @__PURE__ */ ((e) => (e.inputChange = "input-change", e.selectOption = "select-option", e.deselectOption = "deselect-option", e.removeValue = "remove-value", e.inputBlur = "input-blur", e))(Jn || {});
|
482
|
+
const Sn = "0001-01-01T00:00:00Z", iu = [void 0, null, "", NaN], Bt = {
|
483
483
|
OK: 200,
|
484
484
|
NO_CONTENT: 204,
|
485
485
|
BAD_REQUEST: 400,
|
@@ -546,11 +546,11 @@ class Lt extends Error {
|
|
546
546
|
}
|
547
547
|
}
|
548
548
|
var ia = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(ia || {}), pt = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(pt || {}), en = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(en || {});
|
549
|
-
const
|
549
|
+
const Un = {
|
550
550
|
Security: "SECURITY",
|
551
551
|
Changes: "CHANGES"
|
552
552
|
};
|
553
|
-
var Ft = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ft || {}), mu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(mu || {}), Fx = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(Fx || {}), Vx = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Vx || {}),
|
553
|
+
var Ft = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ft || {}), mu = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(mu || {}), Fx = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(Fx || {}), Vx = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))(Vx || {}), Gn = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Gn || {}), Hx = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Hx || {}), Gx = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(Gx || {}), Ro = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Ro || {}), Yx = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(Yx || {}), pu = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(pu || {}), Kx = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(Kx || {}), dn = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(dn || {}), Wx = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(Wx || {}), Ks = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Ks || {}), Is = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Is || {}), Zn = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Zn || {}), jo = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(jo || {}), zx = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(zx || {}), qx = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(qx || {}), ce = /* @__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))(ce || {}), Oo = /* @__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))(Oo || {}), qe = /* @__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))(qe || {}), Ni = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(Ni || {}), rn = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(rn || {}), Xx = /* @__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))(Xx || {}), Jx = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(Jx || {}), fu = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(fu || {}), ct = /* @__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.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(ct || {}), jr = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(jr || {}), Zx = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(Zx || {}), Qn = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(Qn || {}), $t = /* @__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))($t || {}), Qx = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(Qx || {}), eE = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(eE || {}), ka = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(ka || {}), tE = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))(tE || {}), _u = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(_u || {});
|
554
554
|
const ED = [
|
555
555
|
{
|
556
556
|
label: "GUI",
|
@@ -592,7 +592,7 @@ const Aa = {
|
|
592
592
|
NOTIFICATION: "notifier",
|
593
593
|
SECURITY_TRIVY: "security.trivy",
|
594
594
|
SECURITY_CLAIR: "security.clair"
|
595
|
-
}, lE = "ddd DD MMM YYYY HH:mm:ss", wo = "API-TOKEN:",
|
595
|
+
}, lE = "ddd DD MMM YYYY HH:mm:ss", wo = "API-TOKEN:", Yn = "••••••••";
|
596
596
|
var dE = /* @__PURE__ */ ((e) => (e.add = "add", e.replace = "replace", e.remove = "remove", e))(dE || {}), ls = /* @__PURE__ */ ((e) => (e.PRE = "PRE", e.DEPLOY = "DEPLOY", e.POST = "POST", e))(ls || {}), Ua = /* @__PURE__ */ ((e) => (e.LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG", e.LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG", e.SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG", e))(Ua || {}), Lo = /* @__PURE__ */ ((e) => (e.production = "Production", e.nonProduction = "Non-Production", e))(Lo || {}), z = /* @__PURE__ */ ((e) => (e.DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED", e.GIT_COMMIT = "GIT_COMMIT", e.GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED", e.ARGOCD_SYNC = "ARGOCD_SYNC", e.ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED", e.KUBECTL_APPLY = "KUBECTL_APPLY", e.KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED", e.KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED", e.HEALTHY = "HEALTHY", e.APP_HEALTH = "APP_HEALTH", e.DEPLOYMENT_FAILED = "FAILED", e.FETCH_TIMED_OUT = "TIMED_OUT", e.UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS", e.DEGRADED = "DEGRADED", e.DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED", e.ABORTED = "ABORTED", e.INPROGRESS = "INPROGRESS", e.HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED", e))(z || {});
|
597
597
|
const Ke = {
|
598
598
|
DATA_NOT_AVAILABLE: "Data not available",
|
@@ -945,9 +945,9 @@ const Mo = {
|
|
945
945
|
...o,
|
946
946
|
...e ? { content: /* @__PURE__ */ t.jsx(SE, { ...e }) } : {},
|
947
947
|
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
948
|
-
children:
|
948
|
+
children: zn(r, { ...r.props, onMouseEnter: l })
|
949
949
|
}
|
950
|
-
) :
|
950
|
+
) : zn(r, { ...r.props, onMouseEnter: l });
|
951
951
|
}, Qr = {
|
952
952
|
10: 1,
|
953
953
|
12: 1
|
@@ -979,7 +979,7 @@ const Mo = {
|
|
979
979
|
"ic-book-open": ug,
|
980
980
|
"ic-browser": mg,
|
981
981
|
"ic-build-color": pg,
|
982
|
-
"ic-calendar":
|
982
|
+
"ic-calendar": qn,
|
983
983
|
"ic-cancelled": fg,
|
984
984
|
"ic-card-stack": _g,
|
985
985
|
"ic-caret-left": hg,
|
@@ -1098,7 +1098,7 @@ const Mo = {
|
|
1098
1098
|
]
|
1099
1099
|
}
|
1100
1100
|
);
|
1101
|
-
var ue = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(ue || {}), Ee = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e))(Ee || {}),
|
1101
|
+
var ue = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(ue || {}), Ee = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e))(Ee || {}), un = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e.anchor = "anchor", e))(un || {});
|
1102
1102
|
const yE = {
|
1103
1103
|
[L.xxs_small_icon]: `${rs[L.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
1104
1104
|
[L.xxs]: `${rs[L.xxs]} px-9 fw-6 dc__gap-6 mw-48`,
|
@@ -1133,31 +1133,47 @@ const Nu = {
|
|
1133
1133
|
icon: r,
|
1134
1134
|
isAutoTriggerActive: o
|
1135
1135
|
}) => `button button__${s}--${n} ${r ? RE[e] : yE[e]} ${o ? "button--auto-click" : ""} ${a ? "button--loading" : ""}`, LE = ({
|
1136
|
-
component: e =
|
1137
|
-
|
1138
|
-
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
{
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
|
1159
|
-
|
1160
|
-
|
1136
|
+
component: e = un.button,
|
1137
|
+
anchorProps: s,
|
1138
|
+
linkProps: n,
|
1139
|
+
buttonProps: a,
|
1140
|
+
onClick: r,
|
1141
|
+
elementRef: o,
|
1142
|
+
...i
|
1143
|
+
}) => {
|
1144
|
+
const c = `${i.className} button__link ${i.disabled ? "dc__disable-click" : ""}`;
|
1145
|
+
return e === un.link ? /* @__PURE__ */ t.jsx(
|
1146
|
+
hs,
|
1147
|
+
{
|
1148
|
+
...n,
|
1149
|
+
...i,
|
1150
|
+
className: c,
|
1151
|
+
onClick: r,
|
1152
|
+
ref: o
|
1153
|
+
}
|
1154
|
+
) : e === un.anchor ? /* @__PURE__ */ t.jsx(
|
1155
|
+
"a",
|
1156
|
+
{
|
1157
|
+
target: "_blank",
|
1158
|
+
rel: "noopener noreferrer",
|
1159
|
+
...s,
|
1160
|
+
...i,
|
1161
|
+
className: c,
|
1162
|
+
onClick: r,
|
1163
|
+
ref: o,
|
1164
|
+
children: i.children
|
1165
|
+
}
|
1166
|
+
) : /* @__PURE__ */ t.jsx(
|
1167
|
+
"button",
|
1168
|
+
{
|
1169
|
+
...a,
|
1170
|
+
...i,
|
1171
|
+
type: a?.type || "button",
|
1172
|
+
onClick: r,
|
1173
|
+
ref: o
|
1174
|
+
}
|
1175
|
+
);
|
1176
|
+
}, ae = ({
|
1161
1177
|
dataTestId: e,
|
1162
1178
|
text: s,
|
1163
1179
|
variant: n = ue.primary,
|
@@ -1472,7 +1488,7 @@ const Nu = {
|
|
1472
1488
|
] });
|
1473
1489
|
return /* @__PURE__ */ t.jsx(Be.ValueContainer, { ...s, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
1474
1490
|
i(),
|
1475
|
-
|
1491
|
+
zn(n[1])
|
1476
1492
|
] }) });
|
1477
1493
|
}, PD = {
|
1478
1494
|
container: (e, s) => ({
|
@@ -1665,7 +1681,7 @@ const Nu = {
|
|
1665
1681
|
}
|
1666
1682
|
);
|
1667
1683
|
};
|
1668
|
-
var VE = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(VE || {}),
|
1684
|
+
var VE = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(VE || {}), $n = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))($n || {}), HE = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(HE || {}), Pe = /* @__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))(Pe || {}), Gt = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(Gt || {}), ko = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))(ko || {}), ot = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(ot || {}), Ls = /* @__PURE__ */ ((e) => (e[e.ConfigMap = 1] = "ConfigMap", e[e.Secret = 2] = "Secret", e))(Ls || {}), Or = /* @__PURE__ */ ((e) => (e.BASE = "", e.INHERITED = "INHERITING", e.OVERRIDDEN = "OVERRIDDEN", e.ENV = "ENV", e.UNPUBLISHED = "UNPUBLISHED", e))(Or || {}), bu = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(bu || {});
|
1669
1685
|
const Ci = (e) => {
|
1670
1686
|
const s = H(null), [n, a] = j(!1), r = e.theme === ia.white, o = (N) => {
|
1671
1687
|
N.keyCode === 27 && c(N);
|
@@ -1708,7 +1724,7 @@ const Ci = (e) => {
|
|
1708
1724
|
}
|
1709
1725
|
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${v || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${v || 20} ${S || ""}` }) }),
|
1710
1726
|
y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${O ? "mr-12" : ""}`, children: y }),
|
1711
|
-
T && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(
|
1727
|
+
T && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(Cn, { className: "icon-dim-20" }) }),
|
1712
1728
|
O && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1713
1729
|
xs,
|
1714
1730
|
{
|
@@ -1724,7 +1740,7 @@ const Ci = (e) => {
|
|
1724
1740
|
{
|
1725
1741
|
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"}`,
|
1726
1742
|
children: [
|
1727
|
-
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(
|
1743
|
+
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(bn, { className: "icon-dim-20 fcv-5" }) }),
|
1728
1744
|
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: T })
|
1729
1745
|
]
|
1730
1746
|
}
|
@@ -1798,7 +1814,7 @@ const Ci = (e) => {
|
|
1798
1814
|
headingInfo: u,
|
1799
1815
|
className: "w-300 h-100 dc__no-text-transform",
|
1800
1816
|
placement: c,
|
1801
|
-
Icon:
|
1817
|
+
Icon: bn,
|
1802
1818
|
heading: e,
|
1803
1819
|
infoText: s,
|
1804
1820
|
iconClass: n,
|
@@ -1817,7 +1833,7 @@ const Ci = (e) => {
|
|
1817
1833
|
className: "p-0 dc__no-background dc__no-border dc__outline-none-imp flex dc__tab-focus dc__no-shrink",
|
1818
1834
|
"aria-label": "Info Icon",
|
1819
1835
|
"data-testid": l,
|
1820
|
-
children: /* @__PURE__ */ t.jsx(
|
1836
|
+
children: /* @__PURE__ */ t.jsx(Cn, { className: i })
|
1821
1837
|
}
|
1822
1838
|
)
|
1823
1839
|
}
|
@@ -2017,7 +2033,7 @@ const Ds = {
|
|
2017
2033
|
infoText: a ?? Qe.EDIT_DEFAULT_TOOLTIP,
|
2018
2034
|
additionalContent: r,
|
2019
2035
|
heading: i || Qe.HEADING,
|
2020
|
-
documentationLink:
|
2036
|
+
documentationLink: xn.GLOBAL_CONFIG_BUILD_INFRA,
|
2021
2037
|
documentationLinkText: "View Documentation",
|
2022
2038
|
iconClassName: "icon-dim-20 fcn-6"
|
2023
2039
|
}
|
@@ -2080,9 +2096,9 @@ function yu(e, s, n = Ce.ASC) {
|
|
2080
2096
|
}
|
2081
2097
|
const qD = (e) => {
|
2082
2098
|
switch (e) {
|
2083
|
-
case
|
2099
|
+
case Qn.PULL_REQUEST:
|
2084
2100
|
return /* @__PURE__ */ t.jsx(_i, { className: "icon-dim-12" });
|
2085
|
-
case
|
2101
|
+
case Qn.TAG_CREATION:
|
2086
2102
|
return /* @__PURE__ */ t.jsx(br, { className: "icon-dim-12" });
|
2087
2103
|
default:
|
2088
2104
|
return /* @__PURE__ */ t.jsx(su, { className: "icon-dim-12" });
|
@@ -2243,7 +2259,7 @@ function sN(e, s) {
|
|
2243
2259
|
{ nodes: {}, aggregation: {}, statusCount: {}, nodeStatusCount: {}, aggregatorStatusCount: {} }
|
2244
2260
|
);
|
2245
2261
|
}
|
2246
|
-
const nN = (e, s = !1) => s ? btoa(e) : atob(e), Fo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? nN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), js = (e) => !!e && e !==
|
2262
|
+
const nN = (e, s = !1) => s ? btoa(e) : atob(e), Fo = (e, s = !1) => Object.keys(e).map((n) => ({ key: n, value: e[n] ? nN(e[n], s) : e[n] })).reduce((n, a) => (n[a.key] = a.value, n), {}), js = (e) => !!e && e !== Sn, aN = (e, s) => {
|
2247
2263
|
if (!js(e) || !js(s))
|
2248
2264
|
return "-";
|
2249
2265
|
const n = Le(s).diff(Le(e), "seconds"), a = Le(s).diff(Le(e), "minutes"), r = Le(s).diff(Le(e), "hours");
|
@@ -2680,7 +2696,7 @@ const Uc = {
|
|
2680
2696
|
}, xN = (e, s, n) => {
|
2681
2697
|
const a = s.reduce((c, l) => (c[n(l)] = !0, c), {}), r = e.map((c) => n(c));
|
2682
2698
|
return r.every((c) => a[c]) ? pt.CHECKED : r.some((c) => a[c]) ? pt.INTERMEDIATE : null;
|
2683
|
-
},
|
2699
|
+
}, En = (e, s, n = { label: "", value: "" }, a = null) => Array.isArray(e) ? e.flatMap(
|
2684
2700
|
(o) => "options" in o ? o.options : [o]
|
2685
2701
|
).find((o) => (a ? a(o) : o.value) === s) ?? n : n;
|
2686
2702
|
class ks extends Cr {
|
@@ -2879,13 +2895,13 @@ const EN = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2879
2895
|
);
|
2880
2896
|
if (i) {
|
2881
2897
|
a?.onChange?.(u, {
|
2882
|
-
action:
|
2898
|
+
action: Jn.deselectOption,
|
2883
2899
|
option: null
|
2884
2900
|
});
|
2885
2901
|
return;
|
2886
2902
|
}
|
2887
2903
|
a?.onChange?.([...u, ...o], {
|
2888
|
-
action:
|
2904
|
+
action: Jn.selectOption,
|
2889
2905
|
option: null
|
2890
2906
|
});
|
2891
2907
|
}, l = (d) => {
|
@@ -3083,12 +3099,12 @@ const EN = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3083
3099
|
[e, fe, d, f, an, v]
|
3084
3100
|
), Wr = (Oe) => {
|
3085
3101
|
const Es = Oe?.trim();
|
3086
|
-
return A && !!Es && !
|
3102
|
+
return A && !!Es && !En(
|
3087
3103
|
le,
|
3088
3104
|
Es,
|
3089
3105
|
null,
|
3090
3106
|
Nt
|
3091
|
-
) && !
|
3107
|
+
) && !En(De, Es, null, Nt);
|
3092
3108
|
}, Rp = Xe(
|
3093
3109
|
(Oe) => /* @__PURE__ */ t.jsx(
|
3094
3110
|
SN,
|
@@ -3251,10 +3267,10 @@ const EN = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
3251
3267
|
}), r && _ < r && (_ = r), o && _ > o && (_ = o), f(_);
|
3252
3268
|
}, 500, [d]);
|
3253
3269
|
const E = (_, { action: N }) => {
|
3254
|
-
N ===
|
3270
|
+
N === Jn.inputChange ? (u(_), _ || a?.(null, {
|
3255
3271
|
action: "remove-value",
|
3256
3272
|
removedValue: e
|
3257
|
-
})) : N ===
|
3273
|
+
})) : N === Jn.inputBlur && u(e?.value || "");
|
3258
3274
|
}, g = (_) => {
|
3259
3275
|
a?.(
|
3260
3276
|
{ label: _, value: _ },
|
@@ -3569,16 +3585,16 @@ const ku = (e) => ({
|
|
3569
3585
|
let c = r;
|
3570
3586
|
return e.map((d, u) => {
|
3571
3587
|
let m = "";
|
3572
|
-
const p = d.filterState ??
|
3588
|
+
const p = d.filterState ?? Gn.ALLOWED;
|
3573
3589
|
n && a && d.id === n && (m = a);
|
3574
|
-
const f = !c && o && p ===
|
3590
|
+
const f = !c && o && p === Gn.ALLOWED ? !d.vulnerable : !1;
|
3575
3591
|
return f && (c = !0), {
|
3576
3592
|
index: i + u,
|
3577
3593
|
id: d.id,
|
3578
3594
|
deployedTime: d.deployed_time ? Le(d.deployed_time).format("ddd, DD MMM YYYY, hh:mm A") : "Not Deployed",
|
3579
3595
|
deployedBy: d.deployedBy,
|
3580
3596
|
wfrId: d.wfrId,
|
3581
|
-
tab:
|
3597
|
+
tab: Un.Changes,
|
3582
3598
|
image: tr(d.image),
|
3583
3599
|
showChanges: !1,
|
3584
3600
|
vulnerabilities: [],
|
@@ -3615,7 +3631,7 @@ const ku = (e) => ({
|
|
3615
3631
|
filterState: p,
|
3616
3632
|
appliedFiltersTimestamp: d.appliedFiltersTimestamp ?? "",
|
3617
3633
|
appliedFilters: d.appliedFilters ?? [],
|
3618
|
-
appliedFiltersState: d.appliedFiltersState ??
|
3634
|
+
appliedFiltersState: d.appliedFiltersState ?? Gn.ALLOWED,
|
3619
3635
|
createdTime: d.createdTime ?? "",
|
3620
3636
|
dataSource: d.data_source ?? "",
|
3621
3637
|
registryType: d.registryType ?? "",
|
@@ -3718,7 +3734,7 @@ const ku = (e) => ({
|
|
3718
3734
|
e
|
3719
3735
|
), c = Gc(e), l = Yc(e);
|
3720
3736
|
return {
|
3721
|
-
materials: a && a === pu.RESOURCE ? o.filter((u) => u.filterState ===
|
3737
|
+
materials: a && a === pu.RESOURCE ? o.filter((u) => u.filterState === Gn.ALLOWED) : o,
|
3722
3738
|
...i,
|
3723
3739
|
...c,
|
3724
3740
|
...l
|
@@ -3863,7 +3879,7 @@ const Wc = () => ({
|
|
3863
3879
|
});
|
3864
3880
|
}
|
3865
3881
|
return k(() => (window.addEventListener("resize", n, !1), () => window.removeEventListener("resize", n, !1)), []), e;
|
3866
|
-
},
|
3882
|
+
}, mn = 1, rC = {
|
3867
3883
|
PAGE_SIZE: "pageSize",
|
3868
3884
|
PAGE_NUMBER: "pageNumber",
|
3869
3885
|
SEARCH_KEY: "searchKey",
|
@@ -3901,7 +3917,7 @@ const Wc = () => ({
|
|
3901
3917
|
const A = l.get(qc), R = l.get(ao), b = l.get(Xc), O = l.get(Zc), w = l.get(Jc) || e || "", $ = Object.values(Ce).includes(O) ? O : Ce.ASC, F = d(l);
|
3902
3918
|
return {
|
3903
3919
|
pageSize: Number(A) || ln,
|
3904
|
-
pageNumber: Number(R) ||
|
3920
|
+
pageNumber: Number(R) || mn,
|
3905
3921
|
searchKey: b || "",
|
3906
3922
|
sortBy: w,
|
3907
3923
|
// sort order should only be applied if the key is available
|
@@ -3914,8 +3930,8 @@ const Wc = () => ({
|
|
3914
3930
|
}, _ = (A, R, b = {}) => {
|
3915
3931
|
l.set(A, String(R)), h(l.toString(), b);
|
3916
3932
|
}, N = (A = {}) => {
|
3917
|
-
if (m !==
|
3918
|
-
_(ao,
|
3933
|
+
if (m !== mn) {
|
3934
|
+
_(ao, mn, A);
|
3919
3935
|
return;
|
3920
3936
|
}
|
3921
3937
|
h(l.toString(), A);
|
@@ -4032,11 +4048,11 @@ const Wc = () => ({
|
|
4032
4048
|
sortBy: e
|
4033
4049
|
}), [a, r] = j(""), { sortBy: o, sortOrder: i } = s, [c, l] = j({
|
4034
4050
|
pageSize: ln,
|
4035
|
-
pageNumber:
|
4051
|
+
pageNumber: mn
|
4036
4052
|
}), d = c.pageSize * (c.pageNumber - 1), u = () => {
|
4037
4053
|
l((g) => ({
|
4038
4054
|
...g,
|
4039
|
-
pageNumber:
|
4055
|
+
pageNumber: mn
|
4040
4056
|
}));
|
4041
4057
|
};
|
4042
4058
|
return {
|
@@ -4059,7 +4075,7 @@ const Wc = () => ({
|
|
4059
4075
|
sortBy: e
|
4060
4076
|
}), l({
|
4061
4077
|
pageSize: ln,
|
4062
|
-
pageNumber:
|
4078
|
+
pageNumber: mn
|
4063
4079
|
});
|
4064
4080
|
},
|
4065
4081
|
...c,
|
@@ -5120,7 +5136,7 @@ const gP = (e, s = !1) => {
|
|
5120
5136
|
);
|
5121
5137
|
}
|
5122
5138
|
return await IC(r);
|
5123
|
-
},
|
5139
|
+
}, Nn = (e, s = !0) => {
|
5124
5140
|
switch (e?.key) {
|
5125
5141
|
case U.NODE_SELECTOR:
|
5126
5142
|
return {
|
@@ -5191,7 +5207,7 @@ const gP = (e, s = !1) => {
|
|
5191
5207
|
};
|
5192
5208
|
}, TP = (e) => !!ca[e], jC = (e, s) => {
|
5193
5209
|
if (!ca[e.key])
|
5194
|
-
return
|
5210
|
+
return Nn(e);
|
5195
5211
|
const n = e.value?.map(
|
5196
5212
|
(a) => {
|
5197
5213
|
const r = Ji({
|
@@ -5217,7 +5233,7 @@ const gP = (e, s = !1) => {
|
|
5217
5233
|
value: n
|
5218
5234
|
};
|
5219
5235
|
}, OC = (e) => {
|
5220
|
-
const s =
|
5236
|
+
const s = Nn(e, !1);
|
5221
5237
|
if (!ca[s.key])
|
5222
5238
|
return s;
|
5223
5239
|
const a = s.value?.filter(
|
@@ -5241,7 +5257,7 @@ const gP = (e, s = !1) => {
|
|
5241
5257
|
};
|
5242
5258
|
return i[c.key] = {
|
5243
5259
|
...u,
|
5244
|
-
...
|
5260
|
+
...Nn(u)
|
5245
5261
|
}, i;
|
5246
5262
|
},
|
5247
5263
|
{}
|
@@ -5258,7 +5274,7 @@ const gP = (e, s = !1) => {
|
|
5258
5274
|
const l = o[c], d = r[c]?.active ? r[c] : null;
|
5259
5275
|
if (!l)
|
5260
5276
|
return i;
|
5261
|
-
const u =
|
5277
|
+
const u = Nn(l), m = ca[c] && !a;
|
5262
5278
|
let p = d ? {
|
5263
5279
|
...d,
|
5264
5280
|
defaultValue: m ? null : u
|
@@ -5335,7 +5351,7 @@ const gP = (e, s = !1) => {
|
|
5335
5351
|
(x, E) => {
|
5336
5352
|
if (!p[E])
|
5337
5353
|
return x;
|
5338
|
-
const g =
|
5354
|
+
const g = Nn(f[E]), h = Nn(p[E]);
|
5339
5355
|
return x[E] = {
|
5340
5356
|
...g,
|
5341
5357
|
defaultValue: h,
|
@@ -5518,7 +5534,7 @@ const BC = ({
|
|
5518
5534
|
}
|
5519
5535
|
];
|
5520
5536
|
};
|
5521
|
-
var VC = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.SAVED = "variables", e.ENVIRONMENT_LIST = "environments", e))(VC || {}),
|
5537
|
+
var VC = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.SAVED = "variables", e.ENVIRONMENT_LIST = "environments", e))(VC || {}), Bn = /* @__PURE__ */ ((e) => (e.JOB_AND_CRONJOB_CHART_NAME = "Job & CronJob", e.ROLLOUT_DEPLOYMENT = "Rollout Deployment", e.DEPLOYMENT = "Deployment", e.STATEFUL_SET = "StatefulSet", e))(Bn || {});
|
5522
5538
|
const HC = "object", GC = {
|
5523
5539
|
ContainerPort: {
|
5524
5540
|
type: "array",
|
@@ -5615,10 +5631,10 @@ const HC = "object", GC = {
|
|
5615
5631
|
return Object.values(s).map((a) => (a.versions.sort((r, o) => yu(r.version, o.version)), a));
|
5616
5632
|
}, yP = (e) => {
|
5617
5633
|
switch (e) {
|
5618
|
-
case
|
5619
|
-
case
|
5620
|
-
case
|
5621
|
-
case
|
5634
|
+
case Bn.JOB_AND_CRONJOB_CHART_NAME:
|
5635
|
+
case Bn.DEPLOYMENT:
|
5636
|
+
case Bn.ROLLOUT_DEPLOYMENT:
|
5637
|
+
case Bn.STATEFUL_SET:
|
5622
5638
|
return YC;
|
5623
5639
|
default:
|
5624
5640
|
return {};
|
@@ -5947,7 +5963,7 @@ const eb = {
|
|
5947
5963
|
{
|
5948
5964
|
heading: "Application Metrics",
|
5949
5965
|
infoText: "Capture and show key application metrics over time. (E.g. Status codes 2xx, 3xx, 5xx; throughput and latency).",
|
5950
|
-
documentationLink:
|
5966
|
+
documentationLink: xn.APP_METRICS,
|
5951
5967
|
documentationLinkText: "Learn more",
|
5952
5968
|
dataTestid: "app-metrics-info",
|
5953
5969
|
iconClassName: "dc__no-shrink icon-dim-16 fcn-6"
|
@@ -6326,7 +6342,7 @@ const fb = {
|
|
6326
6342
|
}
|
6327
6343
|
)
|
6328
6344
|
] });
|
6329
|
-
var
|
6345
|
+
var _n;
|
6330
6346
|
const Gs = class Gs {
|
6331
6347
|
constructor() {
|
6332
6348
|
/**
|
@@ -6368,11 +6384,11 @@ const Gs = class Gs {
|
|
6368
6384
|
ne(this, "isToastActive", zr.isActive);
|
6369
6385
|
}
|
6370
6386
|
static get instance() {
|
6371
|
-
return Us(Gs,
|
6387
|
+
return Us(Gs, _n) || Sa(Gs, _n, new Gs()), Us(Gs, _n);
|
6372
6388
|
}
|
6373
6389
|
};
|
6374
|
-
|
6375
|
-
Ta(Gs,
|
6390
|
+
_n = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
6391
|
+
Ta(Gs, _n);
|
6376
6392
|
let Ho = Gs;
|
6377
6393
|
const o1 = () => /* @__PURE__ */ t.jsx(Gp, { ...fb }), Me = Ho.instance, Mr = ({ type: e, queryParams: { id: s, ...n } }) => We(
|
6378
6394
|
`${mb({
|
@@ -6387,7 +6403,7 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6387
6403
|
[lt.SELECT_ALL_ON_PAGE]: "All on this page",
|
6388
6404
|
[lt.SELECT_ALL_ACROSS_PAGES]: "All across pages",
|
6389
6405
|
[lt.CLEAR_ALL_SELECTIONS]: "Clear selection(s)"
|
6390
|
-
},
|
6406
|
+
}, Rn = "*", xb = (e) => `Invalid action ${e} passed to useBulkSelection`, Eb = "useBulkSelection must be used within BulkSelectionContext", il = "Selections on other pages are cleared", Ju = kt({
|
6391
6407
|
selectedIdentifiers: {},
|
6392
6408
|
handleBulkSelection: Je,
|
6393
6409
|
isChecked: !1,
|
@@ -6409,14 +6425,14 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6409
6425
|
gr(() => {
|
6410
6426
|
s && i(s);
|
6411
6427
|
}, [s]);
|
6412
|
-
const c = a[
|
6428
|
+
const c = a[Rn], l = () => Object.keys(a).length, d = (g, h) => {
|
6413
6429
|
const _ = JSON.parse(JSON.stringify(g));
|
6414
6430
|
h.forEach((N) => {
|
6415
6431
|
delete _[N];
|
6416
6432
|
}), r(_);
|
6417
6433
|
}, u = (g) => {
|
6418
6434
|
const h = JSON.parse(JSON.stringify(a));
|
6419
|
-
c && delete h[
|
6435
|
+
c && delete h[Rn], r({
|
6420
6436
|
...h,
|
6421
6437
|
...g
|
6422
6438
|
});
|
@@ -6441,17 +6457,17 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6441
6457
|
if (c || l() > 0 && n() === Xu.OPEN)
|
6442
6458
|
return;
|
6443
6459
|
r({
|
6444
|
-
[
|
6460
|
+
[Rn]: !0
|
6445
6461
|
});
|
6446
6462
|
break;
|
6447
6463
|
}
|
6448
6464
|
case lt.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
|
6449
6465
|
r({
|
6450
|
-
[
|
6466
|
+
[Rn]: !0
|
6451
6467
|
});
|
6452
6468
|
break;
|
6453
6469
|
case lt.SELECT_ALL_ON_PAGE: {
|
6454
|
-
a[
|
6470
|
+
a[Rn] && Me.showToast({
|
6455
6471
|
variant: Ne.info,
|
6456
6472
|
description: il
|
6457
6473
|
}), u(o);
|
@@ -6834,7 +6850,7 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6834
6850
|
stateClassName: ""
|
6835
6851
|
};
|
6836
6852
|
}
|
6837
|
-
},
|
6853
|
+
}, jn = ({ envStateText: e, title: s, tooltipContent: n }) => {
|
6838
6854
|
const { Icon: a, stateClassName: r } = Ab(e);
|
6839
6855
|
return /* @__PURE__ */ t.jsx(
|
6840
6856
|
ie,
|
@@ -6868,7 +6884,7 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6868
6884
|
if (l?.length) {
|
6869
6885
|
const h = l.length === 1 ? l[0] : `${l.length} environments`;
|
6870
6886
|
return /* @__PURE__ */ t.jsx(
|
6871
|
-
|
6887
|
+
jn,
|
6872
6888
|
{
|
6873
6889
|
envStateText: m(),
|
6874
6890
|
title: h,
|
@@ -6877,8 +6893,8 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6877
6893
|
);
|
6878
6894
|
}
|
6879
6895
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6880
|
-
e && a && /* @__PURE__ */ t.jsx(
|
6881
|
-
s && r && /* @__PURE__ */ t.jsx(
|
6896
|
+
e && a && /* @__PURE__ */ t.jsx(jn, { envStateText: m(), title: a }),
|
6897
|
+
s && r && /* @__PURE__ */ t.jsx(jn, { envStateText: m(), title: r })
|
6882
6898
|
] });
|
6883
6899
|
}, f = o !== Zr.CD;
|
6884
6900
|
if (!e && !d && (o !== Zr.CD || !s && !Object.values(Aa).includes(n) && !i && !l?.length))
|
@@ -6888,8 +6904,8 @@ const gb = "bulk-selection-pop-up-menu", oo = {
|
|
6888
6904
|
d
|
6889
6905
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6890
6906
|
p(),
|
6891
|
-
n === Aa.PROGRESSING && /* @__PURE__ */ t.jsx(
|
6892
|
-
(n === Aa.DEGRADED || n === Aa.FAILED) && /* @__PURE__ */ t.jsx(
|
6907
|
+
n === Aa.PROGRESSING && /* @__PURE__ */ t.jsx(jn, { envStateText: As.DEPLOYING, title: a }),
|
6908
|
+
(n === Aa.DEGRADED || n === Aa.FAILED) && /* @__PURE__ */ t.jsx(jn, { envStateText: As.FAILED, title: a }),
|
6893
6909
|
i && /* @__PURE__ */ t.jsx(
|
6894
6910
|
Nr,
|
6895
6911
|
{
|
@@ -7044,7 +7060,7 @@ const jb = {
|
|
7044
7060
|
category: oe.KUBERNETES_MANIFEST,
|
7045
7061
|
subCategory: J.MISCONFIGURATIONS,
|
7046
7062
|
detailViewData: null
|
7047
|
-
}, Lb = (e) => e.imageScan ? Go : e.codeScan ? Ob : e.kubernetesManifest ? wb : Go,
|
7063
|
+
}, Lb = (e) => e.imageScan ? Go : e.codeScan ? Ob : e.kubernetesManifest ? wb : Go, pn = {
|
7048
7064
|
IMAGE_SCAN: "Image Scan",
|
7049
7065
|
CODE_SCAN: "Code Scan",
|
7050
7066
|
KUBERNETES_MANIFEST: "Kubernetes Manifest"
|
@@ -7096,7 +7112,7 @@ const jb = {
|
|
7096
7112
|
Q.EXCEPTIONS,
|
7097
7113
|
Q.SUCCESSES
|
7098
7114
|
], fa = sr.DESC, Di = {
|
7099
|
-
image:
|
7115
|
+
image: kn,
|
7100
7116
|
title: "Scan failed",
|
7101
7117
|
subTitle: "Error: Security scan failed"
|
7102
7118
|
}, rr = {
|
@@ -7455,7 +7471,7 @@ const jb = {
|
|
7455
7471
|
(s || n) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
7456
7472
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-bottom-n1 w-100 h-1" }),
|
7457
7473
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__content-space pl-16 pr-16 pb-8 pt-8", children: [
|
7458
|
-
s && s !==
|
7474
|
+
s && s !== Sn && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-items-center", children: [
|
7459
7475
|
/* @__PURE__ */ t.jsx(pi, { className: "icon-dim-16" }),
|
7460
7476
|
/* @__PURE__ */ t.jsx(
|
7461
7477
|
"span",
|
@@ -7487,7 +7503,7 @@ const jb = {
|
|
7487
7503
|
};
|
7488
7504
|
return /* @__PURE__ */ t.jsx("button", { type: "button", className: "dc__unset-button-styles dc__align-left", onClick: a, children: e });
|
7489
7505
|
}, Hb = ({ href: e }) => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 dc__align-items-center fs-13 fw-6", children: [
|
7490
|
-
/* @__PURE__ */ t.jsx(
|
7506
|
+
/* @__PURE__ */ t.jsx(Xn, { className: "icon-dim-24 fcn-3" }),
|
7491
7507
|
/* @__PURE__ */ t.jsx("span", { children: "Code snippet is not available" }),
|
7492
7508
|
e && /* @__PURE__ */ t.jsx("a", { href: e, rel: "noopener noreferrer", target: "_blank", children: "Go to file" })
|
7493
7509
|
] }) }), em = ({ title: e, lines: s, link: n }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch bg__primary dc__outline dc__border-radius-4-imp", children: [
|
@@ -7940,7 +7956,7 @@ const jb = {
|
|
7940
7956
|
default:
|
7941
7957
|
return null;
|
7942
7958
|
}
|
7943
|
-
}, nm = (e, s) => e && e !==
|
7959
|
+
}, nm = (e, s) => e && e !== Sn && s === "Completed" ? xd(e).format(vt.TWELVE_HOURS_FORMAT) : s === "Progressing" ? "Scan in progress" : null, Qb = (e, s, n) => ({
|
7944
7960
|
headers: [
|
7945
7961
|
{ headerText: "image", isSortable: !1, width: 256 },
|
7946
7962
|
{ headerText: "vulnerability", isSortable: !1, width: 256 },
|
@@ -8200,7 +8216,7 @@ const jb = {
|
|
8200
8216
|
return [
|
8201
8217
|
...s ? [
|
8202
8218
|
{
|
8203
|
-
label:
|
8219
|
+
label: pn.IMAGE_SCAN,
|
8204
8220
|
isExpanded: !0,
|
8205
8221
|
children: [
|
8206
8222
|
{
|
@@ -8224,7 +8240,7 @@ const jb = {
|
|
8224
8240
|
] : [],
|
8225
8241
|
...n ? [
|
8226
8242
|
{
|
8227
|
-
label:
|
8243
|
+
label: pn.CODE_SCAN,
|
8228
8244
|
isExpanded: !0,
|
8229
8245
|
children: [
|
8230
8246
|
{
|
@@ -8260,7 +8276,7 @@ const jb = {
|
|
8260
8276
|
] : [],
|
8261
8277
|
...a ? [
|
8262
8278
|
{
|
8263
|
-
label:
|
8279
|
+
label: pn.KUBERNETES_MANIFEST,
|
8264
8280
|
isExpanded: !0,
|
8265
8281
|
children: [
|
8266
8282
|
{
|
@@ -8398,11 +8414,11 @@ const jb = {
|
|
8398
8414
|
) });
|
8399
8415
|
}, Ba = {
|
8400
8416
|
[oe.IMAGE_SCAN]: {
|
8401
|
-
label:
|
8417
|
+
label: pn.IMAGE_SCAN,
|
8402
8418
|
subCategories: [J.VULNERABILITIES, J.LICENSE]
|
8403
8419
|
},
|
8404
8420
|
[oe.CODE_SCAN]: {
|
8405
|
-
label:
|
8421
|
+
label: pn.CODE_SCAN,
|
8406
8422
|
subCategories: [
|
8407
8423
|
J.VULNERABILITIES,
|
8408
8424
|
J.LICENSE,
|
@@ -8411,7 +8427,7 @@ const jb = {
|
|
8411
8427
|
]
|
8412
8428
|
},
|
8413
8429
|
[oe.KUBERNETES_MANIFEST]: {
|
8414
|
-
label:
|
8430
|
+
label: pn.KUBERNETES_MANIFEST,
|
8415
8431
|
subCategories: [J.MISCONFIGURATIONS, J.EXPOSED_SECRETS]
|
8416
8432
|
}
|
8417
8433
|
}, pT = (e) => `https://cve.mitre.org/cgi-bin/cvename.cgi?name=${e}`, rm = (e) => Object.entries(e).filter(([s]) => s !== Q.SUCCESSES).reduce((s, [, n]) => s + n, 0), om = ({
|
@@ -8676,9 +8692,9 @@ const jb = {
|
|
8676
8692
|
isScanEnabled: i,
|
8677
8693
|
SecurityModalSidebar: c
|
8678
8694
|
}) => {
|
8679
|
-
const [l, d] = j(!1), [u, m] = j(
|
8695
|
+
const [l, d] = j(!1), [u, m] = j(Un.Changes), [p, f] = j(null), x = () => {
|
8680
8696
|
d(!l);
|
8681
|
-
}, E = () => l ? u ===
|
8697
|
+
}, E = () => l ? u === Un.Changes ? r : /* @__PURE__ */ t.jsx(
|
8682
8698
|
_T,
|
8683
8699
|
{
|
8684
8700
|
isScanned: o,
|
@@ -8696,7 +8712,7 @@ const jb = {
|
|
8696
8712
|
/* @__PURE__ */ t.jsx(
|
8697
8713
|
dl,
|
8698
8714
|
{
|
8699
|
-
currentTab:
|
8715
|
+
currentTab: Un.Changes,
|
8700
8716
|
activeTab: u,
|
8701
8717
|
setActiveTab: m,
|
8702
8718
|
buttonText: "Changes"
|
@@ -8705,7 +8721,7 @@ const jb = {
|
|
8705
8721
|
/* @__PURE__ */ t.jsx(
|
8706
8722
|
dl,
|
8707
8723
|
{
|
8708
|
-
currentTab:
|
8724
|
+
currentTab: Un.Security,
|
8709
8725
|
activeTab: u,
|
8710
8726
|
setActiveTab: m,
|
8711
8727
|
buttonText: `Security ${p ? `(${p})` : ""}`
|
@@ -9028,7 +9044,7 @@ const jb = {
|
|
9028
9044
|
appTheme: e,
|
9029
9045
|
themePreference: e
|
9030
9046
|
};
|
9031
|
-
},
|
9047
|
+
}, vn = (e) => `component-specific-theme__${e}`, bT = (e) => e === ft.dark ? `component-specific-theme__${ft.light}` : `component-specific-theme__${ft.dark}`, TT = (e) => {
|
9032
9048
|
switch (e) {
|
9033
9049
|
case "auto":
|
9034
9050
|
return `System (${Fi() === ft.dark ? "Dark" : "Light"})`;
|
@@ -9188,11 +9204,11 @@ const AT = async (e, s) => {
|
|
9188
9204
|
appTheme: c,
|
9189
9205
|
handleCopySuccess: l
|
9190
9206
|
}) => {
|
9191
|
-
const { bgColor: d, textColor: u } = yT(r), m = wy(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, f = r !== us.EXPIRED, x = c === ft.dark, E = H(null), g = hc(window.innerWidth), h = hc(window.innerHeight), _ =
|
9207
|
+
const { bgColor: d, textColor: u } = yT(r), m = wy(i), p = i < 0 ? `Expired ${m} ago` : `${m} remaining`, f = r !== us.EXPIRED, x = c === ft.dark, E = H(null), g = hc(window.innerWidth), h = hc(window.innerHeight), _ = An(h, (y) => {
|
9192
9208
|
if (!E.current) return 0;
|
9193
9209
|
const T = E.current.getBoundingClientRect();
|
9194
9210
|
return -(y - T.top - T.height / 2) / pl;
|
9195
|
-
}), N =
|
9211
|
+
}), N = An(g, (y) => {
|
9196
9212
|
if (!E.current) return 0;
|
9197
9213
|
const T = E.current.getBoundingClientRect();
|
9198
9214
|
return (y - T.left - T.width / 2) / pl;
|
@@ -9205,10 +9221,10 @@ const AT = async (e, s) => {
|
|
9205
9221
|
window.removeEventListener("mousemove", y);
|
9206
9222
|
};
|
9207
9223
|
}, []);
|
9208
|
-
const C =
|
9224
|
+
const C = An(
|
9209
9225
|
[_, N],
|
9210
9226
|
([y, T]) => y + T
|
9211
|
-
), S =
|
9227
|
+
), S = An(C, [-5, 5], [-100, 200]), v = An(S, [-100, 50, 200], [0, x ? 0.25 : 0.1, 0]), I = x ? gc`linear-gradient(55deg, transparent, rgba(122, 127, 131, ${v}) ${S}%, transparent)` : gc`linear-gradient(55deg, transparent, rgba(255, 255, 255, ${v}) ${S}%, transparent)`;
|
9212
9228
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-8 br-16", style: { backgroundColor: d }, children: [
|
9213
9229
|
/* @__PURE__ */ t.jsx("div", { style: { perspective: "1000px" }, children: /* @__PURE__ */ t.jsxs(
|
9214
9230
|
mt.div,
|
@@ -9305,7 +9321,7 @@ const AT = async (e, s) => {
|
|
9305
9321
|
] })
|
9306
9322
|
] });
|
9307
9323
|
var us = /* @__PURE__ */ ((e) => (e.ACTIVE = "ACTIVE", e.EXPIRED = "EXPIRED", e.REMINDER_THRESHOLD_REACHED = "REMINDER_THRESHOLD_REACHED", e))(us || {});
|
9308
|
-
const jT = 864e5,
|
9324
|
+
const jT = 864e5, Fn = (e) => 1 + (/* @__PURE__ */ new Date()).valueOf() + (e ?? 0) * jT, Wo = async (e) => {
|
9309
9325
|
await IT({
|
9310
9326
|
eventType: e,
|
9311
9327
|
key: du,
|
@@ -9313,7 +9329,7 @@ const jT = 864e5, Bn = (e) => 1 + (/* @__PURE__ */ new Date()).valueOf() + (e ??
|
|
9313
9329
|
active: !0
|
9314
9330
|
});
|
9315
9331
|
}, cr = (e, s) => {
|
9316
|
-
localStorage.setItem(e, `${
|
9332
|
+
localStorage.setItem(e, `${Fn(s)}`);
|
9317
9333
|
}, hm = (e) => e && (e.licenseStatus !== us.ACTIVE || e.isTrial);
|
9318
9334
|
var lr = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(lr || {});
|
9319
9335
|
const OT = (e) => _t(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), wT = ({ className: e, hideGettingStartedCard: s }) => {
|
@@ -9492,7 +9508,7 @@ const OT = (e) => _t(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), wT = ({ className:
|
|
9492
9508
|
// it will store date and time of next day i.e, it will hide banner until this date
|
9493
9509
|
"expiryDateOfHidingAnnouncementBanner"
|
9494
9510
|
);
|
9495
|
-
return typeof Storage < "u" &&
|
9511
|
+
return typeof Storage < "u" && Fn(localStorage.getItem("dashboardLoginTime")) > Fn(d) && !d ? !0 : Fn((/* @__PURE__ */ new Date()).valueOf()) > Fn(d);
|
9496
9512
|
}, [o, i] = j(a ? r() : !1);
|
9497
9513
|
if (!a)
|
9498
9514
|
return null;
|
@@ -9534,7 +9550,7 @@ const OT = (e) => _t(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), wT = ({ className:
|
|
9534
9550
|
category: "PRIMARY_HEADER",
|
9535
9551
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
9536
9552
|
});
|
9537
|
-
}, []), i = Xe(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(
|
9553
|
+
}, []), i = Xe(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(In, { close: i, children: /* @__PURE__ */ t.jsxs(
|
9538
9554
|
"div",
|
9539
9555
|
{
|
9540
9556
|
className: "modal-body--ci-material h-100 dc__overflow-hidden dc__border-left flex column dc__content-space w-100",
|
@@ -9649,7 +9665,7 @@ const OT = (e) => _t(`${V.ATTRIBUTES_USER}/${V.UPDATE}`, e), wT = ({ className:
|
|
9649
9665
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 fw-4 lh-20", children: "You can change your theme preference here" })
|
9650
9666
|
] }), se = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
9651
9667
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left cursor dc__gap-8", onClick: Y, children: [
|
9652
|
-
/* @__PURE__ */ t.jsx("span", { className: "icon-dim-24 fcn-9", children: /* @__PURE__ */ t.jsx(
|
9668
|
+
/* @__PURE__ */ t.jsx("span", { className: "icon-dim-24 fcn-9", children: /* @__PURE__ */ t.jsx(Cn, {}) }),
|
9653
9669
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 cn-9", "data-testid": "go-to-get-started", children: "Help" }),
|
9654
9670
|
/* @__PURE__ */ t.jsx(
|
9655
9671
|
za,
|
@@ -10134,7 +10150,7 @@ const fl = (e) => {
|
|
10134
10150
|
const [d, u] = j(l?.[0]?.id ?? null), m = l?.find((f) => f.id === d) ?? null, p = (f) => {
|
10135
10151
|
u(f.target.value);
|
10136
10152
|
};
|
10137
|
-
return /* @__PURE__ */ t.jsx(
|
10153
|
+
return /* @__PURE__ */ t.jsx(In, { className: "", close: r, children: /* @__PURE__ */ t.jsxs(
|
10138
10154
|
"div",
|
10139
10155
|
{
|
10140
10156
|
className: "feature-description modal__body w-600 mt-40 flex column p-0 fs-13 dc__overflow-hidden",
|
@@ -10217,7 +10233,7 @@ const fl = (e) => {
|
|
10217
10233
|
)
|
10218
10234
|
] }) : s?.length > 0 || f ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
10219
10235
|
f && s?.length === 0 ? /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r }) : /* @__PURE__ */ t.jsx(Sp, { breadcrumbs: s }),
|
10220
|
-
/* @__PURE__ */ t.jsx(
|
10236
|
+
/* @__PURE__ */ t.jsx(Cn, { className: `${a} icon-dim-20 cursor fcn-6`, onClick: h })
|
10221
10237
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r });
|
10222
10238
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10223
10239
|
/* @__PURE__ */ t.jsxs(
|
@@ -10254,7 +10270,7 @@ const hl = {
|
|
10254
10270
|
progressing: 3,
|
10255
10271
|
healthy: 4
|
10256
10272
|
};
|
10257
|
-
var
|
10273
|
+
var fn = /* @__PURE__ */ ((e) => (e.SUCCESS = "Success", e.FAILURE = "Failure", e.PROGRESSING = "Progressing", e))(fn || {});
|
10258
10274
|
const GT = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled", "failed", "aborted"]), YT = /* @__PURE__ */ new Set(["starting", "running", "pending"]), k1 = (e) => {
|
10259
10275
|
const { selectOption: s, data: n, isDisabled: a, showTippy: r, tippyPlacement: o } = e, i = (d) => {
|
10260
10276
|
s(n);
|
@@ -10603,14 +10619,14 @@ const iS = (e, s) => {
|
|
10603
10619
|
!s && d(),
|
10604
10620
|
!n && u()
|
10605
10621
|
] });
|
10606
|
-
},
|
10622
|
+
}, On = {
|
10607
10623
|
NOT_AVAILABLE: "Not available",
|
10608
10624
|
NOT_DEPLOYED: "not-deployed",
|
10609
10625
|
NOT_DEPLOYED_NO_SPACE: "notdeployed",
|
10610
10626
|
JOB_VIEW_NOT_DEPLOYED_MESSAGE: "Yet to run",
|
10611
10627
|
NOT_DEPLOYED_MESSAGE: "Not deployed"
|
10612
10628
|
}, gm = ({ status: e, isJobView: s = !1, isVirtualEnv: n = !1, ...a }) => {
|
10613
|
-
const r = s ? dS(e) : e, o = n ?
|
10629
|
+
const r = s ? dS(e) : e, o = n ? On.NOT_AVAILABLE : r ?? "", i = o.toLowerCase().replace(/ /g, "-") === On.NOT_DEPLOYED || o.toLowerCase() === On.NOT_DEPLOYED_NO_SPACE, c = s ? On.JOB_VIEW_NOT_DEPLOYED_MESSAGE : On.NOT_DEPLOYED_MESSAGE, l = i ? c : o;
|
10614
10630
|
return o ? /* @__PURE__ */ t.jsx(mS, { status: o, message: l, ...a }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-6", children: [
|
10615
10631
|
/* @__PURE__ */ t.jsx(
|
10616
10632
|
Ae,
|
@@ -10688,7 +10704,7 @@ const iS = (e, s) => {
|
|
10688
10704
|
case "failed":
|
10689
10705
|
return /* @__PURE__ */ t.jsx(gs, { className: "icon-dim-20" });
|
10690
10706
|
case "unknown":
|
10691
|
-
return /* @__PURE__ */ t.jsx(
|
10707
|
+
return /* @__PURE__ */ t.jsx(Cn, { className: "icon-dim-20" });
|
10692
10708
|
case "inprogress":
|
10693
10709
|
return /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20", children: /* @__PURE__ */ t.jsx("div", { className: "pulse-highlight" }) });
|
10694
10710
|
case "unreachable":
|
@@ -10704,9 +10720,9 @@ const iS = (e, s) => {
|
|
10704
10720
|
}
|
10705
10721
|
}, _S = (e) => {
|
10706
10722
|
switch (e) {
|
10707
|
-
case
|
10723
|
+
case fn.SUCCESS:
|
10708
10724
|
return /* @__PURE__ */ t.jsx(yr, { className: "dc__no-shrink icon-dim-16 scg-5" });
|
10709
|
-
case
|
10725
|
+
case fn.FAILURE:
|
10710
10726
|
return /* @__PURE__ */ t.jsx(at, { className: "dc__no-shrink icon-dim-16 fcr-5" });
|
10711
10727
|
default:
|
10712
10728
|
return /* @__PURE__ */ t.jsx(Q_, { className: "dc__no-shrink icon-dim-16 ic-in-progress-orange" });
|
@@ -10910,7 +10926,7 @@ const iS = (e, s) => {
|
|
10910
10926
|
children: m
|
10911
10927
|
}
|
10912
10928
|
),
|
10913
|
-
s !== XT && /* @__PURE__ */ t.jsx(
|
10929
|
+
s !== XT && /* @__PURE__ */ t.jsx(Xn, { className: "icon-dim-12 fcn-5" })
|
10914
10930
|
] }),
|
10915
10931
|
r && /* @__PURE__ */ t.jsx("span", { className: "dc__border-dashed--n3-bottom fw-6 fs-13 lh-19-imp", children: r })
|
10916
10932
|
]
|
@@ -11072,7 +11088,7 @@ const iS = (e, s) => {
|
|
11072
11088
|
const c = Yi(e);
|
11073
11089
|
return /* @__PURE__ */ t.jsxs("div", { className: "shadow__overlay p-16 br-4 w-350 bg__overlay--primary border__primary mxh-300 dc__overflow-auto flexbox-col dc__gap-16", children: [
|
11074
11090
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__icon-text-layout", children: [
|
11075
|
-
/* @__PURE__ */ t.jsx(
|
11091
|
+
/* @__PURE__ */ t.jsx(qn, { className: `scn-7 ${bl}` }),
|
11076
11092
|
/* @__PURE__ */ t.jsx("time", { className: "cn-9 fs-12 cn-9 fw-4 lh-20", children: c?.triggeredOn ? Br(c.triggeredOn) : "--" }),
|
11077
11093
|
/* @__PURE__ */ t.jsx(So, { className: `fcn-7 ${bl}` }),
|
11078
11094
|
/* @__PURE__ */ t.jsx(ie, { content: s, children: /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-12 fw-4 lh-20 dc__truncate", children: s }) }),
|
@@ -11483,7 +11499,7 @@ const iS = (e, s) => {
|
|
11483
11499
|
}
|
11484
11500
|
return n(!1), null;
|
11485
11501
|
}, isDownloading: s };
|
11486
|
-
},
|
11502
|
+
}, wn = (e, s) => {
|
11487
11503
|
if (s?.required && (typeof s.required == "object" ? s.required.value : s.required) && (e == null || e === ""))
|
11488
11504
|
return [typeof s.required == "object" ? s.required.message : "This is a required field"];
|
11489
11505
|
const n = [], a = s?.pattern;
|
@@ -11501,7 +11517,7 @@ const iS = (e, s) => {
|
|
11501
11517
|
const s = H(e?.initialValues || {}), [n, a] = j(s.current), [r, o] = j({}), [i, c] = j({}), [l, d] = j({}), [u, m] = j({}), p = (v = n) => e?.validations ? typeof e.validations == "function" ? e.validations(v) : e.validations : {}, f = (v) => {
|
11502
11518
|
const I = p(v), y = {};
|
11503
11519
|
return Object.keys(I || {}).forEach((T) => {
|
11504
|
-
const A = I[T], R =
|
11520
|
+
const A = I[T], R = wn(v[T], A);
|
11505
11521
|
R && (y[T] = R);
|
11506
11522
|
}), y;
|
11507
11523
|
}, x = (v, I) => (y) => {
|
@@ -11521,16 +11537,16 @@ const iS = (e, s) => {
|
|
11521
11537
|
a((O) => {
|
11522
11538
|
const D = { ...O, [v]: R }, w = e?.validationMode ?? "onChange";
|
11523
11539
|
if (w === "onChange" || w === "all" || u[v] || l[v]) {
|
11524
|
-
const $ = p(D), F =
|
11540
|
+
const $ = p(D), F = wn(R, $[v]);
|
11525
11541
|
d({ ...l, [v]: F });
|
11526
11542
|
}
|
11527
11543
|
return D;
|
11528
11544
|
});
|
11529
11545
|
const b = s.current;
|
11530
|
-
o((O) => ({ ...O, [v]: !
|
11546
|
+
o((O) => ({ ...O, [v]: !Kn(b[v], R) }));
|
11531
11547
|
}, g = (v, I) => () => {
|
11532
11548
|
if (I || a({ ...n, [v]: n[v]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
11533
|
-
const T = p(), A =
|
11549
|
+
const T = p(), A = wn(n[v], T[v]);
|
11534
11550
|
A && !u[v] && m({ ...u, [v]: !0 }), d({ ...l, [v]: A });
|
11535
11551
|
}
|
11536
11552
|
}, h = (v) => () => {
|
@@ -11553,7 +11569,7 @@ const iS = (e, s) => {
|
|
11553
11569
|
if (Array.isArray(v)) {
|
11554
11570
|
const y = {}, T = v.map((A) => {
|
11555
11571
|
if (I) {
|
11556
|
-
const R = I[A], b =
|
11572
|
+
const R = I[A], b = wn(n[A], R);
|
11557
11573
|
return y[A] = b, b;
|
11558
11574
|
}
|
11559
11575
|
return null;
|
@@ -11561,7 +11577,7 @@ const iS = (e, s) => {
|
|
11561
11577
|
return Object.keys(y).length && d({ ...l, ...y }), T;
|
11562
11578
|
}
|
11563
11579
|
if (I) {
|
11564
|
-
const y = I[v], T =
|
11580
|
+
const y = I[v], T = wn(n[v], y);
|
11565
11581
|
return T && d({ ...l, [v]: T }), T;
|
11566
11582
|
}
|
11567
11583
|
return null;
|
@@ -11569,7 +11585,7 @@ const iS = (e, s) => {
|
|
11569
11585
|
setValue: (v, I, y) => {
|
11570
11586
|
if (a((T) => ({ ...T, [v]: I })), y?.shouldDirty) {
|
11571
11587
|
const T = s.current;
|
11572
|
-
o((A) => ({ ...A, [v]: !
|
11588
|
+
o((A) => ({ ...A, [v]: !Kn(T[v], I) }));
|
11573
11589
|
}
|
11574
11590
|
y?.shouldTouch && c((T) => ({ ...T, [v]: !0 }));
|
11575
11591
|
},
|
@@ -11585,7 +11601,7 @@ const iS = (e, s) => {
|
|
11585
11601
|
const O = s.current, D = Object.keys(v).reduce(
|
11586
11602
|
(w, $) => ({
|
11587
11603
|
...w,
|
11588
|
-
[$]: !
|
11604
|
+
[$]: !Kn(v[$], O[$])
|
11589
11605
|
}),
|
11590
11606
|
{}
|
11591
11607
|
);
|
@@ -11824,13 +11840,13 @@ const iS = (e, s) => {
|
|
11824
11840
|
] }) })
|
11825
11841
|
] }),
|
11826
11842
|
!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: [
|
11827
|
-
/* @__PURE__ */ t.jsx(
|
11843
|
+
/* @__PURE__ */ t.jsx(bn, { className: "icon-dim-20 fcv-5" }),
|
11828
11844
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8", children: Ke.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles }),
|
11829
11845
|
/* @__PURE__ */ t.jsx(
|
11830
11846
|
"a",
|
11831
11847
|
{
|
11832
11848
|
className: "fs-13 fw-6 cb-5 dc__no-decor",
|
11833
|
-
href:
|
11849
|
+
href: xn.BLOB_STORAGE,
|
11834
11850
|
target: "_blank",
|
11835
11851
|
rel: "noreferrer",
|
11836
11852
|
children: Ke.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage
|
@@ -12083,13 +12099,13 @@ const z1 = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12083
12099
|
] }) }), qS = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12084
12100
|
Am("Logs are available only at runtime."),
|
12085
12101
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox configure-blob-container pt-8 pr-12 pb-8 pl-12 bcv-1 br-4", children: [
|
12086
|
-
/* @__PURE__ */ t.jsx(
|
12102
|
+
/* @__PURE__ */ t.jsx(bn, { className: "icon-dim-20 fcv-5" }),
|
12087
12103
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8 text__white", children: "Want to store logs to view later?" }),
|
12088
12104
|
/* @__PURE__ */ t.jsx(
|
12089
12105
|
"a",
|
12090
12106
|
{
|
12091
12107
|
className: "fs-13 fw-6 cb-5 dc__no-decor",
|
12092
|
-
href:
|
12108
|
+
href: xn.BLOB_STORAGE,
|
12093
12109
|
target: "_blank",
|
12094
12110
|
rel: "noreferrer",
|
12095
12111
|
children: "Configure blob storage"
|
@@ -12160,7 +12176,7 @@ const z1 = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12160
12176
|
}
|
12161
12177
|
const b = (Y, G, se, pe) => {
|
12162
12178
|
const _e = m.length === 0, P = G ?? !0;
|
12163
|
-
return pe ? se || P : _e ? Y !==
|
12179
|
+
return pe ? se || P : _e ? Y !== fn.SUCCESS || se : P;
|
12164
12180
|
}, O = e.podStatus === uo.PENDING || !!(d && d.readyState <= 1), D = (Y, G) => {
|
12165
12181
|
const se = m.reduce(
|
12166
12182
|
(M, B) => (M[B.stage] || (M[B.stage] = {}), M[B.stage][B.startTime] = B, M),
|
@@ -12179,7 +12195,7 @@ const z1 = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12179
12195
|
!!G
|
12180
12196
|
);
|
12181
12197
|
else {
|
12182
|
-
const Xt = O ?
|
12198
|
+
const Xt = O ? fn.PROGRESSING : fn.FAILURE;
|
12183
12199
|
M.push({
|
12184
12200
|
stage: re || `Untitled stage ${te + 1}`,
|
12185
12201
|
startTime: ve || "",
|
@@ -12391,7 +12407,7 @@ const z1 = (e, s, n) => me(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
12391
12407
|
)),
|
12392
12408
|
O && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(Fe, {}) })
|
12393
12409
|
] });
|
12394
|
-
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${
|
12410
|
+
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${vn(ft.dark)}`, children: e.podStatus !== uo.PENDING && u && (!s || !e.blobStorageEnabled) ? XS(s) : ye() });
|
12395
12411
|
}, QS = ({
|
12396
12412
|
imgSource: e,
|
12397
12413
|
title: s,
|
@@ -13339,7 +13355,7 @@ const Rm = {
|
|
13339
13355
|
added: "Added",
|
13340
13356
|
deleted: "Deleted",
|
13341
13357
|
noDiff: "No change"
|
13342
|
-
},
|
13358
|
+
}, Vn = {
|
13343
13359
|
hasDiff: U_,
|
13344
13360
|
added: $_,
|
13345
13361
|
deleted: B_,
|
@@ -13380,7 +13396,7 @@ const Rm = {
|
|
13380
13396
|
strikeThrough: d && v === Dt.DELETED,
|
13381
13397
|
...!u && v !== Dt.NO_DIFF ? {
|
13382
13398
|
iconConfig: {
|
13383
|
-
Icon: d ?
|
13399
|
+
Icon: d ? Vn[v] : Vn.hasDiff,
|
13384
13400
|
tooltipProps: {
|
13385
13401
|
content: d ? Da[v] : Da.hasDiff,
|
13386
13402
|
arrow: !1,
|
@@ -13413,7 +13429,7 @@ const Rm = {
|
|
13413
13429
|
) });
|
13414
13430
|
}, _ = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
13415
13431
|
n.map(({ title: C, href: S, onClick: v, diffState: I, Icon: y }) => {
|
13416
|
-
const T = d ?
|
13432
|
+
const T = d ? Vn[I] : Vn.hasDiff;
|
13417
13433
|
return /* @__PURE__ */ t.jsxs(
|
13418
13434
|
gt,
|
13419
13435
|
{
|
@@ -13441,11 +13457,11 @@ const Rm = {
|
|
13441
13457
|
}),
|
13442
13458
|
/* @__PURE__ */ t.jsx(dv, { config: f, tabType: "navLink", onCollapseBtnClick: x }),
|
13443
13459
|
o && /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
13444
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(Ir, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(
|
13460
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(Ir, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(Xn, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
|
13445
13461
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${i ? "cr-5" : "cn-9"}`, children: o })
|
13446
13462
|
] })
|
13447
13463
|
] }), N = () => e ? ["90", "70", "50"].map((C) => /* @__PURE__ */ t.jsx(uv, { width: C }, C)) : l?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
13448
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
13464
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(Xn, { className: "icon-dim-16 fcn-7" }) }),
|
13449
13465
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
|
13450
13466
|
] }) : _();
|
13451
13467
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
@@ -13584,7 +13600,7 @@ const Rm = {
|
|
13584
13600
|
code: He.BAD_REQUEST,
|
13585
13601
|
title: ze.BAD_REQUEST,
|
13586
13602
|
subTitle: n || ze.BAD_REQUEST_MESSAGE,
|
13587
|
-
image:
|
13603
|
+
image: kn,
|
13588
13604
|
imageType: o,
|
13589
13605
|
reload: s
|
13590
13606
|
}
|
@@ -13630,7 +13646,7 @@ const Rm = {
|
|
13630
13646
|
code: He.INTERNAL_SERVER_ERROR,
|
13631
13647
|
title: ze.INTERNAL_SERVER_ERROR,
|
13632
13648
|
subTitle: n || ze.INTERNAL_SERVER_ERROR_MESSAGE,
|
13633
|
-
image:
|
13649
|
+
image: kn,
|
13634
13650
|
imageType: o,
|
13635
13651
|
reload: s
|
13636
13652
|
}
|
@@ -13642,7 +13658,7 @@ const Rm = {
|
|
13642
13658
|
code: He.BAD_GATEWAY,
|
13643
13659
|
title: ze.BAD_GATEWAY,
|
13644
13660
|
subTitle: n || ze.BAD_GATEWAY_MESSAGE,
|
13645
|
-
image:
|
13661
|
+
image: kn,
|
13646
13662
|
imageType: o,
|
13647
13663
|
reload: s
|
13648
13664
|
}
|
@@ -13654,7 +13670,7 @@ const Rm = {
|
|
13654
13670
|
code: He.SERVICE_TEMPORARY_UNAVAILABLE,
|
13655
13671
|
title: ze.SERVICE_TEMPORARY_UNAVAILABLE,
|
13656
13672
|
subTitle: n || ze.SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE,
|
13657
|
-
image:
|
13673
|
+
image: kn,
|
13658
13674
|
imageType: o,
|
13659
13675
|
reload: s
|
13660
13676
|
}
|
@@ -13903,7 +13919,7 @@ const Rm = {
|
|
13903
13919
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
13904
13920
|
}, Ha = (e, s) => {
|
13905
13921
|
const n = !!e.codeEditorValue.value, a = !!s.codeEditorValue.value;
|
13906
|
-
return !n && a ? Dt.DELETED : n && !a ? Dt.ADDED :
|
13922
|
+
return !n && a ? Dt.DELETED : n && !a ? Dt.ADDED : Kn(e, s) ? Dt.NO_DIFF : Dt.HAS_DIFF;
|
13907
13923
|
}, wl = (e, s) => {
|
13908
13924
|
if (e && e.external && (e.externalType === "" || e.externalType === Pe.KubernetesSecret)) {
|
13909
13925
|
const n = structuredClone(s);
|
@@ -13971,10 +13987,10 @@ const Rm = {
|
|
13971
13987
|
n = !0;
|
13972
13988
|
else if (s) {
|
13973
13989
|
const o = e;
|
13974
|
-
o.deploymentDraftData?.configData[0].draftMetadata.draftState ===
|
13990
|
+
o.deploymentDraftData?.configData[0].draftMetadata.draftState === $n.Init ? a = !0 : o.deploymentDraftData?.configData[0].draftMetadata.draftState === $n.AwaitApproval && (r = !0);
|
13975
13991
|
} else {
|
13976
13992
|
const o = e;
|
13977
|
-
o.draftMetadata?.draftState ===
|
13993
|
+
o.draftMetadata?.draftState === $n.Init ? a = !0 : o.draftMetadata?.draftState === $n.AwaitApproval && (r = !0);
|
13978
13994
|
}
|
13979
13995
|
return n ? /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Does not exist" }) : a ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
13980
13996
|
/* @__PURE__ */ t.jsx(fi, { className: "icon-dim-16 scr-5" }),
|
@@ -14495,7 +14511,7 @@ const Rm = {
|
|
14495
14511
|
]
|
14496
14512
|
}
|
14497
14513
|
), Iv = (e) => {
|
14498
|
-
const s =
|
14514
|
+
const s = Vn[e];
|
14499
14515
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-6", children: [
|
14500
14516
|
s && /* @__PURE__ */ t.jsx(s, { className: "icon-dim-16" }),
|
14501
14517
|
/* @__PURE__ */ t.jsx("span", { className: `fs-12 lh-20 ${jm[e]}`, children: Rm[e] })
|
@@ -14652,7 +14668,7 @@ const Rm = {
|
|
14652
14668
|
variant: Kt.COMPACT,
|
14653
14669
|
options: w,
|
14654
14670
|
placeholder: "Select Deployment",
|
14655
|
-
value:
|
14671
|
+
value: En(w, _, null),
|
14656
14672
|
onChange: X,
|
14657
14673
|
showSelectedOptionIcon: !1,
|
14658
14674
|
menuSize: L.large,
|
@@ -15626,7 +15642,7 @@ const Gv = 100, tt = Se.memo(
|
|
15626
15642
|
const { error: e } = nn();
|
15627
15643
|
return e ? /* @__PURE__ */ t.jsx("div", { className: "form__error", children: e }) : null;
|
15628
15644
|
}, qv = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__warning ${e.className || ""}`, children: [
|
15629
|
-
/* @__PURE__ */ t.jsx(
|
15645
|
+
/* @__PURE__ */ t.jsx(Tn, { className: "code-editor__information-info-icon" }),
|
15630
15646
|
e.text,
|
15631
15647
|
e.children
|
15632
15648
|
] }), Xv = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
|
@@ -15760,7 +15776,7 @@ const sI = () => (e) => {
|
|
15760
15776
|
}, oI = ({
|
15761
15777
|
iconType: e,
|
15762
15778
|
isChecked: s
|
15763
|
-
}) => e === "stroke" ? s ? "scb-5" : "scn-7" : s ? "fcb-5" : "fcn-7",
|
15779
|
+
}) => e === "stroke" ? s ? "scb-5" : "scn-7" : s ? "fcb-5" : "fcn-7", Ln = (e, s) => {
|
15764
15780
|
const n = e.getCursor(s.state), a = { count: 0, current: 1 }, { from: r, to: o } = s.state.selection.main;
|
15765
15781
|
let i = n.next();
|
15766
15782
|
for (; e.search !== "" && !i.done; )
|
@@ -15982,21 +15998,21 @@ const sI = () => (e) => {
|
|
15982
15998
|
search: X,
|
15983
15999
|
wholeWord: Z
|
15984
16000
|
});
|
15985
|
-
ee.eq(a) || (r(ee), e.dispatch({ effects: bd.of(ee) }), i(
|
16001
|
+
ee.eq(a) || (r(ee), e.dispatch({ effects: bd.of(ee) }), i(Ln(ee, e)));
|
15986
16002
|
};
|
15987
16003
|
k(() => {
|
15988
|
-
s.eq(a) || (i(
|
16004
|
+
s.eq(a) || (i(Ln(s, e)), r(s));
|
15989
16005
|
}, [s]), k(() => {
|
15990
|
-
i(
|
16006
|
+
i(Ln(s, e));
|
15991
16007
|
}, [e.state.doc.length]), k(() => {
|
15992
16008
|
n !== c && l(n);
|
15993
16009
|
}, [n]), k(() => {
|
15994
16010
|
u && c && l(!1);
|
15995
16011
|
}, [u]);
|
15996
16012
|
const p = (w) => {
|
15997
|
-
w?.preventDefault(), w?.stopPropagation(), hf(e), i(
|
16013
|
+
w?.preventDefault(), w?.stopPropagation(), hf(e), i(Ln(a, e));
|
15998
16014
|
}, f = (w) => {
|
15999
|
-
w?.preventDefault(), w?.stopPropagation(), gf(e), i(
|
16015
|
+
w?.preventDefault(), w?.stopPropagation(), gf(e), i(Ln(a, e));
|
16000
16016
|
}, x = (w) => {
|
16001
16017
|
m({ search: w.target.value });
|
16002
16018
|
}, E = (w) => {
|
@@ -16301,9 +16317,9 @@ const sI = () => (e) => {
|
|
16301
16317
|
let n = e.map(s.changes);
|
16302
16318
|
return s.docChanged && (n = Yl(s.state)), n;
|
16303
16319
|
},
|
16304
|
-
provide: (e) =>
|
16320
|
+
provide: (e) => Wn.decorations.from(e)
|
16305
16321
|
}), RI = yI, jI = ({ view: e, theme: s, diffMinimapParentRef: n, scalingFactor: a }) => {
|
16306
|
-
const [r, o] = j(0), [i, c] = j(50), [l, d] = j(!1), u = H(null), m = H(null), p = H(0), f = H(0), x =
|
16322
|
+
const [r, o] = j(0), [i, c] = j(50), [l, d] = j(!1), u = H(null), m = H(null), p = H(0), f = H(0), x = vn(s), E = () => {
|
16307
16323
|
if (!e?.dom || !u.current || !m.current)
|
16308
16324
|
return;
|
16309
16325
|
const { clientHeight: S, scrollHeight: v, scrollTop: I } = e.dom, y = u.current.clientHeight, T = S / v * y, A = Math.max(T, gI), R = I / v * y;
|
@@ -16392,7 +16408,7 @@ const sI = () => (e) => {
|
|
16392
16408
|
] });
|
16393
16409
|
}, wI = ({ children: e, className: s, hideDefaultSplitHeader: n }) => {
|
16394
16410
|
const { diffMode: a, readOnly: r, lhsValue: o, hasCodeEditorContainer: i, theme: c } = Vr();
|
16395
|
-
return /* @__PURE__ */ t.jsxs("div", { className: `${
|
16411
|
+
return /* @__PURE__ */ t.jsxs("div", { className: `${vn(c)} flexbox w-100 border__primary--bottom`, children: [
|
16396
16412
|
/* @__PURE__ */ t.jsxs(
|
16397
16413
|
"div",
|
16398
16414
|
{
|
@@ -16411,7 +16427,7 @@ const sI = () => (e) => {
|
|
16411
16427
|
{
|
16412
16428
|
className: `code-editor__warning fs-12 fw-4 lh-16 cn-9 py-8 px-16 bcy-1 dc__border-bottom-y2 dc__height-auto ${e || ""}`,
|
16413
16429
|
children: [
|
16414
|
-
/* @__PURE__ */ t.jsx(
|
16430
|
+
/* @__PURE__ */ t.jsx(Tn, { className: "code-editor__status-info-icon" }),
|
16415
16431
|
s,
|
16416
16432
|
n
|
16417
16433
|
]
|
@@ -16480,7 +16496,7 @@ const sI = () => (e) => {
|
|
16480
16496
|
}
|
16481
16497
|
];
|
16482
16498
|
return {
|
16483
|
-
themeExtension:
|
16499
|
+
themeExtension: Wn.theme({
|
16484
16500
|
".cm-highlight-number": {
|
16485
16501
|
color: "var(--code-editor-number)"
|
16486
16502
|
},
|
@@ -16527,7 +16543,7 @@ const sI = () => (e) => {
|
|
16527
16543
|
autoFocus: h,
|
16528
16544
|
diffMinimapExtensions: _
|
16529
16545
|
}) => {
|
16530
|
-
const { value: N, lhsValue: C, diffMode: S } = Vr(), [v, I] = j(0), [y, T] = j(null), [A, R] = j(null), [b, O] = j(1), D = H(), w = H(), $ = H(), F = H(), X =
|
16546
|
+
const { value: N, lhsValue: C, diffMode: S } = Vr(), [v, I] = j(0), [y, T] = j(null), [A, R] = j(null), [b, O] = j(1), D = H(), w = H(), $ = H(), F = H(), X = vn(s), Z = () => {
|
16531
16547
|
const P = document.querySelector(".cm-gutters");
|
16532
16548
|
P && I(P.getBoundingClientRect().width);
|
16533
16549
|
};
|
@@ -16569,13 +16585,13 @@ const sI = () => (e) => {
|
|
16569
16585
|
}), [y]);
|
16570
16586
|
const ye = () => {
|
16571
16587
|
Z();
|
16572
|
-
}, Y =
|
16588
|
+
}, Y = Wn.updateListener.of((P) => {
|
16573
16589
|
if (P.docChanged) {
|
16574
16590
|
const { doc: M } = P.state, B = M.toString();
|
16575
16591
|
c(B, P);
|
16576
16592
|
}
|
16577
16593
|
Vl($.current, P.transactions, "a");
|
16578
|
-
}), G =
|
16594
|
+
}), G = Wn.updateListener.of((P) => {
|
16579
16595
|
if (P.docChanged) {
|
16580
16596
|
const { doc: M } = P.state, B = M.toString();
|
16581
16597
|
d(B, P);
|
@@ -16805,7 +16821,7 @@ const sI = () => (e) => {
|
|
16805
16821
|
syntaxHighlighting: !1
|
16806
16822
|
}),
|
16807
16823
|
Gl(o, !0),
|
16808
|
-
|
16824
|
+
Wn.editable.of(!1),
|
16809
16825
|
qr.readOnly.of(!0)
|
16810
16826
|
];
|
16811
16827
|
return /* @__PURE__ */ t.jsxs(qm.Provider, { value: se, children: [
|
@@ -17058,7 +17074,7 @@ const JI = ({
|
|
17058
17074
|
u.data.author
|
17059
17075
|
] }) : null,
|
17060
17076
|
y ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
|
17061
|
-
/* @__PURE__ */ t.jsx(
|
17077
|
+
/* @__PURE__ */ t.jsx(qn, { className: "icon-dim-16 scn-7" }),
|
17062
17078
|
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-12", children: y })
|
17063
17079
|
] }) : null,
|
17064
17080
|
u.data.message ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 top material-history-text--padded w-100", children: [
|
@@ -17192,7 +17208,7 @@ const JI = ({
|
|
17192
17208
|
] })
|
17193
17209
|
] }) : null,
|
17194
17210
|
l.date ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8", children: [
|
17195
|
-
/* @__PURE__ */ t.jsx(
|
17211
|
+
/* @__PURE__ */ t.jsx(qn, { className: "icon-dim-16 scn-7" }),
|
17196
17212
|
/* @__PURE__ */ t.jsx("span", { className: "lh-20", children: Le(l.date).format(vt.TWELVE_HOURS_FORMAT) })
|
17197
17213
|
] }) : null
|
17198
17214
|
] })
|
@@ -17211,7 +17227,7 @@ const JI = ({
|
|
17211
17227
|
}, [n]), l = !s || r.includes("/logs");
|
17212
17228
|
return k(() => (l && e.length && o({ callback: c, keys: e }), () => {
|
17213
17229
|
i(e);
|
17214
|
-
}), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className:
|
17230
|
+
}), [l, c]), l && /* @__PURE__ */ t.jsx("div", { className: vn(ft.dark), children: /* @__PURE__ */ t.jsx(
|
17215
17231
|
ie,
|
17216
17232
|
{
|
17217
17233
|
placement: "left",
|
@@ -17231,7 +17247,7 @@ const JI = ({
|
|
17231
17247
|
)
|
17232
17248
|
}
|
17233
17249
|
) });
|
17234
|
-
}, nA = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className:
|
17250
|
+
}, nA = ({ scrollToTop: e, scrollToBottom: s, style: n }) => /* @__PURE__ */ t.jsx("div", { className: vn(ft.dark), children: /* @__PURE__ */ t.jsxs("div", { style: n, className: "dc__element-scroller flex column top br-4", children: [
|
17235
17251
|
/* @__PURE__ */ t.jsx(ie, { alwaysShowTippyOnHover: !0, content: "Scroll to Top", placement: "left", children: /* @__PURE__ */ t.jsx(
|
17236
17252
|
"button",
|
17237
17253
|
{
|
@@ -17374,7 +17390,7 @@ const rA = (e) => {
|
|
17374
17390
|
case zt.delete:
|
17375
17391
|
return /* @__PURE__ */ t.jsx(tg, {});
|
17376
17392
|
case zt.warning:
|
17377
|
-
return /* @__PURE__ */ t.jsx(
|
17393
|
+
return /* @__PURE__ */ t.jsx(Tn, {});
|
17378
17394
|
default:
|
17379
17395
|
return /* @__PURE__ */ t.jsx(eg, {});
|
17380
17396
|
}
|
@@ -17510,7 +17526,7 @@ const rA = (e) => {
|
|
17510
17526
|
}
|
17511
17527
|
);
|
17512
17528
|
}, tM = ({ onFocus: e, onBlur: s, shouldShowDefaultPlaceholderOnBlur: n, ...a }) => {
|
17513
|
-
const [r, o] = j("password"), [i, c] = j(!1), l = r === "password", d = q(() => n && i && a.value ===
|
17529
|
+
const [r, o] = j("password"), [i, c] = j(!1), l = r === "password", d = q(() => n && i && a.value === Yn ? "" : !n || i || typeof a.value == "string" && a.value?.length > 0 ? a.value : Yn, [n, i, a.value]), u = (p) => {
|
17514
17530
|
c(!0), e?.(p);
|
17515
17531
|
}, m = (p) => {
|
17516
17532
|
c(!1), o("password"), s?.(p);
|
@@ -17523,7 +17539,7 @@ const rA = (e) => {
|
|
17523
17539
|
onFocus: u,
|
17524
17540
|
onBlur: m,
|
17525
17541
|
type: r,
|
17526
|
-
endIconButtonConfig: d && d !==
|
17542
|
+
endIconButtonConfig: d && d !== Yn ? {
|
17527
17543
|
icon: l ? /* @__PURE__ */ t.jsx(v_, {}) : /* @__PURE__ */ t.jsx(I_, {}),
|
17528
17544
|
onClick: () => {
|
17529
17545
|
o((p) => p === "password" ? "text" : "password");
|
@@ -17573,7 +17589,7 @@ const rA = (e) => {
|
|
17573
17589
|
onClick: xe,
|
17574
17590
|
children: [
|
17575
17591
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 p-20", children: [
|
17576
|
-
C ? null :
|
17592
|
+
C ? null : zn(N, {
|
17577
17593
|
className: `${N.props?.className ?? ""} icon-dim-48 dc__no-shrink`
|
17578
17594
|
}),
|
17579
17595
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${d ? "" : "dc__gap-8"}`, children: [
|
@@ -17782,7 +17798,7 @@ const rA = (e) => {
|
|
17782
17798
|
);
|
17783
17799
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-8 dc__gap-8 left dc__min-width-fit-content dc__align-items-center", children: [
|
17784
17800
|
i(),
|
17785
|
-
o && o !==
|
17801
|
+
o && o !== Sn && /* @__PURE__ */ t.jsx("time", { className: "dc__vertical-align-middle fs-13", children: Br(o) }),
|
17786
17802
|
a === ke.CI && n && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17787
17803
|
/* @__PURE__ */ t.jsx("div", { className: "dc__bullet" }),
|
17788
17804
|
/* @__PURE__ */ t.jsx(qi, { imagePath: n, placement: "top" })
|
@@ -18738,7 +18754,7 @@ const rA = (e) => {
|
|
18738
18754
|
withFullScreenPortal: !1,
|
18739
18755
|
orientation: "horizontal",
|
18740
18756
|
readOnly: l || !1,
|
18741
|
-
customInputIcon: /* @__PURE__ */ t.jsx(
|
18757
|
+
customInputIcon: /* @__PURE__ */ t.jsx(qn, { className: "icon-dim-20 scn-6" }),
|
18742
18758
|
inputIconPosition: "after",
|
18743
18759
|
displayFormat: vt.DD_MMM_YYYY,
|
18744
18760
|
"data-testid": m,
|
@@ -18963,7 +18979,7 @@ const rA = (e) => {
|
|
18963
18979
|
}
|
18964
18980
|
)
|
18965
18981
|
] }),
|
18966
|
-
i && /* @__PURE__ */ t.jsx(
|
18982
|
+
i && /* @__PURE__ */ t.jsx(In, { className: "", close: m, children: /* @__PURE__ */ t.jsxs(
|
18967
18983
|
"div",
|
18968
18984
|
{
|
18969
18985
|
className: "dc__overflow-auto br-8 dc__position-rel bg__primary custom-panel--iframe-element flexbox-col dc__content-space",
|
@@ -19716,7 +19732,7 @@ const mM = {
|
|
19716
19732
|
"div",
|
19717
19733
|
{
|
19718
19734
|
className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${l || P.data[M].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !F(P.data[M].value, M, P.id) ? "key-value-table__cell--error no-hover" : ""}`,
|
19719
|
-
children: s?.[M] && P.data[M].value ? /* @__PURE__ */ t.jsx("div", { className: "py-8 px-12 h-36 flex", children:
|
19735
|
+
children: s?.[M] && P.data[M].value ? /* @__PURE__ */ t.jsx("div", { className: "py-8 px-12 h-36 flex", children: Yn }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
19720
19736
|
/* @__PURE__ */ t.jsx(
|
19721
19737
|
Xi,
|
19722
19738
|
{
|
@@ -20201,7 +20217,7 @@ function p0({ isCreateApp: e }) {
|
|
20201
20217
|
/* @__PURE__ */ t.jsxs("div", { className: "mb-20", children: [
|
20202
20218
|
/* @__PURE__ */ t.jsxs("span", { className: "flex left", children: [
|
20203
20219
|
"Add a tag and click on the",
|
20204
|
-
/* @__PURE__ */ t.jsx(
|
20220
|
+
/* @__PURE__ */ t.jsx(Hn, { className: "icon-dim-16 ml-4 mr-4" }),
|
20205
20221
|
"icon to"
|
20206
20222
|
] }),
|
20207
20223
|
"propagate tags as labels to Kubernetes resources"
|
@@ -20214,19 +20230,19 @@ function p0({ isCreateApp: e }) {
|
|
20214
20230
|
theme: ia.white,
|
20215
20231
|
className: "w-300",
|
20216
20232
|
placement: "left",
|
20217
|
-
Icon:
|
20233
|
+
Icon: Hn,
|
20218
20234
|
heading: "Propagate tags to K8s resources",
|
20219
20235
|
infoText: "",
|
20220
20236
|
additionalContent: s(),
|
20221
20237
|
showCloseButton: !0,
|
20222
20238
|
trigger: "click",
|
20223
20239
|
interactive: !0,
|
20224
|
-
documentationLink: e ?
|
20240
|
+
documentationLink: e ? xn.APP_TAGS : xn.APP_OVERVIEW_TAGS,
|
20225
20241
|
documentationLinkText: "View Documentation",
|
20226
20242
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox cursor", children: [
|
20227
|
-
/* @__PURE__ */ t.jsx(
|
20243
|
+
/* @__PURE__ */ t.jsx(Hn, { className: "icon-dim-16 mt-2 mr-4" }),
|
20228
20244
|
/* @__PURE__ */ t.jsx("span", { children: "Propagate tags" }),
|
20229
|
-
/* @__PURE__ */ t.jsx(
|
20245
|
+
/* @__PURE__ */ t.jsx(Cn, { className: "icon-dim-16 mt-2 ml-4" })
|
20230
20246
|
] })
|
20231
20247
|
}
|
20232
20248
|
);
|
@@ -20340,7 +20356,7 @@ const Jl = ({
|
|
20340
20356
|
/* @__PURE__ */ t.jsx("span", { children: A })
|
20341
20357
|
] }, A)),
|
20342
20358
|
o === is.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
20343
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
20359
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Xn, { className: "icon-dim-14 mt-3 mr-4" }) }),
|
20344
20360
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
20345
20361
|
] })
|
20346
20362
|
] });
|
@@ -20428,7 +20444,7 @@ const Jl = ({
|
|
20428
20444
|
className: `dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ${s.propagate ? "bcn-7" : ""} ${s.key.startsWith("devtron.ai/") ? "cursor-not-allowed bcn-1" : ""}`,
|
20429
20445
|
onClick: s?.isPropagateDisabled ? null : m,
|
20430
20446
|
"data-testid": `propagate-tag-${e}`,
|
20431
|
-
children: /* @__PURE__ */ t.jsx(
|
20447
|
+
children: /* @__PURE__ */ t.jsx(Hn, { className: `icon-dim-20 mt-4 ${s.propagate ? "scn-0" : ""}` })
|
20432
20448
|
}
|
20433
20449
|
),
|
20434
20450
|
/* @__PURE__ */ t.jsx(
|
@@ -20602,7 +20618,7 @@ const _0 = (e) => {
|
|
20602
20618
|
inputId: `data-table-${b.id}-${O}-cell`,
|
20603
20619
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
20604
20620
|
variant: Kt.COMPACT,
|
20605
|
-
value:
|
20621
|
+
value: En(
|
20606
20622
|
b.data[O].props?.options,
|
20607
20623
|
b.data[O].value,
|
20608
20624
|
null
|
@@ -20625,7 +20641,7 @@ const _0 = (e) => {
|
|
20625
20641
|
inputId: `data-table-${b.id}-${O}-cell`,
|
20626
20642
|
minHeight: 20,
|
20627
20643
|
maxHeight: 160,
|
20628
|
-
value:
|
20644
|
+
value: En(
|
20629
20645
|
$?.options,
|
20630
20646
|
w,
|
20631
20647
|
F && w ? { label: w, value: w } : null
|
@@ -20853,7 +20869,7 @@ const _0 = (e) => {
|
|
20853
20869
|
"data-index": f.id,
|
20854
20870
|
type: "button",
|
20855
20871
|
disabled: E,
|
20856
|
-
children: /* @__PURE__ */ t.jsx(
|
20872
|
+
children: /* @__PURE__ */ t.jsx(Hn, { className: `icon-dim-20 ${x ? "scn-0" : ""}` })
|
20857
20873
|
}
|
20858
20874
|
) });
|
20859
20875
|
}, u = () => {
|
@@ -20966,7 +20982,7 @@ const _0 = (e) => {
|
|
20966
20982
|
),
|
20967
20983
|
/* @__PURE__ */ t.jsx("audio", { hidden: !0, ref: n, src: ph })
|
20968
20984
|
] });
|
20969
|
-
}, _r = "Please provide valid YAML",
|
20985
|
+
}, _r = "Please provide valid YAML", Dn = {
|
20970
20986
|
BOTH_STORE_AVAILABLE: "Please use either secretStore or secretStoreRef",
|
20971
20987
|
CHECK_KEY_SECRET_KEY: "Please check key and secretKey",
|
20972
20988
|
BOTH_STORE_UNAVAILABLE: "Please provide secretStore or secretStoreRef",
|
@@ -21017,7 +21033,7 @@ const _0 = (e) => {
|
|
21017
21033
|
];
|
21018
21034
|
return e ? n : [...n, ...a, ...s ? r : []];
|
21019
21035
|
}, go = (e, s) => {
|
21020
|
-
let n = e ||
|
21036
|
+
let n = e || Yn;
|
21021
21037
|
if (s)
|
21022
21038
|
try {
|
21023
21039
|
n = Fo(e);
|
@@ -21158,7 +21174,7 @@ const _0 = (e) => {
|
|
21158
21174
|
fallbackMergeStrategy: r
|
21159
21175
|
}), N = i && c === (_ ? Pe.KubernetesSecret : Pe.Internal);
|
21160
21176
|
let C = "";
|
21161
|
-
return _ ? C = i && c === "" ? Pe.KubernetesSecret :
|
21177
|
+
return _ ? C = i && c === "" ? Pe.KubernetesSecret : En(v0(a, !0), c).label : C = S0.find(
|
21162
21178
|
({ value: S }) => i && c === "" ? S === Pe.KubernetesConfigMap : S === c
|
21163
21179
|
).label, {
|
21164
21180
|
configData: [
|
@@ -21316,7 +21332,7 @@ const _0 = (e) => {
|
|
21316
21332
|
}
|
21317
21333
|
)
|
21318
21334
|
] }),
|
21319
|
-
Icon:
|
21335
|
+
Icon: Tn,
|
21320
21336
|
iconSize: 20
|
21321
21337
|
}
|
21322
21338
|
), SM = ({
|
@@ -21427,7 +21443,7 @@ const _0 = (e) => {
|
|
21427
21443
|
),
|
21428
21444
|
n
|
21429
21445
|
// Keep track of overall validity
|
21430
|
-
)), s.esoDataFrom && s.esoData ? a =
|
21446
|
+
)), s.esoDataFrom && s.esoData ? a = Dn.BOTH_ESO_DATA_AND_DATA_FROM_AVAILABLE : !s.esoDataFrom && !s.esoData ? a = Dn.BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE : s.secretStore && s.secretStoreRef ? a = Dn.BOTH_STORE_AVAILABLE : s.secretStore || s.secretStoreRef ? a = Dn.CHECK_KEY_SECRET_KEY : a = Dn.BOTH_STORE_UNAVAILABLE, {
|
21431
21447
|
custom: {
|
21432
21448
|
isValid: () => n,
|
21433
21449
|
// Validation is successful if all checks pass.
|
@@ -21632,7 +21648,7 @@ const _0 = (e) => {
|
|
21632
21648
|
type: "button",
|
21633
21649
|
children: [
|
21634
21650
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
21635
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(
|
21651
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(bn, { className: "icon-dim-16 fcv-5" }) }),
|
21636
21652
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: k0 })
|
21637
21653
|
] }),
|
21638
21654
|
/* @__PURE__ */ t.jsx(ms, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
@@ -21959,7 +21975,7 @@ const _0 = (e) => {
|
|
21959
21975
|
resource: null,
|
21960
21976
|
status: (e) => K0[e]
|
21961
21977
|
};
|
21962
|
-
var
|
21978
|
+
var hn, gn;
|
21963
21979
|
class sd {
|
21964
21980
|
constructor(s) {
|
21965
21981
|
ne(this, "size");
|
@@ -21973,10 +21989,10 @@ class sd {
|
|
21973
21989
|
Progressing: 0,
|
21974
21990
|
Pending: 0
|
21975
21991
|
});
|
21976
|
-
Ta(this, _n, !1);
|
21977
21992
|
Ta(this, hn, !1);
|
21993
|
+
Ta(this, gn, !1);
|
21978
21994
|
ne(this, "updateStatus", (s, n) => {
|
21979
|
-
n.status === "Completed" && !Us(this,
|
21995
|
+
n.status === "Completed" && !Us(this, gn) && Sa(this, gn, !0), n.status === "Failed" && !Us(this, hn) && Sa(this, hn, !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;
|
21980
21996
|
});
|
21981
21997
|
ne(this, "addResult", (s) => {
|
21982
21998
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -21997,12 +22013,12 @@ class sd {
|
|
21997
22013
|
this.map.set(s, r), this.results[s] = r, n.status === "Failed" && n.retryOperation && this.retryOperations.push(n.retryOperation), this.updateStatus(s, r);
|
21998
22014
|
});
|
21999
22015
|
ne(this, "getRetryOperations", () => this.retryOperations);
|
22000
|
-
ne(this, "hasAnyOperationFailed", () => Us(this,
|
22001
|
-
ne(this, "getHasAnyOperationSucceeded", () => Us(this,
|
22016
|
+
ne(this, "hasAnyOperationFailed", () => Us(this, hn));
|
22017
|
+
ne(this, "getHasAnyOperationSucceeded", () => Us(this, gn));
|
22002
22018
|
this.size = s, this.barChartEntities.Pending = s;
|
22003
22019
|
}
|
22004
22020
|
}
|
22005
|
-
|
22021
|
+
hn = new WeakMap(), gn = new WeakMap();
|
22006
22022
|
const z0 = ({
|
22007
22023
|
apiCallInProgress: e,
|
22008
22024
|
handleModalClose: s,
|
@@ -22073,7 +22089,7 @@ const z0 = ({
|
|
22073
22089
|
{
|
22074
22090
|
icon: /* @__PURE__ */ t.jsx(at, {}),
|
22075
22091
|
dataTestId: "rb-bulk-action__cross",
|
22076
|
-
component:
|
22092
|
+
component: un.button,
|
22077
22093
|
style: Ee.negativeGrey,
|
22078
22094
|
size: L.xs,
|
22079
22095
|
variant: ue.borderLess,
|
@@ -22181,7 +22197,7 @@ const z0 = ({
|
|
22181
22197
|
size: L.large,
|
22182
22198
|
variant: ue.primary,
|
22183
22199
|
style: Ee.default,
|
22184
|
-
component:
|
22200
|
+
component: un.button,
|
22185
22201
|
isLoading: e,
|
22186
22202
|
onClick: o,
|
22187
22203
|
startIcon: /* @__PURE__ */ t.jsx(Sh, {}),
|
@@ -22309,7 +22325,7 @@ const z0 = ({
|
|
22309
22325
|
/* @__PURE__ */ t.jsx(e_, { when: u, message: o.prompt }),
|
22310
22326
|
!i && !g ? v() : I()
|
22311
22327
|
] });
|
22312
|
-
},
|
22328
|
+
}, Pn = ({
|
22313
22329
|
title: e,
|
22314
22330
|
subtitle: s,
|
22315
22331
|
image: n,
|
@@ -22484,7 +22500,7 @@ const z0 = ({
|
|
22484
22500
|
s(S, o?.appWorkflowId ?? 0), e();
|
22485
22501
|
}, N = (C) => !r && C === Tt.LINKED_CD ? q0 : p === C ? X0 : x ? J0 : null;
|
22486
22502
|
return /* @__PURE__ */ t.jsx(
|
22487
|
-
|
22503
|
+
In,
|
22488
22504
|
{
|
22489
22505
|
onEscape: x ? null : g,
|
22490
22506
|
close: x ? null : g,
|
@@ -22513,7 +22529,7 @@ const z0 = ({
|
|
22513
22529
|
/* @__PURE__ */ t.jsxs("section", { className: "flexbox-col dc__gap-8 dc__align-self-stretch", children: [
|
22514
22530
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 cn-7 fs-11 fw-6 lh-16 dc__uppercase", children: No.DEFAULT }),
|
22515
22531
|
/* @__PURE__ */ t.jsx(
|
22516
|
-
|
22532
|
+
Pn,
|
22517
22533
|
{
|
22518
22534
|
title: $e.SOURCE_CODE.title,
|
22519
22535
|
subtitle: $e.SOURCE_CODE.subtitle,
|
@@ -22526,7 +22542,7 @@ const z0 = ({
|
|
22526
22542
|
}
|
22527
22543
|
),
|
22528
22544
|
/* @__PURE__ */ t.jsx(
|
22529
|
-
|
22545
|
+
Pn,
|
22530
22546
|
{
|
22531
22547
|
title: $e.LINKED_PIPELINE.title,
|
22532
22548
|
subtitle: $e.LINKED_PIPELINE.subtitle,
|
@@ -22543,7 +22559,7 @@ const z0 = ({
|
|
22543
22559
|
/* @__PURE__ */ t.jsxs("section", { className: "flexbox-col dc__gap-8 dc__align-self-stretch", children: [
|
22544
22560
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 cn-7 fs-11 fw-6 lh-16 dc__uppercase", children: No.RECIEVE }),
|
22545
22561
|
/* @__PURE__ */ t.jsx(
|
22546
|
-
|
22562
|
+
Pn,
|
22547
22563
|
{
|
22548
22564
|
title: $e.EXTERNAL_SERVICE.title,
|
22549
22565
|
subtitle: $e.EXTERNAL_SERVICE.subtitle,
|
@@ -22557,7 +22573,7 @@ const z0 = ({
|
|
22557
22573
|
}
|
22558
22574
|
),
|
22559
22575
|
!!d && /* @__PURE__ */ t.jsx(
|
22560
|
-
|
22576
|
+
Pn,
|
22561
22577
|
{
|
22562
22578
|
title: d.title,
|
22563
22579
|
subtitle: d.subtitle,
|
@@ -22573,7 +22589,7 @@ const z0 = ({
|
|
22573
22589
|
window._env_.ENABLE_CI_JOB && /* @__PURE__ */ t.jsxs("section", { className: "flexbox-col dc__gap-8 dc__align-self-stretch", children: [
|
22574
22590
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 cn-7 fs-11 fw-6 lh-16 dc__uppercase", children: No.JOB }),
|
22575
22591
|
/* @__PURE__ */ t.jsx(
|
22576
|
-
|
22592
|
+
Pn,
|
22577
22593
|
{
|
22578
22594
|
title: $e.JOB.title,
|
22579
22595
|
subtitle: $e.JOB.subtitle,
|
@@ -22636,7 +22652,7 @@ const z0 = ({
|
|
22636
22652
|
}
|
22637
22653
|
);
|
22638
22654
|
}, jM = () => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-item-center dc__gap-6", children: [
|
22639
|
-
/* @__PURE__ */ t.jsx(
|
22655
|
+
/* @__PURE__ */ t.jsx(Tn, { className: "icon-dim-20 dc__no-shrink" }),
|
22640
22656
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 fw-4 lh-20", children: "Unsaved changes" })
|
22641
22657
|
] }), OM = ({ handleClose: e, handleProceed: s }) => /* @__PURE__ */ t.jsx(
|
22642
22658
|
Js,
|
@@ -22888,7 +22904,7 @@ const ly = (e) => e === mp.NONE ? "" : "dc__border-n1", LM = ({
|
|
22888
22904
|
{
|
22889
22905
|
className: `flexbox dc__gap-16 p-12 bg__primary generic-info-card br-8 ${ly(r)}`,
|
22890
22906
|
children: a ? d() : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
22891
|
-
|
22907
|
+
zn(l, {
|
22892
22908
|
className: `${l.props?.className ?? ""} icon-dim-40 dc__no-shrink br-6 dc__fill-available-space`
|
22893
22909
|
}),
|
22894
22910
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 flex-grow-1", children: [
|
@@ -22917,10 +22933,10 @@ const ly = (e) => e === mp.NONE ? "" : "dc__border-n1", LM = ({
|
|
22917
22933
|
neutral: "bcn-1 en-2"
|
22918
22934
|
}, uy = {
|
22919
22935
|
error: /* @__PURE__ */ t.jsx(Ir, {}),
|
22920
|
-
help: /* @__PURE__ */ t.jsx(
|
22936
|
+
help: /* @__PURE__ */ t.jsx(bn, { className: "fcv-5" }),
|
22921
22937
|
information: /* @__PURE__ */ t.jsx(Ae, { name: "ic-info-filled", color: "B500" }),
|
22922
22938
|
success: /* @__PURE__ */ t.jsx(xi, {}),
|
22923
|
-
warning: /* @__PURE__ */ t.jsx(
|
22939
|
+
warning: /* @__PURE__ */ t.jsx(Tn, {}),
|
22924
22940
|
neutral: /* @__PURE__ */ t.jsx(Ae, { name: "ic-info-filled", color: null })
|
22925
22941
|
}, my = {
|
22926
22942
|
[L.large]: "px-12",
|
@@ -23448,7 +23464,7 @@ function BM(e) {
|
|
23448
23464
|
function xr(e, s = !1) {
|
23449
23465
|
let n = "";
|
23450
23466
|
try {
|
23451
|
-
if (e && e.length && e !==
|
23467
|
+
if (e && e.length && e !== Sn) {
|
23452
23468
|
const a = Le(e);
|
23453
23469
|
s ? n = a.fromNow() : n = a.format(lE);
|
23454
23470
|
}
|
@@ -23680,7 +23696,7 @@ const GM = (e, s) => e ? xr(e, !0) : s ? "" : "Not deployed", We = (e, s = {}) =
|
|
23680
23696
|
const n = Array.isArray(e), a = Array.isArray(s);
|
23681
23697
|
return n && !a || !n && a ? !1 : !n && !a ? Object.keys(e).length === Object.keys(s).length : e.length === s.length;
|
23682
23698
|
};
|
23683
|
-
function
|
23699
|
+
function Kn(e, s) {
|
23684
23700
|
return tu(e, s);
|
23685
23701
|
}
|
23686
23702
|
function Ay(e, s) {
|
@@ -23791,7 +23807,7 @@ const ak = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, jy = (e, s = 300) => {
|
|
23791
23807
|
const r = Date.now();
|
23792
23808
|
r - n >= s && (n = r, e(...a));
|
23793
23809
|
};
|
23794
|
-
}, Oy = (e, s, n) => e === Wt.WEBHOOK ? n ===
|
23810
|
+
}, Oy = (e, s, n) => e === Wt.WEBHOOK ? n === Qn.PULL_REQUEST ? /* @__PURE__ */ t.jsx(_i, { className: "scn-6" }) : n === Qn.TAG_CREATION ? /* @__PURE__ */ t.jsx(br, { className: "scn-6" }) : /* @__PURE__ */ t.jsx(su, {}) : e === Wt.BranchRegex || s ? /* @__PURE__ */ t.jsx(Zd, { className: "fcn-6" }) : /* @__PURE__ */ t.jsx(Ud, { className: "fcn-6" }), Np = (e) => ws.sanitize(e, {
|
23795
23811
|
ADD_TAGS: ["iframe"],
|
23796
23812
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
23797
23813
|
}), rk = (e, s) => {
|
@@ -23844,7 +23860,7 @@ const Ly = ({ subtitle: e, title: s }) => /* @__PURE__ */ t.jsx(
|
|
23844
23860
|
subTitle: e ?? ze.ONLY_FOR_SUPERADMIN
|
23845
23861
|
}
|
23846
23862
|
);
|
23847
|
-
class
|
23863
|
+
class In extends Se.Component {
|
23848
23864
|
constructor(n) {
|
23849
23865
|
super(n);
|
23850
23866
|
ne(this, "modalRef", document.getElementById("visible-modal"));
|
@@ -23894,7 +23910,7 @@ const Cp = ({
|
|
23894
23910
|
u.current?.classList?.remove("show"), Ps(!1);
|
23895
23911
|
}), []);
|
23896
23912
|
const m = {};
|
23897
|
-
return (s === "left" || s === "right") && (m["--width"] = a, m["--minWidth"] = r, m["--maxWidth"] = o), (s === "top" || s === "bottom") && (m["--height"] = n), /* @__PURE__ */ t.jsx(
|
23913
|
+
return (s === "left" || s === "right") && (m["--width"] = a, m["--minWidth"] = r, m["--maxWidth"] = o), (s === "top" || s === "bottom") && (m["--height"] = n), /* @__PURE__ */ t.jsx(In, { className: "drawer--container", parentClassName: i || "", onEscape: c, close: l, children: /* @__PURE__ */ t.jsx("aside", { style: m, ref: u, className: `drawer ${d ? "disable-transition" : ""} ${s}`, children: e }) });
|
23898
23914
|
};
|
23899
23915
|
class bp extends Se.Component {
|
23900
23916
|
constructor(n) {
|
@@ -24071,7 +24087,7 @@ class fk extends Cr {
|
|
24071
24087
|
close: this.props.close,
|
24072
24088
|
onSave: this.props.onSave
|
24073
24089
|
},
|
24074
|
-
children: /* @__PURE__ */ t.jsx(
|
24090
|
+
children: /* @__PURE__ */ t.jsx(In, { className: "", children: /* @__PURE__ */ t.jsxs("div", { className: `modal__body ${this.props.className || ""}`, children: [
|
24075
24091
|
/* @__PURE__ */ t.jsxs("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
|
24076
24092
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title", children: this.props.title }),
|
24077
24093
|
/* @__PURE__ */ t.jsxs("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
|
@@ -24839,7 +24855,7 @@ function Ek({
|
|
24839
24855
|
handleAddCD: r,
|
24840
24856
|
tooltipContent: o
|
24841
24857
|
}) {
|
24842
|
-
const i = e ===
|
24858
|
+
const i = e === Zn.RIGHT ? n : a, c = () => {
|
24843
24859
|
r(e);
|
24844
24860
|
};
|
24845
24861
|
return s?.includes(e) ? /* @__PURE__ */ t.jsx(
|
@@ -24852,7 +24868,7 @@ function Ek({
|
|
24852
24868
|
children: /* @__PURE__ */ t.jsxs(
|
24853
24869
|
"svg",
|
24854
24870
|
{
|
24855
|
-
x: i.x + (e ===
|
24871
|
+
x: i.x + (e === Zn.RIGHT ? -25 : i.width + 5),
|
24856
24872
|
y: i.y + i.height / 2 - 10,
|
24857
24873
|
width: "20",
|
24858
24874
|
height: "20",
|
@@ -24892,7 +24908,7 @@ const zy = ({ startNode: e }) => e.type === Is.WEBHOOK ? Ks.WEBHOOK : e.type ===
|
|
24892
24908
|
}) => {
|
24893
24909
|
if (!s)
|
24894
24910
|
return;
|
24895
|
-
const l = zy({ startNode: n }), d = c && e ===
|
24911
|
+
const l = zy({ startNode: n }), d = c && e === Zn.RIGHT ? jo.PARALLEL : jo.SEQUENTIAL, u = !c && e === Zn.RIGHT ? a.id : null;
|
24896
24912
|
s(r, o, l, n.id, i, u, d);
|
24897
24913
|
};
|
24898
24914
|
var ai = /* @__PURE__ */ ((e) => (e.PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER", e.SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER", e.SCREEN_BOTTOM_RIGHT = "SCREEN_BOTTOM_RIGHT", e))(ai || {});
|
@@ -25119,7 +25135,7 @@ const hd = 5, qy = [
|
|
25119
25135
|
)
|
25120
25136
|
] })
|
25121
25137
|
] });
|
25122
|
-
},
|
25138
|
+
}, Mn = new Fs.Renderer(), gd = ({
|
25123
25139
|
setExpandableIcon: e,
|
25124
25140
|
markdown: s,
|
25125
25141
|
className: n,
|
@@ -25139,10 +25155,10 @@ const hd = 5, qy = [
|
|
25139
25155
|
${m.map((p) => `<td align="${p.align}">${Fs(p.text)}</td>`).join("")}
|
25140
25156
|
</tr>
|
25141
25157
|
`;
|
25142
|
-
|
25158
|
+
Mn.listitem = ({ text: m, task: p, checked: f }) => p ? `<li style="list-style: none">
|
25143
25159
|
<input disabled type="checkbox" ${f ? "checked" : ""} class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
|
25144
25160
|
${Fs(m)}
|
25145
|
-
</li>` : `<li>${Fs(m)}</li>`,
|
25161
|
+
</li>` : `<li>${Fs(m)}</li>`, Mn.image = ({ href: m, title: p, text: f }) => `<img src="${m}" alt="${f}" title="${p}" class="max-w-100">`, Mn.table = ({ header: m, rows: p }) => `
|
25146
25162
|
<div class="table-container">
|
25147
25163
|
<table>
|
25148
25164
|
<thead>
|
@@ -25153,7 +25169,7 @@ const hd = 5, qy = [
|
|
25153
25169
|
</tbody>
|
25154
25170
|
</table>
|
25155
25171
|
</div>
|
25156
|
-
`,
|
25172
|
+
`, Mn.heading = ({ text: m, depth: p }) => {
|
25157
25173
|
const f = r ? "" : m.toLowerCase().replace(/[^\w]+/g, "-");
|
25158
25174
|
return `
|
25159
25175
|
<a name="${f}" rel="noreferrer noopener" class="anchor" href="#${f}">
|
@@ -25163,7 +25179,7 @@ const hd = 5, qy = [
|
|
25163
25179
|
</h${p}>
|
25164
25180
|
</a>`;
|
25165
25181
|
}, Fs.setOptions({
|
25166
|
-
renderer:
|
25182
|
+
renderer: Mn,
|
25167
25183
|
gfm: !0,
|
25168
25184
|
...a && { breaks: !0 }
|
25169
25185
|
});
|
@@ -25214,7 +25230,7 @@ const Ut = {
|
|
25214
25230
|
"ordered-list": "Add a numbered list",
|
25215
25231
|
"checked-list": "Add a task list"
|
25216
25232
|
}, sR = "Readme cannot be empty. Please add some information or cancel the changes.", nR = "Are you sure you want to discard your changes?", aR = (e) => {
|
25217
|
-
if (!e || e ===
|
25233
|
+
if (!e || e === Sn)
|
25218
25234
|
return "";
|
25219
25235
|
const s = Le(e);
|
25220
25236
|
return s.isValid() ? s.format(vt.TWELVE_HOURS_FORMAT) : e;
|
@@ -25228,7 +25244,7 @@ const Ut = {
|
|
25228
25244
|
title: i,
|
25229
25245
|
minEditorHeight: c = 300
|
25230
25246
|
}) => {
|
25231
|
-
const [l, d] = j(!1), [u, m] = j(a), [p, f] = j(e), [x, E] = j(cn.WRITE), g = !
|
25247
|
+
const [l, d] = j(!1), [u, m] = j(a), [p, f] = j(e), [x, E] = j(cn.WRITE), g = !Kn(e, p), h = H(null);
|
25232
25248
|
k(() => {
|
25233
25249
|
f(e);
|
25234
25250
|
}, [e]);
|
@@ -25759,7 +25775,7 @@ export {
|
|
25759
25775
|
Ia as a8,
|
25760
25776
|
_D as a9,
|
25761
25777
|
Vx as aA,
|
25762
|
-
|
25778
|
+
Gn as aB,
|
25763
25779
|
Hx as aC,
|
25764
25780
|
Gx as aD,
|
25765
25781
|
Ro as aE,
|
@@ -25770,7 +25786,7 @@ export {
|
|
25770
25786
|
Wx as aJ,
|
25771
25787
|
Ks as aK,
|
25772
25788
|
Is as aL,
|
25773
|
-
|
25789
|
+
Zn as aM,
|
25774
25790
|
jo as aN,
|
25775
25791
|
zx as aO,
|
25776
25792
|
Ue as aP,
|
@@ -25785,8 +25801,8 @@ export {
|
|
25785
25801
|
Je as aY,
|
25786
25802
|
Ty as aZ,
|
25787
25803
|
pp as a_,
|
25788
|
-
|
25789
|
-
|
25804
|
+
Jn as aa,
|
25805
|
+
Sn as ab,
|
25790
25806
|
iu as ac,
|
25791
25807
|
Bt as ad,
|
25792
25808
|
cu as ae,
|
@@ -25807,7 +25823,7 @@ export {
|
|
25807
25823
|
ia as at,
|
25808
25824
|
pt as au,
|
25809
25825
|
en as av,
|
25810
|
-
|
25826
|
+
Un as aw,
|
25811
25827
|
Ft as ax,
|
25812
25828
|
mu as ay,
|
25813
25829
|
Fx as az,
|
@@ -25832,7 +25848,7 @@ export {
|
|
25832
25848
|
wD as bG,
|
25833
25849
|
Cp as bH,
|
25834
25850
|
Dm as bI,
|
25835
|
-
|
25851
|
+
In as bJ,
|
25836
25852
|
bp as bK,
|
25837
25853
|
Ci as bL,
|
25838
25854
|
p0 as bM,
|
@@ -25994,7 +26010,7 @@ export {
|
|
25994
26010
|
vC as dl,
|
25995
26011
|
IC as dm,
|
25996
26012
|
AC as dn,
|
25997
|
-
|
26013
|
+
Nn as dp,
|
25998
26014
|
yC as dq,
|
25999
26015
|
TP as dr,
|
26000
26016
|
LC as ds,
|
@@ -26005,7 +26021,7 @@ export {
|
|
26005
26021
|
U as dx,
|
26006
26022
|
Vt as dy,
|
26007
26023
|
Ie as dz,
|
26008
|
-
|
26024
|
+
Kn as e,
|
26009
26025
|
ZP as e$,
|
26010
26026
|
qE as e0,
|
26011
26027
|
ca as e1,
|
@@ -26051,7 +26067,7 @@ export {
|
|
26051
26067
|
VC as ee,
|
26052
26068
|
AP as ef,
|
26053
26069
|
yP as eg,
|
26054
|
-
|
26070
|
+
Bn as eh,
|
26055
26071
|
BP as ei,
|
26056
26072
|
FP as ej,
|
26057
26073
|
zC as ek,
|
@@ -26083,7 +26099,7 @@ export {
|
|
26083
26099
|
LD as f8,
|
26084
26100
|
DD as f9,
|
26085
26101
|
w1 as fA,
|
26086
|
-
|
26102
|
+
Fn as fB,
|
26087
26103
|
Wo as fC,
|
26088
26104
|
cr as fD,
|
26089
26105
|
hm as fE,
|
@@ -26120,7 +26136,7 @@ export {
|
|
26120
26136
|
Xu as fi,
|
26121
26137
|
gb as fj,
|
26122
26138
|
oo as fk,
|
26123
|
-
|
26139
|
+
Rn as fl,
|
26124
26140
|
xb as fm,
|
26125
26141
|
Eb as fn,
|
26126
26142
|
il as fo,
|
@@ -26141,7 +26157,7 @@ export {
|
|
26141
26157
|
cs as g1,
|
26142
26158
|
Ur as g2,
|
26143
26159
|
hl as g3,
|
26144
|
-
|
26160
|
+
fn as g4,
|
26145
26161
|
GT as g5,
|
26146
26162
|
YT as g6,
|
26147
26163
|
US as g7,
|
@@ -26212,7 +26228,7 @@ export {
|
|
26212
26228
|
FA as h7,
|
26213
26229
|
ep as h8,
|
26214
26230
|
DA as h9,
|
26215
|
-
|
26231
|
+
Vn as hA,
|
26216
26232
|
Da as hB,
|
26217
26233
|
jm as hC,
|
26218
26234
|
po as hD,
|
@@ -26229,7 +26245,7 @@ export {
|
|
26229
26245
|
Q as hO,
|
26230
26246
|
_1 as hP,
|
26231
26247
|
or as hQ,
|
26232
|
-
|
26248
|
+
pn as hR,
|
26233
26249
|
Rb as hS,
|
26234
26250
|
pT as hT,
|
26235
26251
|
rm as hU,
|
@@ -26251,7 +26267,7 @@ export {
|
|
26251
26267
|
hM as hj,
|
26252
26268
|
Mt as hk,
|
26253
26269
|
lC as hl,
|
26254
|
-
|
26270
|
+
En as hm,
|
26255
26271
|
LN as hn,
|
26256
26272
|
Kt as ho,
|
26257
26273
|
Tm as hp,
|
@@ -26270,7 +26286,7 @@ export {
|
|
26270
26286
|
DE as i0,
|
26271
26287
|
ue as i1,
|
26272
26288
|
Ee as i2,
|
26273
|
-
|
26289
|
+
un as i3,
|
26274
26290
|
o0 as i4,
|
26275
26291
|
a0 as i5,
|
26276
26292
|
rp as i6,
|
@@ -26278,7 +26294,7 @@ export {
|
|
26278
26294
|
NM as i8,
|
26279
26295
|
Js as i9,
|
26280
26296
|
_r as iA,
|
26281
|
-
|
26297
|
+
Dn as iB,
|
26282
26298
|
S0 as iC,
|
26283
26299
|
aa as iD,
|
26284
26300
|
hr as iE,
|
@@ -26421,7 +26437,7 @@ export {
|
|
26421
26437
|
S1 as kN,
|
26422
26438
|
v1 as kO,
|
26423
26439
|
ft as kP,
|
26424
|
-
|
26440
|
+
vn as kQ,
|
26425
26441
|
TT as kR,
|
26426
26442
|
dm as kS,
|
26427
26443
|
I1 as kT,
|
@@ -26450,7 +26466,7 @@ export {
|
|
26450
26466
|
ct as kp,
|
26451
26467
|
jr as kq,
|
26452
26468
|
Zx as kr,
|
26453
|
-
|
26469
|
+
Qn as ks,
|
26454
26470
|
$t as kt,
|
26455
26471
|
Qx as ku,
|
26456
26472
|
eE as kv,
|
@@ -26463,7 +26479,7 @@ export {
|
|
26463
26479
|
CD as l0,
|
26464
26480
|
lE as l1,
|
26465
26481
|
wo as l2,
|
26466
|
-
|
26482
|
+
Yn as l3,
|
26467
26483
|
dE as l4,
|
26468
26484
|
ls as l5,
|
26469
26485
|
Ua as l6,
|
@@ -26482,7 +26498,7 @@ export {
|
|
26482
26498
|
Rc as lJ,
|
26483
26499
|
bE as lK,
|
26484
26500
|
VE as lL,
|
26485
|
-
|
26501
|
+
$n as lM,
|
26486
26502
|
HE as lN,
|
26487
26503
|
Pe as lO,
|
26488
26504
|
Gt as lP,
|
@@ -26554,9 +26570,9 @@ export {
|
|
26554
26570
|
Ss as s,
|
26555
26571
|
iD as t,
|
26556
26572
|
uk as u,
|
26557
|
-
|
26573
|
+
yn as v,
|
26558
26574
|
Ei as w,
|
26559
26575
|
ou as x,
|
26560
|
-
|
26576
|
+
xn as y,
|
26561
26577
|
Ht as z
|
26562
26578
|
};
|