@nivaro/react 0.3.63 → 0.3.65

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 (64) hide show
  1. package/dist/full.css +1 -1
  2. package/dist/hooks/useSessionRecorder.js +1 -1
  3. package/dist/index.d.ts +54 -5
  4. package/dist/shared/components/CollectionBrowserView.js +3029 -2947
  5. package/dist/shared/components/ConformanceView.js +235 -221
  6. package/dist/shared/components/DataTable.js +478 -459
  7. package/dist/shared/components/ItemEditForm.js +4469 -4266
  8. package/dist/shared/components/PageRenderer.js +146 -138
  9. package/dist/shared/components/RecordDrilldownSheet.js +73 -65
  10. package/dist/shared/components/bulk/BulkActionButtons.js +72 -72
  11. package/dist/shared/components/bulk/BulkFieldUpdate.js +114 -103
  12. package/dist/shared/components/bulk/BulkFieldUpdateButton.js +73 -0
  13. package/dist/shared/components/bulk/bulk-field-options.js +29 -23
  14. package/dist/shared/components/integrations/IntegrationObligationsView.js +191 -173
  15. package/dist/shared/components/integrations/IntegrationStatusLines.js +101 -85
  16. package/dist/shared/components/integrations/RecordIntegrationPreview.js +11 -9
  17. package/dist/shared/components/integrations/SendCurrentData.js +126 -0
  18. package/dist/shared/components/item-edit/CatalogPickerField.js +1530 -1437
  19. package/dist/shared/components/item-edit/FieldRenderer.js +49 -45
  20. package/dist/shared/components/item-edit/FieldRow.js +413 -403
  21. package/dist/shared/components/item-edit/InlineTableField.js +2903 -2816
  22. package/dist/shared/components/item-edit/M2MCombobox.js +172 -168
  23. package/dist/shared/components/item-edit/MidairCollisionDialog.js +341 -114
  24. package/dist/shared/components/item-edit/NestedRelationEditor.js +171 -163
  25. package/dist/shared/components/item-edit/PlanGrid.js +783 -724
  26. package/dist/shared/components/item-edit/QuickCreateButton.js +291 -224
  27. package/dist/shared/components/item-edit/RecordInsights.js +113 -111
  28. package/dist/shared/components/item-edit/RecordLiveSync.js +4 -1
  29. package/dist/shared/components/item-edit/RelationCombobox.js +332 -314
  30. package/dist/shared/components/item-edit/cascade-clear-notice.js +52 -0
  31. package/dist/shared/components/item-edit/collision-format.js +37 -0
  32. package/dist/shared/components/item-edit/field-a11y.js +25 -0
  33. package/dist/shared/components/item-edit/line-merge.js +58 -0
  34. package/dist/shared/components/item-edit/line-midair.js +94 -87
  35. package/dist/shared/components/item-edit/move-guard.js +17 -0
  36. package/dist/shared/components/item-edit/picker-search.js +22 -15
  37. package/dist/shared/components/item-edit/rail-width.js +8 -0
  38. package/dist/shared/components/monitoring/InactiveUserLinksView.js +322 -291
  39. package/dist/shared/components/panels/AccessDeniedPanel.js +96 -55
  40. package/dist/shared/components/panels/CommentPanel.js +142 -136
  41. package/dist/shared/components/panels/ItemLockBanner.js +246 -240
  42. package/dist/shared/components/panels/PipelinePanel.js +1366 -1194
  43. package/dist/shared/components/panels/RevisionsPanel.js +106 -102
  44. package/dist/shared/components/panels/SlaBreachBanner.js +16 -20
  45. package/dist/shared/components/panels/SlaClock.js +90 -68
  46. package/dist/shared/components/queue/QueueItemSheet.js +94 -87
  47. package/dist/shared/components/queue/QueueWorklist.js +1502 -1354
  48. package/dist/shared/components/queue/worklist-csv.js +75 -0
  49. package/dist/shared/components/queue/worklist-helpers.js +20 -0
  50. package/dist/shared/components/widgets/ReviewListWidget.js +226 -207
  51. package/dist/shared/lib/bulk-copy.js +17 -0
  52. package/dist/shared/lib/cbv-export.js +122 -0
  53. package/dist/shared/lib/delete-offer.js +13 -0
  54. package/dist/shared/lib/error-hints.js +1 -0
  55. package/dist/shared/lib/leave-guard.js +41 -26
  56. package/dist/shared/lib/list-link.js +72 -56
  57. package/dist/shared/lib/live-queries.js +32 -30
  58. package/dist/shared/lib/moved-notice.js +25 -0
  59. package/dist/shared/lib/notification-target.js +56 -54
  60. package/dist/shared/lib/obligation-banner.js +11 -8
  61. package/dist/shared/lib/obligation-reason-text.js +6 -6
  62. package/dist/shared/lib/sort-cycle.js +6 -0
  63. package/dist/shared/lib/summary-mode.js +59 -41
  64. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
1
  import { jsx as t, jsxs as p, Fragment as J } from "react/jsx-runtime";
2
- import { useQuery as G, useQueryClient as He } from "@tanstack/react-query";
3
- import { useState as j, useEffect as re, useRef as Y, useMemo as We, useCallback as Ye, useDeferredValue as Xe } from "react";
4
- import { createPortal as Ze } from "react-dom";
5
- import { useNivaroClient as X, useItemEditAuth as et, useDrilldown as Ee, useOverlayState as tt, DrilldownContext as rt, useItemNavigation as nt } from "../context.js";
6
- import { useDebounced as at } from "../hooks/useDebounced.js";
2
+ import { useQuery as G, useQueryClient as Ye } from "@tanstack/react-query";
3
+ import { useState as j, useEffect as re, useRef as Y, useMemo as Me, useCallback as Xe, useDeferredValue as Ze } from "react";
4
+ import { createPortal as et } from "react-dom";
5
+ import { useNivaroClient as X, useItemEditAuth as tt, useDrilldown as Le, useOverlayState as rt, DrilldownContext as nt, useItemNavigation as at } from "../context.js";
6
+ import { useDebounced as lt } from "../hooks/useDebounced.js";
7
7
  import { get as me, post as ne } from "../lib/commands.js";
