react-semaphor 0.1.439 → 0.1.441

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/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/chunks/{code-editor-25d16KDV.js → code-editor-CIWiSltV.js} +3182 -3152
  4. package/dist/chunks/{code-editor-BSENCZwR.js → code-editor-M7HTUhdF.js} +14 -14
  5. package/dist/chunks/{dashboard-DXTiQI-G.js → dashboard--bQrQeiz.js} +26285 -26106
  6. package/dist/chunks/{dashboard-DuS8HC11.js → dashboard-C-eTAAKs.js} +212 -212
  7. package/dist/chunks/{dashboard-briefing-launcher-FFtLgrV4.js → dashboard-briefing-launcher-dgTjPWHX.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-DD8lR1Au.js → dashboard-briefing-launcher-xulAb1Oz.js} +108 -108
  9. package/dist/chunks/{dashboard-controls-dlVDuUIE.js → dashboard-controls-CWu1wt6_.js} +79 -79
  10. package/dist/chunks/{dashboard-controls-Jd2pIzDA.js → dashboard-controls-D8BDZ5_q.js} +1 -1
  11. package/dist/chunks/{dashboard-json-BV47cQM5.js → dashboard-json-Bpm-ePrD.js} +1 -1
  12. package/dist/chunks/{dashboard-json--vVimEkU.js → dashboard-json-ZgLCrrSW.js} +2 -2
  13. package/dist/chunks/edit-dashboard-visual-BCMupXbq.js +182 -0
  14. package/dist/chunks/{edit-dashboard-visual-BJ2q0svk.js → edit-dashboard-visual-DEtVA2re.js} +6987 -6912
  15. package/dist/chunks/{report-preferences-dialog-Dpu8q4pi.js → report-preferences-dialog-Bjj_tIgL.js} +2 -2
  16. package/dist/chunks/{report-preferences-dialog-Oe6nmu2r.js → report-preferences-dialog-Ju8DjgyW.js} +1 -1
  17. package/dist/chunks/use-create-flow-overlay-state-B6a3gmF0.js +1890 -0
  18. package/dist/chunks/use-create-flow-overlay-state-wcIRGLSM.js +11 -0
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/dashboard-authoring/index.cjs +3 -3
  22. package/dist/dashboard-authoring/index.js +171 -157
  23. package/dist/data-app-builder/index.cjs +1 -1
  24. package/dist/data-app-builder/index.js +66 -66
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +6 -6
  27. package/dist/style.css +1 -1
  28. package/dist/surfboard/index.cjs +1 -1
  29. package/dist/surfboard/index.js +2 -2
  30. package/package.json +1 -1
  31. package/dist/chunks/edit-dashboard-visual-BpPTfU9y.js +0 -182
  32. package/dist/chunks/use-create-flow-overlay-state-CqKpuL7v.js +0 -1941
  33. package/dist/chunks/use-create-flow-overlay-state-CsWhd5aC.js +0 -11
