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.
Files changed (33) hide show
  1. package/dist/chunks/{dashboard-controls-I3SWzXID.js → dashboard-controls-B_F5f_BF.js} +4 -4
  2. package/dist/chunks/{dashboard-controls-Cm_n6Dce.js → dashboard-controls-XX9__V-e.js} +1 -1
  3. package/dist/chunks/{dashboard-filter-controls-button-DuifafhB.js → dashboard-filter-controls-button-DVLBLHga.js} +60 -60
  4. package/dist/chunks/{dashboard-filter-controls-button-DXXJnFns.js → dashboard-filter-controls-button-DZpvfXwU.js} +1 -1
  5. package/dist/chunks/{dashboard-json--iZU90D2.js → dashboard-json-CexNQg-E.js} +1 -1
  6. package/dist/chunks/{dashboard-json-C0_fJrmP.js → dashboard-json-Dd9Q2bZm.js} +1 -1
  7. package/dist/chunks/{dashboard-summary-settings-dialog-DOofgrKU.js → dashboard-summary-settings-dialog-BjdrHb1l.js} +1 -1
  8. package/dist/chunks/{dashboard-summary-settings-dialog-BzWnRhFU.js → dashboard-summary-settings-dialog-zdacBYZZ.js} +1 -1
  9. package/dist/chunks/{edit-dashboard-visual-DEuJScSB.js → edit-dashboard-visual-Bi9pQx6G.js} +1 -1
  10. package/dist/chunks/{edit-dashboard-visual-CEb2cSMS.js → edit-dashboard-visual-DQts3aun.js} +2 -2
  11. package/dist/chunks/{index-ZpmXTndp.js → index-BY0YEY92.js} +223 -223
  12. package/dist/chunks/{index-BzQ2UBDI.js → index-Bgn4zTsp.js} +25446 -24525
  13. package/dist/chunks/{resource-management-panel-DNez0W3b.js → resource-management-panel--xIMLPdz.js} +2 -2
  14. package/dist/chunks/{resource-management-panel-DMHJbuqI.js → resource-management-panel-w7afzaPB.js} +1 -1
  15. package/dist/chunks/use-create-flow-overlay-state-AsQy4tbh.js +21 -0
  16. package/dist/chunks/use-create-flow-overlay-state-COsIHnQp.js +1523 -0
  17. package/dist/chunks/{use-visual-utils-C2syL_qa.js → use-visual-utils-BCWNcaWk.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-D4Lp-wat.js → use-visual-utils-CI-7TNJI.js} +1 -1
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +5 -5
  23. package/dist/style.css +1 -1
  24. package/dist/surfboard/index.cjs +1 -1
  25. package/dist/surfboard/index.js +2 -2
  26. package/dist/types/dashboard.d.ts +9 -1
  27. package/dist/types/main.d.ts +9 -1
  28. package/dist/types/shared.d.ts +9 -1
  29. package/dist/types/surfboard.d.ts +9 -1
  30. package/dist/types/types.d.ts +9 -1
  31. package/package.json +1 -1
  32. package/dist/chunks/use-create-flow-overlay-state-BdoJfJmU.js +0 -21
  33. 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, dn as qs, u as x, cA as ra, cB as na, B as A, cD as oa, cE as Q, dp as ia, N as qa, b as $, e as la, dq as Hs, cr 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, dr as we, cI as We, ds as zs, dt as Pa, du as ja, c as Y, dv as za, dw as Bs, cZ as ha, dx as Ks, dy as Qs, dz as Ws, dA as Js, dB as Xs, dC as Ys, H as Me, W as Ae, x as I, dD as Le, dE as Ba, dF as Ka, d6 as Zs, dG as et, w as Z, cH as J, dH as at, dI as st, dJ as Je, dK as tt, dL as rt, dM as Qa, dN as Wa, dO as Ce, dP as Ee, d2 as Xe, cN as Ye, dQ as Ze, ce as Ja, dR as ea, c9 as Xa, dS as nt, cQ as Ya, cR as Za, cS as es, cT as as, cU as ss, cV as ts, cW as rs, cX as aa, dT as ns, cz as ot, dU as it, ag as lt, U as Ua, af as De, dV as ct, am as dt, ah as je, dW as ut, dX as mt, dY as ht, aB as pt, dZ as ft, d_ as gt, bT as vt, bU as bt, bV as yt, d$ as Nt, bW as St, cF as xt, at as Dt, e0 as wt, e1 as Ct, dm as Et, e2 as Mt, e3 as At, cC as Lt, a9 as It, cK as kt, e4 as Ot, al as Tt, aa as _t, as as Pt, e5 as Ut } from "./index-BzQ2UBDI.js";
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-DuifafhB.js";
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-BzWnRhFU.js";
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-BvBTFIgX.js";
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-ZpmXTndp.js"),x=require("react");require("react-dom");const P=require("./dashboard-filter-controls-button-DXXJnFns.js"),_s=require("./date-formatter-CqXdM6JO.js"),Xe=require("./dashboard-summary-settings-dialog-DOofgrKU.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-BdoJfJmU.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);/**
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 Z, 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, d6 as ye, v as xe, B as I, w as j, U as R, J as De, u as B, K as Ne, N as X, d7 as Ae, d8 as K, x as P, b_ as ie, af as Se, c as L, cA as le, cB as de, a6 as ce, cD as ue, cE as M, s as Ee, cI as Ie, cr as Le, M as Fe, d9 as Te, da as ke, db as Ue, cQ as Me, cR as Ve, cS as Pe, cT as Be, cU as Oe, cV as ze, cW as Re, as as $e, bL as _e, X as He, dc as je, dd as Xe, cw as Ge, bH as W, a8 as Ke, aF as We, P as he, k as me, de as qe, l as pe, df as Je, dg as Qe, dh as Ye, di as Ze, dj as et, dk as fe, dl as q, dm as tt } from "./index-BzQ2UBDI.js";
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-BvBTFIgX.js";
5
- import { u as ve } from "./use-visual-utils-C2syL_qa.js";
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 Q = Z("FileDown", [
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 = Z("FilterX", [
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, Y = 2 * 60 * 60 * 1e3;
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 } = $(), p = U((m) => m.activeExports), [c, d] = F(
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) => _(C.status)
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(), D = m.filter(
63
- (r) => C - r.startedAt.getTime() > Y
62
+ const C = Date.now(), N = m.filter(
63
+ (r) => C - r.startedAt.getTime() > Z
64
64
  );
65
- if (D.length > 0) {
65
+ if (N.length > 0) {
66
66
  const { updateExport: r } = U.getState().actions;
67
- for (const i of D)
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() <= Y
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 } = $(), 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;
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: (D) => h(D.target.value),
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: (D) => v(D.target.value),
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 = De(), o = B((i) => i.selectedSheetId), v = B(
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 } = Ne(), { addFrame: C, setSelectedFrameId: D, setIsVisualEditing: f } = X(), y = !!(n != null && n.visualId), S = (() => {
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: K(),
317
+ id: q(),
318
318
  visualId: i.id
319
319
  // Link to the newly created library visual
320
320
  };
321
- C(o, g, "end"), D(g.id), c(!1), u(null), f(!1);
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: K(),
361
+ id: q(),
362
362
  visualId: void 0
363
363
  // Explicitly no visualId for local visuals
364
364
  };
365
- C(o, x, "end"), D(x.id), P.success("Visual saved to dashboard"), a(!1), f(!1);
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((N) => N.frame), p = Se((N) => N.selectedVisual), c = B((N) => N.selectedFrameId), d = B((N) => N.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: D,
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 N = i(), A = ie(N);
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
- ...N,
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 = (N) => {
403
- v(N), f(!0);
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: D,
498
- onOpenChange: (N) => {
499
- r || f(N);
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($e(a));
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 = _(e.status), n = (() => {
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: _e(e.fileSize) })
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 Dt() {
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(
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 W(f, y, r.id), r.id))
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
- ]), D = V(
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 W(y, S, f), d(f);
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(Q, { className: "mx-auto mb-2 h-8 w-8 text-muted-foreground" }),
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(Q, { className: "h-5 w-5 text-muted-foreground" }),
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
- Ke,
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: D
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 = We(), c = a.size > 0, d = Array.from(a.values()).some(
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(qe, { className: "h-4 w-4" }),
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(Dt, {}) })
831
+ /* @__PURE__ */ t(pe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(Nt, {}) })
832
832
  ] });
