react-semaphor 0.1.546 → 0.1.547

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 (57) hide show
  1. package/dist/analytics-protocol/index.js +70 -67
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/briefings/index.js +1 -1
  4. package/dist/chunks/applied-constraints-DU-wndZ7.js +47 -0
  5. package/dist/chunks/{assistant-chat-BPXhulAx.js → assistant-chat-CK84cPAB.js} +106 -106
  6. package/dist/chunks/{bookmark-state-C4vetoa0.js → bookmark-state-Cu-a5ie_.js} +2 -8
  7. package/dist/chunks/{custom-visual-inputs-CkJW9pBS.js → custom-visual-inputs-ChL54gGm.js} +1 -1
  8. package/dist/chunks/{dashboard-C3CoKbGY.js → dashboard-DCk26-6i.js} +1 -1
  9. package/dist/chunks/{dashboard-briefing-launcher-Be4h-7My.js → dashboard-briefing-launcher-CQ1eYsGy.js} +528 -528
  10. package/dist/chunks/{dashboard-controls-bxPrlSyp.js → dashboard-controls-BMeZjF7r.js} +45 -45
  11. package/dist/chunks/{dashboard-json-BrjxIiRt.js → dashboard-json-BZqCoanC.js} +1 -1
  12. package/dist/chunks/{document-dashboard-inputs-CRVHpIHp.js → document-dashboard-inputs-tYd7ao0o.js} +94 -94
  13. package/dist/chunks/{edit-dashboard-visual-DYYYDjY6.js → edit-dashboard-visual-Bv3MHM_G.js} +281 -281
  14. package/dist/chunks/{column-catalog-BYnochWQ.js → filter-reach-copy-CGWsL_ez.js} +978 -861
  15. package/dist/chunks/{global-date-filter-utils-9d6m9-FE.js → global-date-filter-utils-BhAu8zIM.js} +4070 -3792
  16. package/dist/chunks/{index-DkQkMKa1.js → index-DmrLP5Ro.js} +30 -30
  17. package/dist/chunks/{raw-temporal-presentation-CBzrDOjM.js → raw-temporal-presentation-DypB7sMX.js} +1 -1
  18. package/dist/chunks/{report-preferences-dialog-4QEZWe5U.js → report-preferences-dialog-DoVyriYC.js} +59 -59
  19. package/dist/chunks/{resolve-dashboard-input-context-UpK_LBpL.js → resolve-dashboard-input-context-D0JDUa4h.js} +1511 -1612
  20. package/dist/chunks/{saved-dashboard-context-D_I3Lxk0.js → saved-dashboard-context-BfAH5j4L.js} +5 -5
  21. package/dist/chunks/{semaphor-ready-indicator-4zpRHE-X.js → semaphor-ready-indicator-CRm17oIP.js} +37137 -36459
  22. package/dist/chunks/{shelf-drop-preview-context-Cfw7TRAx.js → shelf-drop-preview-context-vy6P9THz.js} +80 -80
  23. package/dist/chunks/{table-settings-CunhoDUi.js → table-settings-WysCBj62.js} +133 -124
  24. package/dist/chunks/{use-create-flow-overlay-state-DZBZiiD-.js → use-create-flow-overlay-state-Csx_Xjsh.js} +2 -2
  25. package/dist/dashboard/index.js +2 -2
  26. package/dist/dashboard-authoring/index.js +1419 -1340
  27. package/dist/index.js +14 -14
  28. package/dist/surfboard/index.js +2 -2
  29. package/dist/types/components/surfboard/filter/types.d.ts +7 -0
  30. package/dist/types/components/surfboard/screen-size-preview-button.d.ts +7 -4
  31. package/dist/types/components/visual/matrix-table/matrix-card-view.d.ts +3 -0
  32. package/dist/types/index.js +2 -2
  33. package/dist/types/lib/dashboard-inputs/dashboard-filter-mapping-authoring.d.ts +346 -21
  34. package/dist/types/lib/dashboard-inputs/dashboard-filter-value-identity.d.ts +65 -0
  35. package/dist/types/lib/dashboard-inputs/resolve-selection-input.d.ts +3 -3
  36. package/dist/types/lib/hooks/use-dashboard-card.d.ts +2 -0
  37. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +1 -1
  38. package/dist/types/lib/matrix-table/matrix-runtime-types.d.ts +9 -1
  39. package/dist/types/lib/matrix-table/matrix-runtime.d.ts +5 -1
  40. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +83 -13
  41. package/dist/types/lib/stores/dashboard-store.d.ts +12 -0
  42. package/dist/types/shared/analytics-protocol/applied-constraints.d.ts +57 -1
  43. package/dist/types/shared/assistant-protocol/context.d.ts +8 -8
  44. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  45. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +7 -0
  46. package/dist/types/shared/dashboard-authoring/click-to-filter-settings.d.ts +3 -3
  47. package/dist/types/shared/dashboard-authoring/dashboard-filter-automatic-target.d.ts +4 -4
  48. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-contract.d.ts +3 -1
  49. package/dist/types/shared/dashboard-authoring/dashboard-filter-mapping-types.d.ts +27 -1
  50. package/dist/types/shared/dashboard-authoring/dashboard-filter-value-compatibility.d.ts +12 -3
  51. package/dist/types/shared/dashboard-authoring/filter-reach-copy.d.ts +18 -0
  52. package/dist/types/shared/dashboard-authoring/filter-reach-preview.d.ts +97 -0
  53. package/dist/types/shared/dashboard-authoring/index.d.ts +5 -1
  54. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +7 -0
  55. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +26 -4
  56. package/dist/types/shared/dashboard-authoring/semantic-auto-join-card.d.ts +22 -0
  57. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  var Fe = Object.defineProperty;
