react-semaphor 0.1.302 → 0.1.304

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 (56) hide show
  1. package/dist/appearance/index.cjs +1 -1
  2. package/dist/appearance/index.js +1 -1
  3. package/dist/brand-studio/index.cjs +5 -5
  4. package/dist/brand-studio/index.js +334 -385
  5. package/dist/chunks/common-types-C6cAQgyh.js +9 -0
  6. package/dist/chunks/common-types-nBuCd3u2.js +1 -0
  7. package/dist/chunks/{dashboard-controls-CZuC_QjN.js → dashboard-controls-CyFZfGaN.js} +800 -776
  8. package/dist/chunks/dashboard-controls-DCZnUFI0.js +47 -0
  9. package/dist/chunks/{dashboard-filter-controls-button-kfb_T18o.js → dashboard-filter-controls-button-DI7XUgZK.js} +142 -142
  10. package/dist/chunks/{dashboard-filter-controls-button-2I1ltWQ9.js → dashboard-filter-controls-button-YQZ-oeN5.js} +3 -3
  11. package/dist/chunks/{dashboard-json-Df6v2Jem.js → dashboard-json-C6R2qixD.js} +3 -3
  12. package/dist/chunks/{dashboard-json-C3v6rBdp.js → dashboard-json-Z8jz16Yj.js} +1 -1
  13. package/dist/chunks/{dashboard-summary-settings-dialog-DKAaWq-G.js → dashboard-summary-settings-dialog-BlD77h63.js} +2 -2
  14. package/dist/chunks/{dashboard-summary-settings-dialog-BBALEHJQ.js → dashboard-summary-settings-dialog-DJyY-PB9.js} +1 -1
  15. package/dist/chunks/{edit-dashboard-visual-CGBYahAK.js → edit-dashboard-visual-CNGc1zcN.js} +33 -33
  16. package/dist/chunks/{edit-dashboard-visual-D8L0cl_U.js → edit-dashboard-visual-CfRJXwDR.js} +167 -168
  17. package/dist/chunks/{index-uRJmUpof.js → index-CJdxSyQq.js} +679 -656
  18. package/dist/chunks/index-D2vz3gvd.js +1360 -0
  19. package/dist/chunks/index-DRlMUglg.js +4 -0
  20. package/dist/chunks/{index-BmoR3VQT.js → index-GHhvGdF9.js} +42745 -40322
  21. package/dist/chunks/{palette-326-dgn0.js → palette-BqJlrRto.js} +7 -2
  22. package/dist/chunks/{palette-jd7xiGTg.js → palette-DD-i7bNS.js} +23 -3
  23. package/dist/chunks/{resource-management-panel-C_c-BwrC.js → resource-management-panel-7Y4ITzGH.js} +65 -65
  24. package/dist/chunks/{resource-management-panel-DrcEEARD.js → resource-management-panel-Bdus73Iu.js} +1 -1
  25. package/dist/chunks/{rotate-ccw-BugHcM1w.js → rotate-ccw-CdGW8Rxm.js} +1 -1
  26. package/dist/chunks/{rotate-ccw-yFwqBFJZ.js → rotate-ccw-X8MbX_hF.js} +1 -1
  27. package/dist/chunks/{save-CaybXtdd.js → save-CFBIhbHD.js} +1 -1
  28. package/dist/chunks/{save-DU0FXUlM.js → save-j-clxFtx.js} +1 -1
  29. package/dist/chunks/{switch-CZtMtqEj.js → switch-BFhVVwh9.js} +4285 -3275
  30. package/dist/chunks/switch-BH17qlxH.js +163 -0
  31. package/dist/chunks/use-create-flow-overlay-state-CSytlf2H.js +16 -0
  32. package/dist/chunks/{use-create-flow-overlay-state-84Xe8VrP.js → use-create-flow-overlay-state-CllZvyvE.js} +318 -316
  33. package/dist/chunks/{use-visual-utils-lp5DfmvL.js → use-visual-utils-CDO4kVX5.js} +1 -1
  34. package/dist/chunks/{use-visual-utils-z3ifg6Fd.js → use-visual-utils-CyjLzcDG.js} +2 -2
  35. package/dist/dashboard/index.cjs +1 -1
  36. package/dist/dashboard/index.js +5 -5
  37. package/dist/index.cjs +1 -1
  38. package/dist/index.js +61 -60
  39. package/dist/style.css +1 -1
  40. package/dist/surfboard/index.cjs +1 -1
  41. package/dist/surfboard/index.js +6 -6
  42. package/dist/types/dashboard.d.ts +168 -0
  43. package/dist/types/index.cjs +1 -1
  44. package/dist/types/index.js +8 -11
  45. package/dist/types/main.d.ts +195 -2
  46. package/dist/types/shared.d.ts +120 -0
  47. package/dist/types/surfboard.d.ts +168 -0
  48. package/dist/types/types.d.ts +168 -0
  49. package/package.json +1 -1
  50. package/dist/chunks/braces-CpOcaBNm.js +0 -6
  51. package/dist/chunks/braces-TYclg8Hl.js +0 -23
  52. package/dist/chunks/dashboard-controls-BkuB9TQX.js +0 -47
  53. package/dist/chunks/index-Cxb9UUro.js +0 -4
  54. package/dist/chunks/index-eM6MU4q_.js +0 -1361
  55. package/dist/chunks/switch-AmoR1YIA.js +0 -163
  56. package/dist/chunks/use-create-flow-overlay-state-CiKVJGWF.js +0 -16
