react-semaphor 0.1.439 → 0.1.441

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 (33) hide show
  1. package/dist/brand-studio/index.cjs +1 -1
  2. package/dist/brand-studio/index.js +1 -1
  3. package/dist/chunks/{code-editor-25d16KDV.js → code-editor-CIWiSltV.js} +3182 -3152
  4. package/dist/chunks/{code-editor-BSENCZwR.js → code-editor-M7HTUhdF.js} +14 -14
  5. package/dist/chunks/{dashboard-DXTiQI-G.js → dashboard--bQrQeiz.js} +26285 -26106
  6. package/dist/chunks/{dashboard-DuS8HC11.js → dashboard-C-eTAAKs.js} +212 -212
  7. package/dist/chunks/{dashboard-briefing-launcher-FFtLgrV4.js → dashboard-briefing-launcher-dgTjPWHX.js} +1 -1
  8. package/dist/chunks/{dashboard-briefing-launcher-DD8lR1Au.js → dashboard-briefing-launcher-xulAb1Oz.js} +108 -108
  9. package/dist/chunks/{dashboard-controls-dlVDuUIE.js → dashboard-controls-CWu1wt6_.js} +79 -79
  10. package/dist/chunks/{dashboard-controls-Jd2pIzDA.js → dashboard-controls-D8BDZ5_q.js} +1 -1
  11. package/dist/chunks/{dashboard-json-BV47cQM5.js → dashboard-json-Bpm-ePrD.js} +1 -1
  12. package/dist/chunks/{dashboard-json--vVimEkU.js → dashboard-json-ZgLCrrSW.js} +2 -2
  13. package/dist/chunks/edit-dashboard-visual-BCMupXbq.js +182 -0
  14. package/dist/chunks/{edit-dashboard-visual-BJ2q0svk.js → edit-dashboard-visual-DEtVA2re.js} +6987 -6912
  15. package/dist/chunks/{report-preferences-dialog-Dpu8q4pi.js → report-preferences-dialog-Bjj_tIgL.js} +2 -2
  16. package/dist/chunks/{report-preferences-dialog-Oe6nmu2r.js → report-preferences-dialog-Ju8DjgyW.js} +1 -1
  17. package/dist/chunks/use-create-flow-overlay-state-B6a3gmF0.js +1890 -0
  18. package/dist/chunks/use-create-flow-overlay-state-wcIRGLSM.js +11 -0
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/dashboard-authoring/index.cjs +3 -3
  22. package/dist/dashboard-authoring/index.js +171 -157
  23. package/dist/data-app-builder/index.cjs +1 -1
  24. package/dist/data-app-builder/index.js +66 -66
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +6 -6
  27. package/dist/style.css +1 -1
  28. package/dist/surfboard/index.cjs +1 -1
  29. package/dist/surfboard/index.js +2 -2
  30. package/package.json +1 -1
  31. package/dist/chunks/edit-dashboard-visual-BpPTfU9y.js +0 -182
  32. package/dist/chunks/use-create-flow-overlay-state-CqKpuL7v.js +0 -1941
  33. package/dist/chunks/use-create-flow-overlay-state-CsWhd5aC.js +0 -11
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as s, Fragment as T } from "react/jsx-runtime";
2
- import { u as w, B as V, aw as dt, A as aa, O as Wa, Z as Ja, c as be, ax as lt, ay as Xa, az as Ya, aA as ra, aB as xe, aC as ct, aD as na, L as ze, aE as sa, aF as Za, E as Gt, Q as Bt, V as $t, W as zt, Y as _t, X as er, o as tr, aG as ar } from "./code-editor-25d16KDV.js";
3
- import { bC as rr, bD as nr, az as j, aH as oa, bE as sr, aZ as K, aI as ia, aJ as or, aK as nt, aL as st, aF as ir, bF as ge, bG as $e, bH as dr, bI as qt, bJ as da, bK as la, bL as lr, bM as ut, bN as cr, bO as ur, bP as mr, bQ as hr, bR as pr, bS as fr, b8 as ve, bT as ye, aG as C, bU as gr, bV as ca, br as mt, bW as br, bX as xr, bY as ua, bZ as vr, b_ as ma, b$ as O, c0 as yr, aj as wr, c1 as Nr, c2 as Dr, c3 as Cr, c4 as kr, an as Sr, av as Ge, aw as Ir, w as at, c5 as Mr, c6 as Er, c7 as Lr, c8 as Ar, ai as Pr, c9 as Ur, ca as Rr, I as Ht, cb as Vr, cc as Fr, cd as Or, ce as Tr, cf as Gr, cg as jt, ch as Kt, ci as Qt, cj as Br, ck as $r, cl as zr, cm as _r, b1 as Wt, cn as qr, co as Hr, cp as jr, y as Kr, cq as Qr, aP as Wr, aS as Jr, aT as Xr, aU as Yr, aV as Zr, aW as en, aX as tn, aY as Jt, g as ot } from "./dashboard-DXTiQI-G.js";
2
+ import { u as w, B as V, aw as dt, A as aa, O as Wa, Z as Ja, c as be, ax as lt, ay as Xa, az as Ya, aA as ra, aB as xe, aC as ct, aD as na, L as ze, aE as sa, aF as Za, E as Bt, Q as Gt, V as $t, W as zt, Y as _t, X as er, o as tr, aG as ar } from "./code-editor-CIWiSltV.js";
3
+ import { bz as rr, bA as nr, az as j, aH as oa, bB as sr, ba as K, aI as ia, aJ as or, aK as nt, aL as st, aF as ir, bC as ge, bD as $e, bE as dr, bF as qt, bG as da, bH as la, bI as lr, bJ as ut, bK as cr, bL as ur, bM as mr, bN as hr, bO as pr, bP as fr, aN as ve, bQ as ye, aG as C, bR as gr, bS as ca, b1 as mt, bT as br, bU as xr, bV as ua, bW as vr, bX as ma, bY as O, bZ as yr, aj as wr, b_ as Nr, b$ as Dr, c0 as Cr, c1 as kr, an as Sr, av as Be, aw as Ir, w as at, c2 as Mr, c3 as Er, c4 as Ar, c5 as Lr, ai as Pr, c6 as Ur, c7 as Rr, I as Ht, c8 as Vr, c9 as Fr, ca as Or, cb as Tr, cc as Br, cd as jt, ce as Kt, cf as Qt, cg as Gr, ch as $r, ci as zr, cj as _r, bt as Wt, ck as qr, cl as Hr, cm as jr, y as Kr, cn as Qr, bg as Wr, bj as Jr, bk as Xr, bl as Yr, bm as Zr, bn as en, bo as tn, bp as Jt, g as ot } from "./dashboard--bQrQeiz.js";
4
4
  import { c as ee, X as ha, C as an } from "./index-xHCrHprY.js";