833
833
  }
834
- function Nt(e) {
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: D } = Je(Qe(m)), f = Array.from(
861
+ }), m = B((A) => A.dashboard), { setDashboardControlsModel: C } = X(), { participants: N } = Je(Ye(m)), f = Array.from(
862
862
  new Map(
863
- D.flatMap(
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
- D.flatMap(
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 = Ye({
891
+ ), S = Ze({
892
892
  ...m || {},
893
893
  controls: []
894
- }), w = Ze(m), r = (A, x, k) => {
894
+ }), w = Qe(m), r = (A, x, k) => {
895
895
  C(
896
896
  A,
897
897
  x,
898
- Nt(k)
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: D,
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", N = /* @__PURE__ */ s(O, { children: [
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: N
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(q, { className: "mr-2 h-4 w-4" }),
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(q, { className: "mr-2 h-4 w-4" }),
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
- Dt as E,
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-ZpmXTndp.js"),t=require("react/jsx-runtime"),I=require("./use-create-flow-overlay-state-BdoJfJmU.js"),k=require("./use-visual-utils-D4Lp-wat.js"),L=require("./date-formatter-CqXdM6JO.js");/**
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-ZpmXTndp.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
+ "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-BzQ2UBDI.js";
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-BzQ2UBDI.js";
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-ZpmXTndp.js"),N=require("react"),Ae=require("./use-create-flow-overlay-state-BdoJfJmU.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);/**
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, e6 as Fo, x as ut, M as pe, U as F, e7 as ai, e8 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, cr as St, e9 as Hn, ea as ni, eb as si, ec as ri, ed as li, ee as Jn, a6 as Mt, X as nt, ef as Js, ce 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, eg as ol, eh as Lo, ei as ii, v as zn, ej as Ba, cN as Qa, c as W, c9 as Nt, ek as oi, el as xs, cz as ci, em as Po, en as Vo, eo as Bo, ep as un, eq as zo, er as di, es as _o, dn as Qs, u as Me, et as $o, eu as ui, ev as qo, ew as Yn, ex as jo, ey as qt, cx as La, cA as Ya, cB as Wa, ez as Vs, cD as Xa, cE as dt, eA as za, eB as Ko, eC as Bs, eD as Rn, b as Ca, ag as mi, e5 as mn, eE as Ys, eF as Go, eG as Uo, eH as hi, eI as pi, eJ as fi, dF as Ws, dD as Ho, I as Ie, P as Tt, eK as Jo, l as kt, eL as Qo, w as la, eM as Yo, eN as Wo, H as Xo, eO as Zo, bN as Za, bO as wa, bP as Sa, bQ as xn, bR as Gt, bS as Pa, eP as zs, eQ as Ht, eR as it, eS as Jt, eT as gi, eU as _n, eV as $n, eW as qn, eX as Xs, dl as _a, eY as xi, eZ as ec, e_ as tc, e$ as ac, C as bi, f0 as nc, f1 as sc, f2 as rc, f3 as lc, f4 as vi, f5 as ic, f6 as bs, f7 as oc, f8 as cl, f9 as cc, fa as dl, fb as Zs, fc as dc, fd as bn, fe as uc, R as vn, ff as Wn, fg as en, cO as er, fh as yi, j as ia, fi as mc, ck as Pt, cl as _t, fj as hc, cm as $t, cZ as tr, d9 as ar, N as Ni, fk as nr, fl as pc, fm as Ci, fn as wi, fo as zt, d_ as vs, fp as fc, fq as gc, fr as xc, fs as Si, ax as Ti, ft as ki, fu as bc, fv as vc, fw as yc, fx as hn, fy as Nc, fz as Cc, fA as ul, fB as wc, Z as Xn, a4 as sr, fC as Sc, fD as rr, dq as Tc, fE as ml, a7 as pt, fF as kc, dM as lr, dN as ir, dO as ma, dP as Ln, fG as Ic, d$ as Dc, fH as Ii, fI as Ac, fJ as Mc, d2 as Zn, fK as Ec, fL as Oc, fM as hl, fN as Fc, k as Et, dk as ba, dr as es, cI as Lt, fO as ea, fP as va, fQ as ya, fR as oa, fS as $a, fT as Rc, fU as Lc, b2 as Pc, fV as Vc, fW as Bc, fX as zc, fY as _c, d8 as ha, fZ as $c, f_ as Di, f$ as qc, g0 as jc, g1 as Kc, g2 as Ai, dG as pl, c4 as Gc, ca as Ut, dh as Uc, g3 as Hc, g4 as Jc, g5 as Qc, g6 as fl, g7 as Yc, g8 as Wc, g9 as Xc, ga as Zc, af as ed, gb as td, gc as Mi, gd as ad, ge as nd, gf as sd, gg as rd, gh as ld, gi as id, gj as _s, gk as od, gl as cd, gm as dd, gn as $s, go as ud, gp as md, gq as hd, gr as pd, gs as gl, gt as fd, gu as xl, gv as bl, db as qs, cQ as gd, gw as xd, cR as bd, cS as vd, cT as yd, cU as Nd, cV as Cd, cW as wd, cX as Sd, gx as tn, gy as Td, S as He, gz as kd, gA as Id, gB as Ei, cC as or, dc as Dd, cF as Ad, gC as Md, gD as Ed, gE as pn, gF as jn, gG as Od, gH as qa, gI as Ke, gJ as Ge, gK as Ue, gL as Fd, gM as Rd, gN as Oi, gO as Fi, gP as aa, gQ as Mn, gR as vl, gS as Ld, dm as Ri, gT as Pd, gU as Vd, gV as Bd, gW as yn, gX as zd, gY as _d, gZ as $d, m as ja, n as Ka, o as Ga, p as Ua, q as Ha, r as Ja, g_ as qd, g$ as jd, h0 as yl, h1 as Kd, s as Ta, h2 as Gd, h3 as ys, h4 as Nl, h5 as Ud, h6 as At, h7 as Hd, h8 as Jd, h9 as Qd, ha as Yd, hb as Wd, hc as Ns, hd as Li, he as Xd, hf as Zd, hg as eu, hh as Kn, hi as tu, hj as au, hk as cr, hl as dr, hm as Pi, hn as nu, d0 as Vi, ho as Bi, hp as zi, hq as su, e4 as ru, hr as et, hs as lu, bg as iu, ht as En, hu as ou, hv as Cl, hw as cu, hx as du, bc as wl, hy as Sl, hz as uu, hA as mu, hB as hu, hC as pu, hD as fu, hE as gu, hF as xu, hG as bu, hH as vu, hI as yu, hJ as Nu, hK as Cu, hL as wu, hM as Su, hN as _i, hO as Tu, hP as ku, hQ as Iu, hR as Du, hS as Au, hT as Mu, hU as Eu, hV as Ou, hW as Fu, hX as Ru, hY as Lu, hZ as $i, h_ as Pu, h$ as ur, i0 as ts, i1 as qi, i2 as Vu, i3 as Bu, i4 as zu, i5 as _u, i6 as $u, i7 as qu, i8 as as, i9 as Cs, ia as ju, ib as Ku, ic as Gu, id as Uu, ie as Hu, ig as Tl, ih as Na, ii as Ju, ij as ji, ik as Ki, il as js, im as Gi, io as kl, d4 as Il, ip as Qu, iq as Yu, ir as Wu, is as Pn, it as Xu, iu as mr, iv as Zu, iw as em, ix as Gn, iy as tm, iz as am, iA as nm, iB as fn, iC as na, iD as Ks, iE as Gs, iF as gn, iG as Ui, aY as sm, iH as rm, iI as ws, iJ as Ss, iK as lm, iL as Ts, iM as im, iN as Dl, iO as Al, iP as om, iQ as cm, iR as dm, iS as um, iT as mm, iU as hm, iV as ns, cK as ss, iW as rs, iX as Ml, iY as Hi, dV as ks, iZ as pm, i_ as fm, i$ as gm, _ as xm } from "./index-BzQ2UBDI.js";
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-BvBTFIgX.js";
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