@wso2/am-core-ui 0.0.19 → 0.0.20

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.
Files changed (51) hide show
  1. package/dist/CatalogKindListing-DvUuZEpc.js +137 -0
  2. package/dist/{CodeBlock-mB_Loq7I.js → CodeBlock-B2Ecl916.js} +1 -1
  3. package/dist/EnvironmentCard-CIXhDhlZ.js +319 -0
  4. package/dist/{EnvironmentSelector-B7Bl93s2.js → EnvironmentSelector-D8S6nO9u.js} +1 -1
  5. package/dist/IsolationTierIndicator-cf90kgjL.js +81 -0
  6. package/dist/LabelChips-7rA7_yre.js +139 -0
  7. package/dist/PolicyListSection-D6aVSKwP.js +1143 -0
  8. package/dist/{ResourceListShell-Cx6mdeqv.js → ResourceListShell-DFisKftq.js} +1 -1
  9. package/dist/{SwaggerSpecViewer-BvkhoKsi.js → SwaggerSpecViewer-DzjR6U6W.js} +1 -1
  10. package/dist/{debounce-BV83M53b.js → debounce-D17ObVdG.js} +1 -1
  11. package/dist/{format-BEZZRyE2.js → format-wlHhWjGo.js} +1 -1
  12. package/dist/{formatDistanceToNow-TErllcH8.js → formatDistanceToNow-DyjnT7l9.js} +11 -11
  13. package/dist/{gatewayScripts-D8O45W8u.js → gatewayScripts-D4ZDEDPS.js} +1 -1
  14. package/dist/{index-sr-mWz4T.js → index-3K-zqdp-.js} +32 -32
  15. package/dist/{index-KRsV2L4V.js → index-6liAPSDn.js} +160 -160
  16. package/dist/{index-B52h3RHg.js → index-B3ASENUJ.js} +109 -109
  17. package/dist/index-B7Pf4oPq.js +3069 -0
  18. package/dist/index-BNO3FhZK.js +2304 -0
  19. package/dist/index-BUZSfCl5.js +335 -0
  20. package/dist/index-BXiG1r_o.js +1409 -0
  21. package/dist/{index-_0Pj_ZtW.js → index-BYy7Iaam.js} +40 -40
  22. package/dist/{index-BfjzUWDa.js → index-BbB_yx4V.js} +103 -103
  23. package/dist/index-BjWJ95lH.js +2728 -0
  24. package/dist/{index-B_Z0MwXk.js → index-ByEInFlf.js} +10916 -9520
  25. package/dist/index-C8WIhzyz.js +123 -0
  26. package/dist/index-CnzvaT6b.js +2368 -0
  27. package/dist/index-CrnCf-hJ.js +763 -0
  28. package/dist/{index-CgCWbWzN.js → index-Cvsho9xg.js} +381 -377
  29. package/dist/{index-UqDmyMSA.js → index-CxnAo1_c.js} +21 -21
  30. package/dist/{index-BnV-PkwM.js → index-Cz7-AZwE.js} +2 -2
  31. package/dist/{index-BP5drcF2.js → index-DBdRFjxm.js} +232 -233
  32. package/dist/{index-BZ4vxviI.js → index-DFsSvmMZ.js} +5 -5
  33. package/dist/index-DslzOSGN.js +2549 -0
  34. package/dist/{index-DD4qF7gq.js → index-DvpYvchM.js} +101 -100
  35. package/dist/index.d.ts +784 -163
  36. package/dist/index.js +532 -454
  37. package/dist/js-yaml-CvhD-clg.js +1335 -0
  38. package/dist/{llmProviderPayload-CzihkdNa.js → llmProviderPayload-BPzWDy7n.js} +2 -2
  39. package/package.json +1 -1
  40. package/dist/CatalogKindListing-DtFI2YMG.js +0 -118
  41. package/dist/EnvironmentCard-09h1XRxx.js +0 -310
  42. package/dist/PolicyListSection-o4k9e8XO.js +0 -2475
  43. package/dist/index-CGDYgUCH.js +0 -711
  44. package/dist/index-COt7nJIf.js +0 -2286
  45. package/dist/index-CWZjOy1h.js +0 -2247
  46. package/dist/index-CezvogTQ.js +0 -116
  47. package/dist/index-CjCkcuuI.js +0 -322
  48. package/dist/index-CjXvuf9m.js +0 -1354
  49. package/dist/index-DeQ-9KTC.js +0 -737
  50. package/dist/index-Df6OBy4E.js +0 -3041
  51. package/dist/index-PUuASE1F.js +0 -2507