8
- import { describeError as lt } from "../lib/error-message.js";
9
- import { visiblePageWidgets as st } from "../lib/page-widget-access.js";
10
- import { explicitAllUrlParams as ot, initialFilterSelection as it, filterSelectionToSearch as dt } from "../lib/query-filter-seed.js";
11
- import { userErrorMessage as Le } from "../lib/safe-error.js";
12
- import { safeLinkKind as ct } from "../lib/safe-href.js";
13
- import { resolveSheetDef as ut } from "../lib/sheet-def.js";
14
- import { uniqueByValue as mt } from "../lib/unique-options.js";
15
- import { useMyScopes as ht, matchScopeDimension as Me, effectiveScopeSeedIds as pt, translateScopeValues as xt } from "../lib/use-my-scopes.js";
16
- import { titleCase as K, formatRelative as ft, formatNumber as bt } from "../lib/utils.js";
17
- import { CacheStamp as gt } from "./CacheStamp.js";
18
- import { RelationCombobox as yt } from "./item-edit/RelationCombobox.js";
8
+ import { describeError as st } from "../lib/error-message.js";
9
+ import { visiblePageWidgets as ot } from "../lib/page-widget-access.js";
10
+ import { explicitAllUrlParams as it, initialFilterSelection as dt, filterSelectionToSearch as ct } from "../lib/query-filter-seed.js";
11
+ import { userErrorMessage as Be } from "../lib/safe-error.js";
12
+ import { safeLinkKind as ut } from "../lib/safe-href.js";
13
+ import { resolveSheetDef as mt } from "../lib/sheet-def.js";
14
+ import { uniqueByValue as ht } from "../lib/unique-options.js";
15
+ import { useMyScopes as pt, matchScopeDimension as Oe, effectiveScopeSeedIds as xt, translateScopeValues as ft } from "../lib/use-my-scopes.js";
16
+ import { titleCase as K, formatRelative as bt, formatNumber as gt } from "../lib/utils.js";
17
+ import { CacheStamp as yt } from "./CacheStamp.js";
18
+ import { RelationCombobox as vt } from "./item-edit/RelationCombobox.js";
19
19
  import { MatrixEditor as he } from "./MatrixEditor.js";
20
- import { QueryStatStrip as vt } from "./QueryStatStrip.js";
21
- import { QueryTable as kt } from "./QueryTable.js";
22
- import { RecordDrilldownSheet as wt } from "./RecordDrilldownSheet.js";
23
- import { RecordGridEditor as Oe } from "./RecordGridEditor.js";
24
- import { SheetHeaderBody as Nt } from "./SheetHeaderBody.js";
20
+ import { QueryStatStrip as kt } from "./QueryStatStrip.js";
21
+ import { QueryTable as wt } from "./QueryTable.js";
22
+ import { RecordDrilldownSheet as Nt } from "./RecordDrilldownSheet.js";
23
+ import { RecordGridEditor as Fe } from "./RecordGridEditor.js";
24
+ import { SheetHeaderBody as St } from "./SheetHeaderBody.js";
25
25
  const ce = 76;
26
26
  function ae() {
27
27
  return /* @__PURE__ */ t("div", { className: "space-y-1.5 p-3", children: [1, 2, 3].map((e) => /* @__PURE__ */ t(
@@ -33,10 +33,10 @@ function ae() {
33
33
  )) });
34
34
  }
35
35
  function le({ error: e, unresolved: r }) {
36
- const n = Ot(e, r) ?? Le(e, "Failed to load widget data");
36
+ const n = Ft(e, r) ?? Be(e, "Failed to load widget data");
37
37
  return /* @__PURE__ */ t("div", { className: "flex h-full items-center justify-center p-3 text-[12px] text-amber-600 dark:text-amber-500", children: n });
38
38
  }
39
- function St(e) {
39
+ function $t(e) {
40
40
  if (e == null) return "—";
41
41
  if (typeof e == "boolean") return e ? "true" : "false";
42
42
  const r = String(e);
@@ -64,13 +64,13 @@ function ue(e, r) {
64
64
  );
65
65
  else {
66
66
  const o = l.match(/^\[([^\]]+)\]\(([^)]+)\)$/);
67
- o && ct(o[2]) !== null ? n.push(
67
+ o && ut(o[2]) !== null ? n.push(
68
68
  /* @__PURE__ */ t("a", { href: o[2], className: "text-nvr-cyan underline-offset-2 hover:underline", children: o[1] }, c)
69
69
  ) : n.push(l);
70
70
  }
71
71
  }), n;
72
72
  }
73
- function $t({ content: e }) {
73
+ function _t({ content: e }) {
74
74
  const r = [];
75
75
  let n = [], a = [], l = !1;
76
76
  const u = (o) => {
@@ -110,9 +110,9 @@ function pe(e, r, n) {
110
110
  staleTime: 3e4
111
111
  });
112
112
  }
113
- function _t({ slug: e, widget: r }) {
113
+ function Ct({ slug: e, widget: r }) {
114
114
  var m;
115
- const n = r.config ?? {}, { data: a, isLoading: l, error: u } = pe(e, r, !!n.collection), c = nt();
115
+ const n = r.config ?? {}, { data: a, isLoading: l, error: u } = pe(e, r, !!n.collection), c = at();
116
116
  if (!n.collection)
117
117
  return /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Select a collection" });
118
118
  if (l) return /* @__PURE__ */ t(ae, {});
@@ -141,7 +141,7 @@ function _t({ slug: e, widget: r }) {
141
141
  "td",
142
142
  {
143
143
  className: "whitespace-nowrap px-3 py-1.5 text-slate-700 dark:text-slate-300",
144
- children: St(x[_])
144
+ children: $t(x[_])
145
145
  },
146
146
  _
147
147
  ))
@@ -150,14 +150,14 @@ function _t({ slug: e, widget: r }) {
150
150
  )) })
151
151
  ] }) });
152
152
  }
