react-semaphor 0.1.539 → 0.1.540

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/assistant-context/index.js +1 -1
  2. package/dist/assistant-protocol/index.js +63 -54
  3. package/dist/brand-studio/index.js +1 -1
  4. package/dist/chunks/add-to-dashboard-BuAqfA2Y.js +80 -0
  5. package/dist/chunks/{assistant-chat-DgiSuFT4.js → assistant-chat-ya7xopaC.js} +2448 -2228
  6. package/dist/chunks/{context-HD9usB1P.js → context-ClREvqCZ.js} +101 -102
  7. package/dist/chunks/{dashboard-y5BwcvzT.js → dashboard-B6Bithfl.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-Bl3gCeBR.js → dashboard-briefing-launcher-DJI-zfEq.js} +116 -116
  9. package/dist/chunks/{dashboard-controls-0EX0HiJt.js → dashboard-controls-Dh7HqoKy.js} +5 -5
  10. package/dist/chunks/{dashboard-json-6X_2BDiL.js → dashboard-json-BnmlB71h.js} +2 -2
  11. package/dist/chunks/{edit-dashboard-visual-Bzchfgga.js → edit-dashboard-visual-CydOkSko.js} +4 -4
  12. package/dist/chunks/report-preferences-dialog-neMDolLg.js +1950 -0
  13. package/dist/chunks/{saved-dashboard-context-Dqve2jlB.js → saved-dashboard-context-CCrLpfSQ.js} +1 -1
  14. package/dist/chunks/{semaphor-ready-indicator-ldcwmLoY.js → semaphor-ready-indicator--4DWtVBu.js} +20103 -20048
  15. package/dist/chunks/{shelf-drop-preview-context-BWxunXTq.js → shelf-drop-preview-context-CpdB5ois.js} +2 -2
  16. package/dist/chunks/{switch-CvItuC1Q.js → switch-DWEWiv1J.js} +53 -52
  17. package/dist/chunks/{use-create-flow-overlay-state-RHgzVfcz.js → use-create-flow-overlay-state-8g6Zhphh.js} +2 -2
  18. package/dist/dashboard/index.js +1 -1
  19. package/dist/index.js +9 -9
  20. package/dist/style.css +1 -1
  21. package/dist/surfboard/index.js +1 -1
  22. package/dist/types/components/assistant/assistant-entry-points.d.ts +3 -0
  23. package/dist/types/components/assistant/assistant-store.d.ts +49 -1
  24. package/dist/types/components/assistant/use-assistant.d.ts +10 -1
  25. package/dist/types/shared/assistant-protocol/context.d.ts +88 -66
  26. package/dist/types/shared/assistant-protocol/conversation.d.ts +3 -0
  27. package/dist/types/shared/assistant-protocol/index.d.ts +1 -0
  28. package/dist/types/shared/assistant-protocol/limits.d.ts +2 -0
  29. package/dist/types/shared/assistant-protocol/request.d.ts +6 -1
  30. package/dist/types/shared/assistant-protocol/tagged-fields.d.ts +29 -0
  31. package/package.json +2 -1
  32. package/dist/chunks/add-to-dashboard-CxtTfISD.js +0 -56
  33. package/dist/chunks/report-preferences-dialog-CWhSbc5_.js +0 -1808
@@ -2,27 +2,27 @@ import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
2
2
  import * as ue from "react";
3
3
  import _t, { useState as F, useEffect as J, useCallback as j, useMemo as oe, useLayoutEffect as Pt, useRef as ge, useContext as pr } from "react";
4
4
  import { u as V, v as Tt, s as fr } from "./custom-visual-inputs-BrUOIwln.js";
5
- import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Q as br, P as qe, a as He, b as Qe, S as $t } from "./switch-CvItuC1Q.js";
6
- import { cq as ht, bt as Ue, bu as Ve, bw as Re, cr as vr, cs as xr, aX as Be, aV as Je, ct as yr, cu as et, cv as mt, _ as tt, X as pe, u as T, cw as Cr, cx as wr, cy as Nr, Z as ee, b6 as Sr, cz as Dr, cA as Er, aR as Se, cf as zt, aI as Ge, l as kr, h as Ar, cB as Ir, ci as pt, cj as ft, ck as gt, cl as bt, cm as vt, cn as xt, co as yt, cp as jt, aG as Ct, cC as Fr, cD as Pr, c7 as ot, c4 as rt, c5 as at, cE as Wt, c6 as nt, bQ as X, cg as Tr, ce as Ke, cF as Lr, bO as Ur, bv as wt, bx as Nt, cG as Vr, bs as Rr, cH as qt, cI as St, cJ as Br, bU as Mr, f as _r, cK as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cL as Q, K as Qt, aw as $r, cM as zr, aD as jr, R as Gt, cN as Wr, az as Lt, N as qr, cO as Hr, cP as Qr, cQ as Gr, cR as Kr, cS as Kt, cT as Xr, cU as Yr, cV as Zr, cW as Xt, cX as Jr, cY as ze, cZ as ea, c_ as ta, c$ as ra, as as aa, at as na, a8 as sa, a7 as oa, a6 as ia, a5 as la, a2 as ca, a0 as da, d0 as ua, d1 as ha, d2 as ma, d3 as pa, d4 as fa, aq as ga, d5 as ba, d6 as va, ae as xa, d7 as ya, d8 as Ca, d9 as wa } from "./semaphor-ready-indicator-ldcwmLoY.js";
5
+ import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Z as br, P as qe, a as He, b as Ge, S as $t } from "./switch-DWEWiv1J.js";
6
+ import { cr as ht, bu as Ue, bv as Ve, bx as Re, cs as vr, ct as xr, aX as Be, aV as Je, cu as yr, cv as et, cw as mt, _ as tt, X as pe, u as T, cx as Cr, cy as wr, cz as Nr, Z as ee, b6 as Sr, cA as Dr, cB as Er, aR as Se, cg as zt, aI as Qe, l as kr, h as Ar, cC as Ir, cj as pt, ck as ft, cl as gt, cm as bt, cn as vt, co as xt, cp as yt, cq as jt, aG as Ct, cD as Fr, cE as Pr, c8 as ot, c5 as rt, c6 as at, cF as Wt, c7 as nt, bR as X, ch as Tr, cf as Ke, cG as Lr, bP as Ur, bw as wt, by as Nt, cH as Vr, bt as Rr, cI as qt, cJ as St, cK as Br, bV as Mr, f as _r, cL as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cM as G, K as Gt, aw as $r, cN as zr, aD as jr, R as Qt, cO as Wr, az as Lt, N as qr, cP as Hr, cQ as Gr, cR as Qr, cS as Kr, cT as Kt, cU as Xr, cV as Zr, cW as Yr, cX as Xt, cY as Jr, cZ as ze, c_ as ea, c$ as ta, d0 as ra, as as aa, at as na, a8 as sa, a7 as oa, a6 as ia, a5 as la, a2 as ca, a0 as da, d1 as ua, d2 as ha, d3 as ma, d4 as pa, d5 as fa, aq as ga, d6 as ba, d7 as va, ae as xa, d8 as ya, d9 as Ca, da as wa } from "./semaphor-ready-indicator--4DWtVBu.js";
7
7
  import { L as Dt } from "./layout-grid-Bgzth8vd.js";