5
5
  import "./analyze-result-contract-CfOBEwaC.js";
6
6
  import "../value-format-preferences/index.js";
@@ -10,10 +10,10 @@ import "./index-If0wlXGi.js";
10
10
  import "./comparison-document-migration-Dj6xZMCb.js";
11
11
  import { createPortal as sn } from "react-dom";
12
12
  import "../briefings/index.js";
13
- import { g as on, u as dn, A as ln, V as cn, c as un, f as mn, N as hn, D as pn, U as fn } from "./dashboard-briefing-launcher-DD8lR1Au.js";
13
+ import { g as on, u as dn, A as ln, V as cn, c as un, f as mn, N as hn, D as pn, U as fn } from "./dashboard-briefing-launcher-xulAb1Oz.js";
14
14
  import { S as gn, C as bn } from "./search-DHZCro8B.js";
15
15
  import { d as pa } from "./index-CnujJ3fa.js";
16
- import { R as xn } from "./report-preferences-dialog-Dpu8q4pi.js";
16
+ import { R as xn } from "./report-preferences-dialog-Bjj_tIgL.js";
17
17
  import { u as vn } from "./use-debounced-dirty-check-BwAbnX_5.js";
18
18
  import { s as rt } from "./normalize-dashboard-for-dirty-check-5KpZN8xr.js";
19
19
  import { S as Yt } from "./save-HCJjjzdX.js";
@@ -107,13 +107,13 @@ const In = ee("UserPlus", [
107
107
  const fa = ee("UserRound", [
108
108
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
109
109
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
110
- ]), Be = ["light", "dark", "system"];
110
+ ]), Ge = ["light", "dark", "system"];
111
111
  function Mn() {
112
112
  const { theme: t, setTheme: n } = rr(), r = w(
113
113
  (m) => m.actions.setDashboardTheme
114
114
  );
115
115
  function a() {
116
- const m = Be.includes(t) ? t : "system", p = Be[(Be.indexOf(m) + 1) % Be.length];
116
+ const m = Ge.includes(t) ? t : "system", p = Ge[(Ge.indexOf(m) + 1) % Ge.length];
117
117
  n(p), r(p);
118
118
  }
119
119
  const o = t === "light" ? Sn : t === "dark" ? Cn : Dn, c = t === "light" ? "Theme: light (click for dark)" : t === "dark" ? "Theme: dark (click for system)" : "Theme: system (click for light)";
@@ -184,7 +184,7 @@ async function it(t, n, r) {
184
184
  operation: "update"
185
185
  });
186
186
  }
187
- async function Ln(t, n, r) {
187
+ async function An(t, n, r) {
188
188
  if (!r)
189
189
  return null;
190
190
  const a = `${t}/v1/lens`;
@@ -193,14 +193,14 @@ async function Ln(t, n, r) {
193
193
  lensId: n
194
194
  });
195
195
  }
