@burdenoff/microfe-bigconsole 2026.1110.6 → 2026.1110.8

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.
@@ -8,20 +8,20 @@ import ne from "../hooks/useExportParser.js";
8
8
  import { ParserCard as re } from "../components/parser/ParserCard.js";
9
9
  import { ImportParserDialog as ie } from "../components/parser/ImportParserDialog.js";
10
10
  import "../components/common/index.js";
11
- import { parsersListControls as ae } from "../assistant/pageControls.js";
12
- import { BIGCONSOLE_PERMISSIONS as s } from "../../constants/permissions.js";
13
- import { useTr as oe } from "../../shared/hooks/useTr.js";
14
- import { memo as c, useCallback as l, useMemo as u, useState as d } from "react";
15
- import { useParams as se } from "react-router";
16
- import { AccessDenied as ce, PermissionButton as le } from "@burdenoff/fe-libs/shared/components";
17
- import { usePermissions as ue } from "@burdenoff/fe-libs/shared/providers/shell";
18
- import { AlertCircle as de, FileCode2 as fe, Plus as f, Search as pe, Upload as me, X as he } from "lucide-react";
19
- import { AuroraBackground as ge, Badge as _e, Button as p, CTAOverflowMenu as ve, GradientText as m, IllustratedEmptyState as h, Input as ye, PagePurpose as be, Select as g, SelectContent as _, SelectItem as v, SelectTrigger as y, SelectValue as b, Spinner as xe } from "@burdenoff/fe-libs/ui";
11
+ import { parsersListControls as s } from "../assistant/pageControls.js";
12
+ import { BIGCONSOLE_PERMISSIONS as c } from "../../constants/permissions.js";
13
+ import { useTr as ae } from "../../shared/hooks/useTr.js";
14
+ import { memo as l, useCallback as u, useMemo as d, useState as f } from "react";
15
+ import { useParams as oe } from "react-router";
16
+ import { AccessDenied as se, PermissionButton as ce } from "@burdenoff/fe-libs/shared/components";
17
+ import { usePermissions as le } from "@burdenoff/fe-libs/shared/providers/shell";
18
+ import { AlertCircle as ue, FileCode2 as de, LayoutGrid as fe, List as pe, Plus as p, Search as me, Upload as he, X as ge } from "lucide-react";
19
+ import { AuroraBackground as _e, Badge as ve, Button as m, CTAOverflowMenu as ye, GradientText as be, IllustratedEmptyState as h, Input as xe, PagePurpose as Se, Select as g, SelectContent as _, SelectItem as v, SelectTrigger as y, SelectValue as b, Spinner as Ce } from "@burdenoff/fe-libs/ui";
20
20
  import { jsx as x, jsxs as S } from "react/jsx-runtime";
21
- import { useAssistantPageControls as Se } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
21
+ import { useAssistantPageControls as we } from "@burdenoff/fe-libs/shared/assistant/appControls/useAssistantControl";
22
22
  // src/bigconsole/pages/DataParsersPage.tsx
