@leverege/imaginarium-ui 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { P as St, N as Tt } from "./PluginTypes-DsLT43Y8.js";
1
+ import { P as Pt, N as Tt } from "./PluginTypes-DsLT43Y8.js";
2
2
  import { jsx as e, jsxs as n, Fragment as De } from "react/jsx-runtime";
3
3
  import { useState as A, useMemo as J, useEffect as je, Fragment as ct } from "react";
4
- import { u as le, a as ne, B as E, C as we, f as Pe, c as ce } from "./Card-D2LdIJwJ.js";
4
+ import { u as le, a as ne, B as E, C as we, f as Se, c as ce } from "./Card-D2LdIJwJ.js";
5
5
  import { u as fe } from "./SystemConfigsContext-D0hXRSH-.js";
6
6
  import { useQueryClient as oe, useMutation as Q, useQuery as ae } from "@tanstack/react-query";
7
- import { X as xe, Loader2 as mt, Save as ut, Plus as Me, Ban as Fe, RotateCcw as Kt, AlertTriangle as ge, Check as ht, ChevronDown as Se, ChevronRight as Te, Send as $t, Circle as Et, ArrowLeft as We, RefreshCw as pt, BarChart2 as Ot, Pencil as It, Trash2 as gt, Bot as At } from "lucide-react";
7
+ import { X as xe, Loader2 as mt, Save as ut, Plus as Me, Ban as Fe, RotateCcw as Kt, AlertTriangle as ge, Check as ht, ChevronDown as Pe, ChevronRight as Te, Send as $t, Circle as Et, ArrowLeft as We, RefreshCw as pt, BarChart2 as Ot, Pencil as It, Trash2 as gt, Bot as At } from "lucide-react";
8
8
  import { Config as ze } from "@leverege/plugin";
9
9
  import { D as $e, a as Ee, b as Oe, c as Ie, d as Ae, L as ie, I as he, e as Re } from "./Label-v0wUXs4O.js";
10
10
  import { b as Rt, T as Dt, c as Mt, a as Ft } from "./Tooltip-CIwKmgzA.js";
@@ -138,14 +138,14 @@ function jt({ onOpen: t }) {
138
138
  }
139
139
  }), v = J(() => {
140
140
  const o = /* @__PURE__ */ new Map();
141
- return a.forEach((h) => o.set(h.id, h.displayName)), o;
141
+ return a.forEach((h) => o.set(String(h.id), h.displayName)), o;
142
142
  }, [a]), N = (o) => v.get(o) ?? o;
143
143
  return /* @__PURE__ */ n("div", { className: "space-y-4", children: [
144
144
  /* @__PURE__ */ e("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ n(E, { onClick: () => m(!0), children: [
145
145
  /* @__PURE__ */ e(Me, { className: "w-4 h-4 mr-2" }),
146
146
  "New Release"
147
147
  ] }) }),
148
- g ? /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground", children: "Loading…" }) : c && c.length > 0 ? /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Pe, { className: "p-0", children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: [
148
+ g ? /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground", children: "Loading…" }) : c && c.length > 0 ? /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Se, { className: "p-0", children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: [
149
149
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { className: "border-b text-left text-muted-foreground", children: [
150
150
  /* @__PURE__ */ e("th", { className: "p-3 font-medium", children: "Name" }),
151
151
  /* @__PURE__ */ e("th", { className: "p-3 font-medium", children: "Origin" }),
@@ -192,7 +192,7 @@ function jt({ onOpen: t }) {
192
192
  },
193
193
  o.id
194
194
  )) })