8
- import { c as De, X as Me, C as Yt } from "./x-4f5U2XwU.js";
8
+ import { c as De, X as Me, C as Zt } from "./x-4f5U2XwU.js";
9
9
  import "./index-CuHybtft.js";
10
10
  import { t as Na } from "./validators-Ej1DdCXa.js";
11
11
  import "./matrix-operation-contract-B8PBF1Gd.js";
12
12
  import "./analytics-base-schemas-BFAoRlkU.js";
13
13
  import "zod";
14
14
  import "../value-format-preferences/index.js";
15
- import { c as Y } from "./class-utils-Df1OVOT1.js";
15
+ import { c as Z } from "./class-utils-Df1OVOT1.js";
16
16
  import { S as Sa } from "./selection-reducer-vKIb_jS6.js";
17
17
  import { s as je } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
18
18
  import { f as Da } from "./editor-draft-sync-BN5qYHPF.js";
19
- import { ae as Ye, af as Ea, k as ka, ag as Aa, ah as Ia, ai as Fa, aj as Pa, ak as Ta } from "./document-dashboard-inputs-BrYYlRVo.js";
19
+ import { ae as Ze, af as Ea, k as ka, ag as Aa, ah as Ia, ai as Fa, aj as Pa, ak as Ta } from "./document-dashboard-inputs-BrYYlRVo.js";
20
20
  import "react-dom";
21
21
  import "./pivot-result-lifecycle-8qCDmpKc.js";
22
22
  import "./calculated-field-identity-DcBS2NPP.js";
23
23
  import { o as La } from "./bookmark-state-k7y5SNGf.js";
24
- import { S as Zt } from "./save-CfJpQQ68.js";
25
- import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-RHgzVfcz.js";
24
+ import { S as Yt } from "./save-CfJpQQ68.js";
25
+ import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-8g6Zhphh.js";
26
26
  import { o as Ut } from "./matrix-formatter-DQ8avoIQ.js";
27
27
  import { t as _a } from "./document-sheet-utils-C1eEldxs.js";
28
28
  import { g as me, d as Oa, a as $a } from "./index-CqMiAkay.js";
