react-semaphor 0.1.459 → 0.1.461

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 (114) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +32 -32
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +4 -4
  5. package/dist/briefings/index.cjs +1 -1
  6. package/dist/briefings/index.js +4 -4
  7. package/dist/chunks/{analyze-result-contract-BbRJ-C06.js → analyze-result-contract-DROq4vgY.js} +1 -1
  8. package/dist/chunks/{analyze-result-contract-LPDNldic.cjs → analyze-result-contract-DSGoFuXQ.cjs} +1 -1
  9. package/dist/chunks/canonical-result-keys-CEQefvdO.js +33 -0
  10. package/dist/chunks/canonical-result-keys-Cb96edol.cjs +1 -0
  11. package/dist/chunks/{common-types-H51FLKB7.js → common-types-BHVKgxRR.js} +1 -1
  12. package/dist/chunks/{common-types-C57kJ59w.cjs → common-types-BcV9PD9D.cjs} +1 -1
  13. package/dist/chunks/{dashboard-briefing-launcher-ClCj98sq.js → dashboard-briefing-launcher-3owMxX5K.js} +60 -61
  14. package/dist/chunks/{dashboard-briefing-launcher-DHtEouuH.cjs → dashboard-briefing-launcher-xuGrw8H3.cjs} +2 -2
  15. package/dist/chunks/{dashboard-controls-B8gsKlxc.js → dashboard-controls-B4GvjGr1.js} +44 -45
  16. package/dist/chunks/{dashboard-controls-VRShl9J0.cjs → dashboard-controls-Bpm_xOXQ.cjs} +1 -1
  17. package/dist/chunks/dashboard-filter-value-compatibility-KXIyvbhc.js +677 -0
  18. package/dist/chunks/dashboard-filter-value-compatibility-UapptYnn.cjs +1 -0
  19. package/dist/chunks/dashboard-input-contract-BkRFQ7Tq.cjs +1 -0
  20. package/dist/chunks/{dashboard-date-comparison-definition-DC3ekV2S.js → dashboard-input-contract-D5dxTWJ5.js} +41 -25
  21. package/dist/chunks/{dashboard-json-i_Auue_K.js → dashboard-json-DzyxoBp-.js} +13 -14
  22. package/dist/chunks/dashboard-json-yLM01xK4.cjs +1 -0
  23. package/dist/chunks/{edit-dashboard-visual-DWWyT55u.cjs → edit-dashboard-visual-1T278Nr_.cjs} +28 -28
  24. package/dist/chunks/{edit-dashboard-visual-B3JF0fe4.js → edit-dashboard-visual-nwSasO_j.js} +880 -894
  25. package/dist/chunks/{editor-action-buttons-BTlCsP63.cjs → editor-action-buttons-CX1Pken3.cjs} +2 -2
  26. package/dist/chunks/{editor-action-buttons-C9x3nGnb.js → editor-action-buttons-Dqw0asfA.js} +28 -28
  27. package/dist/chunks/index-B1qplNxl.cjs +1392 -0
  28. package/dist/chunks/{index-BS2-ZZGf.js → index-DazD5k0F.js} +45362 -42931
  29. package/dist/chunks/{index-BIFLI8ul.js → index-De_7nrwb.js} +10 -10
  30. package/dist/chunks/index-DjjKJPDy.cjs +4 -0
  31. package/dist/chunks/{matrix-result-contract-CofATICL.js → matrix-result-contract-BTpPuHOc.js} +88 -104
  32. package/dist/chunks/matrix-result-contract-ZRNfeIbI.cjs +1 -0
  33. package/dist/chunks/{pivot-header-presentation-B9nXXKlW.cjs → pivot-header-presentation-BijPbP33.cjs} +1 -1
  34. package/dist/chunks/{pivot-header-presentation-D-0jvUwn.js → pivot-header-presentation-DW0gKG8g.js} +2 -2
  35. package/dist/chunks/{pivot-result-identity-Bb4EixVN.cjs → pivot-result-identity-DxHtiKVj.cjs} +1 -1
  36. package/dist/chunks/{pivot-result-identity-DU1v-5Xk.js → pivot-result-identity-Z9tN2tEV.js} +1 -1
  37. package/dist/chunks/{pivot-result-lifecycle-DTLRuDEW.cjs → pivot-result-lifecycle-BXzIlQVu.cjs} +1 -1
  38. package/dist/chunks/{pivot-result-lifecycle-CHWEGU2o.js → pivot-result-lifecycle-g2U-vzQb.js} +7 -7
  39. package/dist/chunks/{raw-temporal-contract-BtjH_G-d.cjs → raw-temporal-contract-DfAvqNMo.cjs} +1 -1
  40. package/dist/chunks/{raw-temporal-contract-CxncLze5.js → raw-temporal-contract-UtAqoOZO.js} +1 -1
  41. package/dist/chunks/{report-preferences-dialog-BK0yAJnQ.cjs → report-preferences-dialog-DKPyjiCt.cjs} +1 -1
  42. package/dist/chunks/{report-preferences-dialog-BDpkcUtz.js → report-preferences-dialog-Dv3vCCFt.js} +6 -6
  43. package/dist/chunks/{report-runtime-context-DqxS4wbi.cjs → report-runtime-context-C0NfLPfc.cjs} +1 -1
  44. package/dist/chunks/{report-runtime-context-SM6YO61_.js → report-runtime-context-CNncA3VD.js} +11 -11
  45. package/dist/chunks/{saved-temporal-bucket-format-CFfWXRl9.cjs → saved-temporal-bucket-format-3QKveR3v.cjs} +1 -1
  46. package/dist/chunks/{saved-temporal-bucket-format-SGAV0ivR.js → saved-temporal-bucket-format-Dd2eixTH.js} +11 -11
  47. package/dist/chunks/switch-DBZsEV0U.cjs +138 -0
  48. package/dist/chunks/{switch-DQR-Va05.js → switch-kPUJEC1A.js} +6615 -5219
  49. package/dist/chunks/{temporal-bucket-5UYEotyQ.js → temporal-bucket-C85rmFmC.js} +4 -4
  50. package/dist/chunks/temporal-bucket-authoring-1fZuPAVb.js +653 -0
  51. package/dist/chunks/temporal-bucket-authoring-BK1UhYpD.cjs +1 -0
  52. package/dist/chunks/{temporal-bucket-contract-D5d-xEl3.js → temporal-bucket-contract-DXXNZssK.js} +1 -1
  53. package/dist/chunks/{temporal-bucket-contract-D2-93DGr.cjs → temporal-bucket-contract-xFkvboaw.cjs} +1 -1
  54. package/dist/chunks/{temporal-bucket-DHY1y9lq.cjs → temporal-bucket-pMfghsLX.cjs} +1 -1
  55. package/dist/chunks/{token-types-GbxRUozo.js → token-types-BLxc7UwR.js} +1 -1
  56. package/dist/chunks/{token-types-D7CaaI80.cjs → token-types-BYYO109W.cjs} +1 -1
  57. package/dist/chunks/{update-policy-hednMF-0.js → update-policy-CB8XJIoY.js} +1 -1
  58. package/dist/chunks/{update-policy-BmiOd0PB.cjs → update-policy-DMjjGjQY.cjs} +1 -1
  59. package/dist/chunks/{validators-DEmd8Sin.js → validators-DVd8s3qY.js} +416 -350
  60. package/dist/chunks/validators-dJlwubP4.cjs +1 -0
  61. package/dist/dashboard/index.cjs +1 -1
  62. package/dist/dashboard/index.js +2 -2
  63. package/dist/dashboard-authoring/index.cjs +3 -3
  64. package/dist/dashboard-authoring/index.js +328 -311
  65. package/dist/data-app-builder/index.cjs +1 -1
  66. package/dist/data-app-builder/index.js +2 -2
  67. package/dist/data-app-codegen/index.cjs +1 -1
  68. package/dist/data-app-codegen/index.js +2 -2
  69. package/dist/data-app-codegen-node/index.cjs +1 -1
  70. package/dist/data-app-codegen-node/index.js +3 -3
  71. package/dist/data-app-sdk/index.cjs +1 -1
  72. package/dist/data-app-sdk/index.js +55 -55
  73. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  74. package/dist/data-app-sdk-adapters/index.js +61 -56
  75. package/dist/data-app-sdk-validation/index.cjs +1 -1
  76. package/dist/data-app-sdk-validation/index.js +9 -9
  77. package/dist/format-utils/index.cjs +1 -1
  78. package/dist/format-utils/index.js +15 -15
  79. package/dist/index.cjs +1 -1
  80. package/dist/index.js +154 -155
  81. package/dist/report-runtime-context/index.cjs +1 -1
  82. package/dist/report-runtime-context/index.js +2 -2
  83. package/dist/style.css +1 -1
  84. package/dist/surfboard/index.cjs +1 -1
  85. package/dist/surfboard/index.js +3 -3
  86. package/dist/types/analytics-protocol.d.ts +16 -8
  87. package/dist/types/briefings.d.ts +95 -13
  88. package/dist/types/dashboard-assistant.d.ts +11 -6
  89. package/dist/types/dashboard-authoring.d.ts +257 -19
  90. package/dist/types/dashboard.d.ts +109 -14
  91. package/dist/types/data-app-builder.d.ts +11 -6
  92. package/dist/types/data-app-codegen-node.d.ts +16 -8
  93. package/dist/types/data-app-codegen.d.ts +16 -8
  94. package/dist/types/data-app-sdk-adapters.d.ts +17 -11
  95. package/dist/types/data-app-sdk-validation.d.ts +17 -11
  96. package/dist/types/data-app-sdk.d.ts +17 -11
  97. package/dist/types/index.cjs +1 -1
  98. package/dist/types/index.js +4 -4
  99. package/dist/types/main.d.ts +225 -20
  100. package/dist/types/shared.d.ts +95 -13
  101. package/dist/types/surfboard.d.ts +109 -14
  102. package/dist/types/types.d.ts +109 -14
  103. package/package.json +1 -1
  104. package/dist/chunks/canonical-result-keys-BA0HCP4e.cjs +0 -1
  105. package/dist/chunks/canonical-result-keys-D6avdjpA.js +0 -467
  106. package/dist/chunks/dashboard-date-comparison-definition-Ces4alFm.cjs +0 -1
  107. package/dist/chunks/dashboard-json-BhvPMpZA.cjs +0 -1
  108. package/dist/chunks/index-DHF-2AqS.cjs +0 -1392
  109. package/dist/chunks/index-k8tEp0ys.cjs +0 -4
  110. package/dist/chunks/matrix-result-contract-zamd9euI.cjs +0 -1
  111. package/dist/chunks/switch-f3TuZNLr.cjs +0 -138
  112. package/dist/chunks/temporal-bucket-authoring-K1kE6R_z.js +0 -222
  113. package/dist/chunks/temporal-bucket-authoring-o3Emn05L.cjs +0 -1
  114. package/dist/chunks/validators-BDYprKI9.cjs +0 -1
