react-semaphor 0.1.163 → 0.1.165

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 (25) hide show
  1. package/dist/chunks/{dashboard-controls-lOO1Kawo.js → dashboard-controls-BA7vyPHM.js} +104 -104
  2. package/dist/chunks/{dashboard-controls-ChqSrjnv.js → dashboard-controls-CEnWdjuE.js} +1 -1
  3. package/dist/chunks/{dashboard-export-dialog-BVBiNvo4.js → dashboard-export-dialog-9nJsWzgJ.js} +1 -1
  4. package/dist/chunks/{dashboard-export-dialog-h5owxj4H.js → dashboard-export-dialog-CEVJnrSj.js} +42 -42
  5. package/dist/chunks/{dashboard-json-Bp8U1SuM.js → dashboard-json-B4UTFvyR.js} +1 -1
  6. package/dist/chunks/{dashboard-json-D4Apm_Z0.js → dashboard-json-C8YFsFVt.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-BGY-Nj8j.js → edit-dashboard-visual-BMBiT_V_.js} +2 -2
  8. package/dist/chunks/{edit-dashboard-visual-ItNwbDeL.js → edit-dashboard-visual-DKqjPVRM.js} +467 -467
  9. package/dist/chunks/{editor-action-buttons-D91jaw9J.js → editor-action-buttons-De18jUjn.js} +2 -2
  10. package/dist/chunks/{editor-action-buttons-B2mhU48J.js → editor-action-buttons-xrbSWcSm.js} +1 -1
  11. package/dist/chunks/{index-BZpXKhl2.js → index-5dE6RqWv.js} +13528 -13412
  12. package/dist/chunks/{index-CM3-W6qg.js → index-odiH0LJA.js} +229 -224
  13. package/dist/chunks/{resource-management-panel-B_pm6Dv6.js → resource-management-panel-CK-wL4Jy.js} +1 -1
  14. package/dist/chunks/{resource-management-panel-CG1NjRIJ.js → resource-management-panel-CjWRsuif.js} +124 -124
  15. package/dist/chunks/{use-role-aware-display-preferences-DLpbW937.js → use-role-aware-display-preferences-Bj_-I3oD.js} +1 -1
  16. package/dist/chunks/{use-role-aware-display-preferences-VBz5V4SH.js → use-role-aware-display-preferences-Cm7hg_Us.js} +1 -1
  17. package/dist/chunks/{use-visual-utils-CRbrMwuR.js → use-visual-utils-Du173Ucu.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-B1rNqRXZ.js → use-visual-utils-DwnVUHSd.js} +12 -12
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +2 -2
  22. package/dist/index.js +111 -108
  23. package/dist/surfboard/index.cjs +1 -1
  24. package/dist/surfboard/index.js +1 -1
  25. package/package.json +1 -1
@@ -1,18 +1,18 @@
1
1
  import { jsxs as r, jsx as e, Fragment as E } from "react/jsx-runtime";
2
- import { l as Z, bK as zs, bL as qs, u as y, aQ as Be, aR as Je, B as k, aT as We, aU as fe, bM as Me, o as Ze, ay as U, aD as ke, bN as $s, bi as Le, aE as Ae, aF as Ie, aG as Ee, aH as Xe, aI as be, bb as W, aM as js, J as z, bO as Qs, bm as Vs, bP as Hs, bQ as Qe, bR as Ye, c as X, bS as es, be as Ks, p as le, bT as ce, t as L, bU as ss, aK as Bs, bV as Js, L as q, bl as $, bW as Ws, bX as Zs, bY as Ne, bZ as Xs, b_ as Ys, b$ as as, c0 as ts, c1 as oe, c2 as ie, bH as ye, bs as we, c3 as xe, bn as rs, c4 as Ce, aL as ns, e as os, c5 as ea, aY as is, aZ as ls, a_ as cs, b0 as ds, b1 as us, b2 as ms, b3 as hs, b4 as De, c6 as sa, bg as aa, c7 as ta, R as ra, n as Ve, Q as re, _ as na, T as ve, c8 as oa, c9 as ia, ca as la, cb as ca, bj as da, a5 as ua, cc as ma, cd as ha, ce as pa, cf as ga, Z as fa, a4 as va } from "./index-BZpXKhl2.js";
2
+ import { l as X, bL as _s, bM as $s, u as y, aR as Ke, aS as Je, B as k, aU as We, aV as fe, bN as Me, o as Xe, az as U, aE as ke, bO as qs, bj as Le, aF as Ae, aG as Ie, aH as Ee, aI as Ze, aJ as be, bc as W, aN as js, K as _, bP as Vs, bn as Qs, bQ as Hs, bR as Ve, bS as Ye, c as Z, bT as es, bf as Bs, p as le, bU as ce, t as L, bV as ss, aL as Ks, bW as Js, L as $, bm as q, bX as Ws, bY as Xs, bZ as Ne, b_ as Zs, b$ as Ys, c0 as as, c1 as ts, c2 as oe, c3 as ie, bI as ye, bt as we, c4 as xe, bo as rs, c5 as Ce, aM as ns, e as os, c6 as ea, aZ as is, a_ as ls, a$ as cs, b1 as ds, b2 as us, b3 as ms, b4 as hs, b5 as De, c7 as sa, bh as aa, c8 as ta, T as ra, n as Qe, R as re, $ as na, V as ve, c9 as oa, ca as ia, cb as la, cc as ca, bk as da, a6 as ua, cd as ma, ce as ha, cf as pa, cg as ga, _ as fa, a5 as va } from "./index-5dE6RqWv.js";
3
3
  import * as M from "react";
