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