react-semaphor 0.1.280 → 0.1.282
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-I3SWzXID.js → dashboard-controls-B_F5f_BF.js} +4 -4
- package/dist/chunks/{dashboard-controls-Cm_n6Dce.js → dashboard-controls-XX9__V-e.js} +1 -1
- package/dist/chunks/{dashboard-filter-controls-button-DuifafhB.js → dashboard-filter-controls-button-DVLBLHga.js} +60 -60
- package/dist/chunks/{dashboard-filter-controls-button-DXXJnFns.js → dashboard-filter-controls-button-DZpvfXwU.js} +1 -1
- package/dist/chunks/{dashboard-json--iZU90D2.js → dashboard-json-CexNQg-E.js} +1 -1
- package/dist/chunks/{dashboard-json-C0_fJrmP.js → dashboard-json-Dd9Q2bZm.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-DOofgrKU.js → dashboard-summary-settings-dialog-BjdrHb1l.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-BzWnRhFU.js → dashboard-summary-settings-dialog-zdacBYZZ.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DEuJScSB.js → edit-dashboard-visual-Bi9pQx6G.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-CEb2cSMS.js → edit-dashboard-visual-DQts3aun.js} +2 -2
- package/dist/chunks/{index-ZpmXTndp.js → index-BY0YEY92.js} +223 -223
- package/dist/chunks/{index-BzQ2UBDI.js → index-Bgn4zTsp.js} +25446 -24525
- package/dist/chunks/{resource-management-panel-DNez0W3b.js → resource-management-panel--xIMLPdz.js} +2 -2
- package/dist/chunks/{resource-management-panel-DMHJbuqI.js → resource-management-panel-w7afzaPB.js} +1 -1
- package/dist/chunks/use-create-flow-overlay-state-AsQy4tbh.js +21 -0
- package/dist/chunks/use-create-flow-overlay-state-COsIHnQp.js +1523 -0
- package/dist/chunks/{use-visual-utils-C2syL_qa.js → use-visual-utils-BCWNcaWk.js} +1 -1
- package/dist/chunks/{use-visual-utils-D4Lp-wat.js → use-visual-utils-CI-7TNJI.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/dashboard.d.ts +9 -1
- package/dist/types/main.d.ts +9 -1
- package/dist/types/shared.d.ts +9 -1
- package/dist/types/surfboard.d.ts +9 -1
- package/dist/types/types.d.ts +9 -1
- package/package.json +1 -1
- package/dist/chunks/use-create-flow-overlay-state-BdoJfJmU.js +0 -21
- package/dist/chunks/use-create-flow-overlay-state-BvBTFIgX.js +0 -1443
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { bM as de,
|
|
2
|
+
import { bM as de, ds as qs, u as x, cE as ra, cF as na, B as A, cH as oa, cI as Q, dt as ia, N as qa, b as $, e as la, du as Hs, cu as ca, f as da, g as ua, h as ma, i as Ha, L as Qe, I as ce, v as js, a7 as K, dv as we, cM as We, dw as zs, dx as Pa, dy as ja, c as Y, dz as za, dA as Bs, d1 as ha, dB as Ks, dC as Qs, dD as Ws, dE as Js, dF as Xs, dG as Ys, H as Me, W as Ae, x as I, dH as Le, dI as Ba, dJ as Ka, da as Zs, dK as et, w as Z, cL as J, dL as at, dM as st, dN as Je, dO as tt, dP as rt, dQ as Qa, dR as Wa, dS as Ce, dT as Ee, d6 as Xe, cR as Ye, dU as Ze, ch as Ja, dV as ea, cc as Xa, dW as nt, cU as Ya, cV as Za, cW as es, cX as as, cY as ss, cZ as ts, c_ as rs, c$ as aa, dX as ns, cD as ot, dY as it, ag as lt, U as Ua, af as De, dZ as ct, am as dt, ah as je, d_ as ut, d$ as mt, e0 as ht, aB as pt, e1 as ft, e2 as gt, bT as vt, bU as bt, bV as yt, e3 as Nt, bW as St, cJ as xt, at as Dt, e4 as wt, e5 as Ct, dr as Et, e6 as Mt, e7 as At, cG as Lt, a9 as It, cO as kt, e8 as Ot, al as Tt, aa as _t, as as Pt, e9 as Ut } from "./index-Bgn4zTsp.js";
|
|
3
3
|
import * as M from "react";
|
|
4
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 Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-
|
|
6
|
+
import { b as Gt, u as Ft, d as $t, A as Vt, V as qt, N as Ht, c as jt, D as zt, U as Bt } from "./dashboard-filter-controls-button-DVLBLHga.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-zdacBYZZ.js";
|
|
9
9
|
import { u as Jt } from "./use-debounced-dirty-check-BwAbnX_5.js";
|
|
10
10
|
import { s as ze } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
|
|
11
|
-
import { S as Ga } from "./use-create-flow-overlay-state-
|
|
11
|
+
import { S as Ga } from "./use-create-flow-overlay-state-COsIHnQp.js";
|
|
12
12
|
/**
|
|
13
13
|
* @license lucide-react v0.453.0 - ISC
|
|
14
14
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("./index-BY0YEY92.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-DZpvfXwU.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-BjdrHb1l.js"),Us=require("./use-debounced-dirty-check-XHSwAefL.js"),we=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),Ye=require("./use-create-flow-overlay-state-AsQy4tbh.js");function Rs(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return o.default=t,Object.freeze(o)}const C=Rs(x);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import ge, { useState as F, useRef as z, useCallback as V, useEffect as T, useContext as be } from "react";
|
|
2
|
-
import { bM as
|
|
2
|
+
import { bM as Q, b as _, aC as U, bJ as $, bF as ee, bG as H, aD as te, bE as Ce, e as ae, f as se, g as re, h as oe, i as ne, L as G, I as we, da as ye, v as xe, B as I, w as j, U as R, J as Ne, u as B, K as De, N as X, db as Ae, dc as q, x as P, b_ as ie, af as Se, c as L, cE as le, cF as de, a6 as ce, cH as ue, cI as M, s as Ee, cM as Ie, cu as Le, M as Fe, dd as Te, de as ke, df as Ue, cU as Me, cV as Ve, cW as Pe, cX as Be, cY as Oe, cZ as ze, c_ as Re, as as _e, bL as $e, X as He, dg as je, dh as Xe, cA as Ge, bH as K, a8 as qe, aF as Ke, P as he, k as me, di as We, l as pe, dj as Je, dk as Ye, dl as Ze, dm as Qe, dn as et, dp as fe, dq as W, dr as tt } from "./index-Bgn4zTsp.js";
|
|
3
3
|
import { jsx as t, jsxs as s, Fragment as O } from "react/jsx-runtime";
|
|
4
|
-
import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-
|
|
5
|
-
import { u as ve } from "./use-visual-utils-
|
|
4
|
+
import { V as at, E as st, a as rt, b as ot, L as nt, c as it, d as lt, C as dt, u as ct, e as ut } from "./use-create-flow-overlay-state-COsIHnQp.js";
|
|
5
|
+
import { u as ve } from "./use-visual-utils-BCWNcaWk.js";
|
|
6
6
|
import { k as J } from "./date-formatter-vkCj9Ct-.js";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|
|
@@ -10,7 +10,7 @@ import { k as J } from "./date-formatter-vkCj9Ct-.js";
|
|
|
10
10
|
* This source code is licensed under the ISC license.
|
|
11
11
|
* See the LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const Y = Q("FileDown", [
|
|
14
14
|
["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
|
|
15
15
|
["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
|
|
16
16
|
["path", { d: "M12 18v-6", key: "17g6i2" }],
|
|
@@ -22,22 +22,22 @@ const Q = Z("FileDown", [
|
|
|
22
22
|
* This source code is licensed under the ISC license.
|
|
23
23
|
* See the LICENSE file in the root directory of this source tree.
|
|
24
24
|
*/
|
|
25
|
-
const ht =
|
|
25
|
+
const ht = Q("FilterX", [
|
|
26
26
|
["path", { d: "M13.013 3H2l8 9.46V19l4 2v-8.54l.9-1.055", key: "1fi1da" }],
|
|
27
27
|
["path", { d: "m22 3-5 5", key: "12jva0" }],
|
|
28
28
|
["path", { d: "m17 3 5 5", key: "k36vhe" }]
|
|
29
|
-
]), mt = 1e4, pt = 15e3, ft = 3e4, vt = 3e4, gt = 12e4,
|
|
29
|
+
]), mt = 1e4, pt = 15e3, ft = 3e4, vt = 3e4, gt = 12e4, Z = 2 * 60 * 60 * 1e3;
|
|
30
30
|
function bt(e) {
|
|
31
31
|
const a = Date.now() - e.getTime();
|
|
32
32
|
return a < vt ? mt : a < gt ? pt : ft;
|
|
33
33
|
}
|
|
34
34
|
function Tt() {
|
|
35
|
-
const { authToken: e, tokenProps: a } =
|
|
35
|
+
const { authToken: e, tokenProps: a } = _(), p = U((m) => m.activeExports), [c, d] = F(
|
|
36
36
|
typeof document < "u" ? !document.hidden : !0
|
|
37
37
|
), u = z(null), n = z(!1), l = z(void 0), h = a == null ? void 0 : a.apiServiceUrl, o = e == null ? void 0 : e.accessToken, v = V(() => {
|
|
38
38
|
const m = U.getState().activeExports;
|
|
39
39
|
return Array.from(m.values()).filter(
|
|
40
|
-
(C) =>
|
|
40
|
+
(C) => $(C.status)
|
|
41
41
|
);
|
|
42
42
|
}, []);
|
|
43
43
|
T(() => {
|
|
@@ -59,12 +59,12 @@ function Tt() {
|
|
|
59
59
|
n.current = !1;
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
const C = Date.now(),
|
|
63
|
-
(r) => C - r.startedAt.getTime() >
|
|
62
|
+
const C = Date.now(), N = m.filter(
|
|
63
|
+
(r) => C - r.startedAt.getTime() > Z
|
|
64
64
|
);
|
|
65
|
-
if (
|
|
65
|
+
if (N.length > 0) {
|
|
66
66
|
const { updateExport: r } = U.getState().actions;
|
|
67
|
-
for (const i of
|
|
67
|
+
for (const i of N)
|
|
68
68
|
r(i.id, {
|
|
69
69
|
status: "failed",
|
|
70
70
|
error: "Export timed out. Please try again or contact support.",
|
|
@@ -72,7 +72,7 @@ function Tt() {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
const f = m.filter(
|
|
75
|
-
(r) => C - r.startedAt.getTime() <=
|
|
75
|
+
(r) => C - r.startedAt.getTime() <= Z
|
|
76
76
|
);
|
|
77
77
|
if (f.length === 0) {
|
|
78
78
|
n.current = !1;
|
|
@@ -146,7 +146,7 @@ function Tt() {
|
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
148
|
function kt() {
|
|
149
|
-
const { authToken: e, tokenProps: a } =
|
|
149
|
+
const { authToken: e, tokenProps: a } = _(), p = U((l) => l.activeExports), { addExport: c } = te(), d = z(!1), u = a == null ? void 0 : a.apiServiceUrl, n = e == null ? void 0 : e.accessToken;
|
|
150
150
|
T(() => {
|
|
151
151
|
if (d.current || !u || !n) return;
|
|
152
152
|
(async () => {
|
|
@@ -195,7 +195,7 @@ function kt() {
|
|
|
195
195
|
}, [u, n, c, p]);
|
|
196
196
|
}
|
|
197
197
|
function Ct(e) {
|
|
198
|
-
return e.title ? e.title :
|
|
198
|
+
return e.title ? e.title : $(
|
|
199
199
|
e.status
|
|
200
200
|
) ? "Export in progress..." : e.status === "completed" ? "Export completed" : e.status === "failed" ? "Export failed" : "Export";
|
|
201
201
|
}
|
|
@@ -265,7 +265,7 @@ function wt({
|
|
|
265
265
|
{
|
|
266
266
|
id: "name",
|
|
267
267
|
value: l,
|
|
268
|
-
onChange: (
|
|
268
|
+
onChange: (N) => h(N.target.value),
|
|
269
269
|
placeholder: "Enter visual name",
|
|
270
270
|
disabled: d
|
|
271
271
|
}
|
|
@@ -278,7 +278,7 @@ function wt({
|
|
|
278
278
|
{
|
|
279
279
|
id: "description",
|
|
280
280
|
value: o,
|
|
281
|
-
onChange: (
|
|
281
|
+
onChange: (N) => v(N.target.value),
|
|
282
282
|
placeholder: "Enter visual description",
|
|
283
283
|
rows: 3,
|
|
284
284
|
disabled: d
|
|
@@ -304,9 +304,9 @@ function wt({
|
|
|
304
304
|
] }) });
|
|
305
305
|
}
|
|
306
306
|
function yt() {
|
|
307
|
-
const [e, a] = F(!1), [p, c] = F(!1), [d, u] = F(null), n = R((i) => i.frame), l = R((i) => i.card), h =
|
|
307
|
+
const [e, a] = F(!1), [p, c] = F(!1), [d, u] = F(null), n = R((i) => i.frame), l = R((i) => i.card), h = Ne(), o = B((i) => i.selectedSheetId), v = B(
|
|
308
308
|
(i) => i.actions.setIsDashboardPanelOpen
|
|
309
|
-
), { getUpdatedFrame: b } = ve(), { selectVisual: m } =
|
|
309
|
+
), { getUpdatedFrame: b } = ve(), { selectVisual: m } = De(), { addFrame: C, setSelectedFrameId: N, setIsVisualEditing: f } = X(), y = !!(n != null && n.visualId), S = (() => {
|
|
310
310
|
var i, g;
|
|
311
311
|
return ((i = n == null ? void 0 : n.cards) == null ? void 0 : i.length) === 1 && ((g = n.cards[0]) != null && g.title) ? n.cards[0].title : h != null && h.title ? h.title : (l == null ? void 0 : l.title) || "Untitled Visual";
|
|
312
312
|
})(), w = Ae((i) => {
|
|
@@ -314,11 +314,11 @@ function yt() {
|
|
|
314
314
|
if (m(i), p && d && o) {
|
|
315
315
|
const g = {
|
|
316
316
|
...d,
|
|
317
|
-
id:
|
|
317
|
+
id: q(),
|
|
318
318
|
visualId: i.id
|
|
319
319
|
// Link to the newly created library visual
|
|
320
320
|
};
|
|
321
|
-
C(o, g, "end"),
|
|
321
|
+
C(o, g, "end"), N(g.id), c(!1), u(null), f(!1);
|
|
322
322
|
}
|
|
323
323
|
v(!0), a(!1);
|
|
324
324
|
}
|
|
@@ -358,11 +358,11 @@ function yt() {
|
|
|
358
358
|
const x = {
|
|
359
359
|
...A,
|
|
360
360
|
// Card title already synced
|
|
361
|
-
id:
|
|
361
|
+
id: q(),
|
|
362
362
|
visualId: void 0
|
|
363
363
|
// Explicitly no visualId for local visuals
|
|
364
364
|
};
|
|
365
|
-
C(o, x, "end"),
|
|
365
|
+
C(o, x, "end"), N(x.id), P.success("Visual saved to dashboard"), a(!1), f(!1);
|
|
366
366
|
}
|
|
367
367
|
},
|
|
368
368
|
isLibraryVisual: y,
|
|
@@ -373,8 +373,8 @@ function yt() {
|
|
|
373
373
|
function Ut({
|
|
374
374
|
className: e
|
|
375
375
|
}) {
|
|
376
|
-
const a = R((
|
|
377
|
-
saveAsDialogOpen:
|
|
376
|
+
const a = R((D) => D.frame), p = Se((D) => D.selectedVisual), c = B((D) => D.selectedFrameId), d = B((D) => D.selectedSheetId), { setIsVisualEditing: u, updateFrame: n } = X(), [l, h] = F(!1), [o, v] = F("both"), b = !!(a != null && a.visualId || p != null && p.id), m = !!(a != null && a.visualId && c), C = b && !m, {
|
|
377
|
+
saveAsDialogOpen: N,
|
|
378
378
|
setSaveAsDialogOpen: f,
|
|
379
379
|
handleSaveAs: y,
|
|
380
380
|
isLibraryVisual: S,
|
|
@@ -387,20 +387,20 @@ function Ut({
|
|
|
387
387
|
}
|
|
388
388
|
if (l) return;
|
|
389
389
|
h(!0);
|
|
390
|
-
const
|
|
390
|
+
const D = i(), A = ie(D);
|
|
391
391
|
if (A) {
|
|
392
392
|
h(!1), P.error(A);
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
395
|
const x = {
|
|
396
|
-
...
|
|
396
|
+
...D,
|
|
397
397
|
visualId: void 0
|
|
398
398
|
};
|
|
399
399
|
n(d, x), setTimeout(() => {
|
|
400
400
|
h(!1), P.success("Changes applied. Visual is now local to this dashboard"), u(!1);
|
|
401
401
|
}, 300);
|
|
402
|
-
}, E = (
|
|
403
|
-
v(
|
|
402
|
+
}, E = (D) => {
|
|
403
|
+
v(D), f(!0);
|
|
404
404
|
};
|
|
405
405
|
return /* @__PURE__ */ s(O, { children: [
|
|
406
406
|
/* @__PURE__ */ s("div", { className: "inline-flex items-center overflow-hidden rounded-md border border-input", children: [
|
|
@@ -494,9 +494,9 @@ function Ut({
|
|
|
494
494
|
/* @__PURE__ */ t(
|
|
495
495
|
wt,
|
|
496
496
|
{
|
|
497
|
-
open:
|
|
498
|
-
onOpenChange: (
|
|
499
|
-
r || f(
|
|
497
|
+
open: N,
|
|
498
|
+
onOpenChange: (D) => {
|
|
499
|
+
r || f(D);
|
|
500
500
|
},
|
|
501
501
|
isLibraryVisual: S,
|
|
502
502
|
currentVisualName: w,
|
|
@@ -569,7 +569,7 @@ function Vt({
|
|
|
569
569
|
}
|
|
570
570
|
function Pt(e, a, p, c) {
|
|
571
571
|
T(() => {
|
|
572
|
-
e && !p && a && c(
|
|
572
|
+
e && !p && a && c(_e(a));
|
|
573
573
|
}, [e, p, a, c]);
|
|
574
574
|
}
|
|
575
575
|
function xt({
|
|
@@ -589,7 +589,7 @@ function xt({
|
|
|
589
589
|
default:
|
|
590
590
|
return /* @__PURE__ */ t(j, { className: "text-foreground-muted mt-0.5 h-5 w-5 shrink-0 animate-spin" });
|
|
591
591
|
}
|
|
592
|
-
}, u =
|
|
592
|
+
}, u = $(e.status), n = (() => {
|
|
593
593
|
switch (e.status) {
|
|
594
594
|
case "pending":
|
|
595
595
|
return "Queued...";
|
|
@@ -616,7 +616,7 @@ function xt({
|
|
|
616
616
|
] }),
|
|
617
617
|
e.fileSize && /* @__PURE__ */ s(O, { children: [
|
|
618
618
|
/* @__PURE__ */ t("span", { children: "•" }),
|
|
619
|
-
/* @__PURE__ */ t("span", { children:
|
|
619
|
+
/* @__PURE__ */ t("span", { children: $e(e.fileSize) })
|
|
620
620
|
] })
|
|
621
621
|
] }),
|
|
622
622
|
u && /* @__PURE__ */ t("div", { className: "text-xs text-muted-foreground", children: n }),
|
|
@@ -663,8 +663,8 @@ function xt({
|
|
|
663
663
|
] })
|
|
664
664
|
] });
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const { authToken: e, tokenProps: a } =
|
|
666
|
+
function Nt() {
|
|
667
|
+
const { authToken: e, tokenProps: a } = _(), p = U((f) => f.activeExports), { clearCompleted: c, removeExport: d, updateExport: u } = te(), [n, l] = F(!1), [h, o] = F(!1), v = Array.from(p.values()).sort(
|
|
668
668
|
(f, y) => y.startedAt.getTime() - f.startedAt.getTime()
|
|
669
669
|
), b = v.some(
|
|
670
670
|
(f) => f.status === "completed" || f.status === "failed"
|
|
@@ -724,7 +724,7 @@ function Dt() {
|
|
|
724
724
|
const S = v.filter(
|
|
725
725
|
(r) => r.status === "completed" || r.status === "failed"
|
|
726
726
|
), w = await Promise.allSettled(
|
|
727
|
-
S.map(async (r) => (await
|
|
727
|
+
S.map(async (r) => (await K(f, y, r.id), r.id))
|
|
728
728
|
);
|
|
729
729
|
for (const r of w)
|
|
730
730
|
r.status === "fulfilled" ? d(r.value) : console.error("Failed to delete export:", r.reason);
|
|
@@ -737,12 +737,12 @@ function Dt() {
|
|
|
737
737
|
e == null ? void 0 : e.accessToken,
|
|
738
738
|
c,
|
|
739
739
|
d
|
|
740
|
-
]),
|
|
740
|
+
]), N = V(
|
|
741
741
|
async (f) => {
|
|
742
742
|
const y = a == null ? void 0 : a.apiServiceUrl, S = e == null ? void 0 : e.accessToken;
|
|
743
743
|
if (y && S)
|
|
744
744
|
try {
|
|
745
|
-
await
|
|
745
|
+
await K(y, S, f), d(f);
|
|
746
746
|
return;
|
|
747
747
|
} catch (w) {
|
|
748
748
|
console.error(`Failed to cancel export ${f}:`, w);
|
|
@@ -752,13 +752,13 @@ function Dt() {
|
|
|
752
752
|
[a == null ? void 0 : a.apiServiceUrl, e == null ? void 0 : e.accessToken, d]
|
|
753
753
|
);
|
|
754
754
|
return v.length === 0 ? /* @__PURE__ */ s("div", { className: "p-6 text-center", children: [
|
|
755
|
-
/* @__PURE__ */ t(
|
|
755
|
+
/* @__PURE__ */ t(Y, { className: "mx-auto mb-2 h-8 w-8 text-muted-foreground" }),
|
|
756
756
|
/* @__PURE__ */ t("p", { className: "text-sm text-muted-foreground", children: "No active exports" }),
|
|
757
757
|
/* @__PURE__ */ t("p", { className: "mt-1 text-xs text-muted-foreground", children: "Large exports will appear here" })
|
|
758
758
|
] }) : /* @__PURE__ */ s("div", { className: "flex flex-col", children: [
|
|
759
759
|
/* @__PURE__ */ s("div", { className: "flex items-center justify-between border-b px-4 py-3", children: [
|
|
760
760
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
761
|
-
/* @__PURE__ */ t(
|
|
761
|
+
/* @__PURE__ */ t(Y, { className: "h-5 w-5 text-muted-foreground" }),
|
|
762
762
|
/* @__PURE__ */ t("h4", { className: "font-semibold", children: "Exports" })
|
|
763
763
|
] }),
|
|
764
764
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-1", children: [
|
|
@@ -772,7 +772,7 @@ function Dt() {
|
|
|
772
772
|
disabled: n,
|
|
773
773
|
title: "Refresh status",
|
|
774
774
|
children: /* @__PURE__ */ t(
|
|
775
|
-
|
|
775
|
+
qe,
|
|
776
776
|
{
|
|
777
777
|
className: `h-4 w-4 ${n ? "animate-spin" : ""}`
|
|
778
778
|
}
|
|
@@ -796,7 +796,7 @@ function Dt() {
|
|
|
796
796
|
xt,
|
|
797
797
|
{
|
|
798
798
|
export: f,
|
|
799
|
-
onRemove:
|
|
799
|
+
onRemove: N
|
|
800
800
|
},
|
|
801
801
|
f.id
|
|
802
802
|
)) }) })
|
|
@@ -805,7 +805,7 @@ function Dt() {
|
|
|
805
805
|
function Bt({
|
|
806
806
|
variant: e
|
|
807
807
|
}) {
|
|
808
|
-
const a = U((h) => h.activeExports), p =
|
|
808
|
+
const a = U((h) => h.activeExports), p = Ke(), c = a.size > 0, d = Array.from(a.values()).some(
|
|
809
809
|
(h) => h.status === "completed" || h.status === "failed"
|
|
810
810
|
), n = p > 0 ? p > 9 ? "9+" : String(p) : null;
|
|
811
811
|
return /* @__PURE__ */ s(he, { children: [
|
|
@@ -817,7 +817,7 @@ function Bt({
|
|
|
817
817
|
className: "relative h-8 w-8",
|
|
818
818
|
"aria-label": "Export notifications",
|
|
819
819
|
children: [
|
|
820
|
-
/* @__PURE__ */ t(
|
|
820
|
+
/* @__PURE__ */ t(We, { className: "h-4 w-4" }),
|
|
821
821
|
c && /* @__PURE__ */ t(
|
|
822
822
|
"span",
|
|
823
823
|
{
|
|
@@ -828,10 +828,10 @@ function Bt({
|
|
|
828
828
|
]
|
|
829
829
|
}
|
|
830
830
|
) }),
|
|
831
|
-
/* @__PURE__ */ t(pe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(
|
|
831
|
+
/* @__PURE__ */ t(pe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(Nt, {}) })
|
|
832
832
|
] });
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Dt(e) {
|
|
835
835
|
if (e)
|
|
836
836
|
return {
|
|
837
837
|
renamed: e.type === "rename" ? { oldId: e.oldId, newId: e.newId } : void 0,
|
|
@@ -858,9 +858,9 @@ function Ot({
|
|
|
858
858
|
open: e,
|
|
859
859
|
onOpenChange: a,
|
|
860
860
|
initialCreateFlowActive: d === "create"
|
|
861
|
-
}), m = B((A) => A.dashboard), { setDashboardControlsModel: C } = X(), { participants:
|
|
861
|
+
}), m = B((A) => A.dashboard), { setDashboardControlsModel: C } = X(), { participants: N } = Je(Ye(m)), f = Array.from(
|
|
862
862
|
new Map(
|
|
863
|
-
|
|
863
|
+
N.flatMap(
|
|
864
864
|
(A) => A.fieldChoices.map((x) => {
|
|
865
865
|
var k;
|
|
866
866
|
return [
|
|
@@ -875,7 +875,7 @@ function Ot({
|
|
|
875
875
|
).values()
|
|
876
876
|
), y = Array.from(
|
|
877
877
|
new Map(
|
|
878
|
-
|
|
878
|
+
N.flatMap(
|
|
879
879
|
(A) => A.metricChoices.map((x) => {
|
|
880
880
|
var k;
|
|
881
881
|
return [
|
|
@@ -888,14 +888,14 @@ function Ot({
|
|
|
888
888
|
})
|
|
889
889
|
)
|
|
890
890
|
).values()
|
|
891
|
-
), S =
|
|
891
|
+
), S = Ze({
|
|
892
892
|
...m || {},
|
|
893
893
|
controls: []
|
|
894
|
-
}), w =
|
|
894
|
+
}), w = Qe(m), r = (A, x, k) => {
|
|
895
895
|
C(
|
|
896
896
|
A,
|
|
897
897
|
x,
|
|
898
|
-
|
|
898
|
+
Dt(k)
|
|
899
899
|
);
|
|
900
900
|
}, i = V(() => {
|
|
901
901
|
if (u) {
|
|
@@ -913,7 +913,7 @@ function Ot({
|
|
|
913
913
|
usageByControlId: et(m),
|
|
914
914
|
availableFieldChoices: f,
|
|
915
915
|
availableMetricChoices: y,
|
|
916
|
-
structuralParticipants:
|
|
916
|
+
structuralParticipants: N,
|
|
917
917
|
structuralParticipantIdsByControlId: w,
|
|
918
918
|
initialCreateFlow: d === "create",
|
|
919
919
|
onCreateFlowActiveChange: b,
|
|
@@ -921,7 +921,7 @@ function Ot({
|
|
|
921
921
|
onChange: r,
|
|
922
922
|
emptyMessage: "No dashboard controls yet."
|
|
923
923
|
}
|
|
924
|
-
), E = h ? "Add dashboard control" : "Dashboard Controls",
|
|
924
|
+
), E = h ? "Add dashboard control" : "Dashboard Controls", D = /* @__PURE__ */ s(O, { children: [
|
|
925
925
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
926
926
|
/* @__PURE__ */ t("h4", { className: "text-sm font-medium", children: "Dashboard Controls" }),
|
|
927
927
|
/* @__PURE__ */ t("p", { className: "text-xs text-muted-foreground", children: "Add shared controls viewers can use across the dashboard. Each card can decide how to respond to the same control." })
|
|
@@ -940,7 +940,7 @@ function Ot({
|
|
|
940
940
|
align: "end",
|
|
941
941
|
onEscapeKeyDown: o,
|
|
942
942
|
onPointerDownOutside: o,
|
|
943
|
-
children:
|
|
943
|
+
children: D
|
|
944
944
|
}
|
|
945
945
|
)
|
|
946
946
|
] }) : /* @__PURE__ */ t(ae, { open: v, onOpenChange: l, children: /* @__PURE__ */ s(
|
|
@@ -999,7 +999,7 @@ function zt({
|
|
|
999
999
|
onClick: a,
|
|
1000
1000
|
size: "sm",
|
|
1001
1001
|
children: [
|
|
1002
|
-
e ? /* @__PURE__ */ t(ht, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ t(
|
|
1002
|
+
e ? /* @__PURE__ */ t(ht, { className: "mr-2 h-4 w-4" }) : /* @__PURE__ */ t(W, { className: "mr-2 h-4 w-4" }),
|
|
1003
1003
|
"Filter"
|
|
1004
1004
|
]
|
|
1005
1005
|
}
|
|
@@ -1026,7 +1026,7 @@ function zt({
|
|
|
1026
1026
|
className: L("rounded-xl border border-border/60 p-1 shadow-sm", o),
|
|
1027
1027
|
children: [
|
|
1028
1028
|
/* @__PURE__ */ s(M, { onSelect: p, children: [
|
|
1029
|
-
/* @__PURE__ */ t(
|
|
1029
|
+
/* @__PURE__ */ t(W, { className: "mr-2 h-4 w-4" }),
|
|
1030
1030
|
"Add filter"
|
|
1031
1031
|
] }),
|
|
1032
1032
|
/* @__PURE__ */ s(M, { onSelect: c, children: [
|
|
@@ -1048,7 +1048,7 @@ function zt({
|
|
|
1048
1048
|
export {
|
|
1049
1049
|
Mt as A,
|
|
1050
1050
|
Ot as D,
|
|
1051
|
-
|
|
1051
|
+
Nt as E,
|
|
1052
1052
|
Bt as N,
|
|
1053
1053
|
Vt as U,
|
|
1054
1054
|
Ut as V,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const v=require("react"),e=require("./index-
|
|
1
|
+
"use strict";const v=require("react"),e=require("./index-BY0YEY92.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-AsQy4tbh.js"),k=require("./use-visual-utils-CI-7TNJI.js"),L=require("./date-formatter-CqXdM6JO.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),a=require("./index-BY0YEY92.js");require("react");require("react-dom");function i(){const o=a.useDashboardStore(e=>e.dashboard),r=a.useDashboardStore(e=>e.actions.setDashboard),t=a.useDashboardStore(e=>e.showDashboardJSON),n=a.useDashboardStore(e=>e.actions.setShowDashboardJSON);return s.jsxs("div",{className:a.cn("relative p-2",{hidden:!t}),children:[s.jsxs(a.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>n(!1),children:[s.jsx(a.X,{className:"mr-2 h-4 w-4"}),"Close"]}),s.jsx(a.de,{onChange:e=>{if(e)try{JSON.parse(e),r(JSON.parse(e))}catch{}},defaultLanguage:"json",className:"h-[550px] overflow-y-auto",value:JSON.stringify(o,null,2),options:{minimap:{enabled:!1},glyphMargin:!1,wordWrap:"on",scrollbar:{verticalScrollbarSize:0,horizontalScrollbarSize:0},fontSize:12,renderLineHighlight:"none"}})]})}exports.default=i;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { u as s, c as l, B as h, X as d, d as c } from "./index-
|
|
2
|
+
import { u as s, c as l, B as h, X as d, d as c } from "./index-Bgn4zTsp.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
function N() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-ZpmXTndp.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),v=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[S,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!v||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,v]);l.useEffect(()=>{v&&b()},[v,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:S,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:v,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),S=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(S),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(S),b(p))},[r,j,s.userHasPrefs,S,p]);const h=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||v;return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Calendar Preferences"}),e.jsx(a.DialogDescription,{children:"Set your timezone and week start preferences for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-6 py-4",children:[e.jsxs(a.RadioGroup,{value:m?"defaults":"custom",onValueChange:t=>{c(!0),n(t==="defaults")},className:"space-y-3",children:[e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-primary bg-primary/5":"border-border hover:border-muted-foreground/50"),onClick:()=>{c(!0),n(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs(a.Label,{htmlFor:"mode-defaults",className:"cursor-pointer font-medium",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-border hover:border-muted-foreground/50":"border-primary bg-primary/5"),onClick:()=>{c(!0),n(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom"}),e.jsx(a.Label,{htmlFor:"mode-custom",className:"cursor-pointer font-medium",children:"Use custom settings"})]})]}),e.jsxs("div",{className:a.cn("space-y-6 transition-opacity",m&&"opacity-50 pointer-events-none"),children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{children:"Timezone"}),e.jsxs(a.Popover,{open:T,onOpenChange:N,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":T,className:"w-full justify-between",disabled:m,children:[P,e.jsx(a.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(a.Command,{className:"overflow-visible",children:[e.jsx(a.CommandInput,{placeholder:"Search timezones..."}),e.jsxs(a.CommandList,{children:[e.jsx(a.CommandEmpty,{children:"No timezone found."}),e.jsx(a.CommandGroup,{heading:"Common",children:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.value})]},t.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All Timezones",children:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t?"opacity-100":"opacity-0")}),t]},t))})]})]})})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(a.Label,{children:"Week Starts On"}),e.jsx(a.RadioGroup,{value:String(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.map(t=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(a.RadioGroupItem,{value:String(t.value),id:`week-start-${t.value}`,disabled:m}),e.jsx(a.Label,{htmlFor:`week-start-${t.value}`,className:a.cn("cursor-pointer font-normal",m&&"cursor-not-allowed"),children:t.label})]},t.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:$,disabled:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:v,disabled:d=!1}){const[f,y]=l.useState(!1),[g,S]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),S((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{v({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.Switch,{size:"sm",id:"dashboard-summary-enabled",checked:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>S(x),children:[e.jsx(a.SelectTrigger,{id:"dashboard-summary-position",children:e.jsx(a.SelectValue,{placeholder:"Select position"})}),e.jsxs(a.SelectContent,{children:[e.jsx(a.SelectItem,{value:"top",children:"Top"}),e.jsx(a.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-max-items",children:"Max Items"}),e.jsx(a.Input,{id:"dashboard-summary-max-items",type:"number",min:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&e.jsx("p",{className:"text-xs text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),l=require("react"),a=require("./index-BY0YEY92.js");function W(r={}){var C,I,P,D;const{authToken:o,tokenProps:s}=a.useSemaphorContext(),v=r.enabled??!0,d=(o==null?void 0:o.accessToken)??null,f=(s==null?void 0:s.apiServiceUrl)??null,[y,g]=l.useState(!1),[S,p]=l.useState(!1),[m,n]=l.useState(!1),[j,c]=l.useState(null),[x,w]=l.useState(null),k=x||{tz:((I=(C=s==null?void 0:s.params)==null?void 0:C.calendarContext)==null?void 0:I.tz)||null,weekStart:((D=(P=s==null?void 0:s.params)==null?void 0:P.calendarContext)==null?void 0:D.weekStart)??null},b=l.useCallback(async()=>{if(!(!v||!d||!f)){g(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"GET",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to fetch preferences")}const i=await u.json();w({tz:i.tz,weekStart:i.weekStart,source:i.source,isInherited:i.isInherited,userHasPrefs:i.userHasPrefs,inherited:i.inherited})}catch(u){const i=u instanceof Error?u.message:"Unknown error";c(i)}finally{g(!1)}}},[d,f,v]);l.useEffect(()=>{v&&b()},[v,b]);const T=l.useCallback(async u=>{if(!d||!f)return c("Not authenticated"),!1;p(!0),c(null);try{const i=await fetch(`${f}/v1/user-preferences/calendar`,{method:"PATCH",headers:{"Content-Type":"application/json",Authorization:`Bearer ${d}`},body:JSON.stringify(u)});if(!i.ok){const h=await i.json().catch(()=>({}));throw new Error(h.error||"Failed to update preferences")}return await b(),!0}catch(i){const h=i instanceof Error?i.message:"Unknown error";return c(h),!1}finally{p(!1)}},[d,f,b]),N=l.useCallback(async()=>{if(!d||!f)return c("Not authenticated"),!1;n(!0),c(null);try{const u=await fetch(`${f}/v1/user-preferences/calendar`,{method:"DELETE",headers:{Authorization:`Bearer ${d}`}});if(!u.ok){const h=await u.json().catch(()=>({}));throw new Error(h.error||"Failed to clear preferences")}const i=await u.text();if(i)try{const h=JSON.parse(i);return w({tz:h.tz,weekStart:h.weekStart,source:h.source,isInherited:h.isInherited??!0,userHasPrefs:!1,inherited:h.inherited}),!0}catch{}return await b(),!0}catch(u){const i=u instanceof Error?u.message:"Unknown error";return c(i),!1}finally{n(!1)}},[d,f,b]);return{preferences:k,isLoading:y,isSaving:S,isClearing:m,error:j,updatePreferences:T,clearPreferences:N,refetch:b}}const A=[{value:"America/New_York",label:"Eastern Time (US & Canada)"},{value:"America/Chicago",label:"Central Time (US & Canada)"},{value:"America/Denver",label:"Mountain Time (US & Canada)"},{value:"America/Los_Angeles",label:"Pacific Time (US & Canada)"},{value:"America/Phoenix",label:"Arizona"},{value:"America/Anchorage",label:"Alaska"},{value:"Pacific/Honolulu",label:"Hawaii"},{value:"Europe/London",label:"London"},{value:"Europe/Paris",label:"Paris, Berlin, Rome"},{value:"Asia/Tokyo",label:"Tokyo"},{value:"Asia/Shanghai",label:"Beijing, Shanghai"},{value:"Asia/Kolkata",label:"Mumbai, New Delhi"},{value:"Australia/Sydney",label:"Sydney"},{value:"UTC",label:"UTC"}],H=[{value:0,label:"Sunday"},{value:1,label:"Monday"},{value:6,label:"Saturday"}];function G(){try{const r=Intl;if(r.supportedValuesOf)return r.supportedValuesOf("timeZone")}catch{}return A.map(r=>r.value)}function V(r){switch(r){case"tenant":return"tenant";case"organization":return"organization";case"system":return"system";default:return"default"}}function U(r){const o=A.find(s=>s.value===r);return o?o.label:r}function X(r){const o=H.find(s=>s.value===r);return o?o.label:String(r)}function q({open:r,onOpenChange:o}){var M,z,F;const{preferences:s,isLoading:v,isSaving:d,isClearing:f,updatePreferences:y,clearPreferences:g}=W({enabled:r}),S=s.tz||((M=s.inherited)==null?void 0:M.tz)||Intl.DateTimeFormat().resolvedOptions().timeZone,p=s.weekStart??((z=s.inherited)==null?void 0:z.weekStart)??1,[m,n]=l.useState(!s.userHasPrefs),[j,c]=l.useState(!1),[x,w]=l.useState(S),[k,b]=l.useState(p),[T,N]=l.useState(!1),C=l.useMemo(()=>G(),[]),I=l.useMemo(()=>C.filter(t=>!A.some(R=>R.value===t)),[C]),P=l.useMemo(()=>U(x),[x]),D=s.inherited?U(s.inherited.tz):"UTC",u=s.inherited?X(s.inherited.weekStart):"Monday",i=V((F=s.inherited)==null?void 0:F.source);l.useEffect(()=>{if(!r){c(!1);return}j||(s.userHasPrefs!==void 0&&n(!s.userHasPrefs),w(S),b(p))},[r,j,s.userHasPrefs,S,p]);const h=async()=>{if(v){a.ue.error("Preferences are still loading. Please try again.");return}m?await g()?(a.ue.success("Now using default settings. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again."):await y({tz:x,weekStart:k})?(a.ue.success("Preferences saved. Please refresh the page to apply changes.",{duration:5e3}),o(!1)):a.ue.error("Failed to save preferences. Please try again.")},$=()=>{o(!1)},L=d||f,O=L||v;return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[425px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Calendar Preferences"}),e.jsx(a.DialogDescription,{children:"Set your timezone and week start preferences for date calculations and displays."})]}),e.jsxs("div",{className:"space-y-6 py-4",children:[e.jsxs(a.RadioGroup,{value:m?"defaults":"custom",onValueChange:t=>{c(!0),n(t==="defaults")},className:"space-y-3",children:[e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-primary bg-primary/5":"border-border hover:border-muted-foreground/50"),onClick:()=>{c(!0),n(!0)},children:[e.jsx(a.RadioGroupItem,{value:"defaults",id:"mode-defaults"}),e.jsxs("div",{className:"flex-1 space-y-1",children:[e.jsxs(a.Label,{htmlFor:"mode-defaults",className:"cursor-pointer font-medium",children:["Use ",i," defaults"]}),e.jsxs("p",{className:"text-sm text-muted-foreground",children:[D,", Week starts ",u]})]})]}),e.jsxs("div",{className:a.cn("flex items-start space-x-3 rounded-lg border p-4 cursor-pointer transition-colors",m?"border-border hover:border-muted-foreground/50":"border-primary bg-primary/5"),onClick:()=>{c(!0),n(!1)},children:[e.jsx(a.RadioGroupItem,{value:"custom",id:"mode-custom"}),e.jsx(a.Label,{htmlFor:"mode-custom",className:"cursor-pointer font-medium",children:"Use custom settings"})]})]}),e.jsxs("div",{className:a.cn("space-y-6 transition-opacity",m&&"opacity-50 pointer-events-none"),children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{children:"Timezone"}),e.jsxs(a.Popover,{open:T,onOpenChange:N,modal:!0,children:[e.jsx(a.PopoverTrigger,{asChild:!0,children:e.jsxs(a.Button,{variant:"outline",role:"combobox","aria-expanded":T,className:"w-full justify-between",disabled:m,children:[P,e.jsx(a.ChevronsUpDown,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]})}),e.jsx(a.PopoverContent,{className:"z-50 w-[--radix-popover-trigger-width] p-0",align:"start",children:e.jsxs(a.Command,{className:"overflow-visible",children:[e.jsx(a.CommandInput,{placeholder:"Search timezones..."}),e.jsxs(a.CommandList,{children:[e.jsx(a.CommandEmpty,{children:"No timezone found."}),e.jsx(a.CommandGroup,{heading:"Common",children:A.map(t=>e.jsxs(a.CommandItem,{value:`${t.value} ${t.label}`,onSelect:()=>{c(!0),w(t.value),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t.value?"opacity-100":"opacity-0")}),e.jsx("span",{className:"flex-1",children:t.label}),e.jsx("span",{className:"text-xs text-muted-foreground",children:t.value})]},t.value))}),e.jsx(a.CommandSeparator,{}),e.jsx(a.CommandGroup,{heading:"All Timezones",children:I.map(t=>e.jsxs(a.CommandItem,{value:t,onSelect:()=>{c(!0),w(t),N(!1)},children:[e.jsx(a.Check,{className:a.cn("mr-2 h-4 w-4",x===t?"opacity-100":"opacity-0")}),t]},t))})]})]})})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(a.Label,{children:"Week Starts On"}),e.jsx(a.RadioGroup,{value:String(k),onValueChange:t=>{c(!0),b(Number(t))},className:"flex gap-4",disabled:m,children:H.map(t=>e.jsxs("div",{className:"flex items-center space-x-2",children:[e.jsx(a.RadioGroupItem,{value:String(t.value),id:`week-start-${t.value}`,disabled:m}),e.jsx(a.Label,{htmlFor:`week-start-${t.value}`,className:a.cn("cursor-pointer font-normal",m&&"cursor-not-allowed"),children:t.label})]},t.value))})]})]})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:$,disabled:L,children:"Cancel"}),e.jsx(a.Button,{onClick:h,disabled:O,children:L?e.jsxs(e.Fragment,{children:[e.jsx(a.LoaderCircle,{className:"mr-2 h-4 w-4 animate-spin"}),"Saving..."]}):"Save"})]})]})})}const E=6,B=1,_=20;function Z(r){return Number.isNaN(r)?E:Math.min(_,Math.max(B,r))}function J({open:r,onOpenChange:o,dashboard:s,onApply:v,disabled:d=!1}){const[f,y]=l.useState(!1),[g,S]=l.useState("top"),[p,m]=l.useState(String(E)),n=s.summary;l.useEffect(()=>{r&&(y((n==null?void 0:n.enabled)===!0),S((n==null?void 0:n.position)==="bottom"?"bottom":"top"),m(String((n==null?void 0:n.maxItems)??E)))},[r,n==null?void 0:n.enabled,n==null?void 0:n.position,n==null?void 0:n.maxItems]);const j=l.useMemo(()=>Z(Number.parseInt(p||`${E}`,10)),[p]),c=()=>{v({enabled:f,position:g,maxItems:j}),o(!1)};return e.jsx(a.Dialog,{open:r,onOpenChange:o,children:e.jsxs(a.DialogContent,{className:"sm:max-w-[420px]",children:[e.jsxs(a.DialogHeader,{children:[e.jsx(a.DialogTitle,{children:"Summary Settings"}),e.jsx(a.DialogDescription,{children:"Configure dashboard-level summary display. Card-level summary settings still control which cards contribute."})]}),e.jsxs("div",{className:"space-y-4 py-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-enabled",children:"Enable Dashboard Summary"}),e.jsx(a.Switch,{size:"sm",id:"dashboard-summary-enabled",checked:f,disabled:d,onCheckedChange:y})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-position",children:"Position"}),e.jsxs(a.Select,{value:g,disabled:d,onValueChange:x=>S(x),children:[e.jsx(a.SelectTrigger,{id:"dashboard-summary-position",children:e.jsx(a.SelectValue,{placeholder:"Select position"})}),e.jsxs(a.SelectContent,{children:[e.jsx(a.SelectItem,{value:"top",children:"Top"}),e.jsx(a.SelectItem,{value:"bottom",children:"Bottom"})]})]})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(a.Label,{htmlFor:"dashboard-summary-max-items",children:"Max Items"}),e.jsx(a.Input,{id:"dashboard-summary-max-items",type:"number",min:B,max:_,disabled:d,value:p,onChange:x=>m(x.target.value),onBlur:()=>m(String(j))}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Display limit only. Computation is unchanged."})]}),d&&e.jsx("p",{className:"text-xs text-amber-700",children:"Enter dashboard edit mode to modify summary settings."})]}),e.jsxs(a.DialogFooter,{children:[e.jsx(a.Button,{variant:"outline",onClick:()=>o(!1),children:"Cancel"}),e.jsx(a.Button,{onClick:c,disabled:d,children:"Apply"})]})]})})}exports.CalendarPreferencesDialog=q;exports.DashboardSummarySettingsDialog=J;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e, jsxs as a, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import de, { useState as f, useCallback as j, useEffect as K, useMemo as F } from "react";
|
|
3
|
-
import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-
|
|
3
|
+
import { b as ue, e as q, f as Y, g as Q, h as ee, i as ae, R, c as k, j as $, L as y, P as me, k as he, B as E, C as fe, l as pe, m as ve, n as be, o as Se, p as ge, q as V, r as G, s as X, t as ye, v as re, w as we, x as P, S as xe, y as Ne, z as Ce, A as ke, E as Te, F as Z, I as Ie } from "./index-Bgn4zTsp.js";
|
|
4
4
|
function Pe(s = {}) {
|
|
5
5
|
var I, D, M, L;
|
|
6
6
|
const { authToken: i, tokenProps: r } = ue(), S = s.enabled ?? !0, o = (i == null ? void 0 : i.accessToken) ?? null, h = (r == null ? void 0 : r.apiServiceUrl) ?? null, [N, w] = f(!1), [g, v] = f(!1), [u, n] = f(!1), [x, c] = f(null), [p, C] = f(null), A = p || {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index-BY0YEY92.js"),N=require("react"),Ae=require("./use-create-flow-overlay-state-AsQy4tbh.js"),cn=require("react-dom");function dn(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const Ot=dn(N);/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e, Fragment as Ne } from "react/jsx-runtime";
|
|
2
|
-
import { bM as Pe,
|
|
2
|
+
import { bM as Pe, ea as Fo, x as ut, M as pe, U as F, eb as ai, ec as Ro, L as z, y as ee, z as te, A as ae, E as ne, F as j, ac as We, B as J, cu as St, ed as Hn, ee as ni, ef as si, eg as ri, eh as li, ei as Jn, a6 as Mt, X as nt, ej as Js, ch as Qn, e as pa, f as fa, g as ga, h as xa, i as Va, bZ as Ct, bW as gt, bT as vt, bU as mt, bV as ht, ek as ol, el as Lo, em as ii, v as zn, en as Ba, cR as Qa, c as W, cc as Nt, eo as oi, ep as xs, cD as ci, eq as Po, er as Vo, es as Bo, et as un, eu as zo, ev as di, ew as _o, ds as Qs, u as Me, ex as $o, ey as ui, ez as qo, eA as Yn, eB as jo, eC as qt, cB as La, cE as Ya, cF as Wa, eD as Vs, cH as Xa, cI as dt, eE as za, eF as Ko, eG as Bs, eH as Rn, b as Ca, ag as mi, e9 as mn, eI as Ys, eJ as Go, eK as Uo, eL as hi, eM as pi, eN as fi, dJ as Ws, dH as Ho, I as Ie, P as Tt, eO as Jo, l as kt, eP as Qo, w as la, eQ as Yo, eR as Wo, H as Xo, eS as Zo, bN as Za, bO as wa, bP as Sa, bQ as xn, bR as Gt, bS as Pa, eT as zs, eU as Ht, eV as it, eW as Jt, eX as gi, eY as _n, eZ as $n, e_ as qn, e$ as Xs, dq as _a, f0 as xi, f1 as ec, f2 as tc, f3 as ac, C as bi, f4 as nc, f5 as sc, f6 as rc, f7 as lc, f8 as vi, f9 as ic, fa as bs, fb as oc, fc as cl, fd as cc, fe as dl, ff as Zs, fg as dc, fh as bn, fi as uc, R as vn, fj as Wn, fk as en, cS as er, fl as yi, j as ia, fm as mc, cn as Pt, co as _t, fn as hc, cp as $t, d1 as tr, dd as ar, N as Ni, fo as nr, fp as pc, fq as Ci, fr as wi, fs as zt, e2 as vs, ft as fc, fu as gc, fv as xc, fw as Si, ax as Ti, fx as ki, fy as bc, fz as vc, fA as yc, fB as hn, fC as Nc, fD as Cc, fE as ul, fF as wc, Z as Xn, a4 as sr, fG as Sc, fH as rr, du as Tc, fI as ml, a7 as pt, fJ as kc, dQ as lr, dR as ir, dS as ma, dT as Ln, fK as Ic, e3 as Dc, fL as Ii, fM as Ac, fN as Mc, d6 as Zn, fO as Ec, fP as Oc, fQ as hl, fR as Fc, k as Et, dp as ba, dv as es, cM as Lt, fS as ea, fT as va, fU as ya, fV as oa, fW as $a, fX as Rc, fY as Lc, b2 as Pc, fZ as Vc, f_ as Bc, f$ as zc, g0 as _c, dc as ha, g1 as $c, g2 as Di, g3 as qc, g4 as jc, g5 as Kc, g6 as Ai, dK as pl, c6 as Gc, cd as Ut, dl as Uc, g7 as Hc, g8 as Jc, g9 as Qc, ga as fl, gb as Yc, gc as Wc, gd as Xc, ge as Zc, af as ed, gf as td, gg as Mi, gh as ad, gi as nd, gj as sd, gk as rd, gl as ld, gm as id, gn as _s, go as od, gp as cd, gq as dd, gr as $s, gs as ud, gt as md, gu as hd, gv as pd, gw as gl, gx as fd, gy as xl, gz as bl, df as qs, cU as gd, gA as xd, cV as bd, cW as vd, cX as yd, cY as Nd, cZ as Cd, c_ as wd, c$ as Sd, gB as tn, gC as Td, S as He, gD as kd, gE as Id, gF as Ei, cG as or, dg as Dd, cJ as Ad, gG as Md, gH as Ed, gI as pn, gJ as jn, gK as Od, gL as qa, gM as Ke, gN as Ge, gO as Ue, gP as Fd, gQ as Rd, gR as Oi, gS as Fi, gT as aa, gU as Mn, gV as vl, gW as Ld, dr as Ri, gX as Pd, gY as Vd, gZ as Bd, g_ as yn, g$ as zd, h0 as _d, h1 as $d, m as ja, n as Ka, o as Ga, p as Ua, q as Ha, r as Ja, h2 as qd, h3 as jd, h4 as yl, h5 as Kd, s as Ta, h6 as Gd, h7 as ys, h8 as Nl, h9 as Ud, ha as At, hb as Hd, hc as Jd, hd as Qd, he as Yd, hf as Wd, hg as Ns, hh as Li, hi as Xd, hj as Zd, hk as eu, hl as Kn, hm as tu, hn as au, ho as cr, hp as dr, hq as Pi, hr as nu, d4 as Vi, hs as Bi, ht as zi, hu as su, e8 as ru, hv as et, hw as lu, bg as iu, hx as En, hy as ou, hz as Cl, hA as cu, hB as du, bc as wl, hC as Sl, hD as uu, hE as mu, hF as hu, hG as pu, hH as fu, hI as gu, hJ as xu, hK as bu, hL as vu, hM as yu, hN as Nu, hO as Cu, hP as wu, hQ as Su, hR as _i, hS as Tu, hT as ku, hU as Iu, hV as Du, hW as Au, hX as Mu, hY as Eu, hZ as Ou, h_ as Fu, h$ as Ru, i0 as Lu, i1 as $i, i2 as Pu, i3 as ur, i4 as ts, i5 as qi, i6 as Vu, i7 as Bu, i8 as zu, i9 as _u, ia as $u, ib as qu, ic as as, id as Cs, ie as ju, ig as Ku, ih as Gu, ii as Uu, ij as Hu, ik as Tl, il as Na, im as Ju, io as ji, ip as Ki, iq as js, ir as Gi, is as kl, d8 as Il, it as Qu, iu as Yu, iv as Wu, iw as Pn, ix as Xu, iy as mr, iz as Zu, iA as em, iB as Gn, iC as tm, iD as am, iE as nm, iF as fn, iG as na, iH as Ks, iI as Gs, iJ as gn, iK as Ui, aY as sm, iL as rm, iM as ws, iN as Ss, iO as lm, iP as Ts, iQ as im, iR as Dl, iS as Al, iT as om, iU as cm, iV as dm, iW as um, iX as mm, iY as hm, iZ as ns, cO as ss, i_ as rs, i$ as Ml, j0 as Hi, dZ as ks, j1 as pm, j2 as fm, j3 as gm, _ as xm } from "./index-Bgn4zTsp.js";
|
|
3
3
|
import * as Vn from "react";
|
|
4
4
|
import ta, { useState as G, useRef as Ee, useEffect as Ce, useCallback as Se, useMemo as ce, useContext as hr, Suspense as bm } from "react";
|
|
5
|
-
import { C as El, f as pr, g as wt, V as Ji, u as vm, e as ym } from "./use-create-flow-overlay-state-
|
|
5
|
+
import { C as El, f as pr, g as wt, V as Ji, u as vm, e as ym } from "./use-create-flow-overlay-state-COsIHnQp.js";
|
|
6
6
|
import { createPortal as Nm } from "react-dom";
|
|
7
7
|
/**
|
|
8
8
|
* @license lucide-react v0.453.0 - ISC
|