196
- const An = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
196
+ const Ln = "text-[10px] font-medium uppercase tracking-[0.08em] text-muted-foreground";
197
197
  function Pn({
198
198
  open: t,
199
199
  onOpenChange: n
200
200
  } = {}) {
201
201
  const [r, a] = y(""), [o, c] = y(!1), m = w((l) => l.lenses), { setLenses: p, setSelectedLensId: b } = aa(), [f, d] = y(!1), [h, x] = y(!1), u = t !== void 0, v = u ? t : h, N = (l) => {
202
202
  u || x(l), n == null || n(l);
203
- }, D = w((l) => l.dashboard), R = w((l) => l.filterValues), { authToken: I, tokenProps: B } = j();
203
+ }, D = w((l) => l.dashboard), R = w((l) => l.filterValues), { authToken: I, tokenProps: G } = j();
204
204
  async function S() {
205
205
  d(!0);
206
206
  const l = w.getState(), $ = ga({
@@ -210,15 +210,15 @@ function Pn({
210
210
  controlValues: l.controlValues,
211
211
  inlineFilterValuesMap: l.inlineFilterValuesMap,
212
212
  cardControlValuesMap: l.cardControlValuesMap
213
- }), G = await En(
214
- B.apiServiceUrl,
213
+ }), B = await En(
214
+ G.apiServiceUrl,
215
215
  r,
216
216
  D,
217
217
  R,
218
218
  $,
219
219
  I == null ? void 0 : I.accessToken
220
220
  );
221
- G && (p([...m || [], G]), b(G.id), N(!1)), d(!1);
221
+ B && (p([...m || [], B]), b(B.id), N(!1)), d(!1);
222
222
  }
223
223
  return /* @__PURE__ */ s(oa, { open: v, onOpenChange: N, children: [
224
224
  u ? null : /* @__PURE__ */ e(sr, { asChild: !0, children: /* @__PURE__ */ s(V, { variant: "secondary", size: "xs", children: [
@@ -231,7 +231,7 @@ function Pn({
231
231
  /* @__PURE__ */ e(st, { className: "text-[13px] leading-5", children: "Lenses are private by default and are only visible to you." })
232
232
  ] }),
233
233
  /* @__PURE__ */ s("div", { className: "space-y-1.5 py-1", children: [
234
- /* @__PURE__ */ e(Wa, { htmlFor: "lens-name", className: An, children: "Name" }),
234
+ /* @__PURE__ */ e(Wa, { htmlFor: "lens-name", className: Ln, children: "Name" }),
235
235
  /* @__PURE__ */ e(
236
236
  Ja,
237
237
  {
@@ -266,7 +266,7 @@ function Un({ includeLabel: t = !1 } = {}) {
266
266
  o(d);
267
267
  }
268
268
  async function b(d) {
269
- if (await Ln(m.apiServiceUrl, d, c == null ? void 0 : c.accessToken)) {
269
+ if (await An(m.apiServiceUrl, d, c == null ? void 0 : c.accessToken)) {
270
270
  const x = n == null ? void 0 : n.filter((u) => u.id !== d);
271
271
  a(x || []), o("original");
272
272
  }
@@ -380,7 +380,7 @@ var ht = "Avatar", [Vn] = Xa(ht), Fn = [
380
380
  }
381
381
  ], [On, ba] = Vn(ht), pt = U.forwardRef(
382
382
  (t, n) => {
383
- const { __scopeAvatar: r, ...a } = t, [o, c] = U.useState("idle"), [m, p] = Gn();
383
+ const { __scopeAvatar: r, ...a } = t, [o, c] = U.useState("idle"), [m, p] = Bn();
384
384
  return /* @__PURE__ */ e(
385
385
  On,
386
386
  {
@@ -398,7 +398,7 @@ pt.displayName = ht;
398
398
  var xa = "AvatarImage", ft = U.forwardRef(
399
399
  (t, n) => {
400
400
  const { __scopeAvatar: r, src: a, onLoadingStatusChange: o, ...c } = t, m = ba(xa, r);
401
- Bn(m.setImageCount);
401
+ Gn(m.setImageCount);
402
402
  const p = Tn(a, {
403
403
  referrerPolicy: c.referrerPolicy,
404
404
  crossOrigin: c.crossOrigin,
@@ -449,7 +449,7 @@ function Tn(t, {
449
449
  function Zt(t) {
450
450
  return t.complete ? t.naturalWidth > 0 ? "loaded" : "error" : "loading";
451
451
  }
452
- function Gn() {
452
+ function Bn() {
453
453
  let t = Fn;
454
454
  {
455
455
  t = U.useState(0);
@@ -462,7 +462,7 @@ function Gn() {
462
462
  }
463
463
  return t;
464
464
  }
465
- function Bn(t) {
465
+ function Gn(t) {
466
466
  U.useEffect(() => (t((n) => n + 1), () => {
467
467
  t((n) => n - 1);
468
468
  }), [t]);
@@ -604,7 +604,7 @@ function Zn({
604
604
  open: t,
605
605
  onOpenChange: n
606
606
  }) {
607
- var I, B, S;
607
+ var I, G, S;
608
608
  const { tokenProps: r } = j(), { currentUser: a } = ut(), o = (a == null ? void 0 : a.type) === "tenant", c = r == null ? void 0 : r.tenantId, {
609
609
  groups: m,
610
610
  isLoading: p,
@@ -662,7 +662,7 @@ function Zn({
662
662
  group: D,
663
663
  isTenantViewer: o,
664
664
  canEdit: ((I = D.permissions) == null ? void 0 : I.canEdit) ?? D.createdBy === (a == null ? void 0 : a.id),
665
- canDelete: ((B = D.permissions) == null ? void 0 : B.canDelete) ?? D.createdBy === (a == null ? void 0 : a.id),
665
+ canDelete: ((G = D.permissions) == null ? void 0 : G.canDelete) ?? D.createdBy === (a == null ? void 0 : a.id),
666
666
  canManageMembers: ((S = D.permissions) == null ? void 0 : S.canManageMembers) ?? D.createdBy === (a == null ? void 0 : a.id),
667
667
  onBack: () => x({ kind: "list" }),
668
668
  onMembersChanged: f,
@@ -912,13 +912,13 @@ function rs({
912
912
  }), R = Z(
913
913
  () => new Set(u.map((g) => g.userId)),
914
914
  [u]
915
- ), I = Jn(), B = Xn(), S = Qn(), [l, $] = y(!1), [G, z] = y(t.name), [L, k] = y(!1), [te, ae] = y(t.description || ""), [Q, we] = y(""), [Ne, De] = y(!1), Ce = Z(() => {
915
+ ), I = Jn(), G = Xn(), S = Qn(), [l, $] = y(!1), [B, z] = y(t.name), [A, k] = y(!1), [te, ae] = y(t.description || ""), [Q, we] = y(""), [Ne, De] = y(!1), Ce = Z(() => {
916
916
  const g = Q.trim().toLowerCase();
917
917
  return D.filter((_) => !R.has(_.id)).filter(
918
918
  (_) => !g || (_.name || "").toLowerCase().includes(g) || (_.email || "").toLowerCase().includes(g)
919
919
  ).slice(0, 50);
920
920
  }, [D, R, Q]), ke = async () => {
921
- const g = G.trim();
921
+ const g = B.trim();
922
922
  if ($(!1), g.length >= 3 && g !== t.name)
923
923
  try {
924
924
  await S.mutateAsync({
@@ -954,7 +954,7 @@ function rs({
954
954
  }, oe = async (g) => {
955
955
  if (o)
956
956
  try {
957
- await B.mutateAsync({
957
+ await G.mutateAsync({
958
958
  groupId: t.id,
959
959
  data: { userIds: [g] }
960
960
  }), x(), m();
@@ -983,7 +983,7 @@ function rs({
983
983
  "input",
984
984
  {
985
985
  autoFocus: !0,
986
- value: G,
986
+ value: B,
987
987
  onChange: (g) => z(g.target.value),
988
988
  onBlur: ke,
989
989
  onKeyDown: (g) => {
@@ -1011,7 +1011,7 @@ function rs({
1011
1011
  u.length === 1 ? "" : "s"
1012
1012
  ] })
1013
1013
  ] }),
1014
- /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: L ? /* @__PURE__ */ s("div", { children: [
1014
+ /* @__PURE__ */ e("div", { className: "shrink-0 border-b border-border px-5 py-2.5", children: A ? /* @__PURE__ */ s("div", { children: [
1015
1015
  /* @__PURE__ */ e(
1016
1016
  "textarea",
1017
1017
  {
@@ -1121,7 +1121,7 @@ function rs({
1121
1121
  {
1122
1122
  type: "button",
1123
1123
  onClick: () => oe(g.userId),
1124
- disabled: !o || B.isPending,
1124
+ disabled: !o || G.isPending,
1125
1125
  "aria-label": `Remove ${((X = g.user) == null ? void 0 : X.name) || "member"}`,
1126
1126
  className: "flex h-6 w-6 items-center justify-center rounded-[3px] text-muted-foreground opacity-0 transition-opacity hover:bg-accent hover:text-foreground group-hover:opacity-100 disabled:opacity-30",
1127
1127
  children: /* @__PURE__ */ e(ha, { className: "h-3 w-3" })
@@ -1503,7 +1503,7 @@ function ta(t, n) {
1503
1503
  semanticExecutionPayload: ot(n)
1504
1504
  };
1505
1505
  }
1506
- function Ls() {
1506
+ function As() {
1507
1507
  var Ut, Rt, Vt, Ft, Ot;
1508
1508
  on(), dn();
1509
1509
  const {
@@ -1519,26 +1519,26 @@ function Ls() {
1519
1519
  isInspectionSurface: d
1520
1520
  } = Dr(), { openBrandStudioPreview: h } = Cr(), { permissions: x } = Rn(), u = kr(), { isLoading: v } = Sr(), N = w((i) => i.theme), D = w((i) => i.isDownloadingPdf), R = w(
1521
1521
  (i) => i.dashboardAssistantDraftScopeKey
1522
- ), I = w((i) => i.lenses), B = w((i) => i.selectedLensId), S = I == null ? void 0 : I.find((i) => i.id === B), l = w((i) => i.dashboard), $ = w((i) => i.selectedSheetId), G = (Ut = l == null ? void 0 : l.sheets) == null ? void 0 : Ut.find(
1522
+ ), I = w((i) => i.lenses), G = w((i) => i.selectedLensId), S = I == null ? void 0 : I.find((i) => i.id === G), l = w((i) => i.dashboard), $ = w((i) => i.selectedSheetId), B = (Ut = l == null ? void 0 : l.sheets) == null ? void 0 : Ut.find(
1523
1523
  (i) => i.id === $
1524
- ), z = Za(G), L = z ? (Rt = G == null ? void 0 : G.document) == null ? void 0 : Rt.page : void 0, k = w(
1524
+ ), z = Za(B), A = z ? (Rt = B == null ? void 0 : B.document) == null ? void 0 : Rt.page : void 0, k = w(
1525
1525
  (i) => i.isDashboardEditing
1526
- ), { setDashboardTitle: te } = w((i) => i.actions), [ae, Q] = y(!1), [we, Ne] = y(!1), [De, Ce] = y(!1), [ke, se] = y(!1), [Se, oe] = y(null), [re, g] = y(!1), [_, ie] = y(!1), [Ie, W] = y(!1), [J, X] = y(null), [bt, Me] = y([]), [xt, Ee] = y(!1), [ka, vt] = y(!1), yt = w((i) => i.filterValues), A = w((i) => i.isVisualEditing);
1527
- Gt((i) => i.card);
1528
- const Sa = Ge(
1526
+ ), { setDashboardTitle: te } = w((i) => i.actions), [ae, Q] = y(!1), [we, Ne] = y(!1), [De, Ce] = y(!1), [ke, se] = y(!1), [Se, oe] = y(null), [re, g] = y(!1), [_, ie] = y(!1), [Ie, W] = y(!1), [J, X] = y(null), [bt, Me] = y([]), [xt, Ee] = y(!1), [ka, vt] = y(!1), yt = w((i) => i.filterValues), L = w((i) => i.isVisualEditing);
1527
+ Bt((i) => i.card);
1528
+ const Sa = Be(
1529
1529
  (i) => i.selectedDashboard
1530
- ), Ia = Ge(
1530
+ ), Ia = Be(
1531
1531
  (i) => i.initialDashboard
1532
1532
  );
1533
- Ge((i) => i.selectedVisual), w((i) => i.selectedFrameId), Gt((i) => i.frame);
1533
+ Be((i) => i.selectedVisual), w((i) => i.selectedFrameId), Bt((i) => i.frame);
1534
1534
  const wt = w(
1535
1535
  (i) => i.showDashboardJSON
1536
1536
  ), qe = w((i) => i.onSaveFunction), {
1537
1537
  setIsDashboardEditing: Nt,
1538
1538
  setShowDashboardJSON: Dt
1539
- } = w((i) => i.actions), { setInitialDashboard: Ct, clearSelectedDashboard: He } = Ge(
1539
+ } = w((i) => i.actions), { setInitialDashboard: Ct, clearSelectedDashboard: He } = Be(
1540
1540
  (i) => i.actions
1541
- ), de = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Le } = Ir(at.DASHBOARD), { data: je } = Mr(), Ma = ((Vt = je == null ? void 0 : je.preference) == null ? void 0 : Vt.defaultDashboardId) || null, { mutate: Ea, isPending: La } = Er(), { currentUser: Aa } = ut(), Pa = Lr(Aa), q = Sa || Ia, ne = Ar({
1541
+ ), de = !!n.orgUserId || !!(n.tenantId && n.endUserId && n.endUserEmail), { resources: Ae } = Ir(at.DASHBOARD), { data: je } = Mr(), Ma = ((Vt = je == null ? void 0 : je.preference) == null ? void 0 : Vt.defaultDashboardId) || null, { mutate: Ea, isPending: Aa } = Er(), { currentUser: La } = ut(), Pa = Ar(La), q = Sa || Ia, ne = Lr({
1542
1542
  config: n.config,
1543
1543
  canNavigateDashboardHub: de,
1544
1544
  canShareDashboard: ((Ft = q == null ? void 0 : q.permissions) == null ? void 0 : Ft.canShare) === !0,
@@ -1546,7 +1546,7 @@ function Ls() {
1546
1546
  }), kt = q ? {
1547
1547
  id: q.id,
1548
1548
  title: (l == null ? void 0 : l.title) || q.title || "Dashboard"
1549
- } : null, { handleAddNewFrame: Ua } = Pr(), [Ke, Qe] = y(!1), [Ra, le] = y(!1), [We, Ae] = y("close"), ce = Ur(at.DASHBOARD), [E, Pe] = y(null), Va = async (i, M) => {
1549
+ } : null, { handleAddNewFrame: Ua } = Pr(), [Ke, Qe] = y(!1), [Ra, le] = y(!1), [We, Le] = y("close"), ce = Ur(at.DASHBOARD), [E, Pe] = y(null), Va = async (i, M) => {
1550
1550
  if (!f) {
1551
1551
  if (!(l != null && l.id)) {
1552
1552
  console.log("No dashboard ID found");
@@ -1573,23 +1573,23 @@ function Ls() {
1573
1573
  }
1574
1574
  };
1575
1575
  _e(() => {
1576
- if (Le && Le.length > 0) {
1576
+ if (Ae && Ae.length > 0) {
1577
1577
  const i = l == null ? void 0 : l.id;
1578
1578
  if (i) {
1579
- const M = Le.find(
1579
+ const M = Ae.find(
1580
1580
  (F) => F.id === i
1581
1581
  );
1582
1582
  M && Ct(M);
1583
1583
  }
1584
1584
  }
1585
- }, [Le, l == null ? void 0 : l.id, Ct]);
1585
+ }, [Ae, l == null ? void 0 : l.id, Ct]);
1586
1586
  const ue = n.orgUserId || n.tenantId, Je = Z(
1587
1587
  () => ls({
1588
1588
  accessToken: t == null ? void 0 : t.accessToken,
1589
1589
  dashboardId: (l == null ? void 0 : l.id) || r || n.dashboard_id,
1590
1590
  selectedSheetId: z ? $ : void 0,
1591
- pageSize: L == null ? void 0 : L.size,
1592
- orientation: L == null ? void 0 : L.orientation,
1591
+ pageSize: A == null ? void 0 : A.size,
1592
+ orientation: A == null ? void 0 : A.orientation,
1593
1593
  theme: N
1594
1594
  }),
1595
1595
  [
@@ -1597,13 +1597,13 @@ function Ls() {
1597
1597
  r,
1598
1598
  l == null ? void 0 : l.id,
1599
1599
  z,
1600
- L == null ? void 0 : L.orientation,
1601
- L == null ? void 0 : L.size,
1600
+ A == null ? void 0 : A.orientation,
1601
+ A == null ? void 0 : A.size,
1602
1602
  $,
1603
1603
  N,
1604
1604
  n.dashboard_id
1605
1605
  ]
1606
- ), St = k && !A && !f && ue && m, { setDashboard: Xe } = w((i) => i.actions), It = w(
1606
+ ), St = k && !L && !f && ue && m, { setDashboard: Xe } = w((i) => i.actions), It = w(
1607
1607
  (i) => i.semanticExecutionPayload
1608
1608
  ), Fa = () => {
1609
1609
  Nt(!0);
@@ -1634,24 +1634,24 @@ function Ls() {
1634
1634
  300,
1635
1635
  1e3,
1636
1636
  rt
1637
- ), Et = nn(() => Re ? rt(l) !== rt(Re) : !1, [l, Re]), Lt = Mt || Oa, Ve = Ke || ce.isPending, Ta = () => {
1637
+ ), Et = nn(() => Re ? rt(l) !== rt(Re) : !1, [l, Re]), At = Mt || Oa, Ve = Ke || ce.isPending, Ta = () => {
1638
1638
  if (f) {
1639
1639
  E && Xe(E.dashboard, {
1640
1640
  semanticExecutionPayload: E.semanticExecutionPayload
1641
1641
  }), Ue(), me();
1642
1642
  return;
1643
1643
  }
1644
- Et() ? (Ae("close"), le(!0)) : (Ue(), me());
1645
- }, Ga = async () => {
1644
+ Et() ? (Le("close"), le(!0)) : (Ue(), me());
1645
+ }, Ba = async () => {
1646
1646
  await Ye({
1647
1647
  closeAfterSave: !0,
1648
1648
  navigateHomeAfterSave: We === "home"
1649
1649
  });
1650
- }, Ba = () => {
1650
+ }, Ga = () => {
1651
1651
  const i = We === "home" && !!de;
1652
1652
  E && Xe(E.dashboard, {
1653
1653
  semanticExecutionPayload: E.semanticExecutionPayload
1654
- }), Ue(), i && He(), Ae("close"), le(!1), me();
1654
+ }), Ue(), i && He(), Le("close"), le(!1), me();
1655
1655
  }, $a = () => {
1656
1656
  E && (Xe(E.dashboard, {
1657
1657
  semanticExecutionPayload: E.semanticExecutionPayload
@@ -1659,7 +1659,7 @@ function Ls() {
1659
1659
  }, za = () => {
1660
1660
  if (de) {
1661
1661
  if (k && Et()) {
1662
- Ae("home"), le(!0);
1662
+ Le("home"), le(!0);
1663
1663
  return;
1664
1664
  }
1665
1665
  He();
@@ -1698,7 +1698,7 @@ function Ls() {
1698
1698
  et,
1699
1699
  w.getState().semanticExecutionPayload
1700
1700
  )
1701
- ), W(!1), Ee(!1), F && (Ue(), me(), Ze && de && He()), Ae("close");
1701
+ ), W(!1), Ee(!1), F && (Ue(), me(), Ze && de && He()), Le("close");
1702
1702
  },
1703
1703
  onError: (P) => {
1704
1704
  Qe(!1), X("Failed to save dashboard. Please try again.");
@@ -1718,7 +1718,7 @@ function Ls() {
1718
1718
  );
1719
1719
  }
1720
1720
  async function _a() {
1721
- if (f || (Q(!0), !B || !S)) return;
1721
+ if (f || (Q(!0), !G || !S)) return;
1722
1722
  const i = w.getState().dashboard;
1723
1723
  if (!i) {
1724
1724
  Q(!1);
@@ -1743,9 +1743,9 @@ function Ls() {
1743
1743
  t == null ? void 0 : t.accessToken
1744
1744
  ), C.success("Lens saved"), qe == null || qe(i), Q(!1);
1745
1745
  }
1746
- const At = (S == null ? void 0 : S.name) || l.title;
1746
+ const Lt = (S == null ? void 0 : S.name) || l.title;
1747
1747
  ce.isPending && console.log("Title during update:", {
1748
- title: At,
1748
+ title: Lt,
1749
1749
  dashboardStateTitle: l.title,
1750
1750
  dashboardId: l == null ? void 0 : l.id,
1751
1751
  currentLensName: S == null ? void 0 : S.name
@@ -1758,14 +1758,14 @@ function Ls() {
1758
1758
  dashboardId: he ? null : H
1759
1759
  });
1760
1760
  };
1761
- return !u && !A ? null : /* @__PURE__ */ s(
1761
+ return !u && !L ? null : /* @__PURE__ */ s(
1762
1762
  "div",
1763
1763
  {
1764
1764
  className: "flex h-11 shrink-0 items-center justify-between gap-2 overflow-x-auto border-b px-4 py-2",
1765
1765
  role: "dashboard-controls",
1766
1766
  children: [
1767
1767
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1768
- ja && !A && /* @__PURE__ */ e(
1768
+ ja && !L && /* @__PURE__ */ e(
1769
1769
  Ht,
1770
1770
  {
1771
1771
  "aria-label": "Dashboard Hub",
@@ -1776,7 +1776,7 @@ function Ls() {
1776
1776
  children: /* @__PURE__ */ e(da, { className: "h-3.5 w-3.5" })
1777
1777
  }
1778
1778
  ),
1779
- !A && u && (v ? /* @__PURE__ */ e(
1779
+ !L && u && (v ? /* @__PURE__ */ e(
1780
1780
  "div",
1781
1781
  {
1782
1782
  className: "h-4 w-28 animate-pulse rounded-md bg-muted/70",
@@ -1788,7 +1788,7 @@ function Ls() {
1788
1788
  /* @__PURE__ */ e(
1789
1789
  Vr,
1790
1790
  {
1791
- value: At || "Untitled Dashboard",
1791
+ value: Lt || "Untitled Dashboard",
1792
1792
  onSave: (i) => {
1793
1793
  console.log("EditableText onSave called:", {
1794
1794
  newTitle: i,
@@ -1817,14 +1817,14 @@ function Ls() {
1817
1817
  children: "Default"
1818
1818
  }
1819
1819
  ),
1820
- Ha && H && /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ s($t, { children: [
1820
+ Ha && H && /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ s($t, { children: [
1821
1821
  /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
1822
1822
  V,
1823
1823
  {
1824
1824
  variant: "ghost",
1825
1825
  size: "xs",
1826
1826
  onClick: Ka,
1827
- disabled: La || !(t != null && t.accessToken) || !(n != null && n.apiServiceUrl),
1827
+ disabled: Aa || !(t != null && t.accessToken) || !(n != null && n.apiServiceUrl),
1828
1828
  className: "w-7 px-0 text-muted-foreground hover:text-foreground",
1829
1829
  "aria-label": he ? "Clear default dashboard" : "Set as default dashboard",
1830
1830
  children: he ? /* @__PURE__ */ e(Or, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ e(Tr, { className: "h-3.5 w-3.5" })
@@ -1835,24 +1835,24 @@ function Ls() {
1835
1835
  ] }))
1836
1836
  ] }),
1837
1837
  /* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
1838
- A && /* @__PURE__ */ s(T, { children: [
1838
+ L && /* @__PURE__ */ s(T, { children: [
1839
1839
  /* @__PURE__ */ e(ln, {}),
1840
1840
  /* @__PURE__ */ e(cn, {})
1841
1841
  ] }),
1842
- !A && u && !f && ne.showDashboardSharing && /* @__PURE__ */ s(
1842
+ !L && u && !f && ne.showDashboardSharing && /* @__PURE__ */ s(
1843
1843
  V,
1844
1844
  {
1845
1845
  variant: "outline",
1846
1846
  size: "xs",
1847
1847
  onClick: () => Ne(!0),
1848
1848
  children: [
1849
- /* @__PURE__ */ e(Gr, { className: "h-3.5 w-3.5" }),
1849
+ /* @__PURE__ */ e(Br, { className: "h-3.5 w-3.5" }),
1850
1850
  "Share"
1851
1851
  ]
1852
1852
  }
1853
1853
  ),
1854
- !A && k && !f && x.canUseFilters && u && /* @__PURE__ */ e(un, {}),
1855
- k && !A && !f && ue && S && c && u && /* @__PURE__ */ s(
1854
+ !L && k && !f && x.canUseFilters && u && /* @__PURE__ */ e(un, {}),
1855
+ k && !L && !f && ue && S && c && u && /* @__PURE__ */ s(
1856
1856
  V,
1857
1857
  {
1858
1858
  variant: "secondary",
@@ -1865,7 +1865,7 @@ function Ls() {
1865
1865
  ]
1866
1866
  }
1867
1867
  ),
1868
- k && !A && !f && u && !z && /* @__PURE__ */ s("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
1868
+ k && !L && !f && u && !z && /* @__PURE__ */ s("div", { className: "inline-flex h-7 items-stretch overflow-hidden rounded-control border border-input bg-background", children: [
1869
1869
  /* @__PURE__ */ s(
1870
1870
  V,
1871
1871
  {
@@ -1912,12 +1912,12 @@ function Ls() {
1912
1912
  }
1913
1913
  )
1914
1914
  ] }),
1915
- !A && !k && (m || f) && (!d || !p || m !== void 0) && u && /* @__PURE__ */ s("div", { className: "inline-flex items-center gap-1", children: [
1915
+ !L && !k && (m || f) && (!d || !p || m !== void 0) && u && /* @__PURE__ */ s("div", { className: "inline-flex items-center gap-1", children: [
1916
1916
  /* @__PURE__ */ s(V, { size: "xs", onClick: Fa, children: [
1917
- /* @__PURE__ */ e(Br, { className: "h-3.5 w-3.5" }),
1917
+ /* @__PURE__ */ e(Gr, { className: "h-3.5 w-3.5" }),
1918
1918
  f ? "Inspect" : "Edit"
1919
1919
  ] }),
1920
- b ? /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ s($t, { children: [
1920
+ b ? /* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ s($t, { children: [
1921
1921
  /* @__PURE__ */ e(zt, { asChild: !0, children: /* @__PURE__ */ e(
1922
1922
  "button",
1923
1923
  {
@@ -1947,8 +1947,8 @@ function Ls() {
1947
1947
  V,
1948
1948
  {
1949
1949
  size: "xs",
1950
- className: be(!Lt && "opacity-60"),
1951
- disabled: Ve || !Lt,
1950
+ className: be(!At && "opacity-60"),
1951
+ disabled: Ve || !At,
1952
1952
  onClick: () => Ye(),
1953
1953
  children: [
1954
1954
  Ve ? /* @__PURE__ */ e(ze, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ e(Yt, { className: "h-3.5 w-3.5" }),
@@ -1956,13 +1956,13 @@ function Ls() {
1956
1956
  ]
1957
1957
  }
1958
1958
  ),
1959
- k && !A && u && /* @__PURE__ */ s(V, { variant: "outline", size: "xs", onClick: Ta, children: [
1959
+ k && !L && u && /* @__PURE__ */ s(V, { variant: "outline", size: "xs", onClick: Ta, children: [
1960
1960
  /* @__PURE__ */ e(la, { className: "h-3.5 w-3.5" }),
1961
1961
  "Close"
1962
1962
  ] }),
1963
- !A && u && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(hn, {}) }),
1964
- !A && c && /* @__PURE__ */ e(Mn, {}),
1965
- !A && u && !f && /* @__PURE__ */ s(jt, { children: [
1963
+ !L && u && /* @__PURE__ */ e("div", { className: "ml-2", children: /* @__PURE__ */ e(hn, {}) }),
1964
+ !L && c && /* @__PURE__ */ e(Mn, {}),
1965
+ !L && u && !f && /* @__PURE__ */ s(jt, { children: [
1966
1966
  /* @__PURE__ */ e(Kt, { asChild: !0, children: /* @__PURE__ */ e(
1967
1967
  Ht,
1968
1968
  {
@@ -2204,8 +2204,8 @@ function Ls() {
2204
2204
  onOpenChange: (i) => {
2205
2205
  le(i);
2206
2206
  },
2207
- onSave: Ga,
2208
- onDiscard: Ba,
2207
+ onSave: Ba,
2208
+ onDiscard: Ga,
2209
2209
  isSaving: Ke,
2210
2210
  saveLabel: "Save",
2211
2211
  discardLabel: "Discard"
@@ -2232,5 +2232,5 @@ function ls({
2232
2232
  return p.searchParams.set("pdfMode", "document"), p.searchParams.set("pageSize", a || "letter"), p.searchParams.set("orientation", o || "portrait"), p.searchParams.set("url", m.toString()), p.toString();
2233
2233
  }
2234
2234
  export {
2235
- Ls as default
2235
+ As as default
2236
2236
  };
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./code-editor-BSENCZwR.js"),t=require("./dashboard-DuS8HC11.js"),T=require("./index-jSrCwPQz.js");require("./analyze-result-contract-BswhsmWT.js");require("../value-format-preferences/index.cjs");const g=require("react");require("./index-Dpm_VET4.js");require("./comparison-document-migration-DbU_BTxR.js");const st=require("react-dom");require("../briefings/index.cjs");const G=require("./dashboard-briefing-launcher-FFtLgrV4.js"),vs=require("./search-Dcud9ajy.js"),ys=require("./index-D7KJindZ.js"),tt=require("./report-preferences-dialog-Oe6nmu2r.js"),rt=require("./use-debounced-dirty-check-XHSwAefL.js"),Be=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),xs=require("./save-Xdc4pnys.js"),at=require("./palette-C0yjT5Tv.js"),nt=require("./braces-CbO-aIwH.js");function ot(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const A=ot(g);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),d=require("./code-editor-M7HTUhdF.js"),t=require("./dashboard-C-eTAAKs.js"),T=require("./index-jSrCwPQz.js");require("./analyze-result-contract-BswhsmWT.js");require("../value-format-preferences/index.cjs");const g=require("react");require("./index-Dpm_VET4.js");require("./comparison-document-migration-DbU_BTxR.js");const st=require("react-dom");require("../briefings/index.cjs");const G=require("./dashboard-briefing-launcher-dgTjPWHX.js"),vs=require("./search-Dcud9ajy.js"),ys=require("./index-D7KJindZ.js"),tt=require("./report-preferences-dialog-Ju8DjgyW.js"),rt=require("./use-debounced-dirty-check-XHSwAefL.js"),Be=require("./normalize-dashboard-for-dirty-check-BXRUMVb2.js"),xs=require("./save-Xdc4pnys.js"),at=require("./palette-C0yjT5Tv.js"),nt=require("./braces-CbO-aIwH.js");function ot(s){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const a in s)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(s,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:()=>s[a]})}}return n.default=s,Object.freeze(n)}const A=ot(g);/**
2
2
  * @license lucide-react v0.453.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./index-jSrCwPQz.js"),s=require("./code-editor-BSENCZwR.js");require("./analyze-result-contract-BswhsmWT.js");require("../value-format-preferences/index.cjs");require("./dashboard-DuS8HC11.js");require("./index-Dpm_VET4.js");require("./comparison-document-migration-DbU_BTxR.js");require("react-dom");require("../briefings/index.cjs");function S(){const t=s.useDashboardStore(e=>e.dashboard),u=s.useDashboardStore(e=>e.actions.setDashboard),c=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!c}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),u(d)}catch{}},language:"json"})})]})}exports.default=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("react"),b=require("./index-jSrCwPQz.js"),s=require("./code-editor-M7HTUhdF.js");require("./analyze-result-contract-BswhsmWT.js");require("../value-format-preferences/index.cjs");require("./dashboard-C-eTAAKs.js");require("./index-Dpm_VET4.js");require("./comparison-document-migration-DbU_BTxR.js");require("react-dom");require("../briefings/index.cjs");function S(){const t=s.useDashboardStore(e=>e.dashboard),u=s.useDashboardStore(e=>e.actions.setDashboard),c=s.useDashboardStore(e=>e.showDashboardJSON),h=s.useDashboardStore(e=>e.actions.setShowDashboardJSON),r=o.useMemo(()=>t?JSON.stringify(t,null,2):"",[t]),[l,i]=o.useState(r),n=o.useRef(r);return o.useEffect(()=>{r!==n.current&&(i(r),n.current=r)},[r]),a.jsxs("div",{className:s.cn("relative p-2",{hidden:!c}),children:[a.jsxs(s.Button,{variant:"secondary",size:"sm",className:"absolute right-2 top-2 z-10 h-8",onClick:()=>h(!1),children:[a.jsx(b.X,{className:"mr-2 h-4 w-4"}),"Close"]}),a.jsx("div",{className:"h-[550px] overflow-hidden",children:a.jsx(s.CodeEditor,{value:l,onValueChange:e=>{i(e);try{const d=JSON.parse(e);n.current=JSON.stringify(d,null,2),u(d)}catch{}},language:"json"})})]})}exports.default=S;
@@ -1,10 +1,10 @@
1
1
  import { jsxs as d, jsx as e } from "react/jsx-runtime";
2
2
  import { useMemo as u, useState as p, useRef as f, useEffect as b } from "react";
3
3
  import { X as S } from "./index-xHCrHprY.js";
4
- import { u as o, B as N, C as D, c as J } from "./code-editor-25d16KDV.js";
4
+ import { u as o, B as N, C as D, c as J } from "./code-editor-CIWiSltV.js";
5
5
  import "./analyze-result-contract-CfOBEwaC.js";
6
6
  import "../value-format-preferences/index.js";
7
- import "./dashboard-DXTiQI-G.js";
7
+ import "./dashboard--bQrQeiz.js";
8
8
  import "./index-If0wlXGi.js";
9
9
  import "./comparison-document-migration-Dj6xZMCb.js";
10
10
  import "react-dom";