153
- function Ct({ slug: e, widget: r }) {
153
+ function qt({ slug: e, widget: r }) {
154
154
  const n = r.config ?? {}, { data: a, isLoading: l, error: u } = pe(e, r, !!n.collection);
155
155
  return n.collection ? u ? /* @__PURE__ */ t(le, { error: u }) : /* @__PURE__ */ p("div", { className: "flex h-full flex-col items-start justify-center px-4", children: [
156
- l ? /* @__PURE__ */ t("div", { className: "h-9 w-24 animate-pulse rounded bg-slate-100 dark:bg-[hsl(var(--nvr-skeleton))]" }) : /* @__PURE__ */ t("span", { className: "text-[32px] font-semibold leading-none tracking-tight text-slate-900 dark:text-slate-100", children: (a == null ? void 0 : a.value) != null ? bt(Number(a.value)) : "—" }),
156
+ l ? /* @__PURE__ */ t("div", { className: "h-9 w-24 animate-pulse rounded bg-slate-100 dark:bg-[hsl(var(--nvr-skeleton))]" }) : /* @__PURE__ */ t("span", { className: "text-[32px] font-semibold leading-none tracking-tight text-slate-900 dark:text-slate-100", children: (a == null ? void 0 : a.value) != null ? gt(Number(a.value)) : "—" }),
157
157
  /* @__PURE__ */ t("span", { className: "mt-1.5 text-[12px] text-slate-400", children: n.label || `${n.aggregate ?? "count"} of ${n.collection}` })
158
158
  ] }) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Select a collection" });
159
159
  }
160
- function qt({ slug: e, widget: r }) {
160
+ function Tt({ slug: e, widget: r }) {
161
161
  const { data: n, isLoading: a, error: l } = pe(e, r, !0);
162
162
  if (a) return /* @__PURE__ */ t(ae, {});
163
163
  if (l) return /* @__PURE__ */ t(le, { error: l });
@@ -172,13 +172,13 @@ function qt({ slug: e, widget: r }) {
172
172
  c.collection,
173
173
  c.item ? ` · ${c.item}` : ""
174
174
  ] }),
175
- /* @__PURE__ */ t("span", { className: "ml-auto shrink-0 text-[11px] text-slate-400", children: ft(c.timestamp) })
175
+ /* @__PURE__ */ t("span", { className: "ml-auto shrink-0 text-[11px] text-slate-400", children: bt(c.timestamp) })
176
176
  ]
177
177
  },
178
178
  c.id
179
179
  )) }) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "No activity" });
180
180
  }
181
- function Tt({ widget: e }) {
181
+ function jt({ widget: e }) {
182
182
  var n;
183
183
  const r = String(((n = e.config) == null ? void 0 : n.url) ?? "");
184
184
  return r ? /^https?:\/\//i.test(r) ? /* @__PURE__ */ t(
@@ -191,7 +191,7 @@ function Tt({ widget: e }) {
191
191
  }
192
192
  ) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-amber-600", children: "URL must start with http(s)://" }) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Set an iframe URL" });
193
193
  }
