react-semaphor 0.1.121 → 0.1.122
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.
- package/dist/chunks/{dashboard-controls-CyhTMpZ2.js → dashboard-controls-B2AN5UPC.js} +71 -71
- package/dist/chunks/{dashboard-controls-CzcAbxpr.js → dashboard-controls-DE2zszO6.js} +1 -1
- package/dist/chunks/{dashboard-json-BcB9WzEx.js → dashboard-json-BUpL-mBO.js} +1 -1
- package/dist/chunks/{dashboard-json-BQPFtG3z.js → dashboard-json-CMEGnndf.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CLdMn0FN.js → edit-dashboard-visual-B5z0jeoK.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-D6KBQgRc.js → edit-dashboard-visual-DRP9vSD9.js} +1 -1
- package/dist/chunks/{editor-action-buttons-CEzZTeqn.js → editor-action-buttons-CFkKUPbv.js} +2 -2
- package/dist/chunks/{editor-action-buttons-D8lG5LwM.js → editor-action-buttons-DnGJWYX_.js} +1 -1
- package/dist/chunks/{index-CJrseB0V.js → index-BXvRuiXr.js} +185 -185
- package/dist/chunks/{index-Cyic0UlN.js → index-D4cZLrvg.js} +7044 -7030
- package/dist/chunks/{resource-management-panel-BNDpfKQl.js → resource-management-panel-Dh_h2fXW.js} +1 -1
- package/dist/chunks/{resource-management-panel-DDLB-UWe.js → resource-management-panel-DtwfLQzh.js} +139 -139
- package/dist/chunks/{schedule-dashboard-CqFcuP5E.js → schedule-dashboard-BPO2X1Wc.js} +1 -1
- package/dist/chunks/{schedule-dashboard-BEV7hj7t.js → schedule-dashboard-BTd44irM.js} +22 -22
- package/dist/chunks/{use-visual-utils-GI2MN0MK.js → use-visual-utils-DFxbSGPh.js} +11 -11
- package/dist/chunks/{use-visual-utils-BzfETcB4.js → use-visual-utils-Da_aJCA4.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +70 -68
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +1 -1
- package/dist/types/main.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e, Fragment as P } from "react/jsx-runtime";
|
|
2
|
-
import { b as J,
|
|
2
|
+
import { b as J, br as vs, bs as Ns, u as w, aE as Ce, aF as Se, B as M, aH as ke, aI as W, bt as Me, g as Ve, al as R, aq as oe, bu as ys, aR as Le, ar as ie, as as le, at as ce, au as Pe, av as te, bv as Q, az as Qe, I as _, bw as ws, aV as xs, bx as Ds, by as ze, bz as He, c as X, bA as Be, bB as Cs, bC as Ss, bD as ks, bE as Ms, bF as Ls, l as v, T as qe, h as de, bG as ue, bH as Ke, ax as Ps, bI as Is, L as H, aU as $, bJ as As, bK as Es, bL as Fs, bM as We, bN as Je, bO as re, bP as ne, bo as be, b0 as ve, bQ as Ne, aW as Xe, bR as ye, ay as Ye, a_ as Ze, bS as Ts, b3 as Gs, b4 as Rs, b5 as Os, b6 as Us, b7 as zs, b8 as qs, b9 as _s, ba as $s, bT as js, aP as Vs, bj as Qs, bU as Hs, bV as Bs, f as _e, aC as se, bW as Ks, R as fe, bX as Ws, bY as Js, bZ as Xs, b_ as Ys, aS as Zs, Q as ea, b$ as sa, c0 as aa, c1 as ta, c2 as ra, J as na } from "./index-D4cZLrvg.js";
|
|
3
3
|
import * as S from "react";
|
|
4
4
|
import { useState as x, useMemo as ae, useEffect as oa } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { g as we, A as ia, V as la, S as ca } from "./schedule-dashboard-
|
|
7
|
-
import { S as $e } from "./editor-action-buttons-
|
|
6
|
+
import { g as we, A as ia, V as la, S as ca } from "./schedule-dashboard-BTd44irM.js";
|
|
7
|
+
import { S as $e } from "./editor-action-buttons-CFkKUPbv.js";
|
|
8
8
|
/**
|
|
9
9
|
* @license lucide-react v0.453.0 - ISC
|
|
10
10
|
*
|
|
@@ -160,19 +160,19 @@ async function va(s, n, a) {
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
function Na() {
|
|
163
|
-
const [s, n] = x(""), [a, t] = x(!1), i = w((k) => k.lenses), { setLenses: o, setSelectedLensId: c } =
|
|
163
|
+
const [s, n] = x(""), [a, t] = x(!1), i = w((k) => k.lenses), { setLenses: o, setSelectedLensId: c } = Ve(), [m, h] = x(!1), [f, u] = x(!1), d = w((k) => k.dashboard), p = w((k) => k.filterValues), { authToken: b, tokenProps: N } = R();
|
|
164
164
|
async function D() {
|
|
165
165
|
h(!0);
|
|
166
166
|
const k = we(
|
|
167
167
|
d
|
|
168
|
-
),
|
|
168
|
+
), I = await ba(
|
|
169
169
|
N.apiServiceUrl,
|
|
170
170
|
s,
|
|
171
171
|
k,
|
|
172
172
|
p,
|
|
173
173
|
b == null ? void 0 : b.accessToken
|
|
174
174
|
);
|
|
175
|
-
|
|
175
|
+
I && (o([...i || [], I]), c(I.id), u(!1)), h(!1);
|
|
176
176
|
}
|
|
177
177
|
return /* @__PURE__ */ r(oe, { open: f, onOpenChange: u, children: [
|
|
178
178
|
/* @__PURE__ */ e(ys, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -195,7 +195,7 @@ function Na() {
|
|
|
195
195
|
/* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ r("div", { className: "grid grid-cols-8 items-center gap-4", children: [
|
|
196
196
|
/* @__PURE__ */ e(te, { className: "text-right", children: "Name" }),
|
|
197
197
|
/* @__PURE__ */ e(
|
|
198
|
-
|
|
198
|
+
Q,
|
|
199
199
|
{
|
|
200
200
|
value: s,
|
|
201
201
|
onChange: (k) => {
|
|
@@ -207,7 +207,7 @@ function Na() {
|
|
|
207
207
|
)
|
|
208
208
|
] }) }),
|
|
209
209
|
a && /* @__PURE__ */ e("p", { className: "text-sm", children: "The lens name already exists. Use a differnet name." }),
|
|
210
|
-
/* @__PURE__ */ e(
|
|
210
|
+
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(
|
|
211
211
|
M,
|
|
212
212
|
{
|
|
213
213
|
size: "sm",
|
|
@@ -222,7 +222,7 @@ function Na() {
|
|
|
222
222
|
] });
|
|
223
223
|
}
|
|
224
224
|
function ya() {
|
|
225
|
-
const [s, n] = x(!1), a = w((d) => d.lenses), t = w((d) => d.selectedLensId), { setLenses: i, setSelectedLensId: o } =
|
|
225
|
+
const [s, n] = x(!1), a = w((d) => d.lenses), t = w((d) => d.selectedLensId), { setLenses: i, setSelectedLensId: o } = Ve(), { authToken: c, tokenProps: m } = R();
|
|
226
226
|
async function h(d) {
|
|
227
227
|
o(d);
|
|
228
228
|
}
|
|
@@ -266,9 +266,9 @@ function ya() {
|
|
|
266
266
|
value: t,
|
|
267
267
|
onValueChange: h,
|
|
268
268
|
children: [
|
|
269
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(ze, { value: "original", children: "Original" }),
|
|
270
270
|
a == null ? void 0 : a.map((d) => /* @__PURE__ */ r(
|
|
271
|
-
|
|
271
|
+
ze,
|
|
272
272
|
{
|
|
273
273
|
className: "group flex justify-between gap-2",
|
|
274
274
|
value: d.id,
|
|
@@ -321,7 +321,7 @@ function wa({
|
|
|
321
321
|
"Generating PDF... may take up to 60 seconds"
|
|
322
322
|
);
|
|
323
323
|
try {
|
|
324
|
-
await
|
|
324
|
+
await qe(h.apiServiceUrl), v.dismiss(d), v.success("PDF downloaded successfully!", {
|
|
325
325
|
duration: 2e3
|
|
326
326
|
});
|
|
327
327
|
} catch (p) {
|
|
@@ -338,7 +338,7 @@ function wa({
|
|
|
338
338
|
"Generating protected PDF... may take up to 60 seconds"
|
|
339
339
|
);
|
|
340
340
|
try {
|
|
341
|
-
await
|
|
341
|
+
await qe(h.apiServiceUrl, t), v.dismiss(d), v.success("Protected PDF downloaded successfully!", {
|
|
342
342
|
duration: 2e3,
|
|
343
343
|
position: "top-right"
|
|
344
344
|
});
|
|
@@ -383,7 +383,7 @@ function wa({
|
|
|
383
383
|
/* @__PURE__ */ e(te, { htmlFor: "password", children: "Password" }),
|
|
384
384
|
/* @__PURE__ */ r("div", { className: "relative", children: [
|
|
385
385
|
/* @__PURE__ */ e(
|
|
386
|
-
|
|
386
|
+
Q,
|
|
387
387
|
{
|
|
388
388
|
id: "password",
|
|
389
389
|
type: o ? "text" : "password",
|
|
@@ -409,7 +409,7 @@ function wa({
|
|
|
409
409
|
)
|
|
410
410
|
] })
|
|
411
411
|
] }) }),
|
|
412
|
-
/* @__PURE__ */ r(
|
|
412
|
+
/* @__PURE__ */ r(Qe, { children: [
|
|
413
413
|
/* @__PURE__ */ e(
|
|
414
414
|
M,
|
|
415
415
|
{
|
|
@@ -522,7 +522,7 @@ function Pa() {
|
|
|
522
522
|
}
|
|
523
523
|
});
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Ia({
|
|
526
526
|
onSuccess: s,
|
|
527
527
|
tenantId: n,
|
|
528
528
|
isTenantUser: a
|
|
@@ -552,7 +552,7 @@ function Aa({
|
|
|
552
552
|
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
|
|
553
553
|
] }),
|
|
554
554
|
/* @__PURE__ */ e(
|
|
555
|
-
|
|
555
|
+
Q,
|
|
556
556
|
{
|
|
557
557
|
id: "group-name",
|
|
558
558
|
placeholder: "e.g., Marketing Team, Engineering Squad",
|
|
@@ -592,7 +592,7 @@ function Aa({
|
|
|
592
592
|
] })
|
|
593
593
|
] }),
|
|
594
594
|
/* @__PURE__ */ e("div", { className: "rounded-lg border bg-muted/50 p-4", children: /* @__PURE__ */ r("div", { className: "flex gap-3", children: [
|
|
595
|
-
/* @__PURE__ */ e(
|
|
595
|
+
/* @__PURE__ */ e(Is, { className: "h-4 w-4 mt-0.5 text-muted-foreground" }),
|
|
596
596
|
/* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: "This group will be accessible to users in your workspace. You can add members after creating the group." })
|
|
597
597
|
] }) })
|
|
598
598
|
] }),
|
|
@@ -626,14 +626,14 @@ function Aa({
|
|
|
626
626
|
] })
|
|
627
627
|
] });
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Aa(s, n = []) {
|
|
630
630
|
let a = [];
|
|
631
631
|
function t(o, c) {
|
|
632
632
|
const m = S.createContext(c), h = a.length;
|
|
633
633
|
a = [...a, c];
|
|
634
634
|
const f = (d) => {
|
|
635
|
-
var
|
|
636
|
-
const { scope: p, children: b, ...N } = d, D = ((
|
|
635
|
+
var I;
|
|
636
|
+
const { scope: p, children: b, ...N } = d, D = ((I = p == null ? void 0 : p[s]) == null ? void 0 : I[h]) || m, k = S.useMemo(() => N, Object.values(N));
|
|
637
637
|
return /* @__PURE__ */ e(D.Provider, { value: k, children: b });
|
|
638
638
|
};
|
|
639
639
|
f.displayName = o + "Provider";
|
|
@@ -704,8 +704,8 @@ var De = globalThis != null && globalThis.document ? S.useLayoutEffect : () => {
|
|
|
704
704
|
"span",
|
|
705
705
|
"svg",
|
|
706
706
|
"ul"
|
|
707
|
-
],
|
|
708
|
-
const a =
|
|
707
|
+
], Ie = Ta.reduce((s, n) => {
|
|
708
|
+
const a = As(`Primitive.${n}`), t = S.forwardRef((i, o) => {
|
|
709
709
|
const { asChild: c, ...m } = i, h = c ? a : n;
|
|
710
710
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(h, { ...m, ref: o });
|
|
711
711
|
});
|
|
@@ -722,7 +722,7 @@ function Ra() {
|
|
|
722
722
|
return () => {
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
|
-
var
|
|
725
|
+
var Ae = "Avatar", [Oa] = Aa(Ae), [Ua, es] = Oa(Ae), ss = S.forwardRef(
|
|
726
726
|
(s, n) => {
|
|
727
727
|
const { __scopeAvatar: a, ...t } = s, [i, o] = S.useState("idle");
|
|
728
728
|
return /* @__PURE__ */ e(
|
|
@@ -731,21 +731,21 @@ var Ie = "Avatar", [Oa] = Ia(Ie), [Ua, es] = Oa(Ie), ss = S.forwardRef(
|
|
|
731
731
|
scope: a,
|
|
732
732
|
imageLoadingStatus: i,
|
|
733
733
|
onImageLoadingStatusChange: o,
|
|
734
|
-
children: /* @__PURE__ */ e(
|
|
734
|
+
children: /* @__PURE__ */ e(Ie.span, { ...t, ref: n })
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
737
|
}
|
|
738
738
|
);
|
|
739
|
-
ss.displayName =
|
|
739
|
+
ss.displayName = Ae;
|
|
740
740
|
var as = "AvatarImage", ts = S.forwardRef(
|
|
741
741
|
(s, n) => {
|
|
742
742
|
const { __scopeAvatar: a, src: t, onLoadingStatusChange: i = () => {
|
|
743
|
-
}, ...o } = s, c = es(as, a), m =
|
|
743
|
+
}, ...o } = s, c = es(as, a), m = za(t, o), h = Fa((f) => {
|
|
744
744
|
i(f), c.onImageLoadingStatusChange(f);
|
|
745
745
|
});
|
|
746
746
|
return De(() => {
|
|
747
747
|
m !== "idle" && h(m);
|
|
748
|
-
}, [m, h]), m === "loaded" ? /* @__PURE__ */ e(
|
|
748
|
+
}, [m, h]), m === "loaded" ? /* @__PURE__ */ e(Ie.img, { ...o, ref: n, src: t }) : null;
|
|
749
749
|
}
|
|
750
750
|
);
|
|
751
751
|
ts.displayName = as;
|
|
@@ -757,14 +757,14 @@ var rs = "AvatarFallback", ns = S.forwardRef(
|
|
|
757
757
|
const h = window.setTimeout(() => m(!0), t);
|
|
758
758
|
return () => window.clearTimeout(h);
|
|
759
759
|
}
|
|
760
|
-
}, [t]), c && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ e(
|
|
760
|
+
}, [t]), c && o.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ e(Ie.span, { ...i, ref: n }) : null;
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
763
|
ns.displayName = rs;
|
|
764
764
|
function je(s, n) {
|
|
765
765
|
return s ? n ? (s.src !== n && (s.src = n), s.complete && s.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
766
766
|
}
|
|
767
|
-
function
|
|
767
|
+
function za(s, { referrerPolicy: n, crossOrigin: a }) {
|
|
768
768
|
const t = Ga(), i = S.useRef(null), o = t ? (i.current || (i.current = new window.Image()), i.current) : null, [c, m] = S.useState(
|
|
769
769
|
() => je(o, s)
|
|
770
770
|
);
|
|
@@ -794,7 +794,7 @@ const Ee = S.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
|
|
|
794
794
|
}
|
|
795
795
|
));
|
|
796
796
|
Ee.displayName = os.displayName;
|
|
797
|
-
const
|
|
797
|
+
const qa = S.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
|
|
798
798
|
is,
|
|
799
799
|
{
|
|
800
800
|
ref: a,
|
|
@@ -802,7 +802,7 @@ const za = S.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
|
|
|
802
802
|
...n
|
|
803
803
|
}
|
|
804
804
|
));
|
|
805
|
-
|
|
805
|
+
qa.displayName = is.displayName;
|
|
806
806
|
const Fe = S.forwardRef(({ className: s, ...n }, a) => /* @__PURE__ */ e(
|
|
807
807
|
ls,
|
|
808
808
|
{
|
|
@@ -821,30 +821,30 @@ function _a({
|
|
|
821
821
|
group: a,
|
|
822
822
|
onUpdate: t
|
|
823
823
|
}) {
|
|
824
|
-
const [i, o] = x("members"), [c, m] = x(""), [h, f] = x([]), [u, d] = x([]), { data: p, isLoading: b, refetch: N } = Es(a.id), D = a.type === "TENANT_GROUP" ? "tenant" : "organization", { users: k, isLoading:
|
|
824
|
+
const [i, o] = x("members"), [c, m] = x(""), [h, f] = x([]), [u, d] = x([]), { data: p, isLoading: b, refetch: N } = Es(a.id), D = a.type === "TENANT_GROUP" ? "tenant" : "organization", { users: k, isLoading: I } = Fs({
|
|
825
825
|
type: D,
|
|
826
826
|
tenantId: a.tenantId || void 0,
|
|
827
827
|
active: !0,
|
|
828
828
|
limit: 100
|
|
829
|
-
}), O = La(), G = Pa(),
|
|
829
|
+
}), O = La(), G = Pa(), A = (p == null ? void 0 : p.members) || [], j = ae(() => new Set(A.map((g) => g.userId)), [A]), y = ae(() => k.filter((g) => !j.has(g.id)), [k, j]), T = ae(() => {
|
|
830
830
|
if (!c) return y;
|
|
831
831
|
const g = c.toLowerCase();
|
|
832
832
|
return y.filter(
|
|
833
833
|
(L) => {
|
|
834
|
-
var E,
|
|
835
|
-
return ((E = L.name) == null ? void 0 : E.toLowerCase().includes(g)) || ((
|
|
834
|
+
var E, z;
|
|
835
|
+
return ((E = L.name) == null ? void 0 : E.toLowerCase().includes(g)) || ((z = L.email) == null ? void 0 : z.toLowerCase().includes(g));
|
|
836
836
|
}
|
|
837
837
|
);
|
|
838
838
|
}, [y, c]), C = ae(() => {
|
|
839
|
-
if (!c) return
|
|
839
|
+
if (!c) return A;
|
|
840
840
|
const g = c.toLowerCase();
|
|
841
|
-
return
|
|
841
|
+
return A.filter(
|
|
842
842
|
(L) => {
|
|
843
|
-
var E,
|
|
844
|
-
return ((
|
|
843
|
+
var E, z, Y, q;
|
|
844
|
+
return ((z = (E = L.user) == null ? void 0 : E.name) == null ? void 0 : z.toLowerCase().includes(g)) || ((q = (Y = L.user) == null ? void 0 : Y.email) == null ? void 0 : q.toLowerCase().includes(g));
|
|
845
845
|
}
|
|
846
846
|
);
|
|
847
|
-
}, [
|
|
847
|
+
}, [A, c]), U = async () => {
|
|
848
848
|
if (h.length !== 0)
|
|
849
849
|
try {
|
|
850
850
|
await O.mutateAsync({
|
|
@@ -882,9 +882,9 @@ function _a({
|
|
|
882
882
|
/* @__PURE__ */ r(le, { children: [
|
|
883
883
|
/* @__PURE__ */ e(ce, { children: a.name }),
|
|
884
884
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ r("p", { className: "text-sm text-muted-foreground", children: [
|
|
885
|
-
|
|
885
|
+
A.length,
|
|
886
886
|
" ",
|
|
887
|
-
|
|
887
|
+
A.length === 1 ? "member" : "members"
|
|
888
888
|
] }) }),
|
|
889
889
|
/* @__PURE__ */ r("p", { id: "group-members-description", className: "sr-only", children: [
|
|
890
890
|
"Add or remove members from the ",
|
|
@@ -903,7 +903,7 @@ function _a({
|
|
|
903
903
|
/* @__PURE__ */ r("div", { className: "relative", children: [
|
|
904
904
|
/* @__PURE__ */ e(be, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
905
905
|
/* @__PURE__ */ e(
|
|
906
|
-
|
|
906
|
+
Q,
|
|
907
907
|
{
|
|
908
908
|
placeholder: "Search members...",
|
|
909
909
|
value: c,
|
|
@@ -954,7 +954,7 @@ function _a({
|
|
|
954
954
|
/* @__PURE__ */ r("div", { className: "relative", children: [
|
|
955
955
|
/* @__PURE__ */ e(be, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
956
956
|
/* @__PURE__ */ e(
|
|
957
|
-
|
|
957
|
+
Q,
|
|
958
958
|
{
|
|
959
959
|
placeholder: "Search users to add...",
|
|
960
960
|
value: c,
|
|
@@ -963,7 +963,7 @@ function _a({
|
|
|
963
963
|
}
|
|
964
964
|
)
|
|
965
965
|
] }),
|
|
966
|
-
/* @__PURE__ */ e(ve, { className: "h-[300px]", children:
|
|
966
|
+
/* @__PURE__ */ e(ve, { className: "h-[300px]", children: I ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((g) => /* @__PURE__ */ e(Ne, { className: "h-16 w-full" }, g)) }) : T.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
967
967
|
/* @__PURE__ */ e(ye, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
968
968
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
969
969
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: c ? "Try a different search" : "All eligible users are already members" })
|
|
@@ -1048,15 +1048,15 @@ function ja({
|
|
|
1048
1048
|
}
|
|
1049
1049
|
);
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function Va({
|
|
1052
1052
|
open: s,
|
|
1053
1053
|
onOpenChange: n
|
|
1054
1054
|
}) {
|
|
1055
|
-
const [a, t] = x("groups"), [i, o] = x(""), [c, m] = x(null), [h, f] = x(!1), [u, d] = x(null), { tokenProps: p } = R(), { currentUser: b } = Ze(), N = Ma(), D = (b == null ? void 0 : b.type) === "tenant", k = p == null ? void 0 : p.tenantId, { groups:
|
|
1055
|
+
const [a, t] = x("groups"), [i, o] = x(""), [c, m] = x(null), [h, f] = x(!1), [u, d] = x(null), { tokenProps: p } = R(), { currentUser: b } = Ze(), N = Ma(), D = (b == null ? void 0 : b.type) === "tenant", k = p == null ? void 0 : p.tenantId, { groups: I, isLoading: O, refetch: G } = Ts({
|
|
1056
1056
|
type: D ? "TENANT_GROUP" : "all",
|
|
1057
1057
|
tenantId: D ? k : void 0,
|
|
1058
1058
|
includeMembers: !1
|
|
1059
|
-
}),
|
|
1059
|
+
}), A = I.filter(
|
|
1060
1060
|
(C) => {
|
|
1061
1061
|
var U;
|
|
1062
1062
|
return C.name.toLowerCase().includes(i.toLowerCase()) || ((U = C.description) == null ? void 0 : U.toLowerCase().includes(i.toLowerCase()));
|
|
@@ -1097,7 +1097,7 @@ function Qa({
|
|
|
1097
1097
|
/* @__PURE__ */ r("div", { className: "relative", children: [
|
|
1098
1098
|
/* @__PURE__ */ e(be, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1099
1099
|
/* @__PURE__ */ e(
|
|
1100
|
-
|
|
1100
|
+
Q,
|
|
1101
1101
|
{
|
|
1102
1102
|
placeholder: "Search groups...",
|
|
1103
1103
|
value: i,
|
|
@@ -1106,12 +1106,12 @@ function Qa({
|
|
|
1106
1106
|
}
|
|
1107
1107
|
)
|
|
1108
1108
|
] }),
|
|
1109
|
-
/* @__PURE__ */ e(ve, { className: "h-[400px]", children: O ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((C) => /* @__PURE__ */ e(Ne, { className: "h-24 w-full" }, C)) }) :
|
|
1109
|
+
/* @__PURE__ */ e(ve, { className: "h-[400px]", children: O ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((C) => /* @__PURE__ */ e(Ne, { className: "h-24 w-full" }, C)) }) : A.length === 0 ? /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
1110
1110
|
/* @__PURE__ */ e($, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
1111
1111
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
|
|
1112
1112
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: i ? "Try a different search" : "Create your first group to get started" })
|
|
1113
|
-
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children:
|
|
1114
|
-
|
|
1113
|
+
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: A.map((C) => /* @__PURE__ */ e(
|
|
1114
|
+
Qa,
|
|
1115
1115
|
{
|
|
1116
1116
|
group: C,
|
|
1117
1117
|
onManageMembers: () => y(C),
|
|
@@ -1122,7 +1122,7 @@ function Qa({
|
|
|
1122
1122
|
)) }) })
|
|
1123
1123
|
] }) }),
|
|
1124
1124
|
/* @__PURE__ */ e(ne, { value: "create", className: "mt-4", children: /* @__PURE__ */ e(
|
|
1125
|
-
|
|
1125
|
+
Ia,
|
|
1126
1126
|
{
|
|
1127
1127
|
onSuccess: T,
|
|
1128
1128
|
tenantId: k,
|
|
@@ -1148,13 +1148,13 @@ function Qa({
|
|
|
1148
1148
|
children: /* @__PURE__ */ r(Rs, { children: [
|
|
1149
1149
|
/* @__PURE__ */ r(Os, { children: [
|
|
1150
1150
|
/* @__PURE__ */ e(Us, { children: "Delete Group" }),
|
|
1151
|
-
/* @__PURE__ */ r(
|
|
1151
|
+
/* @__PURE__ */ r(zs, { children: [
|
|
1152
1152
|
'Are you sure you want to delete "',
|
|
1153
1153
|
u == null ? void 0 : u.name,
|
|
1154
1154
|
'"? This action cannot be undone and will remove all members from the group.'
|
|
1155
1155
|
] })
|
|
1156
1156
|
] }),
|
|
1157
|
-
/* @__PURE__ */ r(
|
|
1157
|
+
/* @__PURE__ */ r(qs, { children: [
|
|
1158
1158
|
/* @__PURE__ */ e(_s, { children: "Cancel" }),
|
|
1159
1159
|
/* @__PURE__ */ e(
|
|
1160
1160
|
$s,
|
|
@@ -1174,7 +1174,7 @@ function Qa({
|
|
|
1174
1174
|
)
|
|
1175
1175
|
] });
|
|
1176
1176
|
}
|
|
1177
|
-
function
|
|
1177
|
+
function Qa({
|
|
1178
1178
|
group: s,
|
|
1179
1179
|
onManageMembers: n,
|
|
1180
1180
|
onDelete: a,
|
|
@@ -1231,13 +1231,13 @@ function Za() {
|
|
|
1231
1231
|
authToken: s,
|
|
1232
1232
|
tokenProps: n,
|
|
1233
1233
|
id: a
|
|
1234
|
-
} = R(), { isLocalDev: t } =
|
|
1234
|
+
} = R(), { isLocalDev: t } = Vs(), { permissions: i } = Qs(), o = Hs(), { isLoading: c } = Bs();
|
|
1235
1235
|
w((l) => l.theme);
|
|
1236
1236
|
const m = w((l) => l.lenses), h = w((l) => l.selectedLensId), f = m == null ? void 0 : m.find((l) => l.id === h), u = w((l) => l.dashboard);
|
|
1237
1237
|
w((l) => l.selectedSheetId);
|
|
1238
1238
|
const d = w(
|
|
1239
1239
|
(l) => l.isDashboardEditing
|
|
1240
|
-
), { setDashboardTitle: p } = w((l) => l.actions), [b, N] = x(!1), [D, k] = x(!1), [
|
|
1240
|
+
), { setDashboardTitle: p } = w((l) => l.actions), [b, N] = x(!1), [D, k] = x(!1), [I, O] = x(!1), G = w((l) => l.isDashboardPanelOpen), A = w(
|
|
1241
1241
|
(l) => l.actions.setIsDashboardPanelOpen
|
|
1242
1242
|
), j = w((l) => l.filterValues), y = w((l) => l.isVisualEditing);
|
|
1243
1243
|
_e((l) => l.card);
|
|
@@ -1253,11 +1253,11 @@ function Za() {
|
|
|
1253
1253
|
(l) => l.actions.setShowFilters
|
|
1254
1254
|
), { setIsDashboardEditing: L, setShowDashboardJSON: E } = w(
|
|
1255
1255
|
(l) => l.actions
|
|
1256
|
-
), { setInitialDashboard:
|
|
1256
|
+
), { setInitialDashboard: z, clearSelectedDashboard: Y } = se(
|
|
1257
1257
|
(l) => l.actions
|
|
1258
|
-
), { resources:
|
|
1259
|
-
id:
|
|
1260
|
-
title: (u == null ? void 0 : u.title) ||
|
|
1258
|
+
), { resources: q } = Ks(fe.DASHBOARD), { currentUser: cs } = Ze(), ds = Ws(cs), V = T || C, Te = V ? {
|
|
1259
|
+
id: V.id,
|
|
1260
|
+
title: (u == null ? void 0 : u.title) || V.title || "Dashboard"
|
|
1261
1261
|
} : null, { handleAddNewFrame: us } = Js(), [pe, ge] = x(!1), Z = Xs(fe.DASHBOARD), ms = async (l, F) => {
|
|
1262
1262
|
if (!(u != null && u.id)) {
|
|
1263
1263
|
console.log("No dashboard ID found");
|
|
@@ -1283,16 +1283,16 @@ function Za() {
|
|
|
1283
1283
|
);
|
|
1284
1284
|
};
|
|
1285
1285
|
oa(() => {
|
|
1286
|
-
if (
|
|
1286
|
+
if (q && q.length > 0) {
|
|
1287
1287
|
const l = u == null ? void 0 : u.id;
|
|
1288
1288
|
if (l) {
|
|
1289
|
-
const F =
|
|
1289
|
+
const F = q.find(
|
|
1290
1290
|
(K) => K.id === l
|
|
1291
1291
|
);
|
|
1292
|
-
F &&
|
|
1292
|
+
F && z(F);
|
|
1293
1293
|
}
|
|
1294
1294
|
}
|
|
1295
|
-
}, [
|
|
1295
|
+
}, [q, u == null ? void 0 : u.id, z]);
|
|
1296
1296
|
const ee = n.orgUserId || n.tenantId, hs = d && !y && ee && U, ps = () => {
|
|
1297
1297
|
L(!0);
|
|
1298
1298
|
};
|
|
@@ -1356,7 +1356,7 @@ function Za() {
|
|
|
1356
1356
|
"aria-label": "Manage Dashboards",
|
|
1357
1357
|
tooltip: "Manage Dashboards",
|
|
1358
1358
|
onClick: () => {
|
|
1359
|
-
|
|
1359
|
+
A(!G);
|
|
1360
1360
|
},
|
|
1361
1361
|
className: "h-7 p-2",
|
|
1362
1362
|
children: /* @__PURE__ */ e(ua, { className: "h-4 w-4" })
|
|
@@ -1436,7 +1436,7 @@ function Za() {
|
|
|
1436
1436
|
children: /* @__PURE__ */ e($, { className: "h-4 w-4" })
|
|
1437
1437
|
}
|
|
1438
1438
|
),
|
|
1439
|
-
!y && o && ((Ue =
|
|
1439
|
+
!y && o && ((Ue = V == null ? void 0 : V.permissions) == null ? void 0 : Ue.canShare) && /* @__PURE__ */ e(
|
|
1440
1440
|
_,
|
|
1441
1441
|
{
|
|
1442
1442
|
tooltip: "Share Dashboard",
|
|
@@ -1545,9 +1545,9 @@ function Za() {
|
|
|
1545
1545
|
}
|
|
1546
1546
|
),
|
|
1547
1547
|
/* @__PURE__ */ e(
|
|
1548
|
-
|
|
1548
|
+
Va,
|
|
1549
1549
|
{
|
|
1550
|
-
open:
|
|
1550
|
+
open: I,
|
|
1551
1551
|
onOpenChange: O
|
|
1552
1552
|
}
|
|
1553
1553
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BXvRuiXr.js"),f=require("react");require("react-dom");const U=require("./schedule-dashboard-BPO2X1Wc.js"),ne=require("./editor-action-buttons-DnGJWYX_.js");function Ce(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const D=Ce(f);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { u as s, c as l, B as h, X as d, d as c } from "./index-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-D4cZLrvg.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-BXvRuiXr.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { b as fe, l as nt, e as se, f as D,
|
|
2
|
+
import { b as fe, l as nt, e as se, f as D, c3 as ma, av as P, c4 as Q, c5 as Y, c6 as W, c7 as X, c8 as K, c9 as ve, B as q, aR as qe, ca as ha, cb as ms, cc as hs, cd as ps, ce as fs, cf as Jt, r as lt, X as Me, cg as Za, aW as gs, aq as xt, ar as vt, as as bt, at as yt, au as Ft, k as Oe, bh as Ie, bd as je, be as Ae, bf as Te, ch as Pn, ci as en, u as ke, az as ra, cj as st, b0 as Ht, c as Z, ay as Ge, ck as xs, aP as vs, cl as Ml, cm as Il, cn as Ol, co as jt, cp as Rl, cq as bs, bI as ys, cr as He, cs as Ln, ct as Fl, cu as Pl, cv as Ll, cw as tn, cx as Ns, cy as Cs, cz as St, cA as ws, cB as Vl, bs as zl, cC as jl, cD as Ss, cE as Bl, cF as an, cG as Kl, h as $l, cH as ql, cI as qa, cJ as Nt, cK as Fe, cL as Ct, L as pa, cM as Gl, cN as ks, c0 as Ga, aD as fa, cO as ga, cP as Qt, cQ as Ul, b1 as xa, cR as wt, aC as _l, cS as Ua, a_ as Jl, aJ as nn, g as As, cT as sn, cU as Hl, cV as Ts, cW as Es, cX as ia, b_ as Ia, cY as Ql, cZ as Ds, c_ as Yl, c$ as Wl, d0 as Xl, d1 as va, d2 as Zl, d3 as er, d4 as Vn, d5 as tr, E as ba, o as ln, d6 as ar, d7 as rn, bu as nr, I as Ee, d8 as sr, d9 as lr, bM as ya, bN as Na, bO as We, bP as sa, da as rr, al as Yt, db as on, dc as ir, dd as or, de as cr, df as Ms, dg as dr, dh as cn, di as dn, dj as un, dk as mn, dl as Wt, dm as Ca, dn as Is, dp as _a, dq as hn, dr as pn, ds as Os, dt as fn, du as Rs, dv as gn, aQ as wa, dw as Sa, dx as ur, P as rt, q as it, s as ot, bo as xn, aw as Le, aE as Fs, aF as Ps, aH as Ls, bw as Vs, aV as zs, dy as ft, dz as mr, dA as hr, dB as pr, dC as fr, dD as gr, bF as xr, aB as Bt, dE as vr, dF as js, dG as vn, dH as Pt, dI as $t, dJ as Bs, dK as Be, dL as de, dM as ue, dN as me, bv as ye, dO as at, c1 as Ks, dP as br, dQ as yr, dR as Nr, dS as Cr, dT as wr, dU as Sr, af as $s, dV as kr, dW as Ar, dX as Tr, t as ka, v as Aa, w as Ta, x as Ea, y as Rt, z as Xt, dY as Er, dZ as ze, d_ as ta, d$ as zn, e0 as Dr, e1 as jn, e2 as Mr, C as Zt, e3 as De, e4 as Ir, e5 as Bn, e6 as Kn, e7 as Or, e8 as Rr, e9 as Fr, ea as Pr, eb as Oa, ec as qs, ed as Lr, ee as $n, ef as qn, bV as Vr, eg as zr, eh as jr, ei as Br, ej as Kr, ek as $r, ab as Gn, el as Un, em as qr, en as Gr, eo as Gs, ep as Ur, eq as Us, er as _r, es as Jr, et as Hr, eu as Qr, ev as Yr, ew as Wr, ex as Xr, ey as Zr, ez as ei, eA as ti, eB as _s, eC as ai, eD as ni, eE as si, eF as li, eG as ri, eH as ii, eI as oi, eJ as Js, aG as ci, eK as Ra, eL as Fa, eM as bn, W as di, eN as ui, eO as mi, bH as Hs, eP as Ke, ax as hi, Z as oa, eQ as pi, eR as fi, eS as yn, eT as Qs, eU as Nn, eV as gi, bp as xi, eW as _n, eX as vi, eY as bi, eZ as yi, e_ as la, e$ as qt, f0 as Gt, f1 as Ni, f2 as Ci, f3 as wi, f4 as Ys, f5 as Si, f6 as Ja, f7 as ki, f8 as Ai, f9 as ca, fa as gt, fb as Ha, fc as Qa, fd as da, fe as Ws, ff as Ut, fg as _t, fh as Cn, fi as Ti, fj as Pa, fk as La, fl as Ei, fm as Va, fn as Di, fo as Jn, fp as Mi, fq as Ii, fr as Oi, fs as Ri, ft as Fi, fu as za, fv as Pi, fw as Li, fx as Vi, F as zi } from "./index-D4cZLrvg.js";
|
|
3
3
|
import * as Ya from "react";
|
|
4
4
|
import Wa, { useState as $, useEffect as he, useRef as Xe, useCallback as $e, useContext as wn, useMemo as Ce, Suspense as ji } from "react";
|
|
5
|
-
import { d as Sn } from "./editor-action-buttons-
|
|
5
|
+
import { d as Sn } from "./editor-action-buttons-CFkKUPbv.js";
|
|
6
6
|
import { createPortal as Bi } from "react-dom";
|
|
7
|
-
import { u as Ki } from "./use-visual-utils-
|
|
7
|
+
import { u as Ki } from "./use-visual-utils-DFxbSGPh.js";
|
|
8
8
|
import { u as $i } from "./use-click-outside-CMeO_QFI.js";
|
|
9
9
|
/**
|
|
10
10
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BXvRuiXr.js"),A=require("react"),Je=require("./editor-action-buttons-DnGJWYX_.js"),et=require("react-dom"),st=require("./use-visual-utils-Da_aJCA4.js"),tt=require("./use-click-outside-B9T3lmcw.js");function at(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const Ue=at(A);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, jsx as y, Fragment as C } from "react/jsx-runtime";
|
|
2
|
-
import { b as K, e as b, f as t, B as S, c as g, C as Q, u as D, g as F, L as z, h as I, i as k, j as E, k as B, X as L, l as h } from "./index-
|
|
3
|
-
import { u as M, a as N } from "./use-visual-utils-
|
|
2
|
+
import { b as K, e as b, f as t, B as S, c as g, C as Q, u as D, g as F, L as z, h as I, i as k, j as E, k as B, X as L, l as h } from "./index-D4cZLrvg.js";
|
|
3
|
+
import { u as M, a as N } from "./use-visual-utils-DFxbSGPh.js";
|
|
4
4
|
import { useState as V } from "react";
|
|
5
5
|
/**
|
|
6
6
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("./index-BXvRuiXr.js"),v=require("./use-visual-utils-Da_aJCA4.js"),C=require("react");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|