@devtron-labs/devtron-fe-common-lib 1.5.12-beta-1 → 1.5.12-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,14 +6,14 @@ var sN = (t, e, s) => e in t ? tN(t, e, { enumerable: !0, configurable: !0, writ
|
|
6
6
|
var Ce = (t, e, s) => sN(t, typeof e != "symbol" ? e + "" : e, s), Fm = (t, e, s) => e.has(t) || Bm("Cannot " + s);
|
7
7
|
var tr = (t, e, s) => (Fm(t, e, "read from private field"), s ? s.call(t) : e.get(t)), Aa = (t, e, s) => e.has(t) ? Bm("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, s), Oa = (t, e, s, n) => (Fm(t, e, "write to private field"), n ? n.call(t, s) : e.set(t, s), s);
|
8
8
|
import { j as a, i as he, n as nN, Q as Dd, k as rN, D as Dl, d as Ox, h as iN, A as oN, R as aN, s as lN, f as Ix, a as cN, S as En, b as dN, c as uN, e as hN, t as L, N as qc, g as Rx, T as us, l as fN, m as ms, I as mN, P as kx, o as pN, p as ul, q as gN, r as Ge, _ as Er, u as He, v as _N, w as xN, L as bN, x as Lx, M as EN, y as CN, z as vN, B as Dx, C as SN, E as jx, F as sf, G as Px, H as nf, J as Mx, K as Bx, O as yN, U as NN, V as TN, W as wN, X as ir } from "./@vendor-CKSERKp7.js";
|
9
|
-
import me, { useState as R, cloneElement as jl, useRef as re, Component as Jc, Children as Um, createElement as rf, useMemo as le, useCallback as dt, useEffect as P, createContext as ys, useContext as Nn, Fragment as hi, createRef as
|
9
|
+
import me, { useState as R, cloneElement as jl, useRef as re, Component as Jc, Children as Um, createElement as rf, useMemo as le, useCallback as dt, useEffect as P, createContext as ys, useContext as Nn, Fragment as hi, createRef as Rn, forwardRef as Fx, useImperativeHandle as of, useReducer as Ux, memo as af } from "react";
|
10
10
|
import { ReactComponent as tn } from "./assets/ic-warning.10bcf8bd.svg";
|
11
11
|
import { ReactComponent as AN } from "./assets/ic-cpu.8be677ee.svg";
|
12
12
|
import { ReactComponent as ON } from "./assets/ic-memory.c4159f96.svg";
|
13
13
|
import { ReactComponent as lf } from "./assets/ic-timer.b62145ec.svg";
|
14
14
|
import { ReactComponent as IN } from "./assets/ic-spray-can.955302fc.svg";
|
15
15
|
import { ReactComponent as Xc } from "./assets/ic-tag.1613fc59.svg";
|
16
|
-
import { Link as
|
16
|
+
import { Link as qn, useLocation as Jn, useHistory as Xn, NavLink as Vt, useParams as is, useRouteMatch as ln, generatePath as ur, Switch as Vx, Route as ar, Redirect as RN, Prompt as kN } from "react-router-dom";
|
17
17
|
import { ReactComponent as LN } from "./assets/ic-delete-interactive.304dd293.svg";
|
18
18
|
import ts, { YAMLParseError as DN } from "yaml";
|
19
19
|
import { ReactComponent as cf } from "./assets/ic-info-filled-override.99e8094a.svg";
|
@@ -115,7 +115,7 @@ import { ReactComponent as i0 } from "./assets/ic-in-progress.53ef18ae.svg";
|
|
115
115
|
import { ReactComponent as IT } from "./assets/ic-download.c30437cd.svg";
|
116
116
|
import RT from "./assets/ic-folder.051cd30d.svg";
|
117
117
|
import o0 from "./assets/no-artifact.fd2d84d9.webp";
|
118
|
-
import kT, { ReactComponent as
|
118
|
+
import kT, { ReactComponent as Tn } from "./assets/ic-cross.01e03666.svg";
|
119
119
|
import { ReactComponent as a0 } from "./assets/ic-arrow-counter-clockwise.01cbb0e1.svg";
|
120
120
|
import { ReactComponent as LT } from "./assets/ic-minus.df865aaf.svg";
|
121
121
|
import { ReactComponent as DT } from "./assets/ic-enter.cab07082.svg";
|
@@ -608,7 +608,7 @@ const so = {
|
|
608
608
|
Security: "SECURITY",
|
609
609
|
Changes: "CHANGES"
|
610
610
|
};
|
611
|
-
var Os = /* @__PURE__ */ ((t) => (t.PRECD = "PRECD", t.CD = "CD", t.POSTCD = "POSTCD", t.APPROVAL = "APPROVAL", t))(Os || {}), b0 = /* @__PURE__ */ ((t) => (t.specific = "SPECIFIC", t.any = "ANY", t.notConfigured = "NOT_CONFIGURED", t))(b0 || {}), Uw = /* @__PURE__ */ ((t) => (t.configMap = "configuration/config-map", t.configSecret = "configuration/config-secret", t.deploymentTemplate = "configuration/deployment-template", t.deploymentTrigger = "approval/deployment", t))(Uw || {}), Vw = /* @__PURE__ */ ((t) => (t[t.init = 0] = "init", t[t.requested = 1] = "requested", t[t.approved = 2] = "approved", t[t.consumed = 3] = "consumed", t))(Vw || {}), _o = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.BLOCKED = 1] = "BLOCKED", t[t.ERROR = 2] = "ERROR", t))(_o || {}), $w = /* @__PURE__ */ ((t) => (t.EXTERNAL = "ext", t))($w || {}), Hw = /* @__PURE__ */ ((t) => (t.AWAITING = "AWAITING", t.PROMOTED = "PROMOTED", t.CANCELLED = "CANCELLED", t.STALE = "STALE", t))(Hw || {}), Ru = /* @__PURE__ */ ((t) => (t.ROLLBACK = "rollback", t.CD_MATERIALS = "cd-materials", t.IMAGE_PROMOTION = "image-promotion", t))(Ru || {}), Gw = /* @__PURE__ */ ((t) => (t.PENDING_APPROVAL = "PENDING_APPROVAL", t.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", t.CI = "CI", t.ENVIRONMENT = "ENVIRONMENT", t.WEBHOOK = "WEBHOOK", t.LINKED_CI = "LINKED-CI", t.CI_JOB = "CI-JOB", t.LINKED_CD = "LINKED-CD", t))(Gw || {}), E0 = /* @__PURE__ */ ((t) => (t.RESOURCE = "ELIGIBLE_RESOURCES", t.ALL = "ALL_RESOURCES", t))(E0 || {}), Yw = /* @__PURE__ */ ((t) => (t.MANDATORY_TAG = "mandatory-tags", t.MANDATORY_PLUGIN = "mandatory-plugins", t.SECURITY_SCAN = "security-scan", t))(Yw || {}), qr = /* @__PURE__ */ ((t) => (t.HELM = "helm", t.GITOPS = "argo_cd", t.MANIFEST_DOWNLOAD = "manifest_download", t.MANIFEST_PUSH = "manifest_push", t.FLUX = "flux", t))(qr || {}), Ww = /* @__PURE__ */ ((t) => (t[t.PASS = 1] = "PASS", t[t.FAIL = 0] = "FAIL", t))(Ww || {}), gr = /* @__PURE__ */ ((t) => (t.CI_PIPELINE = "CI_PIPELINE", t.CD_PIPELINE = "CD_PIPELINE", t.WEBHOOK = "WEBHOOK", t.LINKED_CD = "LINKED_CD", t))(gr || {}),
|
611
|
+
var Os = /* @__PURE__ */ ((t) => (t.PRECD = "PRECD", t.CD = "CD", t.POSTCD = "POSTCD", t.APPROVAL = "APPROVAL", t))(Os || {}), b0 = /* @__PURE__ */ ((t) => (t.specific = "SPECIFIC", t.any = "ANY", t.notConfigured = "NOT_CONFIGURED", t))(b0 || {}), Uw = /* @__PURE__ */ ((t) => (t.configMap = "configuration/config-map", t.configSecret = "configuration/config-secret", t.deploymentTemplate = "configuration/deployment-template", t.deploymentTrigger = "approval/deployment", t))(Uw || {}), Vw = /* @__PURE__ */ ((t) => (t[t.init = 0] = "init", t[t.requested = 1] = "requested", t[t.approved = 2] = "approved", t[t.consumed = 3] = "consumed", t))(Vw || {}), _o = /* @__PURE__ */ ((t) => (t[t.ALLOWED = 0] = "ALLOWED", t[t.BLOCKED = 1] = "BLOCKED", t[t.ERROR = 2] = "ERROR", t))(_o || {}), $w = /* @__PURE__ */ ((t) => (t.EXTERNAL = "ext", t))($w || {}), Hw = /* @__PURE__ */ ((t) => (t.AWAITING = "AWAITING", t.PROMOTED = "PROMOTED", t.CANCELLED = "CANCELLED", t.STALE = "STALE", t))(Hw || {}), Ru = /* @__PURE__ */ ((t) => (t.ROLLBACK = "rollback", t.CD_MATERIALS = "cd-materials", t.IMAGE_PROMOTION = "image-promotion", t))(Ru || {}), Gw = /* @__PURE__ */ ((t) => (t.PENDING_APPROVAL = "PENDING_APPROVAL", t.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", t.CI = "CI", t.ENVIRONMENT = "ENVIRONMENT", t.WEBHOOK = "WEBHOOK", t.LINKED_CI = "LINKED-CI", t.CI_JOB = "CI-JOB", t.LINKED_CD = "LINKED-CD", t))(Gw || {}), E0 = /* @__PURE__ */ ((t) => (t.RESOURCE = "ELIGIBLE_RESOURCES", t.ALL = "ALL_RESOURCES", t))(E0 || {}), Yw = /* @__PURE__ */ ((t) => (t.MANDATORY_TAG = "mandatory-tags", t.MANDATORY_PLUGIN = "mandatory-plugins", t.SECURITY_SCAN = "security-scan", t))(Yw || {}), qr = /* @__PURE__ */ ((t) => (t.HELM = "helm", t.GITOPS = "argo_cd", t.MANIFEST_DOWNLOAD = "manifest_download", t.MANIFEST_PUSH = "manifest_push", t.FLUX = "flux", t))(qr || {}), Ww = /* @__PURE__ */ ((t) => (t[t.PASS = 1] = "PASS", t[t.FAIL = 0] = "FAIL", t))(Ww || {}), gr = /* @__PURE__ */ ((t) => (t.CI_PIPELINE = "CI_PIPELINE", t.CD_PIPELINE = "CD_PIPELINE", t.WEBHOOK = "WEBHOOK", t.LINKED_CD = "LINKED_CD", t))(gr || {}), Ln = /* @__PURE__ */ ((t) => (t.GIT = "GIT", t.CI = "CI", t.WEBHOOK = "WEBHOOK", t.PRE_CD = "PRECD", t.CD = "CD", t.POST_CD = "POSTCD", t))(Ln || {}), Io = /* @__PURE__ */ ((t) => (t.LEFT = "left", t.RIGHT = "right", t))(Io || {}), ku = /* @__PURE__ */ ((t) => (t.SEQUENTIAL = "SEQUENTIAL", t.PARALLEL = "PARALLEL", t))(ku || {});
|
612
612
|
const zm = {
|
613
613
|
100: "Continue",
|
614
614
|
101: "Switching Protocols",
|
@@ -1259,7 +1259,7 @@ const yA = {
|
|
1259
1259
|
onClick: n,
|
1260
1260
|
...r
|
1261
1261
|
}) => t === ko.link ? /* @__PURE__ */ a.jsx(
|
1262
|
-
|
1262
|
+
qn,
|
1263
1263
|
{
|
1264
1264
|
...e,
|
1265
1265
|
...r,
|
@@ -1696,7 +1696,7 @@ const yA = {
|
|
1696
1696
|
}
|
1697
1697
|
);
|
1698
1698
|
};
|
1699
|
-
var PA = /* @__PURE__ */ ((t) => (t.PUBLISHED_ONLY = "PublishedOnly", t.DRAFT_ONLY = "DraftOnly", t.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", t.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", t.DEFAULT_VERSION = "DefaultVersion", t))(PA || {}), no = /* @__PURE__ */ ((t) => (t[t.Init = 1] = "Init", t[t.Discarded = 2] = "Discarded", t[t.Published = 3] = "Published", t[t.AwaitApproval = 4] = "AwaitApproval", t))(no || {}), MA = /* @__PURE__ */ ((t) => (t[t.Add = 1] = "Add", t[t.Update = 2] = "Update", t[t.Delete = 3] = "Delete", t))(MA || {}), Fe = /* @__PURE__ */ ((t) => (t.Internal = "", t.KubernetesConfigMap = "KubernetesConfigMap", t.KubernetesSecret = "KubernetesSecret", t.AWSSecretsManager = "AWSSecretsManager", t.AWSSystemManager = "AWSSystemManager", t.HashiCorpVault = "HashiCorpVault", t.ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager", t.ESO_AWSSecretsManager = "ESO_AWSSecretsManager", t.ESO_AzureSecretsManager = "ESO_AzureSecretsManager", t.ESO_HashiCorpVault = "ESO_HashiCorpVault", t))(Fe || {}), Ds = /* @__PURE__ */ ((t) => (t.ConfigMap = "ConfigMap", t.Secret = "Secret", t.DeploymentTemplate = "Deployment Template", t.PipelineStrategy = "Pipeline Strategy", t))(Ds || {}), Mu = /* @__PURE__ */ ((t) => (t[t.DefaultVersions = 1] = "DefaultVersions", t[t.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", t[t.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", t[t.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", t))(Mu || {}), At = /* @__PURE__ */ ((t) => (t.ConfigMap = "configmap", t.Secret = "secrets", t.DeploymentTemplate = "deployment-template", t.Manifest = "manifest", t.PipelineStrategy = "pipeline-strategy", t))(At || {}),
|
1699
|
+
var PA = /* @__PURE__ */ ((t) => (t.PUBLISHED_ONLY = "PublishedOnly", t.DRAFT_ONLY = "DraftOnly", t.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", t.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", t.DEFAULT_VERSION = "DefaultVersion", t))(PA || {}), no = /* @__PURE__ */ ((t) => (t[t.Init = 1] = "Init", t[t.Discarded = 2] = "Discarded", t[t.Published = 3] = "Published", t[t.AwaitApproval = 4] = "AwaitApproval", t))(no || {}), MA = /* @__PURE__ */ ((t) => (t[t.Add = 1] = "Add", t[t.Update = 2] = "Update", t[t.Delete = 3] = "Delete", t))(MA || {}), Fe = /* @__PURE__ */ ((t) => (t.Internal = "", t.KubernetesConfigMap = "KubernetesConfigMap", t.KubernetesSecret = "KubernetesSecret", t.AWSSecretsManager = "AWSSecretsManager", t.AWSSystemManager = "AWSSystemManager", t.HashiCorpVault = "HashiCorpVault", t.ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager", t.ESO_AWSSecretsManager = "ESO_AWSSecretsManager", t.ESO_AzureSecretsManager = "ESO_AzureSecretsManager", t.ESO_HashiCorpVault = "ESO_HashiCorpVault", t))(Fe || {}), Ds = /* @__PURE__ */ ((t) => (t.ConfigMap = "ConfigMap", t.Secret = "Secret", t.DeploymentTemplate = "Deployment Template", t.PipelineStrategy = "Pipeline Strategy", t))(Ds || {}), Mu = /* @__PURE__ */ ((t) => (t[t.DefaultVersions = 1] = "DefaultVersions", t[t.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", t[t.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", t[t.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", t))(Mu || {}), At = /* @__PURE__ */ ((t) => (t.ConfigMap = "configmap", t.Secret = "secrets", t.DeploymentTemplate = "deployment-template", t.Manifest = "manifest", t.PipelineStrategy = "pipeline-strategy", t))(At || {}), $n = /* @__PURE__ */ ((t) => (t[t.ConfigMap = 1] = "ConfigMap", t[t.Secret = 2] = "Secret", t))($n || {}), od = /* @__PURE__ */ ((t) => (t.BASE = "", t.INHERITED = "INHERITING", t.OVERRIDDEN = "OVERRIDDEN", t.ENV = "ENV", t.UNPUBLISHED = "UNPUBLISHED", t))(od || {}), I0 = /* @__PURE__ */ ((t) => (t.DATA = "data", t.SAMPLE = "sample", t))(I0 || {});
|
1700
1700
|
const R0 = (t) => {
|
1701
1701
|
const e = re(null), [s, n] = R(!1), r = t.theme === id.white, i = (E) => {
|
1702
1702
|
E.keyCode === 27 && l(E);
|
@@ -1718,8 +1718,8 @@ const R0 = (t) => {
|
|
1718
1718
|
infoTextHeading: T,
|
1719
1719
|
hideHeading: k,
|
1720
1720
|
infoText: N,
|
1721
|
-
showCloseButton:
|
1722
|
-
additionalContent:
|
1721
|
+
showCloseButton: O,
|
1722
|
+
additionalContent: I,
|
1723
1723
|
documentationLink: D,
|
1724
1724
|
documentationLinkText: $
|
1725
1725
|
} = t;
|
@@ -1738,10 +1738,10 @@ const R0 = (t) => {
|
|
1738
1738
|
onError: w
|
1739
1739
|
}
|
1740
1740
|
) : E && /* @__PURE__ */ a.jsx("div", { className: `icon-dim-${S || 20} mr-6`, children: /* @__PURE__ */ a.jsx(E, { className: `icon-dim-${S || 20} ${C || ""}` }) }),
|
1741
|
-
A && /* @__PURE__ */ a.jsx("span", { className: `fs-14 fw-6 lh-20 ${
|
1741
|
+
A && /* @__PURE__ */ a.jsx("span", { className: `fs-14 fw-6 lh-20 ${O ? "mr-12" : ""}`, children: A }),
|
1742
1742
|
y && /* @__PURE__ */ a.jsx("div", { className: "icon-dim-20 cursor", onClick: c, children: /* @__PURE__ */ a.jsx(Ri, { className: "icon-dim-20" }) }),
|
1743
|
-
|
1744
|
-
|
1743
|
+
O && /* @__PURE__ */ a.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ a.jsx(
|
1744
|
+
Tn,
|
1745
1745
|
{
|
1746
1746
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "fcn-0"}`,
|
1747
1747
|
onClick: l
|
@@ -1770,11 +1770,11 @@ const R0 = (t) => {
|
|
1770
1770
|
N && /* @__PURE__ */ a.jsx(
|
1771
1771
|
"div",
|
1772
1772
|
{
|
1773
|
-
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${r ? "p-12" : `pl-20 pr-20 pt-4 ${
|
1773
|
+
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${r ? "p-12" : `pl-20 pr-20 pt-4 ${I && D ? "pb-12" : "pb-20"}`}`,
|
1774
1774
|
children: N
|
1775
1775
|
}
|
1776
1776
|
),
|
1777
|
-
|
1777
|
+
I,
|
1778
1778
|
D && /* @__PURE__ */ a.jsx("div", { className: "pl-12 pb-12", children: /* @__PURE__ */ a.jsxs(
|
1779
1779
|
"a",
|
1780
1780
|
{
|
@@ -1851,8 +1851,8 @@ const R0 = (t) => {
|
|
1851
1851
|
)
|
1852
1852
|
}
|
1853
1853
|
);
|
1854
|
-
var M = /* @__PURE__ */ ((t) => (t.CPU_LIMIT = "cpu_limit", t.CPU_REQUEST = "cpu_request", t.MEMORY_LIMIT = "memory_limit", t.MEMORY_REQUEST = "memory_request", t.BUILD_TIMEOUT = "timeout", t.NODE_SELECTOR = "node_selector", t.TOLERANCE = "tolerations", t.CONFIG_MAP = "cm", t.SECRET = "cs", t))(M || {}), Is = /* @__PURE__ */ ((t) => (t.NAME = "name", t.DESCRIPTION = "description", t))(Is || {}), ke = /* @__PURE__ */ ((t) => (t.CPU = "cpu", t.MEMORY = "memory", t.BUILD_TIMEOUT = "timeout", t.NODE_SELECTOR = "node selector", t.TOLERANCE = "tolerance", t.CONFIG_MAP = "cm", t.SECRET = "cs", t))(ke || {}), k0 = /* @__PURE__ */ ((t) => (t.GLOBAL = "GLOBAL", t.NORMAL = "NORMAL", t.CUSTOM = "CUSTOM", t))(k0 || {}),
|
1855
|
-
const
|
1854
|
+
var M = /* @__PURE__ */ ((t) => (t.CPU_LIMIT = "cpu_limit", t.CPU_REQUEST = "cpu_request", t.MEMORY_LIMIT = "memory_limit", t.MEMORY_REQUEST = "memory_request", t.BUILD_TIMEOUT = "timeout", t.NODE_SELECTOR = "node_selector", t.TOLERANCE = "tolerations", t.CONFIG_MAP = "cm", t.SECRET = "cs", t))(M || {}), Is = /* @__PURE__ */ ((t) => (t.NAME = "name", t.DESCRIPTION = "description", t))(Is || {}), ke = /* @__PURE__ */ ((t) => (t.CPU = "cpu", t.MEMORY = "memory", t.BUILD_TIMEOUT = "timeout", t.NODE_SELECTOR = "node selector", t.TOLERANCE = "tolerance", t.CONFIG_MAP = "cm", t.SECRET = "cs", t))(ke || {}), k0 = /* @__PURE__ */ ((t) => (t.GLOBAL = "GLOBAL", t.NORMAL = "NORMAL", t.CUSTOM = "CUSTOM", t))(k0 || {}), Vn = /* @__PURE__ */ ((t) => (t.EXISTS = "Exists", t.EQUALS = "Equal", t))(Vn || {}), L0 = /* @__PURE__ */ ((t) => (t.NO_EXECUTE = "NoExecute", t.NO_SCHEDULE = "NoSchedule", t.PREFER_NO_SCHEDULE = "PreferNoSchedule", t))(L0 || {}), Ul = /* @__PURE__ */ ((t) => (t.KUBERNETES = "kubernetes", t.DOCKER_CONTAINER = "docker-container", t))(Ul || {}), Lo = /* @__PURE__ */ ((t) => (t.TARGET_PLATFORM = "target_platform", t))(Lo || {}), Bu = /* @__PURE__ */ ((t) => (t.KEY = "KEY", t.VALUE = "VALUE", t))(Bu || {}), Fu = /* @__PURE__ */ ((t) => (t.KEY = "KEY", t.OPERATOR = "OPERATOR", t.VALUE = "VALUE", t.EFFECT = "EFFECT", t))(Fu || {}), Kt = /* @__PURE__ */ ((t) => (t.ADD_TARGET_PLATFORM = "add_target_platform", t.REMOVE_TARGET_PLATFORM = "remove_target_platform", t.RENAME_TARGET_PLATFORM = "rename_target_platform", t.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", t.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", t.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", t.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", t.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", t.ADD_TOLERANCE_ITEM = "add_tolerance_item", t.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", t.ADD_CM_CS_ITEM = "add_cm_cs_item", t.SYNC_CM_CS_ITEM = "sync_cm_cs_item", t.DELETE_CM_CS_ITEM = "delete_cm_cs_item", t))(Kt || {}), D0 = /* @__PURE__ */ ((t) => (t.ALPHA1 = "alpha1", t))(D0 || {});
|
1855
|
+
const Hn = {
|
1856
1856
|
// Will not enforce any decimal specification on input field
|
1857
1857
|
STEP: "any",
|
1858
1858
|
MIN: 0,
|
@@ -1876,8 +1876,8 @@ const Gn = {
|
|
1876
1876
|
VALIDATE_REQUEST_LIMIT: {
|
1877
1877
|
REQUEST_LESS_THAN_LIMIT: "Request should be less than or equal to limit.",
|
1878
1878
|
CAN_NOT_COMPUTE: "Request and limit value diff are too high to validate.",
|
1879
|
-
REQUEST_DECIMAL_PLACES: `Request should be upto ${
|
1880
|
-
LIMIT_DECIMAL_PLACES: `Limit should be upto ${
|
1879
|
+
REQUEST_DECIMAL_PLACES: `Request should be upto ${Hn.DECIMAL_PLACES} decimal places.`,
|
1880
|
+
LIMIT_DECIMAL_PLACES: `Limit should be upto ${Hn.DECIMAL_PLACES} decimal places.`
|
1881
1881
|
},
|
1882
1882
|
getInvalidActionMessage: (t) => `Invalid action type: ${t}`,
|
1883
1883
|
getSubmitSuccessMessage: (t, e) => `${t} profile is ${e ? "updated" : "created"}`,
|
@@ -2008,7 +2008,7 @@ const Gn = {
|
|
2008
2008
|
keyToPersist: "limit",
|
2009
2009
|
keyToPersistConfigType: M.MEMORY_LIMIT
|
2010
2010
|
}
|
2011
|
-
}, VA = L0.NO_SCHEDULE, $A =
|
2011
|
+
}, VA = L0.NO_SCHEDULE, $A = Vn.EQUALS, HA = {
|
2012
2012
|
[M.BUILD_TIMEOUT]: !0,
|
2013
2013
|
[M.CONFIG_MAP]: !0,
|
2014
2014
|
[M.SECRET]: !0
|
@@ -2016,14 +2016,14 @@ const Gn = {
|
|
2016
2016
|
[M.CONFIG_MAP]: !0,
|
2017
2017
|
[M.SECRET]: !0
|
2018
2018
|
}, P0 = {
|
2019
|
-
[M.CONFIG_MAP]:
|
2020
|
-
[M.SECRET]:
|
2019
|
+
[M.CONFIG_MAP]: $n.ConfigMap,
|
2020
|
+
[M.SECRET]: $n.Secret
|
2021
2021
|
}, ht = {
|
2022
|
-
[
|
2023
|
-
[
|
2022
|
+
[$n.ConfigMap]: M.CONFIG_MAP,
|
2023
|
+
[$n.Secret]: M.SECRET
|
2024
2024
|
}, y6 = {
|
2025
|
-
[
|
2026
|
-
[
|
2025
|
+
[$n.ConfigMap]: ke.CONFIG_MAP,
|
2026
|
+
[$n.Secret]: ke.SECRET
|
2027
2027
|
}, GA = !0, N6 = {
|
2028
2028
|
activate_cm: !0,
|
2029
2029
|
activate_cs: !0,
|
@@ -2079,7 +2079,7 @@ const Gn = {
|
|
2079
2079
|
)
|
2080
2080
|
] });
|
2081
2081
|
};
|
2082
|
-
var
|
2082
|
+
var Gn = /* @__PURE__ */ ((t) => (t.DEFAULT = "default", t.BORDER_LESS = "border-less", t))(Gn || {});
|
2083
2083
|
const np = {
|
2084
2084
|
[V.small]: "12px",
|
2085
2085
|
[V.medium]: "13px",
|
@@ -2118,7 +2118,7 @@ const np = {
|
|
2118
2118
|
}
|
2119
2119
|
}, op = (t) => {
|
2120
2120
|
switch (t) {
|
2121
|
-
case
|
2121
|
+
case Gn.BORDER_LESS:
|
2122
2122
|
return {
|
2123
2123
|
control: () => ({
|
2124
2124
|
backgroundColor: "transparent",
|
@@ -2566,7 +2566,7 @@ const qA = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
|
|
2566
2566
|
optionListError: u,
|
2567
2567
|
reloadOptionList: h,
|
2568
2568
|
menuPosition: f = "fixed",
|
2569
|
-
variant: m =
|
2569
|
+
variant: m = Gn.DEFAULT,
|
2570
2570
|
disableDescriptionEllipsis: p = !1,
|
2571
2571
|
multiSelectProps: _ = {},
|
2572
2572
|
isMulti: g,
|
@@ -2582,8 +2582,8 @@ const qA = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
|
|
2582
2582
|
isCreatable: T = !1,
|
2583
2583
|
onCreateOption: k,
|
2584
2584
|
closeMenuOnSelect: N = !1,
|
2585
|
-
shouldShowNoOptionsMessage:
|
2586
|
-
shouldRenderTextArea:
|
2585
|
+
shouldShowNoOptionsMessage: O = !0,
|
2586
|
+
shouldRenderTextArea: I = !1,
|
2587
2587
|
onKeyDown: D,
|
2588
2588
|
shouldHideMenu: $ = !1,
|
2589
2589
|
...F
|
@@ -2612,13 +2612,13 @@ const qA = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
|
|
2612
2612
|
}),
|
2613
2613
|
[t, De, d, m, B, S]
|
2614
2614
|
), Hs = ($e) => {
|
2615
|
-
const
|
2616
|
-
return T && !!
|
2615
|
+
const wn = $e?.trim();
|
2616
|
+
return T && !!wn && !pi(
|
2617
2617
|
we,
|
2618
|
-
|
2618
|
+
wn,
|
2619
2619
|
null,
|
2620
2620
|
U
|
2621
|
-
) && !pi(Ve,
|
2621
|
+
) && !pi(Ve, wn, null, U);
|
2622
2622
|
}, Rd = dt(
|
2623
2623
|
($e) => /* @__PURE__ */ a.jsx(
|
2624
2624
|
e1,
|
@@ -2635,12 +2635,12 @@ const qA = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
|
|
2635
2635
|
), te = ($e) => /* @__PURE__ */ a.jsx(r1, { ...$e, getIsOptionValid: q }), Le = dt(
|
2636
2636
|
($e) => /* @__PURE__ */ a.jsx(o1, { ...$e, isGroupHeadingSelectable: B }),
|
2637
2637
|
[B]
|
2638
|
-
), Ee = () => u ? /* @__PURE__ */ a.jsx(Lr, { reload: h }) :
|
2639
|
-
const
|
2640
|
-
|
2641
|
-
}, ps = ($e,
|
2638
|
+
), Ee = () => u ? /* @__PURE__ */ a.jsx(Lr, { reload: h }) : O ? /* @__PURE__ */ a.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No options" }) : null, it = ($e) => /* @__PURE__ */ a.jsx(he, { content: l, placement: "top", className: "default-tt", arrow: !1, children: $e }), yt = ($e) => {
|
2639
|
+
const wn = $e?.trim();
|
2640
|
+
wn && k?.(wn);
|
2641
|
+
}, ps = ($e, wn) => {
|
2642
2642
|
if (F.onInputChange) {
|
2643
|
-
F.onInputChange($e,
|
2643
|
+
F.onInputChange($e, wn);
|
2644
2644
|
return;
|
2645
2645
|
}
|
2646
2646
|
_e($e);
|
@@ -2737,9 +2737,9 @@ const qA = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
|
|
2737
2737
|
icon: e,
|
2738
2738
|
showSelectedOptionIcon: ae,
|
2739
2739
|
onKeyDown: Ld,
|
2740
|
-
shouldRenderTextArea:
|
2740
|
+
shouldRenderTextArea: I,
|
2741
2741
|
customDisplayText: pe,
|
2742
|
-
...
|
2742
|
+
...I ? {} : { onFocus: Xy },
|
2743
2743
|
onBlur: Zy,
|
2744
2744
|
onChange: Qy,
|
2745
2745
|
controlShouldRenderValue: ce,
|
@@ -3178,7 +3178,7 @@ const up = () => ({
|
|
3178
3178
|
parseSearchParams: e,
|
3179
3179
|
localStorageKey: s
|
3180
3180
|
} = {}) => {
|
3181
|
-
const n =
|
3181
|
+
const n = Jn(), r = Xn(), i = re(!1), l = (() => {
|
3182
3182
|
const A = new URLSearchParams(n.search);
|
3183
3183
|
if (!i.current && s)
|
3184
3184
|
if (n.search)
|
@@ -3199,14 +3199,14 @@ const up = () => ({
|
|
3199
3199
|
}
|
3200
3200
|
return A;
|
3201
3201
|
})(), c = (A) => e ? e(A) : {}, { pageSize: d, pageNumber: u, searchKey: h, sortBy: f, sortOrder: m, parsedParams: p } = le(() => {
|
3202
|
-
const A = l.get(fp), y = l.get(Md), T = l.get(mp), k = l.get(gp),
|
3202
|
+
const A = l.get(fp), y = l.get(Md), T = l.get(mp), k = l.get(gp), O = l.get(pp) || t || "", I = Object.values(Ne).includes(k) ? k : Ne.ASC, D = c(l);
|
3203
3203
|
return {
|
3204
3204
|
pageSize: Number(A) || zr,
|
3205
3205
|
pageNumber: Number(y) || Jr,
|
3206
3206
|
searchKey: T || "",
|
3207
|
-
sortBy:
|
3207
|
+
sortBy: O,
|
3208
3208
|
// sort order should only be applied if the key is available
|
3209
|
-
sortOrder:
|
3209
|
+
sortOrder: O ? I : "",
|
3210
3210
|
parsedParams: D
|
3211
3211
|
};
|
3212
3212
|
}, [l]), _ = d * (u - 1), g = (A, y) => {
|
@@ -3496,8 +3496,8 @@ const up = () => ({
|
|
3496
3496
|
"data-testid": `${t}-input-field`,
|
3497
3497
|
name: t,
|
3498
3498
|
type: "number",
|
3499
|
-
step:
|
3500
|
-
min:
|
3499
|
+
step: Hn.STEP,
|
3500
|
+
min: Hn.MIN,
|
3501
3501
|
className: `form__input dc__no-right-border dc__no-right-radius ${u ? "dc__disabled" : ""}`,
|
3502
3502
|
placeholder: s,
|
3503
3503
|
value: Hl(c) ? "" : c,
|
@@ -3916,7 +3916,7 @@ const up = () => ({
|
|
3916
3916
|
messages: ["Value is required"]
|
3917
3917
|
};
|
3918
3918
|
const e = [];
|
3919
|
-
return t.length >=
|
3919
|
+
return t.length >= Hn.MAX_LABEL_VALUE_LENGTH && e.push(`Value should be less than ${Hn.MAX_LABEL_VALUE_LENGTH} characters`), Ls.START_END_ALPHANUMERIC.test(t) || e.push("Value should start and end with alphanumeric characters"), Ls.ALPHANUMERIC_WITH_SPECIAL_CHAR.test(t) || e.push("Value should contain only alphanumeric characters and special characters"), e.length > 0 ? {
|
3920
3920
|
isValid: !1,
|
3921
3921
|
messages: e
|
3922
3922
|
} : {
|
@@ -3954,12 +3954,12 @@ const up = () => ({
|
|
3954
3954
|
}), d || c)
|
3955
3955
|
return l;
|
3956
3956
|
const u = String(t.value).split(".")[1]?.length ?? 0, h = String(e.value).split(".")[1]?.length ?? 0;
|
3957
|
-
if (u >
|
3957
|
+
if (u > Hn.DECIMAL_PLACES)
|
3958
3958
|
return l.request = {
|
3959
3959
|
message: Et.VALIDATE_REQUEST_LIMIT.REQUEST_DECIMAL_PLACES,
|
3960
3960
|
isValid: !1
|
3961
3961
|
}, l;
|
3962
|
-
if (h >
|
3962
|
+
if (h > Hn.DECIMAL_PLACES)
|
3963
3963
|
return l.limit = {
|
3964
3964
|
message: Et.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
|
3965
3965
|
isValid: !1
|
@@ -4045,7 +4045,7 @@ const up = () => ({
|
|
4045
4045
|
value: y,
|
4046
4046
|
unit: T
|
4047
4047
|
};
|
4048
|
-
const { keyToPersist: k, keyToPersistConfigType: N } = UA[b], { request:
|
4048
|
+
const { keyToPersist: k, keyToPersistConfigType: N } = UA[b], { request: O, limit: I } = W1({
|
4049
4049
|
request: {
|
4050
4050
|
value: y,
|
4051
4051
|
unit: T
|
@@ -4061,10 +4061,10 @@ const up = () => ({
|
|
4061
4061
|
unitsMap: o.configurationUnits[b]
|
4062
4062
|
});
|
4063
4063
|
if (k === "limit") {
|
4064
|
-
C[N] =
|
4064
|
+
C[N] = I.message, C[b] = O.message;
|
4065
4065
|
break;
|
4066
4066
|
}
|
4067
|
-
C[b] =
|
4067
|
+
C[b] = I.message, C[N] = O.message;
|
4068
4068
|
break;
|
4069
4069
|
}
|
4070
4070
|
case M.BUILD_TIMEOUT: {
|
@@ -4110,8 +4110,8 @@ const up = () => ({
|
|
4110
4110
|
case "activate_cs":
|
4111
4111
|
case "de_activate_cm":
|
4112
4112
|
case "de_activate_cs": {
|
4113
|
-
const { id: y, componentType: T } = E, k = ht[T], N = w[k].value,
|
4114
|
-
if (
|
4113
|
+
const { id: y, componentType: T } = E, k = ht[T], N = w[k].value, O = N.findIndex((D) => D.id === y);
|
4114
|
+
if (O === -1 || !N[O].canOverride) {
|
4115
4115
|
const D = "Unable to customize this CM/CS";
|
4116
4116
|
ze.showToast({
|
4117
4117
|
variant: Oe.error,
|
@@ -4119,12 +4119,12 @@ const up = () => ({
|
|
4119
4119
|
}), Ll(new Error(D));
|
4120
4120
|
return;
|
4121
4121
|
}
|
4122
|
-
const
|
4123
|
-
if (N[
|
4124
|
-
const $ = (A[k]?.value || []).find((F) => F.id === y) || N[
|
4125
|
-
N[
|
4122
|
+
const I = b === "activate_cm" || b === "activate_cs";
|
4123
|
+
if (N[O].isOverridden = I, I) {
|
4124
|
+
const $ = (A[k]?.value || []).find((F) => F.id === y) || N[O];
|
4125
|
+
N[O].useFormProps = $?.useFormProps, N[O].initialResponse = $?.initialResponse;
|
4126
4126
|
} else
|
4127
|
-
N[
|
4127
|
+
N[O].useFormProps = N[O].defaultValue, N[O].initialResponse = N[O].defaultValueInitialResponse;
|
4128
4128
|
C[ht[T]] && (delete C[ht[T]][y], Object.keys(C[ht[T]]).length === 0 && (C[ht[T]] = null));
|
4129
4129
|
break;
|
4130
4130
|
}
|
@@ -4170,19 +4170,19 @@ const up = () => ({
|
|
4170
4170
|
T,
|
4171
4171
|
_(v.configurations)
|
4172
4172
|
).message;
|
4173
|
-
const
|
4173
|
+
const O = o.fallbackPlatformConfigurationMap[T] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
|
4174
4174
|
o.fallbackPlatformConfigurationMap[gn];
|
4175
4175
|
if (v.configurations[T] = Object.entries(
|
4176
4176
|
N
|
4177
4177
|
).reduce(
|
4178
|
-
(
|
4179
|
-
const F =
|
4180
|
-
return
|
4178
|
+
(I, [D, $]) => {
|
4179
|
+
const F = O[D]?.defaultValue, G = $?.active ? {} : F;
|
4180
|
+
return I[D] = {
|
4181
4181
|
...$,
|
4182
4182
|
...G,
|
4183
4183
|
targetPlatform: T,
|
4184
4184
|
defaultValue: F
|
4185
|
-
},
|
4185
|
+
}, I;
|
4186
4186
|
},
|
4187
4187
|
{}
|
4188
4188
|
), k[y]) {
|
@@ -4231,20 +4231,20 @@ const up = () => ({
|
|
4231
4231
|
if (w[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
|
4232
4232
|
break;
|
4233
4233
|
const { id: y, key: T, value: k } = E, N = w[M.NODE_SELECTOR].value.find(
|
4234
|
-
(
|
4234
|
+
(I) => I.id === y
|
4235
4235
|
);
|
4236
4236
|
N ? (N.key = T, N.value = k) : w[M.NODE_SELECTOR].value.unshift({
|
4237
4237
|
id: y,
|
4238
4238
|
key: T,
|
4239
4239
|
value: k
|
4240
4240
|
});
|
4241
|
-
const
|
4242
|
-
(
|
4241
|
+
const O = w[M.NODE_SELECTOR].value.map(
|
4242
|
+
(I) => I.key
|
4243
4243
|
);
|
4244
|
-
w[M.NODE_SELECTOR].value.forEach((
|
4244
|
+
w[M.NODE_SELECTOR].value.forEach((I) => {
|
4245
4245
|
vp({
|
4246
|
-
selector:
|
4247
|
-
existingKeys:
|
4246
|
+
selector: I,
|
4247
|
+
existingKeys: O,
|
4248
4248
|
profileInputErrors: C
|
4249
4249
|
});
|
4250
4250
|
});
|
@@ -4273,17 +4273,17 @@ const up = () => ({
|
|
4273
4273
|
case Kt.EDIT_TOLERANCE_ITEM: {
|
4274
4274
|
if (w[M.TOLERANCE].key !== M.TOLERANCE)
|
4275
4275
|
break;
|
4276
|
-
const { id: y, key: T, effect: k, operator: N, value:
|
4276
|
+
const { id: y, key: T, effect: k, operator: N, value: O } = E, I = w[M.TOLERANCE].value.find(
|
4277
4277
|
(Y) => Y.id === y
|
4278
4278
|
);
|
4279
|
-
|
4279
|
+
I ? (I.key = T, I.effect = k, I.operator = N, I.value = O, N === Vn.EXISTS && delete I.value) : w[M.TOLERANCE].value.unshift({
|
4280
4280
|
id: y,
|
4281
4281
|
key: T,
|
4282
4282
|
effect: k,
|
4283
4283
|
operator: N,
|
4284
|
-
value:
|
4284
|
+
value: O
|
4285
4285
|
});
|
4286
|
-
const D = yf(T).messages, $ = N !==
|
4286
|
+
const D = yf(T).messages, $ = N !== Vn.EXISTS ? K0(O).messages : [], G = !(N === Vn.EXISTS ? !T : !T && !O) && (D.length > 0 || $.length > 0);
|
4287
4287
|
C[M.TOLERANCE]?.[y] || (C[M.TOLERANCE] || (C[M.TOLERANCE] = {}), C[M.TOLERANCE][y] = {}), C[M.TOLERANCE][y] = {
|
4288
4288
|
...D.length > 0 && { [Fu.KEY]: D },
|
4289
4289
|
...$.length > 0 && { [Fu.VALUE]: $ }
|
@@ -4310,15 +4310,15 @@ const up = () => ({
|
|
4310
4310
|
break;
|
4311
4311
|
}
|
4312
4312
|
case Kt.SYNC_CM_CS_ITEM: {
|
4313
|
-
const { id: y, value: T, hasError: k, componentType: N } = E,
|
4314
|
-
if (
|
4313
|
+
const { id: y, value: T, hasError: k, componentType: N } = E, O = w[ht[N]].value.findIndex((D) => D.id === y);
|
4314
|
+
if (O === -1) {
|
4315
4315
|
ze.showToast({
|
4316
4316
|
variant: Oe.error,
|
4317
4317
|
description: "ConfigMap does not exist"
|
4318
4318
|
}), Ll(new Error("ConfigMap does not exist"));
|
4319
4319
|
return;
|
4320
4320
|
}
|
4321
|
-
w[ht[N]].value[
|
4321
|
+
w[ht[N]].value[O].useFormProps = T, C[ht[N]] || (C[ht[N]] = {}), k ? C[ht[N]][y] = !0 : C[ht[N]][y] && delete C[ht[N]][y], Object.keys(
|
4322
4322
|
C[ht[N]]
|
4323
4323
|
).length === 0 && (C[ht[N]] = null);
|
4324
4324
|
break;
|
@@ -4415,13 +4415,13 @@ const up = () => ({
|
|
4415
4415
|
effect: r,
|
4416
4416
|
id: e ? _i() : null
|
4417
4417
|
};
|
4418
|
-
return i ===
|
4418
|
+
return i === Vn.EQUALS ? {
|
4419
4419
|
...l,
|
4420
|
-
operator:
|
4420
|
+
operator: Vn.EQUALS,
|
4421
4421
|
value: o
|
4422
4422
|
} : {
|
4423
4423
|
...l,
|
4424
|
-
operator:
|
4424
|
+
operator: Vn.EXISTS
|
4425
4425
|
};
|
4426
4426
|
}).filter((s) => s.key)
|
4427
4427
|
};
|
@@ -4703,7 +4703,7 @@ const dO = ({
|
|
4703
4703
|
children: e[0]
|
4704
4704
|
}
|
4705
4705
|
),
|
4706
|
-
/* @__PURE__ */ a.jsx(
|
4706
|
+
/* @__PURE__ */ a.jsx(qn, { to: `${Be.PERMISSION_GROUPS}/${t}`, className: "dc__ellipsis-right anchor cursor", children: e }),
|
4707
4707
|
/* @__PURE__ */ a.jsx("div", { className: "dc__ellipsis-right", children: s || "-" }),
|
4708
4708
|
u && /* @__PURE__ */ a.jsx(
|
4709
4709
|
d,
|
@@ -5383,7 +5383,7 @@ const OO = (t) => {
|
|
5383
5383
|
} catch {
|
5384
5384
|
return e;
|
5385
5385
|
}
|
5386
|
-
},
|
5386
|
+
}, Yn = (t) => {
|
5387
5387
|
t ? (document.body.style.overflowY = "hidden", document.body.style.height = "100vh", document.documentElement.style.overflow = "initial") : (document.body.style.overflowY = null, document.body.style.height = null, document.documentElement.style.overflow = null);
|
5388
5388
|
}, Np = ({ identifier: t, preventFocus: e }) => {
|
5389
5389
|
const s = document.getElementById(t);
|
@@ -5745,7 +5745,7 @@ const qO = {
|
|
5745
5745
|
closeButton: ({ closeToast: t }) => /* @__PURE__ */ a.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ a.jsx(
|
5746
5746
|
be,
|
5747
5747
|
{
|
5748
|
-
icon: /* @__PURE__ */ a.jsx(
|
5748
|
+
icon: /* @__PURE__ */ a.jsx(Tn, { className: "fcn-0" }),
|
5749
5749
|
onClick: t,
|
5750
5750
|
dataTestId: "close-toast",
|
5751
5751
|
ariaLabel: "Close toast",
|
@@ -6085,19 +6085,19 @@ const ZO = "bulk-selection-pop-up-menu", Ud = {
|
|
6085
6085
|
] }) : null, oI = ({ targetPlatforms: t }) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-4 cursor-text", onClick: Re, children: [
|
6086
6086
|
/* @__PURE__ */ a.jsx("h6", { className: "m-0 fw-6 lh-18 fs-12", children: "Target platforms" }),
|
6087
6087
|
/* @__PURE__ */ a.jsx("ul", { className: "pl-12 m-0 dc__overflow-auto mxh-140", children: t.map(({ name: e }) => /* @__PURE__ */ a.jsx("li", { className: "dc__word-break lh-18", children: e }, e)) })
|
6088
|
-
] }), sb = ({ targetPlatforms: t, children: e }) => /* @__PURE__ */ a.jsx(Te, { content: /* @__PURE__ */ a.jsx(oI, { targetPlatforms: t }), alwaysShowTippyOnHover: !0, interactive: !0, children: e }),
|
6088
|
+
] }), sb = ({ targetPlatforms: t, children: e }) => /* @__PURE__ */ a.jsx(Te, { content: /* @__PURE__ */ a.jsx(oI, { targetPlatforms: t }), alwaysShowTippyOnHover: !0, interactive: !0, children: e }), jn = {
|
6089
6089
|
ACTIVE: "Active on",
|
6090
6090
|
VIRTUAL_ENV: "Last deployed on",
|
6091
6091
|
FAILED: "Last deployment failed on",
|
6092
6092
|
DEPLOYING: "Deploying on"
|
6093
6093
|
}, aI = (t) => {
|
6094
6094
|
switch (t) {
|
6095
|
-
case
|
6096
|
-
case
|
6095
|
+
case jn.VIRTUAL_ENV:
|
6096
|
+
case jn.ACTIVE:
|
6097
6097
|
return { Icon: /* @__PURE__ */ a.jsx($x, { className: "icon-dim-16 mr-4 scg-5" }), stateClassName: "bcg-1 eg-2" };
|
6098
|
-
case
|
6098
|
+
case jn.FAILED:
|
6099
6099
|
return { Icon: /* @__PURE__ */ a.jsx(FN, { className: "icon-dim-16 mr-4" }), stateClassName: "bcr-1 er-2" };
|
6100
|
-
case
|
6100
|
+
case jn.DEPLOYING:
|
6101
6101
|
return {
|
6102
6102
|
Icon: /* @__PURE__ */ a.jsx("div", { className: "dc__app-summary__icon icon-dim-16 mr-6 progressing progressing--node" }),
|
6103
6103
|
stateClassName: "bcy-1 ey-2"
|
@@ -6128,7 +6128,7 @@ const ZO = "bulk-selection-pop-up-menu", Ud = {
|
|
6128
6128
|
additionalInfo: d,
|
6129
6129
|
targetPlatforms: u
|
6130
6130
|
}) => {
|
6131
|
-
const h = () => l ?
|
6131
|
+
const h = () => l ? jn.VIRTUAL_ENV : jn.ACTIVE, f = () => {
|
6132
6132
|
if (c?.length) {
|
6133
6133
|
const g = c.length === 1 ? c[0] : `${c.length} environments`;
|
6134
6134
|
return /* @__PURE__ */ a.jsx(
|
@@ -6152,8 +6152,8 @@ const ZO = "bulk-selection-pop-up-menu", Ud = {
|
|
6152
6152
|
d
|
6153
6153
|
] }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
6154
6154
|
f(),
|
6155
|
-
s === ka.PROGRESSING && /* @__PURE__ */ a.jsx(Gi, { envStateText:
|
6156
|
-
(s === ka.DEGRADED || s === ka.FAILED) && /* @__PURE__ */ a.jsx(Gi, { envStateText:
|
6155
|
+
s === ka.PROGRESSING && /* @__PURE__ */ a.jsx(Gi, { envStateText: jn.DEPLOYING, title: n }),
|
6156
|
+
(s === ka.DEGRADED || s === ka.FAILED) && /* @__PURE__ */ a.jsx(Gi, { envStateText: jn.FAILED, title: n }),
|
6157
6157
|
o && /* @__PURE__ */ a.jsx(
|
6158
6158
|
zc,
|
6159
6159
|
{
|
@@ -6296,7 +6296,7 @@ const uI = {
|
|
6296
6296
|
IMAGE_SCAN: "Image Scan",
|
6297
6297
|
CODE_SCAN: "Code Scan",
|
6298
6298
|
KUBERNETES_MANIFEST: "Kubernetes Manifest"
|
6299
|
-
},
|
6299
|
+
}, An = {
|
6300
6300
|
VULNERABILITIES: "Vulnerability",
|
6301
6301
|
LICENSE: "License Risks",
|
6302
6302
|
MISCONFIGURATIONS: "Misconfigurations",
|
@@ -7459,7 +7459,7 @@ const uI = {
|
|
7459
7459
|
isExpanded: !0,
|
7460
7460
|
children: [
|
7461
7461
|
{
|
7462
|
-
label:
|
7462
|
+
label: An.VULNERABILITIES,
|
7463
7463
|
value: {
|
7464
7464
|
category: oe.IMAGE_SCAN,
|
7465
7465
|
subCategory: se.VULNERABILITIES
|
@@ -7467,7 +7467,7 @@ const uI = {
|
|
7467
7467
|
},
|
7468
7468
|
...r ? [
|
7469
7469
|
{
|
7470
|
-
label:
|
7470
|
+
label: An.LICENSE,
|
7471
7471
|
value: {
|
7472
7472
|
category: oe.IMAGE_SCAN,
|
7473
7473
|
subCategory: se.LICENSE
|
@@ -7483,28 +7483,28 @@ const uI = {
|
|
7483
7483
|
isExpanded: !0,
|
7484
7484
|
children: [
|
7485
7485
|
{
|
7486
|
-
label:
|
7486
|
+
label: An.VULNERABILITIES,
|
7487
7487
|
value: {
|
7488
7488
|
category: oe.CODE_SCAN,
|
7489
7489
|
subCategory: se.VULNERABILITIES
|
7490
7490
|
}
|
7491
7491
|
},
|
7492
7492
|
{
|
7493
|
-
label:
|
7493
|
+
label: An.LICENSE,
|
7494
7494
|
value: {
|
7495
7495
|
category: oe.CODE_SCAN,
|
7496
7496
|
subCategory: se.LICENSE
|
7497
7497
|
}
|
7498
7498
|
},
|
7499
7499
|
{
|
7500
|
-
label:
|
7500
|
+
label: An.MISCONFIGURATIONS,
|
7501
7501
|
value: {
|
7502
7502
|
category: oe.CODE_SCAN,
|
7503
7503
|
subCategory: se.MISCONFIGURATIONS
|
7504
7504
|
}
|
7505
7505
|
},
|
7506
7506
|
{
|
7507
|
-
label:
|
7507
|
+
label: An.EXPOSED_SECRETS,
|
7508
7508
|
value: {
|
7509
7509
|
category: oe.CODE_SCAN,
|
7510
7510
|
subCategory: se.EXPOSED_SECRETS
|
@@ -7519,14 +7519,14 @@ const uI = {
|
|
7519
7519
|
isExpanded: !0,
|
7520
7520
|
children: [
|
7521
7521
|
{
|
7522
|
-
label:
|
7522
|
+
label: An.MISCONFIGURATIONS,
|
7523
7523
|
value: {
|
7524
7524
|
category: oe.KUBERNETES_MANIFEST,
|
7525
7525
|
subCategory: se.MISCONFIGURATIONS
|
7526
7526
|
}
|
7527
7527
|
},
|
7528
7528
|
{
|
7529
|
-
label:
|
7529
|
+
label: An.EXPOSED_SECRETS,
|
7530
7530
|
value: {
|
7531
7531
|
category: oe.KUBERNETES_MANIFEST,
|
7532
7532
|
subCategory: se.EXPOSED_SECRETS
|
@@ -8309,11 +8309,11 @@ const QI = (t) => {
|
|
8309
8309
|
const s = le(() => e, [e]);
|
8310
8310
|
return /* @__PURE__ */ a.jsx(fb.Provider, { value: s, children: t });
|
8311
8311
|
}, mb = "themePreference", pb = "(prefers-color-scheme: dark)";
|
8312
|
-
var
|
8312
|
+
var Wn = /* @__PURE__ */ ((t) => (t.light = "light", t.dark = "dark", t))(Wn || {});
|
8313
8313
|
const _n = {
|
8314
|
-
...
|
8314
|
+
...Wn,
|
8315
8315
|
auto: "auto"
|
8316
|
-
}, gb = () => window.matchMedia && window.matchMedia(pb).matches ?
|
8316
|
+
}, gb = () => window.matchMedia && window.matchMedia(pb).matches ? Wn.dark : Wn.light, _b = (t) => {
|
8317
8317
|
localStorage.setItem(mb, t);
|
8318
8318
|
}, xb = ({ appTheme: t, themePreference: e }) => {
|
8319
8319
|
const s = e === _n.auto ? `system-${t}` : t;
|
@@ -8324,7 +8324,7 @@ const _n = {
|
|
8324
8324
|
}, eR = () => {
|
8325
8325
|
if (!window._env_.FEATURE_EXPERIMENTAL_THEMING_ENABLE)
|
8326
8326
|
return {
|
8327
|
-
appTheme:
|
8327
|
+
appTheme: Wn.light,
|
8328
8328
|
themePreference: _n.light
|
8329
8329
|
};
|
8330
8330
|
const t = localStorage.getItem(mb);
|
@@ -8487,11 +8487,11 @@ const rR = {
|
|
8487
8487
|
))
|
8488
8488
|
}
|
8489
8489
|
), kp = {
|
8490
|
-
[
|
8490
|
+
[Wn.light]: {
|
8491
8491
|
tippyContent: "Light",
|
8492
8492
|
icon: /* @__PURE__ */ a.jsx(WN, { className: "scn-9" })
|
8493
8493
|
},
|
8494
|
-
[
|
8494
|
+
[Wn.dark]: {
|
8495
8495
|
tippyContent: "Dark",
|
8496
8496
|
icon: /* @__PURE__ */ a.jsx(KN, { className: "scn-9" })
|
8497
8497
|
},
|
@@ -8532,7 +8532,7 @@ const rR = {
|
|
8532
8532
|
)
|
8533
8533
|
] });
|
8534
8534
|
}, aR = ({ className: t, userFirstLetter: e, setShowLogOutCard: s, showLogOutCard: n }) => {
|
8535
|
-
const r =
|
8535
|
+
const r = Xn(), i = () => {
|
8536
8536
|
document.cookie = "argocd.token=; expires=Thu, 01-Jan-1970 00:00:01 GMT;path=/", r.push("/login");
|
8537
8537
|
}, o = () => {
|
8538
8538
|
s(!n);
|
@@ -8853,20 +8853,20 @@ const uR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), hR = ({ className:
|
|
8853
8853
|
showAnnouncementHeader: u,
|
8854
8854
|
tippyProps: h
|
8855
8855
|
}) => {
|
8856
|
-
const { loginCount: f, setLoginCount: m, showGettingStartedCard: p, setShowGettingStartedCard: _, setGettingStartedClicked: g } = dd(), { isTippyCustomized: x, tippyRedirectLink: b, TippyIcon: E, tippyMessage: v, onClickTippyButton: C, additionalContent: S } = h || {}, [w, A] = R(!1), [y, T] = R(!1), { email: k } = vb(), [N,
|
8856
|
+
const { loginCount: f, setLoginCount: m, showGettingStartedCard: p, setShowGettingStartedCard: _, setGettingStartedClicked: g } = dd(), { isTippyCustomized: x, tippyRedirectLink: b, TippyIcon: E, tippyMessage: v, onClickTippyButton: C, additionalContent: S } = h || {}, [w, A] = R(!1), [y, T] = R(!1), { email: k } = vb(), [N, O] = R(
|
8857
8857
|
{
|
8858
8858
|
serverInfo: void 0,
|
8859
8859
|
fetchingServerInfo: !1
|
8860
8860
|
}
|
8861
|
-
), [
|
8861
|
+
), [I, D] = R(0), $ = async () => {
|
8862
8862
|
try {
|
8863
8863
|
const { result: J } = await cR(!0, !0);
|
8864
|
-
|
8864
|
+
O({
|
8865
8865
|
serverInfo: J,
|
8866
8866
|
fetchingServerInfo: !1
|
8867
8867
|
});
|
8868
8868
|
} catch {
|
8869
|
-
|
8869
|
+
O({
|
8870
8870
|
serverInfo: N.serverInfo,
|
8871
8871
|
fetchingServerInfo: !1
|
8872
8872
|
}), console.error("Error in fetching server info");
|
@@ -8906,7 +8906,7 @@ const uR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), hR = ({ className:
|
|
8906
8906
|
children: k[0]
|
8907
8907
|
}
|
8908
8908
|
)
|
8909
|
-
] }), _e = () => (/* @__PURE__ */ new Date()).valueOf() >
|
8909
|
+
] }), _e = () => (/* @__PURE__ */ new Date()).valueOf() > I, Ie = () => /* @__PURE__ */ a.jsx("span", { className: "fs-12 fw-4 lh-18 pt-1 pb-1 pl-6 pr-6 ml-8 cn-9 bcy-5 br-4", children: "Beta" }), ee = () => /* @__PURE__ */ a.jsx(_R, {});
|
8910
8910
|
return /* @__PURE__ */ a.jsxs(
|
8911
8911
|
"div",
|
8912
8912
|
{
|
@@ -9012,7 +9012,7 @@ const uR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), hR = ({ className:
|
|
9012
9012
|
}
|
9013
9013
|
);
|
9014
9014
|
}, n8 = ({ headerName: t }) => {
|
9015
|
-
const e = is(), s =
|
9015
|
+
const e = is(), s = Xn(), n = Jn(), { serverMode: r } = dd(), [i, o] = R(!1), l = () => {
|
9016
9016
|
o((m) => !m);
|
9017
9017
|
}, c = () => {
|
9018
9018
|
s.push(Be.CHARTS_DISCOVER);
|
@@ -9596,7 +9596,7 @@ const Dp = (t) => {
|
|
9596
9596
|
}, Hd = {
|
9597
9597
|
PENDING: "Pending"
|
9598
9598
|
}, AR = "1", OR = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup", IR = "devtron-ci", Ba = 3, Pp = "deployment-status", RR = ["KIND", "NAME", "SYNC STATUS", "MESSAGE"], Mp = "STAGE_INFO", kR = "|";
|
9599
|
-
var Ze = /* @__PURE__ */ ((t) => (t.CI = "CI", t.CD = "CD", t.GROUP_CI = "GROUP_CI", t.GROUP_CD = "GROUP_CD", t))(Ze || {}),
|
9599
|
+
var Ze = /* @__PURE__ */ ((t) => (t.CI = "CI", t.CD = "CD", t.GROUP_CI = "GROUP_CI", t.GROUP_CD = "GROUP_CD", t))(Ze || {}), Pn = /* @__PURE__ */ ((t) => (t.SUCCESS = "SUCCESS", t.FETCHING = "FETCHING", t.SUSPEND = "SUSPEND", t))(Pn || {});
|
9600
9600
|
const LR = {
|
9601
9601
|
[Ye.SUCCEEDED]: "cg-5",
|
9602
9602
|
[Ye.HEALTHY]: "cg-5",
|
@@ -9922,7 +9922,7 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9922
9922
|
runSource: f,
|
9923
9923
|
resourceId: m
|
9924
9924
|
}) => {
|
9925
|
-
const { path: p, params: _ } = ln(), { pathname: g } =
|
9925
|
+
const { path: p, params: _ } = ln(), { pathname: g } = Jn(), x = g.split("/").pop(), { envId: b, ...E } = is(), v = c === Ze.CD || c === Ze.GROUP_CD, C = v ? "triggerId" : "buildId", S = m === f?.id, w = re(null), A = () => {
|
9926
9926
|
const N = {
|
9927
9927
|
...E,
|
9928
9928
|
envId: b,
|
@@ -10008,7 +10008,7 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10008
10008
|
renderRunSource: c,
|
10009
10009
|
resourceId: d
|
10010
10010
|
}) => {
|
10011
|
-
const { pipelineId: u, appId: h, envId: f } = is(), { push: m } =
|
10011
|
+
const { pipelineId: u, appId: h, envId: f } = is(), { push: m } = Xn(), { path: p } = ln(), _ = (S) => {
|
10012
10012
|
t === Ze.CI ? (r({ offset: 0, size: 20 }), m(ur(p, { appId: h, pipelineId: S.value }))) : t === Ze.GROUP_CI ? (r({ offset: 0, size: 20 }), m(ur(p, { envId: f, pipelineId: S.pipelineId }))) : t === Ze.GROUP_CD ? (r({ offset: 0, size: 20 }), m(ur(p, { envId: f, appId: S.value, pipelineId: S.pipelineId }))) : (r({ offset: 0, size: 20 }), m(ur(p, { appId: h, envId: S.value, pipelineId: S.pipelineId })));
|
10013
10013
|
}, g = () => {
|
10014
10014
|
Cr.event({
|
@@ -10061,7 +10061,7 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10061
10061
|
)
|
10062
10062
|
] }),
|
10063
10063
|
/* @__PURE__ */ a.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
10064
|
-
i ===
|
10064
|
+
i === Pn.SUCCESS && /* @__PURE__ */ a.jsx($R, { handleViewAllHistory: o }),
|
10065
10065
|
Array.from(s).sort(([S], [w]) => w - S).map(([S, w], A) => /* @__PURE__ */ a.jsx(
|
10066
10066
|
HR,
|
10067
10067
|
{
|
@@ -10082,7 +10082,7 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10082
10082
|
},
|
10083
10083
|
S
|
10084
10084
|
)),
|
10085
|
-
n && (i ===
|
10085
|
+
n && (i === Pn.SUSPEND || !i) && /* @__PURE__ */ a.jsx(yb, { callback: g })
|
10086
10086
|
] })
|
10087
10087
|
] });
|
10088
10088
|
}
|
@@ -10248,16 +10248,16 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10248
10248
|
}, []);
|
10249
10249
|
const _ = (S, w, A) => (y) => {
|
10250
10250
|
const T = A ? y : y.target.value, k = w ? w(T) : T;
|
10251
|
-
n((
|
10252
|
-
const
|
10251
|
+
n((O) => {
|
10252
|
+
const I = { ...O, [S]: k }, D = t?.validationMode ?? "onChange";
|
10253
10253
|
if (D === "onChange" || D === "all" || u[S] || c[S]) {
|
10254
|
-
const $ = f(
|
10254
|
+
const $ = f(I), F = Yi(k, $[S]);
|
10255
10255
|
d({ ...c, [S]: F });
|
10256
10256
|
}
|
10257
|
-
return
|
10257
|
+
return I;
|
10258
10258
|
});
|
10259
10259
|
const N = e.current;
|
10260
|
-
i((
|
10260
|
+
i((O) => ({ ...O, [S]: !wo(N[S], k) }));
|
10261
10261
|
}, g = (S, w) => () => {
|
10262
10262
|
if (w || n({ ...s, [S]: s[S]?.trim() }), t?.validationMode === "onBlur" || t?.validationMode === "all") {
|
10263
10263
|
const y = f(), T = Yi(s[S], y[S]);
|
@@ -10312,14 +10312,14 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10312
10312
|
keepInitialValues: N = !1
|
10313
10313
|
} = w ?? {};
|
10314
10314
|
if (n(S), N || (e.current = S), T || d({}), k) {
|
10315
|
-
const
|
10315
|
+
const O = e.current, I = Object.keys(S).reduce(
|
10316
10316
|
(D, $) => ({
|
10317
10317
|
...D,
|
10318
|
-
[$]: !wo(S[$],
|
10318
|
+
[$]: !wo(S[$], O[$])
|
10319
10319
|
}),
|
10320
10320
|
{}
|
10321
10321
|
);
|
10322
|
-
i(
|
10322
|
+
i(I);
|
10323
10323
|
} else A || i({});
|
10324
10324
|
y || l({});
|
10325
10325
|
},
|
@@ -10586,7 +10586,7 @@ const jR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
10586
10586
|
e.length > 1 && /* @__PURE__ */ a.jsx("span", { className: "flex br-4 pl-6 pr-6 bcb-1", children: "…" })
|
10587
10587
|
]
|
10588
10588
|
}
|
10589
|
-
) }) : /* @__PURE__ */ a.jsx("span", {}), Wp = (t) => t && t ===
|
10589
|
+
) }) : /* @__PURE__ */ a.jsx("span", {}), Wp = (t) => t && t === Pn.FETCHING ? "?SHOW_APPLIED_FILTERS=true" : "";
|
10590
10590
|
async function QR({
|
10591
10591
|
appId: t,
|
10592
10592
|
envId: e,
|
@@ -10906,7 +10906,7 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
10906
10906
|
const N = (ee, J, ye, we) => {
|
10907
10907
|
const Ve = h.length === 0, U = J ?? !0;
|
10908
10908
|
return we ? ye || U : Ve ? ee !== Zr.SUCCESS || ye : U;
|
10909
|
-
},
|
10909
|
+
}, O = t.podStatus === Hd.PENDING || !!(d && d.readyState <= 1), I = (ee, J) => {
|
10910
10910
|
const ye = h.reduce(
|
10911
10911
|
(B, q) => (B[q.stage] || (B[q.stage] = {}), B[q.stage][q.startTime] = q, B),
|
10912
10912
|
{}
|
@@ -10924,7 +10924,7 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
10924
10924
|
!!J
|
10925
10925
|
);
|
10926
10926
|
else {
|
10927
|
-
const Hs =
|
10927
|
+
const Hs = O ? Zr.PROGRESSING : Zr.FAILURE;
|
10928
10928
|
B.push({
|
10929
10929
|
stage: ce || `Untitled stage ${pe + 1}`,
|
10930
10930
|
startTime: De || "",
|
@@ -10976,9 +10976,9 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
10976
10976
|
b(J);
|
10977
10977
|
return;
|
10978
10978
|
}
|
10979
|
-
const ee =
|
10979
|
+
const ee = I(_);
|
10980
10980
|
f(ee);
|
10981
|
-
}, [c,
|
10981
|
+
}, [c, O]);
|
10982
10982
|
const D = dt(() => {
|
10983
10983
|
f(
|
10984
10984
|
(ee) => ee.map((J) => ({
|
@@ -10993,7 +10993,7 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
10993
10993
|
const $ = (ee, J = E) => {
|
10994
10994
|
if (m.length > 0 || ee === "reset") {
|
10995
10995
|
let ye = 0;
|
10996
|
-
ee === "next" ? ye = (_ + 1) % m.length : ee === "prev" && (ye = _ > 0 ? _ - 1 : m.length - 1), g(ye), f(
|
10996
|
+
ee === "next" ? ye = (_ + 1) % m.length : ee === "prev" && (ye = _ > 0 ? _ - 1 : m.length - 1), g(ye), f(I(ye, J));
|
10997
10997
|
}
|
10998
10998
|
}, F = () => {
|
10999
10999
|
$("next");
|
@@ -11109,7 +11109,7 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
11109
11109
|
handleStageClose: Q,
|
11110
11110
|
handleStageOpen: _e,
|
11111
11111
|
stageIndex: q,
|
11112
|
-
isLoading: q === h.length - 1 &&
|
11112
|
+
isLoading: q === h.length - 1 && O,
|
11113
11113
|
fullScreenView: n,
|
11114
11114
|
searchIndex: m[_]
|
11115
11115
|
},
|
@@ -11134,7 +11134,7 @@ const x8 = (t, e, s) => ge(`app/history/deployed-configuration/${t}/${e}/${s}`),
|
|
11134
11134
|
)
|
11135
11135
|
] }, `logs-${J}`)
|
11136
11136
|
)),
|
11137
|
-
|
11137
|
+
O && /* @__PURE__ */ a.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ a.jsx(st, {}) })
|
11138
11138
|
] });
|
11139
11139
|
return t.podStatus !== Hd.PENDING && u && (!e || !t.blobStorageEnabled) ? uk(e) : Ie();
|
11140
11140
|
}, mk = ({
|
@@ -11454,7 +11454,7 @@ const bk = (t, e) => {
|
|
11454
11454
|
showConfigDriftInfo: s = !1,
|
11455
11455
|
onClose: n
|
11456
11456
|
}) => {
|
11457
|
-
const r =
|
11457
|
+
const r = Xn(), i = Rb.getAppDetails(), [o, l] = R(Fl), [c, d] = R([]), { appId: u, environmentId: h } = i, f = () => {
|
11458
11458
|
n(), r.push(`${Be.APP}/${u}${Be.DETAILS}/${h}/${Be.APP_DETAILS_K8}/${Be.CONFIG_DRIFT}`);
|
11459
11459
|
}, m = le(
|
11460
11460
|
() => PO(i.resourceTree?.nodes || [], i.resourceTree?.podMetadata || []),
|
@@ -11896,7 +11896,7 @@ const yk = ({
|
|
11896
11896
|
processVirtualEnvironmentDeploymentData: l,
|
11897
11897
|
renderDeploymentApprovalInfo: c
|
11898
11898
|
}) => {
|
11899
|
-
const d =
|
11899
|
+
const d = Xn(), { url: u } = ln(), { appId: h, envId: f, triggerId: m } = is(), [p, _] = R(
|
11900
11900
|
t?.toUpperCase() !== Z.ABORTED
|
11901
11901
|
), g = re(o), x = g.current && l ? l() : Tp(), [b, E] = R(x), v = () => {
|
11902
11902
|
Fa && clearTimeout(Fa);
|
@@ -11979,7 +11979,7 @@ const yk = ({
|
|
11979
11979
|
tabType: e,
|
11980
11980
|
onCollapseBtnClick: s
|
11981
11981
|
}) => {
|
11982
|
-
const { pathname: n } =
|
11982
|
+
const { pathname: n } = Jn(), r = (l) => {
|
11983
11983
|
const { title: c, subtitle: d, strikeThrough: u, iconConfig: h } = l;
|
11984
11984
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
11985
11985
|
/* @__PURE__ */ a.jsxs("div", { className: "flexbox-col flex-grow-1 mw-none", children: [
|
@@ -12148,7 +12148,7 @@ const kb = {
|
|
12148
12148
|
const { value: C } = v.target;
|
12149
12149
|
l?.activeTab !== C && l?.onClick?.(C);
|
12150
12150
|
}, g = () => /* @__PURE__ */ a.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
12151
|
-
n && /* @__PURE__ */ a.jsx(
|
12151
|
+
n && /* @__PURE__ */ a.jsx(qn, { to: n, children: /* @__PURE__ */ a.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ a.jsx(vt, { className: "icon-dim-16 fcn-6" }) }) }),
|
12152
12152
|
/* @__PURE__ */ a.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
12153
12153
|
] }), x = () => {
|
12154
12154
|
const { tabs: v, activeTab: C } = l;
|
@@ -12279,7 +12279,7 @@ const kb = {
|
|
12279
12279
|
}
|
12280
12280
|
);
|
12281
12281
|
}, rr = ({ code: t, image: e, title: s, subTitle: n, imageType: r, heightToDeduct: i, redirectURL: o, reload: l }) => {
|
12282
|
-
const { push: c } =
|
12282
|
+
const { push: c } = Xn(), d = () => {
|
12283
12283
|
c(o || `/${X.APP_LIST}`);
|
12284
12284
|
}, u = (_) => {
|
12285
12285
|
switch (_) {
|
@@ -12615,7 +12615,7 @@ const kb = {
|
|
12615
12615
|
compareToObfuscatedData: Object.keys(o).length ? o : void 0,
|
12616
12616
|
compareWithObfuscatedData: Object.keys(l).length ? l : void 0
|
12617
12617
|
};
|
12618
|
-
},
|
12618
|
+
}, kn = (t, e) => {
|
12619
12619
|
const { sortBy: s, sortOrder: n } = e ?? { sortBy: "", sortOrder: null };
|
12620
12620
|
try {
|
12621
12621
|
return JSON.stringify(
|
@@ -12642,26 +12642,26 @@ const kb = {
|
|
12642
12642
|
displayName: "data",
|
12643
12643
|
...Qp(t) ? {
|
12644
12644
|
value: null,
|
12645
|
-
resolvedValue:
|
12645
|
+
resolvedValue: kn(u, i)
|
12646
12646
|
} : {
|
12647
|
-
value:
|
12647
|
+
value: kn(u, i)
|
12648
12648
|
}
|
12649
12649
|
}, d = {
|
12650
12650
|
displayName: "data",
|
12651
12651
|
...Qp(e) ? {
|
12652
12652
|
value: null,
|
12653
|
-
resolvedValue:
|
12653
|
+
resolvedValue: kn(h, i)
|
12654
12654
|
} : {
|
12655
|
-
value:
|
12655
|
+
value: kn(h, i)
|
12656
12656
|
}
|
12657
12657
|
};
|
12658
12658
|
} else
|
12659
12659
|
c = {
|
12660
12660
|
displayName: "data",
|
12661
|
-
value:
|
12661
|
+
value: kn(o, i)
|
12662
12662
|
}, d = {
|
12663
12663
|
displayName: "data",
|
12664
|
-
value:
|
12664
|
+
value: kn(l, i)
|
12665
12665
|
};
|
12666
12666
|
return { compareToCodeEditorData: c, compareWithCodeEditorData: d };
|
12667
12667
|
}, xl = (t, e) => {
|
@@ -12701,7 +12701,7 @@ const kb = {
|
|
12701
12701
|
}, sg = (t, e, s) => {
|
12702
12702
|
const n = Ik(t), r = {
|
12703
12703
|
displayName: "data",
|
12704
|
-
value: n ?
|
12704
|
+
value: n ? kn(n, s) : ""
|
12705
12705
|
};
|
12706
12706
|
return jo(
|
12707
12707
|
{
|
@@ -12722,7 +12722,7 @@ const kb = {
|
|
12722
12722
|
}, rg = (t, e) => {
|
12723
12723
|
const s = {
|
12724
12724
|
displayName: "data",
|
12725
|
-
value: t?.data ?
|
12725
|
+
value: t?.data ? kn(t.data, e) : ""
|
12726
12726
|
};
|
12727
12727
|
return jo(
|
12728
12728
|
{ ...t || {}, strategy: t?.Strategy, codeEditorValue: s },
|
@@ -12938,12 +12938,12 @@ const kb = {
|
|
12938
12938
|
{
|
12939
12939
|
header: "ConfigMaps",
|
12940
12940
|
id: At.ConfigMap,
|
12941
|
-
items: w.map(({ name: N, diffState:
|
12941
|
+
items: w.map(({ name: N, diffState: O, id: I }) => ({
|
12942
12942
|
title: N,
|
12943
|
-
diffState:
|
12943
|
+
diffState: O,
|
12944
12944
|
href: s(At.ConfigMap, N),
|
12945
12945
|
onClick: () => {
|
12946
|
-
document.querySelector(`#${
|
12946
|
+
document.querySelector(`#${I}`)?.scrollIntoView({ block: "start" });
|
12947
12947
|
}
|
12948
12948
|
})),
|
12949
12949
|
noItemsText: "No configmaps"
|
@@ -12951,12 +12951,12 @@ const kb = {
|
|
12951
12951
|
{
|
12952
12952
|
header: "Secrets",
|
12953
12953
|
id: At.Secret,
|
12954
|
-
items: A.map(({ name: N, diffState:
|
12954
|
+
items: A.map(({ name: N, diffState: O, id: I }) => ({
|
12955
12955
|
title: N,
|
12956
|
-
diffState:
|
12956
|
+
diffState: O,
|
12957
12957
|
href: s(At.Secret, N),
|
12958
12958
|
onClick: () => {
|
12959
|
-
document.querySelector(`#${
|
12959
|
+
document.querySelector(`#${I}`)?.scrollIntoView({ block: "start" });
|
12960
12960
|
}
|
12961
12961
|
})),
|
12962
12962
|
noItemsText: "No secrets"
|
@@ -13388,7 +13388,7 @@ const kb = {
|
|
13388
13388
|
} catch {
|
13389
13389
|
A({ ...w, isLoading: !1 });
|
13390
13390
|
}
|
13391
|
-
}, N = () => k(w.data.size),
|
13391
|
+
}, N = () => k(w.data.size), O = () => w.hasMore ? /* @__PURE__ */ a.jsx("div", { className: "px-4", children: /* @__PURE__ */ a.jsx(
|
13392
13392
|
be,
|
13393
13393
|
{
|
13394
13394
|
isLoading: w.isLoading,
|
@@ -13399,7 +13399,7 @@ const kb = {
|
|
13399
13399
|
size: V.small,
|
13400
13400
|
fullWidth: !0
|
13401
13401
|
}
|
13402
|
-
) }) : null, { currentDeployment:
|
13402
|
+
) }) : null, { currentDeployment: I, pipelineDeploymentsOptions: D } = Wk({
|
13403
13403
|
pipelineDeployments: y,
|
13404
13404
|
wfrId: n,
|
13405
13405
|
triggerHistory: w.data,
|
@@ -13416,14 +13416,14 @@ const kb = {
|
|
13416
13416
|
name: "deployment-config-diff-deployment-selector",
|
13417
13417
|
inputId: "deployment-config-diff-deployment-selector",
|
13418
13418
|
classNamePrefix: "deployment-config-diff-deployment-selector",
|
13419
|
-
variant:
|
13419
|
+
variant: Gn.BORDER_LESS,
|
13420
13420
|
options: D,
|
13421
13421
|
placeholder: "Select Deployment",
|
13422
13422
|
value: pi(D, b, null),
|
13423
13423
|
onChange: G,
|
13424
13424
|
showSelectedOptionIcon: !1,
|
13425
13425
|
menuSize: V.large,
|
13426
|
-
renderOptionsFooter:
|
13426
|
+
renderOptionsFooter: O
|
13427
13427
|
}
|
13428
13428
|
}
|
13429
13429
|
] : [
|
@@ -13437,10 +13437,10 @@ const kb = {
|
|
13437
13437
|
{
|
13438
13438
|
id: "base-configuration",
|
13439
13439
|
type: "string",
|
13440
|
-
text: `Deployed on ${
|
13440
|
+
text: `Deployed on ${I}`
|
13441
13441
|
}
|
13442
13442
|
]
|
13443
|
-
}, Q = () => F ? u ? `Diff unavailable: Configurations for deployment execution ‘${$?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${$?.label || "N/A"} & ${
|
13443
|
+
}, Q = () => F ? u ? `Diff unavailable: Configurations for deployment execution ‘${$?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${$?.label || "N/A"} & ${I}` : null, Ie = {
|
13444
13444
|
handleSorting: () => S(C !== Ne.DESC ? Jp : ""),
|
13445
13445
|
sortBy: v,
|
13446
13446
|
sortOrder: C
|
@@ -13474,7 +13474,7 @@ const kb = {
|
|
13474
13474
|
resourceId: o,
|
13475
13475
|
renderRunSource: l
|
13476
13476
|
}) => {
|
13477
|
-
const { path: c, params: d } = ln(), { pathname: u, search: h } =
|
13477
|
+
const { path: c, params: d } = ln(), { pathname: u, search: h } = Jn(), { isSuperAdmin: f } = dd(), m = le(() => Pb(r), [r]), { currentWfrId: p, previousWfrId: _ } = le(
|
13478
13478
|
() => Yk({ pipelineDeployments: m, wfrId: n }),
|
13479
13479
|
[m, n]
|
13480
13480
|
), g = !!_, x = V0({
|
@@ -13529,10 +13529,10 @@ const kb = {
|
|
13529
13529
|
]), N = le(
|
13530
13530
|
() => !w && A ? cg(A[0]) || cg(A[1]) : null,
|
13531
13531
|
[w, A]
|
13532
|
-
),
|
13532
|
+
), O = le(
|
13533
13533
|
() => k ? $O(k.configList, "groupHeader") : [],
|
13534
13534
|
[k]
|
13535
|
-
),
|
13535
|
+
), I = A && lg(A[1]), D = !g || I, $ = w || !N && !k, F = {
|
13536
13536
|
code: N?.code,
|
13537
13537
|
error: N && !w,
|
13538
13538
|
reload: y
|
@@ -13561,21 +13561,21 @@ const kb = {
|
|
13561
13561
|
resourceId: o,
|
13562
13562
|
renderRunSource: l,
|
13563
13563
|
hideDiffState: D,
|
13564
|
-
isCompareDeploymentConfigNotAvailable:
|
13564
|
+
isCompareDeploymentConfigNotAvailable: I
|
13565
13565
|
}
|
13566
13566
|
) }),
|
13567
13567
|
/* @__PURE__ */ a.jsx(ar, { children: N && !w ? /* @__PURE__ */ a.jsx(ud, { code: F.code, reload: F.reload }) : /* @__PURE__ */ a.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: $ ? /* @__PURE__ */ a.jsx(st, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
13568
13568
|
/* @__PURE__ */ a.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: D ? "Configurations used for this deployment trigger" : "Showing configuration change with respect to previous deployment" }),
|
13569
13569
|
/* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
13570
|
-
/* @__PURE__ */ a.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(
|
13570
|
+
/* @__PURE__ */ a.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(O).map(
|
13571
13571
|
(G) => $k(
|
13572
|
-
|
13572
|
+
O[G],
|
13573
13573
|
G !== "UNGROUPED" ? G : null,
|
13574
13574
|
u,
|
13575
13575
|
D
|
13576
13576
|
)
|
13577
13577
|
) }),
|
13578
|
-
|
13578
|
+
I && /* @__PURE__ */ a.jsx(
|
13579
13579
|
Mm,
|
13580
13580
|
{
|
13581
13581
|
classname: "error_bar cn-9 fs-13 lh-20",
|
@@ -13944,7 +13944,7 @@ const Zk = ({
|
|
13944
13944
|
fullScreenView: s,
|
13945
13945
|
setFullScreenView: n
|
13946
13946
|
}) => {
|
13947
|
-
const { pathname: r } =
|
13947
|
+
const { pathname: r } = Jn(), { registerShortcut: i, unregisterShortcut: o } = da(), l = dt(() => {
|
13948
13948
|
n(!s);
|
13949
13949
|
}, [s]), c = !e || r.includes("/logs");
|
13950
13950
|
return P(() => (c && t.length && i({ callback: l, keys: t }), () => {
|
@@ -14103,8 +14103,8 @@ const sL = (t) => {
|
|
14103
14103
|
const { registerShortcut: s, unregisterShortcut: n } = da();
|
14104
14104
|
return P(() => (s({ keys: ["Escape"], callback: e }), () => {
|
14105
14105
|
n(["Escape"]);
|
14106
|
-
}), [e]), P(() => (
|
14107
|
-
|
14106
|
+
}), [e]), P(() => (Yn(!0), Np({ identifier: Xm, preventFocus: !0 }), () => {
|
14107
|
+
Yn(!1), Np({ identifier: Xm, preventFocus: !1 });
|
14108
14108
|
}), []), YT(
|
14109
14109
|
/* @__PURE__ */ a.jsx(
|
14110
14110
|
Ao.div,
|
@@ -14260,81 +14260,80 @@ const sL = (t) => {
|
|
14260
14260
|
);
|
14261
14261
|
}, y8 = ({
|
14262
14262
|
title: t,
|
14263
|
-
subtitle: e,
|
14264
|
-
|
14263
|
+
subtitle: e = "",
|
14264
|
+
component: s = "",
|
14265
14265
|
disabled: n,
|
14266
14266
|
onDelete: r,
|
14267
|
-
|
14268
|
-
|
14269
|
-
|
14270
|
-
|
14271
|
-
|
14272
|
-
|
14273
|
-
|
14274
|
-
|
14275
|
-
|
14276
|
-
|
14277
|
-
|
14278
|
-
children: g
|
14267
|
+
showConfirmationModal: i,
|
14268
|
+
closeConfirmationModal: o,
|
14269
|
+
renderCannotDeleteConfirmationSubTitle: l,
|
14270
|
+
errorCodeToShowCannotDeleteDialog: c,
|
14271
|
+
successToastMessage: d,
|
14272
|
+
isLoading: u,
|
14273
|
+
shouldStopPropagation: h = !1,
|
14274
|
+
primaryButtonText: f = "Delete",
|
14275
|
+
confirmationConfig: m,
|
14276
|
+
handleError: p,
|
14277
|
+
children: _
|
14279
14278
|
}) => {
|
14280
|
-
const
|
14281
|
-
|
14279
|
+
const [g, x] = R(u), [b, E] = R(!1), [v, C] = R(!1), S = async (N) => {
|
14280
|
+
h && N.stopPropagation(), x(!0);
|
14282
14281
|
try {
|
14283
14282
|
await r(), ze.showToast({
|
14284
14283
|
variant: Oe.success,
|
14285
|
-
description:
|
14286
|
-
}), o
|
14287
|
-
} catch (
|
14288
|
-
|
14284
|
+
description: d || "Successfully deleted"
|
14285
|
+
}), o();
|
14286
|
+
} catch (O) {
|
14287
|
+
O instanceof fs && O.code === c ? (E(!0), o()) : typeof p == "function" ? p(O) : nt(O);
|
14289
14288
|
} finally {
|
14290
|
-
|
14289
|
+
x(!1);
|
14291
14290
|
}
|
14292
|
-
},
|
14291
|
+
}, w = () => E(!1), A = () => C(!1), y = () => /* @__PURE__ */ a.jsx(
|
14293
14292
|
lL,
|
14294
14293
|
{
|
14295
14294
|
title: t,
|
14296
|
-
subtitle:
|
14297
|
-
showCannotDeleteDialogModal:
|
14298
|
-
closeConfirmationModal:
|
14299
|
-
component:
|
14295
|
+
subtitle: l,
|
14296
|
+
showCannotDeleteDialogModal: b,
|
14297
|
+
closeConfirmationModal: w,
|
14298
|
+
component: s
|
14300
14299
|
}
|
14301
|
-
),
|
14300
|
+
), T = () => /* @__PURE__ */ a.jsx(
|
14302
14301
|
cL,
|
14303
14302
|
{
|
14304
14303
|
title: t,
|
14305
14304
|
subtitle: e,
|
14306
14305
|
onDelete: r,
|
14307
|
-
closeConfirmationModal:
|
14308
|
-
showConfirmationModal:
|
14306
|
+
closeConfirmationModal: A,
|
14307
|
+
showConfirmationModal: v
|
14309
14308
|
}
|
14310
|
-
),
|
14309
|
+
), k = () => /* @__PURE__ */ a.jsx(
|
14311
14310
|
Sr,
|
14312
14311
|
{
|
14313
14312
|
variant: on.delete,
|
14314
|
-
title: `Delete ${
|
14315
|
-
subtitle: e ?? `Are you sure you want to delete this ${
|
14313
|
+
title: `Delete ${s} '${t}'`,
|
14314
|
+
subtitle: e ?? `Are you sure you want to delete this ${s} ?`,
|
14316
14315
|
buttonConfig: {
|
14317
14316
|
secondaryButtonConfig: {
|
14318
14317
|
text: "Cancel",
|
14319
|
-
onClick:
|
14318
|
+
onClick: o
|
14320
14319
|
},
|
14321
14320
|
primaryButtonConfig: {
|
14322
|
-
text:
|
14323
|
-
onClick:
|
14324
|
-
isLoading:
|
14325
|
-
disabled:
|
14321
|
+
text: f,
|
14322
|
+
onClick: S,
|
14323
|
+
isLoading: g,
|
14324
|
+
disabled: u || n
|
14326
14325
|
}
|
14327
14326
|
},
|
14328
|
-
showConfirmationModal:
|
14329
|
-
handleClose:
|
14330
|
-
confirmationConfig:
|
14331
|
-
children:
|
14327
|
+
showConfirmationModal: i,
|
14328
|
+
handleClose: o,
|
14329
|
+
confirmationConfig: m,
|
14330
|
+
children: _
|
14332
14331
|
}
|
14333
14332
|
);
|
14334
14333
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
14335
|
-
|
14336
|
-
|
14337
|
-
|
14334
|
+
k(),
|
14335
|
+
b && y(),
|
14336
|
+
v && T()
|
14338
14337
|
] });
|
14339
14338
|
}, dL = me.memo(
|
14340
14339
|
({ status: t, finishedOn: e, artifact: s, type: n }) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pt-12 dc__gap-8 left dc__min-width-fit-content dc__align-items-center", children: [
|
@@ -14492,7 +14491,7 @@ const sL = (t) => {
|
|
14492
14491
|
renderTargetConfigInfo: h,
|
14493
14492
|
stage: f
|
14494
14493
|
}) => {
|
14495
|
-
const { url: m } = ln(), { pathname: p } =
|
14494
|
+
const { url: m } = ln(), { pathname: p } = Jn();
|
14496
14495
|
return /* @__PURE__ */ a.jsxs("div", { className: "w-100 pr-20 flex column left dc__border-bottom-n1", children: [
|
14497
14496
|
/* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__gap-8 dc__align-items-center pb-12 flex-wrap", children: [
|
14498
14497
|
/* @__PURE__ */ a.jsxs("div", { className: "flex left dc__gap-4 cn-9 fs-13 fw-6 lh-20", children: [
|
@@ -14536,7 +14535,7 @@ const sL = (t) => {
|
|
14536
14535
|
)
|
14537
14536
|
] }, _.id) : null;
|
14538
14537
|
}),
|
14539
|
-
!p.includes("source-code") && /* @__PURE__ */ a.jsx(
|
14538
|
+
!p.includes("source-code") && /* @__PURE__ */ a.jsx(qn, { to: `${m}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
14540
14539
|
] }),
|
14541
14540
|
d && u && u(d),
|
14542
14541
|
c && /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 pb-8", children: [
|
@@ -14660,12 +14659,12 @@ const sL = (t) => {
|
|
14660
14659
|
triggerHistory: w,
|
14661
14660
|
targetPlatforms: A
|
14662
14661
|
}) => {
|
14663
|
-
const { path: y } = ln(), { appId: T, pipelineId: k, triggerId: N, envId:
|
14662
|
+
const { path: y } = ln(), { appId: T, pipelineId: k, triggerId: N, envId: O } = is(), I = {
|
14664
14663
|
appId: T,
|
14665
|
-
envId:
|
14664
|
+
envId: O,
|
14666
14665
|
appName: `${t.helmPackageName}.tgz`,
|
14667
14666
|
workflowId: t.id
|
14668
|
-
}, D = `app/cd-pipeline/workflow/download/${T}/${
|
14667
|
+
}, D = `app/cd-pipeline/workflow/download/${T}/${O}/${k}/${N}`;
|
14669
14668
|
return /* @__PURE__ */ a.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: e ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : /* @__PURE__ */ a.jsxs(Vx, { children: [
|
14670
14669
|
t.stage !== "DEPLOY" ? !t.IsVirtualEnvironment && /* @__PURE__ */ a.jsxs(ar, { path: `${y}/logs`, children: [
|
14671
14670
|
/* @__PURE__ */ a.jsx(
|
@@ -14737,7 +14736,7 @@ const sL = (t) => {
|
|
14737
14736
|
(t.stage !== "DEPLOY" || t.IsVirtualEnvironment) && /* @__PURE__ */ a.jsx(ar, { path: `${y}/artifacts`, children: t.IsVirtualEnvironment && b ? b({
|
14738
14737
|
status: t.status,
|
14739
14738
|
title: t.helmPackageName,
|
14740
|
-
params: { ...
|
14739
|
+
params: { ...I, appId: Number(T), envId: Number(O) }
|
14741
14740
|
}) : /* @__PURE__ */ a.jsx(
|
14742
14741
|
wb,
|
14743
14742
|
{
|
@@ -14792,14 +14791,14 @@ const sL = (t) => {
|
|
14792
14791
|
renderTargetConfigInfo: S,
|
14793
14792
|
appName: w
|
14794
14793
|
}) => {
|
14795
|
-
const { appId: A, triggerId: y, envId: T, pipelineId: k } = is(), N = e.get(+y), [
|
14794
|
+
const { appId: A, triggerId: y, envId: T, pipelineId: k } = is(), N = e.get(+y), [O, I, D, $] = Fs(
|
14796
14795
|
() => QR({ appId: A, envId: T, pipelineId: k, triggerId: y, fetchIdData: d }),
|
14797
14796
|
// TODO: Ask if fetchIdData is required here as dependency
|
14798
14797
|
[y, A, T],
|
14799
14798
|
!!y && !!k
|
14800
14799
|
), F = ld(N?.targetPlatforms), G = (J, ye, we) => {
|
14801
14800
|
if (we) {
|
14802
|
-
f?.result?.cdWorkflows?.length && s(Py(f.result.cdWorkflows, "id")), u(
|
14801
|
+
f?.result?.cdWorkflows?.length && s(Py(f.result.cdWorkflows, "id")), u(Pn.SUSPEND);
|
14803
14802
|
return;
|
14804
14803
|
}
|
14805
14804
|
if (J === ye?.id) {
|
@@ -14811,46 +14810,46 @@ const sL = (t) => {
|
|
14811
14810
|
...pe ? { targetConfig: pe } : {},
|
14812
14811
|
...ce ? { userApprovalMetadata: ce } : {}
|
14813
14812
|
};
|
14814
|
-
s((ae) => (ae.set(J, { ...ye, ...De }), new Map(ae))), d ===
|
14813
|
+
s((ae) => (ae.set(J, { ...ye, ...De }), new Map(ae))), d === Pn.FETCHING && u(Pn.SUCCESS);
|
14815
14814
|
}
|
14816
14815
|
};
|
14817
|
-
let Y = !!d && d !==
|
14818
|
-
(
|
14816
|
+
let Y = !!d && d !== Pn.SUSPEND;
|
14817
|
+
(I?.result?.artifactId === 0 || N?.artifactId === 0) && (Y = !1);
|
14819
14818
|
const [Q, _e, Ie] = Fs(
|
14820
14819
|
() => ek({
|
14821
14820
|
pipelineId: k,
|
14822
|
-
artifactId:
|
14821
|
+
artifactId: I?.result?.artifactId || N?.artifactId
|
14823
14822
|
}),
|
14824
14823
|
[k, y],
|
14825
|
-
Y && !!k && (!!
|
14824
|
+
Y && !!k && (!!I?.result?.artifactId || !!N?.artifactId)
|
14826
14825
|
);
|
14827
14826
|
P(() => {
|
14828
|
-
if (
|
14827
|
+
if (O)
|
14829
14828
|
return;
|
14830
14829
|
let J = {
|
14831
|
-
...
|
14830
|
+
...I?.result,
|
14832
14831
|
imageComment: N?.imageComment,
|
14833
14832
|
imageReleaseTags: N?.imageReleaseTags
|
14834
14833
|
};
|
14835
14834
|
Y && (J = null), G(+y, J, D);
|
14836
|
-
}, [
|
14837
|
-
if (Q || !
|
14835
|
+
}, [O, I, D]), P(() => {
|
14836
|
+
if (Q || !I || !Y)
|
14838
14837
|
return;
|
14839
14838
|
const J = {
|
14840
|
-
...
|
14839
|
+
...I?.result,
|
14841
14840
|
imageReleaseTags: _e?.result?.imageReleaseTags,
|
14842
14841
|
imageComment: _e?.result?.imageComment
|
14843
14842
|
};
|
14844
14843
|
G(+y, J, Ie);
|
14845
14844
|
}, [Q, _e, Ie]);
|
14846
14845
|
const ee = le(() => !N || jR.has(N.podStatus?.toLowerCase() || N.status?.toLowerCase()) ? null : PR.has(N.status?.toLowerCase() || N.podStatus?.toLowerCase()) ? 1e4 : 3e4, [N]);
|
14847
|
-
return jy($, ee), !Y &&
|
14846
|
+
return jy($, ee), !Y && O && !N || !y || Y && (Q || O) && !N ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : D?.code === 404 ? /* @__PURE__ */ a.jsx(
|
14848
14847
|
St,
|
14849
14848
|
{
|
14850
14849
|
title: at.TRIGGER_NOT_FOUND.TITLE,
|
14851
14850
|
subTitle: at.TRIGGER_NOT_FOUND.SUBTITLE
|
14852
14851
|
}
|
14853
|
-
) : !Y && !
|
14852
|
+
) : !Y && !O && !N ? /* @__PURE__ */ a.jsx(sa, {}) : Y && !(Q || O) && !N ? /* @__PURE__ */ a.jsx(sa, {}) : N?.id !== +y ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
14854
14853
|
!t && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
14855
14854
|
/* @__PURE__ */ a.jsx(
|
14856
14855
|
gL,
|
@@ -14930,14 +14929,14 @@ const sL = (t) => {
|
|
14930
14929
|
_L,
|
14931
14930
|
{
|
14932
14931
|
triggerDetails: N,
|
14933
|
-
loading:
|
14934
|
-
userApprovalMetadata:
|
14935
|
-
triggeredByEmail:
|
14932
|
+
loading: O && !I || !N || Y && !_e,
|
14933
|
+
userApprovalMetadata: I?.result?.userApprovalMetadata,
|
14934
|
+
triggeredByEmail: I?.result?.triggeredByEmail,
|
14936
14935
|
setFullScreenView: n,
|
14937
14936
|
deploymentAppType: r,
|
14938
14937
|
isBlobStorageConfigured: i,
|
14939
|
-
artifactId:
|
14940
|
-
ciPipelineId:
|
14938
|
+
artifactId: I?.result?.artifactId,
|
14939
|
+
ciPipelineId: I?.result?.ciPipelineId,
|
14941
14940
|
appReleaseTags: o,
|
14942
14941
|
tagsEditable: l,
|
14943
14942
|
hideImageTaggingHardDelete: c,
|
@@ -15896,7 +15895,7 @@ const D8 = {
|
|
15896
15895
|
v(B), h?.(B);
|
15897
15896
|
}, T = (B) => {
|
15898
15897
|
S(B), m?.(B);
|
15899
|
-
}, { searchKey: k, selectedTags: N } = C || {},
|
15898
|
+
}, { searchKey: k, selectedTags: N } = C || {}, O = () => C0(
|
15900
15899
|
() => Vb({
|
15901
15900
|
searchKey: k,
|
15902
15901
|
selectedTags: N,
|
@@ -15905,8 +15904,8 @@ const D8 = {
|
|
15905
15904
|
signal: w.current.signal
|
15906
15905
|
}),
|
15907
15906
|
w
|
15908
|
-
), [
|
15909
|
-
|
15907
|
+
), [I, D, $, F] = Fs(
|
15908
|
+
O,
|
15910
15909
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
15911
15910
|
[k, g, N],
|
15912
15911
|
l ? !x.length : !0
|
@@ -15936,8 +15935,8 @@ const D8 = {
|
|
15936
15935
|
}), A(xt);
|
15937
15936
|
};
|
15938
15937
|
P(() => {
|
15939
|
-
!(
|
15940
|
-
}, [
|
15938
|
+
!(I || sn($)) && !$ && D && Ie(D);
|
15939
|
+
}, [I, D, $]);
|
15941
15940
|
const ee = () => {
|
15942
15941
|
l && A([]);
|
15943
15942
|
}, J = () => {
|
@@ -16005,7 +16004,7 @@ const D8 = {
|
|
16005
16004
|
/* @__PURE__ */ a.jsx(
|
16006
16005
|
A0,
|
16007
16006
|
{
|
16008
|
-
isLoading:
|
16007
|
+
isLoading: I || sn($),
|
16009
16008
|
customLoader: /* @__PURE__ */ a.jsx($b, {}),
|
16010
16009
|
error: $,
|
16011
16010
|
errorScreenManagerProps: {
|
@@ -16059,10 +16058,10 @@ const D8 = {
|
|
16059
16058
|
validateDuplicateKeys: m = !1,
|
16060
16059
|
validateEmptyKeys: p = !1
|
16061
16060
|
}) => {
|
16062
|
-
const { headers: _, rows: g } = t, x = _[0].key, b = _[1].key, [E, v] = R(g), [C, S] = R(!1), w = c || l, A = !c && !l || !!E.length, y = !E[0]?.data[x].value && !E[0]?.data[b].value, T = E.length === 1 && y, { sortBy: k, sortOrder: N, handleSorting:
|
16061
|
+
const { headers: _, rows: g } = t, x = _[0].key, b = _[1].key, [E, v] = R(g), [C, S] = R(!1), w = c || l, A = !c && !l || !!E.length, y = !E[0]?.data[x].value && !E[0]?.data[b].value, T = E.length === 1 && y, { sortBy: k, sortOrder: N, handleSorting: O } = G0({
|
16063
16062
|
initialSortKey: s ? x : null
|
16064
|
-
}),
|
16065
|
-
|
16063
|
+
}), I = re(), D = re();
|
16064
|
+
I.current || (I.current = E.reduce((U, B) => ({ ...U, [B.id]: Rn() }), {})), D.current || (D.current = E.reduce((U, B) => ({ ...U, [B.id]: Rn() }), {}));
|
16066
16065
|
const $ = le(
|
16067
16066
|
() => E.reduce(
|
16068
16067
|
(U, B) => {
|
@@ -16116,12 +16115,12 @@ const D8 = {
|
|
16116
16115
|
};
|
16117
16116
|
}, Q = () => {
|
16118
16117
|
const U = Y(), B = [U, ...E], { id: q } = U;
|
16119
|
-
f?.(!G(B)), S(!0), v(B),
|
16120
|
-
...
|
16121
|
-
[q]:
|
16118
|
+
f?.(!G(B)), S(!0), v(B), I.current = {
|
16119
|
+
...I.current || {},
|
16120
|
+
[q]: Rn()
|
16122
16121
|
}, D.current = {
|
16123
16122
|
...D.current || {},
|
16124
|
-
[q]:
|
16123
|
+
[q]: Rn()
|
16125
16124
|
};
|
16126
16125
|
};
|
16127
16126
|
P(() => {
|
@@ -16137,22 +16136,22 @@ const D8 = {
|
|
16137
16136
|
const U = E[0];
|
16138
16137
|
if (U && C) {
|
16139
16138
|
S(!1);
|
16140
|
-
const B =
|
16141
|
-
!U.data[x].value && B && D.current[U.id].current.focus(), !U.data[b].value && B &&
|
16139
|
+
const B = I.current[U.id].current && D.current[U.id].current;
|
16140
|
+
!U.data[x].value && B && D.current[U.id].current.focus(), !U.data[b].value && B && I.current[U.id].current.focus();
|
16142
16141
|
}
|
16143
16142
|
}, [C]);
|
16144
|
-
const _e = () =>
|
16143
|
+
const _e = () => O(k), Ie = (U) => () => {
|
16145
16144
|
const B = E.filter(({ id: q }) => q !== U.id);
|
16146
16145
|
if (B.length === 0 && !l) {
|
16147
16146
|
const q = Y(), { id: pe } = q;
|
16148
|
-
S(!0), f?.(!G([q])), v([q]),
|
16149
|
-
[pe]:
|
16147
|
+
S(!0), f?.(!G([q])), v([q]), I.current = {
|
16148
|
+
[pe]: Rn()
|
16150
16149
|
}, D.current = {
|
16151
|
-
[pe]:
|
16150
|
+
[pe]: Rn()
|
16152
16151
|
}, i?.(U.id);
|
16153
16152
|
return;
|
16154
16153
|
}
|
16155
|
-
f?.(!G(B)), v(B), delete
|
16154
|
+
f?.(!G(B)), v(B), delete I.current[U.id], delete D.current[U.id], i?.(U.id);
|
16156
16155
|
}, ee = (U, B) => (q) => {
|
16157
16156
|
const { value: pe } = q.target, ce = {
|
16158
16157
|
...U,
|
@@ -16261,8 +16260,8 @@ const D8 = {
|
|
16261
16260
|
placeholder: o[B],
|
16262
16261
|
onChange: ee(U, B),
|
16263
16262
|
onBlur: J(U, B),
|
16264
|
-
refVar: B === x ?
|
16265
|
-
dependentRef: B === x ? D.current?.[U.id] :
|
16263
|
+
refVar: B === x ? I.current?.[U.id] : D.current?.[U.id],
|
16264
|
+
dependentRef: B === x ? D.current?.[U.id] : I.current?.[U.id],
|
16266
16265
|
disabled: c || U.data[B].disabled,
|
16267
16266
|
disableOnBlurResizeToMinHeight: !0
|
16268
16267
|
}
|
@@ -16280,7 +16279,7 @@ const D8 = {
|
|
16280
16279
|
onClick: Ie(U),
|
16281
16280
|
disabled: T,
|
16282
16281
|
children: /* @__PURE__ */ a.jsx(
|
16283
|
-
|
16282
|
+
Tn,
|
16284
16283
|
{
|
16285
16284
|
"aria-label": "delete-row",
|
16286
16285
|
className: "icon-dim-16 fcn-4 dc__align-self-start"
|
@@ -16359,7 +16358,7 @@ const D8 = {
|
|
16359
16358
|
switch (s) {
|
16360
16359
|
case "link":
|
16361
16360
|
return /* @__PURE__ */ a.jsx(
|
16362
|
-
|
16361
|
+
qn,
|
16363
16362
|
{
|
16364
16363
|
className: `${g} dc__no-decor flexbox-col ${f ? "cursor-not-allowed" : ""}`,
|
16365
16364
|
"aria-disabled": f,
|
@@ -16467,17 +16466,17 @@ const D8 = {
|
|
16467
16466
|
function N(G) {
|
16468
16467
|
return Array.isArray(G) ? G : [G];
|
16469
16468
|
}
|
16470
|
-
const
|
16469
|
+
const O = (G) => {
|
16471
16470
|
if (!E) {
|
16472
16471
|
const Y = G.target.value?.trim();
|
16473
16472
|
G.target.value !== Y && (G.stopPropagation(), G.target.value = Y, n(G));
|
16474
16473
|
}
|
16475
16474
|
typeof x == "function" && x(G);
|
16476
|
-
},
|
16475
|
+
}, I = (G) => /* @__PURE__ */ a.jsxs("div", { className: "flex left mt-4 mb-4 dc__gap-4 cr-5 fs-11 lh-16 fw-4", children: [
|
16477
16476
|
/* @__PURE__ */ a.jsx(tn, { className: "icon-dim-16 p-1 form__icon--error dc__align-self-start dc__no-shrink" }),
|
16478
16477
|
/* @__PURE__ */ a.jsx("span", { children: G }),
|
16479
16478
|
G && typeof A == "function" && A()
|
16480
|
-
] }, G), D = () => s?.length ? typeof s == "object" ? N(s).map((G) =>
|
16479
|
+
] }, G), D = () => s?.length ? typeof s == "object" ? N(s).map((G) => I(G)) : I(s) : null, $ = () => typeof i == "string" ? /* @__PURE__ */ a.jsx("span", { className: `${f ? "dc__required-field" : ""}`, children: i }) : i, F = () => i ? /* @__PURE__ */ a.jsx("label", { className: `form__label ${c}`, "data-testid": `label-${h}`, children: $() }) : null;
|
16481
16480
|
return /* @__PURE__ */ a.jsxs("div", { className: `flex column left top ${y}`, children: [
|
16482
16481
|
F(),
|
16483
16482
|
/* @__PURE__ */ a.jsx(
|
@@ -16491,7 +16490,7 @@ const D8 = {
|
|
16491
16490
|
onChange: (G) => {
|
16492
16491
|
G.persist(), n(G);
|
16493
16492
|
},
|
16494
|
-
onBlur:
|
16493
|
+
onBlur: O,
|
16495
16494
|
onFocus: r,
|
16496
16495
|
placeholder: d,
|
16497
16496
|
value: e,
|
@@ -16931,8 +16930,8 @@ const Dt = ({
|
|
16931
16930
|
const { boundingClientRect: C, rootBounds: S } = v, { x: w, y: A, height: y, width: T } = C, {
|
16932
16931
|
x: k,
|
16933
16932
|
y: N,
|
16934
|
-
height:
|
16935
|
-
width:
|
16933
|
+
height: O,
|
16934
|
+
width: I,
|
16936
16935
|
left: D,
|
16937
16936
|
right: $,
|
16938
16937
|
top: F,
|
@@ -17136,7 +17135,7 @@ const hg = ({
|
|
17136
17135
|
let y = { isValid: !0, messages: [] };
|
17137
17136
|
return i === mn.KEY ? (h || e.value) && (y = _.propagateTagKey(h)) : (r || h || e.propagate) && (y = _.propagateTagValue(h, e.key)), y.isValid ? null : /* @__PURE__ */ a.jsxs("div", { className: "p-4", onClick: Re, "data-testid": "tag-label-cross-stop-propagation", children: [
|
17138
17137
|
y.messages.map((T) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
17139
|
-
/* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(
|
17138
|
+
/* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(Tn, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
17140
17139
|
/* @__PURE__ */ a.jsx("span", { children: T })
|
17141
17140
|
] }, T)),
|
17142
17141
|
i === mn.KEY && /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
@@ -17264,7 +17263,7 @@ const hg = ({
|
|
17264
17263
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
17265
17264
|
onClick: u,
|
17266
17265
|
"data-testid": `delete-tag-${t}`,
|
17267
|
-
children: /* @__PURE__ */ a.jsx(
|
17266
|
+
children: /* @__PURE__ */ a.jsx(Tn, { className: "icon-dim-20 mt-4" })
|
17268
17267
|
}
|
17269
17268
|
)
|
17270
17269
|
] });
|
@@ -17308,7 +17307,7 @@ const mD = (t) => {
|
|
17308
17307
|
dataTestId: "file-upload-remove-file-button",
|
17309
17308
|
ariaLabel: "Remove File",
|
17310
17309
|
showAriaLabelInTippy: !1,
|
17311
|
-
icon: /* @__PURE__ */ a.jsx(
|
17310
|
+
icon: /* @__PURE__ */ a.jsx(Tn, {}),
|
17312
17311
|
onClick: l,
|
17313
17312
|
variant: Ae.borderLess,
|
17314
17313
|
style: je.negativeGrey,
|
@@ -17355,16 +17354,16 @@ const mD = (t) => {
|
|
17355
17354
|
n || s
|
17356
17355
|
), [g, x] = R(!1), b = re();
|
17357
17356
|
b.current || (b.current = t.reduce(
|
17358
|
-
(N,
|
17357
|
+
(N, O) => ({
|
17359
17358
|
...N,
|
17360
|
-
[
|
17359
|
+
[O.id]: e.reduce((I, { key: D }) => ({ ...I, [D]: Rn() }), {})
|
17361
17360
|
}),
|
17362
17361
|
{}
|
17363
17362
|
));
|
17364
17363
|
const E = le(() => t.map(({ id: N }) => N), [t]);
|
17365
17364
|
P(() => {
|
17366
17365
|
x(t.length > 0 && Object.keys(b.current).length < t.length);
|
17367
|
-
const N = E.reduce((
|
17366
|
+
const N = E.reduce((O, I) => (b.current[I] ? O[I] = b.current[I] : O[I] = e.reduce((D, { key: $ }) => ({ ...D, [$]: Rn() }), {}), O), {});
|
17368
17367
|
b.current = N;
|
17369
17368
|
}, [JSON.stringify(E)]), P(() => {
|
17370
17369
|
if (g) {
|
@@ -17372,57 +17371,57 @@ const mD = (t) => {
|
|
17372
17371
|
N && (N.focus(), x(!1));
|
17373
17372
|
}
|
17374
17373
|
}, [g]);
|
17375
|
-
const v = (N,
|
17374
|
+
const v = (N, O) => (I) => {
|
17376
17375
|
let D = "";
|
17377
17376
|
const $ = { selectedValue: null, files: [] };
|
17378
|
-
switch (N.data[
|
17377
|
+
switch (N.data[O].type) {
|
17379
17378
|
case Ot.DROPDOWN:
|
17380
17379
|
case Ot.SELECT_TEXT:
|
17381
|
-
D =
|
17380
|
+
D = I?.value || "", $.selectedValue = I;
|
17382
17381
|
break;
|
17383
17382
|
case Ot.FILE_UPLOAD:
|
17384
|
-
D =
|
17383
|
+
D = I[0]?.name || "", $.files = I;
|
17385
17384
|
break;
|
17386
17385
|
case Ot.TEXT:
|
17387
17386
|
default:
|
17388
|
-
D =
|
17387
|
+
D = I.target.value;
|
17389
17388
|
break;
|
17390
17389
|
}
|
17391
|
-
o(N,
|
17390
|
+
o(N, O, D, $);
|
17392
17391
|
}, C = (N) => () => {
|
17393
17392
|
l(N);
|
17394
|
-
}, S = (N,
|
17395
|
-
const
|
17396
|
-
switch (N.data[
|
17393
|
+
}, S = (N, O) => {
|
17394
|
+
const I = s || N.data[O].disabled;
|
17395
|
+
switch (N.data[O].type) {
|
17397
17396
|
case Ot.DROPDOWN:
|
17398
17397
|
return /* @__PURE__ */ a.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ a.jsx(
|
17399
17398
|
nn,
|
17400
17399
|
{
|
17401
|
-
...N.data[
|
17402
|
-
inputId: `data-table-${N.id}-${
|
17400
|
+
...N.data[O].props,
|
17401
|
+
inputId: `data-table-${N.id}-${O}-cell`,
|
17403
17402
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
17404
|
-
variant:
|
17403
|
+
variant: Gn.BORDER_LESS,
|
17405
17404
|
value: pi(
|
17406
|
-
N.data[
|
17407
|
-
N.data[
|
17405
|
+
N.data[O].props?.options,
|
17406
|
+
N.data[O].value,
|
17408
17407
|
null
|
17409
17408
|
),
|
17410
|
-
onChange: v(N,
|
17411
|
-
isDisabled:
|
17409
|
+
onChange: v(N, O),
|
17410
|
+
isDisabled: I,
|
17412
17411
|
fullWidth: !0
|
17413
17412
|
}
|
17414
17413
|
) });
|
17415
17414
|
case Ot.SELECT_TEXT: {
|
17416
|
-
const { value: D, props: $ } = N.data[
|
17415
|
+
const { value: D, props: $ } = N.data[O], { isCreatable: F = !0 } = $;
|
17417
17416
|
return /* @__PURE__ */ a.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ a.jsx(
|
17418
17417
|
a1,
|
17419
17418
|
{
|
17420
17419
|
isCreatable: F,
|
17421
17420
|
isClearable: !0,
|
17422
17421
|
...$,
|
17423
|
-
variant:
|
17422
|
+
variant: Gn.BORDER_LESS,
|
17424
17423
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
17425
|
-
inputId: `data-table-${N.id}-${
|
17424
|
+
inputId: `data-table-${N.id}-${O}-cell`,
|
17426
17425
|
minHeight: 20,
|
17427
17426
|
maxHeight: 160,
|
17428
17427
|
value: pi(
|
@@ -17430,10 +17429,10 @@ const mD = (t) => {
|
|
17430
17429
|
D,
|
17431
17430
|
F && D ? { label: D, value: D } : null
|
17432
17431
|
),
|
17433
|
-
onChange: v(N,
|
17434
|
-
isDisabled:
|
17432
|
+
onChange: v(N, O),
|
17433
|
+
isDisabled: I,
|
17435
17434
|
formatCreateLabel: (G) => `Use ${G}`,
|
17436
|
-
refVar: b?.current?.[N.id]?.[
|
17435
|
+
refVar: b?.current?.[N.id]?.[O],
|
17437
17436
|
dependentRefs: b?.current?.[N.id],
|
17438
17437
|
fullWidth: !0
|
17439
17438
|
}
|
@@ -17449,10 +17448,10 @@ const mD = (t) => {
|
|
17449
17448
|
"button",
|
17450
17449
|
{
|
17451
17450
|
type: "button",
|
17452
|
-
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${N.data[
|
17451
|
+
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${N.data[O].disabled ? "dc__disabled" : ""}`,
|
17453
17452
|
children: [
|
17454
|
-
N.data[
|
17455
|
-
N.data[
|
17453
|
+
N.data[O].props?.icon || null,
|
17454
|
+
N.data[O].props.text
|
17456
17455
|
]
|
17457
17456
|
}
|
17458
17457
|
)
|
@@ -17462,13 +17461,13 @@ const mD = (t) => {
|
|
17462
17461
|
return /* @__PURE__ */ a.jsx(
|
17463
17462
|
"div",
|
17464
17463
|
{
|
17465
|
-
className: `mw-none w-100 h-100 flex top left px-8 ${N.data[
|
17464
|
+
className: `mw-none w-100 h-100 flex top left px-8 ${N.data[O].props?.isLoading || N.data[O].value ? "py-3" : "py-8"}`,
|
17466
17465
|
children: /* @__PURE__ */ a.jsx(
|
17467
17466
|
gD,
|
17468
17467
|
{
|
17469
|
-
...N.data[
|
17470
|
-
fileName: N.data[
|
17471
|
-
onUpload: v(N,
|
17468
|
+
...N.data[O].props,
|
17469
|
+
fileName: N.data[O].value,
|
17470
|
+
onUpload: v(N, O)
|
17472
17471
|
}
|
17473
17472
|
)
|
17474
17473
|
}
|
@@ -17477,70 +17476,70 @@ const mD = (t) => {
|
|
17477
17476
|
return /* @__PURE__ */ a.jsx(
|
17478
17477
|
Ff,
|
17479
17478
|
{
|
17480
|
-
...N.data[
|
17481
|
-
id: `data-table-${N.id}-${
|
17482
|
-
className: `dynamic-data-table__cell-input placeholder-cn5 p-8 cn-9 fs-13 lh-20 dc__align-self-start dc__no-border-radius ${
|
17479
|
+
...N.data[O].props,
|
17480
|
+
id: `data-table-${N.id}-${O}-cell`,
|
17481
|
+
className: `dynamic-data-table__cell-input placeholder-cn5 p-8 cn-9 fs-13 lh-20 dc__align-self-start dc__no-border-radius ${I ? "cursor-not-allowed" : ""}`,
|
17483
17482
|
minHeight: 20,
|
17484
17483
|
maxHeight: 160,
|
17485
|
-
value: N.data[
|
17486
|
-
onChange: v(N,
|
17487
|
-
disabled:
|
17488
|
-
refVar: b?.current?.[N.id]?.[
|
17484
|
+
value: N.data[O].value,
|
17485
|
+
onChange: v(N, O),
|
17486
|
+
disabled: I,
|
17487
|
+
refVar: b?.current?.[N.id]?.[O],
|
17489
17488
|
dependentRefs: b?.current?.[N.id],
|
17490
17489
|
disableOnBlurResizeToMinHeight: !0
|
17491
17490
|
}
|
17492
17491
|
);
|
17493
17492
|
}
|
17494
|
-
}, w = (N,
|
17495
|
-
const D =
|
17496
|
-
return D?.[
|
17493
|
+
}, w = (N, O) => N.data[O].required && /* @__PURE__ */ a.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), A = (N, O, I) => {
|
17494
|
+
const D = I ? c : d;
|
17495
|
+
return D?.[O]?.(N) ? /* @__PURE__ */ a.jsx(
|
17497
17496
|
"div",
|
17498
17497
|
{
|
17499
|
-
className: `flex h-100 dc__align-self-start ${N.data[
|
17500
|
-
children: D[
|
17498
|
+
className: `flex h-100 dc__align-self-start ${N.data[O].type !== Ot.TEXT ? `py-8 ${I ? "pl-8" : "pr-8"}` : ""}`,
|
17499
|
+
children: D[O](N)
|
17501
17500
|
}
|
17502
17501
|
) : null;
|
17503
17502
|
}, y = (N) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
|
17504
17503
|
/* @__PURE__ */ a.jsx(vt, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
|
17505
17504
|
/* @__PURE__ */ a.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: N })
|
17506
|
-
] }, N), T = (N,
|
17507
|
-
const { isValid:
|
17508
|
-
return
|
17505
|
+
] }, N), T = (N, O) => {
|
17506
|
+
const { isValid: I, errorMessages: D } = !N.data[O].disabled && r[N.id]?.[O] ? r[N.id][O] : { isValid: !0, errorMessages: [] }, $ = N.data[O].type === Ot.SELECT_TEXT;
|
17507
|
+
return I ? null : /* @__PURE__ */ a.jsx(
|
17509
17508
|
"div",
|
17510
17509
|
{
|
17511
17510
|
className: `dynamic-data-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4 ${$ ? "no-error" : ""}`,
|
17512
17511
|
children: D.map((F) => y(F))
|
17513
17512
|
}
|
17514
17513
|
);
|
17515
|
-
}, k = (N,
|
17516
|
-
const D = s || N.data[
|
17514
|
+
}, k = (N, O, I) => {
|
17515
|
+
const D = s || N.data[O].disabled || !1, $ = !(r[N.id]?.[O]?.isValid ?? !0), F = /* @__PURE__ */ a.jsx(
|
17517
17516
|
Te,
|
17518
17517
|
{
|
17519
|
-
alwaysShowTippyOnHover: !!N.data[
|
17520
|
-
className: N.data[
|
17521
|
-
content: N.data[
|
17518
|
+
alwaysShowTippyOnHover: !!N.data[O].tooltip?.content || D,
|
17519
|
+
className: N.data[O].tooltip?.className,
|
17520
|
+
content: N.data[O].tooltip?.content || (D ? "Cannot edit in read-only mode" : ""),
|
17522
17521
|
followCursor: "horizontal",
|
17523
17522
|
plugins: [Ix],
|
17524
17523
|
children: /* @__PURE__ */ a.jsxs(
|
17525
17524
|
"div",
|
17526
17525
|
{
|
17527
|
-
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${D ? "cursor-not-allowed no-hover" : ""} ${!D && $ ? "dynamic-data-table__cell--error no-hover" : ""} ${lD(N.data[
|
17526
|
+
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${D ? "cursor-not-allowed no-hover" : ""} ${!D && $ ? "dynamic-data-table__cell--error no-hover" : ""} ${lD(N.data[O].type) ? "" : "no-hover no-focus"}`,
|
17528
17527
|
children: [
|
17529
|
-
A(N,
|
17530
|
-
S(N,
|
17531
|
-
w(N,
|
17532
|
-
A(N,
|
17533
|
-
T(N,
|
17528
|
+
A(N, O, !0),
|
17529
|
+
S(N, O),
|
17530
|
+
w(N, O),
|
17531
|
+
A(N, O),
|
17532
|
+
T(N, O)
|
17534
17533
|
]
|
17535
17534
|
}
|
17536
17535
|
)
|
17537
17536
|
}
|
17538
17537
|
);
|
17539
|
-
if (hd({ headers: e, actionButtonConfig: i }) ===
|
17538
|
+
if (hd({ headers: e, actionButtonConfig: i }) === I) {
|
17540
17539
|
const { renderer: Y, position: Q = "start" } = i, _e = /* @__PURE__ */ a.jsx(
|
17541
17540
|
"div",
|
17542
17541
|
{
|
17543
|
-
className: `dc__overflow-hidden flex top bg__primary ${Q === "start" &&
|
17542
|
+
className: `dc__overflow-hidden flex top bg__primary ${Q === "start" && O === e[0].key || n && Q === "end" && O === e[e.length - 1].key ? "dynamic-data-table__cell" : ""}`,
|
17544
17543
|
children: Y(N)
|
17545
17544
|
}
|
17546
17545
|
);
|
@@ -17562,7 +17561,7 @@ const mD = (t) => {
|
|
17562
17561
|
gridTemplateColumns: _
|
17563
17562
|
},
|
17564
17563
|
children: t.map((N) => /* @__PURE__ */ a.jsxs("div", { className: "dynamic-data-table__row", children: [
|
17565
|
-
e.map(({ key:
|
17564
|
+
e.map(({ key: O }, I) => /* @__PURE__ */ a.jsx(hi, { children: k(N, O, I) }, O)),
|
17566
17565
|
!n && !s && /* @__PURE__ */ a.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ a.jsx(
|
17567
17566
|
be,
|
17568
17567
|
{
|
@@ -18443,7 +18442,7 @@ class mt extends en {
|
|
18443
18442
|
let u = Math.min(i.len, c - l);
|
18444
18443
|
Pt(r, u, -1);
|
18445
18444
|
let h = i.ins == -1 ? -1 : i.off == 0 ? i.ins : 0;
|
18446
|
-
Pt(s, u, h), h > 0 &&
|
18445
|
+
Pt(s, u, h), h > 0 && Mn(n, s, i.text), i.forward(u), l += u;
|
18447
18446
|
}
|
18448
18447
|
let d = e[o++];
|
18449
18448
|
for (; l < d; ) {
|
@@ -18497,7 +18496,7 @@ class mt extends en {
|
|
18497
18496
|
let p = m ? typeof m == "string" ? Se.of(m.split(n || Xu)) : m : Se.empty, _ = p.length;
|
18498
18497
|
if (h == f && _ == 0)
|
18499
18498
|
return;
|
18500
|
-
h < o && c(), h > o && Pt(r, h - o, -1), Pt(r, f - h, _),
|
18499
|
+
h < o && c(), h > o && Pt(r, h - o, -1), Pt(r, f - h, _), Mn(i, r, p), o = f;
|
18501
18500
|
}
|
18502
18501
|
}
|
18503
18502
|
return d(e), c(!l), l;
|
@@ -18547,7 +18546,7 @@ function Pt(t, e, s, n = !1) {
|
|
18547
18546
|
let r = t.length - 2;
|
18548
18547
|
r >= 0 && s <= 0 && s == t[r + 1] ? t[r] += e : r >= 0 && e == 0 && t[r] == 0 ? t[r + 1] += s : n ? (t[r] += e, t[r + 1] += s) : t.push(e, s);
|
18549
18548
|
}
|
18550
|
-
function
|
18549
|
+
function Mn(t, e, s) {
|
18551
18550
|
if (s.length == 0)
|
18552
18551
|
return;
|
18553
18552
|
let n = e.length - 2 >> 1;
|
@@ -18585,7 +18584,7 @@ function Qu(t, e, s, n = !1) {
|
|
18585
18584
|
let d = l.len;
|
18586
18585
|
for (Pt(r, l.ins, -1); d; ) {
|
18587
18586
|
let u = Math.min(o.len, d);
|
18588
|
-
o.ins >= 0 && c < o.i && o.len <= u && (Pt(r, 0, o.ins), i &&
|
18587
|
+
o.ins >= 0 && c < o.i && o.len <= u && (Pt(r, 0, o.ins), i && Mn(i, r, o.text), c = o.i), o.forward(u), d -= u;
|
18589
18588
|
}
|
18590
18589
|
l.next();
|
18591
18590
|
} else if (o.ins >= 0) {
|
@@ -18598,7 +18597,7 @@ function Qu(t, e, s, n = !1) {
|
|
18598
18597
|
u -= l.len, l.next();
|
18599
18598
|
else
|
18600
18599
|
break;
|
18601
|
-
Pt(r, d, c < o.i ? o.ins : 0), i && c < o.i &&
|
18600
|
+
Pt(r, d, c < o.i ? o.ins : 0), i && c < o.i && Mn(i, r, o.text), c = o.i, o.forward(o.len - u);
|
18602
18601
|
} else {
|
18603
18602
|
if (o.done && l.done)
|
18604
18603
|
return i ? mt.createSet(r, i) : en.create(r);
|
@@ -18614,7 +18613,7 @@ function Jb(t, e, s = !1) {
|
|
18614
18613
|
if (i.ins == 0)
|
18615
18614
|
Pt(n, i.len, 0, l), i.next();
|
18616
18615
|
else if (o.len == 0 && !o.done)
|
18617
|
-
Pt(n, 0, o.ins, l), r &&
|
18616
|
+
Pt(n, 0, o.ins, l), r && Mn(r, n, o.text), o.next();
|
18618
18617
|
else {
|
18619
18618
|
if (i.done || o.done)
|
18620
18619
|
throw new Error("Mismatched change set lengths");
|
@@ -18622,8 +18621,8 @@ function Jb(t, e, s = !1) {
|
|
18622
18621
|
let c = Math.min(i.len2, o.len), d = n.length;
|
18623
18622
|
if (i.ins == -1) {
|
18624
18623
|
let u = o.ins == -1 ? -1 : o.off ? 0 : o.ins;
|
18625
|
-
Pt(n, c, u, l), r && u &&
|
18626
|
-
} else o.ins == -1 ? (Pt(n, i.off ? 0 : i.len, c, l), r &&
|
18624
|
+
Pt(n, c, u, l), r && u && Mn(r, n, o.text);
|
18625
|
+
} else o.ins == -1 ? (Pt(n, i.off ? 0 : i.len, c, l), r && Mn(r, n, i.textBit(c))) : (Pt(n, i.off ? 0 : i.len, o.off ? 0 : o.ins, l), r && !o.off && Mn(r, n, o.text));
|
18627
18626
|
l = (i.ins > c || o.ins >= 0 && o.len > c) && (l || n.length > d), i.forward2(c), o.forward(c);
|
18628
18627
|
}
|
18629
18628
|
}
|
@@ -20959,15 +20958,15 @@ function KD(t, e, s) {
|
|
20959
20958
|
let c = l[(o ? o < 0 : s >= 0) ? 0 : l.length - 1];
|
20960
20959
|
return K.safari && !o && c.width == 0 && (c = Array.prototype.find.call(l, (d) => d.width) || c), o ? ga(c, o < 0) : c || null;
|
20961
20960
|
}
|
20962
|
-
class
|
20961
|
+
class Bn extends Ue {
|
20963
20962
|
static create(e, s, n) {
|
20964
|
-
return new
|
20963
|
+
return new Bn(e, s, n);
|
20965
20964
|
}
|
20966
20965
|
constructor(e, s, n) {
|
20967
20966
|
super(), this.widget = e, this.length = s, this.side = n, this.prevWidget = null;
|
20968
20967
|
}
|
20969
20968
|
split(e) {
|
20970
|
-
let s =
|
20969
|
+
let s = Bn.create(this.widget, this.length - e, this.side);
|
20971
20970
|
return this.length -= e, s;
|
20972
20971
|
}
|
20973
20972
|
sync(e) {
|
@@ -20977,10 +20976,10 @@ class Fn extends Ue {
|
|
20977
20976
|
return this.side;
|
20978
20977
|
}
|
20979
20978
|
merge(e, s, n, r, i, o) {
|
20980
|
-
return n && (!(n instanceof
|
20979
|
+
return n && (!(n instanceof Bn) || !this.widget.compare(n.widget) || e > 0 && i <= 0 || s < this.length && o <= 0) ? !1 : (this.length = e + (n ? n.length : 0) + (this.length - s), !0);
|
20981
20980
|
}
|
20982
20981
|
become(e) {
|
20983
|
-
return e instanceof
|
20982
|
+
return e instanceof Bn && e.side == this.side && this.widget.constructor == e.widget.constructor ? (this.widget.compare(e.widget) || this.markDirty(!0), this.dom && !this.prevWidget && (this.prevWidget = this.widget), this.widget = e.widget, this.length = e.length, !0) : !1;
|
20984
20983
|
}
|
20985
20984
|
ignoreMutation() {
|
20986
20985
|
return !0;
|
@@ -21072,7 +21071,7 @@ class Ei extends Ue {
|
|
21072
21071
|
return !0;
|
21073
21072
|
}
|
21074
21073
|
}
|
21075
|
-
Ps.prototype.children =
|
21074
|
+
Ps.prototype.children = Bn.prototype.children = Ei.prototype.children = Hf;
|
21076
21075
|
function EE(t, e) {
|
21077
21076
|
let s = t.dom, { children: n } = t, r = 0;
|
21078
21077
|
for (let i = 0; r < n.length; r++) {
|
@@ -21271,7 +21270,7 @@ class z extends yr {
|
|
21271
21270
|
*/
|
21272
21271
|
static widget(e) {
|
21273
21272
|
let s = Math.max(-1e4, Math.min(1e4, e.side || 0)), n = !!e.block;
|
21274
|
-
return s += n && !e.inlineOrder ? s > 0 ? 3e8 : -4e8 : s > 0 ? 1e8 : -1e8, new
|
21273
|
+
return s += n && !e.inlineOrder ? s > 0 ? 3e8 : -4e8 : s > 0 ? 1e8 : -1e8, new Kn(e, s, s, n, e.widget || null, !1);
|
21275
21274
|
}
|
21276
21275
|
/**
|
21277
21276
|
Create a replace decoration which replaces the given range with
|
@@ -21285,7 +21284,7 @@ class z extends yr {
|
|
21285
21284
|
let { start: i, end: o } = SE(e, s);
|
21286
21285
|
n = (i ? s ? -3e8 : -1 : 5e8) - 1, r = (o ? s ? 2e8 : 1 : -6e8) + 1;
|
21287
21286
|
}
|
21288
|
-
return new
|
21287
|
+
return new Kn(e, n, r, s, e.widget || null, !0);
|
21289
21288
|
}
|
21290
21289
|
/**
|
21291
21290
|
Create a line decoration, which can add DOM attributes to the
|
@@ -21341,7 +21340,7 @@ class xa extends z {
|
|
21341
21340
|
}
|
21342
21341
|
xa.prototype.mapMode = kt.TrackBefore;
|
21343
21342
|
xa.prototype.point = !0;
|
21344
|
-
class
|
21343
|
+
class Kn extends z {
|
21345
21344
|
constructor(e, s, n, r, i, o) {
|
21346
21345
|
super(s, n, i, e), this.block = r, this.isReplace = o, this.mapMode = r ? s <= 0 ? kt.TrackBefore : kt.TrackAfter : kt.TrackDel;
|
21347
21346
|
}
|
@@ -21353,7 +21352,7 @@ class zn extends z {
|
|
21353
21352
|
return this.block || !!this.widget && (this.widget.estimatedHeight >= 5 || this.widget.lineBreaks > 0);
|
21354
21353
|
}
|
21355
21354
|
eq(e) {
|
21356
|
-
return e instanceof
|
21355
|
+
return e instanceof Kn && JD(this.widget, e.widget) && this.block == e.block && this.startSide == e.startSide && this.endSide == e.endSide;
|
21357
21356
|
}
|
21358
21357
|
range(e, s = e) {
|
21359
21358
|
if (this.isReplace && (e > s || e == s && this.startSide > 0 && this.endSide <= 0))
|
@@ -21363,7 +21362,7 @@ class zn extends z {
|
|
21363
21362
|
return super.range(e, s);
|
21364
21363
|
}
|
21365
21364
|
}
|
21366
|
-
|
21365
|
+
Kn.prototype.point = !0;
|
21367
21366
|
function SE(t, e = !1) {
|
21368
21367
|
let { inclusiveStart: s, inclusiveEnd: n } = t;
|
21369
21368
|
return s == null && (s = t.inclusive), n == null && (n = t.inclusive), { start: s ?? e, end: n ?? e };
|
@@ -21606,18 +21605,18 @@ class So {
|
|
21606
21605
|
this.buildText(s - e, n, r), this.pos = s, this.openStart < 0 && (this.openStart = r);
|
21607
21606
|
}
|
21608
21607
|
point(e, s, n, r, i, o) {
|
21609
|
-
if (this.disallowBlockEffectsFor[o] && n instanceof
|
21608
|
+
if (this.disallowBlockEffectsFor[o] && n instanceof Kn) {
|
21610
21609
|
if (n.block)
|
21611
21610
|
throw new RangeError("Block decorations may not be specified via plugins");
|
21612
21611
|
if (s > this.doc.lineAt(this.pos).to)
|
21613
21612
|
throw new RangeError("Decorations that replace line breaks may not be specified via plugins");
|
21614
21613
|
}
|
21615
21614
|
let l = s - e;
|
21616
|
-
if (n instanceof
|
21615
|
+
if (n instanceof Kn)
|
21617
21616
|
if (n.block)
|
21618
21617
|
n.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new xn(n.widget || Ci.block, l, n));
|
21619
21618
|
else {
|
21620
|
-
let c =
|
21619
|
+
let c = Bn.create(n.widget || Ci.inline, l, l ? 0 : n.startSide), d = this.atCursorPos && !c.isEditable && i <= r.length && (e < s || n.startSide > 0), u = !c.isEditable && (e < s || i > r.length || n.startSide <= 0), h = this.getLine();
|
21621
21620
|
this.pendingBuffer == 2 && !d && !c.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), d && (h.append(Ha(new Ei(1), r), i), i = r.length + Math.max(0, i - r.length)), h.append(Ha(c, r), i), this.atCursorPos = u, this.pendingBuffer = u ? e < s || i > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
|
21622
21621
|
}
|
21623
21622
|
else this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(n);
|
@@ -21671,7 +21670,7 @@ function NE(t) {
|
|
21671
21670
|
return t <= 247 ? XD[t] : 1424 <= t && t <= 1524 ? 2 : 1536 <= t && t <= 1785 ? ZD[t - 1536] : 1774 <= t && t <= 2220 ? 4 : 8192 <= t && t <= 8204 ? 256 : 64336 <= t && t <= 65023 ? 4 : 1;
|
21672
21671
|
}
|
21673
21672
|
const QD = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;
|
21674
|
-
class
|
21673
|
+
class Fn {
|
21675
21674
|
/**
|
21676
21675
|
The direction of this span.
|
21677
21676
|
*/
|
@@ -21840,7 +21839,7 @@ function gh(t, e, s, n, r, i, o) {
|
|
21840
21839
|
if (d++, f)
|
21841
21840
|
f.push(_);
|
21842
21841
|
else {
|
21843
|
-
_.from > c && o.push(new
|
21842
|
+
_.from > c && o.push(new Fn(c, _.from, m));
|
21844
21843
|
let g = _.direction == wr != !(m % 2);
|
21845
21844
|
_h(t, g ? n + 1 : n, r, _.inner, _.from, _.to, o), c = _.to;
|
21846
21845
|
}
|
@@ -21850,7 +21849,7 @@ function gh(t, e, s, n, r, i, o) {
|
|
21850
21849
|
break;
|
21851
21850
|
p++;
|
21852
21851
|
}
|
21853
|
-
f ? gh(t, c, p, n + 1, r, f, o) : c < p && o.push(new
|
21852
|
+
f ? gh(t, c, p, n + 1, r, f, o) : c < p && o.push(new Fn(c, p, m)), c = p;
|
21854
21853
|
}
|
21855
21854
|
else
|
21856
21855
|
for (let c = s, d = i.length; c > e; ) {
|
@@ -21880,7 +21879,7 @@ function gh(t, e, s, n, r, i, o) {
|
|
21880
21879
|
if (f)
|
21881
21880
|
f.push(_);
|
21882
21881
|
else {
|
21883
|
-
_.to < c && o.push(new
|
21882
|
+
_.to < c && o.push(new Fn(_.to, c, m));
|
21884
21883
|
let g = _.direction == wr != !(m % 2);
|
21885
21884
|
_h(t, g ? n + 1 : n, r, _.inner, _.from, _.to, o), c = _.from;
|
21886
21885
|
}
|
@@ -21890,7 +21889,7 @@ function gh(t, e, s, n, r, i, o) {
|
|
21890
21889
|
break;
|
21891
21890
|
p--;
|
21892
21891
|
}
|
21893
|
-
f ? gh(t, p, c, n + 1, r, f, o) : p < c && o.push(new
|
21892
|
+
f ? gh(t, p, c, n + 1, r, f, o) : p < c && o.push(new Fn(p, c, m)), c = p;
|
21894
21893
|
}
|
21895
21894
|
}
|
21896
21895
|
function _h(t, e, s, n, r, i, o) {
|
@@ -21899,7 +21898,7 @@ function _h(t, e, s, n, r, i, o) {
|
|
21899
21898
|
}
|
21900
21899
|
function nj(t, e, s) {
|
21901
21900
|
if (!t)
|
21902
|
-
return [new
|
21901
|
+
return [new Fn(0, 0, e == Gf ? 1 : 0)];
|
21903
21902
|
if (e == wr && !s.length && !QD.test(t))
|
21904
21903
|
return wE(t.length);
|
21905
21904
|
if (s.length)
|
@@ -21909,12 +21908,12 @@ function nj(t, e, s) {
|
|
21909
21908
|
return _h(t, r, r, s, 0, t.length, n), n;
|
21910
21909
|
}
|
21911
21910
|
function wE(t) {
|
21912
|
-
return [new
|
21911
|
+
return [new Fn(0, t, 0)];
|
21913
21912
|
}
|
21914
21913
|
let AE = "";
|
21915
21914
|
function rj(t, e, s, n, r) {
|
21916
21915
|
var i;
|
21917
|
-
let o = n.head - t.from, l =
|
21916
|
+
let o = n.head - t.from, l = Fn.find(e, o, (i = n.bidiLevel) !== null && i !== void 0 ? i : -1, n.assoc), c = e[l], d = c.side(r, s);
|
21918
21917
|
if (o == d) {
|
21919
21918
|
let f = l += r ? 1 : -1;
|
21920
21919
|
if (f < 0 || f >= e.length)
|
@@ -23618,7 +23617,7 @@ class qs {
|
|
23618
23617
|
associated with it.
|
23619
23618
|
*/
|
23620
23619
|
get widget() {
|
23621
|
-
return this._content instanceof
|
23620
|
+
return this._content instanceof Kn ? this._content.widget : null;
|
23622
23621
|
}
|
23623
23622
|
/**
|
23624
23623
|
If this is a textblock, this holds the number of line breaks
|
@@ -25549,7 +25548,7 @@ class H {
|
|
25549
25548
|
let n = this.docView.coordsAt(e, s);
|
25550
25549
|
if (!n || n.left == n.right)
|
25551
25550
|
return n;
|
25552
|
-
let r = this.state.doc.lineAt(e), i = this.bidiSpans(r), o = i[
|
25551
|
+
let r = this.state.doc.lineAt(e), i = this.bidiSpans(r), o = i[Fn.find(i, e - r.from, -1, s)];
|
25553
25552
|
return ga(n, o.dir == qe.LTR == s > 0);
|
25554
25553
|
}
|
25555
25554
|
/**
|
@@ -25850,7 +25849,7 @@ function rC(t) {
|
|
25850
25849
|
function iC(t, e, s) {
|
25851
25850
|
return oC(rC(t.state), e, t, s);
|
25852
25851
|
}
|
25853
|
-
let
|
25852
|
+
let Dn = null;
|
25854
25853
|
const fP = 4e3;
|
25855
25854
|
function mP(t, e = dP) {
|
25856
25855
|
let s = /* @__PURE__ */ Object.create(null), n = /* @__PURE__ */ Object.create(null), r = (o, l) => {
|
@@ -25868,9 +25867,9 @@ function mP(t, e = dP) {
|
|
25868
25867
|
preventDefault: !0,
|
25869
25868
|
stopPropagation: !1,
|
25870
25869
|
run: [(E) => {
|
25871
|
-
let v =
|
25870
|
+
let v = Dn = { view: E, prefix: b, scope: o };
|
25872
25871
|
return setTimeout(() => {
|
25873
|
-
|
25872
|
+
Dn == v && (Dn = null);
|
25874
25873
|
}, fP), !0;
|
25875
25874
|
}]
|
25876
25875
|
});
|
@@ -25905,7 +25904,7 @@ let Nh = null;
|
|
25905
25904
|
function oC(t, e, s, n) {
|
25906
25905
|
Nh = e;
|
25907
25906
|
let r = dN(e), i = Jt(r, 0), o = zs(i) == r.length && r != " ", l = "", c = !1, d = !1, u = !1;
|
25908
|
-
|
25907
|
+
Dn && Dn.view == s && Dn.scope == n && (l = Dn.prefix + " ", KE.indexOf(e.keyCode) < 0 && (d = !0, Dn = null));
|
25909
25908
|
let h = /* @__PURE__ */ new Set(), f = (g) => {
|
25910
25909
|
if (g) {
|
25911
25910
|
for (let x of g.run)
|
@@ -25989,25 +25988,25 @@ function pP(t, e, s) {
|
|
25989
25988
|
}
|
25990
25989
|
function E(C, S, w) {
|
25991
25990
|
let A = 1e9, y = -1e9, T = [];
|
25992
|
-
function k(
|
25993
|
-
let Y = t.coordsAtPos(
|
25991
|
+
function k(I, D, $, F, G) {
|
25992
|
+
let Y = t.coordsAtPos(I, I == w.to ? -2 : 2), Q = t.coordsAtPos($, $ == w.from ? 2 : -2);
|
25994
25993
|
!Y || !Q || (A = Math.min(Y.top, Q.top, A), y = Math.max(Y.bottom, Q.bottom, y), G == qe.LTR ? T.push(i && D ? h : Y.left, i && F ? f : Q.right) : T.push(!i && F ? h : Q.left, !i && D ? f : Y.right));
|
25995
25994
|
}
|
25996
|
-
let N = C ?? w.from,
|
25997
|
-
for (let
|
25998
|
-
if (
|
25999
|
-
for (let D = Math.max(
|
25995
|
+
let N = C ?? w.from, O = S ?? w.to;
|
25996
|
+
for (let I of t.visibleRanges)
|
25997
|
+
if (I.to > N && I.from < O)
|
25998
|
+
for (let D = Math.max(I.from, N), $ = Math.min(I.to, O); ; ) {
|
26000
25999
|
let F = t.state.doc.lineAt(D);
|
26001
26000
|
for (let G of t.bidiSpans(F)) {
|
26002
26001
|
let Y = G.from + F.from, Q = G.to + F.from;
|
26003
26002
|
if (Y >= $)
|
26004
26003
|
break;
|
26005
|
-
Q > D && k(Math.max(Y, D), C == null && Y <= N, Math.min(Q, $), S == null && Q >=
|
26004
|
+
Q > D && k(Math.max(Y, D), C == null && Y <= N, Math.min(Q, $), S == null && Q >= O, G.dir);
|
26006
26005
|
}
|
26007
26006
|
if (D = F.to + 1, D >= $)
|
26008
26007
|
break;
|
26009
26008
|
}
|
26010
|
-
return T.length == 0 && k(N, C == null,
|
26009
|
+
return T.length == 0 && k(N, C == null, O, S == null, t.textDirection), { top: A, bottom: y, horizontal: T };
|
26011
26010
|
}
|
26012
26011
|
function v(C, S) {
|
26013
26012
|
let w = l.top + (S ? C.top : C.bottom);
|
@@ -26889,7 +26888,7 @@ class GP {
|
|
26889
26888
|
if (!n)
|
26890
26889
|
return;
|
26891
26890
|
let r, i = 1;
|
26892
|
-
if (n instanceof
|
26891
|
+
if (n instanceof Bn)
|
26893
26892
|
r = n.posAtStart;
|
26894
26893
|
else {
|
26895
26894
|
if (r = e.posAtCoords(s), r == null)
|
@@ -27442,7 +27441,7 @@ class bs {
|
|
27442
27441
|
this.data = e, this.name = r, fe.prototype.hasOwnProperty("tree") || Object.defineProperty(fe.prototype, "tree", { get() {
|
27443
27442
|
return _t(this);
|
27444
27443
|
} }), this.parser = s, this.extension = [
|
27445
|
-
|
27444
|
+
zn.of(this),
|
27446
27445
|
fe.languageData.of((i, o, l) => {
|
27447
27446
|
let c = f_(i, o, l), d = c.type.prop(fr);
|
27448
27447
|
if (!d)
|
@@ -27472,7 +27471,7 @@ class bs {
|
|
27472
27471
|
in this language, when those exist.
|
27473
27472
|
*/
|
27474
27473
|
findRegions(e) {
|
27475
|
-
let s = e.facet(
|
27474
|
+
let s = e.facet(zn);
|
27476
27475
|
if (s?.data == this.data)
|
27477
27476
|
return [{ from: 0, to: e.doc.length }];
|
27478
27477
|
if (!s || !s.allowsNesting)
|
@@ -27514,7 +27513,7 @@ class bs {
|
|
27514
27513
|
}
|
27515
27514
|
bs.setState = /* @__PURE__ */ ne.define();
|
27516
27515
|
function f_(t, e, s) {
|
27517
|
-
let n = t.facet(
|
27516
|
+
let n = t.facet(zn), r = _t(t).topNode;
|
27518
27517
|
if (!n || n.allowsNesting)
|
27519
27518
|
for (let i = r; i; i = i.enter(e, s, mN.ExcludeBuffers))
|
27520
27519
|
i.type.isTop && (r = i);
|
@@ -27738,7 +27737,7 @@ class Ni {
|
|
27738
27737
|
return s.work(20, n) || s.takeTree(), new Ni(s);
|
27739
27738
|
}
|
27740
27739
|
static init(e) {
|
27741
|
-
let s = Math.min(3e3, e.doc.length), n = yi.create(e.facet(
|
27740
|
+
let s = Math.min(3e3, e.doc.length), n = yi.create(e.facet(zn).parser, e, { from: 0, to: s });
|
27742
27741
|
return n.work(20, s) || n.takeTree(), new Ni(n);
|
27743
27742
|
}
|
27744
27743
|
}
|
@@ -27748,7 +27747,7 @@ bs.state = /* @__PURE__ */ Je.define({
|
|
27748
27747
|
for (let s of e.effects)
|
27749
27748
|
if (s.is(bs.setState))
|
27750
27749
|
return s.value;
|
27751
|
-
return e.startState.facet(
|
27750
|
+
return e.startState.facet(zn) != e.state.facet(zn) ? Ni.init(e.state) : t.apply(e);
|
27752
27751
|
}
|
27753
27752
|
});
|
27754
27753
|
let wC = (t) => {
|
@@ -27813,7 +27812,7 @@ const ru = typeof navigator < "u" && (!((nu = navigator.scheduling) === null ||
|
|
27813
27812
|
eventHandlers: { focus() {
|
27814
27813
|
this.scheduleWork();
|
27815
27814
|
} }
|
27816
|
-
}),
|
27815
|
+
}), zn = /* @__PURE__ */ W.define({
|
27817
27816
|
combine(t) {
|
27818
27817
|
return t.length ? t[0] : null;
|
27819
27818
|
},
|
@@ -28310,7 +28309,7 @@ function rm(t = {}) {
|
|
28310
28309
|
this.from = o.viewport.from, this.markers = this.buildMarkers(o);
|
28311
28310
|
}
|
28312
28311
|
update(o) {
|
28313
|
-
(o.docChanged || o.viewportChanged || o.startState.facet(
|
28312
|
+
(o.docChanged || o.viewportChanged || o.startState.facet(zn) != o.state.facet(zn) || o.startState.field(Or, !1) != o.state.field(Or, !1) || _t(o.startState) != _t(o.state) || e.foldingChanged(o)) && (this.markers = this.buildMarkers(o.view));
|
28314
28313
|
}
|
28315
28314
|
buildMarkers(o) {
|
28316
28315
|
let l = new rs();
|
@@ -31271,7 +31270,7 @@ function Em(t, e) {
|
|
31271
31270
|
return n instanceof ii ? (typeof s == "string" ? t.dispatch(Object.assign(Object.assign({}, KB(t.state, s, n.from, n.to)), { annotations: xm.of(e.completion) })) : s(t, e.completion, n.from, n.to), !0) : !1;
|
31272
31271
|
}
|
31273
31272
|
const lF = /* @__PURE__ */ eF(Zt, Em);
|
31274
|
-
function
|
31273
|
+
function Un(t, e = "option") {
|
31275
31274
|
return (s) => {
|
31276
31275
|
let n = s.state.field(Zt, !1);
|
31277
31276
|
if (!n || !n.open || n.open.disabled || Date.now() - n.open.timestamp < s.state.facet(Nt).interactionDelay)
|
@@ -31904,10 +31903,10 @@ const Nm = [
|
|
31904
31903
|
{ key: "Ctrl-Space", run: Hh },
|
31905
31904
|
{ mac: "Alt-`", run: Hh },
|
31906
31905
|
{ key: "Escape", run: cS },
|
31907
|
-
{ key: "ArrowDown", run: /* @__PURE__ */
|
31908
|
-
{ key: "ArrowUp", run: /* @__PURE__ */
|
31909
|
-
{ key: "PageDown", run: /* @__PURE__ */
|
31910
|
-
{ key: "PageUp", run: /* @__PURE__ */
|
31906
|
+
{ key: "ArrowDown", run: /* @__PURE__ */ Un(!0) },
|
31907
|
+
{ key: "ArrowUp", run: /* @__PURE__ */ Un(!1) },
|
31908
|
+
{ key: "PageDown", run: /* @__PURE__ */ Un(!0, "page") },
|
31909
|
+
{ key: "PageUp", run: /* @__PURE__ */ Un(!1, "page") },
|
31911
31910
|
{ key: "Enter", run: $h }
|
31912
31911
|
], jF = /* @__PURE__ */ cn.highest(/* @__PURE__ */ Qn.computeN([Nt], (t) => t.facet(Nt).defaultKeymap ? [Nm] : []));
|
31913
31912
|
class D_ {
|
@@ -32715,7 +32714,7 @@ function dU(t) {
|
|
32715
32714
|
basicSetup: v = !0,
|
32716
32715
|
root: C,
|
32717
32716
|
initialState: S
|
32718
|
-
} = t, [w, A] = R(), [y, T] = R(), [k, N] = R(),
|
32717
|
+
} = t, [w, A] = R(), [y, T] = R(), [k, N] = R(), O = H.theme({
|
32719
32718
|
"&": {
|
32720
32719
|
height: u,
|
32721
32720
|
minHeight: h,
|
@@ -32727,7 +32726,7 @@ function dU(t) {
|
|
32727
32726
|
"& .cm-scroller": {
|
32728
32727
|
height: "100% !important"
|
32729
32728
|
}
|
32730
|
-
}),
|
32729
|
+
}), I = H.updateListener.of((F) => {
|
32731
32730
|
if (F.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
|
32732
32731
|
// If transaction is market as remote we don't have to call `onChange` handler again
|
32733
32732
|
!F.transactions.some((Q) => Q.annotation($_))) {
|
@@ -32742,7 +32741,7 @@ function dU(t) {
|
|
32742
32741
|
placeholder: g,
|
32743
32742
|
indentWithTab: E,
|
32744
32743
|
basicSetup: v
|
32745
|
-
}), $ = [
|
32744
|
+
}), $ = [I, O, ...D];
|
32746
32745
|
return o && typeof o == "function" && $.push(H.updateListener.of(o)), $ = $.concat(l), P(() => {
|
32747
32746
|
if (w && !k) {
|
32748
32747
|
var F = {
|
@@ -32819,7 +32818,7 @@ var uU = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
32819
32818
|
} = t, y = Er(t, uU), T = re(null), {
|
32820
32819
|
state: k,
|
32821
32820
|
view: N,
|
32822
|
-
container:
|
32821
|
+
container: O
|
32823
32822
|
} = dU({
|
32824
32823
|
container: T.current,
|
32825
32824
|
root: w,
|
@@ -32849,12 +32848,12 @@ var uU = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
32849
32848
|
editor: T.current,
|
32850
32849
|
state: k,
|
32851
32850
|
view: N
|
32852
|
-
}), [T,
|
32851
|
+
}), [T, O, k, N]), typeof n != "string")
|
32853
32852
|
throw new Error("value must be typeof string but got " + typeof n);
|
32854
|
-
var
|
32853
|
+
var I = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
|
32855
32854
|
return /* @__PURE__ */ a.jsx("div", He({
|
32856
32855
|
ref: T,
|
32857
|
-
className: "" +
|
32856
|
+
className: "" + I + (s ? " " + s : "")
|
32858
32857
|
}, y));
|
32859
32858
|
});
|
32860
32859
|
DS.displayName = "CodeMirror";
|
@@ -32876,10 +32875,10 @@ const jS = (t) => (e) => {
|
|
32876
32875
|
}, pU = [
|
32877
32876
|
{ key: "Ctrl-Space", run: Hh },
|
32878
32877
|
{ key: "Escape", run: cS },
|
32879
|
-
{ key: "ArrowDown", run: /* @__PURE__ */
|
32880
|
-
{ key: "ArrowUp", run: /* @__PURE__ */
|
32881
|
-
{ key: "PageDown", run: /* @__PURE__ */
|
32882
|
-
{ key: "PageUp", run: /* @__PURE__ */
|
32878
|
+
{ key: "ArrowDown", run: /* @__PURE__ */ Un(!0) },
|
32879
|
+
{ key: "ArrowUp", run: /* @__PURE__ */ Un(!1) },
|
32880
|
+
{ key: "PageDown", run: /* @__PURE__ */ Un(!0, "page") },
|
32881
|
+
{ key: "PageUp", run: /* @__PURE__ */ Un(!1, "page") },
|
32883
32882
|
{ key: "Enter", run: $h },
|
32884
32883
|
{ key: "Tab", run: $h },
|
32885
32884
|
{ key: "Mod-f", run: gm, scope: "editor search-panel" },
|
@@ -34740,14 +34739,14 @@ const cV = (t) => {
|
|
34740
34739
|
) });
|
34741
34740
|
}, yV = ({ view: t, defaultQuery: e }) => {
|
34742
34741
|
const [s, n] = R(new Dc({ search: "" })), [r, i] = R({ count: 0, current: 1 }), [o, l] = R(!!s.replace), c = !r.count, d = t.state.readOnly, u = ({
|
34743
|
-
caseSensitive:
|
34742
|
+
caseSensitive: I = s.caseSensitive,
|
34744
34743
|
regexp: D = s.regexp,
|
34745
34744
|
replace: $ = s.replace,
|
34746
34745
|
search: F = s.search,
|
34747
34746
|
wholeWord: G = s.wholeWord
|
34748
34747
|
}) => {
|
34749
34748
|
const Y = new Dc({
|
34750
|
-
caseSensitive:
|
34749
|
+
caseSensitive: I,
|
34751
34750
|
regexp: D,
|
34752
34751
|
replace: $,
|
34753
34752
|
search: F,
|
@@ -34762,34 +34761,34 @@ const cV = (t) => {
|
|
34762
34761
|
}, [t.state.doc.length]), P(() => {
|
34763
34762
|
d && o && l(!1);
|
34764
34763
|
}, [d]);
|
34765
|
-
const h = (
|
34766
|
-
|
34767
|
-
}, f = (
|
34768
|
-
|
34769
|
-
}, m = (
|
34770
|
-
u({ search:
|
34771
|
-
}, p = (
|
34772
|
-
|
34773
|
-
}, _ = (
|
34774
|
-
u({ replace:
|
34775
|
-
}, g = (
|
34776
|
-
|
34764
|
+
const h = (I) => {
|
34765
|
+
I?.preventDefault(), I?.stopPropagation(), Ko(t), i(Xi(s, t));
|
34766
|
+
}, f = (I) => {
|
34767
|
+
I?.preventDefault(), I?.stopPropagation(), zo(t), i(Xi(s, t));
|
34768
|
+
}, m = (I) => {
|
34769
|
+
u({ search: I.target.value });
|
34770
|
+
}, p = (I) => {
|
34771
|
+
I.key === "Enter" && (I.preventDefault(), I.shiftKey ? f() : h());
|
34772
|
+
}, _ = (I) => {
|
34773
|
+
u({ replace: I.target.value });
|
34774
|
+
}, g = (I) => {
|
34775
|
+
I.key === "Enter" && (I.preventDefault(), Mc(t));
|
34777
34776
|
}, x = () => {
|
34778
34777
|
fm(t);
|
34779
34778
|
}, b = () => {
|
34780
34779
|
Mc(t);
|
34781
34780
|
}, E = () => {
|
34782
34781
|
mm(t);
|
34783
|
-
}, v = (
|
34784
|
-
u({ caseSensitive:
|
34785
|
-
}, C = (
|
34786
|
-
u({ wholeWord:
|
34787
|
-
}, S = (
|
34788
|
-
u({ regexp:
|
34782
|
+
}, v = (I) => {
|
34783
|
+
u({ caseSensitive: I });
|
34784
|
+
}, C = (I) => {
|
34785
|
+
u({ wholeWord: I });
|
34786
|
+
}, S = (I) => {
|
34787
|
+
u({ regexp: I });
|
34789
34788
|
}, w = () => {
|
34790
34789
|
l(!o);
|
34791
|
-
}, A = (
|
34792
|
-
|
34790
|
+
}, A = (I) => {
|
34791
|
+
I.preventDefault(), I.stopPropagation(), Nd(t);
|
34793
34792
|
}, y = () => /* @__PURE__ */ a.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ a.jsx(
|
34794
34793
|
be,
|
34795
34794
|
{
|
@@ -34943,7 +34942,7 @@ const cV = (t) => {
|
|
34943
34942
|
placement: "bottom"
|
34944
34943
|
}
|
34945
34944
|
}
|
34946
|
-
),
|
34945
|
+
), O = () => /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
34947
34946
|
/* @__PURE__ */ a.jsx("div", { className: "code-editor__search__field-container", children: /* @__PURE__ */ a.jsx(
|
34948
34947
|
"input",
|
34949
34948
|
{
|
@@ -35010,7 +35009,7 @@ const cV = (t) => {
|
|
35010
35009
|
k(),
|
35011
35010
|
N()
|
35012
35011
|
] }),
|
35013
|
-
/* @__PURE__ */ a.jsx(Bf, { expand: o, children:
|
35012
|
+
/* @__PURE__ */ a.jsx(Bf, { expand: o, children: O() })
|
35014
35013
|
] })
|
35015
35014
|
] });
|
35016
35015
|
}, NV = (t) => {
|
@@ -35394,7 +35393,7 @@ function VV(t) {
|
|
35394
35393
|
basicSetup: v = !0,
|
35395
35394
|
root: C,
|
35396
35395
|
initialState: S
|
35397
|
-
} = t, [w, A] = R(), [y, T] = R(), [k, N] = R(),
|
35396
|
+
} = t, [w, A] = R(), [y, T] = R(), [k, N] = R(), O = H.theme({
|
35398
35397
|
"&": {
|
35399
35398
|
height: u,
|
35400
35399
|
minHeight: h,
|
@@ -35406,7 +35405,7 @@ function VV(t) {
|
|
35406
35405
|
"& .cm-scroller": {
|
35407
35406
|
height: "100% !important"
|
35408
35407
|
}
|
35409
|
-
}),
|
35408
|
+
}), I = H.updateListener.of((F) => {
|
35410
35409
|
if (F.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
|
35411
35410
|
// If transaction is market as remote we don't have to call `onChange` handler again
|
35412
35411
|
!F.transactions.some((Q) => Q.annotation(X_))) {
|
@@ -35421,7 +35420,7 @@ function VV(t) {
|
|
35421
35420
|
placeholder: g,
|
35422
35421
|
indentWithTab: E,
|
35423
35422
|
basicSetup: v
|
35424
|
-
}), $ = [
|
35423
|
+
}), $ = [I, O, ...D];
|
35425
35424
|
return o && typeof o == "function" && $.push(H.updateListener.of(o)), $ = $.concat(l), P(() => {
|
35426
35425
|
if (w && !k) {
|
35427
35426
|
var F = {
|
@@ -35498,7 +35497,7 @@ var $V = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
35498
35497
|
} = t, y = Er(t, $V), T = re(null), {
|
35499
35498
|
state: k,
|
35500
35499
|
view: N,
|
35501
|
-
container:
|
35500
|
+
container: O
|
35502
35501
|
} = VV({
|
35503
35502
|
container: T.current,
|
35504
35503
|
root: w,
|
@@ -35528,12 +35527,12 @@ var $V = ["className", "value", "selection", "extensions", "onChange", "onStatis
|
|
35528
35527
|
editor: T.current,
|
35529
35528
|
state: k,
|
35530
35529
|
view: N
|
35531
|
-
}), [T,
|
35530
|
+
}), [T, O, k, N]), typeof n != "string")
|
35532
35531
|
throw new Error("value must be typeof string but got " + typeof n);
|
35533
|
-
var
|
35532
|
+
var I = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
|
35534
35533
|
return /* @__PURE__ */ a.jsx("div", He({
|
35535
35534
|
ref: T,
|
35536
|
-
className: "" +
|
35535
|
+
className: "" + I + (s ? " " + s : "")
|
35537
35536
|
}, y));
|
35538
35537
|
});
|
35539
35538
|
HV.displayName = "CodeMirror";
|
@@ -36630,13 +36629,13 @@ var f$ = ["className", "children", "orientation", "revertControls", "highlightCh
|
|
36630
36629
|
}
|
36631
36630
|
}
|
36632
36631
|
if (m && m.doc && C.current) {
|
36633
|
-
var
|
36634
|
-
if (
|
36632
|
+
var O, I = (O = C.current) == null ? void 0 : O.b.state.doc.toString();
|
36633
|
+
if (I !== m.doc) {
|
36635
36634
|
var D;
|
36636
36635
|
(D = C.current) == null || D.b.dispatch({
|
36637
36636
|
changes: {
|
36638
36637
|
from: 0,
|
36639
|
-
to:
|
36638
|
+
to: I.length,
|
36640
36639
|
insert: m.doc || ""
|
36641
36640
|
}
|
36642
36641
|
// effects: StateEffect.reconfigure.of([
|
@@ -36731,8 +36730,8 @@ const _$ = ({
|
|
36731
36730
|
}, [E]), P(() => {
|
36732
36731
|
const N = document.querySelector("html");
|
36733
36732
|
if (N) {
|
36734
|
-
const { scrollWidth:
|
36735
|
-
v &&
|
36733
|
+
const { scrollWidth: O, clientWidth: I } = S.current?.view?.scrollDOM ?? {};
|
36734
|
+
v && O > I ? N.classList.add("dc__overscroll-none") : N.classList.remove("dc__overscroll-none");
|
36736
36735
|
}
|
36737
36736
|
}, [n.lhsCode, n.code, v]);
|
36738
36737
|
const w = (N) => {
|
@@ -36832,7 +36831,7 @@ const _$ = ({
|
|
36832
36831
|
const { appTheme: T } = Eb(), k = le(() => {
|
36833
36832
|
const ae = g ? n : e;
|
36834
36833
|
return C ? yx(ae) : ae;
|
36835
|
-
}, [e, n, g]), N = le(() => C ? yx(s) : s, [s]),
|
36834
|
+
}, [e, n, g]), N = le(() => C ? yx(s) : s, [s]), O = re(), I = (t ?? T) === Wn.dark, D = MV(I), [$, F] = R(), [G, Y] = R(!1), [Q, _e] = Ux(
|
36836
36835
|
TV,
|
36837
36836
|
wV({
|
36838
36837
|
mode: i,
|
@@ -36847,8 +36846,8 @@ const _$ = ({
|
|
36847
36846
|
[Q, G]
|
36848
36847
|
);
|
36849
36848
|
P(() => {
|
36850
|
-
|
36851
|
-
!!
|
36849
|
+
O.current && Y(
|
36850
|
+
!!O.current.parentElement.getAttribute("data-code-editor-container")
|
36852
36851
|
);
|
36853
36852
|
}, []), P(() => {
|
36854
36853
|
_e({ type: "setDiff", value: g });
|
@@ -36903,9 +36902,9 @@ const _$ = ({
|
|
36903
36902
|
_$,
|
36904
36903
|
{
|
36905
36904
|
codemirrorMergeKey: $,
|
36906
|
-
codeMirrorParentDivRef:
|
36905
|
+
codeMirrorParentDivRef: O,
|
36907
36906
|
codeEditorTheme: D,
|
36908
|
-
isDarkTheme:
|
36907
|
+
isDarkTheme: I,
|
36909
36908
|
state: Q,
|
36910
36909
|
loading: x,
|
36911
36910
|
customLoader: b,
|
@@ -37024,7 +37023,7 @@ const Yc = "Please provide valid YAML", Zi = {
|
|
37024
37023
|
skipValidation: r = !1,
|
37025
37024
|
fallbackMergeStrategy: i
|
37026
37025
|
}) => {
|
37027
|
-
const o = n ===
|
37026
|
+
const o = n === $n.Secret, {
|
37028
37027
|
name: l,
|
37029
37028
|
external: c,
|
37030
37029
|
externalType: d,
|
@@ -37490,7 +37489,7 @@ const Yc = "Please provide valid YAML", Zi = {
|
|
37490
37489
|
esoSecretYaml: O$(d)
|
37491
37490
|
} : {}
|
37492
37491
|
};
|
37493
|
-
},
|
37492
|
+
}, On = {
|
37494
37493
|
width: 356,
|
37495
37494
|
height: 504
|
37496
37495
|
}, Oy = "No Defined Description", I$ = "No Defined Value", R$ = "What is scoped variable?", k$ = ({
|
@@ -37592,7 +37591,7 @@ const Yc = "Please provide valid YAML", Zi = {
|
|
37592
37591
|
t && /* @__PURE__ */ a.jsx("div", { className: "flex pl-24 dc__gap-4 flex-wrap dc__content-center", children: /* @__PURE__ */ a.jsxs("p", { className: "m-0 fs-13 fw-4 lh-20 cn-9", children: [
|
37593
37592
|
"Use a scoped variable for dynamic values, which are defined in the ",
|
37594
37593
|
/* @__PURE__ */ a.jsx(
|
37595
|
-
|
37594
|
+
qn,
|
37596
37595
|
{
|
37597
37596
|
className: "cb-5 m-0",
|
37598
37597
|
to: Be.GLOBAL_CONFIG_SCOPED_VARIABLES,
|
@@ -37645,7 +37644,7 @@ const Yc = "Please provide valid YAML", Zi = {
|
|
37645
37644
|
/* @__PURE__ */ a.jsx("div", { className: "h-100", children: /* @__PURE__ */ a.jsx(
|
37646
37645
|
be,
|
37647
37646
|
{
|
37648
|
-
icon: /* @__PURE__ */ a.jsx(
|
37647
|
+
icon: /* @__PURE__ */ a.jsx(Tn, {}),
|
37649
37648
|
ariaLabel: "Close suggestions",
|
37650
37649
|
showAriaLabelInTippy: !1,
|
37651
37650
|
dataTestId: "deactivate-suggestions",
|
@@ -37767,15 +37766,15 @@ const Yc = "Please provide valid YAML", Zi = {
|
|
37767
37766
|
f({
|
37768
37767
|
x: d.x,
|
37769
37768
|
y: d.y
|
37770
|
-
}), A.y > x.height -
|
37769
|
+
}), A.y > x.height - On.height && f({
|
37771
37770
|
x: d.x,
|
37772
|
-
y: x.height -
|
37773
|
-
}), A.x > x.width -
|
37774
|
-
x: x.width -
|
37771
|
+
y: x.height - On.height - E.y
|
37772
|
+
}), A.x > x.width - On.width && f({
|
37773
|
+
x: x.width - On.width - E.x,
|
37775
37774
|
y: d.y
|
37776
|
-
}), A.x > x.width -
|
37777
|
-
x: x.width -
|
37778
|
-
y: x.height -
|
37775
|
+
}), A.x > x.width - On.width && A.y > x.height - On.height && f({
|
37776
|
+
x: x.width - On.width - E.x,
|
37777
|
+
y: x.height - On.height - E.y
|
37779
37778
|
}), c(!0);
|
37780
37779
|
}, C = dt((A) => {
|
37781
37780
|
A.stopPropagation(), c(!1);
|
@@ -38165,14 +38164,14 @@ const $$ = ({
|
|
38165
38164
|
f((/* @__PURE__ */ new Date()).toISOString()), A = -1;
|
38166
38165
|
}, 10));
|
38167
38166
|
}, T = m.current.map((k) => async () => {
|
38168
|
-
const { operation: N, name:
|
38167
|
+
const { operation: N, name: O, additionalKeys: I, renderContentAtResultRowEnd: D = null } = k;
|
38169
38168
|
if (_.current.signal.aborted)
|
38170
38169
|
throw new Error("bulk operations aborted");
|
38171
38170
|
let $ = -1;
|
38172
38171
|
try {
|
38173
38172
|
$ = p.current.addResult({
|
38174
|
-
name:
|
38175
|
-
additionalKeys:
|
38173
|
+
name: O,
|
38174
|
+
additionalKeys: I,
|
38176
38175
|
status: "Progressing",
|
38177
38176
|
message: "-"
|
38178
38177
|
}), y();
|
@@ -38373,9 +38372,9 @@ const $$ = ({
|
|
38373
38372
|
});
|
38374
38373
|
return;
|
38375
38374
|
}
|
38376
|
-
const v = E.nodes.find((S) => S.type ===
|
38377
|
-
if (E.nodes.some((S) => S.type ===
|
38378
|
-
f(
|
38375
|
+
const v = E.nodes.find((S) => S.type === Ln.CI);
|
38376
|
+
if (E.nodes.some((S) => S.type === Ln.WEBHOOK)) {
|
38377
|
+
f(Ln.WEBHOOK);
|
38379
38378
|
return;
|
38380
38379
|
}
|
38381
38380
|
if (v?.isJobCI) {
|
@@ -38398,7 +38397,7 @@ const $$ = ({
|
|
38398
38397
|
}
|
38399
38398
|
}, [o, i]);
|
38400
38399
|
const g = () => {
|
38401
|
-
if (i && o.find((C) => +C.id === i.appWorkflowId).nodes.some((C) => C.type ===
|
38400
|
+
if (i && o.find((C) => +C.id === i.appWorkflowId).nodes.some((C) => C.type === Ln.CD)) {
|
38402
38401
|
p(!0), zO(W$(i)).then((C) => {
|
38403
38402
|
C.result && (ze.showToast({
|
38404
38403
|
variant: Oe.success,
|
@@ -38494,7 +38493,7 @@ const $$ = ({
|
|
38494
38493
|
dataTestId: Xe.EXTERNAL_SERVICE.dataTestId,
|
38495
38494
|
type: Xe.EXTERNAL_SERVICE.type,
|
38496
38495
|
handleCardAction: x,
|
38497
|
-
disableInfo: b(
|
38496
|
+
disableInfo: b(Ln.WEBHOOK),
|
38498
38497
|
isDisabled: u
|
38499
38498
|
}
|
38500
38499
|
),
|
@@ -38707,7 +38706,7 @@ function Kc(t, e = !1) {
|
|
38707
38706
|
}
|
38708
38707
|
const aW = (t, e = "-") => t ? `${We(t).utc().format(ns.TWELVE_HOURS_EXPORT_FORMAT)} (UTC)` : "-";
|
38709
38708
|
function lW() {
|
38710
|
-
const t =
|
38709
|
+
const t = Jn(), e = le(() => new URLSearchParams(t.search), [t]), s = Array.from(e.entries()).reduce((n, r, i) => (n[r[0]] = r[1], n), {});
|
38711
38710
|
return { queryParams: e, searchParams: s };
|
38712
38711
|
}
|
38713
38712
|
const cW = (t, e) => {
|
@@ -39103,10 +39102,10 @@ class Ui extends me.Component {
|
|
39103
39102
|
(s.keyCode === 27 || s.key === "Escape") && (Re(s), this.props.onEscape ? this.props.onEscape(s) : this.props.close && this.props.close(s));
|
39104
39103
|
}
|
39105
39104
|
componentDidMount() {
|
39106
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"),
|
39105
|
+
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"), Yn(!0), this.props.parentClassName && this.modalRef.classList.add(this.props.parentClassName);
|
39107
39106
|
}
|
39108
39107
|
componentWillUnmount() {
|
39109
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"),
|
39108
|
+
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"), Yn(!1), this.props.parentClassName && this.modalRef.classList.remove(this.props.parentClassName);
|
39110
39109
|
}
|
39111
39110
|
render() {
|
39112
39111
|
return xf.createPortal(
|
@@ -39136,8 +39135,8 @@ const By = ({
|
|
39136
39135
|
disableTransition: d
|
39137
39136
|
}) => {
|
39138
39137
|
const u = re(null);
|
39139
|
-
P(() => (setTimeout(() => u.current?.classList?.add("show"), 1),
|
39140
|
-
u.current?.classList?.remove("show"),
|
39138
|
+
P(() => (setTimeout(() => u.current?.classList?.add("show"), 1), Yn(!0), () => {
|
39139
|
+
u.current?.classList?.remove("show"), Yn(!1);
|
39141
39140
|
}), []);
|
39142
39141
|
const h = {};
|
39143
39142
|
return (e === "left" || e === "right") && (h["--width"] = n, h["--minWidth"] = r, h["--maxWidth"] = i), (e === "top" || e === "bottom") && (h["--height"] = s), /* @__PURE__ */ a.jsx(Ui, { className: "drawer--container", parentClassName: o || "", onEscape: l, close: c, children: /* @__PURE__ */ a.jsx("aside", { style: h, ref: u, className: `drawer ${d ? "disable-transition" : ""} ${e}`, children: t }) });
|
@@ -39155,10 +39154,10 @@ class Fy extends me.Component {
|
|
39155
39154
|
Re(s), s.keyCode === 27 && this.props.close && this.props.close(s);
|
39156
39155
|
}
|
39157
39156
|
componentDidMount() {
|
39158
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"),
|
39157
|
+
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg"), Yn(!0);
|
39159
39158
|
}
|
39160
39159
|
componentWillUnmount() {
|
39161
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"),
|
39160
|
+
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg"), Yn(!1);
|
39162
39161
|
}
|
39163
39162
|
render() {
|
39164
39163
|
return xf.createPortal(
|
@@ -39240,7 +39239,7 @@ const Vy = ({
|
|
39240
39239
|
{
|
39241
39240
|
condition: !!i.to,
|
39242
39241
|
wrap: (l) => /* @__PURE__ */ a.jsx(
|
39243
|
-
|
39242
|
+
qn,
|
39244
39243
|
{
|
39245
39244
|
className: `${n === i.to ? "active" : ""} ${s} ${i.className || ""}`,
|
39246
39245
|
to: i.to,
|
@@ -39454,7 +39453,7 @@ const Mm = ({
|
|
39454
39453
|
textConfig: m
|
39455
39454
|
}) => {
|
39456
39455
|
const p = () => o ? l ? u ? /* @__PURE__ */ a.jsx(
|
39457
|
-
|
39456
|
+
qn,
|
39458
39457
|
{
|
39459
39458
|
to: l,
|
39460
39459
|
onClick: c,
|
@@ -39603,7 +39602,7 @@ const Mm = ({
|
|
39603
39602
|
u && /* @__PURE__ */ a.jsx("div", { className: "flex search-bar__clear-button dc__position-abs dc__transparent", children: /* @__PURE__ */ a.jsx(
|
39604
39603
|
be,
|
39605
39604
|
{
|
39606
|
-
icon: /* @__PURE__ */ a.jsx(
|
39605
|
+
icon: /* @__PURE__ */ a.jsx(Tn, {}),
|
39607
39606
|
size: V.xs,
|
39608
39607
|
variant: Ae.borderLess,
|
39609
39608
|
style: je.negativeGrey,
|
@@ -39674,7 +39673,7 @@ const BW = ({
|
|
39674
39673
|
configuration: u = "",
|
39675
39674
|
closeCustomComponent: h
|
39676
39675
|
}) => {
|
39677
|
-
const [f, m] = R(!1), [p, _] = R(!1), { push: g } =
|
39676
|
+
const [f, m] = R(!1), [p, _] = R(!1), { push: g } = Xn();
|
39678
39677
|
async function x() {
|
39679
39678
|
t?.(!0), m(!0);
|
39680
39679
|
try {
|
@@ -39730,7 +39729,7 @@ const BW = ({
|
|
39730
39729
|
forceReInit: h,
|
39731
39730
|
isSuperAdmin: f
|
39732
39731
|
}) => {
|
39733
|
-
const [m, p] = R(n || []), [_, g] = R(s ? s.comment : ""), [x, b] = R(i || []), [E, v] = R(s ? s.comment : ""), [C, S] = R(!1), [w, A] = R(!1), [y, T] = R(n || []), [k, N] = R(""), [
|
39732
|
+
const [m, p] = R(n || []), [_, g] = R(s ? s.comment : ""), [x, b] = R(i || []), [E, v] = R(s ? s.comment : ""), [C, S] = R(!1), [w, A] = R(!1), [y, T] = R(n || []), [k, N] = R(""), [O, I] = R([]), [D, $] = R([]), [F, G] = R([]), [Y, Q] = R(""), [_e, Ie] = R(""), [ee, J] = R(!1);
|
39734
39733
|
P(() => {
|
39735
39734
|
ye();
|
39736
39735
|
}, [n, s, l]), P(() => {
|
@@ -39744,7 +39743,7 @@ const BW = ({
|
|
39744
39743
|
const Le = te.target.value;
|
39745
39744
|
Le?.length > 500 ? Q("comment length cannot exceed 500 characters") : Q(""), v(Le);
|
39746
39745
|
}, U = () => {
|
39747
|
-
T(m), v(_),
|
39746
|
+
T(m), v(_), I([]), $([]), G([]), we(), A(!1), N("");
|
39748
39747
|
}, B = (te) => {
|
39749
39748
|
if (te.length == 0 || te.length >= 128 || te[0] == "." || te[0] == "-")
|
39750
39749
|
return N("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
@@ -39764,10 +39763,10 @@ const BW = ({
|
|
39764
39763
|
deleted: !1,
|
39765
39764
|
artifactId: 0,
|
39766
39765
|
duplicateTag: !1
|
39767
|
-
}, it = [...
|
39768
|
-
return
|
39766
|
+
}, it = [...O, Ee];
|
39767
|
+
return I(it), T([...y, Ee]), A(!0), Ie(""), it;
|
39769
39768
|
}
|
39770
|
-
return
|
39769
|
+
return O;
|
39771
39770
|
}, pe = (te) => {
|
39772
39771
|
const Le = [...y];
|
39773
39772
|
Le[te] = {
|
@@ -39777,8 +39776,8 @@ const BW = ({
|
|
39777
39776
|
const Ee = Le[te], it = [...D], yt = it.findIndex((ps) => ps.tagName === Ee.tagName);
|
39778
39777
|
yt !== -1 ? it.splice(yt, 1) : it.push(Ee), T(Le), $(it);
|
39779
39778
|
}, ce = (te) => {
|
39780
|
-
const Le = y[te], Ee =
|
39781
|
-
|
39779
|
+
const Le = y[te], Ee = O.filter((ps) => ps.tagName !== Le.tagName);
|
39780
|
+
I(Ee);
|
39782
39781
|
const it = [...y];
|
39783
39782
|
it.splice(te, 1), T(it);
|
39784
39783
|
const yt = x.filter((ps) => ps.toLowerCase() !== Le.tagName.toLowerCase());
|
@@ -39788,11 +39787,11 @@ const BW = ({
|
|
39788
39787
|
}
|
39789
39788
|
}, De = (te) => {
|
39790
39789
|
te.forEach(({ userMessage: Le }) => {
|
39791
|
-
const Ee =
|
39790
|
+
const Ee = O.map((yt) => Le?.appReleaseTags?.includes(yt.tagName) ? {
|
39792
39791
|
...yt,
|
39793
39792
|
duplicateTag: !0
|
39794
39793
|
} : yt);
|
39795
|
-
|
39794
|
+
I(Ee);
|
39796
39795
|
const it = y.map((yt) => {
|
39797
39796
|
const ps = Ee.find((Ld) => Ld.tagName === yt.tagName);
|
39798
39797
|
return ps ? { ...yt, duplicateTag: ps.duplicateTag } : yt;
|
@@ -39819,7 +39818,7 @@ const BW = ({
|
|
39819
39818
|
appId: 0,
|
39820
39819
|
artifactId: 0
|
39821
39820
|
}));
|
39822
|
-
o && o(Ee.result?.appReleaseTags), c && c(Ee.result?.tagsEditable), p(it), g(Ee.result?.imageComment?.comment), T(it), v(Ee.result?.imageComment?.comment),
|
39821
|
+
o && o(Ee.result?.appReleaseTags), c && c(Ee.result?.tagsEditable), p(it), g(Ee.result?.imageComment?.comment), T(it), v(Ee.result?.imageComment?.comment), I([]), $([]), G([]), we(), A(!1), N(""), r && r(e, it, Ee.result?.imageComment);
|
39823
39822
|
}).catch((Ee) => {
|
39824
39823
|
Ee.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ze.showToast({
|
39825
39824
|
variant: Oe.error,
|
@@ -39853,7 +39852,7 @@ const BW = ({
|
|
39853
39852
|
}, Rd = (te) => {
|
39854
39853
|
Re(te), _e.trim() && q(_e.trim());
|
39855
39854
|
}, kd = () => {
|
39856
|
-
let te =
|
39855
|
+
let te = O;
|
39857
39856
|
_e.trim() && (te = q(_e)), ae(te);
|
39858
39857
|
};
|
39859
39858
|
return /* @__PURE__ */ a.jsx("div", { className: "mt-8", children: C && l ? /* @__PURE__ */ a.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
|
@@ -40055,7 +40054,7 @@ const BW = ({
|
|
40055
40054
|
),
|
40056
40055
|
t,
|
40057
40056
|
/* @__PURE__ */ a.jsx(he, { className: "default-tt", arrow: !0, placement: "top", content: "Remove tag", children: /* @__PURE__ */ a.jsx("div", { className: `action-icon ml-4 lh-16 pt-3 ${m ? "show-icon" : ""}`, children: /* @__PURE__ */ a.jsx(
|
40058
|
-
|
40057
|
+
Tn,
|
40059
40058
|
{
|
40060
40059
|
className: "icon-dim-12 fcn-6 cursor",
|
40061
40060
|
"data-testid": `${t}-tag-hard-delete`,
|
@@ -40437,7 +40436,7 @@ const VW = ({ classes: t, parentClasses: e }) => /* @__PURE__ */ a.jsx("div", {
|
|
40437
40436
|
value: n ?? l[0],
|
40438
40437
|
options: l,
|
40439
40438
|
onChange: f,
|
40440
|
-
variant:
|
40439
|
+
variant: Gn.BORDER_LESS
|
40441
40440
|
}
|
40442
40441
|
)
|
40443
40442
|
] }),
|
@@ -40450,7 +40449,7 @@ const VW = ({ classes: t, parentClasses: e }) => /* @__PURE__ */ a.jsx("div", {
|
|
40450
40449
|
value: d ?? i[0],
|
40451
40450
|
options: i,
|
40452
40451
|
onChange: m,
|
40453
|
-
variant:
|
40452
|
+
variant: Gn.BORDER_LESS
|
40454
40453
|
}
|
40455
40454
|
)
|
40456
40455
|
] })
|
@@ -40508,7 +40507,7 @@ function HW({
|
|
40508
40507
|
}
|
40509
40508
|
) : null;
|
40510
40509
|
}
|
40511
|
-
const vH = ({ startNode: t }) => t.type ===
|
40510
|
+
const vH = ({ startNode: t }) => t.type === Ln.WEBHOOK ? gr.WEBHOOK : t.type === Ln.CI ? gr.CI_PIPELINE : gr.CD_PIPELINE, GW = ({
|
40512
40511
|
position: t,
|
40513
40512
|
handleCDSelect: e,
|
40514
40513
|
startNode: s,
|
@@ -41101,7 +41100,7 @@ const ws = {
|
|
41101
41100
|
)
|
41102
41101
|
] }) })
|
41103
41102
|
] }) }) });
|
41104
|
-
},
|
41103
|
+
}, In = {
|
41105
41104
|
NOT_DEPLOYED: {
|
41106
41105
|
noSpaceLower: "notdeployed",
|
41107
41106
|
normalCase: "Not deployed",
|
@@ -41148,10 +41147,10 @@ function qW({
|
|
41148
41147
|
}) {
|
41149
41148
|
let i = t;
|
41150
41149
|
e && (i = LH(t));
|
41151
|
-
const o = i?.toLowerCase(), l = o ===
|
41150
|
+
const o = i?.toLowerCase(), l = o === In.NOT_DEPLOYED.noSpaceLower, c = t === In.NOT_READY.normalCase, d = i || (n ? In.NOT_AVILABLE.normalCase : "-"), u = s ? kH : In.NOT_DEPLOYED.normalCase, h = l ? u : d, m = l ? In.NOT_DEPLOYED.lowerCase : c ? In.NOT_READY.lowerCase : o, p = () => m ? m === "failed" || m === "error" ? /* @__PURE__ */ a.jsx(ia, { className: "icon-dim-16 dc__no-shrink ic-error-cross-red" }) : /* @__PURE__ */ a.jsx("span", { className: `dc__app-summary__icon icon-dim-16 ${m} ${m}--node` }) : n ? /* @__PURE__ */ a.jsx(
|
41152
41151
|
"span",
|
41153
41152
|
{
|
41154
|
-
className: `dc__app-summary__icon icon-dim-16 ${
|
41153
|
+
className: `dc__app-summary__icon icon-dim-16 ${In.NOT_DEPLOYED.lowerCase} ${In.NOT_DEPLOYED.lowerCase}--node`
|
41155
41154
|
}
|
41156
41155
|
) : /* @__PURE__ */ a.jsx(
|
41157
41156
|
he,
|
@@ -41216,7 +41215,7 @@ export {
|
|
41216
41215
|
qr as aE,
|
41217
41216
|
Ww as aF,
|
41218
41217
|
gr as aG,
|
41219
|
-
|
41218
|
+
Ln as aH,
|
41220
41219
|
Io as aI,
|
41221
41220
|
ku as aJ,
|
41222
41221
|
os as aK,
|
@@ -41410,7 +41409,7 @@ export {
|
|
41410
41409
|
Fu as dD,
|
41411
41410
|
Kt as dE,
|
41412
41411
|
D0 as dF,
|
41413
|
-
|
41412
|
+
Hn as dG,
|
41414
41413
|
ad as dH,
|
41415
41414
|
Et as dI,
|
41416
41415
|
C6 as dJ,
|
@@ -41454,7 +41453,7 @@ export {
|
|
41454
41453
|
Is as dv,
|
41455
41454
|
ke as dw,
|
41456
41455
|
k0 as dx,
|
41457
|
-
|
41456
|
+
Vn as dy,
|
41458
41457
|
L0 as dz,
|
41459
41458
|
rH as e,
|
41460
41459
|
_6 as e$,
|
@@ -41544,7 +41543,7 @@ export {
|
|
41544
41543
|
yk as fI,
|
41545
41544
|
fk as fJ,
|
41546
41545
|
Ze as fK,
|
41547
|
-
|
41546
|
+
Pn as fL,
|
41548
41547
|
LR as fM,
|
41549
41548
|
DR as fN,
|
41550
41549
|
ls as fO,
|
@@ -41654,7 +41653,7 @@ export {
|
|
41654
41653
|
DW as h,
|
41655
41654
|
J8 as h$,
|
41656
41655
|
a1 as h0,
|
41657
|
-
|
41656
|
+
Gn as h1,
|
41658
41657
|
Ab as h2,
|
41659
41658
|
Nk as h3,
|
41660
41659
|
Uk as h4,
|
@@ -41737,7 +41736,7 @@ export {
|
|
41737
41736
|
Ep as iG,
|
41738
41737
|
RO as iH,
|
41739
41738
|
vY as iI,
|
41740
|
-
|
41739
|
+
Yn as iJ,
|
41741
41740
|
Np as iK,
|
41742
41741
|
SY as iL,
|
41743
41742
|
yY as iM,
|
@@ -41798,7 +41797,7 @@ export {
|
|
41798
41797
|
fb as jE,
|
41799
41798
|
ZY as jF,
|
41800
41799
|
QY as jG,
|
41801
|
-
|
41800
|
+
Wn as jH,
|
41802
41801
|
e8 as jI,
|
41803
41802
|
Eb as jJ,
|
41804
41803
|
vb as jK,
|
@@ -41902,7 +41901,7 @@ export {
|
|
41902
41901
|
Ds as kv,
|
41903
41902
|
Mu as kw,
|
41904
41903
|
At as kx,
|
41905
|
-
|
41904
|
+
$n as ky,
|
41906
41905
|
od as kz,
|
41907
41906
|
xH as l,
|
41908
41907
|
UW as m,
|