@nivaro/react 0.1.184 → 0.1.185

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
@@ -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,7 +8293,7 @@ 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(
8296
+ const Bl = ka.Root, i5 = ka.Trigger, o5 = ka.Portal, ey = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8297
8297
  ka.Overlay,
8298
8298
  {
8299
8299
  className: H(
@@ -8305,7 +8305,7 @@ const Bl = ka.Root, i_ = ka.Trigger, o_ = ka.Portal, ey = nr.forwardRef(({ class
8305
8305
  }
8306
8306
  ));
8307
8307
  ey.displayName = ka.Overlay.displayName;
8308
- const d_ = im(
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,9 +8320,9 @@ 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(ka.Content, { ref: l, className: H(d5({ side: t }), n), ...s, children: [
8326
8326
  a,
8327
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: [
8328
8328
  /* @__PURE__ */ e(Zt, { className: "h-4 w-4" }),
@@ -8342,7 +8342,7 @@ const ii = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8342
8342
  }
8343
8343
  ));
8344
8344
  ii.displayName = ka.Title.displayName;
8345
- const c_ = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8345
+ const c5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8346
8346
  ka.Description,
8347
8347
  {
8348
8348
  ref: a,
@@ -8350,8 +8350,8 @@ const c_ = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
8350
8350
  ...n
8351
8351
  }
8352
8352
  ));
8353
- c_.displayName = ka.Description.displayName;
8354
- function u_(t) {
8353
+ c5.displayName = ka.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 {
@@ -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 {
@@ -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,
@@ -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);
@@ -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",
@@ -18894,7 +18894,7 @@ function Io({
18894
18894
  o && "ring-1 ring-red-400 rounded-md"
18895
18895
  ),
18896
18896
  children: R ? /* @__PURE__ */ e(
18897
- r_,
18897
+ r5,
18898
18898
  {
18899
18899
  collection: l,
18900
18900
  field: t,
@@ -19022,7 +19022,7 @@ function xu({
19022
19022
  ] }, h)
19023
19023
  )) });
19024
19024
  }
19025
- function S5(t) {
19025
+ function S_(t) {
19026
19026
  if (!t) return null;
19027
19027
  const n = t.replace(/(^|-)([a-z])/g, (s, l, i) => i.toUpperCase()), a = Ab[n];
19028
19028
  return a || null;
@@ -19261,7 +19261,7 @@ function y0({
19261
19261
  "div",
19262
19262
  {
19263
19263
  ref: s,
19264
- style: C5(a.current, d),
19264
+ style: C_(a.current, d),
19265
19265
  onMouseEnter: c,
19266
19266
  onMouseLeave: p,
19267
19267
  onMouseDown: (g) => {
@@ -19288,7 +19288,7 @@ function y0({
19288
19288
  function my(t) {
19289
19289
  return (t == null ? void 0 : t.closest('[role="dialog"]')) ?? document.body;
19290
19290
  }
19291
- function C5(t, n) {
19291
+ function C_(t, n) {
19292
19292
  const a = my(t);
19293
19293
  if (a === document.body) return { position: "fixed", left: n.x, top: n.y, zIndex: 50 };
19294
19294
  const s = a.getBoundingClientRect();
@@ -19344,7 +19344,7 @@ function v0({
19344
19344
  )) })
19345
19345
  ] });
19346
19346
  }
19347
- function $5({
19347
+ function $_({
19348
19348
  user: t,
19349
19349
  userId: n,
19350
19350
  initials: a,
@@ -19544,7 +19544,7 @@ function vo({
19544
19544
  /* @__PURE__ */ e("span", { className: "text-[12px] text-slate-700 dark:text-slate-300", children: p })
19545
19545
  ] }) }),
19546
19546
  /* @__PURE__ */ e(
19547
- $5,
19547
+ $_,
19548
19548
  {
19549
19549
  user: u,
19550
19550
  userId: t,
@@ -19557,7 +19557,7 @@ function vo({
19557
19557
  )
19558
19558
  ] });
19559
19559
  }
19560
- function q5({
19560
+ function q_({
19561
19561
  collection: t,
19562
19562
  itemId: n,
19563
19563
  layoutId: a,
@@ -19675,7 +19675,7 @@ function Xf({
19675
19675
  }
19676
19676
  );
19677
19677
  }
19678
- function F5({
19678
+ function F_({
19679
19679
  field: t,
19680
19680
  val: n,
19681
19681
  relations: a,
@@ -19746,7 +19746,7 @@ function F5({
19746
19746
  }
19747
19747
  return /* @__PURE__ */ e("span", { className: `text-[13px] font-semibold ${o}`, children: Ni(n, t) });
19748
19748
  }
19749
- function T5({
19749
+ function T_({
19750
19750
  summaryFields: t,
19751
19751
  fields: n,
19752
19752
  draft: a,
@@ -19873,7 +19873,7 @@ function T5({
19873
19873
  };
19874
19874
  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
19875
  }
19876
- function j5({
19876
+ function j_({
19877
19877
  group: t,
19878
19878
  fields: n,
19879
19879
  draft: a,
@@ -19921,7 +19921,7 @@ function j5({
19921
19921
  if (t.hide_when_empty && v && (we = v.every(
19922
19922
  (Ne) => Ne == null || Ne === "" || Array.isArray(Ne) && Ne.length === 0
19923
19923
  ) && !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);
19924
+ const W = Pe(null), de = Gg(W), re = S_(t.icon), ie = n.filter((pe) => !pe.hidden);
19925
19925
  return /* @__PURE__ */ r(
19926
19926
  "div",
19927
19927
  {
@@ -19961,7 +19961,7 @@ function j5({
19961
19961
  }
19962
19962
  ),
19963
19963
  te && b && b.length > 0 && /* @__PURE__ */ e(
19964
- T5,
19964
+ T_,
19965
19965
  {
19966
19966
  summaryFields: b,
19967
19967
  fields: n,
@@ -20069,7 +20069,7 @@ function j5({
20069
20069
  if (!E) return null;
20070
20070
  const wt = Ne.slot.col_span ?? 12, bn = ((mt = Ne.slot.label_override) == null ? void 0 : mt.trim()) || "Generate PDF";
20071
20071
  return /* @__PURE__ */ e("div", { style: { gridColumn: `span ${wt}` }, children: /* @__PURE__ */ e(
20072
- q5,
20072
+ q_,
20073
20073
  {
20074
20074
  collection: i,
20075
20075
  itemId: o,
@@ -20237,7 +20237,7 @@ function jr({ className: t, ...n }) {
20237
20237
  );
20238
20238
  }
20239
20239
  const Md = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
20240
- function A5(t) {
20240
+ function A_(t) {
20241
20241
  const n = new DOMParser().parseFromString(t, "text/html");
20242
20242
  for (const a of n.querySelectorAll("script, style, iframe, object, embed, form, link, meta"))
20243
20243
  a.remove();
@@ -20248,7 +20248,7 @@ function A5(t) {
20248
20248
  }
20249
20249
  return n.body.innerHTML;
20250
20250
  }
20251
- const L5 = (t) => t.replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/\s+/g, " ").trim();
20251
+ const L_ = (t) => t.replace(/<[^>]+>/g, " ").replace(/&nbsp;/g, " ").replace(/\s+/g, " ").trim();
20252
20252
  function Zf(t) {
20253
20253
  const n = Number(t);
20254
20254
  return !t || Number.isNaN(n) || n === 0 ? null : /* @__PURE__ */ r(
@@ -20289,11 +20289,11 @@ const fp = {
20289
20289
  badge: "bg-amber-50 text-amber-700 dark:bg-amber-500/10 dark:text-amber-400",
20290
20290
  dot: "bg-amber-500"
20291
20291
  }
20292
- }, O5 = (t, n) => Math.round(Number(t) * 100) === Math.round(Number(n) * 100);
20293
- function R5(t, n, a) {
20292
+ }, O_ = (t, n) => Math.round(Number(t) * 100) === Math.round(Number(n) * 100);
20293
+ function R_(t, n, a) {
20294
20294
  if (!a || t.computed_type !== "rollup" || !t.computed_formula) return t;
20295
20295
  const s = uy(g0(t.computed_formula), a.rows);
20296
- return s === null || n != null && O5(n, s) ? t : {
20296
+ return s === null || n != null && O_(n, s) ? t : {
20297
20297
  ...t,
20298
20298
  options: {
20299
20299
  ...t.options ?? {},
@@ -20301,7 +20301,7 @@ function R5(t, n, a) {
20301
20301
  }
20302
20302
  };
20303
20303
  }
20304
- function M5({
20304
+ function M_({
20305
20305
  current: t,
20306
20306
  value: n,
20307
20307
  onChange: a,
@@ -20354,7 +20354,7 @@ function M5({
20354
20354
  ] })
20355
20355
  ] });
20356
20356
  }
20357
- const E5 = jb(function({
20357
+ const E_ = jb(function({
20358
20358
  configuredFields: n,
20359
20359
  fieldMap: a,
20360
20360
  formData: s,
@@ -20393,7 +20393,7 @@ const E5 = jb(function({
20393
20393
  return /* @__PURE__ */ r("div", { children: [
20394
20394
  /* @__PURE__ */ e(_n, { className: "mb-1 block text-[11px] font-medium text-slate-600 dark:text-slate-400", children: h }),
20395
20395
  /* @__PURE__ */ e(
20396
- M5,
20396
+ M_,
20397
20397
  {
20398
20398
  current: Number.isFinite(v) ? v : 0,
20399
20399
  value: s[m.field],
@@ -20409,7 +20409,7 @@ const E5 = jb(function({
20409
20409
  /* @__PURE__ */ e(
20410
20410
  yl,
20411
20411
  {
20412
- field: R5(p, s[m.field], c),
20412
+ field: R_(p, s[m.field], c),
20413
20413
  value: s[m.field],
20414
20414
  onChange: (v) => l(m.field, v),
20415
20415
  relations: i,
@@ -20422,7 +20422,7 @@ const E5 = jb(function({
20422
20422
  }) })
20423
20423
  ] });
20424
20424
  });
20425
- function D5({
20425
+ function D_({
20426
20426
  addendumId: t,
20427
20427
  onRefresh: n
20428
20428
  }) {
@@ -20572,7 +20572,7 @@ function D5({
20572
20572
  h.completed_at && /* @__PURE__ */ e("p", { className: "text-[11px] text-slate-400 italic", children: "Workflow complete." })
20573
20573
  ] });
20574
20574
  }
20575
- function P5({
20575
+ function P_({
20576
20576
  collection: t,
20577
20577
  itemId: n,
20578
20578
  assignments: a,
@@ -20785,7 +20785,7 @@ function P5({
20785
20785
  ] })
20786
20786
  ] }),
20787
20787
  /* @__PURE__ */ e(
20788
- E5,
20788
+ E_,
20789
20789
  {
20790
20790
  parentData: d,
20791
20791
  configuredFields: p,
@@ -20813,7 +20813,7 @@ function P5({
20813
20813
  ] })
20814
20814
  ] }) });
20815
20815
  }
20816
- function K5({ addendum: t }) {
20816
+ function K_({ addendum: t }) {
20817
20817
  const n = je(), a = [t.created_by, t.approved_by].filter(Boolean), { data: s = {} } = se({
20818
20818
  queryKey: ["addendum-users", ...a.sort()],
20819
20819
  queryFn: async () => {
@@ -20860,14 +20860,14 @@ function K5({ addendum: t }) {
20860
20860
  "div",
20861
20861
  {
20862
20862
  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) }
20863
+ dangerouslySetInnerHTML: { __html: A_(t.description) }
20864
20864
  }
20865
20865
  ) : /* @__PURE__ */ e("p", { className: "whitespace-pre-wrap text-[12.5px] leading-relaxed text-slate-600 dark:text-slate-300", children: t.description })
20866
20866
  ] }),
20867
- /* @__PURE__ */ e(I5, { ids: t.attachments })
20867
+ /* @__PURE__ */ e(I_, { ids: t.attachments })
20868
20868
  ] });
20869
20869
  }
20870
- function I5({ ids: t }) {
20870
+ function I_({ ids: t }) {
20871
20871
  const n = je(), [a, s] = S(null), l = Array.isArray(t) ? t.filter(Boolean) : [], { data: i = [] } = se({
20872
20872
  queryKey: ["addendum-files", ...l],
20873
20873
  queryFn: () => Promise.all(
@@ -20921,7 +20921,7 @@ function I5({ ids: t }) {
20921
20921
  ] })
20922
20922
  ] });
20923
20923
  }
20924
- function z5({
20924
+ function z_({
20925
20925
  addendum: t,
20926
20926
  configuredFields: n,
20927
20927
  onRefresh: a,
@@ -21073,7 +21073,7 @@ function z5({
21073
21073
  ] }),
21074
21074
  Zf(t.cost_impact) ?? Zf(O)
21075
21075
  ] }),
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) })
21076
+ 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
21077
  ] }),
21078
21078
  /* @__PURE__ */ e(
21079
21079
  "span",
@@ -21089,7 +21089,7 @@ function z5({
21089
21089
  }
21090
21090
  ),
21091
21091
  c && /* @__PURE__ */ r("div", { className: "border-t border-slate-100 dark:border-border", children: [
21092
- /* @__PURE__ */ e(K5, { addendum: t }),
21092
+ /* @__PURE__ */ e(K_, { addendum: t }),
21093
21093
  (R.length > 0 || t.previous_amount != null || t.new_amount != null) && /* @__PURE__ */ r("div", { className: "px-4 py-3", children: [
21094
21094
  /* @__PURE__ */ e("p", { className: "mb-2 text-[10px] font-semibold uppercase tracking-wide text-slate-400 dark:text-slate-500", children: "Proposed changes" }),
21095
21095
  /* @__PURE__ */ r("div", { className: "space-y-1.5", children: [
@@ -21174,7 +21174,7 @@ function z5({
21174
21174
  ] }),
21175
21175
  t.workflow_template_id && /* @__PURE__ */ r("div", { className: "border-t border-slate-100 dark:border-border px-4 py-3", children: [
21176
21176
  /* @__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 }),
21177
+ /* @__PURE__ */ e(D_, { addendumId: t.id, onRefresh: a }),
21178
21178
  $ && /* @__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
21179
  /* @__PURE__ */ e("span", { className: "text-[11px] text-amber-600 dark:text-amber-400", children: "Roll every applied change back?" }),
21180
21180
  /* @__PURE__ */ e(
@@ -21443,7 +21443,7 @@ function Bc({
21443
21443
  /* @__PURE__ */ e("p", { className: "text-[12px] text-slate-400 dark:text-slate-500", children: "No addendum attached to this record" }),
21444
21444
  /* @__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
21445
  ] }) : /* @__PURE__ */ e("div", { className: "p-3 space-y-2", children: f.map((j) => /* @__PURE__ */ e(
21446
- z5,
21446
+ z_,
21447
21447
  {
21448
21448
  addendum: j,
21449
21449
  configuredFields: k,
@@ -21466,7 +21466,7 @@ function Bc({
21466
21466
  /* @__PURE__ */ e(jr, { className: "h-9 w-full" }),
21467
21467
  /* @__PURE__ */ e(jr, { className: "h-9 w-3/4" })
21468
21468
  ] }) : c && N ? /* @__PURE__ */ e(
21469
- P5,
21469
+ P_,
21470
21470
  {
21471
21471
  collection: t,
21472
21472
  itemId: n,
@@ -21491,7 +21491,7 @@ const hy = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21491
21491
  }
21492
21492
  ));
21493
21493
  hy.displayName = dd.Root.displayName;
21494
- const U5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21494
+ const U_ = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21495
21495
  dd.Image,
21496
21496
  {
21497
21497
  ref: a,
@@ -21499,7 +21499,7 @@ const U5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21499
21499
  ...n
21500
21500
  }
21501
21501
  ));
21502
- U5.displayName = dd.Image.displayName;
21502
+ U_.displayName = dd.Image.displayName;
21503
21503
  const fy = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
21504
21504
  dd.Fallback,
21505
21505
  {
@@ -21528,14 +21528,14 @@ const k0 = nr.forwardRef(({ className: t, orientation: n = "horizontal", decorat
21528
21528
  ));
21529
21529
  k0.displayName = rg.Root.displayName;
21530
21530
  const xy = ["👍", "✅", "👀", "🎉", "❤️", "😂"];
21531
- function B5(t) {
21531
+ function B_(t) {
21532
21532
  var a, s, l, i;
21533
21533
  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
21534
  }
21535
21535
  function ex(t) {
21536
21536
  return [t.first_name, t.last_name].filter(Boolean).join(" ") || t.email;
21537
21537
  }
21538
- function W5(t, n) {
21538
+ function W_(t, n) {
21539
21539
  const s = t.slice(0, n).match(/(^|\s)@([a-zA-Z0-9._-]{2,})$/);
21540
21540
  return s ? { start: n - s[2].length - 1, query: s[2] } : null;
21541
21541
  }
@@ -21576,7 +21576,7 @@ function xp({
21576
21576
  };
21577
21577
  }, [y]);
21578
21578
  function F(N) {
21579
- const _ = W5(N.value, N.selectionStart ?? N.value.length);
21579
+ const _ = W_(N.value, N.selectionStart ?? N.value.length);
21580
21580
  o(_), _ || u(0);
21581
21581
  }
21582
21582
  function C(N) {
@@ -21710,7 +21710,7 @@ function xp({
21710
21710
  )
21711
21711
  ] });
21712
21712
  }
21713
- function Q5({ note: t }) {
21713
+ function Q_({ note: t }) {
21714
21714
  const n = rl(), a = je(), s = jt(), [l, i] = S(!1), o = Ue({
21715
21715
  mutationFn: (c) => a.request(ze(`/comments/${t.comment_id}/reactions`, { emoji: c })),
21716
21716
  onSuccess: () => {
@@ -21989,7 +21989,7 @@ function Wc({
21989
21989
  ] })
21990
21990
  ] }, 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
21991
  if (ne.kind === "related")
21992
- return /* @__PURE__ */ e(Q5, { note: ne.note }, ne.note.id);
21992
+ return /* @__PURE__ */ e(Q_, { note: ne.note }, ne.note.id);
21993
21993
  const ce = ne.comment, te = d === ce.user.id, xe = A === ce.id;
21994
21994
  return /* @__PURE__ */ r("div", { className: "group flex gap-3", children: [
21995
21995
  /* @__PURE__ */ e(
@@ -21997,7 +21997,7 @@ function Wc({
21997
21997
  {
21998
21998
  userId: ce.user.id,
21999
21999
  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) }) })
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: B_(ce.user) }) })
22001
22001
  }
22002
22002
  ),
22003
22003
  /* @__PURE__ */ r("div", { className: "min-w-0 flex-1", children: [
@@ -22132,10 +22132,10 @@ function Wc({
22132
22132
  function by(t) {
22133
22133
  return [t.first_name, t.last_name].filter(Boolean).join(" ") || t.email;
22134
22134
  }
22135
- function V5(t) {
22135
+ function V_(t) {
22136
22136
  return by(t).split(" ").map((a) => a[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
22137
22137
  }
22138
- function J5({
22138
+ function J_({
22139
22139
  collection: t,
22140
22140
  item: n,
22141
22141
  title: a,
@@ -22188,7 +22188,7 @@ function J5({
22188
22188
  {
22189
22189
  userId: h.user,
22190
22190
  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) })
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: V_(h) })
22192
22192
  }
22193
22193
  ),
22194
22194
  /* @__PURE__ */ e("span", { className: "text-[12px] text-slate-700", children: by(h) })
@@ -22199,7 +22199,7 @@ function J5({
22199
22199
  ] }, m)) }) })
22200
22200
  ] });
22201
22201
  }
22202
- function H5({
22202
+ function H_({
22203
22203
  collection: t,
22204
22204
  itemId: n,
22205
22205
  onBack: a
@@ -22449,25 +22449,25 @@ function sx(t) {
22449
22449
  return String(t);
22450
22450
  }
22451
22451
  }
22452
- const G5 = {
22452
+ const G_ = {
22453
22453
  accepted: "bg-emerald-50 text-emerald-700 dark:bg-emerald-500/10 dark:text-emerald-400",
22454
22454
  failed: "bg-red-50 text-red-700 dark:bg-red-500/10 dark:text-red-400",
22455
22455
  pending: "bg-sky-50 text-sky-700 dark:bg-sky-500/10 dark:text-sky-400",
22456
22456
  submitted: "bg-sky-50 text-sky-700 dark:bg-sky-500/10 dark:text-sky-400"
22457
22457
  };
22458
- function Y5({ status: t }) {
22458
+ function Y_({ status: t }) {
22459
22459
  return /* @__PURE__ */ e(
22460
22460
  "span",
22461
22461
  {
22462
22462
  className: H(
22463
22463
  "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"
22464
+ G_[t] ?? "bg-slate-100 text-slate-600 dark:bg-muted dark:text-slate-300"
22465
22465
  ),
22466
22466
  children: t
22467
22467
  }
22468
22468
  );
22469
22469
  }
22470
- function X5({
22470
+ function X_({
22471
22471
  sub: t,
22472
22472
  onRetry: n,
22473
22473
  retrying: a
@@ -22481,7 +22481,7 @@ function X5({
22481
22481
  onClick: () => l(!s),
22482
22482
  className: "flex w-full items-center gap-3 px-3 py-2 text-left",
22483
22483
  children: [
22484
- /* @__PURE__ */ e(Y5, { status: t.status }),
22484
+ /* @__PURE__ */ e(Y_, { status: t.status }),
22485
22485
  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
22486
  /* @__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
22487
  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 +22534,7 @@ function X5({
22534
22534
  ] })
22535
22535
  ] });
22536
22536
  }
22537
- function Z5({
22537
+ function Z_({
22538
22538
  collection: t,
22539
22539
  itemId: n
22540
22540
  }) {
@@ -22585,7 +22585,7 @@ function Z5({
22585
22585
  u.length !== 1 ? "s" : ""
22586
22586
  ] })
22587
22587
  ] }) }),
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)) })
22588
+ /* @__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
22589
  ] }) })
22590
22590
  ] });
22591
22591
  }
@@ -22971,7 +22971,7 @@ function i2({
22971
22971
  }) {
22972
22972
  if (!t) return null;
22973
22973
  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: [
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 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-100", children: [
22975
22975
  /* @__PURE__ */ e(ad, { className: "h-4 w-4 shrink-0 text-amber-500" }),
22976
22976
  /* @__PURE__ */ r("span", { className: "flex-1", children: [
22977
22977
  /* @__PURE__ */ e("span", { className: "font-medium", children: o }),
@@ -22982,7 +22982,7 @@ function i2({
22982
22982
  {
22983
22983
  size: "sm",
22984
22984
  variant: "outline",
22985
- className: "h-7 shrink-0 border-amber-300 bg-white text-[12px] text-amber-800 hover:bg-amber-100",
22985
+ 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
22986
  onClick: l,
22987
22987
  disabled: i,
22988
22988
  children: i ? "Asking…" : "Request lock"
@@ -22995,7 +22995,7 @@ function i2({
22995
22995
  {
22996
22996
  size: "sm",
22997
22997
  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",
22998
+ 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
22999
  onClick: n,
23000
23000
  disabled: a,
23001
23001
  children: a ? "Taking over…" : "Take over"
@@ -26281,7 +26281,7 @@ function Ny({
26281
26281
  onOpenChange: o
26282
26282
  }) {
26283
26283
  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: [
26284
+ !(i !== void 0) && /* @__PURE__ */ e(i5, { asChild: !0, children: /* @__PURE__ */ r(Ie, { variant: "outline", size: "sm", className: s ?? "gap-1.5", children: [
26285
26285
  /* @__PURE__ */ e(Ul, { className: "h-3.5 w-3.5" }),
26286
26286
  "History"
26287
26287
  ] }) }),
@@ -28645,7 +28645,7 @@ function C3({ collection: t, itemId: n }) {
28645
28645
  onClick: () => {
28646
28646
  o ? c.mutate() : d(!0);
28647
28647
  },
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",
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:bg-transparent dark:text-red-300 dark:hover:bg-red-500/15",
28649
28649
  children: c.isPending ? "Acknowledging…" : o ? "Confirm acknowledge" : "Acknowledge"
28650
28650
  }
28651
28651
  )
@@ -29561,7 +29561,7 @@ function Sp({ children: t }) {
29561
29561
  return /* @__PURE__ */ e("div", { ref: n, className: "grid grid-cols-12 gap-4 items-start", children: t(a) });
29562
29562
  }
29563
29563
  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" });
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 dark:border-slate-600 shrink-0" });
29565
29565
  }
29566
29566
  function B3({
29567
29567
  open: t,
@@ -29592,7 +29592,7 @@ function B3({
29592
29592
  l ? "Saved with errors" : s ? "All changes saved" : "Saving changes…"
29593
29593
  ] }),
29594
29594
  /* @__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(
29595
+ /* @__PURE__ */ e("div", { className: "flex-1 h-1.5 rounded-full bg-slate-100 dark:bg-muted overflow-hidden", children: /* @__PURE__ */ e(
29596
29596
  "div",
29597
29597
  {
29598
29598
  className: "h-full rounded-full bg-[#00ceff] transition-all duration-500",
@@ -29614,9 +29614,9 @@ function B3({
29614
29614
  className: H(
29615
29615
  "rounded-lg border px-3 py-2.5 transition-colors duration-200",
29616
29616
  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"
29617
+ c.status === "done" && "border-green-100 bg-green-50/40 dark:border-green-500/25 dark:bg-green-500/10",
29618
+ c.status === "error" && "border-red-200 bg-red-50 dark:border-red-500/40 dark:bg-red-500/10",
29619
+ c.status === "pending" && "border-slate-100 bg-slate-50/60 dark:border-border dark:bg-muted/30"
29620
29620
  ),
29621
29621
  children: /* @__PURE__ */ r("div", { className: "flex items-start gap-2.5", children: [
29622
29622
  /* @__PURE__ */ e("div", { className: "mt-0.5 shrink-0", children: /* @__PURE__ */ e(U3, { status: c.status }) }),
@@ -29627,10 +29627,10 @@ function B3({
29627
29627
  {
29628
29628
  className: H(
29629
29629
  "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"
29630
+ c.status === "done" && "text-slate-400 dark:text-slate-300",
29631
+ c.status === "error" && "text-red-700 dark:text-red-300",
29632
+ c.status === "running" && "text-slate-900 dark:text-foreground",
29633
+ c.status === "pending" && "text-slate-500 dark:text-muted-foreground"
29634
29634
  ),
29635
29635
  children: c.label
29636
29636
  }
@@ -31845,7 +31845,7 @@ ${ae.join(`
31845
31845
  }
31846
31846
  }
31847
31847
  }, Co = ($a == null ? void 0 : $a.group_key) ?? null, hd = !!(Co && ar.some((M) => M.key === Co)), qv = () => /* @__PURE__ */ e(
31848
- J5,
31848
+ J_,
31849
31849
  {
31850
31850
  collection: t,
31851
31851
  item: O,
@@ -33124,7 +33124,7 @@ ${ae.join(`
33124
33124
  if (Oe.length === 0 && !Re && !Ve && bt.length === 0) return null;
33125
33125
  const Nt = I && U.type !== "tab";
33126
33126
  return /* @__PURE__ */ e(
33127
- j5,
33127
+ j_,
33128
33128
  {
33129
33129
  group: U,
33130
33130
  fields: Oe,
@@ -33588,7 +33588,7 @@ ${ae.join(`
33588
33588
  };
33589
33589
  }, [He, ge, t, z, p]), ht)
33590
33590
  return /* @__PURE__ */ e("div", { className: H("flex flex-1 min-h-0 flex-col overflow-y-auto", A), children: /* @__PURE__ */ e(
33591
- H5,
33591
+ H_,
33592
33592
  {
33593
33593
  collection: t,
33594
33594
  itemId: String(O),
@@ -34604,7 +34604,7 @@ ${ae.join(`
34604
34604
  ].filter(Boolean).join(" "),
34605
34605
  children: (() => {
34606
34606
  const yt = Y.cmsField ? /* @__PURE__ */ e(
34607
- F5,
34607
+ F_,
34608
34608
  {
34609
34609
  field: Y.cmsField,
34610
34610
  val: $e,
@@ -34671,7 +34671,7 @@ ${ae.join(`
34671
34671
  );
34672
34672
  }),
34673
34673
  !z && O && /* @__PURE__ */ e("div", { className: "ml-auto self-center py-2 pl-3", children: /* @__PURE__ */ e(
34674
- Z5,
34674
+ Z_,
34675
34675
  {
34676
34676
  collection: t,
34677
34677
  itemId: String(O)
@@ -72896,7 +72896,7 @@ function HF(t = {}) {
72896
72896
  }
72897
72897
  export {
72898
72898
  Y0 as ACTIVE_USER_OPTION_FILTER,
72899
- H5 as AccessDeniedPanel,
72899
+ H_ as AccessDeniedPanel,
72900
72900
  Bc as AddendumPanel,
72901
72901
  C$ as AiReviewCard,
72902
72902
  eF as AlertManagerView,
@@ -72933,7 +72933,7 @@ export {
72933
72933
  Py as EmptyState,
72934
72934
  cF as ErpFailureBanner,
72935
72935
  yF as ErrorSurface,
72936
- Z5 as ExternalRequestsChip,
72936
+ Z_ as ExternalRequestsChip,
72937
72937
  yl as FieldRenderer,
72938
72938
  Wq as FileField,
72939
72939
  Sm as FilePreviewLightbox,
@@ -72946,7 +72946,7 @@ export {
72946
72946
  NF as ImportConsole,
72947
72947
  bc as ImportFromFileButton,
72948
72948
  x0 as ImportIssuesPanel,
72949
- q_ as InlineTableField,
72949
+ q5 as InlineTableField,
72950
72950
  e2 as ItemActionButtons,
72951
72951
  og as ItemEditAuthContext,
72952
72952
  nS as ItemEditForm,
@@ -72968,7 +72968,7 @@ export {
72968
72968
  Cm as OwnerAvatars,
72969
72969
  R$ as OwnerGapsCard,
72970
72970
  DC as OwnerMatrix,
72971
- J5 as OwnersSlot,
72971
+ J_ as OwnersSlot,
72972
72972
  SF as PageRenderer,
72973
72973
  $F as PipelineEditorView,
72974
72974
  Qc as PipelinePanel,
@@ -73058,7 +73058,7 @@ export {
73058
73058
  mu as formatValue,
73059
73059
  Sw as formulaConstant,
73060
73060
  Nf as getApiUpdate,
73061
- s_ as getFieldInterface,
73061
+ s5 as getFieldInterface,
73062
73062
  hw as getFiscalStartMonth,
73063
73063
  r3 as getLayoutSlot,
73064
73064
  QN as getMentionQuery,
@@ -73079,7 +73079,7 @@ export {
73079
73079
  Ch as rankTeamForFilters,
73080
73080
  oF as registerCatalogItemOpener,
73081
73081
  rF as registerDmOpener,
73082
- a_ as registerFieldInterface,
73082
+ a5 as registerFieldInterface,
73083
73083
  n3 as registerLayoutSlot,
73084
73084
  aF as registerRoomOpener,
73085
73085
  Z6 as resolveCollectionIcon,