react-semaphor 0.1.306 → 0.1.307
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-CuiOenEA.js → braces-CkL8POe0.js} +1 -1
- package/dist/chunks/{braces-DZxcgUvn.js → braces-e5qkN-I_.js} +1 -1
- package/dist/chunks/{dashboard-controls-CuQH4inS.js → dashboard-controls-5bibC_5a.js} +139 -127
- package/dist/chunks/dashboard-controls-Dwet_9h0.js +52 -0
- package/dist/chunks/{dashboard-filter-controls-button-NiAIAD1P.js → dashboard-filter-controls-button-D0k9NDci.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-Bu90ytxy.js → dashboard-filter-controls-button-ZeYO5jux.js} +1 -1
- package/dist/chunks/{dashboard-json-Bk13vadr.js → dashboard-json-Bi5XdgG5.js} +1 -1
- package/dist/chunks/{dashboard-json-DzVn9KAU.js → dashboard-json-CfRKLL7C.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-dt20G_7d.js → dashboard-summary-settings-dialog-Bj4_wBW9.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-8vZtKUjh.js → dashboard-summary-settings-dialog-DD9Aj2XH.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BIuWXuCC.js → edit-dashboard-visual-DIuzuJfj.js} +5 -5
- package/dist/chunks/{edit-dashboard-visual-DGhTFzSF.js → edit-dashboard-visual-Wfs53Kbn.js} +1 -1
- package/dist/chunks/{index-DQApwxKL.js → index-DMFCfjgD.js} +30195 -30072
- package/dist/chunks/{index-CwzM5Lxh.js → index-DQCMUspd.js} +230 -240
- package/dist/chunks/{palette-BwGE32UR.js → palette-D5Lorzf2.js} +1 -1
- package/dist/chunks/{palette-DFjOzeAG.js → palette-Oa4O9jWG.js} +1 -1
- package/dist/chunks/{resource-management-panel-BqJAVm7E.js → resource-management-panel-CNr6uMMf.js} +1 -1
- package/dist/chunks/{resource-management-panel-CD_TQoTn.js → resource-management-panel-Dqc3gfYn.js} +3 -3
- package/dist/chunks/{save-QktcpXPy.js → save-CDX2p4v1.js} +1 -1
- package/dist/chunks/{save-B3tqymYm.js → save-zEdICevW.js} +1 -1
- package/dist/chunks/{switch-B72T1Hf_.js → switch-BPFzGTzF.js} +25 -25
- package/dist/chunks/{switch-BuZXNXQV.js → switch-CKiXRRoh.js} +64 -63
- package/dist/chunks/{use-create-flow-overlay-state-Bg-LkLP7.js → use-create-flow-overlay-state-CLyv5c2m.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-iUCs5ZgT.js → use-create-flow-overlay-state-CSMe5Ls6.js} +1 -1
- package/dist/chunks/{use-visual-utils-DqVxN0_F.js → use-visual-utils-DDAs4dCz.js} +1 -1
- package/dist/chunks/{use-visual-utils-D_2r0Fmm.js → use-visual-utils-Det6M3Wd.js} +2 -2
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/main.d.ts +0 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-controls-BpgZjEDy.js +0 -47
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as e, jsxs as c, Fragment as T } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { c5 as ys, u as j, b as Ge, c6 as xs, bl as ht, c as $e, d as Ve, e as ze, f as wt, o as Ns, c7 as de, by as Te, c8 as Ss, c9 as aa, ca as fa, cb as ga, cc as ws, bO as Dt, cd as Ds, ce as Cs, cf as Es, cg as Is, ch as
|
|
4
|
-
import * as
|
|
2
|
+
import { c as Q, u as S, B as A, aI as Nt, m as St, L as dt, I as ue, a as Y, aJ as Re, aK as da, aL as ua, E as ls, f as X, aM as ds, aN as us, aO as ut, T as ma, q as ha, r as _e, t as Ue, s as mt, aP as pa, aQ as ms, n as ta, z as hs, A as ps, D as fs, F as gs, K as vs, aR as bs } from "./switch-CKiXRRoh.js";
|
|
3
|
+
import { c5 as ys, u as j, b as Ge, c6 as xs, bl as ht, c as $e, d as Ve, e as ze, f as wt, o as Ns, c7 as de, by as Te, c8 as Ss, c9 as aa, ca as fa, cb as ga, cc as ws, bO as Dt, cd as Ds, ce as Cs, cf as Es, cg as Is, ch as Ms, ci as As, r as qe, z as Be, p as M, bV as Ls, cj as Os, ck as ks, bS as pt, cl as ft, bx as Ct, bc as va, ba, cm as Ps, bF as ya, bG as xa, bH as Na, bI as Sa, bJ as wa, bK as Da, bL as Ca, bM as gt, cn as Ts, co as _s, cp as Us, bp as Fs, cq as Rs, cr as Gs, X as $s, W as ke, cs as Vs, a1 as zs, Y as nt, ct as qs, cu as Bs, cv as Hs, ad as js, cw as Ks, L as rt, cx as Qs, cy as Ws, cz as Js, c4 as Ys, cA as Xs, bq as Zs, br as en, bs as tn, bt as an, bu as $, bZ as sn, N as nn, bA as rn, cB as on, bv as sa, cC as cn, cD as ln, cE as dn, a0 as un, O as mn, cF as hn, K as vt } from "./index-DMFCfjgD.js";
|
|
4
|
+
import * as L from "react";
|
|
5
5
|
import Ea, { useState as N, useMemo as F, useCallback as Fe, useEffect as ot } from "react";
|
|
6
6
|
import "./index-CJdxSyQq.js";
|
|
7
7
|
import "react-dom";
|
|
8
|
-
import { b as pn, u as fn, A as gn, V as vn, c as bn, D as yn, N as xn, U as Nn } from "./dashboard-filter-controls-button-
|
|
8
|
+
import { b as pn, u as fn, A as gn, V as vn, c as bn, D as yn, N as xn, U as Nn } from "./dashboard-filter-controls-button-D0k9NDci.js";
|
|
9
9
|
import { d as Sn } from "./index-DFOb_6HB.js";
|
|
10
|
-
import { C as wn, D as Dn } from "./dashboard-summary-settings-dialog-
|
|
10
|
+
import { C as wn, D as Dn } from "./dashboard-summary-settings-dialog-Bj4_wBW9.js";
|
|
11
11
|
import { u as Cn } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
12
12
|
import { s as it } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
13
|
-
import { u as En, e as In } from "./use-create-flow-overlay-state-
|
|
14
|
-
import { S as na } from "./save-
|
|
15
|
-
import { P as
|
|
16
|
-
import { B as
|
|
13
|
+
import { u as En, e as In } from "./use-create-flow-overlay-state-CLyv5c2m.js";
|
|
14
|
+
import { S as na } from "./save-CDX2p4v1.js";
|
|
15
|
+
import { P as Mn } from "./palette-Oa4O9jWG.js";
|
|
16
|
+
import { B as An } from "./braces-e5qkN-I_.js";
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-react v0.453.0 - ISC
|
|
19
19
|
*
|
|
20
20
|
* This source code is licensed under the ISC license.
|
|
21
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const Ln = Q("Glasses", [
|
|
24
24
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
25
25
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
26
26
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -33,7 +33,7 @@ const Mn = X("Glasses", [
|
|
|
33
33
|
* This source code is licensed under the ISC license.
|
|
34
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
const On =
|
|
36
|
+
const On = Q("Menu", [
|
|
37
37
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
38
38
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
39
39
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -44,7 +44,7 @@ const On = X("Menu", [
|
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
46
|
*/
|
|
47
|
-
const kn =
|
|
47
|
+
const kn = Q("Monitor", [
|
|
48
48
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
49
49
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
50
50
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
@@ -55,7 +55,7 @@ const kn = X("Monitor", [
|
|
|
55
55
|
* This source code is licensed under the ISC license.
|
|
56
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
57
57
|
*/
|
|
58
|
-
const Pn =
|
|
58
|
+
const Pn = Q("Moon", [
|
|
59
59
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
60
60
|
]);
|
|
61
61
|
/**
|
|
@@ -64,7 +64,7 @@ const Pn = X("Moon", [
|
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
66
|
*/
|
|
67
|
-
const Tn =
|
|
67
|
+
const Tn = Q("ShieldX", [
|
|
68
68
|
[
|
|
69
69
|
"path",
|
|
70
70
|
{
|
|
@@ -81,7 +81,7 @@ const Tn = X("ShieldX", [
|
|
|
81
81
|
* This source code is licensed under the ISC license.
|
|
82
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
83
83
|
*/
|
|
84
|
-
const _n =
|
|
84
|
+
const _n = Q("Sun", [
|
|
85
85
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
86
86
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
87
87
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -92,6 +92,18 @@ const _n = X("Sun", [
|
|
|
92
92
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
93
93
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
94
94
|
]);
|
|
95
|
+
/**
|
|
96
|
+
* @license lucide-react v0.453.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/
|
|
101
|
+
const bt = Q("UserPlus", [
|
|
102
|
+
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
103
|
+
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
104
|
+
["line", { x1: "19", x2: "19", y1: "8", y2: "14", key: "1bvyxn" }],
|
|
105
|
+
["line", { x1: "22", x2: "16", y1: "11", y2: "11", key: "1shjgl" }]
|
|
106
|
+
]);
|
|
95
107
|
var yt = { exports: {} }, ct = {};
|
|
96
108
|
/**
|
|
97
109
|
* @license React
|
|
@@ -219,7 +231,7 @@ function Gn() {
|
|
|
219
231
|
}
|
|
220
232
|
const i = t === "light" ? _n : t === "dark" ? Pn : kn, u = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
|
|
221
233
|
return /* @__PURE__ */ e(
|
|
222
|
-
|
|
234
|
+
A,
|
|
223
235
|
{
|
|
224
236
|
type: "button",
|
|
225
237
|
variant: "ghost",
|
|
@@ -285,7 +297,7 @@ function qn({
|
|
|
285
297
|
I && (p([...l || [], I]), g(I.id), b(!1)), m(!1);
|
|
286
298
|
}
|
|
287
299
|
return /* @__PURE__ */ c(Ge, { open: r, onOpenChange: b, children: [
|
|
288
|
-
d ? null : /* @__PURE__ */ e(xs, { asChild: !0, children: /* @__PURE__ */ c(
|
|
300
|
+
d ? null : /* @__PURE__ */ e(xs, { asChild: !0, children: /* @__PURE__ */ c(A, { variant: "secondary", size: "xs", children: [
|
|
289
301
|
/* @__PURE__ */ e(ht, { className: "h-3.5 w-3.5" }),
|
|
290
302
|
"Lens"
|
|
291
303
|
] }) }),
|
|
@@ -309,9 +321,9 @@ function qn({
|
|
|
309
321
|
i && /* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "A lens with this name already exists. Pick a different one." })
|
|
310
322
|
] }),
|
|
311
323
|
/* @__PURE__ */ c(Ns, { children: [
|
|
312
|
-
/* @__PURE__ */ e(
|
|
324
|
+
/* @__PURE__ */ e(A, { variant: "outline", size: "xs", onClick: () => b(!1), children: "Cancel" }),
|
|
313
325
|
/* @__PURE__ */ e(
|
|
314
|
-
|
|
326
|
+
A,
|
|
315
327
|
{
|
|
316
328
|
size: "xs",
|
|
317
329
|
type: "submit",
|
|
@@ -384,7 +396,7 @@ function Bn({ includeLabel: t = !1 } = {}) {
|
|
|
384
396
|
onClick: (f) => {
|
|
385
397
|
f.preventDefault(), v(m);
|
|
386
398
|
},
|
|
387
|
-
className:
|
|
399
|
+
className: Y(
|
|
388
400
|
"size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",
|
|
389
401
|
{
|
|
390
402
|
invisible: !m.isDefault,
|
|
@@ -422,8 +434,8 @@ function Hn() {
|
|
|
422
434
|
() => {
|
|
423
435
|
var p, g, v, m, f;
|
|
424
436
|
return {
|
|
425
|
-
canEdit: ((p = s == null ? void 0 : s.permissions) == null ? void 0 : p.canEdit) ??
|
|
426
|
-
canUseFilters: ((g = s == null ? void 0 : s.permissions) == null ? void 0 : g.canEdit) ??
|
|
437
|
+
canEdit: ((p = s == null ? void 0 : s.permissions) == null ? void 0 : p.canEdit) ?? As(n),
|
|
438
|
+
canUseFilters: ((g = s == null ? void 0 : s.permissions) == null ? void 0 : g.canEdit) ?? Ms(n),
|
|
427
439
|
canManageDashboards: ((v = s == null ? void 0 : s.permissions) == null ? void 0 : v.canCreateDashboard) ?? Is(n),
|
|
428
440
|
canCreateDashboards: ((m = s == null ? void 0 : s.permissions) == null ? void 0 : m.canCreateDashboard) ?? Es(n),
|
|
429
441
|
canAccessVisuals: ((f = s == null ? void 0 : s.permissions) == null ? void 0 : f.canEdit) ?? Cs(n)
|
|
@@ -456,10 +468,10 @@ function Jn() {
|
|
|
456
468
|
return Be({
|
|
457
469
|
mutationFn: (s) => jn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
|
|
458
470
|
onSuccess: () => {
|
|
459
|
-
n.invalidateQueries({ queryKey: ["groups"] }),
|
|
471
|
+
n.invalidateQueries({ queryKey: ["groups"] }), M.success("Group created successfully");
|
|
460
472
|
},
|
|
461
473
|
onError: (s) => {
|
|
462
|
-
console.error("Failed to create group:", s),
|
|
474
|
+
console.error("Failed to create group:", s), M.error("Failed to create group", {
|
|
463
475
|
description: Re(s, "Failed to create group")
|
|
464
476
|
});
|
|
465
477
|
}
|
|
@@ -470,10 +482,10 @@ function Yn() {
|
|
|
470
482
|
return Be({
|
|
471
483
|
mutationFn: (s) => Kn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
|
|
472
484
|
onSuccess: (s, i) => {
|
|
473
|
-
n.invalidateQueries({ queryKey: ["groups"] }), n.removeQueries({ queryKey: ["group", i] }),
|
|
485
|
+
n.invalidateQueries({ queryKey: ["groups"] }), n.removeQueries({ queryKey: ["group", i] }), M.success("Group deleted successfully");
|
|
474
486
|
},
|
|
475
487
|
onError: (s) => {
|
|
476
|
-
console.error("Failed to delete group:", s),
|
|
488
|
+
console.error("Failed to delete group:", s), M.error("Failed to delete group", {
|
|
477
489
|
description: Re(s, "Failed to delete group")
|
|
478
490
|
});
|
|
479
491
|
}
|
|
@@ -489,10 +501,10 @@ function Xn() {
|
|
|
489
501
|
onSuccess: (s, i) => {
|
|
490
502
|
n.invalidateQueries({ queryKey: ["group", i.groupId] }), n.invalidateQueries({
|
|
491
503
|
queryKey: ["group-members", i.groupId]
|
|
492
|
-
}), n.invalidateQueries({ queryKey: ["groups"] }),
|
|
504
|
+
}), n.invalidateQueries({ queryKey: ["groups"] }), M.success("Members added successfully");
|
|
493
505
|
},
|
|
494
506
|
onError: (s) => {
|
|
495
|
-
console.error("Failed to add group members:", s),
|
|
507
|
+
console.error("Failed to add group members:", s), M.error("Failed to add members", {
|
|
496
508
|
description: Re(s, "Failed to add members")
|
|
497
509
|
});
|
|
498
510
|
}
|
|
@@ -508,10 +520,10 @@ function Zn() {
|
|
|
508
520
|
onSuccess: (s, i) => {
|
|
509
521
|
n.invalidateQueries({ queryKey: ["group", i.groupId] }), n.invalidateQueries({
|
|
510
522
|
queryKey: ["group-members", i.groupId]
|
|
511
|
-
}), n.invalidateQueries({ queryKey: ["groups"] }),
|
|
523
|
+
}), n.invalidateQueries({ queryKey: ["groups"] }), M.success("Members removed successfully");
|
|
512
524
|
},
|
|
513
525
|
onError: (s) => {
|
|
514
|
-
console.error("Failed to remove group members:", s),
|
|
526
|
+
console.error("Failed to remove group members:", s), M.error("Failed to remove members", {
|
|
515
527
|
description: Re(s, "Failed to remove members")
|
|
516
528
|
});
|
|
517
529
|
}
|
|
@@ -565,7 +577,7 @@ function er({
|
|
|
565
577
|
/* @__PURE__ */ c("div", { className: "space-y-1.5", children: [
|
|
566
578
|
/* @__PURE__ */ e(dt, { htmlFor: "group-description", className: ia, children: "Description (optional)" }),
|
|
567
579
|
/* @__PURE__ */ e(
|
|
568
|
-
|
|
580
|
+
Ls,
|
|
569
581
|
{
|
|
570
582
|
id: "group-description",
|
|
571
583
|
placeholder: "Describe the purpose of this group…",
|
|
@@ -589,7 +601,7 @@ function er({
|
|
|
589
601
|
] }),
|
|
590
602
|
/* @__PURE__ */ c("div", { className: "flex justify-end gap-1.5 pt-1", children: [
|
|
591
603
|
/* @__PURE__ */ e(
|
|
592
|
-
|
|
604
|
+
A,
|
|
593
605
|
{
|
|
594
606
|
type: "button",
|
|
595
607
|
variant: "outline",
|
|
@@ -602,13 +614,13 @@ function er({
|
|
|
602
614
|
}
|
|
603
615
|
),
|
|
604
616
|
/* @__PURE__ */ e(
|
|
605
|
-
|
|
617
|
+
A,
|
|
606
618
|
{
|
|
607
619
|
type: "submit",
|
|
608
620
|
size: "xs",
|
|
609
621
|
disabled: v.isPending || !s.trim(),
|
|
610
622
|
children: v.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
611
|
-
/* @__PURE__ */ e(
|
|
623
|
+
/* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
612
624
|
"Creating…"
|
|
613
625
|
] }) : "Create group"
|
|
614
626
|
}
|
|
@@ -619,19 +631,19 @@ function er({
|
|
|
619
631
|
function tr(t, a = []) {
|
|
620
632
|
let n = [];
|
|
621
633
|
function s(u, l) {
|
|
622
|
-
const p =
|
|
634
|
+
const p = L.createContext(l);
|
|
623
635
|
p.displayName = u + "Context";
|
|
624
636
|
const g = n.length;
|
|
625
637
|
n = [...n, l];
|
|
626
638
|
const v = (f) => {
|
|
627
639
|
var w;
|
|
628
|
-
const { scope: h, children: d, ...r } = f, b = ((w = h == null ? void 0 : h[t]) == null ? void 0 : w[g]) || p, D =
|
|
640
|
+
const { scope: h, children: d, ...r } = f, b = ((w = h == null ? void 0 : h[t]) == null ? void 0 : w[g]) || p, D = L.useMemo(() => r, Object.values(r));
|
|
629
641
|
return /* @__PURE__ */ e(b.Provider, { value: D, children: d });
|
|
630
642
|
};
|
|
631
643
|
v.displayName = u + "Provider";
|
|
632
644
|
function m(f, h) {
|
|
633
645
|
var b;
|
|
634
|
-
const d = ((b = h == null ? void 0 : h[t]) == null ? void 0 : b[g]) || p, r =
|
|
646
|
+
const d = ((b = h == null ? void 0 : h[t]) == null ? void 0 : b[g]) || p, r = L.useContext(d);
|
|
635
647
|
if (r) return r;
|
|
636
648
|
if (l !== void 0) return l;
|
|
637
649
|
throw new Error(`\`${f}\` must be used within \`${u}\``);
|
|
@@ -639,10 +651,10 @@ function tr(t, a = []) {
|
|
|
639
651
|
return [v, m];
|
|
640
652
|
}
|
|
641
653
|
const i = () => {
|
|
642
|
-
const u = n.map((l) =>
|
|
654
|
+
const u = n.map((l) => L.createContext(l));
|
|
643
655
|
return function(p) {
|
|
644
656
|
const g = (p == null ? void 0 : p[t]) || u;
|
|
645
|
-
return
|
|
657
|
+
return L.useMemo(
|
|
646
658
|
() => ({ [`__scope${t}`]: { ...p, [t]: g } }),
|
|
647
659
|
[p, g]
|
|
648
660
|
);
|
|
@@ -663,7 +675,7 @@ function ar(...t) {
|
|
|
663
675
|
const f = g(u)[`__scope${v}`];
|
|
664
676
|
return { ...p, ...f };
|
|
665
677
|
}, {});
|
|
666
|
-
return
|
|
678
|
+
return L.useMemo(() => ({ [`__scope${a.scopeName}`]: l }), [l]);
|
|
667
679
|
};
|
|
668
680
|
};
|
|
669
681
|
return n.scopeName = a.scopeName, n;
|
|
@@ -687,7 +699,7 @@ var sr = [
|
|
|
687
699
|
"svg",
|
|
688
700
|
"ul"
|
|
689
701
|
], Et = sr.reduce((t, a) => {
|
|
690
|
-
const n = ds(`Primitive.${a}`), s =
|
|
702
|
+
const n = ds(`Primitive.${a}`), s = L.forwardRef((i, u) => {
|
|
691
703
|
const { asChild: l, ...p } = i, g = l ? n : a;
|
|
692
704
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(g, { ...p, ref: u });
|
|
693
705
|
});
|
|
@@ -704,9 +716,9 @@ function rr() {
|
|
|
704
716
|
return () => {
|
|
705
717
|
};
|
|
706
718
|
}
|
|
707
|
-
var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It),
|
|
719
|
+
var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It), Ma = L.forwardRef(
|
|
708
720
|
(t, a) => {
|
|
709
|
-
const { __scopeAvatar: n, ...s } = t, [i, u] =
|
|
721
|
+
const { __scopeAvatar: n, ...s } = t, [i, u] = L.useState("idle");
|
|
710
722
|
return /* @__PURE__ */ e(
|
|
711
723
|
ir,
|
|
712
724
|
{
|
|
@@ -718,11 +730,11 @@ var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It), Aa = M.forwardRef(
|
|
|
718
730
|
);
|
|
719
731
|
}
|
|
720
732
|
);
|
|
721
|
-
|
|
722
|
-
var
|
|
733
|
+
Ma.displayName = It;
|
|
734
|
+
var Aa = "AvatarImage", La = L.forwardRef(
|
|
723
735
|
(t, a) => {
|
|
724
736
|
const { __scopeAvatar: n, src: s, onLoadingStatusChange: i = () => {
|
|
725
|
-
}, ...u } = t, l = Ia(
|
|
737
|
+
}, ...u } = t, l = Ia(Aa, n), p = cr(s, u), g = us((v) => {
|
|
726
738
|
i(v), l.onImageLoadingStatusChange(v);
|
|
727
739
|
});
|
|
728
740
|
return ut(() => {
|
|
@@ -730,11 +742,11 @@ var La = "AvatarImage", Ma = M.forwardRef(
|
|
|
730
742
|
}, [p, g]), p === "loaded" ? /* @__PURE__ */ e(Et.img, { ...u, ref: a, src: s }) : null;
|
|
731
743
|
}
|
|
732
744
|
);
|
|
733
|
-
|
|
734
|
-
var Oa = "AvatarFallback", ka =
|
|
745
|
+
La.displayName = Aa;
|
|
746
|
+
var Oa = "AvatarFallback", ka = L.forwardRef(
|
|
735
747
|
(t, a) => {
|
|
736
|
-
const { __scopeAvatar: n, delayMs: s, ...i } = t, u = Ia(Oa, n), [l, p] =
|
|
737
|
-
return
|
|
748
|
+
const { __scopeAvatar: n, delayMs: s, ...i } = t, u = Ia(Oa, n), [l, p] = L.useState(s === void 0);
|
|
749
|
+
return L.useEffect(() => {
|
|
738
750
|
if (s !== void 0) {
|
|
739
751
|
const g = window.setTimeout(() => p(!0), s);
|
|
740
752
|
return () => window.clearTimeout(g);
|
|
@@ -747,7 +759,7 @@ function ca(t, a) {
|
|
|
747
759
|
return t ? a ? (t.src !== a && (t.src = a), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
748
760
|
}
|
|
749
761
|
function cr(t, { referrerPolicy: a, crossOrigin: n }) {
|
|
750
|
-
const s = nr(), i =
|
|
762
|
+
const s = nr(), i = L.useRef(null), u = s ? (i.current || (i.current = new window.Image()), i.current) : null, [l, p] = L.useState(
|
|
751
763
|
() => ca(u, t)
|
|
752
764
|
);
|
|
753
765
|
return ut(() => {
|
|
@@ -763,40 +775,40 @@ function cr(t, { referrerPolicy: a, crossOrigin: n }) {
|
|
|
763
775
|
};
|
|
764
776
|
}, [u, n, a]), l;
|
|
765
777
|
}
|
|
766
|
-
var Pa =
|
|
767
|
-
const
|
|
778
|
+
var Pa = Ma, Ta = La, _a = ka;
|
|
779
|
+
const Mt = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
768
780
|
Pa,
|
|
769
781
|
{
|
|
770
782
|
ref: n,
|
|
771
|
-
className:
|
|
783
|
+
className: Y(
|
|
772
784
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
773
785
|
t
|
|
774
786
|
),
|
|
775
787
|
...a
|
|
776
788
|
}
|
|
777
789
|
));
|
|
778
|
-
|
|
779
|
-
const lr =
|
|
790
|
+
Mt.displayName = Pa.displayName;
|
|
791
|
+
const lr = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
780
792
|
Ta,
|
|
781
793
|
{
|
|
782
794
|
ref: n,
|
|
783
|
-
className:
|
|
795
|
+
className: Y("aspect-square h-full w-full", t),
|
|
784
796
|
...a
|
|
785
797
|
}
|
|
786
798
|
));
|
|
787
799
|
lr.displayName = Ta.displayName;
|
|
788
|
-
const
|
|
800
|
+
const At = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
789
801
|
_a,
|
|
790
802
|
{
|
|
791
803
|
ref: n,
|
|
792
|
-
className:
|
|
804
|
+
className: Y(
|
|
793
805
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
794
806
|
t
|
|
795
807
|
),
|
|
796
808
|
...a
|
|
797
809
|
}
|
|
798
810
|
));
|
|
799
|
-
|
|
811
|
+
At.displayName = _a.displayName;
|
|
800
812
|
function dr({
|
|
801
813
|
open: t,
|
|
802
814
|
onOpenChange: a,
|
|
@@ -839,7 +851,7 @@ function dr({
|
|
|
839
851
|
} catch (y) {
|
|
840
852
|
console.error("Failed to add members:", y);
|
|
841
853
|
}
|
|
842
|
-
},
|
|
854
|
+
}, W = async () => {
|
|
843
855
|
if (m.length !== 0)
|
|
844
856
|
try {
|
|
845
857
|
await E.mutateAsync({
|
|
@@ -915,14 +927,14 @@ function dr({
|
|
|
915
927
|
" selected"
|
|
916
928
|
] }),
|
|
917
929
|
/* @__PURE__ */ e(
|
|
918
|
-
|
|
930
|
+
A,
|
|
919
931
|
{
|
|
920
932
|
variant: "destructive",
|
|
921
933
|
size: "sm",
|
|
922
|
-
onClick:
|
|
934
|
+
onClick: W,
|
|
923
935
|
disabled: E.isPending,
|
|
924
936
|
children: E.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
925
|
-
/* @__PURE__ */ e(
|
|
937
|
+
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
926
938
|
"Removing..."
|
|
927
939
|
] }) : /* @__PURE__ */ c(T, { children: [
|
|
928
940
|
/* @__PURE__ */ e(va, { className: "mr-2 h-4 w-4" }),
|
|
@@ -946,7 +958,7 @@ function dr({
|
|
|
946
958
|
)
|
|
947
959
|
] }),
|
|
948
960
|
/* @__PURE__ */ e(mt, { className: "h-[300px]", children: w ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((y) => /* @__PURE__ */ e(ft, { className: "h-16 w-full" }, y)) }) : z.length === 0 ? /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
949
|
-
/* @__PURE__ */ e(
|
|
961
|
+
/* @__PURE__ */ e(bt, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
950
962
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
951
963
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "All eligible users are already members" })
|
|
952
964
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: z.map((y) => /* @__PURE__ */ e(
|
|
@@ -966,15 +978,15 @@ function dr({
|
|
|
966
978
|
" selected"
|
|
967
979
|
] }),
|
|
968
980
|
/* @__PURE__ */ e(
|
|
969
|
-
|
|
981
|
+
A,
|
|
970
982
|
{
|
|
971
983
|
onClick: B,
|
|
972
984
|
disabled: C.isPending,
|
|
973
985
|
children: C.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
974
|
-
/* @__PURE__ */ e(
|
|
986
|
+
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
975
987
|
"Adding..."
|
|
976
988
|
] }) : /* @__PURE__ */ c(T, { children: [
|
|
977
|
-
/* @__PURE__ */ e(
|
|
989
|
+
/* @__PURE__ */ e(bt, { className: "mr-2 h-4 w-4" }),
|
|
978
990
|
"Add Members"
|
|
979
991
|
] })
|
|
980
992
|
}
|
|
@@ -998,7 +1010,7 @@ function ur({
|
|
|
998
1010
|
onClick: n,
|
|
999
1011
|
children: [
|
|
1000
1012
|
/* @__PURE__ */ e(ba, { checked: a }),
|
|
1001
|
-
/* @__PURE__ */ e(
|
|
1013
|
+
/* @__PURE__ */ e(Mt, { className: "h-8 w-8", children: /* @__PURE__ */ e(At, { className: "text-xs", children: s }) }),
|
|
1002
1014
|
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
1003
1015
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: ((l = t.user) == null ? void 0 : l.name) || "Unknown User" }),
|
|
1004
1016
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: (p = t.user) == null ? void 0 : p.email })
|
|
@@ -1021,7 +1033,7 @@ function mr({
|
|
|
1021
1033
|
onClick: n,
|
|
1022
1034
|
children: [
|
|
1023
1035
|
/* @__PURE__ */ e(ba, { checked: a }),
|
|
1024
|
-
/* @__PURE__ */ e(
|
|
1036
|
+
/* @__PURE__ */ e(Mt, { className: "h-8 w-8", children: /* @__PURE__ */ e(At, { className: "text-xs", children: s }) }),
|
|
1025
1037
|
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
1026
1038
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: t.name }),
|
|
1027
1039
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: t.email })
|
|
@@ -1158,13 +1170,13 @@ function hr({
|
|
|
1158
1170
|
/* @__PURE__ */ c(Da, { children: [
|
|
1159
1171
|
/* @__PURE__ */ e(Ca, { children: "Cancel" }),
|
|
1160
1172
|
/* @__PURE__ */ e(
|
|
1161
|
-
|
|
1173
|
+
gt,
|
|
1162
1174
|
{
|
|
1163
1175
|
onClick: I,
|
|
1164
1176
|
disabled: r.isPending,
|
|
1165
1177
|
className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
1166
1178
|
children: r.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
1167
|
-
/* @__PURE__ */ e(
|
|
1179
|
+
/* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
1168
1180
|
"Deleting…"
|
|
1169
1181
|
] }) : "Delete group"
|
|
1170
1182
|
}
|
|
@@ -1201,7 +1213,7 @@ function pr({
|
|
|
1201
1213
|
] }),
|
|
1202
1214
|
/* @__PURE__ */ c("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
1203
1215
|
/* @__PURE__ */ e(
|
|
1204
|
-
|
|
1216
|
+
A,
|
|
1205
1217
|
{
|
|
1206
1218
|
variant: "ghost",
|
|
1207
1219
|
size: "xs",
|
|
@@ -1209,11 +1221,11 @@ function pr({
|
|
|
1209
1221
|
onClick: a,
|
|
1210
1222
|
title: "Manage members",
|
|
1211
1223
|
"aria-label": "Manage members",
|
|
1212
|
-
children: /* @__PURE__ */ e(
|
|
1224
|
+
children: /* @__PURE__ */ e(bt, { className: "h-3.5 w-3.5" })
|
|
1213
1225
|
}
|
|
1214
1226
|
),
|
|
1215
1227
|
i && /* @__PURE__ */ e(
|
|
1216
|
-
|
|
1228
|
+
A,
|
|
1217
1229
|
{
|
|
1218
1230
|
variant: "ghost",
|
|
1219
1231
|
size: "xs",
|
|
@@ -1380,7 +1392,7 @@ function vr({
|
|
|
1380
1392
|
}
|
|
1381
1393
|
v(!1);
|
|
1382
1394
|
}, [s, i, v]), I = Fe(
|
|
1383
|
-
(x, B,
|
|
1395
|
+
(x, B, W) => {
|
|
1384
1396
|
!r || !(d != null && d.document) || h(
|
|
1385
1397
|
Nr({
|
|
1386
1398
|
allInputs: m.inputs || [],
|
|
@@ -1388,7 +1400,7 @@ function vr({
|
|
|
1388
1400
|
currentDocumentInputs: b,
|
|
1389
1401
|
nextControls: x,
|
|
1390
1402
|
nextDefaultValues: B,
|
|
1391
|
-
change:
|
|
1403
|
+
change: W
|
|
1392
1404
|
})
|
|
1393
1405
|
);
|
|
1394
1406
|
},
|
|
@@ -1510,8 +1522,8 @@ function Nr({
|
|
|
1510
1522
|
}
|
|
1511
1523
|
function la(t, a) {
|
|
1512
1524
|
return {
|
|
1513
|
-
dashboard:
|
|
1514
|
-
semanticExecutionPayload:
|
|
1525
|
+
dashboard: vt(t),
|
|
1526
|
+
semanticExecutionPayload: vt(a)
|
|
1515
1527
|
};
|
|
1516
1528
|
}
|
|
1517
1529
|
function Rr() {
|
|
@@ -1527,7 +1539,7 @@ function Rr() {
|
|
|
1527
1539
|
(o) => o.id === b
|
|
1528
1540
|
), w = ms(D), C = w ? (Wt = D == null ? void 0 : D.document) == null ? void 0 : Wt.page : void 0, E = S(
|
|
1529
1541
|
(o) => o.isDashboardEditing
|
|
1530
|
-
), { setDashboardTitle: O } = S((o) => o.actions), [I, V] = N(!1), [z, x] = N(!1), [B,
|
|
1542
|
+
), { setDashboardTitle: O } = S((o) => o.actions), [I, V] = N(!1), [z, x] = N(!1), [B, W] = N(!1), [Z, ee] = N(!1), [y, k] = N(!1), [G, H] = N(!1), [me, te] = N(!1), [Ua, Lt] = N(!1), [He, he] = N(null), [Fa, pe] = N(!1), [fe, ge] = N(null), [Ot, ve] = N([]), [kt, be] = N(!1), Ra = S((o) => o.isDashboardPanelOpen), Ga = S(
|
|
1531
1543
|
(o) => o.actions.setIsDashboardPanelOpen
|
|
1532
1544
|
), $a = S((o) => o.filterValues), _ = S((o) => o.isVisualEditing);
|
|
1533
1545
|
ta((o) => o.card);
|
|
@@ -1547,9 +1559,9 @@ function Rr() {
|
|
|
1547
1559
|
setShowDashboardJSON: Rt
|
|
1548
1560
|
} = S((o) => o.actions), { setInitialDashboard: Gt, clearSelectedDashboard: Ke } = ke(
|
|
1549
1561
|
(o) => o.actions
|
|
1550
|
-
), { resources: Se } = zs(nt.DASHBOARD), { data: Qe } = qs(), Va = ((Xt = Qe == null ? void 0 : Qe.preference) == null ? void 0 : Xt.defaultDashboardId) || null, { mutate: za, isPending: qa } = Bs(), { currentUser: Ba } = Dt(), Ha = Hs(Ba),
|
|
1551
|
-
id:
|
|
1552
|
-
title: (r == null ? void 0 : r.title) ||
|
|
1562
|
+
), { resources: Se } = zs(nt.DASHBOARD), { data: Qe } = qs(), Va = ((Xt = Qe == null ? void 0 : Qe.preference) == null ? void 0 : Xt.defaultDashboardId) || null, { mutate: za, isPending: qa } = Bs(), { currentUser: Ba } = Dt(), Ha = Hs(Ba), J = ae || ye, $t = J ? {
|
|
1563
|
+
id: J.id,
|
|
1564
|
+
title: (r == null ? void 0 : r.title) || J.title || "Dashboard"
|
|
1553
1565
|
} : null, { handleAddNewFrame: ja } = js(), [We, Je] = N(!1), [Ka, se] = N(!1), [Ye, we] = N("close"), ne = Ks(nt.DASHBOARD), [R, De] = N(null), Vt = Fe((o) => {
|
|
1554
1566
|
window.setTimeout(() => {
|
|
1555
1567
|
he(o);
|
|
@@ -1570,10 +1582,10 @@ function Rr() {
|
|
|
1570
1582
|
},
|
|
1571
1583
|
{
|
|
1572
1584
|
onSuccess: () => {
|
|
1573
|
-
console.log("Dashboard title updated successfully"),
|
|
1585
|
+
console.log("Dashboard title updated successfully"), M.success("Dashboard title updated");
|
|
1574
1586
|
},
|
|
1575
1587
|
onError: (q) => {
|
|
1576
|
-
console.error("Failed to update dashboard title:", q),
|
|
1588
|
+
console.error("Failed to update dashboard title:", q), M.error("Failed to update dashboard title"), O(P);
|
|
1577
1589
|
}
|
|
1578
1590
|
}
|
|
1579
1591
|
);
|
|
@@ -1668,7 +1680,7 @@ function Rr() {
|
|
|
1668
1680
|
return;
|
|
1669
1681
|
const q = (o == null ? void 0 : o.closeAfterSave) ?? kt, os = (o == null ? void 0 : o.navigateHomeAfterSave) ?? !1;
|
|
1670
1682
|
be(q), q && se(!1);
|
|
1671
|
-
const is =
|
|
1683
|
+
const is = vt(P);
|
|
1672
1684
|
pe(!0), ge(null), ve([]), Je(!0);
|
|
1673
1685
|
const cs = {
|
|
1674
1686
|
template: P
|
|
@@ -1680,15 +1692,15 @@ function Rr() {
|
|
|
1680
1692
|
},
|
|
1681
1693
|
{
|
|
1682
1694
|
onSuccess: (U) => {
|
|
1683
|
-
var
|
|
1684
|
-
const K = (U == null ? void 0 : U.id) || ((
|
|
1695
|
+
var Ae, Le, ea;
|
|
1696
|
+
const K = (U == null ? void 0 : U.id) || ((Ae = U == null ? void 0 : U.dashboard) == null ? void 0 : Ae.id) || ((Le = U == null ? void 0 : U.resource) == null ? void 0 : Le.id) || ((ea = U == null ? void 0 : U.template) == null ? void 0 : ea.id) || null;
|
|
1685
1697
|
if (!P.id && K) {
|
|
1686
1698
|
const st = bs.getState(), Oe = st.pendingDashboardDraftMigration;
|
|
1687
1699
|
(Oe == null ? void 0 : Oe.scopeKey) === m ? st.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1688
1700
|
K
|
|
1689
1701
|
) : Oe && st.actions.clearPendingDashboardDraftMigration();
|
|
1690
1702
|
}
|
|
1691
|
-
Je(!1),
|
|
1703
|
+
Je(!1), M.success("Dashboard saved!"), De(
|
|
1692
1704
|
la(
|
|
1693
1705
|
is,
|
|
1694
1706
|
S.getState().semanticExecutionPayload
|
|
@@ -1697,17 +1709,17 @@ function Rr() {
|
|
|
1697
1709
|
},
|
|
1698
1710
|
onError: (U) => {
|
|
1699
1711
|
Je(!1), ge("Failed to save dashboard. Please try again.");
|
|
1700
|
-
const K = U.details,
|
|
1712
|
+
const K = U.details, Ae = Array.isArray(
|
|
1701
1713
|
K == null ? void 0 : K.errors
|
|
1702
1714
|
) ? (K.errors || []).filter(
|
|
1703
|
-
(
|
|
1715
|
+
(Le) => typeof Le == "string"
|
|
1704
1716
|
) : [];
|
|
1705
1717
|
ve(
|
|
1706
1718
|
fr({
|
|
1707
|
-
errors:
|
|
1719
|
+
errors: Ae,
|
|
1708
1720
|
dashboard: P || void 0
|
|
1709
1721
|
})
|
|
1710
|
-
),
|
|
1722
|
+
), M.error("Failed to save dashboard");
|
|
1711
1723
|
}
|
|
1712
1724
|
}
|
|
1713
1725
|
);
|
|
@@ -1728,7 +1740,7 @@ function Rr() {
|
|
|
1728
1740
|
a.apiServiceUrl,
|
|
1729
1741
|
q,
|
|
1730
1742
|
t == null ? void 0 : t.accessToken
|
|
1731
|
-
),
|
|
1743
|
+
), M.success("Lens saved"), je == null || je(o), V(!1);
|
|
1732
1744
|
}
|
|
1733
1745
|
const jt = (d == null ? void 0 : d.name) || r.title, oe = !!(r != null && r.id);
|
|
1734
1746
|
ne.isPending && console.log("Title during update:", {
|
|
@@ -1741,9 +1753,9 @@ function Rr() {
|
|
|
1741
1753
|
ot(() => {
|
|
1742
1754
|
!oe && Z && ee(!1);
|
|
1743
1755
|
}, [oe, Z]);
|
|
1744
|
-
const ns = l, ie = (r == null ? void 0 : r.id) || null,
|
|
1756
|
+
const ns = l, ie = (r == null ? void 0 : r.id) || null, Me = !!ie && Va === ie, rs = () => {
|
|
1745
1757
|
ie && za({
|
|
1746
|
-
dashboardId:
|
|
1758
|
+
dashboardId: Me ? null : ie
|
|
1747
1759
|
});
|
|
1748
1760
|
};
|
|
1749
1761
|
return /* @__PURE__ */ c(
|
|
@@ -1810,26 +1822,26 @@ function Rr() {
|
|
|
1810
1822
|
),
|
|
1811
1823
|
ss && ie && /* @__PURE__ */ e(hs, { children: /* @__PURE__ */ c(ps, { children: [
|
|
1812
1824
|
/* @__PURE__ */ e(fs, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1813
|
-
|
|
1825
|
+
A,
|
|
1814
1826
|
{
|
|
1815
1827
|
variant: "ghost",
|
|
1816
1828
|
size: "xs",
|
|
1817
1829
|
onClick: rs,
|
|
1818
1830
|
disabled: qa || !(t != null && t.accessToken) || !(a != null && a.apiServiceUrl),
|
|
1819
1831
|
className: "w-7 px-0",
|
|
1820
|
-
"aria-label":
|
|
1832
|
+
"aria-label": Me ? "Remove as default dashboard" : "Make this a default dashboard",
|
|
1821
1833
|
children: /* @__PURE__ */ e(
|
|
1822
1834
|
Ws,
|
|
1823
1835
|
{
|
|
1824
|
-
className:
|
|
1836
|
+
className: Y(
|
|
1825
1837
|
"h-3.5 w-3.5 transition-colors",
|
|
1826
|
-
|
|
1838
|
+
Me ? "fill-foreground text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
1827
1839
|
)
|
|
1828
1840
|
}
|
|
1829
1841
|
)
|
|
1830
1842
|
}
|
|
1831
1843
|
) }),
|
|
1832
|
-
/* @__PURE__ */ e(gs, { children: /* @__PURE__ */ e("p", { children:
|
|
1844
|
+
/* @__PURE__ */ e(gs, { children: /* @__PURE__ */ e("p", { children: Me ? "Remove as default dashboard" : "Make this a default dashboard" }) })
|
|
1833
1845
|
] }) })
|
|
1834
1846
|
] }))
|
|
1835
1847
|
] }),
|
|
@@ -1838,8 +1850,8 @@ function Rr() {
|
|
|
1838
1850
|
/* @__PURE__ */ e(gn, {}),
|
|
1839
1851
|
/* @__PURE__ */ e(vn, {})
|
|
1840
1852
|
] }),
|
|
1841
|
-
!_ && l && ((Zt =
|
|
1842
|
-
|
|
1853
|
+
!_ && l && ((Zt = J == null ? void 0 : J.permissions) == null ? void 0 : Zt.canShare) && /* @__PURE__ */ c(
|
|
1854
|
+
A,
|
|
1843
1855
|
{
|
|
1844
1856
|
variant: "outline",
|
|
1845
1857
|
size: "xs",
|
|
@@ -1895,7 +1907,7 @@ function Rr() {
|
|
|
1895
1907
|
}
|
|
1896
1908
|
) : null,
|
|
1897
1909
|
E && !_ && re && d && s && l && /* @__PURE__ */ c(
|
|
1898
|
-
|
|
1910
|
+
A,
|
|
1899
1911
|
{
|
|
1900
1912
|
variant: "secondary",
|
|
1901
1913
|
size: "xs",
|
|
@@ -1908,7 +1920,7 @@ function Rr() {
|
|
|
1908
1920
|
}
|
|
1909
1921
|
),
|
|
1910
1922
|
E && !_ && l && !w && /* @__PURE__ */ c(
|
|
1911
|
-
|
|
1923
|
+
A,
|
|
1912
1924
|
{
|
|
1913
1925
|
variant: "outline",
|
|
1914
1926
|
size: "xs",
|
|
@@ -1920,12 +1932,12 @@ function Rr() {
|
|
|
1920
1932
|
]
|
|
1921
1933
|
}
|
|
1922
1934
|
),
|
|
1923
|
-
!_ && !E && xe && l && /* @__PURE__ */ c(
|
|
1935
|
+
!_ && !E && xe && l && /* @__PURE__ */ c(A, { size: "xs", onClick: Wa, children: [
|
|
1924
1936
|
/* @__PURE__ */ e(Ys, { className: "h-3.5 w-3.5" }),
|
|
1925
1937
|
"Edit"
|
|
1926
1938
|
] }),
|
|
1927
1939
|
zt && l && qt && /* @__PURE__ */ c(
|
|
1928
|
-
|
|
1940
|
+
A,
|
|
1929
1941
|
{
|
|
1930
1942
|
variant: "outline",
|
|
1931
1943
|
size: "xs",
|
|
@@ -1938,19 +1950,19 @@ function Rr() {
|
|
|
1938
1950
|
}
|
|
1939
1951
|
),
|
|
1940
1952
|
zt && l && /* @__PURE__ */ c(
|
|
1941
|
-
|
|
1953
|
+
A,
|
|
1942
1954
|
{
|
|
1943
1955
|
size: "xs",
|
|
1944
|
-
className:
|
|
1956
|
+
className: Y(!Ht && "opacity-60"),
|
|
1945
1957
|
disabled: Ie || !Ht,
|
|
1946
1958
|
onClick: () => at(),
|
|
1947
1959
|
children: [
|
|
1948
|
-
Ie ? /* @__PURE__ */ e(
|
|
1960
|
+
Ie ? /* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(na, { className: "h-3.5 w-3.5" }),
|
|
1949
1961
|
Ie ? "Saving..." : "Save"
|
|
1950
1962
|
]
|
|
1951
1963
|
}
|
|
1952
1964
|
),
|
|
1953
|
-
E && !_ && l && /* @__PURE__ */ c(
|
|
1965
|
+
E && !_ && l && /* @__PURE__ */ c(A, { variant: "outline", size: "xs", onClick: Ya, children: [
|
|
1954
1966
|
/* @__PURE__ */ e(ga, { className: "h-3.5 w-3.5" }),
|
|
1955
1967
|
"Close"
|
|
1956
1968
|
] }),
|
|
@@ -1981,7 +1993,7 @@ function Rr() {
|
|
|
1981
1993
|
$,
|
|
1982
1994
|
{
|
|
1983
1995
|
disabled: v,
|
|
1984
|
-
onSelect: () =>
|
|
1996
|
+
onSelect: () => Lt(!0),
|
|
1985
1997
|
children: [
|
|
1986
1998
|
/* @__PURE__ */ e(sn, { className: "h-3.5 w-3.5" }),
|
|
1987
1999
|
"Export"
|
|
@@ -2007,7 +2019,7 @@ function Rr() {
|
|
|
2007
2019
|
/* @__PURE__ */ c(
|
|
2008
2020
|
$,
|
|
2009
2021
|
{
|
|
2010
|
-
onClick: () =>
|
|
2022
|
+
onClick: () => W(!0),
|
|
2011
2023
|
children: [
|
|
2012
2024
|
/* @__PURE__ */ e(Ct, { className: "h-3.5 w-3.5" }),
|
|
2013
2025
|
"Manage Groups"
|
|
@@ -2034,8 +2046,8 @@ function Rr() {
|
|
|
2034
2046
|
onSelect: () => {
|
|
2035
2047
|
var o;
|
|
2036
2048
|
t != null && t.accessToken && ((o = navigator == null ? void 0 : navigator.clipboard) != null && o.writeText ? navigator.clipboard.writeText(t.accessToken).then(
|
|
2037
|
-
() =>
|
|
2038
|
-
).catch(() =>
|
|
2049
|
+
() => M.success("Token copied to clipboard")
|
|
2050
|
+
).catch(() => M.error("Unable to copy token")) : M.error("Clipboard not available"));
|
|
2039
2051
|
},
|
|
2040
2052
|
children: [
|
|
2041
2053
|
/* @__PURE__ */ e(sa, { className: "h-3.5 w-3.5" }),
|
|
@@ -2050,20 +2062,20 @@ function Rr() {
|
|
|
2050
2062
|
onSelect: () => {
|
|
2051
2063
|
var o;
|
|
2052
2064
|
if (!Xe) {
|
|
2053
|
-
|
|
2065
|
+
M.error(
|
|
2054
2066
|
"Open a document sheet with a token to copy the local PDF URL"
|
|
2055
2067
|
);
|
|
2056
2068
|
return;
|
|
2057
2069
|
}
|
|
2058
2070
|
(o = navigator == null ? void 0 : navigator.clipboard) != null && o.writeText ? navigator.clipboard.writeText(Xe).then(
|
|
2059
|
-
() =>
|
|
2071
|
+
() => M.success(
|
|
2060
2072
|
"Local document PDF URL copied to clipboard"
|
|
2061
2073
|
)
|
|
2062
2074
|
).catch(
|
|
2063
|
-
() =>
|
|
2075
|
+
() => M.error(
|
|
2064
2076
|
"Unable to copy local document PDF URL"
|
|
2065
2077
|
)
|
|
2066
|
-
) :
|
|
2078
|
+
) : M.error("Clipboard not available");
|
|
2067
2079
|
},
|
|
2068
2080
|
children: [
|
|
2069
2081
|
/* @__PURE__ */ e(sa, { className: "h-3.5 w-3.5" }),
|
|
@@ -2082,7 +2094,7 @@ function Rr() {
|
|
|
2082
2094
|
}
|
|
2083
2095
|
),
|
|
2084
2096
|
/* @__PURE__ */ c($, { onSelect: i, children: [
|
|
2085
|
-
/* @__PURE__ */ e(
|
|
2097
|
+
/* @__PURE__ */ e(Mn, { className: "h-3.5 w-3.5" }),
|
|
2086
2098
|
"Brand Studio"
|
|
2087
2099
|
] }),
|
|
2088
2100
|
E && /* @__PURE__ */ c(
|
|
@@ -2090,7 +2102,7 @@ function Rr() {
|
|
|
2090
2102
|
{
|
|
2091
2103
|
onSelect: () => Rt(!Tt),
|
|
2092
2104
|
children: [
|
|
2093
|
-
/* @__PURE__ */ e(
|
|
2105
|
+
/* @__PURE__ */ e(An, { className: "h-3.5 w-3.5" }),
|
|
2094
2106
|
Tt ? "Hide dashboard JSON" : "Show dashboard JSON"
|
|
2095
2107
|
]
|
|
2096
2108
|
}
|
|
@@ -2101,7 +2113,7 @@ function Rr() {
|
|
|
2101
2113
|
] }),
|
|
2102
2114
|
re && /* @__PURE__ */ c(cn, { children: [
|
|
2103
2115
|
/* @__PURE__ */ c(ln, { children: [
|
|
2104
|
-
/* @__PURE__ */ e(
|
|
2116
|
+
/* @__PURE__ */ e(Ln, { className: "h-3.5 w-3.5" }),
|
|
2105
2117
|
"Lenses"
|
|
2106
2118
|
] }),
|
|
2107
2119
|
/* @__PURE__ */ e(dn, { className: "w-60", children: /* @__PURE__ */ e(Bn, {}) })
|
|
@@ -2123,7 +2135,7 @@ function Rr() {
|
|
|
2123
2135
|
hr,
|
|
2124
2136
|
{
|
|
2125
2137
|
open: B,
|
|
2126
|
-
onOpenChange:
|
|
2138
|
+
onOpenChange: W
|
|
2127
2139
|
}
|
|
2128
2140
|
),
|
|
2129
2141
|
oe && (r == null ? void 0 : r.id) && /* @__PURE__ */ e(
|
|
@@ -2165,7 +2177,7 @@ function Rr() {
|
|
|
2165
2177
|
hn,
|
|
2166
2178
|
{
|
|
2167
2179
|
open: Ua,
|
|
2168
|
-
onOpenChange:
|
|
2180
|
+
onOpenChange: Lt
|
|
2169
2181
|
}
|
|
2170
2182
|
),
|
|
2171
2183
|
/* @__PURE__ */ e(
|
|
@@ -2196,7 +2208,7 @@ function Rr() {
|
|
|
2196
2208
|
}
|
|
2197
2209
|
),
|
|
2198
2210
|
/* @__PURE__ */ e(
|
|
2199
|
-
|
|
2211
|
+
gt,
|
|
2200
2212
|
{
|
|
2201
2213
|
onClick: () => at({
|
|
2202
2214
|
closeAfterSave: kt,
|
|
@@ -2206,8 +2218,8 @@ function Rr() {
|
|
|
2206
2218
|
children: "Retry"
|
|
2207
2219
|
}
|
|
2208
2220
|
)
|
|
2209
|
-
] }) : /* @__PURE__ */ c(
|
|
2210
|
-
/* @__PURE__ */ e(
|
|
2221
|
+
] }) : /* @__PURE__ */ c(gt, { disabled: !0, className: "m-0 cursor-default", children: [
|
|
2222
|
+
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
2211
2223
|
"Saving..."
|
|
2212
2224
|
] }) })
|
|
2213
2225
|
] })
|