react-semaphor 0.1.284 → 0.1.286
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-4pDdG3me.js → dashboard-controls-ItYogy_p.js} +4 -4
- package/dist/chunks/{dashboard-controls-Dhry2k8x.js → dashboard-controls-L0PZjJCt.js} +318 -341
- package/dist/chunks/dashboard-filter-controls-button-BBM66Kjx.js +1107 -0
- package/dist/chunks/dashboard-filter-controls-button-C0aCuD2T.js +11 -0
- package/dist/chunks/{dashboard-json-CYnf5rdp.js → dashboard-json-BQ-vAiN1.js} +1 -1
- package/dist/chunks/{dashboard-json-D-KsLEGl.js → dashboard-json-DVGKEKGc.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-B4jsBFro.js → dashboard-summary-settings-dialog-DlXqW4ur.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-Cn4-fB2h.js → dashboard-summary-settings-dialog-jRhWndnZ.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BQnApBvr.js → edit-dashboard-visual-BFIX635s.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-BDIt_S2F.js → edit-dashboard-visual-DOyPqIRy.js} +4 -4
- package/dist/chunks/{index-DBuN9Zf6.js → index-5fuOmhsI.js} +170 -170
- package/dist/chunks/{index-y1uW2fuZ.js → index-BJLFSwZr.js} +10190 -10214
- package/dist/chunks/resource-management-panel-DMIhpLZ1.js +933 -0
- package/dist/chunks/resource-management-panel-DPJ6MzLA.js +6 -0
- package/dist/chunks/{use-create-flow-overlay-state-Cr9AFdXx.js → use-create-flow-overlay-state-BU00QaON.js} +142 -145
- package/dist/chunks/use-create-flow-overlay-state-CvuLpw1f.js +21 -0
- package/dist/chunks/{use-visual-utils-DNp8XO6G.js → use-visual-utils-DUV4E_sx.js} +1 -1
- package/dist/chunks/{use-visual-utils-Ccmzx7-m.js → use-visual-utils-DlwYqcbg.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +5 -5
- 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 +18 -2
- package/package.json +1 -1
- package/dist/chunks/dashboard-filter-controls-button-BZXrmJP2.js +0 -1072
- package/dist/chunks/dashboard-filter-controls-button-DEUvxIWD.js +0 -11
- package/dist/chunks/resource-management-panel-BC-cvjI9.js +0 -920
- package/dist/chunks/resource-management-panel-PSvKnmq5.js +0 -6
- package/dist/chunks/use-create-flow-overlay-state-COe7Ekru.js +0 -21
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
-
import { bM as
|
|
2
|
+
import { bM as ce, dp as qs, u as D, cC as ta, cD as ra, B as A, cF as na, cG as Q, dq as oa, N as qa, b as $, d as ia, dr as Hs, ct as la, e as ca, f as da, g as ua, h as Ha, L as Ke, I as le, v as zs, a7 as K, ds as Ce, cK as Qe, dt as js, du as Pa, dv as za, c as Y, dw as ja, dx as Bs, c$ as ma, dy as Ks, dz as Qs, dA as Ws, dB as Js, dC as Xs, dD as Ys, H as Ae, W as Le, x as k, dE as ke, dF as Ba, dG as Ka, d8 as Zs, dH as et, w as Z, cJ as J, dI as at, dJ as st, dK as We, dL as tt, dM as rt, dN as Qa, dO as Wa, dP as Ee, dQ as Me, d4 as Je, cP as Xe, dR as Ye, ch as Ja, dS as Ze, cc as Xa, dT as nt, cS as Ya, cT as Za, cU as es, cV as as, cW as ss, cX as ts, cY as rs, cZ as ea, dU as ns, cB as ot, dV as it, ag as lt, U as Ua, af as we, dW as ct, am as dt, ah as He, dX as ut, dY as mt, dZ as ht, aB as pt, d_ as ft, d$ as gt, bT as vt, bU as bt, bV as yt, e0 as Nt, bW as St, cH as Dt, at as xt, e1 as wt, e2 as Ct, dn as Et, e3 as Mt, e4 as At, cE as Lt, a9 as kt, cM as It, e5 as Ot, al as Tt, aa as _t, as as Pt, e6 as Ut } from "./index-BJLFSwZr.js";
|
|
3
3
|
import * as M from "react";
|
|
4
|
-
import os, { useState as N, useMemo as W, useCallback as
|
|
4
|
+
import os, { useState as N, useMemo as W, useCallback as Ra, useEffect as Rt } from "react";
|
|
5
5
|
import "react-dom";
|
|
6
|
-
import { b as
|
|
6
|
+
import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as zt, D as jt, U as Bt } from "./dashboard-filter-controls-button-BBM66Kjx.js";
|
|
7
7
|
import { l as Kt } from "./date-formatter-vkCj9Ct-.js";
|
|
8
|
-
import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-
|
|
8
|
+
import { C as Qt, D as Wt } from "./dashboard-summary-settings-dialog-DlXqW4ur.js";
|
|
9
9
|
import { u as Jt } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
|
-
import { s as
|
|
11
|
-
import { S as
|
|
10
|
+
import { s as ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
11
|
+
import { S as Ga } from "./use-create-flow-overlay-state-BU00QaON.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the ISC license.
|
|
16
16
|
* See the LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
const Xt =
|
|
18
|
+
const Xt = ce("Glasses", [
|
|
19
19
|
["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
|
|
20
20
|
["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
|
|
21
21
|
["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
|
|
@@ -28,7 +28,7 @@ const Xt = de("Glasses", [
|
|
|
28
28
|
* This source code is licensed under the ISC license.
|
|
29
29
|
* See the LICENSE file in the root directory of this source tree.
|
|
30
30
|
*/
|
|
31
|
-
const Yt =
|
|
31
|
+
const Yt = ce("Menu", [
|
|
32
32
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
33
33
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
34
34
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
@@ -39,7 +39,7 @@ const Yt = de("Menu", [
|
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
41
|
*/
|
|
42
|
-
const Zt =
|
|
42
|
+
const Zt = ce("Moon", [
|
|
43
43
|
["path", { d: "M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z", key: "a7tn18" }]
|
|
44
44
|
]);
|
|
45
45
|
/**
|
|
@@ -48,7 +48,7 @@ const Zt = de("Moon", [
|
|
|
48
48
|
* This source code is licensed under the ISC license.
|
|
49
49
|
* See the LICENSE file in the root directory of this source tree.
|
|
50
50
|
*/
|
|
51
|
-
const er =
|
|
51
|
+
const er = ce("ShieldX", [
|
|
52
52
|
[
|
|
53
53
|
"path",
|
|
54
54
|
{
|
|
@@ -65,7 +65,7 @@ const er = de("ShieldX", [
|
|
|
65
65
|
* This source code is licensed under the ISC license.
|
|
66
66
|
* See the LICENSE file in the root directory of this source tree.
|
|
67
67
|
*/
|
|
68
|
-
const ar =
|
|
68
|
+
const ar = ce("Sun", [
|
|
69
69
|
["circle", { cx: "12", cy: "12", r: "4", key: "4exip2" }],
|
|
70
70
|
["path", { d: "M12 2v2", key: "tus03m" }],
|
|
71
71
|
["path", { d: "M12 20v2", key: "1lh1kg" }],
|
|
@@ -76,7 +76,7 @@ const ar = de("Sun", [
|
|
|
76
76
|
["path", { d: "m6.34 17.66-1.41 1.41", key: "1m8zz5" }],
|
|
77
77
|
["path", { d: "m19.07 4.93-1.41 1.41", key: "1shlcs" }]
|
|
78
78
|
]);
|
|
79
|
-
var
|
|
79
|
+
var aa = { exports: {} }, je = {};
|
|
80
80
|
/**
|
|
81
81
|
* @license React
|
|
82
82
|
* use-sync-external-store-shim.production.js
|
|
@@ -88,7 +88,7 @@ var sa = { exports: {} }, ze = {};
|
|
|
88
88
|
*/
|
|
89
89
|
var Fa;
|
|
90
90
|
function sr() {
|
|
91
|
-
if (Fa) return
|
|
91
|
+
if (Fa) return je;
|
|
92
92
|
Fa = 1;
|
|
93
93
|
var a = os;
|
|
94
94
|
function n(r, d) {
|
|
@@ -125,9 +125,9 @@ function sr() {
|
|
|
125
125
|
return d();
|
|
126
126
|
}
|
|
127
127
|
var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? y : u;
|
|
128
|
-
return
|
|
128
|
+
return je.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : h, je;
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var Be = {};
|
|
131
131
|
/**
|
|
132
132
|
* @license React
|
|
133
133
|
* use-sync-external-store-shim.development.js
|
|
@@ -187,17 +187,17 @@ function tr() {
|
|
|
187
187
|
}
|
|
188
188
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
189
189
|
var l = os, c = typeof Object.is == "function" ? Object.is : a, m = l.useState, u = l.useEffect, p = l.useLayoutEffect, y = l.useDebugValue, h = !1, r = !1, d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? t : n;
|
|
190
|
-
|
|
191
|
-
}()),
|
|
190
|
+
Be.useSyncExternalStore = l.useSyncExternalStore !== void 0 ? l.useSyncExternalStore : d, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
191
|
+
}()), Be;
|
|
192
192
|
}
|
|
193
|
-
process.env.NODE_ENV === "production" ?
|
|
194
|
-
var rr =
|
|
193
|
+
process.env.NODE_ENV === "production" ? aa.exports = sr() : aa.exports = tr();
|
|
194
|
+
var rr = aa.exports;
|
|
195
195
|
function nr() {
|
|
196
|
-
const { setTheme: a } = qs(), n =
|
|
196
|
+
const { setTheme: a } = qs(), n = D(
|
|
197
197
|
(s) => s.actions.setDashboardTheme
|
|
198
198
|
);
|
|
199
|
-
return /* @__PURE__ */ o(
|
|
200
|
-
/* @__PURE__ */ e(
|
|
199
|
+
return /* @__PURE__ */ o(ta, { children: [
|
|
200
|
+
/* @__PURE__ */ e(ra, { asChild: !0, children: /* @__PURE__ */ o(A, { className: "h-7 p-2", variant: "ghost", size: "sm", children: [
|
|
201
201
|
/* @__PURE__ */ e(
|
|
202
202
|
ar,
|
|
203
203
|
{
|
|
@@ -214,7 +214,7 @@ function nr() {
|
|
|
214
214
|
),
|
|
215
215
|
/* @__PURE__ */ e("span", { className: "sr-only", children: "Toggle theme" })
|
|
216
216
|
] }) }),
|
|
217
|
-
/* @__PURE__ */ o(
|
|
217
|
+
/* @__PURE__ */ o(na, { align: "end", children: [
|
|
218
218
|
/* @__PURE__ */ e(
|
|
219
219
|
Q,
|
|
220
220
|
{
|
|
@@ -249,18 +249,18 @@ async function or(a, n, s, t, l) {
|
|
|
249
249
|
if (!l)
|
|
250
250
|
return null;
|
|
251
251
|
const c = JSON.stringify(s), m = `${a}/v1/lens`;
|
|
252
|
-
return await
|
|
252
|
+
return await oa(m, l, {
|
|
253
253
|
name: n,
|
|
254
254
|
template: c,
|
|
255
255
|
filterValues: t,
|
|
256
256
|
operation: "create"
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
async function
|
|
259
|
+
async function sa(a, n, s) {
|
|
260
260
|
if (!s)
|
|
261
261
|
return null;
|
|
262
262
|
const { id: t, template: l, filterValues: c, isDefault: m, shared: u } = n, p = `${a}/v1/lens`;
|
|
263
|
-
return await
|
|
263
|
+
return await oa(p, s, {
|
|
264
264
|
lensId: t,
|
|
265
265
|
template: l,
|
|
266
266
|
filterValues: c,
|
|
@@ -273,13 +273,13 @@ async function ir(a, n, s) {
|
|
|
273
273
|
if (!s)
|
|
274
274
|
return null;
|
|
275
275
|
const t = `${a}/v1/lens`;
|
|
276
|
-
return await
|
|
276
|
+
return await oa(t, s, {
|
|
277
277
|
operation: "delete",
|
|
278
278
|
lensId: n
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
function lr() {
|
|
282
|
-
const [a, n] = N(""), [s, t] = N(!1), l =
|
|
282
|
+
const [a, n] = N(""), [s, t] = N(!1), l = D((S) => S.lenses), { setLenses: c, setSelectedLensId: m } = qa(), [u, p] = N(!1), [y, h] = N(!1), r = D((S) => S.dashboard), d = D((S) => S.filterValues), { authToken: f, tokenProps: v } = $();
|
|
283
283
|
async function b() {
|
|
284
284
|
p(!0);
|
|
285
285
|
const S = await or(
|
|
@@ -291,7 +291,7 @@ function lr() {
|
|
|
291
291
|
);
|
|
292
292
|
S && (c([...l || [], S]), m(S.id), h(!1)), p(!1);
|
|
293
293
|
}
|
|
294
|
-
return /* @__PURE__ */ o(
|
|
294
|
+
return /* @__PURE__ */ o(ia, { open: y, onOpenChange: h, children: [
|
|
295
295
|
/* @__PURE__ */ e(Hs, { asChild: !0, children: /* @__PURE__ */ o(
|
|
296
296
|
A,
|
|
297
297
|
{
|
|
@@ -299,20 +299,20 @@ function lr() {
|
|
|
299
299
|
className: "h-7 p-2",
|
|
300
300
|
size: "sm",
|
|
301
301
|
children: [
|
|
302
|
-
/* @__PURE__ */ e(
|
|
302
|
+
/* @__PURE__ */ e(la, { className: "mr-2 h-4 w-4" }),
|
|
303
303
|
"Lens"
|
|
304
304
|
]
|
|
305
305
|
}
|
|
306
306
|
) }),
|
|
307
|
-
/* @__PURE__ */ o(
|
|
308
|
-
/* @__PURE__ */ o(
|
|
309
|
-
/* @__PURE__ */ e(
|
|
307
|
+
/* @__PURE__ */ o(ca, { className: "sm:max-w-[425px]", children: [
|
|
308
|
+
/* @__PURE__ */ o(da, { children: [
|
|
309
|
+
/* @__PURE__ */ e(ua, { children: "Create Lens" }),
|
|
310
310
|
/* @__PURE__ */ e(Ha, { children: "Lenses are private by default and are only visible to you." })
|
|
311
311
|
] }),
|
|
312
312
|
/* @__PURE__ */ e("div", { className: "grid gap-4 py-4", children: /* @__PURE__ */ o("div", { className: "grid grid-cols-8 items-center gap-4", children: [
|
|
313
|
-
/* @__PURE__ */ e(
|
|
313
|
+
/* @__PURE__ */ e(Ke, { className: "text-right", children: "Name" }),
|
|
314
314
|
/* @__PURE__ */ e(
|
|
315
|
-
|
|
315
|
+
le,
|
|
316
316
|
{
|
|
317
317
|
value: a,
|
|
318
318
|
onChange: (S) => {
|
|
@@ -324,7 +324,7 @@ function lr() {
|
|
|
324
324
|
)
|
|
325
325
|
] }) }),
|
|
326
326
|
s && /* @__PURE__ */ e("p", { className: "text-sm", children: "The lens name already exists. Use a differnet name." }),
|
|
327
|
-
/* @__PURE__ */ e(
|
|
327
|
+
/* @__PURE__ */ e(zs, { children: /* @__PURE__ */ e(
|
|
328
328
|
A,
|
|
329
329
|
{
|
|
330
330
|
size: "sm",
|
|
@@ -339,7 +339,7 @@ function lr() {
|
|
|
339
339
|
] });
|
|
340
340
|
}
|
|
341
341
|
function cr() {
|
|
342
|
-
const [a, n] = N(!1), s =
|
|
342
|
+
const [a, n] = N(!1), s = D((r) => r.lenses), t = D((r) => r.selectedLensId), { setLenses: l, setSelectedLensId: c } = qa(), { authToken: m, tokenProps: u } = $();
|
|
343
343
|
async function p(r) {
|
|
344
344
|
c(r);
|
|
345
345
|
}
|
|
@@ -362,23 +362,23 @@ function cr() {
|
|
|
362
362
|
...r,
|
|
363
363
|
isDefault: !r.isDefault
|
|
364
364
|
};
|
|
365
|
-
await
|
|
365
|
+
await sa(u.apiServiceUrl, f, m == null ? void 0 : m.accessToken);
|
|
366
366
|
const v = s == null ? void 0 : s.find((b) => b.isDefault);
|
|
367
367
|
if (v && v.id !== r.id) {
|
|
368
368
|
const b = {
|
|
369
369
|
...v,
|
|
370
370
|
isDefault: !1
|
|
371
371
|
};
|
|
372
|
-
await
|
|
372
|
+
await sa(u.apiServiceUrl, b, m == null ? void 0 : m.accessToken);
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
|
-
return /* @__PURE__ */ o(
|
|
376
|
-
/* @__PURE__ */ e(
|
|
377
|
-
/* @__PURE__ */ o(
|
|
378
|
-
/* @__PURE__ */ e(
|
|
379
|
-
/* @__PURE__ */ e(
|
|
375
|
+
return /* @__PURE__ */ o(ta, { open: a, onOpenChange: n, children: [
|
|
376
|
+
/* @__PURE__ */ e(ra, { asChild: !0, children: /* @__PURE__ */ e(K, { tooltip: "Lenses", className: "h-7 p-2", children: /* @__PURE__ */ e(Xt, { className: "h-4 w-4" }) }) }),
|
|
377
|
+
/* @__PURE__ */ o(na, { align: "end", className: "w-60", children: [
|
|
378
|
+
/* @__PURE__ */ e(Ce, { className: "px-3", children: "Lenses" }),
|
|
379
|
+
/* @__PURE__ */ e(Qe, {}),
|
|
380
380
|
/* @__PURE__ */ o(
|
|
381
|
-
|
|
381
|
+
js,
|
|
382
382
|
{
|
|
383
383
|
value: t,
|
|
384
384
|
onValueChange: p,
|
|
@@ -393,7 +393,7 @@ function cr() {
|
|
|
393
393
|
/* @__PURE__ */ e("p", { children: r.name }),
|
|
394
394
|
/* @__PURE__ */ o("span", { className: "flex items-center gap-3", children: [
|
|
395
395
|
/* @__PURE__ */ e(
|
|
396
|
-
|
|
396
|
+
za,
|
|
397
397
|
{
|
|
398
398
|
onClick: (d) => {
|
|
399
399
|
d.preventDefault(), h(r);
|
|
@@ -409,7 +409,7 @@ function cr() {
|
|
|
409
409
|
}
|
|
410
410
|
),
|
|
411
411
|
/* @__PURE__ */ e(
|
|
412
|
-
|
|
412
|
+
ja,
|
|
413
413
|
{
|
|
414
414
|
onClick: (d) => {
|
|
415
415
|
d.preventDefault(), y(r.id);
|
|
@@ -430,7 +430,7 @@ function cr() {
|
|
|
430
430
|
] });
|
|
431
431
|
}
|
|
432
432
|
function dr() {
|
|
433
|
-
const { displayPreferences: a, shouldShowElement: n } =
|
|
433
|
+
const { displayPreferences: a, shouldShowElement: n } = Bs(), { currentUser: s, userContext: t } = ma(), l = W(
|
|
434
434
|
() => Ks(s),
|
|
435
435
|
[s]
|
|
436
436
|
), c = W(() => (u) => l && l[u] !== void 0 && l[u] === !1 ? !1 : n(u), [l, n, a]), m = W(
|
|
@@ -458,45 +458,45 @@ const ur = async (a, n, s) => {
|
|
|
458
458
|
return await Ka(t, n, s);
|
|
459
459
|
}, mr = async (a, n, s) => {
|
|
460
460
|
const t = `${a}/management/v1/groups/${s}`;
|
|
461
|
-
await
|
|
461
|
+
await Ba(t, n, "DELETE");
|
|
462
462
|
}, hr = async (a, n, s, t) => {
|
|
463
463
|
const l = `${a}/management/v1/groups/${s}/members`;
|
|
464
464
|
return await Ka(l, n, t);
|
|
465
465
|
}, pr = async (a, n, s, t) => {
|
|
466
466
|
const l = `${a}/management/v1/groups/${s}/members`;
|
|
467
|
-
await
|
|
467
|
+
await Ba(l, n, "DELETE", t);
|
|
468
468
|
};
|
|
469
469
|
function fr() {
|
|
470
|
-
const { authToken: a, tokenProps: n } = $(), s =
|
|
471
|
-
return
|
|
470
|
+
const { authToken: a, tokenProps: n } = $(), s = Ae();
|
|
471
|
+
return Le({
|
|
472
472
|
mutationFn: (t) => ur(n.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", t),
|
|
473
473
|
onSuccess: () => {
|
|
474
474
|
s.invalidateQueries({ queryKey: ["groups"] }), k.success("Group created successfully");
|
|
475
475
|
},
|
|
476
476
|
onError: (t) => {
|
|
477
477
|
console.error("Failed to create group:", t), k.error("Failed to create group", {
|
|
478
|
-
description:
|
|
478
|
+
description: ke(t, "Failed to create group")
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
function gr() {
|
|
484
|
-
const { authToken: a, tokenProps: n } = $(), s =
|
|
485
|
-
return
|
|
484
|
+
const { authToken: a, tokenProps: n } = $(), s = Ae();
|
|
485
|
+
return Le({
|
|
486
486
|
mutationFn: (t) => mr(n.apiServiceUrl, (a == null ? void 0 : a.accessToken) || "", t),
|
|
487
487
|
onSuccess: (t, l) => {
|
|
488
488
|
s.invalidateQueries({ queryKey: ["groups"] }), s.removeQueries({ queryKey: ["group", l] }), k.success("Group deleted successfully");
|
|
489
489
|
},
|
|
490
490
|
onError: (t) => {
|
|
491
491
|
console.error("Failed to delete group:", t), k.error("Failed to delete group", {
|
|
492
|
-
description:
|
|
492
|
+
description: ke(t, "Failed to delete group")
|
|
493
493
|
});
|
|
494
494
|
}
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
497
|
function vr() {
|
|
498
|
-
const { authToken: a, tokenProps: n } = $(), s =
|
|
499
|
-
return
|
|
498
|
+
const { authToken: a, tokenProps: n } = $(), s = Ae();
|
|
499
|
+
return Le({
|
|
500
500
|
mutationFn: ({
|
|
501
501
|
groupId: t,
|
|
502
502
|
data: l
|
|
@@ -508,14 +508,14 @@ function vr() {
|
|
|
508
508
|
},
|
|
509
509
|
onError: (t) => {
|
|
510
510
|
console.error("Failed to add group members:", t), k.error("Failed to add members", {
|
|
511
|
-
description:
|
|
511
|
+
description: ke(t, "Failed to add members")
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
516
|
function br() {
|
|
517
|
-
const { authToken: a, tokenProps: n } = $(), s =
|
|
518
|
-
return
|
|
517
|
+
const { authToken: a, tokenProps: n } = $(), s = Ae();
|
|
518
|
+
return Le({
|
|
519
519
|
mutationFn: ({
|
|
520
520
|
groupId: t,
|
|
521
521
|
data: l
|
|
@@ -527,7 +527,7 @@ function br() {
|
|
|
527
527
|
},
|
|
528
528
|
onError: (t) => {
|
|
529
529
|
console.error("Failed to remove group members:", t), k.error("Failed to remove members", {
|
|
530
|
-
description:
|
|
530
|
+
description: ke(t, "Failed to remove members")
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
533
|
});
|
|
@@ -557,12 +557,12 @@ function yr({
|
|
|
557
557
|
}, className: "space-y-6", children: [
|
|
558
558
|
/* @__PURE__ */ o("div", { className: "space-y-4", children: [
|
|
559
559
|
/* @__PURE__ */ o("div", { className: "space-y-2", children: [
|
|
560
|
-
/* @__PURE__ */ o(
|
|
560
|
+
/* @__PURE__ */ o(Ke, { htmlFor: "group-name", children: [
|
|
561
561
|
"Group Name ",
|
|
562
562
|
/* @__PURE__ */ e("span", { className: "text-destructive", children: "*" })
|
|
563
563
|
] }),
|
|
564
564
|
/* @__PURE__ */ e(
|
|
565
|
-
|
|
565
|
+
le,
|
|
566
566
|
{
|
|
567
567
|
id: "group-name",
|
|
568
568
|
placeholder: "e.g., Marketing Team, Engineering Squad",
|
|
@@ -577,7 +577,7 @@ function yr({
|
|
|
577
577
|
u.name && /* @__PURE__ */ e("p", { className: "text-sm text-destructive", children: u.name })
|
|
578
578
|
] }),
|
|
579
579
|
/* @__PURE__ */ o("div", { className: "space-y-2", children: [
|
|
580
|
-
/* @__PURE__ */ o(
|
|
580
|
+
/* @__PURE__ */ o(Ke, { htmlFor: "group-description", children: [
|
|
581
581
|
"Description",
|
|
582
582
|
/* @__PURE__ */ e("span", { className: "ml-2 text-xs text-muted-foreground", children: "(optional)" })
|
|
583
583
|
] }),
|
|
@@ -688,7 +688,7 @@ function Sr(...a) {
|
|
|
688
688
|
};
|
|
689
689
|
return s.scopeName = n.scopeName, s;
|
|
690
690
|
}
|
|
691
|
-
var
|
|
691
|
+
var Dr = [
|
|
692
692
|
"a",
|
|
693
693
|
"button",
|
|
694
694
|
"div",
|
|
@@ -706,14 +706,14 @@ var xr = [
|
|
|
706
706
|
"span",
|
|
707
707
|
"svg",
|
|
708
708
|
"ul"
|
|
709
|
-
],
|
|
709
|
+
], ha = Dr.reduce((a, n) => {
|
|
710
710
|
const s = at(`Primitive.${n}`), t = M.forwardRef((l, c) => {
|
|
711
711
|
const { asChild: m, ...u } = l, p = m ? s : n;
|
|
712
712
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ e(p, { ...u, ref: c });
|
|
713
713
|
});
|
|
714
714
|
return t.displayName = `Primitive.${n}`, { ...a, [n]: t };
|
|
715
715
|
}, {});
|
|
716
|
-
function
|
|
716
|
+
function xr() {
|
|
717
717
|
return rr.useSyncExternalStore(
|
|
718
718
|
wr,
|
|
719
719
|
() => !0,
|
|
@@ -724,7 +724,7 @@ function wr() {
|
|
|
724
724
|
return () => {
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
var
|
|
727
|
+
var pa = "Avatar", [Cr] = Nr(pa), [Er, is] = Cr(pa), ls = M.forwardRef(
|
|
728
728
|
(a, n) => {
|
|
729
729
|
const { __scopeAvatar: s, ...t } = a, [l, c] = M.useState("idle");
|
|
730
730
|
return /* @__PURE__ */ e(
|
|
@@ -733,21 +733,21 @@ var fa = "Avatar", [Cr] = Nr(fa), [Er, is] = Cr(fa), ls = M.forwardRef(
|
|
|
733
733
|
scope: s,
|
|
734
734
|
imageLoadingStatus: l,
|
|
735
735
|
onImageLoadingStatusChange: c,
|
|
736
|
-
children: /* @__PURE__ */ e(
|
|
736
|
+
children: /* @__PURE__ */ e(ha.span, { ...t, ref: n })
|
|
737
737
|
}
|
|
738
738
|
);
|
|
739
739
|
}
|
|
740
740
|
);
|
|
741
|
-
ls.displayName =
|
|
741
|
+
ls.displayName = pa;
|
|
742
742
|
var cs = "AvatarImage", ds = M.forwardRef(
|
|
743
743
|
(a, n) => {
|
|
744
744
|
const { __scopeAvatar: s, src: t, onLoadingStatusChange: l = () => {
|
|
745
745
|
}, ...c } = a, m = is(cs, s), u = Mr(t, c), p = st((y) => {
|
|
746
746
|
l(y), m.onImageLoadingStatusChange(y);
|
|
747
747
|
});
|
|
748
|
-
return
|
|
748
|
+
return We(() => {
|
|
749
749
|
u !== "idle" && p(u);
|
|
750
|
-
}, [u, p]), u === "loaded" ? /* @__PURE__ */ e(
|
|
750
|
+
}, [u, p]), u === "loaded" ? /* @__PURE__ */ e(ha.img, { ...c, ref: n, src: t }) : null;
|
|
751
751
|
}
|
|
752
752
|
);
|
|
753
753
|
ds.displayName = cs;
|
|
@@ -759,7 +759,7 @@ var us = "AvatarFallback", ms = M.forwardRef(
|
|
|
759
759
|
const p = window.setTimeout(() => u(!0), t);
|
|
760
760
|
return () => window.clearTimeout(p);
|
|
761
761
|
}
|
|
762
|
-
}, [t]), m && c.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ e(
|
|
762
|
+
}, [t]), m && c.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ e(ha.span, { ...l, ref: n }) : null;
|
|
763
763
|
}
|
|
764
764
|
);
|
|
765
765
|
ms.displayName = us;
|
|
@@ -767,12 +767,12 @@ function Va(a, n) {
|
|
|
767
767
|
return a ? n ? (a.src !== n && (a.src = n), a.complete && a.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
768
768
|
}
|
|
769
769
|
function Mr(a, { referrerPolicy: n, crossOrigin: s }) {
|
|
770
|
-
const t =
|
|
770
|
+
const t = xr(), l = M.useRef(null), c = t ? (l.current || (l.current = new window.Image()), l.current) : null, [m, u] = M.useState(
|
|
771
771
|
() => Va(c, a)
|
|
772
772
|
);
|
|
773
|
-
return
|
|
773
|
+
return We(() => {
|
|
774
774
|
u(Va(c, a));
|
|
775
|
-
}, [c, a]),
|
|
775
|
+
}, [c, a]), We(() => {
|
|
776
776
|
const p = (r) => () => {
|
|
777
777
|
u(r);
|
|
778
778
|
};
|
|
@@ -784,7 +784,7 @@ function Mr(a, { referrerPolicy: n, crossOrigin: s }) {
|
|
|
784
784
|
}, [c, s, n]), m;
|
|
785
785
|
}
|
|
786
786
|
var hs = ls, ps = ds, fs = ms;
|
|
787
|
-
const
|
|
787
|
+
const fa = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
788
788
|
hs,
|
|
789
789
|
{
|
|
790
790
|
ref: s,
|
|
@@ -795,7 +795,7 @@ const ga = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
|
795
795
|
...n
|
|
796
796
|
}
|
|
797
797
|
));
|
|
798
|
-
|
|
798
|
+
fa.displayName = hs.displayName;
|
|
799
799
|
const Ar = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
800
800
|
ps,
|
|
801
801
|
{
|
|
@@ -805,7 +805,7 @@ const Ar = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
|
805
805
|
}
|
|
806
806
|
));
|
|
807
807
|
Ar.displayName = ps.displayName;
|
|
808
|
-
const
|
|
808
|
+
const ga = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
809
809
|
fs,
|
|
810
810
|
{
|
|
811
811
|
ref: s,
|
|
@@ -816,7 +816,7 @@ const va = M.forwardRef(({ className: a, ...n }, s) => /* @__PURE__ */ e(
|
|
|
816
816
|
...n
|
|
817
817
|
}
|
|
818
818
|
));
|
|
819
|
-
|
|
819
|
+
ga.displayName = fs.displayName;
|
|
820
820
|
function Lr({
|
|
821
821
|
open: a,
|
|
822
822
|
onOpenChange: n,
|
|
@@ -837,16 +837,16 @@ function Lr({
|
|
|
837
837
|
return ((O = E.name) == null ? void 0 : O.toLowerCase().includes(g)) || ((F = E.email) == null ? void 0 : F.toLowerCase().includes(g));
|
|
838
838
|
}
|
|
839
839
|
);
|
|
840
|
-
}, [q, m]),
|
|
840
|
+
}, [q, m]), x = W(() => {
|
|
841
841
|
if (!m) return _;
|
|
842
842
|
const g = m.toLowerCase();
|
|
843
843
|
return _.filter(
|
|
844
844
|
(E) => {
|
|
845
|
-
var O, F,
|
|
846
|
-
return ((F = (O = E.user) == null ? void 0 : O.name) == null ? void 0 : F.toLowerCase().includes(g)) || ((ae = (
|
|
845
|
+
var O, F, j, ae;
|
|
846
|
+
return ((F = (O = E.user) == null ? void 0 : O.name) == null ? void 0 : F.toLowerCase().includes(g)) || ((ae = (j = E.user) == null ? void 0 : j.email) == null ? void 0 : ae.toLowerCase().includes(g));
|
|
847
847
|
}
|
|
848
848
|
);
|
|
849
|
-
}, [_, m]),
|
|
849
|
+
}, [_, m]), z = async () => {
|
|
850
850
|
if (p.length !== 0)
|
|
851
851
|
try {
|
|
852
852
|
await P.mutateAsync({
|
|
@@ -859,7 +859,7 @@ function Lr({
|
|
|
859
859
|
} catch (g) {
|
|
860
860
|
console.error("Failed to add members:", g);
|
|
861
861
|
}
|
|
862
|
-
},
|
|
862
|
+
}, de = async () => {
|
|
863
863
|
if (h.length !== 0)
|
|
864
864
|
try {
|
|
865
865
|
await U.mutateAsync({
|
|
@@ -875,14 +875,14 @@ function Lr({
|
|
|
875
875
|
y(
|
|
876
876
|
(E) => E.includes(g) ? E.filter((O) => O !== g) : [...E, g]
|
|
877
877
|
);
|
|
878
|
-
},
|
|
878
|
+
}, Ie = (g) => {
|
|
879
879
|
r(
|
|
880
880
|
(E) => E.includes(g) ? E.filter((O) => O !== g) : [...E, g]
|
|
881
881
|
);
|
|
882
882
|
};
|
|
883
|
-
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(
|
|
884
|
-
/* @__PURE__ */ o(
|
|
885
|
-
/* @__PURE__ */ e(
|
|
883
|
+
return /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(ia, { open: a, onOpenChange: n, children: /* @__PURE__ */ o(ca, { className: "max-w-3xl max-h-[80vh]", "aria-describedby": "group-members-description", children: [
|
|
884
|
+
/* @__PURE__ */ o(da, { children: [
|
|
885
|
+
/* @__PURE__ */ e(ua, { children: s.name }),
|
|
886
886
|
/* @__PURE__ */ e("div", { className: "flex items-center gap-2 mt-1", children: /* @__PURE__ */ o("p", { className: "text-sm text-muted-foreground", children: [
|
|
887
887
|
_.length,
|
|
888
888
|
" ",
|
|
@@ -898,14 +898,14 @@ function Lr({
|
|
|
898
898
|
c(g), u(""), r([]);
|
|
899
899
|
}, className: "mt-4", children: [
|
|
900
900
|
/* @__PURE__ */ o(Wa, { className: "grid w-full grid-cols-2", children: [
|
|
901
|
-
/* @__PURE__ */ e(
|
|
902
|
-
/* @__PURE__ */ e(
|
|
901
|
+
/* @__PURE__ */ e(Ee, { value: "members", children: "Current Members" }),
|
|
902
|
+
/* @__PURE__ */ e(Ee, { value: "add", children: "Add Members" })
|
|
903
903
|
] }),
|
|
904
|
-
/* @__PURE__ */ o(
|
|
904
|
+
/* @__PURE__ */ o(Me, { value: "members", className: "mt-4 space-y-4", children: [
|
|
905
905
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
906
|
-
/* @__PURE__ */ e(
|
|
906
|
+
/* @__PURE__ */ e(Je, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
907
907
|
/* @__PURE__ */ e(
|
|
908
|
-
|
|
908
|
+
le,
|
|
909
909
|
{
|
|
910
910
|
placeholder: "Search members...",
|
|
911
911
|
value: m,
|
|
@@ -914,16 +914,16 @@ function Lr({
|
|
|
914
914
|
}
|
|
915
915
|
)
|
|
916
916
|
] }),
|
|
917
|
-
/* @__PURE__ */ e(
|
|
917
|
+
/* @__PURE__ */ e(Xe, { className: h.length > 0 ? "h-[300px]" : "h-[350px]", children: f ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((g) => /* @__PURE__ */ e(Ye, { className: "h-16 w-full" }, g)) }) : x.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
918
918
|
/* @__PURE__ */ e(J, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
919
919
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: m ? "No members found" : "No members yet" }),
|
|
920
920
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: m ? "Try a different search" : 'Switch to the "Add Members" tab to add people to this group' })
|
|
921
|
-
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children:
|
|
921
|
+
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: x.map((g) => /* @__PURE__ */ e(
|
|
922
922
|
kr,
|
|
923
923
|
{
|
|
924
924
|
member: g,
|
|
925
925
|
selected: h.includes(g.userId),
|
|
926
|
-
onToggle: () =>
|
|
926
|
+
onToggle: () => Ie(g.userId)
|
|
927
927
|
},
|
|
928
928
|
g.id
|
|
929
929
|
)) }) }),
|
|
@@ -939,7 +939,7 @@ function Lr({
|
|
|
939
939
|
{
|
|
940
940
|
variant: "destructive",
|
|
941
941
|
size: "sm",
|
|
942
|
-
onClick:
|
|
942
|
+
onClick: de,
|
|
943
943
|
disabled: U.isPending,
|
|
944
944
|
children: U.isPending ? /* @__PURE__ */ o(I, { children: [
|
|
945
945
|
/* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
@@ -952,11 +952,11 @@ function Lr({
|
|
|
952
952
|
)
|
|
953
953
|
] })
|
|
954
954
|
] }),
|
|
955
|
-
/* @__PURE__ */ o(
|
|
955
|
+
/* @__PURE__ */ o(Me, { value: "add", className: "mt-4 space-y-4", children: [
|
|
956
956
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
957
|
-
/* @__PURE__ */ e(
|
|
957
|
+
/* @__PURE__ */ e(Je, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
958
958
|
/* @__PURE__ */ e(
|
|
959
|
-
|
|
959
|
+
le,
|
|
960
960
|
{
|
|
961
961
|
placeholder: "Search users to add...",
|
|
962
962
|
value: m,
|
|
@@ -965,8 +965,8 @@ function Lr({
|
|
|
965
965
|
}
|
|
966
966
|
)
|
|
967
967
|
] }),
|
|
968
|
-
/* @__PURE__ */ e(
|
|
969
|
-
/* @__PURE__ */ e(
|
|
968
|
+
/* @__PURE__ */ e(Xe, { className: "h-[300px]", children: C ? /* @__PURE__ */ e("div", { className: "space-y-2", children: [1, 2, 3].map((g) => /* @__PURE__ */ e(Ye, { className: "h-16 w-full" }, g)) }) : H.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
969
|
+
/* @__PURE__ */ e(Ze, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
970
970
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No available users" }),
|
|
971
971
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: m ? "Try a different search" : "All eligible users are already members" })
|
|
972
972
|
] }) : /* @__PURE__ */ e("div", { className: "space-y-2", children: H.map((g) => /* @__PURE__ */ e(
|
|
@@ -988,13 +988,13 @@ function Lr({
|
|
|
988
988
|
/* @__PURE__ */ e(
|
|
989
989
|
A,
|
|
990
990
|
{
|
|
991
|
-
onClick:
|
|
991
|
+
onClick: z,
|
|
992
992
|
disabled: P.isPending,
|
|
993
993
|
children: P.isPending ? /* @__PURE__ */ o(I, { children: [
|
|
994
994
|
/* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
995
995
|
"Adding..."
|
|
996
996
|
] }) : /* @__PURE__ */ o(I, { children: [
|
|
997
|
-
/* @__PURE__ */ e(
|
|
997
|
+
/* @__PURE__ */ e(Ze, { className: "mr-2 h-4 w-4" }),
|
|
998
998
|
"Add Members"
|
|
999
999
|
] })
|
|
1000
1000
|
}
|
|
@@ -1018,7 +1018,7 @@ function kr({
|
|
|
1018
1018
|
onClick: s,
|
|
1019
1019
|
children: [
|
|
1020
1020
|
/* @__PURE__ */ e(Xa, { checked: n }),
|
|
1021
|
-
/* @__PURE__ */ e(
|
|
1021
|
+
/* @__PURE__ */ e(fa, { className: "h-8 w-8", children: /* @__PURE__ */ e(ga, { className: "text-xs", children: t }) }),
|
|
1022
1022
|
/* @__PURE__ */ o("div", { className: "flex-1", children: [
|
|
1023
1023
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: ((m = a.user) == null ? void 0 : m.name) || "Unknown User" }),
|
|
1024
1024
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: (u = a.user) == null ? void 0 : u.email })
|
|
@@ -1041,7 +1041,7 @@ function Ir({
|
|
|
1041
1041
|
onClick: s,
|
|
1042
1042
|
children: [
|
|
1043
1043
|
/* @__PURE__ */ e(Xa, { checked: n }),
|
|
1044
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
/* @__PURE__ */ e(fa, { className: "h-8 w-8", children: /* @__PURE__ */ e(ga, { className: "text-xs", children: t }) }),
|
|
1045
1045
|
/* @__PURE__ */ o("div", { className: "flex-1", children: [
|
|
1046
1046
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: a.name }),
|
|
1047
1047
|
/* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: a.email })
|
|
@@ -1054,31 +1054,31 @@ function Or({
|
|
|
1054
1054
|
open: a,
|
|
1055
1055
|
onOpenChange: n
|
|
1056
1056
|
}) {
|
|
1057
|
-
const [s, t] = N("groups"), [l, c] = N(""), [m, u] = N(null), [p, y] = N(!1), [h, r] = N(null), { tokenProps: d } = $(), { currentUser: f } =
|
|
1057
|
+
const [s, t] = N("groups"), [l, c] = N(""), [m, u] = N(null), [p, y] = N(!1), [h, r] = N(null), { tokenProps: d } = $(), { currentUser: f } = ma(), v = gr(), b = (f == null ? void 0 : f.type) === "tenant", S = d == null ? void 0 : d.tenantId, { groups: C, isLoading: P, refetch: U } = nt({
|
|
1058
1058
|
type: b ? "TENANT_GROUP" : "all",
|
|
1059
1059
|
tenantId: b ? S : void 0,
|
|
1060
1060
|
includeMembers: !1
|
|
1061
1061
|
}), _ = C.filter(
|
|
1062
|
-
(
|
|
1063
|
-
var
|
|
1064
|
-
return
|
|
1062
|
+
(x) => {
|
|
1063
|
+
var z;
|
|
1064
|
+
return x.name.toLowerCase().includes(l.toLowerCase()) || ((z = x.description) == null ? void 0 : z.toLowerCase().includes(l.toLowerCase()));
|
|
1065
1065
|
}
|
|
1066
1066
|
), V = async () => {
|
|
1067
1067
|
if (h)
|
|
1068
1068
|
try {
|
|
1069
1069
|
await v.mutateAsync(h.id), r(null), U();
|
|
1070
|
-
} catch (
|
|
1071
|
-
console.error("Failed to delete group:",
|
|
1070
|
+
} catch (x) {
|
|
1071
|
+
console.error("Failed to delete group:", x);
|
|
1072
1072
|
}
|
|
1073
|
-
}, q = (
|
|
1074
|
-
u(
|
|
1073
|
+
}, q = (x) => {
|
|
1074
|
+
u(x), y(!0);
|
|
1075
1075
|
}, H = () => {
|
|
1076
1076
|
t("groups"), U();
|
|
1077
1077
|
};
|
|
1078
1078
|
return /* @__PURE__ */ o(I, { children: [
|
|
1079
|
-
/* @__PURE__ */ e(
|
|
1080
|
-
/* @__PURE__ */ o(
|
|
1081
|
-
/* @__PURE__ */ o(
|
|
1079
|
+
/* @__PURE__ */ e(ia, { open: a, onOpenChange: n, children: /* @__PURE__ */ o(ca, { className: "max-w-4xl max-h-[80vh]", children: [
|
|
1080
|
+
/* @__PURE__ */ o(da, { children: [
|
|
1081
|
+
/* @__PURE__ */ o(ua, { className: "flex items-center gap-2", children: [
|
|
1082
1082
|
/* @__PURE__ */ e(J, { className: "h-5 w-5" }),
|
|
1083
1083
|
"Group Management"
|
|
1084
1084
|
] }),
|
|
@@ -1086,44 +1086,44 @@ function Or({
|
|
|
1086
1086
|
] }),
|
|
1087
1087
|
/* @__PURE__ */ o(Qa, { value: s, onValueChange: t, className: "mt-4", children: [
|
|
1088
1088
|
/* @__PURE__ */ o(Wa, { className: "grid w-full grid-cols-2", children: [
|
|
1089
|
-
/* @__PURE__ */ o(
|
|
1089
|
+
/* @__PURE__ */ o(Ee, { value: "groups", className: "flex items-center gap-2", children: [
|
|
1090
1090
|
/* @__PURE__ */ e(J, { className: "h-4 w-4" }),
|
|
1091
1091
|
"Groups"
|
|
1092
1092
|
] }),
|
|
1093
|
-
/* @__PURE__ */ o(
|
|
1094
|
-
/* @__PURE__ */ e(
|
|
1093
|
+
/* @__PURE__ */ o(Ee, { value: "create", className: "flex items-center gap-2", children: [
|
|
1094
|
+
/* @__PURE__ */ e(la, { className: "h-4 w-4" }),
|
|
1095
1095
|
"Create Group"
|
|
1096
1096
|
] })
|
|
1097
1097
|
] }),
|
|
1098
|
-
/* @__PURE__ */ e(
|
|
1098
|
+
/* @__PURE__ */ e(Me, { value: "groups", className: "mt-4", children: /* @__PURE__ */ o("div", { className: "space-y-4", children: [
|
|
1099
1099
|
/* @__PURE__ */ o("div", { className: "relative", children: [
|
|
1100
|
-
/* @__PURE__ */ e(
|
|
1100
|
+
/* @__PURE__ */ e(Je, { className: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" }),
|
|
1101
1101
|
/* @__PURE__ */ e(
|
|
1102
|
-
|
|
1102
|
+
le,
|
|
1103
1103
|
{
|
|
1104
1104
|
placeholder: "Search groups...",
|
|
1105
1105
|
value: l,
|
|
1106
|
-
onChange: (
|
|
1106
|
+
onChange: (x) => c(x.target.value),
|
|
1107
1107
|
className: "pl-10"
|
|
1108
1108
|
}
|
|
1109
1109
|
)
|
|
1110
1110
|
] }),
|
|
1111
|
-
/* @__PURE__ */ e(
|
|
1111
|
+
/* @__PURE__ */ e(Xe, { className: "h-[400px]", children: P ? /* @__PURE__ */ e("div", { className: "space-y-3", children: [1, 2, 3].map((x) => /* @__PURE__ */ e(Ye, { className: "h-24 w-full" }, x)) }) : _.length === 0 ? /* @__PURE__ */ o("div", { className: "flex flex-col items-center justify-center py-12 text-muted-foreground", children: [
|
|
1112
1112
|
/* @__PURE__ */ e(J, { className: "h-12 w-12 mb-3 opacity-50" }),
|
|
1113
1113
|
/* @__PURE__ */ e("p", { className: "text-sm font-medium", children: "No groups found" }),
|
|
1114
1114
|
/* @__PURE__ */ e("p", { className: "text-xs mt-1", children: l ? "Try a different search" : "Create your first group to get started" })
|
|
1115
|
-
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: _.map((
|
|
1115
|
+
] }) : /* @__PURE__ */ e("div", { className: "space-y-3", children: _.map((x) => /* @__PURE__ */ e(
|
|
1116
1116
|
Tr,
|
|
1117
1117
|
{
|
|
1118
|
-
group:
|
|
1119
|
-
onManageMembers: () => q(
|
|
1120
|
-
onDelete: () => r(
|
|
1118
|
+
group: x,
|
|
1119
|
+
onManageMembers: () => q(x),
|
|
1120
|
+
onDelete: () => r(x),
|
|
1121
1121
|
currentUserId: f == null ? void 0 : f.id
|
|
1122
1122
|
},
|
|
1123
|
-
|
|
1123
|
+
x.id
|
|
1124
1124
|
)) }) })
|
|
1125
1125
|
] }) }),
|
|
1126
|
-
/* @__PURE__ */ e(
|
|
1126
|
+
/* @__PURE__ */ e(Me, { value: "create", className: "mt-4", children: /* @__PURE__ */ e(
|
|
1127
1127
|
yr,
|
|
1128
1128
|
{
|
|
1129
1129
|
onSuccess: H,
|
|
@@ -1159,7 +1159,7 @@ function Or({
|
|
|
1159
1159
|
/* @__PURE__ */ o(ts, { children: [
|
|
1160
1160
|
/* @__PURE__ */ e(rs, { children: "Cancel" }),
|
|
1161
1161
|
/* @__PURE__ */ e(
|
|
1162
|
-
|
|
1162
|
+
ea,
|
|
1163
1163
|
{
|
|
1164
1164
|
onClick: V,
|
|
1165
1165
|
disabled: v.isPending,
|
|
@@ -1210,7 +1210,7 @@ function Tr({
|
|
|
1210
1210
|
size: "sm",
|
|
1211
1211
|
onClick: n,
|
|
1212
1212
|
title: "Manage members",
|
|
1213
|
-
children: /* @__PURE__ */ e(
|
|
1213
|
+
children: /* @__PURE__ */ e(Ze, { className: "h-4 w-4" })
|
|
1214
1214
|
}
|
|
1215
1215
|
),
|
|
1216
1216
|
l && /* @__PURE__ */ e(
|
|
@@ -1227,7 +1227,7 @@ function Tr({
|
|
|
1227
1227
|
] })
|
|
1228
1228
|
] }) });
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function oe(a, n, s) {
|
|
1231
1231
|
var c, m;
|
|
1232
1232
|
const t = (a.controls || []).find(
|
|
1233
1233
|
(u) => u.id === s
|
|
@@ -1239,7 +1239,7 @@ function ie(a, n, s) {
|
|
|
1239
1239
|
);
|
|
1240
1240
|
return (l == null ? void 0 : l.label) || s;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function ie(a, n) {
|
|
1243
1243
|
var s;
|
|
1244
1244
|
return ((s = ns(a, n)) == null ? void 0 : s.title) || n;
|
|
1245
1245
|
}
|
|
@@ -1256,7 +1256,7 @@ function _r(a) {
|
|
|
1256
1256
|
const [, h, r] = c, d = `${h}:${r}:missing-metric`;
|
|
1257
1257
|
t.has(d) || t.set(
|
|
1258
1258
|
d,
|
|
1259
|
-
`"${
|
|
1259
|
+
`"${ie(s, h)}" has an outdated "${oe(
|
|
1260
1260
|
s,
|
|
1261
1261
|
h,
|
|
1262
1262
|
r
|
|
@@ -1271,7 +1271,7 @@ function _r(a) {
|
|
|
1271
1271
|
const [, h, r] = m, d = `${h}:${r}:missing-group-by`;
|
|
1272
1272
|
t.has(d) || t.set(
|
|
1273
1273
|
d,
|
|
1274
|
-
`"${
|
|
1274
|
+
`"${ie(s, h)}" has an outdated "${oe(
|
|
1275
1275
|
s,
|
|
1276
1276
|
h,
|
|
1277
1277
|
r
|
|
@@ -1286,7 +1286,7 @@ function _r(a) {
|
|
|
1286
1286
|
const [, h, r] = u, d = `${h}:${r}:invalid-metric`;
|
|
1287
1287
|
t.has(d) || t.set(
|
|
1288
1288
|
d,
|
|
1289
|
-
`"${
|
|
1289
|
+
`"${ie(s, h)}" has an invalid "${oe(
|
|
1290
1290
|
s,
|
|
1291
1291
|
h,
|
|
1292
1292
|
r
|
|
@@ -1301,7 +1301,7 @@ function _r(a) {
|
|
|
1301
1301
|
const [, h, r] = p, d = `${h}:${r}:invalid-group-by`;
|
|
1302
1302
|
t.has(d) || t.set(
|
|
1303
1303
|
d,
|
|
1304
|
-
`"${
|
|
1304
|
+
`"${ie(s, h)}" has an invalid "${oe(
|
|
1305
1305
|
s,
|
|
1306
1306
|
h,
|
|
1307
1307
|
r
|
|
@@ -1316,7 +1316,7 @@ function _r(a) {
|
|
|
1316
1316
|
const [, h, r] = y, d = `${h}:${r}:missing-temporal-group-by`;
|
|
1317
1317
|
t.has(d) || t.set(
|
|
1318
1318
|
d,
|
|
1319
|
-
`"${
|
|
1319
|
+
`"${ie(s, h)}" can no longer use "${oe(
|
|
1320
1320
|
s,
|
|
1321
1321
|
h,
|
|
1322
1322
|
r
|
|
@@ -1328,45 +1328,45 @@ function _r(a) {
|
|
|
1328
1328
|
}
|
|
1329
1329
|
return Array.from(t.values());
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function jr() {
|
|
1332
1332
|
var ka, Ia, Oa, Ta;
|
|
1333
|
-
|
|
1333
|
+
Gt(), Ft();
|
|
1334
1334
|
const {
|
|
1335
1335
|
authToken: a,
|
|
1336
1336
|
tokenProps: n,
|
|
1337
1337
|
id: s
|
|
1338
1338
|
} = $(), { isLocalDev: t } = ot(), { permissions: l } = dr(), c = it(), { isLoading: m } = lt();
|
|
1339
|
-
|
|
1340
|
-
const u =
|
|
1339
|
+
D((i) => i.theme);
|
|
1340
|
+
const u = D(
|
|
1341
1341
|
(i) => i.dashboardAssistantDraftScopeKey
|
|
1342
|
-
), p =
|
|
1343
|
-
|
|
1344
|
-
const d =
|
|
1342
|
+
), p = D((i) => i.lenses), y = D((i) => i.selectedLensId), h = p == null ? void 0 : p.find((i) => i.id === y), r = D((i) => i.dashboard);
|
|
1343
|
+
D((i) => i.selectedSheetId);
|
|
1344
|
+
const d = D(
|
|
1345
1345
|
(i) => i.isDashboardEditing
|
|
1346
|
-
), { setDashboardTitle: f } =
|
|
1346
|
+
), { setDashboardTitle: f } = D((i) => i.actions), [v, b] = N(!1), [S, C] = N(!1), [P, U] = N(!1), [_, V] = N(!1), [q, H] = N(!1), [x, z] = N(!1), [de, ee] = N(null), [Ie, g] = N(!1), [E, O] = N(null), [F, j] = N([]), [ae, ue] = N(!1), gs = D((i) => i.isDashboardPanelOpen), vs = D(
|
|
1347
1347
|
(i) => i.actions.setIsDashboardPanelOpen
|
|
1348
|
-
), bs =
|
|
1348
|
+
), bs = D((i) => i.filterValues), w = D((i) => i.isVisualEditing);
|
|
1349
1349
|
Ua((i) => i.card);
|
|
1350
|
-
const se =
|
|
1350
|
+
const se = we(
|
|
1351
1351
|
(i) => i.selectedDashboard
|
|
1352
|
-
),
|
|
1352
|
+
), me = we(
|
|
1353
1353
|
(i) => i.initialDashboard
|
|
1354
1354
|
);
|
|
1355
|
-
|
|
1356
|
-
const
|
|
1355
|
+
we((i) => i.selectedVisual), D((i) => i.selectedFrameId), Ua((i) => i.frame);
|
|
1356
|
+
const he = se ? (Ia = se == null ? void 0 : se.permissions) == null ? void 0 : Ia.canEdit : (ka = me == null ? void 0 : me.permissions) == null ? void 0 : ka.canEdit, pe = D((i) => i.showFilters), va = ct((i) => i.setPanelOpen), ys = D(
|
|
1357
1357
|
(i) => i.showDashboardJSON
|
|
1358
|
-
),
|
|
1358
|
+
), Oe = D((i) => i.onSaveFunction), ba = D(
|
|
1359
1359
|
(i) => i.actions.setShowFilters
|
|
1360
|
-
), { setIsDashboardEditing:
|
|
1360
|
+
), { setIsDashboardEditing: ya, setShowDashboardJSON: Na } = D(
|
|
1361
1361
|
(i) => i.actions
|
|
1362
|
-
), { setInitialDashboard:
|
|
1362
|
+
), { setInitialDashboard: Sa, clearSelectedDashboard: Te } = we(
|
|
1363
1363
|
(i) => i.actions
|
|
1364
|
-
), { resources:
|
|
1364
|
+
), { resources: fe } = dt(He.DASHBOARD), { data: _e } = ut(), Ns = ((Oa = _e == null ? void 0 : _e.preference) == null ? void 0 : Oa.defaultDashboardId) || null, { mutate: Ss, isPending: Ds } = mt(), { currentUser: xs } = ma(), ws = ht(xs), X = se || me, Da = X ? {
|
|
1365
1365
|
id: X.id,
|
|
1366
1366
|
title: (r == null ? void 0 : r.title) || X.title || "Dashboard"
|
|
1367
|
-
} : null, { handleAddNewFrame: Cs } = pt(), [
|
|
1367
|
+
} : null, { handleAddNewFrame: Cs } = pt(), [Pe, Ue] = N(!1), [Es, te] = N(!1), [Re, ge] = N("close"), re = ft(He.DASHBOARD), [R, Ge] = N(
|
|
1368
1368
|
null
|
|
1369
|
-
),
|
|
1369
|
+
), xa = Ra(
|
|
1370
1370
|
(i) => {
|
|
1371
1371
|
window.setTimeout(() => {
|
|
1372
1372
|
ee(i);
|
|
@@ -1391,66 +1391,66 @@ function Br() {
|
|
|
1391
1391
|
onSuccess: () => {
|
|
1392
1392
|
console.log("Dashboard title updated successfully"), k.success("Dashboard title updated");
|
|
1393
1393
|
},
|
|
1394
|
-
onError: (
|
|
1395
|
-
console.error("Failed to update dashboard title:",
|
|
1394
|
+
onError: (G) => {
|
|
1395
|
+
console.error("Failed to update dashboard title:", G), k.error("Failed to update dashboard title"), f(L);
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
1398
|
);
|
|
1399
1399
|
};
|
|
1400
|
-
|
|
1401
|
-
if (
|
|
1400
|
+
Rt(() => {
|
|
1401
|
+
if (fe && fe.length > 0) {
|
|
1402
1402
|
const i = r == null ? void 0 : r.id;
|
|
1403
1403
|
if (i) {
|
|
1404
|
-
const L =
|
|
1405
|
-
(
|
|
1404
|
+
const L = fe.find(
|
|
1405
|
+
(G) => G.id === i
|
|
1406
1406
|
);
|
|
1407
|
-
L &&
|
|
1407
|
+
L && Sa(L);
|
|
1408
1408
|
}
|
|
1409
1409
|
}
|
|
1410
|
-
}, [
|
|
1411
|
-
const
|
|
1412
|
-
|
|
1413
|
-
},
|
|
1414
|
-
|
|
1410
|
+
}, [fe, r == null ? void 0 : r.id, Sa]);
|
|
1411
|
+
const ve = n.orgUserId || n.tenantId, wa = d && !w && ve && he, { setDashboard: Fe } = D((i) => i.actions), As = () => {
|
|
1412
|
+
ya(!0);
|
|
1413
|
+
}, $e = () => {
|
|
1414
|
+
ya(!1), Na(!1), Ge(null), ee(null);
|
|
1415
1415
|
};
|
|
1416
1416
|
$t(
|
|
1417
1417
|
d,
|
|
1418
1418
|
r,
|
|
1419
|
-
|
|
1419
|
+
R,
|
|
1420
1420
|
(i) => Ge(i)
|
|
1421
1421
|
);
|
|
1422
|
-
const { isDirty:
|
|
1422
|
+
const { isDirty: Ca, isDirtyPending: Ls, resetDirty: be } = Jt(
|
|
1423
1423
|
r,
|
|
1424
|
-
|
|
1424
|
+
R,
|
|
1425
1425
|
300,
|
|
1426
1426
|
1e3,
|
|
1427
|
-
|
|
1428
|
-
),
|
|
1429
|
-
|
|
1427
|
+
ze
|
|
1428
|
+
), Ea = Ra(() => R ? ze(r) !== ze(R) : !1, [r, R]), Ma = Ca || Ls, ye = Pe || re.isPending, ks = () => {
|
|
1429
|
+
Ea() ? (ge("close"), te(!0)) : ($e(), be());
|
|
1430
1430
|
}, Is = async () => {
|
|
1431
1431
|
await Ve({
|
|
1432
1432
|
closeAfterSave: !0,
|
|
1433
|
-
navigateHomeAfterSave:
|
|
1433
|
+
navigateHomeAfterSave: Re === "home"
|
|
1434
1434
|
});
|
|
1435
1435
|
}, Os = () => {
|
|
1436
|
-
|
|
1436
|
+
R && Fe(R), $e(), Re === "home" && Te(), ge("close"), te(!1), be();
|
|
1437
1437
|
}, Ts = () => {
|
|
1438
|
-
|
|
1438
|
+
R && (Fe(R), be());
|
|
1439
1439
|
}, _s = () => {
|
|
1440
|
-
if (d &&
|
|
1441
|
-
|
|
1440
|
+
if (d && Ea()) {
|
|
1441
|
+
ge("home"), te(!0);
|
|
1442
1442
|
return;
|
|
1443
1443
|
}
|
|
1444
|
-
|
|
1444
|
+
Te();
|
|
1445
1445
|
};
|
|
1446
1446
|
async function Ve(i) {
|
|
1447
|
-
const L =
|
|
1447
|
+
const L = D.getState().dashboard;
|
|
1448
1448
|
if (!L)
|
|
1449
1449
|
return;
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1450
|
+
const G = (i == null ? void 0 : i.closeAfterSave) ?? ae, Fs = (i == null ? void 0 : i.navigateHomeAfterSave) ?? !1;
|
|
1451
|
+
ue(G), G && te(!1);
|
|
1452
1452
|
const $s = Pt(L);
|
|
1453
|
-
g(!0), O(null),
|
|
1453
|
+
g(!0), O(null), j([]), Ue(!0);
|
|
1454
1454
|
const Vs = {
|
|
1455
1455
|
template: L
|
|
1456
1456
|
};
|
|
@@ -1461,26 +1461,26 @@ function Br() {
|
|
|
1461
1461
|
},
|
|
1462
1462
|
{
|
|
1463
1463
|
onSuccess: (T) => {
|
|
1464
|
-
var
|
|
1465
|
-
const
|
|
1466
|
-
if (!L.id &&
|
|
1467
|
-
const
|
|
1468
|
-
(xe == null ? void 0 : xe.scopeKey) === u ?
|
|
1469
|
-
|
|
1470
|
-
) : xe &&
|
|
1464
|
+
var Se, De, _a;
|
|
1465
|
+
const B = (T == null ? void 0 : T.id) || ((Se = T == null ? void 0 : T.dashboard) == null ? void 0 : Se.id) || ((De = T == null ? void 0 : T.resource) == null ? void 0 : De.id) || ((_a = T == null ? void 0 : T.template) == null ? void 0 : _a.id) || null;
|
|
1466
|
+
if (!L.id && B) {
|
|
1467
|
+
const qe = Ut.getState(), xe = qe.pendingDashboardDraftMigration;
|
|
1468
|
+
(xe == null ? void 0 : xe.scopeKey) === u ? qe.actions.setPendingDashboardDraftMigrationExpectedDashboardId(
|
|
1469
|
+
B
|
|
1470
|
+
) : xe && qe.actions.clearPendingDashboardDraftMigration();
|
|
1471
1471
|
}
|
|
1472
|
-
|
|
1472
|
+
Ue(!1), k.success("Dashboard saved!"), Ge($s), g(!1), ue(!1), G && ($e(), be(), Fs && Te()), ge("close");
|
|
1473
1473
|
},
|
|
1474
1474
|
onError: (T) => {
|
|
1475
|
-
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1478
|
-
) ? (
|
|
1479
|
-
(
|
|
1475
|
+
Ue(!1), O("Failed to save dashboard. Please try again.");
|
|
1476
|
+
const B = T.details, Se = Array.isArray(
|
|
1477
|
+
B == null ? void 0 : B.errors
|
|
1478
|
+
) ? (B.errors || []).filter(
|
|
1479
|
+
(De) => typeof De == "string"
|
|
1480
1480
|
) : [];
|
|
1481
|
-
|
|
1481
|
+
j(
|
|
1482
1482
|
_r({
|
|
1483
|
-
errors:
|
|
1483
|
+
errors: Se,
|
|
1484
1484
|
dashboard: L || void 0
|
|
1485
1485
|
})
|
|
1486
1486
|
), k.error("Failed to save dashboard");
|
|
@@ -1490,21 +1490,21 @@ function Br() {
|
|
|
1490
1490
|
}
|
|
1491
1491
|
async function Ps() {
|
|
1492
1492
|
if (b(!0), !y || !h) return;
|
|
1493
|
-
const i =
|
|
1493
|
+
const i = D.getState().dashboard;
|
|
1494
1494
|
if (!i) {
|
|
1495
1495
|
b(!1);
|
|
1496
1496
|
return;
|
|
1497
1497
|
}
|
|
1498
|
-
const L = JSON.stringify(i),
|
|
1498
|
+
const L = JSON.stringify(i), G = {
|
|
1499
1499
|
...h,
|
|
1500
1500
|
template: L,
|
|
1501
1501
|
filterValues: bs
|
|
1502
1502
|
};
|
|
1503
|
-
await
|
|
1503
|
+
await sa(
|
|
1504
1504
|
n.apiServiceUrl,
|
|
1505
|
-
|
|
1505
|
+
G,
|
|
1506
1506
|
a == null ? void 0 : a.accessToken
|
|
1507
|
-
), k.success("Lens saved"),
|
|
1507
|
+
), k.success("Lens saved"), Oe == null || Oe(i), b(!1);
|
|
1508
1508
|
}
|
|
1509
1509
|
const Aa = (h == null ? void 0 : h.name) || r.title;
|
|
1510
1510
|
re.isPending && console.log("Title during update:", {
|
|
@@ -1513,9 +1513,9 @@ function Br() {
|
|
|
1513
1513
|
dashboardId: r == null ? void 0 : r.id,
|
|
1514
1514
|
currentLensName: h == null ? void 0 : h.name
|
|
1515
1515
|
});
|
|
1516
|
-
const La = n.orgUserId || n.tenantId && n.endUserId && n.endUserEmail, Us = !!La && !!(a != null && a.accessToken) && !!(n != null && n.apiServiceUrl),
|
|
1517
|
-
|
|
1518
|
-
dashboardId:
|
|
1516
|
+
const La = n.orgUserId || n.tenantId && n.endUserId && n.endUserEmail, Us = !!La && !!(a != null && a.accessToken) && !!(n != null && n.apiServiceUrl), Rs = c, ne = (r == null ? void 0 : r.id) || null, Ne = !!ne && Ns === ne, Gs = () => {
|
|
1517
|
+
ne && Ss({
|
|
1518
|
+
dashboardId: Ne ? null : ne
|
|
1519
1519
|
});
|
|
1520
1520
|
};
|
|
1521
1521
|
return /* @__PURE__ */ o(
|
|
@@ -1534,18 +1534,20 @@ function Br() {
|
|
|
1534
1534
|
onClick: () => {
|
|
1535
1535
|
vs(!gs);
|
|
1536
1536
|
},
|
|
1537
|
-
className: "h-7
|
|
1538
|
-
|
|
1537
|
+
className: "h-7 w-7 px-0",
|
|
1538
|
+
buttonProps: { size: "xs" },
|
|
1539
|
+
children: /* @__PURE__ */ e(Yt, { className: "h-3.5 w-3.5" })
|
|
1539
1540
|
}
|
|
1540
1541
|
),
|
|
1541
|
-
|
|
1542
|
+
Rs && !w && /* @__PURE__ */ e(
|
|
1542
1543
|
K,
|
|
1543
1544
|
{
|
|
1544
1545
|
"aria-label": "Dashboard Hub",
|
|
1545
1546
|
tooltip: "Dashboard Hub",
|
|
1546
1547
|
onClick: _s,
|
|
1547
|
-
className: "h-7
|
|
1548
|
-
|
|
1548
|
+
className: "h-7 w-7 px-0",
|
|
1549
|
+
buttonProps: { size: "xs" },
|
|
1550
|
+
children: /* @__PURE__ */ e(za, { className: "h-3.5 w-3.5" })
|
|
1549
1551
|
}
|
|
1550
1552
|
)
|
|
1551
1553
|
] }),
|
|
@@ -1565,47 +1567,48 @@ function Br() {
|
|
|
1565
1567
|
onSave: (i) => {
|
|
1566
1568
|
console.log("EditableText onSave called:", {
|
|
1567
1569
|
newTitle: i,
|
|
1568
|
-
canEditDashboard:
|
|
1570
|
+
canEditDashboard: he,
|
|
1569
1571
|
dashboardId: r == null ? void 0 : r.id
|
|
1570
1572
|
});
|
|
1571
1573
|
const L = (r == null ? void 0 : r.title) || "";
|
|
1572
1574
|
f(i), Ms(i, L);
|
|
1573
1575
|
},
|
|
1574
|
-
isEditable:
|
|
1575
|
-
displayClassName: "text-
|
|
1576
|
-
inputClassName: "text-
|
|
1576
|
+
isEditable: he && !h,
|
|
1577
|
+
displayClassName: "text-[13px] font-medium",
|
|
1578
|
+
inputClassName: "text-[13px] font-medium",
|
|
1577
1579
|
placeholder: "Dashboard Title",
|
|
1578
1580
|
isPending: re.isPending
|
|
1579
1581
|
}
|
|
1580
1582
|
),
|
|
1581
|
-
Us &&
|
|
1583
|
+
Us && ne && /* @__PURE__ */ e(vt, { children: /* @__PURE__ */ o(bt, { children: [
|
|
1582
1584
|
/* @__PURE__ */ e(yt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1583
1585
|
A,
|
|
1584
1586
|
{
|
|
1585
1587
|
variant: "ghost",
|
|
1586
|
-
size: "
|
|
1587
|
-
onClick:
|
|
1588
|
-
disabled:
|
|
1589
|
-
className: "
|
|
1588
|
+
size: "xs",
|
|
1589
|
+
onClick: Gs,
|
|
1590
|
+
disabled: Ds || !(a != null && a.accessToken) || !(n != null && n.apiServiceUrl),
|
|
1591
|
+
className: "w-7 px-0",
|
|
1592
|
+
"aria-label": Ne ? "Remove as default dashboard" : "Make this a default dashboard",
|
|
1590
1593
|
children: /* @__PURE__ */ e(
|
|
1591
1594
|
Nt,
|
|
1592
1595
|
{
|
|
1593
1596
|
className: Y(
|
|
1594
|
-
"h-
|
|
1595
|
-
|
|
1597
|
+
"h-3.5 w-3.5 transition-colors",
|
|
1598
|
+
Ne ? "fill-foreground text-foreground" : "text-muted-foreground hover:text-foreground"
|
|
1596
1599
|
)
|
|
1597
1600
|
}
|
|
1598
1601
|
)
|
|
1599
1602
|
}
|
|
1600
1603
|
) }),
|
|
1601
|
-
/* @__PURE__ */ e(St, { children: /* @__PURE__ */ e("p", { children:
|
|
1604
|
+
/* @__PURE__ */ e(St, { children: /* @__PURE__ */ e("p", { children: Ne ? "Remove as default dashboard" : "Make this a default dashboard" }) })
|
|
1602
1605
|
] }) })
|
|
1603
1606
|
] }))
|
|
1604
1607
|
] }),
|
|
1605
1608
|
/* @__PURE__ */ o("div", { className: "flex items-center gap-2", children: [
|
|
1606
1609
|
w && /* @__PURE__ */ o(I, { children: [
|
|
1607
|
-
/* @__PURE__ */ e(Vt, {
|
|
1608
|
-
/* @__PURE__ */ e(qt, {
|
|
1610
|
+
/* @__PURE__ */ e(Vt, {}),
|
|
1611
|
+
/* @__PURE__ */ e(qt, {})
|
|
1609
1612
|
] }),
|
|
1610
1613
|
t && !w && /* @__PURE__ */ o(I, { children: [
|
|
1611
1614
|
/* @__PURE__ */ e(
|
|
@@ -1617,14 +1620,14 @@ function Br() {
|
|
|
1617
1620
|
a != null && a.accessToken && ((i = navigator == null ? void 0 : navigator.clipboard) != null && i.writeText ? navigator.clipboard.writeText(a.accessToken).then(() => k.success("Token copied to clipboard")).catch(() => k.error("Unable to copy token")) : k.error("Clipboard not available"));
|
|
1618
1621
|
},
|
|
1619
1622
|
className: "h-7 p-2",
|
|
1620
|
-
children: /* @__PURE__ */ e(
|
|
1623
|
+
children: /* @__PURE__ */ e(Dt, { className: "h-4 w-4" })
|
|
1621
1624
|
}
|
|
1622
1625
|
),
|
|
1623
1626
|
/* @__PURE__ */ e(
|
|
1624
1627
|
K,
|
|
1625
1628
|
{
|
|
1626
1629
|
tooltip: "Invalidate Token",
|
|
1627
|
-
onClick: () =>
|
|
1630
|
+
onClick: () => xt(n.apiServiceUrl),
|
|
1628
1631
|
className: "h-7 p-2",
|
|
1629
1632
|
children: /* @__PURE__ */ e(er, { className: "h-4 w-4" })
|
|
1630
1633
|
}
|
|
@@ -1642,44 +1645,43 @@ function Br() {
|
|
|
1642
1645
|
}
|
|
1643
1646
|
),
|
|
1644
1647
|
!w && d && l.canUseFilters && c && /* @__PURE__ */ e(
|
|
1645
|
-
|
|
1648
|
+
zt,
|
|
1646
1649
|
{
|
|
1647
|
-
showFilters:
|
|
1650
|
+
showFilters: pe,
|
|
1648
1651
|
onToggleFilters: () => {
|
|
1649
|
-
|
|
1652
|
+
pe || va("dashboard", !1), ba(!pe);
|
|
1650
1653
|
},
|
|
1651
1654
|
onAddFilter: () => {
|
|
1652
|
-
|
|
1655
|
+
pe || (va("dashboard", !1), ba(!0));
|
|
1653
1656
|
},
|
|
1654
1657
|
onAddControl: () => {
|
|
1655
|
-
|
|
1658
|
+
xa("create");
|
|
1656
1659
|
},
|
|
1657
|
-
onManageControls: () =>
|
|
1660
|
+
onManageControls: () => xa("manage")
|
|
1658
1661
|
}
|
|
1659
1662
|
),
|
|
1660
|
-
d && !w && c &&
|
|
1661
|
-
|
|
1663
|
+
d && !w && c && de ? /* @__PURE__ */ e(
|
|
1664
|
+
jt,
|
|
1662
1665
|
{
|
|
1663
1666
|
open: !0,
|
|
1664
1667
|
onOpenChange: (i) => {
|
|
1665
1668
|
i || ee(null);
|
|
1666
1669
|
},
|
|
1667
1670
|
showTrigger: !1,
|
|
1668
|
-
initialMode:
|
|
1671
|
+
initialMode: de
|
|
1669
1672
|
}
|
|
1670
1673
|
) : null,
|
|
1671
|
-
d && !w &&
|
|
1672
|
-
!w &&
|
|
1673
|
-
d && !w &&
|
|
1674
|
+
d && !w && ve && t && c && /* @__PURE__ */ e(lr, {}),
|
|
1675
|
+
!w && ve && t && c && /* @__PURE__ */ e(cr, {}),
|
|
1676
|
+
d && !w && ve && h && t && c && /* @__PURE__ */ o(
|
|
1674
1677
|
A,
|
|
1675
1678
|
{
|
|
1676
|
-
className: "h-7 p-2",
|
|
1677
1679
|
variant: "secondary",
|
|
1680
|
+
size: "xs",
|
|
1678
1681
|
disabled: v,
|
|
1679
1682
|
onClick: Ps,
|
|
1680
|
-
size: "sm",
|
|
1681
1683
|
children: [
|
|
1682
|
-
/* @__PURE__ */ e(
|
|
1684
|
+
/* @__PURE__ */ e(Ga, { className: "h-3.5 w-3.5" }),
|
|
1683
1685
|
"Save Lens"
|
|
1684
1686
|
]
|
|
1685
1687
|
}
|
|
@@ -1688,155 +1690,130 @@ function Br() {
|
|
|
1688
1690
|
A,
|
|
1689
1691
|
{
|
|
1690
1692
|
variant: "outline",
|
|
1691
|
-
|
|
1692
|
-
size: "sm",
|
|
1693
|
+
size: "xs",
|
|
1693
1694
|
disabled: !d,
|
|
1694
1695
|
onClick: () => Cs(),
|
|
1695
1696
|
children: [
|
|
1696
|
-
/* @__PURE__ */ e(
|
|
1697
|
+
/* @__PURE__ */ e(la, { className: "h-3.5 w-3.5" }),
|
|
1697
1698
|
"Visual"
|
|
1698
1699
|
]
|
|
1699
1700
|
}
|
|
1700
1701
|
),
|
|
1701
|
-
!w && !d &&
|
|
1702
|
+
!w && !d && he && c && /* @__PURE__ */ o(
|
|
1702
1703
|
A,
|
|
1703
1704
|
{
|
|
1704
1705
|
variant: "outline",
|
|
1705
|
-
|
|
1706
|
+
size: "xs",
|
|
1706
1707
|
onClick: As,
|
|
1707
|
-
size: "sm",
|
|
1708
1708
|
children: [
|
|
1709
|
-
/* @__PURE__ */ e(Et, { className: "
|
|
1709
|
+
/* @__PURE__ */ e(Et, { className: "h-3.5 w-3.5" }),
|
|
1710
1710
|
"Edit"
|
|
1711
1711
|
]
|
|
1712
1712
|
}
|
|
1713
1713
|
),
|
|
1714
|
-
|
|
1714
|
+
wa && c && Ca && /* @__PURE__ */ o(
|
|
1715
1715
|
A,
|
|
1716
1716
|
{
|
|
1717
1717
|
variant: "outline",
|
|
1718
|
-
|
|
1718
|
+
size: "xs",
|
|
1719
1719
|
onClick: Ts,
|
|
1720
|
-
|
|
1721
|
-
disabled: ne,
|
|
1720
|
+
disabled: ye,
|
|
1722
1721
|
children: [
|
|
1723
|
-
/* @__PURE__ */ e(Mt, { className: "
|
|
1722
|
+
/* @__PURE__ */ e(Mt, { className: "h-3.5 w-3.5" }),
|
|
1724
1723
|
"Undo"
|
|
1725
1724
|
]
|
|
1726
1725
|
}
|
|
1727
1726
|
),
|
|
1728
|
-
|
|
1729
|
-
/* @__PURE__ */ o(
|
|
1730
|
-
A,
|
|
1731
|
-
{
|
|
1732
|
-
className: Y("h-7 p-2", !$e && "opacity-60"),
|
|
1733
|
-
disabled: ne || !$e,
|
|
1734
|
-
onClick: () => Ve(),
|
|
1735
|
-
size: "sm",
|
|
1736
|
-
children: [
|
|
1737
|
-
ne ? /* @__PURE__ */ e(Z, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Ra, { className: "mr-2 h-4 w-4" }),
|
|
1738
|
-
ne ? "Saving..." : "Save"
|
|
1739
|
-
]
|
|
1740
|
-
}
|
|
1741
|
-
),
|
|
1742
|
-
$e && !ne && /* @__PURE__ */ e(
|
|
1743
|
-
"span",
|
|
1744
|
-
{
|
|
1745
|
-
"aria-hidden": "true",
|
|
1746
|
-
className: "pointer-events-none absolute -right-1 -top-1 h-2.5 w-2.5 rounded-full bg-orange-500 ring-2 ring-background"
|
|
1747
|
-
}
|
|
1748
|
-
)
|
|
1749
|
-
] }),
|
|
1750
|
-
!w && d && t && c && /* @__PURE__ */ e("div", { className: "flex items-center space-x-2", children: /* @__PURE__ */ e(
|
|
1727
|
+
wa && c && /* @__PURE__ */ o(
|
|
1751
1728
|
A,
|
|
1752
1729
|
{
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1730
|
+
size: "xs",
|
|
1731
|
+
className: Y(!Ma && "opacity-60"),
|
|
1732
|
+
disabled: ye || !Ma,
|
|
1733
|
+
onClick: () => Ve(),
|
|
1734
|
+
children: [
|
|
1735
|
+
ye ? /* @__PURE__ */ e(Z, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ga, { className: "h-3.5 w-3.5" }),
|
|
1736
|
+
ye ? "Saving..." : "Save"
|
|
1737
|
+
]
|
|
1738
|
+
}
|
|
1739
|
+
),
|
|
1740
|
+
!w && d && t && c && /* @__PURE__ */ e(
|
|
1741
|
+
A,
|
|
1742
|
+
{
|
|
1743
|
+
size: "xs",
|
|
1756
1744
|
variant: "ghost",
|
|
1757
|
-
|
|
1745
|
+
onClick: () => Na(!ys),
|
|
1746
|
+
children: /* @__PURE__ */ e(At, { className: "h-3.5 w-3.5" })
|
|
1758
1747
|
}
|
|
1759
|
-
)
|
|
1748
|
+
),
|
|
1760
1749
|
!w && t && /* @__PURE__ */ e(nr, {}),
|
|
1761
1750
|
d && !w && c && /* @__PURE__ */ o(
|
|
1762
1751
|
A,
|
|
1763
1752
|
{
|
|
1764
1753
|
variant: "outline",
|
|
1765
|
-
|
|
1754
|
+
size: "xs",
|
|
1766
1755
|
onClick: ks,
|
|
1767
1756
|
children: [
|
|
1768
|
-
/* @__PURE__ */ e(
|
|
1757
|
+
/* @__PURE__ */ e(ja, { className: "h-3.5 w-3.5" }),
|
|
1769
1758
|
"Close"
|
|
1770
1759
|
]
|
|
1771
1760
|
}
|
|
1772
1761
|
),
|
|
1773
|
-
!w && c && /* @__PURE__ */ o(
|
|
1774
|
-
/* @__PURE__ */ e(
|
|
1762
|
+
!w && c && /* @__PURE__ */ o(ta, { children: [
|
|
1763
|
+
/* @__PURE__ */ e(ra, { asChild: !0, children: /* @__PURE__ */ e(
|
|
1775
1764
|
K,
|
|
1776
1765
|
{
|
|
1777
1766
|
tooltip: "More Options",
|
|
1778
|
-
className: "
|
|
1779
|
-
buttonProps: {
|
|
1780
|
-
|
|
1767
|
+
className: "w-7 px-0 text-muted-foreground hover:text-foreground",
|
|
1768
|
+
buttonProps: {
|
|
1769
|
+
size: "xs",
|
|
1770
|
+
variant: "ghost",
|
|
1771
|
+
"aria-label": "More dashboard options"
|
|
1772
|
+
},
|
|
1773
|
+
children: /* @__PURE__ */ e(Lt, { className: "h-3.5 w-3.5" })
|
|
1781
1774
|
}
|
|
1782
1775
|
) }),
|
|
1783
1776
|
/* @__PURE__ */ o(
|
|
1784
|
-
|
|
1777
|
+
na,
|
|
1785
1778
|
{
|
|
1786
1779
|
align: "end",
|
|
1787
|
-
className: "w-56 rounded-
|
|
1780
|
+
className: "w-56 rounded-[6px] border border-border/60 p-1 shadow-sm",
|
|
1788
1781
|
children: [
|
|
1789
|
-
/* @__PURE__ */ e(
|
|
1782
|
+
/* @__PURE__ */ e(Ce, { children: "Automation" }),
|
|
1790
1783
|
/* @__PURE__ */ o(
|
|
1791
1784
|
Q,
|
|
1792
1785
|
{
|
|
1793
1786
|
onClick: () => V(!0),
|
|
1794
|
-
className: "flex items-center gap-2",
|
|
1795
1787
|
children: [
|
|
1796
|
-
/* @__PURE__ */ e(kt, { className: "
|
|
1788
|
+
/* @__PURE__ */ e(kt, { className: "h-3.5 w-3.5" }),
|
|
1797
1789
|
"Schedule Dashboard"
|
|
1798
1790
|
]
|
|
1799
1791
|
}
|
|
1800
1792
|
),
|
|
1801
|
-
/* @__PURE__ */ e(
|
|
1793
|
+
/* @__PURE__ */ e(Qe, {}),
|
|
1802
1794
|
ws && /* @__PURE__ */ o(I, { children: [
|
|
1803
|
-
/* @__PURE__ */ e(
|
|
1795
|
+
/* @__PURE__ */ e(Ce, { children: "Access" }),
|
|
1804
1796
|
/* @__PURE__ */ o(
|
|
1805
1797
|
Q,
|
|
1806
1798
|
{
|
|
1807
1799
|
onClick: () => U(!0),
|
|
1808
|
-
className: "flex items-center gap-2",
|
|
1809
1800
|
children: [
|
|
1810
|
-
/* @__PURE__ */ e(J, { className: "
|
|
1801
|
+
/* @__PURE__ */ e(J, { className: "h-3.5 w-3.5" }),
|
|
1811
1802
|
"Manage Groups"
|
|
1812
1803
|
]
|
|
1813
1804
|
}
|
|
1814
1805
|
),
|
|
1815
|
-
/* @__PURE__ */ e(
|
|
1806
|
+
/* @__PURE__ */ e(Qe, {})
|
|
1816
1807
|
] }),
|
|
1817
|
-
/* @__PURE__ */ e(
|
|
1818
|
-
/* @__PURE__ */ o(
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
]
|
|
1827
|
-
}
|
|
1828
|
-
),
|
|
1829
|
-
/* @__PURE__ */ o(
|
|
1830
|
-
Q,
|
|
1831
|
-
{
|
|
1832
|
-
onClick: () => j(!0),
|
|
1833
|
-
className: "flex items-center gap-2",
|
|
1834
|
-
children: [
|
|
1835
|
-
/* @__PURE__ */ e(Ot, { className: "mr-2 h-4 w-4" }),
|
|
1836
|
-
"Summary Settings"
|
|
1837
|
-
]
|
|
1838
|
-
}
|
|
1839
|
-
)
|
|
1808
|
+
/* @__PURE__ */ e(Ce, { children: "Preferences" }),
|
|
1809
|
+
/* @__PURE__ */ o(Q, { onClick: () => H(!0), children: [
|
|
1810
|
+
/* @__PURE__ */ e(It, { className: "h-3.5 w-3.5" }),
|
|
1811
|
+
"Calendar Preferences"
|
|
1812
|
+
] }),
|
|
1813
|
+
/* @__PURE__ */ o(Q, { onClick: () => z(!0), children: [
|
|
1814
|
+
/* @__PURE__ */ e(Ot, { className: "h-3.5 w-3.5" }),
|
|
1815
|
+
"Summary Settings"
|
|
1816
|
+
] })
|
|
1840
1817
|
]
|
|
1841
1818
|
}
|
|
1842
1819
|
)
|
|
@@ -1845,7 +1822,7 @@ function Br() {
|
|
|
1845
1822
|
Tt,
|
|
1846
1823
|
{
|
|
1847
1824
|
resource: Da,
|
|
1848
|
-
resourceType:
|
|
1825
|
+
resourceType: He.DASHBOARD,
|
|
1849
1826
|
onClose: () => C(!1)
|
|
1850
1827
|
}
|
|
1851
1828
|
),
|
|
@@ -1875,11 +1852,11 @@ function Br() {
|
|
|
1875
1852
|
/* @__PURE__ */ e(
|
|
1876
1853
|
Wt,
|
|
1877
1854
|
{
|
|
1878
|
-
open:
|
|
1879
|
-
onOpenChange:
|
|
1855
|
+
open: x,
|
|
1856
|
+
onOpenChange: z,
|
|
1880
1857
|
dashboard: r,
|
|
1881
1858
|
disabled: !d,
|
|
1882
|
-
onApply: (i) =>
|
|
1859
|
+
onApply: (i) => Fe({
|
|
1883
1860
|
...r,
|
|
1884
1861
|
summary: i
|
|
1885
1862
|
})
|
|
@@ -1888,9 +1865,9 @@ function Br() {
|
|
|
1888
1865
|
/* @__PURE__ */ e(
|
|
1889
1866
|
Ya,
|
|
1890
1867
|
{
|
|
1891
|
-
open:
|
|
1868
|
+
open: Ie,
|
|
1892
1869
|
onOpenChange: (i) => {
|
|
1893
|
-
!i &&
|
|
1870
|
+
!i && Pe && !E || (g(i), i || (O(null), j([]), ue(!1)));
|
|
1894
1871
|
},
|
|
1895
1872
|
children: /* @__PURE__ */ o(Za, { className: "max-w-sm", children: [
|
|
1896
1873
|
/* @__PURE__ */ o(es, { children: [
|
|
@@ -1906,25 +1883,25 @@ function Br() {
|
|
|
1906
1883
|
rs,
|
|
1907
1884
|
{
|
|
1908
1885
|
onClick: () => {
|
|
1909
|
-
g(!1), O(null),
|
|
1886
|
+
g(!1), O(null), j([]), ue(!1);
|
|
1910
1887
|
},
|
|
1911
1888
|
className: "m-0",
|
|
1912
1889
|
children: "Close"
|
|
1913
1890
|
}
|
|
1914
1891
|
),
|
|
1915
1892
|
/* @__PURE__ */ e(
|
|
1916
|
-
|
|
1893
|
+
ea,
|
|
1917
1894
|
{
|
|
1918
1895
|
onClick: () => Ve({
|
|
1919
1896
|
closeAfterSave: ae,
|
|
1920
|
-
navigateHomeAfterSave:
|
|
1897
|
+
navigateHomeAfterSave: Re === "home"
|
|
1921
1898
|
}),
|
|
1922
1899
|
className: "m-0",
|
|
1923
1900
|
children: "Retry"
|
|
1924
1901
|
}
|
|
1925
1902
|
)
|
|
1926
1903
|
] }) : /* @__PURE__ */ o(
|
|
1927
|
-
|
|
1904
|
+
ea,
|
|
1928
1905
|
{
|
|
1929
1906
|
disabled: !0,
|
|
1930
1907
|
className: "m-0 cursor-default",
|
|
@@ -1938,7 +1915,7 @@ function Br() {
|
|
|
1938
1915
|
}
|
|
1939
1916
|
),
|
|
1940
1917
|
/* @__PURE__ */ e(
|
|
1941
|
-
|
|
1918
|
+
Bt,
|
|
1942
1919
|
{
|
|
1943
1920
|
open: Es,
|
|
1944
1921
|
onOpenChange: (i) => {
|
|
@@ -1946,7 +1923,7 @@ function Br() {
|
|
|
1946
1923
|
},
|
|
1947
1924
|
onSave: Is,
|
|
1948
1925
|
onDiscard: Os,
|
|
1949
|
-
isSaving:
|
|
1926
|
+
isSaving: Pe,
|
|
1950
1927
|
saveLabel: "Save",
|
|
1951
1928
|
discardLabel: "Discard"
|
|
1952
1929
|
}
|
|
@@ -1957,5 +1934,5 @@ function Br() {
|
|
|
1957
1934
|
);
|
|
1958
1935
|
}
|
|
1959
1936
|
export {
|
|
1960
|
-
|
|
1937
|
+
jr as default
|
|
1961
1938
|
};
|