@@ -1,23 +1,22 @@
1
1
  import { jsx as e, jsxs as o, Fragment as T } from "react/jsx-runtime";
2
- import { u as S, B as R, aw as mt, z as sr, O as na, Z as sa, c as be, ax as oa, ay as ia, az as ot, aA as xe, aB as pt, aC as or, L as Ge, aD as ir, aE as da, D as $t, Q as Bt, V as Gt, W as zt, Y as Ht, X as la, i as ca, aF as ua } from "./switch-DQR-Va05.js";
3
- import { by as ma, bz as pa, az as q, aH as dr, bA as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bB as ge, bC as Be, bD as ba, bE as jt, bF as cr, bG as ur, bH as xa, bI as ht, bJ as va, bK as ya, bL as wa, bM as Na, bN as Sa, bO as Da, b8 as ve, bP as ye, aG as C, bQ as Ca, bR as mr, bl as ft, bS as ka, bT as Ea, bU as pr, bV as La, bW as hr, bX as V, bY as Ia, ap as Ma, bZ as Aa, b_ as Pa, b$ as Oa, c0 as _a, n as Ra, u as Fe, t as Ua, o as rt, c1 as Va, c2 as Ta, c3 as Fa, c4 as $a, N as Ba, c5 as Ga, c6 as za, I as qt, c7 as Ha, c8 as ja, c9 as qa, ca as Ka, cb as Wa, cc as Kt, cd as Wt, ce as Qt, cf as Qa, cg as Ja, ch as Ya, ci as Xa, b1 as Jt, cj as Za, ck as en, cl as tn, s as rn, cm as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-BS2-ZZGf.js";
2
+ import { u as S, B as R, ax as mt, z as sr, O as na, Z as sa, c as be, ay as oa, az as ia, aA as ot, aB as xe, aC as pt, aD as or, L as Be, aE as ir, aF as da, D as $t, Q as Gt, V as Bt, W as zt, Y as Ht, X as la, i as ca, aG as ua } from "./switch-kPUJEC1A.js";
3
+ import { bx as ma, by as pa, az as q, aH as dr, bz as ha, aZ as K, aI as lr, aJ as fa, aK as it, aL as dt, aF as ga, bA as ge, bB as Ge, bC as ba, bD as jt, bE as cr, bF as ur, bG as xa, bH as ht, bI as va, bJ as ya, bK as wa, bL as Na, bM as Sa, bN as Da, b8 as ve, bO as ye, aG as C, bP as Ca, bQ as mr, bl as ft, bR as ka, bS as Ea, bT as pr, bU as La, bV as hr, bW as V, bX as Ia, ap as Ma, bY as Aa, bZ as Pa, b_ as Oa, b$ as _a, n as Ra, u as Fe, t as Ua, o as rt, c0 as Va, c1 as Ta, c2 as Fa, c3 as $a, N as Ga, c4 as Ba, c5 as za, I as qt, c6 as Ha, c7 as ja, c8 as qa, c9 as Ka, ca as Wa, cb as Kt, cc as Wt, cd as Qt, ce as Qa, cf as Ja, cg as Ya, ch as Xa, b1 as Jt, ci as Za, cj as en, ck as tn, s as rn, cl as an, aP as nn, aS as sn, aT as on, aU as dn, aV as ln, aW as cn, aX as un, aY as Yt, g as lt } from "./index-DazD5k0F.js";
4
4
  import { c as ee, X as fr, C as mn } from "./x-CXDkqdur.js";
5
- import "./saved-temporal-bucket-format-SGAV0ivR.js";
6
- import "./validators-DEmd8Sin.js";
7
- import "./analyze-result-contract-BbRJ-C06.js";
5
+ import "./saved-temporal-bucket-format-Dd2eixTH.js";
6
+ import "./validators-DVd8s3qY.js";
7
+ import "./analyze-result-contract-DROq4vgY.js";
8
8
  import "../value-format-preferences/index.js";
9
9
  import * as I from "react";
10
10
  import gr, { useState as N, useMemo as Z, useEffect as ze, useRef as Xt, useLayoutEffect as pn, useCallback as hn } from "react";
11
11
  import "./index-DSKR3nKn.js";
12
- import "./temporal-bucket-authoring-K1kE6R_z.js";
13
- import "./canonical-result-keys-D6avdjpA.js";
12
+ import "./temporal-bucket-authoring-1fZuPAVb.js";
14
13
  import "./color-CJvdlFM_.js";
15
14
  import { createPortal as fn } from "react-dom";
16
- import "./index-BIFLI8ul.js";
17
- import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-ClCj98sq.js";
15
+ import "./index-De_7nrwb.js";
16
+ import { c as gn, u as bn, A as xn, a as vn, f as yn, V as wn, N as Nn, g as Sn, U as Dn } from "./dashboard-briefing-launcher-3owMxX5K.js";
18
17
  import { S as Cn, C as kn } from "./search-BHsQIWBV.js";
19
18
  import { d as br } from "./format-types-CFHQoIuk.js";
20
- import { R as En } from "./report-preferences-dialog-BDpkcUtz.js";
19
+ import { R as En } from "./report-preferences-dialog-Dv3vCCFt.js";
21
20
  import { u as Ln } from "./use-debounced-dirty-check-BwAbnX_5.js";
22
21
  import { s as at } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
23
22
  import { S as Zt } from "./save-DgMfP0j8.js";
@@ -272,7 +271,7 @@ function vr(t) {
272
271
  dashboardInputValues: a.dashboardInputValues
273
272
  };
274
273
  }