@@ -96,7 +96,7 @@ const Ha = De("MousePointer2", [
96
96
  * This source code is licensed under the ISC license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
98
  */
99
- const Qa = De("Newspaper", [
99
+ const Ga = De("Newspaper", [
100
100
  [
101
101
  "path",
102
102
  {
@@ -108,7 +108,7 @@ const Qa = De("Newspaper", [
108
108
  ["path", { d: "M15 18h-5", key: "95g1m2" }],
109
109
  ["path", { d: "M10 6h8v4h-8V6Z", key: "smlsk5" }]
110
110
  ]);
111
- function Ga() {
111
+ function Qa() {
112
112
  return /* @__PURE__ */ t("div", { className: "space-y-1.5 py-1", children: [...Array(5)].map((e, r) => /* @__PURE__ */ i(
113
113
  "div",
114
114
  {
@@ -268,7 +268,7 @@ function Xa(e) {
268
268
  })();
269
269
  }, [e, s]), r;
270
270
  }
271
- function Ya(e, r) {
271
+ function Za(e, r) {
272
272
  if (e.length === 0)
273
273
  return "";
274
274
  const o = e.find(
@@ -296,7 +296,7 @@ function Ya(e, r) {
296
296
  }
297
297
  return e[0].id;
298
298
  }
299
- function Za(e, r) {
299
+ function Ya(e, r) {
300
300
  return r ? {
301
301
  ...e,
302
302
  settings: r
@@ -357,7 +357,7 @@ function en(e, {
357
357
  config: r || !e.config ? void 0 : u(e.config),
358
358
  customCfg: e.customCfg,
359
359
  preferences: e.preferences,
360
- customCardPreferences: Za(
360
+ customCardPreferences: Ya(
361
361
  e.customCardPreferences,
362
362
  l
363
363
  )
@@ -456,7 +456,7 @@ function an() {
456
456
  return {
457
457
  ...a,
458
458
  cards: f,
459
- activeCardId: Ya(f, a.activeCardId)
459
+ activeCardId: Za(f, a.activeCardId)
460
460
  };
461
461
  }, [r]) };
462
462
  }
@@ -483,7 +483,7 @@ function Ee() {
483
483
  setIsVisualEditing: S,
484
484
  setSelectedFrameId: x,
485
485
  clearSelectedFrameId: B
486
- } = pe(), I = T((O) => O.selectedSheetId), W = T((O) => O.selectedFrameId), P = T((O) => O.dashboard), M = T((O) => O.filterValues), Z = T(
486
+ } = pe(), I = T((O) => O.selectedSheetId), W = T((O) => O.selectedFrameId), P = T((O) => O.dashboard), M = T((O) => O.filterValues), Y = T(
487
487
  (O) => O.inlineFilterValuesMap
488
488
  ), K = Cr((n == null ? void 0 : n.id) || "", {
489
489
  enabled: !!(n != null && n.id) && !!(e != null && e.accessToken)
@@ -520,7 +520,7 @@ function Ee() {
520
520
  selectedSheetId: I,
521
521
  selectedFrameId: W,
522
522
  filterValues: M,
523
- inlineFilterValuesMap: Z
523
+ inlineFilterValuesMap: Y
524
524
  }))
525
525
  throw new Error("Failed to setup editor with visual data");
526
526
  return { success: !0, fromCache: re };
@@ -556,7 +556,7 @@ function Ee() {
556
556
  I,
557
557
  W,
558
558
  M,
559
- Z
559
+ Y
560
560
  ]
561
561
  ), ce = j(
562
562
  async (O) => {
@@ -574,11 +574,11 @@ function Ee() {
574
574
  ), le = (L == null ? void 0 : L.frameObject) ?? ((re = L == null ? void 0 : L.visual) == null ? void 0 : re.frameObject);
575
575
  if (!le)
576
576
  return te("Visual has no frame data");
577
- const G = tr(le);
578
- if (!(G != null && G.cards) || G.cards.length === 0)
577
+ const Q = tr(le);
578
+ if (!(Q != null && Q.cards) || Q.cards.length === 0)
579
579
  return te("Visual frame is malformed");
580
580
  const be = {
581
- ...wr(G),
581
+ ...wr(Q),
582
582
  visualId: O.id
583
583
  // Link this frame to the library visual
584
584
  };
@@ -660,7 +660,7 @@ function Hs({
660
660
  isError: W,
661
661
  createResource: P,
662
662
  updateResource: M,
663
- deleteResourceAsync: Z,
663
+ deleteResourceAsync: Y,
664
664
  duplicateResource: K,
665
665
  isCreating: Ce,
666
666
  isDeleting: ce
@@ -686,7 +686,7 @@ function Hs({
686
686
  (C) => s.has(C.id)
687
687
  ),
688
688
  [s, L]
689
- ), G = le.filter(
689
+ ), Q = le.filter(
690
690
  (C) => C.permissions.canDelete
691
691
  ), be = le.filter(
692
692
  (C) => C.permissions.canShare
@@ -729,16 +729,16 @@ function Hs({
729
729
  onSettled: () => D(null)
730
730
  });
731
731
  }, _e = () => {
732
- if (G.length === 0) {
732
+ if (Q.length === 0) {
733
733
  V.error("Select a visual you can delete");
734
734
  return;
735
735
  }
736
736
  k(null), f(!0);
737
737
  }, st = async () => {
738
- const C = b ? [b] : G;
738
+ const C = b ? [b] : Q;
739
739
  try {
740
740
  for (const R of C)
741
- await Z(R.id);
741
+ await Y(R.id);
742
742
  d((R) => {
743
743
  const z = new Set(R);
744
744
  return C.forEach(
@@ -785,7 +785,7 @@ function Hs({
785
785
  );
786
786
  }, ne = (C) => {
787
787
  r(C), C || E();
788
- }, Pe = b ? 1 : G.length;
788
+ }, Pe = b ? 1 : Q.length;
789
789
  return /* @__PURE__ */ i($, { children: [
790
790
  /* @__PURE__ */ t(Ue, { open: e, onOpenChange: ne, children: /* @__PURE__ */ i(
791
791
  Ve,
@@ -843,7 +843,7 @@ function Hs({
843
843
  }
844
844
  )
845
845
  ] }),
846
- /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: I ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Ga, {}) }) : W ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : ae.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
846
+ /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: I ? /* @__PURE__ */ t("div", { className: "p-3", children: /* @__PURE__ */ t(Qa, {}) }) : W ? /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: /* @__PURE__ */ t("p", { className: "text-[13px] text-destructive", children: "Failed to load visuals" }) }) : ae.length === 0 ? /* @__PURE__ */ i("div", { className: "flex flex-col items-center gap-2 px-4 py-12 text-center", children: [
847
847
  /* @__PURE__ */ t(Dt, { className: "h-5 w-5 text-muted-foreground/60" }),
848
848
  /* @__PURE__ */ t("p", { className: "text-[13px] font-medium", children: a ? "No visuals found" : "No visuals yet" }),
849
849
  /* @__PURE__ */ t("p", { className: "text-[12px] text-muted-foreground", children: a ? "Try a different search." : "Create a saved visual to add it here." })
@@ -905,11 +905,11 @@ function Hs({
905
905
  variant: "outline",
906
906
  className: "text-destructive hover:text-destructive",
907
907
  onClick: _e,
908
- disabled: G.length === 0,
908
+ disabled: Q.length === 0,
909
909
  children: [
910
- /* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
910
+ /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
911
911
  "Delete ",
912
- G.length || s.size
912
+ Q.length || s.size
913
913
  ]
914
914
  }
915
915
  )
@@ -998,7 +998,7 @@ function Hs({
998
998
  },
999
999
  disabled: ce || Pe === 0,
1000
1000
  children: [
1001
- ce ? /* @__PURE__ */ t(ie, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
1001
+ ce ? /* @__PURE__ */ t(ie, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
1002
1002
  ce ? "Deleting..." : "Delete"
1003
1003
  ]
1004
1004
  }
@@ -1084,7 +1084,7 @@ function cn({
1084
1084
  return /* @__PURE__ */ i(
1085
1085
  "div",
1086
1086
  {
1087
- className: Y(
1087
+ className: Z(
1088
1088
  "group grid min-h-12 grid-cols-[2.5rem_minmax(14rem,1.8fr)_minmax(10rem,1fr)_8rem_7rem_5rem_5.5rem] items-center border-b border-border/50 px-3 text-[13px] hover:bg-muted/50",
1089
1089
  r && "bg-muted/70"
1090
1090
  ),
@@ -1229,7 +1229,7 @@ function dn({
1229
1229
  onClick: () => n(e),
1230
1230
  disabled: c,
1231
1231
  children: [
1232
- /* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
1232
+ /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
1233
1233
  c ? "Deleting..." : "Delete"
1234
1234
  ]
1235
1235
  }
@@ -1254,7 +1254,7 @@ function dn({
1254
1254
  }
1255
1255
  );
1256
1256
  }
1257
- function Qs(e, r, o = !1) {
1257
+ function Gs(e, r, o = !1) {
1258
1258
  const a = T((u) => u.dashboard), n = T(
1259
1259
  (u) => u.isDashboardEditing
1260
1260
  ), s = T(
@@ -1471,7 +1471,7 @@ function hn({
1471
1471
  /* @__PURE__ */ t(ie, { className: "h-3.5 w-3.5 animate-spin" }),
1472
1472
  "Saving"
1473
1473
  ] }) : /* @__PURE__ */ i($, { children: [
1474
- /* @__PURE__ */ t(Zt, { className: "h-3.5 w-3.5" }),
1474
+ /* @__PURE__ */ t(Yt, { className: "h-3.5 w-3.5" }),
1475
1475
  "Save to Library"
1476
1476
  ] })
1477
1477
  }
@@ -1505,7 +1505,7 @@ function mn({
1505
1505
  ...b,
1506
1506
  visualId: f
1507
1507
  // Keep the link to library visual
1508
- }, v = Ye(c, k.id), D = await m(k, {
1508
+ }, v = Ze(c, k.id), D = await m(k, {
1509
1509
  previousFrame: v
1510
1510
  });
1511
1511
  await p.mutateAsync({
@@ -1534,7 +1534,7 @@ function mn({
1534
1534
  /* @__PURE__ */ t(ie, { className: "h-3.5 w-3.5 animate-spin" }),
1535
1535
  "Saving..."
1536
1536
  ] }) : /* @__PURE__ */ i($, { children: [
1537
- /* @__PURE__ */ t(Zt, { className: "h-3.5 w-3.5" }),
1537
+ /* @__PURE__ */ t(Yt, { className: "h-3.5 w-3.5" }),
1538
1538
  "Save & Apply"
1539
1539
  ] })
1540
1540
  }
@@ -1611,7 +1611,7 @@ function pn() {
1611
1611
  if (S.saveToCurrentDashboard)
1612
1612
  try {
1613
1613
  W = await D(I, {
1614
- previousFrame: Ye(m, I.id)
1614
+ previousFrame: Ze(m, I.id)
1615
1615
  });
1616
1616
  } catch (M) {
1617
1617
  console.error(
@@ -1641,7 +1641,7 @@ function pn() {
1641
1641
  };
1642
1642
  try {
1643
1643
  const P = await D(I, {
1644
- previousFrame: Ye(m, I.id)
1644
+ previousFrame: Ze(m, I.id)
1645
1645
  });
1646
1646
  b(p, W, {
1647
1647
  placement: "end",
@@ -1659,7 +1659,7 @@ function pn() {
1659
1659
  isSaving: y.isPending
1660
1660
  };
1661
1661
  }
1662
- function Gs(e = {}) {
1662
+ function Qs(e = {}) {
1663
1663
  const { isInspectionMode: r } = Mr(), o = ee((P) => P.frame), a = ee((P) => P.editorContext), n = _r((P) => P.selectedVisual), s = T((P) => P.selectedFrameId), d = T((P) => P.selectedSheetId), c = T((P) => P.dashboard), { setIsVisualEditing: l, updateFrame: u } = pe(), [h, p] = F(!1), [m, g] = F("both"), f = St(), b = (a == null ? void 0 : a.type) === "documentSection", k = !!(o != null && o.visualId || n != null && n.id), v = !!(o != null && o.visualId && s), D = k && !v, {
1664
1664
  saveAsDialogOpen: E,
1665
1665
  setSaveAsDialogOpen: N,
@@ -1694,10 +1694,10 @@ function Gs(e = {}) {
1694
1694
  const M = {
1695
1695
  ...B(),
1696
1696
  visualId: void 0
1697
- }, Z = Ye(c, M.id);
1697
+ }, Y = Ze(c, M.id);
1698
1698
  try {
1699
1699
  const K = await f(M, {
1700
- previousFrame: Z
1700
+ previousFrame: Y
1701
1701
  });
1702
1702
  u(d, M, {
1703
1703
  semanticExecutionPayload: K
@@ -1728,7 +1728,7 @@ function Gs(e = {}) {
1728
1728
  className: "w-7 !rounded-none border-l border-primary-foreground/20 px-0",
1729
1729
  "aria-label": "Open visual save options",
1730
1730
  disabled: x || h,
1731
- children: /* @__PURE__ */ t(Yt, { className: "h-3.5 w-3.5" })
1731
+ children: /* @__PURE__ */ t(Zt, { className: "h-3.5 w-3.5" })
1732
1732
  }
1733
1733
  ) }),
1734
1734
  /* @__PURE__ */ i(
@@ -1818,7 +1818,7 @@ function Ks({ className: e }) {
1818
1818
  "aria-label": u,
1819
1819
  title: u,
1820
1820
  onClick: () => n(!r),
1821
- className: Y(
1821
+ className: Z(
1822
1822
  "inline-flex h-7 items-center gap-1.5 rounded-control border border-input bg-background px-2 text-[12px] font-medium text-foreground transition-colors hover:bg-muted/40 focus-visible:border-ring focus-visible:outline-none",
1823
1823
  e
1824
1824
  ),
@@ -1869,7 +1869,7 @@ function Xs({
1869
1869
  ] })
1870
1870
  ] }) });
1871
1871
  }
1872
- async function Ys(e) {
1872
+ async function Zs(e) {
1873
1873
  var s, d;
1874
1874
  const r = (d = (s = T.getState()) == null ? void 0 : s.authToken) == null ? void 0 : d.accessToken;
1875
1875
  if (!r)
@@ -1923,7 +1923,7 @@ function Sn(e) {
1923
1923
  const r = Date.now() - e.getTime();
1924
1924
  return r < xn ? gn : r < yn ? bn : vn;
1925
1925
  }
1926
- function Zs() {
1926
+ function Ys() {
1927
1927
  const { authToken: e, tokenProps: r } = Be(), o = xe((m) => m.activeExports), [a, n] = F(
1928
1928
  typeof document < "u" ? !document.hidden : !0
1929
1929
  ), s = ge(null), d = ge(!1), c = ge(void 0), l = r == null ? void 0 : r.apiServiceUrl, u = e == null ? void 0 : e.accessToken, h = j(() => {
@@ -1983,7 +1983,7 @@ function Zs() {
1983
1983
  if (g > Nn(E) && !(w && !Te(w.status))) {
1984
1984
  b(E.id, {
1985
1985
  status: "failed",
1986
- error: Q.unconfirmed,
1986
+ error: G.unconfirmed,
1987
1987
  lastUpdatedAt: /* @__PURE__ */ new Date()
1988
1988
  });
1989
1989
  return;
@@ -2023,7 +2023,7 @@ function Zs() {
2023
2023
  };
2024
2024
  }
2025
2025
  function Js() {
2026
- const { authToken: e, tokenProps: r } = Be(), o = xe((c) => c.activeExports), { recoverExport: a } = Qt(), n = ge(!1), s = r == null ? void 0 : r.apiServiceUrl, d = e == null ? void 0 : e.accessToken;
2026
+ const { authToken: e, tokenProps: r } = Be(), o = xe((c) => c.activeExports), { recoverExport: a } = Gt(), n = ge(!1), s = r == null ? void 0 : r.apiServiceUrl, d = e == null ? void 0 : e.accessToken;
2027
2027
  J(() => {
2028
2028
  if (n.current || !s || !d) return;
2029
2029
  (async () => {
@@ -2153,13 +2153,13 @@ var An = [
2153
2153
  (n || n === 0) && !Rt(n) && console.error(Ln(`${n}`, "Progress"));
2154
2154
  const c = Rt(n) ? n : Ft;
2155
2155
  a !== null && !Bt(a, c) && console.error(Un(`${a}`, "Progress"));
2156
- const l = Bt(a, c) ? a : null, u = Ze(l) ? s(l, c) : void 0;
2156
+ const l = Bt(a, c) ? a : null, u = Ye(l) ? s(l, c) : void 0;
2157
2157
  return /* @__PURE__ */ t(Fn, { scope: o, value: l, max: c, children: /* @__PURE__ */ t(
2158
2158
  nr.div,
2159
2159
  {
2160
2160
  "aria-valuemax": c,
2161
2161
  "aria-valuemin": 0,
2162
- "aria-valuenow": Ze(l) ? l : void 0,
2162
+ "aria-valuenow": Ye(l) ? l : void 0,
2163
2163
  "aria-valuetext": u,
2164
2164
  role: "progressbar",
2165
2165
  "data-state": lr(l, c),
@@ -2194,14 +2194,14 @@ function Tn(e, r) {
2194
2194
  function lr(e, r) {
2195
2195
  return e == null ? "indeterminate" : e === r ? "complete" : "loading";
2196
2196
  }
2197
- function Ze(e) {
2197
+ function Ye(e) {
2198
2198
  return typeof e == "number";
2199
2199
  }
2200
2200
  function Rt(e) {
2201
- return Ze(e) && !isNaN(e) && e > 0;
2201
+ return Ye(e) && !isNaN(e) && e > 0;
2202
2202
  }
2203
2203
  function Bt(e, r) {
2204
- return Ze(e) && !isNaN(e) && e <= r && e >= 0;
2204
+ return Ye(e) && !isNaN(e) && e <= r && e >= 0;
2205
2205
  }
2206
2206
  function Ln(e, r) {
2207
2207
  return `Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Ft}\`.`;
@@ -2219,7 +2219,7 @@ const dr = ue.forwardRef(({ className: e, value: r, ...o }, a) => /* @__PURE__ *
2219
2219
  cr,
2220
2220
  {
2221
2221
  ref: a,
2222
- className: Y(
2222
+ className: Z(
2223
2223
  "relative h-4 w-full overflow-hidden rounded-full bg-secondary",
2224
2224
  e
2225
2225
  ),
@@ -2253,11 +2253,11 @@ function Rn({
2253
2253
  n(b === "denied" ? "denied" : "idle");
2254
2254
  }, d = (b) => {
2255
2255
  b.stopPropagation(), r == null || r(e.id);
2256
- }, c = Te(e.status), l = e.status === "pending" ? { text: Q.queued } : e.status === "compacting" || e.phase === "finalizing" ? { text: Q.finalizing } : e.phase === "preparing" ? { text: Q.preparing } : e.phase === "acquiring" ? { text: Q.fetchingRows(e.rowsProcessed ?? 0) } : {
2257
- text: Q.processing,
2258
- detail: e.progress !== null ? Q.percentComplete(e.progress) : e.rowsProcessed !== void 0 ? Q.rowsProcessed(e.rowsProcessed) : void 0,
2256
+ }, c = Te(e.status), l = e.status === "pending" ? { text: G.queued } : e.status === "compacting" || e.phase === "finalizing" ? { text: G.finalizing } : e.phase === "preparing" ? { text: G.preparing } : e.phase === "acquiring" ? { text: G.fetchingRows(e.rowsProcessed ?? 0) } : {
2257
+ text: G.processing,
2258
+ detail: e.progress !== null ? G.percentComplete(e.progress) : e.rowsProcessed !== void 0 ? G.rowsProcessed(e.rowsProcessed) : void 0,
2259
2259
  bar: e.progress
2260
- }, u = c && Date.now() - e.startedAt.getTime() >= zr, h = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" || e.status === "cancelled" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", p = e.status === "completed" ? Q.ready : e.status === "failed" ? Q.failed : e.status === "cancelled" ? Q.cancelled : Q.inProgress, m = Ut(e.startedAt, { addSuffix: !0 }), g = [
2260
+ }, u = c && Date.now() - e.startedAt.getTime() >= zr, h = e.status === "completed" ? "bg-emerald-500" : e.status === "failed" ? "bg-destructive" : e.status === "pending" || e.status === "cancelled" ? "bg-muted-foreground/40" : "animate-pulse bg-muted-foreground/60", p = e.status === "completed" ? G.ready : e.status === "failed" ? G.failed : e.status === "cancelled" ? G.cancelled : G.inProgress, m = Ut(e.startedAt, { addSuffix: !0 }), g = [
2261
2261
  e.status === "completed" && e.totalRows !== null ? `${e.totalRows.toLocaleString()} rows` : null,
2262
2262
  e.status === "completed" && e.fileSize ? jr(e.fileSize) : null
2263
2263
  ].filter((b) => !!b), f = /* @__PURE__ */ t("span", { className: "text-muted-foreground/50", children: "·" });
@@ -2268,7 +2268,7 @@ function Rn({
2268
2268
  /* @__PURE__ */ i("div", { className: "flex h-5 items-center gap-2", children: [
2269
2269
  /* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate text-[13px] font-medium leading-5", children: e.title }),
2270
2270
  e.status === "completed" && a === "preparing" && /* @__PURE__ */ i("span", { role: "status", className: "inline-flex shrink-0 items-center gap-1.5 text-[12px] text-muted-foreground", children: [
2271
- /* @__PURE__ */ t(Gt, { className: "h-3 w-3 animate-spin", strokeWidth: 1.75 }),
2271
+ /* @__PURE__ */ t(Qt, { className: "h-3 w-3 animate-spin", strokeWidth: 1.75 }),
2272
2272
  "Preparing"
2273
2273
  ] }),
2274
2274
  e.status === "completed" && a !== "preparing" && /* @__PURE__ */ t(
@@ -2306,7 +2306,7 @@ function Rn({
2306
2306
  ] }),
2307
2307
  e.status === "completed" && a === "denied" && /* @__PURE__ */ i("div", { role: "alert", className: "mt-1 flex items-start gap-1.5 text-[12px] leading-4 text-foreground", children: [
2308
2308
  /* @__PURE__ */ t(Wr, { className: "mt-0.5 h-3 w-3 shrink-0 text-destructive", strokeWidth: 1.75 }),
2309
- /* @__PURE__ */ t("span", { children: Q.linkExpired })
2309
+ /* @__PURE__ */ t("span", { children: G.linkExpired })
2310
2310
  ] }),
2311
2311
  c && /* @__PURE__ */ i("div", { className: "text-[12px] leading-4 text-muted-foreground", children: [
2312
2312
  /* @__PURE__ */ t("span", { className: "tabular-nums", children: l.text }),
@@ -2319,28 +2319,28 @@ function Rn({
2319
2319
  " ",
2320
2320
  f,
2321
2321
  " ",
2322
- /* @__PURE__ */ t("span", { children: Q.started(Ut(e.startedAt)) }),
2322
+ /* @__PURE__ */ t("span", { children: G.started(Ut(e.startedAt)) }),
2323
2323
  l.bar !== void 0 && l.bar !== null && /* @__PURE__ */ t(dr, { value: l.bar, className: "mt-1.5 h-1" }),
2324
- u && /* @__PURE__ */ t("div", { className: "mt-1", children: Q.longRunning })
2324
+ u && /* @__PURE__ */ t("div", { className: "mt-1", children: G.longRunning })
2325
2325
  ] }),
2326
2326
  e.status === "cancelled" && /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
2327
- /* @__PURE__ */ t("span", { children: Q.cancelled }),
2327
+ /* @__PURE__ */ t("span", { children: G.cancelled }),
2328
2328
  f,
2329
2329
  /* @__PURE__ */ t("span", { children: m })
2330
2330
  ] }),
2331
2331
  e.status === "failed" && /* @__PURE__ */ i($, { children: [
2332
2332
  /* @__PURE__ */ i("div", { className: "flex items-center gap-1.5 text-[12px] leading-4 text-muted-foreground", children: [
2333
- /* @__PURE__ */ t("span", { children: Q.failed }),
2333
+ /* @__PURE__ */ t("span", { children: G.failed }),
2334
2334
  f,
2335
2335
  /* @__PURE__ */ t("span", { children: m })
2336
2336
  ] }),
2337
- /* @__PURE__ */ t("div", { className: "mt-1 whitespace-pre-wrap break-words text-[12px] leading-4 text-destructive", children: e.error || Q.failedFallback })
2337
+ /* @__PURE__ */ t("div", { className: "mt-1 whitespace-pre-wrap break-words text-[12px] leading-4 text-destructive", children: e.error || G.failedFallback })
2338
2338
  ] })
2339
2339
  ] })
2340
2340
  ] });
2341
2341
  }
2342
2342
  function Bn() {
2343
- const { authToken: e, tokenProps: r } = Be(), o = xe((v) => v.activeExports), { clearCompleted: a, removeExport: n, updateExport: s, applyServerStatus: d } = Qt(), [c, l] = F(!1), [u, h] = F(!1), p = Array.from(o.values()).sort(
2343
+ const { authToken: e, tokenProps: r } = Be(), o = xe((v) => v.activeExports), { clearCompleted: a, removeExport: n, updateExport: s, applyServerStatus: d } = Gt(), [c, l] = F(!1), [u, h] = F(!1), p = Array.from(o.values()).sort(
2344
2344
  (v, D) => D.startedAt.getTime() - v.startedAt.getTime()
2345
2345
  ), m = p.some(
2346
2346
  (v) => v.status === "completed" || v.status === "failed" || v.status === "cancelled"
@@ -2465,7 +2465,7 @@ function Bn() {
2465
2465
  title: "Refresh status",
2466
2466
  "aria-label": "Refresh status",
2467
2467
  children: /* @__PURE__ */ t(
2468
- Gt,
2468
+ Qt,
2469
2469
  {
2470
2470
  strokeWidth: 1.75,
2471
2471
  className: `h-3.5 w-3.5 ${c ? "animate-spin" : ""}`
@@ -2512,7 +2512,7 @@ function eo({
2512
2512
  ]
2513
2513
  }
2514
2514
  ) }),
2515
- /* @__PURE__ */ t(Qe, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(Bn, {}) })
2515
+ /* @__PURE__ */ t(Ge, { className: "w-80 p-0", align: "end", sideOffset: 8, children: /* @__PURE__ */ t(Bn, {}) })
2516
2516
  ] });
2517
2517
  }
2518
2518
  function Mn(e) {
@@ -2549,7 +2549,7 @@ function _n({
2549
2549
  // create and make consumers use `forceClose()` from a dedicated
2550
2550
  // button.
2551
2551
  dismissMode: a ? "passive" : "explicit-only"
2552
- }), m = T((x) => x.dashboard), { setDashboardControlsModel: g } = pe(), { participants: f } = Qr(La(m)), b = Array.from(
2552
+ }), m = T((x) => x.dashboard), { setDashboardControlsModel: g } = pe(), { participants: f } = Gr(La(m)), b = Array.from(
2553
2553
  new Map(
2554
2554
  f.flatMap(
2555
2555
  (x) => x.fieldChoices.map((B) => {
@@ -2582,7 +2582,7 @@ function _n({
2582
2582
  ), v = Ea({
2583
2583
  ...m || {},
2584
2584
  controls: []
2585
- }), D = Gr(m), E = (x, B, I) => {
2585
+ }), D = Qr(m), E = (x, B, I) => {
2586
2586
  g(
2587
2587
  x,
2588
2588
  B,
@@ -2625,7 +2625,7 @@ function _n({
2625
2625
  "Controls"
2626
2626
  ] }) }),
2627
2627
  /* @__PURE__ */ t(
2628
- Qe,
2628
+ Ge,
2629
2629
  {
2630
2630
  className: "w-[620px] max-w-[95vw] space-y-4",
2631
2631
  align: "end",
@@ -2858,7 +2858,7 @@ function Hn({
2858
2858
  return /* @__PURE__ */ i(
2859
2859
  "div",
2860
2860
  {
2861
- className: Y(
2861
+ className: Z(
2862
2862
  // Height lives on the shell so the outer border is part of the
2863
2863
  // h-7 box (matches regular `size="xs"` buttons). Inner triggers
2864
2864
  // stretch to fill via `h-full`.
@@ -2873,7 +2873,7 @@ function Hn({
2873
2873
  {
2874
2874
  variant: "ghost",
2875
2875
  size: "xs",
2876
- className: Y(
2876
+ className: Z(
2877
2877
  "h-full rounded-none border-0 bg-transparent pl-2.5 pr-2 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2878
2878
  d
2879
2879
  ),
@@ -2884,11 +2884,11 @@ function Hn({
2884
2884
  }
2885
2885
  ) }),
2886
2886
  /* @__PURE__ */ t(
2887
- Qe,
2887
+ Ge,
2888
2888
  {
2889
2889
  align: "end",
2890
2890
  sideOffset: 6,
2891
- className: Y(
2891
+ className: Z(
2892
2892
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2893
2893
  l
2894
2894
  ),
@@ -2903,20 +2903,20 @@ function Hn({
2903
2903
  {
2904
2904
  variant: "ghost",
2905
2905
  size: "xs",
2906
- className: Y(
2906
+ className: Z(
2907
2907
  "h-full w-7 rounded-none border-0 border-l border-border/60 bg-transparent px-0 shadow-none hover:bg-accent/50 data-[state=open]:bg-accent/60",
2908
2908
  c
2909
2909
  ),
2910
2910
  "aria-label": "Filter and control actions",
2911
- children: /* @__PURE__ */ t(Yt, { className: "h-3.5 w-3.5" })
2911
+ children: /* @__PURE__ */ t(Zt, { className: "h-3.5 w-3.5" })
2912
2912
  }
2913
2913
  ) }),
2914
2914
  /* @__PURE__ */ t(
2915
- Qe,
2915
+ Ge,
2916
2916
  {
2917
2917
  align: "end",
2918
2918
  sideOffset: 6,
2919
- className: Y(
2919
+ className: Z(
2920
2920
  "w-auto rounded-card border border-border/60 p-0 shadow-[0_10px_28px_rgba(0,0,0,0.14)] dark:shadow-[0_10px_28px_rgba(0,0,0,0.5)]",
2921
2921
  u
2922
2922
  ),
@@ -2929,7 +2929,7 @@ function Hn({
2929
2929
  }
2930
2930
  );
2931
2931
  }
2932
- function Qn() {
2932
+ function Gn() {
2933
2933
  Ma();
2934
2934
  const e = T((l) => l.selectedSheetId), r = T((l) => l.selectedFrameId), o = T((l) => l.dashboard), a = T((l) => l.actions.getSelectedFrame), { setSelectedFrameId: n } = pe(), { setCard: s } = tt(), d = ee((l) => l.card.dataSource);
2935
2935
  return J(() => {
@@ -2947,10 +2947,10 @@ function Qn() {
2947
2947
  hasEntities: !!(d != null && d.selectedEntities && d.selectedEntities.length > 0)
2948
2948
  };
2949
2949
  }
2950
- function Gn() {
2950
+ function Qn() {
2951
2951
  const e = T((l) => l.dashboard), r = T(
2952
2952
  (l) => l.semanticExecutionPayload
2953
- ), o = T((l) => l.actions.addFilter), { hasEntities: a } = Qn(), { isLoading: n } = Xr(), s = oe(
2953
+ ), o = T((l) => l.actions.addFilter), { hasEntities: a } = Gn(), { isLoading: n } = Xr(), s = oe(
2954
2954
  () => Fa(e, r),
2955
2955
  [e, r]
2956
2956
  ), c = !Pa(e.filters) && s.hasEligibleCards && !n;
@@ -2972,11 +2972,11 @@ function Gn() {
2972
2972
  }
2973
2973
  ) }),
2974
2974
  !a && /* @__PURE__ */ i("div", { className: "flex flex-1 flex-col items-center justify-center px-6 py-8 text-center", children: [
2975
- /* @__PURE__ */ t(Yr, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2975
+ /* @__PURE__ */ t(Zr, { className: "mb-3 h-10 w-10 text-muted-foreground/50" }),
2976
2976
  /* @__PURE__ */ t("h3", { className: "mb-1 text-[13px] font-medium text-foreground", children: "No fields configured" }),
2977
2977
  /* @__PURE__ */ t("p", { className: "text-[11px] text-muted-foreground", children: "Configure a data source for this card to enable filtering." })
2978
2978
  ] }),
2979
- a && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(Zr, { context: "filter" }) })
2979
+ a && /* @__PURE__ */ t("div", { className: "flex flex-1 overflow-hidden", children: /* @__PURE__ */ t(Yr, { context: "filter" }) })
2980
2980
  ] });
2981
2981
  }
2982
2982
  const Mt = !1;
@@ -3122,7 +3122,7 @@ function to({
3122
3122
  {
3123
3123
  showFilters: b ? !1 : h,
3124
3124
  onShowFiltersChange: v,
3125
- pickerContent: /* @__PURE__ */ t(Gn, {}),
3125
+ pickerContent: /* @__PURE__ */ t(Qn, {}),
3126
3126
  settingsContent: (w) => /* @__PURE__ */ t(
3127
3127
  Kn,
3128
3128
  {
@@ -3162,7 +3162,7 @@ function to({
3162
3162
  ) : null
3163
3163
  ] });
3164
3164
  }
3165
- function Yn({
3165
+ function Zn({
3166
3166
  disabled: e,
3167
3167
  briefingCount: r,
3168
3168
  className: o,
@@ -3176,18 +3176,18 @@ function Yn({
3176
3176
  size: "xs",
3177
3177
  variant: "outline",
3178
3178
  disabled: e,
3179
- className: Y("gap-1.5", o),
3179
+ className: Z("gap-1.5", o),
3180
3180
  onClick: a,
3181
3181
  "aria-label": "Reports & briefings",
3182
3182
  children: [
3183
- /* @__PURE__ */ t(Qa, { className: "h-3.5 w-3.5" }),
3183
+ /* @__PURE__ */ t(Ga, { className: "h-3.5 w-3.5" }),
3184
3184
  "Reports & briefings",
3185
3185
  n ? /* @__PURE__ */ t("span", { className: "ml-0.5 rounded-control bg-muted px-1 text-[10px] tabular-nums text-foreground/70", children: r }) : null
3186
3186
  ]
3187
3187
  }
3188
3188
  );
3189
3189
  }
3190
- const Zn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", ur = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", We = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
3190
+ const Yn = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", ur = "inline-flex h-7 items-center gap-1.5 rounded-control px-2 text-[12px] text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50", We = "inline-flex h-7 items-center gap-1.5 rounded-control bg-primary px-3 text-[12px] font-medium text-primary-foreground hover:bg-primary/90 disabled:opacity-50";
3191
3191
  function Jn(e) {
3192
3192
  return e === "dashboard" ? "This dashboard" : "Project";
3193
3193
  }
@@ -3243,7 +3243,7 @@ function ns({
3243
3243
  role: "tab",
3244
3244
  "aria-selected": a,
3245
3245
  onClick: () => r(o),
3246
- className: Y(
3246
+ className: Z(
3247
3247
  "h-6 rounded-[3px] px-2 text-[11px] transition-colors",
3248
3248
  a ? "bg-background font-medium text-foreground shadow-sm" : "text-muted-foreground hover:text-foreground"
3249
3249
  ),
@@ -3286,7 +3286,7 @@ function ss({
3286
3286
  children: [
3287
3287
  E ? null : /* @__PURE__ */ i("header", { className: "flex items-start justify-between gap-3 border-b border-border px-4 py-3", children: [
3288
3288
  /* @__PURE__ */ i("div", { className: "min-w-0", children: [
3289
- /* @__PURE__ */ t("div", { className: Zn, children: x }),
3289
+ /* @__PURE__ */ t("div", { className: Yn, children: x }),
3290
3290
  /* @__PURE__ */ t("h2", { className: "mt-0.5 truncate text-[14px] font-semibold leading-5", children: B })
3291
3291
  ] }),
3292
3292
  /* @__PURE__ */ t(
@@ -3412,7 +3412,7 @@ function ss({
3412
3412
  "a",
3413
3413
  {
3414
3414
  href: v,
3415
- className: Y(ur, "h-6 px-1 text-[11px]"),
3415
+ className: Z(ur, "h-6 px-1 text-[11px]"),
3416
3416
  children: [
3417
3417
  "Manage all reports & briefings",
3418
3418
  /* @__PURE__ */ t(za, { className: "h-3 w-3" })
@@ -3654,7 +3654,7 @@ function ls({
3654
3654
  return /* @__PURE__ */ i(
3655
3655
  "div",
3656
3656
  {
3657
- className: Y(
3657
+ className: Z(
3658
3658
  "group relative border-b border-border/60 px-4 py-3 transition-colors hover:bg-muted/60",
3659
3659
  c && "opacity-70"
3660
3660
  ),
@@ -3693,7 +3693,7 @@ function ls({
3693
3693
  l ? /* @__PURE__ */ t(ie, { className: "h-3 w-3 shrink-0 animate-spin text-muted-foreground/70" }) : /* @__PURE__ */ t(
3694
3694
  "span",
3695
3695
  {
3696
- className: Y(
3696
+ className: Z(
3697
3697
  "inline-block h-1.5 w-1.5 shrink-0 rounded-full",
3698
3698
  g
3699
3699
  )
@@ -3757,7 +3757,7 @@ function ls({
3757
3757
  },
3758
3758
  className: "text-destructive focus:bg-destructive/10 focus:text-destructive",
3759
3759
  children: [
3760
- /* @__PURE__ */ t(Ge, { className: "h-3.5 w-3.5" }),
3760
+ /* @__PURE__ */ t(Qe, { className: "h-3.5 w-3.5" }),
3761
3761
  "Delete ",
3762
3762
  m.noun
3763
3763
  ]
@@ -3861,12 +3861,12 @@ function bs({
3861
3861
  h ?? "analytical_briefing"
3862
3862
  ), [x, B] = F("dashboard"), [I, W] = F(
3863
3863
  []
3864
- ), [P, M] = F(null), Z = h && !b && !P ? "list" : N, [K, Ce] = F(!1), [ce, O] = F(null), [te, re] = F(null), [L, ae] = F(
3864
+ ), [P, M] = F(null), Y = h && !b && !P ? "list" : N, [K, Ce] = F(!1), [ce, O] = F(null), [te, re] = F(null), [L, ae] = F(
3865
3865
  null
3866
- ), [le, G] = F(null), be = ge(null), ke = ge(D);
3866
+ ), [le, Q] = F(null), be = ge(null), ke = ge(D);
3867
3867
  J(() => {
3868
3868
  const A = D && !ke.current;
3869
- ke.current = D, !(!A || !h) && (M(null), B("dashboard"), S(h), y("author"), G(null));
3869
+ ke.current = D, !(!A || !h) && (M(null), B("dashboard"), S(h), y("author"), Q(null));
3870
3870
  }, [D, h]);
3871
3871
  const [ve, we] = F(
3872
3872
  null
@@ -3896,7 +3896,7 @@ function bs({
3896
3896
  scheduledReportAvailable: x === "dashboard"
3897
3897
  }), ne = j(async () => {
3898
3898
  if (!(!q || !H)) {
3899
- Ce(!0), G(null);
3899
+ Ce(!0), Q(null);
3900
3900
  try {
3901
3901
  W(
3902
3902
  await ps({
@@ -3906,7 +3906,7 @@ function bs({
3906
3906
  })
3907
3907
  );
3908
3908
  } catch (A) {
3909
- G(
3909
+ Q(
3910
3910
  A instanceof Error ? A.message : "Could not load briefings."
3911
3911
  );
3912
3912
  } finally {
@@ -3915,15 +3915,15 @@ function bs({
3915
3915
  }
3916
3916
  }, [he, q, H]);
3917
3917
  J(() => {
3918
- !D || Z !== "list" || !Ie || ne();
3919
- }, [Ie, Z, ne, D]);
3918
+ !D || Y !== "list" || !Ie || ne();
3919
+ }, [Ie, Y, ne, D]);
3920
3920
  const Pe = () => {
3921
3921
  M(null), B("dashboard"), y("list"), E(!0);
3922
3922
  }, C = (A) => {
3923
3923
  M(null), S(A), y("author");
3924
3924
  }, R = async (A) => {
3925
3925
  if (!(!q || !H)) {
3926
- O(A), G(null);
3926
+ O(A), Q(null);
3927
3927
  try {
3928
3928
  const _ = await he.getBriefing(
3929
3929
  q,
@@ -3932,7 +3932,7 @@ function bs({
3932
3932
  );
3933
3933
  M(_.briefing), y("author");
3934
3934
  } catch (_) {
3935
- G(
3935
+ Q(
3936
3936
  _ instanceof Error ? _.message : "Could not open briefing."
3937
3937
  );
3938
3938
  } finally {
@@ -4003,7 +4003,7 @@ function bs({
4003
4003
  }, mr = _e.length;
4004
4004
  return f.surfaceVisible ? /* @__PURE__ */ i(ua, { open: D, onOpenChange: E, children: [
4005
4005
  u ? null : /* @__PURE__ */ t(
4006
- Yn,
4006
+ Zn,
4007
4007
  {
4008
4008
  disabled: n || !Ie,
4009
4009
  briefingCount: mr,
@@ -4040,11 +4040,11 @@ function bs({
4040
4040
  {
4041
4041
  type: "button",
4042
4042
  role: "tab",
4043
- "aria-selected": Z === "author",
4043
+ "aria-selected": Y === "author",
4044
4044
  disabled: !b,
4045
- className: Y(
4045
+ className: Z(
4046
4046
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
4047
- Z === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
4047
+ Y === "author" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground",
4048
4048
  !b && "cursor-not-allowed opacity-50"
4049
4049
  ),
4050
4050
  onClick: () => {
@@ -4058,10 +4058,10 @@ function bs({
4058
4058
  {
4059
4059
  type: "button",
4060
4060
  role: "tab",
4061
- "aria-selected": Z === "list",
4062
- className: Y(
4061
+ "aria-selected": Y === "list",
4062
+ className: Z(
4063
4063
  "-mb-px border-b-2 px-0.5 pb-2 text-[12px] transition-colors",
4064
- Z === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
4064
+ Y === "list" ? "border-foreground font-medium text-foreground" : "border-transparent text-muted-foreground hover:text-foreground"
4065
4065
  ),
4066
4066
  onClick: () => y("list"),
4067
4067
  children: h === "scheduled_report" ? "Manage reports" : "Manage briefings"
@@ -4081,7 +4081,7 @@ function bs({
4081
4081
  }
4082
4082
  )
4083
4083
  ] }) : null,
4084
- Z === "list" ? /* @__PURE__ */ t(
4084
+ Y === "list" ? /* @__PURE__ */ t(
4085
4085
  ss,
4086
4086
  {
4087
4087
  briefings: _e,
@@ -4234,15 +4234,15 @@ export {
4234
4234
  eo as N,
4235
4235
  Xs as U,
4236
4236
  Hs as V,
4237
- Yn as W,
4238
- Gs as a,
4237
+ Zn as W,
4238
+ Qs as a,
4239
4239
  Rn as b,
4240
- Zs as c,
4240
+ Ys as c,
4241
4241
  Js as d,
4242
4242
  $n as e,
4243
4243
  Hn as f,
4244
4244
  to as g,
4245
4245
  ro as h,
4246
- Ys as i,
4247
- Qs as u
4246
+ Zs as i,
4247
+ Gs as u
4248
4248
  };