@nivaro/react 0.1.184 → 0.1.186

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.
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import { createPortal as qr } from "react-dom";
12
12
  import { Slot as kk } from "@radix-ui/react-slot";
13
13
  import { cva as im } from "class-variance-authority";
14
14
  import { Command as $s } from "cmdk";
15
- import * as ka from "@radix-ui/react-dialog";
15
+ import * as Na from "@radix-ui/react-dialog";
16
16
  import * as uc from "@radix-ui/react-popover";
17
17
  import * as i0 from "@radix-ui/react-switch";
18
18
  import { toast as Ae } from "sonner";
@@ -52,12 +52,12 @@ function je() {
52
52
  if (!t) throw new Error("useNivaroClient must be used within <NivaroProvider>");
53
53
  return t.client;
54
54
  }
55
- function Na() {
55
+ function wa() {
56
56
  const t = Kr(J0);
57
57
  return (t == null ? void 0 : t.client) ?? null;
58
58
  }
59
59
  function ci() {
60
- const t = Na(), n = t == null ? void 0 : t.getToken();
60
+ const t = wa(), n = t == null ? void 0 : t.getToken();
61
61
  return {
62
62
  apiBase: t ? `${t.url}/api` : "/api",
63
63
  authHeaders: n ? { Authorization: `Bearer ${n}` } : {},
@@ -143,7 +143,7 @@ function Rn(t) {
143
143
  return { _method: "DELETE", _path: t };
144
144
  }
145
145
  function H6() {
146
- const t = Na(), n = jt(), { data: a = [] } = se({
146
+ const t = wa(), n = jt(), { data: a = [] } = se({
147
147
  queryKey: ["announcements-active"],
148
148
  queryFn: () => t.request(
149
149
  ee("/announcements/active")
@@ -255,7 +255,7 @@ function G6({
255
255
  appName: t = "The API",
256
256
  fetchVersion: n
257
257
  }) {
258
- const a = Na(), s = Wk(), [l, i] = S(!1);
258
+ const a = wa(), s = Wk(), [l, i] = S(!1);
259
259
  if (Le(() => {
260
260
  const d = (m) => (m == null ? void 0 : m.data) ?? m ?? null;
261
261
  Bk(n ?? (a ? () => a.request(ee("/version")).then((m) => d(m)).catch(() => null) : () => fetch("/api/version", { cache: "no-store" }).then((m) => m.ok ? m.json() : null).then(d).catch(() => null)));
@@ -651,7 +651,7 @@ function fc({
651
651
  );
652
652
  }
653
653
  const Dc = "__empty__";
654
- function va({
654
+ function ka({
655
655
  value: t,
656
656
  onChange: n,
657
657
  options: a,
@@ -673,7 +673,7 @@ function va({
673
673
  }
674
674
  function ds(t) {
675
675
  return /* @__PURE__ */ e(
676
- va,
676
+ ka,
677
677
  {
678
678
  ...t,
679
679
  className: H(
@@ -769,7 +769,7 @@ function vl({
769
769
  className: s
770
770
  }) {
771
771
  return /* @__PURE__ */ e(
772
- va,
772
+ ka,
773
773
  {
774
774
  value: t,
775
775
  onChange: n,
@@ -2606,7 +2606,7 @@ function eF({
2606
2606
  )
2607
2607
  ] });
2608
2608
  }
2609
- const ya = 256, uN = (t, n, a) => `https://tile.openstreetmap.org/${t}/${n}/${a}.png`;
2609
+ const va = 256, uN = (t, n, a) => `https://tile.openstreetmap.org/${t}/${n}/${a}.png`;
2610
2610
  function jo(t, n) {
2611
2611
  return (t + 180) / 360 * 2 ** n;
2612
2612
  }
@@ -2645,7 +2645,7 @@ function kg({
2645
2645
  const $ = T.map((L) => L.lat), j = T.map((L) => L.lng), E = Math.min(...$), R = Math.max(...$), q = Math.min(...j), D = Math.max(...j), V = { lat: (E + R) / 2, lng: (q + D) / 2 };
2646
2646
  let P = 15;
2647
2647
  for (; P > 3; ) {
2648
- const L = Math.abs(jo(D, P) - jo(q, P)) * ya, O = Math.abs(Ao(E, P) - Ao(R, P)) * ya;
2648
+ const L = Math.abs(jo(D, P) - jo(q, P)) * va, O = Math.abs(Ao(E, P) - Ao(R, P)) * va;
2649
2649
  if (L < u.w * 0.85 && O < u.h * 0.85) break;
2650
2650
  P--;
2651
2651
  }
@@ -2653,7 +2653,7 @@ function kg({
2653
2653
  }, [t, n, u]), Le(() => {
2654
2654
  o && p({ lat: o.lat, lng: o.lng, zoom: o.zoom ?? 8 });
2655
2655
  }, [o == null ? void 0 : o.nonce]);
2656
- const y = m ?? { lat: 39.5, lng: -98.35, zoom: 4 }, v = jo(y.lng, y.zoom), g = Ao(y.lat, y.zoom), x = [], b = 2 ** y.zoom, F = Math.floor(v - u.w / 2 / ya), C = Math.ceil(v + u.w / 2 / ya), A = Math.max(0, Math.floor(g - u.h / 2 / ya)), N = Math.min(b - 1, Math.ceil(g + u.h / 2 / ya));
2656
+ const y = m ?? { lat: 39.5, lng: -98.35, zoom: 4 }, v = jo(y.lng, y.zoom), g = Ao(y.lat, y.zoom), x = [], b = 2 ** y.zoom, F = Math.floor(v - u.w / 2 / va), C = Math.ceil(v + u.w / 2 / va), A = Math.max(0, Math.floor(g - u.h / 2 / va)), N = Math.min(b - 1, Math.ceil(g + u.h / 2 / va));
2657
2657
  for (let T = F; T <= C; T++)
2658
2658
  for (let $ = A; $ <= N; $++) {
2659
2659
  const j = (T % b + b) % b;
@@ -2661,13 +2661,13 @@ function kg({
2661
2661
  z: y.zoom,
2662
2662
  x: j,
2663
2663
  y: $,
2664
- left: u.w / 2 + (T - v) * ya,
2665
- top: u.h / 2 + ($ - g) * ya
2664
+ left: u.w / 2 + (T - v) * va,
2665
+ top: u.h / 2 + ($ - g) * va
2666
2666
  });
2667
2667
  }
2668
2668
  const _ = (T, $) => ({
2669
- x: u.w / 2 + (jo($, y.zoom) - v) * ya,
2670
- y: u.h / 2 + (Ao(T, y.zoom) - g) * ya
2669
+ x: u.w / 2 + (jo($, y.zoom) - v) * va,
2670
+ y: u.h / 2 + (Ao(T, y.zoom) - g) * va
2671
2671
  }), w = ye(() => {
2672
2672
  const $ = /* @__PURE__ */ new Map();
2673
2673
  for (const j of t) {
@@ -2686,10 +2686,10 @@ function kg({
2686
2686
  const E = j ?? y, R = Math.max(2, Math.min(18, E.zoom + T));
2687
2687
  if (R === E.zoom) return E;
2688
2688
  if ($) {
2689
- const q = jo(E.lng, E.zoom) + ($.x - u.w / 2) / ya, D = Ao(E.lat, E.zoom) + ($.y - u.h / 2) / ya, V = 2 ** (R - E.zoom);
2689
+ const q = jo(E.lng, E.zoom) + ($.x - u.w / 2) / va, D = Ao(E.lat, E.zoom) + ($.y - u.h / 2) / va, V = 2 ** (R - E.zoom);
2690
2690
  return {
2691
- lng: Ym(q * V - ($.x - u.w / 2) / ya, R),
2692
- lat: Xm(D * V - ($.y - u.h / 2) / ya, R),
2691
+ lng: Ym(q * V - ($.x - u.w / 2) / va, R),
2692
+ lat: Xm(D * V - ($.y - u.h / 2) / va, R),
2693
2693
  zoom: R
2694
2694
  };
2695
2695
  }
@@ -2709,7 +2709,7 @@ function kg({
2709
2709
  onPointerMove: (T) => {
2710
2710
  const $ = h.current;
2711
2711
  if (!$) return;
2712
- const j = (T.clientX - $.x) / ya, E = (T.clientY - $.y) / ya;
2712
+ const j = (T.clientX - $.x) / va, E = (T.clientY - $.y) / va;
2713
2713
  p({
2714
2714
  zoom: y.zoom,
2715
2715
  lng: Ym(jo($.lng, y.zoom) - j, y.zoom),
@@ -2733,7 +2733,7 @@ function kg({
2733
2733
  alt: "",
2734
2734
  draggable: !1,
2735
2735
  className: "pointer-events-none absolute select-none",
2736
- style: { left: T.left, top: T.top, width: ya, height: ya }
2736
+ style: { left: T.left, top: T.top, width: va, height: va }
2737
2737
  },
2738
2738
  `${T.z}/${T.x}/${T.y}`
2739
2739
  )),
@@ -2826,8 +2826,8 @@ function kg({
2826
2826
  type: "button",
2827
2827
  onClick: ($) => {
2828
2828
  $.stopPropagation(), p({
2829
- lat: Xm(g + (T.y - u.h / 2) / ya, y.zoom),
2830
- lng: Ym(v + (T.x - u.w / 2) / ya, y.zoom),
2829
+ lat: Xm(g + (T.y - u.h / 2) / va, y.zoom),
2830
+ lng: Ym(v + (T.x - u.w / 2) / va, y.zoom),
2831
2831
  zoom: Math.min(18, y.zoom + 2)
2832
2832
  });
2833
2833
  },
@@ -2898,13 +2898,13 @@ const mN = im(
2898
2898
  ({ className: t, variant: n, size: a, asChild: s = !1, ...l }, i) => /* @__PURE__ */ e(s ? kk : "button", { className: H(mN({ variant: n, size: a, className: t })), ref: i, ...l })
2899
2899
  );
2900
2900
  Ie.displayName = "Button";
2901
- const wl = ka.Root, pN = ka.Trigger, hN = ka.Portal;
2901
+ const wl = Na.Root, pN = Na.Trigger, hN = Na.Portal;
2902
2902
  function fN({
2903
2903
  className: t,
2904
2904
  ...n
2905
2905
  }) {
2906
2906
  return /* @__PURE__ */ e(
2907
- ka.Overlay,
2907
+ Na.Overlay,
2908
2908
  {
2909
2909
  className: H(
2910
2910
  "fixed inset-0 z-[110] bg-black/50 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -2922,7 +2922,7 @@ function _l({
2922
2922
  return /* @__PURE__ */ r(hN, { children: [
2923
2923
  /* @__PURE__ */ e(fN, {}),
2924
2924
  /* @__PURE__ */ r(
2925
- ka.Content,
2925
+ Na.Content,
2926
2926
  {
2927
2927
  className: H(
2928
2928
  "fixed left-[50%] top-[50%] z-[110] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] rounded-2xl bg-white shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
@@ -2931,7 +2931,7 @@ function _l({
2931
2931
  ...a,
2932
2932
  children: [
2933
2933
  n,
2934
- /* @__PURE__ */ e(ka.Close, { className: "absolute right-4 top-2 rounded-lg p-1 text-slate-400 hover:text-slate-600 focus:outline-none focus:ring-2 focus:ring-nvr-cyan", children: /* @__PURE__ */ e(Zt, { className: "h-4 w-4" }) })
2934
+ /* @__PURE__ */ e(Na.Close, { className: "absolute right-4 top-2 rounded-lg p-1 text-slate-400 hover:text-slate-600 focus:outline-none focus:ring-2 focus:ring-nvr-cyan", children: /* @__PURE__ */ e(Zt, { className: "h-4 w-4" }) })
2935
2935
  ]
2936
2936
  }
2937
2937
  )
@@ -2957,7 +2957,7 @@ function Cl({
2957
2957
  ...n
2958
2958
  }) {
2959
2959
  return /* @__PURE__ */ e(
2960
- ka.Title,
2960
+ Na.Title,
2961
2961
  {
2962
2962
  className: H("text-lg font-semibold text-slate-900", t),
2963
2963
  ...n
@@ -2969,7 +2969,7 @@ function Ng({
2969
2969
  ...n
2970
2970
  }) {
2971
2971
  return /* @__PURE__ */ e(
2972
- ka.Description,
2972
+ Na.Description,
2973
2973
  {
2974
2974
  className: H("text-sm text-slate-500 mt-1", t),
2975
2975
  ...n
@@ -3396,7 +3396,7 @@ function yN({
3396
3396
  }
3397
3397
  ) }),
3398
3398
  /* @__PURE__ */ e("td", { className: "px-2 py-1", children: C.lookupOn ? /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-400", children: "Lookup ↓" }) : /* @__PURE__ */ e(
3399
- va,
3399
+ ka,
3400
3400
  {
3401
3401
  value: C.type,
3402
3402
  onChange: (w) => N({ type: w }),
@@ -3455,7 +3455,7 @@ function yN({
3455
3455
  /* @__PURE__ */ e("span", { children: "equals the file value, and store its id." }),
3456
3456
  /* @__PURE__ */ e("span", { className: "ml-1", children: "If no match:" }),
3457
3457
  /* @__PURE__ */ e(
3458
- va,
3458
+ ka,
3459
3459
  {
3460
3460
  value: C.lookupOnMissing,
3461
3461
  onChange: (w) => N({ lookupOnMissing: w }),
@@ -4864,41 +4864,6 @@ function AN({
4864
4864
  }
4865
4865
  );
4866
4866
  }
4867
- function Cs({
4868
- userId: t,
4869
- fallback: n,
4870
- className: a,
4871
- style: s,
4872
- alt: l
4873
- }) {
4874
- const { apiBase: i, authHeaders: o, credentials: d } = ci(), { data: u } = se({
4875
- queryKey: ["user-avatar", t],
4876
- enabled: !!t,
4877
- staleTime: 30 * 6e4,
4878
- gcTime: 60 * 6e4,
4879
- retry: !1,
4880
- queryFn: async () => {
4881
- var h;
4882
- const c = await fetch(`${i}/users/${t}/avatar`, {
4883
- headers: o,
4884
- credentials: d
4885
- });
4886
- if (!c.ok) return null;
4887
- const m = await c.json().catch(() => null), p = ((h = m == null ? void 0 : m.data) == null ? void 0 : h.avatar) ?? null;
4888
- return typeof p == "string" && p.startsWith("data:image/") ? p : null;
4889
- }
4890
- });
4891
- return u ? /* @__PURE__ */ e(
4892
- "img",
4893
- {
4894
- src: u,
4895
- alt: l ?? "",
4896
- className: `shrink-0 rounded-full object-cover ${a ?? ""}`,
4897
- style: s,
4898
- draggable: !1
4899
- }
4900
- ) : /* @__PURE__ */ e(ct, { children: n });
4901
- }
4902
4867
  const LN = ["👍", "✅", "👀", "🎉", "❤️", "😂"], Ag = ha(null);
4903
4868
  function Ya() {
4904
4869
  const t = Kr(Ag);
@@ -5382,6 +5347,41 @@ function rh() {
5382
5347
  function ah(t, n) {
5383
5348
  uo == null || uo(t, n);
5384
5349
  }
5350
+ function Cs({
5351
+ userId: t,
5352
+ fallback: n,
5353
+ className: a,
5354
+ style: s,
5355
+ alt: l
5356
+ }) {
5357
+ const { apiBase: i, authHeaders: o, credentials: d } = ci(), { data: u } = se({
5358
+ queryKey: ["user-avatar", t],
5359
+ enabled: !!t,
5360
+ staleTime: 30 * 6e4,
5361
+ gcTime: 60 * 6e4,
5362
+ retry: !1,
5363
+ queryFn: async () => {
5364
+ var h;
5365
+ const c = await fetch(`${i}/users/${t}/avatar`, {
5366
+ headers: o,
5367
+ credentials: d
5368
+ });
5369
+ if (!c.ok) return null;
5370
+ const m = await c.json().catch(() => null), p = ((h = m == null ? void 0 : m.data) == null ? void 0 : h.avatar) ?? null;
5371
+ return typeof p == "string" && p.startsWith("data:image/") ? p : null;
5372
+ }
5373
+ });
5374
+ return u ? /* @__PURE__ */ e(
5375
+ "img",
5376
+ {
5377
+ src: u,
5378
+ alt: l ?? "",
5379
+ className: `shrink-0 rounded-full object-cover ${a ?? ""}`,
5380
+ style: s,
5381
+ draggable: !1
5382
+ }
5383
+ ) : /* @__PURE__ */ e(ct, { children: n });
5384
+ }
5385
5385
  const Ai = Ma.Root, Li = Ma.Trigger, ow = nr.forwardRef(({ className: t, inset: n, children: a, ...s }, l) => /* @__PURE__ */ r(
5386
5386
  Ma.SubTrigger,
5387
5387
  {
@@ -8106,7 +8106,7 @@ function Hd(t, n) {
8106
8106
  const a = hr(t), s = (a == null ? void 0 : a.col_span) ?? 0, l = [3, 4, 6, 12].includes(s) ? s : 12;
8107
8107
  return n < 480 ? 12 : n < 800 ? l <= 6 ? 6 : 12 : l;
8108
8108
  }
8109
- function e_(t) {
8109
+ function e5(t) {
8110
8110
  if (!t) return "";
8111
8111
  try {
8112
8112
  return new Date(String(t)).toISOString().slice(0, 16);
@@ -8124,11 +8124,11 @@ const fl = /* @__PURE__ */ new Set([
8124
8124
  function Nm() {
8125
8125
  return Kr(km);
8126
8126
  }
8127
- const t_ = /* @__PURE__ */ new Set(["YY", "YYYY", "MM", "seq", "seq4", "seq6"]);
8128
- function n_(t) {
8127
+ const t5 = /* @__PURE__ */ new Set(["YY", "YYYY", "MM", "seq", "seq4", "seq6"]);
8128
+ function n5(t) {
8129
8129
  const n = /* @__PURE__ */ new Set();
8130
8130
  for (const a of t.matchAll(/\{\s*([A-Za-z0-9_]+)(\[0\])?[^}]*\}/g))
8131
- t_.has(a[1]) || n.add(a[1]);
8131
+ t5.has(a[1]) || n.add(a[1]);
8132
8132
  return [...n];
8133
8133
  }
8134
8134
  function Yg({
@@ -8148,7 +8148,7 @@ function Yg({
8148
8148
  () => Gw(o, a),
8149
8149
  [o, u]
8150
8150
  ), m = ye(
8151
- () => [.../* @__PURE__ */ new Set([...c ? n_(c) : [], ...d])],
8151
+ () => [.../* @__PURE__ */ new Set([...c ? n5(c) : [], ...d])],
8152
8152
  [c, d]
8153
8153
  ), p = (x) => {
8154
8154
  if (a[x] !== void 0) return a[x];
@@ -8181,7 +8181,7 @@ function Yg({
8181
8181
  };
8182
8182
  }, [c, t, n == null ? void 0 : n.field, s, h]), y;
8183
8183
  }
8184
- function r_({
8184
+ function r5({
8185
8185
  collection: t,
8186
8186
  field: n,
8187
8187
  draft: a,
@@ -8191,13 +8191,13 @@ function r_({
8191
8191
  return /* @__PURE__ */ e(Mt, { value: i, disabled: !0, readOnly: !0, className: "h-8 text-[12px] text-muted-foreground" });
8192
8192
  }
8193
8193
  const oh = /* @__PURE__ */ new Map(), f0 = /* @__PURE__ */ new Set();
8194
- function a_(t) {
8194
+ function a5(t) {
8195
8195
  if (!(!(t != null && t.interface) || typeof t.mount != "function")) {
8196
8196
  oh.set(t.interface, t);
8197
8197
  for (const n of f0) n();
8198
8198
  }
8199
8199
  }
8200
- function s_(t) {
8200
+ function s5(t) {
8201
8201
  return t ? oh.get(t) ?? null : null;
8202
8202
  }
8203
8203
  function lF() {
@@ -8206,8 +8206,8 @@ function lF() {
8206
8206
  function iF(t) {
8207
8207
  return f0.add(t), () => f0.delete(t);
8208
8208
  }
8209
- typeof window < "u" && (window.__nvrRegisterFieldInterface = a_);
8210
- const l_ = im(
8209
+ typeof window < "u" && (window.__nvrRegisterFieldInterface = a5);
8210
+ const l5 = im(
8211
8211
  "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
8212
8212
  {
8213
8213
  variants: {
@@ -8224,7 +8224,7 @@ const l_ = im(
8224
8224
  }
8225
8225
  );
8226
8226
  function Ja({ className: t, variant: n, ...a }) {
8227
- return /* @__PURE__ */ e("div", { className: H(l_({ variant: n }), t), ...a });
8227
+ return /* @__PURE__ */ e("div", { className: H(l5({ variant: n }), t), ...a });
8228
8228
  }
8229
8229
  const Yd = /* @__PURE__ */ new Map();
8230
8230
  function oF(t, n) {
@@ -8293,8 +8293,8 @@ function wm({
8293
8293
  ] })
8294
8294
  ] }) });
8295
8295
  }
8296
- const Bl = ka.Root, i_ = ka.Trigger, o_ = ka.Portal, ey = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8297
- ka.Overlay,
8296
+ const Bl = Na.Root, i5 = Na.Trigger, o5 = Na.Portal, ey = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8297
+ Na.Overlay,
8298
8298
  {
8299
8299
  className: H(
8300
8300
  "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -8304,8 +8304,8 @@ const Bl = ka.Root, i_ = ka.Trigger, o_ = ka.Portal, ey = nr.forwardRef(({ class
8304
8304
  ref: a
8305
8305
  }
8306
8306
  ));
8307
- ey.displayName = ka.Overlay.displayName;
8308
- const d_ = im(
8307
+ ey.displayName = Na.Overlay.displayName;
8308
+ const d5 = im(
8309
8309
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500 z-[100]",
8310
8310
  {
8311
8311
  variants: {
@@ -8320,38 +8320,38 @@ const d_ = im(
8320
8320
  side: "right"
8321
8321
  }
8322
8322
  }
8323
- ), $l = nr.forwardRef(({ side: t = "right", className: n, children: a, ...s }, l) => /* @__PURE__ */ r(o_, { children: [
8323
+ ), $l = nr.forwardRef(({ side: t = "right", className: n, children: a, ...s }, l) => /* @__PURE__ */ r(o5, { children: [
8324
8324
  /* @__PURE__ */ e(ey, {}),
8325
- /* @__PURE__ */ r(ka.Content, { ref: l, className: H(d_({ side: t }), n), ...s, children: [
8325
+ /* @__PURE__ */ r(Na.Content, { ref: l, className: H(d5({ side: t }), n), ...s, children: [
8326
8326
  a,
8327
- /* @__PURE__ */ r(ka.Close, { className: "absolute right-4 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
8327
+ /* @__PURE__ */ r(Na.Close, { className: "absolute right-4 top-2 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
8328
8328
  /* @__PURE__ */ e(Zt, { className: "h-4 w-4" }),
8329
8329
  /* @__PURE__ */ e("span", { className: "sr-only", children: "Close" })
8330
8330
  ] })
8331
8331
  ] })
8332
8332
  ] }));
8333
- $l.displayName = ka.Content.displayName;
8333
+ $l.displayName = Na.Content.displayName;
8334
8334
  const li = ({ className: t, ...n }) => /* @__PURE__ */ e("div", { className: H("flex flex-col space-y-2 text-center sm:text-left", t), ...n });
8335
8335
  li.displayName = "SheetHeader";
8336
8336
  const ii = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8337
- ka.Title,
8337
+ Na.Title,
8338
8338
  {
8339
8339
  ref: a,
8340
8340
  className: H("text-lg font-semibold text-foreground", t),
8341
8341
  ...n
8342
8342
  }
8343
8343
  ));
8344
- ii.displayName = ka.Title.displayName;
8345
- const c_ = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8346
- ka.Description,
8344
+ ii.displayName = Na.Title.displayName;
8345
+ const c5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8346
+ Na.Description,
8347
8347
  {
8348
8348
  ref: a,
8349
8349
  className: H("text-sm text-muted-foreground", t),
8350
8350
  ...n
8351
8351
  }
8352
8352
  ));
8353
- c_.displayName = ka.Description.displayName;
8354
- function u_(t) {
8353
+ c5.displayName = Na.Description.displayName;
8354
+ function u5(t) {
8355
8355
  return t.row != null && t.column ? `Row ${t.row} · ${t.column}` : t.row != null ? `Row ${t.row}` : t.column ? t.column : null;
8356
8356
  }
8357
8357
  function x0({
@@ -8392,7 +8392,7 @@ function x0({
8392
8392
  )
8393
8393
  ] }),
8394
8394
  /* @__PURE__ */ e("ul", { className: "space-y-1.5", children: t.map((s, l) => {
8395
- const i = u_(s), o = `${s.rule}-${s.row ?? ""}-${s.column ?? ""}-${l}`;
8395
+ const i = u5(s), o = `${s.rule}-${s.row ?? ""}-${s.column ?? ""}-${l}`;
8396
8396
  return /* @__PURE__ */ r("li", { className: "flex items-start gap-2 text-[12px]", children: [
8397
8397
  s.severity === "error" ? /* @__PURE__ */ e(ri, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-red-500" }) : /* @__PURE__ */ e(Oa, { className: "mt-0.5 h-3.5 w-3.5 shrink-0 text-amber-500" }),
8398
8398
  /* @__PURE__ */ r(
@@ -8414,7 +8414,7 @@ function x0({
8414
8414
  }
8415
8415
  );
8416
8416
  }
8417
- function m_(t) {
8417
+ function m5(t) {
8418
8418
  const n = new Set(t.flatMap((a) => a.file_types));
8419
8419
  return Array.from(n).map((a) => `.${a}`).join(",");
8420
8420
  }
@@ -8466,7 +8466,7 @@ function bc({
8466
8466
  ref: o,
8467
8467
  type: "file",
8468
8468
  className: "hidden",
8469
- accept: m_(x),
8469
+ accept: m5(x),
8470
8470
  onChange: F
8471
8471
  }
8472
8472
  ),
@@ -8550,8 +8550,8 @@ function bc({
8550
8550
  )
8551
8551
  ] });
8552
8552
  }
8553
- const p_ = ["👍", "✅", "👀", "🎉", "❤️", "😂"];
8554
- function h_(t, n, a) {
8553
+ const p5 = ["👍", "✅", "👀", "🎉", "❤️", "😂"];
8554
+ function h5(t, n, a) {
8555
8555
  const s = je(), { data: l } = se({
8556
8556
  queryKey: ["row-comment-counts", t, n.join(",")],
8557
8557
  queryFn: () => s.request(
@@ -8562,7 +8562,7 @@ function h_(t, n, a) {
8562
8562
  });
8563
8563
  return l ?? {};
8564
8564
  }
8565
- function f_({
8565
+ function f5({
8566
8566
  collection: t,
8567
8567
  rowId: n,
8568
8568
  count: a
@@ -8663,7 +8663,7 @@ function f_({
8663
8663
  children: /* @__PURE__ */ e(z0, { className: "h-3 w-3" })
8664
8664
  }
8665
8665
  ),
8666
- m === b.id && /* @__PURE__ */ e("span", { className: "absolute bottom-5 left-0 z-20 flex gap-0.5 rounded-full border border-slate-200 bg-white px-1 py-0.5 shadow-lg dark:border-border dark:bg-popover", children: p_.map((N) => /* @__PURE__ */ e(
8666
+ m === b.id && /* @__PURE__ */ e("span", { className: "absolute bottom-5 left-0 z-20 flex gap-0.5 rounded-full border border-slate-200 bg-white px-1 py-0.5 shadow-lg dark:border-border dark:bg-popover", children: p5.map((N) => /* @__PURE__ */ e(
8667
8667
  "button",
8668
8668
  {
8669
8669
  type: "button",
@@ -8715,7 +8715,7 @@ function f_({
8715
8715
  )
8716
8716
  ] });
8717
8717
  }
8718
- const x_ = /* @__PURE__ */ new Set([
8718
+ const x5 = /* @__PURE__ */ new Set([
8719
8719
  "alias",
8720
8720
  "o2m",
8721
8721
  "m2m",
@@ -8723,8 +8723,8 @@ const x_ = /* @__PURE__ */ new Set([
8723
8723
  "presentation",
8724
8724
  "group",
8725
8725
  "divider"
8726
- ]), b_ = /* @__PURE__ */ new Set(["__apply_values__", "__create_with_defaults__"]);
8727
- function g_(t, n) {
8726
+ ]), b5 = /* @__PURE__ */ new Set(["__apply_values__", "__create_with_defaults__"]);
8727
+ function g5(t, n) {
8728
8728
  return t === n || t == null && n == null ? !0 : t == null || n == null ? !1 : typeof t == "string" && typeof n == "number" || typeof t == "number" && typeof n == "string" ? String(t) === String(n) : JSON.stringify(t) === JSON.stringify(n);
8729
8729
  }
8730
8730
  function Pf(t) {
@@ -8781,7 +8781,7 @@ function dp({
8781
8781
  staleTime: 6e4
8782
8782
  }), k = ye(
8783
8783
  () => w.filter(
8784
- (G) => !G.hidden && !x_.has(G.type) && G.field !== N && !(v && G.field in v) && G.field !== "id" && !Jo.has(G.field) && !b_.has(G.group_key ?? "")
8784
+ (G) => !G.hidden && !x5.has(G.type) && G.field !== N && !(v && G.field in v) && G.field !== "id" && !Jo.has(G.field) && !b5.has(G.group_key ?? "")
8785
8785
  ),
8786
8786
  [w, N]
8787
8787
  ), T = f ? ["nested-rows", A, JSON.stringify(y ?? null)] : ["nested-rows", A, N, a], { data: $ = [], isLoading: j } = se({
@@ -8845,7 +8845,7 @@ function dp({
8845
8845
  qe[tt] = Me, h == null || h({ ...rt, created: qe });
8846
8846
  } else {
8847
8847
  const tt = $.find((Ze) => String(Ze.id) === q), qe = Object.fromEntries(
8848
- Object.entries(Me).filter(([Ze, xt]) => !g_(xt, tt == null ? void 0 : tt[Ze]))
8848
+ Object.entries(Me).filter(([Ze, xt]) => !g5(xt, tt == null ? void 0 : tt[Ze]))
8849
8849
  ), He = rt.updated.filter((Ze) => Ze.id !== q);
8850
8850
  Object.keys(qe).length > 0 && He.push({ id: q, changes: qe }), h == null || h({ ...rt, updated: He });
8851
8851
  }
@@ -9547,14 +9547,14 @@ function Ho({
9547
9547
  }
9548
9548
  return /* @__PURE__ */ e("span", { children: xr(a, o) });
9549
9549
  }
9550
- const y_ = {
9550
+ const y5 = {
9551
9551
  lt: "<",
9552
9552
  gt: ">",
9553
9553
  quot: '"',
9554
9554
  amp: "&",
9555
9555
  "#39": "'"
9556
9556
  };
9557
- function v_({ children: t }) {
9557
+ function v5({ children: t }) {
9558
9558
  const [n, a] = S(null);
9559
9559
  return /* @__PURE__ */ r(
9560
9560
  "span",
@@ -9583,9 +9583,9 @@ function v_({ children: t }) {
9583
9583
  }
9584
9584
  );
9585
9585
  }
9586
- function k_(t) {
9586
+ function k5(t) {
9587
9587
  if (typeof t != "string" || !t.trim()) return [];
9588
- const n = t.replace(/&(lt|gt|quot|amp|#39);/g, (i, o) => y_[o] ?? ""), a = [], s = /"detail"\s*:\s*"((?:[^"\\]|\\.)*)"/g;
9588
+ const n = t.replace(/&(lt|gt|quot|amp|#39);/g, (i, o) => y5[o] ?? ""), a = [], s = /"detail"\s*:\s*"((?:[^"\\]|\\.)*)"/g;
9589
9589
  let l = s.exec(n);
9590
9590
  for (; l; ) {
9591
9591
  try {
@@ -9602,7 +9602,7 @@ function k_(t) {
9602
9602
  return a;
9603
9603
  }
9604
9604
  const cp = /* @__PURE__ */ new Set(["alias", "o2m", "m2m", "m2a", "presentation", "group", "divider"]), _d = "__all__", up = 1e3;
9605
- function N_(t) {
9605
+ function N5(t) {
9606
9606
  let n = 0;
9607
9607
  for (let a = 0; a < t.length; a++) n = n * 31 + t.charCodeAt(a) | 0;
9608
9608
  return n;
@@ -9616,7 +9616,7 @@ function mp(t, n) {
9616
9616
  return String(s !== void 0 ? s ?? "" : t[a] ?? "");
9617
9617
  }).join("\0");
9618
9618
  }
9619
- function w_({
9619
+ function w5({
9620
9620
  deletedRows: t,
9621
9621
  displayCols: n,
9622
9622
  onOpenHistory: a
@@ -9688,10 +9688,10 @@ function zc(t, n) {
9688
9688
  t
9689
9689
  );
9690
9690
  }
9691
- function __(t, n, a) {
9691
+ function _5(t, n, a) {
9692
9692
  return n === "presence" ? t != null && String(t).trim() !== "" ? "Yes" : "No" : t == null || t === "" ? "—" : n === "currency" && Number.isFinite(Number(t)) ? Number(t).toLocaleString("en-US", Ji(a, "currency")) : String(t);
9693
9693
  }
9694
- function S_({
9694
+ function S5({
9695
9695
  config: t,
9696
9696
  relatedCollection: n,
9697
9697
  manyField: a,
@@ -9894,7 +9894,7 @@ function S_({
9894
9894
  Z.push(
9895
9895
  /* @__PURE__ */ r("tr", { className: H(xe && "bg-[#00ceff]/5"), children: [
9896
9896
  N.map((Ke, ke) => {
9897
- const Be = Ke.formula ? D(Ke.formula, X) : __(zc(X, Ke.path ?? ""), Ke.format);
9897
+ const Be = Ke.formula ? D(Ke.formula, X) : _5(zc(X, Ke.path ?? ""), Ke.format);
9898
9898
  return /* @__PURE__ */ e(
9899
9899
  "td",
9900
9900
  {
@@ -9943,7 +9943,7 @@ function S_({
9943
9943
  ] }) })
9944
9944
  ] });
9945
9945
  }
9946
- function C_({
9946
+ function C5({
9947
9947
  config: t,
9948
9948
  rows: n,
9949
9949
  relatedCollection: a,
@@ -10051,7 +10051,7 @@ function C_({
10051
10051
  }
10052
10052
  );
10053
10053
  }
10054
- function $_({
10054
+ function $5({
10055
10055
  config: t,
10056
10056
  matchCfg: n,
10057
10057
  rows: a,
@@ -10153,7 +10153,7 @@ function $_({
10153
10153
  p && /* @__PURE__ */ e("span", { className: "text-[11px] text-slate-500", children: p })
10154
10154
  ] });
10155
10155
  }
10156
- function q_({
10156
+ function q5({
10157
10157
  relatedCollection: t,
10158
10158
  manyField: n,
10159
10159
  parentId: a,
@@ -10205,7 +10205,7 @@ function q_({
10205
10205
  if (!["ERROR", "FAILED"].includes(st)) continue;
10206
10206
  const Ge = String((De == null ? void 0 : De.lineNumber) ?? "");
10207
10207
  if (!Ge || Q.has(Ge)) continue;
10208
- const et = k_(De == null ? void 0 : De.lineDetailedMessage), it = et.find(
10208
+ const et = k5(De == null ? void 0 : De.lineDetailedMessage), it = et.find(
10209
10209
  (qt) => new RegExp(`^Line(?:Number)?\\s*${Ge}\\s*:`, "i").test(qt.trim())
10210
10210
  ) ?? et[0];
10211
10211
  it && Q.set(Ge, it.replace(/^Line(?:Number)?\s*\d+\s*:\s*/i, ""));
@@ -10697,7 +10697,7 @@ function q_({
10697
10697
  Q.set(oe, Qe);
10698
10698
  }
10699
10699
  return Q;
10700
- }, [br, Gr, Wl, hs]), Hn = ye(() => Ot.map((Q) => String(Q.id)), [Ot]), Ia = ye(() => `nvr-gf-${Math.abs(N_(`${t}:${R ?? n}`)) % 1e5}`, [t, R, n]), xs = ye(() => {
10700
+ }, [br, Gr, Wl, hs]), Hn = ye(() => Ot.map((Q) => String(Q.id)), [Ot]), Ia = ye(() => `nvr-gf-${Math.abs(N5(`${t}:${R ?? n}`)) % 1e5}`, [t, R, n]), xs = ye(() => {
10701
10701
  if (!A) return null;
10702
10702
  const Q = [];
10703
10703
  m && (Ct || J || Tt) && Q.push(24), c && Q.push(32), (J || Tt) && Q.push(80), Q.push(220);
@@ -10721,7 +10721,7 @@ function q_({
10721
10721
  );
10722
10722
  return oe.observe(Q), () => oe.disconnect();
10723
10723
  }, [Ot.length, ts]);
10724
- const ia = Hn.join(","), bs = h_(t, Hn, !!o && !J), rs = wr({
10724
+ const ia = Hn.join(","), bs = h5(t, Hn, !!o && !J), rs = wr({
10725
10725
  queries: br.map((Q) => {
10726
10726
  const oe = Gr.get(Q);
10727
10727
  return {
@@ -10790,7 +10790,7 @@ function q_({
10790
10790
  }
10791
10791
  Fr(Q, Object.keys(he).length > 0 ? he : null);
10792
10792
  });
10793
- const wa = ye(() => {
10793
+ const _a = ye(() => {
10794
10794
  const Q = /* @__PURE__ */ new Map(), oe = (he, fe) => {
10795
10795
  fe == null || fe === "" || (Q.has(he) || Q.set(he, []), Q.get(he).push(String(fe)));
10796
10796
  };
@@ -10825,11 +10825,11 @@ function q_({
10825
10825
  for (const [he, fe] of Q) Q.set(he, [...new Set(fe)].sort());
10826
10826
  return Q;
10827
10827
  }, [Is, es, vn, Tn, rr]), { data: oa = {} } = se({
10828
- queryKey: ["summary-m2o-display", t, ...Array.from(wa.entries()).flat(2)],
10828
+ queryKey: ["summary-m2o-display", t, ...Array.from(_a.entries()).flat(2)],
10829
10829
  queryFn: async () => {
10830
10830
  const Q = {};
10831
10831
  return await Promise.all(
10832
- [...wa.entries()].map(async ([oe, he]) => {
10832
+ [..._a.entries()].map(async ([oe, he]) => {
10833
10833
  var De;
10834
10834
  const [fe, Qe] = await Promise.all([
10835
10835
  V.request(ee(`/collections/${oe}`)),
@@ -10843,7 +10843,7 @@ function q_({
10843
10843
  })
10844
10844
  ), Q;
10845
10845
  },
10846
- enabled: wa.size > 0,
10846
+ enabled: _a.size > 0,
10847
10847
  staleTime: 6e4
10848
10848
  }), gs = ye(() => hs.map(({ relationField: Q, memberField: oe }) => {
10849
10849
  const he = Gr.get(Q), Qe = (he ? tr.get(he.grandCollection) ?? [] : []).find((De) => De.field === oe);
@@ -11440,7 +11440,7 @@ function q_({
11440
11440
  className: "block max-w-full truncate text-left underline decoration-slate-300 decoration-dotted underline-offset-2 hover:text-[#172940] hover:decoration-[#00ceff] dark:hover:text-[#00ceff]",
11441
11441
  children: it ?? String(oe)
11442
11442
  }
11443
- ) : fn = /* @__PURE__ */ e("span", { className: "block truncate", children: it ?? String(oe) }), ln ? /* @__PURE__ */ e(v_, { children: fn }) : fn;
11443
+ ) : fn = /* @__PURE__ */ e("span", { className: "block truncate", children: it ?? String(oe) }), ln ? /* @__PURE__ */ e(v5, { children: fn }) : fn;
11444
11444
  }
11445
11445
  if (Q.type === "boolean")
11446
11446
  return /* @__PURE__ */ e("span", { className: oe ? "text-emerald-600" : "text-slate-400", children: oe ? "Yes" : "No" });
@@ -11773,7 +11773,7 @@ function q_({
11773
11773
  );
11774
11774
  })(),
11775
11775
  w && (!J || O) && /* @__PURE__ */ e(
11776
- S_,
11776
+ S5,
11777
11777
  {
11778
11778
  config: w,
11779
11779
  relatedCollection: t,
@@ -11795,7 +11795,7 @@ function q_({
11795
11795
  (oe) => typeof oe == "object" && oe.field === k.relation && !!oe.match
11796
11796
  );
11797
11797
  return Q != null && Q.match ? /* @__PURE__ */ e(
11798
- $_,
11798
+ $5,
11799
11799
  {
11800
11800
  config: k,
11801
11801
  matchCfg: Q.match,
@@ -11808,7 +11808,7 @@ function q_({
11808
11808
  ) : null;
11809
11809
  })(),
11810
11810
  (T ?? []).map((Q) => /* @__PURE__ */ e(
11811
- C_,
11811
+ C5,
11812
11812
  {
11813
11813
  config: Q,
11814
11814
  rows: [
@@ -12121,7 +12121,7 @@ function q_({
12121
12121
  }
12122
12122
  ),
12123
12123
  o && he != null && /* @__PURE__ */ e(
12124
- f_,
12124
+ f5,
12125
12125
  {
12126
12126
  collection: t,
12127
12127
  rowId: String(he),
@@ -12509,7 +12509,7 @@ function q_({
12509
12509
  ...oe.map((fe) => ({ id: String(fe.id), data: fe }))
12510
12510
  ];
12511
12511
  return he.length === 0 ? null : /* @__PURE__ */ e(
12512
- w_,
12512
+ w5,
12513
12513
  {
12514
12514
  deletedRows: he,
12515
12515
  displayCols: mr,
@@ -12600,7 +12600,7 @@ function Xd(t, n) {
12600
12600
  } else o && typeof o == "object" ? a[i] = l(o) : a[i] = { _eq: o };
12601
12601
  return s ? null : a;
12602
12602
  }
12603
- function F_(t, n) {
12603
+ function F5(t, n) {
12604
12604
  if (!t) return !0;
12605
12605
  for (const [a, s] of Object.entries(t)) {
12606
12606
  const l = n == null ? void 0 : n[a], i = l == null ? null : String(l), o = s && typeof s == "object" ? s : { _eq: s };
@@ -12630,8 +12630,8 @@ function F_(t, n) {
12630
12630
  }
12631
12631
  return !0;
12632
12632
  }
12633
- const T_ = 2e3;
12634
- function j_({
12633
+ const T5 = 2e3;
12634
+ function j5({
12635
12635
  relatedCollection: t,
12636
12636
  manyField: n,
12637
12637
  parentId: a,
@@ -12680,7 +12680,7 @@ function j_({
12680
12680
  queryKey: ["catalog-picker", w, R, q],
12681
12681
  queryFn: () => o.request(
12682
12682
  ee(`/items/${w}`, {
12683
- limit: T_,
12683
+ limit: T5,
12684
12684
  fields: R,
12685
12685
  ...j ? { filter: JSON.stringify(j) } : {}
12686
12686
  })
@@ -13450,8 +13450,8 @@ function j_({
13450
13450
  ] }, le.name);
13451
13451
  })
13452
13452
  ] }),
13453
- (l.builders ?? []).filter((le) => F_(le.show_when, $)).map((le) => /* @__PURE__ */ e(
13454
- A_,
13453
+ (l.builders ?? []).filter((le) => F5(le.show_when, $)).map((le) => /* @__PURE__ */ e(
13454
+ A5,
13455
13455
  {
13456
13456
  builder: le,
13457
13457
  defaultItemField: l.item_field,
@@ -13684,7 +13684,7 @@ function j_({
13684
13684
  })()
13685
13685
  ] }),
13686
13686
  Be && w && /* @__PURE__ */ e(
13687
- O_,
13687
+ O5,
13688
13688
  {
13689
13689
  catalogCol: w,
13690
13690
  tmpl: T,
@@ -13707,7 +13707,7 @@ function j_({
13707
13707
  t
13708
13708
  ] });
13709
13709
  }
13710
- function A_({
13710
+ function A5({
13711
13711
  builder: t,
13712
13712
  defaultItemField: n,
13713
13713
  catalogCol: a,
@@ -13809,7 +13809,7 @@ function A_({
13809
13809
  ([, T], [, $]) => T.localeCompare($, void 0, { numeric: !0 })
13810
13810
  );
13811
13811
  return /* @__PURE__ */ e(
13812
- L_,
13812
+ L5,
13813
13813
  {
13814
13814
  label: zt(N.field),
13815
13815
  value: p[N.field] ?? null,
@@ -13836,7 +13836,7 @@ function A_({
13836
13836
  ] }) })
13837
13837
  ] });
13838
13838
  }
13839
- function L_({
13839
+ function L5({
13840
13840
  label: t,
13841
13841
  value: n,
13842
13842
  valueLabel: a,
@@ -13899,7 +13899,7 @@ function L_({
13899
13899
  ] })
13900
13900
  ] });
13901
13901
  }
13902
- function O_({
13902
+ function O5({
13903
13903
  catalogCol: t,
13904
13904
  tmpl: n,
13905
13905
  sectionBy: a,
@@ -14260,11 +14260,11 @@ function Kf(t, n) {
14260
14260
  }
14261
14261
  return { display: s, clean: l };
14262
14262
  }
14263
- function R_(t) {
14263
+ function R5(t) {
14264
14264
  const n = _m(t).input_mask;
14265
14265
  return typeof n == "string" && n.trim() ? n.trim() : null;
14266
14266
  }
14267
- function M_(t) {
14267
+ function M5(t) {
14268
14268
  const n = t.trim().toLowerCase();
14269
14269
  if (!n) return null;
14270
14270
  const a = (d) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, "0")}-${String(d.getDate()).padStart(2, "0")}`, s = /* @__PURE__ */ new Date();
@@ -14284,7 +14284,7 @@ function M_(t) {
14284
14284
  }
14285
14285
  return null;
14286
14286
  }
14287
- function E_({
14287
+ function E5({
14288
14288
  value: t,
14289
14289
  onChange: n
14290
14290
  }) {
@@ -14314,7 +14314,7 @@ function E_({
14314
14314
  /* @__PURE__ */ e("span", { className: "text-[11.5px] text-slate-400", children: Number.isFinite(a) && t != null && t !== "" ? `${a} min` : "stored as minutes" })
14315
14315
  ] });
14316
14316
  }
14317
- function D_({
14317
+ function D5({
14318
14318
  field: t,
14319
14319
  value: n,
14320
14320
  onChange: a,
@@ -14362,7 +14362,7 @@ function D_({
14362
14362
  ] })
14363
14363
  ] });
14364
14364
  }
14365
- function P_({
14365
+ function P5({
14366
14366
  field: t,
14367
14367
  value: n,
14368
14368
  onChange: a,
@@ -14452,7 +14452,7 @@ function P_({
14452
14452
  )
14453
14453
  ] });
14454
14454
  }
14455
- function K_({
14455
+ function K5({
14456
14456
  value: t,
14457
14457
  onChange: n
14458
14458
  }) {
@@ -14506,7 +14506,7 @@ function K_({
14506
14506
  )
14507
14507
  ] });
14508
14508
  }
14509
- function I_({
14509
+ function I5({
14510
14510
  value: t,
14511
14511
  onChange: n
14512
14512
  }) {
@@ -14579,7 +14579,7 @@ function I_({
14579
14579
  )
14580
14580
  ] });
14581
14581
  }
14582
- function z_({
14582
+ function z5({
14583
14583
  field: t,
14584
14584
  value: n,
14585
14585
  onChange: a,
@@ -14608,7 +14608,7 @@ function z_({
14608
14608
  ) : /* @__PURE__ */ e("span", { className: "text-[11.5px] text-amber-600", children: "set options.range_end_field" })
14609
14609
  ] });
14610
14610
  }
14611
- function U_({ value: t }) {
14611
+ function U5({ value: t }) {
14612
14612
  const [, n] = S(0);
14613
14613
  if (Le(() => {
14614
14614
  const c = setInterval(() => n((m) => m + 1), 6e4);
@@ -14626,7 +14626,7 @@ function U_({ value: t }) {
14626
14626
  }
14627
14627
  );
14628
14628
  }
14629
- function B_({
14629
+ function B5({
14630
14630
  field: t,
14631
14631
  value: n,
14632
14632
  onChange: a
@@ -14764,7 +14764,7 @@ function pp(t) {
14764
14764
  const n = uh(t);
14765
14765
  return n.valid && n.stored ? n.display : String(t ?? "");
14766
14766
  }
14767
- function W_(t, n, a) {
14767
+ function W5(t, n, a) {
14768
14768
  switch (n) {
14769
14769
  case "null":
14770
14770
  return Zd(t);
@@ -14781,7 +14781,7 @@ function W_(t, n, a) {
14781
14781
  function ty(t, n, a, s) {
14782
14782
  if (t.type === "required_if") {
14783
14783
  const l = t.field;
14784
- return !l || !s || !W_(s[l], String(t.op ?? "eq"), t.value) ? null : Zd(n) ? t.message ?? `${a} is required when ${l} matches this condition` : null;
14784
+ return !l || !s || !W5(s[l], String(t.op ?? "eq"), t.value) ? null : Zd(n) ? t.message ?? `${a} is required when ${l} matches this condition` : null;
14785
14785
  }
14786
14786
  if (Zd(n) && t.type !== "required") return null;
14787
14787
  switch (t.type) {
@@ -14899,7 +14899,7 @@ function Uf({
14899
14899
  ] })
14900
14900
  ] });
14901
14901
  }
14902
- const Q_ = [
14902
+ const Q5 = [
14903
14903
  "#00ceff",
14904
14904
  "#172940",
14905
14905
  "#ef4444",
@@ -14919,7 +14919,7 @@ function Bf({
14919
14919
  onChange: a,
14920
14920
  readOnly: s
14921
14921
  }) {
14922
- const l = ny(t).presets, i = (Array.isArray(l) && l.length > 0 ? l : Q_).map((u) => String(u).trim()).filter((u) => /^#?[0-9a-f]{3,8}$/i.test(u)).map((u) => u.startsWith("#") ? u : `#${u}`), o = typeof n == "string" ? n : "", d = /^#?[0-9a-f]{6}$/i.test(o) ? o.startsWith("#") ? o : `#${o}` : "#00ceff";
14922
+ const l = ny(t).presets, i = (Array.isArray(l) && l.length > 0 ? l : Q5).map((u) => String(u).trim()).filter((u) => /^#?[0-9a-f]{3,8}$/i.test(u)).map((u) => u.startsWith("#") ? u : `#${u}`), o = typeof n == "string" ? n : "", d = /^#?[0-9a-f]{6}$/i.test(o) ? o.startsWith("#") ? o : `#${o}` : "#00ceff";
14923
14923
  return s ? /* @__PURE__ */ e("div", { className: "flex min-h-[36px] items-center gap-2", children: o ? /* @__PURE__ */ r(ct, { children: [
14924
14924
  /* @__PURE__ */ e(
14925
14925
  "span",
@@ -15009,8 +15009,8 @@ function Wf({
15009
15009
  d && /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-red-500", children: d })
15010
15010
  ] });
15011
15011
  }
15012
- const V_ = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
15013
- function J_({
15012
+ const V5 = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
15013
+ function J5({
15014
15014
  value: t,
15015
15015
  onChange: n,
15016
15016
  placeholder: a
@@ -15029,7 +15029,7 @@ function J_({
15029
15029
  },
15030
15030
  onBlur: (o) => {
15031
15031
  const d = o.target.value.trim();
15032
- i(d && !V_.test(d) ? "Enter a valid email address" : null);
15032
+ i(d && !V5.test(d) ? "Enter a valid email address" : null);
15033
15033
  },
15034
15034
  placeholder: a ?? "name@example.com",
15035
15035
  className: l ? "border-red-400 focus-visible:ring-red-400" : void 0,
@@ -15039,7 +15039,7 @@ function J_({
15039
15039
  l && /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-red-500", children: l })
15040
15040
  ] });
15041
15041
  }
15042
- function H_({
15042
+ function H5({
15043
15043
  field: t,
15044
15044
  value: n,
15045
15045
  onChange: a,
@@ -15114,7 +15114,7 @@ function H_({
15114
15114
  )) })
15115
15115
  ] });
15116
15116
  }
15117
- function G_({ value: t }) {
15117
+ function G5({ value: t }) {
15118
15118
  const n = Number(t);
15119
15119
  return !Number.isFinite(n) || t == null || t === "" ? /* @__PURE__ */ e("div", { className: "flex min-h-[36px] items-center", children: /* @__PURE__ */ e("span", { className: "text-sm italic text-muted-foreground", children: "—" }) }) : /* @__PURE__ */ r("div", { className: "flex min-h-[36px] items-center gap-2", children: [
15120
15120
  /* @__PURE__ */ r("span", { className: "text-sm tabular-nums", children: [
@@ -15129,7 +15129,7 @@ function G_({ value: t }) {
15129
15129
  ] })
15130
15130
  ] });
15131
15131
  }
15132
- function Y_({ value: t }) {
15132
+ function Y5({ value: t }) {
15133
15133
  const n = (() => {
15134
15134
  const s = typeof t == "string" ? (() => {
15135
15135
  try {
@@ -15172,7 +15172,7 @@ function Y_({ value: t }) {
15172
15172
  ] });
15173
15173
  }
15174
15174
  function ry(t) {
15175
- const n = Na(), a = [...new Set(t.filter((l) => !!l))].sort(), { data: s } = se({
15175
+ const n = wa(), a = [...new Set(t.filter((l) => !!l))].sort(), { data: s } = se({
15176
15176
  queryKey: ["file-health", a.join(",")],
15177
15177
  queryFn: () => n.request(
15178
15178
  ze("/files/verify", { ids: a.slice(0, 100) })
@@ -15193,7 +15193,7 @@ function ry(t) {
15193
15193
  function dF(t) {
15194
15194
  return t ? t.startsWith("image/") || t === "application/pdf" || t.startsWith("video/") || t.startsWith("audio/") || t.startsWith("text/") : !1;
15195
15195
  }
15196
- function X_(t) {
15196
+ function X5(t) {
15197
15197
  return t == null || !Number.isFinite(t) ? null : t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : `${(t / (1024 * 1024)).toFixed(1)} MB`;
15198
15198
  }
15199
15199
  function Sm({
@@ -15206,7 +15206,7 @@ function Sm({
15206
15206
  };
15207
15207
  return window.addEventListener("keydown", i, !0), () => window.removeEventListener("keydown", i, !0);
15208
15208
  }, [n]);
15209
- const a = t.type ?? "", s = X_(t.size);
15209
+ const a = t.type ?? "", s = X5(t.size);
15210
15210
  let l;
15211
15211
  return a.startsWith("image/") ? l = /* @__PURE__ */ e(
15212
15212
  "img",
@@ -15307,10 +15307,10 @@ function ay(t) {
15307
15307
  const n = new Date(t);
15308
15308
  return n.toLocaleDateString(void 0, { month: "short", day: "numeric", year: "numeric" }) + " " + n.toLocaleTimeString(void 0, { hour: "2-digit", minute: "2-digit" });
15309
15309
  }
15310
- function Z_(t) {
15310
+ function Z5(t) {
15311
15311
  return !!t && t.startsWith("image/");
15312
15312
  }
15313
- function e5(t, n) {
15313
+ function e_(t, n) {
15314
15314
  return t ? t.startsWith("video/") ? /* @__PURE__ */ e(d1, { className: n, strokeWidth: 1.5 }) : t.startsWith("audio/") ? /* @__PURE__ */ e(c1, { className: n, strokeWidth: 1.5 }) : t === "application/pdf" ? /* @__PURE__ */ e(cu, { className: n, strokeWidth: 1.5 }) : t.startsWith("text/") ? /* @__PURE__ */ e(cu, { className: n, strokeWidth: 1.5 }) : t.includes("spreadsheet") || t.includes("excel") || t === "text/csv" ? /* @__PURE__ */ e(U0, { className: n, strokeWidth: 1.5 }) : t.includes("wordprocessing") || t.includes("msword") ? /* @__PURE__ */ e(cu, { className: n, strokeWidth: 1.5 }) : t.includes("json") || t.includes("javascript") || t.includes("typescript") || t.includes("xml") ? /* @__PURE__ */ e(u1, { className: n, strokeWidth: 1.5 }) : /* @__PURE__ */ e(n0, { className: n, strokeWidth: 1.5 }) : /* @__PURE__ */ e(n0, { className: n, strokeWidth: 1.5 });
15315
15315
  }
15316
15316
  function gc({
@@ -15320,7 +15320,7 @@ function gc({
15320
15320
  size: s = "md"
15321
15321
  }) {
15322
15322
  const l = s === "sm" ? "h-10 w-10" : s === "lg" ? "h-20 w-20" : "h-14 w-14";
15323
- return Z_(n) ? /* @__PURE__ */ e(
15323
+ return Z5(n) ? /* @__PURE__ */ e(
15324
15324
  "img",
15325
15325
  {
15326
15326
  src: t,
@@ -15331,7 +15331,7 @@ function gc({
15331
15331
  i.target.style.display = "none";
15332
15332
  }
15333
15333
  }
15334
- ) : /* @__PURE__ */ e("div", { className: H(l, "flex items-center justify-center rounded bg-slate-100 shrink-0"), children: e5(n, s === "sm" ? "h-4 w-4" : "h-6 w-6") });
15334
+ ) : /* @__PURE__ */ e("div", { className: H(l, "flex items-center justify-center rounded bg-slate-100 shrink-0"), children: e_(n, s === "sm" ? "h-4 w-4" : "h-6 w-6") });
15335
15335
  }
15336
15336
  function sy({
15337
15337
  selected: t,
@@ -15424,7 +15424,7 @@ function sy({
15424
15424
  ] })
15425
15425
  ] });
15426
15426
  }
15427
- function t5({
15427
+ function t_({
15428
15428
  value: t,
15429
15429
  onChange: n,
15430
15430
  disabled: a,
@@ -15640,7 +15640,7 @@ function t5({
15640
15640
  )
15641
15641
  ] });
15642
15642
  }
15643
- function n5({
15643
+ function n_({
15644
15644
  relation: t,
15645
15645
  parentId: n,
15646
15646
  allRelations: a,
@@ -15962,7 +15962,7 @@ function n5({
15962
15962
  ] })
15963
15963
  ] });
15964
15964
  }
15965
- const r5 = /* @__PURE__ */ new Set([
15965
+ const r_ = /* @__PURE__ */ new Set([
15966
15966
  "alias",
15967
15967
  "o2m",
15968
15968
  "m2m",
@@ -15971,7 +15971,7 @@ const r5 = /* @__PURE__ */ new Set([
15971
15971
  "group",
15972
15972
  "divider"
15973
15973
  ]);
15974
- function a5({
15974
+ function a_({
15975
15975
  relatedCollection: t,
15976
15976
  manyField: n,
15977
15977
  parentId: a,
@@ -16008,7 +16008,7 @@ function a5({
16008
16008
  enabled: !c,
16009
16009
  staleTime: 3e4
16010
16010
  }), $ = c && u ? u.getPendingRows(t, n) : [], j = w.filter(
16011
- (X) => !X.hidden && !r5.has(X.type) && X.field !== n && X.field !== "id"
16011
+ (X) => !X.hidden && !r_.has(X.type) && X.field !== n && X.field !== "id"
16012
16012
  ), E = ye(
16013
16013
  () => ((N == null ? void 0 : N.groups) ?? []).filter((X) => X.type === "section").sort((X, ne) => X.sort - ne.sort),
16014
16014
  [N]
@@ -16595,7 +16595,7 @@ function dy({
16595
16595
  }
16596
16596
  ) });
16597
16597
  }
16598
- function s5({
16598
+ function s_({
16599
16599
  relation: t,
16600
16600
  parentId: n,
16601
16601
  allRelations: a,
@@ -16802,7 +16802,7 @@ function s5({
16802
16802
  ne.tip
16803
16803
  ] });
16804
16804
  }
16805
- function l5({
16805
+ function l_({
16806
16806
  targetCollection: t,
16807
16807
  config: n,
16808
16808
  onCreated: a
@@ -16903,7 +16903,7 @@ function l5({
16903
16903
  ] })
16904
16904
  ] });
16905
16905
  }
16906
- function i5({
16906
+ function i_({
16907
16907
  collection: t,
16908
16908
  value: n,
16909
16909
  onChange: a,
@@ -17136,7 +17136,7 @@ function os({
17136
17136
  function Uc() {
17137
17137
  return /* @__PURE__ */ e("div", { className: "mx-0.5 h-4 w-px bg-slate-200" });
17138
17138
  }
17139
- function o5({
17139
+ function o_({
17140
17140
  value: t,
17141
17141
  onChange: n,
17142
17142
  placeholder: a,
@@ -17379,7 +17379,7 @@ function o5({
17379
17379
  )
17380
17380
  ] }),
17381
17381
  c && /* @__PURE__ */ e(
17382
- u5,
17382
+ u_,
17383
17383
  {
17384
17384
  apiBase: h.apiBase,
17385
17385
  authHeaders: h.authHeaders,
@@ -17423,15 +17423,15 @@ function o5({
17423
17423
  }
17424
17424
  );
17425
17425
  }
17426
- function d5(t, n) {
17426
+ function d_(t, n) {
17427
17427
  return t ? t.replace(/\{\{\s*([^}]+?)\s*\}\}/g, (a, s) => {
17428
17428
  if (s.includes(".")) return "";
17429
17429
  const l = n[s];
17430
17430
  return l == null ? "" : String(l);
17431
17431
  }).replace(/\s+/g, " ").trim() : "";
17432
17432
  }
17433
- function c5(t, n) {
17434
- const a = d5(n, t);
17433
+ function c_(t, n) {
17434
+ const a = d_(n, t);
17435
17435
  if (a) return a;
17436
17436
  for (const s of ["name", "title", "label", "subject"]) {
17437
17437
  const l = t[s];
@@ -17439,7 +17439,7 @@ function c5(t, n) {
17439
17439
  }
17440
17440
  return `#${String(t.id ?? "")}`;
17441
17441
  }
17442
- function u5({
17442
+ function u_({
17443
17443
  apiBase: t,
17444
17444
  authHeaders: n,
17445
17445
  credentials: a,
@@ -17475,7 +17475,7 @@ function u5({
17475
17475
  return /* @__PURE__ */ r("div", { className: "space-y-1.5 border-b border-slate-200 bg-slate-50 px-2 py-1.5", children: [
17476
17476
  /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
17477
17477
  /* @__PURE__ */ e(
17478
- va,
17478
+ ka,
17479
17479
  {
17480
17480
  value: i,
17481
17481
  onChange: o,
@@ -17518,7 +17518,7 @@ function u5({
17518
17518
  ] }),
17519
17519
  i && c.trim() && ((y == null ? void 0 : y.length) ?? 0) === 0 && !v && /* @__PURE__ */ e("p", { className: "px-1 text-[11px] text-slate-400", children: "No matching records." }),
17520
17520
  ((y == null ? void 0 : y.length) ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "max-h-40 overflow-y-auto rounded border border-slate-200 bg-white", children: (y ?? []).map((g) => {
17521
- const x = c5(g, f == null ? void 0 : f.display_template), b = String(g.id ?? "");
17521
+ const x = c_(g, f == null ? void 0 : f.display_template), b = String(g.id ?? "");
17522
17522
  return /* @__PURE__ */ r(
17523
17523
  "button",
17524
17524
  {
@@ -17579,7 +17579,7 @@ function Pu(t, n, a) {
17579
17579
  const s = Du(t, n, a);
17580
17580
  return s.ok ? s.v : void 0;
17581
17581
  }
17582
- function m5({
17582
+ function m_({
17583
17583
  plugin: t,
17584
17584
  props: n
17585
17585
  }) {
@@ -17630,10 +17630,10 @@ function yl({
17630
17630
  } catch {
17631
17631
  return null;
17632
17632
  }
17633
- })(), g = t.interface ?? "", x = Pe(s_(g)).current;
17633
+ })(), g = t.interface ?? "", x = Pe(s5(g)).current;
17634
17634
  if (x)
17635
17635
  return /* @__PURE__ */ e(
17636
- m5,
17636
+ m_,
17637
17637
  {
17638
17638
  plugin: x,
17639
17639
  props: {
@@ -17649,7 +17649,7 @@ function yl({
17649
17649
  if (g === "file-image" || g === "file") {
17650
17650
  const L = hr(t.options);
17651
17651
  return /* @__PURE__ */ e(
17652
- t5,
17652
+ t_,
17653
17653
  {
17654
17654
  value: n,
17655
17655
  onChange: a,
@@ -17667,7 +17667,7 @@ function yl({
17667
17667
  const X = hr(t.options);
17668
17668
  if (X != null && X.group_field && (X != null && X.option_field))
17669
17669
  return /* @__PURE__ */ e(
17670
- i5,
17670
+ i_,
17671
17671
  {
17672
17672
  collection: F.one_collection,
17673
17673
  value: n,
@@ -17710,7 +17710,7 @@ function yl({
17710
17710
  return !L && !J ? Z : /* @__PURE__ */ r("div", { className: "flex items-center gap-1.5", children: [
17711
17711
  /* @__PURE__ */ e("div", { className: "min-w-0 flex-1", children: Z }),
17712
17712
  J && /* @__PURE__ */ e(
17713
- l5,
17713
+ l_,
17714
17714
  {
17715
17715
  targetCollection: F.one_collection,
17716
17716
  config: J,
@@ -17749,7 +17749,7 @@ function yl({
17749
17749
  if (g === "files-m2m") {
17750
17750
  const z = hr(t.options);
17751
17751
  return /* @__PURE__ */ e(
17752
- n5,
17752
+ n_,
17753
17753
  {
17754
17754
  relation: C,
17755
17755
  parentId: i,
@@ -17763,7 +17763,7 @@ function yl({
17763
17763
  }
17764
17764
  const L = hr(t.options), O = typeof (L == null ? void 0 : L.option_sort) == "string" && L.option_sort ? L.option_sort : void 0;
17765
17765
  return (L == null ? void 0 : L.max_values) === 1 ? /* @__PURE__ */ e(
17766
- s5,
17766
+ s_,
17767
17767
  {
17768
17768
  relation: C,
17769
17769
  parentId: i,
@@ -17832,8 +17832,8 @@ function yl({
17832
17832
  const z = ($ = hr(t.options)) == null ? void 0 : $.rating_max;
17833
17833
  return /* @__PURE__ */ e(Uf, { value: n, onChange: a, max: z ?? 5, readOnly: !0 });
17834
17834
  }
17835
- if (g === "duration") return /* @__PURE__ */ e(G_, { value: n });
17836
- if (g === "checklist") return /* @__PURE__ */ e(Y_, { value: n });
17835
+ if (g === "duration") return /* @__PURE__ */ e(G5, { value: n });
17836
+ if (g === "checklist") return /* @__PURE__ */ e(Y5, { value: n });
17837
17837
  if (g === "color")
17838
17838
  return /* @__PURE__ */ e(Bf, { field: t, value: n, onChange: a, readOnly: !0 });
17839
17839
  if (g === "phone") return /* @__PURE__ */ e(Wf, { value: n, onChange: a, readOnly: !0 });
@@ -17866,7 +17866,7 @@ function yl({
17866
17866
  Mt,
17867
17867
  {
17868
17868
  type: "datetime-local",
17869
- value: e_(n),
17869
+ value: e5(n),
17870
17870
  onChange: (O) => a(O.target.value ? new Date(O.target.value).toISOString() : null),
17871
17871
  placeholder: t.placeholder ?? void 0
17872
17872
  }
@@ -17884,14 +17884,14 @@ function yl({
17884
17884
  max: O.max,
17885
17885
  onChange: (z) => a(z.target.value || null),
17886
17886
  onPaste: (z) => {
17887
- const K = M_(z.clipboardData.getData("text"));
17887
+ const K = M5(z.clipboardData.getData("text"));
17888
17888
  K && (z.preventDefault(), a(K));
17889
17889
  },
17890
17890
  placeholder: t.placeholder ?? void 0,
17891
17891
  className: "flex-1"
17892
17892
  }
17893
17893
  ),
17894
- L && /* @__PURE__ */ e(U_, { value: A.slice(0, 10) })
17894
+ L && /* @__PURE__ */ e(U5, { value: A.slice(0, 10) })
17895
17895
  ] });
17896
17896
  }
17897
17897
  if ([
@@ -17971,7 +17971,7 @@ function yl({
17971
17971
  );
17972
17972
  if (g === "input-rich-text-html" || g === "rich_text" || t.type === "rich_text" || g === "extension-editorjs")
17973
17973
  return /* @__PURE__ */ e(
17974
- o5,
17974
+ o_,
17975
17975
  {
17976
17976
  value: A,
17977
17977
  onChange: a,
@@ -17995,7 +17995,7 @@ function yl({
17995
17995
  }
17996
17996
  })() : t.options ?? {}).layout_slug ?? null;
17997
17997
  return /* @__PURE__ */ e(
17998
- a5,
17998
+ a_,
17999
17999
  {
18000
18000
  relatedCollection: O,
18001
18001
  manyField: z,
@@ -18024,7 +18024,7 @@ function yl({
18024
18024
  }
18025
18025
  })() : t.options ?? {}, Z = K.layout_id ?? null, J = !!K.show_row_revisions, X = !!K.row_comments, ne = K.allow_revision_restore !== !1, ce = K.save_mode ?? "immediate", te = !!K.show_line_numbers, xe = K.enable_reorder !== !1, ge = Array.isArray(K.parent_cascades) ? K.parent_cascades : void 0, Ke = Array.isArray(K.row_rules) ? K.row_rules : void 0, ke = Array.isArray(K.column_presets) ? K.column_presets : void 0, Be = typeof K.default_preset == "string" && K.default_preset ? K.default_preset : void 0, we = Array.isArray(K.drawer_relations) ? K.drawer_relations : void 0, W = Array.isArray(K.parent_context_fields) ? K.parent_context_fields : void 0, de = Array.isArray(K.unique_by) ? K.unique_by : void 0, re = typeof K.sort_field == "string" && K.sort_field ? K.sort_field : void 0, ie = K.sort_dir === "desc" ? "desc" : "asc", pe = K.freeze_first_column === !0, Ne = typeof K.section_group_by == "string" && K.section_group_by.includes(".") ? K.section_group_by : void 0, G = K.row_filter && typeof K.row_filter == "object" ? K.row_filter : void 0, be = K.allocate_drawer && typeof K.allocate_drawer == "object" ? K.allocate_drawer : void 0, Me = K.auto_allocate && typeof K.auto_allocate == "object" ? K.auto_allocate : void 0, rt = Array.isArray(K.row_bulk_actions) ? K.row_bulk_actions : void 0, tt = typeof K.upload_template == "string" && K.upload_template ? K.upload_template : void 0, qe = K.row_defaults && typeof K.row_defaults == "object" ? K.row_defaults : void 0, He = K.submission_errors === !0 ? {} : K.submission_errors && typeof K.submission_errors == "object" ? K.submission_errors : void 0, Ze = K.catalog_mode;
18026
18026
  return Ze != null && Ze.item_field && (Ze != null && Ze.section_by) ? /* @__PURE__ */ e(
18027
- j_,
18027
+ j5,
18028
18028
  {
18029
18029
  relatedCollection: O,
18030
18030
  manyField: z,
@@ -18034,7 +18034,7 @@ function yl({
18034
18034
  readOnly: t.readonly
18035
18035
  }
18036
18036
  ) : /* @__PURE__ */ e(
18037
- q_,
18037
+ q5,
18038
18038
  {
18039
18039
  relatedCollection: O,
18040
18040
  manyField: z,
@@ -18084,10 +18084,10 @@ function yl({
18084
18084
  if (g === "phone")
18085
18085
  return /* @__PURE__ */ e(Wf, { value: n, onChange: a, placeholder: t.placeholder ?? void 0 });
18086
18086
  if (g === "email")
18087
- return /* @__PURE__ */ e(J_, { value: n, onChange: a, placeholder: t.placeholder ?? void 0 });
18087
+ return /* @__PURE__ */ e(J5, { value: n, onChange: a, placeholder: t.placeholder ?? void 0 });
18088
18088
  if (g === "address-autocomplete")
18089
18089
  return /* @__PURE__ */ e(
18090
- H_,
18090
+ H5,
18091
18091
  {
18092
18092
  field: t,
18093
18093
  value: n,
@@ -18098,15 +18098,15 @@ function yl({
18098
18098
  placeholder: t.placeholder ?? void 0
18099
18099
  }
18100
18100
  );
18101
- if (g === "duration") return /* @__PURE__ */ e(E_, { value: n, onChange: a });
18102
- if (g === "fiscal_period") return /* @__PURE__ */ e(K_, { value: n, onChange: a });
18103
- if (g === "checklist") return /* @__PURE__ */ e(I_, { value: n, onChange: a });
18101
+ if (g === "duration") return /* @__PURE__ */ e(E5, { value: n, onChange: a });
18102
+ if (g === "fiscal_period") return /* @__PURE__ */ e(K5, { value: n, onChange: a });
18103
+ if (g === "checklist") return /* @__PURE__ */ e(I5, { value: n, onChange: a });
18104
18104
  if (g === "repeater" || t.repeater_schema && t.type === "json")
18105
- return /* @__PURE__ */ e(B_, { field: t, value: n, onChange: a });
18105
+ return /* @__PURE__ */ e(B5, { field: t, value: n, onChange: a });
18106
18106
  if (g === "range_slider") {
18107
18107
  const L = (q = hr(t.options)) == null ? void 0 : q.range_end_field;
18108
18108
  return /* @__PURE__ */ e(
18109
- D_,
18109
+ D5,
18110
18110
  {
18111
18111
  field: t,
18112
18112
  value: n,
@@ -18118,7 +18118,7 @@ function yl({
18118
18118
  if (g === "date_range") {
18119
18119
  const L = (V = hr(t.options)) == null ? void 0 : V.range_end_field;
18120
18120
  return /* @__PURE__ */ e(
18121
- z_,
18121
+ z5,
18122
18122
  {
18123
18123
  field: t,
18124
18124
  value: n,
@@ -18129,7 +18129,7 @@ function yl({
18129
18129
  }
18130
18130
  if (g === "address")
18131
18131
  return /* @__PURE__ */ e(
18132
- P_,
18132
+ P5,
18133
18133
  {
18134
18134
  field: t,
18135
18135
  value: n,
@@ -18139,7 +18139,7 @@ function yl({
18139
18139
  }
18140
18140
  );
18141
18141
  if (g === "tags")
18142
- return /* @__PURE__ */ e(p5, { field: t, value: n, onChange: a });
18142
+ return /* @__PURE__ */ e(p_, { field: t, value: n, onChange: a });
18143
18143
  if (g === "select-dropdown" || g === "radio-buttons") {
18144
18144
  const L = (() => {
18145
18145
  const O = hr(t.options);
@@ -18147,7 +18147,7 @@ function yl({
18147
18147
  })();
18148
18148
  if (L.length > 0)
18149
18149
  return /* @__PURE__ */ e(
18150
- va,
18150
+ ka,
18151
18151
  {
18152
18152
  value: A,
18153
18153
  onChange: (O) => a(O || null),
@@ -18160,7 +18160,7 @@ function yl({
18160
18160
  }
18161
18161
  );
18162
18162
  }
18163
- const _ = R_(t), w = (() => {
18163
+ const _ = R5(t), w = (() => {
18164
18164
  const L = hr(t.options);
18165
18165
  if (Number.isFinite(Number(L == null ? void 0 : L.max_length))) return Number(L == null ? void 0 : L.max_length);
18166
18166
  const O = hr(t.validation_rules), z = Array.isArray(O) ? O.find((K) => (K == null ? void 0 : K.type) === "max") : null;
@@ -18198,7 +18198,7 @@ function yl({
18198
18198
  }
18199
18199
  return k;
18200
18200
  }
18201
- function p5({
18201
+ function p_({
18202
18202
  field: t,
18203
18203
  value: n,
18204
18204
  onChange: a
@@ -18296,7 +18296,7 @@ function cy(t) {
18296
18296
  const a = n == null ? void 0 : n.parent_filter;
18297
18297
  return a && typeof a == "object" && !Array.isArray(a) ? a : void 0;
18298
18298
  }
18299
- function h5(t, n, a) {
18299
+ function h_(t, n, a) {
18300
18300
  const s = (l) => l == null || l === "" ? Number.NaN : Number(l);
18301
18301
  switch (n) {
18302
18302
  case "_eq":
@@ -18328,21 +18328,21 @@ function mh(t, n) {
18328
18328
  const l = t[a];
18329
18329
  if (s && typeof s == "object" && !Array.isArray(s)) {
18330
18330
  for (const [i, o] of Object.entries(s))
18331
- if (!h5(l, i, o)) return !1;
18331
+ if (!h_(l, i, o)) return !1;
18332
18332
  } else if (String(l ?? "") !== String(s ?? ""))
18333
18333
  return !1;
18334
18334
  }
18335
18335
  return !0;
18336
18336
  }
18337
- function f5(t, n) {
18337
+ function f_(t, n) {
18338
18338
  return wi(t, n);
18339
18339
  }
18340
- function x5(t, n) {
18340
+ function x_(t, n) {
18341
18341
  const a = n.filter((i) => mh(i, t.filter)), s = t.aggregate ?? "sum";
18342
18342
  if (s === "count") return a.length;
18343
18343
  const l = [];
18344
18344
  for (const i of a) {
18345
- const o = t.value_formula ? f5(t.value_formula, i) : t.value_field ? Number(i[t.value_field]) : Number.NaN;
18345
+ const o = t.value_formula ? f_(t.value_formula, i) : t.value_field ? Number(i[t.value_field]) : Number.NaN;
18346
18346
  o !== null && Number.isFinite(o) && l.push(o);
18347
18347
  }
18348
18348
  if (l.length === 0) return null;
@@ -18363,7 +18363,7 @@ function uy(t, n) {
18363
18363
  for (const s of t) {
18364
18364
  const l = n.get(`${s.related_collection}.${s.fk_field}`);
18365
18365
  if (!l) return null;
18366
- const i = x5(s, l);
18366
+ const i = x_(s, l);
18367
18367
  i !== null && (a = (a ?? 0) + i);
18368
18368
  }
18369
18369
  return a;
@@ -18374,7 +18374,7 @@ function fu(t, n) {
18374
18374
  const a = cy(t.computed_formula);
18375
18375
  return !a || mh(n, a);
18376
18376
  }
18377
- const b5 = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger", "number"]), g5 = /* @__PURE__ */ new Set(["string", "text", "richtext", "textarea", "markdown", "json", "csv"]), y5 = /* @__PURE__ */ new Set([
18377
+ const b_ = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger", "number"]), g_ = /* @__PURE__ */ new Set(["string", "text", "richtext", "textarea", "markdown", "json", "csv"]), y_ = /* @__PURE__ */ new Set([
18378
18378
  "input",
18379
18379
  "textarea",
18380
18380
  "wysiwyg",
@@ -18382,7 +18382,7 @@ const b5 = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger",
18382
18382
  "input-rich-text-html",
18383
18383
  "rich_text",
18384
18384
  "extension-editorjs"
18385
- ]), v5 = /* @__PURE__ */ new Set([
18385
+ ]), v_ = /* @__PURE__ */ new Set([
18386
18386
  "relation-m2o",
18387
18387
  "relation-m2m",
18388
18388
  "select-multiple-m2m",
@@ -18394,11 +18394,11 @@ const b5 = /* @__PURE__ */ new Set(["integer", "float", "decimal", "bigInteger",
18394
18394
  "files",
18395
18395
  "image"
18396
18396
  ]);
18397
- function k5(t) {
18397
+ function k_(t) {
18398
18398
  const n = t.interface ?? "";
18399
- return v5.has(n) || n.startsWith("relation-") || n.endsWith("-m2o") || n.endsWith("-m2m") ? !1 : !!(g5.has(t.type ?? "") || y5.has(n) || !n && t.type && !b5.has(t.type));
18399
+ return v_.has(n) || n.startsWith("relation-") || n.endsWith("-m2o") || n.endsWith("-m2m") ? !1 : !!(g_.has(t.type ?? "") || y_.has(n) || !n && t.type && !b_.has(t.type));
18400
18400
  }
18401
- function N5({
18401
+ function N_({
18402
18402
  collection: t,
18403
18403
  itemId: n,
18404
18404
  field: a
@@ -18496,7 +18496,7 @@ function N5({
18496
18496
  ] })
18497
18497
  ] });
18498
18498
  }
18499
- function w5({
18499
+ function w_({
18500
18500
  collection: t,
18501
18501
  itemId: n,
18502
18502
  field: a,
@@ -18578,7 +18578,7 @@ function w5({
18578
18578
  ] })
18579
18579
  ] });
18580
18580
  }
18581
- function _5({
18581
+ function __({
18582
18582
  collection: t,
18583
18583
  itemId: n,
18584
18584
  field: a
@@ -18814,7 +18814,7 @@ function Io({
18814
18814
  /* @__PURE__ */ e(ti, { side: "top", className: "max-w-[240px] text-[12px]", children: t.note })
18815
18815
  ] }) }),
18816
18816
  i && i !== "new" && /* @__PURE__ */ e(
18817
- w5,
18817
+ w_,
18818
18818
  {
18819
18819
  collection: l,
18820
18820
  itemId: i,
@@ -18822,9 +18822,9 @@ function Io({
18822
18822
  onRestore: t.readonly ? void 0 : (W) => a(t.field, W)
18823
18823
  }
18824
18824
  ),
18825
- i && i !== "new" && /* @__PURE__ */ e(_5, { collection: l, itemId: i, field: t.field }),
18826
- i && i !== "new" && E && /* @__PURE__ */ e(N5, { collection: l, itemId: i, field: t.field }),
18827
- k5(t) && c && /* @__PURE__ */ r(
18825
+ i && i !== "new" && /* @__PURE__ */ e(__, { collection: l, itemId: i, field: t.field }),
18826
+ i && i !== "new" && E && /* @__PURE__ */ e(N_, { collection: l, itemId: i, field: t.field }),
18827
+ k_(t) && c && /* @__PURE__ */ r(
18828
18828
  "button",
18829
18829
  {
18830
18830
  type: "button",
@@ -18891,10 +18891,12 @@ function Io({
18891
18891
  {
18892
18892
  className: H(
18893
18893
  u && "pointer-events-none opacity-60",
18894
- o && "ring-1 ring-red-400 rounded-md"
18894
+ // The ring lands with a 2px shake so the eye finds the field;
18895
+ // the animation runs once when the class is added.
18896
+ o && "nvr-shake ring-1 ring-red-400 rounded-md"
18895
18897
  ),
18896
18898
  children: R ? /* @__PURE__ */ e(
18897
- r_,
18899
+ r5,
18898
18900
  {
18899
18901
  collection: l,
18900
18902
  field: t,
@@ -18944,7 +18946,7 @@ function xu({
18944
18946
  entries: a,
18945
18947
  separator: s
18946
18948
  }) {
18947
- const l = Na(), i = String(n), d = a.some((p) => p.field.includes(".")) ? ["id", ...a.map((p) => p.field)].join(",") : null, { data: u } = se({
18949
+ const l = wa(), i = String(n), d = a.some((p) => p.field.includes(".")) ? ["id", ...a.map((p) => p.field)].join(",") : null, { data: u } = se({
18948
18950
  queryKey: ["inline-display", t, i, d],
18949
18951
  queryFn: () => l.request(
18950
18952
  ee(`/items/${t}/${i}`, d ? { fields: d } : void 0)
@@ -19022,7 +19024,7 @@ function xu({
19022
19024
  ] }, h)
19023
19025
  )) });
19024
19026
  }
19025
- function S5(t) {
19027
+ function S_(t) {
19026
19028
  if (!t) return null;
19027
19029
  const n = t.replace(/(^|-)([a-z])/g, (s, l, i) => i.toUpperCase()), a = Ab[n];
19028
19030
  return a || null;
@@ -19066,12 +19068,12 @@ function Ni(t, n) {
19066
19068
  const o = Number(t);
19067
19069
  return `${Math.floor(o / 60)}:${String(Math.round(o % 60)).padStart(2, "0")}`;
19068
19070
  }
19069
- if (a === "rating" && Number.isFinite(Number(t))) return `${"★".repeat(Number(t))} (${t}/5)`;
19071
+ if (a === "rating" && Number.isFinite(Number(t)))
19072
+ return `${"★".repeat(Number(t))} (${t}/5)`;
19070
19073
  if (a === "checklist" && typeof t == "string")
19071
19074
  try {
19072
19075
  const o = JSON.parse(t);
19073
- if (Array.isArray(o))
19074
- return `${o.filter((d) => d == null ? void 0 : d.done).length}/${o.length} done`;
19076
+ if (Array.isArray(o)) return `${o.filter((d) => d == null ? void 0 : d.done).length}/${o.length} done`;
19075
19077
  } catch {
19076
19078
  }
19077
19079
  if (a === "address" && typeof t == "string" && t.trim().startsWith("{"))
@@ -19118,7 +19120,9 @@ function Ni(t, n) {
19118
19120
  const c = new Intl.NumberFormat(void 0, { maximumFractionDigits: 2 }).format(i);
19119
19121
  if (u === "$")
19120
19122
  try {
19121
- return new Intl.NumberFormat(void 0, { style: "currency", currency: "USD" }).format(i);
19123
+ return new Intl.NumberFormat(void 0, { style: "currency", currency: "USD" }).format(
19124
+ i
19125
+ );
19122
19126
  } catch {
19123
19127
  return `$${c}`;
19124
19128
  }
@@ -19145,7 +19149,7 @@ function Ni(t, n) {
19145
19149
  return !l.includes(" ") && !l.includes("@") && !/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(l) && !/^\d+$/.test(l) && (l.includes("_") || l.includes("-") || /^[a-z]/.test(l)) ? zt(l) : l;
19146
19150
  }
19147
19151
  function Gf({ userId: t }) {
19148
- const n = Na(), { navigate: a, userUrl: s } = Es(), l = s ? s(t) : `/users/${t}`, { data: i } = se({
19152
+ const n = wa(), { navigate: a, userUrl: s } = Es(), l = s ? s(t) : `/users/${t}`, { data: i } = se({
19149
19153
  queryKey: ["user-chip", t],
19150
19154
  queryFn: () => n.request(
19151
19155
  ee(`/users/${t}`)
@@ -19261,7 +19265,7 @@ function y0({
19261
19265
  "div",
19262
19266
  {
19263
19267
  ref: s,
19264
- style: C5(a.current, d),
19268
+ style: C_(a.current, d),
19265
19269
  onMouseEnter: c,
19266
19270
  onMouseLeave: p,
19267
19271
  onMouseDown: (g) => {
@@ -19288,7 +19292,7 @@ function y0({
19288
19292
  function my(t) {
19289
19293
  return (t == null ? void 0 : t.closest('[role="dialog"]')) ?? document.body;
19290
19294
  }
19291
- function C5(t, n) {
19295
+ function C_(t, n) {
19292
19296
  const a = my(t);
19293
19297
  if (a === document.body) return { position: "fixed", left: n.x, top: n.y, zIndex: 50 };
19294
19298
  const s = a.getBoundingClientRect();
@@ -19298,7 +19302,7 @@ function py({
19298
19302
  collection: t,
19299
19303
  itemId: n
19300
19304
  }) {
19301
- const a = Na(), { data: s = [], isLoading: l } = se({
19305
+ const a = wa(), { data: s = [], isLoading: l } = se({
19302
19306
  queryKey: ["pipeline-owners-resolved", t, n],
19303
19307
  queryFn: () => a.request(
19304
19308
  ze(`/pipelines/instance/${t}/owners/batch`, { ids: [n] })
@@ -19316,7 +19320,7 @@ function v0({
19316
19320
  itemId: n,
19317
19321
  label: a
19318
19322
  }) {
19319
- const s = Na(), { data: l = [] } = se({
19323
+ const s = wa(), { data: l = [] } = se({
19320
19324
  queryKey: ["pipeline-instance-owners", t, n],
19321
19325
  queryFn: () => s.request(ee(`/pipelines/instance/${t}/${n}/owners`)).then((d) => d.data ?? []),
19322
19326
  enabled: !!s && !!t && !!n && n !== "new",
@@ -19344,7 +19348,7 @@ function v0({
19344
19348
  )) })
19345
19349
  ] });
19346
19350
  }
19347
- function $5({
19351
+ function $_({
19348
19352
  user: t,
19349
19353
  userId: n,
19350
19354
  initials: a,
@@ -19504,7 +19508,7 @@ function vo({
19504
19508
  userId: t,
19505
19509
  size: n = "default"
19506
19510
  }) {
19507
- const a = Na(), { navigate: s, userUrl: l } = Es(), i = l ? l(t) : `/users/${t}`, [o, d] = S(!1), { data: u, isLoading: c } = se({
19511
+ const a = wa(), { navigate: s, userUrl: l } = Es(), i = l ? l(t) : `/users/${t}`, [o, d] = S(!1), { data: u, isLoading: c } = se({
19508
19512
  queryKey: ["user-card", t],
19509
19513
  queryFn: () => a.request(ee(`/users/${t}/card`)).then((y) => y.data ?? null),
19510
19514
  enabled: !!a && !!t,
@@ -19544,7 +19548,7 @@ function vo({
19544
19548
  /* @__PURE__ */ e("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: p })
19545
19549
  ] }) }),
19546
19550
  /* @__PURE__ */ e(
19547
- $5,
19551
+ $_,
19548
19552
  {
19549
19553
  user: u,
19550
19554
  userId: t,
@@ -19557,7 +19561,7 @@ function vo({
19557
19561
  )
19558
19562
  ] });
19559
19563
  }
19560
- function q5({
19564
+ function q_({
19561
19565
  collection: t,
19562
19566
  itemId: n,
19563
19567
  layoutId: a,
@@ -19565,7 +19569,7 @@ function q5({
19565
19569
  filenameTemplate: l,
19566
19570
  label: i
19567
19571
  }) {
19568
- const o = Na(), d = jt(), [u, c] = S(!1), m = async () => {
19572
+ const o = wa(), d = jt(), [u, c] = S(!1), m = async () => {
19569
19573
  if (!(!o || u || !s)) {
19570
19574
  c(!0);
19571
19575
  try {
@@ -19619,7 +19623,7 @@ function yc({
19619
19623
  id: n,
19620
19624
  className: a
19621
19625
  }) {
19622
- const s = Na(), l = n != null && n !== "" ? String(n) : null, { data: i } = se({
19626
+ const s = wa(), l = n != null && n !== "" ? String(n) : null, { data: i } = se({
19623
19627
  queryKey: ["col-meta-dt", t],
19624
19628
  queryFn: () => s.request(
19625
19629
  ee(`/collections/${t}`)
@@ -19675,7 +19679,7 @@ function Xf({
19675
19679
  }
19676
19680
  );
19677
19681
  }
19678
- function F5({
19682
+ function F_({
19679
19683
  field: t,
19680
19684
  val: n,
19681
19685
  relations: a,
@@ -19746,7 +19750,7 @@ function F5({
19746
19750
  }
19747
19751
  return /* @__PURE__ */ e("span", { className: `text-[13px] font-semibold ${o}`, children: Ni(n, t) });
19748
19752
  }
19749
- function T5({
19753
+ function T_({
19750
19754
  summaryFields: t,
19751
19755
  fields: n,
19752
19756
  draft: a,
@@ -19873,7 +19877,7 @@ function T5({
19873
19877
  };
19874
19878
  return /* @__PURE__ */ e("div", { className: "flex flex-wrap items-baseline gap-x-5 gap-y-1.5 border-t border-slate-100 dark:border-border/60 bg-slate-50/50 dark:bg-white/[0.015] px-5 py-2.5", children: y.map((C) => /* @__PURE__ */ e(kl.Fragment, { children: F(C) }, C)) });
19875
19879
  }
19876
- function j5({
19880
+ function j_({
19877
19881
  group: t,
19878
19882
  fields: n,
19879
19883
  draft: a,
@@ -19921,12 +19925,12 @@ function j5({
19921
19925
  if (t.hide_when_empty && v && (we = v.every(
19922
19926
  (Ne) => Ne == null || Ne === "" || Array.isArray(Ne) && Ne.length === 0
19923
19927
  ) && !Be && ke.every((Ne) => !X[Ne.field])), we && ke.length === 0) return null;
19924
- const W = Pe(null), de = Gg(W), re = S5(t.icon), ie = n.filter((pe) => !pe.hidden);
19928
+ const W = Pe(null), de = Gg(W), re = S_(t.icon), ie = n.filter((pe) => !pe.hidden);
19925
19929
  return /* @__PURE__ */ r(
19926
19930
  "div",
19927
19931
  {
19928
19932
  className: H(
19929
- "rounded-xl border border-slate-200 bg-white dark:bg-card dark:border-border",
19933
+ "nvr-section-enter rounded-xl border border-slate-200 bg-white dark:bg-card dark:border-border",
19930
19934
  p && "bg-slate-50/60 dark:bg-slate-900/20",
19931
19935
  we && "hidden"
19932
19936
  ),
@@ -19947,7 +19951,7 @@ function j5({
19947
19951
  re && /* @__PURE__ */ e(re, { className: "h-3.5 w-3.5 shrink-0 text-slate-400 dark:text-slate-500" }),
19948
19952
  /* @__PURE__ */ e("span", { className: "font-medium text-[13px] shrink-0 text-slate-800 dark:text-slate-200", children: t.label }),
19949
19953
  /* @__PURE__ */ e("span", { className: "flex-1" }),
19950
- ge && /* @__PURE__ */ e("span", { className: "h-2 w-2 rounded-full bg-destructive shrink-0" }),
19954
+ ge && /* @__PURE__ */ e("span", { className: "nvr-pop h-2 w-2 rounded-full bg-destructive shrink-0" }),
19951
19955
  /* @__PURE__ */ e(
19952
19956
  $n,
19953
19957
  {
@@ -19961,7 +19965,7 @@ function j5({
19961
19965
  }
19962
19966
  ),
19963
19967
  te && b && b.length > 0 && /* @__PURE__ */ e(
19964
- T5,
19968
+ T_,
19965
19969
  {
19966
19970
  summaryFields: b,
19967
19971
  fields: n,
@@ -19992,7 +19996,7 @@ function j5({
19992
19996
  },
19993
19997
  pe.field
19994
19998
  )) }),
19995
- !te && /* @__PURE__ */ r("div", { className: "border-t border-slate-100 px-5 py-4", children: [
19999
+ !te && /* @__PURE__ */ r("div", { className: "nvr-expand-in border-t border-slate-100 px-5 py-4", children: [
19996
20000
  (() => {
19997
20001
  const pe = ie.map((Ne) => ({
19998
20002
  _k: Ne.field,
@@ -20069,7 +20073,7 @@ function j5({
20069
20073
  if (!E) return null;
20070
20074
  const wt = Ne.slot.col_span ?? 12, bn = ((mt = Ne.slot.label_override) == null ? void 0 : mt.trim()) || "Generate PDF";
20071
20075
  return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${wt}` }, children: /* @__PURE__ */ e(
20072
- q5,
20076
+ q_,
20073
20077
  {
20074
20078
  collection: i,
20075
20079
  itemId: o,
@@ -20237,7 +20241,7 @@ function jr({ className: t, ...n }) {
20237
20241
  );
20238
20242
  }
20239
20243
  const Md = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
20240
- function A5(t) {
20244
+ function A_(t) {
20241
20245
  const n = new DOMParser().parseFromString(t, "text/html");
20242
20246
  for (const a of n.querySelectorAll("script, style, iframe, object, embed, form, link, meta"))
20243
20247
  a.remove();
@@ -20248,7 +20252,7 @@ function A5(t) {
20248
20252
  }
20249
20253
  return n.body.innerHTML;
20250
20254
  }
20251
- const L5 = (t) => t.replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/\s+/g, " ").trim();
20255
+ const L_ = (t) => t.replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/\s+/g, " ").trim();
20252
20256
  function Zf(t) {
20253
20257
  const n = Number(t);
20254
20258
  return !t || Number.isNaN(n) || n === 0 ? null : /* @__PURE__ */ r(
@@ -20289,11 +20293,11 @@ const fp = {
20289
20293
  badge: "bg-amber-50 text-amber-700 dark:bg-amber-500/10 dark:text-amber-400",
20290
20294
  dot: "bg-amber-500"
20291
20295
  }
20292
- }, O5 = (t, n) => Math.round(Number(t) * 100) === Math.round(Number(n) * 100);
20293
- function R5(t, n, a) {
20296
+ }, O_ = (t, n) => Math.round(Number(t) * 100) === Math.round(Number(n) * 100);
20297
+ function R_(t, n, a) {
20294
20298
  if (!a || t.computed_type !== "rollup" || !t.computed_formula) return t;
20295
20299
  const s = uy(g0(t.computed_formula), a.rows);
20296
- return s === null || n != null && O5(n, s) ? t : {
20300
+ return s === null || n != null && O_(n, s) ? t : {
20297
20301
  ...t,
20298
20302
  options: {
20299
20303
  ...t.options ?? {},
@@ -20301,7 +20305,7 @@ function R5(t, n, a) {
20301
20305
  }
20302
20306
  };
20303
20307
  }
20304
- function M5({
20308
+ function M_({
20305
20309
  current: t,
20306
20310
  value: n,
20307
20311
  onChange: a,
@@ -20354,7 +20358,7 @@ function M5({
20354
20358
  ] })
20355
20359
  ] });
20356
20360
  }
20357
- const E5 = jb(function({
20361
+ const E_ = jb(function({
20358
20362
  configuredFields: n,
20359
20363
  fieldMap: a,
20360
20364
  formData: s,
@@ -20393,7 +20397,7 @@ const E5 = jb(function({
20393
20397
  return /* @__PURE__ */ r("div", { children: [
20394
20398
  /* @__PURE__ */ e(_n, { className: "mb-1 block text-[11px] font-medium text-slate-600 dark:text-slate-400", children: h }),
20395
20399
  /* @__PURE__ */ e(
20396
- M5,
20400
+ M_,
20397
20401
  {
20398
20402
  current: Number.isFinite(v) ? v : 0,
20399
20403
  value: s[m.field],
@@ -20409,7 +20413,7 @@ const E5 = jb(function({
20409
20413
  /* @__PURE__ */ e(
20410
20414
  yl,
20411
20415
  {
20412
- field: R5(p, s[m.field], c),
20416
+ field: R_(p, s[m.field], c),
20413
20417
  value: s[m.field],
20414
20418
  onChange: (v) => l(m.field, v),
20415
20419
  relations: i,
@@ -20422,7 +20426,7 @@ const E5 = jb(function({
20422
20426
  }) })
20423
20427
  ] });
20424
20428
  });
20425
- function D5({
20429
+ function D_({
20426
20430
  addendumId: t,
20427
20431
  onRefresh: n
20428
20432
  }) {
@@ -20572,7 +20576,7 @@ function D5({
20572
20576
  h.completed_at && /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 italic", children: "Workflow complete." })
20573
20577
  ] });
20574
20578
  }
20575
- function P5({
20579
+ function P_({
20576
20580
  collection: t,
20577
20581
  itemId: n,
20578
20582
  assignments: a,
@@ -20785,7 +20789,7 @@ function P5({
20785
20789
  ] })
20786
20790
  ] }),
20787
20791
  /* @__PURE__ */ e(
20788
- E5,
20792
+ E_,
20789
20793
  {
20790
20794
  parentData: d,
20791
20795
  configuredFields: p,
@@ -20813,7 +20817,7 @@ function P5({
20813
20817
  ] })
20814
20818
  ] }) });
20815
20819
  }
20816
- function K5({ addendum: t }) {
20820
+ function K_({ addendum: t }) {
20817
20821
  const n = je(), a = [t.created_by, t.approved_by].filter(Boolean), { data: s = {} } = se({
20818
20822
  queryKey: ["addendum-users", ...a.sort()],
20819
20823
  queryFn: async () => {
@@ -20860,14 +20864,14 @@ function K5({ addendum: t }) {
20860
20864
  "div",
20861
20865
  {
20862
20866
  className: "nvr-addendum-reason text-[12.5px] leading-relaxed text-slate-600 dark:text-slate-300 [&_a]:text-nvr-cyan [&_a]:underline [&_li]:ml-4 [&_ol]:list-decimal [&_p]:mb-1 [&_ul]:list-disc",
20863
- dangerouslySetInnerHTML: { __html: A5(t.description) }
20867
+ dangerouslySetInnerHTML: { __html: A_(t.description) }
20864
20868
  }
20865
20869
  ) : /* @__PURE__ */ e("p", { className: "whitespace-pre-wrap text-[12.5px] leading-relaxed text-slate-600 dark:text-slate-300", children: t.description })
20866
20870
  ] }),
20867
- /* @__PURE__ */ e(I5, { ids: t.attachments })
20871
+ /* @__PURE__ */ e(I_, { ids: t.attachments })
20868
20872
  ] });
20869
20873
  }
20870
- function I5({ ids: t }) {
20874
+ function I_({ ids: t }) {
20871
20875
  const n = je(), [a, s] = S(null), l = Array.isArray(t) ? t.filter(Boolean) : [], { data: i = [] } = se({
20872
20876
  queryKey: ["addendum-files", ...l],
20873
20877
  queryFn: () => Promise.all(
@@ -20921,7 +20925,7 @@ function I5({ ids: t }) {
20921
20925
  ] })
20922
20926
  ] });
20923
20927
  }
20924
- function z5({
20928
+ function z_({
20925
20929
  addendum: t,
20926
20930
  configuredFields: n,
20927
20931
  onRefresh: a,
@@ -21073,7 +21077,7 @@ function z5({
21073
21077
  ] }),
21074
21078
  Zf(t.cost_impact) ?? Zf(O)
21075
21079
  ] }),
21076
- t.description && /* @__PURE__ */ e("p", { className: "mt-0.5 text-[12px] text-slate-500 dark:text-slate-400 line-clamp-1", children: L5(t.description) })
21080
+ t.description && /* @__PURE__ */ e("p", { className: "mt-0.5 text-[12px] text-slate-500 dark:text-slate-400 line-clamp-1", children: L_(t.description) })
21077
21081
  ] }),
21078
21082
  /* @__PURE__ */ e(
21079
21083
  "span",
@@ -21089,7 +21093,7 @@ function z5({
21089
21093
  }
21090
21094
  ),
21091
21095
  c && /* @__PURE__ */ r("div", { className: "border-t border-slate-100 dark:border-border", children: [
21092
- /* @__PURE__ */ e(K5, { addendum: t }),
21096
+ /* @__PURE__ */ e(K_, { addendum: t }),
21093
21097
  (R.length > 0 || t.previous_amount != null || t.new_amount != null) && /* @__PURE__ */ r("div", { className: "px-4 py-3", children: [
21094
21098
  /* @__PURE__ */ e("p", { className: "mb-2 text-[10px] font-semibold uppercase tracking-wide text-slate-400 dark:text-slate-500", children: "Proposed changes" }),
21095
21099
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
@@ -21174,7 +21178,7 @@ function z5({
21174
21178
  ] }),
21175
21179
  t.workflow_template_id && /* @__PURE__ */ r("div", { className: "border-t border-slate-100 dark:border-border px-4 py-3", children: [
21176
21180
  /* @__PURE__ */ e("p", { className: "mb-2 text-[10px] font-semibold uppercase tracking-wide text-slate-400 dark:text-slate-500", children: "Workflow" }),
21177
- /* @__PURE__ */ e(D5, { addendumId: t.id, onRefresh: a }),
21181
+ /* @__PURE__ */ e(D_, { addendumId: t.id, onRefresh: a }),
21178
21182
  $ && /* @__PURE__ */ e("div", { className: "mt-2 flex items-center justify-end gap-2", children: t.status === "approved" ? C ? /* @__PURE__ */ r("span", { className: "flex items-center gap-1.5", children: [
21179
21183
  /* @__PURE__ */ e("span", { className: "text-[11px] text-amber-600 dark:text-amber-400", children: "Roll every applied change back?" }),
21180
21184
  /* @__PURE__ */ e(
@@ -21443,7 +21447,7 @@ function Bc({
21443
21447
  /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-400 dark:text-slate-500", children: "No addendum attached to this record" }),
21444
21448
  /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11px] text-slate-300 dark:text-slate-600", children: "Addendums propose changes that go through a review process before being applied." })
21445
21449
  ] }) : /* @__PURE__ */ e("div", { className: "p-3 space-y-2", children: f.map((j) => /* @__PURE__ */ e(
21446
- z5,
21450
+ z_,
21447
21451
  {
21448
21452
  addendum: j,
21449
21453
  configuredFields: k,
@@ -21466,7 +21470,7 @@ function Bc({
21466
21470
  /* @__PURE__ */ e(jr, { className: "h-9 w-full" }),
21467
21471
  /* @__PURE__ */ e(jr, { className: "h-9 w-3/4" })
21468
21472
  ] }) : c && N ? /* @__PURE__ */ e(
21469
- P5,
21473
+ P_,
21470
21474
  {
21471
21475
  collection: t,
21472
21476
  itemId: n,
@@ -21491,7 +21495,7 @@ const hy = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21491
21495
  }
21492
21496
  ));
21493
21497
  hy.displayName = dd.Root.displayName;
21494
- const U5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21498
+ const U_ = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21495
21499
  dd.Image,
21496
21500
  {
21497
21501
  ref: a,
@@ -21499,7 +21503,7 @@ const U5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21499
21503
  ...n
21500
21504
  }
21501
21505
  ));
21502
- U5.displayName = dd.Image.displayName;
21506
+ U_.displayName = dd.Image.displayName;
21503
21507
  const fy = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21504
21508
  dd.Fallback,
21505
21509
  {
@@ -21528,14 +21532,14 @@ const k0 = nr.forwardRef(({ className: t, orientation: n = "horizontal", decorat
21528
21532
  ));
21529
21533
  k0.displayName = rg.Root.displayName;
21530
21534
  const xy = ["👍", "✅", "👀", "🎉", "❤️", "😂"];
21531
- function B5(t) {
21535
+ function B_(t) {
21532
21536
  var a, s, l, i;
21533
21537
  return [(a = t.first_name) == null ? void 0 : a[0], (s = t.last_name) == null ? void 0 : s[0]].filter(Boolean).join("").toUpperCase() || ((i = (l = t.email) == null ? void 0 : l[0]) == null ? void 0 : i.toUpperCase()) || "?";
21534
21538
  }
21535
21539
  function ex(t) {
21536
21540
  return [t.first_name, t.last_name].filter(Boolean).join(" ") || t.email;
21537
21541
  }
21538
- function W5(t, n) {
21542
+ function W_(t, n) {
21539
21543
  const s = t.slice(0, n).match(/(^|\s)@([a-zA-Z0-9._-]{2,})$/);
21540
21544
  return s ? { start: n - s[2].length - 1, query: s[2] } : null;
21541
21545
  }
@@ -21576,7 +21580,7 @@ function xp({
21576
21580
  };
21577
21581
  }, [y]);
21578
21582
  function F(N) {
21579
- const _ = W5(N.value, N.selectionStart ?? N.value.length);
21583
+ const _ = W_(N.value, N.selectionStart ?? N.value.length);
21580
21584
  o(_), _ || u(0);
21581
21585
  }
21582
21586
  function C(N) {
@@ -21710,7 +21714,7 @@ function xp({
21710
21714
  )
21711
21715
  ] });
21712
21716
  }
21713
- function Q5({ note: t }) {
21717
+ function Q_({ note: t }) {
21714
21718
  const n = rl(), a = je(), s = jt(), [l, i] = S(!1), o = Ue({
21715
21719
  mutationFn: (c) => a.request(ze(`/comments/${t.comment_id}/reactions`, { emoji: c })),
21716
21720
  onSuccess: () => {
@@ -21989,7 +21993,7 @@ function Wc({
21989
21993
  ] })
21990
21994
  ] }, ne)) }) : E ? /* @__PURE__ */ e("p", { className: "py-6 text-center text-[12px] text-red-500", children: "Failed to load comments." }) : V.length === 0 ? /* @__PURE__ */ e("p", { className: "py-6 text-center text-[12px] text-slate-400", children: "No notes yet." }) : /* @__PURE__ */ e("div", { className: "space-y-4", children: V.map((ne) => {
21991
21995
  if (ne.kind === "related")
21992
- return /* @__PURE__ */ e(Q5, { note: ne.note }, ne.note.id);
21996
+ return /* @__PURE__ */ e(Q_, { note: ne.note }, ne.note.id);
21993
21997
  const ce = ne.comment, te = d === ce.user.id, xe = A === ce.id;
21994
21998
  return /* @__PURE__ */ r("div", { className: "group flex gap-3", children: [
21995
21999
  /* @__PURE__ */ e(
@@ -21997,7 +22001,7 @@ function Wc({
21997
22001
  {
21998
22002
  userId: ce.user.id,
21999
22003
  className: "h-8 w-8",
22000
- fallback: /* @__PURE__ */ e(hy, { className: "h-8 w-8 shrink-0", children: /* @__PURE__ */ e(fy, { className: "bg-nvr-cyan/15 text-[11px] font-bold text-nvr-navy", children: B5(ce.user) }) })
22004
+ fallback: /* @__PURE__ */ e(hy, { className: "h-8 w-8 shrink-0", children: /* @__PURE__ */ e(fy, { className: "bg-nvr-cyan/15 text-[11px] font-bold text-nvr-navy", children: B_(ce.user) }) })
22001
22005
  }
22002
22006
  ),
22003
22007
  /* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
@@ -22132,10 +22136,10 @@ function Wc({
22132
22136
  function by(t) {
22133
22137
  return [t.first_name, t.last_name].filter(Boolean).join(" ") || t.email;
22134
22138
  }
22135
- function V5(t) {
22139
+ function V_(t) {
22136
22140
  return by(t).split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
22137
22141
  }
22138
- function J5({
22142
+ function J_({
22139
22143
  collection: t,
22140
22144
  item: n,
22141
22145
  title: a,
@@ -22188,7 +22192,7 @@ function J5({
22188
22192
  {
22189
22193
  userId: h.user,
22190
22194
  className: "h-6 w-6",
22191
- fallback: /* @__PURE__ */ e("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-nvr-cyan/15 text-[10px] font-semibold text-nvr-navy dark:text-nvr-cyan", children: V5(h) })
22195
+ fallback: /* @__PURE__ */ e("span", { className: "flex h-6 w-6 items-center justify-center rounded-full bg-nvr-cyan/15 text-[10px] font-semibold text-nvr-navy dark:text-nvr-cyan", children: V_(h) })
22192
22196
  }
22193
22197
  ),
22194
22198
  /* @__PURE__ */ e("span", { className: "text-[12px] text-slate-700", children: by(h) })
@@ -22199,7 +22203,7 @@ function J5({
22199
22203
  ] }, m)) }) })
22200
22204
  ] });
22201
22205
  }
22202
- function H5({
22206
+ function H_({
22203
22207
  collection: t,
22204
22208
  itemId: n,
22205
22209
  onBack: a
@@ -22449,25 +22453,25 @@ function sx(t) {
22449
22453
  return String(t);
22450
22454
  }
22451
22455
  }
22452
- const G5 = {
22456
+ const G_ = {
22453
22457
  accepted: "bg-emerald-50 text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-400",
22454
22458
  failed: "bg-red-50 text-red-700 dark:bg-red-500/10 dark:text-red-400",
22455
22459
  pending: "bg-sky-50 text-sky-700 dark:bg-sky-500/10 dark:text-sky-400",
22456
22460
  submitted: "bg-sky-50 text-sky-700 dark:bg-sky-500/10 dark:text-sky-400"
22457
22461
  };
22458
- function Y5({ status: t }) {
22462
+ function Y_({ status: t }) {
22459
22463
  return /* @__PURE__ */ e(
22460
22464
  "span",
22461
22465
  {
22462
22466
  className: H(
22463
22467
  "rounded px-1.5 py-0.5 text-[10.5px] font-semibold uppercase tracking-wide",
22464
- G5[t] ?? "bg-slate-100 text-slate-600 dark:bg-muted dark:text-slate-300"
22468
+ G_[t] ?? "bg-slate-100 text-slate-600 dark:bg-muted dark:text-slate-300"
22465
22469
  ),
22466
22470
  children: t
22467
22471
  }
22468
22472
  );
22469
22473
  }
22470
- function X5({
22474
+ function X_({
22471
22475
  sub: t,
22472
22476
  onRetry: n,
22473
22477
  retrying: a
@@ -22481,7 +22485,7 @@ function X5({
22481
22485
  onClick: () => l(!s),
22482
22486
  className: "flex w-full items-center gap-3 px-3 py-2 text-left",
22483
22487
  children: [
22484
- /* @__PURE__ */ e(Y5, { status: t.status }),
22488
+ /* @__PURE__ */ e(Y_, { status: t.status }),
22485
22489
  t.external_api_name && /* @__PURE__ */ e("span", { className: "shrink-0 text-[11.5px] font-semibold text-slate-700 dark:text-slate-200", children: t.external_api_name }),
22486
22490
  /* @__PURE__ */ e("span", { className: "min-w-0 flex-1 truncate font-mono text-[11.5px] text-slate-500 dark:text-slate-400", children: t.endpoint_path ?? "—" }),
22487
22491
  t.external_ref && /* @__PURE__ */ e("span", { className: "shrink-0 rounded bg-slate-100 px-1.5 py-0.5 font-mono text-[10.5px] text-slate-600 dark:bg-muted dark:text-slate-300", children: t.external_ref }),
@@ -22534,7 +22538,7 @@ function X5({
22534
22538
  ] })
22535
22539
  ] });
22536
22540
  }
22537
- function Z5({
22541
+ function Z_({
22538
22542
  collection: t,
22539
22543
  itemId: n
22540
22544
  }) {
@@ -22585,7 +22589,7 @@ function Z5({
22585
22589
  u.length !== 1 ? "s" : ""
22586
22590
  ] })
22587
22591
  ] }) }),
22588
- /* @__PURE__ */ e(Fi, { className: "max-h-[65vh] space-y-2 overflow-y-auto", children: u.map((h) => /* @__PURE__ */ e(X5, { sub: h, onRetry: (f) => d.mutate(f), retrying: d.isPending }, h.id)) })
22592
+ /* @__PURE__ */ e(Fi, { className: "max-h-[65vh] space-y-2 overflow-y-auto", children: u.map((h) => /* @__PURE__ */ e(X_, { sub: h, onRetry: (f) => d.mutate(f), retrying: d.isPending }, h.id)) })
22589
22593
  ] }) })
22590
22594
  ] });
22591
22595
  }
@@ -22971,7 +22975,7 @@ function i2({
22971
22975
  }) {
22972
22976
  if (!t) return null;
22973
22977
  const o = t.locked_by_name || "Another user";
22974
- return /* @__PURE__ */ r("div", { className: "mb-4 flex items-center gap-3 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900", children: [
22978
+ return /* @__PURE__ */ r("div", { className: "mb-4 flex items-center gap-3 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 text-sm text-amber-900 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-100", children: [
22975
22979
  /* @__PURE__ */ e(ad, { className: "h-4 w-4 shrink-0 text-amber-500" }),
22976
22980
  /* @__PURE__ */ r("span", { className: "flex-1", children: [
22977
22981
  /* @__PURE__ */ e("span", { className: "font-medium", children: o }),
@@ -22982,7 +22986,7 @@ function i2({
22982
22986
  {
22983
22987
  size: "sm",
22984
22988
  variant: "outline",
22985
- className: "h-7 shrink-0 border-amber-300 bg-white text-[12px] text-amber-800 hover:bg-amber-100",
22989
+ className: "h-7 shrink-0 border-amber-300 bg-white text-[12px] text-amber-800 hover:bg-amber-100 dark:border-amber-500/40 dark:bg-transparent dark:text-amber-200 dark:hover:bg-amber-500/15",
22986
22990
  onClick: l,
22987
22991
  disabled: i,
22988
22992
  children: i ? "Asking…" : "Request lock"
@@ -22995,7 +22999,7 @@ function i2({
22995
22999
  {
22996
23000
  size: "sm",
22997
23001
  variant: "outline",
22998
- className: s ? "h-7 shrink-0 border-amber-300 bg-white text-[12px] text-amber-800 hover:bg-amber-100" : "h-7 shrink-0 border-amber-200 bg-white/60 text-[12px] text-amber-700/80 hover:bg-amber-100",
23002
+ className: s ? "h-7 shrink-0 border-amber-300 bg-white text-[12px] text-amber-800 hover:bg-amber-100 dark:border-amber-500/40 dark:bg-transparent dark:text-amber-200 dark:hover:bg-amber-500/15" : "h-7 shrink-0 border-amber-200 bg-white/60 text-[12px] text-amber-700/80 hover:bg-amber-100 dark:border-amber-500/30 dark:bg-transparent dark:text-amber-200/80 dark:hover:bg-amber-500/15",
22999
23003
  onClick: n,
23000
23004
  disabled: a,
23001
23005
  children: a ? "Taking over…" : "Take over"
@@ -26281,7 +26285,7 @@ function Ny({
26281
26285
  onOpenChange: o
26282
26286
  }) {
26283
26287
  return /* @__PURE__ */ r(Bl, { open: i, onOpenChange: o, children: [
26284
- !(i !== void 0) && /* @__PURE__ */ e(i_, { asChild: !0, children: /* @__PURE__ */ r(Ie, { variant: "outline", size: "sm", className: s ?? "gap-1.5", children: [
26288
+ !(i !== void 0) && /* @__PURE__ */ e(i5, { asChild: !0, children: /* @__PURE__ */ r(Ie, { variant: "outline", size: "sm", className: s ?? "gap-1.5", children: [
26285
26289
  /* @__PURE__ */ e(Ul, { className: "h-3.5 w-3.5" }),
26286
26290
  "History"
26287
26291
  ] }) }),
@@ -26581,7 +26585,7 @@ function yp({
26581
26585
  ] }, `${_.direction}-${_.id}`)) }),
26582
26586
  c ? /* @__PURE__ */ r("div", { className: "mt-2 space-y-1.5 rounded-md border border-slate-200 p-2 dark:border-border", children: [
26583
26587
  /* @__PURE__ */ e(
26584
- va,
26588
+ ka,
26585
26589
  {
26586
26590
  value: x,
26587
26591
  onChange: b,
@@ -26879,7 +26883,7 @@ function Jc({
26879
26883
  /* @__PURE__ */ r("div", { children: [
26880
26884
  /* @__PURE__ */ e(_n, { className: "mb-1 block text-[11px]", children: "Priority" }),
26881
26885
  /* @__PURE__ */ e(
26882
- va,
26886
+ ka,
26883
26887
  {
26884
26888
  value: A,
26885
26889
  onChange: (L) => N(L),
@@ -27015,7 +27019,7 @@ function Jc({
27015
27019
  /* @__PURE__ */ r("div", { children: [
27016
27020
  /* @__PURE__ */ e(_n, { className: "mb-1 block text-[11px]", children: "Priority" }),
27017
27021
  /* @__PURE__ */ e(
27018
- va,
27022
+ ka,
27019
27023
  {
27020
27024
  value: A,
27021
27025
  onChange: (L) => N(L),
@@ -28085,7 +28089,7 @@ function y3({
28085
28089
  )
28086
28090
  ] }),
28087
28091
  /* @__PURE__ */ e(
28088
- va,
28092
+ ka,
28089
28093
  {
28090
28094
  value: i,
28091
28095
  onChange: o,
@@ -28645,7 +28649,7 @@ function C3({ collection: t, itemId: n }) {
28645
28649
  onClick: () => {
28646
28650
  o ? c.mutate() : d(!0);
28647
28651
  },
28648
- className: "shrink-0 rounded-md border border-red-300 px-2.5 py-1 text-[12px] font-medium text-red-700 hover:bg-red-100 disabled:opacity-50 dark:border-red-500/40 dark:text-red-300",
28652
+ className: "shrink-0 rounded-md border border-red-300 px-2.5 py-1 text-[12px] font-medium text-red-700 hover:bg-red-100 disabled:opacity-50 dark:border-red-500/40 dark:bg-transparent dark:text-red-300 dark:hover:bg-red-500/15",
28649
28653
  children: c.isPending ? "Acknowledging…" : o ? "Confirm acknowledge" : "Acknowledge"
28650
28654
  }
28651
28655
  )
@@ -29561,7 +29565,7 @@ function Sp({ children: t }) {
29561
29565
  return /* @__PURE__ */ e("div", { ref: n, className: "grid grid-cols-12 gap-4 items-start", children: t(a) });
29562
29566
  }
29563
29567
  function U3({ status: t }) {
29564
- return t === "running" ? /* @__PURE__ */ e(Ft, { className: "h-4 w-4 animate-spin text-[#00ceff] shrink-0" }) : t === "done" ? /* @__PURE__ */ e(jn, { className: "h-4 w-4 text-green-500 shrink-0" }) : t === "error" ? /* @__PURE__ */ e(ri, { className: "h-4 w-4 text-red-500 shrink-0" }) : /* @__PURE__ */ e("div", { className: "h-4 w-4 rounded-full border-2 border-slate-200 shrink-0" });
29568
+ return t === "running" ? /* @__PURE__ */ e(Ft, { className: "h-4 w-4 animate-spin text-[#00ceff] shrink-0" }) : t === "done" ? /* @__PURE__ */ e(jn, { className: "h-4 w-4 text-green-500 shrink-0" }) : t === "error" ? /* @__PURE__ */ e(ri, { className: "h-4 w-4 text-red-500 shrink-0" }) : /* @__PURE__ */ e("div", { className: "h-4 w-4 rounded-full border-2 border-slate-200 dark:border-slate-600 shrink-0" });
29565
29569
  }
29566
29570
  function B3({
29567
29571
  open: t,
@@ -29592,7 +29596,7 @@ function B3({
29592
29596
  l ? "Saved with errors" : s ? "All changes saved" : "Saving changes…"
29593
29597
  ] }),
29594
29598
  /* @__PURE__ */ r("div", { className: "flex items-center gap-3 pt-1", children: [
29595
- /* @__PURE__ */ e("div", { className: "flex-1 h-1.5 rounded-full bg-slate-100 overflow-hidden", children: /* @__PURE__ */ e(
29599
+ /* @__PURE__ */ e("div", { className: "flex-1 h-1.5 rounded-full bg-slate-100 dark:bg-muted overflow-hidden", children: /* @__PURE__ */ e(
29596
29600
  "div",
29597
29601
  {
29598
29602
  className: "h-full rounded-full bg-[#00ceff] transition-all duration-500",
@@ -29614,9 +29618,9 @@ function B3({
29614
29618
  className: H(
29615
29619
  "rounded-lg border px-3 py-2.5 transition-colors duration-200",
29616
29620
  c.status === "running" && "border-[#00ceff]/30 bg-[#00ceff]/5",
29617
- c.status === "done" && "border-green-100 bg-green-50/40",
29618
- c.status === "error" && "border-red-200 bg-red-50",
29619
- c.status === "pending" && "border-slate-100 bg-slate-50/60"
29621
+ c.status === "done" && "border-green-100 bg-green-50/40 dark:border-green-500/25 dark:bg-green-500/10",
29622
+ c.status === "error" && "border-red-200 bg-red-50 dark:border-red-500/40 dark:bg-red-500/10",
29623
+ c.status === "pending" && "border-slate-100 bg-slate-50/60 dark:border-border dark:bg-muted/30"
29620
29624
  ),
29621
29625
  children: /* @__PURE__ */ r("div", { className: "flex items-start gap-2.5", children: [
29622
29626
  /* @__PURE__ */ e("div", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ e(U3, { status: c.status }) }),
@@ -29627,10 +29631,10 @@ function B3({
29627
29631
  {
29628
29632
  className: H(
29629
29633
  "text-[13px] font-medium leading-snug",
29630
- c.status === "done" && "text-slate-400",
29631
- c.status === "error" && "text-red-700",
29632
- c.status === "running" && "text-slate-900",
29633
- c.status === "pending" && "text-slate-500"
29634
+ c.status === "done" && "text-slate-400 dark:text-slate-300",
29635
+ c.status === "error" && "text-red-700 dark:text-red-300",
29636
+ c.status === "running" && "text-slate-900 dark:text-foreground",
29637
+ c.status === "pending" && "text-slate-500 dark:text-muted-foreground"
29634
29638
  ),
29635
29639
  children: c.label
29636
29640
  }
@@ -30778,7 +30782,7 @@ function nS({
30778
30782
  ]
30779
30783
  ), Fr = Pe(Is);
30780
30784
  Fr.current = Is;
30781
- const wa = Cn(
30785
+ const _a = Cn(
30782
30786
  (M, U, Y = 0) => {
30783
30787
  if (!(U == null || U === "") && !(Y > 2))
30784
30788
  for (const ae of J ?? []) {
@@ -30879,7 +30883,7 @@ function nS({
30879
30883
  }
30880
30884
  mt.current = { ...mt.current, ...yt }, At((Ln) => ({ ...Ln, ...yt })), gn(!0);
30881
30885
  for (const [Ln, Pn] of Object.entries(yt))
30882
- Ln !== M && Pn != null && Pn !== "" && (wa(Ln, Pn, Y + 1), (yr = Fr.current) == null || yr.call(Fr, Ln, Pn, Y + 1));
30886
+ Ln !== M && Pn != null && Pn !== "" && (_a(Ln, Pn, Y + 1), (yr = Fr.current) == null || yr.call(Fr, Ln, Pn, Y + 1));
30883
30887
  }).catch(() => {
30884
30888
  });
30885
30889
  }
@@ -30893,7 +30897,7 @@ function nS({
30893
30897
  rs
30894
30898
  ]
30895
30899
  );
30896
- fa.current = wa;
30900
+ fa.current = _a;
30897
30901
  const oa = Cn(
30898
30902
  (M) => {
30899
30903
  var ue;
@@ -30910,10 +30914,10 @@ function nS({
30910
30914
  if (Object.keys(U).length > 0) {
30911
30915
  const $e = J3(mt.current, U);
30912
30916
  mt.current = $e, At($e);
30913
- for (const [Oe, Re] of Object.entries(U)) wa(Oe, Re);
30917
+ for (const [Oe, Re] of Object.entries(U)) _a(Oe, Re);
30914
30918
  }
30915
30919
  },
30916
- [tr, Hn, Zn, wa]
30920
+ [tr, Hn, Zn, _a]
30917
30921
  ), gs = Pe({});
30918
30922
  Le(() => {
30919
30923
  const M = gs.current;
@@ -30991,9 +30995,9 @@ function nS({
30991
30995
  ae || Tn.current.add(M), St((ue) => {
30992
30996
  const $e = { ...ue }, Oe = (J ?? []).find((Re) => Re.field === M);
30993
30997
  return Oe != null && Oe.required && ae && Tn.current.has(M) ? $e[M] = "This field is required" : delete $e[M], $e;
30994
- }), Yr(M), ae || wa(M, U), ae || Fr.current(M, U);
30998
+ }), Yr(M), ae || _a(M, U), ae || Fr.current(M, U);
30995
30999
  },
30996
- [J, Yr, wa]
31000
+ [J, Yr, _a]
30997
31001
  ), [_r, sl] = S({}), Sr = ye(
30998
31002
  () => ce.filter(
30999
31003
  (M) => !M.junction_field && M.one_collection === t && M.one_field && M.many_field && M.many_collection
@@ -31629,7 +31633,7 @@ ${ae.join(`
31629
31633
  const ae = Y.get(M.id) ?? /* @__PURE__ */ new Set();
31630
31634
  return ae.has(U) ? Y : new Map(Y).set(M.id, /* @__PURE__ */ new Set([...ae, U]));
31631
31635
  });
31632
- }, [_a, Tc] = S(() => {
31636
+ }, [ya, Tc] = S(() => {
31633
31637
  var M;
31634
31638
  try {
31635
31639
  return localStorage.getItem(`nvr_tab_${t}`) ?? ((M = fe[0]) == null ? void 0 : M.key) ?? "__general__";
@@ -31707,8 +31711,8 @@ ${ae.join(`
31707
31711
  } catch {
31708
31712
  }
31709
31713
  }, [Ge, Nr]), Le(() => {
31710
- !Ge || Nr.length === 0 || Nr.some((M) => M.key === _a) || Al(Nr[0].key);
31711
- }, [Ge, Nr, _a]);
31714
+ !Ge || Nr.length === 0 || Nr.some((M) => M.key === ya) || Al(Nr[0].key);
31715
+ }, [Ge, Nr, ya]);
31712
31716
  const Oh = Pe(!1);
31713
31717
  Le(() => {
31714
31718
  var Y;
@@ -31730,9 +31734,9 @@ ${ae.join(`
31730
31734
  return Oe != null && Oe !== "" && Oe !== !1;
31731
31735
  });
31732
31736
  };
31733
- if (Oh.current = !0, it && Nr.length > 0 && U(fe.find((ae) => ae.key === _a))) {
31737
+ if (Oh.current = !0, it && Nr.length > 0 && U(fe.find((ae) => ae.key === ya))) {
31734
31738
  const ae = Nr.find((ue) => !U(fe.find(($e) => $e.key === ue.key)));
31735
- ae && ae.key !== _a && Al(ae.key);
31739
+ ae && ae.key !== ya && Al(ae.key);
31736
31740
  }
31737
31741
  for (const ae of ar.filter((ue) => ue.type === "container" && ue.tab_mode === "steps")) {
31738
31742
  const ue = ar.filter((Ve) => Ve.type === "tab" && Ve.container_id === ae.id).sort((Ve, bt) => Ve.sort - bt.sort);
@@ -31742,7 +31746,7 @@ ${ae.join(`
31742
31746
  const Re = ue.find((Ve) => !U(Ve));
31743
31747
  Re && Re.key !== $e && Vl((Ve) => new Map(Ve).set(ae.id, Re.key));
31744
31748
  }
31745
- }, [z, it, He, Nr, fe, _a, ar, $r]);
31749
+ }, [z, it, He, Nr, fe, ya, ar, $r]);
31746
31750
  const wv = ye(() => {
31747
31751
  const M = /* @__PURE__ */ new Set();
31748
31752
  if (!Wt) return M;
@@ -31783,7 +31787,7 @@ ${ae.join(`
31783
31787
  ]);
31784
31788
  function Sv() {
31785
31789
  if (qt) {
31786
- const U = _a === "__general__" ? it ? Q : [...Q, ...De.flatMap((ae) => Dr[ae.key] ?? [])] : Dr[_a] ?? [], Y = {};
31790
+ const U = ya === "__general__" ? it ? Q : [...Q, ...De.flatMap((ae) => Dr[ae.key] ?? [])] : Dr[ya] ?? [], Y = {};
31787
31791
  for (const ae of U)
31788
31792
  if (ae.required && !ae.hidden) {
31789
31793
  const ue = at[ae.field];
@@ -31794,7 +31798,7 @@ ${ae.join(`
31794
31798
  return;
31795
31799
  }
31796
31800
  }
31797
- const M = Nr.findIndex((U) => U.key === _a);
31801
+ const M = Nr.findIndex((U) => U.key === ya);
31798
31802
  M < Nr.length - 1 && Al(Nr[M + 1].key);
31799
31803
  }
31800
31804
  const Rr = Ir.find((M) => M.field === "__pipeline__"), Rh = ye(() => {
@@ -31845,7 +31849,7 @@ ${ae.join(`
31845
31849
  }
31846
31850
  }
31847
31851
  }, Co = ($a == null ? void 0 : $a.group_key) ?? null, hd = !!(Co && ar.some((M) => M.key === Co)), qv = () => /* @__PURE__ */ e(
31848
- J5,
31852
+ J_,
31849
31853
  {
31850
31854
  collection: t,
31851
31855
  item: O,
@@ -32783,40 +32787,47 @@ ${ae.join(`
32783
32787
  }
32784
32788
  function Hh() {
32785
32789
  const M = Q.filter((U) => !U.hidden);
32786
- return M.length === 0 ? null : /* @__PURE__ */ e("div", { className: "rounded-xl border border-slate-200 bg-white px-5 py-5", children: /* @__PURE__ */ e(Sp, { children: (U) => M.map((Y) => {
32787
- var bt;
32788
- const ae = Ll == null ? void 0 : Ll[Y.field], ue = ae == null ? void 0 : ae.entries, $e = (ae == null ? void 0 : ae.separator) ?? null, Oe = at[Y.field], Re = Oe != null && Oe !== "", Ve = ue != null && ue.length && Re ? ((bt = ce.find(
32789
- (Nt) => Nt.many_collection === t && Nt.many_field === Y.field && !Nt.junction_field
32790
- )) == null ? void 0 : bt.one_collection) ?? null : null;
32791
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${Hd(Y.options, U)}` }, children: [
32792
- /* @__PURE__ */ e(
32793
- Io,
32794
- {
32795
- field: Y,
32796
- draft: il,
32797
- onChange: pr,
32798
- relations: ce,
32799
- collection: t,
32800
- itemId: O,
32801
- error: _e[Y.field],
32802
- visible: !0,
32803
- locked: Fs || be !== "original",
32804
- layoutAiEnabled: Vt,
32805
- renderField: _,
32806
- onCountChange: Bs
32807
- }
32808
- ),
32809
- (ue == null ? void 0 : ue.length) && Re && Ve && /* @__PURE__ */ e(
32810
- xu,
32811
- {
32812
- relCollection: Ve,
32813
- relId: Oe,
32814
- entries: ue,
32815
- separator: $e
32816
- }
32817
- )
32818
- ] }, Y.field);
32819
- }) }) }, "__ungrouped__");
32790
+ return M.length === 0 ? null : /* @__PURE__ */ e(
32791
+ "div",
32792
+ {
32793
+ className: "nvr-section-enter rounded-xl border border-slate-200 bg-white px-5 py-5",
32794
+ children: /* @__PURE__ */ e(Sp, { children: (U) => M.map((Y) => {
32795
+ var bt;
32796
+ const ae = Ll == null ? void 0 : Ll[Y.field], ue = ae == null ? void 0 : ae.entries, $e = (ae == null ? void 0 : ae.separator) ?? null, Oe = at[Y.field], Re = Oe != null && Oe !== "", Ve = ue != null && ue.length && Re ? ((bt = ce.find(
32797
+ (Nt) => Nt.many_collection === t && Nt.many_field === Y.field && !Nt.junction_field
32798
+ )) == null ? void 0 : bt.one_collection) ?? null : null;
32799
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${Hd(Y.options, U)}` }, children: [
32800
+ /* @__PURE__ */ e(
32801
+ Io,
32802
+ {
32803
+ field: Y,
32804
+ draft: il,
32805
+ onChange: pr,
32806
+ relations: ce,
32807
+ collection: t,
32808
+ itemId: O,
32809
+ error: _e[Y.field],
32810
+ visible: !0,
32811
+ locked: Fs || be !== "original",
32812
+ layoutAiEnabled: Vt,
32813
+ renderField: _,
32814
+ onCountChange: Bs
32815
+ }
32816
+ ),
32817
+ (ue == null ? void 0 : ue.length) && Re && Ve && /* @__PURE__ */ e(
32818
+ xu,
32819
+ {
32820
+ relCollection: Ve,
32821
+ relId: Oe,
32822
+ entries: ue,
32823
+ separator: $e
32824
+ }
32825
+ )
32826
+ ] }, Y.field);
32827
+ }) })
32828
+ },
32829
+ "__ungrouped__"
32830
+ );
32820
32831
  }
32821
32832
  function Lv(M) {
32822
32833
  var yt;
@@ -32849,7 +32860,7 @@ ${ae.join(`
32849
32860
  return yr != null && yr !== "";
32850
32861
  })) && Nt.add(ft.key);
32851
32862
  }
32852
- return /* @__PURE__ */ r("div", { className: "rounded-xl border border-slate-200 bg-white", children: [
32863
+ return /* @__PURE__ */ r("div", { className: "nvr-section-enter rounded-xl border border-slate-200 bg-white", children: [
32853
32864
  Y ? /* @__PURE__ */ e(
32854
32865
  kx,
32855
32866
  {
@@ -33124,7 +33135,7 @@ ${ae.join(`
33124
33135
  if (Oe.length === 0 && !Re && !Ve && bt.length === 0) return null;
33125
33136
  const Nt = I && U.type !== "tab";
33126
33137
  return /* @__PURE__ */ e(
33127
- j5,
33138
+ j_,
33128
33139
  {
33129
33140
  group: U,
33130
33141
  fields: Oe,
@@ -33172,7 +33183,7 @@ ${ae.join(`
33172
33183
  }
33173
33184
  function Ov() {
33174
33185
  var M;
33175
- return /* @__PURE__ */ r("div", { className: "space-y-4", children: [
33186
+ return /* @__PURE__ */ r("div", { className: "nvr-stagger space-y-4", children: [
33176
33187
  Rc.map((U, Y) => {
33177
33188
  const ae = typeof U == "string" ? U : U.key;
33178
33189
  return /* @__PURE__ */ e("div", { children: Km(U) }, ae ?? Y);
@@ -33242,99 +33253,106 @@ ${ae.join(`
33242
33253
  }), ue && Br && Oe.push({ _k: "__pdf__", sort: Br.sort, _t: "pdf", slot: Br });
33243
33254
  for (const Re of $e)
33244
33255
  Oe.push({ _k: Re.field, sort: Re.sort, _t: "widget", slot: Re });
33245
- return Oe.sort((Re, Ve) => Re.sort - Ve.sort), /* @__PURE__ */ e("div", { className: "rounded-xl border border-slate-200 bg-white px-5 py-5", children: /* @__PURE__ */ e(Sp, { children: (Re) => Oe.map((Ve) => {
33246
- var An, In;
33247
- if (Ve._t === "owners") {
33248
- const Dn = Ve.slot.col_span ?? 12;
33249
- return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ e(
33250
- v0,
33251
- {
33252
- collection: t,
33253
- itemId: O,
33254
- label: Ve.slot.label_override || "Owners"
33255
- }
33256
- ) }, "__owners__");
33257
- }
33258
- if (Ve._t === "pdf") {
33259
- if (!Z) return null;
33260
- const Dn = Ve.slot.col_span ?? 12, yr = ((An = Ve.slot.label_override) == null ? void 0 : An.trim()) || "Generate PDF", Ln = !ul;
33261
- return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ r(
33262
- "button",
33263
- {
33264
- type: "button",
33265
- onClick: () => void Di(),
33266
- disabled: ie || Ln,
33267
- title: Ln ? "Configure PDF field in Data Model → Layouts" : void 0,
33268
- className: "inline-flex items-center gap-1.5 rounded-md border border-nvr-cyan/40 bg-nvr-cyan/10 px-3 py-1.5 text-[12px] font-medium text-nvr-navy hover:bg-nvr-cyan/20 disabled:cursor-not-allowed disabled:opacity-40 dark:text-nvr-cyan",
33269
- children: [
33270
- /* @__PURE__ */ r(
33271
- "svg",
33272
- {
33273
- xmlns: "http://www.w3.org/2000/svg",
33274
- className: "h-3.5 w-3.5",
33275
- viewBox: "0 0 24 24",
33276
- fill: "none",
33277
- stroke: "currentColor",
33278
- strokeWidth: "2",
33279
- strokeLinecap: "round",
33280
- strokeLinejoin: "round",
33281
- children: [
33282
- /* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
33283
- /* @__PURE__ */ e("polyline", { points: "14 2 14 8 20 8" })
33284
- ]
33285
- }
33286
- ),
33287
- ie ? "Generating…" : yr
33288
- ]
33289
- }
33290
- ) }, "__pdf__");
33291
- }
33292
- if (Ve._t === "widget") {
33293
- if (!Ve.slot.widget_id) return null;
33294
- const Dn = Ve.slot.col_span ?? 12;
33295
- return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ e(
33296
- ro,
33297
- {
33298
- widgetId: Ve.slot.widget_id,
33299
- inputBindings: Ve.slot.input_bindings ?? [],
33300
- itemDraft: at,
33301
- label: Ve.slot.label_override ?? void 0,
33302
- defaultExpanded: Ve.slot.default_expanded ?? !0
33256
+ return Oe.sort((Re, Ve) => Re.sort - Ve.sort), /* @__PURE__ */ e(
33257
+ "div",
33258
+ {
33259
+ className: "nvr-tab-enter rounded-xl border border-slate-200 bg-white px-5 py-5",
33260
+ children: /* @__PURE__ */ e(Sp, { children: (Re) => Oe.map((Ve) => {
33261
+ var An, In;
33262
+ if (Ve._t === "owners") {
33263
+ const Dn = Ve.slot.col_span ?? 12;
33264
+ return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ e(
33265
+ v0,
33266
+ {
33267
+ collection: t,
33268
+ itemId: O,
33269
+ label: Ve.slot.label_override || "Owners"
33270
+ }
33271
+ ) }, "__owners__");
33303
33272
  }
33304
- ) }, Ve.slot.field);
33305
- }
33306
- const bt = Ve.f, Nt = Ll == null ? void 0 : Ll[bt.field], Pt = Nt == null ? void 0 : Nt.entries, yt = (Nt == null ? void 0 : Nt.separator) ?? null, ft = at[bt.field], $t = ft != null && ft !== "", Gt = Pt != null && Pt.length && $t ? ((In = ce.find(
33307
- (Dn) => Dn.many_collection === t && Dn.many_field === bt.field && !Dn.junction_field
33308
- )) == null ? void 0 : In.one_collection) ?? null : null;
33309
- return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${Hd(bt.options, Re)}` }, children: [
33310
- /* @__PURE__ */ e(
33311
- Io,
33312
- {
33313
- field: bt,
33314
- draft: il,
33315
- onChange: pr,
33316
- relations: ce,
33317
- collection: t,
33318
- itemId: O,
33319
- error: _e[bt.field],
33320
- visible: !0,
33321
- locked: Fs || be !== "original",
33322
- layoutAiEnabled: Vt,
33323
- renderField: _,
33324
- onCountChange: Bs
33273
+ if (Ve._t === "pdf") {
33274
+ if (!Z) return null;
33275
+ const Dn = Ve.slot.col_span ?? 12, yr = ((An = Ve.slot.label_override) == null ? void 0 : An.trim()) || "Generate PDF", Ln = !ul;
33276
+ return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ r(
33277
+ "button",
33278
+ {
33279
+ type: "button",
33280
+ onClick: () => void Di(),
33281
+ disabled: ie || Ln,
33282
+ title: Ln ? "Configure PDF field in Data Model → Layouts" : void 0,
33283
+ className: "inline-flex items-center gap-1.5 rounded-md border border-nvr-cyan/40 bg-nvr-cyan/10 px-3 py-1.5 text-[12px] font-medium text-nvr-navy hover:bg-nvr-cyan/20 disabled:cursor-not-allowed disabled:opacity-40 dark:text-nvr-cyan",
33284
+ children: [
33285
+ /* @__PURE__ */ r(
33286
+ "svg",
33287
+ {
33288
+ xmlns: "http://www.w3.org/2000/svg",
33289
+ className: "h-3.5 w-3.5",
33290
+ viewBox: "0 0 24 24",
33291
+ fill: "none",
33292
+ stroke: "currentColor",
33293
+ strokeWidth: "2",
33294
+ strokeLinecap: "round",
33295
+ strokeLinejoin: "round",
33296
+ children: [
33297
+ /* @__PURE__ */ e("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }),
33298
+ /* @__PURE__ */ e("polyline", { points: "14 2 14 8 20 8" })
33299
+ ]
33300
+ }
33301
+ ),
33302
+ ie ? "Generating…" : yr
33303
+ ]
33304
+ }
33305
+ ) }, "__pdf__");
33325
33306
  }
33326
- ),
33327
- (Pt == null ? void 0 : Pt.length) && $t && Gt && /* @__PURE__ */ e(
33328
- xu,
33329
- {
33330
- relCollection: Gt,
33331
- relId: ft,
33332
- entries: Pt,
33333
- separator: yt
33307
+ if (Ve._t === "widget") {
33308
+ if (!Ve.slot.widget_id) return null;
33309
+ const Dn = Ve.slot.col_span ?? 12;
33310
+ return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${Dn}` }, children: /* @__PURE__ */ e(
33311
+ ro,
33312
+ {
33313
+ widgetId: Ve.slot.widget_id,
33314
+ inputBindings: Ve.slot.input_bindings ?? [],
33315
+ itemDraft: at,
33316
+ label: Ve.slot.label_override ?? void 0,
33317
+ defaultExpanded: Ve.slot.default_expanded ?? !0
33318
+ }
33319
+ ) }, Ve.slot.field);
33334
33320
  }
33335
- )
33336
- ] }, bt.field);
33337
- }) }) });
33321
+ const bt = Ve.f, Nt = Ll == null ? void 0 : Ll[bt.field], Pt = Nt == null ? void 0 : Nt.entries, yt = (Nt == null ? void 0 : Nt.separator) ?? null, ft = at[bt.field], $t = ft != null && ft !== "", Gt = Pt != null && Pt.length && $t ? ((In = ce.find(
33322
+ (Dn) => Dn.many_collection === t && Dn.many_field === bt.field && !Dn.junction_field
33323
+ )) == null ? void 0 : In.one_collection) ?? null : null;
33324
+ return /* @__PURE__ */ r("div", { style: { gridColumn: `span ${Hd(bt.options, Re)}` }, children: [
33325
+ /* @__PURE__ */ e(
33326
+ Io,
33327
+ {
33328
+ field: bt,
33329
+ draft: il,
33330
+ onChange: pr,
33331
+ relations: ce,
33332
+ collection: t,
33333
+ itemId: O,
33334
+ error: _e[bt.field],
33335
+ visible: !0,
33336
+ locked: Fs || be !== "original",
33337
+ layoutAiEnabled: Vt,
33338
+ renderField: _,
33339
+ onCountChange: Bs
33340
+ }
33341
+ ),
33342
+ (Pt == null ? void 0 : Pt.length) && $t && Gt && /* @__PURE__ */ e(
33343
+ xu,
33344
+ {
33345
+ relCollection: Gt,
33346
+ relId: ft,
33347
+ entries: Pt,
33348
+ separator: yt
33349
+ }
33350
+ )
33351
+ ] }, bt.field);
33352
+ }) })
33353
+ },
33354
+ ya
33355
+ );
33338
33356
  }
33339
33357
  function Rv() {
33340
33358
  var U;
@@ -33356,7 +33374,7 @@ ${ae.join(`
33356
33374
  onClick: () => Al(Y.key),
33357
33375
  className: H(
33358
33376
  "whitespace-nowrap px-4 py-2.5 text-sm font-medium border-b-2 transition-colors flex items-center gap-1.5",
33359
- _a === Y.key ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground"
33377
+ ya === Y.key ? "border-primary text-primary" : "border-transparent text-muted-foreground hover:text-foreground"
33360
33378
  ),
33361
33379
  children: [
33362
33380
  Y.label,
@@ -33366,7 +33384,7 @@ ${ae.join(`
33366
33384
  Y.key
33367
33385
  );
33368
33386
  }) }),
33369
- Gh(_a),
33387
+ Gh(ya),
33370
33388
  Rc.filter((Y) => typeof Y == "string" && Y !== "__ungrouped__").map((Y) => Jh(Y)),
33371
33389
  !Rr && g && /* @__PURE__ */ e(
33372
33390
  Qc,
@@ -33420,13 +33438,13 @@ ${ae.join(`
33420
33438
  }
33421
33439
  function Mv() {
33422
33440
  var Re;
33423
- const M = Nr.findIndex((Ve) => Ve.key === _a), U = M === Nr.length - 1, ae = /* @__PURE__ */ e("div", { className: "mt-6 border-t border-slate-200 pt-4", children: /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-2", children: [
33441
+ const M = Nr.findIndex((Ve) => Ve.key === ya), U = M === Nr.length - 1, ae = /* @__PURE__ */ e("div", { className: "mt-6 border-t border-slate-200 pt-4", children: /* @__PURE__ */ r("div", { className: "flex items-center justify-between gap-2", children: [
33424
33442
  /* @__PURE__ */ r(
33425
33443
  "button",
33426
33444
  {
33427
33445
  type: "button",
33428
33446
  onClick: () => {
33429
- const Ve = Nr.findIndex((bt) => bt.key === _a);
33447
+ const Ve = Nr.findIndex((bt) => bt.key === ya);
33430
33448
  Ve > 0 && Al(Nr[Ve - 1].key);
33431
33449
  },
33432
33450
  disabled: M === 0,
@@ -33488,7 +33506,7 @@ ${ae.join(`
33488
33506
  )
33489
33507
  ] })
33490
33508
  ] }) }), ue = fe.length > 0 ? Math.min(...fe.map((Ve) => Ve.sort)) : 1 / 0, $e = Rc.filter((Ve) => typeof Ve != "string" ? Ve.sort < ue : Ve === "__pipeline__" ? !!(Rr && Rr.sort < ue) : Ve === "__comments__" ? !!(Sa && Sa.sort < ue) : Ve === "__tasks__" ? !!(Ca && Ca.sort < ue) : Ve === "__addendums__" ? !!(js && js.sort < ue) : !1), Oe = Rc.filter((Ve) => Ve === "__ungrouped__" ? !1 : typeof Ve != "string" ? Ve.sort >= ue : Ve === "__pipeline__" ? !(Rr && Rr.sort < ue) : Ve === "__comments__" ? !(Sa && Sa.sort < ue) : Ve === "__tasks__" ? !(Ca && Ca.sort < ue) : Ve === "__addendums__" ? !(js && js.sort < ue) : !1);
33491
- return /* @__PURE__ */ r("div", { className: "space-y-4 min-w-0 flex-1", children: [
33509
+ return /* @__PURE__ */ r("div", { className: "nvr-stagger space-y-4 min-w-0 flex-1", children: [
33492
33510
  $e.map((Ve, bt) => {
33493
33511
  const Nt = typeof Ve == "string" ? Ve : Ve.key;
33494
33512
  return /* @__PURE__ */ e("div", { children: Km(Ve) }, Nt ?? bt);
@@ -33497,7 +33515,7 @@ ${ae.join(`
33497
33515
  kx,
33498
33516
  {
33499
33517
  steps: Nr,
33500
- active: _a,
33518
+ active: ya,
33501
33519
  completed: _v,
33502
33520
  dirtySteps: wv,
33503
33521
  errorSteps: new Set(
@@ -33506,7 +33524,7 @@ ${ae.join(`
33506
33524
  onStepClick: Al
33507
33525
  }
33508
33526
  ),
33509
- Gh(_a, !0),
33527
+ Gh(ya, !0),
33510
33528
  Oe.map((Ve, bt) => {
33511
33529
  const Nt = typeof Ve == "string" ? Ve : Ve.key;
33512
33530
  return /* @__PURE__ */ e("div", { children: Km(Ve) }, Nt ?? bt);
@@ -33588,7 +33606,7 @@ ${ae.join(`
33588
33606
  };
33589
33607
  }, [He, ge, t, z, p]), ht)
33590
33608
  return /* @__PURE__ */ e("div", { className: H("flex flex-1 min-h-0 flex-col overflow-y-auto", A), children: /* @__PURE__ */ e(
33591
- H5,
33609
+ H_,
33592
33610
  {
33593
33611
  collection: t,
33594
33612
  itemId: String(O),
@@ -34343,7 +34361,7 @@ ${ae.join(`
34343
34361
  title: "Unsaved changes — click to see what changed",
34344
34362
  className: "absolute -right-1 -top-1 z-10 h-3 w-3 rounded-full",
34345
34363
  "data-unsaved-dot": !0,
34346
- children: /* @__PURE__ */ e("span", { className: "absolute inset-0.5 rounded-full bg-amber-400 ring-2 ring-white dark:ring-card" })
34364
+ children: /* @__PURE__ */ e("span", { className: "nvr-pop absolute inset-0.5 rounded-full bg-amber-400 ring-2 ring-white dark:ring-card" })
34347
34365
  }
34348
34366
  ),
34349
34367
  /* @__PURE__ */ e(
@@ -34604,7 +34622,7 @@ ${ae.join(`
34604
34622
  ].filter(Boolean).join(" "),
34605
34623
  children: (() => {
34606
34624
  const yt = Y.cmsField ? /* @__PURE__ */ e(
34607
- F5,
34625
+ F_,
34608
34626
  {
34609
34627
  field: Y.cmsField,
34610
34628
  val: $e,
@@ -34671,7 +34689,7 @@ ${ae.join(`
34671
34689
  );
34672
34690
  }),
34673
34691
  !z && O && /* @__PURE__ */ e("div", { className: "ml-auto self-center py-2 pl-3", children: /* @__PURE__ */ e(
34674
- Z5,
34692
+ Z_,
34675
34693
  {
34676
34694
  collection: t,
34677
34695
  itemId: String(O)
@@ -37632,7 +37650,7 @@ function SS({
37632
37650
  },
37633
37651
  children: [
37634
37652
  /* @__PURE__ */ e(
37635
- va,
37653
+ ka,
37636
37654
  {
37637
37655
  value: k,
37638
37656
  onChange: T,
@@ -38042,8 +38060,8 @@ function pF({
38042
38060
  enabled: !!t && W,
38043
38061
  placeholderData: (I) => I,
38044
38062
  retry: !1
38045
- }), Mr = We ? We.rows : (Hn == null ? void 0 : Hn.data) ?? [], ia = We ? We.total : (Hn == null ? void 0 : Hn.total) ?? 0, bs = Hn == null ? void 0 : Hn.aggregates, rs = Math.max(1, Math.ceil(ia / Un)), Is = Cg(xs), Fr = bm(), wa = Pe(/* @__PURE__ */ new Set());
38046
- wa.current = new Set(Mr.map((I) => String(I.id)));
38063
+ }), Mr = We ? We.rows : (Hn == null ? void 0 : Hn.data) ?? [], ia = We ? We.total : (Hn == null ? void 0 : Hn.total) ?? 0, bs = Hn == null ? void 0 : Hn.aggregates, rs = Math.max(1, Math.ceil(ia / Un)), Is = Cg(xs), Fr = bm(), _a = Pe(/* @__PURE__ */ new Set());
38064
+ _a.current = new Set(Mr.map((I) => String(I.id)));
38047
38065
  const oa = Pe([]);
38048
38066
  oa.current = [
38049
38067
  "cbv-items",
@@ -38059,7 +38077,7 @@ function pF({
38059
38077
  if (!Fr || !t) return;
38060
38078
  const I = () => Yr((Te) => Te + 1), me = Fr.subscribeCollections([t], (Te) => {
38061
38079
  const Ce = String(Te.item);
38062
- Te.action !== "delete" && wa.current.has(Ce) ? p.request(ee(`/items/${t}/${Ce}`)).then((nt) => {
38080
+ Te.action !== "delete" && _a.current.has(Ce) ? p.request(ee(`/items/${t}/${Ce}`)).then((nt) => {
38063
38081
  const vt = nt == null ? void 0 : nt.data;
38064
38082
  vt && h.setQueryData(
38065
38083
  oa.current,
@@ -39985,14 +40003,14 @@ ${Te}`).then(() => {
39985
40003
  if (Vl.length === 0 || !Jl || Jl === "—")
39986
40004
  return /* @__PURE__ */ e("span", { className: "text-[12px] text-slate-300", children: "—" });
39987
40005
  if (Vl.length === 1)
39988
- return /* @__PURE__ */ e("span", { onClick: (_a) => _a.stopPropagation(), children: /* @__PURE__ */ e(vo, { userId: String(Vl[0]), size: "compact" }) });
40006
+ return /* @__PURE__ */ e("span", { onClick: (ya) => ya.stopPropagation(), children: /* @__PURE__ */ e(vo, { userId: String(Vl[0]), size: "compact" }) });
39989
40007
  const Lm = Jl.split(", ");
39990
40008
  return /* @__PURE__ */ e(
39991
40009
  y0,
39992
40010
  {
39993
- users: Vl.map((_a, Tc) => ({
39994
- id: String(_a),
39995
- name: Lm[Tc] ?? String(_a)
40011
+ users: Vl.map((ya, Tc) => ({
40012
+ id: String(ya),
40013
+ name: Lm[Tc] ?? String(ya)
39996
40014
  })),
39997
40015
  showSingleName: !1
39998
40016
  }
@@ -45275,7 +45293,7 @@ val1,val2,val3`,
45275
45293
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
45276
45294
  /* @__PURE__ */ e(_n, { className: "text-[11.5px]", children: "When a record already exists" }),
45277
45295
  /* @__PURE__ */ e(
45278
- va,
45296
+ ka,
45279
45297
  {
45280
45298
  value: C,
45281
45299
  onChange: A,
@@ -45843,7 +45861,7 @@ function p4({
45843
45861
  }
45844
45862
  ) }),
45845
45863
  /* @__PURE__ */ e("td", { className: "px-2 py-1", children: /* @__PURE__ */ e(
45846
- va,
45864
+ ka,
45847
45865
  {
45848
45866
  value: m.type,
45849
45867
  onChange: (f) => h({ type: f }),
@@ -46340,7 +46358,7 @@ function y4({
46340
46358
  String(m.id)
46341
46359
  )),
46342
46360
  /* @__PURE__ */ e(
46343
- va,
46361
+ ka,
46344
46362
  {
46345
46363
  value: "",
46346
46364
  onChange: (m) => {
@@ -46569,7 +46587,7 @@ function v4({
46569
46587
  label: "Loader",
46570
46588
  hint: "Bulk pushes a file to the share and BULK INSERTs it; insert batches rows directly. Ignored in service mode.",
46571
46589
  children: /* @__PURE__ */ e(
46572
- va,
46590
+ ka,
46573
46591
  {
46574
46592
  value: c.loader,
46575
46593
  onChange: (w) => m((k) => ({ ...k, loader: w })),
@@ -46589,7 +46607,7 @@ function v4({
46589
46607
  label: "Processor",
46590
46608
  hint: "Stored procedure MERGEs staging rows (no revisions). Items service diffs and writes only real changes — revisions, activity, rules and computed fields apply.",
46591
46609
  children: /* @__PURE__ */ e(
46592
- va,
46610
+ ka,
46593
46611
  {
46594
46612
  value: c.processor,
46595
46613
  onChange: (w) => m((k) => ({ ...k, processor: w })),
@@ -63343,7 +63361,7 @@ function FF({ queueId: t, realtime: n, renderError: a }) {
63343
63361
  children: "Claim"
63344
63362
  }
63345
63363
  )
63346
- }, Fr = (q == null ? void 0 : q.available_extra_fields) ?? [], wa = mm("drill.queue"), oa = wa.value, gs = (B) => wa.push([B]), Yr = (B) => {
63364
+ }, Fr = (q == null ? void 0 : q.available_extra_fields) ?? [], _a = mm("drill.queue"), oa = _a.value, gs = (B) => _a.push([B]), Yr = (B) => {
63347
63365
  var Fe;
63348
63366
  for (const pt of (q == null ? void 0 : q.sources) ?? []) {
63349
63367
  const Rt = (Fe = pt.drilldown) == null ? void 0 : Fe[B];
@@ -64497,9 +64515,9 @@ function FF({ queueId: t, realtime: n, renderError: a }) {
64497
64515
  width: oa[0].width,
64498
64516
  title: oa[0].title,
64499
64517
  stack: oa,
64500
- onPush: (B) => wa.push([...oa, B]),
64501
- onPop: () => wa.back(),
64502
- onClose: () => wa.back(oa.length)
64518
+ onPush: (B) => _a.push([...oa, B]),
64519
+ onPop: () => _a.back(),
64520
+ onClose: () => _a.back(oa.length)
64503
64521
  }
64504
64522
  ) : null,
64505
64523
  Gn && qr(
@@ -66324,7 +66342,7 @@ function Tq({
66324
66342
  const E = x.find((R) => R.value === $.field);
66325
66343
  return /* @__PURE__ */ r("div", { className: "flex items-center gap-1", children: [
66326
66344
  /* @__PURE__ */ e(
66327
- va,
66345
+ ka,
66328
66346
  {
66329
66347
  value: $.field,
66330
66348
  onChange: (R) => m((q) => q.map((D, V) => V === j ? { ...D, field: R } : D)),
@@ -66334,7 +66352,7 @@ function Tq({
66334
66352
  }
66335
66353
  ),
66336
66354
  (E == null ? void 0 : E.aggregatable) && /* @__PURE__ */ e(
66337
- va,
66355
+ ka,
66338
66356
  {
66339
66357
  value: $.agg,
66340
66358
  onChange: (R) => m(
@@ -66346,7 +66364,7 @@ function Tq({
66346
66364
  }
66347
66365
  ),
66348
66366
  /* @__PURE__ */ e(
66349
- va,
66367
+ ka,
66350
66368
  {
66351
66369
  value: $.op,
66352
66370
  onChange: (R) => m(
@@ -67885,7 +67903,7 @@ function TF({
67885
67903
  ] })
67886
67904
  ] }),
67887
67905
  /* @__PURE__ */ e(
67888
- va,
67906
+ ka,
67889
67907
  {
67890
67908
  value: (qn == null ? void 0 : qn.preset) ?? "",
67891
67909
  onChange: (Je) => b(Je ? { preset: Je } : null),
@@ -69361,7 +69379,7 @@ function jF() {
69361
69379
  ] });
69362
69380
  }
69363
69381
  function Pq() {
69364
- const t = Na(), { data: n, isFetched: a } = se({
69382
+ const t = wa(), { data: n, isFetched: a } = se({
69365
69383
  queryKey: ["feature-flags-mine"],
69366
69384
  enabled: !!t,
69367
69385
  staleTime: 6e4,
@@ -69589,7 +69607,7 @@ function Wq({
69589
69607
  inputId: o,
69590
69608
  errorId: d
69591
69609
  }) {
69592
- const u = Na(), [c, m] = S(!1), [p, h] = S(null), [f, y] = S(0), v = o ?? t.field, g = n != null && typeof n == "object" ? String(n.id ?? "") : n == null ? "" : String(n);
69610
+ const u = wa(), [c, m] = S(!1), [p, h] = S(null), [f, y] = S(0), v = o ?? t.field, g = n != null && typeof n == "object" ? String(n.id ?? "") : n == null ? "" : String(n);
69593
69611
  return /* @__PURE__ */ r("div", { children: [
69594
69612
  /* @__PURE__ */ e(
69595
69613
  "input",
@@ -69738,7 +69756,7 @@ function Hp({
69738
69756
  errorId: d
69739
69757
  }) {
69740
69758
  var F, C, A;
69741
- const u = Na(), [c, m] = S(""), p = ((F = t.relation) == null ? void 0 : F.relatedCollection) ?? "", {
69759
+ const u = wa(), [c, m] = S(""), p = ((F = t.relation) == null ? void 0 : F.relatedCollection) ?? "", {
69742
69760
  options: h,
69743
69761
  loading: f,
69744
69762
  error: y
@@ -69996,7 +70014,7 @@ function Gq({
69996
70014
  field: t,
69997
70015
  itemId: n
69998
70016
  }) {
69999
- const a = Na(), s = V0(), l = t.relation, i = (l == null ? void 0 : l.relatedCollection) ?? "", o = (l == null ? void 0 : l.manyField) ?? "", [d, u] = S([]), [c, m] = S([]), [p, h] = S(/* @__PURE__ */ new Map()), [f, y] = S([]), [v, g] = S(/* @__PURE__ */ new Set()), x = Pe(!0);
70017
+ const a = wa(), s = V0(), l = t.relation, i = (l == null ? void 0 : l.relatedCollection) ?? "", o = (l == null ? void 0 : l.manyField) ?? "", [d, u] = S([]), [c, m] = S([]), [p, h] = S(/* @__PURE__ */ new Map()), [f, y] = S([]), [v, g] = S(/* @__PURE__ */ new Set()), x = Pe(!0);
70000
70018
  Le(() => (x.current = !0, () => {
70001
70019
  x.current = !1;
70002
70020
  }), []);
@@ -70277,7 +70295,7 @@ function t6({
70277
70295
  labelOverride: a,
70278
70296
  defaultExpanded: s
70279
70297
  }) {
70280
- const l = Na(), [i, o] = S(!1), [d, u] = S([]), [c, m] = S(!1), [p, h] = S(""), [f, y] = S(!1), [v, g] = S(null), [x, b] = S(""), F = Pe(!0), C = Pe(!1);
70298
+ const l = wa(), [i, o] = S(!1), [d, u] = S([]), [c, m] = S(!1), [p, h] = S(""), [f, y] = S(!1), [v, g] = S(null), [x, b] = S(""), F = Pe(!0), C = Pe(!1);
70281
70299
  Le(() => (F.current = !0, () => {
70282
70300
  F.current = !1;
70283
70301
  }), []), Le(() => {
@@ -71078,7 +71096,7 @@ function s6({
71078
71096
  labelOverride: a,
71079
71097
  defaultExpanded: s
71080
71098
  }) {
71081
- const l = Na(), [i, o] = S(!1), [d, u] = S(null), [c, m] = S(""), [p, h] = S(null), [f, y] = S(!1), [v, g] = S(!1), x = Pe(!0), b = Pe(!1);
71099
+ const l = wa(), [i, o] = S(!1), [d, u] = S(null), [c, m] = S(""), [p, h] = S(null), [f, y] = S(!1), [v, g] = S(!1), x = Pe(!0), b = Pe(!1);
71082
71100
  Le(() => (x.current = !0, () => {
71083
71101
  x.current = !1;
71084
71102
  }), []), Le(() => {
@@ -71426,7 +71444,7 @@ function o6({
71426
71444
  labelOverride: a,
71427
71445
  defaultExpanded: s
71428
71446
  }) {
71429
- const l = Na(), [i, o] = S(!1), [d, u] = S([]), [c, m] = S([]), [p, h] = S(!1), [f, y] = S(!1), [v, g] = S(""), [x, b] = S(""), [F, C] = S(""), [A, N] = S(!1), _ = Pe(!0), w = Pe(!1);
71447
+ const l = wa(), [i, o] = S(!1), [d, u] = S([]), [c, m] = S([]), [p, h] = S(!1), [f, y] = S(!1), [v, g] = S(""), [x, b] = S(""), [F, C] = S(""), [A, N] = S(!1), _ = Pe(!0), w = Pe(!1);
71430
71448
  Le(() => (_.current = !0, () => {
71431
71449
  _.current = !1;
71432
71450
  }), []), Le(() => {
@@ -72498,7 +72516,7 @@ function k6(t, n) {
72498
72516
  return !0;
72499
72517
  }
72500
72518
  function VF(t, n, a) {
72501
- const s = Na(), l = a ?? s;
72519
+ const s = wa(), l = a ?? s;
72502
72520
  if (!l)
72503
72521
  throw new Error(
72504
72522
  "useNivaroForm requires a NivaroClient — pass one as the third argument or wrap the tree in <NivaroProvider>."
@@ -72791,7 +72809,7 @@ function Tb(t) {
72791
72809
  };
72792
72810
  }
72793
72811
  function HF(t = {}) {
72794
- const n = Na(), a = t.client ?? n, s = t.app, l = t.disabled ?? !1, i = Pe({
72812
+ const n = wa(), a = t.client ?? n, s = t.app, l = t.disabled ?? !1, i = Pe({
72795
72813
  recordingId: null,
72796
72814
  buffer: [],
72797
72815
  seq: 0,
@@ -72896,7 +72914,7 @@ function HF(t = {}) {
72896
72914
  }
72897
72915
  export {
72898
72916
  Y0 as ACTIVE_USER_OPTION_FILTER,
72899
- H5 as AccessDeniedPanel,
72917
+ H_ as AccessDeniedPanel,
72900
72918
  Bc as AddendumPanel,
72901
72919
  C$ as AiReviewCard,
72902
72920
  eF as AlertManagerView,
@@ -72933,7 +72951,7 @@ export {
72933
72951
  Py as EmptyState,
72934
72952
  cF as ErpFailureBanner,
72935
72953
  yF as ErrorSurface,
72936
- Z5 as ExternalRequestsChip,
72954
+ Z_ as ExternalRequestsChip,
72937
72955
  yl as FieldRenderer,
72938
72956
  Wq as FileField,
72939
72957
  Sm as FilePreviewLightbox,
@@ -72946,7 +72964,7 @@ export {
72946
72964
  NF as ImportConsole,
72947
72965
  bc as ImportFromFileButton,
72948
72966
  x0 as ImportIssuesPanel,
72949
- q_ as InlineTableField,
72967
+ q5 as InlineTableField,
72950
72968
  e2 as ItemActionButtons,
72951
72969
  og as ItemEditAuthContext,
72952
72970
  nS as ItemEditForm,
@@ -72968,7 +72986,7 @@ export {
72968
72986
  Cm as OwnerAvatars,
72969
72987
  R$ as OwnerGapsCard,
72970
72988
  DC as OwnerMatrix,
72971
- J5 as OwnersSlot,
72989
+ J_ as OwnersSlot,
72972
72990
  SF as PageRenderer,
72973
72991
  $F as PipelineEditorView,
72974
72992
  Qc as PipelinePanel,
@@ -73058,7 +73076,7 @@ export {
73058
73076
  mu as formatValue,
73059
73077
  Sw as formulaConstant,
73060
73078
  Nf as getApiUpdate,
73061
- s_ as getFieldInterface,
73079
+ s5 as getFieldInterface,
73062
73080
  hw as getFiscalStartMonth,
73063
73081
  r3 as getLayoutSlot,
73064
73082
  QN as getMentionQuery,
@@ -73079,7 +73097,7 @@ export {
73079
73097
  Ch as rankTeamForFilters,
73080
73098
  oF as registerCatalogItemOpener,
73081
73099
  rF as registerDmOpener,
73082
- a_ as registerFieldInterface,
73100
+ a5 as registerFieldInterface,
73083
73101
  n3 as registerLayoutSlot,
73084
73102
  aF as registerRoomOpener,
73085
73103
  Z6 as resolveCollectionIcon,
@@ -73136,7 +73154,7 @@ export {
73136
73154
  je as useNivaroClient,
73137
73155
  VF as useNivaroForm,
73138
73156
  dh as useOnlineUsers,
73139
- Na as useOptionalNivaroClient,
73157
+ wa as useOptionalNivaroClient,
73140
73158
  bm as useOptionalRealtime,
73141
73159
  BF as useOrderedLayout,
73142
73160
  mm as useOverlayState,