@@ -1,10 +1,10 @@
1
- import { jsx as e, jsxs as r, Fragment as W } from "react/jsx-runtime";
2
- import jt, { useState as E, useEffect as J, useMemo as ee, useContext as Wt, useRef as he, useCallback as q } from "react";
3
- import { aH as De, aI as ke, aK as Ae, bb as Ct, c1 as Ht, cr as Gt, cs as Kt, aZ as fe, cf as wt, br as Ve, y as qt, w as Xt, ct as Yt, aP as Je, aS as et, aT as tt, aU as rt, aV as at, aW as nt, aX as st, aY as Nt, bq as ot, aG as O, cu as Zt, cv as Qt, cw as Ke, cg as Oe, ch as ze, cx as St, ci as _e, b$ as K, b1 as Jt, bG as Re, cy as er, b_ as tr, aJ as it, aL as lt, cz as rr, aF as ar, ba as nr, bp as Dt, cA as sr, c2 as or, av as ir, aM as lr, b3 as cr, az as $e, at as ue, a6 as ct, a3 as kt, a2 as dt, as as At, a4 as dr, Y as ur, cm as hr, cB as mr, bB as pr, N as ft, R as fr, au as gr, cC as br, cD as xr, cE as vr, cF as yr, cG as Cr, cH as wr, cI as Nr, cJ as Sr, cK as Et, cL as Dr, b4 as kr, cM as Ar, cj as It, cN as Er, cO as Ir, cP as Be, cQ as Fr, cR as Lr, cS as Br, o as Tr, aj as Vr, ae as Rr, T as Ur, ad as Pr, aa as Mr, Z as Or, a9 as zr, cT as _r, cU as $r, cV as jr, cW as Wr, cX as Hr, B as Gr, cY as Kr, cZ as qr, a1 as Xr, c_ as Yr, c$ as Zr, d0 as Qr } from "./dashboard-DXTiQI-G.js";
4
- import { B, O as Se, Z as Ze, L as te, M as Ft, d as Lt, c as X, K as Jr, E as ge, u as P, A as be, aH as gt, a7 as Bt, a6 as Qe, D as Tt, S as ut, P as Ue, a as Pe, b as Me, aI as ea, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./code-editor-25d16KDV.js";
1
+ import { jsx as e, jsxs as r, Fragment as H } from "react/jsx-runtime";
2
+ import jt, { useState as E, useEffect as J, useMemo as ee, useContext as Ht, useRef as he, useCallback as q } from "react";
3
+ import { aH as De, aI as ke, aK as Ae, aQ as Ct, b_ as Wt, co as Gt, cp as Kt, ba as fe, cc as wt, b1 as Ve, y as qt, w as Xt, cq as Qt, bg as Je, bj as et, bk as tt, bl as rt, bm as at, bn as nt, bo as st, bp as Nt, b0 as ot, aG as O, cr as Yt, cs as Zt, ct as Ke, cd as Oe, ce as ze, cu as St, cf as _e, bY as K, bt as Jt, bD as Re, cv as er, bX as tr, aJ as it, aL as lt, cw as rr, aF as ar, aP as nr, a_ as Dt, cx as sr, b$ as or, av as ir, bd as lr, bv as cr, az as $e, at as ue, a6 as ct, a3 as kt, a2 as dt, as as At, a4 as dr, Y as ur, cj as hr, cy as mr, bc as pr, N as ft, R as fr, au as gr, cz as br, cA as xr, cB as vr, cC as yr, cD as Cr, cE as wr, cF as Nr, cG as Sr, cH as Et, cI as Dr, bw as kr, cJ as Ar, cg as It, cK as Er, cL as Ir, cM as Be, cN as Fr, cO as Lr, cP as Br, o as Tr, aj as Vr, ae as Rr, T as Ur, ad as Pr, aa as Mr, Z as Or, a9 as zr, cQ as _r, cR as $r, cS as jr, cT as Hr, cU as Wr, B as Gr, cV as Kr, cW as qr, a1 as Xr, cX as Qr, cY as Yr, cZ as Zr } from "./dashboard--bQrQeiz.js";
4
+ import { B, O as Se, Z as Ye, L as te, M as Ft, d as Lt, c as X, K as Jr, E as ge, u as P, A as be, aH as gt, a7 as Bt, a6 as Ze, D as Tt, S as ut, P as Ue, a as Pe, b as Me, aI as ea, aJ as ta, aK as ra, aL as aa, aM as na, aF as sa } from "./code-editor-CIWiSltV.js";
5
5
  import { L as ht } from "./layout-grid-D5tYJg1-.js";
6
6
  import { c as xe, X as je, C as Vt } from "./index-xHCrHprY.js";
7
- import { u as mt, V as oa, E as qe, a as Xe, b as ia, c as la, L as ca, d as da, e as Rt, C as Ut, f as ua } from "./use-create-flow-overlay-state-CqKpuL7v.js";
7
+ import { u as mt, V as oa, E as qe, a as Xe, b as ia, c as la, L as ca, d as da, e as Rt, C as Ut, f as ua } from "./use-create-flow-overlay-state-B6a3gmF0.js";
8
8
  import "./analyze-result-contract-CfOBEwaC.js";
9
9
  import "../value-format-preferences/index.js";
10
10
  import { S as ha } from "./search-DHZCro8B.js";
@@ -154,7 +154,7 @@ function Ca({
154
154
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
155
155
  /* @__PURE__ */ e(Se, { htmlFor: "visual-title", className: "text-[12px]", children: "Name" }),
156
156
  /* @__PURE__ */ e(
157
- Ze,
157
+ Ye,
158
158
  {
159
159
  id: "visual-title",
160
160
  size: "sm",
@@ -171,7 +171,7 @@ function Ca({
171
171
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
172
172
  /* @__PURE__ */ e(Se, { htmlFor: "visual-description", className: "text-[12px]", children: "Description" }),
173
173
  /* @__PURE__ */ e(
174
- Ze,
174
+ Ye,
175
175
  {
176
176
  id: "visual-description",
177
177
  size: "sm",
@@ -200,7 +200,7 @@ function Ca({
200
200
  size: "xs",
201
201
  onClick: l,
202
202
  disabled: !n.trim() || s,
203
- children: s ? /* @__PURE__ */ r(W, { children: [
203
+ children: s ? /* @__PURE__ */ r(H, { children: [
204
204
  /* @__PURE__ */ e(te, { className: "h-3.5 w-3.5 animate-spin" }),
205
205
  "Creating..."
206
206
  ] }) : "Create library visual"
@@ -232,7 +232,7 @@ function wa(t, a) {
232
232
  }
233
233
  function Na(t) {
234
234
  const a = (t || "").toLowerCase();
235
- return a.includes("table") ? Ft : a.includes("pie") || a.includes("donut") ? Zt : a.includes("line") ? Qt : a.includes("bar") ? Jr : ht;
235
+ return a.includes("table") ? Ft : a.includes("pie") || a.includes("donut") ? Yt : a.includes("line") ? Zt : a.includes("bar") ? Jr : ht;
236
236
  }
237
237
  function Sa({ visual: t }) {
238
238
  const a = t.ownership.status === "public" ? "Public" : t.ownership.status === "shared" || t.ownership.sharedCount > 0 ? "Shared" : "Private";
@@ -250,11 +250,11 @@ function Un({
250
250
  c(/* @__PURE__ */ new Set()), d(null), f(null), p(!1), y(null);
251
251
  }, g = () => {
252
252
  a(!1), N();
253
- }, { selectVisual: S } = Ct(), { handleAddLibraryVisual: k, handleEditLibraryVisual: U } = mt(), { isConsoleMode: b } = Ht(), {
253
+ }, { selectVisual: S } = Ct(), { handleAddLibraryVisual: k, handleEditLibraryVisual: U } = mt(), { isConsoleMode: b } = Wt(), {
254
254
  resources: x,
255
255
  isLoading: T,
256
256
  isError: F,
257
- createResource: H,
257
+ createResource: W,
258
258
  updateResource: A,
259
259
  deleteResourceAsync: V,
260
260
  duplicateResource: j,
@@ -266,22 +266,22 @@ function Un({
266
266
  m(!1), v && (S(v), U(v), g());
267
267
  }
268
268
  ), {
269
- startUpdating: We,
269
+ startUpdating: He,
270
270
  stopUpdating: ye,
271
- isUpdating: He
272
- } = Kt(), Z = x, z = ee(() => {
271
+ isUpdating: We
272
+ } = Kt(), Y = x, z = ee(() => {
273
273
  const v = i.trim().toLowerCase();
274
- return v ? Z.filter(
274
+ return v ? Y.filter(
275
275
  (L) => {
276
276
  var M, ae, oe;
277
277
  return ((M = L.title) == null ? void 0 : M.toLowerCase().includes(v)) || ((ae = L.description) == null ? void 0 : ae.toLowerCase().includes(v)) || ((oe = L.kind) == null ? void 0 : oe.toLowerCase().includes(v));
278
278
  }
279
- ) : Z;
280
- }, [i, Z]), re = ee(
281
- () => Z.filter(
279
+ ) : Y;
280
+ }, [i, Y]), re = ee(
281
+ () => Y.filter(
282
282
  (v) => n.has(v.id)
283
283
  ),
284
- [n, Z]
284
+ [n, Y]
285
285
  ), ie = re.filter(
286
286
  (v) => v.permissions.canDelete
287
287
  ), le = re.filter(
@@ -297,7 +297,7 @@ function Un({
297
297
  ce((L) => {
298
298
  L.has(v) ? L.delete(v) : L.add(v);
299
299
  });
300
- }, Q = () => {
300
+ }, Z = () => {
301
301
  c((v) => {
302
302
  const L = new Set(v);
303
303
  return Ce ? z.forEach(
@@ -365,7 +365,7 @@ function Un({
365
365
  return;
366
366
  }
367
367
  const ae = Object.keys(M), oe = ae.length === 1 ? ae[0] : void 0;
368
- We(o.id, oe), A(
368
+ He(o.id, oe), A(
369
369
  {
370
370
  resourceId: o.id,
371
371
  data: M
@@ -381,8 +381,8 @@ function Un({
381
381
  );
382
382
  }, de = (v) => {
383
383
  a(v), v || N();
384
- }, Y = C ? 1 : ie.length;
385
- return /* @__PURE__ */ r(W, { children: [
384
+ }, Q = C ? 1 : ie.length;
385
+ return /* @__PURE__ */ r(H, { children: [
386
386
  /* @__PURE__ */ e(De, { open: t, onOpenChange: de, children: /* @__PURE__ */ r(
387
387
  ke,
388
388
  {
@@ -449,7 +449,7 @@ function Un({
449
449
  selectedIds: n,
450
450
  allFilteredSelected: Ce,
451
451
  someFilteredSelected: Ee,
452
- onSelectAll: Q,
452
+ onSelectAll: Z,
453
453
  onToggleSelection: me,
454
454
  onAddVisual: we,
455
455
  onOpenVisual: $,
@@ -465,7 +465,7 @@ function Un({
465
465
  }
466
466
  ) }),
467
467
  /* @__PURE__ */ r("div", { className: "flex shrink-0 items-center justify-between gap-2 border-t border-border/60 px-3 py-2", children: [
468
- /* @__PURE__ */ e("div", { className: "flex min-w-0 items-center gap-1.5", children: n.size > 0 && /* @__PURE__ */ r(W, { children: [
468
+ /* @__PURE__ */ e("div", { className: "flex min-w-0 items-center gap-1.5", children: n.size > 0 && /* @__PURE__ */ r(H, { children: [
469
469
  /* @__PURE__ */ r("span", { className: "text-[12px] text-muted-foreground", children: [
470
470
  /* @__PURE__ */ e("span", { className: "font-medium tabular-nums text-foreground", children: n.size }),
471
471
  " ",
@@ -541,7 +541,7 @@ function Un({
541
541
  {
542
542
  open: u,
543
543
  onOpenChange: m,
544
- onSubmit: H,
544
+ onSubmit: W,
545
545
  isCreating: ve
546
546
  }
547
547
  ),
@@ -554,7 +554,7 @@ function Un({
554
554
  }
555
555
  ),
556
556
  o && /* @__PURE__ */ e(
557
- Yt,
557
+ Qt,
558
558
  {
559
559
  open: !!o,
560
560
  resourceLabel: "Visual",
@@ -562,7 +562,7 @@ function Un({
562
562
  initialDescription: o.description || "",
563
563
  onClose: () => f(null),
564
564
  onSave: Ne,
565
- isSaving: He(o.id)
565
+ isSaving: We(o.id)
566
566
  }
567
567
  ),
568
568
  /* @__PURE__ */ e(
@@ -576,9 +576,9 @@ function Un({
576
576
  /* @__PURE__ */ r(tt, { children: [
577
577
  /* @__PURE__ */ r(rt, { children: [
578
578
  "Delete ",
579
- Y,
579
+ Q,
580
580
  " visual",
581
- Y === 1 ? "" : "s",
581
+ Q === 1 ? "" : "s",
582
582
  "?"
583
583
  ] }),
584
584
  /* @__PURE__ */ e(at, { children: "This cannot be undone. Visuals already added to dashboards may need to be removed from those dashboards separately." })
@@ -591,7 +591,7 @@ function Un({
591
591
  onClick: (v) => {
592
592
  v.preventDefault(), Ie();
593
593
  },
594
- disabled: G || Y === 0,
594
+ disabled: G || Q === 0,
595
595
  children: [
596
596
  G ? /* @__PURE__ */ e(te, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Ve, { className: "h-3.5 w-3.5" }),
597
597
  G ? "Deleting..." : "Delete"
@@ -815,7 +815,7 @@ function Aa({
815
815
  /* @__PURE__ */ e(wt, { className: "h-3.5 w-3.5" }),
816
816
  "Share"
817
817
  ] }),
818
- t.permissions.canDelete && /* @__PURE__ */ r(W, { children: [
818
+ t.permissions.canDelete && /* @__PURE__ */ r(H, { children: [
819
819
  /* @__PURE__ */ e(Re, {}),
820
820
  /* @__PURE__ */ r(
821
821
  K,
@@ -911,7 +911,7 @@ function Ea({
911
911
  /* @__PURE__ */ r("div", { className: "grid gap-2", children: [
912
912
  /* @__PURE__ */ e(Se, { htmlFor: "name", children: "Name" }),
913
913
  /* @__PURE__ */ e(
914
- Ze,
914
+ Ye,
915
915
  {
916
916
  id: "name",
917
917
  value: m,
@@ -993,7 +993,7 @@ function Ia() {
993
993
  O.error(T);
994
994
  return;
995
995
  }
996
- const H = x.cards.length === 1 ? {
996
+ const W = x.cards.length === 1 ? {
997
997
  ...x,
998
998
  cards: x.cards.map((A) => ({
999
999
  ...A,
@@ -1005,8 +1005,8 @@ function Ia() {
1005
1005
  let A = null;
1006
1006
  if (b.saveToCurrentDashboard)
1007
1007
  try {
1008
- A = await N(H, {
1009
- previousFrame: Qe(h, H.id)
1008
+ A = await N(W, {
1009
+ previousFrame: Ze(h, W.id)
1010
1010
  });
1011
1011
  } catch (j) {
1012
1012
  console.error(
@@ -1017,26 +1017,26 @@ function Ia() {
1017
1017
  );
1018
1018
  return;
1019
1019
  }
1020
- s(b.saveToCurrentDashboard), c(H), m(A);
1020
+ s(b.saveToCurrentDashboard), c(W), m(A);
1021
1021
  const V = {
1022
1022
  title: b.name,
1023
1023
  description: b.description,
1024
- frameObject: H,
1024
+ frameObject: W,
1025
1025
  // Card title synced for single-card frames
1026
1026
  isPrivate: !1
1027
1027
  };
1028
1028
  k.mutate(V);
1029
1029
  } else if (b.saveToCurrentDashboard) {
1030
1030
  const A = {
1031
- ...H,
1031
+ ...W,
1032
1032
  // Card title already synced
1033
1033
  id: gt(),
1034
1034
  visualId: void 0
1035
1035
  // Explicitly no visualId for local visuals
1036
1036
  };
1037
1037
  try {
1038
- const V = await N(H, {
1039
- previousFrame: Qe(h, H.id)
1038
+ const V = await N(W, {
1039
+ previousFrame: Ze(h, W.id)
1040
1040
  });
1041
1041
  y(f, A, {
1042
1042
  position: "end",
@@ -1064,7 +1064,7 @@ function Pn(t = {}) {
1064
1064
  isSaving: x
1065
1065
  } = Ia(), { getUpdatedFrame: T } = mt();
1066
1066
  if (a)
1067
- return /* @__PURE__ */ r(W, { children: [
1067
+ return /* @__PURE__ */ r(H, { children: [
1068
1068
  /* @__PURE__ */ e(
1069
1069
  qe,
1070
1070
  {
@@ -1075,7 +1075,7 @@ function Pn(t = {}) {
1075
1075
  /* @__PURE__ */ e(Xe, {})
1076
1076
  ] });
1077
1077
  if (y)
1078
- return /* @__PURE__ */ r(W, { children: [
1078
+ return /* @__PURE__ */ r(H, { children: [
1079
1079
  /* @__PURE__ */ e(qe, { className: "rounded-control", variant: "default" }),
1080
1080
  /* @__PURE__ */ e(Xe, {})
1081
1081
  ] });
@@ -1094,7 +1094,7 @@ function Pn(t = {}) {
1094
1094
  const j = {
1095
1095
  ...A,
1096
1096
  visualId: void 0
1097
- }, ve = Qe(m, j.id);
1097
+ }, ve = Ze(m, j.id);
1098
1098
  try {
1099
1099
  const G = await C(j, {
1100
1100
  previousFrame: ve
@@ -1111,10 +1111,10 @@ function Pn(t = {}) {
1111
1111
  setTimeout(() => {
1112
1112
  f(!1), O.success("Changes applied. Visual is now local to this dashboard"), l(!1);
1113
1113
  }, 300);
1114
- }, H = (A) => {
1114
+ }, W = (A) => {
1115
1115
  p(A), S(!0);
1116
1116
  };
1117
- return /* @__PURE__ */ r(W, { children: [
1117
+ return /* @__PURE__ */ r(H, { children: [
1118
1118
  /* @__PURE__ */ r("div", { className: "inline-flex items-center overflow-hidden rounded-control", children: [
1119
1119
  !D && /* @__PURE__ */ e(qe, { className: "!rounded-none", variant: "default" }),
1120
1120
  D && N && /* @__PURE__ */ e(ia, { className: "!rounded-none", variant: "default" }),
@@ -1137,7 +1137,7 @@ function Pn(t = {}) {
1137
1137
  align: "end",
1138
1138
  className: "min-w-[220px] rounded-control border border-border/60 p-1 shadow-sm",
1139
1139
  children: [
1140
- I && /* @__PURE__ */ r(W, { children: [
1140
+ I && /* @__PURE__ */ r(H, { children: [
1141
1141
  /* @__PURE__ */ r(
1142
1142
  K,
1143
1143
  {
@@ -1154,7 +1154,7 @@ function Pn(t = {}) {
1154
1154
  /* @__PURE__ */ r(
1155
1155
  K,
1156
1156
  {
1157
- onClick: () => H("local"),
1157
+ onClick: () => W("local"),
1158
1158
  disabled: x,
1159
1159
  children: [
1160
1160
  /* @__PURE__ */ e(fe, { className: "h-3.5 w-3.5" }),
@@ -1165,7 +1165,7 @@ function Pn(t = {}) {
1165
1165
  /* @__PURE__ */ r(
1166
1166
  K,
1167
1167
  {
1168
- onClick: () => H("library"),
1168
+ onClick: () => W("library"),
1169
1169
  disabled: x,
1170
1170
  children: [
1171
1171
  /* @__PURE__ */ e(ca, { className: "h-3.5 w-3.5" }),
@@ -1176,7 +1176,7 @@ function Pn(t = {}) {
1176
1176
  /* @__PURE__ */ r(
1177
1177
  K,
1178
1178
  {
1179
- onClick: () => H("both"),
1179
+ onClick: () => W("both"),
1180
1180
  disabled: x,
1181
1181
  children: [
1182
1182
  /* @__PURE__ */ e(da, { className: "h-3.5 w-3.5" }),
@@ -1207,7 +1207,7 @@ function Pn(t = {}) {
1207
1207
  ] });
1208
1208
  }
1209
1209
  function Mn({ className: t }) {
1210
- const a = ge((d) => d.isDevMode), i = P((d) => d.isVisualEditing), { setIsDevMode: s } = Tt(), { config: n } = Wt(lr).tokenProps, c = (n == null ? void 0 : n.showAdvancedMode) !== !1;
1210
+ const a = ge((d) => d.isDevMode), i = P((d) => d.isVisualEditing), { setIsDevMode: s } = Tt(), { config: n } = Ht(lr).tokenProps, c = (n == null ? void 0 : n.showAdvancedMode) !== !1;
1211
1211
  if (!i || !c)
1212
1212
  return null;
1213
1213
  const u = a ? ut : cr, m = a ? "Drag & drop" : "SQL", l = a ? "Switch to drag-and-drop mode" : "Switch to SQL mode";
@@ -1262,7 +1262,7 @@ function On({
1262
1262
  }
1263
1263
  ),
1264
1264
  /* @__PURE__ */ e(st, { disabled: n, children: m }),
1265
- /* @__PURE__ */ e(B, { type: "button", size: "xs", onClick: i, disabled: n, children: n ? /* @__PURE__ */ r(W, { children: [
1265
+ /* @__PURE__ */ e(B, { type: "button", size: "xs", onClick: i, disabled: n, children: n ? /* @__PURE__ */ r(H, { children: [
1266
1266
  /* @__PURE__ */ e(te, { className: "mr-2 h-3.5 w-3.5 animate-spin" }),
1267
1267
  "Saving..."
1268
1268
  ] }) : d })
@@ -1484,7 +1484,7 @@ function Pa({
1484
1484
  t.totalRows.toLocaleString(),
1485
1485
  " rows"
1486
1486
  ] }),
1487
- t.fileSize && /* @__PURE__ */ r(W, { children: [
1487
+ t.fileSize && /* @__PURE__ */ r(H, { children: [
1488
1488
  /* @__PURE__ */ e("span", { children: "•" }),
1489
1489
  /* @__PURE__ */ e("span", { children: ur(t.fileSize) })
1490
1490
  ] })
@@ -1798,7 +1798,7 @@ function za({
1798
1798
  onChange: g,
1799
1799
  emptyMessage: "No dashboard controls yet."
1800
1800
  }
1801
- ), U = l ? "Add dashboard control" : "Dashboard Controls", b = /* @__PURE__ */ r(W, { children: [
1801
+ ), U = l ? "Add dashboard control" : "Dashboard Controls", b = /* @__PURE__ */ r(H, { children: [
1802
1802
  /* @__PURE__ */ r("div", { className: "space-y-1", children: [
1803
1803
  /* @__PURE__ */ e("h4", { className: "text-sm font-medium", children: "Dashboard Controls" }),
1804
1804
  /* @__PURE__ */ e("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." })
@@ -1888,7 +1888,7 @@ function $a({
1888
1888
  () => D.map((x) => x.control),
1889
1889
  [D]
1890
1890
  ), N = ee(
1891
- () => Wa(I),
1891
+ () => Ha(I),
1892
1892
  [I]
1893
1893
  ), g = ee(
1894
1894
  () => ja(o),
@@ -1964,13 +1964,13 @@ function $a({
1964
1964
  function ja(t) {
1965
1965
  return (t.controls || []).map((a) => a.id);
1966
1966
  }
1967
- function Wa(t) {
1967
+ function Ha(t) {
1968
1968
  const a = {};
1969
1969
  for (const i of t)
1970
1970
  i.defaultValue !== void 0 && (a[i.id] = i.defaultValue);
1971
1971
  return a;
1972
1972
  }
1973
- function Ha(t, a) {
1973
+ function Wa(t, a) {
1974
1974
  return a ? Object.prototype.hasOwnProperty.call(a, t.id) ? {
1975
1975
  ...t,
1976
1976
  defaultValue: a[t.id]
@@ -1987,7 +1987,7 @@ function Ga({
1987
1987
  const u = new Map(
1988
1988
  s.map((h) => [
1989
1989
  h.id,
1990
- Ha(h, n)
1990
+ Wa(h, n)
1991
1991
  ])
1992
1992
  ), m = (c == null ? void 0 : c.type) === "rename" ? { oldId: c.oldId, newId: c.newId } : null, l = /* @__PURE__ */ new Set(), d = [];
1993
1993
  for (const h of i) {
@@ -2166,7 +2166,7 @@ function Xa() {
2166
2166
  ] });
2167
2167
  }
2168
2168
  const yt = !1;
2169
- function Ya({
2169
+ function Qa({
2170
2170
  onAddFilter: t,
2171
2171
  onAddControl: a,
2172
2172
  onManageControls: i,
@@ -2180,7 +2180,7 @@ function Ya({
2180
2180
  return n == null || n.showDownloadButton, /* @__PURE__ */ r("div", { className: "w-[300px]", children: [
2181
2181
  /* @__PURE__ */ r("div", { className: "p-1", children: [
2182
2182
  /* @__PURE__ */ e(
2183
- Ye,
2183
+ Qe,
2184
2184
  {
2185
2185
  icon: Et,
2186
2186
  label: "Add filter",
@@ -2190,7 +2190,7 @@ function Ya({
2190
2190
  }
2191
2191
  ),
2192
2192
  /* @__PURE__ */ e(
2193
- Ye,
2193
+ Qe,
2194
2194
  {
2195
2195
  icon: ut,
2196
2196
  label: "Add control",
@@ -2200,7 +2200,7 @@ function Ya({
2200
2200
  }
2201
2201
  ),
2202
2202
  /* @__PURE__ */ e(
2203
- Ye,
2203
+ Qe,
2204
2204
  {
2205
2205
  icon: It,
2206
2206
  label: "Manage controls",
@@ -2215,7 +2215,7 @@ function Ya({
2215
2215
  /* @__PURE__ */ e("p", { className: "px-1 text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground", children: "Display" }),
2216
2216
  yt,
2217
2217
  /* @__PURE__ */ e(
2218
- Za,
2218
+ Ya,
2219
2219
  {
2220
2220
  id: "filter-display-wrap",
2221
2221
  label: "Wrap to multiple lines",
@@ -2227,7 +2227,7 @@ function Ya({
2227
2227
  ] })
2228
2228
  ] });
2229
2229
  }
2230
- function Ye({
2230
+ function Qe({
2231
2231
  icon: t,
2232
2232
  label: a,
2233
2233
  onClick: i
@@ -2245,7 +2245,7 @@ function Ye({
2245
2245
  }
2246
2246
  );
2247
2247
  }
2248
- function Za({
2248
+ function Ya({
2249
2249
  id: t,
2250
2250
  label: a,
2251
2251
  checked: i,
@@ -2300,7 +2300,7 @@ function jn({
2300
2300
  }, [I]), k = q(() => {
2301
2301
  I("manage");
2302
2302
  }, [I]);
2303
- return /* @__PURE__ */ r(W, { children: [
2303
+ return /* @__PURE__ */ r(H, { children: [
2304
2304
  /* @__PURE__ */ e(
2305
2305
  Ka,
2306
2306
  {
@@ -2308,7 +2308,7 @@ function jn({
2308
2308
  onShowFiltersChange: N,
2309
2309
  pickerContent: /* @__PURE__ */ e(Xa, {}),
2310
2310
  settingsContent: (b) => /* @__PURE__ */ e(
2311
- Ya,
2311
+ Qa,
2312
2312
  {
2313
2313
  onAddFilter: g,
2314
2314
  onAddControl: S,
@@ -2346,7 +2346,7 @@ function jn({
2346
2346
  ) : null
2347
2347
  ] });
2348
2348
  }
2349
- function Qa({
2349
+ function Za({
2350
2350
  disabled: t,
2351
2351
  briefingCount: a,
2352
2352
  className: i,
@@ -2501,7 +2501,7 @@ function on({
2501
2501
  "No ",
2502
2502
  x,
2503
2503
  " yet"
2504
- ] }) : /* @__PURE__ */ r(W, { children: [
2504
+ ] }) : /* @__PURE__ */ r(H, { children: [
2505
2505
  /* @__PURE__ */ r("span", { className: "font-medium text-foreground/80", children: [
2506
2506
  S,
2507
2507
  " ",
@@ -2865,7 +2865,7 @@ function dn({
2865
2865
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
2866
2866
  /* @__PURE__ */ e(Ir, { className: "h-3 w-3" }),
2867
2867
  /* @__PURE__ */ e("span", { className: "truncate", children: rn(t) }),
2868
- t.lastRunAt ? /* @__PURE__ */ r(W, { children: [
2868
+ t.lastRunAt ? /* @__PURE__ */ r(H, { children: [
2869
2869
  /* @__PURE__ */ e("span", { className: "text-border", children: "·" }),
2870
2870
  /* @__PURE__ */ r("span", { children: [
2871
2871
  "Last run ",
@@ -2923,10 +2923,10 @@ function dn({
2923
2923
  onClick: (C) => {
2924
2924
  C.preventDefault(), c();
2925
2925
  },
2926
- children: m ? /* @__PURE__ */ r(W, { children: [
2926
+ children: m ? /* @__PURE__ */ r(H, { children: [
2927
2927
  /* @__PURE__ */ e(Lr, { className: "h-3.5 w-3.5" }),
2928
2928
  "Resume"
2929
- ] }) : /* @__PURE__ */ r(W, { children: [
2929
+ ] }) : /* @__PURE__ */ r(H, { children: [
2930
2930
  /* @__PURE__ */ e(Br, { className: "h-3.5 w-3.5" }),
2931
2931
  "Pause"
2932
2932
  ] })
@@ -3017,10 +3017,10 @@ function xn({
3017
3017
  }
3018
3018
  }), o = he(!1);
3019
3019
  return J(() => {
3020
- o.current || (o.current = !0, Yr(a.status) ? d(a) : Zr(a.status) && n(a));
3021
- }, [a, n, d]), /* @__PURE__ */ e(Qr, { run: m, onExpand: u });
3020
+ o.current || (o.current = !0, Qr(a.status) ? d(a) : Yr(a.status) && n(a));
3021
+ }, [a, n, d]), /* @__PURE__ */ e(Zr, { run: m, onExpand: u });
3022
3022
  }
3023
- function Wn(t) {
3023
+ function Hn(t) {
3024
3024
  return /* @__PURE__ */ e(Tr, { children: /* @__PURE__ */ e(vn, { ...t }) });
3025
3025
  }
3026
3026
  function vn({
@@ -3043,9 +3043,9 @@ function vn({
3043
3043
  o ? "author" : "list"
3044
3044
  ), [U, b] = E(
3045
3045
  o ?? "analytical_briefing"
3046
- ), [x, T] = E("dashboard"), [F, H] = E(
3046
+ ), [x, T] = E("dashboard"), [F, W] = E(
3047
3047
  []
3048
- ), [A, V] = E(null), j = o && !y && !A ? "list" : S, [ve, G] = E(!1), [We, ye] = E(null), [He, Z] = E(null), [z, re] = E(
3048
+ ), [A, V] = E(null), j = o && !y && !A ? "list" : S, [ve, G] = E(!1), [He, ye] = E(null), [We, Y] = E(null), [z, re] = E(
3049
3049
  null
3050
3050
  ), [ie, le] = E(null), Ce = he(null), Ee = he(N);
3051
3051
  J(() => {
@@ -3054,7 +3054,7 @@ function vn({
3054
3054
  }, [N, o]);
3055
3055
  const [ce, me] = E(
3056
3056
  null
3057
- ), [Q, we] = E(null), _ = i ?? (p == null ? void 0 : p.apiServiceUrl), $ = s ?? (h == null ? void 0 : h.accessToken), ne = ee(() => ({ ...bn, ...f }), [f]), pe = mn(a), Ie = ee(() => {
3057
+ ), [Z, we] = E(null), _ = i ?? (p == null ? void 0 : p.apiServiceUrl), $ = s ?? (h == null ? void 0 : h.accessToken), ne = ee(() => ({ ...bn, ...f }), [f]), pe = mn(a), Ie = ee(() => {
3058
3058
  const w = fn(
3059
3059
  F,
3060
3060
  x,
@@ -3078,11 +3078,11 @@ function vn({
3078
3078
  canCreate: C.canCreate,
3079
3079
  analyticalBriefingsEnabled: C.analyticalBriefingsEnabled,
3080
3080
  scheduledReportAvailable: x === "dashboard"
3081
- }), Y = q(async () => {
3081
+ }), Q = q(async () => {
3082
3082
  if (!(!_ || !$)) {
3083
3083
  G(!0), le(null);
3084
3084
  try {
3085
- H(
3085
+ W(
3086
3086
  await gn({
3087
3087
  apiClient: ne,
3088
3088
  apiServiceUrl: _,
@@ -3099,8 +3099,8 @@ function vn({
3099
3099
  }
3100
3100
  }, [ne, _, $]);
3101
3101
  J(() => {
3102
- !N || j !== "list" || !Ne || Y();
3103
- }, [Ne, j, Y, N]);
3102
+ !N || j !== "list" || !Ne || Q();
3103
+ }, [Ne, j, Q, N]);
3104
3104
  const v = () => {
3105
3105
  V(null), T("dashboard"), k("list"), g(!0);
3106
3106
  }, L = (w) => {
@@ -3125,26 +3125,26 @@ function vn({
3125
3125
  }
3126
3126
  }, ae = async (w) => {
3127
3127
  if (!(!_ || !$)) {
3128
- Z(w.id);
3128
+ Y(w.id);
3129
3129
  try {
3130
3130
  await ne.runBriefingNow(
3131
3131
  _,
3132
3132
  $,
3133
3133
  w.id,
3134
3134
  { requestId: yn() }
3135
- ), Y();
3135
+ ), Q();
3136
3136
  } catch (R) {
3137
3137
  O.error(
3138
3138
  R instanceof Error ? R.message : "Could not start the run."
3139
3139
  );
3140
3140
  } finally {
3141
- Z(null);
3141
+ Y(null);
3142
3142
  }
3143
3143
  }
3144
3144
  }, oe = async (w) => {
3145
3145
  if (!_ || !$) return;
3146
3146
  const { noun: R } = se(w), Fe = R === "report" ? "Report" : "Briefing";
3147
- Z(w.id);
3147
+ Y(w.id);
3148
3148
  try {
3149
3149
  const Le = w.status === "PAUSED" ? await ne.resumeBriefing(
3150
3150
  _,
@@ -3157,18 +3157,18 @@ function vn({
3157
3157
  );
3158
3158
  O.success(
3159
3159
  Le.briefing.status === "PAUSED" ? `${Fe} paused` : `${Fe} resumed`
3160
- ), Y();
3160
+ ), Q();
3161
3161
  } catch (Le) {
3162
3162
  O.error(
3163
3163
  Le instanceof Error ? Le.message : `Could not update the ${R} status.`
3164
3164
  );
3165
3165
  } finally {
3166
- Z(null);
3166
+ Y(null);
3167
3167
  }
3168
3168
  }, _t = async () => {
3169
3169
  if (!z || !_ || !$) return;
3170
3170
  const w = z;
3171
- Z(w.id);
3171
+ Y(w.id);
3172
3172
  try {
3173
3173
  await ne.deleteBriefing(
3174
3174
  _,
@@ -3176,18 +3176,18 @@ function vn({
3176
3176
  w.id
3177
3177
  );
3178
3178
  const { noun: R } = se(w);
3179
- O.success(`${R === "report" ? "Report" : "Briefing"} deleted`), re(null), Y();
3179
+ O.success(`${R === "report" ? "Report" : "Briefing"} deleted`), re(null), Q();
3180
3180
  } catch (R) {
3181
3181
  O.error(
3182
3182
  R instanceof Error ? R.message : "Could not delete the briefing."
3183
3183
  );
3184
3184
  } finally {
3185
- Z(null);
3185
+ Y(null);
3186
3186
  }
3187
3187
  }, $t = Ie.length;
3188
3188
  return C.surfaceVisible ? /* @__PURE__ */ r(_r, { open: N, onOpenChange: g, children: [
3189
3189
  d ? null : /* @__PURE__ */ e(
3190
- Qa,
3190
+ Za,
3191
3191
  {
3192
3192
  disabled: n || !Ne,
3193
3193
  briefingCount: $t,
@@ -3208,8 +3208,8 @@ function vn({
3208
3208
  },
3209
3209
  children: [
3210
3210
  /* @__PURE__ */ r(jr, { className: "sr-only", children: [
3211
- /* @__PURE__ */ e(Wr, { children: "Reports & briefings" }),
3212
- /* @__PURE__ */ e(Hr, { children: "Manage reports and briefings for this dashboard." })
3211
+ /* @__PURE__ */ e(Hr, { children: "Reports & briefings" }),
3212
+ /* @__PURE__ */ e(Wr, { children: "Manage reports and briefings for this dashboard." })
3213
3213
  ] }),
3214
3214
  o ? /* @__PURE__ */ r("div", { className: "flex shrink-0 items-start justify-between gap-3 border-b border-border pl-4 pr-3 pt-2", children: [
3215
3215
  /* @__PURE__ */ r(
@@ -3293,8 +3293,8 @@ function vn({
3293
3293
  oe(w);
3294
3294
  },
3295
3295
  onDelete: (w) => re(w),
3296
- selectingId: We,
3297
- busyId: He,
3296
+ selectingId: He,
3297
+ busyId: We,
3298
3298
  manageBriefingsHref: u,
3299
3299
  contentKind: o === "scheduled_report" ? "reports" : o === "analytical_briefing" ? "briefings" : void 0,
3300
3300
  hideHeader: !!o
@@ -3314,12 +3314,12 @@ function vn({
3314
3314
  onCancel: () => g(!1),
3315
3315
  onDeleted: () => {
3316
3316
  const w = A ? se(A).noun : "briefing";
3317
- O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"), Y();
3317
+ O.success(`${w === "report" ? "Report" : "Briefing"} deleted`), V(null), k("list"), Q();
3318
3318
  },
3319
3319
  onRunStarted: () => {
3320
3320
  },
3321
3321
  onSaved: (w) => {
3322
- V(w), Y();
3322
+ V(w), Q();
3323
3323
  },
3324
3324
  onMinimizeRun: ({ briefing: w, run: R }) => {
3325
3325
  me({ briefing: w, run: R }), g(!1);
@@ -3340,29 +3340,29 @@ function vn({
3340
3340
  we({
3341
3341
  briefing: ce.briefing,
3342
3342
  run: w
3343
- }), me(null), Y();
3343
+ }), me(null), Q();
3344
3344
  },
3345
3345
  onTimeout: () => {
3346
- me(null), Y();
3346
+ me(null), Q();
3347
3347
  },
3348
3348
  onExpand: () => {
3349
3349
  V(ce.briefing), k("author"), me(null), g(!0);
3350
3350
  }
3351
3351
  }
3352
3352
  ) : null,
3353
- Q ? /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ e(
3353
+ Z ? /* @__PURE__ */ e("div", { className: "fixed bottom-4 right-4 z-50 w-[360px]", children: /* @__PURE__ */ e(
3354
3354
  Kr,
3355
3355
  {
3356
- title: Q.run.status === "SUCCESS" ? `${Q.briefing.name} is ready` : `${Q.briefing.name} run failed`,
3357
- durationSeconds: Q.run.startedAt && Q.run.completedAt ? Math.max(
3356
+ title: Z.run.status === "SUCCESS" ? `${Z.briefing.name} is ready` : `${Z.briefing.name} run failed`,
3357
+ durationSeconds: Z.run.startedAt && Z.run.completedAt ? Math.max(
3358
3358
  0,
3359
3359
  Math.floor(
3360
- (new Date(Q.run.completedAt).getTime() - new Date(Q.run.startedAt).getTime()) / 1e3
3360
+ (new Date(Z.run.completedAt).getTime() - new Date(Z.run.startedAt).getTime()) / 1e3
3361
3361
  )
3362
3362
  ) : null,
3363
- status: Q.run.status === "SUCCESS" ? "success" : "failed",
3363
+ status: Z.run.status === "SUCCESS" ? "success" : "failed",
3364
3364
  onView: () => {
3365
- V(Q.briefing), k("author"), we(null), g(!0);
3365
+ V(Z.briefing), k("author"), we(null), g(!0);
3366
3366
  },
3367
3367
  onDismiss: () => we(null)
3368
3368
  }
@@ -3413,12 +3413,12 @@ function yn() {
3413
3413
  }
3414
3414
  export {
3415
3415
  Mn as A,
3416
- Wn as D,
3416
+ Hn as D,
3417
3417
  Pa as E,
3418
3418
  $n as N,
3419
3419
  On as U,
3420
3420
  Pn as V,
3421
- Qa as W,
3421
+ Za as W,
3422
3422
  za as a,
3423
3423
  Ka as b,
3424
3424
  jn as c,