@bfrs/agentic-components 0.7.7 → 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 (29) 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 +1 -0
  5. package/dist/components/data-display/DataTable/TableSaveView.js +6 -1
  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.js +296 -269
  10. package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
  11. package/dist/components/data-display/DataTable/saveViewApi.d.ts +13 -4
  12. package/dist/components/data-display/DataTable/saveViewApi.js +154 -144
  13. package/dist/components/data-display/DataTable/saveViewApi.js.map +1 -1
  14. package/dist/components/data-display/DataTable/useSavedViews.d.ts +8 -8
  15. package/dist/components/data-display/DataTable/useSavedViews.js +33 -51
  16. package/dist/components/data-display/DataTable/useSavedViews.js.map +1 -1
  17. package/dist/components/data-display/DataTable/viewCache.d.ts +75 -0
  18. package/dist/components/data-display/DataTable/viewCache.js +83 -0
  19. package/dist/components/data-display/DataTable/viewCache.js.map +1 -0
  20. package/dist/components/data-display/DataTable/viewStore.d.ts +11 -8
  21. package/dist/components/data-display/DataTable/viewStore.js +201 -208
  22. package/dist/components/data-display/DataTable/viewStore.js.map +1 -1
  23. package/dist/custom-elements.js +10597 -10516
  24. package/dist/custom-elements.js.map +1 -1
  25. package/package.json +1 -1
  26. package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js +0 -11
  27. package/dist/node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js.map +0 -1
  28. package/dist/node_modules/@phosphor-icons/react/dist/defs/ArrowCounterClockwise.es.js +0 -31
  29. 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 yt, Content as xt, Title as St, Description as Tt } from "../../../node_modules/@radix-ui/react-dialog/dist/index.js";
