@nivaro/react 0.3.116 → 0.3.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +140 -14
- package/dist/index.js +488 -485
- package/dist/shared/components/ActivityEntry.js +130 -125
- package/dist/shared/components/AgentPresenceChip.js +36 -26
- package/dist/shared/components/CellCopyLayer.js +50 -45
- package/dist/shared/components/CollectionBrowserView.js +3855 -3785
- package/dist/shared/components/FilePreviewLightbox.js +96 -58
- package/dist/shared/components/InStep.js +18 -17
- package/dist/shared/components/ItemEditForm.js +4220 -4175
- package/dist/shared/components/JobsTray.js +8 -8
- package/dist/shared/components/LiveNewMatchesPill.js +21 -14
- package/dist/shared/components/LiveOffNote.js +3 -2
- package/dist/shared/components/LiveRowMark.js +53 -23
- package/dist/shared/components/LiveTraceView.js +162 -123
- package/dist/shared/components/MyWorkView.js +320 -299
- package/dist/shared/components/NotificationBell.js +14 -14
- package/dist/shared/components/OverflowRail.js +1 -1
- package/dist/shared/components/PageRenderer.js +120 -116
- package/dist/shared/components/ProfileView.js +203 -202
- package/dist/shared/components/RealtimeStatusBanner.js +31 -29
- package/dist/shared/components/RecordDrilldownSheet.js +7 -7
- package/dist/shared/components/RecordHoverCard.js +102 -84
- package/dist/shared/components/RecordReadView.js +146 -146
- package/dist/shared/components/ReportView.js +1086 -1091
- package/dist/shared/components/ScreenRefreshButton.js +34 -32
- package/dist/shared/components/TipLayer.js +65 -58
- package/dist/shared/components/WidgetImageMenu.js +83 -43
- package/dist/shared/components/activity/RecordActivityStream.js +175 -173
- package/dist/shared/components/bulk/BulkSelectionNotices.js +142 -119
- package/dist/shared/components/cbv/column-totals.js +62 -57
- package/dist/shared/components/change-proposals/ChangeProposalsPanel.js +158 -143
- package/dist/shared/components/change-proposals/ProposeChangeButton.js +17 -11
- package/dist/shared/components/change-proposals/ProposeChangeDialog.js +201 -173
- package/dist/shared/components/charts/category-axis.js +93 -0
- package/dist/shared/components/chat/ChatAnalyticsView.js +27 -27
- package/dist/shared/components/chat/HuddleAnalyticsTab.js +17 -17
- package/dist/shared/components/collections-directory/CollectionsToolbar.js +39 -41
- package/dist/shared/components/collections-directory/page-model.js +72 -67
- package/dist/shared/components/integrations/RecordIntegrationPreview.js +48 -56
- package/dist/shared/components/integrations/SendStatus.js +65 -59
- package/dist/shared/components/integrations/console/ReadyToSendView.js +275 -209
- package/dist/shared/components/integrations/console/SignalCard.js +237 -230
- package/dist/shared/components/item-edit/CatalogPickerField.js +227 -205
- package/dist/shared/components/item-edit/ChangedAfterApprovalBadge.js +131 -92
- package/dist/shared/components/item-edit/CloneDialog.js +191 -161
- package/dist/shared/components/item-edit/DerivedCauseNote.js +44 -30
- package/dist/shared/components/item-edit/DraftRecoveryBanner.js +153 -134
- package/dist/shared/components/item-edit/FieldComments.js +54 -53
- package/dist/shared/components/item-edit/FieldPointer.js +82 -67
- package/dist/shared/components/item-edit/FieldRow.js +106 -100
- package/dist/shared/components/item-edit/FieldSourceBadge.js +58 -56
- package/dist/shared/components/item-edit/FilePickerField.js +452 -387
- package/dist/shared/components/item-edit/HeaderSummaryChip.js +78 -56
- package/dist/shared/components/item-edit/HeaderTools.js +94 -85
- package/dist/shared/components/item-edit/InlineTableField.js +1242 -1218
- package/dist/shared/components/item-edit/ListNeighborNav.js +47 -50
- package/dist/shared/components/item-edit/LiveTraceSheet.js +15 -10
- package/dist/shared/components/item-edit/MembershipSetField.js +285 -254
- package/dist/shared/components/item-edit/OutboxReviewTray.js +155 -144
- package/dist/shared/components/item-edit/QueueReturnChip.js +15 -36
- package/dist/shared/components/item-edit/RecalcValue.js +57 -32
- package/dist/shared/components/item-edit/RecordHelpChip.js +21 -22
- package/dist/shared/components/item-edit/RecordLiveSync.js +283 -231
- package/dist/shared/components/item-edit/RelationCombobox.js +439 -393
- package/dist/shared/components/item-edit/RemoteChangeUi.js +292 -224
- package/dist/shared/components/item-edit/RemoteUploads.js +26 -20
- package/dist/shared/components/item-edit/RemovedLineNote.js +77 -67
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +184 -179
- package/dist/shared/components/item-edit/ScheduledChangeChip.js +168 -134
- package/dist/shared/components/item-edit/SectionPresence.js +18 -10
- package/dist/shared/components/item-edit/SplitLinesButton.js +163 -139
- package/dist/shared/components/item-edit/UserChip.js +1 -1
- package/dist/shared/components/item-edit/file-live.js +69 -54
- package/dist/shared/components/item-edit/layout-switch.js +98 -89
- package/dist/shared/components/item-edit/partner-needs.js +12 -12
- package/dist/shared/components/item-edit/removed-line.js +31 -25
- package/dist/shared/components/layout-editor/pickers/field-picker.js +112 -104
- package/dist/shared/components/list/ListViewers.js +46 -35
- package/dist/shared/components/notifications/NotificationCenterView.js +479 -437
- package/dist/shared/components/panels/AccessDeniedPanel.js +176 -101
- package/dist/shared/components/panels/AlertBanners.js +82 -72
- package/dist/shared/components/panels/BranchLanes.js +22 -22
- package/dist/shared/components/panels/CommentImages.js +123 -102
- package/dist/shared/components/panels/CommentPanel.js +186 -185
- package/dist/shared/components/panels/ExternalRequestsChip.js +111 -119
- package/dist/shared/components/panels/OwnerOpenedLine.js +31 -24
- package/dist/shared/components/panels/PipelinePanel.js +2037 -1885
- package/dist/shared/components/panels/ResubmissionDiff.js +163 -142
- package/dist/shared/components/pipeline/BindingStartStateSettings.js +163 -0
- package/dist/shared/components/pipeline/OwnerMatrixSheet.js +400 -288
- package/dist/shared/components/pipeline/PipelineEditorView.js +320 -299
- package/dist/shared/components/profile/AgentNameField.js +107 -81
- package/dist/shared/components/profile/AgentsPanel.js +184 -184
- package/dist/shared/components/profile/PersonAccess.js +599 -495
- package/dist/shared/components/profile/SignInTroubleshooter.js +160 -127
- package/dist/shared/components/profile/SignedInDevices.js +17 -17
- package/dist/shared/components/profile/primitives.js +1 -1
- package/dist/shared/components/queue/OwnerAvatars.js +91 -54
- package/dist/shared/components/queue/QueueTeamStrip.js +56 -46
- package/dist/shared/components/queue/QueueWorklist.js +1002 -983
- package/dist/shared/components/support/AssignRules.js +1733 -0
- package/dist/shared/components/support/PersonPick.js +88 -0
- package/dist/shared/components/support/RequestList.js +790 -0
- package/dist/shared/components/support/ScreenShare.js +158 -152
- package/dist/shared/components/support/SupportRequestDialog.js +50 -48
- package/dist/shared/components/support/SupportView.js +140 -246
- package/dist/shared/components/support/TicketDetailSheet.js +82 -75
- package/dist/shared/components/support/TicketSlowScreens.js +9 -9
- package/dist/shared/components/support/assign-rules-text.js +171 -0
- package/dist/shared/components/support/support-list.js +125 -0
- package/dist/shared/components/ui/SimpleSelect.js +28 -20
- package/dist/shared/components/ui/checkbox.js +6 -6
- package/dist/shared/components/ui/select.js +43 -39
- package/dist/shared/components/ui/sheet.js +9 -9
- package/dist/shared/components/ui/switch.js +12 -11
- package/dist/shared/components/watch-list/WatchDock.js +532 -459
- package/dist/shared/components/watch-list/WatchExtras.js +332 -286
- package/dist/shared/components/watch-list/WatchRows.js +164 -140
- package/dist/shared/lib/activity-sentence.js +103 -91
- package/dist/shared/lib/agent-presence.js +27 -21
- package/dist/shared/lib/approval-progress.js +2 -2
- package/dist/shared/lib/copy-rules.js +31 -24
- package/dist/shared/lib/derived-causes.js +113 -78
- package/dist/shared/lib/grid-cursors.js +26 -26
- package/dist/shared/lib/label-flash.js +27 -0
- package/dist/shared/lib/list-return.js +137 -125
- package/dist/shared/lib/live-deltas.js +40 -34
- package/dist/shared/lib/live-groups.js +56 -52
- package/dist/shared/lib/live-preference.js +64 -59
- package/dist/shared/lib/live-screen.js +223 -192
- package/dist/shared/lib/partner-failure.js +11 -11
- package/dist/shared/lib/rollup-recalc.js +68 -64
- package/dist/shared/lib/screen-refresh.js +74 -68
- package/dist/shared/lib/screen-share.js +108 -104
- package/dist/shared/lib/send-status.js +77 -61
- package/dist/shared/lib/text-diff-window.js +29 -0
- package/dist/shared/lib/use-query-entry.js +17 -0
- package/dist/shared/lib/watch-list.js +210 -209
- package/dist/shared/lib/widget-image-render.js +72 -49
- package/package.json +1 -1
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as M, useState as h, useLayoutEffect as S, useEffect as T, useMemo as w } from "react";
|
|
3
|
+
const p = 10.5, v = 10, _ = 0.4, y = 40;
|
|
4
|
+
let u;
|
|
5
|
+
function x(t, o = p) {
|
|
6
|
+
if (u === void 0)
|
|
7
|
+
try {
|
|
8
|
+
u = typeof document < "u" ? document.createElement("canvas").getContext("2d") : null;
|
|
9
|
+
} catch {
|
|
10
|
+
u = null;
|
|
11
|
+
}
|
|
12
|
+
if (u) {
|
|
13
|
+
const i = typeof getComputedStyle == "function" && typeof document < "u" && getComputedStyle(document.body).fontFamily || "sans-serif";
|
|
14
|
+
u.font = `${o}px ${i}`;
|
|
15
|
+
const n = u.measureText(t).width;
|
|
16
|
+
if (n > 0) return n;
|
|
17
|
+
}
|
|
18
|
+
return t.length * o * 0.56;
|
|
19
|
+
}
|
|
20
|
+
function $(t, o) {
|
|
21
|
+
const i = Math.ceil(t + v), n = o > 0 ? Math.floor(o * _) : 200;
|
|
22
|
+
return Math.max(y, Math.min(i, Math.max(y, n)));
|
|
23
|
+
}
|
|
24
|
+
function b(t, o, i = (n) => x(n)) {
|
|
25
|
+
if (i(t) <= o) return { text: t, cut: !1 };
|
|
26
|
+
let n = 0, r = t.length;
|
|
27
|
+
for (; n < r; ) {
|
|
28
|
+
const d = Math.ceil((n + r) / 2);
|
|
29
|
+
i(`${t.slice(0, d).trimEnd()}…`) <= o ? n = d : r = d - 1;
|
|
30
|
+
}
|
|
31
|
+
return { text: `${t.slice(0, n).trimEnd()}…`, cut: !0 };
|
|
32
|
+
}
|
|
33
|
+
function k(t, o = String) {
|
|
34
|
+
const i = M(null), [n, r] = h(0);
|
|
35
|
+
S(() => {
|
|
36
|
+
const e = i.current;
|
|
37
|
+
if (!e || (r(e.clientWidth), typeof ResizeObserver > "u")) return;
|
|
38
|
+
const c = new ResizeObserver(() => r(e.clientWidth));
|
|
39
|
+
return c.observe(e), () => c.disconnect();
|
|
40
|
+
}, []);
|
|
41
|
+
const [d, g] = h(0);
|
|
42
|
+
T(() => {
|
|
43
|
+
var a;
|
|
44
|
+
const e = typeof document < "u" ? document.fonts : void 0;
|
|
45
|
+
if (!e) return;
|
|
46
|
+
let c = !0;
|
|
47
|
+
const l = () => c && g((s) => s + 1);
|
|
48
|
+
return e.ready.then(l), (a = e.addEventListener) == null || a.call(e, "loadingdone", l), () => {
|
|
49
|
+
var s;
|
|
50
|
+
c = !1, (s = e.removeEventListener) == null || s.call(e, "loadingdone", l);
|
|
51
|
+
};
|
|
52
|
+
}, []);
|
|
53
|
+
const C = t.map((e) => o(e)).join("\0"), A = w(
|
|
54
|
+
() => Math.max(0, ...t.map((e) => x(o(e)))),
|
|
55
|
+
[C, d]
|
|
56
|
+
), m = $(A, n), E = m - v;
|
|
57
|
+
return {
|
|
58
|
+
ref: i,
|
|
59
|
+
yAxisProps: { width: m, tick: (e) => {
|
|
60
|
+
var s;
|
|
61
|
+
const c = o(((s = e.payload) == null ? void 0 : s.value) ?? ""), { text: l, cut: a } = b(c, E);
|
|
62
|
+
return /* @__PURE__ */ f("g", { transform: `translate(${e.x ?? 0},${e.y ?? 0})`, "data-tip": a ? c : void 0, children: /* @__PURE__ */ f(
|
|
63
|
+
"text",
|
|
64
|
+
{
|
|
65
|
+
x: 0,
|
|
66
|
+
y: 0,
|
|
67
|
+
dy: "0.35em",
|
|
68
|
+
textAnchor: "end",
|
|
69
|
+
fontSize: p,
|
|
70
|
+
fill: "currentColor",
|
|
71
|
+
children: l
|
|
72
|
+
}
|
|
73
|
+
) });
|
|
74
|
+
}, interval: 0, tickLine: !1 }
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function O({
|
|
78
|
+
labels: t,
|
|
79
|
+
format: o,
|
|
80
|
+
className: i,
|
|
81
|
+
children: n
|
|
82
|
+
}) {
|
|
83
|
+
const r = k(t, o);
|
|
84
|
+
return /* @__PURE__ */ f("div", { ref: r.ref, className: i, children: n(r.yAxisProps) });
|
|
85
|
+
}
|
|
86
|
+
export {
|
|
87
|
+
p as CATEGORY_TICK_FONT_PX,
|
|
88
|
+
O as CategoryAxisBox,
|
|
89
|
+
$ as categoryAxisWidth,
|
|
90
|
+
b as fitLabel,
|
|
91
|
+
x as measureTickText,
|
|
92
|
+
k as useCategoryAxis
|
|
93
|
+
};
|
|
@@ -4,18 +4,18 @@ import { RotateCw as ie, Eye as oe, X as P, Search as ce, ChevronLeft as me, Che
|
|
|
4
4
|
import { useState as b, useMemo as xe } from "react";
|
|
5
5
|
import { useNivaroClient as z, useApiFetchConfig as be } from "../../context.js";
|
|
6
6
|
import { get as A } from "../../lib/commands.js";
|
|
7
|
-
import { cn as v, formatDateTime as
|
|
7
|
+
import { cn as v, formatDateTime as N, formatRelative as V } from "../../lib/utils.js";
|
|
8
8
|
import { TipLayer as ue } from "../TipLayer.js";
|
|
9
9
|
import { ChannelsAdminTab as ge } from "./ChannelArchive.js";
|
|
10
10
|
import { useUserSearch as ke } from "./chat-core.js";
|
|
11
|
-
import { HuddleAnalyticsTab as
|
|
11
|
+
import { HuddleAnalyticsTab as fe } from "./HuddleAnalyticsTab.js";
|
|
12
12
|
const U = {
|
|
13
13
|
dm: "Direct message",
|
|
14
14
|
group: "Group conversation",
|
|
15
15
|
channel: "Channel",
|
|
16
16
|
general: "General",
|
|
17
17
|
record: "Record room"
|
|
18
|
-
},
|
|
18
|
+
}, Ne = {
|
|
19
19
|
dm: "DM",
|
|
20
20
|
group: "Group",
|
|
21
21
|
channel: "Channel",
|
|
@@ -167,7 +167,7 @@ function ve({ onOpenRoom: s }) {
|
|
|
167
167
|
"aria-pressed": o === d,
|
|
168
168
|
className: v(
|
|
169
169
|
"rounded px-2.5 py-1 text-[12px] font-medium",
|
|
170
|
-
o === d ? "bg-
|
|
170
|
+
o === d ? "bg-[#0f172a] text-[#ffffff] dark:bg-[#e2e8f0] dark:text-[#0f172a]" : "text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-muted"
|
|
171
171
|
),
|
|
172
172
|
"data-chat-analytics-days": d,
|
|
173
173
|
children: [
|
|
@@ -380,7 +380,7 @@ function ee(s) {
|
|
|
380
380
|
return s.kind === "group" && s.participant_count ? `${s.room_label} · ${s.participant_count} people` : s.room_label;
|
|
381
381
|
}
|
|
382
382
|
function te({ kind: s }) {
|
|
383
|
-
return /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 rounded border border-slate-200 px-1.5 text-[10.5px] font-medium text-slate-600 dark:border-border dark:text-slate-300", children:
|
|
383
|
+
return /* @__PURE__ */ e("span", { className: "inline-flex shrink-0 rounded border border-slate-200 px-1.5 text-[10.5px] font-medium text-slate-600 dark:border-border dark:text-slate-300", children: Ne[s] });
|
|
384
384
|
}
|
|
385
385
|
function ye({
|
|
386
386
|
room: s,
|
|
@@ -402,7 +402,7 @@ function ye({
|
|
|
402
402
|
queryKey: ["nvr-chat-admin-messages", H],
|
|
403
403
|
queryFn: () => o.request(A("/chat/admin/messages", H)),
|
|
404
404
|
placeholderData: (l) => l
|
|
405
|
-
}), G = ($ == null ? void 0 : $.data) ?? [], T = ($ == null ? void 0 : $.total) ?? 0, L = Math.max(1, Math.ceil(T / I)),
|
|
405
|
+
}), G = ($ == null ? void 0 : $.data) ?? [], T = ($ == null ? void 0 : $.total) ?? 0, L = Math.max(1, Math.ceil(T / I)), f = () => F(1);
|
|
406
406
|
return /* @__PURE__ */ t("div", { className: "space-y-3", children: [
|
|
407
407
|
/* @__PURE__ */ t(
|
|
408
408
|
"p",
|
|
@@ -422,7 +422,7 @@ function ye({
|
|
|
422
422
|
label: "From",
|
|
423
423
|
value: h,
|
|
424
424
|
onChange: (l) => {
|
|
425
|
-
r(l),
|
|
425
|
+
r(l), f();
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
),
|
|
@@ -432,7 +432,7 @@ function ye({
|
|
|
432
432
|
label: "With",
|
|
433
433
|
value: a,
|
|
434
434
|
onChange: (l) => {
|
|
435
|
-
p(l),
|
|
435
|
+
p(l), f();
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
),
|
|
@@ -444,7 +444,7 @@ function ye({
|
|
|
444
444
|
{
|
|
445
445
|
type: "button",
|
|
446
446
|
onClick: () => {
|
|
447
|
-
i(null),
|
|
447
|
+
i(null), f();
|
|
448
448
|
},
|
|
449
449
|
"aria-label": "Clear room",
|
|
450
450
|
className: "rounded p-0.5 text-slate-400 hover:bg-slate-100 hover:text-slate-700 dark:hover:bg-muted dark:hover:text-slate-100",
|
|
@@ -457,7 +457,7 @@ function ye({
|
|
|
457
457
|
{
|
|
458
458
|
className: "relative",
|
|
459
459
|
onSubmit: (l) => {
|
|
460
|
-
l.preventDefault(), y(m),
|
|
460
|
+
l.preventDefault(), y(m), f();
|
|
461
461
|
},
|
|
462
462
|
children: [
|
|
463
463
|
/* @__PURE__ */ e(ce, { className: "pointer-events-none absolute left-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400" }),
|
|
@@ -467,7 +467,7 @@ function ye({
|
|
|
467
467
|
value: m,
|
|
468
468
|
onChange: (l) => n(l.target.value),
|
|
469
469
|
onBlur: () => {
|
|
470
|
-
m !== x && (y(m),
|
|
470
|
+
m !== x && (y(m), f());
|
|
471
471
|
},
|
|
472
472
|
placeholder: "Words in the message",
|
|
473
473
|
className: "h-8 w-52 rounded-md border border-slate-200 bg-white pl-7 pr-2 text-[12px] outline-none focus:border-slate-400 dark:border-border dark:bg-card",
|
|
@@ -485,7 +485,7 @@ function ye({
|
|
|
485
485
|
type: "date",
|
|
486
486
|
value: d,
|
|
487
487
|
onChange: (l) => {
|
|
488
|
-
k(l.target.value),
|
|
488
|
+
k(l.target.value), f();
|
|
489
489
|
},
|
|
490
490
|
className: "h-8 rounded-md border border-slate-200 bg-white px-1.5 text-[12px] dark:border-border dark:bg-card"
|
|
491
491
|
}
|
|
@@ -499,7 +499,7 @@ function ye({
|
|
|
499
499
|
type: "date",
|
|
500
500
|
value: w,
|
|
501
501
|
onChange: (l) => {
|
|
502
|
-
_(l.target.value),
|
|
502
|
+
_(l.target.value), f();
|
|
503
503
|
},
|
|
504
504
|
className: "h-8 rounded-md border border-slate-200 bg-white px-1.5 text-[12px] dark:border-border dark:bg-card"
|
|
505
505
|
}
|
|
@@ -515,11 +515,11 @@ function ye({
|
|
|
515
515
|
type: "button",
|
|
516
516
|
"aria-pressed": q,
|
|
517
517
|
onClick: () => {
|
|
518
|
-
c((Q) => q ? Q.filter((ne) => ne !== l) : [...Q, l]),
|
|
518
|
+
c((Q) => q ? Q.filter((ne) => ne !== l) : [...Q, l]), f();
|
|
519
519
|
},
|
|
520
520
|
className: v(
|
|
521
521
|
"h-7 rounded-full border px-2.5 text-[12px]",
|
|
522
|
-
q ? "border-
|
|
522
|
+
q ? "border-[#1e293b] bg-[#0f172a] text-[#ffffff] dark:border-[#e2e8f0] dark:bg-[#e2e8f0] dark:text-[#0f172a]" : "border-slate-200 bg-white text-slate-600 hover:border-slate-300 dark:border-border dark:bg-card dark:text-slate-300"
|
|
523
523
|
),
|
|
524
524
|
"data-chat-admin-kind": l,
|
|
525
525
|
children: U[l]
|
|
@@ -535,7 +535,7 @@ function ye({
|
|
|
535
535
|
type: "checkbox",
|
|
536
536
|
checked: E,
|
|
537
537
|
onChange: (l) => {
|
|
538
|
-
ae(l.target.checked),
|
|
538
|
+
ae(l.target.checked), f();
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
),
|
|
@@ -548,7 +548,7 @@ function ye({
|
|
|
548
548
|
type: "checkbox",
|
|
549
549
|
checked: W,
|
|
550
550
|
onChange: (l) => {
|
|
551
|
-
se(l.target.checked),
|
|
551
|
+
se(l.target.checked), f();
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
554
|
),
|
|
@@ -620,8 +620,8 @@ function ye({
|
|
|
620
620
|
"td",
|
|
621
621
|
{
|
|
622
622
|
className: "px-3 py-2 tabular-nums text-slate-600 dark:text-slate-300",
|
|
623
|
-
title:
|
|
624
|
-
children:
|
|
623
|
+
title: N(l.date_created),
|
|
624
|
+
children: N(l.date_created)
|
|
625
625
|
}
|
|
626
626
|
),
|
|
627
627
|
/* @__PURE__ */ e("td", { className: "truncate px-2 py-2 font-medium text-slate-800 dark:text-slate-100", children: l.sender_name ?? "Unknown" }),
|
|
@@ -665,7 +665,7 @@ function ye({
|
|
|
665
665
|
id: D,
|
|
666
666
|
onClose: () => R(null),
|
|
667
667
|
onRoom: (l) => {
|
|
668
|
-
i(l), R(null),
|
|
668
|
+
i(l), R(null), f();
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
)
|
|
@@ -692,7 +692,7 @@ function B({ m: s, target: i }) {
|
|
|
692
692
|
children: [
|
|
693
693
|
/* @__PURE__ */ t("p", { className: "flex items-baseline gap-2 text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
694
694
|
/* @__PURE__ */ e("span", { className: "font-medium text-slate-700 dark:text-slate-200", children: s.sender_name ?? "Unknown" }),
|
|
695
|
-
/* @__PURE__ */ e("span", { className: "tabular-nums", children:
|
|
695
|
+
/* @__PURE__ */ e("span", { className: "tabular-nums", children: N(s.date_created) }),
|
|
696
696
|
s.edited_at && /* @__PURE__ */ e("span", { children: "edited" })
|
|
697
697
|
] }),
|
|
698
698
|
/* @__PURE__ */ e("p", { className: "whitespace-pre-wrap break-words text-[12.5px] text-slate-800 dark:text-slate-100", children: s.deleted_at ? /* @__PURE__ */ e("em", { className: "text-slate-500 dark:text-slate-400", children: "Deleted" }) : s.message || "—" })
|
|
@@ -741,12 +741,12 @@ function we({
|
|
|
741
741
|
/* @__PURE__ */ t("div", { children: [
|
|
742
742
|
/* @__PURE__ */ e("p", { className: "whitespace-pre-wrap break-words text-[13.5px] leading-relaxed text-slate-900 dark:text-slate-50", children: a.message.deleted_at ? /* @__PURE__ */ t("em", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
743
743
|
"Deleted ",
|
|
744
|
-
|
|
744
|
+
N(a.message.deleted_at),
|
|
745
745
|
" — the text was removed when it was deleted."
|
|
746
746
|
] }) : a.message.message || /* @__PURE__ */ e("em", { className: "text-slate-500 dark:text-slate-400", children: "(no text)" }) }),
|
|
747
747
|
a.message.edited_at && !a.message.deleted_at && /* @__PURE__ */ t("p", { className: "mt-1 text-[11.5px] text-slate-500 dark:text-slate-400", children: [
|
|
748
748
|
"Edited ",
|
|
749
|
-
|
|
749
|
+
N(a.message.edited_at),
|
|
750
750
|
". Only the final text is kept."
|
|
751
751
|
] }),
|
|
752
752
|
a.message.masquerade_admin_name && /* @__PURE__ */ t("p", { className: "mt-1 flex items-center gap-1 text-[11.5px] text-violet-700 dark:text-violet-300", children: [
|
|
@@ -762,7 +762,7 @@ function we({
|
|
|
762
762
|
/* @__PURE__ */ t("dl", { className: "divide-y divide-slate-100 dark:divide-border/60", children: [
|
|
763
763
|
/* @__PURE__ */ e(g, { label: "From", children: a.message.sender_name ?? "Unknown" }),
|
|
764
764
|
/* @__PURE__ */ t(g, { label: "Sent", children: [
|
|
765
|
-
|
|
765
|
+
N(a.message.date_created),
|
|
766
766
|
" ",
|
|
767
767
|
/* @__PURE__ */ t("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
768
768
|
"(",
|
|
@@ -841,7 +841,7 @@ function we({
|
|
|
841
841
|
/* @__PURE__ */ t("span", { className: "text-slate-500 dark:text-slate-400", children: [
|
|
842
842
|
" ",
|
|
843
843
|
"· ",
|
|
844
|
-
|
|
844
|
+
N(n.at)
|
|
845
845
|
] })
|
|
846
846
|
] }, x)
|
|
847
847
|
)) }) }),
|
|
@@ -857,7 +857,7 @@ function we({
|
|
|
857
857
|
"· ",
|
|
858
858
|
n.changed_by_name ?? "Someone",
|
|
859
859
|
" · ",
|
|
860
|
-
|
|
860
|
+
N(n.changed_at)
|
|
861
861
|
] }),
|
|
862
862
|
/* @__PURE__ */ e("p", { className: "whitespace-pre-wrap break-words", children: n.text }),
|
|
863
863
|
n.attachments.length > 0 && /* @__PURE__ */ e("ul", { className: "mt-0.5 space-y-0.5 text-[11.5px]", children: n.attachments.map((x) => /* @__PURE__ */ t("li", { children: [
|
|
@@ -948,7 +948,7 @@ function qe() {
|
|
|
948
948
|
h({ room: r, label: a }), i("messages");
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
) : s === "channels" ? /* @__PURE__ */ e(ge, {}) : s === "huddles" ? /* @__PURE__ */ e(
|
|
951
|
+
) : s === "channels" ? /* @__PURE__ */ e(ge, {}) : s === "huddles" ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ e(ye, { room: o, onRoomChange: h })
|
|
952
952
|
] });
|
|
953
953
|
}
|
|
954
954
|
export {
|
|
@@ -6,28 +6,28 @@ import { useNivaroClient as T } from "../../context.js";
|
|
|
6
6
|
import { get as C } from "../../lib/commands.js";
|
|
7
7
|
import { cn as c } from "../../lib/utils.js";
|
|
8
8
|
import { Skeleton as H } from "../ui/skeleton.js";
|
|
9
|
-
function m(
|
|
10
|
-
if (
|
|
11
|
-
if (
|
|
12
|
-
if (
|
|
13
|
-
const
|
|
14
|
-
return n ? `${
|
|
9
|
+
function m(d) {
|
|
10
|
+
if (d == null) return "—";
|
|
11
|
+
if (d < 1) return "under a minute";
|
|
12
|
+
if (d < 60) return `${Math.round(d * 10) / 10} min`;
|
|
13
|
+
const s = Math.floor(d / 60), n = Math.round(d % 60);
|
|
14
|
+
return n ? `${s} h ${n} min` : `${s} h`;
|
|
15
15
|
}
|
|
16
|
-
function p(
|
|
17
|
-
return
|
|
16
|
+
function p(d) {
|
|
17
|
+
return d ? (/* @__PURE__ */ new Date(`${d}T12:00:00`)).toLocaleDateString("en-US", { month: "short", day: "numeric" }) : "";
|
|
18
18
|
}
|
|
19
|
-
function o({ label:
|
|
19
|
+
function o({ label: d, value: s, sub: n }) {
|
|
20
20
|
return /* @__PURE__ */ r("div", { className: "rounded-lg border border-slate-200 bg-white px-4 py-3 dark:border-border dark:bg-card", children: [
|
|
21
|
-
/* @__PURE__ */ e("p", { className: "text-[12px] font-medium text-slate-500 dark:text-slate-400", children:
|
|
22
|
-
/* @__PURE__ */ e("p", { className: "mt-1 text-[20px] font-semibold tabular-nums text-slate-900 dark:text-slate-50", children:
|
|
21
|
+
/* @__PURE__ */ e("p", { className: "text-[12px] font-medium text-slate-500 dark:text-slate-400", children: d }),
|
|
22
|
+
/* @__PURE__ */ e("p", { className: "mt-1 text-[20px] font-semibold tabular-nums text-slate-900 dark:text-slate-50", children: s }),
|
|
23
23
|
n && /* @__PURE__ */ e("p", { className: "mt-0.5 text-[11.5px] text-slate-500 dark:text-slate-400", children: n })
|
|
24
24
|
] });
|
|
25
25
|
}
|
|
26
26
|
function U() {
|
|
27
27
|
var h, u;
|
|
28
|
-
const
|
|
29
|
-
queryKey: ["nvr-huddle-analytics",
|
|
30
|
-
queryFn: () =>
|
|
28
|
+
const d = T(), [s, n] = $(30), { data: l, isLoading: x, isError: b, refetch: g, isFetching: f } = y({
|
|
29
|
+
queryKey: ["nvr-huddle-analytics", s],
|
|
30
|
+
queryFn: () => d.request(C("/chat/admin/huddles", { days: s })).then((t) => t.data),
|
|
31
31
|
staleTime: 3e4,
|
|
32
32
|
refetchInterval: 6e4
|
|
33
33
|
}), i = (l == null ? void 0 : l.per_day) ?? [], k = S(() => Math.max(1, ...i.map((t) => t.huddles)), [i]), a = l == null ? void 0 : l.totals;
|
|
@@ -38,10 +38,10 @@ function U() {
|
|
|
38
38
|
{
|
|
39
39
|
type: "button",
|
|
40
40
|
onClick: () => n(t),
|
|
41
|
-
"aria-pressed":
|
|
41
|
+
"aria-pressed": s === t,
|
|
42
42
|
className: c(
|
|
43
43
|
"rounded px-2.5 py-1 text-[12px] font-medium",
|
|
44
|
-
|
|
44
|
+
s === t ? "bg-[#0f172a] text-[#ffffff] dark:bg-[#e2e8f0] dark:text-[#0f172a]" : "text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-muted"
|
|
45
45
|
),
|
|
46
46
|
children: [
|
|
47
47
|
t,
|
|
@@ -115,7 +115,7 @@ function U() {
|
|
|
115
115
|
a.huddles === 0 ? /* @__PURE__ */ r("div", { className: "rounded-lg border border-dashed border-slate-300 px-4 py-10 text-center dark:border-border", children: [
|
|
116
116
|
/* @__PURE__ */ r("p", { className: "text-[13px] font-medium text-slate-700 dark:text-slate-200", children: [
|
|
117
117
|
"No huddles in the last ",
|
|
118
|
-
|
|
118
|
+
s,
|
|
119
119
|
" days"
|
|
120
120
|
] }),
|
|
121
121
|
/* @__PURE__ */ e("p", { className: "mt-1 text-[12px] text-slate-500 dark:text-slate-400", children: "A huddle is recorded when the last person leaves. Start one from a channel or a record's chat." })
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as l, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Search as j, Rows3 as K, LayoutGrid as T } from "lucide-react";
|
|
3
|
-
import { useRef as L, useEffect as
|
|
3
|
+
import { useRef as L, useEffect as $ } from "react";
|
|
4
4
|
import { cn as c } from "../../lib/utils.js";
|
|
5
|
-
import { Input as
|
|
5
|
+
import { Input as z } from "../ui/input.js";
|
|
6
6
|
import { Switch as S } from "../ui/switch.js";
|
|
7
|
-
const
|
|
7
|
+
const B = [
|
|
8
8
|
{ key: "folders", label: "Folders" },
|
|
9
9
|
{ key: "az", label: "A–Z" },
|
|
10
10
|
{ key: "recent", label: "Recently changed", adminOnly: !0 },
|
|
11
11
|
{ key: "records", label: "Most records", adminOnly: !0 },
|
|
12
12
|
{ key: "used", label: "Most used by you" }
|
|
13
|
-
],
|
|
13
|
+
], G = [
|
|
14
14
|
{ key: "has_records", label: "Has records", stat: !0 },
|
|
15
15
|
{ key: "empty", label: "Empty", stat: !0 },
|
|
16
16
|
{ key: "hidden", label: "Hidden" },
|
|
@@ -19,25 +19,25 @@ const G = [
|
|
|
19
19
|
{ key: "singleton", label: "Singleton" },
|
|
20
20
|
{ key: "pipeline", label: "Has pipeline", stat: !0 },
|
|
21
21
|
{ key: "form", label: "Has form", stat: !0 }
|
|
22
|
-
], d = "inline-flex h-7 items-center gap-1.5 rounded-md px-2.5 text-[12px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan", h = "text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-white/10",
|
|
23
|
-
function
|
|
22
|
+
], d = "inline-flex h-7 items-center gap-1.5 rounded-md px-2.5 text-[12px] font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan", h = "text-slate-600 hover:bg-slate-100 dark:text-slate-300 dark:hover:bg-white/10", x = "bg-nvr-cyan/10 text-cyan-700 dark:bg-nvr-cyan/15 dark:text-nvr-cyan";
|
|
23
|
+
function Y({
|
|
24
24
|
state: t,
|
|
25
|
-
onChange:
|
|
25
|
+
onChange: i,
|
|
26
26
|
filter: H,
|
|
27
27
|
onFilterChange: F,
|
|
28
28
|
filterRef: m,
|
|
29
|
-
counts:
|
|
29
|
+
counts: s,
|
|
30
30
|
isAdmin: b,
|
|
31
|
-
selectedCount:
|
|
31
|
+
selectedCount: k,
|
|
32
32
|
onMoveSelected: D,
|
|
33
33
|
onClearSelection: R,
|
|
34
34
|
adminActions: y,
|
|
35
35
|
title: A = "Collections",
|
|
36
36
|
canArrange: f = !0,
|
|
37
|
-
canSelect:
|
|
37
|
+
canSelect: u = !0
|
|
38
38
|
}) {
|
|
39
39
|
const E = L(null), w = L(null);
|
|
40
|
-
|
|
40
|
+
$(() => {
|
|
41
41
|
const e = w.current, r = e == null ? void 0 : e.querySelector('[aria-checked="true"]');
|
|
42
42
|
if (!e || !r) return;
|
|
43
43
|
const n = r.offsetLeft, o = n + r.offsetWidth;
|
|
@@ -45,25 +45,25 @@ function $({
|
|
|
45
45
|
}, [t.view]);
|
|
46
46
|
const I = (e) => {
|
|
47
47
|
E.current = e, typeof m == "function" ? m(e) : m && (m.current = e);
|
|
48
|
-
}, p =
|
|
48
|
+
}, p = B.filter((e) => b || !e.adminOnly), M = G.filter((e) => (b || !e.stat) && (s.chip[e.key] ?? 0) > 0), O = t.chips.length > 0, V = (e) => i({
|
|
49
49
|
...t,
|
|
50
50
|
chips: t.chips.includes(e) ? t.chips.filter((r) => r !== e) : [...t.chips, e]
|
|
51
|
-
}), v = (e) =>
|
|
51
|
+
}), v = (e) => i({ ...t, view: e }), N = (e) => i({ ...t, density: e }), W = (e, r) => {
|
|
52
52
|
const n = e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 0;
|
|
53
53
|
if (!n) return;
|
|
54
54
|
e.preventDefault();
|
|
55
55
|
const o = p[(r + n + p.length) % p.length];
|
|
56
56
|
v(o.key);
|
|
57
|
-
const
|
|
57
|
+
const g = e.currentTarget.parentElement;
|
|
58
58
|
requestAnimationFrame(
|
|
59
59
|
() => {
|
|
60
60
|
var C;
|
|
61
|
-
return (C =
|
|
61
|
+
return (C = g == null ? void 0 : g.querySelectorAll("[role=radio]")[p.indexOf(o)]) == null ? void 0 : C.focus();
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
|
-
}, q = () =>
|
|
64
|
+
}, q = () => i(
|
|
65
65
|
t.arranging ? { ...t, arranging: !1 } : { ...t, arranging: !0, selecting: !1, view: "folders" }
|
|
66
|
-
), _ = () =>
|
|
66
|
+
), _ = () => i(
|
|
67
67
|
t.selecting ? { ...t, selecting: !1 } : { ...t, selecting: !0, arranging: !1 }
|
|
68
68
|
);
|
|
69
69
|
return /* @__PURE__ */ l(
|
|
@@ -75,12 +75,12 @@ function $({
|
|
|
75
75
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-x-4 gap-y-2", children: [
|
|
76
76
|
/* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
77
77
|
/* @__PURE__ */ a("h1", { className: "text-[18px] font-semibold text-slate-900 dark:text-slate-100", children: A }),
|
|
78
|
-
/* @__PURE__ */ a("span", { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[11px] font-semibold tabular-nums text-slate-500 dark:bg-white/10 dark:text-slate-400", children:
|
|
78
|
+
/* @__PURE__ */ a("span", { className: "rounded-full bg-slate-100 px-2 py-0.5 text-[11px] font-semibold tabular-nums text-slate-500 dark:bg-white/10 dark:text-slate-400", children: s.total })
|
|
79
79
|
] }),
|
|
80
80
|
/* @__PURE__ */ l("div", { "data-cdr": "", className: "relative w-full md:[&[data-cdr]]:w-auto", children: [
|
|
81
81
|
/* @__PURE__ */ a(j, { className: "pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-slate-400" }),
|
|
82
82
|
/* @__PURE__ */ a(
|
|
83
|
-
|
|
83
|
+
z,
|
|
84
84
|
{
|
|
85
85
|
ref: I,
|
|
86
86
|
value: H,
|
|
@@ -136,7 +136,7 @@ function $({
|
|
|
136
136
|
"aria-label": "Compact density",
|
|
137
137
|
"data-tip": "Compact",
|
|
138
138
|
onClick: () => N("compact"),
|
|
139
|
-
className: c(d, "px-2", t.density === "compact" ?
|
|
139
|
+
className: c(d, "px-2", t.density === "compact" ? x : h),
|
|
140
140
|
children: /* @__PURE__ */ a(K, { className: "h-3.5 w-3.5" })
|
|
141
141
|
}
|
|
142
142
|
),
|
|
@@ -148,12 +148,12 @@ function $({
|
|
|
148
148
|
"aria-label": "Comfortable density",
|
|
149
149
|
"data-tip": "Comfortable",
|
|
150
150
|
onClick: () => N("comfortable"),
|
|
151
|
-
className: c(d, "px-2", t.density === "comfortable" ?
|
|
151
|
+
className: c(d, "px-2", t.density === "comfortable" ? x : h),
|
|
152
152
|
children: /* @__PURE__ */ a(T, { className: "h-3.5 w-3.5" })
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
] }),
|
|
156
|
-
b && (y || f ||
|
|
156
|
+
b && (y || f || u) && /* @__PURE__ */ l("div", { className: "ml-auto flex items-center gap-1", children: [
|
|
157
157
|
y,
|
|
158
158
|
f && /* @__PURE__ */ a(
|
|
159
159
|
"button",
|
|
@@ -161,17 +161,17 @@ function $({
|
|
|
161
161
|
type: "button",
|
|
162
162
|
"aria-pressed": t.arranging,
|
|
163
163
|
onClick: q,
|
|
164
|
-
className: c(d, t.arranging ?
|
|
164
|
+
className: c(d, t.arranging ? x : h),
|
|
165
165
|
children: t.arranging ? "Done arranging" : "Arrange"
|
|
166
166
|
}
|
|
167
167
|
),
|
|
168
|
-
|
|
168
|
+
u && /* @__PURE__ */ a(
|
|
169
169
|
"button",
|
|
170
170
|
{
|
|
171
171
|
type: "button",
|
|
172
172
|
"aria-pressed": t.selecting,
|
|
173
173
|
onClick: _,
|
|
174
|
-
className: c(d, t.selecting ?
|
|
174
|
+
className: c(d, t.selecting ? x : h),
|
|
175
175
|
children: "Select"
|
|
176
176
|
}
|
|
177
177
|
)
|
|
@@ -193,7 +193,7 @@ function $({
|
|
|
193
193
|
),
|
|
194
194
|
children: [
|
|
195
195
|
e.label,
|
|
196
|
-
/* @__PURE__ */ a("span", { className: "tabular-nums text-slate-400 dark:text-slate-500", children:
|
|
196
|
+
/* @__PURE__ */ a("span", { className: "tabular-nums text-slate-400 dark:text-slate-500", children: s.chip[e.key] })
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
199
|
e.key
|
|
@@ -203,13 +203,13 @@ function $({
|
|
|
203
203
|
"button",
|
|
204
204
|
{
|
|
205
205
|
type: "button",
|
|
206
|
-
onClick: () =>
|
|
206
|
+
onClick: () => i({ ...t, chips: [] }),
|
|
207
207
|
className: "px-1.5 text-[11.5px] text-slate-500 underline-offset-2 hover:underline dark:text-slate-400",
|
|
208
208
|
children: "Clear"
|
|
209
209
|
}
|
|
210
210
|
),
|
|
211
211
|
/* @__PURE__ */ l("div", { className: "ml-auto flex flex-wrap items-center gap-x-4 gap-y-1", children: [
|
|
212
|
-
|
|
212
|
+
s.hidden > 0 && /* @__PURE__ */ l(
|
|
213
213
|
"label",
|
|
214
214
|
{
|
|
215
215
|
htmlFor: "coll-show-hidden",
|
|
@@ -219,18 +219,17 @@ function $({
|
|
|
219
219
|
S,
|
|
220
220
|
{
|
|
221
221
|
checked: t.showHidden,
|
|
222
|
-
onCheckedChange: (e) =>
|
|
222
|
+
onCheckedChange: (e) => i({ ...t, showHidden: e }),
|
|
223
223
|
id: "coll-show-hidden",
|
|
224
224
|
className: "h-4 w-7 data-[state=checked]:bg-nvr-cyan [&>span]:h-3 [&>span]:w-3 [&>span]:data-[state=checked]:translate-x-3"
|
|
225
225
|
}
|
|
226
226
|
),
|
|
227
|
-
"Show hidden collections
|
|
228
|
-
|
|
229
|
-
")"
|
|
227
|
+
"Show hidden collections",
|
|
228
|
+
s.pending ? "" : ` (${s.hidden})`
|
|
230
229
|
]
|
|
231
230
|
}
|
|
232
231
|
),
|
|
233
|
-
|
|
232
|
+
s.links > 0 && /* @__PURE__ */ l(
|
|
234
233
|
"label",
|
|
235
234
|
{
|
|
236
235
|
htmlFor: "coll-show-links",
|
|
@@ -240,22 +239,21 @@ function $({
|
|
|
240
239
|
S,
|
|
241
240
|
{
|
|
242
241
|
checked: t.showLinks,
|
|
243
|
-
onCheckedChange: (e) =>
|
|
242
|
+
onCheckedChange: (e) => i({ ...t, showLinks: e }),
|
|
244
243
|
id: "coll-show-links",
|
|
245
244
|
className: "h-4 w-7 data-[state=checked]:bg-nvr-cyan [&>span]:h-3 [&>span]:w-3 [&>span]:data-[state=checked]:translate-x-3"
|
|
246
245
|
}
|
|
247
246
|
),
|
|
248
|
-
"Show link tables
|
|
249
|
-
|
|
250
|
-
")"
|
|
247
|
+
"Show link tables",
|
|
248
|
+
s.pending ? "" : ` (${s.links})`
|
|
251
249
|
]
|
|
252
250
|
}
|
|
253
251
|
)
|
|
254
252
|
] })
|
|
255
253
|
] }),
|
|
256
|
-
b &&
|
|
254
|
+
b && u && t.selecting && /* @__PURE__ */ l("div", { className: "mt-2 flex items-center gap-3 rounded-md bg-nvr-cyan/10 px-3 py-1.5 text-[12px] text-slate-700 dark:text-slate-200", children: [
|
|
257
255
|
/* @__PURE__ */ l("span", { className: "font-medium tabular-nums", children: [
|
|
258
|
-
|
|
256
|
+
k,
|
|
259
257
|
" selected"
|
|
260
258
|
] }),
|
|
261
259
|
/* @__PURE__ */ a(
|
|
@@ -263,7 +261,7 @@ function $({
|
|
|
263
261
|
{
|
|
264
262
|
type: "button",
|
|
265
263
|
onClick: D,
|
|
266
|
-
disabled:
|
|
264
|
+
disabled: k === 0,
|
|
267
265
|
className: "font-medium text-cyan-700 hover:underline disabled:opacity-40 dark:text-nvr-cyan",
|
|
268
266
|
children: "Move to folder…"
|
|
269
267
|
}
|
|
@@ -283,5 +281,5 @@ function $({
|
|
|
283
281
|
);
|
|
284
282
|
}
|
|
285
283
|
export {
|
|
286
|
-
|
|
284
|
+
Y as CollectionsToolbar
|
|
287
285
|
};
|