@devtron-labs/devtron-fe-common-lib 1.20.5-pre-6 → 1.20.5-pre-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,9 +4,9 @@ var ll = (e) => {
|
|
4
4
|
};
|
5
5
|
var Gf = (e, s, n) => s in e ? Bf(e, s, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[s] = n;
|
6
6
|
var pe = (e, s, n) => Gf(e, typeof s != "symbol" ? s + "" : s, n), dl = (e, s, n) => s.has(e) || ll("Cannot " + n);
|
7
|
-
var Js = (e, s, n) => (dl(e, s, "read from private field"), n ? n.call(e) : s.get(e)),
|
8
|
-
import { j as t, i as Ie, Q as
|
9
|
-
import Ue, { createContext as Lt, useContext as as, useMemo as J, useState as j, useEffect as M, forwardRef as io, createElement as oc, Children as di, useRef as G, useCallback as Ve, useLayoutEffect as ic, createRef as Dr, cloneElement as
|
7
|
+
var Js = (e, s, n) => (dl(e, s, "read from private field"), n ? n.call(e) : s.get(e)), qa = (e, s, n) => s.has(e) ? ll("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, n), Xa = (e, s, n, a) => (dl(e, s, "write to private field"), a ? a.call(e, n) : s.set(e, n), n);
|
8
|
+
import { j as t, i as Ie, Q as Ja, k as Vf, F as Hf, n as Yf, D as wr, t as ze, g as Wf, a as Kf, E as da, S as ac, b as Wu, r as Ku, s as zf, o as qf, c as ul, d as Xf, e as Jf, y as Zf, l as Lr, f as Qf, h as eh, m as ml, p as pl, q as th, u as sh, v as nh, w as ah, x as rh, z as oh, A as ih, B as zu, T as _l, C as rc, G as ch, H as fl, I as lh, J as dh, K as qu, L as hl, M as uh, N as mh, O as ph, P as _h, R as gl, V as fh, U as hh, W as gh, X as xl, Y as xh, Z as El, _ as Cl, $ as Eh, a0 as Ch, a1 as Nh, a2 as bh, a3 as Th, a4 as Sh, a5 as vh, a6 as ko, a7 as Ah, a8 as Ih, a9 as Rh, aa as yh, ab as Oh, ac as Xu, ad as ra, ae as jh, af as wh, ag as Lh, ah as Dh, ai as Ph, aj as Mh, ak as kh, al as Uh, am as $h, an as Fh, ao as Bh, ap as Ju, aq as Gh, ar as Vh, as as Hh, at as Yh, au as Wh, av as Kh, aw as zh, ax as qh, ay as Nl, az as bl, aA as Xh, aB as Jh, aC as Zh, aD as Qh, aE as eg, aF as tg, aG as sg, aH as ng, aI as Zu, aJ as Qu, aK as ag, aL as rg, aM as og, aN as ig, aO as cg, aP as lg, aQ as dg, aR as ug, aS as mg, aT as pg, aU as _g, aV as Qs } from "./@vendor-DceGoESd.js";
|
9
|
+
import Ue, { createContext as Lt, useContext as as, useMemo as J, useState as j, useEffect as M, forwardRef as io, createElement as oc, Children as di, useRef as G, useCallback as Ve, useLayoutEffect as ic, createRef as Dr, cloneElement as ua, Fragment as cs, memo as At, Component as cc } from "react";
|
10
10
|
import { ReactComponent as fg } from "./assets/ic-info-filled-override.99e8094a.svg";
|
11
11
|
import * as hg from "yaml";
|
12
12
|
import es, { parse as em, YAMLParseError as gg } from "yaml";
|
@@ -23,17 +23,17 @@ import { ReactComponent as am } from "./assets/ic-memory.c3264de1.svg";
|
|
23
23
|
import xs from "react-ga4";
|
24
24
|
import { h as je } from "./@moment-CGWt8tF2.js";
|
25
25
|
import Tg from "./assets/DeployAudio.566e45df.mp3";
|
26
|
-
import { m as Fe, A as dn, a as
|
26
|
+
import { m as Fe, A as dn, a as ma, u as pa, b as Ds, c as Tl, d as Sg } from "./@framer-motion-DMkBQPN0.js";
|
27
27
|
import dc, { components as Xe } from "react-select";
|
28
28
|
import { ReactComponent as vg } from "./assets/ic-arrow-backward.d951202a.svg";
|
29
29
|
import { ReactComponent as rm } from "./assets/ic-docker.48906f4d.svg";
|
30
|
-
import { ReactComponent as
|
30
|
+
import { ReactComponent as _a } from "./assets/ic-calendar.1d9c66d2.svg";
|
31
31
|
import { ReactComponent as ui } from "./assets/ic-person.d066bc6d.svg";
|
32
32
|
import { ReactComponent as om } from "./assets/ic-branch.8db43d66.svg";
|
33
33
|
import { ReactComponent as im } from "./assets/ic-arrow-forward.a2b8ab45.svg";
|
34
34
|
import Ag, { ReactComponent as cm } from "./assets/ic-mechanical-operation.04a318d6.svg";
|
35
35
|
import lm from "./assets/app-not-deployed.622dc6ba.svg";
|
36
|
-
import { BehaviorSubject as mo, noop as
|
36
|
+
import { BehaviorSubject as mo, noop as Za } from "rxjs";
|
37
37
|
import Ig, { ReactComponent as Es } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
38
38
|
import { ReactComponent as Rg } from "./assets/ic-exit-fullscreen.1ae582d1.svg";
|
39
39
|
import { ReactComponent as yg } from "./assets/ic-fullscreen.b05e5087.svg";
|
@@ -42,8 +42,8 @@ import { ReactComponent as Cs } from "./assets/ic-caret-down.1666c029.svg";
|
|
42
42
|
import { ReactComponent as Og } from "./assets/ic-collapse-all.56740920.svg";
|
43
43
|
import { ReactComponent as jg } from "./assets/ic-expand-all.d1d223f2.svg";
|
44
44
|
import { ReactComponent as dm } from "./assets/ic-arrow-out.6aea09d0.svg";
|
45
|
-
import { ReactComponent as
|
46
|
-
import { ReactComponent as
|
45
|
+
import { ReactComponent as Ra } from "./assets/ic-help.39c58c34.svg";
|
46
|
+
import { ReactComponent as ya } from "./assets/ic-info-filled.f870ac11.svg";
|
47
47
|
import { ReactComponent as uc } from "./assets/ic-stack.a6a11fe3.svg";
|
48
48
|
import { ReactComponent as um } from "./assets/ic-aborted.d400d0e8.svg";
|
49
49
|
import { ReactComponent as wg } from "./assets/ic-arrow-right.eda141d3.svg";
|
@@ -59,9 +59,9 @@ import { ReactComponent as pm } from "./assets/ic-arrow-up-down.945ee496.svg";
|
|
59
59
|
import { ReactComponent as mc } from "./assets/ic-sort-arrow-down.5cf54d08.svg";
|
60
60
|
import { ReactComponent as ls } from "./assets/ic-close.43adc42a.svg";
|
61
61
|
import { ReactComponent as _m } from "./assets/ic-error.9d61b25b.svg";
|
62
|
-
import { ReactComponent as
|
62
|
+
import { ReactComponent as fa } from "./assets/ic-info-outlined.f4fa3224.svg";
|
63
63
|
import { ReactComponent as pi } from "./assets/ic-expand.ab992205.svg";
|
64
|
-
import { ReactComponent as
|
64
|
+
import { ReactComponent as Oa } from "./assets/ic-check.27c51fa1.svg";
|
65
65
|
import { ReactComponent as $g } from "./assets/ic-check-circle-dots.296c8a3b.svg";
|
66
66
|
import { ReactComponent as Fg } from "./assets/ic-edit-file.aea811d8.svg";
|
67
67
|
import po from "./assets/no-artifact.fd2d84d9.webp";
|
@@ -94,7 +94,7 @@ import { r as Nm, C as ex, a as tx } from "./@react-dates-BjZWpiVv.js";
|
|
94
94
|
import { ReactComponent as fc } from "./assets/ic-clock.c21a2d14.svg";
|
95
95
|
import sx from "./assets/ic-calender-blank.963e3423.svg";
|
96
96
|
import nx, { ReactComponent as Ws } from "./assets/ic-cross.01e03666.svg";
|
97
|
-
import { ReactComponent as
|
97
|
+
import { ReactComponent as oa } from "./assets/inject-tag.28e72db6.svg";
|
98
98
|
import { ReactComponent as fo } from "./assets/ic-pencil.c75a6acc.svg";
|
99
99
|
import { ReactComponent as bm } from "./assets/ic-filter.8f403d6f.svg";
|
100
100
|
import { ReactComponent as Tm } from "./assets/ic-filter-applied.9fc48d0f.svg";
|
@@ -430,12 +430,12 @@ import { ReactComponent as VT } from "./assets/ic-medium-clean-brush.f683d4d6.sv
|
|
430
430
|
import { ReactComponent as HT } from "./assets/ic-medium-pause.7449078a.svg";
|
431
431
|
import { ReactComponent as YT } from "./assets/ic-medium-play.f7a8ddb7.svg";
|
432
432
|
import { ReactComponent as WT } from "./assets/ic-locked.dab69058.svg";
|
433
|
-
var
|
433
|
+
var ja = /* @__PURE__ */ ((e) => (e.black = "black", e.white = "white", e))(ja || {}), Tt = /* @__PURE__ */ ((e) => (e.CHECKED = "CHECKED", e.INTERMEDIATE = "INTERMEDIATE", e.BULK_CHECKED = "BULK_CHECKED", e))(Tt || {}), Ks = /* @__PURE__ */ ((e) => (e.Large = "large", e.Medium = "medium", e.SMALL = "small", e))(Ks || {});
|
434
434
|
const Qn = {
|
435
435
|
Security: "SECURITY",
|
436
436
|
Changes: "CHANGES"
|
437
437
|
};
|
438
|
-
var yt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(yt || {}), Um = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Um || {}), KT = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(KT || {}), $m = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))($m || {}),
|
438
|
+
var yt = /* @__PURE__ */ ((e) => (e.PRECD = "PRECD", e.CD = "CD", e.POSTCD = "POSTCD", e.APPROVAL = "APPROVAL", e))(yt || {}), Um = /* @__PURE__ */ ((e) => (e.specific = "SPECIFIC", e.any = "ANY", e.notConfigured = "NOT_CONFIGURED", e))(Um || {}), KT = /* @__PURE__ */ ((e) => (e.configMap = "configuration/config-map", e.configSecret = "configuration/config-secret", e.deploymentTemplate = "configuration/deployment-template", e.deploymentTrigger = "approval/deployment", e))(KT || {}), $m = /* @__PURE__ */ ((e) => (e[e.init = 0] = "init", e[e.requested = 1] = "requested", e[e.approved = 2] = "approved", e[e.consumed = 3] = "consumed", e))($m || {}), ia = /* @__PURE__ */ ((e) => (e[e.ALLOWED = 0] = "ALLOWED", e[e.BLOCKED = 1] = "BLOCKED", e[e.ERROR = 2] = "ERROR", e))(ia || {}), zT = /* @__PURE__ */ ((e) => (e.EXTERNAL = "ext", e))(zT || {}), qT = /* @__PURE__ */ ((e) => (e.AWAITING = "AWAITING", e.PROMOTED = "PROMOTED", e.CANCELLED = "CANCELLED", e.STALE = "STALE", e))(qT || {}), gi = /* @__PURE__ */ ((e) => (e.ROLLBACK = "rollback", e.CD_MATERIALS = "cd-materials", e.IMAGE_PROMOTION = "image-promotion", e))(gi || {}), XT = /* @__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))(XT || {}), Fm = /* @__PURE__ */ ((e) => (e.RESOURCE = "ELIGIBLE_RESOURCES", e.ALL = "ALL_RESOURCES", e))(Fm || {}), JT = /* @__PURE__ */ ((e) => (e.MANDATORY_TAG = "mandatory-tags", e.MANDATORY_PLUGIN = "mandatory-plugins", e.SECURITY_SCAN = "security-scan", e))(JT || {}), St = /* @__PURE__ */ ((e) => (e.HELM = "helm", e.ARGO = "argo_cd", e.MANIFEST_DOWNLOAD = "manifest_download", e.MANIFEST_PUSH = "manifest_push", e.FLUX = "flux_cd", e))(St || {}), ZT = /* @__PURE__ */ ((e) => (e[e.PASS = 1] = "PASS", e[e.FAIL = 0] = "FAIL", e))(ZT || {}), Sn = /* @__PURE__ */ ((e) => (e.CI_PIPELINE = "CI_PIPELINE", e.CD_PIPELINE = "CD_PIPELINE", e.WEBHOOK = "WEBHOOK", e.LINKED_CD = "LINKED_CD", e))(Sn || {}), ks = /* @__PURE__ */ ((e) => (e.GIT = "GIT", e.CI = "CI", e.WEBHOOK = "WEBHOOK", e.PRE_CD = "PRECD", e.CD = "CD", e.POST_CD = "POSTCD", e))(ks || {}), ha = /* @__PURE__ */ ((e) => (e.LEFT = "left", e.RIGHT = "right", e))(ha || {}), xi = /* @__PURE__ */ ((e) => (e.SEQUENTIAL = "SEQUENTIAL", e.PARALLEL = "PARALLEL", e))(xi || {}), QT = /* @__PURE__ */ ((e) => (e.MANAGER = "manager", e.ADMIN = "admin", e.TRIGGER = "trigger", e.VIEW = "view", e.UPDATE = "update", e.EDIT = "edit", e.APPROVER = "approver", e))(QT || {});
|
439
439
|
const eS = ({ tooltipContent: e }) => e ? /* @__PURE__ */ t.jsxs("div", { className: "dc__white-space-pre-wrap", children: [
|
440
440
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-12 fw-6 lh-18", children: "Click to add" }),
|
441
441
|
e
|
@@ -448,7 +448,7 @@ function f4({
|
|
448
448
|
handleAddCD: r,
|
449
449
|
tooltipContent: o
|
450
450
|
}) {
|
451
|
-
const i = e ===
|
451
|
+
const i = e === ha.RIGHT ? n : a, c = () => {
|
452
452
|
r(e);
|
453
453
|
};
|
454
454
|
return s?.includes(e) ? /* @__PURE__ */ t.jsx(
|
@@ -461,7 +461,7 @@ function f4({
|
|
461
461
|
children: /* @__PURE__ */ t.jsxs(
|
462
462
|
"svg",
|
463
463
|
{
|
464
|
-
x: i.x + (e ===
|
464
|
+
x: i.x + (e === ha.RIGHT ? -25 : i.width + 5),
|
465
465
|
y: i.y + i.height / 2 - 10,
|
466
466
|
width: "20",
|
467
467
|
height: "20",
|
@@ -501,7 +501,7 @@ const tS = ({ startNode: e }) => e.type === ks.WEBHOOK ? Sn.WEBHOOK : e.type ===
|
|
501
501
|
}) => {
|
502
502
|
if (!s)
|
503
503
|
return;
|
504
|
-
const l = tS({ startNode: n }), d = c && e ===
|
504
|
+
const l = tS({ startNode: n }), d = c && e === ha.RIGHT ? xi.PARALLEL : xi.SEQUENTIAL, u = !c && e === ha.RIGHT ? a.id : null;
|
505
505
|
s(r, o, l, n.id, i, u, d);
|
506
506
|
}, g4 = {
|
507
507
|
AWS: "ic-aws",
|
@@ -524,8 +524,8 @@ const tS = ({ startNode: e }) => e.type === ks.WEBHOOK ? Sn.WEBHOOK : e.type ===
|
|
524
524
|
DigitalOcean: "DigitalOcean",
|
525
525
|
Unknown: "N/A"
|
526
526
|
};
|
527
|
-
var ea = /* @__PURE__ */ ((e) => (e.CLUSTERS = "clusters", e.ENVIRONMENTS = "environments", e.PROJECTS = "projects", e.APPLICATIONS = "applications", e))(ea || {}),
|
528
|
-
const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator",
|
527
|
+
var ea = /* @__PURE__ */ ((e) => (e.CLUSTERS = "clusters", e.ENVIRONMENTS = "environments", e.PROJECTS = "projects", e.APPLICATIONS = "applications", e))(ea || {}), hr = /* @__PURE__ */ ((e) => (e.ITEM_NAME = "itemName", e.VIEW = "view", e.DETAIL = "detail", e))(hr || {});
|
528
|
+
const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", wa = "https://docs.devtron.ai", E4 = "https://devtron.ai/", sS = "/devtron/v1.7", go = "https://discord.devtron.ai/", nS = "https://json-schema.org/draft/2020-12/schema", C4 = "https://license.devtron.ai/dashboard", aS = "https://chatgpt.com/g/g-6826efa4362c8191b23e7bfa0ac036db-devtron-expert", Yt = {
|
529
529
|
STRING: /^[a-zA-Z0-9_]+$/,
|
530
530
|
DECIMAL_NUMBERS: /^-?\d*\.?\d*$/,
|
531
531
|
POSITIVE_DECIMAL_NUMBERS: /^\d*\.?\d*$/,
|
@@ -546,7 +546,7 @@ const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
546
546
|
ALPHANUMERIC_WITH_SPECIAL_CHAR_AND_SLASH: /^[A-Za-z0-9._/-]+$/,
|
547
547
|
// allow alphanumeric,(.) ,(-),(_),(/)
|
548
548
|
EMAIL: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
|
549
|
-
}, ms = "/application-management", Uo = `${ms}/templates/devtron-app`, hn = `${ms}/configurations`,
|
549
|
+
}, ms = "/application-management", Uo = `${ms}/templates/devtron-app`, hn = `${ms}/configurations`, Qa = "/infrastructure-management", rS = "/software-release-management", Rs = "/cost-visibility", oS = "/security-center", Rl = "/automation-and-enablement", Yn = "/data-protection-management", er = "/global-configuration", yl = "/ai-recommendations", Se = {
|
550
550
|
LOGIN: "/login",
|
551
551
|
LOGIN_SSO: "/login/sso",
|
552
552
|
APP_LIST: "list",
|
@@ -589,10 +589,10 @@ const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
589
589
|
APPLICATION_MANAGEMENT_CONFIGURATIONS_BUILD_INFRA_PROFILES: `${hn}/build-infra/profiles`,
|
590
590
|
APPLICATION_MANAGEMENT_CONFIGURATIONS_NOTIFICATIONS: `${hn}/notifications`,
|
591
591
|
// INFRASTRUCTURE MANAGEMENT
|
592
|
-
INFRASTRUCTURE_MANAGEMENT:
|
593
|
-
INFRASTRUCTURE_MANAGEMENT_OVERVIEW: `${
|
594
|
-
INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: `${
|
595
|
-
INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: `${
|
592
|
+
INFRASTRUCTURE_MANAGEMENT: Qa,
|
593
|
+
INFRASTRUCTURE_MANAGEMENT_OVERVIEW: `${Qa}/overview`,
|
594
|
+
INFRASTRUCTURE_MANAGEMENT_RESOURCE_BROWSER: `${Qa}/resource-browser`,
|
595
|
+
INFRASTRUCTURE_MANAGEMENT_RESOURCE_WATCHER: `${Qa}/resource-watcher`,
|
596
596
|
// SOFTWARE RELEASE MANAGEMENT
|
597
597
|
SOFTWARE_RELEASE_MANAGEMENT: rS,
|
598
598
|
// COST VISIBILITY
|
@@ -603,7 +603,7 @@ const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
603
603
|
COST_BREAKDOWN_ENVIRONMENTS: `${Rs}/breakdown/${ea.ENVIRONMENTS}`,
|
604
604
|
COST_BREAKDOWN_PROJECTS: `${Rs}/breakdown/${ea.PROJECTS}`,
|
605
605
|
COST_BREAKDOWN_APPLICATIONS: `${Rs}/breakdown/${ea.APPLICATIONS}`,
|
606
|
-
COST_BREAKDOWN_DETAIL: `:${
|
606
|
+
COST_BREAKDOWN_DETAIL: `:${hr.ITEM_NAME}/:${hr.VIEW}/:${hr.DETAIL}?`,
|
607
607
|
COST_CONFIGURATIONS: `${Rs}/configurations`,
|
608
608
|
// SECURITY CENTER
|
609
609
|
SECURITY_CENTER: oS,
|
@@ -617,13 +617,14 @@ const Il = 6e4, Pr = window?.__ORCHESTRATOR_ROOT__ ?? "/orchestrator", ja = "htt
|
|
617
617
|
DATA_PROTECTION_RESTORES: `${Yn}/restores`,
|
618
618
|
DATA_PROTECTION_BACKUP_LOCATIONS: `${Yn}/backup-locations`,
|
619
619
|
// GLOBAL CONFIGURATION
|
620
|
-
GLOBAL_CONFIG:
|
621
|
-
GLOBAL_CONFIG_DOCKER: `${
|
622
|
-
GLOBAL_CONFIG_EDIT_CLUSTER: `${
|
623
|
-
PERMISSION_GROUPS: `${
|
620
|
+
GLOBAL_CONFIG: er,
|
621
|
+
GLOBAL_CONFIG_DOCKER: `${er}/docker`,
|
622
|
+
GLOBAL_CONFIG_EDIT_CLUSTER: `${er}/cluster-env/edit/:clusterId`,
|
623
|
+
PERMISSION_GROUPS: `${er}/auth/groups`,
|
624
624
|
// AI RECOMMENDATIONS
|
625
625
|
AI_RECOMMENDATIONS: yl,
|
626
|
-
AI_RECOMMENDATIONS_OVERVIEW: `${yl}/overview
|
626
|
+
AI_RECOMMENDATIONS_OVERVIEW: `${yl}/overview`,
|
627
|
+
EXTERNAL_APPS: "ea"
|
627
628
|
}, W = {
|
628
629
|
APP: "app",
|
629
630
|
APP_ARTIFACT_PROMOTE_MATERIAL: "app/artifact/promotion-request/material",
|
@@ -762,16 +763,16 @@ function I4(e) {
|
|
762
763
|
return `${e}th`;
|
763
764
|
}
|
764
765
|
}
|
765
|
-
const
|
766
|
+
const tr = {
|
766
767
|
AM: "AM",
|
767
768
|
PM: "PM",
|
768
769
|
MIDNIGHT: "midnight",
|
769
770
|
NOON: "noon"
|
770
771
|
}, R4 = (e) => {
|
771
772
|
const [s, n] = e.split(":"), a = parseInt(s, 10), r = parseInt(n, 10);
|
772
|
-
return a === 12 && r === 0 ?
|
773
|
+
return a === 12 && r === 0 ? tr.NOON : a === 0 && r === 0 ? tr.MIDNIGHT : a >= 12 ? tr.PM : tr.AM;
|
773
774
|
};
|
774
|
-
var
|
775
|
+
var ga = /* @__PURE__ */ ((e) => (e.inputChange = "input-change", e.selectOption = "select-option", e.deselectOption = "deselect-option", e.removeValue = "remove-value", e.inputBlur = "input-blur", e))(ga || {});
|
775
776
|
const Mn = "0001-01-01T00:00:00Z", Bm = [void 0, null, "", NaN], Gt = {
|
776
777
|
OK: 200,
|
777
778
|
NO_CONTENT: 204,
|
@@ -858,7 +859,7 @@ const gS = async (e, s) => {
|
|
858
859
|
action: s
|
859
860
|
});
|
860
861
|
};
|
861
|
-
var Wm = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(Wm || {}), gc = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(gc || {}), xS = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(xS || {}), fe = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e.ResourceRecommender = "ResourceRecommender", e))(fe || {}), gt = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(gt || {}), Ye = /* @__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))(Ye || {}), xc = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(xc || {}), En = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(En || {}), ES = /* @__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))(ES || {}), CS = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(CS || {}), Km = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(Km || {}), ot = /* @__PURE__ */ ((e) => (e.devtronApplication = "application/devtron-application", e.helmChart = "application/helm-application", e.job = "job", e.cluster = "cluster", e.release = "release", e.releaseTrack = "release-track", e.releaseChannel = "release-channel", e.tenant = "tenant", e.installation = "installation", e.infrastructureInstallation = "installations", e.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(ot || {}), Ec = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(Ec || {}), NS = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(NS || {}),
|
862
|
+
var Wm = /* @__PURE__ */ ((e) => (e.GET_LICENSE_CLICKED = "getLicenseClicked", e))(Wm || {}), gc = /* @__PURE__ */ ((e) => (e.OSS_KUBECTL = "oss_kubectl", e.OSS_HELM = "oss_helm", e.ENTERPRISE = "enterprise", e))(gc || {}), xS = /* @__PURE__ */ ((e) => (e.CHART = "helm_charts", e.APPLICATION = "apps", e))(xS || {}), fe = /* @__PURE__ */ ((e) => (e.Service = "Service", e.Alertmanager = "Alertmanager", e.PodSecurity = "PodSecurityPolicy", e.ConfigMap = "ConfigMap", e.ServiceAccount = "ServiceAccount", e.ClusterRoleBinding = "ClusterRoleBinding", e.RoleBinding = "RoleBinding", e.ClusterRole = "ClusterRole", e.Role = "Role", e.Prometheus = "Prometheus", e.ServiceMonitor = "ServiceMonitor", e.Deployment = "Deployment", e.MutatingWebhookConfiguration = "MutatingWebhookConfiguration", e.DaemonSet = "DaemonSet", e.Secret = "Secret", e.ValidatingWebhookConfiguration = "ValidatingWebhookConfiguration", e.Pod = "Pod", e.Ingress = "Ingress", e.ReplicaSet = "ReplicaSet", e.Endpoints = "Endpoints", e.Cluster = "ClusterRoleBinding", e.PodSecurityPolicy = "PodSecurityPolicy", e.CronJob = "CronJob", e.Job = "Job", e.ReplicationController = "ReplicationController", e.StatefulSet = "StatefulSet", e.Rollout = "Rollout", e.PersistentVolumeClaim = "PersistentVolumeClaim", e.PersistentVolume = "PersistentVolume", e.Containers = "Containers", e.InitContainers = "InitContainers", e.EndpointSlice = "EndpointSlice", e.NetworkPolicy = "NetworkPolicy", e.StorageClass = "StorageClass", e.VolumeSnapshot = "VolumeSnapshot", e.VolumeSnapshotContent = "VolumeSnapshotContent", e.VolumeSnapshotClass = "VolumeSnapshotClass", e.PodDisruptionBudget = "PodDisruptionBudget", e.Event = "Event", e.Namespace = "Namespace", e.Node = "Node", e.Overview = "Overview", e.MonitoringDashboard = "MonitoringDashboard", e.UpgradeCluster = "UpgradeCluster", e.ResourceRecommender = "ResourceRecommender", e))(fe || {}), gt = /* @__PURE__ */ ((e) => (e.DEVTRON_APP = "devtron_app", e.DEVTRON_HELM_CHART = "devtron_helm_chart", e.EXTERNAL_HELM_CHART = "external_helm_chart", e.EXTERNAL_ARGO_APP = "external_argo_app", e.EXTERNAL_FLUX_APP = "external_flux_app", e))(gt || {}), Ye = /* @__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))(Ye || {}), xc = /* @__PURE__ */ ((e) => (e.system = "system", e.admin = "admin", e))(xc || {}), En = /* @__PURE__ */ ((e) => (e.CRITICAL = "critical", e.HIGH = "high", e.MEDIUM = "medium", e.LOW = "low", e.UNKNOWN = "unknown", e))(En || {}), ES = /* @__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))(ES || {}), CS = /* @__PURE__ */ ((e) => (e.CODE_SOURCE = "Code Source", e.PARAMETERS = "Parameters", e))(CS || {}), Km = /* @__PURE__ */ ((e) => (e.IMAGE = "Image", e.PARAMETERS = "Parameters", e))(Km || {}), ot = /* @__PURE__ */ ((e) => (e.devtronApplication = "application/devtron-application", e.helmChart = "application/helm-application", e.job = "job", e.cluster = "cluster", e.release = "release", e.releaseTrack = "release-track", e.releaseChannel = "release-channel", e.tenant = "tenant", e.installation = "installation", e.infrastructureInstallation = "installations", e.environment = "environment", e.cdPipeline = "cd-pipeline", e.ciPipeline = "ci-pipeline", e.project = "project", e))(ot || {}), Ec = /* @__PURE__ */ ((e) => (e.v1 = "v1", e.alpha1 = "alpha1", e))(Ec || {}), NS = /* @__PURE__ */ ((e) => (e.lockConfiguration = "lock-configuration", e.imagePromotion = "image-promotion", e.plugins = "plugin", e.approval = "approval", e))(NS || {}), xa = /* @__PURE__ */ ((e) => (e.PULL_REQUEST = "Pull Request", e.TAG_CREATION = "Tag Creation", e))(xa || {}), Jt = /* @__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))(Jt || {}), bS = /* @__PURE__ */ ((e) => (e.SSH = "SSH", e.PASSWORD = "PASSWORD", e.SSH_AND_PASSWORD = "PAT_AND_SSH", e))(bS || {}), TS = /* @__PURE__ */ ((e) => (e.UPSTREAM = "upstream", e.DOWNSTREAM = "downstream", e.LEVEL = "level", e))(TS || {}), gr = /* @__PURE__ */ ((e) => (e.FULFILLED = "fulfilled", e.REJECTED = "rejected", e))(gr || {}), SS = /* @__PURE__ */ ((e) => (e.HTTP = "http:", e.HTTPS = "https:", e.SSH = "ssh:", e.SMTP = "smtp:", e.S3 = "s3:", e))(SS || {}), zm = /* @__PURE__ */ ((e) => (e.GUI = "GUI", e.YAML = "YAML", e))(zm || {});
|
862
863
|
const L4 = [
|
863
864
|
{
|
864
865
|
label: "GUI",
|
@@ -876,15 +877,15 @@ const RS = {
|
|
876
877
|
Auto: "AUTOMATIC",
|
877
878
|
Manual: "MANUAL"
|
878
879
|
};
|
879
|
-
var yS = /* @__PURE__ */ ((e) => (e.ABOUT = "about", e.LICENSE = "license", e.UPDATE = "update", e))(yS || {}), Cc = /* @__PURE__ */ ((e) => (e.FingerPrintMisMatch = "11001", e.LicenseExpired = "11002", e.TamperedCertificate = "11003", e.NoPublicKey = "11004", e.InstallationModeMismatch = "11005", e.LicKeyMismatch = "11006", e.NoCertFound = "11007", e.LicKeyNotFound = "11008", e.ClusterLimitExceeded = "11011", e))(Cc || {}), qm = /* @__PURE__ */ ((e) => (e.LICENSE_STATUS = "X-License-Status", e))(qm || {}), OS = /* @__PURE__ */ ((e) => (e.EKS_AUTO_CLUSTER = "eksAutoCluster", e.EKS_MANUAL_CLUSTER = "eksManualCluster", e))(OS || {}), jS = /* @__PURE__ */ ((e) => (e.USERNAME_PASSWORD = "username_password", e.ANONYMOUS = "anonymous", e))(jS || {}), Z = /* @__PURE__ */ ((e) => (e.DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED", e.GIT_COMMIT = "GIT_COMMIT", e.GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED", e.ARGOCD_SYNC = "ARGOCD_SYNC", e.ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED", e.KUBECTL_APPLY = "KUBECTL_APPLY", e.KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED", e.KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED", e.HEALTHY = "HEALTHY", e.APP_HEALTH = "APP_HEALTH", e.DEPLOYMENT_FAILED = "FAILED", e.FETCH_TIMED_OUT = "TIMED_OUT", e.UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS", e.DEGRADED = "DEGRADED", e.DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED", e.ABORTED = "ABORTED", e.INPROGRESS = "INPROGRESS", e.HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED", e.HELM_PACKAGE_GENERATION_FAILED = "HELM_PACKAGE_GENERATION_FAILED", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED", e))(Z || {}), Cn = /* @__PURE__ */ ((e) => (e.PRE_SYNC = "PreSync", e.SYNC = "Sync", e.POST_SYNC = "PostSync", e.SKIP = "Skip", e.SYNC_FAIL = "SyncFail", e))(Cn || {}),
|
880
|
+
var yS = /* @__PURE__ */ ((e) => (e.ABOUT = "about", e.LICENSE = "license", e.UPDATE = "update", e))(yS || {}), Cc = /* @__PURE__ */ ((e) => (e.FingerPrintMisMatch = "11001", e.LicenseExpired = "11002", e.TamperedCertificate = "11003", e.NoPublicKey = "11004", e.InstallationModeMismatch = "11005", e.LicKeyMismatch = "11006", e.NoCertFound = "11007", e.LicKeyNotFound = "11008", e.ClusterLimitExceeded = "11011", e))(Cc || {}), qm = /* @__PURE__ */ ((e) => (e.LICENSE_STATUS = "X-License-Status", e))(qm || {}), OS = /* @__PURE__ */ ((e) => (e.EKS_AUTO_CLUSTER = "eksAutoCluster", e.EKS_MANUAL_CLUSTER = "eksManualCluster", e))(OS || {}), jS = /* @__PURE__ */ ((e) => (e.USERNAME_PASSWORD = "username_password", e.ANONYMOUS = "anonymous", e))(jS || {}), Z = /* @__PURE__ */ ((e) => (e.DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED", e.GIT_COMMIT = "GIT_COMMIT", e.GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED", e.ARGOCD_SYNC = "ARGOCD_SYNC", e.ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED", e.KUBECTL_APPLY = "KUBECTL_APPLY", e.KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED", e.KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED", e.HEALTHY = "HEALTHY", e.APP_HEALTH = "APP_HEALTH", e.DEPLOYMENT_FAILED = "FAILED", e.FETCH_TIMED_OUT = "TIMED_OUT", e.UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS", e.DEGRADED = "DEGRADED", e.DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED", e.ABORTED = "ABORTED", e.INPROGRESS = "INPROGRESS", e.HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED", e.HELM_PACKAGE_GENERATION_FAILED = "HELM_PACKAGE_GENERATION_FAILED", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO", e.HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED", e))(Z || {}), Cn = /* @__PURE__ */ ((e) => (e.PRE_SYNC = "PreSync", e.SYNC = "Sync", e.POST_SYNC = "PostSync", e.SKIP = "Skip", e.SYNC_FAIL = "SyncFail", e))(Cn || {}), xr = /* @__PURE__ */ ((e) => (e.Direct = "DIRECT", e.Proxy = "PROXY", e.SSHTunnel = "SSH", e))(xr || {}), ta = /* @__PURE__ */ ((e) => (e.BASIC = "BASIC", e.ANONYMOUS = "ANONYMOUS", e.IAM = "IAM", e))(ta || {});
|
880
881
|
const Xm = (e, s, n, a, r) => {
|
881
882
|
const o = e.lastIndex;
|
882
883
|
Promise.resolve(s[o]()).then((i) => {
|
883
|
-
e.results[o] = { status:
|
884
|
+
e.results[o] = { status: gr.FULFILLED, value: i };
|
884
885
|
}).catch((i) => {
|
885
|
-
e.results[o] = { status:
|
886
|
+
e.results[o] = { status: gr.REJECTED, reason: i };
|
886
887
|
}).finally(() => {
|
887
|
-
if (r && e.results[o].status ===
|
888
|
+
if (r && e.results[o].status === gr.REJECTED) {
|
888
889
|
a(e.results[o].reason);
|
889
890
|
return;
|
890
891
|
}
|
@@ -913,7 +914,7 @@ const Xm = (e, s, n, a, r) => {
|
|
913
914
|
e,
|
914
915
|
" Devtron Inc. All rights reserved."
|
915
916
|
] });
|
916
|
-
},
|
917
|
+
}, sr = {
|
917
918
|
PROGRESSING: "Progressing",
|
918
919
|
DEGRADED: "Degraded",
|
919
920
|
FAILED: "Failed"
|
@@ -1133,7 +1134,7 @@ const bi = "No matching results", MS = "Type 3 chars to see matching results", M
|
|
1133
1134
|
DISPLAY_NAME: "Secret",
|
1134
1135
|
VALUE: "secret"
|
1135
1136
|
}
|
1136
|
-
},
|
1137
|
+
}, nr = {
|
1137
1138
|
[Mt.SECRET.DISPLAY_NAME]: {
|
1138
1139
|
"": "Kubernetes Secret",
|
1139
1140
|
KubernetesSecret: "Kubernetes External Secret",
|
@@ -1254,7 +1255,7 @@ var Si = /* @__PURE__ */ ((e) => (e.Cluster = "cluster", e.Job = "job pipeline",
|
|
1254
1255
|
const vi = {
|
1255
1256
|
CI_PIPELINE_PATCH: "app/ci-pipeline/patch",
|
1256
1257
|
WORKFLOW: "app/app-wf"
|
1257
|
-
},
|
1258
|
+
}, ar = "enterprise@devtron.ai", qS = "inValid";
|
1258
1259
|
var en = /* @__PURE__ */ ((e) => (e.ERROR = "error", e.HELP = "help", e.INFORMATION = "information", e.SUCCESS = "success", e.WARNING = "warning", e.NEUTRAL = "neutral", e))(en || {});
|
1259
1260
|
const XS = {
|
1260
1261
|
error: "bcr-1",
|
@@ -1290,9 +1291,9 @@ const XS = {
|
|
1290
1291
|
ROLLINGUPDATE: "Rolling Update",
|
1291
1292
|
ONDELETE: "On Delete"
|
1292
1293
|
}, e0 = [0.33, 1, 0.68, 1], ln = "allow-action-outside-focus-trap", q4 = {
|
1293
|
-
[
|
1294
|
-
[
|
1295
|
-
[
|
1294
|
+
[xr.Direct]: "Direct Connection",
|
1295
|
+
[xr.Proxy]: "Via Proxy",
|
1296
|
+
[xr.SSHTunnel]: "Via SSH Tunnel"
|
1296
1297
|
}, np = Lt(null), X4 = () => {
|
1297
1298
|
const e = as(np);
|
1298
1299
|
if (!e)
|
@@ -1457,7 +1458,7 @@ const Us = {
|
|
1457
1458
|
appId: a
|
1458
1459
|
}) => {
|
1459
1460
|
const r = n ? Co({
|
1460
|
-
type:
|
1461
|
+
type: La.CONFIG_DATA,
|
1461
1462
|
queryParams: {
|
1462
1463
|
id: a,
|
1463
1464
|
...e
|
@@ -1478,10 +1479,10 @@ const Us = {
|
|
1478
1479
|
n[r.index] = r;
|
1479
1480
|
}), n;
|
1480
1481
|
};
|
1481
|
-
var u0 = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(u0 || {}),
|
1482
|
+
var u0 = /* @__PURE__ */ ((e) => (e.PUBLISHED_ONLY = "PublishedOnly", e.DRAFT_ONLY = "DraftOnly", e.PUBLISHED_WITH_DRAFT = "PublishedWithDraft", e.PREVIOUS_DEPLOYMENTS = "PreviousDeployments", e.DEFAULT_VERSION = "DefaultVersion", e))(u0 || {}), sa = /* @__PURE__ */ ((e) => (e[e.Init = 1] = "Init", e[e.Discarded = 2] = "Discarded", e[e.Published = 3] = "Published", e[e.AwaitApproval = 4] = "AwaitApproval", e))(sa || {}), m0 = /* @__PURE__ */ ((e) => (e[e.Add = 1] = "Add", e[e.Update = 2] = "Update", e[e.Delete = 3] = "Delete", e))(m0 || {}), Be = /* @__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))(Be || {}), ts = /* @__PURE__ */ ((e) => (e.ConfigMap = "ConfigMap", e.Secret = "Secret", e.DeploymentTemplate = "Deployment Template", e.PipelineStrategy = "Pipeline Strategy", e))(ts || {}), Ai = /* @__PURE__ */ ((e) => (e[e.DefaultVersions = 1] = "DefaultVersions", e[e.PublishedOnEnvironments = 2] = "PublishedOnEnvironments", e[e.DeployedOnSelfEnvironment = 3] = "DeployedOnSelfEnvironment", e[e.DeployedOnOtherEnvironment = 4] = "DeployedOnOtherEnvironment", e))(Ai || {}), _t = /* @__PURE__ */ ((e) => (e.ConfigMap = "configmap", e.Secret = "secrets", e.DeploymentTemplate = "deployment-template", e.Manifest = "manifest", e.PipelineStrategy = "pipeline-strategy", e))(_t || {}), Gs = /* @__PURE__ */ ((e) => (e[e.ConfigMap = 1] = "ConfigMap", e[e.Secret = 2] = "Secret", e))(Gs || {}), Eo = /* @__PURE__ */ ((e) => (e.BASE = "", e.INHERITED = "INHERITING", e.OVERRIDDEN = "OVERRIDDEN", e.ENV = "ENV", e.UNPUBLISHED = "UNPUBLISHED", e))(Eo || {}), lp = /* @__PURE__ */ ((e) => (e.DATA = "data", e.SAMPLE = "sample", e))(lp || {});
|
1482
1483
|
const p0 = ({ baseUrl: e, kind: s, version: n, suffix: a, queryParams: r }) => He(`${e}/${s}/${n}${a ? `/${a}` : ""}`, r), nH = ({ kind: e, version: s, queryParams: n, suffix: a }) => He(`global/policy/${e}/${s}${a ? `/${a}` : ""}`, n), _0 = (e, { isTemplateView: s }) => {
|
1483
1484
|
const n = s ? Co({
|
1484
|
-
type:
|
1485
|
+
type: La.CD_PIPELINE,
|
1485
1486
|
queryParams: {
|
1486
1487
|
id: e.appId
|
1487
1488
|
}
|
@@ -1528,7 +1529,7 @@ const h0 = {
|
|
1528
1529
|
) })
|
1529
1530
|
}, g0 = {
|
1530
1531
|
[ve.info]: {
|
1531
|
-
icon: /* @__PURE__ */ t.jsx(
|
1532
|
+
icon: /* @__PURE__ */ t.jsx(ya, {}),
|
1532
1533
|
type: "info",
|
1533
1534
|
title: "Information",
|
1534
1535
|
progressBarBg: "var(--B500)"
|
@@ -1604,7 +1605,7 @@ const nn = class nn {
|
|
1604
1605
|
shortcuts: l
|
1605
1606
|
}, d = {}) => {
|
1606
1607
|
if (s === ve.shortcut)
|
1607
|
-
return
|
1608
|
+
return Ja(/* @__PURE__ */ t.jsx(E0, { text: c, shortcuts: l }), {
|
1608
1609
|
position: "top-center",
|
1609
1610
|
containerId: "devtron-shortcut-toast",
|
1610
1611
|
className: "shortcut-toast",
|
@@ -1614,7 +1615,7 @@ const nn = class nn {
|
|
1614
1615
|
closeOnClick: !0
|
1615
1616
|
});
|
1616
1617
|
const { icon: u, type: m, title: p, progressBarBg: _ } = g0[s];
|
1617
|
-
return
|
1618
|
+
return Ja(
|
1618
1619
|
/* @__PURE__ */ t.jsx(x0, { title: a || p, description: r, buttonProps: o }),
|
1619
1620
|
{
|
1620
1621
|
...d,
|
@@ -1633,18 +1634,18 @@ const nn = class nn {
|
|
1633
1634
|
/**
|
1634
1635
|
* Handler for dismissing an existing toast
|
1635
1636
|
*/
|
1636
|
-
pe(this, "dismissToast",
|
1637
|
+
pe(this, "dismissToast", Ja.dismiss);
|
1637
1638
|
/**
|
1638
1639
|
* Handler for checking if the toast is active
|
1639
1640
|
*/
|
1640
|
-
pe(this, "isToastActive",
|
1641
|
+
pe(this, "isToastActive", Ja.isActive);
|
1641
1642
|
}
|
1642
1643
|
static get instance() {
|
1643
|
-
return Js(nn, On) ||
|
1644
|
+
return Js(nn, On) || Xa(nn, On, new nn()), Js(nn, On);
|
1644
1645
|
}
|
1645
1646
|
};
|
1646
1647
|
On = new WeakMap(), // eslint-disable-next-line no-use-before-define
|
1647
|
-
|
1648
|
+
qa(nn, On);
|
1648
1649
|
let Ii = nn;
|
1649
1650
|
const rH = () => /* @__PURE__ */ t.jsx(Vf, { ...h0 }), $e = Ii.instance, C0 = (e) => {
|
1650
1651
|
const s = (e?.ciMaterials ?? []).map((n, a) => ({
|
@@ -1656,10 +1657,10 @@ const rH = () => /* @__PURE__ */ t.jsx(Vf, { ...h0 }), $e = Ii.instance, C0 = (e
|
|
1656
1657
|
value: n.value || "",
|
1657
1658
|
active: n.active || !1,
|
1658
1659
|
history: n.history.map((r, o) => ({
|
1659
|
-
commitURL: n.url ?
|
1660
|
+
commitURL: n.url ? Ma(n.url, r.Commit) : "",
|
1660
1661
|
commit: r.Commit || "",
|
1661
1662
|
author: r.Author || "",
|
1662
|
-
date:
|
1663
|
+
date: Aa(r.Date, !1),
|
1663
1664
|
message: r.Message || "",
|
1664
1665
|
changes: r.Changes || [],
|
1665
1666
|
showChanges: o === 0,
|
@@ -1673,7 +1674,7 @@ const rH = () => /* @__PURE__ */ t.jsx(Vf, { ...h0 }), $e = Ii.instance, C0 = (e
|
|
1673
1674
|
ciPipelineId: e?.ciPipelineId,
|
1674
1675
|
materials: s,
|
1675
1676
|
triggeredByEmail: e?.triggeredByEmail || "",
|
1676
|
-
lastDeployedTime:
|
1677
|
+
lastDeployedTime: Aa(e.lastDeployedTime, !1),
|
1677
1678
|
environmentName: e?.environmentName || "",
|
1678
1679
|
environmentId: e?.environmentId || 0,
|
1679
1680
|
appId: e?.appId,
|
@@ -1686,7 +1687,7 @@ const rH = () => /* @__PURE__ */ t.jsx(Vf, { ...h0 }), $e = Ii.instance, C0 = (e
|
|
1686
1687
|
targetPlatforms: bo(e?.targetPlatforms)
|
1687
1688
|
};
|
1688
1689
|
}, N0 = (e) => e === Be.AWSSecretsManager || e === Be.AWSSystemManager || e === Be.HashiCorpVault, dp = (e) => e === Be.ESO_GoogleSecretsManager || e === Be.ESO_AzureSecretsManager || e === Be.ESO_AWSSecretsManager || e === Be.ESO_HashiCorpVault;
|
1689
|
-
var Nn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(Nn || {}), b0 = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(b0 || {}), Sc = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Sc || {}), T0 = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(T0 || {}),
|
1690
|
+
var Nn = /* @__PURE__ */ ((e) => (e.VALUES = "values", e.INHERITED = "inherited", e.DRY_RUN = "dryRun", e))(Nn || {}), b0 = /* @__PURE__ */ ((e) => (e.PUBLISHED = "published", e.COMPARE = "compare", e.EDIT_DRAFT = "editDraft", e))(b0 || {}), Sc = /* @__PURE__ */ ((e) => (e.PATCH = "patch", e.REPLACE = "replace", e))(Sc || {}), T0 = /* @__PURE__ */ ((e) => (e.DISCARD_DRAFT = "discardDraft", e.EDIT_HISTORY = "editHistory", e))(T0 || {}), La = /* @__PURE__ */ ((e) => (e.GIT_MATERIAL = "git-material", e.CI_BUILD_CONFIG = "ci-build-config", e.STAGE_STATUS = "stage-status", e.CD_DEPLOY_CONFIG = "cd-deploy-config", e.CD_ENV_LIST = "cd-env-list", e.CONFIG_DEPLOYMENT_TEMPLATE = "config/deployment-template", e.CONFIG_DEPLOYMENT_TEMPLATE_ENV = "config/deployment-template/env", e.CONFIG_DATA = "config-data", e.CONFIG_CM = "config/config-map", e.CONFIG_CS = "config/secret", e.WORKFLOW = "workflow", e.WORKFLOW_LIST = "workflow/list", e.OVERVIEW = "overview", e.README = "readme", e.CD_PIPELINE_LIST = "cd-pipeline/list", e.EXTERNAL_CI_LIST = "external-ci/list", e.EXTERNAL_CI = "external-ci", e.CI_PIPELINE = "ci-pipeline", e.CD_PIPELINE = "cd-pipeline", e.CONFIG_STRATEGY = "config/strategy", e.CHART_REF = "chartRef", e.PIPELINE_SUGGEST_CI = "pipeline/suggest/ci", e.PIPELINE_SUGGEST_CD = "pipeline/suggest/cd", e))(La || {});
|
1690
1691
|
const oH = {
|
1691
1692
|
BASE_DEPLOYMENT_TEMPLATE: [Nn.VALUES, Nn.DRY_RUN],
|
1692
1693
|
OVERRIDE: [Nn.INHERITED, Nn.VALUES, Nn.DRY_RUN]
|
@@ -2109,7 +2110,7 @@ const Pl = (e) => ({
|
|
2109
2110
|
)) })
|
2110
2111
|
] });
|
2111
2112
|
};
|
2112
|
-
var k0 = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(k0 || {}), F = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(F || {}), Qt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Qt || {}), Oe = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Oe || {}), pp = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(pp || {}), $s = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))($s || {}), _p = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(_p || {}), Ur = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Ur || {}),
|
2113
|
+
var k0 = /* @__PURE__ */ ((e) => (e.includeDeleted = "includeDeleted", e.excludeDelete = "excludeDelete", e.onlyDeleted = "onlyDeleted", e))(k0 || {}), F = /* @__PURE__ */ ((e) => (e.CPU_LIMIT = "cpu_limit", e.CPU_REQUEST = "cpu_request", e.MEMORY_LIMIT = "memory_limit", e.MEMORY_REQUEST = "memory_request", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node_selector", e.TOLERANCE = "tolerations", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(F || {}), Qt = /* @__PURE__ */ ((e) => (e.NAME = "name", e.DESCRIPTION = "description", e))(Qt || {}), Oe = /* @__PURE__ */ ((e) => (e.CPU = "cpu", e.MEMORY = "memory", e.BUILD_TIMEOUT = "timeout", e.NODE_SELECTOR = "node selector", e.TOLERANCE = "tolerance", e.CONFIG_MAP = "cm", e.SECRET = "cs", e))(Oe || {}), pp = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.NORMAL = "NORMAL", e.CUSTOM = "CUSTOM", e))(pp || {}), $s = /* @__PURE__ */ ((e) => (e.EXISTS = "Exists", e.EQUALS = "Equal", e))($s || {}), _p = /* @__PURE__ */ ((e) => (e.NO_EXECUTE = "NoExecute", e.NO_SCHEDULE = "NoSchedule", e.PREFER_NO_SCHEDULE = "PreferNoSchedule", e))(_p || {}), Ur = /* @__PURE__ */ ((e) => (e.KUBERNETES = "kubernetes", e.DOCKER_CONTAINER = "docker-container", e))(Ur || {}), Ea = /* @__PURE__ */ ((e) => (e.TARGET_PLATFORM = "target_platform", e))(Ea || {}), Ri = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.VALUE = "VALUE", e))(Ri || {}), yi = /* @__PURE__ */ ((e) => (e.KEY = "KEY", e.OPERATOR = "OPERATOR", e.VALUE = "VALUE", e.EFFECT = "EFFECT", e))(yi || {}), It = /* @__PURE__ */ ((e) => (e.ADD_TARGET_PLATFORM = "add_target_platform", e.REMOVE_TARGET_PLATFORM = "remove_target_platform", e.RENAME_TARGET_PLATFORM = "rename_target_platform", e.RESTORE_PROFILE_CONFIG_SNAPSHOT = "restore_profile_config_snapshot", e.DELETE_NODE_SELECTOR_ITEM = "delete_node_selector_item", e.ADD_NODE_SELECTOR_ITEM = "add_node_selector_item", e.EDIT_NODE_SELECTOR_ITEM = "edit_node_selector_item", e.DELETE_TOLERANCE_ITEM = "delete_tolerance_item", e.ADD_TOLERANCE_ITEM = "add_tolerance_item", e.EDIT_TOLERANCE_ITEM = "edit_tolerance_item", e.ADD_CM_CS_ITEM = "add_cm_cs_item", e.SYNC_CM_CS_ITEM = "sync_cm_cs_item", e.DELETE_CM_CS_ITEM = "delete_cm_cs_item", e))(It || {}), fp = /* @__PURE__ */ ((e) => (e.ALPHA1 = "alpha1", e))(fp || {});
|
2113
2114
|
const Vs = {
|
2114
2115
|
// Will not enforce any decimal specification on input field
|
2115
2116
|
STEP: "any",
|
@@ -2214,7 +2215,7 @@ const Vs = {
|
|
2214
2215
|
Object.values({
|
2215
2216
|
...F,
|
2216
2217
|
...Qt,
|
2217
|
-
...
|
2218
|
+
...Ea
|
2218
2219
|
}).map((e) => [e, null])
|
2219
2220
|
), U0 = [Qt.NAME], Ml = {
|
2220
2221
|
SUBMIT_BUTTON: "build-infra-submit-button",
|
@@ -2229,7 +2230,7 @@ const Vs = {
|
|
2229
2230
|
[F.TOLERANCE]: !0,
|
2230
2231
|
[F.CONFIG_MAP]: !0,
|
2231
2232
|
[F.SECRET]: !0,
|
2232
|
-
[
|
2233
|
+
[Ea.TARGET_PLATFORM]: !0
|
2233
2234
|
}, Ul = Object.values(Oe).reduce(
|
2234
2235
|
(e, s) => (e[`activate_${s}`] = s, e[`de_activate_${s}`] = s, e),
|
2235
2236
|
{}
|
@@ -2262,7 +2263,7 @@ const Vs = {
|
|
2262
2263
|
[F.BUILD_TIMEOUT]: !0,
|
2263
2264
|
[F.CONFIG_MAP]: !0,
|
2264
2265
|
[F.SECRET]: !0
|
2265
|
-
},
|
2266
|
+
}, Da = {
|
2266
2267
|
[F.CONFIG_MAP]: !0,
|
2267
2268
|
[F.SECRET]: !0
|
2268
2269
|
}, gp = {
|
@@ -2379,7 +2380,7 @@ const Vs = {
|
|
2379
2380
|
"ic-bug": OE,
|
2380
2381
|
"ic-build-color": jE,
|
2381
2382
|
"ic-building": wE,
|
2382
|
-
"ic-calendar":
|
2383
|
+
"ic-calendar": _a,
|
2383
2384
|
"ic-cancelled": LE,
|
2384
2385
|
"ic-card-stack": DE,
|
2385
2386
|
"ic-caret-down-small": PE,
|
@@ -3235,13 +3236,13 @@ const Gl = (e) => {
|
|
3235
3236
|
);
|
3236
3237
|
if (i) {
|
3237
3238
|
a?.onChange?.(u, {
|
3238
|
-
action:
|
3239
|
+
action: ga.deselectOption,
|
3239
3240
|
option: null
|
3240
3241
|
});
|
3241
3242
|
return;
|
3242
3243
|
}
|
3243
3244
|
a?.onChange?.([...u, ...o], {
|
3244
|
-
action:
|
3245
|
+
action: ga.selectOption,
|
3245
3246
|
option: null
|
3246
3247
|
});
|
3247
3248
|
}, l = (d) => {
|
@@ -3498,10 +3499,10 @@ const Gl = (e) => {
|
|
3498
3499
|
}
|
3499
3500
|
),
|
3500
3501
|
[d, b]
|
3501
|
-
),
|
3502
|
+
), Ka = Ve(
|
3502
3503
|
(Le) => /* @__PURE__ */ t.jsx(uv, { ...Le, disableDescriptionEllipsis: g }),
|
3503
3504
|
[g]
|
3504
|
-
),
|
3505
|
+
), za = (Le) => /* @__PURE__ */ t.jsx(pv, { ...Le, getIsOptionValid: me }), wf = Ve(
|
3505
3506
|
(Le) => /* @__PURE__ */ t.jsx(_v, { ...Le, isGroupHeadingSelectable: se }),
|
3506
3507
|
[se]
|
3507
3508
|
), Lf = () => m ? /* @__PURE__ */ t.jsx(pn, { reload: p }) : D ? /* @__PURE__ */ t.jsx("p", { className: "m-0 cn-7 fs-13 fw-4 lh-20 py-6 px-8", children: U?.({
|
@@ -3583,11 +3584,11 @@ const Gl = (e) => {
|
|
3583
3584
|
LoadingIndicator: null,
|
3584
3585
|
DropdownIndicator: ov,
|
3585
3586
|
Control: cv,
|
3586
|
-
Option:
|
3587
|
+
Option: Ka,
|
3587
3588
|
MenuList: mv,
|
3588
3589
|
ClearIndicator: iv,
|
3589
3590
|
ValueContainer: fn,
|
3590
|
-
MultiValue:
|
3591
|
+
MultiValue: za,
|
3591
3592
|
GroupHeading: wf,
|
3592
3593
|
NoOptionsMessage: Lf,
|
3593
3594
|
LoadingMessage: fv,
|
@@ -4118,7 +4119,7 @@ const Gl = (e) => {
|
|
4118
4119
|
EXTERNAL_LINKS: "getting-started/global-configurations/external-links",
|
4119
4120
|
EXTERNAL_SECRET: "usage/applications/creating-application/secrets#external-secrets",
|
4120
4121
|
HOME_PAGE: "https://devtron.ai",
|
4121
|
-
DOC_HOME_PAGE:
|
4122
|
+
DOC_HOME_PAGE: wa,
|
4122
4123
|
KUBE_CONFIG: "usage/resource-browser#running-kubectl-commands-locally",
|
4123
4124
|
JOBS: "usage/jobs",
|
4124
4125
|
TAINT: "usage/resource-browser#taint-a-node",
|
@@ -4197,7 +4198,7 @@ const Gl = (e) => {
|
|
4197
4198
|
if (r?.startsWith("http"))
|
4198
4199
|
return r;
|
4199
4200
|
const o = a ? "" : Ap({ isEnterprise: s });
|
4200
|
-
return `${
|
4201
|
+
return `${wa}${sS}/${r || ""}${o}`;
|
4201
4202
|
}, Ov = ({ count: e, isApprox: s, isSelected: n }) => /* @__PURE__ */ t.jsxs(
|
4202
4203
|
"div",
|
4203
4204
|
{
|
@@ -4403,7 +4404,7 @@ const Gl = (e) => {
|
|
4403
4404
|
}
|
4404
4405
|
);
|
4405
4406
|
case "action-menu":
|
4406
|
-
return /* @__PURE__ */ t.jsx(
|
4407
|
+
return /* @__PURE__ */ t.jsx(Pa, { ...s });
|
4407
4408
|
default:
|
4408
4409
|
return null;
|
4409
4410
|
}
|
@@ -4590,7 +4591,7 @@ const Gl = (e) => {
|
|
4590
4591
|
handleSearch: h,
|
4591
4592
|
scrollableRef: I
|
4592
4593
|
};
|
4593
|
-
},
|
4594
|
+
}, Pa = ({
|
4594
4595
|
id: e,
|
4595
4596
|
options: s,
|
4596
4597
|
onClick: n,
|
@@ -4727,7 +4728,7 @@ const Gl = (e) => {
|
|
4727
4728
|
onKeyDown: p,
|
4728
4729
|
autoFocus: !0
|
4729
4730
|
}
|
4730
|
-
) }) : /* @__PURE__ */ t.jsx(
|
4731
|
+
) }) : /* @__PURE__ */ t.jsx(Pa, { ...a, id: e, isSearchable: !0, onClick: u, children: /* @__PURE__ */ t.jsxs(
|
4731
4732
|
"button",
|
4732
4733
|
{
|
4733
4734
|
type: "button",
|
@@ -4777,10 +4778,10 @@ const Gl = (e) => {
|
|
4777
4778
|
}), r && f < r && (f = r), o && f > o && (f = o), _(f);
|
4778
4779
|
}, 500, [d]);
|
4779
4780
|
const g = (f, { action: N }) => {
|
4780
|
-
N ===
|
4781
|
+
N === ga.inputChange ? (u(f), f || a?.(null, {
|
4781
4782
|
action: "remove-value",
|
4782
4783
|
removedValue: e
|
4783
|
-
})) : N ===
|
4784
|
+
})) : N === ga.inputBlur && u(e?.value || "");
|
4784
4785
|
}, E = (f) => {
|
4785
4786
|
a?.(
|
4786
4787
|
{ label: f, value: f },
|
@@ -5040,7 +5041,7 @@ ${d.slice(C)}`;
|
|
5040
5041
|
throw new Error("Please wrap parent component with BuildInfraUtilityProvider");
|
5041
5042
|
return e;
|
5042
5043
|
}, Oc = (e) => {
|
5043
|
-
const s = G(null), [n, a] = j(!1), r = e.theme ===
|
5044
|
+
const s = G(null), [n, a] = j(!1), r = e.theme === ja.white, o = (N) => {
|
5044
5045
|
N.keyCode === 27 && c(N);
|
5045
5046
|
}, i = (N) => {
|
5046
5047
|
s.current = N, document.addEventListener("keydown", o);
|
@@ -5099,7 +5100,7 @@ ${d.slice(C)}`;
|
|
5099
5100
|
{
|
5100
5101
|
className: `flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${r ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
5101
5102
|
children: [
|
5102
|
-
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(
|
5103
|
+
/* @__PURE__ */ t.jsx("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ t.jsx(Ra, { className: "icon-dim-20 fcv-5" }) }),
|
5103
5104
|
/* @__PURE__ */ t.jsx("div", { className: "dc__word-break dc__hyphens-auto", children: b })
|
5104
5105
|
]
|
5105
5106
|
}
|
@@ -5120,7 +5121,7 @@ ${d.slice(C)}`;
|
|
5120
5121
|
),
|
5121
5122
|
D,
|
5122
5123
|
k && /* @__PURE__ */ t.jsx("div", { className: "px-12 pb-12 flexbox", children: /* @__PURE__ */ t.jsx(
|
5123
|
-
|
5124
|
+
Ua,
|
5124
5125
|
{
|
5125
5126
|
text: P,
|
5126
5127
|
dataTestId: "learn-more-about-tippy-link",
|
@@ -5170,11 +5171,11 @@ ${d.slice(C)}`;
|
|
5170
5171
|
}) => /* @__PURE__ */ t.jsx(
|
5171
5172
|
Oc,
|
5172
5173
|
{
|
5173
|
-
theme:
|
5174
|
+
theme: ja.white,
|
5174
5175
|
headingInfo: u,
|
5175
5176
|
className: "w-300 h-100 dc__no-text-transform",
|
5176
5177
|
placement: c,
|
5177
|
-
Icon:
|
5178
|
+
Icon: Ra,
|
5178
5179
|
heading: e,
|
5179
5180
|
infoText: s,
|
5180
5181
|
iconClass: n,
|
@@ -5778,7 +5779,7 @@ const kH = (e, s = !1) => {
|
|
5778
5779
|
}
|
5779
5780
|
case It.ADD_TARGET_PLATFORM: {
|
5780
5781
|
const { handleCaptureSnapshot: b } = N;
|
5781
|
-
S[
|
5782
|
+
S[Ea.TARGET_PLATFORM] = T ? zl(
|
5782
5783
|
T,
|
5783
5784
|
g(C.configurations)
|
5784
5785
|
).message : "", C.configurations[T] = i.fallbackPlatformConfigurationMap[T] || // Here need to update target platform name for each configuration
|
@@ -5814,7 +5815,7 @@ const kH = (e, s = !1) => {
|
|
5814
5815
|
});
|
5815
5816
|
return;
|
5816
5817
|
}
|
5817
|
-
S[
|
5818
|
+
S[Ea.TARGET_PLATFORM] = zl(
|
5818
5819
|
v,
|
5819
5820
|
g(C.configurations)
|
5820
5821
|
).message;
|
@@ -6074,8 +6075,8 @@ const kH = (e, s = !1) => {
|
|
6074
6075
|
appCount: s.appCount,
|
6075
6076
|
useK8sDriver: r
|
6076
6077
|
};
|
6077
|
-
}, VH = (e) => !!
|
6078
|
-
if (!
|
6078
|
+
}, VH = (e) => !!Da[e], CA = (e, s) => {
|
6079
|
+
if (!Da[e.key])
|
6079
6080
|
return Dn(e);
|
6080
6081
|
const n = e.value?.map(
|
6081
6082
|
(a) => {
|
@@ -6103,7 +6104,7 @@ const kH = (e, s = !1) => {
|
|
6103
6104
|
};
|
6104
6105
|
}, NA = (e) => {
|
6105
6106
|
const s = Dn(e, !1);
|
6106
|
-
if (!
|
6107
|
+
if (!Da[s.key])
|
6107
6108
|
return s;
|
6108
6109
|
const a = s.value?.filter(
|
6109
6110
|
(r) => r.isOverridden
|
@@ -6143,7 +6144,7 @@ const kH = (e, s = !1) => {
|
|
6143
6144
|
const l = o[c], d = r[c]?.active ? r[c] : null;
|
6144
6145
|
if (!l)
|
6145
6146
|
return i;
|
6146
|
-
const u = Dn(l), m =
|
6147
|
+
const u = Dn(l), m = Da[c] && !a;
|
6147
6148
|
let p = d ? {
|
6148
6149
|
...d,
|
6149
6150
|
defaultValue: m ? null : u
|
@@ -6246,7 +6247,7 @@ const kH = (e, s = !1) => {
|
|
6246
6247
|
}, SA = (e) => e ? Ur.KUBERNETES : Ur.DOCKER_CONTAINER, vA = (e, s) => {
|
6247
6248
|
const n = e.configurations || {}, a = Object.entries(n).reduce((o, [i, c]) => {
|
6248
6249
|
const l = Object.values(c).reduce((d, u) => {
|
6249
|
-
const m = !!
|
6250
|
+
const m = !!Da[u.key], p = m && u.value?.some(
|
6250
6251
|
(_) => _.isOverridden
|
6251
6252
|
);
|
6252
6253
|
if (u.id || u.active || p) {
|
@@ -6292,7 +6293,7 @@ const kH = (e, s = !1) => {
|
|
6292
6293
|
]
|
6293
6294
|
}
|
6294
6295
|
);
|
6295
|
-
var
|
6296
|
+
var na = /* @__PURE__ */ ((e) => (e.JOB_AND_CRONJOB_CHART_NAME = "Job & CronJob", e.ROLLOUT_DEPLOYMENT = "Rollout Deployment", e.DEPLOYMENT = "Deployment", e.STATEFUL_SET = "StatefulSet", e))(na || {});
|
6296
6297
|
const AA = "object", IA = { ContainerPort: { type: "array", description: "Defines ports on which application services will be exposed to other services", items: { type: "object", properties: { port: { type: "integer", description: "Port at which your application will run" } } }, title: "Container Port" }, Limits: { type: "object", description: "Maximum RAM and CPU available to the application", required: ["CPU", "Memory"], properties: { CPU: { type: "string", description: "Maximum allowed CPU limit", updatePath: "/resources/limits/cpu" }, Memory: { type: "string", description: "Maximum allowed memory limit", updatePath: "/resources/limits/memory" } } }, Requests: { type: "object", description: "Minimum RAM and CPU available to the application", properties: { CPU: { type: "string", description: "Minimum CPU value", updatePath: "/resources/requests/cpu" }, Memory: { type: "string", description: "Minimum memory value", updatePath: "/resources/requests/memory" } } }, EnvVariables: { type: "array", description: "Contains environment variables needed by the containers", items: { type: "object", properties: { name: { type: "string", description: "Name of the environment variables" }, value: { type: "string", description: "Value of the environment variables" } } }, title: "Environment Variables" } }, RA = {
|
6297
6298
|
type: AA,
|
6298
6299
|
properties: IA
|
@@ -6320,10 +6321,10 @@ const AA = "object", IA = { ContainerPort: { type: "array", description: "Define
|
|
6320
6321
|
return Object.values(s).map((a) => (a.versions.sort((r, o) => Lp(r.version, o.version)), a));
|
6321
6322
|
}, KH = (e) => {
|
6322
6323
|
switch (e) {
|
6323
|
-
case
|
6324
|
-
case
|
6325
|
-
case
|
6326
|
-
case
|
6324
|
+
case na.JOB_AND_CRONJOB_CHART_NAME:
|
6325
|
+
case na.DEPLOYMENT:
|
6326
|
+
case na.ROLLOUT_DEPLOYMENT:
|
6327
|
+
case na.STATEFUL_SET:
|
6327
6328
|
return RA;
|
6328
6329
|
default:
|
6329
6330
|
return {};
|
@@ -6343,7 +6344,7 @@ const Jl = {
|
|
6343
6344
|
default:
|
6344
6345
|
return "h-8";
|
6345
6346
|
}
|
6346
|
-
},
|
6347
|
+
}, Ca = ({
|
6347
6348
|
hideLegend: e,
|
6348
6349
|
entities: s = [Jl],
|
6349
6350
|
rootClassName: n,
|
@@ -6462,7 +6463,7 @@ const Jl = {
|
|
6462
6463
|
const { statusEntities: n, deploymentEntities: a } = wA(e);
|
6463
6464
|
return /* @__PURE__ */ t.jsx("div", { className: "pb-16 px-20", children: /* @__PURE__ */ t.jsxs("div", { className: "dc__grid-half shadow__card--20 w-100 dc__border br-8 dc__grid dc__align-items-center", children: [
|
6464
6465
|
/* @__PURE__ */ t.jsx(
|
6465
|
-
|
6466
|
+
Ca,
|
6466
6467
|
{
|
6467
6468
|
entities: n,
|
6468
6469
|
rootClassName: "p-16 fs-13 dc__border-right-n1 cn-9",
|
@@ -6474,7 +6475,7 @@ const Jl = {
|
|
6474
6475
|
}
|
6475
6476
|
),
|
6476
6477
|
/* @__PURE__ */ t.jsx(
|
6477
|
-
|
6478
|
+
Ca,
|
6478
6479
|
{
|
6479
6480
|
entities: a,
|
6480
6481
|
rootClassName: "p-16 fs-13 cn-9",
|
@@ -6771,9 +6772,9 @@ function Lp(e, s, n = Ae.ASC) {
|
|
6771
6772
|
}
|
6772
6773
|
const _6 = (e, s, n = Ae.ASC) => n === Ae.ASC ? je(s).diff(je(e)) : je(e).diff(je(s)), f6 = (e) => {
|
6773
6774
|
switch (e) {
|
6774
|
-
case
|
6775
|
+
case xa.PULL_REQUEST:
|
6775
6776
|
return /* @__PURE__ */ t.jsx(pc, { className: "icon-dim-12" });
|
6776
|
-
case
|
6777
|
+
case xa.TAG_CREATION:
|
6777
6778
|
return /* @__PURE__ */ t.jsx(uo, { className: "icon-dim-12" });
|
6778
6779
|
default:
|
6779
6780
|
return /* @__PURE__ */ t.jsx(km, { className: "icon-dim-12" });
|
@@ -6890,7 +6891,7 @@ const KA = (e, s = !1) => s ? btoa(e) : atob(e), Di = (e, s = !1) => Object.keys
|
|
6890
6891
|
}), E6 = (e) => (
|
6891
6892
|
// Added null check for backward compatibility
|
6892
6893
|
!!e?.type && e.type !== Um.notConfigured
|
6893
|
-
), Lc = (e) => e?.requiredCount > 0,
|
6894
|
+
), Lc = (e) => e?.requiredCount > 0, Na = (e) => () => {
|
6894
6895
|
window.open(e, "_blank", "noreferrer");
|
6895
6896
|
}, C6 = (e) => {
|
6896
6897
|
switch (typeof e) {
|
@@ -6967,7 +6968,7 @@ const KA = (e, s = !1) => s ? btoa(e) : atob(e), Di = (e, s = !1) => Object.keys
|
|
6967
6968
|
return s ? `${n}/${s}` : n;
|
6968
6969
|
}, T6 = (e, s) => {
|
6969
6970
|
const n = e.scrollTop;
|
6970
|
-
return
|
6971
|
+
return ma(n, s, {
|
6971
6972
|
ease: e0,
|
6972
6973
|
onUpdate: (r) => {
|
6973
6974
|
e.scrollTop = r;
|
@@ -7044,9 +7045,9 @@ const Up = (e) => ({
|
|
7044
7045
|
let d = r;
|
7045
7046
|
return e.map((m, p) => {
|
7046
7047
|
let _ = "";
|
7047
|
-
const h = m.filterState ??
|
7048
|
+
const h = m.filterState ?? ia.ALLOWED;
|
7048
7049
|
n && a && m.id === n && (_ = a);
|
7049
|
-
const g = !o && i && (!m.userApprovalMetadata || m.userApprovalMetadata.approvalRuntimeState !== $m.approved), E = !d && c && h ===
|
7050
|
+
const g = !o && i && (!m.userApprovalMetadata || m.userApprovalMetadata.approvalRuntimeState !== $m.approved), E = !d && c && h === ia.ALLOWED && !g ? !m.vulnerable : !1;
|
7050
7051
|
return E && (d = !0), {
|
7051
7052
|
index: l + p,
|
7052
7053
|
id: m.id,
|
@@ -7077,7 +7078,7 @@ const Up = (e) => ({
|
|
7077
7078
|
lastExecution: m.lastExecution,
|
7078
7079
|
materialInfo: m.material_info ? m.material_info.map((x) => ({
|
7079
7080
|
modifiedTime: x.modifiedTime ? je(x.modifiedTime).format("ddd, DD MMM YYYY, hh:mm A") : "",
|
7080
|
-
commitLink:
|
7081
|
+
commitLink: Ma(x.url, x.revision),
|
7081
7082
|
author: x.author || "",
|
7082
7083
|
message: x.message || "",
|
7083
7084
|
revision: x.revision || "",
|
@@ -7090,7 +7091,7 @@ const Up = (e) => ({
|
|
7090
7091
|
filterState: h,
|
7091
7092
|
appliedFiltersTimestamp: m.appliedFiltersTimestamp ?? "",
|
7092
7093
|
appliedFilters: m.appliedFilters ?? [],
|
7093
|
-
appliedFiltersState: m.appliedFiltersState ??
|
7094
|
+
appliedFiltersState: m.appliedFiltersState ?? ia.ALLOWED,
|
7094
7095
|
createdTime: m.createdTime ?? "",
|
7095
7096
|
dataSource: m.data_source ?? "",
|
7096
7097
|
registryType: m.registryType ?? "",
|
@@ -7195,7 +7196,7 @@ const Up = (e) => ({
|
|
7195
7196
|
isExceptionUser: c
|
7196
7197
|
}), d = ed(e), u = td(e);
|
7197
7198
|
return {
|
7198
|
-
materials: a && a === Fm.RESOURCE ? l.filter((p) => p.filterState ===
|
7199
|
+
materials: a && a === Fm.RESOURCE ? l.filter((p) => p.filterState === ia.ALLOWED) : l,
|
7199
7200
|
...o,
|
7200
7201
|
...d,
|
7201
7202
|
...u
|
@@ -7231,7 +7232,7 @@ const Up = (e) => ({
|
|
7231
7232
|
function Fr(e) {
|
7232
7233
|
return e ? e.split(":").pop() : "";
|
7233
7234
|
}
|
7234
|
-
function
|
7235
|
+
function Ma(e, s) {
|
7235
7236
|
if (!e || !s)
|
7236
7237
|
return "NA";
|
7237
7238
|
if (e.indexOf("gitlab") > 0 || e.indexOf("github") > 0 || e.indexOf("azure") > 0) {
|
@@ -7361,13 +7362,7 @@ const SI = (e, s) => {
|
|
7361
7362
|
costModuleConfig: u,
|
7362
7363
|
...m
|
7363
7364
|
}) => {
|
7364
|
-
const p = u?.installationStatus || "NotInstalled"
|
7365
|
-
Object.entries(u.config).filter(
|
7366
|
-
([h]) => !["openCostServiceName", "openCostServicePort", "releaseName", "namespace"].includes(
|
7367
|
-
h
|
7368
|
-
)
|
7369
|
-
)
|
7370
|
-
) : void 0;
|
7365
|
+
const p = u?.installationStatus || "NotInstalled";
|
7371
7366
|
return {
|
7372
7367
|
...m,
|
7373
7368
|
clusterId: r,
|
@@ -7381,7 +7376,10 @@ const SI = (e, s) => {
|
|
7381
7376
|
status: d,
|
7382
7377
|
costModuleConfig: {
|
7383
7378
|
enabled: u?.enabled || !1,
|
7384
|
-
config:
|
7379
|
+
config: {
|
7380
|
+
...u?.config || {},
|
7381
|
+
detectedProvider: u?.config?.detectedProvider
|
7382
|
+
},
|
7385
7383
|
installationStatus: p,
|
7386
7384
|
...p === "Failed" ? {
|
7387
7385
|
installationError: u?.installationError || "Some error occurred"
|
@@ -7417,7 +7415,7 @@ const SI = (e, s) => {
|
|
7417
7415
|
o && !e ? s(!0) : !o && e && s(!1);
|
7418
7416
|
}
|
7419
7417
|
};
|
7420
|
-
}, Fp = Lt(null), qs = () => as(Fp),
|
7418
|
+
}, Fp = Lt(null), qs = () => as(Fp), rr = (e) => {
|
7421
7419
|
if (!e)
|
7422
7420
|
throw new Error("keys undefined");
|
7423
7421
|
const s = e.map((n) => `${n}`.toUpperCase()).sort();
|
@@ -7425,7 +7423,7 @@ const SI = (e, s) => {
|
|
7425
7423
|
keys: s,
|
7426
7424
|
id: s.join()
|
7427
7425
|
};
|
7428
|
-
},
|
7426
|
+
}, or = (e) => {
|
7429
7427
|
if (!e || !Array.isArray(e) || !e.every((s) => typeof s == "function"))
|
7430
7428
|
throw new Error("callback stack is undefined");
|
7431
7429
|
}, II = ["input", "textarea", "select"], RI = 300, Mc = ({
|
@@ -7437,38 +7435,38 @@ const SI = (e, s) => {
|
|
7437
7435
|
}) => {
|
7438
7436
|
const o = G(!1), i = G({}), c = G(/* @__PURE__ */ new Set()), l = G(-1), d = s ?? II, u = Ve(
|
7439
7437
|
({ keys: f, callback: N, description: C = "" }) => {
|
7440
|
-
const { keys: S, id: T } =
|
7438
|
+
const { keys: S, id: T } = rr(f);
|
7441
7439
|
if (typeof N != "function")
|
7442
7440
|
throw new Error("callback provided is not a function");
|
7443
7441
|
const I = i.current[T] && Dm(i.current[T].keys, f) ? i.current[T] : null;
|
7444
7442
|
if (I) {
|
7445
|
-
|
7443
|
+
or(I.callbackStack), I.callbackStack.push(N);
|
7446
7444
|
return;
|
7447
7445
|
}
|
7448
7446
|
i.current[T] = { keys: S, callbackStack: [N], description: C };
|
7449
7447
|
},
|
7450
7448
|
[]
|
7451
7449
|
), m = Ve((f) => {
|
7452
|
-
const { id: N } =
|
7450
|
+
const { id: N } = rr(f);
|
7453
7451
|
if (!i.current[N])
|
7454
7452
|
return;
|
7455
7453
|
const { callbackStack: C } = i.current[N];
|
7456
|
-
|
7454
|
+
or(C), C.pop(), C.length || delete i.current[N];
|
7457
7455
|
}, []), p = Ve((f) => {
|
7458
7456
|
o.current = f;
|
7459
7457
|
}, []), _ = Ve((f) => {
|
7460
|
-
const { id: N } =
|
7458
|
+
const { id: N } = rr(f);
|
7461
7459
|
if (!i.current[N])
|
7462
7460
|
return;
|
7463
7461
|
const { callbackStack: C } = i.current[N];
|
7464
|
-
|
7462
|
+
or(C), C[C.length - 1]();
|
7465
7463
|
}, []), h = Ve(() => {
|
7466
7464
|
if (!c.current.size)
|
7467
7465
|
return;
|
7468
|
-
const { id: f } =
|
7466
|
+
const { id: f } = rr(Array.from(c.current.values()));
|
7469
7467
|
if (i.current[f]) {
|
7470
7468
|
const { callbackStack: N } = i.current[f];
|
7471
|
-
|
7469
|
+
or(N), N[N.length - 1]();
|
7472
7470
|
}
|
7473
7471
|
c.current.clear(), l.current > -1 && (clearTimeout(l.current), l.current = -1);
|
7474
7472
|
}, []), g = Ve((f) => {
|
@@ -7714,9 +7712,9 @@ const ld = () => ({
|
|
7714
7712
|
...o,
|
7715
7713
|
...e ? { content: /* @__PURE__ */ t.jsx(jI, { ...e }) } : {},
|
7716
7714
|
className: `${e ? "shortcut-keys__tippy" : "default-tt"} ${a ? "dc__word-break" : ""} dc__mxw-200 ${o.className ?? ""}`,
|
7717
|
-
children:
|
7715
|
+
children: ua(r, { ...r.props, onMouseEnter: c })
|
7718
7716
|
}
|
7719
|
-
) :
|
7717
|
+
) : ua(r, { ...r.props, onMouseEnter: c });
|
7720
7718
|
};
|
7721
7719
|
var K = /* @__PURE__ */ ((e) => (e.primary = "primary", e.secondary = "secondary", e.borderLess = "border-less", e.text = "text", e))(K || {}), re = /* @__PURE__ */ ((e) => (e.default = "default", e.negative = "negative", e.negativeGrey = "negative-grey", e.positive = "positive", e.warning = "warning", e.neutral = "neutral", e.neutralN0 = "neutral-n0", e.neutralWhite = "neutral-white", e))(re || {}), at = /* @__PURE__ */ ((e) => (e.button = "button", e.link = "link", e.anchor = "anchor", e))(at || {});
|
7722
7720
|
const wI = {
|
@@ -8043,8 +8041,8 @@ const Vp = {
|
|
8043
8041
|
Z
|
8044
8042
|
`;
|
8045
8043
|
}, $6 = ({ duration: e, onComplete: s, size: n = 24, tooltipContent: a }) => {
|
8046
|
-
const r =
|
8047
|
-
return M(() =>
|
8044
|
+
const r = pa(GI), o = Ds(r, (i) => HI(Ko, zo, BI, i));
|
8045
|
+
return M(() => ma(r, VI, {
|
8048
8046
|
duration: e,
|
8049
8047
|
ease: "easeInOut",
|
8050
8048
|
onComplete: s
|
@@ -8091,7 +8089,7 @@ const Vp = {
|
|
8091
8089
|
title: o?.title ?? ud.title,
|
8092
8090
|
subTitle: o?.subTitle ?? ud.subTitle
|
8093
8091
|
}
|
8094
|
-
) : /* @__PURE__ */ t.jsx(
|
8092
|
+
) : /* @__PURE__ */ t.jsx(Ta, { ...i }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: d }), So = ({
|
8095
8093
|
isSorted: e,
|
8096
8094
|
triggerSorting: s,
|
8097
8095
|
sortOrder: n,
|
@@ -8259,7 +8257,7 @@ const Vp = {
|
|
8259
8257
|
return D;
|
8260
8258
|
});
|
8261
8259
|
const A = s.current;
|
8262
|
-
o((O) => ({ ...O, [T]: !
|
8260
|
+
o((O) => ({ ...O, [T]: !la(A[T], R) }));
|
8263
8261
|
}, E = (T, I) => () => {
|
8264
8262
|
if (I || a({ ...n, [T]: n[T]?.trim() }), e?.validationMode === "onBlur" || e?.validationMode === "all") {
|
8265
8263
|
const b = p(), v = gn(n[T], b[T]);
|
@@ -8305,7 +8303,7 @@ const Vp = {
|
|
8305
8303
|
}
|
8306
8304
|
if (y?.shouldDirty) {
|
8307
8305
|
const b = s.current;
|
8308
|
-
o((v) => ({ ...v, [T]: !
|
8306
|
+
o((v) => ({ ...v, [T]: !la(b[T], I) }));
|
8309
8307
|
}
|
8310
8308
|
y?.shouldTouch && c((b) => ({ ...b, [T]: !0 }));
|
8311
8309
|
},
|
@@ -8327,7 +8325,7 @@ const Vp = {
|
|
8327
8325
|
const k = s.current, P = Object.keys(T).reduce(
|
8328
8326
|
($, L) => ({
|
8329
8327
|
...$,
|
8330
|
-
[L]: !
|
8328
|
+
[L]: !la(T[L], k[L])
|
8331
8329
|
}),
|
8332
8330
|
{}
|
8333
8331
|
);
|
@@ -8488,14 +8486,14 @@ const Vp = {
|
|
8488
8486
|
"app-group": null,
|
8489
8487
|
[ot.cluster]: null
|
8490
8488
|
};
|
8491
|
-
var Br = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(Br || {}),
|
8489
|
+
var Br = /* @__PURE__ */ ((e) => (e.ALL_ENVIRONMENTS = "All environments", e.ACCESS_ONLY = "Access only", e))(Br || {}), ka = /* @__PURE__ */ ((e) => (e.RECENTLY_VISITED = "recently-visited", e))(ka || {});
|
8492
8490
|
const nR = ({
|
8493
8491
|
userPreferencesResponse: e,
|
8494
8492
|
id: s,
|
8495
8493
|
name: n,
|
8496
8494
|
resourceKind: a
|
8497
8495
|
}) => {
|
8498
|
-
const r = e?.resources?.[a]?.[
|
8496
|
+
const r = e?.resources?.[a]?.[ka.RECENTLY_VISITED] || [], o = s && !n, i = r.filter((l) => !l?.id || !l.name ? !1 : o ? l.id !== s : !0);
|
8499
8497
|
return (s && n ? [{ id: s, name: n }, ...i.filter((l) => l.id !== s)] : i).slice(0, 6);
|
8500
8498
|
}, aR = (e) => {
|
8501
8499
|
const s = {};
|
@@ -8526,7 +8524,7 @@ const nR = ({
|
|
8526
8524
|
...a,
|
8527
8525
|
[s]: {
|
8528
8526
|
...a[s],
|
8529
|
-
[
|
8527
|
+
[ka.RECENTLY_VISITED]: Array.isArray(n) ? n.map(({ id: r, name: o }) => ({ id: r, name: o })) : []
|
8530
8528
|
}
|
8531
8529
|
};
|
8532
8530
|
}, rR = async ({
|
@@ -8625,7 +8623,7 @@ const nR = ({
|
|
8625
8623
|
});
|
8626
8624
|
return r && localStorage.setItem("userPreferences", JSON.stringify(o)), n && o.resources?.[n] && await zp({
|
8627
8625
|
path: "resources",
|
8628
|
-
value: o.resources[n][
|
8626
|
+
value: o.resources[n][ka.RECENTLY_VISITED],
|
8629
8627
|
resourceKind: n,
|
8630
8628
|
shouldThrowError: a,
|
8631
8629
|
userPreferencesResponse: o
|
@@ -8644,7 +8642,7 @@ const nR = ({
|
|
8644
8642
|
() => p(),
|
8645
8643
|
[i, c],
|
8646
8644
|
d && !!l
|
8647
|
-
), g = h?.resources?.[l]?.[
|
8645
|
+
), g = h?.resources?.[l]?.[ka.RECENTLY_VISITED] || [], E = (C) => {
|
8648
8646
|
C?.themePreference ? C?.themePreference && m(C.themePreference) : u(!0), a(C);
|
8649
8647
|
};
|
8650
8648
|
return {
|
@@ -8679,7 +8677,7 @@ const nR = ({
|
|
8679
8677
|
recentlyVisitedResources: g,
|
8680
8678
|
recentResourcesLoading: _
|
8681
8679
|
};
|
8682
|
-
},
|
8680
|
+
}, Ua = ({
|
8683
8681
|
docLinkKey: e,
|
8684
8682
|
text: s = "Learn more",
|
8685
8683
|
dataTestId: n,
|
@@ -8699,7 +8697,7 @@ const nR = ({
|
|
8699
8697
|
isExternalLink: d,
|
8700
8698
|
isLicenseDashboard: h
|
8701
8699
|
}), x = (f) => {
|
8702
|
-
g && !d && !u && !f.metaKey && !h && E.startsWith(
|
8700
|
+
g && !d && !u && !f.metaKey && !h && E.startsWith(wa) && (f.preventDefault(), _((N) => ({
|
8703
8701
|
...N,
|
8704
8702
|
state: xo.DOCUMENTATION,
|
8705
8703
|
docLink: E,
|
@@ -8998,7 +8996,7 @@ const nR = ({
|
|
8998
8996
|
}, K6 = (e) => {
|
8999
8997
|
const { selectOption: s, data: n } = e, a = { height: "16px", width: "16px", flex: "0 0 16px" }, r = (o) => s(n);
|
9000
8998
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex left pl-12", style: { background: e.isFocused ? "var(--N100)" : "transparent" }, children: [
|
9001
|
-
e.isSelected ? /* @__PURE__ */ t.jsx(
|
8999
|
+
e.isSelected ? /* @__PURE__ */ t.jsx(Oa, { onClick: r, className: "mr-8 icon-dim-16", style: a }) : /* @__PURE__ */ t.jsx("span", { onClick: r, className: "mr-8", style: a }),
|
9002
9000
|
/* @__PURE__ */ t.jsx(Xe.Option, { ...e })
|
9003
9001
|
] });
|
9004
9002
|
}, z6 = (e) => {
|
@@ -9121,14 +9119,14 @@ const fR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9121
9119
|
CANCELLED: "cancelled",
|
9122
9120
|
TIMED_OUT: cn.TIMED_OUT.toLowerCase(),
|
9123
9121
|
WAITING_TO_START: cn.WAITING_TO_START.toLowerCase()
|
9124
|
-
},
|
9122
|
+
}, ir = {
|
9125
9123
|
MESSAGE: "message",
|
9126
9124
|
START_OF_STREAM: "START_OF_STREAM",
|
9127
9125
|
END_OF_STREAM: "END_OF_STREAM",
|
9128
9126
|
ERROR: "error"
|
9129
9127
|
}, Xo = {
|
9130
9128
|
PENDING: "Pending"
|
9131
|
-
}, CR = "1", Ao = 1, NR = "devtron-ci", bR = "devtron-ci",
|
9129
|
+
}, CR = "1", Ao = 1, NR = "devtron-ci", bR = "devtron-ci", cr = 3, fd = "deployment-status", TR = ["KIND", "NAME", "SYNC STATUS", "MESSAGE"], hd = "STAGE_INFO", SR = "|", Ui = {
|
9132
9130
|
suspended: "var(--Y500)",
|
9133
9131
|
unknown: "var(--N700)",
|
9134
9132
|
queued: "var(--N700)",
|
@@ -9358,10 +9356,10 @@ const fR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
|
|
9358
9356
|
] }) })
|
9359
9357
|
] }),
|
9360
9358
|
!n && /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__position-abs-b-20 dc__content-center w-100", children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox pt-8 pr-12 pb-8 pl-12 bcv-1 ev-2 bw-1 br-4", children: [
|
9361
|
-
/* @__PURE__ */ t.jsx(
|
9359
|
+
/* @__PURE__ */ t.jsx(Ra, { className: "icon-dim-20 fcv-5" }),
|
9362
9360
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8", children: st.ARTIFACTS_EMPTY_STATE_TEXTS.StoreFiles }),
|
9363
9361
|
/* @__PURE__ */ t.jsx(
|
9364
|
-
|
9362
|
+
Ua,
|
9365
9363
|
{
|
9366
9364
|
docLinkKey: "BLOB_STORAGE",
|
9367
9365
|
text: st.ARTIFACTS_EMPTY_STATE_TEXTS.ConfigureBlobStorage,
|
@@ -9630,7 +9628,7 @@ const LR = (e, s) => {
|
|
9630
9628
|
}, BR = (e) => {
|
9631
9629
|
switch (e) {
|
9632
9630
|
case Rn.SUCCESS:
|
9633
|
-
return /* @__PURE__ */ t.jsx(
|
9631
|
+
return /* @__PURE__ */ t.jsx(Oa, { className: "dc__no-shrink icon-dim-16 scg-5" });
|
9634
9632
|
case Rn.FAILURE:
|
9635
9633
|
return /* @__PURE__ */ t.jsx(ls, { className: "dc__no-shrink icon-dim-16 fcr-5" });
|
9636
9634
|
default:
|
@@ -9928,7 +9926,7 @@ const LR = (e, s) => {
|
|
9928
9926
|
children: m
|
9929
9927
|
}
|
9930
9928
|
),
|
9931
|
-
s !== ER && /* @__PURE__ */ t.jsx(
|
9929
|
+
s !== ER && /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-12 fcn-5" })
|
9932
9930
|
] }),
|
9933
9931
|
r && /* @__PURE__ */ t.jsx("span", { className: "dc__border-dashed--n3-bottom fw-6 fs-13 lh-19-imp", children: r })
|
9934
9932
|
]
|
@@ -10230,7 +10228,7 @@ const ty = {
|
|
10230
10228
|
statusFetchCount: r
|
10231
10229
|
}) => {
|
10232
10230
|
e.icon = n === ae.UNABLE_TO_FETCH ? "disconnect" : "timed_out", e.displaySubText = "Unknown", e.isCollapsed = !1;
|
10233
|
-
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ?
|
10231
|
+
const i = `Below resources did not become healthy within 10 mins. Resource status shown below was last fetched ${a ? Aa(a, !0) : "--"}. ${r || "--"} retries failed.`;
|
10234
10232
|
e.timelineStatus = [Z.KUBECTL_APPLY, Z.APP_HEALTH].includes(
|
10235
10233
|
s
|
10236
10234
|
) ? i : "";
|
@@ -10357,7 +10355,7 @@ const ty = {
|
|
10357
10355
|
}, my = {
|
10358
10356
|
[w.large]: w.xxs,
|
10359
10357
|
[w.medium]: w.xxs
|
10360
|
-
},
|
10358
|
+
}, $a = ({
|
10361
10359
|
layout: e = "row",
|
10362
10360
|
variant: s = "information",
|
10363
10361
|
size: n = w.large,
|
@@ -10506,12 +10504,12 @@ const Ey = (e) => {
|
|
10506
10504
|
if (e.external)
|
10507
10505
|
e.externalType ? r.external = {
|
10508
10506
|
displayName: "Data type",
|
10509
|
-
value:
|
10507
|
+
value: nr[s][e.externalType]
|
10510
10508
|
} : r.external = {
|
10511
10509
|
displayName: "Data type",
|
10512
|
-
value: s === "Secret" ?
|
10510
|
+
value: s === "Secret" ? nr[s].KubernetesSecret : nr[s].KubernetesConfigMap
|
10513
10511
|
};
|
10514
|
-
else if (r.external = { displayName: "Data type", value:
|
10512
|
+
else if (r.external = { displayName: "Data type", value: nr[s][""] }, s === "Secret" && n.codeEditorValue.value) {
|
10515
10513
|
const o = JSON.parse(n.codeEditorValue.value);
|
10516
10514
|
let i = {};
|
10517
10515
|
n.codeEditorValue?.resolvedValue && (i = JSON.parse(n.codeEditorValue.resolvedValue));
|
@@ -10547,7 +10545,7 @@ const Ey = (e) => {
|
|
10547
10545
|
};
|
10548
10546
|
}
|
10549
10547
|
return s === "Secret" && e.roleARN && (r.roleARN = { displayName: "Role ARN", value: e.roleARN }), r;
|
10550
|
-
},
|
10548
|
+
}, ba = (e, s, n) => {
|
10551
10549
|
let a;
|
10552
10550
|
const r = { codeEditorValue: e.codeEditorValue, values: {} };
|
10553
10551
|
return delete e.codeEditorValue, s === Mt.DEPLOYMENT_TEMPLATE.VALUE ? a = Ey(e) : s === Mt.PIPELINE_STRATEGY.VALUE ? a = Cy(e) : a = Ny(
|
@@ -10757,7 +10755,7 @@ const Ey = (e) => {
|
|
10757
10755
|
].map((c) => /* @__PURE__ */ t.jsxs(cs, { children: [
|
10758
10756
|
e.errorBarConfig?.nextTimelineToProcess === c && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
10759
10757
|
/* @__PURE__ */ t.jsx(
|
10760
|
-
|
10758
|
+
$a,
|
10761
10759
|
{
|
10762
10760
|
variant: "error",
|
10763
10761
|
description: e.errorBarConfig.deploymentErrorMessage
|
@@ -10780,7 +10778,7 @@ const Ey = (e) => {
|
|
10780
10778
|
}
|
10781
10779
|
);
|
10782
10780
|
};
|
10783
|
-
let
|
10781
|
+
let lr = null;
|
10784
10782
|
const Ty = ({
|
10785
10783
|
deploymentStatus: e,
|
10786
10784
|
deploymentAppType: s,
|
@@ -10796,7 +10794,7 @@ const Ty = ({
|
|
10796
10794
|
const u = co(), { url: m } = bs(), { appId: p, envId: _, triggerId: h } = Dt(), [g, E] = j(
|
10797
10795
|
e?.toUpperCase() !== Z.ABORTED
|
10798
10796
|
), x = ey.getAppDetails(), f = G(i), N = G(d), C = f.current && c ? c() : Fi(s ?? x?.deploymentAppType), [S, T] = j(C), I = () => {
|
10799
|
-
|
10797
|
+
lr && clearTimeout(lr);
|
10800
10798
|
}, y = () => {
|
10801
10799
|
gy(p, _, !0, h, n, a).then((A) => {
|
10802
10800
|
e !== "Aborted" && b({
|
@@ -10821,19 +10819,19 @@ const Ty = ({
|
|
10821
10819
|
A.deploymentAppType,
|
10822
10820
|
A
|
10823
10821
|
);
|
10824
|
-
I(), O.deploymentStatus === ae.INPROGRESS ?
|
10822
|
+
I(), O.deploymentStatus === ae.INPROGRESS ? lr = setTimeout(() => {
|
10825
10823
|
y();
|
10826
|
-
}, 1e4) :
|
10824
|
+
}, 1e4) : lr = setTimeout(() => {
|
10827
10825
|
y();
|
10828
10826
|
}, 3e4), T(O);
|
10829
10827
|
}, v = () => {
|
10830
10828
|
if (n) {
|
10831
|
-
|
10829
|
+
Na(
|
10832
10830
|
`${window.__BASE_URL__}${Se.APPLICATION_MANAGEMENT_APP}/${Se.DEVTRON_CHARTS}/${Se.APP_DEPLOYMNENT_HISTORY}/${p}/env/${_}/${Se.DETAILS}/${Se.APP_DETAILS_K8}?${fd}`
|
10833
10831
|
)();
|
10834
10832
|
return;
|
10835
10833
|
}
|
10836
|
-
|
10834
|
+
Na(
|
10837
10835
|
`${window.__BASE_URL__}${Se.APPLICATION_MANAGEMENT_APP}/${p}/${Se.APP_DETAILS}/${_}/${Se.APP_DETAILS_K8}?${fd}`
|
10838
10836
|
)();
|
10839
10837
|
}, R = () => !f.current && !S?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ t.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ t.jsx(
|
@@ -11010,7 +11008,7 @@ const Ty = ({
|
|
11010
11008
|
}
|
11011
11009
|
);
|
11012
11010
|
};
|
11013
|
-
function
|
11011
|
+
function Ta({ reload: e, className: s = "" }) {
|
11014
11012
|
return /* @__PURE__ */ t.jsx(
|
11015
11013
|
"article",
|
11016
11014
|
{
|
@@ -11118,7 +11116,7 @@ const Fn = ({
|
|
11118
11116
|
}
|
11119
11117
|
);
|
11120
11118
|
default:
|
11121
|
-
return /* @__PURE__ */ t.jsx(
|
11119
|
+
return /* @__PURE__ */ t.jsx(Ta, { reload: s, className: a });
|
11122
11120
|
}
|
11123
11121
|
})(), Kt = ({
|
11124
11122
|
content: e,
|
@@ -11159,7 +11157,7 @@ const Fn = ({
|
|
11159
11157
|
className: `dc__outline-none-imp p-0 flex dc__transparent--unstyled dc__no-border ${o}`,
|
11160
11158
|
"aria-label": `Copy ${e}`,
|
11161
11159
|
onClick: _,
|
11162
|
-
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(
|
11160
|
+
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: l ? /* @__PURE__ */ t.jsx(Oa, { className: h }) : /* @__PURE__ */ t.jsx(Rm, { className: h }) })
|
11163
11161
|
}
|
11164
11162
|
) });
|
11165
11163
|
}, o_ = Lt(null), jo = () => {
|
@@ -11215,7 +11213,7 @@ const Fn = ({
|
|
11215
11213
|
{
|
11216
11214
|
className: `code-editor__information fs-12 fw-4 lh-16 cn-9 py-8 px-16 bcb-1 dc__border-bottom dc__height-auto ${e || ""}`,
|
11217
11215
|
children: [
|
11218
|
-
/* @__PURE__ */ t.jsx(
|
11216
|
+
/* @__PURE__ */ t.jsx(ya, { className: "code-editor__status-info-icon" }),
|
11219
11217
|
n,
|
11220
11218
|
s
|
11221
11219
|
]
|
@@ -11274,7 +11272,7 @@ const Fn = ({
|
|
11274
11272
|
}
|
11275
11273
|
];
|
11276
11274
|
return {
|
11277
|
-
themeExtension:
|
11275
|
+
themeExtension: da.theme({
|
11278
11276
|
".cm-highlight-number": {
|
11279
11277
|
color: "var(--code-editor-number)"
|
11280
11278
|
},
|
@@ -11375,17 +11373,17 @@ const Fn = ({
|
|
11375
11373
|
]
|
11376
11374
|
}
|
11377
11375
|
);
|
11378
|
-
},
|
11376
|
+
}, Fa = Wu.define(), c_ = ac.define({
|
11379
11377
|
create() {
|
11380
11378
|
return !1;
|
11381
11379
|
},
|
11382
11380
|
update(e, s) {
|
11383
|
-
const n = s.effects.find((a) => a.is(
|
11381
|
+
const n = s.effects.find((a) => a.is(Fa));
|
11384
11382
|
return n ? n.value : e;
|
11385
11383
|
}
|
11386
11384
|
}), Vc = (e) => e.field(c_, !1) || !1, l_ = (e) => (e.dispatch({
|
11387
|
-
effects: [
|
11388
|
-
}), qf(e), !0), Fy = (e) => (l_(e), e.dispatch({ effects: [
|
11385
|
+
effects: [Fa.of(zf(e.state) ? Vc(e.state) : !1)]
|
11386
|
+
}), qf(e), !0), Fy = (e) => (l_(e), e.dispatch({ effects: [Fa.of(!e.state.readOnly && !0)] }), !0), By = (e) => (Vc(e.state) && Ku(e), !0), Gy = (e) => (e.contentDOM.blur(), !0), Vy = zu.define(), Hy = zu.define(), bd = (e, s, n) => {
|
11389
11387
|
let a = null;
|
11390
11388
|
try {
|
11391
11389
|
a = JSON.parse(e);
|
@@ -11645,7 +11643,7 @@ const Fn = ({
|
|
11645
11643
|
}, y = (P) => {
|
11646
11644
|
p({ regexp: P });
|
11647
11645
|
}, b = () => {
|
11648
|
-
d(!l), e.dispatch({ effects: [
|
11646
|
+
d(!l), e.dispatch({ effects: [Fa.of(!l)] });
|
11649
11647
|
}, v = (P) => {
|
11650
11648
|
P.preventDefault(), P.stopPropagation(), _h(e);
|
11651
11649
|
}, R = () => /* @__PURE__ */ t.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ t.jsx(
|
@@ -11894,7 +11892,7 @@ const Fn = ({
|
|
11894
11892
|
}, i = ({ transactions: c, docChanged: l, state: d, startState: u }) => {
|
11895
11893
|
c.forEach((m) => {
|
11896
11894
|
m.effects.forEach((p) => {
|
11897
|
-
p.is(qu) && r(), p.is(
|
11895
|
+
p.is(qu) && r(), p.is(Fa) && r();
|
11898
11896
|
});
|
11899
11897
|
}), (l || d.readOnly !== u.readOnly) && r();
|
11900
11898
|
};
|
@@ -11973,7 +11971,7 @@ const Fn = ({
|
|
11973
11971
|
let n = e.map(s.changes);
|
11974
11972
|
return s.docChanged && (n = Id(s.state)), n;
|
11975
11973
|
},
|
11976
|
-
provide: (e) =>
|
11974
|
+
provide: (e) => da.decorations.from(e)
|
11977
11975
|
}), rO = aO, oO = () => (e) => {
|
11978
11976
|
const s = [], n = e.state.doc.toString();
|
11979
11977
|
try {
|
@@ -12074,13 +12072,13 @@ const Fn = ({
|
|
12074
12072
|
}), [v]);
|
12075
12073
|
const ce = () => {
|
12076
12074
|
le();
|
12077
|
-
}, Ee =
|
12075
|
+
}, Ee = da.updateListener.of((ie) => {
|
12078
12076
|
if (ie.docChanged) {
|
12079
12077
|
const { doc: X } = ie.state, Ne = X.toString();
|
12080
12078
|
c(Ne, ie);
|
12081
12079
|
}
|
12082
12080
|
C || Td(V.current, ie.transactions, "a");
|
12083
|
-
}), be =
|
12081
|
+
}), be = da.updateListener.of((ie) => {
|
12084
12082
|
if (ie.docChanged) {
|
12085
12083
|
const { doc: X } = ie.state, Ne = X.toString();
|
12086
12084
|
d(Ne, ie);
|
@@ -12318,7 +12316,7 @@ const Fn = ({
|
|
12318
12316
|
syntaxHighlighting: !1
|
12319
12317
|
}),
|
12320
12318
|
Ad(o, !0),
|
12321
|
-
|
12319
|
+
da.editable.of(!1),
|
12322
12320
|
ko.readOnly.of(!0)
|
12323
12321
|
];
|
12324
12322
|
return /* @__PURE__ */ t.jsxs(o_.Provider, { value: oe, children: [
|
@@ -12397,12 +12395,12 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12397
12395
|
added: "Added",
|
12398
12396
|
deleted: "Deleted",
|
12399
12397
|
noDiff: "No change"
|
12400
|
-
},
|
12398
|
+
}, aa = {
|
12401
12399
|
hasDiff: Ug,
|
12402
12400
|
added: Mg,
|
12403
12401
|
deleted: kg,
|
12404
12402
|
noDiff: null
|
12405
|
-
},
|
12403
|
+
}, dr = {
|
12406
12404
|
hasDiff: "File has difference",
|
12407
12405
|
added: "File has been added",
|
12408
12406
|
deleted: "File has been deleted",
|
@@ -12847,9 +12845,9 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12847
12845
|
strikeThrough: d && T === Ht.DELETED,
|
12848
12846
|
...!u && T !== Ht.NO_DIFF ? {
|
12849
12847
|
iconConfig: {
|
12850
|
-
Icon: d ?
|
12848
|
+
Icon: d ? aa[T] : aa.hasDiff,
|
12851
12849
|
tooltipProps: {
|
12852
|
-
content: d ?
|
12850
|
+
content: d ? dr[T] : dr.hasDiff,
|
12853
12851
|
arrow: !1,
|
12854
12852
|
placement: "right"
|
12855
12853
|
}
|
@@ -12868,19 +12866,19 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12868
12866
|
] }), x = () => {
|
12869
12867
|
const { tabs: C, activeTab: S } = c;
|
12870
12868
|
return /* @__PURE__ */ t.jsx("div", { className: "p-12", children: /* @__PURE__ */ t.jsx(
|
12871
|
-
|
12869
|
+
Ia,
|
12872
12870
|
{
|
12873
12871
|
name: "deployment-config-diff-tab-list",
|
12874
12872
|
initialTab: S,
|
12875
12873
|
onChange: g,
|
12876
12874
|
disabled: e,
|
12877
12875
|
className: "gui-yaml-switch deployment-config-diff__tab-list",
|
12878
|
-
children: C.map((T) => /* @__PURE__ */ t.jsx(
|
12876
|
+
children: C.map((T) => /* @__PURE__ */ t.jsx(Ia.Radio, { value: T, className: "fs-12 lh-20 cn-7 fw-6", children: T }, T))
|
12879
12877
|
}
|
12880
12878
|
) });
|
12881
12879
|
}, f = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
12882
12880
|
n.map(({ title: C, href: S, onClick: T, diffState: I, Icon: y }) => {
|
12883
|
-
const b = d ?
|
12881
|
+
const b = d ? aa[I] : aa.hasDiff;
|
12884
12882
|
return /* @__PURE__ */ t.jsxs(
|
12885
12883
|
Ts,
|
12886
12884
|
{
|
@@ -12895,7 +12893,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12895
12893
|
Ie,
|
12896
12894
|
{
|
12897
12895
|
className: "default-tt",
|
12898
|
-
content: d ?
|
12896
|
+
content: d ? dr[I] : dr.hasDiff,
|
12899
12897
|
arrow: !1,
|
12900
12898
|
placement: "right",
|
12901
12899
|
children: /* @__PURE__ */ t.jsx("div", { className: "flex", children: /* @__PURE__ */ t.jsx(b, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
|
@@ -12908,11 +12906,11 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
12908
12906
|
}),
|
12909
12907
|
/* @__PURE__ */ t.jsx(pO, { config: _, tabType: "navLink", onCollapseBtnClick: h }),
|
12910
12908
|
o && /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12911
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(_m, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(
|
12909
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: i ? /* @__PURE__ */ t.jsx(_m, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
|
12912
12910
|
/* @__PURE__ */ t.jsx("p", { className: `m-0 fs-12 lh-1-5 ${i ? "cr-5" : "cn-9"}`, children: o })
|
12913
12911
|
] })
|
12914
12912
|
] }), N = () => e ? ["90", "70", "50"].map((C) => /* @__PURE__ */ t.jsx(_O, { width: C }, C)) : l?.error ? /* @__PURE__ */ t.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
|
12915
|
-
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(
|
12913
|
+
/* @__PURE__ */ t.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-16 fcn-7" }) }),
|
12916
12914
|
/* @__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." })
|
12917
12915
|
] }) : f();
|
12918
12916
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary dc__border-right flexbox-col dc__overflow-hidden", children: [
|
@@ -13064,7 +13062,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13064
13062
|
return { compareToCodeEditorData: l, compareWithCodeEditorData: d };
|
13065
13063
|
}, Sr = (e, s) => {
|
13066
13064
|
const n = !!e.codeEditorValue.value, a = !!s.codeEditorValue.value;
|
13067
|
-
return !n && a ? Ht.DELETED : n && !a ? Ht.ADDED :
|
13065
|
+
return !n && a ? Ht.DELETED : n && !a ? Ht.ADDED : la(e, s) ? Ht.NO_DIFF : Ht.HAS_DIFF;
|
13068
13066
|
}, wd = (e, s) => {
|
13069
13067
|
if (e && e.external && (e.externalType === "" || e.externalType === Be.KubernetesSecret)) {
|
13070
13068
|
const n = structuredClone(s);
|
@@ -13079,11 +13077,11 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13079
13077
|
a,
|
13080
13078
|
r,
|
13081
13079
|
o
|
13082
|
-
), l = n === ts.Secret ? Mt.SECRET.VALUE : Mt.CONFIGMAP.VALUE, d =
|
13080
|
+
), l = n === ts.Secret ? Mt.SECRET.VALUE : Mt.CONFIGMAP.VALUE, d = ba(
|
13083
13081
|
{ ...e || {}, codeEditorValue: i },
|
13084
13082
|
l,
|
13085
13083
|
n === ts.Secret && !a
|
13086
|
-
), u =
|
13084
|
+
), u = ba(
|
13087
13085
|
{ ...s || {}, codeEditorValue: c },
|
13088
13086
|
l,
|
13089
13087
|
n === ts.Secret && !r
|
@@ -13101,7 +13099,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13101
13099
|
displayName: "data",
|
13102
13100
|
value: a ? Ls(a, n) : ""
|
13103
13101
|
};
|
13104
|
-
return
|
13102
|
+
return ba(
|
13105
13103
|
{
|
13106
13104
|
...xO(e, s),
|
13107
13105
|
codeEditorValue: r
|
@@ -13113,7 +13111,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13113
13111
|
displayName: "data",
|
13114
13112
|
value: e.data
|
13115
13113
|
};
|
13116
|
-
return
|
13114
|
+
return ba(
|
13117
13115
|
{ codeEditorValue: s },
|
13118
13116
|
Mt.DEPLOYMENT_TEMPLATE.VALUE
|
13119
13117
|
);
|
@@ -13122,7 +13120,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13122
13120
|
displayName: "data",
|
13123
13121
|
value: e?.data ? Ls(e.data, s) : ""
|
13124
13122
|
};
|
13125
|
-
return
|
13123
|
+
return ba(
|
13126
13124
|
{ ...e || {}, strategy: e?.Strategy, codeEditorValue: n },
|
13127
13125
|
Mt.PIPELINE_STRATEGY.VALUE
|
13128
13126
|
);
|
@@ -13132,10 +13130,10 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13132
13130
|
n = !0;
|
13133
13131
|
else if (s) {
|
13134
13132
|
const o = e;
|
13135
|
-
o.deploymentDraftData?.configData[0].draftMetadata.draftState ===
|
13133
|
+
o.deploymentDraftData?.configData[0].draftMetadata.draftState === sa.Init ? a = !0 : o.deploymentDraftData?.configData[0].draftMetadata.draftState === sa.AwaitApproval && (r = !0);
|
13136
13134
|
} else {
|
13137
13135
|
const o = e;
|
13138
|
-
o.draftMetadata?.draftState ===
|
13136
|
+
o.draftMetadata?.draftState === sa.Init ? a = !0 : o.draftMetadata?.draftState === sa.AwaitApproval && (r = !0);
|
13139
13137
|
}
|
13140
13138
|
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: [
|
13141
13139
|
/* @__PURE__ */ t.jsx(Fg, { className: "icon-dim-16 scr-5" }),
|
@@ -13144,7 +13142,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13144
13142
|
/* @__PURE__ */ t.jsx($g, { className: "icon-dim-16 dc__no-shrink" }),
|
13145
13143
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cv-5", children: "Approval pending" })
|
13146
13144
|
] }) : /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8 ", children: [
|
13147
|
-
/* @__PURE__ */ t.jsx(
|
13145
|
+
/* @__PURE__ */ t.jsx(Oa, { className: "scn-9 icon-dim-16" }),
|
13148
13146
|
/* @__PURE__ */ t.jsx("span", { className: "fs-12 fw-6 cn-9", children: "Published" })
|
13149
13147
|
] });
|
13150
13148
|
}, Md = (e, s) => {
|
@@ -13428,7 +13426,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13428
13426
|
previousDeployments: []
|
13429
13427
|
}
|
13430
13428
|
), SO = (e) => {
|
13431
|
-
const s =
|
13429
|
+
const s = aa[e];
|
13432
13430
|
return /* @__PURE__ */ t.jsxs("div", { className: "flex dc__gap-6", children: [
|
13433
13431
|
s && /* @__PURE__ */ t.jsx(s, { className: "icon-dim-16" }),
|
13434
13432
|
/* @__PURE__ */ t.jsx("span", { className: `fs-12 lh-20 ${p_[e]}`, children: m_[e] })
|
@@ -13766,7 +13764,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13766
13764
|
)
|
13767
13765
|
) }),
|
13768
13766
|
k && /* @__PURE__ */ t.jsx(
|
13769
|
-
|
13767
|
+
$a,
|
13770
13768
|
{
|
13771
13769
|
variant: "error",
|
13772
13770
|
description: "Diff unavailable: Configurations for previous deployment not found."
|
@@ -13807,7 +13805,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13807
13805
|
};
|
13808
13806
|
return /* @__PURE__ */ t.jsxs("div", { className: "deployment-history-diff-view", children: [
|
13809
13807
|
!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: [
|
13810
|
-
/* @__PURE__ */ t.jsx(
|
13808
|
+
/* @__PURE__ */ t.jsx(ya, { className: "mr-8 ml-14 icon-dim-20" }),
|
13811
13809
|
/* @__PURE__ */ t.jsxs("span", { className: "lh-20", children: [
|
13812
13810
|
Mt[r.replace("-", "_").toUpperCase()]?.DISPLAY_NAME,
|
13813
13811
|
o ? ` “${o}”` : "",
|
@@ -13924,7 +13922,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13924
13922
|
index: i,
|
13925
13923
|
isExcluded: c = !1
|
13926
13924
|
}) => {
|
13927
|
-
const l = Dc(n), d = e === ns.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl :
|
13925
|
+
const l = Dc(n), d = e === ns.WEBHOOK || l && l.webhookdata && l.webhookdata.id !== 0, u = d ? l.webhookdata : {}, m = d ? null : l.commiturl ? l.commiturl : Ma(r, l.commit), p = (I) => I ? /* @__PURE__ */ t.jsx(
|
13928
13926
|
"a",
|
13929
13927
|
{
|
13930
13928
|
href: SI(r, I),
|
@@ -13953,7 +13951,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
13953
13951
|
u.data.author
|
13954
13952
|
] }) : null,
|
13955
13953
|
y ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
|
13956
|
-
/* @__PURE__ */ t.jsx(
|
13954
|
+
/* @__PURE__ */ t.jsx(_a, { className: "icon-dim-16 scn-7" }),
|
13957
13955
|
/* @__PURE__ */ t.jsx("time", { className: "cn-7 fs-12", children: y })
|
13958
13956
|
] }) : null,
|
13959
13957
|
u.data.message ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 top material-history-text--padded w-100", children: [
|
@@ -14087,7 +14085,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14087
14085
|
] })
|
14088
14086
|
] }) : null,
|
14089
14087
|
l.date ? /* @__PURE__ */ t.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8", children: [
|
14090
|
-
/* @__PURE__ */ t.jsx(
|
14088
|
+
/* @__PURE__ */ t.jsx(_a, { className: "icon-dim-16 scn-7" }),
|
14091
14089
|
/* @__PURE__ */ t.jsx("span", { className: "lh-20", children: je(l.date).format(vt.TWELVE_HOURS_FORMAT) })
|
14092
14090
|
] }) : null
|
14093
14091
|
] })
|
@@ -14346,20 +14344,20 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14346
14344
|
] })
|
14347
14345
|
] });
|
14348
14346
|
}, x_ = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-align-center dc__height-inherit", children: /* @__PURE__ */ t.jsxs("div", { children: [
|
14349
|
-
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(
|
14347
|
+
/* @__PURE__ */ t.jsx("div", { className: "text-center", children: /* @__PURE__ */ t.jsx(ya, { className: "icon-dim-20" }) }),
|
14350
14348
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-14 fw-6", children: "Logs not available" }),
|
14351
14349
|
/* @__PURE__ */ t.jsx("div", { className: "text-center text__white fs-13 fw-4", children: e || "Blob storage was not configured at pipeline run." })
|
14352
14350
|
] }) }), GO = () => /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
14353
14351
|
x_("Logs are available only at runtime."),
|
14354
14352
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox configure-blob-container pt-8 pr-12 pb-8 pl-12 bcv-1 br-4", children: [
|
14355
|
-
/* @__PURE__ */ t.jsx(
|
14353
|
+
/* @__PURE__ */ t.jsx(Ra, { className: "icon-dim-20 fcv-5" }),
|
14356
14354
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 mr-8 ml-8 text__white", children: "Want to store logs to view later?" }),
|
14357
|
-
/* @__PURE__ */ t.jsx(
|
14355
|
+
/* @__PURE__ */ t.jsx(Ua, { docLinkKey: "BLOB_STORAGE", text: "Configure blob storage", dataTestId: "configure-blob-storage" }),
|
14358
14356
|
/* @__PURE__ */ t.jsx(dm, { className: "icon-dim-20 ml-8" })
|
14359
14357
|
] })
|
14360
14358
|
] }), VO = (e) => /* @__PURE__ */ t.jsx("div", { className: "flexbox dc__content-center flex-grow-1 flex-align-center dc__height-inherit dark-background", children: e ? x_() : GO() }), HO = (e, s) => {
|
14361
14359
|
const [n, a] = j([]);
|
14362
|
-
let r =
|
14360
|
+
let r = cr;
|
14363
14361
|
const [o, i] = j(!1), [c, l] = j(1e3), d = G([]), u = G(null);
|
14364
14362
|
function m() {
|
14365
14363
|
a((f) => [...f, ...d.current]), d.current = [];
|
@@ -14369,16 +14367,16 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
14369
14367
|
u.current && u.current.close && u.current.close();
|
14370
14368
|
}
|
14371
14369
|
function _(f) {
|
14372
|
-
f.type === "message" && (r =
|
14370
|
+
f.type === "message" && (r = cr, d.current.push(f.data));
|
14373
14371
|
}
|
14374
14372
|
function h() {
|
14375
|
-
r =
|
14373
|
+
r = cr, d.current = [], a([]);
|
14376
14374
|
}
|
14377
14375
|
function g() {
|
14378
|
-
r =
|
14376
|
+
r = cr, a((f) => [...f, ...d.current]), d.current = [], u.current.close(), l(null);
|
14379
14377
|
}
|
14380
14378
|
function E() {
|
14381
|
-
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(
|
14379
|
+
d.current = [], u.current = new EventSource(e, { withCredentials: !0 }), u.current.addEventListener(ir.MESSAGE, _), u.current.addEventListener(ir.START_OF_STREAM, h), u.current.addEventListener(ir.END_OF_STREAM, g), u.current.addEventListener(ir.ERROR, x);
|
14382
14380
|
}
|
14383
14381
|
function x(f) {
|
14384
14382
|
r -= 1, u.current && u.current.close(), r > 0 ? E() : (i(!0), l(null));
|
@@ -15015,7 +15013,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15015
15013
|
] });
|
15016
15014
|
return /* @__PURE__ */ t.jsx(Xe.ValueContainer, { ...s, children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center", children: [
|
15017
15015
|
i(),
|
15018
|
-
|
15016
|
+
ua(n[1])
|
15019
15017
|
] }) });
|
15020
15018
|
}, Vi = ({ handleClick: e = he, commits: s }) => s?.length > 0 ? /* @__PURE__ */ t.jsx("div", { className: "flexbox", children: /* @__PURE__ */ t.jsxs(
|
15021
15019
|
"button",
|
@@ -15060,8 +15058,8 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15060
15058
|
Vi,
|
15061
15059
|
{
|
15062
15060
|
commits: [r.Commit],
|
15063
|
-
handleClick:
|
15064
|
-
|
15061
|
+
handleClick: Na(
|
15062
|
+
Ma(a.url, r.Commit)
|
15065
15063
|
)
|
15066
15064
|
}
|
15067
15065
|
),
|
@@ -15134,7 +15132,7 @@ const Hc = ({ expand: e, onTransitionEnd: s, children: n }) => /* @__PURE__ */ t
|
|
15134
15132
|
const c = Bc(e);
|
15135
15133
|
return /* @__PURE__ */ t.jsxs("div", { className: "shadow__overlay p-16 br-4 w-350 bg__overlay--primary border__primary mxh-300 dc__overflow-auto flexbox-col dc__gap-16", children: [
|
15136
15134
|
/* @__PURE__ */ t.jsxs("div", { className: "dc__icon-text-layout", children: [
|
15137
|
-
/* @__PURE__ */ t.jsx(
|
15135
|
+
/* @__PURE__ */ t.jsx(_a, { className: `scn-7 ${Yd}` }),
|
15138
15136
|
/* @__PURE__ */ t.jsx("time", { className: "cn-9 fs-12 cn-9 fw-4 lh-20", children: c?.triggeredOn ? Ro(c.triggeredOn) : "--" }),
|
15139
15137
|
/* @__PURE__ */ t.jsx(ui, { className: `fcn-7 ${Yd}` }),
|
15140
15138
|
/* @__PURE__ */ t.jsx(Q, { content: s, children: /* @__PURE__ */ t.jsx("span", { className: "cn-9 fs-12 fw-4 lh-20 dc__truncate", children: s }) }),
|
@@ -15574,7 +15572,7 @@ const aj = (e) => {
|
|
15574
15572
|
onClick: Re,
|
15575
15573
|
children: [
|
15576
15574
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 p-20", children: [
|
15577
|
-
C ? null :
|
15575
|
+
C ? null : ua(N, {
|
15578
15576
|
className: `${N.props?.className ?? ""} icon-dim-48 dc__no-shrink`
|
15579
15577
|
}),
|
15580
15578
|
/* @__PURE__ */ t.jsxs("div", { className: `flexbox-col ${d ? "" : "dc__gap-8"}`, children: [
|
@@ -15956,8 +15954,8 @@ const aj = (e) => {
|
|
15956
15954
|
Vi,
|
15957
15955
|
{
|
15958
15956
|
commits: [_.Commit],
|
15959
|
-
handleClick:
|
15960
|
-
|
15957
|
+
handleClick: Na(
|
15958
|
+
Ma(p.url, _.Commit)
|
15961
15959
|
)
|
15962
15960
|
}
|
15963
15961
|
),
|
@@ -16503,7 +16501,7 @@ const aj = (e) => {
|
|
16503
16501
|
title: st.TRIGGER_NOT_FOUND.TITLE,
|
16504
16502
|
subTitle: st.TRIGGER_NOT_FOUND.SUBTITLE
|
16505
16503
|
}
|
16506
|
-
) : !V && !O && !A ? /* @__PURE__ */ t.jsx(
|
16504
|
+
) : !V && !O && !A ? /* @__PURE__ */ t.jsx(Ta, {}) : V && !(z || O) && !A ? /* @__PURE__ */ t.jsx(Ta, {}) : A?.id !== +b ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16507
16505
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
16508
16506
|
/* @__PURE__ */ t.jsx(
|
16509
16507
|
fj,
|
@@ -16777,7 +16775,7 @@ const Rj = (e) => e?.appType === gt.DEVTRON_APP && e.resourceTree?.nodes?.length
|
|
16777
16775
|
"’ registry.",
|
16778
16776
|
s === "sync-error" && /* @__PURE__ */ t.jsx("span", { className: "cb-5 cursor fw-6 ml-8", onClick: n, children: e.ipsAccessProvided ? "Possible issues?" : "How to resolve?" })
|
16779
16777
|
] }), yj = ({ appDetails: e, useParentMargin: s = !0 }) => !e || e.appType !== gt.DEVTRON_APP || !e.resourceTree || !e.resourceTree.nodes || e.externalCi ? null : Rj(e) && /* @__PURE__ */ t.jsx("div", { className: `flexbox-col dc__gap-16 ${s ? "m-20" : ""} fs-13`, children: /* @__PURE__ */ t.jsx(
|
16780
|
-
|
16778
|
+
$a,
|
16781
16779
|
{
|
16782
16780
|
heading: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__content-space fs-13 lh-20 cn-9 fw-6", children: [
|
16783
16781
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
@@ -17175,7 +17173,7 @@ const jj = ({ heading: e, value: s, isLast: n = !1, alignCenter: a = !1 }) => /*
|
|
17175
17173
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 lh-20", children: "Deployment status:" }),
|
17176
17174
|
/* @__PURE__ */ t.jsx($n, { status: D.deploymentStatus, hideIcon: !0 })
|
17177
17175
|
] }),
|
17178
|
-
subTitle: `Triggered at ${
|
17176
|
+
subTitle: `Triggered at ${Aa(D.deploymentTriggerTime)} by ${D.triggeredBy}`,
|
17179
17177
|
imageType: Ks.Large
|
17180
17178
|
}
|
17181
17179
|
) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
@@ -17492,7 +17490,7 @@ const Fj = {
|
|
17492
17490
|
[-1]: "Failed",
|
17493
17491
|
0: "Progressing",
|
17494
17492
|
1: "Completed"
|
17495
|
-
},
|
17493
|
+
}, Ba = ({ severity: e, count: s }) => {
|
17496
17494
|
const n = s ? `${s} ${Gu(e)}` : Gu(e), a = {
|
17497
17495
|
size: w.xxs,
|
17498
17496
|
label: n
|
@@ -17557,7 +17555,7 @@ const Fj = {
|
|
17557
17555
|
}
|
17558
17556
|
)
|
17559
17557
|
] }), Bj = ({ entities: e, lastScanTimeString: s, scanToolName: n, scanToolUrl: a }) => /* @__PURE__ */ t.jsxs("div", { className: "info-card", children: [
|
17560
|
-
/* @__PURE__ */ t.jsx(
|
17558
|
+
/* @__PURE__ */ t.jsx(Ca, { entities: e, rootClassName: "p-16 fs-13", countClassName: "fw-6", showAnimationOnBar: !0 }),
|
17561
17559
|
(s || n) && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
17562
17560
|
/* @__PURE__ */ t.jsx("div", { className: "dc__border-bottom-n1 w-100 h-1" }),
|
17563
17561
|
/* @__PURE__ */ t.jsxs("div", { className: "w-100 flexbox dc__content-space pl-16 pr-16 pb-8 pt-8", children: [
|
@@ -17583,7 +17581,7 @@ const Fj = {
|
|
17583
17581
|
)
|
17584
17582
|
] })
|
17585
17583
|
] })
|
17586
|
-
] }),
|
17584
|
+
] }), Ga = ({
|
17587
17585
|
children: e,
|
17588
17586
|
detailViewData: s,
|
17589
17587
|
setDetailViewData: n
|
@@ -17655,7 +17653,7 @@ const Fj = {
|
|
17655
17653
|
ee.FAILURES,
|
17656
17654
|
ee.EXCEPTIONS,
|
17657
17655
|
ee.SUCCESSES
|
17658
|
-
],
|
17656
|
+
], Va = Yr.DESC, qc = {
|
17659
17657
|
image: Tn,
|
17660
17658
|
title: "Scan failed",
|
17661
17659
|
subTitle: "Error: Security scan failed"
|
@@ -17672,7 +17670,7 @@ const Fj = {
|
|
17672
17670
|
value: e[s]
|
17673
17671
|
}
|
17674
17672
|
).filter((s) => !!s)
|
17675
|
-
),
|
17673
|
+
), Ha = (e) => e && Object.keys(e).sort(
|
17676
17674
|
(s, n) => Kr.indexOf(s) - Kr.indexOf(n)
|
17677
17675
|
).map((s) => `${e[s]} ${Wr[s].label}`).join(", "), Qd = (e) => ({
|
17678
17676
|
[ee.UNKNOWN]: 1,
|
@@ -17683,7 +17681,7 @@ const Fj = {
|
|
17683
17681
|
[ee.FAILURES]: 6,
|
17684
17682
|
[ee.EXCEPTIONS]: 7,
|
17685
17683
|
[ee.SUCCESSES]: 8
|
17686
|
-
})[e] || 1e4,
|
17684
|
+
})[e] || 1e4, Ya = (e, s) => Qd(e) - Qd(s), f5 = (e) => {
|
17687
17685
|
const s = e[_e.IMAGE_SCAN].vulnerability?.summary?.severities, n = e[_e.CODE_SCAN].vulnerability?.summary?.severities;
|
17688
17686
|
return {
|
17689
17687
|
critical: (s?.[ee.CRITICAL] || 0) + (n?.[ee.CRITICAL] || 0),
|
@@ -17920,7 +17918,7 @@ const Fj = {
|
|
17920
17918
|
const s = e.imageScan?.vulnerability?.list ?? [], n = e.imageScan?.license?.list ?? [], a = e.codeScan?.status, r = e.kubernetesManifest?.status, o = qr(s), i = qr(n);
|
17921
17919
|
return o === "Progressing" || i === "Progressing" || Ki(a) || Ki(r) ? "Progressing" : o === "Failed" || i === "Failed" || a === "Failed" || r === "Failed" ? "Failed" : "Completed";
|
17922
17920
|
}, Qj = ({ 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: [
|
17923
|
-
/* @__PURE__ */ t.jsx(
|
17921
|
+
/* @__PURE__ */ t.jsx(fa, { className: "icon-dim-24 fcn-3" }),
|
17924
17922
|
/* @__PURE__ */ t.jsx("span", { children: "Code snippet is not available" }),
|
17925
17923
|
e && /* @__PURE__ */ t.jsx("a", { href: e, rel: "noopener noreferrer", target: "_blank", children: "Go to file" })
|
17926
17924
|
] }) }), y_ = ({ title: e, lines: s, link: n }) => /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__align-self-stretch bg__primary dc__outline dc__border-radius-4-imp", children: [
|
@@ -17939,8 +17937,8 @@ const Fj = {
|
|
17939
17937
|
headerText: "severity",
|
17940
17938
|
isSortable: !0,
|
17941
17939
|
width: 100,
|
17942
|
-
compareFunc:
|
17943
|
-
defaultSortOrder:
|
17940
|
+
compareFunc: Ya,
|
17941
|
+
defaultSortOrder: Va
|
17944
17942
|
},
|
17945
17943
|
{ headerText: "package", isSortable: !0, width: 143.33 },
|
17946
17944
|
{ headerText: "current version", isSortable: !1, width: 143.33 },
|
@@ -17966,7 +17964,7 @@ const Fj = {
|
|
17966
17964
|
cellContent: n.cveId
|
17967
17965
|
},
|
17968
17966
|
{
|
17969
|
-
component: /* @__PURE__ */ t.jsx(
|
17967
|
+
component: /* @__PURE__ */ t.jsx(Ba, { severity: n.severity }),
|
17970
17968
|
cellContent: n.severity
|
17971
17969
|
},
|
17972
17970
|
{
|
@@ -17995,8 +17993,8 @@ const Fj = {
|
|
17995
17993
|
headerText: "severity",
|
17996
17994
|
isSortable: !0,
|
17997
17995
|
width: 100,
|
17998
|
-
compareFunc:
|
17999
|
-
defaultSortOrder:
|
17996
|
+
compareFunc: Ya,
|
17997
|
+
defaultSortOrder: Va
|
18000
17998
|
},
|
18001
17999
|
{ headerText: "license", isSortable: !1, width: 150 },
|
18002
18000
|
{ headerText: "source", isSortable: !0, width: 296 }
|
@@ -18010,7 +18008,7 @@ const Fj = {
|
|
18010
18008
|
cellContent: s.classification
|
18011
18009
|
},
|
18012
18010
|
{
|
18013
|
-
component: /* @__PURE__ */ t.jsx(
|
18011
|
+
component: /* @__PURE__ */ t.jsx(Ba, { severity: s.severity }),
|
18014
18012
|
cellContent: s.severity
|
18015
18013
|
},
|
18016
18014
|
{
|
@@ -18042,8 +18040,8 @@ const Fj = {
|
|
18042
18040
|
headerText: "severity",
|
18043
18041
|
isSortable: !0,
|
18044
18042
|
width: 100,
|
18045
|
-
compareFunc:
|
18046
|
-
defaultSortOrder:
|
18043
|
+
compareFunc: Ya,
|
18044
|
+
defaultSortOrder: Va
|
18047
18045
|
},
|
18048
18046
|
{ headerText: "id", isSortable: !1, width: 100 }
|
18049
18047
|
],
|
@@ -18072,7 +18070,7 @@ const Fj = {
|
|
18072
18070
|
cellContent: ""
|
18073
18071
|
},
|
18074
18072
|
{
|
18075
|
-
component: /* @__PURE__ */ t.jsx(
|
18073
|
+
component: /* @__PURE__ */ t.jsx(Ba, { severity: o.severity }),
|
18076
18074
|
cellContent: o.severity
|
18077
18075
|
},
|
18078
18076
|
{
|
@@ -18109,7 +18107,7 @@ const Fj = {
|
|
18109
18107
|
cells: [
|
18110
18108
|
{
|
18111
18109
|
component: /* @__PURE__ */ t.jsx(
|
18112
|
-
|
18110
|
+
Ga,
|
18113
18111
|
{
|
18114
18112
|
detailViewData: tw(
|
18115
18113
|
i,
|
@@ -18125,7 +18123,7 @@ const Fj = {
|
|
18125
18123
|
cellContent: i.filePath
|
18126
18124
|
},
|
18127
18125
|
{
|
18128
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18126
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ha(i.misConfSummary.status) }),
|
18129
18127
|
cellContent: i.misConfSummary.status
|
18130
18128
|
},
|
18131
18129
|
{
|
@@ -18143,8 +18141,8 @@ const Fj = {
|
|
18143
18141
|
headerText: "severity",
|
18144
18142
|
isSortable: !0,
|
18145
18143
|
width: 100,
|
18146
|
-
compareFunc:
|
18147
|
-
defaultSortOrder:
|
18144
|
+
compareFunc: Ya,
|
18145
|
+
defaultSortOrder: Va
|
18148
18146
|
},
|
18149
18147
|
{ headerText: "category", isSortable: !0, width: 150 }
|
18150
18148
|
],
|
@@ -18163,7 +18161,7 @@ const Fj = {
|
|
18163
18161
|
cellContent: ""
|
18164
18162
|
},
|
18165
18163
|
{
|
18166
|
-
component: /* @__PURE__ */ t.jsx(
|
18164
|
+
component: /* @__PURE__ */ t.jsx(Ba, { severity: o.severity }),
|
18167
18165
|
cellContent: o.severity
|
18168
18166
|
},
|
18169
18167
|
{
|
@@ -18190,7 +18188,7 @@ const Fj = {
|
|
18190
18188
|
cells: [
|
18191
18189
|
{
|
18192
18190
|
component: /* @__PURE__ */ t.jsx(
|
18193
|
-
|
18191
|
+
Ga,
|
18194
18192
|
{
|
18195
18193
|
detailViewData: sw(
|
18196
18194
|
i,
|
@@ -18206,7 +18204,7 @@ const Fj = {
|
|
18206
18204
|
cellContent: i.filePath
|
18207
18205
|
},
|
18208
18206
|
{
|
18209
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18207
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ha(i.summary.severities) }),
|
18210
18208
|
cellContent: i.summary.severities
|
18211
18209
|
}
|
18212
18210
|
]
|
@@ -18326,7 +18324,7 @@ const Fj = {
|
|
18326
18324
|
cells: [
|
18327
18325
|
{
|
18328
18326
|
component: /* @__PURE__ */ t.jsx(
|
18329
|
-
|
18327
|
+
Ga,
|
18330
18328
|
{
|
18331
18329
|
detailViewData: {
|
18332
18330
|
...zi({
|
@@ -18344,7 +18342,7 @@ const Fj = {
|
|
18344
18342
|
cellContent: r.source
|
18345
18343
|
},
|
18346
18344
|
{
|
18347
|
-
component: /* @__PURE__ */ t.jsx("span", { children:
|
18345
|
+
component: /* @__PURE__ */ t.jsx("span", { children: Ha(r.summary.severities) }),
|
18348
18346
|
cellContent: r.summary.severities
|
18349
18347
|
}
|
18350
18348
|
]
|
@@ -18385,7 +18383,7 @@ const Fj = {
|
|
18385
18383
|
cells: [
|
18386
18384
|
{
|
18387
18385
|
component: /* @__PURE__ */ t.jsx(
|
18388
|
-
|
18386
|
+
Ga,
|
18389
18387
|
{
|
18390
18388
|
detailViewData: cw(a, s, n),
|
18391
18389
|
setDetailViewData: s,
|
@@ -18396,7 +18394,7 @@ const Fj = {
|
|
18396
18394
|
},
|
18397
18395
|
{
|
18398
18396
|
component: null,
|
18399
|
-
cellContent:
|
18397
|
+
cellContent: Ha(a.summary.severities) || (a.status === "Completed" ? "No vulnerability found" : "-")
|
18400
18398
|
},
|
18401
18399
|
{
|
18402
18400
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18416,8 +18414,8 @@ const Fj = {
|
|
18416
18414
|
headerText: "severity",
|
18417
18415
|
isSortable: !0,
|
18418
18416
|
width: 100,
|
18419
|
-
compareFunc:
|
18420
|
-
defaultSortOrder:
|
18417
|
+
compareFunc: Ya,
|
18418
|
+
defaultSortOrder: Va
|
18421
18419
|
},
|
18422
18420
|
{ headerText: "license", isSortable: !1, width: 150 },
|
18423
18421
|
{ headerText: "package", isSortable: !0, width: 296 }
|
@@ -18431,7 +18429,7 @@ const Fj = {
|
|
18431
18429
|
cellContent: s.classification
|
18432
18430
|
},
|
18433
18431
|
{
|
18434
|
-
component: /* @__PURE__ */ t.jsx(
|
18432
|
+
component: /* @__PURE__ */ t.jsx(Ba, { severity: s.severity }),
|
18435
18433
|
cellContent: s.severity
|
18436
18434
|
},
|
18437
18435
|
{
|
@@ -18462,7 +18460,7 @@ const Fj = {
|
|
18462
18460
|
cells: [
|
18463
18461
|
{
|
18464
18462
|
component: /* @__PURE__ */ t.jsx(
|
18465
|
-
|
18463
|
+
Ga,
|
18466
18464
|
{
|
18467
18465
|
detailViewData: dw(n),
|
18468
18466
|
setDetailViewData: s,
|
@@ -18473,7 +18471,7 @@ const Fj = {
|
|
18473
18471
|
},
|
18474
18472
|
{
|
18475
18473
|
component: null,
|
18476
|
-
cellContent:
|
18474
|
+
cellContent: Ha(n.summary.severities) || (n.status === "Completed" ? "No license risk found" : "-")
|
18477
18475
|
},
|
18478
18476
|
{
|
18479
18477
|
component: /* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-4", children: [
|
@@ -18959,7 +18957,7 @@ const Fj = {
|
|
18959
18957
|
] }),
|
18960
18958
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-12", children: [
|
18961
18959
|
r || !(i || n.success) ? /* @__PURE__ */ t.jsx("div", { className: "bcn-1 br-4 h-8" }) : /* @__PURE__ */ t.jsx(
|
18962
|
-
|
18960
|
+
Ca,
|
18963
18961
|
{
|
18964
18962
|
entities: c,
|
18965
18963
|
labelClassName: "fs-13 fw-4 lh-20 cn-9",
|
@@ -19223,7 +19221,7 @@ const Fj = {
|
|
19223
19221
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-16 dc__overflow-hidden pt-20 flex-grow-1 bulk-operations__results-modal__content", children: [
|
19224
19222
|
/* @__PURE__ */ t.jsxs("div", { className: "bulk-operations__results-modal__bar-chart br-8 flexbox-col dc__align-start dc__align-self-stretch dc__border bg__primary ml-20 mr-20", children: [
|
19225
19223
|
/* @__PURE__ */ t.jsx(
|
19226
|
-
|
19224
|
+
Ca,
|
19227
19225
|
{
|
19228
19226
|
entities: a.getBarChartEntities(),
|
19229
19227
|
rootClassName: "p-16 fs-13 dc__border-bottom-n1",
|
@@ -19341,10 +19339,10 @@ class su {
|
|
19341
19339
|
Progressing: 0,
|
19342
19340
|
Pending: 0
|
19343
19341
|
});
|
19344
|
-
|
19345
|
-
|
19342
|
+
qa(this, jn, !1);
|
19343
|
+
qa(this, wn, !1);
|
19346
19344
|
pe(this, "updateStatus", (s, n) => {
|
19347
|
-
n.status === "Completed" && !Js(this, wn) &&
|
19345
|
+
n.status === "Completed" && !Js(this, wn) && Xa(this, wn, !0), n.status === "Failed" && !Js(this, jn) && Xa(this, jn, !0), n.status === "Failed" && n.retryOperation && this.retryOperationsSet.has(s) && (this.retryOperations.push(n.retryOperation), this.retryOperationsSet.add(s)), n.status !== "Progressing" && (this.barChartEntities[n.status] ? this.barChartEntities[n.status] += 1 : this.barChartEntities[n.status] = 1), this.barChartEntities.Pending = this.size - (this.barChartEntities.Failed ?? 0) - (this.barChartEntities.Completed ?? 0), this.barChartEntities.Pending <= 0 && delete this.barChartEntities.Pending;
|
19348
19346
|
});
|
19349
19347
|
pe(this, "addResult", (s) => {
|
19350
19348
|
const n = structuredClone(s), a = this.results.length, r = { ...n, id: a };
|
@@ -19375,7 +19373,7 @@ const b5 = ({
|
|
19375
19373
|
handleModalClose: e,
|
19376
19374
|
operations: s = [],
|
19377
19375
|
getResultsChartSummaryText: n,
|
19378
|
-
handleReloadDataAfterBulkOperation: a =
|
19376
|
+
handleReloadDataAfterBulkOperation: a = Za,
|
19379
19377
|
hideResultsDrawer: r = !1,
|
19380
19378
|
textConfig: o,
|
19381
19379
|
shouldSkipConfirmation: i,
|
@@ -19442,10 +19440,10 @@ const b5 = ({
|
|
19442
19440
|
m(!1);
|
19443
19441
|
}
|
19444
19442
|
};
|
19445
|
-
M(() => (i && f().then(
|
19443
|
+
M(() => (i && f().then(Za).catch(Za), () => {
|
19446
19444
|
g.current?.abort();
|
19447
19445
|
}), []);
|
19448
|
-
const N = u ?
|
19446
|
+
const N = u ? Za : x, C = async () => {
|
19449
19447
|
_.current = h.current.getRetryOperations(), h.current = new su(_.current.length), g.current = new AbortController(), await f();
|
19450
19448
|
}, S = () => {
|
19451
19449
|
g.current.abort();
|
@@ -19636,7 +19634,7 @@ const yw = "bulk-selection-pop-up-menu", si = {
|
|
19636
19634
|
action: d ? Ge.CLEAR_ALL_SELECTIONS : Ge.SELECT_ALL_ON_PAGE
|
19637
19635
|
});
|
19638
19636
|
}, _ = !a || e, h = (g) => /* @__PURE__ */ t.jsx(
|
19639
|
-
|
19637
|
+
Pa,
|
19640
19638
|
{
|
19641
19639
|
id: yw,
|
19642
19640
|
onClick: m,
|
@@ -20033,7 +20031,7 @@ const T5 = ({
|
|
20033
20031
|
usePointStyle: !1,
|
20034
20032
|
boxHeight: 0,
|
20035
20033
|
generateLabels: (a) => {
|
20036
|
-
const r =
|
20034
|
+
const r = ra.defaults.plugins.legend.labels.generateLabels;
|
20037
20035
|
return r(a).map((i) => {
|
20038
20036
|
const { borderColor: c, borderDash: l } = a.data.datasets[i.datasetIndex];
|
20039
20037
|
return {
|
@@ -20267,24 +20265,24 @@ const T5 = ({
|
|
20267
20265
|
default:
|
20268
20266
|
return m;
|
20269
20267
|
}
|
20270
|
-
},
|
20268
|
+
}, ur = (e, s) => Jr[s][e], ni = (e, s, n = 100) => {
|
20271
20269
|
const a = e.replace(/\d+$/, ""), r = e.match(/\d+$/), o = r ? parseInt(r[0], 10) : 500, i = Math.min(o + n, 900), c = `${a}${i}`;
|
20272
20270
|
return Jr[s][c] || Jr[s][e];
|
20273
20271
|
}, Gw = ({ type: e, dataset: s, appTheme: n }) => {
|
20274
20272
|
if (e === "pie")
|
20275
20273
|
return {
|
20276
|
-
backgroundColor: s.colors.map((r) =>
|
20274
|
+
backgroundColor: s.colors.map((r) => ur(r, n)),
|
20277
20275
|
hoverBackgroundColor: s.colors.map((r) => ni(r, n)),
|
20278
20276
|
borderColor: "transparent"
|
20279
20277
|
};
|
20280
20278
|
if (e === "stackedBar" || e === "stackedBarHorizontal")
|
20281
20279
|
return {
|
20282
|
-
backgroundColor:
|
20280
|
+
backgroundColor: ur(s.color, n),
|
20283
20281
|
hoverBackgroundColor: ni(s.color, n),
|
20284
20282
|
borderColor: "transparent"
|
20285
20283
|
};
|
20286
20284
|
if (e === "line") {
|
20287
|
-
const r =
|
20285
|
+
const r = ur(s.color, n);
|
20288
20286
|
return {
|
20289
20287
|
backgroundColor: r,
|
20290
20288
|
borderColor: r,
|
@@ -20292,7 +20290,7 @@ const T5 = ({
|
|
20292
20290
|
pointBorderColor: r
|
20293
20291
|
};
|
20294
20292
|
}
|
20295
|
-
const a =
|
20293
|
+
const a = ur(s.color, n);
|
20296
20294
|
return {
|
20297
20295
|
backgroundColor(r) {
|
20298
20296
|
const { ctx: o, chartArea: i } = r.chart;
|
@@ -20305,7 +20303,7 @@ const T5 = ({
|
|
20305
20303
|
pointBackgroundColor: a,
|
20306
20304
|
pointBorderColor: a
|
20307
20305
|
};
|
20308
|
-
},
|
20306
|
+
}, mr = (e) => {
|
20309
20307
|
const { dataset: s, type: n } = e, a = Gw(e), r = {
|
20310
20308
|
label: s.datasetName,
|
20311
20309
|
data: s.yAxisValues,
|
@@ -20342,13 +20340,13 @@ const T5 = ({
|
|
20342
20340
|
switch (s) {
|
20343
20341
|
/** Not not clubbing it with the default case for better typing */
|
20344
20342
|
case "pie":
|
20345
|
-
return [
|
20343
|
+
return [mr({ type: s, dataset: n, appTheme: a })];
|
20346
20344
|
case "area":
|
20347
|
-
return [
|
20345
|
+
return [mr({ type: s, dataset: n, appTheme: a })];
|
20348
20346
|
case "line":
|
20349
|
-
return n.map((r) =>
|
20347
|
+
return n.map((r) => mr({ type: s, dataset: r, appTheme: a }));
|
20350
20348
|
default:
|
20351
|
-
return n.map((r) =>
|
20349
|
+
return n.map((r) => mr({ type: s, dataset: r, appTheme: a }));
|
20352
20350
|
}
|
20353
20351
|
};
|
20354
20352
|
function* S5() {
|
@@ -20405,7 +20403,7 @@ const ru = (e) => e ? typeof e == "number" ? `${e}px` : `${e.topLeft}px ${e.topR
|
|
20405
20403
|
))
|
20406
20404
|
] }) });
|
20407
20405
|
}, Yw = (e, s) => Math.sqrt((s.x - e.x) ** 2 + (s.y - e.y) ** 2);
|
20408
|
-
|
20406
|
+
ra.register(
|
20409
20407
|
jh,
|
20410
20408
|
wh,
|
20411
20409
|
Lh,
|
@@ -20473,8 +20471,8 @@ const v5 = (e) => {
|
|
20473
20471
|
const y = h.current?.getContext("2d");
|
20474
20472
|
if (!y)
|
20475
20473
|
return he;
|
20476
|
-
i === "pie" && (
|
20477
|
-
...
|
20474
|
+
i === "pie" && (ra.overrides.doughnut.plugins.legend.labels = {
|
20475
|
+
...ra.overrides.doughnut.plugins.legend.labels,
|
20478
20476
|
...F_("pie", S)
|
20479
20477
|
});
|
20480
20478
|
const b = Uw(i), v = {
|
@@ -20485,7 +20483,7 @@ const v5 = (e) => {
|
|
20485
20483
|
appTheme: S,
|
20486
20484
|
externalTooltipHandler: I
|
20487
20485
|
});
|
20488
|
-
return g.current = new
|
20486
|
+
return g.current = new ra(y, {
|
20489
20487
|
type: b,
|
20490
20488
|
data: v,
|
20491
20489
|
options: {
|
@@ -20547,7 +20545,7 @@ const v5 = (e) => {
|
|
20547
20545
|
)
|
20548
20546
|
] });
|
20549
20547
|
}, Kw = () => /* @__PURE__ */ t.jsx(
|
20550
|
-
|
20548
|
+
$a,
|
20551
20549
|
{
|
20552
20550
|
description: /* @__PURE__ */ t.jsxs("p", { className: "m-0 cn-9 fs-13 lh-20", children: [
|
20553
20551
|
/* @__PURE__ */ t.jsx("span", { children: "Kubernetes External Secret (KES) has been deprecated and will be removed in the next Devtron version. You can delete this file and create a secret using" }),
|
@@ -20575,7 +20573,7 @@ const v5 = (e) => {
|
|
20575
20573
|
}, zw = [
|
20576
20574
|
{ value: "", label: "Kubernetes ConfigMap" },
|
20577
20575
|
{ value: Be.KubernetesConfigMap, label: "Kubernetes External ConfigMap" }
|
20578
|
-
],
|
20576
|
+
], Sa = [{ key: "", value: "", id: 0 }], Qr = {
|
20579
20577
|
environment: { title: "Environment Variable", value: "environment" },
|
20580
20578
|
volume: { title: "Data Volume", value: "volume" }
|
20581
20579
|
}, qw = (e, s) => {
|
@@ -20632,7 +20630,7 @@ const v5 = (e) => {
|
|
20632
20630
|
configMapSecretData: e,
|
20633
20631
|
cmSecretStateLabel: s,
|
20634
20632
|
isSecret: n
|
20635
|
-
}) => e.mergeStrategy === Sc.PATCH ? e.patchData ? ai(e.patchData, n && e.externalType === "") :
|
20633
|
+
}) => e.mergeStrategy === Sc.PATCH ? e.patchData ? ai(e.patchData, n && e.externalType === "") : Sa : e.data ? ai(e.data, n && e.externalType === "") : s === Eo.INHERITED && e.defaultData ? ai(e.defaultData, n && e.externalType === "") : Sa, Jw = ({
|
20636
20634
|
data: e,
|
20637
20635
|
esoSubPath: s,
|
20638
20636
|
external: n,
|
@@ -20718,7 +20716,7 @@ const v5 = (e) => {
|
|
20718
20716
|
externalSubpathValues: "",
|
20719
20717
|
yaml: `"": ""
|
20720
20718
|
`,
|
20721
|
-
currentData:
|
20719
|
+
currentData: Sa,
|
20722
20720
|
esoSecretYaml: "{}",
|
20723
20721
|
secretDataYaml: "[]",
|
20724
20722
|
mergeStrategy: null
|
@@ -20814,12 +20812,12 @@ const v5 = (e) => {
|
|
20814
20812
|
throw new Error();
|
20815
20813
|
return Object.keys(s).reduce((a, r, o) => {
|
20816
20814
|
if (!r && !s[r])
|
20817
|
-
return
|
20815
|
+
return Sa;
|
20818
20816
|
const i = s[r] && typeof s[r] == "object" ? jt(s[r]) : s[r].toString();
|
20819
20817
|
return [...a, { key: r, value: i ?? "", id: o }];
|
20820
20818
|
}, []);
|
20821
20819
|
} catch {
|
20822
|
-
return
|
20820
|
+
return Sa;
|
20823
20821
|
}
|
20824
20822
|
}, B_ = (e) => {
|
20825
20823
|
try {
|
@@ -21436,7 +21434,7 @@ const v5 = (e) => {
|
|
21436
21434
|
withFullScreenPortal: !1,
|
21437
21435
|
orientation: "horizontal",
|
21438
21436
|
readOnly: l || !1,
|
21439
|
-
customInputIcon: /* @__PURE__ */ t.jsx(
|
21437
|
+
customInputIcon: /* @__PURE__ */ t.jsx(_a, { className: "icon-dim-20 scn-6" }),
|
21440
21438
|
inputIconPosition: "after",
|
21441
21439
|
displayFormat: vt.DD_MMM_YYYY,
|
21442
21440
|
"data-testid": m,
|
@@ -21648,7 +21646,7 @@ function AL({ isCreateApp: e }) {
|
|
21648
21646
|
/* @__PURE__ */ t.jsxs("div", { className: "mb-20", children: [
|
21649
21647
|
/* @__PURE__ */ t.jsxs("span", { className: "flex left", children: [
|
21650
21648
|
"Add a tag and click on the",
|
21651
|
-
/* @__PURE__ */ t.jsx(
|
21649
|
+
/* @__PURE__ */ t.jsx(oa, { className: "icon-dim-16 ml-4 mr-4" }),
|
21652
21650
|
"icon to"
|
21653
21651
|
] }),
|
21654
21652
|
"propagate tags as labels to Kubernetes resources"
|
@@ -21658,10 +21656,10 @@ function AL({ isCreateApp: e }) {
|
|
21658
21656
|
return /* @__PURE__ */ t.jsx(
|
21659
21657
|
Oc,
|
21660
21658
|
{
|
21661
|
-
theme:
|
21659
|
+
theme: ja.white,
|
21662
21660
|
className: "w-300",
|
21663
21661
|
placement: "left",
|
21664
|
-
Icon:
|
21662
|
+
Icon: oa,
|
21665
21663
|
heading: "Propagate tags to K8s resources",
|
21666
21664
|
infoText: "",
|
21667
21665
|
additionalContent: s(),
|
@@ -21672,7 +21670,7 @@ function AL({ isCreateApp: e }) {
|
|
21672
21670
|
documentationLinkText: "View Documentation",
|
21673
21671
|
openInNewTab: !0,
|
21674
21672
|
children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox cursor", children: [
|
21675
|
-
/* @__PURE__ */ t.jsx(
|
21673
|
+
/* @__PURE__ */ t.jsx(oa, { className: "icon-dim-16 mt-2 mr-4" }),
|
21676
21674
|
/* @__PURE__ */ t.jsx("span", { children: "Propagate tags" }),
|
21677
21675
|
/* @__PURE__ */ t.jsx(ho, { className: "icon-dim-16 mt-2 ml-4" })
|
21678
21676
|
] })
|
@@ -21961,7 +21959,7 @@ const ou = ({
|
|
21961
21959
|
/* @__PURE__ */ t.jsx("span", { children: v })
|
21962
21960
|
] }, v)),
|
21963
21961
|
o === ps.KEY && /* @__PURE__ */ t.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
|
21964
|
-
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(
|
21962
|
+
/* @__PURE__ */ t.jsx("span", { children: /* @__PURE__ */ t.jsx(fa, { className: "icon-dim-14 mt-3 mr-4" }) }),
|
21965
21963
|
/* @__PURE__ */ t.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
|
21966
21964
|
] })
|
21967
21965
|
] });
|
@@ -22049,7 +22047,7 @@ const ou = ({
|
|
22049
22047
|
className: `dc__border h-30 pl-4 pr-4 br-4 mr-8 pointer ${s.propagate ? "bcn-7" : ""} ${s.key.startsWith("devtron.ai/") ? "cursor-not-allowed bcn-1" : ""}`,
|
22050
22048
|
onClick: s?.isPropagateDisabled ? null : m,
|
22051
22049
|
"data-testid": `propagate-tag-${e}`,
|
22052
|
-
children: /* @__PURE__ */ t.jsx(
|
22050
|
+
children: /* @__PURE__ */ t.jsx(oa, { className: `icon-dim-20 mt-4 ${s.propagate ? "scn-0" : ""}` })
|
22053
22051
|
}
|
22054
22052
|
),
|
22055
22053
|
/* @__PURE__ */ t.jsx(
|
@@ -22976,7 +22974,7 @@ const lu = (e) => {
|
|
22976
22974
|
className: `flex right w-100 dc__align-right dc__border-top-n1 px-20 py-16 ${n ? "dc__content-space" : "right"}`,
|
22977
22975
|
children: [
|
22978
22976
|
n.length > 0 && /* @__PURE__ */ t.jsx(
|
22979
|
-
|
22977
|
+
Ua,
|
22980
22978
|
{
|
22981
22979
|
docLinkKey: n,
|
22982
22980
|
text: to.VIEW_DOCUMENTATION,
|
@@ -23025,14 +23023,14 @@ const lu = (e) => {
|
|
23025
23023
|
/* @__PURE__ */ t.jsx("div", { className: "flex left w-100 fs-16 fw-6 px-20 py-16", children: e }),
|
23026
23024
|
Array.isArray(l) ? m && l.length > 0 && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23027
23025
|
/* @__PURE__ */ t.jsx("div", { className: "px-20 pb-8 flex left w-100", children: /* @__PURE__ */ t.jsx(
|
23028
|
-
|
23026
|
+
Ia,
|
23029
23027
|
{
|
23030
23028
|
className: "gui-yaml-switch",
|
23031
23029
|
name: "feature-description-modal-tabs",
|
23032
23030
|
initialTab: m.id,
|
23033
23031
|
disabled: !1,
|
23034
23032
|
onChange: p,
|
23035
|
-
children: l.map((_) => /* @__PURE__ */ t.jsx(
|
23033
|
+
children: l.map((_) => /* @__PURE__ */ t.jsx(Ia.Radio, { value: _.id, children: _.title }, _.id))
|
23036
23034
|
}
|
23037
23035
|
) }),
|
23038
23036
|
/* @__PURE__ */ t.jsx(
|
@@ -23324,7 +23322,7 @@ const lu = (e) => {
|
|
23324
23322
|
type: "button",
|
23325
23323
|
children: [
|
23326
23324
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8", children: [
|
23327
|
-
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(
|
23325
|
+
/* @__PURE__ */ t.jsx("div", { className: "flex center", children: /* @__PURE__ */ t.jsx(Ra, { className: "icon-dim-16 fcv-5" }) }),
|
23328
23326
|
/* @__PURE__ */ t.jsx("p", { className: "m-0 fs-13 cn-9 fw-6 lh-20", children: KL })
|
23329
23327
|
] }),
|
23330
23328
|
/* @__PURE__ */ t.jsx(Es, { className: `icon-dim-16 fcn-6 ${e ? "" : "dc__flip-270"}` })
|
@@ -23445,7 +23443,7 @@ const lu = (e) => {
|
|
23445
23443
|
] }), f = () => s ? /* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto bg__primary flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Ze, { pageLoader: !0, size: 32 }) }) : n?.length === 0 ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23446
23444
|
/* @__PURE__ */ t.jsx("div", { className: "flexbox-col dc__align-self-stretch dc__overflow-auto flex-grow-1 h-250", children: /* @__PURE__ */ t.jsx(Je, { title: "No variables found", image: po }) }),
|
23447
23445
|
/* @__PURE__ */ t.jsx(mu, {})
|
23448
|
-
] }) : p ? x() : /* @__PURE__ */ t.jsx(
|
23446
|
+
] }) : p ? x() : /* @__PURE__ */ t.jsx(Ta, { reload: a, className: "bg__primary pb-16" });
|
23449
23447
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23450
23448
|
E(),
|
23451
23449
|
f()
|
@@ -23607,7 +23605,7 @@ const tD = (e) => e === q_.NONE ? "" : "dc__border-n1", Ir = ({
|
|
23607
23605
|
{
|
23608
23606
|
className: `flexbox dc__gap-16 p-12 bg__primary generic-info-card br-8 ${tD(r)}`,
|
23609
23607
|
children: a ? d() : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
23610
|
-
|
23608
|
+
ua(l, {
|
23611
23609
|
className: `${l.props?.className ?? ""} icon-dim-40 dc__no-shrink br-6 dc__fill-available-space`
|
23612
23610
|
}),
|
23613
23611
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-8 flex-grow-1", children: [
|
@@ -23725,7 +23723,7 @@ const tD = (e) => e === q_.NONE ? "" : "dc__border-n1", Ir = ({
|
|
23725
23723
|
] })
|
23726
23724
|
] })
|
23727
23725
|
}
|
23728
|
-
), cD = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }),
|
23726
|
+
), cD = ({ children: e }) => /* @__PURE__ */ t.jsx(t.Fragment, { children: e }), va = ({
|
23729
23727
|
name: e,
|
23730
23728
|
open: s,
|
23731
23729
|
width: n = 600,
|
@@ -23745,9 +23743,9 @@ const tD = (e) => e === q_.NONE ? "" : "dc__border-n1", Ir = ({
|
|
23745
23743
|
children: c
|
23746
23744
|
}
|
23747
23745
|
) }) }) });
|
23748
|
-
|
23749
|
-
|
23750
|
-
|
23746
|
+
va.Header = oD;
|
23747
|
+
va.Body = cD;
|
23748
|
+
va.Footer = iD;
|
23751
23749
|
const tl = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
23752
23750
|
const r = qh(), { hasSource: o, hasTarget: i } = J(
|
23753
23751
|
() => ({
|
@@ -23819,7 +23817,7 @@ const tl = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23819
23817
|
iconNode: 36,
|
23820
23818
|
textNode: 36,
|
23821
23819
|
dropdownNode: 36
|
23822
|
-
}, ii = 16,
|
23820
|
+
}, ii = 16, pr = 20, fD = 50, Z_ = 12, pu = { x: 16, y: 20, zoom: 1 }, _u = (e) => e.map((s) => ({
|
23823
23821
|
...s,
|
23824
23822
|
type: "step",
|
23825
23823
|
markerEnd: {
|
@@ -23879,9 +23877,9 @@ const tl = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23879
23877
|
if (r.current && u.length) {
|
23880
23878
|
const f = r.current.getNodesBounds(u);
|
23881
23879
|
return [
|
23882
|
-
[f.x - ii, f.y -
|
23880
|
+
[f.x - ii, f.y - pr],
|
23883
23881
|
// minX, minY
|
23884
|
-
[f.x + f.width + ii, f.y + f.height +
|
23882
|
+
[f.x + f.width + ii, f.y + f.height + pr]
|
23885
23883
|
// maxX, maxY
|
23886
23884
|
];
|
23887
23885
|
}
|
@@ -23889,7 +23887,7 @@ const tl = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23889
23887
|
[-1 / 0, -1 / 0],
|
23890
23888
|
[1 / 0, 1 / 0]
|
23891
23889
|
];
|
23892
|
-
}, [r.current, u]), _ = J(() => r.current && u.length ? r.current.getNodesBounds(u).height +
|
23890
|
+
}, [r.current, u]), _ = J(() => r.current && u.length ? r.current.getNodesBounds(u).height + pr * 2 : 0, [r.current, u]);
|
23893
23891
|
M(() => {
|
23894
23892
|
if (!o.current || !r.current) return () => {
|
23895
23893
|
};
|
@@ -23915,7 +23913,7 @@ const tl = ({ id: e, className: s, isConnectable: n, children: a }) => {
|
|
23915
23913
|
a((N) => eg(f, _u(N)).map(({ type: C, ...S }) => S));
|
23916
23914
|
}, E = (f) => {
|
23917
23915
|
const N = r.current.getNodesBounds(u), C = f;
|
23918
|
-
C.x = Math.min(f.x, pu.x), C.y = Math.abs(N.y -
|
23916
|
+
C.x = Math.min(f.x, pu.x), C.y = Math.abs(N.y - pr), c(C);
|
23919
23917
|
}, x = async (f) => {
|
23920
23918
|
r.current = f, await f.setViewport(pu);
|
23921
23919
|
};
|
@@ -24014,7 +24012,7 @@ const bD = [
|
|
24014
24012
|
label: "View documentation",
|
24015
24013
|
startIcon: { name: "ic-book-open" },
|
24016
24014
|
componentType: "anchor",
|
24017
|
-
href:
|
24015
|
+
href: wa
|
24018
24016
|
},
|
24019
24017
|
{
|
24020
24018
|
id: xt.DEVTRON_GPT,
|
@@ -24187,7 +24185,7 @@ const ID = async (e, s) => {
|
|
24187
24185
|
E && !R.metaKey && (R.preventDefault(), p((A) => ({
|
24188
24186
|
...A,
|
24189
24187
|
state: xo.DOCUMENTATION,
|
24190
|
-
docLink:
|
24188
|
+
docLink: wa,
|
24191
24189
|
reinitialize: !0
|
24192
24190
|
})));
|
24193
24191
|
}, T = (v, R) => {
|
@@ -24215,7 +24213,7 @@ const ID = async (e, s) => {
|
|
24215
24213
|
const y = `UheGN3KJ#source=${window.location.hostname}`, b = h && _ >= 0 && _ < Vm && I();
|
24216
24214
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
24217
24215
|
/* @__PURE__ */ t.jsx(
|
24218
|
-
|
24216
|
+
Pa,
|
24219
24217
|
{
|
24220
24218
|
id: "page-header-help-action-menu",
|
24221
24219
|
alignment: "end",
|
@@ -24484,7 +24482,7 @@ const ID = async (e, s) => {
|
|
24484
24482
|
!window._env_.K8S_CLIENT && /* @__PURE__ */ t.jsx(
|
24485
24483
|
Oc,
|
24486
24484
|
{
|
24487
|
-
theme:
|
24485
|
+
theme: ja.black,
|
24488
24486
|
className: "w-250",
|
24489
24487
|
placement: "bottom",
|
24490
24488
|
visible: E,
|
@@ -24628,7 +24626,7 @@ const UD = (e) => [
|
|
24628
24626
|
}
|
24629
24627
|
], W5 = ({ isJobView: e }) => {
|
24630
24628
|
const { serverMode: s } = Ss(), n = Dt(), a = rs(), r = `${Se.APPLICATION_MANAGEMENT_APP}/${Se.APP_LIST}/${n.appType ?? wl.AppType.DEVTRON_APPS}/${wl.CREATE_DEVTRON_APP_URL}${a.search}`, o = () => s === Gm.FULL ? /* @__PURE__ */ t.jsx(
|
24631
|
-
|
24629
|
+
Pa,
|
24632
24630
|
{
|
24633
24631
|
id: "page-header-create-app-action-menu",
|
24634
24632
|
alignment: "end",
|
@@ -24900,15 +24898,15 @@ const UD = (e) => [
|
|
24900
24898
|
s && r && /* @__PURE__ */ t.jsx(Jn, { envStateText: m(), title: r })
|
24901
24899
|
] });
|
24902
24900
|
}, _ = o !== $o.CD;
|
24903
|
-
if (!e && !d && (o !== $o.CD || !s && !Object.values(
|
24901
|
+
if (!e && !d && (o !== $o.CD || !s && !Object.values(sr).includes(n) && !i && !l?.length))
|
24904
24902
|
return null;
|
24905
24903
|
const E = () => o !== $o.CD ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
24906
24904
|
e && /* @__PURE__ */ t.jsx("span", { className: "last-deployed-status", children: "Last Run" }),
|
24907
24905
|
d
|
24908
24906
|
] }) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
24909
24907
|
p(),
|
24910
|
-
n ===
|
24911
|
-
(n ===
|
24908
|
+
n === sr.PROGRESSING && /* @__PURE__ */ t.jsx(Jn, { envStateText: Ms.DEPLOYING, title: a }),
|
24909
|
+
(n === sr.DEGRADED || n === sr.FAILED) && /* @__PURE__ */ t.jsx(Jn, { envStateText: Ms.FAILED, title: a }),
|
24912
24910
|
i && /* @__PURE__ */ t.jsx(
|
24913
24911
|
oo,
|
24914
24912
|
{
|
@@ -25088,7 +25086,7 @@ const zD = ({
|
|
25088
25086
|
}),
|
25089
25087
|
children: n
|
25090
25088
|
}
|
25091
|
-
), XD = ({ parsingError: e, restoreLastSavedYAML: s, children: n }) => e ? /* @__PURE__ */ t.jsx(qD, { parsingError: e, restoreLastSavedYAML: s, children: n }) : n,
|
25089
|
+
), XD = ({ parsingError: e, restoreLastSavedYAML: s, children: n }) => e ? /* @__PURE__ */ t.jsx(qD, { parsingError: e, restoreLastSavedYAML: s, children: n }) : n, _r = {
|
25092
25090
|
...Gp,
|
25093
25091
|
ArrowUp: {
|
25094
25092
|
name: "ic-arrow-right",
|
@@ -25111,11 +25109,11 @@ const zD = ({
|
|
25111
25109
|
">": {
|
25112
25110
|
name: "ic-symbol-greater-than"
|
25113
25111
|
}
|
25114
|
-
}, X5 = ({ keyboardKey: e }) => /* @__PURE__ */ t.jsx("kbd", { className: "p-4 cn-7 lh-20 flex bg__primary border__primary br-4 shadow__key fs-12 dc__no-shrink mw-20 h-20 fw-5", children: typeof
|
25112
|
+
}, X5 = ({ keyboardKey: e }) => /* @__PURE__ */ t.jsx("kbd", { className: "p-4 cn-7 lh-20 flex bg__primary border__primary br-4 shadow__key fs-12 dc__no-shrink mw-20 h-20 fw-5", children: typeof _r[e] == "string" ? _r[e] : /* @__PURE__ */ t.jsx(
|
25115
25113
|
B,
|
25116
25114
|
{
|
25117
|
-
name:
|
25118
|
-
rotateBy:
|
25115
|
+
name: _r[e].name,
|
25116
|
+
rotateBy: _r[e].rotateBy,
|
25119
25117
|
color: "N800",
|
25120
25118
|
size: 12
|
25121
25119
|
}
|
@@ -25396,7 +25394,7 @@ const r1 = ({
|
|
25396
25394
|
{
|
25397
25395
|
dataTestId: "copy-button",
|
25398
25396
|
text: "Copy link",
|
25399
|
-
startIcon: s ? /* @__PURE__ */ t.jsx(
|
25397
|
+
startIcon: s ? /* @__PURE__ */ t.jsx(Oa, {}) : /* @__PURE__ */ t.jsx(Rm, {}),
|
25400
25398
|
style: re.neutral,
|
25401
25399
|
variant: K.borderLess,
|
25402
25400
|
onClick: r
|
@@ -25448,7 +25446,7 @@ const r1 = ({
|
|
25448
25446
|
const [r, o] = j(!1), [i, c] = j(""), [l, d] = j(!1), [u, m] = j(""), p = () => {
|
25449
25447
|
gS(Wm.GET_LICENSE_CLICKED, !0);
|
25450
25448
|
const x = sf(e);
|
25451
|
-
|
25449
|
+
Na(x)(), o(!0);
|
25452
25450
|
}, _ = () => {
|
25453
25451
|
o(!1);
|
25454
25452
|
}, h = (x) => {
|
@@ -25573,10 +25571,10 @@ const r1 = ({
|
|
25573
25571
|
{
|
25574
25572
|
dataTestId: "mail-support",
|
25575
25573
|
startIcon: /* @__PURE__ */ t.jsx(B, { name: "ic-email", color: null }),
|
25576
|
-
text:
|
25574
|
+
text: ar,
|
25577
25575
|
variant: K.text,
|
25578
25576
|
component: at.anchor,
|
25579
|
-
anchorProps: { href: `mailto:${
|
25577
|
+
anchorProps: { href: `mailto:${ar}` }
|
25580
25578
|
}
|
25581
25579
|
) }),
|
25582
25580
|
/* @__PURE__ */ t.jsx(Nu, {})
|
@@ -25590,7 +25588,7 @@ const r1 = ({
|
|
25590
25588
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox dc__gap-8 dc__content-space", children: [
|
25591
25589
|
/* @__PURE__ */ t.jsxs("span", { children: [
|
25592
25590
|
"To renew your license mail us at ",
|
25593
|
-
/* @__PURE__ */ t.jsx("a", { href: `mailto:${
|
25591
|
+
/* @__PURE__ */ t.jsx("a", { href: `mailto:${ar}`, children: ar }),
|
25594
25592
|
" or contact your Devtron representative."
|
25595
25593
|
] }),
|
25596
25594
|
/* @__PURE__ */ t.jsx(
|
@@ -25617,7 +25615,7 @@ const r1 = ({
|
|
25617
25615
|
handleCopySuccess: d,
|
25618
25616
|
licenseStatusError: u
|
25619
25617
|
}) => {
|
25620
|
-
const { bgColor: m, textColor: p } = r1({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = MP(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, g = l === ye.dark, E = G(null), x =
|
25618
|
+
const { bgColor: m, textColor: p } = r1({ isFreemium: i, licenseStatus: r, licenseStatusError: u }), _ = MP(c), h = c < 0 ? `Expired ${_} ago` : `${_} remaining`, g = l === ye.dark, E = G(null), x = pa(window.innerWidth), f = pa(window.innerHeight), N = Ds(f, (b) => {
|
25621
25619
|
if (!E.current) return 0;
|
25622
25620
|
const v = E.current.getBoundingClientRect();
|
25623
25621
|
return -(b - v.top - v.height / 2) / Cu;
|
@@ -25628,7 +25626,7 @@ const r1 = ({
|
|
25628
25626
|
});
|
25629
25627
|
M(() => {
|
25630
25628
|
const b = (v) => {
|
25631
|
-
|
25629
|
+
ma(x, v.clientX), ma(f, v.clientY);
|
25632
25630
|
};
|
25633
25631
|
return window.addEventListener("mousemove", b), () => {
|
25634
25632
|
window.removeEventListener("mousemove", b);
|
@@ -25974,7 +25972,7 @@ const r1 = ({
|
|
25974
25972
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col dc__gap-4 dc__align-start", children: [
|
25975
25973
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-20 cn-9", children: "📙 Need help?" }),
|
25976
25974
|
/* @__PURE__ */ t.jsx(
|
25977
|
-
|
25975
|
+
Ua,
|
25978
25976
|
{
|
25979
25977
|
docLinkKey: r,
|
25980
25978
|
text: "View documentation",
|
@@ -26555,7 +26553,7 @@ const S1 = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26555
26553
|
};
|
26556
26554
|
}, [e, s]), a ? gm(n, a) : null;
|
26557
26555
|
}, d2 = ({ isLoading: e, intervalTime: s = 50 }) => {
|
26558
|
-
const n =
|
26556
|
+
const n = pa(0), a = Sg(n, { stiffness: 50, damping: 20 }), r = Ds(a, (o) => `${o}%`);
|
26559
26557
|
return M(() => {
|
26560
26558
|
let o = null;
|
26561
26559
|
return e && (o = setInterval(() => {
|
@@ -26585,14 +26583,14 @@ const S1 = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26585
26583
|
handleOnChange: s,
|
26586
26584
|
onPrometheusAuthTypeChange: n
|
26587
26585
|
}) => {
|
26588
|
-
const { endpoint: a, authType: r, userName: o, password: i, prometheusTlsClientCert: c, prometheusTlsClientKey: l } = e;
|
26586
|
+
const { endpoint: a, authType: r, userName: o, password: i, prometheusTlsClientCert: c, prometheusTlsClientKey: l } = e, d = r.value === ta.BASIC && (o.error || i.error);
|
26589
26587
|
return /* @__PURE__ */ t.jsxs("div", { className: "bg__primary p-20 br-8 flexbox-col dc__gap-16 border__secondary", children: [
|
26590
26588
|
/* @__PURE__ */ t.jsxs("div", { className: "flexbox-col", children: [
|
26591
26589
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-6 lh-1-5 cn-9", children: "Prometheus configurations" }),
|
26592
26590
|
/* @__PURE__ */ t.jsx("span", { className: "fs-13 fw-4 lh-1-5 cn-7", children: "Devtron uses prometheus to store and track cluster metrics" })
|
26593
26591
|
] }),
|
26594
|
-
(
|
26595
|
-
|
26592
|
+
(d || a.error) && /* @__PURE__ */ t.jsx(
|
26593
|
+
$a,
|
26596
26594
|
{
|
26597
26595
|
variant: "error",
|
26598
26596
|
description: "Fill all the required fields OR turn off the above switch to skip configuring prometheus."
|
@@ -26620,13 +26618,13 @@ const S1 = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26620
26618
|
onChange: n,
|
26621
26619
|
className: "radio-group-no-border",
|
26622
26620
|
children: [
|
26623
|
-
/* @__PURE__ */ t.jsx(Gi, { value:
|
26624
|
-
/* @__PURE__ */ t.jsx(Gi, { value:
|
26621
|
+
/* @__PURE__ */ t.jsx(Gi, { value: ta.BASIC, children: " Basic " }),
|
26622
|
+
/* @__PURE__ */ t.jsx(Gi, { value: ta.ANONYMOUS, children: " Anonymous " })
|
26625
26623
|
]
|
26626
26624
|
}
|
26627
26625
|
)
|
26628
26626
|
] }),
|
26629
|
-
r.value ===
|
26627
|
+
r.value === ta.BASIC ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
26630
26628
|
/* @__PURE__ */ t.jsx("div", { className: "w-50", children: /* @__PURE__ */ t.jsx(
|
26631
26629
|
Hs,
|
26632
26630
|
{
|
@@ -26815,7 +26813,7 @@ const S1 = (e) => e?.length ? e.map(({ id: s, description: n, name: a, pluginVer
|
|
26815
26813
|
)) })
|
26816
26814
|
}
|
26817
26815
|
);
|
26818
|
-
}, P1 = 350, cf = !!(Storage && localStorage), yr = "generic-table-configurable-columns", Or = "bulk-action-gutter", lf = new EventTarget(), vu = "table-drag-selector",
|
26816
|
+
}, P1 = 350, cf = !!(Storage && localStorage), yr = "generic-table-configurable-columns", Or = "bulk-action-gutter", lf = new EventTarget(), vu = "table-drag-selector", fr = [1, 2, 3], M1 = new Error("Neither rows nor getRows function provided"), Au = 5, k1 = [
|
26819
26817
|
{ value: 20, selected: !0 },
|
26820
26818
|
{ value: 40, selected: !1 },
|
26821
26819
|
{ value: 50, selected: !1 }
|
@@ -27096,7 +27094,7 @@ const Y1 = ({
|
|
27096
27094
|
}
|
27097
27095
|
);
|
27098
27096
|
};
|
27099
|
-
var jr = /* @__PURE__ */ ((e) => (e.ENTER_PRESSED = "enter-pressed", e.DELETE_PRESSED = "delete-pressed", e.ESCAPE_PRESSED = "escape-pressed", e.OPEN_CONTEXT_MENU = "open-context-menu", e.ROW_CLICKED = "row-clicked", e))(jr || {}), no = /* @__PURE__ */ ((e) => (e.STATE = "state", e.URL = "url", e.NONE = "none", e))(no || {}),
|
27097
|
+
var jr = /* @__PURE__ */ ((e) => (e.ENTER_PRESSED = "enter-pressed", e.DELETE_PRESSED = "delete-pressed", e.ESCAPE_PRESSED = "escape-pressed", e.OPEN_CONTEXT_MENU = "open-context-menu", e.ROW_CLICKED = "row-clicked", e))(jr || {}), no = /* @__PURE__ */ ((e) => (e.STATE = "state", e.URL = "url", e.NONE = "none", e))(no || {}), ca = /* @__PURE__ */ ((e) => (e.PAGINATED = "paginated", e.INFINITE = "infinite", e.NOT_PAGINATED = "not-paginated", e))(ca || {});
|
27100
27098
|
const W1 = ({
|
27101
27099
|
bulkSelectionConfig: e,
|
27102
27100
|
handleToggleBulkSelectionOnRow: s,
|
@@ -27340,8 +27338,8 @@ const W1 = ({
|
|
27340
27338
|
}, []);
|
27341
27339
|
const oe = Y && s ? s.length : Ee?.() ?? 0, ue = J(() => {
|
27342
27340
|
const te = h ?? [];
|
27343
|
-
return m !==
|
27344
|
-
}, [m, V, L, h]), Ce = !!E, ie = m ===
|
27341
|
+
return m !== ca.PAGINATED || m === ca.PAGINATED && E ? te : te.slice(V, V + L);
|
27342
|
+
}, [m, V, L, h]), Ce = !!E, ie = m === ca.PAGINATED && (Ce || h?.length > (_?.[0]?.value ?? vn)), { activeRowIndex: X, setActiveRowIndex: Ne, shortcutContainerProps: Te } = W1(
|
27345
27343
|
{ bulkSelectionConfig: c, bulkSelectionReturnValue: l, handleToggleBulkSelectionOnRow: u },
|
27346
27344
|
ue,
|
27347
27345
|
ie,
|
@@ -27360,17 +27358,17 @@ const W1 = ({
|
|
27360
27358
|
te && !["INPUT", "TEXTAREA"].includes(document.activeElement.tagName.toUpperCase()) && te.dataset.active === "true" && (te.focus({ preventScroll: !0 }), J1(te, f.current, S.current?.offsetHeight), te.dataset.active = "false");
|
27361
27359
|
}, it = () => {
|
27362
27360
|
I(null);
|
27363
|
-
}, Pt = () => Y && s ? h : Object.values(xe), Ct = () => i ?
|
27361
|
+
}, Pt = () => Y && s ? h : Object.values(xe), Ct = () => i ? fr.map((te) => /* @__PURE__ */ t.jsxs(
|
27364
27362
|
"div",
|
27365
27363
|
{
|
27366
27364
|
className: `px-20 flexbox py-12 dc__gap-16 ${D ? "border__secondary--bottom" : ""}`,
|
27367
27365
|
children: [
|
27368
27366
|
le ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
27369
|
-
|
27367
|
+
fr.map((U) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, U))
|
27370
27368
|
]
|
27371
27369
|
},
|
27372
27370
|
te
|
27373
|
-
)) : g ?
|
27371
|
+
)) : g ? fr.map((te) => /* @__PURE__ */ t.jsx(
|
27374
27372
|
"div",
|
27375
27373
|
{
|
27376
27374
|
className: "dc__grid px-20 border__secondary--bottom dc__gap-16",
|
@@ -27399,12 +27397,12 @@ const W1 = ({
|
|
27399
27397
|
tabIndex: -1,
|
27400
27398
|
children: [
|
27401
27399
|
r.map(({ field: et, horizontallySticky: As, CellComponent: Vn }, Hn) => {
|
27402
|
-
const Xs = et === Or, fn = As || Xs, { className:
|
27400
|
+
const Xs = et === Or, fn = As || Xs, { className: Ka = "", left: za = "" } = fn ? Ru(de, Hn) : {};
|
27403
27401
|
return Xs ? /* @__PURE__ */ t.jsx(
|
27404
27402
|
"div",
|
27405
27403
|
{
|
27406
|
-
className: `flexbox dc__align-items-center ${
|
27407
|
-
style: { left:
|
27404
|
+
className: `flexbox dc__align-items-center ${Ka}`,
|
27405
|
+
style: { left: za },
|
27408
27406
|
children: /* @__PURE__ */ t.jsx(
|
27409
27407
|
vs,
|
27410
27408
|
{
|
@@ -27419,8 +27417,8 @@ const W1 = ({
|
|
27419
27417
|
) : /* @__PURE__ */ t.jsx(
|
27420
27418
|
"div",
|
27421
27419
|
{
|
27422
|
-
className: `${
|
27423
|
-
style: { left:
|
27420
|
+
className: `${Ka} generic-table__cell`,
|
27421
|
+
style: { left: za },
|
27424
27422
|
children: Vn ? /* @__PURE__ */ t.jsx(
|
27425
27423
|
Vn,
|
27426
27424
|
{
|
@@ -27465,7 +27463,7 @@ const W1 = ({
|
|
27465
27463
|
className: "bg__primary dc__min-width-fit-content px-20 border__secondary--bottom dc__position-sticky dc__zi-2 dc__top-0 generic-table__header",
|
27466
27464
|
children: i ? /* @__PURE__ */ t.jsxs("div", { className: "flexbox py-12 dc__gap-16", children: [
|
27467
27465
|
le ? /* @__PURE__ */ t.jsx("div", { className: "shimmer w-20" }) : null,
|
27468
|
-
|
27466
|
+
fr.map((te) => /* @__PURE__ */ t.jsx("div", { className: "shimmer w-200" }, te))
|
27469
27467
|
] }) : /* @__PURE__ */ t.jsx(
|
27470
27468
|
"div",
|
27471
27469
|
{
|
@@ -27680,7 +27678,7 @@ const W1 = ({
|
|
27680
27678
|
[ie]
|
27681
27679
|
), ke = Ce || X === M1, it = J(() => {
|
27682
27680
|
const te = Te ?? [];
|
27683
|
-
return C !==
|
27681
|
+
return C !== ca.PAGINATED ? te : te.slice(O, O + A);
|
27684
27682
|
}, [C, O, A, Te]);
|
27685
27683
|
M(() => {
|
27686
27684
|
q?.(
|
@@ -27912,7 +27910,7 @@ const W1 = ({
|
|
27912
27910
|
"data-index": _.id,
|
27913
27911
|
type: "button",
|
27914
27912
|
disabled: g,
|
27915
|
-
children: /* @__PURE__ */ t.jsx(
|
27913
|
+
children: /* @__PURE__ */ t.jsx(oa, { className: `icon-dim-20 ${h ? "scn-0" : ""}` })
|
27916
27914
|
}
|
27917
27915
|
) });
|
27918
27916
|
}, u = () => {
|
@@ -28465,8 +28463,8 @@ const W1 = ({
|
|
28465
28463
|
className: "w-8 h-20 bcn-9 ml-2 dc__inline-block br-2"
|
28466
28464
|
}
|
28467
28465
|
), C2 = (e) => {
|
28468
|
-
const s =
|
28469
|
-
return M(() =>
|
28466
|
+
const s = pa(0), n = Ds(s, (a) => e.slice(0, Math.floor(a)));
|
28467
|
+
return M(() => ma(s, e.length, {
|
28470
28468
|
type: "tween",
|
28471
28469
|
duration: 4,
|
28472
28470
|
ease: "linear"
|
@@ -28809,7 +28807,7 @@ const W1 = ({
|
|
28809
28807
|
)) })
|
28810
28808
|
] });
|
28811
28809
|
return /* @__PURE__ */ t.jsx(
|
28812
|
-
|
28810
|
+
va,
|
28813
28811
|
{
|
28814
28812
|
name: "workflow-options-modal",
|
28815
28813
|
open: e,
|
@@ -28817,7 +28815,7 @@ const W1 = ({
|
|
28817
28815
|
onEscape: _ ? he : N,
|
28818
28816
|
width: 800,
|
28819
28817
|
closeOnBackdropClick: !0,
|
28820
|
-
children: /* @__PURE__ */ t.jsx(
|
28818
|
+
children: /* @__PURE__ */ t.jsx(va.Body, { children: /* @__PURE__ */ t.jsxs("div", { className: "flexbox-col h-500", children: [
|
28821
28819
|
/* @__PURE__ */ t.jsxs("div", { className: "workflow-options-modal__header flex top dc__content-space dc__no-shrink p-24 dc__position-rel dc__overflow-hidden", children: [
|
28822
28820
|
/* @__PURE__ */ t.jsx(yx, { className: "workflow-options-modal__img dc__position-abs dc__right-0" }),
|
28823
28821
|
/* @__PURE__ */ t.jsxs("div", { children: [
|
@@ -28939,7 +28937,7 @@ function I2(e) {
|
|
28939
28937
|
"$1"
|
28940
28938
|
) || null;
|
28941
28939
|
}
|
28942
|
-
function
|
28940
|
+
function Aa(e, s = !1) {
|
28943
28941
|
let n = "";
|
28944
28942
|
try {
|
28945
28943
|
if (e && e.length && e !== Mn) {
|
@@ -29078,7 +29076,7 @@ function $t(e, s = [], n = !0, a = { resetOnChange: !0 }) {
|
|
29078
29076
|
};
|
29079
29077
|
return [r.loading, r.result, r.error, l, d, r.dependencies];
|
29080
29078
|
}
|
29081
|
-
const w2 = (e, s) => e ?
|
29079
|
+
const w2 = (e, s) => e ? Aa(e, !0) : s ? "" : "Not deployed", He = (e, s = {}) => {
|
29082
29080
|
const n = new URLSearchParams();
|
29083
29081
|
Object.keys(s).forEach((r) => {
|
29084
29082
|
Bm.includes(s[r]) || (Array.isArray(s[r]) ? s[r].forEach((o) => {
|
@@ -29184,7 +29182,7 @@ const w2 = (e, s) => e ? va(e, !0) : s ? "" : "Not deployed", He = (e, s = {}) =
|
|
29184
29182
|
const n = Array.isArray(e), a = Array.isArray(s);
|
29185
29183
|
return n && !a || !n && a ? !1 : !n && !a ? Object.keys(e).length === Object.keys(s).length : e.length === s.length;
|
29186
29184
|
};
|
29187
|
-
function
|
29185
|
+
function la(e, s) {
|
29188
29186
|
return Dm(e, s);
|
29189
29187
|
}
|
29190
29188
|
function wP(e, s) {
|
@@ -29295,7 +29293,7 @@ const Y2 = (e = 0) => e > 0 && e < 10 ? `0${e}` : e, W2 = (e, s = 300) => {
|
|
29295
29293
|
const r = Date.now();
|
29296
29294
|
r - n >= s && (n = r, e(...a));
|
29297
29295
|
};
|
29298
|
-
}, PP = (e, s, n) => e === ns.WEBHOOK ? n ===
|
29296
|
+
}, PP = (e, s, n) => e === ns.WEBHOOK ? n === xa.PULL_REQUEST ? /* @__PURE__ */ t.jsx(pc, { className: "scn-6" }) : n === xa.TAG_CREATION ? /* @__PURE__ */ t.jsx(uo, { className: "scn-6" }) : /* @__PURE__ */ t.jsx(km, {}) : e === ns.BranchRegex || s ? /* @__PURE__ */ t.jsx(Em, { className: "fcn-6" }) : /* @__PURE__ */ t.jsx(om, { className: "fcn-6" }), Cf = (e) => on.sanitize(e, {
|
29299
29297
|
ADD_TAGS: ["iframe"],
|
29300
29298
|
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"]
|
29301
29299
|
}), K2 = (e, s) => {
|
@@ -29853,7 +29851,7 @@ function JP(e, {
|
|
29853
29851
|
}) {
|
29854
29852
|
let a;
|
29855
29853
|
return s ? a = `${vi.CI_PIPELINE_PATCH}/regex` : a = n ? Co({
|
29856
|
-
type:
|
29854
|
+
type: La.CI_PIPELINE,
|
29857
29855
|
queryParams: {
|
29858
29856
|
id: e.appId
|
29859
29857
|
}
|
@@ -29861,7 +29859,7 @@ function JP(e, {
|
|
29861
29859
|
}
|
29862
29860
|
function ZP(e, s, n) {
|
29863
29861
|
const a = n ? Co({
|
29864
|
-
type:
|
29862
|
+
type: La.WORKFLOW,
|
29865
29863
|
queryParams: { id: e, appWorkflowId: s }
|
29866
29864
|
}) : `${vi.WORKFLOW}/${e}/${s}`;
|
29867
29865
|
return Mo(a);
|
@@ -30257,7 +30255,7 @@ const aM = (e) => {
|
|
30257
30255
|
minEditorHeight: i = 300,
|
30258
30256
|
emptyStateConfig: c
|
30259
30257
|
}) => {
|
30260
|
-
const [l, d] = j(!1), [u, m] = j(e ? "previewSaved" : "empty"), [p, _] = j(e), h = !
|
30258
|
+
const [l, d] = j(!1), [u, m] = j(e ? "previewSaved" : "empty"), [p, _] = j(e), h = !la(e, p), g = G(null);
|
30261
30259
|
M(() => {
|
30262
30260
|
_(e);
|
30263
30261
|
}, [e]);
|
@@ -30640,7 +30638,7 @@ const Sf = ({
|
|
30640
30638
|
U.id
|
30641
30639
|
)) }),
|
30642
30640
|
I && /* @__PURE__ */ t.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
|
30643
|
-
/* @__PURE__ */ t.jsx(
|
30641
|
+
/* @__PURE__ */ t.jsx(ya, { className: "icon-dim-16 mr-2" }),
|
30644
30642
|
"Tags cannot be edited/removed later"
|
30645
30643
|
] }),
|
30646
30644
|
/* @__PURE__ */ t.jsx("div", { className: "mt-12", children: /* @__PURE__ */ t.jsx(
|
@@ -30855,7 +30853,7 @@ function uM() {
|
|
30855
30853
|
throw new Error("Radio compound components cannot be rendered outside the Toggle component");
|
30856
30854
|
return e;
|
30857
30855
|
}
|
30858
|
-
const
|
30856
|
+
const Ia = Ue.memo(
|
30859
30857
|
({ name: e, onChange: s, children: n, className: a = "", initialTab: r, disabled: o = !1 }) => {
|
30860
30858
|
const [i, c] = j(null);
|
30861
30859
|
M(() => {
|
@@ -30914,7 +30912,7 @@ const Aa = Ue.memo(
|
|
30914
30912
|
}
|
30915
30913
|
);
|
30916
30914
|
};
|
30917
|
-
|
30915
|
+
Ia.Radio = pM;
|
30918
30916
|
const _M = (e) => {
|
30919
30917
|
switch (e) {
|
30920
30918
|
case w.large:
|
@@ -31124,7 +31122,7 @@ const _M = (e) => {
|
|
31124
31122
|
}
|
31125
31123
|
);
|
31126
31124
|
}, If = Ue.createContext(null);
|
31127
|
-
function
|
31125
|
+
function Wa() {
|
31128
31126
|
const e = Ue.useContext(If);
|
31129
31127
|
if (!e)
|
31130
31128
|
throw new Error("Select compound components cannot be rendered outside the Toggle component");
|
@@ -31202,7 +31200,7 @@ const Gn = ({
|
|
31202
31200
|
name: i = "",
|
31203
31201
|
rootClassName: c = ""
|
31204
31202
|
}) => {
|
31205
|
-
const { selected: l, searchString: d, valueComparator: u, handleClick: m } =
|
31203
|
+
const { selected: l, searchString: d, valueComparator: u, handleClick: m } = Wa();
|
31206
31204
|
return o = o || l === n, typeof n == "object" && (o = o || u(n)), i.includes(d) ? /* @__PURE__ */ t.jsx(
|
31207
31205
|
"div",
|
31208
31206
|
{
|
@@ -31226,7 +31224,7 @@ const Gn = ({
|
|
31226
31224
|
arrowAsset: r = "",
|
31227
31225
|
hideArrow: o = !1
|
31228
31226
|
}) => {
|
31229
|
-
const { popupOpen: i, loading: c } =
|
31227
|
+
const { popupOpen: i, loading: c } = Wa();
|
31230
31228
|
return /* @__PURE__ */ t.jsxs(
|
31231
31229
|
"div",
|
31232
31230
|
{
|
@@ -31247,7 +31245,7 @@ const Gn = ({
|
|
31247
31245
|
}
|
31248
31246
|
);
|
31249
31247
|
}, CM = ({ placeholder: e = "search", style: s = {}, inputStyle: n = {}, rootClassName: a = "" }) => {
|
31250
|
-
const { searchString: r, search: o } =
|
31248
|
+
const { searchString: r, search: o } = Wa();
|
31251
31249
|
return /* @__PURE__ */ t.jsxs(
|
31252
31250
|
"div",
|
31253
31251
|
{
|
@@ -31272,7 +31270,7 @@ const Gn = ({
|
|
31272
31270
|
}
|
31273
31271
|
);
|
31274
31272
|
}, jf = ({ api: e }) => {
|
31275
|
-
const { loading: s, setLoading: n } =
|
31273
|
+
const { loading: s, setLoading: n } = Wa();
|
31276
31274
|
return M(() => {
|
31277
31275
|
async function a() {
|
31278
31276
|
n(!0);
|
@@ -31287,7 +31285,7 @@ const Gn = ({
|
|
31287
31285
|
a();
|
31288
31286
|
}, []), null;
|
31289
31287
|
}, NM = ({ rootClassName: e = "", style: s = {} }) => {
|
31290
|
-
const { handleClick: n } =
|
31288
|
+
const { handleClick: n } = Wa();
|
31291
31289
|
return /* @__PURE__ */ t.jsx(
|
31292
31290
|
"div",
|
31293
31291
|
{
|
@@ -31381,7 +31379,7 @@ export {
|
|
31381
31379
|
NI as ae,
|
31382
31380
|
I6 as af,
|
31383
31381
|
Fr as ag,
|
31384
|
-
|
31382
|
+
Ma as ah,
|
31385
31383
|
TI as ai,
|
31386
31384
|
R6 as aj,
|
31387
31385
|
y6 as ak,
|
@@ -31397,14 +31395,14 @@ export {
|
|
31397
31395
|
P6 as au,
|
31398
31396
|
Il as av,
|
31399
31397
|
Pr as aw,
|
31400
|
-
|
31398
|
+
wa as ax,
|
31401
31399
|
E4 as ay,
|
31402
31400
|
sS as az,
|
31403
31401
|
P2 as b,
|
31404
31402
|
rl as b$,
|
31405
|
-
|
31403
|
+
tr as b0,
|
31406
31404
|
R4 as b1,
|
31407
|
-
|
31405
|
+
ga as b2,
|
31408
31406
|
Mn as b3,
|
31409
31407
|
Bm as b4,
|
31410
31408
|
Gt as b5,
|
@@ -31433,7 +31431,7 @@ export {
|
|
31433
31431
|
RP as bS,
|
31434
31432
|
ao as bT,
|
31435
31433
|
I2 as bU,
|
31436
|
-
|
31434
|
+
Aa as bV,
|
31437
31435
|
R2 as bW,
|
31438
31436
|
y2 as bX,
|
31439
31437
|
O2 as bY,
|
@@ -31530,13 +31528,13 @@ export {
|
|
31530
31528
|
UP as cx,
|
31531
31529
|
$P as cy,
|
31532
31530
|
o0 as cz,
|
31533
|
-
|
31531
|
+
la as d,
|
31534
31532
|
xH as d$,
|
31535
31533
|
dM as d0,
|
31536
31534
|
Ze as d1,
|
31537
31535
|
r0 as d2,
|
31538
31536
|
Af as d3,
|
31539
|
-
|
31537
|
+
Ca as d4,
|
31540
31538
|
EM as d5,
|
31541
31539
|
hS as d6,
|
31542
31540
|
Vt as d7,
|
@@ -31559,7 +31557,7 @@ export {
|
|
31559
31557
|
b0 as dO,
|
31560
31558
|
Sc as dP,
|
31561
31559
|
T0 as dQ,
|
31562
|
-
|
31560
|
+
La as dR,
|
31563
31561
|
up as dS,
|
31564
31562
|
y0 as dT,
|
31565
31563
|
mH as dU,
|
@@ -31571,7 +31569,7 @@ export {
|
|
31571
31569
|
gH as d_,
|
31572
31570
|
Oc as da,
|
31573
31571
|
sH as db,
|
31574
|
-
|
31572
|
+
ja as dc,
|
31575
31573
|
Tt as dd,
|
31576
31574
|
Ks as de,
|
31577
31575
|
Qn as df,
|
@@ -31579,7 +31577,7 @@ export {
|
|
31579
31577
|
Um as dh,
|
31580
31578
|
KT as di,
|
31581
31579
|
$m as dj,
|
31582
|
-
|
31580
|
+
ia as dk,
|
31583
31581
|
zT as dl,
|
31584
31582
|
qT as dm,
|
31585
31583
|
gi as dn,
|
@@ -31590,7 +31588,7 @@ export {
|
|
31590
31588
|
ZT as dt,
|
31591
31589
|
Sn as du,
|
31592
31590
|
ks as dv,
|
31593
|
-
|
31591
|
+
ha as dw,
|
31594
31592
|
xi as dx,
|
31595
31593
|
QT as dy,
|
31596
31594
|
uH as dz,
|
@@ -31608,7 +31606,7 @@ export {
|
|
31608
31606
|
bH as e9,
|
31609
31607
|
G0 as eA,
|
31610
31608
|
V0 as eB,
|
31611
|
-
|
31609
|
+
Da as eC,
|
31612
31610
|
gp as eD,
|
31613
31611
|
rt as eE,
|
31614
31612
|
vH as eF,
|
@@ -31624,7 +31622,7 @@ export {
|
|
31624
31622
|
$s as eP,
|
31625
31623
|
_p as eQ,
|
31626
31624
|
Ur as eR,
|
31627
|
-
|
31625
|
+
Ea as eS,
|
31628
31626
|
Ri as eT,
|
31629
31627
|
yi as eU,
|
31630
31628
|
It as eV,
|
@@ -31667,7 +31665,7 @@ export {
|
|
31667
31665
|
YH as f3,
|
31668
31666
|
WH as f4,
|
31669
31667
|
KH as f5,
|
31670
|
-
|
31668
|
+
na as f6,
|
31671
31669
|
yA as f7,
|
31672
31670
|
e6 as f8,
|
31673
31671
|
n6 as f9,
|
@@ -31676,7 +31674,7 @@ export {
|
|
31676
31674
|
g4 as fC,
|
31677
31675
|
x4 as fD,
|
31678
31676
|
ea as fE,
|
31679
|
-
|
31677
|
+
hr as fF,
|
31680
31678
|
gS as fG,
|
31681
31679
|
Ci as fH,
|
31682
31680
|
Wm as fI,
|
@@ -31685,7 +31683,7 @@ export {
|
|
31685
31683
|
y1 as fL,
|
31686
31684
|
FI as fM,
|
31687
31685
|
M6 as fN,
|
31688
|
-
|
31686
|
+
Pa as fO,
|
31689
31687
|
k6 as fP,
|
31690
31688
|
U6 as fQ,
|
31691
31689
|
$6 as fR,
|
@@ -31738,7 +31736,7 @@ export {
|
|
31738
31736
|
$I as g9,
|
31739
31737
|
gy as gA,
|
31740
31738
|
xy as gB,
|
31741
|
-
|
31739
|
+
ba as gC,
|
31742
31740
|
by as gD,
|
31743
31741
|
Q6 as gE,
|
31744
31742
|
sj as gF,
|
@@ -31825,13 +31823,13 @@ export {
|
|
31825
31823
|
uO as hV,
|
31826
31824
|
hO as hW,
|
31827
31825
|
m_ as hX,
|
31828
|
-
|
31829
|
-
|
31826
|
+
aa as hY,
|
31827
|
+
dr as hZ,
|
31830
31828
|
p_ as h_,
|
31831
31829
|
Zr as ha,
|
31832
31830
|
Xn as hb,
|
31833
31831
|
zw as hc,
|
31834
|
-
|
31832
|
+
Sa as hd,
|
31835
31833
|
Qr as he,
|
31836
31834
|
Kw as hf,
|
31837
31835
|
qw as hg,
|
@@ -31872,7 +31870,7 @@ export {
|
|
31872
31870
|
sD as iD,
|
31873
31871
|
q_ as iE,
|
31874
31872
|
H5 as iF,
|
31875
|
-
|
31873
|
+
va as iG,
|
31876
31874
|
pn as iH,
|
31877
31875
|
g_ as iI,
|
31878
31876
|
kO as iJ,
|
@@ -31892,7 +31890,7 @@ export {
|
|
31892
31890
|
q5 as iX,
|
31893
31891
|
Yc as iY,
|
31894
31892
|
wo as iZ,
|
31895
|
-
|
31893
|
+
$a as i_,
|
31896
31894
|
n_ as ia,
|
31897
31895
|
sy as ib,
|
31898
31896
|
ny as ic,
|
@@ -31901,7 +31899,7 @@ export {
|
|
31901
31899
|
Fi as ig,
|
31902
31900
|
E_ as ih,
|
31903
31901
|
Rv as ii,
|
31904
|
-
|
31902
|
+
Ua as ij,
|
31905
31903
|
yv as ik,
|
31906
31904
|
W_ as il,
|
31907
31905
|
tt as im,
|
@@ -32005,7 +32003,7 @@ export {
|
|
32005
32003
|
T2 as kI,
|
32006
32004
|
S2 as kJ,
|
32007
32005
|
v2 as kK,
|
32008
|
-
|
32006
|
+
sr as kL,
|
32009
32007
|
$o as kM,
|
32010
32008
|
D4 as kN,
|
32011
32009
|
DS as kO,
|
@@ -32039,7 +32037,7 @@ export {
|
|
32039
32037
|
v_ as kp,
|
32040
32038
|
h2 as kq,
|
32041
32039
|
no as kr,
|
32042
|
-
|
32040
|
+
ca as ks,
|
32043
32041
|
jr as kt,
|
32044
32042
|
yu as ku,
|
32045
32043
|
g2 as kv,
|
@@ -32049,7 +32047,7 @@ export {
|
|
32049
32047
|
x2 as kz,
|
32050
32048
|
e3 as l,
|
32051
32049
|
Dp as l$,
|
32052
|
-
|
32050
|
+
nr as l0,
|
32053
32051
|
ae as l1,
|
32054
32052
|
k4 as l2,
|
32055
32053
|
kS as l3,
|
@@ -32111,7 +32109,7 @@ export {
|
|
32111
32109
|
W4 as lw,
|
32112
32110
|
Si as lx,
|
32113
32111
|
vi as ly,
|
32114
|
-
|
32112
|
+
ar as lz,
|
32115
32113
|
cl as m,
|
32116
32114
|
Be as m$,
|
32117
32115
|
Di as m0,
|
@@ -32122,13 +32120,13 @@ export {
|
|
32122
32120
|
Pp as m5,
|
32123
32121
|
E6 as m6,
|
32124
32122
|
Lc as m7,
|
32125
|
-
|
32123
|
+
Na as m8,
|
32126
32124
|
C6 as m9,
|
32127
32125
|
H6 as mA,
|
32128
32126
|
Wp as mB,
|
32129
32127
|
sR as mC,
|
32130
32128
|
Br as mD,
|
32131
|
-
|
32129
|
+
ka as mE,
|
32132
32130
|
np as mF,
|
32133
32131
|
X4 as mG,
|
32134
32132
|
J4 as mH,
|
@@ -32149,7 +32147,7 @@ export {
|
|
32149
32147
|
l0 as mW,
|
32150
32148
|
d0 as mX,
|
32151
32149
|
u0 as mY,
|
32152
|
-
|
32150
|
+
sa as mZ,
|
32153
32151
|
m0 as m_,
|
32154
32152
|
XA as ma,
|
32155
32153
|
JA as mb,
|
@@ -32192,7 +32190,7 @@ export {
|
|
32192
32190
|
Jt as nA,
|
32193
32191
|
bS as nB,
|
32194
32192
|
TS as nC,
|
32195
|
-
|
32193
|
+
gr as nD,
|
32196
32194
|
SS as nE,
|
32197
32195
|
zm as nF,
|
32198
32196
|
L4 as nG,
|
@@ -32209,8 +32207,8 @@ export {
|
|
32209
32207
|
jS as nR,
|
32210
32208
|
Z as nS,
|
32211
32209
|
Cn as nT,
|
32212
|
-
|
32213
|
-
|
32210
|
+
xr as nU,
|
32211
|
+
ta as nV,
|
32214
32212
|
mt as nW,
|
32215
32213
|
Hl as nX,
|
32216
32214
|
wi as nY,
|
@@ -32241,7 +32239,7 @@ export {
|
|
32241
32239
|
ot as nw,
|
32242
32240
|
Ec as nx,
|
32243
32241
|
NS as ny,
|
32244
|
-
|
32242
|
+
xa as nz,
|
32245
32243
|
Kt as o,
|
32246
32244
|
uA as o0,
|
32247
32245
|
Op as o1,
|
@@ -32262,9 +32260,9 @@ export {
|
|
32262
32260
|
BH as og,
|
32263
32261
|
LS as p,
|
32264
32262
|
QP as q,
|
32265
|
-
|
32263
|
+
Ia as r,
|
32266
32264
|
Gi as s,
|
32267
|
-
|
32265
|
+
Ta as t,
|
32268
32266
|
KP as u,
|
32269
32267
|
Gn as v,
|
32270
32268
|
h4 as w,
|