react-semaphor 0.1.305 → 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 +2 -2
- package/dist/brand-studio/index.js +14 -14
- package/dist/chunks/braces-CkL8POe0.js +6 -0
- package/dist/chunks/braces-e5qkN-I_.js +23 -0
- package/dist/chunks/{dashboard-controls-DjOO0fkG.js → dashboard-controls-5bibC_5a.js} +141 -128
- package/dist/chunks/dashboard-controls-Dwet_9h0.js +52 -0
- package/dist/chunks/{dashboard-filter-controls-button-YvRfoUuN.js → dashboard-filter-controls-button-D0k9NDci.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-CR0_duPw.js → dashboard-filter-controls-button-ZeYO5jux.js} +1 -1
- package/dist/chunks/{dashboard-json-tOsNVccY.js → dashboard-json-Bi5XdgG5.js} +1 -1
- package/dist/chunks/{dashboard-json-BYLaWi0-.js → dashboard-json-CfRKLL7C.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-CMxi2arh.js → dashboard-summary-settings-dialog-Bj4_wBW9.js} +2 -2
- package/dist/chunks/{dashboard-summary-settings-dialog-DioOegLQ.js → dashboard-summary-settings-dialog-DD9Aj2XH.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-ClLcFLD_.js → edit-dashboard-visual-DIuzuJfj.js} +8796 -8713
- package/dist/chunks/edit-dashboard-visual-Wfs53Kbn.js +183 -0
- package/dist/chunks/{index-DJFckbGE.js → index-DMFCfjgD.js} +52348 -49752
- package/dist/chunks/index-DQCMUspd.js +1350 -0
- package/dist/chunks/{palette-BqJlrRto.js → palette-D5Lorzf2.js} +2 -7
- package/dist/chunks/{palette-DD-i7bNS.js → palette-Oa4O9jWG.js} +3 -23
- package/dist/chunks/{resource-management-panel-CoHy6cOi.js → resource-management-panel-CNr6uMMf.js} +1 -1
- package/dist/chunks/{resource-management-panel-BS9nfJbb.js → resource-management-panel-Dqc3gfYn.js} +3 -3
- package/dist/chunks/{save-j-clxFtx.js → save-CDX2p4v1.js} +1 -1
- package/dist/chunks/{save-CFBIhbHD.js → save-zEdICevW.js} +1 -1
- package/dist/chunks/{switch-BH17qlxH.js → switch-BPFzGTzF.js} +34 -29
- package/dist/chunks/{switch-BFhVVwh9.js → switch-CKiXRRoh.js} +432 -390
- package/dist/chunks/{use-create-flow-overlay-state-Lmk-mIkA.js → use-create-flow-overlay-state-CLyv5c2m.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-BSUi4chy.js → use-create-flow-overlay-state-CSMe5Ls6.js} +1 -1
- package/dist/chunks/{use-visual-utils-CR9nLyEz.js → use-visual-utils-DDAs4dCz.js} +1 -1
- package/dist/chunks/{use-visual-utils-CikIkKb2.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/dashboard.d.ts +142 -44
- package/dist/types/main.d.ts +144 -46
- package/dist/types/shared.d.ts +142 -44
- package/dist/types/surfboard.d.ts +142 -44
- package/dist/types/types.d.ts +142 -44
- package/package.json +4 -4
- package/dist/chunks/dashboard-controls-BcwXajYv.js +0 -47
- package/dist/chunks/edit-dashboard-visual-331vOmKT.js +0 -183
- package/dist/chunks/index-BOGpMmRo.js +0 -1360
- package/dist/chunks/rotate-ccw-CdGW8Rxm.js +0 -6
- package/dist/chunks/rotate-ccw-X8MbX_hF.js +0 -14
|
@@ -1,25 +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
|
|
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";
|
|
16
17
|
/**
|
|
17
18
|
* @license lucide-react v0.453.0 - ISC
|
|
18
19
|
*
|
|
19
20
|
* This source code is licensed under the ISC license.
|
|
20
21
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
22
|
*/
|
|
22
|
-
const
|
|
23
|
+
const Ln = Q("Glasses", [
|
|
23
24
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
24
25
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
25
26
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -32,7 +33,7 @@ const Mn = X("Glasses", [
|
|
|
32
33
|
* This source code is licensed under the ISC license.
|
|
33
34
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
35
|
*/
|
|
35
|
-
const On =
|
|
36
|
+
const On = Q("Menu", [
|
|
36
37
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
37
38
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
38
39
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -43,7 +44,7 @@ const On = X("Menu", [
|
|
|
43
44
|
* This source code is licensed under the ISC license.
|
|
44
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
45
46
|
*/
|
|
46
|
-
const kn =
|
|
47
|
+
const kn = Q("Monitor", [
|
|
47
48
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
48
49
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
49
50
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
@@ -54,7 +55,7 @@ const kn = X("Monitor", [
|
|
|
54
55
|
* This source code is licensed under the ISC license.
|
|
55
56
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
57
|
*/
|
|
57
|
-
const Pn =
|
|
58
|
+
const Pn = Q("Moon", [
|
|
58
59
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
59
60
|
]);
|
|
60
61
|
/**
|
|
@@ -63,7 +64,7 @@ const Pn = X("Moon", [
|
|
|
63
64
|
* This source code is licensed under the ISC license.
|
|
64
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
65
66
|
*/
|
|
66
|
-
const Tn =
|
|
67
|
+
const Tn = Q("ShieldX", [
|
|
67
68
|
[
|
|
68
69
|
"path",
|
|
69
70
|
{
|
|
@@ -80,7 +81,7 @@ const Tn = X("ShieldX", [
|
|
|
80
81
|
* This source code is licensed under the ISC license.
|
|
81
82
|
* See the LICENSE file in the root directory of this source tree.
|
|
82
83
|
*/
|
|
83
|
-
const _n =
|
|
84
|
+
const _n = Q("Sun", [
|
|
84
85
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
85
86
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
86
87
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -91,6 +92,18 @@ const _n = X("Sun", [
|
|
|
91
92
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
92
93
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
93
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
|
+
]);
|
|
94
107
|
var yt = { exports: {} }, ct = {};
|
|
95
108
|
/**
|
|
96
109
|
* @license React
|
|
@@ -218,7 +231,7 @@ function Gn() {
|
|
|
218
231
|
}
|
|
219
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)";
|
|
220
233
|
return /* @__PURE__ */ e(
|
|
221
|
-
|
|
234
|
+
A,
|
|
222
235
|
{
|
|
223
236
|
type: "button",
|
|
224
237
|
variant: "ghost",
|
|
@@ -284,7 +297,7 @@ function qn({
|
|
|
284
297
|
I && (p([...l || [], I]), g(I.id), b(!1)), m(!1);
|
|
285
298
|
}
|
|
286
299
|
return /* @__PURE__ */ c(Ge, { open: r, onOpenChange: b, children: [
|
|
287
|
-
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: [
|
|
288
301
|
/* @__PURE__ */ e(ht, { className: "h-3.5 w-3.5" }),
|
|
289
302
|
"Lens"
|
|
290
303
|
] }) }),
|
|
@@ -308,9 +321,9 @@ function qn({
|
|
|
308
321
|
i && /* @__PURE__ */ e("p", { className: "text-[12px] text-destructive", children: "A lens with this name already exists. Pick a different one." })
|
|
309
322
|
] }),
|
|
310
323
|
/* @__PURE__ */ c(Ns, { children: [
|
|
311
|
-
/* @__PURE__ */ e(
|
|
324
|
+
/* @__PURE__ */ e(A, { variant: "outline", size: "xs", onClick: () => b(!1), children: "Cancel" }),
|
|
312
325
|
/* @__PURE__ */ e(
|
|
313
|
-
|
|
326
|
+
A,
|
|
314
327
|
{
|
|
315
328
|
size: "xs",
|
|
316
329
|
type: "submit",
|
|
@@ -383,7 +396,7 @@ function Bn({ includeLabel: t = !1 } = {}) {
|
|
|
383
396
|
onClick: (f) => {
|
|
384
397
|
f.preventDefault(), v(m);
|
|
385
398
|
},
|
|
386
|
-
className:
|
|
399
|
+
className: Y(
|
|
387
400
|
"size-3.5 text-muted-foreground hover:cursor-pointer hover:text-foreground group-hover:visible",
|
|
388
401
|
{
|
|
389
402
|
invisible: !m.isDefault,
|
|
@@ -421,8 +434,8 @@ function Hn() {
|
|
|
421
434
|
() => {
|
|
422
435
|
var p, g, v, m, f;
|
|
423
436
|
return {
|
|
424
|
-
canEdit: ((p = s == null ? void 0 : s.permissions) == null ? void 0 : p.canEdit) ??
|
|
425
|
-
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),
|
|
426
439
|
canManageDashboards: ((v = s == null ? void 0 : s.permissions) == null ? void 0 : v.canCreateDashboard) ?? Is(n),
|
|
427
440
|
canCreateDashboards: ((m = s == null ? void 0 : s.permissions) == null ? void 0 : m.canCreateDashboard) ?? Es(n),
|
|
428
441
|
canAccessVisuals: ((f = s == null ? void 0 : s.permissions) == null ? void 0 : f.canEdit) ?? Cs(n)
|
|
@@ -455,10 +468,10 @@ function Jn() {
|
|
|
455
468
|
return Be({
|
|
456
469
|
mutationFn: (s) => jn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
|
|
457
470
|
onSuccess: () => {
|
|
458
|
-
n.invalidateQueries({ queryKey: ["groups"] }),
|
|
471
|
+
n.invalidateQueries({ queryKey: ["groups"] }), M.success("Group created successfully");
|
|
459
472
|
},
|
|
460
473
|
onError: (s) => {
|
|
461
|
-
console.error("Failed to create group:", s),
|
|
474
|
+
console.error("Failed to create group:", s), M.error("Failed to create group", {
|
|
462
475
|
description: Re(s, "Failed to create group")
|
|
463
476
|
});
|
|
464
477
|
}
|
|
@@ -469,10 +482,10 @@ function Yn() {
|
|
|
469
482
|
return Be({
|
|
470
483
|
mutationFn: (s) => Kn(a.apiServiceUrl, (t == null ? void 0 : t.accessToken) || "", s),
|
|
471
484
|
onSuccess: (s, i) => {
|
|
472
|
-
n.invalidateQueries({ queryKey: ["groups"] }), n.removeQueries({ queryKey: ["group", i] }),
|
|
485
|
+
n.invalidateQueries({ queryKey: ["groups"] }), n.removeQueries({ queryKey: ["group", i] }), M.success("Group deleted successfully");
|
|
473
486
|
},
|
|
474
487
|
onError: (s) => {
|
|
475
|
-
console.error("Failed to delete group:", s),
|
|
488
|
+
console.error("Failed to delete group:", s), M.error("Failed to delete group", {
|
|
476
489
|
description: Re(s, "Failed to delete group")
|
|
477
490
|
});
|
|
478
491
|
}
|
|
@@ -488,10 +501,10 @@ function Xn() {
|
|
|
488
501
|
onSuccess: (s, i) => {
|
|
489
502
|
n.invalidateQueries({ queryKey: ["group", i.groupId] }), n.invalidateQueries({
|
|
490
503
|
queryKey: ["group-members", i.groupId]
|
|
491
|
-
}), n.invalidateQueries({ queryKey: ["groups"] }),
|
|
504
|
+
}), n.invalidateQueries({ queryKey: ["groups"] }), M.success("Members added successfully");
|
|
492
505
|
},
|
|
493
506
|
onError: (s) => {
|
|
494
|
-
console.error("Failed to add group members:", s),
|
|
507
|
+
console.error("Failed to add group members:", s), M.error("Failed to add members", {
|
|
495
508
|
description: Re(s, "Failed to add members")
|
|
496
509
|
});
|
|
497
510
|
}
|
|
@@ -507,10 +520,10 @@ function Zn() {
|
|
|
507
520
|
onSuccess: (s, i) => {
|
|
508
521
|
n.invalidateQueries({ queryKey: ["group", i.groupId] }), n.invalidateQueries({
|
|
509
522
|
queryKey: ["group-members", i.groupId]
|
|
510
|
-
}), n.invalidateQueries({ queryKey: ["groups"] }),
|
|
523
|
+
}), n.invalidateQueries({ queryKey: ["groups"] }), M.success("Members removed successfully");
|
|
511
524
|
},
|
|
512
525
|
onError: (s) => {
|
|
513
|
-
console.error("Failed to remove group members:", s),
|
|
526
|
+
console.error("Failed to remove group members:", s), M.error("Failed to remove members", {
|
|
514
527
|
description: Re(s, "Failed to remove members")
|
|
515
528
|
});
|
|
516
529
|
}
|
|
@@ -564,7 +577,7 @@ function er({
|
|
|
564
577
|
/* @__PURE__ */ c("div", { className: "space-y-1.5", children: [
|
|
565
578
|
/* @__PURE__ */ e(dt, { htmlFor: "group-description", className: ia, children: "Description (optional)" }),
|
|
566
579
|
/* @__PURE__ */ e(
|
|
567
|
-
|
|
580
|
+
Ls,
|
|
568
581
|
{
|
|
569
582
|
id: "group-description",
|
|
570
583
|
placeholder: "Describe the purpose of this group…",
|
|
@@ -588,7 +601,7 @@ function er({
|
|
|
588
601
|
] }),
|
|
589
602
|
/* @__PURE__ */ c("div", { className: "flex justify-end gap-1.5 pt-1", children: [
|
|
590
603
|
/* @__PURE__ */ e(
|
|
591
|
-
|
|
604
|
+
A,
|
|
592
605
|
{
|
|
593
606
|
type: "button",
|
|
594
607
|
variant: "outline",
|
|
@@ -601,13 +614,13 @@ function er({
|
|
|
601
614
|
}
|
|
602
615
|
),
|
|
603
616
|
/* @__PURE__ */ e(
|
|
604
|
-
|
|
617
|
+
A,
|
|
605
618
|
{
|
|
606
619
|
type: "submit",
|
|
607
620
|
size: "xs",
|
|
608
621
|
disabled: v.isPending || !s.trim(),
|
|
609
622
|
children: v.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
610
|
-
/* @__PURE__ */ e(
|
|
623
|
+
/* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
611
624
|
"Creating…"
|
|
612
625
|
] }) : "Create group"
|
|
613
626
|
}
|
|
@@ -618,19 +631,19 @@ function er({
|
|
|
618
631
|
function tr(t, a = []) {
|
|
619
632
|
let n = [];
|
|
620
633
|
function s(u, l) {
|
|
621
|
-
const p =
|
|
634
|
+
const p = L.createContext(l);
|
|
622
635
|
p.displayName = u + "Context";
|
|
623
636
|
const g = n.length;
|
|
624
637
|
n = [...n, l];
|
|
625
638
|
const v = (f) => {
|
|
626
639
|
var w;
|
|
627
|
-
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));
|
|
628
641
|
return /* @__PURE__ */ e(b.Provider, { value: D, children: d });
|
|
629
642
|
};
|
|
630
643
|
v.displayName = u + "Provider";
|
|
631
644
|
function m(f, h) {
|
|
632
645
|
var b;
|
|
633
|
-
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);
|
|
634
647
|
if (r) return r;
|
|
635
648
|
if (l !== void 0) return l;
|
|
636
649
|
throw new Error(`\`${f}\` must be used within \`${u}\``);
|
|
@@ -638,10 +651,10 @@ function tr(t, a = []) {
|
|
|
638
651
|
return [v, m];
|
|
639
652
|
}
|
|
640
653
|
const i = () => {
|
|
641
|
-
const u = n.map((l) =>
|
|
654
|
+
const u = n.map((l) => L.createContext(l));
|
|
642
655
|
return function(p) {
|
|
643
656
|
const g = (p == null ? void 0 : p[t]) || u;
|
|
644
|
-
return
|
|
657
|
+
return L.useMemo(
|
|
645
658
|
() => ({ [`__scope${t}`]: { ...p, [t]: g } }),
|
|
646
659
|
[p, g]
|
|
647
660
|
);
|
|
@@ -662,7 +675,7 @@ function ar(...t) {
|
|
|
662
675
|
const f = g(u)[`__scope${v}`];
|
|
663
676
|
return { ...p, ...f };
|
|
664
677
|
}, {});
|
|
665
|
-
return
|
|
678
|
+
return L.useMemo(() => ({ [`__scope${a.scopeName}`]: l }), [l]);
|
|
666
679
|
};
|
|
667
680
|
};
|
|
668
681
|
return n.scopeName = a.scopeName, n;
|
|
@@ -686,7 +699,7 @@ var sr = [
|
|
|
686
699
|
"svg",
|
|
687
700
|
"ul"
|
|
688
701
|
], Et = sr.reduce((t, a) => {
|
|
689
|
-
const n = ds(`Primitive.${a}`), s =
|
|
702
|
+
const n = ds(`Primitive.${a}`), s = L.forwardRef((i, u) => {
|
|
690
703
|
const { asChild: l, ...p } = i, g = l ? n : a;
|
|
691
704
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(g, { ...p, ref: u });
|
|
692
705
|
});
|
|
@@ -703,9 +716,9 @@ function rr() {
|
|
|
703
716
|
return () => {
|
|
704
717
|
};
|
|
705
718
|
}
|
|
706
|
-
var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It),
|
|
719
|
+
var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It), Ma = L.forwardRef(
|
|
707
720
|
(t, a) => {
|
|
708
|
-
const { __scopeAvatar: n, ...s } = t, [i, u] =
|
|
721
|
+
const { __scopeAvatar: n, ...s } = t, [i, u] = L.useState("idle");
|
|
709
722
|
return /* @__PURE__ */ e(
|
|
710
723
|
ir,
|
|
711
724
|
{
|
|
@@ -717,11 +730,11 @@ var It = "Avatar", [or] = tr(It), [ir, Ia] = or(It), Aa = M.forwardRef(
|
|
|
717
730
|
);
|
|
718
731
|
}
|
|
719
732
|
);
|
|
720
|
-
|
|
721
|
-
var
|
|
733
|
+
Ma.displayName = It;
|
|
734
|
+
var Aa = "AvatarImage", La = L.forwardRef(
|
|
722
735
|
(t, a) => {
|
|
723
736
|
const { __scopeAvatar: n, src: s, onLoadingStatusChange: i = () => {
|
|
724
|
-
}, ...u } = t, l = Ia(
|
|
737
|
+
}, ...u } = t, l = Ia(Aa, n), p = cr(s, u), g = us((v) => {
|
|
725
738
|
i(v), l.onImageLoadingStatusChange(v);
|
|
726
739
|
});
|
|
727
740
|
return ut(() => {
|
|
@@ -729,11 +742,11 @@ var La = "AvatarImage", Ma = M.forwardRef(
|
|
|
729
742
|
}, [p, g]), p === "loaded" ? /* @__PURE__ */ e(Et.img, { ...u, ref: a, src: s }) : null;
|
|
730
743
|
}
|
|
731
744
|
);
|
|
732
|
-
|
|
733
|
-
var Oa = "AvatarFallback", ka =
|
|
745
|
+
La.displayName = Aa;
|
|
746
|
+
var Oa = "AvatarFallback", ka = L.forwardRef(
|
|
734
747
|
(t, a) => {
|
|
735
|
-
const { __scopeAvatar: n, delayMs: s, ...i } = t, u = Ia(Oa, n), [l, p] =
|
|
736
|
-
return
|
|
748
|
+
const { __scopeAvatar: n, delayMs: s, ...i } = t, u = Ia(Oa, n), [l, p] = L.useState(s === void 0);
|
|
749
|
+
return L.useEffect(() => {
|
|
737
750
|
if (s !== void 0) {
|
|
738
751
|
const g = window.setTimeout(() => p(!0), s);
|
|
739
752
|
return () => window.clearTimeout(g);
|
|
@@ -746,7 +759,7 @@ function ca(t, a) {
|
|
|
746
759
|
return t ? a ? (t.src !== a && (t.src = a), t.complete && t.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
747
760
|
}
|
|
748
761
|
function cr(t, { referrerPolicy: a, crossOrigin: n }) {
|
|
749
|
-
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(
|
|
750
763
|
() => ca(u, t)
|
|
751
764
|
);
|
|
752
765
|
return ut(() => {
|
|
@@ -762,40 +775,40 @@ function cr(t, { referrerPolicy: a, crossOrigin: n }) {
|
|
|
762
775
|
};
|
|
763
776
|
}, [u, n, a]), l;
|
|
764
777
|
}
|
|
765
|
-
var Pa =
|
|
766
|
-
const
|
|
778
|
+
var Pa = Ma, Ta = La, _a = ka;
|
|
779
|
+
const Mt = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
767
780
|
Pa,
|
|
768
781
|
{
|
|
769
782
|
ref: n,
|
|
770
|
-
className:
|
|
783
|
+
className: Y(
|
|
771
784
|
"relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
|
|
772
785
|
t
|
|
773
786
|
),
|
|
774
787
|
...a
|
|
775
788
|
}
|
|
776
789
|
));
|
|
777
|
-
|
|
778
|
-
const lr =
|
|
790
|
+
Mt.displayName = Pa.displayName;
|
|
791
|
+
const lr = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
779
792
|
Ta,
|
|
780
793
|
{
|
|
781
794
|
ref: n,
|
|
782
|
-
className:
|
|
795
|
+
className: Y("aspect-square h-full w-full", t),
|
|
783
796
|
...a
|
|
784
797
|
}
|
|
785
798
|
));
|
|
786
799
|
lr.displayName = Ta.displayName;
|
|
787
|
-
const
|
|
800
|
+
const At = L.forwardRef(({ className: t, ...a }, n) => /* @__PURE__ */ e(
|
|
788
801
|
_a,
|
|
789
802
|
{
|
|
790
803
|
ref: n,
|
|
791
|
-
className:
|
|
804
|
+
className: Y(
|
|
792
805
|
"flex h-full w-full items-center justify-center rounded-full bg-muted",
|
|
793
806
|
t
|
|
794
807
|
),
|
|
795
808
|
...a
|
|
796
809
|
}
|
|
797
810
|
));
|
|
798
|
-
|
|
811
|
+
At.displayName = _a.displayName;
|
|
799
812
|
function dr({
|
|
800
813
|
open: t,
|
|
801
814
|
onOpenChange: a,
|
|
@@ -838,7 +851,7 @@ function dr({
|
|
|
838
851
|
} catch (y) {
|
|
839
852
|
console.error("Failed to add members:", y);
|
|
840
853
|
}
|
|
841
|
-
},
|
|
854
|
+
}, W = async () => {
|
|
842
855
|
if (m.length !== 0)
|
|
843
856
|
try {
|
|
844
857
|
await E.mutateAsync({
|
|
@@ -914,14 +927,14 @@ function dr({
|
|
|
914
927
|
" selected"
|
|
915
928
|
] }),
|
|
916
929
|
/* @__PURE__ */ e(
|
|
917
|
-
|
|
930
|
+
A,
|
|
918
931
|
{
|
|
919
932
|
variant: "destructive",
|
|
920
933
|
size: "sm",
|
|
921
|
-
onClick:
|
|
934
|
+
onClick: W,
|
|
922
935
|
disabled: E.isPending,
|
|
923
936
|
children: E.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
924
|
-
/* @__PURE__ */ e(
|
|
937
|
+
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
925
938
|
"Removing..."
|
|
926
939
|
] }) : /* @__PURE__ */ c(T, { children: [
|
|
927
940
|
/* @__PURE__ */ e(va, { className: "mr-2 h-4 w-4" }),
|
|
@@ -945,7 +958,7 @@ function dr({
|
|
|
945
958
|
)
|
|
946
959
|
] }),
|
|
947
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: [
|
|
948
|
-
/* @__PURE__ */ e(
|
|
961
|
+
/* @__PURE__ */ e(bt, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
949
962
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
950
963
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "All eligible users are already members" })
|
|
951
964
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: z.map((y) => /* @__PURE__ */ e(
|
|
@@ -965,15 +978,15 @@ function dr({
|
|
|
965
978
|
" selected"
|
|
966
979
|
] }),
|
|
967
980
|
/* @__PURE__ */ e(
|
|
968
|
-
|
|
981
|
+
A,
|
|
969
982
|
{
|
|
970
983
|
onClick: B,
|
|
971
984
|
disabled: C.isPending,
|
|
972
985
|
children: C.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
973
|
-
/* @__PURE__ */ e(
|
|
986
|
+
/* @__PURE__ */ e(X, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
974
987
|
"Adding..."
|
|
975
988
|
] }) : /* @__PURE__ */ c(T, { children: [
|
|
976
|
-
/* @__PURE__ */ e(
|
|
989
|
+
/* @__PURE__ */ e(bt, { className: "mr-2 h-4 w-4" }),
|
|
977
990
|
"Add Members"
|
|
978
991
|
] })
|
|
979
992
|
}
|
|
@@ -997,7 +1010,7 @@ function ur({
|
|
|
997
1010
|
onClick: n,
|
|
998
1011
|
children: [
|
|
999
1012
|
/* @__PURE__ */ e(ba, { checked: a }),
|
|
1000
|
-
/* @__PURE__ */ e(
|
|
1013
|
+
/* @__PURE__ */ e(Mt, { className: "h-8 w-8", children: /* @__PURE__ */ e(At, { className: "text-xs", children: s }) }),
|
|
1001
1014
|
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
1002
1015
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: ((l = t.user) == null ? void 0 : l.name) || "Unknown User" }),
|
|
1003
1016
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: (p = t.user) == null ? void 0 : p.email })
|
|
@@ -1020,7 +1033,7 @@ function mr({
|
|
|
1020
1033
|
onClick: n,
|
|
1021
1034
|
children: [
|
|
1022
1035
|
/* @__PURE__ */ e(ba, { checked: a }),
|
|
1023
|
-
/* @__PURE__ */ e(
|
|
1036
|
+
/* @__PURE__ */ e(Mt, { className: "h-8 w-8", children: /* @__PURE__ */ e(At, { className: "text-xs", children: s }) }),
|
|
1024
1037
|
/* @__PURE__ */ c("div", { className: "flex-1", children: [
|
|
1025
1038
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: t.name }),
|
|
1026
1039
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: t.email })
|
|
@@ -1157,13 +1170,13 @@ function hr({
|
|
|
1157
1170
|
/* @__PURE__ */ c(Da, { children: [
|
|
1158
1171
|
/* @__PURE__ */ e(Ca, { children: "Cancel" }),
|
|
1159
1172
|
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1173
|
+
gt,
|
|
1161
1174
|
{
|
|
1162
1175
|
onClick: I,
|
|
1163
1176
|
disabled: r.isPending,
|
|
1164
1177
|
className: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
1165
1178
|
children: r.isPending ? /* @__PURE__ */ c(T, { children: [
|
|
1166
|
-
/* @__PURE__ */ e(
|
|
1179
|
+
/* @__PURE__ */ e(X, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
1167
1180
|
"Deleting…"
|
|
1168
1181
|
] }) : "Delete group"
|
|
1169
1182
|
}
|
|
@@ -1200,7 +1213,7 @@ function pr({
|
|
|
1200
1213
|
] }),
|
|
1201
1214
|
/* @__PURE__ */ c("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
1202
1215
|
/* @__PURE__ */ e(
|
|
1203
|
-
|
|
1216
|
+
A,
|
|
1204
1217
|
{
|
|
1205
1218
|
variant: "ghost",
|
|
1206
1219
|
size: "xs",
|
|
@@ -1208,11 +1221,11 @@ function pr({
|
|
|
1208
1221
|
onClick: a,
|
|
1209
1222
|
title: "Manage members",
|
|
1210
1223
|
"aria-label": "Manage members",
|
|
1211
|
-
children: /* @__PURE__ */ e(
|
|
1224
|
+
children: /* @__PURE__ */ e(bt, { className: "h-3.5 w-3.5" })
|
|
1212
1225
|
}
|
|
1213
1226
|
),
|
|
1214
1227
|
i && /* @__PURE__ */ e(
|
|
1215
|
-
|
|
1228
|
+
A,
|
|
1216
1229
|
{
|
|
1217
1230
|
variant: "ghost",
|
|
1218
1231
|
size: "xs",
|
|
@@ -1379,7 +1392,7 @@ function vr({
|
|
|
1379
1392
|
}
|
|
1380
1393
|
v(!1);
|
|
1381
1394
|
}, [s, i, v]), I = Fe(
|
|
1382
|
-
(x, B,
|
|
1395
|
+
(x, B, W) => {
|
|
1383
1396
|
!r || !(d != null && d.document) || h(
|
|
1384
1397
|
Nr({
|
|
1385
1398
|
allInputs: m.inputs || [],
|
|
@@ -1387,7 +1400,7 @@ function vr({
|
|
|
1387
1400
|
currentDocumentInputs: b,
|
|
1388
1401
|
nextControls: x,
|
|
1389
1402
|
nextDefaultValues: B,
|
|
1390
|
-
change:
|
|
1403
|
+
change: W
|
|
1391
1404
|
})
|
|
1392
1405
|
);
|
|
1393
1406
|
},
|
|
@@ -1509,11 +1522,11 @@ function Nr({
|
|
|
1509
1522
|
}
|
|
1510
1523
|
function la(t, a) {
|
|
1511
1524
|
return {
|
|
1512
|
-
dashboard:
|
|
1513
|
-
semanticExecutionPayload:
|
|
1525
|
+
dashboard: vt(t),
|
|
1526
|
+
semanticExecutionPayload: vt(a)
|
|
1514
1527
|
};
|
|
1515
1528
|
}
|
|
1516
|
-
function
|
|
1529
|
+
function Rr() {
|
|
1517
1530
|
var Qt, Wt, Jt, Yt, Xt, Zt;
|
|
1518
1531
|
pn(), fn();
|
|
1519
1532
|
const {
|
|
@@ -1526,7 +1539,7 @@ function Fr() {
|
|
|
1526
1539
|
(o) => o.id === b
|
|
1527
1540
|
), w = ms(D), C = w ? (Wt = D == null ? void 0 : D.document) == null ? void 0 : Wt.page : void 0, E = S(
|
|
1528
1541
|
(o) => o.isDashboardEditing
|
|
1529
|
-
), { 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(
|
|
1530
1543
|
(o) => o.actions.setIsDashboardPanelOpen
|
|
1531
1544
|
), $a = S((o) => o.filterValues), _ = S((o) => o.isVisualEditing);
|
|
1532
1545
|
ta((o) => o.card);
|
|
@@ -1546,9 +1559,9 @@ function Fr() {
|
|
|
1546
1559
|
setShowDashboardJSON: Rt
|
|
1547
1560
|
} = S((o) => o.actions), { setInitialDashboard: Gt, clearSelectedDashboard: Ke } = ke(
|
|
1548
1561
|
(o) => o.actions
|
|
1549
|
-
), { 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),
|
|
1550
|
-
id:
|
|
1551
|
-
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"
|
|
1552
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) => {
|
|
1553
1566
|
window.setTimeout(() => {
|
|
1554
1567
|
he(o);
|
|
@@ -1569,10 +1582,10 @@ function Fr() {
|
|
|
1569
1582
|
},
|
|
1570
1583
|
{
|
|
1571
1584
|
onSuccess: () => {
|
|
1572
|
-
console.log("Dashboard title updated successfully"),
|
|
1585
|
+
console.log("Dashboard title updated successfully"), M.success("Dashboard title updated");
|
|
1573
1586
|
},
|
|
1574
1587
|
onError: (q) => {
|
|
1575
|
-
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);
|
|
1576
1589
|
}
|
|
1577
1590
|
}
|
|
1578
1591
|
);
|
|
@@ -1667,7 +1680,7 @@ function Fr() {
|
|
|
1667
1680
|
return;
|
|
1668
1681
|
const q = (o == null ? void 0 : o.closeAfterSave) ?? kt, os = (o == null ? void 0 : o.navigateHomeAfterSave) ?? !1;
|
|
1669
1682
|
be(q), q && se(!1);
|
|
1670
|
-
const is =
|
|
1683
|
+
const is = vt(P);
|
|
1671
1684
|
pe(!0), ge(null), ve([]), Je(!0);
|
|
1672
1685
|
const cs = {
|
|
1673
1686
|
template: P
|
|
@@ -1679,15 +1692,15 @@ function Fr() {
|
|
|
1679
1692
|
},
|
|
1680
1693
|
{
|
|
1681
1694
|
onSuccess: (U) => {
|
|
1682
|
-
var
|
|
1683
|
-
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;
|
|
1684
1697
|
if (!P.id && K) {
|
|
1685
1698
|
const st = bs.getState(), Oe = st.pendingDashboardDraftMigration;
|
|
1686
1699
|
(Oe == null ? void 0 : Oe.scopeKey) === m ? st.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1687
1700
|
K
|
|
1688
1701
|
) : Oe && st.actions.clearPendingDashboardDraftMigration();
|
|
1689
1702
|
}
|
|
1690
|
-
Je(!1),
|
|
1703
|
+
Je(!1), M.success("Dashboard saved!"), De(
|
|
1691
1704
|
la(
|
|
1692
1705
|
is,
|
|
1693
1706
|
S.getState().semanticExecutionPayload
|
|
@@ -1696,17 +1709,17 @@ function Fr() {
|
|
|
1696
1709
|
},
|
|
1697
1710
|
onError: (U) => {
|
|
1698
1711
|
Je(!1), ge("Failed to save dashboard. Please try again.");
|
|
1699
|
-
const K = U.details,
|
|
1712
|
+
const K = U.details, Ae = Array.isArray(
|
|
1700
1713
|
K == null ? void 0 : K.errors
|
|
1701
1714
|
) ? (K.errors || []).filter(
|
|
1702
|
-
(
|
|
1715
|
+
(Le) => typeof Le == "string"
|
|
1703
1716
|
) : [];
|
|
1704
1717
|
ve(
|
|
1705
1718
|
fr({
|
|
1706
|
-
errors:
|
|
1719
|
+
errors: Ae,
|
|
1707
1720
|
dashboard: P || void 0
|
|
1708
1721
|
})
|
|
1709
|
-
),
|
|
1722
|
+
), M.error("Failed to save dashboard");
|
|
1710
1723
|
}
|
|
1711
1724
|
}
|
|
1712
1725
|
);
|
|
@@ -1727,7 +1740,7 @@ function Fr() {
|
|
|
1727
1740
|
a.apiServiceUrl,
|
|
1728
1741
|
q,
|
|
1729
1742
|
t == null ? void 0 : t.accessToken
|
|
1730
|
-
),
|
|
1743
|
+
), M.success("Lens saved"), je == null || je(o), V(!1);
|
|
1731
1744
|
}
|
|
1732
1745
|
const jt = (d == null ? void 0 : d.name) || r.title, oe = !!(r != null && r.id);
|
|
1733
1746
|
ne.isPending && console.log("Title during update:", {
|
|
@@ -1740,9 +1753,9 @@ function Fr() {
|
|
|
1740
1753
|
ot(() => {
|
|
1741
1754
|
!oe && Z && ee(!1);
|
|
1742
1755
|
}, [oe, Z]);
|
|
1743
|
-
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 = () => {
|
|
1744
1757
|
ie && za({
|
|
1745
|
-
dashboardId:
|
|
1758
|
+
dashboardId: Me ? null : ie
|
|
1746
1759
|
});
|
|
1747
1760
|
};
|
|
1748
1761
|
return /* @__PURE__ */ c(
|
|
@@ -1809,26 +1822,26 @@ function Fr() {
|
|
|
1809
1822
|
),
|
|
1810
1823
|
ss && ie && /* @__PURE__ */ e(hs, { children: /* @__PURE__ */ c(ps, { children: [
|
|
1811
1824
|
/* @__PURE__ */ e(fs, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1812
|
-
|
|
1825
|
+
A,
|
|
1813
1826
|
{
|
|
1814
1827
|
variant: "ghost",
|
|
1815
1828
|
size: "xs",
|
|
1816
1829
|
onClick: rs,
|
|
1817
1830
|
disabled: qa || !(t != null && t.accessToken) || !(a != null && a.apiServiceUrl),
|
|
1818
1831
|
className: "w-7 px-0",
|
|
1819
|
-
"aria-label":
|
|
1832
|
+
"aria-label": Me ? "Remove as default dashboard" : "Make this a default dashboard",
|
|
1820
1833
|
children: /* @__PURE__ */ e(
|
|
1821
1834
|
Ws,
|
|
1822
1835
|
{
|
|
1823
|
-
className:
|
|
1836
|
+
className: Y(
|
|
1824
1837
|
"h-3.5 w-3.5 transition-colors",
|
|
1825
|
-
|
|
1838
|
+
Me ? "fill-foreground text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
1826
1839
|
)
|
|
1827
1840
|
}
|
|
1828
1841
|
)
|
|
1829
1842
|
}
|
|
1830
1843
|
) }),
|
|
1831
|
-
/* @__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" }) })
|
|
1832
1845
|
] }) })
|
|
1833
1846
|
] }))
|
|
1834
1847
|
] }),
|
|
@@ -1837,8 +1850,8 @@ function Fr() {
|
|
|
1837
1850
|
/* @__PURE__ */ e(gn, {}),
|
|
1838
1851
|
/* @__PURE__ */ e(vn, {})
|
|
1839
1852
|
] }),
|
|
1840
|
-
!_ && l && ((Zt =
|
|
1841
|
-
|
|
1853
|
+
!_ && l && ((Zt = J == null ? void 0 : J.permissions) == null ? void 0 : Zt.canShare) && /* @__PURE__ */ c(
|
|
1854
|
+
A,
|
|
1842
1855
|
{
|
|
1843
1856
|
variant: "outline",
|
|
1844
1857
|
size: "xs",
|
|
@@ -1894,7 +1907,7 @@ function Fr() {
|
|
|
1894
1907
|
}
|
|
1895
1908
|
) : null,
|
|
1896
1909
|
E && !_ && re && d && s && l && /* @__PURE__ */ c(
|
|
1897
|
-
|
|
1910
|
+
A,
|
|
1898
1911
|
{
|
|
1899
1912
|
variant: "secondary",
|
|
1900
1913
|
size: "xs",
|
|
@@ -1907,7 +1920,7 @@ function Fr() {
|
|
|
1907
1920
|
}
|
|
1908
1921
|
),
|
|
1909
1922
|
E && !_ && l && !w && /* @__PURE__ */ c(
|
|
1910
|
-
|
|
1923
|
+
A,
|
|
1911
1924
|
{
|
|
1912
1925
|
variant: "outline",
|
|
1913
1926
|
size: "xs",
|
|
@@ -1919,12 +1932,12 @@ function Fr() {
|
|
|
1919
1932
|
]
|
|
1920
1933
|
}
|
|
1921
1934
|
),
|
|
1922
|
-
!_ && !E && xe && l && /* @__PURE__ */ c(
|
|
1935
|
+
!_ && !E && xe && l && /* @__PURE__ */ c(A, { size: "xs", onClick: Wa, children: [
|
|
1923
1936
|
/* @__PURE__ */ e(Ys, { className: "h-3.5 w-3.5" }),
|
|
1924
1937
|
"Edit"
|
|
1925
1938
|
] }),
|
|
1926
1939
|
zt && l && qt && /* @__PURE__ */ c(
|
|
1927
|
-
|
|
1940
|
+
A,
|
|
1928
1941
|
{
|
|
1929
1942
|
variant: "outline",
|
|
1930
1943
|
size: "xs",
|
|
@@ -1937,19 +1950,19 @@ function Fr() {
|
|
|
1937
1950
|
}
|
|
1938
1951
|
),
|
|
1939
1952
|
zt && l && /* @__PURE__ */ c(
|
|
1940
|
-
|
|
1953
|
+
A,
|
|
1941
1954
|
{
|
|
1942
1955
|
size: "xs",
|
|
1943
|
-
className:
|
|
1956
|
+
className: Y(!Ht && "opacity-60"),
|
|
1944
1957
|
disabled: Ie || !Ht,
|
|
1945
1958
|
onClick: () => at(),
|
|
1946
1959
|
children: [
|
|
1947
|
-
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" }),
|
|
1948
1961
|
Ie ? "Saving..." : "Save"
|
|
1949
1962
|
]
|
|
1950
1963
|
}
|
|
1951
1964
|
),
|
|
1952
|
-
E && !_ && l && /* @__PURE__ */ c(
|
|
1965
|
+
E && !_ && l && /* @__PURE__ */ c(A, { variant: "outline", size: "xs", onClick: Ya, children: [
|
|
1953
1966
|
/* @__PURE__ */ e(ga, { className: "h-3.5 w-3.5" }),
|
|
1954
1967
|
"Close"
|
|
1955
1968
|
] }),
|
|
@@ -1980,7 +1993,7 @@ function Fr() {
|
|
|
1980
1993
|
$,
|
|
1981
1994
|
{
|
|
1982
1995
|
disabled: v,
|
|
1983
|
-
onSelect: () =>
|
|
1996
|
+
onSelect: () => Lt(!0),
|
|
1984
1997
|
children: [
|
|
1985
1998
|
/* @__PURE__ */ e(sn, { className: "h-3.5 w-3.5" }),
|
|
1986
1999
|
"Export"
|
|
@@ -2006,7 +2019,7 @@ function Fr() {
|
|
|
2006
2019
|
/* @__PURE__ */ c(
|
|
2007
2020
|
$,
|
|
2008
2021
|
{
|
|
2009
|
-
onClick: () =>
|
|
2022
|
+
onClick: () => W(!0),
|
|
2010
2023
|
children: [
|
|
2011
2024
|
/* @__PURE__ */ e(Ct, { className: "h-3.5 w-3.5" }),
|
|
2012
2025
|
"Manage Groups"
|
|
@@ -2033,8 +2046,8 @@ function Fr() {
|
|
|
2033
2046
|
onSelect: () => {
|
|
2034
2047
|
var o;
|
|
2035
2048
|
t != null && t.accessToken && ((o = navigator == null ? void 0 : navigator.clipboard) != null && o.writeText ? navigator.clipboard.writeText(t.accessToken).then(
|
|
2036
|
-
() =>
|
|
2037
|
-
).catch(() =>
|
|
2049
|
+
() => M.success("Token copied to clipboard")
|
|
2050
|
+
).catch(() => M.error("Unable to copy token")) : M.error("Clipboard not available"));
|
|
2038
2051
|
},
|
|
2039
2052
|
children: [
|
|
2040
2053
|
/* @__PURE__ */ e(sa, { className: "h-3.5 w-3.5" }),
|
|
@@ -2049,20 +2062,20 @@ function Fr() {
|
|
|
2049
2062
|
onSelect: () => {
|
|
2050
2063
|
var o;
|
|
2051
2064
|
if (!Xe) {
|
|
2052
|
-
|
|
2065
|
+
M.error(
|
|
2053
2066
|
"Open a document sheet with a token to copy the local PDF URL"
|
|
2054
2067
|
);
|
|
2055
2068
|
return;
|
|
2056
2069
|
}
|
|
2057
2070
|
(o = navigator == null ? void 0 : navigator.clipboard) != null && o.writeText ? navigator.clipboard.writeText(Xe).then(
|
|
2058
|
-
() =>
|
|
2071
|
+
() => M.success(
|
|
2059
2072
|
"Local document PDF URL copied to clipboard"
|
|
2060
2073
|
)
|
|
2061
2074
|
).catch(
|
|
2062
|
-
() =>
|
|
2075
|
+
() => M.error(
|
|
2063
2076
|
"Unable to copy local document PDF URL"
|
|
2064
2077
|
)
|
|
2065
|
-
) :
|
|
2078
|
+
) : M.error("Clipboard not available");
|
|
2066
2079
|
},
|
|
2067
2080
|
children: [
|
|
2068
2081
|
/* @__PURE__ */ e(sa, { className: "h-3.5 w-3.5" }),
|
|
@@ -2081,7 +2094,7 @@ function Fr() {
|
|
|
2081
2094
|
}
|
|
2082
2095
|
),
|
|
2083
2096
|
/* @__PURE__ */ c($, { onSelect: i, children: [
|
|
2084
|
-
/* @__PURE__ */ e(
|
|
2097
|
+
/* @__PURE__ */ e(Mn, { className: "h-3.5 w-3.5" }),
|
|
2085
2098
|
"Brand Studio"
|
|
2086
2099
|
] }),
|
|
2087
2100
|
E && /* @__PURE__ */ c(
|
|
@@ -2089,7 +2102,7 @@ function Fr() {
|
|
|
2089
2102
|
{
|
|
2090
2103
|
onSelect: () => Rt(!Tt),
|
|
2091
2104
|
children: [
|
|
2092
|
-
/* @__PURE__ */ e(
|
|
2105
|
+
/* @__PURE__ */ e(An, { className: "h-3.5 w-3.5" }),
|
|
2093
2106
|
Tt ? "Hide dashboard JSON" : "Show dashboard JSON"
|
|
2094
2107
|
]
|
|
2095
2108
|
}
|
|
@@ -2100,7 +2113,7 @@ function Fr() {
|
|
|
2100
2113
|
] }),
|
|
2101
2114
|
re && /* @__PURE__ */ c(cn, { children: [
|
|
2102
2115
|
/* @__PURE__ */ c(ln, { children: [
|
|
2103
|
-
/* @__PURE__ */ e(
|
|
2116
|
+
/* @__PURE__ */ e(Ln, { className: "h-3.5 w-3.5" }),
|
|
2104
2117
|
"Lenses"
|
|
2105
2118
|
] }),
|
|
2106
2119
|
/* @__PURE__ */ e(dn, { className: "w-60", children: /* @__PURE__ */ e(Bn, {}) })
|
|
@@ -2122,7 +2135,7 @@ function Fr() {
|
|
|
2122
2135
|
hr,
|
|
2123
2136
|
{
|
|
2124
2137
|
open: B,
|
|
2125
|
-
onOpenChange:
|
|
2138
|
+
onOpenChange: W
|
|
2126
2139
|
}
|
|
2127
2140
|
),
|
|
2128
2141
|
oe && (r == null ? void 0 : r.id) && /* @__PURE__ */ e(
|
|
@@ -2164,7 +2177,7 @@ function Fr() {
|
|
|
2164
2177
|
hn,
|
|
2165
2178
|
{
|
|
2166
2179
|
open: Ua,
|
|
2167
|
-
onOpenChange:
|
|
2180
|
+
onOpenChange: Lt
|
|
2168
2181
|
}
|
|
2169
2182
|
),
|
|
2170
2183
|
/* @__PURE__ */ e(
|
|
@@ -2195,7 +2208,7 @@ function Fr() {
|
|
|
2195
2208
|
}
|
|
2196
2209
|
),
|
|
2197
2210
|
/* @__PURE__ */ e(
|
|
2198
|
-
|
|
2211
|
+
gt,
|
|
2199
2212
|
{
|
|
2200
2213
|
onClick: () => at({
|
|
2201
2214
|
closeAfterSave: kt,
|
|
@@ -2205,8 +2218,8 @@ function Fr() {
|
|
|
2205
2218
|
children: "Retry"
|
|
2206
2219
|
}
|
|
2207
2220
|
)
|
|
2208
|
-
] }) : /* @__PURE__ */ c(
|
|
2209
|
-
/* @__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" }),
|
|
2210
2223
|
"Saving..."
|
|
2211
2224
|
] }) })
|
|
2212
2225
|
] })
|
|
@@ -2247,5 +2260,5 @@ function Sr({
|
|
|
2247
2260
|
return p.searchParams.set("pdfMode", "document"), p.searchParams.set("pageSize", s || "letter"), p.searchParams.set("orientation", i || "portrait"), p.searchParams.set("url", l.toString()), p.toString();
|
|
2248
2261
|
}
|
|
2249
2262
|
export {
|
|
2250
|
-
|
|
2263
|
+
Rr as default
|
|
2251
2264
|
};
|