@devtron-labs/devtron-fe-common-lib 1.9.0-patch-3 → 1.9.0-patch-4
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,7 +6,7 @@ var ap = (e, s, n) => s in e ? np(e, s, { enumerable: !0, configurable: !0, writ
|
|
6
6
|
var me = (e, s, n) => ap(e, typeof s != "symbol" ? s + "" : s, n), Vi = (e, s, n) => s.has(e) || Fi("Cannot " + n);
|
7
7
|
var Ds = (e, s, n) => (Vi(e, s, "read from private field"), n ? n.call(e) : s.get(e)), fa = (e, s, n) => s.has(e) ? Fi("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), ha = (e, s, n, a) => (Vi(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
8
|
import { j as t, i as fe, n as rp, Q as Fr, k as op, D as ka, d as Gl, h as ip, A as cp, R as lp, s as dp, c as up, S as Gi, a as mp, b as pp, y as _p, l as Ua, e as fp, f as hp, g as gp, m as xp, o as Hi, p as Ep, q as Yi, r as Np, t as Cp, u as bp, v as Tp, T as Ki, w as Ko, x as Sp, z as Wi, B as Hl, C as Yl, E as Wo, F as vp, V as Ap, G as Ip, H as yp, I as Kl, J as Rp, K as jp, L as Wl, M as zi, N as Op, O as Lp, P as qi, U as wp, W as Dp, X as Fn, Y as Pp, Z as Xi, _ as $e, $ as Mp, a0 as kp, a1 as Ji, a2 as Up, a3 as Bp, a4 as Vr, a5 as Zi, a6 as $p, a7 as Fp, a8 as Vp, a9 as Gp, aa as Hp, ab as Yp, ac as Kp, ad as Wp, ae as zl, af as ql, ag as Xl, ah as zp, ai as qp, aj as Xp, ak as Jp, al as ks } from "./@vendor-CSolG4o7.js";
|
9
|
-
import Ce, { useState as R, cloneElement as Ba, useRef as Y, useEffect as k, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as
|
9
|
+
import Ce, { useState as R, cloneElement as Ba, useRef as Y, useEffect as k, Component as fr, Children as Qi, createElement as zo, useMemo as te, useCallback as qe, createContext as Mt, useContext as ls, Fragment as Hs, memo as ht, useReducer as Zp, createRef as hs } from "react";
|
10
10
|
import { ReactComponent as Zn } from "./assets/ic-warning.ecf7ff97.svg";
|
11
11
|
import { ReactComponent as Qp } from "./assets/ic-cpu.8be677ee.svg";
|
12
12
|
import { ReactComponent as e_ } from "./assets/ic-memory.c4159f96.svg";
|
@@ -378,7 +378,7 @@ var He = /* @__PURE__ */ ((e) => (e[e.BAD_REQUEST = 400] = "BAD_REQUEST", e[e.UN
|
|
378
378
|
const pg = {
|
379
379
|
TITLE: "Access denied",
|
380
380
|
SUBTITLE: "You do not have required access to perform this action"
|
381
|
-
},
|
381
|
+
}, We = {
|
382
382
|
PAGE_NOT_FOUND: "Not found",
|
383
383
|
PAGE_NOT_EXIST: "Error 404: The requested resource could not be found. Please check the URL and try again.",
|
384
384
|
TAKE_BACK_HOME: "Go back home",
|
@@ -690,7 +690,7 @@ const gt = (e, s, n, a) => ta(e, "POST", s, n, a), oi = (e, s, n) => ta(e, "PUT"
|
|
690
690
|
// The 0 code is common for aborted and blocked requests
|
691
691
|
e && e.code === 0 && e.message.search("abort|aborted") > -1
|
692
692
|
);
|
693
|
-
var wg = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(wg || {}), ae = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e))(ae || {}), Co = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(Co || {}),
|
693
|
+
var wg = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(wg || {}), ae = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e))(ae || {}), Co = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(Co || {}), ze = /* @__PURE__ */ ((e) => (e.GIT = "git", e.GITHUB = "github", e.GITLAB = "gitlab", e.BITBUCKET = "bitbucket", e.DOCKER = "docker", e.DOCKER_HUB = "docker-hub", e.ACR = "acr", e.QUAY = "quay", e.ECR = "ecr", e.ARTIFACT_REGISTRY = "artifact-registry", e.GCR = "gcr", e.OTHER = "other", e))(ze || {}), ci = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(ci || {}), en = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(en || {}), Dg = /* @__PURE__ */ ((e) => (e.HEALTHY = "healthy", e.NONE = "none", e.UNKNOWN = "unknown", e.UPGRADING = "upgrading", e.UPGRADE_FAILED = "upgradeFailed", e.INSTALLED = "installed", e.INSTALLING = "installing", e.INSTALL_FAILED = "installFailed", e.NOT_INSTALLED = "notInstalled", e.TIMEOUT = "timeout", e))(Dg || {}), Pg = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(Pg || {}), $d = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))($d || {}), lt = /* @__PURE__ */ ((e) => (e.devtronApplication = "application/devtron-application", e.helmChart = "application/helm-application", e.job = "job", e.cluster = "cluster", e.release = "release", e.releaseTrack = "release-track", e.releaseChannel = "release-channel", e.tenant = "tenant", e.installation = "installation", e.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(lt || {}), li = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(li || {}), Mg = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(Mg || {}), Yn = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(Yn || {}), Ut = /* @__PURE__ */ ((e) => (e.Workloads = "Workloads", e.Networking = "Networking", e["Config & Storage"] = "Config & Storage", e.RBAC = "RBAC", e.Administration = "Administration", e["Custom Resource"] = "Custom Resource", e["Other Resources"] = "Other Resources", e.Events = "Events", e.Namespaces = "Namespaces", e.Nodes = "Nodes", e))(Ut || {}), kg = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(kg || {}), Ug = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(Ug || {}), ya = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(ya || {}), Bg = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))(Bg || {}), Fd = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(Fd || {});
|
694
694
|
const YO = [
|
695
695
|
{
|
696
696
|
label: "GUI",
|
@@ -1158,7 +1158,7 @@ const zO = Object.values(
|
|
1158
1158
|
"ic-unknown": Kh,
|
1159
1159
|
"ic-user-key": Wh,
|
1160
1160
|
"ic-warning": zh
|
1161
|
-
},
|
1161
|
+
}, Ke = (e) => /* @__PURE__ */ t.jsx(ox, { ...e, iconMap: ix }), Ue = ({ pageLoader: e, size: s, theme: n, styles: a, fillColor: r }) => {
|
1162
1162
|
const o = s ? `${s}px` : e ? "48px" : "20px";
|
1163
1163
|
return /* @__PURE__ */ t.jsx("div", { className: `loader ${n || "default"}-background`, style: a, "data-testid": "progressing", children: /* @__PURE__ */ t.jsx("div", { style: { width: o, height: o }, children: /* @__PURE__ */ t.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: "loader__svg", children: /* @__PURE__ */ t.jsxs("g", { fill: "none", fillRule: "evenodd", strokeLinecap: "round", children: [
|
1164
1164
|
/* @__PURE__ */ t.jsx(
|
@@ -1278,7 +1278,7 @@ const Yd = {
|
|
1278
1278
|
triggerAutoClickTimestamp: h,
|
1279
1279
|
...g
|
1280
1280
|
}) => {
|
1281
|
-
const [f, N] = R(!1), C = Y(), A = Y(null),
|
1281
|
+
const [f, N] = R(!1), C = Y(), A = Y(null), v = c || l, I = `dc__no-shrink flex dc__fill-available-space ${dx({
|
1282
1282
|
size: a,
|
1283
1283
|
icon: m
|
1284
1284
|
})}`;
|
@@ -1291,7 +1291,7 @@ const Yd = {
|
|
1291
1291
|
}), [h]);
|
1292
1292
|
const y = (b) => {
|
1293
1293
|
N(!1), clearTimeout(C.current), g.onClick?.(b);
|
1294
|
-
},
|
1294
|
+
}, T = () => !d && _ && m && p ? {
|
1295
1295
|
alwaysShowTippyOnHover: !0,
|
1296
1296
|
content: p
|
1297
1297
|
} : Object.hasOwn(u, "shortcutKeyCombo") && "shortcutKeyCombo" in u ? u : {
|
@@ -1299,12 +1299,12 @@ const Yd = {
|
|
1299
1299
|
alwaysShowTippyOnHover: d && !!u?.content,
|
1300
1300
|
...u
|
1301
1301
|
};
|
1302
|
-
return /* @__PURE__ */ t.jsx(ie, { ...
|
1302
|
+
return /* @__PURE__ */ t.jsx(ie, { ...T(), children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsxs(
|
1303
1303
|
px,
|
1304
1304
|
{
|
1305
1305
|
...g,
|
1306
|
-
disabled:
|
1307
|
-
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${mx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${
|
1306
|
+
disabled: v,
|
1307
|
+
className: `br-4 flex cursor dc__tab-focus dc__position-rel dc__capitalize ${x ? "dc__opacity-hover--child" : ""} ${mx({ size: a, variant: n, style: r, isLoading: l, icon: m, isAutoTriggerActive: f })} ${v ? "dc__disabled" : ""} ${E ? "w-100" : ""}`,
|
1308
1308
|
"data-testid": e,
|
1309
1309
|
"aria-label": p || (l ? s : void 0),
|
1310
1310
|
elementRef: A,
|
@@ -1338,7 +1338,7 @@ const Yd = {
|
|
1338
1338
|
useInfoIcon: c = !1,
|
1339
1339
|
progressingProps: l
|
1340
1340
|
}) => {
|
1341
|
-
const d = () => l ? /* @__PURE__ */ t.jsx(
|
1341
|
+
const d = () => l ? /* @__PURE__ */ t.jsx(Ke, { name: "ic-circle-loader", ...l }) : c ? /* @__PURE__ */ t.jsx(Xo, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(ds, { className: "icon-dim-24 alert-icon-r5-imp" }), u = (m) => m ? typeof m == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 dc__truncate--clamp-6", children: m }) : m : null;
|
1342
1342
|
return /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${i || ""}`, children: [
|
1343
1343
|
d(),
|
1344
1344
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
|
@@ -1700,20 +1700,20 @@ const di = (e) => {
|
|
1700
1700
|
Icon: N,
|
1701
1701
|
iconPath: C,
|
1702
1702
|
iconClass: A,
|
1703
|
-
iconSize:
|
1703
|
+
iconSize: v,
|
1704
1704
|
onImageLoadError: I,
|
1705
1705
|
heading: y,
|
1706
|
-
headingInfo:
|
1706
|
+
headingInfo: T,
|
1707
1707
|
infoTextHeading: b,
|
1708
|
-
hideHeading:
|
1709
|
-
infoText:
|
1710
|
-
showCloseButton:
|
1708
|
+
hideHeading: j,
|
1709
|
+
infoText: S,
|
1710
|
+
showCloseButton: O,
|
1711
1711
|
additionalContent: w,
|
1712
1712
|
documentationLink: L,
|
1713
1713
|
documentationLinkText: B
|
1714
1714
|
} = e;
|
1715
1715
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
1716
|
-
!
|
1716
|
+
!j && /* @__PURE__ */ t.jsxs(
|
1717
1717
|
"div",
|
1718
1718
|
{
|
1719
1719
|
className: `dc__word-break dc__hyphens-auto flex dc__align-start left ${r ? `p-12 cn-9 ${e.noHeadingBorder ? "" : "border__secondary-translucent--bottom"}` : "pt-20 pb-12 pr-20 pl-20 cn-0 top"}`,
|
@@ -1721,15 +1721,15 @@ const di = (e) => {
|
|
1721
1721
|
C ? /* @__PURE__ */ t.jsx(
|
1722
1722
|
"img",
|
1723
1723
|
{
|
1724
|
-
className: `icon-dim-${
|
1724
|
+
className: `icon-dim-${v || 20} mr-6 ${A || ""}`,
|
1725
1725
|
src: C,
|
1726
1726
|
alt: "Heading",
|
1727
1727
|
onError: I
|
1728
1728
|
}
|
1729
|
-
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${
|
1730
|
-
y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${
|
1731
|
-
|
1732
|
-
|
1729
|
+
) : N && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${v || 20} mr-6`, children: /* @__PURE__ */ t.jsx(N, { className: `icon-dim-${v || 20} ${A || ""}` }) }),
|
1730
|
+
y && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${O ? "mr-12" : ""}`, children: y }),
|
1731
|
+
T && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: l, children: /* @__PURE__ */ t.jsx(hn, { className: "icon-dim-20" }) }),
|
1732
|
+
O && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
1733
1733
|
us,
|
1734
1734
|
{
|
1735
1735
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "icon-fill__white"}`,
|
@@ -1745,7 +1745,7 @@ const di = (e) => {
|
|
1745
1745
|
className: `flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
1746
1746
|
children: [
|
1747
1747
|
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(gn, { className: "icon-dim-20 fcv-5" }) }),
|
1748
|
-
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children:
|
1748
|
+
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: T })
|
1749
1749
|
]
|
1750
1750
|
}
|
1751
1751
|
),
|
@@ -1756,11 +1756,11 @@ const di = (e) => {
|
|
1756
1756
|
children: b
|
1757
1757
|
}
|
1758
1758
|
),
|
1759
|
-
|
1759
|
+
S && /* @__PURE__ */ t.jsx(
|
1760
1760
|
"div",
|
1761
1761
|
{
|
1762
1762
|
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${r ? "p-12" : `pl-20 pr-20 pt-4 ${w && L ? "pb-12" : "pb-20"}`}`,
|
1763
|
-
children:
|
1763
|
+
children: S
|
1764
1764
|
}
|
1765
1765
|
),
|
1766
1766
|
w,
|
@@ -2600,7 +2600,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2600
2600
|
!c && o && /* @__PURE__ */ t.jsx(En, { placement: "bottom-start", iconClass: "fcv-5", ...o })
|
2601
2601
|
] });
|
2602
2602
|
}, Kr = ({ id: e, text: s, icon: n, textClass: a }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 fs-11 lh-16 fw-4", id: e, children: [
|
2603
|
-
/* @__PURE__ */ t.jsx(
|
2603
|
+
/* @__PURE__ */ t.jsx(Ke, { name: n, size: 16, color: null }),
|
2604
2604
|
/* @__PURE__ */ t.jsx("span", { className: `dc__ellipsis-right__2nd-line ${a}`, children: s })
|
2605
2605
|
] }), zx = ({ error: e, helperText: s, warningText: n, inputId: a }) => /* @__PURE__ */ t.jsxs("div", { className: "flex left column dc__gap-4", children: [
|
2606
2606
|
!!e && /* @__PURE__ */ t.jsx(Kr, { text: e, icon: "ic-error", textClass: "cr-5", id: Qd(a) }),
|
@@ -2674,14 +2674,14 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2674
2674
|
shouldRenderCustomOptions: N = !1,
|
2675
2675
|
isSearchable: C,
|
2676
2676
|
selectRef: A,
|
2677
|
-
shouldMenuAlignRight:
|
2677
|
+
shouldMenuAlignRight: v = !1,
|
2678
2678
|
fullWidth: I = !1,
|
2679
2679
|
customSelectedOptionsCount: y = null,
|
2680
|
-
renderMenuListFooter:
|
2680
|
+
renderMenuListFooter: T,
|
2681
2681
|
isCreatable: b = !1,
|
2682
|
-
onCreateOption:
|
2683
|
-
closeMenuOnSelect:
|
2684
|
-
shouldShowNoOptionsMessage:
|
2682
|
+
onCreateOption: j,
|
2683
|
+
closeMenuOnSelect: S = !1,
|
2684
|
+
shouldShowNoOptionsMessage: O = !0,
|
2685
2685
|
shouldRenderTextArea: w = !1,
|
2686
2686
|
onKeyDown: L,
|
2687
2687
|
shouldHideMenu: B = !1,
|
@@ -2714,9 +2714,9 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2714
2714
|
variant: _,
|
2715
2715
|
getIsOptionValid: je,
|
2716
2716
|
isGroupHeadingSelectable: se,
|
2717
|
-
shouldMenuAlignRight:
|
2717
|
+
shouldMenuAlignRight: v
|
2718
2718
|
}),
|
2719
|
-
[e, _a, d, _, se,
|
2719
|
+
[e, _a, d, _, se, v]
|
2720
2720
|
), _e = (we) => {
|
2721
2721
|
const ms = we?.trim();
|
2722
2722
|
return b && !!ms && !_n(
|
@@ -2725,7 +2725,7 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2725
2725
|
null,
|
2726
2726
|
K
|
2727
2727
|
) && !_n(Ee, ms, null, K);
|
2728
|
-
}, Ge =
|
2728
|
+
}, Ge = qe(
|
2729
2729
|
(we) => /* @__PURE__ */ t.jsx(
|
2730
2730
|
Bx,
|
2731
2731
|
{
|
@@ -2735,15 +2735,15 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2735
2735
|
}
|
2736
2736
|
),
|
2737
2737
|
[l, y]
|
2738
|
-
), tt =
|
2738
|
+
), tt = qe(
|
2739
2739
|
(we) => /* @__PURE__ */ t.jsx(Fx, { ...we, disableDescriptionEllipsis: E }),
|
2740
2740
|
[E]
|
2741
|
-
), Ot = (we) => /* @__PURE__ */ t.jsx(Gx, { ...we, getIsOptionValid: je }), $r =
|
2741
|
+
), Ot = (we) => /* @__PURE__ */ t.jsx(Gx, { ...we, getIsOptionValid: je }), $r = qe(
|
2742
2742
|
(we) => /* @__PURE__ */ t.jsx(Yx, { ...we, isGroupHeadingSelectable: se }),
|
2743
2743
|
[se]
|
2744
|
-
), qm = () => u ? /* @__PURE__ */ t.jsx(Js, { reload: m }) :
|
2744
|
+
), qm = () => u ? /* @__PURE__ */ t.jsx(Js, { reload: m }) : O ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No options" }) : null, Xm = (we) => /* @__PURE__ */ t.jsx(fe, { content: c, placement: "top", className: "default-tt", arrow: !1, children: we }), Jm = (we) => {
|
2745
2745
|
const ms = we?.trim();
|
2746
|
-
ms &&
|
2746
|
+
ms && j?.(ms);
|
2747
2747
|
}, Zm = (we, ms) => {
|
2748
2748
|
if (F.onInputChange) {
|
2749
2749
|
F.onInputChange(we, ms);
|
@@ -2822,12 +2822,12 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2822
2822
|
DropdownIndicator: () => null
|
2823
2823
|
}
|
2824
2824
|
},
|
2825
|
-
closeMenuOnSelect: !h ||
|
2825
|
+
closeMenuOnSelect: !h || S,
|
2826
2826
|
allowCreateWhileLoading: !1,
|
2827
2827
|
isValidNewOption: _e,
|
2828
2828
|
createOptionPosition: "first",
|
2829
2829
|
onCreateOption: Jm,
|
2830
|
-
renderMenuListFooter: !u &&
|
2830
|
+
renderMenuListFooter: !u && T,
|
2831
2831
|
inputValue: F.inputValue ?? pe,
|
2832
2832
|
onInputChange: Zm,
|
2833
2833
|
icon: s,
|
@@ -2895,9 +2895,9 @@ const Dx = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
2895
2895
|
const { selectionStart: N, selectionEnd: C } = m.current.inputRef, A = `${d.slice(0, N)}
|
2896
2896
|
${d.slice(C)}`;
|
2897
2897
|
u(A);
|
2898
|
-
const
|
2899
|
-
`), b = parseInt(getComputedStyle(
|
2900
|
-
|
2898
|
+
const v = m.current.inputRef, I = v.selectionStart, T = v.value.substring(0, I).split(`
|
2899
|
+
`), b = parseInt(getComputedStyle(v).lineHeight, 10), S = T.length * b - v.scrollTop;
|
2900
|
+
S < 0 ? v.scrollTop += S : S > v.offsetHeight - b && (v.scrollTop += S - v.offsetHeight + b), setTimeout(() => {
|
2901
2901
|
m.current.inputRef.selectionStart = N + 1, m.current.inputRef.selectionEnd = N + 1;
|
2902
2902
|
});
|
2903
2903
|
return;
|
@@ -3287,32 +3287,32 @@ const Sc = () => ({
|
|
3287
3287
|
);
|
3288
3288
|
else {
|
3289
3289
|
i.current = !0;
|
3290
|
-
const
|
3291
|
-
if (
|
3290
|
+
const j = localStorage.getItem(n);
|
3291
|
+
if (j)
|
3292
3292
|
try {
|
3293
|
-
const
|
3294
|
-
return o.replace({ search:
|
3293
|
+
const S = Je("", JSON.parse(j)), O = new URLSearchParams(S.split("?")[1] ?? "");
|
3294
|
+
return o.replace({ search: O.toString() }), O;
|
3295
3295
|
} catch {
|
3296
3296
|
localStorage.removeItem(n);
|
3297
3297
|
}
|
3298
3298
|
}
|
3299
3299
|
return b;
|
3300
3300
|
})(), d = (b) => s ? s(b) : {}, { pageSize: u, pageNumber: m, searchKey: p, sortBy: _, sortOrder: E, parsedParams: x } = te(() => {
|
3301
|
-
const b = l.get(Ac),
|
3301
|
+
const b = l.get(Ac), j = l.get(zr), S = l.get(Ic), O = l.get(Rc), L = l.get(yc) || e || "", B = Object.values(xe).includes(O) ? O : xe.ASC, V = d(l);
|
3302
3302
|
return {
|
3303
3303
|
pageSize: Number(b) || nn,
|
3304
|
-
pageNumber: Number(
|
3305
|
-
searchKey:
|
3304
|
+
pageNumber: Number(j) || rn,
|
3305
|
+
searchKey: S || "",
|
3306
3306
|
sortBy: L,
|
3307
3307
|
// sort order should only be applied if the key is available
|
3308
3308
|
sortOrder: L ? B : "",
|
3309
3309
|
parsedParams: V
|
3310
3310
|
};
|
3311
|
-
}, [l]), h = u * (m - 1), g = (b,
|
3312
|
-
const
|
3313
|
-
(
|
3314
|
-
}, f = (b,
|
3315
|
-
l.set(b, String(
|
3311
|
+
}, [l]), h = u * (m - 1), g = (b, j) => {
|
3312
|
+
const S = { search: b };
|
3313
|
+
(j.redirectionMethod ?? a) === "push" ? o.push(S) : o.replace(S);
|
3314
|
+
}, f = (b, j, S = {}) => {
|
3315
|
+
l.set(b, String(j)), g(l.toString(), S);
|
3316
3316
|
}, N = (b = {}) => {
|
3317
3317
|
if (m !== rn) {
|
3318
3318
|
f(zr, rn, b);
|
@@ -3336,19 +3336,19 @@ const Sc = () => ({
|
|
3336
3336
|
sortBy: _,
|
3337
3337
|
sortOrder: E,
|
3338
3338
|
handleSorting: (b) => {
|
3339
|
-
let
|
3340
|
-
b === _ && E === xe.ASC ?
|
3339
|
+
let j;
|
3340
|
+
b === _ && E === xe.ASC ? j = xe.DESC : j = xe.ASC, f(yc, b), f(Rc, j), N();
|
3341
3341
|
},
|
3342
3342
|
clearFilters: () => {
|
3343
3343
|
g("", {}), n && localStorage.removeItem(n);
|
3344
3344
|
},
|
3345
3345
|
...x,
|
3346
|
-
updateSearchParams: (b,
|
3347
|
-
Object.keys(b).forEach((
|
3348
|
-
Ld.includes(b[
|
3349
|
-
l.append(
|
3350
|
-
})) : l.set(
|
3351
|
-
}), vc(n, JSON.stringify(d(l))), N(
|
3346
|
+
updateSearchParams: (b, j = {}) => {
|
3347
|
+
Object.keys(b).forEach((S) => {
|
3348
|
+
Ld.includes(b[S]) ? l.delete(S) : Array.isArray(b[S]) ? (l.delete(S), b[S].forEach((O) => {
|
3349
|
+
l.append(S, O);
|
3350
|
+
})) : l.set(S, b[S]);
|
3351
|
+
}), vc(n, JSON.stringify(d(l))), N(j);
|
3352
3352
|
}
|
3353
3353
|
};
|
3354
3354
|
}, ru = Mt(null), aa = () => ls(ru), Ca = (e) => {
|
@@ -3368,34 +3368,34 @@ const Sc = () => ({
|
|
3368
3368
|
shortcutTimeout: n,
|
3369
3369
|
children: a
|
3370
3370
|
}) => {
|
3371
|
-
const r = Y(!1), o = Y({}), i = Y(/* @__PURE__ */ new Set()), c = Y(-1), l = e ?? xE, d =
|
3371
|
+
const r = Y(!1), o = Y({}), i = Y(/* @__PURE__ */ new Set()), c = Y(-1), l = e ?? xE, d = qe(
|
3372
3372
|
({ keys: g, callback: f, description: N = "" }) => {
|
3373
3373
|
const { keys: C, id: A } = Ca(g);
|
3374
3374
|
if (typeof f != "function")
|
3375
3375
|
throw new Error("callback provided is not a function");
|
3376
|
-
const
|
3377
|
-
if (
|
3378
|
-
ba(
|
3376
|
+
const v = o.current[A] && Ad(o.current[A].keys, g) ? o.current[A] : null;
|
3377
|
+
if (v) {
|
3378
|
+
ba(v.callbackStack), v.callbackStack.push(f);
|
3379
3379
|
return;
|
3380
3380
|
}
|
3381
3381
|
o.current[A] = { keys: C, callbackStack: [f], description: N };
|
3382
3382
|
},
|
3383
3383
|
[]
|
3384
|
-
), u =
|
3384
|
+
), u = qe((g) => {
|
3385
3385
|
const { id: f } = Ca(g);
|
3386
3386
|
if (!o.current[f])
|
3387
3387
|
return;
|
3388
3388
|
const { callbackStack: N } = o.current[f];
|
3389
3389
|
ba(N), N.pop(), N.length || delete o.current[f];
|
3390
|
-
}, []), m =
|
3390
|
+
}, []), m = qe((g) => {
|
3391
3391
|
r.current = g;
|
3392
|
-
}, []), p =
|
3392
|
+
}, []), p = qe((g) => {
|
3393
3393
|
const { id: f } = Ca(g);
|
3394
3394
|
if (!o.current[f])
|
3395
3395
|
return;
|
3396
3396
|
const { callbackStack: N } = o.current[f];
|
3397
3397
|
ba(N), N[N.length - 1]();
|
3398
|
-
}, []), _ =
|
3398
|
+
}, []), _ = qe(() => {
|
3399
3399
|
if (!i.current.size)
|
3400
3400
|
return;
|
3401
3401
|
const { id: g } = Ca(Array.from(i.current.values()));
|
@@ -3404,11 +3404,11 @@ const Sc = () => ({
|
|
3404
3404
|
ba(f), f[f.length - 1]();
|
3405
3405
|
}
|
3406
3406
|
i.current.clear(), c.current > -1 && (clearTimeout(c.current), c.current = -1);
|
3407
|
-
}, []), E =
|
3407
|
+
}, []), E = qe((g) => {
|
3408
3408
|
s && g.preventDefault(), !(l.map((f) => f.toUpperCase()).indexOf(g.target.tagName.toUpperCase()) > -1 || g.target?.role === "textbox" || r.current) && (i.current.add(g.key.toUpperCase()), g.ctrlKey && i.current.add("CONTROL"), g.metaKey && i.current.add("META"), g.altKey && i.current.add("ALT"), g.shiftKey && i.current.add("SHIFT"), c.current === -1 && (c.current = setTimeout(() => {
|
3409
3409
|
_();
|
3410
3410
|
}, n ?? EE)));
|
3411
|
-
}, []), x =
|
3411
|
+
}, []), x = qe(() => {
|
3412
3412
|
i.current.clear();
|
3413
3413
|
}, []);
|
3414
3414
|
k(() => (window.addEventListener("keydown", E), window.addEventListener("keyup", _), window.addEventListener("blur", x), () => {
|
@@ -4132,7 +4132,7 @@ const AL = (e, s = !1) => {
|
|
4132
4132
|
}, [i, o]);
|
4133
4133
|
const x = (f) => {
|
4134
4134
|
const N = Object.keys(f || {}), C = Object.keys(i?.profile?.configurations || {});
|
4135
|
-
return N.concat(C).reduce((A,
|
4135
|
+
return N.concat(C).reduce((A, v) => (A[v] = !0, A), {});
|
4136
4136
|
};
|
4137
4137
|
return {
|
4138
4138
|
isLoading: o,
|
@@ -4142,61 +4142,61 @@ const AL = (e, s = !1) => {
|
|
4142
4142
|
profileInput: d,
|
4143
4143
|
profileInputErrors: m,
|
4144
4144
|
handleProfileInputChange: ({ action: f, data: N }) => {
|
4145
|
-
const C = structuredClone(d), A = structuredClone(m),
|
4146
|
-
i.profile.configurations[
|
4145
|
+
const C = structuredClone(d), A = structuredClone(m), v = N && "targetPlatform" in N && Object.hasOwn(N, "targetPlatform") ? N.targetPlatform : "", I = C.configurations[v], y = structuredClone(
|
4146
|
+
i.profile.configurations[v] || I
|
4147
4147
|
);
|
4148
4148
|
switch (f) {
|
4149
4149
|
case $t.DESCRIPTION: {
|
4150
|
-
const { value:
|
4151
|
-
C.description =
|
4150
|
+
const { value: T } = N;
|
4151
|
+
C.description = T, A[$t.DESCRIPTION] = RE(T).message;
|
4152
4152
|
break;
|
4153
4153
|
}
|
4154
4154
|
case $t.NAME: {
|
4155
|
-
const { value:
|
4156
|
-
C.name =
|
4155
|
+
const { value: T } = N;
|
4156
|
+
C.name = T, A[$t.NAME] = yE(T).message;
|
4157
4157
|
break;
|
4158
4158
|
}
|
4159
4159
|
case U.CPU_LIMIT:
|
4160
4160
|
case U.CPU_REQUEST:
|
4161
4161
|
case U.MEMORY_LIMIT:
|
4162
4162
|
case U.MEMORY_REQUEST: {
|
4163
|
-
const { value:
|
4163
|
+
const { value: T, unit: b } = N;
|
4164
4164
|
I[f] = {
|
4165
4165
|
...I[f],
|
4166
4166
|
key: f,
|
4167
|
-
value:
|
4167
|
+
value: T,
|
4168
4168
|
unit: b
|
4169
4169
|
};
|
4170
|
-
const { keyToPersist:
|
4170
|
+
const { keyToPersist: j, keyToPersistConfigType: S } = vx[f], { request: O, limit: w } = DE({
|
4171
4171
|
request: {
|
4172
|
-
value:
|
4172
|
+
value: T,
|
4173
4173
|
unit: b
|
4174
4174
|
},
|
4175
4175
|
limit: {
|
4176
|
-
value:
|
4176
|
+
value: T,
|
4177
4177
|
unit: b
|
4178
4178
|
},
|
4179
|
-
[
|
4180
|
-
value: I[
|
4181
|
-
unit: I[
|
4179
|
+
[j]: {
|
4180
|
+
value: I[S].value,
|
4181
|
+
unit: I[S].unit
|
4182
4182
|
},
|
4183
4183
|
unitsMap: i.configurationUnits[f]
|
4184
4184
|
});
|
4185
|
-
if (
|
4186
|
-
A[
|
4185
|
+
if (j === "limit") {
|
4186
|
+
A[S] = w.message, A[f] = O.message;
|
4187
4187
|
break;
|
4188
4188
|
}
|
4189
|
-
A[f] = w.message, A[
|
4189
|
+
A[f] = w.message, A[S] = O.message;
|
4190
4190
|
break;
|
4191
4191
|
}
|
4192
4192
|
case U.BUILD_TIMEOUT: {
|
4193
|
-
const { value:
|
4193
|
+
const { value: T, unit: b } = N;
|
4194
4194
|
I[f] = {
|
4195
4195
|
...I[f],
|
4196
4196
|
key: f,
|
4197
|
-
value:
|
4197
|
+
value: T,
|
4198
4198
|
unit: b
|
4199
|
-
}, A[f] = jE(
|
4199
|
+
}, A[f] = jE(T).message;
|
4200
4200
|
break;
|
4201
4201
|
}
|
4202
4202
|
case "activate_tolerance":
|
@@ -4204,12 +4204,12 @@ const AL = (e, s = !1) => {
|
|
4204
4204
|
case "activate_timeout":
|
4205
4205
|
case "activate_memory":
|
4206
4206
|
case "activate_cpu": {
|
4207
|
-
const
|
4208
|
-
fc[
|
4209
|
-
I[
|
4210
|
-
...y[
|
4207
|
+
const T = _c[f];
|
4208
|
+
fc[T]?.forEach((j) => {
|
4209
|
+
I[j] = {
|
4210
|
+
...y[j],
|
4211
4211
|
active: !0
|
4212
|
-
}, A[
|
4212
|
+
}, A[j] = null;
|
4213
4213
|
});
|
4214
4214
|
break;
|
4215
4215
|
}
|
@@ -4218,13 +4218,13 @@ const AL = (e, s = !1) => {
|
|
4218
4218
|
case "de_activate_memory":
|
4219
4219
|
case "de_activate_timeout":
|
4220
4220
|
case "de_activate_cpu": {
|
4221
|
-
const
|
4222
|
-
fc[
|
4223
|
-
I[
|
4224
|
-
...I[
|
4225
|
-
...y[
|
4221
|
+
const T = _c[f];
|
4222
|
+
fc[T]?.forEach((j) => {
|
4223
|
+
I[j] = {
|
4224
|
+
...I[j],
|
4225
|
+
...y[j]?.defaultValue,
|
4226
4226
|
active: !1
|
4227
|
-
}, A[
|
4227
|
+
}, A[j] = null;
|
4228
4228
|
});
|
4229
4229
|
break;
|
4230
4230
|
}
|
@@ -4232,8 +4232,8 @@ const AL = (e, s = !1) => {
|
|
4232
4232
|
case "activate_cs":
|
4233
4233
|
case "de_activate_cm":
|
4234
4234
|
case "de_activate_cs": {
|
4235
|
-
const { id:
|
4236
|
-
if (
|
4235
|
+
const { id: T, componentType: b } = N, j = Xe[b], S = I[j].value, O = S.findIndex((L) => L.id === T);
|
4236
|
+
if (O === -1 || !S[O].canOverride) {
|
4237
4237
|
const L = "Unable to customize this CM/CS";
|
4238
4238
|
ke.showToast({
|
4239
4239
|
variant: Se.error,
|
@@ -4242,46 +4242,46 @@ const AL = (e, s = !1) => {
|
|
4242
4242
|
return;
|
4243
4243
|
}
|
4244
4244
|
const w = f === "activate_cm" || f === "activate_cs";
|
4245
|
-
if (
|
4246
|
-
const B = (y[
|
4247
|
-
|
4245
|
+
if (S[O].isOverridden = w, w) {
|
4246
|
+
const B = (y[j]?.value || []).find((V) => V.id === T) || S[O];
|
4247
|
+
S[O].useFormProps = B?.useFormProps, S[O].initialResponse = B?.initialResponse;
|
4248
4248
|
} else
|
4249
|
-
|
4250
|
-
A[Xe[b]] && (delete A[Xe[b]][
|
4249
|
+
S[O].useFormProps = S[O].defaultValue, S[O].initialResponse = S[O].defaultValueInitialResponse;
|
4250
|
+
A[Xe[b]] && (delete A[Xe[b]][T], Object.keys(A[Xe[b]]).length === 0 && (A[Xe[b]] = null));
|
4251
4251
|
break;
|
4252
4252
|
}
|
4253
4253
|
case Et.ADD_TARGET_PLATFORM: {
|
4254
|
-
const { handleCaptureSnapshot:
|
4255
|
-
A[Wn.TARGET_PLATFORM] =
|
4256
|
-
|
4254
|
+
const { handleCaptureSnapshot: T } = N;
|
4255
|
+
A[Wn.TARGET_PLATFORM] = v ? Dc(
|
4256
|
+
v,
|
4257
4257
|
x(C.configurations)
|
4258
|
-
).message : "", C.configurations[
|
4258
|
+
).message : "", C.configurations[v] = i.fallbackPlatformConfigurationMap[v] || // Here need to update target platform name for each configuration
|
4259
4259
|
Object.entries(
|
4260
4260
|
i.fallbackPlatformConfigurationMap[rs]
|
4261
|
-
).reduce((b, [
|
4262
|
-
...
|
4263
|
-
targetPlatform:
|
4264
|
-
}, b), {}),
|
4261
|
+
).reduce((b, [j, S]) => (b[j] = {
|
4262
|
+
...S,
|
4263
|
+
targetPlatform: v
|
4264
|
+
}, b), {}), T(C);
|
4265
4265
|
break;
|
4266
4266
|
}
|
4267
4267
|
case Et.REMOVE_TARGET_PLATFORM: {
|
4268
|
-
if (!C.configurations[
|
4268
|
+
if (!C.configurations[v]) {
|
4269
4269
|
ke.showToast({
|
4270
4270
|
variant: Se.error,
|
4271
4271
|
description: "Platform does not exist"
|
4272
4272
|
}), Ma(new Error("Platform does not exist"));
|
4273
4273
|
return;
|
4274
4274
|
}
|
4275
|
-
delete C.configurations[
|
4276
|
-
pc[
|
4275
|
+
delete C.configurations[v], Object.keys(A).forEach((T) => {
|
4276
|
+
pc[T] && (A[T] = null);
|
4277
4277
|
});
|
4278
4278
|
break;
|
4279
4279
|
}
|
4280
4280
|
case Et.RENAME_TARGET_PLATFORM: {
|
4281
|
-
const { originalPlatformName:
|
4282
|
-
if (
|
4281
|
+
const { originalPlatformName: T, newPlatformName: b, configSnapshot: j } = N, S = C.configurations[T];
|
4282
|
+
if (T === b)
|
4283
4283
|
return;
|
4284
|
-
if (!
|
4284
|
+
if (!S) {
|
4285
4285
|
ke.showToast({
|
4286
4286
|
variant: Se.error,
|
4287
4287
|
description: "Original platform does not exist"
|
@@ -4292,13 +4292,13 @@ const AL = (e, s = !1) => {
|
|
4292
4292
|
b,
|
4293
4293
|
x(C.configurations)
|
4294
4294
|
).message;
|
4295
|
-
const
|
4295
|
+
const O = i.fallbackPlatformConfigurationMap[b] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
|
4296
4296
|
i.fallbackPlatformConfigurationMap[rs];
|
4297
4297
|
if (C.configurations[b] = Object.entries(
|
4298
|
-
|
4298
|
+
S
|
4299
4299
|
).reduce(
|
4300
4300
|
(w, [L, B]) => {
|
4301
|
-
const V =
|
4301
|
+
const V = O[L]?.defaultValue, X = B?.active ? {} : V;
|
4302
4302
|
return w[L] = {
|
4303
4303
|
...B,
|
4304
4304
|
...X,
|
@@ -4307,16 +4307,16 @@ const AL = (e, s = !1) => {
|
|
4307
4307
|
}, w;
|
4308
4308
|
},
|
4309
4309
|
{}
|
4310
|
-
),
|
4311
|
-
C.configurations[
|
4310
|
+
), j[T]) {
|
4311
|
+
C.configurations[T] = j[T];
|
4312
4312
|
break;
|
4313
4313
|
}
|
4314
|
-
delete C.configurations[
|
4314
|
+
delete C.configurations[T];
|
4315
4315
|
break;
|
4316
4316
|
}
|
4317
4317
|
case Et.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
|
4318
|
-
const { configSnapshot:
|
4319
|
-
C.configurations =
|
4318
|
+
const { configSnapshot: T } = N;
|
4319
|
+
C.configurations = T, Object.keys(A).forEach((b) => {
|
4320
4320
|
pc[b] && (A[b] = null);
|
4321
4321
|
});
|
4322
4322
|
break;
|
@@ -4335,14 +4335,14 @@ const AL = (e, s = !1) => {
|
|
4335
4335
|
case Et.DELETE_NODE_SELECTOR_ITEM: {
|
4336
4336
|
if (I[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4337
4337
|
break;
|
4338
|
-
const { id:
|
4339
|
-
I[U.NODE_SELECTOR].value = I[U.NODE_SELECTOR].value.filter((
|
4338
|
+
const { id: T } = N;
|
4339
|
+
I[U.NODE_SELECTOR].value = I[U.NODE_SELECTOR].value.filter((j) => j.id !== T), delete A[U.NODE_SELECTOR]?.[T], Object.keys(A[U.NODE_SELECTOR] || {}).length === 0 && (A[U.NODE_SELECTOR] = null);
|
4340
4340
|
const b = I[U.NODE_SELECTOR].value.map(
|
4341
|
-
(
|
4341
|
+
(j) => j.key
|
4342
4342
|
);
|
4343
|
-
I[U.NODE_SELECTOR].value.forEach((
|
4343
|
+
I[U.NODE_SELECTOR].value.forEach((j) => {
|
4344
4344
|
Pc({
|
4345
|
-
selector:
|
4345
|
+
selector: j,
|
4346
4346
|
existingKeys: b,
|
4347
4347
|
profileInputErrors: A
|
4348
4348
|
});
|
@@ -4352,21 +4352,21 @@ const AL = (e, s = !1) => {
|
|
4352
4352
|
case Et.EDIT_NODE_SELECTOR_ITEM: {
|
4353
4353
|
if (I[U.NODE_SELECTOR].key !== U.NODE_SELECTOR)
|
4354
4354
|
break;
|
4355
|
-
const { id:
|
4356
|
-
(w) => w.id ===
|
4355
|
+
const { id: T, key: b, value: j } = N, S = I[U.NODE_SELECTOR].value.find(
|
4356
|
+
(w) => w.id === T
|
4357
4357
|
);
|
4358
|
-
|
4359
|
-
id:
|
4358
|
+
S ? (S.key = b, S.value = j) : I[U.NODE_SELECTOR].value.unshift({
|
4359
|
+
id: T,
|
4360
4360
|
key: b,
|
4361
|
-
value:
|
4361
|
+
value: j
|
4362
4362
|
});
|
4363
|
-
const
|
4363
|
+
const O = I[U.NODE_SELECTOR].value.map(
|
4364
4364
|
(w) => w.key
|
4365
4365
|
);
|
4366
4366
|
I[U.NODE_SELECTOR].value.forEach((w) => {
|
4367
4367
|
Pc({
|
4368
4368
|
selector: w,
|
4369
|
-
existingKeys:
|
4369
|
+
existingKeys: O,
|
4370
4370
|
profileInputErrors: A
|
4371
4371
|
});
|
4372
4372
|
});
|
@@ -4388,32 +4388,32 @@ const AL = (e, s = !1) => {
|
|
4388
4388
|
case Et.DELETE_TOLERANCE_ITEM: {
|
4389
4389
|
if (I[U.TOLERANCE].key !== U.TOLERANCE)
|
4390
4390
|
break;
|
4391
|
-
const { id:
|
4392
|
-
I[U.TOLERANCE].value = I[U.TOLERANCE].value.filter((b) => b.id !==
|
4391
|
+
const { id: T } = N;
|
4392
|
+
I[U.TOLERANCE].value = I[U.TOLERANCE].value.filter((b) => b.id !== T), delete A[U.TOLERANCE]?.[T], Object.keys(A[U.TOLERANCE] || {}).length === 0 && (A[U.TOLERANCE] = null);
|
4393
4393
|
break;
|
4394
4394
|
}
|
4395
4395
|
case Et.EDIT_TOLERANCE_ITEM: {
|
4396
4396
|
if (I[U.TOLERANCE].key !== U.TOLERANCE)
|
4397
4397
|
break;
|
4398
|
-
const { id:
|
4399
|
-
(q) => q.id ===
|
4398
|
+
const { id: T, key: b, effect: j, operator: S, value: O } = N, w = I[U.TOLERANCE].value.find(
|
4399
|
+
(q) => q.id === T
|
4400
4400
|
);
|
4401
|
-
w ? (w.key = b, w.effect =
|
4402
|
-
id:
|
4401
|
+
w ? (w.key = b, w.effect = j, w.operator = S, w.value = O, S === bs.EXISTS && delete w.value) : I[U.TOLERANCE].value.unshift({
|
4402
|
+
id: T,
|
4403
4403
|
key: b,
|
4404
|
-
effect:
|
4405
|
-
operator:
|
4406
|
-
value:
|
4404
|
+
effect: j,
|
4405
|
+
operator: S,
|
4406
|
+
value: O
|
4407
4407
|
});
|
4408
|
-
const L = _i(b).messages, B =
|
4409
|
-
A[U.TOLERANCE]?.[
|
4408
|
+
const L = _i(b).messages, B = S !== bs.EXISTS ? du(O).messages : [], X = !(S === bs.EXISTS ? !b : !b && !O) && (L.length > 0 || B.length > 0);
|
4409
|
+
A[U.TOLERANCE]?.[T] || (A[U.TOLERANCE] || (A[U.TOLERANCE] = {}), A[U.TOLERANCE][T] = {}), A[U.TOLERANCE][T] = {
|
4410
4410
|
...L.length > 0 && { [Io.KEY]: L },
|
4411
4411
|
...B.length > 0 && { [Io.VALUE]: B }
|
4412
|
-
}, X || (delete A[U.TOLERANCE][
|
4412
|
+
}, X || (delete A[U.TOLERANCE][T], Object.keys(A[U.TOLERANCE]).length === 0 && (A[U.TOLERANCE] = null));
|
4413
4413
|
break;
|
4414
4414
|
}
|
4415
4415
|
case Et.ADD_CM_CS_ITEM: {
|
4416
|
-
const { id:
|
4416
|
+
const { id: T, infraConfigType: b } = N, S = {
|
4417
4417
|
useFormProps: Ui({
|
4418
4418
|
configMapSecretData: null,
|
4419
4419
|
componentType: Zd[b],
|
@@ -4421,33 +4421,33 @@ const AL = (e, s = !1) => {
|
|
4421
4421
|
isJob: !0,
|
4422
4422
|
fallbackMergeStrategy: null
|
4423
4423
|
}),
|
4424
|
-
id:
|
4424
|
+
id: T,
|
4425
4425
|
isOverridden: !0,
|
4426
4426
|
canOverride: !1,
|
4427
4427
|
initialResponse: null,
|
4428
4428
|
defaultValue: null,
|
4429
4429
|
defaultValueInitialResponse: null
|
4430
4430
|
};
|
4431
|
-
I[b].value.push(
|
4431
|
+
I[b].value.push(S);
|
4432
4432
|
break;
|
4433
4433
|
}
|
4434
4434
|
case Et.SYNC_CM_CS_ITEM: {
|
4435
|
-
const { id:
|
4436
|
-
if (
|
4435
|
+
const { id: T, value: b, hasError: j, componentType: S } = N, O = I[Xe[S]].value.findIndex((L) => L.id === T);
|
4436
|
+
if (O === -1) {
|
4437
4437
|
ke.showToast({
|
4438
4438
|
variant: Se.error,
|
4439
4439
|
description: "ConfigMap does not exist"
|
4440
4440
|
}), Ma(new Error("ConfigMap does not exist"));
|
4441
4441
|
return;
|
4442
4442
|
}
|
4443
|
-
I[Xe[
|
4444
|
-
A[Xe[
|
4445
|
-
).length === 0 && (A[Xe[
|
4443
|
+
I[Xe[S]].value[O].useFormProps = b, A[Xe[S]] || (A[Xe[S]] = {}), j ? A[Xe[S]][T] = !0 : A[Xe[S]][T] && delete A[Xe[S]][T], Object.keys(
|
4444
|
+
A[Xe[S]]
|
4445
|
+
).length === 0 && (A[Xe[S]] = null);
|
4446
4446
|
break;
|
4447
4447
|
}
|
4448
4448
|
case Et.DELETE_CM_CS_ITEM: {
|
4449
|
-
const { id:
|
4450
|
-
I[Xe[b]].value =
|
4449
|
+
const { id: T, componentType: b } = N, j = I[Xe[b]].value.filter((S) => S.id !== T);
|
4450
|
+
I[Xe[b]].value = j, A[Xe[b]] && (delete A[Xe[b]][T], Object.keys(A[Xe[b]]).length === 0 && (A[Xe[b]] = null));
|
4451
4451
|
break;
|
4452
4452
|
}
|
4453
4453
|
}
|
@@ -6235,19 +6235,19 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6235
6235
|
)) })
|
6236
6236
|
] });
|
6237
6237
|
}, WN = {
|
6238
|
-
[
|
6239
|
-
[
|
6240
|
-
[
|
6241
|
-
[
|
6242
|
-
[
|
6243
|
-
[
|
6244
|
-
[
|
6245
|
-
[
|
6246
|
-
[
|
6247
|
-
[
|
6248
|
-
[
|
6249
|
-
[
|
6250
|
-
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
6238
|
+
[ze.GIT]: "ic-git",
|
6239
|
+
[ze.GITHUB]: "ic-github",
|
6240
|
+
[ze.GITLAB]: "ic-gitlab",
|
6241
|
+
[ze.BITBUCKET]: "ic-bitbucket",
|
6242
|
+
[ze.DOCKER]: "ic-dockerhub",
|
6243
|
+
[ze.DOCKER_HUB]: "ic-dockerhub",
|
6244
|
+
[ze.ACR]: "ic-azure",
|
6245
|
+
[ze.QUAY]: "ic-quay",
|
6246
|
+
[ze.ECR]: "ic-ecr",
|
6247
|
+
[ze.ARTIFACT_REGISTRY]: "ic-google-artifact-registry",
|
6248
|
+
[ze.GCR]: "ic-google-container-registry",
|
6249
|
+
[ze.OTHER]: "ic-container"
|
6250
|
+
}, ts = ({ registryType: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(Ke, { name: WN[e] || "ic-container", size: s, color: null }), Rw = {
|
6251
6251
|
ecr: {
|
6252
6252
|
value: "ecr",
|
6253
6253
|
label: "ECR",
|
@@ -6270,7 +6270,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6270
6270
|
defaultValue: "",
|
6271
6271
|
placeholder: ""
|
6272
6272
|
},
|
6273
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6273
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.ECR })
|
6274
6274
|
},
|
6275
6275
|
"docker-hub": {
|
6276
6276
|
value: "docker-hub",
|
@@ -6294,7 +6294,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6294
6294
|
defaultValue: "",
|
6295
6295
|
placeholder: ""
|
6296
6296
|
},
|
6297
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6297
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.DOCKER_HUB })
|
6298
6298
|
},
|
6299
6299
|
acr: {
|
6300
6300
|
value: "acr",
|
@@ -6318,7 +6318,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6318
6318
|
defaultValue: "",
|
6319
6319
|
placeholder: ""
|
6320
6320
|
},
|
6321
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6321
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.ACR })
|
6322
6322
|
},
|
6323
6323
|
"artifact-registry": {
|
6324
6324
|
value: "artifact-registry",
|
@@ -6342,7 +6342,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6342
6342
|
defaultValue: "",
|
6343
6343
|
placeholder: "Paste json file content here"
|
6344
6344
|
},
|
6345
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6345
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.ARTIFACT_REGISTRY })
|
6346
6346
|
},
|
6347
6347
|
gcr: {
|
6348
6348
|
value: "gcr",
|
@@ -6366,7 +6366,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6366
6366
|
defaultValue: "",
|
6367
6367
|
placeholder: "Paste json file content here"
|
6368
6368
|
},
|
6369
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6369
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.GCR })
|
6370
6370
|
},
|
6371
6371
|
quay: {
|
6372
6372
|
value: "quay",
|
@@ -6390,7 +6390,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6390
6390
|
defaultValue: "",
|
6391
6391
|
placeholder: ""
|
6392
6392
|
},
|
6393
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6393
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.QUAY })
|
6394
6394
|
},
|
6395
6395
|
other: {
|
6396
6396
|
value: "other",
|
@@ -6414,7 +6414,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6414
6414
|
defaultValue: "",
|
6415
6415
|
placeholder: ""
|
6416
6416
|
},
|
6417
|
-
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType:
|
6417
|
+
startIcon: /* @__PURE__ */ t.jsx(ts, { registryType: ze.OTHER })
|
6418
6418
|
}
|
6419
6419
|
}, zN = ({ imagePath: e, registryName: s }) => /* @__PURE__ */ t.jsxs("div", { children: [
|
6420
6420
|
/* @__PURE__ */ t.jsx("div", { className: "fw-6", children: s }),
|
@@ -6498,7 +6498,7 @@ const GN = "bulk-selection-pop-up-menu", Jr = {
|
|
6498
6498
|
return { Icon: /* @__PURE__ */ t.jsx(p_, { className: "icon-dim-16" }), stateClassName: "bcr-1 er-2" };
|
6499
6499
|
case Ns.DEPLOYING:
|
6500
6500
|
return {
|
6501
|
-
Icon: /* @__PURE__ */ t.jsx(
|
6501
|
+
Icon: /* @__PURE__ */ t.jsx(Ke, { name: "ic-circle-loader", color: "O500" }),
|
6502
6502
|
stateClassName: "bcy-1 ey-2"
|
6503
6503
|
};
|
6504
6504
|
default:
|
@@ -8028,14 +8028,14 @@ const nC = {
|
|
8028
8028
|
const f = BC(c, l.category, l.subCategory, _);
|
8029
8029
|
if (f)
|
8030
8030
|
return /* @__PURE__ */ t.jsx(Qe, { ...f, imageType: Xs.Large });
|
8031
|
-
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows:
|
8031
|
+
const { headers: N, rows: C, defaultSortIndex: A, hasExpandableRows: v } = _ || kC(c, l.category, l.subCategory, u, o), { entities: I, lastScanTimeString: y, scanToolName: T, scanToolUrl: b } = _ || UC(c, l.category, l.subCategory);
|
8032
8032
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
8033
8033
|
I?.length ? /* @__PURE__ */ t.jsx(
|
8034
8034
|
fC,
|
8035
8035
|
{
|
8036
8036
|
entities: I,
|
8037
8037
|
lastScanTimeString: y,
|
8038
|
-
scanToolName:
|
8038
|
+
scanToolName: T,
|
8039
8039
|
scanToolUrl: b
|
8040
8040
|
},
|
8041
8041
|
`${l.category}-${l.subCategory}`
|
@@ -8046,7 +8046,7 @@ const nC = {
|
|
8046
8046
|
headers: N,
|
8047
8047
|
rows: C,
|
8048
8048
|
defaultSortIndex: A,
|
8049
|
-
hasExpandableRows:
|
8049
|
+
hasExpandableRows: v,
|
8050
8050
|
headerTopPosition: _ ? 40 : 0
|
8051
8051
|
},
|
8052
8052
|
`${l.category}${l.subCategory}${p}`
|
@@ -8242,13 +8242,13 @@ const nC = {
|
|
8242
8242
|
) }) : /* @__PURE__ */ t.jsx("div", { className: "dc__grid security-cards", children: m[h].subCategories.map((C) => {
|
8243
8243
|
if (!e[h][C])
|
8244
8244
|
return null;
|
8245
|
-
const A = h === ne.IMAGE_SCAN && tr(e[h][C].list ?? []) === "Failed",
|
8245
|
+
const A = h === ne.IMAGE_SCAN && tr(e[h][C].list ?? []) === "Failed", v = C === J.MISCONFIGURATIONS ? e[h][C]?.misConfSummary?.status : e[h][C]?.summary?.severities;
|
8246
8246
|
return /* @__PURE__ */ t.jsx(
|
8247
8247
|
Ou,
|
8248
8248
|
{
|
8249
8249
|
category: h,
|
8250
8250
|
subCategory: C,
|
8251
|
-
severities:
|
8251
|
+
severities: v,
|
8252
8252
|
handleCardClick: E(h, C),
|
8253
8253
|
scanFailed: A
|
8254
8254
|
}
|
@@ -8532,25 +8532,25 @@ const nC = {
|
|
8532
8532
|
...g
|
8533
8533
|
}) => {
|
8534
8534
|
const f = Y(null), [N, C] = R(""), A = (b) => {
|
8535
|
-
const
|
8536
|
-
|
8537
|
-
},
|
8535
|
+
const j = f.current;
|
8536
|
+
j && (j.style.height = `${b}px`);
|
8537
|
+
}, v = () => {
|
8538
8538
|
const b = parseInt(f.current.style.height, 10);
|
8539
|
-
let
|
8540
|
-
|
8539
|
+
let j = f.current.scrollHeight || 0;
|
8540
|
+
j < b || b > Qr || (j < Zr && (j = Zr), j > Qr && (j = Qr), A(j));
|
8541
8541
|
};
|
8542
8542
|
k(() => {
|
8543
8543
|
C(x);
|
8544
|
-
}, [x]), kr(
|
8544
|
+
}, [x]), kr(v, 300, [N]);
|
8545
8545
|
const I = (b) => {
|
8546
8546
|
C(b.target.value), g.onChange?.(b);
|
8547
8547
|
}, y = (b) => {
|
8548
8548
|
if (d) {
|
8549
|
-
const
|
8550
|
-
b.target.value !==
|
8549
|
+
const j = b.target.value?.trim();
|
8550
|
+
b.target.value !== j && (b.stopPropagation(), b.target.value = j, g.onChange(b));
|
8551
8551
|
}
|
8552
8552
|
typeof l == "function" && l(b);
|
8553
|
-
},
|
8553
|
+
}, T = (b) => {
|
8554
8554
|
(b.key === "Enter" || b.key === "Escape") && b.stopPropagation();
|
8555
8555
|
};
|
8556
8556
|
return /* @__PURE__ */ t.jsx(
|
@@ -8590,7 +8590,7 @@ const nC = {
|
|
8590
8590
|
value: N,
|
8591
8591
|
onChange: I,
|
8592
8592
|
onBlur: y,
|
8593
|
-
onKeyDown:
|
8593
|
+
onKeyDown: T,
|
8594
8594
|
className: `${gs[u]} ${Vd[u]} ${Ir({ borderConfig: h, borderRadiusConfig: p })} w-100 dc__overflow-auto textarea`,
|
8595
8595
|
ref: f,
|
8596
8596
|
style: {
|
@@ -8825,7 +8825,7 @@ const nC = {
|
|
8825
8825
|
type: "button",
|
8826
8826
|
children: [
|
8827
8827
|
"Logout",
|
8828
|
-
/* @__PURE__ */ t.jsx(
|
8828
|
+
/* @__PURE__ */ t.jsx(Ke, { name: "ic-logout", color: "R500" })
|
8829
8829
|
]
|
8830
8830
|
}
|
8831
8831
|
)
|
@@ -9046,12 +9046,12 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9046
9046
|
FEATURE_PROMO_EMBEDDED_BUTTON_TEXT: n,
|
9047
9047
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
9048
9048
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
9049
|
-
} = window._env_, o =
|
9049
|
+
} = window._env_, o = qe(() => {
|
9050
9050
|
s(!0), vs.event({
|
9051
9051
|
category: "PRIMARY_HEADER",
|
9052
9052
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
9053
9053
|
});
|
9054
|
-
}, []), i =
|
9054
|
+
}, []), i = qe(() => s(!1), []), c = () => /* @__PURE__ */ t.jsx(Cn, { close: i, children: /* @__PURE__ */ t.jsxs(
|
9055
9055
|
"div",
|
9056
9056
|
{
|
9057
9057
|
className: "modal-body--ci-material h-100 dc__overflow-hidden dc__border-left flex column dc__content-space w-100",
|
@@ -9121,7 +9121,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9121
9121
|
showAnnouncementHeader: u,
|
9122
9122
|
tippyProps: m
|
9123
9123
|
}) => {
|
9124
|
-
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: h } = ua(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: C, TippyIcon: A, tippyMessage:
|
9124
|
+
const { loginCount: p, setLoginCount: _, showGettingStartedCard: E, setShowGettingStartedCard: x, setGettingStartedClicked: h } = ua(), { showSwitchThemeLocationTippy: g, handleShowSwitchThemeLocationTippyChange: f } = yr(), { isTippyCustomized: N, tippyRedirectLink: C, TippyIcon: A, tippyMessage: v, onClickTippyButton: I, additionalContent: y } = m || {}, [T, b] = R(!1), [j, S] = R(!1), { email: O } = Uu(), [w, L] = R(
|
9125
9125
|
{
|
9126
9126
|
serverInfo: void 0,
|
9127
9127
|
fetchingServerInfo: !1
|
@@ -9148,9 +9148,9 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9148
9148
|
}, Q = () => {
|
9149
9149
|
f(!1);
|
9150
9150
|
}, de = () => {
|
9151
|
-
Q(),
|
9151
|
+
Q(), S(!j), T && b(!1), sr("clickedOkay", 1), q();
|
9152
9152
|
}, Ie = async () => {
|
9153
|
-
!window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await X(), b(!
|
9153
|
+
!window._env_.K8S_CLIENT && w.serverInfo?.installationType !== nr.ENTERPRISE && await X(), b(!T), j && S(!1), sr("clickedOkay", 1), q(), await Po(xo.HELP), vs.event({
|
9154
9154
|
category: "Main Navigation",
|
9155
9155
|
action: "Help Clicked"
|
9156
9156
|
});
|
@@ -9164,7 +9164,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9164
9164
|
/* @__PURE__ */ t.jsx(
|
9165
9165
|
$a,
|
9166
9166
|
{
|
9167
|
-
style: { "--rotateBy": `${180 * Number(
|
9167
|
+
style: { "--rotateBy": `${180 * Number(T)}deg` },
|
9168
9168
|
className: "scn-7 icon-dim-16 rotate pointer"
|
9169
9169
|
}
|
9170
9170
|
)
|
@@ -9193,11 +9193,11 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9193
9193
|
onClick: de,
|
9194
9194
|
className: "dc__transparent flex p-4 dc__gap-4 br-18 bg__secondary border__secondary",
|
9195
9195
|
children: [
|
9196
|
-
SI(
|
9196
|
+
SI(O, "m-0-imp h-24 w-24-imp"),
|
9197
9197
|
/* @__PURE__ */ t.jsx(
|
9198
9198
|
$a,
|
9199
9199
|
{
|
9200
|
-
className: `scn-7 icon-dim-16 ${
|
9200
|
+
className: `scn-7 icon-dim-16 ${j ? "dc__flip-180" : ""} dc__transition--transform`
|
9201
9201
|
}
|
9202
9202
|
)
|
9203
9203
|
]
|
@@ -9229,7 +9229,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9229
9229
|
m && (N ? /* @__PURE__ */ t.jsx(
|
9230
9230
|
En,
|
9231
9231
|
{
|
9232
|
-
infoText:
|
9232
|
+
infoText: v,
|
9233
9233
|
heading: e,
|
9234
9234
|
iconClassName: "icon-dim-20 ml-8 fcn-5",
|
9235
9235
|
documentationLink: C,
|
@@ -9255,7 +9255,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9255
9255
|
placement: "top",
|
9256
9256
|
content: /* @__PURE__ */ t.jsxs("span", { style: { display: "block", width: "66px" }, children: [
|
9257
9257
|
" ",
|
9258
|
-
|
9258
|
+
v,
|
9259
9259
|
" "
|
9260
9260
|
] }),
|
9261
9261
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(A, { className: "icon-dim-20 ml-8 cursor fcn-5" }) })
|
@@ -9272,7 +9272,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9272
9272
|
] })
|
9273
9273
|
] }),
|
9274
9274
|
n && a(),
|
9275
|
-
|
9275
|
+
T && /* @__PURE__ */ t.jsx(
|
9276
9276
|
rb,
|
9277
9277
|
{
|
9278
9278
|
className: `help-card__more-option ${window._env_.K8S_CLIENT ? "k8s-client-view" : ""}`,
|
@@ -9280,7 +9280,7 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9280
9280
|
serverInfo: w.serverInfo,
|
9281
9281
|
fetchingServerInfo: w.fetchingServerInfo,
|
9282
9282
|
setGettingStartedClicked: h,
|
9283
|
-
showHelpCard:
|
9283
|
+
showHelpCard: T
|
9284
9284
|
}
|
9285
9285
|
),
|
9286
9286
|
!window._env_.K8S_CLIENT && E && p >= 0 && p < Dd && ce() && /* @__PURE__ */ t.jsx(
|
@@ -9292,13 +9292,13 @@ const tb = (e) => gt(`${G.ATTRIBUTES_USER}/${G.UPDATE}`, e), sb = ({ className:
|
|
9292
9292
|
loginCount: p
|
9293
9293
|
}
|
9294
9294
|
),
|
9295
|
-
|
9295
|
+
j && /* @__PURE__ */ t.jsx(
|
9296
9296
|
JC,
|
9297
9297
|
{
|
9298
9298
|
className: "logout-card__more-option mt-8",
|
9299
|
-
userFirstLetter:
|
9300
|
-
setShowLogOutCard:
|
9301
|
-
showLogOutCard:
|
9299
|
+
userFirstLetter: O,
|
9300
|
+
setShowLogOutCard: S,
|
9301
|
+
showLogOutCard: j
|
9302
9302
|
}
|
9303
9303
|
),
|
9304
9304
|
!n && /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-12", children: [
|
@@ -10089,7 +10089,7 @@ const Ob = (e, s) => {
|
|
10089
10089
|
const c = (e || "").toLowerCase().replace(/ /g, "-"), l = i || e || "", d = () => {
|
10090
10090
|
const m = Ob(c, r), p = Lb(c);
|
10091
10091
|
return m ? /* @__PURE__ */ t.jsx(
|
10092
|
-
|
10092
|
+
Ke,
|
10093
10093
|
{
|
10094
10094
|
name: m,
|
10095
10095
|
size: a,
|
@@ -10123,7 +10123,7 @@ const Ob = (e, s) => {
|
|
10123
10123
|
const r = s ? Db(e) : e, o = n ? vn.NOT_AVAILABLE : r ?? "", i = o.toLowerCase().replace(/ /g, "-") === vn.NOT_DEPLOYED || o.toLowerCase() === vn.NOT_DEPLOYED_NO_SPACE, c = s ? vn.JOB_VIEW_NOT_DEPLOYED_MESSAGE : vn.NOT_DEPLOYED_MESSAGE, l = i ? c : o;
|
10124
10124
|
return o ? /* @__PURE__ */ t.jsx(Mb, { status: o, message: l, ...a }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-6", children: [
|
10125
10125
|
/* @__PURE__ */ t.jsx(
|
10126
|
-
|
10126
|
+
Ke,
|
10127
10127
|
{
|
10128
10128
|
name: "ic-info-outline",
|
10129
10129
|
size: a.iconSize,
|
@@ -10204,7 +10204,7 @@ const Ob = (e, s) => {
|
|
10204
10204
|
case "unreachable":
|
10205
10205
|
return /* @__PURE__ */ t.jsx(nt, { className: "icon-dim-20" });
|
10206
10206
|
case "loading":
|
10207
|
-
return /* @__PURE__ */ t.jsx(
|
10207
|
+
return /* @__PURE__ */ t.jsx(Ke, { name: "ic-circle-loader", color: "O500", size: 20 });
|
10208
10208
|
case "disconnect":
|
10209
10209
|
return /* @__PURE__ */ t.jsx(ef, { className: "icon-dim-20" });
|
10210
10210
|
case "time_out":
|
@@ -10263,10 +10263,10 @@ const Ob = (e, s) => {
|
|
10263
10263
|
[Re.NOT_STARTED]: St.INPROGRESS,
|
10264
10264
|
[Re.RUNNING]: St.INPROGRESS
|
10265
10265
|
};
|
10266
|
-
return s[e] ? /* @__PURE__ */ t.jsx(Oi, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(
|
10266
|
+
return s[e] ? /* @__PURE__ */ t.jsx(Oi, { status: s[e], iconSize: 20, hideMessage: !0, hideIconTooltip: !0 }) : /* @__PURE__ */ t.jsx(Ke, { name: "ic-help-outline", size: 20, color: "N500" });
|
10267
10267
|
}, Fb = (e) => {
|
10268
10268
|
const s = Li(e);
|
10269
|
-
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(
|
10269
|
+
return s ? s.finishedOn ? !rr[s.currentStatus] && rr[s.workerDetails.status] ? /* @__PURE__ */ t.jsx(Ke, { name: "ic-warning", size: 20, color: null }) : Vu(s.workerDetails.status) : /* @__PURE__ */ t.jsx(Ke, { name: "ic-in-progress", size: 20, color: null }) : /* @__PURE__ */ t.jsx(Ke, { name: "ic-help-outline", size: 20, color: "N500" });
|
10270
10270
|
}, Vb = (e = jr, s = bb) => `/resource-browser/${e}/${s}/pod/k8sEmptyGroup`, Gu = (e) => e ? e.toLowerCase() === "cancelled" ? "Aborted" : e === Ys.WAITING_TO_START ? "Waiting to start" : e : null, Or = (e) => Ts(e) ? Pe(e, "YYYY-MM-DDTHH:mm:ssZ").format(yt.TWELVE_HOURS_FORMAT) : "", Gb = (e) => (e || []).reduce(
|
10271
10271
|
(s, n) => {
|
10272
10272
|
const a = n.health?.status?.toLowerCase() ?? "";
|
@@ -10342,28 +10342,29 @@ const Ob = (e, s) => {
|
|
10342
10342
|
primaryBranchAfterRegex: c,
|
10343
10343
|
rootClassName: l = ""
|
10344
10344
|
}) => {
|
10345
|
-
const d = e === Gt.WEBHOOK, u = e === Gt.BranchRegex || !!o || i, [m, p] = R(""), [_, E] = R(""), [x, h] = R(!!d), g = () => {
|
10345
|
+
const d = e === Gt.WEBHOOK, u = e === Gt.BranchRegex || !!o || i, [m, p] = R(""), [_, E] = R(""), [x, h] = R(!!d), [g, f] = R(!1), N = () => {
|
10346
10346
|
if (d) {
|
10347
|
-
|
10348
|
-
|
10349
|
-
|
10350
|
-
|
10347
|
+
h(!0), f(!1);
|
10348
|
+
const I = JSON.parse(s);
|
10349
|
+
Tc(I.eventId).then((y) => {
|
10350
|
+
const T = y.result;
|
10351
|
+
p(T.name), E(
|
10351
10352
|
Xc(
|
10352
|
-
|
10353
|
-
|
10354
|
-
|
10353
|
+
T.name,
|
10354
|
+
I.condition,
|
10355
|
+
T.selectors
|
10355
10356
|
)
|
10356
10357
|
), h(!1);
|
10357
|
-
}).catch((
|
10358
|
-
|
10358
|
+
}).catch(() => {
|
10359
|
+
h(!1), f(!0);
|
10359
10360
|
});
|
10360
10361
|
} else
|
10361
10362
|
p(s), E(s);
|
10362
10363
|
};
|
10363
10364
|
k(() => {
|
10364
|
-
|
10365
|
+
N();
|
10365
10366
|
}, [s]);
|
10366
|
-
const
|
10367
|
+
const C = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10367
10368
|
/* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10368
10369
|
/* @__PURE__ */ t.jsx("div", { className: "fw-6", children: "Regex" }),
|
10369
10370
|
/* @__PURE__ */ t.jsx("p", { children: o })
|
@@ -10373,23 +10374,27 @@ const Ob = (e, s) => {
|
|
10373
10374
|
/* @__PURE__ */ t.jsx("p", { children: c || "Not set" })
|
10374
10375
|
] })
|
10375
10376
|
] });
|
10376
|
-
function
|
10377
|
+
function A() {
|
10377
10378
|
if (!d)
|
10378
10379
|
return;
|
10379
|
-
|
10380
|
-
|
10381
|
-
|
10382
|
-
|
10383
|
-
|
10384
|
-
|
10380
|
+
h(!0), f(!1);
|
10381
|
+
const I = JSON.parse(s), y = I.eventId, T = I.condition;
|
10382
|
+
Tc(y).then((b) => {
|
10383
|
+
const j = b.result;
|
10384
|
+
p(j.name), E(Xc(j.name, T, j.selectors)), h(!1);
|
10385
|
+
}).catch(() => {
|
10386
|
+
h(!1), f(!0);
|
10385
10387
|
});
|
10386
10388
|
}
|
10387
|
-
function
|
10388
|
-
u && E(
|
10389
|
+
function v() {
|
10390
|
+
u && E(C());
|
10389
10391
|
}
|
10390
10392
|
return k(() => {
|
10391
|
-
|
10392
|
-
}, []), /* @__PURE__ */ t.jsxs("div", { className:
|
10393
|
+
A(), v();
|
10394
|
+
}, []), !x && g ? /* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-4", children: [
|
10395
|
+
/* @__PURE__ */ t.jsx(Ke, { name: "ic-error", size: 16, color: null }),
|
10396
|
+
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate fw-5 cr-5", children: "Failed to fetch" })
|
10397
|
+
] }) : /* @__PURE__ */ t.jsxs("div", { className: `flex left ${n ? "fw-5" : ""} ${l}`, children: [
|
10393
10398
|
x && a && /* @__PURE__ */ t.jsx("span", { className: "dc__loading-dots", children: "loading" }),
|
10394
10399
|
!x && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-4 dc__align-start", children: [
|
10395
10400
|
a && /* @__PURE__ */ t.jsx("span", { className: "icon-dim-12 flex dc__no-shrink dc__fill-available-space mt-4", children: wI(e, u, m) }),
|
@@ -10538,7 +10543,7 @@ const Ob = (e, s) => {
|
|
10538
10543
|
}
|
10539
10544
|
) : null;
|
10540
10545
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10541
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: rr[s] ? /* @__PURE__ */ t.jsx(
|
10546
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center", children: rr[s] ? /* @__PURE__ */ t.jsx(Ke, { size: 20, name: "ic-warning", color: null }) : /* @__PURE__ */ t.jsx(B_, { className: "icon-dim-20 dc__no-shrink scn-7" }) }),
|
10542
10547
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
10543
10548
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
10544
10549
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox cn-9 ${l}`, children: [
|
@@ -10666,21 +10671,21 @@ const Ob = (e, s) => {
|
|
10666
10671
|
namespace: x,
|
10667
10672
|
workflowExecutionStages: h
|
10668
10673
|
}) => {
|
10669
|
-
const { path: g, params: f } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...
|
10674
|
+
const { path: g, params: f } = Jt(), { pathname: N } = Ls(), C = N.split("/").pop(), { envId: A, ...v } = Tt(), I = l === De.CD || l === De.GROUP_CD, y = I ? "triggerId" : "buildId", T = _ === p?.id, b = Y(null), j = () => {
|
10670
10675
|
const B = {
|
10671
|
-
...
|
10676
|
+
...v,
|
10672
10677
|
envId: A,
|
10673
10678
|
[y]: e
|
10674
10679
|
};
|
10675
10680
|
return `${Fs(g, B)}/${C}`;
|
10676
|
-
},
|
10681
|
+
}, S = () => {
|
10677
10682
|
b?.current && b.current.scrollIntoView({ behavior: "smooth" });
|
10678
10683
|
};
|
10679
10684
|
k(() => {
|
10680
|
-
|
10685
|
+
S();
|
10681
10686
|
}, [b]);
|
10682
|
-
const
|
10683
|
-
+
|
10687
|
+
const O = f[y], w = (B) => {
|
10688
|
+
+O == +e && (b.current = B);
|
10684
10689
|
}, L = d !== as.DEPLOY && Object.keys(h || {}).length > 0;
|
10685
10690
|
return /* @__PURE__ */ t.jsx(
|
10686
10691
|
mt,
|
@@ -10722,7 +10727,7 @@ const Ob = (e, s) => {
|
|
10722
10727
|
children: /* @__PURE__ */ t.jsx(
|
10723
10728
|
_t,
|
10724
10729
|
{
|
10725
|
-
to:
|
10730
|
+
to: j,
|
10726
10731
|
className: "w-100 deployment-history-card-container p-8 br-4",
|
10727
10732
|
"data-testid": u,
|
10728
10733
|
activeClassName: "active",
|
@@ -10753,7 +10758,7 @@ const Ob = (e, s) => {
|
|
10753
10758
|
/* @__PURE__ */ t.jsx("div", { className: "cn-7 fs-12 dc__truncate", children: a === 1 ? "auto trigger" : r })
|
10754
10759
|
] })
|
10755
10760
|
] }),
|
10756
|
-
p && m && m(p,
|
10761
|
+
p && m && m(p, T)
|
10757
10762
|
] })
|
10758
10763
|
] })
|
10759
10764
|
}
|
@@ -10774,8 +10779,8 @@ const Ob = (e, s) => {
|
|
10774
10779
|
renderRunSource: l,
|
10775
10780
|
resourceId: d
|
10776
10781
|
}) => {
|
10777
|
-
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = zs(), { path: E } = Jt(), x = (
|
10778
|
-
e === De.CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, pipelineId:
|
10782
|
+
const { pipelineId: u, appId: m, envId: p } = Tt(), { push: _ } = zs(), { path: E } = Jt(), x = (v) => {
|
10783
|
+
e === De.CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, pipelineId: v.value }))) : e === De.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, pipelineId: v.pipelineId }))) : e === De.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Fs(E, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Fs(E, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
|
10779
10784
|
}, h = () => {
|
10780
10785
|
vs.event({
|
10781
10786
|
category: "pagination",
|
@@ -10783,18 +10788,18 @@ const Ob = (e, s) => {
|
|
10783
10788
|
label: `${e.toLowerCase()}-history`,
|
10784
10789
|
value: n.size
|
10785
10790
|
}), r({ offset: n.size, size: 20 });
|
10786
|
-
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, f = s?.find((
|
10787
|
-
s?.sort((
|
10788
|
-
const N = s?.filter((
|
10791
|
+
}, g = () => e === De.CI || e === De.GROUP_CI ? u : e === De.GROUP_CD ? m : p, f = s?.find((v) => v.value === g()) ?? null;
|
10792
|
+
s?.sort((v, I) => v.label > I.label ? 1 : -1);
|
10793
|
+
const N = s?.filter((v) => !v.deploymentAppDeleteRequest), C = () => e === De.GROUP_CI || e === De.GROUP_CD ? eo.APPLICATION : e === De.CI ? eo.PIPELINE : eo.ENVIRONMENT, A = (v) => (v.selectProps.styles.option = hx(), /* @__PURE__ */ t.jsx(Ve.Option, { ...v, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc dc__gap-4", children: [
|
10789
10794
|
(e === De.CI || e === De.GROUP_CI) && /* @__PURE__ */ t.jsx(
|
10790
|
-
|
10795
|
+
Ke,
|
10791
10796
|
{
|
10792
|
-
name:
|
10797
|
+
name: v.data.pipelineType?.toLowerCase() === "ci_job" ? "ic-job-color" : "ic-build-color",
|
10793
10798
|
size: 20,
|
10794
10799
|
color: null
|
10795
10800
|
}
|
10796
10801
|
),
|
10797
|
-
/* @__PURE__ */ t.jsx("span", { children:
|
10802
|
+
/* @__PURE__ */ t.jsx("span", { children: v.label })
|
10798
10803
|
] }) }));
|
10799
10804
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10800
10805
|
c || /* @__PURE__ */ t.jsxs("div", { className: "select-pipeline-wrapper w-100 pl-16 pr-16 dc__overflow-hidden dc__border-bottom-n1", children: [
|
@@ -10830,11 +10835,11 @@ const Ob = (e, s) => {
|
|
10830
10835
|
] }),
|
10831
10836
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
|
10832
10837
|
o === Cs.SUCCESS && /* @__PURE__ */ t.jsx(zb, { handleViewAllHistory: i }),
|
10833
|
-
Array.from(n).sort(([
|
10838
|
+
Array.from(n).sort(([v], [I]) => I - v).map(([v, I], y) => /* @__PURE__ */ t.jsx(
|
10834
10839
|
qb,
|
10835
10840
|
{
|
10836
10841
|
dataTestId: `deployment-history-${y}`,
|
10837
|
-
id:
|
10842
|
+
id: v,
|
10838
10843
|
status: I.status,
|
10839
10844
|
startedOn: I.startedOn,
|
10840
10845
|
triggeredBy: I.triggeredBy,
|
@@ -10851,14 +10856,14 @@ const Ob = (e, s) => {
|
|
10851
10856
|
podName: I.podName,
|
10852
10857
|
namespace: I.namespace
|
10853
10858
|
},
|
10854
|
-
|
10859
|
+
v
|
10855
10860
|
)),
|
10856
10861
|
a && (o === Cs.SUSPEND || !o) && /* @__PURE__ */ t.jsx(zu, { callback: h })
|
10857
10862
|
] })
|
10858
10863
|
] });
|
10859
10864
|
}
|
10860
10865
|
), Xb = ({ shouldPrompt: e }) => {
|
10861
|
-
const s =
|
10866
|
+
const s = qe(
|
10862
10867
|
(n) => {
|
10863
10868
|
e && n.preventDefault();
|
10864
10869
|
},
|
@@ -10999,100 +11004,100 @@ const Ob = (e, s) => {
|
|
10999
11004
|
} else r?.isValid && !r.isValid(e) && n.push(r.message);
|
11000
11005
|
return n.length ? n : null;
|
11001
11006
|
}, lD = (e) => {
|
11002
|
-
const s = Y(e?.initialValues || {}), [n, a] = R(s.current), [r, o] = R({}), [i, c] = R({}), [l, d] = R({}), [u, m] = R({}), p = (
|
11003
|
-
const I = p(
|
11004
|
-
return Object.keys(I || {}).forEach((
|
11005
|
-
const b = I[
|
11006
|
-
|
11007
|
+
const s = Y(e?.initialValues || {}), [n, a] = R(s.current), [r, o] = R({}), [i, c] = R({}), [l, d] = R({}), [u, m] = R({}), p = (v = n) => e?.validations ? typeof e.validations == "function" ? e.validations(v) : e.validations : {}, _ = (v) => {
|
11008
|
+
const I = p(v), y = {};
|
11009
|
+
return Object.keys(I || {}).forEach((T) => {
|
11010
|
+
const b = I[T], j = An(v[T], b);
|
11011
|
+
j && (y[T] = j);
|
11007
11012
|
}), y;
|
11008
|
-
}, E = (
|
11009
|
-
y?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((b,
|
11010
|
-
const
|
11011
|
-
if (Object.keys(
|
11012
|
-
d(
|
11013
|
+
}, E = (v, I) => (y) => {
|
11014
|
+
y?.preventDefault(), Object.keys(u).length !== Object.keys(n).length && m(Object.keys(n).reduce((b, j) => ({ ...b, [j]: !0 }), {}));
|
11015
|
+
const T = _(n);
|
11016
|
+
if (Object.keys(T).length) {
|
11017
|
+
d(T), I?.(T, y);
|
11013
11018
|
return;
|
11014
11019
|
}
|
11015
|
-
d({}),
|
11020
|
+
d({}), v(n, y);
|
11016
11021
|
};
|
11017
11022
|
k(() => {
|
11018
11023
|
e?.shouldValidateOnMount && E(ut)();
|
11019
11024
|
}, []);
|
11020
|
-
const x = (
|
11021
|
-
const b = y ?
|
11022
|
-
a((
|
11023
|
-
const w = { ...
|
11024
|
-
if (L === "onChange" || L === "all" || u[
|
11025
|
-
const B = p(w), V = An(
|
11026
|
-
d({ ...l, [
|
11025
|
+
const x = (v, I, y) => (T) => {
|
11026
|
+
const b = y ? T : T.target.value, j = I ? I(b) : b;
|
11027
|
+
a((O) => {
|
11028
|
+
const w = { ...O, [v]: j }, L = e?.validationMode ?? "onChange";
|
11029
|
+
if (L === "onChange" || L === "all" || u[v] || l[v]) {
|
11030
|
+
const B = p(w), V = An(j, B[v]);
|
11031
|
+
d({ ...l, [v]: V });
|
11027
11032
|
}
|
11028
11033
|
return w;
|
11029
11034
|
});
|
11030
|
-
const
|
11031
|
-
o((
|
11032
|
-
}, h = (
|
11033
|
-
if (I || a({ ...n, [
|
11034
|
-
const
|
11035
|
-
b && !u[
|
11036
|
-
}
|
11037
|
-
}, g = (
|
11038
|
-
c((I) => ({ ...I, [
|
11035
|
+
const S = s.current;
|
11036
|
+
o((O) => ({ ...O, [v]: !$n(S[v], j) }));
|
11037
|
+
}, h = (v, I) => () => {
|
11038
|
+
if (I || a({ ...n, [v]: n[v]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
11039
|
+
const T = p(), b = An(n[v], T[v]);
|
11040
|
+
b && !u[v] && m({ ...u, [v]: !0 }), d({ ...l, [v]: b });
|
11041
|
+
}
|
11042
|
+
}, g = (v) => () => {
|
11043
|
+
c((I) => ({ ...I, [v]: !0 }));
|
11039
11044
|
};
|
11040
11045
|
return {
|
11041
11046
|
/** The current form data. */
|
11042
11047
|
data: n,
|
11043
11048
|
/** An object containing validation errors for each form field. */
|
11044
11049
|
errors: l,
|
11045
|
-
register: (
|
11046
|
-
onChange: x(
|
11047
|
-
onBlur: h(
|
11048
|
-
onFocus: g(
|
11049
|
-
name:
|
11050
|
+
register: (v, I) => ({
|
11051
|
+
onChange: x(v, I?.sanitizeFn, I?.isCustomComponent),
|
11052
|
+
onBlur: h(v, I?.noTrim),
|
11053
|
+
onFocus: g(v),
|
11054
|
+
name: v
|
11050
11055
|
}),
|
11051
11056
|
handleSubmit: E,
|
11052
|
-
trigger: (
|
11057
|
+
trigger: (v) => {
|
11053
11058
|
const I = p();
|
11054
|
-
if (Array.isArray(
|
11055
|
-
const y = {},
|
11059
|
+
if (Array.isArray(v)) {
|
11060
|
+
const y = {}, T = v.map((b) => {
|
11056
11061
|
if (I) {
|
11057
|
-
const
|
11058
|
-
return y[b] =
|
11062
|
+
const j = I[b], S = An(n[b], j);
|
11063
|
+
return y[b] = S, S;
|
11059
11064
|
}
|
11060
11065
|
return null;
|
11061
11066
|
});
|
11062
|
-
return Object.keys(y).length && d({ ...l, ...y }),
|
11067
|
+
return Object.keys(y).length && d({ ...l, ...y }), T;
|
11063
11068
|
}
|
11064
11069
|
if (I) {
|
11065
|
-
const y = I[
|
11066
|
-
return
|
11070
|
+
const y = I[v], T = An(n[v], y);
|
11071
|
+
return T && d({ ...l, [v]: T }), T;
|
11067
11072
|
}
|
11068
11073
|
return null;
|
11069
11074
|
},
|
11070
|
-
setValue: (
|
11071
|
-
if (a((
|
11072
|
-
const
|
11073
|
-
o((b) => ({ ...b, [
|
11075
|
+
setValue: (v, I, y) => {
|
11076
|
+
if (a((T) => ({ ...T, [v]: I })), y?.shouldDirty) {
|
11077
|
+
const T = s.current;
|
11078
|
+
o((b) => ({ ...b, [v]: !$n(T[v], I) }));
|
11074
11079
|
}
|
11075
|
-
y?.shouldTouch && c((
|
11080
|
+
y?.shouldTouch && c((T) => ({ ...T, [v]: !0 }));
|
11076
11081
|
},
|
11077
|
-
reset: (
|
11082
|
+
reset: (v, I) => {
|
11078
11083
|
const {
|
11079
11084
|
keepDirty: y = !1,
|
11080
|
-
keepTouched:
|
11085
|
+
keepTouched: T = !1,
|
11081
11086
|
keepErrors: b = !1,
|
11082
|
-
triggerDirty:
|
11083
|
-
keepInitialValues:
|
11087
|
+
triggerDirty: j = !1,
|
11088
|
+
keepInitialValues: S = !1
|
11084
11089
|
} = I ?? {};
|
11085
|
-
if (a(
|
11086
|
-
const
|
11090
|
+
if (a(v), S || (s.current = v), b || d({}), j) {
|
11091
|
+
const O = s.current, w = Object.keys(v).reduce(
|
11087
11092
|
(L, B) => ({
|
11088
11093
|
...L,
|
11089
|
-
[B]: !$n(
|
11094
|
+
[B]: !$n(v[B], O[B])
|
11090
11095
|
}),
|
11091
11096
|
{}
|
11092
11097
|
);
|
11093
11098
|
o(w);
|
11094
11099
|
} else y || o({});
|
11095
|
-
|
11100
|
+
T || c({});
|
11096
11101
|
},
|
11097
11102
|
/** An object representing additional form state. */
|
11098
11103
|
formState: {
|
@@ -11101,7 +11106,7 @@ const Ob = (e, s) => {
|
|
11101
11106
|
/** An object indicating which fields have been modified. */
|
11102
11107
|
dirtyFields: r,
|
11103
11108
|
/** A boolean indicating if any field has been modified. */
|
11104
|
-
isDirty: Object.values(r).some((
|
11109
|
+
isDirty: Object.values(r).some((v) => v)
|
11105
11110
|
},
|
11106
11111
|
getErrorsFromFormData: _
|
11107
11112
|
};
|
@@ -11569,8 +11574,8 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11569
11574
|
}, ET = ({ triggerDetails: e, isBlobStorageConfigured: s, parentType: n, fullScreenView: a }) => {
|
11570
11575
|
const { pipelineId: r, envId: o, appId: i } = Tt(), c = n === De.CI ? `${Ga}/${G.CI_CONFIG_GET}/${r}/workflow/${e.id}/logs` : `${Ga}/${G.CD_MATERIAL_GET}/workflow/logs/${i}/${o}/${r}/${e.id}`, [l, d, u] = xT(
|
11571
11576
|
e.podStatus && e.podStatus !== to.PENDING && c
|
11572
|
-
), [m, p] = R([]), [_, E] = R([]), [x, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: C } = au(), A = _.length > 0,
|
11573
|
-
function
|
11577
|
+
), [m, p] = R([]), [_, E] = R([]), [x, h] = R(0), [g, f] = R([]), { searchKey: N, handleSearch: C } = au(), A = _.length > 0, v = te(() => m.every((H) => H.isOpen), [m]), I = v ? "Collapse all stages" : "Expand all stages", { registerShortcut: y, unregisterShortcut: T } = aa(), b = l[0]?.startsWith(qc) || !1;
|
11578
|
+
function j({
|
11574
11579
|
log: H,
|
11575
11580
|
currentIndex: F = -1,
|
11576
11581
|
targetSearchKey: ce = N,
|
@@ -11600,10 +11605,10 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11600
11605
|
return { __html: H, isSearchKeyPresent: D };
|
11601
11606
|
}
|
11602
11607
|
}
|
11603
|
-
const
|
11608
|
+
const S = (H, F, ce, le) => {
|
11604
11609
|
const pe = m.length === 0, D = F ?? !0;
|
11605
11610
|
return le ? ce || D : pe ? H !== cn.SUCCESS || ce : D;
|
11606
|
-
},
|
11611
|
+
}, O = e.podStatus === to.PENDING || !!(d && d.readyState <= 1), w = (H, F) => {
|
11607
11612
|
const ce = m.reduce(
|
11608
11613
|
(P, $) => (P[$.stage] || (P[$.stage] = {}), P[$.stage][$.startTime] = $, P),
|
11609
11614
|
{}
|
@@ -11614,20 +11619,20 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11614
11619
|
$.split(vb)[1]
|
11615
11620
|
), je = P.find((jt) => jt.stage === oe && jt.startTime === ve), xt = ce[oe]?.[ve] ?? {};
|
11616
11621
|
if (je)
|
11617
|
-
je.endTime = Ee, je.status = K, je.isOpen =
|
11622
|
+
je.endTime = Ee, je.status = K, je.isOpen = S(
|
11618
11623
|
K,
|
11619
11624
|
xt.isOpen,
|
11620
11625
|
!!le[oe]?.[ve],
|
11621
11626
|
!!F
|
11622
11627
|
);
|
11623
11628
|
else {
|
11624
|
-
const jt =
|
11629
|
+
const jt = O ? cn.PROGRESSING : cn.FAILURE;
|
11625
11630
|
P.push({
|
11626
11631
|
stage: oe || `Untitled stage ${ee + 1}`,
|
11627
11632
|
startTime: ve || "",
|
11628
11633
|
endTime: Ee || "",
|
11629
11634
|
// Would be defining the state when we receive the end status, otherwise it is loading and would be open
|
11630
|
-
isOpen:
|
11635
|
+
isOpen: S(
|
11631
11636
|
jt,
|
11632
11637
|
xt.isOpen,
|
11633
11638
|
// Wont be present in case of start stage since no logs are present yet
|
@@ -11647,14 +11652,14 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11647
11652
|
const oe = P[P.length - 1], ve = Fu({
|
11648
11653
|
stageIndex: P.length - 1,
|
11649
11654
|
lineNumberInsideStage: oe.logs.length
|
11650
|
-
}), { __html: Ee, isSearchKeyPresent: K } =
|
11655
|
+
}), { __html: Ee, isSearchKeyPresent: K } = j({
|
11651
11656
|
log: $,
|
11652
11657
|
currentIndex: H,
|
11653
11658
|
searchMatchResults: pe,
|
11654
11659
|
targetSearchKey: F,
|
11655
11660
|
searchIndex: ve
|
11656
11661
|
});
|
11657
|
-
oe.logs.push(Ee), K && (oe.isOpen =
|
11662
|
+
oe.logs.push(Ee), K && (oe.isOpen = S(
|
11658
11663
|
oe.status,
|
11659
11664
|
ce[oe.stage]?.[oe.startTime]?.isOpen,
|
11660
11665
|
!0,
|
@@ -11669,23 +11674,23 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11669
11674
|
if (!l?.length)
|
11670
11675
|
return;
|
11671
11676
|
if (!b) {
|
11672
|
-
const F = l.map((ce) =>
|
11677
|
+
const F = l.map((ce) => j({ log: ce }).__html);
|
11673
11678
|
f(F);
|
11674
11679
|
return;
|
11675
11680
|
}
|
11676
11681
|
const H = w(x);
|
11677
11682
|
p(H);
|
11678
|
-
}, [l,
|
11679
|
-
const L =
|
11683
|
+
}, [l, O]);
|
11684
|
+
const L = qe(() => {
|
11680
11685
|
p(
|
11681
11686
|
(H) => H.map((F) => ({
|
11682
11687
|
...F,
|
11683
|
-
isOpen: !
|
11688
|
+
isOpen: !v
|
11684
11689
|
}))
|
11685
11690
|
);
|
11686
|
-
}, [
|
11691
|
+
}, [v]);
|
11687
11692
|
k(() => (y({ callback: L, keys: ["E"] }), () => {
|
11688
|
-
|
11693
|
+
T(["E"]);
|
11689
11694
|
}), [L]);
|
11690
11695
|
const B = (H, F = N) => {
|
11691
11696
|
if (_.length > 0 || H === "reset") {
|
@@ -11784,7 +11789,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11784
11789
|
className: "dc__unset-button-styles px-10 flex dc__bg-n0--opacity-0_2",
|
11785
11790
|
onClick: L,
|
11786
11791
|
"aria-label": I,
|
11787
|
-
children:
|
11792
|
+
children: v ? /* @__PURE__ */ t.jsx(O_, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" }) : /* @__PURE__ */ t.jsx(j_, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" })
|
11788
11793
|
}
|
11789
11794
|
)
|
11790
11795
|
}
|
@@ -11806,7 +11811,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11806
11811
|
handleStageClose: Q,
|
11807
11812
|
handleStageOpen: de,
|
11808
11813
|
stageIndex: $,
|
11809
|
-
isLoading: $ === m.length - 1 &&
|
11814
|
+
isLoading: $ === m.length - 1 && O,
|
11810
11815
|
fullScreenView: a,
|
11811
11816
|
searchIndex: _[x]
|
11812
11817
|
},
|
@@ -11831,7 +11836,7 @@ const dD = (e, s, n) => ue(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
11831
11836
|
)
|
11832
11837
|
] }, `logs-${F}`)
|
11833
11838
|
)),
|
11834
|
-
|
11839
|
+
O && /* @__PURE__ */ t.jsx("div", { className: "flex left event-source-status", children: /* @__PURE__ */ t.jsx(Ue, {}) })
|
11835
11840
|
] });
|
11836
11841
|
return /* @__PURE__ */ t.jsx("div", { className: `flexbox-col flex-grow-1 ${Nn(At.dark)}`, children: e.podStatus !== to.PENDING && u && (!s || !e.blobStorageEnabled) ? gT(s) : Ie() });
|
11837
11842
|
}, NT = ({
|
@@ -12584,8 +12589,8 @@ const jT = ({
|
|
12584
12589
|
), h = Y(i), g = h.current && c ? c() : Bc(), [f, N] = R(g), C = () => {
|
12585
12590
|
va && clearTimeout(va);
|
12586
12591
|
}, A = () => {
|
12587
|
-
lT(m, p, !0, _, n, a).then((
|
12588
|
-
e !== "Aborted" &&
|
12592
|
+
lT(m, p, !0, _, n, a).then((T) => {
|
12593
|
+
e !== "Aborted" && v(T.result);
|
12589
12594
|
}).catch(() => {
|
12590
12595
|
x(!1);
|
12591
12596
|
}).finally(() => {
|
@@ -12597,8 +12602,8 @@ const jT = ({
|
|
12597
12602
|
}), [a]), k(() => {
|
12598
12603
|
h.current = i;
|
12599
12604
|
}, [i]);
|
12600
|
-
const
|
12601
|
-
const b = h.current && c ? c(
|
12605
|
+
const v = (T) => {
|
12606
|
+
const b = h.current && c ? c(T) : Bc(T);
|
12602
12607
|
C(), b.deploymentStatus === ge.INPROGRESS ? va = setTimeout(() => {
|
12603
12608
|
A();
|
12604
12609
|
}, 1e4) : va = setTimeout(() => {
|
@@ -12810,14 +12815,14 @@ const Zu = {
|
|
12810
12815
|
({ items: C, ...A }) => ({
|
12811
12816
|
...A,
|
12812
12817
|
isExpanded: m[A.id],
|
12813
|
-
items: C.map(({ diffState:
|
12818
|
+
items: C.map(({ diffState: v, ...I }) => ({
|
12814
12819
|
...I,
|
12815
|
-
strikeThrough: d &&
|
12816
|
-
...!u &&
|
12820
|
+
strikeThrough: d && v === wt.DELETED,
|
12821
|
+
...!u && v !== wt.NO_DIFF ? {
|
12817
12822
|
iconConfig: {
|
12818
|
-
Icon: d ? Mn[
|
12823
|
+
Icon: d ? Mn[v] : Mn.hasDiff,
|
12819
12824
|
tooltipProps: {
|
12820
|
-
content: d ? Aa[
|
12825
|
+
content: d ? Aa[v] : Aa.hasDiff,
|
12821
12826
|
arrow: !1,
|
12822
12827
|
placement: "right"
|
12823
12828
|
}
|
@@ -12843,19 +12848,19 @@ const Zu = {
|
|
12843
12848
|
onChange: x,
|
12844
12849
|
disabled: e,
|
12845
12850
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
12846
|
-
children: C.map((
|
12851
|
+
children: C.map((v) => /* @__PURE__ */ t.jsx(It.Radio, { value: v, className: "fs-12 lh-20 cn-7 fw-6", children: v }, v))
|
12847
12852
|
}
|
12848
12853
|
) });
|
12849
12854
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12850
|
-
n.map(({ title: C, href: A, onClick:
|
12851
|
-
const
|
12855
|
+
n.map(({ title: C, href: A, onClick: v, diffState: I, Icon: y }) => {
|
12856
|
+
const T = d ? Mn[I] : Mn.hasDiff;
|
12852
12857
|
return /* @__PURE__ */ t.jsxs(
|
12853
12858
|
_t,
|
12854
12859
|
{
|
12855
12860
|
"data-testid": "env-deployment-template",
|
12856
12861
|
className: "dc__nav-item cursor dc__gap-8 fs-13 lh-32 cn-7 w-100 br-4 px-8 flexbox dc__align-items-center dc__no-decor",
|
12857
12862
|
to: A,
|
12858
|
-
onClick:
|
12863
|
+
onClick: v,
|
12859
12864
|
children: [
|
12860
12865
|
y && /* @__PURE__ */ t.jsx(y, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
|
12861
12866
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate flex-grow-1", children: C }),
|
@@ -12866,7 +12871,7 @@ const Zu = {
|
|
12866
12871
|
content: d ? Aa[I] : Aa.hasDiff,
|
12867
12872
|
arrow: !1,
|
12868
12873
|
placement: "right",
|
12869
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
12874
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(T, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
12870
12875
|
}
|
12871
12876
|
)
|
12872
12877
|
]
|
@@ -12969,13 +12974,13 @@ const Zu = {
|
|
12969
12974
|
case He.NOT_FOUND:
|
12970
12975
|
return {
|
12971
12976
|
onClick: d,
|
12972
|
-
renderButtonText:
|
12977
|
+
renderButtonText: We.TAKE_BACK_HOME,
|
12973
12978
|
isButtonAvailable: !0
|
12974
12979
|
};
|
12975
12980
|
case He.INTERNAL_SERVER_ERROR:
|
12976
12981
|
return {
|
12977
12982
|
onClick: AI,
|
12978
|
-
renderButtonText:
|
12983
|
+
renderButtonText: We.REPORT_ISSUE,
|
12979
12984
|
isButtonAvailable: !0
|
12980
12985
|
};
|
12981
12986
|
case He.BAD_REQUEST:
|
@@ -12983,7 +12988,7 @@ const Zu = {
|
|
12983
12988
|
case He.SERVICE_TEMPORARY_UNAVAILABLE:
|
12984
12989
|
return {
|
12985
12990
|
onClick: c ?? Lm,
|
12986
|
-
renderButtonText:
|
12991
|
+
renderButtonText: We.TRY_AGAIN,
|
12987
12992
|
isButtonAvailable: !0
|
12988
12993
|
};
|
12989
12994
|
default:
|
@@ -13021,8 +13026,8 @@ const Zu = {
|
|
13021
13026
|
Ms,
|
13022
13027
|
{
|
13023
13028
|
code: He.BAD_REQUEST,
|
13024
|
-
title:
|
13025
|
-
subTitle: n ||
|
13029
|
+
title: We.BAD_REQUEST,
|
13030
|
+
subTitle: n || We.BAD_REQUEST_MESSAGE,
|
13026
13031
|
image: On,
|
13027
13032
|
imageType: i,
|
13028
13033
|
heightToDeduct: r,
|
@@ -13034,8 +13039,8 @@ const Zu = {
|
|
13034
13039
|
Ms,
|
13035
13040
|
{
|
13036
13041
|
code: He.UNAUTHORIZED,
|
13037
|
-
title:
|
13038
|
-
subTitle: n ||
|
13042
|
+
title: We.UNAUTHORIZED,
|
13043
|
+
subTitle: n || We.UNAUTHORIZED_MESSAGE,
|
13039
13044
|
image: go,
|
13040
13045
|
imageType: i,
|
13041
13046
|
heightToDeduct: r
|
@@ -13046,8 +13051,8 @@ const Zu = {
|
|
13046
13051
|
Ms,
|
13047
13052
|
{
|
13048
13053
|
code: He.PERMISSION_DENIED,
|
13049
|
-
title:
|
13050
|
-
subTitle: n ||
|
13054
|
+
title: We.FORBIDDEN,
|
13055
|
+
subTitle: n || We.FORBIDDEN_MESSAGE,
|
13051
13056
|
image: go,
|
13052
13057
|
imageType: i,
|
13053
13058
|
heightToDeduct: r
|
@@ -13058,8 +13063,8 @@ const Zu = {
|
|
13058
13063
|
Ms,
|
13059
13064
|
{
|
13060
13065
|
code: He.NOT_FOUND,
|
13061
|
-
title:
|
13062
|
-
subTitle: n ||
|
13066
|
+
title: We.PAGE_NOT_FOUND,
|
13067
|
+
subTitle: n || We.PAGE_NOT_EXIST,
|
13063
13068
|
image: pf,
|
13064
13069
|
imageType: i,
|
13065
13070
|
heightToDeduct: r,
|
@@ -13071,8 +13076,8 @@ const Zu = {
|
|
13071
13076
|
Ms,
|
13072
13077
|
{
|
13073
13078
|
code: He.INTERNAL_SERVER_ERROR,
|
13074
|
-
title:
|
13075
|
-
subTitle: n ||
|
13079
|
+
title: We.INTERNAL_SERVER_ERROR,
|
13080
|
+
subTitle: n || We.INTERNAL_SERVER_ERROR_MESSAGE,
|
13076
13081
|
image: On,
|
13077
13082
|
imageType: i,
|
13078
13083
|
heightToDeduct: r,
|
@@ -13084,8 +13089,8 @@ const Zu = {
|
|
13084
13089
|
Ms,
|
13085
13090
|
{
|
13086
13091
|
code: He.BAD_GATEWAY,
|
13087
|
-
title:
|
13088
|
-
subTitle: n ||
|
13092
|
+
title: We.BAD_GATEWAY,
|
13093
|
+
subTitle: n || We.BAD_GATEWAY_MESSAGE,
|
13089
13094
|
image: On,
|
13090
13095
|
imageType: i,
|
13091
13096
|
heightToDeduct: r,
|
@@ -13097,8 +13102,8 @@ const Zu = {
|
|
13097
13102
|
Ms,
|
13098
13103
|
{
|
13099
13104
|
code: He.SERVICE_TEMPORARY_UNAVAILABLE,
|
13100
|
-
title:
|
13101
|
-
subTitle: n ||
|
13105
|
+
title: We.SERVICE_TEMPORARY_UNAVAILABLE,
|
13106
|
+
subTitle: n || We.SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE,
|
13102
13107
|
image: On,
|
13103
13108
|
imageType: i,
|
13104
13109
|
heightToDeduct: r,
|
@@ -13557,11 +13562,11 @@ const Zu = {
|
|
13557
13562
|
},
|
13558
13563
|
diffState: Da(g, f)
|
13559
13564
|
};
|
13560
|
-
let C, A,
|
13565
|
+
let C, A, v;
|
13561
13566
|
(x.pipelineConfigData || h.pipelineConfigData) && (C = ul(x.pipelineConfigData, c), A = ul(
|
13562
13567
|
h.pipelineConfigData,
|
13563
13568
|
c
|
13564
|
-
),
|
13569
|
+
), v = {
|
13565
13570
|
id: rt.PipelineStrategy,
|
13566
13571
|
pathType: rt.PipelineStrategy,
|
13567
13572
|
title: "Pipeline Configuration",
|
@@ -13591,9 +13596,9 @@ const Zu = {
|
|
13591
13596
|
h.isAppAdmin,
|
13592
13597
|
r,
|
13593
13598
|
c
|
13594
|
-
),
|
13599
|
+
), T = [
|
13595
13600
|
N,
|
13596
|
-
...
|
13601
|
+
...v ? [v] : [],
|
13597
13602
|
...I,
|
13598
13603
|
...y
|
13599
13604
|
], b = [
|
@@ -13606,25 +13611,25 @@ const Zu = {
|
|
13606
13611
|
},
|
13607
13612
|
Icon: fo
|
13608
13613
|
},
|
13609
|
-
...
|
13614
|
+
...v ? [
|
13610
13615
|
{
|
13611
|
-
title:
|
13612
|
-
diffState:
|
13616
|
+
title: v.title,
|
13617
|
+
diffState: v.diffState,
|
13613
13618
|
href: n(rt.PipelineStrategy, null),
|
13614
13619
|
onClick: () => {
|
13615
|
-
document.querySelector(`#${
|
13620
|
+
document.querySelector(`#${v.id}`)?.scrollIntoView({ block: "start" });
|
13616
13621
|
},
|
13617
13622
|
Icon: fo
|
13618
13623
|
}
|
13619
13624
|
] : []
|
13620
|
-
],
|
13625
|
+
], j = [
|
13621
13626
|
{
|
13622
13627
|
header: "ConfigMaps",
|
13623
13628
|
id: rt.ConfigMap,
|
13624
|
-
items: I.map(({ name:
|
13625
|
-
title:
|
13626
|
-
diffState:
|
13627
|
-
href: n(rt.ConfigMap,
|
13629
|
+
items: I.map(({ name: S, diffState: O, id: w }) => ({
|
13630
|
+
title: S,
|
13631
|
+
diffState: O,
|
13632
|
+
href: n(rt.ConfigMap, S),
|
13628
13633
|
onClick: () => {
|
13629
13634
|
document.querySelector(`#${w}`)?.scrollIntoView({ block: "start" });
|
13630
13635
|
}
|
@@ -13634,10 +13639,10 @@ const Zu = {
|
|
13634
13639
|
{
|
13635
13640
|
header: "Secrets",
|
13636
13641
|
id: rt.Secret,
|
13637
|
-
items: y.map(({ name:
|
13638
|
-
title:
|
13639
|
-
diffState:
|
13640
|
-
href: n(rt.Secret,
|
13642
|
+
items: y.map(({ name: S, diffState: O, id: w }) => ({
|
13643
|
+
title: S,
|
13644
|
+
diffState: O,
|
13645
|
+
href: n(rt.Secret, S),
|
13641
13646
|
onClick: () => {
|
13642
13647
|
document.querySelector(`#${w}`)?.scrollIntoView({ block: "start" });
|
13643
13648
|
}
|
@@ -13646,8 +13651,8 @@ const Zu = {
|
|
13646
13651
|
}
|
13647
13652
|
];
|
13648
13653
|
return {
|
13649
|
-
configList:
|
13650
|
-
collapsibleNavList:
|
13654
|
+
configList: T,
|
13655
|
+
collapsibleNavList: j,
|
13651
13656
|
navList: b
|
13652
13657
|
};
|
13653
13658
|
}
|
@@ -13770,13 +13775,13 @@ const Zu = {
|
|
13770
13775
|
typeof C.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
|
13771
13776
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
13772
13777
|
] }, C.id);
|
13773
|
-
const { selectPickerProps:
|
13778
|
+
const { selectPickerProps: v } = C;
|
13774
13779
|
return /* @__PURE__ */ t.jsxs(Hs, { children: [
|
13775
13780
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
13776
13781
|
Xt,
|
13777
13782
|
{
|
13778
|
-
...
|
13779
|
-
isDisabled: e ||
|
13783
|
+
...v,
|
13784
|
+
isDisabled: e || v?.isDisabled
|
13780
13785
|
}
|
13781
13786
|
) }),
|
13782
13787
|
!r?.hideDivider && A !== N.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
@@ -13820,13 +13825,13 @@ const Zu = {
|
|
13820
13825
|
);
|
13821
13826
|
}
|
13822
13827
|
return null;
|
13823
|
-
}, g = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title:
|
13824
|
-
const { heading:
|
13828
|
+
}, g = () => a.map(({ id: N, primaryConfig: C, secondaryConfig: A, title: v, diffState: I, singleView: y }) => {
|
13829
|
+
const { heading: T, list: b } = C, { heading: j, list: S } = A;
|
13825
13830
|
return /* @__PURE__ */ t.jsx(
|
13826
13831
|
PT,
|
13827
13832
|
{
|
13828
13833
|
id: N,
|
13829
|
-
title:
|
13834
|
+
title: v,
|
13830
13835
|
isExpanded: u[N],
|
13831
13836
|
diffState: I,
|
13832
13837
|
onClick: p(N),
|
@@ -13837,34 +13842,34 @@ const Zu = {
|
|
13837
13842
|
em,
|
13838
13843
|
{
|
13839
13844
|
oldValue: b.codeEditorValue.value,
|
13840
|
-
newValue:
|
13841
|
-
...b.codeEditorValue.value !==
|
13842
|
-
leftTitle:
|
13843
|
-
rightTitle:
|
13845
|
+
newValue: S.codeEditorValue.value,
|
13846
|
+
...b.codeEditorValue.value !== S.codeEditorValue.value && {
|
13847
|
+
leftTitle: T,
|
13848
|
+
rightTitle: j
|
13844
13849
|
},
|
13845
13850
|
codeFoldMessageRenderer: tm(
|
13846
13851
|
b.codeEditorValue.value,
|
13847
|
-
|
13852
|
+
S.codeEditorValue.value
|
13848
13853
|
)
|
13849
13854
|
}
|
13850
13855
|
) : /* @__PURE__ */ t.jsxs("div", { className: "p-16", children: [
|
13851
|
-
|
13852
|
-
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children:
|
13853
|
-
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children:
|
13856
|
+
T && j && /* @__PURE__ */ t.jsxs("div", { className: "bcn-1 deployment-diff__upper dc__top-radius-4 dc__border-right dc__border-left dc__border-top", children: [
|
13857
|
+
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children: T }),
|
13858
|
+
/* @__PURE__ */ t.jsx("div", { className: "px-12 py-6", children: j })
|
13854
13859
|
] }),
|
13855
13860
|
/* @__PURE__ */ t.jsx(
|
13856
13861
|
xv,
|
13857
13862
|
{
|
13858
13863
|
codeEditorKey: `${o?.sortBy}-${o?.sortOrder}-${c?.convertVariables}`,
|
13859
|
-
baseTemplateConfiguration:
|
13864
|
+
baseTemplateConfiguration: S,
|
13860
13865
|
currentConfiguration: b,
|
13861
13866
|
previousConfigAvailable: !0,
|
13862
|
-
rootClassName: `${
|
13867
|
+
rootClassName: `${T && j ? "dc__no-top-radius dc__no-top-border" : ""}`
|
13863
13868
|
}
|
13864
13869
|
)
|
13865
13870
|
] })
|
13866
13871
|
},
|
13867
|
-
`${N}-${
|
13872
|
+
`${N}-${v}`
|
13868
13873
|
);
|
13869
13874
|
}), f = () => e ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, pageLoader: !0 }) : s?.error ? /* @__PURE__ */ t.jsx(
|
13870
13875
|
Lr,
|
@@ -14043,15 +14048,15 @@ const Zu = {
|
|
14043
14048
|
isCompareDeploymentConfigNotAvailable: u,
|
14044
14049
|
...m
|
14045
14050
|
}) => {
|
14046
|
-
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting:
|
14051
|
+
const { path: p, params: _ } = Jt(), { resourceType: E, resourceName: x, appId: h, envId: g } = _, { compareWfrId: f, updateSearchParams: N, sortBy: C, sortOrder: A, handleSorting: v } = r, [I, y] = R({
|
14047
14052
|
isLoading: !1,
|
14048
14053
|
data: c,
|
14049
14054
|
hasMore: c.size >= nn
|
14050
|
-
}), [
|
14051
|
-
k(() => (N({ compareWfrId: f }), s(!0), C !== no &&
|
14055
|
+
}), [T, b] = R(n);
|
14056
|
+
k(() => (N({ compareWfrId: f }), s(!0), C !== no && v(no), () => {
|
14052
14057
|
i(!1), s(!1);
|
14053
14058
|
}), []);
|
14054
|
-
const
|
14059
|
+
const j = async (F) => {
|
14055
14060
|
y({ ...I, isLoading: !0 });
|
14056
14061
|
try {
|
14057
14062
|
const { result: ce } = await _T({
|
@@ -14067,11 +14072,11 @@ const Zu = {
|
|
14067
14072
|
} catch {
|
14068
14073
|
y({ ...I, isLoading: !1 });
|
14069
14074
|
}
|
14070
|
-
},
|
14075
|
+
}, S = () => j(I.data.size), O = () => I.hasMore ? /* @__PURE__ */ t.jsx("div", { className: "px-4", children: /* @__PURE__ */ t.jsx(
|
14071
14076
|
re,
|
14072
14077
|
{
|
14073
14078
|
isLoading: I.isLoading,
|
14074
|
-
onClick:
|
14079
|
+
onClick: S,
|
14075
14080
|
dataTestId: "load-more-previous-deployments",
|
14076
14081
|
variant: he.borderLess,
|
14077
14082
|
text: "Load more",
|
@@ -14079,7 +14084,7 @@ const Zu = {
|
|
14079
14084
|
fullWidth: !0
|
14080
14085
|
}
|
14081
14086
|
) }) : null, { currentDeployment: w, pipelineDeploymentsOptions: L } = JT({
|
14082
|
-
pipelineDeployments:
|
14087
|
+
pipelineDeployments: T,
|
14083
14088
|
wfrId: a,
|
14084
14089
|
triggerHistory: I.data,
|
14085
14090
|
renderRunSource: l,
|
@@ -14102,7 +14107,7 @@ const Zu = {
|
|
14102
14107
|
onChange: X,
|
14103
14108
|
showSelectedOptionIcon: !1,
|
14104
14109
|
menuSize: M.large,
|
14105
|
-
renderOptionsFooter:
|
14110
|
+
renderOptionsFooter: O
|
14106
14111
|
}
|
14107
14112
|
}
|
14108
14113
|
] : [
|
@@ -14120,7 +14125,7 @@ const Zu = {
|
|
14120
14125
|
}
|
14121
14126
|
]
|
14122
14127
|
}, Q = () => V ? u ? `Diff unavailable: Configurations for deployment execution ‘${B?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${B?.label || "N/A"} & ${w}` : null, Ie = {
|
14123
|
-
handleSorting: () =>
|
14128
|
+
handleSorting: () => v(A !== xe.DESC ? no : ""),
|
14124
14129
|
sortBy: C,
|
14125
14130
|
sortOrder: A
|
14126
14131
|
}, H = {
|
@@ -14158,7 +14163,7 @@ const Zu = {
|
|
14158
14163
|
[_, a]
|
14159
14164
|
), h = !!x, g = au({
|
14160
14165
|
parseSearchParams: ZT(x)
|
14161
|
-
}), { compareWfrId: f, sortBy: N, sortOrder: C } = g, [A,
|
14166
|
+
}), { compareWfrId: f, sortBy: N, sortOrder: C } = g, [A, v] = R(!1), [I, y, , T] = Kt(async () => {
|
14162
14167
|
const X = [
|
14163
14168
|
{
|
14164
14169
|
appName: e,
|
@@ -14181,7 +14186,7 @@ const Zu = {
|
|
14181
14186
|
return q.status !== "fulfilled" || !q.value || q.value.forEach((de, Ie) => {
|
14182
14187
|
Q[Ie].status !== "fulfilled" || !Q[Ie].value || Q[Ie].value.result.isAppAdmin || (Q[Ie].value.result.secretsData = de.secretsData);
|
14183
14188
|
}), Q;
|
14184
|
-
}, [E, f]), b = (X, q) => `${Fs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`,
|
14189
|
+
}, [E, f]), b = (X, q) => `${Fs(l, { ...d })}/${X}${q ? `/${q}` : ""}${m}`, j = te(() => {
|
14185
14190
|
if (!I && y) {
|
14186
14191
|
const X = h && y[1].status === "fulfilled" ? y[1].value.result : {
|
14187
14192
|
configMapData: null,
|
@@ -14205,16 +14210,16 @@ const Zu = {
|
|
14205
14210
|
A,
|
14206
14211
|
N,
|
14207
14212
|
C
|
14208
|
-
]),
|
14213
|
+
]), S = te(
|
14209
14214
|
() => !I && y ? hl(y[0]) || hl(y[1]) : null,
|
14210
14215
|
[I, y]
|
14211
|
-
),
|
14212
|
-
() =>
|
14213
|
-
[
|
14214
|
-
), w = y && fl(y[1]), L = !h || w, B = I || !
|
14215
|
-
code:
|
14216
|
-
error:
|
14217
|
-
reload:
|
14216
|
+
), O = te(
|
14217
|
+
() => j ? RN(j.configList, "groupHeader") : [],
|
14218
|
+
[j]
|
14219
|
+
), w = y && fl(y[1]), L = !h || w, B = I || !S && !j, V = {
|
14220
|
+
code: S?.code,
|
14221
|
+
error: S && !I,
|
14222
|
+
reload: T
|
14218
14223
|
};
|
14219
14224
|
return y && fl(y[0]) ? /* @__PURE__ */ t.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ t.jsx(
|
14220
14225
|
Qe,
|
@@ -14226,7 +14231,7 @@ const Zu = {
|
|
14226
14231
|
/* @__PURE__ */ t.jsx(Bs, { path: `${l}/:resourceType(${Object.values(rt).join("|")})/:resourceName?`, children: /* @__PURE__ */ t.jsx(
|
14227
14232
|
QT,
|
14228
14233
|
{
|
14229
|
-
...
|
14234
|
+
...j,
|
14230
14235
|
isLoading: B,
|
14231
14236
|
errorConfig: V,
|
14232
14237
|
envName: s,
|
@@ -14235,7 +14240,7 @@ const Zu = {
|
|
14235
14240
|
pipelineDeployments: _,
|
14236
14241
|
setFullScreenView: o,
|
14237
14242
|
convertVariables: A,
|
14238
|
-
setConvertVariables:
|
14243
|
+
setConvertVariables: v,
|
14239
14244
|
triggerHistory: r,
|
14240
14245
|
resourceId: i,
|
14241
14246
|
renderRunSource: c,
|
@@ -14243,12 +14248,12 @@ const Zu = {
|
|
14243
14248
|
isCompareDeploymentConfigNotAvailable: w
|
14244
14249
|
}
|
14245
14250
|
) }),
|
14246
|
-
/* @__PURE__ */ t.jsx(Bs, { children:
|
14251
|
+
/* @__PURE__ */ t.jsx(Bs, { children: S && !I ? /* @__PURE__ */ t.jsx(Lr, { code: V.code, reload: V.reload }) : /* @__PURE__ */ t.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: B ? /* @__PURE__ */ t.jsx(Ue, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14247
14252
|
/* @__PURE__ */ t.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: L ? "Configurations used for this deployment trigger" : "Showing configuration change with respect to previous deployment" }),
|
14248
14253
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
14249
|
-
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(
|
14254
|
+
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(O).map(
|
14250
14255
|
(X) => zT(
|
14251
|
-
|
14256
|
+
O[X],
|
14252
14257
|
X !== "UNGROUPED" ? X : null,
|
14253
14258
|
u,
|
14254
14259
|
L
|
@@ -14342,17 +14347,17 @@ const ct = ({
|
|
14342
14347
|
if (C.isIntersecting && C.intersectionRatio >= 1)
|
14343
14348
|
l(1);
|
14344
14349
|
else {
|
14345
|
-
const { boundingClientRect: A, rootBounds:
|
14346
|
-
x:
|
14347
|
-
y:
|
14348
|
-
height:
|
14350
|
+
const { boundingClientRect: A, rootBounds: v } = C, { x: I, y, height: T, width: b } = A, {
|
14351
|
+
x: j,
|
14352
|
+
y: S,
|
14353
|
+
height: O,
|
14349
14354
|
width: w,
|
14350
14355
|
left: L,
|
14351
14356
|
right: B,
|
14352
14357
|
top: V,
|
14353
14358
|
bottom: X
|
14354
14359
|
} = u.current.getBoundingClientRect();
|
14355
|
-
y +
|
14360
|
+
y + T > v.height && (i({ left: j, bottom: document.documentElement.clientHeight - S }), l(1)), I + b > v.width && (i((q) => ({ ...q, right: "20px", left: "unset" })), l(1));
|
14356
14361
|
}
|
14357
14362
|
});
|
14358
14363
|
}
|
@@ -14369,7 +14374,7 @@ const ct = ({
|
|
14369
14374
|
function g(f) {
|
14370
14375
|
if (!f) return;
|
14371
14376
|
u.current = f;
|
14372
|
-
const { bottom: N, height: C, left: A, right:
|
14377
|
+
const { bottom: N, height: C, left: A, right: v, top: I, width: y, x: T, y: b } = f.getBoundingClientRect();
|
14373
14378
|
m.current = y;
|
14374
14379
|
}
|
14375
14380
|
return /* @__PURE__ */ t.jsx(
|
@@ -14471,12 +14476,12 @@ const zt = ({
|
|
14471
14476
|
}, [m]), useEffectAfterMount(() => {
|
14472
14477
|
p(n);
|
14473
14478
|
}, [n]);
|
14474
|
-
function N(y,
|
14475
|
-
p(
|
14479
|
+
function N(y, T) {
|
14480
|
+
p(T), y.target.name = c, y.target.value = T, s(y);
|
14476
14481
|
}
|
14477
14482
|
if (!e) return null;
|
14478
|
-
const { button: C, body: A, optionLength:
|
14479
|
-
(y,
|
14483
|
+
const { button: C, body: A, optionLength: v, AsyncComponent: I } = Ce.Children.toArray(e).reduce(
|
14484
|
+
(y, T) => (T.type === lm ? y.button = T : T.type === dm ? y.AsyncComponent = T : ((T.type === im || T.type === cm) && (y.optionLength += 1), y.body.push(T)), y),
|
14480
14485
|
{ button: null, body: [], optionLength: 0, AsyncComponent: null }
|
14481
14486
|
);
|
14482
14487
|
return /* @__PURE__ */ t.jsx(
|
@@ -14508,7 +14513,7 @@ const zt = ({
|
|
14508
14513
|
),
|
14509
14514
|
_ && I,
|
14510
14515
|
/* @__PURE__ */ t.jsx(ct.Body, { rootClassName: `select-popup ${r || ""}`, autoWidth: l, children: g ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14511
|
-
|
14516
|
+
v === 0 && /* @__PURE__ */ t.jsx("div", { className: `${r} no-option-found flex`, children: "No results found" }),
|
14512
14517
|
A
|
14513
14518
|
] }) })
|
14514
14519
|
] })
|
@@ -14820,14 +14825,14 @@ const uS = 100, et = Ce.memo(
|
|
14820
14825
|
isKubernetes: N = !0,
|
14821
14826
|
cleanData: C = !1,
|
14822
14827
|
onBlur: A,
|
14823
|
-
onFocus:
|
14828
|
+
onFocus: v,
|
14824
14829
|
adjustEditorHeightToContent: I = !1,
|
14825
14830
|
disableSearch: y = !1,
|
14826
|
-
originalEditable:
|
14831
|
+
originalEditable: T = !1
|
14827
14832
|
}) => {
|
14828
14833
|
const { appTheme: b } = yr();
|
14829
14834
|
C && (e = pr(e), a = pr(a));
|
14830
|
-
const
|
14835
|
+
const j = Y(null), S = Y(null), { width: O, height: w } = pi(), L = Ce.useCallback(lS, []), [B, V] = Zp(
|
14831
14836
|
L,
|
14832
14837
|
dS({
|
14833
14838
|
mode: s,
|
@@ -14874,9 +14879,9 @@ const uS = 100, et = Ce.memo(
|
|
14874
14879
|
};
|
14875
14880
|
}, [y]);
|
14876
14881
|
const le = (K) => {
|
14877
|
-
s === Fe.YAML && K && typeof K.getModel == "function" && typeof K.getModel().updateOptions == "function" && K.getModel().updateOptions({ tabSize: 2 }), K && (typeof K.onDidFocusEditorWidget == "function" && typeof
|
14882
|
+
s === Fe.YAML && K && typeof K.getModel == "function" && typeof K.getModel().updateOptions == "function" && K.getModel().updateOptions({ tabSize: 2 }), K && (typeof K.onDidFocusEditorWidget == "function" && typeof v == "function" && K.onDidFocusEditorWidget(v), typeof K.onDidBlurEditorWidget == "function" && typeof A == "function" && K.onDidBlurEditorWidget(A)), I && K && (K.onDidContentSizeChange(() => {
|
14878
14883
|
F(K.getContentHeight());
|
14879
|
-
}), F(K.getContentHeight())),
|
14884
|
+
}), F(K.getContentHeight())), j.current = K, S.current = sc;
|
14880
14885
|
}, pe = (K, se) => {
|
14881
14886
|
const je = K.getOriginalEditor(), xt = K.getModifiedEditor();
|
14882
14887
|
I && (je.onDidContentSizeChange(() => {
|
@@ -14893,9 +14898,9 @@ const uS = 100, et = Ce.memo(
|
|
14893
14898
|
xt.getContentHeight()
|
14894
14899
|
)
|
14895
14900
|
);
|
14896
|
-
}), F(Math.max(je.getContentHeight(), xt.getContentHeight()))),
|
14901
|
+
}), F(Math.max(je.getContentHeight(), xt.getContentHeight()))), T && je.onDidChangeModelContent(() => {
|
14897
14902
|
$(xt.getValue(), je.getValue());
|
14898
|
-
}),
|
14903
|
+
}), j.current = K, S.current = se;
|
14899
14904
|
}, D = te(() => I ? H : c, [c, H, I]);
|
14900
14905
|
k(() => {
|
14901
14906
|
if (!g)
|
@@ -14916,10 +14921,10 @@ const uS = 100, et = Ce.memo(
|
|
14916
14921
|
K.dispose();
|
14917
14922
|
};
|
14918
14923
|
}, [g, f]), k(() => {
|
14919
|
-
|
14924
|
+
j.current && j.current.updateOptions({ readOnly: m });
|
14920
14925
|
}, [m]), k(() => {
|
14921
|
-
|
14922
|
-
}, [
|
14926
|
+
j.current && j.current.layout();
|
14927
|
+
}, [O, w]);
|
14923
14928
|
const P = (K, se) => {
|
14924
14929
|
V({ type: "setCode", value: K }), V({ type: "setDefaultCode", value: se }), ce.current?.(K, se);
|
14925
14930
|
};
|
@@ -14932,12 +14937,12 @@ const uS = 100, et = Ce.memo(
|
|
14932
14937
|
}, [e, a, n]), k(() => {
|
14933
14938
|
V({ type: "setDiff", value: p });
|
14934
14939
|
}, [p]), k(() => {
|
14935
|
-
h &&
|
14940
|
+
h && j.current.focus();
|
14936
14941
|
}, [h]);
|
14937
14942
|
const $ = (K, se) => {
|
14938
14943
|
P(K, se);
|
14939
14944
|
}, ee = (K) => {
|
14940
|
-
$(K,
|
14945
|
+
$(K, j.current?.getOriginalEditor?.().getValue?.() ?? "");
|
14941
14946
|
};
|
14942
14947
|
function oe(K) {
|
14943
14948
|
V({ type: "changeLanguage", value: K }), P(K === "json" ? X : q, K === "json" ? de : Ie);
|
@@ -14969,7 +14974,7 @@ const uS = 100, et = Ce.memo(
|
|
14969
14974
|
}
|
14970
14975
|
}, Ee = {
|
14971
14976
|
...ve,
|
14972
|
-
originalEditable:
|
14977
|
+
originalEditable: T && !m,
|
14973
14978
|
useInlineViewWhenSpaceIsLimited: !1
|
14974
14979
|
};
|
14975
14980
|
return /* @__PURE__ */ t.jsxs(
|
@@ -15264,7 +15269,7 @@ const TS = () => (e) => {
|
|
15264
15269
|
}, jS = () => {
|
15265
15270
|
const e = document.createElement("button");
|
15266
15271
|
return bd(
|
15267
|
-
/* @__PURE__ */ t.jsx(ie, { content: "Revert this chunk", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
15272
|
+
/* @__PURE__ */ t.jsx(ie, { content: "Revert this chunk", alwaysShowTippyOnHover: !0, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ke, { name: "ic-arrow-right", color: "N600", size: 20 }) }) }),
|
15268
15273
|
e
|
15269
15274
|
), e;
|
15270
15275
|
}, Nl = (e, s = !1) => {
|
@@ -15454,13 +15459,13 @@ const TS = () => (e) => {
|
|
15454
15459
|
Kl(e);
|
15455
15460
|
}, A = (L) => {
|
15456
15461
|
m({ caseSensitive: L });
|
15457
|
-
},
|
15462
|
+
}, v = (L) => {
|
15458
15463
|
m({ wholeWord: L });
|
15459
15464
|
}, I = (L) => {
|
15460
15465
|
m({ regexp: L });
|
15461
15466
|
}, y = () => {
|
15462
15467
|
l(!c), e.dispatch({ effects: [pa.of(!c)] });
|
15463
|
-
},
|
15468
|
+
}, T = (L) => {
|
15464
15469
|
L.preventDefault(), L.stopPropagation(), Dp(e);
|
15465
15470
|
}, b = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
|
15466
15471
|
re,
|
@@ -15487,7 +15492,7 @@ const TS = () => (e) => {
|
|
15487
15492
|
placement: "bottom"
|
15488
15493
|
}
|
15489
15494
|
}
|
15490
|
-
) }),
|
15495
|
+
) }), j = () => /* @__PURE__ */ t.jsxs("div", { className: "code-editor__search__field-container", children: [
|
15491
15496
|
/* @__PURE__ */ t.jsx(
|
15492
15497
|
"input",
|
15493
15498
|
{
|
@@ -15515,7 +15520,7 @@ const TS = () => (e) => {
|
|
15515
15520
|
{
|
15516
15521
|
Icon: Af,
|
15517
15522
|
isChecked: a.wholeWord,
|
15518
|
-
onChange:
|
15523
|
+
onChange: v,
|
15519
15524
|
tooltipText: "Match Whole Word"
|
15520
15525
|
}
|
15521
15526
|
),
|
@@ -15529,7 +15534,7 @@ const TS = () => (e) => {
|
|
15529
15534
|
tooltipText: "Use Regular Expression"
|
15530
15535
|
}
|
15531
15536
|
)
|
15532
|
-
] }),
|
15537
|
+
] }), S = () => /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4", children: [
|
15533
15538
|
/* @__PURE__ */ t.jsx(
|
15534
15539
|
re,
|
15535
15540
|
{
|
@@ -15592,7 +15597,7 @@ const TS = () => (e) => {
|
|
15592
15597
|
}
|
15593
15598
|
}
|
15594
15599
|
)
|
15595
|
-
] }),
|
15600
|
+
] }), O = () => /* @__PURE__ */ t.jsx(
|
15596
15601
|
re,
|
15597
15602
|
{
|
15598
15603
|
dataTestId: "find-replace-close-button",
|
@@ -15602,7 +15607,7 @@ const TS = () => (e) => {
|
|
15602
15607
|
variant: he.borderLess,
|
15603
15608
|
style: be.neutral,
|
15604
15609
|
size: M.xxs,
|
15605
|
-
onClick:
|
15610
|
+
onClick: T,
|
15606
15611
|
showTooltip: !0,
|
15607
15612
|
tooltipProps: {
|
15608
15613
|
shortcutKeyCombo: {
|
@@ -15674,10 +15679,10 @@ const TS = () => (e) => {
|
|
15674
15679
|
!u && b(),
|
15675
15680
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
15676
15681
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
15677
|
-
|
15682
|
+
j(),
|
15678
15683
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 w-80px fs-12 lh-18 cn-7 ${a.search && !o.count ? "cr-5" : ""}`, children: o.count ? `${o.current || "?"} of ${o.count}` : "No results" }),
|
15679
|
-
|
15680
|
-
|
15684
|
+
S(),
|
15685
|
+
O()
|
15681
15686
|
] }),
|
15682
15687
|
/* @__PURE__ */ t.jsx(Di, { expand: c, children: w() })
|
15683
15688
|
] })
|
@@ -15747,9 +15752,9 @@ const TS = () => (e) => {
|
|
15747
15752
|
const [r, o] = R(0), [i, c] = R(50), [l, d] = R(!1), u = Y(null), m = Y(null), p = Y(0), _ = Y(0), E = Nn(s), x = () => {
|
15748
15753
|
if (!e?.dom || !u.current || !m.current)
|
15749
15754
|
return;
|
15750
|
-
const { clientHeight: A, scrollHeight:
|
15755
|
+
const { clientHeight: A, scrollHeight: v, scrollTop: I } = e.dom, y = u.current.clientHeight, T = A / v * y, b = Math.max(T, US), j = I / v * y;
|
15751
15756
|
c(b), o(
|
15752
|
-
|
15757
|
+
j + b > A ? A - b : j
|
15753
15758
|
);
|
15754
15759
|
};
|
15755
15760
|
k(() => {
|
@@ -15762,8 +15767,8 @@ const TS = () => (e) => {
|
|
15762
15767
|
}, f = (A) => {
|
15763
15768
|
if (!l || !e?.dom || !u.current)
|
15764
15769
|
return;
|
15765
|
-
const { scrollHeight:
|
15766
|
-
e.dom.scrollTo({ top: _.current + b * (
|
15770
|
+
const { scrollHeight: v, clientHeight: I } = e.dom, y = u.current.clientHeight, b = (A.clientY - p.current) / y;
|
15771
|
+
e.dom.scrollTo({ top: _.current + b * (v - I) });
|
15767
15772
|
}, N = () => {
|
15768
15773
|
d(!1), document.body.style.userSelect = "auto", document.body.style.pointerEvents = "auto";
|
15769
15774
|
};
|
@@ -15783,8 +15788,8 @@ const TS = () => (e) => {
|
|
15783
15788
|
}), [e, l]);
|
15784
15789
|
const C = (A) => {
|
15785
15790
|
if (!e.dom || !u.current) return;
|
15786
|
-
const { clientHeight:
|
15787
|
-
e.dom.scrollTo({ top: b * (I -
|
15791
|
+
const { clientHeight: v, scrollHeight: I } = e.dom, y = u.current.clientHeight, b = (A.clientY - u.current.getBoundingClientRect().top) / y;
|
15792
|
+
e.dom.scrollTo({ top: b * (I - v) });
|
15788
15793
|
};
|
15789
15794
|
return /* @__PURE__ */ t.jsxs(
|
15790
15795
|
"div",
|
@@ -15968,7 +15973,7 @@ const TS = () => (e) => {
|
|
15968
15973
|
autoFocus: g,
|
15969
15974
|
diffMinimapExtensions: f
|
15970
15975
|
}) => {
|
15971
|
-
const { value: N, lhsValue: C, diffMode: A } = wr(), [
|
15976
|
+
const { value: N, lhsValue: C, diffMode: A } = wr(), [v, I] = R(0), [y, T] = R(null), [b, j] = R(null), [S, O] = R(1), w = Y(), L = Y(), B = Y(), V = Y(), X = Nn(s), q = () => {
|
15972
15977
|
const D = document.querySelector(".cm-gutters");
|
15973
15978
|
D && I(D.getBoundingClientRect().width);
|
15974
15979
|
};
|
@@ -16039,7 +16044,7 @@ const TS = () => (e) => {
|
|
16039
16044
|
diffConfig: { scanLimit: 5e3 },
|
16040
16045
|
parent: L.current
|
16041
16046
|
});
|
16042
|
-
if (
|
16047
|
+
if (T(D), D && V.current) {
|
16043
16048
|
b?.destroy(), B.current?.destroy();
|
16044
16049
|
const P = new Ji({
|
16045
16050
|
a: {
|
@@ -16054,11 +16059,11 @@ const TS = () => (e) => {
|
|
16054
16059
|
diffConfig: { scanLimit: 5e3 },
|
16055
16060
|
parent: V.current
|
16056
16061
|
});
|
16057
|
-
B.current = P,
|
16062
|
+
B.current = P, j(P);
|
16058
16063
|
}
|
16059
16064
|
}
|
16060
16065
|
return () => {
|
16061
|
-
|
16066
|
+
T(null), j(null), B.current = null;
|
16062
16067
|
};
|
16063
16068
|
}, [n, e, A]), k(() => {
|
16064
16069
|
if (y) {
|
@@ -16073,7 +16078,7 @@ const TS = () => (e) => {
|
|
16073
16078
|
}
|
16074
16079
|
}, [C, N, y]), k(() => {
|
16075
16080
|
setTimeout(() => {
|
16076
|
-
|
16081
|
+
O(
|
16077
16082
|
y ? Math.min(y.dom.clientHeight / y.dom.scrollHeight, 1) : 1
|
16078
16083
|
);
|
16079
16084
|
}, 100);
|
@@ -16093,7 +16098,7 @@ const TS = () => (e) => {
|
|
16093
16098
|
theme: s,
|
16094
16099
|
view: y,
|
16095
16100
|
diffMinimapParentRef: V,
|
16096
|
-
scalingFactor:
|
16101
|
+
scalingFactor: S
|
16097
16102
|
}
|
16098
16103
|
)
|
16099
16104
|
] }) : /* @__PURE__ */ t.jsxs(
|
@@ -16107,7 +16112,7 @@ const TS = () => (e) => {
|
|
16107
16112
|
"span",
|
16108
16113
|
{
|
16109
16114
|
className: "code-editor__shebang__gutter dc__align-self-stretch",
|
16110
|
-
style: { flex: `0 0 ${
|
16115
|
+
style: { flex: `0 0 ${v}px` }
|
16111
16116
|
}
|
16112
16117
|
),
|
16113
16118
|
p
|
@@ -16159,24 +16164,24 @@ const TS = () => (e) => {
|
|
16159
16164
|
validatorSchema: N = {},
|
16160
16165
|
schemaURI: C = Od,
|
16161
16166
|
cleanData: A = !1,
|
16162
|
-
onBlur:
|
16167
|
+
onBlur: v,
|
16163
16168
|
onFocus: I,
|
16164
16169
|
autoFocus: y,
|
16165
|
-
disableSearch:
|
16170
|
+
disableSearch: T = !1
|
16166
16171
|
}) => {
|
16167
|
-
const { appTheme: b } = yr(),
|
16172
|
+
const { appTheme: b } = yr(), j = Y(), S = Y({ code: "", lhsCode: "" }), O = te(() => {
|
16168
16173
|
const se = h ? a : s, je = A ? pr(se) : se;
|
16169
|
-
return je !==
|
16174
|
+
return je !== S.current.code ? ![Fe.JSON, Fe.YAML].includes(o) || i ? je : gl(je, o, l) : S.current.code;
|
16170
16175
|
}, [s, a, h, i]), w = te(() => {
|
16171
16176
|
const se = A ? pr(n) : n;
|
16172
|
-
return se !==
|
16177
|
+
return se !== S.current.lhsCode ? ![Fe.JSON, Fe.YAML].includes(o) || i ? se : gl(se, o, l) : S.current.lhsCode;
|
16173
16178
|
}, [n, i]), L = e ?? b, B = L === At.dark, { codeEditorTheme: V, themeExtension: X } = rv(B), [q, Q] = R(), [de, Ie] = R(!1), [H, F] = R(h), ce = te(
|
16174
|
-
() => ({ setDiffMode: F, diffMode: H, hasCodeEditorContainer: de, lhsValue: w, value:
|
16175
|
-
[H, de, w,
|
16179
|
+
() => ({ setDiffMode: F, diffMode: H, hasCodeEditorContainer: de, lhsValue: w, value: O, readOnly: E, theme: L }),
|
16180
|
+
[H, de, w, O, E, L]
|
16176
16181
|
);
|
16177
16182
|
k(() => {
|
16178
|
-
|
16179
|
-
!!
|
16183
|
+
j.current && Ie(
|
16184
|
+
!!j.current.parentElement.getAttribute("data-code-editor-container")
|
16180
16185
|
);
|
16181
16186
|
}, []), k(() => {
|
16182
16187
|
F(h);
|
@@ -16185,12 +16190,12 @@ const TS = () => (e) => {
|
|
16185
16190
|
Q(Ks());
|
16186
16191
|
},
|
16187
16192
|
// Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
|
16188
|
-
[E, l,
|
16193
|
+
[E, l, T, b, o, r]
|
16189
16194
|
);
|
16190
16195
|
const le = (se) => {
|
16191
|
-
|
16196
|
+
S.current.code = se, H ? _?.(se) : m?.(se);
|
16192
16197
|
}, pe = (se) => {
|
16193
|
-
|
16198
|
+
S.current.lhsCode = se, p?.(se);
|
16194
16199
|
}, D = {
|
16195
16200
|
defaultKeymap: !1,
|
16196
16201
|
searchKeymap: !1,
|
@@ -16207,7 +16212,7 @@ const TS = () => (e) => {
|
|
16207
16212
|
X,
|
16208
16213
|
$p.of([
|
16209
16214
|
...Fp.filter(({ key: se }) => se !== "Mod-Alt-Enter" && se !== "Mod-Enter" && se !== "Mod-f"),
|
16210
|
-
...
|
16215
|
+
...T ? [] : [{ key: "Mod-f", run: hm, scope: "editor search-panel" }],
|
16211
16216
|
{ key: "Mod-Enter", run: HS, scope: "editor search-panel" },
|
16212
16217
|
{ key: "Mod-Alt-f", run: GS, scope: "editor search-panel" },
|
16213
16218
|
{ key: "Escape", run: YS, stopPropagation: !0 }
|
@@ -16255,7 +16260,7 @@ const TS = () => (e) => {
|
|
16255
16260
|
ov,
|
16256
16261
|
{
|
16257
16262
|
codemirrorMergeKey: q,
|
16258
|
-
codeMirrorParentDivRef:
|
16263
|
+
codeMirrorParentDivRef: j,
|
16259
16264
|
codeEditorTheme: V,
|
16260
16265
|
theme: L,
|
16261
16266
|
loading: g,
|
@@ -16266,7 +16271,7 @@ const TS = () => (e) => {
|
|
16266
16271
|
placeholder: x,
|
16267
16272
|
handleOnChange: P,
|
16268
16273
|
handleLhsOnChange: $,
|
16269
|
-
onBlur:
|
16274
|
+
onBlur: v,
|
16270
16275
|
onFocus: I,
|
16271
16276
|
autoFocus: y,
|
16272
16277
|
originalViewExtensions: ve,
|
@@ -16425,7 +16430,7 @@ const xv = ({
|
|
16425
16430
|
className: "git-commit-info-generic__header px-16 py-12 dc__box-shadow fs-12 fw-6 dc__gap-4",
|
16426
16431
|
style: r,
|
16427
16432
|
children: [
|
16428
|
-
/* @__PURE__ */ t.jsx(
|
16433
|
+
/* @__PURE__ */ t.jsx(Ke, { name: Ev(s), size: 20, color: null }),
|
16429
16434
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left left dc__gap-4 fs-13", children: [
|
16430
16435
|
/* @__PURE__ */ t.jsx(
|
16431
16436
|
"div",
|
@@ -16550,7 +16555,7 @@ const xv = ({
|
|
16550
16555
|
N()
|
16551
16556
|
] }),
|
16552
16557
|
_()
|
16553
|
-
] }),
|
16558
|
+
] }), v = () => {
|
16554
16559
|
if (!d) return null;
|
16555
16560
|
const I = u.eventactiontype === Cv.MERGED;
|
16556
16561
|
return r.includes(pt.GITLAB) ? I ? A() : C() : I ? C() : A();
|
@@ -16624,7 +16629,7 @@ const xv = ({
|
|
16624
16629
|
] }) : null
|
16625
16630
|
] })
|
16626
16631
|
] }),
|
16627
|
-
|
16632
|
+
v()
|
16628
16633
|
] })
|
16629
16634
|
] });
|
16630
16635
|
}, fD = ({
|
@@ -16633,7 +16638,7 @@ const xv = ({
|
|
16633
16638
|
fullScreenView: n,
|
16634
16639
|
setFullScreenView: a
|
16635
16640
|
}) => {
|
16636
|
-
const { pathname: r } = Ls(), { registerShortcut: o, unregisterShortcut: i } = aa(), c =
|
16641
|
+
const { pathname: r } = Ls(), { registerShortcut: o, unregisterShortcut: i } = aa(), c = qe(() => {
|
16637
16642
|
a(!n);
|
16638
16643
|
}, [n]), l = !s || r.includes("/logs");
|
16639
16644
|
return k(() => (l && e.length && o({ callback: c, keys: e }), () => {
|
@@ -16713,8 +16718,8 @@ const xv = ({
|
|
16713
16718
|
const N = za(n);
|
16714
16719
|
return /* @__PURE__ */ t.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
|
16715
16720
|
s?.map((C, A) => {
|
16716
|
-
const
|
16717
|
-
return
|
16721
|
+
const v = e[C.id];
|
16722
|
+
return v && (v.Commit || v.WebhookData?.data) ? /* @__PURE__ */ t.jsx(
|
16718
16723
|
"div",
|
16719
16724
|
{
|
16720
16725
|
className: "bg__primary br-4 en-2 bw-1",
|
@@ -16724,16 +16729,16 @@ const xv = ({
|
|
16724
16729
|
Em,
|
16725
16730
|
{
|
16726
16731
|
index: A,
|
16727
|
-
materialUrl:
|
16732
|
+
materialUrl: v?.GitRepoUrl ? v.GitRepoUrl : C?.url,
|
16728
16733
|
showMaterialInfoHeader: !0,
|
16729
|
-
commitInfo:
|
16730
|
-
materialSourceType:
|
16734
|
+
commitInfo: v,
|
16735
|
+
materialSourceType: v?.CiConfigureSourceType ? v.CiConfigureSourceType : C?.type,
|
16731
16736
|
selectedCommitInfo: "",
|
16732
|
-
materialSourceValue:
|
16737
|
+
materialSourceValue: v?.CiConfigureSourceValue ? v.CiConfigureSourceValue : C?.value
|
16733
16738
|
}
|
16734
16739
|
)
|
16735
16740
|
},
|
16736
|
-
`mat-${
|
16741
|
+
`mat-${v?.Commit}-${A}`
|
16737
16742
|
) : null;
|
16738
16743
|
}),
|
16739
16744
|
n && /* @__PURE__ */ t.jsx("div", { className: "history-component__artifact flex left column", children: /* @__PURE__ */ t.jsx(
|
@@ -16786,7 +16791,7 @@ const xv = ({
|
|
16786
16791
|
className: `display-grid dc__align-items-center dc__select-text image-chip-cell__container ${l ? "image-chip-cell__container--expanded" : ""} bcn-1 br-6 dc__transparent py-0 px-6 cursor max-w-100`,
|
16787
16792
|
onClick: n || c,
|
16788
16793
|
children: [
|
16789
|
-
/* @__PURE__ */ t.jsx(ts, { registryType: s ||
|
16794
|
+
/* @__PURE__ */ t.jsx(ts, { registryType: s || ze.DOCKER, size: 14 }),
|
16790
16795
|
l ? /* @__PURE__ */ t.jsx("div", { className: "mono dc__ellipsis-left direction-left", children: e }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16791
16796
|
/* @__PURE__ */ t.jsx("div", { children: "…" }),
|
16792
16797
|
/* @__PURE__ */ t.jsx("div", { className: "mono dc__ellipsis-left direction-left text-overflow-clip", children: e.split(":").slice(-1)[0] ?? "" })
|
@@ -16872,7 +16877,7 @@ const Sv = (e) => {
|
|
16872
16877
|
I.target.value !== y && (I.stopPropagation(), I.target.value = y, N.onChange(I));
|
16873
16878
|
}
|
16874
16879
|
l?.(I);
|
16875
|
-
},
|
16880
|
+
}, v = (I) => {
|
16876
16881
|
I.stopPropagation(), C.current.focus(), h?.onClick(I);
|
16877
16882
|
};
|
16878
16883
|
return /* @__PURE__ */ t.jsx(
|
@@ -16924,7 +16929,7 @@ const Sv = (e) => {
|
|
16924
16929
|
dataTestId: `${e}-end-icon`,
|
16925
16930
|
variant: he.borderLess,
|
16926
16931
|
size: yv[u],
|
16927
|
-
onClick:
|
16932
|
+
onClick: v
|
16928
16933
|
}
|
16929
16934
|
) })
|
16930
16935
|
] })
|
@@ -16972,16 +16977,16 @@ const Sv = (e) => {
|
|
16972
16977
|
isLandscapeView: d = !1,
|
16973
16978
|
showConfetti: u = !1
|
16974
16979
|
}) => {
|
16975
|
-
const { registerShortcut: m, unregisterShortcut: p } = aa(), [_, E] = R(""), x = o?.identifier, h = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, N = n ?? Sv(a), C = a === Yt.custom && !n, A = "disabled" in g && g.disabled || h && _.trim() !== h,
|
16980
|
+
const { registerShortcut: m, unregisterShortcut: p } = aa(), [_, E] = R(""), x = o?.identifier, h = o?.confirmationKeyword, { primaryButtonConfig: g, secondaryButtonConfig: f } = r, N = n ?? Sv(a), C = a === Yt.custom && !n, A = "disabled" in g && g.disabled || h && _.trim() !== h, v = () => {
|
16976
16981
|
g && !A && g.onClick();
|
16977
|
-
}, I =
|
16982
|
+
}, I = qe(() => {
|
16978
16983
|
!g?.isLoading && !f?.disabled && c();
|
16979
16984
|
}, [g, f]);
|
16980
|
-
k(() => (m({ keys: ["Enter"], callback:
|
16985
|
+
k(() => (m({ keys: ["Enter"], callback: v }), () => {
|
16981
16986
|
p(["Enter"]);
|
16982
16987
|
}), [g, A]);
|
16983
|
-
const y = (
|
16984
|
-
E(
|
16988
|
+
const y = (T) => {
|
16989
|
+
E(T.target.value);
|
16985
16990
|
};
|
16986
16991
|
return /* @__PURE__ */ t.jsxs(Iv, { onEscape: l ? I : ut, children: [
|
16987
16992
|
/* @__PURE__ */ t.jsxs(
|
@@ -17132,19 +17137,19 @@ const Sv = (e) => {
|
|
17132
17137
|
successToastMessage: p,
|
17133
17138
|
children: _
|
17134
17139
|
}) => {
|
17135
|
-
const [E, x] = R(!1), [h, g] = R(!1), [f, N] = R(u), [C, A] = R(o),
|
17136
|
-
|
17140
|
+
const [E, x] = R(!1), [h, g] = R(!1), [f, N] = R(u), [C, A] = R(o), v = async (S) => {
|
17141
|
+
S && Ne(S), A(!0);
|
17137
17142
|
try {
|
17138
17143
|
await i(), ke.showToast({
|
17139
17144
|
variant: Se.success,
|
17140
17145
|
description: p || "Successfully deleted"
|
17141
17146
|
}), A(!1), l();
|
17142
|
-
} catch (
|
17143
|
-
|
17147
|
+
} catch (O) {
|
17148
|
+
O instanceof Pt && O.code === m ? (x(!0), Array.isArray(O.errors) && O.errors.length > 0 && !u && N(O.errors[0].userMessage)) : typeof c == "function" ? c(O) : Be(O), A(!1);
|
17144
17149
|
}
|
17145
17150
|
}, I = () => {
|
17146
17151
|
x(!1), l();
|
17147
|
-
}, y = () => g(!1),
|
17152
|
+
}, y = () => g(!1), T = () => /* @__PURE__ */ t.jsx(
|
17148
17153
|
Ov,
|
17149
17154
|
{
|
17150
17155
|
title: e,
|
@@ -17160,7 +17165,7 @@ const Sv = (e) => {
|
|
17160
17165
|
onDelete: i,
|
17161
17166
|
closeConfirmationModal: y
|
17162
17167
|
}
|
17163
|
-
),
|
17168
|
+
), j = () => /* @__PURE__ */ t.jsx(
|
17164
17169
|
Ws,
|
17165
17170
|
{
|
17166
17171
|
variant: Yt.delete,
|
@@ -17174,7 +17179,7 @@ const Sv = (e) => {
|
|
17174
17179
|
},
|
17175
17180
|
primaryButtonConfig: {
|
17176
17181
|
text: a,
|
17177
|
-
onClick:
|
17182
|
+
onClick: v,
|
17178
17183
|
isLoading: o || C,
|
17179
17184
|
disabled: r
|
17180
17185
|
}
|
@@ -17185,8 +17190,8 @@ const Sv = (e) => {
|
|
17185
17190
|
}
|
17186
17191
|
);
|
17187
17192
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17188
|
-
!E && !h &&
|
17189
|
-
E &&
|
17193
|
+
!E && !h && j(),
|
17194
|
+
E && T(),
|
17190
17195
|
h && b()
|
17191
17196
|
] });
|
17192
17197
|
}, bl = ht(({ status: e, finishedOn: s, artifact: n, type: a, executionInfo: r }) => {
|
@@ -17387,7 +17392,7 @@ const Sv = (e) => {
|
|
17387
17392
|
!m.includes("source-code") && /* @__PURE__ */ t.jsx(Os, { to: `${u}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
17388
17393
|
] }) });
|
17389
17394
|
}, Us = () => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsx("div", { className: "dc__border-left--n3 h-100" }) }), Sl = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17390
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
17395
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ke, { size: 20, name: "ic-success", color: null }) }),
|
17391
17396
|
Us()
|
17392
17397
|
] }), Pv = ht(
|
17393
17398
|
({ status: e }) => /* @__PURE__ */ t.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ t.jsx(
|
@@ -17542,18 +17547,18 @@ const Sv = (e) => {
|
|
17542
17547
|
scrollToTop: N,
|
17543
17548
|
scrollToBottom: C,
|
17544
17549
|
fullScreenView: A,
|
17545
|
-
appName:
|
17550
|
+
appName: v,
|
17546
17551
|
triggerHistory: I,
|
17547
17552
|
targetPlatforms: y
|
17548
17553
|
}) => {
|
17549
|
-
const { path:
|
17554
|
+
const { path: T } = Jt(), { appId: b, pipelineId: j, triggerId: S, envId: O } = Tt(), w = {
|
17550
17555
|
appId: b,
|
17551
|
-
envId:
|
17556
|
+
envId: O,
|
17552
17557
|
appName: `${e.helmPackageName}.tgz`,
|
17553
17558
|
workflowId: e.id
|
17554
|
-
}, L = `app/cd-pipeline/workflow/download/${b}/${
|
17559
|
+
}, L = `app/cd-pipeline/workflow/download/${b}/${O}/${j}/${S}`;
|
17555
17560
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(Jl, { children: [
|
17556
|
-
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Bs, { path: `${
|
17561
|
+
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(Bs, { path: `${T}/logs`, children: [
|
17557
17562
|
/* @__PURE__ */ t.jsx(
|
17558
17563
|
ET,
|
17559
17564
|
{
|
@@ -17571,7 +17576,7 @@ const Sv = (e) => {
|
|
17571
17576
|
scrollToBottom: C
|
17572
17577
|
}
|
17573
17578
|
)
|
17574
|
-
] }) : /* @__PURE__ */ t.jsx(Bs, { path: `${
|
17579
|
+
] }) : /* @__PURE__ */ t.jsx(Bs, { path: `${T}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
17575
17580
|
jT,
|
17576
17581
|
{
|
17577
17582
|
deploymentStatus: e.status,
|
@@ -17584,7 +17589,7 @@ const Sv = (e) => {
|
|
17584
17589
|
renderDeploymentApprovalInfo: h
|
17585
17590
|
}
|
17586
17591
|
) }),
|
17587
|
-
/* @__PURE__ */ t.jsx(Bs, { path: `${
|
17592
|
+
/* @__PURE__ */ t.jsx(Bs, { path: `${T}/source-code`, children: /* @__PURE__ */ t.jsx(
|
17588
17593
|
Tv,
|
17589
17594
|
{
|
17590
17595
|
gitTriggers: e.gitTriggers,
|
@@ -17607,23 +17612,23 @@ const Sv = (e) => {
|
|
17607
17612
|
targetPlatforms: y
|
17608
17613
|
}
|
17609
17614
|
) }),
|
17610
|
-
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Bs, { path: `${
|
17615
|
+
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(Bs, { path: `${T}${Oe.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
17611
17616
|
eS,
|
17612
17617
|
{
|
17613
|
-
appName:
|
17618
|
+
appName: v,
|
17614
17619
|
envName: p,
|
17615
|
-
pipelineId: +
|
17616
|
-
wfrId: +
|
17620
|
+
pipelineId: +j,
|
17621
|
+
wfrId: +S,
|
17617
17622
|
triggerHistory: I,
|
17618
17623
|
setFullScreenView: n,
|
17619
17624
|
resourceId: _,
|
17620
17625
|
renderRunSource: E
|
17621
17626
|
}
|
17622
17627
|
) }),
|
17623
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Bs, { path: `${
|
17628
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(Bs, { path: `${T}/artifacts`, children: e.IsVirtualEnvironment && f ? f({
|
17624
17629
|
status: e.status,
|
17625
17630
|
title: e.helmPackageName,
|
17626
|
-
params: { ...w, appId: Number(b), envId: Number(
|
17631
|
+
params: { ...w, appId: Number(b), envId: Number(O) }
|
17627
17632
|
}) : /* @__PURE__ */ t.jsx(
|
17628
17633
|
qu,
|
17629
17634
|
{
|
@@ -17647,7 +17652,7 @@ const Sv = (e) => {
|
|
17647
17652
|
/* @__PURE__ */ t.jsx(
|
17648
17653
|
s_,
|
17649
17654
|
{
|
17650
|
-
to: `${
|
17655
|
+
to: `${T}/${// eslint-disable-next-line no-nested-ternary
|
17651
17656
|
e.stage === "DEPLOY" ? "deployment-steps" : e.status.toLowerCase() === "succeeded" || e.IsVirtualEnvironment ? "artifacts" : "logs"}`
|
17652
17657
|
}
|
17653
17658
|
)
|
@@ -17675,15 +17680,15 @@ const Sv = (e) => {
|
|
17675
17680
|
resourceId: N,
|
17676
17681
|
scrollToTop: C,
|
17677
17682
|
scrollToBottom: A,
|
17678
|
-
renderTargetConfigInfo:
|
17683
|
+
renderTargetConfigInfo: v,
|
17679
17684
|
appName: I
|
17680
17685
|
}) => {
|
17681
|
-
const { appId: y, triggerId:
|
17682
|
-
() => rT({ appId: y, envId: b, pipelineId:
|
17686
|
+
const { appId: y, triggerId: T, envId: b, pipelineId: j } = Tt(), S = s.get(+T), [O, w, L, B] = Kt(
|
17687
|
+
() => rT({ appId: y, envId: b, pipelineId: j, triggerId: T, fetchIdData: d }),
|
17683
17688
|
// TODO: Ask if fetchIdData is required here as dependency
|
17684
|
-
[
|
17685
|
-
!!
|
17686
|
-
), V = Ar(
|
17689
|
+
[T, y, b],
|
17690
|
+
!!T && !!j
|
17691
|
+
), V = Ar(S?.targetPlatforms), X = (F, ce, le) => {
|
17687
17692
|
if (le) {
|
17688
17693
|
p?.result?.cdWorkflows?.length && n(Um(p.result.cdWorkflows, "id")), u(Cs.SUSPEND);
|
17689
17694
|
return;
|
@@ -17701,25 +17706,25 @@ const Sv = (e) => {
|
|
17701
17706
|
}
|
17702
17707
|
};
|
17703
17708
|
let q = !!d && d !== Cs.SUSPEND;
|
17704
|
-
(w?.result?.artifactId === 0 ||
|
17709
|
+
(w?.result?.artifactId === 0 || S?.artifactId === 0) && (q = !1);
|
17705
17710
|
const [Q, de, Ie] = Kt(
|
17706
17711
|
() => oT({
|
17707
|
-
pipelineId:
|
17708
|
-
artifactId: w?.result?.artifactId ||
|
17712
|
+
pipelineId: j,
|
17713
|
+
artifactId: w?.result?.artifactId || S?.artifactId
|
17709
17714
|
}),
|
17710
|
-
[
|
17711
|
-
q && !!
|
17715
|
+
[j, T],
|
17716
|
+
q && !!j && (!!w?.result?.artifactId || !!S?.artifactId)
|
17712
17717
|
);
|
17713
17718
|
k(() => {
|
17714
|
-
if (
|
17719
|
+
if (O)
|
17715
17720
|
return;
|
17716
17721
|
let F = {
|
17717
17722
|
...w?.result,
|
17718
|
-
imageComment:
|
17719
|
-
imageReleaseTags:
|
17723
|
+
imageComment: S?.imageComment,
|
17724
|
+
imageReleaseTags: S?.imageReleaseTags
|
17720
17725
|
};
|
17721
|
-
q && (F = null), X(+
|
17722
|
-
}, [
|
17726
|
+
q && (F = null), X(+T, F, L);
|
17727
|
+
}, [O, w, L]), k(() => {
|
17723
17728
|
if (Q || !w || !q)
|
17724
17729
|
return;
|
17725
17730
|
const F = {
|
@@ -17727,42 +17732,42 @@ const Sv = (e) => {
|
|
17727
17732
|
imageReleaseTags: de?.result?.imageReleaseTags,
|
17728
17733
|
imageComment: de?.result?.imageComment
|
17729
17734
|
};
|
17730
|
-
X(+
|
17735
|
+
X(+T, F, Ie);
|
17731
17736
|
}, [Q, de, Ie]);
|
17732
|
-
const H = te(() => !
|
17733
|
-
return km(B, H), !q &&
|
17737
|
+
const H = te(() => !S || _b.has(S.podStatus?.toLowerCase() || S.status?.toLowerCase()) ? null : fb.has(S.status?.toLowerCase() || S.podStatus?.toLowerCase()) ? 1e4 : 3e4, [S]);
|
17738
|
+
return km(B, H), !q && O && !S || !T || q && (Q || O) && !S ? /* @__PURE__ */ t.jsx(Ue, { pageLoader: !0 }) : L?.code === 404 ? /* @__PURE__ */ t.jsx(
|
17734
17739
|
Qe,
|
17735
17740
|
{
|
17736
17741
|
title: Ye.TRIGGER_NOT_FOUND.TITLE,
|
17737
17742
|
subTitle: Ye.TRIGGER_NOT_FOUND.SUBTITLE
|
17738
17743
|
}
|
17739
|
-
) : !q && !
|
17744
|
+
) : !q && !O && !S ? /* @__PURE__ */ t.jsx(Jn, {}) : q && !(Q || O) && !S ? /* @__PURE__ */ t.jsx(Jn, {}) : S?.id !== +T ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17740
17745
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17741
17746
|
/* @__PURE__ */ t.jsx(
|
17742
17747
|
kv,
|
17743
17748
|
{
|
17744
17749
|
type: De.CD,
|
17745
|
-
status:
|
17746
|
-
startedOn:
|
17747
|
-
finishedOn:
|
17748
|
-
triggeredBy:
|
17749
|
-
triggeredByEmail:
|
17750
|
-
ciMaterials:
|
17751
|
-
gitTriggers:
|
17752
|
-
message:
|
17753
|
-
podStatus:
|
17754
|
-
stage:
|
17755
|
-
artifact:
|
17756
|
-
triggerMetadata:
|
17750
|
+
status: S.status,
|
17751
|
+
startedOn: S.startedOn,
|
17752
|
+
finishedOn: S.finishedOn,
|
17753
|
+
triggeredBy: S.triggeredBy,
|
17754
|
+
triggeredByEmail: S.triggeredByEmail,
|
17755
|
+
ciMaterials: S.ciMaterials,
|
17756
|
+
gitTriggers: S.gitTriggers,
|
17757
|
+
message: S.message,
|
17758
|
+
podStatus: S.podStatus,
|
17759
|
+
stage: S.stage,
|
17760
|
+
artifact: S.artifact,
|
17761
|
+
triggerMetadata: S.triggerMetadata,
|
17757
17762
|
renderDeploymentHistoryTriggerMetaText: f,
|
17758
17763
|
environmentName: m,
|
17759
|
-
renderTargetConfigInfo:
|
17760
|
-
workflowExecutionStages:
|
17761
|
-
namespace:
|
17764
|
+
renderTargetConfigInfo: v,
|
17765
|
+
workflowExecutionStages: S.workflowExecutionStages,
|
17766
|
+
namespace: S.namespace
|
17762
17767
|
}
|
17763
17768
|
),
|
17764
17769
|
/* @__PURE__ */ t.jsxs("ul", { className: "pl-50 pr-20 pt-8 tab-list tab-list--nodes dc__border-bottom dc__position-sticky dc__top-0 bg__primary dc__zi-3", children: [
|
17765
|
-
|
17770
|
+
S.stage === "DEPLOY" && r !== an.HELM && /* @__PURE__ */ t.jsx("li", { className: "tab-list__tab", "data-testid": "deployment-history-steps-link", children: /* @__PURE__ */ t.jsx(
|
17766
17771
|
_t,
|
17767
17772
|
{
|
17768
17773
|
replace: !0,
|
@@ -17772,7 +17777,7 @@ const Sv = (e) => {
|
|
17772
17777
|
children: "Steps"
|
17773
17778
|
}
|
17774
17779
|
) }),
|
17775
|
-
!(
|
17780
|
+
!(S.stage === "DEPLOY" || S.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx("li", { className: "tab-list__tab", "data-testid": "deployment-history-logs-link", children: /* @__PURE__ */ t.jsx(
|
17776
17781
|
_t,
|
17777
17782
|
{
|
17778
17783
|
replace: !0,
|
@@ -17792,7 +17797,7 @@ const Sv = (e) => {
|
|
17792
17797
|
children: "Source"
|
17793
17798
|
}
|
17794
17799
|
) }),
|
17795
|
-
|
17800
|
+
S.stage === "DEPLOY" && /* @__PURE__ */ t.jsx("li", { className: "tab-list__tab", "data-testid": "deployment-history-configuration-link", children: /* @__PURE__ */ t.jsx(
|
17796
17801
|
_t,
|
17797
17802
|
{
|
17798
17803
|
replace: !0,
|
@@ -17802,7 +17807,7 @@ const Sv = (e) => {
|
|
17802
17807
|
children: "Configuration"
|
17803
17808
|
}
|
17804
17809
|
) }),
|
17805
|
-
(
|
17810
|
+
(S.stage !== "DEPLOY" || S.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx("li", { className: "tab-list__tab", "data-testid": "deployment-history-artifacts-link", children: /* @__PURE__ */ t.jsx(
|
17806
17811
|
_t,
|
17807
17812
|
{
|
17808
17813
|
replace: !0,
|
@@ -17817,8 +17822,8 @@ const Sv = (e) => {
|
|
17817
17822
|
/* @__PURE__ */ t.jsx(
|
17818
17823
|
Uv,
|
17819
17824
|
{
|
17820
|
-
triggerDetails:
|
17821
|
-
loading:
|
17825
|
+
triggerDetails: S,
|
17826
|
+
loading: O && !w || !S || q && !de,
|
17822
17827
|
userApprovalMetadata: w?.result?.userApprovalMetadata,
|
17823
17828
|
triggeredByEmail: w?.result?.triggeredByEmail,
|
17824
17829
|
setFullScreenView: a,
|
@@ -17843,7 +17848,7 @@ const Sv = (e) => {
|
|
17843
17848
|
triggerHistory: s,
|
17844
17849
|
targetPlatforms: V
|
17845
17850
|
},
|
17846
|
-
|
17851
|
+
S.id
|
17847
17852
|
)
|
17848
17853
|
] });
|
17849
17854
|
}, oo = {
|
@@ -18139,7 +18144,7 @@ const Sv = (e) => {
|
|
18139
18144
|
s(qv(e, I?.toDate()));
|
18140
18145
|
}, C = (I) => {
|
18141
18146
|
s(zv(e, I.value).value);
|
18142
|
-
}, A = Pe(),
|
18147
|
+
}, A = Pe(), v = (I) => d && !I.isAfter(A);
|
18143
18148
|
return /* @__PURE__ */ t.jsxs("div", { className: "date-time-picker", children: [
|
18144
18149
|
o && /* @__PURE__ */ t.jsx("label", { className: `form__label ${i ? "dc__required-field" : ""}`, htmlFor: r, children: o }),
|
18145
18150
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left dc__gap-8", children: [
|
@@ -18163,7 +18168,7 @@ const Sv = (e) => {
|
|
18163
18168
|
inputIconPosition: "after",
|
18164
18169
|
displayFormat: yt.DD_MMM_YYYY,
|
18165
18170
|
"data-testid": m,
|
18166
|
-
isDayBlocked:
|
18171
|
+
isDayBlocked: v,
|
18167
18172
|
disabled: a,
|
18168
18173
|
appendToBody: !0
|
18169
18174
|
}
|
@@ -18776,27 +18781,27 @@ const RD = {
|
|
18776
18781
|
rootClassName: E = "",
|
18777
18782
|
showCardBorder: x = !1
|
18778
18783
|
}) => {
|
18779
|
-
const { appId: h } = Tt(), [g, f] = R(l || []), [N, C] = R(u || 0), [A,
|
18784
|
+
const { appId: h } = Tt(), [g, f] = R(l || []), [N, C] = R(u || 0), [A, v] = R(
|
18780
18785
|
p || structuredClone(Qv)
|
18781
18786
|
), I = Y(new AbortController()), y = (P) => {
|
18782
18787
|
f(P), d?.(P);
|
18783
|
-
},
|
18788
|
+
}, T = (P) => {
|
18784
18789
|
C(P), m?.(P);
|
18785
18790
|
}, b = (P) => {
|
18786
|
-
|
18787
|
-
}, { searchKey:
|
18791
|
+
v(P), _?.(P);
|
18792
|
+
}, { searchKey: j, selectedTags: S } = A || {}, O = () => Bd(
|
18788
18793
|
() => vm({
|
18789
|
-
searchKey:
|
18790
|
-
selectedTags:
|
18794
|
+
searchKey: j,
|
18795
|
+
selectedTags: S,
|
18791
18796
|
offset: 0,
|
18792
18797
|
appId: h ? +h : null,
|
18793
18798
|
signal: I.current.signal
|
18794
18799
|
}),
|
18795
18800
|
I
|
18796
18801
|
), [w, L, B, V] = Kt(
|
18797
|
-
|
18802
|
+
O,
|
18798
18803
|
// In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
|
18799
|
-
[
|
18804
|
+
[j, h, S],
|
18800
18805
|
c ? !g.length : !0
|
18801
18806
|
), [X, q, Q, de] = Kt(
|
18802
18807
|
() => nA(h ? +h : null),
|
@@ -18812,7 +18817,7 @@ const RD = {
|
|
18812
18817
|
totalCount: ve,
|
18813
18818
|
parentPluginIdList: Ee
|
18814
18819
|
} = P;
|
18815
|
-
a(sA(n, ee, oe)),
|
18820
|
+
a(sA(n, ee, oe)), T(ve);
|
18816
18821
|
const K = $ ? structuredClone(g) : [], se = K.reduce(
|
18817
18822
|
(je, xt) => (je[xt.parentPluginId] = !0, je),
|
18818
18823
|
{}
|
@@ -18856,7 +18861,7 @@ const RD = {
|
|
18856
18861
|
/* @__PURE__ */ t.jsx(
|
18857
18862
|
Ym,
|
18858
18863
|
{
|
18859
|
-
initialSearchText:
|
18864
|
+
initialSearchText: j,
|
18860
18865
|
containerClassName: "flex-grow-1",
|
18861
18866
|
handleEnter: ce,
|
18862
18867
|
inputProps: {
|
@@ -18870,18 +18875,18 @@ const RD = {
|
|
18870
18875
|
{
|
18871
18876
|
availableTags: e,
|
18872
18877
|
handleUpdateSelectedTags: le,
|
18873
|
-
selectedTags:
|
18878
|
+
selectedTags: S,
|
18874
18879
|
isLoading: X,
|
18875
18880
|
tagsError: Q,
|
18876
18881
|
reloadTags: de
|
18877
18882
|
}
|
18878
18883
|
)
|
18879
18884
|
] }),
|
18880
|
-
!!
|
18885
|
+
!!S.length && /* @__PURE__ */ t.jsx(
|
18881
18886
|
GC,
|
18882
18887
|
{
|
18883
18888
|
filterConfig: {
|
18884
|
-
selectedTags:
|
18889
|
+
selectedTags: S
|
18885
18890
|
},
|
18886
18891
|
onRemoveFilter: pe,
|
18887
18892
|
clearFilters: F,
|
@@ -18947,7 +18952,7 @@ const RD = {
|
|
18947
18952
|
validateDuplicateKeys: _ = !1,
|
18948
18953
|
validateEmptyKeys: E = !1
|
18949
18954
|
}) => {
|
18950
|
-
const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, C] = R(h), [A,
|
18955
|
+
const { headers: x, rows: h } = e, g = x[0].key, f = x[1].key, [N, C] = R(h), [A, v] = R(!1), I = l || c, y = !l && !c || !!N.length, T = !N[0]?.data[g].value && !N[0]?.data[f].value, b = N.length === 1 && T, { sortBy: j, sortOrder: S, handleSorting: O } = iu({
|
18951
18956
|
initialSortKey: n ? g : null
|
18952
18957
|
}), w = Y(), L = Y();
|
18953
18958
|
w.current || (w.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {})), L.current || (L.current = N.reduce((D, P) => ({ ...D, [P.id]: hs() }), {}));
|
@@ -19004,7 +19009,7 @@ const RD = {
|
|
19004
19009
|
};
|
19005
19010
|
}, Q = () => {
|
19006
19011
|
const D = q(), P = [D, ...N], { id: $ } = D;
|
19007
|
-
p?.(!X(P)),
|
19012
|
+
p?.(!X(P)), v(!0), C(P), w.current = {
|
19008
19013
|
...w.current || {},
|
19009
19014
|
[$]: hs()
|
19010
19015
|
}, L.current = {
|
@@ -19018,22 +19023,22 @@ const RD = {
|
|
19018
19023
|
n && C((D) => {
|
19019
19024
|
const P = structuredClone(D);
|
19020
19025
|
return P.sort(
|
19021
|
-
($, ee) => at($.data[
|
19026
|
+
($, ee) => at($.data[j].value, ee.data[j].value, S)
|
19022
19027
|
), P;
|
19023
19028
|
});
|
19024
|
-
}, [
|
19029
|
+
}, [S]), k(() => {
|
19025
19030
|
const D = N[0];
|
19026
19031
|
if (D && A) {
|
19027
|
-
|
19032
|
+
v(!1);
|
19028
19033
|
const P = w.current[D.id].current && L.current[D.id].current;
|
19029
19034
|
!D.data[g].value && P && L.current[D.id].current.focus(), !D.data[f].value && P && w.current[D.id].current.focus();
|
19030
19035
|
}
|
19031
19036
|
}, [A]);
|
19032
|
-
const de = () => j
|
19037
|
+
const de = () => O(j), Ie = (D) => () => {
|
19033
19038
|
const P = N.filter(({ id: $ }) => $ !== D.id);
|
19034
19039
|
if (P.length === 0 && !c) {
|
19035
19040
|
const $ = q(), { id: ee } = $;
|
19036
|
-
|
19041
|
+
v(!0), p?.(!X([$])), C([$]), w.current = {
|
19037
19042
|
[ee]: hs()
|
19038
19043
|
}, L.current = {
|
19039
19044
|
[ee]: hs()
|
@@ -19074,7 +19079,7 @@ const RD = {
|
|
19074
19079
|
{
|
19075
19080
|
className: "icon-dim-16 dc__no-shrink scn-7 rotate cursor",
|
19076
19081
|
style: {
|
19077
|
-
"--rotateBy":
|
19082
|
+
"--rotateBy": S === xe.DESC ? "0deg" : "180deg"
|
19078
19083
|
}
|
19079
19084
|
}
|
19080
19085
|
)
|
@@ -19232,10 +19237,10 @@ const RD = {
|
|
19232
19237
|
const { tabClassName: h, iconClassName: g, badgeClassName: f } = pA({
|
19233
19238
|
hideTopPadding: l,
|
19234
19239
|
alignActiveBorderWithContainer: c
|
19235
|
-
})[o], N = (
|
19236
|
-
(a ||
|
19240
|
+
})[o], N = (v) => {
|
19241
|
+
(a || v.currentTarget.classList.contains("active") || n === "navLink" && p) && v.preventDefault(), s?.onClick?.(v);
|
19237
19242
|
}, C = () => {
|
19238
|
-
const
|
19243
|
+
const v = /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
19239
19244
|
/* @__PURE__ */ t.jsxs("p", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
|
19240
19245
|
fA({ className: g, icon: r, showError: u, showWarning: m }),
|
19241
19246
|
e,
|
@@ -19253,7 +19258,7 @@ const RD = {
|
|
19253
19258
|
"aria-disabled": p,
|
19254
19259
|
...s,
|
19255
19260
|
onClick: N,
|
19256
|
-
children:
|
19261
|
+
children: v
|
19257
19262
|
}
|
19258
19263
|
);
|
19259
19264
|
case "navLink":
|
@@ -19264,7 +19269,7 @@ const RD = {
|
|
19264
19269
|
"aria-disabled": p,
|
19265
19270
|
...s,
|
19266
19271
|
onClick: N,
|
19267
|
-
children:
|
19272
|
+
children: v
|
19268
19273
|
}
|
19269
19274
|
);
|
19270
19275
|
case "block":
|
@@ -19273,7 +19278,7 @@ const RD = {
|
|
19273
19278
|
{
|
19274
19279
|
className: `flexbox-col fw-6 ${h} ${p ? "cursor-not-allowed" : ""}`,
|
19275
19280
|
...s,
|
19276
|
-
children:
|
19281
|
+
children: v
|
19277
19282
|
}
|
19278
19283
|
);
|
19279
19284
|
default:
|
@@ -19285,7 +19290,7 @@ const RD = {
|
|
19285
19290
|
disabled: p,
|
19286
19291
|
...s,
|
19287
19292
|
onClick: N,
|
19288
|
-
children:
|
19293
|
+
children: v
|
19289
19294
|
}
|
19290
19295
|
);
|
19291
19296
|
}
|
@@ -19341,23 +19346,23 @@ const RD = {
|
|
19341
19346
|
}) => {
|
19342
19347
|
const [l, d] = R(a), [u, m] = R(!1), [p, _] = R(!1), [E, x] = R(""), h = () => {
|
19343
19348
|
m(!0);
|
19344
|
-
}, g = (
|
19345
|
-
d(
|
19346
|
-
}, f = (
|
19347
|
-
const b =
|
19349
|
+
}, g = (T) => {
|
19350
|
+
d(T);
|
19351
|
+
}, f = (T) => {
|
19352
|
+
const b = T ?? l;
|
19348
19353
|
g(b), r(b), n(""), m(!1), _(!1), x("");
|
19349
19354
|
}, N = () => {
|
19350
19355
|
f(a);
|
19351
19356
|
}, C = () => {
|
19352
19357
|
f();
|
19353
|
-
}, A = (
|
19354
|
-
const { value: b } =
|
19358
|
+
}, A = (T) => {
|
19359
|
+
const { value: b } = T.target;
|
19355
19360
|
if (r(b), !b.trim()) {
|
19356
19361
|
n("");
|
19357
19362
|
return;
|
19358
19363
|
}
|
19359
19364
|
x(""), n(lu(b, !1).message);
|
19360
|
-
},
|
19365
|
+
}, v = async () => {
|
19361
19366
|
if (!a) {
|
19362
19367
|
x(Al), ke.showToast({
|
19363
19368
|
variant: Se.error,
|
@@ -19374,24 +19379,24 @@ const RD = {
|
|
19374
19379
|
}
|
19375
19380
|
_(!0);
|
19376
19381
|
try {
|
19377
|
-
const
|
19378
|
-
if (!
|
19382
|
+
const T = await fetch(a, { mode: "cors" });
|
19383
|
+
if (!T.ok)
|
19379
19384
|
throw new Error("Invalid network response");
|
19380
|
-
const b = await
|
19385
|
+
const b = await T.blob();
|
19381
19386
|
if (b.size > vl)
|
19382
19387
|
throw new Error(`Please add an image smaller than ${vl / (1024 * 1024)} MB`);
|
19383
|
-
const
|
19384
|
-
if (URL.revokeObjectURL(
|
19385
|
-
throw new Error(
|
19388
|
+
const j = URL.createObjectURL(b), S = await LE(j);
|
19389
|
+
if (URL.revokeObjectURL(j), !S.isValid)
|
19390
|
+
throw new Error(S.message);
|
19386
19391
|
N();
|
19387
|
-
} catch (
|
19388
|
-
n(
|
19392
|
+
} catch (T) {
|
19393
|
+
n(T.message || "Failed to load image"), Be(T);
|
19389
19394
|
} finally {
|
19390
19395
|
_(!1);
|
19391
19396
|
}
|
19392
|
-
}, I = async (
|
19393
|
-
|
19394
|
-
}, y = (
|
19397
|
+
}, I = async (T) => {
|
19398
|
+
T.key === "Enter" && (T.preventDefault(), await v());
|
19399
|
+
}, y = (T, b) => /* @__PURE__ */ t.jsx(
|
19395
19400
|
bi,
|
19396
19401
|
{
|
19397
19402
|
imageProps: {
|
@@ -19401,7 +19406,7 @@ const RD = {
|
|
19401
19406
|
width: cr.width,
|
19402
19407
|
className: `br-4 dc__no-shrink ${b || ""}`
|
19403
19408
|
},
|
19404
|
-
fallbackImage: /* @__PURE__ */ t.jsx(NA, { defaultIcon: e, showEditIcon:
|
19409
|
+
fallbackImage: /* @__PURE__ */ t.jsx(NA, { defaultIcon: e, showEditIcon: T })
|
19405
19410
|
}
|
19406
19411
|
);
|
19407
19412
|
return u ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-20", children: [
|
@@ -19430,7 +19435,7 @@ const RD = {
|
|
19430
19435
|
type: "button",
|
19431
19436
|
disabled: p,
|
19432
19437
|
"data-testid": `${i}-preview`,
|
19433
|
-
onClick:
|
19438
|
+
onClick: v,
|
19434
19439
|
children: "Preview"
|
19435
19440
|
}
|
19436
19441
|
),
|
@@ -19737,26 +19742,26 @@ const Il = ({
|
|
19737
19742
|
k(() => {
|
19738
19743
|
p(s?.[o] || "");
|
19739
19744
|
}, [e, s, o]);
|
19740
|
-
const h = (
|
19745
|
+
const h = (T) => {
|
19741
19746
|
setTimeout(() => {
|
19742
19747
|
E(`tag-${o}-${e}`);
|
19743
19748
|
}, 300);
|
19744
|
-
}, g = (
|
19745
|
-
if (!
|
19749
|
+
}, g = (T) => {
|
19750
|
+
if (!T.relatedTarget || !T.relatedTarget.classList.value || !T.relatedTarget.classList.value.includes(`tag-${e}-class`)) {
|
19746
19751
|
E("");
|
19747
19752
|
const b = { ...s };
|
19748
19753
|
b[o] = m, o === ss.KEY ? b.isInvalidKey = m || b.propagate ? !x.propagateTagKey(m).isValid : b.value !== "" : m || r || b.propagate ? (b.isInvalidValue = !x.propagateTagValue(m, b.key).isValid, b.isInvalidKey = !b.key || b.isInvalidKey) : (b.isInvalidValue = !1, b.isInvalidKey = b.key ? b.isInvalidKey : !1), n(e, b);
|
19749
19754
|
}
|
19750
|
-
}, f = (
|
19751
|
-
p(
|
19752
|
-
}, N = (
|
19753
|
-
Ne(
|
19755
|
+
}, f = (T) => {
|
19756
|
+
p(T.target.value);
|
19757
|
+
}, N = (T) => {
|
19758
|
+
Ne(T);
|
19754
19759
|
const b = { ...s };
|
19755
|
-
b[o] =
|
19760
|
+
b[o] = T.currentTarget.dataset.key, b.propagate = T.currentTarget.dataset.propagate === "true", n(e, b), E("");
|
19756
19761
|
}, C = () => {
|
19757
|
-
let
|
19758
|
-
return o === ss.KEY ? (m || s.value) && (
|
19759
|
-
|
19762
|
+
let T = { isValid: !0, messages: [] };
|
19763
|
+
return o === ss.KEY ? (m || s.value) && (T = x.propagateTagKey(m)) : (r || m || s.propagate) && (T = x.propagateTagValue(m, s.key)), T.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: Ne, "data-testid": "tag-label-cross-stop-propagation", children: [
|
19764
|
+
T.messages.map((b) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
19760
19765
|
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(us, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
19761
19766
|
/* @__PURE__ */ t.jsx("span", { children: b })
|
19762
19767
|
] }, b)),
|
@@ -19765,35 +19770,35 @@ const Il = ({
|
|
19765
19770
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
19766
19771
|
] })
|
19767
19772
|
] });
|
19768
|
-
}, A = (
|
19773
|
+
}, A = (T, b) => /* @__PURE__ */ t.jsx(
|
19769
19774
|
"div",
|
19770
19775
|
{
|
19771
|
-
"data-key":
|
19772
|
-
"data-propagate":
|
19776
|
+
"data-key": T.label,
|
19777
|
+
"data-propagate": T.propagate,
|
19773
19778
|
className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
|
19774
19779
|
onClick: N,
|
19775
19780
|
"data-testid": `tag-label-value-${b}`,
|
19776
|
-
children:
|
19781
|
+
children: T.label
|
19777
19782
|
},
|
19778
|
-
`${
|
19779
|
-
),
|
19783
|
+
`${T.value}-${b}`
|
19784
|
+
), v = (T, b) => /* @__PURE__ */ t.jsx(
|
19780
19785
|
fe,
|
19781
19786
|
{
|
19782
19787
|
className: "default-tt",
|
19783
19788
|
arrow: !1,
|
19784
19789
|
placement: "right",
|
19785
19790
|
content: /* @__PURE__ */ t.jsxs("div", { children: [
|
19786
|
-
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children:
|
19787
|
-
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children:
|
19791
|
+
/* @__PURE__ */ t.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: T.label }),
|
19792
|
+
/* @__PURE__ */ t.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: T.description })
|
19788
19793
|
] }),
|
19789
|
-
children: A(
|
19794
|
+
children: A(T, b)
|
19790
19795
|
}
|
19791
19796
|
), I = () => {
|
19792
19797
|
if (a?.length) {
|
19793
|
-
const
|
19794
|
-
if (
|
19795
|
-
return /* @__PURE__ */ t.jsx("div", { children:
|
19796
|
-
(b,
|
19798
|
+
const T = a.filter((b) => b.label.indexOf(m) >= 0);
|
19799
|
+
if (T.length)
|
19800
|
+
return /* @__PURE__ */ t.jsx("div", { children: T.map(
|
19801
|
+
(b, j) => b.description ? v(b, j) : A(b, j)
|
19797
19802
|
) });
|
19798
19803
|
}
|
19799
19804
|
return C();
|
@@ -19970,33 +19975,33 @@ const wA = (e) => {
|
|
19970
19975
|
buttonCellWrapComponent: u,
|
19971
19976
|
focusableFieldKey: m
|
19972
19977
|
}) => {
|
19973
|
-
const p = s.every(({ key:
|
19978
|
+
const p = s.every(({ key: S }) => !e[0]?.data[S].value), _ = !!e.length, E = e.length === 1 && p, x = yA(
|
19974
19979
|
s,
|
19975
19980
|
o,
|
19976
19981
|
a || n
|
19977
19982
|
), [h, g] = R(!1), f = Y();
|
19978
19983
|
f.current || (f.current = e.reduce(
|
19979
|
-
(
|
19980
|
-
...
|
19981
|
-
[
|
19984
|
+
(S, O) => ({
|
19985
|
+
...S,
|
19986
|
+
[O.id]: s.reduce((w, { key: L }) => ({ ...w, [L]: hs() }), {})
|
19982
19987
|
}),
|
19983
19988
|
{}
|
19984
19989
|
));
|
19985
|
-
const N = te(() => e.map(({ id:
|
19990
|
+
const N = te(() => e.map(({ id: S }) => S), [e]);
|
19986
19991
|
k(() => {
|
19987
19992
|
g(e.length > 0 && Object.keys(f.current).length < e.length);
|
19988
|
-
const
|
19989
|
-
f.current =
|
19993
|
+
const S = N.reduce((O, w) => (f.current[w] ? O[w] = f.current[w] : O[w] = s.reduce((L, { key: B }) => ({ ...L, [B]: hs() }), {}), O), {});
|
19994
|
+
f.current = S;
|
19990
19995
|
}, [JSON.stringify(N)]), k(() => {
|
19991
19996
|
if (h) {
|
19992
|
-
const
|
19993
|
-
|
19997
|
+
const S = f.current[e[0].id][m || s[0].key].current;
|
19998
|
+
S && (S.focus(), g(!1));
|
19994
19999
|
}
|
19995
20000
|
}, [h]);
|
19996
|
-
const C = (
|
20001
|
+
const C = (S, O) => (w) => {
|
19997
20002
|
let L = "";
|
19998
20003
|
const B = { selectedValue: null, files: [] };
|
19999
|
-
switch (
|
20004
|
+
switch (S.data[O].type) {
|
20000
20005
|
case ot.DROPDOWN:
|
20001
20006
|
case ot.SELECT_TEXT:
|
20002
20007
|
L = w?.value || "", B.selectedValue = w;
|
@@ -20009,32 +20014,32 @@ const wA = (e) => {
|
|
20009
20014
|
L = w.target.value;
|
20010
20015
|
break;
|
20011
20016
|
}
|
20012
|
-
i(
|
20013
|
-
}, A = (
|
20014
|
-
c(
|
20015
|
-
},
|
20016
|
-
const w = n ||
|
20017
|
-
switch (
|
20017
|
+
i(S, O, L, B);
|
20018
|
+
}, A = (S) => () => {
|
20019
|
+
c(S);
|
20020
|
+
}, v = (S, O) => {
|
20021
|
+
const w = n || S.data[O].disabled;
|
20022
|
+
switch (S.data[O].type) {
|
20018
20023
|
case ot.DROPDOWN:
|
20019
20024
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
20020
20025
|
Xt,
|
20021
20026
|
{
|
20022
|
-
...
|
20023
|
-
inputId: `data-table-${
|
20027
|
+
...S.data[O].props,
|
20028
|
+
inputId: `data-table-${S.id}-${O}-cell`,
|
20024
20029
|
classNamePrefix: "dynamic-data-table__cell__select-picker",
|
20025
20030
|
variant: Rs.BORDER_LESS,
|
20026
20031
|
value: _n(
|
20027
|
-
|
20028
|
-
|
20032
|
+
S.data[O].props?.options,
|
20033
|
+
S.data[O].value,
|
20029
20034
|
null
|
20030
20035
|
),
|
20031
|
-
onChange: C(
|
20036
|
+
onChange: C(S, O),
|
20032
20037
|
isDisabled: w,
|
20033
20038
|
fullWidth: !0
|
20034
20039
|
}
|
20035
20040
|
) });
|
20036
20041
|
case ot.SELECT_TEXT: {
|
20037
|
-
const { value: L, props: B } =
|
20042
|
+
const { value: L, props: B } = S.data[O], { isCreatable: V = !0 } = B;
|
20038
20043
|
return /* @__PURE__ */ t.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
20039
20044
|
qx,
|
20040
20045
|
{
|
@@ -20043,7 +20048,7 @@ const wA = (e) => {
|
|
20043
20048
|
...B,
|
20044
20049
|
variant: Rs.BORDER_LESS,
|
20045
20050
|
classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
|
20046
|
-
inputId: `data-table-${
|
20051
|
+
inputId: `data-table-${S.id}-${O}-cell`,
|
20047
20052
|
minHeight: 20,
|
20048
20053
|
maxHeight: 160,
|
20049
20054
|
value: _n(
|
@@ -20051,11 +20056,11 @@ const wA = (e) => {
|
|
20051
20056
|
L,
|
20052
20057
|
V && L ? { label: L, value: L } : null
|
20053
20058
|
),
|
20054
|
-
onChange: C(
|
20059
|
+
onChange: C(S, O),
|
20055
20060
|
isDisabled: w,
|
20056
20061
|
formatCreateLabel: (X) => `Use ${X}`,
|
20057
|
-
refVar: f?.current?.[
|
20058
|
-
dependentRefs: f?.current?.[
|
20062
|
+
refVar: f?.current?.[S.id]?.[O],
|
20063
|
+
dependentRefs: f?.current?.[S.id],
|
20059
20064
|
fullWidth: !0
|
20060
20065
|
}
|
20061
20066
|
) });
|
@@ -20065,15 +20070,15 @@ const wA = (e) => {
|
|
20065
20070
|
mt,
|
20066
20071
|
{
|
20067
20072
|
condition: !!u,
|
20068
|
-
wrap: MA(u,
|
20073
|
+
wrap: MA(u, S),
|
20069
20074
|
children: /* @__PURE__ */ t.jsxs(
|
20070
20075
|
"button",
|
20071
20076
|
{
|
20072
20077
|
type: "button",
|
20073
|
-
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${
|
20078
|
+
className: `dc__transparent w-100 p-8 flex left dc__gap-8 dc__hover-n50 cn-9 fs-13 lh-20 ${S.data[O].disabled ? "dc__disabled" : ""}`,
|
20074
20079
|
children: [
|
20075
|
-
|
20076
|
-
|
20080
|
+
S.data[O].props?.icon || null,
|
20081
|
+
S.data[O].props.text
|
20077
20082
|
]
|
20078
20083
|
}
|
20079
20084
|
)
|
@@ -20083,13 +20088,13 @@ const wA = (e) => {
|
|
20083
20088
|
return /* @__PURE__ */ t.jsx(
|
20084
20089
|
"div",
|
20085
20090
|
{
|
20086
|
-
className: `mw-none w-100 h-100 flex top left px-8 ${
|
20091
|
+
className: `mw-none w-100 h-100 flex top left px-8 ${S.data[O].props?.isLoading || S.data[O].value ? "py-3" : "py-8"}`,
|
20087
20092
|
children: /* @__PURE__ */ t.jsx(
|
20088
20093
|
PA,
|
20089
20094
|
{
|
20090
|
-
...
|
20091
|
-
fileName:
|
20092
|
-
onUpload: C(
|
20095
|
+
...S.data[O].props,
|
20096
|
+
fileName: S.data[O].value,
|
20097
|
+
onUpload: C(S, O)
|
20093
20098
|
}
|
20094
20099
|
)
|
20095
20100
|
}
|
@@ -20098,60 +20103,60 @@ const wA = (e) => {
|
|
20098
20103
|
return /* @__PURE__ */ t.jsx(
|
20099
20104
|
ki,
|
20100
20105
|
{
|
20101
|
-
...
|
20102
|
-
id: `data-table-${
|
20106
|
+
...S.data[O].props,
|
20107
|
+
id: `data-table-${S.id}-${O}-cell`,
|
20103
20108
|
className: `dynamic-data-table__cell-input placeholder-cn5 p-8 cn-9 fs-13 lh-20 dc__align-self-start dc__no-border-radius ${w ? "cursor-not-allowed" : ""}`,
|
20104
20109
|
minHeight: 20,
|
20105
20110
|
maxHeight: 160,
|
20106
|
-
value:
|
20107
|
-
onChange: C(
|
20111
|
+
value: S.data[O].value,
|
20112
|
+
onChange: C(S, O),
|
20108
20113
|
disabled: w,
|
20109
|
-
refVar: f?.current?.[
|
20110
|
-
dependentRefs: f?.current?.[
|
20114
|
+
refVar: f?.current?.[S.id]?.[O],
|
20115
|
+
dependentRefs: f?.current?.[S.id],
|
20111
20116
|
disableOnBlurResizeToMinHeight: !0
|
20112
20117
|
}
|
20113
20118
|
);
|
20114
20119
|
}
|
20115
|
-
}, I = (
|
20120
|
+
}, I = (S, O) => S.data[O].required && /* @__PURE__ */ t.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), y = (S, O, w) => {
|
20116
20121
|
const L = w ? l : d;
|
20117
|
-
return L?.[
|
20122
|
+
return L?.[O]?.(S) ? /* @__PURE__ */ t.jsx(
|
20118
20123
|
"div",
|
20119
20124
|
{
|
20120
|
-
className: `flex h-100 dc__align-self-start ${
|
20121
|
-
children: L[
|
20125
|
+
className: `flex h-100 dc__align-self-start ${S.data[O].type !== ot.TEXT ? `py-8 ${w ? "pl-8" : "pr-8"}` : ""}`,
|
20126
|
+
children: L[O](S)
|
20122
20127
|
}
|
20123
20128
|
) : null;
|
20124
|
-
},
|
20129
|
+
}, T = (S) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
|
20125
20130
|
/* @__PURE__ */ t.jsx(nt, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
|
20126
|
-
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children:
|
20127
|
-
] },
|
20128
|
-
const { isValid: w, errorMessages: L } = !
|
20131
|
+
/* @__PURE__ */ t.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: S })
|
20132
|
+
] }, S), b = (S, O) => {
|
20133
|
+
const { isValid: w, errorMessages: L } = !S.data[O].disabled && r[S.id]?.[O] ? r[S.id][O] : { isValid: !0, errorMessages: [] }, B = S.data[O].type === ot.SELECT_TEXT;
|
20129
20134
|
return w ? null : /* @__PURE__ */ t.jsx(
|
20130
20135
|
"div",
|
20131
20136
|
{
|
20132
20137
|
className: `dynamic-data-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4 ${B ? "no-error" : ""}`,
|
20133
|
-
children: L.map((V) =>
|
20138
|
+
children: L.map((V) => T(V))
|
20134
20139
|
}
|
20135
20140
|
);
|
20136
|
-
},
|
20137
|
-
const L = n ||
|
20141
|
+
}, j = (S, O, w) => {
|
20142
|
+
const L = n || S.data[O].disabled || !1, B = !(r[S.id]?.[O]?.isValid ?? !0), V = /* @__PURE__ */ t.jsx(
|
20138
20143
|
ie,
|
20139
20144
|
{
|
20140
|
-
alwaysShowTippyOnHover: !!
|
20141
|
-
className:
|
20142
|
-
content:
|
20145
|
+
alwaysShowTippyOnHover: !!S.data[O].tooltip?.content || L,
|
20146
|
+
className: S.data[O].tooltip?.className,
|
20147
|
+
content: S.data[O].tooltip?.content || (L ? "Cannot edit in read-only mode" : ""),
|
20143
20148
|
followCursor: "horizontal",
|
20144
20149
|
plugins: [zl],
|
20145
20150
|
children: /* @__PURE__ */ t.jsxs(
|
20146
20151
|
"div",
|
20147
20152
|
{
|
20148
|
-
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${L ? "cursor-not-allowed no-hover" : ""} ${!L && B ? "dynamic-data-table__cell--error no-hover" : ""} ${RA(
|
20153
|
+
className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${L ? "cursor-not-allowed no-hover" : ""} ${!L && B ? "dynamic-data-table__cell--error no-hover" : ""} ${RA(S.data[O].type) ? "" : "no-hover no-focus"}`,
|
20149
20154
|
children: [
|
20150
|
-
y(
|
20151
|
-
S
|
20152
|
-
I(
|
20153
|
-
y(
|
20154
|
-
b(
|
20155
|
+
y(S, O, !0),
|
20156
|
+
v(S, O),
|
20157
|
+
I(S, O),
|
20158
|
+
y(S, O),
|
20159
|
+
b(S, O)
|
20155
20160
|
]
|
20156
20161
|
}
|
20157
20162
|
)
|
@@ -20161,8 +20166,8 @@ const wA = (e) => {
|
|
20161
20166
|
const { renderer: q, position: Q = "start" } = o, de = /* @__PURE__ */ t.jsx(
|
20162
20167
|
"div",
|
20163
20168
|
{
|
20164
|
-
className: `dc__overflow-hidden flex top bg__primary ${Q === "start" &&
|
20165
|
-
children: q(
|
20169
|
+
className: `dc__overflow-hidden flex top bg__primary ${Q === "start" && O === s[0].key || a && Q === "end" && O === s[s.length - 1].key ? "dynamic-data-table__cell" : ""}`,
|
20170
|
+
children: q(S)
|
20166
20171
|
}
|
20167
20172
|
);
|
20168
20173
|
return Q === "start" ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -20182,8 +20187,8 @@ const wA = (e) => {
|
|
20182
20187
|
style: {
|
20183
20188
|
gridTemplateColumns: x
|
20184
20189
|
},
|
20185
|
-
children: e.map((
|
20186
|
-
s.map(({ key:
|
20190
|
+
children: e.map((S) => /* @__PURE__ */ t.jsxs("div", { className: "dynamic-data-table__row", children: [
|
20191
|
+
s.map(({ key: O }, w) => /* @__PURE__ */ t.jsx(Hs, { children: j(S, O, w) }, O)),
|
20187
20192
|
!a && !n && /* @__PURE__ */ t.jsx("div", { className: "dynamic-data-table__row-delete-btn bg__primary", children: /* @__PURE__ */ t.jsx(
|
20188
20193
|
re,
|
20189
20194
|
{
|
@@ -20191,14 +20196,14 @@ const wA = (e) => {
|
|
20191
20196
|
ariaLabel: "Delete Row",
|
20192
20197
|
showAriaLabelInTippy: !1,
|
20193
20198
|
icon: /* @__PURE__ */ t.jsx(nt, {}),
|
20194
|
-
disabled: E ||
|
20195
|
-
onClick: A(
|
20199
|
+
disabled: E || S.disableDelete,
|
20200
|
+
onClick: A(S),
|
20196
20201
|
variant: he.borderLess,
|
20197
20202
|
style: be.negativeGrey,
|
20198
20203
|
size: M.small
|
20199
20204
|
}
|
20200
20205
|
) })
|
20201
|
-
] },
|
20206
|
+
] }, S.id))
|
20202
20207
|
}
|
20203
20208
|
) }) : null;
|
20204
20209
|
}, UA = ({
|
@@ -20515,7 +20520,7 @@ const wA = (e) => {
|
|
20515
20520
|
yaml: null
|
20516
20521
|
};
|
20517
20522
|
if (s) {
|
20518
|
-
const C = e || l ? gi.REPLACE : o, A = s.mergeStrategy || (n === Sr.INHERITED ? C : null),
|
20523
|
+
const C = e || l ? gi.REPLACE : o, A = s.mergeStrategy || (n === Sr.INHERITED ? C : null), v = HA({
|
20519
20524
|
configMapSecretData: { ...s, mergeStrategy: A },
|
20520
20525
|
cmSecretStateLabel: n,
|
20521
20526
|
isSecret: i
|
@@ -20528,8 +20533,8 @@ const wA = (e) => {
|
|
20528
20533
|
subPath: _,
|
20529
20534
|
esoSubPath: f
|
20530
20535
|
}),
|
20531
|
-
yaml: KA(
|
20532
|
-
currentData:
|
20536
|
+
yaml: KA(v),
|
20537
|
+
currentData: v,
|
20533
20538
|
mergeStrategy: A,
|
20534
20539
|
...WA(s)
|
20535
20540
|
};
|
@@ -20682,10 +20687,10 @@ const wA = (e) => {
|
|
20682
20687
|
const h = e && uu(n), f = (o ? qA(r) : i).reduce((C, A) => {
|
20683
20688
|
if (!A.k)
|
20684
20689
|
return C;
|
20685
|
-
const
|
20690
|
+
const v = A.v ?? "";
|
20686
20691
|
return {
|
20687
20692
|
...C,
|
20688
|
-
[A.k]: e && n === "" ? btoa(
|
20693
|
+
[A.k]: e && n === "" ? btoa(v) : v
|
20689
20694
|
};
|
20690
20695
|
}, {}), N = {
|
20691
20696
|
name: d,
|
@@ -20714,8 +20719,8 @@ const wA = (e) => {
|
|
20714
20719
|
}
|
20715
20720
|
if (u === dr.volume.value && (N.mountPath = _, N.subPath = E, m && (N.filePermission = l.length === 3 ? `0${l}` : `${l}`), E && (e && n === Le.KubernetesSecret || !e && s))) {
|
20716
20721
|
const C = a.replace(/\s+/g, "").split(","), A = {};
|
20717
|
-
C.forEach((
|
20718
|
-
A[
|
20722
|
+
C.forEach((v) => {
|
20723
|
+
A[v] = "";
|
20719
20724
|
}), N.data = A;
|
20720
20725
|
}
|
20721
20726
|
return N;
|
@@ -21091,7 +21096,7 @@ const wA = (e) => {
|
|
21091
21096
|
}, [n]);
|
21092
21097
|
const _ = (N) => {
|
21093
21098
|
const C = N.trim().toLowerCase(), A = n.filter(
|
21094
|
-
(
|
21099
|
+
(v) => v.variableName.toLowerCase().includes(C) || v.shortDescription?.toLowerCase().includes(C)
|
21095
21100
|
);
|
21096
21101
|
c(A), m(C);
|
21097
21102
|
}, E = () => {
|
@@ -21217,9 +21222,9 @@ const wA = (e) => {
|
|
21217
21222
|
return { x: y.x, y: y.y };
|
21218
21223
|
}, [f.current]);
|
21219
21224
|
k(() => {
|
21220
|
-
const y = new ResizeObserver((
|
21221
|
-
if (
|
21222
|
-
const { height: b } =
|
21225
|
+
const y = new ResizeObserver((T) => {
|
21226
|
+
if (T?.length > 0 && c) {
|
21227
|
+
const { height: b } = T[0].contentRect;
|
21223
21228
|
N.y + m.y + b > g.height && p({
|
21224
21229
|
x: m.x,
|
21225
21230
|
y: g.height - b - N.y
|
@@ -21248,20 +21253,20 @@ const wA = (e) => {
|
|
21248
21253
|
x: g.width - _s.width - N.x,
|
21249
21254
|
y: g.height - _s.height - N.y
|
21250
21255
|
}), l(!0);
|
21251
|
-
}, A =
|
21256
|
+
}, A = qe((y) => {
|
21252
21257
|
y.stopPropagation(), l(!1);
|
21253
|
-
}, []),
|
21258
|
+
}, []), v = (y, T) => {
|
21254
21259
|
const b = {
|
21255
|
-
x: N.x +
|
21256
|
-
y: N.y +
|
21260
|
+
x: N.x + T.x,
|
21261
|
+
y: N.y + T.y
|
21257
21262
|
};
|
21258
|
-
b.y < 0 || b.x < 0 || b.x + (f.current?.getBoundingClientRect().width || 0) > g.width || b.y + (f.current?.getBoundingClientRect().height || 0) > g.height || u(
|
21259
|
-
}, I = (y,
|
21263
|
+
b.y < 0 || b.x < 0 || b.x + (f.current?.getBoundingClientRect().width || 0) > g.width || b.y + (f.current?.getBoundingClientRect().height || 0) > g.height || u(T);
|
21264
|
+
}, I = (y, T) => {
|
21260
21265
|
const b = {
|
21261
|
-
x: N.x +
|
21262
|
-
y: N.y +
|
21266
|
+
x: N.x + T.x,
|
21267
|
+
y: N.y + T.y
|
21263
21268
|
};
|
21264
|
-
b.y < 0 || b.x < 0 || b.x + (f.current?.getBoundingClientRect().width || 0) > g.width || b.y + (f.current?.getBoundingClientRect().height || 0) > g.height || (p(
|
21269
|
+
b.y < 0 || b.x < 0 || b.x + (f.current?.getBoundingClientRect().width || 0) > g.width || b.y + (f.current?.getBoundingClientRect().height || 0) > g.height || (p(T), u(T));
|
21265
21270
|
};
|
21266
21271
|
return c ? /* @__PURE__ */ t.jsx(
|
21267
21272
|
ka,
|
@@ -21301,7 +21306,7 @@ const wA = (e) => {
|
|
21301
21306
|
handle: ".handle-drag",
|
21302
21307
|
nodeRef: f,
|
21303
21308
|
position: d,
|
21304
|
-
onDrag:
|
21309
|
+
onDrag: v,
|
21305
21310
|
children: /* @__PURE__ */ t.jsxs(
|
21306
21311
|
"div",
|
21307
21312
|
{
|
@@ -21440,12 +21445,12 @@ const mI = ({
|
|
21440
21445
|
);
|
21441
21446
|
const _ = (f) => () => {
|
21442
21447
|
d(f);
|
21443
|
-
}, E =
|
21448
|
+
}, E = qe(
|
21444
21449
|
(f, N) => {
|
21445
|
-
const C = lo.some((
|
21450
|
+
const C = lo.some((v) => v.label === u), A = uI[u] ?? ((v) => v);
|
21446
21451
|
if (!C) {
|
21447
|
-
const
|
21448
|
-
return at(
|
21452
|
+
const v = f.additionalKeys?.find((y) => y.label === u)?.value || "", I = N.additionalKeys?.find((y) => y.label === u)?.value || "";
|
21453
|
+
return at(v, I, m);
|
21449
21454
|
}
|
21450
21455
|
return (m === xe.ASC ? 1 : -1) * (A(f[Ol[u]]) < A(N[Ol[u]]) ? -1 : 1);
|
21451
21456
|
},
|
@@ -21454,11 +21459,11 @@ const mI = ({
|
|
21454
21459
|
(f, N, C) => {
|
21455
21460
|
if (f.push(N), C === 0) {
|
21456
21461
|
const A = x?.[0]?.additionalKeys;
|
21457
|
-
A?.length && A.forEach((
|
21462
|
+
A?.length && A.forEach((v) => {
|
21458
21463
|
f.push({
|
21459
|
-
label:
|
21460
|
-
isSortable:
|
21461
|
-
width:
|
21464
|
+
label: v.label,
|
21465
|
+
isSortable: v.isSortable,
|
21466
|
+
width: v.width
|
21462
21467
|
});
|
21463
21468
|
});
|
21464
21469
|
}
|
@@ -21631,43 +21636,43 @@ const mI = ({
|
|
21631
21636
|
try {
|
21632
21637
|
m(!0);
|
21633
21638
|
let y = -1;
|
21634
|
-
const
|
21639
|
+
const T = () => {
|
21635
21640
|
y >= 0 || (y = setTimeout(() => {
|
21636
21641
|
p((/* @__PURE__ */ new Date()).toISOString()), y = -1;
|
21637
21642
|
}, 10));
|
21638
|
-
}, b = _.current.map((
|
21639
|
-
const { operation:
|
21643
|
+
}, b = _.current.map((j) => async () => {
|
21644
|
+
const { operation: S, name: O, additionalKeys: w, renderContentAtResultRowEnd: L = null } = j;
|
21640
21645
|
if (x.current.signal.aborted)
|
21641
21646
|
throw new Error("bulk operations aborted");
|
21642
21647
|
let B = -1;
|
21643
21648
|
try {
|
21644
21649
|
B = E.current.addResult({
|
21645
|
-
name:
|
21650
|
+
name: O,
|
21646
21651
|
additionalKeys: w,
|
21647
21652
|
status: "Progressing",
|
21648
21653
|
message: "-"
|
21649
|
-
}),
|
21650
|
-
const V = await
|
21654
|
+
}), T();
|
21655
|
+
const V = await S(x, l);
|
21651
21656
|
E.current.updateResultStatus(B, {
|
21652
21657
|
status: "Completed",
|
21653
21658
|
...L ? {
|
21654
21659
|
renderContentAtResultRowEnd: () => L(V)
|
21655
21660
|
} : {}
|
21656
|
-
}),
|
21661
|
+
}), T();
|
21657
21662
|
} catch (V) {
|
21658
21663
|
if (qt(V)) {
|
21659
21664
|
E.current.updateResultStatus(B, {
|
21660
21665
|
status: "Failed",
|
21661
21666
|
message: "Aborted by you",
|
21662
|
-
retryOperation:
|
21663
|
-
}),
|
21667
|
+
retryOperation: j
|
21668
|
+
}), T();
|
21664
21669
|
return;
|
21665
21670
|
}
|
21666
21671
|
E.current.updateResultStatus(B, {
|
21667
21672
|
status: "Failed",
|
21668
21673
|
message: (V && (V.message || V instanceof Pt && Array.isArray(V.errors) && V.errors[0].userMessage)) ?? "",
|
21669
|
-
retryOperation:
|
21670
|
-
}),
|
21674
|
+
retryOperation: j
|
21675
|
+
}), T();
|
21671
21676
|
}
|
21672
21677
|
});
|
21673
21678
|
await lI(b, !0), ke.showToast({
|
@@ -21687,7 +21692,7 @@ const mI = ({
|
|
21687
21692
|
_.current = E.current.getRetryOperations(), E.current = new Ll(_.current.length), x.current = new AbortController(), await f();
|
21688
21693
|
}, A = () => {
|
21689
21694
|
x.current.abort();
|
21690
|
-
},
|
21695
|
+
}, v = () => /* @__PURE__ */ t.jsx(
|
21691
21696
|
Ws,
|
21692
21697
|
{
|
21693
21698
|
...c,
|
@@ -21722,7 +21727,7 @@ const mI = ({
|
|
21722
21727
|
);
|
21723
21728
|
return /* @__PURE__ */ t.jsxs("div", { className: "bulk-operations", children: [
|
21724
21729
|
/* @__PURE__ */ t.jsx(n_, { when: u, message: o.prompt }),
|
21725
|
-
!i && !h ?
|
21730
|
+
!i && !h ? v() : I()
|
21726
21731
|
] });
|
21727
21732
|
}, Rn = ({
|
21728
21733
|
title: e,
|
@@ -21835,7 +21840,7 @@ const mI = ({
|
|
21835
21840
|
};
|
21836
21841
|
k(() => {
|
21837
21842
|
if (o && i) {
|
21838
|
-
const N = i.find((
|
21843
|
+
const N = i.find((v) => +v.id === o?.appWorkflowId);
|
21839
21844
|
if (!N) {
|
21840
21845
|
x(), ke.showToast({
|
21841
21846
|
variant: Se.error,
|
@@ -21843,8 +21848,8 @@ const mI = ({
|
|
21843
21848
|
});
|
21844
21849
|
return;
|
21845
21850
|
}
|
21846
|
-
const C = N.nodes.find((
|
21847
|
-
if (N.nodes.some((
|
21851
|
+
const C = N.nodes.find((v) => v.type === Es.CI);
|
21852
|
+
if (N.nodes.some((v) => v.type === Es.WEBHOOK)) {
|
21848
21853
|
p(Es.WEBHOOK);
|
21849
21854
|
return;
|
21850
21855
|
}
|
@@ -22076,7 +22081,7 @@ const mI = ({
|
|
22076
22081
|
[pt.BITBUCKET]: "ic-bitbucket",
|
22077
22082
|
[pt.GITEA]: "ic-git",
|
22078
22083
|
[pt.AZURE]: "ic-azure"
|
22079
|
-
}, qD = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22084
|
+
}, qD = ({ gitProvider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(Ke, { name: gI[e] || "ic-git", size: s, color: null }), xI = {
|
22080
22085
|
error: "bcr-1 er-2",
|
22081
22086
|
help: "bcv-1 ev-2",
|
22082
22087
|
information: "bcb-1 eb-2",
|
@@ -22086,10 +22091,10 @@ const mI = ({
|
|
22086
22091
|
}, EI = {
|
22087
22092
|
error: /* @__PURE__ */ t.jsx(Nr, {}),
|
22088
22093
|
help: /* @__PURE__ */ t.jsx(gn, { className: "fcv-5" }),
|
22089
|
-
information: /* @__PURE__ */ t.jsx(
|
22094
|
+
information: /* @__PURE__ */ t.jsx(Ke, { name: "ic-info-filled", color: "B500" }),
|
22090
22095
|
success: /* @__PURE__ */ t.jsx(ai, {}),
|
22091
22096
|
warning: /* @__PURE__ */ t.jsx(xn, {}),
|
22092
|
-
neutral: /* @__PURE__ */ t.jsx(
|
22097
|
+
neutral: /* @__PURE__ */ t.jsx(Ke, { name: "ic-info-filled", color: null })
|
22093
22098
|
}, NI = {
|
22094
22099
|
[M.large]: "px-12",
|
22095
22100
|
[M.medium]: "px-8"
|
@@ -22150,11 +22155,11 @@ const mI = ({
|
|
22150
22155
|
[fs.microsoft]: "ic-microsoft",
|
22151
22156
|
[fs.oidc]: "ic-oidc",
|
22152
22157
|
[fs.openshift]: "ic-openshift"
|
22153
|
-
}, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(
|
22158
|
+
}, JD = ({ provider: e, size: s = 20 }) => /* @__PURE__ */ t.jsx(Ke, { name: bI[e], size: s, color: null });
|
22154
22159
|
function Be(e, s = !0, n = !1) {
|
22155
22160
|
e instanceof Pt && Array.isArray(e.errors) ? e.errors.map(({ userMessage: a, internalMessage: r }) => {
|
22156
22161
|
const o = a?.toLowerCase();
|
22157
|
-
e.code === 403 && (o ===
|
22162
|
+
e.code === 403 && (o === We.UNAUTHORIZED.toLowerCase() || o === We.FORBIDDEN.toLowerCase()) ? n || ke.showToast({
|
22158
22163
|
variant: Se.notAuthorized,
|
22159
22164
|
description: pg.SUBTITLE
|
22160
22165
|
}) : ke.showToast({
|
@@ -22510,7 +22515,7 @@ function km(e, s) {
|
|
22510
22515
|
}, [s]);
|
22511
22516
|
}
|
22512
22517
|
function fP(e) {
|
22513
|
-
const s = Y(null), n = Y(0), a = Y(null), [r, o] = R(0), [i, c] = R(0), [l, d] = R(!1), u =
|
22518
|
+
const s = Y(null), n = Y(0), a = Y(null), [r, o] = R(0), [i, c] = R(0), [l, d] = R(!1), u = qe((g) => {
|
22514
22519
|
if (g !== null)
|
22515
22520
|
return s.current = g, a.current = g.addEventListener("wheel", m), n.current = requestAnimationFrame(h), () => {
|
22516
22521
|
g.removeEventListener("wheel", m), cancelAnimationFrame(n.current);
|
@@ -22636,8 +22641,8 @@ const DI = ({ subtitle: e, title: s }) => /* @__PURE__ */ t.jsx(
|
|
22636
22641
|
Qe,
|
22637
22642
|
{
|
22638
22643
|
image: go,
|
22639
|
-
title: s ??
|
22640
|
-
subTitle: e ??
|
22644
|
+
title: s ?? We.NOT_AUTHORIZED,
|
22645
|
+
subTitle: e ?? We.ONLY_FOR_SUPERADMIN
|
22641
22646
|
}
|
22642
22647
|
);
|
22643
22648
|
class Cn extends Ce.Component {
|
@@ -23022,7 +23027,7 @@ const $i = ({
|
|
23022
23027
|
noBackgroundAndBorder: l = !1,
|
23023
23028
|
size: d = M.medium
|
23024
23029
|
}) => {
|
23025
|
-
const [u, m] = R(!!e), p = Y(), _ =
|
23030
|
+
const [u, m] = R(!!e), p = Y(), _ = qe(Mm(s, i), [
|
23026
23031
|
s,
|
23027
23032
|
i
|
23028
23033
|
]);
|
@@ -23040,8 +23045,8 @@ const $i = ({
|
|
23040
23045
|
const { key: C } = N;
|
23041
23046
|
if (C === "Enter") {
|
23042
23047
|
N.preventDefault();
|
23043
|
-
const
|
23044
|
-
E(
|
23048
|
+
const v = N.target.value.trim();
|
23049
|
+
E(v);
|
23045
23050
|
}
|
23046
23051
|
}, f = (N = null) => {
|
23047
23052
|
a.ref && (a.ref.current = N), p.current = N;
|
@@ -23104,7 +23109,7 @@ const $i = ({
|
|
23104
23109
|
function _() {
|
23105
23110
|
r || p((g) => !g);
|
23106
23111
|
}
|
23107
|
-
const E =
|
23112
|
+
const E = qe(LI(_, 500), [r]), x = () => {
|
23108
23113
|
if (l) {
|
23109
23114
|
E();
|
23110
23115
|
return;
|
@@ -23144,30 +23149,30 @@ const Wm = ({
|
|
23144
23149
|
forceReInit: m,
|
23145
23150
|
isSuperAdmin: p
|
23146
23151
|
}) => {
|
23147
|
-
const [_, E] = R(a || []), [x, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, C] = R(n ? n.comment : ""), [A,
|
23152
|
+
const [_, E] = R(a || []), [x, h] = R(n ? n.comment : ""), [g, f] = R(o || []), [N, C] = R(n ? n.comment : ""), [A, v] = R(!1), [I, y] = R(!1), [T, b] = R(a || []), [j, S] = R(""), [O, w] = R([]), [L, B] = R([]), [V, X] = R([]), [q, Q] = R(""), [de, Ie] = R(""), [H, F] = R(!1);
|
23148
23153
|
k(() => {
|
23149
23154
|
ce();
|
23150
23155
|
}, [a, n, c]), k(() => {
|
23151
23156
|
f(o || []);
|
23152
23157
|
}, [o]);
|
23153
23158
|
const ce = () => {
|
23154
|
-
(m || !A) && (E(a || []), h(n ? n.comment : ""), C(n ? n.comment : ""), b(a || []),
|
23159
|
+
(m || !A) && (E(a || []), h(n ? n.comment : ""), C(n ? n.comment : ""), b(a || []), v(!1));
|
23155
23160
|
}, le = () => {
|
23156
|
-
|
23161
|
+
v(!A), typeof d == "function" && d(s);
|
23157
23162
|
}, pe = (W) => {
|
23158
23163
|
const Ae = W.target.value;
|
23159
23164
|
Ae?.length > 500 ? Q("comment length cannot exceed 500 characters") : Q(""), C(Ae);
|
23160
23165
|
}, D = () => {
|
23161
|
-
b(_), C(x), w([]), B([]), X([]), le(), y(!1),
|
23166
|
+
b(_), C(x), w([]), B([]), X([]), le(), y(!1), S("");
|
23162
23167
|
}, P = (W) => {
|
23163
23168
|
if (W.length == 0 || W.length >= 128 || W[0] == "." || W[0] == "-")
|
23164
|
-
return
|
23165
|
-
|
23169
|
+
return S("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
|
23170
|
+
S("");
|
23166
23171
|
const Ae = g.includes(W);
|
23167
23172
|
let _e = !1;
|
23168
|
-
for (let Ge = 0; Ge <
|
23169
|
-
|
23170
|
-
return Ae || _e || W === "latest" ? (
|
23173
|
+
for (let Ge = 0; Ge < T?.length; Ge++)
|
23174
|
+
T[Ge].tagName.toLowerCase() === W && (_e = !0);
|
23175
|
+
return Ae || _e || W === "latest" ? (S("This label is already being used in this application"), !1) : !0;
|
23171
23176
|
}, $ = (W) => {
|
23172
23177
|
const Ae = W.toLowerCase().trim();
|
23173
23178
|
if (P(Ae)) {
|
@@ -23178,12 +23183,12 @@ const Wm = ({
|
|
23178
23183
|
deleted: !1,
|
23179
23184
|
artifactId: 0,
|
23180
23185
|
duplicateTag: !1
|
23181
|
-
}, Ge = [...
|
23182
|
-
return w(Ge), b([...
|
23186
|
+
}, Ge = [...O, _e];
|
23187
|
+
return w(Ge), b([...T, _e]), y(!0), Ie(""), Ge;
|
23183
23188
|
}
|
23184
|
-
return
|
23189
|
+
return O;
|
23185
23190
|
}, ee = (W) => {
|
23186
|
-
const Ae = [...
|
23191
|
+
const Ae = [...T];
|
23187
23192
|
Ae[W] = {
|
23188
23193
|
...Ae[W],
|
23189
23194
|
deleted: !Ae[W].deleted
|
@@ -23191,9 +23196,9 @@ const Wm = ({
|
|
23191
23196
|
const _e = Ae[W], Ge = [...L], tt = Ge.findIndex((Ot) => Ot.tagName === _e.tagName);
|
23192
23197
|
tt !== -1 ? Ge.splice(tt, 1) : Ge.push(_e), b(Ae), B(Ge);
|
23193
23198
|
}, oe = (W) => {
|
23194
|
-
const Ae =
|
23199
|
+
const Ae = T[W], _e = O.filter((Ot) => Ot.tagName !== Ae.tagName);
|
23195
23200
|
w(_e);
|
23196
|
-
const Ge = [...
|
23201
|
+
const Ge = [...T];
|
23197
23202
|
Ge.splice(W, 1), b(Ge);
|
23198
23203
|
const tt = g.filter((Ot) => Ot.toLowerCase() !== Ae.tagName.toLowerCase());
|
23199
23204
|
if (f(tt), Ae.id !== 0) {
|
@@ -23202,19 +23207,19 @@ const Wm = ({
|
|
23202
23207
|
}
|
23203
23208
|
}, ve = (W) => {
|
23204
23209
|
W.forEach(({ userMessage: Ae }) => {
|
23205
|
-
const _e =
|
23210
|
+
const _e = O.map((tt) => Ae?.appReleaseTags?.includes(tt.tagName) ? {
|
23206
23211
|
...tt,
|
23207
23212
|
duplicateTag: !0
|
23208
23213
|
} : tt);
|
23209
23214
|
w(_e);
|
23210
|
-
const Ge =
|
23215
|
+
const Ge = T.map((tt) => {
|
23211
23216
|
const Ot = _e.find(($r) => $r.tagName === tt.tagName);
|
23212
23217
|
return Ot ? { ...tt, duplicateTag: Ot.duplicateTag } : tt;
|
23213
23218
|
});
|
23214
23219
|
b(Ge);
|
23215
23220
|
});
|
23216
23221
|
}, Ee = async (W) => {
|
23217
|
-
if (
|
23222
|
+
if (j) return;
|
23218
23223
|
const Ae = {
|
23219
23224
|
createTags: W,
|
23220
23225
|
softDeleteTags: L,
|
@@ -23233,7 +23238,7 @@ const Wm = ({
|
|
23233
23238
|
appId: 0,
|
23234
23239
|
artifactId: 0
|
23235
23240
|
}));
|
23236
|
-
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), h(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(), y(!1),
|
23241
|
+
i && i(_e.result?.appReleaseTags), l && l(_e.result?.tagsEditable), E(Ge), h(_e.result?.imageComment?.comment), b(Ge), C(_e.result?.imageComment?.comment), w([]), B([]), X([]), le(), y(!1), S(""), r && r(s, Ge, _e.result?.imageComment);
|
23237
23242
|
}).catch((_e) => {
|
23238
23243
|
_e.errors?.[0]?.userMessage?.appReleaseTags?.length ? (ke.showToast({
|
23239
23244
|
variant: Se.error,
|
@@ -23258,7 +23263,7 @@ const Wm = ({
|
|
23258
23263
|
/* @__PURE__ */ t.jsx("li", { children: "Labels cannot be deleted once saved. Although, you can soft delete a label if an unwanted label has been added." })
|
23259
23264
|
] })
|
23260
23265
|
] }), je = Y(null);
|
23261
|
-
if (N === "" &&
|
23266
|
+
if (N === "" && T.length === 0 && !A)
|
23262
23267
|
return c ? /* @__PURE__ */ t.jsx("div", { className: "bg__primary mt-8 add-image-button", children: /* @__PURE__ */ t.jsx(YI, { handleEditClick: le }) }) : /* @__PURE__ */ t.jsx("div", {});
|
23263
23268
|
const xt = (W) => {
|
23264
23269
|
W.key === "Enter" && W.target.value.trim() && $(W.target.value.trim());
|
@@ -23267,7 +23272,7 @@ const Wm = ({
|
|
23267
23272
|
}, _a = (W) => {
|
23268
23273
|
Ne(W), de.trim() && $(de.trim());
|
23269
23274
|
}, Br = () => {
|
23270
|
-
let W =
|
23275
|
+
let W = O;
|
23271
23276
|
de.trim() && (W = $(de)), Ee(W);
|
23272
23277
|
};
|
23273
23278
|
return /* @__PURE__ */ t.jsx("div", { className: "mt-8", children: A && c ? /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
|
@@ -23306,11 +23311,11 @@ const Wm = ({
|
|
23306
23311
|
}
|
23307
23312
|
)
|
23308
23313
|
] }),
|
23309
|
-
|
23314
|
+
j && /* @__PURE__ */ t.jsxs("div", { className: "flex left", children: [
|
23310
23315
|
/* @__PURE__ */ t.jsx(Zn, { className: "form__icon form__icon--error" }),
|
23311
|
-
/* @__PURE__ */ t.jsx("div", { className: "form__error", children:
|
23316
|
+
/* @__PURE__ */ t.jsx("div", { className: "form__error", children: j })
|
23312
23317
|
] }),
|
23313
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex-wrap mt-8 flex left", children:
|
23318
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex-wrap mt-8 flex left", children: T?.map((W, Ae) => /* @__PURE__ */ t.jsx(
|
23314
23319
|
_r,
|
23315
23320
|
{
|
23316
23321
|
text: W?.tagName,
|
@@ -24024,15 +24029,15 @@ const kt = {
|
|
24024
24029
|
_(e);
|
24025
24030
|
}, [e]);
|
24026
24031
|
const f = Pe(n), N = f.isValid() ? f.format(yt.TWELVE_HOURS_FORMAT) : n, C = (y) => {
|
24027
|
-
let
|
24032
|
+
let T = !0;
|
24028
24033
|
return y.length === 0 && (ke.showToast({
|
24029
24034
|
variant: Se.error,
|
24030
24035
|
description: ny
|
24031
|
-
}),
|
24036
|
+
}), T = !1), T;
|
24032
24037
|
}, A = () => {
|
24033
24038
|
let y = !0;
|
24034
24039
|
h && !u && (y = window.confirm(ay)), y && (_(e), m(!u), x(sn.WRITE));
|
24035
|
-
},
|
24040
|
+
}, v = async () => {
|
24036
24041
|
const y = p.trim();
|
24037
24042
|
if (C(y))
|
24038
24043
|
try {
|
@@ -24263,7 +24268,7 @@ const kt = {
|
|
24263
24268
|
"data-testid": "description-edit-save-button",
|
24264
24269
|
rootClassName: "cta flex h-36",
|
24265
24270
|
type: "submit",
|
24266
|
-
onClick:
|
24271
|
+
onClick: v,
|
24267
24272
|
children: "Save"
|
24268
24273
|
}
|
24269
24274
|
)
|
@@ -24321,7 +24326,7 @@ export {
|
|
24321
24326
|
$i as I,
|
24322
24327
|
pg as J,
|
24323
24328
|
ss as K,
|
24324
|
-
|
24329
|
+
We as L,
|
24325
24330
|
wO as M,
|
24326
24331
|
DO as N,
|
24327
24332
|
PO as O,
|
@@ -24872,7 +24877,7 @@ export {
|
|
24872
24877
|
WD as iB,
|
24873
24878
|
zD as iC,
|
24874
24879
|
ix as iD,
|
24875
|
-
|
24880
|
+
Ke as iE,
|
24876
24881
|
wb as iF,
|
24877
24882
|
Mb as iG,
|
24878
24883
|
$u as iH,
|
@@ -24948,7 +24953,7 @@ export {
|
|
24948
24953
|
wg as jO,
|
24949
24954
|
ae as jP,
|
24950
24955
|
Co as jQ,
|
24951
|
-
|
24956
|
+
ze as jR,
|
24952
24957
|
ci as jS,
|
24953
24958
|
en as jT,
|
24954
24959
|
Dg as jU,
|