@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,27 +1,27 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
1
|
+
import { jsx as n, jsxs as u, Fragment as re } from "react/jsx-runtime";
|
|
2
2
|
import { useQueryClient as ne, useQuery as ue } from "@tanstack/react-query";
|
|
3
|
-
import { MonitorUp as
|
|
4
|
-
import { useEffect as
|
|
3
|
+
import { MonitorUp as H, Minus as he, ShieldCheck as me, Loader2 as ae, Minimize2 as fe, Maximize2 as pe, Eye as be } from "lucide-react";
|
|
4
|
+
import { useEffect as y, useState as S, useRef as z, useCallback as ge, useMemo as xe } from "react";
|
|
5
5
|
import { createPortal as X } from "react-dom";
|
|
6
6
|
import { useNivaroClient as Y, useApiFetchConfig as ve } from "../../context.js";
|
|
7
7
|
import { get as we, del as se, post as ye } from "../../lib/commands.js";
|
|
8
8
|
import { describeError as ke } from "../../lib/error-message.js";
|
|
9
9
|
import { useOptionalRealtime as ie } from "../../lib/realtime.js";
|
|
10
10
|
import { registerScreenShareRuntime as Ne, useScreenShareAvailable as Se, useScreenShareStatus as oe, stopScreenShare as le, screenShareRuntime as Re, startScreenShare as _e, createFrameAssembler as Ee } from "../../lib/screen-share.js";
|
|
11
|
-
const
|
|
11
|
+
const Q = (e) => ["support-screen-share", e];
|
|
12
12
|
function Me() {
|
|
13
|
-
const e = ie(), i = Y(), { apiBase:
|
|
13
|
+
const e = ie(), i = Y(), { apiBase: h, authHeaders: a, credentials: c } = ve();
|
|
14
14
|
return xe(() => e ? {
|
|
15
|
-
emit: (
|
|
16
|
-
on: (
|
|
17
|
-
stop: async (
|
|
18
|
-
const m = `/support/tickets/${
|
|
15
|
+
emit: (l, d) => e.emit(l, d),
|
|
16
|
+
on: (l, d) => e.on(l, d),
|
|
17
|
+
stop: async (l, d, t) => {
|
|
18
|
+
const m = `/support/tickets/${l}/screen-share?share=${encodeURIComponent(d)}${t ? `&reason=${t}` : ""}`;
|
|
19
19
|
if (t) {
|
|
20
20
|
try {
|
|
21
|
-
fetch(`${
|
|
21
|
+
fetch(`${h}${m}`, {
|
|
22
22
|
method: "DELETE",
|
|
23
23
|
keepalive: !0,
|
|
24
|
-
credentials:
|
|
24
|
+
credentials: c,
|
|
25
25
|
headers: a
|
|
26
26
|
}).catch(() => {
|
|
27
27
|
});
|
|
@@ -31,17 +31,17 @@ function Me() {
|
|
|
31
31
|
}
|
|
32
32
|
await i.request(se(m));
|
|
33
33
|
}
|
|
34
|
-
} : null, [e, i,
|
|
34
|
+
} : null, [e, i, h, a, c]);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
function Je({ runtime: e }) {
|
|
37
|
+
return y(() => e ? Ne(e) : void 0, [e]), /* @__PURE__ */ n(Ae, {});
|
|
38
38
|
}
|
|
39
39
|
function $e(e) {
|
|
40
|
-
const [i,
|
|
41
|
-
if (
|
|
40
|
+
const [i, h] = S(() => Date.now());
|
|
41
|
+
if (y(() => {
|
|
42
42
|
if (e == null) return;
|
|
43
|
-
const
|
|
44
|
-
return () => clearInterval(
|
|
43
|
+
const c = setInterval(() => h(Date.now()), 1e3);
|
|
44
|
+
return () => clearInterval(c);
|
|
45
45
|
}, [e]), e == null) return "";
|
|
46
46
|
const a = Math.max(0, Math.round((e - i) / 1e3));
|
|
47
47
|
return `${Math.floor(a / 60)}:${String(a % 60).padStart(2, "0")}`;
|
|
@@ -50,68 +50,68 @@ function ce(e) {
|
|
|
50
50
|
return e.to.kind === "team" ? `the ${e.to.name} team` : e.to.name;
|
|
51
51
|
}
|
|
52
52
|
const Z = 340;
|
|
53
|
-
function qe(e, i,
|
|
53
|
+
function qe(e, i, h) {
|
|
54
54
|
const a = e.filter(
|
|
55
|
-
(t) => t.right - t.left > 0 && t.bottom - t.top > 0 && t.bottom >
|
|
55
|
+
(t) => t.right - t.left > 0 && t.bottom - t.top > 0 && t.bottom > h - 120
|
|
56
56
|
);
|
|
57
57
|
if (a.length === 0) return { kind: "free" };
|
|
58
|
-
const
|
|
59
|
-
return
|
|
58
|
+
const c = Math.min(...a.map((t) => t.left)), l = Math.max(...a.map((t) => t.right)), d = Math.min(...a.map((t) => t.top));
|
|
59
|
+
return c >= Z ? { kind: "beside", left: 0, width: c } : i - l >= Z ? { kind: "beside", left: l, width: i - l } : d >= 96 ? { kind: "above", bottom: h - d + 12 } : { kind: "covered" };
|
|
60
60
|
}
|
|
61
61
|
function Te(e) {
|
|
62
|
-
const [i,
|
|
63
|
-
return
|
|
62
|
+
const [i, h] = S({ kind: "free" });
|
|
63
|
+
return y(() => {
|
|
64
64
|
if (!e || typeof document > "u") return;
|
|
65
65
|
let a = 0;
|
|
66
|
-
const
|
|
67
|
-
function
|
|
66
|
+
const c = new ResizeObserver(() => l());
|
|
67
|
+
function l() {
|
|
68
68
|
cancelAnimationFrame(a), a = requestAnimationFrame(() => {
|
|
69
|
-
|
|
69
|
+
c.disconnect();
|
|
70
70
|
const f = [
|
|
71
71
|
...document.querySelectorAll('[role="dialog"], [role="alertdialog"]')
|
|
72
72
|
].filter((r) => r.isConnected && getComputedStyle(r).visibility !== "hidden");
|
|
73
|
-
for (const r of f)
|
|
73
|
+
for (const r of f) c.observe(r);
|
|
74
74
|
const x = qe(
|
|
75
75
|
f.map((r) => r.getBoundingClientRect()),
|
|
76
76
|
window.innerWidth,
|
|
77
77
|
window.innerHeight
|
|
78
78
|
);
|
|
79
|
-
|
|
79
|
+
h((r) => JSON.stringify(r) === JSON.stringify(x) ? r : x);
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
let
|
|
82
|
+
let d;
|
|
83
83
|
const t = () => {
|
|
84
|
-
|
|
84
|
+
l(), clearTimeout(d), d = setTimeout(l, 400);
|
|
85
85
|
}, m = new MutationObserver(t);
|
|
86
86
|
return m.observe(document.body, { childList: !0 }), window.addEventListener("resize", t), t(), () => {
|
|
87
|
-
m.disconnect(),
|
|
87
|
+
m.disconnect(), c.disconnect(), cancelAnimationFrame(a), clearTimeout(d), window.removeEventListener("resize", t);
|
|
88
88
|
};
|
|
89
89
|
}, [e]), i;
|
|
90
90
|
}
|
|
91
91
|
function Ae() {
|
|
92
|
-
const e = oe(), i = !!e && !e.ended,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}, [
|
|
92
|
+
const e = oe(), i = !!e && !e.ended, h = $e(i ? (e == null ? void 0 : e.share.expires_at) ?? null : null), a = Te(!!e), [c, l] = S(null), d = e == null ? void 0 : e.share.id;
|
|
93
|
+
y(() => {
|
|
94
|
+
d && l(null);
|
|
95
|
+
}, [d]);
|
|
96
96
|
const t = !!e, m = t && a.kind === "covered";
|
|
97
|
-
if (
|
|
97
|
+
if (y(() => {
|
|
98
98
|
if (!(!t || typeof document > "u"))
|
|
99
99
|
return document.documentElement.setAttribute("data-screen-sharing", ""), () => document.documentElement.removeAttribute("data-screen-sharing");
|
|
100
|
-
}, [t]),
|
|
100
|
+
}, [t]), y(() => {
|
|
101
101
|
if (!(!m || typeof document > "u"))
|
|
102
102
|
return document.documentElement.setAttribute("data-screen-share-covered", ""), () => document.documentElement.removeAttribute("data-screen-share-covered");
|
|
103
103
|
}, [m]), !e || typeof document > "u") return null;
|
|
104
|
-
const { share: f, watching: x, ended: r } = e,
|
|
104
|
+
const { share: f, watching: x, ended: r } = e, w = ce(f), R = x.length === 0 ? "not opened yet" : f.to.kind === "user" ? "watching now" : `${x.length === 1 ? x[0] : `${x.length} people`} watching`, b = !r && (c ?? a.kind === "covered"), g = h ? `Sharing stops by itself in ${h}` : void 0;
|
|
105
105
|
if (b)
|
|
106
106
|
return X(
|
|
107
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ u(
|
|
108
108
|
"button",
|
|
109
109
|
{
|
|
110
110
|
type: "button",
|
|
111
111
|
"data-replay-block": !0,
|
|
112
112
|
"data-screen-share-bar": "minimised",
|
|
113
|
-
onClick: () =>
|
|
114
|
-
"aria-label": `Sharing this app with ${
|
|
113
|
+
onClick: () => l(!1),
|
|
114
|
+
"aria-label": `Sharing this app with ${w}, ${R}. Show the sharing controls`,
|
|
115
115
|
"data-tip": g,
|
|
116
116
|
className: `nvr-no-record fixed bottom-[max(1rem,env(safe-area-inset-bottom))] z-[160] flex h-9 items-center gap-2 rounded-full border border-white/10 bg-[#111827] pl-2.5 pr-3 text-[12px] font-medium text-slate-100 shadow-[0_6px_18px_-6px_rgba(15,23,42,0.5)] transition-colors hover:bg-[#1f2937] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-300 ${a.kind === "covered" ? "left-3" : "right-3 sm:right-20"}`,
|
|
117
117
|
children: [
|
|
@@ -125,7 +125,7 @@ function Ae() {
|
|
|
125
125
|
);
|
|
126
126
|
const p = a.kind === "beside" ? { left: a.left, width: a.width } : a.kind === "above" ? { bottom: a.bottom } : {};
|
|
127
127
|
return X(
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ u(
|
|
129
129
|
"div",
|
|
130
130
|
{
|
|
131
131
|
role: "status",
|
|
@@ -137,15 +137,15 @@ function Ae() {
|
|
|
137
137
|
className: `nvr-no-record pointer-events-none fixed bottom-[max(0.75rem,env(safe-area-inset-bottom))] z-[160] flex justify-center px-3 sm:px-4 ${a.kind === "beside" ? "" : "inset-x-0"}`,
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ n(ee, {}),
|
|
140
|
-
/* @__PURE__ */ n("div", { className: "pointer-events-auto flex w-full items-center gap-2.5 rounded-full border border-white/10 bg-[#111827] py-1 pl-3.5 pr-1 text-[12.5px] text-slate-100 shadow-[0_8px_24px_-6px_rgba(15,23,42,0.45)] sm:w-auto sm:max-w-full sm:gap-3 sm:py-1.5 sm:pr-1.5", children: r ? /* @__PURE__ */ n("span", { className: "px-1 py-1 text-slate-300", children: r }) : /* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ n("div", { className: "pointer-events-auto flex w-full items-center gap-2.5 rounded-full border border-white/10 bg-[#111827] py-1 pl-3.5 pr-1 text-[12.5px] text-slate-100 shadow-[0_8px_24px_-6px_rgba(15,23,42,0.45)] sm:w-auto sm:max-w-full sm:gap-3 sm:py-1.5 sm:pr-1.5", children: r ? /* @__PURE__ */ n("span", { className: "px-1 py-1 text-slate-300", children: r }) : /* @__PURE__ */ u(re, { children: [
|
|
141
141
|
/* @__PURE__ */ n("span", { "data-tip": g, className: "flex shrink-0", children: /* @__PURE__ */ n(te, {}) }),
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ u("span", { className: "min-w-0 flex-1 truncate sm:flex-none", children: [
|
|
143
143
|
/* @__PURE__ */ n("span", { className: "sm:hidden", children: "Sharing" }),
|
|
144
|
-
/* @__PURE__ */
|
|
144
|
+
/* @__PURE__ */ u("span", { className: "hidden sm:inline", children: [
|
|
145
145
|
"Sharing with ",
|
|
146
|
-
/* @__PURE__ */ n("b", { className: "font-semibold text-white", children:
|
|
146
|
+
/* @__PURE__ */ n("b", { className: "font-semibold text-white", children: w })
|
|
147
147
|
] }),
|
|
148
|
-
/* @__PURE__ */
|
|
148
|
+
/* @__PURE__ */ u("span", { className: "text-slate-400", "data-screen-share-watching": !0, children: [
|
|
149
149
|
" · ",
|
|
150
150
|
R
|
|
151
151
|
] })
|
|
@@ -165,7 +165,7 @@ function Ae() {
|
|
|
165
165
|
{
|
|
166
166
|
type: "button",
|
|
167
167
|
"data-screen-share-minimise": !0,
|
|
168
|
-
onClick: () =>
|
|
168
|
+
onClick: () => l(!0),
|
|
169
169
|
"aria-label": "Minimise the sharing controls",
|
|
170
170
|
"data-tip": "Minimise",
|
|
171
171
|
className: "flex h-7 w-7 shrink-0 items-center justify-center rounded-full text-slate-400 transition-colors hover:bg-white/10 hover:text-white focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400",
|
|
@@ -180,71 +180,77 @@ function Ae() {
|
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
function ee() {
|
|
183
|
-
return /* @__PURE__ */ n("style", { children: '@media (max-width: 639px){html[data-screen-sharing] [data-floating-help]{display:none!important}}html[data-screen-share-covered] [role="dialog"] [data-sheet-body]{padding-bottom:calc(2.25rem + 2rem + env(safe-area-inset-bottom))}' });
|
|
183
|
+
return /* @__PURE__ */ n("style", { children: '@media (max-width: 639px){html[data-screen-sharing] [data-floating-help]{display:none!important}html[data-screen-sharing] main{padding-bottom:calc(3.5rem + env(safe-area-inset-bottom))}}html[data-screen-share-covered] [role="dialog"] [data-sheet-body]{padding-bottom:calc(2.25rem + 2rem + env(safe-area-inset-bottom))}' });
|
|
184
184
|
}
|
|
185
185
|
function te() {
|
|
186
|
-
return /* @__PURE__ */
|
|
186
|
+
return /* @__PURE__ */ u("span", { className: "relative flex h-2.5 w-2.5 shrink-0", "aria-hidden": !0, children: [
|
|
187
187
|
/* @__PURE__ */ n("span", { className: "absolute inset-0 rounded-full bg-red-500 motion-safe:animate-ping motion-safe:opacity-60" }),
|
|
188
188
|
/* @__PURE__ */ n("span", { className: "relative h-2.5 w-2.5 rounded-full bg-red-500" })
|
|
189
189
|
] });
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Ie({
|
|
192
192
|
ticketId: e,
|
|
193
193
|
onWideChange: i
|
|
194
194
|
}) {
|
|
195
|
-
const
|
|
196
|
-
queryKey:
|
|
197
|
-
queryFn: () =>
|
|
198
|
-
enabled:
|
|
195
|
+
const h = Y(), a = ne(), c = ie(), l = Se(), d = oe(), [t, m] = S(null), [f, x] = S(null), { data: r } = ue({
|
|
196
|
+
queryKey: Q(e),
|
|
197
|
+
queryFn: () => h.request(we(`/support/tickets/${e}/screen-share`)).then((b) => b.data),
|
|
198
|
+
enabled: l,
|
|
199
199
|
staleTime: 5e3
|
|
200
200
|
});
|
|
201
|
-
|
|
202
|
-
if (!
|
|
203
|
-
const b = (
|
|
204
|
-
Number(
|
|
205
|
-
}, g = (
|
|
206
|
-
Number(
|
|
207
|
-
}, p =
|
|
201
|
+
y(() => {
|
|
202
|
+
if (!c) return;
|
|
203
|
+
const b = (o) => {
|
|
204
|
+
Number(o == null ? void 0 : o.ticket) === e && (a.invalidateQueries({ queryKey: Q(e) }), a.invalidateQueries({ queryKey: ["support-ticket", e] }));
|
|
205
|
+
}, g = (o) => {
|
|
206
|
+
Number(o == null ? void 0 : o.ticket) === e && typeof (o == null ? void 0 : o.reason) == "string" && x(o.reason), b(o);
|
|
207
|
+
}, p = (o) => {
|
|
208
|
+
Number(o == null ? void 0 : o.ticket) === e && a.invalidateQueries({ queryKey: ["support-ticket", e] });
|
|
209
|
+
}, k = [
|
|
210
|
+
c.on("screenshare:state", b),
|
|
211
|
+
c.on("screenshare:ended", g),
|
|
212
|
+
c.on("screenshare:watching", p)
|
|
213
|
+
];
|
|
208
214
|
return () => {
|
|
209
|
-
for (const
|
|
215
|
+
for (const o of k) o();
|
|
210
216
|
};
|
|
211
|
-
}, [
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
|
|
215
|
-
}, [
|
|
216
|
-
const R =
|
|
217
|
+
}, [c, a, e]);
|
|
218
|
+
const w = r != null && r.active && r.can_watch && r.share ? r.share : null;
|
|
219
|
+
if (y(() => {
|
|
220
|
+
w && m(w);
|
|
221
|
+
}, [w]), !l || !(r != null && r.enabled)) return null;
|
|
222
|
+
const R = d && !d.ended && d.share.ticket === e;
|
|
217
223
|
return R || r.mine && r.active ? /* @__PURE__ */ n(
|
|
218
224
|
ze,
|
|
219
225
|
{
|
|
220
226
|
name: r.to_name,
|
|
221
227
|
onStop: async () => {
|
|
222
228
|
if (R) return le();
|
|
223
|
-
r.share && await
|
|
229
|
+
r.share && await h.request(
|
|
224
230
|
se(
|
|
225
231
|
`/support/tickets/${e}/screen-share?share=${encodeURIComponent(r.share.id)}`
|
|
226
232
|
)
|
|
227
233
|
).catch(() => {
|
|
228
|
-
}), a.invalidateQueries({ queryKey:
|
|
234
|
+
}), a.invalidateQueries({ queryKey: Q(e) });
|
|
229
235
|
}
|
|
230
236
|
}
|
|
231
|
-
) : r.can_start || r.start_refusal ? /* @__PURE__ */ n(Le, { ticketId: e, answer: r }) : r.active && r.can_watch && r.share &&
|
|
237
|
+
) : r.can_start || r.start_refusal ? /* @__PURE__ */ n(Le, { ticketId: e, answer: r }) : r.active && r.can_watch && r.share && c ? /* @__PURE__ */ n(Oe, { share: r.share, rt: c, onWideChange: i }) : !r.active && t ? /* @__PURE__ */ u(
|
|
232
238
|
"p",
|
|
233
239
|
{
|
|
234
240
|
"data-screen-share-note": "ended",
|
|
235
241
|
className: "flex items-center gap-1.5 text-[12px] text-slate-500 dark:text-muted-foreground",
|
|
236
242
|
children: [
|
|
237
|
-
/* @__PURE__ */ n(
|
|
243
|
+
/* @__PURE__ */ n(H, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
238
244
|
de(t.sharer_name, f)
|
|
239
245
|
]
|
|
240
246
|
}
|
|
241
|
-
) : r.active && r.share ? /* @__PURE__ */
|
|
247
|
+
) : r.active && r.share ? /* @__PURE__ */ u(
|
|
242
248
|
"p",
|
|
243
249
|
{
|
|
244
250
|
"data-screen-share-note": !0,
|
|
245
251
|
className: "flex items-center gap-1.5 text-[12px] text-slate-500 dark:text-muted-foreground",
|
|
246
252
|
children: [
|
|
247
|
-
/* @__PURE__ */ n(
|
|
253
|
+
/* @__PURE__ */ n(H, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
248
254
|
r.share.sharer_name,
|
|
249
255
|
" is sharing their screen with ",
|
|
250
256
|
ce(r.share),
|
|
@@ -269,17 +275,17 @@ function de(e, i) {
|
|
|
269
275
|
}
|
|
270
276
|
}
|
|
271
277
|
function ze({ name: e, onStop: i }) {
|
|
272
|
-
return /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ u(
|
|
273
279
|
"div",
|
|
274
280
|
{
|
|
275
281
|
"data-screen-share-card": "sharing",
|
|
276
282
|
className: "flex items-center gap-3 rounded-lg border border-slate-200 bg-slate-50 px-3.5 py-3 dark:border-border dark:bg-white/[0.03]",
|
|
277
283
|
children: [
|
|
278
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ u("span", { className: "relative flex h-2.5 w-2.5 shrink-0", "aria-hidden": !0, children: [
|
|
279
285
|
/* @__PURE__ */ n("span", { className: "absolute inset-0 rounded-full bg-red-500 motion-safe:animate-ping motion-safe:opacity-60" }),
|
|
280
286
|
/* @__PURE__ */ n("span", { className: "relative h-2.5 w-2.5 rounded-full bg-red-500" })
|
|
281
287
|
] }),
|
|
282
|
-
/* @__PURE__ */
|
|
288
|
+
/* @__PURE__ */ u("p", { className: "mr-auto text-[12.5px] text-slate-700 dark:text-slate-200", children: [
|
|
283
289
|
"You are sharing this app with ",
|
|
284
290
|
/* @__PURE__ */ n("b", { className: "font-semibold", children: e ?? "support" }),
|
|
285
291
|
"."
|
|
@@ -299,23 +305,23 @@ function ze({ name: e, onStop: i }) {
|
|
|
299
305
|
);
|
|
300
306
|
}
|
|
301
307
|
function Le({ ticketId: e, answer: i }) {
|
|
302
|
-
const
|
|
303
|
-
if (
|
|
304
|
-
|
|
308
|
+
const h = Y(), a = ne(), c = Me(), [l, d] = S(!1), [t, m] = S(null), f = i.to_name ?? "support", x = i.can_start && !!c, r = async () => {
|
|
309
|
+
if (c) {
|
|
310
|
+
d(!0), m(null);
|
|
305
311
|
try {
|
|
306
|
-
const
|
|
312
|
+
const w = await h.request(
|
|
307
313
|
ye(`/support/tickets/${e}/screen-share`)
|
|
308
314
|
);
|
|
309
315
|
await _e({
|
|
310
|
-
share:
|
|
311
|
-
masking:
|
|
312
|
-
transport:
|
|
313
|
-
}) || (await Promise.resolve(
|
|
316
|
+
share: w.data.share,
|
|
317
|
+
masking: w.data.masking,
|
|
318
|
+
transport: c
|
|
319
|
+
}) || (await Promise.resolve(c.stop(e, w.data.share.id)).catch(() => {
|
|
314
320
|
}), m("Sharing could not start on this page. Reload the page and try again."));
|
|
315
|
-
} catch (
|
|
316
|
-
m(ke(
|
|
321
|
+
} catch (w) {
|
|
322
|
+
m(ke(w, "Sharing could not start").title);
|
|
317
323
|
} finally {
|
|
318
|
-
|
|
324
|
+
d(!1), a.invalidateQueries({ queryKey: Q(e) }), a.invalidateQueries({ queryKey: ["support-ticket", e] });
|
|
319
325
|
}
|
|
320
326
|
}
|
|
321
327
|
};
|
|
@@ -324,32 +330,32 @@ function Le({ ticketId: e, answer: i }) {
|
|
|
324
330
|
{
|
|
325
331
|
"data-screen-share-card": "start",
|
|
326
332
|
className: "rounded-lg border border-slate-200 px-4 py-3.5 dark:border-border",
|
|
327
|
-
children: /* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */ n(
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
333
|
+
children: /* @__PURE__ */ u("div", { className: "flex items-start gap-3", children: [
|
|
334
|
+
/* @__PURE__ */ n(H, { className: "mt-0.5 h-4 w-4 shrink-0 text-slate-500 dark:text-slate-400" }),
|
|
335
|
+
/* @__PURE__ */ u("div", { className: "min-w-0 flex-1", children: [
|
|
336
|
+
/* @__PURE__ */ u("h3", { className: "text-[12.5px] font-semibold text-slate-800 dark:text-slate-100", children: [
|
|
331
337
|
"Show ",
|
|
332
338
|
x ? f : "support",
|
|
333
339
|
" your screen"
|
|
334
340
|
] }),
|
|
335
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ u("p", { className: "mt-1 text-[12px] leading-relaxed text-slate-600 dark:text-slate-300", children: [
|
|
336
342
|
x ? f : "Whoever picks this up",
|
|
337
343
|
" sees this app as you use it — not your other tabs or anything else on your computer. They can only watch."
|
|
338
344
|
] }),
|
|
339
|
-
/* @__PURE__ */
|
|
345
|
+
/* @__PURE__ */ u("p", { className: "mt-1.5 flex items-start gap-1.5 text-[11.5px] leading-relaxed text-slate-500 dark:text-muted-foreground", children: [
|
|
340
346
|
/* @__PURE__ */ n(me, { className: "mt-px h-3.5 w-3.5 shrink-0 text-emerald-600 dark:text-emerald-400" }),
|
|
341
347
|
"What you type and the values on records are hidden from them. Stops when you press Stop, close the page, or after 30 minutes."
|
|
342
348
|
] }),
|
|
343
|
-
x ? /* @__PURE__ */
|
|
349
|
+
x ? /* @__PURE__ */ u(
|
|
344
350
|
"button",
|
|
345
351
|
{
|
|
346
352
|
type: "button",
|
|
347
353
|
"data-screen-share-start": !0,
|
|
348
|
-
disabled:
|
|
354
|
+
disabled: l,
|
|
349
355
|
onClick: () => void r(),
|
|
350
356
|
className: "mt-3 inline-flex h-8 items-center gap-1.5 rounded-md bg-nvr-cyan px-3.5 text-[12.5px] font-medium text-white transition-opacity hover:opacity-90 disabled:opacity-50",
|
|
351
357
|
children: [
|
|
352
|
-
|
|
358
|
+
l && /* @__PURE__ */ n(ae, { className: "h-3.5 w-3.5 animate-spin" }),
|
|
353
359
|
"Share my screen with ",
|
|
354
360
|
f
|
|
355
361
|
]
|
|
@@ -383,40 +389,40 @@ const Fe = `
|
|
|
383
389
|
function Oe({
|
|
384
390
|
share: e,
|
|
385
391
|
rt: i,
|
|
386
|
-
onWideChange:
|
|
392
|
+
onWideChange: h
|
|
387
393
|
}) {
|
|
388
|
-
const a = z(null),
|
|
394
|
+
const a = z(null), c = z(null), l = z(null), d = z(null), [t, m] = S("joining"), [f, x] = S(!1), r = z(!1);
|
|
389
395
|
r.current = f;
|
|
390
|
-
const [
|
|
396
|
+
const [w, R] = S(null), b = e.ticket, g = ge(() => {
|
|
391
397
|
var P, O;
|
|
392
|
-
const p = a.current,
|
|
393
|
-
M > 0 && L > 0 && (
|
|
394
|
-
const _ =
|
|
395
|
-
if (!p || !_ || !
|
|
396
|
-
const F = p.clientWidth,
|
|
397
|
-
|
|
398
|
+
const p = a.current, k = (P = l.current) == null ? void 0 : P.wrapper, o = (O = l.current) == null ? void 0 : O.iframe, M = Number(o == null ? void 0 : o.getAttribute("width")) || (o == null ? void 0 : o.offsetWidth) || 0, L = Number(o == null ? void 0 : o.getAttribute("height")) || (o == null ? void 0 : o.offsetHeight) || 0;
|
|
399
|
+
M > 0 && L > 0 && (d.current = { width: M, height: L });
|
|
400
|
+
const _ = d.current;
|
|
401
|
+
if (!p || !_ || !k) return;
|
|
402
|
+
const F = p.clientWidth, j = r.current ? Math.max(240, window.innerHeight - 140) : Number.POSITIVE_INFINITY, $ = Math.min(F / Math.max(1, _.width), j / Math.max(1, _.height));
|
|
403
|
+
k.style.transform = `scale(${$})`, k.style.left = `${Math.max(0, Math.round((F - _.width * $) / 2))}px`, p.style.height = `${Math.round(_.height * $)}px`;
|
|
398
404
|
}, []);
|
|
399
|
-
return
|
|
400
|
-
var U,
|
|
405
|
+
return y(() => {
|
|
406
|
+
var U, V;
|
|
401
407
|
let p = !0;
|
|
402
|
-
const
|
|
403
|
-
let
|
|
408
|
+
const k = Ee();
|
|
409
|
+
let o = 0, M = null;
|
|
404
410
|
const L = ((U = Re()) == null ? void 0 : U.loadReplayer().catch(() => null)) ?? Promise.resolve(null), _ = () => {
|
|
405
411
|
const s = Date.now();
|
|
406
|
-
s -
|
|
412
|
+
s - o < 3e3 || (o = s, i.emit("screenshare:resync", { ticket: b }));
|
|
407
413
|
}, F = (s) => {
|
|
408
|
-
var
|
|
409
|
-
const
|
|
410
|
-
if (!
|
|
414
|
+
var K, J, I, W, G;
|
|
415
|
+
const v = c.current;
|
|
416
|
+
if (!v || !M) return;
|
|
411
417
|
try {
|
|
412
|
-
(
|
|
418
|
+
(J = (K = l.current) == null ? void 0 : K.destroy) == null || J.call(K);
|
|
413
419
|
} catch {
|
|
414
420
|
}
|
|
415
|
-
|
|
421
|
+
v.replaceChildren();
|
|
416
422
|
const N = s.find((q) => q.type === 4);
|
|
417
|
-
(
|
|
423
|
+
(I = N == null ? void 0 : N.data) != null && I.width && N.data.height && (d.current = { width: N.data.width, height: N.data.height });
|
|
418
424
|
const E = new M(s, {
|
|
419
|
-
root:
|
|
425
|
+
root: v,
|
|
420
426
|
liveMode: !0,
|
|
421
427
|
mouseTail: !1,
|
|
422
428
|
triggerFocus: !1,
|
|
@@ -424,24 +430,24 @@ function Oe({
|
|
|
424
430
|
UNSAFE_replayCanvas: !1,
|
|
425
431
|
insertStyleRules: Pe
|
|
426
432
|
});
|
|
427
|
-
(
|
|
433
|
+
(W = E.on) == null || W.call(E, "resize", (q) => {
|
|
428
434
|
const A = q;
|
|
429
|
-
A != null && A.width && A.height && (
|
|
435
|
+
A != null && A.width && A.height && (d.current = { width: A.width, height: A.height }), g();
|
|
430
436
|
});
|
|
431
437
|
const C = s.map((q) => q.timestamp).filter((q) => typeof q == "number");
|
|
432
|
-
E.play(C.length ? Math.max(0, C[C.length - 1] - C[0]) : 0),
|
|
438
|
+
E.play(C.length ? Math.max(0, C[C.length - 1] - C[0]) : 0), l.current = E, (G = E.on) == null || G.call(E, "fullsnapshot-rebuilded", () => {
|
|
433
439
|
g(), requestAnimationFrame(() => g());
|
|
434
440
|
}), g(), requestAnimationFrame(() => requestAnimationFrame(() => g())), m("live");
|
|
435
|
-
},
|
|
441
|
+
}, j = (s) => {
|
|
436
442
|
if (!p || !s || Number(s.ticket) !== b || s.share !== e.id) return;
|
|
437
|
-
const
|
|
438
|
-
if (
|
|
439
|
-
if (
|
|
440
|
-
else for (const N of
|
|
443
|
+
const v = k.push(s);
|
|
444
|
+
if (v.gap && _(), !!v.events.length)
|
|
445
|
+
if (v.snapshot || !l.current) F(v.events);
|
|
446
|
+
else for (const N of v.events) l.current.addEvent(N);
|
|
441
447
|
}, $ = [
|
|
442
|
-
i.on("screenshare:frame",
|
|
448
|
+
i.on("screenshare:frame", j),
|
|
443
449
|
i.on("screenshare:joined", (s) => {
|
|
444
|
-
p && Number(s == null ? void 0 : s.ticket) === b && m((
|
|
450
|
+
p && Number(s == null ? void 0 : s.ticket) === b && m((v) => v === "live" ? v : "waiting");
|
|
445
451
|
}),
|
|
446
452
|
i.on("screenshare:denied", (s) => {
|
|
447
453
|
p && Number(s == null ? void 0 : s.ticket) === b && m("denied");
|
|
@@ -460,8 +466,8 @@ function Oe({
|
|
|
460
466
|
}
|
|
461
467
|
});
|
|
462
468
|
const P = setInterval(() => i.emit("screenshare:watch", { ticket: b }), 15e3), O = setInterval(() => {
|
|
463
|
-
|
|
464
|
-
}, 6e3), B = (
|
|
469
|
+
l.current || _();
|
|
470
|
+
}, 6e3), B = (V = i.onStatus) == null ? void 0 : V.call(i, (s) => {
|
|
465
471
|
s.state === "live" && M && i.emit("screenshare:watch", { ticket: b });
|
|
466
472
|
});
|
|
467
473
|
B && $.push(B);
|
|
@@ -469,29 +475,29 @@ function Oe({
|
|
|
469
475
|
a.current && (T == null || T.observe(a.current)), $.push(() => T == null ? void 0 : T.disconnect());
|
|
470
476
|
const D = () => g();
|
|
471
477
|
return window.addEventListener("resize", D), () => {
|
|
472
|
-
var s,
|
|
478
|
+
var s, v;
|
|
473
479
|
p = !1, clearInterval(P), clearInterval(O), window.removeEventListener("resize", D);
|
|
474
480
|
for (const N of $) N();
|
|
475
481
|
i.emit("screenshare:unwatch", { ticket: b });
|
|
476
482
|
try {
|
|
477
|
-
(
|
|
483
|
+
(v = (s = l.current) == null ? void 0 : s.destroy) == null || v.call(s);
|
|
478
484
|
} catch {
|
|
479
485
|
}
|
|
480
|
-
|
|
486
|
+
l.current = null;
|
|
481
487
|
};
|
|
482
|
-
}, [i, b, e.id, g]),
|
|
488
|
+
}, [i, b, e.id, g]), y(() => {
|
|
483
489
|
t === "live" ? g() : a.current && (a.current.style.height = "");
|
|
484
|
-
}, [t, g]),
|
|
485
|
-
|
|
490
|
+
}, [t, g]), y(() => {
|
|
491
|
+
h == null || h(f);
|
|
486
492
|
const p = setTimeout(() => {
|
|
487
|
-
var
|
|
488
|
-
g(), f && ((
|
|
493
|
+
var k;
|
|
494
|
+
g(), f && ((k = a.current) == null || k.scrollIntoView({ block: "start", behavior: "smooth" }));
|
|
489
495
|
}, 320);
|
|
490
496
|
return () => clearTimeout(p);
|
|
491
|
-
}, [f,
|
|
497
|
+
}, [f, h, g]), y(() => () => h == null ? void 0 : h(!1), [h]), /* @__PURE__ */ u("section", { "data-screen-share-view": t, className: "space-y-2", children: [
|
|
492
498
|
/* @__PURE__ */ n("style", { children: Fe }),
|
|
493
|
-
/* @__PURE__ */
|
|
494
|
-
/* @__PURE__ */
|
|
499
|
+
/* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
|
|
500
|
+
/* @__PURE__ */ u("span", { className: "relative flex h-2 w-2 shrink-0", "aria-hidden": !0, children: [
|
|
495
501
|
t === "live" && /* @__PURE__ */ n("span", { className: "absolute inset-0 rounded-full bg-red-500 motion-safe:animate-ping motion-safe:opacity-60" }),
|
|
496
502
|
/* @__PURE__ */ n(
|
|
497
503
|
"span",
|
|
@@ -500,12 +506,12 @@ function Oe({
|
|
|
500
506
|
}
|
|
501
507
|
)
|
|
502
508
|
] }),
|
|
503
|
-
/* @__PURE__ */
|
|
509
|
+
/* @__PURE__ */ u("h3", { className: "mr-auto text-[12.5px] font-semibold text-slate-800 dark:text-slate-100", children: [
|
|
504
510
|
e.sharer_name,
|
|
505
511
|
"'s screen",
|
|
506
512
|
/* @__PURE__ */ n("span", { className: "ml-1.5 font-normal text-slate-500 dark:text-muted-foreground", children: t === "live" ? "· live, view only" : t === "ended" ? "· sharing stopped" : t === "denied" || t === "unavailable" ? "· not available here" : "· connecting…" })
|
|
507
513
|
] }),
|
|
508
|
-
t === "live" && /* @__PURE__ */
|
|
514
|
+
t === "live" && /* @__PURE__ */ u(
|
|
509
515
|
"button",
|
|
510
516
|
{
|
|
511
517
|
type: "button",
|
|
@@ -519,17 +525,17 @@ function Oe({
|
|
|
519
525
|
}
|
|
520
526
|
)
|
|
521
527
|
] }),
|
|
522
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ u(
|
|
523
529
|
"div",
|
|
524
530
|
{
|
|
525
531
|
ref: a,
|
|
526
532
|
"data-screen-view": !0,
|
|
527
533
|
className: `relative w-full overflow-hidden rounded-lg border border-slate-200 bg-slate-100 dark:border-border dark:bg-white/[0.04] ${t === "live" ? "" : "h-[180px]"}`,
|
|
528
534
|
children: [
|
|
529
|
-
/* @__PURE__ */ n("div", { ref:
|
|
530
|
-
t !== "live" && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-1.5 px-6 text-center text-[12px] text-slate-500 dark:text-muted-foreground", children: t === "ended" ? /* @__PURE__ */ n("span", { children: de(e.sharer_name,
|
|
535
|
+
/* @__PURE__ */ n("div", { ref: c, className: t === "live" ? "" : "hidden" }),
|
|
536
|
+
t !== "live" && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex flex-col items-center justify-center gap-1.5 px-6 text-center text-[12px] text-slate-500 dark:text-muted-foreground", children: t === "ended" ? /* @__PURE__ */ n("span", { children: de(e.sharer_name, w) }) : t === "denied" ? /* @__PURE__ */ n("span", { children: "This screen share is only for the person working this request." }) : t === "unavailable" ? /* @__PURE__ */ n("span", { children: "This app cannot show a live screen. Open the request in the admin app." }) : /* @__PURE__ */ u(re, { children: [
|
|
531
537
|
/* @__PURE__ */ n(ae, { className: "h-4 w-4 animate-spin" }),
|
|
532
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ u("span", { children: [
|
|
533
539
|
"Waiting for ",
|
|
534
540
|
e.sharer_name,
|
|
535
541
|
"'s screen…"
|
|
@@ -538,7 +544,7 @@ function Oe({
|
|
|
538
544
|
]
|
|
539
545
|
}
|
|
540
546
|
),
|
|
541
|
-
/* @__PURE__ */
|
|
547
|
+
/* @__PURE__ */ u("p", { className: "flex items-center gap-1.5 text-[11.5px] text-slate-500 dark:text-muted-foreground", children: [
|
|
542
548
|
/* @__PURE__ */ n(be, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
543
549
|
"Typed text and record values are hidden. You are named in the request's history."
|
|
544
550
|
] })
|
|
@@ -547,8 +553,8 @@ function Oe({
|
|
|
547
553
|
export {
|
|
548
554
|
Oe as LiveScreenViewer,
|
|
549
555
|
Ae as ScreenShareBar,
|
|
550
|
-
|
|
551
|
-
|
|
556
|
+
Je as ScreenShareHost,
|
|
557
|
+
Ie as ScreenSharePanel,
|
|
552
558
|
de as endedSentence,
|
|
553
559
|
qe as pillPlacement
|
|
554
560
|
};
|