@devtron-labs/devtron-fe-common-lib 1.2.5-beta-12 → 1.2.6
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.
- package/dist/{@code-editor-Bup1WUI7.js → @code-editor-Cro_fdaH.js} +504 -497
- package/dist/{@common-rjsf-CbBSQQQt.js → @common-rjsf-DTa_zNX9.js} +1 -1
- package/dist/Common/Helper.d.ts +2 -1
- package/dist/Shared/Store/IndexStore.d.ts +1 -0
- package/dist/assets/app-not-deployed.acdf0271.png +0 -0
- package/dist/assets/delete-medium.baa284da.svg +26 -1
- package/dist/assets/empty-noresult@2x.022ec87c.png +0 -0
- package/dist/assets/ic-abort.0d2773e9.svg +34 -1
- package/dist/assets/ic-aborted.e7288a6c.svg +5 -1
- package/dist/assets/ic-add.cfaa779b.svg +19 -1
- package/dist/assets/ic-appstatus-cancelled.05bb3352.svg +22 -1
- package/dist/assets/ic-arrow-backward.d951202a.svg +19 -1
- package/dist/assets/ic-arrow-counter-clockwise.01cbb0e1.svg +21 -1
- package/dist/assets/ic-arrow-down.18e5e332.svg +19 -1
- package/dist/assets/ic-arrow-forward.a2b8ab45.svg +27 -1
- package/dist/assets/ic-arrow-out.6aea09d0.svg +19 -1
- package/dist/assets/ic-arrow-right.f942ee03.svg +7 -1
- package/dist/assets/ic-arrow-square-out.1be837ac.svg +19 -1
- package/dist/assets/ic-arrow-up-down.945ee496.svg +19 -1
- package/dist/assets/ic-bold.2140b7c6.svg +19 -1
- package/dist/assets/ic-book-open.7cb94ee8.svg +19 -1
- package/dist/assets/ic-bot.f1d4abcc.svg +23 -1
- package/dist/assets/ic-branch.8db43d66.svg +19 -1
- package/dist/assets/ic-calendar.984accc5.svg +19 -1
- package/dist/assets/ic-calender-blank.963e3423.svg +19 -1
- package/dist/assets/ic-caret-down-small.2cc24039.svg +3 -1
- package/dist/assets/ic-caret-down.1666c029.svg +19 -1
- package/dist/assets/ic-caret-left-small.fe00c98d.svg +19 -1
- package/dist/assets/ic-charts.f41e185f.svg +19 -1
- package/dist/assets/ic-chat-circle-dots.e15514f8.svg +23 -1
- package/dist/assets/ic-check-all.0376437d.svg +21 -1
- package/dist/assets/ic-check-circle.ad80d835.svg +25 -1
- package/dist/assets/ic-check-grey.f556e371.svg +21 -1
- package/dist/assets/ic-check-square.2a3d3fb9.svg +20 -1
- package/dist/assets/ic-check.27c51fa1.svg +21 -1
- package/dist/assets/ic-checked-list.aba26c40.svg +19 -1
- package/dist/assets/ic-chevron-down.fc70d7a7.svg +21 -1
- package/dist/assets/ic-circle.05f86ff6.svg +9 -1
- package/dist/assets/ic-clair.ba79956f.svg +21 -1
- package/dist/assets/ic-clock.c21a2d14.svg +19 -1
- package/dist/assets/ic-close.43adc42a.svg +25 -1
- package/dist/assets/ic-code-commit.161a6b3c.svg +19 -1
- package/dist/assets/ic-code.1d1d4dd8.svg +19 -1
- package/dist/assets/ic-collapse-all.fd7b27b1.svg +3 -1
- package/dist/assets/ic-commit.e3113dd9.svg +23 -1
- package/dist/assets/ic-compare.0ee3e4cf.svg +22 -1
- package/dist/assets/ic-copy.94cee0fb.svg +19 -1
- package/dist/assets/ic-cpu.8be677ee.svg +20 -1
- package/dist/assets/ic-cross.01e03666.svg +19 -1
- package/dist/assets/ic-delete-interactive.304dd293.svg +19 -1
- package/dist/assets/ic-diff-file-added.0deb6763.svg +10 -1
- package/dist/assets/ic-diff-file-removed.2ed80281.svg +10 -1
- package/dist/assets/ic-diff-file-updated.c8740f72.svg +10 -1
- package/dist/assets/ic-disconnected.551d6161.svg +29 -1
- package/dist/assets/ic-discord-fill.1a1b291d.svg +19 -1
- package/dist/assets/ic-docker.48906f4d.svg +19 -1
- package/dist/assets/ic-download.c30437cd.svg +21 -1
- package/dist/assets/ic-drag.3f71e8aa.svg +24 -1
- package/dist/assets/ic-edit-file.a782640f.svg +20 -1
- package/dist/assets/ic-enter.cab07082.svg +19 -1
- package/dist/assets/ic-error-cross.bf21e563.svg +24 -1
- package/dist/assets/ic-error-exclamation.c224de09.svg +22 -1
- package/dist/assets/ic-error-medium.ea542259.svg +22 -1
- package/dist/assets/ic-error.a25d2f0d.svg +4 -1
- package/dist/assets/ic-errorInfo.d8d674b8.svg +23 -1
- package/dist/assets/ic-exit-fullscreen.1ae582d1.svg +19 -1
- package/dist/assets/ic-expand-all.a0744f9f.svg +3 -1
- package/dist/assets/ic-expand.ab992205.svg +19 -1
- package/dist/assets/ic-feedback.d32fa6b0.svg +19 -1
- package/dist/assets/ic-file-code.21a1f748.svg +7 -1
- package/dist/assets/ic-file-text.f9563710.svg +19 -1
- package/dist/assets/ic-files.fc290dee.svg +19 -1
- package/dist/assets/ic-filter-applied.9fc48d0f.svg +20 -1
- package/dist/assets/ic-filter.8f403d6f.svg +19 -1
- package/dist/assets/ic-folder.051cd30d.svg +19 -1
- package/dist/assets/ic-fullscreen-2.f138a5e8.svg +19 -1
- package/dist/assets/ic-fullscreen.b05e5087.svg +19 -1
- package/dist/assets/ic-hash.cd11c334.svg +3 -1
- package/dist/assets/ic-header.a91a9800.svg +21 -1
- package/dist/assets/ic-help-outline.9c012a0c.svg +19 -1
- package/dist/assets/ic-help.39c58c34.svg +19 -1
- package/dist/assets/ic-image.2a8ed117.svg +20 -1
- package/dist/assets/ic-in-progress.0598554b.svg +10 -1
- package/dist/assets/ic-info-filled-override.99e8094a.svg +20 -1
- package/dist/assets/ic-info-filled.4b0b46d1.svg +20 -1
- package/dist/assets/ic-info-outline.f4be8a1e.svg +4 -1
- package/dist/assets/ic-info-outlined.f4fa3224.svg +29 -1
- package/dist/assets/ic-italic.358ca070.svg +19 -1
- package/dist/assets/ic-k8s-job.f4414c10.svg +19 -1
- package/dist/assets/ic-lego-block.ee4b63f1.svg +36 -1
- package/dist/assets/ic-lines.395ef3db.svg +3 -1
- package/dist/assets/ic-link.8453e775.svg +19 -1
- package/dist/assets/ic-loading-failure.aa68693d.png +0 -0
- package/dist/assets/ic-locked.3b9eff02.svg +5 -1
- package/dist/assets/ic-mechanical-operation.08b38afd.svg +84 -1
- package/dist/assets/ic-medium-info.eee4a07b.svg +5 -1
- package/dist/assets/ic-megaphone.b9f9a901.svg +19 -1
- package/dist/assets/ic-memory.c4159f96.svg +19 -1
- package/dist/assets/ic-message.be6dba43.svg +19 -1
- package/dist/assets/ic-minus.df865aaf.svg +19 -1
- package/dist/assets/ic-nav-rocket.9e50bb61.svg +19 -1
- package/dist/assets/ic-not-authorized.2d8e208f.svg +78 -1
- package/dist/assets/ic-not-found.86f588bf.svg +176 -1
- package/dist/assets/ic-onboarding.c98f9ef9.svg +19 -1
- package/dist/assets/ic-open-in-new.6aea09d0.svg +19 -1
- package/dist/assets/ic-ordered-list.879dc7c8.svg +19 -1
- package/dist/assets/ic-page-not-found.da74a367.svg +81 -1
- package/dist/assets/ic-pencil.c75a6acc.svg +19 -1
- package/dist/assets/ic-person.f78738ac.svg +22 -1
- package/dist/assets/ic-pull-request.31d0c981.svg +19 -1
- package/dist/assets/ic-pulsate-status.9264740e.svg +21 -1
- package/dist/assets/ic-quote.10768489.svg +19 -1
- package/dist/assets/ic-regex.e14a4ea3.svg +19 -1
- package/dist/assets/ic-rocket-fail.874e54ce.svg +20 -1
- package/dist/assets/ic-rotate-devtron.200e165b.svg +119 -1
- package/dist/assets/ic-search.976327f1.svg +22 -1
- package/dist/assets/ic-sort-arrow-down.5cf54d08.svg +19 -1
- package/dist/assets/ic-stamp.8689f42d.svg +9 -1
- package/dist/assets/ic-strikethrough.a1652ad9.svg +19 -1
- package/dist/assets/ic-success.8c8fe69d.svg +4 -1
- package/dist/assets/ic-tag.1613fc59.svg +19 -1
- package/dist/assets/ic-timeout-red.5eda1010.svg +21 -1
- package/dist/assets/ic-timer.b62145ec.svg +19 -1
- package/dist/assets/ic-trivy.d5338454.svg +25 -1
- package/dist/assets/ic-unordered-list.42c1cbbc.svg +22 -1
- package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +24 -1
- package/dist/assets/ic-vulnerability-not-found.d8a4d43c.svg +65 -1
- package/dist/assets/ic-warning-y5.2ad9d7f4.svg +20 -1
- package/dist/assets/ic-warning.10bcf8bd.svg +23 -1
- package/dist/assets/ic-webhook.d4431b07.svg +31 -1
- package/dist/assets/ic-world.1f6a5eaf.svg +19 -1
- package/dist/assets/inject-tag.28e72db6.svg +21 -1
- package/dist/assets/lifebuoy.7d8fdf27.png +0 -0
- package/dist/assets/no-artifact@2x.6afc74bc.png +0 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -2
- package/package.json +3 -2
@@ -5,8 +5,8 @@ var Er = (e) => {
|
|
5
5
|
var dc = (e, s, n) => s in e ? cc(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var Ge = (e, s, n) => dc(e, typeof s != "symbol" ? s + "" : s, n), Nr = (e, s, n) => s.has(e) || Er("Cannot " + n);
|
7
7
|
var da = (e, s, n) => (Nr(e, s, "read from private field"), n ? n.call(e) : s.get(e)), br = (e, s, n) => s.has(e) ? Er("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Cr = (e, s, n, a) => (Nr(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
-
import { j as t, i as Q, Q as ua, k as uc, d as Qo, h as mc, A as pc, R as fc, s as hc, f as _c, c as Zo, u as ei, J as gc, a as xc, b as Ec, m as
|
9
|
-
import J, { useState as A, cloneElement as Ta, createContext as Bt, useContext as
|
8
|
+
import { j as t, i as Q, Q as ua, k as uc, d as Qo, h as mc, A as pc, R as fc, s as hc, f as _c, c as Zo, u as ei, J as gc, a as xc, b as Ec, m as Kt } from "./@vendor-RU8AW1bK.js";
|
9
|
+
import J, { useState as A, cloneElement as Ta, createContext as Bt, useContext as en, useMemo as ne, useEffect as O, Component as Kn, createElement as ti, useCallback as ye, useRef as X, Fragment as Ys, useReducer as Nc, createRef as cs } from "react";
|
10
10
|
import bc, { ReactComponent as Mt } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
11
11
|
import { ReactComponent as Cc } from "./assets/ic-check-square.2a3d3fb9.svg";
|
12
12
|
import { ReactComponent as Tc } from "./assets/ic-check-all.0376437d.svg";
|
@@ -21,19 +21,19 @@ import { ReactComponent as Tt } from "./assets/ic-warning.10bcf8bd.svg";
|
|
21
21
|
import { ReactComponent as jc } from "./assets/ic-cpu.8be677ee.svg";
|
22
22
|
import { ReactComponent as yc } from "./assets/ic-memory.c4159f96.svg";
|
23
23
|
import { ReactComponent as ai } from "./assets/ic-timer.b62145ec.svg";
|
24
|
-
import { Link as
|
24
|
+
import { Link as ns, useHistory as $t, NavLink as ze, useParams as et, useLocation as Ft, useRouteMatch as vt, generatePath as Xt, Switch as ri, Route as qt, Redirect as Lc } from "react-router-dom";
|
25
25
|
import { ReactComponent as wc } from "./assets/ic-delete-interactive.304dd293.svg";
|
26
|
-
import
|
26
|
+
import Qt from "yaml";
|
27
27
|
import { ReactComponent as tr } from "./assets/ic-info-filled-override.99e8094a.svg";
|
28
28
|
import { h as xe } from "./@moment-C_WeV3Af.js";
|
29
29
|
import { ReactComponent as Rc } from "./assets/ic-vulnerability-not-found.d8a4d43c.svg";
|
30
|
-
import
|
30
|
+
import Ms from "./assets/ic-page-not-found.da74a367.svg";
|
31
31
|
import Oc, { ReactComponent as oi } from "./assets/ic-mechanical-operation.08b38afd.svg";
|
32
32
|
import { ReactComponent as Pc } from "./assets/ic-clair.ba79956f.svg";
|
33
33
|
import { ReactComponent as Dc } from "./assets/ic-trivy.d5338454.svg";
|
34
34
|
import { ReactComponent as Mc } from "./assets/ic-caret-left-small.fe00c98d.svg";
|
35
|
-
import { ReactComponent as
|
36
|
-
import { ReactComponent as
|
35
|
+
import { ReactComponent as Ns } from "./assets/ic-info-outlined.f4fa3224.svg";
|
36
|
+
import { ReactComponent as Is } from "./assets/ic-error-cross.bf21e563.svg";
|
37
37
|
import { ReactComponent as ii } from "./assets/ic-success.8c8fe69d.svg";
|
38
38
|
import { ReactComponent as sr } from "./assets/ic-clock.c21a2d14.svg";
|
39
39
|
import { ReactComponent as Sa } from "./assets/ic-expand.ab992205.svg";
|
@@ -46,7 +46,7 @@ import { ReactComponent as kc } from "./assets/ic-caret-down-small.2cc24039.svg"
|
|
46
46
|
import { ReactComponent as Uc } from "./assets/ic-charts.f41e185f.svg";
|
47
47
|
import { ReactComponent as qn } from "./assets/ic-add.cfaa779b.svg";
|
48
48
|
import { ReactComponent as Bc } from "./assets/ic-k8s-job.f4414c10.svg";
|
49
|
-
import
|
49
|
+
import tn from "react-ga4";
|
50
50
|
import $c from "./assets/lifebuoy.7d8fdf27.png";
|
51
51
|
import { SliderButton as Fc } from "@typeform/embed-react";
|
52
52
|
import { ReactComponent as ui } from "./assets/ic-chat-circle-dots.e15514f8.svg";
|
@@ -56,7 +56,7 @@ import { ReactComponent as Gc } from "./assets/ic-onboarding.c98f9ef9.svg";
|
|
56
56
|
import { ReactComponent as Hc } from "./assets/ic-feedback.d32fa6b0.svg";
|
57
57
|
import { ReactComponent as Yc } from "./assets/ic-discord-fill.1a1b291d.svg";
|
58
58
|
import { ReactComponent as Wc } from "./assets/ic-file-text.f9563710.svg";
|
59
|
-
import { ReactComponent as
|
59
|
+
import { ReactComponent as As } from "./assets/ic-help-outline.9c012a0c.svg";
|
60
60
|
import { ReactComponent as Kc } from "./assets/ic-megaphone.b9f9a901.svg";
|
61
61
|
import Jn, { components as ve } from "react-select";
|
62
62
|
import { ReactComponent as mi } from "./assets/ic-arrow-square-out.1be837ac.svg";
|
@@ -68,13 +68,13 @@ import { ReactComponent as Qc } from "./assets/ic-arrow-right.f942ee03.svg";
|
|
68
68
|
import Xn from "dompurify";
|
69
69
|
import { ReactComponent as Zc } from "./assets/ic-expand-all.a0744f9f.svg";
|
70
70
|
import { ReactComponent as ed } from "./assets/ic-collapse-all.fd7b27b1.svg";
|
71
|
-
import { ReactComponent as
|
72
|
-
import td, { ReactComponent as
|
71
|
+
import { ReactComponent as es } from "./assets/ic-caret-down.1666c029.svg";
|
72
|
+
import td, { ReactComponent as js } from "./assets/ic-info-filled.4b0b46d1.svg";
|
73
73
|
import { ReactComponent as Qn } from "./assets/ic-help.39c58c34.svg";
|
74
74
|
import { ReactComponent as pi } from "./assets/ic-arrow-out.6aea09d0.svg";
|
75
75
|
import { ReactComponent as fi } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
76
76
|
import hi from "./assets/app-not-deployed.acdf0271.png";
|
77
|
-
import { ReactComponent as
|
77
|
+
import { ReactComponent as as } from "./assets/ic-error-exclamation.c224de09.svg";
|
78
78
|
import { BehaviorSubject as Zn } from "rxjs";
|
79
79
|
import { ReactComponent as sd } from "./assets/ic-errorInfo.d8d674b8.svg";
|
80
80
|
import { ReactComponent as nd } from "./assets/ic-fullscreen.b05e5087.svg";
|
@@ -95,7 +95,7 @@ import { ReactComponent as Ei } from "./assets/ic-view-variable-toggle.c335dfa0.
|
|
95
95
|
import { ReactComponent as ea } from "./assets/ic-check.27c51fa1.svg";
|
96
96
|
import { ReactComponent as fd } from "./assets/ic-stamp.8689f42d.svg";
|
97
97
|
import hd, { MonacoDiffEditor as _d } from "react-monaco-editor";
|
98
|
-
import { e as
|
98
|
+
import { e as Ls, K as gd, a as xd, m as Ed } from "./@monaco-editor-34kqzg3G.js";
|
99
99
|
import { configureMonacoYaml as Nd } from "monaco-yaml";
|
100
100
|
import "monaco-editor";
|
101
101
|
import { r as Ni, C as bd, a as Cd } from "./@react-dates-WNnwjI5S.js";
|
@@ -119,7 +119,7 @@ import { ReactComponent as Ti } from "./assets/ic-in-progress.0598554b.svg";
|
|
119
119
|
import { ReactComponent as Dd } from "./assets/ic-download.c30437cd.svg";
|
120
120
|
import Md from "./assets/ic-folder.051cd30d.svg";
|
121
121
|
import kd from "./assets/no-artifact@2x.6afc74bc.png";
|
122
|
-
import Ud, { ReactComponent as
|
122
|
+
import Ud, { ReactComponent as ys } from "./assets/ic-cross.01e03666.svg";
|
123
123
|
import { ReactComponent as Si } from "./assets/ic-arrow-counter-clockwise.01cbb0e1.svg";
|
124
124
|
import { ReactComponent as Bd } from "./assets/ic-minus.df865aaf.svg";
|
125
125
|
import { ReactComponent as $d } from "./assets/ic-enter.cab07082.svg";
|
@@ -155,12 +155,12 @@ import du, { ReactComponent as uu } from "./assets/ic-webhook.d4431b07.svg";
|
|
155
155
|
import mu from "./assets/ic-branch.8db43d66.svg";
|
156
156
|
import pu from "./assets/ic-regex.e14a4ea3.svg";
|
157
157
|
import { ReactComponent as fu } from "./assets/ic-locked.3b9eff02.svg";
|
158
|
-
const Ht = (e) => /* @__PURE__ */ t.jsx("div", { className: `dc__registry-icon dc__git-logo ${e}` }), hu = 6e4, On = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator",
|
159
|
-
APP_METRICS: `${
|
160
|
-
APP_TAGS: `${
|
161
|
-
APP_OVERVIEW_TAGS: `${
|
162
|
-
BLOB_STORAGE: `${
|
163
|
-
GLOBAL_CONFIG_BUILD_INFRA: `${
|
158
|
+
const Ht = (e) => /* @__PURE__ */ t.jsx("div", { className: `dc__registry-icon dc__git-logo ${e}` }), hu = 6e4, On = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ds = "https://docs.devtron.ai", ws = "/v/v0.7", lr = "https://discord.devtron.ai/", bs = {
|
159
|
+
APP_METRICS: `${ds}${ws}/usage/applications/app-details/app-metrics`,
|
160
|
+
APP_TAGS: `${ds}${ws}/usage/applications/create-application#tags`,
|
161
|
+
APP_OVERVIEW_TAGS: `${ds}${ws}/usage/applications/overview#manage-tags`,
|
162
|
+
BLOB_STORAGE: `${ds}${ws}/getting-started/install/installation-configuration#configuration-of-blob-storage`,
|
163
|
+
GLOBAL_CONFIG_BUILD_INFRA: `${ds}${ws}/global-configurations/build-infra`
|
164
164
|
}, Pn = {
|
165
165
|
KUBERNETES_KEY_PREFIX: /^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
|
166
166
|
KUBERNETES_KEY_NAME: /^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$/,
|
@@ -461,7 +461,7 @@ const gu = {
|
|
461
461
|
CHART_PULL: "CHART_PULL",
|
462
462
|
CHART_PUSH: "CHART_PUSH"
|
463
463
|
};
|
464
|
-
var
|
464
|
+
var Cs = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.JSON = "json", e.SHELL = "shell", e.DOCKERFILE = "dockerfile", e.PLAINTEXT = "plaintext", e))(Cs || {}), xu = /* @__PURE__ */ ((e) => (e.CONFIG = "CONFIG", e.DEPLOYMENT = "DEPLOYMENT", e.IMAGE_PROMOTION = "IMAGE-PROMOTION", e))(xu || {});
|
465
465
|
const Eu = 2147483647, _C = {
|
466
466
|
APPROVAL: "approval",
|
467
467
|
PENDING: "pending"
|
@@ -485,14 +485,14 @@ function xC(e) {
|
|
485
485
|
return `${e}th`;
|
486
486
|
}
|
487
487
|
}
|
488
|
-
const
|
488
|
+
const hn = {
|
489
489
|
AM: "AM",
|
490
490
|
PM: "PM",
|
491
491
|
MIDNIGHT: "midnight",
|
492
492
|
NOON: "noon"
|
493
493
|
}, EC = (e) => {
|
494
494
|
const [s, n] = e.split(":"), a = parseInt(s, 10), r = parseInt(n, 10);
|
495
|
-
return a === 12 && r === 0 ?
|
495
|
+
return a === 12 && r === 0 ? hn.NOON : a === 0 && r === 0 ? hn.MIDNIGHT : a >= 12 ? hn.PM : hn.AM;
|
496
496
|
};
|
497
497
|
var La = /* @__PURE__ */ ((e) => (e.inputChange = "input-change", e.selectOption = "select-option", e.deselectOption = "deselect-option", e.removeValue = "remove-value", e))(La || {});
|
498
498
|
const Vt = "0001-01-01T00:00:00Z", vi = [void 0, null, "", NaN], jr = {
|
@@ -533,7 +533,7 @@ const wa = {
|
|
533
533
|
low: 4,
|
534
534
|
unknown: 5
|
535
535
|
}, Lr = window.navigator.userAgent.toUpperCase().includes("MAC");
|
536
|
-
var
|
536
|
+
var fs = /* @__PURE__ */ ((e) => (e.GITHUB = "github", e.GITLAB = "gitlab", e.BITBUCKET = "bitbucket", e.AZURE = "azure", e.GITEA = "gitea", e))(fs || {});
|
537
537
|
const CC = (e) => JSON.stringify(JSON.parse(e ?? "{}"), null, 2);
|
538
538
|
class vu {
|
539
539
|
constructor(s) {
|
@@ -554,12 +554,12 @@ class ht extends Error {
|
|
554
554
|
this.name = `[${n.code.toString()}]`, this.message = a, this.errors = n.errors.map((r) => new vu(r)), Object.setPrototypeOf(this, ht.prototype);
|
555
555
|
}
|
556
556
|
}
|
557
|
-
var ta = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(ta || {}), qe = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(qe || {}),
|
558
|
-
const
|
557
|
+
var ta = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(ta || {}), qe = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(qe || {}), rs = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(rs || {});
|
558
|
+
const ks = {
|
559
559
|
Security: "SECURITY",
|
560
560
|
Changes: "CHANGES"
|
561
561
|
};
|
562
|
-
var Ra = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ra || {}), sa = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(sa || {}),
|
562
|
+
var Ra = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(Ra || {}), sa = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(sa || {}), Vs = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(Vs || {}), Iu = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(Iu || {}), Au = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(Au || {}), Oa = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(Oa || {}), ju = /* @__PURE__ */ ((e) => (e.PENDING_APPROVAL = "PENDING_APPROVAL", e.PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE", e.CI = "CI", e.ENVIRONMENT = "ENVIRONMENT", e.WEBHOOK = "WEBHOOK", e.LINKED_CI = "LINKED-CI", e.CI_JOB = "CI-JOB", e.LINKED_CD = "LINKED-CD", e))(ju || {}), yi = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(yi || {}), _s = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.GITOPS = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux", e))(_s || {}), yu = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(yu || {}), In = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(In || {}), Pa = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(Pa || {}), Ws = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(Ws || {}), Da = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(Da || {});
|
563
563
|
const wr = {
|
564
564
|
100: "Continue",
|
565
565
|
101: "Switching Protocols",
|
@@ -669,7 +669,11 @@ async function Ru(e, s, n, a, r = !1, o) {
|
|
669
669
|
{ code: 401, internalMessage: "Please login again", userMessage: "Please login again" }
|
670
670
|
]
|
671
671
|
});
|
672
|
-
return Lu(),
|
672
|
+
return Lu(), await new Promise((u) => {
|
673
|
+
setTimeout(() => {
|
674
|
+
u({ code: 401, status: "Unauthorized", result: [] });
|
675
|
+
}, 1e3);
|
676
|
+
});
|
673
677
|
} else {
|
674
678
|
if (i.status >= 300 && i.status <= 599)
|
675
679
|
return await wu(c, i);
|
@@ -694,7 +698,7 @@ async function Ru(e, s, n, a, r = !1, o) {
|
|
694
698
|
}
|
695
699
|
);
|
696
700
|
}
|
697
|
-
function
|
701
|
+
function sn(e, s, n, a, r) {
|
698
702
|
const o = a?.abortControllerRef?.current ?? new AbortController(), l = a?.abortControllerRef?.current?.signal || a?.signal || o.signal, i = new Promise((c, u) => {
|
699
703
|
const d = window?._env_?.GLOBAL_API_TIMEOUT || hu, m = a?.timeout ? a.timeout : d;
|
700
704
|
setTimeout(() => {
|
@@ -727,12 +731,12 @@ function tn(e, s, n, a, r) {
|
|
727
731
|
});
|
728
732
|
});
|
729
733
|
}
|
730
|
-
const Gt = (e, s, n, a) =>
|
734
|
+
const Gt = (e, s, n, a) => sn(e, "POST", s, n, a), Ou = (e, s, n) => sn(e, "PUT", s, n), TC = (e, s, n) => sn(e, "PATCH", s, n), ae = (e, s) => sn(e, "GET", null, s), Li = (e, s, n) => sn(e, "DELETE", s, n), wi = (e, s) => (s.current.abort(), s.current = new AbortController(), e()), ts = (e) => (
|
731
735
|
// The 0 code is common for aborted and blocked requests
|
732
736
|
e && e.code === 0 && e.message.search("abort|aborted") > -1
|
733
737
|
);
|
734
|
-
var Pu = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(Pu || {}), q = /* @__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))(q || {}), Ma = /* @__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))(Ma || {}), Du = /* @__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))(Du || {}),
|
735
|
-
const
|
738
|
+
var Pu = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(Pu || {}), q = /* @__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))(q || {}), Ma = /* @__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))(Ma || {}), Du = /* @__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))(Du || {}), Ks = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(Ks || {}), us = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(us || {}), Mu = /* @__PURE__ */ ((e) => (e.REQUEST = "request", e.PENDING = "pending", e))(Mu || {}), ku = /* @__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))(ku || {}), Uu = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(Uu || {}), Ri = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(Ri || {}), He = /* @__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))(He || {}), cr = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(cr || {}), Bu = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e))(Bu || {}), zs = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(zs || {}), pt = /* @__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))(pt || {}), $u = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))($u || {}), Fu = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(Fu || {}), An = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(An || {}), Vu = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))(Vu || {}), Oi = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(Oi || {}), Gu = /* @__PURE__ */ ((e) => (e.KEY = "key", e.VALUE = "value", e))(Gu || {}), Hu = /* @__PURE__ */ ((e) => (e.DEVTRON_APPS = "devtron-app", e.HELM_APPS = "helm-app", e.JOBS = "", e))(Hu || {}), Yu = /* @__PURE__ */ ((e) => (e.CHART_GROUP = "chart-group", e.DIRECT = "apps", e.JOB = "jobs", e.DOCKER = "docker", e.GIT = "git", e.CLUSTER = "cluster", e.NOTIFICATION = "notification", e))(Yu || {});
|
739
|
+
const _n = {
|
736
740
|
PROGRESSING: "Progressing",
|
737
741
|
DEGRADED: "Degraded",
|
738
742
|
FAILED: "Failed"
|
@@ -755,8 +759,8 @@ const hn = {
|
|
755
759
|
NOTIFICATION: "notifier",
|
756
760
|
SECURITY_TRIVY: "security.trivy",
|
757
761
|
SECURITY_CLAIR: "security.clair"
|
758
|
-
}, Di = "ddd DD MMM YYYY HH:mm:ss",
|
759
|
-
var qu = /* @__PURE__ */ ((e) => (e.add = "add", e.replace = "replace", e.remove = "remove", e))(qu || {}),
|
762
|
+
}, Di = "ddd DD MMM YYYY HH:mm:ss", qs = "API-TOKEN:", zu = "••••••••";
|
763
|
+
var qu = /* @__PURE__ */ ((e) => (e.add = "add", e.replace = "replace", e.remove = "remove", e))(qu || {}), Gs = /* @__PURE__ */ ((e) => (e.PRE = "PRE", e.DEPLOY = "DEPLOY", e.POST = "POST", e))(Gs || {}), Ju = /* @__PURE__ */ ((e) => (e.LAST_SAVED_CONFIG = "LAST_SAVED_CONFIG", e.LATEST_TRIGGER_CONFIG = "LATEST_TRIGGER_CONFIG", e.SPECIFIC_TRIGGER_CONFIG = "SPECIFIC_TRIGGER_CONFIG", e))(Ju || {}), ka = /* @__PURE__ */ ((e) => (e.production = "Production", e.nonProduction = "Non-Production", e))(ka || {}), V = /* @__PURE__ */ ((e) => (e.DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED", e.GIT_COMMIT = "GIT_COMMIT", e.GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED", e.ARGOCD_SYNC = "ARGOCD_SYNC", e.ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED", e.KUBECTL_APPLY = "KUBECTL_APPLY", e.KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED", e.KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED", e.HEALTHY = "HEALTHY", e.APP_HEALTH = "APP_HEALTH", e.DEPLOYMENT_FAILED = "FAILED", e.FETCH_TIMED_OUT = "TIMED_OUT", e.UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS", e.DEGRADED = "DEGRADED", e.DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED", e.ABORTED = "ABORTED", e.INPROGRESS = "INPROGRESS", e.HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED", e))(V || {});
|
760
764
|
const Se = {
|
761
765
|
DATA_NOT_AVAILABLE: "Data not available",
|
762
766
|
API_TOKEN: {
|
@@ -952,7 +956,7 @@ const Se = {
|
|
952
956
|
DISPLAY_NAME: "Secret",
|
953
957
|
VALUE: "secret"
|
954
958
|
}
|
955
|
-
},
|
959
|
+
}, gn = {
|
956
960
|
[nt.SECRET.DISPLAY_NAME]: {
|
957
961
|
"": "Kubernetes Secret",
|
958
962
|
KubernetesSecret: "Kubernetes External Secret",
|
@@ -1184,7 +1188,7 @@ const lm = {
|
|
1184
1188
|
onClick: a,
|
1185
1189
|
...r
|
1186
1190
|
}) => e === Ba.link ? /* @__PURE__ */ t.jsx(
|
1187
|
-
|
1191
|
+
ns,
|
1188
1192
|
{
|
1189
1193
|
...s,
|
1190
1194
|
...r,
|
@@ -1254,7 +1258,7 @@ const lm = {
|
|
1254
1258
|
]
|
1255
1259
|
}
|
1256
1260
|
) }) });
|
1257
|
-
},
|
1261
|
+
}, os = ({
|
1258
1262
|
reload: e,
|
1259
1263
|
withBorder: s = !1,
|
1260
1264
|
title: n = "Failed to load",
|
@@ -1264,7 +1268,7 @@ const lm = {
|
|
1264
1268
|
rootClassName: l,
|
1265
1269
|
useInfoIcon: i = !1
|
1266
1270
|
}) => /* @__PURE__ */ t.jsxs("div", { className: `flex column dc__gap-8 p-16 ${s ? "dc__border br-4" : ""} ${l || ""}`, children: [
|
1267
|
-
i ? /* @__PURE__ */ t.jsx(Qd, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(
|
1271
|
+
i ? /* @__PURE__ */ t.jsx(Qd, { className: "icon-dim-24" }) : /* @__PURE__ */ t.jsx(as, { className: "icon-dim-24 alert-icon-r5-imp" }),
|
1268
1272
|
/* @__PURE__ */ t.jsxs("div", { className: "flex column dc__gap-4 dc__align-center", children: [
|
1269
1273
|
/* @__PURE__ */ t.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: n }),
|
1270
1274
|
(a || r) && /* @__PURE__ */ t.jsxs("div", { className: "flex column fs-13 lh-20 fw-4 cn-7", children: [
|
@@ -1296,7 +1300,7 @@ const lm = {
|
|
1296
1300
|
genericSectionErrorProps: i,
|
1297
1301
|
errorScreenManagerProps: c,
|
1298
1302
|
children: u
|
1299
|
-
}) => r ? /* @__PURE__ */ t.jsx(Bx, {}) : e ? n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: n }) : /* @__PURE__ */ t.jsx(Ie, { ...s }) : a ? i ? /* @__PURE__ */ t.jsx(
|
1303
|
+
}) => r ? /* @__PURE__ */ t.jsx(Bx, {}) : e ? n ? /* @__PURE__ */ t.jsx(t.Fragment, { children: n }) : /* @__PURE__ */ t.jsx(Ie, { ...s }) : a ? i ? /* @__PURE__ */ t.jsx(os, { ...i }) : c ? /* @__PURE__ */ t.jsx(ia, { ...c }) : a?.code === 404 ? /* @__PURE__ */ t.jsx(
|
1300
1304
|
Ye,
|
1301
1305
|
{
|
1302
1306
|
title: o?.title ?? Mr.title,
|
@@ -1582,7 +1586,7 @@ const lm = {
|
|
1582
1586
|
}
|
1583
1587
|
);
|
1584
1588
|
};
|
1585
|
-
var Em = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(Em || {}),
|
1589
|
+
var Em = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(Em || {}), Us = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))(Us || {}), Nm = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(Nm || {}), bm = /* @__PURE__ */ ((e) => (e.Internal = "", e.KubernetesConfigMap = "KubernetesConfigMap", e.KubernetesSecret = "KubernetesSecret", e.AWSSecretsManager = "AWSSecretsManager", e.AWSSystemManager = "AWSSystemManager", e.HashiCorpVault = "HashiCorpVault", e.ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager", e.ESO_AWSSecretsManager = "ESO_AWSSecretsManager", e.ESO_AzureSecretsManager = "ESO_AzureSecretsManager", e.ESO_HashiCorpVault = "ESO_HashiCorpVault", e))(bm || {}), _t = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(_t || {}), $a = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))($a || {}), Me = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(Me || {});
|
1586
1590
|
const Hi = (e) => {
|
1587
1591
|
const s = (e?.ciMaterials ?? []).map((n, a) => ({
|
1588
1592
|
id: n.id,
|
@@ -1593,7 +1597,7 @@ const Hi = (e) => {
|
|
1593
1597
|
value: n.value || "",
|
1594
1598
|
active: n.active || !1,
|
1595
1599
|
history: n.history.map((r, o) => ({
|
1596
|
-
commitURL: n.url ?
|
1600
|
+
commitURL: n.url ? cn(n.url, r.Commit) : "",
|
1597
1601
|
commit: r.Commit || "",
|
1598
1602
|
author: r.Author || "",
|
1599
1603
|
date: Hn(r.Date, !1),
|
@@ -1669,7 +1673,7 @@ const Im = {
|
|
1669
1673
|
closeButton: ({ closeToast: e }) => /* @__PURE__ */ t.jsx("div", { className: "custom-toast__close-btn", children: /* @__PURE__ */ t.jsx(
|
1670
1674
|
ct,
|
1671
1675
|
{
|
1672
|
-
icon: /* @__PURE__ */ t.jsx(
|
1676
|
+
icon: /* @__PURE__ */ t.jsx(ys, { className: "fcn-0" }),
|
1673
1677
|
onClick: e,
|
1674
1678
|
dataTestId: "close-toast",
|
1675
1679
|
ariaLabel: "Close toast",
|
@@ -1681,7 +1685,7 @@ const Im = {
|
|
1681
1685
|
) })
|
1682
1686
|
}, Am = {
|
1683
1687
|
[be.info]: {
|
1684
|
-
icon: /* @__PURE__ */ t.jsx(
|
1688
|
+
icon: /* @__PURE__ */ t.jsx(js, {}),
|
1685
1689
|
type: "info",
|
1686
1690
|
title: "Information",
|
1687
1691
|
progressBarBg: "var(--B500)"
|
@@ -1729,8 +1733,8 @@ const Im = {
|
|
1729
1733
|
}
|
1730
1734
|
)
|
1731
1735
|
] });
|
1732
|
-
var
|
1733
|
-
const
|
1736
|
+
var Es;
|
1737
|
+
const Jt = class Jt {
|
1734
1738
|
constructor() {
|
1735
1739
|
/**
|
1736
1740
|
* Handler for showing the toast
|
@@ -1771,19 +1775,19 @@ const qt = class qt {
|
|
1771
1775
|
Ge(this, "isToastActive", ua.isActive);
|
1772
1776
|
}
|
1773
1777
|
static get instance() {
|
1774
|
-
return da(
|
1778
|
+
return da(Jt, Es) || Cr(Jt, Es, new Jt()), da(Jt, Es);
|
1775
1779
|
}
|
1776
1780
|
};
|
1777
|
-
|
1778
|
-
br(
|
1779
|
-
let Fa =
|
1781
|
+
Es = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
1782
|
+
br(Jt, Es);
|
1783
|
+
let Fa = Jt;
|
1780
1784
|
const DC = () => /* @__PURE__ */ t.jsx(uc, { ...Im }), Ue = Fa.instance;
|
1781
1785
|
var ke = /* @__PURE__ */ ((e) => (e.CLEAR_ALL_SELECTIONS = "CLEAR_ALL_SELECTIONS", e.CLEAR_IDENTIFIERS = "CLEAR_IDENTIFIERS", e.SELECT_ALL_ACROSS_PAGES = "SELECT_ALL_ACROSS_PAGES", e.SELECT_ALL_ON_PAGE = "SELECT_ALL_ON_PAGE", e.SELECT_IDENTIFIER = "SELECT_IDENTIFIER", e.CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION = "CLEAR_IDENTIFIERS_AFTER_ACROSS_SELECTION", e.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES = "CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES", e))(ke || {}), Yi = /* @__PURE__ */ ((e) => (e.OPEN = "OPEN", e.CLOSED = "CLOSED", e))(Yi || {});
|
1782
1786
|
const ym = "bulk-selection-pop-up-menu", ma = {
|
1783
1787
|
[ke.SELECT_ALL_ON_PAGE]: "All on this page",
|
1784
1788
|
[ke.SELECT_ALL_ACROSS_PAGES]: "All across pages",
|
1785
1789
|
[ke.CLEAR_ALL_SELECTIONS]: "Clear selection(s)"
|
1786
|
-
},
|
1790
|
+
}, Rs = "*", Lm = (e) => `Invalid action ${e} passed to useBulkSelection`, wm = "useBulkSelection must be used within BulkSelectionContext", kr = "Selections on other pages are cleared", Wi = Bt({
|
1787
1791
|
selectedIdentifiers: {},
|
1788
1792
|
handleBulkSelection: Qe,
|
1789
1793
|
isChecked: !1,
|
@@ -1792,7 +1796,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1792
1796
|
setIdentifiers: Qe,
|
1793
1797
|
getSelectedIdentifiersCount: Qe
|
1794
1798
|
}), Rm = () => {
|
1795
|
-
const e =
|
1799
|
+
const e = en(Wi);
|
1796
1800
|
if (!e)
|
1797
1801
|
throw new Error(wm);
|
1798
1802
|
return e;
|
@@ -1805,14 +1809,14 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1805
1809
|
Ja(() => {
|
1806
1810
|
s && l(s);
|
1807
1811
|
}, [s]);
|
1808
|
-
const i = a[
|
1812
|
+
const i = a[Rs], c = () => Object.keys(a).length, u = (f, E) => {
|
1809
1813
|
const N = JSON.parse(JSON.stringify(f));
|
1810
1814
|
E.forEach((C) => {
|
1811
1815
|
delete N[C];
|
1812
1816
|
}), r(N);
|
1813
1817
|
}, d = (f) => {
|
1814
1818
|
const E = JSON.parse(JSON.stringify(a));
|
1815
|
-
i && delete E[
|
1819
|
+
i && delete E[Rs], r({
|
1816
1820
|
...E,
|
1817
1821
|
...f
|
1818
1822
|
});
|
@@ -1837,17 +1841,17 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1837
1841
|
if (i || c() > 0 && n() === Yi.OPEN)
|
1838
1842
|
return;
|
1839
1843
|
r({
|
1840
|
-
[
|
1844
|
+
[Rs]: !0
|
1841
1845
|
});
|
1842
1846
|
break;
|
1843
1847
|
}
|
1844
1848
|
case ke.CLEAR_SELECTIONS_AND_SELECT_ALL_ACROSS_PAGES:
|
1845
1849
|
r({
|
1846
|
-
[
|
1850
|
+
[Rs]: !0
|
1847
1851
|
});
|
1848
1852
|
break;
|
1849
1853
|
case ke.SELECT_ALL_ON_PAGE: {
|
1850
|
-
a[
|
1854
|
+
a[Rs] && Ue.showToast({
|
1851
1855
|
variant: be.info,
|
1852
1856
|
description: kr
|
1853
1857
|
}), d(o);
|
@@ -1931,7 +1935,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1931
1935
|
disabled: s,
|
1932
1936
|
children: [
|
1933
1937
|
/* @__PURE__ */ t.jsx(
|
1934
|
-
|
1938
|
+
is,
|
1935
1939
|
{
|
1936
1940
|
isChecked: a,
|
1937
1941
|
onChange: Qe,
|
@@ -1978,7 +1982,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1978
1982
|
}, m = () => r ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__info flex left fs-13 dc__gap-8", children: [
|
1979
1983
|
/* @__PURE__ */ t.jsx(Ic, { className: "icon-dim-16 scn-6" }),
|
1980
1984
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4", children: r })
|
1981
|
-
] }) : null, p = () => !o || !l ? null : o ===
|
1985
|
+
] }) : null, p = () => !o || !l ? null : o === Ks.system ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__deployed-by flex left", children: [
|
1982
1986
|
/* @__PURE__ */ t.jsx(Ac, { className: "icon-dim-16 mr-6" }),
|
1983
1987
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4", children: "Auto triggered" })
|
1984
1988
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "material-history__deployed-by flex left", children: [
|
@@ -1987,7 +1991,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
1987
1991
|
{
|
1988
1992
|
className: "flex fs-13 fw-6 lh-18 icon-dim-20 mr-6 cn-0 m-auto dc__border-transparent dc__uppercase dc__border-radius-50-per",
|
1989
1993
|
style: {
|
1990
|
-
backgroundColor:
|
1994
|
+
backgroundColor: mn(o)
|
1991
1995
|
},
|
1992
1996
|
children: o[0]
|
1993
1997
|
}
|
@@ -2026,7 +2030,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
2026
2030
|
stateClassName: ""
|
2027
2031
|
};
|
2028
2032
|
}
|
2029
|
-
},
|
2033
|
+
}, Os = ({ envStateText: e, title: s, tooltipContent: n }) => {
|
2030
2034
|
const { Icon: a, stateClassName: r } = Dm(e), o = (l) => /* @__PURE__ */ t.jsx(Q, { content: n, className: "default-tt", placement: "top", arrow: !1, interactive: !0, children: l });
|
2031
2035
|
return /* @__PURE__ */ t.jsx(dt, { condition: !!n, wrap: o, children: /* @__PURE__ */ t.jsx("div", { className: `${r} br-4 cn-9 pt-3 pb-3 pl-6 pr-6 bw-1 mr-6`, children: /* @__PURE__ */ t.jsxs("span", { className: "fw-4 fs-11 lh-16 flex", children: [
|
2032
2036
|
a,
|
@@ -2049,7 +2053,7 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
2049
2053
|
if (c?.length) {
|
2050
2054
|
const p = c.length === 1 ? c[0] : `${c.length} environments`;
|
2051
2055
|
return /* @__PURE__ */ t.jsx(
|
2052
|
-
|
2056
|
+
Os,
|
2053
2057
|
{
|
2054
2058
|
envStateText: d(),
|
2055
2059
|
title: p,
|
@@ -2058,17 +2062,17 @@ const ym = "bulk-selection-pop-up-menu", ma = {
|
|
2058
2062
|
);
|
2059
2063
|
}
|
2060
2064
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
2061
|
-
e && a && /* @__PURE__ */ t.jsx(
|
2062
|
-
s && r && /* @__PURE__ */ t.jsx(
|
2065
|
+
e && a && /* @__PURE__ */ t.jsx(Os, { envStateText: d(), title: a }),
|
2066
|
+
s && r && /* @__PURE__ */ t.jsx(Os, { envStateText: d(), title: r })
|
2063
2067
|
] });
|
2064
2068
|
};
|
2065
2069
|
return o !== Wu.CD ? e || u ? /* @__PURE__ */ t.jsxs("div", { className: "bcn-0 pb-8 br-4 flex left dc__gap-8", children: [
|
2066
2070
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
2067
2071
|
u
|
2068
|
-
] }) : null : e || s || Object.values(
|
2072
|
+
] }) : null : e || s || Object.values(_n).includes(n) || l || c?.length || u ? /* @__PURE__ */ t.jsxs("div", { className: "bcn-0 pb-8 br-4 flex left", children: [
|
2069
2073
|
m(),
|
2070
|
-
n ===
|
2071
|
-
(n ===
|
2074
|
+
n === _n.PROGRESSING && /* @__PURE__ */ t.jsx(Os, { envStateText: Rt.DEPLOYING, title: a }),
|
2075
|
+
(n === _n.DEGRADED || n === _n.FAILED) && /* @__PURE__ */ t.jsx(Os, { envStateText: Rt.FAILED, title: a }),
|
2072
2076
|
l && /* @__PURE__ */ t.jsx(
|
2073
2077
|
Za,
|
2074
2078
|
{
|
@@ -2294,8 +2298,8 @@ const Fm = {
|
|
2294
2298
|
K.FAILURES,
|
2295
2299
|
K.EXCEPTIONS,
|
2296
2300
|
K.SUCCESSES
|
2297
|
-
],
|
2298
|
-
image:
|
2301
|
+
], nn = Mn.DESC, dr = {
|
2302
|
+
image: Ms,
|
2299
2303
|
title: "Scan failed",
|
2300
2304
|
subTitle: "Error: Security scan failed"
|
2301
2305
|
}, Un = {
|
@@ -2314,7 +2318,7 @@ const Fm = {
|
|
2314
2318
|
value: e[s]
|
2315
2319
|
}
|
2316
2320
|
).filter((s) => !!s)
|
2317
|
-
),
|
2321
|
+
), an = (e) => e && Object.keys(e).sort(
|
2318
2322
|
(s, n) => kn.indexOf(s) - kn.indexOf(n)
|
2319
2323
|
).map((s) => `${e[s]} ${st[s].label}`).join(", "), Ur = (e) => ({
|
2320
2324
|
[K.UNKNOWN]: 1,
|
@@ -2325,7 +2329,7 @@ const Fm = {
|
|
2325
2329
|
[K.FAILURES]: 6,
|
2326
2330
|
[K.EXCEPTIONS]: 7,
|
2327
2331
|
[K.SUCCESSES]: 8
|
2328
|
-
})[e] || 1e4,
|
2332
|
+
})[e] || 1e4, rn = (e, s) => Ur(e) - Ur(s), $C = (e) => {
|
2329
2333
|
const s = e[ce.IMAGE_SCAN].vulnerability?.summary?.severities, n = e[ce.CODE_SCAN].vulnerability?.summary?.severities;
|
2330
2334
|
return {
|
2331
2335
|
critical: (s?.CRITICAL || 0) + (n?.CRITICAL || 0),
|
@@ -2340,15 +2344,15 @@ const Fm = {
|
|
2340
2344
|
children: /* @__PURE__ */ t.jsx("span", { className: "flex dc__border-radius-24 bcn-0 pl-16 pr-16 pt-8 pb-8 en-1 bw-1", children: /* @__PURE__ */ t.jsx(aa, { scanToolId: e }) })
|
2341
2345
|
}), Gm = (e, s) => e.toString().localeCompare(s.toString()), zi = (e) => {
|
2342
2346
|
switch (e.toLowerCase()) {
|
2343
|
-
case
|
2347
|
+
case us.HIGH:
|
2344
2348
|
return K.HIGH;
|
2345
|
-
case
|
2349
|
+
case us.UNKNOWN:
|
2346
2350
|
return K.UNKNOWN;
|
2347
|
-
case
|
2351
|
+
case us.MEDIUM:
|
2348
2352
|
return K.MEDIUM;
|
2349
|
-
case
|
2353
|
+
case us.LOW:
|
2350
2354
|
return K.LOW;
|
2351
|
-
case
|
2355
|
+
case us.CRITICAL:
|
2352
2356
|
return K.CRITICAL;
|
2353
2357
|
default:
|
2354
2358
|
return null;
|
@@ -2590,7 +2594,7 @@ const Fm = {
|
|
2590
2594
|
n && /* @__PURE__ */ t.jsx(aa, { scanToolId: n, fontSize: 12, spacingBetweenTextAndIcon: 8 })
|
2591
2595
|
] })
|
2592
2596
|
] })
|
2593
|
-
] }),
|
2597
|
+
] }), on = ({
|
2594
2598
|
children: e,
|
2595
2599
|
detailViewData: s,
|
2596
2600
|
setDetailViewData: n
|
@@ -2600,7 +2604,7 @@ const Fm = {
|
|
2600
2604
|
};
|
2601
2605
|
return /* @__PURE__ */ t.jsx("button", { type: "button", className: "dc__unset-button-styles dc__align-left", onClick: a, children: e });
|
2602
2606
|
}, qm = ({ href: e }) => /* @__PURE__ */ t.jsx("div", { className: "flex flex-grow-1", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 dc__align-items-center fs-13 fw-6", children: [
|
2603
|
-
/* @__PURE__ */ t.jsx(
|
2607
|
+
/* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-24 fcn-3" }),
|
2604
2608
|
/* @__PURE__ */ t.jsx("span", { children: "Code snippet is not available" }),
|
2605
2609
|
e && /* @__PURE__ */ t.jsx("a", { href: e, rel: "noopener noreferrer", target: "_blank", children: "Go to file" })
|
2606
2610
|
] }) }), qi = ({ title: e, lines: s, link: n }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch bcn-0 dc__outline dc__border-radius-4-imp", children: [
|
@@ -2625,8 +2629,8 @@ const Fm = {
|
|
2625
2629
|
headerText: "severity",
|
2626
2630
|
isSortable: !0,
|
2627
2631
|
width: 100,
|
2628
|
-
compareFunc:
|
2629
|
-
defaultSortOrder:
|
2632
|
+
compareFunc: rn,
|
2633
|
+
defaultSortOrder: nn
|
2630
2634
|
},
|
2631
2635
|
{ headerText: "package", isSortable: !0, width: 143.33 },
|
2632
2636
|
{ headerText: "current version", isSortable: !1, width: 143.33 },
|
@@ -2681,8 +2685,8 @@ const Fm = {
|
|
2681
2685
|
headerText: "severity",
|
2682
2686
|
isSortable: !0,
|
2683
2687
|
width: 100,
|
2684
|
-
compareFunc:
|
2685
|
-
defaultSortOrder:
|
2688
|
+
compareFunc: rn,
|
2689
|
+
defaultSortOrder: nn
|
2686
2690
|
},
|
2687
2691
|
{ headerText: "license", isSortable: !1, width: 150 },
|
2688
2692
|
{ headerText: "source", isSortable: !0, width: 296 }
|
@@ -2728,8 +2732,8 @@ const Fm = {
|
|
2728
2732
|
headerText: "severity",
|
2729
2733
|
isSortable: !0,
|
2730
2734
|
width: 100,
|
2731
|
-
compareFunc:
|
2732
|
-
defaultSortOrder:
|
2735
|
+
compareFunc: rn,
|
2736
|
+
defaultSortOrder: nn
|
2733
2737
|
},
|
2734
2738
|
{ headerText: "id", isSortable: !1, width: 100 }
|
2735
2739
|
],
|
@@ -2794,7 +2798,7 @@ const Fm = {
|
|
2794
2798
|
cells: [
|
2795
2799
|
{
|
2796
2800
|
component: /* @__PURE__ */ t.jsx(
|
2797
|
-
|
2801
|
+
on,
|
2798
2802
|
{
|
2799
2803
|
detailViewData: ep(
|
2800
2804
|
o,
|
@@ -2809,7 +2813,7 @@ const Fm = {
|
|
2809
2813
|
cellContent: o.filePath
|
2810
2814
|
},
|
2811
2815
|
{
|
2812
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
2816
|
+
component: /* @__PURE__ */ t.jsx("span", { children: an(o.misConfSummary.status) }),
|
2813
2817
|
cellContent: o.misConfSummary.status
|
2814
2818
|
},
|
2815
2819
|
{
|
@@ -2827,8 +2831,8 @@ const Fm = {
|
|
2827
2831
|
headerText: "severity",
|
2828
2832
|
isSortable: !0,
|
2829
2833
|
width: 100,
|
2830
|
-
compareFunc:
|
2831
|
-
defaultSortOrder:
|
2834
|
+
compareFunc: rn,
|
2835
|
+
defaultSortOrder: nn
|
2832
2836
|
},
|
2833
2837
|
{ headerText: "category", isSortable: !0, width: 150 }
|
2834
2838
|
],
|
@@ -2873,7 +2877,7 @@ const Fm = {
|
|
2873
2877
|
cells: [
|
2874
2878
|
{
|
2875
2879
|
component: /* @__PURE__ */ t.jsx(
|
2876
|
-
|
2880
|
+
on,
|
2877
2881
|
{
|
2878
2882
|
detailViewData: tp(
|
2879
2883
|
o,
|
@@ -2888,7 +2892,7 @@ const Fm = {
|
|
2888
2892
|
cellContent: o.filePath
|
2889
2893
|
},
|
2890
2894
|
{
|
2891
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
2895
|
+
component: /* @__PURE__ */ t.jsx("span", { children: an(o.summary.severities) }),
|
2892
2896
|
cellContent: o.summary.severities
|
2893
2897
|
}
|
2894
2898
|
]
|
@@ -3012,7 +3016,7 @@ const Fm = {
|
|
3012
3016
|
cells: [
|
3013
3017
|
{
|
3014
3018
|
component: /* @__PURE__ */ t.jsx(
|
3015
|
-
|
3019
|
+
on,
|
3016
3020
|
{
|
3017
3021
|
detailViewData: {
|
3018
3022
|
...Va({
|
@@ -3030,7 +3034,7 @@ const Fm = {
|
|
3030
3034
|
cellContent: r.source
|
3031
3035
|
},
|
3032
3036
|
{
|
3033
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
3037
|
+
component: /* @__PURE__ */ t.jsx("span", { children: an(r.summary.severities) }),
|
3034
3038
|
cellContent: r.summary.severities
|
3035
3039
|
}
|
3036
3040
|
]
|
@@ -3044,7 +3048,7 @@ const Fm = {
|
|
3044
3048
|
case "Completed":
|
3045
3049
|
return /* @__PURE__ */ t.jsx(ii, { className: "icon-dim-16 dc__no-shrink" });
|
3046
3050
|
case "Failed":
|
3047
|
-
return /* @__PURE__ */ t.jsx(
|
3051
|
+
return /* @__PURE__ */ t.jsx(Is, { className: "icon-dim-16 ic-error-cross-red dc__no-shrink" });
|
3048
3052
|
case "Progressing":
|
3049
3053
|
return /* @__PURE__ */ t.jsx(
|
3050
3054
|
Ie,
|
@@ -3071,7 +3075,7 @@ const Fm = {
|
|
3071
3075
|
cells: [
|
3072
3076
|
{
|
3073
3077
|
component: /* @__PURE__ */ t.jsx(
|
3074
|
-
|
3078
|
+
on,
|
3075
3079
|
{
|
3076
3080
|
detailViewData: ip(a, s, n),
|
3077
3081
|
setDetailViewData: s,
|
@@ -3082,7 +3086,7 @@ const Fm = {
|
|
3082
3086
|
},
|
3083
3087
|
{
|
3084
3088
|
component: null,
|
3085
|
-
cellContent:
|
3089
|
+
cellContent: an(a.summary.severities) || (a.status === "Completed" ? "No vulnerability found" : "-")
|
3086
3090
|
},
|
3087
3091
|
{
|
3088
3092
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -3102,8 +3106,8 @@ const Fm = {
|
|
3102
3106
|
headerText: "severity",
|
3103
3107
|
isSortable: !0,
|
3104
3108
|
width: 100,
|
3105
|
-
compareFunc:
|
3106
|
-
defaultSortOrder:
|
3109
|
+
compareFunc: rn,
|
3110
|
+
defaultSortOrder: nn
|
3107
3111
|
},
|
3108
3112
|
{ headerText: "license", isSortable: !1, width: 150 },
|
3109
3113
|
{ headerText: "package", isSortable: !0, width: 296 }
|
@@ -3147,7 +3151,7 @@ const Fm = {
|
|
3147
3151
|
cells: [
|
3148
3152
|
{
|
3149
3153
|
component: /* @__PURE__ */ t.jsx(
|
3150
|
-
|
3154
|
+
on,
|
3151
3155
|
{
|
3152
3156
|
detailViewData: cp(n),
|
3153
3157
|
setDetailViewData: s,
|
@@ -3158,7 +3162,7 @@ const Fm = {
|
|
3158
3162
|
},
|
3159
3163
|
{
|
3160
3164
|
component: null,
|
3161
|
-
cellContent:
|
3165
|
+
cellContent: an(n.summary.severities) || (n.status === "Completed" ? "No license risk found" : "-")
|
3162
3166
|
},
|
3163
3167
|
{
|
3164
3168
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -3453,7 +3457,7 @@ const Fm = {
|
|
3453
3457
|
] }), C = () => {
|
3454
3458
|
const x = bp(p, d.category, d.subCategory, f);
|
3455
3459
|
if (x)
|
3456
|
-
return /* @__PURE__ */ t.jsx(Ye, { ...x, imageType:
|
3460
|
+
return /* @__PURE__ */ t.jsx(Ye, { ...x, imageType: rs.Large });
|
3457
3461
|
const { headers: v, rows: I, defaultSortIndex: T, hasExpandableRows: S } = f || Ep(p, d.category, d.subCategory, _, u), { entities: j, lastScanTimeString: P, scanToolId: L } = f || Np(p, d.category, d.subCategory);
|
3458
3462
|
return /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
|
3459
3463
|
j?.length ? /* @__PURE__ */ t.jsx(zm, { entities: j, lastScanTimeString: P, scanToolId: L }) : null,
|
@@ -3584,7 +3588,7 @@ const Fm = {
|
|
3584
3588
|
)
|
3585
3589
|
] });
|
3586
3590
|
};
|
3587
|
-
var R = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e))(R || {}),
|
3591
|
+
var R = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e))(R || {}), ss = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(ss || {}), jn = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e))(jn || {}), zt = /* @__PURE__ */ ((e) => (e.ACTIVATE_CPU = "activate_cpu", e.DE_ACTIVATE_CPU = "de_activate_cpu", e.ACTIVATE_MEMORY = "activate_memory", e.DE_ACTIVATE_MEMORY = "de_activate_memory", e.ACTIVATE_BUILD_TIMEOUT = "activate_timeout", e.DE_ACTIVATE_BUILD_TIMEOUT = "de_activate_timeout", e))(zt || {});
|
3588
3592
|
const HC = {
|
3589
3593
|
timeout: "timeout",
|
3590
3594
|
cpu_limit: "cpu",
|
@@ -3594,7 +3598,7 @@ const HC = {
|
|
3594
3598
|
/* MEMORY */
|
3595
3599
|
};
|
3596
3600
|
var el = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(el || {});
|
3597
|
-
const
|
3601
|
+
const Ts = {
|
3598
3602
|
// Will not enforce any decimal specification on input field
|
3599
3603
|
STEP: "any",
|
3600
3604
|
MIN: 0,
|
@@ -3617,8 +3621,8 @@ const Cs = {
|
|
3617
3621
|
VALIDATE_REQUEST_LIMIT: {
|
3618
3622
|
REQUEST_LESS_THAN_LIMIT: "Request should be less than or equal to limit.",
|
3619
3623
|
CAN_NOT_COMPUTE: "Request and limit value diff are too high to validate.",
|
3620
|
-
REQUEST_DECIMAL_PLACES: `Request should be upto ${
|
3621
|
-
LIMIT_DECIMAL_PLACES: `Limit should be upto ${
|
3624
|
+
REQUEST_DECIMAL_PLACES: `Request should be upto ${Ts.DECIMAL_PLACES} decimal places.`,
|
3625
|
+
LIMIT_DECIMAL_PLACES: `Limit should be upto ${Ts.DECIMAL_PLACES} decimal places.`
|
3622
3626
|
},
|
3623
3627
|
getInvalidActionMessage: (e) => `Invalid action type: ${e}`,
|
3624
3628
|
getSubmitSuccessMessage: (e, s) => `${e} profile is ${s ? "updated" : "created"}`,
|
@@ -3683,8 +3687,8 @@ const Cs = {
|
|
3683
3687
|
locator: jn.BUILD_TIMEOUT
|
3684
3688
|
}
|
3685
3689
|
], Ga = Object.fromEntries(
|
3686
|
-
Object.values({ ...R, ...
|
3687
|
-
), vp = [
|
3690
|
+
Object.values({ ...R, ...ss }).map((e) => [e, null])
|
3691
|
+
), vp = [ss.NAME], Ip = "default", Ap = {
|
3688
3692
|
name: "",
|
3689
3693
|
description: "",
|
3690
3694
|
type: el.NORMAL,
|
@@ -3705,12 +3709,12 @@ const Cs = {
|
|
3705
3709
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
3706
3710
|
/* @__PURE__ */ t.jsx(tc, { breadcrumbs: s }),
|
3707
3711
|
/* @__PURE__ */ t.jsx(
|
3708
|
-
|
3712
|
+
ln,
|
3709
3713
|
{
|
3710
3714
|
infoText: a ?? we.EDIT_DEFAULT_TOOLTIP,
|
3711
3715
|
additionalContent: r,
|
3712
3716
|
heading: we.HEADING,
|
3713
|
-
documentationLink:
|
3717
|
+
documentationLink: bs.GLOBAL_CONFIG_BUILD_INFRA,
|
3714
3718
|
documentationLinkText: "View Documentation",
|
3715
3719
|
iconClassName: "icon-dim-20 fcn-6"
|
3716
3720
|
}
|
@@ -3743,7 +3747,7 @@ const Cs = {
|
|
3743
3747
|
)
|
3744
3748
|
] });
|
3745
3749
|
};
|
3746
|
-
var
|
3750
|
+
var Ss = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.BORDER_LESS = "border-less", e))(Ss || {});
|
3747
3751
|
const Fr = {
|
3748
3752
|
[B.small]: "12px",
|
3749
3753
|
[B.medium]: "13px",
|
@@ -3777,7 +3781,7 @@ const Fr = {
|
|
3777
3781
|
}
|
3778
3782
|
}, Hr = (e) => {
|
3779
3783
|
switch (e) {
|
3780
|
-
case
|
3784
|
+
case Ss.BORDER_LESS:
|
3781
3785
|
return {
|
3782
3786
|
control: () => ({
|
3783
3787
|
backgroundColor: "transparent",
|
@@ -4020,7 +4024,7 @@ const Fr = {
|
|
4020
4024
|
}, Ha = (e, s, n = { label: "", value: "" }, a = null) => Array.isArray(e) ? e.flatMap(
|
4021
4025
|
(o) => "options" in o ? o.options : [o]
|
4022
4026
|
).find((o) => (a ? a(o) : o.value) === s) ?? n : n;
|
4023
|
-
class
|
4027
|
+
class is extends Kn {
|
4024
4028
|
render() {
|
4025
4029
|
const s = `${this.props.rootClassName ? this.props.rootClassName : ""}`;
|
4026
4030
|
return /* @__PURE__ */ t.jsxs("label", { className: `dc__position-rel flex left cursor ${s}`, onClick: this.props?.onClick, children: [
|
@@ -4053,7 +4057,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4053
4057
|
content: null
|
4054
4058
|
}, Pp = (e) => {
|
4055
4059
|
const { isDisabled: s } = e;
|
4056
|
-
return /* @__PURE__ */ t.jsx(ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(
|
4060
|
+
return /* @__PURE__ */ t.jsx(ve.DropdownIndicator, { ...e, children: /* @__PURE__ */ t.jsx(es, { className: s ? "scn-3" : "scn-6" }) });
|
4057
4061
|
}, Dp = (e) => /* @__PURE__ */ t.jsx(ve.ClearIndicator, { ...e, children: /* @__PURE__ */ t.jsx(Je, { className: "icon-use-fill-n6" }) }), Mp = (e) => {
|
4058
4062
|
const {
|
4059
4063
|
children: s,
|
@@ -4091,7 +4095,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4091
4095
|
};
|
4092
4096
|
return /* @__PURE__ */ t.jsx(ve.Option, { ...s, children: /* @__PURE__ */ t.jsx(Be, { ...Op(m), children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
4093
4097
|
r && !_ && /* @__PURE__ */ t.jsx(
|
4094
|
-
|
4098
|
+
is,
|
4095
4099
|
{
|
4096
4100
|
onChange: Qe,
|
4097
4101
|
onClick: g,
|
@@ -4129,7 +4133,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4129
4133
|
getIsOptionValid: e,
|
4130
4134
|
...s
|
4131
4135
|
}) => {
|
4132
|
-
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(
|
4136
|
+
const { data: n, selectProps: a } = s, o = e(n) ? (n.startIcon || n.endIcon) ?? null : /* @__PURE__ */ t.jsx(as, {});
|
4133
4137
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-4 mw-0 dc__truncate", children: [
|
4134
4138
|
o && /* @__PURE__ */ t.jsx(
|
4135
4139
|
"div",
|
@@ -4169,7 +4173,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4169
4173
|
};
|
4170
4174
|
return /* @__PURE__ */ t.jsx(ve.GroupHeading, { ...s, onClick: i, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
|
4171
4175
|
e && /* @__PURE__ */ t.jsx(
|
4172
|
-
|
4176
|
+
is,
|
4173
4177
|
{
|
4174
4178
|
onChange: Qe,
|
4175
4179
|
onClick: c,
|
@@ -4194,7 +4198,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4194
4198
|
optionListError: d,
|
4195
4199
|
reloadOptionList: m,
|
4196
4200
|
menuPosition: p = "fixed",
|
4197
|
-
variant: _ =
|
4201
|
+
variant: _ = Ss.DEFAULT,
|
4198
4202
|
disableDescriptionEllipsis: g = !1,
|
4199
4203
|
multiSelectProps: h = {},
|
4200
4204
|
isMulti: f,
|
@@ -4250,7 +4254,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4250
4254
|
), Pe = (Ke) => /* @__PURE__ */ t.jsx(Fp, { ...Ke, getIsOptionValid: le }), Fe = ye(
|
4251
4255
|
(Ke) => /* @__PURE__ */ t.jsx(Gp, { ...Ke, isGroupHeadingSelectable: W }),
|
4252
4256
|
[W]
|
4253
|
-
), We = () => d ? /* @__PURE__ */ t.jsx(
|
4257
|
+
), We = () => d ? /* @__PURE__ */ t.jsx(os, { reload: m }) : $ ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No options" }) : null, ut = (Ke) => /* @__PURE__ */ t.jsx(Q, { content: i, placement: "top", className: "default-tt", arrow: !1, children: Ke }), fn = (Ke) => {
|
4254
4258
|
const F = Ke?.trim();
|
4255
4259
|
F && H(F);
|
4256
4260
|
}, ca = ne(
|
@@ -4325,7 +4329,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4325
4329
|
allowCreateWhileLoading: !1,
|
4326
4330
|
isValidNewOption: z,
|
4327
4331
|
createOptionPosition: "first",
|
4328
|
-
onCreateOption:
|
4332
|
+
onCreateOption: fn,
|
4329
4333
|
renderMenuListFooter: !d && S,
|
4330
4334
|
inputValue: j,
|
4331
4335
|
onInputChange: P,
|
@@ -4449,8 +4453,8 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4449
4453
|
"data-testid": `${e}-input-field`,
|
4450
4454
|
name: e,
|
4451
4455
|
type: "number",
|
4452
|
-
step:
|
4453
|
-
min:
|
4456
|
+
step: Ts.STEP,
|
4457
|
+
min: Ts.MIN,
|
4454
4458
|
className: "form__input dc__no-right-border dc__no-right-radius",
|
4455
4459
|
placeholder: n,
|
4456
4460
|
value: c,
|
@@ -4494,7 +4498,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4494
4498
|
const { checked: m } = d.currentTarget, p = m ? `activate_${l}` : `de_activate_${l}`;
|
4495
4499
|
o({ action: p });
|
4496
4500
|
}, u = () => i ? /* @__PURE__ */ t.jsx(s, { className: "icon-dim-20 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(
|
4497
|
-
|
4501
|
+
is,
|
4498
4502
|
{
|
4499
4503
|
onChange: c,
|
4500
4504
|
isChecked: !a,
|
@@ -4519,7 +4523,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4519
4523
|
}) => {
|
4520
4524
|
const a = (r) => {
|
4521
4525
|
e({
|
4522
|
-
action:
|
4526
|
+
action: ss.DESCRIPTION,
|
4523
4527
|
data: { value: r.currentTarget.value }
|
4524
4528
|
});
|
4525
4529
|
};
|
@@ -4548,10 +4552,10 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4548
4552
|
error: n
|
4549
4553
|
}) => {
|
4550
4554
|
const a = (r) => {
|
4551
|
-
e({ action:
|
4555
|
+
e({ action: ss.NAME, data: { value: r.currentTarget.value } });
|
4552
4556
|
};
|
4553
4557
|
return /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-4 w-100 dc__align-start", children: /* @__PURE__ */ t.jsx(
|
4554
|
-
|
4558
|
+
un,
|
4555
4559
|
{
|
4556
4560
|
name: "profile-name",
|
4557
4561
|
label: we.PROFILE_LABEL,
|
@@ -4730,7 +4734,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4730
4734
|
}, Zp = async ({ profileInput: e }) => {
|
4731
4735
|
const s = tl(e);
|
4732
4736
|
return Gt(Y.INFRA_CONFIG_PROFILE, s);
|
4733
|
-
},
|
4737
|
+
}, xn = ({
|
4734
4738
|
request: e,
|
4735
4739
|
limit: s,
|
4736
4740
|
unitsMap: n
|
@@ -4752,12 +4756,12 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4752
4756
|
}), u || c)
|
4753
4757
|
return i;
|
4754
4758
|
const d = String(e.value).split(".")[1]?.length ?? 0, m = String(s.value).split(".")[1]?.length ?? 0;
|
4755
|
-
if (d >
|
4759
|
+
if (d > Ts.DECIMAL_PLACES)
|
4756
4760
|
return i.request = {
|
4757
4761
|
message: we.VALIDATE_REQUEST_LIMIT.REQUEST_DECIMAL_PLACES,
|
4758
4762
|
isValid: !1
|
4759
4763
|
}, i;
|
4760
|
-
if (m >
|
4764
|
+
if (m > Ts.DECIMAL_PLACES)
|
4761
4765
|
return i.limit = {
|
4762
4766
|
message: we.VALIDATE_REQUEST_LIMIT.LIMIT_DECIMAL_PLACES,
|
4763
4767
|
isValid: !1
|
@@ -4808,10 +4812,10 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4808
4812
|
handleProfileInputChange: ({ action: f, data: E }) => {
|
4809
4813
|
const N = { ...c }, C = { ...d }, b = o.profile.configurations, x = N.configurations, { value: v, unit: I } = E ?? { value: null, unit: null };
|
4810
4814
|
switch (f) {
|
4811
|
-
case
|
4815
|
+
case ss.DESCRIPTION:
|
4812
4816
|
N.description = v, C.description = gx(v).message;
|
4813
4817
|
break;
|
4814
|
-
case
|
4818
|
+
case ss.NAME:
|
4815
4819
|
N.name = v, C.name = _x(v).message;
|
4816
4820
|
break;
|
4817
4821
|
case R.CPU_LIMIT: {
|
@@ -4820,7 +4824,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4820
4824
|
value: v,
|
4821
4825
|
unit: I
|
4822
4826
|
};
|
4823
|
-
const { request: T, limit: S } =
|
4827
|
+
const { request: T, limit: S } = xn({
|
4824
4828
|
request: {
|
4825
4829
|
value: x[R.CPU_REQUEST].value,
|
4826
4830
|
unit: x[R.CPU_REQUEST].unit
|
@@ -4840,7 +4844,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4840
4844
|
value: v,
|
4841
4845
|
unit: I
|
4842
4846
|
};
|
4843
|
-
const { request: T, limit: S } =
|
4847
|
+
const { request: T, limit: S } = xn({
|
4844
4848
|
request: {
|
4845
4849
|
value: v,
|
4846
4850
|
unit: I
|
@@ -4860,7 +4864,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4860
4864
|
value: v,
|
4861
4865
|
unit: I
|
4862
4866
|
};
|
4863
|
-
const { request: T, limit: S } =
|
4867
|
+
const { request: T, limit: S } = xn({
|
4864
4868
|
request: {
|
4865
4869
|
value: x[R.MEMORY_REQUEST].value,
|
4866
4870
|
unit: x[R.MEMORY_REQUEST].unit
|
@@ -4880,7 +4884,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4880
4884
|
value: v,
|
4881
4885
|
unit: I
|
4882
4886
|
};
|
4883
|
-
const { request: T, limit: S } =
|
4887
|
+
const { request: T, limit: S } = xn({
|
4884
4888
|
request: {
|
4885
4889
|
value: v,
|
4886
4890
|
unit: I
|
@@ -4902,7 +4906,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4902
4906
|
}, C[R.BUILD_TIMEOUT] = Ex(v).message;
|
4903
4907
|
break;
|
4904
4908
|
}
|
4905
|
-
case
|
4909
|
+
case zt.ACTIVATE_CPU:
|
4906
4910
|
x[R.CPU_LIMIT] = {
|
4907
4911
|
...b[R.CPU_LIMIT],
|
4908
4912
|
value: b[R.CPU_LIMIT].value,
|
@@ -4915,7 +4919,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4915
4919
|
active: !0
|
4916
4920
|
}, C[R.CPU_LIMIT] = null, C[R.CPU_REQUEST] = null;
|
4917
4921
|
break;
|
4918
|
-
case
|
4922
|
+
case zt.ACTIVATE_MEMORY:
|
4919
4923
|
x[R.MEMORY_LIMIT] = {
|
4920
4924
|
...b[R.MEMORY_LIMIT],
|
4921
4925
|
value: b[R.MEMORY_LIMIT].value,
|
@@ -4928,7 +4932,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4928
4932
|
active: !0
|
4929
4933
|
}, C[R.MEMORY_LIMIT] = null, C[R.MEMORY_REQUEST] = null;
|
4930
4934
|
break;
|
4931
|
-
case
|
4935
|
+
case zt.ACTIVATE_BUILD_TIMEOUT:
|
4932
4936
|
x[R.BUILD_TIMEOUT] = {
|
4933
4937
|
...b[R.BUILD_TIMEOUT],
|
4934
4938
|
value: b[R.BUILD_TIMEOUT].value,
|
@@ -4936,7 +4940,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4936
4940
|
active: !0
|
4937
4941
|
}, C[R.BUILD_TIMEOUT] = null;
|
4938
4942
|
break;
|
4939
|
-
case
|
4943
|
+
case zt.DE_ACTIVATE_BUILD_TIMEOUT:
|
4940
4944
|
x[R.BUILD_TIMEOUT] = {
|
4941
4945
|
...x[R.BUILD_TIMEOUT],
|
4942
4946
|
value: b[R.BUILD_TIMEOUT].defaultValue.value,
|
@@ -4944,7 +4948,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4944
4948
|
active: !1
|
4945
4949
|
}, C[R.BUILD_TIMEOUT] = null;
|
4946
4950
|
break;
|
4947
|
-
case
|
4951
|
+
case zt.DE_ACTIVATE_CPU:
|
4948
4952
|
x[R.CPU_LIMIT] = {
|
4949
4953
|
...x[R.CPU_LIMIT],
|
4950
4954
|
value: b[R.CPU_LIMIT].defaultValue.value,
|
@@ -4957,7 +4961,7 @@ const Op = (e = {}) => e ? Object.hasOwn(e, "shortcutKeyCombo") && "shortcutKeyC
|
|
4957
4961
|
active: !1
|
4958
4962
|
}, C[R.CPU_LIMIT] = null, C[R.CPU_REQUEST] = null;
|
4959
4963
|
break;
|
4960
|
-
case
|
4964
|
+
case zt.DE_ACTIVATE_MEMORY:
|
4961
4965
|
x[R.MEMORY_LIMIT] = {
|
4962
4966
|
...x[R.MEMORY_LIMIT],
|
4963
4967
|
value: b[R.MEMORY_LIMIT].defaultValue.value,
|
@@ -5086,11 +5090,11 @@ const af = ({
|
|
5086
5090
|
"div",
|
5087
5091
|
{
|
5088
5092
|
className: "icon-dim-20 mw-20 flexbox flex-justify-center flex-align-center dc__border-radius-50-per dc__uppercase cn-0",
|
5089
|
-
style: { backgroundColor:
|
5093
|
+
style: { backgroundColor: mn(s) },
|
5090
5094
|
children: s[0]
|
5091
5095
|
}
|
5092
5096
|
),
|
5093
|
-
/* @__PURE__ */ t.jsx(
|
5097
|
+
/* @__PURE__ */ t.jsx(ns, { to: `${he.PERMISSION_GROUPS}/${e}`, className: "dc__ellipsis-right anchor cursor", children: s }),
|
5094
5098
|
/* @__PURE__ */ t.jsx("div", { className: "dc__ellipsis-right", children: n || "-" }),
|
5095
5099
|
d && /* @__PURE__ */ t.jsx(
|
5096
5100
|
u,
|
@@ -5160,7 +5164,7 @@ const af = ({
|
|
5160
5164
|
)) })
|
5161
5165
|
] });
|
5162
5166
|
}, Yr = (e) => ({
|
5163
|
-
label: e.startsWith(
|
5167
|
+
label: e.startsWith(qs) ? e.split(":")[1] : e,
|
5164
5168
|
value: e
|
5165
5169
|
}), ZC = async () => {
|
5166
5170
|
const { result: e } = await ae(Y.USER_LIST_MIN);
|
@@ -5170,15 +5174,15 @@ const af = ({
|
|
5170
5174
|
return [
|
5171
5175
|
{
|
5172
5176
|
label: "Users",
|
5173
|
-
options: s.filter((n) => n !==
|
5177
|
+
options: s.filter((n) => n !== Ks.system && !n.startsWith(qs)).map((n) => Yr(n))
|
5174
5178
|
},
|
5175
5179
|
{
|
5176
5180
|
label: "API Tokens",
|
5177
|
-
options: s.filter((n) => n.startsWith(
|
5181
|
+
options: s.filter((n) => n.startsWith(qs)).map((n) => Yr(n))
|
5178
5182
|
}
|
5179
5183
|
];
|
5180
5184
|
};
|
5181
|
-
var of = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.SAVED = "variables", e.ENVIRONMENT_LIST = "environments", e))(of || {}),
|
5185
|
+
var of = /* @__PURE__ */ ((e) => (e.YAML = "yaml", e.SAVED = "variables", e.ENVIRONMENT_LIST = "environments", e))(of || {}), Bs = /* @__PURE__ */ ((e) => (e.JOB_AND_CRONJOB_CHART_NAME = "Job & CronJob", e.ROLLOUT_DEPLOYMENT = "Rollout Deployment", e.DEPLOYMENT = "Deployment", e.STATEFUL_SET = "StatefulSet", e))(Bs || {});
|
5182
5186
|
const lf = "object", cf = {
|
5183
5187
|
ContainerPort: {
|
5184
5188
|
type: "array",
|
@@ -5277,10 +5281,10 @@ const lf = "object", cf = {
|
|
5277
5281
|
return Object.values(s).map((a) => (a.versions.sort((r, o) => sl(r.version, o.version)), a));
|
5278
5282
|
}, tT = (e) => {
|
5279
5283
|
switch (e) {
|
5280
|
-
case
|
5281
|
-
case
|
5282
|
-
case
|
5283
|
-
case
|
5284
|
+
case Bs.JOB_AND_CRONJOB_CHART_NAME:
|
5285
|
+
case Bs.DEPLOYMENT:
|
5286
|
+
case Bs.ROLLOUT_DEPLOYMENT:
|
5287
|
+
case Bs.STATEFUL_SET:
|
5284
5288
|
return df;
|
5285
5289
|
default:
|
5286
5290
|
return {};
|
@@ -5352,7 +5356,7 @@ const _f = {
|
|
5352
5356
|
};
|
5353
5357
|
return Gt(Y.APP_TEMPLATE_DATA, n, { signal: s });
|
5354
5358
|
} catch (n) {
|
5355
|
-
throw
|
5359
|
+
throw ts(n) || Oe(n), n;
|
5356
5360
|
}
|
5357
5361
|
}, aT = async (e, s) => {
|
5358
5362
|
try {
|
@@ -5361,14 +5365,14 @@ const _f = {
|
|
5361
5365
|
valuesAndManifestFlag: pr.DEPLOYMENT_TEMPLATE
|
5362
5366
|
}, { result: a } = await Gt(Y.APP_TEMPLATE_DATA, n, {
|
5363
5367
|
signal: s
|
5364
|
-
}), r = Object.keys(a.variableSnapshot || {}).length > 0, o =
|
5368
|
+
}), r = Object.keys(a.variableSnapshot || {}).length > 0, o = Qt.parse(a.data), l = Qt.parse(a.resolvedData);
|
5365
5369
|
return {
|
5366
|
-
data:
|
5367
|
-
resolvedData:
|
5370
|
+
data: Qs(o),
|
5371
|
+
resolvedData: Qs(l),
|
5368
5372
|
areVariablesPresent: r
|
5369
5373
|
};
|
5370
5374
|
} catch (n) {
|
5371
|
-
if (!
|
5375
|
+
if (!ts(n))
|
5372
5376
|
throw Oe(n), n;
|
5373
5377
|
return _f;
|
5374
5378
|
}
|
@@ -5393,7 +5397,7 @@ const _f = {
|
|
5393
5397
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-20 dc__no-shrink", children: "Application metrics" })
|
5394
5398
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
5395
5399
|
/* @__PURE__ */ t.jsx(Ix, { parsingError: i, restoreLastSavedYAML: c, children: /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
5396
|
-
|
5400
|
+
is,
|
5397
5401
|
{
|
5398
5402
|
rootClassName: `mb-0 dc__align-items-center ${n.isAppMetricsSupported ? "" : "dc__disabled"}`,
|
5399
5403
|
isChecked: o,
|
@@ -5414,11 +5418,11 @@ const _f = {
|
|
5414
5418
|
}
|
5415
5419
|
),
|
5416
5420
|
/* @__PURE__ */ t.jsx(
|
5417
|
-
|
5421
|
+
ln,
|
5418
5422
|
{
|
5419
5423
|
heading: "Application Metrics",
|
5420
5424
|
infoText: "Capture and show key application metrics over time. (E.g. Status codes 2xx, 3xx, 5xx; throughput and latency).",
|
5421
|
-
documentationLink:
|
5425
|
+
documentationLink: bs.APP_METRICS,
|
5422
5426
|
documentationLinkText: "Learn more",
|
5423
5427
|
dataTestid: "app-metrics-info",
|
5424
5428
|
iconClassName: "dc__no-shrink icon-dim-16 fcn-6"
|
@@ -5426,10 +5430,10 @@ const _f = {
|
|
5426
5430
|
)
|
5427
5431
|
] })
|
5428
5432
|
] }) : null;
|
5429
|
-
var
|
5433
|
+
var ms = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(ms || {}), gf = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(gf || {}), xf = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(xf || {}), Ef = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(Ef || {});
|
5430
5434
|
const oT = {
|
5431
|
-
BASE_DEPLOYMENT_TEMPLATE: [
|
5432
|
-
OVERRIDE: [
|
5435
|
+
BASE_DEPLOYMENT_TEMPLATE: [ms.VALUES, ms.DRY_RUN],
|
5436
|
+
OVERRIDE: [ms.INHERITED, ms.VALUES, ms.DRY_RUN]
|
5433
5437
|
}, iT = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox-col dc__gap-20", children: [
|
5434
5438
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 lh-20 cn-9 fw-4", children: "Merge strategy determines how environment configurations are combined with inherited configurations configurations. Choose the strategy that best suits your needs:" }),
|
5435
5439
|
/* @__PURE__ */ t.jsx("ul", { className: "pl-12 m-0-imp", children: /* @__PURE__ */ t.jsxs("li", { className: "m-0 fs-13 lh-20 cn-9 fw-4", children: [
|
@@ -5438,11 +5442,11 @@ const oT = {
|
|
5438
5442
|
] }) })
|
5439
5443
|
] }), Nf = (e) => {
|
5440
5444
|
switch (e) {
|
5441
|
-
case
|
5445
|
+
case Gs.PRE:
|
5442
5446
|
return "pre-deployment";
|
5443
|
-
case
|
5447
|
+
case Gs.POST:
|
5444
5448
|
return "post-deployment";
|
5445
|
-
case
|
5449
|
+
case Gs.DEPLOY:
|
5446
5450
|
return "deployment";
|
5447
5451
|
default:
|
5448
5452
|
return "-";
|
@@ -5480,9 +5484,9 @@ function sl(e, s, n = de.ASC) {
|
|
5480
5484
|
}
|
5481
5485
|
const uT = (e) => {
|
5482
5486
|
switch (e) {
|
5483
|
-
case
|
5487
|
+
case zs.PULL_REQUEST:
|
5484
5488
|
return /* @__PURE__ */ t.jsx(bi, { className: "icon-dim-12" });
|
5485
|
-
case
|
5489
|
+
case zs.TAG_CREATION:
|
5486
5490
|
return /* @__PURE__ */ t.jsx(Ci, { className: "icon-dim-12" });
|
5487
5491
|
default:
|
5488
5492
|
return /* @__PURE__ */ t.jsx(uu, { className: "icon-dim-12" });
|
@@ -5825,9 +5829,9 @@ const jf = (e, s = !1) => s ? btoa(e) : atob(e), qr = (e, s = !1) => Object.keys
|
|
5825
5829
|
SecurityModalSidebar: i,
|
5826
5830
|
getSecurityScan: c
|
5827
5831
|
}) => {
|
5828
|
-
const [u, d] = A(!1), [m, p] = A(
|
5832
|
+
const [u, d] = A(!1), [m, p] = A(ks.Changes), [_, g] = A(null), h = () => {
|
5829
5833
|
d(!u);
|
5830
|
-
}, f = () => u ? m ===
|
5834
|
+
}, f = () => u ? m === ks.Changes ? r : /* @__PURE__ */ t.jsx(
|
5831
5835
|
Uf,
|
5832
5836
|
{
|
5833
5837
|
isScanned: o,
|
@@ -5846,7 +5850,7 @@ const jf = (e, s = !1) => s ? btoa(e) : atob(e), qr = (e, s = !1) => Object.keys
|
|
5846
5850
|
/* @__PURE__ */ t.jsx(
|
5847
5851
|
Xr,
|
5848
5852
|
{
|
5849
|
-
currentTab:
|
5853
|
+
currentTab: ks.Changes,
|
5850
5854
|
activeTab: m,
|
5851
5855
|
setActiveTab: p,
|
5852
5856
|
buttonText: "Changes"
|
@@ -5855,7 +5859,7 @@ const jf = (e, s = !1) => s ? btoa(e) : atob(e), qr = (e, s = !1) => Object.keys
|
|
5855
5859
|
/* @__PURE__ */ t.jsx(
|
5856
5860
|
Xr,
|
5857
5861
|
{
|
5858
|
-
currentTab:
|
5862
|
+
currentTab: ks.Security,
|
5859
5863
|
activeTab: m,
|
5860
5864
|
setActiveTab: p,
|
5861
5865
|
buttonText: `Security ${_ ? `(${_})` : ""}`
|
@@ -5985,7 +5989,7 @@ const jf = (e, s = !1) => s ? btoa(e) : atob(e), qr = (e, s = !1) => Object.keys
|
|
5985
5989
|
DEFAULT_KEY_PLACEHOLDER: "Enter key",
|
5986
5990
|
DEFAULT_VALUE_PLACEHOLDER: "Enter value"
|
5987
5991
|
};
|
5988
|
-
var
|
5992
|
+
var Hs = /* @__PURE__ */ ((e) => (e.ADD = "ADD_KEY_VALUE", e.DELETE = "DELETE_KEY_VALUE", e.UPDATE_KEY = "UPDATE", e.UPDATE_VALUE = "UPDATE_VALUE", e))(Hs || {});
|
5989
5993
|
const $f = ({
|
5990
5994
|
itemKey: e,
|
5991
5995
|
itemValue: s,
|
@@ -6001,24 +6005,24 @@ const $f = ({
|
|
6001
6005
|
index: l,
|
6002
6006
|
value: m.target.value
|
6003
6007
|
};
|
6004
|
-
n({ action:
|
6008
|
+
n({ action: Hs.UPDATE_KEY, data: p });
|
6005
6009
|
}, u = (m) => {
|
6006
6010
|
const p = {
|
6007
6011
|
index: l,
|
6008
6012
|
value: m.target.value
|
6009
6013
|
};
|
6010
|
-
n({ action:
|
6014
|
+
n({ action: Hs.UPDATE_VALUE, data: p });
|
6011
6015
|
}, d = (m) => {
|
6012
6016
|
m.stopPropagation();
|
6013
6017
|
const p = {
|
6014
6018
|
index: l
|
6015
6019
|
};
|
6016
|
-
n({ action:
|
6020
|
+
n({ action: Hs.DELETE, data: p });
|
6017
6021
|
};
|
6018
6022
|
return /* @__PURE__ */ t.jsxs("div", { className: `flexbox justify-space ${i || ""}`, children: [
|
6019
6023
|
/* @__PURE__ */ t.jsxs("div", { className: "pt-8 w-100", children: [
|
6020
6024
|
/* @__PURE__ */ t.jsx(
|
6021
|
-
|
6025
|
+
un,
|
6022
6026
|
{
|
6023
6027
|
name: "item-key",
|
6024
6028
|
rootClassName: `w-100 dc__top-radius-4 pl-10 pr-10 pt-6 pb-6 en-2 bw-1 ${a ? "cursor-not-allowed" : ""}`,
|
@@ -6063,7 +6067,7 @@ const $f = ({
|
|
6063
6067
|
valuePlaceholder: i = fa.DEFAULT_VALUE_PLACEHOLDER
|
6064
6068
|
}) => {
|
6065
6069
|
const c = () => {
|
6066
|
-
s({ action:
|
6070
|
+
s({ action: Hs.ADD });
|
6067
6071
|
}, u = (d) => /* @__PURE__ */ t.jsx(Q, { content: a, children: d });
|
6068
6072
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6069
6073
|
/* @__PURE__ */ t.jsx(dt, { condition: n, wrap: u, children: /* @__PURE__ */ t.jsxs(
|
@@ -6135,9 +6139,9 @@ const $f = ({
|
|
6135
6139
|
}
|
6136
6140
|
) : C && /* @__PURE__ */ t.jsx("div", { className: `icon-dim-${v || 20} mr-6`, children: /* @__PURE__ */ t.jsx(C, { className: `icon-dim-${v || 20} ${x || ""}` }) }),
|
6137
6141
|
T && /* @__PURE__ */ t.jsx("span", { className: `fs-14 fw-6 lh-20 ${H ? "mr-12" : ""}`, children: T }),
|
6138
|
-
S && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: c, children: /* @__PURE__ */ t.jsx(
|
6142
|
+
S && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 cursor", onClick: c, children: /* @__PURE__ */ t.jsx(As, { className: "icon-dim-20" }) }),
|
6139
6143
|
H && /* @__PURE__ */ t.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ t.jsx(
|
6140
|
-
|
6144
|
+
ys,
|
6141
6145
|
{
|
6142
6146
|
className: `icon-dim-16 cursor ${r ? "fcn-9" : "fcn-0"}`,
|
6143
6147
|
onClick: i
|
@@ -6205,7 +6209,7 @@ const $f = ({
|
|
6205
6209
|
children: N
|
6206
6210
|
}
|
6207
6211
|
);
|
6208
|
-
},
|
6212
|
+
}, ln = ({
|
6209
6213
|
heading: e,
|
6210
6214
|
infoText: s,
|
6211
6215
|
iconClass: n = "fcv-5",
|
@@ -6241,7 +6245,7 @@ const $f = ({
|
|
6241
6245
|
className: "p-0 dc__no-background dc__no-border dc__outline-none-imp flex dc__tab-focus dc__no-shrink",
|
6242
6246
|
"aria-label": "Info Icon",
|
6243
6247
|
"data-testid": c,
|
6244
|
-
children: /* @__PURE__ */ t.jsx(
|
6248
|
+
children: /* @__PURE__ */ t.jsx(As, { className: l })
|
6245
6249
|
}
|
6246
6250
|
)
|
6247
6251
|
}
|
@@ -6355,7 +6359,7 @@ const Ff = (e) => {
|
|
6355
6359
|
"p",
|
6356
6360
|
{
|
6357
6361
|
className: "logout-card__initial fs-16 icon-dim-32 mb-0",
|
6358
|
-
style: { backgroundColor:
|
6362
|
+
style: { backgroundColor: mn(s) },
|
6359
6363
|
children: s[0]
|
6360
6364
|
}
|
6361
6365
|
)
|
@@ -6367,7 +6371,7 @@ let Zr;
|
|
6367
6371
|
const Hf = async (e, s) => {
|
6368
6372
|
const n = await ae(`${Y.SERVER_INFO_API}?showServerStatus=false`);
|
6369
6373
|
return Zr = n, typeof Storage < "u" && (localStorage.serverInfo = JSON.stringify(Zr)), Promise.resolve(n);
|
6370
|
-
}, Yf = 864e5,
|
6374
|
+
}, Yf = 864e5, $s = (e) => 1 + (/* @__PURE__ */ new Date()).valueOf() + (e ?? 0) * Yf, Ya = async (e, s) => {
|
6371
6375
|
const n = {
|
6372
6376
|
eventType: s || e.target?.dataset.posthog,
|
6373
6377
|
key: ji,
|
@@ -6376,7 +6380,7 @@ const Hf = async (e, s) => {
|
|
6376
6380
|
};
|
6377
6381
|
await Gf(n);
|
6378
6382
|
}, Bn = (e, s) => {
|
6379
|
-
localStorage.setItem(e, `${
|
6383
|
+
localStorage.setItem(e, `${$s(s)}`);
|
6380
6384
|
};
|
6381
6385
|
var $n = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))($n || {});
|
6382
6386
|
const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className: e, hideGettingStartedCard: s }) => {
|
@@ -6443,19 +6447,19 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6443
6447
|
icon: ar
|
6444
6448
|
}
|
6445
6449
|
], rl = Bt(null), oa = () => {
|
6446
|
-
const e =
|
6450
|
+
const e = en(rl);
|
6447
6451
|
if (!e)
|
6448
6452
|
throw new Error("Please wrap with MainContextProvider");
|
6449
6453
|
return e;
|
6450
6454
|
}, CT = ({ children: e, value: s }) => /* @__PURE__ */ t.jsx(rl.Provider, { value: s, children: e }), ol = Bt(null), TT = () => {
|
6451
|
-
const e =
|
6455
|
+
const e = en(ol);
|
6452
6456
|
if (!e)
|
6453
6457
|
throw new Error("useImageSelectionUtilityContext must be used within ImageSelectionUtilityProvider");
|
6454
6458
|
return e;
|
6455
6459
|
}, ST = ({ children: e, value: s }) => {
|
6456
6460
|
const n = ne(() => s, [s]);
|
6457
6461
|
return /* @__PURE__ */ t.jsx(ol.Provider, { value: n, children: e });
|
6458
|
-
}, il = Bt(null), ll = () =>
|
6462
|
+
}, il = Bt(null), ll = () => en(il), vT = ({ children: e }) => {
|
6459
6463
|
const [s, n] = A(""), a = ne(
|
6460
6464
|
() => ({
|
6461
6465
|
email: s,
|
@@ -6478,7 +6482,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6478
6482
|
const { currentServerInfo: l } = oa(), i = l?.serverInfo?.installationType === $n.ENTERPRISE, c = `UheGN3KJ#source=${window.location.hostname}`, u = [
|
6479
6483
|
{
|
6480
6484
|
name: "View documentation",
|
6481
|
-
link:
|
6485
|
+
link: ds,
|
6482
6486
|
icon: Wc,
|
6483
6487
|
showSeparator: !0
|
6484
6488
|
},
|
@@ -6492,7 +6496,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6492
6496
|
], d = () => {
|
6493
6497
|
r(!0);
|
6494
6498
|
}, m = (f) => {
|
6495
|
-
|
6499
|
+
tn.event({
|
6496
6500
|
category: "Help Nav",
|
6497
6501
|
action: `${f.name} Clicked`
|
6498
6502
|
});
|
@@ -6515,7 +6519,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6515
6519
|
m(E);
|
6516
6520
|
}, h = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6517
6521
|
" ",
|
6518
|
-
u.map((f, E) => /* @__PURE__ */ t.jsxs(
|
6522
|
+
u.map((f, E) => /* @__PURE__ */ t.jsxs(Ys, { children: [
|
6519
6523
|
/* @__PURE__ */ t.jsxs(
|
6520
6524
|
"a",
|
6521
6525
|
{
|
@@ -6566,7 +6570,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6566
6570
|
// it will store date and time of next day i.e, it will hide banner until this date
|
6567
6571
|
"expiryDateOfHidingAnnouncementBanner"
|
6568
6572
|
);
|
6569
|
-
return typeof Storage < "u" &&
|
6573
|
+
return typeof Storage < "u" && $s(localStorage.getItem("dashboardLoginTime")) > $s(c) && !c ? !0 : $s((/* @__PURE__ */ new Date()).valueOf()) > $s(c);
|
6570
6574
|
}, [r, o] = A(n ? a() : !1);
|
6571
6575
|
if (!n)
|
6572
6576
|
return null;
|
@@ -6591,11 +6595,11 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6591
6595
|
FEATURE_PROMO_EMBEDDED_MODAL_TITLE: a,
|
6592
6596
|
FEATURE_PROMO_EMBEDDED_IFRAME_URL: r
|
6593
6597
|
} = window._env_, o = ye(() => {
|
6594
|
-
s(!0),
|
6598
|
+
s(!0), tn.event({
|
6595
6599
|
category: "PRIMARY_HEADER",
|
6596
6600
|
action: "HEADER_IFRAME_BUTTON_CLICKED"
|
6597
6601
|
});
|
6598
|
-
}, []), l = ye(() => s(!1), []), i = () => /* @__PURE__ */ t.jsx(
|
6602
|
+
}, []), l = ye(() => s(!1), []), i = () => /* @__PURE__ */ t.jsx(pn, { close: l, children: /* @__PURE__ */ t.jsxs("div", { className: "modal-body--ci-material h-100 dc__overflow-hidden dc__border-left flex column dc__content-space w-100", children: [
|
6599
6603
|
/* @__PURE__ */ t.jsxs("div", { className: "trigger-modal__header w-100", children: [
|
6600
6604
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title flex left fs-16 fw-6-imp", "data-testid": "app-details-url-heading", children: a || n }),
|
6601
6605
|
/* @__PURE__ */ t.jsx(
|
@@ -6685,13 +6689,13 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6685
6689
|
}, G = () => {
|
6686
6690
|
j(!S), I && T(!1), Bn("clickedOkay", 1), Z();
|
6687
6691
|
}, ie = async (W) => {
|
6688
|
-
!window._env_.K8S_CLIENT && L.serverInfo?.installationType !== $n.ENTERPRISE && await ee(), T(!I), S && j(!1), Bn("clickedOkay", 1), Z(), await Ya(W, wa.HELP),
|
6692
|
+
!window._env_.K8S_CLIENT && L.serverInfo?.installationType !== $n.ENTERPRISE && await ee(), T(!I), S && j(!1), Bn("clickedOkay", 1), Z(), await Ya(W, wa.HELP), tn.event({
|
6689
6693
|
category: "Main Navigation",
|
6690
6694
|
action: "Help Clicked"
|
6691
6695
|
});
|
6692
6696
|
}, Ce = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
6693
6697
|
/* @__PURE__ */ t.jsxs("div", { className: "flex left cursor dc__gap-8", onClick: ie, children: [
|
6694
|
-
/* @__PURE__ */ t.jsx("span", { className: "icon-dim-24 fcn-9", children: /* @__PURE__ */ t.jsx(
|
6698
|
+
/* @__PURE__ */ t.jsx("span", { className: "icon-dim-24 fcn-9", children: /* @__PURE__ */ t.jsx(As, {}) }),
|
6695
6699
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 cn-9", "data-testid": "go-to-get-started", children: "Help" }),
|
6696
6700
|
/* @__PURE__ */ t.jsx(
|
6697
6701
|
Mt,
|
@@ -6706,7 +6710,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6706
6710
|
{
|
6707
6711
|
className: "logout-card__initial cursor fs-13 icon-dim-24 flex logout-card__initial--nav",
|
6708
6712
|
onClick: G,
|
6709
|
-
style: { backgroundColor:
|
6713
|
+
style: { backgroundColor: mn(P) },
|
6710
6714
|
"data-testid": "profile-button",
|
6711
6715
|
children: P[0]
|
6712
6716
|
}
|
@@ -6733,7 +6737,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6733
6737
|
s && s(),
|
6734
6738
|
r && o(),
|
6735
6739
|
m && (E ? /* @__PURE__ */ t.jsx(
|
6736
|
-
|
6740
|
+
ln,
|
6737
6741
|
{
|
6738
6742
|
infoText: b,
|
6739
6743
|
heading: e,
|
@@ -6996,7 +7000,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
6996
7000
|
), p = ne(() => u ? r?.(u) || u : [], [u, r]), _ = ne(() => {
|
6997
7001
|
const h = th(s, p);
|
6998
7002
|
return n ? h : h?.[0] || null;
|
6999
|
-
}, [s, p, n]), g = () => d ? /* @__PURE__ */ t.jsx(
|
7003
|
+
}, [s, p, n]), g = () => d ? /* @__PURE__ */ t.jsx(os, { withBorder: !0, reload: m }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: Wa.NO_ENVIRONMENTS_AVAILABLE });
|
7000
7004
|
return /* @__PURE__ */ t.jsx(
|
7001
7005
|
Jn,
|
7002
7006
|
{
|
@@ -7067,7 +7071,7 @@ const Wf = (e) => Gt(`${Y.ATTRIBUTES_USER}/${Y.UPDATE}`, e), Kf = ({ className:
|
|
7067
7071
|
var Ka = /* @__PURE__ */ ((e) => (e.GOT_IT = "Got it", e.VIEW_DOCUMENTATION = "View Documentation", e))(Ka || {});
|
7068
7072
|
const eo = (e) => {
|
7069
7073
|
switch (e) {
|
7070
|
-
case
|
7074
|
+
case rs.SMALL:
|
7071
7075
|
return { width: "100%", height: "200px" };
|
7072
7076
|
default:
|
7073
7077
|
return { width: "100%", height: "250px" };
|
@@ -7117,7 +7121,7 @@ const eo = (e) => {
|
|
7117
7121
|
]
|
7118
7122
|
}
|
7119
7123
|
);
|
7120
|
-
return /* @__PURE__ */ t.jsx(
|
7124
|
+
return /* @__PURE__ */ t.jsx(pn, { className: "", close: r, children: /* @__PURE__ */ t.jsxs(
|
7121
7125
|
"div",
|
7122
7126
|
{
|
7123
7127
|
className: "feature-description modal__body w-600 mt-40 flex column p-0 fs-13 dc__overflow-hidden",
|
@@ -7151,7 +7155,7 @@ const eo = (e) => {
|
|
7151
7155
|
}, N = () => u ? /* @__PURE__ */ t.jsxs("div", { className: "flex left fs-16 cn-9 fw-6 dc__gap-4", children: [
|
7152
7156
|
/* @__PURE__ */ t.jsx("span", { "data-testid": m, className: "lh-32", children: r }),
|
7153
7157
|
/* @__PURE__ */ t.jsx(
|
7154
|
-
|
7158
|
+
ln,
|
7155
7159
|
{
|
7156
7160
|
heading: r,
|
7157
7161
|
infoText: o(),
|
@@ -7164,7 +7168,7 @@ const eo = (e) => {
|
|
7164
7168
|
)
|
7165
7169
|
] }) : s?.length > 0 || _ ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
7166
7170
|
_ && s?.length === 0 ? /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r }) : /* @__PURE__ */ t.jsx(tc, { breadcrumbs: s }),
|
7167
|
-
/* @__PURE__ */ t.jsx(
|
7171
|
+
/* @__PURE__ */ t.jsx(As, { className: `${a} icon-dim-20 cursor fcn-6`, onClick: f })
|
7168
7172
|
] }) : /* @__PURE__ */ t.jsx("span", { className: "fs-16 fw-6 cn-9 lh-32", children: r });
|
7169
7173
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
7170
7174
|
/* @__PURE__ */ t.jsxs(
|
@@ -7199,7 +7203,7 @@ const eo = (e) => {
|
|
7199
7203
|
style: { background: e.isFocused ? "var(--N100)" : "transparent" },
|
7200
7204
|
children: [
|
7201
7205
|
/* @__PURE__ */ t.jsx(
|
7202
|
-
|
7206
|
+
is,
|
7203
7207
|
{
|
7204
7208
|
isChecked: e.isSelected || !1,
|
7205
7209
|
onChange: l,
|
@@ -7259,7 +7263,7 @@ const eo = (e) => {
|
|
7259
7263
|
innerProps: { onClick: n, onMouseDown: a }
|
7260
7264
|
} = e;
|
7261
7265
|
return /* @__PURE__ */ t.jsx(ve.MultiValueRemove, { ...e, children: /* @__PURE__ */ t.jsx(
|
7262
|
-
|
7266
|
+
Is,
|
7263
7267
|
{
|
7264
7268
|
onClick: n,
|
7265
7269
|
onMouseDown: a,
|
@@ -7332,14 +7336,14 @@ const eo = (e) => {
|
|
7332
7336
|
CANCELLED: "cancelled",
|
7333
7337
|
UNABLE_TO_FETCH: "unabletofetch",
|
7334
7338
|
TIMED_OUT: "timedout"
|
7335
|
-
},
|
7339
|
+
}, En = {
|
7336
7340
|
MESSAGE: "message",
|
7337
7341
|
START_OF_STREAM: "START_OF_STREAM",
|
7338
7342
|
END_OF_STREAM: "END_OF_STREAM",
|
7339
7343
|
ERROR: "error"
|
7340
7344
|
}, _a = {
|
7341
7345
|
PENDING: "Pending"
|
7342
|
-
}, dh = "1", uh = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup", mh = "devtron-ci",
|
7346
|
+
}, dh = "1", uh = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup", mh = "devtron-ci", Nn = 3, to = "deployment-status", ph = ["KIND", "NAME", "SYNC STATUS", "MESSAGE"], so = "STAGE_INFO", fh = "|";
|
7343
7347
|
var Ne = /* @__PURE__ */ ((e) => (e.CI = "CI", e.CD = "CD", e.GROUP_CI = "GROUP_CI", e.GROUP_CD = "GROUP_CD", e))(Ne || {}), Pt = /* @__PURE__ */ ((e) => (e.SUCCESS = "SUCCESS", e.FETCHING = "FETCHING", e.SUSPEND = "SUSPEND", e))(Pt || {});
|
7344
7348
|
const hh = {
|
7345
7349
|
[_e.SUCCEEDED]: "cg-5",
|
@@ -7354,14 +7358,14 @@ const hh = {
|
|
7354
7358
|
[_e.INITIATING]: "initiating",
|
7355
7359
|
[_e.QUEUED]: "queued"
|
7356
7360
|
};
|
7357
|
-
var tt = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(tt || {}),
|
7361
|
+
var tt = /* @__PURE__ */ ((e) => (e.Degraded = "degraded", e.Healthy = "healthy", e.Progressing = "progressing", e.Missing = "missing", e.Suspended = "suspended", e.Unknown = "unknown", e))(tt || {}), Js = /* @__PURE__ */ ((e) => (e.drifted = "drifted", e))(Js || {});
|
7358
7362
|
const no = {
|
7359
7363
|
missing: 1,
|
7360
7364
|
degraded: 2,
|
7361
7365
|
progressing: 3,
|
7362
7366
|
healthy: 4
|
7363
7367
|
};
|
7364
|
-
var
|
7368
|
+
var gs = /* @__PURE__ */ ((e) => (e.SUCCESS = "Success", e.FAILURE = "Failure", e.PROGRESSING = "Progressing", e))(gs || {});
|
7365
7369
|
const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled", "failed", "aborted"]), xh = /* @__PURE__ */ new Set(["starting", "running", "pending"]), dl = ({ callback: e, hasError: s }) => {
|
7366
7370
|
const n = X(null), a = vf(n, {
|
7367
7371
|
rootMargin: "0px",
|
@@ -7369,7 +7373,7 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7369
7373
|
});
|
7370
7374
|
return O(() => {
|
7371
7375
|
a && e();
|
7372
|
-
}, [a]), s ? /* @__PURE__ */ t.jsx("div", { className: "p-24 flex", children: /* @__PURE__ */ t.jsx(
|
7376
|
+
}, [a]), s ? /* @__PURE__ */ t.jsx("div", { className: "p-24 flex", children: /* @__PURE__ */ t.jsx(os, { reload: e }) }) : /* @__PURE__ */ t.jsx("span", { className: "pb-5", ref: n });
|
7373
7377
|
}, Eh = ({
|
7374
7378
|
appId: e,
|
7375
7379
|
envId: s,
|
@@ -7429,9 +7433,9 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7429
7433
|
case "success":
|
7430
7434
|
return /* @__PURE__ */ t.jsx(Rd, { className: "icon-dim-20 green-tick", "data-testid": "success-green-tick" });
|
7431
7435
|
case "failed":
|
7432
|
-
return /* @__PURE__ */ t.jsx(
|
7436
|
+
return /* @__PURE__ */ t.jsx(as, { className: "icon-dim-20" });
|
7433
7437
|
case "unknown":
|
7434
|
-
return /* @__PURE__ */ t.jsx(
|
7438
|
+
return /* @__PURE__ */ t.jsx(As, { className: "icon-dim-20" });
|
7435
7439
|
case "inprogress":
|
7436
7440
|
return /* @__PURE__ */ t.jsx("div", { className: "icon-dim-20", children: /* @__PURE__ */ t.jsx("div", { className: "pulse-highlight" }) });
|
7437
7441
|
case "unreachable":
|
@@ -7447,14 +7451,14 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7447
7451
|
}
|
7448
7452
|
}, bh = (e) => {
|
7449
7453
|
switch (e) {
|
7450
|
-
case
|
7454
|
+
case gs.SUCCESS:
|
7451
7455
|
return /* @__PURE__ */ t.jsx(ea, { className: "dc__no-shrink icon-dim-16 scg-5" });
|
7452
|
-
case
|
7456
|
+
case gs.FAILURE:
|
7453
7457
|
return /* @__PURE__ */ t.jsx(Je, { className: "dc__no-shrink icon-dim-16 fcr-5" });
|
7454
7458
|
default:
|
7455
7459
|
return /* @__PURE__ */ t.jsx(Ti, { className: "dc__no-shrink icon-dim-16 ic-in-progress-orange" });
|
7456
7460
|
}
|
7457
|
-
}, oo = () => /* @__PURE__ */ t.jsx(wd, { className: "icon-dim-20 dc__no-shrink" }), io = () => /* @__PURE__ */ t.jsx(
|
7461
|
+
}, oo = () => /* @__PURE__ */ t.jsx(wd, { className: "icon-dim-20 dc__no-shrink" }), io = () => /* @__PURE__ */ t.jsx(Is, { className: "icon-dim-20 dc__no-shrink ic-error-cross-red" }), lo = () => /* @__PURE__ */ t.jsx(Ti, { className: "dc__no-shrink icon-dim-20 ic-in-progress-orange" }), co = () => /* @__PURE__ */ t.jsx("div", { className: "dc__app-summary__icon dc__no-shrink icon-dim-20 succeeded" }), Ch = (e) => {
|
7458
7462
|
const s = e?.toUpperCase();
|
7459
7463
|
switch (s) {
|
7460
7464
|
case V.ABORTED:
|
@@ -7584,7 +7588,7 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7584
7588
|
children: m
|
7585
7589
|
}
|
7586
7590
|
),
|
7587
|
-
s !== ch && /* @__PURE__ */ t.jsx(
|
7591
|
+
s !== ch && /* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-12 fcn-5" })
|
7588
7592
|
] }),
|
7589
7593
|
r && /* @__PURE__ */ t.jsx("span", { className: "dc__border-dashed--n3-bottom fw-6 fs-13 lh-19-imp", children: r })
|
7590
7594
|
]
|
@@ -7626,7 +7630,7 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7626
7630
|
/* @__PURE__ */ t.jsxs(
|
7627
7631
|
"a",
|
7628
7632
|
{
|
7629
|
-
href:
|
7633
|
+
href: cn(d, i.Commit),
|
7630
7634
|
target: "_blank",
|
7631
7635
|
rel: "noopener noreferrer",
|
7632
7636
|
className: "fs-12 fw-6 cn-9 pointer",
|
@@ -7679,7 +7683,7 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7679
7683
|
envId: N,
|
7680
7684
|
[x]: e
|
7681
7685
|
};
|
7682
|
-
return `${
|
7686
|
+
return `${Xt(g, L)}/${E}`;
|
7683
7687
|
}, S = () => {
|
7684
7688
|
I?.current && I.current.scrollIntoView({ behavior: "smooth" });
|
7685
7689
|
};
|
@@ -7760,9 +7764,9 @@ const gh = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
7760
7764
|
resourceId: u
|
7761
7765
|
}) => {
|
7762
7766
|
const { pipelineId: d, appId: m, envId: p } = et(), { push: _ } = $t(), { path: g } = vt(), h = (v) => {
|
7763
|
-
e === Ne.CI ? (r({ offset: 0, size: 20 }), _(
|
7767
|
+
e === Ne.CI ? (r({ offset: 0, size: 20 }), _(Xt(g, { appId: m, pipelineId: v.value }))) : e === Ne.GROUP_CI ? (r({ offset: 0, size: 20 }), _(Xt(g, { envId: p, pipelineId: v.pipelineId }))) : e === Ne.GROUP_CD ? (r({ offset: 0, size: 20 }), _(Xt(g, { envId: p, appId: v.value, pipelineId: v.pipelineId }))) : (r({ offset: 0, size: 20 }), _(Xt(g, { appId: m, envId: v.value, pipelineId: v.pipelineId })));
|
7764
7768
|
}, f = () => {
|
7765
|
-
|
7769
|
+
tn.event({
|
7766
7770
|
category: "pagination",
|
7767
7771
|
action: "scroll",
|
7768
7772
|
label: `${e.toLowerCase()}-history`,
|
@@ -7907,16 +7911,16 @@ const Lh = (e, s) => {
|
|
7907
7911
|
let c = r;
|
7908
7912
|
return e.map((d, m) => {
|
7909
7913
|
let p = "";
|
7910
|
-
const _ = d.filterState ??
|
7914
|
+
const _ = d.filterState ?? Vs.ALLOWED;
|
7911
7915
|
n && a && d.id === n && (p = a);
|
7912
|
-
const g = !c && l && _ ===
|
7916
|
+
const g = !c && l && _ === Vs.ALLOWED ? !d.vulnerable : !1;
|
7913
7917
|
return g && (c = !0), {
|
7914
7918
|
index: i + m,
|
7915
7919
|
id: d.id,
|
7916
7920
|
deployedTime: d.deployed_time ? xe(d.deployed_time).format("ddd, DD MMM YYYY, hh:mm A") : "Not Deployed",
|
7917
7921
|
deployedBy: d.deployedBy,
|
7918
7922
|
wfrId: d.wfrId,
|
7919
|
-
tab:
|
7923
|
+
tab: ks.Changes,
|
7920
7924
|
image: Fn(d.image),
|
7921
7925
|
showChanges: !1,
|
7922
7926
|
vulnerabilities: [],
|
@@ -7943,7 +7947,7 @@ const Lh = (e, s) => {
|
|
7943
7947
|
lastExecution: d.lastExecution,
|
7944
7948
|
materialInfo: d.material_info ? d.material_info.map((h) => ({
|
7945
7949
|
modifiedTime: h.modifiedTime ? xe(h.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
|
7946
|
-
commitLink:
|
7950
|
+
commitLink: cn(h.url, h.revision),
|
7947
7951
|
author: h.author || "",
|
7948
7952
|
message: h.message || "",
|
7949
7953
|
revision: h.revision || "",
|
@@ -7956,7 +7960,7 @@ const Lh = (e, s) => {
|
|
7956
7960
|
filterState: _,
|
7957
7961
|
appliedFiltersTimestamp: d.appliedFiltersTimestamp ?? "",
|
7958
7962
|
appliedFilters: d.appliedFilters ?? [],
|
7959
|
-
appliedFiltersState: d.appliedFiltersState ??
|
7963
|
+
appliedFiltersState: d.appliedFiltersState ?? Vs.ALLOWED,
|
7960
7964
|
createdTime: d.createdTime ?? "",
|
7961
7965
|
dataSource: d.data_source ?? "",
|
7962
7966
|
registryType: d.registryType ?? "",
|
@@ -7973,7 +7977,7 @@ const Lh = (e, s) => {
|
|
7973
7977
|
const s = e.approvalUsers || [], n = fr(e.userApprovalConfig), a = Rf(n), r = e.imageApprovalUsersInfo || {}, o = s.reduce(
|
7974
7978
|
(p, _) => (p[_] = !0, p),
|
7975
7979
|
{}
|
7976
|
-
), l = n.specificUsers.identifiers.filter((p) => p.startsWith(
|
7980
|
+
), l = n.specificUsers.identifiers.filter((p) => p.startsWith(qs)).sort(Re), i = n.specificUsers.identifiers.filter((p) => !p.startsWith(qs) && p !== Ks.system).sort(Re), c = {
|
7977
7981
|
dataStore: n.specificUsers.identifiers.reduce(
|
7978
7982
|
(p, _) => (p[_] = {
|
7979
7983
|
email: _,
|
@@ -7983,7 +7987,7 @@ const Lh = (e, s) => {
|
|
7983
7987
|
),
|
7984
7988
|
requiredCount: n.specificUsers.requiredCount,
|
7985
7989
|
emails: i.concat(l)
|
7986
|
-
}, u = n.userGroups.map((p) => p.identifier), m = s.filter((p) => p !==
|
7990
|
+
}, u = n.userGroups.map((p) => p.identifier), m = s.filter((p) => p !== Ks.system).reduce(
|
7987
7991
|
(p, _) => ((r[_] || []).forEach((h) => {
|
7988
7992
|
p[h.identifier] || (p[h.identifier] = {}), p[h.identifier][_] = !0;
|
7989
7993
|
}), p),
|
@@ -8065,7 +8069,7 @@ const Lh = (e, s) => {
|
|
8065
8069
|
e
|
8066
8070
|
), i = mo(e), c = po(e);
|
8067
8071
|
return {
|
8068
|
-
materials: a && a === yi.RESOURCE ? o.filter((d) => d.filterState ===
|
8072
|
+
materials: a && a === yi.RESOURCE ? o.filter((d) => d.filterState === Vs.ALLOWED) : o,
|
8069
8073
|
...l,
|
8070
8074
|
...i,
|
8071
8075
|
...c
|
@@ -8100,7 +8104,7 @@ const Lh = (e, s) => {
|
|
8100
8104
|
function Fn(e) {
|
8101
8105
|
return e ? e.split(":").pop() : "";
|
8102
8106
|
}
|
8103
|
-
function
|
8107
|
+
function cn(e, s) {
|
8104
8108
|
if (!e || !s)
|
8105
8109
|
return "NA";
|
8106
8110
|
if (e.indexOf("gitlab") > 0 || e.indexOf("github") > 0 || e.indexOf("azure") > 0) {
|
@@ -8144,7 +8148,7 @@ function fo(e) {
|
|
8144
8148
|
const kh = (e, s) => {
|
8145
8149
|
if (!e) return null;
|
8146
8150
|
const n = e.trim().replace(/\.git$/, "").replace(/\/$/, "");
|
8147
|
-
return n.includes(
|
8151
|
+
return n.includes(fs.GITLAB) ? `${n}/-/tree/${s}` : n.includes(fs.GITHUB) ? `${n}/tree/${s}` : n.includes(fs.BITBUCKET) ? `${n}/branch/${s}` : n.includes(fs.AZURE) ? `${n}/src/branch/${s}` : null;
|
8148
8152
|
}, Uh = async () => {
|
8149
8153
|
const { result: e } = await ae(Y.APP_LIST_MIN);
|
8150
8154
|
return e ? e.map((s) => ({
|
@@ -8261,7 +8265,7 @@ const kh = (e, s) => {
|
|
8261
8265
|
}
|
8262
8266
|
return s(!1), null;
|
8263
8267
|
}, isDownloading: e };
|
8264
|
-
},
|
8268
|
+
}, Ps = (e, s) => {
|
8265
8269
|
if (s?.required && (typeof s.required == "object" ? s.required.value : s.required) && (e == null || e === ""))
|
8266
8270
|
return [typeof s.required == "object" ? s.required.message : "This is a required field"];
|
8267
8271
|
const n = [], a = s?.pattern;
|
@@ -8281,7 +8285,7 @@ const kh = (e, s) => {
|
|
8281
8285
|
n((P) => {
|
8282
8286
|
const L = { ...P, [b]: S };
|
8283
8287
|
if ((e?.validationMode ?? "onChange") === "onChange" || u[b] || i[b]) {
|
8284
|
-
const D = m(L), $ =
|
8288
|
+
const D = m(L), $ = Ps(S, D[b]);
|
8285
8289
|
c({ ...i, [b]: $ });
|
8286
8290
|
}
|
8287
8291
|
return L;
|
@@ -8290,7 +8294,7 @@ const kh = (e, s) => {
|
|
8290
8294
|
r((P) => ({ ...P, [b]: !Yn(j[b], S) }));
|
8291
8295
|
}, _ = (b, x) => () => {
|
8292
8296
|
if (x || n({ ...s, [b]: s[b]?.trim() }), e?.validationMode === "onBlur") {
|
8293
|
-
const v = m(), I =
|
8297
|
+
const v = m(), I = Ps(s[b], v[b]);
|
8294
8298
|
I && !u[b] && d({ ...u, [b]: !0 }), c({ ...i, [b]: I });
|
8295
8299
|
}
|
8296
8300
|
}, g = (b) => () => {
|
@@ -8313,7 +8317,7 @@ const kh = (e, s) => {
|
|
8313
8317
|
if (I) {
|
8314
8318
|
const T = {};
|
8315
8319
|
if (Object.keys(I).forEach((S) => {
|
8316
|
-
const j = I[S], P =
|
8320
|
+
const j = I[S], P = Ps(s[S], j);
|
8317
8321
|
P && (T[S] = P);
|
8318
8322
|
}), Object.keys(T).length) {
|
8319
8323
|
c(T), x?.(T, v);
|
@@ -8327,7 +8331,7 @@ const kh = (e, s) => {
|
|
8327
8331
|
if (Array.isArray(b)) {
|
8328
8332
|
const v = {}, I = b.map((T) => {
|
8329
8333
|
if (x) {
|
8330
|
-
const S = x[T], j =
|
8334
|
+
const S = x[T], j = Ps(s[T], S);
|
8331
8335
|
return v[T] = j, j;
|
8332
8336
|
}
|
8333
8337
|
return null;
|
@@ -8335,7 +8339,7 @@ const kh = (e, s) => {
|
|
8335
8339
|
return Object.keys(v).length && c({ ...i, ...v }), I;
|
8336
8340
|
}
|
8337
8341
|
if (x) {
|
8338
|
-
const v = x[b], I =
|
8342
|
+
const v = x[b], I = Ps(s[b], v);
|
8339
8343
|
return I && c({ ...i, [b]: I }), I;
|
8340
8344
|
}
|
8341
8345
|
return null;
|
@@ -8533,7 +8537,7 @@ const kh = (e, s) => {
|
|
8533
8537
|
"a",
|
8534
8538
|
{
|
8535
8539
|
className: "fs-13 fw-6 cb-5 dc__no-decor",
|
8536
|
-
href:
|
8540
|
+
href: bs.BLOB_STORAGE,
|
8537
8541
|
target: "_blank",
|
8538
8542
|
rel: "noreferrer",
|
8539
8543
|
children: Se.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage
|
@@ -8561,7 +8565,7 @@ const kh = (e, s) => {
|
|
8561
8565
|
children: [
|
8562
8566
|
/* @__PURE__ */ t.jsx("span", { className: "cb-5 fs-12 fw-6 lh-20", children: o ? "Show less" : "Show more" }),
|
8563
8567
|
/* @__PURE__ */ t.jsx(
|
8564
|
-
|
8568
|
+
es,
|
8565
8569
|
{
|
8566
8570
|
className: `dc__no-shrink icon-dim-16 flex scb-5 dc__transition--transform ${o ? "dc__flip-180" : ""}`
|
8567
8571
|
}
|
@@ -8663,12 +8667,12 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8663
8667
|
if (e.external)
|
8664
8668
|
e.externalType ? r.external = {
|
8665
8669
|
displayName: "Data type",
|
8666
|
-
value:
|
8670
|
+
value: gn[s][e.externalType]
|
8667
8671
|
} : r.external = {
|
8668
8672
|
displayName: "Data type",
|
8669
|
-
value: s === "Secret" ?
|
8673
|
+
value: s === "Secret" ? gn[s].KubernetesSecret : gn[s].KubernetesConfigMap
|
8670
8674
|
};
|
8671
|
-
else if (r.external = { displayName: "Data type", value:
|
8675
|
+
else if (r.external = { displayName: "Data type", value: gn[s][""] }, s === "Secret" && n.codeEditorValue.value) {
|
8672
8676
|
const o = JSON.parse(n.codeEditorValue.value);
|
8673
8677
|
let l = {};
|
8674
8678
|
n.codeEditorValue?.resolvedValue && (l = JSON.parse(n.codeEditorValue.resolvedValue));
|
@@ -8704,7 +8708,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8704
8708
|
};
|
8705
8709
|
}
|
8706
8710
|
return s === "Secret" && e.roleARN && (r.roleARN = { displayName: "Role ARN", value: e.roleARN }), r;
|
8707
|
-
},
|
8711
|
+
}, Xs = (e, s, n) => {
|
8708
8712
|
let a;
|
8709
8713
|
const r = { codeEditorValue: e.codeEditorValue, values: {} };
|
8710
8714
|
return delete e.codeEditorValue, s === nt.DEPLOYMENT_TEMPLATE.VALUE ? a = Qh(e) : s === nt.PIPELINE_STRATEGY.VALUE ? a = Zh(e) : a = e_(
|
@@ -8773,7 +8777,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8773
8777
|
children: [
|
8774
8778
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__transparent dc__align-items-center", children: [
|
8775
8779
|
/* @__PURE__ */ t.jsx(
|
8776
|
-
|
8780
|
+
es,
|
8777
8781
|
{
|
8778
8782
|
className: `icon-dim-16 dc__no-shrink dc__transition--transform scn-0 ${s ? "" : "dc__flip-n90 dc__opacity-0_5"}`
|
8779
8783
|
}
|
@@ -8824,7 +8828,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8824
8828
|
] })
|
8825
8829
|
] });
|
8826
8830
|
}, _l = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
8827
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
8831
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(js, { className: "icon-dim-20" }) }),
|
8828
8832
|
/* @__PURE__ */ t.jsx("div", { className: "text-center cn-0 fs-14 fw-6", children: "Logs not available" }),
|
8829
8833
|
/* @__PURE__ */ t.jsx("div", { className: "text-center cn-0 fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
8830
8834
|
] }) }), s_ = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -8836,7 +8840,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8836
8840
|
"a",
|
8837
8841
|
{
|
8838
8842
|
className: "fs-13 fw-6 cb-5 dc__no-decor",
|
8839
|
-
href:
|
8843
|
+
href: bs.BLOB_STORAGE,
|
8840
8844
|
target: "_blank",
|
8841
8845
|
rel: "noreferrer",
|
8842
8846
|
children: "Configure blob storage"
|
@@ -8846,7 +8850,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8846
8850
|
] })
|
8847
8851
|
] }), n_ = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-grow-1 flex-align-center dc__height-inherit dark-background", children: e ? _l() : s_() }), a_ = (e, s) => {
|
8848
8852
|
const [n, a] = A([]);
|
8849
|
-
let r =
|
8853
|
+
let r = Nn;
|
8850
8854
|
const [o, l] = A(!1), [i, c] = A(1e3), u = X([]), d = X(null);
|
8851
8855
|
function m() {
|
8852
8856
|
a((N) => [...N, ...u.current]), u.current = [];
|
@@ -8856,16 +8860,16 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8856
8860
|
d.current && d.current.close && d.current.close();
|
8857
8861
|
}
|
8858
8862
|
function _(N) {
|
8859
|
-
N.type === "message" && (r =
|
8863
|
+
N.type === "message" && (r = Nn, u.current.push(N.data));
|
8860
8864
|
}
|
8861
8865
|
function g() {
|
8862
|
-
r =
|
8866
|
+
r = Nn, u.current = [], a([]);
|
8863
8867
|
}
|
8864
8868
|
function h() {
|
8865
|
-
r =
|
8869
|
+
r = Nn, a((N) => [...N, ...u.current]), u.current = [], d.current.close(), c(null);
|
8866
8870
|
}
|
8867
8871
|
function f() {
|
8868
|
-
u.current = [], d.current = new EventSource(e, { withCredentials: !0 }), d.current.addEventListener(
|
8872
|
+
u.current = [], d.current = new EventSource(e, { withCredentials: !0 }), d.current.addEventListener(En.MESSAGE, _), d.current.addEventListener(En.START_OF_STREAM, g), d.current.addEventListener(En.END_OF_STREAM, h), d.current.addEventListener(En.ERROR, E);
|
8869
8873
|
}
|
8870
8874
|
function E(N) {
|
8871
8875
|
r -= 1, d.current && d.current.close(), r > 0 ? f() : (l(!0), c(null));
|
@@ -8907,7 +8911,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8907
8911
|
}
|
8908
8912
|
const L = (k, W, le, se) => {
|
8909
8913
|
const Ee = m.length === 0, w = W ?? !0;
|
8910
|
-
return se ? le || w : Ee ? k !==
|
8914
|
+
return se ? le || w : Ee ? k !== gs.SUCCESS || le : w;
|
8911
8915
|
}, H = e.podStatus === _a.PENDING || !!(u && u.readyState <= 1), D = (k, W) => {
|
8912
8916
|
const le = m.reduce(
|
8913
8917
|
(y, U) => (y[U.stage] || (y[U.stage] = {}), y[U.stage][U.startTime] = U, y),
|
@@ -8926,7 +8930,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
8926
8930
|
!!W
|
8927
8931
|
);
|
8928
8932
|
else {
|
8929
|
-
const ut = H ?
|
8933
|
+
const ut = H ? gs.PROGRESSING : gs.FAILURE;
|
8930
8934
|
y.push({
|
8931
8935
|
stage: z || `Untitled stage ${M + 1}`,
|
8932
8936
|
startTime: ue || "",
|
@@ -9055,7 +9059,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9055
9059
|
"data-testid": "logs-previous-search-match",
|
9056
9060
|
"aria-label": "Focus the previous search result match",
|
9057
9061
|
disabled: !x,
|
9058
|
-
children: /* @__PURE__ */ t.jsx(
|
9062
|
+
children: /* @__PURE__ */ t.jsx(es, { className: "scn-0 dc__flip-180 icon-dim-14 dc__no-shrink" })
|
9059
9063
|
}
|
9060
9064
|
),
|
9061
9065
|
/* @__PURE__ */ t.jsx(
|
@@ -9067,7 +9071,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9067
9071
|
"data-testid": "logs-next-search-match",
|
9068
9072
|
"aria-label": "Focus the next search result match",
|
9069
9073
|
disabled: !x,
|
9070
|
-
children: /* @__PURE__ */ t.jsx(
|
9074
|
+
children: /* @__PURE__ */ t.jsx(es, { className: "scn-0 icon-dim-14 dc__no-shrink" })
|
9071
9075
|
}
|
9072
9076
|
)
|
9073
9077
|
] })
|
@@ -9168,7 +9172,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9168
9172
|
title: s || Se.CD_EMPTY_STATE.TITLE,
|
9169
9173
|
subTitle: n || Se.CD_EMPTY_STATE.SUBTITLE,
|
9170
9174
|
isButtonAvailable: !0,
|
9171
|
-
imageType:
|
9175
|
+
imageType: rs.Large,
|
9172
9176
|
renderButton: u
|
9173
9177
|
}
|
9174
9178
|
) });
|
@@ -9184,7 +9188,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9184
9188
|
{
|
9185
9189
|
className: `bcr-1 ${s === V.HELM_MANIFEST_PUSHED_TO_HELM_REPO ? "fs-13" : "flex left"} ${r ? "" : "er-2 br-4 bw-1"} p-8`,
|
9186
9190
|
children: [
|
9187
|
-
!r && /* @__PURE__ */ t.jsx(
|
9191
|
+
!r && /* @__PURE__ */ t.jsx(as, { className: "icon-dim-20 mr-8" }),
|
9188
9192
|
n,
|
9189
9193
|
s === V.HELM_MANIFEST_PUSHED_TO_HELM_REPO && /* @__PURE__ */ t.jsxs("ol", { className: "m-0 pl-20", children: [
|
9190
9194
|
/* @__PURE__ */ t.jsx("li", { children: "Ensure provided repository path is valid" }),
|
@@ -9213,9 +9217,9 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9213
9217
|
},
|
9214
9218
|
{ status: tt.Healthy, count: o, isSelected: tt.Healthy == s },
|
9215
9219
|
window._env_.FEATURE_CONFIG_DRIFT_ENABLE && {
|
9216
|
-
status:
|
9220
|
+
status: Js.drifted,
|
9217
9221
|
count: u,
|
9218
|
-
isSelected: s ===
|
9222
|
+
isSelected: s === Js.drifted
|
9219
9223
|
}
|
9220
9224
|
].filter(({ count: f }) => f > 0), _ = p.slice(
|
9221
9225
|
0,
|
@@ -9226,7 +9230,7 @@ const zT = (e, s, n) => ae(`app/history/deployed-configuration/${e}/${s}/${n}`),
|
|
9226
9230
|
{
|
9227
9231
|
isKebab: !0,
|
9228
9232
|
rootClassName: "flex p-4 dc__border dc__no-left-radius dc__right-radius-4 bcn-0 dc__hover-n50",
|
9229
|
-
children: /* @__PURE__ */ t.jsx(
|
9233
|
+
children: /* @__PURE__ */ t.jsx(es, { className: "icon-dim-14 scn-6" })
|
9230
9234
|
}
|
9231
9235
|
),
|
9232
9236
|
/* @__PURE__ */ t.jsx($e.Body, { rootClassName: "w-150 py-4 mt-4", style: { left: "136px" }, children: g.map((f) => /* @__PURE__ */ t.jsxs(
|
@@ -9290,7 +9294,7 @@ let bt = {
|
|
9290
9294
|
searchString: ""
|
9291
9295
|
};
|
9292
9296
|
const xo = () => {
|
9293
|
-
const e = It.getValue().filter((s) => !!(!bt.filterType && !bt.searchString || bt.filterType === "ALL" || bt.filterType.toLowerCase() === s.health?.status?.toLowerCase() || bt.filterType.toLowerCase() ===
|
9297
|
+
const e = It.getValue().filter((s) => !!(!bt.filterType && !bt.searchString || bt.filterType === "ALL" || bt.filterType.toLowerCase() === s.health?.status?.toLowerCase() || bt.filterType.toLowerCase() === Js.drifted && s.hasDrift));
|
9294
9298
|
Ln.next([...e]);
|
9295
9299
|
};
|
9296
9300
|
function _r(e, s, n) {
|
@@ -9379,6 +9383,9 @@ const u_ = (e, s) => {
|
|
9379
9383
|
a
|
9380
9384
|
), Xe.next({ ...e, appType: s }), It.next([...n]), Ln.next([...n]);
|
9381
9385
|
},
|
9386
|
+
clearAppDetails() {
|
9387
|
+
this.publishAppDetails({}, null);
|
9388
|
+
},
|
9382
9389
|
getAppDetails: () => Xe.getValue(),
|
9383
9390
|
getAppDetailsObservable: () => Xe.asObservable(),
|
9384
9391
|
getAppDetailsNodes: () => It.getValue(),
|
@@ -9492,7 +9499,7 @@ const u_ = (e, s) => {
|
|
9492
9499
|
/* @__PURE__ */ t.jsx("div", { className: "fs-13 fw-6 cn-7", children: f }, `header_${E}`)
|
9493
9500
|
)) }),
|
9494
9501
|
/* @__PURE__ */ t.jsx("div", { className: `resource-list fs-13 ${s ? "with-footer" : ""}`, children: c.length > 0 ? c.filter(
|
9495
|
-
(f) => l === Dn || l ===
|
9502
|
+
(f) => l === Dn || l === Js.drifted && f.hasDrift || f.health.status?.toLowerCase() === l
|
9496
9503
|
).map((f) => /* @__PURE__ */ t.jsxs(
|
9497
9504
|
"div",
|
9498
9505
|
{
|
@@ -9537,7 +9544,7 @@ const u_ = (e, s) => {
|
|
9537
9544
|
},
|
9538
9545
|
`${f.kind}/${f.name}`
|
9539
9546
|
)) : /* @__PURE__ */ t.jsx("div", { className: "flex dc__height-inherit mh-300", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__align-center", children: [
|
9540
|
-
/* @__PURE__ */ t.jsx(
|
9547
|
+
/* @__PURE__ */ t.jsx(js, { className: "icon-dim-20" }),
|
9541
9548
|
/* @__PURE__ */ t.jsx("div", { children: "Checking resources status" })
|
9542
9549
|
] }) }) }),
|
9543
9550
|
s && /* @__PURE__ */ t.jsxs("div", { className: "dc__position-fixed bcn-0 flexbox dc__content-space dc__border-top p-16 fs-13 fw-6 footer", children: [
|
@@ -9879,7 +9886,7 @@ const p_ = (e, s, n) => /* @__PURE__ */ t.jsxs("div", { children: [
|
|
9879
9886
|
)
|
9880
9887
|
] });
|
9881
9888
|
};
|
9882
|
-
let
|
9889
|
+
let bn = null;
|
9883
9890
|
const __ = ({
|
9884
9891
|
deploymentStatus: e,
|
9885
9892
|
deploymentAppType: s,
|
@@ -9894,7 +9901,7 @@ const __ = ({
|
|
9894
9901
|
const u = $t(), { url: d } = vt(), { appId: m, envId: p, triggerId: _ } = et(), [g, h] = A(
|
9895
9902
|
e?.toUpperCase() !== V.ABORTED
|
9896
9903
|
), f = X(l), E = f.current && i ? i() : zr(), [N, C] = A(E), b = () => {
|
9897
|
-
|
9904
|
+
bn && clearTimeout(bn);
|
9898
9905
|
}, x = () => {
|
9899
9906
|
Jh(m, p, !0, _, n, a).then((S) => {
|
9900
9907
|
e !== "Aborted" && v(S.result);
|
@@ -9904,16 +9911,16 @@ const __ = ({
|
|
9904
9911
|
h(!1);
|
9905
9912
|
});
|
9906
9913
|
};
|
9907
|
-
O(() => (s ===
|
9914
|
+
O(() => (s === _s.HELM && u.replace(`${d.replace("deployment-steps", "source-code")}`), r && x(), () => {
|
9908
9915
|
b();
|
9909
9916
|
}), [a]), O(() => {
|
9910
9917
|
f.current = l;
|
9911
9918
|
}, [l]);
|
9912
9919
|
const v = (S) => {
|
9913
9920
|
const j = f.current && i ? i(S) : zr(S);
|
9914
|
-
b(), j.deploymentStatus === re.INPROGRESS ?
|
9921
|
+
b(), j.deploymentStatus === re.INPROGRESS ? bn = setTimeout(() => {
|
9915
9922
|
x();
|
9916
|
-
}, 1e4) :
|
9923
|
+
}, 1e4) : bn = setTimeout(() => {
|
9917
9924
|
x();
|
9918
9925
|
}, 3e4), C(j);
|
9919
9926
|
}, I = () => {
|
@@ -10042,7 +10049,7 @@ const __ = ({
|
|
10042
10049
|
c
|
10043
10050
|
);
|
10044
10051
|
};
|
10045
|
-
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bcn-0", children: e.map(({ id: i, header: c, headerIconConfig: u, items: d, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(
|
10052
|
+
return /* @__PURE__ */ t.jsx("div", { className: "mw-none bcn-0", children: e.map(({ id: i, header: c, headerIconConfig: u, items: d, noItemsText: m, isExpanded: p }) => /* @__PURE__ */ t.jsxs(Ys, { children: [
|
10046
10053
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4 py-6 px-8 br-4 dc__hover-n50", children: [
|
10047
10054
|
/* @__PURE__ */ t.jsxs(
|
10048
10055
|
"button",
|
@@ -10096,12 +10103,12 @@ const El = {
|
|
10096
10103
|
added: "Added",
|
10097
10104
|
deleted: "Deleted",
|
10098
10105
|
noDiff: "No change"
|
10099
|
-
},
|
10106
|
+
}, Fs = {
|
10100
10107
|
hasDiff: ud,
|
10101
10108
|
added: md,
|
10102
10109
|
deleted: pd,
|
10103
10110
|
noDiff: null
|
10104
|
-
},
|
10111
|
+
}, Cn = {
|
10105
10112
|
hasDiff: "File has difference",
|
10106
10113
|
added: "File has been added",
|
10107
10114
|
deleted: "File has been deleted",
|
@@ -10137,9 +10144,9 @@ const El = {
|
|
10137
10144
|
strikeThrough: u && v === lt.DELETED,
|
10138
10145
|
...!d && v !== lt.NO_DIFF ? {
|
10139
10146
|
iconConfig: {
|
10140
|
-
Icon: u ?
|
10147
|
+
Icon: u ? Fs[v] : Fs.hasDiff,
|
10141
10148
|
tooltipProps: {
|
10142
|
-
content: u ?
|
10149
|
+
content: u ? Cn[v] : Cn.hasDiff,
|
10143
10150
|
arrow: !1,
|
10144
10151
|
placement: "right"
|
10145
10152
|
}
|
@@ -10153,7 +10160,7 @@ const El = {
|
|
10153
10160
|
const { value: x } = b.target;
|
10154
10161
|
i?.activeTab !== x && i?.onClick?.(x);
|
10155
10162
|
}, f = () => /* @__PURE__ */ t.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
|
10156
|
-
a && /* @__PURE__ */ t.jsx(
|
10163
|
+
a && /* @__PURE__ */ t.jsx(ns, { to: a, children: /* @__PURE__ */ t.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ t.jsx(Je, { className: "icon-dim-16 fcn-6" }) }) }),
|
10157
10164
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: r })
|
10158
10165
|
] }), E = () => {
|
10159
10166
|
const { tabs: b, activeTab: x } = i;
|
@@ -10170,7 +10177,7 @@ const El = {
|
|
10170
10177
|
) });
|
10171
10178
|
}, N = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10172
10179
|
n.map(({ title: b, href: x, onClick: v, diffState: I, Icon: T }) => {
|
10173
|
-
const S = u ?
|
10180
|
+
const S = u ? Fs[I] : Fs.hasDiff;
|
10174
10181
|
return /* @__PURE__ */ t.jsxs(
|
10175
10182
|
ze,
|
10176
10183
|
{
|
@@ -10185,7 +10192,7 @@ const El = {
|
|
10185
10192
|
Q,
|
10186
10193
|
{
|
10187
10194
|
className: "default-tt",
|
10188
|
-
content: u ?
|
10195
|
+
content: u ? Cn[I] : Cn.hasDiff,
|
10189
10196
|
arrow: !1,
|
10190
10197
|
placement: "right",
|
10191
10198
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(S, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
@@ -10198,11 +10205,11 @@ const El = {
|
|
10198
10205
|
}),
|
10199
10206
|
/* @__PURE__ */ t.jsx(g_, { config: _, tabType: "navLink", onCollapseBtnClick: g }),
|
10200
10207
|
o && /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
10201
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: l ? /* @__PURE__ */ t.jsx(ir, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(
|
10208
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: l ? /* @__PURE__ */ t.jsx(ir, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
|
10202
10209
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${l ? "cr-5" : "cn-9"}`, children: o })
|
10203
10210
|
] })
|
10204
10211
|
] }), C = () => e ? ["90", "70", "50"].map((b) => /* @__PURE__ */ t.jsx(x_, { width: b }, b)) : c?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
10205
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
10212
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-16 fcn-7" }) }),
|
10206
10213
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
|
10207
10214
|
] }) : N();
|
10208
10215
|
return /* @__PURE__ */ t.jsxs("div", { className: "bcn-0 dc__border-right flexbox-col dc__overflow-hidden", children: [
|
@@ -10230,7 +10237,7 @@ const El = {
|
|
10230
10237
|
}) => {
|
10231
10238
|
const f = _ === "row", E = () => {
|
10232
10239
|
switch (i) {
|
10233
|
-
case
|
10240
|
+
case rs.Large:
|
10234
10241
|
return { width: "250px", height: "200px" };
|
10235
10242
|
default:
|
10236
10243
|
return { width: "200px", height: "160px" };
|
@@ -10335,7 +10342,7 @@ const El = {
|
|
10335
10342
|
reloadClass: a,
|
10336
10343
|
heightToDeduct: r,
|
10337
10344
|
redirectURL: o,
|
10338
|
-
imageType: l =
|
10345
|
+
imageType: l = rs.Large
|
10339
10346
|
}) => (() => {
|
10340
10347
|
switch (e) {
|
10341
10348
|
case Te.BAD_REQUEST:
|
@@ -10345,7 +10352,7 @@ const El = {
|
|
10345
10352
|
code: Te.BAD_REQUEST,
|
10346
10353
|
title: je.BAD_REQUEST,
|
10347
10354
|
subTitle: n || je.BAD_REQUEST_MESSAGE,
|
10348
|
-
image:
|
10355
|
+
image: Ms,
|
10349
10356
|
imageType: l,
|
10350
10357
|
heightToDeduct: r,
|
10351
10358
|
reload: s
|
@@ -10395,7 +10402,7 @@ const El = {
|
|
10395
10402
|
code: Te.INTERNAL_SERVER_ERROR,
|
10396
10403
|
title: je.INTERNAL_SERVER_ERROR,
|
10397
10404
|
subTitle: n || je.INTERNAL_SERVER_ERROR_MESSAGE,
|
10398
|
-
image:
|
10405
|
+
image: Ms,
|
10399
10406
|
imageType: l,
|
10400
10407
|
heightToDeduct: r,
|
10401
10408
|
reload: s
|
@@ -10408,7 +10415,7 @@ const El = {
|
|
10408
10415
|
code: Te.BAD_GATEWAY,
|
10409
10416
|
title: je.BAD_GATEWAY,
|
10410
10417
|
subTitle: n || je.BAD_GATEWAY_MESSAGE,
|
10411
|
-
image:
|
10418
|
+
image: Ms,
|
10412
10419
|
imageType: l,
|
10413
10420
|
heightToDeduct: r,
|
10414
10421
|
reload: s
|
@@ -10421,7 +10428,7 @@ const El = {
|
|
10421
10428
|
code: Te.SERVICE_TEMPORARY_UNAVAILABLE,
|
10422
10429
|
title: je.SERVICE_TEMPORARY_UNAVAILABLE,
|
10423
10430
|
subTitle: n || je.SERVICE_TEMPORARY_UNAVAILABLE_MESSAGE,
|
10424
|
-
image:
|
10431
|
+
image: Ms,
|
10425
10432
|
imageType: l,
|
10426
10433
|
heightToDeduct: r,
|
10427
10434
|
reload: s
|
@@ -10600,7 +10607,7 @@ const El = {
|
|
10600
10607
|
onClick: i,
|
10601
10608
|
children: [
|
10602
10609
|
/* @__PURE__ */ t.jsx(
|
10603
|
-
|
10610
|
+
es,
|
10604
10611
|
{
|
10605
10612
|
className: "icon-dim-16 fsn-6 rotate",
|
10606
10613
|
style: { "--rotateBy": l ? "360deg" : "270deg" }
|
@@ -10708,11 +10715,11 @@ const El = {
|
|
10708
10715
|
n,
|
10709
10716
|
a,
|
10710
10717
|
r
|
10711
|
-
), i = n === _t.Secret ? nt.SECRET.VALUE : nt.CONFIGMAP.VALUE, c =
|
10718
|
+
), i = n === _t.Secret ? nt.SECRET.VALUE : nt.CONFIGMAP.VALUE, c = Xs(
|
10712
10719
|
{ ...e || {}, codeEditorValue: o },
|
10713
10720
|
i,
|
10714
10721
|
n === _t.Secret && !a
|
10715
|
-
), u =
|
10722
|
+
), u = Xs(
|
10716
10723
|
{ ...s || {}, codeEditorValue: l },
|
10717
10724
|
i,
|
10718
10725
|
n === _t.Secret && !r
|
@@ -10727,7 +10734,7 @@ const El = {
|
|
10727
10734
|
displayName: "data",
|
10728
10735
|
value: n ? JSON.stringify(n) : ""
|
10729
10736
|
};
|
10730
|
-
return
|
10737
|
+
return Xs(
|
10731
10738
|
{
|
10732
10739
|
...T_(e, s),
|
10733
10740
|
codeEditorValue: a
|
@@ -10739,7 +10746,7 @@ const El = {
|
|
10739
10746
|
displayName: "data",
|
10740
10747
|
value: e.data
|
10741
10748
|
};
|
10742
|
-
return
|
10749
|
+
return Xs(
|
10743
10750
|
{ codeEditorValue: s },
|
10744
10751
|
nt.DEPLOYMENT_TEMPLATE.VALUE
|
10745
10752
|
);
|
@@ -10748,7 +10755,7 @@ const El = {
|
|
10748
10755
|
displayName: "data",
|
10749
10756
|
value: e?.data ? JSON.stringify(e.data) : ""
|
10750
10757
|
};
|
10751
|
-
return
|
10758
|
+
return Xs(
|
10752
10759
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: s },
|
10753
10760
|
nt.PIPELINE_STRATEGY.VALUE
|
10754
10761
|
);
|
@@ -10758,10 +10765,10 @@ const El = {
|
|
10758
10765
|
n = !0;
|
10759
10766
|
else if (s) {
|
10760
10767
|
const o = e;
|
10761
|
-
o.deploymentDraftData?.configData[0].draftMetadata.draftState ===
|
10768
|
+
o.deploymentDraftData?.configData[0].draftMetadata.draftState === Us.Init ? a = !0 : o.deploymentDraftData?.configData[0].draftMetadata.draftState === Us.AwaitApproval && (r = !0);
|
10762
10769
|
} else {
|
10763
10770
|
const o = e;
|
10764
|
-
o.draftMetadata?.draftState ===
|
10771
|
+
o.draftMetadata?.draftState === Us.Init ? a = !0 : o.draftMetadata?.draftState === Us.AwaitApproval && (r = !0);
|
10765
10772
|
}
|
10766
10773
|
return n ? /* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Does not exist" }) : a ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
10767
10774
|
/* @__PURE__ */ t.jsx(ar, { className: "icon-dim-16 scr-5" }),
|
@@ -11027,7 +11034,7 @@ const El = {
|
|
11027
11034
|
previousDeployments: []
|
11028
11035
|
}
|
11029
11036
|
), Tl = (e, s) => e === s ? () => /* @__PURE__ */ t.jsx(
|
11030
|
-
|
11037
|
+
os,
|
11031
11038
|
{
|
11032
11039
|
useInfoIcon: !0,
|
11033
11040
|
title: "No diff in configurations",
|
@@ -11071,12 +11078,12 @@ const El = {
|
|
11071
11078
|
}, [l]);
|
11072
11079
|
const h = (b) => b.map((x, v) => {
|
11073
11080
|
if (x.type === "string")
|
11074
|
-
return /* @__PURE__ */ t.jsxs(
|
11081
|
+
return /* @__PURE__ */ t.jsxs(Ys, { children: [
|
11075
11082
|
typeof x.text == "string" ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: x.text }) : x.text,
|
11076
11083
|
!r?.hideDivider && v !== b.length - 1 && /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
|
11077
11084
|
] }, x.id);
|
11078
11085
|
const { selectPickerProps: I } = x;
|
11079
|
-
return /* @__PURE__ */ t.jsxs(
|
11086
|
+
return /* @__PURE__ */ t.jsxs(Ys, { children: [
|
11080
11087
|
/* @__PURE__ */ t.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ t.jsx(
|
11081
11088
|
kt,
|
11082
11089
|
{
|
@@ -11289,7 +11296,7 @@ const Lo = () => ({
|
|
11289
11296
|
});
|
11290
11297
|
}
|
11291
11298
|
return O(() => (window.addEventListener("resize", n, !1), () => window.removeEventListener("resize", n, !1)), []), e;
|
11292
|
-
},
|
11299
|
+
}, xs = 1, O_ = {
|
11293
11300
|
PAGE_SIZE: "pageSize",
|
11294
11301
|
PAGE_NUMBER: "pageNumber",
|
11295
11302
|
SEARCH_KEY: "searchKey",
|
@@ -11326,7 +11333,7 @@ const Lo = () => ({
|
|
11326
11333
|
const T = i.get(Ro), S = i.get(Ea), j = i.get(Oo), P = i.get(Do), H = i.get(Po) || e || "", D = Object.values(de).includes(P) ? P : de.ASC, $ = c(i);
|
11327
11334
|
return {
|
11328
11335
|
pageSize: Number(T) || ya,
|
11329
|
-
pageNumber: Number(S) ||
|
11336
|
+
pageNumber: Number(S) || xs,
|
11330
11337
|
searchKey: j || "",
|
11331
11338
|
sortBy: H,
|
11332
11339
|
// sort order should only be applied if the key is available
|
@@ -11336,8 +11343,8 @@ const Lo = () => ({
|
|
11336
11343
|
}, [i]), h = u * (d - 1), f = (T, S) => {
|
11337
11344
|
i.set(T, String(S)), r.replace({ search: i.toString() });
|
11338
11345
|
}, E = () => {
|
11339
|
-
if (d !==
|
11340
|
-
f(Ea,
|
11346
|
+
if (d !== xs) {
|
11347
|
+
f(Ea, xs);
|
11341
11348
|
return;
|
11342
11349
|
}
|
11343
11350
|
r.replace({ search: i.toString() });
|
@@ -11373,7 +11380,7 @@ const Lo = () => ({
|
|
11373
11380
|
}), wo(n, JSON.stringify(c(i))), E();
|
11374
11381
|
}
|
11375
11382
|
};
|
11376
|
-
}, Il = Bt(null), la = () =>
|
11383
|
+
}, Il = Bt(null), la = () => en(Il), Tn = (e) => {
|
11377
11384
|
if (!e)
|
11378
11385
|
throw new Error("keys undefined");
|
11379
11386
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -11381,7 +11388,7 @@ const Lo = () => ({
|
|
11381
11388
|
keys: s,
|
11382
11389
|
id: s.join()
|
11383
11390
|
};
|
11384
|
-
},
|
11391
|
+
}, Sn = (e) => {
|
11385
11392
|
if (!e || !Array.isArray(e) || !e.every((s) => typeof s == "function"))
|
11386
11393
|
throw new Error("callback stack is undefined");
|
11387
11394
|
}, P_ = ["input", "textarea", "select"], D_ = 300, M_ = ({
|
@@ -11392,38 +11399,38 @@ const Lo = () => ({
|
|
11392
11399
|
}) => {
|
11393
11400
|
const r = X(!1), o = X({}), l = X(/* @__PURE__ */ new Set()), i = X(-1), c = e ?? P_, u = ye(
|
11394
11401
|
({ keys: E, callback: N, description: C = "" }) => {
|
11395
|
-
const { keys: b, id: x } =
|
11402
|
+
const { keys: b, id: x } = Tn(E);
|
11396
11403
|
if (typeof N != "function")
|
11397
11404
|
throw new Error("callback provided is not a function");
|
11398
11405
|
const v = o.current[x] && gi(o.current[x].keys, E) ? o.current[x] : null;
|
11399
11406
|
if (v) {
|
11400
|
-
|
11407
|
+
Sn(v.callbackStack), v.callbackStack.push(N);
|
11401
11408
|
return;
|
11402
11409
|
}
|
11403
11410
|
o.current[x] = { keys: b, callbackStack: [N], description: C };
|
11404
11411
|
},
|
11405
11412
|
[]
|
11406
11413
|
), d = ye((E) => {
|
11407
|
-
const { id: N } =
|
11414
|
+
const { id: N } = Tn(E);
|
11408
11415
|
if (!o.current[N])
|
11409
11416
|
return;
|
11410
11417
|
const { callbackStack: C } = o.current[N];
|
11411
|
-
|
11418
|
+
Sn(C), C.pop(), C.length || delete o.current[N];
|
11412
11419
|
}, []), m = ye((E) => {
|
11413
11420
|
r.current = E;
|
11414
11421
|
}, []), p = ye((E) => {
|
11415
|
-
const { id: N } =
|
11422
|
+
const { id: N } = Tn(E);
|
11416
11423
|
if (!o.current[N])
|
11417
11424
|
return;
|
11418
11425
|
const { callbackStack: C } = o.current[N];
|
11419
|
-
|
11426
|
+
Sn(C), C[C.length - 1]();
|
11420
11427
|
}, []), _ = ye(() => {
|
11421
11428
|
if (!l.current.size)
|
11422
11429
|
return;
|
11423
|
-
const { id: E } =
|
11430
|
+
const { id: E } = Tn(Array.from(l.current.values()));
|
11424
11431
|
if (o.current[E]) {
|
11425
11432
|
const { callbackStack: N } = o.current[E];
|
11426
|
-
|
11433
|
+
Sn(N), N[N.length - 1]();
|
11427
11434
|
}
|
11428
11435
|
l.current.clear(), i.current > -1 && (clearTimeout(i.current), i.current = -1);
|
11429
11436
|
}, []), g = ye((E) => {
|
@@ -11454,11 +11461,11 @@ const Lo = () => ({
|
|
11454
11461
|
sortBy: e
|
11455
11462
|
}), [a, r] = A(""), { sortBy: o, sortOrder: l } = s, [i, c] = A({
|
11456
11463
|
pageSize: ya,
|
11457
|
-
pageNumber:
|
11464
|
+
pageNumber: xs
|
11458
11465
|
}), u = i.pageSize * (i.pageNumber - 1), d = () => {
|
11459
11466
|
c((f) => ({
|
11460
11467
|
...f,
|
11461
|
-
pageNumber:
|
11468
|
+
pageNumber: xs
|
11462
11469
|
}));
|
11463
11470
|
};
|
11464
11471
|
return {
|
@@ -11481,7 +11488,7 @@ const Lo = () => ({
|
|
11481
11488
|
sortBy: e
|
11482
11489
|
}), c({
|
11483
11490
|
pageSize: ya,
|
11484
|
-
pageNumber:
|
11491
|
+
pageNumber: xs
|
11485
11492
|
});
|
11486
11493
|
},
|
11487
11494
|
...i,
|
@@ -11500,7 +11507,7 @@ const Lo = () => ({
|
|
11500
11507
|
offset: u
|
11501
11508
|
};
|
11502
11509
|
}, U_ = (e) => {
|
11503
|
-
const s =
|
11510
|
+
const s = Fs[e];
|
11504
11511
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-6", children: [
|
11505
11512
|
s && /* @__PURE__ */ t.jsx(s, { className: "icon-dim-16" }),
|
11506
11513
|
/* @__PURE__ */ t.jsx("span", { className: `fs-12 lh-20 ${Nl[e]}`, children: El[e] })
|
@@ -11556,7 +11563,7 @@ const Lo = () => ({
|
|
11556
11563
|
/* @__PURE__ */ t.jsx("span", { className: "dc__truncate", children: s === 1 ? "auto trigger" : n })
|
11557
11564
|
] }),
|
11558
11565
|
l && r && r(l, o === l?.id)
|
11559
|
-
] }), V_ = (e) => Array.from(e).filter(([, s]) => s.stage ===
|
11566
|
+
] }), V_ = (e) => Array.from(e).filter(([, s]) => s.stage === Gs.DEPLOY).map(([, s]) => s), G_ = ({
|
11560
11567
|
pipelineDeployments: e,
|
11561
11568
|
wfrId: s
|
11562
11569
|
}) => {
|
@@ -11630,7 +11637,7 @@ const Lo = () => ({
|
|
11630
11637
|
name: "deployment-config-diff-deployment-selector",
|
11631
11638
|
inputId: "deployment-config-diff-deployment-selector",
|
11632
11639
|
classNamePrefix: "deployment-config-diff-deployment-selector",
|
11633
|
-
variant:
|
11640
|
+
variant: Ss.BORDER_LESS,
|
11634
11641
|
options: v,
|
11635
11642
|
placeholder: "Select Deployment",
|
11636
11643
|
value: Ha(v, f, null),
|
@@ -11671,7 +11678,7 @@ const Lo = () => ({
|
|
11671
11678
|
scrollIntoViewId: `${g}${h ? `-${h}` : ""}`,
|
11672
11679
|
navHelpText: P(),
|
11673
11680
|
isNavHelpTextShowingError: d,
|
11674
|
-
goBackURL:
|
11681
|
+
goBackURL: Xt(p.split("/:resourceType")[0], { ..._ }),
|
11675
11682
|
selectorsConfig: j,
|
11676
11683
|
sortingConfig: H,
|
11677
11684
|
scopeVariablesConfig: D
|
@@ -11715,7 +11722,7 @@ const Lo = () => ({
|
|
11715
11722
|
return ee.status !== "fulfilled" || !ee.value || ee.value.forEach((G, ie) => {
|
11716
11723
|
Z[ie].status !== "fulfilled" || !Z[ie].value || Z[ie].value.result.isAppAdmin || (Z[ie].value.result.secretsData = G.secretsData);
|
11717
11724
|
}), Z;
|
11718
|
-
}, [g, E]), I = ($, ee) => `${
|
11725
|
+
}, [g, E]), I = ($, ee) => `${Xt(c, { ...u })}/${$}${ee ? `/${ee}` : ""}${m}`, T = ne(() => {
|
11719
11726
|
if (!b && x) {
|
11720
11727
|
const $ = f && x[1].status === "fulfilled" ? x[1].value.result : {
|
11721
11728
|
configMapData: null,
|
@@ -11749,7 +11756,7 @@ const Lo = () => ({
|
|
11749
11756
|
subTitle: "Configurations used for this deployment execution is not available"
|
11750
11757
|
}
|
11751
11758
|
) }) : /* @__PURE__ */ t.jsxs(ri, { children: [
|
11752
|
-
/* @__PURE__ */ t.jsx(
|
11759
|
+
/* @__PURE__ */ t.jsx(qt, { path: `${c}/:resourceType(${Object.values(Me).join("|")})/:resourceName?`, children: /* @__PURE__ */ t.jsx(
|
11753
11760
|
Y_,
|
11754
11761
|
{
|
11755
11762
|
...T,
|
@@ -11769,7 +11776,7 @@ const Lo = () => ({
|
|
11769
11776
|
isCompareDeploymentConfigNotAvailable: P
|
11770
11777
|
}
|
11771
11778
|
) }),
|
11772
|
-
/* @__PURE__ */ t.jsx(
|
11779
|
+
/* @__PURE__ */ t.jsx(qt, { children: S && !b ? /* @__PURE__ */ t.jsx(ia, { code: D.code, reload: D.reload }) : /* @__PURE__ */ t.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bcn-0 h-100", children: H ? /* @__PURE__ */ t.jsx(Ie, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
11773
11780
|
/* @__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" }),
|
11774
11781
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
|
11775
11782
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(j).map(
|
@@ -11972,7 +11979,7 @@ const $e = ({
|
|
11972
11979
|
$e.Button = K_;
|
11973
11980
|
$e.Body = z_;
|
11974
11981
|
const wl = J.createContext(null);
|
11975
|
-
function
|
11982
|
+
function dn() {
|
11976
11983
|
const e = J.useContext(wl);
|
11977
11984
|
if (!e)
|
11978
11985
|
throw new Error("Select compound components cannot be rendered outside the Toggle component");
|
@@ -12050,7 +12057,7 @@ const Ct = ({
|
|
12050
12057
|
name: l = "",
|
12051
12058
|
rootClassName: i = ""
|
12052
12059
|
}) => {
|
12053
|
-
const { selected: c, searchString: u, valueComparator: d, handleClick: m } =
|
12060
|
+
const { selected: c, searchString: u, valueComparator: d, handleClick: m } = dn();
|
12054
12061
|
return o = o || c === n, typeof n == "object" && (o = o || d(n)), l.includes(u) ? /* @__PURE__ */ t.jsx(
|
12055
12062
|
"div",
|
12056
12063
|
{
|
@@ -12074,7 +12081,7 @@ const Ct = ({
|
|
12074
12081
|
arrowAsset: r = "",
|
12075
12082
|
hideArrow: o = !1
|
12076
12083
|
}) => {
|
12077
|
-
const { popupOpen: l, loading: i } =
|
12084
|
+
const { popupOpen: l, loading: i } = dn();
|
12078
12085
|
return /* @__PURE__ */ t.jsxs(
|
12079
12086
|
"div",
|
12080
12087
|
{
|
@@ -12095,7 +12102,7 @@ const Ct = ({
|
|
12095
12102
|
}
|
12096
12103
|
);
|
12097
12104
|
}, q_ = ({ placeholder: e = "search", style: s = {}, inputStyle: n = {}, rootClassName: a = "" }) => {
|
12098
|
-
const { searchString: r, search: o } =
|
12105
|
+
const { searchString: r, search: o } = dn();
|
12099
12106
|
return /* @__PURE__ */ t.jsxs(
|
12100
12107
|
"div",
|
12101
12108
|
{
|
@@ -12120,7 +12127,7 @@ const Ct = ({
|
|
12120
12127
|
}
|
12121
12128
|
);
|
12122
12129
|
}, Dl = ({ api: e }) => {
|
12123
|
-
const { loading: s, setLoading: n } =
|
12130
|
+
const { loading: s, setLoading: n } = dn();
|
12124
12131
|
return O(() => {
|
12125
12132
|
async function a() {
|
12126
12133
|
n(!0);
|
@@ -12135,7 +12142,7 @@ const Ct = ({
|
|
12135
12142
|
a();
|
12136
12143
|
}, []), null;
|
12137
12144
|
}, J_ = ({ rootClassName: e = "", style: s = {} }) => {
|
12138
|
-
const { handleClick: n } =
|
12145
|
+
const { handleClick: n } = dn();
|
12139
12146
|
return /* @__PURE__ */ t.jsx(
|
12140
12147
|
"div",
|
12141
12148
|
{
|
@@ -12250,7 +12257,7 @@ const jt = ({
|
|
12250
12257
|
}
|
12251
12258
|
) });
|
12252
12259
|
};
|
12253
|
-
var
|
12260
|
+
var hs = /* @__PURE__ */ ((e) => (e.vsDarkDT = "vs-dark--dt", e.deleteDraft = "delete-draft", e.unpublished = "unpublished", e.vs = "vs", e.networkStatusInterface = "network-status-interface", e))(hs || {}), eg = /* @__PURE__ */ ((e) => (e.reInit = "reInit", e.submitLoading = "submitLoading", e.overrideLoading = "overrideLoading", e.success = "success", e))(eg || {});
|
12254
12261
|
const tg = (e, s) => {
|
12255
12262
|
switch (s.type) {
|
12256
12263
|
case "changeLanguage":
|
@@ -12274,12 +12281,12 @@ const tg = (e, s) => {
|
|
12274
12281
|
noParsing: r
|
12275
12282
|
}) => ({
|
12276
12283
|
mode: e,
|
12277
|
-
theme: s ||
|
12284
|
+
theme: s || hs.vs,
|
12278
12285
|
code: n,
|
12279
12286
|
diffMode: a,
|
12280
|
-
noParsing: [
|
12287
|
+
noParsing: [Cs.JSON, Cs.YAML].includes(e) ? r : !0
|
12281
12288
|
}), kl = J.createContext(null);
|
12282
|
-
function
|
12289
|
+
function ls() {
|
12283
12290
|
const e = J.useContext(kl);
|
12284
12291
|
if (!e)
|
12285
12292
|
throw new Error("cannot be rendered outside the component");
|
@@ -12288,7 +12295,7 @@ function is() {
|
|
12288
12295
|
const ng = 100, yt = J.memo(
|
12289
12296
|
({
|
12290
12297
|
value: e,
|
12291
|
-
mode: s =
|
12298
|
+
mode: s = Cs.JSON,
|
12292
12299
|
noParsing: n = !1,
|
12293
12300
|
defaultValue: a = "",
|
12294
12301
|
children: r,
|
@@ -12317,7 +12324,7 @@ const ng = 100, yt = J.memo(
|
|
12317
12324
|
const S = X(null), j = X(null), { width: P, height: L } = vl(), H = J.useCallback(tg, []), [D, $] = Nc(H, sg({ mode: s, theme: _, value: e, diffView: p, noParsing: n })), [, ee, Z, G] = Yo(D.code, o, D.mode, !D.noParsing), [, ie, Ce] = Yo(a, o, D.mode, !D.noParsing), [fe, Ae] = A(
|
12318
12325
|
I ? ng : i
|
12319
12326
|
), k = X(d);
|
12320
|
-
k.current = d,
|
12327
|
+
k.current = d, Ls.defineTheme(hs.vsDarkDT, {
|
12321
12328
|
base: "vs-dark",
|
12322
12329
|
inherit: !0,
|
12323
12330
|
rules: [
|
@@ -12327,7 +12334,7 @@ const ng = 100, yt = J.memo(
|
|
12327
12334
|
colors: {
|
12328
12335
|
"editor.background": "#0B0F22"
|
12329
12336
|
}
|
12330
|
-
}),
|
12337
|
+
}), Ls.defineTheme(hs.networkStatusInterface, {
|
12331
12338
|
base: "vs-dark",
|
12332
12339
|
inherit: !0,
|
12333
12340
|
rules: [
|
@@ -12337,7 +12344,7 @@ const ng = 100, yt = J.memo(
|
|
12337
12344
|
colors: {
|
12338
12345
|
"editor.background": "#1A1A1A"
|
12339
12346
|
}
|
12340
|
-
}),
|
12347
|
+
}), Ls.defineTheme(hs.deleteDraft, {
|
12341
12348
|
base: "vs",
|
12342
12349
|
inherit: !0,
|
12343
12350
|
rules: [],
|
@@ -12345,7 +12352,7 @@ const ng = 100, yt = J.memo(
|
|
12345
12352
|
"diffEditor.insertedTextBackground": "#ffd4d1",
|
12346
12353
|
"diffEditor.removedTextBackground": "#ffffff33"
|
12347
12354
|
}
|
12348
|
-
}),
|
12355
|
+
}), Ls.defineTheme(hs.unpublished, {
|
12349
12356
|
base: "vs",
|
12350
12357
|
inherit: !0,
|
12351
12358
|
rules: [],
|
@@ -12354,7 +12361,7 @@ const ng = 100, yt = J.memo(
|
|
12354
12361
|
"diffEditor.removedTextBackground": "#ffffff33"
|
12355
12362
|
}
|
12356
12363
|
}), O(() => {
|
12357
|
-
const M = T ?
|
12364
|
+
const M = T ? Ls.addKeybindingRule({
|
12358
12365
|
command: null,
|
12359
12366
|
keybinding: gd.KeyF | xd.CtrlCmd
|
12360
12367
|
}) : null;
|
@@ -12363,7 +12370,7 @@ const ng = 100, yt = J.memo(
|
|
12363
12370
|
};
|
12364
12371
|
}, [T]);
|
12365
12372
|
const W = (M, z) => {
|
12366
|
-
if (s ===
|
12373
|
+
if (s === Cs.YAML && M && typeof M.getModel == "function" && typeof M.getModel().updateOptions == "function" && M.getModel().updateOptions({ tabSize: 2 }), M && (typeof M.onDidFocusEditorWidget == "function" && typeof v == "function" && M.onDidFocusEditorWidget(v), typeof M.onDidBlurEditorWidget == "function" && typeof x == "function" && M.onDidBlurEditorWidget(x)), I && M) {
|
12367
12374
|
if (!("getModifiedEditor" in M)) {
|
12368
12375
|
M.onDidContentSizeChange(() => {
|
12369
12376
|
Ae(M.getContentHeight());
|
@@ -12428,12 +12435,12 @@ const ng = 100, yt = J.memo(
|
|
12428
12435
|
M = JSON.parse(e);
|
12429
12436
|
} catch {
|
12430
12437
|
try {
|
12431
|
-
M =
|
12438
|
+
M = Qt.parse(e);
|
12432
12439
|
} catch {
|
12433
12440
|
}
|
12434
12441
|
}
|
12435
12442
|
let z = e;
|
12436
|
-
M && (z = D.mode === "json" ? JSON.stringify(M, null, o) :
|
12443
|
+
M && (z = D.mode === "json" ? JSON.stringify(M, null, o) : Qs(M)), se(z);
|
12437
12444
|
}, [e, n]), O(() => {
|
12438
12445
|
$({ type: "setDiff", value: p });
|
12439
12446
|
}, [p]), O(() => {
|
@@ -12518,13 +12525,13 @@ const ng = 100, yt = J.memo(
|
|
12518
12525
|
className: s,
|
12519
12526
|
hideDefaultSplitHeader: n
|
12520
12527
|
}) => {
|
12521
|
-
const { defaultValue: a } =
|
12528
|
+
const { defaultValue: a } = ls();
|
12522
12529
|
return /* @__PURE__ */ t.jsxs("div", { className: s || "code-editor__header flex right", children: [
|
12523
12530
|
e,
|
12524
12531
|
!n && a && /* @__PURE__ */ t.jsx(mg, {})
|
12525
12532
|
] });
|
12526
12533
|
}, rg = ({}) => {
|
12527
|
-
const { readOnly: e, state: s, dispatch: n } =
|
12534
|
+
const { readOnly: e, state: s, dispatch: n } = ls();
|
12528
12535
|
function a(o) {
|
12529
12536
|
n({ type: "setTheme", value: o.target.value });
|
12530
12537
|
}
|
@@ -12535,7 +12542,7 @@ const ng = 100, yt = J.memo(
|
|
12535
12542
|
r.map((o) => /* @__PURE__ */ t.jsx(Ct.Option, { name: o, value: o, children: /* @__PURE__ */ t.jsx("span", { className: "dc__ellipsis-right", children: o }) }, o))
|
12536
12543
|
] });
|
12537
12544
|
}, og = ({}) => {
|
12538
|
-
const { readOnly: e, handleLanguageChange: s, state: n } =
|
12545
|
+
const { readOnly: e, handleLanguageChange: s, state: n } = ls();
|
12539
12546
|
return n.noParsing ? null : /* @__PURE__ */ t.jsx("div", { className: "code-editor__toggle flex left", children: /* @__PURE__ */ t.jsxs(
|
12540
12547
|
Dt,
|
12541
12548
|
{
|
@@ -12544,7 +12551,7 @@ const ng = 100, yt = J.memo(
|
|
12544
12551
|
initialTab: n.mode,
|
12545
12552
|
className: "flex left",
|
12546
12553
|
onChange: (a) => {
|
12547
|
-
|
12554
|
+
tn.event({
|
12548
12555
|
category: "JSON-YAML Switch",
|
12549
12556
|
action: `${a.target.value} view`
|
12550
12557
|
}), s(a.target.value);
|
@@ -12556,25 +12563,25 @@ const ng = 100, yt = J.memo(
|
|
12556
12563
|
}
|
12557
12564
|
) });
|
12558
12565
|
}, ig = () => {
|
12559
|
-
const { error: e } =
|
12566
|
+
const { error: e } = ls();
|
12560
12567
|
return e ? /* @__PURE__ */ t.jsx("div", { className: "form__error", children: e }) : null;
|
12561
12568
|
}, lg = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__warning ${e.className || ""}`, children: [
|
12562
12569
|
/* @__PURE__ */ t.jsx(_i, { className: "code-editor__information-info-icon" }),
|
12563
12570
|
e.text,
|
12564
12571
|
e.children
|
12565
12572
|
] }), cg = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__error ${e.className || ""}`, children: [
|
12566
|
-
/* @__PURE__ */ t.jsx(
|
12573
|
+
/* @__PURE__ */ t.jsx(as, { className: "code-editor__information-info-icon" }),
|
12567
12574
|
e.text,
|
12568
12575
|
e.children
|
12569
12576
|
] }), dg = (e) => /* @__PURE__ */ t.jsxs("div", { className: `code-editor__information ${e.className || ""}`, children: [
|
12570
|
-
/* @__PURE__ */ t.jsx(
|
12577
|
+
/* @__PURE__ */ t.jsx(js, { className: "code-editor__information-info-icon" }),
|
12571
12578
|
e.text,
|
12572
12579
|
e.children
|
12573
12580
|
] }), ug = () => {
|
12574
|
-
const { state: e } =
|
12581
|
+
const { state: e } = ls();
|
12575
12582
|
return /* @__PURE__ */ t.jsx(jt, { content: e.code, iconSize: 16 });
|
12576
12583
|
}, mg = ({}) => {
|
12577
|
-
const { state: e, dispatch: s, readOnly: n } =
|
12584
|
+
const { state: e, dispatch: s, readOnly: n } = ls();
|
12578
12585
|
function a(r) {
|
12579
12586
|
n || s({ type: "setDiff", value: !e.diffMode });
|
12580
12587
|
}
|
@@ -12583,7 +12590,7 @@ const ng = 100, yt = J.memo(
|
|
12583
12590
|
e.diffMode ? "Hide comparison" : "Compare with default"
|
12584
12591
|
] });
|
12585
12592
|
}, pg = ({ className: e = "", style: s = {}, customLoader: n }) => {
|
12586
|
-
const { height: a } =
|
12593
|
+
const { height: a } = ls();
|
12587
12594
|
return n || /* @__PURE__ */ t.jsx("div", { className: `code-editor code-editor--placeholder disabled ${e}`, style: { ...s }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", style: { height: a || "100%" }, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ie, { pageLoader: !0 }) }) }) });
|
12588
12595
|
};
|
12589
12596
|
yt.LanguageChanger = og;
|
@@ -12608,14 +12615,14 @@ const fg = ({
|
|
12608
12615
|
if (!s?.codeEditorValue?.value || r)
|
12609
12616
|
return "";
|
12610
12617
|
const v = p ? s?.codeEditorValue?.resolvedValue : s?.codeEditorValue?.value;
|
12611
|
-
return
|
12618
|
+
return Qs(JSON.parse(v), {
|
12612
12619
|
sortMapEntries: d ? (I, T) => Kr(I, T, m) : null
|
12613
12620
|
});
|
12614
12621
|
}, [p, s, m, r]), E = ne(() => {
|
12615
12622
|
if (!e?.codeEditorValue?.value || a)
|
12616
12623
|
return "";
|
12617
12624
|
const v = p ? e?.codeEditorValue?.resolvedValue : e?.codeEditorValue?.value;
|
12618
|
-
return
|
12625
|
+
return Qs(JSON.parse(v), {
|
12619
12626
|
sortMapEntries: d ? (I, T) => Kr(I, T, m) : null
|
12620
12627
|
});
|
12621
12628
|
}, [p, e, m, a]), N = () => n ? /* @__PURE__ */ t.jsx(
|
@@ -12634,7 +12641,7 @@ const fg = ({
|
|
12634
12641
|
disableSearch: !0,
|
12635
12642
|
readOnly: !0,
|
12636
12643
|
noParsing: !0,
|
12637
|
-
mode:
|
12644
|
+
mode: Cs.YAML,
|
12638
12645
|
theme: g()
|
12639
12646
|
},
|
12640
12647
|
i
|
@@ -12646,7 +12653,7 @@ const fg = ({
|
|
12646
12653
|
] });
|
12647
12654
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
12648
12655
|
!n && /* @__PURE__ */ t.jsxs("div", { className: "bcb-1 eb-2 pt-8 pb-8 br-4 flexbox pl-4 cn-9 fs-13 mt-16 mb-16 mr-20 ml-20", children: [
|
12649
|
-
/* @__PURE__ */ t.jsx(
|
12656
|
+
/* @__PURE__ */ t.jsx(js, { className: "mr-8 ml-14 icon-dim-20" }),
|
12650
12657
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
12651
12658
|
nt[c.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
12652
12659
|
u ? ` “${u}”` : "",
|
@@ -12758,7 +12765,7 @@ const _g = ({
|
|
12758
12765
|
index: l,
|
12759
12766
|
isExcluded: i = !1
|
12760
12767
|
}) => {
|
12761
|
-
const c = hr(n), u = e === xt.WEBHOOK || c && c.webhookdata && c.webhookdata.id !== 0, d = u ? c.webhookdata : {}, m = u ? null : c.commiturl ? c.commiturl :
|
12768
|
+
const c = hr(n), u = e === xt.WEBHOOK || c && c.webhookdata && c.webhookdata.id !== 0, d = u ? c.webhookdata : {}, m = u ? null : c.commiturl ? c.commiturl : cn(r, c.commit), p = (I) => I ? /* @__PURE__ */ t.jsx(
|
12762
12769
|
"a",
|
12763
12770
|
{
|
12764
12771
|
href: kh(r, I),
|
@@ -12855,7 +12862,7 @@ const _g = ({
|
|
12855
12862
|
] }), v = () => {
|
12856
12863
|
if (!u) return null;
|
12857
12864
|
const I = d.eventactiontype === gg.MERGED;
|
12858
|
-
return r.includes(
|
12865
|
+
return r.includes(fs.GITLAB) ? I ? x() : b() : I ? b() : x();
|
12859
12866
|
};
|
12860
12867
|
return /* @__PURE__ */ t.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
|
12861
12868
|
o && (u || c.commit) && /* @__PURE__ */ t.jsx(
|
@@ -13070,12 +13077,12 @@ const _g = ({
|
|
13070
13077
|
) })
|
13071
13078
|
] });
|
13072
13079
|
};
|
13073
|
-
var
|
13080
|
+
var vs = /* @__PURE__ */ ((e) => (e.info = "info", e.delete = "delete", e.warning = "warning", e.custom = "custom", e))(vs || {});
|
13074
13081
|
const Ng = (e) => {
|
13075
13082
|
switch (e) {
|
13076
|
-
case
|
13083
|
+
case vs.delete:
|
13077
13084
|
return id;
|
13078
|
-
case
|
13085
|
+
case vs.warning:
|
13079
13086
|
return _i;
|
13080
13087
|
default:
|
13081
13088
|
return rd;
|
@@ -13088,7 +13095,7 @@ const Ng = (e) => {
|
|
13088
13095
|
"’"
|
13089
13096
|
] }),
|
13090
13097
|
" to confirm"
|
13091
|
-
] }), Cg = (e) => e ===
|
13098
|
+
] }), Cg = (e) => e === vs.delete ? St.negative : St.default, Tg = ({ children: e, onEscape: s }) => {
|
13092
13099
|
const { registerShortcut: n, unregisterShortcut: a } = la();
|
13093
13100
|
return O(() => (n({ keys: ["Escape"], callback: s }), () => {
|
13094
13101
|
a(["Escape"]);
|
@@ -13142,7 +13149,7 @@ const Ng = (e) => {
|
|
13142
13149
|
/* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-16 fw-6 lh-24 dc__word-break", children: e }),
|
13143
13150
|
typeof s == "string" ? /* @__PURE__ */ t.jsx("span", { className: "cn-8 fs-13 fw-4 lh-20 dc__word-break", children: s }) : s,
|
13144
13151
|
o && /* @__PURE__ */ t.jsx(
|
13145
|
-
|
13152
|
+
un,
|
13146
13153
|
{
|
13147
13154
|
name: _,
|
13148
13155
|
value: m,
|
@@ -13285,7 +13292,7 @@ const Ng = (e) => {
|
|
13285
13292
|
/* @__PURE__ */ t.jsx(
|
13286
13293
|
Uo,
|
13287
13294
|
{
|
13288
|
-
variant:
|
13295
|
+
variant: vs.warning,
|
13289
13296
|
title: n === Ne.CD ? `Abort ${s.toLowerCase()}-deployment?` : "Abort build?",
|
13290
13297
|
subtitle: n === Ne.CD ? "Are you sure you want to abort this stage?" : "Are you sure you want to abort this build?",
|
13291
13298
|
buttonConfig: {
|
@@ -13307,7 +13314,7 @@ const Ng = (e) => {
|
|
13307
13314
|
/* @__PURE__ */ t.jsxs(
|
13308
13315
|
Uo,
|
13309
13316
|
{
|
13310
|
-
variant:
|
13317
|
+
variant: vs.warning,
|
13311
13318
|
title: "Could not abort build!",
|
13312
13319
|
subtitle: `Error: ${i.message}`,
|
13313
13320
|
buttonConfig: {
|
@@ -13378,7 +13385,7 @@ const Ng = (e) => {
|
|
13378
13385
|
{
|
13379
13386
|
commits: [f.Commit],
|
13380
13387
|
handleClick: Of(
|
13381
|
-
|
13388
|
+
cn(h.url, f.Commit)
|
13382
13389
|
)
|
13383
13390
|
}
|
13384
13391
|
),
|
@@ -13390,7 +13397,7 @@ const Ng = (e) => {
|
|
13390
13397
|
)
|
13391
13398
|
] }, h.id) : null;
|
13392
13399
|
}),
|
13393
|
-
!g.includes("source-code") && /* @__PURE__ */ t.jsx(
|
13400
|
+
!g.includes("source-code") && /* @__PURE__ */ t.jsx(ns, { to: `${_}/source-code`, className: "anchor fs-13", "data-testid": "commit-details-link", children: "Commit details" })
|
13394
13401
|
] }),
|
13395
13402
|
u && d && d(u),
|
13396
13403
|
c && /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 pb-8", children: [
|
@@ -13520,7 +13527,7 @@ const Ng = (e) => {
|
|
13520
13527
|
workflowId: e.id
|
13521
13528
|
}, D = `app/cd-pipeline/workflow/download/${S}/${L}/${j}/${P}`;
|
13522
13529
|
return /* @__PURE__ */ t.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: s ? /* @__PURE__ */ t.jsx(Ie, { pageLoader: !0 }) : /* @__PURE__ */ t.jsxs(ri, { children: [
|
13523
|
-
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(
|
13530
|
+
e.stage !== "DEPLOY" ? !e.IsVirtualEnvironment && /* @__PURE__ */ t.jsxs(qt, { path: `${T}/logs`, children: [
|
13524
13531
|
/* @__PURE__ */ t.jsx(
|
13525
13532
|
r_,
|
13526
13533
|
{
|
@@ -13538,20 +13545,20 @@ const Ng = (e) => {
|
|
13538
13545
|
scrollToBottom: b
|
13539
13546
|
}
|
13540
13547
|
)
|
13541
|
-
] }) : /* @__PURE__ */ t.jsx(
|
13548
|
+
] }) : /* @__PURE__ */ t.jsx(qt, { path: `${T}/deployment-steps`, children: /* @__PURE__ */ t.jsx(
|
13542
13549
|
__,
|
13543
13550
|
{
|
13544
13551
|
deploymentStatus: e.status,
|
13545
13552
|
deploymentAppType: a,
|
13546
13553
|
userApprovalMetadata: o,
|
13547
|
-
isGitops: a ===
|
13554
|
+
isGitops: a === _s.GITOPS || a === _s.MANIFEST_DOWNLOAD || a === _s.MANIFEST_PUSH,
|
13548
13555
|
isHelmApps: !1,
|
13549
13556
|
isVirtualEnvironment: e.IsVirtualEnvironment,
|
13550
13557
|
processVirtualEnvironmentDeploymentData: h,
|
13551
13558
|
renderDeploymentApprovalInfo: f
|
13552
13559
|
}
|
13553
13560
|
) }),
|
13554
|
-
/* @__PURE__ */ t.jsx(
|
13561
|
+
/* @__PURE__ */ t.jsx(qt, { path: `${T}/source-code`, children: /* @__PURE__ */ t.jsx(
|
13555
13562
|
Eg,
|
13556
13563
|
{
|
13557
13564
|
gitTriggers: e.gitTriggers,
|
@@ -13573,7 +13580,7 @@ const Ng = (e) => {
|
|
13573
13580
|
renderCIListHeader: E
|
13574
13581
|
}
|
13575
13582
|
) }),
|
13576
|
-
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(
|
13583
|
+
e.stage === "DEPLOY" && /* @__PURE__ */ t.jsx(qt, { path: `${T}${he.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ t.jsx(
|
13577
13584
|
W_,
|
13578
13585
|
{
|
13579
13586
|
appName: v,
|
@@ -13586,7 +13593,7 @@ const Ng = (e) => {
|
|
13586
13593
|
renderRunSource: g
|
13587
13594
|
}
|
13588
13595
|
) }),
|
13589
|
-
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(
|
13596
|
+
(e.stage !== "DEPLOY" || e.IsVirtualEnvironment) && /* @__PURE__ */ t.jsx(qt, { path: `${T}/artifacts`, children: e.IsVirtualEnvironment && N ? N({
|
13590
13597
|
status: e.status,
|
13591
13598
|
title: e.helmPackageName,
|
13592
13599
|
params: { ...H, appId: Number(S), envId: Number(L) }
|
@@ -13724,7 +13731,7 @@ const Ng = (e) => {
|
|
13724
13731
|
}
|
13725
13732
|
),
|
13726
13733
|
/* @__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 bcn-0 dc__zi-3", children: [
|
13727
|
-
L.stage === "DEPLOY" && r !==
|
13734
|
+
L.stage === "DEPLOY" && r !== _s.HELM && /* @__PURE__ */ t.jsx("li", { className: "tab-list__tab", "data-testid": "deployment-history-steps-link", children: /* @__PURE__ */ t.jsx(
|
13728
13735
|
ze,
|
13729
13736
|
{
|
13730
13737
|
replace: !0,
|
@@ -13918,7 +13925,7 @@ const Ng = (e) => {
|
|
13918
13925
|
MONTH: "Select month",
|
13919
13926
|
DEFAULT_TIME: "12:00 AM",
|
13920
13927
|
DEFAULT_MONTHLY_DATE: "Day 1"
|
13921
|
-
},
|
13928
|
+
}, Zt = {
|
13922
13929
|
DATE: "date_picker",
|
13923
13930
|
MONTH: "month_picker",
|
13924
13931
|
TIME: "time_picker"
|
@@ -14044,11 +14051,11 @@ const Ng = (e) => {
|
|
14044
14051
|
}, rS = ({
|
14045
14052
|
selectedMonthlyDate: e,
|
14046
14053
|
onChange: s,
|
14047
|
-
dataTestId: n =
|
14054
|
+
dataTestId: n = Zt.MONTH
|
14048
14055
|
}) => /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
14049
14056
|
kt,
|
14050
14057
|
{
|
14051
|
-
inputId:
|
14058
|
+
inputId: Zt.MONTH,
|
14052
14059
|
placeholder: "Day 1",
|
14053
14060
|
options: Bg,
|
14054
14061
|
isSearchable: !1,
|
@@ -14065,7 +14072,7 @@ const Ng = (e) => {
|
|
14065
14072
|
}) => /* @__PURE__ */ t.jsx(
|
14066
14073
|
kt,
|
14067
14074
|
{
|
14068
|
-
inputId:
|
14075
|
+
inputId: Zt.TIME,
|
14069
14076
|
placeholder: "12:00 AM",
|
14070
14077
|
options: Rn,
|
14071
14078
|
isSearchable: !1,
|
@@ -14074,7 +14081,7 @@ const Ng = (e) => {
|
|
14074
14081
|
value: r,
|
14075
14082
|
icon: /* @__PURE__ */ t.jsx(sr, { className: "icon-dim-20 fcn-6" }),
|
14076
14083
|
onChange: s,
|
14077
|
-
"data-testid":
|
14084
|
+
"data-testid": Zt.TIME,
|
14078
14085
|
size: B.large,
|
14079
14086
|
error: a
|
14080
14087
|
}
|
@@ -14089,8 +14096,8 @@ const Ng = (e) => {
|
|
14089
14096
|
hideTimeSelect: i = !1,
|
14090
14097
|
readOnly: c = !1,
|
14091
14098
|
isTodayBlocked: u = !1,
|
14092
|
-
dataTestIdForTime: d =
|
14093
|
-
dataTestidForDate: m =
|
14099
|
+
dataTestIdForTime: d = Zt.TIME,
|
14100
|
+
dataTestidForDate: m = Zt.DATE,
|
14094
14101
|
openDirection: p = "down",
|
14095
14102
|
error: _ = ""
|
14096
14103
|
}) => {
|
@@ -14132,7 +14139,7 @@ const Ng = (e) => {
|
|
14132
14139
|
!i && /* @__PURE__ */ t.jsx("div", { className: "dc__no-shrink", children: /* @__PURE__ */ t.jsx(
|
14133
14140
|
kt,
|
14134
14141
|
{
|
14135
|
-
inputId:
|
14142
|
+
inputId: Zt.TIME,
|
14136
14143
|
placeholder: kg.DEFAULT_TIME,
|
14137
14144
|
options: Rn,
|
14138
14145
|
icon: /* @__PURE__ */ t.jsx(sr, { className: "icon-dim-20 fcn-6" }),
|
@@ -14316,7 +14323,7 @@ const Ng = (e) => {
|
|
14316
14323
|
}, p = () => {
|
14317
14324
|
u(!0);
|
14318
14325
|
};
|
14319
|
-
return c ? /* @__PURE__ */ t.jsx(
|
14326
|
+
return c ? /* @__PURE__ */ t.jsx(os, { description: "Please try again later" }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14320
14327
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
|
14321
14328
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space dc__gap-4", children: [
|
14322
14329
|
/* @__PURE__ */ t.jsx("h3", { className: "m-0 fs-12 cn-7 fw-6 dc__truncate", children: a }),
|
@@ -14344,7 +14351,7 @@ const Ng = (e) => {
|
|
14344
14351
|
}
|
14345
14352
|
)
|
14346
14353
|
] }),
|
14347
|
-
l && /* @__PURE__ */ t.jsx(
|
14354
|
+
l && /* @__PURE__ */ t.jsx(pn, { className: "", close: m, children: /* @__PURE__ */ t.jsxs(
|
14348
14355
|
"div",
|
14349
14356
|
{
|
14350
14357
|
className: "dc__overflow-scroll br-8 dc__position-rel bcn-0 custom-panel--iframe-element flexbox-col dc__content-space",
|
@@ -14495,7 +14502,7 @@ const dS = {
|
|
14495
14502
|
pluginStore: Fl(i?.parentPlugins)
|
14496
14503
|
};
|
14497
14504
|
} catch (l) {
|
14498
|
-
throw r && !
|
14505
|
+
throw r && !ts(l) && Oe(l), l;
|
14499
14506
|
}
|
14500
14507
|
}, Vl = async ({
|
14501
14508
|
searchKey: e,
|
@@ -14520,7 +14527,7 @@ const dS = {
|
|
14520
14527
|
parentPluginIdList: l?.parentPlugins?.map((c) => c.id) || []
|
14521
14528
|
};
|
14522
14529
|
} catch (o) {
|
14523
|
-
throw
|
14530
|
+
throw ts(o) || Oe(o), o;
|
14524
14531
|
}
|
14525
14532
|
}, Zg = async (e) => {
|
14526
14533
|
try {
|
@@ -14561,7 +14568,7 @@ const dS = {
|
|
14561
14568
|
c(!0);
|
14562
14569
|
}, g = () => {
|
14563
14570
|
c(!1), d(l());
|
14564
|
-
}, h = () => r ? /* @__PURE__ */ t.jsx(
|
14571
|
+
}, h = () => r ? /* @__PURE__ */ t.jsx(os, { reload: o }) : /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: "No tags found" }), f = ye(
|
14565
14572
|
(N) => {
|
14566
14573
|
const C = N.getValue() || [], b = () => {
|
14567
14574
|
g(), s(C.map((x) => x.value));
|
@@ -14635,7 +14642,7 @@ const dS = {
|
|
14635
14642
|
onKeyDown: g,
|
14636
14643
|
children: [
|
14637
14644
|
e && /* @__PURE__ */ t.jsx("div", { className: `dc__no-shrink icon-dim-40 p-8 ${r ? "" : "dc__visible-hover--child"}`, children: /* @__PURE__ */ t.jsx(
|
14638
|
-
|
14645
|
+
is,
|
14639
14646
|
{
|
14640
14647
|
isChecked: r,
|
14641
14648
|
onChange: g,
|
@@ -14758,7 +14765,7 @@ const dS = {
|
|
14758
14765
|
)),
|
14759
14766
|
_ && /* @__PURE__ */ t.jsx(Gl, {}),
|
14760
14767
|
n > s.length && !_ && /* @__PURE__ */ t.jsx(dl, { callback: E, hasError: h })
|
14761
|
-
] }) : o || r.length ? /* @__PURE__ */ t.jsx(qx, { handleClearFilters: u, imageType:
|
14768
|
+
] }) : o || r.length ? /* @__PURE__ */ t.jsx(qx, { handleClearFilters: u, imageType: rs.Large }) : /* @__PURE__ */ t.jsx(Ye, { title: "No plugins found", subTitle: "We are unable to locate any plugin in our system" });
|
14762
14769
|
}, pS = ({
|
14763
14770
|
availableTags: e,
|
14764
14771
|
handleUpdateAvailableTags: s,
|
@@ -14827,7 +14834,7 @@ const dS = {
|
|
14827
14834
|
}), T(Pe);
|
14828
14835
|
};
|
14829
14836
|
O(() => {
|
14830
|
-
!(D ||
|
14837
|
+
!(D || ts(ee)) && !ee && $ && Ae($);
|
14831
14838
|
}, [D, $, ee]);
|
14832
14839
|
const k = () => {
|
14833
14840
|
i && T([]);
|
@@ -14896,7 +14903,7 @@ const dS = {
|
|
14896
14903
|
/* @__PURE__ */ t.jsx(
|
14897
14904
|
Bi,
|
14898
14905
|
{
|
14899
|
-
isLoading: D ||
|
14906
|
+
isLoading: D || ts(ee),
|
14900
14907
|
customLoader: /* @__PURE__ */ t.jsx(Gl, {}),
|
14901
14908
|
error: ee,
|
14902
14909
|
errorScreenManagerProps: {
|
@@ -14953,7 +14960,7 @@ const dS = {
|
|
14953
14960
|
const { headers: h, rows: f } = e, E = h[0].key, N = h[1].key, [C, b] = A(f), [x, v] = A(!1), I = c || i, T = !c && !i || !!C.length, S = !C[0]?.data[E].value && !C[0]?.data[N].value, j = C.length === 1 && S, { sortBy: P, sortOrder: L, handleSorting: H } = k_({
|
14954
14961
|
initialSortKey: n ? E : null
|
14955
14962
|
}), D = X(), $ = X();
|
14956
|
-
D.current || (D.current = C.reduce((w, y) => ({ ...w, [y.id]:
|
14963
|
+
D.current || (D.current = C.reduce((w, y) => ({ ...w, [y.id]: cs() }), {})), $.current || ($.current = C.reduce((w, y) => ({ ...w, [y.id]: cs() }), {}));
|
14957
14964
|
const ee = ne(
|
14958
14965
|
() => C.reduce(
|
14959
14966
|
(w, y) => {
|
@@ -15009,10 +15016,10 @@ const dS = {
|
|
15009
15016
|
const w = ie(), y = [w, ...C], { id: U } = w;
|
15010
15017
|
p?.(!G(y)), v(!0), b(y), D.current = {
|
15011
15018
|
...D.current || {},
|
15012
|
-
[U]:
|
15019
|
+
[U]: cs()
|
15013
15020
|
}, $.current = {
|
15014
15021
|
...$.current || {},
|
15015
|
-
[U]:
|
15022
|
+
[U]: cs()
|
15016
15023
|
};
|
15017
15024
|
};
|
15018
15025
|
O(() => {
|
@@ -15037,9 +15044,9 @@ const dS = {
|
|
15037
15044
|
if (y.length === 0 && !i) {
|
15038
15045
|
const U = ie(), { id: M } = U;
|
15039
15046
|
v(!0), p?.(!G([U])), b([U]), D.current = {
|
15040
|
-
[M]:
|
15047
|
+
[M]: cs()
|
15041
15048
|
}, $.current = {
|
15042
|
-
[M]:
|
15049
|
+
[M]: cs()
|
15043
15050
|
}, o?.(w.id);
|
15044
15051
|
return;
|
15045
15052
|
}
|
@@ -15136,7 +15143,7 @@ const dS = {
|
|
15136
15143
|
{
|
15137
15144
|
className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${c ? "two-columns" : "three-columns"}`,
|
15138
15145
|
children: C.map((w) => /* @__PURE__ */ t.jsxs("div", { className: "key-value-table__row", children: [
|
15139
|
-
h.map(({ key: y }) => /* @__PURE__ */ t.jsx(
|
15146
|
+
h.map(({ key: y }) => /* @__PURE__ */ t.jsx(Ys, { children: /* @__PURE__ */ t.jsx(dt, { wrap: lx, condition: c, children: /* @__PURE__ */ t.jsx(
|
15140
15147
|
"div",
|
15141
15148
|
{
|
15142
15149
|
className: `key-value-table__cell bcn-0 flexbox dc__align-items-center dc__gap-4 dc__position-rel ${c || w.data[y].disabled ? "cursor-not-allowed no-hover" : ""} ${u && !Z(w.data[y].value, y, w.id) ? "key-value-table__cell--error no-hover" : ""}`,
|
@@ -15171,7 +15178,7 @@ const dS = {
|
|
15171
15178
|
onClick: Ae(w),
|
15172
15179
|
disabled: j,
|
15173
15180
|
children: /* @__PURE__ */ t.jsx(
|
15174
|
-
|
15181
|
+
ys,
|
15175
15182
|
{
|
15176
15183
|
"aria-label": "delete-row",
|
15177
15184
|
className: "icon-dim-16 fcn-4 dc__align-self-start"
|
@@ -15211,7 +15218,7 @@ const dS = {
|
|
15211
15218
|
showError: s,
|
15212
15219
|
showWarning: n,
|
15213
15220
|
className: a
|
15214
|
-
}) => s ? /* @__PURE__ */ t.jsx(
|
15221
|
+
}) => s ? /* @__PURE__ */ t.jsx(as, { className: a }) : n ? /* @__PURE__ */ t.jsx(Tt, { className: `${a} warning-icon-y7` }) : e ? /* @__PURE__ */ t.jsx(e, { className: `${a} tab-group__tab__icon` }) : null, mx = (e, s) => e !== null && /* @__PURE__ */ t.jsx("div", { className: `tab-group__tab__badge bcn-1 cn-7 fw-6 flex px-4 ${s}`, children: e }), px = (e) => e && /* @__PURE__ */ t.jsx("span", { className: "tab-group__tab__indicator bcr-5 mt-4 dc__align-self-start" }), fx = (e) => e && /* @__PURE__ */ t.jsx("ul", { className: "tab-group__tab__description m-0 p-0 fs-12 lh-16 fw-4 cn-7 flexbox dc__align-items-center dc__gap-4", children: Array.isArray(e) ? e.map((s, n) => /* @__PURE__ */ t.jsxs("li", { className: "flex dc__gap-4", children: [
|
15215
15222
|
!!n && /* @__PURE__ */ t.jsx("span", { className: "dc__bullet" }),
|
15216
15223
|
s
|
15217
15224
|
] }, s)) : e }), hx = ({
|
@@ -15250,7 +15257,7 @@ const dS = {
|
|
15250
15257
|
switch (n) {
|
15251
15258
|
case "link":
|
15252
15259
|
return /* @__PURE__ */ t.jsx(
|
15253
|
-
|
15260
|
+
ns,
|
15254
15261
|
{
|
15255
15262
|
className: `${f} dc__no-decor flexbox-col ${p ? "cursor-not-allowed" : ""}`,
|
15256
15263
|
"aria-disabled": p,
|
@@ -15319,7 +15326,7 @@ const dS = {
|
|
15319
15326
|
o
|
15320
15327
|
)) }),
|
15321
15328
|
n || null
|
15322
|
-
] }),
|
15329
|
+
] }), un = ({
|
15323
15330
|
name: e,
|
15324
15331
|
value: s,
|
15325
15332
|
error: n,
|
@@ -15679,7 +15686,7 @@ const dS = {
|
|
15679
15686
|
T(!1),
|
15680
15687
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 flex-grow-1", children: [
|
15681
15688
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__gap-6 w-100 dc__align-start", children: /* @__PURE__ */ t.jsx(
|
15682
|
-
|
15689
|
+
un,
|
15683
15690
|
{
|
15684
15691
|
name: `${o}-url-input`,
|
15685
15692
|
label: "Image URL",
|
@@ -15805,7 +15812,7 @@ function Oe(e, s = !0, n = !1) {
|
|
15805
15812
|
variant: be.error,
|
15806
15813
|
description: a || r
|
15807
15814
|
});
|
15808
|
-
}) : (e.code !== 403 && e.code !== 408 && !
|
15815
|
+
}) : (e.code !== 403 && e.code !== 408 && !ts(e) && Zo(e), s && (e.message ? Ue.showToast({
|
15809
15816
|
variant: be.error,
|
15810
15817
|
description: e.message
|
15811
15818
|
}) : Ue.showToast({
|
@@ -15849,7 +15856,7 @@ const Ho = [
|
|
15849
15856
|
"#008272",
|
15850
15857
|
"#107C10"
|
15851
15858
|
];
|
15852
|
-
function
|
15859
|
+
function mn(e) {
|
15853
15860
|
let s = 0;
|
15854
15861
|
for (let n = 0; n < e.length; n++)
|
15855
15862
|
s += e.charCodeAt(n);
|
@@ -15859,7 +15866,7 @@ const AS = (e, s = "") => e ? /* @__PURE__ */ t.jsx(
|
|
15859
15866
|
"span",
|
15860
15867
|
{
|
15861
15868
|
className: `${s} alphabet-icon__initial fs-13 icon-dim-20 flex cn-0 mr-8`,
|
15862
|
-
style: { backgroundColor:
|
15869
|
+
style: { backgroundColor: mn(e) },
|
15863
15870
|
children: e[0]
|
15864
15871
|
}
|
15865
15872
|
) : null, jS = (e) => Array.from({ length: e });
|
@@ -15919,14 +15926,14 @@ function Yo(e, s = 4, n = "json", a = !1) {
|
|
15919
15926
|
} catch (f) {
|
15920
15927
|
g = f;
|
15921
15928
|
try {
|
15922
|
-
_ =
|
15929
|
+
_ = Qt.parse(e, p), g = null, h = null;
|
15923
15930
|
} catch (E) {
|
15924
15931
|
h = E;
|
15925
15932
|
}
|
15926
15933
|
}
|
15927
15934
|
else
|
15928
15935
|
try {
|
15929
|
-
_ =
|
15936
|
+
_ = Qt.parse(e, p), g = null, h = null;
|
15930
15937
|
} catch (f) {
|
15931
15938
|
h = f;
|
15932
15939
|
try {
|
@@ -15935,7 +15942,7 @@ function Yo(e, s = 4, n = "json", a = !1) {
|
|
15935
15942
|
g = E;
|
15936
15943
|
}
|
15937
15944
|
}
|
15938
|
-
(g || h) && m(n === "json" ? g.message : h.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), i(
|
15945
|
+
(g || h) && m(n === "json" ? g.message : h.message), _ && typeof _ == "object" ? (o(JSON.stringify(_, null, s)), i(Qt.stringify(_, { indent: 2, lineWidth: 0 })), u(_), m("")) : (u(null), m(g || h ? n === "json" ? g.message : h.message : "cannot parse to valid object"));
|
15939
15946
|
}, [e, s, n, a]), [c, r, l, d];
|
15940
15947
|
}
|
15941
15948
|
const Lx = ["name", "namespace", "labels", "annotations"];
|
@@ -16115,7 +16122,7 @@ const RS = (e, s) => e ? Hn(e, !0) : s ? "" : "Not deployed", Ze = (e, s = {}) =
|
|
16115
16122
|
}, FS = (e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase(), VS = (e, s, n) => {
|
16116
16123
|
const a = new Date(e).getTime(), r = new Date(s).getTime();
|
16117
16124
|
return isNaN(a) && isNaN(r) ? 0 : isNaN(a) ? n === de.ASC ? 1 : -1 : isNaN(r) ? n === de.ASC ? -1 : 1 : n === de.ASC ? r - a : a - r;
|
16118
|
-
},
|
16125
|
+
}, Qs = (e, s) => Qt.stringify(e, { indent: 2, lineWidth: 0, ...s }), GS = (e, s) => {
|
16119
16126
|
if (e === s)
|
16120
16127
|
return !0;
|
16121
16128
|
const n = Array.isArray(e), a = Array.isArray(s);
|
@@ -16232,7 +16239,7 @@ const KS = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, kx = (e, s = 300) => {
|
|
16232
16239
|
const r = Date.now();
|
16233
16240
|
r - n >= s && (n = r, e(...a));
|
16234
16241
|
};
|
16235
|
-
}, Ux = (e, s, n) => e === xt.WEBHOOK ? n ===
|
16242
|
+
}, Ux = (e, s, n) => e === xt.WEBHOOK ? n === zs.PULL_REQUEST ? jd : n === zs.TAG_CREATION ? yd : du : e === xt.BranchRegex || s ? pu : mu, Ql = (e) => Xn.sanitize(e, {
|
16236
16243
|
ADD_TAGS: ["iframe"],
|
16237
16244
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
16238
16245
|
}), zS = (e, s) => {
|
@@ -16264,7 +16271,7 @@ const Bx = ({ subtitle: e, title: s }) => /* @__PURE__ */ t.jsx(
|
|
16264
16271
|
subTitle: e ?? je.ONLY_FOR_SUPERADMIN
|
16265
16272
|
}
|
16266
16273
|
);
|
16267
|
-
class
|
16274
|
+
class pn extends J.Component {
|
16268
16275
|
constructor(n) {
|
16269
16276
|
super(n);
|
16270
16277
|
Ge(this, "modalRef", document.getElementById("visible-modal"));
|
@@ -16313,7 +16320,7 @@ const $x = ({
|
|
16313
16320
|
u.current?.classList?.remove("show"), Ut(!1);
|
16314
16321
|
}), []);
|
16315
16322
|
const d = {};
|
16316
|
-
return (s === "left" || s === "right") && (d["--width"] = a, d["--minWidth"] = r, d["--maxWidth"] = o), (s === "top" || s === "bottom") && (d["--height"] = n), /* @__PURE__ */ t.jsx(
|
16323
|
+
return (s === "left" || s === "right") && (d["--width"] = a, d["--minWidth"] = r, d["--maxWidth"] = o), (s === "top" || s === "bottom") && (d["--height"] = n), /* @__PURE__ */ t.jsx(pn, { className: "drawer--container", parentClassName: l || "", onEscape: i, close: c, children: /* @__PURE__ */ t.jsx("aside", { style: d, ref: u, className: `drawer ${s}`, children: e }) });
|
16317
16324
|
};
|
16318
16325
|
class Zl extends J.Component {
|
16319
16326
|
constructor(n) {
|
@@ -16413,7 +16420,7 @@ const tc = ({
|
|
16413
16420
|
{
|
16414
16421
|
condition: !!o.to,
|
16415
16422
|
wrap: (i) => /* @__PURE__ */ t.jsx(
|
16416
|
-
|
16423
|
+
ns,
|
16417
16424
|
{
|
16418
16425
|
className: `${a === o.to ? "active" : ""} ${n} ${o.className || ""}`,
|
16419
16426
|
to: o.to,
|
@@ -16482,12 +16489,12 @@ function Gx({ isCreateApp: e }) {
|
|
16482
16489
|
showCloseButton: !0,
|
16483
16490
|
trigger: "click",
|
16484
16491
|
interactive: !0,
|
16485
|
-
documentationLink: e ?
|
16492
|
+
documentationLink: e ? bs.APP_TAGS : bs.APP_OVERVIEW_TAGS,
|
16486
16493
|
documentationLinkText: "View Documentation",
|
16487
16494
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox cursor", children: [
|
16488
16495
|
/* @__PURE__ */ t.jsx(vn, { className: "icon-dim-16 mt-2 mr-4" }),
|
16489
16496
|
/* @__PURE__ */ t.jsx("span", { children: "Propagate tags" }),
|
16490
|
-
/* @__PURE__ */ t.jsx(
|
16497
|
+
/* @__PURE__ */ t.jsx(As, { className: "icon-dim-16 mt-2 ml-4" })
|
16491
16498
|
] })
|
16492
16499
|
}
|
16493
16500
|
);
|
@@ -16611,11 +16618,11 @@ const qo = ({
|
|
16611
16618
|
let S = { isValid: !0, messages: [] };
|
16612
16619
|
return o === At.KEY ? (m || s.value) && (S = h.propagateTagKey(m)) : (r || m || s.propagate) && (S = h.propagateTagValue(m, s.key)), S.isValid ? null : /* @__PURE__ */ t.jsxs("div", { className: "p-4", onClick: ge, "data-testid": "tag-label-cross-stop-propagation", children: [
|
16613
16620
|
S.messages.map((j) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
16614
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
16621
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(ys, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
|
16615
16622
|
/* @__PURE__ */ t.jsx("span", { children: j })
|
16616
16623
|
] }, j)),
|
16617
16624
|
o === At.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
16618
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
16625
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-14 mt-3 mr-4" }) }),
|
16619
16626
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
16620
16627
|
] })
|
16621
16628
|
] });
|
@@ -16739,7 +16746,7 @@ const qo = ({
|
|
16739
16746
|
className: "dc__border pl-4 pr-4 dc__right-radius-4 pointer flex top",
|
16740
16747
|
onClick: d,
|
16741
16748
|
"data-testid": `delete-tag-${e}`,
|
16742
|
-
children: /* @__PURE__ */ t.jsx(
|
16749
|
+
children: /* @__PURE__ */ t.jsx(ys, { className: "icon-dim-20 mt-4" })
|
16743
16750
|
}
|
16744
16751
|
)
|
16745
16752
|
] });
|
@@ -16791,7 +16798,7 @@ const qo = ({
|
|
16791
16798
|
ft.Icon = Yx;
|
16792
16799
|
ft.Body = Wx;
|
16793
16800
|
ft.ButtonGroup = Kx;
|
16794
|
-
const
|
16801
|
+
const Zs = ({
|
16795
16802
|
showDeleteConfirmation: e,
|
16796
16803
|
deleteConfirmationText: s = null,
|
16797
16804
|
...n
|
@@ -16819,7 +16826,7 @@ const Qs = ({
|
|
16819
16826
|
n.description ? n.description : null,
|
16820
16827
|
n.children,
|
16821
16828
|
o && /* @__PURE__ */ t.jsx(
|
16822
|
-
|
16829
|
+
un,
|
16823
16830
|
{
|
16824
16831
|
name: "delete-confirmation",
|
16825
16832
|
value: a,
|
@@ -16859,7 +16866,7 @@ const Qs = ({
|
|
16859
16866
|
] }) })
|
16860
16867
|
] });
|
16861
16868
|
}, zx = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e });
|
16862
|
-
|
16869
|
+
Zs.Description = zx;
|
16863
16870
|
const Qa = Bt({ title: "", isLoading: !1, close: (e) => {
|
16864
16871
|
}, onSave: (e) => {
|
16865
16872
|
} });
|
@@ -16886,7 +16893,7 @@ class tv extends Kn {
|
|
16886
16893
|
close: this.props.close,
|
16887
16894
|
onSave: this.props.onSave
|
16888
16895
|
},
|
16889
|
-
children: /* @__PURE__ */ t.jsx(
|
16896
|
+
children: /* @__PURE__ */ t.jsx(pn, { className: "", children: /* @__PURE__ */ t.jsxs("div", { className: `modal__body ${this.props.className || ""}`, children: [
|
16890
16897
|
/* @__PURE__ */ t.jsxs("div", { className: `modal__header ${this.props.headerClassName || ""}`, children: [
|
16891
16898
|
/* @__PURE__ */ t.jsx("h1", { className: "modal__title", children: this.props.title }),
|
16892
16899
|
/* @__PURE__ */ t.jsxs("button", { type: "button", className: "dc__transparent", onClick: this.props.close, children: [
|
@@ -16921,13 +16928,13 @@ function nv({
|
|
16921
16928
|
forceDeleteDialogMessage: a
|
16922
16929
|
}) {
|
16923
16930
|
return /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
16924
|
-
|
16931
|
+
Zs,
|
16925
16932
|
{
|
16926
16933
|
title: n,
|
16927
16934
|
delete: e,
|
16928
16935
|
closeDelete: s,
|
16929
16936
|
deletePrefix: "Force ",
|
16930
|
-
children: /* @__PURE__ */ t.jsxs(
|
16937
|
+
children: /* @__PURE__ */ t.jsxs(Zs.Description, { children: [
|
16931
16938
|
/* @__PURE__ */ t.jsxs("p", { className: "mt-12 mb-12 p-8 dc__break-word dc__window-bg", children: [
|
16932
16939
|
"Error: ",
|
16933
16940
|
a
|
@@ -16953,7 +16960,7 @@ const rc = ({
|
|
16953
16960
|
hideIcon: p = !1
|
16954
16961
|
}) => {
|
16955
16962
|
const _ = () => l ? i ? d ? /* @__PURE__ */ t.jsx(
|
16956
|
-
|
16963
|
+
ns,
|
16957
16964
|
{
|
16958
16965
|
to: i,
|
16959
16966
|
onClick: c,
|
@@ -17088,7 +17095,7 @@ const rc = ({
|
|
17088
17095
|
type: "button",
|
17089
17096
|
onClick: h,
|
17090
17097
|
"aria-label": "Clear search",
|
17091
|
-
children: /* @__PURE__ */ t.jsx(
|
17098
|
+
children: /* @__PURE__ */ t.jsx(Is, { className: "icon-dim-16 icon-n4 dc__vertical-align-middle" })
|
17092
17099
|
}
|
17093
17100
|
)
|
17094
17101
|
]
|
@@ -17132,14 +17139,14 @@ const av = ({
|
|
17132
17139
|
/* @__PURE__ */ t.jsx("p", { className: "fs-13 cn-7 ", children: l }),
|
17133
17140
|
/* @__PURE__ */ t.jsx(ft.ButtonGroup, { children: /* @__PURE__ */ t.jsx("button", { type: "button", className: "cta", onClick: N, children: "Okay" }) })
|
17134
17141
|
] }), b = () => /* @__PURE__ */ t.jsx(
|
17135
|
-
|
17142
|
+
Zs,
|
17136
17143
|
{
|
17137
17144
|
title: `Delete ${r} '${a}'`,
|
17138
17145
|
delete: E,
|
17139
17146
|
closeDelete: () => s(!1),
|
17140
17147
|
dataTestId: "delete-dialog",
|
17141
17148
|
apiCallInProgress: p,
|
17142
|
-
children: /* @__PURE__ */ t.jsx(
|
17149
|
+
children: /* @__PURE__ */ t.jsx(Zs.Description, { children: /* @__PURE__ */ t.jsxs("p", { children: [
|
17143
17150
|
"Are you sure you want to delete this ",
|
17144
17151
|
d || r,
|
17145
17152
|
"? "
|
@@ -17265,7 +17272,7 @@ const av = ({
|
|
17265
17272
|
W(!1);
|
17266
17273
|
});
|
17267
17274
|
}, Pe = () => /* @__PURE__ */ t.jsx(
|
17268
|
-
|
17275
|
+
ln,
|
17269
17276
|
{
|
17270
17277
|
heading: "Image labels",
|
17271
17278
|
additionalContent: Fe(),
|
@@ -17284,7 +17291,7 @@ const av = ({
|
|
17284
17291
|
return i ? /* @__PURE__ */ t.jsx("div", { className: "bcn-0 mt-8 add-image-button", children: /* @__PURE__ */ t.jsx(iE, { handleEditClick: se }) }) : /* @__PURE__ */ t.jsx("div", {});
|
17285
17292
|
const ut = (F) => {
|
17286
17293
|
F.key === "Enter" && F.target.value.trim() && U(F.target.value.trim());
|
17287
|
-
},
|
17294
|
+
}, fn = (F) => {
|
17288
17295
|
F.target.value && y(F.target.value), Ae(F.target.value);
|
17289
17296
|
}, ca = (F) => {
|
17290
17297
|
ge(F), fe.trim() && U(fe.trim());
|
@@ -17303,10 +17310,10 @@ const av = ({
|
|
17303
17310
|
{
|
17304
17311
|
className: "form__input fs-13",
|
17305
17312
|
value: fe,
|
17306
|
-
onChange:
|
17313
|
+
onChange: fn,
|
17307
17314
|
placeholder: "Type a tag and press enter",
|
17308
17315
|
onKeyDown: ut,
|
17309
|
-
onBlur:
|
17316
|
+
onBlur: fn,
|
17310
17317
|
ref: We
|
17311
17318
|
}
|
17312
17319
|
),
|
@@ -17353,7 +17360,7 @@ const av = ({
|
|
17353
17360
|
F.id
|
17354
17361
|
)) }),
|
17355
17362
|
I && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
17356
|
-
/* @__PURE__ */ t.jsx(
|
17363
|
+
/* @__PURE__ */ t.jsx(js, { className: "icon-dim-16 mr-2" }),
|
17357
17364
|
"Tags cannot be edited/removed later"
|
17358
17365
|
] }),
|
17359
17366
|
/* @__PURE__ */ t.jsx("div", { className: "cn-7 mt-12", children: "Comment" }),
|
@@ -17464,7 +17471,7 @@ const av = ({
|
|
17464
17471
|
{
|
17465
17472
|
className: `br-4 en-2 bw-1 mr-8 bcn-0 pt-2 pr-8 pb-2 pl-8 tag-class dc__word-break-all flex ${n ? "icon-hover" : ""} ${_()}`,
|
17466
17473
|
children: [
|
17467
|
-
c ? /* @__PURE__ */ t.jsx(
|
17474
|
+
c ? /* @__PURE__ */ t.jsx(as, { className: "icon-dim-12 mr-4" }) : /* @__PURE__ */ t.jsx(
|
17468
17475
|
Q,
|
17469
17476
|
{
|
17470
17477
|
className: "default-tt",
|
@@ -17489,7 +17496,7 @@ const av = ({
|
|
17489
17496
|
),
|
17490
17497
|
e,
|
17491
17498
|
/* @__PURE__ */ t.jsx(Q, { className: "default-tt", arrow: !0, placement: "top", content: "Remove tag", children: /* @__PURE__ */ t.jsx("div", { className: `action-icon ml-4 lh-16 pt-3 ${p ? "show-icon" : ""}`, children: /* @__PURE__ */ t.jsx(
|
17492
|
-
|
17499
|
+
ys,
|
17493
17500
|
{
|
17494
17501
|
className: "icon-dim-12 fcn-6 cursor",
|
17495
17502
|
"data-testid": `${e}-tag-hard-delete`,
|
@@ -17619,7 +17626,7 @@ function ov({
|
|
17619
17626
|
className: "dc__outline-none-imp dc__no-border p-0 bc-n50 flex",
|
17620
17627
|
onClick: g,
|
17621
17628
|
"data-testid": "clear-search",
|
17622
|
-
children: /* @__PURE__ */ t.jsx(
|
17629
|
+
children: /* @__PURE__ */ t.jsx(Is, { className: "icon-dim-20 icon-n6" })
|
17623
17630
|
}
|
17624
17631
|
),
|
17625
17632
|
n
|
@@ -17688,7 +17695,7 @@ const lv = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
17688
17695
|
value: a ?? i[0],
|
17689
17696
|
options: i,
|
17690
17697
|
onChange: p,
|
17691
|
-
variant:
|
17698
|
+
variant: Ss.BORDER_LESS
|
17692
17699
|
}
|
17693
17700
|
)
|
17694
17701
|
] }),
|
@@ -17701,7 +17708,7 @@ const lv = ({ classes: e, parentClasses: s }) => /* @__PURE__ */ t.jsx("div", {
|
|
17701
17708
|
value: u ?? o[0],
|
17702
17709
|
options: o,
|
17703
17710
|
onChange: _,
|
17704
|
-
variant:
|
17711
|
+
variant: Ss.BORDER_LESS
|
17705
17712
|
}
|
17706
17713
|
)
|
17707
17714
|
] })
|
@@ -17718,7 +17725,7 @@ function dv({
|
|
17718
17725
|
handleAddCD: r,
|
17719
17726
|
tooltipContent: o
|
17720
17727
|
}) {
|
17721
|
-
const l = e ===
|
17728
|
+
const l = e === Ws.RIGHT ? n : a, i = () => {
|
17722
17729
|
r(e);
|
17723
17730
|
};
|
17724
17731
|
return s?.includes(e) ? /* @__PURE__ */ t.jsx(
|
@@ -17731,7 +17738,7 @@ function dv({
|
|
17731
17738
|
children: /* @__PURE__ */ t.jsxs(
|
17732
17739
|
"svg",
|
17733
17740
|
{
|
17734
|
-
x: l.x + (e ===
|
17741
|
+
x: l.x + (e === Ws.RIGHT ? -25 : l.width + 5),
|
17735
17742
|
y: l.y + l.height / 2 - 10,
|
17736
17743
|
width: "20",
|
17737
17744
|
height: "20",
|
@@ -17771,7 +17778,7 @@ const dE = ({ startNode: e }) => e.type === Pa.WEBHOOK ? In.WEBHOOK : e.type ===
|
|
17771
17778
|
}) => {
|
17772
17779
|
if (!s)
|
17773
17780
|
return;
|
17774
|
-
const c = dE({ startNode: n }), u = i && e ===
|
17781
|
+
const c = dE({ startNode: n }), u = i && e === Ws.RIGHT ? Da.PARALLEL : Da.SEQUENTIAL, d = !i && e === Ws.RIGHT ? a.id : null;
|
17775
17782
|
s(r, o, c, n.id, l, d, u);
|
17776
17783
|
};
|
17777
17784
|
var er = /* @__PURE__ */ ((e) => (e.PARENT_BOTTOM_CENTER = "PARENT_BOTTOM_CENTER", e.SCREEN_BOTTOM_CENTER = "SCREEN_BOTTOM_CENTER", e.SCREEN_BOTTOM_RIGHT = "SCREEN_BOTTOM_RIGHT", e))(er || {});
|
@@ -17998,7 +18005,7 @@ const Jo = 5, uE = [
|
|
17998
18005
|
)
|
17999
18006
|
] })
|
18000
18007
|
] });
|
18001
|
-
},
|
18008
|
+
}, Ds = new Kt.Renderer(), Xo = ({ setExpandableIcon: e, markdown: s, className: n, breaks: a, disableEscapedText: r, ...o }) => {
|
18002
18009
|
const l = X(null), i = () => {
|
18003
18010
|
const p = l.current?.clientHeight > 320;
|
18004
18011
|
typeof e == "function" && e(p);
|
@@ -18008,24 +18015,24 @@ const Jo = 5, uE = [
|
|
18008
18015
|
}, [s]);
|
18009
18016
|
const c = (d) => `
|
18010
18017
|
<tr>
|
18011
|
-
${d.map((m) => `<td align="${m.align}">${
|
18018
|
+
${d.map((m) => `<td align="${m.align}">${Kt(m.text)}</td>`).join("")}
|
18012
18019
|
</tr>
|
18013
18020
|
`;
|
18014
|
-
|
18021
|
+
Ds.listitem = ({ text: d, task: m, checked: p }) => m ? `<li style="list-style: none">
|
18015
18022
|
<input disabled type="checkbox" ${p ? "checked" : ""} class="dc__vertical-align-middle" style="margin: 0 0.2em 0.25em -1.4em">
|
18016
|
-
${d}
|
18017
|
-
</li>` : `<li>${d}</li>`,
|
18023
|
+
${Kt(d)}
|
18024
|
+
</li>` : `<li>${Kt(d)}</li>`, Ds.image = ({ href: d, title: m, text: p }) => `<img src="${d}" alt="${p}" title="${m}" class="max-w-100">`, Ds.table = ({ header: d, rows: m }) => `
|
18018
18025
|
<div class="table-container">
|
18019
18026
|
<table>
|
18020
18027
|
<thead>
|
18021
|
-
<tr>${d.map((p) => `<th align="${p.align}">${p.text}</th>`).join("")}</tr>
|
18028
|
+
<tr>${d.map((p) => `<th align="${p.align}">${Kt(p.text)}</th>`).join("")}</tr>
|
18022
18029
|
</thead>
|
18023
18030
|
<tbody>
|
18024
18031
|
${m.map((p) => c(p)).join("")}
|
18025
18032
|
</tbody>
|
18026
18033
|
</table>
|
18027
18034
|
</div>
|
18028
|
-
`,
|
18035
|
+
`, Ds.heading = ({ text: d, depth: m }) => {
|
18029
18036
|
const p = r ? "" : d.toLowerCase().replace(/[^\w]+/g, "-");
|
18030
18037
|
return `
|
18031
18038
|
<a name="${p}" rel="noreferrer noopener" class="anchor" href="#${p}">
|
@@ -18034,13 +18041,13 @@ const Jo = 5, uE = [
|
|
18034
18041
|
${d}
|
18035
18042
|
</h${m}>
|
18036
18043
|
</a>`;
|
18037
|
-
},
|
18038
|
-
renderer:
|
18044
|
+
}, Kt.setOptions({
|
18045
|
+
renderer: Ds,
|
18039
18046
|
gfm: !0,
|
18040
18047
|
...a && { breaks: !0 }
|
18041
18048
|
});
|
18042
18049
|
const u = () => ({
|
18043
|
-
__html: Xn.sanitize(
|
18050
|
+
__html: Xn.sanitize(Kt(s), { USE_PROFILES: { html: !0 } })
|
18044
18051
|
});
|
18045
18052
|
return /* @__PURE__ */ t.jsx(
|
18046
18053
|
"article",
|
@@ -18053,7 +18060,7 @@ const Jo = 5, uE = [
|
|
18053
18060
|
}
|
18054
18061
|
);
|
18055
18062
|
};
|
18056
|
-
var
|
18063
|
+
var ps = /* @__PURE__ */ ((e) => (e.WRITE = "write", e.PREVIEW = "preview", e))(ps || {});
|
18057
18064
|
const _E = `
|
18058
18065
|
<br>
|
18059
18066
|
Nothing to preview
|
@@ -18095,7 +18102,7 @@ const mt = {
|
|
18095
18102
|
title: l,
|
18096
18103
|
minEditorHeight: i = 300
|
18097
18104
|
}) => {
|
18098
|
-
const [c, u] = A(!1), [d, m] = A(a), [p, _] = A(e), [g, h] = A(
|
18105
|
+
const [c, u] = A(!1), [d, m] = A(a), [p, _] = A(e), [g, h] = A(ps.WRITE), f = !Yn(e, p), E = X(null);
|
18099
18106
|
O(() => {
|
18100
18107
|
_(e);
|
18101
18108
|
}, [e]);
|
@@ -18107,7 +18114,7 @@ const mt = {
|
|
18107
18114
|
}), S = !1), S;
|
18108
18115
|
}, x = () => {
|
18109
18116
|
let T = !0;
|
18110
|
-
f && !d && (T = window.confirm(EE)), T && (_(e), m(!d), h(
|
18117
|
+
f && !d && (T = window.confirm(EE)), T && (_(e), m(!d), h(ps.WRITE));
|
18111
18118
|
}, v = async () => {
|
18112
18119
|
const T = p.trim();
|
18113
18120
|
if (b(T))
|
@@ -18308,10 +18315,10 @@ const mt = {
|
|
18308
18315
|
),
|
18309
18316
|
childProps: {
|
18310
18317
|
writeButton: {
|
18311
|
-
className: `tab-list__tab pointer fs-13 ${g ===
|
18318
|
+
className: `tab-list__tab pointer fs-13 ${g === ps.WRITE && "cb-5 fw-6 active active-tab"}`
|
18312
18319
|
},
|
18313
18320
|
previewButton: {
|
18314
|
-
className: `tab-list__tab pointer fs-13 ${g ===
|
18321
|
+
className: `tab-list__tab pointer fs-13 ${g === ps.PREVIEW && "cb-5 fw-6 active active-tab"}`
|
18315
18322
|
},
|
18316
18323
|
textArea: {
|
18317
18324
|
tabIndex: r
|
@@ -18319,7 +18326,7 @@ const mt = {
|
|
18319
18326
|
}
|
18320
18327
|
}
|
18321
18328
|
),
|
18322
|
-
g ===
|
18329
|
+
g === ps.WRITE && /* @__PURE__ */ t.jsx("div", { className: "form cluster__description-footer pt-12 pb-12", children: /* @__PURE__ */ t.jsxs("div", { className: "form__buttons pl-16 pr-16", children: [
|
18323
18330
|
/* @__PURE__ */ t.jsx(
|
18324
18331
|
"button",
|
18325
18332
|
{
|
@@ -18392,7 +18399,7 @@ function _v({
|
|
18392
18399
|
}) {
|
18393
18400
|
let o = e;
|
18394
18401
|
s && (o = bE(e));
|
18395
|
-
const l = o?.toLowerCase(), i = l === wt.NOT_DEPLOYED.noSpaceLower, c = e === wt.NOT_READY.normalCase, u = o || (a ? wt.NOT_AVILABLE.normalCase : "-"), d = n ? NE : wt.NOT_DEPLOYED.normalCase, m = i ? d : u, _ = i ? wt.NOT_DEPLOYED.lowerCase : c ? wt.NOT_READY.lowerCase : l, g = () => _ ? _ === "failed" || _ === "error" ? /* @__PURE__ */ t.jsx(
|
18402
|
+
const l = o?.toLowerCase(), i = l === wt.NOT_DEPLOYED.noSpaceLower, c = e === wt.NOT_READY.normalCase, u = o || (a ? wt.NOT_AVILABLE.normalCase : "-"), d = n ? NE : wt.NOT_DEPLOYED.normalCase, m = i ? d : u, _ = i ? wt.NOT_DEPLOYED.lowerCase : c ? wt.NOT_READY.lowerCase : l, g = () => _ ? _ === "failed" || _ === "error" ? /* @__PURE__ */ t.jsx(Is, { className: "icon-dim-16 dc__no-shrink ic-error-cross-red" }) : /* @__PURE__ */ t.jsx("span", { className: `dc__app-summary__icon icon-dim-16 ${_} ${_}--node` }) : a ? /* @__PURE__ */ t.jsx(
|
18396
18403
|
"span",
|
18397
18404
|
{
|
18398
18405
|
className: `dc__app-summary__icon icon-dim-16 ${wt.NOT_DEPLOYED.lowerCase} ${wt.NOT_DEPLOYED.lowerCase}--node`
|
@@ -18404,7 +18411,7 @@ function _v({
|
|
18404
18411
|
arrow: !1,
|
18405
18412
|
placement: "top",
|
18406
18413
|
content: "To fetch app status for GitOps based deployments open the app detail page",
|
18407
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(
|
18414
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(Ns, { className: "icon-dim-16 fcn-6" }) })
|
18408
18415
|
}
|
18409
18416
|
);
|
18410
18417
|
return r ? _ || a ? /* @__PURE__ */ t.jsx(Q, { className: "default-tt", arrow: !1, placement: "top", content: m, children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: g() }) }) : g() : /* @__PURE__ */ t.jsxs("div", { className: "flex left", children: [
|
@@ -18426,7 +18433,7 @@ export {
|
|
18426
18433
|
fC as J,
|
18427
18434
|
At as K,
|
18428
18435
|
hC as L,
|
18429
|
-
|
18436
|
+
Cs as M,
|
18430
18437
|
xu as N,
|
18431
18438
|
Eu as O,
|
18432
18439
|
$e as P,
|
@@ -18445,7 +18452,7 @@ export {
|
|
18445
18452
|
wS as a$,
|
18446
18453
|
Su as a0,
|
18447
18454
|
xC as a1,
|
18448
|
-
|
18455
|
+
hn as a2,
|
18449
18456
|
EC as a3,
|
18450
18457
|
La as a4,
|
18451
18458
|
Vt as a5,
|
@@ -18454,7 +18461,7 @@ export {
|
|
18454
18461
|
Ii as a8,
|
18455
18462
|
wa as a9,
|
18456
18463
|
Pa as aA,
|
18457
|
-
|
18464
|
+
Ws as aB,
|
18458
18465
|
Da as aC,
|
18459
18466
|
Gt as aD,
|
18460
18467
|
Ou as aE,
|
@@ -18462,14 +18469,14 @@ export {
|
|
18462
18469
|
ae as aG,
|
18463
18470
|
Li as aH,
|
18464
18471
|
wi as aI,
|
18465
|
-
|
18472
|
+
ts as aJ,
|
18466
18473
|
Oe as aK,
|
18467
18474
|
dt as aL,
|
18468
18475
|
Ax as aM,
|
18469
18476
|
ge as aN,
|
18470
18477
|
IS as aO,
|
18471
18478
|
xr as aP,
|
18472
|
-
|
18479
|
+
mn as aQ,
|
18473
18480
|
AS as aR,
|
18474
18481
|
jS as aS,
|
18475
18482
|
Qe as aT,
|
@@ -18487,23 +18494,23 @@ export {
|
|
18487
18494
|
bC as ae,
|
18488
18495
|
yr as af,
|
18489
18496
|
Lr as ag,
|
18490
|
-
|
18497
|
+
fs as ah,
|
18491
18498
|
CC as ai,
|
18492
18499
|
vu as aj,
|
18493
18500
|
ht as ak,
|
18494
18501
|
ta as al,
|
18495
18502
|
qe as am,
|
18496
|
-
|
18497
|
-
|
18503
|
+
rs as an,
|
18504
|
+
ks as ao,
|
18498
18505
|
Ra as ap,
|
18499
18506
|
sa as aq,
|
18500
|
-
|
18507
|
+
Vs as ar,
|
18501
18508
|
Iu as as,
|
18502
18509
|
Au as at,
|
18503
18510
|
Oa as au,
|
18504
18511
|
ju as av,
|
18505
18512
|
yi as aw,
|
18506
|
-
|
18513
|
+
_s as ax,
|
18507
18514
|
yu as ay,
|
18508
18515
|
In as az,
|
18509
18516
|
Bx as b,
|
@@ -18519,7 +18526,7 @@ export {
|
|
18519
18526
|
Ko as b8,
|
18520
18527
|
zo as b9,
|
18521
18528
|
jl as bA,
|
18522
|
-
|
18529
|
+
pn as bB,
|
18523
18530
|
Zl as bC,
|
18524
18531
|
al as bD,
|
18525
18532
|
Gx as bE,
|
@@ -18529,7 +18536,7 @@ export {
|
|
18529
18536
|
nc as bI,
|
18530
18537
|
ft as bJ,
|
18531
18538
|
nv as bK,
|
18532
|
-
|
18539
|
+
Zs as bL,
|
18533
18540
|
tv as bM,
|
18534
18541
|
sv as bN,
|
18535
18542
|
ah as bO,
|
@@ -18554,7 +18561,7 @@ export {
|
|
18554
18561
|
Ox as bg,
|
18555
18562
|
FS as bh,
|
18556
18563
|
VS as bi,
|
18557
|
-
|
18564
|
+
Qs as bj,
|
18558
18565
|
GS as bk,
|
18559
18566
|
Px as bl,
|
18560
18567
|
Jl as bm,
|
@@ -18576,7 +18583,7 @@ export {
|
|
18576
18583
|
Ph as c0,
|
18577
18584
|
$T as c1,
|
18578
18585
|
Fn as c2,
|
18579
|
-
|
18586
|
+
cn as c3,
|
18580
18587
|
Mh as c4,
|
18581
18588
|
FT as c5,
|
18582
18589
|
VT as c6,
|
@@ -18586,17 +18593,17 @@ export {
|
|
18586
18593
|
lv as cA,
|
18587
18594
|
dv as cB,
|
18588
18595
|
uv as cC,
|
18589
|
-
|
18596
|
+
un as cD,
|
18590
18597
|
mv as cE,
|
18591
18598
|
pv as cF,
|
18592
18599
|
er as cG,
|
18593
18600
|
fv as cH,
|
18594
18601
|
Xo as cI,
|
18595
18602
|
hv as cJ,
|
18596
|
-
|
18603
|
+
ps as cK,
|
18597
18604
|
Ki as cL,
|
18598
18605
|
yt as cM,
|
18599
|
-
|
18606
|
+
hs as cN,
|
18600
18607
|
eg as cO,
|
18601
18608
|
_v as cP,
|
18602
18609
|
bE as cQ,
|
@@ -18608,11 +18615,11 @@ export {
|
|
18608
18615
|
Xp as cW,
|
18609
18616
|
Qp as cX,
|
18610
18617
|
Zp as cY,
|
18611
|
-
|
18618
|
+
xn as cZ,
|
18612
18619
|
JC as c_,
|
18613
18620
|
fo as ca,
|
18614
18621
|
kh as cb,
|
18615
|
-
|
18622
|
+
is as cc,
|
18616
18623
|
oc as cd,
|
18617
18624
|
Um as ce,
|
18618
18625
|
BC as cf,
|
@@ -18637,14 +18644,14 @@ export {
|
|
18637
18644
|
M_ as cy,
|
18638
18645
|
k_ as cz,
|
18639
18646
|
Yn as d,
|
18640
|
-
|
18647
|
+
Rs as d$,
|
18641
18648
|
R as d0,
|
18642
|
-
|
18649
|
+
ss as d1,
|
18643
18650
|
jn as d2,
|
18644
|
-
|
18651
|
+
zt as d3,
|
18645
18652
|
HC as d4,
|
18646
18653
|
el as d5,
|
18647
|
-
|
18654
|
+
Ts as d6,
|
18648
18655
|
we as d7,
|
18649
18656
|
YC as d8,
|
18650
18657
|
Br as d9,
|
@@ -18652,7 +18659,7 @@ export {
|
|
18652
18659
|
hf as dB,
|
18653
18660
|
nT as dC,
|
18654
18661
|
aT as dD,
|
18655
|
-
|
18662
|
+
ms as dE,
|
18656
18663
|
gf as dF,
|
18657
18664
|
xf as dG,
|
18658
18665
|
Ef as dH,
|
@@ -18690,7 +18697,7 @@ export {
|
|
18690
18697
|
of as dm,
|
18691
18698
|
eT as dn,
|
18692
18699
|
tT as dp,
|
18693
|
-
|
18700
|
+
Bs as dq,
|
18694
18701
|
uf as dr,
|
18695
18702
|
mf as ds,
|
18696
18703
|
pf as dt,
|
@@ -18714,9 +18721,9 @@ export {
|
|
18714
18721
|
ET as e9,
|
18715
18722
|
_h as eA,
|
18716
18723
|
tt as eB,
|
18717
|
-
|
18724
|
+
Js as eC,
|
18718
18725
|
no as eD,
|
18719
|
-
|
18726
|
+
gs as eE,
|
18720
18727
|
gh as eF,
|
18721
18728
|
xh as eG,
|
18722
18729
|
Wh as eH,
|
@@ -18730,7 +18737,7 @@ export {
|
|
18730
18737
|
Qh as eP,
|
18731
18738
|
Zh as eQ,
|
18732
18739
|
e_ as eR,
|
18733
|
-
|
18740
|
+
Xs as eS,
|
18734
18741
|
JT as eT,
|
18735
18742
|
XT as eU,
|
18736
18743
|
QT as eV,
|
@@ -18739,10 +18746,10 @@ export {
|
|
18739
18746
|
Eg as eY,
|
18740
18747
|
Eh as eZ,
|
18741
18748
|
Nh as e_,
|
18742
|
-
|
18749
|
+
os as ea,
|
18743
18750
|
NT as eb,
|
18744
|
-
|
18745
|
-
|
18751
|
+
Hs as ec,
|
18752
|
+
ln as ed,
|
18746
18753
|
bT as ee,
|
18747
18754
|
Zf as ef,
|
18748
18755
|
AT as eg,
|
@@ -18794,7 +18801,7 @@ export {
|
|
18794
18801
|
kt as fO,
|
18795
18802
|
zC as fP,
|
18796
18803
|
Ha as fQ,
|
18797
|
-
|
18804
|
+
Ss as fR,
|
18798
18805
|
fl as fS,
|
18799
18806
|
g_ as fT,
|
18800
18807
|
w_ as fU,
|
@@ -18820,7 +18827,7 @@ export {
|
|
18820
18827
|
Dg as fn,
|
18821
18828
|
Mg as fo,
|
18822
18829
|
kg as fp,
|
18823
|
-
|
18830
|
+
Zt as fq,
|
18824
18831
|
sS as fr,
|
18825
18832
|
ho as fs,
|
18826
18833
|
hl as ft,
|
@@ -18833,8 +18840,8 @@ export {
|
|
18833
18840
|
ZS as g,
|
18834
18841
|
If as g$,
|
18835
18842
|
El as g0,
|
18836
|
-
|
18837
|
-
|
18843
|
+
Fs as g1,
|
18844
|
+
Cn as g2,
|
18838
18845
|
Nl as g3,
|
18839
18846
|
dl as g4,
|
18840
18847
|
hS as g5,
|
@@ -18892,7 +18899,7 @@ export {
|
|
18892
18899
|
Ix as gu,
|
18893
18900
|
Sx as gv,
|
18894
18901
|
Uo as gw,
|
18895
|
-
|
18902
|
+
vs as gx,
|
18896
18903
|
Cl as gy,
|
18897
18904
|
De as gz,
|
18898
18905
|
qx as h,
|
@@ -18919,7 +18926,7 @@ export {
|
|
18919
18926
|
ll as hJ,
|
18920
18927
|
vT as hK,
|
18921
18928
|
IT as hL,
|
18922
|
-
|
18929
|
+
_n as hM,
|
18923
18930
|
Wu as hN,
|
18924
18931
|
na as hO,
|
18925
18932
|
Pi as hP,
|
@@ -18927,10 +18934,10 @@ export {
|
|
18927
18934
|
Ku as hR,
|
18928
18935
|
SC as hS,
|
18929
18936
|
Di as hT,
|
18930
|
-
|
18937
|
+
qs as hU,
|
18931
18938
|
zu as hV,
|
18932
18939
|
qu as hW,
|
18933
|
-
|
18940
|
+
Gs as hX,
|
18934
18941
|
Ju as hY,
|
18935
18942
|
ka as hZ,
|
18936
18943
|
V as h_,
|
@@ -18945,8 +18952,8 @@ export {
|
|
18945
18952
|
q as hi,
|
18946
18953
|
Ma as hj,
|
18947
18954
|
Du as hk,
|
18948
|
-
|
18949
|
-
|
18955
|
+
Ks as hl,
|
18956
|
+
us as hm,
|
18950
18957
|
Mu as hn,
|
18951
18958
|
ku as ho,
|
18952
18959
|
Uu as hp,
|
@@ -18954,7 +18961,7 @@ export {
|
|
18954
18961
|
He as hr,
|
18955
18962
|
cr as hs,
|
18956
18963
|
Bu as ht,
|
18957
|
-
|
18964
|
+
zs as hu,
|
18958
18965
|
pt as hv,
|
18959
18966
|
$u as hw,
|
18960
18967
|
Fu as hx,
|
@@ -18962,7 +18969,7 @@ export {
|
|
18962
18969
|
Vu as hz,
|
18963
18970
|
Dt as i,
|
18964
18971
|
nt as i0,
|
18965
|
-
|
18972
|
+
gn as i1,
|
18966
18973
|
re as i2,
|
18967
18974
|
Xu as i3,
|
18968
18975
|
Ua as i4,
|
@@ -19001,7 +19008,7 @@ export {
|
|
19001
19008
|
rm as im,
|
19002
19009
|
Dr as io,
|
19003
19010
|
Em as ip,
|
19004
|
-
|
19011
|
+
Us as iq,
|
19005
19012
|
Nm as ir,
|
19006
19013
|
bm as is,
|
19007
19014
|
_t as it,
|
@@ -19015,10 +19022,10 @@ export {
|
|
19015
19022
|
iv as k,
|
19016
19023
|
Ct as l,
|
19017
19024
|
cv as m,
|
19018
|
-
|
19019
|
-
|
19025
|
+
ds as n,
|
19026
|
+
ws as o,
|
19020
19027
|
lr as p,
|
19021
|
-
|
19028
|
+
bs as q,
|
19022
19029
|
Pn as r,
|
19023
19030
|
Y as s,
|
19024
19031
|
_u as t,
|