react-semaphor 0.1.560 → 0.1.561

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 (107) hide show
  1. package/dist/analytics-protocol/index.js +353 -349
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/assistant-protocol/index.js +5 -5
  4. package/dist/brand-studio/index.js +9 -9
  5. package/dist/briefings/index.js +5 -5
  6. package/dist/chunks/{analytics-base-schemas-CHLxsPfX.js → analytics-base-schemas-CB3oFAXk.js} +199 -171
  7. package/dist/chunks/{assistant-chat-Bu2fFm_I.js → assistant-chat-DiVHY3Hw.js} +27 -28
  8. package/dist/chunks/bookmark-impact-CR09dpkn.js +75 -0
  9. package/dist/chunks/bookmark-state-BusLpkb7.js +743 -0
  10. package/dist/chunks/{braces-Da41xfUd.js → braces-u8VorWJc.js} +1 -1
  11. package/dist/chunks/{comparison-window-caption-4FNkMrzE.js → comparison-window-caption-DDsIWJYT.js} +108 -108
  12. package/dist/chunks/{context-BgPDzLHZ.js → context-TUjw9eqr.js} +1 -1
  13. package/dist/chunks/{custom-visual-inputs-Dz-enUNR.js → custom-visual-inputs-DfolidZ9.js} +1 -1
  14. package/dist/chunks/{dashboard-_MeBuy67.js → dashboard-BRdZBPqr.js} +1 -1
  15. package/dist/chunks/{dashboard-briefing-launcher-CEi4Pr_v.js → dashboard-briefing-launcher-CgvTLndW.js} +161 -162
  16. package/dist/chunks/{dashboard-controls-Bi7fyG-4.js → dashboard-controls-B4vfSzTF.js} +881 -945
  17. package/dist/chunks/{dashboard-json-B1mU_OMa.js → dashboard-json-Y3MF59g7.js} +5 -5
  18. package/dist/chunks/document-dashboard-inputs-CvBbFTUA.js +1718 -0
  19. package/dist/chunks/{edit-dashboard-visual-0CJN31Y3.js → edit-dashboard-visual-DwjZcxj-.js} +6112 -6146
  20. package/dist/chunks/{filter-reach-copy-BF4w4kI2.js → filter-reach-copy-bijwf_-b.js} +1250 -1392
  21. package/dist/chunks/{filter-value-text-CRC-K_l_.js → filter-value-text-DFnhwuEW.js} +3 -3
  22. package/dist/chunks/global-date-filter-utils-BXgCpvQM.js +15142 -0
  23. package/dist/chunks/{index-DtHidOPV.js → index-ClwbY3BL.js} +197 -198
  24. package/dist/chunks/{layout-grid-BvsH4RY2.js → layout-grid-CtvCBfOm.js} +1 -1
  25. package/dist/chunks/{list-filter-Dg0otx5E.js → list-filter-BklYgciR.js} +1 -1
  26. package/dist/chunks/{matrix-analytical-definition-CM18W8w6.js → matrix-analytical-definition-pU51-JmY.js} +4 -4
  27. package/dist/chunks/{matrix-card-HPskLaPy.js → matrix-card-CUorIB7Q.js} +3 -3
  28. package/dist/chunks/{matrix-member-presentation-Bbrfrke4.js → matrix-member-presentation-Df5UgCGN.js} +1 -1
  29. package/dist/chunks/{matrix-operation-contract-WPv4R-H_.js → matrix-operation-contract-BSiGEXVC.js} +255 -248
  30. package/dist/chunks/{metric-comparison-ljMKYZKa.js → metric-comparison-95aC0uEO.js} +6 -6
  31. package/dist/chunks/{model-change-Ccn1zaxl.js → model-change-B5wQhg5G.js} +1 -1
  32. package/dist/chunks/{palette-Bsh376zO.js → palette-DTnMhipt.js} +1 -1
  33. package/dist/chunks/pivot-result-contract-expectations-Bo-86vwS.js +56 -0
  34. package/dist/chunks/{pivot-result-identity-vS9TSh4f.js → pivot-result-identity-olvXJoB9.js} +1 -1
  35. package/dist/chunks/{report-preferences-dialog-BV8L0SeS.js → report-preferences-dialog-C2YUIwKG.js} +14 -14
  36. package/dist/chunks/{report-runtime-context-BZQh9ywy.js → report-runtime-context-DoIUr3MP.js} +2 -2
  37. package/dist/chunks/resolve-dashboard-input-context-q_iiNXE1.js +6503 -0
  38. package/dist/chunks/{save-B5EAsgQF.js → save-DH4RyrnG.js} +1 -1
  39. package/dist/chunks/{saved-dashboard-context-n2Wn11cV.js → saved-dashboard-context-8jqfI7hI.js} +12 -12
  40. package/dist/chunks/{selection-reducer-D0YnaAD9.js → selection-reducer-CV7K4FI6.js} +1 -1
  41. package/dist/chunks/{semaphor-ready-indicator-XLBLOJ2V.js → semaphor-ready-indicator-E2XWyibu.js} +30253 -31076
  42. package/dist/chunks/{shelf-drop-preview-context-DHMa54a-.js → shelf-drop-preview-context-C29EUzDp.js} +7 -7
  43. package/dist/chunks/{source-entity-resolution-dUG5VWRm.js → source-entity-resolution-BXI3nQ5Z.js} +1 -1
  44. package/dist/chunks/{switch-ByxH4M7t.js → switch-balDSHc7.js} +3 -3
  45. package/dist/chunks/{table-export-sheet-C_GdeTYU.js → table-export-sheet-CK8tvh4d.js} +1 -1
  46. package/dist/chunks/temporal-input-presentation-B77JsAzU.js +5002 -0
  47. package/dist/chunks/{token-types-CQtXUVMy.js → token-types-DhYH5YKb.js} +1 -1
  48. package/dist/chunks/{upload-wbR-NVzq.js → upload-Ufj8vjyn.js} +1 -1
  49. package/dist/chunks/{use-create-flow-overlay-state-CEBaLOKC.js → use-create-flow-overlay-state-9WsnzEO5.js} +6 -6
  50. package/dist/chunks/{validators-CXTneCA4.js → validators-BtaCFIEB.js} +37 -37
  51. package/dist/chunks/{zoned-wall-clock-B1n_WjW3.js → zoned-wall-clock-CGLVI40Q.js} +1 -1
  52. package/dist/dashboard/index.js +2 -2
  53. package/dist/dashboard-authoring/index.js +2400 -1856
  54. package/dist/data-app-sdk/index.js +20 -20
  55. package/dist/data-app-sdk-adapters/index.js +3 -3
  56. package/dist/data-app-sdk-validation/index.js +10 -10
  57. package/dist/format-utils/index.js +257 -256
  58. package/dist/index.js +214 -215
  59. package/dist/report-runtime-context/index.js +2 -2
  60. package/dist/style.css +1 -1
  61. package/dist/surfboard/index.js +2 -2
  62. package/dist/types/components/dashboard/summary-number-formatter.d.ts +6 -0
  63. package/dist/types/index.js +50 -51
  64. package/dist/types/lib/formatters/kpi-number-formatter.d.ts +41 -0
  65. package/dist/types/lib/stores/editor-store.d.ts +9 -1
  66. package/dist/types/lib/stores/table-actions.d.ts +0 -2
  67. package/dist/types/shared/analytics-protocol/analytics-base-schemas.d.ts +10 -0
  68. package/dist/types/shared/analytics-protocol/measure-aggregation-profile.d.ts +12 -0
  69. package/dist/types/shared/dashboard-authoring/card-settings/apply-card-settings.d.ts +11 -0
  70. package/dist/types/shared/dashboard-authoring/card-settings/card-display-write.d.ts +52 -0
  71. package/dist/types/shared/dashboard-authoring/card-settings/card-kinds.d.ts +14 -0
  72. package/dist/types/shared/dashboard-authoring/card-settings/carry-column-settings.d.ts +3 -0
  73. package/dist/types/shared/dashboard-authoring/card-settings/column-format-write.d.ts +8 -0
  74. package/dist/types/shared/dashboard-authoring/card-settings/column-names.d.ts +51 -0
  75. package/dist/types/shared/dashboard-authoring/card-settings/column-sources.d.ts +14 -0
  76. package/dist/types/shared/dashboard-authoring/card-settings/confirm-class.d.ts +9 -0
  77. package/dist/types/shared/dashboard-authoring/card-settings/highlight-inputs.d.ts +19 -0
  78. package/dist/types/shared/dashboard-authoring/card-settings/index.d.ts +15 -0
  79. package/dist/types/shared/dashboard-authoring/card-settings/inputs.d.ts +102 -0
  80. package/dist/types/shared/dashboard-authoring/card-settings/read-card-settings.d.ts +10 -0
  81. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-highlights.d.ts +14 -0
  82. package/dist/types/shared/dashboard-authoring/card-settings/resolve-card-settings.d.ts +59 -0
  83. package/dist/types/shared/dashboard-authoring/card-settings/resolved.d.ts +40 -0
  84. package/dist/types/shared/dashboard-authoring/card-settings/views.d.ts +28 -0
  85. package/dist/types/shared/dashboard-authoring/changes/card-query-part.d.ts +6 -0
  86. package/dist/types/shared/dashboard-authoring/changes/card-types.d.ts +32 -0
  87. package/dist/types/shared/dashboard-authoring/changes/dashboard-change.d.ts +539 -22
  88. package/dist/types/shared/dashboard-authoring/changes/diagnostics.d.ts +27 -8
  89. package/dist/types/shared/dashboard-authoring/changes/resolve-dashboard-changes.d.ts +25 -1
  90. package/dist/types/shared/dashboard-authoring/conditional-formatting/kpi.d.ts +1 -8
  91. package/dist/types/shared/dashboard-authoring/conditional-formatting/schema.d.ts +10 -10
  92. package/dist/types/shared/dashboard-authoring/index.d.ts +3 -0
  93. package/dist/types/shared/dashboard-authoring/kpi-figure.d.ts +123 -0
  94. package/dist/types/shared/dashboard-authoring/operations/operation-types.d.ts +21 -1
  95. package/dist/types/shared/dashboard-authoring/outline/outline-dashboard.d.ts +10 -4
  96. package/dist/types/shared/dashboard-viewer/bookmark-impact.d.ts +33 -0
  97. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +8 -1
  98. package/dist/types/shared/format-utils/raw-temporal.d.ts +16 -0
  99. package/package.json +2 -2
  100. package/dist/chunks/bookmark-state-BFY9oNmr.js +0 -111
  101. package/dist/chunks/document-dashboard-inputs-CkWfDB8c.js +0 -3010
  102. package/dist/chunks/global-date-filter-utils-D8365uPH.js +0 -12889
  103. package/dist/chunks/pivot-result-contract-expectations-Bl5suy4-.js +0 -1832
  104. package/dist/chunks/raw-temporal-presentation-BHm7s-hz.js +0 -540
  105. package/dist/chunks/resolve-dashboard-input-context-CAMiWvyR.js +0 -5280
  106. package/dist/chunks/table-settings-Imz0FgWi.js +0 -637
  107. package/dist/chunks/temporal-input-presentation-uvNK_tM0.js +0 -3228