194
- function Be({
194
+ function De({
195
195
  config: e,
196
196
  initialScope: r,
197
197
  width: n,
@@ -223,7 +223,7 @@ function Be({
223
223
  }
224
224
  ) });
225
225
  }
226
- function jt({ widget: e }) {
226
+ function Rt({ widget: e }) {
227
227
  const r = e.config ?? {}, [n, a] = j(!1);
228
228
  return !r.target_collection || !r.option_collection || !r.key_field || !r.value_field ? /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Matrix editor not configured" }) : r.display === "drawer" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center", children: [
229
229
  /* @__PURE__ */ t(
@@ -236,7 +236,7 @@ function jt({ widget: e }) {
236
236
  }
237
237
  ),
238
238
  n && /* @__PURE__ */ t(
239
- Be,
239
+ De,
240
240
  {
241
241
  config: r,
242
242
  width: r.sheet_width,
@@ -245,23 +245,23 @@ function jt({ widget: e }) {
245
245
  )
246
246
  ] }) : /* @__PURE__ */ t(he, { config: r });
247
247
  }
248
- function Rt(e) {
249
- return it(
248
+ function Wt(e) {
249
+ return dt(
250
250
  e,
251
251
  typeof window > "u" ? "" : window.location.search
252
252
  );
253
253
  }
254
- function Fe(e, r) {
254
+ function Pe(e, r) {
255
255
  const n = [...new Set(e.map((a) => a[r]).filter((a) => a != null && a !== ""))];
256
256
  return n.length ? n.map(String).join(",") : void 0;
257
257
  }
258
- function De(e, r, n, a, l, u, c) {
258
+ function Ie(e, r, n, a, l, u, c) {
259
259
  if (typeof e != "string") return e;
260
260
  if (e.startsWith("$row.")) {
261
261
  const o = e.slice(5);
262
- return !r && c ? Fe(c, o) : r == null ? void 0 : r[o];
262
+ return !r && c ? Pe(c, o) : r == null ? void 0 : r[o];
263
263
  }
264
- if (e.startsWith("$rows.")) return Fe(n, e.slice(6));
264
+ if (e.startsWith("$rows.")) return Pe(n, e.slice(6));
265
265
  if (e.startsWith("$param.")) return a[e.slice(7)];
266
266
  if (e.startsWith("$filters.")) {
267
267
  const o = e.slice(9), s = u == null ? void 0 : u.find((x) => x.param === o), m = l[o] ?? [];
@@ -269,15 +269,15 @@ function De(e, r, n, a, l, u, c) {
269
269
  }
270
270
  return e;
271
271
  }
272
- function Wt(e, r, n, a, l, u, c) {
272
+ function Mt(e, r, n, a, l, u, c) {
273
273
  const o = {}, s = [];
274
274
  for (const [m, x] of Object.entries(e.params ?? {})) {
275
- const k = De(x, r, n, a, l, u, c);
275
+ const k = Ie(x, r, n, a, l, u, c);
276
276
  k !== void 0 ? o[m] = k : typeof x == "string" && (x.startsWith("$row.") || x.startsWith("$rows.")) && s.push(m);
277
277
  }
278
278
  return { ...e, params: o, ...s.length ? { unresolved_params: s } : {} };
279
279
  }
280
- function Mt(e, r) {
280
+ function Ot(e, r) {
281
281
  var l, u;
282
282
  let n = (l = e.row_noun) == null ? void 0 : l.trim();
283
283
  if (!n) {
@@ -287,13 +287,13 @@ function Mt(e, r) {
287
287
  const a = r === 1 && n.endsWith("s") ? n.slice(0, -1) : n;
288
288
  return `Total of ${r.toLocaleString("en-US")} ${a}`;
289
289
  }
290
- function Ot(e, r) {
291
- const n = lt(e), a = [n.title, n.technical ?? ""].join(" "), l = /Missing required parameter:\s*([\w]+)/i.exec(a);
290
+ function Ft(e, r) {
291
+ const n = st(e), a = [n.title, n.technical ?? ""].join(" "), l = /Missing required parameter:\s*([\w]+)/i.exec(a);
292
292
  if (!l) return null;
293
293
  const u = K(l[1]).toLowerCase();
294
294
  return r != null && r.includes(l[1]) ? `Nothing to show: the row you opened has no ${u}.` : `Choose ${u} to see this view.`;
295
295
  }
296
- function Ft({
296
+ function Pt({
297
297
  config: e,
298
298
  stats: r,
299
299
  asOf: n,
@@ -313,7 +313,7 @@ function Ft({
313
313
  className: "shrink-0 border-b border-slate-200 bg-white px-4 py-3 dark:border-border dark:bg-card",
314
314
  "data-sheet-header": !0,
315
315
  children: /* @__PURE__ */ t(
316
- Nt,
316
+ St,
317
317
  {
318
318
  stats: r,
319
319
  rows: (c == null ? void 0 : c.data) ?? [],
@@ -327,13 +327,13 @@ function Ft({
327
327
  }
328
328
  );
329
329
  }
330
- function Pt({
330
+ function At({
331
331
  def: e,
332
332
  row: r,
333
333
  totalCount: n,
334
334
  onClose: a
335
335
  }) {
336
- const [l, u] = j(e.initialTab ?? 0), c = !r && n != null ? Mt(e, n) : e.title ? e.title.replace(/\{\{\s*([\w.]+)\s*\}\}/g, (m, x) => {
336
+ const [l, u] = j(e.initialTab ?? 0), c = !r && n != null ? Ot(e, n) : e.title ? e.title.replace(/\{\{\s*([\w.]+)\s*\}\}/g, (m, x) => {
337
337
  const k = r == null ? void 0 : r[x];
338
338
  return k == null ? "" : String(k);
339
339
  }) : "Details", o = typeof e.width == "number" ? `${e.width}px` : e.width ?? "90%", s = e.resolvedTabs[l];
@@ -369,7 +369,7 @@ function Pt({
369
369
  )
370
370
  ] }),
371
371
  e.header && /* @__PURE__ */ t(
372
- Ft,
372
+ Pt,
373
373
  {
374
374
  config: e.header.config,
375
375
  stats: e.header.stats,
@@ -394,13 +394,13 @@ function Pt({
394
394
  children: s.note
395
395
  }
396
396
  ),
397
- /* @__PURE__ */ t(Ie, { config: s.config }, l)
397
+ /* @__PURE__ */ t(ze, { config: s.config }, l)
398
398
  ] }) : /* @__PURE__ */ t("p", { className: "p-4 text-[12px] text-slate-400", children: "Sheet not configured" }) })
399
399
  ]
400
400
  }
401
401
  ) });
402
402
  }
403
- function At(e, r, n, a) {
403
+ function Et(e, r, n, a) {
404
404
  if (!e) return;
405
405
  const l = (s) => {
406
406
  const m = /^\$filters\.(\w+)(?:\.(\w+))?$/.exec(s);
@@ -414,11 +414,11 @@ function At(e, r, n, a) {
414
414
  ) : s, c = (s) => s === void 0 ? !0 : Array.isArray(s) ? s.some(c) : s && typeof s == "object" ? Object.values(s).some(c) : !1, o = u(e);
415
415
  return Array.isArray(o._and) && (o._and = o._and.filter((s) => !c(s))), c(o) ? void 0 : o;
416
416
  }
417
- const Et = 400, Lt = 2500;
418
- function Pe(e, r) {
417
+ const Lt = 400, Bt = 2500;
418
+ function Ae(e, r) {
419
419
  return e.map((n) => String(n[r] ?? "")).sort().join("\0");
420
420
  }
421
- function Bt({
421
+ function Dt({
422
422
  filter: e,
423
423
  selected: r,
424
424
  onChange: n,
@@ -451,7 +451,7 @@ function Bt({
451
451
  return { rows: C, more: B };
452
452
  }),
453
453
  staleTime: 6e4
454
- }), F = (M == null ? void 0 : M.rows) ?? [], T = (M == null ? void 0 : M.more) === !0, R = x.trim(), P = Xe(R), { data: d = [] } = G({
454
+ }), F = (M == null ? void 0 : M.rows) ?? [], T = (M == null ? void 0 : M.more) === !0, R = x.trim(), P = Ze(R), { data: d = [] } = G({
455
455
  queryKey: ["page-renderer-filter-search", e.collection, O, P],
456
456
  enabled: T && P.length > 0,
457
457
  queryFn: () => c.request(
@@ -472,7 +472,7 @@ function Bt({
472
472
  };
473
473
  return window.addEventListener("mousedown", b), () => window.removeEventListener("mousedown", b);
474
474
  }, [o]);
475
- const y = e.label ?? K(e.param), L = T && R ? [...r, ...d] : F, Q = mt(
475
+ const y = e.label ?? K(e.param), L = T && R ? [...r, ...d] : F, Q = ht(
476
476
  a != null && a.length ? L.filter((b) => a.some((C) => String(C) === String(b.id))) : L,
477
477
  (b) => String(b[w] ?? "")
478
478
  ), U = (b) => [b[w], b[q], S ? b[S] : null].filter((C) => C != null && C !== "").join(" ").toLowerCase(), I = Q.filter(
@@ -563,10 +563,10 @@ function Bt({
563
563
  ] })
564
564
  ] });
565
565
  }
566
- function Dt({ widget: e }) {
567
- return /* @__PURE__ */ t(Ie, { config: e.config ?? {} });
568
- }
569
566
  function It({ widget: e }) {
567
+ return /* @__PURE__ */ t(ze, { config: e.config ?? {} });
568
+ }
569
+ function zt({ widget: e }) {
570
570
  const r = e.config ?? {}, [n, a] = j(!1);
571
571
  return r.collection ? r.display === "drawer" ? /* @__PURE__ */ p("div", { className: "flex h-full items-center", children: [
572
572
  /* @__PURE__ */ t(
@@ -605,15 +605,15 @@ function It({ widget: e }) {
605
605
  }
606
606
  )
607
607
  ] }),
608
- /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: /* @__PURE__ */ t(Oe, { config: r }) })
608
+ /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: /* @__PURE__ */ t(Fe, { config: r }) })
609
609
  ]
610
610
  }
611
611
  )
612
612
  }
613
613
  )
614
- ] }) : /* @__PURE__ */ t(Oe, { config: r }) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Configure the record grid (collection)" });
614
+ ] }) : /* @__PURE__ */ t(Fe, { config: r }) : /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Configure the record grid (collection)" });
615
615
  }
616
- function zt({
616
+ function Kt({
617
617
  cfg: e
618
618
  }) {
619
619
  const [r, n] = j(!1), a = { ...e };
@@ -654,7 +654,7 @@ function zt({
654
654
  }
655
655
  )
656
656
  ] }),
657
- /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: /* @__PURE__ */ t(ze, { config: a }) })
657
+ /* @__PURE__ */ t("div", { className: "min-h-0 flex-1 overflow-auto", children: /* @__PURE__ */ t(Ke, { config: a }) })
658
658
  ]
