@hanzo/dev 4.2.0 → 4.2.1
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/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
- package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
- package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
- package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
- package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
- package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
- package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
- package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
- package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
- package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
- package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
- package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
- package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
- package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
- package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
- package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
- package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
- package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
- package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
- package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
- package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
- package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
- package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
- package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
- package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
- package/dist/index.css +1 -1
- package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
- package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
- package/dist/keymap.js +1 -1
- package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
- package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
- package/dist/mediaSource-jW5c7b4r.js +70 -0
- package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
- package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
- package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
- package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
- package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
- package/dist/query-BPk2W3QN.js +63 -0
- package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
- package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
- package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
- package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
- package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
- package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
- package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
- package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
- package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
- package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
- package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
- package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
- package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
- package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
- package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
- package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
- package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
- package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
- package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
- package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
- package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
- package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
- package/package.json +1 -1
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { c as e, i as t, m as n, t as r } from "./session-
|
|
1
|
+
import { c as e, i as t, m as n, t as r } from "./session-Decc4Fo5.js";
|
|
2
2
|
import { c as i, n as a, s as o } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import {
|
|
4
|
-
import { $m as P, Ch as F, Ed as I, Eh as L, Fd as R, Hm as z, Im as B, Jd as V, Pd as H, Pp as U, Sh as W, Um as G, Z as K, ad as ee, ah as te, bd as q, cd as J, cy as Y, dd as ne, ef as re, fd as ie, fy as ae, hd as X, id as oe, if as se, kd as ce, kh as le, km as ue, ko as de, md as fe, nf as pe, og as me, pc as he, pf as Z, py as ge, rf as _e, uc as ve, wd as ye, yd as be } from "./keybindings-
|
|
5
|
-
import { u as xe } from "./network-
|
|
3
|
+
import { C_ as s, Hh as c, Kh as l, Kr as u, Qh as d, S_ as f, Wh as p, Yh as m, _g as h, af as g, b_ as _, cf as v, cg as y, ci as b, fg as x, gr as S, hr as C, ig as w, lf as T, nc as E, t as D, uf as O, vg as k, x_ as A, xf as j, xg as M, yr as N } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { $m as P, Ch as F, Ed as I, Eh as L, Fd as R, Hm as z, Im as B, Jd as V, Pd as H, Pp as U, Sh as W, Um as G, Z as K, ad as ee, ah as te, bd as q, cd as J, cy as Y, dd as ne, ef as re, fd as ie, fy as ae, hd as X, id as oe, if as se, kd as ce, kh as le, km as ue, ko as de, md as fe, nf as pe, og as me, pc as he, pf as Z, py as ge, rf as _e, uc as ve, wd as ye, yd as be } from "./keybindings-D0pBlT1k.js";
|
|
5
|
+
import { u as xe } from "./network-wuXD7-is.js";
|
|
6
6
|
import { a as Se } from "./search-3oqTSaO6.js";
|
|
7
7
|
import { t as Ce } from "./circle-alert-DVvR-XZ_.js";
|
|
8
8
|
import { t as we } from "./smartphone-BqEFWfHi.js";
|
|
9
|
-
import "./errors-
|
|
10
|
-
import { t as Te } from "./use-atom-command-
|
|
11
|
-
import { l as Ee, u as De } from "./PreviewPanelShell-
|
|
12
|
-
import { n as Oe, t as ke } from "./query-
|
|
13
|
-
import { a as Ae } from "./dialog-
|
|
9
|
+
import "./errors-D8_Zn8KN.js";
|
|
10
|
+
import { t as Te } from "./use-atom-command-XemtT1Gv.js";
|
|
11
|
+
import { l as Ee, u as De } from "./PreviewPanelShell-Dezxjg0T.js";
|
|
12
|
+
import { n as Oe, t as ke } from "./query-BPk2W3QN.js";
|
|
13
|
+
import { a as Ae } from "./dialog-EmpqFZiK.js";
|
|
14
14
|
import { t as je } from "./observeResize-DRQ9DVLE.js";
|
|
15
|
-
import { a as Me, n as Ne, r as Pe, t as Fe } from "./wizard-
|
|
16
|
-
import { t as Ie } from "./switch-
|
|
15
|
+
import { a as Me, n as Ne, r as Pe, t as Fe } from "./wizard-DjD4UNew.js";
|
|
16
|
+
import { t as Ie } from "./switch-DjpPjtQN.js";
|
|
17
17
|
import { i as Le, n as Re } from "./model-CGID0h4H.js";
|
|
18
18
|
import { i as ze, n as Be, r as Ve, t as He } from "./duoControl-D1jmYZGg.js";
|
|
19
19
|
import { useEffect as Ue, useId as We, useRef as Ge, useState as Ke } from "react";
|
|
@@ -21,36 +21,36 @@ import { c as qe } from "react/compiler-runtime";
|
|
|
21
21
|
import { Fragment as Je, jsx as Q, jsxs as $ } from "react/jsx-runtime";
|
|
22
22
|
// ../../packages/client-runtime/src/state/device.ts
|
|
23
23
|
function Ye(e) {
|
|
24
|
-
let t =
|
|
24
|
+
let t = g(), n = {
|
|
25
25
|
mode: "serial",
|
|
26
26
|
key: ({ environmentId: e }) => e
|
|
27
27
|
};
|
|
28
28
|
return {
|
|
29
|
-
state:
|
|
29
|
+
state: O(e, {
|
|
30
30
|
label: "environment-data:device:state",
|
|
31
31
|
tag: K.subscribeDeviceState
|
|
32
32
|
}),
|
|
33
|
-
configure:
|
|
33
|
+
configure: v(e, {
|
|
34
34
|
label: "environment-data:device:configure",
|
|
35
35
|
tag: K.deviceConfigure,
|
|
36
36
|
scheduler: t,
|
|
37
37
|
concurrency: n
|
|
38
38
|
}),
|
|
39
|
-
testHost:
|
|
39
|
+
testHost: v(e, {
|
|
40
40
|
label: "environment-data:device:test-host",
|
|
41
41
|
tag: K.deviceTestHost
|
|
42
42
|
}),
|
|
43
|
-
easAccount:
|
|
43
|
+
easAccount: v(e, {
|
|
44
44
|
label: "environment-data:device:eas-account",
|
|
45
45
|
tag: K.deviceEasAccount
|
|
46
46
|
}),
|
|
47
|
-
list:
|
|
47
|
+
list: v(e, {
|
|
48
48
|
label: "environment-data:device:list",
|
|
49
49
|
tag: K.deviceList,
|
|
50
50
|
scheduler: t,
|
|
51
51
|
concurrency: n
|
|
52
52
|
}),
|
|
53
|
-
open:
|
|
53
|
+
open: v(e, {
|
|
54
54
|
label: "environment-data:device:open",
|
|
55
55
|
tag: K.deviceOpen,
|
|
56
56
|
scheduler: t,
|
|
@@ -65,25 +65,25 @@ function Ye(e) {
|
|
|
65
65
|
])
|
|
66
66
|
}
|
|
67
67
|
}),
|
|
68
|
-
close:
|
|
68
|
+
close: v(e, {
|
|
69
69
|
label: "environment-data:device:close",
|
|
70
70
|
tag: K.deviceClose,
|
|
71
71
|
scheduler: t,
|
|
72
72
|
concurrency: n
|
|
73
73
|
}),
|
|
74
|
-
shutdown:
|
|
74
|
+
shutdown: v(e, {
|
|
75
75
|
label: "environment-data:device:shutdown",
|
|
76
76
|
tag: K.deviceShutdown,
|
|
77
77
|
scheduler: t,
|
|
78
78
|
concurrency: n
|
|
79
79
|
}),
|
|
80
|
-
detail:
|
|
80
|
+
detail: v(e, {
|
|
81
81
|
label: "environment-data:device:detail",
|
|
82
82
|
tag: K.deviceDetail,
|
|
83
83
|
scheduler: t,
|
|
84
84
|
concurrency: n
|
|
85
85
|
}),
|
|
86
|
-
action:
|
|
86
|
+
action: v(e, {
|
|
87
87
|
label: "environment-data:device:action",
|
|
88
88
|
tag: K.deviceAction,
|
|
89
89
|
scheduler: t,
|
|
@@ -105,7 +105,7 @@ var Xe = Ye(n), Ze = {
|
|
|
105
105
|
revision: 0
|
|
106
106
|
};
|
|
107
107
|
function Qe(e) {
|
|
108
|
-
let t = qe(7), n =
|
|
108
|
+
let t = qe(7), n = f(), r;
|
|
109
109
|
t[0] === e ? r = t[1] : (r = e === null ? null : Xe.state({
|
|
110
110
|
environmentId: e,
|
|
111
111
|
input: {}
|
|
@@ -118,18 +118,18 @@ function Qe(e) {
|
|
|
118
118
|
refresh: i.refresh
|
|
119
119
|
}, t[2] = i.error, t[3] = i.refresh, t[4] = a, t[5] = o, t[6] = s) : s = t[6], s;
|
|
120
120
|
}
|
|
121
|
-
var $e =
|
|
121
|
+
var $e = m((e) => n.atom((t) => {
|
|
122
122
|
let n = Y(t(r.preparedConnectionValueAtom(e)));
|
|
123
123
|
return n === null ? B : Ee({
|
|
124
124
|
prepared: n,
|
|
125
125
|
hubBasePath: Ze.hubBasePath
|
|
126
126
|
});
|
|
127
|
-
}).pipe(
|
|
127
|
+
}).pipe(w(6e4), y(`device-hub-access:${e}`)));
|
|
128
128
|
function et(e, t) {
|
|
129
129
|
let n = qe(5), r = t === void 0 ? "local" : t, i;
|
|
130
130
|
n[0] === e ? i = n[1] : (i = e === null ? tt : $e(e), n[0] = e, n[1] = i);
|
|
131
|
-
let a =
|
|
132
|
-
return n[2] !== r || n[3] !== a ? (o =
|
|
131
|
+
let a = l(i), o;
|
|
132
|
+
return n[2] !== r || n[3] !== a ? (o = M(a) ? {
|
|
133
133
|
...a.value,
|
|
134
134
|
query: {
|
|
135
135
|
...a.value.query,
|
|
@@ -137,13 +137,13 @@ function et(e, t) {
|
|
|
137
137
|
}
|
|
138
138
|
} : null, n[2] = r, n[3] = a, n[4] = o) : o = n[4], o;
|
|
139
139
|
}
|
|
140
|
-
var tt =
|
|
140
|
+
var tt = d(k()).pipe(y("device-hub-access:empty"));
|
|
141
141
|
function nt(e) {
|
|
142
142
|
E.refresh($e(e));
|
|
143
143
|
}
|
|
144
144
|
function rt(e, t = "local") {
|
|
145
145
|
let n = $e(e);
|
|
146
|
-
return E.refresh(n), te(
|
|
146
|
+
return E.refresh(n), te(x(E, n, { suspendOnWaiting: !0 }).pipe(ue((e) => ({
|
|
147
147
|
...e,
|
|
148
148
|
query: {
|
|
149
149
|
...e.query,
|
|
@@ -151,10 +151,10 @@ function rt(e, t = "local") {
|
|
|
151
151
|
}
|
|
152
152
|
})), L("10 seconds"), z(() => null)));
|
|
153
153
|
}
|
|
154
|
-
var it =
|
|
154
|
+
var it = m((e) => d({
|
|
155
155
|
detail: null,
|
|
156
156
|
error: null
|
|
157
|
-
}).pipe(
|
|
157
|
+
}).pipe(y(`device-detail:${e.hostId}:${e.deviceId}`))), at = m((e) => d((t) => G(() => j(t.registry, Xe.detail, {
|
|
158
158
|
environmentId: e.environmentId,
|
|
159
159
|
input: {
|
|
160
160
|
hostId: e.hostId,
|
|
@@ -166,15 +166,15 @@ var it = c((e) => p({
|
|
|
166
166
|
} : {
|
|
167
167
|
detail: null,
|
|
168
168
|
error: ke(n.cause)
|
|
169
|
-
})))).pipe(
|
|
169
|
+
})))).pipe(y(`device-detail-read:${e.hostId}:${e.deviceId}`))), ot = m((e) => d((t) => G(() => j(t.registry, Xe.list, {
|
|
170
170
|
environmentId: e,
|
|
171
171
|
input: {}
|
|
172
|
-
}, { reportFailure: !1 })).pipe(U)).pipe(
|
|
172
|
+
}, { reportFailure: !1 })).pipe(U)).pipe(y(`device-host-probe:${e}`))), st = d(k()).pipe(y("device-host-probe:none")), ct = T(n, {
|
|
173
173
|
label: "environment-data:device:eas-account-check",
|
|
174
174
|
tag: K.deviceEasAccount,
|
|
175
175
|
staleTimeMs: 0,
|
|
176
176
|
idleTtlMs: 0
|
|
177
|
-
}), lt =
|
|
177
|
+
}), lt = T(n, {
|
|
178
178
|
label: "environment-data:device:simlock-identity-check",
|
|
179
179
|
tag: K.deviceSimlockIdentity,
|
|
180
180
|
staleTimeMs: 0,
|
|
@@ -182,9 +182,9 @@ var it = c((e) => p({
|
|
|
182
182
|
});
|
|
183
183
|
// src/components/device/DeviceHostUpdates.tsx
|
|
184
184
|
function ut(e) {
|
|
185
|
-
let t = qe(17), { state: n, environmentId: r } = e, i =
|
|
185
|
+
let t = qe(17), { state: n, environmentId: r } = e, i = s(), a = Te(Xe.list), [o, c] = Ke(null);
|
|
186
186
|
if (n.hostStatus === "disabled") return null;
|
|
187
|
-
let
|
|
187
|
+
let l;
|
|
188
188
|
if (t[0] !== r || t[1] !== i || t[2] !== o || t[3] !== a || t[4] !== n.hostStatuses || t[5] !== n.hosts || t[6] !== n.supportsHostRetry) {
|
|
189
189
|
let e;
|
|
190
190
|
t[8] !== r || t[9] !== i || t[10] !== o || t[11] !== a || t[12] !== n.hostStatuses || t[13] !== n.supportsHostRetry ? (e = (e) => {
|
|
@@ -194,9 +194,9 @@ function ut(e) {
|
|
|
194
194
|
"starting",
|
|
195
195
|
"failed"
|
|
196
196
|
].includes(t.status)) return null;
|
|
197
|
-
let
|
|
197
|
+
let s = t.status === "failed";
|
|
198
198
|
return /* @__PURE__ */ $("div", {
|
|
199
|
-
role:
|
|
199
|
+
role: s ? "alert" : "status",
|
|
200
200
|
className: "flex items-start gap-3 rounded-md border border-border/60 px-3 py-2 text-xs",
|
|
201
201
|
children: [/* @__PURE__ */ $("div", {
|
|
202
202
|
className: "min-w-0 flex-1",
|
|
@@ -207,33 +207,33 @@ function ut(e) {
|
|
|
207
207
|
}),
|
|
208
208
|
/* @__PURE__ */ Q("p", {
|
|
209
209
|
className: "whitespace-pre-wrap break-words text-muted-foreground",
|
|
210
|
-
children: t.detail ?? (
|
|
210
|
+
children: t.detail ?? (s ? i("Device support could not start.") : t.status === "installing" ? i("Installing device tools…") : i("Starting device tools…"))
|
|
211
211
|
}),
|
|
212
|
-
|
|
212
|
+
s ? /* @__PURE__ */ Q("p", {
|
|
213
213
|
className: "mt-1 text-muted-foreground",
|
|
214
|
-
children: /* @__PURE__ */ Q(
|
|
214
|
+
children: /* @__PURE__ */ Q(_, { children: "Check the host connection and network access, then retry. Your device settings are saved." })
|
|
215
215
|
}) : null
|
|
216
216
|
]
|
|
217
|
-
}),
|
|
217
|
+
}), s && n.supportsHostRetry ? /* @__PURE__ */ Q(b, {
|
|
218
218
|
size: "compact",
|
|
219
219
|
variant: "outline",
|
|
220
220
|
disabled: o !== null,
|
|
221
221
|
onClick: () => {
|
|
222
|
-
|
|
222
|
+
c(e.id), a({
|
|
223
223
|
environmentId: r,
|
|
224
224
|
input: { retryHostId: e.id }
|
|
225
|
-
}).finally(() =>
|
|
225
|
+
}).finally(() => c(null));
|
|
226
226
|
},
|
|
227
227
|
children: o === e.id ? i("Retrying…") : i("Retry")
|
|
228
228
|
}) : null]
|
|
229
229
|
}, e.id);
|
|
230
|
-
}, t[8] = r, t[9] = i, t[10] = o, t[11] = a, t[12] = n.hostStatuses, t[13] = n.supportsHostRetry, t[14] = e) : e = t[14],
|
|
231
|
-
} else
|
|
232
|
-
let
|
|
233
|
-
return t[15] ===
|
|
230
|
+
}, t[8] = r, t[9] = i, t[10] = o, t[11] = a, t[12] = n.hostStatuses, t[13] = n.supportsHostRetry, t[14] = e) : e = t[14], l = n.hosts.map(e), t[0] = r, t[1] = i, t[2] = o, t[3] = a, t[4] = n.hostStatuses, t[5] = n.hosts, t[6] = n.supportsHostRetry, t[7] = l;
|
|
231
|
+
} else l = t[7];
|
|
232
|
+
let u;
|
|
233
|
+
return t[15] === l ? u = t[16] : (u = /* @__PURE__ */ Q("div", {
|
|
234
234
|
className: "space-y-2",
|
|
235
|
-
children:
|
|
236
|
-
}), t[15] =
|
|
235
|
+
children: l
|
|
236
|
+
}), t[15] = l, t[16] = u), u;
|
|
237
237
|
}
|
|
238
238
|
// src/components/device/DeviceSetup.tsx
|
|
239
239
|
var dt = (e) => e === "ios" ? "iOS" : "Android", ft = i("Enable this environment to open simulators and emulators, whether they run here or on a remote device host."), pt = i("Allow new agent sessions in this environment to start and control local and remote devices, with required tools set up automatically."), mt = (e) => ["ios", "android"].filter((t) => e?.status === "ready" && (e.incompletePlatforms?.includes(t) || t === "android" && e.androidDiscoveryIncomplete === !0)), ht = (e) => Object.values(e.hostStatuses).some((e) => mt(e).includes("android"));
|
|
@@ -264,7 +264,7 @@ function vt(e) {
|
|
|
264
264
|
a = null;
|
|
265
265
|
break bb0;
|
|
266
266
|
}
|
|
267
|
-
n = "status", t[7] === e.className ? r = t[8] : (r =
|
|
267
|
+
n = "status", t[7] === e.className ? r = t[8] : (r = D("space-y-1 text-xs text-muted-foreground", e.className), t[7] = e.className, t[8] = r), i = o.map(yt);
|
|
268
268
|
}
|
|
269
269
|
t[0] = e.className, t[1] = e.hostStatuses, t[2] = e.hosts, t[3] = n, t[4] = r, t[5] = i, t[6] = a;
|
|
270
270
|
} else n = t[3], r = t[4], i = t[5], a = t[6];
|
|
@@ -280,10 +280,10 @@ function yt(e) {
|
|
|
280
280
|
let { hostId: t, label: n, detail: r } = e;
|
|
281
281
|
return /* @__PURE__ */ Q("p", {
|
|
282
282
|
className: "whitespace-pre-line break-words",
|
|
283
|
-
children: /* @__PURE__ */ $(
|
|
284
|
-
/* @__PURE__ */ Q(
|
|
283
|
+
children: /* @__PURE__ */ $(_, { children: [
|
|
284
|
+
/* @__PURE__ */ Q(A, { children: n }),
|
|
285
285
|
": ",
|
|
286
|
-
/* @__PURE__ */ Q(
|
|
286
|
+
/* @__PURE__ */ Q(A, { children: r })
|
|
287
287
|
] })
|
|
288
288
|
}, t);
|
|
289
289
|
}
|
|
@@ -316,67 +316,67 @@ function bt(e, t, n = a) {
|
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
318
|
function xt(n) {
|
|
319
|
-
let r = qe(96), i = e(n.environmentId, de), a =
|
|
320
|
-
r[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
321
|
-
let
|
|
322
|
-
r[1] === n.state ?
|
|
323
|
-
let { ready:
|
|
324
|
-
r[3] === n.state.hosts ?
|
|
325
|
-
let
|
|
326
|
-
r[5] !==
|
|
327
|
-
let
|
|
328
|
-
r[8] !==
|
|
319
|
+
let r = qe(96), i = e(n.environmentId, de), a = s(), o = f(), l = Te(Xe.configure), u;
|
|
320
|
+
r[0] === Symbol.for("react.memo_cache_sentinel") ? (u = { reportFailure: !1 }, r[0] = u) : u = r[0];
|
|
321
|
+
let d = Te(Xe.list, u), [p, m] = Ke(null), [h, g] = Ke(0), v = n.state.hostStatus !== "disabled", y;
|
|
322
|
+
r[1] === n.state ? y = r[2] : (y = gt(n.state), r[1] = n.state, r[2] = y);
|
|
323
|
+
let { ready: x, busy: S } = y, C;
|
|
324
|
+
r[3] === n.state.hosts ? C = r[4] : (C = n.state.hosts.some(St), r[3] = n.state.hosts, r[4] = C);
|
|
325
|
+
let w = C, T;
|
|
326
|
+
r[5] !== v || r[6] !== n.environmentId ? (T = v ? ot(n.environmentId) : st, r[5] = v, r[6] = n.environmentId, r[7] = T) : T = r[7], c(T);
|
|
327
|
+
let E;
|
|
328
|
+
r[8] !== l || r[9] !== n ? (E = async (e, r) => {
|
|
329
329
|
if (!t(n.environmentId, "settings:write")) return;
|
|
330
|
-
|
|
331
|
-
let i = await
|
|
330
|
+
m(e);
|
|
331
|
+
let i = await l({
|
|
332
332
|
environmentId: n.environmentId,
|
|
333
333
|
input: r
|
|
334
334
|
});
|
|
335
|
-
|
|
336
|
-
}, r[8] =
|
|
337
|
-
let
|
|
338
|
-
r[11] === a ?
|
|
339
|
-
let
|
|
340
|
-
r[13] === a ?
|
|
341
|
-
let
|
|
342
|
-
r[15] === a ?
|
|
343
|
-
let
|
|
344
|
-
r[17] === a ?
|
|
335
|
+
m(null), e === "complete" && i._tag === "Success" && n.onComplete?.();
|
|
336
|
+
}, r[8] = l, r[9] = n, r[10] = E) : E = r[10];
|
|
337
|
+
let O = E, k;
|
|
338
|
+
r[11] === a ? k = r[12] : (k = a("Set up devices"), r[11] = a, r[12] = k);
|
|
339
|
+
let A;
|
|
340
|
+
r[13] === a ? A = r[14] : (A = a("Review what runs on this environment before using simulators and emulators."), r[13] = a, r[14] = A);
|
|
341
|
+
let j;
|
|
342
|
+
r[15] === a ? j = r[16] : (j = a("Device hub"), r[15] = a, r[16] = j);
|
|
343
|
+
let M;
|
|
344
|
+
r[17] === a ? M = r[18] : (M = a("Simulators"), r[17] = a, r[18] = M);
|
|
345
345
|
let N;
|
|
346
346
|
r[19] === a ? N = r[20] : (N = a("Agent access"), r[19] = a, r[20] = N);
|
|
347
347
|
let P;
|
|
348
|
-
r[21] !==
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
r[21] !== j || r[22] !== M || r[23] !== N ? (P = [
|
|
349
|
+
j,
|
|
350
|
+
M,
|
|
351
351
|
N
|
|
352
|
-
], r[21] =
|
|
352
|
+
], r[21] = j, r[22] = M, r[23] = N, r[24] = P) : P = r[24];
|
|
353
353
|
let F;
|
|
354
|
-
r[25] !==
|
|
354
|
+
r[25] !== S || r[26] !== p || r[27] !== h ? (F = (e) => S || p !== null || e > h, r[25] = S, r[26] = p, r[27] = h, r[28] = F) : F = r[28];
|
|
355
355
|
let I;
|
|
356
|
-
r[29] !==
|
|
356
|
+
r[29] !== h || r[30] !== P || r[31] !== F ? (I = /* @__PURE__ */ Q(Me, {
|
|
357
357
|
steps: P,
|
|
358
|
-
currentStep:
|
|
359
|
-
onStepChange:
|
|
358
|
+
currentStep: h,
|
|
359
|
+
onStepChange: g,
|
|
360
360
|
isStepDisabled: F
|
|
361
|
-
}), r[29] =
|
|
361
|
+
}), r[29] = h, r[30] = P, r[31] = F, r[32] = I) : I = r[32];
|
|
362
362
|
let L;
|
|
363
|
-
r[33] !== I || r[34] !==
|
|
364
|
-
title:
|
|
365
|
-
description:
|
|
363
|
+
r[33] !== I || r[34] !== k || r[35] !== A ? (L = /* @__PURE__ */ Q(Ne, {
|
|
364
|
+
title: k,
|
|
365
|
+
description: A,
|
|
366
366
|
children: I
|
|
367
|
-
}), r[33] = I, r[34] =
|
|
367
|
+
}), r[33] = I, r[34] = k, r[35] = A, r[36] = L) : L = r[36];
|
|
368
368
|
let R;
|
|
369
369
|
r[37] !== n.environmentId || r[38] !== n.state ? (R = /* @__PURE__ */ Q(ut, {
|
|
370
370
|
state: n.state,
|
|
371
371
|
environmentId: n.environmentId
|
|
372
372
|
}), r[37] = n.environmentId, r[38] = n.state, r[39] = R) : R = r[39];
|
|
373
373
|
let z;
|
|
374
|
-
r[40] !==
|
|
374
|
+
r[40] !== S || r[41] !== i || r[42] !== v || r[43] !== a || r[44] !== o || r[45] !== p || r[46] !== n.state || r[47] !== h || r[48] !== O ? (z = h === 0 ? /* @__PURE__ */ $("section", {
|
|
375
375
|
className: "space-y-3 text-sm",
|
|
376
376
|
children: [
|
|
377
377
|
/* @__PURE__ */ Q("h3", {
|
|
378
378
|
className: "font-medium",
|
|
379
|
-
children: /* @__PURE__ */ Q(
|
|
379
|
+
children: /* @__PURE__ */ Q(_, { children: "Enable the device hub" })
|
|
380
380
|
}),
|
|
381
381
|
/* @__PURE__ */ $("div", {
|
|
382
382
|
className: "flex items-start justify-between gap-4",
|
|
@@ -384,10 +384,10 @@ function xt(n) {
|
|
|
384
384
|
className: "text-muted-foreground",
|
|
385
385
|
children: o(ft)
|
|
386
386
|
}), /* @__PURE__ */ Q(Ie, {
|
|
387
|
-
checked:
|
|
388
|
-
disabled: !i ||
|
|
387
|
+
checked: v,
|
|
388
|
+
disabled: !i || S || p !== null,
|
|
389
389
|
"aria-label": a("Enable device hub"),
|
|
390
|
-
onCheckedChange: (e) => void
|
|
390
|
+
onCheckedChange: (e) => void O("hub", {
|
|
391
391
|
enabled: !!e,
|
|
392
392
|
...e ? {} : { agentAccessEnabled: !1 }
|
|
393
393
|
})
|
|
@@ -395,35 +395,35 @@ function xt(n) {
|
|
|
395
395
|
}),
|
|
396
396
|
/* @__PURE__ */ Q(wt, {
|
|
397
397
|
state: n.state,
|
|
398
|
-
pending:
|
|
398
|
+
pending: p === "hub" || S && p !== "agent"
|
|
399
399
|
})
|
|
400
400
|
]
|
|
401
|
-
}) : null, r[40] =
|
|
401
|
+
}) : null, r[40] = S, r[41] = i, r[42] = v, r[43] = a, r[44] = o, r[45] = p, r[46] = n.state, r[47] = h, r[48] = O, r[49] = z) : z = r[49];
|
|
402
402
|
let B;
|
|
403
|
-
r[50] !==
|
|
404
|
-
className:
|
|
403
|
+
r[50] !== S || r[51] !== v || r[52] !== d || r[53] !== w || r[54] !== p || r[55] !== n.environmentId || r[56] !== n.state || r[57] !== h ? (B = h === 1 || h === 0 && v && w ? /* @__PURE__ */ $("section", {
|
|
404
|
+
className: D("space-y-3 text-sm", h === 0 && "mt-4"),
|
|
405
405
|
children: [/* @__PURE__ */ Q("h3", {
|
|
406
406
|
className: "font-medium",
|
|
407
|
-
children: /* @__PURE__ */ Q(
|
|
407
|
+
children: /* @__PURE__ */ Q(_, { children: "Check simulator support" })
|
|
408
408
|
}), /* @__PURE__ */ Q(Tt, {
|
|
409
409
|
state: n.state,
|
|
410
|
-
checking:
|
|
411
|
-
disabled: !
|
|
410
|
+
checking: p === "check",
|
|
411
|
+
disabled: !v || S || p !== null,
|
|
412
412
|
onCheck: () => {
|
|
413
|
-
|
|
413
|
+
m("check"), d({
|
|
414
414
|
environmentId: n.environmentId,
|
|
415
415
|
input: {}
|
|
416
|
-
}).finally(() =>
|
|
416
|
+
}).finally(() => m(null));
|
|
417
417
|
}
|
|
418
418
|
})]
|
|
419
|
-
}) : null, r[50] =
|
|
419
|
+
}) : null, r[50] = S, r[51] = v, r[52] = d, r[53] = w, r[54] = p, r[55] = n.environmentId, r[56] = n.state, r[57] = h, r[58] = B) : B = r[58];
|
|
420
420
|
let V;
|
|
421
|
-
r[59] !==
|
|
421
|
+
r[59] !== S || r[60] !== i || r[61] !== v || r[62] !== a || r[63] !== o || r[64] !== p || r[65] !== n.state || r[66] !== h || r[67] !== O ? (V = h === 2 ? /* @__PURE__ */ $("section", {
|
|
422
422
|
className: "space-y-3 text-sm",
|
|
423
423
|
children: [
|
|
424
424
|
/* @__PURE__ */ Q("h3", {
|
|
425
425
|
className: "font-medium",
|
|
426
|
-
children: /* @__PURE__ */ Q(
|
|
426
|
+
children: /* @__PURE__ */ Q(_, { children: "Allow agent control" })
|
|
427
427
|
}),
|
|
428
428
|
/* @__PURE__ */ $("div", {
|
|
429
429
|
className: "flex items-start justify-between gap-4",
|
|
@@ -432,21 +432,21 @@ function xt(n) {
|
|
|
432
432
|
children: o(pt)
|
|
433
433
|
}), /* @__PURE__ */ Q(Ie, {
|
|
434
434
|
checked: n.state.agentAccessEnabled,
|
|
435
|
-
disabled: !i || !
|
|
435
|
+
disabled: !i || !v || S || p !== null,
|
|
436
436
|
"aria-label": a("Allow agents to control devices"),
|
|
437
|
-
onCheckedChange: (e) => void
|
|
437
|
+
onCheckedChange: (e) => void O("agent", { agentAccessEnabled: !!e })
|
|
438
438
|
})]
|
|
439
439
|
}),
|
|
440
440
|
/* @__PURE__ */ Q(Et, {
|
|
441
441
|
state: n.state,
|
|
442
|
-
pending:
|
|
442
|
+
pending: p === "agent"
|
|
443
443
|
}),
|
|
444
444
|
/* @__PURE__ */ Q("p", {
|
|
445
445
|
className: "text-xs text-muted-foreground",
|
|
446
|
-
children: /* @__PURE__ */ Q(
|
|
446
|
+
children: /* @__PURE__ */ Q(_, { children: "Leave this off to keep manual device controls without giving agents access." })
|
|
447
447
|
})
|
|
448
448
|
]
|
|
449
|
-
}) : null, r[59] =
|
|
449
|
+
}) : null, r[59] = S, r[60] = i, r[61] = v, r[62] = a, r[63] = o, r[64] = p, r[65] = n.state, r[66] = h, r[67] = O, r[68] = V) : V = r[68];
|
|
450
450
|
let H;
|
|
451
451
|
r[69] !== n.state.hostStatus || r[70] !== n.state.hostStatusDetail ? (H = n.state.hostStatus === "failed" && n.state.hostStatusDetail ? /* @__PURE__ */ Q("p", {
|
|
452
452
|
role: "alert",
|
|
@@ -462,25 +462,25 @@ function xt(n) {
|
|
|
462
462
|
H
|
|
463
463
|
] }), r[72] = R, r[73] = z, r[74] = B, r[75] = V, r[76] = H, r[77] = U) : U = r[77];
|
|
464
464
|
let W;
|
|
465
|
-
r[78] !==
|
|
466
|
-
render: /* @__PURE__ */ Q(
|
|
467
|
-
children: /* @__PURE__ */ Q(
|
|
468
|
-
}) : /* @__PURE__ */ Q(
|
|
465
|
+
r[78] !== S || r[79] !== p || r[80] !== h ? (W = h === 0 ? /* @__PURE__ */ Q(Ae, {
|
|
466
|
+
render: /* @__PURE__ */ Q(b, { variant: "outline" }),
|
|
467
|
+
children: /* @__PURE__ */ Q(_, { children: "Cancel" })
|
|
468
|
+
}) : /* @__PURE__ */ Q(b, {
|
|
469
469
|
variant: "outline",
|
|
470
|
-
disabled:
|
|
471
|
-
onClick: () => h
|
|
472
|
-
children: /* @__PURE__ */ Q(
|
|
473
|
-
}), r[78] =
|
|
470
|
+
disabled: S || p !== null,
|
|
471
|
+
onClick: () => g(h - 1),
|
|
472
|
+
children: /* @__PURE__ */ Q(_, { children: "Back" })
|
|
473
|
+
}), r[78] = S, r[79] = p, r[80] = h, r[81] = W) : W = r[81];
|
|
474
474
|
let G;
|
|
475
|
-
r[82] !== i || r[83] !== a || r[84] !==
|
|
476
|
-
disabled: !
|
|
477
|
-
onClick: () => h
|
|
478
|
-
children: /* @__PURE__ */ Q(
|
|
479
|
-
}) : /* @__PURE__ */ Q(
|
|
480
|
-
disabled: !i || !
|
|
481
|
-
onClick: () => void
|
|
482
|
-
children: a(
|
|
483
|
-
}), r[82] = i, r[83] = a, r[84] =
|
|
475
|
+
r[82] !== i || r[83] !== a || r[84] !== p || r[85] !== x || r[86] !== h || r[87] !== O ? (G = h < 2 ? /* @__PURE__ */ Q(b, {
|
|
476
|
+
disabled: !x || p !== null,
|
|
477
|
+
onClick: () => g(h + 1),
|
|
478
|
+
children: /* @__PURE__ */ Q(_, { children: "Continue" })
|
|
479
|
+
}) : /* @__PURE__ */ Q(b, {
|
|
480
|
+
disabled: !i || !x || p !== null,
|
|
481
|
+
onClick: () => void O("complete", { onboardingCompleted: !0 }),
|
|
482
|
+
children: a(p === "complete" ? "Saving…" : "Done")
|
|
483
|
+
}), r[82] = i, r[83] = a, r[84] = p, r[85] = x, r[86] = h, r[87] = O, r[88] = G) : G = r[88];
|
|
484
484
|
let K;
|
|
485
485
|
r[89] !== W || r[90] !== G ? (K = /* @__PURE__ */ $(Fe, { children: [W, G] }), r[89] = W, r[90] = G, r[91] = K) : K = r[91];
|
|
486
486
|
let ee;
|
|
@@ -497,21 +497,21 @@ function Ct(e) {
|
|
|
497
497
|
return e.available;
|
|
498
498
|
}
|
|
499
499
|
function wt(e) {
|
|
500
|
-
let t = qe(10), { state: n, pending: r, compact: i } = e, a = i !== void 0 && i, o =
|
|
500
|
+
let t = qe(10), { state: n, pending: r, compact: i } = e, a = i !== void 0 && i, o = s();
|
|
501
501
|
if (!r && !gt(n).ready) return null;
|
|
502
|
-
let s;
|
|
503
|
-
t[0] === r ? s = t[1] : (s = r ? /* @__PURE__ */ Q(l, { size: "xs" }) : /* @__PURE__ */ Q(Se, { className: "size-3 text-success" }), t[0] = r, t[1] = s);
|
|
504
502
|
let c;
|
|
505
|
-
t[
|
|
503
|
+
t[0] === r ? c = t[1] : (c = r ? /* @__PURE__ */ Q(u, { size: "xs" }) : /* @__PURE__ */ Q(Se, { className: "size-3 text-success" }), t[0] = r, t[1] = c);
|
|
504
|
+
let l;
|
|
505
|
+
t[2] !== a || t[3] !== o || t[4] !== r || t[5] !== n ? (l = r ? n.hostStatus === "installing" ? o(a ? "Installing…" : "Installing device hub…") : n.hostStatus === "starting" ? o(a ? "Starting…" : "Starting device hub…") : o(a ? "Updating…" : "Updating device hub…") : o("Device hub is ready."), t[2] = a, t[3] = o, t[4] = r, t[5] = n, t[6] = l) : l = t[6];
|
|
506
506
|
let d;
|
|
507
|
-
return t[7] !==
|
|
507
|
+
return t[7] !== c || t[8] !== l ? (d = /* @__PURE__ */ $("p", {
|
|
508
508
|
role: "status",
|
|
509
509
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
510
|
-
children: [
|
|
511
|
-
}), t[7] =
|
|
510
|
+
children: [c, l]
|
|
511
|
+
}), t[7] = c, t[8] = l, t[9] = d) : d = t[9], d;
|
|
512
512
|
}
|
|
513
513
|
function Tt(e) {
|
|
514
|
-
let t = qe(29), n =
|
|
514
|
+
let t = qe(29), n = s(), r = f(), i;
|
|
515
515
|
t[0] !== r || t[1] !== e.state ? (i = bt(e.state, "ios", r), t[0] = r, t[1] = e.state, t[2] = i) : i = t[2];
|
|
516
516
|
let a;
|
|
517
517
|
t[3] === i ? a = t[4] : (a = /* @__PURE__ */ Q(Ot, {
|
|
@@ -520,52 +520,52 @@ function Tt(e) {
|
|
|
520
520
|
}), t[3] = i, t[4] = a);
|
|
521
521
|
let o;
|
|
522
522
|
t[5] !== r || t[6] !== e.state ? (o = bt(e.state, "android", r), t[5] = r, t[6] = e.state, t[7] = o) : o = t[7];
|
|
523
|
-
let
|
|
524
|
-
t[8] === o ?
|
|
523
|
+
let c;
|
|
524
|
+
t[8] === o ? c = t[9] : (c = /* @__PURE__ */ Q(Ot, {
|
|
525
525
|
platform: "Android",
|
|
526
526
|
status: o
|
|
527
|
-
}), t[8] = o, t[9] =
|
|
528
|
-
let
|
|
529
|
-
t[10] !== e.state.hostStatuses || t[11] !== e.state.hosts ? (
|
|
527
|
+
}), t[8] = o, t[9] = c);
|
|
528
|
+
let l;
|
|
529
|
+
t[10] !== e.state.hostStatuses || t[11] !== e.state.hosts ? (l = /* @__PURE__ */ Q(vt, {
|
|
530
530
|
hosts: e.state.hosts,
|
|
531
531
|
hostStatuses: e.state.hostStatuses
|
|
532
|
-
}), t[10] = e.state.hostStatuses, t[11] = e.state.hosts, t[12] =
|
|
532
|
+
}), t[10] = e.state.hostStatuses, t[11] = e.state.hosts, t[12] = l) : l = t[12];
|
|
533
533
|
let d;
|
|
534
534
|
t[13] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ Q("p", {
|
|
535
535
|
className: "text-xs text-muted-foreground",
|
|
536
|
-
children: /* @__PURE__ */ Q(
|
|
536
|
+
children: /* @__PURE__ */ Q(_, { children: "You can use either platform. Fixing a missing platform does not block the other one." })
|
|
537
537
|
}), t[13] = d) : d = t[13];
|
|
538
|
-
let f;
|
|
539
|
-
t[14] === e.checking ? f = t[15] : (f = e.checking ? /* @__PURE__ */ Q(l, { size: "xs" }) : null, t[14] = e.checking, t[15] = f);
|
|
540
538
|
let p;
|
|
541
|
-
t[
|
|
539
|
+
t[14] === e.checking ? p = t[15] : (p = e.checking ? /* @__PURE__ */ Q(u, { size: "xs" }) : null, t[14] = e.checking, t[15] = p);
|
|
542
540
|
let m;
|
|
543
|
-
t[
|
|
541
|
+
t[16] !== n || t[17] !== e.checking ? (m = e.checking ? n("Checking…") : n("Check again"), t[16] = n, t[17] = e.checking, t[18] = m) : m = t[18];
|
|
542
|
+
let h;
|
|
543
|
+
t[19] !== e.disabled || t[20] !== e.onCheck || t[21] !== p || t[22] !== m ? (h = /* @__PURE__ */ $(b, {
|
|
544
544
|
size: "compact",
|
|
545
545
|
variant: "outline",
|
|
546
546
|
disabled: e.disabled,
|
|
547
547
|
onClick: e.onCheck,
|
|
548
|
-
children: [
|
|
549
|
-
}), t[19] = e.disabled, t[20] = e.onCheck, t[21] =
|
|
550
|
-
let
|
|
551
|
-
return t[24] !== a || t[25] !==
|
|
548
|
+
children: [p, m]
|
|
549
|
+
}), t[19] = e.disabled, t[20] = e.onCheck, t[21] = p, t[22] = m, t[23] = h) : h = t[23];
|
|
550
|
+
let g;
|
|
551
|
+
return t[24] !== a || t[25] !== c || t[26] !== l || t[27] !== h ? (g = /* @__PURE__ */ $("div", {
|
|
552
552
|
className: "space-y-3",
|
|
553
553
|
children: [
|
|
554
554
|
a,
|
|
555
|
-
s,
|
|
556
555
|
c,
|
|
556
|
+
l,
|
|
557
557
|
d,
|
|
558
|
-
|
|
558
|
+
h
|
|
559
559
|
]
|
|
560
|
-
}), t[24] = a, t[25] =
|
|
560
|
+
}), t[24] = a, t[25] = c, t[26] = l, t[27] = h, t[28] = g) : g = t[28], g;
|
|
561
561
|
}
|
|
562
562
|
function Et(e) {
|
|
563
|
-
let t = qe(8), n =
|
|
563
|
+
let t = qe(8), n = s();
|
|
564
564
|
if (e.pending) {
|
|
565
565
|
let r;
|
|
566
566
|
t[0] !== n || t[1] !== e.compact || t[2] !== e.state.hostStatus ? (r = e.state.hostStatus === "installing" ? e.compact ? n("Installing…") : n("Installing agent tools…") : e.state.hostStatus === "starting" ? e.compact ? n("Starting…") : n("Starting agent tools…") : e.compact ? n("Updating…") : n("Updating agent access…"), t[0] = n, t[1] = e.compact, t[2] = e.state.hostStatus, t[3] = r) : r = t[3];
|
|
567
567
|
let i = r, a;
|
|
568
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(
|
|
568
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(u, { size: "xs" }), t[4] = a) : a = t[4];
|
|
569
569
|
let o;
|
|
570
570
|
return t[5] === i ? o = t[6] : (o = /* @__PURE__ */ $("p", {
|
|
571
571
|
role: "status",
|
|
@@ -578,7 +578,7 @@ function Et(e) {
|
|
|
578
578
|
return t[7] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ $("p", {
|
|
579
579
|
role: "status",
|
|
580
580
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
581
|
-
children: [/* @__PURE__ */ Q(Se, { className: "size-3 text-success" }), /* @__PURE__ */ Q(
|
|
581
|
+
children: [/* @__PURE__ */ Q(Se, { className: "size-3 text-success" }), /* @__PURE__ */ Q(_, { children: "Agent tools are ready." })]
|
|
582
582
|
}), t[7] = e) : e = t[7], e;
|
|
583
583
|
}
|
|
584
584
|
return null;
|
|
@@ -587,29 +587,29 @@ function Dt(e) {
|
|
|
587
587
|
return e.agentDeviceInstalled;
|
|
588
588
|
}
|
|
589
589
|
function Ot(e) {
|
|
590
|
-
let t = qe(23), n =
|
|
591
|
-
t[0] === r ? i = t[1] : (i =
|
|
590
|
+
let t = qe(23), n = s(), r = !e.compact && "rounded-md border border-border/60 px-3 py-2", i;
|
|
591
|
+
t[0] === r ? i = t[1] : (i = D("flex gap-2", r), t[0] = r, t[1] = i);
|
|
592
592
|
let a;
|
|
593
593
|
t[2] === e.status.ready ? a = t[3] : (a = e.status.ready ? /* @__PURE__ */ Q(Se, { className: "mt-0.5 size-4 shrink-0 text-success" }) : /* @__PURE__ */ Q(Ce, { className: "mt-0.5 size-4 shrink-0 text-muted-foreground" }), t[2] = e.status.ready, t[3] = a);
|
|
594
|
-
let o = e.compact && e.status.ready && "flex items-center gap-2",
|
|
595
|
-
t[4] === o ?
|
|
596
|
-
let
|
|
597
|
-
t[6] === e.platform ?
|
|
594
|
+
let o = e.compact && e.status.ready && "flex items-center gap-2", c;
|
|
595
|
+
t[4] === o ? c = t[5] : (c = D(o), t[4] = o, t[5] = c);
|
|
596
|
+
let l;
|
|
597
|
+
t[6] === e.platform ? l = t[7] : (l = /* @__PURE__ */ Q("p", {
|
|
598
598
|
className: "font-medium",
|
|
599
599
|
children: e.platform
|
|
600
|
-
}), t[6] = e.platform, t[7] =
|
|
601
|
-
let
|
|
602
|
-
t[8] !== n || t[9] !== e.compact || t[10] !== e.status.message || t[11] !== e.status.ready ? (
|
|
600
|
+
}), t[6] = e.platform, t[7] = l);
|
|
601
|
+
let u;
|
|
602
|
+
t[8] !== n || t[9] !== e.compact || t[10] !== e.status.message || t[11] !== e.status.ready ? (u = e.compact && e.status.ready ? n("Ready", { $context: "platform status" }) : e.status.message, t[8] = n, t[9] = e.compact, t[10] = e.status.message, t[11] = e.status.ready, t[12] = u) : u = t[12];
|
|
603
603
|
let d;
|
|
604
|
-
t[13] ===
|
|
604
|
+
t[13] === u ? d = t[14] : (d = /* @__PURE__ */ Q("p", {
|
|
605
605
|
className: "text-xs text-muted-foreground",
|
|
606
|
-
children:
|
|
607
|
-
}), t[13] =
|
|
606
|
+
children: u
|
|
607
|
+
}), t[13] = u, t[14] = d);
|
|
608
608
|
let f;
|
|
609
|
-
t[15] !==
|
|
610
|
-
className:
|
|
611
|
-
children: [
|
|
612
|
-
}), t[15] =
|
|
609
|
+
t[15] !== c || t[16] !== l || t[17] !== d ? (f = /* @__PURE__ */ $("div", {
|
|
610
|
+
className: c,
|
|
611
|
+
children: [l, d]
|
|
612
|
+
}), t[15] = c, t[16] = l, t[17] = d, t[18] = f) : f = t[18];
|
|
613
613
|
let p;
|
|
614
614
|
return t[19] !== i || t[20] !== a || t[21] !== f ? (p = /* @__PURE__ */ $("div", {
|
|
615
615
|
className: i,
|
|
@@ -807,16 +807,16 @@ function Ht(e, t, n) {
|
|
|
807
807
|
// src/components/device/DeviceDuoViewport.tsx
|
|
808
808
|
var Ut = () => import("./duoViewer-Cqj8AK8Q.js");
|
|
809
809
|
function Wt(e) {
|
|
810
|
-
let t = qe(26), n =
|
|
810
|
+
let t = qe(26), n = s(), r = Ge(null), i = Ge(null), a = Ge(null), o = Ge(e.screen), c = Ge(e.model), l = Ge(e.hingePreview), { source: u, client: d, onInputCancel: f, onControlRejectedListener: p, onResetReady: m, onUnavailable: h, onFrameListener: g } = e, _, v;
|
|
811
811
|
t[0] !== e.model || t[1] !== e.screen ? (_ = () => {
|
|
812
|
-
o.current = e.screen,
|
|
812
|
+
o.current = e.screen, c.current = e.model, i.current?.end(), r.current?.setScreen(e.screen);
|
|
813
813
|
}, v = [e.screen, e.model], t[0] = e.model, t[1] = e.screen, t[2] = _, t[3] = v) : (_ = t[2], v = t[3]), Ue(_, v);
|
|
814
814
|
let y, b;
|
|
815
815
|
t[4] === e.hingePreview ? (y = t[5], b = t[6]) : (y = () => {
|
|
816
|
-
|
|
816
|
+
l.current = e.hingePreview, a.current?.active || r.current?.setHingePreview(e.hingePreview);
|
|
817
817
|
}, b = [e.hingePreview], t[4] = e.hingePreview, t[5] = y, t[6] = b), Ue(y, b);
|
|
818
818
|
let x;
|
|
819
|
-
t[7] !== d || t[8] !== p || t[9] !== g || t[10] !== f || t[11] !== m || t[12] !== h || t[13] !==
|
|
819
|
+
t[7] !== d || t[8] !== p || t[9] !== g || t[10] !== f || t[11] !== m || t[12] !== h || t[13] !== u ? (x = (e) => {
|
|
820
820
|
let t = e?.parentElement;
|
|
821
821
|
if (e && t) return Ht(e, t, {
|
|
822
822
|
load: () => Ut().then((t) => {
|
|
@@ -840,7 +840,7 @@ function Wt(e) {
|
|
|
840
840
|
value: e
|
|
841
841
|
}),
|
|
842
842
|
onModelError: qt,
|
|
843
|
-
model:
|
|
843
|
+
model: c.current
|
|
844
844
|
}),
|
|
845
845
|
sources: t
|
|
846
846
|
};
|
|
@@ -858,7 +858,7 @@ function Wt(e) {
|
|
|
858
858
|
let { viewer: t, cancelTrackpad: n } = e;
|
|
859
859
|
p(() => {
|
|
860
860
|
n(), t.rejectOrientation();
|
|
861
|
-
}), t.setScreen(o.current), t.setHingePreview(
|
|
861
|
+
}), t.setScreen(o.current), t.setHingePreview(l.current), d.setDuoPanels({
|
|
862
862
|
onScreen(e) {
|
|
863
863
|
o.current = e, i.current?.end(), t.setScreen(e);
|
|
864
864
|
},
|
|
@@ -866,10 +866,10 @@ function Wt(e) {
|
|
|
866
866
|
inner: Rt(t.sources[3], () => t.frameUpdated(3))
|
|
867
867
|
});
|
|
868
868
|
let r = Be({
|
|
869
|
-
angle: () =>
|
|
869
|
+
angle: () => l.current ?? o.current?.hingeAngle ?? (o.current?.screenId === 1 ? 0 : 180),
|
|
870
870
|
contains: (e, n) => !!o.current && t.beginHinge(e, n),
|
|
871
871
|
change: (e) => {
|
|
872
|
-
t.setHingePreview(e ??
|
|
872
|
+
t.setHingePreview(e ?? l.current, !0), e !== null && d.controlDuo({
|
|
873
873
|
control: "angle",
|
|
874
874
|
value: e
|
|
875
875
|
});
|
|
@@ -878,7 +878,7 @@ function Wt(e) {
|
|
|
878
878
|
return a.current = r, {
|
|
879
879
|
frame: () => {
|
|
880
880
|
let e = o.current?.screenId;
|
|
881
|
-
(e === 1 || e === 3) && t.frameUpdated(e,
|
|
881
|
+
(e === 1 || e === 3) && t.frameUpdated(e, u);
|
|
882
882
|
},
|
|
883
883
|
pinch: {
|
|
884
884
|
begin(e, t) {
|
|
@@ -893,7 +893,7 @@ function Wt(e) {
|
|
|
893
893
|
};
|
|
894
894
|
}
|
|
895
895
|
});
|
|
896
|
-
}, t[7] = d, t[8] = p, t[9] = g, t[10] = f, t[11] = m, t[12] = h, t[13] =
|
|
896
|
+
}, t[7] = d, t[8] = p, t[9] = g, t[10] = f, t[11] = m, t[12] = h, t[13] = u, t[14] = x) : x = t[14];
|
|
897
897
|
let S = x, C = Gt, w;
|
|
898
898
|
t[15] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ Q("div", {
|
|
899
899
|
"aria-hidden": !0,
|
|
@@ -945,7 +945,7 @@ var Jt = {
|
|
|
945
945
|
};
|
|
946
946
|
function Yt(e) {
|
|
947
947
|
let t = qe(19), { pose: n, rotated: r } = e, i = r !== void 0 && r, a = n === "laptop" || n === "tent", o = a ? "0 0 22 16" : "0 0 24 24", s = a ? 1.25 : 1.35, c = i && "rotate-90", l;
|
|
948
|
-
t[0] === c ? l = t[1] : (l =
|
|
948
|
+
t[0] === c ? l = t[1] : (l = D("size-7 shrink-0", c), t[0] = c, t[1] = l);
|
|
949
949
|
let u;
|
|
950
950
|
t[2] !== n || t[3] !== a ? (u = a ? /* @__PURE__ */ Q("path", { d: Jt[n] }) : null, t[2] = n, t[3] = a, t[4] = u) : u = t[4];
|
|
951
951
|
let d;
|
|
@@ -1016,21 +1016,21 @@ var Xt = [
|
|
|
1016
1016
|
label: i("Tent stand")
|
|
1017
1017
|
}];
|
|
1018
1018
|
function Qt(e) {
|
|
1019
|
-
let t = qe(48), { screen: n } = e, r =
|
|
1019
|
+
let t = qe(48), { screen: n } = e, r = s(), i = f(), a;
|
|
1020
1020
|
t[0] === n ? a = t[1] : (a = Ve(n), t[0] = n, t[1] = a);
|
|
1021
|
-
let { fold: o, stand:
|
|
1022
|
-
|
|
1023
|
-
let [
|
|
1024
|
-
if (t[2] !== o || t[3] !==
|
|
1021
|
+
let { fold: o, stand: c, phoneVertical: l, settled: u } = a, [d, p] = Ke(l);
|
|
1022
|
+
u && d !== l && p(l);
|
|
1023
|
+
let [m, h] = Ke(d), g = c ? m : d, _ = e.state.pending && (c || e.state.requested?.control === "pose"), v, y, x, w, T, E, D;
|
|
1024
|
+
if (t[2] !== o || t[3] !== _ || t[4] !== r || t[5] !== g || t[6] !== e || t[7] !== n || t[8] !== c || t[9] !== m) {
|
|
1025
1025
|
let i = {
|
|
1026
1026
|
closed: r("Closed", { $context: "iPhone Duo fold shape" }),
|
|
1027
|
-
half: r(
|
|
1027
|
+
half: r(g ? "Book" : "Laptop", { $context: "iPhone Duo fold shape" }),
|
|
1028
1028
|
open: r("Open", { $context: "iPhone Duo fold shape" })
|
|
1029
1029
|
}, a;
|
|
1030
1030
|
t[17] === e.enabled ? a = t[18] : (a = (t, n, r, i, a, o) => {
|
|
1031
1031
|
let s = o !== void 0 && o;
|
|
1032
1032
|
return /* @__PURE__ */ $(C, { children: [/* @__PURE__ */ Q(N, {
|
|
1033
|
-
render: /* @__PURE__ */ Q(
|
|
1033
|
+
render: /* @__PURE__ */ Q(b, {
|
|
1034
1034
|
size: "icon",
|
|
1035
1035
|
variant: r ? "secondary" : "ghost",
|
|
1036
1036
|
disabled: !e.enabled || s,
|
|
@@ -1044,48 +1044,48 @@ function Qt(e) {
|
|
|
1044
1044
|
side: "left",
|
|
1045
1045
|
children: n
|
|
1046
1046
|
})] }, t);
|
|
1047
|
-
}, t[17] = e.enabled, t[18] = a),
|
|
1047
|
+
}, t[17] = e.enabled, t[18] = a), v = a, t[19] === r ? E = t[20] : (E = r("iPhone Duo stands"), t[19] = r, t[20] = E), D = "flex flex-col items-center gap-2", y = "group", t[21] === r ? x = t[22] : (x = r("Fold shape"), t[21] = r, t[22] = x), w = "pointer-events-auto flex shrink-0 flex-col items-center gap-1 rounded-full border border-border/50 bg-background/80 p-1 shadow-sm", T = Xt.map((t) => {
|
|
1048
1048
|
let { id: r, angle: a } = t;
|
|
1049
|
-
return
|
|
1050
|
-
|
|
1049
|
+
return v(r, i[r], !c && o === r, () => {
|
|
1050
|
+
c && e.onCommand({
|
|
1051
1051
|
control: "orientation",
|
|
1052
|
-
value: ze(
|
|
1052
|
+
value: ze(m, n.screenId)
|
|
1053
1053
|
}), e.onCommand({
|
|
1054
1054
|
control: "angle",
|
|
1055
1055
|
value: a
|
|
1056
1056
|
});
|
|
1057
1057
|
}, /* @__PURE__ */ Q(Yt, {
|
|
1058
1058
|
pose: r === "half" ? "book" : r,
|
|
1059
|
-
rotated: !
|
|
1060
|
-
}),
|
|
1061
|
-
}), t[2] = o, t[3] =
|
|
1062
|
-
} else
|
|
1063
|
-
let D;
|
|
1064
|
-
t[23] !== v || t[24] !== b || t[25] !== x || t[26] !== w ? (D = /* @__PURE__ */ Q("div", {
|
|
1065
|
-
role: v,
|
|
1066
|
-
"aria-label": b,
|
|
1067
|
-
className: x,
|
|
1068
|
-
children: w
|
|
1069
|
-
}), t[23] = v, t[24] = b, t[25] = x, t[26] = w, t[27] = D) : D = t[27];
|
|
1059
|
+
rotated: !g
|
|
1060
|
+
}), _);
|
|
1061
|
+
}), t[2] = o, t[3] = _, t[4] = r, t[5] = g, t[6] = e, t[7] = n, t[8] = c, t[9] = m, t[10] = v, t[11] = y, t[12] = x, t[13] = w, t[14] = T, t[15] = E, t[16] = D;
|
|
1062
|
+
} else v = t[10], y = t[11], x = t[12], w = t[13], T = t[14], E = t[15], D = t[16];
|
|
1070
1063
|
let O;
|
|
1071
|
-
t[
|
|
1064
|
+
t[23] !== y || t[24] !== x || t[25] !== w || t[26] !== T ? (O = /* @__PURE__ */ Q("div", {
|
|
1065
|
+
role: y,
|
|
1066
|
+
"aria-label": x,
|
|
1067
|
+
className: w,
|
|
1068
|
+
children: T
|
|
1069
|
+
}), t[23] = y, t[24] = x, t[25] = w, t[26] = T, t[27] = O) : O = t[27];
|
|
1072
1070
|
let k;
|
|
1073
|
-
t[
|
|
1071
|
+
t[28] === r ? k = t[29] : (k = r("Device stance"), t[28] = r, t[29] = k);
|
|
1072
|
+
let A;
|
|
1073
|
+
t[30] !== v || t[31] !== i || t[32] !== e || t[33] !== n || t[34] !== d || t[35] !== c ? (A = Zt.map((t) => {
|
|
1074
1074
|
let { id: r, label: a } = t;
|
|
1075
|
-
return
|
|
1076
|
-
|
|
1075
|
+
return v(r, i(a), n.hingePose === r, () => {
|
|
1076
|
+
c || h(d), e.onCommand({
|
|
1077
1077
|
control: "pose",
|
|
1078
1078
|
value: r
|
|
1079
1079
|
});
|
|
1080
1080
|
}, /* @__PURE__ */ Q(Yt, { pose: r }));
|
|
1081
|
-
}), t[30] =
|
|
1082
|
-
let
|
|
1083
|
-
t[37] !==
|
|
1081
|
+
}), t[30] = v, t[31] = i, t[32] = e, t[33] = n, t[34] = d, t[35] = c, t[36] = A) : A = t[36];
|
|
1082
|
+
let j;
|
|
1083
|
+
t[37] !== k || t[38] !== A ? (j = /* @__PURE__ */ Q("div", {
|
|
1084
1084
|
role: "group",
|
|
1085
|
-
"aria-label":
|
|
1085
|
+
"aria-label": k,
|
|
1086
1086
|
className: "pointer-events-auto flex shrink-0 flex-col items-center gap-1 rounded-full border border-border/50 bg-background/80 p-1 shadow-sm",
|
|
1087
|
-
children:
|
|
1088
|
-
}), t[37] =
|
|
1087
|
+
children: A
|
|
1088
|
+
}), t[37] = k, t[38] = A, t[39] = j) : j = t[39];
|
|
1089
1089
|
let M;
|
|
1090
1090
|
t[40] === e.state.error ? M = t[41] : (M = e.state.error ? /* @__PURE__ */ $(C, { children: [/* @__PURE__ */ Q(N, { render: /* @__PURE__ */ Q("span", {
|
|
1091
1091
|
tabIndex: 0,
|
|
@@ -1098,15 +1098,15 @@ function Qt(e) {
|
|
|
1098
1098
|
children: e.state.error
|
|
1099
1099
|
})] }) : null, t[40] = e.state.error, t[41] = M);
|
|
1100
1100
|
let P;
|
|
1101
|
-
return t[42] !==
|
|
1102
|
-
"aria-label":
|
|
1103
|
-
className:
|
|
1101
|
+
return t[42] !== j || t[43] !== M || t[44] !== E || t[45] !== D || t[46] !== O ? (P = /* @__PURE__ */ $("div", {
|
|
1102
|
+
"aria-label": E,
|
|
1103
|
+
className: D,
|
|
1104
1104
|
children: [
|
|
1105
|
-
|
|
1106
|
-
|
|
1105
|
+
O,
|
|
1106
|
+
j,
|
|
1107
1107
|
M
|
|
1108
1108
|
]
|
|
1109
|
-
}), t[42] =
|
|
1109
|
+
}), t[42] = j, t[43] = M, t[44] = E, t[45] = D, t[46] = O, t[47] = P) : P = t[47], P;
|
|
1110
1110
|
}
|
|
1111
1111
|
// src/components/device/deviceFold.ts
|
|
1112
1112
|
var $t = class extends ce()("AndroidFoldError", {
|
|
@@ -1244,24 +1244,24 @@ function vn(e, t) {
|
|
|
1244
1244
|
}) : () => {};
|
|
1245
1245
|
}
|
|
1246
1246
|
// src/components/device/deviceHubAtoms.ts
|
|
1247
|
-
var yn = pe($t), bn = 2e3, xn = 3e3, Sn =
|
|
1247
|
+
var yn = pe($t), bn = 2e3, xn = 3e3, Sn = m((e) => d((t) => {
|
|
1248
1248
|
t.addFinalizer(hn(e, (e) => t.setSelf(e)));
|
|
1249
|
-
}).pipe(
|
|
1249
|
+
}).pipe(y(`device-foreground:${e.deviceId}`))), Cn = m((e) => d((t) => {
|
|
1250
1250
|
let n = [];
|
|
1251
1251
|
return t.addFinalizer(vn(e, (e, r) => {
|
|
1252
1252
|
n = _n(n, e, r), t.setSelf(n);
|
|
1253
1253
|
})), n;
|
|
1254
|
-
}).pipe(
|
|
1254
|
+
}).pipe(y(`device-event-log:${e.deviceId}`))), wn = class extends ce()("DeviceAxTreeFetchError", { cause: J() }) {
|
|
1255
1255
|
get message() {
|
|
1256
1256
|
return "Could not read the device accessibility tree.";
|
|
1257
1257
|
}
|
|
1258
|
-
}, Tn =
|
|
1258
|
+
}, Tn = m((e) => d(he(le({
|
|
1259
1259
|
try: (t) => pn(e, t),
|
|
1260
1260
|
catch: (e) => new wn({ cause: e })
|
|
1261
|
-
}).pipe(ue((e) => e.elements), z(() => null)), me(bn)).pipe(ve((e) => e !== null))).pipe(
|
|
1261
|
+
}).pipe(ue((e) => e.elements), z(() => null)), me(bn)).pipe(ve((e) => e !== null))).pipe(y(`device-ax-elements:${e.deviceId}`))), En = (e) => e.hingeAngle ?? (e.posture === "closed" ? 0 : 180), Dn = m((e) => d({
|
|
1262
1262
|
fold: null,
|
|
1263
1263
|
angle: null
|
|
1264
|
-
}).pipe(
|
|
1264
|
+
}).pipe(y(`android-fold-view:${e}`))), On = m((e) => d((t) => le({
|
|
1265
1265
|
try: (t) => rn(e.access, e.deviceId, t),
|
|
1266
1266
|
catch: (e) => ({ expired: yn(e) && e.status === 401 })
|
|
1267
1267
|
}).pipe(P({
|
|
@@ -1270,50 +1270,50 @@ var yn = pe($t), bn = 2e3, xn = 3e3, Sn = c((e) => p((t) => {
|
|
|
1270
1270
|
}), F((n) => W(() => t.set(Dn(e.deviceKey), {
|
|
1271
1271
|
fold: n,
|
|
1272
1272
|
angle: n.supported ? En(n) : null
|
|
1273
|
-
}))), U)).pipe(
|
|
1273
|
+
}))), U)).pipe(y(`android-fold-read:${e.deviceKey}`))), kn = d(k()).pipe(y("device:noop")), An = d(void 0).pipe(y("device-foreground:none")), jn = pe($t);
|
|
1274
1274
|
function Mn(e) {
|
|
1275
|
-
let t = qe(62), n =
|
|
1276
|
-
t[0] === m ?
|
|
1277
|
-
let
|
|
1278
|
-
if (t[2] !==
|
|
1275
|
+
let t = qe(62), n = s(), [r, i] = Ke(!1), [o, u] = Ke(null), d = Ge(!1), { access: f, deviceKey: m, deviceId: h, visible: g, enabled: v, screenWidth: y, screenHeight: x } = e, w;
|
|
1276
|
+
t[0] === m ? w = t[1] : (w = Dn(m), t[0] = m, t[1] = w);
|
|
1277
|
+
let T = w, { fold: E } = l(T), D = p(T), O;
|
|
1278
|
+
if (t[2] !== f || t[3] !== h || t[4] !== m || t[5] !== v || t[6] !== r || t[7] !== x || t[8] !== y || t[9] !== g ? (O = g && v && !r && y && x ? On({
|
|
1279
1279
|
deviceKey: m,
|
|
1280
|
-
access:
|
|
1280
|
+
access: f,
|
|
1281
1281
|
deviceId: h,
|
|
1282
|
-
screenWidth:
|
|
1283
|
-
screenHeight:
|
|
1284
|
-
}) : kn, t[2] =
|
|
1285
|
-
let
|
|
1286
|
-
t[11] ===
|
|
1282
|
+
screenWidth: y,
|
|
1283
|
+
screenHeight: x
|
|
1284
|
+
}) : kn, t[2] = f, t[3] = h, t[4] = m, t[5] = v, t[6] = r, t[7] = x, t[8] = y, t[9] = g, t[10] = O) : O = t[10], c(O), !E?.supported || !e.visible) return null;
|
|
1285
|
+
let k;
|
|
1286
|
+
t[11] === D ? k = t[12] : (k = (e) => D((t) => ({
|
|
1287
1287
|
...t,
|
|
1288
1288
|
angle: e
|
|
1289
|
-
})), t[11] =
|
|
1290
|
-
let
|
|
1291
|
-
t[13] !==
|
|
1292
|
-
if (
|
|
1293
|
-
|
|
1289
|
+
})), t[11] = D, t[12] = k);
|
|
1290
|
+
let A = k, j;
|
|
1291
|
+
t[13] !== E || t[14] !== n || t[15] !== e || t[16] !== A || t[17] !== D ? (j = (t) => {
|
|
1292
|
+
if (d.current || !e.enabled) return;
|
|
1293
|
+
d.current = !0, i(!0), u(null), A(t === "closed" ? 0 : 180);
|
|
1294
1294
|
let r = new AbortController(), o = window.setTimeout(() => r.abort(), 12e3), s = (n) => an(n, e.deviceId, t, r.signal);
|
|
1295
1295
|
s(e.access).catch(async (t) => {
|
|
1296
1296
|
if (!(jn(t) && t.status === 401)) throw t;
|
|
1297
1297
|
let n = await e.renewAccess();
|
|
1298
1298
|
if (!n || r.signal.aborted) throw t;
|
|
1299
1299
|
return s(n);
|
|
1300
|
-
}).then((e) =>
|
|
1300
|
+
}).then((e) => D({
|
|
1301
1301
|
fold: e,
|
|
1302
1302
|
angle: En(e)
|
|
1303
1303
|
})).catch((e) => {
|
|
1304
|
-
|
|
1304
|
+
A(En(E)), u(r.signal.aborted ? n("Fold command timed out.") : xe(e, a) ?? n("Could not change fold posture."));
|
|
1305
1305
|
}).finally(() => {
|
|
1306
|
-
window.clearTimeout(o),
|
|
1306
|
+
window.clearTimeout(o), d.current = !1, i(!1);
|
|
1307
1307
|
});
|
|
1308
|
-
}, t[13] =
|
|
1309
|
-
let
|
|
1308
|
+
}, t[13] = E, t[14] = n, t[15] = e, t[16] = A, t[17] = D, t[18] = j) : j = t[18];
|
|
1309
|
+
let M = j, P;
|
|
1310
1310
|
t[19] === n ? P = t[20] : (P = n("Android fold controls"), t[19] = n, t[20] = P);
|
|
1311
|
-
let F =
|
|
1311
|
+
let F = E.posture === "closed" ? "secondary" : "ghost", I;
|
|
1312
1312
|
t[21] === n ? I = t[22] : (I = n("Fold device"), t[21] = n, t[22] = I);
|
|
1313
|
-
let L =
|
|
1314
|
-
t[23] ===
|
|
1313
|
+
let L = E.posture === "closed", R = r || !e.enabled, z;
|
|
1314
|
+
t[23] === M ? z = t[24] : (z = () => M("closed"), t[23] = M, t[24] = z);
|
|
1315
1315
|
let B;
|
|
1316
|
-
t[25] !== F || t[26] !== I || t[27] !== L || t[28] !== R || t[29] !== z ? (B = /* @__PURE__ */ Q(
|
|
1316
|
+
t[25] !== F || t[26] !== I || t[27] !== L || t[28] !== R || t[29] !== z ? (B = /* @__PURE__ */ Q(b, {
|
|
1317
1317
|
size: "icon",
|
|
1318
1318
|
variant: F,
|
|
1319
1319
|
"aria-label": I,
|
|
@@ -1331,16 +1331,16 @@ function Mn(e) {
|
|
|
1331
1331
|
let U;
|
|
1332
1332
|
t[34] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ Q(S, {
|
|
1333
1333
|
side: "left",
|
|
1334
|
-
children: /* @__PURE__ */ Q(
|
|
1334
|
+
children: /* @__PURE__ */ Q(_, { children: "Fold device" })
|
|
1335
1335
|
}), t[34] = U) : U = t[34];
|
|
1336
1336
|
let W;
|
|
1337
1337
|
t[35] === H ? W = t[36] : (W = /* @__PURE__ */ $(C, { children: [H, U] }), t[35] = H, t[36] = W);
|
|
1338
|
-
let G =
|
|
1338
|
+
let G = E.posture === "opened" ? "secondary" : "ghost", K;
|
|
1339
1339
|
t[37] === n ? K = t[38] : (K = n("Unfold device"), t[37] = n, t[38] = K);
|
|
1340
|
-
let ee =
|
|
1341
|
-
t[39] ===
|
|
1340
|
+
let ee = E.posture === "opened", te = r || !e.enabled, q;
|
|
1341
|
+
t[39] === M ? q = t[40] : (q = () => M("opened"), t[39] = M, t[40] = q);
|
|
1342
1342
|
let J;
|
|
1343
|
-
t[41] !== G || t[42] !== K || t[43] !== ee || t[44] !== te || t[45] !== q ? (J = /* @__PURE__ */ Q(
|
|
1343
|
+
t[41] !== G || t[42] !== K || t[43] !== ee || t[44] !== te || t[45] !== q ? (J = /* @__PURE__ */ Q(b, {
|
|
1344
1344
|
size: "icon",
|
|
1345
1345
|
variant: G,
|
|
1346
1346
|
"aria-label": K,
|
|
@@ -1358,7 +1358,7 @@ function Mn(e) {
|
|
|
1358
1358
|
let re;
|
|
1359
1359
|
t[50] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ Q(S, {
|
|
1360
1360
|
side: "left",
|
|
1361
|
-
children: /* @__PURE__ */ Q(
|
|
1361
|
+
children: /* @__PURE__ */ Q(_, { children: "Unfold device" })
|
|
1362
1362
|
}), t[50] = re) : re = t[50];
|
|
1363
1363
|
let ie;
|
|
1364
1364
|
t[51] === ne ? ie = t[52] : (ie = /* @__PURE__ */ $(C, { children: [ne, re] }), t[51] = ne, t[52] = ie);
|
|
@@ -1388,13 +1388,13 @@ function Mn(e) {
|
|
|
1388
1388
|
// src/components/device/DevicePhoneViewport.tsx
|
|
1389
1389
|
var Nn = () => import("./phoneViewer-C14BbhhU.js");
|
|
1390
1390
|
function Pn(e) {
|
|
1391
|
-
let t = qe(27), n =
|
|
1391
|
+
let t = qe(27), n = s(), r = Ge(null), i = Ge(null), a = Ge(e.screen), o = Ge(e.foldAngle), c = Ge(e.profile), l = Ge(e.model), u = Ge(e.accessory), { source: d, onFrameListener: f, client: p, onInputCancel: m, onResetReady: h, onUnavailable: g } = e, _, v;
|
|
1392
1392
|
t[0] === e.foldAngle ? (_ = t[1], v = t[2]) : (_ = () => {
|
|
1393
1393
|
o.current = e.foldAngle, r.current?.setFoldAngle(e.foldAngle);
|
|
1394
1394
|
}, v = [e.foldAngle], t[0] = e.foldAngle, t[1] = _, t[2] = v), Ue(_, v);
|
|
1395
1395
|
let y, b;
|
|
1396
1396
|
t[3] !== e.accessory || t[4] !== e.model || t[5] !== e.profile || t[6] !== e.screen ? (y = () => {
|
|
1397
|
-
a.current = e.screen,
|
|
1397
|
+
a.current = e.screen, c.current = e.profile, l.current = e.model, u.current = e.accessory, i.current?.end(), r.current?.setModel(e.model), r.current?.setAccessory(e.accessory), r.current?.setScreen(e.screen, e.profile);
|
|
1398
1398
|
}, b = [
|
|
1399
1399
|
e.screen,
|
|
1400
1400
|
e.profile,
|
|
@@ -1412,9 +1412,9 @@ function Pn(e) {
|
|
|
1412
1412
|
source: d,
|
|
1413
1413
|
onUnavailable: g,
|
|
1414
1414
|
onModelError: In,
|
|
1415
|
-
profile:
|
|
1416
|
-
model:
|
|
1417
|
-
accessory:
|
|
1415
|
+
profile: c.current,
|
|
1416
|
+
model: l.current,
|
|
1417
|
+
accessory: u.current,
|
|
1418
1418
|
foldAngle: o.current
|
|
1419
1419
|
});
|
|
1420
1420
|
}),
|
|
@@ -1474,7 +1474,7 @@ function In(e) {
|
|
|
1474
1474
|
}
|
|
1475
1475
|
// src/components/device/DeviceLoadingView.tsx
|
|
1476
1476
|
function Ln(e) {
|
|
1477
|
-
let t = qe(27), n =
|
|
1477
|
+
let t = qe(27), n = s(), r = e.error ? "alert" : "status", i;
|
|
1478
1478
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q("div", {
|
|
1479
1479
|
className: "grid size-12 place-items-center rounded-xl border bg-muted/30",
|
|
1480
1480
|
children: /* @__PURE__ */ Q(we, { className: "size-6 text-muted-foreground" })
|
|
@@ -1489,20 +1489,20 @@ function Ln(e) {
|
|
|
1489
1489
|
className: "text-xs text-muted-foreground",
|
|
1490
1490
|
children: e.description
|
|
1491
1491
|
}) : null, t[3] = e.description, t[4] = o);
|
|
1492
|
-
let
|
|
1493
|
-
t[5] !== a || t[6] !== o ? (
|
|
1492
|
+
let c;
|
|
1493
|
+
t[5] !== a || t[6] !== o ? (c = /* @__PURE__ */ $("div", {
|
|
1494
1494
|
className: "space-y-1",
|
|
1495
1495
|
children: [a, o]
|
|
1496
|
-
}), t[5] = a, t[6] = o, t[7] =
|
|
1497
|
-
let
|
|
1498
|
-
t[8] === e.error ?
|
|
1496
|
+
}), t[5] = a, t[6] = o, t[7] = c) : c = t[7];
|
|
1497
|
+
let l;
|
|
1498
|
+
t[8] === e.error ? l = t[9] : (l = e.error ? null : /* @__PURE__ */ Q(u, { size: "xs" }), t[8] = e.error, t[9] = l);
|
|
1499
1499
|
let d;
|
|
1500
1500
|
t[10] === e.message ? d = t[11] : (d = /* @__PURE__ */ Q("span", { children: e.message }), t[10] = e.message, t[11] = d);
|
|
1501
1501
|
let f;
|
|
1502
|
-
t[12] !==
|
|
1502
|
+
t[12] !== l || t[13] !== d ? (f = /* @__PURE__ */ $("div", {
|
|
1503
1503
|
className: "flex items-center gap-2 text-xs text-muted-foreground",
|
|
1504
|
-
children: [
|
|
1505
|
-
}), t[12] =
|
|
1504
|
+
children: [l, d]
|
|
1505
|
+
}), t[12] = l, t[13] = d, t[14] = f) : f = t[14];
|
|
1506
1506
|
let p;
|
|
1507
1507
|
t[15] !== n || t[16] !== e.error || t[17] !== e.stage ? (p = e.error ? null : /* @__PURE__ */ $("div", {
|
|
1508
1508
|
className: "flex w-24 gap-1",
|
|
@@ -1510,16 +1510,16 @@ function Ln(e) {
|
|
|
1510
1510
|
children: [/* @__PURE__ */ Q("span", { className: "h-1 flex-1 rounded-full bg-foreground/60" }), /* @__PURE__ */ Q("span", { className: `h-1 flex-1 rounded-full ${e.stage === "stream" ? "bg-foreground/60" : "bg-muted"}` })]
|
|
1511
1511
|
}), t[15] = n, t[16] = e.error, t[17] = e.stage, t[18] = p) : p = t[18];
|
|
1512
1512
|
let m;
|
|
1513
|
-
t[19] !== e.children || t[20] !==
|
|
1513
|
+
t[19] !== e.children || t[20] !== c || t[21] !== f || t[22] !== p ? (m = /* @__PURE__ */ $("div", {
|
|
1514
1514
|
className: "flex max-w-sm flex-col items-center gap-3 text-center",
|
|
1515
1515
|
children: [
|
|
1516
1516
|
i,
|
|
1517
|
-
|
|
1517
|
+
c,
|
|
1518
1518
|
f,
|
|
1519
1519
|
e.children,
|
|
1520
1520
|
p
|
|
1521
1521
|
]
|
|
1522
|
-
}), t[19] = e.children, t[20] =
|
|
1522
|
+
}), t[19] = e.children, t[20] = c, t[21] = f, t[22] = p, t[23] = m) : m = t[23];
|
|
1523
1523
|
let h;
|
|
1524
1524
|
return t[24] !== r || t[25] !== m ? (h = /* @__PURE__ */ Q("div", {
|
|
1525
1525
|
role: r,
|
|
@@ -2318,7 +2318,7 @@ var Fr = {
|
|
|
2318
2318
|
error: null
|
|
2319
2319
|
},
|
|
2320
2320
|
phoneUnavailable: !1
|
|
2321
|
-
}, Ir = (e, t, n) => `${e}\u0000${t}\u0000${n}`, Lr =
|
|
2321
|
+
}, Ir = (e, t, n) => `${e}\u0000${t}\u0000${n}`, Lr = m((e) => d(null).pipe(y(`device-stream-screen:${e}`))), Rr = m((e) => d((t) => {
|
|
2322
2322
|
let n = Lr(e.viewId), r = document.createElement("canvas");
|
|
2323
2323
|
r.style.display = "block", r.style.width = "100%", r.style.height = "100%";
|
|
2324
2324
|
let i = null, o = null, s = Fr, c, l = (e) => {
|
|
@@ -2375,7 +2375,7 @@ var Fr = {
|
|
|
2375
2375
|
}, t.addFinalizer(() => {
|
|
2376
2376
|
u.stop(), t.registry.set(n, null);
|
|
2377
2377
|
}), u.start(), c;
|
|
2378
|
-
}).pipe(
|
|
2378
|
+
}).pipe(y(`device-stream:${e.platform}:${e.deviceId}`))), zr = d(null).pipe(y("device-stream:none")), Br = [], Vr = d(k()).pipe(y("device-ax-elements:none")), Hr = 56;
|
|
2379
2379
|
function Ur(e, t) {
|
|
2380
2380
|
if (!t) return e === "ios" ? 9 / 19.5 : 9 / 20;
|
|
2381
2381
|
let n = t.orientation === "landscape_left" || t.orientation === "landscape_right";
|
|
@@ -2393,37 +2393,37 @@ function Wr(e, t) {
|
|
|
2393
2393
|
function Gr(e) {
|
|
2394
2394
|
let t = qe(180), n = e.deviceName ?? "", r;
|
|
2395
2395
|
t[0] !== e.platform || t[1] !== n ? (r = Pt(e.platform, n), t[0] = e.platform, t[1] = n, t[2] = r) : r = t[2];
|
|
2396
|
-
let i = r, a = i?.id === "iphone-duo", o =
|
|
2396
|
+
let i = r, a = i?.id === "iphone-duo", o = s(), [c, u] = Ke("phone"), [d, f] = Ke(!1), p = Ge(null), m;
|
|
2397
2397
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (m = () => p.current?.(), t[3] = m) : m = t[3];
|
|
2398
|
-
let
|
|
2399
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2400
|
-
|
|
2401
|
-
}, t[4] =
|
|
2402
|
-
let
|
|
2403
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
2398
|
+
let g = m, v = Ge(null), y;
|
|
2399
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (y = (e) => {
|
|
2400
|
+
v.current = e;
|
|
2401
|
+
}, t[4] = y) : y = t[4];
|
|
2402
|
+
let x = y, S;
|
|
2403
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (S = (e) => {
|
|
2404
2404
|
p.current = e;
|
|
2405
|
-
}, t[5] =
|
|
2406
|
-
let
|
|
2407
|
-
t[6] !==
|
|
2405
|
+
}, t[5] = S) : S = t[5];
|
|
2406
|
+
let C = S, w = et(e.environmentId, e.hostId), T = We(), E = e.viewId ?? T, O;
|
|
2407
|
+
t[6] !== w || t[7] !== e.deviceId || t[8] !== e.environmentId || t[9] !== e.hostId || t[10] !== e.platform || t[11] !== e.serveSimOnly || t[12] !== e.visible || t[13] !== E ? (O = w && e.visible ? Rr({
|
|
2408
2408
|
environmentId: e.environmentId,
|
|
2409
2409
|
hostId: e.hostId,
|
|
2410
2410
|
platform: e.platform,
|
|
2411
2411
|
deviceId: e.deviceId,
|
|
2412
|
-
access:
|
|
2412
|
+
access: w,
|
|
2413
2413
|
serveSimOnly: e.serveSimOnly === !0,
|
|
2414
|
-
viewId:
|
|
2415
|
-
}) : zr, t[6] =
|
|
2416
|
-
let
|
|
2414
|
+
viewId: E
|
|
2415
|
+
}) : zr, t[6] = w, t[7] = e.deviceId, t[8] = e.environmentId, t[9] = e.hostId, t[10] = e.platform, t[11] = e.serveSimOnly, t[12] = e.visible, t[13] = E, t[14] = O) : O = t[14];
|
|
2416
|
+
let k = l(O), A = k?.stream ?? null, j = k?.canvas ?? null, { status: M, detail: N, hasFrame: P, screen: F, mjpegUrl: I, mjpegGeneration: L, duoControl: R } = k?.state ?? Fr, z = k?.state.input ?? Fr.input, B = k?.state.phoneUnavailable ?? !1, V;
|
|
2417
2417
|
t[15] !== e.deviceId || t[16] !== e.environmentId || t[17] !== e.hostId ? (V = Dn(Ir(e.environmentId, e.hostId, e.deviceId)), t[15] = e.deviceId, t[16] = e.environmentId, t[17] = e.hostId, t[18] = V) : V = t[18];
|
|
2418
|
-
let H =
|
|
2419
|
-
t[19] ===
|
|
2420
|
-
if (
|
|
2421
|
-
}, t[19] =
|
|
2418
|
+
let H = l(V).angle, U;
|
|
2419
|
+
t[19] === A ? U = t[20] : (U = (e) => {
|
|
2420
|
+
if (A && e) return A.setMjpegImage(e), () => A.setMjpegImage(null);
|
|
2421
|
+
}, t[19] = A, t[20] = U);
|
|
2422
2422
|
let W = U, G;
|
|
2423
|
-
t[21] ===
|
|
2424
|
-
if (e &&
|
|
2425
|
-
}, t[21] =
|
|
2426
|
-
let K = G, ee = Ur(e.platform, F), te =
|
|
2423
|
+
t[21] === j ? G = t[22] : (G = (e) => {
|
|
2424
|
+
if (e && j) return e.append(j), () => j.remove();
|
|
2425
|
+
}, t[21] = j, t[22] = G);
|
|
2426
|
+
let K = G, ee = Ur(e.platform, F), te = M === "connecting" && P && z.connected && F !== null, q = e.allowPhoneView && (M === "streaming" || te) && e.visible && c === "phone" && !B && !I && !e.axOverlay && (!a || F?.supportsHingeAngle === !0), J = e.renderControls && !q ? Hr : 0, Y;
|
|
2427
2427
|
t[23] === Symbol.for("react.memo_cache_sentinel") ? (Y = {
|
|
2428
2428
|
width: 0,
|
|
2429
2429
|
height: 0
|
|
@@ -2455,37 +2455,37 @@ function Gr(e) {
|
|
|
2455
2455
|
...se ? { transform: `rotate(${se}deg)` } : {}
|
|
2456
2456
|
}, t[28] = X.height, t[29] = X.width, t[30] = se, t[31] = ce, t[32] = le) : le = t[32];
|
|
2457
2457
|
let ue = le, de;
|
|
2458
|
-
t[33] !==
|
|
2459
|
-
access:
|
|
2458
|
+
t[33] !== w || t[34] !== e.axOverlay || t[35] !== e.deviceId || t[36] !== e.platform || t[37] !== e.visible ? (de = e.axOverlay && w && e.visible ? Tn({
|
|
2459
|
+
access: w,
|
|
2460
2460
|
platform: e.platform,
|
|
2461
2461
|
deviceId: e.deviceId
|
|
2462
|
-
}) : Vr, t[33] =
|
|
2463
|
-
let fe =
|
|
2464
|
-
t[39] !==
|
|
2465
|
-
if (
|
|
2462
|
+
}) : Vr, t[33] = w, t[34] = e.axOverlay, t[35] = e.deviceId, t[36] = e.platform, t[37] = e.visible, t[38] = de) : de = t[38];
|
|
2463
|
+
let fe = l(de), pe = h(fe, Jr), me = Ge(null), he, Z;
|
|
2464
|
+
t[39] !== A || t[40] !== z.connected ? (he = () => {
|
|
2465
|
+
if (A && z.connected) return () => {
|
|
2466
2466
|
me.current = null;
|
|
2467
2467
|
};
|
|
2468
|
-
}, Z = [
|
|
2468
|
+
}, Z = [A, z.connected], t[39] = A, t[40] = z.connected, t[41] = he, t[42] = Z) : (he = t[41], Z = t[42]), Ue(he, Z);
|
|
2469
2469
|
let ge = qr, _e;
|
|
2470
|
-
t[43] ===
|
|
2470
|
+
t[43] === A ? _e = t[44] : (_e = (e) => {
|
|
2471
2471
|
let t = me.current;
|
|
2472
2472
|
if (t?.id !== e.pointerId) return;
|
|
2473
2473
|
me.current = null;
|
|
2474
2474
|
let { x: n, y: r } = e.type === "lostpointercapture" ? t : ge(e);
|
|
2475
|
-
|
|
2476
|
-
}, t[43] =
|
|
2475
|
+
A?.sendTouch("end", n, r);
|
|
2476
|
+
}, t[43] = A, t[44] = _e);
|
|
2477
2477
|
let ve = _e, ye;
|
|
2478
2478
|
t[45] !== o || t[46] !== a || t[47] !== I || t[48] !== B || t[49] !== e.axOverlay || t[50] !== F?.supportsHingeAngle ? (ye = a && !F?.supportsHingeAngle ? o("iPhone Duo 3D requires Device Hub {version} or newer", { version: "0.11.0" }) : B ? o("3D is unavailable on this browser") : I ? o("3D requires the H.264 stream") : e.axOverlay ? o("Turn off accessibility frames to use 3D") : null, t[45] = o, t[46] = a, t[47] = I, t[48] = B, t[49] = e.axOverlay, t[50] = F?.supportsHingeAngle, t[51] = ye) : ye = t[51];
|
|
2479
2479
|
let be = ye, xe = e.deviceName ?? "", Se;
|
|
2480
2480
|
t[52] !== e.platform || t[53] !== xe ? (Se = It(e.platform, xe), t[52] = e.platform, t[53] = xe, t[54] = Se) : Se = t[54];
|
|
2481
2481
|
let Ce = Se, we;
|
|
2482
|
-
t[55] !==
|
|
2482
|
+
t[55] !== A || t[56] !== a || t[57] !== d || t[58] !== F?.orientation ? (we = () => {
|
|
2483
2483
|
if (!a) {
|
|
2484
2484
|
let e = d ? "landscape_right" : "portrait";
|
|
2485
|
-
F?.orientation !== e &&
|
|
2485
|
+
F?.orientation !== e && A?.setOrientation(e);
|
|
2486
2486
|
}
|
|
2487
|
-
|
|
2488
|
-
}, t[55] =
|
|
2487
|
+
v.current?.();
|
|
2488
|
+
}, t[55] = A, t[56] = a, t[57] = d, t[58] = F?.orientation, t[59] = we) : we = t[59];
|
|
2489
2489
|
let Te = we, Ee = e.platform, De = e.deviceName ?? "", Oe = Math.min(ee, 1 / ee), ke;
|
|
2490
2490
|
t[60] !== e.platform || t[61] !== De || t[62] !== Oe ? (ke = Le({
|
|
2491
2491
|
platform: Ee,
|
|
@@ -2493,19 +2493,19 @@ function Gr(e) {
|
|
|
2493
2493
|
portraitAspect: Oe
|
|
2494
2494
|
}), t[60] = e.platform, t[61] = De, t[62] = Oe, t[63] = ke) : ke = t[63];
|
|
2495
2495
|
let Ae = ke, Me = e.allowPhoneView ? "bg-background" : "bg-black/90", Ne;
|
|
2496
|
-
t[64] === Me ? Ne = t[65] : (Ne =
|
|
2496
|
+
t[64] === Me ? Ne = t[65] : (Ne = D("relative flex size-full min-h-0 min-w-0", Me), t[64] = Me, t[65] = Ne);
|
|
2497
2497
|
let Pe;
|
|
2498
|
-
t[66] !==
|
|
2498
|
+
t[66] !== w || t[67] !== A || t[68] !== R || t[69] !== z.connected || t[70] !== a || t[71] !== d || t[72] !== Ce || t[73] !== be || t[74] !== e.deviceId || t[75] !== e.environmentId || t[76] !== e.hostId || t[77] !== e.platform || t[78] !== e.renderControls || t[79] !== e.visible || t[80] !== Te || t[81] !== F || t[82] !== q || t[83] !== M ? (Pe = e.renderControls ? /* @__PURE__ */ Q(Yr, {
|
|
2499
2499
|
renderControls: e.renderControls,
|
|
2500
2500
|
view: {
|
|
2501
2501
|
phone: !!q,
|
|
2502
|
-
streaming:
|
|
2502
|
+
streaming: M === "streaming",
|
|
2503
2503
|
phoneUnavailableReason: be,
|
|
2504
|
-
foldingControls: e.platform === "android" &&
|
|
2505
|
-
access:
|
|
2504
|
+
foldingControls: e.platform === "android" && w ? /* @__PURE__ */ Q(Mn, {
|
|
2505
|
+
access: w,
|
|
2506
2506
|
deviceId: e.deviceId,
|
|
2507
2507
|
visible: e.visible,
|
|
2508
|
-
enabled:
|
|
2508
|
+
enabled: M === "streaming",
|
|
2509
2509
|
screenWidth: F?.width,
|
|
2510
2510
|
screenHeight: F?.height,
|
|
2511
2511
|
deviceKey: Ir(e.environmentId, e.hostId, e.deviceId),
|
|
@@ -2515,46 +2515,46 @@ function Gr(e) {
|
|
|
2515
2515
|
state: R,
|
|
2516
2516
|
enabled: z.connected,
|
|
2517
2517
|
onCommand: (e) => {
|
|
2518
|
-
|
|
2518
|
+
g(), A?.controlDuo(e);
|
|
2519
2519
|
}
|
|
2520
2520
|
}) : null,
|
|
2521
2521
|
keyboard: q && Ce ? {
|
|
2522
2522
|
attached: d,
|
|
2523
2523
|
toggle: () => {
|
|
2524
|
-
|
|
2524
|
+
g(), !d && F?.orientation !== "landscape_right" && A?.setOrientation("landscape_right"), f(!d);
|
|
2525
2525
|
}
|
|
2526
2526
|
} : null,
|
|
2527
|
-
showPhone: () =>
|
|
2528
|
-
showFlat: () =>
|
|
2529
|
-
handle:
|
|
2530
|
-
pressButton:
|
|
2531
|
-
rotate:
|
|
2527
|
+
showPhone: () => u("phone"),
|
|
2528
|
+
showFlat: () => u("flat"),
|
|
2529
|
+
handle: A ? {
|
|
2530
|
+
pressButton: A.pressButton,
|
|
2531
|
+
rotate: A.rotate,
|
|
2532
2532
|
inputConnected: z.connected
|
|
2533
2533
|
} : null
|
|
2534
2534
|
},
|
|
2535
2535
|
onResetView: Te
|
|
2536
|
-
}) : null, t[66] =
|
|
2536
|
+
}) : null, t[66] = w, t[67] = A, t[68] = R, t[69] = z.connected, t[70] = a, t[71] = d, t[72] = Ce, t[73] = be, t[74] = e.deviceId, t[75] = e.environmentId, t[76] = e.hostId, t[77] = e.platform, t[78] = e.renderControls, t[79] = e.visible, t[80] = Te, t[81] = F, t[82] = q, t[83] = M, t[84] = Pe) : Pe = t[84];
|
|
2537
2537
|
let Fe = J && "pr-14", Ie;
|
|
2538
|
-
t[85] === Fe ? Ie = t[86] : (Ie =
|
|
2538
|
+
t[85] === Fe ? Ie = t[86] : (Ie = D("relative flex min-h-0 min-w-0 flex-1 items-center justify-center overflow-hidden outline-none", "after:pointer-events-none after:absolute after:inset-0 after:z-10 focus-visible:after:ring-2 focus-visible:after:ring-inset focus-visible:after:ring-ring", Fe), t[85] = Fe, t[86] = Ie);
|
|
2539
2539
|
let Re;
|
|
2540
2540
|
t[87] !== o || t[88] !== e.platform ? (Re = e.platform === "ios" ? o("iOS Simulator screen") : o("Android Emulator screen"), t[87] = o, t[88] = e.platform, t[89] = Re) : Re = t[89];
|
|
2541
2541
|
let ze, Be, Ve;
|
|
2542
|
-
t[90] ===
|
|
2543
|
-
e.target !== e.currentTarget || e.metaKey && !["r", "R"].includes(e.key) || e.ctrlKey && (e.key === "v" || e.key === "V") || e.shiftKey && e.key === "Insert" || (e.preventDefault(),
|
|
2542
|
+
t[90] === A ? (ze = t[91], Be = t[92], Ve = t[93]) : (ze = (e) => {
|
|
2543
|
+
e.target !== e.currentTarget || e.metaKey && !["r", "R"].includes(e.key) || e.ctrlKey && (e.key === "v" || e.key === "V") || e.shiftKey && e.key === "Insert" || (e.preventDefault(), A?.sendKey(e.nativeEvent, "down"));
|
|
2544
2544
|
}, Be = (e) => {
|
|
2545
|
-
e.target === e.currentTarget && (e.preventDefault(),
|
|
2545
|
+
e.target === e.currentTarget && (e.preventDefault(), A?.sendText(e.clipboardData.getData("text/plain")));
|
|
2546
2546
|
}, Ve = (e) => {
|
|
2547
|
-
e.target === e.currentTarget &&
|
|
2548
|
-
}, t[90] =
|
|
2547
|
+
e.target === e.currentTarget && A?.sendKey(e.nativeEvent, "up");
|
|
2548
|
+
}, t[90] = A, t[91] = ze, t[92] = Be, t[93] = Ve);
|
|
2549
2549
|
let He = q && "invisible pointer-events-none", Je;
|
|
2550
|
-
t[94] === He ? Je = t[95] : (Je =
|
|
2550
|
+
t[94] === He ? Je = t[95] : (Je = D("relative select-none", He), t[94] = He, t[95] = Je);
|
|
2551
2551
|
let Ye;
|
|
2552
2552
|
t[96] !== X.height || t[97] !== X.width ? (Ye = {
|
|
2553
2553
|
width: X.width,
|
|
2554
2554
|
height: X.height
|
|
2555
2555
|
}, t[96] = X.height, t[97] = X.width, t[98] = Ye) : Ye = t[98];
|
|
2556
2556
|
let Xe;
|
|
2557
|
-
t[99] !==
|
|
2557
|
+
t[99] !== A || t[100] !== z.connected ? (Xe = (e) => {
|
|
2558
2558
|
if (e.button !== 0 || !z.connected || me.current !== null) return;
|
|
2559
2559
|
e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.parentElement?.focus();
|
|
2560
2560
|
let { x: t, y: n } = ge(e);
|
|
@@ -2562,20 +2562,20 @@ function Gr(e) {
|
|
|
2562
2562
|
id: e.pointerId,
|
|
2563
2563
|
x: t,
|
|
2564
2564
|
y: n
|
|
2565
|
-
},
|
|
2566
|
-
}, t[99] =
|
|
2565
|
+
}, A?.sendTouch("begin", t, n);
|
|
2566
|
+
}, t[99] = A, t[100] = z.connected, t[101] = Xe) : Xe = t[101];
|
|
2567
2567
|
let Ze;
|
|
2568
|
-
t[102] ===
|
|
2568
|
+
t[102] === A ? Ze = t[103] : (Ze = (e) => {
|
|
2569
2569
|
if (me.current?.id !== e.pointerId) return;
|
|
2570
2570
|
let { x: t, y: n } = ge(e);
|
|
2571
2571
|
me.current = {
|
|
2572
2572
|
id: e.pointerId,
|
|
2573
2573
|
x: t,
|
|
2574
2574
|
y: n
|
|
2575
|
-
},
|
|
2576
|
-
}, t[102] =
|
|
2575
|
+
}, A?.sendTouch("move", t, n);
|
|
2576
|
+
}, t[102] = A, t[103] = Ze);
|
|
2577
2577
|
let Qe = I && "hidden", $e;
|
|
2578
|
-
t[104] === Qe ? $e = t[105] : ($e =
|
|
2578
|
+
t[104] === Qe ? $e = t[105] : ($e = D("absolute top-0 left-0", Qe), t[104] = Qe, t[105] = $e);
|
|
2579
2579
|
let tt;
|
|
2580
2580
|
t[106] !== ue || t[107] !== K || t[108] !== $e ? (tt = /* @__PURE__ */ Q("div", {
|
|
2581
2581
|
ref: K,
|
|
@@ -2583,13 +2583,13 @@ function Gr(e) {
|
|
|
2583
2583
|
style: ue
|
|
2584
2584
|
}), t[106] = ue, t[107] = K, t[108] = $e, t[109] = tt) : tt = t[109];
|
|
2585
2585
|
let nt;
|
|
2586
|
-
t[110] !==
|
|
2586
|
+
t[110] !== w || t[111] !== W || t[112] !== ue || t[113] !== L || t[114] !== I || t[115] !== e.visible ? (nt = e.visible && w && I ? /* @__PURE__ */ Q("img", {
|
|
2587
2587
|
ref: W,
|
|
2588
2588
|
alt: "",
|
|
2589
2589
|
draggable: !1,
|
|
2590
2590
|
className: "absolute top-0 left-0 object-contain",
|
|
2591
2591
|
style: ue
|
|
2592
|
-
}, L) : null, t[110] =
|
|
2592
|
+
}, L) : null, t[110] = w, t[111] = W, t[112] = ue, t[113] = L, t[114] = I, t[115] = e.visible, t[116] = nt) : nt = t[116];
|
|
2593
2593
|
let it = pe.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
2594
2594
|
className: "pointer-events-none absolute inset-0",
|
|
2595
2595
|
"aria-hidden": !0,
|
|
@@ -2610,87 +2610,87 @@ function Gr(e) {
|
|
|
2610
2610
|
]
|
|
2611
2611
|
}), t[117] = ve, t[118] = Je, t[119] = Ye, t[120] = Xe, t[121] = Ze, t[122] = tt, t[123] = nt, t[124] = it, t[125] = at) : at = t[125];
|
|
2612
2612
|
let ot;
|
|
2613
|
-
t[126] !== R || t[127] !== H || t[128] !== a || t[129] !== d || t[130] !== Ce || t[131] !== i || t[132] !== Ae || t[133] !== e.deviceName || t[134] !== e.platform || t[135] !== F || t[136] !==
|
|
2614
|
-
onFrameListener:
|
|
2615
|
-
onControlRejectedListener:
|
|
2613
|
+
t[126] !== R || t[127] !== H || t[128] !== a || t[129] !== d || t[130] !== Ce || t[131] !== i || t[132] !== Ae || t[133] !== e.deviceName || t[134] !== e.platform || t[135] !== F || t[136] !== k || t[137] !== q ? (ot = k && q && a && i ? /* @__PURE__ */ Q(Wt, {
|
|
2614
|
+
onFrameListener: k.setFrameListener,
|
|
2615
|
+
onControlRejectedListener: k.setControlRejectedListener,
|
|
2616
2616
|
model: i,
|
|
2617
2617
|
hingePreview: R.requested?.control === "angle" ? R.requested.value : null,
|
|
2618
|
-
source:
|
|
2619
|
-
client:
|
|
2620
|
-
onInputCancel:
|
|
2621
|
-
onResetReady:
|
|
2618
|
+
source: k.canvas,
|
|
2619
|
+
client: k.stream,
|
|
2620
|
+
onInputCancel: C,
|
|
2621
|
+
onResetReady: x,
|
|
2622
2622
|
screen: F,
|
|
2623
|
-
onUnavailable:
|
|
2624
|
-
}) :
|
|
2623
|
+
onUnavailable: k.markPhoneUnavailable
|
|
2624
|
+
}) : k && q ? /* @__PURE__ */ Q(Pn, {
|
|
2625
2625
|
profile: Ae,
|
|
2626
2626
|
model: Pt(e.platform, e.deviceName ?? ""),
|
|
2627
2627
|
accessory: d ? Ce : null,
|
|
2628
|
-
source:
|
|
2629
|
-
onFrameListener:
|
|
2630
|
-
client:
|
|
2631
|
-
onInputCancel:
|
|
2632
|
-
onResetReady:
|
|
2628
|
+
source: k.canvas,
|
|
2629
|
+
onFrameListener: k.setFrameListener,
|
|
2630
|
+
client: k.stream,
|
|
2631
|
+
onInputCancel: C,
|
|
2632
|
+
onResetReady: x,
|
|
2633
2633
|
screen: F,
|
|
2634
2634
|
foldAngle: H,
|
|
2635
|
-
onUnavailable:
|
|
2636
|
-
}) : null, t[126] = R, t[127] = H, t[128] = a, t[129] = d, t[130] = Ce, t[131] = i, t[132] = Ae, t[133] = e.deviceName, t[134] = e.platform, t[135] = F, t[136] =
|
|
2635
|
+
onUnavailable: k.markPhoneUnavailable
|
|
2636
|
+
}) : null, t[126] = R, t[127] = H, t[128] = a, t[129] = d, t[130] = Ce, t[131] = i, t[132] = Ae, t[133] = e.deviceName, t[134] = e.platform, t[135] = F, t[136] = k, t[137] = q, t[138] = ot) : ot = t[138];
|
|
2637
2637
|
let st;
|
|
2638
|
-
t[139] !== o || t[140] !== be || t[141] !== e.allowPhoneView || t[142] !== e.renderControls || t[143] !== q || t[144] !==
|
|
2638
|
+
t[139] !== o || t[140] !== be || t[141] !== e.allowPhoneView || t[142] !== e.renderControls || t[143] !== q || t[144] !== M ? (st = e.allowPhoneView && !e.renderControls && M === "streaming" ? /* @__PURE__ */ $("div", {
|
|
2639
2639
|
className: "absolute top-3 left-3 flex gap-1 rounded-lg border border-border/50 bg-background/90 p-1 shadow-sm",
|
|
2640
|
-
children: [/* @__PURE__ */ Q(
|
|
2640
|
+
children: [/* @__PURE__ */ Q(b, {
|
|
2641
2641
|
variant: q ? "secondary" : "ghost",
|
|
2642
2642
|
size: "xs",
|
|
2643
2643
|
"aria-pressed": !!q,
|
|
2644
2644
|
disabled: !!be,
|
|
2645
2645
|
title: be ?? o("Show 3D phone"),
|
|
2646
|
-
onClick: () =>
|
|
2646
|
+
onClick: () => u("phone"),
|
|
2647
2647
|
children: "3D"
|
|
2648
|
-
}), /* @__PURE__ */ Q(
|
|
2648
|
+
}), /* @__PURE__ */ Q(b, {
|
|
2649
2649
|
variant: q ? "ghost" : "secondary",
|
|
2650
2650
|
size: "xs",
|
|
2651
2651
|
"aria-pressed": !q,
|
|
2652
|
-
onClick: () =>
|
|
2653
|
-
children: /* @__PURE__ */ Q(
|
|
2652
|
+
onClick: () => u("flat"),
|
|
2653
|
+
children: /* @__PURE__ */ Q(_, {
|
|
2654
2654
|
context: "flat device view",
|
|
2655
2655
|
children: "Flat"
|
|
2656
2656
|
})
|
|
2657
2657
|
})]
|
|
2658
|
-
}) : null, t[139] = o, t[140] = be, t[141] = e.allowPhoneView, t[142] = e.renderControls, t[143] = q, t[144] =
|
|
2658
|
+
}) : null, t[139] = o, t[140] = be, t[141] = e.allowPhoneView, t[142] = e.renderControls, t[143] = q, t[144] = M, t[145] = st) : st = t[145];
|
|
2659
2659
|
let ct;
|
|
2660
|
-
t[146] !== o || t[147] !== z.connected || t[148] !== z.detail || t[149] !==
|
|
2660
|
+
t[146] !== o || t[147] !== z.connected || t[148] !== z.detail || t[149] !== M ? (ct = M === "streaming" && !z.connected ? /* @__PURE__ */ Q("div", {
|
|
2661
2661
|
className: "pointer-events-none absolute inset-x-0 bottom-0 flex justify-center p-2",
|
|
2662
2662
|
children: /* @__PURE__ */ Q("span", {
|
|
2663
2663
|
className: "rounded-md bg-background/85 px-2 py-1 text-xs text-muted-foreground",
|
|
2664
2664
|
children: z.detail ? o("Input disconnected ({detail}), reconnecting…", { detail: z.detail }) : o("Input disconnected, reconnecting…")
|
|
2665
2665
|
})
|
|
2666
|
-
}) : null, t[146] = o, t[147] = z.connected, t[148] = z.detail, t[149] =
|
|
2666
|
+
}) : null, t[146] = o, t[147] = z.connected, t[148] = z.detail, t[149] = M, t[150] = ct) : ct = t[150];
|
|
2667
2667
|
let lt;
|
|
2668
2668
|
t[151] !== te || t[152] !== q ? (lt = te && q ? /* @__PURE__ */ Q("div", {
|
|
2669
2669
|
className: "pointer-events-none absolute inset-x-0 bottom-0 flex justify-center p-2 transition-opacity delay-2000 duration-0 starting:opacity-0",
|
|
2670
2670
|
children: /* @__PURE__ */ Q("span", {
|
|
2671
2671
|
className: "rounded-md bg-background/85 px-2 py-1 text-xs text-muted-foreground",
|
|
2672
|
-
children: /* @__PURE__ */ Q(
|
|
2672
|
+
children: /* @__PURE__ */ Q(_, { children: "Waiting for device video…" })
|
|
2673
2673
|
})
|
|
2674
2674
|
}) : null, t[151] = te, t[152] = q, t[153] = lt) : lt = t[153];
|
|
2675
2675
|
let ut;
|
|
2676
|
-
t[154] !== N || t[155] !== o || t[156] !== e.deviceDescription || t[157] !== e.deviceName || t[158] !== te || t[159] !==
|
|
2676
|
+
t[154] !== N || t[155] !== o || t[156] !== e.deviceDescription || t[157] !== e.deviceName || t[158] !== te || t[159] !== k || t[160] !== q || t[161] !== M ? (ut = M !== "streaming" && !(te && q) ? /* @__PURE__ */ Q("div", {
|
|
2677
2677
|
className: "absolute inset-0",
|
|
2678
2678
|
children: /* @__PURE__ */ Q(Ln, {
|
|
2679
2679
|
name: e.deviceName ?? o("Device"),
|
|
2680
2680
|
description: e.deviceDescription ?? "",
|
|
2681
2681
|
stage: "stream",
|
|
2682
|
-
message:
|
|
2683
|
-
error:
|
|
2684
|
-
children:
|
|
2682
|
+
message: M === "error" ? N ?? o("Stream failed.") : o("Connecting video…"),
|
|
2683
|
+
error: M === "error",
|
|
2684
|
+
children: M === "error" ? /* @__PURE__ */ Q(b, {
|
|
2685
2685
|
size: "sm",
|
|
2686
2686
|
variant: "outline",
|
|
2687
2687
|
onClick: () => {
|
|
2688
|
-
|
|
2688
|
+
k?.reconnect();
|
|
2689
2689
|
},
|
|
2690
|
-
children: /* @__PURE__ */ Q(
|
|
2690
|
+
children: /* @__PURE__ */ Q(_, { children: "Reconnect" })
|
|
2691
2691
|
}) : null
|
|
2692
2692
|
})
|
|
2693
|
-
}) : null, t[154] = N, t[155] = o, t[156] = e.deviceDescription, t[157] = e.deviceName, t[158] = te, t[159] =
|
|
2693
|
+
}) : null, t[154] = N, t[155] = o, t[156] = e.deviceDescription, t[157] = e.deviceName, t[158] = te, t[159] = k, t[160] = q, t[161] = M, t[162] = ut) : ut = t[162];
|
|
2694
2694
|
let dt;
|
|
2695
2695
|
t[163] !== ae || t[164] !== Ie || t[165] !== Re || t[166] !== ze || t[167] !== Be || t[168] !== Ve || t[169] !== at || t[170] !== ot || t[171] !== st || t[172] !== ct || t[173] !== lt || t[174] !== ut ? (dt = /* @__PURE__ */ $("div", {
|
|
2696
2696
|
ref: ae,
|