react-semaphor 0.1.565 → 0.1.566

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 (34) hide show
  1. package/dist/assistant-context/index.js +1 -1
  2. package/dist/briefings/index.js +50 -46
  3. package/dist/chunks/{assistant-chat-DNfb5fbF.js → assistant-chat-DNKAYSQL.js} +5 -5
  4. package/dist/chunks/{bookmark-impact-CHr7b1J2.js → bookmark-impact-BeUbq0jc.js} +1 -1
  5. package/dist/chunks/{card-filter-builder-CcEcfaYz.js → card-filter-builder-SXaRWbKr.js} +46 -46
  6. package/dist/chunks/{dashboard-CtIfxycc.js → dashboard-Cni7nGhg.js} +1 -1
  7. package/dist/chunks/{dashboard-briefing-launcher-D3mc6peE.js → dashboard-briefing-launcher-CXeXRTem.js} +202 -202
  8. package/dist/chunks/{dashboard-controls-BFv0zdws.js → dashboard-controls-CsqKybrf.js} +56 -56
  9. package/dist/chunks/{dashboard-json-CXn_3OYb.js → dashboard-json-WWmw3Piu.js} +1 -1
  10. package/dist/chunks/{dates-DcRxw17S.js → dates-DJRUS-he.js} +4 -4
  11. package/dist/chunks/{edit-dashboard-visual-Y6HatqBd.js → edit-dashboard-visual-BrIEaBhc.js} +213 -197
  12. package/dist/chunks/{filter-reach-copy-DbggA5B7.js → filter-reach-copy-D5LqgrUf.js} +852 -858
  13. package/dist/chunks/{index-DDa_rklN.js → index-Bq9UbCGk.js} +648 -574
  14. package/dist/chunks/{report-preferences-dialog-Db-b04B4.js → report-preferences-dialog-CeHioJwL.js} +7 -7
  15. package/dist/chunks/{resolve-dashboard-input-context-C18J-YZC.js → resolve-dashboard-input-context-CwS-2r-b.js} +3497 -3472
  16. package/dist/chunks/{saved-dashboard-context-DhC_EVus.js → saved-dashboard-context-c-MZZTx2.js} +2 -2
  17. package/dist/chunks/{semaphor-ready-indicator-T6TsiBMT.js → semaphor-ready-indicator-B2NpYRE-.js} +27601 -27648
  18. package/dist/chunks/{shelf-drop-preview-context-CNWL_b0S.js → shelf-drop-preview-context-DM7yypwC.js} +2 -2
  19. package/dist/chunks/{stored-dashboard-IdmtrNkA.js → stored-dashboard-DTWc2pzt.js} +204 -204
  20. package/dist/chunks/{variable-draft-3xseULxR.js → variable-draft-DFizFCJu.js} +2 -2
  21. package/dist/dashboard/index.js +1 -1
  22. package/dist/dashboard-authoring/index.js +1669 -1642
  23. package/dist/index.js +11 -11
  24. package/dist/style.css +1 -1
  25. package/dist/surfboard/index.js +1 -1
  26. package/dist/types/briefings/delivery-outcome.d.ts +37 -0
  27. package/dist/types/briefings/index.d.ts +2 -0
  28. package/dist/types/briefings/run-outcomes.d.ts +6 -0
  29. package/dist/types/components/briefings/briefing-author/run-model.d.ts +9 -0
  30. package/dist/types/lib/query-context/dashboard-filter-mapping-resolution.d.ts +15 -3
  31. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +2 -0
  32. package/dist/types/shared/dashboard-authoring/dashboard-filter-sql-subscription.d.ts +24 -0
  33. package/dist/types/shared/dashboard-authoring/outline/outline-filters.d.ts +20 -4
  34. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-DhC_EVus.js";