23
- var Ce = "default", C = c(function() {
24
- let c = e(), { consoleId: C } = se(), w = oe(), T = u(() => [
23
+ var Te = "default", C = l(function() {
24
+ let l = e(), { consoleId: C } = oe(), w = ae(), T = d(() => [
25
25
  {
26
26
  value: "all",
27
27
  label: w("bigconsole.parsers.filters.allTypes", "All Types")
@@ -34,7 +34,7 @@ var Ce = "default", C = c(function() {
34
34
  value: "jsonata",
35
35
  label: w("bigconsole.parsers.filters.jsonata", "JSONata")
36
36
  }
37
- ], [w]), E = u(() => [
37
+ ], [w]), E = d(() => [
38
38
  {
39
39
  value: "all",
40
40
  label: w("bigconsole.parsers.filters.allStatus", "All Status")
@@ -47,34 +47,42 @@ var Ce = "default", C = c(function() {
47
47
  value: "inactive",
48
48
  label: w("bigconsole.parsers.filters.inactive", "Inactive")
49
49
  }
50
- ], [w]), { hasPermission: D, isLoading: O } = ue(), k = D(s.PARSER_READ), A = D(s.PARSER_CREATE), j = D(s.PARSER_UPDATE), we = D(s.PARSER_DELETE), M = C || Ce, N = o((e) => e.typeFilter), P = o((e) => e.statusFilter), F = o((e) => e.searchQuery), I = o((e) => e.setTypeFilter), L = o((e) => e.setStatusFilter), R = o((e) => e.setSearchQuery), [Te, z] = d(!1), [Ee, B] = d(null), [De, V] = d(!1), { loading: H, error: U, parsers: W, deleteParser: G, refetch: K } = te({
51
- consoleId: M,
50
+ ], [w]), { hasPermission: D, isLoading: O } = le(), k = D(c.PARSER_READ), A = D(c.PARSER_CREATE), Ee = D(c.PARSER_UPDATE), De = D(c.PARSER_DELETE), j = C || Te, M = o((e) => e.typeFilter), N = o((e) => e.statusFilter), P = o((e) => e.searchQuery), F = o((e) => e.setTypeFilter), I = o((e) => e.setStatusFilter), L = o((e) => e.setSearchQuery), [Oe, R] = f(!1), [ke, z] = f(null), [Ae, B] = f(!1), [V, je] = f("grid"), Me = d(() => [{
51
+ mode: "grid",
52
+ Icon: fe,
53
+ label: w("bigconsole.parsers.list.gridView", "Grid view")
54
+ }, {
55
+ mode: "list",
56
+ Icon: pe,
57
+ label: w("bigconsole.parsers.list.listView", "List view")
58
+ }], [w]), { loading: H, error: U, parsers: W, deleteParser: G, refetch: K } = te({
59
+ consoleId: j,
52
60
  skipFetch: !1
53
- }), { downloadParser: q } = ne(), J = u(() => W ? W.filter((e) => {
54
- if (N && e.type !== N || P && e.status !== P) return !1;
55
- if (F) {
56
- let t = F.toLowerCase(), n = e.name?.toLowerCase().includes(t), r = e.description?.toLowerCase().includes(t), i = e.inputSinkKey?.toLowerCase().includes(t), a = e.outputKey?.toLowerCase().includes(t);
61
+ }), { downloadParser: q } = ne(), J = d(() => W ? W.filter((e) => {
62
+ if (M && e.type !== M || N && e.status !== N) return !1;
63
+ if (P) {
64
+ let t = P.toLowerCase(), n = e.name?.toLowerCase().includes(t), r = e.description?.toLowerCase().includes(t), i = e.inputSinkKey?.toLowerCase().includes(t), a = e.outputKey?.toLowerCase().includes(t);
57
65
  if (!n && !r && !i && !a) return !1;
58
66
  }
59
67
  return !0;
60
68
  }) : [], [
61
69
  W,
70
+ M,
62
71
  N,
63
- P,
64
- F
65
- ]), Y = l((e) => {
72
+ P
73
+ ]), Y = u((e) => {
74
+ F(e === "all" ? null : e);
75
+ }, [F]), X = u((e) => {
66
76
  I(e === "all" ? null : e);
67
- }, [I]), X = l((e) => {
68
- L(e === "all" ? null : e);
69
- }, [L]), Oe = l((e) => {
70
- R(e.target.value);
71
- }, [R]), Z = l(() => {
72
- c(C ? `/dashboards/${C}/parsers/new` : "/parsers/new");
73
- }, [c, C]), ke = l((e) => {
74
- c(C ? `/dashboards/${C}/parsers/${e}` : `/parsers/${e}`);
75
- }, [c, C]), Ae = l((e) => {
76
- c(C ? `/dashboards/${C}/parsers/${e}/edit` : `/parsers/${e}/edit`);
77
- }, [c, C]), je = l(async (e) => {
77
+ }, [I]), Ne = u((e) => {
78
+ L(e.target.value);
79
+ }, [L]), Z = u(() => {
80
+ l(C ? `/dashboards/${C}/parsers/new` : "/parsers/new");
81
+ }, [l, C]), Pe = u((e) => {
82
+ l(C ? `/dashboards/${C}/parsers/${e}` : `/parsers/${e}`);
83
+ }, [l, C]), Fe = u((e) => {
84
+ l(C ? `/dashboards/${C}/parsers/${e}/edit` : `/parsers/${e}/edit`);
85
+ }, [l, C]), Ie = u(async (e) => {
78
86
  let a = await n({
79
87
  title: w("bigconsole.parsers.confirmDelete.title", "Delete parser?"),
80
88
  message: w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?"),
@@ -82,37 +90,37 @@ var Ce = "default", C = c(function() {
82
90
  cancelButtonTitle: w("bigconsole.parsers.actions.cancel", "Cancel")
83
91
  });
84
92
  if (a === null ? window.confirm(w("bigconsole.parsers.confirmDelete.message", "Are you sure you want to delete this parser?")) : a) {
85
- r("medium"), z(!0), B(e);
93
+ r("medium"), R(!0), z(e);
86
94
  try {
87
95
  await G(e), t() && i("success");
88
96
  } catch {
89
97
  t() && i("error");
90
98
  } finally {
91
- z(!1), B(null);
99
+ R(!1), z(null);
92
100
  }
93
101
  }
94
- }, [G, w]), Q = l(() => {
95
- I(null), L(null), R("");
102
+ }, [G, w]), Q = u(() => {
103
+ F(null), I(null), L("");
96
104
  }, [
105
+ F,
97
106
  I,
98
- L,
99
- R
100
- ]), Me = l(async (e) => {
107
+ L
108
+ ]), Le = u(async (e) => {
101
109
  let t = W.find((t) => t.id === e);
102
110
  t && await q(e, t.name);
103
- }, [W, q]), Ne = l(() => {
104
- V(!0);
105
- }, []), Pe = l((e, t, n) => {
111
+ }, [W, q]), Re = u(() => {
112
+ B(!0);
113
+ }, []), ze = u((e, t, n) => {
106
114
  K();
107
- }, [K]), $ = N !== null || P !== null || (F?.length ?? 0) > 0, Fe = u(() => !O && k && !U ? ae({
115
+ }, [K]), $ = M !== null || N !== null || (P?.length ?? 0) > 0, Be = d(() => !O && k && !U ? s({
108
116
  tr: w,
109
117
  typeOptions: T,
110
118
  statusOptions: E,
111
- type: N ?? "all",
112
- status: P ?? "all",
119
+ type: M ?? "all",
120
+ status: N ?? "all",
113
121
  setType: Y,
114
122
  setStatus: X,
115
- setSearch: R
123
+ setSearch: L
116
124
  }) : null, [
117
125
  w,
118
126
  O,
@@ -120,21 +128,21 @@ var Ce = "default", C = c(function() {
120
128
  U,
121
129
  T,
122
130
  E,
131
+ M,
123
132
  N,
124
- P,
125
133
  Y,
126
134
  X,
127
- R
135
+ L
128
136
  ]);
129
- return Se(Fe), U ? /* @__PURE__ */ x("div", {
137
+ return we(Be), U ? /* @__PURE__ */ x("div", {
130
138
  style: { padding: "var(--space-pagePadding)" },
131
139
  children: /* @__PURE__ */ x(a, {
132
140
  tone: "danger",
133
141
  headingLevel: 2,
134
142
  title: w("bigconsole.parsers.errors.loadFailed", "Failed to load Parsers"),
135
143
  description: "The parser list could not be fetched. Retry, or check that the BigConsole service is reachable.",
136
- icon: /* @__PURE__ */ x(de, { className: "h-icon-md w-icon-md text-[var(--color-status-error-text)]" }),
137
- actions: /* @__PURE__ */ x(p, {
144
+ icon: /* @__PURE__ */ x(ue, { className: "h-icon-md w-icon-md text-[var(--color-status-error-text)]" }),
145
+ actions: /* @__PURE__ */ x(m, {
138
146
  size: "sm",
139
147
  onClick: () => K(),
140
148
  children: w("bigconsole.parsers.actions.tryAgain", "Try Again")
@@ -145,7 +153,7 @@ var Ce = "default", C = c(function() {
145
153
  children: U.message
146
154
  })
147
155
  })
148
- }) : !O && !k ? /* @__PURE__ */ x(ce, {
156
+ }) : !O && !k ? /* @__PURE__ */ x(se, {
149
157
  title: w("bigconsole.parsers.accessDenied.title", "Access Denied"),
150
158
  description: w("bigconsole.parsers.accessDenied.list", "You don't have permission to view parsers.")
151
159
  }) : /* @__PURE__ */ S("div", {
@@ -156,7 +164,7 @@ var Ce = "default", C = c(function() {
156
164
  children: [
157
165
  /* @__PURE__ */ S("div", {
158
166
  className: "relative overflow-hidden border-b border-[var(--color-border-seam)] bg-[image:var(--gradient-gloss-card)]",
159
- children: [/* @__PURE__ */ x(ge, { intensity: "subtle" }), /* @__PURE__ */ x("div", {
167
+ children: [/* @__PURE__ */ x(_e, { intensity: "subtle" }), /* @__PURE__ */ x("div", {
160
168
  className: "relative",
161
169
  style: { padding: "var(--space-pagePadding)" },
162
170
  children: /* @__PURE__ */ S("div", {
@@ -171,7 +179,7 @@ var Ce = "default", C = c(function() {
171
179
  borderRadius: "var(--radius-card)",
172
180
  backgroundColor: "var(--color-action-primary-bg)"
173
181
  },
174
- children: /* @__PURE__ */ x(fe, { style: {
182
+ children: /* @__PURE__ */ x(de, { style: {
175
183
  height: "var(--size-icon-lg)",
176
184
  width: "var(--size-icon-lg)",
177
185
  color: "var(--color-action-primary-text)"
@@ -180,30 +188,78 @@ var Ce = "default", C = c(function() {
180
188
  className: "min-w-0",
181
189
  children: [/* @__PURE__ */ x("h1", {
182
190
  className: "m-0 text-2xl font-bold text-text-primary sm:text-3xl",
183
- children: /* @__PURE__ */ x(m, { children: w("bigconsole.parsers.list.title", "Data Parsers") })
191
+ children: /* @__PURE__ */ x(be, { children: w("bigconsole.parsers.list.title", "Data Parsers") })
184
192
  }), /* @__PURE__ */ x("p", {
185
193
  className: "m-0 text-sm text-text-secondary",
186
194
  children: w("bigconsole.parsers.list.subtitle", "Transform and process data with JQ or JSONata expressions")
187
195
  })]
188
196
  })]
189
- }), /* @__PURE__ */ x(ve, {
190
- primary: A ? {
191
- label: w("bigconsole.parsers.actions.create", "Create Parser"),
192
- onSelect: Z,
193
- icon: /* @__PURE__ */ x(f, { style: {
194
- marginRight: "var(--space-iconGap)",
195
- height: "var(--size-icon-sm)",
196
- width: "var(--size-icon-sm)"
197
- } })
198
- } : void 0,
199
- actions: A ? [{
200
- label: w("bigconsole.parsers.actions.import", "Import"),
201
- onSelect: Ne,
202
- icon: /* @__PURE__ */ x(me, { style: {
203
- height: "var(--size-icon-sm)",
204
- width: "var(--size-icon-sm)"
205
- } })
206
- }] : []
197
+ }), /* @__PURE__ */ S("div", {
198
+ className: "flex w-full flex-wrap items-center gap-control-gap lg:w-auto lg:flex-nowrap",
199
+ children: [
200
+ /* @__PURE__ */ S("div", {
201
+ className: "relative min-w-[200px] flex-1 lg:w-80 lg:flex-none",
202
+ children: [/* @__PURE__ */ x(me, {
203
+ "aria-hidden": "true",
204
+ style: {
205
+ position: "absolute",
206
+ left: "var(--space-controlGap)",
207
+ top: "50%",
208
+ transform: "translateY(-50%)",
209
+ height: "var(--size-icon-sm)",
210
+ width: "var(--size-icon-sm)",
211
+ color: "var(--color-text-muted)"
212
+ }
213
+ }), /* @__PURE__ */ x(xe, {
214
+ type: "text",
215
+ "aria-label": w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
216
+ placeholder: w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
217
+ value: P || "",
218
+ onChange: Ne,
219
+ className: "min-h-11",
220
+ style: { paddingLeft: "var(--size-controlHeight-md)" }
221
+ })]
222
+ }),
223
+ /* @__PURE__ */ x("div", {
224
+ role: "group",
225
+ "aria-label": w("bigconsole.parsers.list.viewModeAriaLabel", "Parser layout"),
226
+ className: "flex shrink-0 items-center overflow-hidden rounded-md border border-[var(--color-border-default)]",
227
+ children: Me.map(({ mode: e, Icon: t, label: n }) => /* @__PURE__ */ x("button", {
228
+ type: "button",
229
+ onClick: () => je(e),
230
+ "aria-label": n,
231
+ "aria-pressed": V === e,
232
+ title: n,
233
+ className: `flex min-h-11 min-w-11 items-center justify-center motion-safe:transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring ${V === e ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"}`,
234
+ children: /* @__PURE__ */ x(t, {
235
+ "aria-hidden": "true",
236
+ style: {
237
+ height: "var(--size-icon-sm)",
238
+ width: "var(--size-icon-sm)"
239
+ }
240
+ })
241
+ }, e))
242
+ }),
243
+ /* @__PURE__ */ x(ye, {
244
+ primary: A ? {
245
+ label: w("bigconsole.parsers.actions.create", "Create Parser"),
246
+ onSelect: Z,
247
+ icon: /* @__PURE__ */ x(p, { style: {
248
+ marginRight: "var(--space-iconGap)",
249
+ height: "var(--size-icon-sm)",
250
+ width: "var(--size-icon-sm)"
251
+ } })
252
+ } : void 0,
253
+ actions: A ? [{
254
+ label: w("bigconsole.parsers.actions.import", "Import"),
255
+ onSelect: Re,
256
+ icon: /* @__PURE__ */ x(he, { style: {
257
+ height: "var(--size-icon-sm)",
258
+ width: "var(--size-icon-sm)"
259
+ } })
260
+ }] : []
261
+ })
262
+ ]
207
263
  })]
208
264
  })
209
265
  })]
@@ -211,7 +267,7 @@ var Ce = "default", C = c(function() {
211
267
  /* @__PURE__ */ x("div", {
212
268
  style: { padding: "var(--space-pagePadding)" },
213
269
  children: /* @__PURE__ */ S(ee, { children: [
214
- /* @__PURE__ */ x(be, {
270
+ /* @__PURE__ */ x(Se, {
215
271
  className: "max-w-[80ch]",
216
272
  children: w("bigconsole.parsers.list.purpose", "Parsers define how raw input — log lines, CSVs, JSON, or arbitrary text — is read and mapped into structured fields. Build a parser once, test it against a sample, then reuse it across pipelines so every source lands in a consistent, queryable shape.")
217
273
  }),
@@ -225,34 +281,8 @@ var Ce = "default", C = c(function() {
225
281
  children: /* @__PURE__ */ S("div", {
226
282
  className: "flex flex-wrap items-center gap-control-gap",
227
283
  children: [
228
- /* @__PURE__ */ S("div", {
229
- className: "relative w-full min-w-0 flex-1 sm:max-w-[400px]",
230
- children: [/* @__PURE__ */ x(pe, {
231
- "aria-hidden": "true",
232
- style: {
233
- position: "absolute",
234
- left: "var(--space-controlGap)",
235
- top: "50%",
236
- transform: "translateY(-50%)",
237
- height: "var(--size-icon-sm)",
238
- width: "var(--size-icon-sm)",
239
- color: "var(--color-text-muted)"
240
- }
241
- }), /* @__PURE__ */ x(ye, {
242
- type: "text",
243
- "aria-label": w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
244
- placeholder: w("bigconsole.parsers.list.searchPlaceholder", "Search parsers..."),
245
- value: F || "",
246
- onChange: Oe,
247
- className: "min-h-control-md",
248
- style: {
249
- paddingLeft: "var(--size-controlHeight-md)",
250
- height: "var(--size-controlHeight-md)"
251
- }
252
- })]
253
- }),
254
284
  /* @__PURE__ */ S(g, {
255
- value: N || "all",
285
+ value: M || "all",
256
286
  onValueChange: Y,
257
287
  children: [/* @__PURE__ */ x(y, {
258
288
  "aria-label": w("bigconsole.parsers.filters.typeAriaLabel", "Filter by parser type"),
@@ -264,7 +294,7 @@ var Ce = "default", C = c(function() {
264
294
  }, e.value)) })]
265
295
  }),
266
296
  /* @__PURE__ */ S(g, {
267
- value: P || "all",
297
+ value: N || "all",
268
298
  onValueChange: X,
269
299
  children: [/* @__PURE__ */ x(y, {
270
300
  "aria-label": w("bigconsole.parsers.filters.statusAriaLabel", "Filter by status"),
@@ -275,12 +305,12 @@ var Ce = "default", C = c(function() {
275
305
  children: e.label
276
306
  }, e.value)) })]
277
307
  }),
278
- $ && /* @__PURE__ */ S(p, {
308
+ $ && /* @__PURE__ */ S(m, {
279
309
  variant: "ghost",
280
310
  size: "sm",
281
311
  onClick: Q,
282
312
  className: "min-h-control-md",
283
- children: [/* @__PURE__ */ x(he, { style: {
313
+ children: [/* @__PURE__ */ x(ge, { style: {
284
314
  marginRight: "var(--space-iconGap)",
285
315
  height: "var(--size-icon-sm)",
286
316
  width: "var(--size-icon-sm)"
@@ -295,7 +325,7 @@ var Ce = "default", C = c(function() {
295
325
  headingLevel: 2,
296
326
  title: w("bigconsole.parsers.list.resultsTitle", "Parsers"),
297
327
  description: w("bigconsole.parsers.list.resultsDescription", "Open a parser to review its expression, or use the actions on a card to edit, export or delete it."),
298
- meta: /* @__PURE__ */ x(_e, {
328
+ meta: /* @__PURE__ */ x(ve, {
299
329
  variant: "secondary",
300
330
  children: J.length === 1 ? w("bigconsole.parsers.list.countSingular", "{{count}} Parser", { count: J.length }) : w("bigconsole.parsers.list.countPlural", "{{count}} Parsers", { count: J.length })
301
331
  }),
@@ -305,7 +335,7 @@ var Ce = "default", C = c(function() {
305
335
  className: "flex items-center justify-center py-12 sm:py-16",
306
336
  children: /* @__PURE__ */ S("div", {
307
337
  className: "text-center",
308
- children: [/* @__PURE__ */ x(xe, { style: {
338
+ children: [/* @__PURE__ */ x(Ce, { style: {
309
339
  height: "var(--size-icon-xl)",
310
340
  width: "var(--size-icon-xl)",
311
341
  margin: "0 auto var(--space-formGap)"
@@ -319,12 +349,12 @@ var Ce = "default", C = c(function() {
319
349
  illustration: "empty-data",
320
350
  title: w("bigconsole.parsers.list.emptyTitle", "No Parsers yet"),
321
351
  description: w("bigconsole.parsers.list.emptyDescription", "Create your first parser to start transforming data with JQ or JSONata."),
322
- action: /* @__PURE__ */ x(le, {
323
- permission: s.PARSER_CREATE,
352
+ action: /* @__PURE__ */ x(ce, {
353
+ permission: c.PARSER_CREATE,
324
354
  deniedBehavior: "disable",
325
- children: /* @__PURE__ */ S(p, {
355
+ children: /* @__PURE__ */ S(m, {
326
356
  onClick: Z,
327
- children: [/* @__PURE__ */ x(f, { style: {
357
+ children: [/* @__PURE__ */ x(p, { style: {
328
358
  marginRight: "var(--space-iconGap)",
329
359
  height: "var(--size-icon-sm)",
330
360
  width: "var(--size-icon-sm)"
@@ -336,7 +366,7 @@ var Ce = "default", C = c(function() {
336
366
  illustration: "empty-search",
337
367
  title: w("bigconsole.parsers.list.noMatchTitle", "No matching parsers"),
338
368
  description: w("bigconsole.parsers.list.noMatchDescription", "No parsers match your filters"),
339
- action: /* @__PURE__ */ x(p, {
369
+ action: /* @__PURE__ */ x(m, {
340
370
  variant: "ghost",
341
371
  size: "sm",
342
372
  onClick: Q,
@@ -344,16 +374,17 @@ var Ce = "default", C = c(function() {
344
374
  })
345
375
  }),
346
376
  !H && J.length > 0 && /* @__PURE__ */ x("ul", {
347
- className: "grid list-none grid-cols-[repeat(auto-fill,minmax(min(100%,18rem),1fr))] gap-form-gap p-0",
377
+ className: V === "grid" ? "grid list-none grid-cols-1 gap-form-gap p-0 md:grid-cols-2 xl:grid-cols-3" : "flex list-none flex-col gap-control-gap p-0",
348
378
  children: J.map((e) => /* @__PURE__ */ x("li", {
349
379
  className: "min-w-0",
350
380
  children: /* @__PURE__ */ x(re, {
351
381
  parser: e,
352
- onView: ke,
353
- onEdit: j ? Ae : void 0,
354
- onExport: Me,
355
- onDelete: we ? je : void 0,
356
- isDeleting: Te && Ee === e.id
382
+ layout: V,
383
+ onView: Pe,
384
+ onEdit: Ee ? Fe : void 0,
385
+ onExport: Le,
386
+ onDelete: De ? Ie : void 0,
387
+ isDeleting: Oe && ke === e.id
357
388
  })
358
389
  }, e.id))
359
390
  })
@@ -362,10 +393,10 @@ var Ce = "default", C = c(function() {
362
393
  ] })
363
394
  }),
364
395
  /* @__PURE__ */ x(ie, {
365
- isOpen: De,
366
- onClose: () => V(!1),
367
- consoleId: M,
368
- onSuccess: Pe
396
+ isOpen: Ae,
397
+ onClose: () => B(!1),
398
+ consoleId: j,
399
+ onSuccess: ze
369
400
  })
370
401
  ]
371
402
  });