react-semaphor 0.1.541 → 0.1.543

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 (109) hide show
  1. package/dist/analytics-protocol/index.js +75 -75
  2. package/dist/assistant-context/index.js +1 -1
  3. package/dist/brand-studio/index.js +3 -3
  4. package/dist/briefings/index.js +51 -49
  5. package/dist/chunks/apply-dashboard-operations-CG9S7MGt.js +2260 -0
  6. package/dist/chunks/{assistant-chat-D1fDZD6O.js → assistant-chat-BFMRUYoB.js} +12 -12
  7. package/dist/chunks/bookmark-state-CXw7lZ50.js +118 -0
  8. package/dist/chunks/{calendar-day-equality-Bpl15IBo.js → calendar-day-equality-BmJAWduY.js} +180 -207
  9. package/dist/chunks/comparison-window-caption-Bv18samq.js +1618 -0
  10. package/dist/chunks/custom-visual-inputs-DUtpYZOk.js +323 -0
  11. package/dist/chunks/{dashboard-B6IrON_Q.js → dashboard-B9mKTJoy.js} +1 -1
  12. package/dist/chunks/{dashboard-briefing-launcher-DwjFpewq.js → dashboard-briefing-launcher-Bdmry_oG.js} +18 -18
  13. package/dist/chunks/{dashboard-controls-C_BI28ME.js → dashboard-controls-UGpjOM2k.js} +69 -70
  14. package/dist/chunks/{dashboard-filter-value-compatibility-D95O4nd7.js → dashboard-filter-value-compatibility-CwQ_iSNb.js} +2 -2
  15. package/dist/chunks/{dashboard-json-DDY15Trn.js → dashboard-json-DG8dz0eX.js} +4 -4
  16. package/dist/chunks/{document-dashboard-inputs-DP_Op5mu.js → document-dashboard-inputs-OwqCbrVp.js} +2382 -4975
  17. package/dist/chunks/document-sheet-utils-BTb3VZxV.js +3619 -0
  18. package/dist/chunks/{edit-dashboard-visual-CH2dzWW-.js → edit-dashboard-visual-CDpA4y5e.js} +728 -728
  19. package/dist/chunks/{filter-value-text-BhWugPWE.js → filter-value-text-CYsVYPuD.js} +18 -19
  20. package/dist/chunks/{index-DaQlghLY.js → index-l5LclZvs.js} +824 -1351
  21. package/dist/chunks/{matrix-analytical-definition-bcprSe4u.js → matrix-analytical-definition-C7Gb0e12.js} +1 -1
  22. package/dist/chunks/{matrix-card-CJn1hB5V.js → matrix-card-DjwWcCo8.js} +2 -2
  23. package/dist/chunks/{matrix-formatter-DQ8avoIQ.js → matrix-formatter-BnsTX90d.js} +430 -417
  24. package/dist/chunks/{matrix-member-presentation-BNPSDKBG.js → matrix-member-presentation-CQGdVks6.js} +1 -1
  25. package/dist/chunks/{matrix-operation-contract-B8PBF1Gd.js → matrix-operation-contract-8OIO4gob.js} +65 -65
  26. package/dist/chunks/metric-comparison-DEwi9uc2.js +498 -0
  27. package/dist/chunks/numeric-presentation-F_-H6VAw.js +5227 -0
  28. package/dist/chunks/{pivot-header-presentation-MkcKnjn3.js → pivot-header-presentation-DHcx1XGQ.js} +1 -1
  29. package/dist/chunks/{pivot-result-identity-D6hhcRXi.js → pivot-result-identity-DJhXXcns.js} +1 -1
  30. package/dist/chunks/pivot-result-lifecycle-DupbRk-R.js +1155 -0
  31. package/dist/chunks/raw-temporal-presentation-D-azM_98.js +585 -0
  32. package/dist/chunks/{report-preferences-dialog-DpNkFfQO.js → report-preferences-dialog-CPwRwEJx.js} +75 -75
  33. package/dist/chunks/{report-runtime-context-B984Nq1E.js → report-runtime-context-Dq8XyODK.js} +1 -1
  34. package/dist/chunks/{saved-dashboard-context-CJ2WpoMF.js → saved-dashboard-context-BKvMfRfC.js} +233 -206
  35. package/dist/chunks/{selection-reducer-vKIb_jS6.js → selection-reducer-Dj_8xD69.js} +1 -1
  36. package/dist/chunks/{semaphor-ready-indicator-KT598QJq.js → semaphor-ready-indicator-CN2AHm2x.js} +37489 -39476
  37. package/dist/chunks/{shelf-drop-preview-context-BxV3Fl8h.js → shelf-drop-preview-context-BGl_rxcW.js} +6 -6
  38. package/dist/chunks/sort-target-MT1WK1vX.js +29 -0
  39. package/dist/chunks/{source-entity-resolution-CVA1a85c.js → source-entity-resolution-BYn9giz3.js} +1 -1
  40. package/dist/chunks/{switch-DWEWiv1J.js → switch-C3jLxlG0.js} +2 -2
  41. package/dist/chunks/table-export-sheet-BDRXLLdq.js +949 -0
  42. package/dist/chunks/table-settings-CLZocegs.js +501 -0
  43. package/dist/chunks/temporal-bucket-D7NBrrtL.js +2071 -0
  44. package/dist/chunks/{token-types-bxUxXDX2.js → token-types-DBbZVQsm.js} +1 -1
  45. package/dist/chunks/{use-create-flow-overlay-state-DdD12SMY.js → use-create-flow-overlay-state-BnclfB2k.js} +151 -151
  46. package/dist/chunks/{validators-Ej1DdCXa.js → validators-DMHTpf7a.js} +73 -73
  47. package/dist/dashboard/index.js +2 -2
  48. package/dist/dashboard-authoring/index.js +462 -457
  49. package/dist/data-app-sdk/index.js +5 -5
  50. package/dist/data-app-sdk-adapters/index.js +2 -2
  51. package/dist/data-app-sdk-validation/index.js +9 -9
  52. package/dist/format-utils/index.js +346 -241
  53. package/dist/index.js +174 -175
  54. package/dist/report-runtime-context/index.js +1 -1
  55. package/dist/surfboard/index.js +2 -2
  56. package/dist/types/briefings/attachment-outcomes.d.ts +1 -1
  57. package/dist/types/briefings/attachments.d.ts +17 -1
  58. package/dist/types/briefings/index.d.ts +5 -3
  59. package/dist/types/index.js +48 -48
  60. package/dist/types/lib/api/exports-api.d.ts +11 -65
  61. package/dist/types/lib/dashboard-inputs/control-contract-overrides.d.ts +17 -0
  62. package/dist/types/lib/dashboard-viewer/export-table-view.d.ts +2 -0
  63. package/dist/types/lib/hooks/use-dashboard.d.ts +3 -6
  64. package/dist/types/lib/matrix-table/matrix-delivery-policy.d.ts +8 -2
  65. package/dist/types/lib/matrix-table/matrix-delivery.d.ts +8 -6
  66. package/dist/types/lib/query-context/build-dashboard-card-query-contract.d.ts +50 -0
  67. package/dist/types/lib/types/explorer-types.d.ts +6 -0
  68. package/dist/types/shared/analytics-protocol/matrix-definition-contract.d.ts +3 -3
  69. package/dist/types/shared/assistant-context/index.d.ts +1 -1
  70. package/dist/types/shared/assistant-context/saved-dashboard-context.d.ts +23 -6
  71. package/dist/types/shared/dashboard-authoring/card-export-request.d.ts +173 -0
  72. package/dist/types/shared/dashboard-authoring/index.d.ts +1 -0
  73. package/dist/types/shared/dashboard-authoring/matrix-delivery.d.ts +4 -3
  74. package/dist/types/shared/format-utils/exporters/export-cells.d.ts +90 -0
  75. package/dist/types/shared/format-utils/exporters/export-file-format.d.ts +44 -0
  76. package/dist/types/shared/format-utils/exporters/index.d.ts +6 -0
  77. package/dist/types/shared/format-utils/exporters/xlsx-file.d.ts +90 -0
  78. package/dist/types/shared/format-utils/formatters/date-formatter.d.ts +8 -12
  79. package/dist/types/shared/format-utils/formatters/index.d.ts +1 -1
  80. package/dist/types/shared/format-utils/formatters/matrix-formatter.d.ts +2 -0
  81. package/dist/types/shared/format-utils/index.d.ts +2 -0
  82. package/dist/types/shared/format-utils/matrix-continuation.d.ts +55 -9
  83. package/dist/types/shared/format-utils/matrix-export-presentation.d.ts +21 -1
  84. package/dist/types/shared/format-utils/matrix-export-xlsx.d.ts +27 -0
  85. package/dist/types/shared/format-utils/presentation-execution.d.ts +27 -2
  86. package/dist/types/shared/format-utils/raw-temporal.d.ts +8 -0
  87. package/dist/types/shared/format-utils/table-export/index.d.ts +8 -0
  88. package/dist/types/shared/format-utils/table-export/prepare-table-export.d.ts +50 -0
  89. package/dist/types/shared/format-utils/table-export/table-export-formatting.d.ts +47 -0
  90. package/dist/types/shared/format-utils/table-export/table-export-raw-temporal.d.ts +40 -0
  91. package/dist/types/shared/format-utils/table-export/table-export-result.d.ts +31 -0
  92. package/dist/types/shared/format-utils/table-export/table-export-sheet.d.ts +38 -0
  93. package/dist/types/shared/format-utils/temporal-bucket.d.ts +9 -0
  94. package/package.json +2 -1
  95. package/dist/chunks/aggregate-table-row-presentation-B_vQjYR3.js +0 -996
  96. package/dist/chunks/apply-dashboard-operations-C-iahGka.js +0 -402
  97. package/dist/chunks/bookmark-state-k7y5SNGf.js +0 -331
  98. package/dist/chunks/calculated-field-identity-DcBS2NPP.js +0 -2161
  99. package/dist/chunks/canonical-result-keys-CEQefvdO.js +0 -33
  100. package/dist/chunks/common-types-CUf03Htv.js +0 -288
  101. package/dist/chunks/csv-utils-GUfKyT1J.js +0 -56
  102. package/dist/chunks/custom-visual-inputs-BrUOIwln.js +0 -3288
  103. package/dist/chunks/document-sheet-utils-C1eEldxs.js +0 -1076
  104. package/dist/chunks/matrix-definition-DQDI2okF.js +0 -206
  105. package/dist/chunks/metric-comparison-CojWeLqx.js +0 -392
  106. package/dist/chunks/pivot-result-lifecycle-8qCDmpKc.js +0 -804
  107. package/dist/chunks/raw-temporal-D61lr48Y.js +0 -1464
  108. package/dist/chunks/temporal-bucket-D8JF7zKz.js +0 -575
  109. package/dist/chunks/temporal-bucket-contract-DaOajRC7.js +0 -108
