@hanzo/dev 4.2.0 → 4.2.2
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-CeQaKnXQ.js} +19 -19
- package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-DqKVAYd6.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-CCtanhmq.js} +227 -227
- package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-BhEDIwzm.js} +13 -13
- package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-BPZ6Ru_G.js} +328 -328
- package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-8Qh-Y5iP.js} +3 -3
- package/dist/{DocumentPages-VSn83vty.js → DocumentPages-MN1xyIRb.js} +3 -3
- package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-tCY2TFXU.js} +404 -404
- package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-BgJw-BA4.js} +4 -4
- package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-DHteid8j.js} +1089 -1089
- package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-COxgoDy5.js} +2 -2
- package/dist/{FontViewer-CLDdwhSr.js → FontViewer-jxARaj1f.js} +5 -5
- package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-BM2mB27b.js} +357 -357
- package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-BSOkKAjH.js} +3 -3
- package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
- package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-BX5-yWcy.js} +8 -8
- package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
- package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BqB2exZU.js} +2 -2
- package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-B0WYx1jk.js} +3 -3
- package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-B_7pSd7A.js} +10 -10
- package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-BJsNoaju.js} +2 -2
- package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-TgdFnOtV.js} +10 -10
- package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-B3gPcFs6.js} +287 -287
- package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-C18a0NFP.js} +4 -4
- package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
- package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-Dzjf4QXZ.js} +892 -892
- package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-Ct8eWJb8.js} +3 -3
- package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-Dd8dzt9u.js} +3 -3
- package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-BnsoHObW.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-CYalqlUB.js} +3 -3
- package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Jt9jdq55.js} +476 -476
- package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-xg3n0doV.js} +334 -334
- package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-BYlRPbKI.js} +5 -5
- package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-DQhoNsWZ.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-Cf4l2axO.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-CCzAioAu.js} +18 -18
- package/dist/builder/api/models.d.ts +2 -0
- package/dist/builder/api/models.js +6 -1
- package/dist/builder/api/sandbox.d.ts +2 -0
- package/dist/builder/api/sandbox.js +3 -1
- package/dist/builder/desk.d.ts +6 -0
- package/dist/builder/desk.js +79 -14
- package/dist/builder/mind.d.ts +5 -5
- package/dist/builder/mind.js +35 -14
- package/dist/builder/pane.d.ts +1 -1
- package/dist/builder/pane.js +1 -1
- package/dist/builder/panel.js +5 -5
- package/dist/builder/preview-fallback.d.ts +47 -0
- package/dist/builder/preview-fallback.js +341 -0
- package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-OIp-fuQd.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.d.ts +38 -0
- package/dist/core.js +1 -1
- package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-DbkSuh7q.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-CzXFS50X.js} +39626 -38922
- 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-hdALQktP.js} +54 -54
- package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-DMdkA7jY.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-DgDAUfzQ.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-sHEENLiT.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-ChvPTfBY.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-Jm142a1q.js} +1 -1
- package/dist/{useSettings-DYG9Dmro.js → useSettings-Due4XCTB.js} +139 -139
- package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-XN9r-f-r.js} +1404 -1404
- package/dist/useTheme-B9hvAuzL.js +411 -0
- 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 +17 -17
- package/dist/mediaSource-zI7JWid4.js +0 -70
- package/dist/query-BxrrBAp6.js +0 -63
- package/dist/useTheme-D2ZM1gvV.js +0 -376
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as e, i as t } from "./session-
|
|
1
|
+
import { c as e, i as t } from "./session-Decc4Fo5.js";
|
|
2
2
|
import { c as n, n as r } from "./messages-yqmY7G5x.js";
|
|
3
|
-
import { $s as i,
|
|
4
|
-
import { Co as N, b as P, br as se, mr as ce, t as F } from "./keybindings-
|
|
5
|
-
import { mt as I } from "./themePalette-
|
|
6
|
-
import { u as L } from "./network-
|
|
7
|
-
import { F as R, M as z, N as B, On as le, Rt as ue, Sn as de, St as fe, Tt as pe, Z as V, bn as me, fn as he, gn as ge, hn as H, j as _e, nt as ve, pn as ye, tt as U, vn as be, wn as xe, xn as Se, yn as Ce } from "./threadSearch-
|
|
3
|
+
import { $s as i, Ar as a, Br as o, C_ as s, Dr as c, Ef as l, F as u, Fr as d, Gr as f, Hr as p, Ir as m, Kh as h, Lr as g, Mr as _, Oc as v, Og as y, Or as b, Qs as x, S_ as ee, Tf as S, Ur as te, Vr as C, Wr as ne, Xs as re, b_ as w, ci as T, gf as E, gr as D, hr as O, if as k, jg as ie, jr as A, l as j, t as ae, x_ as oe, yr as M } from "./utils-DtKQl-D3.js";
|
|
4
|
+
import { Co as N, b as P, br as se, mr as ce, t as F } from "./keybindings-D0pBlT1k.js";
|
|
5
|
+
import { mt as I } from "./themePalette-C-GtwwqV.js";
|
|
6
|
+
import { u as L } from "./network-wuXD7-is.js";
|
|
7
|
+
import { F as R, M as z, N as B, On as le, Rt as ue, Sn as de, St as fe, Tt as pe, Z as V, bn as me, fn as he, gn as ge, hn as H, j as _e, nt as ve, pn as ye, tt as U, vn as be, wn as xe, xn as Se, yn as Ce } from "./threadSearch-sHEENLiT.js";
|
|
8
8
|
import { i as we } from "./imageCompression-BVPdiGdq.js";
|
|
9
9
|
import { n as Te, t as Ee } from "./external-link-BJbZG79p.js";
|
|
10
10
|
import { i as De } from "./unlink-2-CRzwRyat.js";
|
|
@@ -17,21 +17,21 @@ import { t as Pe } from "./plus-CewHlT33.js";
|
|
|
17
17
|
import { t as q } from "./radio-tower-DXL47IoZ.js";
|
|
18
18
|
import { t as Fe } from "./rotate-ccw-D7iJyjIR.js";
|
|
19
19
|
import { t as Ie } from "./x-Bjr9Dwvl.js";
|
|
20
|
-
import "./errors-
|
|
21
|
-
import { M as Le, j as Re, r as ze, z as Be } from "./useSettings-
|
|
22
|
-
import { s as J, w as Ve } from "./presentation-
|
|
20
|
+
import "./errors-D8_Zn8KN.js";
|
|
21
|
+
import { M as Le, j as Re, r as ze, z as Be } from "./useSettings-Due4XCTB.js";
|
|
22
|
+
import { s as J, w as Ve } from "./presentation-68y8EAuH.js";
|
|
23
23
|
import { t as He } from "./useStableCallback-kf0xbSaG.js";
|
|
24
24
|
import { t as Ue } from "./toastHelpers-BzWu4Odu.js";
|
|
25
|
-
import { t as We } from "./use-atom-command-
|
|
26
|
-
import { A as Ge, D as Ke, E as qe, O as Je, P as Ye, S as Xe, T as Ze, _ as Qe, b as $e, c as et, d as tt, f as nt, g as rt, h as it, i as at, j as Y, k as ot, l as st, n as ct, o as lt, r as ut, s as dt, x as ft, y as pt } from "./PreviewFaviconIcon-
|
|
27
|
-
import { o as mt, r as ht, s as gt, t as _t } from "./PreviewPanelShell-
|
|
28
|
-
import { F as vt } from "./workspaceFocus-
|
|
29
|
-
import { In as yt, V as bt, b as xt, i as St, rt as Ct, t as wt } from "./fileExplorerLabel-
|
|
25
|
+
import { t as We } from "./use-atom-command-XemtT1Gv.js";
|
|
26
|
+
import { A as Ge, D as Ke, E as qe, O as Je, P as Ye, S as Xe, T as Ze, _ as Qe, b as $e, c as et, d as tt, f as nt, g as rt, h as it, i as at, j as Y, k as ot, l as st, n as ct, o as lt, r as ut, s as dt, x as ft, y as pt } from "./PreviewFaviconIcon-Dzjf4QXZ.js";
|
|
27
|
+
import { o as mt, r as ht, s as gt, t as _t } from "./PreviewPanelShell-Dezxjg0T.js";
|
|
28
|
+
import { F as vt } from "./workspaceFocus-MR1plm6A.js";
|
|
29
|
+
import { In as yt, V as bt, b as xt, i as St, rt as Ct, t as wt } from "./fileExplorerLabel-DMdkA7jY.js";
|
|
30
30
|
import { t as Tt } from "./observeResize-DRQ9DVLE.js";
|
|
31
|
-
import { t as Et } from "./refresh-icon-
|
|
32
|
-
import { t as Dt } from "./RelativeTime-
|
|
33
|
-
import { a as Ot, n as X, r as kt, t as At } from "./input-group-
|
|
34
|
-
import { a as jt, o as Z, r as Mt, t as Nt } from "./empty-
|
|
31
|
+
import { t as Et } from "./refresh-icon-Vo5ImiQL.js";
|
|
32
|
+
import { t as Dt } from "./RelativeTime-DQhoNsWZ.js";
|
|
33
|
+
import { a as Ot, n as X, r as kt, t as At } from "./input-group-BZ_QN-y7.js";
|
|
34
|
+
import { a as jt, o as Z, r as Mt, t as Nt } from "./empty-ChM6gdzn.js";
|
|
35
35
|
import { n as Pt, t as Ft } from "./discovery-list-BGCUTUmY.js";
|
|
36
36
|
import { useEffect as It, useEffectEvent as Lt, useRef as Rt, useState as zt } from "react";
|
|
37
37
|
import { c as Bt } from "react/compiler-runtime";
|
|
@@ -55,49 +55,49 @@ function Wt(e) {
|
|
|
55
55
|
}
|
|
56
56
|
// src/components/preview/PreviewAnnotationSpeech.tsx
|
|
57
57
|
function Gt(e) {
|
|
58
|
-
let t = Bt(76), { threadRef: n, tabId: i, config: a, keybindings: o } = e,
|
|
58
|
+
let t = Bt(76), { threadRef: n, tabId: i, config: a, keybindings: o } = e, c = s(), l = ee(), d = Vt(), f = ue(n), p;
|
|
59
59
|
t[0] === n ? p = t[1] : (p = (e) => e.getDraftThreadByRef(n), t[0] = n, t[1] = p);
|
|
60
60
|
let m = u(p), h = f?.projectId ?? m?.projectId ?? null, g;
|
|
61
|
-
t[2] !== h || t[3] !== n.environmentId ? (g = h ?
|
|
61
|
+
t[2] !== h || t[3] !== n.environmentId ? (g = h ? y(n.environmentId, h) : null, t[2] = h, t[3] = n.environmentId, t[4] = g) : g = t[4];
|
|
62
62
|
let _ = pe(g), v;
|
|
63
63
|
t[5] === Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
64
64
|
text: "",
|
|
65
65
|
cursor: 0,
|
|
66
66
|
selectionEnd: 0
|
|
67
67
|
}, t[5] = v) : v = t[5];
|
|
68
|
-
let
|
|
69
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
68
|
+
let b = Rt(v), x = Rt(null), S = Rt(!1), te, C;
|
|
69
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
|
|
70
70
|
let e = () => {
|
|
71
|
-
|
|
71
|
+
S.current = !1;
|
|
72
72
|
};
|
|
73
73
|
return window.addEventListener("focus", e), window.addEventListener("focusin", e), () => {
|
|
74
74
|
window.removeEventListener("focus", e), window.removeEventListener("focusin", e);
|
|
75
75
|
};
|
|
76
|
-
}, C = [], t[6] =
|
|
77
|
-
let
|
|
78
|
-
t[8] !== a.sessionId || t[9] !== i || t[10] !== n ? (
|
|
76
|
+
}, C = [], t[6] = te, t[7] = C) : (te = t[6], C = t[7]), It(te, C);
|
|
77
|
+
let ne = n.environmentId, re;
|
|
78
|
+
t[8] !== a.sessionId || t[9] !== i || t[10] !== n ? (re = JSON.stringify([
|
|
79
79
|
"preview-annotation",
|
|
80
80
|
n,
|
|
81
81
|
i,
|
|
82
82
|
a.sessionId
|
|
83
|
-
]), t[8] = a.sessionId, t[9] = i, t[10] = n, t[11] =
|
|
84
|
-
let
|
|
85
|
-
t[12] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
86
|
-
text:
|
|
83
|
+
]), t[8] = a.sessionId, t[9] = i, t[10] = n, t[11] = re) : re = t[11];
|
|
84
|
+
let w;
|
|
85
|
+
t[12] === Symbol.for("react.memo_cache_sentinel") ? (w = () => ({
|
|
86
|
+
text: b.current.text,
|
|
87
87
|
selection: {
|
|
88
|
-
start:
|
|
89
|
-
end:
|
|
88
|
+
start: b.current.cursor,
|
|
89
|
+
end: b.current.selectionEnd
|
|
90
90
|
}
|
|
91
|
-
}), t[12] =
|
|
92
|
-
let
|
|
93
|
-
environmentId:
|
|
91
|
+
}), t[12] = w) : w = t[12];
|
|
92
|
+
let T = St({
|
|
93
|
+
environmentId: ne,
|
|
94
94
|
projectId: h,
|
|
95
95
|
projectName: _?.title,
|
|
96
|
-
ownerKey:
|
|
96
|
+
ownerKey: re,
|
|
97
97
|
offerSetup: !1,
|
|
98
|
-
readDraft:
|
|
98
|
+
readDraft: w,
|
|
99
99
|
commitDraft: (e, t) => {
|
|
100
|
-
|
|
100
|
+
b.current = {
|
|
101
101
|
text: e,
|
|
102
102
|
cursor: t.start,
|
|
103
103
|
selectionEnd: t.end
|
|
@@ -106,53 +106,53 @@ function Gt(e) {
|
|
|
106
106
|
cursor: t.start
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
}),
|
|
110
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
111
|
-
|
|
112
|
-
}), t[13] =
|
|
113
|
-
let
|
|
114
|
-
t[14] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
115
|
-
let
|
|
116
|
-
t[15] !== o || t[16] !==
|
|
109
|
+
}), E;
|
|
110
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (E = (e) => (x.current = e, () => {
|
|
111
|
+
x.current = null;
|
|
112
|
+
}), t[13] = E) : E = t[13];
|
|
113
|
+
let D = He(E), O;
|
|
114
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (O = () => S.current, t[14] = O) : O = t[14];
|
|
115
|
+
let k;
|
|
116
|
+
t[15] !== o || t[16] !== T || t[17] !== D ? (k = {
|
|
117
117
|
keybindings: o,
|
|
118
|
-
speech:
|
|
118
|
+
speech: T,
|
|
119
119
|
disabled: !1,
|
|
120
120
|
terminalOpen: !1,
|
|
121
121
|
modelPickerOpen: !1,
|
|
122
122
|
previewFocus: !0,
|
|
123
|
-
ownsFocus:
|
|
124
|
-
subscribeKeys:
|
|
125
|
-
}, t[15] = o, t[16] =
|
|
126
|
-
let ie = xt(
|
|
127
|
-
t[19] !== l || t[20] !==
|
|
123
|
+
ownsFocus: O,
|
|
124
|
+
subscribeKeys: D
|
|
125
|
+
}, t[15] = o, t[16] = T, t[17] = D, t[18] = k) : k = t[18];
|
|
126
|
+
let ie = xt(k), { available: A, state: j, preview: ae, freezesEditor: oe, blocksSubmission: M, level: N } = T, P = a.sessionId, se = j.phase, ce = j.errorAction, F;
|
|
127
|
+
t[19] !== l || t[20] !== j ? (F = Ct(j, null, l), t[19] = l, t[20] = j, t[21] = F) : F = t[21];
|
|
128
128
|
let I = ae ? ae.committed + ae.tentative : null, R;
|
|
129
|
-
t[22] !==
|
|
129
|
+
t[22] !== A || t[23] !== M || t[24] !== a.sessionId || t[25] !== oe || t[26] !== N || t[27] !== ie || t[28] !== j.errorAction || t[29] !== j.phase || t[30] !== F.status || t[31] !== I || t[32] !== i ? (R = {
|
|
130
130
|
tabId: i,
|
|
131
131
|
sessionId: P,
|
|
132
|
-
available:
|
|
132
|
+
available: A,
|
|
133
133
|
phase: se,
|
|
134
134
|
errorAction: ce,
|
|
135
135
|
status: F.status,
|
|
136
136
|
preview: I,
|
|
137
137
|
level: N,
|
|
138
138
|
shortcutLabel: ie,
|
|
139
|
-
freezesEditor:
|
|
139
|
+
freezesEditor: oe,
|
|
140
140
|
blocksSubmission: M
|
|
141
|
-
}, t[22] =
|
|
141
|
+
}, t[22] = A, t[23] = M, t[24] = a.sessionId, t[25] = oe, t[26] = N, t[27] = ie, t[28] = j.errorAction, t[29] = j.phase, t[30] = F.status, t[31] = I, t[32] = i, t[33] = R) : R = t[33];
|
|
142
142
|
let z = R, B;
|
|
143
|
-
t[34] !==
|
|
144
|
-
speech:
|
|
143
|
+
t[34] !== T || t[35] !== z ? (B = {
|
|
144
|
+
speech: T,
|
|
145
145
|
voiceState: z
|
|
146
|
-
}, t[34] =
|
|
146
|
+
}, t[34] = T, t[35] = z, t[36] = B) : B = t[36];
|
|
147
147
|
let le = Rt(B), de;
|
|
148
|
-
t[37] !==
|
|
148
|
+
t[37] !== T || t[38] !== z ? (de = () => {
|
|
149
149
|
le.current = {
|
|
150
|
-
speech:
|
|
150
|
+
speech: T,
|
|
151
151
|
voiceState: z
|
|
152
152
|
};
|
|
153
|
-
}, t[37] =
|
|
153
|
+
}, t[37] = T, t[38] = z, t[39] = de) : de = t[39], It(de);
|
|
154
154
|
let fe;
|
|
155
|
-
t[40] ===
|
|
155
|
+
t[40] === c ? fe = t[41] : (fe = async (e, t) => {
|
|
156
156
|
try {
|
|
157
157
|
await Y?.annotationVoice.update({
|
|
158
158
|
...e,
|
|
@@ -162,11 +162,11 @@ function Gt(e) {
|
|
|
162
162
|
let t = e;
|
|
163
163
|
le.current.speech.cancel(), J.add({
|
|
164
164
|
type: "error",
|
|
165
|
-
title:
|
|
165
|
+
title: c("Could not update annotation voice input"),
|
|
166
166
|
description: L(t, r) ?? String(t)
|
|
167
167
|
});
|
|
168
168
|
}
|
|
169
|
-
}, t[40] =
|
|
169
|
+
}, t[40] = c, t[41] = fe);
|
|
170
170
|
let V = He(fe), me;
|
|
171
171
|
t[42] !== V || t[43] !== z ? (me = () => {
|
|
172
172
|
V(z, null);
|
|
@@ -176,11 +176,11 @@ function Gt(e) {
|
|
|
176
176
|
let ge;
|
|
177
177
|
t[48] !== a.sessionId || t[49] !== d || t[50] !== V || t[51] !== i ? (ge = () => Y?.annotationVoice.onEvent((e, t) => {
|
|
178
178
|
if (e !== i || t.sessionId !== a.sessionId) return;
|
|
179
|
-
|
|
179
|
+
b.current = {
|
|
180
180
|
text: t.text,
|
|
181
181
|
cursor: Math.min(t.cursor, t.text.length),
|
|
182
182
|
selectionEnd: Math.min(t.selectionEnd ?? t.cursor, t.text.length)
|
|
183
|
-
}, (t.action === "focus" || t.action === "key" || t.action === "start") && (
|
|
183
|
+
}, (t.action === "focus" || t.action === "key" || t.action === "start") && (S.current = !0), t.action === "blur" && (S.current = !1);
|
|
184
184
|
let n = le.current.speech;
|
|
185
185
|
bb112: switch (t.action) {
|
|
186
186
|
case "focus":
|
|
@@ -203,11 +203,11 @@ function Gt(e) {
|
|
|
203
203
|
n.skipPostProcessing();
|
|
204
204
|
break bb112;
|
|
205
205
|
case "blur":
|
|
206
|
-
|
|
206
|
+
x.current?.blur();
|
|
207
207
|
break bb112;
|
|
208
208
|
case "key":
|
|
209
209
|
if (!t.keyboard) break bb112;
|
|
210
|
-
|
|
210
|
+
x.current?.[t.keyboard.type](new KeyboardEvent(t.keyboard.type, t.keyboard));
|
|
211
211
|
}
|
|
212
212
|
}), t[48] = a.sessionId, t[49] = d, t[50] = V, t[51] = i, t[52] = ge) : ge = t[52];
|
|
213
213
|
let H;
|
|
@@ -218,39 +218,39 @@ function Gt(e) {
|
|
|
218
218
|
d
|
|
219
219
|
], t[53] = a.sessionId, t[54] = d, t[55] = V, t[56] = i, t[57] = H) : H = t[57], It(ge, H);
|
|
220
220
|
let _e, ve, ye;
|
|
221
|
-
t[58] ===
|
|
221
|
+
t[58] === T.setup ? (_e = t[59], ve = t[60], ye = t[61]) : (_e = () => void T.setup.download(), ve = () => void T.setup.cancelDownload(), ye = () => void T.setup.startRecording(), t[58] = T.setup, t[59] = _e, t[60] = ve, t[61] = ye);
|
|
222
222
|
let U;
|
|
223
|
-
return t[62] !==
|
|
224
|
-
environmentId:
|
|
225
|
-
open:
|
|
226
|
-
step:
|
|
227
|
-
status:
|
|
228
|
-
model:
|
|
229
|
-
language:
|
|
230
|
-
downloading:
|
|
231
|
-
error:
|
|
232
|
-
onOpenChange:
|
|
233
|
-
onRetryCatalog:
|
|
223
|
+
return t[62] !== T.setup.downloading || t[63] !== T.setup.error || t[64] !== T.setup.language || t[65] !== T.setup.model || t[66] !== T.setup.open || t[67] !== T.setup.retryCatalog || t[68] !== T.setup.setOpen || t[69] !== T.setup.step || t[70] !== T.status || t[71] !== T.transcriptionEnvironmentId || t[72] !== _e || t[73] !== ve || t[74] !== ye ? (U = /* @__PURE__ */ Q(bt, {
|
|
224
|
+
environmentId: T.transcriptionEnvironmentId,
|
|
225
|
+
open: T.setup.open,
|
|
226
|
+
step: T.setup.step,
|
|
227
|
+
status: T.status,
|
|
228
|
+
model: T.setup.model,
|
|
229
|
+
language: T.setup.language,
|
|
230
|
+
downloading: T.setup.downloading,
|
|
231
|
+
error: T.setup.error,
|
|
232
|
+
onOpenChange: T.setup.setOpen,
|
|
233
|
+
onRetryCatalog: T.setup.retryCatalog,
|
|
234
234
|
onDownload: _e,
|
|
235
235
|
onCancelDownload: ve,
|
|
236
236
|
onStartRecording: ye
|
|
237
|
-
}), t[62] =
|
|
237
|
+
}), t[62] = T.setup.downloading, t[63] = T.setup.error, t[64] = T.setup.language, t[65] = T.setup.model, t[66] = T.setup.open, t[67] = T.setup.retryCatalog, t[68] = T.setup.setOpen, t[69] = T.setup.step, t[70] = T.status, t[71] = T.transcriptionEnvironmentId, t[72] = _e, t[73] = ve, t[74] = ye, t[75] = U) : U = t[75], U;
|
|
238
238
|
}
|
|
239
239
|
// src/components/preview/PreviewChromeRow.tsx
|
|
240
240
|
var Kt = () => {};
|
|
241
241
|
function qt(e) {
|
|
242
|
-
let t = Bt(114), { url: n, loading: r, canGoBack: i, canGoForward: a, refreshDisabled: o, inputDisabled:
|
|
243
|
-
t[0] !==
|
|
242
|
+
let t = Bt(114), { url: n, loading: r, canGoBack: i, canGoForward: a, refreshDisabled: o, inputDisabled: c, urlInputRef: l, onBack: u, onForward: d, onRefresh: f, onStopLoading: p, onSubmit: m, onOpenInBrowser: h, onCapture: g, captureDisabled: _, recording: v, onPictureInPicture: y, pictureInPicture: b, pictureInPictureDisabled: x, onPickElement: ee, pickActive: S, pickDisabled: te, pickDisabledReason: C, trailingActions: ne, leadingActions: re } = e, E = s(), [k, ie] = zt(n), [A, j] = zt(!1), oe;
|
|
243
|
+
t[0] !== k || t[1] !== l || t[2] !== m ? (oe = (e) => {
|
|
244
244
|
e?.preventDefault();
|
|
245
|
-
let t =
|
|
246
|
-
t.length !== 0 && (
|
|
247
|
-
}, t[0] =
|
|
245
|
+
let t = k.trim();
|
|
246
|
+
t.length !== 0 && (m(t), l.current?.blur());
|
|
247
|
+
}, t[0] = k, t[1] = l, t[2] = m, t[3] = oe) : oe = t[3];
|
|
248
248
|
let N = oe, P;
|
|
249
249
|
t[4] === E ? P = t[5] : (P = E("Navigation"), t[4] = E, t[5] = P);
|
|
250
|
-
let se = i ?
|
|
250
|
+
let se = i ? u : Kt, ce = !i, F;
|
|
251
251
|
t[6] === E ? F = t[7] : (F = E("Back", { $context: "browser navigation" }), t[6] = E, t[7] = F);
|
|
252
252
|
let I;
|
|
253
|
-
t[8] !== se || t[9] !== ce || t[10] !== F ? (I = /* @__PURE__ */ Q(
|
|
253
|
+
t[8] !== se || t[9] !== ce || t[10] !== F ? (I = /* @__PURE__ */ Q(T, {
|
|
254
254
|
variant: "ghost",
|
|
255
255
|
size: "icon-xs",
|
|
256
256
|
onClick: se,
|
|
@@ -266,16 +266,16 @@ function qt(e) {
|
|
|
266
266
|
children: L
|
|
267
267
|
}), t[13] = I, t[14] = R);
|
|
268
268
|
let z;
|
|
269
|
-
t[15] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ Q(
|
|
269
|
+
t[15] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
|
|
270
270
|
context: "browser navigation",
|
|
271
271
|
children: "Back"
|
|
272
272
|
}) }), t[15] = z) : z = t[15];
|
|
273
273
|
let B;
|
|
274
|
-
t[16] === R ? B = t[17] : (B = /* @__PURE__ */ $(
|
|
275
|
-
let le = a ?
|
|
274
|
+
t[16] === R ? B = t[17] : (B = /* @__PURE__ */ $(O, { children: [R, z] }), t[16] = R, t[17] = B);
|
|
275
|
+
let le = a ? d : Kt, ue = !a, de;
|
|
276
276
|
t[18] === E ? de = t[19] : (de = E("Forward", { $context: "browser navigation" }), t[18] = E, t[19] = de);
|
|
277
277
|
let fe;
|
|
278
|
-
t[20] !== le || t[21] !== ue || t[22] !== de ? (fe = /* @__PURE__ */ Q(
|
|
278
|
+
t[20] !== le || t[21] !== ue || t[22] !== de ? (fe = /* @__PURE__ */ Q(T, {
|
|
279
279
|
variant: "ghost",
|
|
280
280
|
size: "icon-xs",
|
|
281
281
|
onClick: le,
|
|
@@ -291,16 +291,16 @@ function qt(e) {
|
|
|
291
291
|
children: pe
|
|
292
292
|
}), t[25] = fe, t[26] = V);
|
|
293
293
|
let me;
|
|
294
|
-
t[27] === Symbol.for("react.memo_cache_sentinel") ? (me = /* @__PURE__ */ Q(
|
|
294
|
+
t[27] === Symbol.for("react.memo_cache_sentinel") ? (me = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
|
|
295
295
|
context: "browser navigation",
|
|
296
296
|
children: "Forward"
|
|
297
297
|
}) }), t[27] = me) : me = t[27];
|
|
298
298
|
let he;
|
|
299
|
-
t[28] === V ? he = t[29] : (he = /* @__PURE__ */ $(
|
|
300
|
-
let ge = o ? Kt : r ?
|
|
299
|
+
t[28] === V ? he = t[29] : (he = /* @__PURE__ */ $(O, { children: [V, me] }), t[28] = V, t[29] = he);
|
|
300
|
+
let ge = o ? Kt : r ? p : f, H;
|
|
301
301
|
t[30] !== E || t[31] !== r ? (H = r ? E("Stop", { $context: "stop loading the page" }) : E("Refresh"), t[30] = E, t[31] = r, t[32] = H) : H = t[32];
|
|
302
302
|
let _e;
|
|
303
|
-
t[33] !== o || t[34] !== ge || t[35] !== H ? (_e = /* @__PURE__ */ Q(
|
|
303
|
+
t[33] !== o || t[34] !== ge || t[35] !== H ? (_e = /* @__PURE__ */ Q(T, {
|
|
304
304
|
variant: "ghost",
|
|
305
305
|
size: "icon-xs",
|
|
306
306
|
onClick: ge,
|
|
@@ -318,9 +318,9 @@ function qt(e) {
|
|
|
318
318
|
let U;
|
|
319
319
|
t[42] !== E || t[43] !== r ? (U = r ? E("Stop", { $context: "stop loading the page" }) : E("Refresh"), t[42] = E, t[43] = r, t[44] = U) : U = t[44];
|
|
320
320
|
let be;
|
|
321
|
-
t[45] === U ? be = t[46] : (be = /* @__PURE__ */ Q(
|
|
321
|
+
t[45] === U ? be = t[46] : (be = /* @__PURE__ */ Q(D, { children: U }), t[45] = U, t[46] = be);
|
|
322
322
|
let xe;
|
|
323
|
-
t[47] !== ye || t[48] !== be ? (xe = /* @__PURE__ */ $(
|
|
323
|
+
t[47] !== ye || t[48] !== be ? (xe = /* @__PURE__ */ $(O, { children: [ye, be] }), t[47] = ye, t[48] = be, t[49] = xe) : xe = t[49];
|
|
324
324
|
let Se;
|
|
325
325
|
t[50] !== B || t[51] !== he || t[52] !== P || t[53] !== xe ? (Se = /* @__PURE__ */ $("div", {
|
|
326
326
|
className: "flex items-center gap-0.5",
|
|
@@ -332,27 +332,27 @@ function qt(e) {
|
|
|
332
332
|
xe
|
|
333
333
|
]
|
|
334
334
|
}), t[50] = B, t[51] = he, t[52] = P, t[53] = xe, t[54] = Se) : Se = t[54];
|
|
335
|
-
let Ce =
|
|
335
|
+
let Ce = A ? k : n, we;
|
|
336
336
|
t[55] === Symbol.for("react.memo_cache_sentinel") ? (we = (e) => ie(e.target.value), t[55] = we) : we = t[55];
|
|
337
337
|
let Ae;
|
|
338
|
-
t[56] !==
|
|
339
|
-
ie(n),
|
|
340
|
-
}, t[56] =
|
|
338
|
+
t[56] !== l || t[57] !== n ? (Ae = () => {
|
|
339
|
+
ie(n), j(!0), queueMicrotask(() => l.current?.select());
|
|
340
|
+
}, t[56] = l, t[57] = n, t[58] = Ae) : Ae = t[58];
|
|
341
341
|
let je;
|
|
342
342
|
t[59] === Symbol.for("react.memo_cache_sentinel") ? (je = () => {
|
|
343
|
-
|
|
343
|
+
j(!1);
|
|
344
344
|
}, t[59] = je) : je = t[59];
|
|
345
345
|
let Me;
|
|
346
|
-
t[60] !==
|
|
347
|
-
e.nativeEvent.isComposing || e.keyCode === 229 ? e.key === "Enter" && e.preventDefault() : (e.key === "Enter" && N(e), e.key === "Escape" && (e.preventDefault(), ie(n),
|
|
348
|
-
}, t[60] =
|
|
346
|
+
t[60] !== l || t[61] !== N || t[62] !== n ? (Me = (e) => {
|
|
347
|
+
e.nativeEvent.isComposing || e.keyCode === 229 ? e.key === "Enter" && e.preventDefault() : (e.key === "Enter" && N(e), e.key === "Escape" && (e.preventDefault(), ie(n), l.current?.blur()));
|
|
348
|
+
}, t[60] = l, t[61] = N, t[62] = n, t[63] = Me) : Me = t[63];
|
|
349
349
|
let W;
|
|
350
350
|
t[64] === E ? W = t[65] : (W = E("Search or enter URL"), t[64] = E, t[65] = W);
|
|
351
351
|
let Ne;
|
|
352
352
|
t[66] === E ? Ne = t[67] : (Ne = E("Search or enter URL"), t[66] = E, t[67] = Ne);
|
|
353
353
|
let K;
|
|
354
|
-
t[68] !==
|
|
355
|
-
ref:
|
|
354
|
+
t[68] !== c || t[69] !== l || t[70] !== Ce || t[71] !== Ae || t[72] !== Me || t[73] !== W || t[74] !== Ne ? (K = /* @__PURE__ */ Q(O, { children: /* @__PURE__ */ Q(M, { render: /* @__PURE__ */ Q(kt, {
|
|
355
|
+
ref: l,
|
|
356
356
|
value: Ce,
|
|
357
357
|
onChange: we,
|
|
358
358
|
onFocus: Ae,
|
|
@@ -362,27 +362,27 @@ function qt(e) {
|
|
|
362
362
|
"aria-label": Ne,
|
|
363
363
|
"data-workspace-focus-default": !0,
|
|
364
364
|
spellCheck: !1,
|
|
365
|
-
disabled:
|
|
365
|
+
disabled: c,
|
|
366
366
|
"data-preview-url-input": !0,
|
|
367
367
|
size: "sm"
|
|
368
|
-
}) }) }), t[68] =
|
|
368
|
+
}) }) }), t[68] = c, t[69] = l, t[70] = Ce, t[71] = Ae, t[72] = Me, t[73] = W, t[74] = Ne, t[75] = K) : K = t[75];
|
|
369
369
|
let Pe;
|
|
370
|
-
t[76] !== E || t[77] !==
|
|
370
|
+
t[76] !== E || t[77] !== A || t[78] !== h ? (Pe = h && !A ? /* @__PURE__ */ Q(X, {
|
|
371
371
|
align: "inline-end",
|
|
372
372
|
children: /* @__PURE__ */ Q("span", {
|
|
373
373
|
className: "pointer-events-none flex opacity-0 transition-opacity focus-within:pointer-events-auto focus-within:opacity-100 group-hover/address:pointer-events-auto group-hover/address:opacity-100",
|
|
374
|
-
children: /* @__PURE__ */ $(
|
|
375
|
-
render: /* @__PURE__ */ Q(
|
|
374
|
+
children: /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
|
|
375
|
+
render: /* @__PURE__ */ Q(T, {
|
|
376
376
|
variant: "ghost",
|
|
377
377
|
size: "icon-xs",
|
|
378
|
-
onClick:
|
|
378
|
+
onClick: h,
|
|
379
379
|
"aria-label": E("Open in system browser"),
|
|
380
380
|
type: "button"
|
|
381
381
|
}),
|
|
382
382
|
children: /* @__PURE__ */ Q(Ee, {})
|
|
383
|
-
}), /* @__PURE__ */ Q(
|
|
383
|
+
}), /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, { children: "Open in system browser" }) })] })
|
|
384
384
|
})
|
|
385
|
-
}) : null, t[76] = E, t[77] =
|
|
385
|
+
}) : null, t[76] = E, t[77] = A, t[78] = h, t[79] = Pe) : Pe = t[79];
|
|
386
386
|
let q;
|
|
387
387
|
t[80] !== K || t[81] !== Pe ? (q = /* @__PURE__ */ $(At, {
|
|
388
388
|
variant: "ghost",
|
|
@@ -390,44 +390,44 @@ function qt(e) {
|
|
|
390
390
|
children: [K, Pe]
|
|
391
391
|
}), t[80] = K, t[81] = Pe, t[82] = q) : q = t[82];
|
|
392
392
|
let Fe;
|
|
393
|
-
t[83] !== E || t[84] !==
|
|
394
|
-
render: /* @__PURE__ */ Q(
|
|
393
|
+
t[83] !== E || t[84] !== ee || t[85] !== S || t[86] !== te || t[87] !== C ? (Fe = ee ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
|
|
394
|
+
render: /* @__PURE__ */ Q(T, {
|
|
395
395
|
variant: S ? "secondary" : "ghost",
|
|
396
396
|
size: "icon-xs",
|
|
397
|
-
onClick:
|
|
398
|
-
disabled:
|
|
397
|
+
onClick: ee,
|
|
398
|
+
disabled: te,
|
|
399
399
|
"aria-label": E(S ? "Cancel annotation" : "Annotate preview"),
|
|
400
400
|
"aria-pressed": S ? "true" : "false",
|
|
401
401
|
type: "button"
|
|
402
402
|
}),
|
|
403
|
-
children: /* @__PURE__ */ Q(G, { className:
|
|
404
|
-
}), /* @__PURE__ */ Q(
|
|
403
|
+
children: /* @__PURE__ */ Q(G, { className: ae(S && "text-primary") })
|
|
404
|
+
}), /* @__PURE__ */ Q(D, { children: te && C ? C : E(S ? "Cancel annotation (Esc)" : "Annotate elements, regions, and drawings") })] }) : null, t[83] = E, t[84] = ee, t[85] = S, t[86] = te, t[87] = C, t[88] = Fe) : Fe = t[88];
|
|
405
405
|
let Ie;
|
|
406
|
-
t[89] !==
|
|
407
|
-
render: /* @__PURE__ */ Q(
|
|
408
|
-
variant:
|
|
406
|
+
t[89] !== _ || t[90] !== E || t[91] !== g || t[92] !== v ? (Ie = g ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ $(M, {
|
|
407
|
+
render: /* @__PURE__ */ Q(T, {
|
|
408
|
+
variant: v ? "secondary" : "ghost",
|
|
409
409
|
size: "icon-xs",
|
|
410
|
-
onClick: (e) =>
|
|
411
|
-
"aria-label": E(
|
|
410
|
+
onClick: (e) => g(e.shiftKey),
|
|
411
|
+
"aria-label": E(v ? "Stop recording" : "Capture screenshot"),
|
|
412
412
|
type: "button",
|
|
413
413
|
className: "relative",
|
|
414
|
-
disabled:
|
|
414
|
+
disabled: _
|
|
415
415
|
}),
|
|
416
|
-
children: [/* @__PURE__ */ Q(Oe, { className:
|
|
417
|
-
}), /* @__PURE__ */ Q(
|
|
416
|
+
children: [/* @__PURE__ */ Q(Oe, { className: ae(v && "text-destructive") }), v ? /* @__PURE__ */ Q("span", { className: "absolute right-0.5 top-0.5 size-1.5 motion-safe:animate-status-pulse rounded-full bg-destructive" }) : null]
|
|
417
|
+
}), /* @__PURE__ */ Q(D, { children: E(v ? "Stop recording" : "Screenshot · Shift-click to record") })] }) : null, t[89] = _, t[90] = E, t[91] = g, t[92] = v, t[93] = Ie) : Ie = t[93];
|
|
418
418
|
let Le;
|
|
419
|
-
t[94] !== E || t[95] !==
|
|
420
|
-
render: /* @__PURE__ */ Q(
|
|
421
|
-
variant:
|
|
419
|
+
t[94] !== E || t[95] !== y || t[96] !== b || t[97] !== x ? (Le = y ? /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
|
|
420
|
+
render: /* @__PURE__ */ Q(T, {
|
|
421
|
+
variant: b ? "secondary" : "ghost",
|
|
422
422
|
size: "icon-xs",
|
|
423
|
-
onClick:
|
|
424
|
-
"aria-label": E(
|
|
425
|
-
"aria-pressed":
|
|
423
|
+
onClick: y,
|
|
424
|
+
"aria-label": E(b ? "Close floating preview" : "Float preview over chat"),
|
|
425
|
+
"aria-pressed": b ? "true" : "false",
|
|
426
426
|
type: "button",
|
|
427
|
-
disabled:
|
|
427
|
+
disabled: x
|
|
428
428
|
}),
|
|
429
|
-
children: /* @__PURE__ */ Q(ke, { className:
|
|
430
|
-
}), /* @__PURE__ */ Q(
|
|
429
|
+
children: /* @__PURE__ */ Q(ke, { className: ae(b && "text-primary") })
|
|
430
|
+
}), /* @__PURE__ */ Q(D, { children: E(b ? "Close floating preview" : "Float preview over chat") })] }) : null, t[94] = E, t[95] = y, t[96] = b, t[97] = x, t[98] = Le) : Le = t[98];
|
|
431
431
|
let Re;
|
|
432
432
|
t[99] !== re || t[100] !== N || t[101] !== Se || t[102] !== q || t[103] !== Fe || t[104] !== Ie || t[105] !== Le || t[106] !== ne ? (Re = /* @__PURE__ */ $("form", {
|
|
433
433
|
onSubmit: N,
|
|
@@ -460,7 +460,7 @@ function qt(e) {
|
|
|
460
460
|
}
|
|
461
461
|
// src/components/preview/PreviewLocalServerCard.tsx
|
|
462
462
|
function Jt(e) {
|
|
463
|
-
let t = Bt(11), { threadRef: n, server: r, onOpen: i } = e, a =
|
|
463
|
+
let t = Bt(11), { threadRef: n, server: r, onOpen: i } = e, a = ee(), o;
|
|
464
464
|
t[0] !== a || t[1] !== r ? (o = Yt(r, a), t[0] = a, t[1] = r, t[2] = o) : o = t[2];
|
|
465
465
|
let s = o, c;
|
|
466
466
|
t[3] !== r.requestedUrl || t[4] !== n ? (c = /* @__PURE__ */ Q(ct, {
|
|
@@ -480,54 +480,54 @@ function Yt(e, t) {
|
|
|
480
480
|
}
|
|
481
481
|
// src/components/preview/PreviewRecentUrlCard.tsx
|
|
482
482
|
function Xt(e) {
|
|
483
|
-
let t = Bt(29), { threadRef: n, entry: r, onOpen: i, onRemove: a } = e, o =
|
|
484
|
-
t[0] === r.url ?
|
|
485
|
-
let
|
|
486
|
-
t[2] === r.lastVisitedAt ?
|
|
487
|
-
let
|
|
488
|
-
t[4] !== r.url || t[5] !== n ? (
|
|
483
|
+
let t = Bt(29), { threadRef: n, entry: r, onOpen: i, onRemove: a } = e, o = s(), c;
|
|
484
|
+
t[0] === r.url ? c = t[1] : (c = new URL(r.url), t[0] = r.url, t[1] = c);
|
|
485
|
+
let l = c, u = l.pathname === "/" ? "" : l.pathname, d = `${l.host}${u}${l.search}${l.hash}`, f;
|
|
486
|
+
t[2] === r.lastVisitedAt ? f = t[3] : (f = _e(r.lastVisitedAt) ? /* @__PURE__ */ Q(Dt, { timestamp: new Date(r.lastVisitedAt).toISOString() }) : null, t[2] = r.lastVisitedAt, t[3] = f);
|
|
487
|
+
let p = f, m;
|
|
488
|
+
t[4] !== r.url || t[5] !== n ? (m = /* @__PURE__ */ Q(ct, {
|
|
489
489
|
threadRef: n,
|
|
490
490
|
url: r.url
|
|
491
|
-
}), t[4] = r.url, t[5] = n, t[6] =
|
|
492
|
-
let
|
|
493
|
-
t[7] ===
|
|
491
|
+
}), t[4] = r.url, t[5] = n, t[6] = m) : m = t[6];
|
|
492
|
+
let h = r.title ?? d, g;
|
|
493
|
+
t[7] === h ? g = t[8] : (g = /* @__PURE__ */ Q("span", {
|
|
494
494
|
className: "truncate text-sm font-medium text-foreground",
|
|
495
|
-
children:
|
|
496
|
-
}), t[7] =
|
|
497
|
-
let
|
|
498
|
-
t[9] !==
|
|
495
|
+
children: h
|
|
496
|
+
}), t[7] = h, t[8] = g);
|
|
497
|
+
let _ = r.title ? `${d} · ` : "", v;
|
|
498
|
+
t[9] !== _ || t[10] !== p ? (v = /* @__PURE__ */ $("span", {
|
|
499
499
|
className: "truncate text-xs text-muted-foreground",
|
|
500
|
-
children: [
|
|
501
|
-
}), t[9] =
|
|
502
|
-
let v;
|
|
503
|
-
t[12] !== h || t[13] !== _ ? (v = /* @__PURE__ */ $("div", {
|
|
504
|
-
className: "flex min-w-0 flex-1 flex-col",
|
|
505
|
-
children: [h, _]
|
|
506
|
-
}), t[12] = h, t[13] = _, t[14] = v) : v = t[14];
|
|
500
|
+
children: [_, p]
|
|
501
|
+
}), t[9] = _, t[10] = p, t[11] = v) : v = t[11];
|
|
507
502
|
let y;
|
|
508
|
-
t[
|
|
503
|
+
t[12] !== g || t[13] !== v ? (y = /* @__PURE__ */ $("div", {
|
|
504
|
+
className: "flex min-w-0 flex-1 flex-col",
|
|
505
|
+
children: [g, v]
|
|
506
|
+
}), t[12] = g, t[13] = v, t[14] = y) : y = t[14];
|
|
507
|
+
let b;
|
|
508
|
+
t[15] !== i || t[16] !== m || t[17] !== y ? (b = /* @__PURE__ */ $("button", {
|
|
509
509
|
type: "button",
|
|
510
510
|
onClick: i,
|
|
511
511
|
className: "flex w-full items-center gap-3 px-3 py-3 pr-10 text-left hover:bg-accent/40 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring",
|
|
512
|
-
children: [
|
|
513
|
-
}), t[15] = i, t[16] =
|
|
514
|
-
let b;
|
|
515
|
-
t[19] !== o || t[20] !== u ? (b = o("Remove {url} from history", { url: u }), t[19] = o, t[20] = u, t[21] = b) : b = t[21];
|
|
512
|
+
children: [m, y]
|
|
513
|
+
}), t[15] = i, t[16] = m, t[17] = y, t[18] = b) : b = t[18];
|
|
516
514
|
let x;
|
|
517
|
-
t[
|
|
515
|
+
t[19] !== o || t[20] !== d ? (x = o("Remove {url} from history", { url: d }), t[19] = o, t[20] = d, t[21] = x) : x = t[21];
|
|
516
|
+
let ee;
|
|
517
|
+
t[22] === Symbol.for("react.memo_cache_sentinel") ? (ee = /* @__PURE__ */ Q(Ie, { className: "size-3.5" }), t[22] = ee) : ee = t[22];
|
|
518
518
|
let S;
|
|
519
|
-
t[23] !== a || t[24] !==
|
|
519
|
+
t[23] !== a || t[24] !== x ? (S = /* @__PURE__ */ Q("button", {
|
|
520
520
|
type: "button",
|
|
521
|
-
"aria-label":
|
|
521
|
+
"aria-label": x,
|
|
522
522
|
onClick: a,
|
|
523
523
|
className: "absolute right-3 rounded p-1 text-muted-foreground opacity-0 hover:bg-accent hover:text-foreground focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring group-hover:opacity-100",
|
|
524
|
-
children:
|
|
525
|
-
}), t[23] = a, t[24] =
|
|
526
|
-
let
|
|
527
|
-
return t[26] !== S || t[27] !==
|
|
524
|
+
children: ee
|
|
525
|
+
}), t[23] = a, t[24] = x, t[25] = S) : S = t[25];
|
|
526
|
+
let te;
|
|
527
|
+
return t[26] !== S || t[27] !== b ? (te = /* @__PURE__ */ $("div", {
|
|
528
528
|
className: "group relative flex w-full items-center",
|
|
529
|
-
children: [
|
|
530
|
-
}), t[26] = S, t[27] =
|
|
529
|
+
children: [b, S]
|
|
530
|
+
}), t[26] = S, t[27] = b, t[28] = te) : te = t[28], te;
|
|
531
531
|
}
|
|
532
532
|
// src/components/preview/useDiscoveredLocalServers.ts
|
|
533
533
|
function Zt(e) {
|
|
@@ -610,12 +610,12 @@ function tn(e) {
|
|
|
610
610
|
children: /* @__PURE__ */ Q(Ne, { className: "size-4.5 text-muted-foreground" })
|
|
611
611
|
}), t[12] = e) : e = t[12];
|
|
612
612
|
let n;
|
|
613
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Z, { children: /* @__PURE__ */ Q(
|
|
613
|
+
t[13] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ Q(Z, { children: /* @__PURE__ */ Q(w, { children: "No preview yet" }) }), t[13] = n) : n = t[13];
|
|
614
614
|
let r;
|
|
615
615
|
t[14] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ $(Nt, { children: [
|
|
616
616
|
e,
|
|
617
617
|
n,
|
|
618
|
-
/* @__PURE__ */ Q(Mt, { children: /* @__PURE__ */ Q(
|
|
618
|
+
/* @__PURE__ */ Q(Mt, { children: /* @__PURE__ */ Q(w, { children: "Type a URL above, or run a dev script. Local servers this thread starts will show up here automatically." }) })
|
|
619
619
|
] }), t[14] = r) : r = t[14], p = r;
|
|
620
620
|
break bb0;
|
|
621
621
|
}
|
|
@@ -625,7 +625,7 @@ function tn(e) {
|
|
|
625
625
|
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
626
626
|
children: [/* @__PURE__ */ Q(Me, { className: "size-4 shrink-0" }), /* @__PURE__ */ Q("h2", {
|
|
627
627
|
className: "font-medium",
|
|
628
|
-
children: /* @__PURE__ */ Q(
|
|
628
|
+
children: /* @__PURE__ */ Q(w, { children: "Recently used" })
|
|
629
629
|
})]
|
|
630
630
|
}), /* @__PURE__ */ Q(Ft, { children: e.map((e) => /* @__PURE__ */ Q(Xt, {
|
|
631
631
|
threadRef: n,
|
|
@@ -646,7 +646,7 @@ function tn(e) {
|
|
|
646
646
|
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
647
647
|
children: [/* @__PURE__ */ Q(q, { className: "size-4 shrink-0" }), /* @__PURE__ */ Q("h2", {
|
|
648
648
|
className: "font-medium",
|
|
649
|
-
children: /* @__PURE__ */ Q(
|
|
649
|
+
children: /* @__PURE__ */ Q(w, { children: "Local servers" })
|
|
650
650
|
})]
|
|
651
651
|
}),
|
|
652
652
|
/* @__PURE__ */ Q(Ft, { children: l.map((e) => /* @__PURE__ */ Q(Jt, {
|
|
@@ -656,7 +656,7 @@ function tn(e) {
|
|
|
656
656
|
}, `${e.host}:${e.port}`)) }),
|
|
657
657
|
/* @__PURE__ */ Q("p", {
|
|
658
658
|
className: "px-1 text-xs text-muted-foreground",
|
|
659
|
-
children: /* @__PURE__ */ Q(
|
|
659
|
+
children: /* @__PURE__ */ Q(w, { children: "Select a live local server to open it in this browser tab." })
|
|
660
660
|
})
|
|
661
661
|
]
|
|
662
662
|
}) : null, t[15] = s, t[16] = l, t[17] = n, t[18] = m) : m = t[18];
|
|
@@ -689,10 +689,10 @@ var rn = [
|
|
|
689
689
|
label: n("Dark", { $context: "color scheme" })
|
|
690
690
|
}
|
|
691
691
|
], an = () => {
|
|
692
|
-
let e = Bt(10), t =
|
|
692
|
+
let e = Bt(10), t = s(), n;
|
|
693
693
|
e[0] === t ? n = e[1] : (n = t("Preview menu"), e[0] = t, e[1] = n);
|
|
694
694
|
let r;
|
|
695
|
-
e[2] === n ? r = e[3] : (r = /* @__PURE__ */ Q(
|
|
695
|
+
e[2] === n ? r = e[3] : (r = /* @__PURE__ */ Q(f, { render: /* @__PURE__ */ Q(T, {
|
|
696
696
|
variant: "ghost",
|
|
697
697
|
size: "icon-xs",
|
|
698
698
|
type: "button",
|
|
@@ -706,130 +706,130 @@ var rn = [
|
|
|
706
706
|
children: i
|
|
707
707
|
}), e[5] = r, e[6] = a);
|
|
708
708
|
let o;
|
|
709
|
-
e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(
|
|
709
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(D, { children: /* @__PURE__ */ Q(w, {
|
|
710
710
|
context: "more actions menu",
|
|
711
711
|
children: "More"
|
|
712
712
|
}) }), e[7] = o) : o = e[7];
|
|
713
|
-
let
|
|
714
|
-
return e[8] === a ?
|
|
713
|
+
let c;
|
|
714
|
+
return e[8] === a ? c = e[9] : (c = /* @__PURE__ */ $(O, { children: [a, o] }), e[8] = a, e[9] = c), c;
|
|
715
715
|
};
|
|
716
716
|
function on(e) {
|
|
717
|
-
let t = Bt(98), { enabled: n, actions: r, zoomFactor: i, colorScheme:
|
|
718
|
-
t[0] === i ?
|
|
719
|
-
let
|
|
720
|
-
t[2] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
721
|
-
let ie;
|
|
722
|
-
t[3] !== r.find || t[4] !== E || t[5] !== p ? (ie = r.find ? /* @__PURE__ */ $(_, {
|
|
723
|
-
onClick: r.find,
|
|
724
|
-
disabled: E,
|
|
725
|
-
children: [/* @__PURE__ */ Q(j, { children: "Find on page" }), p ? /* @__PURE__ */ Q(C, { children: p }) : null]
|
|
726
|
-
}) : null, t[3] = r.find, t[4] = E, t[5] = p, t[6] = ie) : ie = t[6];
|
|
717
|
+
let t = Bt(98), { enabled: n, actions: r, zoomFactor: i, colorScheme: c, deviceToolbarVisible: l, onToggleDeviceToolbar: u, nativePictureInPicture: f, profileName: h, findShortcutLabel: v, move: y } = e, x = s(), S = ee(), re;
|
|
718
|
+
t[0] === i ? re = t[1] : (re = Math.round(i * 100), t[0] = i, t[1] = re);
|
|
719
|
+
let E = `${re}%`, D = !n, O;
|
|
720
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (O = /* @__PURE__ */ Q(an, {}), t[2] = O) : O = t[2];
|
|
727
721
|
let k;
|
|
728
|
-
t[
|
|
729
|
-
|
|
730
|
-
|
|
722
|
+
t[3] !== r.find || t[4] !== D || t[5] !== v ? (k = r.find ? /* @__PURE__ */ $(_, {
|
|
723
|
+
onClick: r.find,
|
|
724
|
+
disabled: D,
|
|
725
|
+
children: [/* @__PURE__ */ Q(w, { children: "Find on page" }), v ? /* @__PURE__ */ Q(C, { children: v }) : null]
|
|
726
|
+
}) : null, t[3] = r.find, t[4] = D, t[5] = v, t[6] = k) : k = t[6];
|
|
727
|
+
let ie;
|
|
728
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ Q(w, { children: "Hard reload" }), t[7] = ie) : ie = t[7];
|
|
729
|
+
let j;
|
|
730
|
+
t[8] !== r.hardReload || t[9] !== D ? (j = /* @__PURE__ */ Q(_, {
|
|
731
731
|
onClick: r.hardReload,
|
|
732
|
-
disabled:
|
|
733
|
-
children:
|
|
734
|
-
}), t[8] = r.hardReload, t[9] =
|
|
732
|
+
disabled: D,
|
|
733
|
+
children: ie
|
|
734
|
+
}), t[8] = r.hardReload, t[9] = D, t[10] = j) : j = t[10];
|
|
735
735
|
let ae;
|
|
736
|
-
t[11] !== r.openDevTools || t[12] !==
|
|
736
|
+
t[11] !== r.openDevTools || t[12] !== D ? (ae = r.openDevTools ? /* @__PURE__ */ Q(_, {
|
|
737
737
|
onClick: r.openDevTools,
|
|
738
|
-
disabled:
|
|
739
|
-
children: /* @__PURE__ */ Q(
|
|
740
|
-
}) : null, t[11] = r.openDevTools, t[12] =
|
|
738
|
+
disabled: D,
|
|
739
|
+
children: /* @__PURE__ */ Q(w, { children: "Open DevTools" })
|
|
740
|
+
}) : null, t[11] = r.openDevTools, t[12] = D, t[13] = ae) : ae = t[13];
|
|
741
741
|
let M;
|
|
742
|
-
t[14] !== r.toggleNativePictureInPicture || t[15] !==
|
|
742
|
+
t[14] !== r.toggleNativePictureInPicture || t[15] !== D || t[16] !== x || t[17] !== f ? (M = r.toggleNativePictureInPicture ? /* @__PURE__ */ Q(_, {
|
|
743
743
|
onClick: r.toggleNativePictureInPicture,
|
|
744
|
-
disabled:
|
|
745
|
-
children:
|
|
746
|
-
}) : null, t[14] = r.toggleNativePictureInPicture, t[15] =
|
|
744
|
+
disabled: D,
|
|
745
|
+
children: x(f ? "Close separate preview window" : "Open separate preview window")
|
|
746
|
+
}) : null, t[14] = r.toggleNativePictureInPicture, t[15] = D, t[16] = x, t[17] = f, t[18] = M) : M = t[18];
|
|
747
747
|
let N;
|
|
748
|
-
t[19] ===
|
|
749
|
-
onClick:
|
|
750
|
-
children:
|
|
751
|
-
}) : null, t[19] =
|
|
748
|
+
t[19] === y ? N = t[20] : (N = y ? /* @__PURE__ */ Q(_, {
|
|
749
|
+
onClick: y.onMove,
|
|
750
|
+
children: y.label
|
|
751
|
+
}) : null, t[19] = y, t[20] = N);
|
|
752
752
|
let P;
|
|
753
|
-
t[21] !==
|
|
753
|
+
t[21] !== l || t[22] !== x ? (P = x(l ? "Hide device toolbar" : "Show device toolbar"), t[21] = l, t[22] = x, t[23] = P) : P = t[23];
|
|
754
754
|
let se;
|
|
755
|
-
t[24] !==
|
|
756
|
-
onClick:
|
|
757
|
-
disabled:
|
|
755
|
+
t[24] !== D || t[25] !== u || t[26] !== P ? (se = /* @__PURE__ */ Q(_, {
|
|
756
|
+
onClick: u,
|
|
757
|
+
disabled: D,
|
|
758
758
|
children: P
|
|
759
|
-
}), t[24] =
|
|
759
|
+
}), t[24] = D, t[25] = u, t[26] = P, t[27] = se) : se = t[27];
|
|
760
760
|
let ce;
|
|
761
|
-
t[28] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(
|
|
761
|
+
t[28] === Symbol.for("react.memo_cache_sentinel") ? (ce = /* @__PURE__ */ Q(w, { children: "Appearance" }), t[28] = ce) : ce = t[28];
|
|
762
762
|
let F;
|
|
763
|
-
t[29] ===
|
|
764
|
-
disabled:
|
|
763
|
+
t[29] === D ? F = t[30] : (F = /* @__PURE__ */ Q(ne, {
|
|
764
|
+
disabled: D,
|
|
765
765
|
children: ce
|
|
766
|
-
}), t[29] =
|
|
766
|
+
}), t[29] = D, t[30] = F);
|
|
767
767
|
let I;
|
|
768
768
|
t[31] === r ? I = t[32] : (I = (e) => r.setColorScheme(e), t[31] = r, t[32] = I);
|
|
769
769
|
let L;
|
|
770
|
-
t[33] ===
|
|
770
|
+
t[33] === S ? L = t[34] : (L = rn.map((e) => /* @__PURE__ */ Q(g, {
|
|
771
771
|
value: e.value,
|
|
772
|
-
children:
|
|
773
|
-
}, e.value)), t[33] =
|
|
772
|
+
children: S(e.label)
|
|
773
|
+
}, e.value)), t[33] = S, t[34] = L);
|
|
774
774
|
let R;
|
|
775
|
-
t[35] !==
|
|
776
|
-
value:
|
|
775
|
+
t[35] !== c || t[36] !== I || t[37] !== L ? (R = /* @__PURE__ */ Q(te, { children: /* @__PURE__ */ Q(m, {
|
|
776
|
+
value: c,
|
|
777
777
|
onValueChange: I,
|
|
778
778
|
children: L
|
|
779
|
-
}) }), t[35] =
|
|
779
|
+
}) }), t[35] = c, t[36] = I, t[37] = L, t[38] = R) : R = t[38];
|
|
780
780
|
let z;
|
|
781
|
-
t[39] !== F || t[40] !== R ? (z = /* @__PURE__ */ $(
|
|
781
|
+
t[39] !== F || t[40] !== R ? (z = /* @__PURE__ */ $(p, { children: [F, R] }), t[39] = F, t[40] = R, t[41] = z) : z = t[41];
|
|
782
782
|
let B;
|
|
783
|
-
t[42] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Q(
|
|
783
|
+
t[42] === Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ Q(o, {}), t[42] = B) : B = t[42];
|
|
784
784
|
let le;
|
|
785
|
-
t[43] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(
|
|
785
|
+
t[43] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(w, { children: "Zoom" }) }), t[43] = le) : le = t[43];
|
|
786
786
|
let ue = r.zoomOut, de;
|
|
787
|
-
t[44] ===
|
|
787
|
+
t[44] === x ? de = t[45] : (de = x("Zoom out"), t[44] = x, t[45] = de);
|
|
788
788
|
let fe;
|
|
789
789
|
t[46] === Symbol.for("react.memo_cache_sentinel") ? (fe = /* @__PURE__ */ Q(K, {}), t[46] = fe) : fe = t[46];
|
|
790
790
|
let pe;
|
|
791
|
-
t[47] !== r.zoomOut || t[48] !==
|
|
791
|
+
t[47] !== r.zoomOut || t[48] !== D || t[49] !== de ? (pe = /* @__PURE__ */ Q(T, {
|
|
792
792
|
variant: "outline",
|
|
793
793
|
size: "icon-xs",
|
|
794
794
|
type: "button",
|
|
795
795
|
onClick: ue,
|
|
796
796
|
"aria-label": de,
|
|
797
|
-
disabled:
|
|
797
|
+
disabled: D,
|
|
798
798
|
children: fe
|
|
799
|
-
}), t[47] = r.zoomOut, t[48] =
|
|
799
|
+
}), t[47] = r.zoomOut, t[48] = D, t[49] = de, t[50] = pe) : pe = t[50];
|
|
800
800
|
let V;
|
|
801
|
-
t[51] ===
|
|
801
|
+
t[51] === E ? V = t[52] : (V = /* @__PURE__ */ Q("span", {
|
|
802
802
|
className: "min-w-12 text-center text-xs tabular-nums text-muted-foreground",
|
|
803
|
-
children:
|
|
804
|
-
}), t[51] =
|
|
803
|
+
children: E
|
|
804
|
+
}), t[51] = E, t[52] = V);
|
|
805
805
|
let me = r.zoomIn, he;
|
|
806
|
-
t[53] ===
|
|
806
|
+
t[53] === x ? he = t[54] : (he = x("Zoom in"), t[53] = x, t[54] = he);
|
|
807
807
|
let ge;
|
|
808
808
|
t[55] === Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ Q(Pe, {}), t[55] = ge) : ge = t[55];
|
|
809
809
|
let H;
|
|
810
|
-
t[56] !== r.zoomIn || t[57] !==
|
|
810
|
+
t[56] !== r.zoomIn || t[57] !== D || t[58] !== he ? (H = /* @__PURE__ */ Q(T, {
|
|
811
811
|
variant: "outline",
|
|
812
812
|
size: "icon-xs",
|
|
813
813
|
type: "button",
|
|
814
814
|
onClick: me,
|
|
815
815
|
"aria-label": he,
|
|
816
|
-
disabled:
|
|
816
|
+
disabled: D,
|
|
817
817
|
children: ge
|
|
818
|
-
}), t[56] = r.zoomIn, t[57] =
|
|
818
|
+
}), t[56] = r.zoomIn, t[57] = D, t[58] = he, t[59] = H) : H = t[59];
|
|
819
819
|
let _e = r.resetZoom, ve;
|
|
820
|
-
t[60] ===
|
|
820
|
+
t[60] === x ? ve = t[61] : (ve = x("Reset zoom"), t[60] = x, t[61] = ve);
|
|
821
821
|
let ye;
|
|
822
822
|
t[62] === Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ Q(Fe, {}), t[62] = ye) : ye = t[62];
|
|
823
823
|
let U;
|
|
824
|
-
t[63] !== r.resetZoom || t[64] !==
|
|
824
|
+
t[63] !== r.resetZoom || t[64] !== D || t[65] !== ve ? (U = /* @__PURE__ */ Q(T, {
|
|
825
825
|
variant: "ghost",
|
|
826
826
|
size: "icon-xs",
|
|
827
827
|
type: "button",
|
|
828
828
|
onClick: _e,
|
|
829
829
|
"aria-label": ve,
|
|
830
|
-
disabled:
|
|
830
|
+
disabled: D,
|
|
831
831
|
children: ye
|
|
832
|
-
}), t[63] = r.resetZoom, t[64] =
|
|
832
|
+
}), t[63] = r.resetZoom, t[64] = D, t[65] = ve, t[66] = U) : U = t[66];
|
|
833
833
|
let be;
|
|
834
834
|
t[67] !== pe || t[68] !== V || t[69] !== H || t[70] !== U ? (be = /* @__PURE__ */ $("span", {
|
|
835
835
|
className: "flex items-center gap-1",
|
|
@@ -841,50 +841,50 @@ function on(e) {
|
|
|
841
841
|
]
|
|
842
842
|
}), t[67] = pe, t[68] = V, t[69] = H, t[70] = U, t[71] = be) : be = t[71];
|
|
843
843
|
let xe;
|
|
844
|
-
t[72] !==
|
|
844
|
+
t[72] !== D || t[73] !== be ? (xe = /* @__PURE__ */ $(_, {
|
|
845
845
|
closeOnClick: !1,
|
|
846
846
|
onClick: sn,
|
|
847
847
|
className: "justify-between",
|
|
848
|
-
disabled:
|
|
848
|
+
disabled: D,
|
|
849
849
|
children: [le, be]
|
|
850
|
-
}), t[72] =
|
|
850
|
+
}), t[72] = D, t[73] = be, t[74] = xe) : xe = t[74];
|
|
851
851
|
let Se;
|
|
852
|
-
t[75] === Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ Q(
|
|
852
|
+
t[75] === Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ Q(o, {}), t[75] = Se) : Se = t[75];
|
|
853
853
|
let Ce;
|
|
854
|
-
t[76] ===
|
|
854
|
+
t[76] === h ? Ce = t[77] : (Ce = h ? /* @__PURE__ */ Q(A, {
|
|
855
855
|
className: "max-w-64",
|
|
856
856
|
children: /* @__PURE__ */ Q("span", {
|
|
857
857
|
className: "block truncate",
|
|
858
|
-
children: /* @__PURE__ */ $(
|
|
858
|
+
children: /* @__PURE__ */ $(w, { children: ["Profile: ", /* @__PURE__ */ Q(oe, { children: h })] })
|
|
859
859
|
})
|
|
860
|
-
}) : null, t[76] =
|
|
860
|
+
}) : null, t[76] = h, t[77] = Ce);
|
|
861
861
|
let we;
|
|
862
|
-
t[78] === Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ Q(
|
|
862
|
+
t[78] === Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ Q(w, { children: "Clear cookies" }), t[78] = we) : we = t[78];
|
|
863
863
|
let Te;
|
|
864
864
|
t[79] === r.clearCookies ? Te = t[80] : (Te = /* @__PURE__ */ Q(_, {
|
|
865
865
|
onClick: r.clearCookies,
|
|
866
866
|
children: we
|
|
867
867
|
}), t[79] = r.clearCookies, t[80] = Te);
|
|
868
868
|
let Ee;
|
|
869
|
-
t[81] === Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ Q(
|
|
869
|
+
t[81] === Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ Q(w, { children: "Clear cache" }), t[81] = Ee) : Ee = t[81];
|
|
870
870
|
let De;
|
|
871
871
|
t[82] === r.clearCache ? De = t[83] : (De = /* @__PURE__ */ Q(_, {
|
|
872
872
|
onClick: r.clearCache,
|
|
873
873
|
children: Ee
|
|
874
874
|
}), t[82] = r.clearCache, t[83] = De);
|
|
875
875
|
let Oe;
|
|
876
|
-
t[84] !== Ce || t[85] !== Te || t[86] !== De ? (Oe = /* @__PURE__ */ $(
|
|
876
|
+
t[84] !== Ce || t[85] !== Te || t[86] !== De ? (Oe = /* @__PURE__ */ $(a, { children: [
|
|
877
877
|
Ce,
|
|
878
878
|
Te,
|
|
879
879
|
De
|
|
880
880
|
] }), t[84] = Ce, t[85] = Te, t[86] = De, t[87] = Oe) : Oe = t[87];
|
|
881
881
|
let ke;
|
|
882
|
-
return t[88] !== se || t[89] !== z || t[90] !==
|
|
882
|
+
return t[88] !== se || t[89] !== z || t[90] !== k || t[91] !== xe || t[92] !== Oe || t[93] !== j || t[94] !== ae || t[95] !== M || t[96] !== N ? (ke = /* @__PURE__ */ $(b, { children: [O, /* @__PURE__ */ $(d, {
|
|
883
883
|
align: "end",
|
|
884
884
|
sideOffset: 6,
|
|
885
885
|
children: [
|
|
886
|
-
|
|
887
|
-
|
|
886
|
+
k,
|
|
887
|
+
j,
|
|
888
888
|
ae,
|
|
889
889
|
M,
|
|
890
890
|
N,
|
|
@@ -895,7 +895,7 @@ function on(e) {
|
|
|
895
895
|
Se,
|
|
896
896
|
Oe
|
|
897
897
|
]
|
|
898
|
-
})] }), t[88] = se, t[89] = z, t[90] =
|
|
898
|
+
})] }), t[88] = se, t[89] = z, t[90] = k, t[91] = xe, t[92] = Oe, t[93] = j, t[94] = ae, t[95] = M, t[96] = N, t[97] = ke) : ke = t[97], ke;
|
|
899
899
|
}
|
|
900
900
|
function sn(e) {
|
|
901
901
|
return e.preventDefault();
|
|
@@ -914,7 +914,7 @@ function un(e) {
|
|
|
914
914
|
let l;
|
|
915
915
|
t[3] === n ? l = t[4] : (l = Math.round(n * 100), t[3] = n, t[4] = l);
|
|
916
916
|
let u = `${l}%`, d = !r, f = r ? "opacity-100 translate-y-0" : "opacity-0 -translate-y-1", p;
|
|
917
|
-
t[5] === f ? p = t[6] : (p =
|
|
917
|
+
t[5] === f ? p = t[6] : (p = ae("pointer-events-none absolute top-3 right-3 z-20 select-none rounded-full border border-border/70 bg-popover/95 px-2.5 py-1 text-xs font-medium text-foreground shadow-md/10 backdrop-blur transition-all duration-200 ease-out", f), t[5] = f, t[6] = p);
|
|
918
918
|
let m;
|
|
919
919
|
return t[7] !== u || t[8] !== d || t[9] !== p ? (m = /* @__PURE__ */ Q("div", {
|
|
920
920
|
"aria-hidden": d,
|
|
@@ -924,17 +924,17 @@ function un(e) {
|
|
|
924
924
|
}
|
|
925
925
|
// src/components/preview/PreviewFindBar.tsx
|
|
926
926
|
function dn(e) {
|
|
927
|
-
let t = Bt(69), { tabId: n, focusRequestId: r, onClose: i } = e, a =
|
|
928
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
927
|
+
let t = Bt(69), { tabId: n, focusRequestId: r, onClose: i } = e, a = s(), o = Rt(null), [c, l] = zt(""), [u, d] = zt(null), f;
|
|
928
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
929
929
|
o.current?.focus(), o.current?.select();
|
|
930
|
-
}, t[0] =
|
|
931
|
-
let
|
|
932
|
-
t[1] === r ?
|
|
933
|
-
let
|
|
934
|
-
t[3] === n ? (
|
|
930
|
+
}, t[0] = f) : f = t[0];
|
|
931
|
+
let p;
|
|
932
|
+
t[1] === r ? p = t[2] : (p = [r], t[1] = r, t[2] = p), It(f, p);
|
|
933
|
+
let m, h;
|
|
934
|
+
t[3] === n ? (m = t[4], h = t[5]) : (m = () => {
|
|
935
935
|
if (!Y) return;
|
|
936
936
|
let e = Y.onFindResult((e) => {
|
|
937
|
-
e.tabId === n &&
|
|
937
|
+
e.tabId === n && d((t) => ({
|
|
938
938
|
active: e.activeMatchOrdinal >= 0 ? e.activeMatchOrdinal : t?.active ?? 0,
|
|
939
939
|
matches: e.matches >= 0 ? e.matches : t?.matches ?? 0
|
|
940
940
|
}));
|
|
@@ -942,43 +942,43 @@ function dn(e) {
|
|
|
942
942
|
return () => {
|
|
943
943
|
e(), Y?.stopFindInPage(n).catch(mn);
|
|
944
944
|
};
|
|
945
|
-
},
|
|
946
|
-
let
|
|
947
|
-
t[6] === n ?
|
|
945
|
+
}, h = [n], t[3] = n, t[4] = m, t[5] = h), It(m, h);
|
|
946
|
+
let g;
|
|
947
|
+
t[6] === n ? g = t[7] : (g = (e, t) => {
|
|
948
948
|
Y && Y.findInPage(n, e, t).catch(pn);
|
|
949
|
-
}, t[6] = n, t[7] =
|
|
950
|
-
let
|
|
951
|
-
t[8] !==
|
|
952
|
-
|
|
949
|
+
}, t[6] = n, t[7] = g);
|
|
950
|
+
let _ = g, v;
|
|
951
|
+
t[8] !== _ || t[9] !== n ? (v = (e) => {
|
|
952
|
+
l(e), e.length === 0 ? (d(null), Y?.stopFindInPage(n).catch(fn)) : _(e, {
|
|
953
953
|
forward: !0,
|
|
954
954
|
newSession: !0
|
|
955
955
|
});
|
|
956
|
-
}, t[8] =
|
|
957
|
-
let
|
|
958
|
-
t[11] !==
|
|
959
|
-
|
|
956
|
+
}, t[8] = _, t[9] = n, t[10] = v) : v = t[10];
|
|
957
|
+
let y = v, b;
|
|
958
|
+
t[11] !== c || t[12] !== _ ? (b = (e) => {
|
|
959
|
+
c.length !== 0 && _(c, {
|
|
960
960
|
forward: e,
|
|
961
961
|
newSession: !1
|
|
962
962
|
});
|
|
963
|
-
}, t[11] =
|
|
964
|
-
let
|
|
965
|
-
t[14] !== i || t[15] !==
|
|
966
|
-
e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(),
|
|
967
|
-
}, t[14] = i, t[15] =
|
|
968
|
-
let S =
|
|
969
|
-
t[17] === a ?
|
|
963
|
+
}, t[11] = c, t[12] = _, t[13] = b) : b = t[13];
|
|
964
|
+
let x = b, ee;
|
|
965
|
+
t[14] !== i || t[15] !== x ? (ee = (e) => {
|
|
966
|
+
e.nativeEvent.isComposing || e.nativeEvent.keyCode === 229 || (e.key === "Enter" ? (e.preventDefault(), e.stopPropagation(), x(!e.shiftKey)) : e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), i()));
|
|
967
|
+
}, t[14] = i, t[15] = x, t[16] = ee) : ee = t[16];
|
|
968
|
+
let S = ee, te = c.length > 0, C = te && u !== null && u.matches === 0, ne = te && u ? `${u.matches === 0 ? 0 : u.active}/${u.matches}` : "", re = !u || u.matches === 0, w;
|
|
969
|
+
t[17] === a ? w = t[18] : (w = a("Find in page"), t[17] = a, t[18] = w);
|
|
970
970
|
let E;
|
|
971
971
|
t[19] === a ? E = t[20] : (E = a("Find in page"), t[19] = a, t[20] = E);
|
|
972
972
|
let D;
|
|
973
973
|
t[21] === a ? D = t[22] : (D = a("Find in page"), t[21] = a, t[22] = D);
|
|
974
974
|
let O;
|
|
975
|
-
t[23] ===
|
|
976
|
-
let
|
|
977
|
-
t[25] !== S || t[26] !==
|
|
975
|
+
t[23] === y ? O = t[24] : (O = (e) => y(e.target.value), t[23] = y, t[24] = O);
|
|
976
|
+
let k;
|
|
977
|
+
t[25] !== S || t[26] !== c || t[27] !== E || t[28] !== D || t[29] !== O ? (k = /* @__PURE__ */ Q(kt, {
|
|
978
978
|
ref: o,
|
|
979
979
|
type: "search",
|
|
980
980
|
size: "sm",
|
|
981
|
-
value:
|
|
981
|
+
value: c,
|
|
982
982
|
"aria-label": E,
|
|
983
983
|
placeholder: D,
|
|
984
984
|
maxLength: 200,
|
|
@@ -986,38 +986,38 @@ function dn(e) {
|
|
|
986
986
|
autoComplete: "off",
|
|
987
987
|
onChange: O,
|
|
988
988
|
onKeyDown: S
|
|
989
|
-
}), t[25] = S, t[26] =
|
|
990
|
-
let
|
|
991
|
-
t[31] ===
|
|
992
|
-
let
|
|
993
|
-
t[33] !== ne || t[34] !==
|
|
989
|
+
}), t[25] = S, t[26] = c, t[27] = E, t[28] = D, t[29] = O, t[30] = k) : k = t[30];
|
|
990
|
+
let ie = C ? "text-destructive" : "text-muted-foreground", A;
|
|
991
|
+
t[31] === ie ? A = t[32] : (A = ae("min-w-10 text-center text-xs tabular-nums", ie), t[31] = ie, t[32] = A);
|
|
992
|
+
let j;
|
|
993
|
+
t[33] !== ne || t[34] !== A ? (j = /* @__PURE__ */ Q("span", {
|
|
994
994
|
"aria-live": "polite",
|
|
995
|
-
className:
|
|
995
|
+
className: A,
|
|
996
996
|
children: ne
|
|
997
|
-
}), t[33] = ne, t[34] =
|
|
998
|
-
let
|
|
999
|
-
t[36] === a ?
|
|
997
|
+
}), t[33] = ne, t[34] = A, t[35] = j) : j = t[35];
|
|
998
|
+
let oe;
|
|
999
|
+
t[36] === a ? oe = t[37] : (oe = a("Previous match"), t[36] = a, t[37] = oe);
|
|
1000
1000
|
let M;
|
|
1001
|
-
t[38] ===
|
|
1001
|
+
t[38] === x ? M = t[39] : (M = () => x(!1), t[38] = x, t[39] = M);
|
|
1002
1002
|
let N;
|
|
1003
1003
|
t[40] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ Q(je, {}), t[40] = N) : N = t[40];
|
|
1004
1004
|
let P;
|
|
1005
|
-
t[41] !== re || t[42] !==
|
|
1005
|
+
t[41] !== re || t[42] !== oe || t[43] !== M ? (P = /* @__PURE__ */ Q(T, {
|
|
1006
1006
|
size: "icon-xs",
|
|
1007
1007
|
variant: "ghost",
|
|
1008
|
-
"aria-label":
|
|
1008
|
+
"aria-label": oe,
|
|
1009
1009
|
disabled: re,
|
|
1010
1010
|
onClick: M,
|
|
1011
1011
|
children: N
|
|
1012
|
-
}), t[41] = re, t[42] =
|
|
1012
|
+
}), t[41] = re, t[42] = oe, t[43] = M, t[44] = P) : P = t[44];
|
|
1013
1013
|
let se;
|
|
1014
1014
|
t[45] === a ? se = t[46] : (se = a("Next match"), t[45] = a, t[46] = se);
|
|
1015
1015
|
let ce;
|
|
1016
|
-
t[47] ===
|
|
1016
|
+
t[47] === x ? ce = t[48] : (ce = () => x(!0), t[47] = x, t[48] = ce);
|
|
1017
1017
|
let F;
|
|
1018
1018
|
t[49] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(Ae, {}), t[49] = F) : F = t[49];
|
|
1019
1019
|
let I;
|
|
1020
|
-
t[50] !== re || t[51] !== se || t[52] !== ce ? (I = /* @__PURE__ */ Q(
|
|
1020
|
+
t[50] !== re || t[51] !== se || t[52] !== ce ? (I = /* @__PURE__ */ Q(T, {
|
|
1021
1021
|
size: "icon-xs",
|
|
1022
1022
|
variant: "ghost",
|
|
1023
1023
|
"aria-label": se,
|
|
@@ -1030,7 +1030,7 @@ function dn(e) {
|
|
|
1030
1030
|
let R;
|
|
1031
1031
|
t[56] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ Q(Ie, {}), t[56] = R) : R = t[56];
|
|
1032
1032
|
let z;
|
|
1033
|
-
t[57] !== i || t[58] !== L ? (z = /* @__PURE__ */ Q(
|
|
1033
|
+
t[57] !== i || t[58] !== L ? (z = /* @__PURE__ */ Q(T, {
|
|
1034
1034
|
size: "icon-xs",
|
|
1035
1035
|
variant: "ghost",
|
|
1036
1036
|
"aria-label": L,
|
|
@@ -1038,28 +1038,28 @@ function dn(e) {
|
|
|
1038
1038
|
children: R
|
|
1039
1039
|
}), t[57] = i, t[58] = L, t[59] = z) : z = t[59];
|
|
1040
1040
|
let B;
|
|
1041
|
-
t[60] !==
|
|
1041
|
+
t[60] !== j || t[61] !== P || t[62] !== I || t[63] !== z ? (B = /* @__PURE__ */ $(X, {
|
|
1042
1042
|
align: "inline-end",
|
|
1043
1043
|
inset: "pill",
|
|
1044
1044
|
children: [
|
|
1045
|
-
|
|
1045
|
+
j,
|
|
1046
1046
|
P,
|
|
1047
1047
|
I,
|
|
1048
1048
|
z
|
|
1049
1049
|
]
|
|
1050
|
-
}), t[60] =
|
|
1050
|
+
}), t[60] = j, t[61] = P, t[62] = I, t[63] = z, t[64] = B) : B = t[64];
|
|
1051
1051
|
let le;
|
|
1052
|
-
return t[65] !==
|
|
1052
|
+
return t[65] !== k || t[66] !== B || t[67] !== w ? (le = /* @__PURE__ */ Q("div", {
|
|
1053
1053
|
className: "absolute top-3 right-3 z-40 w-[min(22rem,calc(100%-1.5rem))]",
|
|
1054
1054
|
children: /* @__PURE__ */ $(At, {
|
|
1055
1055
|
variant: "popover",
|
|
1056
1056
|
size: "lg",
|
|
1057
1057
|
role: "search",
|
|
1058
|
-
"aria-label":
|
|
1058
|
+
"aria-label": w,
|
|
1059
1059
|
className: "w-full",
|
|
1060
|
-
children: [
|
|
1060
|
+
children: [k, B]
|
|
1061
1061
|
})
|
|
1062
|
-
}), t[65] =
|
|
1062
|
+
}), t[65] = k, t[66] = B, t[67] = w, t[68] = le) : le = t[68], le;
|
|
1063
1063
|
}
|
|
1064
1064
|
function fn() {}
|
|
1065
1065
|
function pn() {}
|
|
@@ -1095,37 +1095,37 @@ function bn(e) {
|
|
|
1095
1095
|
(!t || t === document.body || t.closest("[data-preview-panel-mode]")) && yn(e);
|
|
1096
1096
|
}
|
|
1097
1097
|
function xn(n) {
|
|
1098
|
-
let
|
|
1099
|
-
|
|
1100
|
-
let U = gt(_e), we = u(Pn), Te = u(Nn), Ee = Le(
|
|
1101
|
-
Ye(
|
|
1102
|
-
let W =
|
|
1103
|
-
|
|
1104
|
-
let Ne = W && G ?
|
|
1105
|
-
|
|
1098
|
+
let a = Bt(207), { threadRef: o, tabId: d, configuredUrls: f, visible: p, onSendAnnotation: m } = n, g = s(), _ = ee(), y = Rt(null), [b, te] = zt(null), [C, ne] = zt(!1), T = e(o.environmentId, "orchestration:operate") && !!m, k = ot(), A = Rt(null), [oe, N] = zt(null), ue = h(I), pe = i(o), H = R(o, 50), _e;
|
|
1099
|
+
a[0] === o ? _e = a[1] : (_e = (e) => mt(e.byThreadKey, o), a[0] = o, a[1] = _e);
|
|
1100
|
+
let U = gt(_e), we = u(Pn), Te = u(Nn), Ee = Le(o.environmentId), De = We(le.open), Oe = We(le.close, "preview close"), ke = Re(o.environmentId)?.label ?? null, Ae = Be(), je = fe(o.environmentId), Me = We(le.adjust, "preview appearance or zoom");
|
|
1101
|
+
Ye(o);
|
|
1102
|
+
let W = d ?? pe.activeTabId, G = W ? pt(o, pe.serverEpoch, W) : null;
|
|
1103
|
+
b !== null && b.tabId !== G && te(null);
|
|
1104
|
+
let Ne = W && G ? k.has(G) ? G : Ze(o, W) : null, K = W ? pe.sessions[W] ?? null : null, Pe = ve(o.environmentId, K), q = K?.runtime === "server" && !Pe, Fe = K?.runtime === "server", Ie = Rt(null), Ve = Rt(null), [He, tt] = zt(!1), [it, at] = zt(0), ct = K?.runtime === "server" && (K.viewport ?? ce)._tag !== "fill", dt = Rt(null), _t, bt;
|
|
1105
|
+
a[2] === ct ? (_t = a[3], bt = a[4]) : (_t = () => {
|
|
1106
1106
|
let e = dt.current;
|
|
1107
1107
|
if (e && ct) return Tt(e, (e) => {
|
|
1108
1108
|
let [t] = e;
|
|
1109
1109
|
return at(Math.max(1, Math.round(t?.contentRect.width ?? 0)));
|
|
1110
1110
|
});
|
|
1111
|
-
}, bt = [ct],
|
|
1111
|
+
}, bt = [ct], a[2] = ct, a[3] = _t, a[4] = bt), It(_t, bt);
|
|
1112
1112
|
let [xt, St] = zt(null), Ct = q && xt !== G, [Et, Dt] = zt(null), X = W && !q ? pe.desktopByTabId[W] ?? null : null, kt = ft(X?.zoomFactor ?? 1), At = !Fe && X?.navStatus._tag !== "Idle" ? X?.navStatus : void 0, jt;
|
|
1113
|
-
|
|
1113
|
+
a[5] !== At || a[6] !== K?.navStatus ? (jt = At ?? K?.navStatus ?? { _tag: "Idle" }, a[5] = At, a[6] = K?.navStatus, a[7] = jt) : jt = a[7];
|
|
1114
1114
|
let Z = jt, Mt = Z._tag === "Idle" ? "" : Z.url, Nt = X?.loading ?? Z._tag === "Loading", Pt = X?.canGoBack ?? K?.canGoBack ?? !1, Ft = X?.canGoForward ?? K?.canGoForward ?? !1, Vt = Z._tag === "Idle", Ut = Z._tag === "LoadFailed", Kt = Z._tag === "Idle", Jt = q && !Kt && !Ut && Et !== G, Yt = X?.controller ?? "none", Xt = K?.viewport ?? ce, Zt = xe(), Qt = K?.profileId ?? "default", $t;
|
|
1115
|
-
|
|
1115
|
+
a[8] !== Qt || a[9] !== Zt.profiles || a[10] !== _ ? ($t = hn(Zt.profiles, Qt, _), a[8] = Qt, a[9] = Zt.profiles, a[10] = _, a[11] = $t) : $t = a[11];
|
|
1116
1116
|
let en = $t, nn = Ge((e) => G ? e.byTabId[G]?.rect ?? null : null), rn = async (e) => {
|
|
1117
|
-
if (q && Ie.current) return Ct ? null : (Ie.current.navigate(e),
|
|
1118
|
-
if (G && Y) return await Y.navigate(G, e),
|
|
1117
|
+
if (q && Ie.current) return Ct ? null : (Ie.current.navigate(e), re(o, e), Qt);
|
|
1118
|
+
if (G && Y) return await Y.navigate(G, e), re(o, e), bn(G), Qt;
|
|
1119
1119
|
let t = await Qe({
|
|
1120
1120
|
openPreview: De,
|
|
1121
|
-
threadRef:
|
|
1121
|
+
threadRef: o,
|
|
1122
1122
|
url: e
|
|
1123
1123
|
});
|
|
1124
1124
|
if (t._tag === "Failure" && !E(t)) {
|
|
1125
|
-
let e =
|
|
1125
|
+
let e = l(t);
|
|
1126
1126
|
yt(e) && J.add({
|
|
1127
1127
|
type: "error",
|
|
1128
|
-
title:
|
|
1128
|
+
title: g("Unable to open browser"),
|
|
1129
1129
|
description: e.message
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
@@ -1133,25 +1133,25 @@ function xn(n) {
|
|
|
1133
1133
|
}, an = Mn, sn = async (e) => {
|
|
1134
1134
|
try {
|
|
1135
1135
|
let t = me(e, Se(ze()));
|
|
1136
|
-
an(await rn(t)) && z(
|
|
1136
|
+
an(await rn(t)) && z(o, t);
|
|
1137
1137
|
} catch (e) {
|
|
1138
1138
|
let t = e;
|
|
1139
1139
|
J.add({
|
|
1140
1140
|
type: "error",
|
|
1141
|
-
title:
|
|
1142
|
-
description: ge(t) ?
|
|
1141
|
+
title: g("Could not open this address"),
|
|
1142
|
+
description: ge(t) ? g("Enter an http or https URL.") : L(t, r) ?? g("An error occurred.")
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
}, cn = async (e) => {
|
|
1146
1146
|
try {
|
|
1147
|
-
let t = q || !Y ? be(e) : he(
|
|
1148
|
-
an(await rn(t)) && z(
|
|
1147
|
+
let t = q || !Y ? be(e) : he(o.environmentId, e);
|
|
1148
|
+
an(await rn(t)) && z(o, e);
|
|
1149
1149
|
} catch (e) {
|
|
1150
1150
|
let t = e;
|
|
1151
1151
|
J.add({
|
|
1152
1152
|
type: "error",
|
|
1153
|
-
title:
|
|
1154
|
-
description: ge(t) ?
|
|
1153
|
+
title: g("Could not open this address"),
|
|
1154
|
+
description: ge(t) ? g("Enter an http or https URL.") : L(t, r) ?? g("An error occurred.")
|
|
1155
1155
|
});
|
|
1156
1156
|
}
|
|
1157
1157
|
}, ln = () => {
|
|
@@ -1159,40 +1159,40 @@ function xn(n) {
|
|
|
1159
1159
|
}, fn = () => {
|
|
1160
1160
|
q ? Ie.current?.stopLoading() : Y && G && Y.stopLoading(G);
|
|
1161
1161
|
}, pn;
|
|
1162
|
-
|
|
1162
|
+
a[12] !== Me || a[13] !== g || a[14] !== W || a[15] !== o ? (pn = async (e) => {
|
|
1163
1163
|
if (!W) return;
|
|
1164
1164
|
let t = await Me({
|
|
1165
|
-
environmentId:
|
|
1165
|
+
environmentId: o.environmentId,
|
|
1166
1166
|
input: {
|
|
1167
|
-
threadId:
|
|
1167
|
+
threadId: o.threadId,
|
|
1168
1168
|
tabId: W,
|
|
1169
1169
|
...e
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
if (t._tag === "Failure") {
|
|
1173
|
-
let e =
|
|
1173
|
+
let e = l(t);
|
|
1174
1174
|
J.add({
|
|
1175
1175
|
type: "error",
|
|
1176
|
-
title:
|
|
1177
|
-
description: L(e, r) ??
|
|
1176
|
+
title: g("Unable to change the browser tab"),
|
|
1177
|
+
description: L(e, r) ?? g("An error occurred.")
|
|
1178
1178
|
});
|
|
1179
|
-
} else
|
|
1180
|
-
},
|
|
1179
|
+
} else x(o, t.value);
|
|
1180
|
+
}, a[12] = Me, a[13] = g, a[14] = W, a[15] = o, a[16] = pn) : pn = a[16];
|
|
1181
1181
|
let mn = pn, vn = K?.zoomFactor ?? 1, xn;
|
|
1182
|
-
|
|
1182
|
+
a[17] !== mn || a[18] !== vn ? (xn = (e) => {
|
|
1183
1183
|
let t = se.indexOf(vn), n = e === 0 ? 1 : se[Math.min(Math.max((t < 0 ? 7 : t) + e, 0), se.length - 1)];
|
|
1184
1184
|
n !== vn && mn({ zoomFactor: n });
|
|
1185
|
-
},
|
|
1185
|
+
}, a[17] = mn, a[18] = vn, a[19] = xn) : xn = a[19];
|
|
1186
1186
|
let Fn = xn, In = Y !== null && G !== null && X !== null && !q && !Kt && !Ut, Ln = () => {
|
|
1187
|
-
In ?
|
|
1187
|
+
In ? te((e) => ({
|
|
1188
1188
|
tabId: G,
|
|
1189
1189
|
requestId: (e?.requestId ?? 0) + 1
|
|
1190
1190
|
})) : J.add({
|
|
1191
1191
|
type: "info",
|
|
1192
|
-
title:
|
|
1192
|
+
title: g("Find on page isn't available for this page")
|
|
1193
1193
|
});
|
|
1194
1194
|
}, Rn = () => {
|
|
1195
|
-
|
|
1195
|
+
te(null), G && bn(G);
|
|
1196
1196
|
}, zn = () => {
|
|
1197
1197
|
Fe ? Fn(1) : Y && G && Y.zoomIn(G);
|
|
1198
1198
|
}, Bn = () => {
|
|
@@ -1202,7 +1202,7 @@ function xn(n) {
|
|
|
1202
1202
|
}, Hn = () => {
|
|
1203
1203
|
if (!G || !W) return;
|
|
1204
1204
|
let e = {
|
|
1205
|
-
threadRef:
|
|
1205
|
+
threadRef: o,
|
|
1206
1206
|
tabId: W,
|
|
1207
1207
|
runtimeTabId: G
|
|
1208
1208
|
};
|
|
@@ -1216,45 +1216,45 @@ function xn(n) {
|
|
|
1216
1216
|
}, Wn = () => {
|
|
1217
1217
|
q ? Ie.current?.history(1) : Y && G && Y.goForward(G);
|
|
1218
1218
|
}, Gn;
|
|
1219
|
-
|
|
1219
|
+
a[20] !== q || a[21] !== o.environmentId || a[22] !== Mt ? (Gn = () => {
|
|
1220
1220
|
if (!gn || !Mt) return;
|
|
1221
|
-
let e = q ? Mt : ye(
|
|
1221
|
+
let e = q ? Mt : ye(o.environmentId, Mt);
|
|
1222
1222
|
gn.shell.openExternal(e).catch(kn);
|
|
1223
|
-
},
|
|
1223
|
+
}, a[20] = q, a[21] = o.environmentId, a[22] = Mt, a[23] = Gn) : Gn = a[23];
|
|
1224
1224
|
let Kn = Gn, qn;
|
|
1225
|
-
|
|
1225
|
+
a[24] !== Ae || a[25] !== je || a[26] !== K || a[27] !== o.environmentId ? (qn = V(o.environmentId, Ae, je, K), a[24] = Ae, a[25] = je, a[26] = K, a[27] = o.environmentId, a[28] = qn) : qn = a[28];
|
|
1226
1226
|
let Jn = qn, Yn;
|
|
1227
|
-
|
|
1227
|
+
a[29] !== ke || a[30] !== g || a[31] !== Jn ? (Yn = Jn === "server" ? ke === null ? g("Open in the environment's browser") : g("Open in {environment}''s browser", { environment: ke }) : g("Open on this computer"), a[29] = ke, a[30] = g, a[31] = Jn, a[32] = Yn) : Yn = a[32];
|
|
1228
1228
|
let Xn = Yn, Zn;
|
|
1229
|
-
|
|
1229
|
+
a[33] !== Oe || a[34] !== g || a[35] !== Jn || a[36] !== De || a[37] !== K || a[38] !== W || a[39] !== o || a[40] !== Mt || a[41] !== Xt ? (Zn = async () => {
|
|
1230
1230
|
if (!Jn || !W || !K) return;
|
|
1231
1231
|
let e = await Qe({
|
|
1232
1232
|
openPreview: De,
|
|
1233
|
-
threadRef:
|
|
1234
|
-
...Mt ? { url: Jn === "desktop" ? he(
|
|
1233
|
+
threadRef: o,
|
|
1234
|
+
...Mt ? { url: Jn === "desktop" ? he(o.environmentId, Mt) : Mt } : {},
|
|
1235
1235
|
viewport: Xt,
|
|
1236
1236
|
...K.profileId === void 0 ? {} : { profileId: K.profileId },
|
|
1237
1237
|
runtime: Jn
|
|
1238
1238
|
});
|
|
1239
1239
|
if (e._tag === "Failure") {
|
|
1240
1240
|
if (E(e)) return;
|
|
1241
|
-
let t =
|
|
1241
|
+
let t = l(e);
|
|
1242
1242
|
J.add({
|
|
1243
1243
|
type: "error",
|
|
1244
|
-
title:
|
|
1245
|
-
description: L(t, r) ??
|
|
1244
|
+
title: g("Unable to move the browser tab"),
|
|
1245
|
+
description: L(t, r) ?? g("An error occurred.")
|
|
1246
1246
|
});
|
|
1247
|
-
} else vt.getState().openBrowser(
|
|
1247
|
+
} else vt.getState().openBrowser(o, e.value.tabId), await ut({
|
|
1248
1248
|
closePreview: Oe,
|
|
1249
1249
|
snapshot: K,
|
|
1250
1250
|
tabId: W,
|
|
1251
|
-
threadRef:
|
|
1251
|
+
threadRef: o
|
|
1252
1252
|
});
|
|
1253
|
-
},
|
|
1253
|
+
}, a[33] = Oe, a[34] = g, a[35] = Jn, a[36] = De, a[37] = K, a[38] = W, a[39] = o, a[40] = Mt, a[41] = Xt, a[42] = Zn) : Zn = a[42];
|
|
1254
1254
|
let Qn = Zn, $n;
|
|
1255
|
-
|
|
1256
|
-
W && (U === W ? gt.getState().close(
|
|
1257
|
-
},
|
|
1255
|
+
a[43] !== U || a[44] !== W || a[45] !== o ? ($n = () => {
|
|
1256
|
+
W && (U === W ? gt.getState().close(o) : (gt.getState().open(o, ht(W)), vt.getState().close(o)));
|
|
1257
|
+
}, a[43] = U, a[44] = W, a[45] = o, a[46] = $n) : $n = a[46];
|
|
1258
1258
|
let er = $n, tr = (e) => () => {
|
|
1259
1259
|
e && G && e(G).catch(On);
|
|
1260
1260
|
}, nr = Fe ? {
|
|
@@ -1278,8 +1278,8 @@ function xn(n) {
|
|
|
1278
1278
|
zoomIn: zn,
|
|
1279
1279
|
zoomOut: Bn,
|
|
1280
1280
|
resetZoom: Vn,
|
|
1281
|
-
clearCookies: () => void Y?.clearCookies(
|
|
1282
|
-
clearCache: () => void Y?.clearCache(
|
|
1281
|
+
clearCookies: () => void Y?.clearCookies(o.environmentId, Qt).catch(En),
|
|
1282
|
+
clearCache: () => void Y?.clearCache(o.environmentId, Qt).catch(Tn),
|
|
1283
1283
|
openDevTools: tr(Y.openDevTools),
|
|
1284
1284
|
toggleNativePictureInPicture: () => rr(),
|
|
1285
1285
|
...In ? { find: Ln } : {}
|
|
@@ -1287,12 +1287,12 @@ function xn(n) {
|
|
|
1287
1287
|
Y && G && (X?.pictureInPicture ? Y.pictureInPicture.close : Y.pictureInPicture.open)(G).catch((e) => {
|
|
1288
1288
|
J.add({
|
|
1289
1289
|
type: "error",
|
|
1290
|
-
title:
|
|
1291
|
-
description: L(e, r) ??
|
|
1290
|
+
title: g("Unable to update popped-out preview"),
|
|
1291
|
+
description: L(e, r) ?? g("An error occurred.")
|
|
1292
1292
|
});
|
|
1293
1293
|
});
|
|
1294
1294
|
}, ir;
|
|
1295
|
-
|
|
1295
|
+
a[47] !== g || a[48] !== _ || a[49] !== Ne || a[50] !== G || a[51] !== W || a[52] !== o ? (ir = (e) => {
|
|
1296
1296
|
Y && G && W && (Ne ? Je(Ne).then((e) => {
|
|
1297
1297
|
if (!e) return;
|
|
1298
1298
|
let t = !1, n, i = () => {
|
|
@@ -1303,27 +1303,27 @@ function xn(n) {
|
|
|
1303
1303
|
}, (e) => {
|
|
1304
1304
|
J.update(n, Ue({
|
|
1305
1305
|
type: "error",
|
|
1306
|
-
title:
|
|
1307
|
-
description: L(e, r) ??
|
|
1306
|
+
title: g("Unable to copy recording path"),
|
|
1307
|
+
description: L(e, r) ?? g("An error occurred."),
|
|
1308
1308
|
actionProps: a
|
|
1309
1309
|
}));
|
|
1310
1310
|
}) : J.update(n, Ue({
|
|
1311
1311
|
type: "error",
|
|
1312
|
-
title:
|
|
1313
|
-
description:
|
|
1312
|
+
title: g("Unable to copy recording path"),
|
|
1313
|
+
description: g("Clipboard API unavailable."),
|
|
1314
1314
|
actionProps: a
|
|
1315
1315
|
}));
|
|
1316
1316
|
}, a = {
|
|
1317
|
-
children: wt(navigator.platform,
|
|
1317
|
+
children: wt(navigator.platform, _),
|
|
1318
1318
|
onClick: () => void Y.revealArtifact(e.path)
|
|
1319
1319
|
}, o = () => {
|
|
1320
1320
|
J.update(n, Ue({
|
|
1321
1321
|
type: "success",
|
|
1322
|
-
title:
|
|
1322
|
+
title: g("Recording saved"),
|
|
1323
1323
|
actionProps: a,
|
|
1324
1324
|
data: {
|
|
1325
1325
|
secondaryActionProps: {
|
|
1326
|
-
children:
|
|
1326
|
+
children: g(t ? "Copied!" : "Copy path"),
|
|
1327
1327
|
disabled: t,
|
|
1328
1328
|
onClick: i
|
|
1329
1329
|
},
|
|
@@ -1333,11 +1333,11 @@ function xn(n) {
|
|
|
1333
1333
|
};
|
|
1334
1334
|
n = J.add(Ue({
|
|
1335
1335
|
type: "success",
|
|
1336
|
-
title:
|
|
1336
|
+
title: g("Recording saved"),
|
|
1337
1337
|
actionProps: a,
|
|
1338
1338
|
data: {
|
|
1339
1339
|
secondaryActionProps: {
|
|
1340
|
-
children:
|
|
1340
|
+
children: g("Copy path"),
|
|
1341
1341
|
onClick: i
|
|
1342
1342
|
},
|
|
1343
1343
|
secondaryActionVariant: "outline"
|
|
@@ -1346,28 +1346,28 @@ function xn(n) {
|
|
|
1346
1346
|
}, (e) => {
|
|
1347
1347
|
J.add({
|
|
1348
1348
|
type: "error",
|
|
1349
|
-
title:
|
|
1350
|
-
description: L(e, r) ??
|
|
1349
|
+
title: g("Unable to stop recording"),
|
|
1350
|
+
description: L(e, r) ?? g("An error occurred.")
|
|
1351
1351
|
});
|
|
1352
|
-
}) : e ? Ke(G,
|
|
1353
|
-
let t = L(e, r) ??
|
|
1352
|
+
}) : e ? Ke(G, o, W).catch((e) => {
|
|
1353
|
+
let t = L(e, r) ?? g("An error occurred.");
|
|
1354
1354
|
qe(e) || J.add({
|
|
1355
1355
|
type: "error",
|
|
1356
|
-
title:
|
|
1356
|
+
title: g("Unable to start recording"),
|
|
1357
1357
|
description: t
|
|
1358
1358
|
});
|
|
1359
1359
|
}) : Y.captureScreenshot(G).then((e) => {
|
|
1360
1360
|
let t = {
|
|
1361
|
-
children: wt(navigator.platform,
|
|
1361
|
+
children: wt(navigator.platform, _),
|
|
1362
1362
|
onClick: () => void Y.revealArtifact(e.path)
|
|
1363
1363
|
}, n = !1, i = !1, a, o = (e, r, o) => {
|
|
1364
|
-
let l = e === void 0 ? "success" : e, u = r === void 0 ?
|
|
1364
|
+
let l = e === void 0 ? "success" : e, u = r === void 0 ? g("Screenshot saved") : r;
|
|
1365
1365
|
J.update(a, Ue({
|
|
1366
1366
|
type: l,
|
|
1367
1367
|
title: u,
|
|
1368
1368
|
description: o,
|
|
1369
1369
|
actionProps: {
|
|
1370
|
-
children:
|
|
1370
|
+
children: g(i ? "Copied!" : "Copy image"),
|
|
1371
1371
|
disabled: i,
|
|
1372
1372
|
onClick: c
|
|
1373
1373
|
},
|
|
@@ -1375,7 +1375,7 @@ function xn(n) {
|
|
|
1375
1375
|
additionalActions: [{
|
|
1376
1376
|
id: "copy-path",
|
|
1377
1377
|
props: {
|
|
1378
|
-
children:
|
|
1378
|
+
children: g(n ? "Copied!" : "Copy path"),
|
|
1379
1379
|
disabled: n,
|
|
1380
1380
|
onClick: s
|
|
1381
1381
|
}
|
|
@@ -1390,29 +1390,29 @@ function xn(n) {
|
|
|
1390
1390
|
n = !1, o();
|
|
1391
1391
|
}, 2e3);
|
|
1392
1392
|
}, (e) => {
|
|
1393
|
-
o("error",
|
|
1394
|
-
}) : o("error",
|
|
1393
|
+
o("error", g("Unable to copy screenshot path"), L(e, r) ?? g("An error occurred."));
|
|
1394
|
+
}) : o("error", g("Unable to copy screenshot path"), g("Clipboard API unavailable."));
|
|
1395
1395
|
}, c = () => {
|
|
1396
1396
|
Y.copyArtifactToClipboard(e.path).then(() => {
|
|
1397
1397
|
i = !0, o(), window.setTimeout(() => {
|
|
1398
1398
|
i = !1, o();
|
|
1399
1399
|
}, 2e3);
|
|
1400
1400
|
}, (e) => {
|
|
1401
|
-
o("error",
|
|
1401
|
+
o("error", g("Unable to copy screenshot"), L(e, r) ?? g("An error occurred."));
|
|
1402
1402
|
});
|
|
1403
1403
|
};
|
|
1404
1404
|
a = J.add(Ue({
|
|
1405
1405
|
type: "success",
|
|
1406
|
-
title:
|
|
1406
|
+
title: g("Screenshot saved"),
|
|
1407
1407
|
actionProps: {
|
|
1408
|
-
children:
|
|
1408
|
+
children: g("Copy image"),
|
|
1409
1409
|
onClick: c
|
|
1410
1410
|
},
|
|
1411
1411
|
data: {
|
|
1412
1412
|
additionalActions: [{
|
|
1413
1413
|
id: "copy-path",
|
|
1414
1414
|
props: {
|
|
1415
|
-
children:
|
|
1415
|
+
children: g("Copy path"),
|
|
1416
1416
|
onClick: s
|
|
1417
1417
|
}
|
|
1418
1418
|
}],
|
|
@@ -1423,44 +1423,44 @@ function xn(n) {
|
|
|
1423
1423
|
}, (e) => {
|
|
1424
1424
|
J.add({
|
|
1425
1425
|
type: "error",
|
|
1426
|
-
title:
|
|
1427
|
-
description: L(e, r) ??
|
|
1426
|
+
title: g("Unable to capture screenshot"),
|
|
1427
|
+
description: L(e, r) ?? g("An error occurred.")
|
|
1428
1428
|
});
|
|
1429
1429
|
}));
|
|
1430
|
-
},
|
|
1430
|
+
}, a[47] = g, a[48] = _, a[49] = Ne, a[50] = G, a[51] = W, a[52] = o, a[53] = ir) : ir = a[53];
|
|
1431
1431
|
let ar = ir, or;
|
|
1432
|
-
|
|
1432
|
+
a[54] !== Te || a[55] !== we || a[56] !== g || a[57] !== ue || a[58] !== m || a[59] !== G || a[60] !== o ? (or = () => {
|
|
1433
1433
|
if (!Y || !G) return;
|
|
1434
|
-
if (
|
|
1435
|
-
|
|
1434
|
+
if (A.current) {
|
|
1435
|
+
A.current.cancelled = !0, Y.cancelPickElement(G).catch(wn);
|
|
1436
1436
|
return;
|
|
1437
1437
|
}
|
|
1438
1438
|
let e = typeof document < "u" ? document.activeElement : null, n = { cancelled: !1 }, r = !1;
|
|
1439
|
-
|
|
1439
|
+
A.current = n, ne(!0);
|
|
1440
1440
|
let i = {
|
|
1441
|
-
sessionId:
|
|
1441
|
+
sessionId: j(),
|
|
1442
1442
|
shortcuts: F(ue, "composer.dictation", { context: {
|
|
1443
1443
|
previewFocus: !0,
|
|
1444
1444
|
previewOpen: !0,
|
|
1445
1445
|
editableFocus: !0
|
|
1446
1446
|
} })
|
|
1447
1447
|
};
|
|
1448
|
-
N(i),
|
|
1449
|
-
if (await Y.setAnnotationSendEnabled(G, !!m && t(
|
|
1448
|
+
N(i), S(async () => {
|
|
1449
|
+
if (await Y.setAnnotationSendEnabled(G, !!m && t(o.environmentId, "orchestration:operate")), n.cancelled) return;
|
|
1450
1450
|
yn(G);
|
|
1451
1451
|
let e = await Y.pickElement(G, i);
|
|
1452
1452
|
if (!e || n.cancelled) return;
|
|
1453
|
-
|
|
1454
|
-
let { annotation: a, submission:
|
|
1453
|
+
A.current === n && (A.current = null, ne(!1), N(null), r = !0);
|
|
1454
|
+
let { annotation: a, submission: s, screenshotFailed: c } = e, l = c !== void 0 && c, u = Wt(a), d = l || u.status === "failed", f = u.status === "failed" ? {
|
|
1455
1455
|
...a,
|
|
1456
1456
|
screenshot: null
|
|
1457
1457
|
} : a;
|
|
1458
|
-
u.status === "captured" && await v(u.file), we(
|
|
1458
|
+
u.status === "captured" && await v(u.file), we(o, f), d && J.add(Ue({
|
|
1459
1459
|
type: "error",
|
|
1460
|
-
title:
|
|
1461
|
-
description:
|
|
1460
|
+
title: g("Could not capture the picked element"),
|
|
1461
|
+
description: g("The annotation was kept without the screenshot.")
|
|
1462
1462
|
}));
|
|
1463
|
-
let p = u.status === "captured" ? u.file : null,
|
|
1463
|
+
let p = u.status === "captured" ? u.file : null, h = p && f.screenshot ? {
|
|
1464
1464
|
type: "image",
|
|
1465
1465
|
id: f.id,
|
|
1466
1466
|
name: p.name,
|
|
@@ -1469,28 +1469,28 @@ function xn(n) {
|
|
|
1469
1469
|
previewUrl: f.screenshot.dataUrl,
|
|
1470
1470
|
file: p
|
|
1471
1471
|
} : null;
|
|
1472
|
-
|
|
1472
|
+
h && Te(o, h), s === "send" && t(o.environmentId, "orchestration:operate") && m?.(f, h);
|
|
1473
1473
|
}).then(() => {
|
|
1474
|
-
let t =
|
|
1475
|
-
if (t && (
|
|
1474
|
+
let t = A.current === n;
|
|
1475
|
+
if (t && (A.current = null, ne(!1), N(null)), (t || r) && e && e.isConnected && typeof e.focus == "function") try {
|
|
1476
1476
|
e.focus({ preventScroll: !0 });
|
|
1477
1477
|
} catch {}
|
|
1478
1478
|
});
|
|
1479
|
-
},
|
|
1479
|
+
}, a[54] = Te, a[55] = we, a[56] = g, a[57] = ue, a[58] = m, a[59] = G, a[60] = o, a[61] = or) : or = a[61];
|
|
1480
1480
|
let sr = or, cr, lr;
|
|
1481
|
-
|
|
1482
|
-
C && Y && G && Y.setAnnotationSendEnabled(G,
|
|
1481
|
+
a[62] !== T || a[63] !== C || a[64] !== G ? (cr = () => {
|
|
1482
|
+
C && Y && G && Y.setAnnotationSendEnabled(G, T).catch(Cn);
|
|
1483
1483
|
}, lr = [
|
|
1484
|
-
|
|
1484
|
+
T,
|
|
1485
1485
|
C,
|
|
1486
1486
|
G
|
|
1487
|
-
],
|
|
1487
|
+
], a[62] = T, a[63] = C, a[64] = G, a[65] = cr, a[66] = lr) : (cr = a[65], lr = a[66]), It(cr, lr);
|
|
1488
1488
|
let ur, dr;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
}, dr = [G],
|
|
1489
|
+
a[67] === G ? (ur = a[68], dr = a[69]) : (ur = () => () => {
|
|
1490
|
+
A.current && (A.current.cancelled = !0, A.current = null, Y && G && Y.cancelPickElement(G).catch(Sn), ne(!1), N(null));
|
|
1491
|
+
}, dr = [G], a[67] = G, a[68] = ur, a[69] = dr), It(ur, dr);
|
|
1492
1492
|
let fr;
|
|
1493
|
-
|
|
1493
|
+
a[70] !== Un || a[71] !== Ln || a[72] !== Wn || a[73] !== ln || a[74] !== Vn || a[75] !== zn || a[76] !== Bn ? (fr = (e) => {
|
|
1494
1494
|
switch (e) {
|
|
1495
1495
|
case "refresh":
|
|
1496
1496
|
ln();
|
|
@@ -1502,7 +1502,7 @@ function xn(n) {
|
|
|
1502
1502
|
Wn();
|
|
1503
1503
|
return;
|
|
1504
1504
|
case "focus-url":
|
|
1505
|
-
|
|
1505
|
+
y.current?.focus();
|
|
1506
1506
|
return;
|
|
1507
1507
|
case "zoom-in":
|
|
1508
1508
|
zn();
|
|
@@ -1518,9 +1518,9 @@ function xn(n) {
|
|
|
1518
1518
|
return;
|
|
1519
1519
|
case "toggle-panel": return;
|
|
1520
1520
|
}
|
|
1521
|
-
},
|
|
1521
|
+
}, a[70] = Un, a[71] = Ln, a[72] = Wn, a[73] = ln, a[74] = Vn, a[75] = zn, a[76] = Bn, a[77] = fr) : fr = a[77];
|
|
1522
1522
|
let pr = Lt(fr), mr;
|
|
1523
|
-
|
|
1523
|
+
a[78] !== pr || a[79] !== p ? (mr = () => {
|
|
1524
1524
|
if (!p) return;
|
|
1525
1525
|
let e = Ot((e) => pr(e)), t = window.desktopBridge?.onMenuAction((e) => {
|
|
1526
1526
|
e === "preview.focusUrl" && pr("focus-url"), e === "preview.zoomIn" && pr("zoom-in"), e === "preview.zoomOut" && pr("zoom-out"), e === "preview.resetZoom" && pr("reset-zoom"), e === "preview.find" && pr("find");
|
|
@@ -1528,25 +1528,25 @@ function xn(n) {
|
|
|
1528
1528
|
return () => {
|
|
1529
1529
|
e(), t?.();
|
|
1530
1530
|
};
|
|
1531
|
-
},
|
|
1531
|
+
}, a[78] = pr, a[79] = p, a[80] = mr) : mr = a[80];
|
|
1532
1532
|
let hr;
|
|
1533
|
-
|
|
1533
|
+
a[81] === p ? hr = a[82] : (hr = [p], a[81] = p, a[82] = hr), It(mr, hr);
|
|
1534
1534
|
let gr;
|
|
1535
|
-
|
|
1535
|
+
a[83] === o ? gr = a[84] : (gr = ie(o), a[83] = o, a[84] = gr);
|
|
1536
1536
|
let _r;
|
|
1537
|
-
|
|
1538
|
-
threadRef:
|
|
1537
|
+
a[85] !== oe || a[86] !== ue || a[87] !== C || a[88] !== G || a[89] !== o ? (_r = C && G && oe ? /* @__PURE__ */ Q(Gt, {
|
|
1538
|
+
threadRef: o,
|
|
1539
1539
|
tabId: G,
|
|
1540
|
-
config:
|
|
1540
|
+
config: oe,
|
|
1541
1541
|
keybindings: ue
|
|
1542
|
-
},
|
|
1542
|
+
}, oe.sessionId) : null, a[85] = oe, a[86] = ue, a[87] = C, a[88] = G, a[89] = o, a[90] = _r) : _r = a[90];
|
|
1543
1543
|
let vr = Nt || Jt, yr = Pt && !Ct, br = Ft && !Ct, xr = Vt || Ct, Sr;
|
|
1544
|
-
|
|
1544
|
+
a[91] === sn ? Sr = a[92] : (Sr = (e) => void sn(e), a[91] = sn, a[92] = Sr);
|
|
1545
1545
|
let Cr = W ? Kn : void 0, wr = Y && W && !q ? ar : void 0, Tr = !X || Ut, Er = Ne !== null, Dr = W && (q || Y) ? er : void 0, Or = U === W, kr = Ut || !q && !X?.hasWebContents, Ar = Y && W && !q ? sr : void 0, jr = !W || Ut, Mr;
|
|
1546
|
-
|
|
1546
|
+
a[93] !== g || a[94] !== Ut ? (Mr = Ut ? g("Page didn't load. Pick is unavailable until the page renders") : void 0, a[93] = g, a[94] = Ut, a[95] = Mr) : Mr = a[95];
|
|
1547
1547
|
let Nr;
|
|
1548
|
-
|
|
1549
|
-
render: /* @__PURE__ */ Q(
|
|
1548
|
+
a[96] !== Qt || a[97] !== en || a[98] !== Zt.profileId ? (Nr = Qt === Zt.profileId ? null : /* @__PURE__ */ $(O, { children: [/* @__PURE__ */ Q(M, {
|
|
1549
|
+
render: /* @__PURE__ */ Q(c, {
|
|
1550
1550
|
variant: "outline",
|
|
1551
1551
|
className: "max-w-28 shrink-0"
|
|
1552
1552
|
}),
|
|
@@ -1554,12 +1554,12 @@ function xn(n) {
|
|
|
1554
1554
|
className: "truncate",
|
|
1555
1555
|
children: en
|
|
1556
1556
|
})
|
|
1557
|
-
}), /* @__PURE__ */ Q(
|
|
1557
|
+
}), /* @__PURE__ */ Q(D, {
|
|
1558
1558
|
side: "top",
|
|
1559
1559
|
children: en
|
|
1560
|
-
})] }),
|
|
1560
|
+
})] }), a[96] = Qt, a[97] = en, a[98] = Zt.profileId, a[99] = Nr) : Nr = a[99];
|
|
1561
1561
|
let Pr;
|
|
1562
|
-
|
|
1562
|
+
a[100] !== en || a[101] !== X?.colorScheme || a[102] !== X?.hasWebContents || a[103] !== X?.pictureInPicture || a[104] !== X?.zoomFactor || a[105] !== Qn || a[106] !== Hn || a[107] !== ue || a[108] !== nr || a[109] !== Xn || a[110] !== Jn || a[111] !== G || a[112] !== Fe || a[113] !== vn || a[114] !== K?.colorScheme || a[115] !== Xt ? (Pr = nr ? /* @__PURE__ */ Q(on, {
|
|
1563
1563
|
enabled: G !== null && (Fe || (X?.hasWebContents ?? !1)),
|
|
1564
1564
|
actions: nr,
|
|
1565
1565
|
...Jn ? { move: {
|
|
@@ -1573,16 +1573,16 @@ function xn(n) {
|
|
|
1573
1573
|
deviceToolbarVisible: Xt._tag !== "fill",
|
|
1574
1574
|
onToggleDeviceToolbar: Hn,
|
|
1575
1575
|
nativePictureInPicture: X?.pictureInPicture ?? !1
|
|
1576
|
-
}) : null,
|
|
1576
|
+
}) : null, a[100] = en, a[101] = X?.colorScheme, a[102] = X?.hasWebContents, a[103] = X?.pictureInPicture, a[104] = X?.zoomFactor, a[105] = Qn, a[106] = Hn, a[107] = ue, a[108] = nr, a[109] = Xn, a[110] = Jn, a[111] = G, a[112] = Fe, a[113] = vn, a[114] = K?.colorScheme, a[115] = Xt, a[116] = Pr) : Pr = a[116];
|
|
1577
1577
|
let Fr;
|
|
1578
|
-
|
|
1578
|
+
a[117] !== Un || a[118] !== Wn || a[119] !== ln || a[120] !== fn || a[121] !== C || a[122] !== Ct || a[123] !== vr || a[124] !== yr || a[125] !== br || a[126] !== xr || a[127] !== Sr || a[128] !== Cr || a[129] !== wr || a[130] !== Tr || a[131] !== Er || a[132] !== Dr || a[133] !== Or || a[134] !== kr || a[135] !== Ar || a[136] !== jr || a[137] !== Mr || a[138] !== Nr || a[139] !== Pr || a[140] !== Mt ? (Fr = /* @__PURE__ */ Q(qt, {
|
|
1579
1579
|
url: Mt,
|
|
1580
1580
|
loading: vr,
|
|
1581
1581
|
canGoBack: yr,
|
|
1582
1582
|
canGoForward: br,
|
|
1583
1583
|
refreshDisabled: xr,
|
|
1584
1584
|
inputDisabled: Ct,
|
|
1585
|
-
urlInputRef:
|
|
1585
|
+
urlInputRef: y,
|
|
1586
1586
|
onBack: Un,
|
|
1587
1587
|
onForward: Wn,
|
|
1588
1588
|
onRefresh: ln,
|
|
@@ -1601,9 +1601,9 @@ function xn(n) {
|
|
|
1601
1601
|
pickDisabledReason: Mr,
|
|
1602
1602
|
leadingActions: Nr,
|
|
1603
1603
|
trailingActions: Pr
|
|
1604
|
-
}),
|
|
1604
|
+
}), a[117] = Un, a[118] = Wn, a[119] = ln, a[120] = fn, a[121] = C, a[122] = Ct, a[123] = vr, a[124] = yr, a[125] = br, a[126] = xr, a[127] = Sr, a[128] = Cr, a[129] = wr, a[130] = Tr, a[131] = Er, a[132] = Dr, a[133] = Or, a[134] = kr, a[135] = Ar, a[136] = jr, a[137] = Mr, a[138] = Nr, a[139] = Pr, a[140] = Mt, a[141] = Fr) : Fr = a[141];
|
|
1605
1605
|
let Ir;
|
|
1606
|
-
|
|
1606
|
+
a[142] !== Ee || a[143] !== q || a[144] !== Ut || a[145] !== Z._tag || a[146] !== G || a[147] !== He || a[148] !== Ve || a[149] !== Ie || a[150] !== it || a[151] !== tt || a[152] !== St || a[153] !== Dt || a[154] !== Kt || a[155] !== K || a[156] !== o || a[157] !== Mt || a[158] !== Xt || a[159] !== p ? (Ir = G && K && q ? /* @__PURE__ */ $(Ht, { children: [Xt._tag !== "fill" && !Kt && !Ut ? /* @__PURE__ */ Q("div", {
|
|
1607
1607
|
className: "absolute inset-x-0 top-0 z-10",
|
|
1608
1608
|
children: /* @__PURE__ */ Q(Xe, {
|
|
1609
1609
|
setting: Xt,
|
|
@@ -1611,26 +1611,26 @@ function xn(n) {
|
|
|
1611
1611
|
aspectRatio: He ? Xt.width / Xt.height : null,
|
|
1612
1612
|
onAspectRatioChange: (e) => tt(e !== null),
|
|
1613
1613
|
onChange: (e) => $e({
|
|
1614
|
-
threadRef:
|
|
1614
|
+
threadRef: o,
|
|
1615
1615
|
tabId: K.tabId,
|
|
1616
1616
|
runtimeTabId: G
|
|
1617
1617
|
}, e)
|
|
1618
1618
|
})
|
|
1619
1619
|
}) : null, /* @__PURE__ */ Q("div", {
|
|
1620
1620
|
ref: Ve,
|
|
1621
|
-
className:
|
|
1621
|
+
className: ae("absolute inset-x-0 bottom-0", (Kt || Ut) && "invisible"),
|
|
1622
1622
|
style: { top: Xt._tag === "fill" ? 0 : 38 },
|
|
1623
1623
|
children: /* @__PURE__ */ Q(st, {
|
|
1624
1624
|
ref: Ie,
|
|
1625
|
-
environmentId:
|
|
1626
|
-
threadId:
|
|
1625
|
+
environmentId: o.environmentId,
|
|
1626
|
+
threadId: o.threadId,
|
|
1627
1627
|
tabId: K.tabId,
|
|
1628
1628
|
pdfUrl: Z._tag === "Success" ? Ce(Mt, Ee) : null,
|
|
1629
1629
|
visible: p,
|
|
1630
1630
|
onFirstFrame: () => Dt(G),
|
|
1631
1631
|
onNoFrames: () => Dt(G),
|
|
1632
1632
|
onControl: (e) => St(e?.controller === "you" ? G : null),
|
|
1633
|
-
onPopup: (e) => lt(
|
|
1633
|
+
onPopup: (e) => lt(o, e, "panel"),
|
|
1634
1634
|
className: "absolute inset-0 h-full w-full"
|
|
1635
1635
|
}, G)
|
|
1636
1636
|
})] }) : G && K && !Kt ? Y ? /* @__PURE__ */ Q(rt, {
|
|
@@ -1641,37 +1641,37 @@ function xn(n) {
|
|
|
1641
1641
|
className: "flex h-full items-center justify-center p-8 text-center",
|
|
1642
1642
|
children: /* @__PURE__ */ Q("p", {
|
|
1643
1643
|
className: "max-w-sm text-sm text-muted-foreground",
|
|
1644
|
-
children: /* @__PURE__ */ Q(
|
|
1644
|
+
children: /* @__PURE__ */ Q(w, { children: "This tab is open in the Hanzo Dev desktop app." })
|
|
1645
1645
|
})
|
|
1646
|
-
}) : null,
|
|
1646
|
+
}) : null, a[142] = Ee, a[143] = q, a[144] = Ut, a[145] = Z._tag, a[146] = G, a[147] = He, a[148] = Ve, a[149] = Ie, a[150] = it, a[151] = tt, a[152] = St, a[153] = Dt, a[154] = Kt, a[155] = K, a[156] = o, a[157] = Mt, a[158] = Xt, a[159] = p, a[160] = Ir) : Ir = a[160];
|
|
1647
1647
|
let Lr;
|
|
1648
|
-
|
|
1649
|
-
threadRef:
|
|
1650
|
-
environmentId:
|
|
1651
|
-
configuredUrls:
|
|
1648
|
+
a[161] !== f || a[162] !== cn || a[163] !== H || a[164] !== Kt || a[165] !== o ? (Lr = Kt ? /* @__PURE__ */ Q(tn, {
|
|
1649
|
+
threadRef: o,
|
|
1650
|
+
environmentId: o.environmentId,
|
|
1651
|
+
configuredUrls: f,
|
|
1652
1652
|
recentEntries: H,
|
|
1653
|
-
onRemoveRecent: (e) => B(
|
|
1653
|
+
onRemoveRecent: (e) => B(o, e),
|
|
1654
1654
|
onOpenUrl: (e) => void cn(e)
|
|
1655
|
-
}) : null,
|
|
1655
|
+
}) : null, a[161] = f, a[162] = cn, a[163] = H, a[164] = Kt, a[165] = o, a[166] = Lr) : Lr = a[166];
|
|
1656
1656
|
let Rr;
|
|
1657
|
-
|
|
1657
|
+
a[167] !== X || a[168] !== K ? (Rr = K && X ? /* @__PURE__ */ Q(un, { zoomFactor: X.zoomFactor }) : null, a[167] = X, a[168] = K, a[169] = Rr) : Rr = a[169];
|
|
1658
1658
|
let zr;
|
|
1659
|
-
|
|
1659
|
+
a[170] !== k || a[171] !== Yt || a[172] !== X || a[173] !== Ut || a[174] !== kt || a[175] !== G || a[176] !== Kt ? (zr = G && X && !Kt && !Ut && !k.has(G) ? /* @__PURE__ */ Q(nt, {
|
|
1660
1660
|
tabId: G,
|
|
1661
1661
|
zoomFactor: kt,
|
|
1662
1662
|
controller: Yt
|
|
1663
|
-
}) : null,
|
|
1663
|
+
}) : null, a[170] = k, a[171] = Yt, a[172] = X, a[173] = Ut, a[174] = kt, a[175] = G, a[176] = Kt, a[177] = zr) : zr = a[177];
|
|
1664
1664
|
let Br;
|
|
1665
|
-
|
|
1666
|
-
tabId:
|
|
1667
|
-
focusRequestId:
|
|
1665
|
+
a[178] !== In || a[179] !== Rn || a[180] !== b || a[181] !== G ? (Br = b && In && b.tabId === G ? /* @__PURE__ */ Q(dn, {
|
|
1666
|
+
tabId: b.tabId,
|
|
1667
|
+
focusRequestId: b.requestId,
|
|
1668
1668
|
onClose: Rn
|
|
1669
|
-
},
|
|
1669
|
+
}, b.tabId) : null, a[178] = In, a[179] = Rn, a[180] = b, a[181] = G, a[182] = Br) : Br = a[182];
|
|
1670
1670
|
let Vr;
|
|
1671
|
-
|
|
1671
|
+
a[183] !== Qn || a[184] !== ln || a[185] !== Xn || a[186] !== Jn || a[187] !== Z._tag || a[188] !== Z.code || a[189] !== Z.description || a[190] !== Z.download || a[191] !== Z.url || a[192] !== K?.tabId || a[193] !== o ? (Vr = Z._tag === "LoadFailed" && Z.download ? /* @__PURE__ */ Q("div", {
|
|
1672
1672
|
className: "absolute inset-0 z-10 bg-background",
|
|
1673
1673
|
children: /* @__PURE__ */ Q(_n, {
|
|
1674
|
-
threadRef:
|
|
1674
|
+
threadRef: o,
|
|
1675
1675
|
tabId: K?.tabId ?? "",
|
|
1676
1676
|
url: Z.url,
|
|
1677
1677
|
download: Z.download
|
|
@@ -1688,9 +1688,9 @@ function xn(n) {
|
|
|
1688
1688
|
onMove: () => void Qn()
|
|
1689
1689
|
} } : {}
|
|
1690
1690
|
})
|
|
1691
|
-
}) : null,
|
|
1691
|
+
}) : null, a[183] = Qn, a[184] = ln, a[185] = Xn, a[186] = Jn, a[187] = Z._tag, a[188] = Z.code, a[189] = Z.description, a[190] = Z.download, a[191] = Z.url, a[192] = K?.tabId, a[193] = o, a[194] = Vr) : Vr = a[194];
|
|
1692
1692
|
let Hr;
|
|
1693
|
-
|
|
1693
|
+
a[195] !== Ir || a[196] !== Lr || a[197] !== Rr || a[198] !== zr || a[199] !== Br || a[200] !== Vr ? (Hr = /* @__PURE__ */ $("div", {
|
|
1694
1694
|
ref: dt,
|
|
1695
1695
|
className: "relative min-h-0 flex-1 overflow-hidden",
|
|
1696
1696
|
children: [
|
|
@@ -1701,9 +1701,9 @@ function xn(n) {
|
|
|
1701
1701
|
Br,
|
|
1702
1702
|
Vr
|
|
1703
1703
|
]
|
|
1704
|
-
}),
|
|
1704
|
+
}), a[195] = Ir, a[196] = Lr, a[197] = Rr, a[198] = zr, a[199] = Br, a[200] = Vr, a[201] = Hr) : Hr = a[201];
|
|
1705
1705
|
let Ur;
|
|
1706
|
-
return
|
|
1706
|
+
return a[202] !== gr || a[203] !== _r || a[204] !== Fr || a[205] !== Hr ? (Ur = /* @__PURE__ */ $("div", {
|
|
1707
1707
|
className: "flex min-h-0 flex-1 flex-col bg-background",
|
|
1708
1708
|
"data-thread-key": gr,
|
|
1709
1709
|
children: [
|
|
@@ -1711,7 +1711,7 @@ function xn(n) {
|
|
|
1711
1711
|
Fr,
|
|
1712
1712
|
Hr
|
|
1713
1713
|
]
|
|
1714
|
-
}),
|
|
1714
|
+
}), a[202] = gr, a[203] = _r, a[204] = Fr, a[205] = Hr, a[206] = Ur) : Ur = a[206], Ur;
|
|
1715
1715
|
}
|
|
1716
1716
|
function Sn() {}
|
|
1717
1717
|
function Cn() {}
|
|
@@ -1734,10 +1734,10 @@ function Pn(e) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
// src/components/preview/PreviewPanel.tsx
|
|
1736
1736
|
function Fn(t) {
|
|
1737
|
-
let n = Bt(21), { mode: r, threadRef: i, tabId: a, configuredUrls: o, visible:
|
|
1738
|
-
if (!
|
|
1737
|
+
let n = Bt(21), { mode: r, threadRef: i, tabId: a, configuredUrls: o, visible: c, onSendAnnotation: l } = t, u = U(i.environmentId), d = s(), f = e(i.environmentId, N);
|
|
1738
|
+
if (!f || !u) {
|
|
1739
1739
|
let e;
|
|
1740
|
-
n[0] !==
|
|
1740
|
+
n[0] !== f || n[1] !== d ? (e = d(f ? "Preview is only available in the Hanzo Dev desktop app." : "Pair this client again with preview access to control browser previews."), n[0] = f, n[1] = d, n[2] = e) : e = n[2];
|
|
1741
1741
|
let t;
|
|
1742
1742
|
n[3] === e ? t = n[4] : (t = /* @__PURE__ */ Q("div", {
|
|
1743
1743
|
className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center",
|
|
@@ -1752,22 +1752,22 @@ function Fn(t) {
|
|
|
1752
1752
|
children: t
|
|
1753
1753
|
}), n[5] = r, n[6] = t, n[7] = i) : i = n[7], i;
|
|
1754
1754
|
}
|
|
1755
|
-
let f;
|
|
1756
|
-
n[8] === a ? f = n[9] : (f = a === void 0 ? {} : { tabId: a }, n[8] = a, n[9] = f);
|
|
1757
1755
|
let p;
|
|
1758
|
-
n[
|
|
1756
|
+
n[8] === a ? p = n[9] : (p = a === void 0 ? {} : { tabId: a }, n[8] = a, n[9] = p);
|
|
1759
1757
|
let m;
|
|
1760
|
-
n[
|
|
1758
|
+
n[10] === l ? m = n[11] : (m = l ? { onSendAnnotation: l } : {}, n[10] = l, n[11] = m);
|
|
1759
|
+
let h;
|
|
1760
|
+
n[12] !== o || n[13] !== p || n[14] !== m || n[15] !== i || n[16] !== c ? (h = /* @__PURE__ */ Q(xn, {
|
|
1761
1761
|
threadRef: i,
|
|
1762
|
-
...
|
|
1762
|
+
...p,
|
|
1763
1763
|
configuredUrls: o,
|
|
1764
|
-
visible:
|
|
1765
|
-
...
|
|
1766
|
-
}), n[12] = o, n[13] =
|
|
1767
|
-
let
|
|
1768
|
-
return n[18] !== r || n[19] !==
|
|
1764
|
+
visible: c,
|
|
1765
|
+
...m
|
|
1766
|
+
}), n[12] = o, n[13] = p, n[14] = m, n[15] = i, n[16] = c, n[17] = h) : h = n[17];
|
|
1767
|
+
let g;
|
|
1768
|
+
return n[18] !== r || n[19] !== h ? (g = /* @__PURE__ */ Q(_t, {
|
|
1769
1769
|
mode: r,
|
|
1770
|
-
children:
|
|
1771
|
-
}), n[18] = r, n[19] =
|
|
1770
|
+
children: h
|
|
1771
|
+
}), n[18] = r, n[19] = h, n[20] = g) : g = n[20], g;
|
|
1772
1772
|
}
|
|
1773
1773
|
export { Fn as PreviewPanel };
|