@bfrs/agentic-components 0.8.1 → 0.8.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,53 +1,50 @@
1
- import { jsxs as s, jsx as r, Fragment as _e } from "react/jsx-runtime";
2
- import { Root as Re, Portal as Ce, Overlay as Tt, Content as _t, Title as Rt, Description as Ct } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
- import { Root as kt, Trigger as At, Portal as zt, Content as Vt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { BookmarkSimple as ke } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
5
- import { CaretDown as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
6
- import { DotsThreeVertical as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
7
- import { Info as Ht } from "../../../node_modules/@phosphor-icons/react/dist/csr/Info.es.js";
8
- import { PencilSimple as Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
9
- import { Star as se } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
10
- import { Trash as Bt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
- import { useRef as k, useMemo as ae, useState as m, useId as Ft, useEffect as j, useCallback as N } from "react";
12
- import n from "@emotion/styled";
13
- import { IconButton as Lt, Button as M } from "../../primitives/Button/Button.js";
14
- import { twRing as K, twTransform as Fe, kfContentIn as Dt, kfOverlayIn as Pt, kfModalContentIn as Et } from "../../../lib/emotionTw.js";
15
- import { floatingCollisionPadding as jt } from "../../ui/overlays/overlayPositioning.js";
16
- import { createTableViewSelectorStore as Nt, isReservedViewName as Ae } from "./viewStore.js";
1
+ import { jsxs as c, jsx as t, Fragment as ke } from "react/jsx-runtime";
2
+ import { Root as Ae, Portal as Ie, Overlay as At, Content as It, Title as Wt, Description as Ot } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
+ import { Root as Vt, Trigger as Dt, Portal as Ht, Content as Bt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
+ import { BookmarkSimple as Lt } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.es.js";
5
+ import { CaretDown as Et } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
6
+ import { DotsThreeVertical as We } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
7
+ import { Info as Ft } from "../../../node_modules/@phosphor-icons/react/dist/csr/Info.es.js";
8
+ import { PencilSimple as Pt } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
9
+ import { Star as K } from "../../../node_modules/@phosphor-icons/react/dist/csr/Star.es.js";
10
+ import { Trash as jt } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
+ import { useRef as A, useMemo as ae, useState as p, useId as Nt, useEffect as N, useCallback as $ } from "react";
12
+ import o from "@emotion/styled";
13
+ import { IconButton as Oe, Button as M } from "../../primitives/Button/Button.js";
14
+ import { twRing as se, twTransform as Me, kfContentIn as $t, kfOverlayIn as Kt, kfModalContentIn as Mt } from "../../../lib/emotionTw.js";
15
+ import { floatingCollisionPadding as qt } from "../../ui/overlays/overlayPositioning.js";
16
+ import { createTableViewSelectorStore as Yt, isReservedViewName as Ve } from "./viewStore.js";
17
17
  import { BfrsPortalScope as le } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
18
- import { Tooltip as Mt } from "../../ui/overlays/Tooltip/Tooltip.js";
19
- import { ActionMenu as $t } from "../../navigation/ActionMenu/ActionMenu.js";
20
- const A = {
18
+ import { Tooltip as Gt } from "../../ui/overlays/Tooltip/Tooltip.js";
19
+ import { ActionMenu as De } from "../../navigation/ActionMenu/ActionMenu.js";
20
+ const W = {
21
21
  "--tw-text-opacity": "1",
22
22
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
23
- }, Kt = {
24
- "--tw-text-opacity": "1",
25
- color: "hsl(var(--bfrs-color-text-secondary) / var(--tw-text-opacity, 1))"
26
- }, z = {
23
+ }, O = {
27
24
  "--tw-text-opacity": "1",
28
25
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
29
- }, ce = {
26
+ }, de = {
30
27
  "--tw-bg-opacity": "1",
31
28
  backgroundColor: "hsl(var(--bfrs-color-surface-card) / var(--tw-bg-opacity, 1))"
32
- }, $ = {
29
+ }, ce = {
33
30
  "--tw-bg-opacity": "1",
34
31
  backgroundColor: "hsl(var(--bfrs-color-primary-soft) / var(--tw-bg-opacity, 1))"
35
- }, qt = {
32
+ }, Jt = {
36
33
  backgroundColor: "var(--bfrs-sidenav-row-active-hover-bg, var(--bfrs-dcl-color-accent-light))"
37
- }, Ut = {
34
+ }, Qt = {
38
35
  backgroundColor: "#F6F9F6"
39
- }, de = {
36
+ }, ue = {
40
37
  "--tw-border-opacity": "1",
41
38
  borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
42
- }, Yt = /* @__PURE__ */ n("div", {
39
+ }, Xt = /* @__PURE__ */ o("div", {
43
40
  label: "AgenticTableViewSelector-root"
44
41
  })({
45
42
  display: "inline-flex",
46
43
  minWidth: "0px"
47
- }), Gt = /* @__PURE__ */ n("button", {
44
+ }), Zt = /* @__PURE__ */ o("button", {
48
45
  label: "AgenticTableViewSelector-trigger",
49
- shouldForwardProp: (o) => o !== "ownerState"
50
- })(({ ownerState: o }) => [
46
+ shouldForwardProp: (n) => n !== "ownerState"
47
+ })(({ ownerState: n }) => [
51
48
  {
52
49
  display: "inline-flex",
53
50
  minWidth: "0px",
@@ -57,26 +54,26 @@ const A = {
57
54
  gap: ".5rem",
58
55
  borderRadius: "7px",
59
56
  borderWidth: "1px",
60
- ...Ut,
57
+ ...Qt,
61
58
  paddingLeft: ".75rem",
62
59
  paddingRight: ".75rem",
63
60
  fontSize: "12px",
64
61
  lineHeight: "normal",
65
62
  fontWeight: 400,
66
- ...A,
63
+ ...W,
67
64
  outline: "2px solid transparent",
68
65
  outlineOffset: "2px",
69
66
  transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
70
67
  transitionTimingFunction: "cubic-bezier(0,0,.2,1)",
71
68
  transitionDuration: ".15s",
72
- "&:hover": $,
73
- "&:focus-visible": K("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
69
+ "&:hover": ce,
70
+ "&:focus-visible": se("2px", "hsl(var(--bfrs-color-border-focus) / .25)"),
74
71
  "&:disabled": {
75
72
  pointerEvents: "none",
76
73
  opacity: ".55"
77
74
  }
78
75
  },
79
- o.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
76
+ n.size === "sm" ? { height: "1.75rem" } : { height: "2.25rem" },
80
77
  // Stays highlighted once a view is selected, not just while the popover is
81
78
  // open — matches the data-filled convention every other Select-like
82
79
  // trigger in the library already follows (Select, MultiSelect,
@@ -84,12 +81,12 @@ const A = {
84
81
  // "Default" is a real selection, not an empty trigger, so it carries the same
85
82
  // emphasized border as a named view. border-focus is the ink colour (#29343D
86
83
  // in light) and flips light in dark mode — a literal black would not.
87
- o.open || o.filled || o.defaultSelected ? {
84
+ n.open || n.filled || n.defaultSelected ? {
88
85
  "--tw-border-opacity": "1",
89
86
  borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
90
- } : de,
91
- o.empty && z
92
- ]), Jt = /* @__PURE__ */ n("span", {
87
+ } : ue,
88
+ n.empty && O
89
+ ]), Ut = /* @__PURE__ */ o("span", {
93
90
  label: "AgenticTableViewSelector-triggerLabel"
94
91
  })({
95
92
  minWidth: "0px",
@@ -97,25 +94,25 @@ const A = {
97
94
  overflow: "hidden",
98
95
  textOverflow: "ellipsis",
99
96
  whiteSpace: "nowrap"
100
- }), ze = /* @__PURE__ */ n(se, {
97
+ }), He = /* @__PURE__ */ o(K, {
101
98
  label: "AgenticTableViewSelector-primaryStar"
102
99
  })({
103
100
  flexShrink: 0,
104
101
  "--tw-text-opacity": "1",
105
102
  color: "hsl(var(--bfrs-color-warning) / var(--tw-text-opacity, 1))"
106
- }), Qt = /* @__PURE__ */ n(It, {
103
+ }), er = /* @__PURE__ */ o(Et, {
107
104
  label: "AgenticTableViewSelector-caret",
108
- shouldForwardProp: (o) => o !== "ownerState"
109
- })(({ ownerState: o }) => [
105
+ shouldForwardProp: (n) => n !== "ownerState"
106
+ })(({ ownerState: n }) => [
110
107
  {
111
108
  flexShrink: 0,
112
- ...z,
109
+ ...O,
113
110
  transitionProperty: "transform",
114
111
  transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
115
112
  transitionDuration: ".15s"
116
113
  },
117
- o.open && Fe({ "--tw-rotate": "180deg" })
118
- ]), Xt = /* @__PURE__ */ n(Vt, {
114
+ n.open && Me({ "--tw-rotate": "180deg" })
115
+ ]), tr = /* @__PURE__ */ o(Bt, {
119
116
  label: "AgenticTableViewSelector-content"
120
117
  })({
121
118
  zIndex: 1e3,
@@ -123,16 +120,16 @@ const A = {
123
120
  overflow: "hidden",
124
121
  borderRadius: "var(--bfrs-radius-lg)",
125
122
  borderWidth: "1px",
123
+ ...ue,
126
124
  ...de,
127
- ...ce,
128
125
  "--tw-shadow": "var(--bfrs-shadow-elevated)",
129
126
  "--tw-shadow-colored": "var(--bfrs-shadow-elevated)",
130
127
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
131
128
  outline: "2px solid transparent",
132
129
  outlineOffset: "2px",
133
- ...Dt,
130
+ ...$t,
134
131
  animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
135
- }), Zt = /* @__PURE__ */ n("div", {
132
+ }), rr = /* @__PURE__ */ o("div", {
136
133
  label: "AgenticTableViewSelector-header"
137
134
  })({
138
135
  display: "flex",
@@ -147,8 +144,8 @@ const A = {
147
144
  fontWeight: 700,
148
145
  letterSpacing: ".08em",
149
146
  textTransform: "uppercase",
150
- ...z
151
- }), er = /* @__PURE__ */ n("span", {
147
+ ...O
148
+ }), nr = /* @__PURE__ */ o("span", {
152
149
  label: "AgenticTableViewSelector-headerInfo"
153
150
  })({
154
151
  display: "inline-flex",
@@ -162,12 +159,12 @@ const A = {
162
159
  // either or it renders offset from the cap height.
163
160
  letterSpacing: "normal",
164
161
  cursor: "default",
165
- ...z,
162
+ ...O,
166
163
  "&:hover": {
167
164
  "--tw-text-opacity": "1",
168
165
  color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
169
166
  }
170
- }), tr = /* @__PURE__ */ n("div", {
167
+ }), or = /* @__PURE__ */ o("div", {
171
168
  label: "AgenticTableViewSelector-list"
172
169
  })({
173
170
  display: "flex",
@@ -175,7 +172,7 @@ const A = {
175
172
  flexDirection: "column",
176
173
  overflowY: "auto",
177
174
  paddingBottom: ".25rem"
178
- }), rr = /* @__PURE__ */ n("div", {
175
+ }), Be = /* @__PURE__ */ o("div", {
179
176
  label: "AgenticTableViewSelector-row"
180
177
  })({
181
178
  display: "flex",
@@ -184,10 +181,10 @@ const A = {
184
181
  gap: ".375rem",
185
182
  paddingLeft: ".5rem",
186
183
  paddingRight: ".625rem"
187
- }), or = /* @__PURE__ */ n("button", {
184
+ }), Le = /* @__PURE__ */ o("button", {
188
185
  label: "AgenticTableViewSelector-viewButton",
189
- shouldForwardProp: (o) => o !== "ownerState"
190
- })(({ ownerState: o }) => [
186
+ shouldForwardProp: (n) => n !== "ownerState"
187
+ })(({ ownerState: n }) => [
191
188
  {
192
189
  display: "flex",
193
190
  minWidth: "0px",
@@ -204,18 +201,18 @@ const A = {
204
201
  fontSize: "12px",
205
202
  lineHeight: "1rem",
206
203
  fontWeight: 500,
207
- ...A,
204
+ ...W,
208
205
  outline: "2px solid transparent",
209
206
  outlineOffset: "2px",
210
- "&:hover": $,
211
- "&:focus-visible": K("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
207
+ "&:hover": ce,
208
+ "&:focus-visible": se("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
212
209
  },
213
- o.selected && {
214
- ...$,
210
+ n.selected && {
211
+ ...ce,
215
212
  fontWeight: 700,
216
- "&:hover": qt
213
+ "&:hover": Jt
217
214
  }
218
- ]), nr = /* @__PURE__ */ n("span", {
215
+ ]), Ee = /* @__PURE__ */ o("span", {
219
216
  label: "AgenticTableViewSelector-name"
220
217
  })({
221
218
  minWidth: "0px",
@@ -223,31 +220,7 @@ const A = {
223
220
  overflow: "hidden",
224
221
  textOverflow: "ellipsis",
225
222
  whiteSpace: "nowrap"
226
- }), ir = /* @__PURE__ */ n("div", {
227
- label: "AgenticTableViewSelector-divider"
228
- })({
229
- height: "1px",
230
- "--tw-bg-opacity": "1",
231
- backgroundColor: "hsl(var(--bfrs-color-border-light) / var(--tw-bg-opacity, 1))"
232
- }), ar = /* @__PURE__ */ n("button", {
233
- label: "AgenticTableViewSelector-resetButton"
234
- })({
235
- display: "flex",
236
- width: "100%",
237
- minHeight: "2.25rem",
238
- alignItems: "center",
239
- gap: ".5rem",
240
- paddingLeft: ".75rem",
241
- paddingRight: "1rem",
242
- fontSize: ".75rem",
243
- lineHeight: "1rem",
244
- fontWeight: 500,
245
- ...Kt,
246
- outline: "2px solid transparent",
247
- outlineOffset: "2px",
248
- "&:hover": $,
249
- "&:focus-visible": K("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
250
- }), Ve = /* @__PURE__ */ n("div", {
223
+ }), Fe = /* @__PURE__ */ o("div", {
251
224
  label: "AgenticTableViewSelector-empty"
252
225
  })({
253
226
  paddingLeft: ".75rem",
@@ -256,17 +229,17 @@ const A = {
256
229
  paddingBottom: ".75rem",
257
230
  fontSize: ".75rem",
258
231
  lineHeight: "1rem",
259
- ...z
260
- }), Ie = /* @__PURE__ */ n(Tt, {
232
+ ...O
233
+ }), Pe = /* @__PURE__ */ o(At, {
261
234
  label: "AgenticTableViewSelector-renameOverlay"
262
235
  })({
263
236
  position: "fixed",
264
237
  inset: 0,
265
238
  zIndex: 1050,
266
239
  backgroundColor: "hsl(var(--bfrs-color-text-primary) / .45)",
267
- ...Pt,
240
+ ...Kt,
268
241
  animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
269
- }), We = /* @__PURE__ */ n(_t, {
242
+ }), je = /* @__PURE__ */ o(It, {
270
243
  label: "AgenticTableViewSelector-renameContent"
271
244
  })({
272
245
  position: "fixed",
@@ -279,33 +252,33 @@ const A = {
279
252
  overflow: "auto",
280
253
  borderRadius: "var(--bfrs-radius-lg)",
281
254
  borderWidth: "1px",
255
+ ...ue,
282
256
  ...de,
283
- ...ce,
284
257
  padding: "1.25rem",
285
- ...A,
258
+ ...W,
286
259
  "--tw-shadow": "var(--bfrs-shadow-overlay)",
287
260
  "--tw-shadow-colored": "var(--bfrs-shadow-overlay)",
288
261
  boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
289
262
  outline: "2px solid transparent",
290
263
  outlineOffset: "2px",
291
- ...Fe({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
292
- ...Et,
264
+ ...Me({ "--tw-translate-x": "-50%", "--tw-translate-y": "-50%" }),
265
+ ...Mt,
293
266
  animation: "bfrs-bfrs-modal-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
294
- }), He = /* @__PURE__ */ n(Rt, {
267
+ }), Ne = /* @__PURE__ */ o(Wt, {
295
268
  label: "AgenticTableViewSelector-renameTitle"
296
269
  })({
297
270
  fontSize: "1.125rem",
298
271
  lineHeight: "1.5rem",
299
272
  fontWeight: 700,
300
- ...A
301
- }), Oe = /* @__PURE__ */ n(Ct, {
273
+ ...W
274
+ }), $e = /* @__PURE__ */ o(Ot, {
302
275
  label: "AgenticTableViewSelector-renameDescription"
303
276
  })({
304
277
  marginTop: ".25rem",
305
278
  fontSize: ".75rem",
306
279
  lineHeight: "1.25rem",
307
- ...z
308
- }), lr = /* @__PURE__ */ n("label", {
280
+ ...O
281
+ }), ir = /* @__PURE__ */ o("label", {
309
282
  label: "AgenticTableViewSelector-renameLabel"
310
283
  })({
311
284
  display: "block",
@@ -313,8 +286,8 @@ const A = {
313
286
  fontSize: ".75rem",
314
287
  lineHeight: "1rem",
315
288
  fontWeight: 700,
316
- ...A
317
- }), sr = /* @__PURE__ */ n("input", {
289
+ ...W
290
+ }), ar = /* @__PURE__ */ o("input", {
318
291
  label: "AgenticTableViewSelector-renameInput"
319
292
  })({
320
293
  marginTop: ".5rem",
@@ -324,24 +297,24 @@ const A = {
324
297
  borderWidth: "1.5px",
325
298
  "--tw-border-opacity": "1",
326
299
  borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))",
327
- ...ce,
300
+ ...de,
328
301
  paddingLeft: ".75rem",
329
302
  paddingRight: ".75rem",
330
303
  fontSize: ".875rem",
331
304
  lineHeight: "1.25rem",
332
305
  fontWeight: 500,
333
- ...A,
306
+ ...W,
334
307
  outline: "2px solid transparent",
335
308
  outlineOffset: "2px",
336
- "&:focus-visible": K("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
337
- }), Be = /* @__PURE__ */ n("div", {
309
+ "&:focus-visible": se("2px", "hsl(var(--bfrs-color-border-focus) / .25)")
310
+ }), Ke = /* @__PURE__ */ o("div", {
338
311
  label: "AgenticTableViewSelector-renameFooter"
339
312
  })({
340
313
  marginTop: "1.5rem",
341
314
  display: "flex",
342
315
  justifyContent: "flex-end",
343
316
  gap: ".625rem"
344
- }), cr = /* @__PURE__ */ n(M, {
317
+ }), lr = /* @__PURE__ */ o(M, {
345
318
  label: "AgenticTableViewSelector-renameSubmitButton"
346
319
  })({
347
320
  "&&:disabled": {
@@ -352,7 +325,7 @@ const A = {
352
325
  "--tw-text-opacity": "1",
353
326
  color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
354
327
  }
355
- }), dr = /* @__PURE__ */ n("p", {
328
+ }), cr = /* @__PURE__ */ o("p", {
356
329
  label: "AgenticTableViewSelector-renameFieldError"
357
330
  })({
358
331
  marginTop: ".375rem",
@@ -361,364 +334,396 @@ const A = {
361
334
  "--tw-text-opacity": "1",
362
335
  color: "hsl(var(--bfrs-color-danger) / var(--tw-text-opacity, 1))"
363
336
  });
364
- function O(o, i) {
365
- return i ? o.find((t) => t.view_id === i) ?? null : null;
337
+ function I(n, i) {
338
+ return i ? n.find((r) => r.view_id === i) ?? null : null;
366
339
  }
367
- function ur(o, i, t) {
368
- var p;
369
- const w = [], y = /* @__PURE__ */ new Set(), x = i ?? ((p = o.find((c) => c.is_default)) == null ? void 0 : p.view_id) ?? null, f = (c) => {
370
- if (!c || y.has(c)) return;
371
- const b = O(o, c);
372
- b && (w.push(b), y.add(b.view_id));
340
+ function sr(n, i, r) {
341
+ var b;
342
+ const x = [], S = /* @__PURE__ */ new Set(), T = i ?? ((b = n.find((s) => s.is_default)) == null ? void 0 : b.view_id) ?? null, h = (s) => {
343
+ if (!s || S.has(s)) return;
344
+ const u = I(n, s);
345
+ u && (x.push(u), S.add(u.view_id));
373
346
  };
374
- f(x), f(t);
375
- for (const c of o)
376
- y.has(c.view_id) || (w.push(c), y.add(c.view_id));
377
- return w;
347
+ h(T), h(r);
348
+ for (const s of n)
349
+ S.has(s.view_id) || (x.push(s), S.add(s.view_id));
350
+ return x;
378
351
  }
379
- function mr(o) {
380
- return o ? [
352
+ function dr(n) {
353
+ return n ? [
381
354
  "api",
382
- o.viewType && o.tab ? "scoped" : "local",
383
- o.saveEndpoint || o.endpoint ? "remote-save" : "local-save"
355
+ n.viewType && n.tab ? "scoped" : "local",
356
+ n.saveEndpoint || n.endpoint ? "remote-save" : "local-save"
384
357
  ].join(":") : "none";
385
358
  }
386
- function fr(o) {
387
- const i = () => o.current;
359
+ function ur(n) {
360
+ const i = () => n.current;
388
361
  return {
389
362
  get baseUrl() {
390
- var t;
391
- return (t = i()) == null ? void 0 : t.baseUrl;
363
+ var r;
364
+ return (r = i()) == null ? void 0 : r.baseUrl;
392
365
  },
393
366
  get endpoint() {
394
- var t;
395
- return (t = i()) == null ? void 0 : t.endpoint;
367
+ var r;
368
+ return (r = i()) == null ? void 0 : r.endpoint;
396
369
  },
397
370
  get saveEndpoint() {
398
- var t;
399
- return (t = i()) == null ? void 0 : t.saveEndpoint;
371
+ var r;
372
+ return (r = i()) == null ? void 0 : r.saveEndpoint;
400
373
  },
401
374
  get listEndpoint() {
402
- var t;
403
- return (t = i()) == null ? void 0 : t.listEndpoint;
375
+ var r;
376
+ return (r = i()) == null ? void 0 : r.listEndpoint;
404
377
  },
405
378
  get updateEndpoint() {
406
- var t;
407
- return (t = i()) == null ? void 0 : t.updateEndpoint;
379
+ var r;
380
+ return (r = i()) == null ? void 0 : r.updateEndpoint;
408
381
  },
409
382
  get deleteEndpoint() {
410
- var t;
411
- return (t = i()) == null ? void 0 : t.deleteEndpoint;
383
+ var r;
384
+ return (r = i()) == null ? void 0 : r.deleteEndpoint;
412
385
  },
413
386
  get viewType() {
414
- var t;
415
- return (t = i()) == null ? void 0 : t.viewType;
387
+ var r;
388
+ return (r = i()) == null ? void 0 : r.viewType;
416
389
  },
417
390
  get tab() {
418
- var t;
419
- return (t = i()) == null ? void 0 : t.tab;
391
+ var r;
392
+ return (r = i()) == null ? void 0 : r.tab;
420
393
  },
421
394
  get token() {
422
- var t;
423
- return (t = i()) == null ? void 0 : t.token;
395
+ var r;
396
+ return (r = i()) == null ? void 0 : r.token;
424
397
  },
425
398
  get headers() {
426
- var t;
427
- return (t = i()) == null ? void 0 : t.headers;
399
+ var r;
400
+ return (r = i()) == null ? void 0 : r.headers;
428
401
  },
429
402
  get credentials() {
430
- var t;
431
- return (t = i()) == null ? void 0 : t.credentials;
403
+ var r;
404
+ return (r = i()) == null ? void 0 : r.credentials;
432
405
  },
433
406
  get fetcher() {
434
- var t;
435
- return (t = i()) == null ? void 0 : t.fetcher;
407
+ var r;
408
+ return (r = i()) == null ? void 0 : r.fetcher;
436
409
  }
437
410
  };
438
411
  }
439
- function Hr({
440
- screenName: o,
412
+ function Wr({
413
+ screenName: n,
441
414
  store: i,
442
- saveApi: t,
443
- value: w,
444
- defaultValue: y,
445
- selectPrimaryByDefault: x = !0,
446
- onValueChange: f,
447
- onViewSelect: p,
448
- onPrimaryViewChange: c,
449
- onUnsetPrimaryView: b,
415
+ saveApi: r,
416
+ value: x,
417
+ defaultValue: S,
418
+ selectPrimaryByDefault: T = !0,
419
+ onValueChange: h,
420
+ onViewSelect: b,
421
+ onPrimaryViewChange: s,
422
+ onUnsetPrimaryView: u,
450
423
  onRenameView: q,
451
- onDeleteView: U,
452
- onResetSavedFilters: Y,
424
+ onDeleteView: Y,
425
+ onResetSavedFilters: _,
453
426
  onError: B,
454
- triggerLabel: Le,
455
- placeholder: De = "Views",
456
- viewsLabel: Pe = "VIEWS",
457
- primaryHintLabel: ue = "Set a view as primary to load it automatically. With no primary view, the table opens in its default state.",
458
- emptyLabel: Ee = "No saved views",
459
- loadingLabel: je = "Loading views",
460
- defaultViewLabel: Ne = "Default",
461
- setPrimaryLabel: Me = "Set as Primary View",
462
- unsetPrimaryLabel: $e = "Unset as Primary",
463
- renameLabel: Ke = "Rename",
464
- deleteLabel: qe = "Delete",
465
- renameTitle: Ue = "Rename view",
466
- renameDescription: me = "Update the saved view name.",
467
- renameInputLabel: Ye = "View name",
468
- renameCancelLabel: Ge = "Cancel",
469
- renameSaveLabel: Je = "Save",
470
- deleteTitle: Qe = "Delete view",
471
- deleteDescription: Xe,
472
- deleteCancelLabel: Ze = "Cancel",
473
- deleteConfirmLabel: et = "Delete",
474
- size: tt = "sm",
475
- disabled: rt = !1,
476
- className: ot,
477
- triggerClassName: nt,
478
- contentClassName: it,
479
- actionMenuClassName: at
427
+ triggerLabel: qe,
428
+ placeholder: Ye = "Views",
429
+ viewsLabel: Ge = "VIEWS",
430
+ primaryHintLabel: me = "Set a view as primary to load it automatically. With no primary view, the table opens in its default state.",
431
+ emptyLabel: Je = "No saved views",
432
+ loadingLabel: Qe = "Loading views",
433
+ defaultViewLabel: fe = "Default",
434
+ setPrimaryLabel: pe = "Set as Primary View",
435
+ unsetPrimaryLabel: Xe = "Unset as Primary",
436
+ renameLabel: Ze = "Rename",
437
+ deleteLabel: Ue = "Delete",
438
+ renameTitle: et = "Rename view",
439
+ renameDescription: he = "Update the saved view name.",
440
+ renameInputLabel: tt = "View name",
441
+ renameCancelLabel: rt = "Cancel",
442
+ renameSaveLabel: nt = "Save",
443
+ deleteTitle: ot = "Delete view",
444
+ deleteDescription: it,
445
+ deleteCancelLabel: at = "Cancel",
446
+ deleteConfirmLabel: lt = "Delete",
447
+ size: ct = "sm",
448
+ disabled: st = !1,
449
+ className: dt,
450
+ triggerClassName: ut,
451
+ contentClassName: mt,
452
+ actionMenuClassName: be
480
453
  }) {
481
- const fe = k(t);
482
- fe.current = t;
483
- const pe = mr(t), G = ae(
484
- () => pe === "none" ? void 0 : fr(fe),
485
- [pe]
486
- ), u = ae(
487
- () => i ?? Nt(o, G ? { saveApi: G } : void 0),
488
- [o, i, G]
489
- ), F = w !== void 0, [J, Q] = m(!1), [V, lt] = m([]), [L, st] = m(null), [ct, be] = m(y ?? null), [he, ge] = m(!1), [D, ve] = m(null), [I, X] = m(""), [h, we] = m(null), W = w ?? ct, H = k(W), P = k(F), Z = k(!1), g = k(!1), S = k(null), ye = Ft();
490
- j(() => {
491
- H.current = W, W && (g.current = !1);
492
- }, [W]), j(() => {
493
- P.current = F;
494
- }, [F]), j(() => {
495
- S.current = null, Z.current = !1, g.current = !1;
496
- }, [u, o]);
497
- const T = N(
454
+ const ge = A(r);
455
+ ge.current = r;
456
+ const ve = dr(r), G = ae(
457
+ () => ve === "none" ? void 0 : ur(ge),
458
+ [ve]
459
+ ), m = ae(
460
+ () => i ?? Yt(n, G ? { saveApi: G } : void 0),
461
+ [n, i, G]
462
+ ), L = x !== void 0, [J, Q] = p(!1), [C, ft] = p([]), [E, pt] = p(null), [ht, we] = p(S ?? null), [ye, xe] = p(!1), [F, Se] = p(null), [V, X] = p(""), [g, Te] = p(null), D = x ?? ht, H = A(D), P = A(L), Z = A(!1), v = A(!1), z = A(null), _e = Nt();
463
+ N(() => {
464
+ H.current = D, D && (v.current = !1);
465
+ }, [D]), N(() => {
466
+ P.current = L;
467
+ }, [L]), N(() => {
468
+ z.current = null, Z.current = !1, v.current = !1;
469
+ }, [m, n]);
470
+ const w = $(
498
471
  (e) => {
499
472
  B == null || B(e);
500
473
  },
501
474
  [B]
502
- ), v = N(
475
+ ), f = $(
503
476
  (e) => {
504
- e && (g.current = !1), P.current || be((e == null ? void 0 : e.view_id) ?? null), f == null || f((e == null ? void 0 : e.view_id) ?? null, e), e && (p == null || p(e));
477
+ e && (v.current = !1), P.current || we((e == null ? void 0 : e.view_id) ?? null), h == null || h((e == null ? void 0 : e.view_id) ?? null, e), e && (b == null || b(e));
505
478
  },
506
- [f, p]
507
- ), ee = N(
479
+ [h, b]
480
+ ), U = $(
508
481
  (e) => {
509
- v(e);
482
+ f(e);
510
483
  },
511
- [v]
512
- ), _ = N(
484
+ [f]
485
+ ), y = $(
513
486
  async (e) => {
514
- var Se;
515
- const l = e === void 0 ? "__default__" : e ?? "__none__";
516
- if (((Se = S.current) == null ? void 0 : Se.key) === l) return S.current.promise;
517
- const d = { key: l, promise: Promise.resolve(null) };
518
- return S.current = d, d.promise = (async () => {
519
- ge(!0);
487
+ var ze;
488
+ const a = e === void 0 ? "__default__" : e ?? "__none__";
489
+ if (((ze = z.current) == null ? void 0 : ze.key) === a) return z.current.promise;
490
+ const d = { key: a, promise: Promise.resolve(null) };
491
+ return z.current = d, d.promise = (async () => {
492
+ xe(!0);
520
493
  try {
521
- const R = await u.list(), C = R.find((St) => St.is_default) ?? null, yt = e !== void 0 ? e : H.current, Te = O(R, yt), xt = !g.current && (e !== void 0 || x || !P.current), ie = Te || !xt ? null : O(R, C == null ? void 0 : C.view_id), E = Te ?? ie ?? null;
522
- return lt(R), st((C == null ? void 0 : C.view_id) ?? null), P.current || be((E == null ? void 0 : E.view_id) ?? null), x && ie && e === void 0 && !H.current && !Z.current && (Z.current = !0, ee(ie)), E;
494
+ const R = await m.list(), k = R.find((kt) => kt.is_default) ?? null, zt = e !== void 0 ? e : H.current, Re = I(R, zt), Rt = !v.current && (e !== void 0 || T || !P.current), ie = Re || !Rt ? null : I(R, k == null ? void 0 : k.view_id), j = Re ?? ie ?? null;
495
+ return ft(R), pt((k == null ? void 0 : k.view_id) ?? null), P.current || we((j == null ? void 0 : j.view_id) ?? null), T && ie && e === void 0 && !H.current && !Z.current && (Z.current = !0, U(ie)), j;
523
496
  } catch (R) {
524
- return T(R), null;
497
+ return w(R), null;
525
498
  } finally {
526
- ge(!1), S.current === d && (S.current = null);
499
+ xe(!1), z.current === d && (z.current = null);
527
500
  }
528
501
  })(), d.promise;
529
502
  },
530
- [ee, T, u, x, v]
503
+ [U, w, m, T, f]
531
504
  );
532
- j(() => {
505
+ N(() => {
533
506
  const e = () => {
534
- _();
507
+ y();
535
508
  };
536
- return e(), u.subscribe(e);
537
- }, [_, u]);
538
- const a = O(V, W) ?? (!g.current && (x || !F) ? O(V, L) : null), dt = ae(
539
- () => ur(V, L, a == null ? void 0 : a.view_id),
540
- [L, a == null ? void 0 : a.view_id, V]
541
- ), xe = !a && (g.current || !L), ut = Le ?? (a == null ? void 0 : a.name) ?? (xe ? Ne : De), te = V.length > 0, mt = (e) => {
542
- Q(!1), ee(e);
543
- }, ft = (e) => {
544
- u.setPrimary(e.view_id).then(async (l) => {
545
- const d = await _(e.view_id);
546
- v(d ?? l), c == null || c(l);
547
- }).catch(T);
548
- }, pt = (e) => {
549
- u.unsetPrimary(e.view_id).then(async (l) => {
550
- const d = await _(e.view_id);
551
- v(d ?? l), b == null || b(l);
552
- }).catch(T);
553
- }, re = () => we(null), bt = (e) => {
554
- const l = H.current === e.view_id;
555
- u.remove(e.view_id).then(async () => {
556
- const d = await _(l ? null : H.current);
557
- l && v(d), U == null || U(e.view_id);
558
- }).catch(T).finally(re);
559
- }, ht = () => {
560
- h && bt(h);
561
- }, gt = () => {
562
- g.current = !0, v(null), Y == null || Y(), Q(!1);
563
- }, vt = (e) => {
564
- ve(e), X(e.name);
565
- }, oe = () => {
566
- ve(null), X("");
509
+ return e(), m.subscribe(e);
510
+ }, [y, m]);
511
+ const l = I(C, D) ?? (!v.current && (T || !L) ? I(C, E) : null), bt = ae(
512
+ () => sr(C, E, l == null ? void 0 : l.view_id),
513
+ [E, l == null ? void 0 : l.view_id, C]
514
+ ), ee = !l, gt = qe ?? (l == null ? void 0 : l.name) ?? (ee ? fe : Ye), te = C.length > 0, vt = (e) => {
515
+ Q(!1), U(e);
567
516
  }, wt = (e) => {
517
+ m.setPrimary(e.view_id).then(async (a) => {
518
+ const d = await y(e.view_id);
519
+ f(d ?? a), s == null || s(a);
520
+ }).catch(w);
521
+ }, yt = (e) => {
522
+ m.unsetPrimary(e.view_id).then(async (a) => {
523
+ const d = await y(e.view_id);
524
+ f(d ?? a), u == null || u(a);
525
+ }).catch(w);
526
+ }, re = () => Te(null), xt = (e) => {
527
+ const a = H.current === e.view_id;
528
+ m.remove(e.view_id).then(async () => {
529
+ const d = await y(a ? null : H.current);
530
+ a && f(d), Y == null || Y(e.view_id);
531
+ }).catch(w).finally(re);
532
+ }, St = () => {
533
+ g && xt(g);
534
+ }, Ce = () => {
535
+ v.current = !0, f(null), _ == null || _(), Q(!1);
536
+ }, Tt = () => {
537
+ const e = I(C, E);
538
+ if (!e) {
539
+ Ce();
540
+ return;
541
+ }
542
+ m.unsetPrimary(e.view_id).then(async (a) => {
543
+ v.current = !0, await y(null), f(null), _ == null || _(), u == null || u(a);
544
+ }).catch(w);
545
+ }, _t = (e) => {
546
+ Se(e), X(e.name);
547
+ }, ne = () => {
548
+ Se(null), X("");
549
+ }, Ct = (e) => {
568
550
  e.preventDefault();
569
- const l = I.trim();
570
- !D || !l || Ae(l) || u.rename(D.view_id, l).then(async (d) => {
571
- await _(D.view_id), q == null || q(d), oe();
572
- }).catch(T);
573
- }, ne = Ae(I);
574
- return te ? /* @__PURE__ */ s(Yt, { className: ot, children: [
575
- /* @__PURE__ */ s(kt, { open: J, onOpenChange: Q, children: [
576
- /* @__PURE__ */ r(At, { asChild: !0, children: /* @__PURE__ */ s(
577
- Gt,
551
+ const a = V.trim();
552
+ !F || !a || Ve(a) || m.rename(F.view_id, a).then(async (d) => {
553
+ await y(F.view_id), q == null || q(d), ne();
554
+ }).catch(w);
555
+ }, oe = Ve(V);
556
+ return te ? /* @__PURE__ */ c(Xt, { className: dt, children: [
557
+ /* @__PURE__ */ c(Vt, { open: J, onOpenChange: Q, children: [
558
+ /* @__PURE__ */ t(Dt, { asChild: !0, children: /* @__PURE__ */ c(
559
+ Zt,
578
560
  {
579
561
  type: "button",
580
562
  "aria-label": "Saved views",
581
- className: nt,
582
- disabled: rt,
583
- "data-filled": a ? "" : void 0,
584
- ownerState: { open: J, empty: !a, filled: !!a, defaultSelected: xe, size: tt },
563
+ className: ut,
564
+ disabled: st,
565
+ "data-filled": l ? "" : void 0,
566
+ ownerState: { open: J, empty: !l, filled: !!l, defaultSelected: ee, size: ct },
585
567
  children: [
586
- /* @__PURE__ */ r(ke, { size: 13 }),
587
- /* @__PURE__ */ r(Jt, { children: ut }),
588
- a != null && a.is_default ? /* @__PURE__ */ r(ze, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
589
- /* @__PURE__ */ r(Qt, { size: 13, ownerState: { open: J } })
568
+ /* @__PURE__ */ t(Lt, { size: 13 }),
569
+ /* @__PURE__ */ t(Ut, { children: gt }),
570
+ l != null && l.is_default ? /* @__PURE__ */ t(He, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
571
+ /* @__PURE__ */ t(er, { size: 13, ownerState: { open: J } })
590
572
  ]
591
573
  }
592
574
  ) }),
593
- /* @__PURE__ */ r(zt, { children: /* @__PURE__ */ r(le, { children: /* @__PURE__ */ s(
594
- Xt,
575
+ /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ t(le, { children: /* @__PURE__ */ c(
576
+ tr,
595
577
  {
596
578
  align: "start",
597
579
  sideOffset: 8,
598
- collisionPadding: jt,
599
- className: it,
580
+ collisionPadding: qt,
581
+ className: mt,
600
582
  children: [
601
- /* @__PURE__ */ s(Zt, { children: [
602
- Pe,
603
- ue ? /* @__PURE__ */ r(Mt, { content: ue, side: "right", variant: "white", children: /* @__PURE__ */ r(er, { role: "img", "aria-label": "About primary views", children: /* @__PURE__ */ r(Ht, { size: 13, weight: "fill", "aria-hidden": "true" }) }) }) : null
583
+ /* @__PURE__ */ c(rr, { children: [
584
+ Ge,
585
+ me ? /* @__PURE__ */ t(Gt, { content: me, side: "right", variant: "white", children: /* @__PURE__ */ t(nr, { role: "img", "aria-label": "About primary views", children: /* @__PURE__ */ t(Ft, { size: 13, weight: "fill", "aria-hidden": "true" }) }) }) : null
604
586
  ] }),
605
- /* @__PURE__ */ s(tr, { children: [
606
- he && !te ? /* @__PURE__ */ r(Ve, { children: je }) : null,
607
- !he && !te ? /* @__PURE__ */ r(Ve, { children: Ee }) : null,
608
- dt.map((e) => {
609
- const l = (a == null ? void 0 : a.view_id) === e.view_id;
610
- return /* @__PURE__ */ s(rr, { children: [
611
- /* @__PURE__ */ s(or, { type: "button", ownerState: { selected: l }, onClick: () => mt(e), children: [
612
- /* @__PURE__ */ r(nr, { children: e.name }),
613
- e.is_default ? /* @__PURE__ */ r(ze, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
587
+ /* @__PURE__ */ c(or, { children: [
588
+ ye && !te ? /* @__PURE__ */ t(Fe, { children: Qe }) : null,
589
+ !ye && !te ? /* @__PURE__ */ t(Fe, { children: Je }) : null,
590
+ /* @__PURE__ */ c(Be, { children: [
591
+ /* @__PURE__ */ t(Le, { type: "button", ownerState: { selected: ee }, onClick: Ce, children: /* @__PURE__ */ t(Ee, { children: fe }) }),
592
+ /* @__PURE__ */ t(
593
+ De,
594
+ {
595
+ align: "start",
596
+ side: "right",
597
+ size: "sm",
598
+ className: be,
599
+ trigger: /* @__PURE__ */ t(
600
+ Oe,
601
+ {
602
+ variant: "secondary",
603
+ size: "sm",
604
+ icon: /* @__PURE__ */ t(We, { size: 14, weight: "bold" }),
605
+ "aria-label": "View actions for Default"
606
+ }
607
+ ),
608
+ items: [
609
+ {
610
+ label: pe,
611
+ icon: /* @__PURE__ */ t(K, { size: 16 }),
612
+ onSelect: Tt
613
+ }
614
+ ]
615
+ }
616
+ )
617
+ ] }),
618
+ bt.map((e) => {
619
+ const a = (l == null ? void 0 : l.view_id) === e.view_id;
620
+ return /* @__PURE__ */ c(Be, { children: [
621
+ /* @__PURE__ */ c(Le, { type: "button", ownerState: { selected: a }, onClick: () => vt(e), children: [
622
+ /* @__PURE__ */ t(Ee, { children: e.name }),
623
+ e.is_default ? /* @__PURE__ */ t(He, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
614
624
  ] }),
615
- /* @__PURE__ */ r(
616
- $t,
625
+ /* @__PURE__ */ t(
626
+ De,
617
627
  {
618
628
  align: "start",
619
629
  side: "right",
620
630
  size: "sm",
621
- className: at,
622
- trigger: /* @__PURE__ */ r(
623
- Lt,
631
+ className: be,
632
+ trigger: /* @__PURE__ */ t(
633
+ Oe,
624
634
  {
625
635
  variant: "secondary",
626
636
  size: "sm",
627
- icon: /* @__PURE__ */ r(Wt, { size: 14, weight: "bold" }),
637
+ icon: /* @__PURE__ */ t(We, { size: 14, weight: "bold" }),
628
638
  "aria-label": `View actions for ${e.name}`
629
639
  }
630
640
  ),
631
641
  items: [
632
642
  ...e.is_system_defined ? [] : [
633
643
  e.is_default ? {
634
- label: $e,
635
- icon: /* @__PURE__ */ r(se, { size: 16 }),
636
- onSelect: () => pt(e)
644
+ label: Xe,
645
+ icon: /* @__PURE__ */ t(K, { size: 16 }),
646
+ onSelect: () => yt(e)
637
647
  } : {
638
- label: Me,
639
- icon: /* @__PURE__ */ r(se, { size: 16 }),
640
- onSelect: () => ft(e)
648
+ label: pe,
649
+ icon: /* @__PURE__ */ t(K, { size: 16 }),
650
+ onSelect: () => wt(e)
641
651
  }
642
652
  ],
643
653
  {
644
- label: Ke,
645
- icon: /* @__PURE__ */ r(Ot, { size: 16 }),
646
- onSelect: () => vt(e)
654
+ label: Ze,
655
+ icon: /* @__PURE__ */ t(Pt, { size: 16 }),
656
+ onSelect: () => _t(e)
647
657
  },
648
658
  {
649
- label: qe,
650
- icon: /* @__PURE__ */ r(Bt, { size: 16 }),
659
+ label: Ue,
660
+ icon: /* @__PURE__ */ t(jt, { size: 16 }),
651
661
  destructive: !0,
652
- onSelect: () => we(e)
662
+ onSelect: () => Te(e)
653
663
  }
654
664
  ]
655
665
  }
656
666
  )
657
667
  ] }, e.view_id);
658
668
  })
659
- ] }),
660
- /* @__PURE__ */ r(ir, {}),
661
- /* @__PURE__ */ s(ar, { type: "button", onClick: gt, children: [
662
- /* @__PURE__ */ r(ke, { size: 16 }),
663
- /* @__PURE__ */ r("span", { children: "Switch to default" })
664
669
  ] })
665
670
  ]
666
671
  }
667
672
  ) }) })
668
673
  ] }),
669
- /* @__PURE__ */ r(Re, { open: !!D, onOpenChange: (e) => {
670
- e || oe();
671
- }, children: /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s(le, { children: [
672
- /* @__PURE__ */ r(Ie, {}),
673
- /* @__PURE__ */ r(We, { children: /* @__PURE__ */ s("form", { onSubmit: wt, children: [
674
- /* @__PURE__ */ r(He, { children: Ue }),
675
- me ? /* @__PURE__ */ r(Oe, { children: me }) : null,
676
- /* @__PURE__ */ r(lr, { htmlFor: ye, children: Ye }),
677
- /* @__PURE__ */ r(
678
- sr,
674
+ /* @__PURE__ */ t(Ae, { open: !!F, onOpenChange: (e) => {
675
+ e || ne();
676
+ }, children: /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ c(le, { children: [
677
+ /* @__PURE__ */ t(Pe, {}),
678
+ /* @__PURE__ */ t(je, { children: /* @__PURE__ */ c("form", { onSubmit: Ct, children: [
679
+ /* @__PURE__ */ t(Ne, { children: et }),
680
+ he ? /* @__PURE__ */ t($e, { children: he }) : null,
681
+ /* @__PURE__ */ t(ir, { htmlFor: _e, children: tt }),
682
+ /* @__PURE__ */ t(
683
+ ar,
679
684
  {
680
- id: ye,
685
+ id: _e,
681
686
  autoFocus: !0,
682
- value: I,
687
+ value: V,
683
688
  onChange: (e) => X(e.currentTarget.value),
684
- "aria-invalid": ne
689
+ "aria-invalid": oe
685
690
  }
686
691
  ),
687
- ne ? /* @__PURE__ */ s(dr, { children: [
692
+ oe ? /* @__PURE__ */ c(cr, { children: [
688
693
  "“",
689
- I.trim(),
694
+ V.trim(),
690
695
  "” is reserved. Choose a different name."
691
696
  ] }) : null,
692
- /* @__PURE__ */ s(Be, { children: [
693
- /* @__PURE__ */ r(M, { type: "button", variant: "secondary", onClick: oe, children: Ge }),
694
- /* @__PURE__ */ r(cr, { type: "submit", disabled: I.trim().length === 0 || ne, children: Je })
697
+ /* @__PURE__ */ c(Ke, { children: [
698
+ /* @__PURE__ */ t(M, { type: "button", variant: "secondary", onClick: ne, children: rt }),
699
+ /* @__PURE__ */ t(lr, { type: "submit", disabled: V.trim().length === 0 || oe, children: nt })
695
700
  ] })
696
701
  ] }) })
697
702
  ] }) }) }),
698
- /* @__PURE__ */ r(Re, { open: !!h, onOpenChange: (e) => {
703
+ /* @__PURE__ */ t(Ae, { open: !!g, onOpenChange: (e) => {
699
704
  e || re();
700
- }, children: /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s(le, { children: [
701
- /* @__PURE__ */ r(Ie, {}),
702
- /* @__PURE__ */ s(We, { children: [
703
- /* @__PURE__ */ r(He, { children: Qe }),
704
- /* @__PURE__ */ r(Oe, { children: Xe ?? /* @__PURE__ */ s(_e, { children: [
705
+ }, children: /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ c(le, { children: [
706
+ /* @__PURE__ */ t(Pe, {}),
707
+ /* @__PURE__ */ c(je, { children: [
708
+ /* @__PURE__ */ t(Ne, { children: ot }),
709
+ /* @__PURE__ */ t($e, { children: it ?? /* @__PURE__ */ c(ke, { children: [
705
710
  "Are you sure you want to delete",
706
- h != null && h.name ? /* @__PURE__ */ s(_e, { children: [
711
+ g != null && g.name ? /* @__PURE__ */ c(ke, { children: [
707
712
  " “",
708
- /* @__PURE__ */ r("strong", { children: h.name }),
713
+ /* @__PURE__ */ t("strong", { children: g.name }),
709
714
  "”"
710
715
  ] }) : " this view",
711
716
  "? This can’t be undone."
712
717
  ] }) }),
713
- /* @__PURE__ */ s(Be, { children: [
714
- /* @__PURE__ */ r(M, { type: "button", variant: "secondary", onClick: re, children: Ze }),
715
- /* @__PURE__ */ r(M, { type: "button", variant: "danger", onClick: ht, children: et })
718
+ /* @__PURE__ */ c(Ke, { children: [
719
+ /* @__PURE__ */ t(M, { type: "button", variant: "secondary", onClick: re, children: at }),
720
+ /* @__PURE__ */ t(M, { type: "button", variant: "danger", onClick: St, children: lt })
716
721
  ] })
717
722
  ] })
718
723
  ] }) }) })
719
724
  ] }) : null;
720
725
  }
721
726
  export {
722
- Hr as TableViewSelector
727
+ Wr as TableViewSelector
723
728
  };
724
729
  //# sourceMappingURL=TableViewSelector.js.map