react-semaphor 0.1.326 → 0.1.328

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 (82) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +1 -1
  3. package/dist/brand-studio/index.cjs +5 -5
  4. package/dist/brand-studio/index.js +23 -24
  5. package/dist/chunks/_commonjsHelpers-BVfed4GL.js +28 -0
  6. package/dist/chunks/_commonjsHelpers-DwTZ_eVU.js +1 -0
  7. package/dist/chunks/{braces-DVaMJoCd.js → braces-CG8viaD2.js} +1 -1
  8. package/dist/chunks/{braces-dHeaioTd.js → braces-DSaa_4Oc.js} +1 -1
  9. package/dist/chunks/{calendar-preferences-dialog-mqU_uOmY.js → calendar-preferences-dialog-DD_qAthL.js} +1 -1
  10. package/dist/chunks/{calendar-preferences-dialog--2jD-eKu.js → calendar-preferences-dialog-JRmNJptJ.js} +3 -3
  11. package/dist/chunks/{chevrons-up-down-DNQE-uEp.js → chevrons-up-down-CBa0uh0X.js} +1 -1
  12. package/dist/chunks/{chevrons-up-down-CLbzBHoI.js → chevrons-up-down-ChDNqVP7.js} +1 -1
  13. package/dist/chunks/dashboard-briefing-launcher-BKdJFwH5.js +106 -0
  14. package/dist/chunks/{dashboard-briefing-launcher-DsjXUPFq.js → dashboard-briefing-launcher-BfyNkd8i.js} +1106 -1108
  15. package/dist/chunks/{dashboard-controls-DgNkM1yT.js → dashboard-controls-0pZDLvFL.js} +218 -218
  16. package/dist/chunks/{dashboard-controls-XCa9PZuU.js → dashboard-controls-C0xm1QMR.js} +10 -10
  17. package/dist/chunks/dashboard-json-BW5OVZ6m.js +1 -0
  18. package/dist/chunks/{dashboard-json-DkA6Bf0Y.js → dashboard-json-DsruhRPD.js} +14 -13
  19. package/dist/chunks/date-formatter-B4EBSe9C.js +1 -0
  20. package/dist/chunks/date-formatter-CzcPZx39.js +416 -0
  21. package/dist/chunks/edit-dashboard-visual-DQyJ7SSv.js +178 -0
  22. package/dist/chunks/{edit-dashboard-visual-Q5hW5MXk.js → edit-dashboard-visual-g5SZZahJ.js} +8242 -7784
  23. package/dist/chunks/index-1JWDPCun.js +1935 -0
  24. package/dist/chunks/index-BdjXTQt4.js +1444 -0
  25. package/dist/chunks/{index-DwfDwtv2.js → index-BmKr-K7J.js} +117670 -113627
  26. package/dist/chunks/index-C1l78BIx.js +3247 -0
  27. package/dist/chunks/lib-Ce3zosXY.js +38 -0
  28. package/dist/chunks/lib-DFvr9fM4.js +5500 -0
  29. package/dist/chunks/{palette-DtmNws9a.js → palette-D0YmAqBS.js} +1 -1
  30. package/dist/chunks/{palette-DpcvHAiY.js → palette-DQgq3edH.js} +1 -1
  31. package/dist/chunks/{resource-management-panel-CGwWKZOP.js → resource-management-panel-CIfBh46E.js} +1 -1
  32. package/dist/chunks/{resource-management-panel-D2oAQkKi.js → resource-management-panel-Cj19pw9M.js} +145 -145
  33. package/dist/chunks/switch-BvTzw2AW.js +173 -0
  34. package/dist/chunks/{switch-j3AThLFk.js → switch-De31SR3q.js} +2752 -2717
  35. package/dist/chunks/typescript-Cmizj1hi.js +446 -0
  36. package/dist/chunks/typescript-H1EwZsOb.js +159820 -0
  37. package/dist/chunks/use-create-flow-overlay-state-BTQiKRD1.js +26 -0
  38. package/dist/chunks/{use-create-flow-overlay-state-CP6GDQAX.js → use-create-flow-overlay-state-IcHP0l39.js} +150 -151
  39. package/dist/chunks/{use-visual-utils-CSXU-96k.js → use-visual-utils-DQ5zGYD2.js} +13 -13
  40. package/dist/chunks/{use-visual-utils-NpOW5uZ1.js → use-visual-utils-XF-AqV8o.js} +1 -1
  41. package/dist/chunks/{validators-DvTxl9i0.js → validators-DDAweCzB.js} +67 -48
  42. package/dist/chunks/validators-odlRJblR.js +2 -0
  43. package/dist/dashboard/index.cjs +1 -1
  44. package/dist/dashboard/index.js +1 -1
  45. package/dist/dashboard-authoring/index.cjs +3 -3
  46. package/dist/dashboard-authoring/index.js +907 -527
  47. package/dist/data-app-builder/index.cjs +1 -0
  48. package/dist/data-app-builder/index.js +4 -0
  49. package/dist/data-app-builder-browser-runtime/index.cjs +1 -0
  50. package/dist/data-app-builder-browser-runtime/index.js +10 -0
  51. package/dist/data-app-sdk/index.cjs +1 -1
  52. package/dist/data-app-sdk/index.js +208 -196
  53. package/dist/format-utils/index.cjs +4 -4
  54. package/dist/format-utils/index.js +22 -21
  55. package/dist/index.cjs +1 -1
  56. package/dist/index.js +14 -14
  57. package/dist/style.css +1 -1
  58. package/dist/surfboard/index.cjs +1 -1
  59. package/dist/surfboard/index.js +2 -2
  60. package/dist/types/analytics-protocol.d.ts +1 -0
  61. package/dist/types/dashboard-authoring.d.ts +79 -2
  62. package/dist/types/dashboard.d.ts +17 -2
  63. package/dist/types/data-app-builder-browser-runtime.d.ts +185 -0
  64. package/dist/types/data-app-builder.d.ts +630 -0
  65. package/dist/types/data-app-sdk.d.ts +15 -1
  66. package/dist/types/format-utils.d.ts +25 -0
  67. package/dist/types/main.d.ts +67 -10
  68. package/dist/types/shared.d.ts +17 -2
  69. package/dist/types/surfboard.d.ts +17 -2
  70. package/dist/types/types.d.ts +32 -3
  71. package/package.json +11 -1
  72. package/dist/chunks/dashboard-briefing-launcher-DguNfFr8.js +0 -106
  73. package/dist/chunks/dashboard-json-DiBd65Xf.js +0 -1
  74. package/dist/chunks/date-formatter-D9Bvw5Qk.js +0 -1
  75. package/dist/chunks/date-formatter-DyIOb6uC.js +0 -333
  76. package/dist/chunks/edit-dashboard-visual-BC9eOc4U.js +0 -178
  77. package/dist/chunks/index-B1-46PoR.js +0 -1303
  78. package/dist/chunks/save-BY7WF62U.js +0 -21
  79. package/dist/chunks/save-Cv_XRb94.js +0 -6
  80. package/dist/chunks/switch-5aQ_jcLH.js +0 -168
  81. package/dist/chunks/use-create-flow-overlay-state-BQPXP0AM.js +0 -26
  82. package/dist/chunks/validators-DJUMR5An.js +0 -2
