@nivaro/react 0.1.185 → 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/full.css +36 -1
- package/dist/index.js +299 -281
- package/package.json +1 -1
- package/styles.css +36 -1
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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)) *
|
|
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 /
|
|
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) *
|
|
2665
|
-
top: u.h / 2 + ($ - g) *
|
|
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) *
|
|
2670
|
-
y: u.h / 2 + (Ao(T, y.zoom) - g) *
|
|
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) /
|
|
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) /
|
|
2692
|
-
lat: Xm(D * V - ($.y - u.h / 2) /
|
|
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) /
|
|
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:
|
|
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) /
|
|
2830
|
-
lng: Ym(v + (T.x - u.w / 2) /
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
{
|
|
@@ -8293,8 +8293,8 @@ function wm({
|
|
|
8293
8293
|
] })
|
|
8294
8294
|
] }) });
|
|
8295
8295
|
}
|
|
8296
|
-
const Bl =
|
|
8297
|
-
|
|
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,7 +8304,7 @@ const Bl = ka.Root, i5 = ka.Trigger, o5 = ka.Portal, ey = nr.forwardRef(({ class
|
|
|
8304
8304
|
ref: a
|
|
8305
8305
|
}
|
|
8306
8306
|
));
|
|
8307
|
-
ey.displayName =
|
|
8307
|
+
ey.displayName = Na.Overlay.displayName;
|
|
8308
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
|
{
|
|
@@ -8322,35 +8322,35 @@ const d5 = im(
|
|
|
8322
8322
|
}
|
|
8323
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(
|
|
8325
|
+
/* @__PURE__ */ r(Na.Content, { ref: l, className: H(d5({ side: t }), n), ...s, children: [
|
|
8326
8326
|
a,
|
|
8327
|
-
/* @__PURE__ */ r(
|
|
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 =
|
|
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
|
-
|
|
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 =
|
|
8344
|
+
ii.displayName = Na.Title.displayName;
|
|
8345
8345
|
const c5 = nr.forwardRef(({ className: t, ...n }, a) => /* @__PURE__ */ e(
|
|
8346
|
-
|
|
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
|
-
c5.displayName =
|
|
8353
|
+
c5.displayName = Na.Description.displayName;
|
|
8354
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
|
}
|
|
@@ -10790,7 +10790,7 @@ function q5({
|
|
|
10790
10790
|
}
|
|
10791
10791
|
Fr(Q, Object.keys(he).length > 0 ? he : null);
|
|
10792
10792
|
});
|
|
10793
|
-
const
|
|
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 q5({
|
|
|
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(
|
|
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
|
-
[...
|
|
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 q5({
|
|
|
10843
10843
|
})
|
|
10844
10844
|
), Q;
|
|
10845
10845
|
},
|
|
10846
|
-
enabled:
|
|
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);
|
|
@@ -15172,7 +15172,7 @@ function Y5({ value: t }) {
|
|
|
15172
15172
|
] });
|
|
15173
15173
|
}
|
|
15174
15174
|
function ry(t) {
|
|
15175
|
-
const n =
|
|
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) })
|
|
@@ -17475,7 +17475,7 @@ function u_({
|
|
|
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
|
-
|
|
17478
|
+
ka,
|
|
17479
17479
|
{
|
|
17480
17480
|
value: i,
|
|
17481
17481
|
onChange: o,
|
|
@@ -18147,7 +18147,7 @@ function yl({
|
|
|
18147
18147
|
})();
|
|
18148
18148
|
if (L.length > 0)
|
|
18149
18149
|
return /* @__PURE__ */ e(
|
|
18150
|
-
|
|
18150
|
+
ka,
|
|
18151
18151
|
{
|
|
18152
18152
|
value: A,
|
|
18153
18153
|
onChange: (O) => a(O || null),
|
|
@@ -18891,7 +18891,9 @@ function Io({
|
|
|
18891
18891
|
{
|
|
18892
18892
|
className: H(
|
|
18893
18893
|
u && "pointer-events-none opacity-60",
|
|
18894
|
-
|
|
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
18899
|
r5,
|
|
@@ -18944,7 +18946,7 @@ function xu({
|
|
|
18944
18946
|
entries: a,
|
|
18945
18947
|
separator: s
|
|
18946
18948
|
}) {
|
|
18947
|
-
const l =
|
|
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)
|
|
@@ -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)))
|
|
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(
|
|
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 =
|
|
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}`)
|
|
@@ -19298,7 +19302,7 @@ function py({
|
|
|
19298
19302
|
collection: t,
|
|
19299
19303
|
itemId: n
|
|
19300
19304
|
}) {
|
|
19301
|
-
const a =
|
|
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 =
|
|
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",
|
|
@@ -19504,7 +19508,7 @@ function vo({
|
|
|
19504
19508
|
userId: t,
|
|
19505
19509
|
size: n = "default"
|
|
19506
19510
|
}) {
|
|
19507
|
-
const a =
|
|
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,
|
|
@@ -19565,7 +19569,7 @@ function q_({
|
|
|
19565
19569
|
filenameTemplate: l,
|
|
19566
19570
|
label: i
|
|
19567
19571
|
}) {
|
|
19568
|
-
const o =
|
|
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 =
|
|
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}`)
|
|
@@ -19926,7 +19930,7 @@ function j_({
|
|
|
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 j_({
|
|
|
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
|
{
|
|
@@ -19992,7 +19996,7 @@ function j_({
|
|
|
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,
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28092
|
+
ka,
|
|
28089
28093
|
{
|
|
28090
28094
|
value: i,
|
|
28091
28095
|
onChange: o,
|
|
@@ -30778,7 +30782,7 @@ function nS({
|
|
|
30778
30782
|
]
|
|
30779
30783
|
), Fr = Pe(Is);
|
|
30780
30784
|
Fr.current = Is;
|
|
30781
|
-
const
|
|
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 !== "" && (
|
|
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 =
|
|
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))
|
|
30917
|
+
for (const [Oe, Re] of Object.entries(U)) _a(Oe, Re);
|
|
30914
30918
|
}
|
|
30915
30919
|
},
|
|
30916
|
-
[tr, Hn, Zn,
|
|
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 ||
|
|
30998
|
+
}), Yr(M), ae || _a(M, U), ae || Fr.current(M, U);
|
|
30995
30999
|
},
|
|
30996
|
-
[J, Yr,
|
|
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
|
-
}, [
|
|
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 ===
|
|
31711
|
-
}, [Ge, Nr,
|
|
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 ===
|
|
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 !==
|
|
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,
|
|
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 =
|
|
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 ===
|
|
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(() => {
|
|
@@ -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(
|
|
32787
|
-
|
|
32788
|
-
|
|
32789
|
-
|
|
32790
|
-
|
|
32791
|
-
|
|
32792
|
-
|
|
32793
|
-
|
|
32794
|
-
|
|
32795
|
-
|
|
32796
|
-
|
|
32797
|
-
|
|
32798
|
-
|
|
32799
|
-
|
|
32800
|
-
|
|
32801
|
-
|
|
32802
|
-
|
|
32803
|
-
|
|
32804
|
-
|
|
32805
|
-
|
|
32806
|
-
|
|
32807
|
-
|
|
32808
|
-
|
|
32809
|
-
|
|
32810
|
-
|
|
32811
|
-
|
|
32812
|
-
|
|
32813
|
-
|
|
32814
|
-
|
|
32815
|
-
|
|
32816
|
-
|
|
32817
|
-
|
|
32818
|
-
|
|
32819
|
-
|
|
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
|
{
|
|
@@ -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(
|
|
33246
|
-
|
|
33247
|
-
|
|
33248
|
-
|
|
33249
|
-
|
|
33250
|
-
|
|
33251
|
-
{
|
|
33252
|
-
|
|
33253
|
-
|
|
33254
|
-
|
|
33255
|
-
|
|
33256
|
-
|
|
33257
|
-
|
|
33258
|
-
|
|
33259
|
-
|
|
33260
|
-
|
|
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
|
-
|
|
33305
|
-
|
|
33306
|
-
|
|
33307
|
-
|
|
33308
|
-
|
|
33309
|
-
|
|
33310
|
-
|
|
33311
|
-
|
|
33312
|
-
|
|
33313
|
-
|
|
33314
|
-
|
|
33315
|
-
|
|
33316
|
-
|
|
33317
|
-
|
|
33318
|
-
|
|
33319
|
-
|
|
33320
|
-
|
|
33321
|
-
|
|
33322
|
-
|
|
33323
|
-
|
|
33324
|
-
|
|
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
|
-
|
|
33328
|
-
|
|
33329
|
-
|
|
33330
|
-
|
|
33331
|
-
|
|
33332
|
-
|
|
33333
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
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 ===
|
|
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 ===
|
|
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:
|
|
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(
|
|
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);
|
|
@@ -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(
|
|
@@ -37632,7 +37650,7 @@ function SS({
|
|
|
37632
37650
|
},
|
|
37633
37651
|
children: [
|
|
37634
37652
|
/* @__PURE__ */ e(
|
|
37635
|
-
|
|
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(),
|
|
38046
|
-
|
|
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" &&
|
|
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: (
|
|
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((
|
|
39994
|
-
id: String(
|
|
39995
|
-
name: Lm[Tc] ?? String(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) ?? [],
|
|
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) =>
|
|
64501
|
-
onPop: () =>
|
|
64502
|
-
onClose: () =>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,
|
|
@@ -73136,7 +73154,7 @@ export {
|
|
|
73136
73154
|
je as useNivaroClient,
|
|
73137
73155
|
VF as useNivaroForm,
|
|
73138
73156
|
dh as useOnlineUsers,
|
|
73139
|
-
|
|
73157
|
+
wa as useOptionalNivaroClient,
|
|
73140
73158
|
bm as useOptionalRealtime,
|
|
73141
73159
|
BF as useOrderedLayout,
|
|
73142
73160
|
mm as useOverlayState,
|