@@ -1,6 +1,11 @@
1
- "use strict";const c=require("./switch-AmoR1YIA.js");/**
1
+ "use strict";const c=require("./switch-BH17qlxH.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const e=c.createLucideIcon("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);exports.Palette=e;
6
+ */const e=c.createLucideIcon("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
7
+ * @license lucide-react v0.453.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const r=c.createLucideIcon("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);exports.Braces=e;exports.Palette=r;
@@ -1,11 +1,30 @@
1
- import { c } from "./switch-CZtMtqEj.js";
1
+ import { c } from "./switch-BFhVVwh9.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
5
5
  * This source code is licensed under the ISC license.
6
6
  * See the LICENSE file in the root directory of this source tree.
7
7
  */
8
- const e = c("Palette", [
8
+ const r = c("Braces", [
9
+ [
10
+ "path",
11
+ { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1", key: "ezmyqa" }
12
+ ],
13
+ [
14
+ "path",
15
+ {
16
+ d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",
17
+ key: "e1hn23"
18
+ }
19
+ ]
20
+ ]);
21
+ /**
22
+ * @license lucide-react v0.453.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */
27
+ const a = c("Palette", [
9
28
  ["circle", { cx: "13.5", cy: "6.5", r: ".5", fill: "currentColor", key: "1okk4w" }],
10
29
  ["circle", { cx: "17.5", cy: "10.5", r: ".5", fill: "currentColor", key: "f64h9f" }],
11
30
  ["circle", { cx: "8.5", cy: "7.5", r: ".5", fill: "currentColor", key: "fotxhn" }],
@@ -19,5 +38,6 @@ const e = c("Palette", [
19
38
  ]
20
39
  ]);
21
40
  export {
22
- e as P
41
+ r as B,
42
+ a as P
23
43
  };
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as n, Fragment as le } from "react/jsx-runtime";
2
- import { c as je, u as ne, n as Fe, a as Z, B as I, f as se, s as be, w as ze, L as fe, I as ge, X as Be, z as He, A as Ke, D as _e, F as We, af as Ye } from "./switch-CZtMtqEj.js";
3
- import Xe, { useRef as $e, useEffect as ae, useState as b } from "react";
4
- import { v as de, bL as Ge, bM as Qe, bE as ie, bN as Ze, bO as qe, bP as Je, bQ as ke, bR as Q, bS as et, bT as tt, bU as nt, bV as xe, bs as ce, bW as at, bX as st, bY as we, bZ as Ne, b_ as ot, a0 as ye, Y as Ce, b$ as ve, c0 as Se, c1 as Ee, c2 as Ve, c3 as Le, c4 as Ae, c5 as Oe, c6 as Re, c7 as Te, c8 as rt, c9 as ue, ca as it, W as te, u as lt, cb as Ue, b as dt, c as ct, d as ut, e as ht, f as pt, o as mt, cc as ft, cd as De, ce as gt, cf as xt } from "./index-BmoR3VQT.js";
5
- import { u as Ie } from "./use-visual-utils-z3ifg6Fd.js";
2
+ import { c as Fe, u as ne, n as je, a as X, B as I, f as se, s as be, w as ze, L as fe, I as ge, X as Be, z as He, A as Ke, D as _e, F as Ge, aD as We } from "./switch-BFhVVwh9.js";
3
+ import Ye, { useRef as qe, useEffect as ae, useState as b } from "react";
4
+ import { v as de, bo as Je, bp as Qe, bl as ie, bq as Xe, br as $e, bs as Ze, bt as ke, bu as Q, bv as et, bw as tt, bx as nt, by as xe, bc as ce, bz as at, bA as st, bB as we, bC as Ne, bD as ot, a0 as ye, Y as Ce, bE as ve, bF as Se, bG as Ee, bH as Ve, bI as Le, bJ as Ae, bK as Oe, bL as Re, bM as Te, bN as rt, bO as ue, bP as it, W as te, u as lt, bQ as Ue, b as dt, c as ct, d as ut, e as ht, f as pt, o as mt, bR as ft, bS as De, bT as gt, bU as xt } from "./index-GHhvGdF9.js";
5
+ import { u as Ie } from "./use-visual-utils-CyjLzcDG.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 Dt = je("FolderOpen", [
12
+ const Dt = Fe("FolderOpen", [
13
13
  [
14
14
  "path",
15
15
  {
@@ -19,7 +19,7 @@ const Dt = je("FolderOpen", [
19
19
  ]
20
20
  ]);
21
21
  function bt(t, m = {}) {
22
- const { enabled: p = !0, eventType: l = "mousedown" } = m, i = $e(null);
22
+ const { enabled: p = !0, eventType: l = "mousedown" } = m, i = qe(null);
23
23
  return ae(() => {
24
24
  const h = (w) => {
25
25
  const o = w.target;
@@ -47,7 +47,7 @@ function Me() {
47
47
  )) });
48
48
  }
49
49
  const wt = (t) => {
50
- const m = ne((i) => i.isVisualEditing), p = ne((i) => i.selectedFrameId), l = Fe((i) => i.frame);
50
+ const m = ne((i) => i.isVisualEditing), p = ne((i) => i.selectedFrameId), l = je((i) => i.frame);
51
51
  return !!(m && p && (l == null ? void 0 : l.visualId) === t);
52
52
  };
53
53
  function Nt({
@@ -62,8 +62,8 @@ function Nt({
62
62
  onShareVisual: N,
63
63
  formatDate: y
64
64
  }) {
65
- var M, U, j, F;
66
- const { selectVisual: f } = de(), d = Ge(t.id), u = wt(t.id), A = ne((r) => r.isVisualEditing), { isConsoleMode: T } = Qe(), x = Xe.useRef(null), [S, E] = b(!1), [V, O] = b(!1);
65
+ var M, U, F, j;
66
+ const { selectVisual: f } = de(), d = Je(t.id), u = wt(t.id), A = ne((r) => r.isVisualEditing), { isConsoleMode: T } = Qe(), x = Ye.useRef(null), [S, E] = b(!1), [V, O] = b(!1);
67
67
  ae(() => {
68
68
  p ? (E(!0), O(!0)) : V && (E(!1), O(!1));
69
69
  }, [p, V]), ae(() => {
@@ -81,7 +81,7 @@ function Nt({
81
81
  "div",
82
82
  {
83
83
  ref: x,
84
- className: Z(
84
+ className: X(
85
85
  "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",
86
86
  u ? "bg-muted ring-1 ring-inset ring-foreground/20" : d && "bg-muted"
87
87
  ),
@@ -117,7 +117,7 @@ function Nt({
117
117
  /* @__PURE__ */ e(
118
118
  "div",
119
119
  {
120
- className: Z(
120
+ className: X(
121
121
  "flex shrink-0 items-center transition-opacity",
122
122
  d || u || S ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0 group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100"
123
123
  ),
@@ -141,20 +141,20 @@ function Nt({
141
141
  }
142
142
  ),
143
143
  /* @__PURE__ */ n(
144
- Ze,
144
+ Xe,
145
145
  {
146
146
  modal: !1,
147
147
  open: S,
148
148
  onOpenChange: E,
149
149
  children: [
150
- /* @__PURE__ */ e(qe, { asChild: !0, children: /* @__PURE__ */ e(
150
+ /* @__PURE__ */ e($e, { asChild: !0, children: /* @__PURE__ */ e(
151
151
  I,
152
152
  {
153
153
  size: "xs",
154
154
  variant: "ghost",
155
155
  className: "h-full w-7 rounded-none border-0 border-l border-border/60 px-0 shadow-none hover:bg-accent/50",
156
156
  "aria-label": "Open visual actions",
157
- children: /* @__PURE__ */ e(Je, { className: "h-3.5 w-3.5" })
157
+ children: /* @__PURE__ */ e(Ze, { className: "h-3.5 w-3.5" })
158
158
  }
159
159
  ) }),
160
160
  /* @__PURE__ */ n(
@@ -244,9 +244,9 @@ function Nt({
244
244
  ] }),
245
245
  /* @__PURE__ */ e(xe, {}),
246
246
  /* @__PURE__ */ n("div", { className: "space-y-1 px-2 py-1.5 text-[11px] text-muted-foreground", children: [
247
- (((U = t.ownership.createdBy) == null ? void 0 : U.type) === "tenant" || ((j = t.ownership.createdBy) == null ? void 0 : j.type) === "organization" && T) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
247
+ (((U = t.ownership.createdBy) == null ? void 0 : U.type) === "tenant" || ((F = t.ownership.createdBy) == null ? void 0 : F.type) === "organization" && T) && /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
248
248
  /* @__PURE__ */ e(at, { className: "h-3 w-3" }),
249
- /* @__PURE__ */ e("span", { children: ((F = t.ownership.createdBy) == null ? void 0 : F.name) || "Unknown" })
249
+ /* @__PURE__ */ e("span", { children: ((j = t.ownership.createdBy) == null ? void 0 : j.name) || "Unknown" })
250
250
  ] }),
251
251
  /* @__PURE__ */ n("div", { className: "flex items-center gap-1.5", children: [
252
252
  /* @__PURE__ */ e(st, { className: "h-3 w-3" }),
@@ -290,13 +290,13 @@ function yt({ searchQuery: t }) {
290
290
  month: "short",
291
291
  day: "numeric",
292
292
  year: "numeric"
293
- }), j = (s) => {
293
+ }), F = (s) => {
294
294
  N(s), w(!0);
295
- }, F = () => {
295
+ }, j = () => {
296
296
  o && O(o.id);
297
297
  }, {
298
298
  startUpdating: r,
299
- stopUpdating: Y,
299
+ stopUpdating: W,
300
300
  isUpdating: B
301
301
  } = Ne(), L = (s, R, c) => {
302
302
  var ee;
@@ -316,27 +316,27 @@ function yt({ searchQuery: t }) {
316
316
  {
317
317
  onSuccess: () => {
318
318
  var P;
319
- Y(s, K), (P = c == null ? void 0 : c.onSuccess) == null || P.call(c);
319
+ W(s, K), (P = c == null ? void 0 : c.onSuccess) == null || P.call(c);
320
320
  },
321
321
  onError: () => {
322
322
  var P;
323
- Y(s, K), (P = c == null ? void 0 : c.onError) == null || P.call(c);
323
+ W(s, K), (P = c == null ? void 0 : c.onError) == null || P.call(c);
324
324
  }
325
325
  }
326
326
  );
327
- }, X = (s) => {
327
+ }, Y = (s) => {
328
328
  f(s), C(s, {
329
329
  onSettled: () => f(null)
330
330
  });
331
331
  }, H = (s) => {
332
332
  A(s);
333
- }, $ = (s) => {
333
+ }, q = (s) => {
334
334
  T(s);
335
- }, G = (s) => {
335
+ }, J = (s) => {
336
336
  i(s), p(!0);
337
- }, q = (s) => {
337
+ }, $ = (s) => {
338
338
  u(s);
339
- }, J = () => {
339
+ }, Z = () => {
340
340
  u(null);
341
341
  }, k = ({
342
342
  title: s,
@@ -371,12 +371,12 @@ function yt({ searchQuery: t }) {
371
371
  Nt,
372
372
  {
373
373
  visual: s,
374
- onAddVisual: $,
374
+ onAddVisual: q,
375
375
  onOpenVisual: H,
376
- onEditDetails: q,
377
- onDeleteClick: j,
378
- onDuplicateVisual: X,
379
- onShareVisual: G,
376
+ onEditDetails: $,
377
+ onDeleteClick: F,
378
+ onDuplicateVisual: Y,
379
+ onShareVisual: J,
380
380
  isDeleting: v,
381
381
  isDuplicating: y === s.id,
382
382
  formatDate: U
@@ -400,7 +400,7 @@ function yt({ searchQuery: t }) {
400
400
  resourceLabel: "Visual",
401
401
  initialTitle: d.title || "",
402
402
  initialDescription: d.description || "",
403
- onClose: J,
403
+ onClose: Z,
404
404
  onSave: k,
405
405
  isSaving: B(d.id)
406
406
  }
@@ -427,7 +427,7 @@ function yt({ searchQuery: t }) {
427
427
  Te,
428
428
  {
429
429
  onClick: (s) => {
430
- s.preventDefault(), s.stopPropagation(), F();
430
+ s.preventDefault(), s.stopPropagation(), j();
431
431
  },
432
432
  disabled: v,
433
433
  children: [
@@ -463,7 +463,7 @@ function Ct({
463
463
  return /* @__PURE__ */ n(
464
464
  "div",
465
465
  {
466
- className: Z(
466
+ className: X(
467
467
  "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",
468
468
  d && "bg-muted"
469
469
  ),
@@ -499,7 +499,7 @@ function Ct({
499
499
  /* @__PURE__ */ e(
500
500
  "div",
501
501
  {
502
- className: Z(
502
+ className: X(
503
503
  "shrink-0 transition-opacity",
504
504
  d ? "opacity-100" : "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100"
505
505
  ),
@@ -543,31 +543,31 @@ function St(t) {
543
543
  (a) => a.actions.clearSelectedDashboard
544
544
  ), { tokenProps: v, id: M } = lt(), {
545
545
  resources: U,
546
- isLoading: j,
547
- isError: F,
546
+ isLoading: F,
547
+ isError: j,
548
548
  updateResource: r,
549
- deleteResource: Y,
549
+ deleteResource: W,
550
550
  duplicateResource: B,
551
551
  isDeleting: L
552
552
  } = Ue(() => {
553
553
  f(!1);
554
554
  const a = d == null ? void 0 : d.id;
555
555
  u(null), (V == null ? void 0 : V.id) === a && (!(v != null && v.dashboard_id) && !M ? C() : E && E.id !== a && O(E));
556
- }), { userContext: X } = ue(), H = ((he = X == null ? void 0 : X.permissions) == null ? void 0 : he.canCreateDashboard) ?? !1, $ = U.filter(
556
+ }), { userContext: Y } = ue(), H = ((he = Y == null ? void 0 : Y.permissions) == null ? void 0 : he.canCreateDashboard) ?? !1, q = U.filter(
557
557
  (a) => {
558
558
  var _, g;
559
559
  return ((_ = a == null ? void 0 : a.title) == null ? void 0 : _.toLowerCase().includes(m.toLowerCase())) || ((g = a == null ? void 0 : a.description) == null ? void 0 : g.toLowerCase().includes(m.toLowerCase()));
560
560
  }
561
- ), G = (a) => new Date(a).toLocaleDateString("en-US", {
561
+ ), J = (a) => new Date(a).toLocaleDateString("en-US", {
562
562
  month: "short",
563
563
  day: "numeric",
564
564
  year: "numeric"
565
- }), q = (a) => {
565
+ }), $ = (a) => {
566
566
  p == null || p(a);
567
- }, J = (a) => {
567
+ }, Z = (a) => {
568
568
  u(a), f(!0);
569
569
  }, k = () => {
570
- d && Y(d.id);
570
+ d && W(d.id);
571
571
  }, s = (a) => {
572
572
  T(a), B(a, {
573
573
  onSettled: () => T(null)
@@ -579,7 +579,7 @@ function St(t) {
579
579
  } = Ne(), D = (a, _, g) => {
580
580
  var me;
581
581
  const oe = Object.fromEntries(
582
- Object.entries(_).filter(([, W]) => W !== void 0)
582
+ Object.entries(_).filter(([, G]) => G !== void 0)
583
583
  );
584
584
  if (Object.keys(oe).length === 0) {
585
585
  (me = g == null ? void 0 : g.onSuccess) == null || me.call(g);
@@ -593,12 +593,12 @@ function St(t) {
593
593
  },
594
594
  {
595
595
  onSuccess: () => {
596
- var W;
597
- c(a, re), (W = g == null ? void 0 : g.onSuccess) == null || W.call(g);
596
+ var G;
597
+ c(a, re), (G = g == null ? void 0 : g.onSuccess) == null || G.call(g);
598
598
  },
599
599
  onError: () => {
600
- var W;
601
- c(a, re), (W = g == null ? void 0 : g.onError) == null || W.call(g);
600
+ var G;
601
+ c(a, re), (G = g == null ? void 0 : g.onError) == null || G.call(g);
602
602
  }
603
603
  }
604
604
  );
@@ -621,23 +621,23 @@ function St(t) {
621
621
  }
622
622
  });
623
623
  };
624
- return j ? /* @__PURE__ */ e(Me, {}) : F ? /* @__PURE__ */ e(vt, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
625
- /* @__PURE__ */ e("div", { className: "flex flex-1 basis-0 flex-col gap-0.5 overflow-y-auto", children: $.length === 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center gap-1.5 px-4 py-10 text-center", children: [
624
+ return F ? /* @__PURE__ */ e(Me, {}) : j ? /* @__PURE__ */ e(vt, { onRetry: () => window.location.reload() }) : /* @__PURE__ */ n("div", { className: "flex h-full flex-1 flex-col", children: [
625
+ /* @__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: [
626
626
  /* @__PURE__ */ e(ze, { className: "h-5 w-5 text-muted-foreground/60" }),
627
627
  /* @__PURE__ */ e("h3", { className: "text-[13px] font-medium text-foreground", children: m ? "No dashboards found" : "No dashboards yet" }),
628
628
  /* @__PURE__ */ e("p", { className: "text-[12px] text-muted-foreground", children: m ? "Try adjusting your search." : H ? 'Click "New" above to add your first dashboard.' : "No dashboards have been shared with you yet." })
629
- ] }) : $.map((a) => /* @__PURE__ */ e(
629
+ ] }) : q.map((a) => /* @__PURE__ */ e(
630
630
  Ct,
631
631
  {
632
632
  dashboard: a,
633
633
  isDeleting: L,
634
634
  isDuplicating: A === a.id,
635
- onLoadDashboard: q,
635
+ onLoadDashboard: $,
636
636
  onEditDetails: ee,
637
- onDeleteClick: J,
637
+ onDeleteClick: Z,
638
638
  onDuplicateDashboard: s,
639
639
  onShareDashboard: K,
640
- formatDate: G,
640
+ formatDate: J,
641
641
  onDashboardItemClick: i
642
642
  },
643
643
  a.id
@@ -798,11 +798,11 @@ function Tt({
798
798
  (D) => {
799
799
  o(!1), D && (S(D), E(D));
800
800
  }
801
- ), U = i === "overlay", j = h ? "New Visual" : "New", F = h ? "New Visual" : "New Dashboard", r = h ? "Search visuals..." : "Search dashboards...", Y = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((u == null ? void 0 : u.name) ?? "").trim(), L = ((u == null ? void 0 : u.email) ?? "").trim(), H = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", $ = ((z = H.charAt(0)) == null ? void 0 : z.toUpperCase()) || "?", G = L && L.toLowerCase() !== "undefined" ? L : "", q = bt(m, {
801
+ ), U = i === "overlay", F = h ? "New Visual" : "New", j = h ? "New Visual" : "New Dashboard", r = h ? "Search visuals..." : "Search dashboards...", W = h ? "Collapse visuals panel" : "Collapse dashboard panel", B = ((u == null ? void 0 : u.name) ?? "").trim(), L = ((u == null ? void 0 : u.email) ?? "").trim(), H = B && B.toLowerCase() !== "undefined" ? B : L || "Current user", q = ((z = H.charAt(0)) == null ? void 0 : z.toUpperCase()) || "?", J = L && L.toLowerCase() !== "undefined" ? L : "", $ = bt(m, {
802
802
  enabled: t && U
803
- }), J = Z(
803
+ }), Z = X(
804
804
  "flex h-full flex-col border-r border-border/60 bg-background",
805
- U ? Z(
805
+ U ? X(
806
806
  "absolute inset-y-0 left-0 z-[51] w-60 overflow-hidden shadow-lg transition-transform duration-300 ease-in-out",
807
807
  t ? "translate-x-0" : "pointer-events-none -translate-x-full"
808
808
  ) : "w-full max-w-[17rem] min-w-[11rem] overflow-hidden",
@@ -817,7 +817,7 @@ function Tt({
817
817
  }
818
818
  });
819
819
  };
820
- return /* @__PURE__ */ e(le, { children: (!U || t) && /* @__PURE__ */ n("div", { ref: q, className: J, children: [
820
+ return /* @__PURE__ */ e(le, { children: (!U || t) && /* @__PURE__ */ n("div", { ref: $, className: Z, children: [
821
821
  /* @__PURE__ */ e("div", { className: "border-b border-border/60 bg-background", children: f ? /* @__PURE__ */ n("div", { className: "flex h-10 items-center gap-1 px-3", children: [
822
822
  /* @__PURE__ */ e(De, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
823
823
  /* @__PURE__ */ e(
@@ -867,10 +867,10 @@ function Tt({
867
867
  size: "xs",
868
868
  variant: "outline",
869
869
  onClick: () => o(!0),
870
- "aria-label": F,
870
+ "aria-label": j,
871
871
  children: [
872
872
  /* @__PURE__ */ e(ie, { className: "h-3.5 w-3.5" }),
873
- j
873
+ F
874
874
  ]
875
875
  }
876
876
  ),
@@ -881,7 +881,7 @@ function Tt({
881
881
  variant: "ghost",
882
882
  className: "w-7 px-0 text-muted-foreground hover:text-foreground",
883
883
  onClick: m,
884
- "aria-label": Y,
884
+ "aria-label": W,
885
885
  children: /* @__PURE__ */ e(gt, { className: "h-3.5 w-3.5" })
886
886
  }
887
887
  )
@@ -898,16 +898,16 @@ function Tt({
898
898
  ) }),
899
899
  u && /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e("div", { className: "border-t border-border/60 px-3 py-2", children: /* @__PURE__ */ n(Ke, { children: [
900
900
  /* @__PURE__ */ e(_e, { asChild: !0, children: /* @__PURE__ */ n("div", { className: "flex cursor-default items-center gap-2", children: [
901
- /* @__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: $ }),
901
+ /* @__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 }),
902
902
  /* @__PURE__ */ e("span", { className: "truncate text-[12px] text-muted-foreground", children: H })
903
903
  ] }) }),
904
- /* @__PURE__ */ e(We, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-0.5", children: [
904
+ /* @__PURE__ */ e(Ge, { side: "top", className: "max-w-xs", children: /* @__PURE__ */ n("div", { className: "space-y-0.5", children: [
905
905
  /* @__PURE__ */ e("div", { className: "font-medium", children: H }),
906
- G && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: G }),
906
+ J && /* @__PURE__ */ e("div", { className: "text-[11px] opacity-80", children: J }),
907
907
  u.role && /* @__PURE__ */ n("div", { className: "text-[11px] opacity-80", children: [
908
908
  "Role:",
909
909
  " ",
910
- Ye(u.role.replace(/_/g, " "))
910
+ We(u.role.replace(/_/g, " "))
911
911
  ] })
912
912
  ] }) })
913
913
  ] }) }) }),
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-AmoR1YIA.js"),x=require("react"),t=require("./index-eM6MU4q_.js"),oe=require("./use-visual-utils-lp5DfmvL.js");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("./switch-BH17qlxH.js"),x=require("react"),t=require("./index-D2vz3gvd.js"),oe=require("./use-visual-utils-CDO4kVX5.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- "use strict";const t=require("./switch-AmoR1YIA.js");/**
1
+ "use strict";const t=require("./switch-BH17qlxH.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import { c as t } from "./switch-CZtMtqEj.js";
1
+ import { c as t } from "./switch-BFhVVwh9.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("./switch-AmoR1YIA.js");/**
1
+ "use strict";const a=require("./switch-BH17qlxH.js");/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import { c as a } from "./switch-CZtMtqEj.js";
1
+ import { c as a } from "./switch-BFhVVwh9.js";
2
2
  /**
3
3
  * @license lucide-react v0.453.0 - ISC
4
4
  *