@@ -0,0 +1,323 @@
1
+ let T;
2
+ const E = new Uint8Array(16);
3
+ function F() {
4
+ if (!T && (T = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !T))
5
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
+ return T(E);
7
+ }
8
+ const a = [];
9
+ for (let e = 0; e < 256; ++e)
10
+ a.push((e + 256).toString(16).slice(1));
11
+ function A(e, t = 0) {
12
+ return a[e[t + 0]] + a[e[t + 1]] + a[e[t + 2]] + a[e[t + 3]] + "-" + a[e[t + 4]] + a[e[t + 5]] + "-" + a[e[t + 6]] + a[e[t + 7]] + "-" + a[e[t + 8]] + a[e[t + 9]] + "-" + a[e[t + 10]] + a[e[t + 11]] + a[e[t + 12]] + a[e[t + 13]] + a[e[t + 14]] + a[e[t + 15]];
13
+ }
14
+ const M = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), N = {
15
+ randomUUID: M
16
+ };
17
+ function R(e, t, r) {
18
+ if (N.randomUUID && !e)
19
+ return N.randomUUID();
20
+ e = e || {};
21
+ const n = e.random || (e.rng || F)();
22
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, A(n);
23
+ }
24
+ function S(e) {
25
+ if (!(e != null && e.expectedType)) return "table";
26
+ const t = Array.isArray(e.expectedType) ? e.expectedType[0] : e.expectedType;
27
+ return w(t) ? t : "table";
28
+ }
29
+ const v = [
30
+ "bar",
31
+ "horizontalBar",
32
+ "line",
33
+ "area",
34
+ "stackedArea",
35
+ "combo",
36
+ "pie",
37
+ "doughnut",
38
+ "radar",
39
+ "polarArea",
40
+ "bubble",
41
+ "scatter",
42
+ "stackedBar",
43
+ "stackedLine",
44
+ "table",
45
+ "pivotTable",
46
+ "aggregateTable",
47
+ "detailTable",
48
+ "kpi",
49
+ "pyramid",
50
+ "tornado",
51
+ "range",
52
+ "text",
53
+ "map",
54
+ "funnel",
55
+ "bullet",
56
+ "heatmap",
57
+ "treemap",
58
+ "custom"
59
+ ];
60
+ function w(e) {
61
+ return v.includes(e);
62
+ }
63
+ function x(e) {
64
+ const t = e.position;
65
+ if (typeof t == "number") return t;
66
+ if (typeof t == "string") {
67
+ const r = t.match(/\d+/);
68
+ if (r) {
69
+ const n = Number(r[0]);
70
+ if (!Number.isNaN(n)) return n;
71
+ }
72
+ }
73
+ return Number.POSITIVE_INFINITY;
74
+ }
75
+ function g(e) {
76
+ if (typeof e == "number")
77
+ return { kind: "number", start: e, end: e };
78
+ if (typeof e == "string") {
79
+ const t = e.match(/^(\d+)$/);
80
+ if (t) {
81
+ const s = Number(t[1]);
82
+ return { kind: "number", start: s, end: s };
83
+ }
84
+ const r = e.match(/^(\d+)-(\d+)$/);
85
+ if (r) {
86
+ const s = Number(r[1]), d = Number(r[2]);
87
+ return { kind: "range", start: s, end: d };
88
+ }
89
+ const n = e.match(/^(\d+)\+$/);
90
+ if (n)
91
+ return { kind: "dynamic", start: Number(n[1]), end: Number.POSITIVE_INFINITY };
92
+ }
93
+ return null;
94
+ }
95
+ function V(e) {
96
+ return !e || e.length === 0 ? void 0 : [...e].sort(
97
+ (r, n) => x(r) - x(n)
98
+ )[0];
99
+ }
100
+ function U(e, t) {
101
+ if (!e || e.length === 0) return;
102
+ const r = [], n = [], s = [];
103
+ e.forEach((c) => {
104
+ const u = g(c.position);
105
+ u && (u.kind === "number" ? r.push(c) : u.kind === "range" ? n.push(c) : u.kind === "dynamic" && s.push(c));
106
+ });
107
+ const d = r.find((c) => {
108
+ const u = g(c.position);
109
+ return (u == null ? void 0 : u.kind) === "number" && u.start === t;
110
+ });
111
+ if (d) return d;
112
+ const I = n.sort(
113
+ (c, u) => x(c) - x(u)
114
+ ).find((c) => {
115
+ const u = g(c.position);
116
+ return (u == null ? void 0 : u.kind) === "range" && t >= u.start && t <= u.end;
117
+ });
118
+ if (I) return I;
119
+ const l = s.map((c) => ({
120
+ slot: c,
121
+ parsed: g(c.position)
122
+ })).filter((c) => {
123
+ var u;
124
+ return ((u = c.parsed) == null ? void 0 : u.kind) === "dynamic";
125
+ }).sort(
126
+ (c, u) => {
127
+ var o, f;
128
+ return (((o = c.parsed) == null ? void 0 : o.start) ?? 0) - (((f = u.parsed) == null ? void 0 : f.start) ?? 0);
129
+ }
130
+ ).filter((c) => {
131
+ var u;
132
+ return t >= (((u = c.parsed) == null ? void 0 : u.start) ?? 0);
133
+ }).sort(
134
+ (c, u) => {
135
+ var o, f;
136
+ return (((o = u.parsed) == null ? void 0 : o.start) ?? 0) - (((f = c.parsed) == null ? void 0 : f.start) ?? 0);
137
+ }
138
+ )[0];
139
+ return l == null ? void 0 : l.slot;
140
+ }
141
+ function O(e, t) {
142
+ const r = U(e, t);
143
+ if (r)
144
+ return S(r);
145
+ }
146
+ function $(e, t) {
147
+ var n;
148
+ const r = (n = e == null ? void 0 : e.customCardPreferences) == null ? void 0 : n.slotIndex;
149
+ return typeof r == "number" ? r : t;
150
+ }
151
+ function D(e, t) {
152
+ var r;
153
+ if (!((r = e == null ? void 0 : e.customCardPreferences) != null && r.url))
154
+ return !1;
155
+ if (e.type === "custom" || e.customCardPreferences.visualType === "multiple" || e.customCardPreferences.dataInputCardIds || (e.customCardPreferences.minInputs || 0) > 1 || (e.customCardPreferences.maxInputs || 0) > 1)
156
+ return !0;
157
+ if (t && t.length > 1) {
158
+ const n = t.filter(
159
+ (s) => {
160
+ var d;
161
+ return typeof ((d = s.customCardPreferences) == null ? void 0 : d.slotIndex) == "number";
162
+ }
163
+ );
164
+ if (n.length > 1 && n.some((s) => s.id !== e.id))
165
+ return !0;
166
+ }
167
+ return !1;
168
+ }
169
+ function j(e) {
170
+ const t = [];
171
+ let r = -1;
172
+ e.forEach((n, s) => {
173
+ const d = $(n, s);
174
+ d > r && (r = d), t[d] = n ?? null;
175
+ });
176
+ for (let n = 0; n <= r; n += 1)
177
+ n in t || (t[n] = null);
178
+ return t;
179
+ }
180
+ function Y(e) {
181
+ return e.map((t, r) => !t.customCardPreferences || t.customCardPreferences.slotIndex === r ? t : {
182
+ ...t,
183
+ customCardPreferences: {
184
+ ...t.customCardPreferences,
185
+ slotIndex: r
186
+ }
187
+ });
188
+ }
189
+ function _(e) {
190
+ const t = V(e);
191
+ if (t)
192
+ return S(t);
193
+ }
194
+ function q(e, t, r) {
195
+ if (!e) return;
196
+ const n = O(r, t);
197
+ return e.type === "custom" && n ? n : e.type;
198
+ }
199
+ function z(e, t, r) {
200
+ var P;
201
+ const n = {
202
+ dataSource: r.dataSource,
203
+ connectionId: r.connectionId,
204
+ lastSelectedDatabase: r.lastSelectedDatabase,
205
+ lastSelectedSchema: r.lastSelectedSchema,
206
+ lastSelectedTable: r.lastSelectedTable,
207
+ lastSelectedDatamodelId: r.lastSelectedDatamodelId,
208
+ datamodelId: r.datamodelId
209
+ }, s = {
210
+ type: "component",
211
+ visualType: "multiple",
212
+ url: t.url,
213
+ componentName: t.name,
214
+ icon: t.icon,
215
+ pluginChartType: t.chartType,
216
+ minInputs: t.minInputs,
217
+ maxInputs: t.maxInputs
218
+ }, d = t.minInputs || 1, I = e.map((i) => ({ slot: i, parsed: g(i.position) })).filter((i) => i.parsed !== null).reduce((i, p) => {
219
+ const h = p.parsed.end;
220
+ return Number.isFinite(h) ? Math.max(i, h) : i;
221
+ }, -1), b = Math.max(d, I + 1), l = V(e), c = l ? x(l) : 0;
222
+ let u = !1;
223
+ const o = [];
224
+ for (let i = 0; i < b; i += 1) {
225
+ const p = U(e, i), h = S(p), m = !u && i === c, k = i, C = {
226
+ ...n,
227
+ id: R(),
228
+ title: (m ? l == null ? void 0 : l.label : p == null ? void 0 : p.label) || `Tab ${i + 1}`,
229
+ tabTitle: (m ? l == null ? void 0 : l.label : p == null ? void 0 : p.label) || `Tab ${i + 1}`,
230
+ description: (m ? l == null ? void 0 : l.description : p == null ? void 0 : p.description) || "",
231
+ type: h,
232
+ sql: "",
233
+ preferences: {
234
+ onClickFilter: [{ columnIndex: 0, expression: "" }]
235
+ },
236
+ ...m && {
237
+ customCardPreferences: {
238
+ ...s,
239
+ slotIndex: k
240
+ }
241
+ },
242
+ ...!m && {
243
+ customCardPreferences: {
244
+ slotIndex: k
245
+ }
246
+ }
247
+ };
248
+ m && (u = !0), o.push(C);
249
+ }
250
+ if (!u && o.length > 0) {
251
+ const i = ((P = o[0].customCardPreferences) == null ? void 0 : P.slotIndex) ?? 0;
252
+ o[0] = {
253
+ ...o[0],
254
+ type: o[0].type,
255
+ customCardPreferences: {
256
+ ...s,
257
+ slotIndex: i
258
+ }
259
+ };
260
+ }
261
+ const f = o.findIndex(
262
+ (i) => {
263
+ var p;
264
+ return !!((p = i.customCardPreferences) != null && p.url);
265
+ }
266
+ );
267
+ if (f > 0) {
268
+ const [i] = o.splice(f, 1);
269
+ o.unshift(i);
270
+ }
271
+ return o;
272
+ }
273
+ function B({
274
+ frame: e,
275
+ configCard: t,
276
+ isMultiInputVisual: r
277
+ }) {
278
+ var s;
279
+ if (!r || !t)
280
+ return e.cards;
281
+ const n = (s = t.customCardPreferences) == null ? void 0 : s.dataInputCardIds;
282
+ return n ? Object.keys(n).sort((d, y) => Number(d) - Number(y)).map((d) => {
283
+ var I;
284
+ const y = (I = n[d]) == null ? void 0 : I.cardId;
285
+ return e.cards.find((b) => b.id === y) || null;
286
+ }) : e.cards;
287
+ }
288
+ function H(e, t) {
289
+ return t && D(t, e.cards) ? t : e.cards.find((r) => D(r, e.cards)) || null;
290
+ }
291
+ function L(e, t) {
292
+ var s, d;
293
+ if (!e) return null;
294
+ const r = t == null ? void 0 : t.visualType;
295
+ if (r) return r;
296
+ if (t != null && t.slots && t.slots.length > 0 || ((t == null ? void 0 : t.minInputs) || 0) > 1 || ((t == null ? void 0 : t.maxInputs) || 0) > 1 || ((t == null ? void 0 : t.dataInputs) || []).length > 1)
297
+ return "multiple";
298
+ const n = (s = e.customCardPreferences) == null ? void 0 : s.visualType;
299
+ return n || ((d = e.customCardPreferences) != null && d.dataInputCardIds ? "multiple" : null);
300
+ }
301
+ function G(e) {
302
+ return e.visualType === "multiple" || e.slots && e.slots.length > 0 || (e.minInputs || 0) > 1 || (e.maxInputs || 0) > 1 || (e.dataInputs || []).length > 1 ? "multiple" : "single";
303
+ }
304
+ function J(e) {
305
+ return Array.isArray(e) ? { records: e } : e;
306
+ }
307
+ export {
308
+ $ as a,
309
+ j as b,
310
+ q as c,
311
+ G as d,
312
+ z as e,
313
+ H as f,
314
+ B as g,
315
+ U as h,
316
+ D as i,
317
+ Y as j,
318
+ S as k,
319
+ _ as l,
320
+ J as n,
321
+ L as r,
322
+ R as v
323
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as n } from "react/jsx-runtime";
2
- import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-KT598QJq.js";
2
+ import { E as o, F as d, S as i, B as s, a as c, U as l, D as t, C as h, b as f } from "./semaphor-ready-indicator-CN2AHm2x.js";
3
3
  function p(e) {
4
4
  if (typeof window > "u")
5
5
  return null;
@@ -1,31 +1,31 @@
1
1
  import { jsx as t, jsxs as i, Fragment as $ } from "react/jsx-runtime";
2
2
  import * as ue from "react";
3
3
  import _t, { useState as F, useEffect as J, useCallback as j, useMemo as oe, useLayoutEffect as Pt, useRef as ge, useContext as pr } from "react";
4
- import { u as V, v as Tt, s as fr } from "./custom-visual-inputs-BrUOIwln.js";
5
- import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Z as br, P as qe, a as He, b as Ge, S as $t } from "./switch-DWEWiv1J.js";
6
- import { cr as ht, bu as Ue, bv as Ve, bx as Re, cs as vr, ct as xr, aX as Be, aV as Je, cu as yr, cv as et, cw as mt, _ as tt, X as pe, u as T, cx as Cr, cy as wr, cz as Nr, Z as ee, b6 as Sr, cA as Dr, cB as Er, aR as Se, cg as zt, aI as Qe, l as kr, h as Ar, cC as Ir, cj as pt, ck as ft, cl as gt, cm as bt, cn as vt, co as xt, cp as yt, cq as jt, aG as Ct, cD as Fr, cE as Pr, c8 as ot, c5 as rt, c6 as at, cF as Wt, c7 as nt, bR as X, ch as Tr, cf as Ke, cG as Lr, bP as Ur, bw as wt, by as Nt, cH as Vr, bt as Rr, cI as qt, cJ as St, cK as Br, bV as Mr, f as _r, cL as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cM as G, K as Gt, aw as $r, cN as zr, aD as jr, R as Qt, cO as Wr, az as Lt, N as qr, cP as Hr, cQ as Gr, cR as Qr, cS as Kr, cT as Kt, cU as Xr, cV as Zr, cW as Yr, cX as Xt, cY as Jr, cZ as ze, c_ as ea, c$ as ta, d0 as ra, as as aa, at as na, a8 as sa, a7 as oa, a6 as ia, a5 as la, a2 as ca, a0 as da, d1 as ua, d2 as ha, d3 as ma, d4 as pa, d5 as fa, aq as ga, d6 as ba, d7 as va, ae as xa, d8 as ya, d9 as Ca, da as wa } from "./semaphor-ready-indicator-KT598QJq.js";
4
+ import { ae as V, ap as fr } from "./numeric-presentation-F_-H6VAw.js";
5
+ import { B as U, l as Le, q as dt, L as ie, j as Ot, c as ut, i as gr, Z as br, P as qe, a as He, b as Ge, S as $t } from "./switch-C3jLxlG0.js";
6
+ import { cr as ht, bu as Ue, bv as Ve, bx as Re, cs as vr, ct as xr, aX as Be, aV as Je, cu as yr, cv as et, cw as mt, _ as tt, X as pe, u as T, cx as Cr, cy as wr, cz as Nr, Z as ee, b6 as Sr, cA as Dr, cB as Er, aR as Se, cg as zt, aI as Qe, l as kr, h as Ar, cC as Ir, cj as pt, ck as ft, cl as gt, cm as bt, cn as vt, co as xt, cp as yt, cq as jt, aG as Ct, cD as Fr, cE as Pr, c8 as ot, c5 as rt, c6 as at, cF as Wt, c7 as nt, bR as X, ch as Tr, cf as Ke, cG as Lr, bP as Ur, bw as wt, by as Nt, cH as Vr, bt as Rr, cI as qt, cJ as St, cK as Br, bV as Mr, f as _r, cL as Or, J as xe, aB as Te, ax as Ht, ay as Xe, cM as G, K as Gt, aw as $r, cN as zr, aD as jr, R as Qt, cO as Wr, az as Tt, N as qr, cP as Hr, cQ as Gr, cR as Qr, cS as Kr, cT as Kt, cU as Xr, cV as Zr, cW as Yr, cX as Xt, cY as Jr, cZ as ze, c_ as ea, c$ as ta, d0 as ra, as as aa, at as na, a8 as sa, a7 as oa, a6 as ia, a5 as la, a2 as ca, a0 as da, d1 as ua, d2 as ha, d3 as ma, d4 as pa, d5 as fa, aq as ga, d6 as ba, d7 as va, ae as xa, d8 as ya, d9 as Ca, da as wa } from "./semaphor-ready-indicator-CN2AHm2x.js";
7
7
  import { L as Dt } from "./layout-grid-Bgzth8vd.js";