195
- ] }) }) }) : /* @__PURE__ */ e(we, { children: /* @__PURE__ */ n(Pe, { className: "py-12 text-center", children: [
195
+ ] }) }) }) : /* @__PURE__ */ e(we, { children: /* @__PURE__ */ n(Se, { className: "py-12 text-center", children: [
196
196
  /* @__PURE__ */ e("p", { className: "text-muted-foreground mb-4", children: "No releases yet" }),
197
197
  /* @__PURE__ */ n(E, { onClick: () => m(!0), children: [
198
198
  /* @__PURE__ */ e(Me, { className: "w-4 h-4 mr-2" }),
@@ -410,7 +410,7 @@ function Ce({
410
410
  "aria-expanded": l,
411
411
  children: [
412
412
  /* @__PURE__ */ n("span", { className: "flex items-center gap-1 text-xs font-medium text-muted-foreground", children: [
413
- l ? /* @__PURE__ */ e(Se, { size: 12 }) : /* @__PURE__ */ e(Te, { size: 12 }),
413
+ l ? /* @__PURE__ */ e(Pe, { size: 12 }) : /* @__PURE__ */ e(Te, { size: 12 }),
414
414
  t,
415
415
  " (",
416
416
  r.length,
@@ -1030,7 +1030,7 @@ function dn({ releaseId: t, onBack: s }) {
1030
1030
  [K]
1031
1031
  ), Y = (K ?? []).length > 0, L = J(() => (f == null ? void 0 : f.targetConfigIds) ?? [], [f]), V = J(() => {
1032
1032
  const i = /* @__PURE__ */ new Map();
1033
- return m.forEach((b) => i.set(b.id, b.displayName)), i;
1033
+ return m.forEach((b) => i.set(String(b.id), b.displayName)), i;
1034
1034
  }, [m]), q = (i) => V.get(i) ?? i, I = J(() => en(w ?? []), [w]), G = J(() => I.map((i) => i.item), [I]), Z = J(() => rn(w ?? []), [w]), C = J(
1035
1035
  () => new Map((w ?? []).map((i) => [i.itemKey, i])),
1036
1036
  [w]
@@ -1038,16 +1038,16 @@ function dn({ releaseId: t, onBack: s }) {
1038
1038
  var u;
1039
1039
  let b;
1040
1040
  if (i.parentKey) {
1041
- const $ = (u = C.get(i.parentKey)) == null ? void 0 : u.itemName, P = i.parentKey.indexOf(":");
1042
- b = $ ?? (P >= 0 ? i.parentKey.slice(P + 1) : void 0);
1041
+ const $ = (u = C.get(i.parentKey)) == null ? void 0 : u.itemName, S = i.parentKey.indexOf(":");
1042
+ b = $ ?? (S >= 0 ? i.parentKey.slice(S + 1) : void 0);
1043
1043
  }
1044
1044
  return `${b ? b + " " : ""}${i.itemType} "${i.itemName}"`;
1045
1045
  }, T = J(() => {
1046
1046
  var b, u;
1047
1047
  const i = /* @__PURE__ */ new Map();
1048
1048
  for (const $ of w ?? []) {
1049
- const P = (u = (b = $.diff) == null ? void 0 : b.origin) == null ? void 0 : u.id;
1050
- typeof P == "string" && P && i.set(P, $.itemName);
1049
+ const S = (u = (b = $.diff) == null ? void 0 : b.origin) == null ? void 0 : u.id;
1050
+ typeof S == "string" && S && i.set(S, $.itemName);
1051
1051
  }
1052
1052
  return i;
1053
1053
  }, [w]), de = J(
@@ -1105,7 +1105,7 @@ function dn({ releaseId: t, onBack: s }) {
1105
1105
  const $ = l.getQueryData(D);
1106
1106
  return l.setQueryData(
1107
1107
  D,
1108
- (P) => (P ?? []).map((se) => se.id === b ? { ...se, [i]: u } : se)
1108
+ (S) => (S ?? []).map((se) => se.id === b ? { ...se, [i]: u } : se)
1109
1109
  ), { prev: $ };
1110
1110
  },
1111
1111
  onError: (b, u, $) => {
@@ -1217,7 +1217,7 @@ function dn({ releaseId: t, onBack: s }) {
1217
1217
  )) })
1218
1218
  ] }),
1219
1219
  /* @__PURE__ */ n("div", { className: "flex gap-4", children: [
1220
- /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: x ? /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground py-8", children: "Loading items…" }) : _.length === 0 ? /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Pe, { className: "py-12 text-center text-muted-foreground", children: G.length === 0 ? "No items in this release yet." : "No items match the current filters." }) }) : /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Pe, { className: "p-0", children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: [
1220
+ /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: x ? /* @__PURE__ */ e("div", { className: "text-center text-muted-foreground py-8", children: "Loading items…" }) : _.length === 0 ? /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Se, { className: "py-12 text-center text-muted-foreground", children: G.length === 0 ? "No items in this release yet." : "No items match the current filters." }) }) : /* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(Se, { className: "p-0", children: /* @__PURE__ */ n("table", { className: "w-full text-sm", children: [
1221
1221
  /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ n("tr", { className: "border-b text-left text-muted-foreground", children: [
1222
1222
  /* @__PURE__ */ e("th", { className: "p-3 font-medium w-10", children: "Inc." }),
1223
1223
  /* @__PURE__ */ e("th", { className: "p-3 font-medium", children: "Type" }),
@@ -1227,7 +1227,7 @@ function dn({ releaseId: t, onBack: s }) {
1227
1227
  ] }) }),
1228
1228
  /* @__PURE__ */ e("tbody", { children: _.map(({ node: i, renderChildren: b }) => {
1229
1229
  var _e;
1230
- const u = i.item, $ = b.length > 0, P = j.has(u.itemKey) || v !== "all", se = j.has(u.itemKey), re = sn(i), Ve = ((_e = u.diff) == null ? void 0 : _e.versions) ?? [], ue = u.itemType === "rule" && Ve.length > 0, He = Ve.some((S) => S.isPublished), kt = ue ? Ut(u) : [], Ue = ue && !He, Ye = ue && He && kt.length === 0, ve = Ue || Ye, wt = ue && !ve && u.selectedVersion == null;
1230
+ const u = i.item, $ = b.length > 0, S = j.has(u.itemKey) || v !== "all", se = j.has(u.itemKey), re = sn(i), Ve = ((_e = u.diff) == null ? void 0 : _e.versions) ?? [], ue = u.itemType === "rule" && Ve.length > 0, He = Ve.some((P) => P.isPublished), kt = ue ? Ut(u) : [], Ue = ue && !He, Ye = ue && He && kt.length === 0, ve = Ue || Ye, wt = ue && !ve && u.selectedVersion == null;
1231
1231
  return /* @__PURE__ */ n(ct, { children: [
1232
1232
  i.synthetic ? /* @__PURE__ */ n(
1233
1233
  "tr",
@@ -1243,11 +1243,11 @@ function dn({ releaseId: t, onBack: s }) {
1243
1243
  {
1244
1244
  type: "button",
1245
1245
  className: "text-muted-foreground hover:text-foreground",
1246
- onClick: (S) => {
1247
- S.stopPropagation(), U(u.itemKey);
1246
+ onClick: (P) => {
1247
+ P.stopPropagation(), U(u.itemKey);
1248
1248
  },
1249
1249
  "aria-label": se ? "Collapse" : "Expand",
1250
- children: se ? /* @__PURE__ */ e(Se, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1250
+ children: se ? /* @__PURE__ */ e(Pe, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1251
1251
  }
1252
1252
  ),
1253
1253
  /* @__PURE__ */ e("span", { className: "font-medium", children: u.itemName }),
@@ -1268,12 +1268,12 @@ function dn({ releaseId: t, onBack: s }) {
1268
1268
  className: `border-b last:border-0 cursor-pointer hover:bg-muted/50 ${(o == null ? void 0 : o.id) === u.id ? "bg-muted/50" : ""} ${ve ? "opacity-60" : ""}`,
1269
1269
  onClick: () => h(u),
1270
1270
  children: [
1271
- /* @__PURE__ */ e("td", { className: "p-3", onClick: (S) => S.stopPropagation(), children: /* @__PURE__ */ e(
1271
+ /* @__PURE__ */ e("td", { className: "p-3", onClick: (P) => P.stopPropagation(), children: /* @__PURE__ */ e(
1272
1272
  Xe,
1273
1273
  {
1274
1274
  checked: u.included,
1275
1275
  disabled: u.ignored || be.isPending || te || ve,
1276
- onChange: (S) => be.mutate({ itemId: u.id, included: S })
1276
+ onChange: (P) => be.mutate({ itemId: u.id, included: P })
1277
1277
  }
1278
1278
  ) }),
1279
1279
  /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ e(pe, { type: u.itemType }) }),
@@ -1283,19 +1283,19 @@ function dn({ releaseId: t, onBack: s }) {
1283
1283
  {
1284
1284
  type: "button",
1285
1285
  className: "text-muted-foreground hover:text-foreground",
1286
- onClick: (S) => {
1287
- S.stopPropagation(), U(u.itemKey);
1286
+ onClick: (P) => {
1287
+ P.stopPropagation(), U(u.itemKey);
1288
1288
  },
1289
1289
  "aria-label": se ? "Collapse" : "Expand",
1290
- children: se ? /* @__PURE__ */ e(Se, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1290
+ children: se ? /* @__PURE__ */ e(Pe, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1291
1291
  }
1292
1292
  ) : null,
1293
1293
  /* @__PURE__ */ e("span", { className: "font-medium", children: u.itemName }),
1294
1294
  (() => {
1295
1295
  if (!u.included || u.ignored)
1296
1296
  return null;
1297
- const S = ke(u, Z, C);
1298
- return S.length === 0 ? null : /* @__PURE__ */ e("span", { title: `Depends on excluded: ${S.map((W) => W.itemName).join(", ")}`, children: /* @__PURE__ */ e(ge, { size: 14, className: "shrink-0 text-amber-600" }) });
1297
+ const P = ke(u, Z, C);
1298
+ return P.length === 0 ? null : /* @__PURE__ */ e("span", { title: `Depends on excluded: ${P.map((W) => W.itemName).join(", ")}`, children: /* @__PURE__ */ e(ge, { size: 14, className: "shrink-0 text-amber-600" }) });
1299
1299
  })(),
1300
1300
  /* @__PURE__ */ e(st, { item: u }),
1301
1301
  $ ? /* @__PURE__ */ n("span", { className: `inline-flex items-center rounded px-1.5 py-0.5 text-xs ${re.included < re.total ? "bg-amber-100 text-amber-700 font-medium dark:bg-amber-500/15 dark:text-amber-300" : "bg-muted text-muted-foreground"}`, children: [
@@ -1306,12 +1306,12 @@ function dn({ releaseId: t, onBack: s }) {
1306
1306
  ] }) : null,
1307
1307
  u.carriedOver ? /* @__PURE__ */ e(zt, { originName: q(f.originConfigId) }) : null,
1308
1308
  u.ignored ? /* @__PURE__ */ e(Bt, {}) : null,
1309
- ue && !ve ? /* @__PURE__ */ e("span", { onClick: (S) => S.stopPropagation(), children: /* @__PURE__ */ e(
1309
+ ue && !ve ? /* @__PURE__ */ e("span", { onClick: (P) => P.stopPropagation(), children: /* @__PURE__ */ e(
1310
1310
  Yt,
1311
1311
  {
1312
1312
  item: u,
1313
1313
  disabled: te || Be.isPending,
1314
- onChange: (S) => Be.mutate({ itemId: u.id, selectedVersion: S })
1314
+ onChange: (P) => Be.mutate({ itemId: u.id, selectedVersion: P })
1315
1315
  }
1316
1316
  ) }) : null,
1317
1317
  Ue ? /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "Rules without a published version cannot be pushed" }) : null,
@@ -1319,7 +1319,7 @@ function dn({ releaseId: t, onBack: s }) {
1319
1319
  wt ? /* @__PURE__ */ e("span", { className: "text-xs text-amber-600", children: "Pushable version not selected" }) : null
1320
1320
  ] }) }),
1321
1321
  /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ e(nt, { status: u.status }) }),
1322
- /* @__PURE__ */ e("td", { className: "p-3 text-right", onClick: (S) => S.stopPropagation(), children: /* @__PURE__ */ n("div", { className: "flex items-center justify-end gap-2", children: [
1322
+ /* @__PURE__ */ e("td", { className: "p-3 text-right", onClick: (P) => P.stopPropagation(), children: /* @__PURE__ */ n("div", { className: "flex items-center justify-end gap-2", children: [
1323
1323
  Y ? /* @__PURE__ */ e(
1324
1324
  rt,
1325
1325
  {
@@ -1342,7 +1342,7 @@ function dn({ releaseId: t, onBack: s }) {
1342
1342
  onChange: () => {
1343
1343
  l.setQueryData(
1344
1344
  D,
1345
- (S) => (S ?? []).map((W) => W.id === u.id ? { ...W, ignored: !0, included: !1 } : W)
1345
+ (P) => (P ?? []).map((W) => W.id === u.id ? { ...W, ignored: !0, included: !1 } : W)
1346
1346
  ), ee.mutate();
1347
1347
  }
1348
1348
  }
@@ -1351,36 +1351,36 @@ function dn({ releaseId: t, onBack: s }) {
1351
1351
  ]
1352
1352
  }
1353
1353
  ),
1354
- $ && P ? b.map((S) => /* @__PURE__ */ n(
1354
+ $ && S ? b.map((P) => /* @__PURE__ */ n(
1355
1355
  "tr",
1356
1356
  {
1357
- className: `border-b last:border-0 cursor-pointer hover:bg-muted/50 ${(o == null ? void 0 : o.id) === S.id ? "bg-muted/50" : ""}`,
1358
- onClick: () => h(S),
1357
+ className: `border-b last:border-0 cursor-pointer hover:bg-muted/50 ${(o == null ? void 0 : o.id) === P.id ? "bg-muted/50" : ""}`,
1358
+ onClick: () => h(P),
1359
1359
  children: [
1360
1360
  /* @__PURE__ */ e("td", { className: "p-3 pl-8", onClick: (W) => W.stopPropagation(), children: /* @__PURE__ */ e(
1361
1361
  Xe,
1362
1362
  {
1363
- checked: S.included,
1364
- disabled: S.ignored || be.isPending || te,
1365
- onChange: (W) => be.mutate({ itemId: S.id, included: W })
1363
+ checked: P.included,
1364
+ disabled: P.ignored || be.isPending || te,
1365
+ onChange: (W) => be.mutate({ itemId: P.id, included: W })
1366
1366
  }
1367
1367
  ) }),
1368
- /* @__PURE__ */ e("td", { className: "p-3 pl-8", children: /* @__PURE__ */ e(pe, { type: S.itemType }) }),
1368
+ /* @__PURE__ */ e("td", { className: "p-3 pl-8", children: /* @__PURE__ */ e(pe, { type: P.itemType }) }),
1369
1369
  /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
1370
- /* @__PURE__ */ e("span", { className: "font-medium", children: S.itemName }),
1370
+ /* @__PURE__ */ e("span", { className: "font-medium", children: P.itemName }),
1371
1371
  (() => {
1372
- if (!S.included || S.ignored)
1372
+ if (!P.included || P.ignored)
1373
1373
  return null;
1374
- const W = ke(S, Z, C);
1375
- return W.length === 0 ? null : /* @__PURE__ */ e("span", { title: `Depends on excluded: ${W.map((Pt) => Pt.itemName).join(", ")}`, children: /* @__PURE__ */ e(ge, { size: 14, className: "shrink-0 text-amber-600" }) });
1374
+ const W = ke(P, Z, C);
1375
+ return W.length === 0 ? null : /* @__PURE__ */ e("span", { title: `Depends on excluded: ${W.map((St) => St.itemName).join(", ")}`, children: /* @__PURE__ */ e(ge, { size: 14, className: "shrink-0 text-amber-600" }) });
1376
1376
  })(),
1377
- /* @__PURE__ */ e(st, { item: S })
1377
+ /* @__PURE__ */ e(st, { item: P })
1378
1378
  ] }) }),
1379
- /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ e(nt, { status: S.status }) }),
1379
+ /* @__PURE__ */ e("td", { className: "p-3", children: /* @__PURE__ */ e(nt, { status: P.status }) }),
1380
1380
  /* @__PURE__ */ e("td", { className: "p-3 text-right", onClick: (W) => W.stopPropagation(), children: Y ? /* @__PURE__ */ e(
1381
1381
  rt,
1382
1382
  {
1383
- item: S,
1383
+ item: P,
1384
1384
  targetConfigIds: L,
1385
1385
  results: p,
1386
1386
  pushedDests: F,
@@ -1389,7 +1389,7 @@ function dn({ releaseId: t, onBack: s }) {
1389
1389
  ) : null })
1390
1390
  ]
1391
1391
  },
1392
- S.id
1392
+ P.id
1393
1393
  )) : null
1394
1394
  ] }, i.synthetic ? u.itemKey : u.id);
1395
1395
  }) })
@@ -1414,7 +1414,7 @@ function dn({ releaseId: t, onBack: s }) {
1414
1414
  const i = ($ = (u = y == null ? void 0 : y.diff) == null ? void 0 : u.origin) == null ? void 0 : $.i18n;
1415
1415
  if (!Array.isArray(i))
1416
1416
  return [];
1417
- const b = i.map((P) => P == null ? void 0 : P.path).filter((P) => typeof P == "string");
1417
+ const b = i.map((S) => S == null ? void 0 : S.path).filter((S) => typeof S == "string");
1418
1418
  return Array.from(new Set(b));
1419
1419
  })(),
1420
1420
  excludedI18nPaths: X(y == null ? void 0 : y.excludedI18nPaths),
@@ -1425,7 +1425,7 @@ function dn({ releaseId: t, onBack: s }) {
1425
1425
  const i = ($ = (u = y == null ? void 0 : y.diff) == null ? void 0 : u.origin) == null ? void 0 : $.permissions;
1426
1426
  if (!Array.isArray(i))
1427
1427
  return [];
1428
- const b = i.map((P) => `${(P == null ? void 0 : P.module) ?? ""}/${(P == null ? void 0 : P.name) ?? (P == null ? void 0 : P.id) ?? ""}`).filter((P) => P !== "/");
1428
+ const b = i.map((S) => `${(S == null ? void 0 : S.module) ?? ""}/${(S == null ? void 0 : S.name) ?? (S == null ? void 0 : S.id) ?? ""}`).filter((S) => S !== "/");
1429
1429
  return Array.from(new Set(b));
1430
1430
  })(),
1431
1431
  excludedPermissions: X(y == null ? void 0 : y.excludedPermissions),
@@ -1438,25 +1438,25 @@ function dn({ releaseId: t, onBack: s }) {
1438
1438
  onToggleTag: (i, b) => {
1439
1439
  if (!y)
1440
1440
  return;
1441
- const u = X(y.excludedTags), $ = b ? u.filter((P) => P !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1441
+ const u = X(y.excludedTags), $ = b ? u.filter((S) => S !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1442
1442
  yt.mutate({ itemId: y.id, value: $ });
1443
1443
  },
1444
1444
  onToggleMetadataKey: (i, b) => {
1445
1445
  if (!y)
1446
1446
  return;
1447
- const u = X(y.excludedMetadataKeys), $ = b ? u.filter((P) => P !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1447
+ const u = X(y.excludedMetadataKeys), $ = b ? u.filter((S) => S !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1448
1448
  bt.mutate({ itemId: y.id, value: $ });
1449
1449
  },
1450
1450
  onToggleI18nPath: (i, b) => {
1451
1451
  if (!y)
1452
1452
  return;
1453
- const u = X(y.excludedI18nPaths), $ = b ? u.filter((P) => P !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1453
+ const u = X(y.excludedI18nPaths), $ = b ? u.filter((S) => S !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1454
1454
  Nt.mutate({ itemId: y.id, value: $ });
1455
1455
  },
1456
1456
  onTogglePermission: (i, b) => {
1457
1457
  if (!y)
1458
1458
  return;
1459
- const u = X(y.excludedPermissions), $ = b ? u.filter((P) => P !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1459
+ const u = X(y.excludedPermissions), $ = b ? u.filter((S) => S !== i) : Array.from(/* @__PURE__ */ new Set([...u, i]));
1460
1460
  vt.mutate({ itemId: y.id, value: $ });
1461
1461
  }
1462
1462
  }
@@ -1727,7 +1727,7 @@ function un({
1727
1727
  className: "text-muted-foreground hover:text-foreground",
1728
1728
  onClick: () => U(T.itemKey),
1729
1729
  "aria-label": ye ? "Collapse" : "Expand",
1730
- children: ye ? /* @__PURE__ */ e(Se, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1730
+ children: ye ? /* @__PURE__ */ e(Pe, { size: 14 }) : /* @__PURE__ */ e(Te, { size: 14 })
1731
1731
  }
1732
1732
  ) : null,
1733
1733
  /* @__PURE__ */ e("span", { className: "inline-flex align-middle", children: /* @__PURE__ */ e(pe, { type: T.itemType }) }),
@@ -2107,7 +2107,7 @@ const xn = {
2107
2107
  sort: 150
2108
2108
  }, En = {
2109
2109
  install(t) {
2110
- t.addPlugin(St, xn), t.addPlugin(Tt, yn);
2110
+ t.addPlugin(Pt, xn), t.addPlugin(Tt, yn);
2111
2111
  }
2112
2112
  };
2113
2113
  export {
@@ -2140,4 +2140,4 @@ export {
2140
2140
  Xt as t,
2141
2141
  ke as u
2142
2142
  };
2143
- //# sourceMappingURL=PluginSetup-RmtTRKtb.js.map
2143
+ //# sourceMappingURL=PluginSetup-BQk4FFh9.js.map