@@ -1,16 +1,16 @@
1
1
  import { jsx as e, jsxs as n, Fragment as oe } from "react/jsx-runtime";
2
- import { c as _e, u as se, G as Ge, a as Z, B as A, f as te, M as be, Q as Ye, L as ie, a1 as de, X as ke, Y as Qe, Z as We, _ as Xe, a0 as Ze, ay as $e } from "./switch-j3AThLFk.js";
3
- import qe, { useState as b, useEffect as ee, useRef as Je } from "react";
4
- import { ag as ue, aK as et, aL as tt, aH as ce, aM as nt, aN as at, aO as st, aP as it, aQ as X, aR as ot, aS as rt, aT as lt, aU as xe, ay as he, aV as dt, aW as ct, aX as we, aY as Ne, aZ as ut, H as ye, z as Ce, a_ as ve, a$ as Se, b0 as Ee, b1 as Ve, b2 as Le, b3 as Oe, b4 as Ae, b5 as Te, b6 as Re, b7 as ht, b8 as pe, b9 as pt, x as ae, u as mt, ba as Ue, b as Ie, c as Me, d as Pe, e as ze, f as Fe, bb as ft, n as je, bc as gt, bd as De, be as xt } from "./index-DwfDwtv2.js";
2
+ import { c as He, u as se, G as Ge, a as Z, B as O, f as te, N as be, V as $e, L as ie, a2 as de, X as ke, Z as We, _ as Xe, $ as Ye, a1 as Ze, az as Je } from "./switch-De31SR3q.js";
3
+ import Qe, { useState as b, useEffect as ee, useRef as qe } from "react";
4
+ import { ah as ue, aL as et, aM as tt, aI as ce, aN as nt, aO as at, aP as st, aQ as it, aR as Y, aS as ot, aT as rt, aU as lt, aV as xe, az as he, aW as dt, aX as ct, aY as Ne, aZ as we, a_ as ut, J as ye, A as Ce, a$ as ve, b0 as Se, b1 as Ee, b2 as Ve, b3 as Le, b4 as Ae, b5 as Oe, b6 as Te, b7 as Re, b8 as ht, b9 as pe, ba as pt, y as ae, u as mt, bb as Ue, c as Ie, d as ze, e as Me, f as Pe, g as Fe, bc as ft, o as je, bd as gt, be as De, bf as xt } from "./index-BmKr-K7J.js";
5
5
  import "./index-CuHybtft.js";
6
- import { u as Be } from "./use-visual-utils-CSXU-96k.js";
6
+ import { u as Be } from "./use-visual-utils-DQ5zGYD2.js";
7
7
  /**
8
8
  * @license lucide-react v0.453.0 - ISC
9
9
  *
10
10
  * This source code is licensed under the ISC license.
11
11
  * See the LICENSE file in the root directory of this source tree.
12
12
  */