@@ -5,29 +5,28 @@ 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 j, useLayoutEffect as Ue, useId as As } from "react";
8
- import { u as Q, du as Cs, ba as $s, bu as Os, Y as zs, dv as Ms, dw as Ps, Z as zr, b7 as Rs, dx as Zs, aR as Ds, bp as js, dy as dr, cR as Fs, dz as Ls, dA as Mt, dB as Cn, dC as Us, a$ as Pt, cm as Mr, dD as $n, $ as Bs, cg as On, bx as Vs, c9 as qs, aS as zn, di as Mn, dE as Js, dF as Ks, bD as Ws, dG as Gs, dH as Hs, dI as Ys, cj as Xs, ck as Qs, cS as eo, cl as to, cr as ro, dJ as no, c6 as Lt, cq as ao, cv as so, c8 as Pn, b5 as Rn, b8 as oo, bo as xt, b3 as Zn, dK as io, dL as lo, dM as co, dN as uo, a6 as Dn, dO as po } from "./semaphor-ready-indicator-XLBLOJ2V.js";
9
- import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, b as Vn } from "./switch-ByxH4M7t.js";
8
+ import { u as Q, du as Cs, ba as $s, bu as Os, Y as zs, dv as Ms, dw as Ps, Z as zr, b7 as Rs, dx as Zs, aR as Ds, bp as js, dy as dr, cR as Fs, dz as Ls, dA as Mt, dB as Cn, dC as Us, a$ as Pt, cm as Mr, dD as $n, $ as Bs, cg as On, bx as Vs, c9 as qs, aS as zn, di as Mn, dE as Js, dF as Ks, bD as Ws, dG as Gs, dH as Hs, dI as Ys, cj as Xs, ck as Qs, cS as eo, cl as to, cr as ro, dJ as no, c6 as Lt, cq as ao, cv as so, c8 as Pn, b5 as Rn, b8 as oo, bo as xt, b3 as Zn, dK as io, dL as lo, dM as co, dN as uo, a6 as Dn, dO as po } from "./semaphor-ready-indicator-E2XWyibu.js";
9
+ import { c as qe, B as H, X as lt, j as jn, k as fo, d as mt, L as Be, I as Fn, R as Ln, P as Un, a as Bn, b as Vn } from "./switch-balDSHc7.js";
10
10
  import "./index-CuHybtft.js";
