@hanzo/dev 4.1.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/git.d.ts +32 -4
- package/dist/builder/api/git.js +74 -4
- package/dist/builder/api/github.d.ts +54 -0
- package/dist/builder/api/github.js +103 -1
- 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/forge.js +79 -10
- package/dist/builder/github-sync.d.ts +70 -0
- package/dist/builder/github-sync.js +435 -0
- 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/builder/project.js +17 -4
- package/dist/builder/sync.js +27 -4
- 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,7 +1,7 @@
|
|
|
1
1
|
import { c as e, n as t } from "./messages-yqmY7G5x.js";
|
|
2
|
-
import { Br as n,
|
|
3
|
-
import { bd as w, kd as T, nf as E } from "./keybindings-
|
|
4
|
-
import { s as D, u as O } from "./network-
|
|
2
|
+
import { Br as n, C_ as r, Fr as i, Gr as a, Hh as o, Ir as s, Jr as c, Kh as l, Kr as u, Lr as d, Mr as f, Or as p, Rr as m, S_ as h, Wh as g, b_ as _, ci as v, gr as y, hr as b, t as x, x_ as S, yr as C } from "./utils-DtKQl-D3.js";
|
|
3
|
+
import { bd as w, kd as T, nf as E } from "./keybindings-D0pBlT1k.js";
|
|
4
|
+
import { s as D, u as O } from "./network-wuXD7-is.js";
|
|
5
5
|
import { a as k, c as A, i as j, n as M, o as N, r as P, s as F, t as I } from "./type-kfFpx-kl.js";
|
|
6
6
|
import { n as L, t as R } from "./house-d4eTzaMr.js";
|
|
7
7
|
import { n as z, t as B } from "./picture-in-picture-2-BwEeO6jD.js";
|
|
@@ -14,19 +14,19 @@ import { t as re } from "./rotate-ccw-D7iJyjIR.js";
|
|
|
14
14
|
import { t as ie } from "./smartphone-BqEFWfHi.js";
|
|
15
15
|
import { t as ae } from "./square-VsbLWtSJ.js";
|
|
16
16
|
import { t as oe } from "./x-Bjr9Dwvl.js";
|
|
17
|
-
import { i as se, o as U, t as ce } from "./popover-
|
|
18
|
-
import { a as W, c as G, o as le, s as K, t as ue } from "./select-
|
|
19
|
-
import "./errors-
|
|
20
|
-
import { t as de } from "./use-atom-command-
|
|
21
|
-
import { s as fe, t as pe, u as me } from "./PreviewPanelShell-
|
|
22
|
-
import { t as q } from "./query-
|
|
23
|
-
import { F as J, P as he, p as ge } from "./workspaceFocus-
|
|
24
|
-
import { n as _e } from "./dialog-
|
|
25
|
-
import { C as ve, T as ye, _ as be, a as xe, b as Y, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, m as Oe, o as ke, p as Ae, s as je, t as Me, v as Ne, w as Pe, x as Fe } from "./DeviceStreamView-
|
|
26
|
-
import { n as Ie, t as Le } from "./toggle-group-
|
|
27
|
-
import { n as Re, r as ze, t as Be } from "./collapsible-
|
|
28
|
-
import { i as Ve } from "./wizard-
|
|
29
|
-
import { t as He } from "./switch-
|
|
17
|
+
import { i as se, o as U, t as ce } from "./popover-BAyP2Tdr.js";
|
|
18
|
+
import { a as W, c as G, o as le, s as K, t as ue } from "./select-DLFnkZsI.js";
|
|
19
|
+
import "./errors-D8_Zn8KN.js";
|
|
20
|
+
import { t as de } from "./use-atom-command-XemtT1Gv.js";
|
|
21
|
+
import { s as fe, t as pe, u as me } from "./PreviewPanelShell-Dezxjg0T.js";
|
|
22
|
+
import { t as q } from "./query-BPk2W3QN.js";
|
|
23
|
+
import { F as J, P as he, p as ge } from "./workspaceFocus-MR1plm6A.js";
|
|
24
|
+
import { n as _e } from "./dialog-EmpqFZiK.js";
|
|
25
|
+
import { C as ve, T as ye, _ as be, a as xe, b as Y, c as Se, d as Ce, f as we, g as Te, h as Ee, i as De, m as Oe, o as ke, p as Ae, s as je, t as Me, v as Ne, w as Pe, x as Fe } from "./DeviceStreamView-DsCoOzDV.js";
|
|
26
|
+
import { n as Ie, t as Le } from "./toggle-group-l8hRPswr.js";
|
|
27
|
+
import { n as Re, r as ze, t as Be } from "./collapsible-CDT6JKbk.js";
|
|
28
|
+
import { i as Ve } from "./wizard-DjD4UNew.js";
|
|
29
|
+
import { t as He } from "./switch-DjpPjtQN.js";
|
|
30
30
|
import { t as Ue } from "./discovery-list-BGCUTUmY.js";
|
|
31
31
|
import { useRef as We, useState as X } from "react";
|
|
32
32
|
import { c as Z } from "react/compiler-runtime";
|
|
@@ -72,98 +72,98 @@ async function Ye(e, t) {
|
|
|
72
72
|
}
|
|
73
73
|
// src/components/device/DeviceControlsRail.tsx
|
|
74
74
|
function Xe(t) {
|
|
75
|
-
let
|
|
76
|
-
|
|
75
|
+
let o = Z(108), { view: c, handle: l, controls: u } = t, g = u.detail?.settings, y = !l?.inputConnected, b = t.hostKind === "local" || t.hostKind === "ssh", x = g?.appearance === "dark" ? "light" : "dark", S = r(), C = h(), w;
|
|
76
|
+
o[0] === S ? w = o[1] : (w = S("Device controls"), o[0] = S, o[1] = w);
|
|
77
77
|
let T;
|
|
78
|
-
|
|
78
|
+
o[2] === S ? T = o[3] : (T = S("Home", { $context: "device home button" }), o[2] = S, o[3] = T);
|
|
79
79
|
let E;
|
|
80
|
-
|
|
80
|
+
o[4] === l ? E = o[5] : (E = () => l?.pressButton("home"), o[4] = l, o[5] = E);
|
|
81
81
|
let D;
|
|
82
|
-
|
|
82
|
+
o[6] === Symbol.for("react.memo_cache_sentinel") ? (D = /* @__PURE__ */ Q(R, {}), o[6] = D) : D = o[6];
|
|
83
83
|
let O;
|
|
84
|
-
|
|
84
|
+
o[7] !== y || o[8] !== T || o[9] !== E ? (O = /* @__PURE__ */ Q(Qe, {
|
|
85
85
|
tooltipSide: "left",
|
|
86
86
|
label: T,
|
|
87
|
-
disabled:
|
|
87
|
+
disabled: y,
|
|
88
88
|
onClick: E,
|
|
89
89
|
children: D
|
|
90
|
-
}),
|
|
90
|
+
}), o[7] = y, o[8] = T, o[9] = E, o[10] = O) : O = o[10];
|
|
91
91
|
let A;
|
|
92
|
-
|
|
92
|
+
o[11] !== u || o[12] !== S || o[13] !== l || o[14] !== y || o[15] !== t.hostKind || o[16] !== t.platform || o[17] !== b || o[18] !== c.keyboard?.attached ? (A = t.platform === "android" ? /* @__PURE__ */ $(Ge, { children: [
|
|
93
93
|
/* @__PURE__ */ Q(Qe, {
|
|
94
94
|
tooltipSide: "left",
|
|
95
|
-
label:
|
|
96
|
-
disabled:
|
|
97
|
-
onClick: () =>
|
|
95
|
+
label: S("Back", { $context: "device back button" }),
|
|
96
|
+
disabled: y,
|
|
97
|
+
onClick: () => l?.pressButton("back"),
|
|
98
98
|
children: /* @__PURE__ */ Q(ee, {})
|
|
99
99
|
}),
|
|
100
100
|
/* @__PURE__ */ Q(Qe, {
|
|
101
101
|
tooltipSide: "left",
|
|
102
|
-
label:
|
|
103
|
-
disabled:
|
|
104
|
-
onClick: () =>
|
|
102
|
+
label: S("Recents", { $context: "Android recent apps button" }),
|
|
103
|
+
disabled: y,
|
|
104
|
+
onClick: () => l?.pressButton("recents"),
|
|
105
105
|
children: /* @__PURE__ */ Q(ae, {})
|
|
106
106
|
}),
|
|
107
|
-
|
|
108
|
-
render: /* @__PURE__ */ Q(
|
|
107
|
+
b ? /* @__PURE__ */ $(p, { children: [/* @__PURE__ */ Q(a, {
|
|
108
|
+
render: /* @__PURE__ */ Q(v, {
|
|
109
109
|
size: "icon-sm",
|
|
110
110
|
variant: "ghost",
|
|
111
|
-
"aria-label":
|
|
112
|
-
disabled:
|
|
111
|
+
"aria-label": S("Rotate device"),
|
|
112
|
+
disabled: u.disabled
|
|
113
113
|
}),
|
|
114
114
|
children: /* @__PURE__ */ Q(re, {})
|
|
115
|
-
}), /* @__PURE__ */ $(
|
|
115
|
+
}), /* @__PURE__ */ $(i, {
|
|
116
116
|
side: "left",
|
|
117
|
-
children: [/* @__PURE__ */ Q(
|
|
118
|
-
onClick: () => void
|
|
117
|
+
children: [/* @__PURE__ */ Q(f, {
|
|
118
|
+
onClick: () => void u.act({
|
|
119
119
|
type: "setOrientation",
|
|
120
120
|
value: "portrait"
|
|
121
121
|
}),
|
|
122
|
-
children: /* @__PURE__ */ Q(
|
|
123
|
-
}), /* @__PURE__ */ Q(
|
|
124
|
-
onClick: () => void
|
|
122
|
+
children: /* @__PURE__ */ Q(_, { children: "Portrait" })
|
|
123
|
+
}), /* @__PURE__ */ Q(f, {
|
|
124
|
+
onClick: () => void u.act({
|
|
125
125
|
type: "setOrientation",
|
|
126
126
|
value: "landscape_left"
|
|
127
127
|
}),
|
|
128
|
-
children: /* @__PURE__ */ Q(
|
|
128
|
+
children: /* @__PURE__ */ Q(_, { children: "Landscape" })
|
|
129
129
|
})]
|
|
130
130
|
})] }) : null
|
|
131
131
|
] }) : t.hostKind === "simlock" ? null : /* @__PURE__ */ Q(Qe, {
|
|
132
132
|
tooltipSide: "left",
|
|
133
|
-
label:
|
|
134
|
-
disabled:
|
|
135
|
-
onClick: () =>
|
|
133
|
+
label: S("Rotate device"),
|
|
134
|
+
disabled: y || !!c.keyboard?.attached,
|
|
135
|
+
onClick: () => l?.rotate(),
|
|
136
136
|
children: /* @__PURE__ */ Q(re, {})
|
|
137
|
-
}),
|
|
137
|
+
}), o[11] = u, o[12] = S, o[13] = l, o[14] = y, o[15] = t.hostKind, o[16] = t.platform, o[17] = b, o[18] = c.keyboard?.attached, o[19] = A) : A = o[19];
|
|
138
138
|
let V;
|
|
139
|
-
|
|
139
|
+
o[20] !== u || o[21] !== S || o[22] !== C || o[23] !== x || o[24] !== t.onTools || o[25] !== t.toolsOpen || o[26] !== b || o[27] !== g?.appearance || o[28] !== g?.textSize ? (V = b ? /* @__PURE__ */ $(Ge, { children: [
|
|
140
140
|
/* @__PURE__ */ Q(Ze, {}),
|
|
141
141
|
/* @__PURE__ */ Q(Qe, {
|
|
142
142
|
tooltipSide: "left",
|
|
143
|
-
label:
|
|
144
|
-
disabled:
|
|
145
|
-
onClick: () => void
|
|
143
|
+
label: S(x === "light" ? "Switch device to light mode" : "Switch device to dark mode"),
|
|
144
|
+
disabled: u.disabled || !g?.appearance,
|
|
145
|
+
onClick: () => void u.act({
|
|
146
146
|
type: "setAppearance",
|
|
147
|
-
value:
|
|
147
|
+
value: x
|
|
148
148
|
}),
|
|
149
|
-
children:
|
|
149
|
+
children: g?.appearance === "dark" ? /* @__PURE__ */ Q(M, {}) : /* @__PURE__ */ Q(k, {})
|
|
150
150
|
}),
|
|
151
|
-
/* @__PURE__ */ $(
|
|
152
|
-
render: /* @__PURE__ */ Q(
|
|
151
|
+
/* @__PURE__ */ $(p, { children: [/* @__PURE__ */ Q(a, {
|
|
152
|
+
render: /* @__PURE__ */ Q(v, {
|
|
153
153
|
size: "icon-sm",
|
|
154
154
|
variant: "ghost",
|
|
155
|
-
"aria-label":
|
|
156
|
-
title:
|
|
157
|
-
disabled:
|
|
155
|
+
"aria-label": S("Device text size"),
|
|
156
|
+
title: S("Device text size"),
|
|
157
|
+
disabled: u.disabled || !g?.textSize
|
|
158
158
|
}),
|
|
159
159
|
children: /* @__PURE__ */ Q(I, {})
|
|
160
|
-
}), /* @__PURE__ */ Q(
|
|
160
|
+
}), /* @__PURE__ */ Q(i, {
|
|
161
161
|
side: "left",
|
|
162
162
|
className: "min-w-40",
|
|
163
|
-
children: /* @__PURE__ */ Q(
|
|
164
|
-
value:
|
|
163
|
+
children: /* @__PURE__ */ Q(s, {
|
|
164
|
+
value: g?.textSize ?? "",
|
|
165
165
|
onValueChange: (e) => {
|
|
166
|
-
(e === "small" || e === "default" || e === "large" || e === "extra-large") &&
|
|
166
|
+
(e === "small" || e === "default" || e === "large" || e === "extra-large") && u.act({
|
|
167
167
|
type: "setTextSize",
|
|
168
168
|
value: e
|
|
169
169
|
});
|
|
@@ -175,14 +175,14 @@ function Xe(t) {
|
|
|
175
175
|
["extra-large", e("Extra large")]
|
|
176
176
|
].map((e) => {
|
|
177
177
|
let [t, n] = e;
|
|
178
|
-
return /* @__PURE__ */ Q(
|
|
178
|
+
return /* @__PURE__ */ Q(d, {
|
|
179
179
|
value: t,
|
|
180
180
|
children: /* @__PURE__ */ $("span", {
|
|
181
181
|
className: "flex items-center gap-2",
|
|
182
182
|
children: [/* @__PURE__ */ Q("span", {
|
|
183
183
|
className: "flex-1",
|
|
184
184
|
children: C(n)
|
|
185
|
-
}), /* @__PURE__ */ Q(
|
|
185
|
+
}), /* @__PURE__ */ Q(m, {})]
|
|
186
186
|
})
|
|
187
187
|
}, t);
|
|
188
188
|
})
|
|
@@ -190,66 +190,66 @@ function Xe(t) {
|
|
|
190
190
|
})] }),
|
|
191
191
|
/* @__PURE__ */ Q(Qe, {
|
|
192
192
|
tooltipSide: "left",
|
|
193
|
-
label:
|
|
193
|
+
label: S("Device tools"),
|
|
194
194
|
pressed: t.toolsOpen,
|
|
195
195
|
onClick: t.onTools,
|
|
196
196
|
children: /* @__PURE__ */ Q(P, {})
|
|
197
197
|
})
|
|
198
|
-
] }) : null,
|
|
198
|
+
] }) : null, o[20] = u, o[21] = S, o[22] = C, o[23] = x, o[24] = t.onTools, o[25] = t.toolsOpen, o[26] = b, o[27] = g?.appearance, o[28] = g?.textSize, o[29] = V) : V = o[29];
|
|
199
199
|
let H;
|
|
200
|
-
|
|
200
|
+
o[30] !== S || o[31] !== t.hostKind || o[32] !== t.onScreenshot || o[33] !== t.screenshotPending || o[34] !== c.streaming ? (H = t.hostKind === "simlock" ? null : /* @__PURE__ */ Q(Qe, {
|
|
201
201
|
tooltipSide: "left",
|
|
202
|
-
label: t.screenshotPending ?
|
|
203
|
-
disabled: !
|
|
202
|
+
label: t.screenshotPending ? S("Capturing screenshot") : S("Save screenshot"),
|
|
203
|
+
disabled: !c.streaming || t.screenshotPending,
|
|
204
204
|
onClick: t.onScreenshot,
|
|
205
205
|
children: /* @__PURE__ */ Q(z, {})
|
|
206
|
-
}),
|
|
206
|
+
}), o[30] = S, o[31] = t.hostKind, o[32] = t.onScreenshot, o[33] = t.screenshotPending, o[34] = c.streaming, o[35] = H) : H = o[35];
|
|
207
207
|
let ne;
|
|
208
|
-
|
|
208
|
+
o[36] === S ? ne = o[37] : (ne = S("More device actions"), o[36] = S, o[37] = ne);
|
|
209
209
|
let se;
|
|
210
|
-
|
|
210
|
+
o[38] === S ? se = o[39] : (se = S("More device actions"), o[38] = S, o[39] = se);
|
|
211
211
|
let U;
|
|
212
|
-
|
|
212
|
+
o[40] !== ne || o[41] !== se ? (U = /* @__PURE__ */ Q(v, {
|
|
213
213
|
size: "icon-sm",
|
|
214
214
|
variant: "ghost",
|
|
215
215
|
"aria-label": ne,
|
|
216
216
|
title: se
|
|
217
|
-
}),
|
|
217
|
+
}), o[40] = ne, o[41] = se, o[42] = U) : U = o[42];
|
|
218
218
|
let ce;
|
|
219
|
-
|
|
219
|
+
o[43] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(F, {}), o[43] = ce) : ce = o[43];
|
|
220
220
|
let W;
|
|
221
|
-
|
|
221
|
+
o[44] === U ? W = o[45] : (W = /* @__PURE__ */ Q(a, {
|
|
222
222
|
render: U,
|
|
223
223
|
children: ce
|
|
224
|
-
}),
|
|
224
|
+
}), o[44] = U, o[45] = W);
|
|
225
225
|
let G, le;
|
|
226
|
-
|
|
226
|
+
o[46] === Symbol.for("react.memo_cache_sentinel") ? (G = /* @__PURE__ */ Q(B, {}), le = /* @__PURE__ */ Q(_, { children: "Float device over chat" }), o[46] = G, o[47] = le) : (G = o[46], le = o[47]);
|
|
227
227
|
let K;
|
|
228
|
-
|
|
228
|
+
o[48] === t.onFloat ? K = o[49] : (K = /* @__PURE__ */ $(f, {
|
|
229
229
|
onClick: t.onFloat,
|
|
230
230
|
children: [G, le]
|
|
231
|
-
}),
|
|
231
|
+
}), o[48] = t.onFloat, o[49] = K);
|
|
232
232
|
let ue, de;
|
|
233
|
-
|
|
233
|
+
o[50] === Symbol.for("react.memo_cache_sentinel") ? (ue = /* @__PURE__ */ Q(oe, {}), de = /* @__PURE__ */ Q(_, { children: "Close device panel" }), o[50] = ue, o[51] = de) : (ue = o[50], de = o[51]);
|
|
234
234
|
let fe;
|
|
235
|
-
|
|
235
|
+
o[52] === t.onClose ? fe = o[53] : (fe = /* @__PURE__ */ $(f, {
|
|
236
236
|
onClick: t.onClose,
|
|
237
237
|
children: [ue, de]
|
|
238
|
-
}),
|
|
238
|
+
}), o[52] = t.onClose, o[53] = fe);
|
|
239
239
|
let pe;
|
|
240
|
-
|
|
240
|
+
o[54] === Symbol.for("react.memo_cache_sentinel") ? (pe = /* @__PURE__ */ Q(n, {}), o[54] = pe) : pe = o[54];
|
|
241
241
|
let me;
|
|
242
|
-
|
|
242
|
+
o[55] === Symbol.for("react.memo_cache_sentinel") ? (me = /* @__PURE__ */ Q(j, {}), o[55] = me) : me = o[55];
|
|
243
243
|
let q;
|
|
244
|
-
|
|
244
|
+
o[56] !== S || o[57] !== t.hostKind ? (q = t.hostKind === "simlock" ? S("Return device to the pool") : S("Power off device"), o[56] = S, o[57] = t.hostKind, o[58] = q) : q = o[58];
|
|
245
245
|
let J;
|
|
246
|
-
|
|
246
|
+
o[59] !== t.onPowerOff || o[60] !== q ? (J = /* @__PURE__ */ $(f, {
|
|
247
247
|
variant: "destructive",
|
|
248
248
|
onClick: t.onPowerOff,
|
|
249
249
|
children: [me, q]
|
|
250
|
-
}),
|
|
250
|
+
}), o[59] = t.onPowerOff, o[60] = q, o[61] = J) : J = o[61];
|
|
251
251
|
let he;
|
|
252
|
-
|
|
252
|
+
o[62] !== K || o[63] !== fe || o[64] !== J ? (he = /* @__PURE__ */ $(i, {
|
|
253
253
|
side: "left",
|
|
254
254
|
align: "end",
|
|
255
255
|
children: [
|
|
@@ -258,55 +258,55 @@ function Xe(t) {
|
|
|
258
258
|
pe,
|
|
259
259
|
J
|
|
260
260
|
]
|
|
261
|
-
}),
|
|
261
|
+
}), o[62] = K, o[63] = fe, o[64] = J, o[65] = he) : he = o[65];
|
|
262
262
|
let ge;
|
|
263
|
-
|
|
263
|
+
o[66] !== W || o[67] !== he ? (ge = /* @__PURE__ */ $(p, { children: [W, he] }), o[66] = W, o[67] = he, o[68] = ge) : ge = o[68];
|
|
264
264
|
let _e;
|
|
265
|
-
|
|
265
|
+
o[69] === Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ Q(Ze, {}), o[69] = _e) : _e = o[69];
|
|
266
266
|
let ve;
|
|
267
|
-
|
|
268
|
-
let ye = !
|
|
269
|
-
|
|
267
|
+
o[70] === S ? ve = o[71] : (ve = S("3D view"), o[70] = S, o[71] = ve);
|
|
268
|
+
let ye = !c.streaming || !!c.phoneUnavailableReason, be = c.phoneUnavailableReason ?? void 0, xe;
|
|
269
|
+
o[72] === Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ Q(L, {}), o[72] = xe) : xe = o[72];
|
|
270
270
|
let Y;
|
|
271
|
-
|
|
271
|
+
o[73] !== ve || o[74] !== ye || o[75] !== be || o[76] !== c.phone || o[77] !== c.showPhone ? (Y = /* @__PURE__ */ Q(Qe, {
|
|
272
272
|
tooltipSide: "left",
|
|
273
273
|
label: ve,
|
|
274
|
-
pressed:
|
|
274
|
+
pressed: c.phone,
|
|
275
275
|
disabled: ye,
|
|
276
276
|
description: be,
|
|
277
|
-
onClick:
|
|
277
|
+
onClick: c.showPhone,
|
|
278
278
|
children: xe
|
|
279
|
-
}),
|
|
279
|
+
}), o[73] = ve, o[74] = ye, o[75] = be, o[76] = c.phone, o[77] = c.showPhone, o[78] = Y) : Y = o[78];
|
|
280
280
|
let Se;
|
|
281
|
-
|
|
282
|
-
let Ce = !
|
|
283
|
-
|
|
281
|
+
o[79] === S ? Se = o[80] : (Se = S("Flat view"), o[79] = S, o[80] = Se);
|
|
282
|
+
let Ce = !c.phone, we = !c.streaming, Te;
|
|
283
|
+
o[81] === Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ Q(ie, {}), o[81] = Te) : Te = o[81];
|
|
284
284
|
let Ee;
|
|
285
|
-
|
|
285
|
+
o[82] !== Se || o[83] !== Ce || o[84] !== we || o[85] !== c.showFlat ? (Ee = /* @__PURE__ */ Q(Qe, {
|
|
286
286
|
tooltipSide: "left",
|
|
287
287
|
label: Se,
|
|
288
288
|
pressed: Ce,
|
|
289
289
|
disabled: we,
|
|
290
|
-
onClick:
|
|
290
|
+
onClick: c.showFlat,
|
|
291
291
|
children: Te
|
|
292
|
-
}),
|
|
292
|
+
}), o[82] = Se, o[83] = Ce, o[84] = we, o[85] = c.showFlat, o[86] = Ee) : Ee = o[86];
|
|
293
293
|
let De;
|
|
294
|
-
|
|
294
|
+
o[87] !== S || o[88] !== c.keyboard ? (De = c.keyboard ? /* @__PURE__ */ Q(Qe, {
|
|
295
295
|
tooltipSide: "left",
|
|
296
|
-
label:
|
|
297
|
-
pressed:
|
|
298
|
-
onClick:
|
|
296
|
+
label: c.keyboard.attached ? S("Detach Magic Keyboard") : S("Attach Magic Keyboard"),
|
|
297
|
+
pressed: c.keyboard.attached,
|
|
298
|
+
onClick: c.keyboard.toggle,
|
|
299
299
|
children: /* @__PURE__ */ Q(N, {})
|
|
300
|
-
}) : null,
|
|
300
|
+
}) : null, o[87] = S, o[88] = c.keyboard, o[89] = De) : De = o[89];
|
|
301
301
|
let Oe;
|
|
302
|
-
|
|
302
|
+
o[90] !== S || o[91] !== c.phone || o[92] !== c.resetView ? (Oe = c.phone ? /* @__PURE__ */ Q(Qe, {
|
|
303
303
|
tooltipSide: "left",
|
|
304
|
-
label:
|
|
305
|
-
onClick:
|
|
304
|
+
label: S("Restore 3D view"),
|
|
305
|
+
onClick: c.resetView,
|
|
306
306
|
children: /* @__PURE__ */ Q(te, {})
|
|
307
|
-
}) : null,
|
|
307
|
+
}) : null, o[90] = S, o[91] = c.phone, o[92] = c.resetView, o[93] = Oe) : Oe = o[93];
|
|
308
308
|
let ke;
|
|
309
|
-
|
|
309
|
+
o[94] !== ge || o[95] !== Y || o[96] !== Ee || o[97] !== De || o[98] !== Oe || o[99] !== O || o[100] !== A || o[101] !== V || o[102] !== H ? (ke = /* @__PURE__ */ $("div", {
|
|
310
310
|
className: "pointer-events-auto flex shrink-0 flex-col items-center gap-1 overflow-y-auto rounded-full border border-border/50 bg-background/80 p-2 shadow-sm [scrollbar-width:none]",
|
|
311
311
|
children: [
|
|
312
312
|
O,
|
|
@@ -320,14 +320,14 @@ function Xe(t) {
|
|
|
320
320
|
De,
|
|
321
321
|
Oe
|
|
322
322
|
]
|
|
323
|
-
}),
|
|
323
|
+
}), o[94] = ge, o[95] = Y, o[96] = Ee, o[97] = De, o[98] = Oe, o[99] = O, o[100] = A, o[101] = V, o[102] = H, o[103] = ke) : ke = o[103];
|
|
324
324
|
let Ae;
|
|
325
|
-
return
|
|
325
|
+
return o[104] !== w || o[105] !== ke || o[106] !== c.foldingControls ? (Ae = /* @__PURE__ */ $("aside", {
|
|
326
326
|
"aria-label": w,
|
|
327
327
|
"data-layout": "rail",
|
|
328
328
|
className: "pointer-events-none absolute inset-y-0 right-0 z-10 flex w-14 flex-col items-center gap-2 overflow-y-auto [justify-content:safe_center] py-3 pr-2 [scrollbar-width:none]",
|
|
329
|
-
children: [ke,
|
|
330
|
-
}),
|
|
329
|
+
children: [ke, c.foldingControls]
|
|
330
|
+
}), o[104] = w, o[105] = ke, o[106] = c.foldingControls, o[107] = Ae) : Ae = o[107], Ae;
|
|
331
331
|
}
|
|
332
332
|
function Ze() {
|
|
333
333
|
let e = Z(1), t;
|
|
@@ -338,7 +338,7 @@ function Ze() {
|
|
|
338
338
|
}
|
|
339
339
|
function Qe(e) {
|
|
340
340
|
let t = Z(18), n = e.pressed ? "secondary" : "ghost", r;
|
|
341
|
-
t[0] !== e.children || t[1] !== e.disabled || t[2] !== e.label || t[3] !== e.onClick || t[4] !== e.pressed || t[5] !== n ? (r = /* @__PURE__ */ Q(
|
|
341
|
+
t[0] !== e.children || t[1] !== e.disabled || t[2] !== e.label || t[3] !== e.onClick || t[4] !== e.pressed || t[5] !== n ? (r = /* @__PURE__ */ Q(v, {
|
|
342
342
|
size: "icon-sm",
|
|
343
343
|
variant: n,
|
|
344
344
|
"aria-label": e.label,
|
|
@@ -358,12 +358,12 @@ function Qe(e) {
|
|
|
358
358
|
children: i
|
|
359
359
|
}) : /* @__PURE__ */ Q(C, { render: i }), t[7] = i, t[8] = e.description, t[9] = e.disabled, t[10] = e.label, t[11] = a) : a = t[11];
|
|
360
360
|
let o = e.description ?? e.label, s;
|
|
361
|
-
t[12] !== e.tooltipSide || t[13] !== o ? (s = /* @__PURE__ */ Q(
|
|
361
|
+
t[12] !== e.tooltipSide || t[13] !== o ? (s = /* @__PURE__ */ Q(y, {
|
|
362
362
|
side: e.tooltipSide,
|
|
363
363
|
children: o
|
|
364
364
|
}), t[12] = e.tooltipSide, t[13] = o, t[14] = s) : s = t[14];
|
|
365
365
|
let c;
|
|
366
|
-
return t[15] !== a || t[16] !== s ? (c = /* @__PURE__ */ $(
|
|
366
|
+
return t[15] !== a || t[16] !== s ? (c = /* @__PURE__ */ $(b, { children: [a, s] }), t[15] = a, t[16] = s, t[17] = c) : c = t[17], c;
|
|
367
367
|
}
|
|
368
368
|
// src/components/device/DeviceToolsPanel.tsx
|
|
369
369
|
var $e = [
|
|
@@ -527,51 +527,51 @@ var $e = [
|
|
|
527
527
|
}
|
|
528
528
|
];
|
|
529
529
|
function at(e) {
|
|
530
|
-
let t = Z(186), { device: n, controls:
|
|
531
|
-
t[0] === e.className ? h = t[1] : (h =
|
|
530
|
+
let t = Z(186), { device: n, controls: i } = e, { detail: a, pending: o, error: s, foregroundApp: c, disabled: l, act: d } = i, f = a?.settings, p = n.platform === "ios", m = r(), h;
|
|
531
|
+
t[0] === e.className ? h = t[1] : (h = x("flex min-h-0 flex-col border-border bg-background text-sm", e.className), t[0] = e.className, t[1] = h);
|
|
532
532
|
let g;
|
|
533
533
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ Q("span", {
|
|
534
534
|
className: "font-medium",
|
|
535
|
-
children: /* @__PURE__ */ Q(
|
|
535
|
+
children: /* @__PURE__ */ Q(_, { children: "Tools" })
|
|
536
536
|
}), t[2] = g) : g = t[2];
|
|
537
|
-
let v;
|
|
538
|
-
t[3] === a ? v = t[4] : (v = a ? /* @__PURE__ */ Q(c, { size: "sm" }) : null, t[3] = a, t[4] = v);
|
|
539
537
|
let y;
|
|
540
|
-
t[
|
|
541
|
-
let
|
|
542
|
-
t[
|
|
538
|
+
t[3] === o ? y = t[4] : (y = o ? /* @__PURE__ */ Q(u, { size: "sm" }) : null, t[3] = o, t[4] = y);
|
|
539
|
+
let b;
|
|
540
|
+
t[5] === m ? b = t[6] : (b = m("Close tools"), t[5] = m, t[6] = b);
|
|
541
|
+
let S;
|
|
542
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ Q(oe, {}), t[7] = S) : S = t[7];
|
|
543
543
|
let C;
|
|
544
|
-
t[8] !== e.onClose || t[9] !==
|
|
544
|
+
t[8] !== e.onClose || t[9] !== b ? (C = /* @__PURE__ */ Q(v, {
|
|
545
545
|
size: "icon-xs",
|
|
546
546
|
variant: "ghost-muted",
|
|
547
|
-
"aria-label":
|
|
547
|
+
"aria-label": b,
|
|
548
548
|
className: "ml-auto",
|
|
549
549
|
onClick: e.onClose,
|
|
550
|
-
children:
|
|
551
|
-
}), t[8] = e.onClose, t[9] =
|
|
550
|
+
children: S
|
|
551
|
+
}), t[8] = e.onClose, t[9] = b, t[10] = C) : C = t[10];
|
|
552
552
|
let w;
|
|
553
|
-
t[11] !==
|
|
553
|
+
t[11] !== y || t[12] !== C ? (w = /* @__PURE__ */ $("div", {
|
|
554
554
|
className: "flex h-9 shrink-0 items-center gap-2 border-b px-3",
|
|
555
555
|
children: [
|
|
556
556
|
g,
|
|
557
|
-
|
|
557
|
+
y,
|
|
558
558
|
C
|
|
559
559
|
]
|
|
560
|
-
}), t[11] =
|
|
560
|
+
}), t[11] = y, t[12] = C, t[13] = w) : w = t[13];
|
|
561
561
|
let T;
|
|
562
|
-
t[14] ===
|
|
562
|
+
t[14] === s ? T = t[15] : (T = s ? /* @__PURE__ */ Q("p", {
|
|
563
563
|
className: "border-b bg-destructive/10 px-3 py-2 text-xs text-destructive",
|
|
564
|
-
children:
|
|
565
|
-
}) : null, t[14] =
|
|
564
|
+
children: s
|
|
565
|
+
}) : null, t[14] = s, t[15] = T);
|
|
566
566
|
let E;
|
|
567
|
-
t[16] !==
|
|
567
|
+
t[16] !== a || t[17] !== s ? (E = a === null && !s ? /* @__PURE__ */ $("div", {
|
|
568
568
|
className: "flex items-center gap-2 px-3 py-3 text-xs text-muted-foreground",
|
|
569
569
|
children: [
|
|
570
|
-
/* @__PURE__ */ Q(
|
|
570
|
+
/* @__PURE__ */ Q(u, { size: "sm" }),
|
|
571
571
|
" ",
|
|
572
|
-
/* @__PURE__ */ Q(
|
|
572
|
+
/* @__PURE__ */ Q(_, { children: "Reading device settings…" })
|
|
573
573
|
]
|
|
574
|
-
}) : null, t[16] =
|
|
574
|
+
}) : null, t[16] = a, t[17] = s, t[18] = E) : E = t[18];
|
|
575
575
|
let D;
|
|
576
576
|
t[19] !== m || t[20] !== e.hostDiagnostics ? (D = e.hostDiagnostics ? /* @__PURE__ */ Q(ot, {
|
|
577
577
|
title: m("Host diagnostics"),
|
|
@@ -584,7 +584,7 @@ function at(e) {
|
|
|
584
584
|
t[22] === m ? O = t[23] : (O = m("App", { $context: "section heading for the foreground app" }), t[22] = m, t[23] = O);
|
|
585
585
|
let k;
|
|
586
586
|
t[24] === m ? k = t[25] : (k = m("Foreground", { $context: "the app currently in the foreground" }), t[24] = m, t[25] = k);
|
|
587
|
-
let A =
|
|
587
|
+
let A = c?.id ?? "-", j;
|
|
588
588
|
t[26] === A ? j = t[27] : (j = /* @__PURE__ */ Q("span", {
|
|
589
589
|
className: "truncate font-mono text-xs",
|
|
590
590
|
children: A
|
|
@@ -595,37 +595,37 @@ function at(e) {
|
|
|
595
595
|
children: j
|
|
596
596
|
}), t[28] = k, t[29] = j, t[30] = M) : M = t[30];
|
|
597
597
|
let N;
|
|
598
|
-
t[31] !==
|
|
598
|
+
t[31] !== d || t[32] !== l || t[33] !== c ? (N = c ? /* @__PURE__ */ $("div", {
|
|
599
599
|
className: "flex gap-1.5",
|
|
600
|
-
children: [/* @__PURE__ */ Q(
|
|
600
|
+
children: [/* @__PURE__ */ Q(v, {
|
|
601
601
|
size: "xs",
|
|
602
602
|
variant: "outline",
|
|
603
603
|
disabled: l,
|
|
604
|
-
onClick: () => void
|
|
604
|
+
onClick: () => void d({
|
|
605
605
|
type: "terminateApp",
|
|
606
|
-
appId:
|
|
606
|
+
appId: c.id
|
|
607
607
|
}),
|
|
608
|
-
children: /* @__PURE__ */ Q(
|
|
609
|
-
}), /* @__PURE__ */ Q(
|
|
608
|
+
children: /* @__PURE__ */ Q(_, { children: "Terminate" })
|
|
609
|
+
}), /* @__PURE__ */ Q(v, {
|
|
610
610
|
size: "xs",
|
|
611
611
|
variant: "outline",
|
|
612
612
|
disabled: l,
|
|
613
|
-
onClick: () => void
|
|
613
|
+
onClick: () => void d({
|
|
614
614
|
type: "launchApp",
|
|
615
|
-
appId:
|
|
615
|
+
appId: c.id
|
|
616
616
|
}),
|
|
617
|
-
children: /* @__PURE__ */ Q(
|
|
617
|
+
children: /* @__PURE__ */ Q(_, { children: "Relaunch" })
|
|
618
618
|
})]
|
|
619
|
-
}) : null, t[31] =
|
|
619
|
+
}) : null, t[31] = d, t[32] = l, t[33] = c, t[34] = N) : N = t[34];
|
|
620
620
|
let P;
|
|
621
621
|
t[35] === m ? P = t[36] : (P = m("https://… or myapp://"), t[35] = m, t[36] = P);
|
|
622
622
|
let F;
|
|
623
623
|
t[37] === m ? F = t[38] : (F = m("Open", { $context: "verb, opens a URL" }), t[37] = m, t[38] = F);
|
|
624
624
|
let I;
|
|
625
|
-
t[39] ===
|
|
625
|
+
t[39] === d ? I = t[40] : (I = (e) => d({
|
|
626
626
|
type: "openUrl",
|
|
627
627
|
url: e
|
|
628
|
-
}), t[39] =
|
|
628
|
+
}), t[39] = d, t[40] = I);
|
|
629
629
|
let L;
|
|
630
630
|
t[41] !== l || t[42] !== P || t[43] !== F || t[44] !== I ? (L = /* @__PURE__ */ Q(ut, {
|
|
631
631
|
placeholder: P,
|
|
@@ -634,14 +634,14 @@ function at(e) {
|
|
|
634
634
|
onSubmit: I
|
|
635
635
|
}), t[41] = l, t[42] = P, t[43] = F, t[44] = I, t[45] = L) : L = t[45];
|
|
636
636
|
let R;
|
|
637
|
-
t[46] !== m || t[47] !==
|
|
637
|
+
t[46] !== m || t[47] !== p ? (R = m(p ? "Bundle ID to launch" : "Package name to launch"), t[46] = m, t[47] = p, t[48] = R) : R = t[48];
|
|
638
638
|
let z;
|
|
639
639
|
t[49] === m ? z = t[50] : (z = m("Launch", { $context: "verb, launches an app" }), t[49] = m, t[50] = z);
|
|
640
640
|
let B;
|
|
641
|
-
t[51] ===
|
|
641
|
+
t[51] === d ? B = t[52] : (B = (e) => d({
|
|
642
642
|
type: "launchApp",
|
|
643
643
|
appId: e
|
|
644
|
-
}), t[51] =
|
|
644
|
+
}), t[51] = d, t[52] = B);
|
|
645
645
|
let V;
|
|
646
646
|
t[53] !== l || t[54] !== R || t[55] !== z || t[56] !== B ? (V = /* @__PURE__ */ Q(ut, {
|
|
647
647
|
placeholder: R,
|
|
@@ -660,25 +660,25 @@ function at(e) {
|
|
|
660
660
|
]
|
|
661
661
|
}), t[58] = O, t[59] = M, t[60] = N, t[61] = L, t[62] = V, t[63] = ee) : ee = t[63];
|
|
662
662
|
let H;
|
|
663
|
-
t[64] !== m || t[65] !==
|
|
663
|
+
t[64] !== m || t[65] !== p ? (H = m(p ? "Simulator" : "Emulator"), t[64] = m, t[65] = p, t[66] = H) : H = t[66];
|
|
664
664
|
let te;
|
|
665
665
|
t[67] === m ? te = t[68] : (te = m("Appearance"), t[67] = m, t[68] = te);
|
|
666
666
|
let ne;
|
|
667
667
|
t[69] === m ? ne = t[70] : (ne = m("Appearance"), t[69] = m, t[70] = ne);
|
|
668
668
|
let re;
|
|
669
|
-
t[71] ===
|
|
669
|
+
t[71] === f ? re = t[72] : (re = f?.appearance ? [f.appearance] : [], t[71] = f, t[72] = re);
|
|
670
670
|
let ie;
|
|
671
|
-
t[73] ===
|
|
671
|
+
t[73] === d ? ie = t[74] : (ie = (e) => {
|
|
672
672
|
let t = e[0];
|
|
673
|
-
(t === "light" || t === "dark") &&
|
|
673
|
+
(t === "light" || t === "dark") && d({
|
|
674
674
|
type: "setAppearance",
|
|
675
675
|
value: t
|
|
676
676
|
});
|
|
677
|
-
}, t[73] =
|
|
677
|
+
}, t[73] = d, t[74] = ie);
|
|
678
678
|
let ae;
|
|
679
679
|
t[75] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ Q(Le, {
|
|
680
680
|
value: "light",
|
|
681
|
-
children: /* @__PURE__ */ Q(
|
|
681
|
+
children: /* @__PURE__ */ Q(_, {
|
|
682
682
|
context: "appearance mode",
|
|
683
683
|
children: "Light"
|
|
684
684
|
})
|
|
@@ -686,7 +686,7 @@ function at(e) {
|
|
|
686
686
|
let se;
|
|
687
687
|
t[76] === Symbol.for("react.memo_cache_sentinel") ? (se = /* @__PURE__ */ Q(Le, {
|
|
688
688
|
value: "dark",
|
|
689
|
-
children: /* @__PURE__ */ Q(
|
|
689
|
+
children: /* @__PURE__ */ Q(_, {
|
|
690
690
|
context: "appearance mode",
|
|
691
691
|
children: "Dark"
|
|
692
692
|
})
|
|
@@ -708,11 +708,11 @@ function at(e) {
|
|
|
708
708
|
t[85] === m ? W = t[86] : (W = m("Text size"), t[85] = m, t[86] = W);
|
|
709
709
|
let G;
|
|
710
710
|
t[87] === m ? G = t[88] : (G = m("Text size"), t[87] = m, t[88] = G);
|
|
711
|
-
let le =
|
|
712
|
-
t[89] ===
|
|
711
|
+
let le = f?.textSize ?? null, K;
|
|
712
|
+
t[89] === d ? K = t[90] : (K = (e) => d({
|
|
713
713
|
type: "setTextSize",
|
|
714
714
|
value: e
|
|
715
|
-
}), t[89] =
|
|
715
|
+
}), t[89] = d, t[90] = K);
|
|
716
716
|
let ue;
|
|
717
717
|
t[91] !== l || t[92] !== G || t[93] !== le || t[94] !== K ? (ue = /* @__PURE__ */ Q(lt, {
|
|
718
718
|
ariaLabel: G,
|
|
@@ -727,28 +727,28 @@ function at(e) {
|
|
|
727
727
|
children: ue
|
|
728
728
|
}), t[96] = W, t[97] = ue, t[98] = de) : de = t[98];
|
|
729
729
|
let fe;
|
|
730
|
-
t[99] !==
|
|
730
|
+
t[99] !== d || t[100] !== l || t[101] !== m || t[102] !== p || t[103] !== f ? (fe = p ? /* @__PURE__ */ $(Ge, { children: [/* @__PURE__ */ Q(st, {
|
|
731
731
|
label: "Liquid Glass",
|
|
732
732
|
children: /* @__PURE__ */ $(Ie, {
|
|
733
733
|
"aria-label": "Liquid Glass",
|
|
734
|
-
value:
|
|
735
|
-
disabled: l ||
|
|
734
|
+
value: f?.liquidGlass ? [f.liquidGlass] : [],
|
|
735
|
+
disabled: l || f?.liquidGlass === void 0,
|
|
736
736
|
onValueChange: (e) => {
|
|
737
737
|
let t = e[0];
|
|
738
|
-
(t === "clear" || t === "tinted") &&
|
|
738
|
+
(t === "clear" || t === "tinted") && d({
|
|
739
739
|
type: "setLiquidGlass",
|
|
740
740
|
value: t
|
|
741
741
|
});
|
|
742
742
|
},
|
|
743
743
|
children: [/* @__PURE__ */ Q(Le, {
|
|
744
744
|
value: "clear",
|
|
745
|
-
children: /* @__PURE__ */ Q(
|
|
745
|
+
children: /* @__PURE__ */ Q(_, {
|
|
746
746
|
context: "Liquid Glass style",
|
|
747
747
|
children: "Clear"
|
|
748
748
|
})
|
|
749
749
|
}), /* @__PURE__ */ Q(Le, {
|
|
750
750
|
value: "tinted",
|
|
751
|
-
children: /* @__PURE__ */ Q(
|
|
751
|
+
children: /* @__PURE__ */ Q(_, {
|
|
752
752
|
context: "Liquid Glass style",
|
|
753
753
|
children: "Tinted"
|
|
754
754
|
})
|
|
@@ -758,10 +758,10 @@ function at(e) {
|
|
|
758
758
|
label: m("Color filter"),
|
|
759
759
|
children: /* @__PURE__ */ Q(lt, {
|
|
760
760
|
ariaLabel: m("Color filter"),
|
|
761
|
-
value:
|
|
761
|
+
value: f?.colorFilter ?? null,
|
|
762
762
|
options: et,
|
|
763
763
|
disabled: l,
|
|
764
|
-
onChange: (e) =>
|
|
764
|
+
onChange: (e) => d({
|
|
765
765
|
type: "setColorFilter",
|
|
766
766
|
value: e
|
|
767
767
|
})
|
|
@@ -774,20 +774,20 @@ function at(e) {
|
|
|
774
774
|
placeholder: m("Rotate to…"),
|
|
775
775
|
options: tt,
|
|
776
776
|
disabled: l,
|
|
777
|
-
onChange: (e) =>
|
|
777
|
+
onChange: (e) => d({
|
|
778
778
|
type: "setOrientation",
|
|
779
779
|
value: e
|
|
780
780
|
})
|
|
781
781
|
})
|
|
782
|
-
}), t[99] =
|
|
782
|
+
}), t[99] = d, t[100] = l, t[101] = m, t[102] = p, t[103] = f, t[104] = fe) : fe = t[104];
|
|
783
783
|
let pe;
|
|
784
784
|
t[105] === m ? pe = t[106] : (pe = m("Reduce Motion"), t[105] = m, t[106] = pe);
|
|
785
|
-
let me =
|
|
786
|
-
t[107] ===
|
|
785
|
+
let me = f?.reduceMotion, q;
|
|
786
|
+
t[107] === d ? q = t[108] : (q = (e) => d({
|
|
787
787
|
type: "setToggle",
|
|
788
788
|
setting: "reduceMotion",
|
|
789
789
|
value: e
|
|
790
|
-
}), t[107] =
|
|
790
|
+
}), t[107] = d, t[108] = q);
|
|
791
791
|
let J;
|
|
792
792
|
t[109] !== l || t[110] !== pe || t[111] !== me || t[112] !== q ? (J = /* @__PURE__ */ Q(ct, {
|
|
793
793
|
label: pe,
|
|
@@ -796,12 +796,12 @@ function at(e) {
|
|
|
796
796
|
onChange: q
|
|
797
797
|
}), t[109] = l, t[110] = pe, t[111] = me, t[112] = q, t[113] = J) : J = t[113];
|
|
798
798
|
let he;
|
|
799
|
-
t[114] !==
|
|
799
|
+
t[114] !== d || t[115] !== l || t[116] !== m || t[117] !== p || t[118] !== f?.increaseContrast || t[119] !== f?.networkEnabled || t[120] !== f?.reduceTransparency || t[121] !== f?.showBorders || t[122] !== f?.voiceOver ? (he = p ? /* @__PURE__ */ $(Ge, { children: [
|
|
800
800
|
/* @__PURE__ */ Q(ct, {
|
|
801
801
|
label: m("Increase Contrast"),
|
|
802
|
-
checked:
|
|
802
|
+
checked: f?.increaseContrast,
|
|
803
803
|
disabled: l,
|
|
804
|
-
onChange: (e) =>
|
|
804
|
+
onChange: (e) => d({
|
|
805
805
|
type: "setToggle",
|
|
806
806
|
setting: "increaseContrast",
|
|
807
807
|
value: e
|
|
@@ -809,9 +809,9 @@ function at(e) {
|
|
|
809
809
|
}),
|
|
810
810
|
/* @__PURE__ */ Q(ct, {
|
|
811
811
|
label: m("Reduce Transparency"),
|
|
812
|
-
checked:
|
|
812
|
+
checked: f?.reduceTransparency,
|
|
813
813
|
disabled: l,
|
|
814
|
-
onChange: (e) =>
|
|
814
|
+
onChange: (e) => d({
|
|
815
815
|
type: "setToggle",
|
|
816
816
|
setting: "reduceTransparency",
|
|
817
817
|
value: e
|
|
@@ -819,9 +819,9 @@ function at(e) {
|
|
|
819
819
|
}),
|
|
820
820
|
/* @__PURE__ */ Q(ct, {
|
|
821
821
|
label: m("Show Borders"),
|
|
822
|
-
checked:
|
|
822
|
+
checked: f?.showBorders,
|
|
823
823
|
disabled: l,
|
|
824
|
-
onChange: (e) =>
|
|
824
|
+
onChange: (e) => d({
|
|
825
825
|
type: "setToggle",
|
|
826
826
|
setting: "showBorders",
|
|
827
827
|
value: e
|
|
@@ -829,9 +829,9 @@ function at(e) {
|
|
|
829
829
|
}),
|
|
830
830
|
/* @__PURE__ */ Q(ct, {
|
|
831
831
|
label: "VoiceOver",
|
|
832
|
-
checked:
|
|
832
|
+
checked: f?.voiceOver,
|
|
833
833
|
disabled: l,
|
|
834
|
-
onChange: (e) =>
|
|
834
|
+
onChange: (e) => d({
|
|
835
835
|
type: "setToggle",
|
|
836
836
|
setting: "voiceOver",
|
|
837
837
|
value: e
|
|
@@ -839,14 +839,14 @@ function at(e) {
|
|
|
839
839
|
})
|
|
840
840
|
] }) : /* @__PURE__ */ Q(ct, {
|
|
841
841
|
label: m("Network"),
|
|
842
|
-
checked:
|
|
842
|
+
checked: f?.networkEnabled,
|
|
843
843
|
disabled: l,
|
|
844
|
-
onChange: (e) =>
|
|
844
|
+
onChange: (e) => d({
|
|
845
845
|
type: "setToggle",
|
|
846
846
|
setting: "networkEnabled",
|
|
847
847
|
value: e
|
|
848
848
|
})
|
|
849
|
-
}), t[114] =
|
|
849
|
+
}), t[114] = d, t[115] = l, t[116] = m, t[117] = p, t[118] = f?.increaseContrast, t[119] = f?.networkEnabled, t[120] = f?.reduceTransparency, t[121] = f?.showBorders, t[122] = f?.voiceOver, t[123] = he) : he = t[123];
|
|
850
850
|
let ge;
|
|
851
851
|
t[124] !== H || t[125] !== ce || t[126] !== de || t[127] !== fe || t[128] !== J || t[129] !== he ? (ge = /* @__PURE__ */ $(ot, {
|
|
852
852
|
title: H,
|
|
@@ -877,55 +877,55 @@ function at(e) {
|
|
|
877
877
|
children: xe
|
|
878
878
|
}), t[142] = _e, t[143] = xe, t[144] = Y) : Y = t[144];
|
|
879
879
|
let Se, Ce;
|
|
880
|
-
t[145] ===
|
|
880
|
+
t[145] === d ? (Se = t[146], Ce = t[147]) : (Se = (e, t) => d({
|
|
881
881
|
type: "setLocation",
|
|
882
882
|
latitude: e,
|
|
883
883
|
longitude: t
|
|
884
|
-
}), Ce = () =>
|
|
884
|
+
}), Ce = () => d({ type: "clearLocation" }), t[145] = d, t[146] = Se, t[147] = Ce);
|
|
885
885
|
let we;
|
|
886
|
-
t[148] !== l || t[149] !==
|
|
886
|
+
t[148] !== l || t[149] !== p || t[150] !== Se || t[151] !== Ce ? (we = /* @__PURE__ */ Q(dt, {
|
|
887
887
|
disabled: l,
|
|
888
|
-
canClear:
|
|
888
|
+
canClear: p,
|
|
889
889
|
onSet: Se,
|
|
890
890
|
onClear: Ce
|
|
891
|
-
}), t[148] = l, t[149] =
|
|
892
|
-
let Te =
|
|
893
|
-
t[153] ===
|
|
891
|
+
}), t[148] = l, t[149] = p, t[150] = Se, t[151] = Ce, t[152] = we) : we = t[152];
|
|
892
|
+
let Te = p ? nt : rt, Ee = c?.id ?? "", De;
|
|
893
|
+
t[153] === d ? De = t[154] : (De = (e, t, n) => d({
|
|
894
894
|
type: "setPermission",
|
|
895
895
|
appId: e,
|
|
896
896
|
permission: t,
|
|
897
897
|
decision: n
|
|
898
|
-
}), t[153] =
|
|
898
|
+
}), t[153] = d, t[154] = De);
|
|
899
899
|
let Oe;
|
|
900
|
-
t[155] !== l || t[156] !==
|
|
900
|
+
t[155] !== l || t[156] !== p || t[157] !== Te || t[158] !== Ee || t[159] !== De ? (Oe = /* @__PURE__ */ Q(ft, {
|
|
901
901
|
permissions: Te,
|
|
902
|
-
canReset:
|
|
902
|
+
canReset: p,
|
|
903
903
|
defaultAppId: Ee,
|
|
904
904
|
disabled: l,
|
|
905
905
|
onDecide: De
|
|
906
|
-
}), t[155] = l, t[156] =
|
|
906
|
+
}), t[155] = l, t[156] = p, t[157] = Te, t[158] = Ee, t[159] = De, t[160] = Oe) : Oe = t[160];
|
|
907
907
|
let ke;
|
|
908
|
-
t[161] !==
|
|
908
|
+
t[161] !== d || t[162] !== l || t[163] !== c || t[164] !== m || t[165] !== p ? (ke = p ? /* @__PURE__ */ $(ot, {
|
|
909
909
|
title: m("Push notification"),
|
|
910
910
|
children: [/* @__PURE__ */ Q(ut, {
|
|
911
911
|
placeholder: m("Alert text"),
|
|
912
912
|
action: m("Send", { $context: "verb, sends a push notification" }),
|
|
913
|
-
disabled: l || !
|
|
914
|
-
onSubmit: (e) =>
|
|
913
|
+
disabled: l || !c,
|
|
914
|
+
onSubmit: (e) => c ? d({
|
|
915
915
|
type: "sendPush",
|
|
916
|
-
appId:
|
|
916
|
+
appId: c.id,
|
|
917
917
|
payload: e
|
|
918
918
|
}) : Promise.resolve(!1)
|
|
919
|
-
}),
|
|
919
|
+
}), c ? null : /* @__PURE__ */ Q("p", {
|
|
920
920
|
className: "text-xs text-muted-foreground",
|
|
921
|
-
children: /* @__PURE__ */ Q(
|
|
921
|
+
children: /* @__PURE__ */ Q(_, { children: "Open an app first." })
|
|
922
922
|
})]
|
|
923
|
-
}) : null, t[161] =
|
|
923
|
+
}) : null, t[161] = d, t[162] = l, t[163] = c, t[164] = m, t[165] = p, t[166] = ke) : ke = t[166];
|
|
924
924
|
let Ae;
|
|
925
|
-
t[167] !== n || t[168] !==
|
|
925
|
+
t[167] !== n || t[168] !== p || t[169] !== e.access ? (Ae = p && e.access ? /* @__PURE__ */ Q(pt, {
|
|
926
926
|
access: e.access,
|
|
927
927
|
device: n
|
|
928
|
-
}) : null, t[167] = n, t[168] =
|
|
928
|
+
}) : null, t[167] = n, t[168] = p, t[169] = e.access, t[170] = Ae) : Ae = t[170];
|
|
929
929
|
let je;
|
|
930
930
|
t[171] !== ee || t[172] !== ge || t[173] !== Y || t[174] !== we || t[175] !== Oe || t[176] !== ke || t[177] !== Ae || t[178] !== T || t[179] !== E || t[180] !== D ? (je = /* @__PURE__ */ $("div", {
|
|
931
931
|
className: "min-h-0 flex-1 overflow-y-auto",
|
|
@@ -995,48 +995,48 @@ function ct(e) {
|
|
|
995
995
|
}), t[7] = e.label, t[8] = a, t[9] = o) : o = t[9], o;
|
|
996
996
|
}
|
|
997
997
|
function lt(e) {
|
|
998
|
-
let t = Z(40), n =
|
|
999
|
-
if (t[0] !== n || t[1] !==
|
|
1000
|
-
let
|
|
1001
|
-
t[13] === e.value ?
|
|
1002
|
-
let h = e.options.find(
|
|
1003
|
-
|
|
998
|
+
let t = Z(40), n = r(), i = h(), a, o, s, c, l, u, d, f, p, m;
|
|
999
|
+
if (t[0] !== n || t[1] !== i || t[2] !== e) {
|
|
1000
|
+
let r;
|
|
1001
|
+
t[13] === e.value ? r = t[14] : (r = (t) => t.value === e.value, t[13] = e.value, t[14] = r);
|
|
1002
|
+
let h = e.options.find(r);
|
|
1003
|
+
s = ue, f = e.value, p = e.disabled, t[15] === e ? m = t[16] : (m = (t) => {
|
|
1004
1004
|
t !== null && t !== e.value && e.onChange(t);
|
|
1005
|
-
}, t[15] = e, t[16] = m),
|
|
1005
|
+
}, t[15] = e, t[16] = m), o = K, l = "xs", u = "w-40", d = e.ariaLabel, a = G, c = h ? i(h.label) : /* @__PURE__ */ Q("span", {
|
|
1006
1006
|
className: "text-muted-foreground",
|
|
1007
1007
|
children: e.placeholder ?? n("Unknown")
|
|
1008
|
-
}), t[0] = n, t[1] =
|
|
1009
|
-
} else
|
|
1010
|
-
let h;
|
|
1011
|
-
t[17] !== i || t[18] !== s ? (h = /* @__PURE__ */ Q(i, { children: s }), t[17] = i, t[18] = s, t[19] = h) : h = t[19];
|
|
1008
|
+
}), t[0] = n, t[1] = i, t[2] = e, t[3] = a, t[4] = o, t[5] = s, t[6] = c, t[7] = l, t[8] = u, t[9] = d, t[10] = f, t[11] = p, t[12] = m;
|
|
1009
|
+
} else a = t[3], o = t[4], s = t[5], c = t[6], l = t[7], u = t[8], d = t[9], f = t[10], p = t[11], m = t[12];
|
|
1012
1010
|
let g;
|
|
1013
|
-
t[
|
|
1014
|
-
size: c,
|
|
1015
|
-
className: l,
|
|
1016
|
-
"aria-label": u,
|
|
1017
|
-
children: h
|
|
1018
|
-
}), t[20] = a, t[21] = c, t[22] = l, t[23] = u, t[24] = h, t[25] = g) : g = t[25];
|
|
1011
|
+
t[17] !== a || t[18] !== c ? (g = /* @__PURE__ */ Q(a, { children: c }), t[17] = a, t[18] = c, t[19] = g) : g = t[19];
|
|
1019
1012
|
let _;
|
|
1020
|
-
|
|
1013
|
+
t[20] !== o || t[21] !== l || t[22] !== u || t[23] !== d || t[24] !== g ? (_ = /* @__PURE__ */ Q(o, {
|
|
1014
|
+
size: l,
|
|
1015
|
+
className: u,
|
|
1016
|
+
"aria-label": d,
|
|
1017
|
+
children: g
|
|
1018
|
+
}), t[20] = o, t[21] = l, t[22] = u, t[23] = d, t[24] = g, t[25] = _) : _ = t[25];
|
|
1019
|
+
let v;
|
|
1020
|
+
if (t[26] !== i || t[27] !== e.options) {
|
|
1021
1021
|
let n;
|
|
1022
|
-
t[29] ===
|
|
1022
|
+
t[29] === i ? n = t[30] : (n = (e) => /* @__PURE__ */ Q(W, {
|
|
1023
1023
|
value: e.value,
|
|
1024
|
-
children:
|
|
1025
|
-
}, e.value), t[29] =
|
|
1026
|
-
} else
|
|
1027
|
-
let
|
|
1028
|
-
t[31] ===
|
|
1024
|
+
children: i(e.label)
|
|
1025
|
+
}, e.value), t[29] = i, t[30] = n), v = e.options.map(n), t[26] = i, t[27] = e.options, t[28] = v;
|
|
1026
|
+
} else v = t[28];
|
|
1027
|
+
let y;
|
|
1028
|
+
t[31] === v ? y = t[32] : (y = /* @__PURE__ */ Q(le, {
|
|
1029
1029
|
align: "end",
|
|
1030
1030
|
alignItemWithTrigger: !1,
|
|
1031
|
-
children:
|
|
1032
|
-
}), t[31] =
|
|
1033
|
-
let
|
|
1034
|
-
return t[33] !==
|
|
1035
|
-
value:
|
|
1036
|
-
disabled:
|
|
1031
|
+
children: v
|
|
1032
|
+
}), t[31] = v, t[32] = y);
|
|
1033
|
+
let b;
|
|
1034
|
+
return t[33] !== s || t[34] !== y || t[35] !== f || t[36] !== p || t[37] !== m || t[38] !== _ ? (b = /* @__PURE__ */ $(s, {
|
|
1035
|
+
value: f,
|
|
1036
|
+
disabled: p,
|
|
1037
1037
|
onValueChange: m,
|
|
1038
|
-
children: [
|
|
1039
|
-
}), t[33] =
|
|
1038
|
+
children: [_, y]
|
|
1039
|
+
}), t[33] = s, t[34] = y, t[35] = f, t[36] = p, t[37] = m, t[38] = _, t[39] = b) : b = t[39], b;
|
|
1040
1040
|
}
|
|
1041
1041
|
function ut(e) {
|
|
1042
1042
|
let t = Z(20), [n, r] = X(""), i;
|
|
@@ -1050,22 +1050,22 @@ function ut(e) {
|
|
|
1050
1050
|
t[3] === a ? o = t[4] : (o = (e) => {
|
|
1051
1051
|
e.preventDefault(), a();
|
|
1052
1052
|
}, t[3] = a, t[4] = o);
|
|
1053
|
-
let
|
|
1054
|
-
t[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1053
|
+
let s;
|
|
1054
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = (e) => r(e.target.value), t[5] = s) : s = t[5];
|
|
1055
1055
|
let l;
|
|
1056
|
-
t[6] !== e.disabled || t[7] !== e.placeholder || t[8] !== n ? (l = /* @__PURE__ */ Q(
|
|
1056
|
+
t[6] !== e.disabled || t[7] !== e.placeholder || t[8] !== n ? (l = /* @__PURE__ */ Q(c, {
|
|
1057
1057
|
size: "compact",
|
|
1058
1058
|
font: "mono",
|
|
1059
1059
|
className: "min-w-0 flex-1",
|
|
1060
1060
|
placeholder: e.placeholder,
|
|
1061
1061
|
value: n,
|
|
1062
1062
|
disabled: e.disabled,
|
|
1063
|
-
onChange:
|
|
1063
|
+
onChange: s
|
|
1064
1064
|
}), t[6] = e.disabled, t[7] = e.placeholder, t[8] = n, t[9] = l) : l = t[9];
|
|
1065
1065
|
let u;
|
|
1066
1066
|
t[10] !== e.disabled || t[11] !== n ? (u = e.disabled || n.trim().length === 0, t[10] = e.disabled, t[11] = n, t[12] = u) : u = t[12];
|
|
1067
1067
|
let d;
|
|
1068
|
-
t[13] !== e.action || t[14] !== u ? (d = /* @__PURE__ */ Q(
|
|
1068
|
+
t[13] !== e.action || t[14] !== u ? (d = /* @__PURE__ */ Q(v, {
|
|
1069
1069
|
type: "submit",
|
|
1070
1070
|
size: "xs",
|
|
1071
1071
|
variant: "outline",
|
|
@@ -1080,59 +1080,59 @@ function ut(e) {
|
|
|
1080
1080
|
}), t[16] = o, t[17] = l, t[18] = d, t[19] = f) : f = t[19], f;
|
|
1081
1081
|
}
|
|
1082
1082
|
function dt(e) {
|
|
1083
|
-
let t = Z(59), n =
|
|
1084
|
-
t[0] !==
|
|
1085
|
-
latitude:
|
|
1086
|
-
longitude:
|
|
1087
|
-
},
|
|
1088
|
-
let m =
|
|
1089
|
-
t[6] === n ?
|
|
1090
|
-
let g;
|
|
1091
|
-
t[8] === n ? g = t[9] : (g = n("Latitude"), t[8] = n, t[9] = g);
|
|
1092
|
-
let v;
|
|
1093
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (v = (e) => a(e.target.value), t[10] = v) : v = t[10];
|
|
1083
|
+
let t = Z(59), n = r(), i = h(), [a, o] = X(""), [s, l] = X(""), u = Number(a), d = Number(s), f, p;
|
|
1084
|
+
t[0] !== a || t[1] !== s || t[2] !== u || t[3] !== d ? (f = {
|
|
1085
|
+
latitude: u,
|
|
1086
|
+
longitude: d
|
|
1087
|
+
}, p = a.trim() !== "" && s.trim() !== "" && Math.abs(f.latitude) <= 90 && Math.abs(f.longitude) <= 180, t[0] = a, t[1] = s, t[2] = u, t[3] = d, t[4] = f, t[5] = p) : (f = t[4], p = t[5]);
|
|
1088
|
+
let m = p, g;
|
|
1089
|
+
t[6] === n ? g = t[7] : (g = n("Location"), t[6] = n, t[7] = g);
|
|
1094
1090
|
let y;
|
|
1095
|
-
t[
|
|
1091
|
+
t[8] === n ? y = t[9] : (y = n("Latitude"), t[8] = n, t[9] = y);
|
|
1092
|
+
let b;
|
|
1093
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (b = (e) => o(e.target.value), t[10] = b) : b = t[10];
|
|
1094
|
+
let x;
|
|
1095
|
+
t[11] !== a || t[12] !== e.disabled || t[13] !== y ? (x = /* @__PURE__ */ Q(c, {
|
|
1096
1096
|
size: "compact",
|
|
1097
1097
|
font: "mono",
|
|
1098
1098
|
className: "min-w-0 flex-1",
|
|
1099
|
-
placeholder:
|
|
1099
|
+
placeholder: y,
|
|
1100
1100
|
inputMode: "decimal",
|
|
1101
|
-
value:
|
|
1101
|
+
value: a,
|
|
1102
1102
|
disabled: e.disabled,
|
|
1103
|
-
onChange:
|
|
1104
|
-
}), t[11] =
|
|
1105
|
-
let
|
|
1106
|
-
t[15] === n ?
|
|
1103
|
+
onChange: b
|
|
1104
|
+
}), t[11] = a, t[12] = e.disabled, t[13] = y, t[14] = x) : x = t[14];
|
|
1105
|
+
let S;
|
|
1106
|
+
t[15] === n ? S = t[16] : (S = n("Longitude"), t[15] = n, t[16] = S);
|
|
1107
1107
|
let C;
|
|
1108
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) =>
|
|
1108
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = (e) => l(e.target.value), t[17] = C) : C = t[17];
|
|
1109
1109
|
let w;
|
|
1110
|
-
t[18] !==
|
|
1110
|
+
t[18] !== s || t[19] !== e.disabled || t[20] !== S ? (w = /* @__PURE__ */ Q(c, {
|
|
1111
1111
|
size: "compact",
|
|
1112
1112
|
font: "mono",
|
|
1113
1113
|
className: "min-w-0 flex-1",
|
|
1114
|
-
placeholder:
|
|
1114
|
+
placeholder: S,
|
|
1115
1115
|
inputMode: "decimal",
|
|
1116
|
-
value:
|
|
1116
|
+
value: s,
|
|
1117
1117
|
disabled: e.disabled,
|
|
1118
1118
|
onChange: C
|
|
1119
|
-
}), t[18] =
|
|
1119
|
+
}), t[18] = s, t[19] = e.disabled, t[20] = S, t[21] = w) : w = t[21];
|
|
1120
1120
|
let T;
|
|
1121
|
-
t[22] !==
|
|
1121
|
+
t[22] !== x || t[23] !== w ? (T = /* @__PURE__ */ $("div", {
|
|
1122
1122
|
className: "flex gap-1.5",
|
|
1123
|
-
children: [
|
|
1124
|
-
}), t[22] =
|
|
1123
|
+
children: [x, w]
|
|
1124
|
+
}), t[22] = x, t[23] = w, t[24] = T) : T = t[24];
|
|
1125
1125
|
let E = e.disabled, D;
|
|
1126
1126
|
t[25] === e ? D = t[26] : (D = (t) => {
|
|
1127
1127
|
let n = it.find((e) => e.label === t);
|
|
1128
|
-
n && (
|
|
1128
|
+
n && (o(String(n.latitude)), l(String(n.longitude)), e.onSet(n.latitude, n.longitude));
|
|
1129
1129
|
}, t[25] = e, t[26] = D);
|
|
1130
1130
|
let O;
|
|
1131
1131
|
t[27] === n ? O = t[28] : (O = n("Location preset"), t[27] = n, t[28] = O);
|
|
1132
1132
|
let k;
|
|
1133
1133
|
t[29] === Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ Q(G, { children: /* @__PURE__ */ Q("span", {
|
|
1134
1134
|
className: "text-muted-foreground",
|
|
1135
|
-
children: /* @__PURE__ */ Q(
|
|
1135
|
+
children: /* @__PURE__ */ Q(_, { children: "Preset…" })
|
|
1136
1136
|
}) }), t[29] = k) : k = t[29];
|
|
1137
1137
|
let A;
|
|
1138
1138
|
t[30] === O ? A = t[31] : (A = /* @__PURE__ */ Q(K, {
|
|
@@ -1142,10 +1142,10 @@ function dt(e) {
|
|
|
1142
1142
|
children: k
|
|
1143
1143
|
}), t[30] = O, t[31] = A);
|
|
1144
1144
|
let j;
|
|
1145
|
-
t[32] ===
|
|
1145
|
+
t[32] === i ? j = t[33] : (j = it.map((e) => /* @__PURE__ */ Q(W, {
|
|
1146
1146
|
value: e.label,
|
|
1147
|
-
children:
|
|
1148
|
-
}, e.label)), t[32] =
|
|
1147
|
+
children: i(e.label)
|
|
1148
|
+
}, e.label)), t[32] = i, t[33] = j);
|
|
1149
1149
|
let M;
|
|
1150
1150
|
t[34] === j ? M = t[35] : (M = /* @__PURE__ */ Q(le, {
|
|
1151
1151
|
align: "start",
|
|
@@ -1160,14 +1160,14 @@ function dt(e) {
|
|
|
1160
1160
|
children: [A, M]
|
|
1161
1161
|
}), t[36] = e.disabled, t[37] = D, t[38] = A, t[39] = M, t[40] = N) : N = t[40];
|
|
1162
1162
|
let P = e.disabled || !m, F;
|
|
1163
|
-
t[41] !==
|
|
1163
|
+
t[41] !== f.latitude || t[42] !== f.longitude || t[43] !== e ? (F = () => void e.onSet(f.latitude, f.longitude), t[41] = f.latitude, t[42] = f.longitude, t[43] = e, t[44] = F) : F = t[44];
|
|
1164
1164
|
let I;
|
|
1165
|
-
t[45] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Q(
|
|
1165
|
+
t[45] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Q(_, {
|
|
1166
1166
|
context: "verb, applies the location",
|
|
1167
1167
|
children: "Set"
|
|
1168
1168
|
}), t[45] = I) : I = t[45];
|
|
1169
1169
|
let L;
|
|
1170
|
-
t[46] !== P || t[47] !== F ? (L = /* @__PURE__ */ Q(
|
|
1170
|
+
t[46] !== P || t[47] !== F ? (L = /* @__PURE__ */ Q(v, {
|
|
1171
1171
|
size: "xs",
|
|
1172
1172
|
variant: "outline",
|
|
1173
1173
|
disabled: P,
|
|
@@ -1175,14 +1175,14 @@ function dt(e) {
|
|
|
1175
1175
|
children: I
|
|
1176
1176
|
}), t[46] = P, t[47] = F, t[48] = L) : L = t[48];
|
|
1177
1177
|
let R;
|
|
1178
|
-
t[49] === e ? R = t[50] : (R = e.canClear ? /* @__PURE__ */ Q(
|
|
1178
|
+
t[49] === e ? R = t[50] : (R = e.canClear ? /* @__PURE__ */ Q(v, {
|
|
1179
1179
|
size: "xs",
|
|
1180
1180
|
variant: "ghost",
|
|
1181
1181
|
disabled: e.disabled,
|
|
1182
1182
|
onClick: () => {
|
|
1183
|
-
|
|
1183
|
+
o(""), l(""), e.onClear();
|
|
1184
1184
|
},
|
|
1185
|
-
children: /* @__PURE__ */ Q(
|
|
1185
|
+
children: /* @__PURE__ */ Q(_, {
|
|
1186
1186
|
context: "verb, clears the location",
|
|
1187
1187
|
children: "Clear"
|
|
1188
1188
|
})
|
|
@@ -1197,61 +1197,61 @@ function dt(e) {
|
|
|
1197
1197
|
]
|
|
1198
1198
|
}), t[51] = N, t[52] = L, t[53] = R, t[54] = z) : z = t[54];
|
|
1199
1199
|
let B;
|
|
1200
|
-
return t[55] !== T || t[56] !== z || t[57] !==
|
|
1201
|
-
title:
|
|
1200
|
+
return t[55] !== T || t[56] !== z || t[57] !== g ? (B = /* @__PURE__ */ $(ot, {
|
|
1201
|
+
title: g,
|
|
1202
1202
|
children: [T, z]
|
|
1203
|
-
}), t[55] = T, t[56] = z, t[57] =
|
|
1203
|
+
}), t[55] = T, t[56] = z, t[57] = g, t[58] = B) : B = t[58], B;
|
|
1204
1204
|
}
|
|
1205
1205
|
function ft(e) {
|
|
1206
|
-
let t = Z(51), n =
|
|
1207
|
-
t[0] !==
|
|
1208
|
-
let
|
|
1209
|
-
t[3] !==
|
|
1210
|
-
let
|
|
1211
|
-
t[7] === n ?
|
|
1206
|
+
let t = Z(51), n = r(), [i, a] = X(""), [o, s] = X("camera"), l;
|
|
1207
|
+
t[0] !== i || t[1] !== e.defaultAppId ? (l = i.trim() || e.defaultAppId, t[0] = i, t[1] = e.defaultAppId, t[2] = l) : l = t[2];
|
|
1208
|
+
let u = l, d;
|
|
1209
|
+
t[3] !== o || t[4] !== e || t[5] !== u ? (d = (t) => void e.onDecide(u, o, t), t[3] = o, t[4] = e, t[5] = u, t[6] = d) : d = t[6];
|
|
1210
|
+
let f = d, p;
|
|
1211
|
+
t[7] === n ? p = t[8] : (p = n("Permissions"), t[7] = n, t[8] = p);
|
|
1212
1212
|
let m;
|
|
1213
1213
|
t[9] !== n || t[10] !== e.defaultAppId ? (m = e.defaultAppId || n("App ID"), t[9] = n, t[10] = e.defaultAppId, t[11] = m) : m = t[11];
|
|
1214
1214
|
let h;
|
|
1215
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = (e) =>
|
|
1215
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = (e) => a(e.target.value), t[12] = h) : h = t[12];
|
|
1216
1216
|
let g;
|
|
1217
|
-
t[13] !==
|
|
1217
|
+
t[13] !== i || t[14] !== e.disabled || t[15] !== m ? (g = /* @__PURE__ */ Q(c, {
|
|
1218
1218
|
size: "compact",
|
|
1219
1219
|
font: "mono",
|
|
1220
1220
|
placeholder: m,
|
|
1221
|
-
value:
|
|
1221
|
+
value: i,
|
|
1222
1222
|
disabled: e.disabled,
|
|
1223
1223
|
onChange: h
|
|
1224
|
-
}), t[13] =
|
|
1225
|
-
let v;
|
|
1226
|
-
t[17] === n ? v = t[18] : (v = n("Permission"), t[17] = n, t[18] = v);
|
|
1224
|
+
}), t[13] = i, t[14] = e.disabled, t[15] = m, t[16] = g) : g = t[16];
|
|
1227
1225
|
let y;
|
|
1228
|
-
t[
|
|
1226
|
+
t[17] === n ? y = t[18] : (y = n("Permission"), t[17] = n, t[18] = y);
|
|
1229
1227
|
let b;
|
|
1230
|
-
t[
|
|
1231
|
-
|
|
1232
|
-
|
|
1228
|
+
t[19] === Symbol.for("react.memo_cache_sentinel") ? (b = (e) => (s(e), Promise.resolve()), t[19] = b) : b = t[19];
|
|
1229
|
+
let x;
|
|
1230
|
+
t[20] !== o || t[21] !== e.disabled || t[22] !== e.permissions || t[23] !== y ? (x = /* @__PURE__ */ Q(lt, {
|
|
1231
|
+
ariaLabel: y,
|
|
1232
|
+
value: o,
|
|
1233
1233
|
options: e.permissions,
|
|
1234
1234
|
disabled: e.disabled,
|
|
1235
|
-
onChange:
|
|
1236
|
-
}), t[20] =
|
|
1237
|
-
let
|
|
1238
|
-
t[25] ===
|
|
1235
|
+
onChange: b
|
|
1236
|
+
}), t[20] = o, t[21] = e.disabled, t[22] = e.permissions, t[23] = y, t[24] = x) : x = t[24];
|
|
1237
|
+
let S = e.disabled || !u, C;
|
|
1238
|
+
t[25] === f ? C = t[26] : (C = () => f("grant"), t[25] = f, t[26] = C);
|
|
1239
1239
|
let w;
|
|
1240
|
-
t[27] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ Q(
|
|
1240
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ Q(_, { children: "Grant" }), t[27] = w) : w = t[27];
|
|
1241
1241
|
let T;
|
|
1242
|
-
t[28] !== C || t[29] !==
|
|
1242
|
+
t[28] !== C || t[29] !== S ? (T = /* @__PURE__ */ Q(v, {
|
|
1243
1243
|
size: "xs",
|
|
1244
1244
|
variant: "outline",
|
|
1245
|
-
disabled:
|
|
1245
|
+
disabled: S,
|
|
1246
1246
|
onClick: C,
|
|
1247
1247
|
children: w
|
|
1248
|
-
}), t[28] = C, t[29] =
|
|
1249
|
-
let E = e.disabled || !
|
|
1250
|
-
t[31] ===
|
|
1248
|
+
}), t[28] = C, t[29] = S, t[30] = T) : T = t[30];
|
|
1249
|
+
let E = e.disabled || !u, D;
|
|
1250
|
+
t[31] === f ? D = t[32] : (D = () => f("revoke"), t[31] = f, t[32] = D);
|
|
1251
1251
|
let O;
|
|
1252
|
-
t[33] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Q(
|
|
1252
|
+
t[33] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Q(_, { children: "Revoke" }), t[33] = O) : O = t[33];
|
|
1253
1253
|
let k;
|
|
1254
|
-
t[34] !== E || t[35] !== D ? (k = /* @__PURE__ */ Q(
|
|
1254
|
+
t[34] !== E || t[35] !== D ? (k = /* @__PURE__ */ Q(v, {
|
|
1255
1255
|
size: "xs",
|
|
1256
1256
|
variant: "outline",
|
|
1257
1257
|
disabled: E,
|
|
@@ -1259,37 +1259,37 @@ function ft(e) {
|
|
|
1259
1259
|
children: O
|
|
1260
1260
|
}), t[34] = E, t[35] = D, t[36] = k) : k = t[36];
|
|
1261
1261
|
let A;
|
|
1262
|
-
t[37] !==
|
|
1262
|
+
t[37] !== f || t[38] !== e.canReset || t[39] !== e.disabled || t[40] !== u ? (A = e.canReset ? /* @__PURE__ */ Q(v, {
|
|
1263
1263
|
size: "xs",
|
|
1264
1264
|
variant: "ghost",
|
|
1265
|
-
disabled: e.disabled || !
|
|
1266
|
-
onClick: () =>
|
|
1267
|
-
children: /* @__PURE__ */ Q(
|
|
1265
|
+
disabled: e.disabled || !u,
|
|
1266
|
+
onClick: () => f("reset"),
|
|
1267
|
+
children: /* @__PURE__ */ Q(_, {
|
|
1268
1268
|
context: "verb, resets the permission",
|
|
1269
1269
|
children: "Reset"
|
|
1270
1270
|
})
|
|
1271
|
-
}) : null, t[37] =
|
|
1271
|
+
}) : null, t[37] = f, t[38] = e.canReset, t[39] = e.disabled, t[40] = u, t[41] = A) : A = t[41];
|
|
1272
1272
|
let j;
|
|
1273
|
-
t[42] !== T || t[43] !== k || t[44] !== A || t[45] !==
|
|
1273
|
+
t[42] !== T || t[43] !== k || t[44] !== A || t[45] !== x ? (j = /* @__PURE__ */ $("div", {
|
|
1274
1274
|
className: "flex flex-wrap items-center gap-1.5",
|
|
1275
1275
|
children: [
|
|
1276
|
-
|
|
1276
|
+
x,
|
|
1277
1277
|
T,
|
|
1278
1278
|
k,
|
|
1279
1279
|
A
|
|
1280
1280
|
]
|
|
1281
|
-
}), t[42] = T, t[43] = k, t[44] = A, t[45] =
|
|
1281
|
+
}), t[42] = T, t[43] = k, t[44] = A, t[45] = x, t[46] = j) : j = t[46];
|
|
1282
1282
|
let M;
|
|
1283
|
-
return t[47] !== j || t[48] !==
|
|
1284
|
-
title:
|
|
1283
|
+
return t[47] !== j || t[48] !== p || t[49] !== g ? (M = /* @__PURE__ */ $(ot, {
|
|
1284
|
+
title: p,
|
|
1285
1285
|
children: [g, j]
|
|
1286
|
-
}), t[47] = j, t[48] =
|
|
1286
|
+
}), t[47] = j, t[48] = p, t[49] = g, t[50] = M) : M = t[50], M;
|
|
1287
1287
|
}
|
|
1288
1288
|
function pt(e) {
|
|
1289
1289
|
let t = Z(12), [n, r] = X(!1), i;
|
|
1290
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q(
|
|
1290
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q(_, { children: "Event log" }), t[0] = i) : i = t[0];
|
|
1291
1291
|
let a = n && "rotate-180", o;
|
|
1292
|
-
t[1] === a ? o = t[2] : (o =
|
|
1292
|
+
t[1] === a ? o = t[2] : (o = x("ml-auto size-3.5 transition-transform", a), t[1] = a, t[2] = o);
|
|
1293
1293
|
let s;
|
|
1294
1294
|
t[3] === o ? s = t[4] : (s = /* @__PURE__ */ $(ze, {
|
|
1295
1295
|
className: "flex w-full items-center gap-1.5 border-b px-3 py-2.5 text-left text-xs font-medium text-muted-foreground",
|
|
@@ -1314,16 +1314,16 @@ function mt(e) {
|
|
|
1314
1314
|
platform: e.device.platform,
|
|
1315
1315
|
deviceId: e.device.id
|
|
1316
1316
|
}), t[0] = e.access, t[1] = e.device.id, t[2] = e.device.platform, t[3] = n) : n = t[3];
|
|
1317
|
-
let r =
|
|
1318
|
-
t[4] === r ?
|
|
1317
|
+
let r = l(n), i;
|
|
1318
|
+
t[4] === r ? i = t[5] : (i = r.length === 0 ? /* @__PURE__ */ Q("li", {
|
|
1319
1319
|
className: "text-muted-foreground",
|
|
1320
|
-
children: /* @__PURE__ */ Q(
|
|
1321
|
-
}) : r.map(ht), t[4] = r, t[5] =
|
|
1322
|
-
let
|
|
1323
|
-
return t[6] ===
|
|
1320
|
+
children: /* @__PURE__ */ Q(_, { children: "No events yet." })
|
|
1321
|
+
}) : r.map(ht), t[4] = r, t[5] = i);
|
|
1322
|
+
let a;
|
|
1323
|
+
return t[6] === i ? a = t[7] : (a = /* @__PURE__ */ Q("ol", {
|
|
1324
1324
|
className: "max-h-64 overflow-y-auto px-3 py-2 font-mono text-2xs leading-relaxed",
|
|
1325
|
-
children:
|
|
1326
|
-
}), t[6] =
|
|
1325
|
+
children: i
|
|
1326
|
+
}), t[6] = i, t[7] = a), a;
|
|
1327
1327
|
}
|
|
1328
1328
|
function ht(e) {
|
|
1329
1329
|
return /* @__PURE__ */ $("li", {
|
|
@@ -1339,29 +1339,29 @@ function ht(e) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
// src/components/device/useDeviceControls.ts
|
|
1341
1341
|
function gt(e) {
|
|
1342
|
-
let t = Z(20), { environmentId: n, device: r, access:
|
|
1342
|
+
let t = Z(20), { environmentId: n, device: r, access: i, visible: a } = e, s;
|
|
1343
1343
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = { reportFailure: !1 }, t[0] = s) : s = t[0];
|
|
1344
|
-
let c = de(Y.action, s), { hostId:
|
|
1344
|
+
let c = de(Y.action, s), { hostId: u, id: d } = r, f = {
|
|
1345
1345
|
environmentId: n,
|
|
1346
|
-
hostId:
|
|
1347
|
-
deviceId:
|
|
1348
|
-
}, { detail:
|
|
1349
|
-
|
|
1346
|
+
hostId: u,
|
|
1347
|
+
deviceId: d
|
|
1348
|
+
}, { detail: p, error: m } = l(be(f)), h = g(be(f));
|
|
1349
|
+
o(a ? Ne(f) : xe);
|
|
1350
1350
|
let _;
|
|
1351
|
-
t[1] !==
|
|
1352
|
-
access:
|
|
1351
|
+
t[1] !== i || t[2] !== r.platform || t[3] !== d || t[4] !== a ? (_ = i && a ? Se({
|
|
1352
|
+
access: i,
|
|
1353
1353
|
platform: r.platform,
|
|
1354
|
-
deviceId:
|
|
1355
|
-
}) : ke, t[1] =
|
|
1356
|
-
let v =
|
|
1357
|
-
t[6] !== S || t[7] !==
|
|
1354
|
+
deviceId: d
|
|
1355
|
+
}) : ke, t[1] = i, t[2] = r.platform, t[3] = d, t[4] = a, t[5] = _) : _ = t[5];
|
|
1356
|
+
let v = l(_), [y, b] = X(!1), x = We(!1), S = p !== null && a, C;
|
|
1357
|
+
t[6] !== S || t[7] !== d || t[8] !== n || t[9] !== u || t[10] !== c || t[11] !== h ? (C = async (e) => x.current || !S ? !1 : (x.current = !0, b(!0), h(_t), c({
|
|
1358
1358
|
environmentId: n,
|
|
1359
1359
|
input: {
|
|
1360
|
-
hostId:
|
|
1361
|
-
deviceId:
|
|
1360
|
+
hostId: u,
|
|
1361
|
+
deviceId: d,
|
|
1362
1362
|
...e
|
|
1363
1363
|
}
|
|
1364
|
-
}).then((e) => (
|
|
1364
|
+
}).then((e) => (h((t) => e._tag === "Success" ? {
|
|
1365
1365
|
detail: e.value,
|
|
1366
1366
|
error: null
|
|
1367
1367
|
} : {
|
|
@@ -1369,16 +1369,16 @@ function gt(e) {
|
|
|
1369
1369
|
error: q(e.cause)
|
|
1370
1370
|
}), e._tag === "Success")).finally(() => {
|
|
1371
1371
|
x.current = !1, b(!1);
|
|
1372
|
-
})), t[6] = S, t[7] =
|
|
1373
|
-
let w = C, T = y || !
|
|
1374
|
-
return t[13] !== w || t[14] !==
|
|
1375
|
-
detail:
|
|
1372
|
+
})), t[6] = S, t[7] = d, t[8] = n, t[9] = u, t[10] = c, t[11] = h, t[12] = C) : C = t[12];
|
|
1373
|
+
let w = C, T = y || !p || !a, E = v === void 0 ? p?.foregroundApp ?? null : v, D;
|
|
1374
|
+
return t[13] !== w || t[14] !== p || t[15] !== m || t[16] !== y || t[17] !== T || t[18] !== E ? (D = {
|
|
1375
|
+
detail: p,
|
|
1376
1376
|
pending: y,
|
|
1377
|
-
error:
|
|
1377
|
+
error: m,
|
|
1378
1378
|
act: w,
|
|
1379
1379
|
disabled: T,
|
|
1380
1380
|
foregroundApp: E
|
|
1381
|
-
}, t[13] = w, t[14] =
|
|
1381
|
+
}, t[13] = w, t[14] = p, t[15] = m, t[16] = y, t[17] = T, t[18] = E, t[19] = D) : D = t[19], D;
|
|
1382
1382
|
}
|
|
1383
1383
|
function _t(e) {
|
|
1384
1384
|
return {
|
|
@@ -1389,15 +1389,15 @@ function _t(e) {
|
|
|
1389
1389
|
// src/components/device/DeviceWorkspace.tsx
|
|
1390
1390
|
var vt = E(Je), yt = 6e4;
|
|
1391
1391
|
function bt(e) {
|
|
1392
|
-
let n = Z(50),
|
|
1392
|
+
let n = Z(50), i = r(), [a, o] = X(!1), [s, c] = X(!1), [l, u] = X(!1), [d, f] = X(null), p = We(!1), m = Pe(e.environmentId, e.device.hostId), h = e.hostKind === "local" || e.hostKind === "ssh", g = e.visible && h, _;
|
|
1393
1393
|
n[0] !== m || n[1] !== e || n[2] !== g ? (_ = {
|
|
1394
1394
|
...e,
|
|
1395
1395
|
access: m,
|
|
1396
1396
|
visible: g
|
|
1397
1397
|
}, n[0] = m, n[1] = e, n[2] = g, n[3] = _) : _ = n[3];
|
|
1398
1398
|
let v = gt(_), y;
|
|
1399
|
-
n[4] !== m || n[5] !==
|
|
1400
|
-
if (m && !
|
|
1399
|
+
n[4] !== m || n[5] !== i || n[6] !== e.device.id || n[7] !== e.device.name || n[8] !== e.device.platform || n[9] !== e.environmentId || n[10] !== e.visible ? (y = () => {
|
|
1400
|
+
if (m && !p.current && e.visible) return p.current = !0, u(!0), f(null), Ye({
|
|
1401
1401
|
access: m,
|
|
1402
1402
|
platform: e.device.platform,
|
|
1403
1403
|
deviceId: e.device.id
|
|
@@ -1405,34 +1405,34 @@ function bt(e) {
|
|
|
1405
1405
|
let n = URL.createObjectURL(t), r = document.createElement("a");
|
|
1406
1406
|
r.href = n, r.download = `${e.device.name.replace(/[^a-z0-9-]/gi, "-")}-${Date.now()}.png`, document.body.append(r), r.click(), r.remove(), window.setTimeout(() => URL.revokeObjectURL(n), yt);
|
|
1407
1407
|
}).catch((n) => {
|
|
1408
|
-
vt(n) && n.status === 401 && ve(e.environmentId),
|
|
1408
|
+
vt(n) && n.status === 401 && ve(e.environmentId), f(O(n, t) ?? i("Screenshot capture failed. Try again."));
|
|
1409
1409
|
}).finally(() => {
|
|
1410
|
-
|
|
1410
|
+
p.current = !1, u(!1);
|
|
1411
1411
|
});
|
|
1412
|
-
}, n[4] = m, n[5] =
|
|
1412
|
+
}, n[4] = m, n[5] = i, n[6] = e.device.id, n[7] = e.device.name, n[8] = e.device.platform, n[9] = e.environmentId, n[10] = e.visible, n[11] = y) : y = n[11];
|
|
1413
1413
|
let b = y, x;
|
|
1414
|
-
n[12] !== v || n[13] !==
|
|
1414
|
+
n[12] !== v || n[13] !== d || n[14] !== a ? (x = d || v.error && !a ? /* @__PURE__ */ Q("p", {
|
|
1415
1415
|
role: "alert",
|
|
1416
1416
|
className: "px-3 py-2 text-xs text-destructive",
|
|
1417
|
-
children:
|
|
1418
|
-
}) : null, n[12] = v, n[13] =
|
|
1417
|
+
children: d ?? v.error
|
|
1418
|
+
}) : null, n[12] = v, n[13] = d, n[14] = a, n[15] = x) : x = n[15];
|
|
1419
1419
|
let S = `${e.hostLabel} · ${e.device.version}`, C = e.hostKind === "simlock", w;
|
|
1420
|
-
n[16] !== v || n[17] !== e.device.platform || n[18] !== e.hostKind || n[19] !== e.onClose || n[20] !== e.onFloat || n[21] !== e.onPowerOff || n[22] !== b || n[23] !==
|
|
1420
|
+
n[16] !== v || n[17] !== e.device.platform || n[18] !== e.hostKind || n[19] !== e.onClose || n[20] !== e.onFloat || n[21] !== e.onPowerOff || n[22] !== b || n[23] !== l || n[24] !== a ? (w = (t) => /* @__PURE__ */ Q(Xe, {
|
|
1421
1421
|
platform: e.device.platform,
|
|
1422
1422
|
hostKind: e.hostKind,
|
|
1423
1423
|
handle: t.handle,
|
|
1424
1424
|
view: t,
|
|
1425
1425
|
controls: v,
|
|
1426
|
-
screenshotPending:
|
|
1426
|
+
screenshotPending: l,
|
|
1427
1427
|
onScreenshot: () => void b(),
|
|
1428
|
-
toolsOpen:
|
|
1429
|
-
onTools: () =>
|
|
1428
|
+
toolsOpen: a,
|
|
1429
|
+
onTools: () => o(!a),
|
|
1430
1430
|
onFloat: e.onFloat,
|
|
1431
1431
|
onClose: e.onClose,
|
|
1432
1432
|
onPowerOff: e.onPowerOff
|
|
1433
|
-
}), n[16] = v, n[17] = e.device.platform, n[18] = e.hostKind, n[19] = e.onClose, n[20] = e.onFloat, n[21] = e.onPowerOff, n[22] = b, n[23] =
|
|
1433
|
+
}), n[16] = v, n[17] = e.device.platform, n[18] = e.hostKind, n[19] = e.onClose, n[20] = e.onFloat, n[21] = e.onPowerOff, n[22] = b, n[23] = l, n[24] = a, n[25] = w) : w = n[25];
|
|
1434
1434
|
let T;
|
|
1435
|
-
n[26] !==
|
|
1435
|
+
n[26] !== s || n[27] !== e.device.hostId || n[28] !== e.device.id || n[29] !== e.device.name || n[30] !== e.device.platform || n[31] !== e.environmentId || n[32] !== e.visible || n[33] !== S || n[34] !== C || n[35] !== w ? (T = /* @__PURE__ */ Q("div", {
|
|
1436
1436
|
className: "min-h-0 flex-1",
|
|
1437
1437
|
children: /* @__PURE__ */ Q(Me, {
|
|
1438
1438
|
environmentId: e.environmentId,
|
|
@@ -1443,90 +1443,90 @@ function bt(e) {
|
|
|
1443
1443
|
hostId: e.device.hostId,
|
|
1444
1444
|
visible: e.visible,
|
|
1445
1445
|
serveSimOnly: C,
|
|
1446
|
-
axOverlay:
|
|
1446
|
+
axOverlay: s,
|
|
1447
1447
|
allowPhoneView: !0,
|
|
1448
1448
|
renderControls: w
|
|
1449
1449
|
})
|
|
1450
|
-
}), n[26] =
|
|
1450
|
+
}), n[26] = s, n[27] = e.device.hostId, n[28] = e.device.id, n[29] = e.device.name, n[30] = e.device.platform, n[31] = e.environmentId, n[32] = e.visible, n[33] = S, n[34] = C, n[35] = w, n[36] = T) : T = n[36];
|
|
1451
1451
|
let E;
|
|
1452
1452
|
n[37] !== x || n[38] !== T ? (E = /* @__PURE__ */ $("div", {
|
|
1453
1453
|
className: "relative flex min-h-0 min-w-0 flex-1 flex-col",
|
|
1454
1454
|
children: [x, T]
|
|
1455
1455
|
}), n[37] = x, n[38] = T, n[39] = E) : E = n[39];
|
|
1456
1456
|
let D;
|
|
1457
|
-
n[40] !== m || n[41] !==
|
|
1457
|
+
n[40] !== m || n[41] !== s || n[42] !== v || n[43] !== e.device || n[44] !== e.hostDiagnostics || n[45] !== a ? (D = a ? /* @__PURE__ */ Q(at, {
|
|
1458
1458
|
device: e.device,
|
|
1459
1459
|
controls: v,
|
|
1460
1460
|
hostDiagnostics: e.hostDiagnostics,
|
|
1461
1461
|
access: m,
|
|
1462
|
-
axOverlay:
|
|
1463
|
-
onAxOverlayChange:
|
|
1464
|
-
onClose: () =>
|
|
1462
|
+
axOverlay: s,
|
|
1463
|
+
onAxOverlayChange: c,
|
|
1464
|
+
onClose: () => o(!1),
|
|
1465
1465
|
className: "absolute inset-y-0 right-0 z-10 w-full max-w-72 border-l shadow-lg @[700px]:static @[700px]:w-72 @[700px]:shrink-0 @[700px]:shadow-none"
|
|
1466
|
-
}) : null, n[40] = m, n[41] =
|
|
1466
|
+
}) : null, n[40] = m, n[41] = s, n[42] = v, n[43] = e.device, n[44] = e.hostDiagnostics, n[45] = a, n[46] = D) : D = n[46];
|
|
1467
1467
|
let k;
|
|
1468
1468
|
return n[47] !== E || n[48] !== D ? (k = /* @__PURE__ */ $(Ge, { children: [E, D] }), n[47] = E, n[48] = D, n[49] = k) : k = n[49], k;
|
|
1469
1469
|
}
|
|
1470
1470
|
// src/components/device/DevicePanel.tsx
|
|
1471
1471
|
var xt = (e) => `${e.hostId}\u0000${e.id}`;
|
|
1472
1472
|
function St(e) {
|
|
1473
|
-
let t = Z(89), { environmentId: n, threadId:
|
|
1474
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1475
|
-
let
|
|
1473
|
+
let t = Z(89), { environmentId: n, threadId: i } = e.threadRef, a = r(), { state: s, loaded: c, error: l, refresh: d } = ye(n), f;
|
|
1474
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (f = { reportFailure: !1 }, t[0] = f) : f = t[0];
|
|
1475
|
+
let p = de(Y.list, f), m = de(Y.open), h = de(Y.close), g = `${n}\u0000${i}`, [y, b] = X(null), C = y?.scope === g ? y.pending : null, w = y?.scope === g ? y.error : null, T;
|
|
1476
1476
|
t[1] === C ? T = t[2] : (T = C ? xt(C) : null, t[1] = C, t[2] = T);
|
|
1477
|
-
let E = T, D =
|
|
1478
|
-
t[3] !== n || t[4] !== D || t[5] !==
|
|
1477
|
+
let E = T, D = s.hostStatus === "disabled", O;
|
|
1478
|
+
t[3] !== n || t[4] !== D || t[5] !== c || t[6] !== e.visible ? (O = e.visible && c && !D ? Fe(n) : Te, t[3] = n, t[4] = D, t[5] = c, t[6] = e.visible, t[7] = O) : O = t[7], o(O);
|
|
1479
1479
|
let k;
|
|
1480
|
-
if (t[8] !== e.surface.target || t[9] !==
|
|
1480
|
+
if (t[8] !== e.surface.target || t[9] !== s.sessions || t[10] !== i) {
|
|
1481
1481
|
let n;
|
|
1482
|
-
t[12] ===
|
|
1483
|
-
let
|
|
1484
|
-
k = e.surface.target ?
|
|
1482
|
+
t[12] === i ? n = t[13] : (n = (e) => e.threadId === i, t[12] = i, t[13] = n);
|
|
1483
|
+
let r = s.sessions.filter(n);
|
|
1484
|
+
k = e.surface.target ? r.find((t) => t.deviceId === e.surface.target?.deviceId && t.hostId === e.surface.target.hostId) : void 0, t[8] = e.surface.target, t[9] = s.sessions, t[10] = i, t[11] = k;
|
|
1485
1485
|
} else k = t[11];
|
|
1486
1486
|
let j = k, M, N, P, F, I, L, R;
|
|
1487
|
-
if (t[14] !== j || t[15] !==
|
|
1487
|
+
if (t[14] !== j || t[15] !== h || t[16] !== n || t[17] !== a || t[18] !== D || t[19] !== p || t[20] !== c || t[21] !== m || t[22] !== w || t[23] !== C || t[24] !== E || t[25] !== e || t[26] !== d || t[27] !== g || t[28] !== s || t[29] !== l || t[30] !== i) {
|
|
1488
1488
|
R = Symbol.for("react.early_return_sentinel");
|
|
1489
1489
|
bb0: {
|
|
1490
|
-
let
|
|
1491
|
-
t[38] ===
|
|
1490
|
+
let r = j ? s.devices.find((e) => e.hostId === j.hostId && e.id === j.deviceId) : void 0, o = r ? s.hosts.find((e) => e.id === r.hostId) : void 0, f = jt(s), y;
|
|
1491
|
+
t[38] === g ? y = t[39] : (y = (e) => {
|
|
1492
1492
|
let t = {
|
|
1493
|
-
scope:
|
|
1493
|
+
scope: g,
|
|
1494
1494
|
pending: e,
|
|
1495
1495
|
error: null
|
|
1496
1496
|
};
|
|
1497
|
-
return
|
|
1497
|
+
return b(t), (e) => b((n) => n === t ? {
|
|
1498
1498
|
...t,
|
|
1499
1499
|
pending: null,
|
|
1500
1500
|
error: e
|
|
1501
1501
|
} : n);
|
|
1502
|
-
}, t[38] =
|
|
1502
|
+
}, t[38] = g, t[39] = y);
|
|
1503
1503
|
let T = y, O;
|
|
1504
|
-
t[40] !== n || t[41] !==
|
|
1505
|
-
let
|
|
1506
|
-
if (!
|
|
1507
|
-
let
|
|
1504
|
+
t[40] !== n || t[41] !== m || t[42] !== e.threadRef || t[43] !== T || t[44] !== s.devices || t[45] !== i ? (O = async (t) => {
|
|
1505
|
+
let r = s.devices.find((e) => xt(e) === t);
|
|
1506
|
+
if (!r) return;
|
|
1507
|
+
let a = T(r), o = await m({
|
|
1508
1508
|
environmentId: n,
|
|
1509
1509
|
input: {
|
|
1510
|
-
threadId:
|
|
1511
|
-
hostId:
|
|
1512
|
-
deviceId:
|
|
1513
|
-
platform:
|
|
1510
|
+
threadId: i,
|
|
1511
|
+
hostId: r.hostId,
|
|
1512
|
+
deviceId: r.id,
|
|
1513
|
+
platform: r.platform
|
|
1514
1514
|
}
|
|
1515
1515
|
});
|
|
1516
|
-
|
|
1517
|
-
hostId:
|
|
1518
|
-
deviceId:
|
|
1519
|
-
platform:
|
|
1520
|
-
name:
|
|
1521
|
-
}),
|
|
1522
|
-
}, t[40] = n, t[41] =
|
|
1516
|
+
o._tag === "Failure" ? a(q(o.cause)) : (J.getState().openDevice(e.threadRef, {
|
|
1517
|
+
hostId: o.value.hostId,
|
|
1518
|
+
deviceId: o.value.deviceId,
|
|
1519
|
+
platform: r.platform,
|
|
1520
|
+
name: r.name
|
|
1521
|
+
}), a(null));
|
|
1522
|
+
}, t[40] = n, t[41] = m, t[42] = e.threadRef, t[43] = T, t[44] = s.devices, t[45] = i, t[46] = O) : O = t[46];
|
|
1523
1523
|
let k = O, z = () => {
|
|
1524
|
-
|
|
1524
|
+
r && (fe.getState().open(e.threadRef, {
|
|
1525
1525
|
kind: "device",
|
|
1526
|
-
hostId:
|
|
1527
|
-
deviceId:
|
|
1528
|
-
platform:
|
|
1529
|
-
name:
|
|
1526
|
+
hostId: r.hostId,
|
|
1527
|
+
deviceId: r.id,
|
|
1528
|
+
platform: r.platform,
|
|
1529
|
+
name: r.name
|
|
1530
1530
|
}), J.getState().close(e.threadRef));
|
|
1531
1531
|
}, B;
|
|
1532
1532
|
t[47] !== e.surface.id || t[48] !== e.threadRef ? (B = () => {
|
|
@@ -1534,17 +1534,17 @@ function St(e) {
|
|
|
1534
1534
|
t.closeSurface(e.threadRef, e.surface.id), ge(e.threadRef, n);
|
|
1535
1535
|
}, t[47] = e.surface.id, t[48] = e.threadRef, t[49] = B) : B = t[49];
|
|
1536
1536
|
let V = B, ee;
|
|
1537
|
-
t[50] !== j || t[51] !==
|
|
1537
|
+
t[50] !== j || t[51] !== h || t[52] !== V || t[53] !== n || t[54] !== T || t[55] !== i ? (ee = (e) => {
|
|
1538
1538
|
if (!e) {
|
|
1539
1539
|
V();
|
|
1540
1540
|
return;
|
|
1541
1541
|
}
|
|
1542
1542
|
if (!j) return;
|
|
1543
1543
|
let t = T(null);
|
|
1544
|
-
|
|
1544
|
+
h({
|
|
1545
1545
|
environmentId: n,
|
|
1546
1546
|
input: {
|
|
1547
|
-
threadId:
|
|
1547
|
+
threadId: i,
|
|
1548
1548
|
hostId: j.hostId,
|
|
1549
1549
|
deviceId: j.deviceId,
|
|
1550
1550
|
shutdown: e
|
|
@@ -1552,119 +1552,119 @@ function St(e) {
|
|
|
1552
1552
|
}).then((e) => {
|
|
1553
1553
|
e._tag === "Failure" ? t(q(e.cause)) : V();
|
|
1554
1554
|
});
|
|
1555
|
-
}, t[50] = j, t[51] =
|
|
1556
|
-
let H = ee, te =
|
|
1557
|
-
t[57] !==
|
|
1558
|
-
let t =
|
|
1559
|
-
return n && (t?.status ??
|
|
1555
|
+
}, t[50] = j, t[51] = h, t[52] = V, t[53] = n, t[54] = T, t[55] = i, t[56] = ee) : ee = t[56];
|
|
1556
|
+
let H = ee, te = s.bootingDevices?.filter((e) => e.threadId === i) ?? [], { ready: re, busy: ae } = we(s), oe = !r && (C !== null || ae || !c), se = c ? null : l, U;
|
|
1557
|
+
t[57] !== s.hostStatus || t[58] !== s.hostStatusDetail || t[59] !== s.hostStatuses ? (U = (e) => {
|
|
1558
|
+
let t = s.hostStatuses[e.id], n = t?.detail ?? (e.kind === "local" ? s.hostStatusDetail : void 0);
|
|
1559
|
+
return n && (t?.status ?? s.hostStatus) === "ready" ? [{
|
|
1560
1560
|
hostId: e.id,
|
|
1561
1561
|
label: e.label,
|
|
1562
1562
|
detail: n,
|
|
1563
1563
|
incompletePlatforms: Ae(t)
|
|
1564
1564
|
}] : [];
|
|
1565
|
-
}, t[57] =
|
|
1566
|
-
let ce =
|
|
1567
|
-
if (
|
|
1565
|
+
}, t[57] = s.hostStatus, t[58] = s.hostStatusDetail, t[59] = s.hostStatuses, t[60] = U) : U = t[60];
|
|
1566
|
+
let ce = s.hosts.flatMap(U), W = s.hosts.flatMap(Et);
|
|
1567
|
+
if (c && (!s.onboardingCompleted || D)) {
|
|
1568
1568
|
let r;
|
|
1569
1569
|
t[61] === e ? r = t[62] : (r = (t) => {
|
|
1570
1570
|
t || e.onDismissSetup();
|
|
1571
1571
|
}, t[61] = e, t[62] = r);
|
|
1572
1572
|
let i;
|
|
1573
|
-
t[63] !== n || t[64] !==
|
|
1573
|
+
t[63] !== n || t[64] !== s ? (i = /* @__PURE__ */ Q(Ve, { children: /* @__PURE__ */ Q(Ce, {
|
|
1574
1574
|
environmentId: n,
|
|
1575
|
-
state:
|
|
1576
|
-
}) }), t[63] = n, t[64] =
|
|
1577
|
-
let
|
|
1578
|
-
t[66] !== e.visible || t[67] !== r || t[68] !== i ? (
|
|
1575
|
+
state: s
|
|
1576
|
+
}) }), t[63] = n, t[64] = s, t[65] = i) : i = t[65];
|
|
1577
|
+
let a;
|
|
1578
|
+
t[66] !== e.visible || t[67] !== r || t[68] !== i ? (a = /* @__PURE__ */ Q(_e, {
|
|
1579
1579
|
open: e.visible,
|
|
1580
1580
|
onOpenChange: r,
|
|
1581
1581
|
children: i
|
|
1582
|
-
}), t[66] = e.visible, t[67] = r, t[68] = i, t[69] =
|
|
1582
|
+
}), t[66] = e.visible, t[67] = r, t[68] = i, t[69] = a) : a = t[69], R = a;
|
|
1583
1583
|
break bb0;
|
|
1584
1584
|
}
|
|
1585
1585
|
M = pe, L = e.mode, F = "relative flex min-h-0 flex-1 flex-col";
|
|
1586
1586
|
let G;
|
|
1587
|
-
t[70] !== n || t[71] !==
|
|
1587
|
+
t[70] !== n || t[71] !== p ? (G = (e) => /* @__PURE__ */ Q(kt, {
|
|
1588
1588
|
label: e.label,
|
|
1589
1589
|
detail: e.detail,
|
|
1590
1590
|
incompletePlatforms: e.incompletePlatforms,
|
|
1591
|
-
onRetry: () =>
|
|
1591
|
+
onRetry: () => p({
|
|
1592
1592
|
environmentId: n,
|
|
1593
1593
|
input: {}
|
|
1594
1594
|
})
|
|
1595
|
-
}, `${n}\u0000${e.hostId}`), t[70] = n, t[71] =
|
|
1595
|
+
}, `${n}\u0000${e.hostId}`), t[70] = n, t[71] = p, t[72] = G) : G = t[72];
|
|
1596
1596
|
let le;
|
|
1597
|
-
t[73] !== n || t[74] !==
|
|
1598
|
-
state:
|
|
1597
|
+
t[73] !== n || t[74] !== s ? (le = /* @__PURE__ */ Q(Ee, {
|
|
1598
|
+
state: s,
|
|
1599
1599
|
environmentId: n
|
|
1600
|
-
}), t[73] = n, t[74] =
|
|
1600
|
+
}), t[73] = n, t[74] = s, t[75] = le) : le = t[75];
|
|
1601
1601
|
let K;
|
|
1602
1602
|
t[76] === w ? K = t[77] : (K = w ? /* @__PURE__ */ Q(Ot, {
|
|
1603
|
-
onDismiss: () =>
|
|
1603
|
+
onDismiss: () => b(null),
|
|
1604
1604
|
children: w
|
|
1605
1605
|
}) : null, t[76] = w, t[77] = K), I = /* @__PURE__ */ $("div", {
|
|
1606
|
-
className:
|
|
1606
|
+
className: x("shrink-0 bg-background", oe && "absolute inset-x-0 top-0 z-10 max-h-[40%] overflow-y-auto"),
|
|
1607
1607
|
children: [
|
|
1608
1608
|
/* @__PURE__ */ Q("div", {
|
|
1609
|
-
hidden: !!
|
|
1609
|
+
hidden: !!r,
|
|
1610
1610
|
children: ce.map(G)
|
|
1611
1611
|
}),
|
|
1612
1612
|
le,
|
|
1613
1613
|
te.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
1614
1614
|
role: "status",
|
|
1615
1615
|
className: "border-b px-3 py-2 text-xs text-muted-foreground",
|
|
1616
|
-
children: /* @__PURE__ */ $(
|
|
1616
|
+
children: /* @__PURE__ */ $(_, { children: [
|
|
1617
1617
|
"Starting ",
|
|
1618
|
-
/* @__PURE__ */ Q(
|
|
1618
|
+
/* @__PURE__ */ Q(S, { children: te.map(Tt).join(", ") }),
|
|
1619
1619
|
"… This can take a minute."
|
|
1620
1620
|
] })
|
|
1621
1621
|
}) : null,
|
|
1622
1622
|
K
|
|
1623
1623
|
]
|
|
1624
|
-
}), N = "@container relative flex min-h-0 flex-1", P =
|
|
1624
|
+
}), N = "@container relative flex min-h-0 flex-1", P = r && j ? /* @__PURE__ */ Q(bt, {
|
|
1625
1625
|
environmentId: n,
|
|
1626
|
-
device:
|
|
1627
|
-
hostLabel:
|
|
1628
|
-
hostKind:
|
|
1626
|
+
device: r,
|
|
1627
|
+
hostLabel: o?.label ?? a("Device host"),
|
|
1628
|
+
hostKind: o?.kind,
|
|
1629
1629
|
hostDiagnostics: ce.find((e) => {
|
|
1630
1630
|
let { hostId: t } = e;
|
|
1631
|
-
return t ===
|
|
1631
|
+
return t === r.hostId;
|
|
1632
1632
|
})?.detail,
|
|
1633
1633
|
visible: e.visible,
|
|
1634
1634
|
onFloat: z,
|
|
1635
1635
|
onClose: () => H(!1),
|
|
1636
1636
|
onPowerOff: () => H(!0)
|
|
1637
|
-
}, `${n}\u0000${xt(
|
|
1638
|
-
name: C?.name ??
|
|
1639
|
-
description: C ? `${
|
|
1637
|
+
}, `${n}\u0000${xt(r)}`) : oe ? /* @__PURE__ */ Q(De, {
|
|
1638
|
+
name: C?.name ?? a("Devices"),
|
|
1639
|
+
description: C ? `${s.hosts.find((e) => e.id === C.hostId)?.label ?? a("Device host")} · ${C.version}` : "",
|
|
1640
1640
|
stage: "opening",
|
|
1641
|
-
message: se ?? (C ? C.booted ?
|
|
1641
|
+
message: se ?? (C ? C.booted ? a("Opening device…") : a("Starting device…") : s.hostStatus === "installing" ? s.hostStatusDetail ?? a("Installing device support…") : a("Finding devices…")),
|
|
1642
1642
|
error: se !== null,
|
|
1643
|
-
children: se === null ? null : /* @__PURE__ */ Q(
|
|
1643
|
+
children: se === null ? null : /* @__PURE__ */ Q(v, {
|
|
1644
1644
|
size: "sm",
|
|
1645
1645
|
variant: "outline",
|
|
1646
|
-
onClick:
|
|
1647
|
-
children: /* @__PURE__ */ Q(
|
|
1646
|
+
onClick: d,
|
|
1647
|
+
children: /* @__PURE__ */ Q(_, { children: "Retry" })
|
|
1648
1648
|
})
|
|
1649
1649
|
}) : /* @__PURE__ */ Q("div", {
|
|
1650
1650
|
className: "scrollbar-gutter-both flex size-full flex-col overflow-y-auto px-5 py-8 text-sm text-muted-foreground",
|
|
1651
1651
|
children: /* @__PURE__ */ $("div", {
|
|
1652
|
-
className:
|
|
1652
|
+
className: x("mx-auto flex w-full max-w-xl flex-col gap-6", f.length === 0 && "my-auto items-center text-center"),
|
|
1653
1653
|
children: [
|
|
1654
|
-
|
|
1654
|
+
f.length === 0 ? /* @__PURE__ */ $(Ge, { children: [/* @__PURE__ */ Q(ie, { className: "size-6 opacity-60" }), /* @__PURE__ */ Q("p", {
|
|
1655
1655
|
className: "max-h-32 w-full max-w-sm overflow-y-auto whitespace-pre-line break-words",
|
|
1656
|
-
tabIndex:
|
|
1657
|
-
children:
|
|
1656
|
+
tabIndex: s.hostStatus === "failed" ? 0 : void 0,
|
|
1657
|
+
children: s.hostStatus === "failed" ? s.hostStatusDetail ?? a("The device hub failed to start.") : a("No simulators or emulators were found on this environment.")
|
|
1658
1658
|
})] }) : null,
|
|
1659
|
-
re &&
|
|
1659
|
+
re && f.length > 0 ? /* @__PURE__ */ Q("div", {
|
|
1660
1660
|
className: "w-full space-y-6 text-left",
|
|
1661
|
-
children:
|
|
1661
|
+
children: f.map((e) => /* @__PURE__ */ $("section", {
|
|
1662
1662
|
className: "space-y-3",
|
|
1663
1663
|
children: [/* @__PURE__ */ $("div", {
|
|
1664
1664
|
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
1665
1665
|
children: [/* @__PURE__ */ Q(ie, { className: "size-4 shrink-0" }), /* @__PURE__ */ Q("h3", {
|
|
1666
1666
|
className: "font-medium",
|
|
1667
|
-
children: e.platform === "ios" ?
|
|
1667
|
+
children: e.platform === "ios" ? a("iOS Simulators") : a("Android Emulators")
|
|
1668
1668
|
})]
|
|
1669
1669
|
}), /* @__PURE__ */ Q(Ue, { children: e.devices.map((e) => /* @__PURE__ */ $("div", {
|
|
1670
1670
|
className: "flex items-center gap-3 px-3 py-3",
|
|
@@ -1680,40 +1680,40 @@ function St(e) {
|
|
|
1680
1680
|
children: e.name
|
|
1681
1681
|
}), /* @__PURE__ */ Q("span", {
|
|
1682
1682
|
className: "truncate text-xs text-muted-foreground",
|
|
1683
|
-
children: `${
|
|
1683
|
+
children: `${s.hosts.find((t) => t.id === e.hostId)?.label} · ${e.version} · ${e.booted ? a("Running", { $context: "device state" }) : a("Stopped", { $context: "device state" })}`
|
|
1684
1684
|
})]
|
|
1685
1685
|
}),
|
|
1686
|
-
/* @__PURE__ */ $(
|
|
1686
|
+
/* @__PURE__ */ $(v, {
|
|
1687
1687
|
variant: "outline",
|
|
1688
1688
|
size: "sm",
|
|
1689
1689
|
disabled: E !== null,
|
|
1690
|
-
"aria-label": e.booted ?
|
|
1690
|
+
"aria-label": e.booted ? a("Open {name}", { name: e.name }) : a("Start {name}", { name: e.name }),
|
|
1691
1691
|
onClick: () => void k(xt(e)),
|
|
1692
|
-
children: [E === xt(e) ? /* @__PURE__ */ Q(
|
|
1692
|
+
children: [E === xt(e) ? /* @__PURE__ */ Q(u, { size: "xs" }) : e.booted ? /* @__PURE__ */ Q(A, {}) : /* @__PURE__ */ Q(ne, {}), e.booted ? a("Open", { $context: "verb, opens a running device" }) : a("Start", { $context: "verb, boots a device" })]
|
|
1693
1693
|
})
|
|
1694
1694
|
]
|
|
1695
1695
|
}, xt(e))) })]
|
|
1696
1696
|
}, e.platform))
|
|
1697
1697
|
}) : null,
|
|
1698
|
-
re && !Oe(
|
|
1698
|
+
re && !Oe(s) && !s.devices.some(wt) && !W.some(Ct) ? /* @__PURE__ */ Q("p", {
|
|
1699
1699
|
className: "max-w-sm text-xs",
|
|
1700
|
-
children: /* @__PURE__ */ Q(
|
|
1700
|
+
children: /* @__PURE__ */ Q(_, { children: "No Android virtual devices found. Create one in Android Studio's Device Manager, then refresh." })
|
|
1701
1701
|
}) : null,
|
|
1702
|
-
|
|
1703
|
-
className:
|
|
1702
|
+
c && !ae ? /* @__PURE__ */ Q(v, {
|
|
1703
|
+
className: f.length > 0 ? "self-start" : "self-center",
|
|
1704
1704
|
variant: "outline",
|
|
1705
1705
|
size: "sm",
|
|
1706
|
-
onClick: () => void
|
|
1706
|
+
onClick: () => void p({
|
|
1707
1707
|
environmentId: n,
|
|
1708
1708
|
input: {}
|
|
1709
1709
|
}),
|
|
1710
|
-
children: /* @__PURE__ */ Q(
|
|
1710
|
+
children: /* @__PURE__ */ Q(_, { children: "Refresh devices" })
|
|
1711
1711
|
}) : null
|
|
1712
1712
|
]
|
|
1713
1713
|
})
|
|
1714
1714
|
});
|
|
1715
1715
|
}
|
|
1716
|
-
t[14] = j, t[15] =
|
|
1716
|
+
t[14] = j, t[15] = h, t[16] = n, t[17] = a, t[18] = D, t[19] = p, t[20] = c, t[21] = m, t[22] = w, t[23] = C, t[24] = E, t[25] = e, t[26] = d, t[27] = g, t[28] = s, t[29] = l, t[30] = i, t[31] = M, t[32] = N, t[33] = P, t[34] = F, t[35] = I, t[36] = L, t[37] = R;
|
|
1717
1717
|
} else M = t[31], N = t[32], P = t[33], F = t[34], I = t[35], L = t[36], R = t[37];
|
|
1718
1718
|
if (R !== Symbol.for("react.early_return_sentinel")) return R;
|
|
1719
1719
|
let z;
|
|
@@ -1752,79 +1752,79 @@ function Dt(e) {
|
|
|
1752
1752
|
return !e.available;
|
|
1753
1753
|
}
|
|
1754
1754
|
function Ot(e) {
|
|
1755
|
-
let t = Z(12), n =
|
|
1756
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1757
|
-
let
|
|
1758
|
-
t[1] === e.children ?
|
|
1755
|
+
let t = Z(12), n = r(), i;
|
|
1756
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ Q(H, { className: "mt-1 size-3.5 shrink-0" }), t[0] = i) : i = t[0];
|
|
1757
|
+
let a;
|
|
1758
|
+
t[1] === e.children ? a = t[2] : (a = /* @__PURE__ */ Q("div", {
|
|
1759
1759
|
className: "max-h-32 min-w-0 flex-1 overflow-y-auto whitespace-pre-wrap break-words",
|
|
1760
1760
|
tabIndex: 0,
|
|
1761
1761
|
children: e.children
|
|
1762
|
-
}), t[1] = e.children, t[2] =
|
|
1763
|
-
let a;
|
|
1764
|
-
t[3] === n ? a = t[4] : (a = n("Dismiss device error"), t[3] = n, t[4] = a);
|
|
1762
|
+
}), t[1] = e.children, t[2] = a);
|
|
1765
1763
|
let o;
|
|
1766
|
-
t[
|
|
1764
|
+
t[3] === n ? o = t[4] : (o = n("Dismiss device error"), t[3] = n, t[4] = o);
|
|
1767
1765
|
let s;
|
|
1768
|
-
t[
|
|
1766
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(oe, {}), t[5] = s) : s = t[5];
|
|
1767
|
+
let c;
|
|
1768
|
+
t[6] !== e.onDismiss || t[7] !== o ? (c = /* @__PURE__ */ Q(v, {
|
|
1769
1769
|
size: "icon-xs",
|
|
1770
1770
|
variant: "ghost",
|
|
1771
|
-
"aria-label":
|
|
1771
|
+
"aria-label": o,
|
|
1772
1772
|
onClick: e.onDismiss,
|
|
1773
|
-
children:
|
|
1774
|
-
}), t[6] = e.onDismiss, t[7] =
|
|
1775
|
-
let
|
|
1776
|
-
return t[9] !==
|
|
1773
|
+
children: s
|
|
1774
|
+
}), t[6] = e.onDismiss, t[7] = o, t[8] = c) : c = t[8];
|
|
1775
|
+
let l;
|
|
1776
|
+
return t[9] !== a || t[10] !== c ? (l = /* @__PURE__ */ $("div", {
|
|
1777
1777
|
role: "alert",
|
|
1778
1778
|
className: "flex items-start gap-2 border-b bg-destructive/5 px-3 py-2 text-xs text-destructive",
|
|
1779
1779
|
children: [
|
|
1780
|
-
r,
|
|
1781
1780
|
i,
|
|
1782
|
-
|
|
1781
|
+
a,
|
|
1782
|
+
c
|
|
1783
1783
|
]
|
|
1784
|
-
}), t[9] =
|
|
1784
|
+
}), t[9] = a, t[10] = c, t[11] = l) : l = t[11], l;
|
|
1785
1785
|
}
|
|
1786
1786
|
function kt(e) {
|
|
1787
|
-
let t = Z(56), n =
|
|
1788
|
-
t[0] === e.incompletePlatforms ?
|
|
1789
|
-
let
|
|
1790
|
-
if (
|
|
1791
|
-
let
|
|
1792
|
-
t[2] !== n || t[3] !== e.incompletePlatforms || t[4] !== e.label ? (
|
|
1793
|
-
first:
|
|
1794
|
-
second:
|
|
1787
|
+
let t = Z(56), n = r(), [i, a] = X(!1), [o, s] = X(!1), [c, l] = X(null), u;
|
|
1788
|
+
t[0] === e.incompletePlatforms ? u = t[1] : (u = e.incompletePlatforms.join(), t[0] = e.incompletePlatforms, t[1] = u);
|
|
1789
|
+
let d = `${u}\u0000${e.detail}`;
|
|
1790
|
+
if (c !== null && c !== d && l(null), c === d) return null;
|
|
1791
|
+
let f, p, m, h, g, y, b;
|
|
1792
|
+
t[2] !== n || t[3] !== e.incompletePlatforms || t[4] !== e.label ? (f = e.incompletePlatforms.map(At), y = "status", b = "flex flex-wrap items-center gap-x-2 gap-y-0.5 border-b px-3 py-1 text-xs text-muted-foreground", h = "flex min-w-0 flex-1 basis-56 items-start gap-2", t[12] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ Q(H, { className: "mt-px size-3.5 shrink-0 text-warning-foreground" }), t[12] = g) : g = t[12], p = "min-w-0", m = f.length > 1 ? n("{first} and {second} lists on {host} may be incomplete.", {
|
|
1793
|
+
first: f[0],
|
|
1794
|
+
second: f[1],
|
|
1795
1795
|
host: e.label
|
|
1796
|
-
}) :
|
|
1797
|
-
platform:
|
|
1796
|
+
}) : f.length === 1 ? n("{platform} list on {host} may be incomplete.", {
|
|
1797
|
+
platform: f[0],
|
|
1798
1798
|
host: e.label
|
|
1799
|
-
}) : n("Device discovery on {host} reported a warning.", { host: e.label }), t[2] = n, t[3] = e.incompletePlatforms, t[4] = e.label, t[5] =
|
|
1800
|
-
let b;
|
|
1801
|
-
t[13] !== f || t[14] !== m ? (b = /* @__PURE__ */ Q("span", {
|
|
1802
|
-
className: f,
|
|
1803
|
-
children: m
|
|
1804
|
-
}), t[13] = f, t[14] = m, t[15] = b) : b = t[15];
|
|
1799
|
+
}) : n("Device discovery on {host} reported a warning.", { host: e.label }), t[2] = n, t[3] = e.incompletePlatforms, t[4] = e.label, t[5] = f, t[6] = p, t[7] = m, t[8] = h, t[9] = g, t[10] = y, t[11] = b) : (f = t[5], p = t[6], m = t[7], h = t[8], g = t[9], y = t[10], b = t[11]);
|
|
1805
1800
|
let x;
|
|
1806
|
-
t[
|
|
1801
|
+
t[13] !== p || t[14] !== m ? (x = /* @__PURE__ */ Q("span", {
|
|
1802
|
+
className: p,
|
|
1803
|
+
children: m
|
|
1804
|
+
}), t[13] = p, t[14] = m, t[15] = x) : x = t[15];
|
|
1805
|
+
let S;
|
|
1806
|
+
t[16] !== h || t[17] !== g || t[18] !== x ? (S = /* @__PURE__ */ $("span", {
|
|
1807
1807
|
className: h,
|
|
1808
|
-
children: [g,
|
|
1809
|
-
}), t[16] = h, t[17] = g, t[18] =
|
|
1808
|
+
children: [g, x]
|
|
1809
|
+
}), t[16] = h, t[17] = g, t[18] = x, t[19] = S) : S = t[19];
|
|
1810
1810
|
let C;
|
|
1811
|
-
t[20] !== n || t[21] !==
|
|
1811
|
+
t[20] !== n || t[21] !== f.length || t[22] !== e || t[23] !== o ? (C = f.length > 0 ? /* @__PURE__ */ Q(v, {
|
|
1812
1812
|
size: "micro",
|
|
1813
1813
|
variant: "ghost",
|
|
1814
|
-
disabled:
|
|
1814
|
+
disabled: o,
|
|
1815
1815
|
"aria-label": n("Retry device discovery on {host}", { host: e.label }),
|
|
1816
1816
|
onClick: () => {
|
|
1817
|
-
|
|
1817
|
+
s(!0), e.onRetry().finally(() => s(!1));
|
|
1818
1818
|
},
|
|
1819
|
-
children: n(
|
|
1820
|
-
}) : null, t[20] = n, t[21] =
|
|
1819
|
+
children: n(o ? "Retrying…" : "Retry")
|
|
1820
|
+
}) : null, t[20] = n, t[21] = f.length, t[22] = e, t[23] = o, t[24] = C) : C = t[24];
|
|
1821
1821
|
let w;
|
|
1822
1822
|
t[25] !== n || t[26] !== e.label ? (w = n("Details for {host}", { host: e.label }), t[25] = n, t[26] = e.label, t[27] = w) : w = t[27];
|
|
1823
1823
|
let T, E;
|
|
1824
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ Q(
|
|
1824
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (T = /* @__PURE__ */ Q(v, {
|
|
1825
1825
|
size: "micro",
|
|
1826
1826
|
variant: "ghost"
|
|
1827
|
-
}), E = /* @__PURE__ */ Q(
|
|
1827
|
+
}), E = /* @__PURE__ */ Q(_, { children: "Details" }), t[28] = T, t[29] = E) : (T = t[28], E = t[29]);
|
|
1828
1828
|
let D;
|
|
1829
1829
|
t[30] === w ? D = t[31] : (D = /* @__PURE__ */ Q(U, {
|
|
1830
1830
|
"aria-label": w,
|
|
@@ -1843,21 +1843,21 @@ function kt(e) {
|
|
|
1843
1843
|
})
|
|
1844
1844
|
}), t[32] = e.detail, t[33] = O);
|
|
1845
1845
|
let k;
|
|
1846
|
-
t[34] !==
|
|
1847
|
-
open:
|
|
1848
|
-
onOpenChange:
|
|
1846
|
+
t[34] !== i || t[35] !== D || t[36] !== O ? (k = /* @__PURE__ */ $(ce, {
|
|
1847
|
+
open: i,
|
|
1848
|
+
onOpenChange: a,
|
|
1849
1849
|
children: [D, O]
|
|
1850
|
-
}), t[34] =
|
|
1850
|
+
}), t[34] = i, t[35] = D, t[36] = O, t[37] = k) : k = t[37];
|
|
1851
1851
|
let A;
|
|
1852
1852
|
t[38] !== n || t[39] !== e.label ? (A = n("Dismiss device warning for {host}", { host: e.label }), t[38] = n, t[39] = e.label, t[40] = A) : A = t[40];
|
|
1853
1853
|
let j;
|
|
1854
|
-
t[41] ===
|
|
1855
|
-
|
|
1856
|
-
}, t[41] =
|
|
1854
|
+
t[41] === d ? j = t[42] : (j = () => {
|
|
1855
|
+
a(!1), l(d);
|
|
1856
|
+
}, t[41] = d, t[42] = j);
|
|
1857
1857
|
let M;
|
|
1858
1858
|
t[43] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ Q(oe, {}), t[43] = M) : M = t[43];
|
|
1859
1859
|
let N;
|
|
1860
|
-
t[44] !== A || t[45] !== j ? (N = /* @__PURE__ */ Q(
|
|
1860
|
+
t[44] !== A || t[45] !== j ? (N = /* @__PURE__ */ Q(v, {
|
|
1861
1861
|
size: "icon-micro",
|
|
1862
1862
|
variant: "ghost",
|
|
1863
1863
|
"aria-label": A,
|
|
@@ -1874,11 +1874,11 @@ function kt(e) {
|
|
|
1874
1874
|
]
|
|
1875
1875
|
}), t[47] = k, t[48] = N, t[49] = C, t[50] = P) : P = t[50];
|
|
1876
1876
|
let F;
|
|
1877
|
-
return t[51] !== P || t[52] !==
|
|
1878
|
-
role:
|
|
1879
|
-
className:
|
|
1880
|
-
children: [
|
|
1881
|
-
}), t[51] = P, t[52] =
|
|
1877
|
+
return t[51] !== P || t[52] !== y || t[53] !== b || t[54] !== S ? (F = /* @__PURE__ */ $("div", {
|
|
1878
|
+
role: y,
|
|
1879
|
+
className: b,
|
|
1880
|
+
children: [S, P]
|
|
1881
|
+
}), t[51] = P, t[52] = y, t[53] = b, t[54] = S, t[55] = F) : F = t[55], F;
|
|
1882
1882
|
}
|
|
1883
1883
|
function At(e) {
|
|
1884
1884
|
return e === "ios" ? "iOS" : "Android";
|