13
- const Dt = _e("FolderOpen", [
13
+ const Dt = He("FolderOpen", [
14
14
  [
15
15
  "path",
16
16
  {
@@ -39,7 +39,7 @@ const bt = (t) => {
39
39
  const f = se((o) => o.isVisualEditing), m = se((o) => o.selectedFrameId), r = Ge((o) => o.frame);
40
40
  return !!(f && m && (r == null ? void 0 : r.visualId) === t);
41
41
  };
42
- function wt({
42
+ function Nt({
43
43
  visual: t,
44
44
  isDeleting: f,
45
45
  isDuplicating: m,
@@ -49,14 +49,14 @@ function wt({
49
49
  onDeleteClick: x,
50
50
  onDuplicateVisual: i,
51
51
  onShareVisual: D,
52
- formatDate: w
52
+ formatDate: N
53
53
  }) {
54
- var M, I, z, F;
55
- const { selectVisual: l } = ue(), c = et(t.id), p = bt(t.id), O = se((d) => d.isVisualEditing), { isConsoleMode: U } = tt(), N = qe.useRef(null), [S, E] = b(!1), [V, T] = b(!1);
54
+ var z, I, P, F;
55
+ const { selectVisual: l } = ue(), c = et(t.id), p = bt(t.id), A = se((d) => d.isVisualEditing), { isConsoleMode: U } = tt(), w = Qe.useRef(null), [S, E] = b(!1), [V, T] = b(!1);
56
56
  ee(() => {
57
57
  m ? (E(!0), T(!0)) : V && (E(!1), T(!1));
58
58
  }, [m, V]), ee(() => {
59
- p && N.current && N.current.scrollIntoView({
59
+ p && w.current && w.current.scrollIntoView({
60
60
  behavior: "smooth",
61
61
  block: "center"
62
62
  });
@@ -69,7 +69,7 @@ function wt({
69
69
  return /* @__PURE__ */ n(
70
70
  "div",
71
71
  {
72
- ref: N,
72
+ ref: w,
73
73
  className: Z(
74
74
  "group flex cursor-pointer items-start gap-1 rounded-[5px] px-2 py-1.5 transition-colors hover:bg-muted/50 focus-within:bg-muted/50",
75
75
  p ? "bg-muted ring-1 ring-inset ring-foreground/20" : c && "bg-muted"
@@ -97,7 +97,7 @@ function wt({
97
97
  {
98
98
  className: "truncate text-[11px] leading-4 text-muted-foreground",
99
99
  title: t.description || "No description",
100
- children: (M = t.description) != null && M.trim() ? t.description : "No description"
100
+ children: (z = t.description) != null && z.trim() ? t.description : "No description"
101
101
  }
102
102
  )
103
103
  ]
@@ -113,12 +113,12 @@ function wt({
113
113
  onClick: (d) => d.stopPropagation(),
114
114
  children: /* @__PURE__ */ n("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-[5px] border border-border/60 bg-background", children: [
115
115
  /* @__PURE__ */ n(
116
- A,
116
+ O,
117
117
  {
118
118
  size: "xs",
119
119
  variant: "ghost",
120
120
  className: "h-full rounded-none border-0 shadow-none hover:bg-accent/50",
121
- disabled: O,
121
+ disabled: A,
122
122
  onClick: (d) => {
123
123
  d.stopPropagation(), r(t);
124
124
  },
@@ -137,7 +137,7 @@ function wt({
137
137
  onOpenChange: E,
138
138
  children: [
139
139
  /* @__PURE__ */ e(at, { asChild: !0, children: /* @__PURE__ */ e(
140
- A,
140
+ O,
141
141
  {
142
142
  size: "xs",
143
143
  variant: "ghost",
@@ -153,12 +153,12 @@ function wt({
153
153
  className: "z-[51] w-44 rounded-[6px] border border-border/60 p-1 shadow-sm",
154
154
  children: [
155
155
  /* @__PURE__ */ n(
156
- X,
156
+ Y,
157
157
  {
158
158
  onClick: (d) => {
159
159
  d.stopPropagation(), r(t);
160
160
  },
161
- disabled: O,
161
+ disabled: A,
162
162
  children: [
163
163
  /* @__PURE__ */ e(ce, { className: "h-3.5 w-3.5" }),
164
164
  "Add"
@@ -166,7 +166,7 @@ function wt({
166
166
  }
167
167
  ),
168
168
  /* @__PURE__ */ n(
169
- X,
169
+ Y,
170
170
  {
171
171
  onClick: (d) => {
172
172
  d.stopPropagation(), o == null || o(t);
@@ -178,7 +178,7 @@ function wt({
178
178
  }
179
179
  ),
180
180
  /* @__PURE__ */ n(
181
- X,
181
+ Y,
182
182
  {
183
183
  onClick: (d) => {
184
184
  d.preventDefault(), d.stopPropagation(), i(t.id);
@@ -192,7 +192,7 @@ function wt({
192
192
  ),
193
193
  t.ownership.isOwner && /* @__PURE__ */ n(oe, { children: [
194
194
  /* @__PURE__ */ n(
195
- X,
195
+ Y,
196
196
  {
197
197
  onClick: (d) => {
198
198
  d.stopPropagation(), h == null || h(t);
@@ -204,7 +204,7 @@ function wt({
204
204
  }
205
205
  ),
206
206
  /* @__PURE__ */ n(
207
- X,
207
+ Y,
208
208
  {
209
209
  onClick: (d) => {
210
210
  d.stopPropagation(), D(t);
@@ -217,7 +217,7 @@ function wt({
217
217
  ),
218
218
  /* @__PURE__ */ e(xe, {}),
219
219
  /* @__PURE__ */ n(
220
- X,
220
+ Y,
221
221
  {
222
222
  onClick: (d) => {
223
223
  d.stopPropagation(), x(t);
@@ -233,13 +233,13 @@ function wt({
233
233
  ] }),
234
234
  /* @__PURE__ */ e(xe, {}),
235
235
  /* @__PURE__ */ n("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
236
- (((I = t.ownership.createdBy) == null ? void 0 : I.type) === "tenant" || ((z = t.ownership.createdBy) == null ? void 0 : z.type) === "organization" && U) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
236
+ (((I = t.ownership.createdBy) == null ? void 0 : I.type) === "tenant" || ((P = t.ownership.createdBy) == null ? void 0 : P.type) === "organization" && U) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
237
237
  /* @__PURE__ */ e(dt, { className: "h-3 w-3" }),
238
238
  /* @__PURE__ */ e("span", { children: ((F = t.ownership.createdBy) == null ? void 0 : F.name) || "Unknown" })
239
239
  ] }),
240
240
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
241
241
  /* @__PURE__ */ e(ct, { className: "h-3 w-3" }),
242
- /* @__PURE__ */ e("span", { children: w(t.lastModified) })
242
+ /* @__PURE__ */ e("span", { children: N(t.lastModified) })
243
243
  ] })
244
244
  ] })
245
245
  ]
@@ -255,22 +255,22 @@ function wt({
255
255
  }
256
256
  );
257
257
  }
258
- function Nt({ searchQuery: t }) {
258
+ function wt({ searchQuery: t }) {
259
259
  const [f, m] = b(!1), [r, o] = b(
260
260
  null
261
- ), [h, x] = b(!1), [i, D] = b(null), [w, l] = b(null), [c, p] = b(
261
+ ), [h, x] = b(!1), [i, D] = b(null), [N, l] = b(null), [c, p] = b(
262
262
  null
263
- ), { handleEditLibraryVisual: O, handleAddLibraryVisual: U } = Be(), {
264
- resources: N,
263
+ ), { handleEditLibraryVisual: A, handleAddLibraryVisual: U } = Be(), {
264
+ resources: w,
265
265
  isLoading: S,
266
266
  isError: E,
267
267
  updateResource: V,
268
268
  deleteResource: T,
269
269
  duplicateResource: C,
270
270
  isDeleting: v
271
- } = we(() => {
271
+ } = Ne(() => {
272
272
  x(!1), D(null);
273
- }), M = N.filter(
273
+ }), z = w.filter(
274
274
  (s) => {
275
275
  var R, u;
276
276
  return ((R = s == null ? void 0 : s.title) == null ? void 0 : R.toLowerCase().includes(t.toLowerCase())) || ((u = s == null ? void 0 : s.description) == null ? void 0 : u.toLowerCase().includes(t.toLowerCase()));
@@ -279,37 +279,37 @@ function Nt({ searchQuery: t }) {
279
279
  month: "short",
280
280
  day: "numeric",
281
281
  year: "numeric"
282
- }), z = (s) => {
282
+ }), P = (s) => {
283
283
  D(s), x(!0);
284
284
  }, F = () => {
285
285
  i && T(i.id);
286
286
  }, {
287
287
  startUpdating: d,
288
- stopUpdating: Y,
288
+ stopUpdating: $,
289
289
  isUpdating: B
290
- } = Ne(), L = (s, R, u) => {
290
+ } = we(), L = (s, R, u) => {
291
291
  var ne;
292
292
  const j = Object.fromEntries(
293
- Object.entries(R).filter(([, P]) => P !== void 0)
293
+ Object.entries(R).filter(([, M]) => M !== void 0)
294
294
  );
295
295
  if (Object.keys(j).length === 0) {
296
296
  (ne = u == null ? void 0 : u.onSuccess) == null || ne.call(u);
297
297
  return;
298
298
  }
299
- const y = Object.keys(j), H = y.length === 1 ? y[0] : void 0;
300
- d(s, H), V(
299
+ const y = Object.keys(j), _ = y.length === 1 ? y[0] : void 0;
300
+ d(s, _), V(
301
301
  {
302
302
  resourceId: s,
303
303
  data: j
304
304
  },
305
305
  {
306
306
  onSuccess: () => {
307
- var P;
308
- Y(s, H), (P = u == null ? void 0 : u.onSuccess) == null || P.call(u);
307
+ var M;
308
+ $(s, _), (M = u == null ? void 0 : u.onSuccess) == null || M.call(u);
309
309
  },
310
310
  onError: () => {
311
- var P;
312
- Y(s, H), (P = u == null ? void 0 : u.onError) == null || P.call(u);
311
+ var M;
312
+ $(s, _), (M = u == null ? void 0 : u.onError) == null || M.call(u);
313
313
  }
314
314
  }
315
315
  );
@@ -318,16 +318,16 @@ function Nt({ searchQuery: t }) {
318
318
  onSettled: () => l(null)
319
319
  });
320
320
  }, K = (s) => {
321
- O(s);
322
- }, Q = (s) => {
323
- U(s);
321
+ A(s);
324
322
  }, W = (s) => {
323
+ U(s);
324
+ }, X = (s) => {
325
325
  o(s), m(!0);
326
- }, $ = (s) => {
326
+ }, J = (s) => {
327
327
  p(s);
328
- }, q = () => {
328
+ }, Q = () => {
329
329
  p(null);
330
- }, J = ({
330
+ }, q = ({
331
331
  title: s,
332
332
  description: R
333
333
  }) => {
@@ -343,7 +343,7 @@ function Nt({ searchQuery: t }) {
343
343
  return S ? /* @__PURE__ */ e(Ke, {}) : E ? /* @__PURE__ */ e(be, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
344
344
  /* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "Failed to load visuals" }),
345
345
  /* @__PURE__ */ e(
346
- A,
346
+ O,
347
347
  {
348
348
  variant: "outline",
349
349
  size: "xs",
@@ -352,22 +352,22 @@ function Nt({ searchQuery: t }) {
352
352
  }
353
353
  )
354
354
  ] }) }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
355
- /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: M.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
355
+ /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: z.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
356
356
  /* @__PURE__ */ e(ut, { className: "h-5 w-5 text-muted-foreground/60" }),
357
357
  /* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: t ? "No visuals found" : "No visuals yet" }),
358
358
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: t ? "Try adjusting your search." : 'Click "New" above to add your first visual.' })
359
- ] }) : M.map((s) => /* @__PURE__ */ e(
360
- wt,
359
+ ] }) : z.map((s) => /* @__PURE__ */ e(
360
+ Nt,
361
361
  {
362
362
  visual: s,
363
- onAddVisual: Q,
363
+ onAddVisual: W,
364
364
  onOpenVisual: K,
365
- onEditDetails: $,
366
- onDeleteClick: z,
365
+ onEditDetails: J,
366
+ onDeleteClick: P,
367
367
  onDuplicateVisual: k,
368
- onShareVisual: W,
368
+ onShareVisual: X,
369
369
  isDeleting: v,
370
- isDuplicating: w === s.id,
370
+ isDuplicating: N === s.id,
371
371
  formatDate: I
372
372
  },
373
373
  s.id
@@ -389,8 +389,8 @@ function Nt({ searchQuery: t }) {
389
389
  resourceLabel: "Visual",
390
390
  initialTitle: c.title || "",
391
391
  initialDescription: c.description || "",
392
- onClose: q,
393
- onSave: J,
392
+ onClose: Q,
393
+ onSave: q,
394
394
  isSaving: B(c.id)
395
395
  }
396
396
  ),
@@ -404,13 +404,13 @@ function Nt({ searchQuery: t }) {
404
404
  children: /* @__PURE__ */ n(Ee, { children: [
405
405
  /* @__PURE__ */ n(Ve, { children: [
406
406
  /* @__PURE__ */ e(Le, { children: "Delete Visual" }),
407
- /* @__PURE__ */ n(Oe, { children: [
407
+ /* @__PURE__ */ n(Ae, { children: [
408
408
  'Are you sure you want to delete "',
409
409
  i == null ? void 0 : i.title,
410
410
  '"? This action cannot be undone.'
411
411
  ] })
412
412
  ] }),
413
- /* @__PURE__ */ n(Ae, { children: [
413
+ /* @__PURE__ */ n(Oe, { children: [
414
414
  /* @__PURE__ */ e(Te, { disabled: v, children: "Cancel" }),
415
415
  /* @__PURE__ */ n(
416
416
  Re,
@@ -441,11 +441,11 @@ function yt({
441
441
  onDuplicateDashboard: x,
442
442
  onShareDashboard: i,
443
443
  formatDate: D,
444
- onDashboardItemClick: w
444
+ onDashboardItemClick: N
445
445
  }) {
446
446
  var V, T;
447
- const { selectDashboard: l } = ue(), c = ht(t.id), { userContext: p, isLoading: O } = pe(), U = ((V = p == null ? void 0 : p.permissions) == null ? void 0 : V.canEdit) ?? !1, N = O || !U, S = () => {
448
- l(t), r(t.id), w == null || w(t.id);
447
+ const { selectDashboard: l } = ue(), c = ht(t.id), { userContext: p, isLoading: A } = pe(), U = ((V = p == null ? void 0 : p.permissions) == null ? void 0 : V.canEdit) ?? !1, w = A || !U, S = () => {
448
+ l(t), r(t.id), N == null || N(t.id);
449
449
  }, E = (C) => {
450
450
  C.currentTarget === C.target && (C.key === "Enter" || C.key === " ") && (C.preventDefault(), S());
451
451
  };
@@ -498,7 +498,7 @@ function yt({
498
498
  dashboard: t,
499
499
  isDeleting: f,
500
500
  isDuplicating: m,
501
- shouldHideActions: N,
501
+ shouldHideActions: w,
502
502
  onEditDetails: o,
503
503
  onDeleteClick: h,
504
504
  onDuplicateDashboard: x,
@@ -515,14 +515,14 @@ function yt({
515
515
  function Ct({ onRetry: t }) {
516
516
  return /* @__PURE__ */ e(be, { className: "w-full flex-1 pr-2", children: /* @__PURE__ */ n("div", { className: "rounded-xl border border-dashed border-border/60 bg-muted/20 px-4 py-8 text-center text-muted-foreground", children: [
517
517
  /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: "Failed to load dashboards" }),
518
- /* @__PURE__ */ e(A, { variant: "outline", size: "sm", className: "mt-2", onClick: t, children: "Retry" })
518
+ /* @__PURE__ */ e(O, { variant: "outline", size: "sm", className: "mt-2", onClick: t, children: "Retry" })
519
519
  ] }) });
520
520
  }
521
521
  function vt(t) {
522
522
  var me;
523
523
  const { searchQuery: f, onLoadDashboard: m, onEditDashboard: r, onDashboardItemClick: o } = t, [h, x] = b(!1), [i, D] = b(
524
524
  null
525
- ), [w, l] = b(!1), [c, p] = b(null), [O, U] = b(null), [N, S] = b(null), E = ae(
525
+ ), [N, l] = b(!1), [c, p] = b(null), [A, U] = b(null), [w, S] = b(null), E = ae(
526
526
  (a) => a.lastSelectedDashboard
527
527
  ), V = ae(
528
528
  (a) => a.selectedDashboard
@@ -530,33 +530,33 @@ function vt(t) {
530
530
  (a) => a.actions.selectDashboard
531
531
  ), C = ae(
532
532
  (a) => a.actions.clearSelectedDashboard
533
- ), { tokenProps: v, id: M } = mt(), {
533
+ ), { tokenProps: v, id: z } = mt(), {
534
534
  resources: I,
535
- isLoading: z,
535
+ isLoading: P,
536
536
  isError: F,
537
537
  updateResource: d,
538
- deleteResource: Y,
538
+ deleteResource: $,
539
539
  duplicateResource: B,
540
540
  isDeleting: L
541
541
  } = Ue(() => {
542
542
  l(!1);
543
543
  const a = c == null ? void 0 : c.id;
544
- p(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !M ? C() : E && E.id !== a && T(E));
545
- }), { userContext: k } = pe(), K = ((me = k == null ? void 0 : k.permissions) == null ? void 0 : me.canCreateDashboard) ?? !1, Q = I.filter(
544
+ p(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !z ? C() : E && E.id !== a && T(E));
545
+ }), { userContext: k } = pe(), K = ((me = k == null ? void 0 : k.permissions) == null ? void 0 : me.canCreateDashboard) ?? !1, W = I.filter(
546
546
  (a) => {
547
- var _, g;
548
- return ((_ = a == null ? void 0 : a.title) == null ? void 0 : _.toLowerCase().includes(f.toLowerCase())) || ((g = a == null ? void 0 : a.description) == null ? void 0 : g.toLowerCase().includes(f.toLowerCase()));
547
+ var H, g;
548
+ return ((H = a == null ? void 0 : a.title) == null ? void 0 : H.toLowerCase().includes(f.toLowerCase())) || ((g = a == null ? void 0 : a.description) == null ? void 0 : g.toLowerCase().includes(f.toLowerCase()));
549
549
  }
550
- ), W = (a) => new Date(a).toLocaleDateString("en-US", {
550
+ ), X = (a) => new Date(a).toLocaleDateString("en-US", {
551
551
  month: "short",
552
552
  day: "numeric",
553
553
  year: "numeric"
554
- }), $ = (a) => {
554
+ }), J = (a) => {
555
555
  m == null || m(a);
556
- }, q = (a) => {
556
+ }, Q = (a) => {
557
557
  p(a), l(!0);
558
- }, J = () => {
559
- c && Y(c.id);
558
+ }, q = () => {
559
+ c && $(c.id);
560
560
  }, s = (a) => {
561
561
  U(a), B(a, {
562
562
  onSettled: () => U(null)
@@ -565,10 +565,10 @@ function vt(t) {
565
565
  startUpdating: R,
566
566
  stopUpdating: u,
567
567
  isUpdating: j
568
- } = Ne(), y = (a, _, g) => {
568
+ } = we(), y = (a, H, g) => {
569
569
  var ge;
570
570
  const re = Object.fromEntries(
571
- Object.entries(_).filter(([, G]) => G !== void 0)
571
+ Object.entries(H).filter(([, G]) => G !== void 0)
572
572
  );
573
573
  if (Object.keys(re).length === 0) {
574
574
  (ge = g == null ? void 0 : g.onSuccess) == null || ge.call(g);
@@ -591,42 +591,42 @@ function vt(t) {
591
591
  }
592
592
  }
593
593
  );
594
- }, H = (a) => {
594
+ }, _ = (a) => {
595
595
  D(a), x(!0);
596
596
  }, ne = (a) => {
597
597
  r == null || r(a.id), S(a);
598
- }, P = () => {
598
+ }, M = () => {
599
599
  S(null);
600
- }, He = ({
600
+ }, _e = ({
601
601
  title: a,
602
- description: _
602
+ description: H
603
603
  }) => {
604
- if (!N)
604
+ if (!w)
605
605
  return;
606
606
  const g = {};
607
- a !== N.title && (g.title = a), (N.description || "") !== _ && (g.description = _), y(N.id, g, {
607
+ a !== w.title && (g.title = a), (w.description || "") !== H && (g.description = H), y(w.id, g, {
608
608
  onSuccess: () => {
609
609
  S(null);
610
610
  }
611
611
  });
612
612
  };
613
- return z ? /* @__PURE__ */ e(Ke, {}) : F ? /* @__PURE__ */ e(Ct, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
614
- /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: Q.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
615
- /* @__PURE__ */ e(Ye, { className: "h-5 w-5 text-muted-foreground/60" }),
613
+ return P ? /* @__PURE__ */ e(Ke, {}) : F ? /* @__PURE__ */ e(Ct, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
614
+ /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: W.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
615
+ /* @__PURE__ */ e($e, { className: "h-5 w-5 text-muted-foreground/60" }),
616
616
  /* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: f ? "No dashboards found" : "No dashboards yet" }),
617
617
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: f ? "Try adjusting your search." : K ? 'Click "New" above to add your first dashboard.' : "No dashboards have been shared with you yet." })
618
- ] }) : Q.map((a) => /* @__PURE__ */ e(
618
+ ] }) : W.map((a) => /* @__PURE__ */ e(
619
619
  yt,
620
620
  {
621
621
  dashboard: a,
622
622
  isDeleting: L,
623
- isDuplicating: O === a.id,
624
- onLoadDashboard: $,
623
+ isDuplicating: A === a.id,
624
+ onLoadDashboard: J,
625
625
  onEditDetails: ne,
626
- onDeleteClick: q,
626
+ onDeleteClick: Q,
627
627
  onDuplicateDashboard: s,
628
- onShareDashboard: H,
629
- formatDate: W,
628
+ onShareDashboard: _,
629
+ formatDate: X,
630
630
  onDashboardItemClick: o
631
631
  },
632
632
  a.id
@@ -644,26 +644,26 @@ function vt(t) {
644
644
  /* @__PURE__ */ e(
645
645
  Se,
646
646
  {
647
- open: w,
647
+ open: N,
648
648
  onOpenChange: (a) => {
649
649
  !a && L || (l(a), a || p(null));
650
650
  },
651
651
  children: /* @__PURE__ */ n(Ee, { children: [
652
652
  /* @__PURE__ */ n(Ve, { children: [
653
653
  /* @__PURE__ */ e(Le, { children: "Delete Dashboard" }),
654
- /* @__PURE__ */ n(Oe, { children: [
654
+ /* @__PURE__ */ n(Ae, { children: [
655
655
  'Are you sure you want to delete "',
656
656
  c == null ? void 0 : c.title,
657
657
  '"? This action cannot be undone.'
658
658
  ] })
659
659
  ] }),
660
- /* @__PURE__ */ n(Ae, { children: [
660
+ /* @__PURE__ */ n(Oe, { children: [
661
661
  /* @__PURE__ */ e(Te, { disabled: L, children: "Cancel" }),
662
662
  /* @__PURE__ */ n(
663
663
  Re,
664
664
  {
665
665
  onClick: (a) => {
666
- a.preventDefault(), a.stopPropagation(), J();
666
+ a.preventDefault(), a.stopPropagation(), q();
667
667
  },
668
668
  disabled: L,
669
669
  children: [
@@ -676,22 +676,22 @@ function vt(t) {
676
676
  ] })
677
677
  }
678
678
  ),
679
- N && /* @__PURE__ */ e(
679
+ w && /* @__PURE__ */ e(
680
680
  ve,
681
681
  {
682
- open: !!N,
682
+ open: !!w,
683
683
  resourceLabel: "Dashboard",
684
- initialTitle: N.title || "",
685
- initialDescription: N.description || "",
686
- onClose: P,
687
- onSave: He,
688
- isSaving: j(N.id)
684
+ initialTitle: w.title || "",
685
+ initialDescription: w.description || "",
686
+ onClose: M,
687
+ onSave: _e,
688
+ isSaving: j(w.id)
689
689
  }
690
690
  )
691
691
  ] });
692
692
  }
693
693
  function St(t, f = {}) {
694
- const { enabled: m = !0, eventType: r = "mousedown" } = f, o = Je(null);
694
+ const { enabled: m = !0, eventType: r = "mousedown" } = f, o = qe(null);
695
695
  return ee(() => {
696
696
  const h = (x) => {
697
697
  const i = x.target;
@@ -714,12 +714,12 @@ function Et({
714
714
  }, [t]);
715
715
  const D = () => {
716
716
  o.trim() && m({ title: o, description: x });
717
- }, w = (l) => {
717
+ }, N = (l) => {
718
718
  f(l);
719
719
  };
720
- return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: w, children: /* @__PURE__ */ n(Me, { className: "sm:max-w-[480px]", children: [
721
- /* @__PURE__ */ n(Pe, { children: [
722
- /* @__PURE__ */ e(ze, { className: "text-[15px]", children: "New dashboard" }),
720
+ return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: N, children: /* @__PURE__ */ n(ze, { className: "sm:max-w-[480px]", children: [
721
+ /* @__PURE__ */ n(Me, { children: [
722
+ /* @__PURE__ */ e(Pe, { className: "text-[15px]", children: "New dashboard" }),
723
723
  /* @__PURE__ */ e(Fe, { className: "text-[13px]", children: "Give it a name and an optional description." })
724
724
  ] }),
725
725
  /* @__PURE__ */ n("div", { className: "space-y-3", children: [
@@ -758,18 +758,18 @@ function Et({
758
758
  ] }),
759
759
  /* @__PURE__ */ n(je, { className: "gap-1.5", children: [
760
760
  /* @__PURE__ */ e(
761
- A,
761
+ O,
762
762
  {
763
763
  type: "button",
764
764
  variant: "outline",
765
765
  size: "xs",
766
- onClick: () => w(!1),
766
+ onClick: () => N(!1),
767
767
  disabled: r,
768
768
  children: "Cancel"
769
769
  }
770
770
  ),
771
771
  /* @__PURE__ */ e(
772
- A,
772
+ O,
773
773
  {
774
774
  type: "button",
775
775
  size: "xs",
@@ -796,12 +796,12 @@ function Vt({
796
796
  }, [t]);
797
797
  const D = () => {
798
798
  o.trim() && m({ title: o, description: x });
799
- }, w = (l) => {
799
+ }, N = (l) => {
800
800
  f(l);
801
801
  };
802
- return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: w, children: /* @__PURE__ */ n(Me, { children: [
803
- /* @__PURE__ */ n(Pe, { children: [
804
- /* @__PURE__ */ e(ze, { children: "Create New Visual" }),
802
+ return /* @__PURE__ */ e(Ie, { open: t, onOpenChange: N, children: /* @__PURE__ */ n(ze, { children: [
803
+ /* @__PURE__ */ n(Me, { children: [
804
+ /* @__PURE__ */ e(Pe, { children: "Create New Visual" }),
805
805
  /* @__PURE__ */ e(Fe, { children: "Add a new visual to your library. You can configure it after creation." })
806
806
  ] }),
807
807
  /* @__PURE__ */ n("div", { className: "space-y-4 py-4", children: [
@@ -837,16 +837,16 @@ function Vt({
837
837
  ] }),
838
838
  /* @__PURE__ */ n(je, { children: [
839
839
  /* @__PURE__ */ e(
840
- A,
840
+ O,
841
841
  {
842
842
  variant: "outline",
843
- onClick: () => w(!1),
843
+ onClick: () => N(!1),
844
844
  disabled: r,
845
845
  children: "Cancel"
846
846
  }
847
847
  ),
848
848
  /* @__PURE__ */ e(
849
- A,
849
+ O,
850
850
  {
851
851
  onClick: D,
852
852
  disabled: !o.trim() || r,
@@ -869,38 +869,38 @@ function It({
869
869
  var u, j;
870
870
  const h = se(
871
871
  (y) => y.isDashboardEditing
872
- ), [x, i] = b(!1), [D, w] = b(""), [l, c] = b(!1), { currentUser: p, userContext: O } = pe(), U = ((u = O == null ? void 0 : O.permissions) == null ? void 0 : u.canCreateDashboard) ?? !1, { onCreateSuccess: N } = gt({
872
+ ), [x, i] = b(!1), [D, N] = b(""), [l, c] = b(!1), { currentUser: p, userContext: A } = pe(), U = ((u = A == null ? void 0 : A.permissions) == null ? void 0 : u.canCreateDashboard) ?? !1, { onCreateSuccess: w } = gt({
873
873
  onDashboardSelect: r
874
874
  }), { selectVisual: S } = ue(), { handleEditLibraryVisual: E } = Be(), {
875
875
  createResource: V,
876
876
  isCreating: T,
877
877
  refetch: C
878
- } = Ue(), { createResource: v, isCreating: M } = we(
878
+ } = Ue(), { createResource: v, isCreating: z } = Ne(
879
879
  void 0,
880
880
  // onDeleteSuccess (not needed here)
881
881
  (y) => {
882
882
  i(!1), y && (S(y), E(y));
883
883
  }
884
- ), I = o === "overlay", z = h ? "New Visual" : "New", F = h ? "New Visual" : "New Dashboard", d = h ? "Search visuals..." : "Search dashboards...", Y = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((p == null ? void 0 : p.name) ?? "").trim(), L = ((p == null ? void 0 : p.email) ?? "").trim(), K = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", Q = ((j = K.charAt(0)) == null ? void 0 : j.toUpperCase()) || "?", W = L && L.toLowerCase() !== "undefined" ? L : "", $ = St(f, {
884
+ ), I = o === "overlay", P = h ? "New Visual" : "New", F = h ? "New Visual" : "New Dashboard", d = h ? "Search visuals..." : "Search dashboards...", $ = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((p == null ? void 0 : p.name) ?? "").trim(), L = ((p == null ? void 0 : p.email) ?? "").trim(), K = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", W = ((j = K.charAt(0)) == null ? void 0 : j.toUpperCase()) || "?", X = L && L.toLowerCase() !== "undefined" ? L : "", J = St(f, {
885
885
  enabled: t && I
886
- }), q = Z(
886
+ }), Q = Z(
887
887
  "flex h-full flex-col border-r border-border/60 bg-background",
888
888
  I ? Z(
889
889
  "absolute inset-y-0 left-0 z-[51] w-60 overflow-hidden shadow-lg transition-transform duration-300 ease-in-out",
890
890
  t ? "translate-x-0" : "pointer-events-none -translate-x-full"
891
891
  ) : "w-full max-w-[17rem] min-w-[11rem] overflow-hidden",
892
892
  m
893
- ), J = (y) => {
893
+ ), q = (y) => {
894
894
  }, s = (y) => {
895
895
  console.log("Editing dashboard:", y);
896
896
  }, R = (y) => {
897
897
  V(y, {
898
- onSuccess: (H) => {
899
- i(!1), N(H, C);
898
+ onSuccess: (_) => {
899
+ i(!1), w(_, C);
900
900
  }
901
901
  });
902
902
  };
903
- return /* @__PURE__ */ e(oe, { children: (!I || t) && /* @__PURE__ */ n("div", { ref: $, className: q, children: [
903
+ return /* @__PURE__ */ e(oe, { children: (!I || t) && /* @__PURE__ */ n("div", { ref: J, className: Q, children: [
904
904
  /* @__PURE__ */ e("div", { className: "border-b border-border/60 bg-background", children: l ? /* @__PURE__ */ n("div", { className: "flex h-10 items-center gap-1 px-3", children: [
905
905
  /* @__PURE__ */ e(De, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
906
906
  /* @__PURE__ */ e(
@@ -908,9 +908,9 @@ function It({
908
908
  {
909
909
  autoFocus: !0,
910
910
  value: D,
911
- onChange: (y) => w(y.target.value),
911
+ onChange: (y) => N(y.target.value),
912
912
  onKeyDown: (y) => {
913
- y.key === "Escape" && (w(""), c(!1));
913
+ y.key === "Escape" && (N(""), c(!1));
914
914
  },
915
915
  placeholder: d,
916
916
  className: "h-7 min-w-0 flex-1 bg-transparent text-[13px] text-foreground placeholder:text-muted-foreground focus:outline-none",
@@ -918,13 +918,13 @@ function It({
918
918
  }
919
919
  ),
920
920
  /* @__PURE__ */ e(
921
- A,
921
+ O,
922
922
  {
923
923
  size: "xs",
924
924
  variant: "ghost",
925
925
  className: "w-7 shrink-0 px-0 text-muted-foreground hover:text-foreground",
926
926
  onClick: () => {
927
- w(""), c(!1);
927
+ N(""), c(!1);
928
928
  },
929
929
  "aria-label": "Close search",
930
930
  children: /* @__PURE__ */ e(ke, { className: "h-3.5 w-3.5" })
@@ -934,7 +934,7 @@ function It({
934
934
  /* @__PURE__ */ e("h2", { className: "whitespace-nowrap text-[13px] font-medium text-foreground", children: h ? "Visuals" : "Dashboards" }),
935
935
  /* @__PURE__ */ n("div", { className: "flex items-center gap-0.5", children: [
936
936
  /* @__PURE__ */ e(
937
- A,
937
+ O,
938
938
  {
939
939
  size: "xs",
940
940
  variant: "ghost",
@@ -945,7 +945,7 @@ function It({
945
945
  }
946
946
  ),
947
947
  (h || U) && /* @__PURE__ */ n(
948
- A,
948
+ O,
949
949
  {
950
950
  size: "xs",
951
951
  variant: "outline",
@@ -953,44 +953,44 @@ function It({
953
953
  "aria-label": F,
954
954
  children: [
955
955
  /* @__PURE__ */ e(ce, { className: "h-3.5 w-3.5" }),
956
- z
956
+ P
957
957
  ]
958
958
  }
959
959
  ),
960
960
  /* @__PURE__ */ e(
961
- A,
961
+ O,
962
962
  {
963
963
  size: "xs",
964
964
  variant: "ghost",
965
965
  className: "w-7 px-0 text-muted-foreground hover:text-foreground",
966
966
  onClick: f,
967
- "aria-label": Y,
967
+ "aria-label": $,
968
968
  children: /* @__PURE__ */ e(xt, { className: "h-3.5 w-3.5" })
969
969
  }
970
970
  )
971
971
  ] })
972
972
  ] }) }),
973
- /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-1.5 py-2", children: h ? /* @__PURE__ */ e(Nt, { searchQuery: D }) : /* @__PURE__ */ e(
973
+ /* @__PURE__ */ e("div", { className: "flex flex-1 flex-col overflow-auto px-1.5 py-2", children: h ? /* @__PURE__ */ e(wt, { searchQuery: D }) : /* @__PURE__ */ e(
974
974
  vt,
975
975
  {
976
976
  searchQuery: D,
977
- onLoadDashboard: J,
977
+ onLoadDashboard: q,
978
978
  onEditDashboard: s,
979
979
  onDashboardItemClick: r
980
980
  }
981
981
  ) }),
982
- p && /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e("div", { className: "border-t border-border/60 px-3 py-2", children: /* @__PURE__ */ n(We, { children: [
983
- /* @__PURE__ */ e(Xe, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex cursor-default items-center gap-2", children: [
984
- /* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children: Q }),
982
+ p && /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e("div", { className: "border-t border-border/60 px-3 py-2", children: /* @__PURE__ */ n(Xe, { children: [
983
+ /* @__PURE__ */ e(Ye, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex cursor-default items-center gap-2", children: [
984
+ /* @__PURE__ */ e("div", { className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-muted text-[10px] font-medium text-muted-foreground", children: W }),
985
985
  /* @__PURE__ */ e("span", { className: "truncate text-[12px] text-muted-foreground", children: K })
986
986
  ] }) }),
987
987
  /* @__PURE__ */ e(Ze, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-0.5", children: [
988
988
  /* @__PURE__ */ e("div", { className: "font-medium", children: K }),
989
- W && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: W }),
989
+ X && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: X }),
990
990
  p.role && /* @__PURE__ */ n("div", { className: "text-[11px] opacity-80", children: [
991
991
  "Role:",
992
992
  " ",
993
- $e(p.role.replace(/_/g, " "))
993
+ Je(p.role.replace(/_/g, " "))
994
994
  ] })
995
995
  ] }) })
996
996
  ] }) }) }),
@@ -1000,7 +1000,7 @@ function It({
1000
1000
  open: x,
1001
1001
  onOpenChange: i,
1002
1002
  onSubmit: v,
1003
- isCreating: M
1003
+ isCreating: z
1004
1004
  }
1005
1005
  ) : /* @__PURE__ */ e(
1006
1006
  Et,