react-semaphor 0.1.204 → 0.1.205

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 (34) hide show
  1. package/dist/chunks/dashboard-controls-DekrQ0yg.js +42 -0
  2. package/dist/chunks/dashboard-controls-n5_oB_dp.js +1584 -0
  3. package/dist/chunks/{dashboard-json-Cwh8kbV9.js → dashboard-json-B5YyWsMv.js} +5 -5
  4. package/dist/chunks/{dashboard-json-Dh8csIFq.js → dashboard-json-VG8uFdaU.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-_3iUVFkC.js → dashboard-summary-settings-dialog-B7_fbNYb.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-BL4vn4lZ.js → dashboard-summary-settings-dialog-DnfxWTj2.js} +55 -55
  7. package/dist/chunks/{edit-dashboard-visual-RiCeBX0X.js → edit-dashboard-visual-BxDQKLvc.js} +9 -9
  8. package/dist/chunks/{edit-dashboard-visual-DEc3lB9j.js → edit-dashboard-visual-bl33bktZ.js} +928 -914
  9. package/dist/chunks/{editor-action-buttons-BfLWRprW.js → editor-action-buttons-BUAzU5tX.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-DovtyKKL.js → editor-action-buttons-DngVSXyw.js} +65 -65
  11. package/dist/chunks/index-CtLqMYAL.js +1109 -0
  12. package/dist/chunks/{index-DaQXz6Oi.js → index-em2ecoK3.js} +33535 -29709
  13. package/dist/chunks/notification-bell-BWh1ZNB4.js +11 -0
  14. package/dist/chunks/{notification-bell-Cn3-W-S3.js → notification-bell-Ck-SNMez.js} +232 -233
  15. package/dist/chunks/{resource-management-panel-qsbMXn91.js → resource-management-panel-BGJ4XMn5.js} +188 -188
  16. package/dist/chunks/{resource-management-panel-DBnpAHFb.js → resource-management-panel-Ji1DZtnk.js} +1 -1
  17. package/dist/chunks/{use-role-aware-display-preferences-B22nZN2c.js → use-role-aware-display-preferences-C0-SK5cT.js} +1 -1
  18. package/dist/chunks/{use-role-aware-display-preferences-CnipXO4k.js → use-role-aware-display-preferences-DEkMGyx9.js} +1 -1
  19. package/dist/chunks/{use-visual-utils-JlfPxiXq.js → use-visual-utils-BLdGPBdR.js} +1 -1
  20. package/dist/chunks/{use-visual-utils-B9X7-yfe.js → use-visual-utils-BYBat4tj.js} +28 -28
  21. package/dist/dashboard/index.cjs +1 -1
  22. package/dist/dashboard/index.js +1 -1
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +258 -173
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/dist/types/main.d.ts +813 -2
  29. package/dist/types/types.d.ts +222 -0
  30. package/package.json +2 -1
  31. package/dist/chunks/dashboard-controls-D5VrI40y.js +0 -42
  32. package/dist/chunks/dashboard-controls-p7I_UrIz.js +0 -1661
  33. package/dist/chunks/index-CpnMO9b6.js +0 -1087
  34. package/dist/chunks/notification-bell-DsJcuxld.js +0 -11
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as n, Fragment as ge } from "react/jsx-runtime";
2
- import { b3 as Qe, u as me, az as Xe, bf as re, bj as Ze, bk as $e, c as Z, bl as ke, bm as et, bn as tt, B as _, bo as st, bp as nt, bq as G, br as pe, aW as oe, bs as at, bt as it, bu as rt, bv as ve, bw as De, bx as ot, by as lt, I as dt, bz as ye, e as le, bA as Se, bB as Ee, bC as ct, M as Ve, H as Le, bD as Ae, bE as Oe, bF as Te, bG as Re, bH as Pe, bI as Ue, bJ as Ie, bK as Me, bL as je, bM as ut, bN as ht, bO as Fe, bP as ze, bQ as Be, bR as mt, bS as He, bT as pt, A as ae, aK as ft, bU as _e, bV as gt, bW as Dt, aL as xt, aM as bt, aN as Nt, aO as wt, aP as vt, aS as Ce, bX as fe, aV as Ct, bY as yt, bZ as St, b_ as Et, b$ as Vt } from "./index-DaQXz6Oi.js";
2
+ import { bI as $e, u as me, bA as Je, bU as re, bY as Qe, bZ as Xe, b_ as ke, b$ as et, c0 as tt, B as _, c1 as st, c2 as nt, c3 as K, c4 as pe, H as oe, c5 as at, c6 as it, c7 as rt, c8 as Ce, c9 as De, ca as ot, cb as lt, a2 as dt, c as Q, cc as be, e as le, cd as Se, ce as Ee, cf as ct, ai as Ve, ag as Le, cg as Ae, ch as Te, ci as Oe, cj as Re, ck as Pe, cl as Ue, cm as Ie, cn as je, co as Me, cp as ut, cq as ht, cr as Fe, cs as ze, ct as Be, cu as mt, cv as He, cw as pt, bE as ae, l as ft, cx as _e, cy as gt, cz as Dt, m as xt, n as Nt, o as wt, p as vt, q as Ct, L as ye, cA as fe, G as yt, cB as bt, cC as St, cD as Et, cE as Vt } from "./index-em2ecoK3.js";
3
3
  import Lt, { useRef as At, useEffect as ie, useState as x } from "react";
4
- import { a as Ke } from "./use-visual-utils-B9X7-yfe.js";
5
- import { u as Ot } from "./use-role-aware-display-preferences-CnipXO4k.js";
4
+ import { a as qe } from "./use-visual-utils-BYBat4tj.js";
5
+ import { u as Tt } from "./use-role-aware-display-preferences-DEkMGyx9.js";
6
6
  /**
7
7
  * @license lucide-react v0.453.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
11
  */