275
- async function Bn(t, n, a, r, s, l) {
274
+ async function Gn(t, n, a, r, s, l) {
276
275
  if (!l)
277
276
  return null;
278
277
  const p = JSON.stringify(a), h = `${t}/v1/lens`;
@@ -305,7 +304,7 @@ async function ut(t, n, a) {
305
304
  operation: "update"
306
305
  });
307
306
  }
308
- async function Gn(t, n, a) {
307
+ async function Bn(t, n, a) {
309
308
  if (!a)
310
309
  return null;
311
310
  const r = `${t}/v1/lens`;
@@ -324,19 +323,19 @@ function Hn({
324
323
  }, w = S((m) => m.dashboard), D = S((m) => m.filterValues), { authToken: E, tokenProps: $ } = q();
325
324
  async function L() {
326
325
  u(!0);
327
- const m = S.getState(), B = vr({
326
+ const m = S.getState(), G = vr({
328
327
  dashboard: w,
329
328
  dashboardInputValues: m.dashboardInputValues,
330
329
  filterValues: D,
331
330
  controlValues: m.controlValues,
332
331
  inlineFilterValuesMap: m.inlineFilterValuesMap,
333
332
  cardControlValuesMap: m.cardControlValuesMap
334
- }), F = await Bn(
333
+ }), F = await Gn(
335
334
  $.apiServiceUrl,
336
335
  a,
337
336
  w,
338
337
  D,
339
- B,
338
+ G,
340
339
  E == null ? void 0 : E.accessToken
341
340
  );
342
341
  F && (h([...p || [], F]), b(F.id), v(!1)), u(!1);
@@ -387,7 +386,7 @@ function jn({ includeLabel: t = !1 } = {}) {
387
386
  s(u);
388
387
  }
389
388
  async function b(u) {
390
- if (await Gn(p.apiServiceUrl, u, l == null ? void 0 : l.accessToken)) {
389
+ if (await Bn(p.apiServiceUrl, u, l == null ? void 0 : l.accessToken)) {
391
390
  const f = n == null ? void 0 : n.filter((i) => i.id !== u);
392
391
  r(f || []), s("original");
393
392
  }
@@ -418,7 +417,7 @@ function jn({ includeLabel: t = !1 } = {}) {
418
417
  return /* @__PURE__ */ o(T, { children: [
419
418
  t ? /* @__PURE__ */ o(T, { children: [
420
419
  /* @__PURE__ */ e(ge, { className: "px-3", children: "Lenses" }),
421
- /* @__PURE__ */ e(Be, {})
420
+ /* @__PURE__ */ e(Ge, {})
422
421
  ] }) : null,
423
422
  /* @__PURE__ */ o(
424
423
  ba,
@@ -884,7 +883,7 @@ function ps({
884
883
  disabled: v.isPending,
885
884
  className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-rose-600 px-2.5 text-[12px] font-medium text-white hover:bg-rose-700 disabled:opacity-60",
886
885
  children: [
887
- v.isPending ? /* @__PURE__ */ e(Ge, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ e(ft, { className: "h-3 w-3" }),
886
+ v.isPending ? /* @__PURE__ */ e(Be, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ e(ft, { className: "h-3 w-3" }),
888
887
  "Delete group"
889
888
  ]
890
889
  }
@@ -1088,14 +1087,14 @@ function bs({
1088
1087
  }), D = Z(
1089
1088
  () => new Set(i.map((y) => y.userId)),
1090
1089
  [i]
1091
- ), E = cs(), $ = us(), L = ds(), [m, B] = N(!1), [F, G] = N(t.name), [P, k] = N(!1), [te, re] = N(t.description || ""), [W, we] = N(""), [Ne, Se] = N(!1), De = Z(() => {
1090
+ ), E = cs(), $ = us(), L = ds(), [m, G] = N(!1), [F, B] = N(t.name), [P, k] = N(!1), [te, re] = N(t.description || ""), [W, we] = N(""), [Ne, Se] = N(!1), De = Z(() => {
1092
1091
  const y = W.trim().toLowerCase();
1093
1092
  return w.filter((z) => !D.has(z.id)).filter(
1094
1093
  (z) => !y || (z.name || "").toLowerCase().includes(y) || (z.email || "").toLowerCase().includes(y)
1095
1094
  ).slice(0, 50);
1096
1095
  }, [w, D, W]), Ce = async () => {
1097
1096
  const y = F.trim();
1098
- if (B(!1), y.length >= 3 && y !== t.name)
1097
+ if (G(!1), y.length >= 3 && y !== t.name)
1099
1098
  try {
1100
1099
  await L.mutateAsync({
1101
1100
  groupId: t.id,
@@ -1160,10 +1159,10 @@ function bs({
1160
1159
  {
1161
1160
  autoFocus: !0,
1162
1161
  value: F,
1163
- onChange: (y) => G(y.target.value),
1162
+ onChange: (y) => B(y.target.value),
1164
1163
  onBlur: Ce,
1165
1164
  onKeyDown: (y) => {
1166
- y.key === "Enter" && Ce(), y.key === "Escape" && (G(t.name), B(!1));
1165
+ y.key === "Enter" && Ce(), y.key === "Escape" && (B(t.name), G(!1));
1167
1166
  },
1168
1167
  className: "h-6 min-w-0 flex-1 rounded-[3px] border border-border bg-background px-1.5 text-[13px] font-medium text-foreground focus:border-foreground/40 focus:outline-none"
1169
1168
  }
@@ -1172,7 +1171,7 @@ function bs({
1172
1171
  {
1173
1172
  type: "button",
1174
1173
  onClick: () => {
1175
- a && (G(t.name), B(!0));
1174
+ a && (B(t.name), G(!0));
1176
1175
  },
1177
1176
  title: a ? "Click to rename" : t.name,
1178
1177
  disabled: !a,
@@ -1398,7 +1397,7 @@ function xs({
1398
1397
  disabled: !c || u.isPending,
1399
1398
  className: "inline-flex h-7 items-center gap-1.5 rounded-[5px] bg-foreground px-2.5 text-[12px] font-medium text-background hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-60",
1400
1399
  children: u.isPending ? /* @__PURE__ */ o(T, { children: [
1401
- /* @__PURE__ */ e(Ge, { className: "h-3 w-3 animate-spin" }),
1400
+ /* @__PURE__ */ e(Be, { className: "h-3 w-3 animate-spin" }),
1402
1401
  "Creating…"
1403
1402
  ] }) : /* @__PURE__ */ o(T, { children: [
1404
1403
  /* @__PURE__ */ e(K, { className: "h-3 w-3" }),
@@ -1679,7 +1678,7 @@ function nr(t, n) {
1679
1678
  semanticExecutionPayload: lt(n)
1680
1679
  };
1681
1680
  }
1682
- function Ws() {
1681
+ function Ks() {
1683
1682
  var _t, Rt, Ut, Vt, Tt;
1684
1683
  gn(), bn();
1685
1684
  const {
@@ -1695,9 +1694,9 @@ function Ws() {
1695
1694
  isInspectionSurface: u
1696
1695
  } = Pa(), { openBrandStudioPreview: c } = Oa(), { permissions: f } = qn(), i = _a(), { isLoading: x } = Ra(), v = S((d) => d.theme), w = S((d) => d.isDownloadingPdf), D = S(
1697
1696
  (d) => d.dashboardAssistantDraftScopeKey
1698
- ), E = S((d) => d.lenses), $ = S((d) => d.selectedLensId), L = E == null ? void 0 : E.find((d) => d.id === $), m = S((d) => d.dashboard), B = S((d) => d.selectedSheetId), F = (_t = m == null ? void 0 : m.sheets) == null ? void 0 : _t.find(
1699
- (d) => d.id === B
1700
- ), G = da(F), P = G ? (Rt = F == null ? void 0 : F.document) == null ? void 0 : Rt.page : void 0, k = S(
1697
+ ), E = S((d) => d.lenses), $ = S((d) => d.selectedLensId), L = E == null ? void 0 : E.find((d) => d.id === $), m = S((d) => d.dashboard), G = S((d) => d.selectedSheetId), F = (_t = m == null ? void 0 : m.sheets) == null ? void 0 : _t.find(
1698
+ (d) => d.id === G
1699
+ ), B = da(F), P = B ? (Rt = F == null ? void 0 : F.document) == null ? void 0 : Rt.page : void 0, k = S(
1701
1700
  (d) => d.isDashboardEditing
1702
1701
  ), { setDashboardTitle: te } = S((d) => d.actions), [re, W] = N(!1), [we, Ne] = N(!1), [Se, De] = N(!1), [Ce, se] = N(!1), [ke, oe] = N(null), [ae, y] = N(!1), [z, ie] = N(!1), [Ee, Q] = N(!1), [J, Y] = N(null), [xt, Le] = N([]), [vt, Ie] = N(!1), [_r, yt] = N(!1), wt = S((d) => d.filterValues), O = S((d) => d.isVisualEditing);
1703
1702
  $t((d) => d.card);
@@ -1713,15 +1712,15 @@ function Ws() {
1713
1712
  (d) => d.actions
1714
1713
  ), { setInitialDashboard: Ct, clearSelectedDashboard: je } = Fe(
1715
1714
  (d) => d.actions
1716
- ), de = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Me } = Ua(rt.DASHBOARD), { data: qe } = Va(), Vr = ((Ut = qe == null ? void 0 : qe.preference) == null ? void 0 : Ut.defaultDashboardId) || null, { mutate: Tr, isPending: Fr } = Ta(), { currentUser: $r } = ht(), Br = Fa($r), H = Rr || Ur, ne = $a({
1715
+ ), de = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Me } = Ua(rt.DASHBOARD), { data: qe } = Va(), Vr = ((Ut = qe == null ? void 0 : qe.preference) == null ? void 0 : Ut.defaultDashboardId) || null, { mutate: Tr, isPending: Fr } = Ta(), { currentUser: $r } = ht(), Gr = Fa($r), H = Rr || Ur, ne = $a({
1717
1716
  config: n.config,
1718
1717
  canNavigateDashboardHub: de,
1719
1718
  canShareDashboard: ((Vt = H == null ? void 0 : H.permissions) == null ? void 0 : Vt.canShare) === !0,
1720
- canManageGroups: Br
1719
+ canManageGroups: Gr
1721
1720
  }), kt = H ? {
1722
1721
  id: H.id,
1723
1722
  title: (m == null ? void 0 : m.title) || H.title || "Dashboard"
1724
- } : null, { handleAddNewFrame: Gr } = Ba(), [Ke, We] = N(!1), [zr, le] = N(!1), [Qe, Ae] = N("close"), ce = Ga(rt.DASHBOARD), [A, Pe] = N(null), Hr = async (d, M) => {
1723
+ } : null, { handleAddNewFrame: Br } = Ga(), [Ke, We] = N(!1), [zr, le] = N(!1), [Qe, Ae] = N("close"), ce = Ba(rt.DASHBOARD), [A, Pe] = N(null), Hr = async (d, M) => {
1725
1724
  if (!g) {
1726
1725
  if (!(m != null && m.id)) {
1727
1726
  console.log("No dashboard ID found");
@@ -1762,7 +1761,7 @@ function Ws() {
1762
1761
  () => Ss({
1763
1762
  accessToken: t == null ? void 0 : t.accessToken,
1764
1763
  dashboardId: (m == null ? void 0 : m.id) || a || n.dashboard_id,
1765
- selectedSheetId: G ? B : void 0,
1764
+ selectedSheetId: B ? G : void 0,
1766
1765
  pageSize: P == null ? void 0 : P.size,
1767
1766
  orientation: P == null ? void 0 : P.orientation,
1768
1767
  theme: v
@@ -1771,10 +1770,10 @@ function Ws() {
1771
1770
  t == null ? void 0 : t.accessToken,
1772
1771
  a,
1773
1772
  m == null ? void 0 : m.id,
1774
- G,
1773
+ B,
1775
1774
  P == null ? void 0 : P.orientation,
1776
1775
  P == null ? void 0 : P.size,
1777
- B,
1776
+ G,
1778
1777
  v,
1779
1778
  n.dashboard_id
1780
1779
  ]
@@ -1992,7 +1991,7 @@ function Ws() {
1992
1991
  children: "Default"
1993
1992
  }
1994
1993
  ),
1995
- ea && j && /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ o(Gt, { children: [
1994
+ ea && j && /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ o(Bt, { children: [
1996
1995
  /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
1997
1996
  R,
1998
1997
  {
@@ -2040,14 +2039,14 @@ function Ws() {
2040
2039
  ]
2041
2040
  }
2042
2041
  ),
2043
- k && !O && !g && i && !G && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
2042
+ k && !O && !g && i && !B && /* @__PURE__ */ o("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
2044
2043
  /* @__PURE__ */ o(
2045
2044
  R,
2046
2045
  {
2047
2046
  variant: "ghost",
2048
2047
  size: "xs",
2049
2048
  disabled: !k,
2050
- onClick: () => void Gr(),
2049
+ onClick: () => void Br(),
2051
2050
  className: "h-full rounded-none border-0 shadow-none hover:bg-accent",
2052
2051
  children: [
2053
2052
  /* @__PURE__ */ e(K, { className: "h-3.5 w-3.5" }),
@@ -2092,7 +2091,7 @@ function Ws() {
2092
2091
  /* @__PURE__ */ e(Qa, { className: "h-3.5 w-3.5" }),
2093
2092
  g ? "Inspect" : "Edit"
2094
2093
  ] }),
2095
- b ? /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ o(Gt, { children: [
2094
+ b ? /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ o(Bt, { children: [
2096
2095
  /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
2097
2096
  "button",
2098
2097
  {
@@ -2126,7 +2125,7 @@ function Ws() {
2126
2125
  disabled: Re || !At,
2127
2126
  onClick: () => Xe(),
2128
2127
  children: [
2129
- Re ? /* @__PURE__ */ e(Ge, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5" }),
2128
+ Re ? /* @__PURE__ */ e(Be, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Zt, { className: "h-3.5 w-3.5" }),
2130
2129
  Re ? "Saving..." : "Save"
2131
2130
  ]
2132
2131
  }
@@ -2178,7 +2177,7 @@ function Ws() {
2178
2177
  onCreateAnalyticalBriefing: () => oe("analytical_briefing")
2179
2178
  }
2180
2179
  ),
2181
- /* @__PURE__ */ e(Be, {}),
2180
+ /* @__PURE__ */ e(Ge, {}),
2182
2181
  ne.showGroupManagement && /* @__PURE__ */ o(T, { children: [
2183
2182
  /* @__PURE__ */ e(ge, { children: "Access" }),
2184
2183
  /* @__PURE__ */ o(
@@ -2191,7 +2190,7 @@ function Ws() {
2191
2190
  ]
2192
2191
  }
2193
2192
  ),
2194
- /* @__PURE__ */ e(Be, {})
2193
+ /* @__PURE__ */ e(Ge, {})
2195
2194
  ] }),
2196
2195
  /* @__PURE__ */ e(ge, { children: "Preferences" }),
2197
2196
  /* @__PURE__ */ o(V, { onClick: () => se(!0), children: [
@@ -2199,7 +2198,7 @@ function Ws() {
2199
2198
  "Report preferences"
2200
2199
  ] }),
2201
2200
  l && i && /* @__PURE__ */ o(T, { children: [
2202
- /* @__PURE__ */ e(Be, {}),
2201
+ /* @__PURE__ */ e(Ge, {}),
2203
2202
  /* @__PURE__ */ e(ge, { children: "Developer" }),
2204
2203
  /* @__PURE__ */ o(
2205
2204
  V,
@@ -2216,7 +2215,7 @@ function Ws() {
2216
2215
  ]
2217
2216
  }
2218
2217
  ),
2219
- G && /* @__PURE__ */ o(
2218
+ B && /* @__PURE__ */ o(
2220
2219
  V,
2221
2220
  {
2222
2221
  disabled: !Je,
@@ -2366,7 +2365,7 @@ function Ws() {
2366
2365
  }
2367
2366
  )
2368
2367
  ] }) : /* @__PURE__ */ o(Yt, { disabled: !0, className: "m-0 cursor-default", children: [
2369
- /* @__PURE__ */ e(Ge, { className: "mr-2 h-4 w-4 animate-spin" }),
2368
+ /* @__PURE__ */ e(Be, { className: "mr-2 h-4 w-4 animate-spin" }),
2370
2369
  "Saving..."
2371
2370
  ] }) })
2372
2371
  ] })
@@ -2407,5 +2406,5 @@ function Ss({
2407
2406
  return h.searchParams.set("pdfMode", "document"), h.searchParams.set("pageSize", r || "letter"), h.searchParams.set("orientation", s || "portrait"), h.searchParams.set("url", p.toString()), h.toString();
2408
2407
  }
2409
2408
  export {
2410
- Ws as default
2409
+ Ks as default
2411
2410
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-f3TuZNLr.cjs"),s=require("./index-DHF-2AqS.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-CFfWXRl9.cjs");require("./validators-BDYprKI9.cjs");require("./analyze-result-contract-LPDNldic.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-o3Emn05L.cjs");require("./canonical-result-keys-BA0HCP4e.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-k8tEp0ys.cjs");const $=require("./dashboard-briefing-launcher-DHtEouuH.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-BK0yAJnQ.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("./switch-DBZsEV0U.cjs"),s=require("./index-B1qplNxl.cjs"),U=require("./x-B6ghREd2.cjs");require("./saved-temporal-bucket-format-3QKveR3v.cjs");require("./validators-dJlwubP4.cjs");require("./analyze-result-contract-DSGoFuXQ.cjs");require("../value-format-preferences/index.cjs");const y=require("react");require("./index-ByFbacH7.cjs");require("./temporal-bucket-authoring-BK1UhYpD.cjs");require("./color-CyB5o13F.cjs");const cs=require("react-dom");require("./index-DjjKJPDy.cjs");const $=require("./dashboard-briefing-launcher-xuGrw8H3.cjs"),wt=require("./search-BqqhaMx9.cjs"),St=require("./format-types-PSZZ7hG8.cjs"),us=require("./report-preferences-dialog-DKPyjiCt.cjs"),ms=require("./use-debounced-dirty-check-XHSwAefL.cjs"),qe=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.cjs"),xt=require("./save-3dYRmehL.cjs"),hs=require("./palette-BN-jYtaK.cjs"),ps=require("./braces-v55uLCAK.cjs");function fs(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const M=fs(y);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.