2
- var Ne = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
- var L = (e, n, t) => Ne(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { r as ae, q as se, j as Re } from "./temporal-bucket-CQOSbv9-.js";
2
+ var Re = (e, n, t) => n in e ? Fe(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
+ var L = (e, n, t) => Re(e, typeof n != "symbol" ? n + "" : n, t);
4
+ import { r as ae, q as se, j as Ne } from "./temporal-bucket-CQOSbv9-.js";
5
5
  import { Y as J, ab as Be, o as Me } from "./validators-C-aOQlTB.js";
6
6
  import { l as Le, C as Ue } from "./export-file-format-C-tJsxsf.js";
7
7
  import { z as y } from "zod";
@@ -10,14 +10,14 @@ import { af as je, ah as qe, U as Ke } from "./matrix-operation-contract-D6vYkZK
10
10
  import "./analytics-base-schemas-BKs3flFS.js";
11
11
  import "../value-format-preferences/index.js";
12
12
  import { r as He } from "./rendered-file-D8xEuVVx.js";
13
- import { cI as Ge, cJ as We, cK as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-9d6m9-FE.js";
13
+ import { cP as Ge, cQ as We, cR as Xe, r as Ze, n as Ye } from "./global-date-filter-utils-BhAu8zIM.js";
14
14
  import { r as Je } from "./matrix-card-LiMEipvq.js";
15
- import { z as Qe } from "./table-settings-CunhoDUi.js";
16
- import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-CBzrDOjM.js";
15
+ import { z as Qe } from "./table-settings-WysCBj62.js";
16
+ import { r as et, a as tt, b as nt, c as rt, d as ot } from "./raw-temporal-presentation-DypB7sMX.js";
17
17
  import "./index-CtoK1Lgu.js";
18
18
  import "./index-CuHybtft.js";
19
19
  import "./_commonjsHelpers-DimLPMtv.js";
20
- import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-CkJW9pBS.js";
20
+ import { f as at, r as it, b as ct, g as lt } from "./custom-visual-inputs-ChL54gGm.js";
21
21
  const dt = /* @__PURE__ */ new Set([
22
22
  "table",
23
23
  "aggregateTable",
@@ -680,17 +680,17 @@ function ye(e) {
680
680
  const r = e.includes("last") ? [...t, "last"] : t;
681
681
  return r.length > 0 ? r : null;
682
682
  }
683
- function R(e, n) {
683
+ function N(e, n) {
684
684
  const t = [];
685
685
  for (let r = 0; r < 12 / e; r += 1)
686
686
  t.push((n + r * e) % 12);
687
687
  return t.sort((r, o) => r - o);
688
688
  }
689
689
  function St(e, n) {
690
- return e === 1 ? "*" : R(e, n).map((t) => t + 1).join(",");
690
+ return e === 1 ? "*" : N(e, n).map((t) => t + 1).join(",");
691
691
  }
692
692
  function ge(e, n) {
693
- return e.every((t) => Nt(t, n));
693
+ return e.every((t) => Rt(t, n));
694
694
  }
695
695
  function ir(e) {
696
696
  if (!Tt(e))
@@ -711,7 +711,7 @@ function ir(e) {
711
711
  if (e.on.type === "days") {
712
712
  const i = ye(e.on.days);
713
713
  if (!i) throw new Error("Choose at least one day of the month.");
714
- const c = R(e.interval, e.startMonth);
714
+ const c = N(e.interval, e.startMonth);
715
715
  if (!ge(i, c))
716
716
  throw new Error("Choose a day that occurs in the chosen months.");
717
717
  const l = i.map((m) => m === "last" ? "L" : String(m)).join(",");
@@ -732,7 +732,7 @@ function kt(e) {
732
732
  const t = n.map((i) => Number(i) - 1), r = 12 / t.length;
733
733
  if (!ue.includes(r))
734
734
  return null;
735
- const o = t[0], a = R(
735
+ const o = t[0], a = N(
736
736
  r,
737
737
  o
738
738
  );
@@ -785,7 +785,7 @@ function be(e) {
785
785
  const m = kt(a);
786
786
  if (!m) return S;
787
787
  if (o !== "*" && i === "*") {
788
- const s = At(o), u = R(m.interval, m.startMonth);
788
+ const s = At(o), u = N(m.interval, m.startMonth);
789
789
  return !s || !ge(s, u) ? S : {
790
790
  ok: !0,
791
791
  value: {
@@ -844,7 +844,7 @@ function Ft(e, n, t) {
844
844
  );
845
845
  if (e === 1) return "every month";
846
846
  if (e === 12) return `${r(n, "long")} each year`;
847
- const o = R(e, n).map((a) => r(a, "short")).join(", ");
847
+ const o = N(e, n).map((a) => r(a, "short")).join(", ");
848
848
  return e === 3 ? `each quarter (${o})` : `every ${e} months (${o})`;
849
849
  }
850
850
  function cr(e, n, t = "en-US") {
@@ -877,19 +877,19 @@ function cr(e, n, t = "en-US") {
877
877
  }
878
878
  }
879
879
  const Ie = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
880
- function Nt(e, n) {
880
+ function Rt(e, n) {
881
881
  return e === "last" || n.some((t) => e <= Ie[t]);
882
882
  }
883
883
  function lr(e) {
884
884
  if (e.frequency !== "monthly" || e.on.type !== "days") return null;
885
885
  const n = e.on.days.filter((o) => o !== "last");
886
886
  if (n.length === 0) return null;
887
- const t = Math.max(...n), r = R(e.interval, e.startMonth).filter(
887
+ const t = Math.max(...n), r = N(e.interval, e.startMonth).filter(
888
888
  (o) => t > (o === 1 ? 28 : Ie[o])
889
889
  );
890
890
  return r.length > 0 ? { day: t, months: r } : null;
891
891
  }
892
- function Rt(e, n) {
892
+ function Nt(e, n) {
893
893
  return new Date(Date.UTC(e, n + 1, 0)).getUTCDate();
894
894
  }
895
895
  function Bt(e, n, t, r) {
@@ -900,9 +900,9 @@ function Bt(e, n, t, r) {
900
900
  case "weekly":
901
901
  return e.weekdays.includes(o);
902
902
  case "monthly": {
903
- if (!R(e.interval, e.startMonth).includes(t))
903
+ if (!N(e.interval, e.startMonth).includes(t))
904
904
  return !1;
905
- const a = Rt(n, t);
905
+ const a = Nt(n, t);
906
906
  return e.on.type === "days" ? e.on.days.some(
907
907
  (i) => i === "last" ? r === a : i === r
908
908
  ) : o !== e.on.weekday ? !1 : e.on.ordinal === -1 ? r + 7 > a : Math.ceil(r / 7) === e.on.ordinal;
@@ -1036,7 +1036,7 @@ function qt(e) {
1036
1036
  return (r.kind === "metric" && typeof r.metricId == "string" && !!r.metricId.trim() || r.kind === "column" && typeof r.columnKey == "string" && !!r.columnKey.trim() || r.kind === "matrix_measure" && typeof r.measureId == "string" && !!r.measureId.trim()) && se(n.format).ok;
1037
1037
  }
1038
1038
  function Kt(e) {
1039
- return e == null ? "" : qt(e) ? Re(e.value, e.format) : String(e);
1039
+ return e == null ? "" : qt(e) ? Ne(e.value, e.format) : String(e);
1040
1040
  }
1041
1041
  function pr(e) {
1042
1042
  return [e.delta, e.percentChange].filter(
@@ -1191,7 +1191,7 @@ function k(e, n, t, r = {}) {
1191
1191
  c && !o.includes(c) && o.push(c);
1192
1192
  }), r.required && o.length === 0 && d(t, n, "Expected at least one evidence id."), o.length > 0 || r.required ? o : void 0;
1193
1193
  }
1194
- function N(e, n, t, r) {
1194
+ function R(e, n, t, r) {
1195
1195
  return e == null ? n : typeof e != "boolean" ? (d(r, t, "Expected a boolean."), n) : e;
1196
1196
  }
1197
1197
  function an(e, n) {
@@ -1289,13 +1289,13 @@ function Te(e, n) {
1289
1289
  );
1290
1290
  const r = {
1291
1291
  artifactFormats: ln(t.artifactFormats, n),
1292
- includeEvidence: N(
1292
+ includeEvidence: R(
1293
1293
  t.includeEvidence,
1294
1294
  !0,
1295
1295
  "presentation.includeEvidence",
1296
1296
  n
1297
1297
  ),
1298
- includeSql: N(
1298
+ includeSql: R(
1299
1299
  t.includeSql,
1300
1300
  !0,
1301
1301
  "presentation.includeSql",
@@ -2380,7 +2380,7 @@ function Sn(e, n, t) {
2380
2380
  `${n}.channelName`,
2381
2381
  f.attachmentTitle,
2382
2382
  t
2383
- ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : N(
2383
+ ), i = r.isPrivate === void 0 || r.isPrivate === null ? void 0 : R(
2384
2384
  r.isPrivate,
2385
2385
  !1,
2386
2386
  `${n}.isPrivate`,
@@ -2439,17 +2439,17 @@ function An(e, n, t) {
2439
2439
  r.threadMentions,
2440
2440
  `${n}.threadMentions`,
2441
2441
  t
2442
- ), a = N(
2442
+ ), a = R(
2443
2443
  r.postThreadDetail,
2444
2444
  !0,
2445
2445
  `${n}.postThreadDetail`,
2446
2446
  t
2447
- ), i = N(
2447
+ ), i = R(
2448
2448
  r.includeDashboardLink,
2449
2449
  !0,
2450
2450
  `${n}.includeDashboardLink`,
2451
2451
  t
2452
- ), c = N(
2452
+ ), c = R(
2453
2453
  r.includeBriefingLink,
2454
2454
  !0,
2455
2455
  `${n}.includeBriefingLink`,
@@ -2504,7 +2504,7 @@ function wn(e, n, t) {
2504
2504
  `${n}.summaryOverride`,
2505
2505
  2e3,
2506
2506
  t
2507
- ), l = N(
2507
+ ), l = R(
2508
2508
  r.actionBlockVisible,
2509
2509
  !0,
2510
2510
  `${n}.actionBlockVisible`,
@@ -2702,9 +2702,9 @@ export {
2702
2702
  Jn as i,
2703
2703
  Ct as j,
2704
2704
  ir as k,
2705
- R as l,
2705
+ N as l,
2706
2706
  lr as m,
2707
- Nt as n,
2707
+ Rt as n,
2708
2708
  dr as o,
2709
2709
  be as p,
2710
2710
  ye as q,
@@ -1,6 +1,6 @@
1
1
  import "./analytics-base-schemas-BKs3flFS.js";
2
2
  import { r as P } from "./pivot-result-identity-C-Q1j1Wb.js";
3
- import { r as R, n as M } from "./global-date-filter-utils-9d6m9-FE.js";
3
+ import { r as R, n as M } from "./global-date-filter-utils-BhAu8zIM.js";
4
4
  import "./validators-C-aOQlTB.js";
5
5
  import "./matrix-operation-contract-D6vYkZK4.js";
6
6
  import { v as S } from "./raw-temporal-contract-WuXA8jBP.js";
@@ -1,20 +1,20 @@
1
1
  import { jsxs as h, jsx as l, Fragment as ie } from "react/jsx-runtime";
2
2
  import * as p from "react";
3
3
  import Lt, { useRef as Y, useState as L, useCallback as $, useEffect as ee, useMemo as q, lazy as Se, Suspense as ye, useLayoutEffect as Xe, Activity as _t, useId as ce } from "react";
4
- import { u as M, be as Mt, bf as Ot, bg as mt, a1 as Ut, bh as jt, bi as Bt, bj as Wt, b as $t, b2 as We, bk as Vt, bl as Kt, bm as ft, t as Ht, bn as qt, bo as Gt, bp as Xt, bq as Jt, br as be, bs as ht, bt as Je, E as Yt, F as Zt, S as Qt, B as ea, a as ta, U as aa, bu as ra, D as na, A as la, C as sa, bv as ia, bw as oa, bx as da, by as ca, bz as Ye, bA as Ne, bB as ua, bC as $e, bD as H, bE as ma, bF as fa, bG as ha, bH as pa, bI as va } from "./semaphor-ready-indicator-4zpRHE-X.js";
4
+ import { u as M, be as Mt, bf as Ut, bg as mt, a1 as Ot, bh as jt, bi as Bt, bj as Wt, b as $t, b2 as We, bk as Vt, bl as Kt, bm as ft, t as Ht, bn as qt, bo as Gt, bp as Xt, bq as Jt, br as be, bs as ht, bt as Je, E as Yt, F as Zt, S as Qt, B as ea, a as ta, U as aa, bu as ra, D as na, A as la, C as sa, bv as ia, bw as oa, bx as da, by as ca, bz as Ye, bA as Ne, bB as ua, bC as $e, bD as H, bE as ma, bF as fa, bG as ha, bH as pa, bI as va } from "./semaphor-ready-indicator-CRm17oIP.js";
5
5
  import "./validators-C-aOQlTB.js";
6
6
  import "./matrix-operation-contract-D6vYkZK4.js";
7
7
  import "./analytics-base-schemas-BKs3flFS.js";
8
8
  import "zod";
9
- import { X as ba, cN as ga, bl as ya, bm as wa, ar as Sa, s as xa } from "./global-date-filter-utils-9d6m9-FE.js";
9
+ import { Y as ba, cU as ga, bq as ya, br as wa, as as Sa, s as xa } from "./global-date-filter-utils-BhAu8zIM.js";
10
10
  import { j as Ca } from "./index-CuHybtft.js";
11
11
  import { parseValueFormatPreferencesResponse as Na, canonicalizeSupportedLocale as pt, getSupportedCurrencyCodes as Ea, canonicalizeSupportedCurrencyCode as Ta } from "../value-format-preferences/index.js";
12
- import { c as O } from "./_commonjsHelpers-DimLPMtv.js";
12
+ import { c as U } from "./_commonjsHelpers-DimLPMtv.js";
13
13
  import "./index-CtoK1Lgu.js";
14
14
  import "./pivot-result-lifecycle-pwq3b7LC.js";
15
- import { H as Ia } from "./table-settings-CunhoDUi.js";
16
- import { l as oe, B as V, N as ka, O as Aa, Q as Da, U as Ra, V as Pa, W as za, X as se, z as Q, Y as he, P as Fa, a as La, b as _a, c as Ze, L as vt, r as Pe, s as ze, t as Fe, u as Le, v as J, T as Ma, d as Oa, e as Qe, g as et } from "./switch-CEBOR4n7.js";
17
- import { X as Ua } from "./x-4f5U2XwU.js";
15
+ import { H as Ia } from "./table-settings-WysCBj62.js";
16
+ import { l as oe, B as V, N as ka, O as Aa, Q as Da, U as Ra, V as Pa, W as za, X as se, z as Q, Y as he, P as Fa, a as La, b as _a, c as Ze, L as vt, r as Pe, s as ze, t as Fe, u as Le, v as J, T as Ma, d as Ua, e as Qe, g as et } from "./switch-CEBOR4n7.js";
17
+ import { X as Oa } from "./x-4f5U2XwU.js";
18
18
  import { r as ja, a as bt } from "./availability-Bp5Gfu1I.js";
19
19
  import { S as Ba } from "./selection-reducer-CJzkTZio.js";
20
20
  import { a as Wa } from "./report-runtime-context-hWiTCzFV.js";
@@ -42,7 +42,7 @@ function Va({ filter: e }) {
42
42
  var w;
43
43
  const a = M(
44
44
  (y) => y.isDashboardEditing
45
- ), { preferences: t } = Mt(), n = Ot((w = t == null ? void 0 : t.cardDisplay) == null ? void 0 : w.mode), r = M((y) => y.dashboard), i = M(
45
+ ), { preferences: t } = Mt(), n = Ut((w = t == null ? void 0 : t.cardDisplay) == null ? void 0 : w.mode), r = M((y) => y.dashboard), i = M(
46
46
  (y) => y.dashboardInputValues
47
47
  ), s = M((y) => y.selectedSheetId), o = mt(), f = q(() => {
48
48
  var F;
@@ -58,7 +58,7 @@ function Va({ filter: e }) {
58
58
  calendar: o
59
59
  });
60
60
  return (P == null ? void 0 : P.status) === "set";
61
- }, [o, r, i, e.id, s]), { removeFilterInput: u, saveFilterSettings: g } = Ut(), {
61
+ }, [o, r, i, e.id, s]), { removeFilterInput: u, saveFilterSettings: g } = Ot(), {
62
62
  headerRef: c,
63
63
  leftActionsRef: v,
64
64
  rightActionsRef: m,
@@ -120,7 +120,7 @@ function Va({ filter: e }) {
120
120
  u({ filterId: e.id });
121
121
  },
122
122
  className: "text-muted-foreground hover:text-foreground",
123
- children: /* @__PURE__ */ l(Ua, { className: "size-3.5" })
123
+ children: /* @__PURE__ */ l(Oa, { className: "size-3.5" })
124
124
  }
125
125
  )
126
126
  ]
@@ -140,7 +140,7 @@ function Ka() {
140
140
  return n.length ? /* @__PURE__ */ l(
141
141
  "div",
142
142
  {
143
- className: O("mb-1 flex items-center gap-2 border-y px-0.5 pb-0.5", {
143
+ className: U("mb-1 flex items-center gap-2 border-y px-0.5 pb-0.5", {
144
144
  "bg-[repeating-linear-gradient(45deg,_#ffffff_0_3px,_#f3f3f3_3px_6px)]": t === "light",
145
145
  "bg-[repeating-linear-gradient(45deg,_#18171d_0_3px,_#272729_3px_6px)]": t === "dark"
146
146
  }),
@@ -247,7 +247,7 @@ function er(e, a, t) {
247
247
  const n = t ? Ia(t, e.cardId) : void 0;
248
248
  return !!n && n.sheet.id === e.sheetId;
249
249
  }
250
- const tr = Se(() => import("./assistant-chat-BPXhulAx.js"));
250
+ const tr = Se(() => import("./assistant-chat-CK84cPAB.js"));
251
251
  function gn() {
252
252
  const e = Ht();
253
253
  return e.available ? /* @__PURE__ */ h(
@@ -301,7 +301,7 @@ function lr({ surface: e = "dashboard" } = {}) {
301
301
  "data-layout": m,
302
302
  "data-beside-frame": m === "beside-card" ? c : void 0,
303
303
  "data-beside-side": m === "beside-card" ? v.side : void 0,
304
- className: O(
304
+ className: U(
305
305
  "flex-col bg-background",
306
306
  m === "beside-card" ? rr : ar[m],
307
307
  x ? "flex" : "hidden"
@@ -432,7 +432,7 @@ function dr({
432
432
  o && (s.preventDefault(), e.setBesideSize({ width: a.width + o.width, height: a.height + o.height }, { save: !0 }));
433
433
  },
434
434
  onDoubleClick: () => e.setBesideSize(ht.default, { save: !0 }),
435
- className: O(
435
+ className: U(
436
436
  "absolute bottom-0 z-10 h-3 w-3 touch-none outline-none hover:bg-primary/30 focus-visible:bg-primary/40",
437
437
  t === "left" ? "left-0 cursor-nesw-resize rounded-bl-card" : "right-0 cursor-nwse-resize rounded-br-card"
438
438
  )
@@ -483,16 +483,16 @@ function cr({ instance: e, side: a, width: t }) {
483
483
  onPointerCancel: u,
484
484
  onKeyDown: g,
485
485
  onDoubleClick: () => e.setWidth(be.default, { save: !0 }),
486
- className: O(
486
+ className: U(
487
487
  "absolute inset-y-0 z-10 w-1.5 cursor-col-resize touch-none outline-none hover:bg-primary/30 focus-visible:bg-primary/40",
488
488
  a === "left" ? "-left-[3px]" : "-right-[3px]"
489
489
  )
490
490
  }
491
491
  );
492
492
  }
493
- const ur = Se(() => import("./dashboard-controls-bxPrlSyp.js")), mr = Se(
494
- () => import("./edit-dashboard-visual-DYYYDjY6.js")
495
- ), fr = Se(() => import("./dashboard-json-BrjxIiRt.js"));
493
+ const ur = Se(() => import("./dashboard-controls-BMeZjF7r.js")), mr = Se(
494
+ () => import("./edit-dashboard-visual-Bv3MHM_G.js")
495
+ ), fr = Se(() => import("./dashboard-json-BZqCoanC.js"));
496
496
  function yn({
497
497
  showControls: e = !1,
498
498
  showFooter: a = !0,
@@ -553,7 +553,7 @@ var me = '[cmdk-group=""]', Ie = '[cmdk-group-items=""]', Cr = '[cmdk-group-head
553
553
  let t = ne(() => {
554
554
  var d, T;
555
555
  return { search: "", value: (T = (d = e.value) != null ? d : e.defaultValue) != null ? T : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
556
- }), n = ne(() => /* @__PURE__ */ new Set()), r = ne(() => /* @__PURE__ */ new Map()), i = ne(() => /* @__PURE__ */ new Map()), s = ne(() => /* @__PURE__ */ new Set()), o = Et(e), { label: f, children: u, value: g, onValueChange: c, filter: v, shouldFilter: m, loop: x, disablePointerSelection: I = !1, vimBindings: w = !0, ...y } = e, P = se(), F = se(), U = se(), _ = p.useRef(null), E = Lr();
556
+ }), n = ne(() => /* @__PURE__ */ new Set()), r = ne(() => /* @__PURE__ */ new Map()), i = ne(() => /* @__PURE__ */ new Map()), s = ne(() => /* @__PURE__ */ new Set()), o = Et(e), { label: f, children: u, value: g, onValueChange: c, filter: v, shouldFilter: m, loop: x, disablePointerSelection: I = !1, vimBindings: w = !0, ...y } = e, P = se(), F = se(), O = se(), _ = p.useRef(null), E = Lr();
557
557
  te(() => {
558
558
  if (g !== void 0) {
559
559
  let d = g.trim();
@@ -568,7 +568,7 @@ var me = '[cmdk-group=""]', Ie = '[cmdk-group-items=""]', Cr = '[cmdk-group-head
568
568
  if (t.current[d] = T, d === "search") K(), C(), E(1, G);
569
569
  else if (d === "value") {
570
570
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
571
- let j = document.getElementById(U);
571
+ let j = document.getElementById(O);
572
572
  j ? j.focus() : (S = document.getElementById(P)) == null || S.focus();
573
573
  }
574
574
  if (E(7, () => {
@@ -599,7 +599,7 @@ var me = '[cmdk-group=""]', Ie = '[cmdk-group-items=""]', Cr = '[cmdk-group-head
599
599
  });
600
600
  }), group: (d) => (r.current.has(d) || r.current.set(d, /* @__PURE__ */ new Set()), () => {
601
601
  i.current.delete(d), r.current.delete(d);
602
- }), filter: () => o.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => o.current.disablePointerSelection, listId: P, inputId: U, labelId: F, listInnerRef: _ }), []);
602
+ }), filter: () => o.current.shouldFilter, label: f || e["aria-label"], getDisablePointerSelection: () => o.current.disablePointerSelection, listId: P, inputId: O, labelId: F, listInnerRef: _ }), []);
603
603
  function R(d, T) {
604
604
  var A, S;
605
605
  let D = (S = (A = o.current) == null ? void 0 : A.filter) != null ? S : Nr;
@@ -743,7 +743,7 @@ var me = '[cmdk-group=""]', Ie = '[cmdk-group-items=""]', Cr = '[cmdk-group-head
743
743
  c.setState("value", g.current, !0);
744
744
  }
745
745
  if (!m) return null;
746
- let { disabled: w, value: y, onSelect: P, forceMount: F, keywords: U, ..._ } = e;
746
+ let { disabled: w, value: y, onSelect: P, forceMount: F, keywords: O, ..._ } = e;
747
747
  return p.createElement(Q.div, { ref: he(i, a), ..._, id: r, "cmdk-item": "", role: "option", "aria-disabled": !!w, "aria-selected": !!v, "data-disabled": !!w, "data-selected": !!v, onPointerMove: w || o.getDisablePointerSelection() ? void 0 : I, onClick: w ? void 0 : x }, e.children);
748
748
  }), Tr = p.forwardRef((e, a) => {
749
749
  let { heading: t, children: n, forceMount: r, ...i } = e, s = se(), o = p.useRef(null), f = p.useRef(null), u = se(), g = pe(), c = Z((m) => r || g.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(s) : !0);
@@ -845,7 +845,7 @@ const It = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
845
845
  B,
846
846
  {
847
847
  ref: t,
848
- className: O(
848
+ className: U(
849
849
  "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
850
850
  e
851
851
  ),
@@ -859,7 +859,7 @@ const kt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ h("div",
859
859
  B.Input,
860
860
  {
861
861
  ref: t,
862
- className: O(
862
+ className: U(
863
863
  "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-[hsl(var(--semaphor-placeholder-foreground))] disabled:cursor-not-allowed disabled:opacity-50",
864
864
  e
865
865
  ),
@@ -872,7 +872,7 @@ const At = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
872
872
  B.List,
873
873
  {
874
874
  ref: t,
875
- className: O("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
875
+ className: U("max-h-[300px] overflow-y-auto overflow-x-hidden", e),
876
876
  ...a
877
877
  }
878
878
  ));
@@ -886,40 +886,40 @@ const Dt = p.forwardRef((e, a) => /* @__PURE__ */ l(
886
886
  }
887
887
  ));
888
888
  Dt.displayName = B.Empty.displayName;
889
- const Oe = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
889
+ const Ue = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
890
890
  B.Group,
891
891
  {
892
892
  ref: t,
893
- className: O(
893
+ className: U(
894
894
  "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
895
895
  e
896
896
  ),
897
897
  ...a
898
898
  }
899
899
  ));
900
- Oe.displayName = B.Group.displayName;
900
+ Ue.displayName = B.Group.displayName;
901
901
  const Rt = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
902
902
  B.Separator,
903
903
  {
904
904
  ref: t,
905
- className: O("-mx-1 h-px bg-border", e),
905
+ className: U("-mx-1 h-px bg-border", e),
906
906
  ...a
907
907
  }
908
908
  ));
909
909
  Rt.displayName = B.Separator.displayName;
910
- const Ue = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
910
+ const Oe = p.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ l(
911
911
  B.Item,
912
912
  {
913
913
  ref: t,
914
- className: O(
914
+ className: U(
915
915
  "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
916
916
  e
917
917
  ),
918
918
  ...a
919
919
  }
920
920
  ));
921
- Ue.displayName = B.Item.displayName;
922
- function Or(e = {}) {
921
+ Oe.displayName = B.Item.displayName;
922
+ function Ur(e = {}) {
923
923
  const { authToken: a, tokenProps: t } = We(), n = M(
924
924
  (E) => E.actions.applyResolvedCalendarPreferences
925
925
  ), r = e.enabled ?? !0, i = (a == null ? void 0 : a.accessToken) ?? null, s = (t == null ? void 0 : t.apiServiceUrl) ?? null, [o, f] = L(!1), [u, g] = L(!1), [c, v] = L(!1), [m, x] = L(null), [I, w] = L(null), y = Y(i);
@@ -958,7 +958,7 @@ function Or(e = {}) {
958
958
  ee(() => {
959
959
  r && F();
960
960
  }, [r, F]);
961
- const U = $(
961
+ const O = $(
962
962
  async (E) => {
963
963
  if (!i || !s)
964
964
  return x("Not authenticated"), !1;
@@ -1030,7 +1030,7 @@ function Or(e = {}) {
1030
1030
  isSaving: u,
1031
1031
  isClearing: c,
1032
1032
  error: m,
1033
- updatePreferences: U,
1033
+ updatePreferences: O,
1034
1034
  clearPreferences: _,
1035
1035
  refetch: F
1036
1036
  };
@@ -1055,7 +1055,7 @@ const we = [
1055
1055
  { value: 1, label: "Monday" },
1056
1056
  { value: 6, label: "Saturday" }
1057
1057
  ], it = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
1058
- function Ur() {
1058
+ function Or() {
1059
1059
  try {
1060
1060
  const e = Intl;
1061
1061
  if (e.supportedValuesOf)
@@ -1099,11 +1099,11 @@ function Wr({
1099
1099
  isClearing: i,
1100
1100
  updatePreferences: s,
1101
1101
  clearPreferences: o
1102
- } = Or({ enabled: e }), f = mt(), u = (t == null ? void 0 : t.resolved.tz) || (f == null ? void 0 : f.tz) || "UTC", g = (t == null ? void 0 : t.resolved.weekStart) ?? (f == null ? void 0 : f.weekStart) ?? 1, [c, v] = L((t == null ? void 0 : t.stored) === null), [m, x] = L(!1), [I, w] = L(
1102
+ } = Ur({ enabled: e }), f = mt(), u = (t == null ? void 0 : t.resolved.tz) || (f == null ? void 0 : f.tz) || "UTC", g = (t == null ? void 0 : t.resolved.weekStart) ?? (f == null ? void 0 : f.weekStart) ?? 1, [c, v] = L((t == null ? void 0 : t.stored) === null), [m, x] = L(!1), [I, w] = L(
1103
1103
  u
1104
1104
  ), [y, P] = L(
1105
1105
  g
1106
- ), [F, U] = L(!1), _ = q(() => Ur(), []), E = q(
1106
+ ), [F, O] = L(!1), _ = q(() => Or(), []), E = q(
1107
1107
  () => _.filter(
1108
1108
  (k) => !we.some((de) => de.value === k)
1109
1109
  ),
@@ -1151,7 +1151,7 @@ function Wr({
1151
1151
  "label",
1152
1152
  {
1153
1153
  htmlFor: "mode-defaults",
1154
- className: O(
1154
+ className: U(
1155
1155
  "flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",
1156
1156
  c && "bg-muted/50"
1157
1157
  ),
@@ -1186,7 +1186,7 @@ function Wr({
1186
1186
  "label",
1187
1187
  {
1188
1188
  htmlFor: "mode-custom",
1189
- className: O(
1189
+ className: U(
1190
1190
  "flex cursor-pointer items-start gap-2 rounded-control px-2 py-1.5 hover:bg-muted/50",
1191
1191
  !c && "bg-muted/50"
1192
1192
  ),
@@ -1212,7 +1212,7 @@ function Wr({
1212
1212
  /* @__PURE__ */ h(
1213
1213
  "div",
1214
1214
  {
1215
- className: O(
1215
+ className: U(
1216
1216
  "space-y-4 border-t border-border/60 pt-4 transition-opacity",
1217
1217
  c && "pointer-events-none opacity-50"
1218
1218
  ),
@@ -1223,7 +1223,7 @@ function Wr({
1223
1223
  Fa,
1224
1224
  {
1225
1225
  open: F,
1226
- onOpenChange: U,
1226
+ onOpenChange: O,
1227
1227
  modal: !0,
1228
1228
  children: [
1229
1229
  /* @__PURE__ */ l(La, { asChild: !0, children: /* @__PURE__ */ h(
@@ -1250,18 +1250,18 @@ function Wr({
1250
1250
  /* @__PURE__ */ l(kt, { placeholder: "Search timezones…" }),
1251
1251
  /* @__PURE__ */ h(At, { children: [
1252
1252
  /* @__PURE__ */ l(Dt, { children: "No timezone found." }),
1253
- /* @__PURE__ */ l(Oe, { heading: "Common", children: we.map((k) => /* @__PURE__ */ h(
1254
- Ue,
1253
+ /* @__PURE__ */ l(Ue, { heading: "Common", children: we.map((k) => /* @__PURE__ */ h(
1254
+ Oe,
1255
1255
  {
1256
1256
  value: `${k.value} ${k.label}`,
1257
1257
  onSelect: () => {
1258
- x(!0), w(k.value), U(!1);
1258
+ x(!0), w(k.value), O(!1);
1259
1259
  },
1260
1260
  children: [
1261
1261
  /* @__PURE__ */ l(
1262
1262
  Ze,
1263
1263
  {
1264
- className: O(
1264
+ className: U(
1265
1265
  "h-3.5 w-3.5",
1266
1266
  I === k.value ? "opacity-100" : "opacity-0"
1267
1267
  )
@@ -1274,18 +1274,18 @@ function Wr({
1274
1274
  k.value
1275
1275
  )) }),
1276
1276
  /* @__PURE__ */ l(Rt, {}),
1277
- /* @__PURE__ */ l(Oe, { heading: "All timezones", children: E.map((k) => /* @__PURE__ */ h(
1278
- Ue,
1277
+ /* @__PURE__ */ l(Ue, { heading: "All timezones", children: E.map((k) => /* @__PURE__ */ h(
1278
+ Oe,
1279
1279
  {
1280
1280
  value: k,
1281
1281
  onSelect: () => {
1282
- x(!0), w(k), U(!1);
1282
+ x(!0), w(k), O(!1);
1283
1283
  },
1284
1284
  children: [
1285
1285
  /* @__PURE__ */ l(
1286
1286
  Ze,
1287
1287
  {
1288
- className: O(
1288
+ className: U(
1289
1289
  "h-3.5 w-3.5",
1290
1290
  I === k ? "opacity-100" : "opacity-0"
1291
1291
  )
@@ -1319,7 +1319,7 @@ function Wr({
1319
1319
  "label",
1320
1320
  {
1321
1321
  htmlFor: `week-start-${k.value}`,
1322
- className: O(
1322
+ className: U(
1323
1323
  "flex cursor-pointer items-center gap-2 text-[13px]",
1324
1324
  c && "cursor-not-allowed"
1325
1325
  ),
@@ -1398,7 +1398,7 @@ function $r(e = {}) {
1398
1398
  return P(R);
1399
1399
  },
1400
1400
  [i, s, P]
1401
- ), U = $(async () => {
1401
+ ), O = $(async () => {
1402
1402
  if (!r || !i || !s) return;
1403
1403
  const b = i;
1404
1404
  c(!0), y(null);
@@ -1412,8 +1412,8 @@ function $r(e = {}) {
1412
1412
  }
1413
1413
  }, [i, s, r, F]);
1414
1414
  ee(() => {
1415
- r && U();
1416
- }, [r, U]);
1415
+ r && O();
1416
+ }, [r, O]);
1417
1417
  const _ = $(
1418
1418
  async (b) => {
1419
1419
  const N = i;
@@ -1448,7 +1448,7 @@ function $r(e = {}) {
1448
1448
  error: w,
1449
1449
  updatePreferences: _,
1450
1450
  clearPreferences: E,
1451
- refetch: U
1451
+ refetch: O
1452
1452
  };
1453
1453
  }
1454
1454
  const je = [
@@ -1616,7 +1616,7 @@ function qr({
1616
1616
  calendar: { tz: "UTC" }
1617
1617
  })
1618
1618
  }).text
1619
- ), U = De(
1619
+ ), O = De(
1620
1620
  (C) => ue({
1621
1621
  value: ke,
1622
1622
  metadata: { kind: "raw_temporal", valueKind: "wall_datetime" },
@@ -1722,7 +1722,7 @@ function qr({
1722
1722
  value: (R = e.dateTime) == null ? void 0 : R.timeStyle,
1723
1723
  inherited: a.dateTime.timeStyle,
1724
1724
  inheritedSource: t.dateTime.timeStyle,
1725
- examples: U,
1725
+ examples: O,
1726
1726
  disabled: r,
1727
1727
  onValueChange: (C) => _("timeStyle", C)
1728
1728
  }
@@ -1940,7 +1940,7 @@ function wn({
1940
1940
  /* @__PURE__ */ l(va, { className: "text-[13px] leading-5", children: "Set how values and Calendar periods appear for you." })
1941
1941
  ] }),
1942
1942
  /* @__PURE__ */ h(Ma, { value: t, onValueChange: n, children: [
1943
- /* @__PURE__ */ h(Oa, { variant: "underline", className: "w-full justify-start", children: [
1943
+ /* @__PURE__ */ h(Ua, { variant: "underline", className: "w-full justify-start", children: [
1944
1944
  /* @__PURE__ */ l(Qe, { value: "display", children: "Display formats" }),
1945
1945
  /* @__PURE__ */ l(Qe, { value: "calendar", children: "Calendar" })
1946
1946
  ] }),
@@ -1970,8 +1970,8 @@ export {
1970
1970
  kt as b,
1971
1971
  At as c,
1972
1972
  Dt as d,
1973
- Oe as e,
1974
- Ue as f,
1973
+ Ue as e,
1974
+ Oe as f,
1975
1975
  lr as g,
1976
1976
  gn as h
1977
1977
  };