8
8
  import { c as De, X as Me, C as Zt } from "./x-4f5U2XwU.js";
9
9
  import "./index-CuHybtft.js";
10
- import { t as Na } from "./validators-Ej1DdCXa.js";
11
- import "./matrix-operation-contract-B8PBF1Gd.js";
10
+ import { t as Na } from "./validators-DMHTpf7a.js";
11
+ import "./matrix-operation-contract-8OIO4gob.js";
12
12
  import "./analytics-base-schemas-BFAoRlkU.js";
13
13
  import "zod";
14
14
  import "../value-format-preferences/index.js";
15
15
  import { c as Z } from "./class-utils-Df1OVOT1.js";
16
- import { S as Sa } from "./selection-reducer-vKIb_jS6.js";
16
+ import { S as Sa } from "./selection-reducer-Dj_8xD69.js";
17
17
  import { s as je } from "./normalize-dashboard-for-dirty-check-Bk3VYv_q.js";
18
18
  import { f as Da } from "./editor-draft-sync-BN5qYHPF.js";
19
- import { ae as Ze, af as Ea, k as ka, ag as Aa, ah as Ia, ai as Fa, aj as Pa, ak as Ta } from "./document-dashboard-inputs-DP_Op5mu.js";
19
+ import { ad as Ze, ae as Ea, m as ka, af as Aa, ag as Ia, ah as Fa, ai as Pa, aj as Ta } from "./document-dashboard-inputs-OwqCbrVp.js";
20
20
  import "react-dom";