12
- const Tt = Qe("FolderOpen", [
12
+ const Ot = $e("FolderOpen", [
13
13
  [
14
14
  "path",
15
15
  {
@@ -30,7 +30,7 @@ function Rt(t, f = {}) {
30
30
  };
31
31
  }, [t, h, r]), o;
32
32
  }
33
- function We() {
33
+ function Ge() {
34
34
  return /* @__PURE__ */ e("div", { className: "space-y-1 px-2 py-2", children: [...Array(5)].map((t, f) => /* @__PURE__ */ n(
35
35
  "div",
36
36
  {
@@ -47,7 +47,7 @@ function We() {
47
47
  )) });
48
48
  }
49
49
  const Pt = (t) => {
50
- const f = me((o) => o.isVisualEditing), h = me((o) => o.selectedFrameId), r = Xe((o) => o.frame);
50
+ const f = me((o) => o.isVisualEditing), h = me((o) => o.selectedFrameId), r = Je((o) => o.frame);
51
51
  return !!(f && h && (r == null ? void 0 : r.visualId) === t);
52
52
  };
53
53
  function Ut({
@@ -60,31 +60,31 @@ function Ut({
60
60
  onDeleteClick: D,
61
61
  onDuplicateVisual: i,
62
62
  // onTogglePrivacy,
63
- onShareVisual: b,
64
- formatDate: y
63
+ onShareVisual: N,
64
+ formatDate: b
65
65
  }) {
66
- var O, S, P, v;
67
- const { selectVisual: d } = re(), c = Ze(t.id), m = Pt(t.id), { isConsoleMode: E } = $e(), V = Lt.useRef(null), [w, C] = x(!1), [L, A] = x(!1);
66
+ var T, S, P, C;
67
+ const { selectVisual: d } = re(), c = Qe(t.id), m = Pt(t.id), { isConsoleMode: E } = Xe(), V = Lt.useRef(null), [v, y] = x(!1), [L, A] = x(!1);
68
68
  ie(() => {
69
- h ? (C(!0), A(!0)) : L && (C(!1), A(!1));
69
+ h ? (y(!0), A(!0)) : L && (y(!1), A(!1));
70
70
  }, [h, L]), ie(() => {
71
71
  m && V.current && V.current.scrollIntoView({
72
72
  behavior: "smooth",
73
73
  block: "center"
74
74
  });
75
75
  }, [m]);
76
- const M = () => {
76
+ const j = () => {
77
77
  d(t), o == null || o(t);
78
78
  };
79
79
  return /* @__PURE__ */ n(
80
80
  "div",
81
81
  {
82
82
  ref: V,
83
- className: Z(
83
+ className: Q(
84
84
  "group flex cursor-pointer items-start gap-3 rounded-md px-2 py-2 transition-colors hover:bg-muted",
85
85
  m ? "bg-purple-500/10" : c && "bg-muted/80"
86
86
  ),
87
- onClick: M,
87
+ onClick: j,
88
88
  children: [
89
89
  /* @__PURE__ */ e(ke, { className: "mt-0.5 h-4 w-4 flex-shrink-0 text-muted-foreground/50" }),
90
90
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n("div", { className: "flex items-start justify-between gap-2", children: [
@@ -102,7 +102,7 @@ function Ut({
102
102
  {
103
103
  className: "truncate text-xs text-muted-foreground",
104
104
  title: t.description || "No description",
105
- children: (O = t.description) != null && O.trim() ? t.description : "No description"
105
+ children: (T = t.description) != null && T.trim() ? t.description : "No description"
106
106
  }
107
107
  )
108
108
  ] }),
@@ -116,13 +116,13 @@ function Ut({
116
116
  et,
117
117
  {
118
118
  modal: !1,
119
- open: w,
120
- onOpenChange: C,
119
+ open: v,
120
+ onOpenChange: y,
121
121
  children: [
122
122
  /* @__PURE__ */ e(tt, { asChild: !0, children: /* @__PURE__ */ e(_, { size: "sm", variant: "ghost", className: "h-6 w-6 p-0", children: /* @__PURE__ */ e(st, { className: "h-3 w-3" }) }) }),
123
123
  /* @__PURE__ */ n(nt, { align: "end", className: "z-[51] w-40", children: [
124
124
  /* @__PURE__ */ n(
125
- G,
125
+ K,
126
126
  {
127
127
  onClick: (p) => {
128
128
  p.stopPropagation(), r(t);
@@ -134,19 +134,19 @@ function Ut({
134
134
  }
135
135
  ),
136
136
  /* @__PURE__ */ n(
137
- G,
137
+ K,
138
138
  {
139
139
  onClick: (p) => {
140
140
  p.stopPropagation(), o == null || o(t);
141
141
  },
142
142
  children: [
143
- /* @__PURE__ */ e(Tt, { className: "mr-2 h-3 w-3" }),
143
+ /* @__PURE__ */ e(Ot, { className: "mr-2 h-3 w-3" }),
144
144
  "Open"
145
145
  ]
146
146
  }
147
147
  ),
148
148
  /* @__PURE__ */ n(
149
- G,
149
+ K,
150
150
  {
151
151
  onClick: (p) => {
152
152
  p.preventDefault(), p.stopPropagation(), i(t.id);
@@ -160,7 +160,7 @@ function Ut({
160
160
  ),
161
161
  t.ownership.isOwner && /* @__PURE__ */ n(ge, { children: [
162
162
  /* @__PURE__ */ n(
163
- G,
163
+ K,
164
164
  {
165
165
  onClick: (p) => {
166
166
  p.stopPropagation(), g == null || g(t);
@@ -172,10 +172,10 @@ function Ut({
172
172
  }
173
173
  ),
174
174
  /* @__PURE__ */ n(
175
- G,
175
+ K,
176
176
  {
177
177
  onClick: (p) => {
178
- p.stopPropagation(), b(t);
178
+ p.stopPropagation(), N(t);
179
179
  },
180
180
  children: [
181
181
  /* @__PURE__ */ e(rt, { className: "mr-2 h-3 w-3" }),
@@ -183,9 +183,9 @@ function Ut({
183
183
  ]
184
184
  }
185
185
  ),
186
- /* @__PURE__ */ e(ve, {}),
186
+ /* @__PURE__ */ e(Ce, {}),
187
187
  /* @__PURE__ */ n(
188
- G,
188
+ K,
189
189
  {
190
190
  onClick: (p) => {
191
191
  p.stopPropagation(), D(t);
@@ -199,15 +199,15 @@ function Ut({
199
199
  }
200
200
  )
201
201
  ] }),
202
- /* @__PURE__ */ e(ve, {}),
202
+ /* @__PURE__ */ e(Ce, {}),
203
203
  /* @__PURE__ */ n("div", { className: "space-y-1 px-2 py-2 text-xs text-slate-500 dark:text-slate-400", children: [
204
204
  (((S = t.ownership.createdBy) == null ? void 0 : S.type) === "tenant" || ((P = t.ownership.createdBy) == null ? void 0 : P.type) === "organization" && E) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
205
205
  /* @__PURE__ */ e(ot, { className: "h-3 w-3" }),
206
- /* @__PURE__ */ e("span", { children: ((v = t.ownership.createdBy) == null ? void 0 : v.name) || "Unknown" })
206
+ /* @__PURE__ */ e("span", { children: ((C = t.ownership.createdBy) == null ? void 0 : C.name) || "Unknown" })
207
207
  ] }),
208
208
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1", children: [
209
209
  /* @__PURE__ */ e(lt, { className: "h-3 w-3" }),
210
- /* @__PURE__ */ e("span", { children: y(t.lastModified) })
210
+ /* @__PURE__ */ e("span", { children: b(t.lastModified) })
211
211
  ] })
212
212
  ] })
213
213
  ] })
@@ -241,63 +241,63 @@ function Ut({
241
241
  function It({ searchQuery: t }) {
242
242
  const [f, h] = x(!1), [r, o] = x(
243
243
  null
244
- ), [g, D] = x(!1), [i, b] = x(null), [y, d] = x(null), [c, m] = x(
244
+ ), [g, D] = x(!1), [i, N] = x(null), [b, d] = x(null), [c, m] = x(
245
245
  null
246
- ), { selectVisual: E } = re(), { handleEditLibraryVisual: V, handleAddLibraryVisual: w } = Ke(), {
247
- resources: C,
246
+ ), { selectVisual: E } = re(), { handleEditLibraryVisual: V, handleAddLibraryVisual: v } = qe(), {
247
+ resources: y,
248
248
  isLoading: L,
249
249
  isError: A,
250
- isFetching: M,
251
- updateResource: O,
250
+ isFetching: j,
251
+ updateResource: T,
252
252
  deleteResource: S,
253
253
  duplicateResource: P,
254
- isDeleting: v,
254
+ isDeleting: C,
255
255
  isDuplicating: p,
256
256
  isUpdating: z
257
- } = ye(() => {
258
- D(!1), b(null);
257
+ } = be(() => {
258
+ D(!1), N(null);
259
259
  });
260
260
  le();
261
- const $ = C.filter(
261
+ const X = y.filter(
262
262
  (a) => {
263
- var T, l;
264
- return ((T = a == null ? void 0 : a.title) == null ? void 0 : T.toLowerCase().includes(t.toLowerCase())) || ((l = a == null ? void 0 : a.description) == null ? void 0 : l.toLowerCase().includes(t.toLowerCase()));
263
+ var O, l;
264
+ return ((O = a == null ? void 0 : a.title) == null ? void 0 : O.toLowerCase().includes(t.toLowerCase())) || ((l = a == null ? void 0 : a.description) == null ? void 0 : l.toLowerCase().includes(t.toLowerCase()));
265
265
  }
266
- ), j = (a) => new Date(a).toLocaleDateString("en-US", {
266
+ ), M = (a) => new Date(a).toLocaleDateString("en-US", {
267
267
  month: "short",
268
268
  day: "numeric",
269
269
  year: "numeric"
270
270
  }), Y = (a) => {
271
- b(a), D(!0);
272
- }, K = () => {
271
+ N(a), D(!0);
272
+ }, q = () => {
273
273
  i && S(i.id);
274
274
  }, {
275
275
  startUpdating: k,
276
276
  stopUpdating: R,
277
277
  isUpdating: ee
278
- } = Se(), te = (a, T, l) => {
278
+ } = Se(), te = (a, O, l) => {
279
279
  var ne;
280
- const J = Object.fromEntries(
281
- Object.entries(T).filter(([, I]) => I !== void 0)
280
+ const Z = Object.fromEntries(
281
+ Object.entries(O).filter(([, I]) => I !== void 0)
282
282
  );
283
- if (Object.keys(J).length === 0) {
283
+ if (Object.keys(Z).length === 0) {
284
284
  (ne = l == null ? void 0 : l.onSuccess) == null || ne.call(l);
285
285
  return;
286
286
  }
287
- const Q = Object.keys(J), X = Q.length === 1 ? Q[0] : void 0;
288
- k(a, X), O(
287
+ const $ = Object.keys(Z), J = $.length === 1 ? $[0] : void 0;
288
+ k(a, J), T(
289
289
  {
290
290
  resourceId: a,
291
- data: J
291
+ data: Z
292
292
  },
293
293
  {
294
294
  onSuccess: () => {
295
295
  var I;
296
- R(a, X), (I = l == null ? void 0 : l.onSuccess) == null || I.call(l);
296
+ R(a, J), (I = l == null ? void 0 : l.onSuccess) == null || I.call(l);
297
297
  },
298
298
  onError: () => {
299
299
  var I;
300
- R(a, X), (I = l == null ? void 0 : l.onError) == null || I.call(l);
300
+ R(a, J), (I = l == null ? void 0 : l.onError) == null || I.call(l);
301
301
  }
302
302
  }
303
303
  );
@@ -307,17 +307,17 @@ function It({ searchQuery: t }) {
307
307
  });
308
308
  }, F = (a) => {
309
309
  V(a);
310
- }, W = (a) => {
311
- w(a);
312
- }, N = (a) => {
313
- const T = C.find((l) => l.id === a);
314
- T && O({
310
+ }, G = (a) => {
311
+ v(a);
312
+ }, w = (a) => {
313
+ const O = y.find((l) => l.id === a);
314
+ O && T({
315
315
  resourceId: a,
316
316
  data: {
317
- isPrivate: !T.isPrivate
317
+ isPrivate: !O.isPrivate
318
318
  }
319
319
  });
320
- }, q = (a) => {
320
+ }, W = (a) => {
321
321
  o(a), h(!0);
322
322
  }, se = (a) => {
323
323
  m(a);
@@ -325,18 +325,18 @@ function It({ searchQuery: t }) {
325
325
  m(null);
326
326
  }, ce = ({
327
327
  title: a,
328
- description: T
328
+ description: O
329
329
  }) => {
330
330
  if (!c)
331
331
  return;
332
332
  const l = {};
333
- a !== c.title && (l.title = a), (c.description || "") !== T && (l.description = T), te(c.id, l, {
333
+ a !== c.title && (l.title = a), (c.description || "") !== O && (l.description = O), te(c.id, l, {
334
334
  onSuccess: () => {
335
335
  m(null);
336
336
  }
337
337
  });
338
338
  };
339
- return L ? /* @__PURE__ */ e(We, {}) : A ? /* @__PURE__ */ e(Ee, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "py-8 text-center text-muted-foreground", children: [
339
+ return L ? /* @__PURE__ */ e(Ge, {}) : A ? /* @__PURE__ */ e(Ee, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "py-8 text-center text-muted-foreground", children: [
340
340
  /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: "Failed to load visuals" }),
341
341
  /* @__PURE__ */ e(
342
342
  _,
@@ -349,24 +349,24 @@ function It({ searchQuery: t }) {
349
349
  }
350
350
  )
351
351
  ] }) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
352
- /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-3 overflow-y-auto", children: $.length === 0 ? /* @__PURE__ */ n("div", { className: "py-8 text-center", children: [
352
+ /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-3 overflow-y-auto", children: X.length === 0 ? /* @__PURE__ */ n("div", { className: "py-8 text-center", children: [
353
353
  /* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(ct, { className: "mx-auto h-12 w-12 text-muted-foreground/50" }) }),
354
354
  /* @__PURE__ */ e("h3", { className: "mb-1 font-medium text-foreground", children: t ? "No visuals found" : "No visuals yet" }),
355
355
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: t ? "Try adjusting your search" : 'Click "Create" above to add your first visual' })
356
- ] }) : $.map((a) => /* @__PURE__ */ e(
356
+ ] }) : X.map((a) => /* @__PURE__ */ e(
357
357
  Ut,
358
358
  {
359
359
  visual: a,
360
- onAddVisual: W,
360
+ onAddVisual: G,
361
361
  onOpenVisual: F,
362
362
  onEditDetails: se,
363
363
  onDeleteClick: Y,
364
364
  onDuplicateVisual: B,
365
- onTogglePrivacy: N,
366
- onShareVisual: q,
367
- isDeleting: v,
368
- isDuplicating: y === a.id,
369
- formatDate: j
365
+ onTogglePrivacy: w,
366
+ onShareVisual: W,
367
+ isDeleting: C,
368
+ isDuplicating: b === a.id,
369
+ formatDate: M
370
370
  },
371
371
  a.id
372
372
  )) }),
@@ -393,13 +393,13 @@ function It({ searchQuery: t }) {
393
393
  }
394
394
  ),
395
395
  /* @__PURE__ */ e(
396
- Oe,
396
+ Te,
397
397
  {
398
398
  open: g,
399
399
  onOpenChange: (a) => {
400
- !a && v || (D(a), a || b(null));
400
+ !a && C || (D(a), a || N(null));
401
401
  },
402
- children: /* @__PURE__ */ n(Te, { children: [
402
+ children: /* @__PURE__ */ n(Oe, { children: [
403
403
  /* @__PURE__ */ n(Re, { children: [
404
404
  /* @__PURE__ */ e(Pe, { children: "Delete Visual" }),
405
405
  /* @__PURE__ */ n(Ue, { children: [
@@ -409,18 +409,18 @@ function It({ searchQuery: t }) {
409
409
  ] })
410
410
  ] }),
411
411
  /* @__PURE__ */ n(Ie, { children: [
412
- /* @__PURE__ */ e(Me, { disabled: v, children: "Cancel" }),
412
+ /* @__PURE__ */ e(je, { disabled: C, children: "Cancel" }),
413
413
  /* @__PURE__ */ n(
414
- je,
414
+ Me,
415
415
  {
416
416
  onClick: (a) => {
417
- a.preventDefault(), a.stopPropagation(), K();
417
+ a.preventDefault(), a.stopPropagation(), q();
418
418
  },
419
419
  className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
420
- disabled: v,
420
+ disabled: C,
421
421
  children: [
422
- v ? /* @__PURE__ */ e(oe, { className: "mr-2 h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(De, { className: "mr-2 h-3.5 w-3.5" }),
423
- v ? "Deleting..." : "Delete"
422
+ C ? /* @__PURE__ */ e(oe, { className: "mr-2 h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(De, { className: "mr-2 h-3.5 w-3.5" }),
423
+ C ? "Deleting..." : "Delete"
424
424
  ]
425
425
  }
426
426
  )
@@ -430,7 +430,7 @@ function It({ searchQuery: t }) {
430
430
  )
431
431
  ] });
432
432
  }
433
- function Mt({
433
+ function jt({
434
434
  dashboard: t,
435
435
  isDeleting: f,
436
436
  isDuplicating: h,
@@ -439,20 +439,20 @@ function Mt({
439
439
  onEditDetails: g,
440
440
  onDeleteClick: D,
441
441
  onDuplicateDashboard: i,
442
- onShareDashboard: b,
443
- formatDate: y,
442
+ onShareDashboard: N,
443
+ formatDate: b,
444
444
  onDashboardItemClick: d
445
445
  }) {
446
- var O, S;
447
- const { selectDashboard: c } = re(), m = ut(t.id), { userContext: E, isLoading: V } = le(), { mutate: w } = ht(), C = ((O = E == null ? void 0 : E.permissions) == null ? void 0 : O.canEdit) ?? !1, L = V || !C, A = () => {
446
+ var T, S;
447
+ const { selectDashboard: c } = re(), m = ut(t.id), { userContext: E, isLoading: V } = le(), { mutate: v } = ht(), y = ((T = E == null ? void 0 : E.permissions) == null ? void 0 : T.canEdit) ?? !1, L = V || !y, A = () => {
448
448
  c(t), o(t.id), d == null || d(t.id);
449
- }, M = (P) => {
450
- P.stopPropagation(), w({ dashboardId: r ? null : t.id });
449
+ }, j = (P) => {
450
+ P.stopPropagation(), v({ dashboardId: r ? null : t.id });
451
451
  };
452
452
  return /* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ n(
453
453
  "div",
454
454
  {
455
- className: Z(
455
+ className: Q(
456
456
  "group flex cursor-pointer items-start gap-3 rounded-md px-2 py-2 transition-colors hover:bg-muted",
457
457
  m && "bg-muted/80"
458
458
  ),
@@ -462,12 +462,12 @@ function Mt({
462
462
  /* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e(
463
463
  "button",
464
464
  {
465
- onClick: M,
465
+ onClick: j,
466
466
  className: "mt-0.5 flex-shrink-0 rounded p-0.5 hover:bg-muted",
467
467
  children: /* @__PURE__ */ e(
468
468
  mt,
469
469
  {
470
- className: Z(
470
+ className: Q(
471
471
  "h-4 w-4 transition-colors",
472
472
  r ? "fill-yellow-400 text-yellow-400" : "text-muted-foreground/40 hover:text-yellow-400"
473
473
  )
@@ -506,8 +506,8 @@ function Mt({
506
506
  onEditDetails: g,
507
507
  onDeleteClick: D,
508
508
  onDuplicateDashboard: i,
509
- onShareDashboard: b,
510
- formatDate: y
509
+ onShareDashboard: N,
510
+ formatDate: b
511
511
  }
512
512
  ) })
513
513
  ] }) })
@@ -516,34 +516,34 @@ function Mt({
516
516
  t.id
517
517
  ) });
518
518
  }
519
- function jt({ onRetry: t }) {
519
+ function Mt({ onRetry: t }) {
520
520
  return /* @__PURE__ */ e(Ee, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "py-8 text-center text-muted-foreground", children: [
521
521
  /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: "Failed to load dashboards" }),
522
522
  /* @__PURE__ */ e(_, { variant: "outline", size: "sm", className: "mt-2", onClick: t, children: "Retry" })
523
523
  ] }) });
524
524
  }
525
525
  function Ft(t) {
526
- var xe, be;
527
- const { searchQuery: f, onLoadDashboard: h, onEditDashboard: r, onDashboardItemClick: o } = t, [g, D] = x(!1), [i, b] = x(
526
+ var xe, Ne;
527
+ const { searchQuery: f, onLoadDashboard: h, onEditDashboard: r, onDashboardItemClick: o } = t, [g, D] = x(!1), [i, N] = x(
528
528
  null
529
- ), [y, d] = x(!1), [c, m] = x(null), [E, V] = x(null), [w, C] = x(null), L = ae(
529
+ ), [b, d] = x(!1), [c, m] = x(null), [E, V] = x(null), [v, y] = x(null), L = ae(
530
530
  (s) => s.lastSelectedDashboard
531
531
  ), A = ae(
532
532
  (s) => s.selectedDashboard
533
- ), M = ae(
533
+ ), j = ae(
534
534
  (s) => s.actions.selectDashboard
535
- ), O = ae(
535
+ ), T = ae(
536
536
  (s) => s.actions.clearSelectedDashboard
537
537
  ), { tokenProps: S, id: P } = ft();
538
- Ot();
538
+ Tt();
539
539
  const {
540
- resources: v,
540
+ resources: C,
541
541
  isLoading: p,
542
542
  isError: z,
543
- isFetching: $,
544
- updateResource: j,
543
+ isFetching: X,
544
+ updateResource: M,
545
545
  deleteResource: Y,
546
- duplicateResource: K,
546
+ duplicateResource: q,
547
547
  isUpdating: k,
548
548
  isDeleting: R,
549
549
  isDuplicating: ee,
@@ -551,8 +551,8 @@ function Ft(t) {
551
551
  } = _e(() => {
552
552
  d(!1);
553
553
  const s = c == null ? void 0 : c.id;
554
- m(null), (A == null ? void 0 : A.id) === s && (!(S != null && S.dashboard_id) && !P ? O() : L && L.id !== s && M(L));
555
- }), { currentUser: B, userContext: F } = le(), W = ((xe = F == null ? void 0 : F.permissions) == null ? void 0 : xe.canCreateDashboard) ?? !1, { data: N } = gt(), q = ((be = N == null ? void 0 : N.preference) == null ? void 0 : be.defaultDashboardId) || null, se = v.filter(
554
+ m(null), (A == null ? void 0 : A.id) === s && (!(S != null && S.dashboard_id) && !P ? T() : L && L.id !== s && j(L));
555
+ }), { currentUser: B, userContext: F } = le(), G = ((xe = F == null ? void 0 : F.permissions) == null ? void 0 : xe.canCreateDashboard) ?? !1, { data: w } = gt(), W = ((Ne = w == null ? void 0 : w.preference) == null ? void 0 : Ne.defaultDashboardId) || null, se = C.filter(
556
556
  (s) => {
557
557
  var U, u;
558
558
  return ((U = s == null ? void 0 : s.title) == null ? void 0 : U.toLowerCase().includes(f.toLowerCase())) || ((u = s == null ? void 0 : s.description) == null ? void 0 : u.toLowerCase().includes(f.toLowerCase()));
@@ -565,27 +565,27 @@ function Ft(t) {
565
565
  h == null || h(s);
566
566
  }, a = (s) => {
567
567
  m(s), d(!0);
568
- }, T = () => {
568
+ }, O = () => {
569
569
  c && Y(c.id);
570
570
  }, l = (s) => {
571
- V(s), K(s, {
571
+ V(s), q(s, {
572
572
  onSettled: () => V(null)
573
573
  });
574
574
  }, {
575
- startUpdating: J,
576
- stopUpdating: Q,
577
- isUpdating: X
575
+ startUpdating: Z,
576
+ stopUpdating: $,
577
+ isUpdating: J
578
578
  } = Se(), ne = (s, U, u) => {
579
- var we;
579
+ var ve;
580
580
  const ue = Object.fromEntries(
581
581
  Object.entries(U).filter(([, H]) => H !== void 0)
582
582
  );
583
583
  if (Object.keys(ue).length === 0) {
584
- (we = u == null ? void 0 : u.onSuccess) == null || we.call(u);
584
+ (ve = u == null ? void 0 : u.onSuccess) == null || ve.call(u);
585
585
  return;
586
586
  }
587
- const Ne = Object.keys(ue), he = Ne.length === 1 ? Ne[0] : void 0;
588
- J(s, he), j(
587
+ const we = Object.keys(ue), he = we.length === 1 ? we[0] : void 0;
588
+ Z(s, he), M(
589
589
  {
590
590
  resourceId: s,
591
591
  data: ue
@@ -593,61 +593,61 @@ function Ft(t) {
593
593
  {
594
594
  onSuccess: () => {
595
595
  var H;
596
- Q(s, he), (H = u == null ? void 0 : u.onSuccess) == null || H.call(u);
596
+ $(s, he), (H = u == null ? void 0 : u.onSuccess) == null || H.call(u);
597
597
  },
598
598
  onError: () => {
599
599
  var H;
600
- Q(s, he), (H = u == null ? void 0 : u.onError) == null || H.call(u);
600
+ $(s, he), (H = u == null ? void 0 : u.onError) == null || H.call(u);
601
601
  }
602
602
  }
603
603
  );
604
604
  }, I = (s) => {
605
- const U = v.find(
605
+ const U = C.find(
606
606
  (u) => u.id === s
607
607
  );
608
- U && j({
608
+ U && M({
609
609
  resourceId: s,
610
610
  data: {
611
611
  isPrivate: !U.isPrivate
612
612
  }
613
613
  });
614
- }, Ge = (s) => {
615
- b(s), B == null || B.type, D(!0);
614
+ }, Ke = (s) => {
615
+ N(s), B == null || B.type, D(!0);
616
616
  }, Ye = (s) => {
617
- r == null || r(s.id), C(s);
618
- }, qe = () => {
619
- C(null);
620
- }, Je = ({
617
+ r == null || r(s.id), y(s);
618
+ }, We = () => {
619
+ y(null);
620
+ }, Ze = ({
621
621
  title: s,
622
622
  description: U
623
623
  }) => {
624
- if (!w)
624
+ if (!v)
625
625
  return;
626
626
  const u = {};
627
- s !== w.title && (u.title = s), (w.description || "") !== U && (u.description = U), ne(w.id, u, {
627
+ s !== v.title && (u.title = s), (v.description || "") !== U && (u.description = U), ne(v.id, u, {
628
628
  onSuccess: () => {
629
- C(null);
629
+ y(null);
630
630
  }
631
631
  });
632
632
  };
633
- return p ? /* @__PURE__ */ e(We, {}) : z ? /* @__PURE__ */ e(jt, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
633
+ return p ? /* @__PURE__ */ e(Ge, {}) : z ? /* @__PURE__ */ e(Mt, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
634
634
  /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-3 overflow-y-auto", children: se.length === 0 ? /* @__PURE__ */ n("div", { className: "py-8 text-center", children: [
635
635
  /* @__PURE__ */ e("div", { className: "mb-3", children: /* @__PURE__ */ e(Dt, { className: "mx-auto h-12 w-12 text-muted-foreground/50" }) }),
636
636
  /* @__PURE__ */ e("h3", { className: "mb-1 font-medium text-foreground", children: f ? "No dashboards found" : "No dashboards yet" }),
637
- /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: f ? "Try adjusting your search" : W ? 'Click "Create" above to add your first dashboard' : "No dashboards have been shared with you yet" })
637
+ /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: f ? "Try adjusting your search" : G ? 'Click "Create" above to add your first dashboard' : "No dashboards have been shared with you yet" })
638
638
  ] }) : se.map((s) => /* @__PURE__ */ e(
639
- Mt,
639
+ jt,
640
640
  {
641
641
  dashboard: s,
642
642
  isDeleting: R,
643
643
  isDuplicating: E === s.id,
644
- isDefault: s.id === q,
644
+ isDefault: s.id === W,
645
645
  onLoadDashboard: ce,
646
646
  onEditDetails: Ye,
647
647
  onDeleteClick: a,
648
648
  onDuplicateDashboard: l,
649
649
  onTogglePrivacy: I,
650
- onShareDashboard: Ge,
650
+ onShareDashboard: Ke,
651
651
  formatDate: de,
652
652
  onDashboardItemClick: o
653
653
  },
@@ -659,18 +659,18 @@ function Ft(t) {
659
659
  resource: i,
660
660
  resourceType: Le.DASHBOARD,
661
661
  onClose: () => {
662
- D(!1), b(null);
662
+ D(!1), N(null);
663
663
  }
664
664
  }
665
665
  ),
666
666
  /* @__PURE__ */ e(
667
- Oe,
667
+ Te,
668
668
  {
669
- open: y,
669
+ open: b,
670
670
  onOpenChange: (s) => {
671
671
  !s && R || (d(s), s || m(null));
672
672
  },
673
- children: /* @__PURE__ */ n(Te, { children: [
673
+ children: /* @__PURE__ */ n(Oe, { children: [
674
674
  /* @__PURE__ */ n(Re, { children: [
675
675
  /* @__PURE__ */ e(Pe, { children: "Delete Dashboard" }),
676
676
  /* @__PURE__ */ n(Ue, { children: [
@@ -680,12 +680,12 @@ function Ft(t) {
680
680
  ] })
681
681
  ] }),
682
682
  /* @__PURE__ */ n(Ie, { children: [
683
- /* @__PURE__ */ e(Me, { disabled: R, children: "Cancel" }),
683
+ /* @__PURE__ */ e(je, { disabled: R, children: "Cancel" }),
684
684
  /* @__PURE__ */ n(
685
- je,
685
+ Me,
686
686
  {
687
687
  onClick: (s) => {
688
- s.preventDefault(), s.stopPropagation(), T();
688
+ s.preventDefault(), s.stopPropagation(), O();
689
689
  },
690
690
  className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
691
691
  disabled: R,
@@ -699,16 +699,16 @@ function Ft(t) {
699
699
  ] })
700
700
  }
701
701
  ),
702
- w && /* @__PURE__ */ e(
702
+ v && /* @__PURE__ */ e(
703
703
  Ae,
704
704
  {
705
- open: !!w,
705
+ open: !!v,
706
706
  resourceLabel: "Dashboard",
707
- initialTitle: w.title || "",
708
- initialDescription: w.description || "",
709
- onClose: qe,
710
- onSave: Je,
711
- isSaving: X(w.id)
707
+ initialTitle: v.title || "",
708
+ initialDescription: v.description || "",
709
+ onClose: We,
710
+ onSave: Ze,
711
+ isSaving: J(v.id)
712
712
  }
713
713
  )
714
714
  ] });
@@ -723,19 +723,19 @@ function zt({
723
723
  ie(() => {
724
724
  t || (g(""), i(""));
725
725
  }, [t]);
726
- const b = () => {
726
+ const N = () => {
727
727
  o.trim() && h({ title: o, description: D });
728
- }, y = (d) => {
728
+ }, b = (d) => {
729
729
  f(d);
730
730
  };
731
- return /* @__PURE__ */ e(xt, { open: t, onOpenChange: y, children: /* @__PURE__ */ n(bt, { children: [
732
- /* @__PURE__ */ n(Nt, { children: [
733
- /* @__PURE__ */ e(wt, { children: "Create New Visual" }),
734
- /* @__PURE__ */ e(vt, { children: "Add a new visual to your library. You can configure it after creation." })
731
+ return /* @__PURE__ */ e(xt, { open: t, onOpenChange: b, children: /* @__PURE__ */ n(Nt, { children: [
732
+ /* @__PURE__ */ n(wt, { children: [
733
+ /* @__PURE__ */ e(vt, { children: "Create New Visual" }),
734
+ /* @__PURE__ */ e(Ct, { children: "Add a new visual to your library. You can configure it after creation." })
735
735
  ] }),
736
736
  /* @__PURE__ */ n("div", { className: "space-y-4 py-4", children: [
737
737
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
738
- /* @__PURE__ */ e(Ce, { htmlFor: "title", children: "Visual Title" }),
738
+ /* @__PURE__ */ e(ye, { htmlFor: "title", children: "Visual Title" }),
739
739
  /* @__PURE__ */ e(
740
740
  fe,
741
741
  {
@@ -745,13 +745,13 @@ function zt({
745
745
  onChange: (d) => g(d.target.value),
746
746
  disabled: r,
747
747
  onKeyDown: (d) => {
748
- d.key === "Enter" && !d.shiftKey && (d.preventDefault(), b());
748
+ d.key === "Enter" && !d.shiftKey && (d.preventDefault(), N());
749
749
  }
750
750
  }
751
751
  )
752
752
  ] }),
753
753
  /* @__PURE__ */ n("div", { className: "space-y-2", children: [
754
- /* @__PURE__ */ e(Ce, { htmlFor: "description", children: "Description (optional)" }),
754
+ /* @__PURE__ */ e(ye, { htmlFor: "description", children: "Description (optional)" }),
755
755
  /* @__PURE__ */ e(
756
756
  fe,
757
757
  {
@@ -764,12 +764,12 @@ function zt({
764
764
  )
765
765
  ] })
766
766
  ] }),
767
- /* @__PURE__ */ n(Ct, { children: [
767
+ /* @__PURE__ */ n(yt, { children: [
768
768
  /* @__PURE__ */ e(
769
769
  _,
770
770
  {
771
771
  variant: "outline",
772
- onClick: () => y(!1),
772
+ onClick: () => b(!1),
773
773
  disabled: r,
774
774
  children: "Cancel"
775
775
  }
@@ -777,7 +777,7 @@ function zt({
777
777
  /* @__PURE__ */ e(
778
778
  _,
779
779
  {
780
- onClick: b,
780
+ onClick: N,
781
781
  disabled: !o.trim() || r,
782
782
  children: r ? /* @__PURE__ */ n(ge, { children: [
783
783
  /* @__PURE__ */ e(oe, { className: "mr-2 h-4 w-4 animate-spin" }),
@@ -788,48 +788,48 @@ function zt({
788
788
  ] })
789
789
  ] }) });
790
790
  }
791
- function Gt({
791
+ function Kt({
792
792
  isOpen: t,
793
793
  onClose: f,
794
794
  className: h,
795
795
  onDashboardItemClick: r,
796
796
  variant: o = "inline"
797
797
  }) {
798
- var F, W;
798
+ var F, G;
799
799
  const g = me(
800
- (N) => N.isDashboardEditing
801
- ), [D, i] = x(!1), [b, y] = x(""), [d, c] = x(!1), { currentUser: m, userContext: E } = le(), V = ((F = E == null ? void 0 : E.permissions) == null ? void 0 : F.canCreateDashboard) ?? !1, { onCreateSuccess: w } = yt({
800
+ (w) => w.isDashboardEditing
801
+ ), [D, i] = x(!1), [N, b] = x(""), [d, c] = x(!1), { currentUser: m, userContext: E } = le(), V = ((F = E == null ? void 0 : E.permissions) == null ? void 0 : F.canCreateDashboard) ?? !1, { onCreateSuccess: v } = bt({
802
802
  onDashboardSelect: r
803
- }), { selectVisual: C } = re(), { handleEditLibraryVisual: L } = Ke(), {
803
+ }), { selectVisual: y } = re(), { handleEditLibraryVisual: L } = qe(), {
804
804
  createResource: A,
805
- isCreating: M,
806
- refetch: O
807
- } = _e(), { createResource: S, isCreating: P } = ye(
805
+ isCreating: j,
806
+ refetch: T
807
+ } = _e(), { createResource: S, isCreating: P } = be(
808
808
  void 0,
809
809
  // onDeleteSuccess (not needed here)
810
- (N) => {
811
- i(!1), N && (C(N), L(N));
810
+ (w) => {
811
+ i(!1), w && (y(w), L(w));
812
812
  }
813
- ), v = o === "overlay", p = ((m == null ? void 0 : m.name) ?? "").trim(), z = ((m == null ? void 0 : m.email) ?? "").trim(), j = p && p.toLowerCase() !== "undefined" ? p : z || "Current user", Y = ((W = j.charAt(0)) == null ? void 0 : W.toUpperCase()) || "?", K = z && z.toLowerCase() !== "undefined" ? z : "", k = Rt(f, {
814
- enabled: t && v
815
- }), R = Z(
813
+ ), C = o === "overlay", p = ((m == null ? void 0 : m.name) ?? "").trim(), z = ((m == null ? void 0 : m.email) ?? "").trim(), M = p && p.toLowerCase() !== "undefined" ? p : z || "Current user", Y = ((G = M.charAt(0)) == null ? void 0 : G.toUpperCase()) || "?", q = z && z.toLowerCase() !== "undefined" ? z : "", k = Rt(f, {
814
+ enabled: t && C
815
+ }), R = Q(
816
816
  "flex h-full flex-col border-r bg-background",
817
- v ? Z(
817
+ C ? Q(
818
818
  "absolute inset-y-0 left-0 z-[51] w-60 shadow-lg transition-transform duration-300 ease-in-out",
819
819
  t ? "translate-x-0" : "pointer-events-none -translate-x-full"
820
820
  ) : "w-full max-w-[17rem] min-w-[11rem] overflow-hidden shadow-sm",
821
821
  h
822
- ), ee = (N) => {
823
- }, te = (N) => {
824
- console.log("Editing dashboard:", N);
825
- }, B = (N) => {
826
- A(N, {
827
- onSuccess: (q) => {
828
- i(!1), w(q, O);
822
+ ), ee = (w) => {
823
+ }, te = (w) => {
824
+ console.log("Editing dashboard:", w);
825
+ }, B = (w) => {
826
+ A(w, {
827
+ onSuccess: (W) => {
828
+ i(!1), v(W, T);
829
829
  }
830
830
  });
831
831
  };
832
- return /* @__PURE__ */ e(ge, { children: (!v || t) && /* @__PURE__ */ n("div", { ref: k, className: R, children: [
832
+ return /* @__PURE__ */ e(ge, { children: (!C || t) && /* @__PURE__ */ n("div", { ref: k, className: R, children: [
833
833
  /* @__PURE__ */ n("div", { className: "border-b border-border", children: [
834
834
  /* @__PURE__ */ n("div", { className: "flex items-center justify-between px-4 py-1.5", children: [
835
835
  /* @__PURE__ */ e("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ e("h2", { className: "whitespace-nowrap text-sm font-semibold", children: g ? "Visuals" : "Dashboards" }) }),
@@ -860,17 +860,17 @@ function Gt({
860
860
  fe,
861
861
  {
862
862
  placeholder: "Search...",
863
- value: b,
864
- onChange: (N) => y(N.target.value),
863
+ value: N,
864
+ onChange: (w) => b(w.target.value),
865
865
  className: "h-8 border-muted-foreground/20 bg-background text-sm focus-visible:border-muted-foreground/40 focus-visible:ring-0 focus-visible:ring-offset-0",
866
866
  autoFocus: !0
867
867
  }
868
868
  ) })
869
869
  ] }),
870
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-2 py-2", children: g ? /* @__PURE__ */ e(It, { searchQuery: b }) : /* @__PURE__ */ e(
870
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-2 py-2", children: g ? /* @__PURE__ */ e(It, { searchQuery: N }) : /* @__PURE__ */ e(
871
871
  Ft,
872
872
  {
873
- searchQuery: b,
873
+ searchQuery: N,
874
874
  onLoadDashboard: ee,
875
875
  onEditDashboard: te,
876
876
  onDashboardItemClick: r
@@ -880,15 +880,15 @@ function Gt({
880
880
  /* @__PURE__ */ n(ze, { children: [
881
881
  /* @__PURE__ */ e(Be, { asChild: !0, children: /* @__PURE__ */ e("div", { className: "flex h-6 w-6 cursor-default items-center justify-center rounded-full bg-primary/10", children: /* @__PURE__ */ e("span", { className: "text-xs font-medium text-primary", children: Y }) }) }),
882
882
  /* @__PURE__ */ e(He, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-1", children: [
883
- /* @__PURE__ */ e("div", { className: "font-medium", children: j }),
884
- K && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: K }),
883
+ /* @__PURE__ */ e("div", { className: "font-medium", children: M }),
884
+ q && /* @__PURE__ */ e("div", { className: "text-xs text-muted-foreground", children: q }),
885
885
  m.role && /* @__PURE__ */ n("div", { className: "text-xs text-muted-foreground", children: [
886
886
  "Role: ",
887
887
  Et(m.role.replace(/_/g, " "))
888
888
  ] })
889
889
  ] }) })
890
890
  ] }),
891
- /* @__PURE__ */ e("span", { className: "truncate text-xs text-muted-foreground", children: j })
891
+ /* @__PURE__ */ e("span", { className: "truncate text-xs text-muted-foreground", children: M })
892
892
  ] }) }) }),
893
893
  g ? /* @__PURE__ */ e(
894
894
  zt,
@@ -904,11 +904,11 @@ function Gt({
904
904
  open: D,
905
905
  onOpenChange: i,
906
906
  onSubmit: B,
907
- isCreating: M
907
+ isCreating: j
908
908
  }
909
909
  )
910
910
  ] }) });
911
911
  }
912
912
  export {
913
- Gt as ResourceManagementPanel
913
+ Kt as ResourceManagementPanel
914
914
  };