11
- import "./validators-CXTneCA4.js";
12
- import "./matrix-operation-contract-WPv4R-H_.js";
13
- import "./analytics-base-schemas-CHLxsPfX.js";
11
+ import "./validators-BtaCFIEB.js";
12
+ import "./matrix-operation-contract-BSiGEXVC.js";
13
+ import "./analytics-base-schemas-CB3oFAXk.js";
14
14
  import "zod";
15
15
  import { DEFAULT_RESOLVED_VALUE_FORMAT_PREFERENCES as mo } from "../value-format-preferences/index.js";
16
16
  import { g as ho, c as B } from "./_commonjsHelpers-DimLPMtv.js";
17
- import { I as go } from "./table-settings-Imz0FgWi.js";
18
- import { l as bo, m as ct, c as Qt, A as et, d as qn } from "./context-BgPDzLHZ.js";
19
- import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-n2Wn11cV.js";
20
- import { ek as yo, aw as xo, v as Rr } from "./global-date-filter-utils-D8365uPH.js";
21
- import { o as Kn, p as wo } from "./report-preferences-dialog-BV8L0SeS.js";
22
- import { d as _o } from "./document-dashboard-inputs-CkWfDB8c.js";
17
+ import { N as go } from "./bookmark-state-BusLpkb7.js";
18
+ import { l as bo, m as ct, c as Qt, A as et, d as qn } from "./context-TUjw9eqr.js";
19
+ import { p as Pr, a as vo, A as Jn } from "./saved-dashboard-context-8jqfI7hI.js";
20
+ import { e$ as yo, aX as xo, v as Rr } from "./global-date-filter-utils-BXgCpvQM.js";
21
+ import { o as Kn, p as wo } from "./report-preferences-dialog-C2YUIwKG.js";
22
+ import { c as _o } from "./document-dashboard-inputs-CvBbFTUA.js";
23
23
  import { w as Io, c as Wn } from "./visual-choice-JiJ-_3bi.js";
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-Ccn1zaxl.js";
25
- import { aq as Zr, ar as Dr, as as jr, at as Fr, a5 as zo, a3 as Mo } from "./temporal-input-presentation-uvNK_tM0.js";
26
- import { L as Po } from "./list-filter-Dg0otx5E.js";
27
- import { v as Ro, x as Zo, y as Do, z as wt, A as jo, B as Lr, C as Fo } from "./pivot-result-contract-expectations-Bl5suy4-.js";
28
- import { L as Ur } from "./layout-grid-BvsH4RY2.js";
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-B5wQhg5G.js";
25
+ import { aL as zo, aM as Mo, aN as Po, aO as wt, aP as Ro, aQ as Zr, aR as Dr, aS as jr, aT as Fr, aU as Lr, aV as Zo, ac as Do, aa as jo } from "./temporal-input-presentation-B77JsAzU.js";
26
+ import { L as Fo } from "./list-filter-BklYgciR.js";
27
+ import { L as Ur } from "./layout-grid-CtvCBfOm.js";
29
28
  function Lo(e, t, r) {
30
- const n = Ro(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Zo, s = Do(e, t);
29
+ const n = zo(), a = (r == null ? void 0 : r.locale) ?? n.locale ?? Mo, s = Po(e, t);
31
30
  if (isNaN(s))
32
31
  throw new RangeError("Invalid time value");
33
32
  const o = Object.assign({}, r, {
@@ -36,9 +35,9 @@ function Lo(e, t, r) {
36
35
  });
37
36
  let c, f;
38
37
  s > 0 ? (c = wt(t), f = wt(e)) : (c = wt(e), f = wt(t));
39
- const i = jo((r == null ? void 0 : r.roundingMethod) ?? "round"), g = f.getTime() - c.getTime(), u = g / Fr, m = Lr(f) - Lr(c), w = (g - m) / Fr, I = r == null ? void 0 : r.unit;
38
+ const i = Ro((r == null ? void 0 : r.roundingMethod) ?? "round"), g = f.getTime() - c.getTime(), u = g / Lr, m = Zr(f) - Zr(c), w = (g - m) / Lr, I = r == null ? void 0 : r.unit;
40
39
  let E;
41
- if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < Zr ? E = "hour" : w < Dr ? E = "day" : w < jr ? E = "month" : E = "year", E === "second") {
40
+ if (I ? E = I : u < 1 ? E = "second" : u < 60 ? E = "minute" : u < Dr ? E = "hour" : w < jr ? E = "day" : w < Fr ? E = "month" : E = "year", E === "second") {
42
41
  const _ = i(g / 1e3);
43
42
  return a.formatDistance("xSeconds", _, o);
44
43
  } else if (E === "minute") {
@@ -48,18 +47,18 @@ function Lo(e, t, r) {
48
47
  const _ = i(u / 60);
49
48
  return a.formatDistance("xHours", _, o);
50
49
  } else if (E === "day") {
51
- const _ = i(w / Zr);
50
+ const _ = i(w / Dr);
52
51
  return a.formatDistance("xDays", _, o);
53
52
  } else if (E === "month") {
54
- const _ = i(w / Dr);
53
+ const _ = i(w / jr);
55
54
  return _ === 12 && I !== "month" ? a.formatDistance("xYears", 1, o) : a.formatDistance("xMonths", _, o);
56
55
  } else {
57
- const _ = i(w / jr);
56
+ const _ = i(w / Fr);
58
57
  return a.formatDistance("xYears", _, o);
59
58
  }
60
59
  }
61
60
  function Uo(e, t) {
62
- return Lo(e, Fo(e), t);
61
+ return Lo(e, Zo(e), t);
63
62
  }
64
63
  /**
65
64
  * @license lucide-react v0.453.0 - ISC
@@ -6935,7 +6934,7 @@ function Sr() {
6935
6934
  return Rs() ?? mo;
6936
6935
  }
6937
6936
  function fs(e, t) {
6938
- return Mo({
6937
+ return jo({
6939
6938
  metadata: e,
6940
6939
  locale: t.locale,
6941
6940
  styles: { dateStyle: t.dateStyle, dateTime: t.dateTime }
@@ -6948,7 +6947,7 @@ function Nr(e, t, r) {
6948
6947
  if (e == null) return "";
6949
6948
  if (t.temporalBucket && typeof e == "string")
6950
6949
  try {
6951
- return zo({
6950
+ return Do({
6952
6951
  value: e,
6953
6952
  metadata: t.temporalBucket,
6954
6953
  format: fs(t.temporalBucket, r).format
@@ -7770,7 +7769,7 @@ function Gf(e) {
7770
7769
  return e.reason === "refused" ? `Not applied: ${e.message}` : e.message;
7771
7770
  }
7772
7771
  function Hf(e) {
7773
- return e.startsWith("filter.") ? Po : e === "card.add" ? Pt : e === "card.remove" ? zn : Mn;
7772
+ return e.startsWith("filter.") ? Fo : e === "card.add" ? Pt : e === "card.remove" ? zn : Mn;
7774
7773
  }
7775
7774
  const kn = 4;
7776
7775
  function Yf({
@@ -8355,7 +8354,7 @@ function Sm(e, t) {
8355
8354
  return { text: e.slice(0, n) + e.slice(t), caret: n };
8356
8355
  }
8357
8356
  const Nm = [], km = { withRequest: !0 };
8358
- function oh({
8357
+ function sh({
8359
8358
  instance: e,
8360
8359
  surface: t = "dashboard",
8361
8360
  placement: r
@@ -8846,5 +8845,5 @@ function Mm({
8846
8845
  ] });
8847
8846
  }
8848
8847
  export {
8849
- oh as default
8848
+ sh as default
8850
8849
  };
@@ -0,0 +1,75 @@
1
+ import { w as g, y as $ } from "./bookmark-state-BusLpkb7.js";
2
+ import { l as F, h as C, a as O, b as v, i as S, f as T } from "./resolve-dashboard-input-context-q_iiNXE1.js";
3
+ function D(e) {
4
+ var d, c, f;
5
+ const { saved: s, draft: a, usage: l } = e, b = [], j = F(s);
6
+ for (const [t, o] of Object.entries(l.inputs))
7
+ !o || !C(s, t) || C(a, t) || b.push({
8
+ target: "input",
9
+ id: t,
10
+ label: O(s, j, t),
11
+ bookmarks: o,
12
+ remembered: 0
13
+ });
14
+ const y = new Set((a.sheets ?? []).map((t) => t.id));
15
+ for (const t of s.sheets ?? []) {
16
+ const o = l.sheets[t.id] ?? 0;
17
+ !o || y.has(t.id) || b.push({
18
+ target: "sheet",
19
+ id: t.id,
20
+ label: ((d = t.title) == null ? void 0 : d.trim()) || "Untitled sheet",
21
+ bookmarks: o,
22
+ remembered: 0
23
+ });
24
+ }
25
+ const B = g(s), z = g(a);
26
+ for (const [t, o] of Object.entries(l.tables)) {
27
+ if (!B.has(t)) continue;
28
+ const r = $(s, t), i = ((c = r == null ? void 0 : r.title) == null ? void 0 : c.trim()) || "Untitled table";
29
+ if (!z.has(t)) {
30
+ b.push({
31
+ target: "table",
32
+ id: t,
33
+ label: i,
34
+ bookmarks: o.bookmarks,
35
+ remembered: o.remembered
36
+ });
37
+ continue;
38
+ }
39
+ const h = r ? v(r) : void 0, k = $(a, t), p = k ? v(k) : void 0;
40
+ if (!(!r || !h || !p))
41
+ for (const [m, u] of Object.entries(o.columns)) {
42
+ if (!(u.bookmarks || u.remembered) || S(m) || !h.has(m) || p.has(m))
43
+ continue;
44
+ const n = T(r, m), I = ((f = n == null ? void 0 : n.label) == null ? void 0 : f.trim()) || (n == null ? void 0 : n.name);
45
+ b.push({
46
+ target: "column",
47
+ id: m,
48
+ cardId: t,
49
+ label: I ? `${I} in ${i}` : `A column in ${i}`,
50
+ bookmarks: u.bookmarks,
51
+ remembered: u.remembered
52
+ });
53
+ }
54
+ }
55
+ return b;
56
+ }
57
+ function w(e, s, a) {
58
+ return `${e} ${e === 1 ? s : a}`;
59
+ }
60
+ function U(e) {
61
+ const s = [
62
+ e.bookmarks ? w(e.bookmarks, "bookmark", "bookmarks") : null,
63
+ e.remembered ? w(e.remembered, "remembered layout", "remembered layouts") : null
64
+ ].filter(Boolean).join(", ");
65
+ return e.target === "sheet" ? { name: `${e.label} sheet`, uses: s } : e.target === "table" ? { name: `${e.label} table`, uses: s } : { name: e.label, uses: s };
66
+ }
67
+ function G(e) {
68
+ const { uses: s } = U(e), a = e.target === "column" ? `the column ${e.label}` : `the ${e.target === "input" ? "filter" : e.target} "${e.label}"`, l = e.bookmarks + e.remembered === 1 ? "uses" : "use";
69
+ return `This change removes ${a}, which ${s} ${l}; those saved views still open, with a note about what no longer applies.`;
70
+ }
71
+ export {
72
+ U as a,
73
+ G as b,
74
+ D as d
75
+ };