3
- import { Root as _t, Trigger as Rt, Portal as Ct, Content as kt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
4
- import { ArrowCounterClockwise as zt } from "../../../node_modules/@phosphor-icons/react/dist/csr/ArrowCounterClockwise.es.js";
5
- import { BookmarkSimple as At } from "../../../node_modules/@phosphor-icons/react/dist/csr/BookmarkSimple.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";
6
5
  import { CaretDown as Wt } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
7
- import { DotsThreeVertical as Vt } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
8
- import { PencilSimple as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/PencilSimple.es.js";
6
+ import { DotsThreeVertical as It } from "../../../node_modules/@phosphor-icons/react/dist/csr/DotsThreeVertical.es.js";
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 Ot } from "../../../node_modules/@phosphor-icons/react/dist/csr/Trash.es.js";
11
- import { useRef as k, useMemo as ie, useState as f, useId as Lt, useEffect as E, useCallback as F } from "react";
12
- import i from "@emotion/styled";
13
- import { IconButton as Ht, Button as j } from "../../primitives/Button/Button.js";
14
- import { twRing as N, twTransform as We, kfContentIn as Dt, kfOverlayIn as Pt, kfModalContentIn as Bt } from "../../../lib/emotionTw.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";
15
14
  import { floatingCollisionPadding as Et } from "../../ui/overlays/overlayPositioning.js";
16
- import { createTableViewSelectorStore as Ft } from "./viewStore.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
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
- }, Nt = /* @__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
- }), Mt = /* @__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
- ]), Kt = /* @__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
- }), $t = /* @__PURE__ */ i(Wt, {
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
- ]), qt = /* @__PURE__ */ i(kt, {
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
- ...Dt,
124
+ ...Ft,
122
125
  animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
123
- }), Ut = /* @__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
- }), Yt = /* @__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
- }), Gt = /* @__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
- }), Jt = /* @__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
- ]), Qt = /* @__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
- }), Xt = /* @__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
- }), Zt = /* @__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(yt, {
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
- ...Pt,
234
+ ...Dt,
232
235
  animation: "bfrs-bfrs-overlay-in var(--bfrs-motion-fast) var(--bfrs-ease-out)"
233
- }), Ce = /* @__PURE__ */ i(xt, {
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
- ...Bt,
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(St, {
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(Tt, {
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
- }), er = /* @__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
- }), tr = /* @__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,185 +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 rr(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 nr(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 or(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 Tr({
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
- defaultViewLabel: Be = "Default",
409
- setPrimaryLabel: Ee = "Set as Primary View",
410
- unsetPrimaryLabel: Fe = "Unset as Primary",
411
- renameLabel: je = "Rename",
412
- deleteLabel: Ne = "Delete",
413
- renameTitle: Me = "Rename view",
414
- renameDescription: ce = "Update the saved view name.",
415
- renameInputLabel: Ke = "View name",
416
- renameCancelLabel: $e = "Cancel",
417
- renameSaveLabel: qe = "Save",
418
- deleteTitle: Ue = "Delete view",
419
- deleteDescription: Ye,
420
- deleteCancelLabel: Ge = "Cancel",
421
- deleteConfirmLabel: Je = "Delete",
422
- size: Qe = "sm",
423
- disabled: Xe = !1,
424
- className: Ze,
425
- triggerClassName: et,
426
- contentClassName: tt,
427
- actionMenuClassName: rt
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
428
446
  }) {
429
- const de = k(t);
430
- de.current = t;
431
- const ue = nr(t), U = ie(
432
- () => ue === "none" ? void 0 : or(de),
433
- [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]
434
452
  ), u = ie(
435
- () => o ?? Ft(n, U ? { saveApi: U } : void 0),
436
- [n, o, U]
437
- ), H = w !== void 0, [Y, G] = f(!1), [A, nt] = f([]), [J, ot] = f(null), [it, me] = f(y ?? null), [fe, pe] = f(!1), [D, be] = f(null), [Q, X] = f(""), [g, he] = f(null), W = w ?? it, V = k(W), P = k(H), Z = k(!1), v = k(!1), S = k(null), ge = Lt();
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();
438
456
  E(() => {
439
- V.current = W, W && (v.current = !1);
457
+ I.current = W, W && (g.current = !1);
440
458
  }, [W]), E(() => {
441
- P.current = H;
442
- }, [H]), E(() => {
443
- S.current = null, Z.current = !1, v.current = !1;
444
- }, [u, n]);
445
- 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(
446
464
  (e) => {
447
- L == null || L(e);
465
+ H == null || H(e);
448
466
  },
449
- [L]
450
- ), m = F(
467
+ [H]
468
+ ), v = N(
451
469
  (e) => {
452
- 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));
453
471
  },
454
- [p, b]
455
- ), ee = F(
472
+ [f, p]
473
+ ), Z = N(
456
474
  (e) => {
457
- u.get(e.view_id).then((a) => m(a ?? e)).catch(() => m(e));
475
+ v(e);
458
476
  },
459
- [u, m]
460
- ), _ = F(
477
+ [v]
478
+ ), _ = N(
461
479
  async (e) => {
462
- var ve;
463
- const a = e === void 0 ? "__default__" : e ?? "__none__";
464
- if (((ve = S.current) == null ? void 0 : ve.key) === a) return S.current.promise;
465
- 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) };
466
484
  return S.current = d, d.promise = (async () => {
467
- pe(!0);
485
+ be(!0);
468
486
  try {
469
- const R = await u.list(), C = R.find((wt) => wt.is_default) ?? null, gt = e !== void 0 ? e : V.current, we = I(R, gt), vt = !v.current && (e !== void 0 || x || !P.current), oe = we || !vt ? null : I(R, C == null ? void 0 : C.view_id), B = we ?? oe ?? null;
470
- return nt(R), ot((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;
471
489
  } catch (R) {
472
490
  return T(R), null;
473
491
  } finally {
474
- pe(!1), S.current === d && (S.current = null);
492
+ be(!1), S.current === d && (S.current = null);
475
493
  }
476
494
  })(), d.promise;
477
495
  },
478
- [ee, T, u, x, m]
496
+ [Z, T, u, x, v]
479
497
  );
480
498
  E(() => {
481
499
  const e = () => {
@@ -483,78 +501,79 @@ function Tr({
483
501
  };
484
502
  return e(), u.subscribe(e);
485
503
  }, [_, u]);
486
- const l = I(A, W) ?? (!v.current && (x || !H) ? I(A, J) : null), at = ie(
487
- () => rr(A, J, l == null ? void 0 : l.view_id),
488
- [J, l == null ? void 0 : l.view_id, A]
489
- ), lt = !l && v.current, st = Oe ?? (l == null ? void 0 : l.name) ?? (lt ? Be : Le), te = A.length > 0, ct = (e) => {
490
- G(!1), ee(e);
491
- }, dt = (e) => {
492
- 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) => {
493
511
  const d = await _(e.view_id);
494
- m(d ?? a), c == null || c(a);
512
+ v(d ?? l), c == null || c(l);
495
513
  }).catch(T);
496
- }, ut = (e) => {
497
- u.unsetPrimary(e.view_id).then(async (a) => {
514
+ }, pt = (e) => {
515
+ u.unsetPrimary(e.view_id).then(async (l) => {
498
516
  const d = await _(e.view_id);
499
- m(d ?? a), h == null || h(a);
517
+ v(d ?? l), b == null || b(l);
500
518
  }).catch(T);
501
- }, re = () => he(null), mt = (e) => {
502
- const a = V.current === e.view_id;
519
+ }, te = () => ge(null), bt = (e) => {
520
+ const l = I.current === e.view_id;
503
521
  u.remove(e.view_id).then(async () => {
504
- const d = await _(a ? null : V.current);
505
- a && m(d), $ == null || $(e.view_id);
506
- }).catch(T).finally(re);
507
- }, ft = () => {
508
- g && mt(g);
509
- }, pt = () => {
510
- v.current = !0, m(null), q == null || q(), G(!1);
511
- }, bt = (e) => {
512
- be(e), X(e.name);
513
- }, ne = () => {
514
- be(null), X("");
515
- }, ht = (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) => {
516
534
  e.preventDefault();
517
- const a = Q.trim();
518
- !D || !a || u.rename(D.view_id, a).then(async (d) => {
519
- 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();
520
538
  }).catch(T);
521
- };
522
- return te ? /* @__PURE__ */ s(Nt, { className: Ze, children: [
523
- /* @__PURE__ */ s(_t, { open: Y, onOpenChange: G, children: [
524
- /* @__PURE__ */ r(Rt, { asChild: !0, children: /* @__PURE__ */ s(
525
- Mt,
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(
543
+ Kt,
526
544
  {
527
545
  type: "button",
528
546
  "aria-label": "Saved views",
529
- className: et,
530
- disabled: Xe,
531
- ownerState: { open: Y, empty: !l, size: Qe },
547
+ className: ot,
548
+ disabled: tt,
549
+ "data-filled": a ? "" : void 0,
550
+ ownerState: { open: Y, empty: !a, filled: !!a, size: et },
532
551
  children: [
533
- /* @__PURE__ */ r(At, { size: 13 }),
534
- /* @__PURE__ */ r(Kt, { children: st }),
535
- l != null && l.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null,
536
- /* @__PURE__ */ r($t, { size: 13, ownerState: { open: Y } })
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,
555
+ /* @__PURE__ */ r(qt, { size: 13, ownerState: { open: Y } })
537
556
  ]
538
557
  }
539
558
  ) }),
540
- /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
541
- qt,
559
+ /* @__PURE__ */ r(At, { children: /* @__PURE__ */ r(ae, { children: /* @__PURE__ */ s(
560
+ Ut,
542
561
  {
543
562
  align: "start",
544
563
  sideOffset: 8,
545
564
  collisionPadding: Et,
546
- className: tt,
565
+ className: nt,
547
566
  children: [
548
- /* @__PURE__ */ r(Ut, { children: He }),
549
- /* @__PURE__ */ s(Yt, { children: [
550
- fe && !te ? /* @__PURE__ */ r(_e, { children: Pe }) : null,
551
- !fe && !te ? /* @__PURE__ */ r(_e, { children: De }) : null,
552
- at.map((e) => {
553
- const a = (l == null ? void 0 : l.view_id) === e.view_id;
554
- return /* @__PURE__ */ s(Gt, { children: [
555
- /* @__PURE__ */ s(Jt, { type: "button", ownerState: { selected: a }, onClick: () => ct(e), children: [
556
- /* @__PURE__ */ r(Qt, { children: e.name }),
557
- e.is_default ? /* @__PURE__ */ r(Te, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
567
+ /* @__PURE__ */ r(Yt, { children: De }),
568
+ /* @__PURE__ */ s(Gt, { children: [
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;
573
+ return /* @__PURE__ */ s(Jt, { children: [
574
+ /* @__PURE__ */ s(Qt, { type: "button", ownerState: { selected: l }, onClick: () => mt(e), children: [
575
+ /* @__PURE__ */ r(Xt, { children: e.name }),
576
+ e.is_default ? /* @__PURE__ */ r(Ce, { size: 13, "aria-hidden": "true", "data-primary-view-indicator": "outline" }) : null
558
577
  ] }),
559
578
  /* @__PURE__ */ r(
560
579
  jt,
@@ -562,36 +581,38 @@ function Tr({
562
581
  align: "start",
563
582
  side: "right",
564
583
  size: "sm",
565
- className: rt,
584
+ className: it,
566
585
  trigger: /* @__PURE__ */ r(
567
- Ht,
586
+ Lt,
568
587
  {
569
588
  variant: "secondary",
570
589
  size: "sm",
571
- icon: /* @__PURE__ */ r(Vt, { size: 14, weight: "bold" }),
590
+ icon: /* @__PURE__ */ r(It, { size: 14, weight: "bold" }),
572
591
  "aria-label": `View actions for ${e.name}`
573
592
  }
574
593
  ),
575
594
  items: [
576
- e.is_default ? {
577
- label: Fe,
578
- icon: /* @__PURE__ */ r(le, { size: 16 }),
579
- onSelect: () => ut(e)
580
- } : {
581
- label: Ee,
582
- icon: /* @__PURE__ */ r(le, { size: 16 }),
583
- onSelect: () => dt(e)
584
- },
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
+ ],
585
606
  {
586
- label: je,
587
- icon: /* @__PURE__ */ r(It, { size: 16 }),
588
- onSelect: () => bt(e)
607
+ label: Ke,
608
+ icon: /* @__PURE__ */ r(Ot, { size: 16 }),
609
+ onSelect: () => vt(e)
589
610
  },
590
611
  {
591
- label: Ne,
592
- icon: /* @__PURE__ */ r(Ot, { size: 16 }),
612
+ label: $e,
613
+ icon: /* @__PURE__ */ r(Bt, { size: 16 }),
593
614
  destructive: !0,
594
- onSelect: () => he(e)
615
+ onSelect: () => ge(e)
595
616
  }
596
617
  ]
597
618
  }
@@ -599,62 +620,68 @@ function Tr({
599
620
  ] }, e.view_id);
600
621
  })
601
622
  ] }),
602
- /* @__PURE__ */ r(Xt, {}),
603
- /* @__PURE__ */ s(Zt, { type: "button", onClick: pt, children: [
604
- /* @__PURE__ */ r(zt, { size: 16 }),
623
+ /* @__PURE__ */ r(Zt, {}),
624
+ /* @__PURE__ */ s(er, { type: "button", onClick: gt, children: [
625
+ /* @__PURE__ */ r(_e, { size: 16 }),
605
626
  /* @__PURE__ */ r("span", { children: "Switch to default" })
606
627
  ] })
607
628
  ]
608
629
  }
609
630
  ) }) })
610
631
  ] }),
611
- /* @__PURE__ */ r(xe, { open: !!D, onOpenChange: (e) => {
612
- e || ne();
613
- }, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
614
- /* @__PURE__ */ r(Re, {}),
615
- /* @__PURE__ */ r(Ce, { children: /* @__PURE__ */ s("form", { onSubmit: ht, children: [
616
- /* @__PURE__ */ r(ke, { children: Me }),
617
- ce ? /* @__PURE__ */ r(ze, { children: ce }) : null,
618
- /* @__PURE__ */ r(er, { htmlFor: ge, children: Ke }),
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 }),
619
640
  /* @__PURE__ */ r(
620
- tr,
641
+ rr,
621
642
  {
622
- id: ge,
643
+ id: ve,
623
644
  autoFocus: !0,
624
- value: Q,
625
- onChange: (e) => X(e.currentTarget.value)
645
+ value: V,
646
+ onChange: (e) => Q(e.currentTarget.value),
647
+ "aria-invalid": oe
626
648
  }
627
649
  ),
628
- /* @__PURE__ */ s(Ae, { children: [
629
- /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: ne, children: $e }),
630
- /* @__PURE__ */ r(j, { type: "submit", disabled: Q.trim().length === 0, children: qe })
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 })
631
658
  ] })
632
659
  ] }) })
633
660
  ] }) }) }),
634
- /* @__PURE__ */ r(xe, { open: !!g, onOpenChange: (e) => {
635
- e || re();
636
- }, children: /* @__PURE__ */ r(Se, { children: /* @__PURE__ */ s(ae, { children: [
637
- /* @__PURE__ */ r(Re, {}),
638
- /* @__PURE__ */ s(Ce, { children: [
639
- /* @__PURE__ */ r(ke, { children: Ue }),
640
- /* @__PURE__ */ r(ze, { children: Ye ?? /* @__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: [
641
668
  "Are you sure you want to delete",
642
- g != null && g.name ? /* @__PURE__ */ s(ye, { children: [
669
+ h != null && h.name ? /* @__PURE__ */ s(xe, { children: [
643
670
  " “",
644
- /* @__PURE__ */ r("strong", { children: g.name }),
671
+ /* @__PURE__ */ r("strong", { children: h.name }),
645
672
  "”"
646
673
  ] }) : " this view",
647
674
  "? This can’t be undone."
648
675
  ] }) }),
649
- /* @__PURE__ */ s(Ae, { children: [
650
- /* @__PURE__ */ r(j, { type: "button", variant: "secondary", onClick: re, children: Ge }),
651
- /* @__PURE__ */ r(j, { type: "button", variant: "danger", onClick: ft, children: Je })
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 })
652
679
  ] })
653
680
  ] })
654
681
  ] }) }) })
655
682
  ] }) : null;
656
683
  }
657
684
  export {
658
- Tr as TableViewSelector
685
+ Rr as TableViewSelector
659
686
  };
660
687
  //# sourceMappingURL=TableViewSelector.js.map