1
+ import { A as e, a as t, b as r, c as d, d as o, p as i, e as n, f as p } from "../chunks/saved-dashboard-context-c-MZZTx2.js";
2
2
  export {
3
3
  e as AssistantContextSourceError,
4
4
  t as assistantCardReplayFields,
@@ -5,59 +5,63 @@ import "zod";
5
5
  import "../chunks/matrix-operation-contract-Eb6elidS.js";
6
6
  import "../chunks/analytics-base-schemas-BaIQrEzX.js";
7
7
  import "../value-format-preferences/index.js";
8
- import { y as g, H as l, a0 as B, C as m, B as c, A as d, I as T, z as E, D as I, M as A, X as h, i as p, Y as u, Z as C, n as b, l as F, m as D, N as S, k as _, P as N, f as R, e as y, Q as M, t as O, q as x, c as G, d as v, G as L, F as U, h as z, b as H, a as J, a2 as V, g as P, _ as q, T as X, a1 as K, U as Q, E as j, $ as k, r as W, j as Y, V as Z, W as $, o as w, J as ii, O as ei, L as ai, p as ri, s as ti, K as si, R as ni, S as oi } from "../chunks/index-DDa_rklN.js";
8
+ import { A as g, J as l, a2 as B, F as m, a4 as E, z as c, B as I, E as T, K as d, C, D as u, M as A, Z as h, i as p, _ as D, $ as _, a5 as b, n as F, l as S, m as R, P as N, k as y, R as M, f as O, e as G, S as v, u as x, q as L, c as U, d as V, I as z, H, h as J, b as P, a as q, a6 as X, g as K, a0 as Q, V as Y, a3 as j, W as k, G as W, a1 as Z, r as $, j as w, X as ee, Y as ie, o as ae, L as re, Q as te, O as se, p as ne, s as oe, t as fe, N as ge, T as le, U as Be } from "../chunks/index-Bq9UbCGk.js";
9
9
  export {
10
10
  g as BRIEFING_ARTIFACT_FORMATS,
11
11
  l as BRIEFING_ATTACHMENT_FORMATS,
12
12
  B as BRIEFING_ATTACHMENT_OMISSION_CODES,
13
13
  m as BRIEFING_CONTENT_LIMITS,
14
+ E as BRIEFING_DELIVERY_OUTCOME_STATUSES,
14
15
  c as BRIEFING_KIND,
15
- d as BRIEFING_TEXT_LIMITS,
16
- T as BriefingContractError,
17
- E as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
18
- I as DEFAULT_BRIEFING_SCHEDULE,
16
+ I as BRIEFING_RUN_CANCELLED_ERROR,
17
+ T as BRIEFING_TEXT_LIMITS,
18
+ d as BriefingContractError,
19
+ C as DEFAULT_BRIEFING_ARTIFACT_FORMATS,
20
+ u as DEFAULT_BRIEFING_SCHEDULE,
19
21
  A as MAX_BRIEFING_ATTACHMENTS,
20
22
  h as briefingAttachmentFileTraits,
21
23
  p as briefingAttachmentFormatLabel,
22
- u as briefingAttachmentNeedsExportJob,
23
- C as briefingAttachmentProduction,
24
- b as briefingScheduleDayOccurs,
25
- F as briefingScheduleMonths,
26
- D as briefingScheduleShortMonths,
27
- S as buildBriefingJobConfig,
28
- _ as buildBriefingScheduleExpr,
29
- N as buildCreateBriefingRequest,
30
- R as buildDashboardTemporalSnapshotEntries,
31
- y as buildMatrixDeliveryEnvelope,
32
- M as buildUpdateBriefingRequest,
33
- O as canCreateBriefingForUser,
34
- x as canonicalBriefingMonthDays,
35
- G as captureMatrixExport,
36
- v as describeBriefingSchedule,
37
- L as formatBriefingComparisonValues,
38
- U as formatBriefingDisplayValue,
39
- z as getBriefingCardAttachmentCapability,
40
- H as getBriefingCardAttachmentFormats,
41
- J as getBriefingCreationIntents,
42
- V as getBriefingDisplayTypeLabel,
43
- P as getBriefingPresentation,
44
- q as getDefaultBriefingCardAttachmentFormat,
45
- X as isBriefingArtifactFormat,
46
- K as isBriefingAttachmentOmissionCode,
47
- Q as isBriefingDeliveryChannel,
48
- j as isBriefingNumericValue,
49
- k as isBriefingTableExportCardType,
50
- W as isEmailOnlyBriefingDelivery,
51
- Y as isValidBriefingTimezone,
52
- Z as matrixDeliveryPayloadSchema,
53
- $ as matrixDeliveryQuerySchema,
54
- w as nextBriefingScheduleDates,
55
- ii as normalizeBriefingContentDocument,
56
- ei as normalizeBriefingDraft,
57
- ai as normalizeBriefingJobConfig,
58
- ri as parseBriefingScheduleExpr,
59
- ti as readBriefingOmittedAttachments,
60
- si as validateBriefingContentDocument,
61
- ni as validateBriefingDraft,
62
- oi as validateBriefingJobConfig
24
+ D as briefingAttachmentNeedsExportJob,
25
+ _ as briefingAttachmentProduction,
26
+ b as briefingDeliveryChannelOutcome,
27
+ F as briefingScheduleDayOccurs,
28
+ S as briefingScheduleMonths,
29
+ R as briefingScheduleShortMonths,
30
+ N as buildBriefingJobConfig,
31
+ y as buildBriefingScheduleExpr,
32
+ M as buildCreateBriefingRequest,
33
+ O as buildDashboardTemporalSnapshotEntries,
34
+ G as buildMatrixDeliveryEnvelope,
35
+ v as buildUpdateBriefingRequest,
36
+ x as canCreateBriefingForUser,
37
+ L as canonicalBriefingMonthDays,
38
+ U as captureMatrixExport,
39
+ V as describeBriefingSchedule,
40
+ z as formatBriefingComparisonValues,
41
+ H as formatBriefingDisplayValue,
42
+ J as getBriefingCardAttachmentCapability,
43
+ P as getBriefingCardAttachmentFormats,
44
+ q as getBriefingCreationIntents,
45
+ X as getBriefingDisplayTypeLabel,
46
+ K as getBriefingPresentation,
47
+ Q as getDefaultBriefingCardAttachmentFormat,
48
+ Y as isBriefingArtifactFormat,
49
+ j as isBriefingAttachmentOmissionCode,
50
+ k as isBriefingDeliveryChannel,
51
+ W as isBriefingNumericValue,
52
+ Z as isBriefingTableExportCardType,
53
+ $ as isEmailOnlyBriefingDelivery,
54
+ w as isValidBriefingTimezone,
55
+ ee as matrixDeliveryPayloadSchema,
56
+ ie as matrixDeliveryQuerySchema,
57
+ ae as nextBriefingScheduleDates,
58
+ re as normalizeBriefingContentDocument,
59
+ te as normalizeBriefingDraft,
60
+ se as normalizeBriefingJobConfig,
61
+ ne as parseBriefingScheduleExpr,
62
+ oe as readBriefingDeliveryOutcome,
63
+ fe as readBriefingOmittedAttachments,
64
+ ge as validateBriefingContentDocument,
65
+ le as validateBriefingDraft,
66
+ Be as validateBriefingJobConfig
63
67
  };
@@ -5,7 +5,7 @@ var Or = (e, t, r) => t.has(e) || $r("Cannot " + r);
5
5
  var L = (e, t, r) => (Or(e, t, "read from private field"), r ? r.call(e) : t.get(e)), me = (e, t, r) => t.has(e) ? $r("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), ee = (e, t, r, n) => (Or(e, t, "write to private field"), n ? n.call(e, r) : t.set(e, r), r);
6
6
  import { jsx as p, jsxs as k, Fragment as Le } from "react/jsx-runtime";
7
7
  import { useCallback as te, useRef as ie, useMemo as it, useEffect as ke, useState as D, useLayoutEffect as Ue, useId as As } from "react";
8
- import { u as X, e6 as Cs, aW as $s, be as Os, Y as zs, e7 as Ms, e8 as Ps, Z as zr, aT as Rs, e9 as Zs, bT as js, b9 as Ds, ea as dr, dm as Fs, eb as Ls, ec as Mt, ed as Cn, ee as Us, bN as Pt, c9 as Mr, ef as $n, $ as Bs, c3 as On, bh as Vs, bY as qs, bM as zn, dQ as Mn, eg as Js, cw as Ws, bn as Ks, eh as Gs, ei as Ys, ej as Hs, c6 as Qs, c7 as Xs, dn as eo, c8 as to, ce as ro, ek as no, bV as Lt, cd as ao, ci as so, bX as Pn, aR as Rn, aU as oo, b8 as xt, aP as Zn, el as io, em as lo, en as co, eo as uo, a6 as jn, ep as po } from "./semaphor-ready-indicator-T6TsiBMT.js";
8
+ import { u as X, e6 as Cs, aW as $s, be as Os, Y as zs, e7 as Ms, e8 as Ps, Z as zr, aT as Rs, e9 as Zs, bT as js, b9 as Ds, ea as dr, dm as Fs, eb as Ls, ec as Mt, ed as Cn, ee as Us, bN as Pt, c9 as Mr, ef as $n, $ as Bs, c3 as On, bh as Vs, bY as qs, bM as zn, dQ as Mn, eg as Js, cw as Ws, bn as Ks, eh as Gs, ei as Ys, ej as Hs, c6 as Qs, c7 as Xs, dn as eo, c8 as to, ce as ro, ek as no, bV as Lt, cd as ao, ci as so, bX as Pn, aR as Rn, aU as oo, b8 as xt, aP as Zn, el as io, em as lo, en as co, eo as uo, a6 as jn, ep as po } from "./semaphor-ready-indicator-B2NpYRE-.js";
9
9
  import { c as qe, B as Y, X as lt, k as Dn, l as fo, e as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, d as Vn } from "./code-editor-DJNOsgJH.js";
10
10
  import "./index-CuHybtft.js";
11
11
  import "./validators-wtjw0aw6.js";
@@ -16,10 +16,10 @@ import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format
16
16
  import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
17
17
  import { ay as go } from "./bookmark-state-ByODVqee.js";
18
18
  import { l as bo, m as ct, c as Xt, A as et, d as qn } from "./context-R31TSL5V.js";
19
- import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-DhC_EVus.js";
20
- import { gp as yo, o as xo, g1 as Rr } from "./resolve-dashboard-input-context-C18J-YZC.js";
21
- import { o as Wn, p as wo } from "./report-preferences-dialog-Db-b04B4.js";
22
- import { m as _o } from "./stored-dashboard-IdmtrNkA.js";
19
+ import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-c-MZZTx2.js";
20
+ import { gs as yo, o as xo, g4 as Rr } from "./resolve-dashboard-input-context-CwS-2r-b.js";
21
+ import { o as Wn, p as wo } from "./report-preferences-dialog-CeHioJwL.js";
22
+ import { m as _o } from "./stored-dashboard-DTWc2pzt.js";
23
23
  import { w as Io, c as Kn } from "./visual-choice-JiJ-_3bi.js";
24
24
  import { m as So, v as Gn, t as No, n as ko, k as ve, d as Eo, b as To, l as pr, w as Ao, h as Co, s as er, f as $o, a as Oo } from "./model-change-T1cRkh3m.js";
25
25
  import { aL as zo, aM as Mo, aN as Po, aO as wt, aP as Ro, aQ as Zr, aR as jr, aS as Dr, aT as Fr, aU as Lr, aV as Zo, ad as jo, ab as Do } from "./temporal-input-presentation--2r9BLr0.js";
@@ -1,5 +1,5 @@
1
1
  import { w as g, y as $ } from "./bookmark-state-ByODVqee.js";
2
- import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-IdmtrNkA.js";
2
+ import { l as F, h as C, a as O, b as v, i as S, f as T } from "./stored-dashboard-DTWc2pzt.js";
3
3
  function D(e) {
4
4
  var d, c, f;
5
5
  const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
@@ -2,18 +2,18 @@ import { c as Ue, B as j, X as ce, s as Ne, l as un, a3 as mn, o as at, p as rt,
2
2
  import { jsx as t, jsxs as l, Fragment as fe } from "react/jsx-runtime";
3
3
  import * as _e from "react";
4
4
  import vt, { useMemo as Q, useState as H, useRef as Ae, useCallback as ne, useEffect as de, forwardRef as hn, Fragment as xn } from "react";
5
- import { aU as ct, u as ut, a6 as se, bX as _t, cs as X, ct as gn, bT as Ie, cu as Ge, cv as Vt, cw as bn, bN as Ve, cx as vn, a7 as Rt, bu as yn, bv as Nn, bx as Cn, bn as wn, cy as kn, i as Sn, cz as Dn, cA as yt, bM as Et, cB as In, cC as Mt, cD as zt, cE as Tn, cF as Ln, cG as An, cH as $n, cI as Fn, cJ as On, cK as _n, bo as Vn, cL as Nt, cM as qt, cN as Rn, br as En, cO as Mn, cP as zn, cQ as qn, cR as ye, cS as jt, cT as jn, cU as Un, cV as Gn, cW as Bn, cX as Wn, cY as Kn, cZ as Je, c_ as he, c$ as et, d0 as tt, d1 as nt, d2 as Qn, d3 as Re, d4 as Ee, d5 as Me, d6 as ze, d7 as Ut, d8 as Gt, d9 as Bt } from "./semaphor-ready-indicator-T6TsiBMT.js";
5
+ import { aU as ct, u as ut, a6 as se, bX as _t, cs as X, ct as gn, bT as Ie, cu as Ge, cv as Vt, cw as bn, bN as Ve, cx as vn, a7 as Rt, bu as yn, bv as Nn, bx as Cn, bn as wn, cy as kn, i as Sn, cz as Dn, cA as yt, bM as Et, cB as In, cC as Mt, cD as zt, cE as Tn, cF as Ln, cG as An, cH as $n, cI as Fn, cJ as On, cK as _n, bo as Vn, cL as Nt, cM as qt, cN as Rn, br as En, cO as Mn, cP as zn, cQ as qn, cR as ye, cS as jt, cT as jn, cU as Un, cV as Gn, cW as Bn, cX as Wn, cY as Kn, cZ as Je, c_ as he, c$ as et, d0 as tt, d1 as nt, d2 as Qn, d3 as Re, d4 as Ee, d5 as Me, d6 as ze, d7 as Ut, d8 as Gt, d9 as Bt } from "./semaphor-ready-indicator-B2NpYRE-.js";
6
6
  import { D as Hn } from "./token-types-C8JymO8s.js";
7
- import { eW as Wt, eX as Yn, eY as Pn, eZ as Xn, e_ as Zn, e$ as Jn, f0 as $e, f1 as Ct, f2 as wt, f3 as Qe, f4 as He, f5 as ea, f6 as ta, f7 as kt, f8 as na, f9 as aa, fa as Fe, fb as ra, fc as St, fd as Kt, fe as Qt, ff as Ht, fg as Yt, fh as sa, fi as oa, fj as Dt, fk as ia, fl as It, fm as la, fn as da, fo as ca, fp as ua, fq as Ye, a as qe, fr as Pe, fs as ma, ft as pa, fu as fa, fv as ha } from "./resolve-dashboard-input-context-C18J-YZC.js";
7
+ import { eZ as Wt, e_ as Pn, e$ as Yn, f0 as Xn, f1 as Zn, f2 as Jn, f3 as $e, f4 as Ct, f5 as wt, f6 as Qe, f7 as He, f8 as ea, f9 as ta, fa as kt, fb as na, fc as aa, fd as Fe, fe as ra, ff as St, fg as Kt, fh as Qt, fi as Ht, fj as Pt, fk as sa, fl as oa, fm as Dt, fn as ia, fo as It, fp as la, fq as da, fr as ca, fs as ua, ft as Pe, a as qe, fu as Ye, fv as ma, fw as pa, fx as fa, fy as ha } from "./resolve-dashboard-input-context-CwS-2r-b.js";
8
8
  import "./index-CuHybtft.js";
9
- import { u as Pt } from "./validators-wtjw0aw6.js";
9
+ import { u as Yt } from "./validators-wtjw0aw6.js";
10
10
  import "./matrix-operation-contract-Eb6elidS.js";
11
11
  import "./analytics-base-schemas-BaIQrEzX.js";
12
12
  import "zod";
13
13
  import "../value-format-preferences/index.js";
14
14
  import { c as M } from "./_commonjsHelpers-DimLPMtv.js";
15
15
  import { U as xa } from "./upload-Cf3wXZT8.js";
16
- import { S as Xt } from "./filter-reach-copy-DbggA5B7.js";
16
+ import { P as Xt } from "./filter-reach-copy-D5LqgrUf.js";
17
17
  /**
18
18
  * @license lucide-react v0.453.0 - ISC
19
19
  *
@@ -299,14 +299,14 @@ function Sa({
299
299
  /* @__PURE__ */ t("span", { className: "ml-auto font-mono text-[10px] tabular-nums text-muted-foreground", children: N > 0 ? N : "" })
300
300
  ] }),
301
301
  y && /* @__PURE__ */ t("ul", { className: "space-y-px pb-1", children: p && r.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "Loading datasets…" }) : f.length === 0 ? /* @__PURE__ */ t("li", { className: "px-9 py-1.5 text-[11px] text-muted-foreground", children: "No datasets in this domain." }) : f.map((O) => {
302
- const T = Le(O), Y = o.some(
302
+ const T = Le(O), P = o.some(
303
303
  (Z) => X(Z, T)
304
304
  );
305
305
  return /* @__PURE__ */ t("li", { children: /* @__PURE__ */ l("label", { className: "flex cursor-pointer items-start gap-2 rounded-[4px] px-9 py-1.5 transition-colors hover:bg-muted/40", children: [
306
306
  /* @__PURE__ */ t(
307
307
  Ge,
308
308
  {
309
- checked: Y,
309
+ checked: P,
310
310
  onCheckedChange: () => U(O),
311
311
  className: "mt-[3px] h-3.5 w-3.5 shrink-0"
312
312
  }
@@ -1060,7 +1060,7 @@ function Cr({
1060
1060
  var Se, me;
1061
1061
  const { tokenProps: d } = ct(), c = d.config, i = d.semanticDomainAccess || Hn, [r, p] = H([]), [f, k] = H(""), [y, h] = H("all"), [N, S] = H(
1062
1062
  void 0
1063
- ), w = Ae(!1), { updateDataSource: V } = Rt(), U = u ?? V, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, Y = O === "include" || O === "exclude" || !T, Z = O !== "all", m = T && !Y, I = Y ? "semanticDomain" : a.mode, A = !T, D = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, b = ne(
1063
+ ), w = Ae(!1), { updateDataSource: V } = Rt(), U = u ?? V, O = i.mode, T = (c == null ? void 0 : c.showDirectSource) !== !1, P = O === "include" || O === "exclude" || !T, Z = O !== "all", m = T && !P, I = P ? "semanticDomain" : a.mode, A = !T, D = O === "include" && (((Se = i.domainIds) == null ? void 0 : Se.length) || 0) === 1 ? (me = i.domainIds) == null ? void 0 : me[0] : void 0, b = ne(
1064
1064
  ($) => {
1065
1065
  w.current = !0, U({
1066
1066
  ...a,
@@ -1083,7 +1083,7 @@ function Cr({
1083
1083
  );
1084
1084
  de(() => {
1085
1085
  var v;
1086
- if (Y && a.mode !== "semanticDomain") {
1086
+ if (P && a.mode !== "semanticDomain") {
1087
1087
  b("semanticDomain");
1088
1088
  return;
1089
1089
  }
@@ -1099,7 +1099,7 @@ function Cr({
1099
1099
  selectedEntities: []
1100
1100
  }), s && p([]));
1101
1101
  }, [
1102
- Y,
1102
+ P,
1103
1103
  Z,
1104
1104
  I,
1105
1105
  a.mode,
@@ -1114,13 +1114,13 @@ function Cr({
1114
1114
  D && !a.semanticDomainId && x({ semanticDomainId: D });
1115
1115
  }, [D, a.semanticDomainId, x]), de(() => {
1116
1116
  if (!e) {
1117
- w.current = !1, k(""), S(void 0), h(Y ? "semantic" : "all");
1117
+ w.current = !1, k(""), S(void 0), h(P ? "semantic" : "all");
1118
1118
  return;
1119
1119
  }
1120
1120
  w.current || (p([...o || []]), S(
1121
1121
  Xe(o)
1122
1122
  ));
1123
- }, [e, o, Y]);
1123
+ }, [e, o, P]);
1124
1124
  const z = ($) => {
1125
1125
  w.current = !0, p(
1126
1126
  r.filter((ae) => !X(ae, $))
@@ -1177,7 +1177,7 @@ function Cr({
1177
1177
  [_]
1178
1178
  ), q = ($) => {
1179
1179
  h($), $ === "semantic" || $.startsWith("domain:") ? a.mode !== "semanticDomain" && b("semanticDomain") : ($ === "direct" || $.startsWith("conn:")) && a.mode === "semanticDomain" && b("database");
1180
- }, J = y.startsWith("domain:"), te = y.startsWith("conn:"), We = J ? y.slice(7) : void 0, Ke = te ? y.slice(5) : void 0, oe = !m || y === "all" || y === "semantic" || J, Te = T && !Y && (y === "all" || y === "direct" || te), ue = ((o == null ? void 0 : o.length) ?? 0) > 0, Ce = r.length === 0 && !ue, we = r.length === 0 && ue ? "Clear" : "Add", ke = A ? "Select dataset" : "Add data";
1180
+ }, J = y.startsWith("domain:"), te = y.startsWith("conn:"), We = J ? y.slice(7) : void 0, Ke = te ? y.slice(5) : void 0, oe = !m || y === "all" || y === "semantic" || J, Te = T && !P && (y === "all" || y === "direct" || te), ue = ((o == null ? void 0 : o.length) ?? 0) > 0, Ce = r.length === 0 && !ue, we = r.length === 0 && ue ? "Clear" : "Add", ke = A ? "Select dataset" : "Add data";
1181
1181
  return /* @__PURE__ */ t(yn, { open: e, onOpenChange: n, children: /* @__PURE__ */ l(
1182
1182
  Nn,
1183
1183
  {
@@ -1492,7 +1492,7 @@ const Ea = hn(
1492
1492
  onClick: u,
1493
1493
  ...r,
1494
1494
  ...c,
1495
- className: M(`${Yn}`, a),
1495
+ className: M(`${Pn}`, a),
1496
1496
  children: n
1497
1497
  }
1498
1498
  ) }),
@@ -1515,7 +1515,7 @@ const Ea = hn(
1515
1515
  Ea.displayName = "IconButton";
1516
1516
  function Ma(e, n) {
1517
1517
  var r, p;
1518
- const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((r = n.dataSource) == null ? void 0 : r.connectionId) || "", d = Pn(e), c = Xn(
1518
+ const a = e.qualifiedFieldName || e.name, o = e.qualifiedFieldName ? e.qualifiedFieldName.split(".").slice(0, -1).join(".") : e.qualifiedEntityName || e.entityName, u = n.connectionId || ((r = n.dataSource) == null ? void 0 : r.connectionId) || "", d = Yn(e), c = Xn(
1519
1519
  n.dataSource,
1520
1520
  {
1521
1521
  connectionId: u,
@@ -1784,19 +1784,19 @@ function Ua(e) {
1784
1784
  e.reservedIds
1785
1785
  ), a = e.type === n.type ? {
1786
1786
  ...n,
1787
- label: Ye[e.type]
1787
+ label: Pe[e.type]
1788
1788
  } : {
1789
- ...Yt({
1789
+ ...Pt({
1790
1790
  controls: [
1791
1791
  {
1792
1792
  ...n,
1793
- label: Ye[e.type]
1793
+ label: Pe[e.type]
1794
1794
  }
1795
1795
  ],
1796
1796
  controlId: n.id,
1797
1797
  nextType: e.type
1798
1798
  }).controls[0],
1799
- label: Ye[e.type]
1799
+ label: Pe[e.type]
1800
1800
  };
1801
1801
  return {
1802
1802
  step: 2,
@@ -1827,7 +1827,7 @@ function Sr({
1827
1827
  [a]
1828
1828
  ), V = sa(e), U = Jn(e), [O, T] = H(
1829
1829
  null
1830
- ), [Y, Z] = H(
1830
+ ), [P, Z] = H(
1831
1831
  null
1832
1832
  ), [m, I] = H(
1833
1833
  () => c ? {
@@ -1996,7 +1996,7 @@ function Sr({
1996
1996
  const B = L.find(
1997
1997
  (W) => W.id === s
1998
1998
  );
1999
- let P = o;
1999
+ let Y = o;
2000
2000
  if (v && B) {
2001
2001
  const W = He({
2002
2002
  control: v,
@@ -2008,11 +2008,11 @@ function Sr({
2008
2008
  nextControl: B,
2009
2009
  currentDefaultValue: pe
2010
2010
  });
2011
- B.source.kind === "manual" && (A.current[s] = ie), o && (P = { ...o }, ie === void 0 ? delete P[s] : P[s] = ie), L = L.map(
2011
+ B.source.kind === "manual" && (A.current[s] = ie), o && (Y = { ...o }, ie === void 0 ? delete Y[s] : Y[s] = ie), L = L.map(
2012
2012
  (bt) => bt.id === s ? { ...B, defaultValue: ie } : bt
2013
2013
  );
2014
2014
  }
2015
- q(L, P, {
2015
+ q(L, Y, {
2016
2016
  type: "update",
2017
2017
  cardBindingsById: E,
2018
2018
  affectedBindingControlIds: F
@@ -2458,7 +2458,7 @@ function Sr({
2458
2458
  const g = K(s), v = i == null ? void 0 : i[s.id], L = He({
2459
2459
  control: s,
2460
2460
  defaultValues: o
2461
- }), R = Y === s.id, E = "inline-flex shrink-0 items-center rounded-[4px] border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground";
2461
+ }), R = P === s.id, E = "inline-flex shrink-0 items-center rounded-[4px] border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] font-medium text-muted-foreground";
2462
2462
  return /* @__PURE__ */ l(
2463
2463
  "div",
2464
2464
  {
@@ -2526,7 +2526,7 @@ function Sr({
2526
2526
  {
2527
2527
  value: s.type,
2528
2528
  onValueChange: (F) => {
2529
- const B = Yt({
2529
+ const B = Pt({
2530
2530
  controls: n,
2531
2531
  controlId: s.id,
2532
2532
  nextType: F,
@@ -2586,10 +2586,10 @@ function Sr({
2586
2586
  const B = ee({
2587
2587
  control: s,
2588
2588
  nextSelectedCardIds: F
2589
- }), P = n.map(
2589
+ }), Y = n.map(
2590
2590
  (W) => W.id === s.id ? B.nextControl : W
2591
2591
  );
2592
- q(P, o, {
2592
+ q(Y, o, {
2593
2593
  type: "update",
2594
2594
  cardBindingsById: B.cardBindingsById
2595
2595
  });
@@ -2603,15 +2603,15 @@ function Sr({
2603
2603
  selectedCardIds: (k == null ? void 0 : k[s.id]) || [],
2604
2604
  control: s,
2605
2605
  onChange: (F, B) => {
2606
- const P = ee({
2606
+ const Y = ee({
2607
2607
  control: s,
2608
2608
  nextSelectedCardIds: (k == null ? void 0 : k[s.id]) || [],
2609
2609
  matrixTargetIds: { [F]: B }
2610
2610
  });
2611
2611
  q(
2612
- n.map((W) => W.id === s.id ? P.nextControl : W),
2612
+ n.map((W) => W.id === s.id ? Y.nextControl : W),
2613
2613
  o,
2614
- { type: "update", cardBindingsById: P.cardBindingsById }
2614
+ { type: "update", cardBindingsById: Y.cardBindingsById }
2615
2615
  );
2616
2616
  }
2617
2617
  }
@@ -2640,11 +2640,11 @@ function Sr({
2640
2640
  previewControlValues: me,
2641
2641
  onChange: (F) => {
2642
2642
  const B = n.map(
2643
- (P) => P.id === s.id ? { ...P, defaultValue: F } : P
2643
+ (Y) => Y.id === s.id ? { ...Y, defaultValue: F } : Y
2644
2644
  );
2645
2645
  if (s.source.kind === "manual" && (A.current[s.id] = F), o) {
2646
- const P = { ...o };
2647
- F === void 0 ? delete P[s.id] : P[s.id] = F, q(B, P);
2646
+ const Y = { ...o };
2647
+ F === void 0 ? delete Y[s.id] : Y[s.id] = F, q(B, Y);
2648
2648
  return;
2649
2649
  }
2650
2650
  q(B, void 0);
@@ -2936,7 +2936,7 @@ function Wa({
2936
2936
  groups: x.groups.map(b)
2937
2937
  };
2938
2938
  d(b(o));
2939
- }, Y = (I, A, D) => {
2939
+ }, P = (I, A, D) => {
2940
2940
  const b = (x) => x.id === I ? {
2941
2941
  ...x,
2942
2942
  groups: Nt(x.groups, A, D)
@@ -2961,7 +2961,7 @@ function Wa({
2961
2961
  weekStart: (V == null ? void 0 : V.weekStart) ?? 1,
2962
2962
  anchor: (V == null ? void 0 : V.anchor) ?? "now"
2963
2963
  });
2964
- return K ? `${x} ${G} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${_}: dates update each time the card runs */` : Pt(b.relativeMeta) ? `${x} ${G} ${_} /* dates count back from the latest data each time the card runs */` : `${x} ${G} ${_} /* dates follow your calendar each time the card runs */`;
2964
+ return K ? `${x} ${G} '${K.start.toISOString()}' AND '${K.end.toISOString()}' /* ${_}: dates update each time the card runs */` : Yt(b.relativeMeta) ? `${x} ${G} ${_} /* dates count back from the latest data each time the card runs */` : `${x} ${G} ${_} /* dates follow your calendar each time the card runs */`;
2965
2965
  }
2966
2966
  if (b.field.dataType === "string" && !["in", "not in"].includes(b.operator))
2967
2967
  typeof C == "string" ? C = `'${C}'` : Array.isArray(C) && (C = `'${C.join(", ")}'`);
@@ -3020,7 +3020,7 @@ function Wa({
3020
3020
  updateGroupOperator: U,
3021
3021
  updateGroupNegate: O,
3022
3022
  reorderConditions: T,
3023
- reorderGroups: Y,
3023
+ reorderGroups: P,
3024
3024
  generateSQLPreview: Z,
3025
3025
  hasAnyFilters: m
3026
3026
  };
@@ -3220,7 +3220,7 @@ function Ha({
3220
3220
  )
3221
3221
  ] }) });
3222
3222
  }
3223
- function Ya({
3223
+ function Pa({
3224
3224
  field: e,
3225
3225
  source: n,
3226
3226
  value: a,
@@ -3289,7 +3289,7 @@ function Ya({
3289
3289
  )
3290
3290
  ] });
3291
3291
  }
3292
- function Pa({
3292
+ function Ya({
3293
3293
  value: e,
3294
3294
  operator: n,
3295
3295
  relativeMeta: a,
@@ -3302,7 +3302,7 @@ function Pa({
3302
3302
  const w = i(a);
3303
3303
  return {
3304
3304
  ...w,
3305
- tooltip: w.dates ? void 0 : Pt(a) ? Gn : Bn
3305
+ tooltip: w.dates ? void 0 : Yt(a) ? Gn : Bn
3306
3306
  };
3307
3307
  }, [r, a, i]), f = Q(() => {
3308
3308
  if (r) {
@@ -3311,7 +3311,7 @@ function Pa({
3311
3311
  return w ? { from: w.start, to: w.end } : void 0;
3312
3312
  }
3313
3313
  if (e && Array.isArray(e) && e.length === 2) {
3314
- const w = Pe(e[0], c, "start"), V = Pe(e[1], c, "end");
3314
+ const w = Ye(e[0], c, "start"), V = Ye(e[1], c, "end");
3315
3315
  if (w && V)
3316
3316
  return { from: w, to: V };
3317
3317
  }
@@ -3319,7 +3319,7 @@ function Pa({
3319
3319
  }, [e, r, p, c]), k = Q(() => {
3320
3320
  if (!e || r || o) return;
3321
3321
  const w = Array.isArray(e) ? e[0] : e;
3322
- return Pe(w, c, "start");
3322
+ return Ye(w, c, "start");
3323
3323
  }, [e, r, o, c]), y = (w) => n === "<=" || n === ">" ? pa(w, c) : fa(w, c);
3324
3324
  return /* @__PURE__ */ t(
3325
3325
  Wn,
@@ -3597,7 +3597,7 @@ function dn({
3597
3597
  placeholder: `${Ze(e.operator)}…`
3598
3598
  }
3599
3599
  ) : /* @__PURE__ */ t(
3600
- Ya,
3600
+ Pa,
3601
3601
  {
3602
3602
  field: e.field,
3603
3603
  source: i,
@@ -3627,7 +3627,7 @@ function dn({
3627
3627
  // - Handles different operators (=, !=, >, <, between, in, etc.)
3628
3628
  // - Saves relative choices ("This month") with the range
3629
3629
  /* @__PURE__ */ t(
3630
- Pa,
3630
+ Ya,
3631
3631
  {
3632
3632
  value: e.value,
3633
3633
  operator: e.operator,
@@ -3728,7 +3728,7 @@ function sr({
3728
3728
  setNodeRef: U,
3729
3729
  transform: O,
3730
3730
  transition: T,
3731
- isDragging: Y
3731
+ isDragging: P
3732
3732
  } = Ut({ id: e.id }), Z = {
3733
3733
  transform: Gt.Transform.toString(O),
3734
3734
  transition: T
@@ -3756,7 +3756,7 @@ function sr({
3756
3756
  style: Z,
3757
3757
  className: M(
3758
3758
  n > 0 && "mt-2 overflow-hidden rounded-[6px] border border-border/60",
3759
- Y && "z-50 opacity-50"
3759
+ P && "z-50 opacity-50"
3760
3760
  ),
3761
3761
  children: [
3762
3762
  n > 0 && /* @__PURE__ */ l("div", { className: "flex items-center justify-between gap-2 border-b border-border/60 bg-muted/40 px-2 py-1", children: [
@@ -3903,7 +3903,7 @@ function Ir({
3903
3903
  updateGroupNegate: U,
3904
3904
  reorderConditions: O,
3905
3905
  reorderGroups: T,
3906
- generateSQLPreview: Y,
3906
+ generateSQLPreview: P,
3907
3907
  hasAnyFilters: Z
3908
3908
  } = Wa({
3909
3909
  initialFilters: e,
@@ -4054,7 +4054,7 @@ function Ir({
4054
4054
  ] }),
4055
4055
  Z && !i && /* @__PURE__ */ l("div", { className: "mt-3 border-t border-border/60 pt-3", children: [
4056
4056
  /* @__PURE__ */ t("div", { className: M("mb-1.5", xt), children: "Where clause" }),
4057
- /* @__PURE__ */ t("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-[6px] border border-border bg-muted/40 px-3 py-2 font-mono text-[12px] leading-[1.55] text-foreground", children: Y(r) })
4057
+ /* @__PURE__ */ t("pre", { className: "overflow-x-auto whitespace-pre-wrap break-words rounded-[6px] border border-border bg-muted/40 px-3 py-2 font-mono text-[12px] leading-[1.55] text-foreground", children: P(r) })
4058
4058
  ] })
4059
4059
  ] }),
4060
4060
  i ? null : /* @__PURE__ */ l("div", { className: "flex shrink-0 items-center justify-between gap-2 border-t border-border px-3 py-2.5", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-T6TsiBMT.js";
2
+ import { E as o, F as i, S as d, B as s, a as c, U as l, D as t, A as h, C as f, b } from "./semaphor-ready-indicator-B2NpYRE-.js";
3
3
  function u(e) {
4
4
  if (typeof window > "u")
5
5
  return null;