659
659
  }
660
660
  )
@@ -662,25 +662,25 @@ function zt({
662
662
  )
663
663
  ] });
664
664
  }
665
- function Ie({ config: e }) {
666
- return e.display === "drawer" ? /* @__PURE__ */ t(zt, { cfg: e }) : /* @__PURE__ */ t(ze, { config: e });
667
- }
668
665
  function ze({ config: e }) {
669
- var Ne, Se, $e, _e, Ce, qe, Te, je, Re;
670
- const r = X(), n = Ee(), [a, l] = j(null), [u, c] = j(null), [o, s] = j(null), [m, x] = j(
671
- () => Rt(e.filters)
666
+ return e.display === "drawer" ? /* @__PURE__ */ t(Kt, { cfg: e }) : /* @__PURE__ */ t(Ke, { config: e });
667
+ }
668
+ function Ke({ config: e }) {
669
+ var Ne, Se, $e, _e, Ce, qe, Te, je, Re, We;
670
+ const r = X(), n = Le(), [a, l] = j(null), [u, c] = j(null), [o, s] = j(null), [m, x] = j(
671
+ () => Wt(e.filters)
672
672
  ), [k] = j(
673
- () => ot(e.filters, typeof window > "u" ? "" : window.location.search)
673
+ () => it(e.filters, typeof window > "u" ? "" : window.location.search)
674
674
  ), _ = (i, h) => {
675
675
  const f = { ...m, [i]: h };
676
676
  if (x(f), typeof window > "u" || !(e.filters ?? []).some((v) => v.url_param)) return;
677
- const g = dt(e.filters, f, window.location.search);
677
+ const g = ct(e.filters, f, window.location.search);
678
678
  g !== window.location.search && window.history.replaceState(
679
679
  window.history.state,
680
680
  "",
681
681
  `${window.location.pathname}${g}${window.location.hash}`
682
682
  );
683
- }, [w, q] = j(null), [S, O] = j(null), M = (S == null ? void 0 : S.phase) === "running", F = He();
683
+ }, [w, q] = j(null), [S, O] = j(null), M = (S == null ? void 0 : S.phase) === "running", F = Ye();
684
684
  re(() => {
685
685
  if ((S == null ? void 0 : S.phase) !== "running") return;
686
686
  const i = window.setInterval(() => {
@@ -690,7 +690,7 @@ function ze({ config: e }) {
690
690
  }, 250);
691
691
  return () => window.clearInterval(i);
692
692
  }, [S == null ? void 0 : S.phase]);
693
- const { scopes: T, ready: R } = ht(), P = Y(!1), [d, y] = j(!1), [L, Q] = j(/* @__PURE__ */ new Map());
693
+ const { scopes: T, ready: R } = pt(), P = Y(!1), [d, y] = j(!1), [L, Q] = j(/* @__PURE__ */ new Map());
694
694
  re(() => {
695
695
  if (P.current || !R) return;
696
696
  P.current = !0;
@@ -705,11 +705,11 @@ function ze({ config: e }) {
705
705
  try {
706
706
  const h = {};
707
707
  for (const f of i) {
708
- const g = Me(T, { key: f.param, collection: f.collection });
708
+ const g = Oe(T, { key: f.param, collection: f.collection });
709
709
  if (!g) continue;
710
- const v = pt(T, g.name);
710
+ const v = xt(T, g.name);
711
711
  if (!v.length) continue;
712
- const $ = f.value_field ?? "id", E = await xt(
712
+ const $ = f.value_field ?? "id", E = await ft(
713
713
  r,
714
714
  g,
715
715
  v,
@@ -730,7 +730,7 @@ function ze({ config: e }) {
730
730
  Object.entries(h).map(([f, g]) => {
731
731
  var $;
732
732
  const v = (($ = (e.filters ?? []).find((E) => E.param === f)) == null ? void 0 : $.value_field) ?? "id";
733
- return [f, Pe(g, v)];
733
+ return [f, Ae(g, v)];
734
734
  })
735
735
  )
736
736
  ));
@@ -739,17 +739,17 @@ function ze({ config: e }) {
739
739
  }
740
740
  })();
741
741
  }, [R, T, e.filters, m, r, k]);
742
- const U = We(() => {
742
+ const U = Me(() => {
743
743
  const i = { ...e.params ?? {} };
744
744
  for (const h of e.filters ?? []) {
745
745
  const f = m[h.param] ?? [];
746
746
  f.length > 0 && (i[h.param] = f.map((g) => String(g[h.value_field ?? "id"] ?? "")).join(","));
747
747
  }
748
748
  return i;
749
- }, [e.params, e.filters, m]), [I, V] = j(/* @__PURE__ */ new Set()), D = Y(!1), b = JSON.stringify(U), C = at(
749
+ }, [e.params, e.filters, m]), [I, V] = j(/* @__PURE__ */ new Set()), D = Y(!1), b = JSON.stringify(U), C = lt(
750
750
  b,
751
- D.current ? I.size > 0 ? Lt : Et : 0
752
- ), B = D.current ? C : b, A = We(
751
+ D.current ? I.size > 0 ? Bt : Lt : 0
752
+ ), B = D.current ? C : b, A = Me(
753
753
  () => JSON.parse(B),
754
754
  [B]
755
755
  ), se = Y(!1), {
@@ -758,7 +758,7 @@ function ze({ config: e }) {
758
758
  error: fe,
759
759
  refetch: be,
760
760
  isFetching: ge,
761
- isPlaceholderData: Ke
761
+ isPlaceholderData: Qe
762
762
  } = G({
763
763
  queryKey: ["page-renderer-query", e.query_slug, B],
764
764
  queryFn: () => {
@@ -777,15 +777,15 @@ function ze({ config: e }) {
777
777
  // reset its view state — "Hide empty rows" switched itself off (L13).
778
778
  // Only the same query's answer stands in; another slug starts fresh.
779
779
  placeholderData: (i, h) => (h == null ? void 0 : h.queryKey[1]) === e.query_slug ? i : void 0
780
- }), H = z == null ? void 0 : z.data, Z = Ke && ge, Qe = Ye(() => {
780
+ }), H = z == null ? void 0 : z.data, Z = Qe && ge, Ue = Xe(() => {
781
781
  se.current = !0, be();
782
782
  }, [be]), ye = xe;
783
783
  if (!e.query_slug) return /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Set a query slug" });
784
- const Ue = (i) => {
784
+ const Ve = (i) => {
785
785
  var v;
786
786
  const h = {};
787
787
  for (const [$, E] of Object.entries(i.params ?? {})) {
788
- const W = De(E, null, H ?? [], A, m, e.filters);
788
+ const W = Ie(E, null, H ?? [], A, m, e.filters);
789
789
  if (W === void 0) {
790
790
  q(`Select a value for "${$}" first`);
791
791
  return;
@@ -820,29 +820,29 @@ function ze({ config: e }) {
820
820
  `${i.action.success_message ?? `${i.action.label} completed`} · ${te(Date.now() - h)}`
821
821
  ), F.invalidateQueries({ queryKey: ["page-renderer-query", e.query_slug] });
822
822
  } catch (f) {
823
- const g = Le(f, "unknown error");
823
+ const g = Be(f, "unknown error");
824
824
  O(
825
825
  (v) => v && v.action === i.action ? { ...v, phase: "error", elapsedMs: Date.now() - h, error: g } : v
826
826
  ), q(`${i.action.label} failed: ${g}`);
827
827
  }
828
- }, Ve = /* @__PURE__ */ t(
829
- gt,
828
+ }, Je = /* @__PURE__ */ t(
829
+ yt,
830
830
  {
831
831
  envelope: z,
832
- onRefresh: Qe,
832
+ onRefresh: Ue,
833
833
  refreshing: ge && !xe,
834
834
  className: "ml-auto"
835
835
  }
836
836
  ), oe = e.filters && e.filters.length > 0 || (Ne = e.actions) != null && Ne.length || z != null && z.cache_ttl ? /* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-2 pb-2", children: [
837
837
  (e.filters ?? []).map((i) => {
838
- const h = Me(T, { key: i.param, collection: i.collection }), f = h ? (T == null ? void 0 : T.restricted[h.name]) ?? [] : [];
838
+ const h = Oe(T, { key: i.param, collection: i.collection }), f = h ? (T == null ? void 0 : T.restricted[h.name]) ?? [] : [];
839
839
  return /* @__PURE__ */ t(
840
- Bt,
840
+ Dt,
841
841
  {
842
842
  filter: i,
843
843
  selected: m[i.param] ?? [],
844
844
  allowedIds: f.length > 0 ? f : void 0,
845
- scopeDefault: L.has(i.param) && L.get(i.param) === Pe(m[i.param] ?? [], i.value_field ?? "id"),
845
+ scopeDefault: L.has(i.param) && L.get(i.param) === Ae(m[i.param] ?? [], i.value_field ?? "id"),
846
846
  onChange: (g) => {
847
847
  D.current = !0, _(i.param, g);
848
848
  },
@@ -860,16 +860,16 @@ function ze({ config: e }) {
860
860
  {
861
861
  type: "button",
862
862
  disabled: M,
863
- onClick: () => void Ue(i),
863
+ onClick: () => void Ve(i),
864
864
  className: "ml-auto inline-flex h-8 items-center rounded-md bg-nvr-cyan px-3 text-[12px] font-semibold text-white hover:opacity-90 disabled:opacity-50",
865
865
  children: M ? "Running…" : i.label
866
866
  },
867
867
  i.label
868
868
  )),
869
869
  w && /* @__PURE__ */ t("span", { className: "text-[12px] text-slate-500", children: w }),
870
- Ve
870
+ Je
871
871
  ] }) : null, ke = (Se = e.stats) != null && Se.length ? /* @__PURE__ */ t(
872
- vt,
872
+ kt,
873
873
  {
874
874
  stats: e.stats,
875
875
  rows: H ?? [],
@@ -890,7 +890,7 @@ function ze({ config: e }) {
890
890
  /* @__PURE__ */ t(le, { error: fe, unresolved: e.unresolved_params })
891
891
  ] });
892
892
  const N = e.row_click, we = (i, h, f) => {
893
- const g = h ? null : f ?? H ?? [], $ = ut(i, (W) => Wt(
893
+ const g = h ? null : f ?? H ?? [], $ = mt(i, (W) => Mt(
894
894
  W,
895
895
  h,
896
896
  H ?? [],
@@ -925,14 +925,14 @@ function ze({ config: e }) {
925
925
  row: h,
926
926
  totalCount: g ? g.length : null
927
927
  });
928
- }, Je = N ? (i) => {
928
+ }, Ge = N ? (i) => {
929
929
  N.picker ? l(i) : N.sheet ? we(N.sheet, i) : N.matrix && i.id != null ? c(i.id) : N.drill && i.id != null && (n == null || n.open({
930
930
  collection: N.drill.collection ?? "",
931
931
  itemId: String(i.id),
932
932
  layoutId: N.drill.layout_id,
933
933
  width: N.drill.width
934
934
  }));
935
- } : void 0, Ge = (_e = e.row_actions) != null && _e.length ? e.row_actions.map((i) => ({
935
+ } : void 0, He = (_e = e.row_actions) != null && _e.length ? e.row_actions.map((i) => ({
936
936
  label: i.label,
937
937
  onClick: (h, f) => we(i.sheet, h, f)
938
938
  })) : void 0;
@@ -946,28 +946,36 @@ function ze({ config: e }) {
946
946
  ) : "h-full overflow-auto p-3",
947
947
  children: [
948
948
  oe,
949
+ ((qe = e.note) == null ? void 0 : qe.trim()) && /* @__PURE__ */ t(
950
+ "p",
951
+ {
952
+ "data-query-note": !0,
953
+ className: "mb-2 shrink-0 text-[11.5px] leading-snug text-slate-500 dark:text-slate-400",
954
+ children: e.note
955
+ }
956
+ ),
949
957
  ke,
950
958
  /* @__PURE__ */ t(
951
959
  "div",
952
960
  {
953
961
  "data-qt-refetching": Z ? "" : void 0,
954
962
  "aria-busy": Z || void 0,
955
- className: `transition-opacity ${Z ? "opacity-60" : ""} ${(qe = e.table) != null && qe.sticky ? "flex min-h-0 flex-1 flex-col" : ""}`.trim(),
963
+ className: `transition-opacity ${Z ? "opacity-60" : ""} ${(Te = e.table) != null && Te.sticky ? "flex min-h-0 flex-1 flex-col" : ""}`.trim(),
956
964
  children: /* @__PURE__ */ t(
957
- kt,
965
+ wt,
958
966
  {
959
967
  rows: H ?? [],
960
968
  config: (
961
969
  // Current-month highlight only applies when the selected year param
962
970
  // IS the current year — otherwise strip it.
963
- (Te = e.table) != null && Te.highlight_group && e.table.highlight_year_param ? Number(
971
+ (je = e.table) != null && je.highlight_group && e.table.highlight_year_param ? Number(
964
972
  String(A[e.table.highlight_year_param] ?? "").split(",")[0]
965
973
  ) === (/* @__PURE__ */ new Date()).getFullYear() ? e.table : { ...e.table, highlight_group: void 0 } : e.table
966
974
  ),
967
- onRowClick: Je,
968
- rowActions: Ge,
975
+ onRowClick: Ge,
976
+ rowActions: He,
969
977
  emptyText: e.empty_label,
970
- pivotYear: (Re = (je = e.table) == null ? void 0 : je.pivot) != null && Re.year_param && Number(String(A[e.table.pivot.year_param] ?? "").split(",")[0]) || void 0
978
+ pivotYear: (We = (Re = e.table) == null ? void 0 : Re.pivot) != null && We.year_param && Number(String(A[e.table.pivot.year_param] ?? "").split(",")[0]) || void 0
971
979
  }
972
980
  )
973
981
  }
@@ -985,7 +993,7 @@ function ze({ config: e }) {
985
993
  children: [
986
994
  /* @__PURE__ */ t("p", { className: "mb-2 text-[13px] font-semibold text-slate-700 dark:text-slate-200", children: N.picker.title ?? "Choose a record" }),
987
995
  /* @__PURE__ */ t(
988
- yt,
996
+ vt,
989
997
  {
990
998
  collection: N.picker.collection,
991
999
  value: null,
@@ -1004,7 +1012,7 @@ function ze({ config: e }) {
1004
1012
  });
1005
1013
  }
1006
1014
  },
1007
- extraFilter: At(N.picker.filter, a, m, e.filters),
1015
+ extraFilter: Et(N.picker.filter, a, m, e.filters),
1008
1016
  placeholder: "Search…"
1009
1017
  }
1010
1018
  ),
@@ -1023,7 +1031,7 @@ function ze({ config: e }) {
1023
1031
  }
1024
1032
  ),
1025
1033
  (N == null ? void 0 : N.matrix) && u != null && /* @__PURE__ */ t(
1026
- Be,
1034
+ De,
1027
1035
  {
1028
1036
  config: N.matrix.config,
1029
1037
  initialScope: { [N.matrix.scope_field]: u },
@@ -1033,7 +1041,7 @@ function ze({ config: e }) {
1033
1041
  }
1034
1042
  ),
1035
1043
  o && /* @__PURE__ */ t(
1036
- Pt,
1044
+ At,
1037
1045
  {
1038
1046
  def: o.def,
1039
1047
  row: o.row,
@@ -1042,7 +1050,7 @@ function ze({ config: e }) {
1042
1050
  }
1043
1051
  ),
1044
1052
  S && /* @__PURE__ */ t(
1045
- Kt,
1053
+ Qt,
1046
1054
  {
1047
1055
  run: S,
1048
1056
  onConfirm: () => void ve(S),
@@ -1056,13 +1064,13 @@ function ze({ config: e }) {
1056
1064
  );
1057
1065
  }
1058
1066
  const te = (e) => e < 6e4 ? `${(e / 1e3).toFixed(e < 1e4 ? 1 : 0)}s` : `${Math.floor(e / 6e4)}m ${Math.round(e % 6e4 / 1e3)}s`;
1059
- function Kt({
1067
+ function Qt({
1060
1068
  run: e,
1061
1069
  onConfirm: r,
1062
1070
  onClose: n
1063
1071
  }) {
1064
1072
  const a = Object.entries(e.params);
1065
- return Ze(
1073
+ return et(
1066
1074
  /* @__PURE__ */ p(J, { children: [
1067
1075
  /* @__PURE__ */ t(
1068
1076
  "div",
@@ -1175,32 +1183,32 @@ function Kt({
1175
1183
  document.body
1176
1184
  );
1177
1185
  }
1178
- function Ae({ slug: e, widget: r }) {
1186
+ function Ee({ slug: e, widget: r }) {
1179
1187
  var n;
1180
1188
  switch (r.type) {
1181
1189
  case "table":
1182
- return /* @__PURE__ */ t(_t, { slug: e, widget: r });
1183
- case "kpi":
1184
1190
  return /* @__PURE__ */ t(Ct, { slug: e, widget: r });
1191
+ case "kpi":
1192
+ return /* @__PURE__ */ t(qt, { slug: e, widget: r });
1185
1193
  case "markdown":
1186
- return /* @__PURE__ */ t($t, { content: String(((n = r.config) == null ? void 0 : n.content) ?? "") });
1194
+ return /* @__PURE__ */ t(_t, { content: String(((n = r.config) == null ? void 0 : n.content) ?? "") });
1187
1195
  case "iframe":
1188
- return /* @__PURE__ */ t(Tt, { widget: r });
1196
+ return /* @__PURE__ */ t(jt, { widget: r });
1189
1197
  case "query":
1190
- return /* @__PURE__ */ t(Dt, { widget: r });
1198
+ return /* @__PURE__ */ t(It, { widget: r });
1191
1199
  case "matrix":
1192
- return /* @__PURE__ */ t(jt, { widget: r });
1200
+ return /* @__PURE__ */ t(Rt, { widget: r });
1193
1201
  case "record-grid":
1194
- return /* @__PURE__ */ t(It, { widget: r });
1202
+ return /* @__PURE__ */ t(zt, { widget: r });
1195
1203
  case "recent-activity":
1196
- return /* @__PURE__ */ t(qt, { slug: e, widget: r });
1204
+ return /* @__PURE__ */ t(Tt, { slug: e, widget: r });
1197
1205
  default:
1198
1206
  return /* @__PURE__ */ t("div", { className: "p-3 text-[12px] text-slate-400", children: "Unknown widget" });
1199
1207
  }
1200
1208
  }
1201
- function xr({ slug: e, hideHeader: r, className: n }) {
1209
+ function fr({ slug: e, hideHeader: r, className: n }) {
1202
1210
  var R, P;
1203
- const a = X(), { isAdmin: l } = et(), u = Ee(), c = tt("drill.page"), o = c.value, {
1211
+ const a = X(), { isAdmin: l } = tt(), u = Le(), c = rt("drill.page"), o = c.value, {
1204
1212
  data: s,
1205
1213
  isLoading: m,
1206
1214
  error: x
@@ -1223,7 +1231,7 @@ function xr({ slug: e, hideHeader: r, className: n }) {
1223
1231
  ]
1224
1232
  }
1225
1233
  );
1226
- const k = ((R = s.layout) == null ? void 0 : R.columns) ?? 12, _ = st(((P = s.layout) == null ? void 0 : P.widgets) ?? [], l), w = (d) => {
1234
+ const k = ((R = s.layout) == null ? void 0 : R.columns) ?? 12, _ = ot(((P = s.layout) == null ? void 0 : P.widgets) ?? [], l), w = (d) => {
1227
1235
  var y;
1228
1236
  return (d.type === "matrix" || d.type === "query" || d.type === "record-grid") && ((y = d.config) == null ? void 0 : y.display) === "drawer";
1229
1237
  }, q = [...new Set(_.filter(w).map((d) => d.y))].filter((d) => _.every((y) => w(y) || d < y.y || d >= y.y + Math.max(y.h, 1))).sort((d, y) => d - y), S = q.map((d) => ({
@@ -1235,7 +1243,7 @@ function xr({ slug: e, hideHeader: r, className: n }) {
1235
1243
  }), T = /* @__PURE__ */ p("div", { className: `flex h-full min-h-0 flex-col ${n ?? ""}`, children: [
1236
1244
  !r && /* @__PURE__ */ t("div", { className: "shrink-0 pb-4", children: /* @__PURE__ */ t("h1", { className: "text-lg font-semibold text-slate-900 dark:text-slate-100", children: s.name }) }),
1237
1245
  /* @__PURE__ */ t("div", { className: `min-h-0 flex-1 overflow-y-auto ${F ? "flex flex-col" : ""}`, children: _.length === 0 ? /* @__PURE__ */ t("p", { className: "p-6 text-center text-[13px] text-slate-400", children: "This page has no widgets yet." }) : /* @__PURE__ */ p(J, { children: [
1238
- S.map((d) => /* @__PURE__ */ t("div", { className: "mb-3 flex shrink-0 flex-wrap items-center gap-2", children: d.items.map((y) => /* @__PURE__ */ t(Ae, { slug: s.slug, widget: y }, y.id)) }, d.y)),
1246
+ S.map((d) => /* @__PURE__ */ t("div", { className: "mb-3 flex shrink-0 flex-wrap items-center gap-2", children: d.items.map((y) => /* @__PURE__ */ t(Ee, { slug: s.slug, widget: y }, y.id)) }, d.y)),
1239
1247
  /* @__PURE__ */ t(
1240
1248
  "div",
1241
1249
  {
@@ -1263,7 +1271,7 @@ function xr({ slug: e, hideHeader: r, className: n }) {
1263
1271
  },
1264
1272
  children: [
1265
1273
  !y && d.type !== "kpi" && d.type !== "markdown" && ((U = d.config) == null ? void 0 : U.hide_label) !== !0 && /* @__PURE__ */ t("div", { className: "shrink-0 border-b border-slate-100 px-3 py-1.5 text-[11px] font-medium uppercase tracking-wide text-slate-400 dark:border-border", children: String(((I = d.config) == null ? void 0 : I.label) ?? "") || (typeof ((V = d.config) == null ? void 0 : V.collection) == "string" ? K(String(d.config.collection)) : K(d.type)) }),
1266
- /* @__PURE__ */ t("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ t(Ae, { slug: s.slug, widget: d }) })
1274
+ /* @__PURE__ */ t("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ t(Ee, { slug: s.slug, widget: d }) })
1267
1275
  ]
1268
1276
  },
1269
1277
  d.id
@@ -1273,9 +1281,9 @@ function xr({ slug: e, hideHeader: r, className: n }) {
1273
1281
  )
1274
1282
  ] }) })
1275
1283
  ] });
1276
- return u ? T : /* @__PURE__ */ p(rt.Provider, { value: { open: (d) => c.push([d]) }, children: [
1284
+ return u ? T : /* @__PURE__ */ p(nt.Provider, { value: { open: (d) => c.push([d]) }, children: [
1277
1285
  o != null && o.length ? /* @__PURE__ */ t(
1278
- wt,
1286
+ Nt,
1279
1287
  {
1280
1288
  collection: o[0].collection,
1281
1289
  itemId: o[0].itemId,
@@ -1292,12 +1300,12 @@ function xr({ slug: e, hideHeader: r, className: n }) {
1292
1300
  ] });
1293
1301
  }
1294
1302
  export {
1295
- xr as PageRenderer,
1296
- Ie as QueryWidgetView,
1297
- It as RecordGridWidgetBody,
1298
- Ot as missingRowParamMessage,
1299
- Wt as resolveSheetConfig,
1300
- De as resolveSheetValue,
1301
- Pe as selectionSignature,
1302
- Mt as totalSheetTitle
1303
+ fr as PageRenderer,
1304
+ ze as QueryWidgetView,
1305
+ zt as RecordGridWidgetBody,
1306
+ Ft as missingRowParamMessage,
1307
+ Mt as resolveSheetConfig,
1308
+ Ie as resolveSheetValue,
1309
+ Ae as selectionSignature,
1310
+ Ot as totalSheetTitle
1303
1311
  };