@nivaro/react 0.2.41 → 0.2.42
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 +338 -300
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ var as = (e, n, r) => GI(e, typeof n != "symbol" ? n + "" : n, r);
|
|
|
4
4
|
import { jsx as t, jsxs as s, Fragment as Qe } from "react/jsx-runtime";
|
|
5
5
|
import { QueryClientContext as YI, QueryClient as XI, QueryClientProvider as ZI, useQueryClient as _t, useQuery as ue, useMutation as Xe, useInfiniteQuery as Z2, useQueries as Wr, keepPreviousData as jk } from "@tanstack/react-query";
|
|
6
6
|
import * as ta from "react";
|
|
7
|
-
import wc, { createContext as Ls, useContext as Ta, useState as S, useMemo as Se, useCallback as Ct, useSyncExternalStore as Zd, useEffect as $e, useRef as ke, Children as eK, useLayoutEffect as
|
|
7
|
+
import wc, { createContext as Ls, useContext as Ta, useState as S, useMemo as Se, useCallback as Ct, useSyncExternalStore as Zd, useEffect as $e, useRef as ke, Children as eK, useLayoutEffect as Ti, Fragment as Fa, useId as wr, memo as Hl, createElement as E4, useReducer as nE, cloneElement as tK, forwardRef as nK, useImperativeHandle as rK } from "react";
|
|
8
8
|
import * as rE from "lucide-react";
|
|
9
|
-
import { RefreshCw as Os, RotateCw as No, ChevronDown as Fn, ChevronRight as Or, ThumbsUp as e3, ThumbsDown as t3, Check as Ln, Brain as n3, X as on, Loader2 as Rt, FileText as Nc, Rows3 as Sf, ListChecks as $m, LayoutDashboard as aE, Paperclip as
|
|
9
|
+
import { RefreshCw as Os, RotateCw as No, ChevronDown as Fn, ChevronRight as Or, ThumbsUp as e3, ThumbsDown as t3, Check as Ln, Brain as n3, X as on, Loader2 as Rt, FileText as Nc, Rows3 as Sf, ListChecks as $m, LayoutDashboard as aE, Paperclip as Ni, Sparkles as Is, ExternalLink as Ks, Plus as ir, Square as Nx, Send as qc, LayoutGrid as R5, Bell as Ol, BellRing as _c, Clock as Ul, ChartColumn as aK, History as el, FlaskConical as M4, Activity as Pk, Gauge as r3, Users as Si, Lock as Ho, Pencil as ql, Trash2 as Yr, Siren as R4, Minus as th, Search as ma, ChevronsUpDown as Go, ArrowRight as Ll, KeyRound as _x, Braces as a3, CheckCircle2 as Cm, AlertCircle as As, MinusCircle as sK, Copy as Kl, Code2 as s3, GripVertical as qm, ArrowUpDown as sE, Maximize as lE, List as iE, Network as l3, ChevronsLeft as oE, ChevronsRight as dE, Pin as Ip, Inbox as Qb, ChevronUp as i3, CalendarDays as cE, Focus as uE, AlertTriangle as oa, Wand2 as nv, HelpCircle as Kf, ServerCrash as lK, Compass as iK, Ban as Ik, MailX as oK, MoreVertical as dK, MoreHorizontal as Uf, Clipboard as mE, Calendar as pE, Folder as cK, File as F5, Phone as Kk, MessageSquare as nh, Mail as Tm, UserCheck as hE, UserPlus as Uk, User as rv, Zap as su, Power as uK, Filter as zf, Sliders as mK, Settings as zk, RotateCcw as ji, Pause as Bk, Play as Fu, Info as Em, Flag as pK, Bookmark as fE, Heart as hK, Star as Sc, Unlock as fK, EyeOff as rh, Eye as Yo, Upload as Tc, Download as _i, Save as av, Edit2 as bK, Edit as xK, XCircle as gK, CheckCircle as yK, Share2 as vK, Link as bE, ArrowUpRight as o3, ArrowDown as xE, ArrowUp as gE, ArrowLeft as Du, Sigma as Wk, MessageSquareWarning as D5, SmilePlus as d3, Link2 as Ac, Unlink as kK, SquarePen as wK, PanelBottomOpen as NK, FileUp as sv, GripHorizontal as _K, MapPin as Hb, FileVideo as c3, FileAudio as SK, FileSpreadsheet as Qk, FileCode as $K, Split as F4, Undo2 as Uu, Bold as CK, Italic as qK, UnderlineIcon as TK, Strikethrough as AK, Heading1 as OK, Heading2 as LK, Heading3 as EK, ListOrdered as u3, Quote as m3, Code as MK, Link2Off as yE, FileSymlink as vE, SlidersHorizontal as Sx, Building2 as Hk, MessageCircle as p3, ChevronLeft as Vo, FileDiff as h3, GitBranch as Op, ShieldAlert as Vk, CircleHelp as kE, Workflow as wE, CalendarClock as Mm, Bot as NE, Layers as j5, ArrowRightLeft as D4, FileEdit as RK, ClipboardPlus as _E, Clock3 as SE, PencilLine as $E, Satellite as ng, LockOpen as j4, GitMerge as f3, CopyPlus as FK, GitCompareArrows as CE, ClipboardList as b3, GitFork as P5, Unplug as qE, TriangleAlert as DK, MonitorX as jK, CircleCheck as TE, MicOff as P4, Mic as PK, ArchiveX as IK, PanelTop as KK, AppWindow as UK, Monitor as zK, Film as x3, Hourglass as BK, VideoOff as I4, Captions as WK, MousePointerClick as Jk, MessageCircleQuestion as QK, Maximize2 as AE, PictureInPicture2 as OE, Video as g3, PlayCircle as Bf, Wrench as y3, UploadCloud as HK, CloudOff as VK, Minimize2 as JK, Waypoints as LE, BookOpen as GK, FileDown as K4, LifeBuoy as EE, Map as ME, Rows2 as RE, BellOff as Am, Megaphone as FE, Lightbulb as YK, Bug as XK, Shield as ZK, DollarSign as e9, Package as t9, Truck as n9, Briefcase as r9, Hash as $f, AlarmClock as tf, Settings2 as v3, AtSign as DE, Table2 as a9, Type as s9, PinOff as l9, ArchiveRestore as jE, Archive as Vb, LogOut as k3, MessageSquareReply as i9, NotebookPen as o9, CheckCheck as w3, Plane as d9, FilePlus2 as c9, UserRound as Gk, ScanSearch as u9, ListFilter as U4, FileBarChart as m9, ShieldCheck as Lp, BookUser as p9, MonitorSmartphone as h9, Flame as PE, Globe as f9, ArrowDownAZ as b9, ArrowUpAZ as x9, LogIn as g9, Footprints as y9, UserMinus as v9, BriefcaseBusiness as k9, CalendarRange as w9, Camera as Cf, AlignStartVertical as N9, AlignEndVertical as _9, MousePointer2 as S9, Crosshair as $9, Music as C9, Image as q9, CornerUpLeft as T9, CornerDownRight as A9, Keyboard as O9, AudioLines as L9, ZoomOut as E9, ZoomIn as M9, MessageSquareText as R9, MoveUpRight as F9, Scan as D9, Crop as j9, Scissors as P9, Redo2 as I9, Palette as K9, ListVideo as IE, Database as U9, ScrollText as z9, ArrowDownLeft as B9, AlertOctagon as W9, Plug as Q9, Timer as H9, UserX as V9, BarChart3 as KE, WifiOff as J9, Users2 as Jb, PlugZap as G9, Rows4 as Y9, Table as X9, StickyNote as Z9, TrendingUp as UE, TrendingDown as zE } from "lucide-react";
|
|
10
10
|
import { readItems as Lu, readMyScopes as BE, listNotificationSubscriptions as eU, deleteNotificationSubscription as tU, readOnlinePresence as nU, listImportTemplates as rU, setMyDelegate as aU, readUser as WE, readUserCard as sU, updateUser as z4, saveMyScopeDefaults as lU, markNotificationRead as QE, readUnreadNotificationCount as iU, markNotificationsRead as oU, markAllNotificationsRead as dU, readReportWidgetData as rg, listReportAlerts as cU, createReportAlert as uU, toggleReportAlert as mU, deleteReportAlert as pU, readReportAlertLog as hU, resolveReportAlert as fU, readReportFilterOptions as bU, executeCustomQuery as xU, saveReportFilterPreset as B4, listReportFilterPresets as gU, deleteReportFilterPreset as yU, readReport as vU, aiReportFilters as kU, endSessionRecording as I5, appendSessionRecordingEvents as N3, sessionRecordingEnabled as wU, startSessionRecording as ow } from "@nivaro/sdk";
|
|
11
11
|
import { toast as Me } from "sonner";
|
|
12
12
|
import { clsx as NU } from "clsx";
|
|
@@ -21,7 +21,7 @@ import * as Ql from "@radix-ui/react-dialog";
|
|
|
21
21
|
import * as qf from "@radix-ui/react-popover";
|
|
22
22
|
import * as K5 from "@radix-ui/react-switch";
|
|
23
23
|
import * as U5 from "@radix-ui/react-checkbox";
|
|
24
|
-
import * as
|
|
24
|
+
import * as $i from "@radix-ui/react-dropdown-menu";
|
|
25
25
|
import * as Tf from "@radix-ui/react-tooltip";
|
|
26
26
|
import * as JE from "@radix-ui/react-label";
|
|
27
27
|
import TU from "@tiptap/extension-link";
|
|
@@ -553,11 +553,11 @@ function NNe(e, n) {
|
|
|
553
553
|
return r.some((l) => String(l) === a);
|
|
554
554
|
}
|
|
555
555
|
const bz = Ls(null);
|
|
556
|
-
function
|
|
556
|
+
function Ai() {
|
|
557
557
|
return Ta(bz);
|
|
558
558
|
}
|
|
559
559
|
function F3() {
|
|
560
|
-
const e =
|
|
560
|
+
const e = Ai(), [n, r] = S(() => {
|
|
561
561
|
var a;
|
|
562
562
|
return ((a = e == null ? void 0 : e.status) == null ? void 0 : a.call(e)) ?? null;
|
|
563
563
|
});
|
|
@@ -628,7 +628,7 @@ function eC(e) {
|
|
|
628
628
|
};
|
|
629
629
|
}
|
|
630
630
|
function a1(e, n, r = {}) {
|
|
631
|
-
const a =
|
|
631
|
+
const a = Ai(), { userId: l } = Ta(Qf), i = ke(n);
|
|
632
632
|
i.current = n;
|
|
633
633
|
const o = ke(r);
|
|
634
634
|
o.current = r;
|
|
@@ -684,7 +684,7 @@ function gz(e, n, r, a = {}) {
|
|
|
684
684
|
);
|
|
685
685
|
}
|
|
686
686
|
function ii(e, n, r = {}) {
|
|
687
|
-
const a =
|
|
687
|
+
const a = Ai(), { userId: l } = Ta(Qf), i = ke(n);
|
|
688
688
|
i.current = n;
|
|
689
689
|
const o = ke(r);
|
|
690
690
|
o.current = r;
|
|
@@ -740,14 +740,14 @@ function tC(e, n, r, a, l = {}) {
|
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
742
|
function yz(e, n = !0) {
|
|
743
|
-
const r =
|
|
743
|
+
const r = Ai(), a = !!(r != null && r.joinWatch);
|
|
744
744
|
return $e(() => {
|
|
745
745
|
if (!(!n || !(r != null && r.joinWatch)))
|
|
746
746
|
return r.joinWatch(e);
|
|
747
747
|
}, [r, e, n]), a && n;
|
|
748
748
|
}
|
|
749
749
|
function hM() {
|
|
750
|
-
return
|
|
750
|
+
return Ai() != null;
|
|
751
751
|
}
|
|
752
752
|
function dw(e) {
|
|
753
753
|
const n = e.help_video;
|
|
@@ -4455,7 +4455,7 @@ function $W({
|
|
|
4455
4455
|
for (const ne of v)
|
|
4456
4456
|
V.push({
|
|
4457
4457
|
key: `doc:${ne.id}`,
|
|
4458
|
-
icon: /* @__PURE__ */ t(
|
|
4458
|
+
icon: /* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
4459
4459
|
label: `${ne.name}${ne.truncated ? " (long — first part)" : ""}`,
|
|
4460
4460
|
onRemove: () => g((he) => he.filter((Z) => Z.id !== ne.id))
|
|
4461
4461
|
});
|
|
@@ -4604,7 +4604,7 @@ function $W({
|
|
|
4604
4604
|
he ? "border-nvr-cyan bg-nvr-cyan/10 text-foreground" : "border-border text-muted-foreground hover:bg-muted"
|
|
4605
4605
|
),
|
|
4606
4606
|
children: [
|
|
4607
|
-
/* @__PURE__ */ t(
|
|
4607
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
4608
4608
|
/* @__PURE__ */ t("span", { className: "truncate", children: ne.name })
|
|
4609
4609
|
]
|
|
4610
4610
|
},
|
|
@@ -4625,7 +4625,7 @@ function $W({
|
|
|
4625
4625
|
"aria-label": "Attach a file",
|
|
4626
4626
|
"data-tip": "Attach a PDF, Word or Excel file",
|
|
4627
4627
|
className: "inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground disabled:opacity-50",
|
|
4628
|
-
children: /* @__PURE__ */ t(
|
|
4628
|
+
children: /* @__PURE__ */ t(Ni, { className: "h-4 w-4" })
|
|
4629
4629
|
}
|
|
4630
4630
|
),
|
|
4631
4631
|
/* @__PURE__ */ t(
|
|
@@ -6064,7 +6064,7 @@ function BNe({
|
|
|
6064
6064
|
] }) }),
|
|
6065
6065
|
/* @__PURE__ */ t("td", { className: F(Dr, "capitalize text-slate-500 dark:text-slate-400"), children: Le.check_frequency }),
|
|
6066
6066
|
/* @__PURE__ */ t("td", { className: Dr, children: Le.is_shared ? /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1 text-[11.5px] text-slate-500 dark:text-slate-400", children: [
|
|
6067
|
-
/* @__PURE__ */ t(
|
|
6067
|
+
/* @__PURE__ */ t(Si, { className: "h-3 w-3" }),
|
|
6068
6068
|
" Team"
|
|
6069
6069
|
] }) : /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1 text-[11.5px] text-slate-400 dark:text-slate-500", children: [
|
|
6070
6070
|
/* @__PURE__ */ t(Ho, { className: "h-3 w-3" }),
|
|
@@ -6979,7 +6979,7 @@ function tR({
|
|
|
6979
6979
|
);
|
|
6980
6980
|
}
|
|
6981
6981
|
function Yf(e, n, r = {}) {
|
|
6982
|
-
const a =
|
|
6982
|
+
const a = Ai(), l = r.enabled !== !1 && !!e;
|
|
6983
6983
|
$e(() => {
|
|
6984
6984
|
if (!(!a || !l || !e))
|
|
6985
6985
|
return a.emit("ops:join", { topic: e }), () => a.emit("ops:leave", { topic: e });
|
|
@@ -8615,7 +8615,7 @@ function fs({
|
|
|
8615
8615
|
}
|
|
8616
8616
|
);
|
|
8617
8617
|
}
|
|
8618
|
-
function
|
|
8618
|
+
function Ci({
|
|
8619
8619
|
className: e,
|
|
8620
8620
|
...n
|
|
8621
8621
|
}) {
|
|
@@ -13729,7 +13729,7 @@ function pS({
|
|
|
13729
13729
|
return Ze.observe(xe), () => Ze.disconnect();
|
|
13730
13730
|
}, [Ae]);
|
|
13731
13731
|
const [et, Ee] = S({});
|
|
13732
|
-
|
|
13732
|
+
Ti(() => {
|
|
13733
13733
|
var Ue;
|
|
13734
13734
|
if (!he || !E) return;
|
|
13735
13735
|
const xe = Z.filter((Te) => E[Te.key] === "left"), De = Z.filter((Te) => E[Te.key] === "right"), Ze = (Te) => {
|
|
@@ -14176,7 +14176,7 @@ function fF({
|
|
|
14176
14176
|
className: l
|
|
14177
14177
|
}) {
|
|
14178
14178
|
const i = Oe(), [o, d] = S(!1), c = ke(null), [u, m] = S(null), [p, f] = S(null), h = o && !!r && r.status !== "none";
|
|
14179
|
-
|
|
14179
|
+
Ti(() => {
|
|
14180
14180
|
if (!h) {
|
|
14181
14181
|
m(null);
|
|
14182
14182
|
return;
|
|
@@ -14798,7 +14798,7 @@ function Wl({
|
|
|
14798
14798
|
return document.addEventListener("mousedown", be), () => document.removeEventListener("mousedown", be);
|
|
14799
14799
|
}, [x]);
|
|
14800
14800
|
const [_, C] = S(null), [q, A] = S(null);
|
|
14801
|
-
|
|
14801
|
+
Ti(() => {
|
|
14802
14802
|
if (!x) {
|
|
14803
14803
|
C(null);
|
|
14804
14804
|
return;
|
|
@@ -15567,7 +15567,7 @@ function kF({
|
|
|
15567
15567
|
"Reading ",
|
|
15568
15568
|
$
|
|
15569
15569
|
] }),
|
|
15570
|
-
/* @__PURE__ */ s(
|
|
15570
|
+
/* @__PURE__ */ s(Ci, { children: [
|
|
15571
15571
|
VC[N],
|
|
15572
15572
|
" Usually under a minute."
|
|
15573
15573
|
] })
|
|
@@ -15594,7 +15594,7 @@ function kF({
|
|
|
15594
15594
|
children: C && /* @__PURE__ */ s(Qe, { children: [
|
|
15595
15595
|
/* @__PURE__ */ s(hs, { className: "border-b border-slate-200 px-5 py-4 dark:border-border", children: [
|
|
15596
15596
|
/* @__PURE__ */ t(fs, { className: "text-[15px]", children: "What the document says" }),
|
|
15597
|
-
/* @__PURE__ */ s(
|
|
15597
|
+
/* @__PURE__ */ s(Ci, { className: "text-[12.5px]", children: [
|
|
15598
15598
|
C.summary || `Read from ${C.document.name}.`,
|
|
15599
15599
|
" ",
|
|
15600
15600
|
/* @__PURE__ */ s("span", { className: "text-slate-400", children: [
|
|
@@ -16711,7 +16711,7 @@ function Rm() {
|
|
|
16711
16711
|
return window.addEventListener("mouseover", i), window.addEventListener("scroll", o, !0), () => {
|
|
16712
16712
|
window.removeEventListener("mouseover", i), window.removeEventListener("scroll", o, !0);
|
|
16713
16713
|
};
|
|
16714
|
-
}, [r]),
|
|
16714
|
+
}, [r]), Ti(() => {
|
|
16715
16715
|
if (!e) return;
|
|
16716
16716
|
const i = l.current;
|
|
16717
16717
|
if (!i) return;
|
|
@@ -16733,7 +16733,7 @@ function Rm() {
|
|
|
16733
16733
|
}
|
|
16734
16734
|
function yJ(e) {
|
|
16735
16735
|
const n = ke(null);
|
|
16736
|
-
return
|
|
16736
|
+
return Ti(() => {
|
|
16737
16737
|
const r = n.current;
|
|
16738
16738
|
if (!r) return;
|
|
16739
16739
|
const a = () => {
|
|
@@ -17483,7 +17483,7 @@ function Fm(e) {
|
|
|
17483
17483
|
n.invalidateQueries({ queryKey: [vS, e] }), n.invalidateQueries({ queryKey: ["nvr-profile-user"] }), n.invalidateQueries({ queryKey: ["nvr-profile-card"] }), n.invalidateQueries({ queryKey: ["user", e] }), n.invalidateQueries({ queryKey: ["users"] }), n.invalidateQueries({ queryKey: ["user-avatar", e] }), n.invalidateQueries({ queryKey: ["user-card", e] });
|
|
17484
17484
|
};
|
|
17485
17485
|
}
|
|
17486
|
-
function
|
|
17486
|
+
function qi(e, n) {
|
|
17487
17487
|
var a, l, i;
|
|
17488
17488
|
const r = e;
|
|
17489
17489
|
return ((l = (a = r == null ? void 0 : r.response) == null ? void 0 : a.data) == null ? void 0 : l.error) ?? ((i = r == null ? void 0 : r.response) == null ? void 0 : i.error) ?? (r == null ? void 0 : r.message) ?? n;
|
|
@@ -17535,8 +17535,8 @@ function OJ(e, n) {
|
|
|
17535
17535
|
minutes: l.idle_minutes ?? null
|
|
17536
17536
|
};
|
|
17537
17537
|
}
|
|
17538
|
-
const Qp =
|
|
17539
|
-
|
|
17538
|
+
const Qp = $i.Root, Hp = $i.Trigger, LJ = ta.forwardRef(({ className: e, inset: n, children: r, ...a }, l) => /* @__PURE__ */ s(
|
|
17539
|
+
$i.SubTrigger,
|
|
17540
17540
|
{
|
|
17541
17541
|
ref: l,
|
|
17542
17542
|
className: F(
|
|
@@ -17551,9 +17551,9 @@ const Qp = Si.Root, Hp = Si.Trigger, LJ = ta.forwardRef(({ className: e, inset:
|
|
|
17551
17551
|
]
|
|
17552
17552
|
}
|
|
17553
17553
|
));
|
|
17554
|
-
LJ.displayName =
|
|
17554
|
+
LJ.displayName = $i.SubTrigger.displayName;
|
|
17555
17555
|
const EJ = ta.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ t(
|
|
17556
|
-
|
|
17556
|
+
$i.SubContent,
|
|
17557
17557
|
{
|
|
17558
17558
|
ref: r,
|
|
17559
17559
|
className: F(
|
|
@@ -17563,9 +17563,9 @@ const EJ = ta.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ t(
|
|
|
17563
17563
|
...n
|
|
17564
17564
|
}
|
|
17565
17565
|
));
|
|
17566
|
-
EJ.displayName =
|
|
17567
|
-
const Om = ta.forwardRef(({ className: e, sideOffset: n = 4, ...r }, a) => /* @__PURE__ */ t(
|
|
17568
|
-
|
|
17566
|
+
EJ.displayName = $i.SubContent.displayName;
|
|
17567
|
+
const Om = ta.forwardRef(({ className: e, sideOffset: n = 4, ...r }, a) => /* @__PURE__ */ t($i.Portal, { children: /* @__PURE__ */ t(
|
|
17568
|
+
$i.Content,
|
|
17569
17569
|
{
|
|
17570
17570
|
ref: a,
|
|
17571
17571
|
sideOffset: n,
|
|
@@ -17576,9 +17576,9 @@ const Om = ta.forwardRef(({ className: e, sideOffset: n = 4, ...r }, a) => /* @_
|
|
|
17576
17576
|
...r
|
|
17577
17577
|
}
|
|
17578
17578
|
) }));
|
|
17579
|
-
Om.displayName =
|
|
17579
|
+
Om.displayName = $i.Content.displayName;
|
|
17580
17580
|
const Nd = ta.forwardRef(({ className: e, inset: n, ...r }, a) => /* @__PURE__ */ t(
|
|
17581
|
-
|
|
17581
|
+
$i.Item,
|
|
17582
17582
|
{
|
|
17583
17583
|
ref: a,
|
|
17584
17584
|
className: F(
|
|
@@ -17589,9 +17589,9 @@ const Nd = ta.forwardRef(({ className: e, inset: n, ...r }, a) => /* @__PURE__ *
|
|
|
17589
17589
|
...r
|
|
17590
17590
|
}
|
|
17591
17591
|
));
|
|
17592
|
-
Nd.displayName =
|
|
17592
|
+
Nd.displayName = $i.Item.displayName;
|
|
17593
17593
|
const MJ = ta.forwardRef(({ className: e, children: n, checked: r, ...a }, l) => /* @__PURE__ */ s(
|
|
17594
|
-
|
|
17594
|
+
$i.CheckboxItem,
|
|
17595
17595
|
{
|
|
17596
17596
|
ref: l,
|
|
17597
17597
|
className: F(
|
|
@@ -17601,30 +17601,30 @@ const MJ = ta.forwardRef(({ className: e, children: n, checked: r, ...a }, l) =>
|
|
|
17601
17601
|
checked: r,
|
|
17602
17602
|
...a,
|
|
17603
17603
|
children: [
|
|
17604
|
-
/* @__PURE__ */ t("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t(
|
|
17604
|
+
/* @__PURE__ */ t("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ t($i.ItemIndicator, { children: /* @__PURE__ */ t(Ln, { className: "h-4 w-4" }) }) }),
|
|
17605
17605
|
n
|
|
17606
17606
|
]
|
|
17607
17607
|
}
|
|
17608
17608
|
));
|
|
17609
|
-
MJ.displayName =
|
|
17609
|
+
MJ.displayName = $i.CheckboxItem.displayName;
|
|
17610
17610
|
const RJ = ta.forwardRef(({ className: e, inset: n, ...r }, a) => /* @__PURE__ */ t(
|
|
17611
|
-
|
|
17611
|
+
$i.Label,
|
|
17612
17612
|
{
|
|
17613
17613
|
ref: a,
|
|
17614
17614
|
className: F("px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
17615
17615
|
...r
|
|
17616
17616
|
}
|
|
17617
17617
|
));
|
|
17618
|
-
RJ.displayName =
|
|
17618
|
+
RJ.displayName = $i.Label.displayName;
|
|
17619
17619
|
const FJ = ta.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ t(
|
|
17620
|
-
|
|
17620
|
+
$i.Separator,
|
|
17621
17621
|
{
|
|
17622
17622
|
ref: r,
|
|
17623
17623
|
className: F("-mx-1 my-1 h-px bg-muted", e),
|
|
17624
17624
|
...n
|
|
17625
17625
|
}
|
|
17626
17626
|
));
|
|
17627
|
-
FJ.displayName =
|
|
17627
|
+
FJ.displayName = $i.Separator.displayName;
|
|
17628
17628
|
const DJ = "shrink-0 border-y border-slate-200/90 bg-white dark:border-border dark:bg-card", jJ = "flex items-stretch overflow-hidden pr-4 pl-[29px]", PJ = "flex min-w-0 flex-1 flex-wrap content-start items-stretch overflow-hidden", CF = "[[data-header-dense]_&]:min-h-[34px] [[data-header-dense]_&]:flex-row [[data-header-dense]_&]:items-center [[data-header-dense]_&]:gap-x-2 [[data-header-dense]_&]:pr-3 [[data-header-dense]_&]:pl-4 [[data-header-dense]_&]:pt-[7px] [[data-header-dense]_&]:pb-[7px] [[data-header-dense]_&]:max-w-none", qF = "[[data-header-list]_&]:h-8 [[data-header-list]_&]:min-h-0 [[data-header-list]_&]:w-full [[data-header-list]_&]:max-w-none [[data-header-list]_&]:flex-row [[data-header-list]_&]:items-center [[data-header-list]_&]:justify-between [[data-header-list]_&]:gap-x-6 [[data-header-list]_&]:rounded-sm [[data-header-list]_&]:px-2 [[data-header-list]_&]:py-0 [[data-header-list]_&]:shadow-none", IJ = "[&[data-header-folded]]:pointer-events-none [&[data-header-folded]]:invisible [&[data-header-folded]]:absolute", Ly = `group relative flex min-h-[52px] min-w-[96px] max-w-[264px] flex-none flex-col justify-start gap-1 px-4 pt-[9px] pb-2 shadow-[-1px_1px_0_0_#e2e8f0] data-[empty=true]:min-w-0 data-[empty=true]:px-3 data-[empty=true]:opacity-60 dark:shadow-[-1px_1px_0_0_hsl(var(--border))] ${CF} ${qF} ${IJ}`, kS = "truncate text-[13px] font-semibold leading-tight tabular-nums tracking-[-0.01em] text-slate-900 dark:text-slate-100", Ov = "truncate text-[10px] font-semibold uppercase leading-none tracking-[0.07em] text-slate-400 dark:text-slate-500 [[data-header-dense]_&]:shrink-0 [[data-header-list]_&]:shrink-0", TF = "truncate text-[13px] font-semibold leading-tight tabular-nums text-slate-900 dark:text-slate-100", KJ = "flex shrink-0 items-stretch self-stretch max-lg:[&[data-header-dock]]:hidden shadow-[-1px_0_0_0_#e2e8f0] dark:shadow-[-1px_0_0_0_hsl(var(--border))]", UJ = "ml-auto hidden items-center self-center py-1 pr-0 pl-4 max-lg:[&[data-header-tail]]:flex", zJ = "flex min-h-[40px] items-center gap-3 py-2 pr-4 pl-5", BJ = "text-[11px] font-medium leading-none tabular-nums text-slate-400 dark:text-slate-500 [[data-header-dense]_&]:hidden", Lv = "flex h-5 items-end gap-x-1.5 [[data-header-dense]_&]:h-auto [[data-header-dense]_&]:items-center [[data-header-list]_&]:h-auto [[data-header-list]_&]:items-baseline [[data-header-list]_&]:justify-end [[data-header-list]_&]:text-right";
|
|
17629
17629
|
function wS(e) {
|
|
17630
17630
|
const n = Array.from(e.children).filter(
|
|
@@ -18562,7 +18562,7 @@ const Nh = {
|
|
|
18562
18562
|
Edit2: bK,
|
|
18563
18563
|
Trash2: Yr,
|
|
18564
18564
|
Save: av,
|
|
18565
|
-
Download:
|
|
18565
|
+
Download: _i,
|
|
18566
18566
|
Upload: Tc,
|
|
18567
18567
|
Send: qc,
|
|
18568
18568
|
Eye: Yo,
|
|
@@ -18589,7 +18589,7 @@ const Nh = {
|
|
|
18589
18589
|
Zap: su,
|
|
18590
18590
|
Activity: Pk,
|
|
18591
18591
|
User: rv,
|
|
18592
|
-
Users:
|
|
18592
|
+
Users: Si,
|
|
18593
18593
|
UserPlus: Uk,
|
|
18594
18594
|
UserCheck: hE,
|
|
18595
18595
|
Mail: Tm,
|
|
@@ -18599,7 +18599,7 @@ const Nh = {
|
|
|
18599
18599
|
FileText: Nc,
|
|
18600
18600
|
File: F5,
|
|
18601
18601
|
Folder: cK,
|
|
18602
|
-
Paperclip:
|
|
18602
|
+
Paperclip: Ni,
|
|
18603
18603
|
Calendar: pE,
|
|
18604
18604
|
Clock: Ul,
|
|
18605
18605
|
Copy: Kl,
|
|
@@ -21296,7 +21296,7 @@ function eY({
|
|
|
21296
21296
|
" selected ",
|
|
21297
21297
|
g
|
|
21298
21298
|
] }),
|
|
21299
|
-
/* @__PURE__ */ t(
|
|
21299
|
+
/* @__PURE__ */ t(Ci, { children: "Only the fields you change here are written. Fields left as prefilled keep each line's own value." })
|
|
21300
21300
|
] }),
|
|
21301
21301
|
/* @__PURE__ */ t(Bl, { className: "max-h-[60vh] overflow-y-auto", children: r.length === 0 ? /* @__PURE__ */ t("p", { className: "py-6 text-center text-[12px] text-slate-400", children: "This table has no columns that can be edited in bulk." }) : /* @__PURE__ */ t(
|
|
21302
21302
|
"div",
|
|
@@ -23936,7 +23936,7 @@ function OY({
|
|
|
23936
23936
|
editorMode: G
|
|
23937
23937
|
}) {
|
|
23938
23938
|
var Fo, Bm;
|
|
23939
|
-
const U = Oe(), V = iu(), K = Zo(), Y = _t(), ae = C1(), de = $S(), ne = OF(), he = MF()[W ?? ""] ?? [], Z = r === "new", se = zu(), fe = lM(), ve =
|
|
23939
|
+
const U = Oe(), V = iu(), K = Zo(), Y = _t(), ae = C1(), de = $S(), ne = OF(), he = MF()[W ?? ""] ?? [], Z = r === "new", se = zu(), fe = lM(), ve = Ai(), Ae = `nvr_grid_editor_${e}_${W ?? n}`, [Re, _e] = S(() => {
|
|
23940
23940
|
if (typeof localStorage > "u") return null;
|
|
23941
23941
|
try {
|
|
23942
23942
|
const z = localStorage.getItem(Ae);
|
|
@@ -24675,7 +24675,7 @@ function OY({
|
|
|
24675
24675
|
Ce >= 0 && Ce < z.length && (z[Ce] = ce);
|
|
24676
24676
|
}
|
|
24677
24677
|
return z;
|
|
24678
|
-
}, [Mn, os, We]),
|
|
24678
|
+
}, [Mn, os, We]), Oi = Se(() => {
|
|
24679
24679
|
if (Hr === "original") return gs;
|
|
24680
24680
|
const z = he.find((ce) => ce.addendumId === Hr);
|
|
24681
24681
|
return z ? z.rows.map(
|
|
@@ -24684,20 +24684,20 @@ function OY({
|
|
|
24684
24684
|
z.baseRows ? ce : void 0
|
|
24685
24685
|
)
|
|
24686
24686
|
) : gs;
|
|
24687
|
-
}, [Hr, he, gs]), ao = fn.length >= Iw,
|
|
24687
|
+
}, [Hr, he, gs]), ao = fn.length >= Iw, Li = se == null ? void 0 : se.draft, _s = Ct(
|
|
24688
24688
|
(z) => {
|
|
24689
24689
|
if (z.startsWith("$parent."))
|
|
24690
|
-
return (
|
|
24690
|
+
return (Li == null ? void 0 : Li[z.slice(8)]) ?? 0;
|
|
24691
24691
|
if (z.startsWith("$sum.")) {
|
|
24692
24692
|
const ce = z.slice(5);
|
|
24693
|
-
return
|
|
24693
|
+
return Oi.reduce((ie, Ce) => ie + (Number(Ce[ce]) || 0), 0);
|
|
24694
24694
|
}
|
|
24695
|
-
return z === "$count" ?
|
|
24695
|
+
return z === "$count" ? Oi.length : Li == null ? void 0 : Li[z];
|
|
24696
24696
|
},
|
|
24697
|
-
[
|
|
24697
|
+
[Li, Oi]
|
|
24698
24698
|
), wl = Se(() => R != null && R.length ? R.map((z) => ({ ...z, result: $l(z.value, _s) })) : null, [R, _s]), so = Se(
|
|
24699
|
-
() => M != null && M.endpoint ? BF(M.endpoint,
|
|
24700
|
-
[M == null ? void 0 : M.endpoint,
|
|
24699
|
+
() => M != null && M.endpoint ? BF(M.endpoint, Li) : null,
|
|
24700
|
+
[M == null ? void 0 : M.endpoint, Li]
|
|
24701
24701
|
), $d = WF({
|
|
24702
24702
|
client: U,
|
|
24703
24703
|
endpoint: so,
|
|
@@ -24853,9 +24853,9 @@ function OY({
|
|
|
24853
24853
|
Wi(e, n, null);
|
|
24854
24854
|
return;
|
|
24855
24855
|
}
|
|
24856
|
-
Wi(e, n,
|
|
24856
|
+
Wi(e, n, Oi);
|
|
24857
24857
|
}
|
|
24858
|
-
}, [Wi, e, n,
|
|
24858
|
+
}, [Wi, e, n, Oi, ao, On]);
|
|
24859
24859
|
const ou = ke(() => {
|
|
24860
24860
|
});
|
|
24861
24861
|
ou.current = () => Wi == null ? void 0 : Wi(e, n, null), $e(() => () => ou.current(), []);
|
|
@@ -26339,9 +26339,9 @@ function OY({
|
|
|
26339
26339
|
Pn(!1);
|
|
26340
26340
|
}
|
|
26341
26341
|
}
|
|
26342
|
-
const [mt, Nt] = S(/* @__PURE__ */ new Set()), [Ut, an] = S(null), [Hn, Vn] = S(null), [$r, Ur] = S(!1), [Mr, br] = S(1), [Wn, zt] = S(!1), [pi, Fs] = S(!1), [ol,
|
|
26342
|
+
const [mt, Nt] = S(/* @__PURE__ */ new Set()), [Ut, an] = S(null), [Hn, Vn] = S(null), [$r, Ur] = S(!1), [Mr, br] = S(1), [Wn, zt] = S(!1), [pi, Fs] = S(!1), [ol, Ei] = S({}), [dl, Mi] = S(!1), [Ri, Hi] = S(!1), [Gn, ti] = S("empty-only"), [_l, Vr] = S(null), [aa, Jr] = S(null), [Va, hi] = S({}), [dc, cc] = S(!1);
|
|
26343
26343
|
function l0(z, ce) {
|
|
26344
|
-
|
|
26344
|
+
Ei((ie) => ({ ...ie, [z]: ce }));
|
|
26345
26345
|
}
|
|
26346
26346
|
async function Yx() {
|
|
26347
26347
|
if (Object.keys(Va).some(
|
|
@@ -26365,7 +26365,7 @@ function OY({
|
|
|
26365
26365
|
}
|
|
26366
26366
|
In.length && ae && In.forEach(
|
|
26367
26367
|
(ce, ie) => ae.updateRow(e, n, ie, { ...ce, ...Va })
|
|
26368
|
-
),
|
|
26368
|
+
), Mi(!1), hi({});
|
|
26369
26369
|
} catch {
|
|
26370
26370
|
} finally {
|
|
26371
26371
|
cc(!1);
|
|
@@ -27455,7 +27455,7 @@ function OY({
|
|
|
27455
27455
|
"button",
|
|
27456
27456
|
{
|
|
27457
27457
|
type: "button",
|
|
27458
|
-
onClick: () =>
|
|
27458
|
+
onClick: () => Mi((z) => !z),
|
|
27459
27459
|
className: F(
|
|
27460
27460
|
"h-6 px-2.5 rounded border transition-colors",
|
|
27461
27461
|
dl ? "border-amber-400 bg-amber-50 text-amber-700 dark:border-amber-600 dark:bg-amber-950/30 dark:text-amber-300" : "border-slate-200 text-slate-600 hover:border-slate-400 hover:text-slate-800"
|
|
@@ -27481,7 +27481,7 @@ function OY({
|
|
|
27481
27481
|
},
|
|
27482
27482
|
className: F(
|
|
27483
27483
|
"h-6 px-2.5 rounded border transition-colors",
|
|
27484
|
-
|
|
27484
|
+
Ri ? "border-nvr-cyan bg-nvr-cyan/10 text-nvr-cyan" : "border-slate-200 text-slate-600 hover:border-slate-400 hover:text-slate-800"
|
|
27485
27485
|
),
|
|
27486
27486
|
"data-tip": "Re-run this grid's auto-fill rules over every line, saved or not yet saved",
|
|
27487
27487
|
children: "re-run rules…"
|
|
@@ -27615,7 +27615,7 @@ function OY({
|
|
|
27615
27615
|
)
|
|
27616
27616
|
] })
|
|
27617
27617
|
] }),
|
|
27618
|
-
|
|
27618
|
+
Ri && !!(f != null && f.length) && /* @__PURE__ */ s("div", { className: "rounded-lg border border-nvr-cyan/40 bg-nvr-cyan/5 p-3 space-y-2 dark:bg-nvr-cyan/5", children: [
|
|
27619
27619
|
/* @__PURE__ */ s("p", { className: "text-[11px] font-medium text-slate-700 dark:text-slate-200", children: [
|
|
27620
27620
|
"Re-run rules on ",
|
|
27621
27621
|
Mn.length + In.length,
|
|
@@ -32762,7 +32762,7 @@ function O1({
|
|
|
32762
32762
|
href: `${e.url}?download=1`,
|
|
32763
32763
|
className: "inline-flex items-center gap-1.5 rounded-md bg-nvr-cyan px-3 py-1.5 text-[12.5px] font-medium text-white hover:brightness-110",
|
|
32764
32764
|
children: [
|
|
32765
|
-
/* @__PURE__ */ t(
|
|
32765
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" }),
|
|
32766
32766
|
" Download"
|
|
32767
32767
|
]
|
|
32768
32768
|
}
|
|
@@ -32794,7 +32794,7 @@ function O1({
|
|
|
32794
32794
|
href: `${e.url}?download=1`,
|
|
32795
32795
|
title: "Download",
|
|
32796
32796
|
className: "rounded p-1.5 text-white/80 hover:bg-white/10 hover:text-white",
|
|
32797
|
-
children: /* @__PURE__ */ t(
|
|
32797
|
+
children: /* @__PURE__ */ t(_i, { className: "h-4 w-4" })
|
|
32798
32798
|
}
|
|
32799
32799
|
),
|
|
32800
32800
|
/* @__PURE__ */ t(
|
|
@@ -33262,7 +33262,7 @@ function dX({
|
|
|
33262
33262
|
href: `${$(w)}?download=1`,
|
|
33263
33263
|
title: "Download",
|
|
33264
33264
|
className: "shrink-0 text-slate-400 hover:text-nvr-cyan p-0.5",
|
|
33265
|
-
children: /* @__PURE__ */ t(
|
|
33265
|
+
children: /* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" })
|
|
33266
33266
|
}
|
|
33267
33267
|
),
|
|
33268
33268
|
!r && /* @__PURE__ */ s("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
@@ -33576,7 +33576,7 @@ function bD({
|
|
|
33576
33576
|
href: `${O(ae)}?download=1`,
|
|
33577
33577
|
title: "Download",
|
|
33578
33578
|
className: "shrink-0 text-slate-400 hover:text-nvr-cyan p-0.5",
|
|
33579
|
-
children: /* @__PURE__ */ t(
|
|
33579
|
+
children: /* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" })
|
|
33580
33580
|
}
|
|
33581
33581
|
),
|
|
33582
33582
|
!a && /* @__PURE__ */ t(
|
|
@@ -41579,7 +41579,7 @@ function SZ({
|
|
|
41579
41579
|
{
|
|
41580
41580
|
className: "inline-flex max-w-[240px] items-center gap-1 rounded border border-slate-200 bg-slate-50 px-2 py-1 text-[11px] text-slate-700 dark:border-border dark:bg-muted dark:text-slate-200",
|
|
41581
41581
|
children: [
|
|
41582
|
-
/* @__PURE__ */ t(
|
|
41582
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3 shrink-0 text-slate-400" }),
|
|
41583
41583
|
/* @__PURE__ */ t("span", { className: "truncate", children: W.name }),
|
|
41584
41584
|
/* @__PURE__ */ t(
|
|
41585
41585
|
"button",
|
|
@@ -41751,7 +41751,7 @@ function CZ({ ids: e }) {
|
|
|
41751
41751
|
children: "missing"
|
|
41752
41752
|
}
|
|
41753
41753
|
),
|
|
41754
|
-
/* @__PURE__ */ t(
|
|
41754
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3 shrink-0 text-slate-400" }),
|
|
41755
41755
|
/* @__PURE__ */ t("span", { className: "max-w-[320px] truncate", children: o.filename ?? `File ${o.id.slice(0, 8)}…` })
|
|
41756
41756
|
]
|
|
41757
41757
|
},
|
|
@@ -42553,7 +42553,7 @@ function MD(e, n, r) {
|
|
|
42553
42553
|
), ED(l, i), OD(l);
|
|
42554
42554
|
}
|
|
42555
42555
|
function RD(e, n, r) {
|
|
42556
|
-
const a =
|
|
42556
|
+
const a = Ai(), l = n == null ? "" : String(n);
|
|
42557
42557
|
return Ct(
|
|
42558
42558
|
(i) => {
|
|
42559
42559
|
if (!e || !l || l === "new") return;
|
|
@@ -42575,7 +42575,7 @@ function FD(e, n, r, a) {
|
|
|
42575
42575
|
}, [a, l]);
|
|
42576
42576
|
}
|
|
42577
42577
|
function EZ(e, n) {
|
|
42578
|
-
const r =
|
|
42578
|
+
const r = Ai(), a = LD(), l = n || a, [i, o] = S([]), [d, c] = S(() => /* @__PURE__ */ new Map()), u = ke(0);
|
|
42579
42579
|
$e(() => {
|
|
42580
42580
|
if (o([]), c(/* @__PURE__ */ new Map()), !(!r || !e))
|
|
42581
42581
|
return r.emit("ops:join", { topic: e }), () => r.emit("ops:leave", { topic: e });
|
|
@@ -42873,7 +42873,7 @@ function DZ({
|
|
|
42873
42873
|
"data-partner-deps-download": "openapi",
|
|
42874
42874
|
className: "inline-flex h-7 items-center gap-1 rounded-md border border-slate-200 px-2 text-[11px] font-medium text-slate-700 hover:bg-muted disabled:opacity-50 dark:border-border dark:text-slate-200",
|
|
42875
42875
|
children: [
|
|
42876
|
-
/* @__PURE__ */ t(
|
|
42876
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" }),
|
|
42877
42877
|
" OpenAPI subset"
|
|
42878
42878
|
]
|
|
42879
42879
|
}
|
|
@@ -42888,7 +42888,7 @@ function DZ({
|
|
|
42888
42888
|
"data-tip": y && y.operations.length === 0 ? "No GraphQL calls in the window" : "",
|
|
42889
42889
|
className: "inline-flex h-7 items-center gap-1 rounded-md border border-slate-200 px-2 text-[11px] font-medium text-slate-700 hover:bg-muted disabled:opacity-50 dark:border-border dark:text-slate-200",
|
|
42890
42890
|
children: [
|
|
42891
|
-
/* @__PURE__ */ t(
|
|
42891
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" }),
|
|
42892
42892
|
" GraphQL SDL"
|
|
42893
42893
|
]
|
|
42894
42894
|
}
|
|
@@ -47073,7 +47073,7 @@ function lte({
|
|
|
47073
47073
|
onClick: () => o((m) => !m),
|
|
47074
47074
|
className: "flex w-full items-center gap-2 px-4 py-2.5",
|
|
47075
47075
|
children: [
|
|
47076
|
-
/* @__PURE__ */ t(
|
|
47076
|
+
/* @__PURE__ */ t(Si, { className: "h-3.5 w-3.5 shrink-0 text-slate-400" }),
|
|
47077
47077
|
/* @__PURE__ */ t("span", { className: "text-[12px] font-semibold text-slate-500", children: r || "Owners" }),
|
|
47078
47078
|
!i && c.length > 0 && /* @__PURE__ */ t("span", { className: "ml-1 text-[11px] text-slate-400", children: c.length }),
|
|
47079
47079
|
/* @__PURE__ */ t(
|
|
@@ -48940,7 +48940,7 @@ function ij(e, n, r) {
|
|
|
48940
48940
|
}, [r, e, n, T, a, A, i]), lj(i, "lock-released", e, n, () => {
|
|
48941
48941
|
r && q.current && T();
|
|
48942
48942
|
});
|
|
48943
|
-
const O =
|
|
48943
|
+
const O = Ai(), [R, M] = S(!1), j = Ct(async () => {
|
|
48944
48944
|
if (!(!e || !n)) {
|
|
48945
48945
|
M(!0);
|
|
48946
48946
|
try {
|
|
@@ -50146,7 +50146,7 @@ function Yte({
|
|
|
50146
50146
|
{
|
|
50147
50147
|
className: "flex items-center gap-1.5 rounded border border-slate-200 px-2 py-1 text-[12px] text-slate-700 dark:border-border dark:text-slate-200",
|
|
50148
50148
|
children: [
|
|
50149
|
-
/* @__PURE__ */ t(
|
|
50149
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3 shrink-0 text-slate-400" }),
|
|
50150
50150
|
/* @__PURE__ */ t("span", { className: "min-w-0 flex-1 truncate", children: f(b) }),
|
|
50151
50151
|
/* @__PURE__ */ t(
|
|
50152
50152
|
"button",
|
|
@@ -50187,7 +50187,7 @@ function Yte({
|
|
|
50187
50187
|
className: "h-8 gap-1.5 text-[12px]",
|
|
50188
50188
|
"data-requirement-upload": !0,
|
|
50189
50189
|
children: [
|
|
50190
|
-
c ? /* @__PURE__ */ t(Rt, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(
|
|
50190
|
+
c ? /* @__PURE__ */ t(Rt, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Ni, { className: "h-3.5 w-3.5" }),
|
|
50191
50191
|
c ? "Uploading…" : e ? "Add files" : "Upload a file"
|
|
50192
50192
|
]
|
|
50193
50193
|
}
|
|
@@ -50202,7 +50202,7 @@ function uj({
|
|
|
50202
50202
|
children: r
|
|
50203
50203
|
}) {
|
|
50204
50204
|
const a = e.closest('[role="dialog"]'), [l, i] = S(null);
|
|
50205
|
-
return
|
|
50205
|
+
return Ti(() => {
|
|
50206
50206
|
if (!a) return;
|
|
50207
50207
|
const o = () => {
|
|
50208
50208
|
const d = e.getBoundingClientRect(), c = a.getBoundingClientRect(), u = d.bottom + 208 > window.innerHeight && d.top > 216;
|
|
@@ -51399,7 +51399,7 @@ function sne({
|
|
|
51399
51399
|
return /* @__PURE__ */ s("div", { children: [
|
|
51400
51400
|
/* @__PURE__ */ s("div", { className: "mb-3 flex items-center justify-between", children: [
|
|
51401
51401
|
/* @__PURE__ */ s("span", { className: "flex items-center gap-1.5 text-[11px] font-medium text-slate-400", children: [
|
|
51402
|
-
/* @__PURE__ */ t(
|
|
51402
|
+
/* @__PURE__ */ t(Si, { className: "h-3.5 w-3.5" }),
|
|
51403
51403
|
"Owners",
|
|
51404
51404
|
y || g ? /* @__PURE__ */ t("span", { className: "inline-block h-3 w-4 animate-pulse rounded bg-slate-200 dark:bg-[hsl(var(--nvr-skeleton))]" }) : /* @__PURE__ */ s("span", { className: "text-slate-300", children: [
|
|
51405
51405
|
"(",
|
|
@@ -51574,7 +51574,7 @@ function lne({
|
|
|
51574
51574
|
title: "View approval chain",
|
|
51575
51575
|
className: "flex h-6 w-6 items-center justify-center rounded text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 dark:hover:bg-muted dark:hover:text-slate-300",
|
|
51576
51576
|
onClick: (m) => m.stopPropagation(),
|
|
51577
|
-
children: /* @__PURE__ */ t(
|
|
51577
|
+
children: /* @__PURE__ */ t(Si, { className: "h-3.5 w-3.5" })
|
|
51578
51578
|
}
|
|
51579
51579
|
) }),
|
|
51580
51580
|
/* @__PURE__ */ s($n, { align: "end", sideOffset: 6, className: "w-[576px] p-0 overflow-hidden", children: [
|
|
@@ -54537,7 +54537,7 @@ function Ag({
|
|
|
54537
54537
|
return /* @__PURE__ */ s("div", { className: "mt-0.5 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-[11px] text-slate-400", children: [
|
|
54538
54538
|
/* @__PURE__ */ t(OT, { priority: U.priority }),
|
|
54539
54539
|
U.assignee ? /* @__PURE__ */ t("span", { children: U.assignee_name ?? "Someone" }) : U.team_id != null ? /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-1", children: [
|
|
54540
|
-
/* @__PURE__ */ t(
|
|
54540
|
+
/* @__PURE__ */ t(Si, { className: "h-3 w-3" }),
|
|
54541
54541
|
"Waiting for ",
|
|
54542
54542
|
U.team_name ?? "the team"
|
|
54543
54543
|
] }) : null,
|
|
@@ -56172,7 +56172,7 @@ function oae({ title: e, onClose: n }) {
|
|
|
56172
56172
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56173
56173
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56174
56174
|
/* @__PURE__ */ t(fs, { className: t0, children: e }),
|
|
56175
|
-
/* @__PURE__ */ t(
|
|
56175
|
+
/* @__PURE__ */ t(Ci, { className: "sr-only", children: rk })
|
|
56176
56176
|
] }),
|
|
56177
56177
|
/* @__PURE__ */ t(Bl, { children: /* @__PURE__ */ s("div", { className: "flex items-start gap-3", "data-hv-unsupported": !0, children: [
|
|
56178
56178
|
/* @__PURE__ */ t("span", { className: "flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-muted text-foreground", children: /* @__PURE__ */ t(jK, { className: "h-4 w-4" }) }),
|
|
@@ -56194,7 +56194,7 @@ function dae({
|
|
|
56194
56194
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56195
56195
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56196
56196
|
/* @__PURE__ */ t(fs, { className: t0, children: "Saving your recording" }),
|
|
56197
|
-
/* @__PURE__ */ t(
|
|
56197
|
+
/* @__PURE__ */ t(Ci, { className: e$, children: "Keep this page open until it finishes." })
|
|
56198
56198
|
] }),
|
|
56199
56199
|
/* @__PURE__ */ s(Bl, { className: "space-y-3 text-[13px]", children: [
|
|
56200
56200
|
e && /* @__PURE__ */ t(
|
|
@@ -56227,7 +56227,7 @@ function cae({ onClose: e }) {
|
|
|
56227
56227
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56228
56228
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56229
56229
|
/* @__PURE__ */ t(fs, { className: t0, children: "Your recording is saved" }),
|
|
56230
|
-
/* @__PURE__ */ t(
|
|
56230
|
+
/* @__PURE__ */ t(Ci, { className: "sr-only", children: "Your recording is saved and ready to edit." })
|
|
56231
56231
|
] }),
|
|
56232
56232
|
/* @__PURE__ */ t(Bl, { children: /* @__PURE__ */ s("div", { className: "flex items-start gap-3 text-[13px]", "data-hv-done": !0, children: [
|
|
56233
56233
|
/* @__PURE__ */ t(TE, { className: "mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400" }),
|
|
@@ -56240,7 +56240,7 @@ function uae({ onOpen: e }) {
|
|
|
56240
56240
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56241
56241
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56242
56242
|
/* @__PURE__ */ t(fs, { className: t0, children: "Your recording is saved" }),
|
|
56243
|
-
/* @__PURE__ */ t(
|
|
56243
|
+
/* @__PURE__ */ t(Ci, { className: "sr-only", children: Z_ })
|
|
56244
56244
|
] }),
|
|
56245
56245
|
/* @__PURE__ */ t(Bl, { children: /* @__PURE__ */ s("div", { className: "flex items-start gap-3 text-[13px]", "data-hv-limit": !0, children: [
|
|
56246
56246
|
/* @__PURE__ */ t(TE, { className: "mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400" }),
|
|
@@ -56284,7 +56284,7 @@ function pae({
|
|
|
56284
56284
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56285
56285
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56286
56286
|
/* @__PURE__ */ t(fs, { className: t0, children: u.title }),
|
|
56287
|
-
/* @__PURE__ */ t(
|
|
56287
|
+
/* @__PURE__ */ t(Ci, { className: e$, children: u.desc })
|
|
56288
56288
|
] }),
|
|
56289
56289
|
/* @__PURE__ */ s(Bl, { children: [
|
|
56290
56290
|
/* @__PURE__ */ t(n0, { "data-hv-error": !0, children: e.message }),
|
|
@@ -56342,7 +56342,7 @@ function bae({
|
|
|
56342
56342
|
return /* @__PURE__ */ s(Qe, { children: [
|
|
56343
56343
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
56344
56344
|
/* @__PURE__ */ t(fs, { className: t0, children: e }),
|
|
56345
|
-
/* @__PURE__ */ s(
|
|
56345
|
+
/* @__PURE__ */ s(Ci, { className: e$, children: [
|
|
56346
56346
|
"The recording happens in the recording window (",
|
|
56347
56347
|
Gp(r),
|
|
56348
56348
|
"); this tab only shows how it is going."
|
|
@@ -57262,7 +57262,7 @@ function ise({
|
|
|
57262
57262
|
}
|
|
57263
57263
|
function ose(e) {
|
|
57264
57264
|
const [n, r] = S(null);
|
|
57265
|
-
return
|
|
57265
|
+
return Ti(() => {
|
|
57266
57266
|
if (e === document.body) return;
|
|
57267
57267
|
const a = () => {
|
|
57268
57268
|
if (getComputedStyle(e).transform === "none") return r(null);
|
|
@@ -57350,7 +57350,7 @@ function use({
|
|
|
57350
57350
|
}, []), /* @__PURE__ */ s(Qe, { children: [
|
|
57351
57351
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
57352
57352
|
/* @__PURE__ */ t(fs, { className: "text-[16px] text-foreground", children: e }),
|
|
57353
|
-
/* @__PURE__ */ t(
|
|
57353
|
+
/* @__PURE__ */ t(Ci, { className: "text-[13px] text-muted-foreground", children: n ? "The new recording becomes a fresh draft. The published video stays as it is until you publish again." : "Show how something works while you talk it through. You can trim, annotate and caption it afterwards." })
|
|
57354
57354
|
] }),
|
|
57355
57355
|
/* @__PURE__ */ s(Bl, { className: "space-y-5 text-[13px]", children: [
|
|
57356
57356
|
/* @__PURE__ */ t(
|
|
@@ -57829,7 +57829,7 @@ function nP({
|
|
|
57829
57829
|
});
|
|
57830
57830
|
tP(fse(e, f)), qz(e && b.cleanScreen && (f === "countdown" || f === "recording")), Az(e && (f === "countdown" || f === "recording"));
|
|
57831
57831
|
const [Re, _e] = S(null);
|
|
57832
|
-
|
|
57832
|
+
Ti(() => {
|
|
57833
57833
|
if (Ae.restricted)
|
|
57834
57834
|
return _e(jre()), () => {
|
|
57835
57835
|
_e(null), Pre();
|
|
@@ -58613,7 +58613,7 @@ function dP({
|
|
|
58613
58613
|
children: [
|
|
58614
58614
|
/* @__PURE__ */ s(hs, { children: [
|
|
58615
58615
|
/* @__PURE__ */ t(fs, { id: $, className: "text-[16px] dark:text-foreground", children: "Make a clip" }),
|
|
58616
|
-
/* @__PURE__ */ s(
|
|
58616
|
+
/* @__PURE__ */ s(Ci, { className: "text-[13px] text-muted-foreground", children: [
|
|
58617
58617
|
"A short piece of the ",
|
|
58618
58618
|
r ? "draft" : "video",
|
|
58619
58619
|
" for chat, docs and mail — up to",
|
|
@@ -58814,7 +58814,7 @@ function cP({
|
|
|
58814
58814
|
"aria-label": `Download ${i.label || "clip"} (${i.kind.toUpperCase()})`,
|
|
58815
58815
|
title: "Download",
|
|
58816
58816
|
"data-hv-clip-download": i.id,
|
|
58817
|
-
children: /* @__PURE__ */ t(
|
|
58817
|
+
children: /* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5", "aria-hidden": !0 })
|
|
58818
58818
|
}
|
|
58819
58819
|
)
|
|
58820
58820
|
] }),
|
|
@@ -59812,16 +59812,16 @@ function p$({
|
|
|
59812
59812
|
"data-hv-download": o,
|
|
59813
59813
|
"data-hv-download-waiting": "",
|
|
59814
59814
|
children: [
|
|
59815
|
-
/* @__PURE__ */ t(
|
|
59815
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
59816
59816
|
"It can be downloaded once it's ready."
|
|
59817
59817
|
]
|
|
59818
59818
|
}
|
|
59819
59819
|
);
|
|
59820
59820
|
const h = f.length === 1 && f[0].key === "transcript", b = h ? "Download transcript" : i, x = l === "icon" ? /* @__PURE__ */ s(Qe, { children: [
|
|
59821
|
-
/* @__PURE__ */ t(
|
|
59821
|
+
/* @__PURE__ */ t(_i, { className: "h-4 w-4", "aria-hidden": !0 }),
|
|
59822
59822
|
/* @__PURE__ */ t("span", { className: "sr-only", children: b })
|
|
59823
59823
|
] }) : /* @__PURE__ */ s(Qe, { children: [
|
|
59824
|
-
/* @__PURE__ */ t(
|
|
59824
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5", "aria-hidden": !0 }),
|
|
59825
59825
|
h ? "Transcript" : i
|
|
59826
59826
|
] }), y = d ?? "inline-flex h-8 items-center gap-1.5 rounded-md border border-input bg-background px-2.5 text-[12.5px] text-foreground transition-colors duration-150 hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan motion-reduce:transition-none";
|
|
59827
59827
|
return f.length === 1 ? /* @__PURE__ */ t(
|
|
@@ -60735,7 +60735,7 @@ function Dle({ walk: e }) {
|
|
|
60735
60735
|
return () => window.clearTimeout(T);
|
|
60736
60736
|
}, []);
|
|
60737
60737
|
const [g, k] = S(150);
|
|
60738
|
-
if (
|
|
60738
|
+
if (Ti(() => {
|
|
60739
60739
|
var L;
|
|
60740
60740
|
const T = (L = v.current) == null ? void 0 : L.offsetHeight;
|
|
60741
60741
|
T && Math.abs(T - g) > 1 && k(T);
|
|
@@ -61202,7 +61202,7 @@ function Jle(e) {
|
|
|
61202
61202
|
const am = { width: 400, height: 300, margin: 16 }, f6 = "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-slate-600 transition-colors duration-150 hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan motion-reduce:transition-none dark:text-muted-foreground dark:hover:bg-white/5 dark:hover:text-foreground";
|
|
61203
61203
|
function h$({ stage: e, className: n }) {
|
|
61204
61204
|
const r = ke(null);
|
|
61205
|
-
return
|
|
61205
|
+
return Ti(() => {
|
|
61206
61206
|
const a = r.current;
|
|
61207
61207
|
a && e.parentElement !== a && a.appendChild(e);
|
|
61208
61208
|
}, [e]), /* @__PURE__ */ t("div", { ref: r, className: n, "data-hv-stage-slot": !0 });
|
|
@@ -61253,7 +61253,7 @@ function Gle({
|
|
|
61253
61253
|
onPopIn: r,
|
|
61254
61254
|
onClose: a
|
|
61255
61255
|
}) {
|
|
61256
|
-
return
|
|
61256
|
+
return Ti(() => {
|
|
61257
61257
|
const l = document.body, i = l.style.paddingBottom;
|
|
61258
61258
|
return l.style.paddingBottom = `${am.height + am.margin * 2}px`, l.dataset.nvrMiniPlayer = "1", () => {
|
|
61259
61259
|
l.style.paddingBottom = i, delete l.dataset.nvrMiniPlayer;
|
|
@@ -61513,7 +61513,7 @@ function Jx({
|
|
|
61513
61513
|
return Ue.id !== e && Ue.published && !((Te = Ue.my_progress) != null && Te.completed);
|
|
61514
61514
|
}
|
|
61515
61515
|
), qe = ((lt = be.data) != null && lt.length ? be.data : ze).filter((Ue) => Ue.id !== e), te = ke(null);
|
|
61516
|
-
|
|
61516
|
+
Ti(() => {
|
|
61517
61517
|
se && document.activeElement instanceof HTMLElement && (te.current = document.activeElement);
|
|
61518
61518
|
}, [se]);
|
|
61519
61519
|
const oe = (u == null ? void 0 : u.title) || "Video", xe = n && !!(u != null && u.published) && !!j;
|
|
@@ -62056,7 +62056,7 @@ function bie({
|
|
|
62056
62056
|
children: [
|
|
62057
62057
|
/* @__PURE__ */ s(hs, { className: "pr-12", children: [
|
|
62058
62058
|
/* @__PURE__ */ t(fs, { className: "text-[16px] text-foreground", children: "Upload a video" }),
|
|
62059
|
-
/* @__PURE__ */ t(
|
|
62059
|
+
/* @__PURE__ */ t(Ci, { className: "text-[13px] text-muted-foreground", children: "An MP4, WebM or MOV up to 30 minutes and 1.2 GB." })
|
|
62060
62060
|
] }),
|
|
62061
62061
|
/* @__PURE__ */ s(Bl, { className: "space-y-3 text-[13px]", children: [
|
|
62062
62062
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2.5 rounded-lg border border-border px-3 py-2", children: [
|
|
@@ -64179,7 +64179,7 @@ function aoe({
|
|
|
64179
64179
|
loadDenied: a = !1,
|
|
64180
64180
|
onGoneChange: l
|
|
64181
64181
|
}) {
|
|
64182
|
-
const i =
|
|
64182
|
+
const i = Ai(), o = Oe(), d = _t(), [c, u] = S(!1), [m, p] = S([]), [f, h] = S(null), [b, x] = S({}), [y, v] = S(!1), [g, k] = S(!1), w = ke(null), $ = ke(null), N = ke(Date.now()), _ = ke(null), C = ke(l);
|
|
64183
64183
|
C.current = l;
|
|
64184
64184
|
const q = ke(null), A = (G) => {
|
|
64185
64185
|
var U;
|
|
@@ -64752,7 +64752,7 @@ function coe({
|
|
|
64752
64752
|
/* @__PURE__ */ t(Ol, { className: "h-4 w-4 text-nvr-cyan" }),
|
|
64753
64753
|
x ? "Manage subscription" : "Subscribe to this record"
|
|
64754
64754
|
] }),
|
|
64755
|
-
/* @__PURE__ */ s(
|
|
64755
|
+
/* @__PURE__ */ s(Ci, { className: "text-[12px]", children: [
|
|
64756
64756
|
"Get notified when this",
|
|
64757
64757
|
" ",
|
|
64758
64758
|
tn(e).replace(/s$/, "").toLowerCase() || "record",
|
|
@@ -67112,7 +67112,7 @@ function QP({
|
|
|
67112
67112
|
children: /* @__PURE__ */ s(xl, { className: "max-w-xl dark:bg-card", "data-support-request": !0, children: [
|
|
67113
67113
|
/* @__PURE__ */ s(hs, { className: "px-6 pt-5", children: [
|
|
67114
67114
|
/* @__PURE__ */ t(fs, { className: "text-[15px] font-semibold text-slate-900 dark:text-slate-100", children: c ? `Request a change${l ? ` · ${l}` : ""}` : "Get help" }),
|
|
67115
|
-
/* @__PURE__ */ t(
|
|
67115
|
+
/* @__PURE__ */ t(Ci, { className: "text-[12.5px] text-slate-500 dark:text-muted-foreground", children: c ? "Tell the administrators what needs to change on this record. You can follow the request under My requests." : "Ask the administrators for help. You can follow the request under My requests." })
|
|
67116
67116
|
] }),
|
|
67117
67117
|
/* @__PURE__ */ s(
|
|
67118
67118
|
"form",
|
|
@@ -67168,7 +67168,7 @@ function QP({
|
|
|
67168
67168
|
] }),
|
|
67169
67169
|
/* @__PURE__ */ s("div", { children: [
|
|
67170
67170
|
/* @__PURE__ */ s("label", { className: "inline-flex cursor-pointer items-center gap-1.5 text-[12px] font-medium text-slate-600 hover:text-slate-900 dark:text-slate-300 dark:hover:text-slate-100", children: [
|
|
67171
|
-
v ? /* @__PURE__ */ t(Rt, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(
|
|
67171
|
+
v ? /* @__PURE__ */ t(Rt, { className: "h-3.5 w-3.5 animate-spin" }) : /* @__PURE__ */ t(Ni, { className: "h-3.5 w-3.5" }),
|
|
67172
67172
|
"Attach files",
|
|
67173
67173
|
/* @__PURE__ */ t(
|
|
67174
67174
|
"input",
|
|
@@ -69049,7 +69049,7 @@ function $de({
|
|
|
69049
69049
|
for (const ge of Object.keys(re)) Kt.current.add(ge);
|
|
69050
69050
|
},
|
|
69051
69051
|
[ca, ve]
|
|
69052
|
-
), [ds, Gl] = S(null), [gs,
|
|
69052
|
+
), [ds, Gl] = S(null), [gs, Oi] = S(!1), ao = Ct(
|
|
69053
69053
|
async (I, re) => {
|
|
69054
69054
|
const pe = re.reimport;
|
|
69055
69055
|
if (!pe || (Bn || [...Ya.values()].some((xt) => xt.length > 0) || [..._a.values()].some((xt) => xt.size > 0) || [...Xa.values()].some((xt) => xt.size > 0)) && !window.confirm(
|
|
@@ -69146,7 +69146,7 @@ function $de({
|
|
|
69146
69146
|
ne,
|
|
69147
69147
|
ve
|
|
69148
69148
|
]
|
|
69149
|
-
),
|
|
69149
|
+
), Li = Ct(
|
|
69150
69150
|
async (I, re, pe, ge) => {
|
|
69151
69151
|
const ye = pe.reimport;
|
|
69152
69152
|
if (!ye) return;
|
|
@@ -70542,18 +70542,18 @@ function $de({
|
|
|
70542
70542
|
), an = Se(
|
|
70543
70543
|
() => ns.filter((I) => I.type === "section" || I.type === "metadata"),
|
|
70544
70544
|
[ns]
|
|
70545
|
-
), Hn = st.length > 0, Vn = Nt.length > 0, $r = Z == null ? void 0 : Z.layout, Ur = $r ? !!$r.ai_enabled : !0, Mr = Vn && ($r == null ? void 0 : $r.tab_mode) === "steps", br = !!($r != null && $r.validate_before_next), Wn = !!($r != null && $r.summary_enabled), zt = !!($r != null && $r.summary_hide_empty), pi = $r ? !$r.disable_revisions && y : y, Fs = $r ? !$r.disable_comments && w : w, ol = $r ? !$r.disable_tasks && $ : $,
|
|
70545
|
+
), Hn = st.length > 0, Vn = Nt.length > 0, $r = Z == null ? void 0 : Z.layout, Ur = $r ? !!$r.ai_enabled : !0, Mr = Vn && ($r == null ? void 0 : $r.tab_mode) === "steps", br = !!($r != null && $r.validate_before_next), Wn = !!($r != null && $r.summary_enabled), zt = !!($r != null && $r.summary_hide_empty), pi = $r ? !$r.disable_revisions && y : y, Fs = $r ? !$r.disable_comments && w : w, ol = $r ? !$r.disable_tasks && $ : $, Ei = $r ? !$r.disable_clone && v : v, dl = $r ? !$r.disable_delete : !0, Mi = !!($r != null && $r.accordion_mode), [Ri, Hi] = S(!1), [Gn, ti] = S(null), [_l, Vr] = S(/* @__PURE__ */ new Set()), aa = ke(!1);
|
|
70546
70546
|
$e(() => {
|
|
70547
|
-
if (!
|
|
70547
|
+
if (!Mi) {
|
|
70548
70548
|
aa.current = !1;
|
|
70549
70549
|
return;
|
|
70550
70550
|
}
|
|
70551
|
-
if (
|
|
70551
|
+
if (Mi && !aa.current) {
|
|
70552
70552
|
aa.current = !0;
|
|
70553
70553
|
const I = an.find((re) => !re.is_collapsed) ?? an[0];
|
|
70554
70554
|
I && ti(I.id);
|
|
70555
70555
|
}
|
|
70556
|
-
}, [
|
|
70556
|
+
}, [Mi, an]);
|
|
70557
70557
|
const Jr = ke(null), Va = (I) => {
|
|
70558
70558
|
const re = document.querySelector(`[data-field="${I}"]`);
|
|
70559
70559
|
re && (re.scrollIntoView({ behavior: "smooth", block: "center" }), re.style.transition = "box-shadow 0.15s ease", re.style.boxShadow = "0 0 0 2px rgb(var(--nvr-cyan-rgb, 0 206 255)), 0 0 0 5px rgb(var(--nvr-cyan-rgb, 0 206 255) / 0.25)", re.style.borderRadius = "12px", setTimeout(() => {
|
|
@@ -71668,14 +71668,14 @@ ${ge.join(`
|
|
|
71668
71668
|
if (!Ca) continue;
|
|
71669
71669
|
const ws = _e.find(
|
|
71670
71670
|
(Pl) => Pl.many_collection === Ca.many_collection && Pl.many_field === Ca.junction_field && Pl.id !== Ca.id
|
|
71671
|
-
), gd = sD(ws),
|
|
71671
|
+
), gd = sD(ws), Fi = gd ? { [gd.field]: gd.value } : {};
|
|
71672
71672
|
for (const Pl of Nr)
|
|
71673
71673
|
ar.push(
|
|
71674
71674
|
P.request(
|
|
71675
71675
|
Be(`/items/${Ca.many_collection}`, {
|
|
71676
71676
|
[Ca.many_field]: Cr,
|
|
71677
71677
|
[Ca.junction_field]: Pl,
|
|
71678
|
-
...
|
|
71678
|
+
...Fi
|
|
71679
71679
|
})
|
|
71680
71680
|
).catch(cn("A link could not be added"))
|
|
71681
71681
|
);
|
|
@@ -71706,9 +71706,9 @@ ${ge.join(`
|
|
|
71706
71706
|
for (const Pt of ge) {
|
|
71707
71707
|
const cn = `o2m:new:${Pt}`, [Qn, ar] = Pt.split("."), Jn = Ya.get(Pt) ?? [], Nr = Pc.get(Pt);
|
|
71708
71708
|
if (Nr != null && Nr.length) {
|
|
71709
|
-
const
|
|
71709
|
+
const Fi = (Xs) => Nr.map((js) => String(Xs[js] ?? "")).join("\0"), Pl = /* @__PURE__ */ new Set();
|
|
71710
71710
|
if (Jn.some((Xs) => {
|
|
71711
|
-
const js =
|
|
71711
|
+
const js = Fi(Xs);
|
|
71712
71712
|
return Pl.has(js) ? !0 : (Pl.add(js), !1);
|
|
71713
71713
|
})) {
|
|
71714
71714
|
Fr(cn, {
|
|
@@ -71719,12 +71719,12 @@ ${ge.join(`
|
|
|
71719
71719
|
}
|
|
71720
71720
|
}
|
|
71721
71721
|
Fr(cn, { status: "running", progress: { done: 0, total: Jn.length } });
|
|
71722
|
-
const Ca = (
|
|
71723
|
-
const ni =
|
|
71722
|
+
const Ca = (Fi, Pl) => {
|
|
71723
|
+
const ni = Fi.line_number ?? Fi.sort ?? null, Xs = ["item_description", "description", "name", "title", "label"].map((fi) => Fi[fi]).find((fi) => typeof fi == "string" && fi.trim() !== ""), js = `line ${ni != null && ni !== "" ? String(ni) : Pl + 1}`;
|
|
71724
71724
|
return Xs ? `${js} · ${Xs.length > 40 ? `${Xs.slice(0, 40)}…` : Xs}` : js;
|
|
71725
71725
|
}, ws = [], gd = [];
|
|
71726
71726
|
try {
|
|
71727
|
-
let
|
|
71727
|
+
let Fi = 0;
|
|
71728
71728
|
for (let ni = 0; ni < Jn.length; ni++) {
|
|
71729
71729
|
const Xs = Jn[ni];
|
|
71730
71730
|
Fr(cn, {
|
|
@@ -71765,7 +71765,7 @@ ${ge.join(`
|
|
|
71765
71765
|
(bi) => bi.one_collection === Qn && bi.one_field === f0
|
|
71766
71766
|
), gh = Array.isArray(Fd) ? Fd : [];
|
|
71767
71767
|
if (hu == null || !(zc != null && zc.many_collection) || !zc.many_field) {
|
|
71768
|
-
|
|
71768
|
+
Fi += gh.length;
|
|
71769
71769
|
continue;
|
|
71770
71770
|
}
|
|
71771
71771
|
for (const bi of gh)
|
|
@@ -71777,7 +71777,7 @@ ${ge.join(`
|
|
|
71777
71777
|
})
|
|
71778
71778
|
);
|
|
71779
71779
|
} catch {
|
|
71780
|
-
|
|
71780
|
+
Fi++;
|
|
71781
71781
|
}
|
|
71782
71782
|
}
|
|
71783
71783
|
})();
|
|
@@ -71790,15 +71790,15 @@ ${ge.join(`
|
|
|
71790
71790
|
`${ws.length} of ${Jn.length} line${Jn.length !== 1 ? "s" : ""} did not save` + (ni > 0 ? ` (${ni} saved)` : "") + ` — ${ws.map((Xs) => `${Xs.label}: ${Xs.error}`).join(" · ")}`
|
|
71791
71791
|
);
|
|
71792
71792
|
}
|
|
71793
|
-
|
|
71793
|
+
Fi > 0 && Pl.push(`${Fi} nested row${Fi !== 1 ? "s" : ""} failed`), Fr(
|
|
71794
71794
|
cn,
|
|
71795
71795
|
Pl.length > 0 ? { status: "error", detail: void 0, error: Pl.join(". ") } : {
|
|
71796
71796
|
status: "done",
|
|
71797
71797
|
detail: `${Jn.length} line${Jn.length !== 1 ? "s" : ""} saved`
|
|
71798
71798
|
}
|
|
71799
71799
|
);
|
|
71800
|
-
} catch (
|
|
71801
|
-
xr.set(Pt, Jn), Fr(cn, { status: "error", error: I(
|
|
71800
|
+
} catch (Fi) {
|
|
71801
|
+
xr.set(Pt, Jn), Fr(cn, { status: "error", error: I(Fi) });
|
|
71802
71802
|
}
|
|
71803
71803
|
}
|
|
71804
71804
|
const jn = new Map(_a);
|
|
@@ -71809,7 +71809,7 @@ ${ge.join(`
|
|
|
71809
71809
|
const Ca = /* @__PURE__ */ new Map();
|
|
71810
71810
|
await Promise.all(
|
|
71811
71811
|
[...ar.entries()].map(async ([ws, gd]) => {
|
|
71812
|
-
const
|
|
71812
|
+
const Fi = Object.entries(gd).filter(
|
|
71813
71813
|
([js]) => js.startsWith("__nested_ops_")
|
|
71814
71814
|
), Pl = Object.fromEntries(
|
|
71815
71815
|
Object.entries(gd).filter(
|
|
@@ -71831,7 +71831,7 @@ ${ge.join(`
|
|
|
71831
71831
|
return;
|
|
71832
71832
|
}
|
|
71833
71833
|
const Xs = {};
|
|
71834
|
-
for (const [js, fi] of
|
|
71834
|
+
for (const [js, fi] of Fi) {
|
|
71835
71835
|
const xh = js.slice(13), hu = _e.find(
|
|
71836
71836
|
(bi) => bi.one_collection === Qn && bi.one_field === xh
|
|
71837
71837
|
), fo = fi, bo = fo.collection ?? (hu == null ? void 0 : hu.many_collection) ?? null, Fd = fo.collection ? null : (hu == null ? void 0 : hu.many_field) ?? null;
|
|
@@ -72312,7 +72312,7 @@ ${ge.join(`
|
|
|
72312
72312
|
]);
|
|
72313
72313
|
const h0 = ke(null);
|
|
72314
72314
|
$e(() => {
|
|
72315
|
-
Da ? (h0.current === null && (h0.current =
|
|
72315
|
+
Da ? (h0.current === null && (h0.current = Ri), Hi(!0)) : h0.current !== null && (Hi(h0.current), h0.current = null);
|
|
72316
72316
|
}, [Da]);
|
|
72317
72317
|
const bh = {};
|
|
72318
72318
|
for (const I of Uc)
|
|
@@ -72851,7 +72851,7 @@ ${ge.join(`
|
|
|
72851
72851
|
};
|
|
72852
72852
|
}), rt = Yt && Jt === re.key && g, xt = ut && He === re.key && !he, Dt = Bm.filter((ln) => (ln.group_key ?? null) === re.key);
|
|
72853
72853
|
if (tt.length === 0 && !rt && !xt && Dt.length === 0) return null;
|
|
72854
|
-
const Et =
|
|
72854
|
+
const Et = Mi && re.type !== "tab";
|
|
72855
72855
|
return /* @__PURE__ */ t(
|
|
72856
72856
|
eZ,
|
|
72857
72857
|
{
|
|
@@ -73432,12 +73432,12 @@ ${ge.join(`
|
|
|
73432
73432
|
Ve,
|
|
73433
73433
|
{
|
|
73434
73434
|
onClick: async () => {
|
|
73435
|
-
ds && (
|
|
73435
|
+
ds && (Oi(!0), await Li(
|
|
73436
73436
|
ds.diff,
|
|
73437
73437
|
ds.result,
|
|
73438
73438
|
ds.template,
|
|
73439
73439
|
ds.existingRows
|
|
73440
|
-
),
|
|
73440
|
+
), Oi(!1), Gl(null));
|
|
73441
73441
|
},
|
|
73442
73442
|
disabled: gs,
|
|
73443
73443
|
children: gs ? /* @__PURE__ */ t(Rt, { className: "h-3.5 w-3.5 animate-spin" }) : "Apply to form"
|
|
@@ -74096,7 +74096,7 @@ ${ge.join(`
|
|
|
74096
74096
|
]
|
|
74097
74097
|
}
|
|
74098
74098
|
),
|
|
74099
|
-
|
|
74099
|
+
Ei && // lint-traps-ok: self-triggered; HeaderTools ignores clicks inside dialogs it opened
|
|
74100
74100
|
/* @__PURE__ */ t(
|
|
74101
74101
|
Mie,
|
|
74102
74102
|
{
|
|
@@ -75120,16 +75120,16 @@ ${ge.join(`
|
|
|
75120
75120
|
{
|
|
75121
75121
|
type: "button",
|
|
75122
75122
|
onClick: () => Hi((I) => !I),
|
|
75123
|
-
title:
|
|
75123
|
+
title: Ri ? "Expand summary" : "Collapse summary",
|
|
75124
75124
|
className: "border-r flex w-6 shrink-0 items-start justify-center pt-3 bg-slate-100 text-slate-400 hover:bg-slate-200/70 hover:text-slate-600 transition-colors dark:bg-white/[0.04] dark:hover:bg-white/[0.08] dark:text-slate-500 dark:hover:text-slate-300",
|
|
75125
|
-
children:
|
|
75125
|
+
children: Ri ? /* @__PURE__ */ t(Vo, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ t(Or, { className: "h-3.5 w-3.5" })
|
|
75126
75126
|
}
|
|
75127
75127
|
),
|
|
75128
75128
|
/* @__PURE__ */ t(
|
|
75129
75129
|
"div",
|
|
75130
75130
|
{
|
|
75131
75131
|
className: "overflow-hidden transition-all duration-200",
|
|
75132
|
-
style: { width:
|
|
75132
|
+
style: { width: Ri ? 0 : 232 },
|
|
75133
75133
|
children: /* @__PURE__ */ t("div", { className: "w-[232px] overflow-y-auto h-full", children: /* @__PURE__ */ t(
|
|
75134
75134
|
ude,
|
|
75135
75135
|
{
|
|
@@ -75593,7 +75593,7 @@ const Ode = [
|
|
|
75593
75593
|
{ label: "Relative time", cfg: { type: "datetime", template: "relative" } },
|
|
75594
75594
|
{ label: "Yes / No", cfg: { type: "boolean", true_label: "Yes", false_label: "No" } },
|
|
75595
75595
|
{ label: "Count (related)", cfg: { type: "count" } }
|
|
75596
|
-
],
|
|
75596
|
+
], wi = (e) => e.replace(/_/g, " ").replace(/\b\w/g, (n) => n.toUpperCase()), N$ = ["name", "title", "label", "display_name", "subject", "email", "slug"];
|
|
75597
75597
|
function p2(e, n) {
|
|
75598
75598
|
if (!e) return ["id", n, ...N$].join(",");
|
|
75599
75599
|
const r = [...e.matchAll(/\{\{([\w.]+)\}\}/g)].map((a) => a[1]);
|
|
@@ -76365,7 +76365,7 @@ function jde({
|
|
|
76365
76365
|
{
|
|
76366
76366
|
block: !0,
|
|
76367
76367
|
label: "All",
|
|
76368
|
-
options: d.map((u) => ({ value: String(u), label:
|
|
76368
|
+
options: d.map((u) => ({ value: String(u), label: wi(String(u)) })),
|
|
76369
76369
|
selected: r,
|
|
76370
76370
|
onChange: a,
|
|
76371
76371
|
loading: c,
|
|
@@ -76708,7 +76708,7 @@ function S$({
|
|
|
76708
76708
|
return g.has(f.field) ? g.delete(f.field) : g.add(f.field), g;
|
|
76709
76709
|
}) : o(
|
|
76710
76710
|
[...r, f.field],
|
|
76711
|
-
[...a,
|
|
76711
|
+
[...a, wi(f.field)],
|
|
76712
76712
|
f.type ?? "string"
|
|
76713
76713
|
);
|
|
76714
76714
|
},
|
|
@@ -76716,7 +76716,7 @@ function S$({
|
|
|
76716
76716
|
style: { paddingLeft: `${0.5 + n}rem` },
|
|
76717
76717
|
children: [
|
|
76718
76718
|
x || b ? y ? "▾ " : "▸ " : "",
|
|
76719
|
-
|
|
76719
|
+
wi(f.field),
|
|
76720
76720
|
b && /* @__PURE__ */ t("span", { className: "text-[10px] text-slate-400", children: b.kind })
|
|
76721
76721
|
]
|
|
76722
76722
|
}
|
|
@@ -76727,7 +76727,7 @@ function S$({
|
|
|
76727
76727
|
relatedCollection: x,
|
|
76728
76728
|
depth: n + 1,
|
|
76729
76729
|
path: [...r, f.field],
|
|
76730
|
-
pathLabels: [...a,
|
|
76730
|
+
pathLabels: [...a, wi(f.field)],
|
|
76731
76731
|
filterText: "",
|
|
76732
76732
|
includeAliases: i,
|
|
76733
76733
|
onPick: o
|
|
@@ -76739,7 +76739,7 @@ function S$({
|
|
|
76739
76739
|
aliasInfo: b,
|
|
76740
76740
|
depth: n + 1,
|
|
76741
76741
|
path: [...r, f.field],
|
|
76742
|
-
pathLabels: [...a,
|
|
76742
|
+
pathLabels: [...a, wi(f.field)],
|
|
76743
76743
|
includeAliases: i,
|
|
76744
76744
|
onPick: o
|
|
76745
76745
|
}
|
|
@@ -76836,7 +76836,7 @@ function Bde({
|
|
|
76836
76836
|
const f = a.trim().toLowerCase(), h = (v) => !f || v.toLowerCase().includes(f) || v.toLowerCase().replace(/ /g, "_").includes(f), b = [];
|
|
76837
76837
|
for (const v of c.fields) {
|
|
76838
76838
|
if (v.hidden) continue;
|
|
76839
|
-
const g =
|
|
76839
|
+
const g = wi(v.field), k = Uo(c.relations, e, v.field), w = yx(c.relations, e, v.field), $ = [...n, v.field], N = [...r, g];
|
|
76840
76840
|
if (k != null && k.one_collection && !Yc(k.one_collection))
|
|
76841
76841
|
h(g) && b.push({
|
|
76842
76842
|
key: v.field,
|
|
@@ -76874,10 +76874,10 @@ function Bde({
|
|
|
76874
76874
|
if (!(g != null && g.one_collection) || Yc(g.one_collection)) continue;
|
|
76875
76875
|
const k = p.get(g.one_collection);
|
|
76876
76876
|
if (!k) continue;
|
|
76877
|
-
const w =
|
|
76877
|
+
const w = wi(v.field);
|
|
76878
76878
|
for (const $ of k.fields) {
|
|
76879
76879
|
if ($.hidden) continue;
|
|
76880
|
-
const N =
|
|
76880
|
+
const N = wi($.field);
|
|
76881
76881
|
if (!h(N)) continue;
|
|
76882
76882
|
const _ = Uo(k.relations, g.one_collection, $.field);
|
|
76883
76883
|
x.push({
|
|
@@ -76968,7 +76968,7 @@ function Wde({
|
|
|
76968
76968
|
autoFocus: !0,
|
|
76969
76969
|
value: i,
|
|
76970
76970
|
onChange: (b) => o(b.target.value),
|
|
76971
|
-
placeholder: `Search ${
|
|
76971
|
+
placeholder: `Search ${wi(e)}…`,
|
|
76972
76972
|
className: "mx-2 mb-1 h-7 shrink-0 rounded border border-slate-200 bg-slate-50 px-2 text-[12px] outline-none focus:border-nvr-cyan/50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100"
|
|
76973
76973
|
}
|
|
76974
76974
|
),
|
|
@@ -77459,7 +77459,7 @@ function Vde({
|
|
|
77459
77459
|
children: [
|
|
77460
77460
|
u ? "▾" : "▸",
|
|
77461
77461
|
" ",
|
|
77462
|
-
|
|
77462
|
+
wi(o.field),
|
|
77463
77463
|
c && /* @__PURE__ */ t("span", { className: "text-[10px] text-slate-400", children: c.kind })
|
|
77464
77464
|
]
|
|
77465
77465
|
}
|
|
@@ -77470,7 +77470,7 @@ function Vde({
|
|
|
77470
77470
|
relatedCollection: d.one_collection,
|
|
77471
77471
|
depth: 1,
|
|
77472
77472
|
path: [o.field],
|
|
77473
|
-
pathLabels: [
|
|
77473
|
+
pathLabels: [wi(o.field)],
|
|
77474
77474
|
filterText: "",
|
|
77475
77475
|
includeAliases: !0,
|
|
77476
77476
|
onPick: i
|
|
@@ -77482,7 +77482,7 @@ function Vde({
|
|
|
77482
77482
|
aliasInfo: c,
|
|
77483
77483
|
depth: 1,
|
|
77484
77484
|
path: [o.field],
|
|
77485
|
-
pathLabels: [
|
|
77485
|
+
pathLabels: [wi(o.field)],
|
|
77486
77486
|
includeAliases: !0,
|
|
77487
77487
|
onPick: i
|
|
77488
77488
|
}
|
|
@@ -78358,7 +78358,7 @@ function l5e({
|
|
|
78358
78358
|
), Ms = (ee) => pa[ee], Pi = (ee) => {
|
|
78359
78359
|
const je = { ...pa }, st = je[ee];
|
|
78360
78360
|
st ? st === "left" ? je[ee] = "right" : delete je[ee] : je[ee] = "left", Js(je);
|
|
78361
|
-
}, is = (ee) => L[ee] ?? (ee.startsWith("__f:") ? O[ee] ?? "Formula" : ee.includes(".") ? ee.split(".").map(
|
|
78361
|
+
}, is = (ee) => L[ee] ?? (ee.startsWith("__f:") ? O[ee] ?? "Formula" : ee.includes(".") ? ee.split(".").map(wi).join(" › ") : ee === "id" ? "ID" : wi(ee)), qr = (ee, je) => {
|
|
78362
78362
|
var mt, Nt, Ut;
|
|
78363
78363
|
const st = je.includes(".") ? (Ut = (Nt = (mt = wa == null ? void 0 : wa.rows) == null ? void 0 : mt[String(ee.id)]) == null ? void 0 : Nt[je]) == null ? void 0 : Ut.value : ee[je];
|
|
78364
78364
|
return typeof st == "string" && /^-?\d+(\.\d+)?$/.test(st.trim()) ? Number(st) : st;
|
|
@@ -78568,7 +78568,7 @@ function l5e({
|
|
|
78568
78568
|
}
|
|
78569
78569
|
} : null
|
|
78570
78570
|
);
|
|
78571
|
-
const gs = XM(),
|
|
78571
|
+
const gs = XM(), Oi = WR(Xr), ao = Ai(), { userId: Li } = ga(), _s = tF(), wl = ke(/* @__PURE__ */ new Set());
|
|
78572
78572
|
wl.current = new Set(Sa.map((ee) => String(ee.id)));
|
|
78573
78573
|
const so = ke([]);
|
|
78574
78574
|
so.current = [
|
|
@@ -78635,22 +78635,22 @@ function l5e({
|
|
|
78635
78635
|
zt && ee();
|
|
78636
78636
|
const pi = wl.current, Fs = (Vr) => C3(e, Vr.item), ol = (Vr) => {
|
|
78637
78637
|
const aa = iV(Vr);
|
|
78638
|
-
return aa &&
|
|
78639
|
-
},
|
|
78638
|
+
return aa && Li && aa.toUpperCase() === Li.toUpperCase() ? "self" : aa;
|
|
78639
|
+
}, Ei = [];
|
|
78640
78640
|
for (const [Vr, aa] of Wn)
|
|
78641
|
-
aa.action === "delete" && (pi.has(Vr) ?
|
|
78642
|
-
if (
|
|
78643
|
-
const Vr = new Set(
|
|
78641
|
+
aa.action === "delete" && (pi.has(Vr) ? Ei.push(Vr) : ee(), Wn.delete(Vr));
|
|
78642
|
+
if (Ei.length > 0) {
|
|
78643
|
+
const Vr = new Set(Ei);
|
|
78644
78644
|
Nt((aa) => ({
|
|
78645
78645
|
data: aa.data.filter((Jr) => !Vr.has(String(Jr.id))),
|
|
78646
|
-
total: Math.max(0, aa.total -
|
|
78647
|
-
})), _s.forget(
|
|
78646
|
+
total: Math.max(0, aa.total - Ei.length)
|
|
78647
|
+
})), _s.forget(Ei);
|
|
78648
78648
|
}
|
|
78649
78649
|
if (Wn.size === 0) return;
|
|
78650
78650
|
const dl = $d.current;
|
|
78651
|
-
let
|
|
78651
|
+
let Mi;
|
|
78652
78652
|
try {
|
|
78653
|
-
|
|
78653
|
+
Mi = await aV(
|
|
78654
78654
|
h,
|
|
78655
78655
|
e,
|
|
78656
78656
|
[...Wn.keys()],
|
|
@@ -78674,10 +78674,10 @@ function l5e({
|
|
|
78674
78674
|
return;
|
|
78675
78675
|
}
|
|
78676
78676
|
if (Vn) return;
|
|
78677
|
-
const
|
|
78677
|
+
const Ri = sV(dl.conditions), Hi = dl.page === 1 && !dl.grouped, Gn = /* @__PURE__ */ new Map(), ti = [], _l = [];
|
|
78678
78678
|
for (const [Vr, aa] of Wn) {
|
|
78679
|
-
const Jr =
|
|
78680
|
-
pi.has(Vr) ? Jr ? Gn.set(Vr, Jr) : ti.push(Vr) : Jr && ((aa.action === "create" || !!dl.conditions && nF(aa,
|
|
78679
|
+
const Jr = Mi.get(Vr);
|
|
78680
|
+
pi.has(Vr) ? Jr ? Gn.set(Vr, Jr) : ti.push(Vr) : Jr && ((aa.action === "create" || !!dl.conditions && nF(aa, Ri)) && Hi ? _l.push({ row: Jr, ev: aa }) : ee());
|
|
78681
78681
|
}
|
|
78682
78682
|
if (Gn.size > 0 || ti.length > 0 || _l.length > 0) {
|
|
78683
78683
|
const Vr = new Set(ti);
|
|
@@ -78718,7 +78718,7 @@ function l5e({
|
|
|
78718
78718
|
return () => {
|
|
78719
78719
|
Vn = !0, Mr(), R3(Kn), st && clearTimeout(st), an && clearTimeout(an), Hn && clearTimeout(Hn);
|
|
78720
78720
|
};
|
|
78721
|
-
}, [ao, e, b, h,
|
|
78721
|
+
}, [ao, e, b, h, Li, _s, Kn]);
|
|
78722
78722
|
const na = nV(
|
|
78723
78723
|
e,
|
|
78724
78724
|
Sa.map((ee) => String(ee.id)),
|
|
@@ -79251,15 +79251,15 @@ function l5e({
|
|
|
79251
79251
|
var Fs, ol;
|
|
79252
79252
|
const zt = J[Wn];
|
|
79253
79253
|
if (Wn.startsWith("__f:")) {
|
|
79254
|
-
const
|
|
79254
|
+
const Ei = O[Wn], dl = Ei ? $l(Ei, (Mi) => {
|
|
79255
79255
|
var Hi, Gn;
|
|
79256
|
-
const
|
|
79257
|
-
return typeof
|
|
79256
|
+
const Ri = Mi.includes(".") ? (Gn = (Hi = mt[String(br.id)]) == null ? void 0 : Hi[Mi]) == null ? void 0 : Gn.value : br[Mi];
|
|
79257
|
+
return typeof Ri == "string" && /^-?\d+(\.\d+)?$/.test(Ri.trim()) ? Number(Ri) : Ri;
|
|
79258
79258
|
}) : null;
|
|
79259
79259
|
return dl == null ? "" : zt ? em(String(dl), zt) : Math.round(dl * 100) / 100;
|
|
79260
79260
|
}
|
|
79261
79261
|
if (Wn.includes(".") || Wn in Pr) {
|
|
79262
|
-
const
|
|
79262
|
+
const Ei = Wn.includes(".") ? Wn : Pr[Wn], dl = ((ol = (Fs = mt[String(br.id)]) == null ? void 0 : Fs[Ei]) == null ? void 0 : ol.value) ?? "";
|
|
79263
79263
|
return zt && dl ? Su(dl, zt) : dl;
|
|
79264
79264
|
}
|
|
79265
79265
|
const pi = br[Wn];
|
|
@@ -79384,7 +79384,7 @@ function l5e({
|
|
|
79384
79384
|
}
|
|
79385
79385
|
return st;
|
|
79386
79386
|
})(), Ia = fa.filter((ee) => Ms(ee.key) === "left").map((ee) => ee.key), Qi = fa.filter((ee) => Ms(ee.key) === "right").map((ee) => ee.key), ua = ke(/* @__PURE__ */ new Map()), [Dl, Ld] = S({});
|
|
79387
|
-
|
|
79387
|
+
Ti(() => {
|
|
79388
79388
|
const ee = {};
|
|
79389
79389
|
for (const [st, mt] of ua.current)
|
|
79390
79390
|
mt != null && mt.isConnected && (ee[st] = mt.getBoundingClientRect().width);
|
|
@@ -80004,7 +80004,7 @@ function l5e({
|
|
|
80004
80004
|
{
|
|
80005
80005
|
autoFocus: !0,
|
|
80006
80006
|
value: L[ee] ?? "",
|
|
80007
|
-
placeholder: ee.includes(".") ? ee.split(".").map(
|
|
80007
|
+
placeholder: ee.includes(".") ? ee.split(".").map(wi).join(" › ") : wi(ee),
|
|
80008
80008
|
onChange: (mt) => E((Nt) => {
|
|
80009
80009
|
const Ut = { ...Nt };
|
|
80010
80010
|
return mt.target.value ? Ut[ee] = mt.target.value : delete Ut[ee], Ut;
|
|
@@ -80210,7 +80210,7 @@ function l5e({
|
|
|
80210
80210
|
className: "flex w-full items-center gap-1.5 rounded px-1.5 py-1 text-left text-[12px] text-slate-600 hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800",
|
|
80211
80211
|
children: [
|
|
80212
80212
|
/* @__PURE__ */ t("span", { "aria-hidden": !0, className: "text-slate-400", children: "+" }),
|
|
80213
|
-
/* @__PURE__ */ t("span", { className: "truncate", children:
|
|
80213
|
+
/* @__PURE__ */ t("span", { className: "truncate", children: wi(ee.field) })
|
|
80214
80214
|
]
|
|
80215
80215
|
},
|
|
80216
80216
|
ee.field
|
|
@@ -80847,7 +80847,7 @@ ${st}`).then(() => {
|
|
|
80847
80847
|
/* @__PURE__ */ t("div", { className: "cbv-progress pointer-events-none absolute inset-x-0 top-0 z-[6] h-[3px] overflow-hidden" }),
|
|
80848
80848
|
/* @__PURE__ */ t("div", { className: "cbv-overlay nvr-fade-in pointer-events-none absolute inset-0 z-[5] flex items-start justify-center bg-white/40 pt-24 dark:bg-slate-950/35", children: /* @__PURE__ */ s("span", { className: "nvr-pop-in flex items-center gap-2 rounded-full border border-slate-200 bg-white px-3 py-1.5 text-[12px] font-medium text-slate-600 shadow-lg dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300", children: [
|
|
80849
80849
|
/* @__PURE__ */ t(No, { "aria-hidden": !0, className: "h-3.5 w-3.5 animate-spin text-[#00a5cc]" }),
|
|
80850
|
-
|
|
80850
|
+
Oi != null ? `Still working — ${Oi}s` : "Loading…"
|
|
80851
80851
|
] }) })
|
|
80852
80852
|
] }),
|
|
80853
80853
|
/* @__PURE__ */ t(
|
|
@@ -81229,7 +81229,7 @@ ${st}`).then(() => {
|
|
|
81229
81229
|
}
|
|
81230
81230
|
),
|
|
81231
81231
|
fa.map((Wn) => {
|
|
81232
|
-
var ol,
|
|
81232
|
+
var ol, Ei, dl, Mi, Ri, Hi;
|
|
81233
81233
|
const zt = Wn.key;
|
|
81234
81234
|
if (Wn.kind === "state")
|
|
81235
81235
|
return /* @__PURE__ */ t(
|
|
@@ -81293,7 +81293,7 @@ ${st}`).then(() => {
|
|
|
81293
81293
|
);
|
|
81294
81294
|
}
|
|
81295
81295
|
if (Wn.kind === "aging") {
|
|
81296
|
-
const Gn = (
|
|
81296
|
+
const Gn = (Ei = za == null ? void 0 : za.instances) == null ? void 0 : Ei[String(Nt)], ti = Gn != null && Gn.entered_at ? new Date(Gn.entered_at).getTime() : NaN, _l = Gn != null && Gn.completed_at || !Number.isFinite(ti) ? null : (Date.now() - ti) / 36e5;
|
|
81297
81297
|
return /* @__PURE__ */ t(
|
|
81298
81298
|
"td",
|
|
81299
81299
|
{
|
|
@@ -81482,7 +81482,7 @@ ${st}`).then(() => {
|
|
|
81482
81482
|
{
|
|
81483
81483
|
className: "block max-w-[260px] truncate text-[12px] text-slate-700 dark:text-slate-200",
|
|
81484
81484
|
"data-tip": es(Nt, zt) ?? void 0,
|
|
81485
|
-
children: es(Nt, zt) != null ? `${((
|
|
81485
|
+
children: es(Nt, zt) != null ? `${((Mi = J[zt]) == null ? void 0 : Mi.type) === "count" && Td(zt) ? "📎 " : ""}${sl(es(Nt, zt) ?? "", zt, Nt)}` : /* @__PURE__ */ t("span", { className: "inline-block h-3.5 w-16 animate-pulse rounded bg-slate-100 dark:bg-[hsl(var(--nvr-skeleton))]" })
|
|
81486
81486
|
}
|
|
81487
81487
|
) : (Fs == null ? void 0 : Fs.one_collection) === "nivaro_users" && mt[zt] != null ? /* @__PURE__ */ t("span", { onClick: (Gn) => Gn.stopPropagation(), children: /* @__PURE__ */ t(wo, { userId: String(mt[zt]), size: "compact" }) }) : Fs != null && Fs.one_collection && mt[zt] != null && !Yc(Fs.one_collection) ? /* @__PURE__ */ t(
|
|
81488
81488
|
"button",
|
|
@@ -81526,7 +81526,7 @@ ${st}`).then(() => {
|
|
|
81526
81526
|
{
|
|
81527
81527
|
collection: e,
|
|
81528
81528
|
field: zt,
|
|
81529
|
-
fieldType: ((
|
|
81529
|
+
fieldType: ((Ri = On.get(zt)) == null ? void 0 : Ri.type) ?? null,
|
|
81530
81530
|
value: mt[zt],
|
|
81531
81531
|
relations: wn
|
|
81532
81532
|
}
|
|
@@ -81829,7 +81829,7 @@ function Xde({
|
|
|
81829
81829
|
y && "bg-amber-50/70 dark:bg-amber-400/10"
|
|
81830
81830
|
),
|
|
81831
81831
|
children: [
|
|
81832
|
-
/* @__PURE__ */ t("td", { className: "px-3 py-1.5 text-slate-500 dark:text-muted-foreground", children:
|
|
81832
|
+
/* @__PURE__ */ t("td", { className: "px-3 py-1.5 text-slate-500 dark:text-muted-foreground", children: wi(b.field) }),
|
|
81833
81833
|
x.map((v, g) => /* @__PURE__ */ t(
|
|
81834
81834
|
"td",
|
|
81835
81835
|
{
|
|
@@ -83568,7 +83568,7 @@ function hce({
|
|
|
83568
83568
|
/* @__PURE__ */ t("span", { className: "line-clamp-2 break-words text-slate-800 dark:text-slate-100", children: D.deleted_at ? /* @__PURE__ */ t("em", { className: "text-slate-500 dark:text-slate-400", children: "Deleted" }) : D.message || /* @__PURE__ */ t("em", { className: "text-slate-500 dark:text-slate-400", children: "(no text)" }) }),
|
|
83569
83569
|
(D.attachment_count > 0 || D.reaction_count > 0 || D.edited_at || D.masquerade) && /* @__PURE__ */ s("span", { className: "mt-0.5 flex flex-wrap gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
83570
83570
|
D.attachment_count > 0 && /* @__PURE__ */ s("span", { className: "inline-flex items-center gap-0.5", children: [
|
|
83571
|
-
/* @__PURE__ */ t(
|
|
83571
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
83572
83572
|
" ",
|
|
83573
83573
|
D.attachment_count
|
|
83574
83574
|
] }),
|
|
@@ -83722,7 +83722,7 @@ function fce({
|
|
|
83722
83722
|
target: "_blank",
|
|
83723
83723
|
rel: "noreferrer",
|
|
83724
83724
|
children: [
|
|
83725
|
-
/* @__PURE__ */ t(
|
|
83725
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
83726
83726
|
" ",
|
|
83727
83727
|
m.name
|
|
83728
83728
|
]
|
|
@@ -83797,7 +83797,7 @@ function fce({
|
|
|
83797
83797
|
target: "_blank",
|
|
83798
83798
|
rel: "noreferrer",
|
|
83799
83799
|
children: [
|
|
83800
|
-
/* @__PURE__ */ t(
|
|
83800
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
83801
83801
|
" ",
|
|
83802
83802
|
p.name ?? `File ${p.id}`
|
|
83803
83803
|
]
|
|
@@ -84015,7 +84015,7 @@ function vce(e, n, r) {
|
|
|
84015
84015
|
}
|
|
84016
84016
|
}
|
|
84017
84017
|
function kce(e, n) {
|
|
84018
|
-
const r =
|
|
84018
|
+
const r = Ai(), a = Oe(), [l, i] = S(null), o = ke(/* @__PURE__ */ new Map()), d = ke(0);
|
|
84019
84019
|
$e(() => {
|
|
84020
84020
|
if (i(null), o.current.clear(), !!r)
|
|
84021
84021
|
return r.on("chat:bot-stream", (m) => {
|
|
@@ -84638,7 +84638,7 @@ function Mce({ channelId: e, th: n }) {
|
|
|
84638
84638
|
const l8 = {
|
|
84639
84639
|
hash: { icon: $f, label: "Hash" },
|
|
84640
84640
|
megaphone: { icon: FE, label: "Announcements" },
|
|
84641
|
-
users: { icon:
|
|
84641
|
+
users: { icon: Si, label: "People" },
|
|
84642
84642
|
briefcase: { icon: r9, label: "Business" },
|
|
84643
84643
|
wrench: { icon: y3, label: "Engineering" },
|
|
84644
84644
|
truck: { icon: n9, label: "Logistics" },
|
|
@@ -84944,7 +84944,7 @@ function c8({
|
|
|
84944
84944
|
/* @__PURE__ */ s("p", { className: "mt-1 whitespace-pre-wrap text-[12px] text-slate-700 dark:text-slate-200", children: [
|
|
84945
84945
|
h.message,
|
|
84946
84946
|
h.attachments.length > 0 && /* @__PURE__ */ s("span", { className: "ml-1 inline-flex items-center gap-0.5 text-[11px] text-slate-500", children: [
|
|
84947
|
-
/* @__PURE__ */ t(
|
|
84947
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
84948
84948
|
" ",
|
|
84949
84949
|
h.attachments.length
|
|
84950
84950
|
] })
|
|
@@ -85217,7 +85217,7 @@ function Dce({
|
|
|
85217
85217
|
onClick: () => n({ ...e, has_attachment: !e.has_attachment }),
|
|
85218
85218
|
"data-chat-filter": "files",
|
|
85219
85219
|
children: [
|
|
85220
|
-
/* @__PURE__ */ t(
|
|
85220
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
85221
85221
|
" Has files"
|
|
85222
85222
|
]
|
|
85223
85223
|
}
|
|
@@ -86616,7 +86616,7 @@ const oue = nK(function({
|
|
|
86616
86616
|
"aria-hidden": !0
|
|
86617
86617
|
}
|
|
86618
86618
|
),
|
|
86619
|
-
/* @__PURE__ */ t(
|
|
86619
|
+
/* @__PURE__ */ t(Ni, { className: "relative h-3 w-3 shrink-0 opacity-60" }),
|
|
86620
86620
|
/* @__PURE__ */ t("span", { className: "relative truncate", children: we.error ? `${we.name} — ${we.error}` : we.name }),
|
|
86621
86621
|
!we.id && !we.error && /* @__PURE__ */ s("span", { className: "relative tabular-nums text-slate-500", children: [
|
|
86622
86622
|
Math.round(we.progress * 100),
|
|
@@ -86774,7 +86774,7 @@ const oue = nK(function({
|
|
|
86774
86774
|
className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-200/70 hover:text-slate-700 dark:text-slate-400 dark:hover:bg-white/10 dark:hover:text-slate-100",
|
|
86775
86775
|
"aria-label": "Attach a file",
|
|
86776
86776
|
title: "Attach a file (or paste / drop one)",
|
|
86777
|
-
children: /* @__PURE__ */ t(
|
|
86777
|
+
children: /* @__PURE__ */ t(Ni, { className: "h-4 w-4", strokeWidth: 2 })
|
|
86778
86778
|
}
|
|
86779
86779
|
),
|
|
86780
86780
|
/* @__PURE__ */ t(
|
|
@@ -87581,7 +87581,7 @@ function bue({
|
|
|
87581
87581
|
className: "flex items-center gap-1 truncate text-[11px] text-slate-500 dark:text-slate-400",
|
|
87582
87582
|
"data-chat-member-count": !0,
|
|
87583
87583
|
children: [
|
|
87584
|
-
/* @__PURE__ */ t(
|
|
87584
|
+
/* @__PURE__ */ t(Si, { className: "h-3 w-3" }),
|
|
87585
87585
|
o
|
|
87586
87586
|
]
|
|
87587
87587
|
}
|
|
@@ -87598,7 +87598,7 @@ function bue({
|
|
|
87598
87598
|
"aria-label": `${o} — show members`,
|
|
87599
87599
|
"data-chat-member-count": !0,
|
|
87600
87600
|
children: [
|
|
87601
|
-
/* @__PURE__ */ t(
|
|
87601
|
+
/* @__PURE__ */ t(Si, { className: "h-3 w-3 shrink-0" }),
|
|
87602
87602
|
/* @__PURE__ */ t("span", { className: "truncate", children: o })
|
|
87603
87603
|
]
|
|
87604
87604
|
}
|
|
@@ -88710,7 +88710,7 @@ function dA({
|
|
|
88710
88710
|
fn ? "border-white/30 bg-white/10" : "border-slate-200 bg-white dark:border-border dark:bg-card"
|
|
88711
88711
|
),
|
|
88712
88712
|
children: [
|
|
88713
|
-
/* @__PURE__ */ t(
|
|
88713
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3 shrink-0 opacity-60" }),
|
|
88714
88714
|
/* @__PURE__ */ t("span", { className: "truncate", children: Fr })
|
|
88715
88715
|
]
|
|
88716
88716
|
}
|
|
@@ -89466,7 +89466,7 @@ function Oue({ channel: e, onLeft: n }) {
|
|
|
89466
89466
|
),
|
|
89467
89467
|
"data-chat-group-members": !0,
|
|
89468
89468
|
children: [
|
|
89469
|
-
/* @__PURE__ */ t(
|
|
89469
|
+
/* @__PURE__ */ t(Si, { className: "h-3.5 w-3.5", strokeWidth: 2 }),
|
|
89470
89470
|
d.length > 0 && d.length
|
|
89471
89471
|
]
|
|
89472
89472
|
}
|
|
@@ -89885,7 +89885,7 @@ function pA({
|
|
|
89885
89885
|
title: "New group conversation",
|
|
89886
89886
|
className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-md border border-slate-200 text-slate-500 hover:bg-slate-50 dark:border-border dark:text-slate-400 dark:hover:bg-muted",
|
|
89887
89887
|
"data-chat-new-group": !0,
|
|
89888
|
-
children: /* @__PURE__ */ t(
|
|
89888
|
+
children: /* @__PURE__ */ t(Si, { className: "h-3.5 w-3.5", strokeWidth: 2 })
|
|
89889
89889
|
}
|
|
89890
89890
|
)
|
|
89891
89891
|
] }),
|
|
@@ -90064,7 +90064,7 @@ function pA({
|
|
|
90064
90064
|
"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-slate-100 text-slate-500 dark:bg-muted dark:text-slate-400",
|
|
90065
90065
|
R.kind === "dm" && d.me && fc(R.room, d.me.id) && "hidden"
|
|
90066
90066
|
),
|
|
90067
|
-
children: R.kind === "dm" ? /* @__PURE__ */ t(p3, { className: "h-4 w-4", strokeWidth: 1.8 }) : (W = R.channel) != null && W.is_direct ? /* @__PURE__ */ t(
|
|
90067
|
+
children: R.kind === "dm" ? /* @__PURE__ */ t(p3, { className: "h-4 w-4", strokeWidth: 1.8 }) : (W = R.channel) != null && W.is_direct ? /* @__PURE__ */ t(Si, { className: "h-4 w-4", strokeWidth: 1.8 }) : /* @__PURE__ */ t($f, { className: "h-4 w-4", strokeWidth: 1.8 })
|
|
90068
90068
|
}
|
|
90069
90069
|
),
|
|
90070
90070
|
/* @__PURE__ */ s("span", { className: "min-w-0 flex-1", children: [
|
|
@@ -92202,7 +92202,7 @@ function lme({ profile: e }) {
|
|
|
92202
92202
|
disabled: $.length === 0,
|
|
92203
92203
|
className: "inline-flex h-7 items-center gap-1 rounded-md px-2 text-[11.5px] font-medium text-slate-600 hover:bg-muted disabled:opacity-50 dark:text-slate-300",
|
|
92204
92204
|
children: [
|
|
92205
|
-
/* @__PURE__ */ t(
|
|
92205
|
+
/* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" }),
|
|
92206
92206
|
" CSV"
|
|
92207
92207
|
]
|
|
92208
92208
|
}
|
|
@@ -92354,7 +92354,7 @@ function _8({
|
|
|
92354
92354
|
return /* @__PURE__ */ t(
|
|
92355
92355
|
Qa,
|
|
92356
92356
|
{
|
|
92357
|
-
icon: /* @__PURE__ */ t(
|
|
92357
|
+
icon: /* @__PURE__ */ t(Si, { className: "h-4 w-4" }),
|
|
92358
92358
|
title: "Team load",
|
|
92359
92359
|
hint: i ? [
|
|
92360
92360
|
`${i.total_reports} direct report${i.total_reports === 1 ? "" : "s"}`,
|
|
@@ -92555,7 +92555,7 @@ function dme({ profile: e }) {
|
|
|
92555
92555
|
]
|
|
92556
92556
|
}
|
|
92557
92557
|
),
|
|
92558
|
-
p && /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-red-600 dark:text-red-400", children:
|
|
92558
|
+
p && /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-red-600 dark:text-red-400", children: qi(p, "Could not explain") }),
|
|
92559
92559
|
u && d && /* @__PURE__ */ s("div", { className: "mt-3 space-y-2", "data-person-why-result": u.access ? "yes" : "no", children: [
|
|
92560
92560
|
/* @__PURE__ */ s(
|
|
92561
92561
|
"p",
|
|
@@ -92609,7 +92609,7 @@ function cme({ profile: e }) {
|
|
|
92609
92609
|
onSuccess: () => {
|
|
92610
92610
|
Me.success(`Sent to ${e.first_name ?? e.name}`), a(!1), i(""), d("");
|
|
92611
92611
|
},
|
|
92612
|
-
onError: (u) => Me.error(
|
|
92612
|
+
onError: (u) => Me.error(qi(u, "Could not send"))
|
|
92613
92613
|
});
|
|
92614
92614
|
return /* @__PURE__ */ s(qn, { open: r, onOpenChange: a, children: [
|
|
92615
92615
|
/* @__PURE__ */ t(An, { asChild: !0, children: /* @__PURE__ */ s(
|
|
@@ -93073,7 +93073,7 @@ function gme({
|
|
|
93073
93073
|
return /* @__PURE__ */ t(Tl, { open: e, onOpenChange: n, children: /* @__PURE__ */ s(xl, { className: "max-w-lg", children: [
|
|
93074
93074
|
/* @__PURE__ */ s(hs, { children: [
|
|
93075
93075
|
/* @__PURE__ */ t(fs, { children: o ? "Edit subscription" : "New subscription" }),
|
|
93076
|
-
/* @__PURE__ */ t(
|
|
93076
|
+
/* @__PURE__ */ t(Ci, { children: o ? "Change what you are told about and how it reaches you." : "Get told when something happens in a collection — instantly or folded into a digest." })
|
|
93077
93077
|
] }),
|
|
93078
93078
|
/* @__PURE__ */ t(Bl, { children: e && /* @__PURE__ */ t(
|
|
93079
93079
|
xme,
|
|
@@ -94105,7 +94105,7 @@ function qme({ profile: e }) {
|
|
|
94105
94105
|
onSuccess: () => {
|
|
94106
94106
|
o(null), r(), Me.success("Access saved");
|
|
94107
94107
|
},
|
|
94108
|
-
onError: (p) => Me.error(
|
|
94108
|
+
onError: (p) => Me.error(qi(p, "Could not save access"))
|
|
94109
94109
|
}), m = [
|
|
94110
94110
|
{ value: "", label: "No role" },
|
|
94111
94111
|
...a.map((p) => ({ value: p.id, label: p.admin_access ? `${p.name} · admin` : p.name }))
|
|
@@ -94356,7 +94356,7 @@ function q8({ userId: e }) {
|
|
|
94356
94356
|
onSuccess: () => {
|
|
94357
94357
|
r.invalidateQueries({ queryKey: ["nvr-user-scopes", e] }), r.invalidateQueries({ queryKey: ["nvr-person-profile", e] }), r.invalidateQueries({ queryKey: ["nvr-my-scopes"] }), r.invalidateQueries({ queryKey: ["nvr-profile-scopes"] });
|
|
94358
94358
|
},
|
|
94359
|
-
onError: (c) => Me.error(
|
|
94359
|
+
onError: (c) => Me.error(qi(c, "Could not save scopes"))
|
|
94360
94360
|
}), [i, o] = S(null), d = async (c, u) => {
|
|
94361
94361
|
o({ dimension: c, values: u, loading: !0, impact: null });
|
|
94362
94362
|
try {
|
|
@@ -94524,7 +94524,7 @@ function Lme({ profile: e }) {
|
|
|
94524
94524
|
`${v.missing > 0 ? "Not in the directory" : "Disabled in Azure"}${v.suspended > 0 ? " — suspended" : ""}`
|
|
94525
94525
|
);
|
|
94526
94526
|
},
|
|
94527
|
-
onError: (v) => Me.error(
|
|
94527
|
+
onError: (v) => Me.error(qi(v, "Directory sync failed"))
|
|
94528
94528
|
});
|
|
94529
94529
|
if (l.isLoading || !((b = l.data) != null && b.configured)) return null;
|
|
94530
94530
|
const d = e, c = (v) => {
|
|
@@ -94567,7 +94567,7 @@ function Lme({ profile: e }) {
|
|
|
94567
94567
|
]
|
|
94568
94568
|
}
|
|
94569
94569
|
),
|
|
94570
|
-
l.data.granted ? i.isLoading ? /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-slate-400", children: "Looking up the directory…" }) : i.isError ? /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-red-600 dark:text-red-400", children:
|
|
94570
|
+
l.data.granted ? i.isLoading ? /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-slate-400", children: "Looking up the directory…" }) : i.isError ? /* @__PURE__ */ t("p", { className: "mt-3 text-[12px] text-red-600 dark:text-red-400", children: qi(i.error, "The directory lookup failed.") }) : u ? /* @__PURE__ */ s("div", { className: "mt-3 space-y-3", children: [
|
|
94571
94571
|
/* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2 text-[12px]", children: [
|
|
94572
94572
|
/* @__PURE__ */ t("span", { className: "font-medium text-slate-800 dark:text-foreground", children: u.display_name ?? `${u.first_name ?? ""} ${u.last_name ?? ""}`.trim() }),
|
|
94573
94573
|
u.upn && u.upn.toLowerCase() !== e.email.toLowerCase() && /* @__PURE__ */ s("span", { className: "text-slate-400", children: [
|
|
@@ -94621,13 +94621,13 @@ function Eme({ profile: e }) {
|
|
|
94621
94621
|
onSuccess: (p) => {
|
|
94622
94622
|
l(p), o(!0), r(), Me.success("Token generated — copy it now, it is shown once");
|
|
94623
94623
|
},
|
|
94624
|
-
onError: (p) => Me.error(
|
|
94624
|
+
onError: (p) => Me.error(qi(p, "Could not generate a token"))
|
|
94625
94625
|
}), c = Xe({
|
|
94626
94626
|
mutationFn: () => n.request(zn(`/users/${e.id}/token`)),
|
|
94627
94627
|
onSuccess: () => {
|
|
94628
94628
|
l(null), o(!1), r(), Me.success("Token revoked");
|
|
94629
94629
|
},
|
|
94630
|
-
onError: (p) => Me.error(
|
|
94630
|
+
onError: (p) => Me.error(qi(p, "Could not revoke the token"))
|
|
94631
94631
|
}), u = !!((m = e.admin) != null && m.has_static_token) || !!a;
|
|
94632
94632
|
return /* @__PURE__ */ t(
|
|
94633
94633
|
Qa,
|
|
@@ -94723,7 +94723,7 @@ function Mme({ userId: e }) {
|
|
|
94723
94723
|
onSuccess: () => {
|
|
94724
94724
|
r.invalidateQueries({ queryKey: ["nvr-user-sessions", e] }), Me.success("Session revoked");
|
|
94725
94725
|
},
|
|
94726
|
-
onError: (i) => Me.error(
|
|
94726
|
+
onError: (i) => Me.error(qi(i, "Could not revoke"))
|
|
94727
94727
|
});
|
|
94728
94728
|
return /* @__PURE__ */ t(
|
|
94729
94729
|
Qa,
|
|
@@ -95873,7 +95873,7 @@ function ape({ profile: e }) {
|
|
|
95873
95873
|
onSuccess: ({ sockets: d }) => Me.success(
|
|
95874
95874
|
d > 0 ? `Reload pushed to ${d} open tab${d === 1 ? "" : "s"}` : "Reload sent — they have no tab connected to this node right now"
|
|
95875
95875
|
),
|
|
95876
|
-
onError: (d) => Me.error(
|
|
95876
|
+
onError: (d) => Me.error(qi(d, "Failed to push the reload"))
|
|
95877
95877
|
});
|
|
95878
95878
|
return /* @__PURE__ */ s(
|
|
95879
95879
|
Qa,
|
|
@@ -96009,7 +96009,7 @@ function lpe({ profile: e }) {
|
|
|
96009
96009
|
onSuccess: (v) => {
|
|
96010
96010
|
m(v), Me.success("Offboarding complete"), f(), r();
|
|
96011
96011
|
},
|
|
96012
|
-
onError: (v) => Me.error(
|
|
96012
|
+
onError: (v) => Me.error(qi(v, "Offboarding failed"))
|
|
96013
96013
|
}), b = Object.values((p == null ? void 0 : p.holdings) ?? {}).reduce((v, g) => v + g, 0), [x, y] = S("");
|
|
96014
96014
|
return /* @__PURE__ */ t(
|
|
96015
96015
|
Qa,
|
|
@@ -96104,13 +96104,13 @@ function ipe({ profile: e }) {
|
|
|
96104
96104
|
Be(`/offboarding/${e.id}/merge`, { into: a == null ? void 0 : a.id, dry_run: !0 })
|
|
96105
96105
|
).then((p) => p.data),
|
|
96106
96106
|
onSuccess: (p) => o(p.references),
|
|
96107
|
-
onError: (p) => Me.error(
|
|
96107
|
+
onError: (p) => Me.error(qi(p, "Preview failed"))
|
|
96108
96108
|
}), m = Xe({
|
|
96109
96109
|
mutationFn: () => n.request(Be(`/offboarding/${e.id}/merge`, { into: a == null ? void 0 : a.id })),
|
|
96110
96110
|
onSuccess: () => {
|
|
96111
96111
|
Me.success("Accounts merged — the duplicate is suspended"), o(null), c(""), r();
|
|
96112
96112
|
},
|
|
96113
|
-
onError: (p) => Me.error(
|
|
96113
|
+
onError: (p) => Me.error(qi(p, "Merge failed"))
|
|
96114
96114
|
});
|
|
96115
96115
|
return /* @__PURE__ */ t(
|
|
96116
96116
|
Qa,
|
|
@@ -96187,7 +96187,7 @@ function ope({ profile: e }) {
|
|
|
96187
96187
|
const n = Oe(), [r, a] = S(null), l = `/users/${encodeURIComponent(e.id)}/ai-memory`, i = Xe({
|
|
96188
96188
|
mutationFn: () => n.request(le(l)).then((d) => d.data.notes ?? []),
|
|
96189
96189
|
onSuccess: a,
|
|
96190
|
-
onError: (d) => Me.error(
|
|
96190
|
+
onError: (d) => Me.error(qi(d, "Could not read their Ask AI memory"))
|
|
96191
96191
|
}), o = Xe({
|
|
96192
96192
|
mutationFn: (d) => n.request(
|
|
96193
96193
|
zn(d ? `${l}/${encodeURIComponent(d)}` : l)
|
|
@@ -96197,7 +96197,7 @@ function ope({ profile: e }) {
|
|
|
96197
96197
|
c ? "Note removed" : d > 0 ? `Cleared ${d} note${d === 1 ? "" : "s"}` : "Nothing to clear"
|
|
96198
96198
|
);
|
|
96199
96199
|
},
|
|
96200
|
-
onError: (d) => Me.error(
|
|
96200
|
+
onError: (d) => Me.error(qi(d, "Could not clear their Ask AI memory"))
|
|
96201
96201
|
});
|
|
96202
96202
|
return /* @__PURE__ */ t(
|
|
96203
96203
|
Qa,
|
|
@@ -96388,7 +96388,7 @@ function upe({ target: e, source: n }) {
|
|
|
96388
96388
|
})
|
|
96389
96389
|
), m(k);
|
|
96390
96390
|
} catch (g) {
|
|
96391
|
-
Me.error(
|
|
96391
|
+
Me.error(qi(g, "Could not build the plan"));
|
|
96392
96392
|
} finally {
|
|
96393
96393
|
f(null);
|
|
96394
96394
|
}
|
|
@@ -96400,7 +96400,7 @@ function upe({ target: e, source: n }) {
|
|
|
96400
96400
|
Be(`/users/${e.id}/copy-access`, { from: n.id, include: i, dry_run: !1 })
|
|
96401
96401
|
), Me.success(`${h} now has ${b}'s access`), c(null), l(), a.invalidateQueries({ queryKey: ["nvr-user-scopes", e.id] });
|
|
96402
96402
|
} catch (g) {
|
|
96403
|
-
Me.error(
|
|
96403
|
+
Me.error(qi(g, "Could not copy access"));
|
|
96404
96404
|
} finally {
|
|
96405
96405
|
f(null);
|
|
96406
96406
|
}
|
|
@@ -96875,7 +96875,7 @@ function wpe({ profile: e, isAdmin: n }) {
|
|
|
96875
96875
|
onSuccess: () => {
|
|
96876
96876
|
c(null), o(!1), a(), Me.success("Details saved");
|
|
96877
96877
|
},
|
|
96878
|
-
onError: (f) => Me.error(
|
|
96878
|
+
onError: (f) => Me.error(qi(f, "Could not save"))
|
|
96879
96879
|
});
|
|
96880
96880
|
return /* @__PURE__ */ t(
|
|
96881
96881
|
Qa,
|
|
@@ -97060,7 +97060,7 @@ function Npe({ profile: e }) {
|
|
|
97060
97060
|
}
|
|
97061
97061
|
function _pe({ profile: e }) {
|
|
97062
97062
|
const n = Lr(), r = n.consoleUrl ? n.consoleUrl("/user-groups") : "/user-groups", a = e.org_chain.length > 0 || !!e.manager_external;
|
|
97063
|
-
return e.direct_reports.length === 0 && e.teams.length === 0 && !a && e.peers.length === 0 ? /* @__PURE__ */ t(Qa, { icon: /* @__PURE__ */ t(
|
|
97063
|
+
return e.direct_reports.length === 0 && e.teams.length === 0 && !a && e.peers.length === 0 ? /* @__PURE__ */ t(Qa, { icon: /* @__PURE__ */ t(Si, { className: "h-4 w-4" }), title: "People", testId: "people", children: /* @__PURE__ */ t(zl, { children: "No manager on file, no direct reports and not on a team yet." }) }) : /* @__PURE__ */ s(Qa, { icon: /* @__PURE__ */ t(Si, { className: "h-4 w-4" }), title: "People", testId: "people", children: [
|
|
97064
97064
|
a && /* @__PURE__ */ s("div", { className: "mb-4", children: [
|
|
97065
97065
|
/* @__PURE__ */ t("p", { className: "mb-1.5 text-[11px] font-medium uppercase tracking-wide text-slate-400", children: "Reports up through" }),
|
|
97066
97066
|
/* @__PURE__ */ t(Spe, { profile: e })
|
|
@@ -99490,7 +99490,7 @@ function x5e({ className: e, onNotice: n }) {
|
|
|
99490
99490
|
const b = i.consoleUrl ? i.consoleUrl("/coverage-gaps") : "/coverage-gaps";
|
|
99491
99491
|
return /* @__PURE__ */ s("div", { className: F("flex flex-1 min-h-0 flex-col", e), "data-nvr-delegation-console": !0, children: [
|
|
99492
99492
|
/* @__PURE__ */ t("header", { className: "shrink-0 border-b border-slate-200 bg-white px-6 py-4 dark:border-border dark:bg-card", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-2.5", children: [
|
|
99493
|
-
/* @__PURE__ */ t(
|
|
99493
|
+
/* @__PURE__ */ t(Si, { className: "h-5 w-5 text-muted-foreground" }),
|
|
99494
99494
|
/* @__PURE__ */ s("div", { children: [
|
|
99495
99495
|
/* @__PURE__ */ t("h1", { className: "text-[17px] font-semibold text-slate-900 dark:text-foreground", children: "Delegation" }),
|
|
99496
99496
|
/* @__PURE__ */ t("p", { className: "mt-0.5 text-[12.5px] text-slate-500 dark:text-muted-foreground", children: "Who is out, who covers them, what expires soon, and whose absence leaves approvals with nobody — plus your own delegate." })
|
|
@@ -105761,7 +105761,7 @@ const Hfe = Hl(function({
|
|
|
105761
105761
|
const [o, d] = S(!1), [c, u] = S(() => /* @__PURE__ */ new Set()), m = Se(() => n.filter((w) => !c.has(WN(w))), [n, c]), p = ke(!1);
|
|
105762
105762
|
m.length && (p.current = !0);
|
|
105763
105763
|
const f = ke(null), h = ke(null), b = n.every((w) => (w.kind ?? "silence") === "silence");
|
|
105764
|
-
|
|
105764
|
+
Ti(() => {
|
|
105765
105765
|
var _, C;
|
|
105766
105766
|
const w = h.current;
|
|
105767
105767
|
if (!w) return;
|
|
@@ -106025,7 +106025,7 @@ function a0e({
|
|
|
106025
106025
|
clicks: h
|
|
106026
106026
|
}) {
|
|
106027
106027
|
const b = ke(null), [x, y] = S(0), [v, g] = S(null), [k, w] = S(null), $ = f ? p ?? null : k, N = f ?? w, _ = wr(), C = Se(() => Vhe(e), [e]);
|
|
106028
|
-
|
|
106028
|
+
Ti(() => {
|
|
106029
106029
|
const de = b.current;
|
|
106030
106030
|
if (!de) return;
|
|
106031
106031
|
const ne = () => y(de.clientWidth);
|
|
@@ -107082,7 +107082,7 @@ function k5e() {
|
|
|
107082
107082
|
},
|
|
107083
107083
|
children: [
|
|
107084
107084
|
/* @__PURE__ */ t(An, { asChild: !0, children: /* @__PURE__ */ s(Ve, { size: "sm", variant: "outline", "data-hv-author-roles": !0, children: [
|
|
107085
|
-
/* @__PURE__ */ t(
|
|
107085
|
+
/* @__PURE__ */ t(Si, { className: "mr-1 h-4 w-4", "aria-hidden": !0 }),
|
|
107086
107086
|
" Who can record"
|
|
107087
107087
|
] }) }),
|
|
107088
107088
|
/* @__PURE__ */ s($n, { align: "end", className: "w-[min(320px,calc(100vw-2rem))] space-y-3 text-[13px]", children: [
|
|
@@ -107553,7 +107553,7 @@ function N0e({
|
|
|
107553
107553
|
e,
|
|
107554
107554
|
"” permanently?"
|
|
107555
107555
|
] }),
|
|
107556
|
-
/* @__PURE__ */ t(
|
|
107556
|
+
/* @__PURE__ */ t(Ci, { className: "text-[13px] text-muted-foreground", children: "This takes the video out of Nivaro for good and cannot be undone. It removes:" })
|
|
107557
107557
|
] }),
|
|
107558
107558
|
/* @__PURE__ */ s(Bl, { className: "space-y-3", children: [
|
|
107559
107559
|
/* @__PURE__ */ t("ul", { className: "list-disc space-y-1 pl-5 text-[13px] marker:text-muted-foreground", children: w0e.map((f) => /* @__PURE__ */ t("li", { children: f }, f)) }),
|
|
@@ -111889,7 +111889,7 @@ function abe({
|
|
|
111889
111889
|
children: /* @__PURE__ */ s(xl, { className: "flex max-h-[88vh] w-[min(920px,94vw)] max-w-none flex-col overflow-hidden dark:bg-card", children: [
|
|
111890
111890
|
/* @__PURE__ */ s(hs, { className: "shrink-0", children: [
|
|
111891
111891
|
/* @__PURE__ */ t(fs, { className: "text-[17px] dark:text-foreground", children: "New import" }),
|
|
111892
|
-
/* @__PURE__ */ t(
|
|
111892
|
+
/* @__PURE__ */ t(Ci, { className: "text-[12.5px]", children: "Choose an import and a file. The file is checked first, and nothing is queued until you confirm." })
|
|
111893
111893
|
] }),
|
|
111894
111894
|
/* @__PURE__ */ t(Bl, { className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ s("div", { className: "grid grid-cols-1 gap-5 lg:grid-cols-[300px_1fr]", children: [
|
|
111895
111895
|
/* @__PURE__ */ s("section", { className: "flex min-h-0 flex-col", children: [
|
|
@@ -112785,7 +112785,7 @@ function vbe({
|
|
|
112785
112785
|
`import-run-${n}-unmatched.csv`
|
|
112786
112786
|
),
|
|
112787
112787
|
children: [
|
|
112788
|
-
/* @__PURE__ */ t(
|
|
112788
|
+
/* @__PURE__ */ t(_i, { className: "h-3 w-3" }),
|
|
112789
112789
|
" Values as CSV"
|
|
112790
112790
|
]
|
|
112791
112791
|
}
|
|
@@ -113037,7 +113037,7 @@ function Nbe({
|
|
|
113037
113037
|
`import-run-${e}${r ? `-${r}` : ""}.csv`
|
|
113038
113038
|
),
|
|
113039
113039
|
children: [
|
|
113040
|
-
u ? /* @__PURE__ */ t(Rt, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(
|
|
113040
|
+
u ? /* @__PURE__ */ t(Rt, { className: "h-3 w-3 animate-spin" }) : /* @__PURE__ */ t(_i, { className: "h-3 w-3" }),
|
|
113041
113041
|
r ? `${kf[r].label} as CSV` : "All as CSV"
|
|
113042
113042
|
]
|
|
113043
113043
|
}
|
|
@@ -113520,7 +113520,7 @@ function Cbe({
|
|
|
113520
113520
|
Xd
|
|
113521
113521
|
),
|
|
113522
113522
|
"aria-label": "Download the source file",
|
|
113523
|
-
children: /* @__PURE__ */ t(
|
|
113523
|
+
children: /* @__PURE__ */ t(_i, { className: "h-3.5 w-3.5" })
|
|
113524
113524
|
}
|
|
113525
113525
|
)
|
|
113526
113526
|
] }) : /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-600 dark:text-muted-foreground", children: "No file is attached, so this run cannot be queued again." })
|
|
@@ -117697,7 +117697,7 @@ function Qxe({ job: e, onOpen: n }) {
|
|
|
117697
117697
|
"data-job-download": !0,
|
|
117698
117698
|
className: "inline-flex items-center gap-1 rounded-full border border-nvr-cyan/50 bg-nvr-cyan/10 px-2 py-0.5 text-[11px] font-medium text-[#0e7490] hover:bg-nvr-cyan/20 dark:text-[#67e8f9]",
|
|
117699
117699
|
children: [
|
|
117700
|
-
/* @__PURE__ */ t(
|
|
117700
|
+
/* @__PURE__ */ t(_i, { className: "h-3 w-3" }),
|
|
117701
117701
|
"Download"
|
|
117702
117702
|
]
|
|
117703
117703
|
}
|
|
@@ -119084,7 +119084,7 @@ function T5e({
|
|
|
119084
119084
|
var H, G;
|
|
119085
119085
|
const B = ((H = e == null ? void 0 : e.support) == null ? void 0 : H.call(e, String(W))) ?? ((G = o.consoleUrl) == null ? void 0 : G.call(o, `/support?ticket=${W}`)) ?? `/support?ticket=${W}`;
|
|
119086
119086
|
n ? n(B) : o.navigate(B);
|
|
119087
|
-
}, u =
|
|
119087
|
+
}, u = Ai(), [m, p] = S(!1), [f, h] = S(() => {
|
|
119088
119088
|
try {
|
|
119089
119089
|
const W = localStorage.getItem("nvr_mywork_sections");
|
|
119090
119090
|
if (W) {
|
|
@@ -123926,7 +123926,7 @@ function Qge(e, n) {
|
|
|
123926
123926
|
const Hge = /* @__PURE__ */ new Set(["ink", "muted"]), Vge = 150, nL = 8;
|
|
123927
123927
|
function Jge(e, n) {
|
|
123928
123928
|
const r = ke(null), a = ke(null);
|
|
123929
|
-
return
|
|
123929
|
+
return Ti(() => {
|
|
123930
123930
|
const l = r.current, i = a.current;
|
|
123931
123931
|
if (!l || !i) {
|
|
123932
123932
|
n(!0);
|
|
@@ -124072,7 +124072,7 @@ function W7({
|
|
|
124072
124072
|
let b = p.current.get(h);
|
|
124073
124073
|
return b || (b = (x) => u((y) => y[h] === !x ? y : { ...y, [h]: !x }), p.current.set(h, b)), b;
|
|
124074
124074
|
};
|
|
124075
|
-
return
|
|
124075
|
+
return Ti(() => {
|
|
124076
124076
|
const h = l.current;
|
|
124077
124077
|
if (!h || !i) return;
|
|
124078
124078
|
const b = () => {
|
|
@@ -127687,7 +127687,7 @@ function wx({
|
|
|
127687
127687
|
placeholder: d
|
|
127688
127688
|
}) {
|
|
127689
127689
|
const [c, u] = S(!1), [m, p] = S(""), f = ke(null), h = ke(null), [b, x] = S(null);
|
|
127690
|
-
|
|
127690
|
+
Ti(() => {
|
|
127691
127691
|
if (!c) return;
|
|
127692
127692
|
const g = () => {
|
|
127693
127693
|
var _;
|
|
@@ -128123,7 +128123,7 @@ function Rye({ templateId: e }) {
|
|
|
128123
128123
|
"data-owner-matrix-versions": !0,
|
|
128124
128124
|
children: [
|
|
128125
128125
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
128126
|
-
/* @__PURE__ */ t(
|
|
128126
|
+
/* @__PURE__ */ t(Si, { className: "h-4 w-4 text-slate-400" }),
|
|
128127
128127
|
/* @__PURE__ */ t("h2", { className: "text-[13px] font-semibold text-slate-800 dark:text-slate-100", children: "Owner matrix versions" }),
|
|
128128
128128
|
d && d.length > 0 && /* @__PURE__ */ t("span", { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[10px] font-semibold text-slate-500 dark:bg-muted dark:text-muted-foreground", children: d.length }),
|
|
128129
128129
|
/* @__PURE__ */ t(
|
|
@@ -133049,7 +133049,7 @@ function I5e({
|
|
|
133049
133049
|
}
|
|
133050
133050
|
},
|
|
133051
133051
|
children: [
|
|
133052
|
-
/* @__PURE__ */ t(
|
|
133052
|
+
/* @__PURE__ */ t(_i, { className: "mr-1.5 h-3.5 w-3.5" }),
|
|
133053
133053
|
" Export"
|
|
133054
133054
|
]
|
|
133055
133055
|
}
|
|
@@ -137073,7 +137073,7 @@ function U5e({
|
|
|
137073
137073
|
} catch {
|
|
137074
137074
|
return "compact";
|
|
137075
137075
|
}
|
|
137076
|
-
}), [y, v] = S("table"), [g, k] = S(""), [w, $] = S({}), [N, _] = S(() => /* @__PURE__ */ new Set()), [C, q] = S(null), [A, T] = S(/* @__PURE__ */ new Set()), [L, E] = S(null), [O, R] = S(null), [M, j] = S(0), J = tF(), D =
|
|
137076
|
+
}), [y, v] = S("table"), [g, k] = S(""), [w, $] = S({}), [N, _] = S(() => /* @__PURE__ */ new Set()), [C, q] = S(null), [A, T] = S(/* @__PURE__ */ new Set()), [L, E] = S(null), [O, R] = S(null), [M, j] = S(0), J = tF(), D = Ai(), P = ke({}).current, W = ke(/* @__PURE__ */ new Set()), [B, H] = S(0), [G, U] = S(0), V = ke(!1), K = ke([]), Y = ke(null), ae = ke(!1), de = ke(0), ne = ke("table");
|
|
137077
137077
|
ne.current = y;
|
|
137078
137078
|
const he = 25, { data: Z, error: se } = ue({
|
|
137079
137079
|
queryKey: ["queue-meta", e],
|
|
@@ -137819,7 +137819,7 @@ function U5e({
|
|
|
137819
137819
|
queryKey: ["queue-views", e],
|
|
137820
137820
|
queryFn: () => o.request(le(`/queues/${e}/views`)),
|
|
137821
137821
|
enabled: !!e
|
|
137822
|
-
}), [
|
|
137822
|
+
}), [Oi, ao] = S(null), [Li, _s] = S(!1), [wl, so] = S(""), [$d, Kn] = S(!1), [Cd, nc] = S(!1);
|
|
137823
137823
|
function El(X) {
|
|
137824
137824
|
const Ke = X.state ?? {};
|
|
137825
137825
|
p(Ke.scope ?? "all"), $({ ...Q.current, ...Ke.filters ?? {} }), k(Ke.sort ?? ""), q(Ke.group_by ?? null), Rr(Ke.columns ?? null), R(Ke.pins ?? null), Ke.view && v(Ze.includes(Ke.view) ? Ke.view : Ze[0]), h(1), ao(X.id);
|
|
@@ -139317,7 +139317,7 @@ function U5e({
|
|
|
139317
139317
|
title: "Revert to the queue default (filters, columns and sort cleared)",
|
|
139318
139318
|
className: F(
|
|
139319
139319
|
"inline-flex h-6 items-center rounded-full border px-2.5 text-[12px] transition-colors",
|
|
139320
|
-
|
|
139320
|
+
Oi == null ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
|
|
139321
139321
|
),
|
|
139322
139322
|
children: "Default"
|
|
139323
139323
|
}
|
|
@@ -139329,7 +139329,7 @@ function U5e({
|
|
|
139329
139329
|
{
|
|
139330
139330
|
className: F(
|
|
139331
139331
|
"group inline-flex h-6 items-center gap-1 rounded-full border px-2.5 text-[12px] transition-colors",
|
|
139332
|
-
|
|
139332
|
+
Oi === X.id ? "border-nvr-cyan/40 bg-nvr-cyan/10 text-slate-900 dark:text-white" : "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-900 dark:text-slate-300"
|
|
139333
139333
|
),
|
|
139334
139334
|
children: [
|
|
139335
139335
|
/* @__PURE__ */ t(
|
|
@@ -139369,7 +139369,7 @@ function U5e({
|
|
|
139369
139369
|
children: /* @__PURE__ */ t(Ip, { className: F("h-3 w-3", X.is_default && "fill-current") })
|
|
139370
139370
|
}
|
|
139371
139371
|
),
|
|
139372
|
-
(X.user === d || lo) &&
|
|
139372
|
+
(X.user === d || lo) && Oi === X.id && /* @__PURE__ */ t(
|
|
139373
139373
|
"button",
|
|
139374
139374
|
{
|
|
139375
139375
|
type: "button",
|
|
@@ -139388,7 +139388,7 @@ function U5e({
|
|
|
139388
139388
|
) : /* @__PURE__ */ t(av, { className: "h-3 w-3" })
|
|
139389
139389
|
}
|
|
139390
139390
|
),
|
|
139391
|
-
|
|
139391
|
+
Oi === X.id && /* @__PURE__ */ t(
|
|
139392
139392
|
"button",
|
|
139393
139393
|
{
|
|
139394
139394
|
type: "button",
|
|
@@ -139417,7 +139417,7 @@ function U5e({
|
|
|
139417
139417
|
X.id
|
|
139418
139418
|
);
|
|
139419
139419
|
}),
|
|
139420
|
-
/* @__PURE__ */ s(qn, { open:
|
|
139420
|
+
/* @__PURE__ */ s(qn, { open: Li, onOpenChange: _s, children: [
|
|
139421
139421
|
/* @__PURE__ */ t(An, { asChild: !0, children: /* @__PURE__ */ t(
|
|
139422
139422
|
"button",
|
|
139423
139423
|
{
|
|
@@ -139429,7 +139429,7 @@ function U5e({
|
|
|
139429
139429
|
) }),
|
|
139430
139430
|
/* @__PURE__ */ s($n, { className: "w-[240px] p-3", align: "end", children: [
|
|
139431
139431
|
(() => {
|
|
139432
|
-
const X = gs == null ? void 0 : gs.data.find((Ke) => Ke.id ===
|
|
139432
|
+
const X = gs == null ? void 0 : gs.data.find((Ke) => Ke.id === Oi);
|
|
139433
139433
|
return !X || X.user !== d && !lo ? null : /* @__PURE__ */ s(
|
|
139434
139434
|
"button",
|
|
139435
139435
|
{
|
|
@@ -139983,7 +139983,7 @@ function mke() {
|
|
|
139983
139983
|
return `w${Math.random().toString(36).slice(2, 12)}${Date.now().toString(36)}`;
|
|
139984
139984
|
}
|
|
139985
139985
|
function pke(e) {
|
|
139986
|
-
const n =
|
|
139986
|
+
const n = Ai(), [r, a] = S(!1), l = ke(e.onData);
|
|
139987
139987
|
l.current = e.onData;
|
|
139988
139988
|
const i = ke(e.onStale);
|
|
139989
139989
|
i.current = e.onStale;
|
|
@@ -143383,7 +143383,7 @@ const Q2 = Hl(function({
|
|
|
143383
143383
|
title: "Download as CSV",
|
|
143384
143384
|
className: "rounded p-0.5 text-slate-300 hover:text-slate-500",
|
|
143385
143385
|
onClick: () => Uke(r, Q),
|
|
143386
|
-
children: /* @__PURE__ */ t(
|
|
143386
|
+
children: /* @__PURE__ */ t(_i, { className: "h-3 w-3" })
|
|
143387
143387
|
}
|
|
143388
143388
|
),
|
|
143389
143389
|
/* @__PURE__ */ t(Pke, { reportId: n, widget: r, filterBar: o }),
|
|
@@ -145564,7 +145564,7 @@ function H5e({
|
|
|
145564
145564
|
/* @__PURE__ */ t(D5, { className: "h-4 w-4 text-amber-500" }),
|
|
145565
145565
|
" Report a problem"
|
|
145566
145566
|
] }),
|
|
145567
|
-
/* @__PURE__ */ t(
|
|
145567
|
+
/* @__PURE__ */ t(Ci, { className: "text-[12.5px] text-slate-500 dark:text-muted-foreground", children: "Tell us what went wrong. You can follow it under My requests." })
|
|
145568
145568
|
] }),
|
|
145569
145569
|
k != null ? /* @__PURE__ */ s("div", { className: "space-y-3 px-6 pb-5 pt-2", "data-report-problem-done": k, children: [
|
|
145570
145570
|
/* @__PURE__ */ s("p", { className: "text-[13px] text-slate-700 dark:text-slate-200", children: [
|
|
@@ -145980,7 +145980,7 @@ function t1e({
|
|
|
145980
145980
|
rel: "noreferrer",
|
|
145981
145981
|
className: "inline-flex items-center gap-1 rounded bg-slate-100 px-2 py-0.5 text-[11.5px] text-slate-700 hover:underline dark:bg-white/10 dark:text-slate-200",
|
|
145982
145982
|
children: [
|
|
145983
|
-
/* @__PURE__ */ t(
|
|
145983
|
+
/* @__PURE__ */ t(Ni, { className: "h-3 w-3" }),
|
|
145984
145984
|
$.title || $.filename_download || "File"
|
|
145985
145985
|
]
|
|
145986
145986
|
}
|
|
@@ -147032,7 +147032,7 @@ function KL(e, n) {
|
|
|
147032
147032
|
return !e.startsWith("/") || e.startsWith("//") ? null : { path: e.slice(0, 200), app: n.slice(0, 50) };
|
|
147033
147033
|
}
|
|
147034
147034
|
function t_e(e) {
|
|
147035
|
-
const n =
|
|
147035
|
+
const n = Ai(), { app: r, path: a, disabled: l } = e, i = ke(null), o = ke(a);
|
|
147036
147036
|
o.current = a, $e(() => {
|
|
147037
147037
|
if (!n || l || typeof window > "u") return;
|
|
147038
147038
|
const d = () => o.current ?? window.location.pathname, c = (f = !1) => {
|
|
@@ -147208,7 +147208,7 @@ function S5({
|
|
|
147208
147208
|
}
|
|
147209
147209
|
);
|
|
147210
147210
|
}
|
|
147211
|
-
function
|
|
147211
|
+
function ki(e, n) {
|
|
147212
147212
|
return { _method: "GET", _path: e, _params: n };
|
|
147213
147213
|
}
|
|
147214
147214
|
function au(e, n) {
|
|
@@ -147259,7 +147259,7 @@ function R1e(e, n, r) {
|
|
|
147259
147259
|
let y = !0;
|
|
147260
147260
|
p(!0), h(null);
|
|
147261
147261
|
const v = { limit: l };
|
|
147262
|
-
return a && (v.search = a), d && (v.filter = JSON.stringify(d)), e.request(
|
|
147262
|
+
return a && (v.search = a), d && (v.filter = JSON.stringify(d)), e.request(ki(`/items/${n}`, v)).then((g) => {
|
|
147263
147263
|
if (!y || x !== b.current) return;
|
|
147264
147264
|
const k = g.data ?? [];
|
|
147265
147265
|
u(
|
|
@@ -147552,7 +147552,7 @@ function D1e({
|
|
|
147552
147552
|
if (!(!r || !n || !i || !o))
|
|
147553
147553
|
try {
|
|
147554
147554
|
const L = await r.request(
|
|
147555
|
-
|
|
147555
|
+
ki(`/items/${i}`, {
|
|
147556
147556
|
filter: JSON.stringify({ [o]: { _eq: n } }),
|
|
147557
147557
|
limit: 200,
|
|
147558
147558
|
fields: "*"
|
|
@@ -147564,7 +147564,7 @@ function D1e({
|
|
|
147564
147564
|
}
|
|
147565
147565
|
}, [r, n, i, o]);
|
|
147566
147566
|
$e(() => {
|
|
147567
|
-
!r || !i || r.request(
|
|
147567
|
+
!r || !i || r.request(ki(`/field-config/${i}`)).then((L) => {
|
|
147568
147568
|
if (!v.current) return;
|
|
147569
147569
|
const E = (L.data ?? []).filter(
|
|
147570
147570
|
(O) => !O.field.startsWith("_") && O.field !== "id" && O.field !== o
|
|
@@ -147807,10 +147807,10 @@ function $I({
|
|
|
147807
147807
|
}
|
|
147808
147808
|
function P1e(e) {
|
|
147809
147809
|
var n, r, a, l;
|
|
147810
|
-
return [(n = e.first_name) == null ? void 0 : n[0], (r = e.last_name) == null ? void 0 : r[0]].filter(Boolean).join("").toUpperCase() || ((l = (a = e.email) == null ? void 0 : a[0]) == null ? void 0 : l.toUpperCase()) || "?";
|
|
147810
|
+
return e && ([(n = e.first_name) == null ? void 0 : n[0], (r = e.last_name) == null ? void 0 : r[0]].filter(Boolean).join("").toUpperCase() || ((l = (a = e.email) == null ? void 0 : a[0]) == null ? void 0 : l.toUpperCase())) || "?";
|
|
147811
147811
|
}
|
|
147812
147812
|
function I1e(e) {
|
|
147813
|
-
return [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email;
|
|
147813
|
+
return e ? [e.first_name, e.last_name].filter(Boolean).join(" ") || e.email : "Unknown";
|
|
147814
147814
|
}
|
|
147815
147815
|
function K1e(e) {
|
|
147816
147816
|
const n = Date.now() - new Date(e).getTime(), r = Math.floor(n / 6e4);
|
|
@@ -147825,59 +147825,74 @@ function U1e({
|
|
|
147825
147825
|
labelOverride: r,
|
|
147826
147826
|
defaultExpanded: a
|
|
147827
147827
|
}) {
|
|
147828
|
-
const l = qa(), [i, o] = S(!1), [d, c] = S([]), [u, m] = S(!1), [p, f] = S(""), [h, b] = S(!1), [x, y] = S(null), [v, g] = S(""), k = ke(!0),
|
|
147829
|
-
$e(() => (
|
|
147830
|
-
|
|
147828
|
+
const l = qa(), [i, o] = S(!1), [d, c] = S([]), [u, m] = S(!1), [p, f] = S(""), [h, b] = S(!1), [x, y] = S(null), [v, g] = S(""), [k, w] = S(null), [$, N] = S(null), [_, C] = S(!1), q = ke(!0), A = ke(!1);
|
|
147829
|
+
$e(() => (q.current = !0, () => {
|
|
147830
|
+
q.current = !1;
|
|
147831
147831
|
}), []), $e(() => {
|
|
147832
|
-
!
|
|
147832
|
+
!A.current && a !== void 0 && (A.current = !0, o(a));
|
|
147833
147833
|
}, [a]);
|
|
147834
|
-
const
|
|
147834
|
+
const T = Ct(async () => {
|
|
147835
147835
|
if (!(!l || !n)) {
|
|
147836
147836
|
m(!0);
|
|
147837
147837
|
try {
|
|
147838
|
-
const
|
|
147839
|
-
|
|
147838
|
+
const M = await l.request(
|
|
147839
|
+
ki("/comments", { collection: e, item: String(n) })
|
|
147840
147840
|
);
|
|
147841
|
-
|
|
147841
|
+
q.current && c(M.data ?? []);
|
|
147842
147842
|
} catch {
|
|
147843
|
-
|
|
147843
|
+
q.current && c([]);
|
|
147844
147844
|
} finally {
|
|
147845
|
-
|
|
147845
|
+
q.current && m(!1);
|
|
147846
147846
|
}
|
|
147847
147847
|
}
|
|
147848
147848
|
}, [l, e, n]);
|
|
147849
147849
|
$e(() => {
|
|
147850
|
-
|
|
147851
|
-
}, [
|
|
147852
|
-
async function
|
|
147853
|
-
if (
|
|
147850
|
+
T();
|
|
147851
|
+
}, [T]);
|
|
147852
|
+
async function L(M) {
|
|
147853
|
+
if (M.preventDefault(), !(!l || !p.trim() || h)) {
|
|
147854
147854
|
b(!0);
|
|
147855
147855
|
try {
|
|
147856
147856
|
await l.request(
|
|
147857
147857
|
au("/comments", { collection: e, item: String(n), text: p.trim() })
|
|
147858
|
-
), f(""), await
|
|
147858
|
+
), f(""), await T();
|
|
147859
147859
|
} catch {
|
|
147860
147860
|
} finally {
|
|
147861
|
-
|
|
147861
|
+
q.current && b(!1);
|
|
147862
147862
|
}
|
|
147863
147863
|
}
|
|
147864
147864
|
}
|
|
147865
|
-
async function
|
|
147865
|
+
async function E(M) {
|
|
147866
147866
|
if (!(!l || !v.trim()))
|
|
147867
147867
|
try {
|
|
147868
|
-
await l.request(H$(`/comments/${
|
|
147868
|
+
await l.request(H$(`/comments/${M}`, { text: v.trim() })), y(null), g(""), await T();
|
|
147869
147869
|
} catch {
|
|
147870
147870
|
}
|
|
147871
147871
|
}
|
|
147872
|
-
async function
|
|
147872
|
+
async function O(M) {
|
|
147873
|
+
if (l) {
|
|
147874
|
+
if (k === M) {
|
|
147875
|
+
w(null);
|
|
147876
|
+
return;
|
|
147877
|
+
}
|
|
147878
|
+
w(M), N(null), C(!1);
|
|
147879
|
+
try {
|
|
147880
|
+
const j = await l.request(ki(`/comments/${M}/history`));
|
|
147881
|
+
q.current && N(j.data ?? []);
|
|
147882
|
+
} catch {
|
|
147883
|
+
q.current && C(!0);
|
|
147884
|
+
}
|
|
147885
|
+
}
|
|
147886
|
+
}
|
|
147887
|
+
async function R(M) {
|
|
147873
147888
|
if (l)
|
|
147874
147889
|
try {
|
|
147875
|
-
await l.request(G1(`/comments/${
|
|
147890
|
+
await l.request(G1(`/comments/${M}`)), await T();
|
|
147876
147891
|
} catch {
|
|
147877
147892
|
}
|
|
147878
147893
|
}
|
|
147879
147894
|
return /* @__PURE__ */ s("div", { "data-nf-slot": "__comments__", "data-nf-slot-open": i ? "true" : "false", children: [
|
|
147880
|
-
/* @__PURE__ */ s("button", { type: "button", onClick: () => o((
|
|
147895
|
+
/* @__PURE__ */ s("button", { type: "button", onClick: () => o((M) => !M), "data-nf-slot-toggle": !0, children: [
|
|
147881
147896
|
/* @__PURE__ */ t(
|
|
147882
147897
|
"svg",
|
|
147883
147898
|
{
|
|
@@ -147895,10 +147910,10 @@ function U1e({
|
|
|
147895
147910
|
}
|
|
147896
147911
|
),
|
|
147897
147912
|
/* @__PURE__ */ t("span", { "data-nf-slot-label": !0, children: r ?? "Comments" }),
|
|
147898
|
-
!i && d.
|
|
147899
|
-
d.length,
|
|
147913
|
+
!i && d.some((M) => !M.deleted) && /* @__PURE__ */ s("span", { "data-nf-slot-count": !0, children: [
|
|
147914
|
+
d.filter((M) => !M.deleted).length,
|
|
147900
147915
|
" comment",
|
|
147901
|
-
d.length !== 1 ? "s" : ""
|
|
147916
|
+
d.filter((M) => !M.deleted).length !== 1 ? "s" : ""
|
|
147902
147917
|
] }),
|
|
147903
147918
|
/* @__PURE__ */ t(
|
|
147904
147919
|
"svg",
|
|
@@ -147919,12 +147934,12 @@ function U1e({
|
|
|
147919
147934
|
)
|
|
147920
147935
|
] }),
|
|
147921
147936
|
i && /* @__PURE__ */ s("div", { "data-nf-slot-content": !0, children: [
|
|
147922
|
-
/* @__PURE__ */ s("form", { onSubmit: (
|
|
147937
|
+
/* @__PURE__ */ s("form", { onSubmit: (M) => void L(M), "data-nf-comment-form": !0, children: [
|
|
147923
147938
|
/* @__PURE__ */ t(
|
|
147924
147939
|
"textarea",
|
|
147925
147940
|
{
|
|
147926
147941
|
value: p,
|
|
147927
|
-
onChange: (
|
|
147942
|
+
onChange: (M) => f(M.target.value),
|
|
147928
147943
|
placeholder: "Write a comment…",
|
|
147929
147944
|
rows: 3,
|
|
147930
147945
|
"data-nf-comment-textarea": !0
|
|
@@ -147936,22 +147951,37 @@ function U1e({
|
|
|
147936
147951
|
] })
|
|
147937
147952
|
] }),
|
|
147938
147953
|
/* @__PURE__ */ t("div", { "data-nf-divider": !0 }),
|
|
147939
|
-
u ? /* @__PURE__ */ t("div", { "data-nf-comment-list": !0, children: [0, 1].map((
|
|
147954
|
+
u ? /* @__PURE__ */ t("div", { "data-nf-comment-list": !0, children: [0, 1].map((M) => /* @__PURE__ */ s("div", { "data-nf-comment-skeleton": !0, children: [
|
|
147940
147955
|
/* @__PURE__ */ t("div", { "data-nf-skeleton-avatar": !0 }),
|
|
147941
147956
|
/* @__PURE__ */ s("div", { "data-nf-skeleton-lines": !0, children: [
|
|
147942
147957
|
/* @__PURE__ */ t("div", { "data-nf-skeleton-line": !0, style: { width: "30%" } }),
|
|
147943
147958
|
/* @__PURE__ */ t("div", { "data-nf-skeleton-line": !0, style: { width: "100%" } })
|
|
147944
147959
|
] })
|
|
147945
|
-
] },
|
|
147946
|
-
const
|
|
147960
|
+
] }, M)) }) : d.length === 0 ? /* @__PURE__ */ t("p", { "data-nf-empty": !0, children: "No comments yet." }) : /* @__PURE__ */ t("div", { "data-nf-comment-list": !0, children: [...d].reverse().map((M) => {
|
|
147961
|
+
const j = x === M.id;
|
|
147962
|
+
if (M.deleted)
|
|
147963
|
+
return /* @__PURE__ */ t("div", { "data-nf-comment": !0, "data-nf-comment-deleted": !0, children: /* @__PURE__ */ t("div", { "data-nf-comment-body": !0, children: /* @__PURE__ */ t("p", { "data-nf-comment-text": !0, children: /* @__PURE__ */ s("em", { children: [
|
|
147964
|
+
"Comment deleted by ",
|
|
147965
|
+
M.deleted_by_name ?? "unknown"
|
|
147966
|
+
] }) }) }) }, M.id);
|
|
147967
|
+
const J = !!M.edited;
|
|
147947
147968
|
return /* @__PURE__ */ s("div", { "data-nf-comment": !0, children: [
|
|
147948
|
-
/* @__PURE__ */ t("div", { "data-nf-avatar": !0, children: P1e(
|
|
147969
|
+
/* @__PURE__ */ t("div", { "data-nf-avatar": !0, children: P1e(M.user) }),
|
|
147949
147970
|
/* @__PURE__ */ s("div", { "data-nf-comment-body": !0, children: [
|
|
147950
147971
|
/* @__PURE__ */ s("div", { "data-nf-comment-header": !0, children: [
|
|
147951
|
-
/* @__PURE__ */ t("span", { "data-nf-comment-author": !0, children: I1e(
|
|
147952
|
-
/* @__PURE__ */ t("span", { "data-nf-comment-time": !0, children: K1e(
|
|
147953
|
-
|
|
147954
|
-
|
|
147972
|
+
/* @__PURE__ */ t("span", { "data-nf-comment-author": !0, children: I1e(M.user) }),
|
|
147973
|
+
/* @__PURE__ */ t("span", { "data-nf-comment-time": !0, children: K1e(M.created_at) }),
|
|
147974
|
+
J && /* @__PURE__ */ t(
|
|
147975
|
+
"button",
|
|
147976
|
+
{
|
|
147977
|
+
type: "button",
|
|
147978
|
+
"data-nf-comment-edited": !0,
|
|
147979
|
+
title: "Show earlier versions",
|
|
147980
|
+
onClick: () => void O(M.id),
|
|
147981
|
+
children: "(edited)"
|
|
147982
|
+
}
|
|
147983
|
+
),
|
|
147984
|
+
/* @__PURE__ */ t("div", { "data-nf-comment-actions": !0, children: !j && /* @__PURE__ */ s(Qe, { children: [
|
|
147955
147985
|
/* @__PURE__ */ t(
|
|
147956
147986
|
"button",
|
|
147957
147987
|
{
|
|
@@ -147959,7 +147989,7 @@ function U1e({
|
|
|
147959
147989
|
"data-nf-icon-btn": !0,
|
|
147960
147990
|
title: "Edit",
|
|
147961
147991
|
onClick: () => {
|
|
147962
|
-
y(
|
|
147992
|
+
y(M.id), g(M.text);
|
|
147963
147993
|
},
|
|
147964
147994
|
children: /* @__PURE__ */ s(
|
|
147965
147995
|
"svg",
|
|
@@ -147988,7 +148018,7 @@ function U1e({
|
|
|
147988
148018
|
"data-nf-icon-btn": !0,
|
|
147989
148019
|
"data-nf-icon-btn-danger": !0,
|
|
147990
148020
|
title: "Delete",
|
|
147991
|
-
onClick: () => void
|
|
148021
|
+
onClick: () => void R(M.id),
|
|
147992
148022
|
children: /* @__PURE__ */ s(
|
|
147993
148023
|
"svg",
|
|
147994
148024
|
{
|
|
@@ -148012,12 +148042,12 @@ function U1e({
|
|
|
148012
148042
|
)
|
|
148013
148043
|
] }) })
|
|
148014
148044
|
] }),
|
|
148015
|
-
|
|
148045
|
+
j ? /* @__PURE__ */ s("div", { "data-nf-comment-edit": !0, children: [
|
|
148016
148046
|
/* @__PURE__ */ t(
|
|
148017
148047
|
"textarea",
|
|
148018
148048
|
{
|
|
148019
148049
|
value: v,
|
|
148020
|
-
onChange: (
|
|
148050
|
+
onChange: (D) => g(D.target.value),
|
|
148021
148051
|
rows: 3,
|
|
148022
148052
|
"data-nf-comment-textarea": !0
|
|
148023
148053
|
}
|
|
@@ -148029,7 +148059,7 @@ function U1e({
|
|
|
148029
148059
|
type: "button",
|
|
148030
148060
|
"data-nf-btn-primary": !0,
|
|
148031
148061
|
disabled: !v.trim(),
|
|
148032
|
-
onClick: () => void
|
|
148062
|
+
onClick: () => void E(M.id),
|
|
148033
148063
|
children: "✓ Save"
|
|
148034
148064
|
}
|
|
148035
148065
|
),
|
|
@@ -148045,9 +148075,17 @@ function U1e({
|
|
|
148045
148075
|
}
|
|
148046
148076
|
)
|
|
148047
148077
|
] })
|
|
148048
|
-
] }) : /* @__PURE__ */ t("p", { "data-nf-comment-text": !0, children:
|
|
148078
|
+
] }) : /* @__PURE__ */ t("p", { "data-nf-comment-text": !0, children: M.text }),
|
|
148079
|
+
k === M.id && /* @__PURE__ */ t("div", { "data-nf-comment-history": !0, role: "menu", children: _ ? /* @__PURE__ */ t("p", { "data-nf-empty": !0, children: "Edit history isn't available to you." }) : $ === null ? /* @__PURE__ */ t("p", { "data-nf-empty": !0, children: "Loading…" }) : $.map((D) => /* @__PURE__ */ s("div", { "data-nf-comment-version": !0, role: "menuitem", children: [
|
|
148080
|
+
/* @__PURE__ */ s("div", { children: [
|
|
148081
|
+
/* @__PURE__ */ t("span", { "data-nf-comment-author": !0, children: D.user_name ?? "Unknown" }),
|
|
148082
|
+
" ",
|
|
148083
|
+
/* @__PURE__ */ t("span", { "data-nf-comment-time": !0, children: new Date(D.created_at).toLocaleString() })
|
|
148084
|
+
] }),
|
|
148085
|
+
/* @__PURE__ */ t("p", { "data-nf-comment-text": !0, children: D.text })
|
|
148086
|
+
] }, D.version)) })
|
|
148049
148087
|
] })
|
|
148050
|
-
] },
|
|
148088
|
+
] }, M.id);
|
|
148051
148089
|
}) })
|
|
148052
148090
|
] })
|
|
148053
148091
|
] });
|
|
@@ -148155,7 +148193,7 @@ function B1e({
|
|
|
148155
148193
|
if (a)
|
|
148156
148194
|
try {
|
|
148157
148195
|
const _ = await a.request(
|
|
148158
|
-
|
|
148196
|
+
ki(`/pipelines/instance/${e}/${n}/owners`)
|
|
148159
148197
|
);
|
|
148160
148198
|
g.current && i(_.data ?? []);
|
|
148161
148199
|
} catch {
|
|
@@ -148167,7 +148205,7 @@ function B1e({
|
|
|
148167
148205
|
$e(() => {
|
|
148168
148206
|
k();
|
|
148169
148207
|
}, [k]), $e(() => {
|
|
148170
|
-
a && a.request(
|
|
148208
|
+
a && a.request(ki("/users", { limit: 200, sort: "first_name" })).then((_) => {
|
|
148171
148209
|
g.current && d(_.data ?? []);
|
|
148172
148210
|
}).catch(() => {
|
|
148173
148211
|
});
|
|
@@ -148636,7 +148674,7 @@ function Q1e({
|
|
|
148636
148674
|
if (!(!l || !n))
|
|
148637
148675
|
try {
|
|
148638
148676
|
const R = await l.request(
|
|
148639
|
-
|
|
148677
|
+
ki(`/pipelines/instance/${e}/${n}`)
|
|
148640
148678
|
);
|
|
148641
148679
|
v.current && c(R.data ?? null);
|
|
148642
148680
|
} catch {
|
|
@@ -148984,7 +149022,7 @@ function J1e({
|
|
|
148984
149022
|
if (!(!l || !n))
|
|
148985
149023
|
try {
|
|
148986
149024
|
const j = await l.request(
|
|
148987
|
-
|
|
149025
|
+
ki("/tasks", { collection: e, item: String(n) })
|
|
148988
149026
|
);
|
|
148989
149027
|
_.current && c(j.data ?? []);
|
|
148990
149028
|
} catch {
|
|
@@ -148994,7 +149032,7 @@ function J1e({
|
|
|
148994
149032
|
$e(() => {
|
|
148995
149033
|
q();
|
|
148996
149034
|
}, [q]), $e(() => {
|
|
148997
|
-
l && l.request(
|
|
149035
|
+
l && l.request(ki("/users", { limit: 200 })).then((j) => {
|
|
148998
149036
|
_.current && m(j.data ?? []);
|
|
148999
149037
|
}).catch(() => {
|
|
149000
149038
|
});
|
|
@@ -149569,7 +149607,7 @@ function r_e({
|
|
|
149569
149607
|
return /* @__PURE__ */ t("form", { className: i, style: o, onSubmit: e.handleSubmit, children: n ?? y() });
|
|
149570
149608
|
}
|
|
149571
149609
|
function X1e(e = {}) {
|
|
149572
|
-
const n =
|
|
149610
|
+
const n = Ai(), r = qa(), a = e.client ?? r, l = e.disabled ?? !1;
|
|
149573
149611
|
$e(() => {
|
|
149574
149612
|
if (!n || !a || l || typeof window > "u") return;
|
|
149575
149613
|
const i = n.on("replay:record", (o) => {
|
|
@@ -149827,12 +149865,12 @@ function awe(e, n, r, a, l) {
|
|
|
149827
149865
|
async function swe(e, n, r, a, l) {
|
|
149828
149866
|
if (a != null) {
|
|
149829
149867
|
const [m, p, f, h] = await Promise.all([
|
|
149830
|
-
e.request(
|
|
149831
|
-
e.request(
|
|
149868
|
+
e.request(ki(`/collections/${n}`)),
|
|
149869
|
+
e.request(ki(`/collection-layouts/${a}`)).catch(() => ({ data: void 0 })),
|
|
149832
149870
|
e.request(
|
|
149833
|
-
|
|
149871
|
+
ki(`/field-groups/${n}`, { layout_id: a })
|
|
149834
149872
|
),
|
|
149835
|
-
e.request(
|
|
149873
|
+
e.request(ki(`/collection-layouts/${a}/assignments`))
|
|
149836
149874
|
]), b = /* @__PURE__ */ new Map();
|
|
149837
149875
|
let x = null;
|
|
149838
149876
|
const y = h.data ?? [];
|
|
@@ -149859,9 +149897,9 @@ async function swe(e, n, r, a, l) {
|
|
|
149859
149897
|
return v.ungroupedSort = x, HL(v, p.data), v.slotAssignments = VL(y), v;
|
|
149860
149898
|
}
|
|
149861
149899
|
const [i, o] = await Promise.all([
|
|
149862
|
-
e.request(
|
|
149900
|
+
e.request(ki(`/collections/${n}`)),
|
|
149863
149901
|
e.request(
|
|
149864
|
-
|
|
149902
|
+
ki(
|
|
149865
149903
|
"/collection-layouts/active",
|
|
149866
149904
|
l ? { collection: n, slug: l } : { collection: n }
|
|
149867
149905
|
)
|
|
@@ -150319,7 +150357,7 @@ function f_e(e, n, r) {
|
|
|
150319
150357
|
return de.fieldType === "relation-m2m" && ((ne = de.relation) == null ? void 0 : ne.relatedCollection) && ((he = de.relation) == null ? void 0 : he.manyField) && ((Z = de.relation) == null ? void 0 : Z.junctionField);
|
|
150320
150358
|
}
|
|
150321
150359
|
);
|
|
150322
|
-
return l.request(
|
|
150360
|
+
return l.request(ki(`/items/${e}/${o}`)).then(async (de) => {
|
|
150323
150361
|
if (!Y) return;
|
|
150324
150362
|
const ne = {
|
|
150325
150363
|
...GL(x, d),
|
|
@@ -150330,7 +150368,7 @@ function f_e(e, n, r) {
|
|
|
150330
150368
|
ae.map((Z) => {
|
|
150331
150369
|
const se = Z.relation, fe = se.junctionCollection ?? se.relatedCollection;
|
|
150332
150370
|
return l.request(
|
|
150333
|
-
|
|
150371
|
+
ki(`/items/${fe}`, {
|
|
150334
150372
|
filter: JSON.stringify({ [se.manyField]: { _eq: o } }),
|
|
150335
150373
|
fields: `id,${se.junctionField}`,
|
|
150336
150374
|
limit: 200
|
|
@@ -150841,7 +150879,7 @@ class Iwe {
|
|
|
150841
150879
|
return Pwe(r, n - this.sendingKeepaliveBytes);
|
|
150842
150880
|
}
|
|
150843
150881
|
}
|
|
150844
|
-
const Kwe = "nivaro-react@0.2.
|
|
150882
|
+
const Kwe = "nivaro-react@0.2.42", YL = 1e4, Uwe = 150, zwe = 3e3, Bwe = 600, Wwe = (e) => `nvr_replay_resume${e ? `:${e}` : ""}`, XL = () => typeof navigator > "u" || navigator.onLine !== !1;
|
|
150845
150883
|
function Qwe(e) {
|
|
150846
150884
|
return typeof e.url != "string" || typeof fetch != "function" ? null : (n, r) => {
|
|
150847
150885
|
const a = typeof e.getToken == "function" ? e.getToken() : void 0, l = { "Content-Type": "application/json" };
|
|
@@ -151565,7 +151603,7 @@ export {
|
|
|
151565
151603
|
xS as useOnlineUsers,
|
|
151566
151604
|
nB as useOpenRoomRegistration,
|
|
151567
151605
|
qa as useOptionalNivaroClient,
|
|
151568
|
-
|
|
151606
|
+
Ai as useOptionalRealtime,
|
|
151569
151607
|
c_e as useOrderedLayout,
|
|
151570
151608
|
n1 as useOverlayState,
|
|
151571
151609
|
t_e as usePageAt,
|