21
- import "./pivot-result-lifecycle-8qCDmpKc.js";
22
- import "./calculated-field-identity-DcBS2NPP.js";
23
- import { o as La } from "./bookmark-state-k7y5SNGf.js";
21
+ import "./pivot-result-lifecycle-DupbRk-R.js";
22
+ import { F as La } from "./table-settings-CLZocegs.js";
24
23
  import { S as Yt } from "./save-CfJpQQ68.js";
25
- import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-DdD12SMY.js";
26
- import { o as Ut } from "./matrix-formatter-DQ8avoIQ.js";
27
- import { t as _a } from "./document-sheet-utils-C1eEldxs.js";
28
- import { g as me, d as Oa, a as $a } from "./index-DaQlghLY.js";
24
+ import { V as Ua, L as Va, a as Ra, u as Jt, C as er, F as Ba, b as Ma } from "./use-create-flow-overlay-state-BnclfB2k.js";
25
+ import { v as Lt } from "./custom-visual-inputs-DUtpYZOk.js";
26
+ import { w as Ut } from "./matrix-formatter-BnsTX90d.js";
27
+ import { x as _a } from "./document-sheet-utils-BTb3VZxV.js";
28
+ import { g as me, d as Oa, a as $a } from "./index-l5LclZvs.js";
29
29
  /**
30
30
  * @license lucide-react v0.453.0 - ISC
31
31
  *
@@ -1572,7 +1572,7 @@ function pn() {
1572
1572
  try {
1573
1573
  const x = {
1574
1574
  ...n,
1575
- id: Tt(),
1575
+ id: Lt(),
1576
1576
  visualId: S.id
1577
1577
  // Link to the newly created library visual
1578
1578
  };
@@ -1635,7 +1635,7 @@ function pn() {
1635
1635
  const W = {
1636
1636
  ...I,
1637
1637
  // Card title already synced
1638
- id: Tt(),
1638
+ id: Lt(),
1639
1639
  visualId: void 0
1640
1640
  // Explicitly no visualId for local visuals
1641
1641
  };
@@ -2393,7 +2393,7 @@ function Bn() {
2393
2393
  const E = p.filter(
2394
2394
  (y) => y.status === "completed" || y.status === "failed" || y.status === "cancelled"
2395
2395
  ), N = await Promise.allSettled(
2396
- E.map(async (y) => (await Lt(v, D, y.id), y.id))
2396
+ E.map(async (y) => (await Tt(v, D, y.id), y.id))
2397
2397
  );
2398
2398
  for (const y of N)
2399
2399
  y.status === "fulfilled" ? n(y.value) : console.error("Failed to delete export:", y.reason);
@@ -2411,7 +2411,7 @@ function Bn() {
2411
2411
  const D = r == null ? void 0 : r.apiServiceUrl, E = e == null ? void 0 : e.accessToken;
2412
2412
  if (D && E)
2413
2413
  try {
2414
- await Lt(D, E, v), n(v);
2414
+ await Tt(D, E, v), n(v);
2415
2415
  return;
2416
2416
  } catch (N) {
2417
2417
  console.error(`Failed to cancel export ${v}:`, N);