4
4
  import { useState as b, useMemo as ne, useEffect as ba } from "react";
5
5
  import "react-dom";
6
- import { D as Na, u as ya, A as wa, V as xa, S as Ca, U as Da } from "./dashboard-export-dialog-h5owxj4H.js";
7
- import { u as Sa } from "./use-role-aware-display-preferences-VBz5V4SH.js";
8
- import { S as He } from "./editor-action-buttons-D91jaw9J.js";
6
+ import { D as Na, u as ya, A as wa, V as xa, S as Ca, U as Da } from "./dashboard-export-dialog-CEVJnrSj.js";
7
+ import { u as Sa } from "./use-role-aware-display-preferences-Cm7hg_Us.js";
8
+ import { S as He } from "./editor-action-buttons-De18jUjn.js";
9
9
  /**
10
10
  * @license lucide-react v0.453.0 - ISC
11
11
  *
12
12
  * This source code is licensed under the ISC license.
13
13
  * See the LICENSE file in the root directory of this source tree.
14
14
  */
15
- const Ma = Z("Glasses", [
15
+ const Ma = X("Glasses", [
16
16
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
17
17
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
18
18
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -25,7 +25,7 @@ const Ma = Z("Glasses", [
25
25
  * This source code is licensed under the ISC license.
26
26
  * See the LICENSE file in the root directory of this source tree.
27
27
  */
28
- const ka = Z("Menu", [
28
+ const ka = X("Menu", [
29
29
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
30
30
  ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
31
31
  ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
@@ -36,7 +36,7 @@ const ka = Z("Menu", [
36
36
  * This source code is licensed under the ISC license.
37
37
  * See the LICENSE file in the root directory of this source tree.
38
38
  */
39
- const La = Z("Moon", [
39
+ const La = X("Moon", [
40
40
  ["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
41
41
  ]);
42
42
  /**
@@ -45,7 +45,7 @@ const La = Z("Moon", [
45
45
  * This source code is licensed under the ISC license.
46
46
  * See the LICENSE file in the root directory of this source tree.
47
47
  */
48
- const Aa = Z("ShieldX", [
48
+ const Aa = X("ShieldX", [
49
49
  [
50
50
  "path",
51
51
  {
@@ -62,7 +62,7 @@ const Aa = Z("ShieldX", [
62
62
  * This source code is licensed under the ISC license.
63
63
  * See the LICENSE file in the root directory of this source tree.
64
64
  */
65
- const Ia = Z("Sun", [
65
+ const Ia = X("Sun", [
66
66
  ["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
67
67
  ["path", { d: "M12 2v2", key: "tus03m" }],
68
68
  ["path", { d: "M12 20v2", key: "1lh1kg" }],
@@ -73,12 +73,12 @@ const Ia = Z("Sun", [
73
73
  ["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
74
74
  ["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
75
75
  ]);
76
- var Ea = zs();
76
+ var Ea = _s();
77
77
  function Ta() {
78
- const { setTheme: s } = qs(), n = y(
78
+ const { setTheme: s } = $s(), n = y(
79
79
  (a) => a.actions.setDashboardTheme
80
80
  );
81
- return /* @__PURE__ */ r(Be, { children: [
81
+ return /* @__PURE__ */ r(Ke, { children: [
82
82
  /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ r(k, { className: "h-7 p-2", variant: "ghost", size: "sm", children: [
83
83
  /* @__PURE__ */ e(
84
84
  Ia,
@@ -161,7 +161,7 @@ async function Ga(s, n, a) {
161
161
  });
162
162
  }
163
163
  function Fa() {
164
- const [s, n] = b(""), [a, t] = b(!1), l = y((C) => C.lenses), { setLenses: o, setSelectedLensId: c } = Ze(), [u, p] = b(!1), [f, d] = b(!1), m = y((C) => C.dashboard), g = y((C) => C.filterValues), { authToken: v, tokenProps: N } = U();
164
+ const [s, n] = b(""), [a, t] = b(!1), l = y((C) => C.lenses), { setLenses: o, setSelectedLensId: c } = Xe(), [u, p] = b(!1), [f, d] = b(!1), m = y((C) => C.dashboard), g = y((C) => C.filterValues), { authToken: v, tokenProps: N } = U();
165
165
  async function w() {
166
166
  p(!0);
167
167
  const C = await Pa(
@@ -174,7 +174,7 @@ function Fa() {
174
174
  C && (o([...l || [], C]), c(C.id), d(!1)), p(!1);
175
175
  }
176
176
  return /* @__PURE__ */ r(ke, { open: f, onOpenChange: d, children: [
177
- /* @__PURE__ */ e($s, { asChild: !0, children: /* @__PURE__ */ r(
177
+ /* @__PURE__ */ e(qs, { asChild: !0, children: /* @__PURE__ */ r(
178
178
  k,
179
179
  {
180
180
  variant: "secondary",
@@ -189,7 +189,7 @@ function Fa() {
189
189
  /* @__PURE__ */ r(Ae, { className: "sm:max-w-[425px]", children: [
190
190
  /* @__PURE__ */ r(Ie, { children: [
191
191
  /* @__PURE__ */ e(Ee, { children: "Create Lens" }),
192
- /* @__PURE__ */ e(Xe, { children: "Lenses are private by default and are only visible to you." })
192
+ /* @__PURE__ */ e(Ze, { children: "Lenses are private by default and are only visible to you." })
193
193
  ] }),
194
194
  /* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ r("div", { className: "grid grid-cols-8 items-center gap-4", children: [
195
195
  /* @__PURE__ */ e(be, { className: "text-right", children: "Name" }),
@@ -221,7 +221,7 @@ function Fa() {
221
221
  ] });
222
222
  }
223
223
  function Ra() {
224
- const [s, n] = b(!1), a = y((m) => m.lenses), t = y((m) => m.selectedLensId), { setLenses: l, setSelectedLensId: o } = Ze(), { authToken: c, tokenProps: u } = U();
224
+ const [s, n] = b(!1), a = y((m) => m.lenses), t = y((m) => m.selectedLensId), { setLenses: l, setSelectedLensId: o } = Xe(), { authToken: c, tokenProps: u } = U();
225
225
  async function p(m) {
226
226
  o(m);
227
227
  }
@@ -254,20 +254,20 @@ function Ra() {
254
254
  await Se(u.apiServiceUrl, w, c == null ? void 0 : c.accessToken);
255
255
  }
256
256
  }
257
- return /* @__PURE__ */ r(Be, { open: s, onOpenChange: n, children: [
258
- /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(z, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(Ma, { className: "h-4 w-4" }) }) }),
257
+ return /* @__PURE__ */ r(Ke, { open: s, onOpenChange: n, children: [
258
+ /* @__PURE__ */ e(Je, { asChild: !0, children: /* @__PURE__ */ e(_, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(Ma, { className: "h-4 w-4" }) }) }),
259
259
  /* @__PURE__ */ r(We, { align: "end", className: "w-60", children: [
260
- /* @__PURE__ */ e(Qs, { className: "px-3", children: "Lenses" }),
261
- /* @__PURE__ */ e(Vs, {}),
260
+ /* @__PURE__ */ e(Vs, { className: "px-3", children: "Lenses" }),
261
+ /* @__PURE__ */ e(Qs, {}),
262
262
  /* @__PURE__ */ r(
263
263
  Hs,
264
264
  {
265
265
  value: t,
266
266
  onValueChange: p,
267
267
  children: [
268
- /* @__PURE__ */ e(Qe, { value: "original", children: "Original" }),
268
+ /* @__PURE__ */ e(Ve, { value: "original", children: "Original" }),
269
269
  a == null ? void 0 : a.map((m) => /* @__PURE__ */ r(
270
- Qe,
270
+ Ve,
271
271
  {
272
272
  className: "group flex justify-between gap-2",
273
273
  value: m.id,
@@ -280,7 +280,7 @@ function Ra() {
280
280
  onClick: (g) => {
281
281
  g.preventDefault(), d(m);
282
282
  },
283
- className: X(
283
+ className: Z(
284
284
  "size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",
285
285
  {
286
286
  invisible: !m.isDefault,
@@ -324,7 +324,7 @@ function Oa({
324
324
  className: "h-7 p-2",
325
325
  disabled: t,
326
326
  onClick: () => a(!0),
327
- children: /* @__PURE__ */ e(Ks, { className: X("size-4", s) })
327
+ children: /* @__PURE__ */ e(Bs, { className: Z("size-4", s) })
328
328
  }
329
329
  ),
330
330
  /* @__PURE__ */ e(
@@ -339,7 +339,7 @@ function Oa({
339
339
  const Ua = async (s, n, a) => {
340
340
  const t = `${s}/management/v1/groups`;
341
341
  return await ss(t, n, a);
342
- }, _a = async (s, n, a) => {
342
+ }, za = async (s, n, a) => {
343
343
  const t = `${s}/management/v1/groups/${a}`, l = await fetch(t, {
344
344
  method: "DELETE",
345
345
  headers: {
@@ -350,10 +350,10 @@ const Ua = async (s, n, a) => {
350
350
  const o = await l.text();
351
351
  throw new Error(o || "Failed to delete group");
352
352
  }
353
- }, za = async (s, n, a, t) => {
353
+ }, _a = async (s, n, a, t) => {
354
354
  const l = `${s}/management/v1/groups/${a}/members`;
355
355
  return await ss(l, n, t);
356
- }, qa = async (s, n, a, t) => {
356
+ }, $a = async (s, n, a, t) => {
357
357
  const l = `${s}/management/v1/groups/${a}/members`, o = await fetch(l, {
358
358
  method: "DELETE",
359
359
  headers: {
@@ -367,7 +367,7 @@ const Ua = async (s, n, a) => {
367
367
  throw new Error(c || "Failed to remove group members");
368
368
  }
369
369
  };
370
- function $a() {
370
+ function qa() {
371
371
  const { authToken: s, tokenProps: n } = U(), a = le();
372
372
  return ce({
373
373
  mutationFn: (t) => Ua(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t),
@@ -384,7 +384,7 @@ function $a() {
384
384
  function ja() {
385
385
  const { authToken: s, tokenProps: n } = U(), a = le();
386
386
  return ce({
387
- mutationFn: (t) => _a(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t),
387
+ mutationFn: (t) => za(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t),
388
388
  onSuccess: (t, l) => {
389
389
  a.invalidateQueries({ queryKey: ["groups"] }), a.removeQueries({ queryKey: ["group", l] }), L.success("Group deleted successfully");
390
390
  },
@@ -395,13 +395,13 @@ function ja() {
395
395
  }
396
396
  });
397
397
  }
398
- function Qa() {
398
+ function Va() {
399
399
  const { authToken: s, tokenProps: n } = U(), a = le();
400
400
  return ce({
401
401
  mutationFn: ({
402
402
  groupId: t,
403
403
  data: l
404
- }) => za(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t, l),
404
+ }) => _a(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t, l),
405
405
  onSuccess: (t, l) => {
406
406
  a.invalidateQueries({ queryKey: ["group", l.groupId] }), a.invalidateQueries({
407
407
  queryKey: ["group-members", l.groupId]
@@ -414,13 +414,13 @@ function Qa() {
414
414
  }
415
415
  });
416
416
  }
417
- function Va() {
417
+ function Qa() {
418
418
  const { authToken: s, tokenProps: n } = U(), a = le();
419
419
  return ce({
420
420
  mutationFn: ({
421
421
  groupId: t,
422
422
  data: l
423
- }) => qa(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t, l),
423
+ }) => $a(n.apiServiceUrl, (s == null ? void 0 : s.accessToken) || "", t, l),
424
424
  onSuccess: (t, l) => {
425
425
  a.invalidateQueries({ queryKey: ["group", l.groupId] }), a.invalidateQueries({
426
426
  queryKey: ["group-members", l.groupId]
@@ -438,7 +438,7 @@ function Ha({
438
438
  tenantId: n,
439
439
  isTenantUser: a
440
440
  }) {
441
- const [t, l] = b(""), [o, c] = b(""), [u, p] = b({}), f = $a(), d = () => {
441
+ const [t, l] = b(""), [o, c] = b(""), [u, p] = b({}), f = qa(), d = () => {
442
442
  const g = {};
443
443
  return t.trim() ? t.length < 3 ? g.name = "Group name must be at least 3 characters" : t.length > 50 && (g.name = "Group name must be less than 50 characters") : g.name = "Group name is required", o && o.length > 200 && (g.description = "Description must be less than 200 characters"), p(g), Object.keys(g).length === 0;
444
444
  };
@@ -483,7 +483,7 @@ function Ha({
483
483
  /* @__PURE__ */ e("span", { className: "ml-2 text-xs text-muted-foreground", children: "(optional)" })
484
484
  ] }),
485
485
  /* @__PURE__ */ e(
486
- Bs,
486
+ Ks,
487
487
  {
488
488
  id: "group-description",
489
489
  placeholder: "Describe the purpose of this group...",
@@ -526,10 +526,10 @@ function Ha({
526
526
  type: "submit",
527
527
  disabled: f.isPending || !t.trim(),
528
528
  children: f.isPending ? /* @__PURE__ */ r(E, { children: [
529
- /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }),
529
+ /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }),
530
530
  "Creating..."
531
531
  ] }) : /* @__PURE__ */ r(E, { children: [
532
- /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4" }),
532
+ /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4" }),
533
533
  "Create Group"
534
534
  ] })
535
535
  }
@@ -537,7 +537,7 @@ function Ha({
537
537
  ] })
538
538
  ] });
539
539
  }
540
- function Ka(s, n = []) {
540
+ function Ba(s, n = []) {
541
541
  let a = [];
542
542
  function t(o, c) {
543
543
  const u = M.createContext(c);
@@ -569,9 +569,9 @@ function Ka(s, n = []) {
569
569
  );
570
570
  };
571
571
  };
572
- return l.scopeName = s, [t, Ba(l, ...n)];
572
+ return l.scopeName = s, [t, Ka(l, ...n)];
573
573
  }
574
- function Ba(...s) {
574
+ function Ka(...s) {
575
575
  const n = s[0];
576
576
  if (s.length === 1) return n;
577
577
  const a = () => {
@@ -616,16 +616,16 @@ var Ja = [
616
616
  }, {});
617
617
  function Wa() {
618
618
  return Ea.useSyncExternalStore(
619
- Za,
619
+ Xa,
620
620
  () => !0,
621
621
  () => !1
622
622
  );
623
623
  }
624
- function Za() {
624
+ function Xa() {
625
625
  return () => {
626
626
  };
627
627
  }
628
- var Pe = "Avatar", [Xa] = Ka(Pe), [Ya, ps] = Xa(Pe), gs = M.forwardRef(
628
+ var Pe = "Avatar", [Za] = Ba(Pe), [Ya, ps] = Za(Pe), gs = M.forwardRef(
629
629
  (s, n) => {
630
630
  const { __scopeAvatar: a, ...t } = s, [l, o] = M.useState("idle");
631
631
  return /* @__PURE__ */ e(
@@ -643,7 +643,7 @@ gs.displayName = Pe;
643
643
  var fs = "AvatarImage", vs = M.forwardRef(
644
644
  (s, n) => {
645
645
  const { __scopeAvatar: a, src: t, onLoadingStatusChange: l = () => {
646
- }, ...o } = s, c = ps(fs, a), u = et(t, o), p = Zs((f) => {
646
+ }, ...o } = s, c = ps(fs, a), u = et(t, o), p = Xs((f) => {
647
647
  l(f), c.onImageLoadingStatusChange(f);
648
648
  });
649
649
  return Ne(() => {
@@ -664,15 +664,15 @@ var bs = "AvatarFallback", Ns = M.forwardRef(
664
664
  }
665
665
  );
666
666
  Ns.displayName = bs;
667
- function Ke(s, n) {
667
+ function Be(s, n) {
668
668
  return s ? n ? (s.src !== n && (s.src = n), s.complete && s.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
669
669
  }
670
670
  function et(s, { referrerPolicy: n, crossOrigin: a }) {
671
671
  const t = Wa(), l = M.useRef(null), o = t ? (l.current || (l.current = new window.Image()), l.current) : null, [c, u] = M.useState(
672
- () => Ke(o, s)
672
+ () => Be(o, s)
673
673
  );
674
674
  return Ne(() => {
675
- u(Ke(o, s));
675
+ u(Be(o, s));
676
676
  }, [o, s]), Ne(() => {
677
677
  const p = (m) => () => {
678
678
  u(m);
@@ -689,7 +689,7 @@ const Ge = M.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
689
689
  ys,
690
690
  {
691
691
  ref: a,
692
- className: X(
692
+ className: Z(
693
693
  "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
694
694
  s
695
695
  ),
@@ -701,7 +701,7 @@ const st = M.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
701
701
  ws,
702
702
  {
703
703
  ref: a,
704
- className: X("aspect-square h-full w-full", s),
704
+ className: Z("aspect-square h-full w-full", s),
705
705
  ...n
706
706
  }
707
707
  ));
@@ -710,7 +710,7 @@ const Fe = M.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
710
710
  xs,
711
711
  {
712
712
  ref: a,
713
- className: X(
713
+ className: Z(
714
714
  "flex h-full w-full items-center justify-center rounded-full bg-muted",
715
715
  s
716
716
  ),
@@ -724,18 +724,18 @@ function at({
724
724
  group: a,
725
725
  onUpdate: t
726
726
  }) {
727
- const [l, o] = b("members"), [c, u] = b(""), [p, f] = b([]), [d, m] = b([]), { data: g, isLoading: v, refetch: N } = Xs(a.id), w = a.type === "TENANT_GROUP" ? "tenant" : "organization", { users: C, isLoading: R } = Ys({
727
+ const [l, o] = b("members"), [c, u] = b(""), [p, f] = b([]), [d, m] = b([]), { data: g, isLoading: v, refetch: N } = Zs(a.id), w = a.type === "TENANT_GROUP" ? "tenant" : "organization", { users: C, isLoading: R } = Ys({
728
728
  type: w,
729
729
  tenantId: a.tenantId || void 0,
730
730
  active: !0,
731
731
  limit: 100
732
- }), O = Qa(), G = Va(), A = (g == null ? void 0 : g.members) || [], F = ne(() => new Set(A.map((h) => h.userId)), [A]), P = ne(() => C.filter((h) => !F.has(h.id)), [C, F]), j = ne(() => {
732
+ }), O = Va(), G = Qa(), A = (g == null ? void 0 : g.members) || [], F = ne(() => new Set(A.map((h) => h.userId)), [A]), P = ne(() => C.filter((h) => !F.has(h.id)), [C, F]), j = ne(() => {
733
733
  if (!c) return P;
734
734
  const h = c.toLowerCase();
735
735
  return P.filter(
736
736
  (S) => {
737
- var I, _;
738
- return ((I = S.name) == null ? void 0 : I.toLowerCase().includes(h)) || ((_ = S.email) == null ? void 0 : _.toLowerCase().includes(h));
737
+ var I, z;
738
+ return ((I = S.name) == null ? void 0 : I.toLowerCase().includes(h)) || ((z = S.email) == null ? void 0 : z.toLowerCase().includes(h));
739
739
  }
740
740
  );
741
741
  }, [P, c]), x = ne(() => {
@@ -743,11 +743,11 @@ function at({
743
743
  const h = c.toLowerCase();
744
744
  return A.filter(
745
745
  (S) => {
746
- var I, _, Y, V;
747
- return ((_ = (I = S.user) == null ? void 0 : I.name) == null ? void 0 : _.toLowerCase().includes(h)) || ((V = (Y = S.user) == null ? void 0 : Y.email) == null ? void 0 : V.toLowerCase().includes(h));
746
+ var I, z, Y, Q;
747
+ return ((z = (I = S.user) == null ? void 0 : I.name) == null ? void 0 : z.toLowerCase().includes(h)) || ((Q = (Y = S.user) == null ? void 0 : Y.email) == null ? void 0 : Q.toLowerCase().includes(h));
748
748
  }
749
749
  );
750
- }, [A, c]), Q = async () => {
750
+ }, [A, c]), V = async () => {
751
751
  if (p.length !== 0)
752
752
  try {
753
753
  await O.mutateAsync({
@@ -816,7 +816,7 @@ function at({
816
816
  )
817
817
  ] }),
818
818
  /* @__PURE__ */ e(we, { className: d.length > 0 ? "h-[300px]" : "h-[350px]", children: v ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((h) => /* @__PURE__ */ e(xe, { className: "h-16 w-full" }, h)) }) : x.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
819
- /* @__PURE__ */ e($, { className: "h-12 w-12 mb-3 opacity-50" }),
819
+ /* @__PURE__ */ e(q, { className: "h-12 w-12 mb-3 opacity-50" }),
820
820
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", children: c ? "No members found" : "No members yet" }),
821
821
  /* @__PURE__ */ e("p", { className: "text-xs mt-1", children: c ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
822
822
  ] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: x.map((h) => /* @__PURE__ */ e(
@@ -843,7 +843,7 @@ function at({
843
843
  onClick: de,
844
844
  disabled: G.isPending,
845
845
  children: G.isPending ? /* @__PURE__ */ r(E, { children: [
846
- /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }),
846
+ /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }),
847
847
  "Removing..."
848
848
  ] }) : /* @__PURE__ */ r(E, { children: [
849
849
  /* @__PURE__ */ e(rs, { className: "mr-2 h-4 w-4" }),
@@ -889,10 +889,10 @@ function at({
889
889
  /* @__PURE__ */ e(
890
890
  k,
891
891
  {
892
- onClick: Q,
892
+ onClick: V,
893
893
  disabled: O.isPending,
894
894
  children: O.isPending ? /* @__PURE__ */ r(E, { children: [
895
- /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }),
895
+ /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }),
896
896
  "Adding..."
897
897
  ] }) : /* @__PURE__ */ r(E, { children: [
898
898
  /* @__PURE__ */ e(Ce, { className: "mr-2 h-4 w-4" }),
@@ -961,8 +961,8 @@ function nt({
961
961
  includeMembers: !1
962
962
  }), A = R.filter(
963
963
  (x) => {
964
- var Q;
965
- return x.name.toLowerCase().includes(l.toLowerCase()) || ((Q = x.description) == null ? void 0 : Q.toLowerCase().includes(l.toLowerCase()));
964
+ var V;
965
+ return x.name.toLowerCase().includes(l.toLowerCase()) || ((V = x.description) == null ? void 0 : V.toLowerCase().includes(l.toLowerCase()));
966
966
  }
967
967
  ), F = async () => {
968
968
  if (d)
@@ -980,15 +980,15 @@ function nt({
980
980
  /* @__PURE__ */ e(ke, { open: s, onOpenChange: n, children: /* @__PURE__ */ r(Ae, { className: "max-w-4xl max-h-[80vh]", children: [
981
981
  /* @__PURE__ */ r(Ie, { children: [
982
982
  /* @__PURE__ */ r(Ee, { className: "flex items-center gap-2", children: [
983
- /* @__PURE__ */ e($, { className: "h-5 w-5" }),
983
+ /* @__PURE__ */ e(q, { className: "h-5 w-5" }),
984
984
  "Group Management"
985
985
  ] }),
986
- /* @__PURE__ */ e(Xe, { children: "Manage your groups, create new groups, and control group membership" })
986
+ /* @__PURE__ */ e(Ze, { children: "Manage your groups, create new groups, and control group membership" })
987
987
  ] }),
988
988
  /* @__PURE__ */ r(as, { value: a, onValueChange: t, className: "mt-4", children: [
989
989
  /* @__PURE__ */ r(ts, { className: "grid w-full grid-cols-2", children: [
990
990
  /* @__PURE__ */ r(oe, { value: "groups", className: "flex items-center gap-2", children: [
991
- /* @__PURE__ */ e($, { className: "h-4 w-4" }),
991
+ /* @__PURE__ */ e(q, { className: "h-4 w-4" }),
992
992
  "Groups"
993
993
  ] }),
994
994
  /* @__PURE__ */ r(oe, { value: "create", className: "flex items-center gap-2", children: [
@@ -1010,7 +1010,7 @@ function nt({
1010
1010
  )
1011
1011
  ] }),
1012
1012
  /* @__PURE__ */ e(we, { className: "h-[400px]", children: O ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((x) => /* @__PURE__ */ e(xe, { className: "h-24 w-full" }, x)) }) : A.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
1013
- /* @__PURE__ */ e($, { className: "h-12 w-12 mb-3 opacity-50" }),
1013
+ /* @__PURE__ */ e(q, { className: "h-12 w-12 mb-3 opacity-50" }),
1014
1014
  /* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
1015
1015
  /* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "Create your first group to get started" })
1016
1016
  ] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: A.map((x) => /* @__PURE__ */ e(
@@ -1066,7 +1066,7 @@ function nt({
1066
1066
  disabled: N.isPending,
1067
1067
  className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
1068
1068
  children: N.isPending ? /* @__PURE__ */ r(E, { children: [
1069
- /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }),
1069
+ /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }),
1070
1070
  "Deleting..."
1071
1071
  ] }) : "Delete Group"
1072
1072
  }
@@ -1092,7 +1092,7 @@ function ot({
1092
1092
  ] }),
1093
1093
  /* @__PURE__ */ r("div", { className: "flex flex-wrap items-center gap-3 text-xs text-muted-foreground", children: [
1094
1094
  /* @__PURE__ */ r("span", { className: "flex items-center gap-1", children: [
1095
- /* @__PURE__ */ e($, { className: "h-3 w-3" }),
1095
+ /* @__PURE__ */ e(q, { className: "h-3 w-3" }),
1096
1096
  s.memberCount,
1097
1097
  " ",
1098
1098
  s.memberCount === 1 ? "member" : "members"
@@ -1129,7 +1129,7 @@ function ot({
1129
1129
  ] }) });
1130
1130
  }
1131
1131
  function gt() {
1132
- var qe, $e, je;
1132
+ var $e, qe, je;
1133
1133
  const {
1134
1134
  authToken: s,
1135
1135
  tokenProps: n,
@@ -1140,28 +1140,28 @@ function gt() {
1140
1140
  y((i) => i.selectedSheetId);
1141
1141
  const m = y(
1142
1142
  (i) => i.isDashboardEditing
1143
- ), { setDashboardTitle: g } = y((i) => i.actions), [v, N] = b(!1), [w, C] = b(!1), [R, O] = b(!1), [G, A] = b(!1), [F, P] = b(null), [j, x] = b(!1), Q = y((i) => i.isDashboardPanelOpen), de = y(
1143
+ ), { setDashboardTitle: g } = y((i) => i.actions), [v, N] = b(!1), [w, C] = b(!1), [R, O] = b(!1), [G, A] = b(!1), [F, P] = b(null), [j, x] = b(!1), V = y((i) => i.isDashboardPanelOpen), de = y(
1144
1144
  (i) => i.actions.setIsDashboardPanelOpen
1145
1145
  ), ue = y((i) => i.filterValues), D = y((i) => i.isVisualEditing);
1146
- Ve((i) => i.card);
1146
+ Qe((i) => i.card);
1147
1147
  const h = re(
1148
1148
  (i) => i.selectedDashboard
1149
1149
  ), S = re(
1150
1150
  (i) => i.initialDashboard
1151
1151
  );
1152
- re((i) => i.selectedVisual), y((i) => i.selectedFrameId), Ve((i) => i.frame);
1153
- const I = h ? ($e = h == null ? void 0 : h.permissions) == null ? void 0 : $e.canEdit : (qe = S == null ? void 0 : S.permissions) == null ? void 0 : qe.canEdit, _ = y((i) => i.showFilters), Y = y(
1152
+ re((i) => i.selectedVisual), y((i) => i.selectedFrameId), Qe((i) => i.frame);
1153
+ const I = h ? (qe = h == null ? void 0 : h.permissions) == null ? void 0 : qe.canEdit : ($e = S == null ? void 0 : S.permissions) == null ? void 0 : $e.canEdit, z = y((i) => i.showFilters), Y = y(
1154
1154
  (i) => i.showDashboardJSON
1155
- ), V = y((i) => i.onSaveFunction), Cs = y(
1155
+ ), Q = y((i) => i.onSaveFunction), Cs = y(
1156
1156
  (i) => i.actions.setShowFilters
1157
1157
  ), { setIsDashboardEditing: Re, setShowDashboardJSON: Oe } = y(
1158
1158
  (i) => i.actions
1159
1159
  ), { setInitialDashboard: Ue, clearSelectedDashboard: Ds } = re(
1160
1160
  (i) => i.actions
1161
- ), { resources: ee } = na(ve.DASHBOARD), { currentUser: Ss } = os(), Ms = oa(Ss), H = h || S, _e = H ? {
1161
+ ), { resources: ee } = na(ve.DASHBOARD), { currentUser: Ss } = os(), Ms = oa(Ss), H = h || S, ze = H ? {
1162
1162
  id: H.id,
1163
1163
  title: (d == null ? void 0 : d.title) || H.title || "Dashboard"
1164
- } : null, { handleAddNewFrame: ks } = ia(), [K, me] = b(!1), [Ls, se] = b(!1), ae = la(ve.DASHBOARD), [B, he] = b(
1164
+ } : null, { handleAddNewFrame: ks } = ia(), [B, me] = b(!1), [Ls, se] = b(!1), ae = la(ve.DASHBOARD), [K, he] = b(
1165
1165
  null
1166
1166
  ), As = async (i, T) => {
1167
1167
  if (!(d != null && d.id)) {
@@ -1206,28 +1206,28 @@ function gt() {
1206
1206
  ya(
1207
1207
  m,
1208
1208
  d,
1209
- B,
1209
+ K,
1210
1210
  (i) => he(i)
1211
1211
  );
1212
- const Ps = () => B ? JSON.stringify(d) !== JSON.stringify(B) : !1, Gs = () => {
1212
+ const Ps = () => K ? JSON.stringify(d) !== JSON.stringify(K) : !1, Gs = () => {
1213
1213
  Ps() ? se(!0) : pe();
1214
1214
  }, Fs = async () => {
1215
1215
  await ge({ closeAfterSave: !0 });
1216
1216
  }, Rs = () => {
1217
- B && Es(B), pe(), se(!1);
1217
+ K && Es(K), pe(), se(!1);
1218
1218
  };
1219
1219
  async function ge(i) {
1220
1220
  const T = (i == null ? void 0 : i.closeAfterSave) ?? j;
1221
1221
  x(T), T && se(!1);
1222
1222
  const J = va(d);
1223
1223
  A(!0), P(null), me(!0);
1224
- const _s = {
1224
+ const zs = {
1225
1225
  template: d
1226
1226
  };
1227
1227
  ae.mutate(
1228
1228
  {
1229
1229
  resourceId: d.id,
1230
- data: _s
1230
+ data: zs
1231
1231
  },
1232
1232
  {
1233
1233
  onSuccess: () => {
@@ -1250,11 +1250,11 @@ function gt() {
1250
1250
  n.apiServiceUrl,
1251
1251
  T,
1252
1252
  s == null ? void 0 : s.accessToken
1253
- ), L.success("Lens saved"), V == null || V(d), N(!1);
1253
+ ), L.success("Lens saved"), Q == null || Q(d), N(!1);
1254
1254
  }
1255
- const ze = (f == null ? void 0 : f.name) || d.title;
1255
+ const _e = (f == null ? void 0 : f.name) || d.title;
1256
1256
  ae.isPending && console.log("Title during update:", {
1257
- title: ze,
1257
+ title: _e,
1258
1258
  dashboardStateTitle: d.title,
1259
1259
  dashboardId: d == null ? void 0 : d.id,
1260
1260
  currentLensName: f == null ? void 0 : f.name
@@ -1269,19 +1269,19 @@ function gt() {
1269
1269
  /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
1270
1270
  Us && /* @__PURE__ */ r(E, { children: [
1271
1271
  /* @__PURE__ */ e(
1272
- z,
1272
+ _,
1273
1273
  {
1274
1274
  "aria-label": "Manage Dashboards",
1275
1275
  tooltip: "Manage Dashboards",
1276
1276
  onClick: () => {
1277
- de(!Q);
1277
+ de(!V);
1278
1278
  },
1279
1279
  className: "h-7 p-2",
1280
1280
  children: /* @__PURE__ */ e(ka, { className: "h-4 w-4" })
1281
1281
  }
1282
1282
  ),
1283
1283
  o && !D && /* @__PURE__ */ e(
1284
- z,
1284
+ _,
1285
1285
  {
1286
1286
  "aria-label": "Dashboard Hub",
1287
1287
  tooltip: "Dashboard Hub",
@@ -1292,12 +1292,12 @@ function gt() {
1292
1292
  )
1293
1293
  ] }),
1294
1294
  !D && o && (c ? /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: [
1295
- /* @__PURE__ */ e(q, { className: "h-3 w-3 animate-spin text-muted-foreground" }),
1295
+ /* @__PURE__ */ e($, { className: "h-3 w-3 animate-spin text-muted-foreground" }),
1296
1296
  /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: "Loading..." })
1297
1297
  ] }) : /* @__PURE__ */ e(
1298
1298
  ca,
1299
1299
  {
1300
- value: ze || "Untitled Dashboard",
1300
+ value: _e || "Untitled Dashboard",
1301
1301
  onSave: (i) => {
1302
1302
  console.log("EditableText onSave called:", {
1303
1303
  newTitle: i,
@@ -1322,7 +1322,7 @@ function gt() {
1322
1322
  ] }),
1323
1323
  t && !D && /* @__PURE__ */ r(E, { children: [
1324
1324
  /* @__PURE__ */ e(
1325
- z,
1325
+ _,
1326
1326
  {
1327
1327
  tooltip: "Copy Token",
1328
1328
  onClick: () => {
@@ -1334,7 +1334,7 @@ function gt() {
1334
1334
  }
1335
1335
  ),
1336
1336
  /* @__PURE__ */ e(
1337
- z,
1337
+ _,
1338
1338
  {
1339
1339
  tooltip: "Invalidate Token",
1340
1340
  onClick: () => ua(n.apiServiceUrl),
@@ -1346,16 +1346,16 @@ function gt() {
1346
1346
  !D && o && /* @__PURE__ */ e(Oa, {}),
1347
1347
  !D && o && /* @__PURE__ */ e(Ca, {}),
1348
1348
  !D && o && Ms && /* @__PURE__ */ e(
1349
- z,
1349
+ _,
1350
1350
  {
1351
1351
  tooltip: "Manage Groups",
1352
1352
  onClick: () => O(!0),
1353
1353
  className: "h-7 p-2",
1354
- children: /* @__PURE__ */ e($, { className: "h-4 w-4" })
1354
+ children: /* @__PURE__ */ e(q, { className: "h-4 w-4" })
1355
1355
  }
1356
1356
  ),
1357
1357
  !D && o && ((je = H == null ? void 0 : H.permissions) == null ? void 0 : je.canShare) && /* @__PURE__ */ e(
1358
- z,
1358
+ _,
1359
1359
  {
1360
1360
  tooltip: "Share Dashboard",
1361
1361
  onClick: () => C(!0),
@@ -1363,7 +1363,7 @@ function gt() {
1363
1363
  children: /* @__PURE__ */ e(ma, { className: "h-4 w-4" })
1364
1364
  }
1365
1365
  ),
1366
- !_ && !D && m && l.canUseFilters && o && /* @__PURE__ */ e(
1366
+ !z && !D && m && l.canUseFilters && o && /* @__PURE__ */ e(
1367
1367
  k,
1368
1368
  {
1369
1369
  className: "h-7 p-2",
@@ -1420,12 +1420,12 @@ function gt() {
1420
1420
  k,
1421
1421
  {
1422
1422
  className: "h-7 p-2",
1423
- disabled: K,
1423
+ disabled: B,
1424
1424
  onClick: () => ge(),
1425
1425
  size: "sm",
1426
1426
  children: [
1427
- K ? /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(He, { className: "mr-2 h-4 w-4" }),
1428
- K ? "Saving..." : "Save"
1427
+ B ? /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(He, { className: "mr-2 h-4 w-4" }),
1428
+ B ? "Saving..." : "Save"
1429
1429
  ]
1430
1430
  }
1431
1431
  ),
@@ -1452,10 +1452,10 @@ function gt() {
1452
1452
  ]
1453
1453
  }
1454
1454
  ),
1455
- w && _e && /* @__PURE__ */ e(
1455
+ w && ze && /* @__PURE__ */ e(
1456
1456
  fa,
1457
1457
  {
1458
- resource: _e,
1458
+ resource: ze,
1459
1459
  resourceType: ve.DASHBOARD,
1460
1460
  onClose: () => C(!1)
1461
1461
  }
@@ -1472,7 +1472,7 @@ function gt() {
1472
1472
  {
1473
1473
  open: G,
1474
1474
  onOpenChange: (i) => {
1475
- !i && K && !F || (A(i), i || (P(null), x(!1)));
1475
+ !i && B && !F || (A(i), i || (P(null), x(!1)));
1476
1476
  },
1477
1477
  children: /* @__PURE__ */ r(ls, { className: "max-w-sm", children: [
1478
1478
  /* @__PURE__ */ r(cs, { children: [
@@ -1504,7 +1504,7 @@ function gt() {
1504
1504
  disabled: !0,
1505
1505
  className: "m-0 cursor-default",
1506
1506
  children: [
1507
- /* @__PURE__ */ e(q, { className: "mr-2 h-4 w-4 animate-spin" }),
1507
+ /* @__PURE__ */ e($, { className: "mr-2 h-4 w-4 animate-spin" }),
1508
1508
  "Saving..."
1509
1509
  ]
1510
1510
  }
@@ -1519,7 +1519,7 @@ function gt() {
1519
1519
  onOpenChange: se,
1520
1520
  onSave: Fs,
1521
1521
  onDiscard: Rs,
1522
- isSaving: K
1522
+ isSaving: B
1523
1523
  }
1524
1524
  )
1525
1525
  ] })