@@ -3,7 +3,7 @@ import { useRef as Te, useState as ee, useMemo as V } from "react";
3
3
  import { Typography as pe, Stack as d, Form as J, Chip as Ee, IconButton as te, Collapse as be, Skeleton as le, Box as O, ToggleButtonGroup as Ae, ToggleButton as ve, Tooltip as ce, Button as de, TextField as Ce, Alert as Se, Dialog as ze, DialogTitle as Oe, DialogContent as Re, DialogContentText as We, DialogActions as Ie, ListingTable as $, SearchBar as Le } from "@wso2/oxygen-ui";
4
4
  import { ChevronUp as De, ChevronDown as Me, HelpCircle as we, Upload as Pe, ChevronsRight as Be, ChevronRight as $e, ChevronLeft as _e, ChevronsLeft as He, FileCode as je, Inbox as Ue, Plus as Fe, AlertTriangle as Ne, Search as Ge } from "@wso2/oxygen-ui-icons-react";
5
5
  import { c as me } from "react/compiler-runtime";
6
- import { S as qe } from "./SwaggerSpecViewer-BvkhoKsi.js";
6
+ import { S as qe } from "./SwaggerSpecViewer-DzjR6U6W.js";
7
7
  function Ye(h) {
8
8
  const e = me(63), {
9
9
  resource: n,
@@ -1,7 +1,7 @@
1
1
  import { jsx as I } from "react/jsx-runtime";
2
2
  import { c as $ } from "react/compiler-runtime";
3
3
  import { Suspense as F, lazy as G } from "react";
4
- const J = G(() => import("./index-BnV-PkwM.js")), K = J;
4
+ const J = G(() => import("./index-Cz7-AZwE.js")), K = J;
5
5
  function ae(U) {
6
6
  const e = $(39), {
7
7
  spec: _,
@@ -1,4 +1,4 @@
1
- import { al as h, am as be } from "./index-B_Z0MwXk.js";
1
+ import { aq as h, ar as be } from "./index-ByEInFlf.js";
2
2
  var I, U;
3
3
  function de() {
4
4
  if (U) return I;
@@ -1,4 +1,4 @@
1
- import { f as o } from "./formatDistanceToNow-TErllcH8.js";
1
+ import { f as o } from "./formatDistanceToNow-DyjnT7l9.js";
2
2
  function s(t) {
3
3
  if (t !== void 0)
4
4
  return t && (t.toLowerCase().startsWith("v") ? t : `v${t}`);
@@ -1,9 +1,9 @@
1
- import { an as u, ao as y, co as S, cp as O, cq as X, cr as I, cs as D, ct as _ } from "./index-B_Z0MwXk.js";
1
+ import { as as u, at as y, cQ as S, cR as O, cS as X, cT as I, cU as D, cV as T } from "./index-ByEInFlf.js";
2
2
  function M(n, s) {
3
3
  const e = +u(n) - +u(s);
4
4
  return e < 0 ? -1 : e > 0 ? 1 : e;
5
5
  }
6
- function T(n) {
6
+ function _(n) {
7
7
  return y(n, Date.now());
8
8
  }
9
9
  function Y(n, s, e) {
@@ -35,7 +35,7 @@ function H(n, s) {
35
35
  const e = u(n, s?.in);
36
36
  return +F(e, s) == +N(e, s);
37
37
  }
38
- function p(n, s, e) {
38
+ function v(n, s, e) {
39
39
  const [o, t, c] = S(
40
40
  e?.in,
41
41
  n,
@@ -51,12 +51,12 @@ function p(n, s, e) {
51
51
  const d = i * (r - +l);
52
52
  return d === 0 ? 0 : d;
53
53
  }
54
- function v(n, s, e) {
54
+ function z(n, s, e) {
55
55
  const o = b(n, s) / 1e3;
56
56
  return w(e?.roundingMethod)(o);
57
57
  }
58
- function z(n, s, e) {
59
- const o = _(), t = e?.locale ?? o.locale ?? O, c = 2520, i = M(n, s);
58
+ function A(n, s, e) {
59
+ const o = T(), t = e?.locale ?? o.locale ?? O, c = 2520, i = M(n, s);
60
60
  if (isNaN(i)) throw new RangeError("Invalid time value");
61
61
  const r = Object.assign({}, e, {
62
62
  addSuffix: e?.addSuffix,
@@ -64,7 +64,7 @@ function z(n, s, e) {
64
64
  }), [l, d] = S(
65
65
  e?.in,
66
66
  ...i > 0 ? [s, n] : [n, s]
67
- ), m = v(d, l), x = (X(d) - X(l)) / 1e3, a = Math.round((m - x) / 60);
67
+ ), m = z(d, l), x = (X(d) - X(l)) / 1e3, a = Math.round((m - x) / 60);
68
68
  let h;
69
69
  if (a < 2)
70
70
  return e?.includeSeconds ? m < 5 ? t.formatDistance("lessThanXSeconds", 5, r) : m < 10 ? t.formatDistance("lessThanXSeconds", 10, r) : m < 20 ? t.formatDistance("lessThanXSeconds", 20, r) : m < 40 ? t.formatDistance("halfAMinute", 0, r) : m < 60 ? t.formatDistance("lessThanXMinutes", 1, r) : t.formatDistance("xMinutes", 1, r) : a === 0 ? t.formatDistance("lessThanXMinutes", 1, r) : t.formatDistance("xMinutes", a, r);
@@ -84,7 +84,7 @@ function z(n, s, e) {
84
84
  } else if (a < D * 2)
85
85
  return h = Math.round(a / D), t.formatDistance("aboutXMonths", h, r);
86
86
  }
87
- if (h = p(d, l), h < 12) {
87
+ if (h = v(d, l), h < 12) {
88
88
  const f = Math.round(a / D);
89
89
  return t.formatDistance("xMonths", f, r);
90
90
  } else {
@@ -92,9 +92,9 @@ function z(n, s, e) {
92
92
  return f < 3 ? t.formatDistance("aboutXYears", g, r) : f < 9 ? t.formatDistance("overXYears", g, r) : t.formatDistance("almostXYears", g + 1, r);
93
93
  }
94
94
  }
95
- function L(n, s) {
96
- return z(n, T(n), s);
95
+ function R(n, s) {
96
+ return A(n, _(n), s);
97
97
  }
98
98
  export {
99
- L as f
99
+ R as f
100
100
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { c as m } from "react/compiler-runtime";
3
3
  import { Chip as f } from "@wso2/oxygen-ui";
4
- import { q as l } from "./index-B_Z0MwXk.js";
4
+ import { x as l } from "./index-ByEInFlf.js";
5
5
  function h(t) {
6
6
  const e = m(5), {
7
7
  type: r
@@ -1,10 +1,10 @@
1
1
  import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
- import { useCallback as R, useMemo as A, useEffect as M, useState as B } from "react";
3
- import { Alert as O, Box as L, Collapse as D, Button as T, Form as b, TextField as F, Stack as z, CircularProgress as G, Typography as C, Select as H, MenuItem as k } from "@wso2/oxygen-ui";
4
- import { useParams as $, useNavigate as J, generatePath as V } from "react-router-dom";
5
- import { ck as K, y as Q, z as U, aV as X, r as Y, A as Z, cu as _, g as I, P as ee } from "./index-B_Z0MwXk.js";
2
+ import { useCallback as V, useMemo as W, useEffect as z, useState as B } from "react";
3
+ import { Alert as $, Box as L, Collapse as H, Button as F, Form as b, TextField as T, Stack as M, CircularProgress as G, Typography as C, Select as D, MenuItem as k } from "@wso2/oxygen-ui";
4
+ import { useParams as O, useNavigate as J, generatePath as R } from "react-router-dom";
5
+ import { cM as K, F as Q, G as U, a$ as X, y as Y, H as Z, cW as _, g as I, P as ee } from "./index-ByEInFlf.js";
6
6
  import { o as te, s as w } from "./schemas-DFScWdSL.js";
7
- import { c as W } from "react/compiler-runtime";
7
+ import { c as A } from "react/compiler-runtime";
8
8
  import "@tanstack/react-query";
9
9
  import { Link as ne, PackagePlus as ie, FolderPlus as ae } from "@wso2/oxygen-ui-icons-react";
10
10
  const re = te({
@@ -13,7 +13,7 @@ const re = te({
13
13
  description: w().trim().optional(),
14
14
  deploymentPipeline: w().trim().min(1, "Deployment pipeline is required")
15
15
  }), oe = (a) => {
16
- const e = W(22), {
16
+ const e = A(22), {
17
17
  lastSubmittedValidationErrors: t,
18
18
  isPending: d,
19
19
  onCancel: c,
@@ -25,16 +25,16 @@ const re = te({
25
25
  e[0] !== t ? (y = Object.values(t), e[0] = t, e[1] = y) : y = e[1];
26
26
  const u = y, v = u.length > 0;
27
27
  let g;
28
- e[2] !== u ? (g = /* @__PURE__ */ i(O, { severity: "error", children: u.map(le) }), e[2] = u, e[3] = g) : g = e[3];
28
+ e[2] !== u ? (g = /* @__PURE__ */ i($, { severity: "error", children: u.map(le) }), e[2] = u, e[3] = g) : g = e[3];
29
29
  let h;
30
- e[4] !== v || e[5] !== g ? (h = /* @__PURE__ */ i(D, { in: v, timeout: "auto", unmountOnExit: !0, children: g }), e[4] = v, e[5] = g, e[6] = h) : h = e[6];
30
+ e[4] !== v || e[5] !== g ? (h = /* @__PURE__ */ i(H, { in: v, timeout: "auto", unmountOnExit: !0, children: g }), e[4] = v, e[5] = g, e[6] = h) : h = e[6];
31
31
  let n;
32
- e[7] !== c ? (n = /* @__PURE__ */ i(T, { variant: "outlined", color: "primary", size: "medium", onClick: c, children: "Cancel" }), e[7] = c, e[8] = n) : n = e[8];
32
+ e[7] !== c ? (n = /* @__PURE__ */ i(F, { variant: "outlined", color: "primary", size: "medium", onClick: c, children: "Cancel" }), e[7] = c, e[8] = n) : n = e[8];
33
33
  let r;
34
34
  e[9] !== P ? (r = P ? /* @__PURE__ */ i(ne, { size: 16 }) : /* @__PURE__ */ i(ie, { size: 16 }), e[9] = P, e[10] = r) : r = e[10];
35
35
  const m = d || E, f = P ? "Register" : "Create";
36
36
  let j;
37
- e[11] !== s || e[12] !== r || e[13] !== m || e[14] !== f ? (j = /* @__PURE__ */ i(T, { variant: "contained", color: "primary", size: "medium", startIcon: r, onClick: s, disabled: m, children: f }), e[11] = s, e[12] = r, e[13] = m, e[14] = f, e[15] = j) : j = e[15];
37
+ e[11] !== s || e[12] !== r || e[13] !== m || e[14] !== f ? (j = /* @__PURE__ */ i(F, { variant: "contained", color: "primary", size: "medium", startIcon: r, onClick: s, disabled: m, children: f }), e[11] = s, e[12] = r, e[13] = m, e[14] = f, e[15] = j) : j = e[15];
38
38
  let x;
39
39
  e[16] !== j || e[17] !== n ? (x = /* @__PURE__ */ N(L, { display: "flex", flexDirection: "row", gap: 1, alignItems: "center", children: [
40
40
  n,
@@ -53,7 +53,7 @@ function q(a, e) {
53
53
  return a.promotionPaths.length === 0 ? null : [...a.promotionPaths.map((d) => d.sourceEnvironmentRef), a.promotionPaths[a.promotionPaths.length - 1]?.targetEnvironmentRefs[0]?.name].filter(Boolean).map((d) => e.get(d) ?? d).join(" → ");
54
54
  }
55
55
  function se(a) {
56
- const e = W(10), {
56
+ const e = A(10), {
57
57
  pipeline: t,
58
58
  envDisplayNameMap: d
59
59
  } = a;
@@ -65,13 +65,13 @@ function se(a) {
65
65
  let o;
66
66
  e[5] !== s ? (o = s && /* @__PURE__ */ i(C, { variant: "caption", color: "text.disabled", children: s }), e[5] = s, e[6] = o) : o = e[6];
67
67
  let p;
68
- return e[7] !== l || e[8] !== o ? (p = /* @__PURE__ */ N(z, { direction: "row", alignItems: "center", spacing: 1, children: [
68
+ return e[7] !== l || e[8] !== o ? (p = /* @__PURE__ */ N(M, { direction: "row", alignItems: "center", spacing: 1, children: [
69
69
  l,
70
70
  o
71
71
  ] }), e[7] = l, e[8] = o, e[9] = p) : p = e[9], p;
72
72
  }
73
73
  function ce(a) {
74
- const e = W(10), {
74
+ const e = A(10), {
75
75
  pipeline: t,
76
76
  envDisplayNameMap: d
77
77
  } = a;
@@ -83,7 +83,7 @@ function ce(a) {
83
83
  let o;
84
84
  e[5] !== s ? (o = s && /* @__PURE__ */ i(C, { variant: "caption", color: "text.disbaled", children: s }), e[5] = s, e[6] = o) : o = e[6];
85
85
  let p;
86
- return e[7] !== l || e[8] !== o ? (p = /* @__PURE__ */ N(z, { children: [
86
+ return e[7] !== l || e[8] !== o ? (p = /* @__PURE__ */ N(M, { children: [
87
87
  l,
88
88
  o
89
89
  ] }), e[7] = l, e[8] = o, e[9] = p) : p = e[9], p;
@@ -98,7 +98,7 @@ const de = ({
98
98
  }) => {
99
99
  const {
100
100
  orgId: l
101
- } = $(), o = R((n, r) => {
101
+ } = O(), o = V((n, r) => {
102
102
  const m = {
103
103
  ...a,
104
104
  [n]: r
@@ -120,11 +120,11 @@ const de = ({
120
120
  data: v
121
121
  } = U({
122
122
  orgName: l
123
- }), g = A(() => {
123
+ }), g = W(() => {
124
124
  const n = /* @__PURE__ */ new Map();
125
125
  return (v ?? []).forEach((r) => n.set(r.name, r.displayName ?? r.name)), n;
126
126
  }, [v]);
127
- M(() => {
127
+ z(() => {
128
128
  if (!a.deploymentPipeline && u.length > 0) {
129
129
  const n = u[0].name;
130
130
  e((r) => {
@@ -136,7 +136,7 @@ const de = ({
136
136
  });
137
137
  }
138
138
  }, [u, a.deploymentPipeline, e, s]);
139
- const h = A(
139
+ const h = W(
140
140
  () => X.debounce((n) => {
141
141
  if (n.length < 3) {
142
142
  o("name", "");
@@ -163,9 +163,9 @@ const de = ({
163
163
  // 500ms delay
164
164
  [p, e, s]
165
165
  );
166
- return M(() => () => {
166
+ return z(() => () => {
167
167
  h.cancel();
168
- }, [h]), M(() => {
168
+ }, [h]), z(() => {
169
169
  a.displayName && a.displayName.length >= 3 ? h(a.displayName) : (h.cancel(), e((n) => ({
170
170
  ...n,
171
171
  name: ""
@@ -173,16 +173,16 @@ const de = ({
173
173
  }, [a.displayName, e, h]), /* @__PURE__ */ i(b.Stack, { spacing: 3, children: /* @__PURE__ */ N(b.Section, { children: [
174
174
  /* @__PURE__ */ i(b.Subheader, { children: "Project Details" }),
175
175
  /* @__PURE__ */ N(b.Stack, { spacing: 2, children: [
176
- /* @__PURE__ */ i(b.ElementWrapper, { label: "Name", name: "displayName", children: /* @__PURE__ */ i(F, { id: "displayName", value: a.displayName, onChange: (n) => o("displayName", n.target.value), placeholder: "e.g., Customer Support Platform", error: !!t.displayName, helperText: E ? /* @__PURE__ */ N(z, { direction: "row", alignItems: "center", gap: 1, children: [
176
+ /* @__PURE__ */ i(b.ElementWrapper, { label: "Name", name: "displayName", children: /* @__PURE__ */ i(T, { id: "displayName", value: a.displayName, onChange: (n) => o("displayName", n.target.value), placeholder: "e.g., Customer Support Platform", error: !!t.displayName, helperText: E ? /* @__PURE__ */ N(M, { direction: "row", alignItems: "center", gap: 1, children: [
177
177
  /* @__PURE__ */ i(G, { size: 12 }),
178
178
  /* @__PURE__ */ i(C, { variant: "caption", children: "Validating name..." })
179
179
  ] }) : t.displayName, fullWidth: !0 }) }),
180
- /* @__PURE__ */ i(b.ElementWrapper, { label: "Description (optional)", name: "description", children: /* @__PURE__ */ i(F, { id: "description", value: a.description, onChange: (n) => o("description", n.target.value), placeholder: "Short description of this project", multiline: !0, minRows: 2, maxRows: 6, error: !!t.description, helperText: t.description, fullWidth: !0 }) }),
181
- /* @__PURE__ */ i(b.ElementWrapper, { label: "Deployment Pipeline", name: "deploymentPipeline", children: /* @__PURE__ */ N(H, { id: "deploymentPipeline", value: a.deploymentPipeline, onChange: (n) => o("deploymentPipeline", n.target.value), error: !!t.deploymentPipeline, disabled: y, displayEmpty: !0, renderValue: (n) => {
180
+ /* @__PURE__ */ i(b.ElementWrapper, { label: "Description (optional)", name: "description", children: /* @__PURE__ */ i(T, { id: "description", value: a.description, onChange: (n) => o("description", n.target.value), placeholder: "Short description of this project", multiline: !0, minRows: 2, maxRows: 6, error: !!t.description, helperText: t.description, fullWidth: !0 }) }),
181
+ /* @__PURE__ */ i(b.ElementWrapper, { label: "Deployment Pipeline", name: "deploymentPipeline", children: /* @__PURE__ */ N(D, { id: "deploymentPipeline", value: a.deploymentPipeline, onChange: (n) => o("deploymentPipeline", n.target.value), error: !!t.deploymentPipeline, disabled: y, displayEmpty: !0, renderValue: (n) => {
182
182
  const r = u.find((m) => m.name === n);
183
183
  return r ? /* @__PURE__ */ i(se, { pipeline: r, envDisplayNameMap: g }) : n;
184
184
  }, fullWidth: !0, children: [
185
- y && /* @__PURE__ */ i(k, { value: "", disabled: !0, children: /* @__PURE__ */ N(z, { direction: "row", alignItems: "center", gap: 1, children: [
185
+ y && /* @__PURE__ */ i(k, { value: "", disabled: !0, children: /* @__PURE__ */ N(M, { direction: "row", alignItems: "center", gap: 1, children: [
186
186
  /* @__PURE__ */ i(G, { size: 12 }),
187
187
  /* @__PURE__ */ i(C, { variant: "caption", children: "Loading pipelines..." })
188
188
  ] }) }),
@@ -194,7 +194,7 @@ const de = ({
194
194
  }, pe = () => {
195
195
  const a = J(), {
196
196
  orgId: e
197
- } = $(), [t, d] = B({
197
+ } = O(), [t, d] = B({
198
198
  name: "",
199
199
  displayName: "",
200
200
  description: "",
@@ -208,17 +208,17 @@ const de = ({
208
208
  } = Y(re), {
209
209
  checkDirty: E,
210
210
  resetDirty: P
211
- } = Z(t), y = A(() => ({
211
+ } = Z(t), y = W(() => ({
212
212
  orgName: e ?? "default"
213
213
  }), [e]), {
214
214
  mutate: u,
215
215
  isPending: v,
216
216
  error: g
217
- } = _(y), h = R(() => {
218
- a(V(I.children.org.path, {
217
+ } = _(y), h = V(() => {
218
+ a(R(I.children.org.path, {
219
219
  orgId: e ?? ""
220
220
  }));
221
- }, [a, e]), [n, r] = B({}), m = R(() => {
221
+ }, [a, e]), [n, r] = B({}), m = V(() => {
222
222
  if (l(t))
223
223
  r({});
224
224
  else {
@@ -232,7 +232,7 @@ const de = ({
232
232
  deploymentPipeline: t.deploymentPipeline
233
233
  }, {
234
234
  onSuccess: () => {
235
- P(), o(), a(V(I.children.org.children.projects.path, {
235
+ P(), o(), a(R(I.children.org.children.projects.path, {
236
236
  orgId: y.orgName ?? "",
237
237
  projectId: t.name
238
238
  }));
@@ -242,11 +242,11 @@ const de = ({
242
242
  }
243
243
  });
244
244
  }, [t, l, u, a, y.orgName, P, o, c]);
245
- return /* @__PURE__ */ i(ee, { title: "Create a New Project", description: "Create a new project to organize and manage your agents.", disableIcon: !0, backHref: V(I.children.org.path, {
245
+ return /* @__PURE__ */ i(ee, { title: "Create a New Project", description: "Create a new project to organize and manage your agents.", disableIcon: !0, backHref: R(I.children.org.path, {
246
246
  orgId: e ?? ""
247
247
  }), backLabel: "Back to Organization", children: /* @__PURE__ */ N(L, { display: "flex", flexDirection: "column", gap: 2, children: [
248
248
  /* @__PURE__ */ i(de, { formData: t, setFormData: d, errors: c, validateField: s, setFieldError: p, checkDirty: E }),
249
- !!g && /* @__PURE__ */ i(O, { severity: "error", sx: {
249
+ !!g && /* @__PURE__ */ i($, { severity: "error", sx: {
250
250
  mt: 2
251
251
  }, children: g instanceof Error ? g.message : "Failed to create project" }),
252
252
  /* @__PURE__ */ i(oe, { lastSubmittedValidationErrors: n, isPending: v, onCancel: h, onSubmit: m, isNameEmpty: !t.name.trim(), mode: "deploy" })