react-semaphor 0.1.509 → 0.1.511

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 (40) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/chunks/{dashboard-briefing-launcher-BoXFrqq0.cjs → dashboard-briefing-launcher-BQFNo0jl.cjs} +1 -1
  4. package/dist/chunks/{dashboard-briefing-launcher-B5AQu-Vb.js → dashboard-briefing-launcher-CKH7Tf1f.js} +103 -103
  5. package/dist/chunks/{dashboard-controls-gUVkQm8o.cjs → dashboard-controls-ClFLfxq2.cjs} +1 -1
  6. package/dist/chunks/{dashboard-controls-CKKkSXEX.js → dashboard-controls-DmjRr3rv.js} +130 -130
  7. package/dist/chunks/{dashboard-json-CAJJquVx.js → dashboard-json-75yKcetl.js} +2 -2
  8. package/dist/chunks/{dashboard-json-B7fSi6_b.cjs → dashboard-json-DfqjM_p3.cjs} +1 -1
  9. package/dist/chunks/edit-dashboard-visual-BRSB4-Gg.cjs +172 -0
  10. package/dist/chunks/{edit-dashboard-visual-DCnbqRRn.js → edit-dashboard-visual-D--Ctlyq.js} +5604 -5597
  11. package/dist/chunks/{editor-action-buttons-DDA5JGwO.js → editor-action-buttons-DFrdNdTp.js} +27 -27
  12. package/dist/chunks/{editor-action-buttons-CBQsVYdt.cjs → editor-action-buttons-DxV1NKMw.cjs} +1 -1
  13. package/dist/chunks/{index-DkEAikW8.cjs → index-Bym8NiEh.cjs} +237 -238
  14. package/dist/chunks/{index-CL2lvhwk.js → index-bH_soNi5.js} +40505 -40547
  15. package/dist/chunks/{report-preferences-dialog-Bv2VIOKc.js → report-preferences-dialog-BMkvjfq4.js} +7 -7
  16. package/dist/chunks/{report-preferences-dialog-Wg9g9fIj.cjs → report-preferences-dialog-BrrpSEMl.cjs} +1 -1
  17. package/dist/chunks/{switch-iC1x2dcE.cjs → switch-BkcJCTS7.cjs} +14 -14
  18. package/dist/chunks/{switch-CD4uGTZI.js → switch-CrstROAR.js} +169 -161
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/data-app-builder/index.cjs +1 -1
  22. package/dist/data-app-builder/index.js +50 -50
  23. package/dist/index.cjs +1 -1
  24. package/dist/index.js +216 -234
  25. package/dist/style.css +1 -1
  26. package/dist/surfboard/index.cjs +1 -1
  27. package/dist/surfboard/index.js +2 -2
  28. package/dist/types/components/dashboard/dashboard-visual-error-state.d.ts +7 -1
  29. package/dist/types/components/error-fallbacks/fallback.d.ts +23 -11
  30. package/dist/types/components/visual/data-table/hooks/use-data-table-logic.d.ts +5 -0
  31. package/dist/types/lib/dashboard/open-card-in-visual-editor.d.ts +15 -0
  32. package/dist/types/lib/dashboard-pagination/dashboard-card-pagination.d.ts +24 -0
  33. package/dist/types/lib/hooks/use-dashboard-card.d.ts +4 -0
  34. package/dist/types/lib/hooks/use-dashboard-frame-query.d.ts +3 -1
  35. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +4 -1
  36. package/dist/types/lib/query-context/dashboard-card-query-key.d.ts +14 -2
  37. package/dist/types/lib/stores/dashboard-store.d.ts +4 -0
  38. package/dist/types/lib/utils/card-loading-state.d.ts +1 -0
  39. package/package.json +1 -1
  40. package/dist/chunks/edit-dashboard-visual-AZetLUv1.cjs +0 -172
@@ -2,8 +2,8 @@ import { jsx as r, jsxs as c, Fragment as re } from "react/jsx-runtime";
2
2
  import * as Zn from "react";
3
3
  import { useContext as qn, useState as x, useRef as oe, useMemo as je, useEffect as W, useCallback as Ot } from "react";
4
4
  import * as Xn from "react-dom/client";
5
- import { aK as ea, aL as ta, aM as Ir, aN as jr, aO as zr, aP as ra, aQ as Wr, aR as Hr, aS as Jr, aT as Vr, aU as _r, aV as Ur, aW as Kr, aX as na, aY as aa, aZ as oa, a_ as Ht, a$ as on, R as Gr, b0 as sa, b1 as Vt, b2 as sn, b3 as ia, b4 as la } from "../chunks/index-CL2lvhwk.js";
6
- import { B as H, P as it, a as lt, b as dt, _ as da, $ as ca, a0 as ua, a1 as pa, a2 as ha, L as me, R as ma, d as _t } from "../chunks/switch-CD4uGTZI.js";
5
+ import { aL as ea, aM as ta, aN as Ir, aO as jr, aP as zr, aQ as ra, aR as Wr, aS as Hr, aT as Jr, aU as Vr, aV as _r, aW as Ur, aX as Gr, aY as na, aZ as aa, a_ as oa, a$ as Ht, b0 as on, R as Kr, b1 as sa, b2 as Vt, b3 as sn, b4 as ia, b5 as la } from "../chunks/index-bH_soNi5.js";
6
+ import { B as H, P as it, a as lt, b as dt, _ as da, $ as ca, a0 as ua, a1 as pa, a2 as ha, L as me, R as ma, d as _t } from "../chunks/switch-CrstROAR.js";
7
7
  import { loadSemaphorBrowserRuntime as ot } from "../data-app-builder-browser-runtime/index.js";
8
8
  import { c as Ve, X as He } from "../chunks/x-CXDkqdur.js";
9
9
  import { S as fa } from "../chunks/save-DgMfP0j8.js";
@@ -583,7 +583,7 @@ function Ea(e) {
583
583
  e
584
584
  );
585
585
  }
