@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
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s, Fragment as
|
|
2
|
-
import { useQuery as
|
|
3
|
-
import { KeyRound as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useNivaroClient as
|
|
6
|
-
import { get as
|
|
7
|
-
import { formatDateTime as
|
|
8
|
-
import { ErrorNotice as
|
|
9
|
-
import { Skeleton as
|
|
10
|
-
import { SectionCard as
|
|
11
|
-
const
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { useQuery as v } from "@tanstack/react-query";
|
|
3
|
+
import { KeyRound as L, CircleAlert as _, CircleCheck as T, CircleX as S, CircleHelp as W, LogIn as I, Smartphone as O, ChevronDown as $ } from "lucide-react";
|
|
4
|
+
import { useState as w } from "react";
|
|
5
|
+
import { useNivaroClient as q } from "../../context.js";
|
|
6
|
+
import { get as C } from "../../lib/commands.js";
|
|
7
|
+
import { formatDateTime as m, formatRelative as h, cn as b } from "../../lib/utils.js";
|
|
8
|
+
import { ErrorNotice as R } from "../ErrorNotice.js";
|
|
9
|
+
import { Skeleton as k } from "../ui/skeleton.js";
|
|
10
|
+
import { SectionCard as B, EmptyLine as A } from "./primitives.js";
|
|
11
|
+
const F = {
|
|
12
12
|
person: "They can fix this",
|
|
13
13
|
admin: "An administrator here fixes this",
|
|
14
14
|
it: "Their IT team fixes this",
|
|
15
15
|
wait: "Usually clears by itself"
|
|
16
|
-
},
|
|
16
|
+
}, P = {
|
|
17
|
+
person: "them",
|
|
18
|
+
admin: "an administrator here",
|
|
19
|
+
it: "their IT team",
|
|
20
|
+
wait: "nobody, it usually clears by itself"
|
|
21
|
+
}, E = {
|
|
17
22
|
oidc: "Single sign-on",
|
|
18
23
|
saml: "SAML",
|
|
19
24
|
password: "Password",
|
|
@@ -21,86 +26,86 @@ const C = {
|
|
|
21
26
|
token: "Token",
|
|
22
27
|
static_token: "Token",
|
|
23
28
|
phone: "Phone app"
|
|
24
|
-
},
|
|
25
|
-
function
|
|
26
|
-
var d,
|
|
27
|
-
const i =
|
|
29
|
+
}, N = (e) => e ? e === "admin" ? "Admin" : e === "phone" ? "Phone app" : e : null, y = 8;
|
|
30
|
+
function te({ profile: e }) {
|
|
31
|
+
var d, c;
|
|
32
|
+
const i = q(), a = v({
|
|
28
33
|
queryKey: ["nvr-sign-in-troubleshooter", e.id],
|
|
29
|
-
queryFn: () => i.request(
|
|
34
|
+
queryFn: () => i.request(C(`/users/${e.id}/sign-in-troubleshooter`)).then((p) => p.data),
|
|
30
35
|
staleTime: 3e4
|
|
31
|
-
}), [
|
|
36
|
+
}), [r, n] = w(!1), o = ((d = e.first_name) == null ? void 0 : d.trim()) || e.name || "They";
|
|
32
37
|
return /* @__PURE__ */ t(
|
|
33
|
-
|
|
38
|
+
B,
|
|
34
39
|
{
|
|
35
|
-
icon: /* @__PURE__ */ t(
|
|
40
|
+
icon: /* @__PURE__ */ t(L, { className: "h-4 w-4" }),
|
|
36
41
|
title: "Sign-in troubleshooter",
|
|
37
42
|
hint: "Why their sign-ins failed in the last 30 days, and what to do",
|
|
38
43
|
testId: "sign-in-troubleshooter",
|
|
39
44
|
children: a.isLoading ? /* @__PURE__ */ s("div", { className: "space-y-3", "aria-hidden": !0, children: [
|
|
40
|
-
/* @__PURE__ */ t(
|
|
41
|
-
/* @__PURE__ */ t(
|
|
42
|
-
/* @__PURE__ */ t(
|
|
43
|
-
] }) : a.isError || !a.data ? /* @__PURE__ */ t(
|
|
44
|
-
|
|
45
|
+
/* @__PURE__ */ t(k, { className: "h-16 w-full" }),
|
|
46
|
+
/* @__PURE__ */ t(k, { className: "h-9 w-full" }),
|
|
47
|
+
/* @__PURE__ */ t(k, { className: "h-9 w-2/3" })
|
|
48
|
+
] }) : a.isError || !a.data ? /* @__PURE__ */ t(R, { error: a.error, what: "sign-in history", onRetry: () => a.refetch() }) : /* @__PURE__ */ t(
|
|
49
|
+
j,
|
|
45
50
|
{
|
|
46
51
|
t: a.data,
|
|
47
|
-
first:
|
|
48
|
-
sessions: ((
|
|
52
|
+
first: o,
|
|
53
|
+
sessions: ((c = e.admin) == null ? void 0 : c.sessions) ?? null,
|
|
49
54
|
userId: e.id,
|
|
50
|
-
all:
|
|
51
|
-
onAll: () =>
|
|
55
|
+
all: r,
|
|
56
|
+
onAll: () => n(!0)
|
|
52
57
|
}
|
|
53
58
|
)
|
|
54
59
|
}
|
|
55
60
|
);
|
|
56
61
|
}
|
|
57
|
-
function
|
|
62
|
+
function j({
|
|
58
63
|
t: e,
|
|
59
64
|
first: i,
|
|
60
65
|
sessions: a,
|
|
61
|
-
userId:
|
|
62
|
-
all:
|
|
63
|
-
onAll:
|
|
66
|
+
userId: r,
|
|
67
|
+
all: n,
|
|
68
|
+
onAll: o
|
|
64
69
|
}) {
|
|
65
|
-
var
|
|
66
|
-
const d = e.attempts.filter((
|
|
70
|
+
var f;
|
|
71
|
+
const d = e.attempts.filter((l) => l.outcome === "failed").length, c = D(e.attempts), p = n ? c : c.slice(0, y);
|
|
67
72
|
return /* @__PURE__ */ s("div", { className: "space-y-4", "data-sign-in-troubleshooter": !0, children: [
|
|
68
|
-
/* @__PURE__ */ t(
|
|
69
|
-
/* @__PURE__ */ t("ul", { className: "grid gap-x-4 gap-y-2 sm:grid-cols-2", "data-sign-in-checks": !0, children: e.checks.map((
|
|
70
|
-
|
|
73
|
+
/* @__PURE__ */ t(H, { t: e, first: i }),
|
|
74
|
+
/* @__PURE__ */ t("ul", { className: "grid gap-x-4 gap-y-2 sm:grid-cols-2", "data-sign-in-checks": !0, children: e.checks.map((l) => /* @__PURE__ */ s("li", { className: "flex min-w-0 items-start gap-2", "data-sign-in-check": l.key, children: [
|
|
75
|
+
l.stale ? /* @__PURE__ */ t(_, { className: "mt-px h-3.5 w-3.5 shrink-0 text-amber-600 dark:text-amber-400" }) : l.ok === !0 ? /* @__PURE__ */ t(T, { className: "mt-px h-3.5 w-3.5 shrink-0 text-emerald-600 dark:text-emerald-400" }) : l.ok === !1 ? /* @__PURE__ */ t(S, { className: "mt-px h-3.5 w-3.5 shrink-0 text-red-600 dark:text-red-400" }) : /* @__PURE__ */ t(W, { className: "mt-px h-3.5 w-3.5 shrink-0 text-slate-400 dark:text-slate-500" }),
|
|
71
76
|
/* @__PURE__ */ s("div", { className: "min-w-0", children: [
|
|
72
|
-
/* @__PURE__ */ t("p", { className: "text-[12px] font-medium text-slate-800 dark:text-slate-100", children:
|
|
73
|
-
/* @__PURE__ */ t("p", { className: "text-[11.5px] leading-snug text-slate-500 dark:text-slate-400", children:
|
|
77
|
+
/* @__PURE__ */ t("p", { className: "text-[12px] font-medium text-slate-800 dark:text-slate-100", children: l.label }),
|
|
78
|
+
/* @__PURE__ */ t("p", { className: "text-[11.5px] leading-snug text-slate-500 dark:text-slate-400", children: l.detail })
|
|
74
79
|
] })
|
|
75
|
-
] },
|
|
80
|
+
] }, l.key)) }),
|
|
76
81
|
/* @__PURE__ */ s(
|
|
77
82
|
"dl",
|
|
78
83
|
{
|
|
79
|
-
className:
|
|
80
|
-
"grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 dark:border-border dark:bg-border",
|
|
84
|
+
className: b(
|
|
85
|
+
"grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-slate-200 bg-slate-200 max-sm:[&>*:last-child:nth-child(odd)]:col-span-2 dark:border-border dark:bg-border",
|
|
81
86
|
a == null ? "sm:grid-cols-3" : "sm:grid-cols-4"
|
|
82
87
|
),
|
|
83
88
|
children: [
|
|
84
89
|
/* @__PURE__ */ t(
|
|
85
|
-
|
|
90
|
+
g,
|
|
86
91
|
{
|
|
87
92
|
label: "Last sign-in",
|
|
88
|
-
value: e.last_success ?
|
|
89
|
-
tip: e.last_success ?
|
|
90
|
-
sub: e.last_success && [
|
|
93
|
+
value: e.last_success ? h(e.last_success.at) : "None in 30 days",
|
|
94
|
+
tip: e.last_success ? m(e.last_success.at) : void 0,
|
|
95
|
+
sub: e.last_success && [N(e.last_success.app), E[e.last_success.method]].filter(Boolean).join(" · ") || null
|
|
91
96
|
}
|
|
92
97
|
),
|
|
93
|
-
a != null && /* @__PURE__ */ t(
|
|
98
|
+
a != null && /* @__PURE__ */ t(g, { label: "Live sessions", value: String(a), sub: "Browser tabs signed in" }),
|
|
94
99
|
/* @__PURE__ */ t(
|
|
95
|
-
|
|
100
|
+
g,
|
|
96
101
|
{
|
|
97
102
|
label: "Phones",
|
|
98
103
|
value: String(e.phones.length),
|
|
99
|
-
sub: ((
|
|
104
|
+
sub: ((f = e.phones[0]) == null ? void 0 : f.name) ?? "None signed in"
|
|
100
105
|
}
|
|
101
106
|
),
|
|
102
107
|
/* @__PURE__ */ t(
|
|
103
|
-
|
|
108
|
+
g,
|
|
104
109
|
{
|
|
105
110
|
label: `Failed · ${e.window_days} days`,
|
|
106
111
|
value: String(d),
|
|
@@ -114,38 +119,39 @@ function W({
|
|
|
114
119
|
e.apps.length > 0 && /* @__PURE__ */ s("p", { className: "text-[11.5px] text-slate-500 dark:text-slate-400", "data-sign-in-apps": !0, children: [
|
|
115
120
|
"Signed in to",
|
|
116
121
|
" ",
|
|
117
|
-
e.apps.map((
|
|
118
|
-
|
|
119
|
-
/* @__PURE__ */ t("span", { className: "font-medium text-slate-700 dark:text-slate-200", children:
|
|
122
|
+
e.apps.map((l, x) => /* @__PURE__ */ s("span", { children: [
|
|
123
|
+
x > 0 && ", ",
|
|
124
|
+
/* @__PURE__ */ t("span", { className: "font-medium text-slate-700 dark:text-slate-200", children: N(l.app) ?? l.app }),
|
|
120
125
|
" ",
|
|
121
|
-
/* @__PURE__ */ t("span", { "data-tip":
|
|
122
|
-
] },
|
|
126
|
+
/* @__PURE__ */ t("span", { "data-tip": m(l.at), children: h(l.at) })
|
|
127
|
+
] }, l.app)),
|
|
123
128
|
"."
|
|
124
129
|
] }),
|
|
125
130
|
/* @__PURE__ */ s("div", { children: [
|
|
126
131
|
/* @__PURE__ */ t("h4", { className: "mb-1.5 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: "Attempts" }),
|
|
127
|
-
e.attempts.length === 0 ? /* @__PURE__ */ s(
|
|
132
|
+
e.attempts.length === 0 ? /* @__PURE__ */ s(A, { children: [
|
|
128
133
|
"No sign-ins or failed attempts in the last ",
|
|
129
134
|
e.window_days,
|
|
130
135
|
" days. Failures from before this was turned on are not recorded."
|
|
131
|
-
] }) : /* @__PURE__ */ t("ol", { className: "divide-y divide-slate-100 rounded-lg border border-slate-200 dark:divide-border/60 dark:border-border", children:
|
|
132
|
-
!
|
|
136
|
+
] }) : /* @__PURE__ */ t("ol", { className: "divide-y divide-slate-100 rounded-lg border border-slate-200 dark:divide-border/60 dark:border-border", children: p.map((l) => /* @__PURE__ */ t(K, { a: l.a, times: l.times, first: l.first }, l.a.id)) }),
|
|
137
|
+
!n && c.length > y && /* @__PURE__ */ s(
|
|
133
138
|
"button",
|
|
134
139
|
{
|
|
135
140
|
type: "button",
|
|
136
|
-
onClick:
|
|
137
|
-
className: "mt-2 text-[11.5px] font-medium text-
|
|
141
|
+
onClick: o,
|
|
142
|
+
className: "mt-2 rounded text-[11.5px] font-medium text-sky-700 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-nvr-cyan/60 dark:text-nvr-cyan",
|
|
138
143
|
children: [
|
|
139
144
|
"Show all ",
|
|
140
|
-
e.attempts.length
|
|
145
|
+
e.attempts.length,
|
|
146
|
+
" attempts"
|
|
141
147
|
]
|
|
142
148
|
}
|
|
143
149
|
)
|
|
144
150
|
] }),
|
|
145
|
-
/* @__PURE__ */ t(
|
|
151
|
+
/* @__PURE__ */ t(M, { userId: r })
|
|
146
152
|
] });
|
|
147
153
|
}
|
|
148
|
-
function
|
|
154
|
+
function H({ t: e, first: i }) {
|
|
149
155
|
const a = e.current;
|
|
150
156
|
if (a)
|
|
151
157
|
return /* @__PURE__ */ t(
|
|
@@ -154,12 +160,12 @@ function j({ t: e, first: i }) {
|
|
|
154
160
|
className: "rounded-lg border border-amber-200 bg-amber-50 px-3.5 py-3 dark:border-amber-500/30 dark:bg-amber-500/10",
|
|
155
161
|
"data-sign-in-current": a.reason ?? "",
|
|
156
162
|
children: /* @__PURE__ */ s("div", { className: "flex items-start gap-2.5", children: [
|
|
157
|
-
/* @__PURE__ */ t(
|
|
163
|
+
/* @__PURE__ */ t(_, { className: "mt-0.5 h-4 w-4 shrink-0 text-amber-600 dark:text-amber-400" }),
|
|
158
164
|
/* @__PURE__ */ s("div", { className: "min-w-0 space-y-1", children: [
|
|
159
165
|
/* @__PURE__ */ s("p", { className: "text-[13px] font-semibold text-amber-950 dark:text-amber-100", children: [
|
|
160
166
|
a.label,
|
|
161
|
-
/* @__PURE__ */ s("span", { className: "
|
|
162
|
-
/* @__PURE__ */ t("span", { "data-tip":
|
|
167
|
+
/* @__PURE__ */ s("span", { className: "block whitespace-nowrap text-[11.5px] sm:ml-2 sm:inline-block font-normal text-amber-800 dark:text-amber-300", children: [
|
|
168
|
+
/* @__PURE__ */ t("span", { "data-tip": m(a.at), children: h(a.at) }),
|
|
163
169
|
a.match === "browser" && " · probably them"
|
|
164
170
|
] })
|
|
165
171
|
] }),
|
|
@@ -168,9 +174,10 @@ function j({ t: e, first: i }) {
|
|
|
168
174
|
/* @__PURE__ */ t("span", { className: "font-semibold", children: "What to do: " }),
|
|
169
175
|
a.todo
|
|
170
176
|
] }),
|
|
171
|
-
a.owner && /* @__PURE__ */ s("p", { className: "text-[11.5px] text-amber-800 dark:text-amber-300", children: [
|
|
172
|
-
|
|
173
|
-
a.
|
|
177
|
+
a.owner && /* @__PURE__ */ s("p", { className: "text-[11.5px] text-amber-800/80 dark:text-amber-300/80", children: [
|
|
178
|
+
"Who can fix it: ",
|
|
179
|
+
P[a.owner],
|
|
180
|
+
a.code && /* @__PURE__ */ s(u, { children: [
|
|
174
181
|
" · code ",
|
|
175
182
|
a.code
|
|
176
183
|
] })
|
|
@@ -179,24 +186,24 @@ function j({ t: e, first: i }) {
|
|
|
179
186
|
] })
|
|
180
187
|
}
|
|
181
188
|
);
|
|
182
|
-
const
|
|
189
|
+
const r = e.last_success;
|
|
183
190
|
return /* @__PURE__ */ s(
|
|
184
191
|
"div",
|
|
185
192
|
{
|
|
186
193
|
className: "flex items-start gap-2.5 rounded-lg border border-slate-200 bg-slate-50 px-3.5 py-3 dark:border-border dark:bg-muted/40",
|
|
187
194
|
"data-sign-in-current": "none",
|
|
188
195
|
children: [
|
|
189
|
-
/* @__PURE__ */ t(
|
|
190
|
-
/* @__PURE__ */ t("p", { className: "text-[12.5px] leading-snug text-slate-700 dark:text-slate-200", children:
|
|
196
|
+
/* @__PURE__ */ t(T, { className: "mt-0.5 h-4 w-4 shrink-0 text-emerald-600 dark:text-emerald-400" }),
|
|
197
|
+
/* @__PURE__ */ t("p", { className: "text-[12.5px] leading-snug text-slate-700 dark:text-slate-200", children: r ? /* @__PURE__ */ s(u, { children: [
|
|
191
198
|
/* @__PURE__ */ t("span", { className: "font-semibold", children: "No sign-in problem since their last sign-in" }),
|
|
192
199
|
" ",
|
|
193
|
-
/* @__PURE__ */ t("span", { "data-tip":
|
|
194
|
-
|
|
200
|
+
/* @__PURE__ */ t("span", { "data-tip": m(r.at), children: h(r.at) }),
|
|
201
|
+
r.browser && /* @__PURE__ */ s(u, { children: [
|
|
195
202
|
" on ",
|
|
196
|
-
|
|
203
|
+
r.browser
|
|
197
204
|
] }),
|
|
198
205
|
"."
|
|
199
|
-
] }) : /* @__PURE__ */ s(
|
|
206
|
+
] }) : /* @__PURE__ */ s(u, { children: [
|
|
200
207
|
/* @__PURE__ */ s("span", { className: "font-semibold", children: [
|
|
201
208
|
i,
|
|
202
209
|
" has not signed in for 30 days"
|
|
@@ -207,41 +214,49 @@ function j({ t: e, first: i }) {
|
|
|
207
214
|
}
|
|
208
215
|
);
|
|
209
216
|
}
|
|
210
|
-
function
|
|
217
|
+
function g({
|
|
211
218
|
label: e,
|
|
212
219
|
value: i,
|
|
213
220
|
sub: a,
|
|
214
|
-
tip:
|
|
215
|
-
warn:
|
|
221
|
+
tip: r,
|
|
222
|
+
warn: n
|
|
216
223
|
}) {
|
|
217
224
|
return /* @__PURE__ */ s("div", { className: "min-w-0 bg-white px-3 py-2 dark:bg-card", children: [
|
|
218
225
|
/* @__PURE__ */ t("dt", { className: "text-[10.5px] font-medium text-slate-500 dark:text-slate-400", children: e }),
|
|
219
226
|
/* @__PURE__ */ t(
|
|
220
227
|
"dd",
|
|
221
228
|
{
|
|
222
|
-
className:
|
|
229
|
+
className: b(
|
|
223
230
|
"truncate text-[13px] font-semibold tabular-nums",
|
|
224
|
-
|
|
231
|
+
n ? "text-amber-700 dark:text-amber-300" : "text-slate-800 dark:text-slate-100"
|
|
225
232
|
),
|
|
226
|
-
"data-tip":
|
|
233
|
+
"data-tip": r,
|
|
227
234
|
children: i
|
|
228
235
|
}
|
|
229
236
|
),
|
|
230
237
|
a && /* @__PURE__ */ t("dd", { className: "truncate text-[11px] text-slate-500 dark:text-slate-400", title: a, children: a })
|
|
231
238
|
] });
|
|
232
239
|
}
|
|
233
|
-
function
|
|
234
|
-
const [
|
|
235
|
-
|
|
236
|
-
|
|
240
|
+
function D(e) {
|
|
241
|
+
const i = [], a = (r, n) => r.outcome === n.outcome && (r.outcome === "signed_in" || r.outcome === "failed" && r.reason === n.reason && r.code === n.code && r.match === n.match) && r.label === n.label && r.method === n.method && r.app === n.app && r.browser === n.browser && r.ip === n.ip && !n.new_ip;
|
|
242
|
+
for (const r of e) {
|
|
243
|
+
const n = i[i.length - 1];
|
|
244
|
+
n && a(n.a, r) ? (n.times++, n.first = r.at) : i.push({ a: r, times: 1, first: r.at });
|
|
245
|
+
}
|
|
246
|
+
return i;
|
|
247
|
+
}
|
|
248
|
+
function K({ a: e, times: i = 1, first: a }) {
|
|
249
|
+
const [r, n] = w(!1), o = e.outcome === "failed", d = !!(e.explain || e.todo), c = [
|
|
250
|
+
N(e.app),
|
|
251
|
+
e.method ? E[e.method] ?? e.method : null,
|
|
237
252
|
e.code
|
|
238
|
-
].filter(Boolean),
|
|
253
|
+
].filter(Boolean), p = i > 1 && a ? `${m(a)} – ${m(e.at)}` : m(e.at), f = e.outcome === "signed_in" ? I : e.outcome === "ended" ? O : S, l = /* @__PURE__ */ s(u, { children: [
|
|
239
254
|
/* @__PURE__ */ t(
|
|
240
|
-
|
|
255
|
+
f,
|
|
241
256
|
{
|
|
242
|
-
className:
|
|
257
|
+
className: b(
|
|
243
258
|
"mt-0.5 h-3.5 w-3.5 shrink-0",
|
|
244
|
-
|
|
259
|
+
o ? "text-red-600 dark:text-red-400" : e.outcome === "signed_in" ? "text-emerald-600 dark:text-emerald-400" : "text-slate-400 dark:text-slate-500"
|
|
245
260
|
)
|
|
246
261
|
}
|
|
247
262
|
),
|
|
@@ -250,20 +265,20 @@ function $({ a: e }) {
|
|
|
250
265
|
/* @__PURE__ */ t(
|
|
251
266
|
"span",
|
|
252
267
|
{
|
|
253
|
-
className:
|
|
268
|
+
className: b(
|
|
254
269
|
"text-[12px] font-medium",
|
|
255
|
-
|
|
270
|
+
o ? "text-slate-900 dark:text-slate-50" : "text-slate-700 dark:text-slate-200"
|
|
256
271
|
),
|
|
257
272
|
children: e.label
|
|
258
273
|
}
|
|
259
274
|
),
|
|
260
|
-
c.map((
|
|
275
|
+
c.map((x) => /* @__PURE__ */ t(
|
|
261
276
|
"span",
|
|
262
277
|
{
|
|
263
278
|
className: "rounded bg-slate-100 px-1.5 py-px text-[10.5px] text-slate-600 dark:bg-muted dark:text-slate-300",
|
|
264
|
-
children:
|
|
279
|
+
children: x
|
|
265
280
|
},
|
|
266
|
-
|
|
281
|
+
x
|
|
267
282
|
)),
|
|
268
283
|
e.match === "browser" && /* @__PURE__ */ t(
|
|
269
284
|
"span",
|
|
@@ -273,60 +288,77 @@ function $({ a: e }) {
|
|
|
273
288
|
children: "Probably them"
|
|
274
289
|
}
|
|
275
290
|
),
|
|
276
|
-
e.new_ip && /* @__PURE__ */ t("span", { className: "rounded bg-sky-100 px-1.5 py-px text-[10.5px] text-sky-800 dark:bg-sky-500/15 dark:text-sky-300", children: "New address" })
|
|
291
|
+
e.new_ip && /* @__PURE__ */ t("span", { className: "rounded bg-sky-100 px-1.5 py-px text-[10.5px] text-sky-800 dark:bg-sky-500/15 dark:text-sky-300", children: "New address" }),
|
|
292
|
+
i > 1 && /* @__PURE__ */ s(
|
|
293
|
+
"span",
|
|
294
|
+
{
|
|
295
|
+
className: "text-[11px] font-medium tabular-nums text-slate-600 dark:text-slate-300",
|
|
296
|
+
"data-sign-in-folded": i,
|
|
297
|
+
children: [
|
|
298
|
+
"× ",
|
|
299
|
+
i
|
|
300
|
+
]
|
|
301
|
+
}
|
|
302
|
+
),
|
|
303
|
+
/* @__PURE__ */ t(
|
|
304
|
+
"span",
|
|
305
|
+
{
|
|
306
|
+
className: "ml-auto hidden shrink-0 whitespace-nowrap pl-2 text-[11px] tabular-nums text-slate-500 sm:inline dark:text-slate-400",
|
|
307
|
+
"data-tip": p,
|
|
308
|
+
children: h(e.at)
|
|
309
|
+
}
|
|
310
|
+
)
|
|
277
311
|
] }),
|
|
278
|
-
/* @__PURE__ */
|
|
279
|
-
|
|
312
|
+
/* @__PURE__ */ s("p", { className: "truncate text-[11px] text-slate-500 dark:text-slate-400", children: [
|
|
313
|
+
[e.browser, e.ip].filter(Boolean).join(" · ") || " ",
|
|
314
|
+
/* @__PURE__ */ s("span", { className: "tabular-nums sm:hidden", "data-tip": p, children: [
|
|
315
|
+
e.browser || e.ip ? " · " : "",
|
|
316
|
+
h(e.at)
|
|
317
|
+
] })
|
|
318
|
+
] }),
|
|
319
|
+
r && d && /* @__PURE__ */ s("div", { className: "mt-1.5 space-y-1 text-[11.5px] leading-snug", "data-sign-in-detail": !0, children: [
|
|
280
320
|
e.explain && /* @__PURE__ */ t("p", { className: "text-slate-600 dark:text-slate-300", children: e.explain }),
|
|
281
321
|
e.todo && /* @__PURE__ */ s("p", { className: "text-slate-800 dark:text-slate-100", children: [
|
|
282
322
|
/* @__PURE__ */ t("span", { className: "font-semibold", children: "What to do: " }),
|
|
283
323
|
e.todo
|
|
284
324
|
] }),
|
|
285
|
-
e.owner && /* @__PURE__ */ t("p", { className: "text-slate-500 dark:text-slate-400", children:
|
|
325
|
+
e.owner && /* @__PURE__ */ t("p", { className: "text-slate-500 dark:text-slate-400", children: F[e.owner] })
|
|
286
326
|
] })
|
|
287
327
|
] }),
|
|
288
|
-
/* @__PURE__ */ t(
|
|
289
|
-
|
|
328
|
+
d && /* @__PURE__ */ t(
|
|
329
|
+
$,
|
|
290
330
|
{
|
|
291
|
-
className:
|
|
292
|
-
"data-tip": h(e.at),
|
|
293
|
-
children: x(e.at)
|
|
294
|
-
}
|
|
295
|
-
),
|
|
296
|
-
r && /* @__PURE__ */ t(
|
|
297
|
-
O,
|
|
298
|
-
{
|
|
299
|
-
className: u(
|
|
331
|
+
className: b(
|
|
300
332
|
"mt-0.5 h-3.5 w-3.5 shrink-0 text-slate-400 transition-transform",
|
|
301
|
-
|
|
333
|
+
r && "rotate-180"
|
|
302
334
|
)
|
|
303
335
|
}
|
|
304
336
|
)
|
|
305
337
|
] });
|
|
306
|
-
return /* @__PURE__ */ t("li", { "data-sign-in-attempt": e.outcome, children:
|
|
338
|
+
return /* @__PURE__ */ t("li", { "data-sign-in-attempt": e.outcome, children: d ? /* @__PURE__ */ t(
|
|
307
339
|
"button",
|
|
308
340
|
{
|
|
309
341
|
type: "button",
|
|
310
|
-
"aria-expanded":
|
|
311
|
-
onClick: () =>
|
|
342
|
+
"aria-expanded": r,
|
|
343
|
+
onClick: () => n((x) => !x),
|
|
312
344
|
className: "flex w-full items-start gap-2 px-3 py-2 text-left hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-nvr-cyan dark:hover:bg-muted/40",
|
|
313
|
-
children:
|
|
345
|
+
children: l
|
|
314
346
|
}
|
|
315
|
-
) : /* @__PURE__ */ t("div", { className: "flex items-start gap-2 px-3 py-2", children:
|
|
347
|
+
) : /* @__PURE__ */ t("div", { className: "flex items-start gap-2 px-3 py-2", children: l }) });
|
|
316
348
|
}
|
|
317
|
-
function
|
|
318
|
-
var
|
|
319
|
-
const i =
|
|
349
|
+
function M({ userId: e }) {
|
|
350
|
+
var o;
|
|
351
|
+
const i = q(), [a, r] = w(!1), n = v({
|
|
320
352
|
queryKey: ["nvr-sign-in-refusals", e],
|
|
321
353
|
queryFn: () => i.request(
|
|
322
|
-
|
|
354
|
+
C(`/users/${e}/sign-in-troubleshooter/refusals`)
|
|
323
355
|
).then((d) => d),
|
|
324
356
|
enabled: a,
|
|
325
357
|
staleTime: 6e4
|
|
326
358
|
});
|
|
327
359
|
return a ? /* @__PURE__ */ s("div", { className: "border-t border-slate-100 pt-3 dark:border-border/60", "data-sign-in-refusals": !0, children: [
|
|
328
360
|
/* @__PURE__ */ t("h4", { className: "mb-1.5 text-[12px] font-semibold text-slate-700 dark:text-slate-200", children: "Refused requests · 7 days" }),
|
|
329
|
-
|
|
361
|
+
n.isLoading ? /* @__PURE__ */ t(k, { className: "h-8 w-full" }) : n.isError ? /* @__PURE__ */ t(R, { error: n.error, what: "refused requests", onRetry: () => n.refetch() }) : (o = n.data) != null && o.data.length ? /* @__PURE__ */ t("ul", { className: "space-y-1", children: n.data.data.map((d) => /* @__PURE__ */ s("li", { className: "flex items-baseline gap-2 text-[12px]", children: [
|
|
330
362
|
/* @__PURE__ */ s("span", { className: "font-medium tabular-nums text-slate-800 dark:text-slate-100", children: [
|
|
331
363
|
d.n,
|
|
332
364
|
"×"
|
|
@@ -337,17 +369,17 @@ function D({ userId: e }) {
|
|
|
337
369
|
"span",
|
|
338
370
|
{
|
|
339
371
|
className: "shrink-0 text-[11px] text-slate-500 dark:text-slate-400",
|
|
340
|
-
"data-tip":
|
|
341
|
-
children:
|
|
372
|
+
"data-tip": m(d.last_at),
|
|
373
|
+
children: h(d.last_at)
|
|
342
374
|
}
|
|
343
375
|
)
|
|
344
|
-
] }, d.code)) }) : /* @__PURE__ */ t(
|
|
376
|
+
] }, d.code)) }) : /* @__PURE__ */ t(A, { children: "None — every request made as them was let through." })
|
|
345
377
|
] }) : /* @__PURE__ */ s("div", { className: "flex flex-wrap items-center gap-2 border-t border-slate-100 pt-3 dark:border-border/60", children: [
|
|
346
378
|
/* @__PURE__ */ t(
|
|
347
379
|
"button",
|
|
348
380
|
{
|
|
349
381
|
type: "button",
|
|
350
|
-
onClick: () =>
|
|
382
|
+
onClick: () => r(!0),
|
|
351
383
|
className: "inline-flex h-7 items-center rounded-md border border-slate-200 px-2.5 text-[11.5px] font-medium text-slate-700 transition-colors hover:bg-slate-50 dark:border-border dark:text-slate-200 dark:hover:bg-muted/40",
|
|
352
384
|
"data-sign-in-refusals-ask": !0,
|
|
353
385
|
children: "Check refused requests"
|
|
@@ -357,5 +389,6 @@ function D({ userId: e }) {
|
|
|
357
389
|
] });
|
|
358
390
|
}
|
|
359
391
|
export {
|
|
360
|
-
|
|
392
|
+
te as SignInTroubleshooterCard,
|
|
393
|
+
D as foldAttempts
|
|
361
394
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useQueryClient as b, useQuery as y, useMutation as k } from "@tanstack/react-query";
|
|
3
3
|
import { Smartphone as x, LogOut as S } from "lucide-react";
|
|
4
4
|
import { toast as w } from "sonner";
|
|
@@ -10,7 +10,7 @@ import { ErrorNotice as E } from "../ErrorNotice.js";
|
|
|
10
10
|
import { useOverflowTip as f } from "../TipLayer.js";
|
|
11
11
|
import { Skeleton as g } from "../ui/skeleton.js";
|
|
12
12
|
import { SectionCard as O, EmptyLine as P, ConfirmButton as T } from "./primitives.js";
|
|
13
|
-
const j = { ios: "iPhone", android: "Android phone" },
|
|
13
|
+
const j = { ios: "iPhone", android: "Android phone" }, h = (e) => e.platform ? j[e.platform] : "Phone";
|
|
14
14
|
function W({ userId: e, name: r }) {
|
|
15
15
|
const c = _(), o = b(), d = e ? `/users/${e}/devices` : "/auth/devices", l = ["nvr-signed-in-devices", e ?? "me"], n = y({
|
|
16
16
|
queryKey: l,
|
|
@@ -18,31 +18,31 @@ function W({ userId: e, name: r }) {
|
|
|
18
18
|
staleTime: 3e4
|
|
19
19
|
}), m = k({
|
|
20
20
|
mutationFn: (i) => c.request(C(`${d}/${i.id}`)),
|
|
21
|
-
onSuccess: (i,
|
|
22
|
-
o.setQueryData(l, (
|
|
21
|
+
onSuccess: (i, s) => {
|
|
22
|
+
o.setQueryData(l, (u) => u == null ? void 0 : u.filter((N) => N.id !== s.id)), w.success(`${s.device_name ?? h(s)} is signed out`);
|
|
23
23
|
},
|
|
24
24
|
onError: (i) => L(i, "Could not sign that phone out")
|
|
25
|
-
}),
|
|
25
|
+
}), p = n.data ?? [], v = (r == null ? void 0 : r.trim()) || "This person";
|
|
26
26
|
return /* @__PURE__ */ t(
|
|
27
27
|
O,
|
|
28
28
|
{
|
|
29
29
|
icon: /* @__PURE__ */ t(x, { className: "h-4 w-4" }),
|
|
30
|
-
title: "Signed-in phones",
|
|
30
|
+
title: n.isSuccess ? `Signed-in phones · ${p.length}` : "Signed-in phones",
|
|
31
31
|
hint: e ? "Signing a phone out ends its sign-in and stops its alerts" : "Phones signed in to the Nivaro app. Signing one out also stops its alerts",
|
|
32
32
|
testId: "signed-in-phones",
|
|
33
|
-
children: n.isLoading ? /* @__PURE__ */
|
|
33
|
+
children: n.isLoading ? /* @__PURE__ */ a("div", { className: "space-y-3", "aria-hidden": !0, children: [
|
|
34
34
|
/* @__PURE__ */ t(g, { className: "h-9 w-full" }),
|
|
35
35
|
/* @__PURE__ */ t(g, { className: "h-9 w-2/3" })
|
|
36
|
-
] }) : n.isError ? /* @__PURE__ */ t(E, { error: n.error, what: "signed-in phones", onRetry: () => n.refetch() }) :
|
|
36
|
+
] }) : n.isError ? /* @__PURE__ */ t(E, { error: n.error, what: "signed-in phones", onRetry: () => n.refetch() }) : p.length === 0 ? /* @__PURE__ */ a("div", { "data-devices-empty": !0, children: [
|
|
37
37
|
/* @__PURE__ */ t(P, { children: "No phones signed in." }),
|
|
38
38
|
/* @__PURE__ */ t("p", { className: "mt-1 text-[11.5px] text-slate-500 dark:text-slate-400", children: e ? `${v} has not signed in from the Nivaro app.` : "Sign in from the Nivaro app on your phone and it shows up here." })
|
|
39
|
-
] }) : /* @__PURE__ */ t("ul", { className: "-my-2 divide-y divide-slate-100 dark:divide-border/60", children:
|
|
40
|
-
var
|
|
39
|
+
] }) : /* @__PURE__ */ t("ul", { className: "-my-2 divide-y divide-slate-100 dark:divide-border/60", children: p.map((i) => {
|
|
40
|
+
var s;
|
|
41
41
|
return /* @__PURE__ */ t(
|
|
42
42
|
D,
|
|
43
43
|
{
|
|
44
44
|
device: i,
|
|
45
|
-
pending: m.isPending && ((
|
|
45
|
+
pending: m.isPending && ((s = m.variables) == null ? void 0 : s.id) === i.id,
|
|
46
46
|
onSignOut: () => m.mutate(i)
|
|
47
47
|
},
|
|
48
48
|
i.id
|
|
@@ -56,16 +56,16 @@ function D({
|
|
|
56
56
|
pending: r,
|
|
57
57
|
onSignOut: c
|
|
58
58
|
}) {
|
|
59
|
-
const o = e.device_name ??
|
|
60
|
-
e.device_name ?
|
|
59
|
+
const o = e.device_name ?? h(e), d = [
|
|
60
|
+
e.device_name ? h(e) : null,
|
|
61
61
|
`${e.client_name} app`,
|
|
62
62
|
e.last_used_at ? `Last used ${R(e.last_used_at)}` : "Not used since sign-in",
|
|
63
63
|
`Signed in ${q(e.created_at)}`
|
|
64
64
|
].filter(Boolean).join(" · "), l = f(o), n = f(d);
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ a("li", { "data-device-row": e.id, className: "flex items-center gap-3 py-2.5", children: [
|
|
66
66
|
/* @__PURE__ */ t("span", { className: "flex h-8 w-8 shrink-0 items-center justify-center rounded-md bg-slate-100 text-slate-500 dark:bg-muted dark:text-slate-300", children: /* @__PURE__ */ t(x, { className: "h-4 w-4", "aria-hidden": !0 }) }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ a("div", { className: "min-w-0 flex-1", children: [
|
|
68
|
+
/* @__PURE__ */ a("p", { className: "flex min-w-0 items-center gap-2", children: [
|
|
69
69
|
/* @__PURE__ */ t(
|
|
70
70
|
"span",
|
|
71
71
|
{
|
|
@@ -104,7 +104,7 @@ function D({
|
|
|
104
104
|
children: "Sign out from the app"
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
|
-
) : /* @__PURE__ */ t("span", { "data-device-sign-out": !0, className: "contents", children: /* @__PURE__ */
|
|
107
|
+
) : /* @__PURE__ */ t("span", { "data-device-sign-out": !0, className: "contents", children: /* @__PURE__ */ a(
|
|
108
108
|
T,
|
|
109
109
|
{
|
|
110
110
|
title: `Sign out ${o}`,
|