@bfrs/agentic-components 0.7.6 → 0.7.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.
@@ -217,6 +217,12 @@ export type SaveViewPayload = {
217
217
  export type SaveViewResult = {
218
218
  view: SavedView;
219
219
  alreadyExists: boolean;
220
+ /**
221
+ * Backend-supplied explanation when alreadyExists is true — e.g. the
222
+ * submitted columns+filters already match another view's config. Absent
223
+ * when the backend doesn't send one (a plain duplicate-by-name upsert).
224
+ */
225
+ message?: string;
220
226
  };
221
227
  export type TableColumnVisibilityColumn = {
222
228
  id: string;
@@ -1,12 +1,12 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { Root as yt, Trigger as xt, Portal as St, Overlay as Tt, Content as Vt, Title as kt, Description as At } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
- import { useId as zt, useState as W, useMemo as D, useEffect as Ht } from "react";
4
- import e from "@emotion/styled";
5
- import { kfOverlayIn as Ct, kfModalContentIn as It, twTransform as Wt, twRing as E } from "../../../lib/emotionTw.js";
6
- import { Button as R } from "../../primitives/Button/Button.js";
7
- import { isReservedViewName as J, createTableViewSelectorStore as Dt } from "./viewStore.js";
8
- import { BfrsPortalScope as Rt } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
9
- const Ft = /* @__PURE__ */ e(Tt, {
1
+ import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
+ import { Root as Vt, Trigger as kt, Portal as At, Overlay as zt, Content as Ht, Title as Ct, Description as Dt } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
+ import { useId as It, useState as y, useMemo as R, useEffect as Wt } from "react";
4
+ import r from "@emotion/styled";
5
+ import { kfOverlayIn as Rt, kfModalContentIn as Bt, twTransform as Ft, twRing as Q } from "../../../lib/emotionTw.js";
6
+ import { Button as B } from "../../primitives/Button/Button.js";
7
+ import { isReservedViewName as X, createTableViewSelectorStore as Lt } from "./viewStore.js";
8
+ import { BfrsPortalScope as Pt } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
9
+ const jt = /* @__PURE__ */ r(zt, {
10
10
  label: "AgenticTableSaveView-overlay"
11
11
  })({
12
12
  position: "fixed",
@@ -16,9 +16,9 @@ const Ft = /* @__PURE__ */ e(Tt, {
16
16
  left: 0,
17
17
  zIndex: 50,
18
18
  backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
19
- ...Ct,
19
+ ...Rt,
20
20
  animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
21
- }), Bt = /* @__PURE__ */ e(Vt, {
21
+ }), Ot = /* @__PURE__ */ r(Ht, {
22
22
  label: "AgenticTableSaveView-content"
23
23
  })({
24
24
  position: "fixed",
@@ -28,7 +28,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
28
28
  maxHeight: "calc(100dvh - 2rem)",
29
29
  width: "calc(100% - 2rem)",
30
30
  maxWidth: "420px",
31
- ...Wt({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
31
+ ...Ft({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
32
32
  overflow: "auto",
33
33
  borderRadius: "var(--bfrs-radius-lg)",
34
34
  borderWidth: "1px",
@@ -44,17 +44,17 @@ const Ft = /* @__PURE__ */ e(Tt, {
44
44
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
45
45
  outline: "2px solid transparent",
46
46
  outlineOffset: "2px",
47
- ...It,
47
+ ...Bt,
48
48
  animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)",
49
49
  "@media (min-width:640px)": {
50
50
  padding: "1.25rem"
51
51
  }
52
- }), Lt = /* @__PURE__ */ e("form", {
52
+ }), Gt = /* @__PURE__ */ r("form", {
53
53
  label: "AgenticTableSaveView-form"
54
54
  })({
55
55
  display: "flex",
56
56
  flexDirection: "column"
57
- }), Pt = /* @__PURE__ */ e(kt, {
57
+ }), Mt = /* @__PURE__ */ r(Ct, {
58
58
  label: "AgenticTableSaveView-title"
59
59
  })({
60
60
  fontSize: "1.125rem",
@@ -62,7 +62,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
62
62
  lineHeight: "1.5rem",
63
63
  "--tw-text-opacity": "1",
64
64
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
65
- }), jt = /* @__PURE__ */ e(At, {
65
+ }), $t = /* @__PURE__ */ r(Dt, {
66
66
  label: "AgenticTableSaveView-description"
67
67
  })({
68
68
  marginTop: ".25rem",
@@ -70,11 +70,11 @@ const Ft = /* @__PURE__ */ e(Tt, {
70
70
  lineHeight: "1.25rem",
71
71
  "--tw-text-opacity": "1",
72
72
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
73
- }), Ot = /* @__PURE__ */ e("div", {
73
+ }), Et = /* @__PURE__ */ r("div", {
74
74
  label: "AgenticTableSaveView-field"
75
75
  })({
76
76
  marginTop: "1.25rem"
77
- }), Gt = /* @__PURE__ */ e("label", {
77
+ }), Kt = /* @__PURE__ */ r("label", {
78
78
  label: "AgenticTableSaveView-label"
79
79
  })({
80
80
  display: "block",
@@ -83,7 +83,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
83
83
  lineHeight: "1.25rem",
84
84
  "--tw-text-opacity": "1",
85
85
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
86
- }), Mt = /* @__PURE__ */ e("input", {
86
+ }), Ut = /* @__PURE__ */ r("input", {
87
87
  label: "AgenticTableSaveView-input"
88
88
  })({
89
89
  marginTop: ".375rem",
@@ -116,11 +116,11 @@ const Ft = /* @__PURE__ */ e(Tt, {
116
116
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
117
117
  },
118
118
  "&:focus": {
119
- ...E("2px", "hsl(var(--bfrs-color-primary-soft) / var(--tw-ring-opacity, 1))"),
119
+ ...Q("2px", "hsl(var(--bfrs-color-primary-soft) / var(--tw-ring-opacity, 1))"),
120
120
  "--tw-ring-opacity": "1"
121
121
  },
122
122
  "&:focus-visible": {
123
- ...E("2px", "hsl(var(--bfrs-color-primary-soft) / var(--tw-ring-opacity, 1))"),
123
+ ...Q("2px", "hsl(var(--bfrs-color-primary-soft) / var(--tw-ring-opacity, 1))"),
124
124
  "--tw-ring-opacity": "1"
125
125
  },
126
126
  "&:disabled": {
@@ -130,7 +130,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
130
130
  "--tw-text-opacity": "1",
131
131
  color: "hsl(var(--bfrs-color-text-disabled) / var(--tw-text-opacity, 1))"
132
132
  }
133
- }), $t = /* @__PURE__ */ e("p", {
133
+ }), Y = /* @__PURE__ */ r("p", {
134
134
  label: "AgenticTableSaveView-fieldError"
135
135
  })({
136
136
  marginTop: ".375rem",
@@ -138,11 +138,11 @@ const Ft = /* @__PURE__ */ e(Tt, {
138
138
  lineHeight: "1rem",
139
139
  "--tw-text-opacity": "1",
140
140
  color: "hsl(var(--bfrs-color-danger) / var(--tw-text-opacity, 1))"
141
- }), Kt = /* @__PURE__ */ e("section", {
141
+ }), _t = /* @__PURE__ */ r("section", {
142
142
  label: "AgenticTableSaveView-section"
143
143
  })({
144
144
  marginTop: "1.25rem"
145
- }), Ut = /* @__PURE__ */ e("div", {
145
+ }), qt = /* @__PURE__ */ r("div", {
146
146
  label: "AgenticTableSaveView-sectionTitle"
147
147
  })({
148
148
  fontSize: "11px",
@@ -151,14 +151,14 @@ const Ft = /* @__PURE__ */ e(Tt, {
151
151
  letterSpacing: ".12em",
152
152
  "--tw-text-opacity": "1",
153
153
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
154
- }), _t = /* @__PURE__ */ e("div", {
154
+ }), Jt = /* @__PURE__ */ r("div", {
155
155
  label: "AgenticTableSaveView-chips"
156
156
  })({
157
157
  marginTop: ".5rem",
158
158
  display: "flex",
159
159
  flexWrap: "wrap",
160
160
  gap: ".5rem"
161
- }), Q = /* @__PURE__ */ e("span", {
161
+ }), Z = /* @__PURE__ */ r("span", {
162
162
  label: "AgenticTableSaveView-chip",
163
163
  shouldForwardProp: (o) => o !== "ownerState"
164
164
  })(({ ownerState: o }) => [
@@ -184,7 +184,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
184
184
  "--tw-text-opacity": "1",
185
185
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
186
186
  }
187
- ]), qt = /* @__PURE__ */ e("div", {
187
+ ]), Nt = /* @__PURE__ */ r("div", {
188
188
  label: "AgenticTableSaveView-footer"
189
189
  })({
190
190
  marginTop: "1.5rem",
@@ -194,7 +194,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
194
194
  "@media (min-width:640px)": {
195
195
  gridTemplateColumns: "repeat(2,minmax(0,1fr))"
196
196
  }
197
- }), Et = /* @__PURE__ */ e(R, {
197
+ }), Qt = /* @__PURE__ */ r(B, {
198
198
  label: "AgenticTableSaveView-cancelButton"
199
199
  })({
200
200
  "&&": {
@@ -219,7 +219,7 @@ const Ft = /* @__PURE__ */ e(Tt, {
219
219
  backgroundColor: "hsl(var(--bfrs-color-surface-muted) / var(--tw-bg-opacity, 1))"
220
220
  }
221
221
  }
222
- }), Jt = /* @__PURE__ */ e(R, {
222
+ }), Xt = /* @__PURE__ */ r(B, {
223
223
  label: "AgenticTableSaveView-submitButton"
224
224
  })({
225
225
  "&&": {
@@ -241,162 +241,177 @@ const Ft = /* @__PURE__ */ e(Tt, {
241
241
  "--tw-bg-opacity": "1",
242
242
  backgroundColor: "hsl(var(--bfrs-color-primary-active) / var(--tw-bg-opacity, 1))"
243
243
  },
244
- // Disabled (empty name / loading) stays muted grey so the two states read differently.
244
+ // Disabled (empty name / loading) stays muted grey so the two states read
245
+ // differently. Text uses text-muted, not text-disabled: paired with
246
+ // surface-muted, text-disabled is only ~1.1:1 contrast in light mode
247
+ // (91% vs 85% lightness — nearly invisible) since that token was tuned
248
+ // for a much darker surface elsewhere. text-muted keeps the same "muted"
249
+ // look at a real ~4.1:1.
245
250
  "&:disabled": {
246
251
  cursor: "not-allowed",
247
252
  "--tw-bg-opacity": "1",
248
253
  backgroundColor: "hsl(var(--bfrs-color-surface-muted) / var(--tw-bg-opacity, 1))",
249
254
  "--tw-text-opacity": "1",
250
- color: "hsl(var(--bfrs-color-text-disabled) / var(--tw-text-opacity, 1))"
255
+ color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
251
256
  }
252
257
  }
253
- }), Qt = (o) => !!o && typeof o.then == "function", Xt = (o, v) => {
254
- if (!o || !v) return 0;
255
- const d = new Set(v);
258
+ }), Yt = (o) => !!o && typeof o.then == "function", Zt = (o, m) => {
259
+ if (!o || !m) return 0;
260
+ const d = new Set(m);
256
261
  return o.filter((p) => !d.has(p.id)).length;
257
262
  };
258
- function le({
263
+ function se({
259
264
  open: o,
260
- defaultOpen: v,
265
+ defaultOpen: m,
261
266
  onOpenChange: d,
262
267
  onClose: p,
263
268
  trigger: F,
264
- triggerLabel: X = "Save",
265
- title: Y = "Save this view",
266
- description: B = "Give your custom view a name to save it for later",
267
- viewName: m,
268
- defaultViewName: g = "",
269
- onViewNameChange: u,
270
- viewNameLabel: Z = "View Name",
271
- viewNamePlaceholder: N = "e.g. High Priority Orders",
272
- appliedLabel: y = "APPLIED FILTERS & SETTINGS",
273
- appliedSettings: tt,
274
- appliedSettingLabels: et,
275
- columns: L,
276
- visibleColumnIds: P = [],
277
- hiddenColumnCount: rt,
278
- filtersCount: x = 0,
279
- viewType: ot,
280
- filters: it,
281
- priority: at = 0,
282
- screenName: S,
269
+ triggerLabel: tt = "Save",
270
+ title: et = "Save this view",
271
+ description: L = "Give your custom view a name to save it for later",
272
+ viewName: w,
273
+ defaultViewName: x = "",
274
+ onViewNameChange: S,
275
+ viewNameLabel: rt = "View Name",
276
+ viewNamePlaceholder: ot = "e.g. High Priority Orders",
277
+ appliedLabel: T = "APPLIED FILTERS & SETTINGS",
278
+ appliedSettings: it,
279
+ appliedSettingLabels: at,
280
+ columns: P,
281
+ visibleColumnIds: j = [],
282
+ hiddenColumnCount: lt,
283
+ filtersCount: V = 0,
284
+ viewType: ct,
285
+ filters: nt,
286
+ priority: st = 0,
287
+ screenName: k,
283
288
  saveApi: b,
284
- cancelLabel: lt = "Cancel",
285
- saveLabel: ct = "Save view",
286
- onCancel: T,
287
- onSave: j,
289
+ cancelLabel: dt = "Cancel",
290
+ saveLabel: pt = "Save view",
291
+ onCancel: A,
292
+ onSave: O,
288
293
  onSaved: n,
289
294
  onError: s,
290
- loading: nt,
291
- disabled: O,
292
- closeOnSave: G = !0,
293
- closeOnOverlayClick: st = !0,
294
- closeOnEscape: dt = !0,
295
- preventClose: V = !1,
296
- className: pt,
297
- triggerClassName: bt
295
+ loading: bt,
296
+ disabled: G,
297
+ closeOnSave: M = !0,
298
+ closeOnOverlayClick: ft = !0,
299
+ closeOnEscape: vt = !0,
300
+ preventClose: z = !1,
301
+ className: mt,
302
+ triggerClassName: wt
298
303
  }) {
299
- const M = zt(), [ft, vt] = W(v ?? !1), [mt, $] = W(g), [wt, K] = W(!1), k = o ?? ft, f = m ?? mt, w = !!(nt || wt), A = rt ?? Xt(L, P), z = J(f), U = O || w || f.trim().length === 0 || z, H = D(
304
+ const $ = It(), [ut, ht] = y(m ?? !1), [gt, E] = y(x), [yt, K] = y(!1), [U, f] = y(null), u = o ?? ut, v = w ?? gt, h = !!(bt || yt), H = lt ?? Zt(P, j), C = X(v), _ = G || h || v.trim().length === 0 || C, D = R(
300
305
  () => b ? { ...b, saveEndpoint: b.saveEndpoint ?? b.endpoint ?? "api/v1/saveview" } : void 0,
301
306
  [b]
302
- ), C = D(
303
- () => S ? Dt(S, H ? { saveApi: H } : void 0) : void 0,
304
- [H, S]
305
- ), ht = D(() => {
307
+ ), I = R(
308
+ () => k ? Lt(k, D ? { saveApi: D } : void 0) : void 0,
309
+ [D, k]
310
+ ), xt = R(() => {
306
311
  const t = [];
307
- return A > 0 && t.push(`Columns hidden (${A})`), x > 0 && t.push(`Filters applied (${x})`), t;
308
- }, [A, x]), _ = et ?? ht;
309
- Ht(() => {
310
- k && m === void 0 && $(g);
311
- }, [k, g, m]);
312
- const h = (t) => {
313
- !t && V || (o === void 0 && vt(t), d == null || d(t), t || p == null || p());
314
- }, gt = (t) => {
315
- m === void 0 && $(t), u == null || u(t);
316
- }, ut = () => {
317
- T == null || T(), h(!1);
312
+ return H > 0 && t.push(`Columns hidden (${H})`), V > 0 && t.push(`Filters applied (${V})`), t;
313
+ }, [H, V]), q = at ?? xt;
314
+ Wt(() => {
315
+ u && w === void 0 && E(x), u && f(null);
316
+ }, [u, x, w]);
317
+ const g = (t) => {
318
+ !t && z || (o === void 0 && ht(t), d == null || d(t), t || p == null || p());
319
+ }, St = (t) => {
320
+ w === void 0 && E(t), S == null || S(t), f(null);
321
+ }, Tt = () => {
322
+ A == null || A(), g(!1);
318
323
  };
319
- return /* @__PURE__ */ a(yt, { open: k, onOpenChange: h, children: [
320
- F !== null && /* @__PURE__ */ r(xt, { asChild: !0, children: F ?? /* @__PURE__ */ r(R, { size: "sm", className: bt, children: X }) }),
321
- /* @__PURE__ */ r(St, { children: /* @__PURE__ */ a(Rt, { children: [
322
- /* @__PURE__ */ r(Ft, {}),
323
- /* @__PURE__ */ r(
324
- Bt,
324
+ return /* @__PURE__ */ c(Vt, { open: u, onOpenChange: g, children: [
325
+ F !== null && /* @__PURE__ */ e(kt, { asChild: !0, children: F ?? /* @__PURE__ */ e(B, { size: "sm", className: wt, children: tt }) }),
326
+ /* @__PURE__ */ e(At, { children: /* @__PURE__ */ c(Pt, { children: [
327
+ /* @__PURE__ */ e(jt, {}),
328
+ /* @__PURE__ */ e(
329
+ Ot,
325
330
  {
326
- className: pt,
331
+ className: mt,
327
332
  onPointerDownOutside: (t) => {
328
- (!st || V) && t.preventDefault();
333
+ (!ft || z) && t.preventDefault();
329
334
  },
330
335
  onEscapeKeyDown: (t) => {
331
- (!dt || V) && t.preventDefault();
336
+ (!vt || z) && t.preventDefault();
332
337
  },
333
- children: /* @__PURE__ */ a(Lt, { onSubmit: (t) => {
338
+ children: /* @__PURE__ */ c(Gt, { onSubmit: (t) => {
334
339
  t.preventDefault();
335
- const I = f.trim();
336
- if (!I || U || J(I)) return;
337
- const q = {
338
- view_type: ot ?? "orders",
339
- name: I,
340
- columns: (L ?? []).map((c, i) => ({
341
- key: c.id,
342
- order: i,
343
- visible: P.includes(c.id)
340
+ const W = v.trim();
341
+ if (!W || _ || X(W)) return;
342
+ const J = {
343
+ view_type: ct ?? "orders",
344
+ name: W,
345
+ columns: (P ?? []).map((i, a) => ({
346
+ key: i.id,
347
+ order: a,
348
+ visible: j.includes(i.id)
344
349
  })),
345
- filters: it ?? [],
346
- priority: at
350
+ filters: nt ?? [],
351
+ priority: st
347
352
  };
353
+ f(null);
354
+ const N = (i) => !!(i.alreadyExists && i.message);
348
355
  let l;
349
356
  try {
350
- l = j ? j(q) : C == null ? void 0 : C.save(q);
351
- } catch (c) {
352
- s == null || s(c);
357
+ l = O ? O(J) : I == null ? void 0 : I.save(J);
358
+ } catch (i) {
359
+ s == null || s(i);
353
360
  return;
354
361
  }
355
- if (Qt(l)) {
362
+ if (Yt(l)) {
356
363
  K(!0);
357
- let c = !1;
358
- l.then((i) => {
359
- c = !0, i && typeof i == "object" && "view" in i && (n == null || n(i));
360
- }).catch((i) => {
361
- s == null || s(i);
364
+ let i = !1;
365
+ l.then((a) => {
366
+ i = !0, a && typeof a == "object" && "view" in a && (N(a) ? (i = !1, f(a.message ?? null)) : n == null || n(a));
367
+ }).catch((a) => {
368
+ s == null || s(a);
362
369
  }).finally(() => {
363
- K(!1), G && c && h(!1);
370
+ K(!1), M && i && g(!1);
364
371
  });
365
372
  return;
366
373
  }
367
- typeof l == "object" && l !== null && "view" in l && (n == null || n(l)), G && h(!1);
374
+ if (typeof l == "object" && l !== null && "view" in l) {
375
+ if (N(l)) {
376
+ f(l.message ?? null);
377
+ return;
378
+ }
379
+ n == null || n(l);
380
+ }
381
+ M && g(!1);
368
382
  }, children: [
369
- /* @__PURE__ */ a("header", { children: [
370
- /* @__PURE__ */ r(Pt, { children: Y }),
371
- B && /* @__PURE__ */ r(jt, { children: B })
383
+ /* @__PURE__ */ c("header", { children: [
384
+ /* @__PURE__ */ e(Mt, { children: et }),
385
+ L && /* @__PURE__ */ e($t, { children: L })
372
386
  ] }),
373
- /* @__PURE__ */ a(Ot, { children: [
374
- /* @__PURE__ */ r(Gt, { htmlFor: M, children: Z }),
375
- /* @__PURE__ */ r(
376
- Mt,
387
+ /* @__PURE__ */ c(Et, { children: [
388
+ /* @__PURE__ */ e(Kt, { htmlFor: $, children: rt }),
389
+ /* @__PURE__ */ e(
390
+ Ut,
377
391
  {
378
- id: M,
392
+ id: $,
379
393
  autoFocus: !0,
380
- value: f,
381
- placeholder: N,
382
- disabled: O || w,
383
- onChange: (t) => gt(t.target.value),
384
- "aria-invalid": z
394
+ value: v,
395
+ placeholder: ot,
396
+ disabled: G || h,
397
+ onChange: (t) => St(t.target.value),
398
+ "aria-invalid": C
385
399
  }
386
400
  ),
387
- z ? /* @__PURE__ */ a($t, { children: [
401
+ C ? /* @__PURE__ */ c(Y, { children: [
388
402
  "“",
389
- f.trim(),
403
+ v.trim(),
390
404
  "” is reserved. Choose a different name."
391
- ] }) : null
405
+ ] }) : null,
406
+ U ? /* @__PURE__ */ e(Y, { children: U }) : null
392
407
  ] }),
393
- /* @__PURE__ */ a(Kt, { "aria-label": typeof y == "string" ? y : "Applied filters and settings", children: [
394
- /* @__PURE__ */ r(Ut, { children: y }),
395
- /* @__PURE__ */ r(_t, { children: tt ?? (_.length > 0 ? _.map((t) => /* @__PURE__ */ r(Q, { ownerState: {}, children: t }, t)) : /* @__PURE__ */ r(Q, { ownerState: { muted: !0 }, children: "No changes applied" })) })
408
+ /* @__PURE__ */ c(_t, { "aria-label": typeof T == "string" ? T : "Applied filters and settings", children: [
409
+ /* @__PURE__ */ e(qt, { children: T }),
410
+ /* @__PURE__ */ e(Jt, { children: it ?? (q.length > 0 ? q.map((t) => /* @__PURE__ */ e(Z, { ownerState: {}, children: t }, t)) : /* @__PURE__ */ e(Z, { ownerState: { muted: !0 }, children: "No changes applied" })) })
396
411
  ] }),
397
- /* @__PURE__ */ a(qt, { children: [
398
- /* @__PURE__ */ r(Et, { type: "button", variant: "secondary", disabled: w, onClick: ut, children: lt }),
399
- /* @__PURE__ */ r(Jt, { type: "submit", loading: w, disabled: U, children: ct })
412
+ /* @__PURE__ */ c(Nt, { children: [
413
+ /* @__PURE__ */ e(Qt, { type: "button", variant: "secondary", disabled: h, onClick: Tt, children: dt }),
414
+ /* @__PURE__ */ e(Xt, { type: "submit", loading: h, disabled: _, children: pt })
400
415
  ] })
401
416
  ] })
402
417
  }
@@ -405,6 +420,6 @@ function le({
405
420
  ] });
406
421
  }
407
422
  export {
408
- le as TableSaveView
423
+ se as TableSaveView
409
424
  };
410
425
  //# sourceMappingURL=TableSaveView.js.map