586
- function Kt(e) {
586
+ function Gt(e) {
587
587
  return e < 1e3 ? `${e}ms` : `${(e / 1e3).toFixed(e < 1e4 ? 1 : 0)}s`;
588
588
  }
589
589
  function Oa(e) {
@@ -754,7 +754,7 @@ function st(e, a) {
754
754
  s.set(d.id, d);
755
755
  return Array.from(s.values());
756
756
  }
757
- function Ka(e, a) {
757
+ function Ga(e, a) {
758
758
  return !a || !Je(a) ? e : !e || !Je(e) ? a : {
759
759
  schemaVersion: "data-app-intent/v1",
760
760
  app: {
@@ -811,7 +811,7 @@ function an(e, a) {
811
811
  intentManifest: h || void 0
812
812
  };
813
813
  }
814
- function Ga({
814
+ function Ka({
815
815
  files: e,
816
816
  selectedPath: a,
817
817
  onSelect: s
@@ -984,7 +984,7 @@ function Za({
984
984
  var Or, Lr;
985
985
  const [f, R] = x(Lt), [v, B] = x(Xr), [b, E] = x(It), [j, L] = x(!1), [F, z] = x(Lt), [ve, Z] = x(0), [A] = x(p), [_e, ct] = x(
986
986
  l || ""
987
- ), [ut, Ue] = x([]), [$e, De] = x([]), [q, ge] = x([]), [Qt, Ke] = x(null), [X, Ge] = x(!1), [ee, Yt] = x(!1), [Pe, un] = x(!0), [pn, se] = x("idle"), [hn, ie] = x(null), [Zt, qt] = x(null), [Xt, Qe] = x(() => Date.now()), [Fe, er] = x(null), [pt, mn] = x("gpt-5.5-low"), Y = oe(null), K = oe(null), ht = oe([]), mt = oe(null), ft = oe(null), tr = oe(null), [be, ke] = x(!1), [rr, le] = x(null), [nr, gt] = x(!1), [ar, or] = x(!1), [Me, bt] = x("idle"), [sr, ir] = x(
987
+ ), [ut, Ue] = x([]), [$e, De] = x([]), [q, ge] = x([]), [Qt, Ge] = x(null), [X, Ke] = x(!1), [ee, Yt] = x(!1), [Pe, un] = x(!0), [pn, se] = x("idle"), [hn, ie] = x(null), [Zt, qt] = x(null), [Xt, Qe] = x(() => Date.now()), [Fe, er] = x(null), [pt, mn] = x("gpt-5.5-low"), Y = oe(null), G = oe(null), ht = oe([]), mt = oe(null), ft = oe(null), tr = oe(null), [be, ke] = x(!1), [rr, le] = x(null), [nr, gt] = x(!1), [ar, or] = x(!1), [Me, bt] = x("idle"), [sr, ir] = x(
988
988
  null
989
989
  ), [fn, lr] = x(""), [gn, dr] = x([]), [xt, cr] = x([]), [wt, ur] = x(null), [pr, bn] = x([]), [xn, wn] = x(null), [yt, hr] = x(null), [vt, mr] = x(null), [xe, Ye] = x(
990
990
  d || null
@@ -1193,14 +1193,14 @@ function Za({
1193
1193
  };
1194
1194
  }, [s, a, Ar]);
1195
1195
  const rt = Ot(
1196
- async (t = K.current) => {
1196
+ async (t = G.current) => {
1197
1197
  if (!t) return;
1198
1198
  const n = await t.compileBrowserSandboxPreviewHtml();
1199
1199
  lr(n.html), dr(n.diagnostics), cr(n.warnings || []), ur(n.cssMode || null), Z((i) => i + 1);
1200
1200
  },
1201
1201
  []
1202
1202
  ), Ee = Ot(
1203
- (t = K.current, n = Se.current) => {
1203
+ (t = G.current, n = Se.current) => {
1204
1204
  var m;
1205
1205
  if (!t) return;
1206
1206
  const i = t.listBrowserSandboxFiles(), o = t.readBrowserSandboxWorkspaceContext(), u = n && i.some((k) => k.path === n) ? n : ((m = i[0]) == null ? void 0 : m.path) || null;
@@ -1221,7 +1221,7 @@ function Za({
1221
1221
  try {
1222
1222
  const i = await ot();
1223
1223
  if (t) return;
1224
- K.current = i, bt("ready"), await rt(i), Ee(i);
1224
+ G.current = i, bt("ready"), await rt(i), Ee(i);
1225
1225
  } catch (i) {
1226
1226
  if (t) return;
1227
1227
  bt("failed"), ir(
@@ -1234,13 +1234,13 @@ function Za({
1234
1234
  };
1235
1235
  }, [A, Ee, rt]);
1236
1236
  function kn(t) {
1237
- const n = K.current;
1237
+ const n = G.current;
1238
1238
  hr(t), Se.current = t, mr(
1239
1239
  n && n.readBrowserSandboxFiles([t])[0] || null
1240
1240
  );
1241
1241
  }
1242
1242
  async function Cr() {
1243
- const t = K.current;
1243
+ const t = G.current;
1244
1244
  !t || X || (t.resetBrowserSandbox(), await rt(t), Ee(t), M(
1245
1245
  "Browser Sandbox reset to the approved starter template. Existing generated browser files were replaced in local browser storage.",
1246
1246
  "guidance"
@@ -1354,7 +1354,7 @@ function Za({
1354
1354
  function Rn(t) {
1355
1355
  var i;
1356
1356
  t.intentManifest && At(
1357
- (o) => Ka(o, t.intentManifest)
1357
+ (o) => Ga(o, t.intentManifest)
1358
1358
  );
1359
1359
  const n = (i = t.artifacts) == null ? void 0 : i.find(
1360
1360
  (o) => o.type === "dataset_inspector"
@@ -1386,7 +1386,7 @@ function Za({
1386
1386
  createdAt: i,
1387
1387
  attachments: t.attachments
1388
1388
  }
1389
- ]), qt(i), se("context"), ie("Preparing app context and available files."), Gn({ ...t, prompt: n });
1389
+ ]), qt(i), se("context"), ie("Preparing app context and available files."), Kn({ ...t, prompt: n });
1390
1390
  }
1391
1391
  async function Bn(t) {
1392
1392
  if (!t.type.startsWith("image/")) {
@@ -1535,7 +1535,7 @@ function Za({
1535
1535
  const i = n === "browser" ? "Browser Sandbox" : "Local Bridge", o = (u = t.changedFiles) != null && u.length ? t.changedFiles.join(", ") : "no files";
1536
1536
  return t.ok ? `${i} applied the revision and validation passed. Changed files: ${o}. The preview has been refreshed; inspect the file tree and run card for the exact file plan.` : `${i} could not finish the revision cleanly. Changed files: ${o}. The run card includes the validation output so you can ask a follow-up repair question or switch runtimes.`;
1537
1537
  }
1538
- function G(t, n) {
1538
+ function K(t, n) {
1539
1539
  Cn(
1540
1540
  t,
1541
1541
  (i) => i.map((o) => {
@@ -1569,13 +1569,13 @@ function Za({
1569
1569
  var k, w, C, y;
1570
1570
  (k = Y.current) == null || k.abort();
1571
1571
  const o = new AbortController(), u = Date.now();
1572
- Y.current = o, Ge(!0), Ke(n), Qe(u), G(n, "reading");
1572
+ Y.current = o, Ke(!0), Ge(n), Qe(u), K(n, "reading");
1573
1573
  const m = window.setTimeout(() => {
1574
1574
  o.abort();
1575
1575
  }, 18e4);
1576
1576
  try {
1577
- let N = K.current;
1578
- N || (N = await ot(), K.current = N);
1577
+ let N = G.current;
1578
+ N || (N = await ot(), G.current = N);
1579
1579
  const I = N.readBrowserSandboxWorkspaceContext(), $ = (C = (w = I.files) == null ? void 0 : w.editable) != null && C.length ? tn(
1580
1580
  I.files.editable,
1581
1581
  Se.current,
@@ -1588,7 +1588,7 @@ function Za({
1588
1588
  const pe = [];
1589
1589
  for (let ne = 0; ne < ze; ne += 1) {
1590
1590
  const te = Oe.length > 0 || ne > 0, Le = te ? `repair-${ne + 1}` : "initial";
1591
- G(n, te ? "repairing" : "generating");
1591
+ K(n, te ? "repairing" : "generating");
1592
1592
  const _ = ue || (await tt(
1593
1593
  {
1594
1594
  projectId: h,
@@ -1606,12 +1606,12 @@ function Za({
1606
1606
  )).revision;
1607
1607
  if (ue = void 0, !_)
1608
1608
  throw new Error("Data App Builder did not return a revision.");
1609
- G(n, "writing");
1609
+ K(n, "writing");
1610
1610
  const we = N.applyBrowserSandboxRevision({
1611
1611
  ..._,
1612
1612
  attemptLabel: Le
1613
1613
  });
1614
- pe.push(...we.attempts || []), G(n, "typechecking");
1614
+ pe.push(...we.attempts || []), K(n, "typechecking");
1615
1615
  let D = {
1616
1616
  ...we,
1617
1617
  attempts: [...pe],
@@ -1665,7 +1665,7 @@ function Za({
1665
1665
  }
1666
1666
  if (!Q)
1667
1667
  throw new Error("The browser runtime loop ended without a validation result.");
1668
- G(n, Q.ok ? "complete" : "failed"), nt(n, {
1668
+ K(n, Q.ok ? "complete" : "failed"), nt(n, {
1669
1669
  status: Q.ok ? "done" : "failed",
1670
1670
  result: Q,
1671
1671
  error: Q.error,
@@ -1688,16 +1688,16 @@ function Za({
1688
1688
  }), M(
1689
1689
  `Browser Sandbox stopped before it could validate the app: ${$}`,
1690
1690
  "blocked"
1691
- ), G(n, "failed");
1691
+ ), K(n, "failed");
1692
1692
  } finally {
1693
- Ge(!1), Ke(null), Y.current = null, window.clearTimeout(m);
1693
+ Ke(!1), Ge(null), Y.current = null, window.clearTimeout(m);
1694
1694
  }
1695
1695
  }
1696
1696
  async function In(t, n, i) {
1697
1697
  var k, w, C, y;
1698
1698
  (k = Y.current) == null || k.abort();
1699
1699
  const o = new AbortController(), u = Date.now();
1700
- Y.current = o, Ge(!0), Ke(n), Qe(u), G(n, "reading");
1700
+ Y.current = o, Ke(!0), Ge(n), Qe(u), K(n, "reading");
1701
1701
  const m = window.setTimeout(() => {
1702
1702
  o.abort();
1703
1703
  }, 18e4);
@@ -1804,14 +1804,14 @@ function Za({
1804
1804
  const we = [];
1805
1805
  for (let D = 0; D < ze; D += 1) {
1806
1806
  const T = te.length > 0 || D > 0, P = T ? `repair-${D + 1}` : "initial";
1807
- G(n, T ? "repairing" : "generating");
1807
+ K(n, T ? "repairing" : "generating");
1808
1808
  const U = await Ae({
1809
1809
  currentFiles: Le,
1810
1810
  workspaceContext: ue,
1811
1811
  diagnostics: te,
1812
1812
  repair: T
1813
1813
  });
1814
- G(n, "writing");
1814
+ K(n, "writing");
1815
1815
  const ae = await Ce({
1816
1816
  ...U,
1817
1817
  attemptLabel: P
@@ -1832,7 +1832,7 @@ function Za({
1832
1832
  (Ie) => Ie.label.startsWith("repair")
1833
1833
  ).length
1834
1834
  }
1835
- }, G(n, "typechecking"), ae.ok || D === ze - 1)
1835
+ }, K(n, "typechecking"), ae.ok || D === ze - 1)
1836
1836
  break;
1837
1837
  Le = (((y = ae.changedFiles) == null ? void 0 : y.length) || 0) > 0 ? await I(
1838
1838
  Q = Array.from(
@@ -1845,7 +1845,7 @@ function Za({
1845
1845
  }
1846
1846
  if (!_)
1847
1847
  throw new Error("The app-builder loop ended without a validation result.");
1848
- G(n, _.ok ? "complete" : "failed"), nt(n, {
1848
+ K(n, _.ok ? "complete" : "failed"), nt(n, {
1849
1849
  status: _.ok ? "done" : "failed",
1850
1850
  result: _,
1851
1851
  error: _.error,
@@ -1868,15 +1868,15 @@ function Za({
1868
1868
  }), M(
1869
1869
  `Local Bridge stopped before it could validate the app: ${$}`,
1870
1870
  "blocked"
1871
- ), G(n, "failed");
1871
+ ), K(n, "failed");
1872
1872
  } finally {
1873
- Ge(!1), Ke(null), Y.current = null, window.clearTimeout(m);
1873
+ Ke(!1), Ge(null), Y.current = null, window.clearTimeout(m);
1874
1874
  }
1875
1875
  }
1876
1876
  async function jn(t) {
1877
1877
  var u, m;
1878
- let n = K.current;
1879
- n || (n = await ot(), K.current = n);
1878
+ let n = G.current;
1879
+ n || (n = await ot(), G.current = n);
1880
1880
  const i = n.readBrowserSandboxWorkspaceContext(), o = (m = (u = i.files) == null ? void 0 : u.editable) != null && m.length ? tn(
1881
1881
  i.files.editable,
1882
1882
  Se.current,
@@ -1888,7 +1888,7 @@ function Za({
1888
1888
  };
1889
1889
  }
1890
1890
  async function zn(t) {
1891
- const n = K.current;
1891
+ const n = G.current;
1892
1892
  return n ? n.readBrowserSandboxFiles(t) : [];
1893
1893
  }
1894
1894
  async function Et(t, n) {
@@ -2099,8 +2099,8 @@ function Za({
2099
2099
  }
2100
2100
  async function _n() {
2101
2101
  var u, m, k, w;
2102
- let t = K.current;
2103
- t || (t = await ot(), K.current = t);
2102
+ let t = G.current;
2103
+ t || (t = await ot(), G.current = t);
2104
2104
  const n = t.readBrowserSandboxWorkspaceContext(), i = (m = (u = n.files) == null ? void 0 : u.snapshot) != null && m.length ? n.files.snapshot : [
2105
2105
  ...((k = n.files) == null ? void 0 : k.source) || [],
2106
2106
  ...((w = n.files) == null ? void 0 : w.root) || []
@@ -2214,7 +2214,7 @@ function Za({
2214
2214
  );
2215
2215
  return o;
2216
2216
  }
2217
- async function Kn() {
2217
+ async function Gn() {
2218
2218
  if (!Pt) {
2219
2219
  M(
2220
2220
  "Publish is not configured in this host yet.",
@@ -2305,7 +2305,7 @@ function Za({
2305
2305
  }), M(`Publish failed: ${u}`, "blocked");
2306
2306
  }
2307
2307
  }
2308
- async function Gn(t) {
2308
+ async function Kn(t) {
2309
2309
  var m, k;
2310
2310
  const { attachments: n, prompt: i } = t, o = new AbortController();
2311
2311
  Y.current = o, Yt(!0);
@@ -2505,7 +2505,7 @@ function Za({
2505
2505
  ] }),
2506
2506
  /* @__PURE__ */ c(_r, { children: [
2507
2507
  /* @__PURE__ */ r(Ur, { children: "Cancel" }),
2508
- /* @__PURE__ */ r(Kr, { onClick: S, children: "Discard" })
2508
+ /* @__PURE__ */ r(Gr, { onClick: S, children: "Discard" })
2509
2509
  ] })
2510
2510
  ] })
2511
2511
  ] }) : null })
@@ -2597,7 +2597,7 @@ function Za({
2597
2597
  }
2598
2598
  ),
2599
2599
  ut.length > 0 ? /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-1.5 border-t border-border px-2 py-2", children: ut.map((t) => /* @__PURE__ */ r(
2600
- Gt,
2600
+ Kt,
2601
2601
  {
2602
2602
  attachment: t,
2603
2603
  onRemove: $n
@@ -2851,7 +2851,7 @@ function Za({
2851
2851
  title: "Refresh manifest",
2852
2852
  "aria-label": "Refresh manifest",
2853
2853
  onClick: () => void Tr(),
2854
- children: /* @__PURE__ */ r(Gr, { className: "h-3.5 w-3.5" })
2854
+ children: /* @__PURE__ */ r(Kr, { className: "h-3.5 w-3.5" })
2855
2855
  }
2856
2856
  )
2857
2857
  ] }),
@@ -2888,7 +2888,7 @@ function Za({
2888
2888
  ] }),
2889
2889
  /* @__PURE__ */ c(_r, { children: [
2890
2890
  /* @__PURE__ */ r(Ur, { children: "Cancel" }),
2891
- /* @__PURE__ */ r(Kr, { onClick: () => void Nn(), children: "Reset app" })
2891
+ /* @__PURE__ */ r(Gr, { onClick: () => void Nn(), children: "Reset app" })
2892
2892
  ] })
2893
2893
  ] })
2894
2894
  ] }),
@@ -2917,7 +2917,7 @@ function Za({
2917
2917
  className: "gap-1.5 text-muted-foreground",
2918
2918
  disabled: X || ee || Ze === "saving" || fr === "publishing" || A !== "bridge" || !Pt,
2919
2919
  title: "Build, upload, and publish the current Data App",
2920
- onClick: () => void Kn(),
2920
+ onClick: () => void Gn(),
2921
2921
  children: [
2922
2922
  fr === "publishing" ? /* @__PURE__ */ r(me, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ r(xa, { className: "h-3.5 w-3.5" }),
2923
2923
  "Publish"
@@ -3020,7 +3020,7 @@ function Za({
3020
3020
  onClick: () => {
3021
3021
  A === "browser" ? (rt(), Ee()) : (z(f), Z((t) => t + 1));
3022
3022
  },
3023
- children: /* @__PURE__ */ r(Gr, { className: "h-3.5 w-3.5" })
3023
+ children: /* @__PURE__ */ r(Kr, { className: "h-3.5 w-3.5" })
3024
3024
  }
3025
3025
  )
3026
3026
  ] })
@@ -3055,7 +3055,7 @@ function Za({
3055
3055
  /* @__PURE__ */ r("span", { className: "ml-auto font-mono text-[10px] text-muted-foreground", children: pr.length })
3056
3056
  ] }),
3057
3057
  /* @__PURE__ */ r("div", { className: "max-h-72 shrink-0 overflow-y-auto border-b border-border p-2", children: /* @__PURE__ */ r(
3058
- Ga,
3058
+ Ka,
3059
3059
  {
3060
3060
  files: pr,
3061
3061
  selectedPath: yt,
@@ -3259,7 +3259,7 @@ function no({
3259
3259
  }
3260
3260
  ),
3261
3261
  S.attachments.length > 0 ? /* @__PURE__ */ r("div", { className: "mt-1.5 flex flex-wrap gap-1.5", children: S.attachments.map((R) => /* @__PURE__ */ r(
3262
- Gt,
3262
+ Kt,
3263
3263
  {
3264
3264
  attachment: R,
3265
3265
  onRemove: (v) => s(S.id, v)
@@ -3276,10 +3276,10 @@ function ao({ message: e }) {
3276
3276
  var a;
3277
3277
  return /* @__PURE__ */ c("div", { className: "ml-auto max-w-[88%] rounded-[6px] rounded-br-[2px] bg-foreground/10 px-3 py-2 text-[13px] leading-relaxed text-foreground", children: [
3278
3278
  /* @__PURE__ */ r("div", { children: e.content }),
3279
- (a = e.attachments) != null && a.length ? /* @__PURE__ */ r("div", { className: "mt-2 flex flex-wrap gap-1.5", children: e.attachments.map((s) => /* @__PURE__ */ r(Gt, { attachment: s }, s.id)) }) : null
3279
+ (a = e.attachments) != null && a.length ? /* @__PURE__ */ r("div", { className: "mt-2 flex flex-wrap gap-1.5", children: e.attachments.map((s) => /* @__PURE__ */ r(Kt, { attachment: s }, s.id)) }) : null
3280
3280
  ] });
3281
3281
  }
3282
- function Gt({
3282
+ function Kt({
3283
3283
  attachment: e,
3284
3284
  onRemove: a
3285
3285
  }) {
@@ -3514,7 +3514,7 @@ function co({
3514
3514
  /* @__PURE__ */ c("div", { className: "flex items-center gap-2", children: [
3515
3515
  /* @__PURE__ */ r(me, { className: "h-3.5 w-3.5 shrink-0 animate-spin text-muted-foreground" }),
3516
3516
  /* @__PURE__ */ r("span", { className: "text-[12.5px] font-medium text-foreground", children: d }),
3517
- /* @__PURE__ */ r("span", { className: "ml-auto shrink-0 font-mono text-[11px] tabular-nums text-muted-foreground", children: Kt(s) })
3517
+ /* @__PURE__ */ r("span", { className: "ml-auto shrink-0 font-mono text-[11px] tabular-nums text-muted-foreground", children: Gt(s) })
3518
3518
  ] }),
3519
3519
  /* @__PURE__ */ r("div", { className: "mt-1 flex items-center justify-between gap-3", children: /* @__PURE__ */ r("span", { className: "text-[11px] leading-relaxed text-muted-foreground", children: l }) })
3520
3520
  ] });
@@ -3555,7 +3555,7 @@ function uo({
3555
3555
  d,
3556
3556
  " ·",
3557
3557
  " ",
3558
- Kt(h)
3558
+ Gt(h)
3559
3559
  ] })
3560
3560
  ] }),
3561
3561
  /* @__PURE__ */ c("div", { className: "space-y-2.5 border-t border-border/60 px-2.5 py-2", children: [
@@ -3655,7 +3655,7 @@ function po({
3655
3655
  (a || 0) + 1,
3656
3656
  " / ",
3657
3657
  ze
3658
- ] }) : /* @__PURE__ */ r("span", { children: Kt(e) }) })
3658
+ ] }) : /* @__PURE__ */ r("span", { children: Gt(e) }) })
3659
3659
  ] });
3660
3660
  }
3661
3661
  function ho({ state: e }) {
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DkEAikW8.cjs"),T=require("./chunks/common-types-nBuCd3u2.cjs"),R=require("./chunks/report-preferences-dialog-Wg9g9fIj.cjs"),i=require("react/jsx-runtime"),r=require("./chunks/switch-iC1x2dcE.cjs"),h=require("react"),N=require("./chunks/token-types-Ahh5u4iT.cjs"),u=require("./chunks/validators-DVYAnnX0.cjs"),l=require("./chunks/dashboard-briefing-launcher-BoXFrqq0.cjs"),w=require("./chunks/use-debounced-dirty-check-XHSwAefL.cjs");require("./chunks/matrix-operation-contract-DoiWTUbT.cjs");require("./chunks/matrix-continuation-6nhDy-lF.cjs");require("./value-format-preferences/index.cjs");const L=require("./chunks/report-runtime-context-DzvHBPxl.cjs"),B=require("./chunks/pivot-result-identity-uTiylUNr.cjs");require("./chunks/field-aggregations-jSi77h9Z.cjs");const A=require("./chunks/calculated-field-identity-BiTGmnST.cjs");require("zod");require("./chunks/card-config-utils-CMO4_zVs.cjs");require("react-dom");require("./chunks/index-DhlVxvyI.cjs");require("./chunks/appearance-context-DzqCdhB4.cjs");require("./chunks/color-CyB5o13F.cjs");require("./chunks/index-Cx3qmRUB.cjs");const S=require("./chunks/normalize-dashboard-for-dirty-check-BYtBA708.cjs"),M=require("./chunks/x-B6ghREd2.cjs");require("./chunks/appearance-runtime-provider-D5pkvgE4.cjs");function j(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,d.get?d:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const m=j(h);function I(a){const{displayPreferences:t,cardId:o,...d}=a,n={...d,id:a.dashboardId};return i.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:i.jsxs(e.SemaphorContextProvider,{dashboardProps:n,children:[i.jsx(e.SemaphorReadyIndicator,{componentType:"visual",componentId:a.cardId}),i.jsx(e.UXProvider,{appearance:a.appearance,children:i.jsx(e.DisplayPreferencesProvider,{displayPreferences:t,children:i.jsx(e.Container,{type:"visual",cardId:o,...n,children:i.jsx(q,{cardId:o})})})})]})})}function q({cardId:a}){const t=r.useDashboardStore(n=>{var c;return(c=n.dashboard)==null?void 0:c.sheets}),{card:o,frame:d}=h.useMemo(()=>{const n=t==null?void 0:t.flatMap(s=>s.frames),c=n==null?void 0:n.flatMap(s=>s==null?void 0:s.cards),D=c==null?void 0:c.find(s=>(s==null?void 0:s.id)===a),E=n==null?void 0:n.find(s=>{var C;return(C=s==null?void 0:s.cards)==null?void 0:C.find(f=>(f==null?void 0:f.id)===a)});return{card:D,frame:E}},[t,a]);return!o||!d?i.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):i.jsx("main",{className:"flex h-full grow flex-col",children:i.jsx(e.ErrorBoundary,{FallbackComponent:({error:n,resetErrorBoundary:c})=>i.jsx(e.FallbackVisual,{error:n,resetErrorBoundary:c,customerFacingMessage:"Error creating visual. Please try again."}),children:i.jsx(e.DashboardCard,{card:o,frame:d})})})}function U(a,t,o,d){h.useEffect(()=>{a&&!o&&t&&d(A.cloneDeep(t))},[a,o,t,d])}function k({name:a,items:t,value:o,onChange:d,isLoading:n,isError:c,refetch:D,className:E,icon:s,showNone:C=!1}){const f=m.useRef(null),[y,b]=m.useState(!1),[F,v]=m.useState("100%"),x=C?[...t||[],{id:"none",name:"None"}]:t;m.useLayoutEffect(()=>{f.current&&v(f.current.offsetWidth)},[]);function _(){var g;return n?"Loading...":c?"Error":o?(g=t==null?void 0:t.find(p=>p.id===o))==null?void 0:g.name:`Select ${a}`}function P(g,p){d(p),b(!1)}return i.jsxs(r.Popover,{open:y,onOpenChange:b,children:[i.jsx(r.PopoverTrigger,{asChild:!0,children:i.jsxs(r.Button,{ref:f,variant:"outline",role:"combobox","aria-expanded":y,className:r.cn("flex h-9 w-full justify-between",E),children:[i.jsxs("div",{className:"flex items-center gap-2",children:[s&&i.jsx("div",{className:"mr-2",children:s}),i.jsx("span",{className:"max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:_()})]}),i.jsx(M.ChevronDown,{className:"size-4 opacity-50"})]})}),i.jsx(r.PopoverContent,{className:"w-full p-0",style:{minWidth:F},children:i.jsxs(e.Command,{children:[i.jsxs("div",{className:"flex h-9 items-center justify-between border-b pr-1",children:[i.jsx(e.CommandInput,{className:"h-9",placeholder:"Search..."}),i.jsx(e.IconButton,{className:"h-7",onClick:D,children:i.jsx(e.RefreshCw,{className:r.cn("size-3.5 opacity-50",n&&"animate-spin")})})]}),i.jsxs(e.CommandList,{children:[i.jsxs(e.CommandEmpty,{children:["No ",a==null?void 0:a.toLowerCase()," found."]}),i.jsx(e.CommandGroup,{children:x==null?void 0:x.map(g=>i.jsx(e.CommandItem,{className:"overflow-x-auto",value:g.name,onSelect:p=>P(p,g.id),children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(r.Check,{className:r.cn("size-4",o===g.id?"opacity-100":"opacity-0")}),i.jsx("div",{title:g.name,children:g.name})]})},g.id))})]})]})})]})}function O(a,t){h.useEffect(()=>(a&&t&&(window.__SEMAPHOR_PRINT_STATE__={...t}),()=>{a&&window.__SEMAPHOR_PRINT_STATE__&&delete window.__SEMAPHOR_PRINT_STATE__}),[a,t])}exports.BriefingAuthor=e.BriefingAuthor;exports.BriefingAuthorDialog=e.BriefingAuthorDialog;exports.BriefingUiCapabilitiesBoundary=e.BriefingUiCapabilitiesBoundary;exports.BriefingUiCapabilitiesProvider=e.BriefingUiCapabilitiesProvider;exports.BriefingsApiError=e.BriefingsApiError;exports.CardSummary=e.CardSummary;exports.Dashboard=e.Dashboard;exports.DashboardCreateDialogBase=e.DashboardCreateDialogBase;exports.DashboardExportDialog=e.DashboardExportDialog;exports.DashboardWC=e.DashboardWC;exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.ExportError=e.ExportError;exports.MatrixCardView=e.MatrixCardView;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.ShareDialog=e.ShareDialog;exports.SummaryCard=e.SummaryCard;exports.Surfboard=e.DashboardPlus;exports.applyBriefingFormPatch=e.applyBriefingFormPatch;exports.briefingFormDraftToCreateRequest=e.briefingFormDraftToCreateRequest;exports.briefingFormDraftToUpdateRequest=e.briefingFormDraftToUpdateRequest;exports.briefingToFormDraft=e.briefingToFormDraft;exports.cancelBriefingPreviewRun=e.cancelBriefingPreviewRun;exports.cancelBriefingRun=e.cancelBriefingRun;exports.cancelExport=e.cancelExport;exports.createBriefing=e.createBriefing;exports.createBriefingFormDraft=e.createBriefingFormDraft;exports.createExport=e.createExport;exports.deleteBriefing=e.deleteBriefing;exports.deleteBriefingRun=e.deleteBriefingRun;exports.downloadDocumentPdf=e.downloadDocumentPdf;exports.downloadPdf=e.downloadPdf;exports.formatFileSize=e.formatFileSize;exports.getBriefing=e.getBriefing;exports.getBriefingArtifact=e.getBriefingArtifact;exports.getBriefingEvidence=e.getBriefingEvidence;exports.getBriefingPreviewRun=e.getBriefingPreviewRun;exports.getBriefingRun=e.getBriefingRun;exports.getDownloadUrl=e.getDownloadUrl;exports.getExportStatus=e.getExportStatus;exports.getExports=e.getExports;exports.isExportComplete=e.isExportComplete;exports.isExportInProgress=e.isExportInProgress;exports.listBriefingRuns=e.listBriefingRuns;exports.listBriefingTenantSummaries=e.listBriefingTenantSummaries;exports.listBriefings=e.listBriefings;exports.pauseBriefing=e.pauseBriefing;exports.polishBriefingText=e.polishBriefingText;exports.previewBriefingPlan=e.previewBriefingPlan;exports.resumeBriefing=e.resumeBriefing;exports.runBriefingNow=e.runBriefingNow;exports.runBriefingPreview=e.runBriefingPreview;exports.updateBriefing=e.updateBriefing;exports.useActiveExports=e.useActiveExports;exports.useAddNewFrame=e.useAddNewFrame;exports.useBriefingUiCapabilities=e.useBriefingUiCapabilities;exports.useCard=e.useCard;exports.useCardSummary=e.useCardSummary;exports.useDashboardById=e.useDashboardById;exports.useDashboardQuery=e.useDashboardQuery;exports.useDashboardSummary=e.useDashboardSummary;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorAside=e.useEditorAside;exports.useExportActions=e.useExportActions;exports.useExportStore=e.useExportStore;exports.useInProgressExportsCount=e.useInProgressExportsCount;exports.useManagementStore=e.useManagementStore;exports.useResourceManagement=e.useResourceManagement;exports.useTextFilterHook=e.useTextFilterHook;exports.validateBriefingFormDraft=e.validateBriefingFormDraft;exports.CONTROL_CARD_DEFAULT_VALUE=T.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=T.EMPTY_SELECTION;exports.ReportPreferencesDialog=R.ReportPreferencesDialog;exports.createEmptyKpiConfig=r.createEmptyKpiConfig;exports.createSqlGenConfig=r.createSqlGenConfig;exports.emitDashboardLoad=r.emitDashboardLoad;exports.emitDashboardUnload=r.emitDashboardUnload;exports.fmt=r.fmt;exports.getColumnDataType=r.getColumnDataType;exports.getFilterValueType=r.getFilterValueType;exports.getFormattedTableNameForQuery=r.getFormattedTableNameForQuery;exports.getQualifiedTableName=r.getQualifiedTableName;exports.getSql=r.getSql;exports.invalidateToken=r.invalidateToken;exports.isBooleanDataType=r.isBooleanDataType;exports.isColumnInSqlGen=r.isColumnInSqlGen;exports.isDateDataType=r.isDateDataType;exports.isNumberDataType=r.isNumberDataType;exports.isTextDataType=r.isTextDataType;exports.resolveDataType=r.resolveDataType;exports.resolveDatamodelName=r.resolveDatamodelName;exports.useCurrentActiveCard=r.useCurrentActiveCard;exports.useCurrentCardConfig=r.useCurrentCardConfig;exports.useCurrentSheetActiveCards=r.useCurrentSheetActiveCards;exports.useDashboardActions=r.useDashboardActions;exports.useDashboardStore=r.useDashboardStore;exports.useEditorActions=r.useEditorActions;exports.useEditorStore=r.useEditorStore;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=N.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.CALCULATED_FIELD_ENTITY_MARKER=u.CALCULATED_FIELD_ENTITY_MARKER;exports.DATE_FORMAT_VALUES=u.DATE_FORMAT_VALUES;exports.LEGACY_CALCULATED_FIELD_ENTITY_MARKER=u.LEGACY_CALCULATED_FIELD_ENTITY_MARKER;exports.PivotMarkerEnum=u.PivotMarkerEnum;exports.getCalculatedFieldComputeStage=u.getCalculatedFieldComputeStage;exports.getFieldRuntimeColumnName=u.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=u.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=u.hasCalculatedFormulaInputs;exports.hasSyntheticCalculatedFieldOwner=u.hasSyntheticCalculatedFieldOwner;exports.inspectCalculatedField=u.inspectCalculatedField;exports.isCalculatedDimension=u.isCalculatedDimension;exports.isCalculatedMetric=u.isCalculatedMetric;exports.isDerivedField=u.isDerivedField;exports.normalizeCalculatedFieldRepresentation=u.normalizeCalculatedFieldRepresentation;exports.shouldDropInheritedCalculationAggregate=u.shouldDropInheritedCalculationAggregate;exports.AdvancedModeToggle=l.AdvancedModeToggle;exports.DashboardBriefingLauncher=l.DashboardBriefingLauncher;exports.DashboardControlsSettings=l.DashboardControlsSettings;exports.DashboardFilterControlsButton=l.DashboardFilterControlsButton;exports.DashboardFilterControlsLauncher=l.DashboardFilterControlsLauncher;exports.DocumentControlsSettings=l.DocumentControlsSettings;exports.ExportNotificationItem=l.ExportNotificationItem;exports.ExportNotificationList=l.ExportNotificationList;exports.NotificationBell=l.NotificationBell;exports.UnsavedChangesAlert=l.UnsavedChangesAlert;exports.VisualEditingControls=l.VisualEditingControls;exports.VisualsLibraryDialog=l.VisualsLibraryDialog;exports.WatchDashboardButton=l.WatchDashboardButton;exports.useDashboardUnsavedChangesCheck=l.useDashboardUnsavedChangesCheck;exports.useExportPolling=l.useExportPolling;exports.useExportRecovery=l.useExportRecovery;exports.useDebouncedDirtyCheck=w.useDebouncedDirtyCheck;exports.DEFAULT_CALENDAR_CONTEXT=L.DEFAULT_CALENDAR_CONTEXT;exports.resolveQueryColumnKeyMapEntry=B.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=B.resolveUniqueQueryColumnKeyMapEntry;exports.cloneDeep=A.cloneDeep;exports.normalizeDashboardForDirtyCheck=S.normalizeDashboardForDirtyCheck;exports.serializeDashboardForDirtyCheck=S.serializeDashboardForDirtyCheck;exports.Combobox=k;exports.Visual=I;exports.useExposePrintState=O;exports.usePristineSnapshotInitializer=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-Bym8NiEh.cjs"),T=require("./chunks/common-types-nBuCd3u2.cjs"),R=require("./chunks/report-preferences-dialog-BrrpSEMl.cjs"),i=require("react/jsx-runtime"),r=require("./chunks/switch-BkcJCTS7.cjs"),m=require("react"),N=require("./chunks/token-types-Ahh5u4iT.cjs"),l=require("./chunks/validators-DVYAnnX0.cjs"),s=require("./chunks/dashboard-briefing-launcher-BQFNo0jl.cjs"),w=require("./chunks/use-debounced-dirty-check-XHSwAefL.cjs");require("./chunks/matrix-operation-contract-DoiWTUbT.cjs");require("./chunks/matrix-continuation-6nhDy-lF.cjs");require("./value-format-preferences/index.cjs");const L=require("./chunks/report-runtime-context-DzvHBPxl.cjs"),B=require("./chunks/pivot-result-identity-uTiylUNr.cjs");require("./chunks/field-aggregations-jSi77h9Z.cjs");const A=require("./chunks/calculated-field-identity-BiTGmnST.cjs");require("zod");require("./chunks/card-config-utils-CMO4_zVs.cjs");require("react-dom");require("./chunks/index-DhlVxvyI.cjs");require("./chunks/appearance-context-DzqCdhB4.cjs");require("./chunks/color-CyB5o13F.cjs");require("./chunks/index-Cx3qmRUB.cjs");const S=require("./chunks/normalize-dashboard-for-dirty-check-BYtBA708.cjs"),I=require("./chunks/x-B6ghREd2.cjs");require("./chunks/appearance-runtime-provider-D5pkvgE4.cjs");function j(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const d=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(a,o,d.get?d:{enumerable:!0,get:()=>t[o]})}}return a.default=t,Object.freeze(a)}const h=j(m);function q(t){const{displayPreferences:a,cardId:o,...d}=t,u={...d,id:t.dashboardId};return i.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:i.jsxs(e.SemaphorContextProvider,{dashboardProps:u,children:[i.jsx(e.SemaphorReadyIndicator,{componentType:"visual",componentId:t.cardId}),i.jsx(e.UXProvider,{appearance:t.appearance,children:i.jsx(e.DisplayPreferencesProvider,{displayPreferences:a,children:i.jsx(e.Container,{type:"visual",cardId:o,...u,children:i.jsx(M,{cardId:o})})})})]})})}function M({cardId:t}){const a=r.useDashboardStore(u=>{var f;return(f=u.dashboard)==null?void 0:f.sheets}),{card:o,frame:d}=m.useMemo(()=>{const u=a==null?void 0:a.flatMap(n=>n.frames),f=u==null?void 0:u.flatMap(n=>n==null?void 0:n.cards),D=f==null?void 0:f.find(n=>(n==null?void 0:n.id)===t),E=u==null?void 0:u.find(n=>{var C;return(C=n==null?void 0:n.cards)==null?void 0:C.find(g=>(g==null?void 0:g.id)===t)});return{card:D,frame:E}},[a,t]);return!o||!d?i.jsx(e.VisualErrorState,{description:`Couldn’t find a visual with ID ${t} on this dashboard.`,role:"status"}):i.jsx("main",{className:"flex h-full grow flex-col",children:i.jsx(e.ErrorBoundary,{FallbackComponent:e.FallbackVisual,children:i.jsx(e.DashboardCard,{card:o,frame:d})})})}function U(t,a,o,d){m.useEffect(()=>{t&&!o&&a&&d(A.cloneDeep(a))},[t,o,a,d])}function k({name:t,items:a,value:o,onChange:d,isLoading:u,isError:f,refetch:D,className:E,icon:n,showNone:C=!1}){const g=h.useRef(null),[y,b]=h.useState(!1),[v,F]=h.useState("100%"),x=C?[...a||[],{id:"none",name:"None"}]:a;h.useLayoutEffect(()=>{g.current&&F(g.current.offsetWidth)},[]);function _(){var c;return u?"Loading...":f?"Error":o?(c=a==null?void 0:a.find(p=>p.id===o))==null?void 0:c.name:`Select ${t}`}function P(c,p){d(p),b(!1)}return i.jsxs(r.Popover,{open:y,onOpenChange:b,children:[i.jsx(r.PopoverTrigger,{asChild:!0,children:i.jsxs(r.Button,{ref:g,variant:"outline",role:"combobox","aria-expanded":y,className:r.cn("flex h-9 w-full justify-between",E),children:[i.jsxs("div",{className:"flex items-center gap-2",children:[n&&i.jsx("div",{className:"mr-2",children:n}),i.jsx("span",{className:"max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:_()})]}),i.jsx(I.ChevronDown,{className:"size-4 opacity-50"})]})}),i.jsx(r.PopoverContent,{className:"w-full p-0",style:{minWidth:v},children:i.jsxs(e.Command,{children:[i.jsxs("div",{className:"flex h-9 items-center justify-between border-b pr-1",children:[i.jsx(e.CommandInput,{className:"h-9",placeholder:"Search..."}),i.jsx(e.IconButton,{className:"h-7",onClick:D,children:i.jsx(e.RefreshCw,{className:r.cn("size-3.5 opacity-50",u&&"animate-spin")})})]}),i.jsxs(e.CommandList,{children:[i.jsxs(e.CommandEmpty,{children:["No ",t==null?void 0:t.toLowerCase()," found."]}),i.jsx(e.CommandGroup,{children:x==null?void 0:x.map(c=>i.jsx(e.CommandItem,{className:"overflow-x-auto",value:c.name,onSelect:p=>P(p,c.id),children:i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(r.Check,{className:r.cn("size-4",o===c.id?"opacity-100":"opacity-0")}),i.jsx("div",{title:c.name,children:c.name})]})},c.id))})]})]})})]})}function O(t,a){m.useEffect(()=>(t&&a&&(window.__SEMAPHOR_PRINT_STATE__={...a}),()=>{t&&window.__SEMAPHOR_PRINT_STATE__&&delete window.__SEMAPHOR_PRINT_STATE__}),[t,a])}exports.BriefingAuthor=e.BriefingAuthor;exports.BriefingAuthorDialog=e.BriefingAuthorDialog;exports.BriefingUiCapabilitiesBoundary=e.BriefingUiCapabilitiesBoundary;exports.BriefingUiCapabilitiesProvider=e.BriefingUiCapabilitiesProvider;exports.BriefingsApiError=e.BriefingsApiError;exports.CardSummary=e.CardSummary;exports.Dashboard=e.Dashboard;exports.DashboardCreateDialogBase=e.DashboardCreateDialogBase;exports.DashboardExportDialog=e.DashboardExportDialog;exports.DashboardWC=e.DashboardWC;exports.DisplayFormatPreferencesFields=e.DisplayFormatPreferencesFields;exports.ExportError=e.ExportError;exports.MatrixCardView=e.MatrixCardView;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.ShareDialog=e.ShareDialog;exports.SummaryCard=e.SummaryCard;exports.Surfboard=e.DashboardPlus;exports.applyBriefingFormPatch=e.applyBriefingFormPatch;exports.briefingFormDraftToCreateRequest=e.briefingFormDraftToCreateRequest;exports.briefingFormDraftToUpdateRequest=e.briefingFormDraftToUpdateRequest;exports.briefingToFormDraft=e.briefingToFormDraft;exports.cancelBriefingPreviewRun=e.cancelBriefingPreviewRun;exports.cancelBriefingRun=e.cancelBriefingRun;exports.cancelExport=e.cancelExport;exports.createBriefing=e.createBriefing;exports.createBriefingFormDraft=e.createBriefingFormDraft;exports.createExport=e.createExport;exports.deleteBriefing=e.deleteBriefing;exports.deleteBriefingRun=e.deleteBriefingRun;exports.downloadDocumentPdf=e.downloadDocumentPdf;exports.downloadPdf=e.downloadPdf;exports.formatFileSize=e.formatFileSize;exports.getBriefing=e.getBriefing;exports.getBriefingArtifact=e.getBriefingArtifact;exports.getBriefingEvidence=e.getBriefingEvidence;exports.getBriefingPreviewRun=e.getBriefingPreviewRun;exports.getBriefingRun=e.getBriefingRun;exports.getDownloadUrl=e.getDownloadUrl;exports.getExportStatus=e.getExportStatus;exports.getExports=e.getExports;exports.isExportComplete=e.isExportComplete;exports.isExportInProgress=e.isExportInProgress;exports.listBriefingRuns=e.listBriefingRuns;exports.listBriefingTenantSummaries=e.listBriefingTenantSummaries;exports.listBriefings=e.listBriefings;exports.pauseBriefing=e.pauseBriefing;exports.polishBriefingText=e.polishBriefingText;exports.previewBriefingPlan=e.previewBriefingPlan;exports.resumeBriefing=e.resumeBriefing;exports.runBriefingNow=e.runBriefingNow;exports.runBriefingPreview=e.runBriefingPreview;exports.updateBriefing=e.updateBriefing;exports.useActiveExports=e.useActiveExports;exports.useAddNewFrame=e.useAddNewFrame;exports.useBriefingUiCapabilities=e.useBriefingUiCapabilities;exports.useCard=e.useCard;exports.useCardSummary=e.useCardSummary;exports.useDashboardById=e.useDashboardById;exports.useDashboardQuery=e.useDashboardQuery;exports.useDashboardSummary=e.useDashboardSummary;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorAside=e.useEditorAside;exports.useExportActions=e.useExportActions;exports.useExportStore=e.useExportStore;exports.useInProgressExportsCount=e.useInProgressExportsCount;exports.useManagementStore=e.useManagementStore;exports.useResourceManagement=e.useResourceManagement;exports.useTextFilterHook=e.useTextFilterHook;exports.validateBriefingFormDraft=e.validateBriefingFormDraft;exports.CONTROL_CARD_DEFAULT_VALUE=T.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=T.EMPTY_SELECTION;exports.ReportPreferencesDialog=R.ReportPreferencesDialog;exports.createEmptyKpiConfig=r.createEmptyKpiConfig;exports.createSqlGenConfig=r.createSqlGenConfig;exports.emitDashboardLoad=r.emitDashboardLoad;exports.emitDashboardUnload=r.emitDashboardUnload;exports.fmt=r.fmt;exports.getColumnDataType=r.getColumnDataType;exports.getFilterValueType=r.getFilterValueType;exports.getFormattedTableNameForQuery=r.getFormattedTableNameForQuery;exports.getQualifiedTableName=r.getQualifiedTableName;exports.getSql=r.getSql;exports.invalidateToken=r.invalidateToken;exports.isBooleanDataType=r.isBooleanDataType;exports.isColumnInSqlGen=r.isColumnInSqlGen;exports.isDateDataType=r.isDateDataType;exports.isNumberDataType=r.isNumberDataType;exports.isTextDataType=r.isTextDataType;exports.resolveDataType=r.resolveDataType;exports.resolveDatamodelName=r.resolveDatamodelName;exports.useCurrentActiveCard=r.useCurrentActiveCard;exports.useCurrentCardConfig=r.useCurrentCardConfig;exports.useCurrentSheetActiveCards=r.useCurrentSheetActiveCards;exports.useDashboardActions=r.useDashboardActions;exports.useDashboardStore=r.useDashboardStore;exports.useEditorActions=r.useEditorActions;exports.useEditorStore=r.useEditorStore;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=N.DEFAULT_SEMANTIC_DOMAIN_ACCESS;exports.CALCULATED_FIELD_ENTITY_MARKER=l.CALCULATED_FIELD_ENTITY_MARKER;exports.DATE_FORMAT_VALUES=l.DATE_FORMAT_VALUES;exports.LEGACY_CALCULATED_FIELD_ENTITY_MARKER=l.LEGACY_CALCULATED_FIELD_ENTITY_MARKER;exports.PivotMarkerEnum=l.PivotMarkerEnum;exports.getCalculatedFieldComputeStage=l.getCalculatedFieldComputeStage;exports.getFieldRuntimeColumnName=l.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=l.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=l.hasCalculatedFormulaInputs;exports.hasSyntheticCalculatedFieldOwner=l.hasSyntheticCalculatedFieldOwner;exports.inspectCalculatedField=l.inspectCalculatedField;exports.isCalculatedDimension=l.isCalculatedDimension;exports.isCalculatedMetric=l.isCalculatedMetric;exports.isDerivedField=l.isDerivedField;exports.normalizeCalculatedFieldRepresentation=l.normalizeCalculatedFieldRepresentation;exports.shouldDropInheritedCalculationAggregate=l.shouldDropInheritedCalculationAggregate;exports.AdvancedModeToggle=s.AdvancedModeToggle;exports.DashboardBriefingLauncher=s.DashboardBriefingLauncher;exports.DashboardControlsSettings=s.DashboardControlsSettings;exports.DashboardFilterControlsButton=s.DashboardFilterControlsButton;exports.DashboardFilterControlsLauncher=s.DashboardFilterControlsLauncher;exports.DocumentControlsSettings=s.DocumentControlsSettings;exports.ExportNotificationItem=s.ExportNotificationItem;exports.ExportNotificationList=s.ExportNotificationList;exports.NotificationBell=s.NotificationBell;exports.UnsavedChangesAlert=s.UnsavedChangesAlert;exports.VisualEditingControls=s.VisualEditingControls;exports.VisualsLibraryDialog=s.VisualsLibraryDialog;exports.WatchDashboardButton=s.WatchDashboardButton;exports.useDashboardUnsavedChangesCheck=s.useDashboardUnsavedChangesCheck;exports.useExportPolling=s.useExportPolling;exports.useExportRecovery=s.useExportRecovery;exports.useDebouncedDirtyCheck=w.useDebouncedDirtyCheck;exports.DEFAULT_CALENDAR_CONTEXT=L.DEFAULT_CALENDAR_CONTEXT;exports.resolveQueryColumnKeyMapEntry=B.resolveQueryColumnKeyMapEntry;exports.resolveUniqueQueryColumnKeyMapEntry=B.resolveUniqueQueryColumnKeyMapEntry;exports.cloneDeep=A.cloneDeep;exports.normalizeDashboardForDirtyCheck=S.normalizeDashboardForDirtyCheck;exports.serializeDashboardForDirtyCheck=S.serializeDashboardForDirtyCheck;exports.Combobox=k;exports.Visual=q;exports.useExposePrintState=O;exports.usePristineSnapshotInitializer=U;